@myagentroam/server 0.14.21 → 0.14.23

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 (445) 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 +6 -6
  5. package/web/assets/{AuditManagementPage-Cr7oF6YN.js → AuditManagementPage-B5fa0Ru6.js} +1 -1
  6. package/web/assets/AuthEntryPanel-1xQOJpPg.js +45 -0
  7. package/web/assets/AuthEntryPanel-CUZiP1ru.css +1 -0
  8. package/web/assets/CodeFileEditor-7nUMP6e6.css +1 -0
  9. package/web/assets/{CodeFileEditor-DGy7pGzV.js → CodeFileEditor-Cb6x1Ckb.js} +3 -3
  10. package/web/assets/{ConversationTemplateManagementPage-mNg8p3_W.js → ConversationTemplateManagementPage-BSjzR725.js} +1 -1
  11. package/web/assets/{ConversationTemplateManagementPage-CFxwvA03.js → ConversationTemplateManagementPage-DtyWv0S2.js} +1 -1
  12. package/web/assets/{EnterpriseUserManagementPage-Boym9rd_.js → EnterpriseUserManagementPage-pd-iiZ3w.js} +1 -1
  13. package/web/assets/{EnvironmentSecretManager-CK3a7ljQ.js → EnvironmentSecretManager-Ekv1oK7b.js} +1 -1
  14. package/web/assets/{FilePreviewLoading-BnLud9gq.js → FilePreviewLoading-BDGg8Mg5.js} +3 -3
  15. package/web/assets/FilePreviewLoading-rukHm0at.css +1 -0
  16. package/web/assets/HtmlPreviewFrame-BSDMXfbU.css +1 -0
  17. package/web/assets/HtmlPreviewFrame-DVLpM5AV.js +6 -0
  18. package/web/assets/{LicenseManagementPage-CNyO3YCN.js → LicenseManagementPage-N0rX-ulb.js} +1 -1
  19. package/web/assets/{ManagementPagination-DCu_S0Fr.js → ManagementPagination-CCVCiLYa.js} +1 -1
  20. package/web/assets/ManagementPagination-uT75MUXa.css +1 -0
  21. package/web/assets/MarAgentModelManagementPage-B2JSBZTk.js +1 -0
  22. package/web/assets/MarAgentModelManagementPage-BBpcpVrs.css +1 -0
  23. package/web/assets/MarAgentModelManagementPage-CABhjMb4.js +1 -0
  24. package/web/assets/MarAgentModelManagementPage-TgPNASoc.css +1 -0
  25. package/web/assets/{MarAlert-CvDJlLVl.js → MarAlert-D500t8rS.js} +1 -1
  26. package/web/assets/{MarCascader-CCM6uqPD.js → MarCascader-C7BhXYNG.js} +1 -1
  27. package/web/assets/MarCascader-CokdNRyW.css +1 -0
  28. package/web/assets/{MarCheckboxGroup-CkZgAXvs.js → MarCheckboxGroup-3QOenmrL.js} +1 -1
  29. package/web/assets/MarCheckboxGroup-BiQgEloj.css +1 -0
  30. package/web/assets/MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-TKIdQh5M.js +1 -0
  31. package/web/assets/{MarDatePicker-Dd5smVdZ.js → MarDatePicker-H2rA2Xx3.js} +1 -1
  32. package/web/assets/MarDatePicker-VbKu-sCA.css +1 -0
  33. package/web/assets/MarDescriptionsItem-o6sluFVj.css +1 -0
  34. package/web/assets/MarDescriptionsItem-yyZgsZwy.js +1 -0
  35. package/web/assets/{MarFormItem.vue_vue_type_script_setup_true_lang-BwDM_Txe.js → MarFormItem.vue_vue_type_script_setup_true_lang-Czp9obeU.js} +1 -1
  36. package/web/assets/MarInputNumber-DBf85WOS.css +1 -0
  37. package/web/assets/{MarInputNumber-ClXjxMHe.js → MarInputNumber-DLGr6Dd2.js} +1 -1
  38. package/web/assets/MarOptionGroup-4fGYT_Kl.css +1 -0
  39. package/web/assets/MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-rhcSiw-h.js +1 -0
  40. package/web/assets/{MarSwitch-BALOzpDc.js → MarSwitch-7mYp7yeX.js} +1 -1
  41. package/web/assets/MarSwitch-BPEPX6ll.css +1 -0
  42. package/web/assets/MarTableColumn-D2WF7C_N.css +1 -0
  43. package/web/assets/{MarTableColumn.vue_vue_type_script_setup_true_lang-C8aPC9xX.js → MarTableColumn.vue_vue_type_script_setup_true_lang-vd55_OJb.js} +1 -1
  44. package/web/assets/MarTabs-B8g4Mia7.css +1 -0
  45. package/web/assets/MarTabs-BsQsB_7-.js +1 -0
  46. package/web/assets/MarTag-9pKx4aWH.js +1 -0
  47. package/web/assets/MarTag-B2oetQRK.css +1 -0
  48. package/web/assets/MarkdownFilePreview-B3vmpJ_r.css +1 -0
  49. package/web/assets/{MarkdownFilePreview-B5xqjj8c.js → MarkdownFilePreview-BIPW4d9g.js} +2 -2
  50. package/web/assets/{McpDetailsDialog-DMN-Vs9P.js → McpDetailsDialog-vXMVhjE8.js} +1 -1
  51. package/web/assets/McpSourceManagementPage-Bmr-LJd9.css +1 -0
  52. package/web/assets/McpSourceManagementPage-DDhhMw-v.js +1 -0
  53. package/web/assets/{McpSourceManagementPage-BJI-5720.js → McpSourceManagementPage-Df6bcvjb.js} +1 -1
  54. package/web/assets/NodeDetailsDialogs-C5RC9L0C.css +1 -0
  55. package/web/assets/{NodeDetailsDialogs-Cxv7VW5f.js → NodeDetailsDialogs-DtYzQzwl.js} +1 -1
  56. package/web/assets/NodeManagementPage-BnIjLUvm.js +1 -0
  57. package/web/assets/NodeManagementPage-DTl1ImGE.js +1 -0
  58. package/web/assets/{OAuthManagementPage-Wa3O4ckY.js → OAuthManagementPage-UEc2WROx.js} +1 -1
  59. package/web/assets/{OrganizationManagementPage-D6acWy5h.js → OrganizationManagementPage-vo_tUJ_4.js} +1 -1
  60. package/web/assets/{RemoteDesktopPage-Cz2_l0qZ.js → RemoteDesktopPage-CC-qT1Wh.js} +1 -1
  61. package/web/assets/{ResourceManagementPanel-2ya7IK7i.css → ResourceManagementPanel-DMxAeQOn.css} +1 -1
  62. package/web/assets/ResourceManagementPanel-DQIVmd-M.css +1 -0
  63. package/web/assets/{ResourceManagementPanel-B1xaOK35.js → ResourceManagementPanel-mROH1tOg.js} +2 -2
  64. package/web/assets/ResourceManagementPanel.vue_vue_type_script_setup_true_lang-B4hzpvpK.js +1 -0
  65. package/web/assets/SecretManagementPage-5av4aSLT.js +1 -0
  66. package/web/assets/{SecretManagementPage-B-iweHqE.js → SecretManagementPage-DWCqoVKo.js} +1 -1
  67. package/web/assets/{SecretManagementPage.vue_vue_type_script_setup_true_lang-BO5OxzTd.js → SecretManagementPage.vue_vue_type_script_setup_true_lang-DKjnb9S9.js} +1 -1
  68. package/web/assets/SessionSharePage-DkfYmPYL.js +2 -0
  69. package/web/assets/SettingsContent-D4q5XYqy.js +1 -0
  70. package/web/assets/SettingsContent-PYdBksIB.js +1 -0
  71. package/web/assets/SettingsContent-ve-5z6vk.css +1 -0
  72. package/web/assets/SkillCenterPage-BiRAZZGm.js +1 -0
  73. package/web/assets/{SkillCenterPage-yBgwfAM_.js → SkillCenterPage-CtOMGHZP.js} +1 -1
  74. package/web/assets/SkillCenterPage-JeslSw5W.css +1 -0
  75. package/web/assets/{SkillDetailsDialog-CuB_jEZk.js → SkillDetailsDialog-DXpBv3ce.js} +1 -1
  76. package/web/assets/SkillSourceManagementPage-B0Ie5BQK.css +1 -0
  77. package/web/assets/SkillSourceManagementPage-BGHKLdM6.js +1 -0
  78. package/web/assets/{SkillSourceManagementPage-2S5Mshds.js → SkillSourceManagementPage-CQ1WqXdP.js} +1 -1
  79. package/web/assets/{StandaloneFilePreviewPage-ByMIYaKe.js → StandaloneFilePreviewPage-AsR6vpmt.js} +1 -1
  80. package/web/assets/StandaloneFilePreviewPage-Cse1FOac.css +1 -0
  81. package/web/assets/SystemConfigurationPage-BEyiRG_y.js +1 -0
  82. package/web/assets/{SystemConfigurationPage-Bb7U1ytb.js → SystemConfigurationPage-CSQM8TWY.js} +1 -1
  83. package/web/assets/SystemConfigurationPage-DQOdEPe7.css +1 -0
  84. package/web/assets/{SystemInformationPage--18Jcd9l.js → SystemInformationPage-B23dOkx0.js} +1 -1
  85. package/web/assets/{TerminalTabView-BNRXWmCH.js → TerminalTabView-DMORx6L0.js} +2 -2
  86. package/web/assets/{TerminalTabView-F2Y76MY3.css → TerminalTabView-Z1n4EhxY.css} +1 -1
  87. package/web/assets/WorkbenchPage-CkWpAS0N.css +1 -0
  88. package/web/assets/WorkbenchPage-Du_PvN33.js +22 -0
  89. package/web/assets/WorkspaceManagementPage-BJ325hez.js +1 -0
  90. package/web/assets/WorkspaceManagementPage-CTNhJqZO.js +1 -0
  91. package/web/assets/{abnfDiagram-VCTEODGH-C48Ik3aG.js → abnfDiagram-VCTEODGH-CbF8R9bX.js} +1 -1
  92. package/web/assets/{arc--sgmngos.js → arc-G4tQMtFw.js} +1 -1
  93. package/web/assets/{architectureDiagram-5GKGNRK7-BW84UTqw.js → architectureDiagram-5GKGNRK7-yQkDJ2Mp.js} +1 -1
  94. package/web/assets/{blockDiagram-OSKFZWR5-Dmr0t74Q.js → blockDiagram-OSKFZWR5-C3K1OXge.js} +1 -1
  95. package/web/assets/{c4Diagram-7LVT6UL2-CL6lA1nI.js → c4Diagram-7LVT6UL2-CKsIdOaB.js} +1 -1
  96. package/web/assets/{catalog-ownership-service-CVq13-rp.js → catalog-ownership-service-wgoJOycg.js} +1 -1
  97. package/web/assets/{catalog-page-service-BQ-BAPkS.js → catalog-page-service-CTg3cQLg.js} +1 -1
  98. package/web/assets/channel-JcRPObqz.js +1 -0
  99. package/web/assets/{chunk-2Q5K7J3B-CGfi6ziR.js → chunk-2Q5K7J3B-CH5Rr2Lp.js} +1 -1
  100. package/web/assets/{chunk-5VM5RSS4-x1D5AOzP.js → chunk-5VM5RSS4-DUUjYIQl.js} +1 -1
  101. package/web/assets/{chunk-F27PBJKO-Dg9TWFNw.js → chunk-F27PBJKO-DdTxmn0w.js} +1 -1
  102. package/web/assets/{chunk-HLEWEB6X-BprdGo37.js → chunk-HLEWEB6X-BYnym_Bp.js} +1 -1
  103. package/web/assets/{chunk-JWPE2WC7-Ch-M1d_A.js → chunk-JWPE2WC7-BAI3rHXT.js} +1 -1
  104. package/web/assets/{chunk-POPQ4Y6H-VjB0gdaF.js → chunk-POPQ4Y6H-DsnoAqKI.js} +1 -1
  105. package/web/assets/{chunk-SVP7TREG-wGuk17_c.js → chunk-SVP7TREG-BPiDWiDf.js} +1 -1
  106. package/web/assets/{chunk-XXDRQBXY-C5AUUxY1.js → chunk-XXDRQBXY-DP7HZtah.js} +1 -1
  107. package/web/assets/{chunk-ZLD2IHE6-DR0xVS4U.js → chunk-ZLD2IHE6-G07YgAM1.js} +1 -1
  108. package/web/assets/classDiagram-CYGNFDIV-BNltioSL.js +1 -0
  109. package/web/assets/classDiagram-v2-TLXNO2FR-BNltioSL.js +1 -0
  110. package/web/assets/{conversation-history-_CnB_k_W.js → conversation-history-SQD2LBNQ.js} +1 -1
  111. package/web/assets/{cose-bilkent-JH36ORCC-BkyjR0lC.js → cose-bilkent-JH36ORCC-CFr3vRNo.js} +1 -1
  112. package/web/assets/{cynefin-OW5HDTMX-nWrMAnxr.js → cynefin-OW5HDTMX-DqoJhri7.js} +1 -1
  113. package/web/assets/{cynefinDiagram-5FMLGOSQ-Dw6ZUEu2.js → cynefinDiagram-5FMLGOSQ-Cpu4iAdx.js} +1 -1
  114. package/web/assets/{dagre-OS7QT2EB-Cm2UY9Ly.js → dagre-OS7QT2EB-Cer6BxAo.js} +1 -1
  115. package/web/assets/{diagram-S7CK7UJ4-CUW01ACF.js → diagram-S7CK7UJ4-DAOBTm2T.js} +1 -1
  116. package/web/assets/{diagram-UQ7AKVKN-IQo7mmy9.js → diagram-UQ7AKVKN-CO6RRtl9.js} +1 -1
  117. package/web/assets/{diagram-VSXAHHWV-KJs4lkQd.js → diagram-VSXAHHWV-BwNt-2D8.js} +1 -1
  118. package/web/assets/{diagram-VX7I27RA-BUf4aplJ.js → diagram-VX7I27RA-BCTMVLfS.js} +1 -1
  119. package/web/assets/{diagram-Z3DM3KII-Ba8ayFg4.js → diagram-Z3DM3KII-BNgiUgGB.js} +1 -1
  120. package/web/assets/{ebnfDiagram-PWID7BFC-DUW4mc20.js → ebnfDiagram-PWID7BFC-npPfnvKX.js} +1 -1
  121. package/web/assets/{enterprise-management-service-DG-bFbe7.js → enterprise-management-service-BZWBsHic.js} +1 -1
  122. package/web/assets/{erDiagram-2YWLMYGG-Bimd4WyG.js → erDiagram-2YWLMYGG-BJAp3fKI.js} +1 -1
  123. package/web/assets/{error-presentation-O4h1hNT5.js → error-presentation-Ccwikeiv.js} +1 -1
  124. package/web/assets/{flowDiagram-T62WH6J4-BP6VYOYC.js → flowDiagram-T62WH6J4-ClPRulfJ.js} +1 -1
  125. package/web/assets/{ganttDiagram-EL5Y4UJY-DrpDlWaw.js → ganttDiagram-EL5Y4UJY-DgOPCAtV.js} +1 -1
  126. package/web/assets/{gitGraphDiagram-WWUBYQGX-CrH9Zerc.js → gitGraphDiagram-WWUBYQGX-3p5W6Oo3.js} +1 -1
  127. package/web/assets/{hosted-conversation-template-client-M95qIpoJ.js → hosted-conversation-template-client-DAqFOM-b.js} +1 -1
  128. package/web/assets/index-4ri7sg9_.js +1 -0
  129. package/web/assets/{index-CWP4xDu5.js → index-53hHKmz7.js} +2 -2
  130. package/web/assets/index-BCYMRL1I.js +1 -0
  131. package/web/assets/{index-CiKy4QB4.js → index-BuRZrygH.js} +1 -1
  132. package/web/assets/index-Bx6L1lR0.js +1 -0
  133. package/web/assets/index-C8YCI0hR.js +1 -0
  134. package/web/assets/index-CFNjdHUg.js +1 -0
  135. package/web/assets/index-CHwPIziC.css +1 -0
  136. package/web/assets/index-CYyYP3yw.js +1 -0
  137. package/web/assets/index-CjhZjGj8.js +7 -0
  138. package/web/assets/index-CkfU0M65.js +1 -0
  139. package/web/assets/{index-31u2XoZR.js → index-CrmtfMBJ.js} +6 -6
  140. package/web/assets/index-CuoTWU16.js +1 -0
  141. package/web/assets/index-DAROio_R.js +1 -0
  142. package/web/assets/index-DH7YBSbi.js +1 -0
  143. package/web/assets/{index-B8wn7tis.js → index-DoADQjRL.js} +1 -1
  144. package/web/assets/index-Dqw7Crk7.js +1 -0
  145. package/web/assets/index-Dtn3zYb_.js +1 -0
  146. package/web/assets/{index-ynnKNwhX.js → index-DyomHSWn.js} +1 -1
  147. package/web/assets/index-K8i498jY.js +1 -0
  148. package/web/assets/{index-C0_YVAJd.js → index-KgzhHgpV.js} +2 -2
  149. package/web/assets/index-Kr0X_K6H.js +1 -0
  150. package/web/assets/index-LAjeRYzi.js +3 -0
  151. package/web/assets/index-Nu_UIFyA.js +13 -0
  152. package/web/assets/index-VE1sGhVD.js +1 -0
  153. package/web/assets/index-WNrYqz1R.js +1 -0
  154. package/web/assets/{index-ugcvQYnn.js → index-kP_L4CVa.js} +1 -1
  155. package/web/assets/{index-BN571bbA.js → index-zy7rl65Q.js} +1 -1
  156. package/web/assets/{infoDiagram-FKFFQAWI-CpUJubQM.js → infoDiagram-FKFFQAWI-CPf9mOek.js} +1 -1
  157. package/web/assets/{ishikawaDiagram-5VMMS53U-PWZb7naO.js → ishikawaDiagram-5VMMS53U-D-UzJyor.js} +1 -1
  158. package/web/assets/{journeyDiagram-EYS64GPL-Dg2j4nAs.js → journeyDiagram-EYS64GPL-Hr0oU7PG.js} +1 -1
  159. package/web/assets/{kanban-definition-UXKFOSKX-VGa5JB-3.js → kanban-definition-UXKFOSKX-ChlGu-mo.js} +1 -1
  160. package/web/assets/{layout-DCKvyv5D.js → layout-CNKzs0FB.js} +1 -1
  161. package/web/assets/{linear-6KdXa5Y6.js → linear-C0uZB5F8.js} +1 -1
  162. package/web/assets/management-detail-CUfatHj5.css +1 -0
  163. package/web/assets/{management-url-service-D1fIuTNo.js → management-url-service-Bb-0dgwo.js} +1 -1
  164. package/web/assets/{mcp-center-service-DZqRelcq.js → mcp-center-service-BxnC_j1t.js} +1 -1
  165. package/web/assets/mcp-center-service-CYcUibEl.css +1 -0
  166. package/web/assets/{mermaid.core-CbZC3sij.js → mermaid.core-S1c6Otsx.js} +5 -5
  167. package/web/assets/{mindmap-definition-THT77NOG-DvXutDoR.js → mindmap-definition-THT77NOG-DlFGUjn8.js} +1 -1
  168. package/web/assets/{mobile-dialog-return-service-_7w5rD8m.js → mobile-dialog-return-service-M9nvSnDt.js} +1 -1
  169. package/web/assets/{oauth-callback-ocJxYFsi.js → oauth-callback-B4JHgHhY.js} +1 -1
  170. package/web/assets/{pegDiagram-XKGWAZYB-KzK2ev4x.js → pegDiagram-XKGWAZYB-4viQk9z9.js} +1 -1
  171. package/web/assets/{pieDiagram-E7YTZNPT-ew0vf3Ko.js → pieDiagram-E7YTZNPT-CG718Wd4.js} +1 -1
  172. package/web/assets/{quadrantDiagram-AXDQQJYC-Dg4PllIK.js → quadrantDiagram-AXDQQJYC-Cy7_OhC5.js} +1 -1
  173. package/web/assets/{railroadDiagram-O6MQD6OU-Ds03N6Cb.js → railroadDiagram-O6MQD6OU-ySdR0LID.js} +1 -1
  174. package/web/assets/{requirementDiagram-IS5BZ75X-DhPM-HTx.js → requirementDiagram-IS5BZ75X-DyC5KMn-.js} +1 -1
  175. package/web/assets/{runner-presentation-CD9-YidO.js → runner-presentation-BIJQJj1n.js} +1 -1
  176. package/web/assets/{sankeyDiagram-P5KCCOFB-DoYPvoww.js → sankeyDiagram-P5KCCOFB-BupD87Do.js} +1 -1
  177. package/web/assets/{sequenceDiagram-WJ2MYXX4-Gq-I7MNW.js → sequenceDiagram-WJ2MYXX4-OYSSOJqt.js} +1 -1
  178. package/web/assets/{session-share-client-service-DGAVTfe9.js → session-share-client-service-BLOVgsIC.js} +1 -1
  179. package/web/assets/{sizeCapture-INFHLROL-lz3s4CAU.js → sizeCapture-INFHLROL-DqWNWSzp.js} +1 -1
  180. package/web/assets/{stateDiagram-XQSTLZYL-Bp7ZlrnG.js → stateDiagram-XQSTLZYL-o3mc3hAj.js} +1 -1
  181. package/web/assets/stateDiagram-v2-IH3M54BS-BPP8jqQV.js +1 -0
  182. package/web/assets/{swimlanes-V6O3JKXN-9xYA0pGe.js → swimlanes-V6O3JKXN-CUWzUIhG.js} +1 -1
  183. package/web/assets/swimlanesDiagram-JKAHXJPX-DGrTU1j0.js +8 -0
  184. package/web/assets/{time-presentation-BGt2rO0m.js → time-presentation-BOZ_Ihp3.js} +1 -1
  185. package/web/assets/{timeline-definition-24CTP7MA-B0SKViEZ.js → timeline-definition-24CTP7MA-BDMvnXzc.js} +1 -1
  186. package/web/assets/{vennDiagram-4TSXK5OY-B5bx0qZ2.js → vennDiagram-4TSXK5OY-DyMr7nkA.js} +1 -1
  187. package/web/assets/{wardleyDiagram-VM6X3IG4-Bn1rL8bV.js → wardleyDiagram-VM6X3IG4-m3_VgyNR.js} +1 -1
  188. package/web/assets/{workbench-live-service-BRZqI5Nj.js → workbench-live-service-nWvp6odX.js} +1 -1
  189. package/web/assets/workbench-presentation-BUoabdhf.css +1 -0
  190. package/web/assets/{workbench-presentation-Bwuv6xKh.js → workbench-presentation-DL6R7ZeV.js} +1 -1
  191. package/web/assets/{xychartDiagram-S5SC5T6Z-4LfHNN7u.js → xychartDiagram-S5SC5T6Z-B0SGTtgO.js} +1 -1
  192. package/web/docs/404.html +2 -2
  193. package/web/docs/administration/account.html +3 -3
  194. package/web/docs/administration/audit.html +3 -3
  195. package/web/docs/administration/conversation-templates.html +3 -3
  196. package/web/docs/administration/email-notifications.html +3 -3
  197. package/web/docs/administration/license.html +3 -3
  198. package/web/docs/administration/nodes-workspaces.html +3 -3
  199. package/web/docs/administration/oauth.html +3 -3
  200. package/web/docs/administration/secrets.html +3 -3
  201. package/web/docs/administration/template-workspace-maintenance.html +3 -3
  202. package/web/docs/administration/users-organizations.html +3 -3
  203. package/web/docs/assets/{app.DmTy3h_4.js → app.C3SKrHtv.js} +1 -1
  204. package/web/docs/assets/chunks/@localSearchIndexen-US.BM-BwVSM.js +1 -0
  205. package/web/docs/assets/chunks/@localSearchIndexroot.DOLoaqoP.js +1 -0
  206. package/web/docs/assets/chunks/{VPLocalSearchBox.DEyZYecx.js → VPLocalSearchBox.cRrQPyZ3.js} +1 -1
  207. package/web/docs/assets/chunks/{theme.BHezt5T-.js → theme.D4lDge-f.js} +2 -2
  208. package/web/docs/assets/{concepts_node-and-workspace.md.D4tWJ_5A.js → concepts_node-and-workspace.md.D4_8X2QZ.js} +1 -1
  209. package/web/docs/assets/{concepts_node-and-workspace.md.D4tWJ_5A.lean.js → concepts_node-and-workspace.md.D4_8X2QZ.lean.js} +1 -1
  210. package/web/docs/assets/{en-US_concepts_node-and-workspace.md.Bm7rEIAI.js → en-US_concepts_node-and-workspace.md.BLl1KHPj.js} +1 -1
  211. package/web/docs/assets/{en-US_concepts_node-and-workspace.md.Bm7rEIAI.lean.js → en-US_concepts_node-and-workspace.md.BLl1KHPj.lean.js} +1 -1
  212. package/web/docs/assets/en-US_workbench_conversation.md.BZz5Jp41.js +1 -0
  213. package/web/docs/assets/{en-US_workbench_conversation.md.BozaRlS1.lean.js → en-US_workbench_conversation.md.BZz5Jp41.lean.js} +1 -1
  214. package/web/docs/assets/en-US_workbench_hosted-conversations.md.DpwXelRz.js +1 -0
  215. package/web/docs/assets/{en-US_workbench_hosted-conversations.md.CcO8A8zp.lean.js → en-US_workbench_hosted-conversations.md.DpwXelRz.lean.js} +1 -1
  216. package/web/docs/assets/en-US_workbench_mobile.md.BxKIDv0f.js +1 -0
  217. package/web/docs/assets/{en-US_workbench_mobile.md.DDen0FQw.lean.js → en-US_workbench_mobile.md.BxKIDv0f.lean.js} +1 -1
  218. package/web/docs/assets/en-US_workbench_navigation.md.Di-eqadW.js +1 -0
  219. package/web/docs/assets/{en-US_workbench_navigation.md.D8h60ukI.lean.js → en-US_workbench_navigation.md.Di-eqadW.lean.js} +1 -1
  220. package/web/docs/assets/{workbench_conversation.md.H24F6OKx.js → workbench_conversation.md.BTGZE4nI.js} +1 -1
  221. package/web/docs/assets/{workbench_conversation.md.H24F6OKx.lean.js → workbench_conversation.md.BTGZE4nI.lean.js} +1 -1
  222. package/web/docs/assets/workbench_hosted-conversations.md.CKQQV0jr.js +1 -0
  223. package/web/docs/assets/{workbench_hosted-conversations.md.BaEkkoGR.lean.js → workbench_hosted-conversations.md.CKQQV0jr.lean.js} +1 -1
  224. package/web/docs/assets/workbench_mobile.md.D_Sao30O.js +1 -0
  225. package/web/docs/assets/{workbench_mobile.md.B6WydCWD.lean.js → workbench_mobile.md.D_Sao30O.lean.js} +1 -1
  226. package/web/docs/assets/workbench_navigation.md.B_6JfpL-.js +1 -0
  227. package/web/docs/assets/workbench_navigation.md.B_6JfpL-.lean.js +1 -0
  228. package/web/docs/concepts/architecture.html +3 -3
  229. package/web/docs/concepts/data-and-security.html +3 -3
  230. package/web/docs/concepts/files-git-terminal.html +3 -3
  231. package/web/docs/concepts/node-and-workspace.html +5 -5
  232. package/web/docs/concepts/permissions-and-sharing.html +3 -3
  233. package/web/docs/concepts/runner-control.html +3 -3
  234. package/web/docs/concepts/secrets.html +3 -3
  235. package/web/docs/concepts/session-run-turn.html +3 -3
  236. package/web/docs/deployment/backup-restore.html +3 -3
  237. package/web/docs/deployment/network.html +3 -3
  238. package/web/docs/deployment/node-installation.html +3 -3
  239. package/web/docs/deployment/node-linux.html +3 -3
  240. package/web/docs/deployment/node-macos.html +3 -3
  241. package/web/docs/deployment/node-windows.html +3 -3
  242. package/web/docs/deployment/production.html +3 -3
  243. package/web/docs/deployment/security-checklist.html +3 -3
  244. package/web/docs/deployment/upgrade.html +3 -3
  245. package/web/docs/en-US/administration/account.html +3 -3
  246. package/web/docs/en-US/administration/audit.html +3 -3
  247. package/web/docs/en-US/administration/conversation-templates.html +3 -3
  248. package/web/docs/en-US/administration/email-notifications.html +3 -3
  249. package/web/docs/en-US/administration/license.html +3 -3
  250. package/web/docs/en-US/administration/nodes-workspaces.html +3 -3
  251. package/web/docs/en-US/administration/oauth.html +3 -3
  252. package/web/docs/en-US/administration/secrets.html +3 -3
  253. package/web/docs/en-US/administration/template-workspace-maintenance.html +3 -3
  254. package/web/docs/en-US/administration/users-organizations.html +3 -3
  255. package/web/docs/en-US/concepts/architecture.html +3 -3
  256. package/web/docs/en-US/concepts/data-and-security.html +3 -3
  257. package/web/docs/en-US/concepts/files-git-terminal.html +3 -3
  258. package/web/docs/en-US/concepts/node-and-workspace.html +5 -5
  259. package/web/docs/en-US/concepts/permissions-and-sharing.html +3 -3
  260. package/web/docs/en-US/concepts/runner-control.html +3 -3
  261. package/web/docs/en-US/concepts/secrets.html +3 -3
  262. package/web/docs/en-US/concepts/session-run-turn.html +3 -3
  263. package/web/docs/en-US/deployment/backup-restore.html +3 -3
  264. package/web/docs/en-US/deployment/network.html +3 -3
  265. package/web/docs/en-US/deployment/node-installation.html +3 -3
  266. package/web/docs/en-US/deployment/node-linux.html +3 -3
  267. package/web/docs/en-US/deployment/node-macos.html +3 -3
  268. package/web/docs/en-US/deployment/node-windows.html +3 -3
  269. package/web/docs/en-US/deployment/production.html +3 -3
  270. package/web/docs/en-US/deployment/security-checklist.html +3 -3
  271. package/web/docs/en-US/deployment/upgrade.html +3 -3
  272. package/web/docs/en-US/getting-started/connect-node.html +3 -3
  273. package/web/docs/en-US/getting-started/first-agent-session.html +3 -3
  274. package/web/docs/en-US/getting-started/first-login.html +3 -3
  275. package/web/docs/en-US/getting-started/next-steps.html +3 -3
  276. package/web/docs/en-US/getting-started/npm-quick-start.html +3 -3
  277. package/web/docs/en-US/getting-started/overview.html +3 -3
  278. package/web/docs/en-US/getting-started/prerequisites.html +3 -3
  279. package/web/docs/en-US/getting-started/register-workspace.html +3 -3
  280. package/web/docs/en-US/getting-started/server-installation.html +3 -3
  281. package/web/docs/en-US/operations/marctl.html +3 -3
  282. package/web/docs/en-US/reference/configuration.html +3 -3
  283. package/web/docs/en-US/reference/keyboard-shortcuts.html +3 -3
  284. package/web/docs/en-US/reference/limits.html +3 -3
  285. package/web/docs/en-US/reference/ports-paths-data.html +3 -3
  286. package/web/docs/en-US/reference/status-and-errors.html +3 -3
  287. package/web/docs/en-US/runners/claude-code.html +3 -3
  288. package/web/docs/en-US/runners/codex.html +3 -3
  289. package/web/docs/en-US/runners/mar-agent.html +3 -3
  290. package/web/docs/en-US/runners/opencode.html +3 -3
  291. package/web/docs/en-US/runners/overview.html +3 -3
  292. package/web/docs/en-US/runners/runner-troubleshooting.html +3 -3
  293. package/web/docs/en-US/troubleshooting/node-offline.html +3 -3
  294. package/web/docs/en-US/troubleshooting/quick-diagnosis.html +3 -3
  295. package/web/docs/en-US/troubleshooting/session-run.html +3 -3
  296. package/web/docs/en-US/troubleshooting/terminal.html +3 -3
  297. package/web/docs/en-US/troubleshooting/workspace-files.html +3 -3
  298. package/web/docs/en-US/workbench/composer.html +3 -3
  299. package/web/docs/en-US/workbench/context-and-plan.html +3 -3
  300. package/web/docs/en-US/workbench/conversation.html +5 -5
  301. package/web/docs/en-US/workbench/file-reference-and-attachment.html +3 -3
  302. package/web/docs/en-US/workbench/files.html +3 -3
  303. package/web/docs/en-US/workbench/git-changes.html +3 -3
  304. package/web/docs/en-US/workbench/git-history.html +3 -3
  305. package/web/docs/en-US/workbench/hosted-conversations.html +5 -5
  306. package/web/docs/en-US/workbench/mobile.html +5 -5
  307. package/web/docs/en-US/workbench/navigation.html +5 -5
  308. package/web/docs/en-US/workbench/remote-desktop.html +3 -3
  309. package/web/docs/en-US/workbench/sessions.html +3 -3
  310. package/web/docs/en-US/workbench/skills.html +3 -3
  311. package/web/docs/en-US/workbench/terminal.html +3 -3
  312. package/web/docs/getting-started/connect-node.html +3 -3
  313. package/web/docs/getting-started/first-agent-session.html +3 -3
  314. package/web/docs/getting-started/first-login.html +3 -3
  315. package/web/docs/getting-started/next-steps.html +3 -3
  316. package/web/docs/getting-started/npm-quick-start.html +3 -3
  317. package/web/docs/getting-started/overview.html +3 -3
  318. package/web/docs/getting-started/prerequisites.html +3 -3
  319. package/web/docs/getting-started/register-workspace.html +3 -3
  320. package/web/docs/getting-started/server-installation.html +3 -3
  321. package/web/docs/hashmap.json +1 -1
  322. package/web/docs/operations/marctl.html +3 -3
  323. package/web/docs/reference/configuration.html +3 -3
  324. package/web/docs/reference/keyboard-shortcuts.html +3 -3
  325. package/web/docs/reference/limits.html +3 -3
  326. package/web/docs/reference/ports-paths-data.html +3 -3
  327. package/web/docs/reference/status-and-errors.html +3 -3
  328. package/web/docs/runners/claude-code.html +3 -3
  329. package/web/docs/runners/codex.html +3 -3
  330. package/web/docs/runners/mar-agent.html +3 -3
  331. package/web/docs/runners/opencode.html +3 -3
  332. package/web/docs/runners/overview.html +3 -3
  333. package/web/docs/runners/runner-troubleshooting.html +3 -3
  334. package/web/docs/troubleshooting/node-offline.html +3 -3
  335. package/web/docs/troubleshooting/quick-diagnosis.html +3 -3
  336. package/web/docs/troubleshooting/session-run.html +3 -3
  337. package/web/docs/troubleshooting/terminal.html +3 -3
  338. package/web/docs/troubleshooting/workspace-files.html +3 -3
  339. package/web/docs/workbench/composer.html +3 -3
  340. package/web/docs/workbench/context-and-plan.html +3 -3
  341. package/web/docs/workbench/conversation.html +5 -5
  342. package/web/docs/workbench/file-reference-and-attachment.html +3 -3
  343. package/web/docs/workbench/files.html +3 -3
  344. package/web/docs/workbench/git-changes.html +3 -3
  345. package/web/docs/workbench/git-history.html +3 -3
  346. package/web/docs/workbench/hosted-conversations.html +5 -5
  347. package/web/docs/workbench/mobile.html +5 -5
  348. package/web/docs/workbench/navigation.html +5 -5
  349. package/web/docs/workbench/remote-desktop.html +3 -3
  350. package/web/docs/workbench/sessions.html +3 -3
  351. package/web/docs/workbench/skills.html +3 -3
  352. package/web/docs/workbench/terminal.html +3 -3
  353. package/web/index.html +8 -8
  354. package/web/manifest.webmanifest +2 -2
  355. package/web/service-worker.js +1 -1
  356. package/web/web-version.json +1 -1
  357. package/web/assets/AuthEntryPanel-BM-2QrH9.js +0 -45
  358. package/web/assets/AuthEntryPanel-l6WVnbAz.css +0 -1
  359. package/web/assets/CodeFileEditor-74gF6zpJ.css +0 -1
  360. package/web/assets/FilePreviewLoading-DAuBec42.css +0 -1
  361. package/web/assets/HtmlPreviewFrame-B6zYTOOF.css +0 -1
  362. package/web/assets/HtmlPreviewFrame-D7aQbM7T.js +0 -6
  363. package/web/assets/ManagementPagination-DNcOOtL2.css +0 -1
  364. package/web/assets/MarAgentModelManagementPage-CueEYBh4.js +0 -1
  365. package/web/assets/MarAgentModelManagementPage-Cxop_kO6.css +0 -1
  366. package/web/assets/MarAgentModelManagementPage-DumePFkg.css +0 -1
  367. package/web/assets/MarAgentModelManagementPage-DyQjyRkG.js +0 -1
  368. package/web/assets/MarCascader-BtOyCcnf.css +0 -1
  369. package/web/assets/MarCheckboxGroup-DezeRqm8.css +0 -1
  370. package/web/assets/MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-DdPkkcjK.js +0 -1
  371. package/web/assets/MarDatePicker-CPheHWyo.css +0 -1
  372. package/web/assets/MarDescriptionsItem-BUJ-2T9e.js +0 -1
  373. package/web/assets/MarDescriptionsItem-Dv4h1Q7h.css +0 -1
  374. package/web/assets/MarInputNumber-C3s8idO0.css +0 -1
  375. package/web/assets/MarOptionGroup-C7ey_xDp.css +0 -1
  376. package/web/assets/MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-0CVezpJG.js +0 -1
  377. package/web/assets/MarSwitch-D1d-qHkV.css +0 -1
  378. package/web/assets/MarTableColumn-CegbzuYU.css +0 -1
  379. package/web/assets/MarTabs-DkOJ_ba5.js +0 -1
  380. package/web/assets/MarTabs-_CgbkN4T.css +0 -1
  381. package/web/assets/MarTag-Bg1BjvXw.js +0 -1
  382. package/web/assets/MarTag-Bqa2l4XX.css +0 -1
  383. package/web/assets/MarkdownFilePreview-BW1KXfm1.css +0 -1
  384. package/web/assets/McpSourceManagementPage-B95FosB5.css +0 -1
  385. package/web/assets/McpSourceManagementPage-To9_lvB8.js +0 -1
  386. package/web/assets/NodeDetailsDialogs-BELIiDu3.css +0 -1
  387. package/web/assets/NodeManagementPage-B0oKMzMW.js +0 -1
  388. package/web/assets/NodeManagementPage-DC1H3D7N.js +0 -1
  389. package/web/assets/ResourceManagementPanel-CcWq-1TL.css +0 -1
  390. package/web/assets/ResourceManagementPanel.vue_vue_type_script_setup_true_lang-DbgE0geq.js +0 -1
  391. package/web/assets/SecretManagementPage-BymeGV_Z.js +0 -1
  392. package/web/assets/SessionSharePage-C6PuWUje.js +0 -2
  393. package/web/assets/SettingsContent-B7rFUCih.js +0 -1
  394. package/web/assets/SettingsContent-C6JZTQ5b.css +0 -1
  395. package/web/assets/SettingsContent-DyULvT-H.js +0 -1
  396. package/web/assets/SkillCenterPage-D5TreDuv.css +0 -1
  397. package/web/assets/SkillCenterPage-DVueoR_q.js +0 -1
  398. package/web/assets/SkillSourceManagementPage-B4Z79_2e.js +0 -1
  399. package/web/assets/SkillSourceManagementPage-D9ZyajXy.css +0 -1
  400. package/web/assets/StandaloneFilePreviewPage-BSuQHrhC.css +0 -1
  401. package/web/assets/SystemConfigurationPage-BBujsmAq.css +0 -1
  402. package/web/assets/SystemConfigurationPage-Bw3qMm4W.js +0 -1
  403. package/web/assets/WorkbenchPage-D6K8gP0L.css +0 -1
  404. package/web/assets/WorkbenchPage-DmegEB0i.js +0 -22
  405. package/web/assets/WorkspaceManagementPage-J6qLq1bu.js +0 -1
  406. package/web/assets/WorkspaceManagementPage-Um_T2zTy.js +0 -1
  407. package/web/assets/channel-QM59w7JE.js +0 -1
  408. package/web/assets/classDiagram-CYGNFDIV-CCWHEQjI.js +0 -1
  409. package/web/assets/classDiagram-v2-TLXNO2FR-CCWHEQjI.js +0 -1
  410. package/web/assets/code-syntax-theme-CqjzFmgs.css +0 -1
  411. package/web/assets/index-5rnkcDai.js +0 -1
  412. package/web/assets/index-9o6RSxtj.js +0 -7
  413. package/web/assets/index-B7ijKckh.js +0 -1
  414. package/web/assets/index-B92-95jJ.js +0 -1
  415. package/web/assets/index-BCVrDHgp.js +0 -1
  416. package/web/assets/index-BLq2XY0T.js +0 -3
  417. package/web/assets/index-BVU8N8Lt.js +0 -1
  418. package/web/assets/index-CA0zvYLr.css +0 -1
  419. package/web/assets/index-CRpAjeah.js +0 -1
  420. package/web/assets/index-Cl2qL6G8.js +0 -1
  421. package/web/assets/index-Cvf73ufQ.js +0 -1
  422. package/web/assets/index-Cyklu_GI.js +0 -1
  423. package/web/assets/index-D0-9k1IT.js +0 -13
  424. package/web/assets/index-DDEUjjtz.js +0 -1
  425. package/web/assets/index-D_O-XdVH.js +0 -1
  426. package/web/assets/index-Sy3BnSuq.js +0 -1
  427. package/web/assets/index-gZTJv95e.js +0 -1
  428. package/web/assets/index-hPG57PUQ.js +0 -1
  429. package/web/assets/index-ohlXJ1ha.js +0 -1
  430. package/web/assets/index-tzclfIhw.js +0 -1
  431. package/web/assets/management-detail-BKgaobZ5.css +0 -1
  432. package/web/assets/mcp-center-service-DaswFG-J.css +0 -1
  433. package/web/assets/stateDiagram-v2-IH3M54BS-4mpP9i6C.js +0 -1
  434. package/web/assets/swimlanesDiagram-JKAHXJPX-DbHvZfra.js +0 -8
  435. package/web/assets/workbench-presentation-Bon-njr-.css +0 -1
  436. package/web/docs/assets/chunks/@localSearchIndexen-US.0QRMR9r6.js +0 -1
  437. package/web/docs/assets/chunks/@localSearchIndexroot.BJjh8bZ0.js +0 -1
  438. package/web/docs/assets/en-US_workbench_conversation.md.BozaRlS1.js +0 -1
  439. package/web/docs/assets/en-US_workbench_hosted-conversations.md.CcO8A8zp.js +0 -1
  440. package/web/docs/assets/en-US_workbench_mobile.md.DDen0FQw.js +0 -1
  441. package/web/docs/assets/en-US_workbench_navigation.md.D8h60ukI.js +0 -1
  442. package/web/docs/assets/workbench_hosted-conversations.md.BaEkkoGR.js +0 -1
  443. package/web/docs/assets/workbench_mobile.md.B6WydCWD.js +0 -1
  444. package/web/docs/assets/workbench_navigation.md.BkHT3jFs.js +0 -1
  445. package/web/docs/assets/workbench_navigation.md.BkHT3jFs.lean.js +0 -1
