@myagentroam/server 0.15.9 → 0.15.10

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 (352) hide show
  1. package/node_modules/@myagentroam/protocol/dist/index.d.ts +66 -9
  2. package/node_modules/@myagentroam/protocol/dist/index.js +5 -1
  3. package/node_modules/@myagentroam/protocol/package.json +1 -1
  4. package/node_modules/@myagentroam/server-core/dist/domain-errors.js +2 -0
  5. package/node_modules/@myagentroam/server-core/dist/hosted-conversation-routes.js +3 -2
  6. package/node_modules/@myagentroam/server-core/dist/image-resource-response.d.ts +7 -1
  7. package/node_modules/@myagentroam/server-core/dist/image-resource-response.js +14 -6
  8. package/node_modules/@myagentroam/server-core/dist/run-control-routes.js +7 -3
  9. package/node_modules/@myagentroam/server-core/dist/session-share-resource-routes.js +2 -2
  10. package/node_modules/@myagentroam/server-core/dist/workspace-routes.js +1 -1
  11. package/node_modules/@myagentroam/server-core/package.json +2 -2
  12. package/node_modules/@myagentroam-enterprise/server-implementation/package.json +3 -3
  13. package/package.json +5 -5
  14. package/web/assets/{AuditManagementPage-UlxoUXzK.js → AuditManagementPage-R54vpfmk.js} +1 -1
  15. package/web/assets/AuthEntryPanel-DUVr3U5r.js +48 -0
  16. package/web/assets/AuthEntryPanel-DYqYPKYo.css +1 -0
  17. package/web/assets/{CodeFileEditor-CEWc8bPq.js → CodeFileEditor-mdBrj5-v.js} +3 -3
  18. package/web/assets/{ConversationTemplateManagementPage-BwD5z_TD.js → ConversationTemplateManagementPage-DdioMEE5.js} +1 -1
  19. package/web/assets/{ConversationTemplateManagementPage-BV9V6YaO.js → ConversationTemplateManagementPage-Dta941jV.js} +1 -1
  20. package/web/assets/{EnterpriseUserManagementPage-Be-PwbjP.js → EnterpriseUserManagementPage-DfS0jH1-.js} +1 -1
  21. package/web/assets/{EnvironmentSecretManager-biW8t6IP.js → EnvironmentSecretManager-DhOjQ6Wt.js} +1 -1
  22. package/web/assets/{FilePreviewLoading-2Syp6wN3.js → FilePreviewLoading-CammeI4A.js} +1 -1
  23. package/web/assets/{LicenseManagementPage-BPMSpt_a.js → LicenseManagementPage-jlzqXlKr.js} +1 -1
  24. package/web/assets/{ManagementPagination-DEFhNfzJ.js → ManagementPagination-B_4cYRub.js} +1 -1
  25. package/web/assets/{MarAgentModelManagementPage-BSXzf08s.js → MarAgentModelManagementPage-DkragWfe.js} +1 -1
  26. package/web/assets/{MarAgentModelManagementPage-C11C7KuW.js → MarAgentModelManagementPage-DuS_H_nS.js} +1 -1
  27. package/web/assets/{MarAlert-Bl7kQ0du.js → MarAlert-CGtOxlQN.js} +1 -1
  28. package/web/assets/{MarCascader-bOvxZ4ot.js → MarCascader-DX-rB1zd.js} +1 -1
  29. package/web/assets/{MarCheckTag-LDpGML-2.js → MarCheckTag-C8_L9MEk.js} +1 -1
  30. package/web/assets/{MarCheckboxGroup-8rY5Ekzi.js → MarCheckboxGroup-Cgk8DStE.js} +1 -1
  31. package/web/assets/{MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-BOfiw6jI.js → MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-CtCni3nG.js} +1 -1
  32. package/web/assets/{MarDatePicker-CBvhc-DL.js → MarDatePicker-DtsUpf3F.js} +1 -1
  33. package/web/assets/{MarDescriptionsItem-DvNfZzY8.js → MarDescriptionsItem-PKWvPHKq.js} +1 -1
  34. package/web/assets/{MarFormItem.vue_vue_type_script_setup_true_lang-Okwfqcum.js → MarFormItem.vue_vue_type_script_setup_true_lang-C5cd-7_h.js} +1 -1
  35. package/web/assets/{MarInputNumber-B3eIv5Os.js → MarInputNumber-CbzDf1Ot.js} +1 -1
  36. package/web/assets/{MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-CGC5SL4E.js → MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-BHbe1_lL.js} +1 -1
  37. package/web/assets/{MarSwitch-BnYCo_-h.js → MarSwitch-3lBVhMQk.js} +1 -1
  38. package/web/assets/{MarTableColumn.vue_vue_type_script_setup_true_lang-kU1-WbGg.js → MarTableColumn.vue_vue_type_script_setup_true_lang-gHvmrqE0.js} +1 -1
  39. package/web/assets/{MarTabs-C7hanPYm.js → MarTabs-D9w1sYAH.js} +1 -1
  40. package/web/assets/{MarTag-DOa1CIVr.js → MarTag-DMOB3NAh.js} +1 -1
  41. package/web/assets/{MarkdownFilePreview-B7Qp9XOa.js → MarkdownFilePreview-4npEp3Ij.js} +2 -2
  42. package/web/assets/{McpDetailsDialog-B13mnRPA.js → McpDetailsDialog-DRBWxhH3.js} +1 -1
  43. package/web/assets/{McpSourceManagementPage-DZZXR6XY.js → McpSourceManagementPage-BNL-SZQA.js} +1 -1
  44. package/web/assets/{McpSourceManagementPage-Dzz5stD7.js → McpSourceManagementPage-BaPcLCOj.js} +1 -1
  45. package/web/assets/{NodeDetailsDialogs-DTmaumQ4.js → NodeDetailsDialogs-ofcE-KSd.js} +1 -1
  46. package/web/assets/NodeManagementPage-Bh8NlMLb.js +1 -0
  47. package/web/assets/NodeManagementPage-Ce3H7pkD.js +1 -0
  48. package/web/assets/{OAuthManagementPage-C4jwe-el.js → OAuthManagementPage-CY3fZfRB.js} +1 -1
  49. package/web/assets/{OrganizationManagementPage-BK0e0wlO.js → OrganizationManagementPage-DjxX5lHB.js} +1 -1
  50. package/web/assets/{RemoteDesktopPage-CU9Tah8m.js → RemoteDesktopPage-DfAy3zs3.js} +1 -1
  51. package/web/assets/{ResourceManagementPanel-CFGgzRLl.js → ResourceManagementPanel-DXxcfP7K.js} +1 -1
  52. package/web/assets/{ResourceManagementPanel.vue_vue_type_script_setup_true_lang-DXCbX2jX.js → ResourceManagementPanel.vue_vue_type_script_setup_true_lang-IG4sLggI.js} +1 -1
  53. package/web/assets/{SecretManagementPage-Dzn565cE.js → SecretManagementPage-B8NryUVY.js} +1 -1
  54. package/web/assets/SecretManagementPage-BibI3Dze.js +1 -0
  55. package/web/assets/{SecretManagementPage.vue_vue_type_script_setup_true_lang-DZw24nBP.js → SecretManagementPage.vue_vue_type_script_setup_true_lang-NI81NNyw.js} +1 -1
  56. package/web/assets/{SessionSharePage-C41d0UZz.js → SessionSharePage-C-Trs21-.js} +2 -2
  57. package/web/assets/{SettingsContent-C7sycHFQ.js → SettingsContent-CFZTQwMt.js} +1 -1
  58. package/web/assets/SettingsContent-CrvV5M8x.js +1 -0
  59. package/web/assets/{SkillCenterPage-Dm29VN3X.js → SkillCenterPage-BS2myn62.js} +1 -1
  60. package/web/assets/SkillCenterPage-DzA7h_ET.js +1 -0
  61. package/web/assets/{SkillDetailsDialog-DRC2EmhF.js → SkillDetailsDialog-CxlbU22-.js} +1 -1
  62. package/web/assets/{SkillSourceManagementPage-WQ_mbkOg.js → SkillSourceManagementPage-COCT1wGD.js} +1 -1
  63. package/web/assets/{SkillSourceManagementPage-CXInBnNq.js → SkillSourceManagementPage-DQKcgogm.js} +1 -1
  64. package/web/assets/{StandaloneFilePreviewPage-BdcHk-XK.js → StandaloneFilePreviewPage-CGT1M7rp.js} +1 -1
  65. package/web/assets/{SystemConfigurationPage-tzL6wS2m.js → SystemConfigurationPage-BTPMgVkv.js} +1 -1
  66. package/web/assets/{SystemConfigurationPage-rak-m6bk.js → SystemConfigurationPage-q7bFxyFw.js} +1 -1
  67. package/web/assets/{SystemInformationPage-DEBgAmQY.js → SystemInformationPage-Cs1CPBxm.js} +1 -1
  68. package/web/assets/{TerminalTabView-CN4s6ETr.js → TerminalTabView-BWNNAdgr.js} +1 -1
  69. package/web/assets/WorkbenchPage-DHYvikn6.js +22 -0
  70. package/web/assets/WorkspaceManagementPage-C7dlTQh3.js +1 -0
  71. package/web/assets/WorkspaceManagementPage-Dyy03TvO.js +1 -0
  72. package/web/assets/{abnfDiagram-VCTEODGH-Cf-9haXR.js → abnfDiagram-VCTEODGH-B87D9pQi.js} +1 -1
  73. package/web/assets/{arc-M8LRh91f.js → arc-CZUFnSGZ.js} +1 -1
  74. package/web/assets/{architectureDiagram-5GKGNRK7-DXMp3TsS.js → architectureDiagram-5GKGNRK7-CuDXS5ja.js} +1 -1
  75. package/web/assets/{blockDiagram-OSKFZWR5-c3iy34TR.js → blockDiagram-OSKFZWR5-BJvM8jAu.js} +1 -1
  76. package/web/assets/{c4Diagram-7LVT6UL2-BDOzE--5.js → c4Diagram-7LVT6UL2-D9CLgU9K.js} +1 -1
  77. package/web/assets/{catalog-ownership-service-FvCkz1e9.js → catalog-ownership-service-CHOItgez.js} +1 -1
  78. package/web/assets/{catalog-page-service-CCVWqT5s.js → catalog-page-service-wjfgPLSt.js} +1 -1
  79. package/web/assets/channel-DDomBKPz.js +1 -0
  80. package/web/assets/{chunk-2Q5K7J3B-Cnf0JqU2.js → chunk-2Q5K7J3B-BrldW9PS.js} +1 -1
  81. package/web/assets/{chunk-5VM5RSS4-Dx1IWUdy.js → chunk-5VM5RSS4-CbgyoOAp.js} +1 -1
  82. package/web/assets/{chunk-F27PBJKO-BrVHGEAr.js → chunk-F27PBJKO-Chg9QXmm.js} +1 -1
  83. package/web/assets/{chunk-HLEWEB6X-CIbYLh1n.js → chunk-HLEWEB6X-CH20seJM.js} +1 -1
  84. package/web/assets/{chunk-JWPE2WC7-eA7uvddk.js → chunk-JWPE2WC7-Crfhlaqj.js} +1 -1
  85. package/web/assets/{chunk-POPQ4Y6H-BqqwYP9K.js → chunk-POPQ4Y6H-9zHl0w9_.js} +1 -1
  86. package/web/assets/{chunk-SVP7TREG-ByRAu13z.js → chunk-SVP7TREG-FBtE4a03.js} +1 -1
  87. package/web/assets/{chunk-XXDRQBXY-D3fEnjed.js → chunk-XXDRQBXY-3ALoIh_1.js} +1 -1
  88. package/web/assets/{chunk-ZLD2IHE6-Cz2rCHaY.js → chunk-ZLD2IHE6-B3hsBU00.js} +1 -1
  89. package/web/assets/classDiagram-CYGNFDIV-vxnz3ZHu.js +1 -0
  90. package/web/assets/classDiagram-v2-TLXNO2FR-vxnz3ZHu.js +1 -0
  91. package/web/assets/{conversation-history-5QEe5-Xb.js → conversation-history-xNJepiv6.js} +1 -1
  92. package/web/assets/{cose-bilkent-JH36ORCC-CTOgMg9T.js → cose-bilkent-JH36ORCC-DpHMFMal.js} +1 -1
  93. package/web/assets/{cynefin-OW5HDTMX-5anfgiic.js → cynefin-OW5HDTMX-d2p_suQQ.js} +1 -1
  94. package/web/assets/{cynefinDiagram-5FMLGOSQ-BMIQJspL.js → cynefinDiagram-5FMLGOSQ-ZMXeEmc3.js} +1 -1
  95. package/web/assets/{dagre-OS7QT2EB-CeDXcy_a.js → dagre-OS7QT2EB-DCrmziS9.js} +1 -1
  96. package/web/assets/{diagram-S7CK7UJ4-BDM9kVUP.js → diagram-S7CK7UJ4-CzHPwWq4.js} +1 -1
  97. package/web/assets/{diagram-UQ7AKVKN-OMXw6Xs6.js → diagram-UQ7AKVKN-DoNlMw3v.js} +1 -1
  98. package/web/assets/{diagram-VSXAHHWV-B7BqWZcH.js → diagram-VSXAHHWV-B1T_Wh3N.js} +1 -1
  99. package/web/assets/{diagram-VX7I27RA-C3kWRHk0.js → diagram-VX7I27RA-CTotYQrG.js} +1 -1
  100. package/web/assets/{diagram-Z3DM3KII-D32BfxGJ.js → diagram-Z3DM3KII-Dy240ChG.js} +1 -1
  101. package/web/assets/{ebnfDiagram-PWID7BFC-bmxRz2ow.js → ebnfDiagram-PWID7BFC-x7s0qfNa.js} +1 -1
  102. package/web/assets/{enterprise-management-service-DKTwXqhb.js → enterprise-management-service-C8RkIi78.js} +1 -1
  103. package/web/assets/{erDiagram-2YWLMYGG-BZ9DMgFB.js → erDiagram-2YWLMYGG-BTfhV5D-.js} +1 -1
  104. package/web/assets/{error-presentation-BefC7T_U.js → error-presentation-Cb1V7Ot5.js} +1 -1
  105. package/web/assets/{flowDiagram-T62WH6J4-CwiJX1RV.js → flowDiagram-T62WH6J4-Dqp1VH2o.js} +1 -1
  106. package/web/assets/{ganttDiagram-EL5Y4UJY-xzYqYMQq.js → ganttDiagram-EL5Y4UJY-B_SARTiv.js} +1 -1
  107. package/web/assets/{gitGraphDiagram-WWUBYQGX-DlOIM_pi.js → gitGraphDiagram-WWUBYQGX-BzX0Y1zL.js} +1 -1
  108. package/web/assets/{hosted-conversation-template-client-L7Rhb7MY.js → hosted-conversation-template-client-BSy0LNQL.js} +1 -1
  109. package/web/assets/{index-D6Vo_Pgd.js → index-9YOxoZvZ.js} +1 -1
  110. package/web/assets/{index-DQ9kU1Cc.js → index-B3IkkUYN.js} +10 -10
  111. package/web/assets/{index-CvoXY27q.js → index-BIfg_skf.js} +1 -1
  112. package/web/assets/{index-uYX2itBx.js → index-BNuGFq3G.js} +1 -1
  113. package/web/assets/{index-B3l7mi0A.js → index-BXpF5g5P.js} +1 -1
  114. package/web/assets/{index-Beym8Sy5.js → index-BYRbtzLR.js} +1 -1
  115. package/web/assets/{index-D0PPa5r0.js → index-BeZciVFM.js} +1 -1
  116. package/web/assets/{index-CuxhT8za.js → index-BtO7c3_K.js} +1 -1
  117. package/web/assets/{index-DW-Po4WL.js → index-C4AvTVnk.js} +1 -1
  118. package/web/assets/{index-YmkNtVjI.js → index-C8TULXvu.js} +1 -1
  119. package/web/assets/{index-BhICmq1t.js → index-CFOED76a.js} +1 -1
  120. package/web/assets/{index-CIhbfy8A.js → index-CK7CJF09.js} +1 -1
  121. package/web/assets/{index-Dvlt1RLI.js → index-Cf0VxUnl.js} +1 -1
  122. package/web/assets/{index-zMBd75gq.js → index-CrymmzQG.js} +1 -1
  123. package/web/assets/{index-B97aFvhn.js → index-CtfGGj-M.js} +1 -1
  124. package/web/assets/{index-U-WIdoh_.js → index-CzpCJepc.js} +1 -1
  125. package/web/assets/{index-C4XQXO1z.js → index-D10IOuaP.js} +1 -1
  126. package/web/assets/{index-JsK054RX.js → index-DLozltwA.js} +1 -1
  127. package/web/assets/{index-CgZeU_mY.js → index-Dc6yaIrX.js} +1 -1
  128. package/web/assets/{index-BQ42uGqz.js → index-DgbmMYMM.js} +1 -1
  129. package/web/assets/{index-ebpaqip4.js → index-DuW0Z9mi.js} +1 -1
  130. package/web/assets/{index-BMm1I3NB.js → index-VZ1cXBPj.js} +1 -1
  131. package/web/assets/{index-Co5oTMOW.js → index-WYD10m3i.js} +1 -1
  132. package/web/assets/{index-z5PvtrMl.js → index-XTXdDak4.js} +1 -1
  133. package/web/assets/{index-Bg5vV5z6.js → index-Y6D9KbEi.js} +1 -1
  134. package/web/assets/{index-CQ5NiKzB.js → index-iVK0sGm8.js} +1 -1
  135. package/web/assets/{index-BBPq5tC4.js → index-jQ3zeuAo.js} +1 -1
  136. package/web/assets/{infoDiagram-FKFFQAWI-3SipfJnM.js → infoDiagram-FKFFQAWI-BteL9O6s.js} +1 -1
  137. package/web/assets/{ishikawaDiagram-5VMMS53U-BOQfwKRV.js → ishikawaDiagram-5VMMS53U-DbnRNV5b.js} +1 -1
  138. package/web/assets/{journeyDiagram-EYS64GPL-BFGZqADf.js → journeyDiagram-EYS64GPL-BXnPRup0.js} +1 -1
  139. package/web/assets/{kanban-definition-UXKFOSKX-9GYKXDdB.js → kanban-definition-UXKFOSKX-Cl91JfZJ.js} +1 -1
  140. package/web/assets/{layout-DdsSIY2l.js → layout-DohuZ2Hi.js} +1 -1
  141. package/web/assets/{linear-e5SMxBM7.js → linear-ahWVxlkP.js} +1 -1
  142. package/web/assets/{management-url-service-C081xpdu.js → management-url-service-Cc7NaZUP.js} +1 -1
  143. package/web/assets/{mar-agent-reasoning-effort-DbNY3cCk.js → mar-agent-reasoning-effort-f76o_p3x.js} +1 -1
  144. package/web/assets/{mcp-center-service-CoorL4L_.js → mcp-center-service-CL87MD6E.js} +1 -1
  145. package/web/assets/{mermaid.core-0hWlrAC0.js → mermaid.core-ClQ8hsUY.js} +5 -5
  146. package/web/assets/{mindmap-definition-THT77NOG-DiCsiI0U.js → mindmap-definition-THT77NOG-DizXgaKH.js} +1 -1
  147. package/web/assets/{mobile-dialog-return-service--zz60Ks1.js → mobile-dialog-return-service-CG8tXuOd.js} +1 -1
  148. package/web/assets/{oauth-callback-MggdhKv9.js → oauth-callback-D6671jvO.js} +1 -1
  149. package/web/assets/{pegDiagram-XKGWAZYB-cG5BcNT1.js → pegDiagram-XKGWAZYB-a-k0OrEy.js} +1 -1
  150. package/web/assets/{pieDiagram-E7YTZNPT-Crggnwyw.js → pieDiagram-E7YTZNPT-Ct3tJbIB.js} +1 -1
  151. package/web/assets/{quadrantDiagram-AXDQQJYC-DaByjiSe.js → quadrantDiagram-AXDQQJYC-qNLh0rzK.js} +1 -1
  152. package/web/assets/{railroadDiagram-O6MQD6OU-DAgM4xGx.js → railroadDiagram-O6MQD6OU-B8GRVQeI.js} +1 -1
  153. package/web/assets/{requirementDiagram-IS5BZ75X-BnzOPfi4.js → requirementDiagram-IS5BZ75X-BqtFKmt_.js} +1 -1
  154. package/web/assets/{runner-presentation-BHYEIS4n.js → runner-presentation-CGmJOKZE.js} +1 -1
  155. package/web/assets/{sankeyDiagram-P5KCCOFB-CqY7ZnYX.js → sankeyDiagram-P5KCCOFB-D0lvXOvZ.js} +1 -1
  156. package/web/assets/{scoped-http-service-FG03y5ua.js → scoped-http-service-5kYL0Fib.js} +3 -3
  157. package/web/assets/{sequenceDiagram-WJ2MYXX4-C5jjv6PF.js → sequenceDiagram-WJ2MYXX4-DU9UEit0.js} +1 -1
  158. package/web/assets/{session-share-client-service-B1riIVgn.js → session-share-client-service-Bd1fcdfi.js} +1 -1
  159. package/web/assets/{sizeCapture-INFHLROL-NAlieH84.js → sizeCapture-INFHLROL-Drub98ka.js} +1 -1
  160. package/web/assets/{stateDiagram-XQSTLZYL-DLsr7_kg.js → stateDiagram-XQSTLZYL-DMJK8dNx.js} +1 -1
  161. package/web/assets/stateDiagram-v2-IH3M54BS-B51TK5A_.js +1 -0
  162. package/web/assets/{swimlanes-V6O3JKXN-Gj6Eu-Ea.js → swimlanes-V6O3JKXN-wkiZJN5c.js} +1 -1
  163. package/web/assets/swimlanesDiagram-JKAHXJPX-BM2Nhpdq.js +8 -0
  164. package/web/assets/{time-presentation-D-jgCAR3.js → time-presentation-CGX0fu2B.js} +1 -1
  165. package/web/assets/{timeline-definition-24CTP7MA-CgTcULvf.js → timeline-definition-24CTP7MA-DU35PSNs.js} +1 -1
  166. package/web/assets/{vennDiagram-4TSXK5OY-DOWBXdkP.js → vennDiagram-4TSXK5OY-yPenzut0.js} +1 -1
  167. package/web/assets/{wardleyDiagram-VM6X3IG4-96BF7yuA.js → wardleyDiagram-VM6X3IG4-BbKSuogZ.js} +1 -1
  168. package/web/assets/{workbench-live-service-B0-Z_Ju8.js → workbench-live-service-2DpRU5_0.js} +1 -1
  169. package/web/assets/{workbench-presentation-DXBlfgrH.js → workbench-presentation-DW7HPtQI.js} +1 -1
  170. package/web/assets/{xychartDiagram-S5SC5T6Z-BgMijzjf.js → xychartDiagram-S5SC5T6Z-BjjbxJ4H.js} +1 -1
  171. package/web/docs/404.html +2 -2
  172. package/web/docs/administration/account.html +3 -3
  173. package/web/docs/administration/audit.html +3 -3
  174. package/web/docs/administration/conversation-templates.html +3 -3
  175. package/web/docs/administration/email-notifications.html +3 -3
  176. package/web/docs/administration/license.html +3 -3
  177. package/web/docs/administration/nodes-workspaces.html +3 -3
  178. package/web/docs/administration/oauth.html +3 -3
  179. package/web/docs/administration/secrets.html +3 -3
  180. package/web/docs/administration/template-workspace-maintenance.html +3 -3
  181. package/web/docs/administration/users-organizations.html +3 -3
  182. package/web/docs/assets/{app.oBFN_iR0.js → app.Bxk2VyRI.js} +1 -1
  183. package/web/docs/assets/chunks/@localSearchIndexen-US.Bu6xKm31.js +1 -0
  184. package/web/docs/assets/chunks/@localSearchIndexroot.BxSZ67KM.js +1 -0
  185. package/web/docs/assets/chunks/{VPLocalSearchBox.ivgxnLJY.js → VPLocalSearchBox.Dok9xgSB.js} +1 -1
  186. package/web/docs/assets/chunks/{theme.DYy9WCd1.js → theme.CNJ4U8Yn.js} +2 -2
  187. package/web/docs/assets/en-US_reference_keyboard-shortcuts.md.B1RWRtSj.js +1 -0
  188. package/web/docs/assets/{en-US_reference_keyboard-shortcuts.md.D-H-wHwm.lean.js → en-US_reference_keyboard-shortcuts.md.B1RWRtSj.lean.js} +1 -1
  189. package/web/docs/assets/en-US_workbench_composer.md.D0PPcUFj.js +1 -0
  190. package/web/docs/assets/en-US_workbench_composer.md.D0PPcUFj.lean.js +1 -0
  191. package/web/docs/assets/en-US_workbench_conversation.md.CjSWbr0a.js +1 -0
  192. package/web/docs/assets/{en-US_workbench_conversation.md.Cured_Rh.lean.js → en-US_workbench_conversation.md.CjSWbr0a.lean.js} +1 -1
  193. package/web/docs/assets/reference_keyboard-shortcuts.md.B-L6_Hs7.js +1 -0
  194. package/web/docs/assets/{reference_keyboard-shortcuts.md.CjFW0jf0.lean.js → reference_keyboard-shortcuts.md.B-L6_Hs7.lean.js} +1 -1
  195. package/web/docs/assets/workbench_composer.md.CVrmcENR.js +1 -0
  196. package/web/docs/assets/{workbench_composer.md.CifbL-g0.lean.js → workbench_composer.md.CVrmcENR.lean.js} +1 -1
  197. package/web/docs/assets/workbench_conversation.md.CCqqmaXO.js +1 -0
  198. package/web/docs/concepts/architecture.html +3 -3
  199. package/web/docs/concepts/data-and-security.html +3 -3
  200. package/web/docs/concepts/files-git-terminal.html +3 -3
  201. package/web/docs/concepts/node-and-workspace.html +3 -3
  202. package/web/docs/concepts/permissions-and-sharing.html +3 -3
  203. package/web/docs/concepts/runner-control.html +3 -3
  204. package/web/docs/concepts/secrets.html +3 -3
  205. package/web/docs/concepts/session-run-turn.html +3 -3
  206. package/web/docs/deployment/backup-restore.html +3 -3
  207. package/web/docs/deployment/network.html +3 -3
  208. package/web/docs/deployment/node-installation.html +3 -3
  209. package/web/docs/deployment/node-linux.html +3 -3
  210. package/web/docs/deployment/node-macos.html +3 -3
  211. package/web/docs/deployment/node-windows.html +3 -3
  212. package/web/docs/deployment/production.html +3 -3
  213. package/web/docs/deployment/security-checklist.html +3 -3
  214. package/web/docs/deployment/upgrade.html +3 -3
  215. package/web/docs/en-US/administration/account.html +3 -3
  216. package/web/docs/en-US/administration/audit.html +3 -3
  217. package/web/docs/en-US/administration/conversation-templates.html +3 -3
  218. package/web/docs/en-US/administration/email-notifications.html +3 -3
  219. package/web/docs/en-US/administration/license.html +3 -3
  220. package/web/docs/en-US/administration/nodes-workspaces.html +3 -3
  221. package/web/docs/en-US/administration/oauth.html +3 -3
  222. package/web/docs/en-US/administration/secrets.html +3 -3
  223. package/web/docs/en-US/administration/template-workspace-maintenance.html +3 -3
  224. package/web/docs/en-US/administration/users-organizations.html +3 -3
  225. package/web/docs/en-US/concepts/architecture.html +3 -3
  226. package/web/docs/en-US/concepts/data-and-security.html +3 -3
  227. package/web/docs/en-US/concepts/files-git-terminal.html +3 -3
  228. package/web/docs/en-US/concepts/node-and-workspace.html +3 -3
  229. package/web/docs/en-US/concepts/permissions-and-sharing.html +3 -3
  230. package/web/docs/en-US/concepts/runner-control.html +3 -3
  231. package/web/docs/en-US/concepts/secrets.html +3 -3
  232. package/web/docs/en-US/concepts/session-run-turn.html +3 -3
  233. package/web/docs/en-US/deployment/backup-restore.html +3 -3
  234. package/web/docs/en-US/deployment/network.html +3 -3
  235. package/web/docs/en-US/deployment/node-installation.html +3 -3
  236. package/web/docs/en-US/deployment/node-linux.html +3 -3
  237. package/web/docs/en-US/deployment/node-macos.html +3 -3
  238. package/web/docs/en-US/deployment/node-windows.html +3 -3
  239. package/web/docs/en-US/deployment/production.html +3 -3
  240. package/web/docs/en-US/deployment/security-checklist.html +3 -3
  241. package/web/docs/en-US/deployment/upgrade.html +3 -3
  242. package/web/docs/en-US/getting-started/connect-node.html +3 -3
  243. package/web/docs/en-US/getting-started/first-agent-session.html +3 -3
  244. package/web/docs/en-US/getting-started/first-login.html +3 -3
  245. package/web/docs/en-US/getting-started/next-steps.html +3 -3
  246. package/web/docs/en-US/getting-started/npm-quick-start.html +3 -3
  247. package/web/docs/en-US/getting-started/overview.html +3 -3
  248. package/web/docs/en-US/getting-started/prerequisites.html +3 -3
  249. package/web/docs/en-US/getting-started/register-workspace.html +3 -3
  250. package/web/docs/en-US/getting-started/server-installation.html +3 -3
  251. package/web/docs/en-US/operations/marctl.html +3 -3
  252. package/web/docs/en-US/reference/configuration.html +3 -3
  253. package/web/docs/en-US/reference/keyboard-shortcuts.html +5 -5
  254. package/web/docs/en-US/reference/limits.html +3 -3
  255. package/web/docs/en-US/reference/ports-paths-data.html +3 -3
  256. package/web/docs/en-US/reference/status-and-errors.html +3 -3
  257. package/web/docs/en-US/runners/claude-code.html +3 -3
  258. package/web/docs/en-US/runners/codex.html +3 -3
  259. package/web/docs/en-US/runners/mar-agent.html +3 -3
  260. package/web/docs/en-US/runners/opencode.html +3 -3
  261. package/web/docs/en-US/runners/overview.html +3 -3
  262. package/web/docs/en-US/runners/runner-troubleshooting.html +3 -3
  263. package/web/docs/en-US/troubleshooting/node-offline.html +3 -3
  264. package/web/docs/en-US/troubleshooting/quick-diagnosis.html +3 -3
  265. package/web/docs/en-US/troubleshooting/session-run.html +3 -3
  266. package/web/docs/en-US/troubleshooting/terminal.html +3 -3
  267. package/web/docs/en-US/troubleshooting/workspace-files.html +3 -3
  268. package/web/docs/en-US/workbench/browser.html +3 -3
  269. package/web/docs/en-US/workbench/composer.html +5 -5
  270. package/web/docs/en-US/workbench/context-and-plan.html +3 -3
  271. package/web/docs/en-US/workbench/conversation.html +5 -5
  272. package/web/docs/en-US/workbench/file-reference-and-attachment.html +3 -3
  273. package/web/docs/en-US/workbench/files.html +3 -3
  274. package/web/docs/en-US/workbench/git-changes.html +3 -3
  275. package/web/docs/en-US/workbench/git-history.html +3 -3
  276. package/web/docs/en-US/workbench/hosted-conversations.html +3 -3
  277. package/web/docs/en-US/workbench/mobile.html +3 -3
  278. package/web/docs/en-US/workbench/navigation.html +3 -3
  279. package/web/docs/en-US/workbench/remote-desktop.html +3 -3
  280. package/web/docs/en-US/workbench/sessions.html +3 -3
  281. package/web/docs/en-US/workbench/skills.html +3 -3
  282. package/web/docs/en-US/workbench/terminal.html +3 -3
  283. package/web/docs/getting-started/connect-node.html +3 -3
  284. package/web/docs/getting-started/first-agent-session.html +3 -3
  285. package/web/docs/getting-started/first-login.html +3 -3
  286. package/web/docs/getting-started/next-steps.html +3 -3
  287. package/web/docs/getting-started/npm-quick-start.html +3 -3
  288. package/web/docs/getting-started/overview.html +3 -3
  289. package/web/docs/getting-started/prerequisites.html +3 -3
  290. package/web/docs/getting-started/register-workspace.html +3 -3
  291. package/web/docs/getting-started/server-installation.html +3 -3
  292. package/web/docs/hashmap.json +1 -1
  293. package/web/docs/operations/marctl.html +3 -3
  294. package/web/docs/reference/configuration.html +3 -3
  295. package/web/docs/reference/keyboard-shortcuts.html +5 -5
  296. package/web/docs/reference/limits.html +3 -3
  297. package/web/docs/reference/ports-paths-data.html +3 -3
  298. package/web/docs/reference/status-and-errors.html +3 -3
  299. package/web/docs/runners/claude-code.html +3 -3
  300. package/web/docs/runners/codex.html +3 -3
  301. package/web/docs/runners/mar-agent.html +3 -3
  302. package/web/docs/runners/opencode.html +3 -3
  303. package/web/docs/runners/overview.html +3 -3
  304. package/web/docs/runners/runner-troubleshooting.html +3 -3
  305. package/web/docs/troubleshooting/node-offline.html +3 -3
  306. package/web/docs/troubleshooting/quick-diagnosis.html +3 -3
  307. package/web/docs/troubleshooting/session-run.html +3 -3
  308. package/web/docs/troubleshooting/terminal.html +3 -3
  309. package/web/docs/troubleshooting/workspace-files.html +3 -3
  310. package/web/docs/workbench/browser.html +3 -3
  311. package/web/docs/workbench/composer.html +5 -5
  312. package/web/docs/workbench/context-and-plan.html +3 -3
  313. package/web/docs/workbench/conversation.html +5 -5
  314. package/web/docs/workbench/file-reference-and-attachment.html +3 -3
  315. package/web/docs/workbench/files.html +3 -3
  316. package/web/docs/workbench/git-changes.html +3 -3
  317. package/web/docs/workbench/git-history.html +3 -3
  318. package/web/docs/workbench/hosted-conversations.html +3 -3
  319. package/web/docs/workbench/mobile.html +3 -3
  320. package/web/docs/workbench/navigation.html +3 -3
  321. package/web/docs/workbench/remote-desktop.html +3 -3
  322. package/web/docs/workbench/sessions.html +3 -3
  323. package/web/docs/workbench/skills.html +3 -3
  324. package/web/docs/workbench/terminal.html +3 -3
  325. package/web/index.html +2 -2
  326. package/web/service-worker.js +1 -1
  327. package/web/web-version.json +1 -1
  328. package/web/assets/AuthEntryPanel-Bd6x3JOa.js +0 -48
  329. package/web/assets/AuthEntryPanel-_mNADnGs.css +0 -1
  330. package/web/assets/NodeManagementPage-BVPH5Usc.js +0 -1
  331. package/web/assets/NodeManagementPage-C2kFySRV.js +0 -1
  332. package/web/assets/SecretManagementPage-CWztPryy.js +0 -1
  333. package/web/assets/SettingsContent-BL-fMXC_.js +0 -1
  334. package/web/assets/SkillCenterPage-BVOUnyHQ.js +0 -1
  335. package/web/assets/WorkbenchPage-CUj5QQ7N.js +0 -22
  336. package/web/assets/WorkspaceManagementPage-B34hQO3Q.js +0 -1
  337. package/web/assets/WorkspaceManagementPage-DQBoYDMe.js +0 -1
  338. package/web/assets/channel-BteOIUxR.js +0 -1
  339. package/web/assets/classDiagram-CYGNFDIV-wNMocY-K.js +0 -1
  340. package/web/assets/classDiagram-v2-TLXNO2FR-wNMocY-K.js +0 -1
  341. package/web/assets/stateDiagram-v2-IH3M54BS-BF0UkaNV.js +0 -1
  342. package/web/assets/swimlanesDiagram-JKAHXJPX-DH33g2hR.js +0 -8
  343. package/web/docs/assets/chunks/@localSearchIndexen-US.D295roQO.js +0 -1
  344. package/web/docs/assets/chunks/@localSearchIndexroot.2QUaGbl1.js +0 -1
  345. package/web/docs/assets/en-US_reference_keyboard-shortcuts.md.D-H-wHwm.js +0 -1
  346. package/web/docs/assets/en-US_workbench_composer.md.6M6RbR5_.js +0 -1
  347. package/web/docs/assets/en-US_workbench_composer.md.6M6RbR5_.lean.js +0 -1
  348. package/web/docs/assets/en-US_workbench_conversation.md.Cured_Rh.js +0 -1
  349. package/web/docs/assets/reference_keyboard-shortcuts.md.CjFW0jf0.js +0 -1
  350. package/web/docs/assets/workbench_composer.md.CifbL-g0.js +0 -1
  351. package/web/docs/assets/workbench_conversation.md.DkRQ5i62.js +0 -1
  352. /package/web/docs/assets/{workbench_conversation.md.DkRQ5i62.lean.js → workbench_conversation.md.CCqqmaXO.lean.js} +0 -0
