@acedatacloud/nexior 3.361.1 → 3.362.1

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 (434) hide show
  1. package/dist/assets/{ApiCodeButton-D1RwSLJs.js → ApiCodeButton-DIudRxxI.js} +1 -1
  2. package/dist/assets/{ApiCodeDialog-THo6zjUa.js → ApiCodeDialog-AMz3CKZY.js} +1 -1
  3. package/dist/assets/{Artifacts-B7i3CQrX.js → Artifacts-D8eNkKQf.js} +1 -1
  4. package/dist/assets/{AskUserQuestionCard-79Jwtdnd.js → AskUserQuestionCard-ChTmsjni.js} +1 -1
  5. package/dist/assets/{AudioPreview-DxoeB7kL.js → AudioPreview-DwauwXVF.js} +1 -1
  6. package/dist/assets/{Auth-Hx7OkUJ2.js → Auth-CVo2OYYw.js} +1 -1
  7. package/dist/assets/{Bare-Bhie5Yz-.js → Bare-BSbg96mw.js} +1 -1
  8. package/dist/assets/{BotPlaceholder-DtEMEnto.js → BotPlaceholder-CcjsDj0N.js} +1 -1
  9. package/dist/assets/{BottomFooter-BfiYEcT_.js → BottomFooter-BFX2fc7R.js} +1 -1
  10. package/dist/assets/{BrowseConnectors-Dmtwr-L0.js → BrowseConnectors-B6KlcBBR.js} +1 -1
  11. package/dist/assets/{BrowserPairingDialog-CZvnbYU7.js → BrowserPairingDialog-lrUojEAp.js} +1 -1
  12. package/dist/assets/{Callback-CmphsYFM.js → Callback-2bqQLGoE.js} +1 -1
  13. package/dist/assets/{CodeSnippet-C54gxhZ6.js → CodeSnippet-CwOMahTK.js} +1 -1
  14. package/dist/assets/{Console-Oe7VPTw5.js → Console-Db6GNS83.js} +1 -1
  15. package/dist/assets/{Consumption-CqNBCqPl.js → Consumption-C9CaJF7U.js} +1 -1
  16. package/dist/assets/{Conversation-DvCtTZVY.js → Conversation-DglFEAPr.js} +1 -1
  17. package/dist/assets/{Conversation-CQiYr82c.js → Conversation-IqNW4YZ-.js} +1 -1
  18. package/dist/assets/{CopyToClipboard-CGlohic3.js → CopyToClipboard-nyXqwbLh.js} +1 -1
  19. package/dist/assets/{Detail-BJBGQcv3.js → Detail-DG13uCAr.js} +1 -1
  20. package/dist/assets/{Extra-CDfU3fS-.js → Extra-B49x31l8.js} +1 -1
  21. package/dist/assets/{FilePreview-DBhwpCVT.js → FilePreview-C4GxmMRF.js} +1 -1
  22. package/dist/assets/{Hailuo-BnlIMmA3.js → Hailuo-BzxsD5nG.js} +1 -1
  23. package/dist/assets/{History-BbT8OOPX.js → History-C0acbsVH.js} +1 -1
  24. package/dist/assets/{ImagePreview-CjRMDeL4.js → ImagePreview-B3pTp0IA.js} +1 -1
  25. package/dist/assets/{ImageWrapper-Cm-76bht.js → ImageWrapper-DvLNHGDt.js} +1 -1
  26. package/dist/assets/Index-BAlZUEas.js +2 -0
  27. package/dist/assets/{Index-xIeLL2hx.css → Index-BJThkL2I.css} +1 -1
  28. package/dist/assets/{Index-CiUC_U3L.js → Index-BL-mFaQb.js} +1 -1
  29. package/dist/assets/{Index-CE8lqVSW.js → Index-BMezBe6U.js} +1 -1
  30. package/dist/assets/Index-BXBrUh1P.js +1 -0
  31. package/dist/assets/{Index--QxTGWho.js → Index-B_D9X_oI.js} +1 -1
  32. package/dist/assets/{Index-CIK9mB7-.js → Index-BgbyPmHq.js} +1 -1
  33. package/dist/assets/{Index-QOaoSJkh.js → Index-Bh2dtlI7.js} +1 -1
  34. package/dist/assets/{Index-CgCi4Y8D.js → Index-BtjVb6RR.js} +1 -1
  35. package/dist/assets/{Index-Cb7sJKoa.js → Index-BxtsIxGb.js} +1 -1
  36. package/dist/assets/{Index-BBlTSvEE.js → Index-C2DbCb0Y.js} +1 -1
  37. package/dist/assets/{Index-C3wqTM8z.js → Index-COfIwaFT.js} +1 -1
  38. package/dist/assets/{Index-DfagaJad.js → Index-CZL75q6P.js} +1 -1
  39. package/dist/assets/Index-CgEF-1-u.js +1 -0
  40. package/dist/assets/{Index-C0Jr1hpE.js → Index-D0pjVLav.js} +1 -1
  41. package/dist/assets/{Index-BvLcbWJ6.js → Index-DAF4sU9V.js} +1 -1
  42. package/dist/assets/{Index-Bq5yApny.js → Index-DJJxJ3Lk.js} +1 -1
  43. package/dist/assets/{Index-DFs-5ulA.js → Index-DKiDukKy.js} +1 -1
  44. package/dist/assets/{Index-Bxiiuhv1.js → Index-DRssSG2w.js} +1 -1
  45. package/dist/assets/{Index-DvUi3ogd.js → Index-DZgqRKVG.js} +1 -1
  46. package/dist/assets/{Index-faXb5b3H.js → Index-DcDtXaKF.js} +1 -1
  47. package/dist/assets/{Index-leeOTRzw.js → Index-DhytiHUr.js} +1 -1
  48. package/dist/assets/{Index-DmHCQcYg.js → Index-DjAG8grx.js} +1 -1
  49. package/dist/assets/{Index-Dh1K_gB-.js → Index-DonFAQWZ.js} +1 -1
  50. package/dist/assets/{Index-nQKAIFuQ.js → Index-DxxTvyBx.js} +1 -1
  51. package/dist/assets/{Index-CqEF6UoU.js → Index-MKvp_emB.js} +1 -1
  52. package/dist/assets/{Index-CLO-ivtc.js → Index-MndZjgtv.js} +1 -1
  53. package/dist/assets/{Index-BUbWRNI9.js → Index-Ov6vrxs1.js} +1 -1
  54. package/dist/assets/{Index-C1cnAaMs.js → Index-VKI-TcJn.js} +1 -1
  55. package/dist/assets/{Index-ZN0QDXI6.js → Index-Z4fm5t9A.js} +1 -1
  56. package/dist/assets/{Index-BY-tq6_g2.js → Index-eUVBRjXl2.js} +1 -1
  57. package/dist/assets/Index-ezlJaQt2.css +1 -0
  58. package/dist/assets/{Index-z0sJ8h-g.js → Index-nNMpJ2FN.js} +1 -1
  59. package/dist/assets/{Index-CC2lK7Kc.js → Index-p0Ql3czf.js} +1 -1
  60. package/dist/assets/Index-r5B4Dq-2.js +1 -0
  61. package/dist/assets/{Index-zbtvV1S4.js → Index-vIvpGT6K.js} +1 -1
  62. package/dist/assets/{Index-lremjN5w.js → Index-vfpw8Ryr.js} +1 -1
  63. package/dist/assets/{Invitees-Bg1OGzeQ.js → Invitees-CuVQBM7H.js} +1 -1
  64. package/dist/assets/{List-Ddq3BJVR.js → List-BB8RcJux.js} +1 -1
  65. package/dist/assets/{List-Dhwq2Pz_.js → List-BzEx-0LO.js} +1 -1
  66. package/dist/assets/{List-CGmCRkaw.js → List-uzfbN_u3.js} +1 -1
  67. package/dist/assets/{LocalTools-HUROQtmg.js → LocalTools-D35GdcSy.js} +1 -1
  68. package/dist/assets/{LocalTools-BgbmUt7i.js → LocalTools-XS3oZghb.js} +2 -2
  69. package/dist/assets/{Logo-Ci1kdnKR.js → Logo-BY3VFfFs.js} +1 -1
  70. package/dist/assets/{Main-DvaesXVM.js → Main-CBAFdTPR.js} +1 -1
  71. package/dist/assets/{Message-EhEbFWmZ.js → Message-BF42_PCn.js} +2 -2
  72. package/dist/assets/{Model-CMVmr6Xp.js → Model-nm8Fnyph.js} +1 -1
  73. package/dist/assets/{Navigator-KmUHZtTY.js → Navigator-D23Ib1Hi.js} +6 -6
  74. package/dist/assets/{NotFound-DJRbq0vB.js → NotFound-DN5sVd8M.js} +1 -1
  75. package/dist/assets/{PageHeader-Bnlb9GJE.js → PageHeader-B1q0jwN6.js} +1 -1
  76. package/dist/assets/{Pay-BFLR1-Li.js → Pay-D9Kv1186.js} +1 -1
  77. package/dist/assets/{Player-Cvb_ki_z.js → Player-C_YyKepF.js} +1 -1
  78. package/dist/assets/{Poivelle-DYR3RIz-.js → Poivelle-UtzxHT5d.js} +1 -1
  79. package/dist/assets/{RealtimeCall-Bnp8tXhT.js → RealtimeCall-FQbguoqK.js} +1 -1
  80. package/dist/assets/{ReportButton-Ca6dy0TA.js → ReportButton-1gsHQqMT.js} +1 -1
  81. package/dist/assets/{ReportDialog-hrpPwrsj.js → ReportDialog-CJ_xU6u5.js} +1 -1
  82. package/dist/assets/{ScenarioPaymentMode-Dditcyu6.js → ScenarioPaymentMode-DWw8ADoG.js} +1 -1
  83. package/dist/assets/ScheduledTasks-BP1KMFRr.js +2 -0
  84. package/dist/assets/{SolanaWalletPickerDialog-NjOPpefz.js → SolanaWalletPickerDialog-3vO_6_ni.js} +1 -1
  85. package/dist/assets/{Status-DQVYFFQX.js → Status-BZf99OJ2.js} +1 -1
  86. package/dist/assets/{Subscribe-Cj4Szbr-.js → Subscribe-DYCREkW6.js} +1 -1
  87. package/dist/assets/{TabSwitcher-B3Yju8cg.js → TabSwitcher-egiFFb-J.js} +1 -1
  88. package/dist/assets/{Tts-BtMamcAE.js → Tts-qV8vFmKk.js} +1 -1
  89. package/dist/assets/UpdateMenuItem-CVUxFsJv.js +1 -0
  90. package/dist/assets/{VideoPlayer-DIU_Yl5w.js → VideoPlayer-BhdFI_Dl.js} +1 -1
  91. package/dist/assets/{VideoPreview-m5pwTNSo.js → VideoPreview-Di22AVT5.js} +1 -1
  92. package/dist/assets/{_Uint8Array-XQBxN0L-.js → _Uint8Array-BXRa8Abd.js} +1 -1
  93. package/dist/assets/{_baseClone-U7fnZamc.js → _baseClone-CwnTO9zo.js} +1 -1
  94. package/dist/assets/{_baseIteratee-DLPcqXeW.js → _baseIteratee-h7hu4lGG.js} +1 -1
  95. package/dist/assets/{_initCloneObject-CSzorZ33.js → _initCloneObject-C7qZIuLC.js} +1 -1
  96. package/dist/assets/arrow-down-Dl3wkdCw.js +1 -0
  97. package/dist/assets/{arrow-down-wide-narrow-BU-h_ZGI.js → arrow-down-wide-narrow-CgYjJvXS.js} +1 -1
  98. package/dist/assets/arrow-left-BwR8tLDB.js +1 -0
  99. package/dist/assets/arrow-right-hr8UK8a-.js +1 -0
  100. package/dist/assets/arrow-up-BbHwHFgn.js +1 -0
  101. package/dist/assets/{authorizeFlow-B10BWgqr.js → authorizeFlow-ao43McEv.js} +1 -1
  102. package/dist/assets/{basic-B3ybywIA.js → basic-C4QDBl8P.js} +1 -1
  103. package/dist/assets/{book-open-AHc5A1DO.js → book-open-Bab7YcIv.js} +1 -1
  104. package/dist/assets/{box-CsGTfkYY.js → box-BJ5AJ81R.js} +1 -1
  105. package/dist/assets/{boxes-Dq-QtNOr.js → boxes-BoLp7N6F.js} +1 -1
  106. package/dist/assets/{brain-Cyy8oGsv.js → brain-NpLdGyBR.js} +1 -1
  107. package/dist/assets/{chart-no-axes-combined-B6v0YZUZ.js → chart-no-axes-combined-BY5zW6uj.js} +1 -1
  108. package/dist/assets/chat-B0DbmqER.js +1 -0
  109. package/dist/assets/chat-B9MNZfMB.js +1 -0
  110. package/dist/assets/chat-BRFnqipk.js +1 -0
  111. package/dist/assets/{chat-CFe6Fksh.js → chat-Bf5MEq2o.js} +1 -1
  112. package/dist/assets/chat-BiHqg5Ab.js +1 -0
  113. package/dist/assets/chat-BiJmGPHd.js +1 -0
  114. package/dist/assets/chat-BlqoMy6p.js +1 -0
  115. package/dist/assets/chat-Bo0q6dMk.js +1 -0
  116. package/dist/assets/chat-Bp4bJ5ON.js +1 -0
  117. package/dist/assets/chat-D4kIzkAu.js +1 -0
  118. package/dist/assets/chat-DLWrmh_g.js +1 -0
  119. package/dist/assets/chat-D_YuUInJ.js +1 -0
  120. package/dist/assets/chat-DfifUOrl.js +1 -0
  121. package/dist/assets/chat-DjBBplAm.js +1 -0
  122. package/dist/assets/chat-DlCgUG3t.js +1 -0
  123. package/dist/assets/chat-Dw33pY7W.js +1 -0
  124. package/dist/assets/chat-FkVggpRq.js +1 -0
  125. package/dist/assets/chat-ql1uQyGb.js +1 -0
  126. package/dist/assets/chat-vPkdn2jS.js +1 -0
  127. package/dist/assets/check-D8Lj0sM4.js +1 -0
  128. package/dist/assets/checkbox-DmqM9gFi.js +1 -0
  129. package/dist/assets/chevron-down-Benh5Cnm.js +1 -0
  130. package/dist/assets/chevron-right-BNQi5sER.js +1 -0
  131. package/dist/assets/circle-check-D89Edjsg.js +1 -0
  132. package/dist/assets/{circle-question-mark-BS9BIMcJ.js → circle-question-mark-D7VbGHAG.js} +1 -1
  133. package/dist/assets/{clipboard-list-DQw0IS2r.js → clipboard-list-BsoYJiST.js} +1 -1
  134. package/dist/assets/clock-0ZWwZ6xH.js +1 -0
  135. package/dist/assets/code-koBCRZ3n.js +1 -0
  136. package/dist/assets/codingBridge-2jZjSYGT.js +1 -0
  137. package/dist/assets/codingBridge-B0S_pFNE.js +1 -0
  138. package/dist/assets/codingBridge-BDEdzBFe.js +1 -0
  139. package/dist/assets/codingBridge-BHI0iozm.js +1 -0
  140. package/dist/assets/codingBridge-BOWR_lJQ.js +1 -0
  141. package/dist/assets/codingBridge-BbfAxNQS.js +1 -0
  142. package/dist/assets/codingBridge-C-7r6SDr.js +1 -0
  143. package/dist/assets/codingBridge-C0TmJx0P.js +1 -0
  144. package/dist/assets/codingBridge-C4w0uRt_.js +1 -0
  145. package/dist/assets/codingBridge-CWYAzcU4.js +1 -0
  146. package/dist/assets/codingBridge-CYD6uZWc.js +1 -0
  147. package/dist/assets/codingBridge-CmImNHXz.js +1 -0
  148. package/dist/assets/codingBridge-CmbX76zB.js +1 -0
  149. package/dist/assets/codingBridge-CyiyRM8R.js +2 -0
  150. package/dist/assets/codingBridge-DJxa2Ctr.js +1 -0
  151. package/dist/assets/codingBridge-DNaWsf8h.js +1 -0
  152. package/dist/assets/codingBridge-co3msHz2.js +1 -0
  153. package/dist/assets/codingBridge-pO1u-DNE.js +1 -0
  154. package/dist/assets/codingBridge-vJH_tqU-.js +1 -0
  155. package/dist/assets/codingBridgeNotify-Cit5W2zK.js +2 -0
  156. package/dist/assets/{coins-sQEhmMmi.js → coins-DbGgS-AR.js} +1 -1
  157. package/dist/assets/collapse-Cr16lHVf.js +1 -0
  158. package/dist/assets/{common-OHH4AAa6.js → common-1BuWg_Ck.js} +1 -1
  159. package/dist/assets/{common-B8bPfPQQ.js → common-9nCXGYVx.js} +1 -1
  160. package/dist/assets/{common-CqZRACxD.js → common-B-c9sxdB.js} +1 -1
  161. package/dist/assets/{common-DVs2Q2Id.js → common-B5oDmIry.js} +1 -1
  162. package/dist/assets/{common-CrpbH69_.js → common-BFJA3ieK.js} +1 -1
  163. package/dist/assets/{common-04BFI7g0.js → common-BKCz97Y2.js} +1 -1
  164. package/dist/assets/{common-fekX8pEE.js → common-BUVCx2e_.js} +1 -1
  165. package/dist/assets/{common-MEqIdFxY.js → common-Bg0zh9_g.js} +1 -1
  166. package/dist/assets/{common-CO531gVy.js → common-BlzM4u-K.js} +1 -1
  167. package/dist/assets/{common-DUW0I6RT.js → common-BsYNmdlc.js} +1 -1
  168. package/dist/assets/common-CFSDnaPx.js +1 -0
  169. package/dist/assets/{common-DLQVVlBO.js → common-CIkh1cBe.js} +1 -1
  170. package/dist/assets/common-Cj6O6oFE.js +1 -0
  171. package/dist/assets/{common--t549Ajy.js → common-DIkr6DUT.js} +1 -1
  172. package/dist/assets/{common-0Pxh5Sqo.js → common-DIrEHT0L.js} +1 -1
  173. package/dist/assets/{common-Cq3Rjlxn.js → common-DrrHfeAt.js} +1 -1
  174. package/dist/assets/{common-DXqzj5vp.js → common-Mi7Vx9F5.js} +1 -1
  175. package/dist/assets/{common-H3S9nltR.js → common-t5cLjCgd.js} +1 -1
  176. package/dist/assets/constants-DlrPFkyM.js +1 -0
  177. package/dist/assets/{copy-BMJmKdRm.js → copy-4zd7yf6i.js} +1 -1
  178. package/dist/assets/{createTaskActions-0vcmrbae.js → createTaskActions-Bz6VG3Uu.js} +1 -1
  179. package/dist/assets/{digitalhuman-CrUjtnjq.js → digitalhuman-CBnSepv2.js} +1 -1
  180. package/dist/assets/{dollar-sign-Ch19Mc3O.js → dollar-sign-D4SZZ1Oz.js} +1 -1
  181. package/dist/assets/{download-CaS0CDtS.js → download-BKhAyEyU.js} +1 -1
  182. package/dist/assets/drawer-CeDP7s5K.js +1 -0
  183. package/dist/assets/{dropdown-BmqWNn5C.js → dropdown-D3dFr0f-.js} +1 -1
  184. package/dist/assets/dropdown-DDlYx9KL.js +1 -0
  185. package/dist/assets/{ellipsis-94-IbTvv.js → ellipsis-DFMe7-sS.js} +1 -1
  186. package/dist/assets/{esm-CXhwUUhy.js → esm-BhQt2uuY.js} +2 -2
  187. package/dist/assets/esm-BryDLgGh.js +2 -0
  188. package/dist/assets/esm-CFDZBZw0.js +1 -0
  189. package/dist/assets/{external-link-CIiqy89S.js → external-link-C41sZeHD.js} +1 -1
  190. package/dist/assets/{eye-6IAElK9A.js → eye-CkaUg9f1.js} +1 -1
  191. package/dist/assets/{file-CSKmcycN.js → file-DO3yMR77.js} +1 -1
  192. package/dist/assets/file-output-DV-q7uLp.js +1 -0
  193. package/dist/assets/{file-text-lNxqVr2f.js → file-text-O5-3uk2y.js} +1 -1
  194. package/dist/assets/{fish-Da5CH8dM.js → fish-DFkJBKda.js} +1 -1
  195. package/dist/assets/{flux-C56Ory31.js → flux-HSRZouEZ.js} +1 -1
  196. package/dist/assets/focus-trap-DOoImtBk.js +1 -0
  197. package/dist/assets/{folder-ke_xg3C7.js → folder-BzA15WWq.js} +1 -1
  198. package/dist/assets/{form-BdKMEyCR.js → form-CyX1oj8q.js} +1 -1
  199. package/dist/assets/gauge-Btg3K-RF.js +1 -0
  200. package/dist/assets/{globe-By8Kr06B.js → globe-DhjDen2y.js} +1 -1
  201. package/dist/assets/{grokvideo-BNRzbT1h.js → grokvideo-xHnGTrRw.js} +1 -1
  202. package/dist/assets/{hailuo-BP4HM6x2.js → hailuo-V9lqP4zu.js} +1 -1
  203. package/dist/assets/{headphones-hjelpyQG.js → headphones-BZuEeWNP.js} +1 -1
  204. package/dist/assets/{history-95T3Uto4.js → history-BZwF1lGh.js} +1 -1
  205. package/dist/assets/{house-BrpGeMgH.js → house-B4mXOXPi.js} +1 -1
  206. package/dist/assets/{i18n-C4cbwxeO.js → i18n-CQJsUptL.js} +1 -1
  207. package/dist/assets/{image-Bu4OWHEk.js → image-DQI8T4FE.js} +1 -1
  208. package/dist/assets/{imageRequests-BHX1yf2J.js → imageRequests-BKbsl9tT.js} +1 -1
  209. package/dist/assets/{index-BIRoiZhq.css → index-Dfp2KQ3h.css} +1 -1
  210. package/dist/assets/index-tH-0CTCd.js +570 -0
  211. package/dist/assets/{index.es-BLOwFUyC.js → index.es-CGoOCnuB.js} +1 -1
  212. package/dist/assets/{info-Cn1kd3ze.js → info-CyK20dY7.js} +1 -1
  213. package/dist/assets/input-number-BSo_V5QG.js +1 -0
  214. package/dist/assets/isArrayLikeObject-NgGSp85h.js +1 -0
  215. package/dist/assets/{isEqual-DeO3PEnJ.js → isEqual-Cavtrhie.js} +1 -1
  216. package/dist/assets/{isPlainObject-CIQNj6g3.js → isPlainObject-B7E6s9en.js} +1 -1
  217. package/dist/assets/{key-round-CE5Us92r.js → key-round-xv63coWd.js} +1 -1
  218. package/dist/assets/{kling-BjNtcVfv.js → kling-BhpwBBma.js} +1 -1
  219. package/dist/assets/{languages-DTQy-sjm.js → languages-Dv63bUCX.js} +1 -1
  220. package/dist/assets/{laptop-DwdBdTN8.js → laptop-vnGjGvnv.js} +1 -1
  221. package/dist/assets/{lightbulb-ktW2J_Ra.js → lightbulb-BbPEWvR2.js} +1 -1
  222. package/dist/assets/{link-DVWCADV3.js → link-DeOW2gW6.js} +1 -1
  223. package/dist/assets/loader-circle-Dj1vDw3A.js +1 -0
  224. package/dist/assets/{lock-D3KZHl9z.js → lock-DG-dtJA5.js} +1 -1
  225. package/dist/assets/{luma-mcG5loov.js → luma-xxktCS08.js} +1 -1
  226. package/dist/assets/maestro-B-1hloPf.js +1 -0
  227. package/dist/assets/maestro-B-ysLyHN.js +1 -0
  228. package/dist/assets/maestro-BAKlHK2l.js +1 -0
  229. package/dist/assets/maestro-BEiCgQE7.js +1 -0
  230. package/dist/assets/maestro-BPxnqxKi.js +1 -0
  231. package/dist/assets/maestro-Bb7wedaB.js +1 -0
  232. package/dist/assets/maestro-COtZ3sXE.js +1 -0
  233. package/dist/assets/maestro-DHIGcqzf.js +1 -0
  234. package/dist/assets/maestro-DTWy38sr.js +1 -0
  235. package/dist/assets/maestro-DXNLj6ds.js +1 -0
  236. package/dist/assets/maestro-DajNhm9z.js +1 -0
  237. package/dist/assets/{maestro-BDHGRfa7.js → maestro-DhdiwESW.js} +1 -1
  238. package/dist/assets/maestro-Dksd_O3s.js +1 -0
  239. package/dist/assets/maestro-DmmFse7K.js +1 -0
  240. package/dist/assets/maestro-L0-bpOQh.js +1 -0
  241. package/dist/assets/{maestro-CjZZp1VS.js → maestro-OQeiA6f9.js} +1 -1
  242. package/dist/assets/maestro-cMeRLSo8.js +1 -0
  243. package/dist/assets/maestro-pJSHhZML.js +1 -0
  244. package/dist/assets/maestro-vnKwl33e.js +1 -0
  245. package/dist/assets/{maestroLanguages-DApMPNkq.js → maestroLanguages-Dj908WCy.js} +1 -1
  246. package/dist/assets/{mail-CmShYf9A.js → mail-C00bUMU0.js} +1 -1
  247. package/dist/assets/{message-circle-BAmKrZYT.js → message-circle-BvFoZuLn.js} +1 -1
  248. package/dist/assets/{mic-2rxcPjO4.js → mic-DTHGpwvU.js} +1 -1
  249. package/dist/assets/{midjourney-d4g7wMQA.js → midjourney-BfkVcl3d.js} +1 -1
  250. package/dist/assets/{minimax-CB7-A8rZ.js → minimax-6Nzhuvtu.js} +1 -1
  251. package/dist/assets/{mobileLocalExec-CVLPJ1KT.js → mobileLocalExec-DMA8aoKn.js} +2 -2
  252. package/dist/assets/{models-CqVJobW3.js → models-CwklOk8Z.js} +1 -1
  253. package/dist/assets/{monitor-CBaC1J9V.js → monitor-DG18MHGW.js} +1 -1
  254. package/dist/assets/{mouse-pointer-2-DwwwLGpY.js → mouse-pointer-2-O-LTXkT8.js} +1 -1
  255. package/dist/assets/music-2-D0K7pGRN.js +1 -0
  256. package/dist/assets/{nanobanana-c-GW-Gsh.js → nanobanana-Dcz3Mo5n.js} +1 -1
  257. package/dist/assets/{omni-B-h3uywU.js → omni-Cz2-bgqy.js} +1 -1
  258. package/dist/assets/{openaiimage-CY46CnOz.js → openaiimage-Ho15AY5K.js} +1 -1
  259. package/dist/assets/{pagination-CTI3tsb2.js → pagination-D4-HZqNr.js} +1 -1
  260. package/dist/assets/{pagination-DwQF0fIF.js → pagination-D_OLm_wK.js} +1 -1
  261. package/dist/assets/pagination-DaaFgNHt.js +1 -0
  262. package/dist/assets/{palette-D0_ywtiZ.js → palette-0KP0bnly.js} +1 -1
  263. package/dist/assets/{paperclip-Hp40wkGz.js → paperclip-BTSA40S7.js} +1 -1
  264. package/dist/assets/{pause-CdeVPtvN.js → pause-B-H8URPW.js} +1 -1
  265. package/dist/assets/{pencil-D7SGNeIp.js → pencil-BlBZvi0T.js} +1 -1
  266. package/dist/assets/{pika-C_02vBjA.js → pika-CRb3tq6g.js} +1 -1
  267. package/dist/assets/{pixverse-dBB2UV8b.js → pixverse-DEWC9AyS.js} +1 -1
  268. package/dist/assets/play-Cty_243Z.js +1 -0
  269. package/dist/assets/{plug-B-m662gi.js → plug-Cuc4dhkk.js} +1 -1
  270. package/dist/assets/plus-DpgRyCuN.js +1 -0
  271. package/dist/assets/{poivelle-D92o3N_P.js → poivelle-CqMX5N7q.js} +1 -1
  272. package/dist/assets/{popover-BhjpkeAT.js → popover-BkWCkkdT.js} +1 -1
  273. package/dist/assets/{producer-BrddV41C.js → producer-BdLv7STz.js} +1 -1
  274. package/dist/assets/{qrart-DHpoWJxn.js → qrart-ChekNCNW.js} +1 -1
  275. package/dist/assets/radio-DteyTHLj.js +1 -0
  276. package/dist/assets/{realtime-DgX0_CFp.js → realtime-BjMaVJbi.js} +1 -1
  277. package/dist/assets/{refresh-cw-Bfi117oJ.js → refresh-cw-B_FsN_SK.js} +1 -1
  278. package/dist/assets/rotate-ccw-Bq470u2n.js +1 -0
  279. package/dist/assets/rotate-cw-DCAZXvBL.js +1 -0
  280. package/dist/assets/{row-DQNf_Mdc.js → row-Da6HRJnU.js} +1 -1
  281. package/dist/assets/{scrollbar-3jGyy846.js → scrollbar-BhQr3aBa.js} +1 -1
  282. package/dist/assets/search-DLupBfkC.js +1 -0
  283. package/dist/assets/{seedance-DsCv0O4z.js → seedance-C_ENfYcZ.js} +1 -1
  284. package/dist/assets/{seedream-CBwFZJCI.js → seedream-C3hwz85l.js} +1 -1
  285. package/dist/assets/select-Cry04isu.js +1 -0
  286. package/dist/assets/{serp-Dkt1MCmw.js → serp-DU-Nw065.js} +1 -1
  287. package/dist/assets/{shield-CLUQ6FfT.js → shield-t9LMb1Xc.js} +1 -1
  288. package/dist/assets/{shuffle-DAgEGI5Q.js → shuffle-BHueKLH7.js} +1 -1
  289. package/dist/assets/slider-D4YS_zkQ.js +1 -0
  290. package/dist/assets/{solana-wallets-Bkigmm3Z.js → solana-wallets-V9p2h4AR.js} +2 -2
  291. package/dist/assets/{sora-BDDjNeaW.js → sora-D15j7uYZ.js} +1 -1
  292. package/dist/assets/{sparkles-BXbtdlSF.js → sparkles-BZs6lFj5.js} +1 -1
  293. package/dist/assets/square-CwIvTlwo.js +1 -0
  294. package/dist/assets/{store-DXdwfRcO.js → store-BsYZWBiJ.js} +1 -1
  295. package/dist/assets/{suno-B-0B6nZz.js → suno-CuDQjPtc.js} +1 -1
  296. package/dist/assets/switch-BwEZ0csi.js +1 -0
  297. package/dist/assets/table-BGQzT6EQ.js +1 -0
  298. package/dist/assets/tabs-0et25VV-.js +1 -0
  299. package/dist/assets/{tag-BuI27JPa.js → tag-BrlIVDgW.js} +1 -1
  300. package/dist/assets/terminal-tykgfl_r.js +1 -0
  301. package/dist/assets/time-picker-iek2pzFH.js +1 -0
  302. package/dist/assets/tooltip-DZp4IZF9.js +1 -0
  303. package/dist/assets/{trash-2-BKIKPGWW.js → trash-2-BKP--pJx.js} +1 -1
  304. package/dist/assets/{triangle-alert-CEanjpyj.js → triangle-alert-BWbRHVGQ.js} +1 -1
  305. package/dist/assets/{upload-BdHW3J4b.js → upload-a1-BMlZq.js} +1 -1
  306. package/dist/assets/{upload-Ga2zshQX.js → upload-uY7VeHmd.js} +1 -1
  307. package/dist/assets/{use-aria-DApzlmKf.js → use-aria-C2PoIbMN.js} +1 -1
  308. package/dist/assets/user-CLaNJtdg.js +1 -0
  309. package/dist/assets/{veo-BtP2801V.js → veo-zkl92u3y.js} +1 -1
  310. package/dist/assets/{video-Drlk0Z6y.js → video-DdyWbbXd.js} +1 -1
  311. package/dist/assets/vnode-DOQF_9Lu.js +1 -0
  312. package/dist/assets/{volume-2-Dlp7tiWr.js → volume-2-DG4VfLGb.js} +1 -1
  313. package/dist/assets/{wallet-CSDPevVZ.js → wallet-DdIsaOE1.js} +1 -1
  314. package/dist/assets/{wan-D0laRlUj.js → wan-D-jBb6GG.js} +1 -1
  315. package/dist/assets/{wand-sparkles-ZRv28T3f.js → wand-sparkles-Dz4k9kgj.js} +1 -1
  316. package/dist/assets/{web-CA09zAPP.js → web-5mbxIylY.js} +1 -1
  317. package/dist/assets/{web-BWtwxIsF.js → web-B_N4-ol2.js} +1 -1
  318. package/dist/assets/{web-9-Xyeu8i.js → web-DJTVFwmb.js} +1 -1
  319. package/dist/assets/{web-COIMgbLA.js → web-Ds-cqfQD.js} +1 -1
  320. package/dist/assets/{web-CFVemcUK.js → web-d6DcSxnt.js} +1 -1
  321. package/dist/assets/{webextrator-BhZ4ZjP-.js → webextrator-DzKMduar.js} +1 -1
  322. package/dist/assets/{wechat-B_xvylqk.js → wechat-BtElgAls.js} +1 -1
  323. package/dist/assets/{zap-BVjPPwT9.js → zap-BTTyJZ27.js} +1 -1
  324. package/dist/index.html +9 -10
  325. package/package.json +1 -1
  326. package/dist/assets/Index-BX4bKAbt.js +0 -1
  327. package/dist/assets/Index-Cs-bs_p6.js +0 -1
  328. package/dist/assets/Index-Csjh6cAh.js +0 -1
  329. package/dist/assets/Index-DMFbiTzd.css +0 -1
  330. package/dist/assets/Index-eDzs3c5-.js +0 -1
  331. package/dist/assets/ScheduledTasks-Bwsc8ArR.js +0 -2
  332. package/dist/assets/arrow-down-Dc_nKF6_.js +0 -1
  333. package/dist/assets/arrow-left-cYb2mmuP.js +0 -1
  334. package/dist/assets/arrow-right-DFpCtgw4.js +0 -1
  335. package/dist/assets/arrow-up-DJXNUFmX.js +0 -1
  336. package/dist/assets/avatar-CB17GO8n.js +0 -1
  337. package/dist/assets/chat-CLjz6JEm.js +0 -1
  338. package/dist/assets/chat-CXkcYUKq.js +0 -1
  339. package/dist/assets/chat-CcSpUgkY.js +0 -1
  340. package/dist/assets/chat-CgPWqT6E.js +0 -1
  341. package/dist/assets/chat-D91Hmjlb.js +0 -1
  342. package/dist/assets/chat-DEkZV9iK.js +0 -1
  343. package/dist/assets/chat-DIpceuMx.js +0 -1
  344. package/dist/assets/chat-DPB9kvDA.js +0 -1
  345. package/dist/assets/chat-DjqHq4_f.js +0 -1
  346. package/dist/assets/chat-DrKLvU2W.js +0 -1
  347. package/dist/assets/chat-Dtw60MWq.js +0 -1
  348. package/dist/assets/chat-ElsfXAuZ.js +0 -1
  349. package/dist/assets/chat-NA5rrX_r.js +0 -1
  350. package/dist/assets/chat-WG_nIFDy.js +0 -1
  351. package/dist/assets/chat-geiX4yJF.js +0 -1
  352. package/dist/assets/chat-hwzsraaF.js +0 -1
  353. package/dist/assets/chat-lMTbLC_k.js +0 -1
  354. package/dist/assets/chat-s_gscg0W.js +0 -1
  355. package/dist/assets/check-CzrQqhmS.js +0 -1
  356. package/dist/assets/checkbox-DXMDpaxv.js +0 -1
  357. package/dist/assets/chevron-down-TdRhb0u3.js +0 -1
  358. package/dist/assets/chevron-right-CRvECZCm.js +0 -1
  359. package/dist/assets/circle-check-D7hjV2PR.js +0 -1
  360. package/dist/assets/clock-TfK5B4Zb.js +0 -1
  361. package/dist/assets/code-Dau2Inmq.js +0 -1
  362. package/dist/assets/codingBridge-3C9vjgC1.js +0 -1
  363. package/dist/assets/codingBridge-9pHUdQjg.js +0 -1
  364. package/dist/assets/codingBridge-BMfn2JG7.js +0 -1
  365. package/dist/assets/codingBridge-BW-rhWIc.js +0 -1
  366. package/dist/assets/codingBridge-BY-gokeA.js +0 -1
  367. package/dist/assets/codingBridge-CGY-sU3w.js +0 -1
  368. package/dist/assets/codingBridge-Crh6mRO1.js +0 -1
  369. package/dist/assets/codingBridge-D7F_ji3T.js +0 -1
  370. package/dist/assets/codingBridge-DGjbu3uQ.js +0 -1
  371. package/dist/assets/codingBridge-DMWnG1DU.js +0 -2
  372. package/dist/assets/codingBridge-DMiY2VvN.js +0 -1
  373. package/dist/assets/codingBridge-DZNLbOjo.js +0 -1
  374. package/dist/assets/codingBridge-DgC2kZpa.js +0 -1
  375. package/dist/assets/codingBridge-Lx_Ad7Bi.js +0 -1
  376. package/dist/assets/codingBridge-RPB_6mZR.js +0 -1
  377. package/dist/assets/codingBridge-TPMRNn8h.js +0 -1
  378. package/dist/assets/codingBridge-VV5cmxye.js +0 -1
  379. package/dist/assets/codingBridge-YP6TW3Qq.js +0 -1
  380. package/dist/assets/codingBridge-ibBC9ffL.js +0 -1
  381. package/dist/assets/codingBridgeNotify-8RQfZIz9.js +0 -2
  382. package/dist/assets/collapse-P2dnu9lT.js +0 -1
  383. package/dist/assets/common-DH6tW-B7.js +0 -1
  384. package/dist/assets/common-MJ8wamRJ.js +0 -1
  385. package/dist/assets/constants-BHt-rxvE.js +0 -1
  386. package/dist/assets/drawer-DJdzJAMX.js +0 -1
  387. package/dist/assets/dropdown-DY0sjU-2.js +0 -1
  388. package/dist/assets/esm-BYVD4tn-.js +0 -2
  389. package/dist/assets/esm-D0gUFRg8.js +0 -1
  390. package/dist/assets/event-BGnHezxC.js +0 -1
  391. package/dist/assets/file-output-CmAxEQgY.js +0 -1
  392. package/dist/assets/gauge-LVllTRt3.js +0 -1
  393. package/dist/assets/index-Dj-lkoyb.js +0 -570
  394. package/dist/assets/input-number-fuqReC6J.js +0 -1
  395. package/dist/assets/isArrayLikeObject-VRCqVaiT.js +0 -1
  396. package/dist/assets/loader-circle-CDGKLI7L.js +0 -1
  397. package/dist/assets/maestro-Bj7fRENH.js +0 -1
  398. package/dist/assets/maestro-C80WZXWw.js +0 -1
  399. package/dist/assets/maestro-CJPbvoCo.js +0 -1
  400. package/dist/assets/maestro-CL8DpOfW.js +0 -1
  401. package/dist/assets/maestro-CMFqPImS.js +0 -1
  402. package/dist/assets/maestro-CN6iJtNs.js +0 -1
  403. package/dist/assets/maestro-COY5ASUm.js +0 -1
  404. package/dist/assets/maestro-Cdra9265.js +0 -1
  405. package/dist/assets/maestro-Cfbzr2SS.js +0 -1
  406. package/dist/assets/maestro-Cw3mik-_.js +0 -1
  407. package/dist/assets/maestro-D6ytclOf.js +0 -1
  408. package/dist/assets/maestro-DiEXatXh.js +0 -1
  409. package/dist/assets/maestro-Dl4SVvCd.js +0 -1
  410. package/dist/assets/maestro-DxCAhS9A.js +0 -1
  411. package/dist/assets/maestro-Zo7XUzFN.js +0 -1
  412. package/dist/assets/maestro-dJh62mzN.js +0 -1
  413. package/dist/assets/maestro-r3LnNeXH.js +0 -1
  414. package/dist/assets/music-2-BS7mHgMb.js +0 -1
  415. package/dist/assets/pagination-BMLf2b77.js +0 -1
  416. package/dist/assets/play-BmYbhXYA.js +0 -1
  417. package/dist/assets/plus-CHwj8bVW.js +0 -1
  418. package/dist/assets/radio-BNhFzeBO.js +0 -1
  419. package/dist/assets/raf-BbgJq-wu.js +0 -1
  420. package/dist/assets/rotate-ccw-BcaY4nEP.js +0 -1
  421. package/dist/assets/rotate-cw-DbPeNcQK.js +0 -1
  422. package/dist/assets/scroll-kDH1KTep.js +0 -1
  423. package/dist/assets/search-CflweGQD.js +0 -1
  424. package/dist/assets/select-wY9TwNLt.js +0 -1
  425. package/dist/assets/slider-CAtCd8J4.js +0 -1
  426. package/dist/assets/square-fHnwFV4i.js +0 -1
  427. package/dist/assets/switch-8cXwRWIx.js +0 -1
  428. package/dist/assets/table-CuANolyy.js +0 -1
  429. package/dist/assets/tabs-BJDTXj1f.js +0 -1
  430. package/dist/assets/terminal-CRrcKitT.js +0 -1
  431. package/dist/assets/time-picker-CYu5_pex.js +0 -1
  432. package/dist/assets/tooltip-PxOz6ppS.js +0 -1
  433. package/dist/assets/user-B8owVPHo.js +0 -1
  434. package/dist/assets/vnode-B_FEx-YD.js +0 -1
@@ -1 +0,0 @@
1
- import"./rolldown-runtime--c01j_DQ.js";import{A as e,C as t,Gt as n,I as r,Jt as i,L as a,M as o,N as s,S as c,T as l,at as u,ht as d,it as f,j as p,mt as m,ot as h,rt as g,st as _,tt as v,z as y}from"./vendor-chart-Dw-P17PN.js";import{t as b}from"./upload-Ga2zshQX.js";import{h as x,v as S}from"./models-CqVJobW3.js";import{t as C}from"./checkbox-DXMDpaxv.js";import{t as w}from"./drawer-DJdzJAMX.js";import{n as T,r as E,t as D}from"./dropdown-DY0sjU-2.js";import{t as O}from"./popover-BhjpkeAT.js";import{n as ee,t as te}from"./skeleton-Dj_a_iIP.js";import{t as ne}from"./arrow-right-DFpCtgw4.js";import{t as k}from"./arrow-up-DJXNUFmX.js";import{t as re}from"./brain-Cyy8oGsv.js";import{t as A}from"./check-CzrQqhmS.js";import{t as ie}from"./chevron-down-TdRhb0u3.js";import{t as ae}from"./clipboard-list-DQw0IS2r.js";import{t as j}from"./code-Dau2Inmq.js";import{t as M}from"./ellipsis-94-IbTvv.js";import{t as oe}from"./eye-6IAElK9A.js";import{t as se}from"./file-text-lNxqVr2f.js";import{t as N}from"./file-CSKmcycN.js";import{t as P}from"./folder-ke_xg3C7.js";import{t as F}from"./gauge-LVllTRt3.js";import{t as I}from"./history-95T3Uto4.js";import{t as L}from"./info-Cn1kd3ze.js";import{t as R}from"./laptop-DwdBdTN8.js";import{t as ce}from"./link-DVWCADV3.js";import{t as z}from"./loader-circle-CDGKLI7L.js";import{t as B}from"./monitor-CBaC1J9V.js";import{t as le}from"./paperclip-Hp40wkGz.js";import{t as V}from"./pencil-D7SGNeIp.js";import{t as H}from"./plus-CHwj8bVW.js";import{t as U}from"./rotate-cw-DbPeNcQK.js";import{t as ue}from"./search-CflweGQD.js";import{t as de}from"./shield-CLUQ6FfT.js";import{t as fe}from"./square-fHnwFV4i.js";import{t as pe}from"./terminal-CRrcKitT.js";import{t as me}from"./trash-2-BKIKPGWW.js";import"./constants-BHt-rxvE.js";import{Ba as W,Ca as G,Ma as K,O as q,_a as J,ga as Y,ia as he,nn as ge,on as _e,pa as ve,tn as ye,va as be}from"./index-Dj-lkoyb.js";import"./vendor-highlight-BHrfT4-E.js";import{t as xe}from"./CopyToClipboard-CGlohic3.js";import{t as Se}from"./VueMarkdown-CiiRjbWs.js";import{t as Ce}from"./AskUserQuestionCard-79Jwtdnd.js";import{s as we,t as Te}from"./codingBridgeNotify-8RQfZIz9.js";import{t as Ee}from"./CodeSnippet-C54gxhZ6.js";var De=J(`bell-off`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742`,key:`178tsu`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05`,key:`1hqiys`}]]),Oe=J(`bell`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]),ke=J(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),Ae=y({name:`CodingBridgeNotificationToggle`,components:{LoadingIcon:z,NotificationIcon:Oe,NotificationOffIcon:De,ElButton:K},data(){return{enabled:!1,busy:!1}},computed:{supported(){return ve()||we()}},mounted(){this.enabled=!ve()&&Te()===`granted`},methods:{async onToggle(){this.busy=!0;try{if(this.enabled){await this.$store.dispatch(`codingBridge/disableNotifications`),this.enabled=!1,S.success(this.$t(`codingBridge.notify.disabled`));return}let e=await this.$store.dispatch(`codingBridge/enableNotifications`);e===`enabled`?(this.enabled=!0,S.success(this.$t(`codingBridge.notify.enabled`))):e===`denied`?S.warning(this.$t(`codingBridge.notify.denied`)):S.warning(this.$t(`codingBridge.notify.unsupported`))}catch{S.error(this.$t(`codingBridge.notify.failed`))}finally{this.busy=!1}}}});function je(e,t,n,r,i,a){let s=u(`loading-icon`),c=u(`notification-icon`),l=u(`notification-off-icon`),d=u(`el-button`);return e.supported?(v(),p(d,{key:0,circle:``,size:`small`,type:e.enabled?`primary`:`default`,title:e.enabled?e.$t(`codingBridge.notify.disable`):e.$t(`codingBridge.notify.enable`),disabled:e.busy,"aria-label":e.enabled?e.$t(`codingBridge.notify.disable`):e.$t(`codingBridge.notify.enable`),onClick:e.onToggle},{default:m(()=>[e.busy?(v(),p(s,{key:0,class:`adc-icon-spin`,size:`1em`,"aria-hidden":`true`,focusable:`false`})):e.enabled?(v(),p(c,{key:1,size:`1em`,"aria-hidden":`true`,focusable:`false`})):(v(),p(l,{key:2,size:`1em`,"aria-hidden":`true`,focusable:`false`}))]),_:1},8,[`type`,`title`,`disabled`,`aria-label`,`onClick`])):o(``,!0)}var Me=y({name:`CodingBridgeNodeList`,components:{AddIcon:H,DeleteIcon:me,DesktopIcon:B,DeveloperIcon:R,EditIcon:V,RedoIcon:U,ElButton:K,NotificationToggle:q(Ae,[[`render`,je]])},emits:[`pair`],computed:{nodes(){return this.$store.state.codingBridge?.nodes??[]},currentNodeId(){return this.$store.state.codingBridge?.currentNodeId},connection(){return this.$store.state.codingBridge?.connection??`disconnected`},connectionLabel(){return this.$t(`codingBridge.connection.${this.connection}`)},connectionDotClass(){switch(this.connection){case`connected`:return`bg-[var(--el-color-success)]`;case`connecting`:return`bg-[var(--el-color-warning)]`;case`error`:return`bg-[var(--el-color-danger)]`;default:return`bg-[var(--app-text-subtle)]`}}},methods:{onSelect(e){this.$store.dispatch(`codingBridge/selectNode`,e)},onRefresh(){this.$store.dispatch(`codingBridge/getNodes`)},async onRename(e){let t;try{t=((await be.prompt(this.$t(`codingBridge.nodeList.renamePrompt`),this.$t(`codingBridge.nodeList.rename`),{confirmButtonText:this.$t(`common.button.confirm`),cancelButtonText:this.$t(`common.button.cancel`),inputValue:e.name,inputValidator:e=>{let t=(e??``).trim();return t?[...t].length>64?this.$t(`codingBridge.nodeList.renameTooLong`,{max:64}):!0:this.$t(`codingBridge.nodeList.renameEmpty`)}})).value??``).trim()}catch{return}if(!(!t||t===e.name))try{await this.$store.dispatch(`codingBridge/renameNode`,{nodeId:e.node_id,name:t}),S.success(this.$t(`codingBridge.nodeList.renameSuccess`))}catch{S.error(this.$t(`codingBridge.nodeList.renameFailed`))}},async onDelete(e){try{await be.confirm(this.$t(`codingBridge.nodeList.removeConfirm`,{name:e.name}),this.$t(`codingBridge.nodeList.remove`),{confirmButtonText:this.$t(`codingBridge.nodeList.remove`),cancelButtonText:this.$t(`common.button.cancel`),type:`warning`})}catch{return}try{await this.$store.dispatch(`codingBridge/deleteNode`,e.node_id),S.success(this.$t(`codingBridge.nodeList.removeSuccess`))}catch{S.error(this.$t(`codingBridge.nodeList.removeFailed`))}}}}),Ne={class:`node-list flex flex-col h-full bg-[var(--app-sidebar-bg)] border-r border-[var(--app-border-subtle)]`},Pe={class:`flex items-center justify-between px-4 py-3 border-b border-[var(--app-border-subtle)]`},Fe={class:`flex items-center gap-2 font-medium`},Ie={class:`flex items-center gap-1`},Le={class:`flex items-center gap-2 px-4 py-2 text-xs border-b border-[var(--app-border-subtle)]`},Re={class:`text-[var(--app-text-subtle)]`},ze={class:`flex-1 overflow-y-auto`},Be={key:0,class:`p-6 text-center text-sm text-[var(--app-text-subtle)]`},Ve={class:`mb-3`},He={key:1,class:`list-none m-0 p-0`},Ue=[`onClick`],We={class:`flex-1 min-w-0`},Ge={class:`flex items-center gap-2`},Ke={class:`truncate font-medium`},qe=[`title`],Je={class:`text-xs text-[var(--app-text-subtle)] truncate`};function Ye(o,c,d,f,p,h){let _=u(`developer-icon`),y=u(`notification-toggle`),b=u(`redo-icon`),x=u(`el-button`),S=u(`add-icon`),C=u(`desktop-icon`),w=u(`edit-icon`),T=u(`delete-icon`);return v(),s(`div`,Ne,[e(`div`,Pe,[e(`div`,Fe,[a(_,{size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,null,i(o.$t(`codingBridge.nodeList.title`)),1)]),e(`div`,Ie,[a(y),a(x,{circle:``,size:`small`,"aria-label":o.$t(`codingBridge.nodeList.refresh`),title:o.$t(`codingBridge.nodeList.refresh`),onClick:o.onRefresh},{default:m(()=>[a(b,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`aria-label`,`title`,`onClick`]),a(x,{type:`primary`,circle:``,size:`small`,"aria-label":o.$t(`codingBridge.nodeList.pair`),title:o.$t(`codingBridge.nodeList.pair`),onClick:c[0]||=e=>o.$emit(`pair`)},{default:m(()=>[a(S,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`aria-label`,`title`])])]),e(`div`,Le,[e(`span`,{class:n([`inline-block w-2 h-2 rounded-full`,o.connectionDotClass])},null,2),e(`span`,Re,i(o.connectionLabel),1)]),e(`div`,ze,[o.nodes.length?(v(),s(`ul`,He,[(v(!0),s(l,null,g(o.nodes,r=>(v(),s(`li`,{key:r.node_id,class:n([`group flex items-center gap-3 px-4 py-3 cursor-pointer border-b border-[var(--app-border-subtle)] hover:bg-[var(--app-content-bg)]`,{"bg-[var(--app-content-bg)]":r.node_id===o.currentNodeId}]),onClick:e=>o.onSelect(r.node_id)},[a(C,{class:`text-[var(--app-text-subtle)]`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`div`,We,[e(`div`,Ge,[e(`span`,Ke,i(r.name),1),e(`span`,{class:n([`inline-block w-2 h-2 rounded-full flex-none`,r.status===`online`?`bg-[var(--el-color-success)]`:`bg-[var(--app-text-subtle)]`]),title:r.status===`online`?o.$t(`codingBridge.status.online`):o.$t(`codingBridge.status.offline`)},null,10,qe)]),e(`div`,Je,i(r.status===`online`?o.$t(`codingBridge.status.online`):o.$t(`codingBridge.status.offline`)),1)]),a(x,{class:`node-action`,text:``,circle:``,size:`small`,"aria-label":o.$t(`codingBridge.nodeList.rename`),title:o.$t(`codingBridge.nodeList.rename`),onClick:t(e=>o.onRename(r),[`stop`])},{default:m(()=>[a(w,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`aria-label`,`title`,`onClick`]),a(x,{class:`node-action`,text:``,circle:``,size:`small`,"aria-label":o.$t(`codingBridge.nodeList.remove`),title:o.$t(`codingBridge.nodeList.remove`),onClick:t(e=>o.onDelete(r),[`stop`])},{default:m(()=>[a(T,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`aria-label`,`title`,`onClick`])],10,Ue))),128))])):(v(),s(`div`,Be,[e(`p`,Ve,i(o.$t(`codingBridge.nodeList.empty`)),1),a(x,{type:`primary`,round:``,size:`small`,onClick:c[1]||=e=>o.$emit(`pair`)},{default:m(()=>[a(S,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(o.$t(`codingBridge.nodeList.pairFirst`)),1)]),_:1})]))])])}var Xe=q(Me,[[`render`,Ye],[`__scopeId`,`data-v-37e3f542`]]),Ze=e=>{let t=e?.questions;return Array.isArray(t)&&t.length>0&&t.every(e=>e&&typeof e.question==`string`&&Array.isArray(e.options))},Qe=e=>e?(e.tool||``).toLowerCase()===`askuserquestion`?!0:Ze(e.input):!1,$e=e=>({questions:e.input?.questions??[]}),et=100,X=4e4,tt=12e3,nt=6e3,rt=50,it=200,Z=(e,t)=>{if(e.length<=t)return e;let n=((e.length-t)/1024).toFixed(1);return`${e.slice(0,t)}\n\n··· +${n} KB ···`},at=y({name:`CodingBridgeTranscriptItem`,directives:{highlight:_e},components:{CloseIcon:Y,ConfirmIcon:A,EditIcon:V,FileIcon:N,InfoIcon:L,VueMarkdown:Se,CodeSnippet:Ee,CopyToClipboard:xe},props:{event:{type:Object,required:!0},editable:{type:Boolean,default:!1}},emits:[`edit`],data(){return{renderedText:Z(this.event.text||``,X),streamTimer:0}},computed:{commandText(){let e=this.event.input;if(!e)return``;for(let t of[`command`,`cmd`,`script`]){let n=e[t];if(typeof n==`string`&&n.trim())return Z(n,nt)}return``},filePath(){let e=this.event.input;if(!e)return``;for(let t of[`file_path`,`filePath`,`path`,`notebook_path`,`filename`]){let n=e[t];if(typeof n==`string`&&n.trim())return n}return``},toolDescription(){let e=this.event.input?.description;return typeof e==`string`?e:``},toolIcon(){if(this.todoList.length)return ae;if(this.commandText)return pe;let e=(this.event.tool??``).toLowerCase();return/read|cat|view/.test(e)?se:/write|edit|create|update|insert/.test(e)?V:/grep|glob|search|find|list/.test(e)?ue:j},questionLines(){let e=(this.event.tool??``).toLowerCase(),t=this.event.input?.questions;return!(e===`askuserquestion`||Array.isArray(t))||!Array.isArray(t)?[]:t.filter(e=>e&&typeof e.question==`string`).map(e=>({header:typeof e.header==`string`?e.header:``,question:e.question}))},todoList(){let e=this.event.input?.todos;return!Array.isArray(e)||!(this.event.tool??``).toLowerCase().includes(`todo`)&&Object.keys(this.event.input??{}).filter(e=>e!==`todos`&&e!==`description`).length?[]:e.filter(e=>e&&typeof e.content==`string`).map(e=>({content:e.content,status:typeof e.status==`string`?e.status:`pending`,activeForm:typeof e.activeForm==`string`?e.activeForm:void 0}))},todoItems(){return this.todoList.slice(0,rt).map(e=>{let t=e.status===`in_progress`&&e.activeForm?e.activeForm:e.content,n=t.length>it?`${t.slice(0,it)}…`:t;return e.status===`completed`?{text:n,status:`completed`,statusLabel:this.$t(`codingBridge.transcript.todoCompleted`),icon:A,iconClass:`text-[var(--el-color-success)]`,textClass:`text-[var(--app-text-subtle)] line-through`}:e.status===`in_progress`?{text:n,status:`in_progress`,statusLabel:this.$t(`codingBridge.transcript.todoInProgress`),icon:z,iconClass:`text-[var(--el-color-primary)]`,textClass:`text-[var(--app-text)] font-medium`}:{text:n,status:`pending`,statusLabel:this.$t(`codingBridge.transcript.todoPending`),icon:fe,iconClass:`text-[var(--app-text-subtle)] opacity-60`,textClass:`text-[var(--app-text-subtle)]`}})},todoProgressLabel(){let e=this.todoList.filter(e=>e.status===`completed`).length;return this.$t(`codingBridge.transcript.todoProgress`,{done:e,total:this.todoList.length})},todoProgressId(){return`cb-todo-progress-${this.event.id}`},todoOverflow(){return Math.max(0,this.todoList.length-rt)},inputText(){let e=this.event.input;if(!e)return``;let t={};for(let[n,r]of Object.entries(e))n===`timeout`||n===`description`||(t[n]=r);if(Object.keys(t).length===0)return``;try{return Z(JSON.stringify(t,null,2),nt)}catch{return Z(String(e),nt)}},thinkingText(){return Z(this.event.text||``,X)},resultText(){let e=this.event.content;return typeof e==`string`&&e.length>0?e:`—`},resultDisplay(){return Z(this.resultText,tt)},resultLabel(){let e=[];return this.event.is_error?e.push(this.$t(`codingBridge.transcript.turnFailed`)):e.push(this.$t(`codingBridge.transcript.turnDone`)),typeof this.event.cost_usd==`number`&&this.event.cost_usd>0&&e.push(`$${this.event.cost_usd.toFixed(4)}`),e.join(` · `)},hasAttachments(){return!!this.event.attachments?.length},noticeText(){let e=this.event.subtype,t=this.event.command;if(t){if(e===`slash_unavailable`)return this.$t(`codingBridge.notice.slashUnavailable`,{command:t});if(e===`slash_codex_unsupported`)return this.$t(`codingBridge.notice.slashCodexUnsupported`,{command:t})}return this.event.text||``}},watch:{"event.text"(){this.scheduleRender()},"event.streaming"(e){e||this.flushRender()}},beforeUnmount(){this.streamTimer&&window.clearTimeout(this.streamTimer)},methods:{scheduleRender(){if(!this.event.streaming){this.flushRender();return}this.streamTimer||=window.setTimeout(()=>{this.streamTimer=0,this.renderedText=Z(this.event.text||``,X)},et)},flushRender(){this.streamTimer&&=(window.clearTimeout(this.streamTimer),0),this.renderedText=Z(this.event.text||``,X)}}}),ot={key:0,class:`group flex items-end justify-end gap-1.5`},st=[`title`,`aria-label`],ct={class:`max-w-[85%] rounded-lg px-3 py-2 bg-[var(--el-color-primary)] text-white whitespace-pre-wrap break-words`},lt=[`src`],ut=[`href`],dt=[`src`],ft={key:1,class:`flex h-9 w-9 items-center justify-center rounded bg-white/15`},pt={class:`min-w-0 truncate`},mt={key:2},ht={key:2,class:`whitespace-pre-wrap break-words italic text-[var(--app-text-subtle)] border-l-2 border-[var(--app-border-subtle)] pl-3`},gt={key:3,class:`overflow-hidden rounded-md bg-[var(--app-sidebar-bg)] border border-[var(--app-border-subtle)]`},_t={class:`flex items-center gap-2 px-2.5 py-1.5 font-medium text-[var(--app-text-subtle)]`},vt={key:0,class:`min-w-0 truncate text-xs font-normal opacity-70`},yt={key:0,class:`flex flex-col gap-1.5 px-2.5 pb-2`},bt={key:0,class:`font-medium text-[var(--app-text)]`},xt={class:`whitespace-pre-wrap break-words text-[var(--app-text-subtle)]`},St={key:1,class:`px-2.5 pb-2`},Ct=[`id`],wt=[`aria-labelledby`],Tt={class:`sr-only`},Et={key:0,class:`mt-1 text-xs text-[var(--app-text-subtle)]`},Dt={key:2,class:`px-2.5 pb-2`},Ot={key:3,class:`px-2.5 pb-2 font-mono text-xs break-all text-[var(--app-text-subtle)]`},kt={key:4,class:`px-2.5 pb-2`},At={key:0,class:`absolute right-1.5 top-1.5 z-10 rounded bg-[var(--app-content-bg)] px-1 opacity-0 transition-opacity group-hover:opacity-100 focus-within:opacity-100`},jt={key:5,class:`flex items-center gap-2 text-xs text-[var(--app-text-subtle)]`},Mt={key:6,class:`flex items-start gap-2 rounded-md bg-[var(--app-sidebar-bg)] border border-[var(--app-border-subtle)] text-[var(--app-text-subtle)] px-3 py-2 text-xs`},Nt={class:`whitespace-pre-wrap break-words`},Pt={key:7,class:`rounded-md bg-[var(--el-color-danger-light-9)] text-[var(--el-color-danger)] px-3 py-2 whitespace-pre-wrap break-words`};function Ft(t,r,c,f,m,y){let b=u(`edit-icon`),x=u(`file-icon`),S=u(`vue-markdown`),C=u(`code-snippet`),w=u(`copy-to-clipboard`),T=u(`close-icon`),E=u(`confirm-icon`),D=u(`info-icon`),O=h(`highlight`);return v(),s(`div`,{class:n([`transcript-item text-sm leading-relaxed`,`kind-${t.event.kind}`])},[t.event.kind===`prompt`?(v(),s(`div`,ot,[t.editable?(v(),s(`button`,{key:0,type:`button`,class:`cb-edit-btn opacity-0 transition-opacity group-hover:opacity-100 focus-visible:opacity-100`,title:t.$t(`codingBridge.session.editPrompt`),"aria-label":t.$t(`codingBridge.session.editPrompt`),onClick:r[0]||=e=>t.$emit(`edit`,t.event)},[a(b,{size:`1em`,"aria-hidden":`true`,focusable:`false`})],8,st)):o(``,!0),e(`div`,ct,[t.event.images&&t.event.images.length?(v(),s(`div`,{key:0,class:n([`flex flex-wrap gap-1.5`,{"mb-1.5":t.event.text||t.hasAttachments}])},[(v(!0),s(l,null,g(t.event.images,(e,t)=>(v(),s(`img`,{key:t,src:e,class:`w-16 h-16 rounded object-cover`,alt:``},null,8,lt))),128))],2)):o(``,!0),t.hasAttachments?(v(),s(`div`,{key:1,class:n([`flex flex-wrap gap-1.5`,{"mb-1.5":t.event.text}])},[(v(!0),s(l,null,g(t.event.attachments,(t,n)=>(v(),s(`a`,{key:`${t.url}-${n}`,href:t.url,target:`_blank`,rel:`noopener noreferrer`,class:`flex max-w-[220px] items-center gap-2 rounded-md bg-white/15 px-2 py-1.5 text-xs text-white hover:bg-white/20`},[t.type===`image`?(v(),s(`img`,{key:0,src:t.url,class:`h-9 w-9 rounded object-cover`,alt:``},null,8,dt)):(v(),s(`span`,ft,[a(x,{size:`1em`,"aria-hidden":`true`,focusable:`false`})])),e(`span`,pt,i(t.name||t.url),1)],8,ut))),128))],2)):o(``,!0),t.event.text?(v(),s(`span`,mt,i(t.event.text),1)):o(``,!0)])])):t.event.kind===`text`?(v(),s(`div`,{key:1,class:n([`cb-stream-text`,{"is-streaming":t.event.streaming}])},[d(a(S,{source:t.renderedText,class:`markdown-body bg-transparent text-[var(--app-text)]`},null,8,[`source`]),[[O]])],2)):t.event.kind===`thinking`?(v(),s(`div`,ht,i(t.thinkingText),1)):t.event.kind===`tool_use`?(v(),s(`div`,gt,[e(`div`,_t,[(v(),p(_(t.toolIcon),{class:`text-[var(--el-color-primary)]`,size:`1em`,"aria-hidden":`true`,focusable:`false`})),e(`span`,null,i(t.event.tool),1),t.toolDescription?(v(),s(`span`,vt,i(t.toolDescription),1)):o(``,!0)]),t.questionLines.length?(v(),s(`div`,yt,[(v(!0),s(l,null,g(t.questionLines,(t,n)=>(v(),s(`div`,{key:n,class:`rounded border border-[var(--app-border-subtle)] bg-[var(--app-content-bg)] px-2.5 py-1.5 text-xs`},[t.header?(v(),s(`div`,bt,i(t.header),1)):o(``,!0),e(`div`,xt,i(t.question),1)]))),128))])):t.todoItems.length?(v(),s(`div`,St,[e(`div`,{id:t.todoProgressId,class:`mb-1.5 text-xs text-[var(--app-text-subtle)]`},i(t.todoProgressLabel),9,Ct),e(`ul`,{class:`flex flex-col gap-1`,"aria-labelledby":t.todoProgressId},[(v(!0),s(l,null,g(t.todoItems,(t,r)=>(v(),s(`li`,{key:r,class:`flex items-start gap-2 text-xs`},[(v(),p(_(t.icon),{class:n([`mt-0.5 flex-none`,t.iconClass]),size:`1em`,"aria-hidden":`true`,focusable:`false`},null,8,[`class`])),e(`span`,Tt,i(t.statusLabel),1),e(`span`,{class:n([`min-w-0 break-words`,t.textClass])},i(t.text),3)]))),128))],8,wt),t.todoOverflow?(v(),s(`div`,Et,i(t.$t(`codingBridge.transcript.todoOverflow`,{count:t.todoOverflow})),1)):o(``,!0)])):t.commandText?(v(),s(`div`,Dt,[a(C,{code:t.commandText,lang:`bash`,copyable:``},null,8,[`code`])])):t.filePath?(v(),s(`div`,Ot,i(t.filePath),1)):t.inputText?(v(),s(`div`,kt,[a(C,{code:t.inputText,lang:`json`,copyable:``},null,8,[`code`])])):o(``,!0)])):t.event.kind===`tool_result`?(v(),s(`div`,{key:4,class:n([`group relative overflow-hidden rounded-md`,t.event.is_error?`bg-[var(--el-color-danger-light-9)]`:`bg-[var(--app-sidebar-bg)]`])},[t.event.content?(v(),s(`div`,At,[a(w,{content:t.resultText},null,8,[`content`])])):o(``,!0),e(`pre`,{class:n([`m-0 max-h-72 overflow-auto whitespace-pre-wrap break-words px-2.5 py-2 font-mono text-xs`,t.event.is_error?`text-[var(--el-color-danger)]`:`text-[var(--app-text-subtle)]`])},i(t.resultDisplay),3)],2)):t.event.kind===`result`?(v(),s(`div`,jt,[t.event.is_error?(v(),p(T,{key:0,size:`1em`,"aria-hidden":`true`,focusable:`false`})):(v(),p(E,{key:1,size:`1em`,"aria-hidden":`true`,focusable:`false`})),e(`span`,null,i(t.resultLabel),1)])):t.event.kind===`notice`?(v(),s(`div`,Mt,[a(D,{class:`mt-0.5 flex-none text-[var(--el-color-primary)]`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,Nt,i(t.noticeText),1)])):t.event.kind===`error`?(v(),s(`div`,Pt,i(t.event.text),1)):o(``,!0)],2)}var It=q(at,[[`render`,Ft],[`__scopeId`,`data-v-f71fa078`]]),Lt=`Pondering.Noodling.Conjuring.Brewing.Cooking.Crafting.Churning.Simmering.Percolating.Ruminating.Musing.Marinating.Synthesizing.Computing.Hatching.Forging.Vibing.Working.Thinking.Cogitating.Mulling.Stewing.Tinkering.Wrangling.Spinning.Reticulating.Manifesting.Deliberating`.split(`.`),Rt=[`思考中`,`酝酿中`,`沉思中`,`推敲中`,`构思中`,`计算中`,`琢磨中`,`捣鼓中`,`炼制中`,`召唤中`,`编织中`,`烹饪中`,`咀嚼中`,`盘算中`,`发酵中`,`运转中`,`冥想中`,`鼓捣中`,`熬制中`,`神游中`,`演算中`,`雕琢中`,`头脑风暴中`,`反复斟酌中`],zt=60,Bt=1500,Vt=28,Ht=y({name:`CodingBridgeThinkingIndicator`,components:{LoadingIcon:z},data(){return{display:``,elapsed:0,charIndex:0,phase:`typing`,currentWord:``,elapsedTimer:0,typeTimer:0}},computed:{words(){return this.$i18n.locale.startsWith(`zh`)?Rt:Lt}},mounted(){this.currentWord=this.pickWord(),this.elapsedTimer=window.setInterval(()=>{this.elapsed+=1},1e3),this.scheduleType(zt)},beforeUnmount(){window.clearInterval(this.elapsedTimer),window.clearTimeout(this.typeTimer)},methods:{pickWord(){let e=this.words;if(e.length<=1)return e[0]??``;let t=this.currentWord;for(;t===this.currentWord;)t=e[Math.floor(Math.random()*e.length)];return t},scheduleType(e){this.typeTimer=window.setTimeout(this.advance,e)},advance(){let e=this.currentWord;this.phase===`typing`?(this.charIndex+=1,this.display=e.slice(0,this.charIndex),this.charIndex>=e.length?(this.phase=`holding`,this.scheduleType(Bt)):this.scheduleType(zt)):this.phase===`holding`?(this.phase=`deleting`,this.scheduleType(Vt)):(--this.charIndex,this.display=e.slice(0,Math.max(0,this.charIndex)),this.charIndex<=0?(this.currentWord=this.pickWord(),this.phase=`typing`,this.scheduleType(zt)):this.scheduleType(Vt))}}}),Ut={class:`cb-thinking flex items-center gap-2 text-sm text-[var(--app-text-subtle)] py-1`},Wt={class:`cb-thinking__word`},Gt={class:`cb-thinking__elapsed tabular-nums opacity-60`};function Kt(t,n,o,c,l,d){let f=u(`loading-icon`);return v(),s(`div`,Ut,[a(f,{class:`cb-thinking__spinner adc-icon-spin text-[var(--el-color-primary)]`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,Wt,[r(i(t.display),1),n[0]||=e(`span`,{class:`cb-thinking__caret`},`▋`,-1)]),e(`span`,Gt,`(`+i(t.elapsed)+`s)`,1)])}var qt=q(Ht,[[`render`,Kt],[`__scopeId`,`data-v-ae116215`]]),Jt=y({name:`CodingBridgeComposerSettings`,components:{ElButton:K,ElDialog:G},props:{dialog:{type:Boolean,default:!1},open:{type:Boolean,default:!1}},emits:[`update:open`]}),Yt={key:0,class:`cb-settings-inline`},Xt={class:`cb-settings-rows`};function Zt(t,n,o,c,l,d){let h=u(`el-button`),g=u(`el-dialog`);return t.dialog?(v(),p(g,{key:1,"model-value":t.open,title:t.$t(`codingBridge.session.settings`),width:`min(420px, 92vw)`,"align-center":``,"append-to-body":``,class:`cb-settings-dialog`,"onUpdate:modelValue":n[1]||=e=>t.$emit(`update:open`,e)},{footer:m(()=>[a(h,{type:`primary`,round:``,onClick:n[0]||=e=>t.$emit(`update:open`,!1)},{default:m(()=>[r(i(t.$t(`common.button.close`)),1)]),_:1})]),default:m(()=>[e(`div`,Xt,[f(t.$slots,`default`,{},void 0,!0)])]),_:3},8,[`model-value`,`title`])):(v(),s(`div`,Yt,[f(t.$slots,`default`,{},void 0,!0)]))}var Qt=q(Jt,[[`render`,Zt],[`__scopeId`,`data-v-20aa7356`]]),$t=y({name:`CodingBridgeDirectoryDialog`,components:{ContinueIcon:ne,FileIcon:N,FolderIcon:P,RedoIcon:U,UpIcon:k,ElDialog:G,ElButton:K,ElInput:W},props:{visible:{type:Boolean,default:!1},initialPath:{type:String,default:``}},emits:[`update:visible`,`select`],data(){return{pathInput:``}},computed:{listing(){return this.$store.state.codingBridge?.directory},loading(){return this.$store.state.codingBridge?.directoryLoading===!0},directories(){return(this.listing?.entries??[]).filter(e=>e.type===`dir`)},files(){return(this.listing?.entries??[]).filter(e=>e.type===`file`)},isEmpty(){return!!this.listing&&!this.listing.error&&(this.listing.entries??[]).length===0}},watch:{"listing.path"(e){this.pathInput=e??``}},methods:{onOpen(){this.pathInput=this.initialPath||``,this.$store.dispatch(`codingBridge/browseDir`,this.initialPath||void 0)},goPath(){let e=this.pathInput.trim();e&&this.$store.dispatch(`codingBridge/browseDir`,e)},syncPathInput(){this.pathInput=this.listing?.path??``},onVisibleChange(e){this.$emit(`update:visible`,e),e||this.$store.dispatch(`codingBridge/clearDirectory`)},openDir(e){this.$store.dispatch(`codingBridge/browseDir`,e)},goParent(){this.listing?.parent&&this.$store.dispatch(`codingBridge/browseDir`,this.listing.parent)},refresh(){this.$store.dispatch(`codingBridge/browseDir`,this.listing?.path||this.initialPath||void 0)},chooseCurrent(){this.listing&&!this.listing.error&&(this.$emit(`select`,this.listing.path),this.onVisibleChange(!1))}}}),en={class:`flex flex-col gap-2`},tn={class:`flex items-center gap-2 min-w-0`},nn={class:`h-72 overflow-y-auto border border-[var(--app-border-subtle)] rounded-md divide-y divide-[var(--app-border-subtle)]`},rn={key:0,class:`h-full flex items-center justify-center text-sm text-[var(--app-text-subtle)]`},an={key:1,class:`h-full flex items-center justify-center text-sm text-[var(--el-color-danger)]`},on=[`onClick`],sn={class:`truncate`,dir:`ltr`},cn={class:`truncate`,dir:`ltr`},ln={key:0,class:`h-full flex items-center justify-center text-sm text-[var(--app-text-subtle)] py-8`},un={key:0,class:`text-[11px] text-[var(--app-text-subtle)] px-1`},dn={class:`flex items-center justify-end gap-2`};function fn(t,d,f,h,_,y){let b=u(`up-icon`),x=u(`el-button`),S=u(`continue-icon`),C=u(`el-input`),w=u(`redo-icon`),T=u(`folder-icon`),E=u(`file-icon`),D=u(`el-dialog`);return v(),p(D,{"model-value":t.visible,title:t.$t(`codingBridge.directory.title`),width:`520px`,"append-to-body":``,"onUpdate:modelValue":t.onVisibleChange,onOpen:t.onOpen},{footer:m(()=>[e(`div`,dn,[a(x,{round:``,onClick:d[1]||=e=>t.onVisibleChange(!1)},{default:m(()=>[r(i(t.$t(`common.button.cancel`)),1)]),_:1}),a(x,{type:`primary`,round:``,disabled:!t.listing||!!t.listing.error,onClick:t.chooseCurrent},{default:m(()=>[r(i(t.$t(`codingBridge.directory.choose`)),1)]),_:1},8,[`disabled`,`onClick`])])]),default:m(()=>[e(`div`,en,[e(`div`,tn,[a(x,{size:`small`,circle:``,disabled:!t.listing||!t.listing.parent||t.loading,title:t.$t(`codingBridge.directory.up`),"aria-label":t.$t(`codingBridge.directory.up`),onClick:t.goParent},{default:m(()=>[a(b,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`disabled`,`title`,`aria-label`,`onClick`]),a(C,{modelValue:t.pathInput,"onUpdate:modelValue":d[0]||=e=>t.pathInput=e,size:`small`,class:`flex-1 min-w-0`,dir:`ltr`,placeholder:t.$t(`codingBridge.directory.pathPlaceholder`),disabled:t.loading,onKeyup:c(t.goPath,[`enter`]),onBlur:t.syncPathInput},{append:m(()=>[a(x,{title:t.$t(`codingBridge.directory.go`),disabled:t.loading||!t.pathInput.trim(),"aria-label":t.$t(`codingBridge.directory.go`),onClick:t.goPath},{default:m(()=>[a(S,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`title`,`disabled`,`aria-label`,`onClick`])]),_:1},8,[`modelValue`,`placeholder`,`disabled`,`onKeyup`,`onBlur`]),a(x,{size:`small`,circle:``,disabled:t.loading,title:t.$t(`codingBridge.directory.refresh`),"aria-label":t.$t(`codingBridge.directory.refresh`),onClick:t.refresh},{default:m(()=>[a(w,{class:n({"adc-icon-spin":t.loading}),size:`1em`,"aria-hidden":`true`,focusable:`false`},null,8,[`class`])]),_:1},8,[`disabled`,`title`,`aria-label`,`onClick`])]),e(`div`,nn,[t.loading&&!t.listing?(v(),s(`div`,rn,i(t.$t(`codingBridge.directory.loading`)),1)):t.listing&&t.listing.error?(v(),s(`div`,an,i(t.listing.error),1)):(v(),s(l,{key:2},[(v(!0),s(l,null,g(t.directories,n=>(v(),s(`button`,{key:n.path,type:`button`,class:`w-full flex items-center gap-2 px-3 py-2 text-left text-sm hover:bg-[var(--app-content-hover-bg)]`,onClick:e=>t.openDir(n.path)},[a(T,{class:`text-[var(--el-color-warning)]`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,sn,i(n.name),1)],8,on))),128)),(v(!0),s(l,null,g(t.files,t=>(v(),s(`div`,{key:t.path,class:`w-full flex items-center gap-2 px-3 py-2 text-sm text-[var(--app-text-subtle)]`},[a(E,{size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,cn,i(t.name),1)]))),128)),t.isEmpty?(v(),s(`div`,ln,i(t.$t(`codingBridge.directory.empty`)),1)):o(``,!0)],64))]),t.listing&&t.listing.truncated?(v(),s(`p`,un,i(t.$t(`codingBridge.directory.truncated`)),1)):o(``,!0)])]),_:1},8,[`model-value`,`title`,`onUpdate:modelValue`,`onOpen`])}var pn=q($t,[[`render`,fn]]),mn=`data:image/svg+xml,%3csvg%20fill='%23D97757'%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eClaude%3c/title%3e%3cpath%20d='m4.7144%2015.9555%204.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608%201.5179.1032%202.2767.1578%201.6514.0972%202.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973%209.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686%201.9064%201.4754%202.4893%201.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335%206.6997%200l.9957.1336.419.3642.6192%201.4147%201.0018%202.2282%201.5543%203.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853%201.8517-.5586%202.9021-.3643%201.9429h.2125l.2429-.2429.9835-1.3053%201.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759%201.1293-.34%201.1657-1.0625%201.3478-.8804%201.1414-1.2628%201.7-.7893%201.36.0729.1093.1882-.0183%202.8535-.607%201.5421-.2794%201.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607%201.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929%201.0686%202.0035%201.8092%202.5075%202.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496%202.3436%203.5214.1214%201.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38%2017.959l-1.1414-1.9428-.1397.079-.674%207.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328%201.9672-2.1796%202.9446-1.7243%201.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889%202.386-3.0357%201.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385%204.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429%201.9064-1.3114Z'/%3e%3c/svg%3e`,hn=`data:image/svg+xml,%3csvg%20fill='%23000000'%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eOpenAI%3c/title%3e%3cpath%20d='M22.282%209.821a5.985%205.985%200%200%200-.516-4.91%206.046%206.046%200%200%200-6.51-2.9A6.065%206.065%200%200%200%204.981%204.18a5.985%205.985%200%200%200-3.998%202.9%206.046%206.046%200%200%200%20.743%207.097%205.98%205.98%200%200%200%20.51%204.911%206.051%206.051%200%200%200%206.515%202.9A5.985%205.985%200%200%200%2013.26%2024a6.056%206.056%200%200%200%205.772-4.206%205.99%205.99%200%200%200%203.997-2.9%206.056%206.056%200%200%200-.747-7.073zM13.26%2022.43a4.476%204.476%200%200%201-2.876-1.04l.141-.081%204.779-2.758a.795.795%200%200%200%20.392-.681v-6.737l2.02%201.168a.071.071%200%200%201%20.038.052v5.583a4.504%204.504%200%200%201-4.494%204.494zM3.6%2018.304a4.47%204.47%200%200%201-.535-3.014l.142.085%204.783%202.759a.771.771%200%200%200%20.78%200l5.843-3.369v2.332a.08.08%200%200%201-.033.062L9.74%2019.95a4.5%204.5%200%200%201-6.14-1.646zM2.34%207.896a4.485%204.485%200%200%201%202.366-1.973V11.6a.766.766%200%200%200%20.388.676l5.815%203.355-2.02%201.168a.076.076%200%200%201-.071%200l-4.83-2.786A4.504%204.504%200%200%201%202.34%207.872zm16.597%203.855l-5.833-3.387L15.119%207.2a.076.076%200%200%201%20.071%200l4.83%202.791a4.494%204.494%200%200%201-.676%208.105v-5.678a.79.79%200%200%200-.407-.667zm2.01-3.023l-.141-.085-4.774-2.782a.776.776%200%200%200-.785%200L9.409%209.23V6.897a.066.066%200%200%201%20.028-.061l4.83-2.787a4.5%204.5%200%200%201%206.68%204.66zm-12.64%204.135l-2.02-1.164a.08.08%200%200%201-.038-.057V6.075a4.5%204.5%200%200%201%207.375-3.453l-.142.08L8.704%205.46a.795.795%200%200%200-.393.681zm1.097-2.365l2.602-1.5%202.607%201.5v2.999l-2.597%201.5-2.607-1.5z'/%3e%3c/svg%3e`,gn=`data:image/svg+xml,%3csvg%20fill='%23000'%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eGitHub%20Copilot%3c/title%3e%3cpath%20d='M23.922%2016.997C23.061%2018.492%2018.063%2022.02%2012%2022.02%205.937%2022.02.939%2018.492.078%2016.997A.641.641%200%200%201%200%2016.741v-2.869a.883.883%200%200%201%20.053-.22c.372-.935%201.347-2.292%202.605-2.656.167-.429.414-1.055.644-1.517a10.098%2010.098%200%200%201-.052-1.086c0-1.331.282-2.499%201.132-3.368.397-.406.89-.717%201.474-.952C7.255%202.937%209.248%201.98%2011.978%201.98c2.731%200%204.767.957%206.166%202.093.584.235%201.077.546%201.474.952.85.869%201.132%202.037%201.132%203.368%200%20.368-.014.733-.052%201.086.23.462.477%201.088.644%201.517%201.258.364%202.233%201.721%202.605%202.656a.841.841%200%200%201%20.053.22v2.869a.641.641%200%200%201-.078.256Zm-11.75-5.992h-.344a4.359%204.359%200%200%201-.355.508c-.77.947-1.918%201.492-3.508%201.492-1.725%200-2.989-.359-3.782-1.259a2.137%202.137%200%200%201-.085-.104L4%2011.746v6.585c1.435.779%204.514%202.179%208%202.179%203.486%200%206.565-1.4%208-2.179v-6.585l-.098-.104s-.033.045-.085.104c-.793.9-2.057%201.259-3.782%201.259-1.59%200-2.738-.545-3.508-1.492a4.359%204.359%200%200%201-.355-.508Zm2.328%203.25c.549%200%201%20.451%201%201v2c0%20.549-.451%201-1%201-.549%200-1-.451-1-1v-2c0-.549.451-1%201-1Zm-5%200c.549%200%201%20.451%201%201v2c0%20.549-.451%201-1%201-.549%200-1-.451-1-1v-2c0-.549.451-1%201-1Zm3.313-6.185c.136%201.057.403%201.913.878%202.497.442.544%201.134.938%202.344.938%201.573%200%202.292-.337%202.657-.751.384-.435.558-1.15.558-2.361%200-1.14-.243-1.847-.705-2.319-.477-.488-1.319-.862-2.824-1.025-1.487-.161-2.192.138-2.533.529-.269.307-.437.808-.438%201.578v.021c0%20.265.021.562.063.893Zm-1.626%200c.042-.331.063-.628.063-.894v-.02c-.001-.77-.169-1.271-.438-1.578-.341-.391-1.046-.69-2.533-.529-1.505.163-2.347.537-2.824%201.025-.462.472-.705%201.179-.705%202.319%200%201.211.175%201.926.558%202.361.365.414%201.084.751%202.657.751%201.21%200%201.902-.394%202.344-.938.475-.584.742-1.44.878-2.497Z'/%3e%3c/svg%3e`,_n=50*1024*1024,Q=10,vn=60,yn=60,bn=80,xn={claude:{src:mn,invertOnDark:!1},codex:{src:hn,invertOnDark:!0},copilot:{src:gn,invertOnDark:!0}},Sn=y({name:`CodingBridgeSessionView`,components:{AddIcon:H,AiIcon:re,AttachmentIcon:le,CloseIcon:Y,CodeIcon:j,ConfirmIcon:A,DeveloperIcon:R,EditIcon:V,ExpandDownIcon:ie,FileIcon:N,FolderOpenIcon:ke,HistoryIcon:I,MoreIcon:M,PerformanceIcon:F,RedoIcon:U,SecurityIcon:de,StopIcon:fe,UpIcon:k,ViewIcon:oe,ElInput:W,ElButton:K,ElPopover:O,ElDropdown:D,ElDropdownMenu:E,ElDropdownItem:T,ElUpload:b,ElCheckbox:C,ElSkeleton:te,ElSkeletonItem:ee,TranscriptItem:It,ThinkingIndicator:qt,ComposerSettings:Qt,DirectoryDialog:pn,AskUserQuestionCard:Ce,CopyToClipboard:xe},mixins:[ge,ye],emits:[`history`,`devices`],data(){return{prompt:``,cwd:``,model:``,customModelDraft:``,permissionMode:`bypassPermissions`,provider:`claude`,effort:``,directoryVisible:!1,moreOpen:!1,mobileSettings:!1,settingsMql:void 0,slashMenuOpen:!1,slashActiveIndex:0,editingEventId:``,restoreCode:!1,attachmentFileList:[],uploadUrl:he()+`/api/v1/files/`,maxAttachments:Q,visibleCount:vn,pinnedToBottom:!0,scrollPending:!1,transcriptObserver:void 0,observedTranscript:void 0}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},currentNodeId(){return this.$store.state.codingBridge?.currentNodeId},lastComposer(){let e=this.currentNodeId;return(e?this.$store.state.codingBridge?.lastComposer?.[e]:void 0)??{}},currentNode(){return this.$store.state.codingBridge?.nodes?.find(e=>e.node_id===this.currentNodeId)},nodeOnline(){return this.currentNode?.status===`online`},currentSessionId(){return this.$store.state.codingBridge?.currentSessionId},currentSession(){let e=this.currentSessionId;return e?this.$store.state.codingBridge?.sessions?.[e]:void 0},events(){let e=this.currentSessionId;return e?this.$store.state.codingBridge?.events?.[e]??[]:[]},eventCount(){return this.events.length},visibleEvents(){let e=this.events;return e.length>this.visibleCount?e.slice(-this.visibleCount):e},hiddenEventCount(){return Math.max(0,this.events.length-this.visibleCount)},historyLoading(){return this.$store.state.codingBridge?.status?.getHistoryDetail===x.Request},pendingQuestion(){let e=this.currentSessionId;if(!e)return;let t=(this.$store.state.codingBridge?.permissions??[]).find(t=>t.session_id===e&&Qe(t));return t?{request_id:t.request_id,payload:$e(t)}:void 0},isNewSession(){return!this.currentSessionId},canPickCwd(){return this.isNewSession||!this.currentSession?.started},readonly(){return this.currentSession?.readonly===!0},resumeHint(){return!!this.currentSession?.provider&&!this.currentSession?.started&&!this.readonly},replayLabel(){return!this.currentSession?.provider||this.currentSession?.started?``:this.currentSession.provider===`codex`?this.$t(`codingBridge.history.codexLabel`):this.currentSession.provider===`claude`?this.$t(`codingBridge.history.claudeLabel`):this.providerName(this.currentSession.provider)},running(){let e=this.currentSession?.status;return e===`running`||e===`starting`},thinking(){return this.running&&!this.pendingQuestion},connected(){return this.$store.state.codingBridge?.connection===`connected`},canRetry(){return this.currentSession?.status===`error`&&!this.readonly&&this.connected&&this.nodeOnline&&this.events.some(e=>e.kind===`prompt`)},attachments(){return(this.attachmentFileList||[]).map(e=>{let t=e.response?.file_url||(typeof e.url==`string`&&!e.url.startsWith(`blob:`)?e.url:``);if(!t)return;let n=e.raw,r=n?.type||e.mime_type||``;return{type:this.isImageAttachment(e)?`image`:`file`,url:t,name:e.name,mime_type:r,size:n?.size}}).filter(e=>!!e)},uploadingAttachments(){return(this.attachmentFileList||[]).some(e=>this.isAttachmentUploading(e))},canSend(){return(!!this.prompt.trim()||this.attachments.length>0)&&!this.uploadingAttachments&&this.connected&&this.nodeOnline},composerHint(){return this.uploadingAttachments?this.$t(`codingBridge.session.uploadingAttachment`):this.providerCaps.length&&!this.currentProviderAvailable?this.$t(`codingBridge.session.providerUnavailableHint`,{name:this.providerName(this.provider)}):this.resumeHint?this.$t(`codingBridge.history.resumeHint`):this.$t(`codingBridge.session.enterHint`)},nodeCapabilities(){let e=this.currentNodeId;return e?this.$store.state.codingBridge?.capabilities?.[e]:void 0},providerCaps(){return this.nodeCapabilities?.providers??[]},currentProviderCap(){return this.providerCaps.find(e=>e.name===this.provider)},canEdit(){return this.readonly?!1:!!this.providerCaps.find(e=>e.name===this.activeProviderName)?.supports_edit},canRestoreCode(){return!!this.providerCaps.find(e=>e.name===this.activeProviderName)?.supports_code_restore},editingActive(){return!!this.editingEventId},currentProviderAvailable(){return this.providerCaps.length?this.currentProviderCap?.available!==!1:!0},providerOptions(){return this.providerCaps.length?this.providerCaps.map(e=>({value:e.name,label:e.label,available:e.available!==!1})):[{label:this.$t(`codingBridge.session.providerClaude`),value:`claude`,available:!0},{label:this.$t(`codingBridge.session.providerCodex`),value:`codex`,available:!0},{label:`GitHub Copilot`,value:`copilot`,available:!0}]},modelOptions(){return this.currentProviderCap?.models??[]},allowCustomModel(){return this.currentProviderCap?.allow_custom_model??!0},effortOptions(){let e=this.currentProviderCap?.efforts;return(e&&e.length?e:[``]).map(e=>({value:e,label:this.effortLabel(e)}))},permissionModeOptions(){let e=this.currentProviderCap?.permission_modes;return(e&&e.length?e:[`default`,`acceptEdits`,`plan`,`bypassPermissions`]).map(e=>({value:e,label:this.permissionModeLabel(e)}))},sessionMeta(){let e=this.currentSession;if(!e)return``;let t=[];return e.provider&&t.push(this.providerName(e.provider)),e.cwd&&t.push(e.cwd),e.model&&t.push(e.model),t.join(` · `)},activeProviderName(){return this.currentSession?.provider||this.provider},slashCommands(){let e=this.activeProviderName;return this.providerCaps.find(t=>t.name===e)?.commands??[]},slashMatches(){let e=this.prompt.match(/^\/(\S*)$/);if(!e)return[];let t=e[1].toLowerCase();return this.slashCommands.filter(e=>[e.name,...e.aliases??[]].some(e=>e.toLowerCase().startsWith(t)))},slashMenuVisible(){return this.slashMenuOpen&&this.slashMatches.length>0},diagnostics(){let e=[];return this.currentNodeId&&e.push({label:this.$t(`codingBridge.session.nodeId`),value:this.currentNodeId}),this.currentSessionId&&e.push({label:this.$t(`codingBridge.session.sessionId`),value:this.currentSessionId}),this.currentSession?.trace_id&&e.push({label:this.$t(`codingBridge.session.traceId`),value:this.currentSession.trace_id}),e}},watch:{eventCount(){this.scrollToBottom()},pendingQuestion(){this.scrollToBottom()},thinking(){this.scrollToBottom()},currentSessionId(){this.pinnedToBottom=!0,this.scrollToBottom(),this.visibleCount=vn,this.editingEventId=``,this.restoreCode=!1,this.syncSessionSettings()},currentNodeId(){this.requestCapabilities(),this.isNewSession&&this.restoreComposerPrefs()},providerCaps(){if(!this.isNewSession||!this.providerCaps.length)return;let e=this.providerCaps.find(e=>e.name===this.provider);if(!e||e.available===!1){let e=this.providerCaps.find(e=>e.available!==!1);e&&(this.provider=e.name)}},provider(){this.isNewSession&&(this.model=``,this.effort=``)},prompt(e){this.slashMenuOpen=/^\/\S*$/.test(e),this.slashActiveIndex>=this.slashMatches.length&&(this.slashActiveIndex=0)}},mounted(){this.requestCapabilities(),this.syncSessionSettings(),this.scrollToBottom(),this.observeTranscript(),this.watchSettingsBreakpoint()},updated(){this.observeTranscript()},beforeUnmount(){this.transcriptObserver?.disconnect(),this.transcriptObserver=void 0,this.observedTranscript=void 0,this.settingsMql?.removeEventListener(`change`,this.onSettingsBreakpoint),this.settingsMql=void 0},methods:{watchSettingsBreakpoint(){typeof window>`u`||!window.matchMedia||(this.settingsMql=window.matchMedia(`(max-width: 767px)`),this.mobileSettings=this.settingsMql.matches,this.settingsMql.addEventListener(`change`,this.onSettingsBreakpoint))},onSettingsBreakpoint(e){this.mobileSettings=e.matches,e.matches||(this.moreOpen=!1)},requestCapabilities(){this.currentNodeId&&this.$store.dispatch(`codingBridge/getCapabilities`,this.currentNodeId)},effortLabel(e){let t={"":`codingBridge.session.effortDefault`,low:`codingBridge.session.effortLow`,medium:`codingBridge.session.effortMedium`,high:`codingBridge.session.effortHigh`,max:`codingBridge.session.effortMax`}[e];return t?this.$t(t):e},permissionModeLabel(e){let t={default:`codingBridge.session.permissionModeDefault`,acceptEdits:`codingBridge.session.permissionModeAcceptEdits`,plan:`codingBridge.session.permissionModePlan`,bypassPermissions:`codingBridge.session.permissionModeBypass`}[e];return t?this.$t(t):e},providerName(e){let t=this.providerCaps.find(t=>t.name===e);return t?t.label:{claude:this.$t(`codingBridge.session.providerClaude`),codex:this.$t(`codingBridge.session.providerCodex`),copilot:`GitHub Copilot`}[e]??e},providerIcon(e){return xn[e]??null},syncSessionSettings(){let e=this.currentSession;if(!e){this.restoreComposerPrefs();return}let t=this.lastComposer;e.provider&&(this.provider=e.provider),this.model=e.model??``,this.customModelDraft=``,this.cwd=e.cwd??t.cwd??``,this.effort=e.effort??t.effort??``,this.permissionMode=e.permission_mode??t.permissionMode??`bypassPermissions`},selectModel(e){this.model=e,this.customModelDraft=``,this.closeModelPopover()},applyCustomModel(){let e=this.customModelDraft.trim();e&&(this.model=e,this.customModelDraft=``,this.closeModelPopover())},closeModelPopover(){this.$refs.modelPopover?.hide?.()},onComposerEnter(e){let t=e;t.isComposing||t.keyCode===229||t.shiftKey||t.ctrlKey||t.metaKey||t.altKey||(t.preventDefault(),this.onSend())},onComposerKeydown(e){let t=e;if(this.slashMenuVisible&&!t.isComposing&&t.keyCode!==229){if(t.key===`ArrowDown`){t.preventDefault(),this.moveSlash(1);return}if(t.key===`ArrowUp`){t.preventDefault(),this.moveSlash(-1);return}if(t.key===`Escape`){t.preventDefault(),this.slashMenuOpen=!1;return}if(t.key===`Tab`||t.key===`Enter`&&!t.shiftKey){t.preventDefault(),this.applySlash(this.slashMatches[this.slashActiveIndex]);return}}t.key===`Enter`&&this.onComposerEnter(t)},moveSlash(e){let t=this.slashMatches.length;t&&(this.slashActiveIndex=(this.slashActiveIndex+e+t)%t,this.$nextTick(()=>{(this.$el?.querySelector?.(`.cb-slash-menu__item--active`))?.scrollIntoView({block:`nearest`})}))},applySlash(e){e&&(this.prompt=`/${e.name} `,this.slashMenuOpen=!1,this.slashActiveIndex=0)},onSend(){if(!this.canSend)return;let e=this.attachments;if(this.editingEventId){this.$store.dispatch(`codingBridge/editPrompt`,{eventId:this.editingEventId,prompt:this.prompt,model:this.model,permissionMode:this.permissionMode,effort:this.effort,attachments:e.length?e:void 0,restoreCode:this.restoreCode}),this.resetComposer();return}this.currentNodeId&&this.$store.commit(`codingBridge/setLastComposer`,{node_id:this.currentNodeId,prefs:{cwd:this.cwd,provider:this.provider,model:this.model,permissionMode:this.permissionMode,effort:this.effort}}),this.$store.dispatch(`codingBridge/sendPrompt`,{prompt:this.prompt,cwd:this.cwd,model:this.model,permissionMode:this.permissionMode,provider:this.provider,effort:this.effort,attachments:e.length?e:void 0}),this.resetComposer()},resetComposer(){this.prompt=``,this.slashMenuOpen=!1,this.slashActiveIndex=0,this.editingEventId=``,this.restoreCode=!1,this.clearAttachments()},cancelEdit(){this.resetComposer()},onAnswerQuestion(e){this.$store.dispatch(`codingBridge/answerQuestion`,{request_id:e.tool_use_id,output:e.output})},onSkipQuestion(e){this.$store.dispatch(`codingBridge/resolvePermission`,{request_id:e.tool_use_id,decision:`deny`})},beforeAttachmentUpload(e){return this.attachmentFileList.length>=Q?(S.warning(this.$t(`codingBridge.session.attachmentLimit`,{count:Q})),!1):e.size>_n?(S.warning(this.$t(`codingBridge.session.attachmentTooLarge`)),!1):!0},onAttachmentChange(e){if(!e.url&&e.raw&&this.isImageAttachment(e))try{e.url=URL.createObjectURL(e.raw)}catch{}},onAttachmentSuccess(e,t){e?.file_url&&(this.revokeBlobUrl(t),t.url=e.file_url,t.response=e)},onAttachmentError(){S.error(this.$t(`codingBridge.session.attachmentUploadError`))},onAttachmentExceed(){S.warning(this.$t(`codingBridge.session.attachmentLimit`,{count:Q}))},onTriggerAttachmentUpload(){this.$nextTick(()=>{let e=this.$refs.uploader?.$el;(e?.querySelector(`input.el-upload__input`)||e?.querySelector(`input[type="file"]`))?.click()})},isAttachmentUploading(e){return e.status===`ready`||e.status===`uploading`},isImageAttachment(e){return(e.raw?.type||``).startsWith(`image/`)?!0:/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(e.name||e.url||``)},attachmentPreviewUrl(e){return this.isImageAttachment(e)&&(e.url||e.response?.file_url)||``},removeAttachment(e,t){this.revokeBlobUrl(t),this.attachmentFileList.splice(e,1)},clearAttachments(){for(let e of this.attachmentFileList)this.revokeBlobUrl(e);this.attachmentFileList=[]},revokeBlobUrl(e){if(e.url?.startsWith(`blob:`))try{URL.revokeObjectURL(e.url)}catch{}},onInterrupt(){this.$store.dispatch(`codingBridge/interruptSession`)},onRetry(){this.$store.dispatch(`codingBridge/retryLastPrompt`)},onEditPrompt(e){this.canEdit&&(this.editingEventId=e.id,this.restoreCode=!1,this.prompt=e.text??``,this.slashMenuOpen=!1,this.slashActiveIndex=0,this.clearAttachments(),this.attachmentFileList=(e.attachments??[]).map((e,t)=>({name:e.name||e.url,url:e.url,status:`success`,percentage:100,uid:Date.now()+t,response:{file_url:e.url},mime_type:e.mime_type})),this.$nextTick(()=>{(this.$el?.querySelector?.(`.cb-composer__input textarea`))?.focus()}))},openDirectory(){this.directoryVisible=!0},onDirectorySelect(e){this.cwd=e},onNewSession(){this.$store.dispatch(`codingBridge/newSession`),this.restoreComposerPrefs(),this.resetComposer()},restoreComposerPrefs(){let e=this.lastComposer;this.cwd=e.cwd??``,this.provider=e.provider??`claude`,this.permissionMode=e.permissionMode??`bypassPermissions`,this.customModelDraft=``,this.$nextTick(()=>{this.model=e.model??``,this.effort=e.effort??``})},scrollToBottom(){if(!this.pinnedToBottom)return;let e=()=>{let e=this.$refs.transcript;e&&(e.scrollTop=e.scrollHeight)};this.$nextTick(()=>{e(),requestAnimationFrame(e)})},observeTranscript(){let e=this.$refs.transcript;e!==this.observedTranscript&&(this.transcriptObserver?.disconnect(),this.transcriptObserver=void 0,this.observedTranscript=e,!(!e||typeof MutationObserver>`u`)&&(this.transcriptObserver=new MutationObserver(()=>this.scheduleScrollToBottom()),this.transcriptObserver.observe(e,{childList:!0,subtree:!0,characterData:!0})))},scheduleScrollToBottom(){!this.pinnedToBottom||this.scrollPending||(this.scrollPending=!0,requestAnimationFrame(()=>{this.scrollPending=!1;let e=this.$refs.transcript;e&&this.pinnedToBottom&&(e.scrollTop=e.scrollHeight)}))},onTranscriptScroll(){let e=this.$refs.transcript;e&&(this.pinnedToBottom=e.scrollHeight-e.scrollTop-e.clientHeight<=bn)},loadEarlier(){let e=this.$refs.transcript,t=e?.scrollHeight??0;this.pinnedToBottom=!1,this.visibleCount+=yn,this.$nextTick(()=>{e&&(e.scrollTop=e.scrollHeight-t+e.scrollTop)})}}}),Cn={class:`session-view flex flex-col h-full bg-[var(--app-content-bg)]`},wn={key:0,class:`flex-1 flex flex-col items-center justify-center text-center p-8 text-[var(--app-text-subtle)]`},Tn={class:`text-sm`},En={class:`flex items-center justify-between gap-3 px-5 py-3 border-b border-[var(--app-border-subtle)]`},Dn={class:`flex items-center gap-2 min-w-0`},On=[`title`,`aria-label`],kn={class:`min-w-0`},An={class:`flex items-center gap-2 font-medium`},jn={class:`truncate`},Mn={key:0,class:`text-xs text-[var(--app-text-subtle)] truncate`},Nn={key:0,class:`text-[var(--el-color-primary)]`},Pn={class:`flex items-center gap-2 flex-none`},Fn={key:0,class:`px-5 py-2 text-xs bg-[var(--el-color-warning-light-9)] text-[var(--el-color-warning)] border-b border-[var(--app-border-subtle)]`},In={key:1,class:`flex flex-wrap items-center gap-x-4 gap-y-1 px-5 py-1.5 text-[11px] text-[var(--app-text-subtle)] border-b border-[var(--app-border-subtle)]`},Ln={class:`opacity-70 flex-none`},Rn=[`title`],zn={key:0,class:`cb-skeleton`},Bn={class:`flex flex-col gap-4`},Vn={class:`flex justify-end`},Hn={class:`flex flex-col gap-1.5`},Un={class:`flex justify-end`},Wn={class:`flex flex-col gap-1.5`},Gn={key:1,class:`m-auto text-center text-sm text-[var(--app-text-subtle)]`},Kn=[`title`],qn={key:4,class:`flex justify-center pt-1`},Jn={key:2,class:`cb-question-dock flex-none px-5`},Yn={class:`border-t border-[var(--app-border-subtle)] p-3`},Xn={key:0,class:`flex items-center gap-2 text-xs text-[var(--app-text-subtle)] px-1 py-2`},Zn={key:0,class:`mb-2 flex flex-wrap items-center gap-x-3 gap-y-1.5 rounded-lg bg-[var(--el-color-primary-light-9)] px-3 py-2 text-xs text-[var(--app-text)]`},Qn={class:`inline-flex items-center gap-1.5`},$n={class:`cb-composer rounded-2xl border border-[var(--app-border-subtle)] bg-[var(--app-content-bg)] px-3 py-2.5 transition-colors focus-within:border-[var(--el-color-primary-light-5)]`},er={key:0,class:`flex flex-wrap gap-2 pb-2`},tr=[`src`,`alt`],nr={key:1,class:`flex h-8 w-8 items-center justify-center rounded bg-[var(--app-content-bg)]`},rr=[`title`],ir={key:2,class:`text-[10px] text-[var(--app-text-subtle)]`},ar=[`title`,`aria-label`,`onClick`],or={key:1,class:`cb-slash-menu`},sr=[`onMousedown`,`onMouseenter`],cr={class:`cb-slash-menu__name`},lr={key:0,class:`cb-slash-menu__hint`},ur={key:1,class:`cb-slash-menu__desc`},dr={ref:`attachmentUploadTrigger`,class:`block h-0 w-0`,"aria-hidden":`true`},fr={class:`mt-1.5 flex items-center gap-1.5`},pr=[`title`,`aria-label`],mr={class:`flex min-w-0 flex-1 flex-wrap items-center gap-1.5`},hr={type:`button`,class:`cb-pill`},gr=[`src`],_r={class:`truncate`},vr=[`src`],yr={key:1,class:`ml-1 text-xs opacity-60`},br={key:1,class:`cb-pill cb-pill--static`},xr=[`src`],Sr={class:`truncate`},Cr=[`title`,`aria-label`],wr={key:0,class:`cb-setting__label`},Tr={type:`button`,class:`cb-pill`},Er={class:`truncate`},Dr={class:`cb-model-menu`},Or={class:`truncate`},kr=[`onClick`],Ar={class:`truncate`},jr={key:0,class:`cb-model-custom`},Mr={key:0,class:`cb-setting__label`},Nr={type:`button`,class:`cb-pill`},Pr={class:`truncate`},Fr={key:0,class:`cb-setting__label`},Ir={type:`button`,class:`cb-pill`},Lr={class:`truncate`},Rr={key:0,class:`cb-setting__label`},zr={type:`button`,class:`cb-pill`},Br={class:`truncate`},Vr=[`title`,`aria-label`],Hr={key:2,class:`cb-pill cb-pill--static`},Ur={class:`truncate`},Wr={class:`text-[11px] text-[var(--app-text-subtle)] mt-1 px-1`};function Gr(d,f,h,_,y,b){let x=u(`developer-icon`),S=u(`el-button`),C=u(`history-icon`),w=u(`add-icon`),T=u(`copy-to-clipboard`),E=u(`el-skeleton-item`),D=u(`el-skeleton`),O=u(`up-icon`),ee=u(`transcript-item`),te=u(`thinking-indicator`),ne=u(`redo-icon`),k=u(`ask-user-question-card`),re=u(`view-icon`),A=u(`edit-icon`),ie=u(`el-checkbox`),ae=u(`file-icon`),j=u(`close-icon`),M=u(`el-input`),oe=u(`el-upload`),se=u(`attachment-icon`),N=u(`code-icon`),P=u(`expand-down-icon`),F=u(`confirm-icon`),I=u(`el-dropdown-item`),L=u(`el-dropdown-menu`),R=u(`el-dropdown`),ce=u(`more-icon`),z=u(`ai-icon`),B=u(`el-popover`),le=u(`performance-icon`),V=u(`security-icon`),H=u(`folder-open-icon`),U=u(`composer-settings`),ue=u(`stop-icon`),de=u(`directory-dialog`);return v(),s(`div`,Cn,[d.currentNode?(v(),s(l,{key:1},[e(`div`,En,[e(`div`,Dn,[e(`button`,{type:`button`,class:`cb-devices-btn md:hidden`,title:d.$t(`codingBridge.nodeList.title`),"aria-label":d.$t(`codingBridge.nodeList.title`),onClick:f[1]||=e=>d.$emit(`devices`)},[a(x,{size:`1em`,"aria-hidden":`true`,focusable:`false`})],8,On),e(`div`,kn,[e(`div`,An,[e(`span`,jn,i(d.currentNode.name),1),e(`span`,{class:n([`inline-block w-2 h-2 rounded-full flex-none`,d.nodeOnline?`bg-[var(--el-color-success)]`:`bg-[var(--app-text-subtle)]`])},null,2)]),d.currentSession?(v(),s(`div`,Mn,[e(`span`,null,i(d.sessionMeta),1),d.replayLabel?(v(),s(`span`,Nn,` · `+i(d.replayLabel),1)):o(``,!0)])):o(``,!0)])]),e(`div`,Pn,[a(S,{size:`small`,round:``,onClick:f[2]||=e=>d.$emit(`history`)},{default:m(()=>[a(C,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(d.$t(`codingBridge.history.button`)),1)]),_:1}),d.currentSessionId?(v(),p(S,{key:0,size:`small`,round:``,onClick:d.onNewSession},{default:m(()=>[a(w,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(d.$t(`codingBridge.session.newSession`)),1)]),_:1},8,[`onClick`])):o(``,!0)])]),d.nodeOnline?o(``,!0):(v(),s(`div`,Fn,i(d.$t(`codingBridge.session.deviceOffline`)),1)),d.diagnostics.length?(v(),s(`div`,In,[(v(!0),s(l,null,g(d.diagnostics,t=>(v(),s(`span`,{key:t.label,class:`inline-flex items-center gap-1 min-w-0`},[e(`span`,Ln,i(t.label)+`:`,1),e(`span`,{class:`font-mono break-all`,title:t.value},i(t.value),9,Rn),a(T,{content:t.value,class:`inline-block flex-none`},null,8,[`content`])]))),128))])):o(``,!0),e(`div`,{ref:`transcript`,class:`flex-1 min-h-0 overflow-y-auto px-5 py-4 flex flex-col gap-3`,onScroll:f[4]||=(...e)=>d.onTranscriptScroll&&d.onTranscriptScroll(...e)},[d.historyLoading&&!d.events.length?(v(),s(`div`,zn,[a(D,{animated:``},{template:m(()=>[e(`div`,Bn,[e(`div`,Vn,[a(E,{variant:`rect`,class:`cb-sk cb-sk--user`})]),e(`div`,Hn,[a(E,{variant:`text`,style:{width:`55%`}}),a(E,{variant:`text`,style:{width:`88%`}}),a(E,{variant:`text`,style:{width:`70%`}})]),a(E,{variant:`rect`,class:`cb-sk cb-sk--tool`}),e(`div`,Un,[a(E,{variant:`rect`,class:`cb-sk cb-sk--user-sm`})]),e(`div`,Wn,[a(E,{variant:`text`,style:{width:`80%`}}),a(E,{variant:`text`,style:{width:`45%`}})])])]),_:1})])):d.events.length?o(``,!0):(v(),s(`div`,Gn,i(d.$t(`codingBridge.session.startHint`)),1)),d.hiddenEventCount>0?(v(),s(`button`,{key:2,type:`button`,class:`cb-load-earlier mx-auto mb-1 flex items-center gap-1.5 rounded-full border border-[var(--app-border-subtle)] bg-[var(--app-content-bg)] px-3 py-1 text-xs text-[var(--app-text-subtle)] hover:text-[var(--el-color-primary)]`,title:`+${d.hiddenEventCount}`,onClick:f[3]||=(...e)=>d.loadEarlier&&d.loadEarlier(...e)},[a(O,{size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(d.hiddenEventCount),1)],8,Kn)):o(``,!0),(v(!0),s(l,null,g(d.visibleEvents,e=>(v(),p(ee,{key:e.id,event:e,editable:d.canEdit,onEdit:d.onEditPrompt},null,8,[`event`,`editable`,`onEdit`]))),128)),d.thinking?(v(),p(te,{key:3})):o(``,!0),d.canRetry?(v(),s(`div`,qn,[a(S,{size:`small`,round:``,onClick:d.onRetry},{default:m(()=>[a(ne,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(d.$t(`codingBridge.session.retry`)),1)]),_:1},8,[`onClick`])])):o(``,!0)],544),d.pendingQuestion?(v(),s(`div`,Jn,[(v(),p(k,{key:d.pendingQuestion.request_id,"tool-use-id":d.pendingQuestion.request_id,payload:d.pendingQuestion.payload,onSubmit:d.onAnswerQuestion,onSkip:d.onSkipQuestion},null,8,[`tool-use-id`,`payload`,`onSubmit`,`onSkip`]))])):o(``,!0),e(`div`,Yn,[d.readonly?(v(),s(`div`,Xn,[a(re,{size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,null,i(d.$t(`codingBridge.history.readonly`)),1),a(S,{class:`ml-auto`,size:`small`,round:``,onClick:d.onNewSession},{default:m(()=>[r(i(d.$t(`codingBridge.session.newSession`)),1)]),_:1},8,[`onClick`])])):(v(),s(l,{key:1},[d.editingActive?(v(),s(`div`,Zn,[e(`span`,Qn,[a(A,{class:`text-[var(--el-color-primary)]`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(d.$t(`codingBridge.session.editingBanner`)),1)]),d.canRestoreCode?(v(),p(ie,{key:0,modelValue:d.restoreCode,"onUpdate:modelValue":f[5]||=e=>d.restoreCode=e,size:`small`,class:`cb-restore-code`},{default:m(()=>[r(i(d.$t(`codingBridge.session.editRestoreCode`)),1)]),_:1},8,[`modelValue`])):o(``,!0),e(`button`,{type:`button`,class:`ml-auto cb-edit-cancel`,onClick:f[6]||=(...e)=>d.cancelEdit&&d.cancelEdit(...e)},i(d.$t(`codingBridge.session.editCancel`)),1)])):o(``,!0),e(`div`,$n,[d.attachmentFileList.length?(v(),s(`div`,er,[(v(!0),s(l,null,g(d.attachmentFileList,(t,n)=>(v(),s(`div`,{key:t.uid||t.name||n,class:`group relative flex max-w-[220px] items-center gap-2 rounded-md border border-[var(--app-border-subtle)] bg-[var(--app-sidebar-bg)] px-2 py-1.5 text-xs`},[d.attachmentPreviewUrl(t)?(v(),s(`img`,{key:0,src:d.attachmentPreviewUrl(t),class:`h-8 w-8 rounded object-cover`,alt:d.$t(`codingBridge.session.attachmentImageAlt`)},null,8,tr)):(v(),s(`span`,nr,[a(ae,{size:`1em`,"aria-hidden":`true`,focusable:`false`})])),e(`span`,{class:`min-w-0 flex-1 truncate`,title:t.name},i(t.name),9,rr),d.isAttachmentUploading(t)?(v(),s(`span`,ir,i(Math.round(t.percentage||0))+`% `,1)):o(``,!0),e(`button`,{type:`button`,class:`flex h-5 w-5 items-center justify-center rounded-full text-[var(--app-text-subtle)] hover:bg-[var(--app-content-hover-bg)] hover:text-[var(--el-color-danger)]`,title:d.$t(`codingBridge.session.removeAttachment`),"aria-label":d.$t(`codingBridge.session.removeAttachment`),onClick:e=>d.removeAttachment(n,t)},[a(j,{size:`1em`,"aria-hidden":`true`,focusable:`false`})],8,ar)]))),128))])):o(``,!0),d.slashMenuVisible?(v(),s(`ul`,or,[(v(!0),s(l,null,g(d.slashMatches,(r,a)=>(v(),s(`li`,{key:r.name,class:n([`cb-slash-menu__item`,{"cb-slash-menu__item--active":a===d.slashActiveIndex}]),onMousedown:t(e=>d.applySlash(r),[`prevent`]),onMouseenter:e=>d.slashActiveIndex=a},[e(`span`,cr,`/`+i(r.name),1),r.argument_hint?(v(),s(`span`,lr,i(r.argument_hint),1)):o(``,!0),r.description?(v(),s(`span`,ur,i(r.description),1)):o(``,!0)],42,sr))),128))])):o(``,!0),a(M,{modelValue:d.prompt,"onUpdate:modelValue":f[7]||=e=>d.prompt=e,type:`textarea`,autosize:{minRows:2,maxRows:12},resize:`none`,class:`cb-composer__input`,placeholder:d.$t(`codingBridge.session.promptPlaceholder`),onKeydown:d.onComposerKeydown},null,8,[`modelValue`,`placeholder`,`onKeydown`]),a(oe,{ref:`uploader`,"file-list":d.attachmentFileList,"onUpdate:fileList":f[8]||=e=>d.attachmentFileList=e,class:`h-0 w-0 overflow-hidden opacity-0`,name:`file`,action:d.uploadUrl,headers:d.headers,multiple:!0,limit:d.maxAttachments,"show-file-list":!1,"before-upload":d.beforeAttachmentUpload,"on-change":d.onAttachmentChange,"on-success":d.onAttachmentSuccess,"on-error":d.onAttachmentError,"on-exceed":d.onAttachmentExceed},{default:m(()=>[e(`span`,dr,null,512)]),_:1},8,[`file-list`,`action`,`headers`,`limit`,`before-upload`,`on-change`,`on-success`,`on-error`,`on-exceed`]),e(`div`,fr,[e(`button`,{type:`button`,class:`cb-icon-btn`,title:d.$t(`codingBridge.session.attachFile`),"aria-label":d.$t(`codingBridge.session.attachFile`),onClick:f[9]||=(...e)=>d.onTriggerAttachmentUpload&&d.onTriggerAttachmentUpload(...e)},[a(se,{size:`1em`,"aria-hidden":`true`,focusable:`false`})],8,pr),e(`div`,mr,[d.isNewSession?(v(),p(R,{key:0,trigger:`click`,onCommand:f[10]||=e=>d.provider=e},{dropdown:m(()=>[a(L,null,{default:m(()=>[(v(!0),s(l,null,g(d.providerOptions,e=>(v(),p(I,{key:e.value,command:e.value,disabled:!e.available},{default:m(()=>[a(F,{class:n([`mr-2`,e.value===d.provider?`opacity-100`:`opacity-0`]),size:`1em`,"aria-hidden":`true`,focusable:`false`},null,8,[`class`]),d.providerIcon(e.value)?(v(),s(`img`,{key:0,src:d.providerIcon(e.value).src,class:n([`cb-pill__brand mr-1.5`,{"cb-pill__brand--invert":d.providerIcon(e.value).invertOnDark}]),alt:``},null,10,vr)):o(``,!0),r(` `+i(e.label)+` `,1),e.available?o(``,!0):(v(),s(`span`,yr,i(d.$t(`codingBridge.session.providerUnavailable`)),1))]),_:2},1032,[`command`,`disabled`]))),128))]),_:1})]),default:m(()=>[e(`button`,hr,[d.providerIcon(d.provider)?(v(),s(`img`,{key:0,src:d.providerIcon(d.provider).src,class:n([`cb-pill__brand`,{"cb-pill__brand--invert":d.providerIcon(d.provider).invertOnDark}]),alt:``},null,10,gr)):(v(),p(N,{key:1,class:`cb-pill__icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`})),e(`span`,_r,i(d.providerName(d.provider)),1),a(P,{class:`cb-pill__caret`,size:`1em`,"aria-hidden":`true`,focusable:`false`})])]),_:1})):(v(),s(`span`,br,[d.providerIcon(d.currentSession?.provider||`claude`)?(v(),s(`img`,{key:0,src:d.providerIcon(d.currentSession?.provider||`claude`).src,class:n([`cb-pill__brand`,{"cb-pill__brand--invert":d.providerIcon(d.currentSession?.provider||`claude`).invertOnDark}]),alt:``},null,10,xr)):(v(),p(N,{key:1,class:`cb-pill__icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`})),e(`span`,Sr,i(d.providerName(d.currentSession?.provider||`claude`)),1)])),e(`button`,{type:`button`,class:`cb-icon-btn cb-more-btn`,title:d.$t(`codingBridge.session.settings`),"aria-label":d.$t(`codingBridge.session.settings`),onClick:f[11]||=e=>d.moreOpen=!0},[a(ce,{size:`1em`,"aria-hidden":`true`,focusable:`false`})],8,Cr),a(U,{open:d.moreOpen,"onUpdate:open":f[20]||=e=>d.moreOpen=e,dialog:d.mobileSettings},{default:m(()=>[e(`div`,{class:n([`cb-setting`,{"cb-setting--row":d.mobileSettings}])},[d.mobileSettings?(v(),s(`span`,wr,i(d.$t(`chat.scheduledTasks.form.model`)),1)):o(``,!0),a(B,{ref:`modelPopover`,trigger:`click`,placement:`top-start`,width:260},{reference:m(()=>[e(`button`,Tr,[a(z,{class:`cb-pill__icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,Er,i(d.model||d.$t(`codingBridge.session.modelDefault`)),1),a(P,{class:`cb-pill__caret`,size:`1em`,"aria-hidden":`true`,focusable:`false`})])]),default:m(()=>[e(`div`,Dr,[e(`button`,{type:`button`,class:`cb-model-option`,onClick:f[12]||=e=>d.selectModel(``)},[a(F,{class:n([`cb-model-option__check`,d.model?`opacity-0`:`opacity-100`]),size:`1em`,"aria-hidden":`true`,focusable:`false`},null,8,[`class`]),e(`span`,Or,i(d.$t(`codingBridge.session.modelDefault`)),1)]),(v(!0),s(l,null,g(d.modelOptions,t=>(v(),s(`button`,{key:t.value,type:`button`,class:`cb-model-option`,onClick:e=>d.selectModel(t.value)},[a(F,{class:n([`cb-model-option__check`,t.value===d.model?`opacity-100`:`opacity-0`]),size:`1em`,"aria-hidden":`true`,focusable:`false`},null,8,[`class`]),e(`span`,Ar,i(t.label),1)],8,kr))),128)),d.allowCustomModel?(v(),s(`div`,jr,[a(M,{modelValue:d.customModelDraft,"onUpdate:modelValue":f[13]||=e=>d.customModelDraft=e,size:`small`,placeholder:d.$t(`codingBridge.session.modelPlaceholder`),onKeyup:c(d.applyCustomModel,[`enter`])},{append:m(()=>[a(S,{disabled:!d.customModelDraft.trim(),"aria-label":d.$t(`common.button.confirm`),title:d.$t(`common.button.confirm`),onClick:d.applyCustomModel},{default:m(()=>[a(F,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`disabled`,`aria-label`,`title`,`onClick`])]),_:1},8,[`modelValue`,`placeholder`,`onKeyup`])])):o(``,!0)])]),_:1},512)],2),d.effortOptions.length>1?(v(),s(`div`,{key:0,class:n([`cb-setting`,{"cb-setting--row":d.mobileSettings}])},[d.mobileSettings?(v(),s(`span`,Mr,i(d.$t(`codingBridge.session.effortLabel`)),1)):o(``,!0),a(R,{trigger:`click`,onCommand:f[14]||=e=>d.effort=e},{dropdown:m(()=>[a(L,null,{default:m(()=>[(v(!0),s(l,null,g(d.effortOptions,e=>(v(),p(I,{key:e.value,command:e.value},{default:m(()=>[a(F,{class:n([`mr-2`,e.value===d.effort?`opacity-100`:`opacity-0`]),size:`1em`,"aria-hidden":`true`,focusable:`false`},null,8,[`class`]),r(` `+i(e.label),1)]),_:2},1032,[`command`]))),128))]),_:1})]),default:m(()=>[e(`button`,Nr,[a(le,{class:`cb-pill__icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,Pr,i(d.effortLabel(d.effort)),1),a(P,{class:`cb-pill__caret`,size:`1em`,"aria-hidden":`true`,focusable:`false`})])]),_:1})],2)):o(``,!0),e(`div`,{class:n([`cb-setting`,{"cb-setting--row":d.mobileSettings}])},[d.mobileSettings?(v(),s(`span`,Fr,i(d.$t(`codingBridge.session.permissionModeLabel`)),1)):o(``,!0),a(R,{trigger:`click`,onCommand:f[15]||=e=>d.permissionMode=e},{dropdown:m(()=>[a(L,null,{default:m(()=>[(v(!0),s(l,null,g(d.permissionModeOptions,e=>(v(),p(I,{key:e.value,command:e.value},{default:m(()=>[a(F,{class:n([`mr-2`,e.value===d.permissionMode?`opacity-100`:`opacity-0`]),size:`1em`,"aria-hidden":`true`,focusable:`false`},null,8,[`class`]),r(` `+i(e.label),1)]),_:2},1032,[`command`]))),128))]),_:1})]),default:m(()=>[e(`button`,Ir,[a(V,{class:`cb-pill__icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,Lr,i(d.permissionModeLabel(d.permissionMode)),1),a(P,{class:`cb-pill__caret`,size:`1em`,"aria-hidden":`true`,focusable:`false`})])]),_:1})],2),d.canPickCwd||d.currentSession?.cwd?(v(),s(`div`,{key:1,class:n([`cb-setting`,{"cb-setting--row":d.mobileSettings}])},[d.mobileSettings?(v(),s(`span`,Rr,i(d.$t(`common.settings.localToolsWorkingDirTitle`)),1)):o(``,!0),d.canPickCwd?(v(),p(B,{key:1,trigger:`click`,placement:`top-start`,width:320},{reference:m(()=>[e(`button`,zr,[a(H,{class:`cb-pill__icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,Br,i(d.cwd||d.$t(`codingBridge.session.cwdDefault`)),1),a(P,{class:`cb-pill__caret`,size:`1em`,"aria-hidden":`true`,focusable:`false`})])]),default:m(()=>[a(M,{modelValue:d.cwd,"onUpdate:modelValue":f[19]||=e=>d.cwd=e,size:`small`,clearable:``,class:`cb-cwd-input`,placeholder:d.$t(`codingBridge.session.cwdPlaceholder`)},{suffix:m(()=>[e(`span`,{class:`cb-cwd-browse`,role:`button`,tabindex:`0`,title:d.$t(`codingBridge.directory.title`),"aria-label":d.$t(`codingBridge.directory.title`),onClick:f[16]||=(...e)=>d.openDirectory&&d.openDirectory(...e),onKeydown:[f[17]||=c(t((...e)=>d.openDirectory&&d.openDirectory(...e),[`prevent`]),[`enter`]),f[18]||=c(t((...e)=>d.openDirectory&&d.openDirectory(...e),[`prevent`]),[`space`])]},[a(H,{size:`1em`,"aria-hidden":`true`,focusable:`false`})],40,Vr)]),_:1},8,[`modelValue`,`placeholder`])]),_:1})):(v(),s(`span`,Hr,[a(H,{class:`cb-pill__icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,Ur,i(d.currentSession?.cwd),1)]))],2)):o(``,!0)]),_:1},8,[`open`,`dialog`])]),d.running?(v(),p(S,{key:0,circle:``,"aria-label":d.$t(`common.button.stop`),title:d.$t(`common.button.stop`),onClick:d.onInterrupt},{default:m(()=>[a(ue,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`aria-label`,`title`,`onClick`])):o(``,!0),a(S,{type:`primary`,round:``,disabled:!d.canSend,onClick:d.onSend},{default:m(()=>[r(i(d.editingActive?d.$t(`codingBridge.session.editSubmit`):d.$t(`codingBridge.session.send`)),1)]),_:1},8,[`disabled`,`onClick`])])]),e(`p`,Wr,i(d.composerHint),1)],64))])],64)):(v(),s(`div`,wn,[a(x,{class:`text-4xl mb-3`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`p`,Tn,i(d.$t(`codingBridge.session.noDevice`)),1),a(S,{class:`md:hidden mt-4`,round:``,onClick:f[0]||=e=>d.$emit(`devices`)},{default:m(()=>[a(x,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(d.$t(`codingBridge.nodeList.title`)),1)]),_:1})])),a(de,{visible:d.directoryVisible,"onUpdate:visible":f[21]||=e=>d.directoryVisible=e,"initial-path":d.cwd,onSelect:d.onDirectorySelect},null,8,[`visible`,`initial-path`,`onSelect`])])}var Kr=q(Sn,[[`render`,Gr],[`__scopeId`,`data-v-79aae58c`]]),qr=y({name:`CodingBridgePairDialog`,components:{LinkIcon:ce,ElDialog:G,ElInput:W,ElButton:K},props:{visible:{type:Boolean,default:!1},initialCode:{type:String,default:``}},emits:[`update:visible`],data(){return{code:``}},computed:{claiming(){return this.$store.state.codingBridge?.status?.claimPair===x.Request}},watch:{visible(e){e&&this.initialCode&&(this.code=this.initialCode)},initialCode(e){e&&(this.code=e)}},methods:{async onClaim(){let e=this.code.trim();if(e)try{let t=await this.$store.dispatch(`codingBridge/claimPair`,e);S.success(this.$t(`codingBridge.pair.success`,{name:t})),this.code=``,this.$emit(`update:visible`,!1)}catch(e){let t=e?.response?.status;t===404?S.error(this.$t(`codingBridge.pair.invalidCode`)):t===409?S.error(this.$t(`codingBridge.pair.usedCode`)):S.error(this.$t(`codingBridge.pair.failed`))}}}}),Jr={class:`content`},Yr={class:`text-sm text-[var(--app-text-subtle)] mb-4`},Xr={class:`steps list-none m-0 p-0 mb-4`},Zr={class:`flex gap-3 mb-3`},Qr={class:`flex-1 min-w-0`},$r={class:`text-sm mb-1`},ei={class:`flex gap-3 mb-3`},ti={class:`flex-1 min-w-0`},ni={class:`text-sm mb-1`},ri={class:`flex gap-3`},ii={class:`flex-1 min-w-0`},ai={class:`text-sm`};function oi(t,n,o,s,l,d){let f=u(`el-input`),h=u(`link-icon`),g=u(`el-button`),_=u(`el-dialog`);return v(),p(_,{"model-value":t.visible,width:`520px`,title:t.$t(`codingBridge.pair.title`),center:``,"onUpdate:modelValue":n[1]||=e=>t.$emit(`update:visible`,e)},{default:m(()=>[e(`div`,Jr,[e(`p`,Yr,i(t.$t(`codingBridge.pair.intro`)),1),e(`ol`,Xr,[e(`li`,Zr,[n[3]||=e(`span`,{class:`step-index`},`1`,-1),e(`div`,Qr,[e(`p`,$r,i(t.$t(`codingBridge.pair.step1`)),1),n[2]||=e(`code`,{class:`cmd`},`pip install coding-bridge`,-1)])]),e(`li`,ei,[n[5]||=e(`span`,{class:`step-index`},`2`,-1),e(`div`,ti,[e(`p`,ni,i(t.$t(`codingBridge.pair.step2`)),1),n[4]||=e(`code`,{class:`cmd`},`coding-bridge up`,-1)])]),e(`li`,ri,[n[6]||=e(`span`,{class:`step-index`},`3`,-1),e(`div`,ii,[e(`p`,ai,i(t.$t(`codingBridge.pair.step3`)),1)])])]),a(f,{modelValue:t.code,"onUpdate:modelValue":n[0]||=e=>t.code=e,size:`large`,class:`mb-3`,placeholder:t.$t(`codingBridge.pair.codePlaceholder`),clearable:``,onKeyup:c(t.onClaim,[`enter`])},null,8,[`modelValue`,`placeholder`,`onKeyup`]),a(g,{type:`primary`,round:``,class:`w-full`,loading:t.claiming,disabled:!t.code.trim(),onClick:t.onClaim},{default:m(()=>[a(h,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(t.$t(`codingBridge.pair.claim`)),1)]),_:1},8,[`loading`,`disabled`,`onClick`])])]),_:1},8,[`model-value`,`title`])}var si=q(qr,[[`render`,oi],[`__scopeId`,`data-v-54bd85f1`]]),ci=y({name:`CodingBridgePermissionDialog`,components:{CloseIcon:Y,CodeIcon:j,ConfirmIcon:A,ElDialog:G,ElButton:K},computed:{request(){return(this.$store.state.codingBridge?.permissions??[]).find(e=>!Qe(e))},hasInput(){return!!this.request?.input&&Object.keys(this.request.input).length>0},inputText(){try{return JSON.stringify(this.request?.input,null,2)}catch{return String(this.request?.input??``)}}},methods:{onAllow(){this.request&&this.$store.dispatch(`codingBridge/resolvePermission`,{request_id:this.request.request_id,decision:`allow`})},onDeny(){this.request&&this.$store.dispatch(`codingBridge/resolvePermission`,{request_id:this.request.request_id,decision:`deny`})}}}),li={key:0,class:`content`},ui={class:`text-sm text-[var(--app-text-subtle)] mb-3`},di={class:`rounded-md border border-[var(--app-border-subtle)] p-3 mb-3`},fi={class:`flex items-center gap-2 font-medium`},pi={key:0,class:`text-xs text-[var(--app-text-subtle)] mt-1`},mi={key:1,class:`mt-2 text-xs overflow-x-auto whitespace-pre-wrap break-words text-[var(--app-text-subtle)] max-h-[200px]`},hi={class:`flex justify-end gap-2`};function gi(t,n,c,l,d,f){let h=u(`code-icon`),g=u(`close-icon`),_=u(`el-button`),y=u(`confirm-icon`),b=u(`el-dialog`);return v(),p(b,{"model-value":!!t.request,width:`480px`,title:t.$t(`codingBridge.permission.title`),"close-on-click-modal":!1,"show-close":!1,center:``},{footer:m(()=>[e(`div`,hi,[a(_,{round:``,onClick:t.onDeny},{default:m(()=>[a(g,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(t.$t(`codingBridge.permission.deny`)),1)]),_:1},8,[`onClick`]),a(_,{type:`primary`,round:``,onClick:t.onAllow},{default:m(()=>[a(y,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(t.$t(`codingBridge.permission.allow`)),1)]),_:1},8,[`onClick`])])]),default:m(()=>[t.request?(v(),s(`div`,li,[e(`p`,ui,i(t.$t(`codingBridge.permission.subtitle`)),1),e(`div`,di,[e(`div`,fi,[a(h,{size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,null,i(t.request.display_name||t.request.title||t.request.tool),1)]),t.request.description?(v(),s(`p`,pi,i(t.request.description),1)):o(``,!0),t.hasInput?(v(),s(`pre`,mi,i(t.inputText),1)):o(``,!0)])])):o(``,!0)]),_:1},8,[`model-value`,`title`])}var _i=q(ci,[[`render`,gi]]),vi={claude:{src:mn,invertOnDark:!1},codex:{src:hn,invertOnDark:!0},copilot:{src:gn,invertOnDark:!0}},$=[`claude`,`codex`,`copilot`],yi=y({name:`CodingBridgeHistoryDrawer`,components:{CodeIcon:j,RedoIcon:U,ElDrawer:w,ElButton:K},props:{visible:{type:Boolean,default:!1}},emits:[`update:visible`],data(){return{selectedProviders:[]}},computed:{currentNodeId(){return this.$store.state.codingBridge?.currentNodeId},loading(){return this.$store.state.codingBridge?.status?.getHistory===x.Request},allSessions(){let e=this.currentNodeId;return[...e?this.$store.state.codingBridge?.history?.[e]??[]:[]].sort((e,t)=>(t.updated_at??0)-(e.updated_at??0))},sessions(){return this.selectedProviders.length?this.allSessions.filter(e=>this.selectedProviders.includes(e.provider)):this.allSessions},providerOptions(){let e=new Map;return this.allSessions.forEach(t=>{e.set(t.provider,(e.get(t.provider)??0)+1)}),[...e.entries()].sort(([e],[t])=>{let n=$.indexOf(e),r=$.indexOf(t);return n===r?e.localeCompare(t):(n<0?$.length:n)-(r<0?$.length:r)}).map(([e,t])=>({value:e,label:this.providerLabel(e),count:t,icon:this.providerIcon(e)}))}},watch:{visible(e){e&&this.currentNodeId&&this.$store.dispatch(`codingBridge/getHistory`,this.currentNodeId)},currentNodeId(){this.selectedProviders=[]}},methods:{isSelected(e){return this.selectedProviders.includes(e)},toggle(e){this.selectedProviders=this.isSelected(e)?this.selectedProviders.filter(t=>t!==e):[...this.selectedProviders,e]},clearFilter(){this.selectedProviders=[]},providerLabel(e){return{claude:`Claude Code`,codex:`Codex`,copilot:`GitHub Copilot`}[e]??e},providerIcon(e){return vi[e]??null},refresh(){this.currentNodeId&&this.$store.dispatch(`codingBridge/getHistory`,this.currentNodeId)},open(e){this.currentNodeId&&(e.unread&&this.$store.dispatch(`codingBridge/markHistoryRead`,{node_id:this.currentNodeId,provider:e.provider,session_id:e.session_id,updated_at:e.updated_at}),this.$store.dispatch(`codingBridge/reattachSession`,{node_id:this.currentNodeId,provider:e.provider,session_id:e.session_id}),this.$emit(`update:visible`,!1))},formatTime(e){try{return new Date(e).toLocaleString()}catch{return``}}}}),bi={class:`flex flex-col h-full`},xi={class:`flex items-center justify-between mb-3`},Si={class:`text-xs text-[var(--app-text-subtle)] m-0`},Ci={key:0,class:`flex flex-wrap items-center gap-1.5 mb-3`},wi=[`aria-pressed`,`onClick`],Ti=[`src`],Ei={class:`chip-count`},Di={key:1,class:`m-auto text-sm text-[var(--app-text-subtle)]`},Oi={key:2,class:`m-auto text-sm text-[var(--app-text-subtle)]`},ki={key:3,class:`m-auto text-sm text-[var(--app-text-subtle)] text-center`},Ai={key:4,class:`m-auto text-sm text-[var(--app-text-subtle)] text-center`},ji={class:`m-0`},Mi={key:5,class:`list-none m-0 p-0 flex-1 overflow-y-auto flex flex-col gap-2`},Ni=[`onClick`],Pi={class:`flex items-center gap-2 mb-1`},Fi=[`src`,`alt`],Ii=[`title`],Li=[`title`],Ri={class:`text-[11px] text-[var(--app-text-subtle)] truncate`},zi={key:0},Bi={key:1},Vi={class:`text-[11px] text-[var(--app-text-subtle)] mt-0.5`},Hi={key:0},Ui={key:1};function Wi(t,c,d,f,h,_){let y=u(`redo-icon`),b=u(`el-button`),x=u(`code-icon`),S=u(`el-drawer`);return v(),p(S,{"model-value":t.visible,direction:`rtl`,size:`380px`,title:t.$t(`codingBridge.history.title`),"onUpdate:modelValue":c[1]||=e=>t.$emit(`update:visible`,e)},{default:m(()=>[e(`div`,bi,[e(`div`,xi,[e(`p`,Si,i(t.$t(`codingBridge.history.intro`)),1),a(b,{size:`small`,round:``,loading:t.loading,onClick:t.refresh},{default:m(()=>[t.loading?o(``,!0):(v(),p(y,{key:0,class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`})),r(` `+i(t.$t(`codingBridge.history.refresh`)),1)]),_:1},8,[`loading`,`onClick`])]),t.providerOptions.length>1?(v(),s(`div`,Ci,[(v(!0),s(l,null,g(t.providerOptions,r=>(v(),s(`button`,{key:r.value,type:`button`,class:n([`chip`,{"chip--active":t.isSelected(r.value)}]),"aria-pressed":t.isSelected(r.value),onClick:e=>t.toggle(r.value)},[r.icon?(v(),s(`img`,{key:0,src:r.icon.src,class:n([`provider-icon`,{"provider-icon--invert":r.icon.invertOnDark}]),alt:``,"aria-hidden":`true`},null,10,Ti)):(v(),p(x,{key:1,class:`provider-icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`})),e(`span`,null,i(r.label),1),e(`span`,Ei,i(r.count),1)],10,wi))),128)),t.selectedProviders.length?(v(),s(`button`,{key:0,type:`button`,class:`chip-clear`,onClick:c[0]||=(...e)=>t.clearFilter&&t.clearFilter(...e)},i(t.$t(`codingBridge.history.filterAll`)),1)):o(``,!0)])):o(``,!0),t.currentNodeId?t.loading&&!t.allSessions.length?(v(),s(`div`,Oi,i(t.$t(`codingBridge.history.loading`)),1)):t.allSessions.length?t.sessions.length?(v(),s(`ul`,Mi,[(v(!0),s(l,null,g(t.sessions,r=>(v(),s(`li`,{key:r.provider+`:`+r.session_id,class:`item rounded-lg p-3 cursor-pointer border border-[var(--app-border-subtle)]`,onClick:e=>t.open(r)},[e(`div`,Pi,[t.providerIcon(r.provider)?(v(),s(`img`,{key:0,src:t.providerIcon(r.provider).src,class:n([`provider-icon`,{"provider-icon--invert":t.providerIcon(r.provider).invertOnDark}]),alt:t.providerLabel(r.provider)},null,10,Fi)):(v(),p(x,{key:1,class:`provider-icon`,title:t.providerLabel(r.provider),size:`1em`,"aria-hidden":`true`,focusable:`false`},null,8,[`title`])),e(`span`,{class:n([`text-sm truncate flex-1`,r.unread?`font-bold`:`font-normal`]),title:r.unread?t.$t(`codingBridge.history.unread`):void 0},i(r.title),11,Ii),r.running?(v(),s(`span`,{key:2,class:`running-dot`,title:t.$t(`codingBridge.history.running`)},null,8,Li)):o(``,!0)]),e(`div`,Ri,[r.cwd?(v(),s(`span`,zi,i(r.cwd),1)):o(``,!0),r.git_branch?(v(),s(`span`,Bi,` · `+i(r.git_branch),1)):o(``,!0)]),e(`div`,Vi,[r.updated_at?(v(),s(`span`,Hi,i(t.formatTime(r.updated_at)),1)):o(``,!0),r.message_count?(v(),s(`span`,Ui,` · `+i(t.$t(`codingBridge.history.messages`,{count:r.message_count})),1)):o(``,!0)])],8,Ni))),128))])):(v(),s(`div`,Ai,[e(`p`,ji,i(t.$t(`codingBridge.history.filterEmpty`)),1),a(b,{class:`mt-2`,size:`small`,round:``,onClick:t.clearFilter},{default:m(()=>[r(i(t.$t(`codingBridge.history.filterAll`)),1)]),_:1},8,[`onClick`])])):(v(),s(`div`,ki,i(t.$t(`codingBridge.history.empty`)),1)):(v(),s(`div`,Di,i(t.$t(`codingBridge.session.noDevice`)),1))])]),_:1},8,[`model-value`,`title`])}var Gi=y({name:`CodingBridgeIndex`,components:{ElDrawer:w,NodeList:Xe,SessionView:Kr,PairDialog:si,PermissionDialog:_i,HistoryDrawer:q(yi,[[`render`,Wi],[`__scopeId`,`data-v-abb16563`]])},data(){return{drawer:!1,pairVisible:!1,historyVisible:!1,initialCode:``}},mounted(){this.$store.dispatch(`codingBridge/connect`),this.$store.dispatch(`codingBridge/getNodes`);let e=this.$route.query.code;typeof e==`string`&&e&&(this.initialCode=e,this.pairVisible=!0),this.restoreFromUrl(),this.handleNotificationDeepLink(),this.cleanUrl()},beforeUnmount(){this.$store.dispatch(`codingBridge/disconnect`)},methods:{openPair(){this.initialCode=``,this.pairVisible=!0},openPairFromDrawer(){this.drawer=!1,this.openPair()},restoreFromUrl(){let e=this.$route.query,t=typeof e.session==`string`?e.session:``,n=typeof e.node==`string`?e.node:``;if(!t||!n)return;let r=e.provider===`codex`||e.provider===`copilot`?e.provider:`claude`;this.$store.commit(`codingBridge/setCurrentNode`,n),this.$store.commit(`codingBridge/setHistoryRef`,{node_id:n,provider:r,session_id:t}),this.$store.dispatch(`codingBridge/getHistory`,n),this.$store.dispatch(`codingBridge/requestSessions`,n)},cleanUrl(){let e=this.$route.query,t=[`session`,`node`,`provider`,`request`,`code`];if(!t.some(t=>t in e))return;let n={...e};t.forEach(e=>delete n[e]),this.$router.replace({query:n}).catch(()=>{})},handleNotificationDeepLink(){let e=this.$route.query.node;typeof e==`string`&&e&&(this.$route.query.session||this.$store.dispatch(`codingBridge/selectNode`,e),this.$store.dispatch(`codingBridge/requestPendingPermissions`,e))}}}),Ki={class:`coding-bridge flex flex-row h-full relative`};function qi(e,t,n,r,i,o){let c=u(`node-list`),l=u(`session-view`),d=u(`el-drawer`),f=u(`pair-dialog`),p=u(`permission-dialog`),h=u(`history-drawer`);return v(),s(`div`,Ki,[a(c,{class:`sidebar w-[300px] flex-none`,onPair:e.openPair},null,8,[`onPair`]),a(l,{class:`flex-1 min-w-0`,onHistory:t[0]||=t=>e.historyVisible=!0,onDevices:t[1]||=t=>e.drawer=!0}),a(d,{modelValue:e.drawer,"onUpdate:modelValue":t[2]||=t=>e.drawer=t,direction:`ltr`,"with-header":!1,size:`300px`,class:`drawer`},{default:m(()=>[a(c,{onPair:e.openPairFromDrawer},null,8,[`onPair`])]),_:1},8,[`modelValue`]),a(f,{visible:e.pairVisible,"onUpdate:visible":t[3]||=t=>e.pairVisible=t,"initial-code":e.initialCode},null,8,[`visible`,`initial-code`]),a(p),a(h,{visible:e.historyVisible,"onUpdate:visible":t[4]||=t=>e.historyVisible=t},null,8,[`visible`])])}var Ji=q(Gi,[[`render`,qi],[`__scopeId`,`data-v-2879fe0f`]]);export{Ji as default};
@@ -1 +0,0 @@
1
- .menu[data-v-808f6ae5]{display:none}@media (width<=767px){.config[data-v-808f6ae5]{display:none}.result[data-v-808f6ae5]{width:100%}.menu[data-v-808f6ae5]{right:8px;top:calc(45px + var(--app-safe-area-top));z-index:1000;display:block;position:absolute}}.field-head[data-v-3c165911]{flex-direction:row;align-items:center;display:flex}.field-title[data-v-3c165911]{margin:0;font-size:14px}.field-block>.field-head[data-v-3c165911]{margin-bottom:8px}.field-row[data-v-3c165911]{flex-direction:row;justify-content:space-between;align-items:center;display:flex}.field-control[data-v-3c165911]{width:168px}.custom-field[data-v-3c165911]{border-top:1px solid var(--el-border-color-lighter);margin-top:20px;padding-top:16px}.custom-field-header[data-v-3c165911]{justify-content:space-between;align-items:center;gap:16px;display:flex}.language-picker[data-v-3c165911]{flex-direction:column;gap:10px;display:flex}.language-role[data-v-3c165911]{flex-direction:column;gap:5px;display:flex}.language-role-label[data-v-3c165911]{color:var(--el-text-color-secondary);font-size:12px;font-weight:600;line-height:1.4}.language-role--primary .language-role-label[data-v-3c165911]{color:var(--el-color-primary)}.language-role--primary[data-v-3c165911] .el-select__wrapper:not(.is-focused){box-shadow:0 0 0 1px var(--el-color-primary-light-5) inset}.voice-row[data-v-3c165911]{flex-direction:row;align-items:center;gap:8px;display:flex}.voice-select[data-v-3c165911]{flex:1}.voice-play[data-v-3c165911]{flex:none}.ratio-items[data-v-3c165911]{flex-direction:row;align-items:center;gap:10px;display:flex}.ratio-item[data-v-3c165911]{border:1px solid var(--el-border-color);background-color:var(--el-fill-color-lighter);cursor:pointer;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;width:52px;height:64px;transition:background-color .2s,border-color .2s;display:flex}.ratio-item .ratio-preview[data-v-3c165911]{justify-content:center;align-items:center;width:30px;height:30px;margin-bottom:6px;display:flex}.ratio-item .ratio-preview .ratio-rect[data-v-3c165911]{border:1px solid var(--el-text-color-placeholder);border-radius:2px}.ratio-item .ratio-name[data-v-3c165911]{color:var(--el-text-color-primary);margin:0;font-size:12px}.ratio-item[data-v-3c165911]:hover{background-color:var(--el-fill-color)}.ratio-item[data-v-3c165911]:focus-visible{border-color:var(--el-color-primary);box-shadow:0 0 0 2px var(--el-color-primary-light-7);outline:none}.ratio-item.active[data-v-3c165911]{border-color:var(--el-color-primary);background-color:var(--el-color-primary-light-9)}.ratio-item.active .ratio-rect[data-v-3c165911]{border-color:var(--el-color-primary)}.scenario-cards[data-v-3c165911]{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.scenario-cards.is-disabled[data-v-3c165911]{opacity:.55}.scenario-card[data-v-3c165911]{border:1px solid var(--el-border-color);background-color:var(--el-fill-color-lighter);cursor:pointer;border-radius:8px;transition:border-color .2s,box-shadow .2s;overflow:hidden}.scenario-card .scenario-thumb[data-v-3c165911]{aspect-ratio:3/4;background-color:var(--el-fill-color);width:100%;overflow:hidden}.scenario-card .scenario-thumb img[data-v-3c165911]{-o-object-fit:cover;object-fit:cover;-o-object-position:top center;object-position:top center;width:100%;height:100%;display:block}.scenario-card .scenario-name[data-v-3c165911]{text-align:center;color:var(--el-text-color-primary);margin:0;padding:5px 4px;font-size:11px;line-height:1.25}.scenario-card[data-v-3c165911]:hover{border-color:var(--el-color-primary-light-5)}.scenario-card.disabled[data-v-3c165911]{cursor:not-allowed}.scenario-card[data-v-3c165911]:focus-visible{border-color:var(--el-color-primary);box-shadow:0 0 0 2px var(--el-color-primary-light-7);outline:none}.scenario-card.active[data-v-3c165911]{border-color:var(--el-color-primary);box-shadow:0 0 0 1px var(--el-color-primary)}.scenario-card.active .scenario-name[data-v-3c165911]{color:var(--el-color-primary);font-weight:600}.progress-steps[data-v-8a883977]{margin:4px 0 8px}.progress-steps .step[data-v-8a883977]{align-items:center;gap:8px;font-size:13px;line-height:1.75;display:flex}.progress-steps .step .ico[data-v-8a883977]{flex-shrink:0;justify-content:center;align-items:center;width:14px;height:14px;font-size:13px;display:inline-flex}.progress-steps .step.done[data-v-8a883977],.progress-steps .step.done .ico[data-v-8a883977]{color:var(--el-color-primary)}.progress-steps .step.active[data-v-8a883977]{color:var(--el-color-primary);font-weight:600}.progress-steps .step.active .ico[data-v-8a883977]{color:var(--el-color-primary)}.progress-steps .step.pending[data-v-8a883977]{color:var(--el-text-color-disabled)}.progress-steps .step.pending .ico[data-v-8a883977]:before{content:"";border:1px solid var(--el-text-color-disabled);border-radius:50%;width:7px;height:7px;display:inline-block}.progress-steps .detail[data-v-8a883977]{color:var(--el-text-color-placeholder);word-break:break-word;overflow-wrap:anywhere;margin:3px 0 0 22px;font-size:12px;line-height:1.5}.preview[data-v-1ceb81fa]{text-align:left;flex-direction:row;width:100%;height:fit-content;margin-bottom:15px;display:flex}.preview .left[data-v-1ceb81fa]{width:70px}.preview .left .avatar[data-v-1ceb81fa]{border-radius:50%;width:50px;height:50px;margin:10px}.preview .main[data-v-1ceb81fa]{flex:1;width:calc(100% - 70px);min-width:0;padding:10px 10px 0}.preview .main .bot[data-v-1ceb81fa]{color:var(--el-color-primary);text-overflow:ellipsis;white-space:nowrap;align-items:center;font-size:16px;font-weight:700;display:flex;overflow:hidden}.preview .main .bot .datetime[data-v-1ceb81fa]{text-overflow:ellipsis;color:var(--el-text-color-secondary);margin-left:10px;font-size:12px;font-weight:400;overflow:hidden}.preview .main .bot .btn-delete[data-v-1ceb81fa]{cursor:pointer;color:var(--el-text-color-secondary);opacity:0;background:0 0;border:none;margin-left:auto;padding:4px 6px;line-height:1;transition:opacity .15s,color .15s}.preview .main .bot .btn-delete[data-v-1ceb81fa]:hover{color:var(--el-color-danger)}@media (hover:none){.preview .main .bot .btn-delete[data-v-1ceb81fa]{opacity:1}}.preview .main .info[data-v-1ceb81fa]{overflow:hidden}.preview .main .info .prompt[data-v-1ceb81fa]{color:var(--el-text-color-regular);white-space:normal;word-break:break-word;overflow-wrap:anywhere;margin-bottom:10px;font-size:16px;font-weight:700}.preview .main .info .prompt .progress-pct[data-v-1ceb81fa]{color:var(--el-color-primary);white-space:nowrap;font-weight:600}.preview .main .content[data-v-1ceb81fa]{word-break:break-word;overflow-wrap:anywhere}.preview .main .content .el-alert[data-v-1ceb81fa]{border-left-style:solid;border-left-width:2px}.preview .main .content .el-alert.processing[data-v-1ceb81fa]{border-color:var(--el-color-primary)}.preview .main .content .el-alert.failure[data-v-1ceb81fa]{border-color:var(--el-color-danger)}.preview .main .content .el-alert.success[data-v-1ceb81fa]{border-color:var(--el-color-success)}.preview .main .content .el-alert[data-v-1ceb81fa] p:last-child{margin-bottom:0}.preview .main .operations[data-v-1ceb81fa]{flex-flow:wrap;justify-content:left;align-items:baseline;width:100%;display:flex}.preview .main .operations .btn-action[data-v-1ceb81fa]{margin-bottom:10px}.preview:hover .main .bot .btn-delete[data-v-1ceb81fa]{opacity:1}
@@ -1 +0,0 @@
1
- import"./rolldown-runtime--c01j_DQ.js";import{A as e,Gt as t,I as n,Jt as r,L as i,M as a,N as o,at as s,ht as c,j as l,mt as u,ot as d,tt as f,z as p}from"./vendor-chart-Dw-P17PN.js";import{n as m,t as h}from"./row-DQNf_Mdc.js";import{i as g,n as _,r as v,t as y}from"./container-VI0MzukK.js";import{n as b,r as x,t as S}from"./dropdown-DY0sjU-2.js";import{i as C,n as w,r as T,t as E}from"./avatar-CB17GO8n.js";import{Ma as D,O,Q as k,_n as A,da as j,fn as M,j as N,la as P,pa as F,ra as I,st as L,vt as R}from"./index-Dj-lkoyb.js";import{t as z}from"./BottomFooter-BfiYEcT_.js";import{t as B}from"./Logo-Ci1kdnKR.js";var V=p({name:`TopHeader`,components:{ElCol:m,Logo:B,ElRow:h,ElDropdown:S,ElDropdownMenu:x,ElMenu:w,ElMenuItem:T,ElDropdownItem:b,ElButton:D,ElSubMenu:C},data(){return{defaultAvatar:E,products:`chat`}},computed:{site(){return this.$store.state?.site},dark(){return this.$store.getters?.dark},active(){return this.$route.matched?.[0]?.path},isMinimalHeader(){return this.$route.name===R},user(){return this.$store.getters?.user},authenticated(){return this.$store.getters?.authenticated},isMainOfficialHost(){return A()},isDesktopChrome(){return P()},isMacChrome(){return P()&&j()}},methods:{openTab(e){if(F()){N.open({url:e}).catch(t=>{console.warn(`Browser.open failed, falling back to window.open`,t),window.open(e,`_blank`)});return}window.open(e,`_blank`)},onSelect(e){e&&this.$router.push(e)},onHome(){this.$router.push({name:R})},onLogin(){this.$store.dispatch(`login`,{redirect:this.$route.fullPath})},onDownload(){this.$router.push({name:L})},onProfile(){let e=I();this.openTab(M(`${e}/user/profile`))},onVerify(){let e=I();this.openTab(M(`${e}/user/verify`))},onConsole(){this.$router.push({name:k})},async onLogout(){this.$store.dispatch(`logout`)}}}),H={key:0,class:`mt-4 pr-10`},U={key:1,class:`float-right`},W=[`src`];function G(p,m,h,g,_,v){let y=s(`logo`),b=s(`el-col`),x=s(`el-menu-item`),S=s(`el-sub-menu`),C=s(`el-menu`),w=s(`el-button`),T=s(`language-selector`),E=s(`dark-selector`),D=s(`el-dropdown-item`),O=s(`el-dropdown-menu`),k=s(`el-dropdown`),A=s(`el-row`),j=d(`t`);return f(),l(A,{class:t([`header`,{"desktop-chrome":p.isDesktopChrome,"is-mac":p.isMacChrome,"minimal-only":p.isMinimalHeader}])},{default:u(()=>[p.isMinimalHeader?(f(),l(b,{key:0,span:24,class:`brand-col`},{default:u(()=>[i(y,{onClick:p.onHome},null,8,[`onClick`])]),_:1})):(f(),l(b,{key:1,md:4,xs:24,class:`brand-col`},{default:u(()=>[i(y,{onClick:p.onHome},null,8,[`onClick`])]),_:1})),p.isMinimalHeader?a(``,!0):(f(),l(b,{key:2,md:16,xs:13},{default:u(()=>[i(C,{"default-active":p.active,mode:`horizontal`,class:`menu`,ellipsis:!0,onSelect:p.onSelect},{default:u(()=>[i(S,{index:p.products},{title:u(()=>[n(r(p.$t(`common.nav.products`)),1)]),default:u(()=>[c(i(x,{index:`/home`},null,512),[[j,`intro.nav.overview`]]),p.site?.features?.chatgpt?.enabled?c((f(),l(x,{key:0,index:`/chat`},null,512)),[[j,`index.title.chat`]]):a(``,!0),p.site?.features?.midjourney?.enabled?c((f(),l(x,{key:1,index:`/midjourney`},null,512)),[[j,`index.title.midjourney`]]):a(``,!0),p.site?.features?.qrart?.enabled?c((f(),l(x,{key:2,index:`/qrart`},null,512)),[[j,`index.title.qrart`]]):a(``,!0),p.site?.features?.suno?.enabled?c((f(),l(x,{key:3,index:`/suno`},null,512)),[[j,`index.title.suno`]]):a(``,!0),p.site?.features?.luma?.enabled?c((f(),l(x,{key:4,index:`/luma`},null,512)),[[j,`index.title.luma`]]):a(``,!0)]),_:1},8,[`index`]),c(i(x,{index:`/business`},null,512),[[j,`index.nav.business`]]),p.isMainOfficialHost?c((f(),l(x,{key:0,onRoute:e=>void 0,onClick:p.onDownload},null,8,[`onClick`])),[[j,`common.nav.mobileApp`]]):a(``,!0),c(i(x,{onRoute:e=>void 0,onClick:m[0]||=e=>p.openTab(`https://platform.acedata.cloud`)},null,512),[[j,`common.nav.apiPlatform`]]),c(i(x,{onRoute:e=>void 0,onClick:m[1]||=e=>p.openTab(`https://platform.acedata.cloud/support`)},null,512),[[j,`common.nav.support`]]),c(i(x,{onRoute:e=>void 0,onClick:m[2]||=e=>p.openTab(`https://platform.acedata.cloud/earning`)},null,512),[[j,`common.nav.referral`]])]),_:1},8,[`default-active`,`onSelect`])]),_:1})),p.isMinimalHeader?a(``,!0):(f(),l(b,{key:3,md:4,xs:11},{default:u(()=>[p.authenticated?(f(),o(`div`,U,[e(`div`,{class:`console`,onClick:m[3]||=(...e)=>p.onConsole&&p.onConsole(...e)},r(p.$t(`common.button.console`)),1),i(k,{trigger:`click`},{dropdown:u(()=>[i(O,null,{default:u(()=>[i(D,{onClick:p.onProfile},{default:u(()=>[n(r(p.$t(`common.button.profile`)),1)]),_:1},8,[`onClick`]),i(D,{onClick:p.onLogout},{default:u(()=>[n(r(p.$t(`common.button.logout`)),1)]),_:1},8,[`onClick`])]),_:1})]),default:u(()=>[e(`img`,{src:p.user?.avatar||p.defaultAvatar,class:`avatar`},null,8,W)]),_:1})])):(f(),o(`div`,H,[i(w,{type:`primary`,class:`float-right`,size:`small`,round:``,onClick:p.onLogin},{default:u(()=>[n(r(p.$t(`common.button.login`)),1)]),_:1},8,[`onClick`]),i(T,{class:`locale float-right mr-4`}),i(E,{class:`float-right mr-4`})]))]),_:1}))]),_:1},8,[`class`])}var K=p({name:`LayoutIndex`,components:{TopHeader:O(V,[[`render`,G]]),BottomFooter:z,ElContainer:y,ElMain:g,ElFooter:_,ElHeader:v}});function q(e,t,n,r,a,o){let c=s(`top-header`),d=s(`el-header`),p=s(`router-view`),m=s(`el-main`),h=s(`bottom-footer`),g=s(`el-footer`),_=s(`el-container`);return f(),l(_,{class:`wrapper min-h-[100vh]`},{default:u(()=>[i(d,{class:`header p-0 h-auto`},{default:u(()=>[i(c)]),_:1}),i(m,{class:`main`},{default:u(()=>[i(p)]),_:1}),i(g,{class:`footer p-0 h-auto`},{default:u(()=>[i(h)]),_:1})]),_:1})}var J=O(K,[[`render`,q]]);export{J as default};
@@ -1,2 +0,0 @@
1
- import"./rolldown-runtime--c01j_DQ.js";import{A as e,B as t,C as n,Gt as r,I as i,Jt as a,L as o,M as s,Mt as c,N as l,Q as u,S as d,St as ee,T as f,U as p,Y as te,at as m,ft as h,ht as g,it as _,j as v,k as y,mt as b,nt as x,ot as S,qt as C,rt as w,st as ne,tt as T,wt as E,z as D}from"./vendor-chart-Dw-P17PN.js";import{$ as O,F as k,a as A,d as j,h as M,wt as N}from"./icon-CDmWyIgD.js";import{a as P,c as F,i as I,t as L}from"./install-Cn-SLM3u.js";import{n as R,r as z,t as B}from"./select-wY9TwNLt.js";import{t as V}from"./time-picker-CYu5_pex.js";import{r as H}from"./tabs-BJDTXj1f.js";import{n as U,t as W}from"./form-BdKMEyCR.js";import{t as G}from"./tooltip-PxOz6ppS.js";import{t as K}from"./event-BGnHezxC.js";import{v as q}from"./models-CqVJobW3.js";import{t as J}from"./card-IQwqnRJR.js";import{r as re,t as ie}from"./radio-BNhFzeBO.js";import{t as ae}from"./drawer-DJdzJAMX.js";import{n as oe,r as se,t as ce}from"./dropdown-DY0sjU-2.js";import{t as le}from"./empty-C5KjRN0h.js";import{t as ue}from"./input-number-fuqReC6J.js";import{t as de}from"./skeleton-Dj_a_iIP.js";import{t as fe}from"./switch-8cXwRWIx.js";import{t as pe}from"./brain-Cyy8oGsv.js";import{t as me}from"./chevron-right-CRvECZCm.js";import{t as he}from"./circle-check-D7hjV2PR.js";import{t as ge}from"./clock-TfK5B4Zb.js";import{t as _e}from"./copy-BMJmKdRm.js";import{t as ve}from"./pencil-D7SGNeIp.js";import{t as ye}from"./play-BmYbhXYA.js";import{t as be}from"./plug-B-m662gi.js";import{t as xe}from"./plus-CHwj8bVW.js";import{t as Se}from"./refresh-cw-Bfi117oJ.js";import{t as Ce}from"./trash-2-BKIKPGWW.js";import{t as Y}from"./vendor-axios-Ck2ffRoh.js";import{Vi as we,sa as Te,ta as Ee}from"./constants-BHt-rxvE.js";import{A as De,Aa as Oe,Ba as ke,Ca as Ae,Ma as je,O as Me,k as Ne,la as Pe,mn as Fe,sa as Ie,va as Le}from"./index-Dj-lkoyb.js";import{t as Re}from"./CopyToClipboard-CGlohic3.js";import{t as ze}from"./pagination-DwQF0fIF.js";import{t as Be}from"./BrowseConnectors-Dmtwr-L0.js";var Ve=O({space:{type:[Number,String],default:``},active:{type:Number,default:0},direction:{type:String,default:`horizontal`,values:[`horizontal`,`vertical`]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:[`wait`,`process`,`finish`,`error`,`success`],default:`finish`},processStatus:{type:String,values:[`wait`,`process`,`finish`,`error`,`success`],default:`process`}}),He={[K]:(e,t)=>[e,t].every(N)},Ue=`ElSteps`,We=P(D({...D({name:`ElSteps`}),props:Ve,emits:He,setup(e,{emit:n}){let i=e,a=F(`steps`),{children:s,addChild:u,removeChild:d,ChildrenSorter:ee}=H(t(),`ElStep`);return h(s,()=>{s.value.forEach((e,t)=>{e.setIndex(t)})}),x(Ue,{props:i,steps:s,addStep:u,removeStep:d}),h(()=>i.active,(e,t)=>{n(K,e,t)}),(e,t)=>(T(),l(`div`,{class:r([c(a).b(),c(a).m(e.simple?`simple`:e.direction)])},[_(e.$slots,`default`),o(c(ee))],2))}}),[[`__file`,`steps.vue`]]),Ge=O({title:{type:String,default:``},icon:{type:A},description:{type:String,default:``},status:{type:String,values:[``,`wait`,`process`,`finish`,`error`,`success`],default:``}}),Ke=P(D({...D({name:`ElStep`}),props:Ge,setup(n){let d=n,f=F(`step`),m=E(-1),g=E({}),x=E(``),S=p(Ue),w=t();u(()=>{h([()=>S.props.active,()=>S.props.processStatus,()=>S.props.finishStatus],([e])=>{W(e)},{immediate:!0})});let D=y(()=>d.status||x.value),O=y(()=>{let e=S.steps.value[m.value-1];return e?e.currentStatus:`wait`}),A=y(()=>S.props.alignCenter),P=y(()=>S.props.direction===`vertical`),I=y(()=>S.props.simple),L=y(()=>S.steps.value.length),R=y(()=>S.steps.value[L.value-1]?.uid===w.uid),z=y(()=>I.value?``:S.props.space),B=y(()=>[f.b(),f.is(I.value?`simple`:S.props.direction),f.is(`flex`,R.value&&!z.value&&!A.value),f.is(`center`,A.value&&!P.value&&!I.value)]),V=y(()=>{let e={flexBasis:N(z.value)?`${z.value}px`:z.value?z.value:`${100/(L.value-+!A.value)}%`};return P.value||R.value&&(e.maxWidth=`${100/L.value}%`),e}),H=e=>{m.value=e},U=e=>{let t=e===`wait`,n={transitionDelay:`${t?`-`:``}${150*m.value}ms`},r=e===S.props.processStatus||t?0:100;n.borderWidth=r&&!I.value?`1px`:0,n[S.props.direction===`vertical`?`height`:`width`]=`${r}%`,g.value=n},W=e=>{e>m.value?x.value=S.props.finishStatus:e===m.value&&O.value!==`error`?x.value=S.props.processStatus:x.value=`wait`;let t=S.steps.value[m.value-1];t&&t.calcProgress(x.value)},G=ee({uid:w.uid,getVnode:()=>w.vnode,currentStatus:D,setIndex:H,calcProgress:U});return S.addStep(G),te(()=>{S.removeStep(G)}),(t,n)=>(T(),l(`div`,{style:C(c(V)),class:r(c(B))},[s(` icon & line `),e(`div`,{class:r([c(f).e(`head`),c(f).is(c(D))])},[c(I)?s(`v-if`,!0):(T(),l(`div`,{key:0,class:r(c(f).e(`line`))},[e(`i`,{class:r(c(f).e(`line-inner`)),style:C(g.value)},null,6)],2)),e(`div`,{class:r([c(f).e(`icon`),c(f).is(t.icon||t.$slots.icon?`icon`:`text`)])},[_(t.$slots,`icon`,{},()=>[t.icon?(T(),v(c(k),{key:0,class:r(c(f).e(`icon-inner`))},{default:b(()=>[(T(),v(ne(t.icon)))]),_:1},8,[`class`])):c(D)===`success`?(T(),v(c(k),{key:1,class:r([c(f).e(`icon-inner`),c(f).is(`status`)])},{default:b(()=>[o(c(j))]),_:1},8,[`class`])):c(D)===`error`?(T(),v(c(k),{key:2,class:r([c(f).e(`icon-inner`),c(f).is(`status`)])},{default:b(()=>[o(c(M))]),_:1},8,[`class`])):c(I)?s(`v-if`,!0):(T(),l(`div`,{key:3,class:r(c(f).e(`icon-inner`))},a(m.value+1),3))])],2)],2),s(` title & description `),e(`div`,{class:r(c(f).e(`main`))},[e(`div`,{class:r([c(f).e(`title`),c(f).is(c(D))])},[_(t.$slots,`title`,{},()=>[i(a(t.title),1)])],2),c(I)?(T(),l(`div`,{key:0,class:r(c(f).e(`arrow`))},null,2)):(T(),l(`div`,{key:1,class:r([c(f).e(`description`),c(f).is(c(D))])},[_(t.$slots,`description`,{},()=>[i(a(t.description),1)])],2))],2)],6))}}),[[`__file`,`item.vue`]]),qe=L(We,{Step:Ke}),Je=I(Ke);function X(e){let t=Fe();return{Authorization:`Bearer ${e}`,"Content-Type":`application/json`,...t?{"x-site-origin":t}:{}}}var Z=`${Te}/aichat2/scheduled-tasks`,Ye=2e4,Xe=3300;function Ze(e,t){return e.status!==`queued`&&e.status!==`running`?!1:t/1e3-e.scheduled_at<Xe}function Qe(e){let t=e?.response?.data;return t?.error===`skill_not_active`?t.detail??{kind:`skill`,slug:``,reason:`not_active`}:null}var Q=new class{async listTasks(e){let{data:t}=await Y.post(Z,{action:`retrieve_batch`},{headers:X(e)});return t?.items??[]}async createTask(e,t,n=!1){let{data:r}=await Y.post(Z,{action:`create`,...t,...n?{force:!0}:{}},{headers:X(e)});return r}async updateTask(e,t,n,r=!1){let{data:i}=await Y.post(Z,{action:`update`,id:t,...n,...r?{force:!0}:{}},{headers:X(e)});return i}async deleteTask(e,t){await Y.post(Z,{action:`delete`,id:t},{headers:X(e)})}async triggerTask(e,t){let{data:n}=await Y.post(Z,{action:`trigger`,id:t},{headers:X(e)});return n??{}}async listRuns(e,t){let{data:n}=await Y.post(Z,{action:`retrieve_runs`,id:t},{headers:X(e),timeout:Ye});return n?.items??[]}async listAllRuns(e,t={}){let{data:n}=await Y.post(Z,{action:`retrieve_runs_batch`,...t},{headers:X(e),timeout:Ye});return{items:n?.items??[],count:n?.count??0}}async listTemplates(e,t={}){let{data:n}=await Y.post(Z,{action:`retrieve_template_batch`,...t},{headers:X(e)});return{items:n?.items??[],categories:n?.categories??[]}}async previewTemplate(e,t,n,r){let{data:i}=await Y.post(Z,{action:`preview_template`,template_id:t,version:n,inputs:r},{headers:X(e)});return i}async instantiateTemplate(e,t){let{data:n}=await Y.post(Z,{action:`instantiate_template`,...t},{headers:X(e)});return n}async enableTemplateTask(e,t){let{data:n}=await Y.post(Z,{action:`enable`,id:t},{headers:X(e)});return n}async listAuthorizableSkills(e){let{data:t}=await Y.post(Z,{action:`retrieve_authorizable_skills`},{headers:X(e)});return t?.items??[]}async listAuthorizableCapabilities(e){let{data:t}=await Y.post(Z,{action:`retrieve_authorizable_skills`},{headers:X(e)});return{skills:t?.skills??t?.items??[],mcp_servers:t?.mcp_servers??[]}}},$e=[`UTC`,`Asia/Shanghai`,`Asia/Hong_Kong`,`Asia/Tokyo`,`Asia/Seoul`,`Asia/Singapore`,`Asia/Kolkata`,`Europe/London`,`Europe/Paris`,`Europe/Berlin`,`Europe/Moscow`,`America/New_York`,`America/Chicago`,`America/Denver`,`America/Los_Angeles`,`America/Toronto`,`America/Sao_Paulo`,`Australia/Sydney`,`Pacific/Auckland`];function et(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||`Asia/Shanghai`}catch{return`Asia/Shanghai`}}function tt(e){if(!e?.trim())return!1;try{return new Intl.DateTimeFormat(`en-US`,{timeZone:e}).format(0),!0}catch{return!1}}function nt(e,t=new Date){try{let n=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`shortOffset`}).formatToParts(t).find(({type:e})=>e===`timeZoneName`)?.value;return!n||n===`GMT`?`UTC`:n.replace(`GMT`,`UTC`)}catch{return``}}function rt(e,t=new Date){let n=nt(e,t);return n?`${e} (${n})`:e}function it(...e){let t=[];try{let e=Intl.supportedValuesOf;t=e?.(`timeZone`)??[]}catch{t=[]}return[...new Set([`UTC`,...e.filter(e=>!!e),...t,...$e])].filter(tt).sort((e,t)=>e.localeCompare(t))}var at=D({name:`ScheduledTemplateWizard`,components:{BrowseConnectors:Be,ConnectionIcon:be,ElButton:je,ElDialog:Ae,ElForm:W,ElFormItem:U,ElInput:ke,ElOption:B,ElSelect:z,ElStep:Je,ElSteps:qe,ElSwitch:fe,ElTag:Oe,ElTimePicker:V,SuccessIcon:he},props:{modelValue:{type:Boolean,default:!1},token:{type:String,required:!0},initialCategory:{type:String,default:``}},emits:[`update:modelValue`,`created`],data(){return{visible:this.modelValue,step:0,loading:!1,working:!1,templates:[],categories:[],selected:null,query:``,category:this.initialCategory,inputs:{},scheduleTime:`09:00`,connectionBindings:{},browseConnections:!1}},computed:{canContinue(){return this.step===0?!!this.selected:this.step===1&&this.selected?this.selected.form_schema.every(e=>!e.required||String(this.inputs[e.key]??``).trim()):this.step===2&&this.selected?this.selected.requirements.connections.every(this.connectionReady):!0}},watch:{modelValue(e){this.visible=e,e&&this.loadTemplates()},visible(e){this.$emit(`update:modelValue`,e)}},methods:{async loadTemplates(){this.loading=!0;try{let e=await Q.listTemplates(this.token,{category:this.category,query:this.query});this.templates=e.items,this.categories=e.categories,this.selected&&=e.items.find(e=>e.id===this.selected?.id)??this.selected}catch{q.error(this.$t(`chat.scheduledTemplates.loadError`))}finally{this.loading=!1}},filterTemplates(){this.loadTemplates()},categoryLabel(e){let t=`chat.scheduledTemplates.category.${e}`,n=String(this.$t(t));return n===t?e:n},selectTemplate(e){this.selected=e,this.inputs=Object.fromEntries(e.form_schema.filter(e=>e.default!==void 0).map(e=>[e.key,e.default])),this.scheduleTime=this.scheduleTimeFromSpec(e.defaults.schedule),this.connectionBindings={};for(let t of e.requirements.connections){let e=this.bindableAccounts(t),n=e.find(e=>e.is_default)??e[0];n&&(this.connectionBindings[t]=n.connection_id)}},connectionAccounts(e){return this.selected?.connection_accounts?.[e]??[]},bindableAccounts(e){return this.connectionAccounts(e).filter(e=>e.supports_task_binding)},connectionReady(e){let t=this.connectionAccounts(e),n=t.filter(e=>e.supports_task_binding);return t.length?n.length?n.length===1||!!this.connectionBindings[e]:!0:!1},connectionName(e){let t=this.connectionAccounts(e)[0];return t?.account_name||t?.label||e.split(`/`).pop()||e},connectionDescription(e){let t=this.connectionAccounts(e);return t.length?t[0].supports_task_binding?this.$t(`chat.scheduledTemplates.connectionBoundHint`):this.$t(`chat.scheduledTemplates.connectionMcpHint`):this.$t(`chat.scheduledTemplates.connectionMissingHint`)},connectionAccountSummary(e){let t=this.connectionAccounts(e),n=this.connectionBindings[e],r=t.find(e=>e.connection_id===n)??t[0];return r?.label||r?.account_name||this.$t(`chat.scheduledTemplates.connected`)},async reloadTemplates(){this.browseConnections=!1,await this.loadTemplates(),this.selected&&this.selectTemplate(this.selected)},scheduleTimeFromSpec(e){if(e.type!==`cron`)return`09:00`;let[t,n]=e.cron.split(` `);return`${n.padStart(2,`0`)}:${t.padStart(2,`0`)}`},buildSchedule(){let[e,t]=this.scheduleTime.split(`:`);return{type:`cron`,cron:`${t} ${e} * * *`,tz:Intl.DateTimeFormat().resolvedOptions().timeZone}},bindings(){return this.selected?this.selected.requirements.connections.flatMap(e=>{let t=this.bindableAccounts(e),n=this.connectionBindings[e]||t[0]?.connection_id,r=t.find(e=>e.connection_id===n);return r?[{connector_identifier:r.connector_identifier,connection_id:r.connection_id}]:[]}):[]},errorMessage(e){let t=e?.response?.data;return t?.message||t?.error||e?.message||String(this.$t(`chat.scheduledTemplates.createFailed`))},resetWizard(){this.step=0,this.selected=null,this.inputs={},this.scheduleTime=`09:00`,this.connectionBindings={},this.browseConnections=!1},async createTask(){if(!(!this.selected||!this.canContinue)){this.working=!0;try{let e=await Q.instantiateTemplate(this.token,{template_id:this.selected.id,version:this.selected.version,inputs:this.inputs,schedule:this.buildSchedule(),connection_bindings:this.bindings()});this.$emit(`created`,e),this.visible=!1,this.resetWizard(),q.success(this.$t(`chat.scheduledTemplates.createdDisabled`))}catch(e){q.error(this.errorMessage(e))}finally{this.working=!1}}}}}),ot={key:0,class:`wizard-body`},st={class:`template-toolbar`},ct={class:`template-grid`},lt=[`onClick`],ut={class:`template-card-top`},dt={class:`template-tags`},ft={key:1,class:`wizard-body configure-step`},pt={class:`template-intro`},mt={key:2,class:`wizard-body`},ht={class:`requirement-heading`},gt={key:0,class:`requirement-empty ready`},_t={class:`requirement-list`},vt={class:`requirement-icon`},yt={class:`requirement-content`},bt={class:`requirement-title-row`},xt={key:0,class:`account-summary`},St={class:`requirement-action`};function Ct(t,n,c,u,d,ee){let p=m(`el-step`),te=m(`el-steps`),h=m(`el-input`),_=m(`el-option`),y=m(`el-select`),x=m(`el-tag`),C=m(`el-switch`),ne=m(`el-time-picker`),E=m(`el-form-item`),D=m(`el-form`),O=m(`success-icon`),k=m(`connection-icon`),A=m(`el-button`),j=m(`browse-connectors`),M=m(`el-dialog`),N=S(`loading`);return T(),v(M,{modelValue:t.visible,"onUpdate:modelValue":n[7]||=e=>t.visible=e,title:t.$t(`chat.scheduledTemplates.title`),width:`min(820px, 94vw)`,top:`6vh`,"close-on-click-modal":!1,class:`scheduled-template-wizard`},{footer:b(()=>[t.step>0?(T(),v(A,{key:0,disabled:t.working,onClick:n[5]||=e=>--t.step},{default:b(()=>[i(a(t.$t(`chat.scheduledTemplates.previous`)),1)]),_:1},8,[`disabled`])):s(``,!0),t.step<2?(T(),v(A,{key:1,type:`primary`,disabled:!t.canContinue,onClick:n[6]||=e=>t.step+=1},{default:b(()=>[i(a(t.$t(`chat.scheduledTemplates.next`)),1)]),_:1},8,[`disabled`])):s(``,!0),t.step===2?(T(),v(A,{key:2,type:`primary`,loading:t.working,disabled:!t.canContinue,onClick:t.createTask},{default:b(()=>[i(a(t.$t(`chat.scheduledTemplates.create`)),1)]),_:1},8,[`loading`,`disabled`,`onClick`])):s(``,!0)]),default:b(()=>[o(te,{active:t.step,"finish-status":`finish`,"align-center":``,class:`wizard-steps`},{default:b(()=>[o(p,{title:t.$t(`chat.scheduledTemplates.step.choose`)},null,8,[`title`]),o(p,{title:t.$t(`chat.scheduledTemplates.step.configure`)},null,8,[`title`]),o(p,{title:t.$t(`chat.scheduledTemplates.step.connect`)},null,8,[`title`])]),_:1},8,[`active`]),t.step===0?g((T(),l(`section`,ot,[e(`div`,st,[o(h,{modelValue:t.query,"onUpdate:modelValue":n[0]||=e=>t.query=e,clearable:``,placeholder:t.$t(`chat.scheduledTemplates.search`),onInput:t.filterTemplates},null,8,[`modelValue`,`placeholder`,`onInput`]),o(y,{modelValue:t.category,"onUpdate:modelValue":n[1]||=e=>t.category=e,onChange:t.filterTemplates},{default:b(()=>[o(_,{label:t.$t(`chat.scheduledTemplates.category.all`),value:``},null,8,[`label`]),(T(!0),l(f,null,w(t.categories,e=>(T(),v(_,{key:e,label:t.categoryLabel(e),value:e},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`onChange`])]),e(`div`,ct,[(T(!0),l(f,null,w(t.templates,n=>(T(),l(`button`,{key:`${n.id}-${n.version}`,type:`button`,class:r([`template-card`,{selected:t.selected?.id===n.id}]),onClick:e=>t.selectTemplate(n)},[e(`div`,ut,[e(`strong`,null,a(n.title),1),n.featured?(T(),v(x,{key:0,size:`small`,type:`warning`},{default:b(()=>[i(a(t.$t(`chat.scheduledTemplates.featured`)),1)]),_:1})):s(``,!0)]),e(`p`,null,a(n.summary),1),e(`div`,dt,[(T(!0),l(f,null,w(n.categories,e=>(T(),v(x,{key:e,size:`small`,type:`info`},{default:b(()=>[i(a(t.categoryLabel(e)),1)]),_:2},1024))),128))]),e(`span`,{class:r([`availability`,{ready:n.available}])},a(n.available?t.$t(`chat.scheduledTemplates.ready`):t.$t(`chat.scheduledTemplates.missingCount`,{count:n.missing_connections.length})),3)],10,lt))),128))])])),[[N,t.loading]]):t.step===1&&t.selected?(T(),l(`section`,ft,[e(`div`,pt,[e(`h3`,null,a(t.selected.title),1),e(`p`,null,a(t.selected.description),1)]),o(D,{"label-position":`top`},{default:b(()=>[(T(!0),l(f,null,w(t.selected.form_schema,e=>(T(),v(E,{key:e.key,label:e.label,required:e.required},{default:b(()=>[e.type===`select`?(T(),v(y,{key:0,modelValue:t.inputs[e.key],"onUpdate:modelValue":n=>t.inputs[e.key]=n,style:{width:`100%`}},{default:b(()=>[(T(!0),l(f,null,w(e.options,e=>(T(),v(_,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:2},1032,[`modelValue`,`onUpdate:modelValue`])):e.type===`boolean`?(T(),v(C,{key:1,"model-value":t.inputs[e.key]===!0,"onUpdate:modelValue":n=>t.inputs[e.key]=n===!0},null,8,[`model-value`,`onUpdate:modelValue`])):e.type===`time`?(T(),v(ne,{key:2,"model-value":String(t.inputs[e.key]??``),"value-format":`HH:mm`,"onUpdate:modelValue":n=>t.inputs[e.key]=n},null,8,[`model-value`,`onUpdate:modelValue`])):(T(),v(h,{key:3,"model-value":String(t.inputs[e.key]??``),type:e.type===`textarea`?`textarea`:`text`,rows:4,"onUpdate:modelValue":n=>t.inputs[e.key]=n},null,8,[`model-value`,`type`,`onUpdate:modelValue`]))]),_:2},1032,[`label`,`required`]))),128)),o(E,{label:t.$t(`chat.scheduledTemplates.schedule`)},{default:b(()=>[o(ne,{modelValue:t.scheduleTime,"onUpdate:modelValue":n[2]||=e=>t.scheduleTime=e,"value-format":`HH:mm`,format:`HH:mm`},null,8,[`modelValue`])]),_:1},8,[`label`])]),_:1})])):t.step===2&&t.selected?(T(),l(`section`,mt,[e(`div`,ht,[e(`div`,null,[e(`h3`,null,a(t.$t(`chat.scheduledTemplates.connectionTitle`)),1),e(`p`,null,a(t.$t(`chat.scheduledTemplates.connectionDescription`)),1)]),o(x,{type:`info`,round:``},{default:b(()=>[i(a(t.selected.requirements.connections.length),1)]),_:1})]),t.selected.requirements.connections.length?s(``,!0):(T(),l(`div`,gt,[o(O,{size:20}),e(`div`,null,[e(`strong`,null,a(t.$t(`chat.scheduledTemplates.noConnections`)),1),e(`p`,null,a(t.$t(`chat.scheduledTemplates.noConnectionsHint`)),1)])])),e(`div`,_t,[(T(!0),l(f,null,w(t.selected.requirements.connections,c=>(T(),l(`article`,{key:c,class:r([`requirement-card`,{ready:t.connectionReady(c)}])},[e(`div`,vt,[o(k,{size:22,"aria-hidden":`true`,focusable:`false`})]),e(`div`,yt,[e(`div`,bt,[e(`strong`,null,a(t.connectionName(c)),1),o(x,{type:t.connectionReady(c)?`success`:`warning`,size:`small`,round:``},{default:b(()=>[i(a(t.connectionReady(c)?t.$t(`chat.scheduledTemplates.connected`):t.$t(`chat.scheduledTemplates.notConnected`)),1)]),_:2},1032,[`type`])]),e(`p`,null,a(t.connectionDescription(c)),1),t.connectionReady(c)?(T(),l(`div`,xt,a(t.connectionAccountSummary(c)),1)):s(``,!0)]),e(`div`,St,[t.bindableAccounts(c).length>1?(T(),v(y,{key:0,modelValue:t.connectionBindings[c],"onUpdate:modelValue":e=>t.connectionBindings[c]=e,placeholder:t.$t(`chat.scheduledTemplates.chooseAccount`)},{default:b(()=>[(T(!0),l(f,null,w(t.bindableAccounts(c),e=>(T(),v(_,{key:e.connection_id,label:e.label||e.account_name,value:e.connection_id},null,8,[`label`,`value`]))),128))]),_:2},1032,[`modelValue`,`onUpdate:modelValue`,`placeholder`])):t.connectionReady(c)?(T(),v(O,{key:2,class:`success`,size:22})):(T(),v(A,{key:1,type:`primary`,plain:``,onClick:n[3]||=e=>t.browseConnections=!0},{default:b(()=>[i(a(t.$t(`chat.scheduledTemplates.connect`)),1)]),_:1}))])],2))),128))]),o(j,{modelValue:t.browseConnections,"onUpdate:modelValue":n[4]||=e=>t.browseConnections=e,onInstalled:t.reloadTemplates},null,8,[`modelValue`,`onInstalled`])])):s(``,!0)]),_:1},8,[`modelValue`,`title`])}var wt=Me(at,[[`render`,Ct],[`__scopeId`,`data-v-21e862e6`]]),$=et(),Tt=50,Et=12*1e3,Dt=3,Ot=D({name:`ScheduledTasks`,components:{AiIcon:pe,ExpandRightIcon:me,PlayIcon:ye,TimeIcon:ge,AddIcon:xe,CopyIcon:_e,DeleteIcon:Ce,EditIcon:ve,RefreshIcon:Se,ElButton:je,ElCard:J,ElSkeleton:de,ElEmpty:le,ElSwitch:fe,ElTag:Oe,ElTooltip:G,ElDrawer:ae,ElDialog:Ae,ElForm:W,ElFormItem:U,ElInput:ke,ElSelect:z,ElOption:B,ElOptionGroup:R,ElRadioGroup:re,ElRadio:ie,ElTimePicker:V,ElInputNumber:ue,ElDropdown:ce,ElDropdownMenu:se,ElDropdownItem:oe,Pagination:ze,CopyToClipboard:Re,ScheduledTemplateWizard:wt},data(){return{tasks:[],runs:[],activeTab:`tasks`,tabs:[`tasks`,`runs`],statusFilters:[`all`,`success`,`failed`,`indeterminate`,`skipped`,`running`,`queued`],allRuns:[],allRunsCount:0,allRunsLoading:!1,allRunsStatus:`all`,allRunsPage:1,allRunsPageSize:20,allRunsRequestId:0,loading:!1,runsLoading:!1,skillsLoading:!1,skillsInflight:null,saving:!1,showCreateDialog:!1,showTemplateWizard:!1,templateInitialCategory:``,showRunHistory:!1,selectedTask:null,editingTask:null,authorizableSkills:[],authorizableMcpServers:[],triggeringId:``,weekdays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],page:1,pageSize:6,runPage:1,runPageSize:8,runPollTimer:null,runPollInFlight:!1,runPollSeq:0,runPollFailures:0,runsRequestId:0,form:this.emptyForm(),deviceIdentity:null,localToolSpecs:[]}},computed:{canRunLocally(){return Pe()&&!!this.deviceIdentity},localUnavailableReason(){if(this.canRunLocally)return``;let e=Ie();return e===`ios`||e===`android`?this.$t(`chat.scheduledTasks.form.executionMobileUnsupported`):e===`web`?this.$t(`chat.scheduledTasks.form.executionWebUnsupported`):this.$t(`chat.scheduledTasks.form.executionDeviceUnavailable`)},token(){return this.$store.state.chat?.credential?.token},modelGroups(){let e=this.$store.state.site?.features??{};return we.filter(t=>e[t.name]?.enabled!==!1).map(e=>({...e,models:e.models.filter(e=>e.enabled!==!1)})).filter(e=>e.models.length>0)},pagedTasks(){let e=(this.page-1)*this.pageSize;return this.tasks.slice(e,e+this.pageSize)},pagedRuns(){let e=(this.runPage-1)*this.runPageSize;return this.runs.slice(e,e+this.runPageSize)},intervalMax(){return this.form.intervalUnit===`minute`?1440:this.form.intervalUnit===`hour`?720:365},schedulePreview(){try{return this.scheduleLabel(this.buildSchedule())}catch{return``}},timezoneOptions(){return it($,this.form.timezone)},detectedTimezoneLabel(){return rt($)},selectedBrowserConnections(){let e=new Set(this.form.authorizedSkills);return this.authorizableSkills.filter(t=>e.has(t.slug)).flatMap(e=>e.browser_connections??[])},selectedBrowserSkills(){let e=new Set(this.form.authorizedSkills);return this.authorizableSkills.filter(t=>e.has(t.slug)&&t.browser_connections!==void 0)},selectedBrowserConnection(){return this.selectedBrowserConnections.find(e=>e.connection_id===this.form.browserConnectionId)},accountChoices(){let e=new Set(this.form.authorizedSkills),t=new Map;for(let n of this.authorizableSkills)if(e.has(n.slug))for(let[e,r]of Object.entries(n.connection_accounts??{})){if((r?.length??0)<2)continue;let n=r[0].connector_identifier||e;t.has(n)||t.set(n,{label:e,accounts:r})}return[...t.entries()].map(([e,{label:t,accounts:n}])=>({identifier:e,label:t,accounts:n}))}},watch:{showRunHistory(e){e||(this.selectedTask=null,this.runsRequestId+=1,this.runsLoading=!1,this.runPollFailures=0,this.syncRunPolling())}},async mounted(){document.addEventListener(`visibilitychange`,this.onVisibilityChange),await this.loadTasks(),this.$route?.query?.template_category&&this.openTemplateGallery()},unmounted(){document.removeEventListener(`visibilitychange`,this.onVisibilityChange),this.stopRunPolling()},methods:{emptyForm(){return{name:``,question:``,model:Ee,scheduleType:`daily`,intervalValue:4,intervalUnit:`hour`,hourlyMinute:0,dailyTime:`09:00`,weekday:1,cronExpr:`0 9 * * *`,timezone:$,authorizedSkills:[],authorizedMcpServers:[],browserConnectionId:``,connectionAccounts:{},authorizationExpiresAt:Math.floor(Date.now()/1e3)+720*60*60,maxTurns:Tt,execution:`cloud`,authorizedLocalTools:[]}},deriveName(e){let t=(e||``).trim().split(`
2
- `)[0].trim();return t.length>40?`${t.slice(0,40)}…`:t||`Scheduled Task`},async loadTasks(){if(this.token){this.loading=!0;try{this.tasks=await Q.listTasks(this.token);let e=Math.max(1,Math.ceil(this.tasks.length/this.pageSize));this.page>e&&(this.page=e)}catch{q.error(this.$t(`chat.scheduledTasks.loadError`))}finally{this.loading=!1}}},async selectTask(e){this.selectedTask=e,this.showRunHistory=!0,this.runPage=1,await this.loadTaskRuns(e.id)},async loadTaskRuns(e,t=!1){if(!this.token)return;let n=++this.runsRequestId;t||(this.runsLoading=!0,this.runPollFailures=0);try{let t=await Q.listRuns(this.token,e);if(n!==this.runsRequestId||!this.showRunHistory||this.selectedTask?.id!==e)return;this.runs=t,this.runPollFailures=0}catch{if(n!==this.runsRequestId)return;this.runPollFailures+=1,t||q.error(this.$t(`chat.scheduledTasks.loadError`))}finally{n===this.runsRequestId&&(this.runsLoading=!1,this.syncRunPolling())}},onPageChange(e){this.page=e},switchTab(e){this.activeTab!==e&&(this.activeTab=e,e===`runs`?this.loadAllRuns():this.stopRunPolling())},onStatusFilter(e){this.allRunsStatus!==e&&(this.allRunsStatus=e,this.allRunsPage=1,this.loadAllRuns())},onAllRunsPageChange(e){this.allRunsPage=e,this.loadAllRuns()},async loadAllRuns(e=!1){if(!this.token)return;let t=++this.allRunsRequestId;e||(this.allRunsLoading=!0,this.runPollFailures=0);try{let{items:e,count:n}=await Q.listAllRuns(this.token,{status:this.allRunsStatus===`all`?void 0:this.allRunsStatus,offset:(this.allRunsPage-1)*this.allRunsPageSize,limit:this.allRunsPageSize});if(t!==this.allRunsRequestId)return;this.allRuns=e,this.allRunsCount=n,this.runPollFailures=0}catch{if(t!==this.allRunsRequestId)return;this.runPollFailures+=1,e||q.error(this.$t(`chat.scheduledTasks.loadError`))}finally{t===this.allRunsRequestId&&(this.allRunsLoading=!1,this.syncRunPolling())}},onRunPageChange(e){this.runPage=e},visibleRuns(){return this.showRunHistory?this.runs:this.activeTab===`runs`?this.allRuns:[]},syncRunPolling(){let e=Date.now();if(!(this.token&&this.runPollFailures<Dt&&this.visibleRuns().some(t=>Ze(t,e)))||document.hidden){this.stopRunPolling();return}this.runPollTimer||=setInterval(()=>void this.pollRuns(),Et)},stopRunPolling(){this.runPollTimer&&=(clearInterval(this.runPollTimer),null)},async pollRuns(){if(!this.token){this.stopRunPolling();return}if(this.runPollInFlight)return;let e=++this.runPollSeq;this.runPollInFlight=!0;try{this.showRunHistory&&this.selectedTask?await this.loadTaskRuns(this.selectedTask.id,!0):this.activeTab===`runs`?await this.loadAllRuns(!0):this.stopRunPolling()}finally{e===this.runPollSeq&&(this.runPollInFlight=!1)}},onVisibilityChange(){document.hidden?this.stopRunPolling():(this.runPollFailures=0,this.runPollInFlight=!1,this.pollRuns(),this.syncRunPolling())},openTemplateGallery(){this.saving||(this.templateInitialCategory=String(this.$route.query.template_category??``),this.showTemplateWizard=!0)},onCreateCommand(e){e===`custom`?this.openCreate():this.openTemplateGallery()},onTemplateCreated(e){this.tasks=[e,...this.tasks.filter(t=>t.id!==e.id)],this.page=1},openCreate(){this.saving||(this.editingTask=null,this.form=this.emptyForm(),this.showCreateDialog=!0,this.loadDesktopContext())},async loadDesktopContext(){if(!Pe())return;let e=Ne()?.scheduler;if(e)try{this.deviceIdentity=await e.identity()}catch{this.deviceIdentity=null}try{this.localToolSpecs=await De()?.listTools()??[]}catch{this.localToolSpecs=[]}},closeTaskDialog(){this.saving||(this.showCreateDialog=!1)},taskToForm(e){let t=e.schedule,n=`cron`,r=4,i=`hour`,a=0,o=`09:00`,s=`0 9 * * *`,c=1;if(t.type===`cron`){s=t.cron;let[e,r,i,l,u]=t.cron.split(/\s+/),d=e=>/^\d+$/.test(e);i===`*`&&l===`*`&&u===`*`&&r===`*`&&d(e)?(n=`hourly`,a=Number(e)):i===`*`&&l===`*`&&u===`*`&&d(r)&&d(e)?(n=`daily`,o=`${r.padStart(2,`0`)}:${e.padStart(2,`0`)}`):i===`*`&&l===`*`&&d(u)&&d(r)&&d(e)&&(n=`weekly`,c=Number(u),o=`${r.padStart(2,`0`)}:${e.padStart(2,`0`)}`)}else if(t.type===`interval`){n=`interval`;let e=t.interval_seconds;e%86400==0?(i=`day`,r=e/86400):e%3600==0?(i=`hour`,r=e/3600):(i=`minute`,r=Math.max(1,Math.round(e/60)))}return{name:e.name,question:e.template.question,model:e.template.model,scheduleType:n,intervalValue:r,intervalUnit:i,hourlyMinute:a,dailyTime:o,weekday:c,cronExpr:s,timezone:t.tz||$,authorizedSkills:e.unattended_policy?.allowed_skills||[],authorizedMcpServers:e.unattended_policy?.allowed_mcp_servers||[],browserConnectionId:e.unattended_policy?.browser_connections?.[0]?.connection_id??``,connectionAccounts:Object.fromEntries((e.unattended_policy?.connection_bindings??[]).map(e=>[e.connector_identifier,e.connection_id])),authorizationExpiresAt:e.unattended_policy?.expires_at??Math.floor(Date.now()/1e3)+720*60*60,maxTurns:e.template.max_turns??Tt,execution:e.execution===`local`?`local`:`cloud`,authorizedLocalTools:e.unattended_policy?.allowed_local_tools||[]}},openEdit(e){this.editingTask=e,this.form=this.taskToForm(e),this.showCreateDialog=!0,this.loadAuthorizableSkills(),this.loadDesktopContext()},openDuplicate(e){this.saving||(this.editingTask=null,this.form={...this.taskToForm(e),name:this.nextCopyName(e.name),authorizationExpiresAt:Math.floor(Date.now()/1e3)+720*60*60},this.showCreateDialog=!0,this.loadAuthorizableSkills(),this.loadDesktopContext())},nextCopyName(e){let t=(e||``).trim()||this.$t(`chat.scheduledTasks.title`),n=new Set(this.tasks.map(e=>e.name)),r=e=>{let n=` ${e}`,r=80-n.length;if(t.length<=r)return`${t}${n}`;let i=``;for(let e of t){if(i.length+e.length>r)break;i+=e}return`${i}${n}`},i=2;for(;n.has(r(i));)i+=1;return r(i)},buildSchedule(){let{scheduleType:e,intervalValue:t,intervalUnit:n,hourlyMinute:r,dailyTime:i,weekday:a,cronExpr:o,timezone:s}=this.form;if(e===`interval`)return{type:`interval`,interval_seconds:Math.max(60,Math.round(t)*(n===`day`?86400:n===`hour`?3600:60)),tz:s};if(e===`hourly`)return{type:`cron`,cron:`${Math.min(59,Math.max(0,Math.round(r)))} * * * *`,tz:s};if(e===`daily`){let[e,t]=i.split(`:`);return{type:`cron`,cron:`${t} ${e} * * *`,tz:s}}if(e===`weekly`){let[e,t]=i.split(`:`);return{type:`cron`,cron:`${t} ${e} * * ${a}`,tz:s}}return{type:`cron`,cron:o,tz:s}},async saveTask(){if(!this.form.question.trim()){q.warning(this.$t(`chat.scheduledTasks.form.required`));return}if(!tt(this.form.timezone)){q.warning(this.$t(`chat.scheduledTasks.form.timezoneInvalid`));return}let e=this.editingTask;this.saving=!0;let t;try{t=await this.loadAuthorizableSkills()}finally{this.saving=!1}if(!t||!this.showCreateDialog||this.editingTask!==e)return;if(this.form.authorizedSkills.length>0||this.form.authorizedMcpServers.length>0)try{await Le.confirm(this.authorizationConfirmText(),this.$t(`chat.scheduledTasks.form.skillsConfirmTitle`),{type:`warning`,confirmButtonText:this.$t(`common.button.confirm`),cancelButtonText:this.$t(`common.button.cancel`)})}catch{return}let n=[...this.form.authorizedSkills],r=[...this.form.authorizedMcpServers],i;if(this.selectedBrowserSkills.length){let e=this.selectedBrowserConnection;if(!e||!e.online||!e.compatible){q.error(this.$t(`chat.scheduledTasks.form.browserBindingInvalid`));return}i=[{connection_id:e.connection_id,connection_revision:e.connection_revision,device_id:e.device_id,wire_contract_digest:e.wire_contract_digest,policy_digest:e.policy_digest}]}let a=this.accountChoices.map(e=>({connector_identifier:e.identifier,connection_id:this.form.connectionAccounts[e.identifier]||``})).filter(e=>!!e.connection_id&&this.accountChoices.find(t=>t.identifier===e.connector_identifier)?.accounts.some(t=>t.connection_id===e.connection_id)),o=this.form.execution===`local`?[...this.form.authorizedLocalTools]:[],s={name:this.form.name.trim()||this.deriveName(this.form.question),schedule:this.buildSchedule(),template:{model:this.form.model,question:this.form.question,skills:n,mcp_servers:r,max_turns:this.form.maxTurns},created_surface:Ie(),...this.form.execution===`local`&&this.deviceIdentity?{execution:`local`,device_id:this.deviceIdentity.device_id,device_name:this.deviceIdentity.device_name}:{},unattended_policy:n.length||r.length||o.length?{allowed_skills:n,allowed_mcp_servers:r,...o.length?{allowed_local_tools:o}:{},browser_connections:i,connection_bindings:a.length?a:void 0,expires_at:this.form.authorizationExpiresAt}:{allowed_skills:[],allowed_mcp_servers:[]}};await this.submitTask(s,!1)},async submitTask(e,t){this.saving=!0;let n=null;try{if(this.editingTask){let n=this.editingTask.id,r=await Q.updateTask(this.token,n,e,t),i=this.tasks.findIndex(e=>e.id===n);i!==-1&&(this.tasks[i]=r)}else{let n=await Q.createTask(this.token,e,t);this.tasks=[n,...this.tasks],this.page=1}q.success(this.$t(`chat.scheduledTasks.create`)+` OK`),this.showCreateDialog=!1,this.editingTask=null,this.form=this.emptyForm()}catch(e){n=t?null:Qe(e),n||q.error(this.$t(`chat.scheduledTasks.loadError`))}finally{this.saving=!1}if(n){if(this.selectedBrowserSkills.length)return;await this.confirmForceSkill(n)&&await this.submitTask(e,!0)}},async confirmForceSkill(e){let t=this.capabilityLabel(e.slug);try{return await Le.confirm(this.$t(`chat.scheduledTasks.form.skillNotActiveMessage`,{name:t}),this.$t(`chat.scheduledTasks.form.skillNotActiveTitle`),{type:`warning`,confirmButtonText:this.$t(`chat.scheduledTasks.form.skillNotActiveForce`),cancelButtonText:this.$t(`common.button.cancel`)}),!0}catch{return!1}},capabilityLabel(e){let t=this.authorizableSkills.find(t=>t.slug===e);if(t)return t.name||t.slug;let n=this.authorizableMcpServers.find(t=>t.slug===e);return n?n.name||n.slug:e},async loadAuthorizableSkills(e=!1){return this.skillsInflight?this.skillsInflight:!this.token||!e&&(this.authorizableSkills.length||this.authorizableMcpServers.length)?!0:(this.skillsLoading=!0,this.skillsInflight=(async()=>{try{let e=await Q.listAuthorizableCapabilities(this.token);return this.authorizableSkills=e.skills,this.authorizableMcpServers=e.mcp_servers,!0}catch{return q.error(this.$t(`chat.scheduledTasks.loadError`)),!1}finally{this.skillsLoading=!1,this.skillsInflight=null}})(),this.skillsInflight)},onSkillSelectVisible(e){e&&this.loadAuthorizableSkills(!0)},skillLabel(e){return e.name||e.slug},mcpServerLabel(e){return e.name||e.slug},authorizationConfirmText(){let e=new Set(this.form.authorizedSkills),t=new Set(this.form.authorizedMcpServers),n=this.authorizableSkills.filter(t=>e.has(t.slug)).map(e=>this.skillLabel(e)),r=this.authorizableMcpServers.filter(e=>t.has(e.slug)).map(e=>this.mcpServerLabel(e));return this.$t(`chat.scheduledTasks.form.skillsConfirm`,{count:e.size+t.size,skills:[...n,...r].length?[...n,...r].join(`, `):[...Array.from(e),...Array.from(t)].join(`, `)})},async toggleState(e,t){let n=this.tasks.findIndex(t=>t.id===e.id),r=t?`enabled`:`disabled`;n!==-1&&(this.tasks[n]={...e,state:r});try{let i=t&&e.template_source?await Q.enableTemplateTask(this.token,e.id):await Q.updateTask(this.token,e.id,{state:r});n!==-1&&(this.tasks[n]=i)}catch{n!==-1&&(this.tasks[n]={...e,state:e.state});let r=t&&e.template_source?`chat.scheduledTemplates.enableFailed`:`chat.scheduledTasks.loadError`;q.error(this.$t(r))}},async triggerNow(e){if(!this.triggeringId){this.triggeringId=e.id;try{if(e.execution===`local`){let t=Ne()?.scheduler?.runNow;if(!t){q.warning(this.$t(`chat.scheduledTasks.triggerLocalUnavailable`));return}let n=await t(e.id);if(!n?.ok){let e=n?.reason===`not_on_this_device`?`chat.scheduledTasks.triggerWrongDevice`:n?.reason===`signed_out`?`chat.scheduledTasks.triggerSignedOut`:n?.reason===`already_running`?`chat.scheduledTasks.triggerAlreadyRunning`:`chat.scheduledTasks.triggerError`;q.warning(this.$t(e));return}}else await Q.triggerTask(this.token,e.id);q.success(this.$t(`chat.scheduledTasks.triggerSuccess`)),this.showRunHistory&&this.selectedTask?.id===e.id?(this.runPage=1,await this.loadTaskRuns(e.id)):this.activeTab===`runs`&&await this.loadAllRuns(!0)}catch{q.error(this.$t(`chat.scheduledTasks.triggerError`))}finally{this.triggeringId=``}}},async confirmDelete(e){await Le.confirm(this.$t(`chat.scheduledTasks.deleteConfirm`,{name:e.name}),{type:`warning`});try{await Q.deleteTask(this.token,e.id),this.tasks=this.tasks.filter(t=>t.id!==e.id);let t=Math.max(1,Math.ceil(this.tasks.length/this.pageSize));this.page>t&&(this.page=t)}catch{q.error(this.$t(`chat.scheduledTasks.loadError`))}},openRun(e){if(!e.conversation_id)return;let t=this.modelGroups.map(e=>e.name),n=e.conversation_model_group,r=this.$store.state.chat?.modelGroup?.name||`chatgpt`,i=n&&(t.length===0||t.includes(n))?n:r;this.$router.push(`/${i}/conversations/${e.conversation_id}`)},stateTagType(e){return e===`enabled`?`success`:e===`error`?`danger`:`info`},runTagType(e){return e===`success`?`success`:e===`failed`?`danger`:e===`indeterminate`||e===`skipped`?`info`:`warning`},accountTagText(e){let t=e.provider_alias||e.connector_identifier,n=e.label||e.account_name;return n?`${t} · ${n}`:t},runOutcomeText(e){return e.outcome_reason?e.outcome_reason:this.runErrorText(e)},runErrorText(e){let t=e.error_code;return t&&this.$te(`chat.scheduledTasks.run.reason.${t}`)?this.errorCodeText(t):e.error_message?e.error_message:t?this.errorCodeText(t):``},errorCodeText(e){let t=`chat.scheduledTasks.run.reason.${e}`;return this.$te(t)?this.$t(t):e.replace(/_/g,` `)},humanizeSchedule(e){let t=(e,t)=>this.$t(`chat.scheduledTasks.humanize.${e}`,t??{});if(e.type===`interval`){let n=e.interval_seconds;return n%86400==0?t(`everyNDays`,{n:n/86400}):n%3600==0?t(`everyNHours`,{n:n/3600}):t(`everyNMinutes`,{n:Math.round(n/60)})}if(e.type===`cron`){let[n,r,i,a,o]=e.cron.split(/\s+/),s=e=>/^\d+$/.test(e);if(i===`*`&&a===`*`&&o===`*`&&r===`*`&&s(n))return t(`hourlyAtMinute`,{n:Number(n)});let c=s(r)&&s(n)?`${r.padStart(2,`0`)}:${n.padStart(2,`0`)}`:``;return c&&i===`*`&&a===`*`&&o===`*`?t(`dailyAt`,{time:c}):c&&i===`*`&&a===`*`&&s(o)?t(`weeklyAt`,{weekday:this.weekdays[Number(o)]??o,time:c}):t(`cronRaw`,{cron:e.cron})}return t(`once`,{time:new Date(e.at*1e3).toLocaleString()})},scheduleLabel(e){return`${this.humanizeSchedule(e)} · ${rt(e.tz)}`},timeZoneLabel(e){return rt(e)},formatTime(e){return new Date(e*1e3).toLocaleString()}}}),kt={class:`scheduled-tasks`},At={class:`inner`},jt={class:`header`},Mt={class:`title`},Nt=[`aria-label`],Pt=[`aria-selected`,`onClick`],Ft={key:1,class:`template-empty`},It={class:`template-empty-actions`},Lt={class:`task-list`},Rt={class:`task-top`},zt={class:`task-heading`},Bt={class:`task-name`},Vt={class:`task-id`},Ht={class:`task-id-text`},Ut={class:`task-meta`},Wt={class:`meta-chip`},Gt={class:`meta-chip`},Kt={key:1,class:`meta-chip`},qt={class:`task-prompt`},Jt={key:0,class:`task-last-output`},Yt={class:`task-footer`},Xt={class:`run-count`},Zt={key:0,class:`error-hint`},Qt={class:`open-hint`},$t={key:0,class:`pager`},en=[`aria-label`],tn=[`aria-pressed`,`onClick`],nn={class:`run-list`},rn=[`tabindex`,`role`,`onClick`,`onKeydown`],an={class:`run-body`},on={class:`run-line`},sn={class:`run-title`},cn={key:0,class:`run-preview`},ln={class:`run-sub`},un={class:`run-time`},dn=[`title`],fn={class:`run-action`},pn={key:1,class:`run-noconv`},mn={key:0,class:`pager`},hn={key:0,class:`run-context`},gn={class:`task-id run-context-id`},_n={class:`task-id-text`},vn={class:`run-context-meta`},yn={class:`run-context-prompt`},bn={key:3,class:`run-list`},xn=[`tabindex`,`role`,`onClick`,`onKeydown`],Sn={class:`run-body`},Cn={class:`run-line`},wn={class:`run-title`},Tn={key:0,class:`run-preview`},En={class:`run-sub`},Dn={class:`run-time`},On=[`title`],kn={class:`run-action`},An={key:1,class:`run-noconv`},jn={key:4,class:`pager run-pager`},Mn={class:`hint`},Nn={class:`inline-block`},Pn={class:`hint`},Fn={class:`hint`},In={key:0,class:`schedule-preview`},Ln={class:`hint`},Rn={class:`hint`},zn={class:`hint`},Bn={class:`jitter-hint`},Vn={class:`hint`},Hn={class:`skill-option`},Un={class:`skill-option-name`},Wn={key:0,class:`skill-option-missing`},Gn={class:`hint`},Kn={key:0,class:`browser-binding-summary`},qn={class:`hint`},Jn={class:`hint`};function Yn(t,c,u,ee,p,te){let h=m(`add-icon`),g=m(`el-dropdown-item`),_=m(`el-dropdown-menu`),y=m(`el-dropdown`),x=m(`el-skeleton`),S=m(`el-button`),C=m(`copy-to-clipboard`),ne=m(`el-switch`),E=m(`play-icon`),D=m(`el-tooltip`),O=m(`edit-icon`),k=m(`copy-icon`),A=m(`delete-icon`),j=m(`el-tag`),M=m(`time-icon`),N=m(`ai-icon`),P=m(`refresh-icon`),F=m(`expand-right-icon`),I=m(`el-card`),L=m(`pagination`),R=m(`el-empty`),z=m(`scheduled-template-wizard`),B=m(`el-drawer`),V=m(`el-input`),H=m(`el-form-item`),U=m(`el-option`),W=m(`el-option-group`),G=m(`el-select`),K=m(`el-radio`),q=m(`el-radio-group`),J=m(`el-input-number`),re=m(`el-time-picker`),ie=m(`el-form`),ae=m(`el-dialog`);return T(),l(`div`,kt,[e(`div`,At,[e(`div`,jt,[e(`h2`,Mt,a(t.$t(`chat.scheduledTasks.title`)),1),t.activeTab===`tasks`?(T(),v(y,{key:0,"split-button":``,type:`primary`,disabled:t.saving,onClick:t.openTemplateGallery,onCommand:t.onCreateCommand},{dropdown:b(()=>[o(_,null,{default:b(()=>[o(g,{command:`template`},{default:b(()=>[i(a(t.$t(`chat.scheduledTemplates.createFromTemplate`)),1)]),_:1}),o(g,{command:`custom`},{default:b(()=>[i(a(t.$t(`chat.scheduledTemplates.createCustom`)),1)]),_:1})]),_:1})]),default:b(()=>[o(h,{size:16,class:`icon`,"aria-hidden":`true`,focusable:`false`}),i(` `+a(t.$t(`chat.scheduledTasks.create`))+` `,1)]),_:1},8,[`disabled`,`onClick`,`onCommand`])):s(``,!0)]),e(`div`,{class:`tabs`,role:`tablist`,"aria-label":t.$t(`chat.scheduledTasks.title`)},[(T(!0),l(f,null,w(t.tabs,e=>(T(),l(`button`,{key:e,type:`button`,role:`tab`,class:r([`tab`,{active:t.activeTab===e}]),"aria-selected":t.activeTab===e,onClick:n=>t.switchTab(e)},a(t.$t(`chat.scheduledTasks.tab.${e}`)),11,Pt))),128))],8,Nt),t.activeTab===`tasks`?(T(),l(f,{key:0},[t.loading?(T(),v(x,{key:0,rows:4,animated:``,class:`loading-block`})):t.tasks.length?(T(),l(f,{key:2},[e(`div`,Lt,[(T(!0),l(f,null,w(t.pagedTasks,r=>(T(),v(I,{key:r.id,class:`task-card`,shadow:`hover`,onClick:e=>t.selectTask(r)},{default:b(()=>[e(`div`,Rt,[e(`div`,zt,[e(`div`,Bt,a(r.name),1),e(`div`,Vt,[e(`span`,Ht,a(t.$t(`common.entity.id`))+`: `+a(r.id),1),o(C,{content:r.id,class:`inline-block shrink-0`},null,8,[`content`])])]),e(`div`,{class:`task-actions`,onClick:c[0]||=n(()=>{},[`stop`])},[o(ne,{"model-value":r.state===`enabled`,onChange:e=>t.toggleState(r,e===!0)},null,8,[`model-value`,`onChange`]),o(D,{content:t.$t(`chat.scheduledTasks.triggerNow`),placement:`top`},{default:b(()=>[o(S,{text:``,class:`icon-action`,loading:t.triggeringId===r.id,"aria-label":t.$t(`chat.scheduledTasks.triggerNow`),title:t.$t(`chat.scheduledTasks.triggerNow`),onClick:e=>t.triggerNow(r)},{default:b(()=>[t.triggeringId===r.id?s(``,!0):(T(),v(E,{key:0,size:`1em`,"aria-hidden":`true`,focusable:`false`}))]),_:2},1032,[`loading`,`aria-label`,`title`,`onClick`])]),_:2},1032,[`content`]),o(D,{content:t.$t(`common.button.edit`),placement:`top`},{default:b(()=>[o(S,{text:``,class:`icon-action`,"aria-label":t.$t(`common.button.edit`),onClick:e=>t.openEdit(r)},{default:b(()=>[o(O,{size:16,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`aria-label`,`onClick`])]),_:2},1032,[`content`]),o(D,{content:t.$t(`chat.scheduledTasks.duplicate`),placement:`top`},{default:b(()=>[o(S,{text:``,class:`icon-action`,"aria-label":t.$t(`chat.scheduledTasks.duplicate`),onClick:e=>t.openDuplicate(r)},{default:b(()=>[o(k,{size:16,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`aria-label`,`onClick`])]),_:2},1032,[`content`]),o(D,{content:t.$t(`common.button.delete`),placement:`top`},{default:b(()=>[o(S,{text:``,type:`danger`,class:`icon-action`,"aria-label":t.$t(`common.button.delete`),onClick:e=>t.confirmDelete(r)},{default:b(()=>[o(A,{size:16,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`aria-label`,`onClick`])]),_:2},1032,[`content`])])]),e(`div`,Ut,[r.template_source?(T(),v(j,{key:0,size:`small`,type:`primary`,round:``},{default:b(()=>[i(a(r.template_source.snapshot.title),1)]),_:2},1024)):s(``,!0),o(j,{size:`small`,type:t.stateTagType(r.state),effect:`dark`,round:``},{default:b(()=>[i(a(t.$t(`chat.scheduledTasks.state.${r.state}`)),1)]),_:2},1032,[`type`]),e(`span`,Wt,[o(M,{class:`meta-icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),i(` `+a(t.scheduleLabel(r.schedule)),1)]),e(`span`,Gt,[o(N,{class:`meta-icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),i(` `+a(r.template.model),1)]),r.execution===`local`?(T(),l(`span`,Kt,a(r.device_name||t.$t(`chat.scheduledTasks.execution.local`)),1)):s(``,!0)]),e(`div`,qt,a(r.template.question),1),r.last_output_snippet?(T(),l(`div`,Jt,a(r.last_output_snippet),1)):s(``,!0),e(`div`,Yt,[e(`span`,Xt,[o(P,{size:16,class:`footer-icon`,"aria-hidden":`true`,focusable:`false`}),i(` `+a(t.$t(`chat.scheduledTasks.runCount`,{count:r.run_count})),1)]),r.last_error?(T(),l(`span`,Zt,a(t.errorCodeText(r.last_error)),1)):s(``,!0),e(`span`,Qt,[i(a(t.$t(`chat.scheduledTasks.viewRuns`))+` `,1),o(F,{size:`1em`,"aria-hidden":`true`,focusable:`false`})])])]),_:2},1032,[`onClick`]))),128))]),t.tasks.length>t.pageSize?(T(),l(`div`,$t,[o(L,{"current-page":t.page,"page-size":t.pageSize,total:t.tasks.length,onChange:t.onPageChange},null,8,[`current-page`,`page-size`,`total`,`onChange`])])):s(``,!0)],64)):(T(),l(`div`,Ft,[e(`h3`,null,a(t.$t(`chat.scheduledTemplates.emptyTitle`)),1),e(`p`,null,a(t.$t(`chat.scheduledTemplates.emptyDescription`)),1),e(`div`,It,[o(S,{type:`primary`,round:``,onClick:t.openTemplateGallery},{default:b(()=>[i(a(t.$t(`chat.scheduledTemplates.browse`)),1)]),_:1},8,[`onClick`]),o(S,{round:``,onClick:t.openCreate},{default:b(()=>[i(a(t.$t(`chat.scheduledTemplates.createCustom`)),1)]),_:1},8,[`onClick`])])]))],64)):(T(),l(f,{key:1},[e(`div`,{class:`filters`,role:`group`,"aria-label":t.$t(`chat.scheduledTasks.tab.runs`)},[(T(!0),l(f,null,w(t.statusFilters,e=>(T(),l(`button`,{key:e,type:`button`,class:r([`filter-chip`,{active:t.allRunsStatus===e}]),"aria-pressed":t.allRunsStatus===e,onClick:n=>t.onStatusFilter(e)},a(e===`all`?t.$t(`chat.scheduledTasks.filterAll`):t.$t(`chat.scheduledTasks.run.${e}`)),11,tn))),128))],8,en),t.allRunsLoading?(T(),v(x,{key:0,rows:4,animated:``,class:`loading-block`})):t.allRuns.length?(T(),l(f,{key:2},[e(`div`,nn,[(T(!0),l(f,null,w(t.allRuns,c=>(T(),l(`div`,{key:c.id,class:r([`run-item`,{clickable:!!c.conversation_id}]),tabindex:c.conversation_id?0:-1,role:c.conversation_id?`button`:void 0,onClick:e=>t.openRun(c),onKeydown:[d(e=>t.openRun(c),[`enter`]),d(n(e=>t.openRun(c),[`prevent`]),[`space`])]},[e(`div`,an,[e(`div`,on,[e(`span`,sn,a(c.conversation_title||t.formatTime(c.scheduled_at)),1),o(j,{size:`small`,type:t.runTagType(c.status),effect:`dark`,round:``,class:`run-tag`},{default:b(()=>[i(a(t.$t(`chat.scheduledTasks.run.${c.status}`)),1)]),_:2},1032,[`type`])]),c.conversation_preview?(T(),l(`div`,cn,a(c.conversation_preview),1)):s(``,!0),e(`div`,ln,[c.task_name?(T(),v(j,{key:0,size:`small`,type:`info`,round:``,class:`run-task-tag`},{default:b(()=>[i(a(c.task_name),1)]),_:2},1024)):s(``,!0),c.execution===`local`?(T(),v(j,{key:1,size:`small`,type:`info`,round:``,class:`run-task-tag`},{default:b(()=>[i(a(c.device_name||t.$t(`chat.scheduledTasks.execution.local`)),1)]),_:2},1024)):s(``,!0),(T(!0),l(f,null,w(c.run_accounts,(e,n)=>(T(),v(j,{key:`${e.connector_identifier}-${n}`,size:`small`,type:`info`,round:``,class:`run-account-tag`},{default:b(()=>[i(a(t.accountTagText(e)),1)]),_:2},1024))),128)),e(`span`,un,a(t.formatTime(c.scheduled_at)),1),t.runOutcomeText(c)?(T(),l(`span`,{key:2,class:r(c.status===`failed`?`run-error`:`run-outcome`),title:t.runOutcomeText(c)},a(t.runOutcomeText(c)),11,dn)):s(``,!0)])]),e(`div`,fn,[c.conversation_id?(T(),v(F,{key:0,class:`run-arrow`,size:`1em`,"aria-hidden":`true`,focusable:`false`})):(T(),l(`span`,pn,a(t.$t(`chat.scheduledTasks.noConversation`)),1))])],42,rn))),128))]),t.allRunsCount>t.allRunsPageSize?(T(),l(`div`,mn,[o(L,{"current-page":t.allRunsPage,"page-size":t.allRunsPageSize,total:t.allRunsCount,onChange:t.onAllRunsPageChange},null,8,[`current-page`,`page-size`,`total`,`onChange`])])):s(``,!0)],64)):(T(),v(R,{key:1,description:t.$t(`chat.scheduledTasks.noRuns`),class:`empty`},null,8,[`description`]))],64))]),t.token?(T(),v(z,{key:0,modelValue:t.showTemplateWizard,"onUpdate:modelValue":c[1]||=e=>t.showTemplateWizard=e,token:t.token,"initial-category":t.templateInitialCategory,onCreated:t.onTemplateCreated},null,8,[`modelValue`,`token`,`initial-category`,`onCreated`])):s(``,!0),o(B,{modelValue:t.showRunHistory,"onUpdate:modelValue":c[2]||=e=>t.showRunHistory=e,title:t.selectedTask?.name,direction:`rtl`,size:`min(560px, 92vw)`,class:`run-history-drawer`},{default:b(()=>[t.selectedTask?(T(),l(`div`,hn,[e(`div`,gn,[e(`span`,_n,a(t.$t(`common.entity.id`))+`: `+a(t.selectedTask.id),1),o(C,{content:t.selectedTask.id,class:`inline-block shrink-0`},null,8,[`content`])]),e(`div`,vn,[e(`span`,null,a(t.scheduleLabel(t.selectedTask.schedule)),1),e(`span`,null,a(t.selectedTask.template.model),1),e(`span`,null,a(t.$t(`chat.scheduledTasks.runCount`,{count:t.selectedTask.run_count})),1)]),e(`div`,yn,a(t.selectedTask.template.question),1)])):s(``,!0),t.runsLoading?(T(),v(x,{key:1,rows:3,animated:``})):t.runs.length?(T(),l(`div`,bn,[(T(!0),l(f,null,w(t.pagedRuns,c=>(T(),l(`div`,{key:c.id,class:r([`run-item`,{clickable:!!c.conversation_id}]),tabindex:c.conversation_id?0:-1,role:c.conversation_id?`button`:void 0,onClick:e=>t.openRun(c),onKeydown:[d(e=>t.openRun(c),[`enter`]),d(n(e=>t.openRun(c),[`prevent`]),[`space`])]},[e(`div`,Sn,[e(`div`,Cn,[e(`span`,wn,a(c.conversation_title||t.formatTime(c.scheduled_at)),1),o(j,{size:`small`,type:t.runTagType(c.status),effect:`dark`,round:``,class:`run-tag`},{default:b(()=>[i(a(t.$t(`chat.scheduledTasks.run.${c.status}`)),1)]),_:2},1032,[`type`])]),c.conversation_preview?(T(),l(`div`,Tn,a(c.conversation_preview),1)):s(``,!0),e(`div`,En,[(T(!0),l(f,null,w(c.run_accounts,(e,n)=>(T(),v(j,{key:`${e.connector_identifier}-${n}`,size:`small`,type:`info`,round:``,class:`run-account-tag`},{default:b(()=>[i(a(t.accountTagText(e)),1)]),_:2},1024))),128)),e(`span`,Dn,a(t.formatTime(c.scheduled_at)),1),t.runOutcomeText(c)?(T(),l(`span`,{key:0,class:r(c.status===`failed`?`run-error`:`run-outcome`),title:t.runOutcomeText(c)},a(t.runOutcomeText(c)),11,On)):s(``,!0)])]),e(`div`,kn,[c.conversation_id?(T(),v(F,{key:0,class:`run-arrow`,size:`1em`,"aria-hidden":`true`,focusable:`false`})):(T(),l(`span`,An,a(t.$t(`chat.scheduledTasks.noConversation`)),1))])],42,xn))),128))])):(T(),v(R,{key:2,description:t.$t(`chat.scheduledTasks.noRuns`)},null,8,[`description`])),!t.runsLoading&&t.runs.length>t.runPageSize?(T(),l(`div`,jn,[o(L,{"current-page":t.runPage,"page-size":t.runPageSize,total:t.runs.length,onChange:t.onRunPageChange},null,8,[`current-page`,`page-size`,`total`,`onChange`])])):s(``,!0)]),_:1},8,[`modelValue`,`title`]),o(ae,{modelValue:t.showCreateDialog,"onUpdate:modelValue":c[21]||=e=>t.showCreateDialog=e,title:t.editingTask?t.$t(`chat.scheduledTasks.edit`):t.$t(`chat.scheduledTasks.create`),width:`540px`,"close-on-click-modal":!1,"close-on-press-escape":!t.saving,"show-close":!t.saving,class:`scheduled-task-dialog`},{footer:b(()=>[o(S,{disabled:t.saving,onClick:t.closeTaskDialog},{default:b(()=>[i(a(t.$t(`common.button.cancel`)),1)]),_:1},8,[`disabled`,`onClick`]),o(S,{type:`primary`,loading:t.saving,onClick:t.saveTask},{default:b(()=>[i(a(t.$t(`common.button.confirm`)),1)]),_:1},8,[`loading`,`onClick`])]),default:b(()=>[o(ie,{model:t.form,"label-width":`92px`},{default:b(()=>[o(H,{label:t.$t(`chat.scheduledTasks.form.name`)},{default:b(()=>[o(V,{modelValue:t.form.name,"onUpdate:modelValue":c[3]||=e=>t.form.name=e,placeholder:t.$t(`chat.scheduledTasks.form.namePlaceholder`),maxlength:`80`},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`label`]),o(H,{label:t.$t(`chat.scheduledTasks.form.prompt`),required:``},{default:b(()=>[o(V,{modelValue:t.form.question,"onUpdate:modelValue":c[4]||=e=>t.form.question=e,type:`textarea`,rows:6,placeholder:t.$t(`chat.scheduledTasks.form.promptPlaceholder`)},null,8,[`modelValue`,`placeholder`]),e(`div`,Mn,a(t.$t(`chat.scheduledTasks.form.promptHint`)),1)]),_:1},8,[`label`]),o(H,{label:t.$t(`chat.scheduledTasks.form.model`)},{default:b(()=>[o(G,{modelValue:t.form.model,"onUpdate:modelValue":c[5]||=e=>t.form.model=e,style:{width:`100%`},filterable:``},{default:b(()=>[(T(!0),l(f,null,w(t.modelGroups,e=>(T(),v(W,{key:e.name,label:e.getDisplayName()},{default:b(()=>[(T(!0),l(f,null,w(e.models,e=>(T(),v(U,{key:e.name,label:e.getDisplayName(),value:e.name},null,8,[`label`,`value`]))),128))]),_:2},1032,[`label`]))),128))]),_:1},8,[`modelValue`])]),_:1},8,[`label`]),o(H,{label:t.$t(`chat.scheduledTasks.form.execution`)},{default:b(()=>[o(q,{modelValue:t.form.execution,"onUpdate:modelValue":c[6]||=e=>t.form.execution=e},{default:b(()=>[o(K,{value:`cloud`},{default:b(()=>[i(a(t.$t(`chat.scheduledTasks.execution.cloud`)),1)]),_:1}),o(D,{content:t.localUnavailableReason,disabled:t.canRunLocally,placement:`top`},{default:b(()=>[e(`span`,Nn,[o(K,{value:`local`,disabled:!t.canRunLocally},{default:b(()=>[i(a(t.deviceIdentity?t.$t(`chat.scheduledTasks.execution.localNamed`,{device:t.deviceIdentity.device_name}):t.$t(`chat.scheduledTasks.execution.local`)),1)]),_:1},8,[`disabled`])])]),_:1},8,[`content`,`disabled`])]),_:1},8,[`modelValue`]),e(`div`,Pn,a(t.form.execution===`local`?t.$t(`chat.scheduledTasks.form.executionLocalHint`):t.$t(`chat.scheduledTasks.form.executionCloudHint`)),1)]),_:1},8,[`label`]),t.form.execution===`local`?(T(),v(H,{key:0,label:t.$t(`chat.scheduledTasks.form.localTools`)},{default:b(()=>[o(G,{modelValue:t.form.authorizedLocalTools,"onUpdate:modelValue":c[7]||=e=>t.form.authorizedLocalTools=e,multiple:``,filterable:``,style:{width:`100%`},placeholder:t.$t(`chat.scheduledTasks.form.localToolsPlaceholder`)},{default:b(()=>[(T(!0),l(f,null,w(t.localToolSpecs,t=>(T(),v(U,{key:t.name,label:t.name,value:t.name},{default:b(()=>[e(`span`,null,a(t.name),1)]),_:2},1032,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`]),e(`div`,Fn,a(t.$t(`chat.scheduledTasks.form.localToolsHint`)),1)]),_:1},8,[`label`])):s(``,!0),o(H,{label:t.$t(`chat.scheduledTasks.form.schedule`)},{default:b(()=>[o(q,{modelValue:t.form.scheduleType,"onUpdate:modelValue":c[8]||=e=>t.form.scheduleType=e},{default:b(()=>[o(K,{value:`interval`},{default:b(()=>[i(a(t.$t(`chat.scheduledTasks.scheduleType.interval`)),1)]),_:1}),o(K,{value:`hourly`},{default:b(()=>[i(a(t.$t(`chat.scheduledTasks.scheduleType.hourly`)),1)]),_:1}),o(K,{value:`daily`},{default:b(()=>[i(a(t.$t(`chat.scheduledTasks.scheduleType.daily`)),1)]),_:1}),o(K,{value:`weekly`},{default:b(()=>[i(a(t.$t(`chat.scheduledTasks.scheduleType.weekly`)),1)]),_:1}),o(K,{value:`cron`},{default:b(()=>[i(a(t.$t(`chat.scheduledTasks.scheduleType.cron`)),1)]),_:1})]),_:1},8,[`modelValue`]),t.schedulePreview?(T(),l(`div`,In,[o(M,{class:`preview-icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),i(` `+a(t.$t(`chat.scheduledTasks.form.schedulePreview`,{text:t.schedulePreview})),1)])):s(``,!0)]),_:1},8,[`label`]),o(H,{label:t.$t(`chat.scheduledTasks.form.timezone`),required:``},{default:b(()=>[o(G,{modelValue:t.form.timezone,"onUpdate:modelValue":c[9]||=e=>t.form.timezone=e,filterable:``,style:{width:`100%`}},{default:b(()=>[(T(!0),l(f,null,w(t.timezoneOptions,e=>(T(),v(U,{key:e,label:t.timeZoneLabel(e),value:e},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`]),e(`div`,Ln,a(t.$t(`chat.scheduledTasks.form.timezoneHint`,{timezone:t.detectedTimezoneLabel})),1)]),_:1},8,[`label`]),t.form.scheduleType===`interval`?(T(),v(H,{key:1,label:t.$t(`chat.scheduledTasks.scheduleType.interval`)},{default:b(()=>[o(J,{modelValue:t.form.intervalValue,"onUpdate:modelValue":c[10]||=e=>t.form.intervalValue=e,min:1,max:t.intervalMax,step:1,"controls-position":`right`},null,8,[`modelValue`,`max`]),o(G,{modelValue:t.form.intervalUnit,"onUpdate:modelValue":c[11]||=e=>t.form.intervalUnit=e,style:{width:`110px`,"margin-left":`8px`}},{default:b(()=>[o(U,{label:t.$t(`chat.scheduledTasks.form.intervalUnit.minute`),value:`minute`},null,8,[`label`]),o(U,{label:t.$t(`chat.scheduledTasks.form.intervalUnit.hour`),value:`hour`},null,8,[`label`]),o(U,{label:t.$t(`chat.scheduledTasks.form.intervalUnit.day`),value:`day`},null,8,[`label`])]),_:1},8,[`modelValue`]),e(`div`,Rn,a(t.$t(`chat.scheduledTasks.form.intervalHint`)),1)]),_:1},8,[`label`])):s(``,!0),t.form.scheduleType===`hourly`?(T(),v(H,{key:2,label:t.$t(`chat.scheduledTasks.form.hourlyMinute`)},{default:b(()=>[o(J,{modelValue:t.form.hourlyMinute,"onUpdate:modelValue":c[12]||=e=>t.form.hourlyMinute=e,min:0,max:59,step:1,"controls-position":`right`},null,8,[`modelValue`]),e(`div`,zn,a(t.$t(`chat.scheduledTasks.form.hourlyMinuteHint`)),1)]),_:1},8,[`label`])):s(``,!0),t.form.scheduleType===`daily`?(T(),v(H,{key:3,label:t.$t(`chat.scheduledTasks.form.time`)},{default:b(()=>[o(re,{modelValue:t.form.dailyTime,"onUpdate:modelValue":c[13]||=e=>t.form.dailyTime=e,format:`HH:mm`,"value-format":`HH:mm`},null,8,[`modelValue`]),e(`span`,Bn,a(t.$t(`chat.scheduledTasks.jitterHint`)),1)]),_:1},8,[`label`])):s(``,!0),t.form.scheduleType===`weekly`?(T(),v(H,{key:4,label:t.$t(`chat.scheduledTasks.form.weekday`)},{default:b(()=>[o(G,{modelValue:t.form.weekday,"onUpdate:modelValue":c[14]||=e=>t.form.weekday=e,style:{width:`120px`}},{default:b(()=>[(T(!0),l(f,null,w(t.weekdays,(e,t)=>(T(),v(U,{key:t,label:e,value:t},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`]),o(re,{modelValue:t.form.dailyTime,"onUpdate:modelValue":c[15]||=e=>t.form.dailyTime=e,format:`HH:mm`,"value-format":`HH:mm`,style:{"margin-left":`8px`}},null,8,[`modelValue`])]),_:1},8,[`label`])):s(``,!0),t.form.scheduleType===`cron`?(T(),v(H,{key:5,label:t.$t(`chat.scheduledTasks.form.cron`)},{default:b(()=>[o(V,{modelValue:t.form.cronExpr,"onUpdate:modelValue":c[16]||=e=>t.form.cronExpr=e,placeholder:`0 9 * * *`},null,8,[`modelValue`]),e(`div`,Vn,a(t.$t(`chat.scheduledTasks.form.cronHint`)),1)]),_:1},8,[`label`])):s(``,!0),o(H,{label:t.$t(`chat.scheduledTasks.form.skills`)},{default:b(()=>[o(G,{modelValue:t.form.authorizedSkills,"onUpdate:modelValue":c[17]||=e=>t.form.authorizedSkills=e,style:{width:`100%`},multiple:``,filterable:``,"collapse-tags":``,"collapse-tags-tooltip":``,loading:t.skillsLoading,placeholder:t.$t(`chat.scheduledTasks.form.skillsPlaceholder`),onVisibleChange:t.onSkillSelectVisible},{default:b(()=>[(T(!0),l(f,null,w(t.authorizableSkills,n=>(T(),v(U,{key:n.slug,label:t.skillLabel(n),value:n.slug,disabled:!n.connected},{default:b(()=>[e(`div`,Hn,[e(`span`,Un,a(t.skillLabel(n)),1),n.connected?s(``,!0):(T(),l(`span`,Wn,a(t.$t(`chat.scheduledTasks.form.skillMissing`)),1))])]),_:2},1032,[`label`,`value`,`disabled`]))),128))]),_:1},8,[`modelValue`,`loading`,`placeholder`,`onVisibleChange`]),e(`div`,Gn,a(t.$t(`chat.scheduledTasks.form.skillsHint`)),1)]),_:1},8,[`label`]),t.selectedBrowserSkills.length?(T(),v(H,{key:6,label:t.$t(`chat.scheduledTasks.form.browserConnection`),required:``},{default:b(()=>[o(G,{modelValue:t.form.browserConnectionId,"onUpdate:modelValue":c[18]||=e=>t.form.browserConnectionId=e,style:{width:`100%`}},{default:b(()=>[(T(!0),l(f,null,w(t.selectedBrowserConnections,e=>(T(),v(U,{key:e.connection_id,label:`${e.name} · ${e.device_name}`,value:e.connection_id,disabled:!e.online||!e.compatible},null,8,[`label`,`value`,`disabled`]))),128))]),_:1},8,[`modelValue`]),t.selectedBrowserConnection?(T(),l(`div`,Kn,[e(`div`,null,a(t.selectedBrowserConnection.allowed_origins.join(`, `)),1),e(`div`,null,a(t.$t(`chat.scheduledTasks.form.browserEffects`,{effects:t.selectedBrowserConnection.side_effects.join(`, `)})),1),e(`div`,null,a(t.$t(`chat.scheduledTasks.form.authorizationExpires`,{time:t.formatTime(t.form.authorizationExpiresAt)})),1)])):s(``,!0)]),_:1},8,[`label`])):s(``,!0),(T(!0),l(f,null,w(t.accountChoices,e=>(T(),v(H,{key:e.identifier,label:t.$t(`chat.scheduledTasks.form.connectionAccount`,{connector:e.label})},{default:b(()=>[o(G,{modelValue:t.form.connectionAccounts[e.identifier],"onUpdate:modelValue":n=>t.form.connectionAccounts[e.identifier]=n,clearable:``,placeholder:t.$t(`chat.scheduledTasks.form.connectionAccountDefault`),style:{width:`100%`}},{default:b(()=>[(T(!0),l(f,null,w(e.accounts,e=>(T(),v(U,{key:e.connection_id,label:e.is_default?`${e.label||e.account_name} · ${t.$t(`chat.scheduledTasks.form.accountIsDefault`)}`:e.label||e.account_name,value:e.connection_id},null,8,[`label`,`value`]))),128))]),_:2},1032,[`modelValue`,`onUpdate:modelValue`,`placeholder`])]),_:2},1032,[`label`]))),128)),o(H,{label:t.$t(`chat.scheduledTasks.form.mcpServers`)},{default:b(()=>[o(G,{modelValue:t.form.authorizedMcpServers,"onUpdate:modelValue":c[19]||=e=>t.form.authorizedMcpServers=e,style:{width:`100%`},multiple:``,filterable:``,"collapse-tags":``,"collapse-tags-tooltip":``,loading:t.skillsLoading,placeholder:t.$t(`chat.scheduledTasks.form.mcpServersPlaceholder`),onVisibleChange:t.onSkillSelectVisible},{default:b(()=>[(T(!0),l(f,null,w(t.authorizableMcpServers,e=>(T(),v(U,{key:e.slug,label:t.mcpServerLabel(e),value:e.slug},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`loading`,`placeholder`,`onVisibleChange`]),e(`div`,qn,a(t.$t(`chat.scheduledTasks.form.mcpServersHint`)),1)]),_:1},8,[`label`]),o(H,{label:t.$t(`chat.scheduledTasks.form.maxTurns`)},{default:b(()=>[o(J,{modelValue:t.form.maxTurns,"onUpdate:modelValue":c[20]||=e=>t.form.maxTurns=e,min:1,max:50,step:1,"controls-position":`right`},null,8,[`modelValue`]),e(`div`,Jn,a(t.$t(`chat.scheduledTasks.form.maxTurnsHint`)),1)]),_:1},8,[`label`])]),_:1},8,[`model`])]),_:1},8,[`modelValue`,`title`,`close-on-press-escape`,`show-close`])])}var Xn=Me(Ot,[[`render`,Yn],[`__scopeId`,`data-v-e5fc52e8`]]);export{Xn as default};
@@ -1 +0,0 @@
1
- import{_a as e}from"./index-Dj-lkoyb.js";var t=e(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]);export{t};
@@ -1 +0,0 @@
1
- import{_a as e}from"./index-Dj-lkoyb.js";var t=e(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]);export{t};
@@ -1 +0,0 @@
1
- import{_a as e}from"./index-Dj-lkoyb.js";var t=e(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]);export{t};
@@ -1 +0,0 @@
1
- import{_a as e}from"./index-Dj-lkoyb.js";var t=e(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]);export{t};
@@ -1 +0,0 @@
1
- import{A as e,B as t,G as n,Gt as r,H as i,I as a,Jt as o,K as s,Mt as c,N as l,Ot as u,Q as d,Rt as f,St as p,T as m,U as h,Vt as g,Wt as _,Y as v,ft as y,ht as b,it as x,j as S,k as C,mt as w,nt as T,p as E,pt as D,tt as O,wt as k,x as ee,z as A}from"./vendor-chart-Dw-P17PN.js";import{$ as j,B as M,Et as N,F as te,I as P,Ot as F,Tt as I,a as L,bt as R,c as z,dt as B,et as V,it as H,o as ne,rt as U,w as W,z as re}from"./icon-CDmWyIgD.js";import{a as G,c as K,i as q,t as ie}from"./install-Cn-SLM3u.js";import{t as ae}from"./tooltip-PxOz6ppS.js";import{b as J,x as oe}from"./models-CqVJobW3.js";import{r as Y}from"./aria-8oQuUBWy.js";import{n as X}from"./vnode-B_FEx-YD.js";import{t as Z}from"./click-outside-CzJDhMNh.js";import{t as se}from"./collapse-transition-BUGXhx7B.js";import{Pa as ce}from"./index-Dj-lkoyb.js";var le=class{constructor(e,t){this.parent=e,this.domNode=t,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll(`li`),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){let e=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,t=>{t.addEventListener(`keydown`,t=>{let n=!1;switch(t.code){case J.down:this.gotoSubIndex(this.subIndex+1),n=!0;break;case J.up:this.gotoSubIndex(this.subIndex-1),n=!0;break;case J.tab:Y(e,`mouseleave`);break;case J.enter:case J.numpadEnter:case J.space:n=!0,t.currentTarget.click();break}return n&&(t.preventDefault(),t.stopPropagation()),!1})})}},ue=class{constructor(e,t){this.domNode=e,this.submenu=null,this.submenu=null,this.init(t)}init(e){this.domNode.setAttribute(`tabindex`,`0`);let t=this.domNode.querySelector(`.${e}-menu`);t&&(this.submenu=new le(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener(`keydown`,e=>{let t=!1;switch(e.code){case J.down:Y(e.currentTarget,`mouseenter`),this.submenu&&this.submenu.gotoSubIndex(0),t=!0;break;case J.up:Y(e.currentTarget,`mouseenter`),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),t=!0;break;case J.tab:Y(e.currentTarget,`mouseleave`);break;case J.enter:case J.numpadEnter:case J.space:t=!0,e.currentTarget.click();break}t&&e.preventDefault()})}},de=class{constructor(e,t){this.domNode=e,this.init(t)}init(e){let t=this.domNode.childNodes;Array.from(t).forEach(t=>{t.nodeType===1&&new ue(t,e)})}},fe=G(A({...A({name:`ElMenuCollapseTransition`}),setup(e){let t=K(`menu`),r={onBeforeEnter:e=>e.style.opacity=`0.2`,onEnter(e,n){P(e,`${t.namespace.value}-opacity-transition`),e.style.opacity=`1`,n()},onAfterEnter(e){M(e,`${t.namespace.value}-opacity-transition`),e.style.opacity=``},onBeforeLeave(e){e.dataset||={},re(e,t.m(`collapse`))?(M(e,t.m(`collapse`)),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth.toString(),P(e,t.m(`collapse`))):(P(e,t.m(`collapse`)),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth.toString(),M(e,t.m(`collapse`))),e.style.width=`${e.scrollWidth}px`,e.style.overflow=`hidden`},onLeave(e){P(e,`horizontal-collapse-transition`),e.style.width=`${e.dataset.scrollWidth}px`}};return(e,t)=>(O(),S(E,n({mode:`out-in`},c(r)),{default:w(()=>[x(e.$slots,`default`)]),_:3},16))}}),[[`__file`,`menu-collapse-transition.vue`]]);function pe(e,t){let n=C(()=>{let n=e.parent,r=[t.value];for(;n.type.name!==`ElMenu`;)n.props.index&&r.unshift(n.props.index),n=n.parent;return r});return{parentMenu:C(()=>{let t=e.parent;for(;t&&![`ElMenu`,`ElSubMenu`].includes(t.type.name);)t=t.parent;return t}),indexPath:n}}function me(e){return C(()=>{let t=e.backgroundColor;return t?new ce(t).shade(20).toString():``})}var he=(e,t)=>{let n=K(`menu`);return C(()=>n.cssVarBlock({"text-color":e.textColor||``,"hover-text-color":e.textColor||``,"bg-color":e.backgroundColor||``,"hover-bg-color":me(e).value||``,"active-color":e.activeTextColor||``,level:`${t}`}))},ge=`rootMenu`,Q=`subMenu:`,_e=j({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:L},expandOpenIcon:{type:L},collapseCloseIcon:{type:L},collapseOpenIcon:{type:L}}),ve=`ElSubMenu`,ye=A({name:ve,props:_e,setup(e,{slots:n,expose:r}){let a=t(),{indexPath:o,parentMenu:s}=pe(a,C(()=>e.index)),c=K(`menu`),l=K(`sub-menu`),u=h(ge);u||H(ve,`can not inject root menu`);let f=h(`${Q}${s.value.uid}`);f||H(ve,`can not inject sub menu`);let g=k({}),x=k({}),S,w=k(!1),E=k(),D=k(),O=C(()=>B.value===`horizontal`&&j.value?`bottom-start`:`right-start`),A=C(()=>B.value===`horizontal`&&j.value||B.value===`vertical`&&!u.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?I.value?e.expandOpenIcon:e.expandCloseIcon:ne:e.collapseCloseIcon&&e.collapseOpenIcon?I.value?e.collapseOpenIcon:e.collapseCloseIcon:z),j=C(()=>f.level===0),M=C(()=>{let t=e.teleported;return N(t)?j.value:t}),P=C(()=>u.props.collapse?`${c.namespace.value}-zoom-in-left`:`${c.namespace.value}-zoom-in-top`),F=C(()=>B.value===`horizontal`&&j.value?[`bottom-start`,`bottom-end`,`top-start`,`top-end`,`right-start`,`left-start`]:[`right-start`,`right`,`right-end`,`left-start`,`bottom-start`,`bottom-end`,`top-start`,`top-end`]),I=C(()=>u.openedMenus.includes(e.index)),L=C(()=>[...Object.values(g.value),...Object.values(x.value)].some(({active:e})=>e)),B=C(()=>u.props.mode),V=C(()=>u.props.persistent),U=p({index:e.index,indexPath:o,active:L}),W=he(u.props,f.level+1),re=C(()=>e.popperOffset??u.props.popperOffset),G=C(()=>e.popperClass??u.props.popperClass),q=C(()=>e.showTimeout??u.props.showTimeout),ie=C(()=>e.hideTimeout??u.props.hideTimeout),J=()=>(D.value?.popperRef?.popperInstanceRef)?.destroy(),oe=e=>{e||J()},Y=()=>{u.props.menuTrigger===`hover`&&u.props.mode===`horizontal`||u.props.collapse&&u.props.mode===`vertical`||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:o.value,active:L.value})},X=(t,n=q.value)=>{var r;if(t.type!==`focus`){if(u.props.menuTrigger===`click`&&u.props.mode===`horizontal`||!u.props.collapse&&u.props.mode===`vertical`||e.disabled){f.mouseInChild.value=!0;return}f.mouseInChild.value=!0,S?.(),{stop:S}=R(()=>{u.openMenu(e.index,o.value)},n),M.value&&((r=s.value.vnode.el)==null||r.dispatchEvent(new MouseEvent(`mouseenter`)))}},Z=(t=!1)=>{var n;if(u.props.menuTrigger===`click`&&u.props.mode===`horizontal`||!u.props.collapse&&u.props.mode===`vertical`){f.mouseInChild.value=!1;return}S?.(),f.mouseInChild.value=!1,{stop:S}=R(()=>!w.value&&u.closeMenu(e.index,o.value),ie.value),M.value&&t&&((n=f.handleMouseleave)==null||n.call(f,!0))};return y(()=>u.props.collapse,e=>oe(!!e)),T(`${Q}${a.uid}`,{addSubMenu:e=>{x.value[e.index]=e},removeSubMenu:e=>{delete x.value[e.index]},handleMouseleave:Z,mouseInChild:w,level:f.level+1}),r({opened:I}),d(()=>{u.addSubMenu(U),f.addSubMenu(U)}),v(()=>{f.removeSubMenu(U),u.removeSubMenu(U)}),()=>{let t=[n.title?.call(n),i(te,{class:l.e(`icon-arrow`),style:{transform:I.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&u.props.collapse?`none`:`rotateZ(180deg)`:`none`}},{default:()=>_(A.value)?i(a.appContext.components[A.value]):i(A.value)})],r=u.isMenuPopup?i(ae,{ref:D,visible:I.value,effect:`light`,pure:!0,offset:re.value,showArrow:!1,persistent:V.value,popperClass:G.value,placement:O.value,teleported:M.value,fallbackPlacements:F.value,transition:P.value,gpuAcceleration:!1},{content:()=>i(`div`,{class:[c.m(B.value),c.m(`popup-container`),G.value],onMouseenter:e=>X(e,100),onMouseleave:()=>Z(!0),onFocus:e=>X(e,100)},[i(`ul`,{class:[c.b(),c.m(`popup`),c.m(`popup-${O.value}`)],style:W.value},[n.default?.call(n)])]),default:()=>i(`div`,{class:l.e(`title`),onClick:Y},t)}):i(m,{},[i(`div`,{class:l.e(`title`),ref:E,onClick:Y},t),i(se,{},{default:()=>b(i(`ul`,{role:`menu`,class:[c.b(),c.m(`inline`)],style:W.value},[n.default?.call(n)]),[[ee,I.value]])})]);return i(`li`,{class:[l.b(),l.is(`active`,L.value),l.is(`opened`,I.value),l.is(`disabled`,e.disabled)],role:`menuitem`,ariaHaspopup:!0,ariaExpanded:I.value,onMouseenter:X,onMouseleave:()=>Z(),onFocus:X},[r])}}}),be=j({mode:{type:String,values:[`horizontal`,`vertical`],default:`vertical`},defaultActive:{type:String,default:``},defaultOpeneds:{type:V(Array),default:()=>oe([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:[`hover`,`click`],default:`hover`},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:L,default:()=>W},popperEffect:{type:V(String),default:`dark`},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),xe=e=>f(e)&&e.every(e=>_(e)),Se=A({name:`ElMenu`,props:be,emits:{close:(e,t)=>_(e)&&xe(t),open:(e,t)=>_(e)&&xe(t),select:(e,t,n,r)=>_(e)&&xe(t)&&g(n)&&(N(r)||r instanceof Promise)},setup(e,{emit:n,slots:r,expose:a}){let o=t(),c=o.appContext.config.globalProperties.$router,l=k(),u=K(`menu`),f=K(`sub-menu`),m=k(-1),h=k(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),g=k(e.defaultActive),_=k({}),v=k({}),x=C(()=>e.mode===`horizontal`||e.mode===`vertical`&&e.collapse),S=()=>{let t=g.value&&_.value[g.value];!t||e.mode===`horizontal`||e.collapse||t.indexPath.forEach(e=>{let t=v.value[e];t&&w(e,t.indexPath)})},w=(t,r)=>{h.value.includes(t)||(e.uniqueOpened&&(h.value=h.value.filter(e=>r.includes(e))),h.value.push(t),n(`open`,t,r))},E=e=>{let t=h.value.indexOf(e);t!==-1&&h.value.splice(t,1)},O=(e,t)=>{E(e),n(`close`,e,t)},ee=({index:e,indexPath:t})=>{h.value.includes(e)?O(e,t):w(e,t)},A=t=>{(e.mode===`horizontal`||e.collapse)&&(h.value=[]);let{index:r,indexPath:i}=t;if(!(F(r)||F(i)))if(e.router&&c){let e=t.route||r,a=c.push(e).then(e=>(e||(g.value=r),e));n(`select`,r,i,{index:r,indexPath:i,route:e},a)}else g.value=r,n(`select`,r,i,{index:r,indexPath:i})},j=t=>{let n=_.value;g.value=(n[t]||g.value&&n[g.value]||n[e.defaultActive])?.index??t},M=e=>{let t=getComputedStyle(e),n=Number.parseInt(t.marginLeft,10),r=Number.parseInt(t.marginRight,10);return e.offsetWidth+n+r||0},N=()=>{if(!l.value)return-1;let e=Array.from(l.value?.childNodes??[]).filter(e=>e.nodeName!==`#text`||e.nodeValue),t=getComputedStyle(l.value),n=Number.parseInt(t.paddingLeft,10),r=Number.parseInt(t.paddingRight,10),i=l.value.clientWidth-n-r,a=0,o=0;return e.forEach((e,t)=>{e.nodeName!==`#comment`&&(a+=M(e),a<=i-64&&(o=t+1))}),o===e.length?-1:o},P=e=>v.value[e].indexPath,I=(e,t=33.34)=>{let n;return()=>{n&&clearTimeout(n),n=setTimeout(()=>{e()},t)}},L=!0,R=()=>{if(m.value===N())return;let e=()=>{m.value=-1,s(()=>{m.value=N()})};L?e():I(e)(),L=!1};y(()=>e.defaultActive,e=>{_.value[e]||(g.value=``),j(e)}),y(()=>e.collapse,e=>{e&&(h.value=[])}),y(_.value,S);let z;D(()=>{e.mode===`horizontal`&&e.ellipsis?z=B(l,R).stop:z?.()});let V=k(!1);{let t=e=>{v.value[e.index]=e},n=e=>{delete v.value[e.index]};T(ge,p({props:e,openedMenus:h,items:_,subMenus:v,activeIndex:g,isMenuPopup:x,addMenuItem:e=>{_.value[e.index]=e},removeMenuItem:e=>{delete _.value[e.index]},addSubMenu:t,removeSubMenu:n,openMenu:w,closeMenu:O,handleMenuItemClick:A,handleSubMenuClick:ee})),T(`${Q}${o.uid}`,{addSubMenu:t,removeSubMenu:n,mouseInChild:V,level:0})}d(()=>{e.mode===`horizontal`&&new de(o.vnode.el,u.namespace.value)}),a({open:e=>{let{indexPath:t}=v.value[e];t.forEach(e=>w(e,t))},close:E,updateActiveIndex:j,handleResize:R});let H=he(e,0);return()=>{let t=r.default?.call(r)??[],a=[];if(e.mode===`horizontal`&&l.value){let n=X(t),r=m.value===-1?n:n.slice(0,m.value),o=m.value===-1?[]:n.slice(m.value);o?.length&&e.ellipsis&&(t=r,a.push(i(ye,{index:`sub-menu-more`,class:f.e(`hide-arrow`),popperOffset:e.popperOffset},{title:()=>i(te,{class:f.e(`icon-more`)},{default:()=>i(e.ellipsisIcon)}),default:()=>o})))}let o=e.closeOnClickOutside?[[Z,()=>{h.value.length&&(V.value||(h.value.forEach(e=>n(`close`,e,P(e))),h.value=[]))}]]:[],s=b(i(`ul`,{key:String(e.collapse),role:`menubar`,ref:l,style:H.value,class:{[u.b()]:!0,[u.m(e.mode)]:!0,[u.m(`collapse`)]:e.collapse}},[...t,...a]),o);return e.collapseTransition&&e.mode===`vertical`?i(fe,()=>s):s}}}),Ce=j({index:{type:V([String,null]),default:null},route:{type:V([String,Object])},disabled:Boolean}),we={click:e=>_(e.index)&&f(e.indexPath)},$=`ElMenuItem`,Te=G(A({...A({name:$}),props:Ce,emits:we,setup(n,{expose:i,emit:a}){let o=n;I(o.index)&&U($,`Missing required prop: "index"`);let s=t(),f=h(ge),g=K(`menu`),_=K(`menu-item`);f||H($,`can not inject root menu`);let{parentMenu:y,indexPath:b}=pe(s,u(o,`index`)),T=h(`${Q}${y.value.uid}`);T||H($,`can not inject sub menu`);let E=C(()=>o.index===f.activeIndex),D=p({index:o.index,indexPath:b,active:E}),k=()=>{o.disabled||(f.handleMenuItemClick({index:o.index,indexPath:b.value,route:o.route}),a(`click`,D))};return d(()=>{T.addSubMenu(D),f.addMenuItem(D)}),v(()=>{T.removeSubMenu(D),f.removeMenuItem(D)}),i({parentMenu:y,rootMenu:f,active:E,nsMenu:g,nsMenuItem:_,handleClick:k}),(t,n)=>(O(),l(`li`,{class:r([c(_).b(),c(_).is(`active`,c(E)),c(_).is(`disabled`,t.disabled)]),role:`menuitem`,tabindex:`-1`,onClick:k},[c(y).type.name===`ElMenu`&&c(f).props.collapse&&t.$slots.title?(O(),S(c(ae),{key:0,effect:c(f).props.popperEffect,placement:`right`,"fallback-placements":[`left`],persistent:c(f).props.persistent},{content:w(()=>[x(t.$slots,`title`)]),default:w(()=>[e(`div`,{class:r(c(g).be(`tooltip`,`trigger`))},[x(t.$slots,`default`)],2)]),_:3},8,[`effect`,`persistent`])):(O(),l(m,{key:1},[x(t.$slots,`default`),x(t.$slots,`title`)],64))],2))}}),[[`__file`,`menu-item.vue`]]),Ee={title:String},De=G(A({...A({name:`ElMenuItemGroup`}),props:Ee,setup(t){let n=K(`menu-item-group`);return(t,i)=>(O(),l(`li`,{class:r(c(n).b())},[e(`div`,{class:r(c(n).e(`title`))},[t.$slots.title?x(t.$slots,`title`,{key:1}):(O(),l(m,{key:0},[a(o(t.title),1)],64))],2),e(`ul`,null,[x(t.$slots,`default`)])],2))}}),[[`__file`,`menu-item-group.vue`]]),Oe=ie(Se,{MenuItem:Te,MenuItemGroup:De,SubMenu:ye}),ke=q(Te);q(De);var Ae=q(ye),je=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAMAAAAKE/YAAAAAMFBMVEX///+3t7f4+Pi8vLzAwMDExMTS0tLIyMjk5OTz8/PY2NjOzs7u7u7d3d3p6enh4eFVKkJDAAAIfUlEQVR4nNVd15akOAylyRRQ9f9/O02BZJtgBQszfR/2zPahsJCvguVUFJYop35ux66pq6r6+fn9T910bTv3U2najBXK9zw2PxE07fz+n0Qf+raOyetL3g9PS7vgzRUYULfvZyXuR5nAgLF/SuK3UuJN7gf0PbyErDiieuU1zKmLyFJ3Y9u+vmh//V9dXT/b5VN3f+HbFq82nGivHH6999Vv8rC7P+NFzfBlF56xvl/sEy1Xbc8mZ9m3R7bcrO0jl+vXJH7J0YY78UvYKNuDjpWNTQd9tzd5ks9ePUm92u877WMlp4dhR+Y2OYkYdh3XmKclc9iATVwoXyFLZouXIobuBpEXlK+QcYbK7gOF2NpMaN2Vmfdr71LGirAbW5N3lr4F1rckC0GQbQw6cqrM1XACvzOr5EjT+2q+L24Vk6/sRGL7no6t5un9eQE+7JG4r+wk3+e9iGfXwzyeZHLjzDGFt0fEBB564ymOeRwzCg8dHaZ9kx8NZGZ8+UyOv0bSW3o9q5Tac5+0luajjGfqpsT2krIuTeaKZGQf4UUIKpx6xFbo2nGD9HSlpJZAGfSQILVjV02Z4CQsJhD2UdbcJ/dwyRfpNvozwaLo4q/0nMhLIrMThJSZZ4EhiJd6Ugti43SvzCTlPKnZmUNZMV+u4cYKwp85XlfcTBi/s6Z+MZ2LxADhGZzUDU9m5zjIr0woQhLxasAHWS7E9TgZU/Z1EBEIjbzxQYYxOudOxu73qTBcUGEaIzqD1hi96W6JTgzRoDSI/UhmITP7yUPFSYqaagD1R4wJkP8VnT8nTwVQqnauN06QjvtCvYt2IL3Zm/Uk9jjDz0RmMLggwx3SOuIUSniGpJv3bAJo1SAFr9mKH8aI+LqkI0RFtoIh9/L76Cc8GLCDoxxSjyAHgxxFYSEzJ18Ggly4YHQHnCQ2LRoCGINXQirim0JYUJpDatf/p24PP4mVwSblSg6MEhDGuzNVg6J5o8nEvAPAGZiAfk5MDRXNqxcmx/AVHPMprx8G1TEHwOzqTByseTgoDRxYDT6akSh9YSMzr6aLidOeTGCj3EqDkdC8GU9Q9c6voYlyJzxy0sOxOnRs8C3sQpSR92DOO4EDCXkAzoA935bPTy8AIgTBCIIyvyZsExF/uM2Byfk9A7VafuksfdyygFmJcc35NZ7tT5xUYMNwJYcI/FouGP7xOyT1YBOh+aVcsCHHBWCHZHLTxOfxF6ZA8HP82P7ASv4BJj5PMNMO/g3+H9ghqrtnGm4hIJLAd7byVxg5asGCA+AH2N2meYHvKPxZmQRIGtyMaOMweC/ZXJJJdJE0CF27Bm0oK8kWLKSWHxeILB8s7xN8gmxFi0VIFAkNqd5KiI3S7JBqJ7Ssycb70vAL2LAofMiE9hkBrQvX4OTXNLS4eGpwA8KlaxaGKHOy4OWWcSVoXSZz9ohYYLaxpB8bv4V2aFGeFiYOvqTb74V2mHkQ8IXjBKhMuKrMJIoLOQlmVGIiIlyPmXdguwJ6d8J/CZ1H0m4iB1Gr4D569HjCZalPaNoxeWtd5jKf4TRkpy30syh3KbLXPVZsWdIIQUK6dO8Jl+dkbUB6GfRranwIWx3hUzeVi5fRmggtDA6b/dWO3ELkLiF4QldqoXOPxhe8QOjt57LUpXhguGUhtEUFUtq9EBzUQluQWrphIV1oA1JLm0R6VFqh0z21eH30XmjFdofbF14dgC5PG1zS0w9pjuYFF2UYL9KHiXJGYhhXJkwLEk1RvrEMZVWmpgvSVC1XtEtNlYOAL1JYrdESOg3lcGtFQsVGs+Nu++msHdiu0BNEQQ5vYKssIWxQx3JNc1AqnbTFmg3qSoKmYz0mb//S7QDU1k5Vdu+VSnUFyA3aBES1ca9zkqb4PPVQUUVG74OVRfUNSqencXh+UR1sUnfqgy6+qLrVn75QThRt0I26VG0FU4dbRNfE1ULpqVVBIZBTN/kJ0PBDxY6QEbpp5v27JFCxI5xm1k3oIxT+Q+Wowgl93dIJhHzqVrW5erd0QrdIxUE8wFXxcL9IBXSlSRcLuSnq3NR+OZBq4ZWD1FXr8sn9wivVEjcPwtVuKtd6XOKmWUzoQeY/dCczHBcTKpZtnr2QB104gN70ukm+QNaHzBJV7DhbIAt/040ERMMXnbUDAwOtgvZVsUo0KaCi9Omib/SCqleKhE7KSsNIIt7IkFXoi40MSBrNO28X+ooHOKxWqPpuoVHRh7FDo3+pyHsorOZyG5R0w5kPUZmJffYFIrLhTLi1DzFJT0X+aWaZ3JGtfcJNlCvesTOuIpAcLBrdRIms5g4s+jFlM0PFPYY6ul1VtDG4PJzwqQHnGGpKKlA1fVKN0VqxX31Tx1DjOTBXaRFvs3vaWdkniPIEF3hdGgEmxpev0VpeHNf8ZuiROMBhet0hMch9qkogR2wXbeSojHI22jd5ifp1cLbY9dHB8NWhJCbOgkYzBxpFzxH3wu74F++ro8ckWsM7a5l7/IuzVnAxJX1MojGQ3shHslKCPPimY+b+jYfmU0qONPIOj5rzK9lDi33OyQttVpEaglXXMFoabQVmqny3QxaBW4opM3o4CtwDJazWGZtAUMi12ONkAtGMrNGS/1QI5yb+CxciLmc8EwoDKEokefK6CBKPRf47Mj/MEIujvv+MzA/6kKQLCR7y18q5Y8AjiWryrR1T9uwp/RqJ3YUdGWBxYUeR2RzN7gThn6ifCrtLaA7X/dwG4xtusvg+24uVihzKtr/Cqrh7OFPdcVlYcXItmyHS7x67ROwyxxTceAHegqsLHVOQ4WLH00sdE5DhUsev2IbaznR95gKrCnDGi0oXDOmTRrmvhP3i712+u+LvXXO84u9dKL2Cf3V33X7+i6u7N/y5S9IdvOvoF0G/19GP9tfR/wPQ21eEI8clLwAAAABJRU5ErkJggg==`;export{Ae as i,Oe as n,ke as r,je as t};
@@ -1 +0,0 @@
1
- var e={"thinking.inProgress":{message:`Thinking...`,description:`Label displayed while the model is generating the reasoning process`},"thinking.done":{message:`Reasoning Process`,description:`Label used to collapse the display of the reasoning process after the model completes reasoning`},"button.thinkDeeper":{message:`Think Deeper`,description:`Button for deeper thinking`},"button.deepsearch":{message:`Deep Search`,description:`Button for deep search`},"button.search":{message:`Search`,description:`Search button`},"button.edit":{message:`Edit Message`,description:`Edit the sent message`},"modelGroup.chatgpt":{message:`ChatGPT`,description:`Name of the service model, i.e., GPT`},"modelGroup.chatgptDescription":{message:`AI model developed by OpenAI`,description:`Description of the ChatGPT model`},"modelGroup.deepseek":{message:`DeepSeek`,description:`Name of the service model, i.e., DeepSeek`},"modelGroup.deepseekDescription":{message:`AI model developed by DeepSeek Inc.`,description:`Description of the DeepSeek model`},"modelGroup.grok":{message:`Grok`,description:`Name of the service model, i.e., Grok`},"modelGroup.grokDescription":{message:`AI model developed by xAI`,description:`Description of the Grok model`},"modelGroup.gemini":{message:`Gemini`,description:`Name of the service model, i.e., Gemini`},"modelGroup.geminiDescription":{message:`AI model developed by Google`,description:`Description of the Gemini model group`},"modelGroup.claude":{message:`Claude`,description:`Name of the service model, i.e., Claude`},"modelGroup.claudeDescription":{message:`AI model developed by Anthropic`,description:`Description of the Claude model group`},"modelGroup.kimi":{message:`Kimi`,description:`Name of the service model, i.e., Kimi`},"modelGroup.kimiDescription":{message:`AI model developed by Dark Side of the Moon Inc.`,description:`Description of the Kimi model group`},"modelGroup.glm":{message:`GLM`,description:`Name of the service model, i.e., GLM`},"modelGroup.glmDescription":{message:`Large language model developed by Zhipu AI`,description:`Description of the GLM model group`},"model.56Sol":{message:`gpt-5.6-sol`,description:`Name of the service model, i.e., GPT 5.6 Sol`},"model.56SolDescription":{message:`Flagship GPT 5.6 model for the most demanding tasks`,description:`Description of the GPT 5.6 Sol model`},"model.56Terra":{message:`gpt-5.6-terra`,description:`Name of the service model, i.e., GPT 5.6 Terra`},"model.56TerraDescription":{message:`Balanced GPT 5.6 model for everyday work`,description:`Description of the GPT 5.6 Terra model`},"model.56Luna":{message:`gpt-5.6-luna`,description:`Name of the service model, i.e., GPT 5.6 Luna`},"model.56LunaDescription":{message:`Fast and lightweight GPT 5.6 model`,description:`Description of the GPT 5.6 Luna model`},"model.freeTag":{message:`Free`,description:`Badge shown next to free models in the model selector`},"model.deepseekChat":{message:`3.0`,description:`Name of the service model, i.e., DeepSeek Chat`},"model.deepseekChatDescription":{message:`Suitable for everyday tasks`,description:`Description of the DeepSeek Chat model`},"model.deepseekReasoner":{message:`R1`,description:`Name of the service model, i.e., DeepSeek Reasoner`},"model.deepseekReasonerDescription":{message:`Suitable for reasoning and deep thinking questions`,description:`Description of the DeepSeek Reasoner model`},"model.deepseekChat32":{message:`3.2`,description:`Name of the service model, i.e., DeepSeek V3.2 Exp`},"model.deepseekChat32Description":{message:`Latest experimental version`,description:`Description of the DeepSeek V3.2 experimental model`},"model.deepseekV4Flash":{message:`4.0`,description:`Name of the service model, i.e., DeepSeek V4 Flash`},"model.deepseekV4FlashDescription":{message:`Latest lightweight flagship, 1M context`,description:`Description of the DeepSeek V4 Flash model`},"model.grok4":{message:`grok-4`,description:`Name of the service model, i.e., Grok 4`},"model.grok4Description":{message:`Currently the most advanced model`,description:`Description of the Grok 4 model`},"model.grok3":{message:`grok-3`,description:`Name of the service model`},"model.grok3Description":{message:`Suitable for most tasks`,description:`Description of the Grok3 model`},"model.gemini30Pro":{message:`gemini-3.0-pro`,description:`Name of the service model, i.e., Gemini 3.0 Pro`},"model.gemini30ProDescription":{message:`Currently the most advanced model`,description:`Description of the Gemini 3.0 Pro model`},"model.gemini31Pro":{message:`gemini-3.1-pro`,description:`Name of the service model, i.e., Gemini 3.0 Pro`},"model.gemini31ProDescription":{message:`Currently the most advanced model`,description:`Description of the Gemini 3.0 Pro model`},"model.gemini25Pro":{message:`gemini-2.5-pro`,description:`Name of the service model, i.e., Gemini 2.5 Pro`},"model.gemini25ProDescription":{message:`Suitable for complex reasoning tasks`,description:`Description of the Gemini 2.5 Pro model`},"model.gemini25Flash":{message:`gemini-2.5-flash`,description:`Name of the service model, i.e., Gemini 2.5 Flash`},"model.gemini25FlashDescription":{message:`Faster and lighter model`,description:`Description of the Gemini 2.5 Flash model`},"model.gemini35Flash":{message:`gemini-3.5-flash`,description:`Name of the service model, i.e., Gemini 2.5 Flash`},"model.gemini35FlashDescription":{message:`Faster and lighter model`,description:`Description of the Gemini 2.5 Flash model`},"model.claudeOpus5":{message:`claude-opus-5`,description:`Name of the service model, i.e., Claude Opus 5`},"model.claudeOpus5Description":{message:`Currently the most advanced model`,description:`Description of the Claude Opus 5 model`},"model.claudeOpus48":{message:`claude-opus-4.8`,description:`Name of the service model, i.e., Claude Opus 4.8`},"model.claudeOpus48Description":{message:`Currently the most advanced model`,description:`Description of the Claude Opus 4.8 model`},"model.claudeSonnet46":{message:`claude-sonnet-4.6`,description:`The model name of the service, which is Claude Sonnet 4.6`},"model.claudeSonnet46Description":{message:`Suitable for most tasks`,description:`Description of the Claude Sonnet 4.6 model`},"model.claudeHaiku45":{message:`claude-haiku-4.5`,description:`Name of the service model, i.e., Claude Haiku 4.5`},"model.claudeHaiku45Description":{message:`Lightweight and fast model`,description:`Description of the Claude Haiku 4.5 model`},"model.kimiK3":{message:`kimi-k3`,description:`Name of Moonshot AI's Kimi K3 flagship model`},"model.kimiK3Description":{message:`Flagship reasoning and vision model with a 1M-token context window`,description:`Description of the Kimi K3 model`},"model.kimiK26":{message:`kimi-k2.6`,description:`Name of the Kimi K2.6 model`},"model.kimiK26Description":{message:`Reasoning and vision model for compatible K2 workflows`,description:`Description of the Kimi K2.6 model`},"model.kimiK25":{message:`kimi-k2.5`,description:`Name of the service model, i.e., Kimi K2.5`},"model.kimiK25Description":{message:`General-purpose K2 model for compatible workflows`,description:`Description of the Kimi K2.5 model`},"model.kimiK2Thinking":{message:`kimi-k2 reasoning`,description:`Name of the service model, i.e., Kimi K2 reasoning`},"model.kimiK2ThinkingDescription":{message:`Suitable for reasoning and deep thinking questions`,description:`Description of the Kimi K2 reasoning model`},"model.kimiK2ThinkingTurbo":{message:`kimi-k2 turbo reasoning`,description:`Name of the service model, i.e., Kimi K2 turbo reasoning`},"model.kimiK2ThinkingTurboDescription":{message:`Faster reasoning model`,description:`Description of the Kimi K2 turbo reasoning model`},"model.glm51":{message:`glm-5.1`,description:`Name of the service model, i.e., GLM 5.1`},"model.glm51Description":{message:`Latest flagship model from Zhipu`,description:`Description of the GLM 5.1 model`},"model.glm47":{message:`glm-4.7`,description:`Name of the service model, i.e., GLM 4.7`},"model.glm47Description":{message:`Balanced performance and cost`,description:`Description of the GLM 4.7 model`},"message.startNewChat":{message:`Start new conversation`,description:`Message on the webpage informing the user to start a new conversation`},"message.uploadFile":{message:`Upload file`,description:`Message on the webpage informing the user to upload a file`},"message.noToken":{message:`Please apply for the relevant service first`,description:`Message on the webpage informing the user to apply for the relevant service first`},"message.newMessagePlaceholder":{message:`Please enter your question...`,description:`Placeholder on the webpage informing the user to enter a question`},"message.noInput":{message:`Question cannot be empty`,description:`Message on the webpage informing the user that the question cannot be empty`},"message.uploadReferencesExceed":{message:`You can upload a maximum of 1 file`,description:`Message on the webpage informing the user that they can upload a maximum of 1 file`},"message.uploadReferencesError":{message:`File upload failed, please try again later`,description:`Message on the webpage informing the user that the file upload failed, please try again later`},"message.uploadReferencesTooLarge":{message:`The file is {size}, over the {max} limit. Please compress it and try again.`,description:`Message informing the user that the file exceeds the upload size limit and should be compressed before retrying`},"message.notApplied":{message:`You have not applied for this service, please apply first`,description:`Message on the webpage informing the user that they have not applied for this service, please apply first`},"message.tryForFree":{message:`Try for free`,description:`Message on the webpage informing the user about a free trial`},"message.question1":{message:`Create a training plan`,description:`Example question to start a conversation, asking the user to write a JavaScript code that outputs Hello World`},"message.question2":{message:`Make a personal webpage`,description:`Example question to start a conversation, asking the user to write an email to Mike informing him that they just moved`},"message.question3":{message:`Design an interesting programming game`,description:`Example question to start a conversation, asking the user to explain the basic principles of quantum computing in simple terms`},"message.question4":{message:`Experience Seoul like a local`,description:`Example question to start a conversation, asking the user to explain the impact of virtual reality on artistic creation`},"message.question5":{message:`Which is larger, 9.8 or 9.11?`,description:`Example question to start a conversation, asking to compare the sizes of two numbers`},"message.question6":{message:`What impact does AI have on the future?`,description:`Example question to start a conversation, asking about the impact of AI on the future`},"message.question7":{message:`How to improve learning efficiency?`,description:`Example question to start a conversation, asking how to improve one's learning efficiency`},"message.question8":{message:`How to improve concentration?`,description:`Example question to start a conversation, asking how to improve one's concentration`},"message.errorApiError":{message:`Response failed, please try again later`,description:`Message on the webpage informing the user that the response failed, please try again later`},"message.errorBadRequest":{message:`Request content is not valid, please rephrase your question`,description:`Message on the webpage informing the user that the request content is not valid, please rephrase your question`},"message.errorNoConversation":{message:`Conversation does not exist or has expired, please start a new conversation`,description:`Message on the webpage informing the user that the conversation does not exist or has expired, please start a new conversation`},"message.errorContentTooLarge":{message:`The uploaded images or conversation content are too large. Please compress images, reduce the number of images, or shorten the content and try again.`,description:`Message informing the user that uploaded images or conversation content are too large and should be compressed or reduced before retrying`},"message.errorTooManyRequests":{message:`Your requests are too frequent, please try again later`,description:`Message in the webpage informing the user that their requests are too frequent and to try again later`},"message.errorBusy":{message:`Server is busy, please try again later.`,description:`Message on the webpage informing the user that the server is busy and to try again later.`},"message.errorUsedUp":{message:`You have used up your package quota, please purchase more to continue using.`,description:`Message on the webpage informing the user that they have used up their package quota and need to purchase more to continue.`},"message.errorUnknown":{message:`An unknown error occurred on the server, please try again later or contact support.`,description:`Message on the webpage informing the user that an unknown error occurred on the server and to try again later or contact support.`},"message.errorTimeout":{message:`Response timed out, please try again later.`,description:`Message on the webpage informing the user that the response timed out and to try again later.`},"message.errorNotApplied":{message:`You have not applied for this service, please apply first before continuing to ask questions.`,description:`Message on the webpage informing the user that they have not applied for the service and need to apply first before continuing.`},"message.confirmDelete":{message:`Confirm deletion`,description:`Message on the webpage asking the user to confirm deletion.`},"message.howToUse":{message:`AI may make mistakes, please verify important information.`,description:`Message on the webpage informing the user that AI may make mistakes and to verify important information.`},"title.chat":{message:`AI Chat`,description:`Title of the webpage, which is AI Chat.`},"title.example":{message:`Example`,description:`Title of the webpage, which is Example.`},"title.capabilities":{message:`Capabilities`,description:`Title of the webpage, which is Capabilities.`},"title.limitations":{message:`Limitations`,description:`Title on the webpage indicating that this section is about the technical limitations of the service.`},"title.complexQuestion":{message:`Answering Complex Questions`,description:`Title on the webpage indicating that this section is about the service's ability to answer complex questions.`},"title.professionalQuestion":{message:`Consulting Professional Questions`,description:`Title on the webpage indicating that this section is about the service's ability to consult on professional questions.`},"title.getTips":{message:`Get Inspiration and Ideas`,description:`Title on the webpage indicating that this section is about the service's ability to provide inspiration and ideas.`},"group.today":{message:`Today`,description:`Group name on the webpage, which is Today.`},"group.yesterday":{message:`Yesterday`,description:`Group name on the webpage, which is Yesterday.`},"group.thisWeek":{message:`This Week`,description:`Group name on the webpage, which is This Week.`},"group.earlier":{message:`Earlier`,description:`Group name on the webpage, which is Earlier.`},"connections.tooltip":{message:`Connection Management`,description:`Tooltip for the button that redirects to the auth.acedata.cloud connection management page.`},"skill.tooltip":{message:`Skill Management`,description:`Tooltip for the button that redirects to the auth.acedata.cloud skill management page.`},"composer.addAction":{message:`Add Content`,description:`Tooltip for the plus button below the input box, which expands to upload files, open skills, or manage connections.`},"composer.addFiles":{message:`Add Photos or Files`,description:`Item in the popup menu of the plus button: upload images or files.`},"composer.skills":{message:`Skills`,description:`Item in the popup menu of the plus button: open skill management.`},"composer.connections":{message:`Connections`,description:`Item in the popup menu of the plus button: open connection management.`},"agent.title":{message:`Desktop Agent`,description:`Title of the agent management dialog.`},"agent.tooltip":{message:`Desktop Agent`,description:`Tooltip for the agent button.`},"agent.connected":{message:`Connected`,description:`Status indicating the agent is connected.`},"agent.notConnected":{message:`Not Connected`,description:`Status indicating the agent is not connected.`},"agent.description":{message:`Connect the desktop agent to access local files, run commands, and use the local MCP server in AI conversations.`,description:`Description of the agent.`},"agent.name":{message:`Agent Name`,description:`Label for the agent name.`},"agent.tools":{message:`Available Tools`,description:`Label for the number of agent tools.`},"agent.connectedSince":{message:`Connected Since`,description:`Label for the agent connection time.`},"agent.connectedHint":{message:`Your desktop agent is connected and ready to use.`,description:`Hint indicating the agent is connected.`},"agent.installLabel":{message:`Install Desktop Agent:`,description:`Installation instruction label`},"agent.runLabel":{message:`Run Agent:`,description:`Label for the run instruction`},"askUserQuestion.submit":{message:`Submit`,description:`Submit button for the last question in the ask-user-question wizard`},"askUserQuestion.next":{message:`Next Question`,description:`Advance to the next question in the ask-user-question wizard`},"askUserQuestion.back":{message:`Previous Question`,description:`Go back to the previous question in the ask-user-question wizard`},"askUserQuestion.skipAll":{message:`Skip All`,description:`Skip the entire ask-user-question wizard, allowing the model to continue without answers`},"askUserQuestion.other":{message:`Other`,description:`Pseudo-option; selecting this will expand a custom text input box for the question`},"askUserQuestion.otherDesc":{message:`Enter your own answer`,description:`Helper text below the other option`},"askUserQuestion.placeholder":{message:`Please enter your answer…`,description:`Placeholder text for the custom answer input box for each question`},"askUserQuestion.multiSelectHint":{message:`Select one or more options`,description:`Hint displayed when multiple choice questions are supported`},"askUserQuestion.collapsedAnswerLabel":{message:`Your Answer`,description:`Fallback text when a specific answer cannot be extracted from historical output`},"consent.title":{message:`Connector authorization needed`,description:`Title of the connector consent card`},"consent.matchAny":{message:`Authorize any of these`,description:`Label: any one of the listed connectors satisfies this requirement`},"consent.matchAll":{message:`Authorize all of these`,description:`Label: every listed connector must be authorized`},"consent.authorize":{message:`Authorize`,description:`Authorize button; opens the third-party OAuth flow`},"consent.skip":{message:`Skip`,description:`Skip button; continue without authorizing any connector`},"consent.continue":{message:`Continue`,description:`Continue button shown after we detect (post-OAuth) that the connector is now connected; submitting authorizes it.`},"consent.selectScopes":{message:`Select {provider} Authorization Scopes`,description:`Title of the scope picker dialog opened from the consent card; {provider} is the upstream provider name (e.g. Gmail).`},"consent.selectScopesHint":{message:`Select the permissions you wish to authorize. Multiple selections are allowed; by default, only basic login information is granted.`,description:`Body copy explaining that the user can opt out of specific scopes; rendered above the checkbox group.`},"consent.installFailed":{message:`Authorization failed. Please try again.`,description:`Toast shown when the AuthBackend install endpoint returns an error from the consent card.`},"consent.statusConnected":{message:`Connected`,description:`Pill badge for already-connected connectors`},"consent.statusUnconnected":{message:`Unavailable`,description:`Pill badge for unconnected connectors with no install URL`},"consent.resolvedAuthorized":{message:`Authorized: {list}`,description:`Resolved banner after authorization; {list} = comma-separated connector ids`},"consent.resolvedSkipped":{message:`Connector authorization skipped`,description:`Resolved banner when the user clicked Skip`},"browserTool.title":{message:`Browser activity`,description:`Fallback title for a BrowserDevice tool activity`},"browserTool.state.starting_session":{message:`Starting browser session`},"browserTool.state.attaching_tab":{message:`Attaching browser tab`},"browserTool.state.ready":{message:`Browser is ready`},"browserTool.state.device_offline":{message:`Browser device is offline`},"browserTool.state.device_busy":{message:`Browser device is busy`},"browserTool.state.authorization_required":{message:`Authorization required in Studio`},"browserTool.state.executing":{message:`Executing in browser`},"browserTool.state.completed":{message:`Completed`},"browserTool.state.stopped":{message:`Browser session stopped`},"browserTool.state.expired":{message:`Browser request expired`},"browserTool.state.debugger_unavailable":{message:`Close DevTools to continue`},"browserTool.state.unknown_outcome":{message:`Outcome is unknown; verify before retrying`},"browserTool.state.failed":{message:`Browser operation failed`},"browserTool.stop":{message:`Stop`},"browserTool.recovery.open-device-manager":{message:`Manage device`},"browserTool.recovery.stop-other-session":{message:`Stop other session`},"browserTool.recovery.close-devtools":{message:`Close DevTools`},"browserTool.recovery.open-consent-card":{message:`Review authorization`},"scheduledTasks.navTitle":{message:`Scheduled Tasks`},"scheduledTasks.tab.tasks":{message:`Tasks`,description:`Scheduled tasks page - tasks tab`},"scheduledTasks.tab.runs":{message:`Runs`,description:`Scheduled tasks page - all runs tab`},"scheduledTasks.filterAll":{message:`All`,description:`Run status filter - all`},"scheduledTasks.title":{message:`Scheduled Tasks`},"scheduledTasks.create":{message:`New`},"scheduledTasks.edit":{message:`Edit Task`},"scheduledTasks.duplicate":{message:`Duplicate Task`},"scheduledTasks.empty":{message:`No scheduled tasks yet. Click "New" to create one.`},"scheduledTasks.noRuns":{message:`No runs yet`},"scheduledTasks.loadError":{message:`Failed to load`},"scheduledTasks.deleteConfirm":{message:`Delete "{name}"? The task will stop running.`},"scheduledTasks.triggerNow":{message:`Run now`,description:`Trigger the task immediately, out of schedule`},"scheduledTasks.triggerSuccess":{message:`Triggered. The result will appear in run history shortly.`,description:`Manual trigger success`},"scheduledTasks.triggerError":{message:`Failed to trigger. Please try again later.`,description:`Manual trigger error`},"scheduledTasks.viewResult":{message:`View Result`},"scheduledTasks.viewRuns":{message:`Run history`},"scheduledTasks.noConversation":{message:`No conversation`},"scheduledTasks.jitterHint":{message:`±60s jitter`},"scheduledTasks.runCount":{message:`Ran {count} time(s)`},"scheduledTasks.state.enabled":{message:`Active`},"scheduledTasks.state.disabled":{message:`Paused`},"scheduledTasks.state.error":{message:`Error`},"scheduledTasks.run.queued":{message:`Queued`},"scheduledTasks.run.running":{message:`Running`},"scheduledTasks.run.success":{message:`Success`},"scheduledTasks.run.failed":{message:`Failed`},"scheduledTasks.run.indeterminate":{message:`Unconfirmed`,description:`Indeterminate run status (judge could not verify; not a failure)`},"scheduledTasks.run.reason.max_turns":{message:`Reached step limit`},"scheduledTasks.run.reason.max_budget_usd":{message:`Reached budget limit`},"scheduledTasks.run.reason.tool_call_loop":{message:`Tool call loop detected`},"scheduledTasks.run.reason.prompt_too_long":{message:`Prompt too long`},"scheduledTasks.run.reason.aborted_streaming":{message:`Interrupted`},"scheduledTasks.run.reason.aborted_tools":{message:`Interrupted`},"scheduledTasks.run.reason.awaiting_user_input":{message:`Waiting for your input`},"scheduledTasks.run.reason.error":{message:`Error`},"scheduledTasks.run.reason.unknown":{message:`Unknown error`},"scheduledTasks.run.reason.balance_insufficient":{message:`Insufficient balance`},"scheduledTasks.run.reason.billing_gate_failed":{message:`Billing authorization failed`},"scheduledTasks.run.reason.unauthorized":{message:`Unauthorized`},"scheduledTasks.run.reason.timeout":{message:`Timed out`},"scheduledTasks.run.reason.internal_error":{message:`Internal error`},"scheduledTasks.run.needs_user_input":{message:`Needs action`},"scheduledTasks.run.reason.browser_device_offline":{message:`Browser device is offline`},"scheduledTasks.run.reason.browser_authorization_stale":{message:`Browser authorization changed; edit this task`},"scheduledTasks.scheduleType.daily":{message:`Daily`},"scheduledTasks.scheduleType.minutely":{message:`Every minute`},"scheduledTasks.scheduleType.hourly":{message:`Hourly`},"scheduledTasks.scheduleType.weekly":{message:`Weekly`},"scheduledTasks.scheduleType.cron":{message:`Cron expression`},"scheduledTasks.scheduleType.interval":{message:`Every`,description:`Run at a fixed interval`},"scheduledTasks.form.intervalUnit.minute":{message:`minutes`,description:`Interval unit: minutes`},"scheduledTasks.form.intervalUnit.hour":{message:`hours`,description:`Interval unit: hours`},"scheduledTasks.form.intervalUnit.day":{message:`days`,description:`Interval unit: days`},"scheduledTasks.form.hourlyMinute":{message:`At minute`,description:`Which minute of each hour to run`},"scheduledTasks.form.hourlyMinuteHint":{message:`Which minute of each hour to run (0–59)`,description:`Hourly minute hint`},"scheduledTasks.form.intervalHint":{message:`Runs once every fixed interval after the previous run (minimum 1 minute)`,description:`Interval hint`},"scheduledTasks.form.cronHint":{message:`Standard 5-field cron expression: minute hour day month weekday`,description:`Cron hint`},"scheduledTasks.form.schedulePreview":{message:`Runs {text}`,description:`Schedule preview`},"scheduledTasks.humanize.everyNMinutes":{message:`every {n} min`,description:`Human-readable: every N minutes`},"scheduledTasks.humanize.everyNHours":{message:`every {n} h`,description:`Human-readable: every N hours`},"scheduledTasks.humanize.everyNDays":{message:`every {n} d`,description:`Human-readable: every N days`},"scheduledTasks.humanize.hourlyAtMinute":{message:`hourly at minute {n}`,description:`Human-readable: hourly at minute N`},"scheduledTasks.humanize.dailyAt":{message:`daily at {time}`,description:`Human-readable: daily at time`},"scheduledTasks.humanize.weeklyAt":{message:`{weekday} at {time}`,description:`Human-readable: weekly at weekday/time`},"scheduledTasks.humanize.cronRaw":{message:`Cron: {cron}`,description:`Human-readable: raw cron`},"scheduledTasks.humanize.once":{message:`once at {time}`,description:`Human-readable: once`},"scheduledTasks.form.name":{message:`Task name`},"scheduledTasks.form.namePlaceholder":{message:`e.g. Daily news summary`},"scheduledTasks.form.model":{message:`Model`},"scheduledTasks.form.prompt":{message:`Prompt`},"scheduledTasks.form.promptPlaceholder":{message:`Enter your scheduled question or instruction. Supports {'{{date}}'}, {'{{run_count}}'}, {'{{last_output}}'} variables.`},"scheduledTasks.form.promptHint":{message:`Variables: {'{{date}}'} today, {'{{run_count}}'} run number, {'{{last_output}}'} last output snippet`},"scheduledTasks.form.schedule":{message:`Frequency`},"scheduledTasks.form.time":{message:`Time`},"scheduledTasks.form.timezone":{message:`Time zone`,description:`Scheduled task time zone field`},"scheduledTasks.form.timezoneHint":{message:`New tasks default to this device's time zone: {timezone}. Once saved, it stays fixed to the task.`,description:`Scheduled task time zone guidance`},"scheduledTasks.form.timezoneInvalid":{message:`Select a valid IANA time zone`,description:`Invalid time zone warning`},"scheduledTasks.form.weekday":{message:`Weekday`},"scheduledTasks.form.cron":{message:`Cron expression`},"scheduledTasks.form.skills":{message:`Authorized Skills`},"scheduledTasks.form.skillsPlaceholder":{message:`Select Skills this task may run automatically`},"scheduledTasks.form.skillsHint":{message:`Selected Skills may skip interactive confirmation during scheduled background runs. Unselected Skills can still preview or wait for confirmation.`},"scheduledTasks.form.browserConnection":{message:`Browser connection`},"scheduledTasks.form.browserEffects":{message:`May perform these external side effects: {effects}`},"scheduledTasks.form.authorizationExpires":{message:`Unattended authorization expires: {time}`},"scheduledTasks.form.browserBindingInvalid":{message:`Select an online, compatible browser connection before saving`},"scheduledTasks.form.connectionAccount":`Account for {connector}`,"scheduledTasks.form.connectionAccountDefault":`Use the default account`,"scheduledTasks.form.accountIsDefault":`default`,"scheduledTasks.form.skillMissing":{message:`Not connected`},"scheduledTasks.form.mcpServers":{message:`Authorized MCP`},"scheduledTasks.form.mcpServersPlaceholder":{message:`Select MCP servers this task may load automatically`},"scheduledTasks.form.mcpServersHint":{message:`Selected MCP servers may be loaded and used during scheduled background runs. Unselected MCP servers will not load in unattended mode.`},"scheduledTasks.form.maxTurns":{message:`Max turns`},"scheduledTasks.form.maxTurnsHint":{message:`Maximum agent turns allowed per run (1–50). Too low a limit force-stops multi-step tasks (e.g. skills that run several Bash/doc-lookup steps) before they finish, leaving no final result. Default 50.`},"scheduledTasks.form.skillsConfirmTitle":{message:`Confirm unattended authorization`},"scheduledTasks.form.skillsConfirm":{message:`This task will allow {count} Skill/MCP item(s) to skip interactive confirmation or load restrictions in background runs: {skills}. They may send messages, publish content, or write to external services. Please confirm.`},"scheduledTasks.form.skillNotActiveTitle":{message:`Bind the skill first`,description:`Dialog title shown when a scheduled-task authorized skill/MCP is not yet bound for the user.`},"scheduledTasks.form.skillNotActiveMessage":{message:`The skill "{name}" is not bound or active in your account yet. Without binding it, the scheduled task may not be able to use it during unattended background runs. We recommend binding it first, or you can save anyway.`,description:`Warning body; {name} is the skill/MCP name. Explains it is not bound and offers to save anyway.`},"scheduledTasks.form.skillNotActiveForce":{message:`Save anyway`,description:`Confirm button that saves the scheduled task anyway, bypassing the binding check (force).`},"scheduledTasks.form.required":{message:`Please fill in task name and prompt`},"artifacts.navTitle":{message:`Artifacts`,description:`Sidebar artifacts entry`},"artifacts.title":{message:`My Artifacts`,description:`Artifacts page title`},"artifacts.summaryTotal":{message:`{count} artifacts`,description:`Artifacts summary total`},"artifacts.filterAll":{message:`All`,description:`Artifact kind filter - all`},"artifacts.empty":{message:`No artifacts yet. After the AI publishes articles, generates images or sends emails for you, they will show up here automatically.`,description:`Artifacts empty hint`},"artifacts.loadError":{message:`Failed to load artifacts`,description:`Artifacts load error`},"artifacts.actionError":{message:`Action failed, please retry`,description:`Artifact action error`},"artifacts.open":{message:`Open`,description:`Open artifact source link`},"artifacts.hide":{message:`Hide`,description:`Hide artifact`},"artifacts.unhide":{message:`Unhide`,description:`Restore a hidden artifact`},"artifacts.showHidden":{message:`Show hidden`,description:`Toggle in the filter bar to include hidden artifacts`},"artifacts.hiddenBadge":{message:`Hidden`,description:`Badge shown on artifacts that are currently hidden`},"artifacts.delete":{message:`Delete`,description:`Delete artifact`},"artifacts.deleteConfirm":{message:`Permanently delete this artifact?`,description:`Delete artifact confirm`},"artifacts.loadMore":{message:`Load more`,description:`Load more artifacts`},"artifacts.sourceAuto":{message:`Auto-captured`,description:`Auto-capture source badge`},"artifacts.kind.article":{message:`Article`,description:`Artifact kind - Article`},"artifacts.kind.image":{message:`Image`,description:`Artifact kind - Image`},"artifacts.kind.video":{message:`Video`,description:`Artifact kind - Video`},"artifacts.kind.audio":{message:`Audio`,description:`Artifact kind - Audio`},"artifacts.kind.document":{message:`Document`,description:`Artifact kind - Document`},"artifacts.kind.email":{message:`Email`,description:`Artifact kind - Email`},"artifacts.kind.message":{message:`Message`,description:`Artifact kind - Message`},"artifacts.kind.dataset":{message:`Dataset`,description:`Artifact kind - Dataset`},"artifacts.kind.link":{message:`Link`,description:`Artifact kind - Link`},"artifacts.kind.other":{message:`Other`,description:`Artifact kind - Other`},"share.menu":{message:`Share`,description:`Sidebar/toolbar menu item that opens the share-conversation dialog`},"share.dialogTitle":{message:`Share conversation`,description:`Title of the share-conversation dialog`},"share.description":{message:`Anyone with the link can view this conversation. They cannot continue the chat.`,description:`Explains what happens when a conversation is shared`},"share.createLink":{message:`Create share link`,description:`Button that creates a public share link for the conversation`},"share.copy":{message:`Copy link`,description:`Button that copies the share link to the clipboard`},"share.copied":{message:`Copied`,description:`Label shown briefly on the copy button after the link is copied`},"share.disable":{message:`Disable link`,description:`Button that revokes the share link so the URL stops working`},"share.disabled":{message:`Share link disabled.`,description:`Message shown after the share link is disabled`},"share.needLogin":{message:`Please sign in first to share this conversation.`,description:`Error shown when a guest tries to share a conversation without signing in`},"share.noConversation":{message:`Open a conversation first, then share it.`,description:`Error shown when the share button is used with no active conversation`},"share.createFailed":{message:`Failed to create share link, please try again later.`,description:`Error toast when creating a share link fails`},"share.disableFailed":{message:`Failed to disable share link, please try again later.`,description:`Error toast when revoking a share link fails`},"share.startYourOwn":{message:`Start your own chat`,description:`Call-to-action shown on the public share page linking anonymous viewers to the app home`},"share.unavailableTitle":{message:`This shared conversation is unavailable.`,description:`Heading shown on the public share page when the share link is invalid or revoked`},"share.unavailableHint":{message:`The owner may have disabled the link or the URL is incorrect.`,description:`Hint shown on the public share page when the share link is invalid or revoked`},"share.viewOnly":{message:`View-only shared conversation`,description:`Badge shown on the public share page indicating the conversation is read-only`},"share.untitled":{message:`Untitled conversation`,description:`Placeholder title used when a shared conversation has no title`},"share.footerNote":{message:`You are viewing a shared conversation. To chat with AI yourself, click above.`,description:`Footer note shown on the public share page under the conversation`},"scheduledTasks.run.reason.goal_not_achieved":{message:`Goal not achieved`},"scheduledTasks.run.reason.outcome_unknown":{message:`Result unconfirmed`},"scheduledTasks.run.reason.run_abandoned":{message:`Run status unknown`},"actions.rename":{message:`Rename`,description:`Rename menu item in the conversation actions menu`},"actions.renameTitle":{message:`Rename conversation`,description:`Title of the rename-conversation dialog`},"actions.renameEmpty":{message:`Please enter a name`,description:`Warning shown when the rename input is empty`},"actions.renameSuccess":{message:`Renamed`,description:`Toast shown after a conversation is renamed`},"actions.renameFailed":{message:`Failed to rename. Please try again later.`,description:`Toast shown when renaming a conversation fails`},"actions.deleteConfirm":{message:`Delete this conversation? This cannot be undone.`,description:`Confirmation text before deleting a conversation`},"actions.deleteSuccess":{message:`Deleted`,description:`Toast shown after a conversation is deleted`},"actions.deleteFailed":{message:`Failed to delete. Please try again later.`,description:`Toast shown when deleting a conversation fails`},"actions.tokenMissing":{message:`Token missing. Please sign in again.`,description:`Error shown when the credential is missing during a conversation action`},"actions.conversationMissing":{message:`Conversation not found`,description:`Error shown when the target conversation is missing`},"scheduledTasks.form.execution":{message:`Runs on`,description:`Where the task runs`},"scheduledTasks.execution.cloud":{message:`Cloud`,description:`Cloud execution mode`},"scheduledTasks.execution.local":{message:`This device`,description:`Local execution mode`},"scheduledTasks.execution.localNamed":{message:`This device ({device})`,description:`Local execution mode with device name`},"scheduledTasks.form.executionCloudHint":{message:`The platform runs it on schedule, whether or not your computer is on.`,description:`Cloud mode explanation`},"scheduledTasks.form.executionLocalHint":{message:`This device runs it on schedule, so it can read your files and run local commands. It won't run while the device is off or the app is closed; missed runs are recorded, not run late.`,description:`Local mode explanation`},"scheduledTasks.form.executionMobileUnsupported":{message:`Running on the device isn't supported on mobile yet`,description:`Why local execution is unavailable on mobile`},"scheduledTasks.form.executionWebUnsupported":{message:`Running on the device requires the desktop app`,description:`Why local execution is unavailable on web`},"scheduledTasks.form.executionDeviceUnavailable":{message:`Couldn't read this device's details — restart the app and try again`,description:`Desktop identity unavailable`},"scheduledTasks.form.localTools":{message:`Local tool access`,description:`Local tool authorization field`},"scheduledTasks.form.localToolsPlaceholder":{message:`Choose which local tools this task may use`,description:`Local tools select placeholder`},"scheduledTasks.form.localToolsHint":{message:`Unattended runs can't ask for permission, so only the tools you select here are available.`,description:`Local tool authorization explanation`},"scheduledTasks.run.skipped":{message:`Skipped`,description:`Run status: the device was offline, so it didn't run`},"workingDir.choose":{message:`Choose working directory`,description:`Desktop chat button above the composer: pick the project folder the AI works in; sending is blocked until one is chosen`},"workingDir.switchHint":{message:`Click to switch working directory`,description:`Tooltip on the path pill once a working directory is set`},"scheduledTasks.triggerLocalUnavailable":{message:`This task runs on a specific device — open the desktop app on that machine to run it now`,description:`Local task cannot be triggered from here`},"scheduledTasks.triggerWrongDevice":{message:`This task is bound to another device`,description:`Local task belongs to a different device`},"scheduledTasks.triggerSignedOut":{message:`Local scheduling is signed out — sign in again and retry`,description:`Daemon holds no credential`},"scheduledTasks.triggerAlreadyRunning":{message:`This task is already running`,description:`Task run in flight`},"actionConfirmation.confirm":{message:`Confirm`,description:`Confirm button on the action confirmation card`},"actionConfirmation.cancel":{message:`Cancel`,description:`Cancel button on the action confirmation card`},"actionConfirmation.resolvedConfirmed":{message:`Confirmed — action in progress`,description:`Collapsed banner after confirmation while the action continues`},"actionConfirmation.resolvedCancelled":{message:`Cancelled`,description:`Collapsed banner after the user cancels the action`},"actionConfirmation.mediaLoading":{message:`Loading media preview…`,description:`Media loading state on the action confirmation card`},"actionConfirmation.mediaUnavailable":{message:`Preview cannot play here`,description:`Media playback failure title on the action confirmation card`},"actionConfirmation.mediaUnavailableHint":{message:`The media link may have expired, or this browser may not support its format. Open the original before publishing.`,description:`Media playback failure explanation on the action confirmation card`},"actionConfirmation.openMedia":{message:`Open original`,description:`Link to open confirmation media`},"actionConfirmation.tiktok.reviewBadge":{message:`Review before posting`,description:`TikTok confirmation card status badge`},"actionConfirmation.tiktok.publishTitle":{message:`Publish to TikTok`,description:`TikTok publish confirmation card title`},"actionConfirmation.tiktok.publishSummary":{message:`Confirm to publish this video to your TikTok account.`,description:`TikTok publish confirmation card summary`},"actionConfirmation.tiktok.publishButton":{message:`Publish`,description:`TikTok publish confirmation card submit button`},"actionConfirmation.tiktok.postingTo":{message:`Posting to this account`,description:`TikTok publish confirmation: account label`},"actionConfirmation.tiktok.connected":{message:`Connected`,description:`TikTok publish confirmation: account connection status`},"actionConfirmation.tiktok.unknownAccount":{message:`Account unavailable`,description:`TikTok publish confirmation: missing account placeholder`},"actionConfirmation.tiktok.detailsUnavailable":{message:`Publishing settings are not ready`,description:`TikTok publish confirmation: missing creator details title`},"actionConfirmation.tiktok.detailsUnavailableHint":{message:`The available visibility settings could not be read. Cancel and ask the assistant to reload your TikTok publishing settings.`,description:`TikTok publish confirmation: missing creator details explanation`},"actionConfirmation.tiktok.videoTooLongTitle":{message:`This video exceeds the account limit`,description:`TikTok publish confirmation: video duration error title`},"actionConfirmation.tiktok.postDetails":{message:`Post details`,description:`TikTok publish confirmation: post settings section title`},"actionConfirmation.tiktok.requiredNote":{message:`* Required`,description:`TikTok publish confirmation: required fields note`},"actionConfirmation.tiktok.caption":{message:`Caption`,description:`TikTok publish confirmation: caption field label`},"actionConfirmation.tiktok.captionPlaceholder":{message:`Write a caption — hashtags and mentions are supported`,description:`TikTok publish confirmation: caption placeholder`},"actionConfirmation.tiktok.privacy":{message:`Who can view this`,description:`TikTok publish confirmation: privacy dropdown label`},"actionConfirmation.tiktok.privacyPlaceholder":{message:`Select who can view`,description:`TikTok publish confirmation: privacy placeholder; TikTok forbids a default value`},"actionConfirmation.tiktok.noPrivacyOptions":{message:`No visibility options were returned, so this post cannot be published yet`,description:`TikTok publish confirmation: privacy options missing`},"actionConfirmation.tiktok.privacyPublic":{message:`Everyone`,description:`TikTok privacy level: public`},"actionConfirmation.tiktok.privacyFriends":{message:`Friends who follow each other`,description:`TikTok privacy level: mutual follow friends`},"actionConfirmation.tiktok.privacyFollowers":{message:`My followers`,description:`TikTok privacy level: followers`},"actionConfirmation.tiktok.privacySelf":{message:`Only me`,description:`TikTok privacy level: self only`},"actionConfirmation.tiktok.interactions":{message:`Interaction permissions`,description:`TikTok publish confirmation: interaction toggles group label`},"actionConfirmation.tiktok.interactionsHint":{message:`Only interactions currently available on this account can be enabled. All start off.`,description:`TikTok publish confirmation: interaction settings explanation`},"actionConfirmation.tiktok.disabledByAccount":{message:`Disabled by this account: {list}`,description:`TikTok publish confirmation: interactions disabled by the account`},"actionConfirmation.tiktok.allowComment":{message:`Comment`,description:`TikTok interaction toggle: allow comment`},"actionConfirmation.tiktok.allowDuet":{message:`Duet`,description:`TikTok interaction toggle: allow duet`},"actionConfirmation.tiktok.allowStitch":{message:`Stitch`,description:`TikTok interaction toggle: allow stitch`},"actionConfirmation.tiktok.disclosure":{message:`Content disclosure`,description:`TikTok publish confirmation: commercial disclosure section title`},"actionConfirmation.tiktok.commercial":{message:`This is commercial content`,description:`TikTok publish confirmation: commercial disclosure toggle`},"actionConfirmation.tiktok.commercialHint":{message:`Disclose content that promotes a brand, product, or service.`,description:`TikTok publish confirmation: commercial disclosure explanation`},"actionConfirmation.tiktok.yourBrand":{message:`Promoting your own brand`,description:`TikTok commercial content: promoting own business`},"actionConfirmation.tiktok.yourBrandHint":{message:`Promotes you or a business you operate`,description:`TikTok commercial content: own brand explanation`},"actionConfirmation.tiktok.brandedContent":{message:`Branded content`,description:`TikTok commercial content: paid partnership`},"actionConfirmation.tiktok.brandedContentHint":{message:`Promotes a third party in exchange for payment, gifts, or another incentive`,description:`TikTok commercial content: paid partnership explanation`},"actionConfirmation.tiktok.labelPromotional":{message:`Your video will be labeled as 'Promotional content'`,description:`TikTok commercial content: label shown after picking Your brand`},"actionConfirmation.tiktok.labelPaidPartnership":{message:`Your video will be labeled as 'Paid partnership'`,description:`TikTok commercial content: label shown after picking Branded content`},"actionConfirmation.tiktok.brandedNotPrivate":{message:`Branded content visibility cannot be set to private`,description:`TikTok publish confirmation: branded content and self-only are mutually exclusive`},"actionConfirmation.tiktok.tooLong":{message:`This video exceeds the account limit of {max} seconds`,description:`TikTok publish confirmation: video too long error`},"actionConfirmation.tiktok.beforePublishing":{message:`Before you publish`,description:`TikTok publish confirmation: policy notice title`},"actionConfirmation.tiktok.policyIntro":{message:`By clicking Publish, you confirm that you have the rights to the content and music and agree to TikTok's music terms.`,description:`TikTok publish confirmation: standard policy notice`},"actionConfirmation.tiktok.policyIntroBranded":{message:`By clicking Publish, you confirm that the disclosure is accurate and agree to TikTok's branded content and music terms.`,description:`TikTok publish confirmation: branded policy notice`},"actionConfirmation.tiktok.musicUsageLink":{message:`Read Music Usage Confirmation`,description:`TikTok publish confirmation: music usage link`},"actionConfirmation.tiktok.brandedPolicyLink":{message:`Read Branded Content Policy`,description:`TikTok publish confirmation: branded content policy link`},"actionConfirmation.tiktok.fixDetailsFirst":{message:`Publishing details are incomplete — cancel and regenerate this confirmation`,description:`TikTok publish confirmation: disabled button reason for missing details`},"actionConfirmation.tiktok.useShorterVideo":{message:`Choose a video within this account's duration limit`,description:`TikTok publish confirmation: disabled button reason for long video`},"actionConfirmation.tiktok.selectPrivacyFirst":{message:`Choose who can view this video`,description:`TikTok publish confirmation: disabled button reason for missing privacy`},"actionConfirmation.tiktok.selectDisclosureType":{message:`Choose a commercial content type`,description:`TikTok publish confirmation: disabled button reason for missing disclosure type`},"scheduledTemplates.title":{message:`Automation templates`,description:`Scheduled task template center copy`},"scheduledTemplates.createFromTemplate":{message:`Create from template`,description:`Scheduled task template center copy`},"scheduledTemplates.createCustom":{message:`Create custom task`,description:`Scheduled task template center copy`},"scheduledTemplates.emptyTitle":{message:`Let AI handle recurring work for you`,description:`Scheduled task template center copy`},"scheduledTemplates.emptyDescription":{message:`Choose an official template and connect the required accounts. You can run it from the task card after creation.`,description:`Scheduled task template creation and activation guidance`},"scheduledTemplates.browse":{message:`Browse templates`,description:`Scheduled task template center copy`},"scheduledTemplates.step.choose":{message:`Choose`,description:`Scheduled task template center copy`},"scheduledTemplates.step.configure":{message:`Configure`,description:`Scheduled task template center copy`},"scheduledTemplates.step.connect":{message:`Connect`,description:`Scheduled task template center copy`},"scheduledTemplates.search":{message:`Search templates`,description:`Scheduled task template center copy`},"scheduledTemplates.featured":{message:`Featured`,description:`Scheduled task template center copy`},"scheduledTemplates.ready":{message:`Ready to use`,description:`Scheduled task template center copy`},"scheduledTemplates.missingCount":{message:`Connect {count} item(s)`,description:`Scheduled task template center copy`},"scheduledTemplates.schedule":{message:`Schedule`,description:`Scheduled task template center copy`},"scheduledTemplates.connectionTitle":{message:`Prepare required connections`,description:`Scheduled task template center copy`},"scheduledTemplates.noConnections":{message:`No additional accounts required`,description:`Scheduled task template center copy`},"scheduledTemplates.connected":{message:`Connected`,description:`Scheduled task template center copy`},"scheduledTemplates.notConnected":{message:`Not connected`,description:`Scheduled task template center copy`},"scheduledTemplates.chooseAccount":{message:`Choose an account`,description:`Scheduled task template center copy`},"scheduledTemplates.connect":{message:`Connect`,description:`Scheduled task template center copy`},"scheduledTemplates.create":{message:`Create task`,description:`Scheduled task template creation and activation guidance`},"scheduledTemplates.createFailed":{message:`Could not create the task; check the configuration or connections`,description:`Scheduled task template creation and activation guidance`},"scheduledTemplates.createdDisabled":{message:`Task created and kept disabled. Run it from the task card, then enable it after it succeeds.`,description:`Scheduled task template creation and activation guidance`},"scheduledTemplates.enableFailed":{message:`This task cannot be enabled yet. Run it successfully first; some templates also require the expected draft artifact.`,description:`Scheduled task template creation and activation guidance`},"scheduledTemplates.loadError":{message:`Could not load templates`,description:`Scheduled task template center copy`},"scheduledTemplates.category.all":{message:`All`,description:`Scheduled task template center copy`},"scheduledTemplates.category.marketing":{message:`Marketing growth`,description:`Scheduled task template center copy`},"scheduledTemplates.category.content":{message:`Content creation`,description:`Scheduled task template center copy`},"scheduledTemplates.category.productivity":{message:`Productivity`,description:`Scheduled task template center copy`},"scheduledTemplates.category.research":{message:`Research & intelligence`,description:`Scheduled task template center copy`},"scheduledTemplates.category.development":{message:`Development & operations`,description:`Scheduled task template center copy`},"scheduledTemplates.category.personal":{message:`Personal assistant`,description:`Scheduled task template center copy`},"scheduledTemplates.previous":{message:`Previous`,description:`Scheduled template wizard navigation and connection guidance`},"scheduledTemplates.next":{message:`Next`,description:`Scheduled template wizard navigation and connection guidance`},"scheduledTemplates.connectionDescription":{message:`Only connections required by this template are used. Existing accounts are reused automatically.`,description:`Scheduled template wizard navigation and connection guidance`},"scheduledTemplates.noConnectionsHint":{message:`This template only uses built-in capabilities and is ready to create.`,description:`Scheduled task template creation and activation guidance`},"scheduledTemplates.connectionMissingHint":{message:`Connect this account to continue.`,description:`Scheduled template wizard navigation and connection guidance`},"scheduledTemplates.connectionBoundHint":{message:`This task will stay pinned to the account you select.`,description:`Scheduled template wizard navigation and connection guidance`},"scheduledTemplates.connectionMcpHint":{message:`Runs through the authorized MCP connection; no separate account binding is needed.`,description:`Scheduled template wizard navigation and connection guidance`}};export{e as default};