@acedatacloud/nexior 3.356.4 → 3.356.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ApiCodeButton-Xu21Doha.js → ApiCodeButton-6BQ24hBr.js} +1 -1
- package/dist/assets/{Artifacts-CzqRzxMh.js → Artifacts-DfOUIZNw.js} +1 -1
- package/dist/assets/{AskUserQuestionCard-CG1lAYBK.js → AskUserQuestionCard-CoKe4UW4.js} +1 -1
- package/dist/assets/{Auth-BaMkoXW2.js → Auth-BWqcW37N.js} +1 -1
- package/dist/assets/{Bare-sasJr4V1.js → Bare-C7UkiDM1.js} +1 -1
- package/dist/assets/{BotPlaceholder-Cphp5w1L.js → BotPlaceholder-Cv0cpmLN.js} +1 -1
- package/dist/assets/{BottomFooter-C0MAFR5r.js → BottomFooter-DexpBZjG.js} +1 -1
- package/dist/assets/{BrowserPairingDialog-CVpfj6bQ.js → BrowserPairingDialog-1grl2MG4.js} +1 -1
- package/dist/assets/{Callback-2I7cmtKG.js → Callback-DA6RIWas.js} +1 -1
- package/dist/assets/{CodeSnippet-CEruFBMa.js → CodeSnippet-Dx1rpfeG.js} +1 -1
- package/dist/assets/{Console-D8dRIUKU.js → Console-Dv7aTYxJ.js} +1 -1
- package/dist/assets/{Consumption-DrrnDc02.js → Consumption-CUCdAwJr.js} +1 -1
- package/dist/assets/{Conversation-hTMTTIiZ.js → Conversation-BZzZN23A.js} +1 -1
- package/dist/assets/{Conversation-DoO9iOxX.js → Conversation-Bhj7r6Tu.js} +1 -1
- package/dist/assets/{CopyToClipboard-P1yaIIEd.js → CopyToClipboard-Bt9-bdiq.js} +1 -1
- package/dist/assets/Detail-Bd9gzPbS.js +2 -0
- package/dist/assets/{Extra-wHHGetuF.js → Extra-DxdUhw4H.js} +1 -1
- package/dist/assets/{FilePreview-CK2HoS-Z.js → FilePreview-XUDkFjsP.js} +1 -1
- package/dist/assets/{Hailuo-0JIK6DOO.js → Hailuo-bw-0fTpS.js} +1 -1
- package/dist/assets/{History-C5CIJiX_.js → History-DHRsIkJf.js} +1 -1
- package/dist/assets/{ImagePreview-D7SZPPgL.js → ImagePreview-BEpyCuCR.js} +1 -1
- package/dist/assets/{ImageWrapper-CDudZK75.js → ImageWrapper-CfHW59VC.js} +1 -1
- package/dist/assets/{Index-DXoHy4Pn2.js → Index-B7Lswffy2.js} +1 -1
- package/dist/assets/{Index-BrVtB6cq.js → Index-BFUydcn3.js} +1 -1
- package/dist/assets/{Index-C_mhnnc7.js → Index-BL7YnhK1.js} +1 -1
- package/dist/assets/{Index-CQtnR9qq2.js → Index-BPKLzF292.js} +1 -1
- package/dist/assets/{Index-DkftTpIk.js → Index-BVzDeTwv.js} +1 -1
- package/dist/assets/{Index-BnlWqa7D.js → Index-BgFglTJI.js} +1 -1
- package/dist/assets/{Index-COGFsKb4.js → Index-Bk3W87n9.js} +1 -1
- package/dist/assets/Index-BkghY_pl2.js +1 -0
- package/dist/assets/{Index-T8IawVK4.js → Index-BljR55k-.js} +1 -1
- package/dist/assets/Index-Bn-G1Tul.js +1 -0
- package/dist/assets/{Index-B3gh7LdS.js → Index-BvPoCBYp.js} +1 -1
- package/dist/assets/Index-BvpwD5cJ.js +1 -0
- package/dist/assets/{Index-CK7wSROQ.js → Index-BwihEh4H.js} +1 -1
- package/dist/assets/{Index-C871pUj5.js → Index-C56WfVcK.js} +1 -1
- package/dist/assets/{Index-CXJ-2bd02.js → Index-CADF_O042.js} +1 -1
- package/dist/assets/{Index-pRCbDBz0.js → Index-CO088SPK.js} +1 -1
- package/dist/assets/{Index-CEi5GONZ.js → Index-CRDrcKeh.js} +1 -1
- package/dist/assets/{Index-Di56DtVD.js → Index-CfRAA9k3.js} +1 -1
- package/dist/assets/{Index-CE07sWJf.js → Index-D-7iOsPq.js} +1 -1
- package/dist/assets/{Index-DOyTW-5d.js → Index-D6IKewMA.js} +1 -1
- package/dist/assets/Index-DSrDQUom.css +1 -0
- package/dist/assets/Index-DYVPugeH.js +1 -0
- package/dist/assets/{Index-DFtHPWzK.js → Index-D_YjSXs1.js} +1 -1
- package/dist/assets/{Index-DTgYQM7a2.js → Index-Ds2kQVkw2.js} +1 -1
- package/dist/assets/{Index-0dcue--r.js → Index-Dw4dnBJ8.js} +1 -1
- package/dist/assets/Index-INpUeK0i.js +1 -0
- package/dist/assets/{Index-BjdjjH1A.js → Index-JRTJ-kMr.js} +1 -1
- package/dist/assets/{Index-DXVG1gvI.js → Index-NR9ijzqR.js} +1 -1
- package/dist/assets/{Index-BkfrlCAV.js → Index-Nl07ZHcQ.js} +1 -1
- package/dist/assets/Index-RWTFptKN.css +1 -0
- package/dist/assets/{Index-DsQtXNE7.js → Index-_XySBZcX.js} +1 -1
- package/dist/assets/{Index-EC5xwHfg.js → Index-c1wJ62cO.js} +1 -1
- package/dist/assets/{Index-4HzOjpgv.js → Index-h5RiL56D.js} +1 -1
- package/dist/assets/Index-hHV3vXY_.js +1 -0
- package/dist/assets/{Index-Bgeave8Z.js → Index-wbWEMTAA.js} +1 -1
- package/dist/assets/Index-wuIjdogy2.js +1 -0
- package/dist/assets/{Invitees-B7BDOC-v.js → Invitees-CRoRR9_L.js} +1 -1
- package/dist/assets/List-PSPPIGZu.js +1 -0
- package/dist/assets/List-YVmTkV7l.js +1 -0
- package/dist/assets/List-y5KotW1i.js +1 -0
- package/dist/assets/LocalTools-B-fJmxPf.js +5 -0
- package/dist/assets/{LocalTools-Bb1sQZSp.js → LocalTools-DE8DPg0B.js} +1 -1
- package/dist/assets/{Logo-CNK8s7a-.css → Logo-WBk_MhiY.css} +1 -1
- package/dist/assets/Logo-sFONdVoq.js +1 -0
- package/dist/assets/{Main-Db1vpRc6.js → Main-Co8CSF5F.js} +1 -1
- package/dist/assets/{Message-DeioDyCA.js → Message-D42j9r4n.js} +2 -2
- package/dist/assets/Model-CZEgpEeE.js +1 -0
- package/dist/assets/{Navigator-CrHtL_hB.js → Navigator-B0QtF_7Y.js} +4 -4
- package/dist/assets/{NotFound-B9fpH9S6.js → NotFound-DsG897QA.js} +1 -1
- package/dist/assets/{PageHeader-Tdao2cJq.js → PageHeader-CbkTb8VC.js} +1 -1
- package/dist/assets/{Pay-Cr5CXyPy.js → Pay-PtdW3YJH.js} +1 -1
- package/dist/assets/{Player-DBuN2RDs.js → Player-CFksbe9W.js} +1 -1
- package/dist/assets/{Poivelle-DcZBUn63.js → Poivelle-C6izEUQu.js} +1 -1
- package/dist/assets/{RealtimeCall-CReealiS.js → RealtimeCall-EjkRbLIM.js} +1 -1
- package/dist/assets/{ReportButton-DGmAAhbu.js → ReportButton-D01Y2fPF.js} +1 -1
- package/dist/assets/{ReportDialog-BoIqksHF.js → ReportDialog-C-LvxTDU.js} +1 -1
- package/dist/assets/ScheduledTasks-CSEUvl8u.js +2 -0
- package/dist/assets/{Status-DnGPb6gL.js → Status-BFjIX1Il.js} +1 -1
- package/dist/assets/{Subscribe-B2BmLjtq.js → Subscribe-CmTnt-8g.js} +1 -1
- package/dist/assets/{TabSwitcher-uHvguPMy.js → TabSwitcher-BTkLfapK.js} +1 -1
- package/dist/assets/{Tts-BN-qgcKs.js → Tts-BHZR2CK-.js} +1 -1
- package/dist/assets/{VideoPlayer-CekxyRb2.js → VideoPlayer-BZ-N1fim.js} +1 -1
- package/dist/assets/{VideoPreview-C40uaHUN.js → VideoPreview-B0iB1u-B.js} +1 -1
- package/dist/assets/arrow-down-DobiO3I2.js +1 -0
- package/dist/assets/{arrow-down-wide-narrow-CvQuXkVq.js → arrow-down-wide-narrow-B5kwbnvK.js} +1 -1
- package/dist/assets/arrow-left-C7YbzFz4.js +1 -0
- package/dist/assets/arrow-right-BqDy8oUP.js +1 -0
- package/dist/assets/arrow-up-D3J0RjzQ.js +1 -0
- package/dist/assets/authorizeFlow-C5pGDUo0.js +1 -0
- package/dist/assets/{avatar-DCNitqNA.js → avatar-CGmdnfgF.js} +1 -1
- package/dist/assets/{basic-DctCkyuK.js → basic-3cxK5-jB.js} +1 -1
- package/dist/assets/{book-open-D3en4xKo.js → book-open-C1SE6Fda.js} +1 -1
- package/dist/assets/{box-4-9crZjA.js → box-wbHSraQR.js} +1 -1
- package/dist/assets/{boxes-DEj-Jpkg.js → boxes-MVwGL0nl.js} +1 -1
- package/dist/assets/{brain-BDfvXAYj.js → brain-JmXy3a5o.js} +1 -1
- package/dist/assets/{chart-no-axes-combined-KsQOcXjm.js → chart-no-axes-combined-DUnEKBgM.js} +1 -1
- package/dist/assets/{chat-Bi9dt0o4.js → chat-W5EIWgBd.js} +1 -1
- package/dist/assets/check-DlRpPo6I.js +1 -0
- package/dist/assets/chevron-down-Dh-ucpyc.js +1 -0
- package/dist/assets/chevron-right-CVZ8AZ8w.js +1 -0
- package/dist/assets/circle-check-CavhTDIT.js +1 -0
- package/dist/assets/{circle-question-mark-C2d1olJN.js → circle-question-mark-DprNRYIi.js} +1 -1
- package/dist/assets/{clipboard-list-DMS6zJDR.js → clipboard-list-CfUN0mkD.js} +1 -1
- package/dist/assets/clock-DEvy_URV.js +1 -0
- package/dist/assets/code-C8NvMB5v.js +1 -0
- package/dist/assets/{codingBridge-ujDCPmv8.js → codingBridge-Bq1VJQjC.js} +2 -2
- package/dist/assets/{codingBridgeNotify-u9COFxYv.js → codingBridgeNotify-DPKDONe5.js} +2 -2
- package/dist/assets/{coins-OxjGENzt.js → coins-b7MZemrt.js} +1 -1
- package/dist/assets/{copy-BizdVpDe.js → copy-B2YuRywn.js} +1 -1
- package/dist/assets/{createTaskActions-LcZV_lE9.js → createTaskActions-1EHlmRvE.js} +1 -1
- package/dist/assets/{digitalhuman-BeP6EN5W.js → digitalhuman-Bk2vgt7Z.js} +1 -1
- package/dist/assets/{dollar-sign-9AyRDRoz.js → dollar-sign-J1NpQDbK.js} +1 -1
- package/dist/assets/{download-CeAWar5e.js → download-BrP-rjrE.js} +1 -1
- package/dist/assets/{drawer-CzQ0A6Bq.js → drawer-C9nReT9E.js} +1 -1
- package/dist/assets/{dropdown-pOD9WyGl.js → dropdown-DxoW0THn.js} +1 -1
- package/dist/assets/{dropdown-BtGMhNsE.js → dropdown-JbGeLDGF.js} +1 -1
- package/dist/assets/{ellipsis-Do5PRc0G.js → ellipsis-BxO5GayN.js} +1 -1
- package/dist/assets/esm-C1gTpyxK.js +1 -0
- package/dist/assets/{esm-BiXF-y2J.js → esm-CYRbQnfT.js} +3 -3
- package/dist/assets/{esm-Di9LUYrZ.js → esm-D3CZGCn5.js} +2 -2
- package/dist/assets/{esm-DGZpmDh_.js → esm-DBN2jeoB.js} +1 -1
- package/dist/assets/{esm-jckNbdc9.js → esm-FDk24ya1.js} +1 -1
- package/dist/assets/{esm-Ds0Rkk-R.js → esm-wpoa5VdG.js} +1 -1
- package/dist/assets/{esm-DPQorKmp.js → esm-z2lPt5Wp.js} +2 -2
- package/dist/assets/{external-link-C6gy8Xm_.js → external-link-Kw6ZqZY1.js} +1 -1
- package/dist/assets/{eye-CDshsHwE.js → eye-C9rS7I-Z.js} +1 -1
- package/dist/assets/{file-BvSa9ufI.js → file-DR2IZ2Wm.js} +1 -1
- package/dist/assets/{file-output-BrqeGkvR.js → file-output-VjU75OeS.js} +1 -1
- package/dist/assets/{file-text-DcYOkJ2p.js → file-text-MaMLzbn-.js} +1 -1
- package/dist/assets/{fish-Ddg4h_i_.js → fish-C9B0rie0.js} +1 -1
- package/dist/assets/{flux-6N2l5dHX.js → flux-PBnLpvhr.js} +1 -1
- package/dist/assets/{folder-DQoN-X34.js → folder-DCeDCS_I.js} +1 -1
- package/dist/assets/gauge-CDZOaO3o.js +1 -0
- package/dist/assets/{globe-CvhdBdM-.js → globe-Bob7DrFY.js} +1 -1
- package/dist/assets/{omni-CELS0ayz.js → grokvideo-BGd3X5Bt.js} +1 -1
- package/dist/assets/{hailuo-DDblv_Ey.js → hailuo-UHTwVLn2.js} +1 -1
- package/dist/assets/{headphones-COcXPoxg.js → headphones-CNumdgIN.js} +1 -1
- package/dist/assets/{history-D6oyQm5_.js → history-DxYlDSMb.js} +1 -1
- package/dist/assets/{house-hN88KR-U.js → house-CarM1_hC.js} +1 -1
- package/dist/assets/{image-DIFbuUSR.js → image-C3x2yaF9.js} +1 -1
- package/dist/assets/{index-BdWkx9SU.js → index-BMhc9ht-.js} +3 -3
- package/dist/assets/{index.browser.esm-DO1Vhkjk.js → index.browser.esm-BHYfuyGM.js} +1 -1
- package/dist/assets/{index.es-CD6boxX9.js → index.es-CXSlnQTL.js} +1 -1
- package/dist/assets/{info-BFhGiEMG.js → info-VadVQTaW.js} +1 -1
- package/dist/assets/{input-number-DLmTTyLi.js → input-number-sRRzJirK.js} +1 -1
- package/dist/assets/{key-round-bM8mpdKv.js → key-round-Dv4f_RVa.js} +1 -1
- package/dist/assets/{kling-CJj-wsQq.js → kling-B5fnqyL0.js} +1 -1
- package/dist/assets/{languages-8x3U12tx.js → languages-PvIvqbtl.js} +1 -1
- package/dist/assets/{laptop-C2EKyjYc.js → laptop-CIXgF4F6.js} +1 -1
- package/dist/assets/{lightbulb-CYRKtwwN.js → lightbulb-9OJOLCrN.js} +1 -1
- package/dist/assets/{link-DFHCMKZn.js → link-C4THpRA9.js} +1 -1
- package/dist/assets/loader-circle-BG-suH_u.js +1 -0
- package/dist/assets/{lock-Dwbu9lHM.js → lock-DHKA2YxE.js} +1 -1
- package/dist/assets/{luma-BgdqDQQs.js → luma-BsF4II8I.js} +1 -1
- package/dist/assets/{maestro-B8jD31lS.js → maestro-D7fU16Z_.js} +1 -1
- package/dist/assets/{mail-B8qt2YUY.js → mail-C0hda9yQ.js} +1 -1
- package/dist/assets/{message-circle-DaFwZN2R.js → message-circle-Djz2RzFP.js} +1 -1
- package/dist/assets/{mic-CqqkTs2j.js → mic-BeIuK2ip.js} +1 -1
- package/dist/assets/{midjourney-DYvR-Luc.js → midjourney-BjmF46AI.js} +1 -1
- package/dist/assets/{mobileLocalExec-BzR4hrc-.js → mobileLocalExec-BIgxBl4Y.js} +2 -2
- package/dist/assets/{monitor-DJuEd-yy.js → monitor-B6S-odAh.js} +1 -1
- package/dist/assets/{mouse-pointer-2-CBvkEf9f.js → mouse-pointer-2-cGRAOWQp.js} +1 -1
- package/dist/assets/music-2-CdvZyn9G.js +1 -0
- package/dist/assets/{nanobanana-FKFjiBOk.js → nanobanana-DUp6OfMA.js} +1 -1
- package/dist/assets/{grokvideo-CbgfCLGc.js → omni-DeQjdCgR.js} +1 -1
- package/dist/assets/{openaiimage-Crk7kDwW.js → openaiimage-Mme4iLDJ.js} +1 -1
- package/dist/assets/{pagination-DyrAs5EO.js → pagination-B7Iq1pRa.js} +1 -1
- package/dist/assets/{pagination-B5GCs88M.js → pagination-BJRxAoxX.js} +1 -1
- package/dist/assets/{pagination-NhZwBj0v.js → pagination-Z4NRITpd.js} +2 -2
- package/dist/assets/{palette-DnXBCMVe.js → palette-D4JJcvQv.js} +1 -1
- package/dist/assets/{paperclip-CPj0sU8B.js → paperclip-BfPTf2hh.js} +1 -1
- package/dist/assets/{pause-BNJbbjLO.js → pause-VZaap5SC.js} +1 -1
- package/dist/assets/{pencil-Dazn-vwZ.js → pencil-DyF3kqks.js} +1 -1
- package/dist/assets/{sora-SgY0X2te.js → pika-CmikXQaV.js} +1 -1
- package/dist/assets/{pixverse-B-nTamu5.js → pixverse-DuvkxhSa.js} +1 -1
- package/dist/assets/play-DkffiuVx.js +1 -0
- package/dist/assets/{plug-jAnpXwOU.js → plug-BomKSL9n.js} +1 -1
- package/dist/assets/plus-RBQ1J_ID.js +1 -0
- package/dist/assets/{poivelle-K38KYjzY.js → poivelle-CFwnHV3l.js} +1 -1
- package/dist/assets/{popover-C7-EcUPb.js → popover-Cxqmc4sh.js} +1 -1
- package/dist/assets/{producer-Cm4DDCeW.js → producer-CZVQDkbb.js} +1 -1
- package/dist/assets/{qrart-CPetWMTG.js → qrart-CbtN-s3r.js} +1 -1
- package/dist/assets/{realtime-tc0zeANG.js → realtime-DRhCe8B9.js} +1 -1
- package/dist/assets/{refresh-cw-D_BnZCE0.js → refresh-cw-D_W--kgj.js} +1 -1
- package/dist/assets/rotate-ccw-0WNQDkPL.js +1 -0
- package/dist/assets/rotate-cw-D8pd8wOm.js +1 -0
- package/dist/assets/search-CGnw5hkl.js +1 -0
- package/dist/assets/{seedance-DpTjAJGg.js → seedance-Ohaeyejp.js} +1 -1
- package/dist/assets/{seedream-B5ifNSfw.js → seedream-xMZNe6qi.js} +1 -1
- package/dist/assets/{select-DxlkO65R.js → select-BzDGa5m7.js} +1 -1
- package/dist/assets/{serp-ByU1O3u6.js → serp-lXkWvScf.js} +1 -1
- package/dist/assets/{shield-BCzF_179.js → shield-CTZgSVw8.js} +1 -1
- package/dist/assets/{shuffle-D2L8tnjA.js → shuffle-Dv9vMhpo.js} +1 -1
- package/dist/assets/{slider-BsLm6S1h.js → slider-B1ilR4PR.js} +1 -1
- package/dist/assets/{solana-wallets-BaSZWJON.js → solana-wallets-o4brcKaM.js} +2 -2
- package/dist/assets/{solana-wallets-vue-zFiuLTr3.js → solana-wallets-vue-w3TZF7vc.js} +1 -1
- package/dist/assets/{wan-uXSWUeus.js → sora-Cejv1_nB.js} +1 -1
- package/dist/assets/{sparkles-CYJWqD4D.js → sparkles-DVeLj533.js} +1 -1
- package/dist/assets/square-DBjAU4ZY.js +1 -0
- package/dist/assets/{store-DxnQ92l1.js → store-B-T1wTXt.js} +1 -1
- package/dist/assets/{suno-G_gFhqnt.js → suno-BXKweMT5.js} +1 -1
- package/dist/assets/{switch-J51NyhGI.js → switch-MNH0pcC0.js} +1 -1
- package/dist/assets/{table-BGCs9aQL.js → table-CaZfW01f.js} +1 -1
- package/dist/assets/{tag-Dzg8ORBT.js → tag-BM3rCL07.js} +1 -1
- package/dist/assets/terminal-BrLABIZl.js +1 -0
- package/dist/assets/{time-picker-CqoCSffr.js → time-picker-CcCY5PXl.js} +1 -1
- package/dist/assets/{tooltip-C_Jr9jzb.js → tooltip-qTn7nJhY.js} +1 -1
- package/dist/assets/{trash-2-BQLGMG1w.js → trash-2-C7OqHxci.js} +1 -1
- package/dist/assets/{triangle-alert-ShrL63ju.js → triangle-alert-D_Ku-290.js} +1 -1
- package/dist/assets/{upload-CNBzy6GU.js → upload-CbQoV27b.js} +1 -1
- package/dist/assets/user-pEJcKZxI.js +1 -0
- package/dist/assets/{veo-BGQfNjVF.js → veo-CZhHDGHW.js} +1 -1
- package/dist/assets/{video-C99OMS5v.js → video-CV2KbVky.js} +1 -1
- package/dist/assets/{volume-2-C3UYEUV3.js → volume-2-CQYW9Gap.js} +1 -1
- package/dist/assets/{wallet-BvlkH9z-.js → wallet-n7Ka0qLA.js} +1 -1
- package/dist/assets/{pika-BMwvjgXG.js → wan-DAJyljkz.js} +1 -1
- package/dist/assets/{wand-sparkles-DEWXPZMX.js → wand-sparkles-DT_fyyk1.js} +1 -1
- package/dist/assets/{web-CNOvgQuJ.js → web-CJZEIbMU.js} +1 -1
- package/dist/assets/{web-DINxD1A7.js → web-CRMSarK3.js} +1 -1
- package/dist/assets/{web-vrVWjNtV.js → web-CXOZU1L6.js} +1 -1
- package/dist/assets/{web-CZ3_dHr7.js → web-DHtajFUB.js} +1 -1
- package/dist/assets/{web-CWsXaaIe.js → web-pdOo0dg0.js} +1 -1
- package/dist/assets/{webextrator-GDcDe6T9.js → webextrator-CJ-Y5MLa.js} +1 -1
- package/dist/assets/{zap-Y_oaUEuS.js → zap-CS_Gx6oy.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/Detail-C_tWDuBd.js +0 -2
- package/dist/assets/Index-B9pfa1cu.js +0 -1
- package/dist/assets/Index-BHrj-7dw.css +0 -1
- package/dist/assets/Index-BU-Jt2iC.css +0 -1
- package/dist/assets/Index-C-H_DJZ32.js +0 -1
- package/dist/assets/Index-ChRBKHU0.js +0 -1
- package/dist/assets/Index-DpyMjOJE.js +0 -1
- package/dist/assets/Index-DvV7n1zt.js +0 -1
- package/dist/assets/Index-oN7N6QmQ2.js +0 -1
- package/dist/assets/Index-qmpu8rV0.js +0 -1
- package/dist/assets/List-DWfGi6sY.js +0 -1
- package/dist/assets/List-DzuEPa3P.js +0 -1
- package/dist/assets/List-XiNR1aE8.js +0 -1
- package/dist/assets/LocalTools-DuS_LZoO.js +0 -5
- package/dist/assets/Logo-DaSShHcw.js +0 -1
- package/dist/assets/Model-C0EQ6qps.js +0 -1
- package/dist/assets/ScheduledTasks-m1iIrHVR.js +0 -2
- package/dist/assets/arrow-down-7-7JJ_4t.js +0 -1
- package/dist/assets/arrow-left-D9V5JLVJ.js +0 -1
- package/dist/assets/arrow-right-CQNhBomo.js +0 -1
- package/dist/assets/arrow-up-CJQ-wTEP.js +0 -1
- package/dist/assets/authorizeFlow-Bjp_nYzF.js +0 -1
- package/dist/assets/check-DlBiKMMT.js +0 -1
- package/dist/assets/chevron-down-DNF9n4uv.js +0 -1
- package/dist/assets/chevron-right-N8JOyfvh.js +0 -1
- package/dist/assets/circle-check-C7X984wD.js +0 -1
- package/dist/assets/clock-BBp05BQI.js +0 -1
- package/dist/assets/code-CE6oVN-l.js +0 -1
- package/dist/assets/esm-DAIL3wUn.js +0 -1
- package/dist/assets/gauge-DA8mgYMh.js +0 -1
- package/dist/assets/loader-circle-BXpeRDvC.js +0 -1
- package/dist/assets/music-2-BPlaXdqG.js +0 -1
- package/dist/assets/play-DDKHmJys.js +0 -1
- package/dist/assets/plus-DsxiwVWq.js +0 -1
- package/dist/assets/rotate-ccw-BtuuahqB.js +0 -1
- package/dist/assets/rotate-cw-Ds2Pz-cM.js +0 -1
- package/dist/assets/search-CgsDIdQb.js +0 -1
- package/dist/assets/square-DUlbGZuD.js +0 -1
- package/dist/assets/terminal-FdeXyUYD.js +0 -1
- package/dist/assets/user-BIWRv3hf.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./rolldown-runtime--c01j_DQ.js";import{A as e,I as t,Jt as n,L as r,N as i,T as a,at as o,ht as s,j as c,mt as l,ot as u,rt as d,tt as f,z as p}from"./vendor-chart-Dw-P17PN.js";import{r as m,t as h}from"./select-DxlkO65R.js";import{n as ee,t as g}from"./table-BGCs9aQL.js";import{o as _}from"./models-BezwK8kr.js";import{t as v}from"./card-IQwqnRJR.js";import{n as y,t as b}from"./file-output-BrqeGkvR.js";import{n as x,t as S}from"./row-B_jKvn5G.js";import{t as C}from"./skeleton-Dj_a_iIP.js";import{t as w}from"./circle-check-C7X984wD.js";import{t as T}from"./clock-BBp05BQI.js";import{t as E}from"./dollar-sign-9AyRDRoz.js";import{Fi as D,Ni as O,O as k,an as A,bi as j,mr as M}from"./index-BdWkx9SU.js";import{t as N}from"./CopyToClipboard-P1yaIIEd.js";import{t as P}from"./pagination-B5GCs88M.js";var F=j(`receipt`,[[`path`,{d:`M12 17V7`,key:`pyj7ub`}],[`path`,{d:`M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8`,key:`1elt7d`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]),I={total_count:0,total_spent:0,state_counts:{}},L=p({name:`ConsoleOrderList`,components:{ExportIcon:b,MoneyIcon:E,ReceiptIcon:F,SuccessIcon:w,TimeIcon:T,Pagination:P,CopyToClipboard:N,ElRow:S,ElCol:x,ElTable:g,ElTableColumn:ee,ElButton:D,ElTag:O,ElCard:v,ElSelect:m,ElOption:h,ElDatePicker:y,ElSkeleton:C},data(){return{OrderState:_,orders:[],loading:!1,total:void 0,limit:10,filterState:this.$route.query.state?.toString()||``,filterPayWay:this.$route.query.pay_way?.toString()||``,createdAtRange:(()=>{let e=this.$route.query.created_at_from?.toString(),t=this.$route.query.created_at_to?.toString();if(e&&t)return[new Date(e),new Date(t)]})(),summary:{...I},summaryLoading:!1,exporting:!1,shortcuts:[{text:this.$t(`usage.shortcuts.today`),value:()=>{let e=new Date,t=new Date;return t.setHours(0,0,0,0),[t,e]}},{text:this.$t(`usage.shortcuts.last7Days`),value:()=>{let e=new Date,t=new Date;return t.setDate(t.getDate()-7),[t,e]}},{text:this.$t(`usage.shortcuts.last1Month`),value:()=>{let e=new Date,t=new Date;return t.setMonth(t.getMonth()-1),[t,e]}}]}},computed:{page(){return parseInt(this.$route.query.page?.toString()||`1`)},stateOptions(){return[{value:_.PENDING,label:this.$t(`order.state.pending`)},{value:_.FINISHED,label:this.$t(`order.state.finished`)},{value:_.PAID,label:this.$t(`order.state.paid`)},{value:_.EXPIRED,label:this.$t(`order.state.expired`)},{value:_.FAILED,label:this.$t(`order.state.failed`)},{value:_.REFUNDED,label:this.$t(`order.state.refunded`)}]},payWayOptions(){return[{value:`WechatPay`,label:this.$t(`order.title.wechatPay`)},{value:`Stripe`,label:this.$t(`order.title.stripe`)},{value:`Card`,label:this.$t(`order.title.card`)},{value:`AliPay`,label:this.$t(`order.title.aliPay`)},{value:`X402`,label:this.$t(`order.title.x402`)},{value:`PayPal`,label:this.$t(`order.title.paypal`)}]},filterQuery(){let e={user_id:this.$store.getters.user?.id};return this.filterState&&(e.state=this.filterState),this.filterPayWay&&(e.pay_way=this.filterPayWay),this.createdAtRange?.[0]&&(e.created_at_from=this.createdAtRange[0]),this.createdAtRange?.[1]&&(e.created_at_to=this.createdAtRange[1]),e}},watch:{page:{handler(){this.onFetchData()}}},mounted(){this.onFetchData(),this.onFetchSummary()},methods:{getPriceString:A,stateTagType(e){return e===_.FINISHED||e===_.PAID?`success`:e===_.EXPIRED||e===_.FAILED?`danger`:e===_.REFUNDED?`warning`:`info`},stateLabel(e){return{[_.PENDING]:this.$t(`order.state.pending`),[_.PAID]:this.$t(`order.state.paid`),[_.FINISHED]:this.$t(`order.state.finished`),[_.EXPIRED]:this.$t(`order.state.expired`),[_.FAILED]:this.$t(`order.state.failed`),[_.REFUNDED]:this.$t(`order.state.refunded`)}[e]||e},isPendingAction(e){return e!==_.PAID&&e!==_.FINISHED&&e!==_.EXPIRED&&e!==_.FAILED&&e!==_.REFUNDED},goToDetail(e){this.$router.push({name:`console-order-detail`,params:{id:e}})},async onFilterChange(){await this.$router.push({name:this.$route.name?.toString(),query:{page:1,...this.filterState?{state:this.filterState}:{},...this.filterPayWay?{pay_way:this.filterPayWay}:{},...this.createdAtRange?.[0]?{created_at_from:this.createdAtRange[0].toISOString()}:{},...this.createdAtRange?.[1]?{created_at_to:this.createdAtRange[1].toISOString()}:{}}}),this.onFetchData(),this.onFetchSummary()},onPageChange(e){this.$router.push({name:this.$route.name?.toString(),query:{...this.$route.query,page:e}})},onFetchData(){this.loading=!0,M.getAll({ordering:`-created_at`,limit:this.limit,offset:(this.page-1)*this.limit,...this.filterQuery}).then(({data:e})=>{this.orders=e.items,this.total=e.count}).catch(()=>{}).finally(()=>{this.loading=!1})},onFetchSummary(){this.summaryLoading=!0,M.getSummary(this.filterQuery).then(({data:e})=>{this.summary=e}).catch(()=>{this.summary={...I}}).finally(()=>{this.summaryLoading=!1})},onExport(){this.exporting=!0,M.exportCsv(this.filterQuery).then(({data:e})=>{let t=window.URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`orders.csv`,n.click(),window.URL.revokeObjectURL(t)}).catch(()=>{}).finally(()=>{this.exporting=!1})}}}),R={class:`title`},z={key:1,class:`card-content`},B={class:`icon-wrapper`},V={class:`description`},H={class:`value`},U={key:1,class:`card-content`},W={class:`icon-wrapper`},G={class:`description`},K={class:`value`},q={key:1,class:`card-content`},J={class:`icon-wrapper`},te={class:`description`},Y={class:`value`},X={key:1,class:`card-content`},Z={class:`icon-wrapper`},Q={class:`description`},ne={class:`value`},re={class:`filter-row mb-3`},$={class:`key`},ie={class:`cursor-pointer`},ae={class:`price`},oe={class:`description`},se={class:`text-gray-500`},ce={class:`created-at`},le={class:`flex items-center justify-center flex-wrap`},ue={class:`float-right`};function de(p,m,h,ee,g,_){let v=o(`el-col`),y=o(`el-row`),b=o(`el-skeleton`),x=o(`receipt-icon`),S=o(`el-card`),C=o(`money-icon`),w=o(`success-icon`),T=o(`time-icon`),E=o(`el-option`),D=o(`el-select`),O=o(`el-date-picker`),k=o(`export-icon`),A=o(`el-button`),j=o(`copy-to-clipboard`),M=o(`el-table-column`),N=o(`el-tag`),P=o(`el-table`),F=o(`pagination`),I=u(`loading`);return f(),c(y,{class:`panel`},{default:l(()=>[r(v,{span:24},{default:l(()=>[r(y,null,{default:l(()=>[r(v,{span:24},{default:l(()=>[e(`h2`,R,n(p.$t(`common.title.allOrders`)),1)]),_:1})]),_:1}),r(y,{gutter:16},{default:l(()=>[r(v,{md:6,sm:12,xs:24},{default:l(()=>[r(S,{shadow:`hover`,class:`item-mini mb-3`},{default:l(()=>[p.summaryLoading?(f(),c(b,{key:0})):(f(),i(`div`,z,[e(`div`,B,[r(x,{class:`icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`})]),e(`p`,V,n(p.$t(`order.title.totalOrders`)),1),e(`p`,H,n(p.summary.total_count),1)]))]),_:1})]),_:1}),r(v,{md:6,sm:12,xs:24},{default:l(()=>[r(S,{shadow:`hover`,class:`item-mini mb-3`},{default:l(()=>[p.summaryLoading?(f(),c(b,{key:0})):(f(),i(`div`,U,[e(`div`,W,[r(C,{class:`icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`})]),e(`p`,G,n(p.$t(`order.title.totalSpent`)),1),e(`p`,K,n(p.getPriceString({value:p.summary.total_spent})),1)]))]),_:1})]),_:1}),r(v,{md:6,sm:12,xs:24},{default:l(()=>[r(S,{shadow:`hover`,class:`item-mini mb-3`},{default:l(()=>[p.summaryLoading?(f(),c(b,{key:0})):(f(),i(`div`,q,[e(`div`,J,[r(w,{class:`icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`})]),e(`p`,te,n(p.$t(`order.title.finishedOrders`)),1),e(`p`,Y,n(p.summary.state_counts?.Finished||0),1)]))]),_:1})]),_:1}),r(v,{md:6,sm:12,xs:24},{default:l(()=>[r(S,{shadow:`hover`,class:`item-mini mb-3`},{default:l(()=>[p.summaryLoading?(f(),c(b,{key:0})):(f(),i(`div`,X,[e(`div`,Z,[r(T,{class:`icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`})]),e(`p`,Q,n(p.$t(`order.title.pendingOrders`)),1),e(`p`,ne,n(p.summary.state_counts?.Pending||0),1)]))]),_:1})]),_:1})]),_:1}),e(`div`,re,[r(D,{modelValue:p.filterState,"onUpdate:modelValue":m[0]||=e=>p.filterState=e,clearable:``,placeholder:p.$t(`order.field.allStates`),class:`filter-select`,onChange:p.onFilterChange},{default:l(()=>[(f(!0),i(a,null,d(p.stateOptions,e=>(f(),c(E,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`,`onChange`]),r(D,{modelValue:p.filterPayWay,"onUpdate:modelValue":m[1]||=e=>p.filterPayWay=e,clearable:``,placeholder:p.$t(`order.field.allPayWays`),class:`filter-select`,onChange:p.onFilterChange},{default:l(()=>[(f(!0),i(a,null,d(p.payWayOptions,e=>(f(),c(E,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`,`onChange`]),r(O,{modelValue:p.createdAtRange,"onUpdate:modelValue":m[2]||=e=>p.createdAtRange=e,type:`datetimerange`,shortcuts:p.shortcuts,"range-separator":p.$t(`usage.placeholder.to`),"start-placeholder":p.$t(`usage.placeholder.startDate`),"end-placeholder":p.$t(`usage.placeholder.endDate`),onChange:p.onFilterChange},null,8,[`modelValue`,`shortcuts`,`range-separator`,`start-placeholder`,`end-placeholder`,`onChange`]),r(A,{type:`primary`,plain:``,loading:p.exporting,onClick:p.onExport},{default:l(()=>[r(k,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),t(` `+n(p.$t(`order.button.export`)),1)]),_:1},8,[`loading`,`onClick`])]),r(y,null,{default:l(()=>[r(v,{span:24},{default:l(()=>[r(S,{shadow:`hover`},{default:l(()=>[s((f(),c(P,{data:p.orders,stripe:``,"empty-text":p.$t(`common.message.noData`),class:`min-h-[calc(100vh-450px)] mb-[20px]`},{default:l(()=>[r(M,{prop:`id`,label:p.$t(`order.field.id`),"class-name":`text-center`,width:`200px`},{default:l(t=>[e(`span`,$,n(t.row.id),1),e(`span`,ie,[r(j,{content:t.row.id,class:`inline-block`},null,8,[`content`])])]),_:1},8,[`label`]),r(M,{label:p.$t(`order.field.price`),width:`110px`,align:`center`},{default:l(t=>[e(`span`,ae,n(p.getPriceString({value:t.row?.price})),1)]),_:1},8,[`label`]),r(M,{label:p.$t(`order.field.description`),"min-width":`220px`,"class-name":`hidden md:table-cell`,"label-class-name":`hidden md:table-cell`},{default:l(t=>[e(`span`,oe,n(t.row.description),1)]),_:1},8,[`label`]),r(M,{prop:`state`,label:p.$t(`order.field.state`),width:`130px`,align:`center`},{default:l(e=>[r(N,{type:p.stateTagType(e.row.state),class:`mx-1`,effect:`dark`,round:``,size:`small`},{default:l(()=>[t(n(p.stateLabel(e.row.state)),1)]),_:2},1032,[`type`])]),_:1},8,[`label`]),r(M,{label:p.$t(`order.field.payWay`),width:`120px`,align:`center`,"class-name":`hidden md:table-cell`,"label-class-name":`hidden md:table-cell`},{default:l(t=>[e(`span`,se,n(t.row.pay_way||`-`),1)]),_:1},8,[`label`]),r(M,{label:p.$t(`order.field.createdAt`),width:`200px`,"class-name":`hidden sm:table-cell`,"label-class-name":`hidden sm:table-cell`},{default:l(t=>[e(`span`,ce,n(p.$dayjs.format(t.row.created_at)),1)]),_:1},8,[`label`]),r(M,{"min-width":`130px`,fixed:`right`},{default:l(r=>[e(`div`,le,[p.isPendingAction(r.row.state)?(f(),c(A,{key:0,type:`primary`,size:`small`,onClick:e=>p.goToDetail(r.row.id)},{default:l(()=>[t(n(p.$t(`order.button.continuePay`)),1)]),_:1},8,[`onClick`])):(f(),c(A,{key:1,size:`small`,onClick:e=>p.goToDetail(r.row.id)},{default:l(()=>[t(n(p.$t(`order.button.checkDetail`)),1)]),_:1},8,[`onClick`]))])]),_:1})]),_:1},8,[`data`,`empty-text`])),[[I,p.loading]])]),_:1})]),_:1})]),_:1}),r(y,null,{default:l(()=>[r(v,{span:10,offset:14},{default:l(()=>[e(`div`,ue,[r(F,{"current-page":p.page,"page-size":p.limit,total:p.total,onChange:p.onPageChange},null,8,[`current-page`,`page-size`,`total`,`onChange`])])]),_:1})]),_:1})]),_:1})]),_:1})}var fe=k(L,[[`render`,de],[`__scopeId`,`data-v-a543d5b3`]]);export{fe as default};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime--c01j_DQ.js";import{A as t,I as n,Jt as r,L as i,M as a,N as o,T as s,at as c,j as l,mt as u,rt as d,st as f,tt as p,z as m}from"./vendor-chart-Dw-P17PN.js";import{t as h}from"./switch-J51NyhGI.js";import{t as ee}from"./file-BvSa9ufI.js";import{t as g}from"./folder-DQoN-X34.js";import{t as _}from"./mouse-pointer-2-CBvkEf9f.js";import{t as v}from"./pencil-Dazn-vwZ.js";import{t as y}from"./plus-DsxiwVWq.js";import{t as b}from"./shield-BCzF_179.js";import{t as x}from"./terminal-FdeXyUYD.js";import{t as S}from"./wand-sparkles-DEWXPZMX.js";import{A as C,Er as w,Fi as T,Ni as E,O as te,Ui as ne,bi as D,di as O,oi as k}from"./index-BdWkx9SU.js";var A=D(`arrow-up-down`,[[`path`,{d:`m21 16-4 4-4-4`,key:`f6ql7i`}],[`path`,{d:`M17 20V4`,key:`1ejh1v`}],[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}]]),j=D(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),M=D(`keyboard`,[[`path`,{d:`M10 8h.01`,key:`1r9ogq`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M14 8h.01`,key:`1primd`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`M18 8h.01`,key:`emo2bl`}],[`path`,{d:`M6 8h.01`,key:`x9i8wu`}],[`path`,{d:`M7 16h10`,key:`wp8him`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}],[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}]]),N=D(`move`,[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`m15 19-3 3-3-3`,key:`11eu04`}],[`path`,{d:`m19 9 3 3-3 3`,key:`1mg7y2`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`m5 9-3 3 3 3`,key:`j64kie`}],[`path`,{d:`m9 5 3-3 3 3`,key:`l8vdw6`}]]),P=m({name:`LocalToolsSetting`,components:{AddIcon:y,ElButton:T,ElTag:E,ElSwitch:h,ElInput:ne,FolderIcon:g,MagicIcon:S,SecurityIcon:b},data(){return{roots:[],workingDir:``,pickingWorkingDir:!1,tools:[],mcpServers:[],mcpUid:0,mcpStatuses:[],mcpBusy:null,savingMcp:!1,mcpSavedTip:!1,mcpError:``,grants:null,perm:null,computerUse:!1,computerTools:[],computerGrants:{},cuBusy:null,builtinTools:[],mcpTools:[],toolGrants:{},builtinBusy:null,savingCU:!1,preauthorizing:!1,saving:!1,savedTip:!1,a11yEnabled:!1,xhsSkill:null,xhsLoading:!1,xhsInstalling:!1,xhsError:``,onFocus:null,cuOff:null,a11yPoll:null,refreshingA11y:!1}},computed:{desktop(){return!!C()},android(){return O()},canInstallXhs(){return this.a11yEnabled&&this.computerUse}},async mounted(){let e=C();if(!e)return;let t=await e.getConfig();this.roots=t.roots,this.workingDir=t.workingDir??``,this.computerUse=t.computerUse===!0,this.mcpServers=(t.mcp??[]).map(e=>({_uid:this.mcpUid++,id:e.id,command:e.command,argsText:(e.args??[]).join(`
|
|
2
|
-
`),envText:Object.entries(e.env??{}).map(([e,t])=>`${e}=${t}`).join(`
|
|
3
|
-
`),enabled:e.enabled!==!1})),this.mcpStatuses=await e.mcp?.status()??[],this.tools=(await e.listTools()).map(e=>e.name),this.computerTools=await e.computerTools?.()??[],this.builtinTools=await e.builtinTools?.()??[],this.mcpTools=await e.mcpTools?.()??[];let n=await e.perm?.status();n?.mac&&(this.perm=n),await this.loadGrants(),this.android&&(await this.refreshA11y(),this.fetchXhsSkill(),this.onFocus=()=>{document.visibilityState===`visible`&&this.refreshA11y()},document.addEventListener(`visibilitychange`,this.onFocus),this.a11yPoll=window.setInterval(()=>{document.visibilityState===`visible`&&this.refreshA11y()},3e3)),this.cuOff=e.onComputerUseDisabled?.(()=>{this.computerUse=!1})??null},beforeUnmount(){this.cuOff?.(),this.onFocus&&document.removeEventListener(`visibilitychange`,this.onFocus),this.a11yPoll&&clearInterval(this.a11yPoll)},methods:{async refreshA11y(){if(!this.refreshingA11y){this.refreshingA11y=!0;try{let e=await C()?.perm?.status();this.a11yEnabled=e?.accessibility===!0}finally{this.refreshingA11y=!1}}},async openAndroidAccessibility(){await C()?.perm?.openPane(`accessibility`)},async fetchXhsSkill(){this.xhsLoading=!0,this.xhsError=``;try{let e=await w.get(`/skills/`,{baseURL:`${k()}/api/v1`,params:{q:`xhs-dm`,limit:10}}),t=Array.isArray(e.data?.items)?e.data.items:[];this.xhsSkill=t.find(e=>e.identifier?.endsWith(`/xhs-dm`))??null}catch(e){console.warn(`[LocalTools] fetch xhs skill failed`,e),this.xhsSkill=null,this.xhsError=this.$t(`common.settings.localToolsAndroidSkillsLoadFailed`)}finally{this.xhsLoading=!1}},async installXhs(){let e=this.xhsSkill;if(!(!e||e.installed)){this.xhsInstalling=!0,this.xhsError=``;try{await w.post(`/skills/${e.id}/install/`,{},{baseURL:`${k()}/api/v1`}),e.installed=!0}catch(t){t?.response?.status===409?e.installed=!0:this.xhsError=this.$t(`common.settings.localToolsAndroidSkillsInstallFailed`)}finally{this.xhsInstalling=!1}}},async loadGrants(){let e=C();if(!e?.grants){this.grants=null;return}let t=await e.grants.list(),n={},r={},i=new Set(this.builtinTools.map(e=>e.name)),a=new Set(this.mcpTools.map(e=>e.name)),o=[];for(let e of t){if(e.startsWith(`computer.`)&&!e.includes(`:`)){n[e]=!0;continue}if(!e.includes(`:`)&&(i.has(e)||a.has(e))){r[e]=!0;continue}if(e.startsWith(`dir:`)){let t=e.slice(4),n=t.indexOf(`:`);if(n>0){o.push({key:e,name:t.slice(0,n),input:`📁 ${t.slice(n+1)}`});continue}}let t=e.indexOf(`:{`),s=t>=0?t:e.indexOf(`:`);o.push({key:e,name:s>=0?e.slice(0,s):e,input:s>=0?e.slice(s+1):``})}this.computerGrants=n,this.toolGrants=r,this.grants=o},async chooseWorkingDir(){if(!this.pickingWorkingDir){this.pickingWorkingDir=!0;try{let e=await C()?.pickFolder();if(!e)return;let t=await C()?.getConfig();await C()?.saveConfig({roots:t?.roots??this.roots,mcp:t?.mcp??[],computerUse:this.computerUse,workingDir:e}),this.workingDir=e}finally{this.pickingWorkingDir=!1}}},async addFolder(){let e=await C()?.pickFolder();e&&!this.roots.includes(e)&&this.roots.push(e)},removeRoot(e){this.roots.splice(e,1)},addMcp(){this.mcpServers.push({_uid:this.mcpUid++,id:``,command:``,argsText:``,envText:``,enabled:!0})},removeMcp(e){this.mcpServers.splice(e,1)},mcpStatusFor(e){let t=e.trim();return this.mcpStatuses.find(e=>e.id===t)},mcpBadgeType(e){let t=this.mcpStatusFor(e)?.status;return t===`connected`?`success`:t===`failed`?`danger`:`info`},mcpBadgeText(e){let t=this.mcpStatusFor(e);return this.mcpBusy===e.trim()?this.$t(`common.settings.localToolsMcpConnecting`):t?t.status===`connected`?this.$t(`common.settings.localToolsMcpConnected`,{n:t.toolCount}):t.status===`disabled`?this.$t(`common.settings.localToolsMcpDisabled`):this.$t(`common.settings.localToolsMcpFailed`):this.$t(`common.settings.localToolsMcpNotSaved`)},mcpErrorFor(e){let t=this.mcpStatusFor(e);return t?.status===`failed`&&t.error?t.error:``},buildMcpPayload(){this.mcpError=``;let e=[],t=new Set;for(let n of this.mcpServers){let r=n.id.trim(),i=n.command.trim();if(!r||!i)return this.mcpError=this.$t(`common.settings.localToolsMcpNameRequired`),null;if(!/^[A-Za-z0-9_-]+$/.test(r))return this.mcpError=this.$t(`common.settings.localToolsMcpNameInvalid`),null;if(t.has(r))return this.mcpError=this.$t(`common.settings.localToolsMcpDuplicateName`),null;t.add(r);let a=n.argsText.split(`
|
|
4
|
-
`).map(e=>e.trim()).filter(Boolean),o={};for(let e of n.envText.split(`
|
|
5
|
-
`)){let t=e.trim();if(!t)continue;let n=t.indexOf(`=`);n<=0||(o[t.slice(0,n).trim()]=t.slice(n+1).trim())}let s={id:r,command:i,args:a,enabled:n.enabled!==!1};Object.keys(o).length&&(s.env=o),e.push(s)}return e},async saveMcp(){let e=this.buildMcpPayload();if(!e)return!1;this.savingMcp=!0;try{let t=await C()?.getConfig();return await C()?.saveConfig({roots:t?.roots??this.roots,mcp:e,computerUse:this.computerUse}),await this.refreshMcpStatus(),this.mcpSavedTip=!0,setTimeout(()=>this.mcpSavedTip=!1,2e3),!0}finally{this.savingMcp=!1}},async refreshMcpStatus(){let e=C();e&&(this.mcpStatuses=await e.mcp?.status()??[],this.tools=(await e.listTools())?.map(e=>e.name)??this.tools,this.mcpTools=await e.mcpTools?.()??[],await this.loadGrants())},async onToggleMcpEnabled(e){await this.saveMcp()||(e.enabled=!e.enabled)},async reconnectMcp(e){let t=e.id.trim();if(!t||!e.command.trim())return;let n=this.buildMcpPayload();if(n){this.mcpBusy=t;try{let e=await C()?.getConfig();await C()?.saveConfig({roots:e?.roots??this.roots,mcp:n,computerUse:this.computerUse}),await C()?.mcp?.reconnect(t),await this.refreshMcpStatus()}finally{this.mcpBusy=null}}},async open(e){await C()?.perm?.openPane(e)},async save(){this.saving=!0;let e=await C()?.getConfig();await C()?.saveConfig({roots:this.roots,mcp:e?.mcp??[],computerUse:this.computerUse}),this.saving=!1,this.savedTip=!0,setTimeout(()=>this.savedTip=!1,2e3)},async onToggleComputerUse(e){this.savingCU=!0;let t=await C()?.getConfig();if(await C()?.saveConfig({roots:t?.roots??this.roots,mcp:t?.mcp??[],computerUse:e===!0}),this.savingCU=!1,e===!0&&this.android){let e=(await C()?.perm?.status())?.accessibility===!0;this.a11yEnabled=e,e||await this.openAndroidAccessibility()}},async preauthorizeAll(){let e=C();if(e?.preauthorizeComputerUse){this.preauthorizing=!0;try{let t=await e.preauthorizeComputerUse();this.computerUse=t.computerUse===!0,t.perm?.mac&&(this.perm=t.perm),await this.loadGrants()}finally{this.preauthorizing=!1}}},async onToggleComputerTool(e,t){let n=C();if(n){this.cuBusy=e;try{if(t===!0){let t=await n.preauthorizeComputerUse?.([e]);t&&(this.computerUse=t.computerUse===!0,t.perm?.mac&&(this.perm=t.perm))}else await n.grants?.revoke(e);await this.loadGrants()}finally{this.cuBusy=null}}},cuLabel(e){let t=`common.settings.localToolsCu${this.cuSuffix(e)}`,n=this.$t(t);return n===t?e.replace(/^computer\./,``):n},cuIcon(e){return{screenshot:j,click:_,move:N,type:M,key:M,scroll:A}[e.replace(/^computer\./,``)]??b},cuSuffix(e){let t=e.replace(/^computer\./,``);return t.charAt(0).toUpperCase()+t.slice(1)},async onToggleBuiltinTool(e,t){let n=C();if(n?.grants){this.builtinBusy=e;try{t===!0?(await n.grants.grantToolWide?.(e))?.ok||(this.toolGrants={...this.toolGrants,[e]:!1}):await n.grants.revoke(e),await this.loadGrants()}finally{this.builtinBusy=null}}},builtinIcon(e){return e===`shell.run_command`?x:e===`fs.write_file`?v:e===`fs.read_file`?ee:e===`fs.list_dir`?g:b},async revoke(e){await C()?.grants?.revoke(e),await this.loadGrants()},async revokeAll(){await C()?.grants?.clear(),await this.loadGrants()}}}),F=e({default:()=>$}),I={class:`settings-list local-tools-setting`},L={key:0,class:`hint muted`},R={key:0},z={class:`section-head`},B={class:`muted`},V={class:`perm-row`},H={class:`perm-name`},U={key:1},W={class:`section-head`},G={class:`muted`},K={class:`rows`},q={class:`path`},J={key:0,class:`row muted empty`},Y={class:`actions`},X={key:0,class:`muted saved-tip`},Z={key:0,class:`muted tools`},re={key:2},ie={class:`section-head`},ae={class:`muted`},oe={class:`rows`},se={key:0,class:`row`},ce={class:`path`},le={key:1,class:`row muted empty`},ue={class:`section-head`},de={class:`muted`},fe={key:0,class:`rows`},pe={class:`mcp-fields`},me={class:`mcp-head`},he={class:`mcp-grid`},ge={class:`mcp-flabel`},_e={class:`mcp-flabel`},ve={class:`mcp-flabel top`},ye={class:`mcp-flabel top`},be={key:0,class:`mcp-row-error`},xe={key:1,class:`muted`},Se={class:`muted mcp-platform-hint`},Ce={class:`actions`},we={key:0,class:`muted saved-tip`},Te={key:1,class:`mcp-error`},Ee={key:3},De={class:`section-head`},Oe={class:`muted`},ke={class:`rows`},Ae={class:`grant`},je={class:`grant-name`},Me={class:`grant-input`},Ne={key:0,class:`row muted empty`},Pe={key:4},Fe={class:`section-head`},Ie={class:`muted`},Le={class:`rows`},Re={class:`cu-action`},ze={class:`cu-action-name`},Be={class:`grant-name`},Ve={class:`cu-action-desc`},He={key:5},Ue={class:`section-head`},We={class:`muted`},Ge={class:`rows`},Ke={class:`cu-action`},qe={class:`cu-action-name`},Je={class:`grant-name`},Ye={class:`cu-action-desc`},Xe={class:`section-head`},Ze={class:`muted`},Qe={key:0,class:`perm-row cu-ready-row`},$e={class:`perm-name`},et={class:`section-head sub`},tt={class:`muted`},nt={class:`rows`},rt={class:`cu-action`},it={class:`cu-action-name`},at={class:`cu-action-desc`},ot={key:6},st={class:`section-head`},ct={class:`muted`},lt={class:`rows`},ut={key:0,class:`row`},dt={class:`cu-action`},ft={class:`cu-action-name`},pt={class:`cu-action-desc`},mt={key:1,class:`row muted empty`},ht={key:2,class:`row muted empty`},gt={key:0,class:`muted`},_t={key:1,class:`muted saved-tip`},vt={key:2,class:`mcp-error`},yt={key:7},bt={class:`section-head`},Q={class:`muted`},xt={class:`perm-row`},St={class:`perm-name`},Ct={class:`perm-row`},wt={class:`perm-name`},Tt={class:`perm-row`},Et={class:`perm-name`};function Dt(e,m,h,ee,g,_){let v=c(`el-tag`),y=c(`el-button`),b=c(`add-icon`),x=c(`folder-icon`),S=c(`el-switch`),C=c(`el-input`),w=c(`security-icon`),T=c(`MagicIcon`),E=c(`magic-icon`);return p(),o(`div`,I,[e.desktop?(p(),o(s,{key:1},[e.android?(p(),o(`section`,R,[t(`div`,z,[t(`h3`,null,r(e.$t(`common.settings.localToolsPermsTitle`)),1)]),t(`p`,B,r(e.$t(`common.settings.localToolsAndroidPermHint`)),1),t(`div`,V,[t(`span`,H,r(e.$t(`common.settings.localToolsPermAccessibility`)),1),i(v,{size:`small`,type:e.a11yEnabled?`success`:`info`,effect:`plain`},{default:u(()=>[n(r(e.a11yEnabled?e.$t(`common.settings.localToolsGranted`):e.$t(`common.settings.localToolsNotGranted`)),1)]),_:1},8,[`type`]),i(y,{size:`small`,type:`primary`,onClick:e.openAndroidAccessibility},{default:u(()=>[n(r(e.$t(`common.settings.localToolsOpen`)),1)]),_:1},8,[`onClick`])])])):a(``,!0),e.android?a(``,!0):(p(),o(`section`,U,[t(`div`,W,[t(`h3`,null,r(e.$t(`common.settings.localToolsFoldersTitle`)),1),i(y,{size:`small`,type:`primary`,onClick:e.addFolder},{default:u(()=>[i(b,{size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(e.$t(`common.settings.localToolsAddFolder`)),1)]),_:1},8,[`onClick`])]),t(`p`,G,r(e.$t(`common.settings.localToolsFoldersHint`)),1),t(`ul`,K,[(p(!0),o(s,null,d(e.roots,(a,s)=>(p(),o(`li`,{key:a,class:`row`},[i(x,{class:`row-icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),t(`span`,q,r(a),1),i(y,{size:`small`,text:``,type:`danger`,onClick:t=>e.removeRoot(s)},{default:u(()=>[n(r(e.$t(`common.settings.localToolsRemove`)),1)]),_:1},8,[`onClick`])]))),128)),e.roots.length?a(``,!0):(p(),o(`li`,J,r(e.$t(`common.settings.localToolsNoFolders`)),1))]),t(`div`,Y,[i(y,{size:`small`,type:`primary`,loading:e.saving,onClick:e.save},{default:u(()=>[n(r(e.$t(`common.settings.localToolsSave`)),1)]),_:1},8,[`loading`,`onClick`]),e.savedTip?(p(),o(`span`,X,r(e.$t(`common.settings.localToolsSaved`)),1)):a(``,!0)]),e.tools.length?(p(),o(`p`,Z,r(e.$t(`common.settings.localToolsActiveTools`))+`: `+r(e.tools.join(`, `)),1)):a(``,!0)])),e.android?a(``,!0):(p(),o(`section`,re,[t(`div`,ie,[t(`h3`,null,r(e.$t(`common.settings.localToolsWorkingDirTitle`)),1),i(y,{size:`small`,type:`primary`,loading:e.pickingWorkingDir,onClick:e.chooseWorkingDir},{default:u(()=>[i(x,{size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(e.workingDir?e.$t(`common.settings.localToolsWorkingDirChange`):e.$t(`common.settings.localToolsAddFolder`)),1)]),_:1},8,[`loading`,`onClick`])]),t(`p`,ae,r(e.$t(`common.settings.localToolsWorkingDirHint`)),1),t(`ul`,oe,[e.workingDir?(p(),o(`li`,se,[i(x,{class:`row-icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),t(`span`,ce,r(e.workingDir),1)])):(p(),o(`li`,le,r(e.$t(`common.settings.localToolsWorkingDirNone`)),1))])])),t(`section`,null,[t(`div`,ue,[t(`h3`,null,r(e.$t(`common.settings.localToolsMcpTitle`)),1),i(y,{size:`small`,type:`primary`,onClick:e.addMcp},{default:u(()=>[i(b,{size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(e.$t(`common.settings.localToolsMcpAdd`)),1)]),_:1},8,[`onClick`])]),t(`p`,de,r(e.$t(`common.settings.localToolsMcpHint`)),1),e.mcpServers.length?(p(),o(`ul`,fe,[(p(!0),o(s,null,d(e.mcpServers,(s,c)=>(p(),o(`li`,{key:s._uid,class:`row mcp-row`},[t(`div`,pe,[t(`div`,me,[i(v,{size:`small`,effect:`plain`,type:e.mcpBadgeType(s.id)},{default:u(()=>[n(r(e.mcpBadgeText(s.id)),1)]),_:2},1032,[`type`]),m[4]||=t(`span`,{class:`mcp-spacer`},null,-1),i(S,{modelValue:s.enabled,"onUpdate:modelValue":e=>s.enabled=e,size:`small`,"active-text":e.$t(`common.settings.localToolsMcpEnabled`),"inline-prompt":``,onChange:t=>e.onToggleMcpEnabled(s)},null,8,[`modelValue`,`onUpdate:modelValue`,`active-text`,`onChange`]),i(y,{size:`small`,text:``,loading:e.mcpBusy===s.id,disabled:!s.id||!s.command,onClick:t=>e.reconnectMcp(s)},{default:u(()=>[n(r(e.$t(`common.settings.localToolsMcpReconnect`)),1)]),_:1},8,[`loading`,`disabled`,`onClick`]),i(y,{size:`small`,text:``,type:`danger`,onClick:t=>e.removeMcp(c)},{default:u(()=>[n(r(e.$t(`common.settings.localToolsRemove`)),1)]),_:1},8,[`onClick`])]),t(`div`,he,[t(`label`,ge,r(e.$t(`common.settings.localToolsMcpName`)),1),i(C,{modelValue:s.id,"onUpdate:modelValue":e=>s.id=e,placeholder:e.$t(`common.settings.localToolsMcpNamePlaceholder`)},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`]),t(`label`,_e,r(e.$t(`common.settings.localToolsMcpCommand`)),1),i(C,{modelValue:s.command,"onUpdate:modelValue":e=>s.command=e,placeholder:e.$t(`common.settings.localToolsMcpCommandPlaceholder`)},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`]),t(`label`,ve,r(e.$t(`common.settings.localToolsMcpArgs`)),1),i(C,{modelValue:s.argsText,"onUpdate:modelValue":e=>s.argsText=e,type:`textarea`,rows:2,placeholder:e.$t(`common.settings.localToolsMcpArgsHint`)},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`]),t(`label`,ye,r(e.$t(`common.settings.localToolsMcpEnv`)),1),i(C,{modelValue:s.envText,"onUpdate:modelValue":e=>s.envText=e,type:`textarea`,rows:2,placeholder:e.$t(`common.settings.localToolsMcpEnvHint`)},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`])]),e.mcpErrorFor(s.id)?(p(),o(`p`,be,r(e.mcpErrorFor(s.id)),1)):a(``,!0)])]))),128))])):(p(),o(`p`,xe,r(e.$t(`common.settings.localToolsMcpNoServers`)),1)),t(`p`,Se,r(e.$t(`common.settings.localToolsMcpPlatformHint`)),1),t(`div`,Ce,[i(y,{size:`small`,type:`primary`,loading:e.savingMcp,onClick:e.saveMcp},{default:u(()=>[n(r(e.$t(`common.settings.localToolsSave`)),1)]),_:1},8,[`loading`,`onClick`]),e.mcpSavedTip?(p(),o(`span`,we,r(e.$t(`common.settings.localToolsSaved`)),1)):a(``,!0),e.mcpError?(p(),o(`span`,Te,r(e.mcpError),1)):a(``,!0)])]),e.grants!==null&&!e.android?(p(),o(`section`,Ee,[t(`div`,De,[t(`h3`,null,r(e.$t(`common.settings.localToolsGrantsTitle`)),1),e.grants.length?(p(),l(y,{key:0,size:`small`,text:``,type:`danger`,onClick:e.revokeAll},{default:u(()=>[n(r(e.$t(`common.settings.localToolsRevokeAll`)),1)]),_:1},8,[`onClick`])):a(``,!0)]),t(`p`,Oe,r(e.$t(`common.settings.localToolsGrantsHint`)),1),t(`ul`,ke,[(p(!0),o(s,null,d(e.grants,a=>(p(),o(`li`,{key:a.key,class:`row`},[i(w,{class:`row-icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),t(`span`,Ae,[t(`code`,je,r(a.name),1),t(`span`,Me,r(a.input),1)]),i(y,{size:`small`,type:`danger`,onClick:t=>e.revoke(a.key)},{default:u(()=>[n(r(e.$t(`common.settings.localToolsRevoke`)),1)]),_:1},8,[`onClick`])]))),128)),e.grants.length?a(``,!0):(p(),o(`li`,Ne,r(e.$t(`common.settings.localToolsNoGrants`)),1))])])):a(``,!0),e.builtinTools.length&&!e.android?(p(),o(`section`,Pe,[t(`div`,Fe,[t(`h3`,null,r(e.$t(`common.settings.localToolsBuiltinTitle`)),1)]),t(`p`,Ie,r(e.$t(`common.settings.localToolsBuiltinHint`)),1),t(`ul`,Le,[(p(!0),o(s,null,d(e.builtinTools,s=>(p(),o(`li`,{key:s.name,class:`row`},[(p(),l(f(e.builtinIcon(s.name)),{class:`row-icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`})),t(`span`,Re,[t(`span`,ze,[t(`code`,Be,r(s.name),1),s.name===`shell.run_command`?(p(),l(v,{key:0,size:`small`,type:`danger`,effect:`plain`},{default:u(()=>[n(r(e.$t(`common.settings.localToolsBuiltinRisky`)),1)]),_:1})):a(``,!0)]),t(`span`,Ve,r(s.description),1)]),i(S,{"model-value":e.toolGrants[s.name]===!0,loading:e.builtinBusy===s.name,disabled:!!e.builtinBusy,onChange:t=>e.onToggleBuiltinTool(s.name,t)},null,8,[`model-value`,`loading`,`disabled`,`onChange`])]))),128))])])):a(``,!0),e.mcpTools.length&&!e.android?(p(),o(`section`,He,[t(`div`,Ue,[t(`h3`,null,r(e.$t(`common.settings.localToolsMcpToolsTitle`)),1)]),t(`p`,We,r(e.$t(`common.settings.localToolsMcpToolsHint`)),1),t(`ul`,Ge,[(p(!0),o(s,null,d(e.mcpTools,s=>(p(),o(`li`,{key:s.name,class:`row`},[i(T,{class:`row-icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),t(`span`,Ke,[t(`span`,qe,[t(`code`,Je,r(s.name),1),s.writes?(p(),l(v,{key:0,size:`small`,type:`danger`,effect:`plain`},{default:u(()=>[n(r(e.$t(`common.settings.localToolsBuiltinRisky`)),1)]),_:1})):a(``,!0)]),t(`span`,Ye,r(s.description),1)]),i(S,{"model-value":e.toolGrants[s.name]===!0,loading:e.builtinBusy===s.name,disabled:!!e.builtinBusy,onChange:t=>e.onToggleBuiltinTool(s.name,t)},null,8,[`model-value`,`loading`,`disabled`,`onChange`])]))),128))])])):a(``,!0),t(`section`,null,[t(`div`,Xe,[t(`h3`,null,r(e.$t(`common.settings.localToolsComputerUseTitle`)),1),i(S,{modelValue:e.computerUse,"onUpdate:modelValue":m[0]||=t=>e.computerUse=t,loading:e.savingCU,onChange:e.onToggleComputerUse},null,8,[`modelValue`,`loading`,`onChange`])]),t(`p`,Ze,r(e.$t(`common.settings.localToolsComputerUseHint`)),1),e.android&&e.computerUse?(p(),o(`div`,Qe,[t(`span`,$e,r(e.$t(`common.settings.localToolsCuA11yLabel`)),1),i(v,{size:`small`,type:e.a11yEnabled?`success`:`danger`,effect:`plain`},{default:u(()=>[n(r(e.a11yEnabled?e.$t(`common.settings.localToolsCuReady`):e.$t(`common.settings.localToolsCuA11yMissing`)),1)]),_:1},8,[`type`]),e.a11yEnabled?a(``,!0):(p(),l(y,{key:0,size:`small`,type:`primary`,onClick:e.openAndroidAccessibility},{default:u(()=>[n(r(e.$t(`common.settings.localToolsOpen`)),1)]),_:1},8,[`onClick`]))])):a(``,!0),e.computerTools.length?(p(),o(s,{key:1},[t(`div`,et,[t(`h4`,null,r(e.$t(`common.settings.localToolsCuActionsTitle`)),1),i(y,{size:`small`,text:``,type:`primary`,loading:e.preauthorizing,onClick:e.preauthorizeAll},{default:u(()=>[n(r(e.$t(`common.settings.localToolsPreauthorizeAll`)),1)]),_:1},8,[`loading`,`onClick`])]),t(`p`,tt,r(e.$t(`common.settings.localToolsCuActionsHint`)),1),t(`ul`,nt,[(p(!0),o(s,null,d(e.computerTools,n=>(p(),o(`li`,{key:n.name,class:`row`},[(p(),l(f(e.cuIcon(n.name)),{class:`row-icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`})),t(`span`,rt,[t(`span`,it,r(e.cuLabel(n.name)),1),t(`span`,at,r(n.description),1)]),i(S,{"model-value":e.computerGrants[n.name]===!0,loading:e.cuBusy===n.name,disabled:!!e.cuBusy||e.preauthorizing,onChange:t=>e.onToggleComputerTool(n.name,t)},null,8,[`model-value`,`loading`,`disabled`,`onChange`])]))),128))])],64)):a(``,!0)]),e.android?(p(),o(`section`,ot,[t(`div`,st,[t(`h3`,null,r(e.$t(`common.settings.localToolsAndroidSkillsTitle`)),1)]),t(`p`,ct,r(e.$t(`common.settings.localToolsAndroidSkillsHint`)),1),t(`ul`,lt,[e.xhsSkill?(p(),o(`li`,ut,[i(E,{class:`row-icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),t(`span`,dt,[t(`span`,ft,r(e.$t(`common.settings.localToolsAndroidSkillsXhsName`)),1),t(`span`,pt,r(e.$t(`common.settings.localToolsAndroidSkillsXhsDesc`)),1)]),e.xhsSkill.installed?(p(),l(v,{key:0,size:`small`,type:`success`,effect:`plain`},{default:u(()=>[n(r(e.$t(`common.settings.localToolsAndroidSkillsInstalled`)),1)]),_:1})):(p(),l(y,{key:1,size:`small`,type:`primary`,loading:e.xhsInstalling,disabled:!e.canInstallXhs,onClick:e.installXhs},{default:u(()=>[n(r(e.$t(`common.settings.localToolsAndroidSkillsInstall`)),1)]),_:1},8,[`loading`,`disabled`,`onClick`]))])):e.xhsLoading?(p(),o(`li`,mt,r(e.$t(`common.settings.localToolsAndroidSkillsLoading`)),1)):e.xhsError?a(``,!0):(p(),o(`li`,ht,r(e.$t(`common.settings.localToolsAndroidSkillsUnavailable`)),1))]),e.xhsSkill&&!e.xhsSkill.installed&&!e.canInstallXhs?(p(),o(`p`,gt,r(e.$t(`common.settings.localToolsAndroidSkillsNeedComputerUse`)),1)):a(``,!0),e.xhsSkill&&e.xhsSkill.installed?(p(),o(`p`,_t,r(e.$t(`common.settings.localToolsAndroidSkillsNextTurn`)),1)):a(``,!0),e.xhsError?(p(),o(`p`,vt,r(e.xhsError),1)):a(``,!0)])):a(``,!0),e.perm?(p(),o(`section`,yt,[t(`div`,bt,[t(`h3`,null,r(e.$t(`common.settings.localToolsPermsTitle`)),1)]),t(`p`,Q,r(e.$t(`common.settings.localToolsPermsHint`)),1),t(`div`,xt,[t(`span`,St,r(e.$t(`common.settings.localToolsPermFullDisk`)),1),i(v,{size:`small`,type:e.perm.fullDisk?`success`:`info`,effect:`plain`},{default:u(()=>[n(r(e.perm.fullDisk?e.$t(`common.settings.localToolsGranted`):e.$t(`common.settings.localToolsNotGranted`)),1)]),_:1},8,[`type`]),i(y,{size:`small`,type:`primary`,onClick:m[1]||=t=>e.open(`fullDisk`)},{default:u(()=>[n(r(e.$t(`common.settings.localToolsOpen`)),1)]),_:1})]),t(`div`,Ct,[t(`span`,wt,r(e.$t(`common.settings.localToolsPermScreen`)),1),i(v,{size:`small`,type:e.perm.screen===`granted`?`success`:`info`,effect:`plain`},{default:u(()=>[n(r(e.perm.screen===`granted`?e.$t(`common.settings.localToolsGranted`):e.$t(`common.settings.localToolsNotGranted`)),1)]),_:1},8,[`type`]),i(y,{size:`small`,type:`primary`,onClick:m[2]||=t=>e.open(`screen`)},{default:u(()=>[n(r(e.$t(`common.settings.localToolsOpen`)),1)]),_:1})]),t(`div`,Tt,[t(`span`,Et,r(e.$t(`common.settings.localToolsPermAccessibility`)),1),i(v,{size:`small`,type:e.perm.accessibility?`success`:`info`,effect:`plain`},{default:u(()=>[n(r(e.perm.accessibility?e.$t(`common.settings.localToolsGranted`):e.$t(`common.settings.localToolsNotGranted`)),1)]),_:1},8,[`type`]),i(y,{size:`small`,type:`primary`,onClick:m[3]||=t=>e.open(`accessibility`)},{default:u(()=>[n(r(e.$t(`common.settings.localToolsOpen`)),1)]),_:1})])])):a(``,!0)],64)):(p(),o(`p`,L,r(e.$t(`common.settings.localToolsDesktopOnly`)),1))])}var $=te(P,[[`render`,Dt],[`__scopeId`,`data-v-38ba07ce`]]);export{F as n,$ as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,N as t,qt as n,tt as r,z as i}from"./vendor-chart-Dw-P17PN.js";import{O as a,vn as o}from"./index-BdWkx9SU.js";var s=`/assets/acedata-mark-l2r40Kh8.png`,c=`/assets/acedata-wordmark-mask-BIn-5zkq.png`,l=i({props:{collapsed:{type:Boolean,default:!1}},emits:[`click`],data(){return{logoMark:s}},computed:{siteTitle(){return this.$store.state.site?.title||`AceData`},tenantLogo(){if(o())return``;let e=this.$store.state.site,t=`https://platform.acedata.cloud/favicon.ico`;return this.collapsed?e?.favicon||e?.logo||t:e?.logo||e?.favicon||t},wordmarkStyle(){return{"--logo-wordmark-mask":`url(${c})`}}}}),u=[`aria-label`],d=[`src`,`alt`],f=[`src`],p={key:2,class:`brand-logo__wordmark`},m={class:`brand-logo__wordmark-inner`},h=[`src`];function g(i,a,o,s,c,l){return r(),t(`button`,{type:`button`,class:`brand-logo`,"aria-label":i.siteTitle,onClick:a[0]||=e=>i.$emit(`click`)},[i.tenantLogo?(r(),t(`img`,{key:0,src:i.tenantLogo,class:`brand-logo__image`,alt:i.siteTitle},null,8,d)):i.collapsed?(r(),t(`img`,{key:1,src:i.logoMark,class:`brand-logo__mark`,alt:``,"aria-hidden":`true`},null,8,f)):(r(),t(`span`,p,[e(`span`,m,[e(`img`,{src:i.logoMark,class:`brand-logo__wordmark-mark`,alt:``,"aria-hidden":`true`},null,8,h),e(`span`,{class:`brand-logo__wordmark-text`,style:n(i.wordmarkStyle),"aria-hidden":`true`},null,4)])]))],8,u)}var _=a(l,[[`render`,g],[`__scopeId`,`data-v-592566e2`]]);export{_ as t};
|
|
@@ -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,T as c,at as l,j as u,mt as d,rt as f,tt as p,z as m}from"./vendor-chart-Dw-P17PN.js";import{t as h}from"./upload-CaDoepuW.js";import{t as g}from"./alert-BprQRUmf.js";import{v as _}from"./models-BezwK8kr.js";import{n as v,r as y}from"./radio-BNhFzeBO.js";import{t as b}from"./switch-J51NyhGI.js";import{t as x}from"./book-open-D3en4xKo.js";import{t as S}from"./check-DlBiKMMT.js";import{t as C}from"./eye-CDshsHwE.js";import{t as w}from"./mic-CqqkTs2j.js";import{t as T}from"./rotate-ccw-BtuuahqB.js";import{t as E}from"./shuffle-D2L8tnjA.js";import{t as ee}from"./square-DUlbGZuD.js";import{t as D}from"./upload-CNBzy6GU.js";import{t as O}from"./volume-2-C3UYEUV3.js";import{t as k}from"./wand-sparkles-DEWXPZMX.js";import{t as te}from"./vendor-axios-Ck2ffRoh.js";import"./constants-CLU-fDDu.js";import{$t as ne,Fi as A,Mn as j,O as M,Ui as N,lt as P,pn as F,si as I,wi as L}from"./index-BdWkx9SU.js";import{t as R}from"./CopyToClipboard-P1yaIIEd.js";import{t as z}from"./BotPlaceholder-Cphp5w1L.js";import{t as B}from"./Hailuo-0JIK6DOO.js";import{t as V}from"./TabSwitcher-uHvguPMy.js";var H=4,U=90,W=m({name:`FishRecorder`,components:{ConfirmIcon:S,DocsIcon:x,MicrophoneIcon:w,ShuffleIcon:E,StopIcon:ee,UndoIcon:T,ElButton:A},emits:[`done`,`cancel`,`update:script`],data(){return{state:`idle`,scriptIndex:0,seconds:0,timerId:0,maxTimerId:0,mediaRecorder:null,stream:null,chunks:[],recordedBlob:null,recordedUrl:``,uploading:!1}},computed:{formattedTime(){let e=Math.floor(this.seconds/60),t=this.seconds%60;return`${e.toString().padStart(2,`0`)}:${t.toString().padStart(2,`0`)}`},currentScript(){let e=`fish.script.passage${this.scriptIndex%H+1}`;return this.$t(e)}},beforeUnmount(){this.cleanup()},mounted(){this.$emit(`update:script`,this.currentScript)},methods:{nextScript(){this.scriptIndex=(this.scriptIndex+1)%H,this.$emit(`update:script`,this.currentScript)},async startRecord(){if(!navigator.mediaDevices?.getUserMedia||typeof MediaRecorder>`u`){_.error(this.$t(`fish.message.recorderUnsupported`));return}try{this.stream=await navigator.mediaDevices.getUserMedia({audio:!0})}catch(e){let t=e?.name===`NotAllowedError`||e?.name===`PermissionDeniedError`;_.error(this.$t(t?`fish.message.micDenied`:`fish.message.micError`));return}this.chunks=[];let e=this.pickMimeType();try{this.mediaRecorder=e?new MediaRecorder(this.stream,{mimeType:e}):new MediaRecorder(this.stream)}catch{this.mediaRecorder=new MediaRecorder(this.stream)}this.mediaRecorder.ondataavailable=e=>{e.data&&e.data.size>0&&this.chunks.push(e.data)},this.mediaRecorder.onstop=()=>{let e=new Blob(this.chunks,{type:this.mediaRecorder?.mimeType||`audio/webm`});this.recordedBlob=e,this.recordedUrl=URL.createObjectURL(e),this.state=`recorded`,this.releaseStream()},this.mediaRecorder.start(),this.state=`recording`,this.seconds=0,this.timerId=window.setInterval(()=>{this.seconds++},1e3),this.maxTimerId=window.setTimeout(()=>{this.state===`recording`&&this.stopRecord()},U*1e3)},stopRecord(){this.mediaRecorder&&this.mediaRecorder.state!==`inactive`&&this.mediaRecorder.stop(),window.clearInterval(this.timerId),window.clearTimeout(this.maxTimerId)},reset(){this.recordedUrl&&URL.revokeObjectURL(this.recordedUrl),this.recordedUrl=``,this.recordedBlob=null,this.state=`idle`,this.seconds=0},onCancel(){this.cleanup(),this.$emit(`cancel`)},cleanup(){this.stopRecord(),this.releaseStream(),this.recordedUrl&&URL.revokeObjectURL(this.recordedUrl)},releaseStream(){this.stream?.getTracks().forEach(e=>e.stop()),this.stream=null},pickMimeType(){for(let e of[`audio/webm;codecs=opus`,`audio/webm`,`audio/mp4`,`audio/ogg`])if(typeof MediaRecorder<`u`&&MediaRecorder.isTypeSupported?.(e))return e},extensionForMime(e){return e.includes(`webm`)?`webm`:e.includes(`mp4`)?`m4a`:e.includes(`ogg`)?`ogg`:e.includes(`wav`)?`wav`:`mp3`},async useRecording(){if(this.recordedBlob){if(this.seconds<3){_.warning(this.$t(`fish.message.recordingTooShort`));return}this.uploading=!0;try{let e=this.$store.state.token?.access,t=this.extensionForMime(this.recordedBlob.type||``),n=new File([this.recordedBlob],`recording-${Date.now()}.${t}`,{type:this.recordedBlob.type||`audio/webm`}),r=new FormData;r.append(`file`,n);let{data:i}=await te.post(`${I()}/api/v1/files/`,r,{headers:{Authorization:`Bearer ${e}`}}),a=i?.file_url;if(!a){_.error(this.$t(`fish.message.uploadError`));return}this.$emit(`done`,{url:a,text:this.currentScript})}catch(e){_.error(this.$t(`fish.message.uploadError`)),console.error(`recorder upload failed`,e)}finally{this.uploading=!1}}}}}),G={class:`recorder`},K={key:0,class:`script`},q={class:`script-header`},J={class:`label`},Y={class:`script-text`},X={class:`controls`},Z={class:`status`},re={class:`hint`},ie={key:1,class:`preview`},ae=[`src`],oe={class:`preview-actions`},se={class:`footer`};function ce(t,c,f,m,h,g){let _=l(`docs-icon`),v=l(`shuffle-icon`),y=l(`el-button`),b=l(`microphone-icon`),x=l(`stop-icon`),S=l(`undo-icon`),C=l(`confirm-icon`);return p(),s(`div`,G,[t.state===`recorded`?o(``,!0):(p(),s(`div`,K,[e(`div`,q,[a(_,{class:`icon mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,J,i(t.$t(`fish.description.readScript`)),1),a(y,{link:``,size:`small`,class:`ml-auto`,disabled:t.state===`recording`,onClick:t.nextScript},{default:d(()=>[a(v,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(t.$t(`fish.button.nextScript`)),1)]),_:1},8,[`disabled`,`onClick`])]),e(`p`,Y,i(t.currentScript),1)])),e(`div`,X,[t.state===`idle`?(p(),u(y,{key:0,type:`danger`,circle:``,size:`large`,title:t.$t(`fish.button.startRecord`),"aria-label":t.$t(`fish.button.startRecord`),onClick:t.startRecord},{default:d(()=>[a(b,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`title`,`aria-label`,`onClick`])):t.state===`recording`?(p(),u(y,{key:1,type:`warning`,circle:``,size:`large`,title:t.$t(`fish.button.stopRecord`),"aria-label":t.$t(`fish.button.stopRecord`),onClick:t.stopRecord},{default:d(()=>[a(x,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`title`,`aria-label`,`onClick`])):o(``,!0),e(`div`,Z,[e(`span`,{class:n([`timer`,t.state===`recording`?`live`:``])},i(t.formattedTime),3),e(`span`,re,i(t.state===`idle`?t.$t(`fish.description.recorderIdle`):t.state===`recording`?t.$t(`fish.description.recorderRecording`):t.$t(`fish.description.recorderRecorded`)),1)])]),t.state===`recorded`&&t.recordedUrl?(p(),s(`div`,ie,[e(`audio`,{src:t.recordedUrl,controls:``,preload:`metadata`,class:`w-full`},null,8,ae),e(`div`,oe,[a(y,{size:`small`,disabled:t.uploading,onClick:t.reset},{default:d(()=>[a(S,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(t.$t(`fish.button.reRecord`)),1)]),_:1},8,[`disabled`,`onClick`]),a(y,{size:`small`,type:`primary`,loading:t.uploading,onClick:t.useRecording},{default:d(()=>[a(C,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(t.$t(`fish.button.useRecording`)),1)]),_:1},8,[`loading`,`onClick`])])])):o(``,!0),e(`div`,se,[a(y,{link:``,size:`small`,disabled:t.uploading||t.state===`recording`,onClick:t.onCancel},{default:d(()=>[r(i(t.$t(`fish.button.cancel`)),1)]),_:1},8,[`disabled`,`onClick`])])])}var le=M(W,[[`render`,ce],[`__scopeId`,`data-v-40e201f8`]]),ue=50*1024*1024,Q=()=>({title:``,description:``,texts:``,voicesUrl:``,visibility:`private`,trainMode:`fast`,enhanceAudio:!0,generateSample:!1}),de=m({name:`FishModelConfigPanel`,components:{MagicIcon:k,MicrophoneIcon:w,UndoIcon:T,UploadIcon:D,ElButton:A,ElInput:N,ElRadioButton:v,ElRadioGroup:y,ElSwitch:b,ElUpload:h,Recorder:le},mixins:[ne],emits:[`create`],data(){return{form:Q(),fileList:[],uploading:!1,creating:!1,recording:!1,textsAuto:!0}},computed:{uploadUrl(){return I()+`/api/v1/files/`},uploadHeaders(){return{Authorization:`Bearer ${this.$store.state.token?.access}`}},canCreate(){return!!this.form.title.trim()&&!!this.form.voicesUrl&&!this.uploading&&!this.creating},supportsRecorder(){return!!(typeof navigator<`u`?navigator.mediaDevices:void 0)?.getUserMedia&&typeof MediaRecorder<`u`}},methods:{onBeforeUpload(e){return e.size>ue?(_.warning(this.$t(`fish.message.audioSizeExceed`)),!1):(this.uploading=!0,!0)},onExceed(){_.warning(this.$t(`fish.message.audioOnlyOne`))},onUploadError(){this.uploading=!1,_.error(this.$t(`fish.message.uploadError`))},onUploadSuccess(e,t,n){this.uploading=!1;let r=e?.file_url;if(!r){_.error(this.$t(`fish.message.uploadError`)),this.fileList=[];return}this.form.voicesUrl=r,this.fileList=n},onRecorded(e){this.form.voicesUrl=e.url,this.recording=!1,e.text&&this.textsAuto&&(this.form.texts=e.text)},onStartRecord(){this.recording=!0,this.textsAuto=!this.form.texts.trim()},onScriptChange(e){this.textsAuto&&this.recording&&(this.form.texts=e)},onTextsInput(){this.textsAuto=!1},clearAudio(){this.form.voicesUrl=``,this.fileList=[]},onCreate(){let e=this.form.title.trim();if(!e){_.warning(this.$t(`fish.message.titleRequired`));return}if(!this.form.voicesUrl){_.warning(this.$t(`fish.message.audioRequired`));return}let t={title:e,voices:this.form.voicesUrl,visibility:this.form.visibility,train_mode:this.form.trainMode,enhance_audio_quality:this.form.enhanceAudio,generate_sample:this.form.generateSample};this.form.description.trim()&&(t.description=this.form.description.trim()),this.form.texts.trim()&&(t.texts=[this.form.texts.trim()]),this.creating=!0,this.$emit(`create`,t),setTimeout(()=>{this.creating=!1,this.form=Q(),this.fileList=[]},600)}}}),fe={class:`flex flex-col h-full`},pe={class:`flex-1 overflow-y-auto p-5`},me={class:`field-block mb-4`},he={class:`title font-bold`},ge={class:`field-block mb-4`},_e={class:`flex items-baseline justify-between mb-1`},ve={class:`title font-bold`},ye={key:0,class:`muted`},be={class:`hint`},xe={key:0,class:`audio-actions`},Se={key:1,class:`hint warn`},Ce={key:3,class:`mt-2`},we=[`src`],Te={class:`ready-actions`},Ee={class:`field-block mb-4`},De={class:`title font-bold`},Oe={class:`hint`},ke={class:`field-block mb-4`},Ae={class:`title font-bold`},je={class:`field-block mb-4`},Me={class:`title font-bold`},Ne={class:`field-block mb-3`},Pe={class:`field-row`},Fe={class:`title font-bold`},Ie={class:`hint mt-0 mb-0`},Le={class:`field-block mb-2`},Re={class:`field-row`},ze={class:`title font-bold`},Be={class:`hint mt-0 mb-0`},Ve={class:`flex flex-col items-center justify-center px-5 pb-5`};function He(t,n,c,f,m,h){let g=l(`el-input`),_=l(`upload-icon`),v=l(`el-button`),y=l(`el-upload`),b=l(`microphone-icon`),x=l(`recorder`),S=l(`undo-icon`),C=l(`el-radio-button`),w=l(`el-radio-group`),T=l(`el-switch`),E=l(`magic-icon`);return p(),s(`div`,fe,[e(`div`,pe,[e(`div`,me,[e(`h2`,he,[r(i(t.$t(`fish.name.voiceTitle`))+` `,1),n[8]||=e(`span`,{class:`required`},`*`,-1)]),a(g,{modelValue:t.form.title,"onUpdate:modelValue":n[0]||=e=>t.form.title=e,placeholder:t.$t(`fish.placeholder.voiceTitle`),maxlength:`60`},null,8,[`modelValue`,`placeholder`])]),e(`div`,ge,[e(`div`,_e,[e(`h2`,ve,[r(i(t.$t(`fish.name.referenceAudio`))+` `,1),n[9]||=e(`span`,{class:`required`},`*`,-1)]),!t.form.voicesUrl&&!t.recording?(p(),s(`span`,ye,i(t.$t(`fish.description.audioRequired`)),1)):o(``,!0)]),e(`p`,be,i(t.$t(`fish.description.uploadAudio`)),1),!t.form.voicesUrl&&!t.recording?(p(),s(`div`,xe,[a(y,{"file-list":t.fileList,"onUpdate:fileList":n[1]||=e=>t.fileList=e,name:`file`,limit:1,class:`upload-wrapper`,action:t.uploadUrl,accept:`.mp3,.wav,.m4a,.ogg,.webm,audio/*`,"show-file-list":!1,"on-exceed":t.onExceed,"on-error":t.onUploadError,"on-success":t.onUploadSuccess,"before-upload":t.onBeforeUpload,headers:t.uploadHeaders},{default:d(()=>[a(v,{type:`primary`,plain:``,round:``,loading:t.uploading},{default:d(()=>[a(_,{class:`icon mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(t.$t(`fish.button.uploadAudio`)),1)]),_:1},8,[`loading`])]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`on-success`,`before-upload`,`headers`]),a(v,{type:`primary`,round:``,disabled:!t.supportsRecorder,onClick:t.onStartRecord},{default:d(()=>[a(b,{class:`icon mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(t.$t(`fish.button.recordAudio`)),1)]),_:1},8,[`disabled`,`onClick`])])):o(``,!0),!t.supportsRecorder&&!t.form.voicesUrl&&!t.recording?(p(),s(`p`,Se,i(t.$t(`fish.message.recorderUnsupported`)),1)):o(``,!0),t.recording?(p(),u(x,{key:2,class:`mt-2`,onDone:t.onRecorded,onCancel:n[2]||=e=>t.recording=!1,"onUpdate:script":t.onScriptChange},null,8,[`onDone`,`onUpdate:script`])):o(``,!0),t.form.voicesUrl&&!t.recording?(p(),s(`div`,Ce,[e(`audio`,{src:t.form.voicesUrl,controls:``,preload:`metadata`,class:`w-full`},null,8,we),e(`div`,Te,[a(v,{link:``,size:`small`,onClick:t.clearAudio},{default:d(()=>[a(S,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(t.$t(`fish.button.replaceAudio`)),1)]),_:1},8,[`onClick`])])])):o(``,!0)]),e(`div`,Ee,[e(`h2`,De,i(t.$t(`fish.name.audioTexts`)),1),e(`p`,Oe,i(t.$t(`fish.description.audioTexts`)),1),a(g,{modelValue:t.form.texts,"onUpdate:modelValue":n[3]||=e=>t.form.texts=e,type:`textarea`,rows:2,placeholder:t.$t(`fish.placeholder.audioTexts`),maxlength:`500`,onInput:t.onTextsInput},null,8,[`modelValue`,`placeholder`,`onInput`])]),e(`div`,ke,[e(`h2`,Ae,i(t.$t(`fish.name.voiceDescription`)),1),a(g,{modelValue:t.form.description,"onUpdate:modelValue":n[4]||=e=>t.form.description=e,type:`textarea`,rows:2,placeholder:t.$t(`fish.placeholder.voiceDescription`),maxlength:`500`},null,8,[`modelValue`,`placeholder`])]),e(`div`,je,[e(`h2`,Me,i(t.$t(`fish.name.trainMode`)),1),a(w,{modelValue:t.form.trainMode,"onUpdate:modelValue":n[5]||=e=>t.form.trainMode=e},{default:d(()=>[a(C,{label:`fast`,value:`fast`},{default:d(()=>[r(i(t.$t(`fish.value.trainModeFast`)),1)]),_:1}),a(C,{label:`precise`,value:`precise`},{default:d(()=>[r(i(t.$t(`fish.value.trainModePrecise`)),1)]),_:1})]),_:1},8,[`modelValue`])]),e(`div`,Ne,[e(`div`,Pe,[e(`h2`,Fe,i(t.$t(`fish.name.enhanceAudio`)),1),a(T,{modelValue:t.form.enhanceAudio,"onUpdate:modelValue":n[6]||=e=>t.form.enhanceAudio=e},null,8,[`modelValue`])]),e(`p`,Ie,i(t.$t(`fish.description.enhanceAudio`)),1)]),e(`div`,Le,[e(`div`,Re,[e(`h2`,ze,i(t.$t(`fish.name.generateSample`)),1),a(T,{modelValue:t.form.generateSample,"onUpdate:modelValue":n[7]||=e=>t.form.generateSample=e},null,8,[`modelValue`])]),e(`p`,Be,i(t.$t(`fish.description.generateSample`)),1)])]),e(`div`,Ve,[a(v,{type:`primary`,class:`btn w-full`,round:``,disabled:!t.canCreate||t.creating,loading:t.creating,onClick:t.onCreate},{default:d(()=>[a(E,{class:`mr-2`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(t.$t(`fish.button.createModel`)),1)]),_:1},8,[`disabled`,`loading`,`onClick`])])])}var Ue=M(de,[[`render`,He],[`__scopeId`,`data-v-46dbe88b`]]),We=m({name:`FishVoiceCard`,components:{MicrophoneIcon:w,ViewIcon:C,VolumeIcon:O,ElAlert:g,ElButton:A,ElImage:L,CopyToClipboard:R},props:{modelValue:{type:Object,required:!0}},computed:{sampleAudioUrl(){let e=this.modelValue?.samples;if(e?.length)return e[0]?.audio},voiceId(){let e=this.modelValue;return(e?.id||e?._id||e?.reference_id||``).toString()},coverSrc(){let e=this.modelValue?.cover_image;return e&&typeof e==`string`?e:void 0},createdAtLabel(){let e=this.modelValue?.created_at;if(e==null||e===``)return null;let t=typeof e==`number`?e:parseFloat(String(e));return!Number.isFinite(t)||t<=0?null:this.$dayjs.format(``+new Date(t*1e3))}},methods:{onUseVoice(){let e=this.voiceId;e&&(this.$store.commit(`fish/setConfig`,{...this.$store.state.fish?.config,reference_id:e}),this.$router.push({name:P}))}}}),Ge={class:`card`},Ke={class:`left`},qe={class:`main`},Je={class:`header`},Ye={class:`title`},Xe={key:0,class:`datetime`},Ze={key:0,class:`description`},Qe={key:1,class:`sample mt-2`},$e=[`src`],et={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},tt={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-0`},nt={class:`operations mt-2`};function rt(n,c,f,m,h,g){let _=l(`el-image`),v=l(`microphone-icon`),y=l(`copy-to-clipboard`),b=l(`view-icon`),x=l(`el-alert`),S=l(`volume-icon`),C=l(`el-button`);return p(),s(`div`,Ge,[e(`div`,Ke,[n.coverSrc?(p(),u(_,{key:0,src:n.coverSrc,class:`cover`,fit:`cover`},{error:d(()=>[a(_,{src:`https://cdn.acedata.cloud/e40fccc727.png`,class:`cover fallback`,fit:`cover`})]),placeholder:d(()=>[...c[0]||=[e(`div`,{class:`cover placeholder`},null,-1)]]),_:1},8,[`src`])):(p(),u(_,{key:1,src:`https://cdn.acedata.cloud/e40fccc727.png`,class:`cover fallback`,fit:`cover`}))]),e(`div`,qe,[e(`div`,Je,[e(`span`,Ye,i(n.modelValue?.title||n.$t(`fish.name.untitledVoice`)),1),n.createdAtLabel?(p(),s(`span`,Xe,i(n.createdAtLabel),1)):o(``,!0)]),n.modelValue?.description?(p(),s(`p`,Ze,i(n.modelValue?.description),1)):o(``,!0),n.sampleAudioUrl?(p(),s(`div`,Qe,[e(`audio`,{src:n.sampleAudioUrl,controls:``,preload:`metadata`,class:`w-full`},null,8,$e)])):o(``,!0),a(x,{closable:!1,class:`mt-2 success`},{default:d(()=>[n.voiceId?(p(),s(`p`,et,[a(v,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(n.$t(`fish.name.referenceId`))+`: `+i(n.voiceId)+` `,1),a(y,{content:n.voiceId},null,8,[`content`])])):o(``,!0),n.modelValue?.visibility?(p(),s(`p`,tt,[a(b,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(n.$t(`fish.name.visibility`))+`: `+i(n.modelValue?.visibility),1)])):o(``,!0)]),_:1}),e(`div`,nt,[a(C,{type:`primary`,size:`small`,plain:``,disabled:!n.voiceId,onClick:t(n.onUseVoice,[`stop`])},{default:d(()=>[a(S,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(n.$t(`fish.button.useVoice`)),1)]),_:1},8,[`disabled`,`onClick`])])])])}var it=m({name:`FishModelListPanel`,components:{MicrophoneIcon:w,VoiceCard:M(We,[[`render`,rt],[`__scopeId`,`data-v-9c092ba3`]]),BotPlaceholder:z},props:{loading:{type:Boolean,default:!1}},computed:{voices(){return this.$store.state.fish?.voices}}}),at={class:`model-list-panel flex flex-col h-full`},ot={class:`header`},st={class:`title`},ct={key:0,class:`count`},lt={class:`body flex-1 min-h-0`},ut={key:0,class:`h-full`},dt={key:1,class:`w-full h-full flex flex-col items-center justify-center text-center px-6`},ft={class:`empty-title`},$={class:`empty-hint`},pt={key:2,class:`w-full h-full overflow-y-auto pr-1`};function mt(t,n,r,d,m,h){let g=l(`bot-placeholder`),_=l(`microphone-icon`),v=l(`voice-card`);return p(),s(`div`,at,[e(`header`,ot,[e(`h2`,st,i(t.$t(`fish.title.myVoices`)),1),t.voices?.length?(p(),s(`span`,ct,i(t.voices?.length),1)):o(``,!0)]),e(`div`,lt,[t.voices===void 0?(p(),s(`div`,ut,[a(g)])):t.voices.length===0?(p(),s(`div`,dt,[a(_,{class:`empty-icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`p`,ft,i(t.$t(`fish.title.noVoicesYet`)),1),e(`p`,$,i(t.$t(`fish.description.noVoicesYet`)),1)])):(p(),s(`div`,pt,[(p(!0),s(c,null,f(t.voices,e=>(p(),u(v,{key:e.id,"model-value":e},null,8,[`model-value`]))),128))]))])])}var ht=m({name:`FishModelIndex`,components:{ModelConfigPanel:Ue,Layout:B,ModelListPanel:M(it,[[`render`,mt],[`__scopeId`,`data-v-8e360c85`]]),TabSwitcher:V},inject:[`initialized`],data(){return{loading:!1}},computed:{credential(){return this.$store.state.fish?.credential}},watch:{initialized:{async handler(e){e&&await this.onGetVoices()},immediate:!0}},async mounted(){await this.onGetService()},methods:{async onGetService(){await this.$store.dispatch(`fish/getService`)},async onGetVoices(){await this.$store.dispatch(`fish/getVoices`)},async onCreate(e){if(!F())return;let t=this.credential?.token;if(!t){console.error(`no token specified`);return}this.loading=!0,_.info(this.$t(`fish.message.creatingModel`));try{await j.createModel(e,{token:t}),_.success(this.$t(`fish.message.createModelSuccess`)),await this.onGetVoices()}catch(e){let t=e?.response?.data;t?.error?.code===`used_up`?_.error(this.$t(`fish.message.usedUp`)):_.error(t?.error?.message||this.$t(`fish.message.createModelFailed`))}finally{this.loading=!1}}}}),gt={class:`flex flex-col h-full`},_t={class:`flex-1 min-h-0`};function vt(t,n,r,i,o,s){let c=l(`tab-switcher`),f=l(`model-config-panel`),m=l(`model-list-panel`),h=l(`layout`);return p(),u(h,null,{config:d(()=>[e(`div`,gt,[a(c),e(`div`,_t,[a(f,{onCreate:t.onCreate},null,8,[`onCreate`])])])]),result:d(()=>[a(m,{loading:t.loading},null,8,[`loading`])]),_:1})}var yt=M(ht,[[`render`,vt]]);export{yt as default};
|
|
@@ -1,2 +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,j as d,mt as f,rt as p,tt as m,z as h}from"./vendor-chart-Dw-P17PN.js";import{n as g,r as ee,t as te}from"./select-DxlkO65R.js";import{t as ne}from"./time-picker-CqoCSffr.js";import{n as re,t as _}from"./form-BdKMEyCR.js";import{t as v}from"./tooltip-C_Jr9jzb.js";import{v as y}from"./models-BezwK8kr.js";import{t as b}from"./card-IQwqnRJR.js";import{r as x,t as S}from"./radio-BNhFzeBO.js";import{t as ie}from"./drawer-CzQ0A6Bq.js";import{t as C}from"./empty-C5KjRN0h.js";import{t as w}from"./input-number-DLmTTyLi.js";import{t as T}from"./skeleton-Dj_a_iIP.js";import{t as E}from"./switch-J51NyhGI.js";import{t as D}from"./brain-BDfvXAYj.js";import{t as O}from"./chevron-right-N8JOyfvh.js";import{t as k}from"./clock-BBp05BQI.js";import{t as A}from"./copy-BizdVpDe.js";import{t as j}from"./pencil-Dazn-vwZ.js";import{t as M}from"./play-DDKHmJys.js";import{t as N}from"./plus-DsxiwVWq.js";import{t as ae}from"./refresh-cw-D_BnZCE0.js";import{t as P}from"./trash-2-BQLGMG1w.js";import{t as F}from"./vendor-axios-Ck2ffRoh.js";import{Qi as I,Ri as L,ia as R}from"./constants-CLU-fDDu.js";import{A as z,Ei as B,Fi as V,Ni as H,O as U,Ui as W,fi as G,k as K,mn as oe,ui as q,xi as J}from"./index-BdWkx9SU.js";import{t as se}from"./CopyToClipboard-P1yaIIEd.js";import{t as ce}from"./pagination-B5GCs88M.js";function Y(e){let t=oe();return{Authorization:`Bearer ${e}`,"Content-Type":`application/json`,...t?{"x-site-origin":t}:{}}}var X=`${R}/aichat2/scheduled-tasks`,Z=2e4,le=3300;function ue(e,t){return e.status!==`queued`&&e.status!==`running`?!1:t/1e3-e.scheduled_at<le}function de(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 F.post(X,{action:`retrieve_batch`},{headers:Y(e)});return t?.items??[]}async createTask(e,t,n=!1){let{data:r}=await F.post(X,{action:`create`,...t,...n?{force:!0}:{}},{headers:Y(e)});return r}async updateTask(e,t,n,r=!1){let{data:i}=await F.post(X,{action:`update`,id:t,...n,...r?{force:!0}:{}},{headers:Y(e)});return i}async deleteTask(e,t){await F.post(X,{action:`delete`,id:t},{headers:Y(e)})}async triggerTask(e,t){let{data:n}=await F.post(X,{action:`trigger`,id:t},{headers:Y(e)});return n??{}}async listRuns(e,t){let{data:n}=await F.post(X,{action:`retrieve_runs`,id:t},{headers:Y(e),timeout:Z});return n?.items??[]}async listAllRuns(e,t={}){let{data:n}=await F.post(X,{action:`retrieve_runs_batch`,...t},{headers:Y(e),timeout:Z});return{items:n?.items??[],count:n?.count??0}}async listAuthorizableSkills(e){let{data:t}=await F.post(X,{action:`retrieve_authorizable_skills`},{headers:Y(e)});return t?.items??[]}async listAuthorizableCapabilities(e){let{data:t}=await F.post(X,{action:`retrieve_authorizable_skills`},{headers:Y(e)});return{skills:t?.skills??t?.items??[],mcp_servers:t?.mcp_servers??[]}}},$=Intl.DateTimeFormat().resolvedOptions().timeZone||`Asia/Shanghai`,fe=50,pe=12*1e3,me=3,he=h({name:`ScheduledTasks`,components:{AiIcon:D,ExpandRightIcon:O,PlayIcon:M,TimeIcon:k,AddIcon:N,CopyIcon:A,DeleteIcon:P,EditIcon:j,RefreshIcon:ae,ElButton:V,ElCard:b,ElSkeleton:T,ElEmpty:C,ElSwitch:E,ElTag:H,ElTooltip:v,ElDrawer:ie,ElDialog:B,ElForm:_,ElFormItem:re,ElInput:W,ElSelect:ee,ElOption:te,ElOptionGroup:g,ElRadioGroup:x,ElRadio:S,ElTimePicker:ne,ElInputNumber:w,Pagination:ce,CopyToClipboard:se},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,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 G()&&!!this.deviceIdentity},localUnavailableReason(){if(this.canRunLocally)return``;let e=q();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 L.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.humanizeSchedule(this.buildSchedule())}catch{return``}},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()},unmounted(){document.removeEventListener(`visibilitychange`,this.onVisibilityChange),this.stopRunPolling()},methods:{emptyForm(){return{name:``,question:``,model:I,scheduleType:`daily`,intervalValue:4,intervalUnit:`hour`,hourlyMinute:0,dailyTime:`09:00`,weekday:1,cronExpr:`0 9 * * *`,authorizedSkills:[],authorizedMcpServers:[],browserConnectionId:``,connectionAccounts:{},authorizationExpiresAt:Math.floor(Date.now()/1e3)+720*60*60,maxTurns:fe,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{y.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||y.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||y.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<me&&this.visibleRuns().some(t=>ue(t,e)))||document.hidden){this.stopRunPolling();return}this.runPollTimer||=setInterval(()=>void this.pollRuns(),pe)},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())},openCreate(){this.saving||(this.editingTask=null,this.form=this.emptyForm(),this.showCreateDialog=!0,this.loadDesktopContext())},async loadDesktopContext(){if(!G())return;let e=K()?.scheduler;if(e)try{this.deviceIdentity=await e.identity()}catch{this.deviceIdentity=null}try{this.localToolSpecs=await z()?.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,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??fe,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}=this.form;if(e===`interval`)return{type:`interval`,interval_seconds:Math.max(60,Math.round(t)*(n===`day`?86400:n===`hour`?3600:60)),tz:$};if(e===`hourly`)return{type:`cron`,cron:`${Math.min(59,Math.max(0,Math.round(r)))} * * * *`,tz:$};if(e===`daily`){let[e,t]=i.split(`:`);return{type:`cron`,cron:`${t} ${e} * * *`,tz:$}}if(e===`weekly`){let[e,t]=i.split(`:`);return{type:`cron`,cron:`${t} ${e} * * ${a}`,tz:$}}return{type:`cron`,cron:o,tz:$}},async saveTask(){if(!this.form.question.trim()){y.warning(this.$t(`chat.scheduledTasks.form.required`));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 J.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){y.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:q(),...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}y.success(this.$t(`chat.scheduledTasks.create`)+` OK`),this.showCreateDialog=!1,this.editingTask=null,this.form=this.emptyForm()}catch(e){n=t?null:de(e),n||y.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 J.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 y.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 t=await Q.updateTask(this.token,e.id,{state:r});n!==-1&&(this.tasks[n]=t)}catch{n!==-1&&(this.tasks[n]={...e,state:e.state}),y.error(this.$t(`chat.scheduledTasks.loadError`))}},async triggerNow(e){if(!this.triggeringId){this.triggeringId=e.id;try{if(e.execution===`local`){let t=K()?.scheduler?.runNow;if(!t){y.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`;y.warning(this.$t(e));return}}else await Q.triggerTask(this.token,e.id);y.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{y.error(this.$t(`chat.scheduledTasks.triggerError`))}finally{this.triggeringId=``}}},async confirmDelete(e){await J.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{y.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)},formatTime(e){return new Date(e*1e3).toLocaleString()}}}),ge={class:`scheduled-tasks`},_e={class:`inner`},ve={class:`header`},ye={class:`title`},be=[`aria-label`],xe=[`aria-selected`,`onClick`],Se={class:`task-list`},Ce={class:`task-top`},we={class:`task-heading`},Te={class:`task-name`},Ee={class:`task-id`},De={class:`task-id-text`},Oe={class:`task-meta`},ke={class:`meta-chip`},Ae={class:`meta-chip`},je={key:0,class:`meta-chip`},Me={class:`task-prompt`},Ne={key:0,class:`task-last-output`},Pe={class:`task-footer`},Fe={class:`run-count`},Ie={key:0,class:`error-hint`},Le={class:`open-hint`},Re={key:0,class:`pager`},ze=[`aria-label`],Be=[`aria-pressed`,`onClick`],Ve={class:`run-list`},He=[`tabindex`,`role`,`onClick`,`onKeydown`],Ue={class:`run-body`},We={class:`run-line`},Ge={class:`run-title`},Ke={key:0,class:`run-preview`},qe={class:`run-sub`},Je={class:`run-time`},Ye=[`title`],Xe={class:`run-action`},Ze={key:1,class:`run-noconv`},Qe={key:0,class:`pager`},$e={key:0,class:`run-context`},et={class:`task-id run-context-id`},tt={class:`task-id-text`},nt={class:`run-context-meta`},rt={class:`run-context-prompt`},it={key:3,class:`run-list`},at=[`tabindex`,`role`,`onClick`,`onKeydown`],ot={class:`run-body`},st={class:`run-line`},ct={class:`run-title`},lt={key:0,class:`run-preview`},ut={class:`run-sub`},dt={class:`run-time`},ft=[`title`],pt={class:`run-action`},mt={key:1,class:`run-noconv`},ht={key:4,class:`pager run-pager`},gt={class:`hint`},_t={class:`inline-block`},vt={class:`hint`},yt={class:`hint`},bt={key:0,class:`schedule-preview`},xt={class:`hint`},St={class:`hint`},Ct={class:`jitter-hint`},wt={class:`hint`},Tt={class:`skill-option`},Et={class:`skill-option-name`},Dt={key:0,class:`skill-option-missing`},Ot={class:`hint`},kt={key:0,class:`browser-binding-summary`},At={class:`hint`},jt={class:`hint`};function Mt(h,g,ee,te,ne,re){let _=u(`add-icon`),v=u(`el-button`),y=u(`el-skeleton`),b=u(`el-empty`),x=u(`copy-to-clipboard`),S=u(`el-switch`),ie=u(`play-icon`),C=u(`el-tooltip`),w=u(`edit-icon`),T=u(`copy-icon`),E=u(`delete-icon`),D=u(`el-tag`),O=u(`time-icon`),k=u(`ai-icon`),A=u(`refresh-icon`),j=u(`expand-right-icon`),M=u(`el-card`),N=u(`pagination`),ae=u(`el-drawer`),P=u(`el-input`),F=u(`el-form-item`),I=u(`el-option`),L=u(`el-option-group`),R=u(`el-select`),z=u(`el-radio`),B=u(`el-radio-group`),V=u(`el-input-number`),H=u(`el-time-picker`),U=u(`el-form`),W=u(`el-dialog`);return m(),s(`div`,ge,[e(`div`,_e,[e(`div`,ve,[e(`h2`,ye,i(h.$t(`chat.scheduledTasks.title`)),1),h.activeTab===`tasks`?(m(),d(v,{key:0,type:`primary`,round:``,disabled:h.saving,onClick:h.openCreate},{default:f(()=>[a(_,{size:16,class:`icon`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(h.$t(`chat.scheduledTasks.create`)),1)]),_:1},8,[`disabled`,`onClick`])):o(``,!0)]),e(`div`,{class:`tabs`,role:`tablist`,"aria-label":h.$t(`chat.scheduledTasks.title`)},[(m(!0),s(l,null,p(h.tabs,e=>(m(),s(`button`,{key:e,type:`button`,role:`tab`,class:n([`tab`,{active:h.activeTab===e}]),"aria-selected":h.activeTab===e,onClick:t=>h.switchTab(e)},i(h.$t(`chat.scheduledTasks.tab.${e}`)),11,xe))),128))],8,be),h.activeTab===`tasks`?(m(),s(l,{key:0},[h.loading?(m(),d(y,{key:0,rows:4,animated:``,class:`loading-block`})):h.tasks.length?(m(),s(l,{key:2},[e(`div`,Se,[(m(!0),s(l,null,p(h.pagedTasks,n=>(m(),d(M,{key:n.id,class:`task-card`,shadow:`hover`,onClick:e=>h.selectTask(n)},{default:f(()=>[e(`div`,Ce,[e(`div`,we,[e(`div`,Te,i(n.name),1),e(`div`,Ee,[e(`span`,De,i(h.$t(`common.entity.id`))+`: `+i(n.id),1),a(x,{content:n.id,class:`inline-block shrink-0`},null,8,[`content`])])]),e(`div`,{class:`task-actions`,onClick:g[0]||=t(()=>{},[`stop`])},[a(S,{"model-value":n.state===`enabled`,onChange:e=>h.toggleState(n,e===!0)},null,8,[`model-value`,`onChange`]),a(C,{content:h.$t(`chat.scheduledTasks.triggerNow`),placement:`top`},{default:f(()=>[a(v,{text:``,class:`icon-action`,loading:h.triggeringId===n.id,"aria-label":h.$t(`chat.scheduledTasks.triggerNow`),title:h.$t(`chat.scheduledTasks.triggerNow`),onClick:e=>h.triggerNow(n)},{default:f(()=>[h.triggeringId===n.id?o(``,!0):(m(),d(ie,{key:0,size:`1em`,"aria-hidden":`true`,focusable:`false`}))]),_:2},1032,[`loading`,`aria-label`,`title`,`onClick`])]),_:2},1032,[`content`]),a(C,{content:h.$t(`common.button.edit`),placement:`top`},{default:f(()=>[a(v,{text:``,class:`icon-action`,"aria-label":h.$t(`common.button.edit`),onClick:e=>h.openEdit(n)},{default:f(()=>[a(w,{size:16,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`aria-label`,`onClick`])]),_:2},1032,[`content`]),a(C,{content:h.$t(`chat.scheduledTasks.duplicate`),placement:`top`},{default:f(()=>[a(v,{text:``,class:`icon-action`,"aria-label":h.$t(`chat.scheduledTasks.duplicate`),onClick:e=>h.openDuplicate(n)},{default:f(()=>[a(T,{size:16,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`aria-label`,`onClick`])]),_:2},1032,[`content`]),a(C,{content:h.$t(`common.button.delete`),placement:`top`},{default:f(()=>[a(v,{text:``,type:`danger`,class:`icon-action`,"aria-label":h.$t(`common.button.delete`),onClick:e=>h.confirmDelete(n)},{default:f(()=>[a(E,{size:16,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`aria-label`,`onClick`])]),_:2},1032,[`content`])])]),e(`div`,Oe,[a(D,{size:`small`,type:h.stateTagType(n.state),effect:`dark`,round:``},{default:f(()=>[r(i(h.$t(`chat.scheduledTasks.state.${n.state}`)),1)]),_:2},1032,[`type`]),e(`span`,ke,[a(O,{class:`meta-icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(h.scheduleLabel(n.schedule)),1)]),e(`span`,Ae,[a(k,{class:`meta-icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(n.template.model),1)]),n.execution===`local`?(m(),s(`span`,je,i(n.device_name||h.$t(`chat.scheduledTasks.execution.local`)),1)):o(``,!0)]),e(`div`,Me,i(n.template.question),1),n.last_output_snippet?(m(),s(`div`,Ne,i(n.last_output_snippet),1)):o(``,!0),e(`div`,Pe,[e(`span`,Fe,[a(A,{size:16,class:`footer-icon`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(h.$t(`chat.scheduledTasks.runCount`,{count:n.run_count})),1)]),n.last_error?(m(),s(`span`,Ie,i(h.errorCodeText(n.last_error)),1)):o(``,!0),e(`span`,Le,[r(i(h.$t(`chat.scheduledTasks.viewRuns`))+` `,1),a(j,{size:`1em`,"aria-hidden":`true`,focusable:`false`})])])]),_:2},1032,[`onClick`]))),128))]),h.tasks.length>h.pageSize?(m(),s(`div`,Re,[a(N,{"current-page":h.page,"page-size":h.pageSize,total:h.tasks.length,onChange:h.onPageChange},null,8,[`current-page`,`page-size`,`total`,`onChange`])])):o(``,!0)],64)):(m(),d(b,{key:1,description:h.$t(`chat.scheduledTasks.empty`),class:`empty`},null,8,[`description`]))],64)):(m(),s(l,{key:1},[e(`div`,{class:`filters`,role:`group`,"aria-label":h.$t(`chat.scheduledTasks.tab.runs`)},[(m(!0),s(l,null,p(h.statusFilters,e=>(m(),s(`button`,{key:e,type:`button`,class:n([`filter-chip`,{active:h.allRunsStatus===e}]),"aria-pressed":h.allRunsStatus===e,onClick:t=>h.onStatusFilter(e)},i(e===`all`?h.$t(`chat.scheduledTasks.filterAll`):h.$t(`chat.scheduledTasks.run.${e}`)),11,Be))),128))],8,ze),h.allRunsLoading?(m(),d(y,{key:0,rows:4,animated:``,class:`loading-block`})):h.allRuns.length?(m(),s(l,{key:2},[e(`div`,Ve,[(m(!0),s(l,null,p(h.allRuns,u=>(m(),s(`div`,{key:u.id,class:n([`run-item`,{clickable:!!u.conversation_id}]),tabindex:u.conversation_id?0:-1,role:u.conversation_id?`button`:void 0,onClick:e=>h.openRun(u),onKeydown:[c(e=>h.openRun(u),[`enter`]),c(t(e=>h.openRun(u),[`prevent`]),[`space`])]},[e(`div`,Ue,[e(`div`,We,[e(`span`,Ge,i(u.conversation_title||h.formatTime(u.scheduled_at)),1),a(D,{size:`small`,type:h.runTagType(u.status),effect:`dark`,round:``,class:`run-tag`},{default:f(()=>[r(i(h.$t(`chat.scheduledTasks.run.${u.status}`)),1)]),_:2},1032,[`type`])]),u.conversation_preview?(m(),s(`div`,Ke,i(u.conversation_preview),1)):o(``,!0),e(`div`,qe,[u.task_name?(m(),d(D,{key:0,size:`small`,type:`info`,round:``,class:`run-task-tag`},{default:f(()=>[r(i(u.task_name),1)]),_:2},1024)):o(``,!0),u.execution===`local`?(m(),d(D,{key:1,size:`small`,type:`info`,round:``,class:`run-task-tag`},{default:f(()=>[r(i(u.device_name||h.$t(`chat.scheduledTasks.execution.local`)),1)]),_:2},1024)):o(``,!0),(m(!0),s(l,null,p(u.run_accounts,(e,t)=>(m(),d(D,{key:`${e.connector_identifier}-${t}`,size:`small`,type:`info`,round:``,class:`run-account-tag`},{default:f(()=>[r(i(h.accountTagText(e)),1)]),_:2},1024))),128)),e(`span`,Je,i(h.formatTime(u.scheduled_at)),1),h.runOutcomeText(u)?(m(),s(`span`,{key:2,class:n(u.status===`failed`?`run-error`:`run-outcome`),title:h.runOutcomeText(u)},i(h.runOutcomeText(u)),11,Ye)):o(``,!0)])]),e(`div`,Xe,[u.conversation_id?(m(),d(j,{key:0,class:`run-arrow`,size:`1em`,"aria-hidden":`true`,focusable:`false`})):(m(),s(`span`,Ze,i(h.$t(`chat.scheduledTasks.noConversation`)),1))])],42,He))),128))]),h.allRunsCount>h.allRunsPageSize?(m(),s(`div`,Qe,[a(N,{"current-page":h.allRunsPage,"page-size":h.allRunsPageSize,total:h.allRunsCount,onChange:h.onAllRunsPageChange},null,8,[`current-page`,`page-size`,`total`,`onChange`])])):o(``,!0)],64)):(m(),d(b,{key:1,description:h.$t(`chat.scheduledTasks.noRuns`),class:`empty`},null,8,[`description`]))],64))]),a(ae,{modelValue:h.showRunHistory,"onUpdate:modelValue":g[1]||=e=>h.showRunHistory=e,title:h.selectedTask?.name,direction:`rtl`,size:`min(560px, 92vw)`,class:`run-history-drawer`},{default:f(()=>[h.selectedTask?(m(),s(`div`,$e,[e(`div`,et,[e(`span`,tt,i(h.$t(`common.entity.id`))+`: `+i(h.selectedTask.id),1),a(x,{content:h.selectedTask.id,class:`inline-block shrink-0`},null,8,[`content`])]),e(`div`,nt,[e(`span`,null,i(h.scheduleLabel(h.selectedTask.schedule)),1),e(`span`,null,i(h.selectedTask.template.model),1),e(`span`,null,i(h.$t(`chat.scheduledTasks.runCount`,{count:h.selectedTask.run_count})),1)]),e(`div`,rt,i(h.selectedTask.template.question),1)])):o(``,!0),h.runsLoading?(m(),d(y,{key:1,rows:3,animated:``})):h.runs.length?(m(),s(`div`,it,[(m(!0),s(l,null,p(h.pagedRuns,u=>(m(),s(`div`,{key:u.id,class:n([`run-item`,{clickable:!!u.conversation_id}]),tabindex:u.conversation_id?0:-1,role:u.conversation_id?`button`:void 0,onClick:e=>h.openRun(u),onKeydown:[c(e=>h.openRun(u),[`enter`]),c(t(e=>h.openRun(u),[`prevent`]),[`space`])]},[e(`div`,ot,[e(`div`,st,[e(`span`,ct,i(u.conversation_title||h.formatTime(u.scheduled_at)),1),a(D,{size:`small`,type:h.runTagType(u.status),effect:`dark`,round:``,class:`run-tag`},{default:f(()=>[r(i(h.$t(`chat.scheduledTasks.run.${u.status}`)),1)]),_:2},1032,[`type`])]),u.conversation_preview?(m(),s(`div`,lt,i(u.conversation_preview),1)):o(``,!0),e(`div`,ut,[(m(!0),s(l,null,p(u.run_accounts,(e,t)=>(m(),d(D,{key:`${e.connector_identifier}-${t}`,size:`small`,type:`info`,round:``,class:`run-account-tag`},{default:f(()=>[r(i(h.accountTagText(e)),1)]),_:2},1024))),128)),e(`span`,dt,i(h.formatTime(u.scheduled_at)),1),h.runOutcomeText(u)?(m(),s(`span`,{key:0,class:n(u.status===`failed`?`run-error`:`run-outcome`),title:h.runOutcomeText(u)},i(h.runOutcomeText(u)),11,ft)):o(``,!0)])]),e(`div`,pt,[u.conversation_id?(m(),d(j,{key:0,class:`run-arrow`,size:`1em`,"aria-hidden":`true`,focusable:`false`})):(m(),s(`span`,mt,i(h.$t(`chat.scheduledTasks.noConversation`)),1))])],42,at))),128))])):(m(),d(b,{key:2,description:h.$t(`chat.scheduledTasks.noRuns`)},null,8,[`description`])),!h.runsLoading&&h.runs.length>h.runPageSize?(m(),s(`div`,ht,[a(N,{"current-page":h.runPage,"page-size":h.runPageSize,total:h.runs.length,onChange:h.onRunPageChange},null,8,[`current-page`,`page-size`,`total`,`onChange`])])):o(``,!0)]),_:1},8,[`modelValue`,`title`]),a(W,{modelValue:h.showCreateDialog,"onUpdate:modelValue":g[19]||=e=>h.showCreateDialog=e,title:h.editingTask?h.$t(`chat.scheduledTasks.edit`):h.$t(`chat.scheduledTasks.create`),width:`540px`,"close-on-click-modal":!1,"close-on-press-escape":!h.saving,"show-close":!h.saving,class:`scheduled-task-dialog`},{footer:f(()=>[a(v,{disabled:h.saving,onClick:h.closeTaskDialog},{default:f(()=>[r(i(h.$t(`common.button.cancel`)),1)]),_:1},8,[`disabled`,`onClick`]),a(v,{type:`primary`,loading:h.saving,onClick:h.saveTask},{default:f(()=>[r(i(h.$t(`common.button.confirm`)),1)]),_:1},8,[`loading`,`onClick`])]),default:f(()=>[a(U,{model:h.form,"label-width":`92px`},{default:f(()=>[a(F,{label:h.$t(`chat.scheduledTasks.form.name`)},{default:f(()=>[a(P,{modelValue:h.form.name,"onUpdate:modelValue":g[2]||=e=>h.form.name=e,placeholder:h.$t(`chat.scheduledTasks.form.namePlaceholder`),maxlength:`80`},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`label`]),a(F,{label:h.$t(`chat.scheduledTasks.form.prompt`),required:``},{default:f(()=>[a(P,{modelValue:h.form.question,"onUpdate:modelValue":g[3]||=e=>h.form.question=e,type:`textarea`,rows:6,placeholder:h.$t(`chat.scheduledTasks.form.promptPlaceholder`)},null,8,[`modelValue`,`placeholder`]),e(`div`,gt,i(h.$t(`chat.scheduledTasks.form.promptHint`)),1)]),_:1},8,[`label`]),a(F,{label:h.$t(`chat.scheduledTasks.form.model`)},{default:f(()=>[a(R,{modelValue:h.form.model,"onUpdate:modelValue":g[4]||=e=>h.form.model=e,style:{width:`100%`},filterable:``},{default:f(()=>[(m(!0),s(l,null,p(h.modelGroups,e=>(m(),d(L,{key:e.name,label:e.getDisplayName()},{default:f(()=>[(m(!0),s(l,null,p(e.models,e=>(m(),d(I,{key:e.name,label:e.getDisplayName(),value:e.name},null,8,[`label`,`value`]))),128))]),_:2},1032,[`label`]))),128))]),_:1},8,[`modelValue`])]),_:1},8,[`label`]),a(F,{label:h.$t(`chat.scheduledTasks.form.execution`)},{default:f(()=>[a(B,{modelValue:h.form.execution,"onUpdate:modelValue":g[5]||=e=>h.form.execution=e},{default:f(()=>[a(z,{value:`cloud`},{default:f(()=>[r(i(h.$t(`chat.scheduledTasks.execution.cloud`)),1)]),_:1}),a(C,{content:h.localUnavailableReason,disabled:h.canRunLocally,placement:`top`},{default:f(()=>[e(`span`,_t,[a(z,{value:`local`,disabled:!h.canRunLocally},{default:f(()=>[r(i(h.deviceIdentity?h.$t(`chat.scheduledTasks.execution.localNamed`,{device:h.deviceIdentity.device_name}):h.$t(`chat.scheduledTasks.execution.local`)),1)]),_:1},8,[`disabled`])])]),_:1},8,[`content`,`disabled`])]),_:1},8,[`modelValue`]),e(`div`,vt,i(h.form.execution===`local`?h.$t(`chat.scheduledTasks.form.executionLocalHint`):h.$t(`chat.scheduledTasks.form.executionCloudHint`)),1)]),_:1},8,[`label`]),h.form.execution===`local`?(m(),d(F,{key:0,label:h.$t(`chat.scheduledTasks.form.localTools`)},{default:f(()=>[a(R,{modelValue:h.form.authorizedLocalTools,"onUpdate:modelValue":g[6]||=e=>h.form.authorizedLocalTools=e,multiple:``,filterable:``,style:{width:`100%`},placeholder:h.$t(`chat.scheduledTasks.form.localToolsPlaceholder`)},{default:f(()=>[(m(!0),s(l,null,p(h.localToolSpecs,t=>(m(),d(I,{key:t.name,label:t.name,value:t.name},{default:f(()=>[e(`span`,null,i(t.name),1)]),_:2},1032,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`]),e(`div`,yt,i(h.$t(`chat.scheduledTasks.form.localToolsHint`)),1)]),_:1},8,[`label`])):o(``,!0),a(F,{label:h.$t(`chat.scheduledTasks.form.schedule`)},{default:f(()=>[a(B,{modelValue:h.form.scheduleType,"onUpdate:modelValue":g[7]||=e=>h.form.scheduleType=e},{default:f(()=>[a(z,{value:`interval`},{default:f(()=>[r(i(h.$t(`chat.scheduledTasks.scheduleType.interval`)),1)]),_:1}),a(z,{value:`hourly`},{default:f(()=>[r(i(h.$t(`chat.scheduledTasks.scheduleType.hourly`)),1)]),_:1}),a(z,{value:`daily`},{default:f(()=>[r(i(h.$t(`chat.scheduledTasks.scheduleType.daily`)),1)]),_:1}),a(z,{value:`weekly`},{default:f(()=>[r(i(h.$t(`chat.scheduledTasks.scheduleType.weekly`)),1)]),_:1}),a(z,{value:`cron`},{default:f(()=>[r(i(h.$t(`chat.scheduledTasks.scheduleType.cron`)),1)]),_:1})]),_:1},8,[`modelValue`]),h.schedulePreview?(m(),s(`div`,bt,[a(O,{class:`preview-icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(h.$t(`chat.scheduledTasks.form.schedulePreview`,{text:h.schedulePreview})),1)])):o(``,!0)]),_:1},8,[`label`]),h.form.scheduleType===`interval`?(m(),d(F,{key:1,label:h.$t(`chat.scheduledTasks.scheduleType.interval`)},{default:f(()=>[a(V,{modelValue:h.form.intervalValue,"onUpdate:modelValue":g[8]||=e=>h.form.intervalValue=e,min:1,max:h.intervalMax,step:1,"controls-position":`right`},null,8,[`modelValue`,`max`]),a(R,{modelValue:h.form.intervalUnit,"onUpdate:modelValue":g[9]||=e=>h.form.intervalUnit=e,style:{width:`110px`,"margin-left":`8px`}},{default:f(()=>[a(I,{label:h.$t(`chat.scheduledTasks.form.intervalUnit.minute`),value:`minute`},null,8,[`label`]),a(I,{label:h.$t(`chat.scheduledTasks.form.intervalUnit.hour`),value:`hour`},null,8,[`label`]),a(I,{label:h.$t(`chat.scheduledTasks.form.intervalUnit.day`),value:`day`},null,8,[`label`])]),_:1},8,[`modelValue`]),e(`div`,xt,i(h.$t(`chat.scheduledTasks.form.intervalHint`)),1)]),_:1},8,[`label`])):o(``,!0),h.form.scheduleType===`hourly`?(m(),d(F,{key:2,label:h.$t(`chat.scheduledTasks.form.hourlyMinute`)},{default:f(()=>[a(V,{modelValue:h.form.hourlyMinute,"onUpdate:modelValue":g[10]||=e=>h.form.hourlyMinute=e,min:0,max:59,step:1,"controls-position":`right`},null,8,[`modelValue`]),e(`div`,St,i(h.$t(`chat.scheduledTasks.form.hourlyMinuteHint`)),1)]),_:1},8,[`label`])):o(``,!0),h.form.scheduleType===`daily`?(m(),d(F,{key:3,label:h.$t(`chat.scheduledTasks.form.time`)},{default:f(()=>[a(H,{modelValue:h.form.dailyTime,"onUpdate:modelValue":g[11]||=e=>h.form.dailyTime=e,format:`HH:mm`,"value-format":`HH:mm`},null,8,[`modelValue`]),e(`span`,Ct,i(h.$t(`chat.scheduledTasks.jitterHint`)),1)]),_:1},8,[`label`])):o(``,!0),h.form.scheduleType===`weekly`?(m(),d(F,{key:4,label:h.$t(`chat.scheduledTasks.form.weekday`)},{default:f(()=>[a(R,{modelValue:h.form.weekday,"onUpdate:modelValue":g[12]||=e=>h.form.weekday=e,style:{width:`120px`}},{default:f(()=>[(m(!0),s(l,null,p(h.weekdays,(e,t)=>(m(),d(I,{key:t,label:e,value:t},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`]),a(H,{modelValue:h.form.dailyTime,"onUpdate:modelValue":g[13]||=e=>h.form.dailyTime=e,format:`HH:mm`,"value-format":`HH:mm`,style:{"margin-left":`8px`}},null,8,[`modelValue`])]),_:1},8,[`label`])):o(``,!0),h.form.scheduleType===`cron`?(m(),d(F,{key:5,label:h.$t(`chat.scheduledTasks.form.cron`)},{default:f(()=>[a(P,{modelValue:h.form.cronExpr,"onUpdate:modelValue":g[14]||=e=>h.form.cronExpr=e,placeholder:`0 9 * * *`},null,8,[`modelValue`]),e(`div`,wt,i(h.$t(`chat.scheduledTasks.form.cronHint`)),1)]),_:1},8,[`label`])):o(``,!0),a(F,{label:h.$t(`chat.scheduledTasks.form.skills`)},{default:f(()=>[a(R,{modelValue:h.form.authorizedSkills,"onUpdate:modelValue":g[15]||=e=>h.form.authorizedSkills=e,style:{width:`100%`},multiple:``,filterable:``,"collapse-tags":``,"collapse-tags-tooltip":``,loading:h.skillsLoading,placeholder:h.$t(`chat.scheduledTasks.form.skillsPlaceholder`),onVisibleChange:h.onSkillSelectVisible},{default:f(()=>[(m(!0),s(l,null,p(h.authorizableSkills,t=>(m(),d(I,{key:t.slug,label:h.skillLabel(t),value:t.slug,disabled:!t.connected},{default:f(()=>[e(`div`,Tt,[e(`span`,Et,i(h.skillLabel(t)),1),t.connected?o(``,!0):(m(),s(`span`,Dt,i(h.$t(`chat.scheduledTasks.form.skillMissing`)),1))])]),_:2},1032,[`label`,`value`,`disabled`]))),128))]),_:1},8,[`modelValue`,`loading`,`placeholder`,`onVisibleChange`]),e(`div`,Ot,i(h.$t(`chat.scheduledTasks.form.skillsHint`)),1)]),_:1},8,[`label`]),h.selectedBrowserSkills.length?(m(),d(F,{key:6,label:h.$t(`chat.scheduledTasks.form.browserConnection`),required:``},{default:f(()=>[a(R,{modelValue:h.form.browserConnectionId,"onUpdate:modelValue":g[16]||=e=>h.form.browserConnectionId=e,style:{width:`100%`}},{default:f(()=>[(m(!0),s(l,null,p(h.selectedBrowserConnections,e=>(m(),d(I,{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`]),h.selectedBrowserConnection?(m(),s(`div`,kt,[e(`div`,null,i(h.selectedBrowserConnection.allowed_origins.join(`, `)),1),e(`div`,null,i(h.$t(`chat.scheduledTasks.form.browserEffects`,{effects:h.selectedBrowserConnection.side_effects.join(`, `)})),1),e(`div`,null,i(h.$t(`chat.scheduledTasks.form.authorizationExpires`,{time:h.formatTime(h.form.authorizationExpiresAt)})),1)])):o(``,!0)]),_:1},8,[`label`])):o(``,!0),(m(!0),s(l,null,p(h.accountChoices,e=>(m(),d(F,{key:e.identifier,label:h.$t(`chat.scheduledTasks.form.connectionAccount`,{connector:e.label})},{default:f(()=>[a(R,{modelValue:h.form.connectionAccounts[e.identifier],"onUpdate:modelValue":t=>h.form.connectionAccounts[e.identifier]=t,clearable:``,placeholder:h.$t(`chat.scheduledTasks.form.connectionAccountDefault`),style:{width:`100%`}},{default:f(()=>[(m(!0),s(l,null,p(e.accounts,e=>(m(),d(I,{key:e.connection_id,label:e.is_default?`${e.label||e.account_name} · ${h.$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)),a(F,{label:h.$t(`chat.scheduledTasks.form.mcpServers`)},{default:f(()=>[a(R,{modelValue:h.form.authorizedMcpServers,"onUpdate:modelValue":g[17]||=e=>h.form.authorizedMcpServers=e,style:{width:`100%`},multiple:``,filterable:``,"collapse-tags":``,"collapse-tags-tooltip":``,loading:h.skillsLoading,placeholder:h.$t(`chat.scheduledTasks.form.mcpServersPlaceholder`),onVisibleChange:h.onSkillSelectVisible},{default:f(()=>[(m(!0),s(l,null,p(h.authorizableMcpServers,e=>(m(),d(I,{key:e.slug,label:h.mcpServerLabel(e),value:e.slug},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`loading`,`placeholder`,`onVisibleChange`]),e(`div`,At,i(h.$t(`chat.scheduledTasks.form.mcpServersHint`)),1)]),_:1},8,[`label`]),a(F,{label:h.$t(`chat.scheduledTasks.form.maxTurns`)},{default:f(()=>[a(V,{modelValue:h.form.maxTurns,"onUpdate:modelValue":g[18]||=e=>h.form.maxTurns=e,min:1,max:50,step:1,"controls-position":`right`},null,8,[`modelValue`]),e(`div`,jt,i(h.$t(`chat.scheduledTasks.form.maxTurnsHint`)),1)]),_:1},8,[`label`])]),_:1},8,[`model`])]),_:1},8,[`modelValue`,`title`,`close-on-press-escape`,`show-close`])])}var Nt=U(he,[[`render`,Mt],[`__scopeId`,`data-v-06edef8a`]]);export{Nt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bi as e}from"./index-BdWkx9SU.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{bi as e}from"./index-BdWkx9SU.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{bi as e}from"./index-BdWkx9SU.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{bi as e}from"./index-BdWkx9SU.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{fi as e,gi as t,j as n,k as r,oi as i}from"./index-BdWkx9SU.js";function a(){return new URL(`/connections/popup-return`,i()).toString()}var o=`popup=yes,width=600,height=760,noopener=no,noreferrer=no`;function s(e){let t=window.open(e,`acedata-connect`,o);return t?new Promise(e=>{let n=window.setInterval(()=>{t.closed&&(window.clearInterval(n),e())},500)}):null}async function c(n){return e()?d(n):t()?u(n):l(n)}async function l(e){let t=s(e);if(!t){window.location.href=e;return}await t}async function u(e){let t;try{let r=new Promise(e=>{n.addListener(`browserFinished`,()=>e()).then(e=>{t=e})});await n.open({url:e}),await r}catch(e){console.warn(`in-app browser failed for connector authorize`,e)}finally{await t?.remove()}}async function d(e){let t=r();if(!t?.openAuthorizeConnector)throw Error(`desktop-authorize-unsupported`);let n=new Promise(e=>{window.addEventListener(`focus`,()=>e(),{once:!0})});await t.openAuthorizeConnector(e),await n}export{a as n,c as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bi as e}from"./index-BdWkx9SU.js";var t=e(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bi as e}from"./index-BdWkx9SU.js";var t=e(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bi as e}from"./index-BdWkx9SU.js";var t=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bi as e}from"./index-BdWkx9SU.js";var t=e(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bi as e}from"./index-BdWkx9SU.js";var t=e(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bi as e}from"./index-BdWkx9SU.js";var t=e(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Qi as e}from"./index-BdWkx9SU.js";var t=e(`PushNotifications`,{});export{t as PushNotifications};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bi as e}from"./index-BdWkx9SU.js";var t=e(`gauge`,[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bi as e}from"./index-BdWkx9SU.js";var t=e(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bi as e}from"./index-BdWkx9SU.js";var t=e(`music-2`,[[`circle`,{cx:`8`,cy:`18`,r:`4`,key:`1fc0mg`}],[`path`,{d:`M12 18V2l7 4`,key:`g04rme`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bi as e}from"./index-BdWkx9SU.js";var t=e(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bi as e}from"./index-BdWkx9SU.js";var t=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bi as e}from"./index-BdWkx9SU.js";var t=e(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bi as e}from"./index-BdWkx9SU.js";var t=e(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bi as e}from"./index-BdWkx9SU.js";var t=e(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bi as e}from"./index-BdWkx9SU.js";var t=e(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bi as e}from"./index-BdWkx9SU.js";var t=e(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bi as e}from"./index-BdWkx9SU.js";var t=e(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]);export{t};
|