@@ -1 +1 @@
1
- import{u as W,m as Y,M as ce}from"./mobile-dialog-return-service--zz60Ks1.js";import{g as C,o as de,t as a,p as c,q as T,aa as Z,u as o,F as s,S,Q as p,G as e,H as $,T as U,E as I,W as Q,a0 as ne,a1 as oe,P,ab as ie,a6 as fe,I as R,R as j,m as z,X as A,_ as me,w as ye,N as ve,U as be,a9 as se,n as Ce,Y as he}from"./index-DQ9kU1Cc.js";import{M as Pe}from"./MarAlert-Bl7kQ0du.js";import{M as re}from"./MarInputNumber-B3eIv5Os.js";import{_ as H,M as _e}from"./MarTableColumn.vue_vue_type_script_setup_true_lang-kU1-WbGg.js";import{_ as E,a as X}from"./MarFormItem.vue_vue_type_script_setup_true_lang-Okwfqcum.js";import{M as ge,a as ee}from"./MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-CGC5SL4E.js";import{M as ue}from"./MarSwitch-BnYCo_-h.js";import"./conversation-history-5QEe5-Xb.js";import{e as G}from"./error-presentation-BefC7T_U.js";const we={key:"html-preview-origin",field:"htmlPreviewOrigin",payloadField:"origin",nameKey:"generated.systemConfigurationPage.htmlPreviewOrigin",descriptionKey:"generated.systemConfigurationPage.htmlPreviewOriginDescription",placeholderKey:"generated.systemConfigurationPage.htmlPreviewOriginPlaceholder",type:"origin",initialValue:""},Ve={key:"mail-smtp",field:"smtpConfiguration",payloadField:"config",nameKey:"generated.systemConfigurationPage.smtp",descriptionKey:"generated.systemConfigurationPage.smtpDescription",placeholderKey:"generated.systemConfigurationPage.smtpPlaceholder",type:"json",initialValue:"{}"},ke={key:"web-push",field:"webPushEnabled",payloadField:"enabled",nameKey:"workbenchNotificationCenter.webPushConfiguration.title",descriptionKey:"workbenchNotificationCenter.webPushConfiguration.description",type:"boolean",initialValue:!1};function Te(k,M=[]){const u=[...M,{key:"mar-agent-resource-input",field:"useResourceUrl",payloadField:"useResourceUrl",nameKey:"marAgentModels.useResourceUrl",descriptionKey:"marAgentModels.globalResourceUrlDescription",type:"boolean",initialValue:!0},Ve,ke,we],_=new Map(u.map(i=>[i.key,i]));if(_.size!==u.length)throw new Error("WEB_SYSTEM_SETTING_DUPLICATE");const w=C(Object.fromEntries(u.map(i=>[i.field,i.initialValue]))),y=C({...w.value}),g=C(null),V=C(null),v=C(!1);function d(i){w.value=i,y.value={...i}}async function x(){if(!(v.value||V.value!==null)){v.value=!0;try{d(await k("/api/system-settings")),g.value=null}finally{v.value=!1}}}function N(i){!_.has(i)||v.value||V.value!==null||g.value!==null||(y.value={...w.value},g.value=i)}function O(i){g.value!==i||V.value!==null||(y.value={...w.value},g.value=null)}function D(i,n){if(i.type==="json"){if(typeof n!="string"||n.length>4096)return!1;try{const f=JSON.parse(n);return f!==null&&typeof f=="object"&&!Array.isArray(f)}catch{return!1}}if(i.type==="origin"){if(n==="")return!0;if(typeof n!="string"||n.length>253)return!1;try{const f=new URL(n);return f.origin===n&&(f.protocol==="https:"||f.protocol==="http:")}catch{return!1}}return i.type==="boolean"?typeof n=="boolean":typeof n=="number"&&Number.isFinite(n)&&n>=i.min&&n<=i.max}function K(i,n){const f=_.get(i);f===void 0||g.value!==i||V.value!==null||!(f.type==="origin"||f.type==="json"?typeof n=="string"&&n.length<=(f.type==="json"?4096:253):D(f,n))||(y.value[f.field]=n)}async function F(i){const n=_.get(i);if(n===void 0||g.value!==i||V.value!==null||v.value)return!1;const f=y.value[n.field];if(!D(n,f))return!1;V.value=i;try{return d(await k(`/api/system-settings/${encodeURIComponent(i)}`,{method:"PATCH",body:JSON.stringify({[n.payloadField]:f})})),g.value=null,!0}finally{V.value=null}}return{settings:u,snapshot:w,drafts:y,editingKey:g,savingKey:V,loading:v,load:x,beginEdit:N,cancelEdit:O,validValue:D,setDraft:K,save:F}}function Se(k){const M=C([]),u=C(!1),_=C(!1);async function w(){if(!u.value){u.value=!0;try{M.value=await k("/api/mail/templates")}finally{u.value=!1}}}async function y(V,v){return k("/api/mail/templates/preview",{method:"POST",body:JSON.stringify({templateId:V.id,message:v})})}async function g(V,v){_.value=!0;try{await k("/api/mail/test",{method:"POST",body:JSON.stringify({email:V,templateId:v})})}finally{_.value=!1}}return{templates:M,loading:u,busy:_,load:w,preview:y,test:g}}const Me={class:"template-viewer"},Ue={class:"template-description"},xe={key:0,class:"template-layout"},Ee=["aria-label"],$e=["aria-pressed","onClick"],Ie={class:"template-choice__meta"},Ne={class:"template-choice__name"},Oe={class:"template-choice__subject"},De={key:0,class:"template-preview"},Ke={class:"template-preview__header"},Fe={class:"template-preview__locale"},Be=["srcdoc","title"],Ae={key:1,class:"template-preview__fallback"},je={key:1,class:"template-empty"},Re=de({__name:"MailTemplateManagement",props:{request:{type:Function},writable:{type:Boolean}},setup(k){const M=k,u=Se(M.request),_=C(!1),w=C(""),y=z(()=>u.templates.value.find(b=>b.id===w.value)),g=C(),V=C(!1);let v=0;const d=C(!1),x=C(),N=C(""),O=C(""),D=z(()=>u.templates.value.filter(b=>b.kind==="TEST")),K=z(()=>({email:N.value,templateId:O.value})),F={email:[{required:!0,pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/u,message:a("generated.systemConfigurationPage.mailAddressInvalid"),trigger:"blur"}],templateId:[{required:!0,trigger:"change"}]};function i(b){return b instanceof Error?G(b):a("generated.systemConfigurationPage.mailOperationFailed")}async function n(){_.value=!0,v+=1,w.value="",g.value=void 0;try{await u.load(),w.value=u.templates.value[0]?.id??"",w.value!==""&&await q()}catch(b){A(i(b),"error",b)}}function f(b){w.value=b.id,g.value=void 0,q()}async function q(){const b=y.value;if(b===void 0||!_.value)return;const h=++v;V.value=!0;try{const m=await u.preview(b,a("generated.systemConfigurationPage.mailPreviewMessage"));_.value&&h===v&&w.value===b.id&&(g.value=m)}catch(m){h===v&&A(i(m),"error",m)}finally{h===v&&(V.value=!1)}}function J(){N.value="",O.value=(y.value?.kind==="TEST"?y.value.id:D.value[0]?.id)??"",d.value=!0}async function L(){if(M.writable)try{await x.value?.validate(),await u.test(N.value,O.value),d.value=!1,A(a("generated.systemConfigurationPage.mailTestAccepted"),"success")}catch(b){b instanceof Error&&A(i(b),"error",b)}}return(b,h)=>(c(),T(Z,null,[o(e(U),{icon:e($)("mail"),onClick:n},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.mailTemplateView")),1)]),_:1},8,["icon"]),_.value?(c(),I(e(Q),{key:0,onVnodeMounted:e(Y),onVnodeBeforeUnmount:e(W),modelValue:_.value,"onUpdate:modelValue":h[1]||(h[1]=m=>_.value=m),"append-to-body":"",title:e(a)("generated.systemConfigurationPage.mailTemplates"),width:"min(780px, calc(100vw - 32px))"},{footer:s(()=>[o(e(U),{disabled:!k.writable||D.value.length===0||e(u).busy.value,onClick:J},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.mailTest")),1)]),_:1},8,["disabled"]),o(e(U),{onClick:h[0]||(h[0]=m=>_.value=!1)},{default:s(()=>[S(p(e(a)("common.close")),1)]),_:1})]),default:s(()=>[ne((c(),T("div",Me,[P("p",Ue,p(e(a)("generated.systemConfigurationPage.mailTemplateBuiltIn")),1),e(u).templates.value.length>0?(c(),T("div",xe,[P("div",{class:"template-choices",role:"group","aria-label":e(a)("generated.systemConfigurationPage.mailTemplates")},[(c(!0),T(Z,null,ie(e(u).templates.value,m=>(c(),T("button",{key:m.id,type:"button",class:fe(["template-choice",{"is-selected":w.value===m.id}]),"aria-pressed":w.value===m.id,onClick:ae=>f(m)},[P("span",Ie,[S(p(e(a)(m.kind==="TEST"?"generated.systemConfigurationPage.mailKindTest":"generated.systemConfigurationPage.mailKindNotification"))+" ",1),h[6]||(h[6]=P("span",{"aria-hidden":"true"},"·",-1)),S(" "+p(m.locale),1)]),P("span",Ne,p(m.name),1),P("span",Oe,p(m.subject),1)],10,$e))),128))],8,Ee),y.value?ne((c(),T("div",De,[P("div",Ke,[P("span",null,p(e(a)("generated.systemConfigurationPage.mailPreviewSample")),1),P("span",Fe,p(y.value.locale),1)]),g.value?.html?(c(),T("iframe",{key:0,class:"template-preview__document",srcdoc:g.value.html,sandbox:"",referrerpolicy:"no-referrer",title:e(a)("generated.systemConfigurationPage.mailPreviewSample")},null,8,Be)):(c(),T("div",Ae,[P("span",null,p(e(a)("generated.systemConfigurationPage.mailSubject")),1),P("strong",null,p(g.value?.subject??y.value.subject),1),P("span",null,p(e(a)("generated.systemConfigurationPage.mailBody")),1),P("p",null,p(g.value?.text??y.value.body),1)]))])),[[e(oe),V.value,"region"]]):R("",!0)])):e(u).loading.value?R("",!0):(c(),T("p",je,p(e(a)("generated.systemConfigurationPage.mailTemplateEmpty")),1))])),[[e(oe),e(u).loading.value,"region"]])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):R("",!0),d.value?(c(),I(e(Q),{key:1,onVnodeMounted:e(Y),onVnodeBeforeUnmount:e(W),modelValue:d.value,"onUpdate:modelValue":h[5]||(h[5]=m=>d.value=m),"append-to-body":"",title:e(a)("generated.systemConfigurationPage.mailTest"),width:"min(480px, calc(100vw - 32px))"},{footer:s(()=>[o(e(U),{onClick:h[4]||(h[4]=m=>d.value=!1)},{default:s(()=>[S(p(e(a)("common.cancel")),1)]),_:1}),o(e(U),{type:"primary",loading:e(u).busy.value,onClick:L},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.mailTestSend")),1)]),_:1},8,["loading"])]),default:s(()=>[o(e(X),{ref_key:"testForm",ref:x,model:K.value,rules:F,"label-position":"top"},{default:s(()=>[o(e(E),{label:e(a)("generated.systemConfigurationPage.mailAddress"),prop:"email"},{default:s(()=>[o(e(j),{modelValue:N.value,"onUpdate:modelValue":h[2]||(h[2]=m=>N.value=m),type:"email"},null,8,["modelValue"])]),_:1},8,["label"]),o(e(E),{label:e(a)("generated.systemConfigurationPage.mailTemplate"),prop:"templateId"},{default:s(()=>[o(e(ge),{modelValue:O.value,"onUpdate:modelValue":h[3]||(h[3]=m=>O.value=m),class:"template-test-select","clear-icon":e($)("clear-input"),"suffix-icon":e($)("chevron-down")},{default:s(()=>[(c(!0),T(Z,null,ie(D.value,m=>(c(),I(e(ee),{key:m.id,value:m.id,label:m.name},null,8,["value","label"]))),128))]),_:1},8,["modelValue","clear-icon","suffix-icon"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):R("",!0)],64))}}),qe=me(Re,[["__scopeId","data-v-5494f73e"]]),Le={class:"mar-management-page"},ze={class:"mar-table-actions"},Je=["aria-label"],He={key:1},Ze={key:3},Ge={key:4},We={class:"smtp-toggle"},Ye={class:"smtp-form__pair"},Qe={class:"smtp-template-row"},Xe={class:"smtp-dialog-hint"},ea=de({__name:"SystemConfigurationPage",props:{request:{type:Function},writable:{type:Boolean},settings:{}},setup(k){const M=k,u=Te(M.request,M.settings),_=C(),w=C(),y=C(""),g=C(!1),V=u.settings.find(r=>r.key==="mail-smtp"),v=C(!1),d=Ce({host:"",port:587,tls:"STARTTLS",from:"",fromName:"",username:"",password:""});let x="";const N={host:[{required:!0,pattern:/^[A-Za-z0-9](?:[A-Za-z0-9.-]{0,251}[A-Za-z0-9])?$/u,message:a("generated.systemConfigurationPage.smtpHostInvalid"),trigger:"blur"}],port:[{type:"integer",min:1,max:65535,required:!0,message:a("generated.systemConfigurationPage.smtpPortInvalid"),trigger:"change"}],tls:[{required:!0,trigger:"change"}],from:[{required:!0,pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/u,message:a("generated.systemConfigurationPage.smtpFromInvalid"),trigger:"blur"}],fromName:[{max:128,pattern:/^[^\r\n]*$/u,message:a("generated.systemConfigurationPage.smtpFromNameInvalid"),trigger:"blur"}],username:[{max:320,pattern:/^[^\r\n]*$/u,message:a("generated.systemConfigurationPage.smtpUsernameInvalid"),trigger:"blur"}],password:[{validator:(r,l,t)=>t(typeof l=="string"&&l.length<=1024&&(d.username===""?l==="":l!==""||d.username===x)?void 0:new Error(a("generated.systemConfigurationPage.smtpPasswordInvalid"))),trigger:"blur"}]},O=u.settings.find(r=>r.key==="html-preview-origin"),D={origin:[{validator:(r,l,t)=>t(u.validValue(O,l)?void 0:new Error(a("generated.systemConfigurationPage.htmlPreviewOriginInvalid"))),trigger:"change"}]},{snapshot:K,drafts:F,editingKey:i,savingKey:n,loading:f,beginEdit:q,cancelEdit:J}=u,L=C(!1),b=z(()=>({origin:F.value.htmlPreviewOrigin})),h=z(()=>u.settings.map(r=>({...r,name:a(r.nameKey),description:a(r.descriptionKey)})));ye(g,r=>{y.value="",r||(d.password="",x="",J("mail-smtp"))});function m(r){const l=F.value[r];return typeof l=="number"?l:void 0}function ae(r){const l=F.value[r];return typeof l=="string"?l:""}function pe(){if(!M.writable||(q("mail-smtp"),i.value!=="mail-smtp"))return;const r=JSON.parse(String(K.value.smtpConfiguration));v.value=Object.keys(r).length>0,Object.assign(d,{host:r.host??"",port:r.port??587,tls:r.tls??"STARTTLS",from:r.from??"",fromName:r.fromName??"",username:r.username??"",password:""}),x=r.username??"",g.value=i.value==="mail-smtp"}async function te(){try{await u.load(),L.value=!0}catch(r){L.value=!1,A(r instanceof Error?G(r):a("generated.systemConfigurationPage.unableToLoadSystemConfiguration"),"error",r)}}async function le(r){if(M.writable){if(y.value="",r==="html-preview-origin")try{await _.value?.validate()}catch{return}if(r==="mail-smtp")if(v.value){try{await w.value?.validate()}catch{return}const l=JSON.stringify({...d});if(!u.validValue(V,l)){y.value=a("generated.systemConfigurationPage.smtpInvalid");return}u.setDraft(r,l)}else{if(K.value.smtpConfiguration!=="{}")try{await he.confirm(a("generated.systemConfigurationPage.smtpDisableConfirmation"),a("generated.systemConfigurationPage.smtpDisableTitle"),{icon:$("warning"),type:"warning",confirmButtonText:a("generated.systemConfigurationPage.smtpDisableTitle"),cancelButtonText:a("common.cancel")})}catch(l){if(l==="cancel"||l==="close")return;A(l instanceof Error?G(l):a("generated.systemConfigurationPage.unableToSaveSystemConfiguration"),"error",l);return}if(!g.value||i.value!==r)return;u.setDraft(r,"{}")}try{await u.save(r)&&(r==="mail-smtp"&&(g.value=!1),A(a("generated.systemConfigurationPage.systemConfigurationSaved"),"success"))}catch(l){A(l instanceof Error?G(l):a("generated.systemConfigurationPage.unableToSaveSystemConfiguration"),"error",l)}}}return ve(()=>{te()}),(r,l)=>(c(),T("section",Le,[P("div",ze,[o(e(U),{icon:e($)("refresh"),disabled:e(f)||e(n)!==null,onClick:te},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.refresh")),1)]),_:1},8,["icon","disabled"])]),o(e(_e),{data:L.value?h.value:[],"row-key":"key","aria-busy":e(f)},be({default:s(()=>[o(e(H),{prop:"name",label:e(a)("generated.systemConfigurationPage.setting"),"min-width":"180"},null,8,["label"]),o(e(H),{prop:"description",label:e(a)("generated.systemConfigurationPage.description"),"min-width":"320"},null,8,["label"]),o(e(H),{label:e(a)("generated.systemConfigurationPage.value"),"min-width":"180"},{default:s(({row:t})=>[t.type==="number"&&e(i)===t.key?(c(),I(e(re),{key:0,"model-value":m(t.field),placeholder:t.placeholderKey===void 0?void 0:e(a)(t.placeholderKey),min:t.min,max:t.max,disabled:e(n)!==null,"onUpdate:modelValue":B=>e(u).setDraft(t.key,B)},{"decrease-icon":s(()=>[o(e(se),{name:"subtract"})]),"increase-icon":s(()=>[o(e(se),{name:"plus"})]),_:1},8,["model-value","placeholder","min","max","disabled","onUpdate:modelValue"])):t.type==="number"?(c(),T("span",He,p(e(K)[t.field]),1)):t.type==="origin"&&e(i)===t.key?(c(),I(e(X),{key:2,ref_key:"originForm",ref:_,model:b.value,rules:D},{default:s(()=>[o(e(E),{prop:"origin",class:"origin-setting-form"},{default:s(()=>[o(e(j),{"model-value":ae(t.field),placeholder:e(a)(t.placeholderKey),disabled:e(n)!==null,"onUpdate:modelValue":B=>e(u).setDraft(t.key,B)},null,8,["model-value","placeholder","disabled","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["model"])):t.type==="origin"?(c(),T("span",Ze,p(e(K)[t.field]||e(a)("generated.systemConfigurationPage.htmlPreviewCurrentOrigin")),1)):t.type==="json"?(c(),T("span",Ge,"-")):(c(),I(e(ue),{key:5,"model-value":e(F)[t.field]===!0,disabled:e(i)!==t.key||!k.writable||e(n)!==null,"onUpdate:modelValue":B=>e(u).setDraft(t.key,B)},null,8,["model-value","disabled","onUpdate:modelValue"]))]),_:1},8,["label"]),o(e(H),{label:e(a)("generated.systemConfigurationPage.actions"),"min-width":"220"},{default:s(({row:t})=>[e(i)!==t.key||t.type==="json"?(c(),I(e(U),{key:0,link:"",icon:e($)("edit"),disabled:!k.writable||e(i)!==null,onClick:B=>t.type==="json"?pe():e(q)(t.key)},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.edit")),1)]),_:1},8,["icon","disabled","onClick"])):(c(),T(Z,{key:1},[o(e(U),{link:"",type:"primary",icon:e($)("check"),loading:e(n)===t.key,disabled:!k.writable||e(n)!==null,onClick:B=>le(t.key)},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.save")),1)]),_:1},8,["icon","loading","disabled","onClick"]),o(e(U),{link:"",icon:e($)("close"),disabled:e(n)!==null,onClick:B=>e(J)(t.key)},{default:s(()=>[S(p(e(a)("common.cancel")),1)]),_:1},8,["icon","disabled","onClick"])],64))]),_:1},8,["label"])]),_:2},[e(f)?{name:"loading",fn:s(()=>[P("span",{role:"progressbar","aria-label":e(a)("common.loading")},[o(e(ce),{class:"mar-read-loading-indicator"})],8,Je)]),key:"0"}:void 0]),1032,["data","aria-busy"]),g.value?(c(),I(e(Q),{key:0,onVnodeMounted:e(Y),onVnodeBeforeUnmount:e(W),modelValue:g.value,"onUpdate:modelValue":l[10]||(l[10]=t=>g.value=t),title:e(a)("generated.systemConfigurationPage.smtp"),width:"min(620px, calc(100vw - 32px))","close-on-click-modal":e(n)===null,"close-on-press-escape":e(n)===null,"show-close":e(n)===null,"append-to-body":""},{footer:s(()=>[o(e(U),{disabled:e(n)!==null,onClick:l[8]||(l[8]=t=>g.value=!1)},{default:s(()=>[S(p(e(a)("common.cancel")),1)]),_:1},8,["disabled"]),o(e(U),{type:"primary",loading:e(n)==="mail-smtp",onClick:l[9]||(l[9]=t=>le("mail-smtp"))},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.save")),1)]),_:1},8,["loading"])]),default:s(()=>[P("div",We,[P("span",null,p(e(a)("generated.systemConfigurationPage.smtpEnable")),1),o(e(ue),{modelValue:v.value,"onUpdate:modelValue":l[0]||(l[0]=t=>v.value=t),disabled:e(n)!==null,"aria-label":e(a)("generated.systemConfigurationPage.smtpEnable")},null,8,["modelValue","disabled","aria-label"])]),v.value?(c(),I(e(X),{key:0,ref_key:"smtpForm",ref:w,model:d,rules:N,"label-position":"top",class:"smtp-form"},{default:s(()=>[y.value?(c(),I(e(Pe),{key:0,title:y.value,type:"error",closable:!1},null,8,["title"])):R("",!0),o(e(E),{label:e(a)("generated.systemConfigurationPage.smtpHost"),prop:"host"},{default:s(()=>[o(e(j),{modelValue:d.host,"onUpdate:modelValue":l[1]||(l[1]=t=>d.host=t),maxlength:"253",autocomplete:"off",disabled:e(n)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),P("div",Ye,[o(e(E),{label:e(a)("generated.systemConfigurationPage.smtpPort"),prop:"port"},{default:s(()=>[o(e(re),{modelValue:d.port,"onUpdate:modelValue":l[2]||(l[2]=t=>d.port=t),"aria-label":e(a)("generated.systemConfigurationPage.smtpPort"),min:1,max:65535,controls:!1,disabled:e(n)!==null},null,8,["modelValue","aria-label","disabled"])]),_:1},8,["label"]),o(e(E),{label:e(a)("generated.systemConfigurationPage.smtpTls"),prop:"tls"},{default:s(()=>[o(e(ge),{modelValue:d.tls,"onUpdate:modelValue":l[3]||(l[3]=t=>d.tls=t),disabled:e(n)!==null,"clear-icon":e($)("clear-input"),"suffix-icon":e($)("chevron-down")},{default:s(()=>[o(e(ee),{label:"STARTTLS",value:"STARTTLS"}),o(e(ee),{label:"TLS",value:"TLS"})]),_:1},8,["modelValue","disabled","clear-icon","suffix-icon"])]),_:1},8,["label"])]),o(e(E),{label:e(a)("generated.systemConfigurationPage.smtpFrom"),prop:"from"},{default:s(()=>[o(e(j),{modelValue:d.from,"onUpdate:modelValue":l[4]||(l[4]=t=>d.from=t),maxlength:"320",autocomplete:"off",disabled:e(n)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(e(E),{label:e(a)("generated.systemConfigurationPage.smtpFromName"),prop:"fromName"},{default:s(()=>[o(e(j),{modelValue:d.fromName,"onUpdate:modelValue":l[5]||(l[5]=t=>d.fromName=t),maxlength:"128",autocomplete:"off",disabled:e(n)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(e(E),{label:e(a)("generated.systemConfigurationPage.smtpUsername"),prop:"username"},{default:s(()=>[o(e(j),{modelValue:d.username,"onUpdate:modelValue":l[6]||(l[6]=t=>d.username=t),maxlength:"320",autocomplete:"off",disabled:e(n)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(e(E),{label:e(a)("generated.systemConfigurationPage.smtpPassword"),prop:"password"},{default:s(()=>[o(e(j),{modelValue:d.password,"onUpdate:modelValue":l[7]||(l[7]=t=>d.password=t),type:"password",maxlength:"1024",autocomplete:"new-password",placeholder:e(x)===d.username&&e(x)?e(a)("generated.systemConfigurationPage.smtpPasswordKeep"):void 0,disabled:e(n)!==null},null,8,["modelValue","placeholder","disabled"])]),_:1},8,["label"])]),_:1},8,["model"])):R("",!0),P("div",Qe,[o(qe,{request:k.request,writable:k.writable},null,8,["request","writable"])]),P("p",Xe,p(e(a)("generated.systemConfigurationPage.smtpDialogHint")),1)]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-on-click-modal","close-on-press-escape","show-close"])):R("",!0)]))}}),ma=me(ea,[["__scopeId","data-v-296e0178"]]);export{ma as default};
1
+ import{u as W,m as Y,M as ce}from"./mobile-dialog-return-service-CG8tXuOd.js";import{g as C,o as de,t as a,p as c,q as T,aa as Z,u as o,F as s,S,Q as p,G as e,H as $,T as U,E as I,W as Q,a0 as ne,a1 as oe,P,ab as ie,a6 as fe,I as R,R as j,m as z,X as A,_ as me,w as ye,N as ve,U as be,a9 as se,n as Ce,Y as he}from"./index-B3IkkUYN.js";import{M as Pe}from"./MarAlert-CGtOxlQN.js";import{M as re}from"./MarInputNumber-CbzDf1Ot.js";import{_ as H,M as _e}from"./MarTableColumn.vue_vue_type_script_setup_true_lang-gHvmrqE0.js";import{_ as E,a as X}from"./MarFormItem.vue_vue_type_script_setup_true_lang-C5cd-7_h.js";import{M as ge,a as ee}from"./MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-BHbe1_lL.js";import{M as ue}from"./MarSwitch-3lBVhMQk.js";import"./conversation-history-xNJepiv6.js";import{e as G}from"./error-presentation-Cb1V7Ot5.js";const we={key:"html-preview-origin",field:"htmlPreviewOrigin",payloadField:"origin",nameKey:"generated.systemConfigurationPage.htmlPreviewOrigin",descriptionKey:"generated.systemConfigurationPage.htmlPreviewOriginDescription",placeholderKey:"generated.systemConfigurationPage.htmlPreviewOriginPlaceholder",type:"origin",initialValue:""},Ve={key:"mail-smtp",field:"smtpConfiguration",payloadField:"config",nameKey:"generated.systemConfigurationPage.smtp",descriptionKey:"generated.systemConfigurationPage.smtpDescription",placeholderKey:"generated.systemConfigurationPage.smtpPlaceholder",type:"json",initialValue:"{}"},ke={key:"web-push",field:"webPushEnabled",payloadField:"enabled",nameKey:"workbenchNotificationCenter.webPushConfiguration.title",descriptionKey:"workbenchNotificationCenter.webPushConfiguration.description",type:"boolean",initialValue:!1};function Te(k,M=[]){const u=[...M,{key:"mar-agent-resource-input",field:"useResourceUrl",payloadField:"useResourceUrl",nameKey:"marAgentModels.useResourceUrl",descriptionKey:"marAgentModels.globalResourceUrlDescription",type:"boolean",initialValue:!0},Ve,ke,we],_=new Map(u.map(i=>[i.key,i]));if(_.size!==u.length)throw new Error("WEB_SYSTEM_SETTING_DUPLICATE");const w=C(Object.fromEntries(u.map(i=>[i.field,i.initialValue]))),y=C({...w.value}),g=C(null),V=C(null),v=C(!1);function d(i){w.value=i,y.value={...i}}async function x(){if(!(v.value||V.value!==null)){v.value=!0;try{d(await k("/api/system-settings")),g.value=null}finally{v.value=!1}}}function N(i){!_.has(i)||v.value||V.value!==null||g.value!==null||(y.value={...w.value},g.value=i)}function O(i){g.value!==i||V.value!==null||(y.value={...w.value},g.value=null)}function D(i,n){if(i.type==="json"){if(typeof n!="string"||n.length>4096)return!1;try{const f=JSON.parse(n);return f!==null&&typeof f=="object"&&!Array.isArray(f)}catch{return!1}}if(i.type==="origin"){if(n==="")return!0;if(typeof n!="string"||n.length>253)return!1;try{const f=new URL(n);return f.origin===n&&(f.protocol==="https:"||f.protocol==="http:")}catch{return!1}}return i.type==="boolean"?typeof n=="boolean":typeof n=="number"&&Number.isFinite(n)&&n>=i.min&&n<=i.max}function K(i,n){const f=_.get(i);f===void 0||g.value!==i||V.value!==null||!(f.type==="origin"||f.type==="json"?typeof n=="string"&&n.length<=(f.type==="json"?4096:253):D(f,n))||(y.value[f.field]=n)}async function F(i){const n=_.get(i);if(n===void 0||g.value!==i||V.value!==null||v.value)return!1;const f=y.value[n.field];if(!D(n,f))return!1;V.value=i;try{return d(await k(`/api/system-settings/${encodeURIComponent(i)}`,{method:"PATCH",body:JSON.stringify({[n.payloadField]:f})})),g.value=null,!0}finally{V.value=null}}return{settings:u,snapshot:w,drafts:y,editingKey:g,savingKey:V,loading:v,load:x,beginEdit:N,cancelEdit:O,validValue:D,setDraft:K,save:F}}function Se(k){const M=C([]),u=C(!1),_=C(!1);async function w(){if(!u.value){u.value=!0;try{M.value=await k("/api/mail/templates")}finally{u.value=!1}}}async function y(V,v){return k("/api/mail/templates/preview",{method:"POST",body:JSON.stringify({templateId:V.id,message:v})})}async function g(V,v){_.value=!0;try{await k("/api/mail/test",{method:"POST",body:JSON.stringify({email:V,templateId:v})})}finally{_.value=!1}}return{templates:M,loading:u,busy:_,load:w,preview:y,test:g}}const Me={class:"template-viewer"},Ue={class:"template-description"},xe={key:0,class:"template-layout"},Ee=["aria-label"],$e=["aria-pressed","onClick"],Ie={class:"template-choice__meta"},Ne={class:"template-choice__name"},Oe={class:"template-choice__subject"},De={key:0,class:"template-preview"},Ke={class:"template-preview__header"},Fe={class:"template-preview__locale"},Be=["srcdoc","title"],Ae={key:1,class:"template-preview__fallback"},je={key:1,class:"template-empty"},Re=de({__name:"MailTemplateManagement",props:{request:{type:Function},writable:{type:Boolean}},setup(k){const M=k,u=Se(M.request),_=C(!1),w=C(""),y=z(()=>u.templates.value.find(b=>b.id===w.value)),g=C(),V=C(!1);let v=0;const d=C(!1),x=C(),N=C(""),O=C(""),D=z(()=>u.templates.value.filter(b=>b.kind==="TEST")),K=z(()=>({email:N.value,templateId:O.value})),F={email:[{required:!0,pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/u,message:a("generated.systemConfigurationPage.mailAddressInvalid"),trigger:"blur"}],templateId:[{required:!0,trigger:"change"}]};function i(b){return b instanceof Error?G(b):a("generated.systemConfigurationPage.mailOperationFailed")}async function n(){_.value=!0,v+=1,w.value="",g.value=void 0;try{await u.load(),w.value=u.templates.value[0]?.id??"",w.value!==""&&await q()}catch(b){A(i(b),"error",b)}}function f(b){w.value=b.id,g.value=void 0,q()}async function q(){const b=y.value;if(b===void 0||!_.value)return;const h=++v;V.value=!0;try{const m=await u.preview(b,a("generated.systemConfigurationPage.mailPreviewMessage"));_.value&&h===v&&w.value===b.id&&(g.value=m)}catch(m){h===v&&A(i(m),"error",m)}finally{h===v&&(V.value=!1)}}function J(){N.value="",O.value=(y.value?.kind==="TEST"?y.value.id:D.value[0]?.id)??"",d.value=!0}async function L(){if(M.writable)try{await x.value?.validate(),await u.test(N.value,O.value),d.value=!1,A(a("generated.systemConfigurationPage.mailTestAccepted"),"success")}catch(b){b instanceof Error&&A(i(b),"error",b)}}return(b,h)=>(c(),T(Z,null,[o(e(U),{icon:e($)("mail"),onClick:n},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.mailTemplateView")),1)]),_:1},8,["icon"]),_.value?(c(),I(e(Q),{key:0,onVnodeMounted:e(Y),onVnodeBeforeUnmount:e(W),modelValue:_.value,"onUpdate:modelValue":h[1]||(h[1]=m=>_.value=m),"append-to-body":"",title:e(a)("generated.systemConfigurationPage.mailTemplates"),width:"min(780px, calc(100vw - 32px))"},{footer:s(()=>[o(e(U),{disabled:!k.writable||D.value.length===0||e(u).busy.value,onClick:J},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.mailTest")),1)]),_:1},8,["disabled"]),o(e(U),{onClick:h[0]||(h[0]=m=>_.value=!1)},{default:s(()=>[S(p(e(a)("common.close")),1)]),_:1})]),default:s(()=>[ne((c(),T("div",Me,[P("p",Ue,p(e(a)("generated.systemConfigurationPage.mailTemplateBuiltIn")),1),e(u).templates.value.length>0?(c(),T("div",xe,[P("div",{class:"template-choices",role:"group","aria-label":e(a)("generated.systemConfigurationPage.mailTemplates")},[(c(!0),T(Z,null,ie(e(u).templates.value,m=>(c(),T("button",{key:m.id,type:"button",class:fe(["template-choice",{"is-selected":w.value===m.id}]),"aria-pressed":w.value===m.id,onClick:ae=>f(m)},[P("span",Ie,[S(p(e(a)(m.kind==="TEST"?"generated.systemConfigurationPage.mailKindTest":"generated.systemConfigurationPage.mailKindNotification"))+" ",1),h[6]||(h[6]=P("span",{"aria-hidden":"true"},"·",-1)),S(" "+p(m.locale),1)]),P("span",Ne,p(m.name),1),P("span",Oe,p(m.subject),1)],10,$e))),128))],8,Ee),y.value?ne((c(),T("div",De,[P("div",Ke,[P("span",null,p(e(a)("generated.systemConfigurationPage.mailPreviewSample")),1),P("span",Fe,p(y.value.locale),1)]),g.value?.html?(c(),T("iframe",{key:0,class:"template-preview__document",srcdoc:g.value.html,sandbox:"",referrerpolicy:"no-referrer",title:e(a)("generated.systemConfigurationPage.mailPreviewSample")},null,8,Be)):(c(),T("div",Ae,[P("span",null,p(e(a)("generated.systemConfigurationPage.mailSubject")),1),P("strong",null,p(g.value?.subject??y.value.subject),1),P("span",null,p(e(a)("generated.systemConfigurationPage.mailBody")),1),P("p",null,p(g.value?.text??y.value.body),1)]))])),[[e(oe),V.value,"region"]]):R("",!0)])):e(u).loading.value?R("",!0):(c(),T("p",je,p(e(a)("generated.systemConfigurationPage.mailTemplateEmpty")),1))])),[[e(oe),e(u).loading.value,"region"]])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):R("",!0),d.value?(c(),I(e(Q),{key:1,onVnodeMounted:e(Y),onVnodeBeforeUnmount:e(W),modelValue:d.value,"onUpdate:modelValue":h[5]||(h[5]=m=>d.value=m),"append-to-body":"",title:e(a)("generated.systemConfigurationPage.mailTest"),width:"min(480px, calc(100vw - 32px))"},{footer:s(()=>[o(e(U),{onClick:h[4]||(h[4]=m=>d.value=!1)},{default:s(()=>[S(p(e(a)("common.cancel")),1)]),_:1}),o(e(U),{type:"primary",loading:e(u).busy.value,onClick:L},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.mailTestSend")),1)]),_:1},8,["loading"])]),default:s(()=>[o(e(X),{ref_key:"testForm",ref:x,model:K.value,rules:F,"label-position":"top"},{default:s(()=>[o(e(E),{label:e(a)("generated.systemConfigurationPage.mailAddress"),prop:"email"},{default:s(()=>[o(e(j),{modelValue:N.value,"onUpdate:modelValue":h[2]||(h[2]=m=>N.value=m),type:"email"},null,8,["modelValue"])]),_:1},8,["label"]),o(e(E),{label:e(a)("generated.systemConfigurationPage.mailTemplate"),prop:"templateId"},{default:s(()=>[o(e(ge),{modelValue:O.value,"onUpdate:modelValue":h[3]||(h[3]=m=>O.value=m),class:"template-test-select","clear-icon":e($)("clear-input"),"suffix-icon":e($)("chevron-down")},{default:s(()=>[(c(!0),T(Z,null,ie(D.value,m=>(c(),I(e(ee),{key:m.id,value:m.id,label:m.name},null,8,["value","label"]))),128))]),_:1},8,["modelValue","clear-icon","suffix-icon"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):R("",!0)],64))}}),qe=me(Re,[["__scopeId","data-v-5494f73e"]]),Le={class:"mar-management-page"},ze={class:"mar-table-actions"},Je=["aria-label"],He={key:1},Ze={key:3},Ge={key:4},We={class:"smtp-toggle"},Ye={class:"smtp-form__pair"},Qe={class:"smtp-template-row"},Xe={class:"smtp-dialog-hint"},ea=de({__name:"SystemConfigurationPage",props:{request:{type:Function},writable:{type:Boolean},settings:{}},setup(k){const M=k,u=Te(M.request,M.settings),_=C(),w=C(),y=C(""),g=C(!1),V=u.settings.find(r=>r.key==="mail-smtp"),v=C(!1),d=Ce({host:"",port:587,tls:"STARTTLS",from:"",fromName:"",username:"",password:""});let x="";const N={host:[{required:!0,pattern:/^[A-Za-z0-9](?:[A-Za-z0-9.-]{0,251}[A-Za-z0-9])?$/u,message:a("generated.systemConfigurationPage.smtpHostInvalid"),trigger:"blur"}],port:[{type:"integer",min:1,max:65535,required:!0,message:a("generated.systemConfigurationPage.smtpPortInvalid"),trigger:"change"}],tls:[{required:!0,trigger:"change"}],from:[{required:!0,pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/u,message:a("generated.systemConfigurationPage.smtpFromInvalid"),trigger:"blur"}],fromName:[{max:128,pattern:/^[^\r\n]*$/u,message:a("generated.systemConfigurationPage.smtpFromNameInvalid"),trigger:"blur"}],username:[{max:320,pattern:/^[^\r\n]*$/u,message:a("generated.systemConfigurationPage.smtpUsernameInvalid"),trigger:"blur"}],password:[{validator:(r,l,t)=>t(typeof l=="string"&&l.length<=1024&&(d.username===""?l==="":l!==""||d.username===x)?void 0:new Error(a("generated.systemConfigurationPage.smtpPasswordInvalid"))),trigger:"blur"}]},O=u.settings.find(r=>r.key==="html-preview-origin"),D={origin:[{validator:(r,l,t)=>t(u.validValue(O,l)?void 0:new Error(a("generated.systemConfigurationPage.htmlPreviewOriginInvalid"))),trigger:"change"}]},{snapshot:K,drafts:F,editingKey:i,savingKey:n,loading:f,beginEdit:q,cancelEdit:J}=u,L=C(!1),b=z(()=>({origin:F.value.htmlPreviewOrigin})),h=z(()=>u.settings.map(r=>({...r,name:a(r.nameKey),description:a(r.descriptionKey)})));ye(g,r=>{y.value="",r||(d.password="",x="",J("mail-smtp"))});function m(r){const l=F.value[r];return typeof l=="number"?l:void 0}function ae(r){const l=F.value[r];return typeof l=="string"?l:""}function pe(){if(!M.writable||(q("mail-smtp"),i.value!=="mail-smtp"))return;const r=JSON.parse(String(K.value.smtpConfiguration));v.value=Object.keys(r).length>0,Object.assign(d,{host:r.host??"",port:r.port??587,tls:r.tls??"STARTTLS",from:r.from??"",fromName:r.fromName??"",username:r.username??"",password:""}),x=r.username??"",g.value=i.value==="mail-smtp"}async function te(){try{await u.load(),L.value=!0}catch(r){L.value=!1,A(r instanceof Error?G(r):a("generated.systemConfigurationPage.unableToLoadSystemConfiguration"),"error",r)}}async function le(r){if(M.writable){if(y.value="",r==="html-preview-origin")try{await _.value?.validate()}catch{return}if(r==="mail-smtp")if(v.value){try{await w.value?.validate()}catch{return}const l=JSON.stringify({...d});if(!u.validValue(V,l)){y.value=a("generated.systemConfigurationPage.smtpInvalid");return}u.setDraft(r,l)}else{if(K.value.smtpConfiguration!=="{}")try{await he.confirm(a("generated.systemConfigurationPage.smtpDisableConfirmation"),a("generated.systemConfigurationPage.smtpDisableTitle"),{icon:$("warning"),type:"warning",confirmButtonText:a("generated.systemConfigurationPage.smtpDisableTitle"),cancelButtonText:a("common.cancel")})}catch(l){if(l==="cancel"||l==="close")return;A(l instanceof Error?G(l):a("generated.systemConfigurationPage.unableToSaveSystemConfiguration"),"error",l);return}if(!g.value||i.value!==r)return;u.setDraft(r,"{}")}try{await u.save(r)&&(r==="mail-smtp"&&(g.value=!1),A(a("generated.systemConfigurationPage.systemConfigurationSaved"),"success"))}catch(l){A(l instanceof Error?G(l):a("generated.systemConfigurationPage.unableToSaveSystemConfiguration"),"error",l)}}}return ve(()=>{te()}),(r,l)=>(c(),T("section",Le,[P("div",ze,[o(e(U),{icon:e($)("refresh"),disabled:e(f)||e(n)!==null,onClick:te},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.refresh")),1)]),_:1},8,["icon","disabled"])]),o(e(_e),{data:L.value?h.value:[],"row-key":"key","aria-busy":e(f)},be({default:s(()=>[o(e(H),{prop:"name",label:e(a)("generated.systemConfigurationPage.setting"),"min-width":"180"},null,8,["label"]),o(e(H),{prop:"description",label:e(a)("generated.systemConfigurationPage.description"),"min-width":"320"},null,8,["label"]),o(e(H),{label:e(a)("generated.systemConfigurationPage.value"),"min-width":"180"},{default:s(({row:t})=>[t.type==="number"&&e(i)===t.key?(c(),I(e(re),{key:0,"model-value":m(t.field),placeholder:t.placeholderKey===void 0?void 0:e(a)(t.placeholderKey),min:t.min,max:t.max,disabled:e(n)!==null,"onUpdate:modelValue":B=>e(u).setDraft(t.key,B)},{"decrease-icon":s(()=>[o(e(se),{name:"subtract"})]),"increase-icon":s(()=>[o(e(se),{name:"plus"})]),_:1},8,["model-value","placeholder","min","max","disabled","onUpdate:modelValue"])):t.type==="number"?(c(),T("span",He,p(e(K)[t.field]),1)):t.type==="origin"&&e(i)===t.key?(c(),I(e(X),{key:2,ref_key:"originForm",ref:_,model:b.value,rules:D},{default:s(()=>[o(e(E),{prop:"origin",class:"origin-setting-form"},{default:s(()=>[o(e(j),{"model-value":ae(t.field),placeholder:e(a)(t.placeholderKey),disabled:e(n)!==null,"onUpdate:modelValue":B=>e(u).setDraft(t.key,B)},null,8,["model-value","placeholder","disabled","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["model"])):t.type==="origin"?(c(),T("span",Ze,p(e(K)[t.field]||e(a)("generated.systemConfigurationPage.htmlPreviewCurrentOrigin")),1)):t.type==="json"?(c(),T("span",Ge,"-")):(c(),I(e(ue),{key:5,"model-value":e(F)[t.field]===!0,disabled:e(i)!==t.key||!k.writable||e(n)!==null,"onUpdate:modelValue":B=>e(u).setDraft(t.key,B)},null,8,["model-value","disabled","onUpdate:modelValue"]))]),_:1},8,["label"]),o(e(H),{label:e(a)("generated.systemConfigurationPage.actions"),"min-width":"220"},{default:s(({row:t})=>[e(i)!==t.key||t.type==="json"?(c(),I(e(U),{key:0,link:"",icon:e($)("edit"),disabled:!k.writable||e(i)!==null,onClick:B=>t.type==="json"?pe():e(q)(t.key)},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.edit")),1)]),_:1},8,["icon","disabled","onClick"])):(c(),T(Z,{key:1},[o(e(U),{link:"",type:"primary",icon:e($)("check"),loading:e(n)===t.key,disabled:!k.writable||e(n)!==null,onClick:B=>le(t.key)},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.save")),1)]),_:1},8,["icon","loading","disabled","onClick"]),o(e(U),{link:"",icon:e($)("close"),disabled:e(n)!==null,onClick:B=>e(J)(t.key)},{default:s(()=>[S(p(e(a)("common.cancel")),1)]),_:1},8,["icon","disabled","onClick"])],64))]),_:1},8,["label"])]),_:2},[e(f)?{name:"loading",fn:s(()=>[P("span",{role:"progressbar","aria-label":e(a)("common.loading")},[o(e(ce),{class:"mar-read-loading-indicator"})],8,Je)]),key:"0"}:void 0]),1032,["data","aria-busy"]),g.value?(c(),I(e(Q),{key:0,onVnodeMounted:e(Y),onVnodeBeforeUnmount:e(W),modelValue:g.value,"onUpdate:modelValue":l[10]||(l[10]=t=>g.value=t),title:e(a)("generated.systemConfigurationPage.smtp"),width:"min(620px, calc(100vw - 32px))","close-on-click-modal":e(n)===null,"close-on-press-escape":e(n)===null,"show-close":e(n)===null,"append-to-body":""},{footer:s(()=>[o(e(U),{disabled:e(n)!==null,onClick:l[8]||(l[8]=t=>g.value=!1)},{default:s(()=>[S(p(e(a)("common.cancel")),1)]),_:1},8,["disabled"]),o(e(U),{type:"primary",loading:e(n)==="mail-smtp",onClick:l[9]||(l[9]=t=>le("mail-smtp"))},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.save")),1)]),_:1},8,["loading"])]),default:s(()=>[P("div",We,[P("span",null,p(e(a)("generated.systemConfigurationPage.smtpEnable")),1),o(e(ue),{modelValue:v.value,"onUpdate:modelValue":l[0]||(l[0]=t=>v.value=t),disabled:e(n)!==null,"aria-label":e(a)("generated.systemConfigurationPage.smtpEnable")},null,8,["modelValue","disabled","aria-label"])]),v.value?(c(),I(e(X),{key:0,ref_key:"smtpForm",ref:w,model:d,rules:N,"label-position":"top",class:"smtp-form"},{default:s(()=>[y.value?(c(),I(e(Pe),{key:0,title:y.value,type:"error",closable:!1},null,8,["title"])):R("",!0),o(e(E),{label:e(a)("generated.systemConfigurationPage.smtpHost"),prop:"host"},{default:s(()=>[o(e(j),{modelValue:d.host,"onUpdate:modelValue":l[1]||(l[1]=t=>d.host=t),maxlength:"253",autocomplete:"off",disabled:e(n)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),P("div",Ye,[o(e(E),{label:e(a)("generated.systemConfigurationPage.smtpPort"),prop:"port"},{default:s(()=>[o(e(re),{modelValue:d.port,"onUpdate:modelValue":l[2]||(l[2]=t=>d.port=t),"aria-label":e(a)("generated.systemConfigurationPage.smtpPort"),min:1,max:65535,controls:!1,disabled:e(n)!==null},null,8,["modelValue","aria-label","disabled"])]),_:1},8,["label"]),o(e(E),{label:e(a)("generated.systemConfigurationPage.smtpTls"),prop:"tls"},{default:s(()=>[o(e(ge),{modelValue:d.tls,"onUpdate:modelValue":l[3]||(l[3]=t=>d.tls=t),disabled:e(n)!==null,"clear-icon":e($)("clear-input"),"suffix-icon":e($)("chevron-down")},{default:s(()=>[o(e(ee),{label:"STARTTLS",value:"STARTTLS"}),o(e(ee),{label:"TLS",value:"TLS"})]),_:1},8,["modelValue","disabled","clear-icon","suffix-icon"])]),_:1},8,["label"])]),o(e(E),{label:e(a)("generated.systemConfigurationPage.smtpFrom"),prop:"from"},{default:s(()=>[o(e(j),{modelValue:d.from,"onUpdate:modelValue":l[4]||(l[4]=t=>d.from=t),maxlength:"320",autocomplete:"off",disabled:e(n)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(e(E),{label:e(a)("generated.systemConfigurationPage.smtpFromName"),prop:"fromName"},{default:s(()=>[o(e(j),{modelValue:d.fromName,"onUpdate:modelValue":l[5]||(l[5]=t=>d.fromName=t),maxlength:"128",autocomplete:"off",disabled:e(n)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(e(E),{label:e(a)("generated.systemConfigurationPage.smtpUsername"),prop:"username"},{default:s(()=>[o(e(j),{modelValue:d.username,"onUpdate:modelValue":l[6]||(l[6]=t=>d.username=t),maxlength:"320",autocomplete:"off",disabled:e(n)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(e(E),{label:e(a)("generated.systemConfigurationPage.smtpPassword"),prop:"password"},{default:s(()=>[o(e(j),{modelValue:d.password,"onUpdate:modelValue":l[7]||(l[7]=t=>d.password=t),type:"password",maxlength:"1024",autocomplete:"new-password",placeholder:e(x)===d.username&&e(x)?e(a)("generated.systemConfigurationPage.smtpPasswordKeep"):void 0,disabled:e(n)!==null},null,8,["modelValue","placeholder","disabled"])]),_:1},8,["label"])]),_:1},8,["model"])):R("",!0),P("div",Qe,[o(qe,{request:k.request,writable:k.writable},null,8,["request","writable"])]),P("p",Xe,p(e(a)("generated.systemConfigurationPage.smtpDialogHint")),1)]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-on-click-modal","close-on-press-escape","show-close"])):R("",!0)]))}}),ma=me(ea,[["__scopeId","data-v-296e0178"]]);export{ma as default};
@@ -1 +1 @@
1
- import i from"./SystemConfigurationPage-tzL6wS2m.js";import{o as r,p as n,E as o}from"./index-DQ9kU1Cc.js";import"./mobile-dialog-return-service--zz60Ks1.js";import"./MarAlert-Bl7kQ0du.js";import"./MarInputNumber-B3eIv5Os.js";import"./MarTableColumn.vue_vue_type_script_setup_true_lang-kU1-WbGg.js";import"./MarFormItem.vue_vue_type_script_setup_true_lang-Okwfqcum.js";import"./MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-CGC5SL4E.js";import"./MarSwitch-BnYCo_-h.js";import"./conversation-history-5QEe5-Xb.js";import"./error-presentation-BefC7T_U.js";const P=r({__name:"SystemConfigurationPage",props:{request:{type:Function},writable:{type:Boolean}},setup(e){const t=[{key:"audit-retention",field:"auditRetentionDays",payloadField:"days",initialValue:180,nameKey:"generated.systemConfigurationPage.auditRetentionDays",descriptionKey:"generated.systemConfigurationPage.theServerRemovesExpiredEventsInBatches",type:"number",min:1,max:3650,placeholderKey:"generated.systemConfigurationPage.enterRetentionDays"}];return(a,s)=>(n(),o(i,{request:e.request,writable:e.writable,settings:t},null,8,["request","writable"]))}});export{P as default};
1
+ import i from"./SystemConfigurationPage-BTPMgVkv.js";import{o as r,p as n,E as o}from"./index-B3IkkUYN.js";import"./mobile-dialog-return-service-CG8tXuOd.js";import"./MarAlert-CGtOxlQN.js";import"./MarInputNumber-CbzDf1Ot.js";import"./MarTableColumn.vue_vue_type_script_setup_true_lang-gHvmrqE0.js";import"./MarFormItem.vue_vue_type_script_setup_true_lang-C5cd-7_h.js";import"./MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-BHbe1_lL.js";import"./MarSwitch-3lBVhMQk.js";import"./conversation-history-xNJepiv6.js";import"./error-presentation-Cb1V7Ot5.js";const P=r({__name:"SystemConfigurationPage",props:{request:{type:Function},writable:{type:Boolean}},setup(e){const t=[{key:"audit-retention",field:"auditRetentionDays",payloadField:"days",initialValue:180,nameKey:"generated.systemConfigurationPage.auditRetentionDays",descriptionKey:"generated.systemConfigurationPage.theServerRemovesExpiredEventsInBatches",type:"number",min:1,max:3650,placeholderKey:"generated.systemConfigurationPage.enterRetentionDays"}];return(a,s)=>(n(),o(i,{request:e.request,writable:e.writable,settings:t},null,8,["request","writable"]))}});export{P as default};
@@ -1 +1 @@
1
- import{M as a}from"./MarTag-DOa1CIVr.js";import{o as g,p as c,q as C,P as e,Q as o,G as t,t as s,u as l,F as i,S as d,E as f,a8 as y,I as h,_ as v}from"./index-DQ9kU1Cc.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(S,r)=>(c(),C("section",x,[e("div",{class:"system-brand","aria-label":t(s)("generated.settingsContent.myAgentRoamVersion")},[e("img",{src:n.logoUrl,alt:""},null,8,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,[l(t(a),{effect:"light",type:"success"},{default:i(()=>[d(o(t(s)("generated.settingsContent.running")),1)]),_:1})])]),e("div",null,[e("dt",null,o(t(s)("generated.settingsContent.serverConnection")),1),e("dd",null,[l(t(a),{type:n.authenticated?"success":"info",effect:"light"},{default:i(()=>[d(o(n.authenticated?t(s)("generated.settingsContent.connected"):t(s)("generated.settingsContent.disconnected")),1)]),_:1},8,["type"])])]),e("div",null,[e("dt",null,o(t(s)("generated.settingsContent.nodeConnections")),1),e("dd",null,[l(t(a),{type:n.onlineNodeCount>0?"success":"info",effect:"light"},{default:i(()=>[d(o(n.onlineNodeCount)+"/"+o(n.nodeCount),1)]),_:1},8,["type"])])])])],8,V),n.isAdmin&&n.extension?(c(),f(y(n.extension),{key:0,embedded:"",request:n.request,onImported:r[0]||(r[0]=k=>m("extensionChanged"))},null,40,["request"])):h("",!0)]))}}),p=v(B,[["__scopeId","data-v-a082d68d"]]);export{p as default};
1
+ import{M as a}from"./MarTag-DMOB3NAh.js";import{o as g,p as c,q as C,P as e,Q as o,G as t,t as s,u as l,F as i,S as d,E as f,a8 as y,I as h,_ as v}from"./index-B3IkkUYN.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(S,r)=>(c(),C("section",x,[e("div",{class:"system-brand","aria-label":t(s)("generated.settingsContent.myAgentRoamVersion")},[e("img",{src:n.logoUrl,alt:""},null,8,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,[l(t(a),{effect:"light",type:"success"},{default:i(()=>[d(o(t(s)("generated.settingsContent.running")),1)]),_:1})])]),e("div",null,[e("dt",null,o(t(s)("generated.settingsContent.serverConnection")),1),e("dd",null,[l(t(a),{type:n.authenticated?"success":"info",effect:"light"},{default:i(()=>[d(o(n.authenticated?t(s)("generated.settingsContent.connected"):t(s)("generated.settingsContent.disconnected")),1)]),_:1},8,["type"])])]),e("div",null,[e("dt",null,o(t(s)("generated.settingsContent.nodeConnections")),1),e("dd",null,[l(t(a),{type:n.onlineNodeCount>0?"success":"info",effect:"light"},{default:i(()=>[d(o(n.onlineNodeCount)+"/"+o(n.nodeCount),1)]),_:1},8,["type"])])])])],8,V),n.isAdmin&&n.extension?(c(),f(y(n.extension),{key:0,embedded:"",request:n.request,onImported:r[0]||(r[0]=k=>m("extensionChanged"))},null,40,["request"])):h("",!0)]))}}),p=v(B,[["__scopeId","data-v-a082d68d"]]);export{p as default};
@@ -1,4 +1,4 @@
1
- import{t as ke,o as Mn,at as Tn,aW as Pn,N as An,w as On,af as di,Z as In,a0 as Nn,aX as Hn,p as ui,q as Ms,P as Wn,G as Be,Q as At,I as Ts,E as Fn,F as _t,u as Ot,S as _i,a6 as zn,g as It,aY as $n,_ as Un}from"./index-DQ9kU1Cc.js";import{h as Kn,j as fi,k as qn}from"./FilePreviewLoading-2Syp6wN3.js";import{n as Vn}from"./scoped-http-service-FG03y5ua.js";import{T as Yn}from"./WorkbenchPage-CUj5QQ7N.js";import"./mobile-dialog-return-service--zz60Ks1.js";import"./uuid-BmNSYLtZ.js";import"./MarFormItem.vue_vue_type_script_setup_true_lang-Okwfqcum.js";import"./MarSwitch-BnYCo_-h.js";import"./error-presentation-BefC7T_U.js";import"./file-presentation-Cm7tx53N.js";import"./MarTabs-C7hanPYm.js";import"./time-presentation-D-jgCAR3.js";import"./conversation-history-5QEe5-Xb.js";import"./workbench-presentation-DXBlfgrH.js";import"./runner-presentation-BHYEIS4n.js";import"./AuthEntryPanel-Bd6x3JOa.js";import"./MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-BOfiw6jI.js";import"./MarCheckboxGroup-8rY5Ekzi.js";import"./MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-CGC5SL4E.js";import"./workbench-live-service-B0-Z_Ju8.js";import"./rfb-ByKEQGJ8.js";import"./workspace-direct-transfer-service-BnGIUGfJ.js";import"./mar-agent-reasoning-effort-DbNY3cCk.js";import"./hosted-conversation-template-client-L7Rhb7MY.js";import"./oauth-callback-MggdhKv9.js";import"./MarAlert-Bl7kQ0du.js";import"./code-navigation-target-BlnRe0-a.js";import"./NodeDetailsDialogs-DTmaumQ4.js";/* empty css */import"./MarDescriptionsItem-DvNfZzY8.js";import"./MarTag-DOa1CIVr.js";import"./EnvironmentSecretManager-biW8t6IP.js";import"./MarTableColumn.vue_vue_type_script_setup_true_lang-kU1-WbGg.js";import"./ManagementPagination-DEFhNfzJ.js";import"./management-url-service-C081xpdu.js";import"./MarInputNumber-B3eIv5Os.js";import"./MarDatePicker-CBvhc-DL.js";import"./mcp-center-service-CoorL4L_.js";import"./catalog-page-service-CCVWqT5s.js";import"./MarCascader-bOvxZ4ot.js";import"./enterprise-management-service-DKTwXqhb.js";var Xn=2,jn=1,Gn=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,d=r-h-t;return{cols:Math.max(Xn,Math.floor(d/e.css.cell.width)),rows:Math.max(jn,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]],Jn=[[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 Zn(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 Qn=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]:Zn(t,Jn)?0:t>=131072&&t<=196605||t>=196608&&t<=262141?2:1}charProperties(t,i){let s=this.wcwidth(t),r=s===0&&i!==0;if(r){let n=Zt.extractWidth(i);n===0?r=!1:n>s&&(s=n)}return Zt.createPropertyValue(0,s,r)}},eo=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?Ps.isErrorNoTelemetry(t)?new Ps(t.message+`
1
+ import{t as ke,o as Mn,at as Tn,aW as Pn,N as An,w as On,af as di,Z as In,a0 as Nn,aX as Hn,p as ui,q as Ms,P as Wn,G as Be,Q as At,I as Ts,E as Fn,F as _t,u as Ot,S as _i,a6 as zn,g as It,aY as $n,_ as Un}from"./index-B3IkkUYN.js";import{h as Kn,j as fi,k as qn}from"./FilePreviewLoading-CammeI4A.js";import{n as Vn}from"./scoped-http-service-5kYL0Fib.js";import{T as Yn}from"./WorkbenchPage-DHYvikn6.js";import"./mobile-dialog-return-service-CG8tXuOd.js";import"./uuid-BmNSYLtZ.js";import"./MarFormItem.vue_vue_type_script_setup_true_lang-C5cd-7_h.js";import"./MarSwitch-3lBVhMQk.js";import"./error-presentation-Cb1V7Ot5.js";import"./file-presentation-Cm7tx53N.js";import"./MarTabs-D9w1sYAH.js";import"./time-presentation-CGX0fu2B.js";import"./conversation-history-xNJepiv6.js";import"./workbench-presentation-DW7HPtQI.js";import"./runner-presentation-CGmJOKZE.js";import"./AuthEntryPanel-DUVr3U5r.js";import"./MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-CtCni3nG.js";import"./MarCheckboxGroup-Cgk8DStE.js";import"./MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-BHbe1_lL.js";import"./workbench-live-service-2DpRU5_0.js";import"./rfb-ByKEQGJ8.js";import"./workspace-direct-transfer-service-BnGIUGfJ.js";import"./mar-agent-reasoning-effort-f76o_p3x.js";import"./hosted-conversation-template-client-BSy0LNQL.js";import"./oauth-callback-D6671jvO.js";import"./MarAlert-CGtOxlQN.js";import"./code-navigation-target-BlnRe0-a.js";import"./NodeDetailsDialogs-ofcE-KSd.js";/* empty css */import"./MarDescriptionsItem-PKWvPHKq.js";import"./MarTag-DMOB3NAh.js";import"./EnvironmentSecretManager-DhOjQ6Wt.js";import"./MarTableColumn.vue_vue_type_script_setup_true_lang-gHvmrqE0.js";import"./ManagementPagination-B_4cYRub.js";import"./management-url-service-Cc7NaZUP.js";import"./MarInputNumber-CbzDf1Ot.js";import"./MarDatePicker-DtsUpf3F.js";import"./mcp-center-service-CL87MD6E.js";import"./catalog-page-service-wjfgPLSt.js";import"./MarCascader-DX-rB1zd.js";import"./enterprise-management-service-C8RkIi78.js";var Xn=2,jn=1,Gn=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,d=r-h-t;return{cols:Math.max(Xn,Math.floor(d/e.css.cell.width)),rows:Math.max(jn,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]],Jn=[[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 Zn(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 Qn=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]:Zn(t,Jn)?0:t>=131072&&t<=196605||t>=196608&&t<=262141?2:1}charProperties(t,i){let s=this.wcwidth(t),r=s===0&&i!==0;if(r){let n=Zt.extractWidth(i);n===0?r=!1:n>s&&(s=n)}return Zt.createPropertyValue(0,s,r)}},eo=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?Ps.isErrorNoTelemetry(t)?new Ps(t.message+`
2
2
 
3
3
  `+t.stack):new Error(t.message+`
4
4