decocms 4.186.2 → 4.186.3
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/client/assets/{AlertCircle-CzHAhrr6.js → AlertCircle-BfuYC-ez.js} +1 -1
- package/dist/client/assets/{AreaChart-DfvsG2lG.js → AreaChart-Ci-A0btx.js} +1 -1
- package/dist/client/assets/{ArrowUp-DBrHtvfE.js → ArrowUp-Dkm0nOGw.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Difm6SBR.js → ArrowUpRight-CRz_iHAu.js} +1 -1
- package/dist/client/assets/{Check-BMwhITGN.js → Check-CfIRDOap.js} +1 -1
- package/dist/client/assets/{CheckCircle-CBXbZPqe.js → CheckCircle-UqA3DPGv.js} +1 -1
- package/dist/client/assets/{ChevronDown-BLutYvIR.js → ChevronDown-Dfx8ph9o.js} +1 -1
- package/dist/client/assets/{ChevronRight-DcTM74Nx.js → ChevronRight-BXMKC2_M.js} +1 -1
- package/dist/client/assets/{ChevronUp-CnX0DUPn.js → ChevronUp-Dl1S15_f.js} +1 -1
- package/dist/client/assets/{Copy01-0FQhJRTl.js → Copy01-DDRpZJ1h.js} +1 -1
- package/dist/client/assets/{CpuChip01-CQ_lGCKe.js → CpuChip01-DZ_mRqyz.js} +1 -1
- package/dist/client/assets/{CreditCard01-CIVjejYO.js → CreditCard01-DsphY5qx.js} +1 -1
- package/dist/client/assets/{DotsVertical-Bi2Pj2Rx.js → DotsVertical-CHkGthlj.js} +1 -1
- package/dist/client/assets/{Eye-CNJVROK8.js → Eye-mJ_2ivh6.js} +1 -1
- package/dist/client/assets/{FilterLines-C-MayH4t.js → FilterLines-C_1h3ZoJ.js} +1 -1
- package/dist/client/assets/{HardDrive-fDvzj4Z4.js → HardDrive-Bdh7pAUM.js} +1 -1
- package/dist/client/assets/{Key01-DA8DOmXm.js → Key01-BLGPH0DL.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DwCyodVh.js → LayoutLeft-BfIP_r4O.js} +1 -1
- package/dist/client/assets/{LinkExternal01-ZqumszDD.js → LinkExternal01-Ba5xXfz2.js} +1 -1
- package/dist/client/assets/{LogOut01-oRQwceas.js → LogOut01-CvwGYyrH.js} +1 -1
- package/dist/client/assets/{Monitor01-BRfBPH_W.js → Monitor01-3irKmnvO.js} +1 -1
- package/dist/client/assets/{Palette-R1zicu_8.js → Palette-CbPK4Rpt.js} +1 -1
- package/dist/client/assets/{Play-CmYL2KsO.js → Play-54eB0T2G.js} +1 -1
- package/dist/client/assets/{Plus-Ro_Rugpt.js → Plus-CKO7n5Po.js} +1 -1
- package/dist/client/assets/{SearchLg-CI4x084k.js → SearchLg-CrtIkrUb.js} +1 -1
- package/dist/client/assets/{SearchMd-BbbEhgez.js → SearchMd-Bx38R8jT.js} +1 -1
- package/dist/client/assets/{Settings02-BQ_6W_JU.js → Settings02-CDjArU7G.js} +1 -1
- package/dist/client/assets/{Shield01-C3qOqW-P.js → Shield01-DWbsBnKy.js} +1 -1
- package/dist/client/assets/{Star01-DdMpc2WM.js → Star01-DOCStMKN.js} +1 -1
- package/dist/client/assets/{Stars01-CJD9WdTJ.js → Stars01-CYjq7xRF.js} +1 -1
- package/dist/client/assets/{Stars02-5ngV3USt.js → Stars02-BHlXbARl.js} +1 -1
- package/dist/client/assets/{Sun-DWxD9K8n.js → Sun-BLG01WIk.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DBQaK4CG.js → SwitchHorizontal01-25hapEqS.js} +1 -1
- package/dist/client/assets/{Tool01-CCM-RK9J.js → Tool01-DhSkNcMo.js} +1 -1
- package/dist/client/assets/{Tool02-DoDg-nMh.js → Tool02-CQZsqe8L.js} +1 -1
- package/dist/client/assets/{Trash01-Dv4YTeiI.js → Trash01-DFj83XXx.js} +1 -1
- package/dist/client/assets/{TrendUp01-BR_L8L93.js → TrendUp01-DEIKe0v4.js} +1 -1
- package/dist/client/assets/{Upload01-BNGUctEI.js → Upload01-C4AUAXd5.js} +1 -1
- package/dist/client/assets/{User01-Dy3rZ0aR.js → User01-CDS7qDs6.js} +1 -1
- package/dist/client/assets/{Users01-Dv8D_P-8.js → Users01-Dev0Wnwe.js} +1 -1
- package/dist/client/assets/{Users03-BFLEPfzp.js → Users03-cydJxCq2.js} +1 -1
- package/dist/client/assets/{X-BfG7pUZd.js → X-ImXzxvCp.js} +1 -1
- package/dist/client/assets/{XCircle-BAGVWBr6.js → XCircle-BlO0Qy51.js} +1 -1
- package/dist/client/assets/{XClose-BGriJSCO.js → XClose-D7r31LaY.js} +1 -1
- package/dist/client/assets/{Zap-CuquuuMb.js → Zap-C1KfAU0L.js} +1 -1
- package/dist/client/assets/{ZapSquare-eoAx0e5s.js → ZapSquare-CCPTmscL.js} +1 -1
- package/dist/client/assets/{access-gate-D_qQ3O5w.js → access-gate-CT_xPmsE.js} +1 -1
- package/dist/client/assets/{add-section-modal-wxLjrdi1.js → add-section-modal-2h2v7Eix.js} +1 -1
- package/dist/client/assets/{agent-icon-5i6OCL5F.js → agent-icon-DyvgCmDh.js} +1 -1
- package/dist/client/assets/{agents-list-CkVnW9_s.js → agents-list-B7uSsdOW.js} +1 -1
- package/dist/client/assets/{ai-providers-Di--d8ZD.js → ai-providers-DYKYHtHN.js} +1 -1
- package/dist/client/assets/{alert-w_ycSzvU.js → alert-DgOKny_5.js} +1 -1
- package/dist/client/assets/{alert-dialog-WfWDyyhH.js → alert-dialog-qODg0L4t.js} +1 -1
- package/dist/client/assets/{app-editor-mYQBEhVt.js → app-editor-B0XFGNw1.js} +1 -1
- package/dist/client/assets/{auth-B-H82oVn.js → auth-CzoWoS_Q.js} +1 -1
- package/dist/client/assets/{auth-catchall-__oUb7VD.js → auth-catchall-Do2b1Q5s.js} +1 -1
- package/dist/client/assets/{auth-entry-BjA_M-t_.js → auth-entry-C1cRB-Mt.js} +1 -1
- package/dist/client/assets/{auth-split-layout-R7Cxbaqe.js → auth-split-layout-BpxjTMnc.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-j7JC5dgx.js → authenticate-and-persist-oauth-_aMCtvov.js} +1 -1
- package/dist/client/assets/{automation-list-row-DYdMB6iS.js → automation-list-row-qM5LBHmY.js} +1 -1
- package/dist/client/assets/{automation-runs-CQwGBeB-.js → automation-runs-BAj-VvKU.js} +1 -1
- package/dist/client/assets/{automations-Cm8WmhnT.js → automations-DYJT_-Df.js} +1 -1
- package/dist/client/assets/{avatar-B4WZZi9O.js → avatar-BzQ7WmXz.js} +1 -1
- package/dist/client/assets/{badge-CO3kByaZ.js → badge-0OderU4R.js} +1 -1
- package/dist/client/assets/{billing-Dc6_mmjP.js → billing-sUUWLMkH.js} +1 -1
- package/dist/client/assets/{block-document-CVqPMrIE.js → block-document-B9MqZDy8.js} +1 -1
- package/dist/client/assets/{brand-context-GAWNcchS.js → brand-context-Cd1XITlN.js} +1 -1
- package/dist/client/assets/{buckets-DV19hkuZ.js → buckets-BvDdA7ec.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-Dm0XLl8t.js → bulk-category-panel-DEFprjKz.js} +1 -1
- package/dist/client/assets/{calendar-CoGJ_oVh.js → calendar-DzZPxWQd.js} +1 -1
- package/dist/client/assets/{capability-load-error-CDL0nVSP.js → capability-load-error-CrHwHuDV.js} +1 -1
- package/dist/client/assets/{card-CdJSU8vr.js → card-DmKStgES.js} +1 -1
- package/dist/client/assets/{category-editor-W6tm7Ykr.js → category-editor-CA0KjE4N.js} +1 -1
- package/dist/client/assets/{chat-context-BRG2mTLS.js → chat-context-BTbaCF1T.js} +1 -1
- package/dist/client/assets/{checkbox-VRqoAnNP.js → checkbox-BZRzofDI.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DOj7bhhA.js → cli-auth-success-GLWllWTp.js} +1 -1
- package/dist/client/assets/{collection-detail-DOFmzk0Q.js → collection-detail-BgGn5qWk.js} +1 -1
- package/dist/client/assets/{collection-display-button-DIwMt19t.js → collection-display-button-1iQBb-oM.js} +1 -1
- package/dist/client/assets/{collection-search-Ttix_hvO.js → collection-search-C1t7YBY3.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DatbUTtn.js → collection-table-wrapper-BoIzuQ13.js} +1 -1
- package/dist/client/assets/{collection-tabs-DCuuZvcU.js → collection-tabs-DkKbZNxK.js} +1 -1
- package/dist/client/assets/{command-DzYbwMY0.js → command-M0ieFwmm.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-GT_73BPE.js → commerce-onboarding-BZW1JyaC.js} +1 -1
- package/dist/client/assets/{companions-core-PKrSbaze.js → companions-core-B5XTmC8f.js} +1 -1
- package/dist/client/assets/{connect-BlS6fDvq.js → connect-DZ11YKFe.js} +1 -1
- package/dist/client/assets/{connection-DeKOyYCe.js → connection-Vbw7_lND.js} +1 -1
- package/dist/client/assets/{connection-card-D9ACpI6n.js → connection-card-DuKkmMXb.js} +1 -1
- package/dist/client/assets/{connection-detail-YoMnwCGB.js → connection-detail-27wuK5wq.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-B2do0MQh.js → connection-form-helpers-CAyGL1Rc.js} +1 -1
- package/dist/client/assets/{connections-54YkSDnq.js → connections-CqIOOtH4.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-B4lV_pkT.js → decopilot-sse-pool-Clmp1BFL.js} +1 -1
- package/dist/client/assets/{dialog-DQWMOcko.js → dialog-B5y5hFnb.js} +1 -1
- package/dist/client/assets/{domain-settings-U4W1yTMA.js → domain-settings-B5CZtkpJ.js} +1 -1
- package/dist/client/assets/{drawer-CaAWxgE_.js → drawer-BZTnQot8.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BrspSm3T.js → dropdown-menu-CHizDN5S.js} +1 -1
- package/dist/client/assets/{empty-state-Di4I9IOD.js → empty-state-DQHHZFK3.js} +1 -1
- package/dist/client/assets/{extract-connection-data-hkN_mOmy.js → extract-connection-data-DveMzJnj.js} +1 -1
- package/dist/client/assets/{file-explorer-Bk6wbb2K.js → file-explorer-B-6UIupX.js} +1 -1
- package/dist/client/assets/{form-CyEJbmjQ.js → form-Bq1A_P9t.js} +1 -1
- package/dist/client/assets/{general-Beu18HTM.js → general-AzcYBHSb.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CKJmsZJv.js → github-repo-picker-CT456aBC.js} +1 -1
- package/dist/client/assets/{hooks-DHFul8ca.js → hooks-_oUacd7x.js} +1 -1
- package/dist/client/assets/{index-Cuug8jd7.js → index-BE7mJhFy.js} +3 -3
- package/dist/client/assets/{index-CnssvP1E.js → index-BUxqhuMH.js} +3 -3
- package/dist/client/assets/{index-DL8v59CJ.js → index-BcXDjqbG.js} +1 -1
- package/dist/client/assets/{index-CoapyGFA.js → index-BsA-EPSZ.js} +1 -1
- package/dist/client/assets/{index-C65_levZ.js → index-C3N6oAxN.js} +1 -1
- package/dist/client/assets/{index-B8kihcrU.js → index-D1QykbrQ.js} +5 -5
- package/dist/client/assets/{index-CT5lSHsd.js → index-DAM0y29_.js} +1 -1
- package/dist/client/assets/index-DHCkR8xR.css +1 -0
- package/dist/client/assets/{index-Cxhypuyo.js → index-DmcNl6lo.js} +1 -1
- package/dist/client/assets/{index-KYX7LuWR.js → index-FQ8XLQdc.js} +1 -1
- package/dist/client/assets/{index-hERXLT2s.js → index-NuvNvWBH.js} +1 -1
- package/dist/client/assets/{index-DjfX2K1C.js → index-jM_Cebcw.js} +1 -1
- package/dist/client/assets/{index-redirect-BAqq5-dr.js → index-redirect-DZYpYiG4.js} +1 -1
- package/dist/client/assets/{index-CYVUgbiC.js → index-wxJpDGRQ.js} +1 -1
- package/dist/client/assets/{input-DXhpVfJR.js → input-SHG4kEt8.js} +1 -1
- package/dist/client/assets/{integration-icon-CDNH_447.js → integration-icon-BPgt71bM.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-C6UChNCn.js → invite-member-dialog-BMdHwRKu.js} +1 -1
- package/dist/client/assets/{label-BQAPYpl9.js → label-BoGYufMX.js} +1 -1
- package/dist/client/assets/{layout-DaqEbepG.js → layout-t1l41lNQ.js} +1 -1
- package/dist/client/assets/{login-BUXngS89.js → login-CbQVX_Ku.js} +1 -1
- package/dist/client/assets/{mcp-oauth-YbTKUbfv.js → mcp-oauth-h1LtXs-F.js} +1 -1
- package/dist/client/assets/{members-D6JCoUOa.js → members-DtiRSiv7.js} +1 -1
- package/dist/client/assets/{monaco-editor-CkHuDiB4.js → monaco-editor-AdkIaxez.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Bw2V65FM.js → monitoring-stats-row-BH5n-y90.js} +1 -1
- package/dist/client/assets/{multi-select-D4Z78k2n.js → multi-select-CC0lBwV8.js} +1 -1
- package/dist/client/assets/{oauth-callback-wYnJpAVM.js → oauth-callback-Bdfoq5pi.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Dn0DBncC.js → oauth-callback-ai-provider-DqX6IkBf.js} +1 -1
- package/dist/client/assets/{onboarding-BeWN2rdF.js → onboarding-B2fYGhas.js} +1 -1
- package/dist/client/assets/{org-layout-BM4IxkKa.js → org-layout-Nbsmhfuf.js} +1 -1
- package/dist/client/assets/{organization-choice-CIidmFuH.js → organization-choice-UHJGNPVD.js} +1 -1
- package/dist/client/assets/{orgs-DeoWjAXr.js → orgs-rmUP3nva.js} +1 -1
- package/dist/client/assets/{page-seo-form-D8dMsdHr.js → page-seo-form-DSI5Z6Xm.js} +1 -1
- package/dist/client/assets/{popover-DYdwyBTg.js → popover-Bu5EGKLW.js} +1 -1
- package/dist/client/assets/{post-editor-BdDdpNQu.js → post-editor-D_0v5MIW.js} +1 -1
- package/dist/client/assets/{primitives-8LRj2IuU.js → primitives-zMJeNtQk.js} +1 -1
- package/dist/client/assets/{profile-9Mx2DBRz.js → profile-Bh_w10qc.js} +1 -1
- package/dist/client/assets/project-app-view-64N_hCxT.js +1 -0
- package/dist/client/assets/record-editor-CfyDRkai.js +1 -0
- package/dist/client/assets/{redirect-editor-oaFF-keF.js → redirect-editor-DtpQyamh.js} +1 -1
- package/dist/client/assets/{registry-layout-CdR4k8dc.js → registry-layout-BNL3rWwh.js} +1 -1
- package/dist/client/assets/registry-wwH7QUtH.js +2 -0
- package/dist/client/assets/{reports-Dqghkvg0.js → reports-TRcjEu_G.js} +1 -1
- package/dist/client/assets/{require-capability-B_1QWSj5.js → require-capability-D_i84gfM.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Do4z8fey.js → required-auth-layout-DduipUtL.js} +1 -1
- package/dist/client/assets/{reset-password-Bbz5yR7K.js → reset-password-DWRCcb4-.js} +1 -1
- package/dist/client/assets/{roles-CvBgQaaU.js → roles-CBcjWl-7.js} +1 -1
- package/dist/client/assets/{search-input-BQlH8Ixe.js → search-input-CY-7-6Mr.js} +1 -1
- package/dist/client/assets/{secrets-CGw3MbTg.js → secrets-kNdWJ7Jo.js} +1 -1
- package/dist/client/assets/sections-editor-CTSmdAom.js +2 -0
- package/dist/client/assets/{select-B5znG0Y1.js → select-DE2zqg5r.js} +1 -1
- package/dist/client/assets/{select-model-BkPkSQNk.js → select-model-D2N9Z9Ec.js} +1 -1
- package/dist/client/assets/{self-tool-result-CR63nIK5.js → self-tool-result-DNH6ZaMF.js} +1 -1
- package/dist/client/assets/{seo-editor-Cb0Y9AY1.js → seo-editor-y4WzGjJn.js} +1 -1
- package/dist/client/assets/{settings-layout-BNo2qt6b.js → settings-layout-DfS5HS2T.js} +1 -1
- package/dist/client/assets/{settings-section-BI76S-ZK.js → settings-section-DBkfk9BB.js} +1 -1
- package/dist/client/assets/{shell-controls-DsJFVhA4.js → shell-controls-CPQdyoX4.js} +1 -1
- package/dist/client/assets/{shell-layout-DZReMwJ6.js → shell-layout-DbBB0LUI.js} +1 -1
- package/dist/client/assets/{sidebar-BIAbDN30.js → sidebar-jMHKufA-.js} +1 -1
- package/dist/client/assets/{skeleton-D0WX-Zws.js → skeleton-AvMrml5O.js} +1 -1
- package/dist/client/assets/{spinner-pPCTrTnr.js → spinner-BB2hby2t.js} +1 -1
- package/dist/client/assets/{sso-ChAfsvMM.js → sso-CFR5Du-O.js} +1 -1
- package/dist/client/assets/{store-bPz4hvdF.js → store-Gd8umnDO.js} +1 -1
- package/dist/client/assets/store-registry-BhGNNIkp.js +2 -0
- package/dist/client/assets/{studio-tools-C08UjHsr.js → studio-tools-DXVCK0sW.js} +1 -1
- package/dist/client/assets/{switch-DYWfZ4oI.js → switch-BEKqgb1f.js} +1 -1
- package/dist/client/assets/{tab-id-DFGnzFYn.js → tab-id-xREOP0to.js} +1 -1
- package/dist/client/assets/{table-CAhOdKdH.js → table-pV8D0u2m.js} +1 -1
- package/dist/client/assets/{tabs-DsPtL2iD.js → tabs-C97TV6wP.js} +1 -1
- package/dist/client/assets/{textarea-9vzfIjDG.js → textarea-BIsK3TvL.js} +1 -1
- package/dist/client/assets/{toggle-group-DY0VwFSy.js → toggle-group-B_DzWSgI.js} +1 -1
- package/dist/client/assets/{toolbar-BBy3sR0H.js → toolbar-CKmQWdVF.js} +1 -1
- package/dist/client/assets/{tooltip-D09V-b-D.js → tooltip-B-gahmZ0.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Cg8eqOhK.js → use-ai-providers-Db5LNUJN.js} +1 -1
- package/dist/client/assets/{use-automations-CjCcOCBs.js → use-automations-DfD-q04Z.js} +1 -1
- package/dist/client/assets/{use-autosave-CzDpaxid.js → use-autosave-Dbj26Vw8.js} +1 -1
- package/dist/client/assets/{use-capability-BZtV5fjq.js → use-capability-DbPUHhbH.js} +1 -1
- package/dist/client/assets/{use-clock-tick-j7al6WgB.js → use-clock-tick-CU7u0LpL.js} +1 -1
- package/dist/client/assets/{use-connection-DLCNMhT_.js → use-connection-Di6VWa3L.js} +1 -1
- package/dist/client/assets/{use-copy-K8bJ1Pv1.js → use-copy-B64dHmlD.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-mSYhJKd_.js → use-create-virtual-mcp-BL707Luj.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DyyWFfWP.js → use-debounced-autosave-DsmYOWfj.js} +1 -1
- package/dist/client/assets/{use-debounced-value-f6dEbPtS.js → use-debounced-value-BMDLplmP.js} +1 -1
- package/dist/client/assets/{use-deco-credits-B0sL3XCm.js → use-deco-credits-BKsepuUx.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-C2Oegu9x.js → use-decopilot-events-CZNjfghP.js} +1 -1
- package/dist/client/assets/{use-delete-connection-V5PIhb7n.js → use-delete-connection-CtqbbhKd.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-2G5IDOTX.js → use-deployment-admin-D-SiWD8V.js} +1 -1
- package/dist/client/assets/{use-file-configs-ZOIFLESr.js → use-file-configs-B_bqkDL5.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BOup92L2.js → use-infinite-scroll-CmpA7aNk.js} +1 -1
- package/dist/client/assets/{use-join-requests-DJLV4CSV.js → use-join-requests-D3PioMCU.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BDN-FEcc.js → use-mcp-client-B6rroWiF.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-JePK22Oi.js → use-mcp-tools-gs2BaxE7.js} +1 -1
- package/dist/client/assets/{use-members-B28NMHu7.js → use-members-Cw9Cvkx3.js} +1 -1
- package/dist/client/assets/{use-mobile-DFoMyuD6.js → use-mobile-Fq3m92SB.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CP2_58b3.js → use-navigate-to-agent-Bpm8yGLA.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-DefE1f9-.js → use-open-billing-url-CAxNtzL4.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BUZkHhRH.js → use-org-auth-client-Bxh7oYIw.js} +1 -1
- package/dist/client/assets/{use-org-sso-B1fpUBuH.js → use-org-sso-CHpy2ljn.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DwJh3T-9.js → use-organization-roles-BhcqsdWg.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DtUf52ZO.js → use-organization-settings-B1oXAg8v.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DTbTMRqC.js → use-registry-connections-CMu53VQD.js} +1 -1
- package/dist/client/assets/{use-secrets-B8PKKgDf.js → use-secrets-DuSGJa4J.js} +1 -1
- package/dist/client/assets/{use-status-sounds--E_CrJ-R.js → use-status-sounds--hLMjyxJ.js} +1 -1
- package/dist/client/assets/{use-tags-y6Q0JJyB.js → use-tags-0YzsYO3f.js} +1 -1
- package/dist/client/assets/{use-view-mode-DRR58QSp.js → use-view-mode-B1gvmNYJ.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-PtirDXqx.js → use-virtual-mcp-SgXDkg75.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-ZHHCL_4m.js +1 -0
- package/dist/client/assets/{useRouterState-DwCLyiBJ.js → useRouterState-CrL8ZHBU.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-k1g0FdzT.js +1 -0
- package/dist/client/assets/{users-B-7FmAt0.js → users-Cv1B39Hm.js} +1 -1
- package/dist/client/assets/{variant-calendar-CPb-l2DG.js → variant-calendar-BWhYWq7j.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-lJepTQIW.js → view-mode-toggle-iaC8KMna.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/index-CUIiLem4.css +0 -1
- package/dist/client/assets/project-app-view-CGqpRmN-.js +0 -1
- package/dist/client/assets/record-editor-Kz5MxvVB.js +0 -1
- package/dist/client/assets/registry-D41BL0Zp.js +0 -2
- package/dist/client/assets/sections-editor-BShs3A-H.js +0 -2
- package/dist/client/assets/store-registry-D4rRXf4e.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DD0TdbWx.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Dx_jU7Uo.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
2
|
-
import{G as Sa,r as S,c as U,x as Ca,K as xe,F as Me,o as pn,e as Ye,n as Ze,aw as Te,ae as sn,a as Ro,t as St,ar as ja,m as Z,j as c,b as oe,aW as Eo,aX as Io,aY as _o,aZ as Ao,a_ as Bo,a$ as Oo,b0 as $o,b1 as Mo,b2 as zo,B as Ae,y as Ta,av as Zr,E as Na,d as Lo,p as Mi,k as Ts,u as Da,aF as Ra}from"./index-Cuug8jd7.js";import{g as _t}from"./get-initials-D-f_fDFw.js";import{A as At}from"./avatar-B4WZZi9O.js";import{aC as Ns,ae as Ea,af as Ia,ah as _a,a5 as Aa,aD as Ba,y as Oa,n as $a,aE as Jr,aF as Ma,W as ei,d as Po,ad as za,g as Fo,k as ur,aG as La,aA as Tr,ar as ti,Z as Yn,aH as Pa,ay as Fa}from"./agent-icon-5i6OCL5F.js";import{i as Uo}from"./SwitchHorizontal01-DBQaK4CG.js";import{s as ws}from"./Plus-Ro_Rugpt.js";import{i as cn}from"./X-BfG7pUZd.js";import{a as Xn,b as xs,P as bs}from"./popover-DYdwyBTg.js";import{a as Ct,i as qo,D as dn,b as un,c as fn,d as ls,e as as,f as cs}from"./dropdown-menu-BrspSm3T.js";import{W as Ua,m as zi,S as Ko,C as Ho,g as qa,u as Ka,h as Ha,Q as Wa,j as Va,a as Qa}from"./use-mcp-client-BDN-FEcc.js";import{u as Ga,G as $r,a as Xa}from"./github-repo-picker-CKJmsZJv.js";import{e as Jn,d as es,b as ts,h as ni,a as si,c as ri}from"./dialog-DQWMOcko.js";import{b as Ya,u as Za}from"./use-connection-DLCNMhT_.js";import{b as Ja}from"./provision-repo-scoped-github-connection-B2s3ApVy.js";import{a as ec}from"./authenticate-and-persist-oauth-j7JC5dgx.js";import{e as tc}from"./extract-connection-data-hkN_mOmy.js";import{u as Wo}from"./use-members-B28NMHu7.js";import{u as gn}from"./studio-tools-C08UjHsr.js";import{t as nc,T as sc,a as rc,S as $e,i as Vo,b as Li}from"./decopilot-sse-pool-B4lV_pkT.js";import{u as ic}from"./use-decopilot-events-C2Oegu9x.js";import{a as ii}from"./format-time-BnbuEtat.js";import{i as fr}from"./AlertCircle-CzHAhrr6.js";import{i as mn}from"./CheckCircle-CBXbZPqe.js";import{i as oc}from"./DotsVertical-Bi2Pj2Rx.js";import{s as lc}from"./Eye-CNJVROK8.js";import{u as Qo,a as ac,b as cc}from"./use-tags-y6Q0JJyB.js";import{o as dc,P as rn,a as oi,D as uc,p as fc,q as hc,S as Vt,r as pc,T as Go,F as Nr,s as ps,v as gc,w as mc,x as Xo,N as xc,k as li,y as bc,z as yc,d as Yo,n as kc,A as Yt,B as vc,G as ds,H as wc,I as Zo,R as Jo,m as el,J as tl,K as Sc,L as Cc,Q as jc,e as Tc,u as Nc,f as Dc,j as Rc,C as nl,c as Ec}from"./calendar-CoGJ_oVh.js";import{S as Vn}from"./skeleton-D0WX-Zws.js";import{u as Ic}from"./use-copy-K8bJ1Pv1.js";import{i as Ds}from"./Check-BMwhITGN.js";import{i as sl}from"./ChevronRight-DcTM74Nx.js";import{a as _c}from"./Copy01-0FQhJRTl.js";import{n as Ac,i as rl}from"./Tool02-DoDg-nMh.js";import{n as Gs}from"./LinkExternal01-ZqumszDD.js";import{b as il,i as ol}from"./XCircle-BAGVWBr6.js";import{s as ll}from"./Trash01-Dv4YTeiI.js";import{u as Pi,a as Bc}from"./use-organization-settings-DtUf52ZO.js";import{d as ai,a as ci,c as en,b as ns,C as di,e as ui}from"./command-DzYbwMY0.js";import{s as Mr}from"./User01-Dy3rZ0aR.js";import{i as Oc}from"./ArrowUp-DBrHtvfE.js";import{i as $c}from"./Tool01-CCM-RK9J.js";import{u as Mc}from"./use-open-billing-url-DefE1f9-.js";import{f as zc}from"./tab-id-DFGnzFYn.js";import{u as zr}from"./companions-core-PKrSbaze.js";import{d as Lc,b as Pc,f as Fc,g as Uc,a as qc,D as Kc}from"./drawer-CaAWxgE_.js";import{t as fi}from"./ChevronDown-BLutYvIR.js";import{i as al}from"./FilterLines-C-MayH4t.js";import{s as Hc}from"./TrendUp01-BR_L8L93.js";import{u as Wc}from"./shell-layout-DZReMwJ6.js";import{b as Vc}from"./hooks-DHFul8ca.js";const Qc="[SUBSCRIPTION_REQUIRED]";function Gc(t){return t?.message.startsWith(Qc)?t.message.includes("used its free task executions")?"trial_exhausted":t.message.includes("used its monthly task executions")?"monthly_exhausted":t.message.includes("reached its execution limit")?"runs_exhausted":null:null}function Xc(t){return!t||!t.content||t.content.length===0?!0:t.content.every(e=>e.type==="paragraph"?!e.content||e.content.length===0?!0:e.content.every(n=>n.type==="hardBreak"||n.type==="text"&&(!n.text||n.text.trim()==="")):!1)}const Hm="__home__";function hi(t,e){return Sa.chatDraft(t,e)}function Yc(t){if(!t)return null;let e;try{e=JSON.parse(t)}catch{return null}if(!e||typeof e!="object"||typeof e.updatedAt!="number")return null;const n=e.tiptapDoc;return!n||typeof n!="object"||n.type!=="doc"||!Array.isArray(n.content)?null:n}function Zc(t,e,n,r,s){const i=hi(e,n);if(Xc(r)){t.removeItem(i);return}const o={tiptapDoc:r,updatedAt:Date.now()},l=JSON.stringify(o);try{t.setItem(i,l)}catch(a){if(Jc(a)){const d=new TextEncoder().encode(l).byteLength;s?.onQuotaExceeded?.({docSizeBytes:d});return}throw a}}function Wm(t,e,n){const r=hi(e,n),s=t.getItem(r),i=Yc(s);return s!==null&&i===null&&t.removeItem(r),i}function Vm(t,e,n){t.removeItem(hi(e,n))}function Jc(t){if(!t||typeof t!="object")return!1;const e=t.name;return e==="QuotaExceededError"||e==="NS_ERROR_DOM_QUOTA_REACHED"}var ed=dc;function td(t){var e;const{char:n,allowSpaces:r,allowToIncludeChar:s,allowedPrefixes:i,startOfLine:o,$position:l}=t,a=r&&!s,d=hc(n),f=new RegExp(`\\s${d}$`),h=o?"^":"",p=s?"":d,u=a?new RegExp(`${h}${d}.*?(?=\\s${p}|$)`,"gm"):new RegExp(`${h}(?:^)?${d}[^\\s${p}]*`,"gm"),m=((e=l.nodeBefore)==null?void 0:e.isText)&&l.nodeBefore.text;if(!m)return null;const y=l.pos-m.length,b=Array.from(m.matchAll(u)).pop();if(!b||b.input===void 0||b.index===void 0)return null;const g=b.input.slice(Math.max(0,b.index-1),b.index),x=new RegExp(`^[${i?.join("")}\0]?$`).test(g);if(i!==null&&!x)return null;const k=y+b.index;let v=k+b[0].length;return a&&f.test(m.slice(v-1,v+1))&&(b[0]+=" ",v+=1),k<l.pos&&v>=l.pos?{range:{from:k,to:v},query:b[0].slice(n.length),text:b[0]}:null}var nd=new rn("suggestion");function sd({pluginKey:t=nd,editor:e,char:n="@",allowSpaces:r=!1,allowToIncludeChar:s=!1,allowedPrefixes:i=[" "],startOfLine:o=!1,decorationTag:l="span",decorationClass:a="suggestion",decorationContent:d="",decorationEmptyClass:f="is-empty",command:h=()=>null,items:p=()=>[],render:u=()=>({}),allow:m=()=>!0,findSuggestionMatch:y=td,shouldShow:b}){let g;const x=u?.(),k=()=>{const C=e.state.selection.$anchor.pos,T=e.view.coordsAtPos(C),{top:D,right:E,bottom:N,left:I}=T;try{return new DOMRect(I,D,E-I,N-D)}catch{return null}},v=(C,T)=>T?()=>{const D=t.getState(e.state),E=D?.decorationId,N=C.dom.querySelector(`[data-decoration-id="${E}"]`);return N?.getBoundingClientRect()||null}:k;function w(C,T){var D;try{const N=t.getState(C.state),I=N?.decorationId?C.dom.querySelector(`[data-decoration-id="${N.decorationId}"]`):null,A={editor:e,range:N?.range||{from:0,to:0},query:N?.query||null,text:N?.text||null,items:[],command:_=>h({editor:e,range:N?.range||{from:0,to:0},props:_}),decorationNode:I,clientRect:v(C,I)};(D=x?.onExit)==null||D.call(x,A)}catch{}const E=C.state.tr.setMeta(T,{exit:!0});C.dispatch(E)}const j=new oi({key:t,view(){return{update:async(C,T)=>{var D,E,N,I,A,_,z;const R=(D=this.key)==null?void 0:D.getState(T),O=(E=this.key)==null?void 0:E.getState(C.state),L=R.active&&O.active&&R.range.from!==O.range.from,B=!R.active&&O.active,F=R.active&&!O.active,$=!B&&!F&&R.query!==O.query,W=B||L&&$,K=$||L,Q=F||L&&$;if(!W&&!K&&!Q)return;const G=Q&&!W?R:O,Y=C.dom.querySelector(`[data-decoration-id="${G.decorationId}"]`);g={editor:e,range:G.range,query:G.query,text:G.text,items:[],command:ee=>h({editor:e,range:G.range,props:ee}),decorationNode:Y,clientRect:v(C,Y)},W&&((N=x?.onBeforeStart)==null||N.call(x,g)),K&&((I=x?.onBeforeUpdate)==null||I.call(x,g)),(K||W)&&(g.items=await p({editor:e,query:G.query})),Q&&((A=x?.onExit)==null||A.call(x,g)),K&&((_=x?.onUpdate)==null||_.call(x,g)),W&&((z=x?.onStart)==null||z.call(x,g))},destroy:()=>{var C;g&&((C=x?.onExit)==null||C.call(x,g))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(C,T,D,E){const{isEditable:N}=e,{composing:I}=e.view,{selection:A}=C,{empty:_,from:z}=A,R={...T},O=C.getMeta(t);if(O&&O.exit)return R.active=!1,R.decorationId=null,R.range={from:0,to:0},R.query=null,R.text=null,R;if(R.composing=I,N&&(_||e.view.composing)){(z<T.range.from||z>T.range.to)&&!I&&!T.composing&&(R.active=!1);const L=y({char:n,allowSpaces:r,allowToIncludeChar:s,allowedPrefixes:i,startOfLine:o,$position:A.$from}),B=`id_${Math.floor(Math.random()*4294967295)}`;L&&m({editor:e,state:E,range:L.range,isActive:T.active})&&(!b||b({editor:e,range:L.range,query:L.query,text:L.text,transaction:C}))?(R.active=!0,R.decorationId=T.decorationId?T.decorationId:B,R.range=L.range,R.query=L.query,R.text=L.text):R.active=!1}else R.active=!1;return R.active||(R.decorationId=null,R.range={from:0,to:0},R.query=null,R.text=null),R}},props:{handleKeyDown(C,T){var D,E,N,I;const{active:A,range:_}=j.getState(C.state);if(!A)return!1;if(T.key==="Escape"||T.key==="Esc"){const R=j.getState(C.state),O=(D=g?.decorationNode)!=null?D:null,L=O??(R?.decorationId?C.dom.querySelector(`[data-decoration-id="${R.decorationId}"]`):null);if(((E=x?.onKeyDown)==null?void 0:E.call(x,{view:C,event:T,range:R.range}))||!1)return!0;const F={editor:e,range:R.range,query:R.query,text:R.text,items:[],command:$=>h({editor:e,range:R.range,props:$}),decorationNode:L,clientRect:L?()=>L.getBoundingClientRect()||null:null};return(N=x?.onExit)==null||N.call(x,F),w(C,t),!0}return((I=x?.onKeyDown)==null?void 0:I.call(x,{view:C,event:T,range:_}))||!1},decorations(C){const{active:T,range:D,decorationId:E,query:N}=j.getState(C);if(!T)return null;const I=!N?.length,A=[a];return I&&A.push(f),uc.create(C.doc,[fc.inline(D.from,D.to,{nodeName:l,class:A.join(" "),"data-decoration-id":E,"data-decoration-content":d})])}}});return j}function rd(t){const e=U.c(24),{editor:n,query:r,items:s,onSelect:i,onClose:o}=t,[l,a]=S.useState(0),d=S.useRef(s),f=S.useRef(l),h=S.useRef(i),p=S.useRef(o),u=S.useDeferredValue(r);let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{a(0)},e[0]=m):m=e[0];let y;e[1]!==u?(y=[u],e[1]=u,e[2]=y):y=e[2],S.useEffect(m,y);let b,g;e[3]!==s.length||e[4]!==l?(b=()=>{l>=s.length&&s.length>0&&a(0)},g=[s.length,l],e[3]=s.length,e[4]=l,e[5]=b,e[6]=g):(b=e[5],g=e[6]),S.useEffect(b,g);let x,k;e[7]!==s?(x=()=>{d.current=s},k=[s],e[7]=s,e[8]=x,e[9]=k):(x=e[8],k=e[9]),S.useEffect(x,k);let v,w;e[10]!==l?(v=()=>{f.current=l},w=[l],e[10]=l,e[11]=v,e[12]=w):(v=e[11],w=e[12]),S.useEffect(v,w);let j,C;e[13]!==i?(C=()=>{h.current=i},j=[i],e[13]=i,e[14]=j,e[15]=C):(j=e[14],C=e[15]),S.useEffect(C,j);let T,D;e[16]!==o?(T=()=>{p.current=o},D=[o],e[16]=o,e[17]=T,e[18]=D):(T=e[17],D=e[18]),S.useEffect(T,D);let E,N;e[19]!==n?(E=()=>{if(n?.isDestroyed)return;let _;try{_=n.view.dom}catch{return}if(!_)return;const z=O=>{const L=d.current;if(!L.length)return!1;const B=()=>a($=>($+1)%L.length),F=()=>a($=>($-1+L.length)%L.length);switch(O.key){case"ArrowUp":return O.preventDefault(),F(),!0;case"ArrowDown":return O.preventDefault(),B(),!0;case"Tab":return O.preventDefault(),O.shiftKey?F():B(),!0;case"Home":return O.preventDefault(),a(0),!0;case"End":return O.preventDefault(),a(L.length-1),!0;case"Enter":{if(O.isComposing)return!1;O.preventDefault();const $=f.current;return $!==-1&&L[$]&&h.current?.(L[$],$),!0}case"Escape":return O.preventDefault(),p.current?.(),!0;default:return!1}},R=O=>{z(O)};return _.addEventListener("keydown",R,!0),()=>{_?.removeEventListener("keydown",R,!0)}},N=[n],e[19]=n,e[20]=E,e[21]=N):(E=e[20],N=e[21]),S.useEffect(E,N);const I=s.length?l:void 0;let A;return e[22]!==I?(A={selectedIndex:I,setSelectedIndex:a},e[22]=I,e[23]=A):A=e[23],A}function id(t,e){switch(e.type){case"SET_SELECTED_ITEM":return{...t,selectedItem:e.payload};case"ON_START":return{...t,open:!0,selectedItem:null,element:e.payload.element,query:e.payload.query,range:e.payload.range};case"ON_UPDATE":return{...t,element:e.payload.element,query:e.payload.query,range:e.payload.range};case"ON_EXIT":return{open:!1,element:null,query:"",range:null,selectedItem:null};default:return t}}const od=S.createContext(void 0);function ld(){const t=S.useContext(od);if(!t)throw new Error("useSuggestionContext must be used within a SuggestionContext.Provider");return t}function Qm(t){const e=U.c(16),{editor:n,char:r,pluginKey:s,allow:i,onOpenChange:o}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={open:!1,element:null,query:"",range:null,selectedItem:null},e[0]=l):l=e[0];const[a,d]=S.useReducer(id,l);let f;e[1]!==o?(f=y=>{o?.(y)},e[1]=o,e[2]=f):f=e[2];const h=S.useEffectEvent(f);let p;e[3]!==r||e[4]!==i||e[5]!==n||e[6]!==h||e[7]!==s?(p=()=>{if(n?.isDestroyed)return;const y=s instanceof rn?s:new rn(s);n.state.plugins.find(x=>x.spec.key===y)&&n.unregisterPlugin(y);const g=sd({pluginKey:y,editor:n,char:r,allow(x){const k=n.state.doc.resolve(x.range.from);for(let v=k.depth;v>0;v--)if(k.node(v).type.name==="image")return!1;return!(i&&!i(x))},command(){},render:()=>({onStart:x=>{d({type:"ON_START",payload:{element:x.decorationNode??null,query:x.query,range:x.range}}),h(!0)},onUpdate:x=>{d({type:"ON_UPDATE",payload:{element:x.decorationNode??null,query:x.query,range:x.range}})},onKeyDown:x=>x.event.key==="Escape"?(d({type:"ON_EXIT"}),!0):!1,onExit:()=>{d({type:"ON_EXIT"}),h(!1)}}),items:ad});return n.registerPlugin(g),()=>{n?.isDestroyed||n.unregisterPlugin(y)}},e[3]=r,e[4]=i,e[5]=n,e[6]=h,e[7]=s,e[8]=p):p=e[8];let u;e[9]!==r||e[10]!==i||e[11]!==n||e[12]!==s?(u=[n,s,r,d,i],e[9]=r,e[10]=i,e[11]=n,e[12]=s,e[13]=u):u=e[13],S.useEffect(p,u);let m;return e[14]!==a?(m={state:a,dispatch:d},e[14]=a,e[15]=m):m=e[15],m}function ad(){return[]}function Gm({editor:t,queryKey:e,queryFn:n,onSelect:r}){const{state:s,dispatch:i}=ld(),o=S.useDeferredValue(s.query),{data:l}=Ca({queryKey:xe.suggestionItems(e,s.open,o),queryFn:()=>s.open?n({query:o}):[]}),a=()=>{i({type:"ON_EXIT"})},d=async(h,p)=>{if(!(s.selectedItem!==null||!s.range)){i({type:"SET_SELECTED_ITEM",payload:h});try{const{view:u}=t,y=u.state.selection.$to.nodeAfter?.text?.startsWith(" "),b=s.range?{...s.range}:{from:0,to:0};y&&s.range&&(b.to+=1),await r({range:b,item:h})===!1?i({type:"SET_SELECTED_ITEM",payload:null}):a()}catch{a()}}},{selectedIndex:f}=rd({editor:t,query:o,items:l,onSelect:d,onClose:a});return{selectedItem:s.selectedItem,items:l,selectedIndex:f,close:a,onSelect:d}}function Xm(t){return t.contentHash??`${t.size}-${t.updatedAt}`}function jt(t,e,n,r){const s=new URLSearchParams(r).toString();return`/api/${encodeURIComponent(t)}/fs/${encodeURIComponent(e)}/${n}${s?`?${s}`:""}`}async function Je(t,e,n){const r=await fetch(t,e);if(r.ok||n?.allow404&&r.status===404)return r;let s="";try{s=(await r.json()).error??""}catch{}throw new Error(s||`HTTP ${r.status}`)}function Ym(t,e){const n=U.c(15),{org:r}=Me();let s;n[0]!==r.id||n[1]!==e||n[2]!==t?(s=xe.orgFsList(r.id,t,e),n[0]=r.id,n[1]=e,n[2]=t,n[3]=s):s=n[3];let i;n[4]!==r.id||n[5]!==t?(i=(a,d)=>d?.queryKey[1]===r.id&&d.queryKey[2]===t?a:void 0,n[4]=r.id,n[5]=t,n[6]=i):i=n[6];let o;n[7]!==r.slug||n[8]!==e||n[9]!==t?(o=async()=>(await(await Je(jt(r.slug,t,"list",{path:e}))).json()).entries.toSorted(cd),n[7]=r.slug,n[8]=e,n[9]=t,n[10]=o):o=n[10];let l;return n[11]!==s||n[12]!==i||n[13]!==o?(l={queryKey:s,placeholderData:i,queryFn:o},n[11]=s,n[12]=i,n[13]=o,n[14]=l):l=n[14],Ze(l)}function cd(t,e){return t.kind!==e.kind?t.kind==="dir"?-1:1:t.path.localeCompare(e.path)}function Zm(t,e,n){const r=U.c(15),{org:s}=Me();let i;r[0]!==s.id||r[1]!==e||r[2]!==t?(i=xe.orgFsStat(s.id,t??"",e),r[0]=s.id,r[1]=e,r[2]=t,r[3]=i):i=r[3];const o=t!==null;let l;r[4]!==n?(l=n?.refetchIntervalWhenAbsent?f=>f.state.data?!1:n.refetchIntervalWhenAbsent??!1:void 0,r[4]=n,r[5]=l):l=r[5];let a;r[6]!==s.slug||r[7]!==e||r[8]!==t?(a=async()=>{const f=await Je(jt(s.slug,t??"","stat",{path:e}),void 0,{allow404:!0});return f.status===404?null:(await f.json()).entry},r[6]=s.slug,r[7]=e,r[8]=t,r[9]=a):a=r[9];let d;return r[10]!==i||r[11]!==o||r[12]!==l||r[13]!==a?(d={queryKey:i,enabled:o,refetchInterval:l,queryFn:a},r[10]=i,r[11]=o,r[12]=l,r[13]=a,r[14]=d):d=r[14],Ze(d)}function Jm(t){const e=U.c(9),{org:n}=Me();let r;e[0]!==n.id||e[1]!==t?(r=xe.orgFsUsage(n.id,t),e[0]=n.id,e[1]=t,e[2]=r):r=e[2];let s;e[3]!==n.slug||e[4]!==t?(s=async()=>await(await Je(jt(n.slug,t,"usage"))).json(),e[3]=n.slug,e[4]=t,e[5]=s):s=e[5];let i;return e[6]!==r||e[7]!==s?(i={queryKey:r,queryFn:s},e[6]=r,e[7]=s,e[8]=i):i=e[8],Ze(i)}function e1(t,e){const n=U.c(9),r=t===void 0?60:t,{org:s}=Me();let i;n[0]!==s.id?(i=xe.orgFsRecent(s.id),n[0]=s.id,n[1]=i):i=n[1];const o=e?.enabled;let l;n[2]!==r||n[3]!==s.slug?(l=async()=>(await(await Je(`/api/${encodeURIComponent(s.slug)}/fs/recent?limit=${r}`)).json()).entries,n[2]=r,n[3]=s.slug,n[4]=l):l=n[4];let a;return n[5]!==i||n[6]!==o||n[7]!==l?(a={queryKey:i,enabled:o,queryFn:l},n[5]=i,n[6]=o,n[7]=l,n[8]=a):a=n[8],Ze(a)}const dd=50;function t1(t,e){const n=U.c(16),{org:r}=Me();let s;n[0]!==r.id||n[1]!==t||n[2]!==e?.prefix||n[3]!==e?.volume?(s=xe.orgFsSearch(r.id,t,e?.volume??"",e?.prefix??""),n[0]=r.id,n[1]=t,n[2]=e?.prefix,n[3]=e?.volume,n[4]=s):s=n[4];const i=t.length>0;let o;n[5]!==r.id?(o=(d,f)=>f?.queryKey[1]===r.id?d:void 0,n[5]=r.id,n[6]=o):o=n[6];let l;n[7]!==r.slug||n[8]!==t||n[9]!==e?(l=async()=>{const d=new URLSearchParams({q:t,limit:String(dd)});return e&&(d.set("volume",e.volume),e.prefix&&d.set("prefix",e.prefix)),(await(await Je(`/api/${encodeURIComponent(r.slug)}/fs/search?${d}`)).json()).entries},n[7]=r.slug,n[8]=t,n[9]=e,n[10]=l):l=n[10];let a;return n[11]!==s||n[12]!==i||n[13]!==o||n[14]!==l?(a={queryKey:s,enabled:i,placeholderData:o,queryFn:l},n[11]=s,n[12]=i,n[13]=o,n[14]=l,n[15]=a):a=n[15],Ze(a)}function n1(t){const e=U.c(8),{org:n}=Me();let r;e[0]!==n.id?(r=xe.orgFsSkills(n.id),e[0]=n.id,e[1]=r):r=e[1];const s=t?.enabled;let i;e[2]!==n.slug?(i=async()=>{const l=await Je(`/api/${encodeURIComponent(n.slug)}/fs/skills`),{skills:a}=await l.json();return a.map(ud)},e[2]=n.slug,e[3]=i):i=e[3];let o;return e[4]!==r||e[5]!==s||e[6]!==i?(o={queryKey:r,enabled:s,queryFn:i},e[4]=r,e[5]=s,e[6]=i,e[7]=o):o=e[7],Ze(o)}function ud(t){return{volume:t.volume,path:t.path}}async function s1(t){const e=await Je(`/api/${encodeURIComponent(t)}/fs/skills`),{skills:n}=await e.json();return n}async function fd(t,e,n){return(await Je(jt(t,e,"read",{path:n}))).text()}function r1(t,e){const n=U.c(8);let r;n[0]!==t?(r=xe.fileText(t),n[0]=t,n[1]=r):r=n[1];const s=e?.enabled!==!1&&t!=="";let i;n[2]!==t?(i=async()=>{const l=await fetch(t,{credentials:"include"});return l.ok?await l.text():null},n[2]=t,n[3]=i):i=n[3];let o;return n[4]!==r||n[5]!==s||n[6]!==i?(o={queryKey:r,enabled:s,staleTime:6e4,retry:!1,queryFn:i},n[4]=r,n[5]=s,n[6]=i,n[7]=o):o=n[7],Ze(o)}const hd=new Set(["md","mdx","markdown","txt","text"]),pd=25,gd=64*1024,md=256*1024,xd=4;function bd(t){const e=t.lastIndexOf(".");return e===-1?!1:hd.has(t.slice(e+1).toLowerCase())}async function i1(t,e,n){const r=n?`${n}/`:"",s=h=>h.startsWith(r)?h.slice(r.length):h,i=[],o=[],l=[{path:n,depth:0}];for(;l.length>0;){const h=l.shift();if(!h)break;let p;try{p=(await(await Je(jt(t,e,"list",{path:h.path}))).json()).entries}catch{continue}for(const u of[...p].sort((m,y)=>m.path.localeCompare(y.path))){if(u.kind==="dir"){h.depth<xd&&l.push({path:u.path,depth:h.depth+1});continue}bd(u.path)&&u.size<=gd&&i.length<pd?i.push(u.path):o.push(s(u.path))}}const a=await Promise.all(i.map(h=>fd(t,e,h).catch(()=>null))),d=[];let f=0;return i.forEach((h,p)=>{const u=a[p];if(u==null||f+u.length>md){o.push(s(h));return}f+=u.length,d.push({relPath:s(h),content:u})}),d.sort((h,p)=>h.relPath==="SKILL.md"?-1:p.relPath==="SKILL.md"?1:h.relPath.localeCompare(p.relPath)),o.sort(),{files:d,omittedPaths:o}}function o1(){const t=U.c(7),{org:e}=Me();let n;t[0]!==e.id?(n=xe.orgFsPublicSets(e.id),t[0]=e.id,t[1]=n):n=t[1];let r;t[2]!==e.slug?(r=async()=>(await(await Je(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,t[2]=e.slug,t[3]=r):r=t[3];let s;return t[4]!==n||t[5]!==r?(s={queryKey:n,staleTime:3e5,queryFn:r},t[4]=n,t[5]=r,t[6]=s):s=t[6],Ze(s)}function yd(t){const e=U.c(3),{org:n}=Me();let r;return e[0]!==n.slug||e[1]!==t?(r=s=>jt(n.slug,t,"read",{path:s}),e[0]=n.slug,e[1]=t,e[2]=r):r=e[2],r}function l1(){const t=U.c(2),{org:e}=Me();let n;return t[0]!==e.slug?(n=(r,s)=>jt(e.slug,r,"read",{path:s}),t[0]=e.slug,t[1]=n):n=t[1],n}function a1(t){const e=U.c(3),{org:n}=Me();let r;return e[0]!==n||e[1]!==t?(r={mutationFn:async s=>(await(await Je(jt(n.slug,t,"file",{path:s.path}),{method:"PUT",headers:{"content-type":s.contentType??"text/html; charset=utf-8"},body:s.body})).json()).entry},e[0]=n,e[1]=t,e[2]=r):r=e[2],Ye(r)}function c1(t){const e=U.c(18),{org:n}=Me(),r=pn();let s;e[0]!==n||e[1]!==t?(s=async d=>(await(await Je(jt(n.slug,t,"public",{path:d.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:d.mode,password:d.password})})).json()).entry,e[0]=n,e[1]=t,e[2]=s):s=e[2];let i;e[3]!==n||e[4]!==r||e[5]!==t?(i=async d=>{const f=xe.orgFsStat(n.id,t,d.path);await r.cancelQueries({queryKey:f});const h=r.getQueryData(f),p=d.mode!=="private";return r.setQueryData(f,u=>u&&{...u,readPublic:p,effectivePublic:p,shareMode:d.mode}),{key:f,previous:h}},e[3]=n,e[4]=r,e[5]=t,e[6]=i):i=e[6];let o;e[7]!==r?(o=(d,f,h)=>{h&&r.setQueryData(h.key,h.previous)},e[7]=r,e[8]=o):o=e[8];let l;e[9]!==n||e[10]!==r||e[11]!==t?(l=(d,f,h)=>{r.invalidateQueries({queryKey:xe.orgFsStat(n.id,t,h.path)}),r.invalidateQueries({queryKey:xe.orgFsVolume(n.id,t)}),r.invalidateQueries({queryKey:xe.orgFsRecent(n.id)}),r.invalidateQueries({queryKey:xe.orgFsSearchRoot(n.id)})},e[9]=n,e[10]=r,e[11]=t,e[12]=l):l=e[12];let a;return e[13]!==s||e[14]!==i||e[15]!==o||e[16]!==l?(a={mutationFn:s,onMutate:i,onError:o,onSettled:l},e[13]=s,e[14]=i,e[15]=o,e[16]=l,e[17]=a):a=e[17],Ye(a)}function kd(t){const e=U.c(33),{org:n}=Me(),r=pn();let s;e[0]!==n||e[1]!==r||e[2]!==t?(s=()=>{r.invalidateQueries({queryKey:xe.orgFsVolume(n.id,t)}),r.invalidateQueries({queryKey:xe.orgFsRecent(n.id)}),r.invalidateQueries({queryKey:xe.orgFsSearchRoot(n.id)})},e[0]=n,e[1]=r,e[2]=t,e[3]=s):s=e[3];const i=s;let o;e[4]!==n||e[5]!==t?(o=async k=>{const w=(await Promise.allSettled(k.files.map(j=>{const C=k.dir?`${k.dir}/${j.name}`:j.name;return Je(jt(n.slug,t,"file",{path:C}),{method:"PUT",headers:{"content-type":j.type||"application/octet-stream"},body:j})}))).find(vd);if(w)throw w.reason},e[4]=n,e[5]=t,e[6]=o):o=e[6];let l;e[7]!==i||e[8]!==o?(l={mutationFn:o,onSettled:i},e[7]=i,e[8]=o,e[9]=l):l=e[9];const a=Ye(l);let d;e[10]!==n||e[11]!==t?(d=async k=>{await Je(jt(n.slug,t,"dir",{path:k}),{method:"POST"})},e[10]=n,e[11]=t,e[12]=d):d=e[12];let f;e[13]!==i||e[14]!==d?(f={mutationFn:d,onSuccess:i},e[13]=i,e[14]=d,e[15]=f):f=e[15];const h=Ye(f);let p;e[16]!==n||e[17]!==t?(p=async k=>{await Je(jt(n.slug,t,"file",{path:k}),{method:"DELETE"})},e[16]=n,e[17]=t,e[18]=p):p=e[18];let u;e[19]!==i||e[20]!==p?(u={mutationFn:p,onSuccess:i},e[19]=i,e[20]=p,e[21]=u):u=e[21];const m=Ye(u);let y;e[22]!==n||e[23]!==t?(y=async k=>{await Je(jt(n.slug,t,"move"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(k)})},e[22]=n,e[23]=t,e[24]=y):y=e[24];let b;e[25]!==i||e[26]!==y?(b={mutationFn:y,onSuccess:i},e[25]=i,e[26]=y,e[27]=b):b=e[27];const g=Ye(b);let x;return e[28]!==h||e[29]!==g||e[30]!==m||e[31]!==a?(x={upload:a,mkdir:h,remove:m,move:g},e[28]=h,e[29]=g,e[30]=m,e[31]=a,e[32]=x):x=e[32],x}function vd(t){return t.status==="rejected"}function wd(t){return t?t.run_in_progress?"generating":t.scanned_at?"ready":"none":"none"}const Sd=2e4;function Cd(t){if(typeof t!="string"||!t)return null;try{return new URL(t).hostname||null}catch{return null}}function jd(){const t=U.c(17),{org:e}=Me(),n=Ua.COMMERCE_DISCOVERY(e.id);let r;t[0]!==e.id||t[1]!==e.slug?(r=zi({connectionId:Ko,orgId:e.id,orgSlug:e.slug}),t[0]=e.id,t[1]=e.slug,t[2]=r):r=t[2];const{data:s}=Ze(r),o=Ze({queryKey:xe.commerceDiscoveryConnection(e.id,n),enabled:!!s,retry:!1,staleTime:6e4,queryFn:async()=>{if(!s)throw new Error("selfClient not ready");const k=await s.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:n}});return zr(k)}}).data?.item??null,{data:l}=Ze({...zi({connectionId:n,orgId:e.id,orgSlug:e.slug}),enabled:!!o}),a=xe.commerceDiscoveryDiagnostic(e.id,n),d=!!l;let f;t[3]!==l?(f=async()=>{if(!l)throw new Error("cdClient not ready");const k=await l.callTool({name:Ho,arguments:{}});return zr(k).diagnostic??null},t[3]=l,t[4]=f):f=t[4];let h;t[5]!==a||t[6]!==d||t[7]!==f?(h={queryKey:a,enabled:d,retry:1,refetchInterval:Td,queryFn:f},t[5]=a,t[6]=d,t[7]=f,t[8]=h):h=t[8];const p=Ze(h),u=p.data??null,m=p.isSuccess,y=o?.metadata?.siteUrl;let b;t[9]!==y?(b=Cd(y),t[9]=y,t[10]=b):b=t[10];const g=l??null;let x;return t[11]!==n||t[12]!==p.isSuccess||t[13]!==u||t[14]!==b||t[15]!==g?(x={diagnostic:u,isSuccess:m,host:b,connectionId:n,cdClient:g},t[11]=n,t[12]=p.isSuccess,t[13]=u,t[14]=b,t[15]=g,t[16]=x):x=t[16],x}function Td(t){return t.state.status!=="error"&&wd(t.state.data)==="generating"?Sd:!1}function Nd(t,e){return{to:"/$org/$taskId",params:{org:t.slug,taskId:crypto.randomUUID()},search:{virtualmcpid:qa(t.id),main:zc(e,Ho)}}}function Dd(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return S.useMemo(()=>r=>{e.forEach(s=>s(r))},e)}const hr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ss(t){const e=Object.prototype.toString.call(t);return e==="[object Window]"||e==="[object global]"}function pi(t){return"nodeType"in t}function it(t){var e,n;return t?ss(t)?t:pi(t)&&(e=(n=t.ownerDocument)==null?void 0:n.defaultView)!=null?e:window:window}function gi(t){const{Document:e}=it(t);return t instanceof e}function Rs(t){return ss(t)?!1:t instanceof it(t).HTMLElement}function cl(t){return t instanceof it(t).SVGElement}function rs(t){return t?ss(t)?t.document:pi(t)?gi(t)?t:Rs(t)||cl(t)?t.ownerDocument:document:document:document}const Ft=hr?S.useLayoutEffect:S.useEffect;function pr(t){const e=S.useRef(t);return Ft(()=>{e.current=t}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return e.current==null?void 0:e.current(...r)},[])}function Rd(){const t=S.useRef(null),e=S.useCallback((r,s)=>{t.current=setInterval(r,s)},[]),n=S.useCallback(()=>{t.current!==null&&(clearInterval(t.current),t.current=null)},[]);return[e,n]}function Ss(t,e){e===void 0&&(e=[t]);const n=S.useRef(t);return Ft(()=>{n.current!==t&&(n.current=t)},e),n}function Es(t,e){const n=S.useRef();return S.useMemo(()=>{const r=t(n.current);return n.current=r,r},[...e])}function Zs(t){const e=pr(t),n=S.useRef(null),r=S.useCallback(s=>{s!==n.current&&e?.(s,n.current),n.current=s},[]);return[n,r]}function Js(t){const e=S.useRef();return S.useEffect(()=>{e.current=t},[t]),e.current}let Dr={};function Is(t,e){return S.useMemo(()=>{if(e)return e;const n=Dr[t]==null?0:Dr[t]+1;return Dr[t]=n,t+"-"+n},[t,e])}function dl(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return r.reduce((i,o)=>{const l=Object.entries(o);for(const[a,d]of l){const f=i[a];f!=null&&(i[a]=f+t*d)}return i},{...e})}}const Zn=dl(1),Cs=dl(-1);function Ed(t){return"clientX"in t&&"clientY"in t}function gr(t){if(!t)return!1;const{KeyboardEvent:e}=it(t.target);return e&&t instanceof e}function Id(t){if(!t)return!1;const{TouchEvent:e}=it(t.target);return e&&t instanceof e}function er(t){if(Id(t)){if(t.touches&&t.touches.length){const{clientX:e,clientY:n}=t.touches[0];return{x:e,y:n}}else if(t.changedTouches&&t.changedTouches.length){const{clientX:e,clientY:n}=t.changedTouches[0];return{x:e,y:n}}}return Ed(t)?{x:t.clientX,y:t.clientY}:null}const on=Object.freeze({Translate:{toString(t){if(!t)return;const{x:e,y:n}=t;return"translate3d("+(e?Math.round(e):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(t){if(!t)return;const{scaleX:e,scaleY:n}=t;return"scaleX("+e+") scaleY("+n+")"}},Transform:{toString(t){if(t)return[on.Translate.toString(t),on.Scale.toString(t)].join(" ")}},Transition:{toString(t){let{property:e,duration:n,easing:r}=t;return e+" "+n+"ms "+r}}}),Fi="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function _d(t){return t.matches(Fi)?t:t.querySelector(Fi)}const Ad={display:"none"};function Bd(t){let{id:e,value:n}=t;return Te.createElement("div",{id:e,style:Ad},n)}function Od(t){let{id:e,announcement:n,ariaLiveType:r="assertive"}=t;const s={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Te.createElement("div",{id:e,style:s,role:"status","aria-live":r,"aria-atomic":!0},n)}function $d(){const[t,e]=S.useState("");return{announce:S.useCallback(r=>{r!=null&&e(r)},[]),announcement:t}}const ul=S.createContext(null);function Md(t){const e=S.useContext(ul);S.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(t)},[t,e])}function zd(){const[t]=S.useState(()=>new Set),e=S.useCallback(r=>(t.add(r),()=>t.delete(r)),[t]);return[S.useCallback(r=>{let{type:s,event:i}=r;t.forEach(o=>{var l;return(l=o[s])==null?void 0:l.call(o,i)})},[t]),e]}const Ld={draggable:`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-D1QykbrQ.js","assets/index-BE7mJhFy.js","assets/index-DHCkR8xR.css","assets/ArrowUp-Dkm0nOGw.js","assets/chat-context-BTbaCF1T.js","assets/tab-id-xREOP0to.js","assets/dialog-B5y5hFnb.js","assets/X-ImXzxvCp.js","assets/Check-CfIRDOap.js","assets/Copy01-DDRpZJ1h.js","assets/hooks-_oUacd7x.js","assets/use-mcp-client-B6rroWiF.js","assets/auth-CzoWoS_Q.js","assets/decopilot-sse-pool-Clmp1BFL.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/use-is-desktop-app-BNujXJc_.js","assets/use-virtual-mcp-SgXDkg75.js","assets/use-ai-providers-Db5LNUJN.js","assets/studio-tools-DXVCK0sW.js","assets/use-decopilot-events-CZNjfghP.js","assets/use-organization-settings-B1oXAg8v.js","assets/automation-runs-BAj-VvKU.js","assets/select-DE2zqg5r.js","assets/tooltip-B-gahmZ0.js","assets/ChevronDown-Dfx8ph9o.js","assets/ChevronUp-Dl1S15_f.js","assets/useInfiniteQuery-ZHHCL_4m.js","assets/use-infinite-scroll-CmpA7aNk.js","assets/use-connection-Di6VWa3L.js","assets/card-DmKStgES.js","assets/sidebar-jMHKufA-.js","assets/LayoutLeft-BfIP_r4O.js","assets/use-mobile-Fq3m92SB.js","assets/table-pV8D0u2m.js","assets/empty-state-DQHHZFK3.js","assets/use-members-Cw9Cvkx3.js","assets/use-org-auth-client-Bxh7oYIw.js","assets/use-clock-tick-CU7u0LpL.js","assets/AlertCircle-BfuYC-ez.js","assets/CheckCircle-UqA3DPGv.js","assets/DotsVertical-CHkGthlj.js","assets/agent-icon-DyvgCmDh.js","assets/Tool01-DhSkNcMo.js","assets/Settings02-CDjArU7G.js","assets/Tool02-CQZsqe8L.js","assets/XCircle-BlO0Qy51.js","assets/ArrowUpRight-CRz_iHAu.js","assets/TrendUp01-DEIKe0v4.js","assets/ZapSquare-CCPTmscL.js","assets/Users03-cydJxCq2.js","assets/ChevronRight-BXMKC2_M.js","assets/Stars02-BHlXbARl.js","assets/CpuChip01-DZ_mRqyz.js","assets/CreditCard01-DsphY5qx.js","assets/Eye-mJ_2ivh6.js","assets/FilterLines-C_1h3ZoJ.js","assets/Star01-DOCStMKN.js","assets/Palette-CbPK4Rpt.js","assets/SwitchHorizontal01-25hapEqS.js","assets/HardDrive-Bdh7pAUM.js","assets/Key01-BLGPH0DL.js","assets/LinkExternal01-Ba5xXfz2.js","assets/LogOut01-CvwGYyrH.js","assets/Monitor01-3irKmnvO.js","assets/Sun-BLG01WIk.js","assets/Play-54eB0T2G.js","assets/Plus-CKO7n5Po.js","assets/SearchLg-CrtIkrUb.js","assets/SearchMd-Bx38R8jT.js","assets/Shield01-DWbsBnKy.js","assets/Stars01-CYjq7xRF.js","assets/Trash01-DFj83XXx.js","assets/Upload01-C4AUAXd5.js","assets/User01-CDS7qDs6.js","assets/Users01-Dev0Wnwe.js","assets/XClose-D7r31LaY.js","assets/Zap-C1KfAU0L.js","assets/use-automations-DfD-q04Z.js","assets/useSuspenseInfiniteQuery-k1g0FdzT.js","assets/avatar-BzQ7WmXz.js","assets/format-time-BnbuEtat.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/use-copy-B64dHmlD.js","assets/calendar-DzZPxWQd.js","assets/monaco-editor-AdkIaxez.js","assets/spinner-BB2hby2t.js","assets/index-DmcNl6lo.js","assets/shell-layout-DbBB0LUI.js","assets/required-auth-layout-DduipUtL.js","assets/use-org-sso-CHpy2ljn.js","assets/integration-icon-BPgt71bM.js","assets/use-navigate-to-agent-Bpm8yGLA.js","assets/reusable-new-chat-CouMjkYR.js","assets/AreaChart-Ci-A0btx.js","assets/form-Bq1A_P9t.js","assets/label-BoGYufMX.js","assets/input-SHG4kEt8.js","assets/drawer-BZTnQot8.js","assets/collection-search-C1t7YBY3.js","assets/tabs-C97TV6wP.js","assets/toggle-group-B_DzWSgI.js","assets/use-deco-credits-BKsepuUx.js","assets/popover-Bu5EGKLW.js","assets/alert-dialog-qODg0L4t.js","assets/toolbar-CKmQWdVF.js","assets/skeleton-AvMrml5O.js","assets/github-repo-picker-CT456aBC.js","assets/use-debounced-value-BMDLplmP.js","assets/authenticate-and-persist-oauth-_aMCtvov.js","assets/mcp-oauth-h1LtXs-F.js","assets/use-mcp-tools-gs2BaxE7.js","assets/extract-connection-data-DveMzJnj.js","assets/metadata-dUsYcpuu.js","assets/provision-repo-scoped-github-connection-B2s3ApVy.js","assets/agent-capabilities-cXfbMfjV.js","assets/connection-card-DuKkmMXb.js","assets/use-registry-connections-CMu53VQD.js","assets/retry-CErkP7V6.js","assets/connection-slug-eyAPH6o3.js","assets/textarea-BIsK3TvL.js","assets/connection-form-helpers-CAyGL1Rc.js","assets/collection-tabs-DkKbZNxK.js","assets/badge-0OderU4R.js","assets/use-open-billing-url-CAxNtzL4.js","assets/select-model-D2N9Z9Ec.js","assets/checkbox-BZRzofDI.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-DBkfk9BB.js","assets/dropdown-menu-CHizDN5S.js","assets/question-004-sINsf4GQ.js","assets/use-status-sounds--hLMjyxJ.js","assets/deco-site-production-url-CaKZ7xBn.js","assets/use-capability-DbPUHhbH.js","assets/pt-BR-CLy76QW2.js","assets/switch-BEKqgb1f.js","assets/use-debounced-autosave-DsmYOWfj.js","assets/index-C3N6oAxN.js","assets/search-input-CY-7-6Mr.js","assets/index-BcXDjqbG.js","assets/use-secrets-DuSGJa4J.js","assets/command-M0ieFwmm.js","assets/index-jM_Cebcw.js","assets/self-tool-result-DNH6ZaMF.js","assets/companions-core-B5XTmC8f.js","assets/use-file-configs-B_bqkDL5.js","assets/automation-list-row-qM5LBHmY.js","assets/get-initials-D-f_fDFw.js","assets/index-CiP0VfIv.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{G as Sa,r as S,c as U,x as Ca,K as xe,F as Me,o as pn,e as Ye,n as Ze,aw as Te,ae as sn,a as Ro,t as St,ar as ja,m as Z,j as c,b as oe,aW as Eo,aX as Io,aY as _o,aZ as Ao,a_ as Bo,a$ as Oo,b0 as $o,b1 as Mo,b2 as zo,B as Ae,y as Ta,av as Zr,E as Na,d as Lo,p as Mi,k as Ts,u as Da,aF as Ra}from"./index-BE7mJhFy.js";import{g as _t}from"./get-initials-D-f_fDFw.js";import{A as At}from"./avatar-BzQ7WmXz.js";import{aC as Ns,ae as Ea,af as Ia,ah as _a,a5 as Aa,aD as Ba,y as Oa,n as $a,aE as Jr,aF as Ma,W as ei,d as Po,ad as za,g as Fo,k as ur,aG as La,aA as Tr,ar as ti,Z as Yn,aH as Pa,ay as Fa}from"./agent-icon-DyvgCmDh.js";import{i as Uo}from"./SwitchHorizontal01-25hapEqS.js";import{s as ws}from"./Plus-CKO7n5Po.js";import{i as cn}from"./X-ImXzxvCp.js";import{a as Xn,b as xs,P as bs}from"./popover-Bu5EGKLW.js";import{a as Ct,i as qo,D as dn,b as un,c as fn,d as ls,e as as,f as cs}from"./dropdown-menu-CHizDN5S.js";import{W as Ua,m as zi,S as Ko,C as Ho,g as qa,u as Ka,h as Ha,Q as Wa,j as Va,a as Qa}from"./use-mcp-client-B6rroWiF.js";import{u as Ga,G as $r,a as Xa}from"./github-repo-picker-CT456aBC.js";import{e as Jn,d as es,b as ts,h as ni,a as si,c as ri}from"./dialog-B5y5hFnb.js";import{b as Ya,u as Za}from"./use-connection-Di6VWa3L.js";import{b as Ja}from"./provision-repo-scoped-github-connection-B2s3ApVy.js";import{a as ec}from"./authenticate-and-persist-oauth-_aMCtvov.js";import{e as tc}from"./extract-connection-data-DveMzJnj.js";import{u as Wo}from"./use-members-Cw9Cvkx3.js";import{u as gn}from"./studio-tools-DXVCK0sW.js";import{t as nc,T as sc,a as rc,S as $e,i as Vo,b as Li}from"./decopilot-sse-pool-Clmp1BFL.js";import{u as ic}from"./use-decopilot-events-CZNjfghP.js";import{a as ii}from"./format-time-BnbuEtat.js";import{i as fr}from"./AlertCircle-BfuYC-ez.js";import{i as mn}from"./CheckCircle-UqA3DPGv.js";import{i as oc}from"./DotsVertical-CHkGthlj.js";import{s as lc}from"./Eye-mJ_2ivh6.js";import{u as Qo,a as ac,b as cc}from"./use-tags-0YzsYO3f.js";import{o as dc,P as rn,a as oi,D as uc,p as fc,q as hc,S as Vt,r as pc,T as Go,F as Nr,s as ps,v as gc,w as mc,x as Xo,N as xc,k as li,y as bc,z as yc,d as Yo,n as kc,A as Yt,B as vc,G as ds,H as wc,I as Zo,R as Jo,m as el,J as tl,K as Sc,L as Cc,Q as jc,e as Tc,u as Nc,f as Dc,j as Rc,C as nl,c as Ec}from"./calendar-DzZPxWQd.js";import{S as Vn}from"./skeleton-AvMrml5O.js";import{u as Ic}from"./use-copy-B64dHmlD.js";import{i as Ds}from"./Check-CfIRDOap.js";import{i as sl}from"./ChevronRight-BXMKC2_M.js";import{a as _c}from"./Copy01-DDRpZJ1h.js";import{n as Ac,i as rl}from"./Tool02-CQZsqe8L.js";import{n as Gs}from"./LinkExternal01-Ba5xXfz2.js";import{b as il,i as ol}from"./XCircle-BlO0Qy51.js";import{s as ll}from"./Trash01-DFj83XXx.js";import{u as Pi,a as Bc}from"./use-organization-settings-B1oXAg8v.js";import{d as ai,a as ci,c as en,b as ns,C as di,e as ui}from"./command-M0ieFwmm.js";import{s as Mr}from"./User01-CDS7qDs6.js";import{i as Oc}from"./ArrowUp-Dkm0nOGw.js";import{i as $c}from"./Tool01-DhSkNcMo.js";import{u as Mc}from"./use-open-billing-url-CAxNtzL4.js";import{f as zc}from"./tab-id-xREOP0to.js";import{u as zr}from"./companions-core-B5XTmC8f.js";import{d as Lc,b as Pc,f as Fc,g as Uc,a as qc,D as Kc}from"./drawer-BZTnQot8.js";import{t as fi}from"./ChevronDown-Dfx8ph9o.js";import{i as al}from"./FilterLines-C_1h3ZoJ.js";import{s as Hc}from"./TrendUp01-DEIKe0v4.js";import{u as Wc}from"./shell-layout-DbBB0LUI.js";import{b as Vc}from"./hooks-_oUacd7x.js";const Qc="[SUBSCRIPTION_REQUIRED]";function Gc(t){return t?.message.startsWith(Qc)?t.message.includes("used its free task executions")?"trial_exhausted":t.message.includes("used its monthly task executions")?"monthly_exhausted":t.message.includes("reached its execution limit")?"runs_exhausted":null:null}function Xc(t){return!t||!t.content||t.content.length===0?!0:t.content.every(e=>e.type==="paragraph"?!e.content||e.content.length===0?!0:e.content.every(n=>n.type==="hardBreak"||n.type==="text"&&(!n.text||n.text.trim()==="")):!1)}const Hm="__home__";function hi(t,e){return Sa.chatDraft(t,e)}function Yc(t){if(!t)return null;let e;try{e=JSON.parse(t)}catch{return null}if(!e||typeof e!="object"||typeof e.updatedAt!="number")return null;const n=e.tiptapDoc;return!n||typeof n!="object"||n.type!=="doc"||!Array.isArray(n.content)?null:n}function Zc(t,e,n,r,s){const i=hi(e,n);if(Xc(r)){t.removeItem(i);return}const o={tiptapDoc:r,updatedAt:Date.now()},l=JSON.stringify(o);try{t.setItem(i,l)}catch(a){if(Jc(a)){const d=new TextEncoder().encode(l).byteLength;s?.onQuotaExceeded?.({docSizeBytes:d});return}throw a}}function Wm(t,e,n){const r=hi(e,n),s=t.getItem(r),i=Yc(s);return s!==null&&i===null&&t.removeItem(r),i}function Vm(t,e,n){t.removeItem(hi(e,n))}function Jc(t){if(!t||typeof t!="object")return!1;const e=t.name;return e==="QuotaExceededError"||e==="NS_ERROR_DOM_QUOTA_REACHED"}var ed=dc;function td(t){var e;const{char:n,allowSpaces:r,allowToIncludeChar:s,allowedPrefixes:i,startOfLine:o,$position:l}=t,a=r&&!s,d=hc(n),f=new RegExp(`\\s${d}$`),h=o?"^":"",p=s?"":d,u=a?new RegExp(`${h}${d}.*?(?=\\s${p}|$)`,"gm"):new RegExp(`${h}(?:^)?${d}[^\\s${p}]*`,"gm"),m=((e=l.nodeBefore)==null?void 0:e.isText)&&l.nodeBefore.text;if(!m)return null;const y=l.pos-m.length,b=Array.from(m.matchAll(u)).pop();if(!b||b.input===void 0||b.index===void 0)return null;const g=b.input.slice(Math.max(0,b.index-1),b.index),x=new RegExp(`^[${i?.join("")}\0]?$`).test(g);if(i!==null&&!x)return null;const k=y+b.index;let v=k+b[0].length;return a&&f.test(m.slice(v-1,v+1))&&(b[0]+=" ",v+=1),k<l.pos&&v>=l.pos?{range:{from:k,to:v},query:b[0].slice(n.length),text:b[0]}:null}var nd=new rn("suggestion");function sd({pluginKey:t=nd,editor:e,char:n="@",allowSpaces:r=!1,allowToIncludeChar:s=!1,allowedPrefixes:i=[" "],startOfLine:o=!1,decorationTag:l="span",decorationClass:a="suggestion",decorationContent:d="",decorationEmptyClass:f="is-empty",command:h=()=>null,items:p=()=>[],render:u=()=>({}),allow:m=()=>!0,findSuggestionMatch:y=td,shouldShow:b}){let g;const x=u?.(),k=()=>{const C=e.state.selection.$anchor.pos,T=e.view.coordsAtPos(C),{top:D,right:E,bottom:N,left:I}=T;try{return new DOMRect(I,D,E-I,N-D)}catch{return null}},v=(C,T)=>T?()=>{const D=t.getState(e.state),E=D?.decorationId,N=C.dom.querySelector(`[data-decoration-id="${E}"]`);return N?.getBoundingClientRect()||null}:k;function w(C,T){var D;try{const N=t.getState(C.state),I=N?.decorationId?C.dom.querySelector(`[data-decoration-id="${N.decorationId}"]`):null,A={editor:e,range:N?.range||{from:0,to:0},query:N?.query||null,text:N?.text||null,items:[],command:_=>h({editor:e,range:N?.range||{from:0,to:0},props:_}),decorationNode:I,clientRect:v(C,I)};(D=x?.onExit)==null||D.call(x,A)}catch{}const E=C.state.tr.setMeta(T,{exit:!0});C.dispatch(E)}const j=new oi({key:t,view(){return{update:async(C,T)=>{var D,E,N,I,A,_,z;const R=(D=this.key)==null?void 0:D.getState(T),O=(E=this.key)==null?void 0:E.getState(C.state),L=R.active&&O.active&&R.range.from!==O.range.from,B=!R.active&&O.active,F=R.active&&!O.active,$=!B&&!F&&R.query!==O.query,W=B||L&&$,K=$||L,Q=F||L&&$;if(!W&&!K&&!Q)return;const G=Q&&!W?R:O,Y=C.dom.querySelector(`[data-decoration-id="${G.decorationId}"]`);g={editor:e,range:G.range,query:G.query,text:G.text,items:[],command:ee=>h({editor:e,range:G.range,props:ee}),decorationNode:Y,clientRect:v(C,Y)},W&&((N=x?.onBeforeStart)==null||N.call(x,g)),K&&((I=x?.onBeforeUpdate)==null||I.call(x,g)),(K||W)&&(g.items=await p({editor:e,query:G.query})),Q&&((A=x?.onExit)==null||A.call(x,g)),K&&((_=x?.onUpdate)==null||_.call(x,g)),W&&((z=x?.onStart)==null||z.call(x,g))},destroy:()=>{var C;g&&((C=x?.onExit)==null||C.call(x,g))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(C,T,D,E){const{isEditable:N}=e,{composing:I}=e.view,{selection:A}=C,{empty:_,from:z}=A,R={...T},O=C.getMeta(t);if(O&&O.exit)return R.active=!1,R.decorationId=null,R.range={from:0,to:0},R.query=null,R.text=null,R;if(R.composing=I,N&&(_||e.view.composing)){(z<T.range.from||z>T.range.to)&&!I&&!T.composing&&(R.active=!1);const L=y({char:n,allowSpaces:r,allowToIncludeChar:s,allowedPrefixes:i,startOfLine:o,$position:A.$from}),B=`id_${Math.floor(Math.random()*4294967295)}`;L&&m({editor:e,state:E,range:L.range,isActive:T.active})&&(!b||b({editor:e,range:L.range,query:L.query,text:L.text,transaction:C}))?(R.active=!0,R.decorationId=T.decorationId?T.decorationId:B,R.range=L.range,R.query=L.query,R.text=L.text):R.active=!1}else R.active=!1;return R.active||(R.decorationId=null,R.range={from:0,to:0},R.query=null,R.text=null),R}},props:{handleKeyDown(C,T){var D,E,N,I;const{active:A,range:_}=j.getState(C.state);if(!A)return!1;if(T.key==="Escape"||T.key==="Esc"){const R=j.getState(C.state),O=(D=g?.decorationNode)!=null?D:null,L=O??(R?.decorationId?C.dom.querySelector(`[data-decoration-id="${R.decorationId}"]`):null);if(((E=x?.onKeyDown)==null?void 0:E.call(x,{view:C,event:T,range:R.range}))||!1)return!0;const F={editor:e,range:R.range,query:R.query,text:R.text,items:[],command:$=>h({editor:e,range:R.range,props:$}),decorationNode:L,clientRect:L?()=>L.getBoundingClientRect()||null:null};return(N=x?.onExit)==null||N.call(x,F),w(C,t),!0}return((I=x?.onKeyDown)==null?void 0:I.call(x,{view:C,event:T,range:_}))||!1},decorations(C){const{active:T,range:D,decorationId:E,query:N}=j.getState(C);if(!T)return null;const I=!N?.length,A=[a];return I&&A.push(f),uc.create(C.doc,[fc.inline(D.from,D.to,{nodeName:l,class:A.join(" "),"data-decoration-id":E,"data-decoration-content":d})])}}});return j}function rd(t){const e=U.c(24),{editor:n,query:r,items:s,onSelect:i,onClose:o}=t,[l,a]=S.useState(0),d=S.useRef(s),f=S.useRef(l),h=S.useRef(i),p=S.useRef(o),u=S.useDeferredValue(r);let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{a(0)},e[0]=m):m=e[0];let y;e[1]!==u?(y=[u],e[1]=u,e[2]=y):y=e[2],S.useEffect(m,y);let b,g;e[3]!==s.length||e[4]!==l?(b=()=>{l>=s.length&&s.length>0&&a(0)},g=[s.length,l],e[3]=s.length,e[4]=l,e[5]=b,e[6]=g):(b=e[5],g=e[6]),S.useEffect(b,g);let x,k;e[7]!==s?(x=()=>{d.current=s},k=[s],e[7]=s,e[8]=x,e[9]=k):(x=e[8],k=e[9]),S.useEffect(x,k);let v,w;e[10]!==l?(v=()=>{f.current=l},w=[l],e[10]=l,e[11]=v,e[12]=w):(v=e[11],w=e[12]),S.useEffect(v,w);let j,C;e[13]!==i?(C=()=>{h.current=i},j=[i],e[13]=i,e[14]=j,e[15]=C):(j=e[14],C=e[15]),S.useEffect(C,j);let T,D;e[16]!==o?(T=()=>{p.current=o},D=[o],e[16]=o,e[17]=T,e[18]=D):(T=e[17],D=e[18]),S.useEffect(T,D);let E,N;e[19]!==n?(E=()=>{if(n?.isDestroyed)return;let _;try{_=n.view.dom}catch{return}if(!_)return;const z=O=>{const L=d.current;if(!L.length)return!1;const B=()=>a($=>($+1)%L.length),F=()=>a($=>($-1+L.length)%L.length);switch(O.key){case"ArrowUp":return O.preventDefault(),F(),!0;case"ArrowDown":return O.preventDefault(),B(),!0;case"Tab":return O.preventDefault(),O.shiftKey?F():B(),!0;case"Home":return O.preventDefault(),a(0),!0;case"End":return O.preventDefault(),a(L.length-1),!0;case"Enter":{if(O.isComposing)return!1;O.preventDefault();const $=f.current;return $!==-1&&L[$]&&h.current?.(L[$],$),!0}case"Escape":return O.preventDefault(),p.current?.(),!0;default:return!1}},R=O=>{z(O)};return _.addEventListener("keydown",R,!0),()=>{_?.removeEventListener("keydown",R,!0)}},N=[n],e[19]=n,e[20]=E,e[21]=N):(E=e[20],N=e[21]),S.useEffect(E,N);const I=s.length?l:void 0;let A;return e[22]!==I?(A={selectedIndex:I,setSelectedIndex:a},e[22]=I,e[23]=A):A=e[23],A}function id(t,e){switch(e.type){case"SET_SELECTED_ITEM":return{...t,selectedItem:e.payload};case"ON_START":return{...t,open:!0,selectedItem:null,element:e.payload.element,query:e.payload.query,range:e.payload.range};case"ON_UPDATE":return{...t,element:e.payload.element,query:e.payload.query,range:e.payload.range};case"ON_EXIT":return{open:!1,element:null,query:"",range:null,selectedItem:null};default:return t}}const od=S.createContext(void 0);function ld(){const t=S.useContext(od);if(!t)throw new Error("useSuggestionContext must be used within a SuggestionContext.Provider");return t}function Qm(t){const e=U.c(16),{editor:n,char:r,pluginKey:s,allow:i,onOpenChange:o}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={open:!1,element:null,query:"",range:null,selectedItem:null},e[0]=l):l=e[0];const[a,d]=S.useReducer(id,l);let f;e[1]!==o?(f=y=>{o?.(y)},e[1]=o,e[2]=f):f=e[2];const h=S.useEffectEvent(f);let p;e[3]!==r||e[4]!==i||e[5]!==n||e[6]!==h||e[7]!==s?(p=()=>{if(n?.isDestroyed)return;const y=s instanceof rn?s:new rn(s);n.state.plugins.find(x=>x.spec.key===y)&&n.unregisterPlugin(y);const g=sd({pluginKey:y,editor:n,char:r,allow(x){const k=n.state.doc.resolve(x.range.from);for(let v=k.depth;v>0;v--)if(k.node(v).type.name==="image")return!1;return!(i&&!i(x))},command(){},render:()=>({onStart:x=>{d({type:"ON_START",payload:{element:x.decorationNode??null,query:x.query,range:x.range}}),h(!0)},onUpdate:x=>{d({type:"ON_UPDATE",payload:{element:x.decorationNode??null,query:x.query,range:x.range}})},onKeyDown:x=>x.event.key==="Escape"?(d({type:"ON_EXIT"}),!0):!1,onExit:()=>{d({type:"ON_EXIT"}),h(!1)}}),items:ad});return n.registerPlugin(g),()=>{n?.isDestroyed||n.unregisterPlugin(y)}},e[3]=r,e[4]=i,e[5]=n,e[6]=h,e[7]=s,e[8]=p):p=e[8];let u;e[9]!==r||e[10]!==i||e[11]!==n||e[12]!==s?(u=[n,s,r,d,i],e[9]=r,e[10]=i,e[11]=n,e[12]=s,e[13]=u):u=e[13],S.useEffect(p,u);let m;return e[14]!==a?(m={state:a,dispatch:d},e[14]=a,e[15]=m):m=e[15],m}function ad(){return[]}function Gm({editor:t,queryKey:e,queryFn:n,onSelect:r}){const{state:s,dispatch:i}=ld(),o=S.useDeferredValue(s.query),{data:l}=Ca({queryKey:xe.suggestionItems(e,s.open,o),queryFn:()=>s.open?n({query:o}):[]}),a=()=>{i({type:"ON_EXIT"})},d=async(h,p)=>{if(!(s.selectedItem!==null||!s.range)){i({type:"SET_SELECTED_ITEM",payload:h});try{const{view:u}=t,y=u.state.selection.$to.nodeAfter?.text?.startsWith(" "),b=s.range?{...s.range}:{from:0,to:0};y&&s.range&&(b.to+=1),await r({range:b,item:h})===!1?i({type:"SET_SELECTED_ITEM",payload:null}):a()}catch{a()}}},{selectedIndex:f}=rd({editor:t,query:o,items:l,onSelect:d,onClose:a});return{selectedItem:s.selectedItem,items:l,selectedIndex:f,close:a,onSelect:d}}function Xm(t){return t.contentHash??`${t.size}-${t.updatedAt}`}function jt(t,e,n,r){const s=new URLSearchParams(r).toString();return`/api/${encodeURIComponent(t)}/fs/${encodeURIComponent(e)}/${n}${s?`?${s}`:""}`}async function Je(t,e,n){const r=await fetch(t,e);if(r.ok||n?.allow404&&r.status===404)return r;let s="";try{s=(await r.json()).error??""}catch{}throw new Error(s||`HTTP ${r.status}`)}function Ym(t,e){const n=U.c(15),{org:r}=Me();let s;n[0]!==r.id||n[1]!==e||n[2]!==t?(s=xe.orgFsList(r.id,t,e),n[0]=r.id,n[1]=e,n[2]=t,n[3]=s):s=n[3];let i;n[4]!==r.id||n[5]!==t?(i=(a,d)=>d?.queryKey[1]===r.id&&d.queryKey[2]===t?a:void 0,n[4]=r.id,n[5]=t,n[6]=i):i=n[6];let o;n[7]!==r.slug||n[8]!==e||n[9]!==t?(o=async()=>(await(await Je(jt(r.slug,t,"list",{path:e}))).json()).entries.toSorted(cd),n[7]=r.slug,n[8]=e,n[9]=t,n[10]=o):o=n[10];let l;return n[11]!==s||n[12]!==i||n[13]!==o?(l={queryKey:s,placeholderData:i,queryFn:o},n[11]=s,n[12]=i,n[13]=o,n[14]=l):l=n[14],Ze(l)}function cd(t,e){return t.kind!==e.kind?t.kind==="dir"?-1:1:t.path.localeCompare(e.path)}function Zm(t,e,n){const r=U.c(15),{org:s}=Me();let i;r[0]!==s.id||r[1]!==e||r[2]!==t?(i=xe.orgFsStat(s.id,t??"",e),r[0]=s.id,r[1]=e,r[2]=t,r[3]=i):i=r[3];const o=t!==null;let l;r[4]!==n?(l=n?.refetchIntervalWhenAbsent?f=>f.state.data?!1:n.refetchIntervalWhenAbsent??!1:void 0,r[4]=n,r[5]=l):l=r[5];let a;r[6]!==s.slug||r[7]!==e||r[8]!==t?(a=async()=>{const f=await Je(jt(s.slug,t??"","stat",{path:e}),void 0,{allow404:!0});return f.status===404?null:(await f.json()).entry},r[6]=s.slug,r[7]=e,r[8]=t,r[9]=a):a=r[9];let d;return r[10]!==i||r[11]!==o||r[12]!==l||r[13]!==a?(d={queryKey:i,enabled:o,refetchInterval:l,queryFn:a},r[10]=i,r[11]=o,r[12]=l,r[13]=a,r[14]=d):d=r[14],Ze(d)}function Jm(t){const e=U.c(9),{org:n}=Me();let r;e[0]!==n.id||e[1]!==t?(r=xe.orgFsUsage(n.id,t),e[0]=n.id,e[1]=t,e[2]=r):r=e[2];let s;e[3]!==n.slug||e[4]!==t?(s=async()=>await(await Je(jt(n.slug,t,"usage"))).json(),e[3]=n.slug,e[4]=t,e[5]=s):s=e[5];let i;return e[6]!==r||e[7]!==s?(i={queryKey:r,queryFn:s},e[6]=r,e[7]=s,e[8]=i):i=e[8],Ze(i)}function e1(t,e){const n=U.c(9),r=t===void 0?60:t,{org:s}=Me();let i;n[0]!==s.id?(i=xe.orgFsRecent(s.id),n[0]=s.id,n[1]=i):i=n[1];const o=e?.enabled;let l;n[2]!==r||n[3]!==s.slug?(l=async()=>(await(await Je(`/api/${encodeURIComponent(s.slug)}/fs/recent?limit=${r}`)).json()).entries,n[2]=r,n[3]=s.slug,n[4]=l):l=n[4];let a;return n[5]!==i||n[6]!==o||n[7]!==l?(a={queryKey:i,enabled:o,queryFn:l},n[5]=i,n[6]=o,n[7]=l,n[8]=a):a=n[8],Ze(a)}const dd=50;function t1(t,e){const n=U.c(16),{org:r}=Me();let s;n[0]!==r.id||n[1]!==t||n[2]!==e?.prefix||n[3]!==e?.volume?(s=xe.orgFsSearch(r.id,t,e?.volume??"",e?.prefix??""),n[0]=r.id,n[1]=t,n[2]=e?.prefix,n[3]=e?.volume,n[4]=s):s=n[4];const i=t.length>0;let o;n[5]!==r.id?(o=(d,f)=>f?.queryKey[1]===r.id?d:void 0,n[5]=r.id,n[6]=o):o=n[6];let l;n[7]!==r.slug||n[8]!==t||n[9]!==e?(l=async()=>{const d=new URLSearchParams({q:t,limit:String(dd)});return e&&(d.set("volume",e.volume),e.prefix&&d.set("prefix",e.prefix)),(await(await Je(`/api/${encodeURIComponent(r.slug)}/fs/search?${d}`)).json()).entries},n[7]=r.slug,n[8]=t,n[9]=e,n[10]=l):l=n[10];let a;return n[11]!==s||n[12]!==i||n[13]!==o||n[14]!==l?(a={queryKey:s,enabled:i,placeholderData:o,queryFn:l},n[11]=s,n[12]=i,n[13]=o,n[14]=l,n[15]=a):a=n[15],Ze(a)}function n1(t){const e=U.c(8),{org:n}=Me();let r;e[0]!==n.id?(r=xe.orgFsSkills(n.id),e[0]=n.id,e[1]=r):r=e[1];const s=t?.enabled;let i;e[2]!==n.slug?(i=async()=>{const l=await Je(`/api/${encodeURIComponent(n.slug)}/fs/skills`),{skills:a}=await l.json();return a.map(ud)},e[2]=n.slug,e[3]=i):i=e[3];let o;return e[4]!==r||e[5]!==s||e[6]!==i?(o={queryKey:r,enabled:s,queryFn:i},e[4]=r,e[5]=s,e[6]=i,e[7]=o):o=e[7],Ze(o)}function ud(t){return{volume:t.volume,path:t.path}}async function s1(t){const e=await Je(`/api/${encodeURIComponent(t)}/fs/skills`),{skills:n}=await e.json();return n}async function fd(t,e,n){return(await Je(jt(t,e,"read",{path:n}))).text()}function r1(t,e){const n=U.c(8);let r;n[0]!==t?(r=xe.fileText(t),n[0]=t,n[1]=r):r=n[1];const s=e?.enabled!==!1&&t!=="";let i;n[2]!==t?(i=async()=>{const l=await fetch(t,{credentials:"include"});return l.ok?await l.text():null},n[2]=t,n[3]=i):i=n[3];let o;return n[4]!==r||n[5]!==s||n[6]!==i?(o={queryKey:r,enabled:s,staleTime:6e4,retry:!1,queryFn:i},n[4]=r,n[5]=s,n[6]=i,n[7]=o):o=n[7],Ze(o)}const hd=new Set(["md","mdx","markdown","txt","text"]),pd=25,gd=64*1024,md=256*1024,xd=4;function bd(t){const e=t.lastIndexOf(".");return e===-1?!1:hd.has(t.slice(e+1).toLowerCase())}async function i1(t,e,n){const r=n?`${n}/`:"",s=h=>h.startsWith(r)?h.slice(r.length):h,i=[],o=[],l=[{path:n,depth:0}];for(;l.length>0;){const h=l.shift();if(!h)break;let p;try{p=(await(await Je(jt(t,e,"list",{path:h.path}))).json()).entries}catch{continue}for(const u of[...p].sort((m,y)=>m.path.localeCompare(y.path))){if(u.kind==="dir"){h.depth<xd&&l.push({path:u.path,depth:h.depth+1});continue}bd(u.path)&&u.size<=gd&&i.length<pd?i.push(u.path):o.push(s(u.path))}}const a=await Promise.all(i.map(h=>fd(t,e,h).catch(()=>null))),d=[];let f=0;return i.forEach((h,p)=>{const u=a[p];if(u==null||f+u.length>md){o.push(s(h));return}f+=u.length,d.push({relPath:s(h),content:u})}),d.sort((h,p)=>h.relPath==="SKILL.md"?-1:p.relPath==="SKILL.md"?1:h.relPath.localeCompare(p.relPath)),o.sort(),{files:d,omittedPaths:o}}function o1(){const t=U.c(7),{org:e}=Me();let n;t[0]!==e.id?(n=xe.orgFsPublicSets(e.id),t[0]=e.id,t[1]=n):n=t[1];let r;t[2]!==e.slug?(r=async()=>(await(await Je(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,t[2]=e.slug,t[3]=r):r=t[3];let s;return t[4]!==n||t[5]!==r?(s={queryKey:n,staleTime:3e5,queryFn:r},t[4]=n,t[5]=r,t[6]=s):s=t[6],Ze(s)}function yd(t){const e=U.c(3),{org:n}=Me();let r;return e[0]!==n.slug||e[1]!==t?(r=s=>jt(n.slug,t,"read",{path:s}),e[0]=n.slug,e[1]=t,e[2]=r):r=e[2],r}function l1(){const t=U.c(2),{org:e}=Me();let n;return t[0]!==e.slug?(n=(r,s)=>jt(e.slug,r,"read",{path:s}),t[0]=e.slug,t[1]=n):n=t[1],n}function a1(t){const e=U.c(3),{org:n}=Me();let r;return e[0]!==n||e[1]!==t?(r={mutationFn:async s=>(await(await Je(jt(n.slug,t,"file",{path:s.path}),{method:"PUT",headers:{"content-type":s.contentType??"text/html; charset=utf-8"},body:s.body})).json()).entry},e[0]=n,e[1]=t,e[2]=r):r=e[2],Ye(r)}function c1(t){const e=U.c(18),{org:n}=Me(),r=pn();let s;e[0]!==n||e[1]!==t?(s=async d=>(await(await Je(jt(n.slug,t,"public",{path:d.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:d.mode,password:d.password})})).json()).entry,e[0]=n,e[1]=t,e[2]=s):s=e[2];let i;e[3]!==n||e[4]!==r||e[5]!==t?(i=async d=>{const f=xe.orgFsStat(n.id,t,d.path);await r.cancelQueries({queryKey:f});const h=r.getQueryData(f),p=d.mode!=="private";return r.setQueryData(f,u=>u&&{...u,readPublic:p,effectivePublic:p,shareMode:d.mode}),{key:f,previous:h}},e[3]=n,e[4]=r,e[5]=t,e[6]=i):i=e[6];let o;e[7]!==r?(o=(d,f,h)=>{h&&r.setQueryData(h.key,h.previous)},e[7]=r,e[8]=o):o=e[8];let l;e[9]!==n||e[10]!==r||e[11]!==t?(l=(d,f,h)=>{r.invalidateQueries({queryKey:xe.orgFsStat(n.id,t,h.path)}),r.invalidateQueries({queryKey:xe.orgFsVolume(n.id,t)}),r.invalidateQueries({queryKey:xe.orgFsRecent(n.id)}),r.invalidateQueries({queryKey:xe.orgFsSearchRoot(n.id)})},e[9]=n,e[10]=r,e[11]=t,e[12]=l):l=e[12];let a;return e[13]!==s||e[14]!==i||e[15]!==o||e[16]!==l?(a={mutationFn:s,onMutate:i,onError:o,onSettled:l},e[13]=s,e[14]=i,e[15]=o,e[16]=l,e[17]=a):a=e[17],Ye(a)}function kd(t){const e=U.c(33),{org:n}=Me(),r=pn();let s;e[0]!==n||e[1]!==r||e[2]!==t?(s=()=>{r.invalidateQueries({queryKey:xe.orgFsVolume(n.id,t)}),r.invalidateQueries({queryKey:xe.orgFsRecent(n.id)}),r.invalidateQueries({queryKey:xe.orgFsSearchRoot(n.id)})},e[0]=n,e[1]=r,e[2]=t,e[3]=s):s=e[3];const i=s;let o;e[4]!==n||e[5]!==t?(o=async k=>{const w=(await Promise.allSettled(k.files.map(j=>{const C=k.dir?`${k.dir}/${j.name}`:j.name;return Je(jt(n.slug,t,"file",{path:C}),{method:"PUT",headers:{"content-type":j.type||"application/octet-stream"},body:j})}))).find(vd);if(w)throw w.reason},e[4]=n,e[5]=t,e[6]=o):o=e[6];let l;e[7]!==i||e[8]!==o?(l={mutationFn:o,onSettled:i},e[7]=i,e[8]=o,e[9]=l):l=e[9];const a=Ye(l);let d;e[10]!==n||e[11]!==t?(d=async k=>{await Je(jt(n.slug,t,"dir",{path:k}),{method:"POST"})},e[10]=n,e[11]=t,e[12]=d):d=e[12];let f;e[13]!==i||e[14]!==d?(f={mutationFn:d,onSuccess:i},e[13]=i,e[14]=d,e[15]=f):f=e[15];const h=Ye(f);let p;e[16]!==n||e[17]!==t?(p=async k=>{await Je(jt(n.slug,t,"file",{path:k}),{method:"DELETE"})},e[16]=n,e[17]=t,e[18]=p):p=e[18];let u;e[19]!==i||e[20]!==p?(u={mutationFn:p,onSuccess:i},e[19]=i,e[20]=p,e[21]=u):u=e[21];const m=Ye(u);let y;e[22]!==n||e[23]!==t?(y=async k=>{await Je(jt(n.slug,t,"move"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(k)})},e[22]=n,e[23]=t,e[24]=y):y=e[24];let b;e[25]!==i||e[26]!==y?(b={mutationFn:y,onSuccess:i},e[25]=i,e[26]=y,e[27]=b):b=e[27];const g=Ye(b);let x;return e[28]!==h||e[29]!==g||e[30]!==m||e[31]!==a?(x={upload:a,mkdir:h,remove:m,move:g},e[28]=h,e[29]=g,e[30]=m,e[31]=a,e[32]=x):x=e[32],x}function vd(t){return t.status==="rejected"}function wd(t){return t?t.run_in_progress?"generating":t.scanned_at?"ready":"none":"none"}const Sd=2e4;function Cd(t){if(typeof t!="string"||!t)return null;try{return new URL(t).hostname||null}catch{return null}}function jd(){const t=U.c(17),{org:e}=Me(),n=Ua.COMMERCE_DISCOVERY(e.id);let r;t[0]!==e.id||t[1]!==e.slug?(r=zi({connectionId:Ko,orgId:e.id,orgSlug:e.slug}),t[0]=e.id,t[1]=e.slug,t[2]=r):r=t[2];const{data:s}=Ze(r),o=Ze({queryKey:xe.commerceDiscoveryConnection(e.id,n),enabled:!!s,retry:!1,staleTime:6e4,queryFn:async()=>{if(!s)throw new Error("selfClient not ready");const k=await s.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:n}});return zr(k)}}).data?.item??null,{data:l}=Ze({...zi({connectionId:n,orgId:e.id,orgSlug:e.slug}),enabled:!!o}),a=xe.commerceDiscoveryDiagnostic(e.id,n),d=!!l;let f;t[3]!==l?(f=async()=>{if(!l)throw new Error("cdClient not ready");const k=await l.callTool({name:Ho,arguments:{}});return zr(k).diagnostic??null},t[3]=l,t[4]=f):f=t[4];let h;t[5]!==a||t[6]!==d||t[7]!==f?(h={queryKey:a,enabled:d,retry:1,refetchInterval:Td,queryFn:f},t[5]=a,t[6]=d,t[7]=f,t[8]=h):h=t[8];const p=Ze(h),u=p.data??null,m=p.isSuccess,y=o?.metadata?.siteUrl;let b;t[9]!==y?(b=Cd(y),t[9]=y,t[10]=b):b=t[10];const g=l??null;let x;return t[11]!==n||t[12]!==p.isSuccess||t[13]!==u||t[14]!==b||t[15]!==g?(x={diagnostic:u,isSuccess:m,host:b,connectionId:n,cdClient:g},t[11]=n,t[12]=p.isSuccess,t[13]=u,t[14]=b,t[15]=g,t[16]=x):x=t[16],x}function Td(t){return t.state.status!=="error"&&wd(t.state.data)==="generating"?Sd:!1}function Nd(t,e){return{to:"/$org/$taskId",params:{org:t.slug,taskId:crypto.randomUUID()},search:{virtualmcpid:qa(t.id),main:zc(e,Ho)}}}function Dd(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return S.useMemo(()=>r=>{e.forEach(s=>s(r))},e)}const hr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ss(t){const e=Object.prototype.toString.call(t);return e==="[object Window]"||e==="[object global]"}function pi(t){return"nodeType"in t}function it(t){var e,n;return t?ss(t)?t:pi(t)&&(e=(n=t.ownerDocument)==null?void 0:n.defaultView)!=null?e:window:window}function gi(t){const{Document:e}=it(t);return t instanceof e}function Rs(t){return ss(t)?!1:t instanceof it(t).HTMLElement}function cl(t){return t instanceof it(t).SVGElement}function rs(t){return t?ss(t)?t.document:pi(t)?gi(t)?t:Rs(t)||cl(t)?t.ownerDocument:document:document:document}const Ft=hr?S.useLayoutEffect:S.useEffect;function pr(t){const e=S.useRef(t);return Ft(()=>{e.current=t}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return e.current==null?void 0:e.current(...r)},[])}function Rd(){const t=S.useRef(null),e=S.useCallback((r,s)=>{t.current=setInterval(r,s)},[]),n=S.useCallback(()=>{t.current!==null&&(clearInterval(t.current),t.current=null)},[]);return[e,n]}function Ss(t,e){e===void 0&&(e=[t]);const n=S.useRef(t);return Ft(()=>{n.current!==t&&(n.current=t)},e),n}function Es(t,e){const n=S.useRef();return S.useMemo(()=>{const r=t(n.current);return n.current=r,r},[...e])}function Zs(t){const e=pr(t),n=S.useRef(null),r=S.useCallback(s=>{s!==n.current&&e?.(s,n.current),n.current=s},[]);return[n,r]}function Js(t){const e=S.useRef();return S.useEffect(()=>{e.current=t},[t]),e.current}let Dr={};function Is(t,e){return S.useMemo(()=>{if(e)return e;const n=Dr[t]==null?0:Dr[t]+1;return Dr[t]=n,t+"-"+n},[t,e])}function dl(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return r.reduce((i,o)=>{const l=Object.entries(o);for(const[a,d]of l){const f=i[a];f!=null&&(i[a]=f+t*d)}return i},{...e})}}const Zn=dl(1),Cs=dl(-1);function Ed(t){return"clientX"in t&&"clientY"in t}function gr(t){if(!t)return!1;const{KeyboardEvent:e}=it(t.target);return e&&t instanceof e}function Id(t){if(!t)return!1;const{TouchEvent:e}=it(t.target);return e&&t instanceof e}function er(t){if(Id(t)){if(t.touches&&t.touches.length){const{clientX:e,clientY:n}=t.touches[0];return{x:e,y:n}}else if(t.changedTouches&&t.changedTouches.length){const{clientX:e,clientY:n}=t.changedTouches[0];return{x:e,y:n}}}return Ed(t)?{x:t.clientX,y:t.clientY}:null}const on=Object.freeze({Translate:{toString(t){if(!t)return;const{x:e,y:n}=t;return"translate3d("+(e?Math.round(e):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(t){if(!t)return;const{scaleX:e,scaleY:n}=t;return"scaleX("+e+") scaleY("+n+")"}},Transform:{toString(t){if(t)return[on.Translate.toString(t),on.Scale.toString(t)].join(" ")}},Transition:{toString(t){let{property:e,duration:n,easing:r}=t;return e+" "+n+"ms "+r}}}),Fi="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function _d(t){return t.matches(Fi)?t:t.querySelector(Fi)}const Ad={display:"none"};function Bd(t){let{id:e,value:n}=t;return Te.createElement("div",{id:e,style:Ad},n)}function Od(t){let{id:e,announcement:n,ariaLiveType:r="assertive"}=t;const s={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Te.createElement("div",{id:e,style:s,role:"status","aria-live":r,"aria-atomic":!0},n)}function $d(){const[t,e]=S.useState("");return{announce:S.useCallback(r=>{r!=null&&e(r)},[]),announcement:t}}const ul=S.createContext(null);function Md(t){const e=S.useContext(ul);S.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(t)},[t,e])}function zd(){const[t]=S.useState(()=>new Set),e=S.useCallback(r=>(t.add(r),()=>t.delete(r)),[t]);return[S.useCallback(r=>{let{type:s,event:i}=r;t.forEach(o=>{var l;return(l=o[s])==null?void 0:l.call(o,i)})},[t]),e]}const Ld={draggable:`
|
|
3
3
|
To pick up a draggable item, press the space bar.
|
|
4
4
|
While dragging, use the arrow keys to move the item.
|
|
5
5
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
@@ -74,4 +74,4 @@ Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error
|
|
|
74
74
|
`))}if(t.threads.length>0){const r=t.threads.map(s=>{const i=s.title?.trim()||"Untitled chat";return s.status?`- ${i} [${s.status}]`:`- ${i}`});n.push(["## Other chats on this task",...r].join(`
|
|
75
75
|
`))}return n.join(`
|
|
76
76
|
|
|
77
|
-
`)}const Yr="__unassigned__",dr={assignee:null,priority:null,due:null};function mg(t){return t.assignee!==null||t.priority!==null||t.due!==null}function xg(t){return(t.assignee!==null?1:0)+(t.priority!==null?1:0)+(t.due!==null?1:0)}const bg=864e5;function yg(t,e){const n=new Date(t),r=new Date(e);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()}function kg(t,e){if(e.assignee!==null){if(e.assignee===Yr){if(t.assigneeId!==null)return!1}else if(t.assigneeId!==e.assignee)return!1}if(e.priority!==null&&t.priority!==e.priority)return!1;if(e.due!==null)if(e.due==="none"){if(t.dueDate)return!1}else{if(!t.dueDate)return!1;const n=new Date(t.dueDate).getTime(),r=Date.now();if(e.due==="overdue"&&n>=r||e.due==="today"&&!yg(n,r)||e.due==="week"&&(n<r||n>r+7*bg))return!1}return!0}const To={overdue:"taskBoard.taskFilters.dueDateFilterOverdue",today:"taskBoard.taskFilters.dueDateFilterDueToday",week:"taskBoard.taskFilters.dueDateFilterDueThisWeek",none:"taskBoard.taskFilters.dueDateFilterNoDueDate"};function vr(t,e=!1){return Z("inline-flex h-8 items-center gap-1.5 rounded-lg border px-2.5 text-xs font-medium outline-none transition-colors",e&&"h-10 w-full justify-start px-3 text-sm",t?"border-transparent bg-accent text-foreground":"border-border text-muted-foreground hover:bg-muted/60 hover:text-foreground")}function vg(t){const e=U.c(95),{value:n,members:r,onChange:s,block:i}=t,o=oe(),[l,a]=S.useState(!1);let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=c.jsx(Mr,{size:14,className:"shrink-0"}),e[0]=d):d=e[0];let f=d,h;e[1]!==o?(h=o("taskBoard.taskFilters.assigneeLabel"),e[1]=o,e[2]=h):h=e[2];let p=h;if(n===Yr){let q;e[3]!==o?(q=o("taskBoard.taskFilters.assigneeUnassigned"),e[3]=o,e[4]=q):q=e[4],p=q}else if(n===$e){let q;e[5]===Symbol.for("react.memo_cache_sentinel")?(q=c.jsx(Pt,{size:14}),e[5]=q):q=e[5],f=q;let V;e[6]!==o?(V=o("taskBoard.taskFilters.assigneeSuperAgent"),e[6]=o,e[7]=V):V=e[7],p=V}else if(n){let q,V,J,ie;if(e[8]!==r||e[9]!==n){let H;e[14]!==n?(H=le=>le.userId===n,e[14]=n,e[15]=H):H=e[15],V=r.find(H),q=At,J=V?.user?.image??void 0,ie=_t(V?.user?.name),e[8]=r,e[9]=n,e[10]=q,e[11]=V,e[12]=J,e[13]=ie}else q=e[10],V=e[11],J=e[12],ie=e[13];let te;e[16]!==q||e[17]!==J||e[18]!==ie?(te=c.jsx(q,{url:J,fallback:ie,shape:"circle",size:"2xs"}),e[16]=q,e[17]=J,e[18]=ie,e[19]=te):te=e[19],f=te;let P;e[20]!==V?.user?.name||e[21]!==o?(P=V?.user?.name??o("taskBoard.taskFilters.assigneeMember"),e[20]=V?.user?.name,e[21]=o,e[22]=P):P=e[22],p=P}let u;e[23]!==s?(u=q=>{s(q),a(!1)},e[23]=s,e[24]=u):u=e[24];const m=u,y=n!==null;let b;e[25]!==i||e[26]!==y?(b=vr(y,i),e[25]=i,e[26]=y,e[27]=b):b=e[27];const g=b,x=i&&"ml-auto";let k;e[28]!==x?(k=Z("shrink-0 opacity-60",x),e[28]=x,e[29]=k):k=e[29];const v=k;let w;e[30]!==p?(w=c.jsx("span",{className:"max-w-[10rem] truncate",children:p}),e[30]=p,e[31]=w):w=e[31];let j;e[32]!==v?(j=c.jsx(fi,{size:12,className:v}),e[32]=v,e[33]=j):j=e[33];let C;e[34]!==f||e[35]!==w||e[36]!==j||e[37]!==g?(C=c.jsx(Xn,{asChild:!0,children:c.jsxs("button",{type:"button",className:g,children:[f,w,j]})}),e[34]=f,e[35]=w,e[36]=j,e[37]=g,e[38]=C):C=e[38];let T;e[39]!==o?(T=o("taskBoard.taskFilters.assigneeFilterPlaceholder"),e[39]=o,e[40]=T):T=e[40];let D;e[41]!==T?(D=c.jsx(ai,{placeholder:T,className:"h-9"}),e[41]=T,e[42]=D):D=e[42];let E;e[43]!==o?(E=o("taskBoard.taskFilters.assigneeNoMembersFound"),e[43]=o,e[44]=E):E=e[44];let N;e[45]!==E?(N=c.jsx(ci,{children:E}),e[45]=E,e[46]=N):N=e[46];let I;e[47]!==m?(I=()=>m(null),e[47]=m,e[48]=I):I=e[48];let A;e[49]!==o?(A=o("taskBoard.taskFilters.assigneeAnyone"),e[49]=o,e[50]=A):A=e[50];let _;e[51]!==I||e[52]!==A?(_=c.jsx(en,{value:"Anyone",onSelect:I,children:A}),e[51]=I,e[52]=A,e[53]=_):_=e[53];let z;e[54]!==m?(z=()=>m(Yr),e[54]=m,e[55]=z):z=e[55];let R;e[56]===Symbol.for("react.memo_cache_sentinel")?(R=c.jsx(Mr,{size:16,className:"text-muted-foreground"}),e[56]=R):R=e[56];let O;e[57]!==o?(O=o("taskBoard.taskFilters.assigneeUnassigned"),e[57]=o,e[58]=O):O=e[58];let L;e[59]!==z||e[60]!==O?(L=c.jsxs(en,{value:"Unassigned",onSelect:z,className:"gap-2",children:[R,O]}),e[59]=z,e[60]=O,e[61]=L):L=e[61];let B;e[62]!==m?(B=()=>m($e),e[62]=m,e[63]=B):B=e[63];let F;e[64]===Symbol.for("react.memo_cache_sentinel")?(F=c.jsx(Pt,{size:16}),e[64]=F):F=e[64];let $;e[65]!==o?($=o("taskBoard.taskFilters.assigneeSuperAgent"),e[65]=o,e[66]=$):$=e[66];let W;e[67]!==B||e[68]!==$?(W=c.jsxs(en,{value:"Super Agent",onSelect:B,className:"gap-2",children:[F,$]}),e[67]=B,e[68]=$,e[69]=W):W=e[69];let K;e[70]!==_||e[71]!==L||e[72]!==W?(K=c.jsxs(ns,{children:[_,L,W]}),e[70]=_,e[71]=L,e[72]=W,e[73]=K):K=e[73];let Q;e[74]!==o?(Q=o("taskBoard.taskFilters.assigneeGroupMembers"),e[74]=o,e[75]=Q):Q=e[75];let G;if(e[76]!==r||e[77]!==m){let q;e[79]!==m?(q=V=>c.jsxs(en,{value:V.user?.name??V.userId,onSelect:()=>m(V.userId),className:"gap-2",children:[c.jsx(At,{url:V.user?.image??void 0,fallback:_t(V.user?.name),shape:"circle",size:"2xs"}),c.jsx("span",{className:"truncate",children:V.user?.name??V.userId})]},V.userId),e[79]=m,e[80]=q):q=e[80],G=r.map(q),e[76]=r,e[77]=m,e[78]=G}else G=e[78];let Y;e[81]!==Q||e[82]!==G?(Y=c.jsx(ns,{heading:Q,children:G}),e[81]=Q,e[82]=G,e[83]=Y):Y=e[83];let ee;e[84]!==N||e[85]!==K||e[86]!==Y?(ee=c.jsxs(di,{children:[N,K,Y]}),e[84]=N,e[85]=K,e[86]=Y,e[87]=ee):ee=e[87];let se;e[88]!==D||e[89]!==ee?(se=c.jsx(xs,{align:"start",className:"w-56 p-0",children:c.jsxs(ui,{children:[D,ee]})}),e[88]=D,e[89]=ee,e[90]=se):se=e[90];let re;return e[91]!==l||e[92]!==C||e[93]!==se?(re=c.jsxs(bs,{open:l,onOpenChange:a,children:[C,se]}),e[91]=l,e[92]=C,e[93]=se,e[94]=re):re=e[94],re}function wg(t){const e=U.c(33),{value:n,onChange:r,block:s}=t,i=oe(),o=n!==null;let l;e[0]!==s||e[1]!==o?(l=vr(o,s),e[0]=s,e[1]=o,e[2]=l):l=e[2];const a=l,d=s&&"ml-auto";let f;e[3]!==d?(f=Z("shrink-0 opacity-60",d),e[3]=d,e[4]=f):f=e[4];const h=f;let p;e[5]!==n?(p=n?c.jsx("span",{className:Z("size-2 shrink-0 rounded-full",It[n].dotClassName)}):c.jsx(Hc,{size:14,className:"shrink-0"}),e[5]=n,e[6]=p):p=e[6];let u;e[7]!==i||e[8]!==n?(u=i(n?It[n].labelKey:"taskBoard.taskFilters.priorityLabel"),e[7]=i,e[8]=n,e[9]=u):u=e[9];let m;e[10]!==h?(m=c.jsx(fi,{size:12,className:h}),e[10]=h,e[11]=m):m=e[11];let y;e[12]!==p||e[13]!==u||e[14]!==m||e[15]!==a?(y=c.jsx(dn,{asChild:!0,children:c.jsxs("button",{type:"button",className:a,children:[p,u,m]})}),e[12]=p,e[13]=u,e[14]=m,e[15]=a,e[16]=y):y=e[16];let b;e[17]!==r?(b=()=>r(null),e[17]=r,e[18]=b):b=e[18];let g;e[19]!==i?(g=i("taskBoard.taskFilters.priorityAnyPriority"),e[19]=i,e[20]=g):g=e[20];let x;e[21]!==g||e[22]!==b?(x=c.jsx(Ct,{onSelect:b,children:g}),e[21]=g,e[22]=b,e[23]=x):x=e[23];let k;e[24]!==r||e[25]!==i?(k=Si.map(j=>c.jsxs(Ct,{onSelect:()=>r(j),className:"gap-2",children:[c.jsx("span",{className:Z("size-2 rounded-full",It[j].dotClassName)}),i(It[j].labelKey)]},j)),e[24]=r,e[25]=i,e[26]=k):k=e[26];let v;e[27]!==x||e[28]!==k?(v=c.jsxs(un,{align:"start",className:"w-40",children:[x,k]}),e[27]=x,e[28]=k,e[29]=v):v=e[29];let w;return e[30]!==v||e[31]!==y?(w=c.jsxs(fn,{children:[y,v]}),e[30]=v,e[31]=y,e[32]=w):w=e[32],w}function Sg(t){const e=U.c(35),{value:n,onChange:r,block:s}=t,i=oe();let o;e[0]!==i||e[1]!==n?(o=n?i(To[n]):void 0,e[0]=i,e[1]=n,e[2]=o):o=e[2];const l=o,a=n!==null;let d;e[3]!==s||e[4]!==a?(d=vr(a,s),e[3]=s,e[4]=a,e[5]=d):d=e[5];const f=d,h=s&&"ml-auto";let p;e[6]!==h?(p=Z("shrink-0 opacity-60",h),e[6]=h,e[7]=p):p=e[7];const u=p;let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=c.jsx(Yn,{size:14,className:"shrink-0"}),e[8]=m):m=e[8];let y;e[9]!==l||e[10]!==i?(y=l??i("taskBoard.taskFilters.dueDateLabel"),e[9]=l,e[10]=i,e[11]=y):y=e[11];let b;e[12]!==u?(b=c.jsx(fi,{size:12,className:u}),e[12]=u,e[13]=b):b=e[13];let g;e[14]!==y||e[15]!==b||e[16]!==f?(g=c.jsx(dn,{asChild:!0,children:c.jsxs("button",{type:"button",className:f,children:[m,y,b]})}),e[14]=y,e[15]=b,e[16]=f,e[17]=g):g=e[17];let x;e[18]!==r?(x=()=>r(null),e[18]=r,e[19]=x):x=e[19];let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=c.jsx(Yn,{size:16,className:"text-muted-foreground"}),e[20]=k):k=e[20];let v;e[21]!==i?(v=i("taskBoard.taskFilters.dueDateAnyTime"),e[21]=i,e[22]=v):v=e[22];let w;e[23]!==x||e[24]!==v?(w=c.jsxs(Ct,{onSelect:x,className:"gap-2",children:[k,v]}),e[23]=x,e[24]=v,e[25]=w):w=e[25];let j;e[26]!==r||e[27]!==i?(j=Object.entries(To).map(D=>{const[E,N]=D,I=E==="overdue";return c.jsxs(Ct,{onSelect:()=>r(E),className:Z("gap-2",I&&"text-destructive"),children:[c.jsx(Yn,{size:16,className:Z("shrink-0",I?"text-destructive":"text-muted-foreground")}),i(N)]},E)}),e[26]=r,e[27]=i,e[28]=j):j=e[28];let C;e[29]!==w||e[30]!==j?(C=c.jsxs(un,{align:"start",className:"w-44",children:[w,j]}),e[29]=w,e[30]=j,e[31]=C):C=e[31];let T;return e[32]!==C||e[33]!==g?(T=c.jsxs(fn,{children:[g,C]}),e[32]=C,e[33]=g,e[34]=T):T=e[34],T}function ga(t){const e=U.c(26),{filters:n,members:r,onChange:s,block:i}=t;let o;e[0]!==n||e[1]!==s?(o=u=>s({...n,assignee:u}),e[0]=n,e[1]=s,e[2]=o):o=e[2];let l;e[3]!==i||e[4]!==n.assignee||e[5]!==r||e[6]!==o?(l=c.jsx(vg,{block:i,value:n.assignee,members:r,onChange:o}),e[3]=i,e[4]=n.assignee,e[5]=r,e[6]=o,e[7]=l):l=e[7];let a;e[8]!==n||e[9]!==s?(a=u=>s({...n,priority:u}),e[8]=n,e[9]=s,e[10]=a):a=e[10];let d;e[11]!==i||e[12]!==n.priority||e[13]!==a?(d=c.jsx(wg,{block:i,value:n.priority,onChange:a}),e[11]=i,e[12]=n.priority,e[13]=a,e[14]=d):d=e[14];let f;e[15]!==n||e[16]!==s?(f=u=>s({...n,due:u}),e[15]=n,e[16]=s,e[17]=f):f=e[17];let h;e[18]!==i||e[19]!==n.due||e[20]!==f?(h=c.jsx(Sg,{block:i,value:n.due,onChange:f}),e[18]=i,e[19]=n.due,e[20]=f,e[21]=h):h=e[21];let p;return e[22]!==l||e[23]!==d||e[24]!==h?(p=c.jsxs(c.Fragment,{children:[l,d,h]}),e[22]=l,e[23]=d,e[24]=h,e[25]=p):p=e[25],p}function Cg(t){const e=U.c(12),{filters:n,members:r,onChange:s}=t,i=oe();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=c.jsx(al,{size:16,className:"mr-0.5 shrink-0 text-muted-foreground"}),e[0]=o):o=e[0];let l;e[1]!==n||e[2]!==r||e[3]!==s?(l=c.jsx(ga,{filters:n,members:r,onChange:s}),e[1]=n,e[2]=r,e[3]=s,e[4]=l):l=e[4];let a;e[5]!==n||e[6]!==s||e[7]!==i?(a=mg(n)&&c.jsx("button",{type:"button",onClick:()=>s(dr),className:"ml-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground",children:i("taskBoard.taskFilters.clearButton")}),e[5]=n,e[6]=s,e[7]=i,e[8]=a):a=e[8];let d;return e[9]!==l||e[10]!==a?(d=c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[o,l,a]}),e[9]=l,e[10]=a,e[11]=d):d=e[11],d}function jg(t){const e=U.c(38),{filters:n,members:r,onChange:s}=t,i=oe(),[o,l]=S.useState(!1),a=xg(n),d=a>0;let f;e[0]!==d?(f=vr(d),e[0]=d,e[1]=f):f=e[1];const h=f;let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p=c.jsx(al,{size:14,className:"shrink-0"}),e[2]=p):p=e[2];let u;e[3]!==i?(u=i("taskBoard.taskFilters.filterDrawerButtonLabel"),e[3]=i,e[4]=u):u=e[4];let m;e[5]!==a?(m=a>0&&c.jsx("span",{className:"ml-0.5 flex size-4 items-center justify-center rounded-full bg-foreground text-[10px] font-semibold text-background",children:a}),e[5]=a,e[6]=m):m=e[6];let y;e[7]!==u||e[8]!==m||e[9]!==h?(y=c.jsx(Lc,{asChild:!0,children:c.jsxs("button",{type:"button",className:h,children:[p,u,m]})}),e[7]=u,e[8]=m,e[9]=h,e[10]=y):y=e[10];let b;e[11]!==i?(b=i("taskBoard.taskFilters.filterDrawerTitle"),e[11]=i,e[12]=b):b=e[12];let g;e[13]!==b?(g=c.jsx(Pc,{className:"px-4 pt-4 text-base font-medium text-foreground",children:b}),e[13]=b,e[14]=g):g=e[14];let x;e[15]!==n||e[16]!==r||e[17]!==s?(x=c.jsx("div",{className:"flex flex-col gap-2 p-4",children:c.jsx(ga,{block:!0,filters:n,members:r,onChange:s})}),e[15]=n,e[16]=r,e[17]=s,e[18]=x):x=e[18];let k;e[19]!==a||e[20]!==s||e[21]!==i?(k=a>0&&c.jsx(Ae,{variant:"outline",className:"flex-1",onClick:()=>s(dr),children:i("taskBoard.taskFilters.clearAllButton")}),e[19]=a,e[20]=s,e[21]=i,e[22]=k):k=e[22];let v;e[23]!==i?(v=i("taskBoard.taskFilters.doneButton"),e[23]=i,e[24]=v):v=e[24];let w;e[25]!==v?(w=c.jsx(Fc,{asChild:!0,children:c.jsx(Ae,{className:"flex-1",children:v})}),e[25]=v,e[26]=w):w=e[26];let j;e[27]!==k||e[28]!==w?(j=c.jsxs(Uc,{className:"flex-row gap-2",children:[k,w]}),e[27]=k,e[28]=w,e[29]=j):j=e[29];let C;e[30]!==j||e[31]!==g||e[32]!==x?(C=c.jsxs(qc,{className:"p-0",children:[g,x,j]}),e[30]=j,e[31]=g,e[32]=x,e[33]=C):C=e[33];let T;return e[34]!==o||e[35]!==C||e[36]!==y?(T=c.jsxs(Kc,{open:o,onOpenChange:l,direction:"bottom",children:[y,C]}),e[34]=o,e[35]=C,e[36]=y,e[37]=T):T=e[37],T}Ra(()=>import("./index-B8kihcrU.js").then(t=>t.bd),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148])).catch(()=>{});function Tg(){const t=U.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=c.jsx("div",{className:"min-h-0 flex-1 pt-0 pr-1 pb-1 pl-0",children:c.jsx("div",{className:"h-full p-0.5 pt-0.25",children:c.jsx("div",{className:"card-shadow flex h-full flex-col overflow-hidden rounded-[0.75rem] bg-background",children:c.jsx(va,{})})})}),t[0]=e):e=t[0],e}const Ng=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"});function Dg(t){const e=new Date(t),n=e.getTime()<Date.now();return{label:Ng.format(e),overdue:n}}const Os="inline-flex items-center gap-1.5 rounded-lg border border-border bg-background px-2 py-1 text-xs font-medium text-muted-foreground";function ma(){const t=U.c(9),e=oe();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=Z(Os,"border-warning/30 text-warning"),t[0]=n):n=t[0];let r;t[1]!==e?(r=e("taskBoard.taskBoard.blockedBadgeTitle"),t[1]=e,t[2]=r):r=t[2];let s;t[3]===Symbol.for("react.memo_cache_sentinel")?(s=c.jsx(ti,{size:14}),t[3]=s):s=t[3];let i;t[4]!==e?(i=e("taskBoard.taskBoard.needsInput"),t[4]=e,t[5]=i):i=t[5];let o;return t[6]!==r||t[7]!==i?(o=c.jsxs("span",{className:n,title:r,children:[s,i]}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function xa(t){const e=U.c(10),{priority:n}=t,r=oe(),s=It[n];let i;e[0]!==s.dotClassName?(i=Z("size-2 rounded-full",s.dotClassName),e[0]=s.dotClassName,e[1]=i):i=e[1];let o;e[2]!==i?(o=c.jsx("span",{className:i}),e[2]=i,e[3]=o):o=e[3];let l;e[4]!==s.labelKey||e[5]!==r?(l=r(s.labelKey),e[4]=s.labelKey,e[5]=r,e[6]=l):l=e[6];let a;return e[7]!==o||e[8]!==l?(a=c.jsxs("span",{className:Os,children:[o,l]}),e[7]=o,e[8]=l,e[9]=a):a=e[9],a}function ba(t){const e=U.c(7),{iso:n}=t;let r,s;if(e[0]!==n){const{label:l,overdue:a}=Dg(n);r=l,s=Z(Os,a&&"border-destructive/30 text-destructive"),e[0]=n,e[1]=r,e[2]=s}else r=e[1],s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=c.jsx(Yn,{size:14}),e[3]=i):i=e[3];let o;return e[4]!==r||e[5]!==s?(o=c.jsxs("span",{className:s,children:[i,r]}),e[4]=r,e[5]=s,e[6]=o):o=e[6],o}function ya(t){const e=U.c(7),{tag:n}=t;let r;e[0]!==n.color?(r=As(n.color),e[0]=n.color,e[1]=r):r=e[1];let s;e[2]!==r?(s=c.jsx("span",{className:"size-2 rounded-full",style:{backgroundColor:r}}),e[2]=r,e[3]=s):s=e[3];let i;return e[4]!==s||e[5]!==n.name?(i=c.jsxs("span",{className:Os,children:[s,n.name]}),e[4]=s,e[5]=n.name,e[6]=i):i=e[6],i}function ka(t){const e=U.c(32),{item:n,assignee:r,assignedBy:s,members:i,onAssign:o}=t,l=oe(),[a,d]=S.useState(!1);if(n.assigneeId===$e){let x;e[0]!==s||e[1]!==l?(x=s?.user?.name?l("taskBoard.taskBoard.assignedToSuperAgentBy",{name:s.user.name}):l("taskBoard.taskBoard.assignedToSuperAgent"),e[0]=s,e[1]=l,e[2]=x):x=e[2];let k;e[3]!==s?(k=s&&c.jsx(At,{url:s.user?.image??void 0,fallback:_t(s.user?.name),shape:"circle",size:"xs",className:"-mr-2 ring-2 ring-background"}),e[3]=s,e[4]=k):k=e[4];let v;e[5]===Symbol.for("react.memo_cache_sentinel")?(v=c.jsx(Pt,{size:20,className:"ring-2 ring-background"}),e[5]=v):v=e[5];let w;return e[6]!==x||e[7]!==k?(w=c.jsxs("span",{className:"inline-flex items-center",title:x,children:[k,v]}),e[6]=x,e[7]=k,e[8]=w):w=e[8],w}if(r){const x=r.user?.image??void 0,k=r.user?.name;let v;e[9]!==k?(v=_t(k),e[9]=k,e[10]=v):v=e[10];let w;return e[11]!==x||e[12]!==v?(w=c.jsx(At,{url:x,fallback:v,shape:"circle",size:"xs"}),e[11]=x,e[12]=v,e[13]=w):w=e[13],w}if(!o||!i?.length)return null;let f;e[14]!==l?(f=l("taskBoard.taskBoard.assignButton"),e[14]=l,e[15]=f):f=e[15];let h;e[16]!==l?(h=l("taskBoard.taskBoard.assignButton"),e[16]=l,e[17]=h):h=e[17];let p;e[18]===Symbol.for("react.memo_cache_sentinel")?(p=x=>{x.stopPropagation(),d(!0)},e[18]=p):p=e[18];let u;e[19]===Symbol.for("react.memo_cache_sentinel")?(u=c.jsx(Po,{size:13}),e[19]=u):u=e[19];let m;e[20]!==f||e[21]!==h?(m=c.jsx(Xn,{asChild:!0,children:c.jsx("button",{type:"button",title:f,"aria-label":h,onClick:p,className:"flex size-6 shrink-0 items-center justify-center rounded-full border border-dashed border-muted-foreground/40 text-muted-foreground/40 transition-colors hover:border-muted-foreground hover:text-muted-foreground",children:u})}),e[20]=f,e[21]=h,e[22]=m):m=e[22];let y;e[23]!==o?(y=x=>{o(x),d(!1)},e[23]=o,e[24]=y):y=e[24];let b;e[25]!==i||e[26]!==y?(b=c.jsx(xs,{className:"w-56 p-0",align:"end",side:"bottom",onClick:Rg,children:c.jsx($i,{members:i,onSelect:y})}),e[25]=i,e[26]=y,e[27]=b):b=e[27];let g;return e[28]!==a||e[29]!==m||e[30]!==b?(g=c.jsxs(bs,{open:a,onOpenChange:d,children:[m,b]}),e[28]=a,e[29]=m,e[30]=b,e[31]=g):g=e[31],g}function Rg(t){return t.stopPropagation()}function va(){const t=U.c(147),e=oe(),{items:n,isLoading:r}=Cf(),s=jf(),i=Bc(),o=Za({slug:"mcp-github"})??[];let l;t[0]!==o?(l=o.some(Og),t[0]=o,t[1]=l):l=t[1];const a=l,[d,f]=S.useState(!1),[h,p]=S.useState(!1);let u;t[2]!==a?(u=M=>M===$e&&!a?(f(!0),!0):!1,t[2]=a,t[3]=u):u=t[3];const m=u,[y,b]=S.useState(null);let g;t[4]===Symbol.for("react.memo_cache_sentinel")?(g=M=>{const ne=Gc(M);ne&&b(ne)},t[4]=g):g=t[4];const x=g;let k;t[5]===Symbol.for("react.memo_cache_sentinel")?(k=[],t[5]=k):k=t[5];const[v,w]=S.useState(k),j=()=>{if(v.length!==0){if(m($e)){w([]);return}for(const M of v)s.rerun.mutate({id:M.id},{onError:ne=>x(ne)});w([]),$()}},{data:C}=Wo();let T,D;t[6]!==C?.data?.members?(T=C?.data?.members??[],D=new Map(T.map(Bg)),t[6]=C?.data?.members,t[7]=T,t[8]=D):(T=t[7],D=t[8]);const E=D,[N,I]=S.useState("board"),[A,_]=S.useState(dr);let z;t[9]===Symbol.for("react.memo_cache_sentinel")?(z=new Set,t[9]=z):z=t[9];const[R,O]=S.useState(z);let L;t[10]===Symbol.for("react.memo_cache_sentinel")?(L=M=>O(ne=>{const fe=new Set(ne);return fe.has(M)?fe.delete(M):fe.add(M),fe}),t[10]=L):L=t[10];const B=L,F=M=>O(ne=>{const fe=new Set(ne);for(const Pe of et)Pe.status===M&&fe.add(Pe.id);return fe}),$=()=>O(new Set),[W,K]=S.useState(!1),[Q,G]=S.useState(null),[Y,ee]=S.useState(null),{setTaskId:se}=Wc(),{create:re}=Vc(),q=gn(),{org:V,locator:J}=Me(),ie=Lo();let te;t[11]===Symbol.for("react.memo_cache_sentinel")?(te={strict:!1},t[11]=te):te=t[11];const{task:P}=Da(te);let H;t[12]!==P||t[13]!==n?(H=P?n.find(M=>M.id===P)??null:null,t[12]=P,t[13]=n,t[14]=H):H=t[14];const le=H;let ge;t[15]!==P||t[16]!==ie||t[17]!==V?(ge=()=>{P&&ie({to:"/$org/board",params:{org:V.slug},search:{},replace:!0})},t[15]=P,t[16]=ie,t[17]=V,t[18]=ge):ge=t[18];const ke=ge;let ye;t[19]!==s||t[20]!==re||t[21]!==J||t[22]!==V||t[23]!==se||t[24]!==q?(ye=async M=>{const ne=crypto.randomUUID(),fe=Qa(V.id).id,Pe=await q.call("TASK_BOARD_ITEM_PRS_GET",{taskBoardItemId:M.id}).then(Ag).catch(_g),at=gg(M,Pe),Nt={type:"doc",content:[{type:"paragraph",content:[Ec({id:M.id,name:M.title,char:"@",kind:"task",metadata:{title:M.title,description:M.description,context:at}}),{type:"text",text:" "}]}]};Zc(sessionStorage,J,ne,Nt),K(!1);try{await re({id:ne,virtual_mcp_id:fe}),await s.link.mutateAsync({id:M.id,linkThreadId:ne})}catch{}se(ne,fe)},t[19]=s,t[20]=re,t[21]=J,t[22]=V,t[23]=se,t[24]=q,t[25]=ye):ye=t[25];const Ne=ye;let Be;t[26]!==A?(Be=M=>kg(M,A),t[26]=A,t[27]=Be):Be=t[27];const et=n.filter(Be);let dt;t[28]===Symbol.for("react.memo_cache_sentinel")?(dt=()=>{G(null),ee(null),K(!0)},t[28]=dt):dt=t[28];const Gt=dt;let ot;t[29]===Symbol.for("react.memo_cache_sentinel")?(ot=M=>{G(null),ee(M),K(!0)},t[29]=ot):ot=t[29];const ue=ot;let Qe;t[30]===Symbol.for("react.memo_cache_sentinel")?(Qe=M=>{G(M),K(!0)},t[30]=Qe):Qe=t[30];const Xt=Qe;let Le;t[31]!==le||t[32]!==Q||t[33]!==n?(Le=(Q&&n.find(M=>M.id===Q.id))??Q??le,t[31]=le,t[32]=Q,t[33]=n,t[34]=Le):Le=t[34];const de=Le,De=W||!!le;let ut;t[35]!==ke?(ut=()=>{K(!1),G(null),ee(null),ke()},t[35]=ke,t[36]=ut):ut=t[36];const he=ut;if(r&&n.length===0){let M;return t[37]===Symbol.for("react.memo_cache_sentinel")?(M=c.jsx("div",{className:"flex flex-1 items-center justify-center",children:c.jsx(Ts,{size:20,className:"animate-spin text-muted-foreground"})}),t[37]=M):M=t[37],M}const Bt="relative flex min-h-0 flex-1 flex-col";let tt;t[38]!==e?(tt=e("taskBoard.taskBoard.tasksTitle"),t[38]=e,t[39]=tt):tt=t[39];let We;t[40]!==tt?(We=c.jsx("h1",{className:"text-xl font-medium text-foreground",children:tt}),t[40]=tt,t[41]=We):We=t[41];let nt;t[42]!==i?(nt=i&&c.jsx(og,{}),t[42]=i,t[43]=nt):nt=t[43];let st;t[44]!==A||t[45]!==n.length||t[46]!==T?(st=n.length>0&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"sm:hidden",children:c.jsx(jg,{filters:A,members:T,onChange:_})}),c.jsx("div",{className:"hidden sm:block",children:c.jsx(Cg,{filters:A,members:T,onChange:_})})]}),t[44]=A,t[45]=n.length,t[46]=T,t[47]=st):st=t[47];const Tt=N==="list";let pe;t[48]!==$?(pe=()=>{I("list"),$()},t[48]=$,t[49]=pe):pe=t[49];let ve;t[50]!==e?(ve=e("common.taskBoard.listView"),t[50]=e,t[51]=ve):ve=t[51];let we;t[52]!==Tt||t[53]!==pe||t[54]!==ve?(we=c.jsx(No,{active:Tt,onClick:pe,icon:Uo,label:ve}),t[52]=Tt,t[53]=pe,t[54]=ve,t[55]=we):we=t[55];const Fe=N==="board";let Re;t[56]===Symbol.for("react.memo_cache_sentinel")?(Re=()=>I("board"),t[56]=Re):Re=t[56];let Se;t[57]!==e?(Se=e("common.taskBoard.boardView"),t[57]=e,t[58]=Se):Se=t[58];let Ce;t[59]!==Fe||t[60]!==Se?(Ce=c.jsx(No,{active:Fe,onClick:Re,icon:Fa,label:Se}),t[59]=Fe,t[60]=Se,t[61]=Ce):Ce=t[61];let Oe;t[62]!==we||t[63]!==Ce?(Oe=c.jsxs("div",{className:"inline-flex rounded-lg bg-muted p-0.5",children:[we,Ce]}),t[62]=we,t[63]=Ce,t[64]=Oe):Oe=t[64];let me;t[65]===Symbol.for("react.memo_cache_sentinel")?(me=c.jsx(ws,{size:16}),t[65]=me):me=t[65];let Ee;t[66]!==e?(Ee=e("taskBoard.taskBoard.newTask"),t[66]=e,t[67]=Ee):Ee=t[67];let Ie;t[68]!==Ee?(Ie=c.jsxs(Ae,{size:"sm",onClick:Gt,children:[me,Ee]}),t[68]=Ee,t[69]=Ie):Ie=t[69];let _e;t[70]!==Oe||t[71]!==Ie?(_e=c.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[Oe,Ie]}),t[70]=Oe,t[71]=Ie,t[72]=_e):_e=t[72];let Ue;t[73]!==st||t[74]!==_e?(Ue=c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[st,_e]}),t[73]=st,t[74]=_e,t[75]=Ue):Ue=t[75];let qe;t[76]!==We||t[77]!==nt||t[78]!==Ue?(qe=c.jsxs("div",{className:"mx-auto flex w-full max-w-[1680px] flex-col gap-4 px-4 pt-6 sm:px-8 sm:pt-8",children:[We,nt,Ue]}),t[76]=We,t[77]=nt,t[78]=Ue,t[79]=qe):qe=t[79];const Ge=n.length===0?c.jsx("div",{className:"mx-auto w-full max-w-[1680px] px-4 pt-6 sm:px-8",children:c.jsx("div",{className:"rounded-xl bg-card px-4 py-12 text-center text-sm text-muted-foreground card-shadow",children:e("taskBoard.taskBoard.noTasksYet")})}):et.length===0?c.jsx("div",{className:"mx-auto w-full max-w-[1680px] px-4 pt-6 sm:px-8",children:c.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl bg-card px-4 py-12 text-center text-sm text-muted-foreground card-shadow",children:[e("taskBoard.taskBoard.noTasksMatch"),c.jsx(Ae,{variant:"outline",size:"sm",onClick:()=>_(dr),children:e("taskBoard.taskBoard.clearFilters")})]})}):N==="board"?c.jsx(zg,{items:et,members:T,memberByUserId:E,selectedIds:R,onToggleSelect:B,onSelectAllInLane:F,onOpen:Xt,onCreate:ue,onMove:(M,ne,fe)=>{const Pe=zl(fe,M.length);M.forEach((at,Nt)=>s.update.mutate({id:at,status:ne,sortOrder:Pe[Nt]}))},onAssign:(M,ne)=>{m(ne)||s.update.mutate({id:M,assigneeId:ne},{onError:x})},onAutoFix:M=>{m($e)||s.update.mutate({id:M.id,assigneeId:$e},{onError:x})},onRerun:M=>w([M])}):c.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 pt-6 pb-16 sm:px-8",children:c.jsx("div",{className:"mx-auto flex max-w-[820px] flex-col gap-2",children:et.map(M=>c.jsx(Vg,{item:M,assignee:M.assigneeId?E.get(M.assigneeId):void 0,assignedBy:M.assignedBy?E.get(M.assignedBy):void 0,onOpen:()=>Xt(M)},M.id))})}),Xe=De?de?.id??`new-${Y??"default"}`:"closed",lt=de??void 0,qt=Y??void 0,Kt=s.create.isPending||s.update.isPending;let ft;t[80]!==s.create||t[81]!==s.update||t[82]!==de||t[83]!==m||t[84]!==he?(ft=M=>{if(m(M.assigneeId)){he();return}if(de){const{title:ne,description:fe,priority:Pe,...at}=M,Nt=Vo(de)?{}:{title:ne,description:fe,priority:Pe};s.update.mutate({id:de.id,...at,...Nt},{onError:x})}else s.create.mutate(M);he()},t[80]=s.create,t[81]=s.update,t[82]=de,t[83]=m,t[84]=he,t[85]=ft):ft=t[85];let ht;t[86]!==s.remove||t[87]!==de||t[88]!==he?(ht=de?()=>{s.remove.mutate(de.id),he()}:void 0,t[86]=s.remove,t[87]=de,t[88]=he,t[89]=ht):ht=t[89];let pt;t[90]!==de||t[91]!==Ne?(pt=de?()=>{Ne(de)}:void 0,t[90]=de,t[91]=Ne,t[92]=pt):pt=t[92];let gt;t[93]!==s.update||t[94]!==de||t[95]!==m||t[96]!==he?(gt=de?()=>{m($e)||(s.update.mutate({id:de.id,assigneeId:$e},{onError:x}),he())}:void 0,t[93]=s.update,t[94]=de,t[95]=m,t[96]=he,t[97]=gt):gt=t[97];let mt;t[98]!==de||t[99]!==he?(mt=de?()=>{he(),w([de])}:void 0,t[98]=de,t[99]=he,t[100]=mt):mt=t[100];let xt;t[101]!==he||t[102]!==se?(xt=M=>{M.virtualMcpId&&(he(),se(M.threadId,M.virtualMcpId,{main:M.hasPreview?"preview":"board"}))},t[101]=he,t[102]=se,t[103]=xt):xt=t[103];let bt;t[104]!==he||t[105]!==De||t[106]!==Xe||t[107]!==lt||t[108]!==qt||t[109]!==Kt||t[110]!==ft||t[111]!==ht||t[112]!==pt||t[113]!==gt||t[114]!==mt||t[115]!==xt?(bt=c.jsx(Ep,{open:De,onClose:he,item:lt,defaultStatus:qt,isSaving:Kt,onSubmit:ft,onDelete:ht,onNewChat:pt,onAutoFix:gt,onRerun:mt,onOpenThread:xt},Xe),t[104]=he,t[105]=De,t[106]=Xe,t[107]=lt,t[108]=qt,t[109]=Kt,t[110]=ft,t[111]=ht,t[112]=pt,t[113]=gt,t[114]=mt,t[115]=xt,t[116]=bt):bt=t[116];let Ot;t[117]===Symbol.for("react.memo_cache_sentinel")?(Ot=()=>p(!0),t[117]=Ot):Ot=t[117];let Ht;t[118]!==d?(Ht=c.jsx($g,{open:d,onOpenChange:f,onConnected:Ot}),t[118]=d,t[119]=Ht):Ht=t[119];let yt;t[120]!==h?(yt=c.jsx(Xa,{mode:"connection",open:h,onOpenChange:p}),t[120]=h,t[121]=yt):yt=t[121];let $t;t[122]===Symbol.for("react.memo_cache_sentinel")?($t=M=>!M&&b(null),t[122]=$t):$t=t[122];let kt;t[123]!==y?(kt=c.jsx(ag,{kind:y,onOpenChange:$t}),t[123]=y,t[124]=kt):kt=t[124];let Mt;t[125]===Symbol.for("react.memo_cache_sentinel")?(Mt=M=>!M&&w([]),t[125]=Mt):Mt=t[125];let vt;t[126]!==s.rerun.isPending||t[127]!==j||t[128]!==v?(vt=c.jsx(ug,{items:v,pending:s.rerun.isPending,onOpenChange:Mt,onConfirm:j}),t[126]=s.rerun.isPending,t[127]=j,t[128]=v,t[129]=vt):vt=t[129];let wt;t[130]!==s.removeMany||t[131]!==s.update||t[132]!==m||t[133]!==$||t[134]!==n||t[135]!==T||t[136]!==R?(wt=R.size>0&&c.jsx(Mg,{count:R.size,members:T,onMoveTo:M=>{for(const ne of R)s.update.mutate({id:ne,status:M});$()},onSetPriority:M=>{for(const ne of R)s.update.mutate({id:ne,priority:M});$()},onAddTag:M=>{for(const ne of R){const fe=n.find(at=>at.id===ne);if(!fe)continue;const Pe=fe.tags.map(Ig);Pe.includes(M)||s.update.mutate({id:ne,tagIds:[...Pe,M]})}$()},onAssign:M=>{if(!m(M)){for(const ne of R)s.update.mutate({id:ne,assigneeId:M},{onError:x});$()}},onSetDueDate:M=>{const ne=Gr(M);for(const fe of R)s.update.mutate({id:fe,dueDate:ne});$()},onAutoFix:R.size>0&&Array.from(R).every(M=>{const ne=n.find(fe=>fe.id===M);return ne&&(ne.status==="triage"||ne.status==="todo")&&ne.assigneeId!==$e})?()=>{if(!m($e)){for(const M of R)s.update.mutate({id:M,assigneeId:$e},{onError:x});$()}}:void 0,onRerun:(()=>{const M=Array.from(R).flatMap(ne=>{const fe=n.find(Pe=>Pe.id===ne);return fe?[fe]:[]});return M.length===R.size&&M.every(Eg)?()=>w(M):void 0})(),onDelete:()=>{s.removeMany.mutate(Array.from(R)),$()},onClear:$}),t[130]=s.removeMany,t[131]=s.update,t[132]=m,t[133]=$,t[134]=n,t[135]=T,t[136]=R,t[137]=wt):wt=t[137];let tn;return t[138]!==qe||t[139]!==Ge||t[140]!==bt||t[141]!==Ht||t[142]!==yt||t[143]!==kt||t[144]!==vt||t[145]!==wt?(tn=c.jsxs("div",{className:Bt,children:[qe,Ge,bt,Ht,yt,kt,vt,wt]}),t[138]=qe,t[139]=Ge,t[140]=bt,t[141]=Ht,t[142]=yt,t[143]=kt,t[144]=vt,t[145]=wt,t[146]=tn):tn=t[146],tn}function Eg(t){return t.assigneeId===$e&&t.status!=="done"}function Ig(t){return t.id}function _g(){return[]}function Ag(t){return t.prs}function Bg(t){return[t.userId,t]}function Og(t){return t.status==="active"&&Ja(t)!==null}function $g(t){const e=U.c(32),{open:n,onOpenChange:r,onConnected:s}=t,i=oe(),{connect:o,isConnecting:l}=sf("deco/mcp-github");let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx("div",{className:"flex h-28 items-center justify-center bg-gradient-to-br from-muted via-muted to-accent",children:c.jsx("div",{className:"flex size-14 items-center justify-center rounded-2xl bg-foreground text-background shadow-sm",children:c.jsx($r,{className:"size-7"})})}),e[0]=a):a=e[0];let d;e[1]!==i?(d=i("taskBoard.taskBoard.connectGithubTitle"),e[1]=i,e[2]=d):d=e[2];let f;e[3]!==d?(f=c.jsx(ts,{children:d}),e[3]=d,e[4]=f):f=e[4];let h;e[5]!==i?(h=i("taskBoard.taskBoard.connectGithubDescription"),e[5]=i,e[6]=h):h=e[6];let p;e[7]!==h?(p=c.jsx(ni,{children:h}),e[7]=h,e[8]=p):p=e[8];let u;e[9]!==f||e[10]!==p?(u=c.jsxs(si,{children:[f,p]}),e[9]=f,e[10]=p,e[11]=u):u=e[11];let m;e[12]!==o||e[13]!==s||e[14]!==r?(m=async()=>{await o(),r(!1),s()},e[12]=o,e[13]=s,e[14]=r,e[15]=m):m=e[15];let y;e[16]!==l?(y=l?c.jsx(Ts,{size:16,className:"animate-spin"}):c.jsx($r,{className:"size-4"}),e[16]=l,e[17]=y):y=e[17];let b;e[18]!==i?(b=i("taskBoard.taskBoard.connectGithubButton"),e[18]=i,e[19]=b):b=e[19];let g;e[20]!==l||e[21]!==m||e[22]!==y||e[23]!==b?(g=c.jsx(ri,{children:c.jsxs(Ae,{onClick:m,disabled:l,className:"gap-2",children:[y,b]})}),e[20]=l,e[21]=m,e[22]=y,e[23]=b,e[24]=g):g=e[24];let x;e[25]!==g||e[26]!==u?(x=c.jsxs(es,{className:"gap-0 overflow-hidden p-0 sm:max-w-md",children:[a,c.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[u,g]})]}),e[25]=g,e[26]=u,e[27]=x):x=e[27];let k;return e[28]!==r||e[29]!==n||e[30]!==x?(k=c.jsx(Jn,{open:n,onOpenChange:r,children:x}),e[28]=r,e[29]=n,e[30]=x,e[31]=k):k=e[31],k}function Mg(t){const e=U.c(95),{count:n,members:r,onMoveTo:s,onSetPriority:i,onAddTag:o,onAssign:l,onSetDueDate:a,onAutoFix:d,onRerun:f,onDelete:h,onClear:p}=t,u=oe(),{data:m}=Qo();let y;e[0]!==m?(y=m===void 0?[]:m,e[0]=m,e[1]=y):y=e[1];const b=y;let g;e[2]!==n||e[3]!==u?(g=u("taskBoard.taskBoard.selectedCount",{count:n}),e[2]=n,e[3]=u,e[4]=g):g=e[4];let x;e[5]!==g?(x=c.jsx("span",{className:"pl-1 text-sm font-medium text-foreground",children:g}),e[5]=g,e[6]=x):x=e[6];let k;e[7]!==u?(k=u("taskBoard.taskBoard.actionsButton"),e[7]=u,e[8]=k):k=e[8];let v;e[9]!==k?(v=c.jsx(dn,{asChild:!0,children:c.jsx("button",{type:"button",className:"flex items-center gap-1.5 rounded-full border border-border px-3 py-1.5 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:k})}),e[9]=k,e[10]=v):v=e[10];let w;e[11]!==u?(w=u("taskBoard.taskBoard.moveToButton"),e[11]=u,e[12]=w):w=e[12];let j;e[13]!==w?(j=c.jsx(as,{children:w}),e[13]=w,e[14]=j):j=e[14];let C;e[15]!==s||e[16]!==u?(C=ir.map(H=>c.jsx(Ct,{onClick:()=>s(H),children:u(Et[H].labelKey)},H)),e[15]=s,e[16]=u,e[17]=C):C=e[17];let T;e[18]!==C?(T=c.jsx(cs,{children:C}),e[18]=C,e[19]=T):T=e[19];let D;e[20]!==T||e[21]!==j?(D=c.jsxs(ls,{children:[j,T]}),e[20]=T,e[21]=j,e[22]=D):D=e[22];let E;e[23]!==u?(E=u("taskBoard.taskBoard.changePriorityButton"),e[23]=u,e[24]=E):E=e[24];let N;e[25]!==E?(N=c.jsx(as,{children:E}),e[25]=E,e[26]=N):N=e[26];let I;e[27]!==i||e[28]!==u?(I=Si.map(H=>c.jsxs(Ct,{onClick:()=>i(H),children:[c.jsx("span",{className:Z("size-2 rounded-full",It[H].dotClassName)}),u(It[H].labelKey)]},H)),e[27]=i,e[28]=u,e[29]=I):I=e[29];let A;e[30]!==I?(A=c.jsx(cs,{children:I}),e[30]=I,e[31]=A):A=e[31];let _;e[32]!==N||e[33]!==A?(_=c.jsxs(ls,{children:[N,A]}),e[32]=N,e[33]=A,e[34]=_):_=e[34];let z;e[35]!==u?(z=u("taskBoard.taskBoard.assignButton"),e[35]=u,e[36]=z):z=e[36];let R;e[37]!==z?(R=c.jsx(as,{children:z}),e[37]=z,e[38]=R):R=e[38];let O;e[39]!==r||e[40]!==l?(O=c.jsx(cs,{className:"w-56 p-0",children:c.jsx($i,{members:r,onSelect:l})}),e[39]=r,e[40]=l,e[41]=O):O=e[41];let L;e[42]!==R||e[43]!==O?(L=c.jsxs(ls,{children:[R,O]}),e[42]=R,e[43]=O,e[44]=L):L=e[44];let B;e[45]!==u?(B=u("taskBoard.taskBoard.dueDateButton"),e[45]=u,e[46]=B):B=e[46];let F;e[47]!==B?(F=c.jsx(as,{children:B}),e[47]=B,e[48]=F):F=e[48];let $;e[49]!==a?($=c.jsx(cs,{className:"w-auto p-0",children:c.jsx(nl,{mode:"single",onSelect:H=>H&&a(H),initialFocus:!0})}),e[49]=a,e[50]=$):$=e[50];let W;e[51]!==F||e[52]!==$?(W=c.jsxs(ls,{children:[F,$]}),e[51]=F,e[52]=$,e[53]=W):W=e[53];let K;e[54]!==o||e[55]!==b||e[56]!==u?(K=b.length>0&&c.jsxs(ls,{children:[c.jsx(as,{children:u("taskBoard.taskBoard.addTagButton")}),c.jsx(cs,{children:b.map(H=>c.jsxs(Ct,{onClick:()=>o(H.id),children:[c.jsx("span",{className:"size-2 rounded-full",style:{backgroundColor:As(H.color)}}),H.name]},H.id))})]}),e[54]=o,e[55]=b,e[56]=u,e[57]=K):K=e[57];let Q;e[58]===Symbol.for("react.memo_cache_sentinel")?(Q=c.jsx(qo,{}),e[58]=Q):Q=e[58];let G;e[59]!==u?(G=u("taskBoard.taskBoard.deleteSelectedButton"),e[59]=u,e[60]=G):G=e[60];let Y;e[61]!==h||e[62]!==G?(Y=c.jsx(Ct,{variant:"destructive",onClick:h,children:G}),e[61]=h,e[62]=G,e[63]=Y):Y=e[63];let ee;e[64]!==D||e[65]!==_||e[66]!==L||e[67]!==W||e[68]!==K||e[69]!==Y?(ee=c.jsxs(un,{align:"center",side:"top",children:[D,_,L,W,K,Q,Y]}),e[64]=D,e[65]=_,e[66]=L,e[67]=W,e[68]=K,e[69]=Y,e[70]=ee):ee=e[70];let se;e[71]!==ee||e[72]!==v?(se=c.jsxs(fn,{children:[v,ee]}),e[71]=ee,e[72]=v,e[73]=se):se=e[73];let re;e[74]!==d||e[75]!==u?(re=d&&c.jsxs("button",{type:"button",onClick:d,className:"flex items-center gap-1.5 rounded-full border border-border px-3 py-1.5 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:[c.jsx(ur,{size:14}),u("taskBoard.taskBoard.autoFix")]}),e[74]=d,e[75]=u,e[76]=re):re=e[76];let q;e[77]!==f||e[78]!==u?(q=f&&c.jsxs("button",{type:"button",onClick:f,className:"flex items-center gap-1.5 rounded-full border border-border px-3 py-1.5 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:[c.jsx(Zr,{size:14}),u("taskBoard.taskBoard.rerun")]}),e[77]=f,e[78]=u,e[79]=q):q=e[79];let V;e[80]!==u?(V=u("taskBoard.taskBoard.clearSelectionButton"),e[80]=u,e[81]=V):V=e[81];let J;e[82]!==u?(J=u("taskBoard.taskBoard.clearSelectionButton"),e[82]=u,e[83]=J):J=e[83];let ie;e[84]===Symbol.for("react.memo_cache_sentinel")?(ie=c.jsx(cn,{size:16}),e[84]=ie):ie=e[84];let te;e[85]!==p||e[86]!==V||e[87]!==J?(te=c.jsx("button",{type:"button","aria-label":V,title:J,onClick:p,className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:ie}),e[85]=p,e[86]=V,e[87]=J,e[88]=te):te=e[88];let P;return e[89]!==se||e[90]!==re||e[91]!==q||e[92]!==te||e[93]!==x?(P=c.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-6 z-20 flex justify-center",children:c.jsxs("div",{className:"pointer-events-auto flex items-center gap-2 rounded-full bg-background px-3 py-2 card-shadow",children:[x,se,re,q,te]})}),e[89]=se,e[90]=re,e[91]=q,e[92]=te,e[93]=x,e[94]=P):P=e[94],P}function No(t){const e=U.c(14),{active:n,onClick:r,icon:s,label:i}=t,o=oe();let l;e[0]!==i||e[1]!==o?(l=o("taskBoard.taskBoard.layoutViewAriaLabel",{label:i}),e[0]=i,e[1]=o,e[2]=l):l=e[2];const a=n?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground";let d;e[3]!==a?(d=Z("flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs font-medium transition-colors",a),e[3]=a,e[4]=d):d=e[4];let f;e[5]!==s?(f=c.jsx(s,{size:14}),e[5]=s,e[6]=f):f=e[6];let h;return e[7]!==n||e[8]!==i||e[9]!==r||e[10]!==l||e[11]!==d||e[12]!==f?(h=c.jsxs("button",{type:"button",onClick:r,"aria-label":l,"aria-pressed":n,className:d,children:[f,i]}),e[7]=n,e[8]=i,e[9]=r,e[10]=l,e[11]=d,e[12]=f,e[13]=h):h=e[13],h}const ms="lane:";function Do(t,e){return t.sortOrder-e.sortOrder}function zg(t){const e=U.c(30),{items:n,members:r,memberByUserId:s,selectedIds:i,onToggleSelect:o,onSelectAllInLane:l,onOpen:a,onCreate:d,onMove:f,onAutoFix:h,onRerun:p,onAssign:u}=t,[m,y]=S.useState(null);let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b=[],e[0]=b):b=e[0];const[g,x]=S.useState(b);let k;e[1]===Symbol.for("react.memo_cache_sentinel")?(k=new Map,e[1]=k):k=e[1];const[v,w]=S.useState(k),j=S.useRef(null),C=v.size>0?n.map(P=>{const H=v.get(P.id);return H?{...P,...H}:P}):n;if(v.size>0&&!m){const P=[...v].filter(H=>{const[le,ge]=H,ke=n.find(ye=>ye.id===le);return ke?.status===ge.status&&ke.sortOrder===ge.sortOrder});P.length>0&&w(H=>{const le=new Map(H);for(const[ge]of P)le.delete(ge);return le})}pg(j,C.map(Ug).join(","),m===null);const T=P=>C.filter(H=>H.status===P).sort(Do),D=P=>{if(P===void 0)return null;const H=String(P);if(H.startsWith(ms)){const le=H.slice(ms.length);return ir.find(ge=>ge===le)??null}return C.find(le=>le.id===H)?.status??null};let E;e[2]!==i?(E=P=>i.has(P)&&i.size>1?[P,...Array.from(i).filter(H=>H!==P)]:[P],e[2]=i,e[3]=E):E=e[3];const N=E;let I;e[4]===Symbol.for("react.memo_cache_sentinel")?(I=(P,H,le)=>{const ge=zl(le,P.length);w(ke=>{const ye=new Map(ke);return P.forEach((Ne,Be)=>ye.set(Ne,{status:H,sortOrder:ge[Be]})),ye})},e[4]=I):I=e[4];const A=I;let _;e[5]===Symbol.for("react.memo_cache_sentinel")?(_={activationConstraint:{distance:4}},e[5]=_):_=e[5];let z;e[6]===Symbol.for("react.memo_cache_sentinel")?(z={coordinateGetter:vf},e[6]=z):z=e[6];const R=Ud(Ui(yi,_),Ui(xi,z)),O=P=>{const H=String(P.active.id),le=D(P.over?.id),ge=C.find(Be=>Be.id===H);if(!le||!ge||ge.status===le)return;const ke=N(H),ye=String(P.over?.id??""),Ne=T(le).filter(Be=>!ke.includes(Be.id));A(ke,le,so(Ne,ye.startsWith(ms)?null:ye,H))},L=P=>{const H=String(P.active.id);y(null);const le=D(P.over?.id)??C.find(ue=>ue.id===H)?.status;if(!le){w(new Map);return}const ge=N(H),ke=T(le),ye=String(P.over?.id??""),Ne=ke.findIndex(ue=>ue.id===H),Be=ye.startsWith(ms)?ke.length-1:ke.findIndex(ue=>ue.id===ye),et=Ne===-1||Be===-1?ke:vi(ke,Ne,Be);if(n.filter(ue=>ue.status===le).sort(Do).map(Fg).join()===et.map(Pg).join()){w(new Map);return}const Gt=et.slice(et.findIndex(ue=>ue.id===H)+1).find(ue=>!ge.includes(ue.id)),ot=so(ke.filter(ue=>!ge.includes(ue.id)),Gt?.id??null,H);A(ge,le,ot),x(ge),f(ge,le,ot)},B=m?C.find(P=>P.id===m):null;let F;e[7]!==m||e[8]!==N?(F=m?N(m):[],e[7]=m,e[8]=N,e[9]=F):F=e[9];const $=F,W=zu,K=gl;let Q;e[10]===Symbol.for("react.memo_cache_sentinel")?(Q=P=>{y(String(P.active.id)),x([])},e[10]=Q):Q=e[10];let G;e[11]===Symbol.for("react.memo_cache_sentinel")?(G=()=>{y(null),w(new Map)},e[11]=G):G=e[11];const Y=ir.map(P=>c.jsx(qg,{status:P,items:T(P),members:r,memberByUserId:s,selectedIds:i,isTarget:B?.status===P,hiddenIds:$,landedIds:g,onToggleSelect:o,onSelectAllInLane:l,onOpen:a,onCreate:d,onAutoFix:h,onRerun:p,onAssign:u},P));let ee;e[12]!==Y?(ee=c.jsx("div",{ref:j,className:"min-h-0 flex-1 overflow-x-auto",children:c.jsx("div",{className:"mx-auto flex h-full w-full max-w-[1680px] gap-3 px-4 pt-6 sm:px-8",children:Y})}),e[12]=Y,e[13]=ee):ee=e[13];const se=sn.createPortal,re=nf,q=null,V=B&&c.jsxs("div",{className:"relative w-[292px] cursor-grabbing",children:[c.jsx(wa,{item:B,assignee:B.assigneeId?s.get(B.assigneeId):void 0,assignedBy:B.assignedBy?s.get(B.assignedBy):void 0,selected:i.has(B.id),onOpen:Lg,className:"w-full shadow-lg"}),$.length>1&&c.jsx("span",{className:"absolute -top-2 -right-2 flex h-5 min-w-5 items-center justify-center rounded-full bg-foreground px-1.5 text-[11px] font-semibold text-background",children:$.length})]});let J;e[14]!==re||e[15]!==V?(J=c.jsx(re,{dropAnimation:q,children:V}),e[14]=re,e[15]=V,e[16]=J):J=e[16];let ie;e[17]!==se||e[18]!==J?(ie=se(J,document.body),e[17]=se,e[18]=J,e[19]=ie):ie=e[19];let te;return e[20]!==W||e[21]!==L||e[22]!==O||e[23]!==R||e[24]!==G||e[25]!==ee||e[26]!==ie||e[27]!==K||e[28]!==Q?(te=c.jsxs(W,{sensors:R,collisionDetection:K,onDragStart:Q,onDragOver:O,onDragEnd:L,onDragCancel:G,children:[ee,ie]}),e[20]=W,e[21]=L,e[22]=O,e[23]=R,e[24]=G,e[25]=ee,e[26]=ie,e[27]=K,e[28]=Q,e[29]=te):te=e[29],te}function Lg(){}function Pg(t){return t.id}function Fg(t){return t.id}function Ug(t){return`${t.id}:${t.status}`}function qg(t){const e=U.c(93),{status:n,items:r,members:s,memberByUserId:i,selectedIds:o,isTarget:l,hiddenIds:a,landedIds:d,onToggleSelect:f,onSelectAllInLane:h,onOpen:p,onCreate:u,onAutoFix:m,onRerun:y,onAssign:b}=t,g=oe(),x=Et[n],k=x.icon,v=`${ms}${n}`;let w;e[0]!==v?(w={id:v},e[0]=v,e[1]=w):w=e[1];const{setNodeRef:j}=_l(w),C=l&&"bg-muted/50";let T;e[2]!==C?(T=Z("flex h-full w-[300px] shrink-0 flex-col rounded-xl py-1 transition-colors",C),e[2]=C,e[3]=T):T=e[3];const D=l?"bg-muted":"bg-background";let E;e[4]!==D?(E=Z("sticky top-0 z-10 flex items-center gap-2 px-2 py-1.5 transition-colors",D),e[4]=D,e[5]=E):E=e[5];let N;e[6]!==x.iconClassName?(N=Z("shrink-0",x.iconClassName.replace(/\banimate-\S+\b/g,"").trim()),e[6]=x.iconClassName,e[7]=N):N=e[7];let I;e[8]!==k||e[9]!==N?(I=c.jsx(k,{size:15,className:N}),e[8]=k,e[9]=N,e[10]=I):I=e[10];let A;e[11]!==x.labelKey||e[12]!==g?(A=g(x.labelKey),e[11]=x.labelKey,e[12]=g,e[13]=A):A=e[13];let _;e[14]!==A?(_=c.jsx("span",{className:"text-sm font-medium text-foreground",children:A}),e[14]=A,e[15]=_):_=e[15];let z;e[16]!==r.length?(z=c.jsx("span",{className:"rounded-md bg-muted px-1.5 text-[11px] font-medium text-muted-foreground",children:r.length}),e[16]=r.length,e[17]=z):z=e[17];let R;e[18]!==x.labelKey||e[19]!==g?(R=g("taskBoard.taskBoard.laneMenuAriaLabel",{lane:g(x.labelKey)}),e[18]=x.labelKey,e[19]=g,e[20]=R):R=e[20];let O;e[21]===Symbol.for("react.memo_cache_sentinel")?(O=c.jsx(ei,{size:15}),e[21]=O):O=e[21];let L;e[22]!==R?(L=c.jsx(dn,{asChild:!0,children:c.jsx("button",{type:"button","aria-label":R,className:"ml-auto flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:O})}),e[22]=R,e[23]=L):L=e[23];let B;e[24]!==h||e[25]!==n?(B=()=>h(n),e[24]=h,e[25]=n,e[26]=B):B=e[26];let F;e[27]!==g?(F=g("taskBoard.taskBoard.selectAllInLane"),e[27]=g,e[28]=F):F=e[28];let $;e[29]!==B||e[30]!==F?($=c.jsx(un,{align:"end",children:c.jsx(Ct,{onClick:B,children:F})}),e[29]=B,e[30]=F,e[31]=$):$=e[31];let W;e[32]!==L||e[33]!==$?(W=c.jsxs(fn,{children:[L,$]}),e[32]=L,e[33]=$,e[34]=W):W=e[34];let K;e[35]!==x.labelKey||e[36]!==g?(K=g("taskBoard.taskBoard.newTaskInLaneAriaLabel",{lane:g(x.labelKey)}),e[35]=x.labelKey,e[36]=g,e[37]=K):K=e[37];let Q;e[38]!==x.labelKey||e[39]!==g?(Q=g("taskBoard.taskBoard.newTaskInLaneTitle",{lane:g(x.labelKey)}),e[38]=x.labelKey,e[39]=g,e[40]=Q):Q=e[40];let G;e[41]!==u||e[42]!==n?(G=()=>u(n),e[41]=u,e[42]=n,e[43]=G):G=e[43];let Y;e[44]===Symbol.for("react.memo_cache_sentinel")?(Y=c.jsx(ws,{size:15}),e[44]=Y):Y=e[44];let ee;e[45]!==K||e[46]!==Q||e[47]!==G?(ee=c.jsx("button",{type:"button","aria-label":K,title:Q,onClick:G,className:"flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:Y}),e[45]=K,e[46]=Q,e[47]=G,e[48]=ee):ee=e[48];let se;e[49]!==_||e[50]!==z||e[51]!==W||e[52]!==ee||e[53]!==E||e[54]!==I?(se=c.jsxs("div",{className:E,children:[I,_,z,W,ee]}),e[49]=_,e[50]=z,e[51]=W,e[52]=ee,e[53]=E,e[54]=I,e[55]=se):se=e[55];let re;e[56]!==r?(re=r.map(Kg),e[56]=r,e[57]=re):re=e[57];let q;if(e[58]!==a||e[59]!==r||e[60]!==d||e[61]!==i||e[62]!==s||e[63]!==b||e[64]!==m||e[65]!==p||e[66]!==y||e[67]!==f||e[68]!==o){let te;e[70]!==a||e[71]!==d||e[72]!==i||e[73]!==s||e[74]!==b||e[75]!==m||e[76]!==p||e[77]!==y||e[78]!==f||e[79]!==o?(te=P=>c.jsx(Hg,{item:P,assignee:P.assigneeId?i.get(P.assigneeId):void 0,assignedBy:P.assignedBy?i.get(P.assignedBy):void 0,members:s,selected:o.has(P.id),hidden:a.includes(P.id),landed:d.includes(P.id),onToggleSelect:()=>f(P.id),onOpen:()=>p(P),onAutoFix:m?()=>m(P):void 0,onRerun:y?()=>y(P):void 0,onAssign:b?H=>b(P.id,H):void 0},P.id),e[70]=a,e[71]=d,e[72]=i,e[73]=s,e[74]=b,e[75]=m,e[76]=p,e[77]=y,e[78]=f,e[79]=o,e[80]=te):te=e[80],q=r.map(te),e[58]=a,e[59]=r,e[60]=d,e[61]=i,e[62]=s,e[63]=b,e[64]=m,e[65]=p,e[66]=y,e[67]=f,e[68]=o,e[69]=q}else q=e[69];let V;e[81]!==re||e[82]!==q?(V=c.jsx(uf,{items:re,strategy:cf,children:q}),e[81]=re,e[82]=q,e[83]=V):V=e[83];let J;e[84]!==j||e[85]!==n||e[86]!==V?(J=c.jsx("div",{ref:j,"data-lane-scroll":n,className:"flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto px-1 pt-1 pb-16 [scrollbar-width:thin] [&::-webkit-scrollbar]:w-1",children:V}),e[84]=j,e[85]=n,e[86]=V,e[87]=J):J=e[87];let ie;return e[88]!==n||e[89]!==se||e[90]!==J||e[91]!==T?(ie=c.jsxs("div",{"data-lane":n,className:T,children:[se,J]}),e[88]=n,e[89]=se,e[90]=J,e[91]=T,e[92]=ie):ie=e[92],ie}function Kg(t){return t.id}function Hg(t){const e=U.c(29);let n,r,s,i;e[0]!==t?({item:r,hidden:n,landed:s,...i}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=i):(n=e[1],r=e[2],s=e[3],i=e[4]);let o;e[5]!==r.id?(o={id:r.id},e[5]=r.id,e[6]=o):o=e[6];const{attributes:l,listeners:a,setNodeRef:d,transform:f,transition:h,isDragging:p}=bf(o),u=r.id,m=r.status;let y;e[7]!==l||e[8]!==a?(y={attributes:l,listeners:a},e[7]=l,e[8]=a,e[9]=y):y=e[9];const b=s&&"animate-card-land";let g;e[10]!==b?(g=Z("w-full",b),e[10]=b,e[11]=g):g=e[11];let x;e[12]!==f?(x=on.Translate.toString(f),e[12]=f,e[13]=x):x=e[13];const k=p||n?0:void 0;let v;e[14]!==x||e[15]!==k||e[16]!==h?(v={transform:x,transition:h,opacity:k},e[14]=x,e[15]=k,e[16]=h,e[17]=v):v=e[17];let w;e[18]!==r||e[19]!==i||e[20]!==d||e[21]!==y||e[22]!==g||e[23]!==v?(w=c.jsx(wa,{...i,item:r,dragRef:d,bindings:y,className:g,style:v}),e[18]=r,e[19]=i,e[20]=d,e[21]=y,e[22]=g,e[23]=v,e[24]=w):w=e[24];let j;return e[25]!==r.id||e[26]!==r.status||e[27]!==w?(j=c.jsx("div",{className:"flex","data-flip-id":u,"data-flip-lane":m,children:w}),e[25]=r.id,e[26]=r.status,e[27]=w,e[28]=j):j=e[28],j}function wa(t){const e=U.c(48),{item:n,assignee:r,assignedBy:s,members:i,selected:o,className:l,dragRef:a,bindings:d,style:f,onToggleSelect:h,onOpen:p,onAutoFix:u,onRerun:m,onAssign:y}=t,b=oe(),g=Et[n.status].icon,x=Nf(n)?.lastMessage,k=u&&(n.status==="triage"||n.status==="todo")&&n.assigneeId!==$e,v=m&&!k&&n.assigneeId===$e&&n.status!=="done",w=d?.attributes,j=d?.listeners;let C;e[0]!==p||e[1]!==h?(C=$=>{$.shiftKey&&h?h():p()},e[0]=p,e[1]=h,e[2]=C):C=e[2];const T=o&&"bg-accent";let D;e[3]!==l||e[4]!==T?(D=Z("group flex shrink-0 cursor-grab flex-col gap-2 rounded-xl bg-card px-3 py-2.5 text-left card-shadow hover:bg-accent/60 active:cursor-grabbing",T,l),e[3]=l,e[4]=T,e[5]=D):D=e[5];const E=n.title;let N;e[6]!==n?(N=Z("mt-px shrink-0",wi(n)),e[6]=n,e[7]=N):N=e[7];let I;e[8]!==g||e[9]!==N?(I=c.jsx(g,{size:16,className:N}),e[8]=g,e[9]=N,e[10]=I):I=e[10];let A;e[11]!==n.title?(A=c.jsx("span",{className:"min-w-0 flex-1 text-sm font-medium leading-snug text-foreground line-clamp-2",children:n.title}),e[11]=n.title,e[12]=A):A=e[12];let _;e[13]!==s||e[14]!==r||e[15]!==n||e[16]!==i||e[17]!==y?(_=c.jsx(ka,{item:n,assignee:r,assignedBy:s,members:i,onAssign:y}),e[13]=s,e[14]=r,e[15]=n,e[16]=i,e[17]=y,e[18]=_):_=e[18];let z;e[19]!==_||e[20]!==I||e[21]!==A?(z=c.jsxs("div",{className:"flex items-start gap-2",children:[I,A,_]}),e[19]=_,e[20]=I,e[21]=A,e[22]=z):z=e[22];let R;e[23]!==x?(R=x&&c.jsx("p",{className:"line-clamp-2 pl-6 text-xs leading-snug text-muted-foreground",children:x}),e[23]=x,e[24]=R):R=e[24];let O;e[25]!==n?(O=(rr(n)||n.priority!=="none"||!!n.dueDate||n.tags.length>0)&&c.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 pl-6",children:[rr(n)&&c.jsx(ma,{}),n.priority!=="none"&&c.jsx(xa,{priority:n.priority}),n.dueDate&&c.jsx(ba,{iso:n.dueDate}),n.tags.map(Wg)]}),e[25]=n,e[26]=O):O=e[26];let L;e[27]!==u||e[28]!==k||e[29]!==b?(L=k&&c.jsxs("button",{type:"button",onClick:$=>{$.stopPropagation(),u()},className:"flex items-center gap-1.5 self-end rounded-md border border-border bg-background px-2 py-1 text-xs font-medium text-foreground transition-colors hover:bg-accent",children:[c.jsx(ur,{size:12}),b("taskBoard.taskBoard.autoFix")]}),e[27]=u,e[28]=k,e[29]=b,e[30]=L):L=e[30];let B;e[31]!==m||e[32]!==v||e[33]!==b?(B=v&&c.jsxs("button",{type:"button",onClick:$=>{$.stopPropagation(),m()},className:"flex items-center gap-1.5 self-end rounded-md border border-border bg-background px-2 py-1 text-xs font-medium text-foreground opacity-0 transition-opacity hover:bg-accent focus-visible:opacity-100 group-hover:opacity-100",children:[c.jsx(Zr,{size:12}),b("taskBoard.taskBoard.rerun")]}),e[31]=m,e[32]=v,e[33]=b,e[34]=B):B=e[34];let F;return e[35]!==a||e[36]!==n.title||e[37]!==f||e[38]!==w||e[39]!==z||e[40]!==R||e[41]!==O||e[42]!==L||e[43]!==B||e[44]!==j||e[45]!==C||e[46]!==D?(F=c.jsxs("button",{type:"button",ref:a,style:f,...w,...j,onClick:C,className:D,title:E,children:[z,R,O,L,B]}),e[35]=a,e[36]=n.title,e[37]=f,e[38]=w,e[39]=z,e[40]=R,e[41]=O,e[42]=L,e[43]=B,e[44]=j,e[45]=C,e[46]=D,e[47]=F):F=e[47],F}function Wg(t){return c.jsx(ya,{tag:t},t.id)}function Vg(t){const e=U.c(33),{item:n,assignee:r,assignedBy:s,onOpen:i}=t,o=Et[n.status].icon;let l;e[0]!==n?(l=Z("shrink-0",wi(n)),e[0]=n,e[1]=l):l=e[1];let a;e[2]!==o||e[3]!==l?(a=c.jsx(o,{size:16,className:l}),e[2]=o,e[3]=l,e[4]=a):a=e[4];let d;e[5]!==n.title?(d=c.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium text-foreground",children:n.title}),e[5]=n.title,e[6]=d):d=e[6];let f;e[7]!==n?(f=rr(n)&&c.jsx(ma,{}),e[7]=n,e[8]=f):f=e[8];let h;e[9]!==n.priority?(h=n.priority!=="none"&&c.jsx("span",{className:"hidden sm:inline-flex",children:c.jsx(xa,{priority:n.priority})}),e[9]=n.priority,e[10]=h):h=e[10];let p;e[11]!==n.dueDate?(p=n.dueDate&&c.jsx("span",{className:"hidden sm:inline-flex",children:c.jsx(ba,{iso:n.dueDate})}),e[11]=n.dueDate,e[12]=p):p=e[12];let u;e[13]!==n.tags?(u=n.tags.length>0&&c.jsxs("span",{className:"hidden items-center gap-1.5 sm:inline-flex",children:[n.tags.slice(0,2).map(Qg),n.tags.length>2&&c.jsxs("span",{className:Os,children:["+",n.tags.length-2]})]}),e[13]=n.tags,e[14]=u):u=e[14];let m;e[15]!==s||e[16]!==r||e[17]!==n?(m=c.jsx(ka,{item:n,assignee:r,assignedBy:s}),e[15]=s,e[16]=r,e[17]=n,e[18]=m):m=e[18];let y;e[19]!==n.createdAt?(y=ii(new Date(n.createdAt)),e[19]=n.createdAt,e[20]=y):y=e[20];let b;e[21]!==y?(b=c.jsx("span",{className:"hidden shrink-0 text-[11px] text-muted-foreground/70 sm:inline",children:y}),e[21]=y,e[22]=b):b=e[22];let g;return e[23]!==i||e[24]!==b||e[25]!==a||e[26]!==d||e[27]!==f||e[28]!==h||e[29]!==p||e[30]!==u||e[31]!==m?(g=c.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-3 rounded-xl bg-card px-4 py-3 text-left card-shadow transition-colors hover:bg-accent/60",children:[a,d,f,h,p,u,m,b]}),e[23]=i,e[24]=b,e[25]=a,e[26]=d,e[27]=f,e[28]=h,e[29]=p,e[30]=u,e[31]=m,e[32]=g):g=e[32],g}function Qg(t){return c.jsx(ya,{tag:t},t.id)}const f1=Object.freeze(Object.defineProperty({__proto__:null,TaskBoardPage:va,default:Tg},Symbol.toStringTag,{value:"Module"}));export{va as $,bf as A,vf as B,on as C,zu as D,vi as E,Cf as F,jf as G,Hm as H,Et as I,It as J,xi as K,Pt as L,ct as M,r1 as N,a1 as O,yi as P,Xm as Q,u1 as R,od as S,Ep as T,c1 as U,Zm as V,yd as W,Ym as X,t1 as Y,o1 as Z,Jm as _,ld as a,Al as a0,f1 as a1,Gm as b,s1 as c,Xc as d,Vm as e,i1 as f,kd as g,l1 as h,ed as i,e1 as j,n1 as k,jd as l,wd as m,Nd as n,Ud as o,Ui as p,nf as q,Wm as r,Gc as s,Fu as t,Qm as u,sf as v,Zc as w,d1 as x,uf as y,cf as z};
|
|
77
|
+
`)}const Yr="__unassigned__",dr={assignee:null,priority:null,due:null};function mg(t){return t.assignee!==null||t.priority!==null||t.due!==null}function xg(t){return(t.assignee!==null?1:0)+(t.priority!==null?1:0)+(t.due!==null?1:0)}const bg=864e5;function yg(t,e){const n=new Date(t),r=new Date(e);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()}function kg(t,e){if(e.assignee!==null){if(e.assignee===Yr){if(t.assigneeId!==null)return!1}else if(t.assigneeId!==e.assignee)return!1}if(e.priority!==null&&t.priority!==e.priority)return!1;if(e.due!==null)if(e.due==="none"){if(t.dueDate)return!1}else{if(!t.dueDate)return!1;const n=new Date(t.dueDate).getTime(),r=Date.now();if(e.due==="overdue"&&n>=r||e.due==="today"&&!yg(n,r)||e.due==="week"&&(n<r||n>r+7*bg))return!1}return!0}const To={overdue:"taskBoard.taskFilters.dueDateFilterOverdue",today:"taskBoard.taskFilters.dueDateFilterDueToday",week:"taskBoard.taskFilters.dueDateFilterDueThisWeek",none:"taskBoard.taskFilters.dueDateFilterNoDueDate"};function vr(t,e=!1){return Z("inline-flex h-8 items-center gap-1.5 rounded-lg border px-2.5 text-xs font-medium outline-none transition-colors",e&&"h-10 w-full justify-start px-3 text-sm",t?"border-transparent bg-accent text-foreground":"border-border text-muted-foreground hover:bg-muted/60 hover:text-foreground")}function vg(t){const e=U.c(95),{value:n,members:r,onChange:s,block:i}=t,o=oe(),[l,a]=S.useState(!1);let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=c.jsx(Mr,{size:14,className:"shrink-0"}),e[0]=d):d=e[0];let f=d,h;e[1]!==o?(h=o("taskBoard.taskFilters.assigneeLabel"),e[1]=o,e[2]=h):h=e[2];let p=h;if(n===Yr){let q;e[3]!==o?(q=o("taskBoard.taskFilters.assigneeUnassigned"),e[3]=o,e[4]=q):q=e[4],p=q}else if(n===$e){let q;e[5]===Symbol.for("react.memo_cache_sentinel")?(q=c.jsx(Pt,{size:14}),e[5]=q):q=e[5],f=q;let V;e[6]!==o?(V=o("taskBoard.taskFilters.assigneeSuperAgent"),e[6]=o,e[7]=V):V=e[7],p=V}else if(n){let q,V,J,ie;if(e[8]!==r||e[9]!==n){let H;e[14]!==n?(H=le=>le.userId===n,e[14]=n,e[15]=H):H=e[15],V=r.find(H),q=At,J=V?.user?.image??void 0,ie=_t(V?.user?.name),e[8]=r,e[9]=n,e[10]=q,e[11]=V,e[12]=J,e[13]=ie}else q=e[10],V=e[11],J=e[12],ie=e[13];let te;e[16]!==q||e[17]!==J||e[18]!==ie?(te=c.jsx(q,{url:J,fallback:ie,shape:"circle",size:"2xs"}),e[16]=q,e[17]=J,e[18]=ie,e[19]=te):te=e[19],f=te;let P;e[20]!==V?.user?.name||e[21]!==o?(P=V?.user?.name??o("taskBoard.taskFilters.assigneeMember"),e[20]=V?.user?.name,e[21]=o,e[22]=P):P=e[22],p=P}let u;e[23]!==s?(u=q=>{s(q),a(!1)},e[23]=s,e[24]=u):u=e[24];const m=u,y=n!==null;let b;e[25]!==i||e[26]!==y?(b=vr(y,i),e[25]=i,e[26]=y,e[27]=b):b=e[27];const g=b,x=i&&"ml-auto";let k;e[28]!==x?(k=Z("shrink-0 opacity-60",x),e[28]=x,e[29]=k):k=e[29];const v=k;let w;e[30]!==p?(w=c.jsx("span",{className:"max-w-[10rem] truncate",children:p}),e[30]=p,e[31]=w):w=e[31];let j;e[32]!==v?(j=c.jsx(fi,{size:12,className:v}),e[32]=v,e[33]=j):j=e[33];let C;e[34]!==f||e[35]!==w||e[36]!==j||e[37]!==g?(C=c.jsx(Xn,{asChild:!0,children:c.jsxs("button",{type:"button",className:g,children:[f,w,j]})}),e[34]=f,e[35]=w,e[36]=j,e[37]=g,e[38]=C):C=e[38];let T;e[39]!==o?(T=o("taskBoard.taskFilters.assigneeFilterPlaceholder"),e[39]=o,e[40]=T):T=e[40];let D;e[41]!==T?(D=c.jsx(ai,{placeholder:T,className:"h-9"}),e[41]=T,e[42]=D):D=e[42];let E;e[43]!==o?(E=o("taskBoard.taskFilters.assigneeNoMembersFound"),e[43]=o,e[44]=E):E=e[44];let N;e[45]!==E?(N=c.jsx(ci,{children:E}),e[45]=E,e[46]=N):N=e[46];let I;e[47]!==m?(I=()=>m(null),e[47]=m,e[48]=I):I=e[48];let A;e[49]!==o?(A=o("taskBoard.taskFilters.assigneeAnyone"),e[49]=o,e[50]=A):A=e[50];let _;e[51]!==I||e[52]!==A?(_=c.jsx(en,{value:"Anyone",onSelect:I,children:A}),e[51]=I,e[52]=A,e[53]=_):_=e[53];let z;e[54]!==m?(z=()=>m(Yr),e[54]=m,e[55]=z):z=e[55];let R;e[56]===Symbol.for("react.memo_cache_sentinel")?(R=c.jsx(Mr,{size:16,className:"text-muted-foreground"}),e[56]=R):R=e[56];let O;e[57]!==o?(O=o("taskBoard.taskFilters.assigneeUnassigned"),e[57]=o,e[58]=O):O=e[58];let L;e[59]!==z||e[60]!==O?(L=c.jsxs(en,{value:"Unassigned",onSelect:z,className:"gap-2",children:[R,O]}),e[59]=z,e[60]=O,e[61]=L):L=e[61];let B;e[62]!==m?(B=()=>m($e),e[62]=m,e[63]=B):B=e[63];let F;e[64]===Symbol.for("react.memo_cache_sentinel")?(F=c.jsx(Pt,{size:16}),e[64]=F):F=e[64];let $;e[65]!==o?($=o("taskBoard.taskFilters.assigneeSuperAgent"),e[65]=o,e[66]=$):$=e[66];let W;e[67]!==B||e[68]!==$?(W=c.jsxs(en,{value:"Super Agent",onSelect:B,className:"gap-2",children:[F,$]}),e[67]=B,e[68]=$,e[69]=W):W=e[69];let K;e[70]!==_||e[71]!==L||e[72]!==W?(K=c.jsxs(ns,{children:[_,L,W]}),e[70]=_,e[71]=L,e[72]=W,e[73]=K):K=e[73];let Q;e[74]!==o?(Q=o("taskBoard.taskFilters.assigneeGroupMembers"),e[74]=o,e[75]=Q):Q=e[75];let G;if(e[76]!==r||e[77]!==m){let q;e[79]!==m?(q=V=>c.jsxs(en,{value:V.user?.name??V.userId,onSelect:()=>m(V.userId),className:"gap-2",children:[c.jsx(At,{url:V.user?.image??void 0,fallback:_t(V.user?.name),shape:"circle",size:"2xs"}),c.jsx("span",{className:"truncate",children:V.user?.name??V.userId})]},V.userId),e[79]=m,e[80]=q):q=e[80],G=r.map(q),e[76]=r,e[77]=m,e[78]=G}else G=e[78];let Y;e[81]!==Q||e[82]!==G?(Y=c.jsx(ns,{heading:Q,children:G}),e[81]=Q,e[82]=G,e[83]=Y):Y=e[83];let ee;e[84]!==N||e[85]!==K||e[86]!==Y?(ee=c.jsxs(di,{children:[N,K,Y]}),e[84]=N,e[85]=K,e[86]=Y,e[87]=ee):ee=e[87];let se;e[88]!==D||e[89]!==ee?(se=c.jsx(xs,{align:"start",className:"w-56 p-0",children:c.jsxs(ui,{children:[D,ee]})}),e[88]=D,e[89]=ee,e[90]=se):se=e[90];let re;return e[91]!==l||e[92]!==C||e[93]!==se?(re=c.jsxs(bs,{open:l,onOpenChange:a,children:[C,se]}),e[91]=l,e[92]=C,e[93]=se,e[94]=re):re=e[94],re}function wg(t){const e=U.c(33),{value:n,onChange:r,block:s}=t,i=oe(),o=n!==null;let l;e[0]!==s||e[1]!==o?(l=vr(o,s),e[0]=s,e[1]=o,e[2]=l):l=e[2];const a=l,d=s&&"ml-auto";let f;e[3]!==d?(f=Z("shrink-0 opacity-60",d),e[3]=d,e[4]=f):f=e[4];const h=f;let p;e[5]!==n?(p=n?c.jsx("span",{className:Z("size-2 shrink-0 rounded-full",It[n].dotClassName)}):c.jsx(Hc,{size:14,className:"shrink-0"}),e[5]=n,e[6]=p):p=e[6];let u;e[7]!==i||e[8]!==n?(u=i(n?It[n].labelKey:"taskBoard.taskFilters.priorityLabel"),e[7]=i,e[8]=n,e[9]=u):u=e[9];let m;e[10]!==h?(m=c.jsx(fi,{size:12,className:h}),e[10]=h,e[11]=m):m=e[11];let y;e[12]!==p||e[13]!==u||e[14]!==m||e[15]!==a?(y=c.jsx(dn,{asChild:!0,children:c.jsxs("button",{type:"button",className:a,children:[p,u,m]})}),e[12]=p,e[13]=u,e[14]=m,e[15]=a,e[16]=y):y=e[16];let b;e[17]!==r?(b=()=>r(null),e[17]=r,e[18]=b):b=e[18];let g;e[19]!==i?(g=i("taskBoard.taskFilters.priorityAnyPriority"),e[19]=i,e[20]=g):g=e[20];let x;e[21]!==g||e[22]!==b?(x=c.jsx(Ct,{onSelect:b,children:g}),e[21]=g,e[22]=b,e[23]=x):x=e[23];let k;e[24]!==r||e[25]!==i?(k=Si.map(j=>c.jsxs(Ct,{onSelect:()=>r(j),className:"gap-2",children:[c.jsx("span",{className:Z("size-2 rounded-full",It[j].dotClassName)}),i(It[j].labelKey)]},j)),e[24]=r,e[25]=i,e[26]=k):k=e[26];let v;e[27]!==x||e[28]!==k?(v=c.jsxs(un,{align:"start",className:"w-40",children:[x,k]}),e[27]=x,e[28]=k,e[29]=v):v=e[29];let w;return e[30]!==v||e[31]!==y?(w=c.jsxs(fn,{children:[y,v]}),e[30]=v,e[31]=y,e[32]=w):w=e[32],w}function Sg(t){const e=U.c(35),{value:n,onChange:r,block:s}=t,i=oe();let o;e[0]!==i||e[1]!==n?(o=n?i(To[n]):void 0,e[0]=i,e[1]=n,e[2]=o):o=e[2];const l=o,a=n!==null;let d;e[3]!==s||e[4]!==a?(d=vr(a,s),e[3]=s,e[4]=a,e[5]=d):d=e[5];const f=d,h=s&&"ml-auto";let p;e[6]!==h?(p=Z("shrink-0 opacity-60",h),e[6]=h,e[7]=p):p=e[7];const u=p;let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=c.jsx(Yn,{size:14,className:"shrink-0"}),e[8]=m):m=e[8];let y;e[9]!==l||e[10]!==i?(y=l??i("taskBoard.taskFilters.dueDateLabel"),e[9]=l,e[10]=i,e[11]=y):y=e[11];let b;e[12]!==u?(b=c.jsx(fi,{size:12,className:u}),e[12]=u,e[13]=b):b=e[13];let g;e[14]!==y||e[15]!==b||e[16]!==f?(g=c.jsx(dn,{asChild:!0,children:c.jsxs("button",{type:"button",className:f,children:[m,y,b]})}),e[14]=y,e[15]=b,e[16]=f,e[17]=g):g=e[17];let x;e[18]!==r?(x=()=>r(null),e[18]=r,e[19]=x):x=e[19];let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=c.jsx(Yn,{size:16,className:"text-muted-foreground"}),e[20]=k):k=e[20];let v;e[21]!==i?(v=i("taskBoard.taskFilters.dueDateAnyTime"),e[21]=i,e[22]=v):v=e[22];let w;e[23]!==x||e[24]!==v?(w=c.jsxs(Ct,{onSelect:x,className:"gap-2",children:[k,v]}),e[23]=x,e[24]=v,e[25]=w):w=e[25];let j;e[26]!==r||e[27]!==i?(j=Object.entries(To).map(D=>{const[E,N]=D,I=E==="overdue";return c.jsxs(Ct,{onSelect:()=>r(E),className:Z("gap-2",I&&"text-destructive"),children:[c.jsx(Yn,{size:16,className:Z("shrink-0",I?"text-destructive":"text-muted-foreground")}),i(N)]},E)}),e[26]=r,e[27]=i,e[28]=j):j=e[28];let C;e[29]!==w||e[30]!==j?(C=c.jsxs(un,{align:"start",className:"w-44",children:[w,j]}),e[29]=w,e[30]=j,e[31]=C):C=e[31];let T;return e[32]!==C||e[33]!==g?(T=c.jsxs(fn,{children:[g,C]}),e[32]=C,e[33]=g,e[34]=T):T=e[34],T}function ga(t){const e=U.c(26),{filters:n,members:r,onChange:s,block:i}=t;let o;e[0]!==n||e[1]!==s?(o=u=>s({...n,assignee:u}),e[0]=n,e[1]=s,e[2]=o):o=e[2];let l;e[3]!==i||e[4]!==n.assignee||e[5]!==r||e[6]!==o?(l=c.jsx(vg,{block:i,value:n.assignee,members:r,onChange:o}),e[3]=i,e[4]=n.assignee,e[5]=r,e[6]=o,e[7]=l):l=e[7];let a;e[8]!==n||e[9]!==s?(a=u=>s({...n,priority:u}),e[8]=n,e[9]=s,e[10]=a):a=e[10];let d;e[11]!==i||e[12]!==n.priority||e[13]!==a?(d=c.jsx(wg,{block:i,value:n.priority,onChange:a}),e[11]=i,e[12]=n.priority,e[13]=a,e[14]=d):d=e[14];let f;e[15]!==n||e[16]!==s?(f=u=>s({...n,due:u}),e[15]=n,e[16]=s,e[17]=f):f=e[17];let h;e[18]!==i||e[19]!==n.due||e[20]!==f?(h=c.jsx(Sg,{block:i,value:n.due,onChange:f}),e[18]=i,e[19]=n.due,e[20]=f,e[21]=h):h=e[21];let p;return e[22]!==l||e[23]!==d||e[24]!==h?(p=c.jsxs(c.Fragment,{children:[l,d,h]}),e[22]=l,e[23]=d,e[24]=h,e[25]=p):p=e[25],p}function Cg(t){const e=U.c(12),{filters:n,members:r,onChange:s}=t,i=oe();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=c.jsx(al,{size:16,className:"mr-0.5 shrink-0 text-muted-foreground"}),e[0]=o):o=e[0];let l;e[1]!==n||e[2]!==r||e[3]!==s?(l=c.jsx(ga,{filters:n,members:r,onChange:s}),e[1]=n,e[2]=r,e[3]=s,e[4]=l):l=e[4];let a;e[5]!==n||e[6]!==s||e[7]!==i?(a=mg(n)&&c.jsx("button",{type:"button",onClick:()=>s(dr),className:"ml-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground",children:i("taskBoard.taskFilters.clearButton")}),e[5]=n,e[6]=s,e[7]=i,e[8]=a):a=e[8];let d;return e[9]!==l||e[10]!==a?(d=c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[o,l,a]}),e[9]=l,e[10]=a,e[11]=d):d=e[11],d}function jg(t){const e=U.c(38),{filters:n,members:r,onChange:s}=t,i=oe(),[o,l]=S.useState(!1),a=xg(n),d=a>0;let f;e[0]!==d?(f=vr(d),e[0]=d,e[1]=f):f=e[1];const h=f;let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p=c.jsx(al,{size:14,className:"shrink-0"}),e[2]=p):p=e[2];let u;e[3]!==i?(u=i("taskBoard.taskFilters.filterDrawerButtonLabel"),e[3]=i,e[4]=u):u=e[4];let m;e[5]!==a?(m=a>0&&c.jsx("span",{className:"ml-0.5 flex size-4 items-center justify-center rounded-full bg-foreground text-[10px] font-semibold text-background",children:a}),e[5]=a,e[6]=m):m=e[6];let y;e[7]!==u||e[8]!==m||e[9]!==h?(y=c.jsx(Lc,{asChild:!0,children:c.jsxs("button",{type:"button",className:h,children:[p,u,m]})}),e[7]=u,e[8]=m,e[9]=h,e[10]=y):y=e[10];let b;e[11]!==i?(b=i("taskBoard.taskFilters.filterDrawerTitle"),e[11]=i,e[12]=b):b=e[12];let g;e[13]!==b?(g=c.jsx(Pc,{className:"px-4 pt-4 text-base font-medium text-foreground",children:b}),e[13]=b,e[14]=g):g=e[14];let x;e[15]!==n||e[16]!==r||e[17]!==s?(x=c.jsx("div",{className:"flex flex-col gap-2 p-4",children:c.jsx(ga,{block:!0,filters:n,members:r,onChange:s})}),e[15]=n,e[16]=r,e[17]=s,e[18]=x):x=e[18];let k;e[19]!==a||e[20]!==s||e[21]!==i?(k=a>0&&c.jsx(Ae,{variant:"outline",className:"flex-1",onClick:()=>s(dr),children:i("taskBoard.taskFilters.clearAllButton")}),e[19]=a,e[20]=s,e[21]=i,e[22]=k):k=e[22];let v;e[23]!==i?(v=i("taskBoard.taskFilters.doneButton"),e[23]=i,e[24]=v):v=e[24];let w;e[25]!==v?(w=c.jsx(Fc,{asChild:!0,children:c.jsx(Ae,{className:"flex-1",children:v})}),e[25]=v,e[26]=w):w=e[26];let j;e[27]!==k||e[28]!==w?(j=c.jsxs(Uc,{className:"flex-row gap-2",children:[k,w]}),e[27]=k,e[28]=w,e[29]=j):j=e[29];let C;e[30]!==j||e[31]!==g||e[32]!==x?(C=c.jsxs(qc,{className:"p-0",children:[g,x,j]}),e[30]=j,e[31]=g,e[32]=x,e[33]=C):C=e[33];let T;return e[34]!==o||e[35]!==C||e[36]!==y?(T=c.jsxs(Kc,{open:o,onOpenChange:l,direction:"bottom",children:[y,C]}),e[34]=o,e[35]=C,e[36]=y,e[37]=T):T=e[37],T}Ra(()=>import("./index-D1QykbrQ.js").then(t=>t.bd),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148])).catch(()=>{});function Tg(){const t=U.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=c.jsx("div",{className:"min-h-0 flex-1 pt-0 pr-1 pb-1 pl-0",children:c.jsx("div",{className:"h-full p-0.5 pt-0.25",children:c.jsx("div",{className:"card-shadow flex h-full flex-col overflow-hidden rounded-[0.75rem] bg-background",children:c.jsx(va,{})})})}),t[0]=e):e=t[0],e}const Ng=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"});function Dg(t){const e=new Date(t),n=e.getTime()<Date.now();return{label:Ng.format(e),overdue:n}}const Os="inline-flex items-center gap-1.5 rounded-lg border border-border bg-background px-2 py-1 text-xs font-medium text-muted-foreground";function ma(){const t=U.c(9),e=oe();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=Z(Os,"border-warning/30 text-warning"),t[0]=n):n=t[0];let r;t[1]!==e?(r=e("taskBoard.taskBoard.blockedBadgeTitle"),t[1]=e,t[2]=r):r=t[2];let s;t[3]===Symbol.for("react.memo_cache_sentinel")?(s=c.jsx(ti,{size:14}),t[3]=s):s=t[3];let i;t[4]!==e?(i=e("taskBoard.taskBoard.needsInput"),t[4]=e,t[5]=i):i=t[5];let o;return t[6]!==r||t[7]!==i?(o=c.jsxs("span",{className:n,title:r,children:[s,i]}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function xa(t){const e=U.c(10),{priority:n}=t,r=oe(),s=It[n];let i;e[0]!==s.dotClassName?(i=Z("size-2 rounded-full",s.dotClassName),e[0]=s.dotClassName,e[1]=i):i=e[1];let o;e[2]!==i?(o=c.jsx("span",{className:i}),e[2]=i,e[3]=o):o=e[3];let l;e[4]!==s.labelKey||e[5]!==r?(l=r(s.labelKey),e[4]=s.labelKey,e[5]=r,e[6]=l):l=e[6];let a;return e[7]!==o||e[8]!==l?(a=c.jsxs("span",{className:Os,children:[o,l]}),e[7]=o,e[8]=l,e[9]=a):a=e[9],a}function ba(t){const e=U.c(7),{iso:n}=t;let r,s;if(e[0]!==n){const{label:l,overdue:a}=Dg(n);r=l,s=Z(Os,a&&"border-destructive/30 text-destructive"),e[0]=n,e[1]=r,e[2]=s}else r=e[1],s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=c.jsx(Yn,{size:14}),e[3]=i):i=e[3];let o;return e[4]!==r||e[5]!==s?(o=c.jsxs("span",{className:s,children:[i,r]}),e[4]=r,e[5]=s,e[6]=o):o=e[6],o}function ya(t){const e=U.c(7),{tag:n}=t;let r;e[0]!==n.color?(r=As(n.color),e[0]=n.color,e[1]=r):r=e[1];let s;e[2]!==r?(s=c.jsx("span",{className:"size-2 rounded-full",style:{backgroundColor:r}}),e[2]=r,e[3]=s):s=e[3];let i;return e[4]!==s||e[5]!==n.name?(i=c.jsxs("span",{className:Os,children:[s,n.name]}),e[4]=s,e[5]=n.name,e[6]=i):i=e[6],i}function ka(t){const e=U.c(32),{item:n,assignee:r,assignedBy:s,members:i,onAssign:o}=t,l=oe(),[a,d]=S.useState(!1);if(n.assigneeId===$e){let x;e[0]!==s||e[1]!==l?(x=s?.user?.name?l("taskBoard.taskBoard.assignedToSuperAgentBy",{name:s.user.name}):l("taskBoard.taskBoard.assignedToSuperAgent"),e[0]=s,e[1]=l,e[2]=x):x=e[2];let k;e[3]!==s?(k=s&&c.jsx(At,{url:s.user?.image??void 0,fallback:_t(s.user?.name),shape:"circle",size:"xs",className:"-mr-2 ring-2 ring-background"}),e[3]=s,e[4]=k):k=e[4];let v;e[5]===Symbol.for("react.memo_cache_sentinel")?(v=c.jsx(Pt,{size:20,className:"ring-2 ring-background"}),e[5]=v):v=e[5];let w;return e[6]!==x||e[7]!==k?(w=c.jsxs("span",{className:"inline-flex items-center",title:x,children:[k,v]}),e[6]=x,e[7]=k,e[8]=w):w=e[8],w}if(r){const x=r.user?.image??void 0,k=r.user?.name;let v;e[9]!==k?(v=_t(k),e[9]=k,e[10]=v):v=e[10];let w;return e[11]!==x||e[12]!==v?(w=c.jsx(At,{url:x,fallback:v,shape:"circle",size:"xs"}),e[11]=x,e[12]=v,e[13]=w):w=e[13],w}if(!o||!i?.length)return null;let f;e[14]!==l?(f=l("taskBoard.taskBoard.assignButton"),e[14]=l,e[15]=f):f=e[15];let h;e[16]!==l?(h=l("taskBoard.taskBoard.assignButton"),e[16]=l,e[17]=h):h=e[17];let p;e[18]===Symbol.for("react.memo_cache_sentinel")?(p=x=>{x.stopPropagation(),d(!0)},e[18]=p):p=e[18];let u;e[19]===Symbol.for("react.memo_cache_sentinel")?(u=c.jsx(Po,{size:13}),e[19]=u):u=e[19];let m;e[20]!==f||e[21]!==h?(m=c.jsx(Xn,{asChild:!0,children:c.jsx("button",{type:"button",title:f,"aria-label":h,onClick:p,className:"flex size-6 shrink-0 items-center justify-center rounded-full border border-dashed border-muted-foreground/40 text-muted-foreground/40 transition-colors hover:border-muted-foreground hover:text-muted-foreground",children:u})}),e[20]=f,e[21]=h,e[22]=m):m=e[22];let y;e[23]!==o?(y=x=>{o(x),d(!1)},e[23]=o,e[24]=y):y=e[24];let b;e[25]!==i||e[26]!==y?(b=c.jsx(xs,{className:"w-56 p-0",align:"end",side:"bottom",onClick:Rg,children:c.jsx($i,{members:i,onSelect:y})}),e[25]=i,e[26]=y,e[27]=b):b=e[27];let g;return e[28]!==a||e[29]!==m||e[30]!==b?(g=c.jsxs(bs,{open:a,onOpenChange:d,children:[m,b]}),e[28]=a,e[29]=m,e[30]=b,e[31]=g):g=e[31],g}function Rg(t){return t.stopPropagation()}function va(){const t=U.c(147),e=oe(),{items:n,isLoading:r}=Cf(),s=jf(),i=Bc(),o=Za({slug:"mcp-github"})??[];let l;t[0]!==o?(l=o.some(Og),t[0]=o,t[1]=l):l=t[1];const a=l,[d,f]=S.useState(!1),[h,p]=S.useState(!1);let u;t[2]!==a?(u=M=>M===$e&&!a?(f(!0),!0):!1,t[2]=a,t[3]=u):u=t[3];const m=u,[y,b]=S.useState(null);let g;t[4]===Symbol.for("react.memo_cache_sentinel")?(g=M=>{const ne=Gc(M);ne&&b(ne)},t[4]=g):g=t[4];const x=g;let k;t[5]===Symbol.for("react.memo_cache_sentinel")?(k=[],t[5]=k):k=t[5];const[v,w]=S.useState(k),j=()=>{if(v.length!==0){if(m($e)){w([]);return}for(const M of v)s.rerun.mutate({id:M.id},{onError:ne=>x(ne)});w([]),$()}},{data:C}=Wo();let T,D;t[6]!==C?.data?.members?(T=C?.data?.members??[],D=new Map(T.map(Bg)),t[6]=C?.data?.members,t[7]=T,t[8]=D):(T=t[7],D=t[8]);const E=D,[N,I]=S.useState("board"),[A,_]=S.useState(dr);let z;t[9]===Symbol.for("react.memo_cache_sentinel")?(z=new Set,t[9]=z):z=t[9];const[R,O]=S.useState(z);let L;t[10]===Symbol.for("react.memo_cache_sentinel")?(L=M=>O(ne=>{const fe=new Set(ne);return fe.has(M)?fe.delete(M):fe.add(M),fe}),t[10]=L):L=t[10];const B=L,F=M=>O(ne=>{const fe=new Set(ne);for(const Pe of et)Pe.status===M&&fe.add(Pe.id);return fe}),$=()=>O(new Set),[W,K]=S.useState(!1),[Q,G]=S.useState(null),[Y,ee]=S.useState(null),{setTaskId:se}=Wc(),{create:re}=Vc(),q=gn(),{org:V,locator:J}=Me(),ie=Lo();let te;t[11]===Symbol.for("react.memo_cache_sentinel")?(te={strict:!1},t[11]=te):te=t[11];const{task:P}=Da(te);let H;t[12]!==P||t[13]!==n?(H=P?n.find(M=>M.id===P)??null:null,t[12]=P,t[13]=n,t[14]=H):H=t[14];const le=H;let ge;t[15]!==P||t[16]!==ie||t[17]!==V?(ge=()=>{P&&ie({to:"/$org/board",params:{org:V.slug},search:{},replace:!0})},t[15]=P,t[16]=ie,t[17]=V,t[18]=ge):ge=t[18];const ke=ge;let ye;t[19]!==s||t[20]!==re||t[21]!==J||t[22]!==V||t[23]!==se||t[24]!==q?(ye=async M=>{const ne=crypto.randomUUID(),fe=Qa(V.id).id,Pe=await q.call("TASK_BOARD_ITEM_PRS_GET",{taskBoardItemId:M.id}).then(Ag).catch(_g),at=gg(M,Pe),Nt={type:"doc",content:[{type:"paragraph",content:[Ec({id:M.id,name:M.title,char:"@",kind:"task",metadata:{title:M.title,description:M.description,context:at}}),{type:"text",text:" "}]}]};Zc(sessionStorage,J,ne,Nt),K(!1);try{await re({id:ne,virtual_mcp_id:fe}),await s.link.mutateAsync({id:M.id,linkThreadId:ne})}catch{}se(ne,fe)},t[19]=s,t[20]=re,t[21]=J,t[22]=V,t[23]=se,t[24]=q,t[25]=ye):ye=t[25];const Ne=ye;let Be;t[26]!==A?(Be=M=>kg(M,A),t[26]=A,t[27]=Be):Be=t[27];const et=n.filter(Be);let dt;t[28]===Symbol.for("react.memo_cache_sentinel")?(dt=()=>{G(null),ee(null),K(!0)},t[28]=dt):dt=t[28];const Gt=dt;let ot;t[29]===Symbol.for("react.memo_cache_sentinel")?(ot=M=>{G(null),ee(M),K(!0)},t[29]=ot):ot=t[29];const ue=ot;let Qe;t[30]===Symbol.for("react.memo_cache_sentinel")?(Qe=M=>{G(M),K(!0)},t[30]=Qe):Qe=t[30];const Xt=Qe;let Le;t[31]!==le||t[32]!==Q||t[33]!==n?(Le=(Q&&n.find(M=>M.id===Q.id))??Q??le,t[31]=le,t[32]=Q,t[33]=n,t[34]=Le):Le=t[34];const de=Le,De=W||!!le;let ut;t[35]!==ke?(ut=()=>{K(!1),G(null),ee(null),ke()},t[35]=ke,t[36]=ut):ut=t[36];const he=ut;if(r&&n.length===0){let M;return t[37]===Symbol.for("react.memo_cache_sentinel")?(M=c.jsx("div",{className:"flex flex-1 items-center justify-center",children:c.jsx(Ts,{size:20,className:"animate-spin text-muted-foreground"})}),t[37]=M):M=t[37],M}const Bt="relative flex min-h-0 flex-1 flex-col";let tt;t[38]!==e?(tt=e("taskBoard.taskBoard.tasksTitle"),t[38]=e,t[39]=tt):tt=t[39];let We;t[40]!==tt?(We=c.jsx("h1",{className:"text-xl font-medium text-foreground",children:tt}),t[40]=tt,t[41]=We):We=t[41];let nt;t[42]!==i?(nt=i&&c.jsx(og,{}),t[42]=i,t[43]=nt):nt=t[43];let st;t[44]!==A||t[45]!==n.length||t[46]!==T?(st=n.length>0&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"sm:hidden",children:c.jsx(jg,{filters:A,members:T,onChange:_})}),c.jsx("div",{className:"hidden sm:block",children:c.jsx(Cg,{filters:A,members:T,onChange:_})})]}),t[44]=A,t[45]=n.length,t[46]=T,t[47]=st):st=t[47];const Tt=N==="list";let pe;t[48]!==$?(pe=()=>{I("list"),$()},t[48]=$,t[49]=pe):pe=t[49];let ve;t[50]!==e?(ve=e("common.taskBoard.listView"),t[50]=e,t[51]=ve):ve=t[51];let we;t[52]!==Tt||t[53]!==pe||t[54]!==ve?(we=c.jsx(No,{active:Tt,onClick:pe,icon:Uo,label:ve}),t[52]=Tt,t[53]=pe,t[54]=ve,t[55]=we):we=t[55];const Fe=N==="board";let Re;t[56]===Symbol.for("react.memo_cache_sentinel")?(Re=()=>I("board"),t[56]=Re):Re=t[56];let Se;t[57]!==e?(Se=e("common.taskBoard.boardView"),t[57]=e,t[58]=Se):Se=t[58];let Ce;t[59]!==Fe||t[60]!==Se?(Ce=c.jsx(No,{active:Fe,onClick:Re,icon:Fa,label:Se}),t[59]=Fe,t[60]=Se,t[61]=Ce):Ce=t[61];let Oe;t[62]!==we||t[63]!==Ce?(Oe=c.jsxs("div",{className:"inline-flex rounded-lg bg-muted p-0.5",children:[we,Ce]}),t[62]=we,t[63]=Ce,t[64]=Oe):Oe=t[64];let me;t[65]===Symbol.for("react.memo_cache_sentinel")?(me=c.jsx(ws,{size:16}),t[65]=me):me=t[65];let Ee;t[66]!==e?(Ee=e("taskBoard.taskBoard.newTask"),t[66]=e,t[67]=Ee):Ee=t[67];let Ie;t[68]!==Ee?(Ie=c.jsxs(Ae,{size:"sm",onClick:Gt,children:[me,Ee]}),t[68]=Ee,t[69]=Ie):Ie=t[69];let _e;t[70]!==Oe||t[71]!==Ie?(_e=c.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[Oe,Ie]}),t[70]=Oe,t[71]=Ie,t[72]=_e):_e=t[72];let Ue;t[73]!==st||t[74]!==_e?(Ue=c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[st,_e]}),t[73]=st,t[74]=_e,t[75]=Ue):Ue=t[75];let qe;t[76]!==We||t[77]!==nt||t[78]!==Ue?(qe=c.jsxs("div",{className:"mx-auto flex w-full max-w-[1680px] flex-col gap-4 px-4 pt-6 sm:px-8 sm:pt-8",children:[We,nt,Ue]}),t[76]=We,t[77]=nt,t[78]=Ue,t[79]=qe):qe=t[79];const Ge=n.length===0?c.jsx("div",{className:"mx-auto w-full max-w-[1680px] px-4 pt-6 sm:px-8",children:c.jsx("div",{className:"rounded-xl bg-card px-4 py-12 text-center text-sm text-muted-foreground card-shadow",children:e("taskBoard.taskBoard.noTasksYet")})}):et.length===0?c.jsx("div",{className:"mx-auto w-full max-w-[1680px] px-4 pt-6 sm:px-8",children:c.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl bg-card px-4 py-12 text-center text-sm text-muted-foreground card-shadow",children:[e("taskBoard.taskBoard.noTasksMatch"),c.jsx(Ae,{variant:"outline",size:"sm",onClick:()=>_(dr),children:e("taskBoard.taskBoard.clearFilters")})]})}):N==="board"?c.jsx(zg,{items:et,members:T,memberByUserId:E,selectedIds:R,onToggleSelect:B,onSelectAllInLane:F,onOpen:Xt,onCreate:ue,onMove:(M,ne,fe)=>{const Pe=zl(fe,M.length);M.forEach((at,Nt)=>s.update.mutate({id:at,status:ne,sortOrder:Pe[Nt]}))},onAssign:(M,ne)=>{m(ne)||s.update.mutate({id:M,assigneeId:ne},{onError:x})},onAutoFix:M=>{m($e)||s.update.mutate({id:M.id,assigneeId:$e},{onError:x})},onRerun:M=>w([M])}):c.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 pt-6 pb-16 sm:px-8",children:c.jsx("div",{className:"mx-auto flex max-w-[820px] flex-col gap-2",children:et.map(M=>c.jsx(Vg,{item:M,assignee:M.assigneeId?E.get(M.assigneeId):void 0,assignedBy:M.assignedBy?E.get(M.assignedBy):void 0,onOpen:()=>Xt(M)},M.id))})}),Xe=De?de?.id??`new-${Y??"default"}`:"closed",lt=de??void 0,qt=Y??void 0,Kt=s.create.isPending||s.update.isPending;let ft;t[80]!==s.create||t[81]!==s.update||t[82]!==de||t[83]!==m||t[84]!==he?(ft=M=>{if(m(M.assigneeId)){he();return}if(de){const{title:ne,description:fe,priority:Pe,...at}=M,Nt=Vo(de)?{}:{title:ne,description:fe,priority:Pe};s.update.mutate({id:de.id,...at,...Nt},{onError:x})}else s.create.mutate(M);he()},t[80]=s.create,t[81]=s.update,t[82]=de,t[83]=m,t[84]=he,t[85]=ft):ft=t[85];let ht;t[86]!==s.remove||t[87]!==de||t[88]!==he?(ht=de?()=>{s.remove.mutate(de.id),he()}:void 0,t[86]=s.remove,t[87]=de,t[88]=he,t[89]=ht):ht=t[89];let pt;t[90]!==de||t[91]!==Ne?(pt=de?()=>{Ne(de)}:void 0,t[90]=de,t[91]=Ne,t[92]=pt):pt=t[92];let gt;t[93]!==s.update||t[94]!==de||t[95]!==m||t[96]!==he?(gt=de?()=>{m($e)||(s.update.mutate({id:de.id,assigneeId:$e},{onError:x}),he())}:void 0,t[93]=s.update,t[94]=de,t[95]=m,t[96]=he,t[97]=gt):gt=t[97];let mt;t[98]!==de||t[99]!==he?(mt=de?()=>{he(),w([de])}:void 0,t[98]=de,t[99]=he,t[100]=mt):mt=t[100];let xt;t[101]!==he||t[102]!==se?(xt=M=>{M.virtualMcpId&&(he(),se(M.threadId,M.virtualMcpId,{main:M.hasPreview?"preview":"board"}))},t[101]=he,t[102]=se,t[103]=xt):xt=t[103];let bt;t[104]!==he||t[105]!==De||t[106]!==Xe||t[107]!==lt||t[108]!==qt||t[109]!==Kt||t[110]!==ft||t[111]!==ht||t[112]!==pt||t[113]!==gt||t[114]!==mt||t[115]!==xt?(bt=c.jsx(Ep,{open:De,onClose:he,item:lt,defaultStatus:qt,isSaving:Kt,onSubmit:ft,onDelete:ht,onNewChat:pt,onAutoFix:gt,onRerun:mt,onOpenThread:xt},Xe),t[104]=he,t[105]=De,t[106]=Xe,t[107]=lt,t[108]=qt,t[109]=Kt,t[110]=ft,t[111]=ht,t[112]=pt,t[113]=gt,t[114]=mt,t[115]=xt,t[116]=bt):bt=t[116];let Ot;t[117]===Symbol.for("react.memo_cache_sentinel")?(Ot=()=>p(!0),t[117]=Ot):Ot=t[117];let Ht;t[118]!==d?(Ht=c.jsx($g,{open:d,onOpenChange:f,onConnected:Ot}),t[118]=d,t[119]=Ht):Ht=t[119];let yt;t[120]!==h?(yt=c.jsx(Xa,{mode:"connection",open:h,onOpenChange:p}),t[120]=h,t[121]=yt):yt=t[121];let $t;t[122]===Symbol.for("react.memo_cache_sentinel")?($t=M=>!M&&b(null),t[122]=$t):$t=t[122];let kt;t[123]!==y?(kt=c.jsx(ag,{kind:y,onOpenChange:$t}),t[123]=y,t[124]=kt):kt=t[124];let Mt;t[125]===Symbol.for("react.memo_cache_sentinel")?(Mt=M=>!M&&w([]),t[125]=Mt):Mt=t[125];let vt;t[126]!==s.rerun.isPending||t[127]!==j||t[128]!==v?(vt=c.jsx(ug,{items:v,pending:s.rerun.isPending,onOpenChange:Mt,onConfirm:j}),t[126]=s.rerun.isPending,t[127]=j,t[128]=v,t[129]=vt):vt=t[129];let wt;t[130]!==s.removeMany||t[131]!==s.update||t[132]!==m||t[133]!==$||t[134]!==n||t[135]!==T||t[136]!==R?(wt=R.size>0&&c.jsx(Mg,{count:R.size,members:T,onMoveTo:M=>{for(const ne of R)s.update.mutate({id:ne,status:M});$()},onSetPriority:M=>{for(const ne of R)s.update.mutate({id:ne,priority:M});$()},onAddTag:M=>{for(const ne of R){const fe=n.find(at=>at.id===ne);if(!fe)continue;const Pe=fe.tags.map(Ig);Pe.includes(M)||s.update.mutate({id:ne,tagIds:[...Pe,M]})}$()},onAssign:M=>{if(!m(M)){for(const ne of R)s.update.mutate({id:ne,assigneeId:M},{onError:x});$()}},onSetDueDate:M=>{const ne=Gr(M);for(const fe of R)s.update.mutate({id:fe,dueDate:ne});$()},onAutoFix:R.size>0&&Array.from(R).every(M=>{const ne=n.find(fe=>fe.id===M);return ne&&(ne.status==="triage"||ne.status==="todo")&&ne.assigneeId!==$e})?()=>{if(!m($e)){for(const M of R)s.update.mutate({id:M,assigneeId:$e},{onError:x});$()}}:void 0,onRerun:(()=>{const M=Array.from(R).flatMap(ne=>{const fe=n.find(Pe=>Pe.id===ne);return fe?[fe]:[]});return M.length===R.size&&M.every(Eg)?()=>w(M):void 0})(),onDelete:()=>{s.removeMany.mutate(Array.from(R)),$()},onClear:$}),t[130]=s.removeMany,t[131]=s.update,t[132]=m,t[133]=$,t[134]=n,t[135]=T,t[136]=R,t[137]=wt):wt=t[137];let tn;return t[138]!==qe||t[139]!==Ge||t[140]!==bt||t[141]!==Ht||t[142]!==yt||t[143]!==kt||t[144]!==vt||t[145]!==wt?(tn=c.jsxs("div",{className:Bt,children:[qe,Ge,bt,Ht,yt,kt,vt,wt]}),t[138]=qe,t[139]=Ge,t[140]=bt,t[141]=Ht,t[142]=yt,t[143]=kt,t[144]=vt,t[145]=wt,t[146]=tn):tn=t[146],tn}function Eg(t){return t.assigneeId===$e&&t.status!=="done"}function Ig(t){return t.id}function _g(){return[]}function Ag(t){return t.prs}function Bg(t){return[t.userId,t]}function Og(t){return t.status==="active"&&Ja(t)!==null}function $g(t){const e=U.c(32),{open:n,onOpenChange:r,onConnected:s}=t,i=oe(),{connect:o,isConnecting:l}=sf("deco/mcp-github");let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx("div",{className:"flex h-28 items-center justify-center bg-gradient-to-br from-muted via-muted to-accent",children:c.jsx("div",{className:"flex size-14 items-center justify-center rounded-2xl bg-foreground text-background shadow-sm",children:c.jsx($r,{className:"size-7"})})}),e[0]=a):a=e[0];let d;e[1]!==i?(d=i("taskBoard.taskBoard.connectGithubTitle"),e[1]=i,e[2]=d):d=e[2];let f;e[3]!==d?(f=c.jsx(ts,{children:d}),e[3]=d,e[4]=f):f=e[4];let h;e[5]!==i?(h=i("taskBoard.taskBoard.connectGithubDescription"),e[5]=i,e[6]=h):h=e[6];let p;e[7]!==h?(p=c.jsx(ni,{children:h}),e[7]=h,e[8]=p):p=e[8];let u;e[9]!==f||e[10]!==p?(u=c.jsxs(si,{children:[f,p]}),e[9]=f,e[10]=p,e[11]=u):u=e[11];let m;e[12]!==o||e[13]!==s||e[14]!==r?(m=async()=>{await o(),r(!1),s()},e[12]=o,e[13]=s,e[14]=r,e[15]=m):m=e[15];let y;e[16]!==l?(y=l?c.jsx(Ts,{size:16,className:"animate-spin"}):c.jsx($r,{className:"size-4"}),e[16]=l,e[17]=y):y=e[17];let b;e[18]!==i?(b=i("taskBoard.taskBoard.connectGithubButton"),e[18]=i,e[19]=b):b=e[19];let g;e[20]!==l||e[21]!==m||e[22]!==y||e[23]!==b?(g=c.jsx(ri,{children:c.jsxs(Ae,{onClick:m,disabled:l,className:"gap-2",children:[y,b]})}),e[20]=l,e[21]=m,e[22]=y,e[23]=b,e[24]=g):g=e[24];let x;e[25]!==g||e[26]!==u?(x=c.jsxs(es,{className:"gap-0 overflow-hidden p-0 sm:max-w-md",children:[a,c.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[u,g]})]}),e[25]=g,e[26]=u,e[27]=x):x=e[27];let k;return e[28]!==r||e[29]!==n||e[30]!==x?(k=c.jsx(Jn,{open:n,onOpenChange:r,children:x}),e[28]=r,e[29]=n,e[30]=x,e[31]=k):k=e[31],k}function Mg(t){const e=U.c(95),{count:n,members:r,onMoveTo:s,onSetPriority:i,onAddTag:o,onAssign:l,onSetDueDate:a,onAutoFix:d,onRerun:f,onDelete:h,onClear:p}=t,u=oe(),{data:m}=Qo();let y;e[0]!==m?(y=m===void 0?[]:m,e[0]=m,e[1]=y):y=e[1];const b=y;let g;e[2]!==n||e[3]!==u?(g=u("taskBoard.taskBoard.selectedCount",{count:n}),e[2]=n,e[3]=u,e[4]=g):g=e[4];let x;e[5]!==g?(x=c.jsx("span",{className:"pl-1 text-sm font-medium text-foreground",children:g}),e[5]=g,e[6]=x):x=e[6];let k;e[7]!==u?(k=u("taskBoard.taskBoard.actionsButton"),e[7]=u,e[8]=k):k=e[8];let v;e[9]!==k?(v=c.jsx(dn,{asChild:!0,children:c.jsx("button",{type:"button",className:"flex items-center gap-1.5 rounded-full border border-border px-3 py-1.5 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:k})}),e[9]=k,e[10]=v):v=e[10];let w;e[11]!==u?(w=u("taskBoard.taskBoard.moveToButton"),e[11]=u,e[12]=w):w=e[12];let j;e[13]!==w?(j=c.jsx(as,{children:w}),e[13]=w,e[14]=j):j=e[14];let C;e[15]!==s||e[16]!==u?(C=ir.map(H=>c.jsx(Ct,{onClick:()=>s(H),children:u(Et[H].labelKey)},H)),e[15]=s,e[16]=u,e[17]=C):C=e[17];let T;e[18]!==C?(T=c.jsx(cs,{children:C}),e[18]=C,e[19]=T):T=e[19];let D;e[20]!==T||e[21]!==j?(D=c.jsxs(ls,{children:[j,T]}),e[20]=T,e[21]=j,e[22]=D):D=e[22];let E;e[23]!==u?(E=u("taskBoard.taskBoard.changePriorityButton"),e[23]=u,e[24]=E):E=e[24];let N;e[25]!==E?(N=c.jsx(as,{children:E}),e[25]=E,e[26]=N):N=e[26];let I;e[27]!==i||e[28]!==u?(I=Si.map(H=>c.jsxs(Ct,{onClick:()=>i(H),children:[c.jsx("span",{className:Z("size-2 rounded-full",It[H].dotClassName)}),u(It[H].labelKey)]},H)),e[27]=i,e[28]=u,e[29]=I):I=e[29];let A;e[30]!==I?(A=c.jsx(cs,{children:I}),e[30]=I,e[31]=A):A=e[31];let _;e[32]!==N||e[33]!==A?(_=c.jsxs(ls,{children:[N,A]}),e[32]=N,e[33]=A,e[34]=_):_=e[34];let z;e[35]!==u?(z=u("taskBoard.taskBoard.assignButton"),e[35]=u,e[36]=z):z=e[36];let R;e[37]!==z?(R=c.jsx(as,{children:z}),e[37]=z,e[38]=R):R=e[38];let O;e[39]!==r||e[40]!==l?(O=c.jsx(cs,{className:"w-56 p-0",children:c.jsx($i,{members:r,onSelect:l})}),e[39]=r,e[40]=l,e[41]=O):O=e[41];let L;e[42]!==R||e[43]!==O?(L=c.jsxs(ls,{children:[R,O]}),e[42]=R,e[43]=O,e[44]=L):L=e[44];let B;e[45]!==u?(B=u("taskBoard.taskBoard.dueDateButton"),e[45]=u,e[46]=B):B=e[46];let F;e[47]!==B?(F=c.jsx(as,{children:B}),e[47]=B,e[48]=F):F=e[48];let $;e[49]!==a?($=c.jsx(cs,{className:"w-auto p-0",children:c.jsx(nl,{mode:"single",onSelect:H=>H&&a(H),initialFocus:!0})}),e[49]=a,e[50]=$):$=e[50];let W;e[51]!==F||e[52]!==$?(W=c.jsxs(ls,{children:[F,$]}),e[51]=F,e[52]=$,e[53]=W):W=e[53];let K;e[54]!==o||e[55]!==b||e[56]!==u?(K=b.length>0&&c.jsxs(ls,{children:[c.jsx(as,{children:u("taskBoard.taskBoard.addTagButton")}),c.jsx(cs,{children:b.map(H=>c.jsxs(Ct,{onClick:()=>o(H.id),children:[c.jsx("span",{className:"size-2 rounded-full",style:{backgroundColor:As(H.color)}}),H.name]},H.id))})]}),e[54]=o,e[55]=b,e[56]=u,e[57]=K):K=e[57];let Q;e[58]===Symbol.for("react.memo_cache_sentinel")?(Q=c.jsx(qo,{}),e[58]=Q):Q=e[58];let G;e[59]!==u?(G=u("taskBoard.taskBoard.deleteSelectedButton"),e[59]=u,e[60]=G):G=e[60];let Y;e[61]!==h||e[62]!==G?(Y=c.jsx(Ct,{variant:"destructive",onClick:h,children:G}),e[61]=h,e[62]=G,e[63]=Y):Y=e[63];let ee;e[64]!==D||e[65]!==_||e[66]!==L||e[67]!==W||e[68]!==K||e[69]!==Y?(ee=c.jsxs(un,{align:"center",side:"top",children:[D,_,L,W,K,Q,Y]}),e[64]=D,e[65]=_,e[66]=L,e[67]=W,e[68]=K,e[69]=Y,e[70]=ee):ee=e[70];let se;e[71]!==ee||e[72]!==v?(se=c.jsxs(fn,{children:[v,ee]}),e[71]=ee,e[72]=v,e[73]=se):se=e[73];let re;e[74]!==d||e[75]!==u?(re=d&&c.jsxs("button",{type:"button",onClick:d,className:"flex items-center gap-1.5 rounded-full border border-border px-3 py-1.5 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:[c.jsx(ur,{size:14}),u("taskBoard.taskBoard.autoFix")]}),e[74]=d,e[75]=u,e[76]=re):re=e[76];let q;e[77]!==f||e[78]!==u?(q=f&&c.jsxs("button",{type:"button",onClick:f,className:"flex items-center gap-1.5 rounded-full border border-border px-3 py-1.5 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:[c.jsx(Zr,{size:14}),u("taskBoard.taskBoard.rerun")]}),e[77]=f,e[78]=u,e[79]=q):q=e[79];let V;e[80]!==u?(V=u("taskBoard.taskBoard.clearSelectionButton"),e[80]=u,e[81]=V):V=e[81];let J;e[82]!==u?(J=u("taskBoard.taskBoard.clearSelectionButton"),e[82]=u,e[83]=J):J=e[83];let ie;e[84]===Symbol.for("react.memo_cache_sentinel")?(ie=c.jsx(cn,{size:16}),e[84]=ie):ie=e[84];let te;e[85]!==p||e[86]!==V||e[87]!==J?(te=c.jsx("button",{type:"button","aria-label":V,title:J,onClick:p,className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:ie}),e[85]=p,e[86]=V,e[87]=J,e[88]=te):te=e[88];let P;return e[89]!==se||e[90]!==re||e[91]!==q||e[92]!==te||e[93]!==x?(P=c.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-6 z-20 flex justify-center",children:c.jsxs("div",{className:"pointer-events-auto flex items-center gap-2 rounded-full bg-background px-3 py-2 card-shadow",children:[x,se,re,q,te]})}),e[89]=se,e[90]=re,e[91]=q,e[92]=te,e[93]=x,e[94]=P):P=e[94],P}function No(t){const e=U.c(14),{active:n,onClick:r,icon:s,label:i}=t,o=oe();let l;e[0]!==i||e[1]!==o?(l=o("taskBoard.taskBoard.layoutViewAriaLabel",{label:i}),e[0]=i,e[1]=o,e[2]=l):l=e[2];const a=n?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground";let d;e[3]!==a?(d=Z("flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs font-medium transition-colors",a),e[3]=a,e[4]=d):d=e[4];let f;e[5]!==s?(f=c.jsx(s,{size:14}),e[5]=s,e[6]=f):f=e[6];let h;return e[7]!==n||e[8]!==i||e[9]!==r||e[10]!==l||e[11]!==d||e[12]!==f?(h=c.jsxs("button",{type:"button",onClick:r,"aria-label":l,"aria-pressed":n,className:d,children:[f,i]}),e[7]=n,e[8]=i,e[9]=r,e[10]=l,e[11]=d,e[12]=f,e[13]=h):h=e[13],h}const ms="lane:";function Do(t,e){return t.sortOrder-e.sortOrder}function zg(t){const e=U.c(30),{items:n,members:r,memberByUserId:s,selectedIds:i,onToggleSelect:o,onSelectAllInLane:l,onOpen:a,onCreate:d,onMove:f,onAutoFix:h,onRerun:p,onAssign:u}=t,[m,y]=S.useState(null);let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b=[],e[0]=b):b=e[0];const[g,x]=S.useState(b);let k;e[1]===Symbol.for("react.memo_cache_sentinel")?(k=new Map,e[1]=k):k=e[1];const[v,w]=S.useState(k),j=S.useRef(null),C=v.size>0?n.map(P=>{const H=v.get(P.id);return H?{...P,...H}:P}):n;if(v.size>0&&!m){const P=[...v].filter(H=>{const[le,ge]=H,ke=n.find(ye=>ye.id===le);return ke?.status===ge.status&&ke.sortOrder===ge.sortOrder});P.length>0&&w(H=>{const le=new Map(H);for(const[ge]of P)le.delete(ge);return le})}pg(j,C.map(Ug).join(","),m===null);const T=P=>C.filter(H=>H.status===P).sort(Do),D=P=>{if(P===void 0)return null;const H=String(P);if(H.startsWith(ms)){const le=H.slice(ms.length);return ir.find(ge=>ge===le)??null}return C.find(le=>le.id===H)?.status??null};let E;e[2]!==i?(E=P=>i.has(P)&&i.size>1?[P,...Array.from(i).filter(H=>H!==P)]:[P],e[2]=i,e[3]=E):E=e[3];const N=E;let I;e[4]===Symbol.for("react.memo_cache_sentinel")?(I=(P,H,le)=>{const ge=zl(le,P.length);w(ke=>{const ye=new Map(ke);return P.forEach((Ne,Be)=>ye.set(Ne,{status:H,sortOrder:ge[Be]})),ye})},e[4]=I):I=e[4];const A=I;let _;e[5]===Symbol.for("react.memo_cache_sentinel")?(_={activationConstraint:{distance:4}},e[5]=_):_=e[5];let z;e[6]===Symbol.for("react.memo_cache_sentinel")?(z={coordinateGetter:vf},e[6]=z):z=e[6];const R=Ud(Ui(yi,_),Ui(xi,z)),O=P=>{const H=String(P.active.id),le=D(P.over?.id),ge=C.find(Be=>Be.id===H);if(!le||!ge||ge.status===le)return;const ke=N(H),ye=String(P.over?.id??""),Ne=T(le).filter(Be=>!ke.includes(Be.id));A(ke,le,so(Ne,ye.startsWith(ms)?null:ye,H))},L=P=>{const H=String(P.active.id);y(null);const le=D(P.over?.id)??C.find(ue=>ue.id===H)?.status;if(!le){w(new Map);return}const ge=N(H),ke=T(le),ye=String(P.over?.id??""),Ne=ke.findIndex(ue=>ue.id===H),Be=ye.startsWith(ms)?ke.length-1:ke.findIndex(ue=>ue.id===ye),et=Ne===-1||Be===-1?ke:vi(ke,Ne,Be);if(n.filter(ue=>ue.status===le).sort(Do).map(Fg).join()===et.map(Pg).join()){w(new Map);return}const Gt=et.slice(et.findIndex(ue=>ue.id===H)+1).find(ue=>!ge.includes(ue.id)),ot=so(ke.filter(ue=>!ge.includes(ue.id)),Gt?.id??null,H);A(ge,le,ot),x(ge),f(ge,le,ot)},B=m?C.find(P=>P.id===m):null;let F;e[7]!==m||e[8]!==N?(F=m?N(m):[],e[7]=m,e[8]=N,e[9]=F):F=e[9];const $=F,W=zu,K=gl;let Q;e[10]===Symbol.for("react.memo_cache_sentinel")?(Q=P=>{y(String(P.active.id)),x([])},e[10]=Q):Q=e[10];let G;e[11]===Symbol.for("react.memo_cache_sentinel")?(G=()=>{y(null),w(new Map)},e[11]=G):G=e[11];const Y=ir.map(P=>c.jsx(qg,{status:P,items:T(P),members:r,memberByUserId:s,selectedIds:i,isTarget:B?.status===P,hiddenIds:$,landedIds:g,onToggleSelect:o,onSelectAllInLane:l,onOpen:a,onCreate:d,onAutoFix:h,onRerun:p,onAssign:u},P));let ee;e[12]!==Y?(ee=c.jsx("div",{ref:j,className:"min-h-0 flex-1 overflow-x-auto",children:c.jsx("div",{className:"mx-auto flex h-full w-full max-w-[1680px] gap-3 px-4 pt-6 sm:px-8",children:Y})}),e[12]=Y,e[13]=ee):ee=e[13];const se=sn.createPortal,re=nf,q=null,V=B&&c.jsxs("div",{className:"relative w-[292px] cursor-grabbing",children:[c.jsx(wa,{item:B,assignee:B.assigneeId?s.get(B.assigneeId):void 0,assignedBy:B.assignedBy?s.get(B.assignedBy):void 0,selected:i.has(B.id),onOpen:Lg,className:"w-full shadow-lg"}),$.length>1&&c.jsx("span",{className:"absolute -top-2 -right-2 flex h-5 min-w-5 items-center justify-center rounded-full bg-foreground px-1.5 text-[11px] font-semibold text-background",children:$.length})]});let J;e[14]!==re||e[15]!==V?(J=c.jsx(re,{dropAnimation:q,children:V}),e[14]=re,e[15]=V,e[16]=J):J=e[16];let ie;e[17]!==se||e[18]!==J?(ie=se(J,document.body),e[17]=se,e[18]=J,e[19]=ie):ie=e[19];let te;return e[20]!==W||e[21]!==L||e[22]!==O||e[23]!==R||e[24]!==G||e[25]!==ee||e[26]!==ie||e[27]!==K||e[28]!==Q?(te=c.jsxs(W,{sensors:R,collisionDetection:K,onDragStart:Q,onDragOver:O,onDragEnd:L,onDragCancel:G,children:[ee,ie]}),e[20]=W,e[21]=L,e[22]=O,e[23]=R,e[24]=G,e[25]=ee,e[26]=ie,e[27]=K,e[28]=Q,e[29]=te):te=e[29],te}function Lg(){}function Pg(t){return t.id}function Fg(t){return t.id}function Ug(t){return`${t.id}:${t.status}`}function qg(t){const e=U.c(93),{status:n,items:r,members:s,memberByUserId:i,selectedIds:o,isTarget:l,hiddenIds:a,landedIds:d,onToggleSelect:f,onSelectAllInLane:h,onOpen:p,onCreate:u,onAutoFix:m,onRerun:y,onAssign:b}=t,g=oe(),x=Et[n],k=x.icon,v=`${ms}${n}`;let w;e[0]!==v?(w={id:v},e[0]=v,e[1]=w):w=e[1];const{setNodeRef:j}=_l(w),C=l&&"bg-muted/50";let T;e[2]!==C?(T=Z("flex h-full w-[300px] shrink-0 flex-col rounded-xl py-1 transition-colors",C),e[2]=C,e[3]=T):T=e[3];const D=l?"bg-muted":"bg-background";let E;e[4]!==D?(E=Z("sticky top-0 z-10 flex items-center gap-2 px-2 py-1.5 transition-colors",D),e[4]=D,e[5]=E):E=e[5];let N;e[6]!==x.iconClassName?(N=Z("shrink-0",x.iconClassName.replace(/\banimate-\S+\b/g,"").trim()),e[6]=x.iconClassName,e[7]=N):N=e[7];let I;e[8]!==k||e[9]!==N?(I=c.jsx(k,{size:15,className:N}),e[8]=k,e[9]=N,e[10]=I):I=e[10];let A;e[11]!==x.labelKey||e[12]!==g?(A=g(x.labelKey),e[11]=x.labelKey,e[12]=g,e[13]=A):A=e[13];let _;e[14]!==A?(_=c.jsx("span",{className:"text-sm font-medium text-foreground",children:A}),e[14]=A,e[15]=_):_=e[15];let z;e[16]!==r.length?(z=c.jsx("span",{className:"rounded-md bg-muted px-1.5 text-[11px] font-medium text-muted-foreground",children:r.length}),e[16]=r.length,e[17]=z):z=e[17];let R;e[18]!==x.labelKey||e[19]!==g?(R=g("taskBoard.taskBoard.laneMenuAriaLabel",{lane:g(x.labelKey)}),e[18]=x.labelKey,e[19]=g,e[20]=R):R=e[20];let O;e[21]===Symbol.for("react.memo_cache_sentinel")?(O=c.jsx(ei,{size:15}),e[21]=O):O=e[21];let L;e[22]!==R?(L=c.jsx(dn,{asChild:!0,children:c.jsx("button",{type:"button","aria-label":R,className:"ml-auto flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:O})}),e[22]=R,e[23]=L):L=e[23];let B;e[24]!==h||e[25]!==n?(B=()=>h(n),e[24]=h,e[25]=n,e[26]=B):B=e[26];let F;e[27]!==g?(F=g("taskBoard.taskBoard.selectAllInLane"),e[27]=g,e[28]=F):F=e[28];let $;e[29]!==B||e[30]!==F?($=c.jsx(un,{align:"end",children:c.jsx(Ct,{onClick:B,children:F})}),e[29]=B,e[30]=F,e[31]=$):$=e[31];let W;e[32]!==L||e[33]!==$?(W=c.jsxs(fn,{children:[L,$]}),e[32]=L,e[33]=$,e[34]=W):W=e[34];let K;e[35]!==x.labelKey||e[36]!==g?(K=g("taskBoard.taskBoard.newTaskInLaneAriaLabel",{lane:g(x.labelKey)}),e[35]=x.labelKey,e[36]=g,e[37]=K):K=e[37];let Q;e[38]!==x.labelKey||e[39]!==g?(Q=g("taskBoard.taskBoard.newTaskInLaneTitle",{lane:g(x.labelKey)}),e[38]=x.labelKey,e[39]=g,e[40]=Q):Q=e[40];let G;e[41]!==u||e[42]!==n?(G=()=>u(n),e[41]=u,e[42]=n,e[43]=G):G=e[43];let Y;e[44]===Symbol.for("react.memo_cache_sentinel")?(Y=c.jsx(ws,{size:15}),e[44]=Y):Y=e[44];let ee;e[45]!==K||e[46]!==Q||e[47]!==G?(ee=c.jsx("button",{type:"button","aria-label":K,title:Q,onClick:G,className:"flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:Y}),e[45]=K,e[46]=Q,e[47]=G,e[48]=ee):ee=e[48];let se;e[49]!==_||e[50]!==z||e[51]!==W||e[52]!==ee||e[53]!==E||e[54]!==I?(se=c.jsxs("div",{className:E,children:[I,_,z,W,ee]}),e[49]=_,e[50]=z,e[51]=W,e[52]=ee,e[53]=E,e[54]=I,e[55]=se):se=e[55];let re;e[56]!==r?(re=r.map(Kg),e[56]=r,e[57]=re):re=e[57];let q;if(e[58]!==a||e[59]!==r||e[60]!==d||e[61]!==i||e[62]!==s||e[63]!==b||e[64]!==m||e[65]!==p||e[66]!==y||e[67]!==f||e[68]!==o){let te;e[70]!==a||e[71]!==d||e[72]!==i||e[73]!==s||e[74]!==b||e[75]!==m||e[76]!==p||e[77]!==y||e[78]!==f||e[79]!==o?(te=P=>c.jsx(Hg,{item:P,assignee:P.assigneeId?i.get(P.assigneeId):void 0,assignedBy:P.assignedBy?i.get(P.assignedBy):void 0,members:s,selected:o.has(P.id),hidden:a.includes(P.id),landed:d.includes(P.id),onToggleSelect:()=>f(P.id),onOpen:()=>p(P),onAutoFix:m?()=>m(P):void 0,onRerun:y?()=>y(P):void 0,onAssign:b?H=>b(P.id,H):void 0},P.id),e[70]=a,e[71]=d,e[72]=i,e[73]=s,e[74]=b,e[75]=m,e[76]=p,e[77]=y,e[78]=f,e[79]=o,e[80]=te):te=e[80],q=r.map(te),e[58]=a,e[59]=r,e[60]=d,e[61]=i,e[62]=s,e[63]=b,e[64]=m,e[65]=p,e[66]=y,e[67]=f,e[68]=o,e[69]=q}else q=e[69];let V;e[81]!==re||e[82]!==q?(V=c.jsx(uf,{items:re,strategy:cf,children:q}),e[81]=re,e[82]=q,e[83]=V):V=e[83];let J;e[84]!==j||e[85]!==n||e[86]!==V?(J=c.jsx("div",{ref:j,"data-lane-scroll":n,className:"flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto px-1 pt-1 pb-16 [scrollbar-width:thin] [&::-webkit-scrollbar]:w-1",children:V}),e[84]=j,e[85]=n,e[86]=V,e[87]=J):J=e[87];let ie;return e[88]!==n||e[89]!==se||e[90]!==J||e[91]!==T?(ie=c.jsxs("div",{"data-lane":n,className:T,children:[se,J]}),e[88]=n,e[89]=se,e[90]=J,e[91]=T,e[92]=ie):ie=e[92],ie}function Kg(t){return t.id}function Hg(t){const e=U.c(29);let n,r,s,i;e[0]!==t?({item:r,hidden:n,landed:s,...i}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=i):(n=e[1],r=e[2],s=e[3],i=e[4]);let o;e[5]!==r.id?(o={id:r.id},e[5]=r.id,e[6]=o):o=e[6];const{attributes:l,listeners:a,setNodeRef:d,transform:f,transition:h,isDragging:p}=bf(o),u=r.id,m=r.status;let y;e[7]!==l||e[8]!==a?(y={attributes:l,listeners:a},e[7]=l,e[8]=a,e[9]=y):y=e[9];const b=s&&"animate-card-land";let g;e[10]!==b?(g=Z("w-full",b),e[10]=b,e[11]=g):g=e[11];let x;e[12]!==f?(x=on.Translate.toString(f),e[12]=f,e[13]=x):x=e[13];const k=p||n?0:void 0;let v;e[14]!==x||e[15]!==k||e[16]!==h?(v={transform:x,transition:h,opacity:k},e[14]=x,e[15]=k,e[16]=h,e[17]=v):v=e[17];let w;e[18]!==r||e[19]!==i||e[20]!==d||e[21]!==y||e[22]!==g||e[23]!==v?(w=c.jsx(wa,{...i,item:r,dragRef:d,bindings:y,className:g,style:v}),e[18]=r,e[19]=i,e[20]=d,e[21]=y,e[22]=g,e[23]=v,e[24]=w):w=e[24];let j;return e[25]!==r.id||e[26]!==r.status||e[27]!==w?(j=c.jsx("div",{className:"flex","data-flip-id":u,"data-flip-lane":m,children:w}),e[25]=r.id,e[26]=r.status,e[27]=w,e[28]=j):j=e[28],j}function wa(t){const e=U.c(48),{item:n,assignee:r,assignedBy:s,members:i,selected:o,className:l,dragRef:a,bindings:d,style:f,onToggleSelect:h,onOpen:p,onAutoFix:u,onRerun:m,onAssign:y}=t,b=oe(),g=Et[n.status].icon,x=Nf(n)?.lastMessage,k=u&&(n.status==="triage"||n.status==="todo")&&n.assigneeId!==$e,v=m&&!k&&n.assigneeId===$e&&n.status!=="done",w=d?.attributes,j=d?.listeners;let C;e[0]!==p||e[1]!==h?(C=$=>{$.shiftKey&&h?h():p()},e[0]=p,e[1]=h,e[2]=C):C=e[2];const T=o&&"bg-accent";let D;e[3]!==l||e[4]!==T?(D=Z("group flex shrink-0 cursor-grab flex-col gap-2 rounded-xl bg-card px-3 py-2.5 text-left card-shadow hover:bg-accent/60 active:cursor-grabbing",T,l),e[3]=l,e[4]=T,e[5]=D):D=e[5];const E=n.title;let N;e[6]!==n?(N=Z("mt-px shrink-0",wi(n)),e[6]=n,e[7]=N):N=e[7];let I;e[8]!==g||e[9]!==N?(I=c.jsx(g,{size:16,className:N}),e[8]=g,e[9]=N,e[10]=I):I=e[10];let A;e[11]!==n.title?(A=c.jsx("span",{className:"min-w-0 flex-1 text-sm font-medium leading-snug text-foreground line-clamp-2",children:n.title}),e[11]=n.title,e[12]=A):A=e[12];let _;e[13]!==s||e[14]!==r||e[15]!==n||e[16]!==i||e[17]!==y?(_=c.jsx(ka,{item:n,assignee:r,assignedBy:s,members:i,onAssign:y}),e[13]=s,e[14]=r,e[15]=n,e[16]=i,e[17]=y,e[18]=_):_=e[18];let z;e[19]!==_||e[20]!==I||e[21]!==A?(z=c.jsxs("div",{className:"flex items-start gap-2",children:[I,A,_]}),e[19]=_,e[20]=I,e[21]=A,e[22]=z):z=e[22];let R;e[23]!==x?(R=x&&c.jsx("p",{className:"line-clamp-2 pl-6 text-xs leading-snug text-muted-foreground",children:x}),e[23]=x,e[24]=R):R=e[24];let O;e[25]!==n?(O=(rr(n)||n.priority!=="none"||!!n.dueDate||n.tags.length>0)&&c.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 pl-6",children:[rr(n)&&c.jsx(ma,{}),n.priority!=="none"&&c.jsx(xa,{priority:n.priority}),n.dueDate&&c.jsx(ba,{iso:n.dueDate}),n.tags.map(Wg)]}),e[25]=n,e[26]=O):O=e[26];let L;e[27]!==u||e[28]!==k||e[29]!==b?(L=k&&c.jsxs("button",{type:"button",onClick:$=>{$.stopPropagation(),u()},className:"flex items-center gap-1.5 self-end rounded-md border border-border bg-background px-2 py-1 text-xs font-medium text-foreground transition-colors hover:bg-accent",children:[c.jsx(ur,{size:12}),b("taskBoard.taskBoard.autoFix")]}),e[27]=u,e[28]=k,e[29]=b,e[30]=L):L=e[30];let B;e[31]!==m||e[32]!==v||e[33]!==b?(B=v&&c.jsxs("button",{type:"button",onClick:$=>{$.stopPropagation(),m()},className:"flex items-center gap-1.5 self-end rounded-md border border-border bg-background px-2 py-1 text-xs font-medium text-foreground opacity-0 transition-opacity hover:bg-accent focus-visible:opacity-100 group-hover:opacity-100",children:[c.jsx(Zr,{size:12}),b("taskBoard.taskBoard.rerun")]}),e[31]=m,e[32]=v,e[33]=b,e[34]=B):B=e[34];let F;return e[35]!==a||e[36]!==n.title||e[37]!==f||e[38]!==w||e[39]!==z||e[40]!==R||e[41]!==O||e[42]!==L||e[43]!==B||e[44]!==j||e[45]!==C||e[46]!==D?(F=c.jsxs("button",{type:"button",ref:a,style:f,...w,...j,onClick:C,className:D,title:E,children:[z,R,O,L,B]}),e[35]=a,e[36]=n.title,e[37]=f,e[38]=w,e[39]=z,e[40]=R,e[41]=O,e[42]=L,e[43]=B,e[44]=j,e[45]=C,e[46]=D,e[47]=F):F=e[47],F}function Wg(t){return c.jsx(ya,{tag:t},t.id)}function Vg(t){const e=U.c(33),{item:n,assignee:r,assignedBy:s,onOpen:i}=t,o=Et[n.status].icon;let l;e[0]!==n?(l=Z("shrink-0",wi(n)),e[0]=n,e[1]=l):l=e[1];let a;e[2]!==o||e[3]!==l?(a=c.jsx(o,{size:16,className:l}),e[2]=o,e[3]=l,e[4]=a):a=e[4];let d;e[5]!==n.title?(d=c.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium text-foreground",children:n.title}),e[5]=n.title,e[6]=d):d=e[6];let f;e[7]!==n?(f=rr(n)&&c.jsx(ma,{}),e[7]=n,e[8]=f):f=e[8];let h;e[9]!==n.priority?(h=n.priority!=="none"&&c.jsx("span",{className:"hidden sm:inline-flex",children:c.jsx(xa,{priority:n.priority})}),e[9]=n.priority,e[10]=h):h=e[10];let p;e[11]!==n.dueDate?(p=n.dueDate&&c.jsx("span",{className:"hidden sm:inline-flex",children:c.jsx(ba,{iso:n.dueDate})}),e[11]=n.dueDate,e[12]=p):p=e[12];let u;e[13]!==n.tags?(u=n.tags.length>0&&c.jsxs("span",{className:"hidden items-center gap-1.5 sm:inline-flex",children:[n.tags.slice(0,2).map(Qg),n.tags.length>2&&c.jsxs("span",{className:Os,children:["+",n.tags.length-2]})]}),e[13]=n.tags,e[14]=u):u=e[14];let m;e[15]!==s||e[16]!==r||e[17]!==n?(m=c.jsx(ka,{item:n,assignee:r,assignedBy:s}),e[15]=s,e[16]=r,e[17]=n,e[18]=m):m=e[18];let y;e[19]!==n.createdAt?(y=ii(new Date(n.createdAt)),e[19]=n.createdAt,e[20]=y):y=e[20];let b;e[21]!==y?(b=c.jsx("span",{className:"hidden shrink-0 text-[11px] text-muted-foreground/70 sm:inline",children:y}),e[21]=y,e[22]=b):b=e[22];let g;return e[23]!==i||e[24]!==b||e[25]!==a||e[26]!==d||e[27]!==f||e[28]!==h||e[29]!==p||e[30]!==u||e[31]!==m?(g=c.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-3 rounded-xl bg-card px-4 py-3 text-left card-shadow transition-colors hover:bg-accent/60",children:[a,d,f,h,p,u,m,b]}),e[23]=i,e[24]=b,e[25]=a,e[26]=d,e[27]=f,e[28]=h,e[29]=p,e[30]=u,e[31]=m,e[32]=g):g=e[32],g}function Qg(t){return c.jsx(ya,{tag:t},t.id)}const f1=Object.freeze(Object.defineProperty({__proto__:null,TaskBoardPage:va,default:Tg},Symbol.toStringTag,{value:"Module"}));export{va as $,bf as A,vf as B,on as C,zu as D,vi as E,Cf as F,jf as G,Hm as H,Et as I,It as J,xi as K,Pt as L,ct as M,r1 as N,a1 as O,yi as P,Xm as Q,u1 as R,od as S,Ep as T,c1 as U,Zm as V,yd as W,Ym as X,t1 as Y,o1 as Z,Jm as _,ld as a,Al as a0,f1 as a1,Gm as b,s1 as c,Xc as d,Vm as e,i1 as f,kd as g,l1 as h,ed as i,e1 as j,n1 as k,jd as l,wd as m,Nd as n,Ud as o,Ui as p,nf as q,Wm as r,Gc as s,Fu as t,Qm as u,sf as v,Zc as w,d1 as x,uf as y,cf as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as w,b as z,z as V,av as W,j as a,F as Y,K as J,x as Q,r as R,aC as X,aA as Z,bJ as ee,ax as x,aB as I,bK as oe,aD as C,bL as S,bM as te,az as A,bI as re,bH as se}from"./index-
|
|
1
|
+
import{c as w,b as z,z as V,av as W,j as a,F as Y,K as J,x as Q,r as R,aC as X,aA as Z,bJ as ee,ax as x,aB as I,bK as oe,aD as C,bL as S,bM as te,az as A,bI as re,bH as se}from"./index-BE7mJhFy.js";import{B as _}from"./badge-0OderU4R.js";import{c as k,T as E,a as P,b as ae}from"./tooltip-B-gahmZ0.js";import{g as ne}from"./index-DmcNl6lo.js";import{s as ie}from"./Eye-mJ_2ivh6.js";import{s as ce}from"./Star01-DOCStMKN.js";import{aM as le}from"./agent-icon-DyvgCmDh.js";import{i as de}from"./mcp-oauth-h1LtXs-F.js";const ue=[{key:"readOnlyHint",labelKey:"tools.toolsList.readOnly",Icon:ie,variant:"secondary"},{key:"destructiveHint",labelKey:"tools.toolsList.destructive",Icon:V,variant:"destructive"},{key:"idempotentHint",labelKey:"tools.toolsList.idempotent",Icon:W,variant:"secondary"},{key:"openWorldHint",labelKey:"tools.toolsList.openWorld",Icon:ce,variant:"outline"}];function we(d){const e=w.c(22),{annotations:t,_meta:n}=d,o=z();let r;e[0]!==n?(r=ne(n),e[0]=n,e[1]=r):r=e[1];const s=!!r;let i,c,l,f,u;if(e[2]!==t||e[3]!==s||e[4]!==o){u=Symbol.for("react.early_return_sentinel");e:{const m=t?ue.filter(y=>t[y.key]===!0):[];if(m.length===0&&!s){u=null;break e}i=ae,c="flex gap-1 flex-nowrap",e[10]!==s||e[11]!==o?(l=s&&a.jsxs(k,{children:[a.jsx(E,{asChild:!0,children:a.jsx(_,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:a.jsx(le,{})})}),a.jsx(P,{children:o("tools.toolsList.interactive")})]}),e[10]=s,e[11]=o,e[12]=l):l=e[12];let h;e[13]!==o?(h=y=>{const{labelKey:j,Icon:q,variant:$}=y;return a.jsxs(k,{children:[a.jsx(E,{asChild:!0,children:a.jsx(_,{asChild:!0,variant:$,className:"size-6 p-1",children:a.jsx(q,{})})}),a.jsx(P,{children:o(j)})]},j)},e[13]=o,e[14]=h):h=e[14],f=m.map(h)}e[2]=t,e[3]=s,e[4]=o,e[5]=i,e[6]=c,e[7]=l,e[8]=f,e[9]=u}else i=e[5],c=e[6],l=e[7],f=e[8],u=e[9];if(u!==Symbol.for("react.early_return_sentinel"))return u;let v;e[15]!==c||e[16]!==l||e[17]!==f?(v=a.jsxs("div",{className:c,children:[l,f]}),e[15]=c,e[16]=l,e[17]=f,e[18]=v):v=e[18];let p;return e[19]!==i||e[20]!==v?(p=a.jsx(i,{children:v}),e[19]=i,e[20]=v,e[21]=p):p=e[21],p}function Se(d){const e=w.c(11),{connectionId:t}=d,{org:n}=Y();let o,r,s;e[0]!==t||e[1]!==n.slug?(o=new URL(`/api/${n.slug}/mcp/${t}`,window.location.origin),s=Q,r=J.isMCPAuthenticated(o.href,null),e[0]=t,e[1]=n.slug,e[2]=o,e[3]=r,e[4]=s):(o=e[2],r=e[3],s=e[4]);let i;e[5]!==o||e[6]!==n.id?(i=()=>de({url:o.href,token:null,orgId:n.id}),e[5]=o,e[6]=n.id,e[7]=i):i=e[7];let c;e[8]!==r||e[9]!==i?(c={queryKey:r,queryFn:i},e[8]=r,e[9]=i,e[10]=c):c=e[10];const{data:l}=s(c);return l}var g="Radio",[pe,N]=A(g),[fe,ve]=pe(g),T=R.forwardRef((d,e)=>{const{__scopeRadio:t,name:n,checked:o=!1,required:r,disabled:s,value:i="on",onCheck:c,form:l,...f}=d,[u,v]=R.useState(null),p=I(e,y=>v(y)),m=R.useRef(!1),h=u?l||!!u.closest("form"):!0;return a.jsxs(fe,{scope:t,checked:o,disabled:s,children:[a.jsx(x.button,{type:"button",role:"radio","aria-checked":o,"data-state":M(o),"data-disabled":s?"":void 0,disabled:s,value:i,...f,ref:p,onClick:C(d.onClick,y=>{o||c?.(),h&&(m.current=y.isPropagationStopped(),m.current||y.stopPropagation())})}),h&&a.jsx(L,{control:u,bubbles:!m.current,name:n,value:i,checked:o,required:r,disabled:s,form:l,style:{transform:"translateX(-100%)"}})]})});T.displayName=g;var G="RadioIndicator",K=R.forwardRef((d,e)=>{const{__scopeRadio:t,forceMount:n,...o}=d,r=ve(G,t);return a.jsx(te,{present:n||r.checked,children:a.jsx(x.span,{"data-state":M(r.checked),"data-disabled":r.disabled?"":void 0,...o,ref:e})})});K.displayName=G;var me="RadioBubbleInput",L=R.forwardRef(({__scopeRadio:d,control:e,checked:t,bubbles:n=!0,...o},r)=>{const s=R.useRef(null),i=I(s,r),c=re(t),l=se(e);return R.useEffect(()=>{const f=s.current;if(!f)return;const u=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(u,"checked").set;if(c!==t&&p){const m=new Event("click",{bubbles:n});p.call(f,t),f.dispatchEvent(m)}},[c,t,n]),a.jsx(x.input,{type:"radio","aria-hidden":!0,defaultChecked:t,...o,tabIndex:-1,ref:i,style:{...o.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});L.displayName=me;function M(d){return d?"checked":"unchecked"}var Re=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],b="RadioGroup",[he]=A(b,[S,N]),D=S(),O=N(),[ye,xe]=he(b),B=R.forwardRef((d,e)=>{const{__scopeRadioGroup:t,name:n,defaultValue:o,value:r,required:s=!1,disabled:i=!1,orientation:c,dir:l,loop:f=!0,onValueChange:u,...v}=d,p=D(t),m=X(l),[h,y]=Z({prop:r,defaultProp:o??null,onChange:u,caller:b});return a.jsx(ye,{scope:t,name:n,required:s,disabled:i,value:h,onValueChange:y,children:a.jsx(ee,{asChild:!0,...p,orientation:c,dir:m,loop:f,children:a.jsx(x.div,{role:"radiogroup","aria-required":s,"aria-orientation":c,"data-disabled":i?"":void 0,dir:m,...v,ref:e})})})});B.displayName=b;var U="RadioGroupItem",F=R.forwardRef((d,e)=>{const{__scopeRadioGroup:t,disabled:n,...o}=d,r=xe(U,t),s=r.disabled||n,i=D(t),c=O(t),l=R.useRef(null),f=I(e,l),u=r.value===o.value,v=R.useRef(!1);return R.useEffect(()=>{const p=h=>{Re.includes(h.key)&&(v.current=!0)},m=()=>v.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",m)}},[]),a.jsx(oe,{asChild:!0,...i,focusable:!s,active:u,children:a.jsx(T,{disabled:s,required:r.required,checked:u,...c,...o,name:r.name,ref:f,onCheck:()=>r.onValueChange(o.value),onKeyDown:C(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:C(o.onFocus,()=>{v.current&&l.current?.click()})})})});F.displayName=U;var be="RadioGroupIndicator",H=R.forwardRef((d,e)=>{const{__scopeRadioGroup:t,...n}=d,o=O(t);return a.jsx(K,{...o,...n,ref:e})});H.displayName=be;var Ae=B,Ne=F,Te=H;export{Ne as I,Ae as R,we as T,Te as a,Se as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as P,F as _,a as R,u as V,r as b,j as h,W as k,N as y}from"./index-
|
|
1
|
+
import{c as P,F as _,a as R,u as V,r as b,j as h,W as k,N as y}from"./index-BE7mJhFy.js";import{a as E}from"./use-mcp-client-B6rroWiF.js";import{a as M}from"./use-virtual-mcp-SgXDkg75.js";import{a as N}from"./hooks-_oUacd7x.js";import{e as U}from"./use-organization-settings-B1oXAg8v.js";import{f as $}from"./reusable-new-chat-CouMjkYR.js";import"./auth-CzoWoS_Q.js";import"./decopilot-sse-pool-Clmp1BFL.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-DXVCK0sW.js";function J(){const t=P.c(18),{org:e}=_();let a;t[0]!==e.id?(a=E(e.id),t[0]=e.id,t[1]=a):a=t[1];const x=a.id,{data:I}=R.useSession(),{threads:m,status:S}=N(),{mainAgentId:d,isPending:j}=U(),A=M();let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},t[2]=r):r=t[2];const{connect:u,siteUrl:f}=V(r),[C]=b.useState(v);if(j||S.kind==="loading"){let n;return t[3]===Symbol.for("react.memo_cache_sentinel")?(n=h.jsx(k,{}),t[3]=n):n=t[3],n}const s=d!=null&&(A??[]).some(n=>n.id===d)?d:x,g=I?.user?.id;let l;t[4]!==s||t[5]!==g||t[6]!==m?(l=$(m,s,g),t[4]=s,t[5]=g,t[6]=m,t[7]=l):l=t[7];const p=l?.id??C;let o;t[8]!==e.slug||t[9]!==p?(o={org:e.slug,taskId:p},t[8]=e.slug,t[9]=p,t[10]=o):o=t[10];let i;t[11]!==u||t[12]!==s||t[13]!==f?(i={virtualmcpid:s,connect:u,siteUrl:f},t[11]=u,t[12]=s,t[13]=f,t[14]=i):i=t[14];let c;return t[15]!==o||t[16]!==i?(c=h.jsx(y,{to:"/$org/$taskId",params:o,search:i,replace:!0}),t[15]=o,t[16]=i,t[17]=c):c=t[17],c}function v(){return crypto.randomUUID()}export{J as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,m as d,r as p,j as r}from"./index-
|
|
1
|
+
import{c as f,m as d,r as p,j as r}from"./index-BE7mJhFy.js";import{r as w}from"./sidebar-jMHKufA-.js";const v=p.createContext(void 0),H=v.Provider;function N(c,e){const l=p.Children.toArray(c);for(const i of l)if(p.isValidElement(i)&&i.type===e)return i;return null}function P(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex flex-col h-full w-full bg-background overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function C(c){const e=f.c(17),{children:l,className:i,hideSidebarTrigger:s}=c;let t;e[0]!==l?(t=N(l,j),e[0]=l,e[1]=t):t=e[1];const n=t;let a;e[2]!==l?(a=N(l,b),e[2]=l,e[3]=a):a=e[3];const o=a;let m;e[4]!==i?(m=d("shrink-0 w-full border-b border-border/50 h-11","flex items-center justify-between gap-3 pr-2 pl-2 md:pl-4",i),e[4]=i,e[5]=m):m=e[5];let x;e[6]!==s?(x=!s&&r.jsx(w,{className:"md:hidden shrink-0"}),e[6]=s,e[7]=x):x=e[7];let u;e[8]!==n||e[9]!==x?(u=r.jsxs("div",{className:"flex items-center gap-1 min-w-0 flex-1",children:[x,n]}),e[8]=n,e[9]=x,e[10]=u):u=e[10];let h;e[11]!==o?(h=r.jsx("div",{className:"flex items-center",children:o}),e[11]=o,e[12]=h):h=e[12];let g;return e[13]!==m||e[14]!==u||e[15]!==h?(g=r.jsxs("div",{className:m,children:[u,h]}),e[13]=m,e[14]=u,e[15]=h,e[16]=g):g=e[16],g}function j(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex items-center gap-2 min-w-0 overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function b(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex items-center gap-2 shrink-0 overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function $(c){const e=f.c(6),{children:l,className:i}=c,s=p.useContext(v);let t;e[0]!==i||e[1]!==s?(t=d("flex-1 overflow-auto",s,i),e[0]=i,e[1]=s,e[2]=t):t=e[2];let n;return e[3]!==l||e[4]!==t?(n=r.jsx("div",{className:t,children:l}),e[3]=l,e[4]=t,e[5]=n):n=e[5],n}function y(c){const e=f.c(10),{children:l,actions:i,className:s}=c;let t;e[0]!==s?(t=d("flex flex-wrap items-center justify-between gap-3",s),e[0]=s,e[1]=t):t=e[1];let n;e[2]!==l?(n=r.jsx("div",{className:"text-xl font-medium min-w-0",children:l}),e[2]=l,e[3]=n):n=e[3];let a;e[4]!==i?(a=i&&r.jsx("div",{className:"flex items-center gap-2",children:i}),e[4]=i,e[5]=a):a=e[5];let o;return e[6]!==t||e[7]!==n||e[8]!==a?(o=r.jsxs("div",{className:t,children:[n,a]}),e[6]=t,e[7]=n,e[8]=a,e[9]=o):o=e[9],o}function R(c){const e=f.c(6),{children:l,className:i,maxWidth:s}=c,t=s===void 0?"max-w-[1200px]":s;let n;e[0]!==i||e[1]!==t?(n=d("mx-auto w-full px-4 pt-8 pb-6 md:px-10 md:pt-12 md:pb-10",t,i),e[0]=i,e[1]=t,e[2]=n):n=e[2];let a;return e[3]!==l||e[4]!==n?(a=r.jsx("div",{className:n,children:l}),e[3]=l,e[4]=n,e[5]=a):a=e[5],a}const T=Object.assign(P,{Header:Object.assign(C,{Left:j,Right:b}),Content:$,Title:y,Body:R});export{T as P,H as a};
|