@@ -1 +0,0 @@
1
- import{m as ke,bO as De,o as n,n as p,D as e,a2 as Le,bP as kt,a3 as _e,L as t,N as a,bQ as wt,P as m,_ as we,X as Oe,a7 as B,Y as le,q as i,Q as N,B as U,T as Me,C as r,O as ve,a8 as te,F as q,f as I,k as Y,bR as St,U as X,bS as dt,H as pt,l as ze,bT as _t,aq as Tt,bU as $t,J as Ue,W as Ye,S as Ie,a6 as $e,bV as Fe,V as Ce,E as J,ac as Ct,ai as mt,t as o,p as Je,Z as xt,aO as vt,aF as Pt,K as ht,bW as Qe,bX as Vt,bY as Xe,bZ as et,w as Ne,b_ as It,R as Mt,aa as Et,b$ as Rt,bs as Ut,$ as qt,c0 as tt,c1 as Nt,c2 as Gt}from"./index-31u2XoZR.js";import{M as Ke}from"./workbench-presentation-Bwuv6xKh.js";import{_ as oe,a as qe}from"./MarFormItem.vue_vue_type_script_setup_true_lang-BwDM_Txe.js";import{M as Se,a as ce}from"./MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-0CVezpJG.js";import{u as Ee,m as Re,M as Be}from"./mobile-dialog-return-service-_7w5rD8m.js";import{_ as Ge,P as At}from"./NodeDetailsDialogs-Cxv7VW5f.js";import{h as Dt,j as at,k as Bt,m as A,n as Ft,w as se,o as me,q as ot,r as Lt,v as st,x as Ot,y as lt}from"./FilePreviewLoading-BnLud9gq.js";import{P as Ht,Q as Wt,R as Qt,S as Kt}from"./AuthEntryPanel-BM-2QrH9.js";import{p as jt}from"./HtmlPreviewFrame-D7aQbM7T.js";import{M as je}from"./MarAlert-CvDJlLVl.js";import{M as Ae}from"./MarTag-Bg1BjvXw.js";import{e as xe}from"./error-presentation-O4h1hNT5.js";import{c as Jt,a as zt,o as Yt,p as Zt,_ as nt}from"./WorkbenchPage-DmegEB0i.js";import"./conversation-history-_CnB_k_W.js";import{M as Xt}from"./MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-DdPkkcjK.js";import{M as ea,a as Ve}from"./MarDescriptionsItem-BUJ-2T9e.js";import{M as gt,_ as fe}from"./MarTableColumn.vue_vue_type_script_setup_true_lang-C8aPC9xX.js";import{M as ta}from"./MarDatePicker-Dd5smVdZ.js";import{c as aa,w as oa,M as sa}from"./ManagementPagination-DCu_S0Fr.js";import{M as la}from"./mcp-center-service-DZqRelcq.js";import{f as na}from"./time-presentation-BGt2rO0m.js";/* empty css */import"./MarSwitch-BALOzpDc.js";import"./EnvironmentSecretManager-CK3a7ljQ.js";import"./management-url-service-D1fIuTNo.js";import"./runner-presentation-CD9-YidO.js";import"./uuid-BmNSYLtZ.js";import"./MarCheckboxGroup-CkZgAXvs.js";/* empty css */import"./file-presentation-Cm7tx53N.js";import"./MarTabs-DkOJ_ba5.js";import"./workbench-live-service-BRZqI5Nj.js";import"./workspace-direct-transfer-service-H0f55kLn.js";import"./hosted-conversation-template-client-M95qIpoJ.js";import"./oauth-callback-ocJxYFsi.js";import"./code-navigation-target-BlnRe0-a.js";import"./MarInputNumber-ClXjxMHe.js";import"./MarCascader-CCM6uqPD.js";import"./enterprise-management-service-DG-bFbe7.js";import"./catalog-page-service-BQ-BAPkS.js";const ia=["data-theme","aria-label"],ra={class:"preview-toolbar"},ua={class:"preview-workbench"},ca={class:"preview-sidebar"},da={class:"caption"},pa={type:"button",class:"file selected","aria-current":"true"},ma={type:"button",class:"file"},va={type:"button",class:"file"},ha={class:"preview-content"},ga={class:"preview-tabs"},fa={class:"tab active"},ba={class:"tab"},ya={class:"conversation"},ka={class:"user-message"},wa={class:"assistant-message"},Sa={class:"process"},_a={class:"preview-controls"},Ta={class:"statuses"},$a={class:"status success"},Ca={class:"status warning"},xa={class:"status danger"},Pa={class:"status accent"},Va={class:"preview-label"},Ia=["placeholder","aria-label"],Ma={class:"control-actions"},Ea={type:"button",class:"preview-button primary"},Ra={type:"button",class:"preview-button secondary"},Ua={type:"button",class:"preview-button",disabled:""},qa={class:"caption"},Na=ke({__name:"ThemePreview",props:{name:{},colors:{},expanded:{type:Boolean}},setup(c){const{t:s}=De();return(l,y)=>(n(),p("div",{class:_e(["mar-theme-preview",{expanded:c.expanded}]),"data-theme":e(kt)(c.colors),style:Le(c.colors),role:"group","aria-label":e(s)("customThemes.preview")},[t("div",ra,[y[0]||(y[0]=t("span",{class:"status-dot"},null,-1)),t("strong",null,a(c.name),1)]),t("div",ua,[t("div",ca,[t("span",da,a(e(s)("customThemes.previewFiles")),1),t("button",pa,a(e(s)("customThemes.previewItemOne")),1),t("button",ma,a(e(s)("customThemes.previewItemTwo")),1),t("button",va,a(e(s)("customThemes.previewItemThree")),1)]),t("div",ha,[t("div",ga,[t("span",fa,a(e(s)("customThemes.previewChat")),1),t("span",ba,a(e(s)("customThemes.previewChanges")),1)]),t("div",ya,[t("div",ka,a(e(s)("customThemes.previewRequest")),1),t("div",wa,[t("strong",null,a(e(s)("customThemes.previewHeading")),1),t("p",null,a(e(s)("customThemes.previewText")),1),y[1]||(y[1]=wt('<pre class="code" data-v-c4148087><span class="syntax-keyword" data-v-c4148087>const</span> value = <span class="syntax-value" data-v-c4148087>42</span>;</pre><div class="diff" data-v-c4148087><code class="diff-remove" data-v-c4148087>- value: 1;</code><code class="diff-add" data-v-c4148087>+ value: 2;</code></div>',2))]),t("div",Sa,[y[2]||(y[2]=t("span",{class:"status-dot"},null,-1)),m(a(e(s)("customThemes.previewProcess")),1)])])])]),t("div",_a,[t("div",Ta,[t("span",$a,a(e(s)("customThemes.previewSuccess")),1),t("span",Ca,a(e(s)("customThemes.previewWarning")),1),t("span",xa,a(e(s)("customThemes.previewError")),1),t("span",Pa,a(e(s)("customThemes.previewInfo")),1)]),t("label",Va,[m(a(e(s)("customThemes.previewInput"))+" ",1),t("input",{type:"text",placeholder:e(s)("customThemes.previewPlaceholder"),"aria-label":e(s)("customThemes.previewInput")},null,8,Ia)]),t("div",Ma,[t("button",Ea,a(e(s)("customThemes.previewAction")),1),t("button",Ra,a(e(s)("customThemes.previewSecondary")),1),t("button",Ua,a(e(s)("customThemes.previewDisabled")),1)]),t("p",qa,a(e(s)("customThemes.previewStateHint")),1)])],14,ia))}}),it=we(Na,[["__scopeId","data-v-c4148087"]]),Ga=["surfaces","borders","text","conversation","interaction","controls","status","overlays"],rt={"--mar-table-header-bg":{group:"surfaces",description:"table-header-bg"},"--mar-table-row-hover-bg":{group:"surfaces",description:"table-row-hover-bg"},"--mar-color-brand-disabled":{group:"interaction",description:"color-brand-disabled"},"--mar-control-link-text":{group:"controls",description:"control-link-text"},"--mar-control-link-hover":{group:"controls",description:"control-link-hover"},"--mar-bg-page":{group:"surfaces",description:"bg-page"},"--mar-bg-panel":{group:"surfaces",description:"bg-panel"},"--mar-bg-chrome":{group:"surfaces",description:"bg-chrome"},"--mar-bg-subtle":{group:"surfaces",description:"bg-subtle"},"--mar-bg-tab-inactive":{group:"surfaces",description:"bg-tab-inactive"},"--mar-fill-subtle":{group:"surfaces",description:"fill-subtle"},"--mar-fill-muted":{group:"surfaces",description:"fill-muted"},"--mar-fill-row-hover":{group:"surfaces",description:"fill-row-hover"},"--mar-fill-selection":{group:"surfaces",description:"fill-selection"},"--mar-fill-soft":{group:"surfaces",description:"fill-soft"},"--mar-fill-hover":{group:"surfaces",description:"fill-hover"},"--mar-border-default":{group:"borders",description:"border-default"},"--mar-border-subtle":{group:"borders",description:"border-subtle"},"--mar-border-medium":{group:"borders",description:"border-medium"},"--mar-border-strong":{group:"borders",description:"border-strong"},"--mar-text-primary":{group:"text",description:"text-primary"},"--mar-text-secondary":{group:"text",description:"text-secondary"},"--mar-text-muted":{group:"text",description:"text-muted"},"--mar-text-disabled":{group:"text",description:"text-disabled"},"--mar-conversation-canvas":{group:"conversation",description:"conversation-canvas"},"--mar-conversation-surface":{group:"conversation",description:"conversation-surface"},"--mar-conversation-process":{group:"conversation",description:"conversation-process"},"--mar-conversation-border":{group:"conversation",description:"conversation-border"},"--mar-conversation-process-border":{group:"conversation",description:"conversation-process-border"},"--mar-conversation-code":{group:"conversation",description:"conversation-code"},"--mar-scrollbar-thumb":{group:"borders",description:"scrollbar-thumb"},"--mar-scrollbar-thumb-hover":{group:"borders",description:"scrollbar-thumb-hover"},"--mar-color-brand":{group:"interaction",description:"color-brand"},"--mar-control-color-primary-light-3":{group:"controls",description:"control-color-primary-light-3"},"--mar-control-color-primary-light-5":{group:"controls",description:"control-color-primary-light-5"},"--mar-control-color-primary-light-7":{group:"controls",description:"control-color-primary-light-7"},"--mar-control-color-primary-light-8":{group:"controls",description:"control-color-primary-light-8"},"--mar-control-color-primary-light-9":{group:"controls",description:"control-color-primary-light-9"},"--mar-control-color-primary-dark-2":{group:"controls",description:"control-color-primary-dark-2"},"--mar-control-color-success":{group:"controls",description:"control-color-success"},"--mar-control-color-warning":{group:"controls",description:"control-color-warning"},"--mar-control-color-danger":{group:"controls",description:"control-color-danger"},"--mar-control-bg-color-overlay":{group:"controls",description:"control-bg-color-overlay"},"--mar-control-fill-color":{group:"controls",description:"control-fill-color"},"--mar-control-fill-color-light":{group:"controls",description:"control-fill-color-light"},"--mar-control-fill-color-lighter":{group:"controls",description:"control-fill-color-lighter"},"--mar-control-fill-color-extra-light":{group:"controls",description:"control-fill-color-extra-light"},"--mar-control-border-color-lighter":{group:"controls",description:"control-border-color-lighter"},"--mar-control-border-color-extra-light":{group:"controls",description:"control-border-color-extra-light"},"--mar-control-border-color-dark":{group:"controls",description:"control-border-color-dark"},"--mar-control-border-color-darker":{group:"controls",description:"control-border-color-darker"},"--mar-color-brand-text":{group:"interaction",description:"color-brand-text"},"--mar-color-on-accent":{group:"interaction",description:"color-on-accent"},"--mar-color-brand-hover":{group:"interaction",description:"color-brand-hover"},"--mar-color-brand-subtle":{group:"interaction",description:"color-brand-subtle"},"--mar-color-brand-selected":{group:"interaction",description:"color-brand-selected"},"--mar-color-brand-border":{group:"interaction",description:"color-brand-border"},"--mar-color-success-text":{group:"status",description:"color-success-text"},"--mar-color-success-bg":{group:"status",description:"color-success-bg"},"--mar-color-warning-text":{group:"status",description:"color-warning-text"},"--mar-color-warning-accent":{group:"status",description:"color-warning-accent"},"--mar-color-warning-bg":{group:"status",description:"color-warning-bg"},"--mar-color-danger-text":{group:"status",description:"color-danger-text"},"--mar-color-danger-bg":{group:"status",description:"color-danger-bg"},"--mar-color-accent":{group:"interaction",description:"color-accent"},"--mar-color-accent-bg":{group:"interaction",description:"color-accent-bg"},"--mar-color-diff-add-text":{group:"status",description:"color-diff-add-text"},"--mar-color-diff-del-text":{group:"status",description:"color-diff-del-text"},"--mar-shadow-soft":{group:"overlays",description:"shadow-soft"},"--mar-shadow-medium":{group:"overlays",description:"shadow-medium"},"--mar-overlay-scrim":{group:"overlays",description:"overlay-scrim"},"--mar-overlay-border":{group:"overlays",description:"overlay-border"}},Aa={class:"hint"},Da={class:"reference-body"},Ba={key:0,class:"hint"},Fa=ke({__name:"ThemeTokenHelp",props:{colors:{}},setup(c){const{t:s}=De(),l=I(!1),y=I(""),T=Y(()=>{const C=y.value.trim().toLocaleLowerCase();return Ga.map(S=>({key:S,label:s("customThemes.tokenGroups."+S),tokens:St.filter($=>rt[$].group===S).map($=>({token:$,description:s("customThemes.tokenDescriptions."+rt[$].description)})).filter($=>($.token+" "+$.description).toLocaleLowerCase().includes(C))})).filter(S=>S.tokens.length)});function k(){y.value="",l.value=!0}async function v(C){try{await navigator.clipboard.writeText(C),X(s("customThemes.tokenCopied"),"info")}catch{X(s("customThemes.tokenCopyFailed"),"error")}}return(C,S)=>{const $=Oe("tooltip");return n(),p(B,null,[le(i(e(N),{class:"mar-icon-action",text:"",icon:"help","aria-label":e(s)("customThemes.tokenHelp"),onClick:k},null,8,["aria-label"]),[[$,e(s)("customThemes.tokenHelp")]]),l.value?(n(),U(e(Me),{key:0,onVnodeMounted:e(Re),onVnodeBeforeUnmount:e(Ee),modelValue:l.value,"onUpdate:modelValue":S[1]||(S[1]=Q=>l.value=Q),title:e(s)("customThemes.tokenHelp"),width:"min(720px, calc(100vw - 32px))","append-to-body":"",class:"theme-token-help"},{default:r(()=>[t("p",Aa,a(e(s)("customThemes.tokenHint")),1),i(e(ve),{modelValue:y.value,"onUpdate:modelValue":S[0]||(S[0]=Q=>y.value=Q),"prefix-icon":"search",placeholder:e(s)("customThemes.tokenSearch"),"aria-label":e(s)("customThemes.tokenSearch"),clearable:""},null,8,["modelValue","placeholder","aria-label"]),t("div",Da,[(n(!0),p(B,null,te(T.value,Q=>(n(),p("section",{key:Q.key},[t("h3",null,a(Q.label),1),t("dl",null,[(n(!0),p(B,null,te(Q.tokens,f=>(n(),p("div",{key:f.token,class:"token-row"},[t("dt",null,[t("span",{class:"swatch",style:Le({backgroundColor:c.colors[f.token]}),"aria-hidden":"true"},null,4),t("code",null,a(f.token),1),le(i(e(N),{class:"mar-icon-action",text:"",icon:"copy","aria-label":e(s)("customThemes.tokenCopy",{token:f.token}),onClick:L=>v(f.token)},null,8,["aria-label","onClick"]),[[$,e(s)("customThemes.tokenCopy",{token:f.token})]])]),t("dd",null,a(f.description),1)]))),128))])]))),128)),T.value.length?q("",!0):(n(),p("p",Ba,a(e(s)("customThemes.tokenEmpty")),1))])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):q("",!0)],64)}}}),La=we(Fa,[["__scopeId","data-v-a52ede62"]]),Oa={class:"theme-settings"},Ha={class:"summary"},Wa={class:"actions"},Qa=["aria-label"],Ka=["aria-label"],ja=["aria-label","aria-pressed","onClick"],Ja={class:"theme-swatches","aria-hidden":"true"},za={class:"theme-name"},Ya={key:0,class:"theme-meta"},Za={class:"theme-controls"},Xa={class:"editor-heading"},eo={class:"editor-layout"},to={class:"actions"},ao={class:"editor-label"},oo=["for"],so=["aria-label"],lo={class:"validation","aria-live":"polite"},no={key:3,class:"warnings"},io={class:"preview-heading"},ro={class:"summary"},uo=ke({__name:"ThemeSettings",setup(c){const{t:s}=De(),l=dt(),y=Y(()=>[{id:"vscode-dark-2026",name:s("settings.dark"),builtin:!0},{id:"daylight",name:s("settings.light"),builtin:!0},...l.customThemes.value.map(E=>({...E,name:Fe(E.source).name??s("customThemes.untitled"),builtin:!1}))]),T=I(),k=pt(),v=I(),C=I(),S=I("vscode-dark-2026"),$=Y(()=>S.value!==void 0),Q=I(!1),f=I(!1),L=ze({source:_t(s("settings.dark"))}),O=I(L.source),ee=Y(()=>!$.value&&L.source!==O.value),M=Y(()=>!$.value&&(!C.value||ee.value)),x=Tt($t,void 0),K=Y(()=>Fe(L.source)),ne=Y(()=>Q.value?l.resolveColors(L.source):K.value.colors),H=["--mar-bg-page","--mar-bg-panel","--mar-text-primary","--mar-color-brand","--mar-color-accent"],j=Y(()=>y.value.map(E=>({...E,colors:Q.value?l.resolveColors(Z(E)):{}}))),P=Y(()=>({source:[{validator:(E,F,ie)=>ie(Fe(F).validJson?void 0:new Error(s("customThemes.invalidJson"))),trigger:["blur","change"]}]}));async function z(){if(!M.value)return!0;try{return await Ce.confirm(s("customThemes.discard"),s("customThemes.title"),{icon:J("warning"),type:"warning",confirmButtonText:s("customThemes.discardAction"),cancelButtonText:s("customThemes.cancel")}),!0}catch{return!1}}async function R(E,F,ie){await z()&&(C.value=F,S.value=ie,L.source=E,O.value=E,T.value?.clearValidate())}function Z(E){return E.source??l.builtinSource(E.id,E.name)}async function ae(E){try{await R(Z(E),E.builtin?void 0:E.id,E.builtin?E.id:void 0)}catch{X(s("customThemes.paletteFailed"),"error")}}async function de(){if(ee.value){try{await Ce.confirm(s("customThemes.resetConfirm"),s("customThemes.title"),{icon:J("warning"),type:"warning",confirmButtonText:s("customThemes.reset"),cancelButtonText:s("customThemes.cancel")})}catch{return}L.source=O.value,T.value?.clearValidate()}}function be(E){try{l.setTheme(E.id)}catch{X(s("customThemes.storageFailed"),"error")}}function Te(E,F){F==="duplicate"?he(E):F==="remove"&&!E.builtin&&pe({id:E.id})}async function re(){if(!$.value&&await T.value?.validate().catch(()=>!1))try{const E=l.saveCustomTheme(L.source,C.value);C.value=E.id,O.value=L.source,X(s("customThemes.saved"),"success")}catch{X(s("customThemes.storageFailed"),"error")}}async function pe(E){try{await Ce.confirm(s("customThemes.deleteConfirm"),s("customThemes.title"),{icon:J("warning"),type:"warning",confirmButtonText:s("customThemes.remove"),cancelButtonText:s("customThemes.cancel")})}catch{return}try{l.deleteCustomTheme(E.id),C.value===E.id&&(C.value=void 0,O.value=L.source),X(s("customThemes.deleted"),"success")}catch{X(s("customThemes.storageFailed"),"error")}}function he(E){try{R(l.duplicateSource(Z(E),s("customThemes.copyName",{name:E.name})))}catch{X(s("customThemes.paletteFailed"),"error")}}async function _(E){const F=E.target,ie=F.files?.[0];if(F.value="",!!ie)try{await R(await ie.text())}catch{X(s("customThemes.importFailed"),"error")}}async function b(){try{await navigator.clipboard.writeText(L.source),X(s("customThemes.copied"),"info")}catch{X(s("customThemes.copyFailed"),"error")}}async function d(){if(!await T.value?.validate().catch(()=>!1))return;const E=URL.createObjectURL(new Blob([L.source],{type:"application/json"})),F=document.createElement("a");F.href=E,F.download=`${(K.value.name??"theme").replace(/[^\p{L}\p{N}_.-]/gu,"_").slice(0,80)}.json`,F.click(),setTimeout(()=>URL.revokeObjectURL(E),1e3)}function D(){$.value||(K.value.validJson?L.source=JSON.stringify(JSON.parse(L.source),null,2):T.value?.validate().catch(()=>!1))}function w(E){x?.isReloadingForUpdate()||M.value&&(E.preventDefault(),E.returnValue="")}return Ue(()=>{Q.value=!0,ae(y.value[0]),window.addEventListener("beforeunload",w)}),Ye(()=>window.removeEventListener("beforeunload",w)),(E,F)=>{const ie=Oe("tooltip");return n(),p("section",Oa,[t("h2",null,a(e(s)("customThemes.title")),1),t("p",Ha,a(e(s)("customThemes.summary")),1),t("div",Wa,[i(e(N),{icon:"upload",onClick:F[0]||(F[0]=W=>v.value?.click())},{default:r(()=>[m(a(e(s)("customThemes.import")),1)]),_:1}),t("input",{ref_key:"fileInput",ref:v,class:"file-input",type:"file",accept:".json,application/json","aria-label":e(s)("customThemes.import"),onChange:_},null,40,Qa)]),t("ul",{class:"theme-options","aria-label":e(s)("customThemes.title")},[(n(!0),p(B,null,te(j.value,W=>(n(),p("li",{key:W.id,class:_e(["theme-option",{selected:W.id===(S.value??C.value),active:W.id===e(l).theme.value}])},[t("button",{type:"button",class:"theme-choice","aria-label":e(s)("customThemes.inspect",{name:W.name}),"aria-pressed":W.id===(S.value??C.value),onClick:ye=>ae(W)},[t("span",Ja,[(n(),p(B,null,te(H,ye=>t("span",{key:ye,style:Le({backgroundColor:W.colors[ye]})},null,4)),64))]),t("span",za,a(W.name),1),W.builtin?(n(),p("span",Ya,a(e(s)("customThemes.builtin")),1)):q("",!0)],8,ja),t("div",Za,[i(e(N),{class:"theme-apply",link:"",icon:"check",disabled:e(l).theme.value===W.id,onClick:ye=>be(W)},{default:r(()=>[m(a(e(s)(e(l).theme.value===W.id?"customThemes.active":"customThemes.apply")),1)]),_:2},1032,["disabled","onClick"]),i(e(Bt),{trigger:"click",onCommand:ye=>Te(W,ye)},{dropdown:r(()=>[i(e(Dt),null,{default:r(()=>[i(e(at),{command:"duplicate",icon:"copy"},{default:r(()=>[m(a(e(s)("customThemes.duplicate")),1)]),_:1}),W.builtin?q("",!0):(n(),U(e(at),{key:0,command:"remove",icon:"delete",divided:""},{default:r(()=>[m(a(e(s)("customThemes.remove")),1)]),_:1}))]),_:2},1024)]),default:r(()=>[le(i(e(N),{class:"mar-icon-action",text:"",icon:"more","aria-label":e(s)("customThemes.moreActions",{name:W.name})},null,8,["aria-label"]),[[ie,e(s)("customThemes.moreActions",{name:W.name})]])]),_:2},1032,["onCommand"])])],2))),128))],8,Ka),t("div",Xa,[t("h3",null,a($.value?e(s)("customThemes.view"):C.value?e(s)("customThemes.edit"):e(s)("customThemes.newTheme")),1),M.value?(n(),U(e(Ae),{key:0,type:"warning"},{default:r(()=>[m(a(e(s)("customThemes.unsaved")),1)]),_:1})):q("",!0)]),t("div",eo,[i(e(qe),{ref_key:"form",ref:T,model:L,rules:P.value,"label-position":"top",onSubmit:Ie(re,["prevent"])},{default:r(()=>[t("div",to,[$.value?q("",!0):(n(),U(e(N),{key:0,icon:"check",type:"primary","native-type":"submit"},{default:r(()=>[m(a(e(s)("customThemes.save")),1)]),_:1})),$.value?q("",!0):(n(),U(e(N),{key:1,icon:"administration",onClick:D},{default:r(()=>[m(a(e(s)("customThemes.format")),1)]),_:1})),$.value?q("",!0):(n(),U(e(N),{key:2,icon:"undo",disabled:!ee.value,onClick:de},{default:r(()=>[m(a(e(s)("customThemes.reset")),1)]),_:1},8,["disabled"])),i(e(N),{icon:"copy",onClick:b},{default:r(()=>[m(a(e(s)("customThemes.copyJson")),1)]),_:1}),i(e(N),{icon:"download",onClick:d},{default:r(()=>[m(a(e(s)("customThemes.export")),1)]),_:1})]),t("div",ao,[t("label",{for:e(k)},a(e(s)("customThemes.json")),9,oo),i(La,{colors:ne.value},null,8,["colors"])]),i(e(oe),{prop:"source"},{default:r(()=>[i(e(ve),{id:e(k),modelValue:L.source,"onUpdate:modelValue":F[1]||(F[1]=W=>L.source=W),type:"textarea",rows:20,readonly:$.value,spellcheck:"false",class:"json-editor"},null,8,["id","modelValue","readonly"])]),_:1})]),_:1},8,["model","rules"]),t("aside",{"aria-label":e(s)("customThemes.inspector")},[t("div",lo,[K.value.validJson?K.value.warnings.length?(n(),U(e(je),{key:1,type:"warning",closable:!1,"show-icon":"",title:e(s)("customThemes.warningSummary",{count:K.value.warnings.length})},{icon:r(()=>[i(e($e),{name:"warning"})]),_:1},8,["title"])):(n(),U(e(je),{key:2,type:"success",closable:!1,"show-icon":"",title:e(s)("customThemes.valid")},{icon:r(()=>[i(e($e),{name:"success"})]),_:1},8,["title"])):(n(),U(e(je),{key:0,type:"error",closable:!1,"show-icon":"",title:e(s)("customThemes.invalidJson")},{icon:r(()=>[i(e($e),{name:"error"})]),_:1},8,["title"])),K.value.warnings.length?(n(),p("ul",no,[(n(!0),p(B,null,te(K.value.warnings,(W,ye)=>(n(),p("li",{key:ye},a(e(s)(`customThemes.warnings.${W.code}`,{field:W.field})),1))),128))])):q("",!0)]),t("div",io,[t("h3",null,a(e(s)("customThemes.preview")),1),i(e(N),{icon:"zoom-in",onClick:F[2]||(F[2]=W=>f.value=!0)},{default:r(()=>[m(a(e(s)("customThemes.expandPreview")),1)]),_:1})]),t("p",ro,a(e(s)("customThemes.previewHint")),1),i(it,{name:K.value.name??e(s)("customThemes.untitled"),colors:ne.value},null,8,["name","colors"])],8,so)]),f.value?(n(),U(e(Me),{key:0,onVnodeMounted:e(Re),onVnodeBeforeUnmount:e(Ee),modelValue:f.value,"onUpdate:modelValue":F[3]||(F[3]=W=>f.value=W),title:e(s)("customThemes.preview"),width:"min(54rem, calc(100vw - 32px))","append-to-body":""},{default:r(()=>[i(it,{name:K.value.name??e(s)("customThemes.untitled"),colors:ne.value,expanded:""},null,8,["name","colors"])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):q("",!0)])}}}),co=we(uo,[["__scopeId","data-v-47d9db96"]]),po={class:"quick-prompts-content"},mo={class:"prompt-list-toolbar"},vo={key:0,role:"status"},ho={key:2,class:"prompt-list"},go={class:"prompt-heading"},fo={class:"prompt-actions"},bo=ke({__name:"QuickPromptSettings",props:{prompts:{},loading:{type:Boolean},failed:{type:Boolean},request:{type:Function},refresh:{type:Function}},setup(c){const s=c,l=I(),y=I(),T=I(!1),k=I(0),v=I(!1),C=I(!1),S=I(!1),$=I({phrase:"",prompt:""}),Q=Y(()=>y.value===void 0),f={phrase:[{required:!0,message:()=>o("quickPrompts.phraseRequired"),trigger:"blur"},{validator:(H,j,P)=>typeof j=="string"&&j.trim().length<=80&&!/[\s#]/u.test(j)?P():P(new Error(o("quickPrompts.phraseInvalid"))),trigger:"blur"}],prompt:[{required:!0,message:()=>o("quickPrompts.promptRequired"),trigger:"blur"}]};Ue(()=>{L()}),Ye(x);async function L(){await s.refresh(),await Ct(),s.failed||(C.value=!0)}async function O(){if(!(S.value||s.loading)){S.value=!0;try{await L()}finally{S.value=!1}}}function ee(){k.value+=1,v.value=!1,y.value=void 0,$.value={phrase:"",prompt:""},T.value=!0}function M(H){k.value+=1,v.value=!1,y.value=H,$.value={phrase:H.phrase,prompt:H.prompt},T.value=!0}function x(){k.value+=1,v.value=!1,T.value=!1,y.value=void 0}async function K(){if(!T.value||v.value)return;const H=k.value;if(!(!await l.value?.validate().catch(()=>!1)||H!==k.value||v.value)){v.value=!0;try{const P=JSON.stringify($.value);if(y.value===void 0?await s.request("/api/quick-prompts",{method:"POST",body:P}):await s.request(`/api/quick-prompts/${encodeURIComponent(y.value.id)}`,{method:"PATCH",body:P}),H!==k.value||(await s.refresh(),H!==k.value))return;X(o("quickPrompts.saved"),"success"),x()}catch(P){H===k.value&&X(o("quickPrompts.saveFailed",{value0:xe(P)}),"error",P)}finally{H===k.value&&(v.value=!1)}}}async function ne(H){try{await Ce.confirm(o("quickPrompts.removeConfirmation",{value0:`#${H.phrase}`}),o("quickPrompts.remove"),{icon:J("warning"),type:"warning"}),await s.request(`/api/quick-prompts/${encodeURIComponent(H.id)}`,{method:"DELETE"}),await s.refresh(),X(o("quickPrompts.removed"),"success")}catch(j){j!=="cancel"&&X(o("quickPrompts.removeFailed",{value0:xe(j)}),"error",j)}}return(H,j)=>(n(),U(e(mt),{loading:c.loading&&!C.value&&!S.value,variant:"page",class:"quick-prompts settings-panel"},{default:r(()=>[t("div",po,[t("header",null,[t("div",null,[t("h2",null,a(e(o)("quickPrompts.title")),1),t("p",null,a(e(o)("quickPrompts.summary")),1)])]),t("div",mo,[i(e(N),{icon:e(J)("plus"),type:"primary",disabled:c.loading,onClick:ee},{default:r(()=>[m(a(e(o)("quickPrompts.add")),1)]),_:1},8,["icon","disabled"])]),S.value||!c.loading&&c.failed?(n(),U(e(Ge),{key:0,class:"prompt-status"},{default:r(()=>[S.value?q("",!0):(n(),p("span",vo,a(e(o)("quickPrompts.readFailed")),1)),i(e(N),{class:"mar-region-retry-action",link:"","aria-disabled":S.value||void 0,"aria-busy":S.value||void 0,"aria-label":S.value?e(o)("common.loading"):void 0,onClick:O},{default:r(()=>[S.value?(n(),U(e(Be),{key:0,class:"mar-read-loading-indicator"})):(n(),p(B,{key:1},[m(a(e(o)("common.retry")),1)],64))]),_:1},8,["aria-disabled","aria-busy","aria-label"])]),_:1})):C.value&&!c.loading&&c.prompts.length===0?(n(),U(e(Ge),{key:1,class:"prompt-status"},{default:r(()=>[m(a(e(o)("quickPrompts.empty")),1)]),_:1})):q("",!0),c.prompts.length>0?(n(),p("div",ho,[(n(!0),p(B,null,te(c.prompts,P=>(n(),p("article",{key:P.id,class:"prompt-item"},[t("div",go,[t("code",null,"#"+a(P.phrase),1)]),t("p",null,a(P.prompt),1),t("div",fo,[i(e(N),{icon:e(J)("edit"),link:"",disabled:c.loading,onClick:z=>M(P)},{default:r(()=>[m(a(e(o)("quickPrompts.edit")),1)]),_:1},8,["icon","disabled","onClick"]),i(e(N),{icon:e(J)("delete"),link:"",type:"danger",disabled:c.loading,onClick:z=>ne(P)},{default:r(()=>[m(a(e(o)("quickPrompts.remove")),1)]),_:1},8,["icon","disabled","onClick"])])]))),128))])):q("",!0)]),T.value?(n(),U(e(Me),{onVnodeMounted:e(Re),onVnodeBeforeUnmount:e(Ee),key:k.value,"model-value":T.value,title:e(o)(Q.value?"quickPrompts.add":"quickPrompts.edit"),width:"min(560px, calc(100vw - 32px))","append-to-body":"","before-close":x},{footer:r(()=>[i(e(N),{onClick:x},{default:r(()=>[m(a(e(o)("common.cancel")),1)]),_:1}),i(e(N),{type:"primary",loading:v.value,onClick:K},{default:r(()=>[m(a(e(o)("common.save")),1)]),_:1},8,["loading"])]),default:r(()=>[i(e(qe),{ref_key:"form",ref:l,model:$.value,rules:f,"label-position":"top",onSubmit:Ie(K,["prevent"])},{default:r(()=>[i(e(oe),{label:e(o)("quickPrompts.phrase"),prop:"phrase"},{default:r(()=>[i(e(ve),{modelValue:$.value.phrase,"onUpdate:modelValue":j[0]||(j[0]=P=>$.value.phrase=P),maxlength:"80",placeholder:e(o)("quickPrompts.phraseHint")},{prepend:r(()=>[...j[2]||(j[2]=[m("#",-1)])]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),i(e(oe),{label:e(o)("quickPrompts.prompt"),prop:"prompt"},{default:r(()=>[i(e(ve),{modelValue:$.value.prompt,"onUpdate:modelValue":j[1]||(j[1]=P=>$.value.prompt=P),maxlength:"10000",rows:7,resize:"vertical",type:"textarea"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","model-value","title"])):q("",!0)]),_:1},8,["loading"]))}}),yo=we(bo,[["__scopeId","data-v-e6c2a2d0"]]),ko=["data-checked","aria-pressed"],wo=ke({__name:"MarCheckTag",props:{checked:{type:Boolean}},emits:["change","update:checked"],setup(c,{emit:s}){const l=s;return(y,T)=>(n(),p("button",{type:"button",class:"mar-ui-check-tag","data-checked":c.checked,"aria-pressed":y.$attrs.role==="tab"?void 0:c.checked,onClick:T[0]||(T[0]=k=>{l("update:checked",!c.checked),l("change",!c.checked)})},[Je(y.$slots,"default",{},void 0,!0)],8,ko))}}),So=we(wo,[["__scopeId","data-v-1ea50de8"]]),_o=["aria-busy"],To=["aria-label"],$o=["src","data-runner"],Co=["aria-labelledby"],xo={key:0,role:"status"},Po=["aria-label","disabled","placeholder"],Vo={class:"instruction-actions"},Io=ke({__name:"PersonalInstructionsSettings",props:{request:{type:Function}},setup(c){const s=c,l=I(),y=I("COMMON"),T=I(!0),k=I(),v=I(!1),C=I(!1),S=I({common:"",codex:"",claudeCode:"",openCode:"",marAgent:""}),$=I({content:""}),Q=[{id:"COMMON",label:"personalInstructions.common",property:"common"},{id:"MAR_AGENT",label:"personalInstructions.marAgent",property:"marAgent",logo:vt},{id:"CODEX",label:"personalInstructions.codex",property:"codex",logo:Jt},{id:"CLAUDE_CODE",label:"personalInstructions.claudeCode",property:"claudeCode",logo:zt},{id:"OPENCODE",label:"personalInstructions.openCode",property:"openCode",logo:Yt}],f=Y(()=>Q.find(P=>P.id===y.value)),L={content:[{required:!0,message:()=>o("personalInstructions.promptRequired"),trigger:"blur"},{validator:(P,z,R)=>typeof z=="string"&&z.trim().length>0&&z.trim().length<=2e4?R():R(new Error(o("personalInstructions.promptInvalid"))),trigger:"blur"}]};Ue(()=>{K()});function O(){S.value[f.value.property]=$.value.content}function ee(P){y.value!==P&&(O(),y.value=P,$.value.content=S.value[f.value.property],l.value?.clearValidate())}function M(P,z){let R=z;switch(P.key){case"ArrowRight":R=(z+1)%Q.length;break;case"ArrowLeft":R=(z+Q.length-1)%Q.length;break;case"Home":R=0;break;case"End":R=Q.length-1;break;case"Enter":case" ":break;default:return}P.preventDefault(),ee(Q[R].id),P.currentTarget.parentElement?.querySelectorAll('[role="tab"]')[R]?.focus()}function x(){l.value?.validateField("content").catch(()=>{})}async function K(P=!1){if(!(P&&T.value)){v.value=P,T.value=!0,C.value=!1;try{S.value=(await s.request("/api/personal-instructions")).instructions,$.value.content=S.value[f.value.property]}catch{C.value=!0}finally{T.value=!1,v.value=!1}}}async function ne(){if(k.value!==void 0)return;const P=y.value,z=f.value.property,R=$.value.content;k.value="save";try{if(!await l.value?.validate().catch(()=>!1))return;const ae=await s.request(`/api/personal-instructions/${P}`,{method:"PUT",body:JSON.stringify({content:R})});H(z,R,ae.instructions),X(o("personalInstructions.saved"),"success")}catch(Z){X(o("personalInstructions.saveFailed",{value0:xe(Z)}),"error",Z)}finally{k.value=void 0}}function H(P,z,R){const Z=f.value.property===P;(Z?$.value.content:S.value[P])===z&&(S.value[P]=R[P],Z&&($.value.content=R[P]))}async function j(){if(k.value!==void 0)return;const P=y.value,z=f.value.property,R=$.value.content;try{await Ce.confirm(o("personalInstructions.clearConfirmation"),o("personalInstructions.clear"),{icon:J("warning"),type:"warning"})}catch{return}if(k.value===void 0){k.value="clear";try{const Z=await s.request(`/api/personal-instructions/${P}`,{method:"DELETE"});H(z,R,Z.instructions),y.value===P&&l.value?.clearValidate(),X(o("personalInstructions.cleared"),"success")}catch(Z){Z!=="cancel"&&X(o("personalInstructions.clearFailed",{value0:xe(Z)}),"error",Z)}finally{k.value=void 0}}}return(P,z)=>le((n(),p("section",{class:"personal-instructions settings-panel","aria-busy":T.value},[t("header",null,[t("h2",null,a(e(o)("personalInstructions.title")),1),t("p",null,a(e(o)("personalInstructions.scopeHelp")),1)]),t("div",{class:"instruction-scopes",role:"tablist","aria-label":e(o)("personalInstructions.title")},[(n(),p(B,null,te(Q,(R,Z)=>i(e(So),{key:R.id,id:`instruction-scope-${R.id}`,checked:y.value===R.id,"aria-selected":y.value===R.id,tabindex:y.value===R.id?0:-1,"aria-controls":"personal-instructions-panel",role:"tab",onChange:ae=>ee(R.id),onKeydown:ae=>M(ae,Z)},{default:r(()=>[R.logo===void 0?(n(),U(e($e),{key:0,name:"document"})):(n(),p("img",{key:1,src:R.logo,"data-runner":R.id==="CODEX"?"codex":void 0,class:"mar-runner-brand-icon","aria-hidden":"true"},null,8,$o)),t("span",null,a(e(o)(R.label)),1)]),_:2},1032,["id","checked","aria-selected","tabindex","onChange","onKeydown"])),64))],8,To),C.value||v.value?(n(),p("div",{key:0,id:"personal-instructions-panel",role:"tabpanel","aria-labelledby":`instruction-scope-${y.value}`,class:"instruction-state"},[v.value?q("",!0):(n(),p("span",xo,a(e(o)("personalInstructions.loadFailed")),1)),i(e(N),{link:"","aria-disabled":v.value||void 0,"aria-busy":v.value||void 0,"aria-label":v.value?e(o)("common.loading"):void 0,onClick:z[0]||(z[0]=R=>K(!0))},{default:r(()=>[v.value?(n(),U(e(Be),{key:0,class:"mar-read-loading-indicator"})):(n(),p(B,{key:1},[m(a(e(o)("common.retry")),1)],64))]),_:1},8,["aria-disabled","aria-busy","aria-label"])],8,Co)):(n(),U(e(qe),{key:1,id:"personal-instructions-panel",role:"tabpanel","aria-labelledby":`instruction-scope-${y.value}`,ref_key:"form",ref:l,model:$.value,rules:L,disabled:T.value,"label-position":"top"},{default:r(()=>[i(e(oe),{label:e(o)("personalInstructions.prompt"),prop:"content",for:"personal-instructions-content"},{default:r(()=>[le(t("textarea",{id:"personal-instructions-content","onUpdate:modelValue":z[1]||(z[1]=R=>$.value.content=R),"aria-label":e(o)("personalInstructions.prompt"),disabled:T.value,maxlength:2e4,placeholder:e(o)("personalInstructions.placeholder"),onBlur:x},null,40,Po),[[Pt,$.value.content]])]),_:1},8,["label"]),t("div",Vo,[i(e(N),{icon:"delete",disabled:T.value||k.value!==void 0,loading:k.value==="clear",onClick:j},{default:r(()=>[m(a(e(o)("personalInstructions.clear")),1)]),_:1},8,["disabled","loading"]),i(e(N),{icon:"check",type:"primary",disabled:T.value||k.value!==void 0,loading:k.value==="save",onClick:ne},{default:r(()=>[m(a(e(o)("common.save")),1)]),_:1},8,["disabled","loading"])])]),_:1},8,["aria-labelledby","model","disabled"]))],8,_o)),[[e(xt),T.value&&!v.value,"page"]])}}),Mo=we(Io,[["__scopeId","data-v-79adab71"]]),Eo={class:"theme-row completion-preferences"},Ro={id:"appearance-prompt-completion-label",for:"appearance-prompt-completion",class:"theme-label"},Uo=ke({__name:"PromptCompletionPreferences",setup(c){const s=Zt();function l(y){try{s.setEnabled(y)}catch(T){X(xe(T),"error",T)}}return(y,T)=>(n(),p("div",Eo,[t("label",Ro,a(e(o)("promptCompletion.work")),1),i(e(Se),{id:"appearance-prompt-completion","model-value":e(s).enabled.value,class:"theme-select","aria-labelledby":"appearance-prompt-completion-label","onUpdate:modelValue":l},{default:r(()=>[i(e(ce),{label:e(o)("promptCompletion.off"),value:!1},null,8,["label"]),i(e(ce),{label:e(o)("promptCompletion.on"),value:!0},null,8,["label"])]),_:1},8,["model-value"])]))}}),qo=we(Uo,[["__scopeId","data-v-b585cdcb"]]),No={class:"mar-management-page"},Go={key:0,role:"status"},Ao={class:"git-page-hint"},Do={class:"mar-table-actions"},Bo={class:"git-scope"},Fo={key:1},Lo={class:"mar-row-actions"},Oo={class:"git-scope"},Ho={key:1},Wo={class:"detail-close"},Qo={class:"git-identity-fields"},Ko={class:"git-form-group-title"},jo={class:"git-hint"},Jo={class:"git-field-pair"},zo={class:"git-hint"},Yo={class:"git-hint"},Zo=ke({__name:"PersonalGitSettings",props:{request:{type:Function}},setup(c){const s=c,l=new At(s.request),y=I({credentials:[]}),T=I(!0),k=I(!1),v=I(!1),C=I(!1),S=I(!1),$=I(),Q=I(!1),f=I(),L=I(!1),O=I(),ee=I(),M=()=>({name:"",remoteUrl:"",protocol:"HTTPS",username:"",commitName:"",commitEmail:"",secret:"",passphrase:"",clearPassphrase:!1}),x=I(M());let K=!0;const ne=Y(()=>de()?.protocol??x.value.protocol),H=Y(()=>Object.fromEntries(["name","remoteUrl","username","commitName","commitEmail","secret","passphrase"].map(_=>[_,[{validator:(b,d,D)=>D(re(_))}]])));Ue(()=>{P()}),ht(()=>{K=!1,x.value=M()});function j(_){K&&(y.value=_,k.value=!0)}async function P(_=!1){if(!(_&&T.value)){C.value=_,T.value=!0,v.value=!1;try{j(await l.read())}catch{K&&(v.value=!0)}finally{K&&(T.value=!1,C.value=!1)}}}function z(_){ae(),x.value=_===void 0?M():{...M(),..._,remoteUrl:Qe(_),secret:"",passphrase:""},f.value=_,Q.value=!0}function R(){Q.value=!1,x.value=M(),f.value=void 0}function Z(_){S.value||(O.value=_,L.value=!0)}function ae(){L.value=!1,O.value=void 0}function de(){try{return Vt(x.value.remoteUrl)}catch{return}}function be(){const _=de();_===void 0||_.protocol===x.value.protocol||f.value!==void 0||(x.value.protocol=_.protocol,x.value.secret="",x.value.passphrase="",x.value.clearPassphrase=!1)}function Te(){const _=x.value,b=de();return{name:_.name,protocol:b?.protocol??_.protocol,host:b?.host??"",port:b?.port??(_.protocol==="SSH"?22:443),pathPrefix:b?.pathPrefix??"",username:b?.protocol==="SSH"?b.username??"":_.username,commitName:_.commitName,commitEmail:_.commitEmail,...f.value===void 0||_.secret.length>0?{secret:_.secret}:{},...(b?.protocol??_.protocol)!=="SSH"?{}:_.clearPassphrase?{passphrase:null}:_.passphrase.length>0?{passphrase:_.passphrase}:{}}}function re(_){const b=de();if(_==="remoteUrl"&&(b===void 0||f.value!==void 0&&b.protocol!==f.value.protocol))return new Error(o("personalGit.remoteInvalid"));const d=(f.value===void 0?Xe:et).safeParse(Te());if(d.success||!d.error.issues.some(E=>{const F=String(E.path[0]);return _==="remoteUrl"?["protocol","host","port","pathPrefix"].includes(F):F===_}))return;const w={name:"nameInvalid",remoteUrl:"remoteInvalid",username:"usernameInvalid",commitName:"identityInvalid",commitEmail:"identityInvalid",secret:"secretInvalid",passphrase:"passphraseInvalid"}[_];return w===void 0?void 0:new Error(o(`personalGit.${w}`))}async function pe(){if(S.value||$.value!==void 0||!await ee.value?.validate().catch(()=>!1))return;const _=(f.value===void 0?Xe:et).safeParse(Te());if(_.success){S.value=!0;try{const b=f.value===void 0?await l.createCredential(_.data):await l.updateCredential(f.value.id,_.data);if(!K)return;j(b),R(),X(o("personalGit.saved"),"success")}catch(b){K&&X(xe(b),"error",b)}finally{K&&(S.value=!1)}}}async function he(_){if(!(S.value||$.value!==void 0)){try{await Ce.confirm(o("personalGit.removeConfirm",{name:_.name}),o("personalGit.remove"),{icon:J("warning"),type:"warning"})}catch{return}if(!(S.value||$.value!==void 0)){$.value=_.id;try{j(await l.removeCredential(_.id)),O.value?.id===_.id&&ae()}catch(b){K&&X(xe(b),"error",b)}finally{K&&($.value=void 0)}}}}return(_,b)=>(n(),U(e(mt),{class:"personal-git-settings",loading:T.value&&!k.value&&!C.value,variant:"page"},{default:r(()=>[t("div",No,[t("header",null,[t("div",null,[t("h2",null,a(e(o)("personalGit.title")),1)])]),v.value||C.value?(n(),U(e(Ge),{key:0,class:"git-read-status"},{default:r(()=>[C.value?q("",!0):(n(),p("span",Go,a(e(o)("personalGit.loadFailed")),1)),i(e(N),{class:"mar-region-retry-action",link:"","aria-disabled":C.value||void 0,"aria-busy":C.value||void 0,"aria-label":C.value?e(o)("common.loading"):void 0,onClick:b[0]||(b[0]=d=>P(!0))},{default:r(()=>[C.value?(n(),U(e(Be),{key:0,class:"mar-read-loading-indicator"})):(n(),p(B,{key:1},[m(a(e(o)("common.retry")),1)],64))]),_:1},8,["aria-disabled","aria-busy","aria-label"])]),_:1})):(n(),p(B,{key:1},[t("p",Ao,a(e(o)("personalGit.summary")),1),t("div",Do,[i(e(N),{type:"primary",icon:e(J)("plus"),disabled:T.value||S.value||$.value!==void 0,onClick:b[1]||(b[1]=d=>z())},{default:r(()=>[m(a(e(o)("personalGit.add")),1)]),_:1},8,["icon","disabled"])]),i(e(gt),{class:"clickable-rows",data:y.value.credentials,"empty-text":e(o)("personalGit.empty"),"table-layout":"auto",onRowClick:Z},{default:r(()=>[i(e(fe),{prop:"name",label:e(o)("personalGit.name"),"min-width":"140"},null,8,["label"]),i(e(fe),{label:e(o)("personalGit.remote"),"min-width":"260"},{default:r(({row:d})=>[t("code",Bo,a(e(Qe)(d)),1)]),_:1},8,["label"]),i(e(fe),{prop:"username",label:e(o)("personalGit.username"),"min-width":"140"},null,8,["label"]),i(e(fe),{label:e(o)("personalGit.identity"),"min-width":"220"},{default:r(({row:d})=>[d.commitName?(n(),p(B,{key:0},[m(a(d.commitName)+" <"+a(d.commitEmail)+">",1)],64)):(n(),p("span",Fo,a(e(o)("personalGit.identityEmpty")),1))]),_:1},8,["label"]),i(e(fe),{label:e(o)("personalGit.actions"),width:"180"},{default:r(({row:d})=>[t("div",Lo,[i(e(N),{link:"",icon:e(J)("edit"),disabled:S.value||$.value!==void 0,onClick:Ie(D=>z(d),["stop"])},{default:r(()=>[m(a(e(o)("personalGit.edit")),1)]),_:1},8,["icon","disabled","onClick"]),i(e(N),{link:"",type:"danger",icon:e(J)("delete"),disabled:S.value||$.value!==void 0,loading:$.value===d.id,onClick:Ie(D=>he(d),["stop"])},{default:r(()=>[m(a(e(o)("personalGit.remove")),1)]),_:1},8,["icon","disabled","loading","onClick"])])]),_:1},8,["label"])]),_:1},8,["data","empty-text"])],64))]),L.value&&O.value?(n(),U(e(Me),{key:0,onVnodeMounted:e(Re),onVnodeBeforeUnmount:e(Ee),modelValue:L.value,"onUpdate:modelValue":b[2]||(b[2]=d=>L.value=d),title:e(o)("personalGit.detail"),width:"min(720px, calc(100vw - 32px))","append-to-body":"",onClosed:ae},{footer:r(()=>[t("div",Wo,[i(e(N),{disabled:S.value,onClick:ae},{default:r(()=>[m(a(e(o)("personalGit.close")),1)]),_:1},8,["disabled"])])]),default:r(()=>[i(e(ea),{column:1,border:""},{default:r(()=>[i(e(Ve),{label:e(o)("personalGit.credentialId")},{default:r(()=>[m(a(O.value.id),1)]),_:1},8,["label"]),i(e(Ve),{label:e(o)("personalGit.name")},{default:r(()=>[m(a(O.value.name),1)]),_:1},8,["label"]),i(e(Ve),{label:e(o)("personalGit.remote")},{default:r(()=>[t("code",Oo,a(e(Qe)(O.value)),1)]),_:1},8,["label"]),O.value.protocol==="HTTPS"?(n(),U(e(Ve),{key:0,label:e(o)("personalGit.username")},{default:r(()=>[m(a(O.value.username),1)]),_:1},8,["label"])):q("",!0),i(e(Ve),{label:e(o)("personalGit.identity")},{default:r(()=>[O.value.commitName?(n(),p(B,{key:0},[m(a(O.value.commitName)+" <"+a(O.value.commitEmail)+">",1)],64)):(n(),p("span",Ho,a(e(o)("personalGit.identityEmpty")),1))]),_:1},8,["label"]),i(e(Ve),{label:e(o)("personalGit.secretStatus")},{default:r(()=>[i(e(Ae),{type:O.value.hasSecret?"success":"info"},{default:r(()=>[m(a(e(o)(O.value.hasSecret?"personalGit.configured":"personalGit.notConfigured")),1)]),_:1},8,["type"])]),_:1},8,["label"]),O.value.protocol==="SSH"?(n(),U(e(Ve),{key:1,label:e(o)("personalGit.passphraseStatus")},{default:r(()=>[i(e(Ae),{type:O.value.hasPassphrase?"success":"info"},{default:r(()=>[m(a(e(o)(O.value.hasPassphrase?"personalGit.configured":"personalGit.notConfigured")),1)]),_:1},8,["type"])]),_:1},8,["label"])):q("",!0)]),_:1})]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):q("",!0),Q.value?(n(),U(e(Me),{key:1,onVnodeMounted:e(Re),onVnodeBeforeUnmount:e(Ee),modelValue:Q.value,"onUpdate:modelValue":b[11]||(b[11]=d=>Q.value=d),title:e(o)(f.value?"personalGit.editCredential":"personalGit.add"),width:"min(620px, calc(100vw - 32px))","append-to-body":"","close-on-click-modal":!S.value,"close-on-press-escape":!S.value,"show-close":!S.value,onClosed:R},{footer:r(()=>[i(e(N),{disabled:S.value,onClick:R},{default:r(()=>[m(a(e(o)("personalGit.cancel")),1)]),_:1},8,["disabled"]),i(e(N),{type:"primary",loading:S.value,onClick:pe},{default:r(()=>[m(a(e(o)("personalGit.save")),1)]),_:1},8,["loading"])]),default:r(()=>[i(e(qe),{ref_key:"credentialForm",ref:ee,model:x.value,rules:H.value,"label-position":"top",disabled:S.value,onSubmit:Ie(pe,["prevent"])},{default:r(()=>[i(e(oe),{prop:"name",label:e(o)("personalGit.name")},{default:r(()=>[i(e(ve),{modelValue:x.value.name,"onUpdate:modelValue":b[3]||(b[3]=d=>x.value.name=d),placeholder:e(o)("personalGit.nameHint"),maxlength:320},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(e(oe),{prop:"remoteUrl",label:e(o)("personalGit.remote")},{default:r(()=>[i(e(ve),{modelValue:x.value.remoteUrl,"onUpdate:modelValue":b[4]||(b[4]=d=>x.value.remoteUrl=d),placeholder:e(o)("personalGit.remoteHint"),maxlength:2048,"validate-event":!1,onChange:be},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),ne.value==="HTTPS"?(n(),U(e(oe),{key:0,prop:"username",label:e(o)("personalGit.username")},{default:r(()=>[i(e(ve),{modelValue:x.value.username,"onUpdate:modelValue":b[5]||(b[5]=d=>x.value.username=d),placeholder:e(o)("personalGit.usernameHint"),maxlength:320,autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):q("",!0),t("section",Qo,[t("p",Ko,a(e(o)("personalGit.identity")),1),t("p",jo,a(e(o)("personalGit.identityHint")),1),t("div",Jo,[i(e(oe),{prop:"commitName",label:e(o)("personalGit.commitName")},{default:r(()=>[i(e(ve),{modelValue:x.value.commitName,"onUpdate:modelValue":b[6]||(b[6]=d=>x.value.commitName=d),placeholder:e(o)("personalGit.namePlaceholder"),maxlength:320},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(e(oe),{prop:"commitEmail",label:e(o)("personalGit.email")},{default:r(()=>[i(e(ve),{modelValue:x.value.commitEmail,"onUpdate:modelValue":b[7]||(b[7]=d=>x.value.commitEmail=d),placeholder:e(o)("personalGit.emailPlaceholder"),maxlength:320},null,8,["modelValue","placeholder"])]),_:1},8,["label"])])]),i(e(oe),{prop:"secret",label:e(o)(ne.value==="SSH"?"personalGit.privateKey":"personalGit.password")},{default:r(()=>[i(e(ve),{modelValue:x.value.secret,"onUpdate:modelValue":b[8]||(b[8]=d=>x.value.secret=d),type:ne.value==="SSH"?"textarea":"password",rows:5,placeholder:e(o)(f.value?"personalGit.keepSecret":ne.value==="SSH"?"personalGit.keyHint":"personalGit.secretHint"),autocomplete:"new-password",maxlength:32768},null,8,["modelValue","type","placeholder"])]),_:1},8,["label"]),ne.value==="SSH"?(n(),p(B,{key:1},[i(e(oe),{prop:"passphrase",label:e(o)("personalGit.passphrase")},{default:r(()=>[i(e(ve),{modelValue:x.value.passphrase,"onUpdate:modelValue":b[9]||(b[9]=d=>x.value.passphrase=d),type:"password",disabled:x.value.clearPassphrase,placeholder:e(o)(f.value?.hasPassphrase?"personalGit.keepPassphrase":"personalGit.passphraseHint"),autocomplete:"new-password",maxlength:4096},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),f.value?.hasPassphrase?(n(),U(e(Xt),{key:0,modelValue:x.value.clearPassphrase,"onUpdate:modelValue":b[10]||(b[10]=d=>x.value.clearPassphrase=d)},{default:r(()=>[m(a(e(o)("personalGit.clearPassphrase")),1)]),_:1},8,["modelValue"])):q("",!0),t("p",zo,a(e(o)("personalGit.sshNotice")),1)],64)):q("",!0),t("p",Yo,a(e(o)("personalGit.secretNotice")),1)]),_:1},8,["model","rules","disabled"])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-on-click-modal","close-on-press-escape","show-close"])):q("",!0)]),_:1},8,["loading"]))}}),Xo=we(Zo,[["__scopeId","data-v-b67b7ee2"]]),ut=6e4;class es{constructor(s,l){this.request=s,this.reportError=l}request;reportError;pagination=aa({context:()=>JSON.stringify(this.recordsQuery??null),key:ts,reloadOnViewportChange:!1,read:async s=>{if(!this.recordsQuery)throw new Error("USAGE_QUERY_INVALID");this.begin();const l=await this.request(this.path("records",this.recordsQuery,s),{signal:this.abort.signal,cache:"no-store"});return ct(l,s)}});state=ze({loading:!1,loadingPage:Y(()=>this.pagination.loading.value),refreshing:!1,failed:!1,refreshFailed:!1,recordsStale:!1,page:Y(()=>this.pagination.page.value),total:Y(()=>String(this.pagination.total.value)),overview:void 0,records:Y(()=>this.pagination.items.value),availableModels:[]});generation=0;abort;query;recordsQuery;rollingWindow;interacting=!1;timer;visibility;nextRefreshAt=0;failures=0;async load(s,l={}){this.pagination.invalidate(l.reset!==!1);const y=this.begin();return this.query={...s},this.rollingWindow=l.rolling?s.to-s.from:void 0,this.state.loading=!0,this.state.failed=!1,l.reset!==!1&&(this.interacting=!1,this.state.overview=void 0,this.state.recordsStale=!1,this.recordsQuery=void 0),await this.readOverview(s,y,!1)}startAutoRefresh(s){this.visibility?.removeEventListener("visibilitychange",this.onVisibilityChange),this.visibility=s,s.addEventListener("visibilitychange",this.onVisibilityChange),this.nextRefreshAt||(this.nextRefreshAt=Date.now()+ut),this.schedule()}setRecordsInteracting(s){this.interacting=s}get preserveRecords(){return this.recordsQuery!==void 0&&(this.state.page>1||this.interacting||this.state.recordsStale||this.pagination.failure.value!==void 0)}async readOverview(s,l,y){const T=y&&this.preserveRecords;try{const k={signal:this.abort.signal,cache:"no-store"},[v,C]=await Promise.all([this.request(this.path("overview",s),k),T?Promise.resolve(void 0):this.request(this.path("records",s),k)]);if(l!==this.generation)return!1;const S=C&&(!y||!this.preserveRecords)?ct(C,1):void 0;return this.state.overview=v,S?(this.recordsQuery={...s},this.pagination.replace(S),this.state.recordsStale=!1):this.state.recordsStale=!0,(this.state.availableModels.length===0||this.isUnfiltered(s))&&(this.state.availableModels=v.models),this.state.failed=!1,this.state.refreshFailed=!1,this.failures=0,!0}catch(k){return l!==this.generation||(this.abort?.abort(),this.state.failed=!0,this.state.refreshFailed=y,this.failures++,y||(this.recordsQuery=void 0,this.pagination.invalidate(!0),this.state.recordsStale=!1,this.reportError(k))),!1}finally{l===this.generation&&(this.state.loading=!1,this.state.refreshing=!1,this.nextRefreshAt=Date.now()+Math.min(3e5,ut*2**Math.min(this.failures,3)),this.schedule())}}async goToPage(s){!this.recordsQuery||this.state.loading||this.state.loadingPage||s<1||s>Math.ceil(Number(this.state.total)/20)||(await this.pagination.setPage(s),this.schedule())}async loadMore(s=!1){!this.recordsQuery||this.state.loading||(await this.pagination.loadMore(s),this.schedule())}async retryPage(){await this.pagination.retry(),this.schedule()}begin(){return this.clearTimer(),this.abort?.abort(),this.abort=new AbortController,this.state.loading=!1,this.state.refreshing=!1,++this.generation}onVisibilityChange=()=>{this.clearTimer(),this.visibility?.visibilityState!=="visible"&&this.state.refreshing&&(this.generation++,this.abort?.abort(),this.state.refreshing=!1),this.schedule()};clearTimer(){this.timer!==void 0&&clearTimeout(this.timer),this.timer=void 0}schedule(){this.clearTimer(),!(this.visibility?.visibilityState!=="visible"||!this.query||this.state.loading||this.state.loadingPage||this.state.refreshing)&&(this.timer=setTimeout(()=>{const s={...this.query};this.rollingWindow!==void 0&&(s.to=Date.now(),s.from=s.to-this.rollingWindow);const l=this.begin();this.state.refreshing=!0,this.readOverview(s,l,!0)},Math.max(0,this.nextRefreshAt-Date.now())))}dispose(){this.clearTimer(),this.visibility?.removeEventListener("visibilitychange",this.onVisibilityChange),this.visibility=void 0,this.generation++,this.abort?.abort(),this.query=void 0,this.recordsQuery=void 0,this.pagination.dispose(),this.state.loading=!1,this.state.refreshing=!1,this.state.overview=void 0,this.state.availableModels=[]}path(s,l,y=1){const T=new URLSearchParams;for(const[k,v]of Object.entries(l))v!==void 0&&T.set(k,String(v));return s==="records"&&T.set("page",String(y)),`/api/me/usage/${s}?${T}`}isUnfiltered(s){return s.runner===void 0&&s.model===void 0&&s.mode===void 0}}function ct(c,s){if(!/^(0|[1-9]\d*)$/u.test(c.total))throw new Error("USAGE_PAGE_RESPONSE_INVALID");const l=Number(c.total),y=c.page??s;if(!Number.isSafeInteger(l)||!Number.isSafeInteger(y)||y<1)throw new Error("USAGE_PAGE_RESPONSE_INVALID");return{items:c.records,page:y,pageSize:20,total:l,hasMore:BigInt(y)*20n<BigInt(c.total)}}function ts(c){return c.ledgerId??c.recordId}const as={class:"usage settings-panel","data-testid":"usage-statistics"},os={class:"usage-content"},ss={class:"usage-summary"},ls={class:"refresh-actions"},ns={class:"metadata",role:"status"},is={key:1,class:"usage-purpose-scroll"},rs={key:2,class:"metadata"},us={key:3,class:"overview"},cs={class:"usage-count",tabindex:"0"},ds=["tabindex"],ps={class:"usage-count",tabindex:"0"},ms={class:"usage-count",tabindex:"0"},vs={class:"metadata"},hs={class:"section-heading"},gs=["id"],fs={class:"metadata"},bs={key:0,class:"mar-empty"},ys={key:1,class:"trend"},ks={class:"legend"},ws=["tabindex"],Ss=["aria-label","aria-describedby"],_s=["aria-label","tabindex","transform","onPointerenter","onClick","onFocus"],Ts=["y","width","height"],$s=["y","width","height"],Cs=["y","width","height"],xs=["width"],Ps=["id"],Vs={class:"section-heading"},Is={class:"distributions"},Ms={key:0,class:"mar-empty"},Es={key:1},Rs={class:"distribution-cache metadata"},Us=["tabindex"],qs={class:"usage-count",tabindex:"0"},Ns={class:"bar-track","aria-hidden":"true"},Gs={class:"section-heading"},As={key:0,class:"records-update"},Ds={class:"metadata"},Bs=["aria-label"],Fs={class:"record-detail"},Ls=["tabindex"],Os=["tabindex"],Hs=ke({__name:"UsageStatisticsSettings",props:{request:{type:Function}},setup(c){const s=c,{t:l,locale:y}=De(),T=pt(),k=new es(s.request,g=>X(xe(g),"error",g)),v=k.state,C=k.pagination,S=Y(()=>v.loading||v.loadingPage&&!C.loadingMore.value);oa(C),Ne(C.mobileViewport,()=>{re(!0)});const $=I(),Q=["conversation","compact","prompt_completion","title","other"],f=ze({period:"24h",range:null,runner:"",model:"",mode:"",purpose:"conversation"}),L=Intl.DateTimeFormat().resolvedOptions().timeZone,O=["mar-agent","codex","claude-code","opencode"],ee=I(f.purpose),M=Y(()=>Q.map(g=>({value:g,label:l(`usageStatistics.purposes.${g}`)}))),x=I("totalTokens"),K=["inputTokens","cacheReadTokens","outputTokens","totalTokens"],ne={running:"primary",succeeded:"info",failed:"danger",cancelled:"info",interrupted:"warning"},H=Et(),j=I(0),P=Y(()=>{const g=H.value,h=g&&v.overview?.buckets[g.index];return h?ye(h):[]}),z=Y(()=>{const g=H.value?.anchor;return g?{contextElement:g,getBoundingClientRect:()=>g.getBoundingClientRect()}:void 0});function R(g,h){H.value={index:g,anchor:h.currentTarget}}function Z(g){H.value?.anchor===g.currentTarget&&(H.value=void 0)}function ae(g){if(g.key==="Escape"&&H.value){g.preventDefault(),g.stopPropagation(),H.value=void 0;return}if(g.key!=="ArrowLeft"&&g.key!=="ArrowRight")return;g.preventDefault();const h=g.currentTarget,G=g.key==="ArrowLeft"?h.previousElementSibling:h.nextElementSibling;G instanceof SVGElement&&G.classList.contains("trend-bucket")&&G.focus()}const de=Y(()=>v.availableModels.length>0?v.availableModels:v.overview?.models??[]),be=()=>{const g=Date.now();return Rt.parse({from:f.period==="custom"?f.range?.[0]?.getTime():g-(f.period==="24h"?864e5:7*864e5),to:f.period==="custom"?f.range?.[1]?.getTime():g,timeZone:L,...f.runner?{runner:f.runner}:{},...f.model?{model:f.model}:{},...f.mode?{mode:f.mode}:{},...f.purpose?{purpose:f.purpose}:{}})},Te=Y(()=>({range:[{validator:(g,h,G)=>{try{be(),G()}catch{G(new Error(l("usageStatistics.invalidRange")))}}}]}));async function re(g=!1,h){const G=await $.value?.validate().catch(()=>!1);if(h!==void 0&&h!==ee.value)return;if(!G){h!==void 0&&(ee.value=f.purpose);return}h!==void 0&&(f.purpose=h),g&&(he=!1),await k.load(be(),{reset:g,rolling:f.period!=="custom"})&&(_.value=[],k.setRecordsInteracting(he))}function pe(){$.value?.clearValidate("range"),(f.period!=="custom"||f.range)&&re(!0)}let he=!1;const _=I([]);function b({order:g}){he=g!==null,k.setRecordsInteracting(he||_.value.length>0)}function d(g,h){Array.isArray(h)&&(_.value=h.map(We),k.setRecordsInteracting(he||_.value.length>0))}Ne(()=>v.overview,g=>{const h=H.value,G=g?.buckets.length??0;h&&(h.anchor.ownerDocument.activeElement!==h.anchor||h.index>=G||g?.selected.requests==="0")&&(H.value=void 0),j.value=Math.min(j.value,Math.max(0,G-1))}),Ne(()=>v.records,g=>{const h=new Set(g.map(We));_.value=_.value.filter(G=>h.has(G)),k.setRecordsInteracting(he||_.value.length>0)});function D(g,h=!1){return new Intl.NumberFormat(y.value,{notation:h?"compact":"standard",maximumFractionDigits:1}).format(BigInt(g??"0"))}function w(g){return g==null?l("usageStatistics.unknown"):na(g)}function E(g){const h=D(g,!0),G=D(g);return h===G?G:`${h} (${G})`}function F(g,h){return BigInt(h)===0n?0:Number(BigInt(g)*10000n/BigInt(h))/1e4}function ie(g,h=!1){return l("usageStatistics.cacheWithRate",{tokens:D(g.cacheReadTokens,h),rate:Wt(g.cacheReadTokens,g.inputTokens,y.value)})}function W(g){return`${l("usageStatistics.cacheReadTokens")}: ${ie(g)} · ${l("usageStatistics.cacheWriteTokens")}: ${D(g.cacheWriteTokens)}`}function ye(g){return[`${w(g.from)} – ${w(g.to)}`,`${l("usageStatistics.inputTokens")}: ${E(g.inputTokens)}`,`${l("usageStatistics.cache")}: ${ie(g,!0)}`,W(g),`${l("usageStatistics.outputTokens")}: ${E(g.outputTokens)}`,`${l("usageStatistics.totalTokens")}: ${E(g.totalTokens)}`]}function ue(g){return g.cacheReadTokens!=null||g.cacheWriteTokens!=null}const Pe=Y(()=>(v.overview?.buckets??[]).reduce((g,h)=>BigInt(h.totalTokens)>BigInt(g)?h.totalTokens:g,"0")),Ze=g=>[...g].sort((h,G)=>BigInt(h[x.value])===BigInt(G[x.value])?h.key.localeCompare(G.key):BigInt(h[x.value])>BigInt(G[x.value])?-1:1),ft=Y(()=>[{kind:"runners",groups:Ze(v.overview?.runners??[])},{kind:"models",groups:Ze(v.overview?.models??[])}]),bt=Y(()=>v.overview?[{label:"last24Hours",value:v.overview.last24Hours},{label:"last7Days",value:v.overview.last7Days}]:[]),He=g=>l(`usageStatistics.runnerNames.${g}`),We=g=>g.ledgerId??g.recordId;function yt(g,h,G){if(g[G]==null)return h[G]==null?0:-1;if(h[G]==null)return 1;const u=BigInt(String(g[G])),V=BigInt(String(h[G]));return u===V?0:u>V?1:-1}return Ue(()=>{C.start(),re(),k.startAutoRefresh(document)}),ht(()=>{k.dispose()}),(g,h)=>{const G=Oe("tooltip");return n(),p("section",as,[t("div",os,[t("header",null,[t("div",null,[t("h2",null,a(e(l)("usageStatistics.title")),1),t("p",ss,a(e(l)("usageStatistics.accountScope")),1)]),t("div",ls,[t("span",ns,a(e(v).refreshFailed?e(l)("usageStatistics.refreshDelayed"):""),1),le(i(e(N),{class:"mar-icon-action",text:"",circle:"",size:"small",icon:e(J)("refresh"),disabled:e(v).loading,"aria-label":e(l)("usageStatistics.refresh"),onClick:h[0]||(h[0]=u=>re())},null,8,["icon","disabled","aria-label"]),[[G,e(l)("usageStatistics.refresh")]])])]),e(C).mobileViewport.value?(n(),U(e(Se),{key:0,modelValue:ee.value,"onUpdate:modelValue":h[1]||(h[1]=u=>ee.value=u),class:"usage-purpose-select",options:M.value,"aria-label":e(l)("usageStatistics.purpose"),onChange:h[2]||(h[2]=u=>re(!0,ee.value))},null,8,["modelValue","options","aria-label"])):(n(),p("div",is,[i(e(la),{modelValue:ee.value,"onUpdate:modelValue":h[3]||(h[3]=u=>ee.value=u),options:M.value,label:e(l)("usageStatistics.purpose"),onChange:h[4]||(h[4]=u=>re(!0,u))},null,8,["modelValue","options","label"])])),e(v).overview?(n(),p("p",rs,a(e(l)("usageStatistics.overviewScope")),1)):q("",!0),e(v).overview?(n(),p("div",us,[(n(!0),p(B,null,te(bt.value,u=>(n(),p("section",{key:u.label,class:"overview-cell"},[t("h3",null,a(e(l)(`usageStatistics.${u.label}`)),1),t("p",null,[m(a(e(l)("usageStatistics.input"))+" ",1),le((n(),p("span",cs,[m(a(D(u.value.inputTokens,!0)),1)])),[[G,{content:D(u.value.inputTokens),touch:!0}]]),m(" · "+a(e(l)("usageStatistics.cache"))+" ",1),le((n(),p("span",{class:_e({"usage-count":ue(u.value)}),tabindex:ue(u.value)?0:void 0},[m(a(ie(u.value,!0)),1)],10,ds)),[[G,{touch:!0,content:W(u.value),disabled:!ue(u.value)}]]),m(" · "+a(e(l)("usageStatistics.output"))+" ",1),le((n(),p("span",ps,[m(a(D(u.value.outputTokens,!0)),1)])),[[G,{content:D(u.value.outputTokens),touch:!0}]])]),le((n(),p("strong",ms,[m(a(D(u.value.totalTokens,!0)),1)])),[[G,{content:D(u.value.totalTokens),touch:!0}]]),t("span",null,a(e(l)("usageStatistics.totalTokens")),1),t("span",vs," · "+a(e(l)("usageStatistics.requests"))+" "+a(D(u.value.requests)),1)]))),128))])):q("",!0),i(e(qe),{ref_key:"form",ref:$,model:f,rules:Te.value,class:"filters","label-position":"top",onSubmit:h[11]||(h[11]=Ie(u=>re(),["prevent"]))},{default:r(()=>[i(e(oe),{label:e(l)("usageStatistics.range")},{default:r(()=>[i(e(Se),{modelValue:f.period,"onUpdate:modelValue":h[5]||(h[5]=u=>f.period=u),"aria-label":e(l)("usageStatistics.range"),onChange:pe,"clear-icon":e(J)("clear-input"),"suffix-icon":e(J)("chevron-down")},{default:r(()=>[i(e(ce),{label:e(l)("usageStatistics.last24Hours"),value:"24h"},null,8,["label"]),i(e(ce),{label:e(l)("usageStatistics.last7Days"),value:"7d"},null,8,["label"]),i(e(ce),{label:e(l)("usageStatistics.custom"),value:"custom"},null,8,["label"])]),_:1},8,["modelValue","aria-label","clear-icon","suffix-icon"])]),_:1},8,["label"]),i(e(oe),{label:e(l)("usageStatistics.runner")},{default:r(()=>[i(e(Se),{modelValue:f.runner,"onUpdate:modelValue":h[6]||(h[6]=u=>f.runner=u),clearable:"",placeholder:e(l)("usageStatistics.all"),"aria-label":e(l)("usageStatistics.runner"),onChange:h[7]||(h[7]=u=>{f.model="",pe()}),"clear-icon":e(J)("clear-input"),"suffix-icon":e(J)("chevron-down")},{default:r(()=>[(n(),p(B,null,te(O,u=>i(e(ce),{key:u,label:He(u),value:u},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder","aria-label","clear-icon","suffix-icon"])]),_:1},8,["label"]),i(e(oe),{label:e(l)("usageStatistics.model")},{default:r(()=>[i(e(Se),{modelValue:f.model,"onUpdate:modelValue":h[8]||(h[8]=u=>f.model=u),clearable:"",placeholder:e(l)("usageStatistics.all"),"aria-label":e(l)("usageStatistics.model"),onChange:pe,"clear-icon":e(J)("clear-input"),"suffix-icon":e(J)("chevron-down")},{default:r(()=>[(n(!0),p(B,null,te(de.value,u=>(n(),U(e(ce),{key:u.key,label:u.label||e(l)("usageStatistics.unknown"),value:u.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","aria-label","clear-icon","suffix-icon"])]),_:1},8,["label"]),i(e(oe),{label:e(l)("usageStatistics.mode")},{default:r(()=>[i(e(Se),{modelValue:f.mode,"onUpdate:modelValue":h[9]||(h[9]=u=>f.mode=u),clearable:"",placeholder:e(l)("usageStatistics.all"),"aria-label":e(l)("usageStatistics.mode"),onChange:pe,"clear-icon":e(J)("clear-input"),"suffix-icon":e(J)("chevron-down")},{default:r(()=>[(n(),p(B,null,te(["work","conversation"],u=>i(e(ce),{key:u,label:e(l)(`usageStatistics.modes.${u}`),value:u},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder","aria-label","clear-icon","suffix-icon"])]),_:1},8,["label"]),f.period==="custom"?(n(),U(e(oe),{key:0,prop:"range",label:e(l)("usageStatistics.custom"),"validate-event":!1,class:"custom-range"},{default:r(()=>[i(e(ta),{modelValue:f.range,"onUpdate:modelValue":h[10]||(h[10]=u=>f.range=u),type:"datetimerange","single-panel":"","validate-event":!1,"start-placeholder":e(l)("usageStatistics.from"),"end-placeholder":e(l)("usageStatistics.to"),onChange:pe,"prefix-icon":e(J)("calendar"),"clear-icon":e(J)("clear-input")},{"prev-month":r(()=>[i(e($e),{name:"chevron-left"})]),"next-month":r(()=>[i(e($e),{name:"chevron-right"})]),"prev-year":r(()=>[i(e($e),{name:"chevrons-left"})]),"next-year":r(()=>[i(e($e),{name:"chevrons-right"})]),_:1},8,["modelValue","start-placeholder","end-placeholder","prefix-icon","clear-icon"])]),_:1},8,["label"])):q("",!0)]),_:1},8,["model","rules"]),e(v).overview?(n(),p(B,{key:4},[t("div",hs,[t("h3",null,a(e(l)("usageStatistics.trend")),1),le((n(),p("span",{id:`${e(T)}-summary`,class:"usage-count",tabindex:"0"},[m(a(e(l)("usageStatistics.selected",{tokens:D(e(v).overview.selected.totalTokens,!0),input:D(e(v).overview.selected.inputTokens,!0),cache:ie(e(v).overview.selected,!0),output:D(e(v).overview.selected.outputTokens,!0),requests:D(e(v).overview.selected.requests)})),1)],8,gs)),[[G,{content:e(l)("usageStatistics.selected",{tokens:D(e(v).overview.selected.totalTokens),input:D(e(v).overview.selected.inputTokens),cache:ie(e(v).overview.selected),output:D(e(v).overview.selected.outputTokens),requests:D(e(v).overview.selected.requests)}),touch:!0}]])]),t("p",fs,a(e(l)("usageStatistics.timeZone",{zone:e(L)})),1),e(v).overview.selected.requests==="0"?(n(),p("p",bs,a(e(l)("usageStatistics.empty")),1)):(n(),p("div",ys,[t("div",ks,[h[18]||(h[18]=t("span",{class:"input-key"},null,-1)),m(a(e(l)("usageStatistics.input"))+" ",1),h[19]||(h[19]=t("span",{class:"cache-key"},null,-1)),le((n(),p("span",{class:_e({"usage-count":ue(e(v).overview.selected)}),tabindex:ue(e(v).overview.selected)?0:void 0},[m(a(e(l)("usageStatistics.cache")),1)],10,ws)),[[G,{touch:!0,content:W(e(v).overview.selected),disabled:!ue(e(v).overview.selected)}]]),h[20]||(h[20]=t("span",{class:"output-key"},null,-1)),m(a(e(l)("usageStatistics.output")),1)]),(n(),p("svg",{class:"usage-trend-chart",viewBox:"0 0 800 170",role:"group","aria-label":e(l)("usageStatistics.trend"),"aria-describedby":`${e(T)}-range ${e(T)}-summary`,preserveAspectRatio:"none"},[h[21]||(h[21]=t("line",{x1:"0",y1:"155",x2:"800",y2:"155",class:"axis"},null,-1)),(n(!0),p(B,null,te(e(v).overview.buckets,(u,V)=>(n(),p("g",{key:V,class:"trend-bucket",role:"img","aria-label":ye(u).join(" · "),tabindex:V===j.value?0:-1,transform:`translate(${V*800/e(v).overview.buckets.length},0)`,onPointerenter:ge=>ge.pointerType!=="touch"&&R(V,ge),onPointerleave:h[12]||(h[12]=ge=>ge.pointerType!=="touch"&&!ge.currentTarget.matches(":focus-visible")&&Z(ge)),onClick:ge=>R(V,ge),onFocus:ge=>{j.value=V,R(V,ge)},onBlur:Z,onKeydown:ae},[t("rect",{class:"input-bar",x:2,y:155-F(u.inputTokens,Pe.value)*140,width:Math.max(1,800/e(v).overview.buckets.length-4),height:F(u.inputTokens,Pe.value)*140},null,8,Ts),t("rect",{class:"cache-bar",x:2,y:155-F(u.inputTokens,Pe.value)*140,width:Math.max(1,800/e(v).overview.buckets.length-4),height:Math.min(F(u.cacheReadTokens??"0",Pe.value),F(u.inputTokens,Pe.value))*140},null,8,$s),t("rect",{class:"output-bar",x:2,y:155-F(u.totalTokens,Pe.value)*140,width:Math.max(1,800/e(v).overview.buckets.length-4),height:F(u.outputTokens,Pe.value)*140},null,8,Cs),t("rect",{class:"bucket-hit-area",width:800/e(v).overview.buckets.length,y:"15",height:"140"},null,8,xs)],40,_s))),128))],8,Ss)),P.value.length?(n(),U(e(It),{key:0,anchor:z.value,placement:"bottom"},{default:r(()=>[(n(!0),p(B,null,te(P.value,(u,V)=>(n(),p("div",{key:V,class:"usage-tooltip-detail"},a(u),1))),128))]),_:1},8,["anchor"])):q("",!0),t("div",{id:`${e(T)}-range`,class:"axis-labels"},[t("span",null,a(w(e(v).overview.buckets[0]?.from)),1),t("span",null,a(w(e(v).overview.buckets.at(-1)?.to)),1)],8,Ps)])),t("div",Vs,[t("h3",null,a(e(l)("usageStatistics.distribution")),1),i(e(Ht),{modelValue:x.value,"onUpdate:modelValue":h[13]||(h[13]=u=>x.value=u),"aria-label":e(l)("usageStatistics.metric")},{default:r(()=>[i(e(nt),{value:"totalTokens"},{default:r(()=>[m(a(e(l)("usageStatistics.tokens")),1)]),_:1}),i(e(nt),{value:"requests"},{default:r(()=>[m(a(e(l)("usageStatistics.requests")),1)]),_:1})]),_:1},8,["modelValue","aria-label"])]),t("div",Is,[(n(!0),p(B,null,te(ft.value,u=>(n(),p("section",{key:u.kind},[t("h4",null,a(e(l)(`usageStatistics.${u.kind}`)),1),u.groups.length?(n(),p("ol",Es,[(n(!0),p(B,null,te(u.groups,V=>(n(),p("li",{key:V.key},[t("div",null,[t("span",null,a(u.kind==="runners"?He(V.key):V.label||e(l)("usageStatistics.unknown")),1)]),t("div",Rs,[m(a(e(l)("usageStatistics.cache"))+" ",1),le((n(),p("span",{class:_e({"usage-count":ue(V)}),tabindex:ue(V)?0:void 0},[m(a(ie(V,!0)),1)],10,Us)),[[G,{touch:!0,content:W(V),disabled:!ue(V)}]]),m(" · "+a(e(l)(x.value==="totalTokens"?"usageStatistics.totalTokens":"usageStatistics.requests"))+" ",1),le((n(),p("strong",qs,[m(a(D(V[x.value],!0)),1)])),[[G,{content:D(V[x.value]),touch:!0}]])]),t("div",Ns,[t("span",{style:Le({width:`${F(V[x.value],u.groups[0][x.value])*100}%`})},null,4)])]))),128))])):(n(),p("p",Ms,a(e(l)("usageStatistics.empty")),1))]))),128))])],64)):q("",!0),e(v).overview||e(v).failed||e(v).loading?(n(),p(B,{key:5},[t("div",Gs,[t("h3",null,a(e(l)("usageStatistics.records")),1),t("span",null,a(e(l)("usageStatistics.recordsHint")),1)]),e(v).recordsStale?(n(),p("div",As,[t("span",Ds,a(e(l)("usageStatistics.recordsSnapshot")),1),i(e(N),{link:"",disabled:e(v).loading,onClick:h[14]||(h[14]=u=>re())},{default:r(()=>[m(a(e(l)("usageStatistics.updateRecords")),1)]),_:1},8,["disabled"])])):q("",!0),i(e(gt),{data:e(v).records,"row-key":We,"expand-row-keys":_.value,class:"records","aria-busy":S.value,onSortChange:b,onExpandChange:d},Mt({default:r(()=>[i(e(fe),{type:"expand"},{default:r(({row:u})=>[t("dl",Fs,[(n(),p(B,null,te(["requestedModel","actualModel","sessionId","runId","requestId","responseId","cacheReadTokens","cacheWriteTokens","reasoningTokens"],V=>(n(),p(B,{key:V},[t("dt",null,a(e(l)(`usageStatistics.${V}`)),1),t("dd",null,[V.endsWith("Tokens")?le((n(),p("span",{key:0,class:_e({"usage-count":V==="cacheReadTokens"?ue(u):u[V]!=null}),tabindex:(V==="cacheReadTokens"?ue(u):u[V]!=null)?0:void 0},[m(a(V==="cacheReadTokens"?ie(u,!0):D(u[V],!0)),1)],10,Ls)),[[G,{touch:!0,content:V==="cacheReadTokens"?W(u):D(u[V]),disabled:V==="cacheReadTokens"?!ue(u):u[V]==null}]]):(n(),p(B,{key:1},[m(a(u[V]??e(l)("usageStatistics.unknown")),1)],64))])],64))),64)),t("dt",null,a(e(l)("usageStatistics.coverageLabel")),1),t("dd",null,a(e(l)(`usageStatistics.coverages.${u.coverage}`))+" · "+a(e(l)(`usageStatistics.roles.${u.agentRole}`)),1)])]),_:1}),i(e(fe),{prop:"endedAt",label:e(l)("usageStatistics.time"),sortable:"","min-width":"180"},{default:r(({row:u})=>[m(a(w(u.endedAt)),1)]),_:1},8,["label"]),i(e(fe),{prop:"runner",label:e(l)("usageStatistics.runner"),sortable:"","min-width":"110"},{default:r(({row:u})=>[m(a(He(u.runner)),1)]),_:1},8,["label"]),i(e(fe),{label:e(l)("usageStatistics.model"),"min-width":"160"},{default:r(({row:u})=>[m(a(u.actualModel??u.requestedModel??e(l)("usageStatistics.unknown")),1)]),_:1},8,["label"]),i(e(fe),{label:e(l)("usageStatistics.purpose"),"min-width":"100"},{default:r(({row:u})=>[m(a(e(l)(`usageStatistics.purposes.${u.purpose}`)),1)]),_:1},8,["label"]),(n(),p(B,null,te(K,u=>i(e(fe),{key:u,prop:u,label:u==="cacheReadTokens"?e(l)("usageStatistics.cache"):e(l)(`usageStatistics.${u}`),sortable:"","sort-method":(V,ge)=>yt(V,ge,u),"min-width":u==="cacheReadTokens"?170:110},{default:r(({row:V})=>[le((n(),p("span",{class:_e({"usage-count":u==="cacheReadTokens"?ue(V):V[u]!=null}),tabindex:(u==="cacheReadTokens"?ue(V):V[u]!=null)?0:void 0},[m(a(u==="cacheReadTokens"?ie(V,!0):D(V[u],!0)),1)],10,Os)),[[G,{touch:!0,content:u==="cacheReadTokens"?W(V):D(V[u]),disabled:u==="cacheReadTokens"?!ue(V):V[u]==null}]])]),_:2},1032,["prop","label","sort-method","min-width"])),64)),i(e(fe),{label:e(l)("usageStatistics.state"),"min-width":"105"},{default:r(({row:u})=>[i(e(Ae),{type:ne[u.state],effect:"plain",role:"status","aria-label":e(l)(`usageStatistics.states.${u.state}`)},{default:r(()=>[m(a(e(l)(`usageStatistics.states.${u.state}`)),1)]),_:2},1032,["type","aria-label"])]),_:1},8,["label"])]),_:2},[S.value?{name:"loading",fn:r(()=>[t("span",{role:"progressbar","aria-label":e(l)("common.loading")},[i(e(Be),{class:"mar-read-loading-indicator"})],8,Bs)]),key:"0"}:void 0]),1032,["data","expand-row-keys","aria-busy"]),i(sa,{page:e(v).page,"page-size":20,total:Number(e(v).total),mobile:e(C).mobileViewport.value,"mobile-visible-count":e(v).records.length,"has-more":e(C).hasMore.value,loading:e(v).loading||e(v).loadingPage,"loading-more":e(C).loadingMore.value,failed:e(C).failure.value!==void 0,"incremental-failed":e(C).failure.value?.incremental===!0,error:e(C).failure.value?.error,"context-key":e(C).contextKey.value,"aria-label":e(l)("usageStatistics.pagination"),onPage:h[15]||(h[15]=u=>e(k).goToPage(u)),onLoadMore:h[16]||(h[16]=u=>e(k).loadMore(u)),onRetry:h[17]||(h[17]=u=>e(k).retryPage())},null,8,["page","total","mobile","mobile-visible-count","has-more","loading","loading-more","failed","incremental-failed","error","context-key","aria-label"])],64)):q("",!0)])])}}}),Ws=we(Hs,[["__scopeId","data-v-e9d7b318"]]),Qs={class:"system-notification-control"},Ks={class:"notification-channel"},js={key:0},Js={class:"notification-channel-actions"},zs={key:1,class:"notification-channel-detail",role:"status"},Ys=ke({__name:"SystemNotificationControl",props:{service:{}},setup(c){const s=c,l=Y(()=>["enabled","disabled"].includes(s.service.status.value)),y=I(!1);async function T(){if(!y.value){y.value=!0;try{await s.service.enablePush()}finally{y.value=!1}}}const k=Y(()=>!s.service.enabled.value&&(["unsupported","denied"].includes(s.service.status.value)||s.service.mode==="mobile-push"&&!s.service.pushReady()&&s.service.pushStatus.value!=="unavailable"));return(v,C)=>(n(),p("div",Qs,[t("div",Ks,[c.service.mode==="mobile-push"?(n(),p("h3",js,a(e(o)("workbenchNotificationCenter.webPush.title")),1)):q("",!0),t("div",Js,[i(e(N),{icon:c.service.enabled.value?"power":"notification",loading:c.service.requesting.value,disabled:k.value||y.value,onClick:C[0]||(C[0]=S=>c.service.setEnabled(!c.service.enabled.value))},{default:r(()=>[m(a(e(o)(c.service.mode==="mobile-push"?c.service.enabled.value?"workbenchNotificationCenter.webPush.disable":"workbenchNotificationCenter.webPush.enable":c.service.enabled.value?"workbenchNotificationCenter.systemNotifications.disable":"workbenchNotificationCenter.systemNotifications.enable")),1)]),_:1},8,["icon","loading","disabled"]),t("p",{role:"status",class:_e({"notification-channel-detail":!l.value})},[l.value?(n(),U(e(Ae),{key:0,type:c.service.status.value==="enabled"?"success":"info",effect:"plain"},{default:r(()=>[m(a(e(o)(`workbenchNotificationCenter.systemNotifications.${c.service.status.value}`)),1)]),_:1},8,["type"])):(n(),p(B,{key:1},[m(a(e(o)(`workbenchNotificationCenter.systemNotifications.${c.service.status.value}`)),1)],64))],2),c.service.mode==="mobile-push"&&c.service.enabled.value&&(y.value||["actionRequired","unavailable"].includes(c.service.pushStatus.value))?(n(),U(e(N),{key:0,icon:"notification",loading:y.value,onClick:T},{default:r(()=>[m(a(e(o)("workbenchNotificationCenter.webPush.enable")),1)]),_:1},8,["loading"])):q("",!0)]),c.service.mode==="mobile-push"?(n(),p("p",zs,a(e(o)(`workbenchNotificationCenter.webPush.${c.service.pushStatus.value}`)),1)):q("",!0)])]))}}),Zs=we(Ys,[["__scopeId","data-v-9d629cfd"]]),Xs={key:2,class:"full settings-panel"},el={class:"account-summary"},tl=["aria-label"],al={class:"admin-sessions-heading"},ol=["aria-label"],sl={key:2},ll={class:"account-actions"},nl={key:0,class:"password-form-error",role:"alert"},il={key:3,class:"full settings-panel"},rl={class:"registration-summary"},ul={key:0,class:"registration-guide"},cl={class:"registration-action"},dl={key:1,class:"token registration-token"},pl={key:5,class:"full settings-panel"},ml={class:"account-summary"},vl={class:"appearance-options"},hl={class:"theme-row"},gl={id:"appearance-theme-label",class:"theme-label",for:"appearance-theme"},fl={class:"theme-row"},bl={id:"appearance-file-editor-label",class:"theme-label",for:"appearance-file-editor"},yl={class:"theme-row"},kl={id:"appearance-icon-theme-label",class:"theme-label",for:"appearance-icon-theme"},wl={class:"theme-row"},Sl={id:"appearance-language-label",class:"theme-label",for:"appearance-language"},_l={key:6,class:"full settings-panel"},Tl={class:"account-summary"},$l={key:9,class:"full settings-panel"},Cl={class:"account-summary"},xl={class:"account-summary"},Pl={class:"shortcut-group","aria-labelledby":"shortcut-workspace"},Vl={id:"shortcut-workspace"},Il={class:"shortcut-list"},Ml={class:"shortcut-group","aria-labelledby":"shortcut-files"},El={id:"shortcut-files"},Rl={class:"shortcut-list"},Ul={class:"shortcut-group","aria-labelledby":"shortcut-editing"},ql={id:"shortcut-editing"},Nl={class:"shortcut-list"},Gl={class:"shortcut-group","aria-labelledby":"shortcut-composer"},Al={id:"shortcut-composer"},Dl={class:"shortcut-list"},Bl={key:10,class:"about-settings full settings-panel"},Fl=["aria-label"],Ll=["src"],Ol={class:"about-details"},Hl={key:0},Wl={class:"pwa-actions"},Ql={key:1},Kl={class:"third-party-scope"},jl={class:"third-party-groups"},Jl={class:"third-party-scope"},zl=ke({__name:"SettingsContent",props:{section:{},webVersion:{},pwaState:{},checkingForUpdates:{type:Boolean},sessions:{},sessionsRefreshing:{type:Boolean},sessionsManualRefresh:{type:Boolean},sessionsReadState:{},sessionRevoking:{},newPassword:{},passwordValidationError:{},registrationToken:{},registrationLoading:{type:Boolean},loading:{type:Boolean},changePassword:{type:Function},formatSessionTime:{type:Function},request:{type:Function},quickPrompts:{},quickPromptsLoading:{type:Boolean},quickPromptsFailed:{type:Boolean},refreshQuickPrompts:{type:Function},systemNotifications:{}},emits:["clearPasswordError","refreshSessions","logoutSession","logout","createRegistrationToken","checkForUpdates","applyWebUpdate"],setup(c,{emit:s}){const l=Ut(),y=qt(),T=c,k=s,v=I(!1),C=dt(),S=C.theme,$=Qt(),Q=$.theme,f=jt(),L=f.mode,O=Gt(),ee=O.locale,{t:M}=De(),x=I(!1);let K;Ue(()=>{if(typeof window>"u")return;const b=window.matchMedia("(display-mode: standalone)"),d=()=>{x.value=b.matches||navigator.standalone===!0};d(),b.addEventListener("change",d),K=()=>b.removeEventListener("change",d)}),Ye(()=>K?.());const ne=Y(()=>C.customThemes.value.map(b=>({id:b.id,name:Fe(b.source).name??M("customThemes.untitled")})));function H(b){try{C.setTheme(b)}catch{X(M("customThemes.storageFailed"),"error")}}function j(b){try{$.setTheme(b)}catch{X(M("customThemes.storageFailed"),"error")}}const P=T.webVersion,z=["web","server","execution","tools","icons","computerUse"],R=I(""),Z=I(""),ae=I(""),de=I(!1);let be=0;Ne(v,()=>{be+=1,R.value="",Z.value="",ae.value="",de.value=!1,k("clearPasswordError")},{flush:"sync"}),Ne(()=>T.section,b=>{b!=="account"&&pe()});async function Te(b){const d=ee.value;O.setLocale(b);try{await T.request("/api/auth/preferences/locale",{method:"PUT",body:JSON.stringify({locale:b})})}catch(D){O.setLocale(d),X(o("common.localeUpdateFailed"),"error",D)}}async function re(){if(T.loading||de.value)return;const b=be;de.value=!0;try{await T.changePassword({currentPassword:R.value,password:Z.value,confirmation:ae.value})&&b===be&&pe()}finally{b===be&&(de.value=!1)}}function pe(){v.value=!1}async function he(b){try{await Ce.confirm(o("generated.settingsContent.confirmSignOutSession"),o("generated.settingsContent.signOut"),{icon:J("warning"),type:"warning"})}catch{return}k("logoutSession",b)}async function _(){try{await Ce.confirm(o("generated.settingsContent.confirmSignOut"),o("generated.settingsContent.signOut2"),{icon:J("warning"),type:"warning"})}catch{return}k("logout")}return(b,d)=>{const D=Oe("tooltip");return n(),p("section",{class:_e(["settings-content",{"personal-instructions-content":c.section==="personal-instructions","page-settings-content":c.section==="usage"||c.section==="git"||c.section==="quick-prompts"}])},[c.section==="usage"?(n(),U(Ws,{key:0,request:c.request},null,8,["request"])):c.section==="git"?(n(),U(Xo,{key:1,request:c.request},null,8,["request"])):q("",!0),c.section==="account"?(n(),p("section",Xs,[t("h2",null,a(e(o)("generated.settingsContent.accountSecurity")),1),t("p",el,a(e(o)("generated.settingsContent.currentAccountAdminUpTo5Devices")),1),t("section",{class:"admin-sessions","aria-label":e(o)("generated.settingsContent.signInSessions")},[t("div",al,[t("h3",null,a(e(o)("generated.settingsContent.signInSessions5",{value0:c.sessions.length})),1),le(i(e(N),{class:"mar-icon-action",icon:e(J)("refresh"),loading:c.sessionsManualRefresh,disabled:c.sessionsRefreshing||c.sessionRevoking!==void 0,"aria-label":e(o)("generated.settingsContent.refreshSignInSessions"),text:"",onClick:d[0]||(d[0]=w=>k("refreshSessions"))},null,8,["icon","loading","disabled","aria-label"]),[[D,e(o)("generated.settingsContent.refreshSignInSessions")]])]),!c.sessionsManualRefresh&&(c.sessionsRefreshing||c.sessionsReadState==="idle"||c.sessionsReadState==="loading")?(n(),U(e(Ge),{key:0},{default:r(()=>[t("span",{role:"progressbar","aria-label":e(o)("common.loading")},[i(e(Be),{class:"mar-read-loading-indicator"})],8,ol)]),_:1})):c.sessions.length===0?(n(),U(e(Ge),{key:1},{default:r(()=>[m(a(c.sessionsReadState==="failed"?e(y).noData:e(o)("generated.settingsContent.noActiveSignInSessions")),1)]),_:1})):q("",!0),c.sessions.length>0?(n(),p("ul",sl,[(n(!0),p(B,null,te(c.sessions,w=>(n(),p("li",{key:w.id},[t("strong",null,a(w.current?e(o)("generated.settingsContent.currentDevice"):e(o)("generated.settingsContent.signedInDevice")),1),le((n(),p("span",null,[m(a(w.userAgent),1)])),[[D,w.userAgent]]),t("small",null,a(w.ipAddress)+" · "+a(e(o)("generated.settingsContent.signedIn"))+" "+a(c.formatSessionTime(w.createdAt))+" · "+a(e(o)("generated.settingsContent.expires"))+" "+a(c.formatSessionTime(w.expiresAt)),1),i(e(N),{link:"",type:"danger",icon:e(J)("delete"),loading:c.sessionRevoking===w.id,disabled:c.sessionRevoking!==void 0||c.sessionsRefreshing||c.loading,onClick:E=>he(w)},{default:r(()=>[m(a(e(o)("generated.settingsContent.signOut")),1)]),_:1},8,["icon","loading","disabled","onClick"])]))),128))])):q("",!0)],8,tl),Je(b.$slots,"account-identity",{},void 0,!0),t("div",ll,[i(e(N),{type:"primary",icon:e(J)("key"),onClick:d[1]||(d[1]=w=>v.value=!0)},{default:r(()=>[m(a(e(o)("generated.settingsContent.changePassword")),1)]),_:1},8,["icon"]),i(e(N),{loading:c.loading,disabled:c.sessionRevoking!==void 0,plain:"",icon:e(J)("power"),onClick:_},{default:r(()=>[m(a(e(o)("generated.settingsContent.signOut2")),1)]),_:1},8,["loading","disabled","icon"])]),v.value?(n(),U(e(Me),{key:0,onVnodeMounted:e(Re),onVnodeBeforeUnmount:e(Ee),modelValue:v.value,"onUpdate:modelValue":d[8]||(d[8]=w=>v.value=w),title:e(o)("generated.settingsContent.changePassword2"),width:"min(420px, calc(100vw - 32px))"},{footer:r(()=>[i(e(N),{onClick:pe},{default:r(()=>[m(a(e(o)("generated.settingsContent.cancel")),1)]),_:1}),i(e(N),{loading:c.loading||de.value,type:"primary",onClick:re},{default:r(()=>[m(a(e(o)("generated.settingsContent.confirmChange")),1)]),_:1},8,["loading"])]),default:r(()=>[i(e(qe),{"label-position":"top",onSubmit:Ie(re,["prevent"])},{default:r(()=>[i(e(oe),{label:e(o)("generated.settingsContent.currentPassword"),required:""},{default:r(()=>[i(e(ve),{modelValue:R.value,"onUpdate:modelValue":d[2]||(d[2]=w=>R.value=w),placeholder:e(o)("generated.settingsContent.enterCurrentPassword"),"aria-label":e(o)("generated.settingsContent.currentPassword2"),type:"password",autocomplete:"current-password",onInput:d[3]||(d[3]=w=>k("clearPasswordError"))},null,8,["modelValue","placeholder","aria-label"])]),_:1},8,["label"]),i(e(oe),{label:e(o)("generated.settingsContent.newPassword"),required:""},{default:r(()=>[i(e(ve),{modelValue:Z.value,"onUpdate:modelValue":d[4]||(d[4]=w=>Z.value=w),placeholder:e(o)("generated.settingsContent.enterNewPassword"),"aria-label":e(o)("generated.settingsContent.newPassword2"),type:"password",autocomplete:"new-password",onInput:d[5]||(d[5]=w=>k("clearPasswordError"))},null,8,["modelValue","placeholder","aria-label"])]),_:1},8,["label"]),i(e(oe),{label:e(o)("generated.settingsContent.confirmNewPassword"),required:""},{default:r(()=>[i(e(ve),{modelValue:ae.value,"onUpdate:modelValue":d[6]||(d[6]=w=>ae.value=w),placeholder:e(o)("generated.settingsContent.enterTheNewPasswordAgain"),"aria-label":e(o)("generated.settingsContent.confirmNewPassword2"),type:"password",autocomplete:"new-password",onInput:d[7]||(d[7]=w=>k("clearPasswordError"))},null,8,["modelValue","placeholder","aria-label"])]),_:1},8,["label"]),c.passwordValidationError?(n(),p("p",nl,a(c.passwordValidationError),1)):q("",!0)]),_:1})]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):q("",!0)])):c.section==="registration"?(n(),p("section",il,[t("h2",null,a(e(o)("generated.settingsContent.nodeRegistration")),1),t("p",rl,a(e(o)("generated.settingsContent.createAOneTimeTokenThenComplete")),1),e(l)?(n(),p("p",ul,[i(e(Ke),{type:"primary",icon:e(J)("link"),underline:!1,href:e(tt)(e(ee),"deployment/node-installation"),target:"_blank",rel:"noopener noreferrer"},{default:r(()=>[m(a(e(o)("generated.settingsContent.viewNodeDeploymentAndAutoStartGuide")),1)]),_:1},8,["icon","href"])])):q("",!0),t("div",cl,[Je(b.$slots,"registration-owner",{},void 0,!0),i(e(N),{loading:c.registrationLoading,type:"primary",onClick:d[9]||(d[9]=w=>k("createRegistrationToken"))},{default:r(()=>[m(a(e(o)("generated.settingsContent.createOneTimeNodeRegistrationToken")),1)]),_:1},8,["loading"])]),c.registrationToken?(n(),p("p",dl,[t("code",null,a(c.registrationToken),1)])):q("",!0)])):c.section==="custom-themes"?(n(),U(co,{key:4,class:"full"})):c.section==="appearance"?(n(),p("section",pl,[t("h2",null,a(e(M)("settings.appearance")),1),t("p",ml,a(e(M)("settings.appearanceSummary")),1),t("div",vl,[t("div",hl,[t("label",gl,a(e(M)("settings.theme")),1),i(e(Se),{id:"appearance-theme","model-value":e(S),class:"theme-select","aria-labelledby":"appearance-theme-label","onUpdate:modelValue":d[10]||(d[10]=w=>H(w))},{default:r(()=>[i(e(ce),{label:e(M)("settings.light"),value:"daylight"},null,8,["label"]),i(e(ce),{label:e(M)("settings.dark"),value:"vscode-dark-2026"},null,8,["label"]),(n(!0),p(B,null,te(ne.value,w=>(n(),U(e(ce),{key:w.id,label:w.name,value:w.id},null,8,["label","value"]))),128))]),_:1},8,["model-value"])]),t("div",fl,[t("label",bl,a(e(M)("settings.defaultFileMode")),1),i(e(Se),{id:"appearance-file-editor","model-value":e(L),class:"theme-select","aria-labelledby":"appearance-file-editor-label","onUpdate:modelValue":d[11]||(d[11]=w=>e(f).setMode(w))},{default:r(()=>[i(e(ce),{label:e(M)("settings.fileModeEdit"),value:"edit"},null,8,["label"]),i(e(ce),{label:e(M)("settings.fileModeReadOnly"),value:"read-only"},null,8,["label"])]),_:1},8,["model-value"])]),t("div",yl,[t("label",kl,a(e(M)("settings.iconTheme")),1),i(e(Se),{id:"appearance-icon-theme","model-value":e(Q),class:"theme-select","aria-labelledby":"appearance-icon-theme-label","onUpdate:modelValue":d[12]||(d[12]=w=>j(w))},{default:r(()=>[(n(!0),p(B,null,te(e(Kt),w=>(n(),U(e(ce),{key:w.id,label:e(M)(w.labelKey),value:w.id},null,8,["label","value"]))),128))]),_:1},8,["model-value"])]),t("div",wl,[t("label",Sl,a(e(M)("common.language")),1),i(e(Se),{id:"appearance-language","model-value":e(ee),class:"theme-select","aria-labelledby":"appearance-language-label","onUpdate:modelValue":d[13]||(d[13]=w=>Te(w))},{default:r(()=>[(n(!0),p(B,null,te(e(Nt),w=>(n(),U(e(ce),{key:w.value,label:w.nativeLabel,value:w.value},null,8,["label","value"]))),128))]),_:1},8,["model-value"])]),i(qo)])])):c.section==="notifications"&&c.systemNotifications?(n(),p("section",_l,[t("h2",null,a(e(M)("workbenchNotificationCenter.systemNotifications.title")),1),t("p",Tl,a(e(M)(c.systemNotifications.mode==="mobile-push"?"workbenchNotificationCenter.webPush.summary":"workbenchNotificationCenter.systemNotifications.summary")),1),i(Zs,{service:c.systemNotifications},null,8,["service"])])):c.section==="quick-prompts"?(n(),U(yo,{key:7,class:"full",prompts:c.quickPrompts,loading:c.quickPromptsLoading,failed:c.quickPromptsFailed,request:c.request,refresh:c.refreshQuickPrompts},null,8,["prompts","loading","failed","request","refresh"])):c.section==="personal-instructions"?(n(),U(Mo,{key:8,class:"full",request:c.request},null,8,["request"])):c.section==="shortcuts"?(n(),p("section",$l,[t("h2",null,a(e(o)("generated.settingsContent.keyboardShortcuts")),1),t("p",Cl,a(e(o)("generated.settingsContent.theFollowingShortcutsAreAvailableInThe")),1),t("p",xl,a(e(o)("keyboardShortcuts.platformHint")),1),t("section",Pl,[t("h3",Vl,a(e(o)("shortcutGroups.workspace")),1),t("dl",Il,[t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(Ft)[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.openRecentSessions")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(se).cycle[0])),1),d[17]||(d[17]=m(" / ",-1)),t("kbd",null,a(e(A)(e(se).cycle[1])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.cycleWorkspaceTabs")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(se).cycle[2])),1),d[18]||(d[18]=m(" / ",-1)),t("kbd",null,a(e(A)(e(se).cycle[3])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.cycleWorkspaceTabsWithCtrlTab")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(se).numbered[1]))+"…"+a(e(se).numbered[9].key)+"/"+a(e(se).numbered[0].key),1)]),t("dd",null,a(e(o)("keyboardShortcuts.selectWorkspaceTab")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(se).newSession[0])),1),d[19]||(d[19]=m(" / ",-1)),t("kbd",null,a(e(A)(e(se).newSession[1])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.openNewSession")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(se).close[0])),1),d[20]||(d[20]=m(" / ",-1)),t("kbd",null,a(e(A)(e(se).close[1])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.closeWorkspaceTab")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(se).close[2])),1),d[21]||(d[21]=m(" / ",-1)),t("kbd",null,a(e(A)(e(se).close[3])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.closeAllWorkspaceTabs")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(se).changes[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.openGitChanges")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(se).terminal[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.focusWorkspaceTerminal")),1)])])]),t("section",Ml,[t("h3",El,a(e(o)("shortcutGroups.files")),1),t("dl",Rl,[t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(se).quickOpen[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.quickOpenWorkspaceFile")),1)]),t("div",null,[t("dt",null,[d[22]||(d[22]=t("kbd",null,"↑",-1)),d[23]||(d[23]=m("/",-1)),d[24]||(d[24]=t("kbd",null,"↓",-1)),d[25]||(d[25]=m(", ",-1)),t("kbd",null,a(e(A)(e(me).choose[0])),1),d[26]||(d[26]=m("/",-1)),t("kbd",null,a(e(A)(e(me).dismiss[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.quickOpenNavigation")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(me).choose[1])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.quickOpenSeparatePreview")),1)]),t("div",null,[d[27]||(d[27]=t("dt",null,[t("kbd",null,"Ctrl"),t("span",null,"+"),t("kbd",null,"Click")],-1)),t("dd",null,a(e(o)("keyboardShortcuts.openCompanionPreview")),1)]),t("div",null,[d[28]||(d[28]=t("dt",null,[t("kbd",null,"←"),m("/"),t("kbd",null,"→"),m(", "),t("kbd",null,"Home"),m("/"),t("kbd",null,"End")],-1)),t("dd",null,a(e(o)("keyboardShortcuts.fileTabNavigation")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(me).dismiss[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.closeFileTab")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(me).back[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.previousPreviewLocation")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(me).forward[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.nextPreviewLocation")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(se).preview[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.openMarkdownPreview")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(me).dismiss[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.closeStandalonePreview")),1)])])]),t("section",Ul,[t("h3",ql,a(e(o)("shortcutGroups.editing")),1),t("dl",Nl,[t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(se).search[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.searchWorkspaceContent")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(me).find[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.findInPreview")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(ot)[0])),1),d[29]||(d[29]=m("/",-1)),t("kbd",null,a(e(A)(e(ot)[1])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.findMatchNavigation")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(me).dismiss[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.closeEmbeddedFind")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(me).symbols[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.openEditorSymbols")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(me).toggleEdit[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.toggleFileEditing")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(me).selectAll[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.selectEditorContent")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(me).replace[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.replaceInEditor")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(me).save[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.saveEditor")),1)])])]),t("section",Gl,[t("h3",Al,a(e(o)("shortcutGroups.composer")),1),t("dl",Dl,[t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(Lt)[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.openComposerModelMenu")),1)]),t("div",null,[d[30]||(d[30]=t("dt",null,[t("kbd",null,"Tab"),m("/"),t("kbd",null,"Shift"),t("span",null,"+"),t("kbd",null,"Tab")],-1)),t("dd",null,a(e(o)("keyboardShortcuts.modelMenuGroup")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(st)[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.sendMessage")),1)]),t("div",null,[d[31]||(d[31]=t("dt",null,[t("kbd",null,"Shift"),m("/"),t("kbd",null,"Alt"),t("span",null,"+"),t("kbd",null,"Enter")],-1)),t("dd",null,a(e(o)("keyboardShortcuts.composerNewline")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(st)[1])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.replaceRunningMessage")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(Ot)[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.stopRun")),1)]),t("div",null,[d[32]||(d[32]=t("dt",null,[t("kbd",null,"@")],-1)),t("dd",null,a(e(o)("keyboardShortcuts.openFileReferences")),1)]),t("div",null,[d[33]||(d[33]=t("dt",null,[t("kbd",null,"/")],-1)),t("dd",null,a(e(o)("keyboardShortcuts.openAgentCommands")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(lt).save[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.saveQueuedMessage")),1)]),t("div",null,[t("dt",null,[t("kbd",null,a(e(A)(e(lt).execute[0])),1)]),t("dd",null,a(e(o)("keyboardShortcuts.runQueuedMessage")),1)])])])])):c.section==="about"?(n(),p("section",Bl,[t("div",{class:"system-brand","aria-label":e(M)("settings.about")},[t("img",{src:e(vt),alt:""},null,8,Ll),t("div",null,[t("strong",null,a(e(o)("common.productName")),1),t("code",null,"v"+a(e(P)),1)])],8,Fl),t("dl",Ol,[t("div",null,[t("dt",null,a(e(M)("webUpdate.displayModeLabel")),1),t("dd",null,a(e(M)(`webUpdate.displayMode.${x.value?"standalone":"browser"}`)),1)]),c.pwaState?(n(),p("div",Hl,[t("dt",null,a(e(M)("webUpdate.offlineLabel")),1),t("dd",null,[t("span",null,a(e(M)(`webUpdate.offline.${c.pwaState.offline}`)),1),t("div",Wl,[i(e(N),{loading:c.checkingForUpdates,onClick:d[14]||(d[14]=w=>k("checkForUpdates"))},{default:r(()=>[m(a(e(M)("webUpdate.check")),1)]),_:1},8,["loading"]),c.pwaState.update?(n(),U(e(N),{key:0,type:"primary",onClick:d[15]||(d[15]=w=>k("applyWebUpdate"))},{default:r(()=>[m(a(e(M)("webUpdate.apply")),1)]),_:1})):c.pwaState.reload?(n(),U(e(N),{key:1,onClick:d[16]||(d[16]=w=>k("applyWebUpdate"))},{default:r(()=>[m(a(e(M)(c.pwaState.reload.action==="activate"?"webUpdate.usePrepared":"webUpdate.reloadPrepared")),1)]),_:1})):q("",!0)])])])):q("",!0),e(l)?(n(),p("div",Ql,[t("dt",null,a(e(M)("settings.documentation")),1),t("dd",null,[i(e(Ke),{href:e(tt)(e(ee),"getting-started/overview"),target:"_blank",underline:!1},{default:r(()=>[m(a(e(M)("settings.openDocumentation")),1)]),_:1},8,["href"])])])):q("",!0),t("div",null,[t("dt",null,a(e(M)("settings.thirdPartyOpenSourceSoftware")),1),t("dd",null,[t("p",Kl,a(e(M)("settings.thirdPartySummary")),1),t("dl",jl,[(n(),p(B,null,te(z,w=>t("div",{key:w},[t("dt",null,a(e(M)("settings.thirdPartyGroups."+w+".title")),1),t("dd",null,a(e(M)("settings.thirdPartyGroups."+w+".components")),1)])),64))]),i(e(Ke),{class:"third-party-notices-link",href:"/THIRD_PARTY_NOTICES.txt",target:"_blank",rel:"noopener noreferrer",underline:!1},{default:r(()=>[m(a(e(M)("settings.viewThirdPartyNotices")),1)]),_:1}),t("p",Jl,a(e(M)("settings.thirdPartyDistributionNotices")),1)])])])])):q("",!0)],2)}}}),An=we(zl,[["__scopeId","data-v-a31d8bbe"]]);export{An as default};
@@ -1 +0,0 @@
1
- .mcp-panel[data-v-19495606]{display:flex;min-width:0;min-height:0;flex:1;flex-direction:column;gap:12px;overflow:auto;padding-right:4px}.mcp-filter-bar[data-v-19495606]{display:grid;gap:10px}.mcp-filter-bar[data-v-19495606]>.mar-ui-input{width:min(320px,100%)}.mcp-category-strip[data-v-19495606]{display:flex;overflow-x:auto;gap:6px;padding:1px 0 3px;scrollbar-width:thin}.mcp-category-strip button[data-v-19495606]{flex:none;border:1px solid var(--mar-border-medium);border-radius:999px;background:var(--mar-bg-panel);color:var(--mar-text-secondary);padding:5px 12px;font:inherit;font-size:var(--mar-font-size-body);cursor:pointer}.mcp-category-strip button[data-v-19495606]:hover{border-color:var(--mar-border-strong);background:var(--mar-fill-row-hover);color:var(--mar-text-primary)}.mcp-category-strip button.selected[data-v-19495606]{border-color:var(--mar-border-medium);background:var(--mar-fill-selection);color:var(--mar-text-primary);font-weight:400}.mcp-category-strip button[data-v-19495606]:focus-visible{outline:2px solid var(--mar-color-brand);outline-offset:1px}.mcp-config-tabs[data-v-19495606]{min-height:40px}.mcp-target-panel[data-v-19495606]{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border-bottom:1px solid var(--mar-fill-hover);padding-bottom:12px}.mcp-target-panel>div[data-v-19495606]:first-child{display:flex;flex:1 1 220px;flex-direction:column;gap:2px}.mcp-target-panel strong[data-v-19495606]{color:var(--mar-text-primary);font-size:var(--mar-font-size-body)}.mcp-target-panel span[data-v-19495606]{color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta)}.mcp-target-panel .mar-ui-select[data-v-19495606]{width:min(240px,100%)}.target-option-state[data-v-19495606]{float:right;margin-left:16px;color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta)}.mcp-tags[data-v-19495606]{display:flex;flex-wrap:wrap;gap:6px}.mcp-table-section[data-v-19495606]{min-width:0;min-height:180px}.clickable-rows[data-v-19495606] .mar-ui-table__row{cursor:pointer}.row-actions[data-v-19495606]{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}.mcp-install-progress[data-v-19495606]{display:grid;gap:6px;color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta)}.mcp-install-progress__indicator[data-v-19495606]{position:relative;overflow:hidden;block-size:4px;border-radius:2px;background:var(--mar-control-fill-color-light)}.mcp-install-progress__indicator[data-v-19495606]:after{position:absolute;inset:0 auto 0 0;width:40%;background:var(--mar-color-brand);content:"";animation:mcp-install-progress-19495606 1.4s ease-in-out infinite}@keyframes mcp-install-progress-19495606{0%{transform:translate(-100%)}to{transform:translate(250%)}}@media(prefers-reduced-motion:reduce){.mcp-install-progress__indicator[data-v-19495606]:after{width:100%;opacity:.6;animation:none;transform:none}}@media(max-width:720px){.mcp-target-panel .mar-ui-select[data-v-19495606]{width:100%}.mcp-target-panel[data-v-19495606] .mar-ui-button{min-height:36px}}.skill-page[data-v-c60795f1]{display:flex;min-width:0;min-height:0;flex:1;flex-direction:column;gap:12px;overflow:hidden;background:var(--mar-bg-panel);padding:14px 16px}.skill-page-header[data-v-c60795f1]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.skill-page-header p[data-v-c60795f1]{margin:2px 0 0;color:var(--mar-text-secondary);font-size:var(--mar-font-size-body)}.skill-content[data-v-c60795f1]{display:flex;min-height:0;min-width:0;flex:1;flex-direction:column;gap:12px;overflow:auto;padding-right:4px}.skill-config-tabs[data-v-c60795f1]{min-height:260px}.skill-config-tabs[data-v-c60795f1] .mar-ui-tab-pane{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}.skill-filter-bar[data-v-c60795f1]{display:grid;gap:10px}.skill-filter-bar[data-v-c60795f1]>.mar-ui-input{width:min(320px,100%)}.skill-category-strip[data-v-c60795f1]{display:flex;overflow-x:auto;gap:6px;padding:1px 0 3px;scrollbar-width:thin}.skill-category-strip button[data-v-c60795f1]{flex:none;border:1px solid var(--mar-border-medium);border-radius:999px;background:var(--mar-bg-panel);color:var(--mar-text-secondary);padding:5px 12px;font:inherit;font-size:var(--mar-font-size-body);cursor:pointer}.skill-category-strip button[data-v-c60795f1]:hover{border-color:var(--mar-border-strong);background:var(--mar-fill-row-hover);color:var(--mar-text-primary)}.skill-category-strip button.selected[data-v-c60795f1]{border-color:var(--mar-border-medium);background:var(--mar-fill-selection);color:var(--mar-text-primary);font-weight:400}.skill-category-strip button[data-v-c60795f1]:focus-visible{outline:2px solid var(--mar-color-brand);outline-offset:1px}.skill-tags[data-v-c60795f1]{display:flex;flex-wrap:wrap;gap:6px}.skill-install-progress[data-v-c60795f1]{display:grid;gap:5px;min-width:180px;color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta)}.skill-install-progress__indicator[data-v-c60795f1]{position:relative;overflow:hidden;block-size:4px;border-radius:2px;background:var(--mar-control-fill-color-light)}.skill-install-progress__indicator[data-v-c60795f1]:after{position:absolute;inset:0 auto 0 0;width:40%;background:var(--mar-color-brand);content:"";animation:skill-install-progress-c60795f1 1.4s ease-in-out infinite}@keyframes skill-install-progress-c60795f1{0%{transform:translate(-100%)}to{transform:translate(250%)}}@media(prefers-reduced-motion:reduce){.skill-install-progress__indicator[data-v-c60795f1]:after{width:100%;opacity:.6;animation:none;transform:none}}.skill-table-section[data-v-c60795f1]{min-height:180px}.clickable-rows[data-v-c60795f1] .mar-ui-table__row{cursor:pointer}.available-skill-table[data-v-c60795f1] .skill-scope-column .mar-ui-table__cell-inner{white-space:nowrap}.row-actions[data-v-c60795f1]{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}.target-panel[data-v-c60795f1]{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border-bottom:1px solid var(--mar-fill-hover);padding-bottom:12px}.target-panel>div[data-v-c60795f1]:first-child{display:flex;flex:1 1 220px;flex-direction:column;gap:2px}.target-panel strong[data-v-c60795f1]{color:var(--mar-text-primary);font-size:var(--mar-font-size-body)}.target-panel div span[data-v-c60795f1],.target-name[data-v-c60795f1]{color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta)}.target-select[data-v-c60795f1]{width:min(240px,100%)}.target-option-state[data-v-c60795f1]{float:right;margin-left:16px;color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta)}.installed-heading[data-v-c60795f1]{margin:4px 0 0;color:var(--mar-text-primary);font-size:var(--mar-font-size-body);font-weight:600}@media(max-width:700px){.skill-page[data-v-c60795f1]{overflow-x:hidden;overflow-y:auto;padding:12px}.skill-content[data-v-c60795f1],.skill-page[data-v-c60795f1]>.mcp-panel{flex:none;overflow:visible;padding-right:0}.skill-filter-bar[data-v-c60795f1]{grid-template-columns:1fr}.target-panel[data-v-c60795f1] .mar-ui-button{min-height:36px}}
@@ -1 +0,0 @@
1
- import n from"./SkillCenterPage-yBgwfAM_.js";import{m as i,o as p,B as a,t}from"./index-31u2XoZR.js";import"./MarAlert-CvDJlLVl.js";import"./mcp-center-service-DZqRelcq.js";import"./catalog-page-service-BQ-BAPkS.js";import"./ManagementPagination-DCu_S0Fr.js";import"./error-presentation-O4h1hNT5.js";import"./mobile-dialog-return-service-_7w5rD8m.js";import"./MarTabs-DkOJ_ba5.js";import"./MarTag-Bg1BjvXw.js";import"./MarTableColumn.vue_vue_type_script_setup_true_lang-C8aPC9xX.js";import"./MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-0CVezpJG.js";import"./time-presentation-BGt2rO0m.js";import"./SkillDetailsDialog-CuB_jEZk.js";/* empty css */import"./MarDescriptionsItem-BUJ-2T9e.js";import"./McpDetailsDialog-DMN-Vs9P.js";import"./conversation-history-_CnB_k_W.js";const x=i({__name:"SkillCenterPage",props:{request:{type:Function},nodes:{}},setup(r){function o(e){return e==="ENTERPRISE"?t("generated.skillCenterPage.enterprise"):e==="ORGANIZATION"?t("generated.skillCenterPage.organization"):t("generated.skillCenterPage.personal")}return(e,m)=>(p(),a(n,{request:r.request,nodes:r.nodes,"scope-label":o},null,8,["request","nodes"]))}});export{x as default};
@@ -1 +0,0 @@
1
- import{m as Ze,J as je,K as Qe,w as Je,U as B,t as l,o as m,n as P,L as f,q as o,C as i,P as c,N as s,D as e,E as g,Q as v,R as le,S as te,B as M,F as D,a7 as N,a8 as O,O as Z,a9 as We,ad as Ye,a3 as he,p as Ce,T as ne,f as k,k as oe,l as ie,V as re,_ as Xe}from"./index-31u2XoZR.js";import{M as Ve,a as ea}from"./MarTabs-DkOJ_ba5.js";import{M as se}from"./MarTag-Bg1BjvXw.js";import{_ as p,M as de}from"./MarTableColumn.vue_vue_type_script_setup_true_lang-C8aPC9xX.js";import{a as ue,_ as V}from"./MarFormItem.vue_vue_type_script_setup_true_lang-BwDM_Txe.js";import{M as q,a as z}from"./MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-0CVezpJG.js";import{M as _e}from"./MarSwitch-BALOzpDc.js";import{M as ce,u as ge,m as me}from"./mobile-dialog-return-service-_7w5rD8m.js";import{w as aa,M as la}from"./ManagementPagination-DCu_S0Fr.js";import{f as ta}from"./time-presentation-BGt2rO0m.js";import{c as na,s as j,S as oa}from"./SkillDetailsDialog-CuB_jEZk.js";import"./error-presentation-O4h1hNT5.js";import"./catalog-page-service-BQ-BAPkS.js";/* empty css */import"./MarDescriptionsItem-BUJ-2T9e.js";const ia={class:"mar-management-page"},ra={class:"mar-table-actions"},sa=["aria-label"],da={class:"source-search-bar"},ua={class:"toolbar"},ca={class:"skill-table-section"},ga=["aria-label"],ma={key:1,class:"skill-empty"},fa={class:"catalog-filter-bar"},pa=["aria-label"],va=["onClick"],ka={class:"skill-table-section"},Sa=["aria-label"],ba={class:"table-meta"},Ma={key:0,class:"skill-tags"},ya={class:"form-hint"},Pa=Ze({__name:"SkillSourceManagementPage",props:{request:{type:Function},writable:{type:Boolean},scopeLabel:{type:Function},loadExtension:{type:Function},sourceContext:{},catalogContext:{},ownershipRules:{},submitSource:{type:Function},submitFavorite:{type:Function}},emits:["openSource","openCatalog"],setup(b,{emit:Te}){const _=b,fe=Te,r=na(_.request,{..._.submitSource===void 0?{}:{submitSource:_.submitSource},..._.submitFavorite===void 0?{}:{submitFavorite:_.submitFavorite}}),De=r.sources,d=r.catalogPage;aa(d);const A=k(!1),w=k(!1),U=k(!1),I=k(!1),x=k("idle");let T=0;const pe=oe(()=>d.loading.value&&!d.loadingMore.value),E=k(new Set),Q=k(),ve=k(),ke=k(),Se=k(),K=k(),J=k(),G=k(),R=k({}),W=d.keyword,H=d.category,be=k("source"),h=ie({name:"",locator:""}),C=ie({featured:!1,tags:[]}),y=ie({featured:!1,tags:[]}),Y=oe(()=>({name:[{required:!0,message:l("generated.skillSourceManagementPage.enterASourceName"),trigger:"blur"}],locator:[{required:!0,message:l("generated.skillSourceManagementPage.enterARepositoryURL"),trigger:"blur"},{validator:(n,t,a)=>{const u=typeof t=="string"?t.trim():"";/^https:\/\//u.test(u)||/^git@[A-Za-z0-9.-]+:[A-Za-z0-9_.-]+(?:\/[A-Za-z0-9_.-]+)+(?:\.git)?$/u.test(u)?a():a(new Error(l("generated.skillSourceManagementPage.enterAnHTTPSOrGitSSHRepository")))},trigger:"blur"}],tags:[{validator:(n,t,a)=>{const u=Array.isArray(t)?t.map(L=>String(L).trim()):[];u.some(L=>L.length===0||L.length>32)?a(new Error(l("generated.skillSourceManagementPage.eachTagMustContain132Characters"))):new Set(u.map(L=>L.toLocaleLowerCase())).size!==u.length?a(new Error(l("generated.skillSourceManagementPage.duplicateTagsAreNotAllowed"))):a()},trigger:"change"}]})),$=oe(()=>r.sources.value.find(n=>n.id===r.selectedSourceId.value)),X=d.tags,Ae=r.favorites;je(()=>{d.start(),Ue()}),Qe(()=>{T++,d.dispose()}),Je(r.selectedSourceId,()=>{T++,x.value="idle",w.value=!1,K.value=void 0},{flush:"sync"});async function Ue(){await Promise.all([S(async()=>{await r.loadSources(),await ee()}),S(r.loadCatalog),S(async()=>_.loadExtension?.())])}async function S(n,t){try{await n(),t!==void 0&&B(t,"success")}catch(a){if(a===d.error.value)return;B(j(a,l("generated.skillSourceManagementPage.theSkillSourceOperationDidNotComplete")),"error",a)}}function xe(){Object.assign(h,{name:"",locator:""}),fe("openSource"),A.value=!0}async function Re(){await ve.value?.validate().catch(()=>!1)&&await S(async()=>{await r.addSource({name:h.name.trim(),locator:h.locator.trim()}),A.value=!1},l("generated.skillSourceManagementPage.skillSourceAdded"))}function Fe(n){K.value=n,Object.assign(C,{featured:!1,tags:[]}),fe("openCatalog"),w.value=!0}function Le(n){G.value={name:n.name,description:n.description,source:n.source,...n.skillPath===null?{}:{path:n.skillPath},...n.installs===null?{}:{installs:n.installs}},I.value=!0}function Be(n){G.value={name:n.name,description:"",source:n.locator,scope:F(n.scope),status:n.enabled?l("generated.skillSourceManagementPage.enabled"):l("generated.skillSourceManagementPage.disabled")},I.value=!0}function Ie(n){G.value={name:n.normalizedName,description:n.description,source:n.repositoryIdentity,scope:F(n.scope),path:n.skillPath,version:n.commitSha.slice(0,8),updatedAt:we(n.updatedAt),featured:n.featured,tags:n.tags},I.value=!0}function Ee(n){J.value=n,y.featured=n.featured,y.tags=[...n.tags],U.value=!0}async function $e(){if(!await Se.value?.validate().catch(()=>!1)||J.value===void 0)return;const n=y.tags.map(t=>t.trim());await S(async()=>{await r.updatePresentation(J.value.id,{featured:y.featured,tags:n}),U.value=!1},l("generated.skillSourceManagementPage.skillInformationUpdated"))}async function Ne(n){r.selectedSourceId.value=n,r.query.value="",await S(ee)}async function ee(){await ye(r.loadCandidates,$.value?.kind==="REPOSITORY")}async function Me(){!$.value?.enabled||r.loading.value||await ye(r.search,$.value.kind!=="SKILLS_SH"||r.query.value.trim()!=="")}async function ye(n,t){const a=++T;x.value=t?"loading":"idle",r.candidates.value=[];try{await n()}catch(u){if(a===T)throw u}finally{t&&a===T&&(x.value="settled")}}async function Pe(n){const t=r.selectedSourceId.value;await n(),r.selectedSourceId.value!==t&&await ee()}async function Oe(n){try{await re.confirm(n.enabled?l("generated.skillSourceManagementPage.confirmDisableSkillSource",{value0:n.name}):l("generated.skillSourceManagementPage.confirmEnableSkillSource",{value0:n.name}),l("generated.skillSourceManagementPage.updateSkillSourceStatus"),{icon:g("warning"),type:"warning",confirmButtonText:n.enabled?l("generated.skillSourceManagementPage.disable"):l("generated.skillSourceManagementPage.enable"),cancelButtonText:l("generated.skillSourceManagementPage.cancel2")})}catch(t){if(ae(t))return;B(j(t,l("generated.skillSourceManagementPage.unableToConfirmSourceStatusChange")),"error",t);return}await S(()=>Pe(()=>r.setSourceEnabled(n.id,!n.enabled)),l("generated.skillSourceManagementPage.skillSourceStatusUpdated"))}async function qe(){const n=K.value,t=T;if(!n||r.loading.value||!r.candidates.value.includes(n)||!await ke.value?.validate().catch(()=>!1)||!w.value||r.loading.value||t!==T||n!==K.value)return;const a=C.tags.map(u=>u.trim());await S(async()=>{await r.favorite(n,{featured:C.featured,tags:a}),w.value=!1},l("generated.skillSourceManagementPage.skillAddedToTheCatalog"))}async function ze(n){E.value=new Set([...E.value,n.id]);try{await S(async()=>{const t=await r.checkUpdate(n.id);R.value={...R.value,[n.id]:t},B(t.updateAvailable?l("generated.skillSourceManagementPage.updateAvailable"):l("generated.skillSourceManagementPage.alreadyUpToDate"),"info")})}finally{const t=new Set(E.value);t.delete(n.id),E.value=t}}async function Ke(n){Q.value=n.id;try{await S(async()=>{await r.upgrade(n.id);const t={...R.value};delete t[n.id],R.value=t},l("generated.skillSourceManagementPage.catalogSkillUpdated"))}finally{Q.value=void 0}}function we(n){return ta(n)}async function Ge(n){try{await re.confirm(l("generated.skillSourceManagementPage.deleteSkillSource",{value0:n.name}),l("generated.skillSourceManagementPage.deleteSkillSource2"),{icon:g("warning"),type:"warning",confirmButtonText:l("generated.skillSourceManagementPage.delete"),cancelButtonText:l("generated.skillSourceManagementPage.cancel")})}catch(t){if(ae(t))return;B(j(t,l("generated.skillSourceManagementPage.unableToConfirmDeletionTryAgainLater")),"error",t);return}await S(()=>Pe(()=>r.removeSource(n.id)),l("generated.skillSourceManagementPage.skillSourceDeleted"))}async function He(n,t){try{await re.confirm(l("generated.skillSourceManagementPage.removeFromTheSkillCatalogInstalledCopies",{value0:t}),l("generated.skillSourceManagementPage.removeSkill"),{icon:g("warning"),type:"warning",confirmButtonText:l("generated.skillSourceManagementPage.remove"),cancelButtonText:l("generated.skillSourceManagementPage.cancel2")})}catch(a){if(ae(a))return;B(j(a,l("generated.skillSourceManagementPage.unableToConfirmRemovalTryAgainLater")),"error",a);return}await S(()=>r.remove(n),l("generated.skillSourceManagementPage.skillRemoved"))}function ae(n){return n==="cancel"||n==="close"}function F(n){return _.scopeLabel?.(n)??l("generated.skillSourceManagementPage.personal")}return(n,t)=>(m(),P("section",ia,[f("div",ra,[o(e(v),{type:"primary",icon:e(g)("plus"),disabled:!b.writable||e(r).loading.value,onClick:xe},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.addSkillSource")),1)]),_:1},8,["icon","disabled"])]),o(e(de),{class:"clickable-rows skill-source-table",data:e(De),"aria-busy":e(r).sourcesLoading.value,"row-key":"id",onRowClick:Be},le({default:i(()=>[o(e(p),{prop:"name",label:e(l)("generated.skillSourceManagementPage.name"),sortable:"","min-width":"180"},null,8,["label"]),o(e(p),{label:e(l)("generated.skillSourceManagementPage.scope"),width:"144","show-overflow-tooltip":"",sortable:"","sort-method":(a,u)=>F(a.scope).localeCompare(F(u.scope))},{default:i(({row:a})=>[c(s(F(a.scope)),1)]),_:1},8,["label","sort-method"]),o(e(p),{prop:"locator",label:e(l)("generated.skillSourceManagementPage.uRL"),"min-width":"280","show-overflow-tooltip":""},null,8,["label"]),o(e(p),{label:e(l)("generated.skillSourceManagementPage.status"),width:"110"},{default:i(({row:a})=>[o(e(se),{type:a.enabled?"success":"info",effect:"plain"},{default:i(()=>[c(s(a.enabled?e(l)("generated.skillSourceManagementPage.enabled"):e(l)("generated.skillSourceManagementPage.disabled")),1)]),_:2},1032,["type"])]),_:1},8,["label"]),o(e(p),{label:e(l)("generated.skillSourceManagementPage.actions"),width:180},{default:i(({row:a})=>[f("div",{class:"mar-row-actions",onClick:t[0]||(t[0]=te(()=>{},["stop"]))},[o(e(v),{link:"",icon:e(g)("power"),disabled:!b.writable||!a.manageable||e(r).loading.value,onClick:u=>Oe(a)},{default:i(()=>[c(s(a.enabled?e(l)("generated.skillSourceManagementPage.disable"):e(l)("generated.skillSourceManagementPage.enable")),1)]),_:2},1032,["icon","disabled","onClick"]),a.builtIn?D("",!0):(m(),M(e(v),{key:0,link:"",type:"danger",icon:e(g)("delete"),disabled:!b.writable||!a.manageable||e(r).loading.value,onClick:u=>Ge(a)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.delete2")),1)]),_:1},8,["icon","disabled","onClick"]))])]),_:1},8,["label"])]),_:2},[e(r).sourcesLoading.value?{name:"loading",fn:i(()=>[f("span",{role:"progressbar","aria-label":e(l)("common.loading")},[o(e(ce),{class:"mar-read-loading-indicator"})],8,sa)]),key:"0"}:void 0]),1032,["data","aria-busy"]),o(e(ea),{modelValue:be.value,"onUpdate:modelValue":t[8]||(t[8]=a=>be.value=a),class:"skill-management-tabs"},{default:i(()=>[o(e(Ve),{label:e(l)("generated.skillSourceManagementPage.sourceSkills"),name:"source"},{default:i(()=>[f("div",da,[o(e(q),{"model-value":e(r).selectedSourceId.value,"aria-label":e(l)("generated.skillSourceManagementPage.selectASkillSource"),placeholder:e(l)("generated.skillSourceManagementPage.selectAnEnabledSkillSource"),disabled:e(r).loading.value,onChange:Ne},{default:i(()=>[(m(!0),P(N,null,O(e(r).sources.value.filter(a=>a.enabled),a=>(m(),M(e(z),{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["model-value","aria-label","placeholder","disabled"]),f("div",ua,[o(e(Z),{modelValue:e(r).query.value,"onUpdate:modelValue":t[2]||(t[2]=a=>e(r).query.value=a),clearable:"",placeholder:e(l)("generated.skillSourceManagementPage.enterASkillNameOrDescription"),onKeyup:t[3]||(t[3]=We(a=>S(Me),["enter"])),"clear-icon":e(g)("clear-input")},{append:i(()=>[o(e(v),{icon:e(g)("search"),disabled:!$.value?.enabled||e(r).loading.value,onClick:t[1]||(t[1]=a=>S(Me))},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.search")),1)]),_:1},8,["icon","disabled"])]),_:1},8,["modelValue","placeholder","clear-icon"])])]),f("div",ca,[x.value!=="idle"?(m(),M(e(de),{key:0,class:"clickable-rows source-skill-table",data:e(r).candidates.value,"aria-busy":x.value==="loading","row-key":"id",onRowClick:Le},le({default:i(()=>[o(e(p),{prop:"name",label:e(l)("generated.skillSourceManagementPage.name"),sortable:"","min-width":"180"},null,8,["label"]),o(e(p),{prop:"source",label:e(l)("generated.skillDetailsDialog.source"),"min-width":"180","show-overflow-tooltip":""},null,8,["label"]),o(e(p),{prop:"description",label:e(l)("conversationTemplates.description"),"min-width":"280","show-overflow-tooltip":""},{default:i(({row:a})=>[c(s(a.description||e(l)("generated.skillSourceManagementPage.noDescriptionWasProvidedByThisSource")),1)]),_:1},8,["label"]),o(e(p),{label:e(l)("generated.skillSourceManagementPage.actions"),width:180},{default:i(({row:a})=>[f("div",{class:"mar-row-actions",onClick:t[4]||(t[4]=te(()=>{},["stop"]))},[o(e(v),{link:"",icon:e(g)("plus"),disabled:!b.writable||e(r).loading.value,onClick:u=>Fe(a)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.addToCatalog")),1)]),_:1},8,["icon","disabled","onClick"])])]),_:1},8,["label"])]),_:2},[x.value==="loading"?{name:"loading",fn:i(()=>[f("span",{role:"progressbar","aria-label":e(l)("common.loading")},[o(e(ce),{class:"mar-read-loading-indicator"})],8,ga)]),key:"0"}:void 0]),1032,["data","aria-busy"])):e(r).loading.value?D("",!0):(m(),P("div",ma,s($.value?e(l)("generated.skillSourceManagementPage.noPopularSkillsAreAvailableEnterA"):e(l)("generated.skillSourceManagementPage.selectAnEnabledSkillSource2")),1))])]),_:1},8,["label"]),o(e(Ve),{label:e(l)("generated.skillSourceManagementPage.catalogSkills"),name:"catalog"},{default:i(()=>[f("div",fa,[o(e(Z),{modelValue:e(W),"onUpdate:modelValue":t[5]||(t[5]=a=>Ye(W)?W.value=a:null),clearable:"",placeholder:e(l)("generated.skillSourceManagementPage.searchSkillNamesOrDescriptions"),"clear-icon":e(g)("clear-input")},null,8,["modelValue","placeholder","clear-icon"]),f("div",{class:"skill-category-strip","aria-label":e(l)("generated.skillSourceManagementPage.catalogSkillCategories")},[f("button",{class:he({selected:e(H)===""}),onClick:t[6]||(t[6]=a=>H.value="")},s(e(l)("generated.skillSourceManagementPage.all")),3),(m(!0),P(N,null,O(e(X),a=>(m(),P("button",{key:a,class:he({selected:e(H)===a}),onClick:u=>H.value=a},s(a),11,va))),128))],8,pa)]),f("div",ka,[o(e(de),{class:"clickable-rows catalog-skill-table",onSortChange:e(d).sort,data:e(Ae),"aria-busy":pe.value,"row-key":"id",onRowClick:Ie},le({default:i(()=>[o(e(p),{prop:"normalizedName",label:e(l)("generated.skillSourceManagementPage.name"),sortable:"custom","min-width":"170"},null,8,["label"]),o(e(p),{prop:"repositoryIdentity",label:e(l)("generated.skillDetailsDialog.source"),"min-width":"180","show-overflow-tooltip":""},null,8,["label"]),o(e(p),{label:e(l)("generated.skillSourceManagementPage.scope"),width:"144","show-overflow-tooltip":""},{default:i(({row:a})=>[c(s(F(a.scope)),1)]),_:1},8,["label"]),o(e(p),{prop:"description",label:e(l)("conversationTemplates.description"),"min-width":"260","show-overflow-tooltip":""},{default:i(({row:a})=>[c(s(a.description||e(l)("generated.skillSourceManagementPage.noDescriptionIsAvailableForThisSkill")),1)]),_:1},8,["label"]),o(e(p),{label:e(l)("generated.skillDetailsDialog.version"),"min-width":"170"},{default:i(({row:a})=>[f("span",null,s(a.commitSha.slice(0,8)),1),f("span",ba,s(e(l)("generated.skillSourceManagementPage.updated"))+" "+s(we(a.updatedAt)),1)]),_:1},8,["label"]),o(e(p),{label:e(l)("generated.skillDetailsDialog.tags"),"min-width":"150"},{default:i(({row:a})=>[a.featured||a.tags.length>0?(m(),P("div",Ma,[a.featured?(m(),M(e(se),{key:0,type:"warning",effect:"plain"},{default:i(()=>[c("★ "+s(e(l)("generated.skillSourceManagementPage.featured")),1)]),_:1})):D("",!0),(m(!0),P(N,null,O(a.tags,u=>(m(),M(e(se),{key:u,type:"info",effect:"plain"},{default:i(()=>[c(s(u),1)]),_:2},1024))),128))])):D("",!0)]),_:1},8,["label"]),o(e(p),{label:e(l)("generated.skillSourceManagementPage.actions"),"min-width":"360"},{default:i(({row:a})=>[f("div",{class:"mar-row-actions",onClick:t[7]||(t[7]=te(()=>{},["stop"]))},[o(e(v),{link:"",icon:e(g)("edit"),disabled:!b.writable||!a.manageable||e(r).loading.value,onClick:u=>Ee(a)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.edit")),1)]),_:1},8,["icon","disabled","onClick"]),R.value[a.id]?.updateAvailable?(m(),M(e(v),{key:1,link:"",icon:e(g)("retry"),loading:Q.value===a.id,disabled:!b.writable||!a.manageable||e(r).loading.value,onClick:u=>Ke(a)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.updateTo"))+" "+s(R.value[a.id].latestCommitSha.slice(0,8)),1)]),_:2},1032,["icon","loading","disabled","onClick"])):(m(),M(e(v),{key:0,link:"",icon:e(g)("refresh"),loading:E.value.has(a.id),disabled:!b.writable||!a.manageable||e(r).loading.value,onClick:u=>ze(a)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.checkForUpdates")),1)]),_:1},8,["icon","loading","disabled","onClick"])),o(e(v),{link:"",type:"danger",icon:e(g)("delete"),disabled:!b.writable||!a.manageable||e(r).loading.value,onClick:u=>He(a.id,a.normalizedName)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.remove2")),1)]),_:1},8,["icon","disabled","onClick"])])]),_:1},8,["label"])]),_:2},[pe.value?{name:"loading",fn:i(()=>[f("span",{role:"progressbar","aria-label":e(l)("common.loading")},[o(e(ce),{class:"mar-read-loading-indicator"})],8,Sa)]),key:"0"}:void 0]),1032,["onSortChange","data","aria-busy"]),o(la,{total:e(d).total.value,page:e(d).page.value,mobile:e(d).mobileViewport.value,"mobile-visible-count":e(d).mobileVisibleCount.value,loading:e(d).loading.value,"loading-more":e(d).loadingMore.value,"has-more":e(d).hasMore.value,onPage:e(d).setPage,failed:e(d).failure.value!==void 0,"incremental-failed":e(d).failure.value?.incremental===!0,error:e(d).failure.value?.error,"context-key":e(d).contextKey.value,onRetry:e(d).retry,onLoadMore:e(d).loadMore},null,8,["total","page","mobile","mobile-visible-count","loading","loading-more","has-more","onPage","failed","incremental-failed","error","context-key","onRetry","onLoadMore"])])]),_:1},8,["label"])]),_:1},8,["modelValue"]),A.value?(m(),M(e(ne),{key:0,onVnodeMounted:e(me),onVnodeBeforeUnmount:e(ge),modelValue:A.value,"onUpdate:modelValue":t[12]||(t[12]=a=>A.value=a),title:e(l)("generated.skillSourceManagementPage.addSkillSource2"),width:"min(520px, calc(100vw - 32px))"},{footer:i(()=>[o(e(v),{onClick:t[11]||(t[11]=a=>A.value=!1)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.cancel3")),1)]),_:1}),o(e(v),{type:"primary",loading:e(r).loading.value,onClick:Re},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.add")),1)]),_:1},8,["loading"])]),default:i(()=>[o(e(ue),{ref_key:"sourceForm",ref:ve,model:{...b.sourceContext,...h},rules:{...b.ownershipRules,...Y.value},"label-position":"top"},{default:i(()=>[o(e(V),{label:e(l)("generated.skillSourceManagementPage.name2"),prop:"name"},{default:i(()=>[o(e(Z),{modelValue:h.name,"onUpdate:modelValue":t[9]||(t[9]=a=>h.name=a),maxlength:"128"},null,8,["modelValue"])]),_:1},8,["label"]),o(e(V),{label:e(l)("generated.skillSourceManagementPage.repositoryURL"),prop:"locator"},{default:i(()=>[o(e(Z),{modelValue:h.locator,"onUpdate:modelValue":t[10]||(t[10]=a=>h.locator=a),placeholder:e(l)("generated.skillSourceManagementPage.httpsGithubComOrgRepoOrGit")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),f("p",ya,s(e(l)("generated.skillSourceManagementPage.gitRepositoriesUseTheServerProcessUser")),1),Ce(n.$slots,"source-ownership",{},()=>[o(e(V),{label:e(l)("generated.skillSourceManagementPage.scope2")},{default:i(()=>[o(e(q),{"model-value":"PERSONAL","clear-icon":e(g)("clear-input"),"suffix-icon":e(g)("chevron-down")},{default:i(()=>[o(e(z),{value:"PERSONAL",label:e(l)("generated.skillSourceManagementPage.personal2")},null,8,["label"])]),_:1},8,["clear-icon","suffix-icon"])]),_:1},8,["label"])],!0)]),_:3},8,["model","rules"])]),_:3},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):D("",!0),w.value?(m(),M(e(ne),{key:1,onVnodeMounted:e(me),onVnodeBeforeUnmount:e(ge),modelValue:w.value,"onUpdate:modelValue":t[16]||(t[16]=a=>w.value=a),title:e(l)("generated.skillSourceManagementPage.addToCatalog2"),width:"min(460px, calc(100vw - 32px))"},{footer:i(()=>[o(e(v),{onClick:t[15]||(t[15]=a=>w.value=!1)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.cancel4")),1)]),_:1}),o(e(v),{type:"primary",loading:e(r).loading.value,onClick:qe},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.add2")),1)]),_:1},8,["loading"])]),default:i(()=>[o(e(ue),{ref_key:"catalogForm",ref:ke,model:{...b.catalogContext,...C},rules:{...b.ownershipRules,...Y.value},"label-position":"top"},{default:i(()=>[Ce(n.$slots,"catalog-ownership",{},()=>[o(e(V),{label:e(l)("generated.skillSourceManagementPage.availability")},{default:i(()=>[o(e(q),{"model-value":"PERSONAL","clear-icon":e(g)("clear-input"),"suffix-icon":e(g)("chevron-down")},{default:i(()=>[o(e(z),{value:"PERSONAL",label:e(l)("generated.skillSourceManagementPage.personal3")},null,8,["label"])]),_:1},8,["clear-icon","suffix-icon"])]),_:1},8,["label"])],!0),o(e(V),{label:e(l)("generated.skillSourceManagementPage.featured2")},{default:i(()=>[o(e(_e),{modelValue:C.featured,"onUpdate:modelValue":t[13]||(t[13]=a=>C.featured=a)},null,8,["modelValue"])]),_:1},8,["label"]),o(e(V),{label:e(l)("generated.skillSourceManagementPage.tags"),prop:"tags"},{default:i(()=>[o(e(q),{modelValue:C.tags,"onUpdate:modelValue":t[14]||(t[14]=a=>C.tags=a),multiple:"",filterable:"","allow-create":"","default-first-option":"","multiple-limit":10,placeholder:e(l)("generated.skillSourceManagementPage.enterATagAndPressEnterUp"),"clear-icon":e(g)("clear-input"),"suffix-icon":e(g)("chevron-down")},{default:i(()=>[(m(!0),P(N,null,O(e(X),a=>(m(),M(e(z),{key:a,label:a,value:a},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","clear-icon","suffix-icon"])]),_:1},8,["label"])]),_:3},8,["model","rules"])]),_:3},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):D("",!0),U.value?(m(),M(e(ne),{key:2,onVnodeMounted:e(me),onVnodeBeforeUnmount:e(ge),modelValue:U.value,"onUpdate:modelValue":t[20]||(t[20]=a=>U.value=a),title:e(l)("generated.skillSourceManagementPage.editSkillInformation"),width:"min(460px, calc(100vw - 32px))","destroy-on-close":""},{footer:i(()=>[o(e(v),{onClick:t[19]||(t[19]=a=>U.value=!1)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.cancel5")),1)]),_:1}),o(e(v),{type:"primary",loading:e(r).loading.value,onClick:$e},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.save")),1)]),_:1},8,["loading"])]),default:i(()=>[o(e(ue),{ref_key:"editForm",ref:Se,model:y,rules:Y.value,"label-position":"top"},{default:i(()=>[o(e(V),{label:e(l)("generated.skillSourceManagementPage.featured3")},{default:i(()=>[o(e(_e),{modelValue:y.featured,"onUpdate:modelValue":t[17]||(t[17]=a=>y.featured=a)},null,8,["modelValue"])]),_:1},8,["label"]),o(e(V),{label:e(l)("generated.skillSourceManagementPage.tags2"),prop:"tags"},{default:i(()=>[o(e(q),{modelValue:y.tags,"onUpdate:modelValue":t[18]||(t[18]=a=>y.tags=a),multiple:"",filterable:"","allow-create":"","default-first-option":"","multiple-limit":10,placeholder:e(l)("generated.skillSourceManagementPage.enterATagAndPressEnterUp2"),"clear-icon":e(g)("clear-input"),"suffix-icon":e(g)("chevron-down")},{default:i(()=>[(m(!0),P(N,null,O(e(X),a=>(m(),M(e(z),{key:a,label:a,value:a},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","clear-icon","suffix-icon"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):D("",!0),o(oa,{modelValue:I.value,"onUpdate:modelValue":t[21]||(t[21]=a=>I.value=a),details:G.value},null,8,["modelValue","details"])]))}}),Ea=Xe(Pa,[["__scopeId","data-v-be4b0ff6"]]);export{Ea as default};
@@ -1 +0,0 @@
1
- .mar-management-page[data-v-be4b0ff6]>*{flex-shrink:0;min-width:0}.skill-management-tabs[data-v-be4b0ff6]{min-height:260px;min-width:0}.skill-management-tabs[data-v-be4b0ff6] .mar-ui-tabs__content{min-width:0}.skill-management-tabs[data-v-be4b0ff6] .mar-ui-tab-pane{display:grid;gap:14px;min-width:0}.section-heading h3[data-v-be4b0ff6]{margin:0;color:var(--mar-text-primary);font-size:var(--mar-font-size-body)}.section-heading[data-v-be4b0ff6]{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--mar-fill-hover);padding-top:14px}.section-heading p[data-v-be4b0ff6]{margin:2px 0 0;color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta)}.source-search-bar[data-v-be4b0ff6]{display:flex;align-items:center;gap:12px;min-width:0}.source-search-bar[data-v-be4b0ff6] .mar-ui-select{width:min(320px,100%);min-width:200px}.toolbar[data-v-be4b0ff6]{flex:0 1 360px;min-width:0}.catalog-filter-bar[data-v-be4b0ff6]{display:grid;gap:10px}.catalog-filter-bar[data-v-be4b0ff6] .mar-ui-input{width:min(320px,100%)}.skill-category-strip[data-v-be4b0ff6]{display:flex;overflow-x:auto;gap:6px;padding:1px 0 3px;scrollbar-width:thin}.skill-category-strip button[data-v-be4b0ff6]{flex:none;border:1px solid var(--mar-border-medium);border-radius:999px;background:var(--mar-bg-panel);color:var(--mar-text-secondary);padding:5px 12px;font:inherit;font-size:var(--mar-font-size-body);cursor:pointer}.skill-category-strip button[data-v-be4b0ff6]:hover{border-color:var(--mar-border-strong);background:var(--mar-fill-row-hover);color:var(--mar-text-primary)}.skill-category-strip button.selected[data-v-be4b0ff6]{border-color:var(--mar-border-medium);background:var(--mar-fill-selection);color:var(--mar-text-primary);font-weight:400}.skill-category-strip button[data-v-be4b0ff6]:focus-visible{outline:2px solid var(--mar-color-brand);outline-offset:1px}.form-hint[data-v-be4b0ff6]{margin:-8px 0 14px;color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta);line-height:1.5}.skill-tags[data-v-be4b0ff6]{display:flex;flex-wrap:wrap;gap:6px}.skill-table-section[data-v-be4b0ff6]{min-height:180px;min-width:0}.skill-empty[data-v-be4b0ff6]{border:1px dashed var(--mar-border-medium);border-radius:8px;background:var(--mar-bg-subtle);padding:20px;color:var(--mar-text-secondary);font-size:var(--mar-font-size-body);text-align:center}.clickable-rows[data-v-be4b0ff6] .mar-ui-table__row{cursor:pointer}.mar-row-actions[data-v-be4b0ff6]{display:flex;flex-wrap:wrap;gap:4px 8px}.table-meta[data-v-be4b0ff6]{display:block;margin-top:2px;color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta)}@media(max-width:700px){.source-search-bar[data-v-be4b0ff6]{align-items:stretch;flex-direction:column}.source-search-bar[data-v-be4b0ff6] .mar-ui-select,.catalog-filter-bar[data-v-be4b0ff6] .mar-ui-input{width:100%}.source-search-bar .toolbar[data-v-be4b0ff6]{flex-basis:auto}.toolbar[data-v-be4b0ff6] .mar-ui-button,.section-heading[data-v-be4b0ff6] .mar-ui-button{min-height:36px}}
@@ -1 +0,0 @@
1
- .standalone-file-preview[data-v-96b769f1]{--mar-color-brand-text: #0969da;--mar-color-danger-text: #cf222e;--mar-scrollbar-thumb: #afb8c1;display:flex;height:100dvh;min-height:0;flex-direction:column;align-items:center;justify-content:flex-start;overflow:auto;padding:0;background:#fff;color:#1f2328;color-scheme:light}.standalone-error[data-v-96b769f1]{margin:0;padding:24px;color:var(--mar-color-danger-text);font-size:var(--mar-font-size-body);white-space:pre-wrap;overflow-wrap:anywhere}.standalone-preview-body[data-v-96b769f1]{position:relative;isolation:isolate;display:flex;min-width:0;min-height:0;flex:1;flex-direction:column;align-self:stretch}.standalone-preview-body[data-v-96b769f1] .file-preview-loading.is-overlay{background:#fff}.standalone-markdown-header[data-v-96b769f1]{display:flex;width:min(210mm,100%);align-items:center;justify-content:space-between;gap:.75rem;padding:.6rem 1rem;border-bottom:1px solid #d0d7de;background:#f6f8fa;color:#57606a;font-size:var(--mar-font-size-meta)}.standalone-markdown-header code[data-v-96b769f1]{min-width:0;overflow:hidden;color:inherit;text-overflow:ellipsis;white-space:nowrap}.standalone-markdown-header small[data-v-96b769f1]{flex:none;font-variant-numeric:tabular-nums}.html-preview-header[data-v-96b769f1]{width:100%;box-sizing:border-box}.html-preview-header small[data-v-96b769f1]{flex:1;text-align:right;white-space:normal}.markdown-preview-page[data-v-96b769f1]{position:relative;isolation:isolate;box-sizing:border-box;width:min(210mm,100%);min-height:297mm;margin:0 auto;padding:6mm 18mm 18mm;background:#fff}.markdown-watermark[data-v-96b769f1]{position:absolute;z-index:0;inset:0;background-repeat:repeat;background-position:0 0;pointer-events:none}.markdown-preview-page[data-v-96b769f1] .markdown-file-preview{position:relative;z-index:1}.markdown-preview-page[data-v-96b769f1] .markdown-body{background-color:transparent;color:#1f2328;color-scheme:light}.markdown-preview-page[data-v-96b769f1] .markdown-body>:first-child{margin-top:0}@media print{@page{size:A4;margin:0}html,body,#app{height:auto!important;min-height:0!important;overflow:visible!important;background:#fff!important;color-scheme:light}.standalone-file-preview[data-v-96b769f1]{display:block;height:auto;min-height:0;overflow:visible;padding:0;background:#fff}.standalone-markdown-header[data-v-96b769f1]{display:none}.markdown-preview-page[data-v-96b769f1]{width:210mm;min-height:297mm;margin:0;padding:18mm;box-shadow:none}.markdown-watermark[data-v-96b769f1]{position:absolute;z-index:0;-webkit-print-color-adjust:exact;print-color-adjust:exact}}
@@ -1 +0,0 @@
1
- .template-description[data-v-534d0e15]{margin:0 0 14px;color:var(--mar-text-secondary);line-height:1.55;border-left:2px solid var(--mar-color-brand);padding-left:12px}.template-layout[data-v-534d0e15]{display:grid;grid-template-columns:minmax(200px,.9fr) minmax(0,1.6fr);gap:18px;min-height:360px}.template-choices[data-v-534d0e15]{display:flex;flex-direction:column;gap:9px}.template-choice[data-v-534d0e15]{display:flex;flex-direction:column;gap:7px;width:100%;border:1px solid var(--mar-input-border);border-radius:var(--mar-radius-selection);padding:13px 14px;background:var(--mar-bg-panel);color:var(--mar-text-secondary);text-align:left;cursor:pointer;transition:border-color .15s ease,background-color .15s ease}.template-choice.is-selected[data-v-534d0e15]{border-color:var(--mar-border-medium);background:var(--mar-fill-selection);color:var(--mar-text-primary)}.template-choice[data-v-534d0e15]:hover{background:var(--mar-fill-hover)}.template-choice.is-selected[data-v-534d0e15]:hover{background:var(--mar-fill-selection)}.template-choice[data-v-534d0e15]:focus-visible{outline:2px solid var(--mar-color-brand);outline-offset:2px}.template-choice__meta[data-v-534d0e15],.template-choice__subject[data-v-534d0e15]{color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta)}.template-choice__meta[data-v-534d0e15]{display:flex;align-items:center;gap:7px;font-size:var(--mar-font-size-meta);font-weight:400}.template-choice__name[data-v-534d0e15]{font-size:var(--mar-font-size-body);font-weight:400;line-height:1.45}.template-choice__subject[data-v-534d0e15]{line-height:1.35;overflow-wrap:anywhere}.template-preview[data-v-534d0e15]{display:flex;flex-direction:column;min-width:0;gap:10px}.template-preview__header[data-v-534d0e15]{display:flex;align-items:center;justify-content:space-between;min-height:25px;color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta)}.template-preview__locale[data-v-534d0e15]{font-size:var(--mar-font-size-meta);font-variant-numeric:tabular-nums}.template-preview__document[data-v-534d0e15]{display:block;box-sizing:border-box;width:100%;height:410px;border:0;background:transparent}.template-preview__fallback[data-v-534d0e15]{display:flex;flex-direction:column;gap:10px;min-height:340px;padding:18px;overflow-wrap:anywhere}.template-preview__fallback span[data-v-534d0e15]{color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta)}.template-preview__fallback p[data-v-534d0e15]{margin:0;white-space:pre-wrap}.template-test-select[data-v-534d0e15]{width:100%}@media(max-width:620px){.template-layout[data-v-534d0e15]{grid-template-columns:1fr}.template-preview__document[data-v-534d0e15]{height:360px}.template-choices[data-v-534d0e15]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.template-choices[data-v-534d0e15]{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.template-choice[data-v-534d0e15]{transition:none}}.origin-setting-form[data-v-33e6f01a]{margin-bottom:0}.smtp-toggle[data-v-33e6f01a]{display:flex;align-items:center;justify-content:space-between;padding:4px 0 16px}.smtp-form__pair[data-v-33e6f01a]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.smtp-form__pair[data-v-33e6f01a] .mar-ui-input-number,.smtp-form__pair[data-v-33e6f01a] .mar-ui-select{width:100%}.smtp-form__pair[data-v-33e6f01a] .mar-ui-input-number input{text-align:left}.smtp-template-row[data-v-33e6f01a]{margin:4px 0 12px}.smtp-dialog-hint[data-v-33e6f01a]{margin:0;color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta);line-height:1.5}.smtp-dialog-footer[data-v-33e6f01a]{display:flex;justify-content:flex-end;gap:8px}
@@ -1 +0,0 @@
1
- import{u as G,m as Q,M as fe}from"./mobile-dialog-return-service-_7w5rD8m.js";import{f as C,m as de,t as a,o as f,n as T,a7 as Z,q as o,C as s,P as S,N as p,D as e,E,Q as U,B as D,T as W,Y as ne,Z as oe,L as h,a8 as ie,a3 as ce,F as R,O as j,k as J,U as A,_ as me,w as ye,J as ve,R as be,a6 as se,l as Ce,V as he}from"./index-31u2XoZR.js";import{M as Pe}from"./MarAlert-CvDJlLVl.js";import{M as re}from"./MarInputNumber-ClXjxMHe.js";import{_ as H,M as _e}from"./MarTableColumn.vue_vue_type_script_setup_true_lang-C8aPC9xX.js";import{_ as $,a as X}from"./MarFormItem.vue_vue_type_script_setup_true_lang-BwDM_Txe.js";import{M as ge,a as ee}from"./MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-0CVezpJG.js";import{M as ue}from"./MarSwitch-BALOzpDc.js";import"./conversation-history-_CnB_k_W.js";import{e as Y}from"./error-presentation-O4h1hNT5.js";const we={key:"skill-tls",field:"skillTlsVerificationDisabled",payloadField:"verificationDisabled",nameKey:"generated.systemConfigurationPage.disableSkillSourceTLSVerification",descriptionKey:"generated.systemConfigurationPage.keepThisOffByDefaultUseIt",type:"boolean",initialValue:!1},Ve={key:"html-preview-origin",field:"htmlPreviewOrigin",payloadField:"origin",nameKey:"generated.systemConfigurationPage.htmlPreviewOrigin",descriptionKey:"generated.systemConfigurationPage.htmlPreviewOriginDescription",placeholderKey:"generated.systemConfigurationPage.htmlPreviewOriginPlaceholder",type:"origin",initialValue:""},ke={key:"mail-smtp",field:"smtpConfiguration",payloadField:"config",nameKey:"generated.systemConfigurationPage.smtp",descriptionKey:"generated.systemConfigurationPage.smtpDescription",placeholderKey:"generated.systemConfigurationPage.smtpPlaceholder",type:"json",initialValue:"{}"},Te={key:"web-push",field:"webPushEnabled",payloadField:"enabled",nameKey:"workbenchNotificationCenter.webPushConfiguration.title",descriptionKey:"workbenchNotificationCenter.webPushConfiguration.description",type:"boolean",initialValue:!1};function Se(k,M=[]){const u=[...M,{key:"mar-agent-resource-input",field:"useResourceUrl",payloadField:"useResourceUrl",nameKey:"marAgentModels.useResourceUrl",descriptionKey:"marAgentModels.globalResourceUrlDescription",type:"boolean",initialValue:!0},ke,Te,Ve,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 I(i){!_.has(i)||v.value||V.value!==null||g.value!==null||(y.value={...w.value},g.value=i)}function N(i){g.value!==i||V.value!==null||(y.value={...w.value},g.value=null)}function O(i,n){if(i.type==="json"){if(typeof n!="string"||n.length>4096)return!1;try{const c=JSON.parse(n);return c!==null&&typeof c=="object"&&!Array.isArray(c)}catch{return!1}}if(i.type==="origin"){if(n==="")return!0;if(typeof n!="string"||n.length>253)return!1;try{const c=new URL(n);return c.origin===n&&(c.protocol==="https:"||c.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 c=_.get(i);c===void 0||g.value!==i||V.value!==null||!(c.type==="origin"||c.type==="json"?typeof n=="string"&&n.length<=(c.type==="json"?4096:253):O(c,n))||(y.value[c.field]=n)}async function B(i){const n=_.get(i);if(n===void 0||g.value!==i||V.value!==null||v.value)return!1;const c=y.value[n.field];if(!O(n,c))return!1;V.value=i;try{return d(await k(`/api/system-settings/${encodeURIComponent(i)}`,{method:"PATCH",body:JSON.stringify({[n.payloadField]:c})})),g.value=null,!0}finally{V.value=null}}return{settings:u,snapshot:w,drafts:y,editingKey:g,savingKey:V,loading:v,load:x,beginEdit:I,cancelEdit:N,validValue:O,setDraft:K,save:B}}function Me(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 Ue={class:"template-viewer"},xe={class:"template-description"},$e={key:0,class:"template-layout"},Ee=["aria-label"],De=["aria-pressed","onClick"],Ie={class:"template-choice__meta"},Ne={class:"template-choice__name"},Oe={class:"template-choice__subject"},Ke={key:0,class:"template-preview"},Be={class:"template-preview__header"},Fe={class:"template-preview__locale"},Ae=["srcdoc","title"],je={key:1,class:"template-preview__fallback"},Re={key:1,class:"template-empty"},qe=de({__name:"MailTemplateManagement",props:{request:{type:Function},writable:{type:Boolean}},setup(k){const M=k,u=Me(M.request),_=C(!1),w=C(""),y=J(()=>u.templates.value.find(b=>b.id===w.value)),g=C(),V=C(!1);let v=0;const d=C(!1),x=C(),I=C(""),N=C(""),O=J(()=>u.templates.value.filter(b=>b.kind==="TEST")),K=J(()=>({email:I.value,templateId:N.value})),B={email:[{required:!0,pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/u,message:a("generated.systemConfigurationPage.mailAddressInvalid"),trigger:"blur"}],templateId:[{required:!0,trigger:"change"}]};function i(b){return b instanceof Error?Y(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 c(b){w.value=b.id,g.value=void 0,q()}async function q(){const b=y.value;if(b===void 0||!_.value)return;const P=++v;V.value=!0;try{const m=await u.preview(b,a("generated.systemConfigurationPage.mailPreviewMessage"));_.value&&P===v&&w.value===b.id&&(g.value=m)}catch(m){P===v&&A(i(m),"error",m)}finally{P===v&&(V.value=!1)}}function z(){I.value="",N.value=(y.value?.kind==="TEST"?y.value.id:O.value[0]?.id)??"",d.value=!0}async function L(){if(M.writable)try{await x.value?.validate(),await u.test(I.value,N.value),d.value=!1,A(a("generated.systemConfigurationPage.mailTestAccepted"),"success")}catch(b){b instanceof Error&&A(i(b),"error",b)}}return(b,P)=>(f(),T(Z,null,[o(e(U),{icon:e(E)("mail"),onClick:n},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.mailTemplateView")),1)]),_:1},8,["icon"]),_.value?(f(),D(e(W),{key:0,onVnodeMounted:e(Q),onVnodeBeforeUnmount:e(G),modelValue:_.value,"onUpdate:modelValue":P[1]||(P[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||O.value.length===0||e(u).busy.value,onClick:z},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.mailTest")),1)]),_:1},8,["disabled"]),o(e(U),{onClick:P[0]||(P[0]=m=>_.value=!1)},{default:s(()=>[S(p(e(a)("common.close")),1)]),_:1})]),default:s(()=>[ne((f(),T("div",Ue,[h("p",xe,p(e(a)("generated.systemConfigurationPage.mailTemplateBuiltIn")),1),e(u).templates.value.length>0?(f(),T("div",$e,[h("div",{class:"template-choices",role:"group","aria-label":e(a)("generated.systemConfigurationPage.mailTemplates")},[(f(!0),T(Z,null,ie(e(u).templates.value,m=>(f(),T("button",{key:m.id,type:"button",class:ce(["template-choice",{"is-selected":w.value===m.id}]),"aria-pressed":w.value===m.id,onClick:ae=>c(m)},[h("span",Ie,[S(p(e(a)(m.kind==="TEST"?"generated.systemConfigurationPage.mailKindTest":"generated.systemConfigurationPage.mailKindNotification"))+" ",1),P[6]||(P[6]=h("span",{"aria-hidden":"true"},"·",-1)),S(" "+p(m.locale),1)]),h("span",Ne,p(m.name),1),h("span",Oe,p(m.subject),1)],10,De))),128))],8,Ee),y.value?ne((f(),T("div",Ke,[h("div",Be,[h("span",null,p(e(a)("generated.systemConfigurationPage.mailPreviewSample")),1),h("span",Fe,p(y.value.locale),1)]),g.value?.html?(f(),T("iframe",{key:0,class:"template-preview__document",srcdoc:g.value.html,sandbox:"",referrerpolicy:"no-referrer",title:e(a)("generated.systemConfigurationPage.mailPreviewSample")},null,8,Ae)):(f(),T("div",je,[h("span",null,p(e(a)("generated.systemConfigurationPage.mailSubject")),1),h("strong",null,p(g.value?.subject??y.value.subject),1),h("span",null,p(e(a)("generated.systemConfigurationPage.mailBody")),1),h("p",null,p(g.value?.text??y.value.body),1)]))])),[[e(oe),V.value,"region"]]):R("",!0)])):e(u).loading.value?R("",!0):(f(),T("p",Re,p(e(a)("generated.systemConfigurationPage.mailTemplateEmpty")),1))])),[[e(oe),e(u).loading.value,"region"]])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):R("",!0),d.value?(f(),D(e(W),{key:1,onVnodeMounted:e(Q),onVnodeBeforeUnmount:e(G),modelValue:d.value,"onUpdate:modelValue":P[5]||(P[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:P[4]||(P[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:B,"label-position":"top"},{default:s(()=>[o(e($),{label:e(a)("generated.systemConfigurationPage.mailAddress"),prop:"email"},{default:s(()=>[o(e(j),{modelValue:I.value,"onUpdate:modelValue":P[2]||(P[2]=m=>I.value=m),type:"email"},null,8,["modelValue"])]),_:1},8,["label"]),o(e($),{label:e(a)("generated.systemConfigurationPage.mailTemplate"),prop:"templateId"},{default:s(()=>[o(e(ge),{modelValue:N.value,"onUpdate:modelValue":P[3]||(P[3]=m=>N.value=m),class:"template-test-select","clear-icon":e(E)("clear-input"),"suffix-icon":e(E)("chevron-down")},{default:s(()=>[(f(!0),T(Z,null,ie(O.value,m=>(f(),D(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))}}),Le=me(qe,[["__scopeId","data-v-534d0e15"]]),Je={class:"mar-management-page"},ze={class:"mar-table-actions"},He=["aria-label"],Ze={key:1},Ye={key:3},Ge={key:4},Qe={class:"smtp-toggle"},We={class:"smtp-form__pair"},Xe={class:"smtp-template-row"},ea={class:"smtp-dialog-hint"},aa={class:"smtp-dialog-footer"},ta=de({__name:"SystemConfigurationPage",props:{request:{type:Function},writable:{type:Boolean},settings:{}},setup(k){const M=k,u=Se(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 I={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"}]},N=u.settings.find(r=>r.key==="html-preview-origin"),O={origin:[{validator:(r,l,t)=>t(u.validValue(N,l)?void 0:new Error(a("generated.systemConfigurationPage.htmlPreviewOriginInvalid"))),trigger:"change"}]},{snapshot:K,drafts:B,editingKey:i,savingKey:n,loading:c,beginEdit:q,cancelEdit:z}=u,L=C(!1),b=J(()=>({origin:B.value.htmlPreviewOrigin})),P=J(()=>u.settings.map(r=>({...r,name:a(r.nameKey),description:a(r.descriptionKey)})));ye(g,r=>{y.value="",r||(d.password="",x="",z("mail-smtp"))});function m(r){const l=B.value[r];return typeof l=="number"?l:void 0}function ae(r){const l=B.value[r];return typeof l=="string"?l:""}function pe(){if(!M.writable||(q("mail-smtp"),i.value!=="mail-smtp"))return;const r=JSON.parse(String(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?Y(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:E("warning"),type:"warning",confirmButtonText:a("generated.systemConfigurationPage.smtpDisableTitle"),cancelButtonText:a("common.cancel")})}catch(l){if(l==="cancel"||l==="close")return;A(l instanceof Error?Y(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?Y(l):a("generated.systemConfigurationPage.unableToSaveSystemConfiguration"),"error",l)}}}return ve(()=>{te()}),(r,l)=>(f(),T("section",Je,[h("div",ze,[o(e(U),{icon:e(E)("refresh"),disabled:e(c)||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?P.value:[],"row-key":"key","aria-busy":e(c)},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?(f(),D(e(re),{key:0,"model-value":m(t.field),placeholder:t.placeholderKey===void 0?void 0:e(a)(t.placeholderKey),min:t.min,max:t.max,disabled:e(n)!==null,"onUpdate:modelValue":F=>e(u).setDraft(t.key,F)},{"decrease-icon":s(()=>[o(e(se),{name:"subtract"})]),"increase-icon":s(()=>[o(e(se),{name:"plus"})]),_:1},8,["model-value","placeholder","min","max","disabled","onUpdate:modelValue"])):t.type==="number"?(f(),T("span",Ze,p(e(K)[t.field]),1)):t.type==="origin"&&e(i)===t.key?(f(),D(e(X),{key:2,ref_key:"originForm",ref:_,model:b.value,rules:O},{default:s(()=>[o(e($),{prop:"origin",class:"origin-setting-form"},{default:s(()=>[o(e(j),{"model-value":ae(t.field),placeholder:e(a)(t.placeholderKey),disabled:e(n)!==null,"onUpdate:modelValue":F=>e(u).setDraft(t.key,F)},null,8,["model-value","placeholder","disabled","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["model"])):t.type==="origin"?(f(),T("span",Ye,p(e(K)[t.field]||e(a)("generated.systemConfigurationPage.htmlPreviewCurrentOrigin")),1)):t.type==="json"?(f(),T("span",Ge,"-")):(f(),D(e(ue),{key:5,"model-value":e(B)[t.field]===!0,disabled:e(i)!==t.key||!k.writable||e(n)!==null,"onUpdate:modelValue":F=>e(u).setDraft(t.key,F)},null,8,["model-value","disabled","onUpdate:modelValue"]))]),_:1},8,["label"]),o(e(H),{label:e(a)("generated.systemConfigurationPage.actions"),"min-width":"220"},{default:s(({row:t})=>[e(i)!==t.key||t.type==="json"?(f(),D(e(U),{key:0,link:"",icon:e(E)("edit"),disabled:!k.writable||e(i)!==null,onClick:F=>t.type==="json"?pe():e(q)(t.key)},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.edit")),1)]),_:1},8,["icon","disabled","onClick"])):(f(),T(Z,{key:1},[o(e(U),{link:"",type:"primary",icon:e(E)("check"),loading:e(n)===t.key,disabled:!k.writable||e(n)!==null,onClick:F=>le(t.key)},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.save")),1)]),_:1},8,["icon","loading","disabled","onClick"]),o(e(U),{link:"",icon:e(E)("close"),disabled:e(n)!==null,onClick:F=>e(z)(t.key)},{default:s(()=>[S(p(e(a)("common.cancel")),1)]),_:1},8,["icon","disabled","onClick"])],64))]),_:1},8,["label"])]),_:2},[e(c)?{name:"loading",fn:s(()=>[h("span",{role:"progressbar","aria-label":e(a)("common.loading")},[o(e(fe),{class:"mar-read-loading-indicator"})],8,He)]),key:"0"}:void 0]),1032,["data","aria-busy"]),g.value?(f(),D(e(W),{key:0,onVnodeMounted:e(Q),onVnodeBeforeUnmount:e(G),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(()=>[h("div",aa,[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(()=>[h("div",Qe,[h("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?(f(),D(e(X),{key:0,ref_key:"smtpForm",ref:w,model:d,rules:I,"label-position":"top",class:"smtp-form"},{default:s(()=>[y.value?(f(),D(e(Pe),{key:0,title:y.value,type:"error",closable:!1},null,8,["title"])):R("",!0),o(e($),{label:e(a)("generated.systemConfigurationPage.smtpHost"),prop:"host"},{default:s(()=>[o(e(j),{modelValue:d.host,"onUpdate:modelValue":l[1]||(l[1]=t=>d.host=t),maxlength:"253",autocomplete:"off",disabled:e(n)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),h("div",We,[o(e($),{label:e(a)("generated.systemConfigurationPage.smtpPort"),prop:"port"},{default:s(()=>[o(e(re),{modelValue:d.port,"onUpdate:modelValue":l[2]||(l[2]=t=>d.port=t),"aria-label":e(a)("generated.systemConfigurationPage.smtpPort"),min:1,max:65535,controls:!1,disabled:e(n)!==null},null,8,["modelValue","aria-label","disabled"])]),_:1},8,["label"]),o(e($),{label:e(a)("generated.systemConfigurationPage.smtpTls"),prop:"tls"},{default:s(()=>[o(e(ge),{modelValue:d.tls,"onUpdate:modelValue":l[3]||(l[3]=t=>d.tls=t),disabled:e(n)!==null,"clear-icon":e(E)("clear-input"),"suffix-icon":e(E)("chevron-down")},{default:s(()=>[o(e(ee),{label:"STARTTLS",value:"STARTTLS"}),o(e(ee),{label:"TLS",value:"TLS"})]),_:1},8,["modelValue","disabled","clear-icon","suffix-icon"])]),_:1},8,["label"])]),o(e($),{label:e(a)("generated.systemConfigurationPage.smtpFrom"),prop:"from"},{default:s(()=>[o(e(j),{modelValue:d.from,"onUpdate:modelValue":l[4]||(l[4]=t=>d.from=t),maxlength:"320",autocomplete:"off",disabled:e(n)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(e($),{label:e(a)("generated.systemConfigurationPage.smtpFromName"),prop:"fromName"},{default:s(()=>[o(e(j),{modelValue:d.fromName,"onUpdate:modelValue":l[5]||(l[5]=t=>d.fromName=t),maxlength:"128",autocomplete:"off",disabled:e(n)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(e($),{label:e(a)("generated.systemConfigurationPage.smtpUsername"),prop:"username"},{default:s(()=>[o(e(j),{modelValue:d.username,"onUpdate:modelValue":l[6]||(l[6]=t=>d.username=t),maxlength:"320",autocomplete:"off",disabled:e(n)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(e($),{label:e(a)("generated.systemConfigurationPage.smtpPassword"),prop:"password"},{default:s(()=>[o(e(j),{modelValue:d.password,"onUpdate:modelValue":l[7]||(l[7]=t=>d.password=t),type:"password",maxlength:"1024",autocomplete:"new-password",placeholder:e(x)===d.username&&e(x)?e(a)("generated.systemConfigurationPage.smtpPasswordKeep"):void 0,disabled:e(n)!==null},null,8,["modelValue","placeholder","disabled"])]),_:1},8,["label"])]),_:1},8,["model"])):R("",!0),h("div",Xe,[o(Le,{request:k.request,writable:k.writable},null,8,["request","writable"])]),h("p",ea,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)]))}}),pa=me(ta,[["__scopeId","data-v-33e6f01a"]]);export{pa as default};