decocms 4.72.3 → 4.74.0
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-CX23NCuO.js → AlertCircle-BaauQIwC.js} +1 -1
- package/dist/client/assets/{AreaChart-CRvFGO5O.js → AreaChart-5GoV9SRg.js} +1 -1
- package/dist/client/assets/{ArrowUp-ChoUWc1b.js → ArrowUp-C814v0pE.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Bq-zX9ha.js → ArrowUpRight-BLP3DLju.js} +1 -1
- package/dist/client/assets/{Check-BbAbdPfp.js → Check-DYPRi7NO.js} +1 -1
- package/dist/client/assets/{CheckCircle-Day5nLHt.js → CheckCircle-D_t3rWUI.js} +1 -1
- package/dist/client/assets/{ChevronDown-BsEi-r9q.js → ChevronDown-wHLuFr3i.js} +1 -1
- package/dist/client/assets/{ChevronRight-B9mybD1s.js → ChevronRight-BARfL9-W.js} +1 -1
- package/dist/client/assets/{ChevronUp-BWoVqFrM.js → ChevronUp-CRmxYAjE.js} +1 -1
- package/dist/client/assets/{Circle-Bj_xS3WU.js → Circle-DuelqjM2.js} +1 -1
- package/dist/client/assets/Copy01-BwtpNAKR.js +1 -0
- package/dist/client/assets/{DotsVertical-BQRa2EB9.js → DotsVertical-B_jKX962.js} +1 -1
- package/dist/client/assets/Eye-CM4SfxEo.js +1 -0
- package/dist/client/assets/{FilterLines-C5i4i3WB.js → FilterLines-CwEBxGZP.js} +1 -1
- package/dist/client/assets/{Flag01-C7YxvVFh.js → Flag01-RtD7xNTJ.js} +1 -1
- package/dist/client/assets/{Globe01-CC0A4U7g.js → Globe01-B-4z45oj.js} +1 -1
- package/dist/client/assets/{Globe04-BV89vsfi.js → Globe04-D7ZgONc6.js} +1 -1
- package/dist/client/assets/{HardDrive-CA9cG4ej.js → HardDrive-DNueik1y.js} +1 -1
- package/dist/client/assets/{Key01-Y2tTMtA8.js → Key01-DrwX5nx2.js} +1 -1
- package/dist/client/assets/{LayoutLeft-C6uN3ryJ.js → LayoutLeft-CHLKhLgL.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CbW1jJhi.js → LinkExternal01-022iaJNF.js} +1 -1
- package/dist/client/assets/{List-MOccGrJp.js → List-jObuFUL_.js} +1 -1
- package/dist/client/assets/{Monitor01-DBUBWT-e.js → Monitor01-BkHN4rM2.js} +1 -1
- package/dist/client/assets/{Package-BL3B6ONo.js → Package-DYdmCLl6.js} +1 -1
- package/dist/client/assets/{Palette-B0oAitOJ.js → Palette-BWa7ee-4.js} +1 -1
- package/dist/client/assets/{Play-zjQOd6w0.js → Play-DYP9-OJo.js} +1 -1
- package/dist/client/assets/{Plus-DATZ4-ND.js → Plus-DKATXnIq.js} +1 -1
- package/dist/client/assets/{SearchLg-B4W4xrFH.js → SearchLg-crE3yQZJ.js} +1 -1
- package/dist/client/assets/{SearchMd-CKL74aOj.js → SearchMd-CbytZ1-S.js} +1 -1
- package/dist/client/assets/{Settings02-DAAnVZLO.js → Settings02-1LTNhTXj.js} +1 -1
- package/dist/client/assets/{Shield01-IlYcL8Fi.js → Shield01-CULBCC4Z.js} +1 -1
- package/dist/client/assets/{Star01-Bb61R21H.js → Star01-CtWX4nA3.js} +1 -1
- package/dist/client/assets/{Stars01-Bnuoinbt.js → Stars01-COE1U6xi.js} +1 -1
- package/dist/client/assets/{Stars02-B9xmjTkg.js → Stars02-BzQc7fZz.js} +1 -1
- package/dist/client/assets/{Sun-wOtTFTOd.js → Sun-CyoL1WFK.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-C90B2Auk.js → SwitchHorizontal01-QNGjYcml.js} +1 -1
- package/dist/client/assets/{Tool01-BT4kICfE.js → Tool01-BWGVYfev.js} +1 -1
- package/dist/client/assets/{Tool02-vM8N2pYB.js → Tool02-DkTMVP4f.js} +1 -1
- package/dist/client/assets/{Trash01-CrwbV8c_.js → Trash01-iPP4w9gK.js} +1 -1
- package/dist/client/assets/TrendUp01-C3q3M7MG.js +1 -0
- package/dist/client/assets/{Upload01-Lp0wJMYr.js → Upload01-CoVAXfWg.js} +1 -1
- package/dist/client/assets/{User01-CQV6kRtR.js → User01-2QspS0s6.js} +1 -1
- package/dist/client/assets/{UserPlus01-13KHecKW.js → UserPlus01-DoBolndD.js} +1 -1
- package/dist/client/assets/{Users01-CDDfUziK.js → Users01-C3FOprDj.js} +1 -1
- package/dist/client/assets/{Users03-ZlQye2vY.js → Users03-BYqJADve.js} +1 -1
- package/dist/client/assets/{X-CNdIeej8.js → X-Bqs01fCh.js} +1 -1
- package/dist/client/assets/{XCircle-C9sRiEE0.js → XCircle-DHCvZwgH.js} +1 -1
- package/dist/client/assets/{XClose-4pjmwtT4.js → XClose-P0NM9uUE.js} +1 -1
- package/dist/client/assets/{Zap-DHGChPV2.js → Zap-CI5WhuKJ.js} +1 -1
- package/dist/client/assets/{ZapSquare-BV8kr37_.js → ZapSquare-BhWmmFEB.js} +1 -1
- package/dist/client/assets/{ZoomOut-7nLppLEs.js → ZoomOut-C7W-ZWAB.js} +1 -1
- package/dist/client/assets/{access-gate-BAwcBNbs.js → access-gate-BK7GcTMo.js} +1 -1
- package/dist/client/assets/{add-section-modal-lhtrhXMg.js → add-section-modal-CfvYLCg2.js} +1 -1
- package/dist/client/assets/agent-icon-5pSyq_FH.js +1 -0
- package/dist/client/assets/agents-list-pNinhUjp.js +1 -0
- package/dist/client/assets/ai-providers-CRHCw5VF.js +1 -0
- package/dist/client/assets/{alert-BhYIEI2X.js → alert-D4ttbBAt.js} +1 -1
- package/dist/client/assets/{alert-dialog-IVNf28U9.js → alert-dialog-GCrUNzbs.js} +1 -1
- package/dist/client/assets/app-editor-DqcvDhID.js +1 -0
- package/dist/client/assets/{auth-DIzgjm9h.js → auth-Cf4In3Ce.js} +1 -1
- package/dist/client/assets/{auth-catchall-CwgiOIdP.js → auth-catchall-CL7qcaW-.js} +1 -1
- package/dist/client/assets/{auth-entry-DhEOJXIL.js → auth-entry-BBn3Oy3I.js} +1 -1
- package/dist/client/assets/{auth-split-layout-B-Ji1dsx.js → auth-split-layout-ClDCjxcR.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Bb5P11Gd.js → authenticate-and-persist-oauth-DeTua2ma.js} +1 -1
- package/dist/client/assets/{automation-list-row-BrrHJBg_.js → automation-list-row-bCHP9GaB.js} +1 -1
- package/dist/client/assets/{automation-runs-_xFJy_Wv.js → automation-runs-K5fQtR3Q.js} +10 -10
- package/dist/client/assets/automations-BchD7Vmn.js +1 -0
- package/dist/client/assets/{autosend-BX8nQnW3.js → autosend-CnfmH4zE.js} +1 -1
- package/dist/client/assets/{avatar-CfHetrJ0.js → avatar-BB1BJsL_.js} +1 -1
- package/dist/client/assets/{badge-BR8ZoQPH.js → badge-miK_gWS7.js} +1 -1
- package/dist/client/assets/{block-document-BeMgCoP0.js → block-document-BnBi9DlX.js} +1 -1
- package/dist/client/assets/{brand-context-Dfa00_kA.js → brand-context-Bwk8h-AT.js} +1 -1
- package/dist/client/assets/{buckets-BJ3UCF_c.js → buckets-BVny45s4.js} +1 -1
- package/dist/client/assets/bulk-category-panel-CI-tBRB_.js +1 -0
- package/dist/client/assets/{calendar-D9BWcxij.js → calendar-i7Bgz_TN.js} +1 -1
- package/dist/client/assets/{capability-load-error-CWaH-_Bd.js → capability-load-error-ykEHLKnb.js} +1 -1
- package/dist/client/assets/{card-1ZIM8JYb.js → card-BjD2_XuX.js} +1 -1
- package/dist/client/assets/category-editor-CSZtSGt6.js +1 -0
- package/dist/client/assets/{chat-context-BhPkOl45.js → chat-context-De0V13yX.js} +1 -1
- package/dist/client/assets/{checkbox-YuHG4ViR.js → checkbox-DnsQEgvs.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CP82qKpR.js → cli-auth-success-DlpvQRp0.js} +1 -1
- package/dist/client/assets/collection-detail-HRLTqsYR.js +1 -0
- package/dist/client/assets/{collection-display-button-CbTgXJt9.js → collection-display-button-CNmqBrih.js} +1 -1
- package/dist/client/assets/{collection-search-D4kzf4BZ.js → collection-search-MTrnV0Y_.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Cyqk04aC.js → collection-table-wrapper-CZMGnyXO.js} +1 -1
- package/dist/client/assets/{collection-tabs-CwblhJGY.js → collection-tabs-Dvz33uvw.js} +1 -1
- package/dist/client/assets/{command-DRUw9pTQ.js → command-DpdcRmV-.js} +1 -1
- package/dist/client/assets/commerce-onboarding-QSGTn2pK.js +1 -0
- package/dist/client/assets/{companions-core-CrqiPrVn.js → companions-core-CgTHLTTN.js} +1 -1
- package/dist/client/assets/connect-desktop-dialog-BASAvtSw.js +1 -0
- package/dist/client/assets/{connection-card-BddaDWk3.js → connection-card-DQ8XLP8C.js} +1 -1
- package/dist/client/assets/connection-detail-CwpaZMQ9.js +1 -0
- package/dist/client/assets/{connection-form-helpers-B3t0vd0x.js → connection-form-helpers-B4Lj6wNN.js} +1 -1
- package/dist/client/assets/connections-C4IOF63g.js +1 -0
- package/dist/client/assets/{decopilot-sse-pool-B1izZBf2.js → decopilot-sse-pool-_LHJFrBF.js} +1 -1
- package/dist/client/assets/{dialog-DfnhzCwv.js → dialog-CUb_uQeJ.js} +1 -1
- package/dist/client/assets/{domain-settings-Dw-3NGKK.js → domain-settings-Cj1WoInJ.js} +1 -1
- package/dist/client/assets/{drawer-Cu1H6Zpl.js → drawer-BSFvVMvA.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BlorfjU6.js → dropdown-menu-D-nlMdm5.js} +1 -1
- package/dist/client/assets/{empty-state-D0Yjh42T.js → empty-state-C_IbZdBr.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DkYKg47U.js → extract-connection-data-BIadZZgr.js} +1 -1
- package/dist/client/assets/file-explorer-BWAl04Ll.js +2 -0
- package/dist/client/assets/{file-type-icon-CyQSc8WD.js → file-type-icon-mrfxFHRk.js} +1 -1
- package/dist/client/assets/{files-C98dPcEM.js → files-B6sMQ0N9.js} +1 -1
- package/dist/client/assets/{form-ZPjO3One.js → form-CEO5VtKG.js} +1 -1
- package/dist/client/assets/{general-mC0-nMIz.js → general-CpcExAES.js} +1 -1
- package/dist/client/assets/{github-repo-picker-DneVvY3I.js → github-repo-picker-CH-zkM68.js} +1 -1
- package/dist/client/assets/{hooks-DsQUp7L9.js → hooks-G1nBJ-F3.js} +1 -1
- package/dist/client/assets/{index-BOaCGG-5.js → index-B3_jWN9S.js} +1 -1
- package/dist/client/assets/index-B7Kp0gmf.css +1 -0
- package/dist/client/assets/index-B8fJFfFf.js +1 -0
- package/dist/client/assets/{index-BeTttHS9.js → index-BW23Hqv6.js} +4 -4
- package/dist/client/assets/{index-PCoZIk-M.js → index-BZjBKD1m.js} +23 -23
- package/dist/client/assets/{index-B8Idfh3P.js → index-B_nVJPYO.js} +1 -1
- package/dist/client/assets/{index-CtT9oMhI.js → index-BlItCfDb.js} +1 -1
- package/dist/client/assets/index-C7cs-gci.js +2 -0
- package/dist/client/assets/{index-1xWIMGUU.js → index-C9P6Y57L.js} +1 -1
- package/dist/client/assets/{index-DZp5yHGX.js → index-CTpTvSxb.js} +1 -1
- package/dist/client/assets/{index-emjsrsD0.js → index-DAFjHwsT.js} +1 -1
- package/dist/client/assets/{index-BHjtHKuw.js → index-DFuynMdy.js} +1 -1
- package/dist/client/assets/{index-CrWfdotU.js → index-DQVI41jj.js} +2 -2
- package/dist/client/assets/{index-76rFpqug.js → index-DxwLi9-g.js} +1 -1
- package/dist/client/assets/{index-C5JCmVQ0.js → index-lRedQ_8t.js} +3 -3
- package/dist/client/assets/{index-redirect-Dog_XssD.js → index-redirect-Mh7_3AcS.js} +1 -1
- package/dist/client/assets/{input-DWv95vY4.js → input-DOZlS9i9.js} +1 -1
- package/dist/client/assets/{integration-icon-D74EpYgv.js → integration-icon-CN9OtiIm.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-DGmwAQAA.js → invite-member-dialog-LDdBeQZc.js} +1 -1
- package/dist/client/assets/{label-CjR-YPrA.js → label-u5PrAFB7.js} +1 -1
- package/dist/client/assets/{layout-BvMp9WH9.js → layout-46QoqgX4.js} +1 -1
- package/dist/client/assets/{login-C4VBhHZf.js → login-BdT0h30g.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CDqgI2Xn.js → mcp-oauth-DHDPNOkD.js} +1 -1
- package/dist/client/assets/{members-NXDCco5L.js → members-RcOcNeXi.js} +1 -1
- package/dist/client/assets/{monaco-editor-DYdw6m6P.js → monaco-editor-D2naC6ph.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-D0csDfCQ.js → monitoring-stats-row-CztePoJD.js} +1 -1
- package/dist/client/assets/{oauth-callback-D-qdOpL-.js → oauth-callback-BSA-GLPM.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CKZ-Ikk0.js → oauth-callback-ai-provider-DgPoj4r4.js} +1 -1
- package/dist/client/assets/{onboarding-0XZpcTRa.js → onboarding-Br3afGr-.js} +1 -1
- package/dist/client/assets/{org-install-BHAQ5v4F.js → org-install-C190-hBM.js} +1 -1
- package/dist/client/assets/{org-layout-x9tM7YJ0.js → org-layout-cPdojne_.js} +1 -1
- package/dist/client/assets/{organization-choice-CRDRv9IH.js → organization-choice-Csr-kPrj.js} +1 -1
- package/dist/client/assets/{orgs-B4dQ6uWB.js → orgs-WjQsKIGK.js} +1 -1
- package/dist/client/assets/{page-seo-form-BoV5cy5K.js → page-seo-form-BocKaLGp.js} +1 -1
- package/dist/client/assets/page-seo-sheet-BTjq4xGR.js +1 -0
- package/dist/client/assets/{popover-DL95paTt.js → popover-BlN-L-7w.js} +1 -1
- package/dist/client/assets/post-editor-DD6k2jq_.js +1 -0
- package/dist/client/assets/{primitives-CnjPXZBb.js → primitives-C1zKVkUs.js} +1 -1
- package/dist/client/assets/{profile-CCbdBUdo.js → profile-B1TQAd_m.js} +1 -1
- package/dist/client/assets/project-app-view-DlsPCtAC.js +1 -0
- package/dist/client/assets/record-editor-CE1EwunZ.js +1 -0
- package/dist/client/assets/redirect-editor-OokObJNP.js +1 -0
- package/dist/client/assets/registry-OH_DROyn.js +2 -0
- package/dist/client/assets/{registry-layout-C2G4koz9.js → registry-layout-BjGbzV73.js} +2 -2
- package/dist/client/assets/reports-BWI6IDQq.css +1 -0
- package/dist/client/assets/reports-DEwGwzSI.js +43 -0
- package/dist/client/assets/{require-capability-Coot4cTo.js → require-capability-B_dSH45y.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BLRuxjNn.js → required-auth-layout-czUUgGrX.js} +1 -1
- package/dist/client/assets/{reset-password-BHfCVVq_.js → reset-password-Md6XPqI1.js} +1 -1
- package/dist/client/assets/roles-jjnXT7oA.js +1 -0
- package/dist/client/assets/{search-input-B9lRxCGI.js → search-input-BQOeLOTi.js} +1 -1
- package/dist/client/assets/{secrets-C7tLxfHf.js → secrets-CWkoKQMY.js} +1 -1
- package/dist/client/assets/{sections-editor-CEVFpdKw.js → sections-editor-DJYtpXox.js} +2 -2
- package/dist/client/assets/{select-D59HzWyb.js → select-CxRcXiYy.js} +1 -1
- package/dist/client/assets/{select-model-D8LB7zlx.js → select-model-CJ1n8oWC.js} +1 -1
- package/dist/client/assets/self-tool-result-BCQjUWN7.js +1 -0
- package/dist/client/assets/seo-editor-DYp9hHSY.js +1 -0
- package/dist/client/assets/{settings-layout-LbxIWaT0.js → settings-layout-BXO3VMKS.js} +1 -1
- package/dist/client/assets/{settings-section-CHSsdIIo.js → settings-section-Bs1JjdR4.js} +1 -1
- package/dist/client/assets/{shell-controls-C3TSKK-x.js → shell-controls-BoSvKLlP.js} +1 -1
- package/dist/client/assets/{shell-layout-TAILJ-da.js → shell-layout-DamsdnEZ.js} +1 -1
- package/dist/client/assets/{sidebar-i7yNFNs9.js → sidebar-joQ3ZQPE.js} +1 -1
- package/dist/client/assets/{skeleton-D824Y8b-.js → skeleton-BxJ_vH4t.js} +1 -1
- package/dist/client/assets/{sso-BzsdnWCZ.js → sso-CoEL8qOV.js} +1 -1
- package/dist/client/assets/{store-BNZtOJXh.js → store-mvrTZUgb.js} +1 -1
- package/dist/client/assets/store-registry-C-81qMOw.js +2 -0
- package/dist/client/assets/{studio-tools--pllMpfK.js → studio-tools-BMyTPyPy.js} +1 -1
- package/dist/client/assets/{switch-DLw5svpB.js → switch-C6-Jkvpv.js} +1 -1
- package/dist/client/assets/{table-B8kPpHAC.js → table-BBmNComr.js} +1 -1
- package/dist/client/assets/{tabs-C19FaLXY.js → tabs-kApe5O6i.js} +1 -1
- package/dist/client/assets/{textarea-DGICe7Jx.js → textarea-C5puqxj1.js} +1 -1
- package/dist/client/assets/{toggle-group-SYBG9bZR.js → toggle-group-DScHdpkW.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DapYdi-A.js → toolbar-icon-button-D3Y1-YHW.js} +1 -1
- package/dist/client/assets/{toolbar-V6M48IQV.js → toolbar-zpMjKMlc.js} +1 -1
- package/dist/client/assets/{tools-list-CvZ2H4zV.js → tools-list-BOMB05RR.js} +1 -1
- package/dist/client/assets/{tooltip-DjWNMg5T.js → tooltip-REPIyd2Z.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CQmOOELp.js → use-ai-providers-Bo4wIQxq.js} +1 -1
- package/dist/client/assets/{use-automations-kY9mTa0N.js → use-automations-DA7j42Hg.js} +1 -1
- package/dist/client/assets/{use-autosave-DhXH8ptD.js → use-autosave-DBERSs2x.js} +1 -1
- package/dist/client/assets/{use-capability-BtQYj-6N.js → use-capability-CCJ-X1mC.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BNpEZMto.js → use-clock-tick-MLdLuh40.js} +1 -1
- package/dist/client/assets/{use-collections-Kwxr6RPv.js → use-collections-D-OJag2e.js} +1 -1
- package/dist/client/assets/{use-connection-DhRKlWkl.js → use-connection-DmUK9JRy.js} +1 -1
- package/dist/client/assets/{use-copy-C62zVzDi.js → use-copy-DzWDd5On.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B-2yNc1r.js → use-create-virtual-mcp-BqyRJeCT.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Cumlh74L.js → use-debounced-autosave-JbhBBkyc.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DEfVi-aN.js → use-debounced-value-DxBZ974h.js} +1 -1
- package/dist/client/assets/{use-deco-credits-rxapxW2c.js → use-deco-credits-DR4kDN3B.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Cww7ZCTK.js → use-decopilot-events-BhVWtKJy.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DehUW7zF.js → use-delete-connection-Ds3puvR-.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DI6Yo_2O.js → use-deployment-admin-C5hKFITD.js} +1 -1
- package/dist/client/assets/{use-file-configs-BaRnwcsF.js → use-file-configs-t6weWLBN.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-WwPPe2Wp.js → use-infinite-scroll-B4v-_NDY.js} +1 -1
- package/dist/client/assets/{use-join-requests-B29gIAVf.js → use-join-requests-nORXzBkG.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DlCO79GA.js → use-mcp-client-D6H50Mmm.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-PUeX7iQD.js → use-mcp-tools-Cs2tX1fK.js} +1 -1
- package/dist/client/assets/{use-members-CP1GrgsV.js → use-members-Bz6iBsM4.js} +1 -1
- package/dist/client/assets/{use-mobile-vXwkCjTm.js → use-mobile-RU-Nn_Un.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DZwula5s.js → use-navigate-to-agent-DYPKcx_j.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BeUafwOm.js → use-org-auth-client-DrmuxI_m.js} +1 -1
- package/dist/client/assets/{use-org-sso-CpksLDM-.js → use-org-sso-BLc80T83.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BGu4f7lA.js → use-organization-roles-DU1BIeXK.js} +1 -1
- package/dist/client/assets/use-organization-settings-CHx_I7VH.js +1 -0
- package/dist/client/assets/{use-registry-connections-ml5ez91l.js → use-registry-connections-C9dbuMZN.js} +1 -1
- package/dist/client/assets/{use-secrets-DXp4vVpG.js → use-secrets-Cs1UIn3n.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DUjqcw9j.js → use-status-sounds-C3Efc5TW.js} +1 -1
- package/dist/client/assets/{use-view-mode-CJMBEHOJ.js → use-view-mode-y0S1o9OD.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-KZlYJNMn.js → use-virtual-mcp-D9inM-9h.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-XeUdT1mI.js +1 -0
- package/dist/client/assets/{useRouterState-ClIV-prS.js → useRouterState-DB6AEQYy.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DnwWEYgY.js +1 -0
- package/dist/client/assets/{users-CliPNaM4.js → users-DV3bsEcg.js} +1 -1
- package/dist/client/assets/variant-calendar-B7qy61Jb.js +1 -0
- package/dist/client/assets/{view-mode-toggle-BVGFEj0-.js → view-mode-toggle-BIom5MzH.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/Eye-CyP9kYwn.js +0 -1
- package/dist/client/assets/TrendUp01-CBDxjtVg.js +0 -1
- package/dist/client/assets/agent-icon-DMtjBPX3.js +0 -1
- package/dist/client/assets/agents-list-BUXICXib.js +0 -1
- package/dist/client/assets/ai-providers-DCgzVaX6.js +0 -1
- package/dist/client/assets/app-editor-D59Q_5eI.js +0 -1
- package/dist/client/assets/automations-BaGIRfvu.js +0 -1
- package/dist/client/assets/bulk-category-panel-DYbnXnND.js +0 -1
- package/dist/client/assets/category-editor-DzbcKPof.js +0 -1
- package/dist/client/assets/collection-detail-DIz6zskG.js +0 -1
- package/dist/client/assets/commerce-onboarding-e-v-lCWx.js +0 -1
- package/dist/client/assets/connect-desktop-dialog-BSEnA0YE.js +0 -1
- package/dist/client/assets/connection-detail-B8oW9DNb.js +0 -1
- package/dist/client/assets/connections-DXcLr2b7.js +0 -1
- package/dist/client/assets/file-explorer-C3OUWmFe.js +0 -2
- package/dist/client/assets/index-BO2t38sV.css +0 -1
- package/dist/client/assets/index-ByObdePs.js +0 -1
- package/dist/client/assets/index-D-JmKBPU.js +0 -2
- package/dist/client/assets/page-seo-sheet-BgE0-fxQ.js +0 -1
- package/dist/client/assets/post-editor-Byy_Ap7S.js +0 -1
- package/dist/client/assets/project-app-view-3TNqVL2p.js +0 -1
- package/dist/client/assets/record-editor-TOFRK4bb.js +0 -1
- package/dist/client/assets/redirect-editor-luJZRzL9.js +0 -1
- package/dist/client/assets/registry-B_upSRSY.js +0 -2
- package/dist/client/assets/reports-CPxel0Tp.js +0 -43
- package/dist/client/assets/reports-UJeN0SPp.css +0 -1
- package/dist/client/assets/roles-Cbr82vAy.js +0 -1
- package/dist/client/assets/self-tool-result-BPaV8G2-.js +0 -1
- package/dist/client/assets/seo-editor-Dtca_H4G.js +0 -1
- package/dist/client/assets/store-registry-DzS8hV6Q.js +0 -2
- package/dist/client/assets/use-organization-settings-BFGZ9YuD.js +0 -1
- package/dist/client/assets/useInfiniteQuery-D-yVKxn2.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-QFUkmQtZ.js +0 -1
- package/dist/client/assets/variant-calendar-DsUFadYs.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as A,b as de,C as Z,D as Hs,j as s,B as Ge,r as F,F as Bs,E as St,a as re,v as Gs,K as es,d as gt,p as ne,G as et,l as D,H as Ws,I as qs,J as Vs,M as Ks,P as Ys,q as Xs,t as ae,s as Qs,i as ts,e as _t,u as tt,L as Js,R as Zs,U as en,V as tn,W as sn,m as nn,X as ln,O as rn,Y as on}from"./index-C5JCmVQ0.js";import{u as pe,S as Nt,a as Ct,b as ie,c as J,d as V,e as ss,f as an,g as ns,h as cn,i as Re,j as dn,k as mn,l as un}from"./sidebar-i7yNFNs9.js";import{u as wt}from"./use-mobile-vXwkCjTm.js";import{C as fn,p as ut,s as hn,b as xn,S as pn,d as gn,e as bn,c as jn,n as vn}from"./self-tool-result-BPaV8G2-.js";import{f as yn,a as is,e as ls,g as Sn,D as _n,h as Nn,d as Cn}from"./dialog-DfnhzCwv.js";import{f as wn}from"./tab-id-BijBBRwE.js";import{u as rs}from"./use-mcp-client-DlCO79GA.js";import{C as kn,W as os,g as In,S as as,a as Qe,i as An,b as zn}from"./constants-D_FQAPnt.js";import{i as cs}from"./XCircle-C9sRiEE0.js";import{S as ce}from"./skeleton-D824Y8b-.js";import{i as ds}from"./LayoutLeft-C6uN3ryJ.js";import{t as kt}from"./ChevronDown-BsEi-r9q.js";import{T as fe,a as he,b as xe,c as bt}from"./tooltip-DjWNMg5T.js";import{u as ms,a as It}from"./use-virtual-mcp-KZlYJNMn.js";import{A as je,a as Tt,i as Ot,t as $n,b as Tn,c as Mt,d as On,s as Mn,e as En}from"./agent-icon-DMtjBPX3.js";import{P as Fe,a as st,b as nt}from"./popover-DL95paTt.js";import{i as us}from"./Check-BbAbdPfp.js";import{s as Le}from"./Plus-DATZ4-ND.js";import{i as fs}from"./SearchMd-CKL74aOj.js";import{s as Dn}from"./XClose-4pjmwtT4.js";import{A as Pn,a as Fn,b as Rn,c as Ln,d as Un,e as Hn,f as Bn}from"./alert-dialog-IVNf28U9.js";import{F as Gn,a as Wn,b as qn,c as Vn,d as Kn,e as Yn,f as Xn}from"./form-ZPjO3One.js";import{I as Qn}from"./input-DWv95vY4.js";import{S as Jn,u as Zn,C as ei}from"./chat-context-BhPkOl45.js";import{T as ve}from"./toolbar-icon-button-DapYdi-A.js";import{D as hs,a as xs,b as ps}from"./drawer-Cu1H6Zpl.js";import{G as ti,a as si}from"./github-repo-picker-DneVvY3I.js";import{u as gs,a as At,b as ni,T as ii}from"./hooks-DsQUp7L9.js";import{r as li,u as zt,f as ri}from"./shell-layout-TAILJ-da.js";import{u as oi,g as ai,a as ci,b as di,S as bs}from"./use-navigate-to-agent-DZwula5s.js";import{g as mi,a as js,u as ui,A as fi,b as hi}from"./use-deco-credits-rxapxW2c.js";import{f as xi}from"./reusable-new-chat-CouMjkYR.js";import{A as Je}from"./avatar-CfHetrJ0.js";import{a as Et}from"./Eye-CyP9kYwn.js";import{n as pi,i as gi}from"./Globe01-CC0A4U7g.js";import{i as bi}from"./ZoomOut-7nLppLEs.js";import{i as Dt,a as ji}from"./ZapSquare-BV8kr37_.js";import{i as jt}from"./Monitor01-DBUBWT-e.js";import{n as vi,a as yi}from"./Sun-wOtTFTOd.js";import{a as it}from"./Settings02-DAAnVZLO.js";import{i as Si}from"./Shield01-IlYcL8Fi.js";import{a as _i}from"./Users03-ZlQye2vY.js";import{u as Ni}from"./use-deployment-admin-DI6Yo_2O.js";import"./index-BHjtHKuw.js";import{t as vs}from"./UserPlus01-13KHecKW.js";import{I as ys}from"./invite-member-dialog-DGmwAQAA.js";import{v as Ci,C as Pt}from"./connect-desktop-dialog-BSEnA0YE.js";import{u as lt}from"./use-organization-settings-BFGZ9YuD.js";import{i as wi}from"./FilterLines-C5i4i3WB.js";import{T as ki,a as Ii}from"./toggle-group-SYBG9bZR.js";import{C as Ai,a as zi,b as $i,c as Ti,d as Oi}from"./command-DRUw9pTQ.js";import{u as Ss}from"./studio-tools--pllMpfK.js";import{i as _s}from"./Zap-DHGChPV2.js";import{S as Ns,M as Mi}from"./shell-controls-C3TSKK-x.js";import{n as Ei}from"./Stars02-B9xmjTkg.js";import{g as Di,u as Pi,S as Fi}from"./use-clock-tick-BNpEZMto.js";import{a as Ri}from"./format-time-BnbuEtat.js";import{i as Li}from"./ChevronRight-B9mybD1s.js";import{T as se}from"./toolbar-V6M48IQV.js";import"./X-CNdIeej8.js";import"./integration-icon-D74EpYgv.js";import"./Tool02-vM8N2pYB.js";import"./CheckCircle-Day5nLHt.js";import"./companions-core-CrqiPrVn.js";import"./extract-connection-data-DkYKg47U.js";import"./github-installations-ChFezl8I.js";import"./use-debounced-value-DEfVi-aN.js";import"./authenticate-and-persist-oauth-Bb5P11Gd.js";import"./mcp-oauth-CDqgI2Xn.js";import"./auth-DIzgjm9h.js";import"./ArrowUpRight-Bq-zX9ha.js";import"./use-collections-Kwxr6RPv.js";import"./AlertCircle-CX23NCuO.js";import"./Tool01-BT4kICfE.js";import"./ArrowUp-ChoUWc1b.js";import"./TrendUp01-CBDxjtVg.js";import"./ChevronUp-BWoVqFrM.js";import"./Circle-Bj_xS3WU.js";import"./DotsVertical-BQRa2EB9.js";import"./Flag01-C7YxvVFh.js";import"./Star01-Bb61R21H.js";import"./Globe04-BV89vsfi.js";import"./SwitchHorizontal01-C90B2Auk.js";import"./HardDrive-CA9cG4ej.js";import"./Key01-Y2tTMtA8.js";import"./LinkExternal01-CbW1jJhi.js";import"./List-MOccGrJp.js";import"./Package-BL3B6ONo.js";import"./Palette-B0oAitOJ.js";import"./Play-zjQOd6w0.js";import"./SearchLg-B4W4xrFH.js";import"./Stars01-Bnuoinbt.js";import"./Trash01-CrwbV8c_.js";import"./Upload01-Lp0wJMYr.js";import"./User01-CQV6kRtR.js";import"./Users01-CDDfUziK.js";import"./label-CjR-YPrA.js";import"./autosend-BX8nQnW3.js";import"./use-ai-providers-CQmOOELp.js";import"./use-decopilot-events-Cww7ZCTK.js";import"./decopilot-sse-pool-B1izZBf2.js";import"./backoff-CrEUbyZT.js";import"./collection-search-D4kzf4BZ.js";import"./use-connection-DhRKlWkl.js";import"./use-mcp-tools-PUeX7iQD.js";import"./delay-CnY5UFtP.js";import"./required-auth-layout-BLRuxjNn.js";import"./use-org-sso-CpksLDM-.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BddaDWk3.js";import"./use-registry-connections-ml5ez91l.js";import"./useInfiniteQuery-D-yVKxn2.js";import"./use-infinite-scroll-WwPPe2Wp.js";import"./card-1ZIM8JYb.js";import"./collection-tabs-CwblhJGY.js";import"./badge-BR8ZoQPH.js";import"./select-D59HzWyb.js";import"./textarea-DGICe7Jx.js";import"./connection-form-helpers-B3t0vd0x.js";import"./useSuspenseInfiniteQuery-QFUkmQtZ.js";import"./use-org-auth-client-BeUafwOm.js";import"./use-organization-roles-BGu4f7lA.js";import"./index-BOaCGG-5.js";import"./differenceInSeconds-NQ4PDo0z.js";function Ui(t){const e=A.c(15),{siteUrl:n}=t,l=de(),{org:i}=Z();let r;e[0]!==l||e[1]!==i.id||e[2]!==i.slug?(r=()=>{localStorage.setItem(Hs.sidebarOpen(),JSON.stringify(!1)),l({to:"/$org/$taskId",params:{org:i.slug,taskId:crypto.randomUUID()},search:{virtualmcpid:In(i.id),main:wn(os.COMMERCE_DISCOVERY(i.id),kn),sidepanel:0}})},e[0]=l,e[1]=i.id,e[2]=i.slug,e[3]=r):r=e[3];const o=r;let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(yn,{className:"bg-black/15 backdrop-blur-sm"}),e[4]=a):a=e[4];let m;e[5]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(is,{className:"sr-only",children:"Conecte suas ferramentas para ver o diagnóstico completo"}),e[5]=m):m=e[5];let c;e[6]!==o?(c=()=>s.jsxs("div",{className:"grid gap-4 p-6",children:[s.jsx("p",{className:"text-sm text-muted-foreground",children:"Não foi possível carregar as integrações. Você pode continuar e abrir o relatório mesmo assim."}),s.jsxs(Ge,{type:"button",size:"xl",className:"w-full",onClick:o,children:["Continuar",s.jsx(cs,{size:18})]})]}),e[6]=o,e[7]=c):c=e[7];let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(fn,{}),e[8]=d):d=e[8];let u;e[9]!==o||e[10]!==n?(u=s.jsx(F.Suspense,{fallback:d,children:s.jsx(Wi,{siteUrlFromUrl:n,onComplete:o})}),e[9]=o,e[10]=n,e[11]=u):u=e[11];let f;return e[12]!==c||e[13]!==u?(f=s.jsx(ls,{open:!0,children:s.jsxs(Sn,{children:[a,s.jsxs(Bs,{"data-slot":"commerce-connect-modal",onEscapeKeyDown:Gi,onPointerDownOutside:Bi,onInteractOutside:Hi,className:"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 flex h-[calc(100dvh-1rem)] w-full max-w-[calc(100%-1rem)] translate-x-[-50%] translate-y-[-50%] flex-col overflow-hidden rounded-2xl border p-0 shadow-md duration-200 sm:max-w-lg md:h-auto md:max-h-[calc(100dvh-2rem)] lg:max-h-[calc(100dvh-4rem)] lg:max-w-5xl",children:[m,s.jsx(St,{fallback:c,children:u})]})]})}),e[12]=c,e[13]=u,e[14]=f):f=e[14],f}function Hi(t){return t.preventDefault()}function Bi(t){return t.preventDefault()}function Gi(t){return t.preventDefault()}function Wi({siteUrlFromUrl:t,onComplete:e}){const{org:n}=Z(),{data:l}=re.useSession(),i=os.COMMERCE_DISCOVERY(n.id),r=rs({connectionId:as,orgId:n.id,orgSlug:n.slug}),a=Gs({queryKey:es.commerceDiscoveryConnection(n.id,i),queryFn:async()=>{const y=await r.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:i}});return ut(y)},retry:!1}).data.item,m=typeof a?.metadata?.siteUrl=="string"?a.metadata.siteUrl:void 0,c=t||m,d=hn(c),[u,f]=F.useState(!0),[h,x]=F.useState(null),g=gt({mutationFn:async y=>ut(await r.callTool({name:"COMMERCE_DISCOVERY_SETUP",arguments:{siteUrl:y}})),retry:!1}),p=gt({mutationFn:async y=>ut(await r.callTool({name:"COMMERCE_DISCOVERY_RUN",arguments:{siteUrl:y}})),retry:!1}),b=xn({siteUrl:c,email:l?.user?.email}),j=async()=>{x(null),ne("commerce_onboarding_open_report_clicked",{domain:d??void 0,organization_id:n.id});const y=c?vn(c):null;if(y?.ok)try{let v=await p.mutateAsync(y.value);if(v.triggered||(ne("commerce_onboarding_run_reclaim",{domain:d??void 0,organization_id:n.id,reason:v.reason??"not_upgraded"}),await g.mutateAsync(y.value),v=await p.mutateAsync(y.value)),!v.triggered){ne("commerce_onboarding_run_failed",{domain:d??void 0,organization_id:n.id,error:v.reason??"not_triggered"}),x("Não foi possível gerar o relatório para este site. Recarregue a página e tente novamente.");return}}catch(v){ne("commerce_onboarding_run_failed",{domain:d??void 0,organization_id:n.id,error:v instanceof Error?v.message:String(v)}),x("Algo deu errado ao gerar seu relatório. Tente novamente em instantes.");return}e()};return s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col lg:flex-row",children:[s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-4 p-4 lg:gap-6 lg:bg-sidebar lg:p-10",children:[d?s.jsx(pn,{host:d}):null,s.jsx(gn,{org:n,cdConnectionId:i,siteUrl:c,onReadinessChange:f}),s.jsxs("div",{className:"flex shrink-0 flex-col gap-3",children:[s.jsx(bn,{href:b,orgId:n.id,className:"lg:hidden"}),h?s.jsx("p",{className:"text-sm leading-5 text-destructive",role:"alert",children:h}):null,s.jsxs(Ge,{type:"button",size:"xl",className:"w-full rounded-2xl text-base font-medium whitespace-normal h-auto py-3",onClick:()=>{j()},disabled:p.isPending||!u,children:[p.isPending?"Abrindo relatório...":u?"Ver relatório completo":"Conecte uma ferramenta para continuar",!p.isPending&&u?s.jsx(cs,{size:18}):null]})]})]}),s.jsx("aside",{className:"hidden lg:flex lg:w-[380px] lg:shrink-0 lg:items-center lg:justify-center lg:overflow-y-auto lg:border-l lg:border-border lg:bg-muted",children:s.jsx(jn,{href:b,orgId:n.id})})]})}function qi(t){const e=A.c(5),{onPointerDown:n,onDoubleClick:l}=t,{state:i,isMobile:r}=pe();if(r||i==="collapsed")return null;let o,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={left:"var(--sidebar-width)"},a=s.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover/resize:bg-border group-active/resize:bg-border"}),e[0]=o,e[1]=a):(o=e[0],a=e[1]);let m;return e[2]!==l||e[3]!==n?(m=s.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize sidebar",title:"Drag to resize, double-click to reset",onPointerDown:n,onDoubleClick:l,className:"group/resize absolute top-0 z-20 h-full w-2 -translate-x-1/2 cursor-col-resize",style:o,children:a}),e[2]=l,e[3]=n,e[4]=m):m=e[4],m}const $t=240,Vi=400,Ki="sidebar.width";function Ue(t){return Math.max($t,Math.min(Vi,t))}function Yi(){const t=A.c(11),[e,n]=et(Ki,Xi),l=F.useRef(null);let i;t[0]!==n||t[1]!==e?(i=d=>{d.preventDefault();const u=d.clientX,f=Ue(e),h=l.current??(typeof document<"u"?document.querySelector('[data-slot="sidebar-wrapper"]'):null),x=h?Array.from(h.querySelectorAll('[data-slot="sidebar"], [data-slot="sidebar-container"]')):[];for(const b of x)b.style.transition="none";const g=b=>{const j=Ue(f+(b.clientX-u));h?.style.setProperty("--sidebar-width",`${j}px`)},p=b=>{const j=Ue(f+(b.clientX-u));n(j);for(const y of x)y.style.transition="";window.removeEventListener("pointermove",g),window.removeEventListener("pointerup",p),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",g),window.addEventListener("pointerup",p)},t[0]=n,t[1]=e,t[2]=i):i=t[2];const r=i;let o;t[3]!==n?(o=()=>{n($t)},t[3]=n,t[4]=o):o=t[4];const a=o;let m;t[5]!==e?(m=Ue(e),t[5]=e,t[6]=m):m=t[6];let c;return t[7]!==r||t[8]!==a||t[9]!==m?(c={width:m,wrapperRef:l,onStartResize:r,resetWidth:a},t[7]=r,t[8]=a,t[9]=m,t[10]=c):c=t[10],c}function Xi(t){return typeof t=="number"?Ue(t):$t}function Cs(){return[]}function ws(t){const e=A.c(3),{children:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-16 rounded-full bg-sidebar-foreground/15"})}),e[0]=l):l=e[0];let i;return e[1]!==n?(i=s.jsxs(Nt,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[l,s.jsx(Ct,{children:s.jsx(ie,{className:"gap-0.5",children:n})})]}),e[1]=n,e[2]=i):i=e[2],i}function ks(t){const e=A.c(18),{item:n}=t,{isMobile:l,setOpenMobile:i}=pe();let r;e[0]!==l||e[1]!==n||e[2]!==i?(r=()=>{ne("nav_item_clicked",{nav_key:n.key,nav_label:n.label,is_active:!!n.isActive,is_mobile:l}),n.onClick?.(),l&&i(!1)},e[0]=l,e[1]=n,e[2]=i,e[3]=r):r=e[3];const o=r,a=n.key,m=n.isActive&&"z-10";let c;e[4]!==m?(c=D(m),e[4]=m,e[5]=c):c=e[5];let d;e[6]!==n.label?(d=s.jsx("span",{children:n.label}),e[6]=n.label,e[7]=d):d=e[7];let u;e[8]!==o||e[9]!==n.icon||e[10]!==n.isActive||e[11]!==n.label||e[12]!==d?(u=s.jsxs(J,{onClick:o,isActive:n.isActive,tooltip:n.label,children:[n.icon,d]}),e[8]=o,e[9]=n.icon,e[10]=n.isActive,e[11]=n.label,e[12]=d,e[13]=u):u=e[13];let f;return e[14]!==n.key||e[15]!==c||e[16]!==u?(f=s.jsx(V,{className:c,children:u},a),e[14]=n.key,e[15]=c,e[16]=u,e[17]=f):f=e[17],f}function Qi(t){const e=A.c(12),{section:n}=t;switch(n.type){case"divider":{let l;return e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(ss,{className:"my-2"}),e[0]=l):l=e[0],l}case"spacer":{let l;return e[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex-1"}),e[1]=l):l=e[1],l}case"group":{const l=n.group.label,i=n.group.defaultExpanded;let r;e[2]!==n.group.items?(r=n.group.items.map(Zi),e[2]=n.group.items,e[3]=r):r=e[3];let o;return e[4]!==n.group.defaultExpanded||e[5]!==n.group.label||e[6]!==r?(o=s.jsx(ws,{label:l,defaultExpanded:i,children:r}),e[4]=n.group.defaultExpanded,e[5]=n.group.label,e[6]=r,e[7]=o):o=e[7],o}case"items":{let l;e[8]!==n.items?(l=n.items.map(Ji),e[8]=n.items,e[9]=l):l=e[9];let i;return e[10]!==l?(i=s.jsx(Nt,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ct,{children:s.jsx(ie,{className:"gap-1.5",children:l})})}),e[10]=l,e[11]=i):i=e[11],i}case"custom":return n.content}}function Ji(t){return s.jsx(ks,{item:t},t.key)}function Zi(t){return s.jsx(ks,{item:t},t.key)}function el(t){const e=A.c(17),{sections:n,footer:l,additionalContent:i,header:r,variant:o,contentClassName:a}=t,m=o===void 0?"sidebar":o;let c;e[0]!==r?(c=r&&s.jsx(an,{className:"sidebar-titlebar wco-drag shrink-0 h-12 flex flex-row items-center px-2 py-0 group-data-[collapsible=icon]/sidebar:hidden",children:r}),e[0]=r,e[1]=c):c=e[1];let d;e[2]!==a?(d=D("flex flex-col flex-1 px-2 pb-2 gap-0.5",a),e[2]=a,e[3]=d):d=e[3];let u;e[4]!==n?(u=n.map(tl),e[4]=n,e[5]=u):u=e[5];let f;e[6]!==i?(f=i&&s.jsx("div",{className:"flex flex-col flex-1 min-h-0 group-data-[state=collapsed]/sidebar:mt-1 group-data-[state=expanded]/sidebar:mt-2",children:i}),e[6]=i,e[7]=f):f=e[7];let h;e[8]!==d||e[9]!==u||e[10]!==f?(h=s.jsxs(ns,{className:d,children:[u,f]}),e[8]=d,e[9]=u,e[10]=f,e[11]=h):h=e[11];let x;return e[12]!==l||e[13]!==c||e[14]!==h||e[15]!==m?(x=s.jsxs(cn,{variant:m,children:[c,h,l]}),e[12]=l,e[13]=c,e[14]=h,e[15]=m,e[16]=x):x=e[16],x}function tl(t,e){return s.jsx(Qi,{section:t},e)}function Is(t){const e=A.c(2);let n;return e[0]!==t?(n=s.jsx(el,{...t}),e[0]=t,e[1]=n):n=e[1],n}Is.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,n)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(ce,{className:"h-full bg-sidebar-accent rounded-md"})},n))})};function As(t){return t.toLowerCase().trim().replace(/[^a-z0-9\s_-]+/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const sl=Ws({name:qs().min(2,"Organization name is required")});function nl(t){const e=A.c(41),{open:n,onOpenChange:l}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={resolver:Vs(sl),defaultValues:{name:""}},e[0]=i):i=e[0];const r=Ks(i);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={mutationFn:ll,onSuccess:il},e[1]=o):o=e[1];const a=gt(o),m=a.error instanceof Error?a.error.message:a.error?"Failed to create organization.":null;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsxs(Rn,{children:[s.jsx(Ln,{children:"Create a new organization"}),s.jsx(Un,{children:"Set up a new organization to collaborate with others."})]}),e[2]=c):c=e[2];let d;if(e[3]!==a||e[4]!==r){let _;e[6]!==a?(_=S=>a.mutateAsync(S),e[6]=a,e[7]=_):_=e[7],d=r.handleSubmit(_),e[3]=a,e[4]=r,e[5]=d}else d=e[5];let u;e[8]!==r.formState.isSubmitting?(u=_=>{const{field:S}=_;return s.jsxs(qn,{children:[s.jsx(Vn,{children:"Organization Name"}),s.jsx(Kn,{children:s.jsx(Qn,{...S,placeholder:"Acme Inc.",disabled:r.formState.isSubmitting})}),s.jsx(Yn,{children:"The name of your company or organization"}),S.value&&s.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:["Organization URL:"," ",s.jsxs("span",{className:"font-mono",children:[typeof window<"u"?globalThis.location.origin:"","/",As(S.value)]})]}),s.jsx(Xn,{})]})},e[8]=r.formState.isSubmitting,e[9]=u):u=e[9];let f;e[10]!==r.control||e[11]!==u?(f=s.jsx(Gn,{control:r.control,name:"name",render:u}),e[10]=r.control,e[11]=u,e[12]=f):f=e[12];let h;e[13]!==m?(h=m&&s.jsx("div",{className:"text-destructive text-sm mt-2",children:m}),e[13]=m,e[14]=h):h=e[14];let x;e[15]!==a||e[16]!==r?(x=()=>{a.reset(),r.reset()},e[15]=a,e[16]=r,e[17]=x):x=e[17];let g;e[18]!==r.formState.isSubmitting||e[19]!==x?(g=s.jsx(Pn,{disabled:r.formState.isSubmitting,onClick:x,children:"Cancel"}),e[18]=r.formState.isSubmitting,e[19]=x,e[20]=g):g=e[20];const p=!r.formState.isValid||r.formState.isSubmitting;let b;e[21]!==r.formState.isSubmitting?(b=r.formState.isSubmitting?s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(Jn,{size:"xs"})," Creating..."]}):"Create Organization",e[21]=r.formState.isSubmitting,e[22]=b):b=e[22];let j;e[23]!==p||e[24]!==b?(j=s.jsx(Ge,{type:"submit",variant:"default",disabled:p,children:b}),e[23]=p,e[24]=b,e[25]=j):j=e[25];let y;e[26]!==j||e[27]!==g?(y=s.jsxs(Hn,{children:[g,j]}),e[26]=j,e[27]=g,e[28]=y):y=e[28];let v;e[29]!==y||e[30]!==d||e[31]!==f||e[32]!==h?(v=s.jsxs("form",{className:"space-y-6",onSubmit:d,autoComplete:"off",children:[f,h,y]}),e[29]=y,e[30]=d,e[31]=f,e[32]=h,e[33]=v):v=e[33];let C;e[34]!==r||e[35]!==v?(C=s.jsxs(Fn,{children:[c,s.jsx(Wn,{...r,children:v})]}),e[34]=r,e[35]=v,e[36]=C):C=e[36];let N;return e[37]!==l||e[38]!==n||e[39]!==C?(N=s.jsx(Bn,{open:n,onOpenChange:l,children:C}),e[37]=l,e[38]=n,e[39]=C,e[40]=N):N=e[40],N}function il(t){const{orgSlug:e}=t;window.location.href=`/${e}`}async function ll(t){const e=As(t.name);if(!e)throw new Error("Organization slug is invalid");const n=await re.organization.create({name:t.name,slug:e});if(n?.error)throw new Error(n.error.message||"Failed to create organization");const l=n?.data?.slug??e;if(!l)throw new Error("Failed to create organization");return{orgSlug:l}}function zs(){const t=F.useContext(Ys),{data:e,refetch:n}=t.hooks.useListUserInvitations();return{invitations:(e??[]).filter(i=>i.status==="pending"&&new Date(i.expiresAt)>new Date),refetch:()=>n?.()}}function rl(t){let e=0;for(let l=0;l<t.length;l++)e=t.charCodeAt(l)+((e<<5)-e);const n=Math.abs(e)%360;return{backgroundColor:`hsl(${n} 55% 70%)`,color:`hsl(${n} 55% 20%)`}}function rt(t){const e=A.c(13),{org:n,size:l}=t,i=l===void 0?"sm":l,r=i==="xs"?"size-5":"size-6",o=i==="xs"?"text-[9px]":"text-xs";let a;e[0]!==r?(a=D(r,"shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden"),e[0]=r,e[1]=a):a=e[1];let m;e[2]!==n.logo||e[3]!==n.name?(m=n.logo?void 0:rl(n.name),e[2]=n.logo,e[3]=n.name,e[4]=m):m=e[4];let c;e[5]!==n.logo||e[6]!==n.name||e[7]!==o?(c=n.logo?s.jsx("img",{src:n.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:D("font-semibold leading-none",o),children:n.name.slice(0,2).toUpperCase()}),e[5]=n.logo,e[6]=n.name,e[7]=o,e[8]=c):c=e[8];let d;return e[9]!==a||e[10]!==m||e[11]!==c?(d=s.jsx("div",{className:a,style:m,children:c}),e[9]=a,e[10]=m,e[11]=c,e[12]=d):d=e[12],d}function ol({invitation:t,onChanged:e}){const[n,l]=F.useState(!1),i=t.organizationName??"Unknown organization",r=async()=>{l(!0);try{const m=await re.organization.acceptInvitation({invitationId:t.id});if(m.error){ae.error(m.error.message),l(!1);return}}catch{ae.error("Failed to accept invitation"),l(!1);return}ae.success(`Joined ${i}`),Qs();let a;try{a=(await re.organization.getFullOrganization({query:{organizationId:t.organizationId}}))?.data?.slug}catch{}window.location.href=a?`/${a}`:"/"},o=async()=>{l(!0);try{const a=await re.organization.rejectInvitation({invitationId:t.id});if(a.error){ae.error(a.error.message),l(!1);return}ae.success("Invitation declined"),l(!1),e()}catch{ae.error("Failed to decline invitation"),l(!1)}};return s.jsxs("div",{className:"flex items-center gap-3 rounded-md border border-dashed border-border px-3 py-2.5",children:[s.jsx(rt,{org:{name:i},size:"sm"}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"truncate text-sm font-medium",children:i}),s.jsx("p",{className:"truncate text-xs text-muted-foreground",children:"Invited to join"})]}),s.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[s.jsx(Ge,{size:"sm",variant:"default",className:"h-7 text-xs",onClick:r,disabled:n,children:"Accept"}),s.jsx(Ge,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground",onClick:o,disabled:n,"aria-label":`Decline invitation to ${i}`,children:s.jsx(Dn,{size:14})})]})]})}function al(t){const e=A.c(29),{orgParam:n,onSelectOrg:l,onCreateOrg:i}=t,{data:r}=Xs(),{invitations:o,refetch:a}=zs();let m;e[0]!==n?(m=(w,z)=>w.slug===n?-1:z.slug===n?1:w.name.localeCompare(z.name),e[0]=n,e[1]=m):m=e[1];const c=[...r??[]].sort(m),[d,u]=F.useState(""),f=d.toLowerCase(),h=f?c.filter(w=>w.name.toLowerCase().includes(f)||w.slug.toLowerCase().includes(f)):c;let x;e[2]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(fs,{size:16,className:"shrink-0 text-muted-foreground/60"}),e[2]=x):x=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=w=>u(w.target.value),e[3]=g):g=e[3];let p;e[4]!==d?(p=w=>w.key==="Escape"&&d&&u(""),e[4]=d,e[5]=p):p=e[5];let b;e[6]!==d||e[7]!==p?(b=s.jsx("input",{"data-org-switcher-search":!0,autoFocus:!0,type:"text",value:d,onChange:g,onKeyDown:p,placeholder:"Search organizations...",className:"flex-1 min-w-0 bg-transparent text-sm outline-none placeholder:text-muted-foreground/60"}),e[6]=d,e[7]=p,e[8]=b):b=e[8];let j;e[9]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(Le,{size:16}),e[9]=j):j=e[9];let y;e[10]!==i?(y=s.jsx("button",{type:"button",onClick:i,className:"flex items-center justify-center size-7 rounded-md text-muted-foreground hover:bg-accent/50 hover:text-foreground transition-colors",children:j}),e[10]=i,e[11]=y):y=e[11];let v;e[12]!==b||e[13]!==y?(v=s.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5 border-b border-border/50",children:[x,b,y]}),e[12]=b,e[13]=y,e[14]=v):v=e[14];const C="flex-1 min-h-0 overflow-y-auto p-1.5 flex flex-col gap-1";let N;e[15]!==o||e[16]!==d||e[17]!==a?(N=!d&&o.map(w=>s.jsx(ol,{invitation:w,onChanged:a},w.id)),e[15]=o,e[16]=d,e[17]=a,e[18]=N):N=e[18];const _=h.length===0&&s.jsx("p",{className:"px-3 py-4 text-sm text-muted-foreground/60 text-center",children:d?`No organizations match "${d}"`:"No organizations available"});let S;e[19]!==l||e[20]!==n?(S=w=>s.jsxs("button",{type:"button",onClick:()=>l(w.slug),className:D("flex items-center gap-3 px-3 py-2.5 rounded-md text-sm text-left w-full transition-colors",w.slug===n?"bg-accent text-accent-foreground":"text-foreground hover:bg-accent/50"),children:[s.jsx(rt,{org:w,size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:w.name}),s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:w.slug})]}),w.slug===n&&s.jsx(us,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},w.id),e[19]=l,e[20]=n,e[21]=S):S=e[21];const k=h.map(S);let I;e[22]!==N||e[23]!==_||e[24]!==k?(I=s.jsxs("div",{className:C,children:[N,_,k]}),e[22]=N,e[23]=_,e[24]=k,e[25]=I):I=e[25];let $;return e[26]!==I||e[27]!==v?($=s.jsxs(s.Fragment,{children:[v,I]}),e[26]=I,e[27]=v,e[28]=$):$=e[28],$}function $s(t){const e=A.c(22),{trigger:n,orgParam:l,align:i,side:r}=t,o=i===void 0?"start":i,a=r===void 0?"bottom":r,m=de(),[c,d]=F.useState(!1),[u,f]=F.useState(!1);let h;e[0]!==n?(h=s.jsx(Fe,{asChild:!0,children:n}),e[0]=n,e[1]=h):h=e[1];const x=String(c);let g;e[2]!==m?(g=N=>{d(!1),m({to:"/$org",params:{org:N}})},e[2]=m,e[3]=g):g=e[3];let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{d(!1),f(!0)},e[4]=p):p=e[4];let b;e[5]!==l||e[6]!==x||e[7]!==g?(b=s.jsx(al,{orgParam:l,onSelectOrg:g,onCreateOrg:p},x),e[5]=l,e[6]=x,e[7]=g,e[8]=b):b=e[8];let j;e[9]!==o||e[10]!==a||e[11]!==b?(j=s.jsx(st,{side:a,align:o,sideOffset:8,collisionPadding:16,className:"w-[300px] p-0 flex flex-col max-h-[440px]",onOpenAutoFocus:dl,onCloseAutoFocus:cl,children:b}),e[9]=o,e[10]=a,e[11]=b,e[12]=j):j=e[12];let y;e[13]!==c||e[14]!==h||e[15]!==j?(y=s.jsxs(nt,{open:c,onOpenChange:d,children:[h,j]}),e[13]=c,e[14]=h,e[15]=j,e[16]=y):y=e[16];let v;e[17]!==u?(v=s.jsx(nl,{open:u,onOpenChange:f}),e[17]=u,e[18]=v):v=e[18];let C;return e[19]!==v||e[20]!==y?(C=s.jsxs(s.Fragment,{children:[y,v]}),e[19]=v,e[20]=y,e[21]=C):C=e[21],C}function cl(t){return t.preventDefault()}function dl(t){t.preventDefault(),t.currentTarget?.querySelector("[data-org-switcher-search]")?.focus()}function ml(t){const e=A.c(21),{value:n,onChange:l,placeholder:i,onKeyDown:r,className:o,isSearching:a,disabled:m}=t,c=i===void 0?"Search...":i;let d;e[0]!==o?(d=D("shrink-0 w-full border-b border-border h-12",o),e[0]=o,e[1]=d):d=e[1];const u=m?"cursor-not-allowed opacity-50":"cursor-text";let f;e[2]!==u?(f=D("flex items-center gap-2.5 h-12 px-4",u),e[2]=u,e[3]=f):f=e[3];let h;e[4]!==a?(h=a?s.jsx(ts,{size:16,className:"animate-spin text-muted-foreground shrink-0"}):s.jsx(fs,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=a,e[5]=h):h=e[5];let x;e[6]!==l?(x=j=>l(j.target.value),e[6]=l,e[7]=x):x=e[7];let g;e[8]!==m||e[9]!==r||e[10]!==c||e[11]!==x||e[12]!==n?(g=s.jsx("input",{type:"text",value:n,onChange:x,onKeyDown:r,placeholder:c,disabled:m,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=m,e[9]=r,e[10]=c,e[11]=x,e[12]=n,e[13]=g):g=e[13];let p;e[14]!==f||e[15]!==h||e[16]!==g?(p=s.jsxs("label",{className:f,children:[h,g]}),e[14]=f,e[15]=h,e[16]=g,e[17]=p):p=e[17];let b;return e[18]!==d||e[19]!==p?(b=s.jsx("div",{className:d,children:p}),e[18]=d,e[19]=p,e[20]=b):b=e[20],b}const ul="Select an existing agent";function fl(t){const e=A.c(5),{children:n}=t;let l;e[0]!==n?(l=s.jsx(fe,{asChild:!0,children:n}),e[0]=n,e[1]=l):l=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(he,{side:"right",sideOffset:8,children:ul}),e[2]=i):i=e[2];let r;return e[3]!==l?(r=s.jsxs(xe,{defaultOpen:!0,delayDuration:0,children:[l,i]}),e[3]=l,e[4]=r):r=e[4],r}function hl(t){const e=de(),{create:n}=gs(),{locator:l}=Z(),i=_t({strict:!1}),r=tt({strict:!1});return async o=>{const a=crypto.randomUUID(),m=o===r.virtualmcpid?li(t,l,i.taskId??""):null;try{await n({id:a,virtual_mcp_id:o,...m?{branch:m}:{}})}catch{}e({to:"/$org/$taskId",params:{org:t,taskId:a},search:{virtualmcpid:o}})}}function ft(t){const e=A.c(20),{agent:n,selected:l,onClick:i}=t,r=l?"bg-accent text-accent-foreground":"text-foreground hover:bg-accent/50";let o;e[0]!==r?(o=D("flex items-center gap-3 px-3 py-2.5 rounded-md text-sm text-left w-full transition-colors",r),e[0]=r,e[1]=o):o=e[1];let a;e[2]!==n.icon||e[3]!==n.title?(a=s.jsx(je,{icon:n.icon,name:n.title,size:"xs",className:"shrink-0"}),e[2]=n.icon,e[3]=n.title,e[4]=a):a=e[4];let m;e[5]!==n.title?(m=s.jsx("p",{className:"text-sm font-medium truncate",children:n.title}),e[5]=n.title,e[6]=m):m=e[6];let c;e[7]!==n.description?(c=n.description&&s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:n.description}),e[7]=n.description,e[8]=c):c=e[8];let d;e[9]!==m||e[10]!==c?(d=s.jsxs("div",{className:"flex-1 min-w-0",children:[m,c]}),e[9]=m,e[10]=c,e[11]=d):d=e[11];let u;e[12]!==l?(u=l&&s.jsx(us,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[12]=l,e[13]=u):u=e[13];let f;return e[14]!==i||e[15]!==o||e[16]!==a||e[17]!==d||e[18]!==u?(f=s.jsxs("button",{type:"button",onClick:i,className:o,children:[a,d,u]}),e[14]=i,e[15]=o,e[16]=a,e[17]=d,e[18]=u,e[19]=f):f=e[19],f}function Ft(t){const e=A.c(5),{children:n,action:l}=t;let i;e[0]!==n?(i=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:n}),e[0]=n,e[1]=i):i=e[1];let r;return e[2]!==l||e[3]!==i?(r=s.jsxs("div",{className:"flex items-center justify-between px-3 pb-1 pt-2",children:[i,l]}),e[2]=l,e[3]=i,e[4]=r):r=e[4],r}function xl(t){const e=A.c(27),{onClose:n,onSelectAgent:l,selectedAgentId:i,onImportFromGithub:r}=t,[o,a]=F.useState(""),m=ms(),c=m??[],{org:d}=Z(),{data:u}=re.useSession(),f=u?.user?.id??"anon",h=ai(m),x=ci(),g=hl(d.slug),p=mi(m),b=o.toLowerCase(),j=c.filter(jl).filter(W=>!p.has(W.id)).filter(bl).filter(W=>!o||W.title.toLowerCase().includes(b)),y=j.filter(gl),v=j.filter(pl),C=Qe(d.id),N=!o||C.title.toLowerCase().includes(b),_=!!(l&&N);let S;e[0]!==n||e[1]!==l?(S=()=>{l?.(null),n(),a("")},e[0]=n,e[1]=l,e[2]=S):S=e[2];const k=S,I=W=>{if(l){l(W.id),n(),a("");return}di({orgId:d.id,userId:f},W.id,h),x(),n(),a(""),g(W.id)},$="flex flex-col max-h-[min(640px,80dvh)]";let w;e[3]!==o?(w=s.jsx(ml,{value:o,onChange:a,placeholder:"Search agents..."}),e[3]=o,e[4]=w):w=e[4];const z="overflow-y-auto flex-1 min-h-0 p-1.5 flex flex-col gap-0.5",M=l&&N&&C&&s.jsx(ft,{agent:C,selected:!i||i===C.id,onClick:k}),P=v.length>0&&s.jsx(Ft,{children:"Agents"}),U=v.map(W=>s.jsx(ft,{agent:W,selected:l?i===W.id:void 0,onClick:()=>I(W)},W.id)),R=(y.length>0||!o)&&s.jsx(Ft,{action:s.jsxs("button",{type:"button",onClick:r,className:"flex items-center gap-1.5 rounded-md px-2 py-1 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent/50 hover:text-foreground",children:[s.jsx(si,{className:"size-3.5"}),"Import"]}),children:"Code Agents"}),E=y.map(W=>s.jsx(ft,{agent:W,selected:l?i===W.id:void 0,onClick:()=>I(W)},W.id));let O;e[5]!==_||e[6]!==o||e[7]!==j.length?(O=j.length===0&&!_&&o&&s.jsx("div",{className:"flex items-center justify-center py-6 text-xs text-muted-foreground",children:"No agents found"}),e[5]=_,e[6]=o,e[7]=j.length,e[8]=O):O=e[8];let H;e[9]!==O||e[10]!==M||e[11]!==P||e[12]!==U||e[13]!==R||e[14]!==E?(H=s.jsxs("div",{className:z,children:[M,P,U,R,E,O]}),e[9]=O,e[10]=M,e[11]=P,e[12]=U,e[13]=R,e[14]=E,e[15]=H):H=e[15];let G;e[16]!==d.slug?(G={org:d.slug},e[16]=d.slug,e[17]=G):G=e[17];let L;e[18]!==n?(L=()=>n(),e[18]=n,e[19]=L):L=e[19];let B;e[20]!==G||e[21]!==L?(B=s.jsx("div",{className:"border-t border-border px-3 py-2.5",children:s.jsx(Js,{to:"/$org/settings/agents",params:G,onClick:L,className:"text-xs text-muted-foreground hover:text-foreground transition-colors flex items-center justify-center",children:"See all agents"})}),e[20]=G,e[21]=L,e[22]=B):B=e[22];let Y;return e[23]!==H||e[24]!==B||e[25]!==w?(Y=s.jsxs("div",{className:$,children:[w,H,B]}),e[23]=H,e[24]=B,e[25]=w,e[26]=Y):Y=e[26],Y}function pl(t){return!js(t.metadata)}function gl(t){return js(t.metadata)}function bl(t){return!zn(t.id)}function jl(t){return!An(t.id)}function vl(t){const e=A.c(31);let n;e[0]!==t?(n=t===void 0?{}:t,e[0]=t,e[1]=n):n=e[1];const{compact:l,trigger:i,onSelectAgent:r,selectedAgentId:o,side:a,align:m}=n,c=l===void 0?!1:l,d=a===void 0?"right":a,u=m===void 0?"start":m,[f,h]=F.useState(!1),[x,g]=F.useState(!1),p=wt(),{setOpenMobile:b}=pe(),j=oi(),y=j?"border border-border":void 0;let v;e[2]!==j?(v=P=>j?s.jsx(fl,{children:P}):P,e[2]=j,e[3]=v):v=e[3];const C=v;let N;e[4]!==p||e[5]!==b?(N=()=>{h(!1),p&&b(!1)},e[4]=p,e[5]=b,e[6]=N):N=e[6];const _=N;let S;e[7]!==_?(S=()=>{_(),g(!0)},e[7]=_,e[8]=S):S=e[8];const k=S;let I;e[9]!==_||e[10]!==k||e[11]!==r||e[12]!==f||e[13]!==o?(I=f&&s.jsx(F.Suspense,{fallback:s.jsx("div",{className:"flex items-center justify-center py-8",children:s.jsx(ce,{className:"h-4 w-24"})}),children:s.jsx(xl,{onClose:_,onSelectAgent:r,selectedAgentId:o,onImportFromGithub:k})}),e[9]=_,e[10]=k,e[11]=r,e[12]=f,e[13]=o,e[14]=I):I=e[14];const $=I;let w;e[15]!==u||e[16]!==c||e[17]!==y||e[18]!==j||e[19]!==p||e[20]!==f||e[21]!==$||e[22]!==d||e[23]!==i||e[24]!==C?(w=p?s.jsxs(s.Fragment,{children:[i?s.jsx("button",{type:"button",onClick:()=>h(!0),className:"contents",children:i}):c?C(s.jsx(ve,{"aria-label":"Browse agents",className:D(y),onClick:()=>{ne("agent_browser_opened",{surface:"mobile_drawer"}),h(!0)},children:s.jsx(Le,{className:"size-4"})})):s.jsx(V,{children:C(s.jsxs(J,{tooltip:j?void 0:"Browse agents",className:D(y),onClick:()=>{ne("agent_browser_opened",{surface:"mobile_drawer"}),h(!0)},children:[s.jsx(Le,{}),s.jsx("span",{children:"New agent"})]}))}),s.jsx(hs,{open:f,onOpenChange:h,direction:"bottom",children:s.jsxs(xs,{className:"max-h-[85dvh] p-0",children:[s.jsx(ps,{className:"sr-only",children:"Browse agents"}),$]})})]}):s.jsxs(nt,{open:f,onOpenChange:P=>{P&&!f&&ne("agent_browser_opened",{surface:"desktop_popover"}),h(P)},children:[i?s.jsx(Fe,{asChild:!0,children:i}):c?C(s.jsx(Fe,{asChild:!0,children:s.jsx(ve,{"aria-label":"Browse agents",className:D(y),children:s.jsx(Le,{className:"size-4"})})})):s.jsx(V,{children:C(s.jsx(Fe,{asChild:!0,children:s.jsxs(J,{tooltip:j?void 0:"Browse agents",className:D(y),children:[s.jsx(Le,{}),s.jsx("span",{children:"New agent"})]})}))}),s.jsx(st,{className:"w-[380px] p-0 overflow-hidden",side:d,align:u,children:$})]}),e[15]=u,e[16]=c,e[17]=y,e[18]=j,e[19]=p,e[20]=f,e[21]=$,e[22]=d,e[23]=i,e[24]=C,e[25]=w):w=e[25];let z;e[26]!==x?(z=s.jsx(ti,{open:x,onOpenChange:g,mode:"agent"}),e[26]=x,e[27]=z):z=e[27];let M;return e[28]!==z||e[29]!==w?(M=s.jsxs(s.Fragment,{children:[w,z]}),e[28]=z,e[29]=w,e[30]=M):M=e[30],M}const yl="wco-no-drag inline-flex items-center gap-1.5 min-w-0 rounded-md pl-1 pr-2 py-1.5 text-sm text-foreground hover:bg-accent/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50";function Sl(t){const e=A.c(19),{agentId:n,fallback:l,onOpenHome:i,onPick:r}=t,o=It(n)??l??null,a=o?.title??"Super Agent",m=`Open ${a} home`,c=o?.icon??null;let d;e[0]!==c||e[1]!==a?(d=s.jsx(je,{icon:c,name:a,size:"xs"}),e[0]=c,e[1]=a,e[2]=d):d=e[2];let u;e[3]!==i||e[4]!==m||e[5]!==d?(u=s.jsx("button",{type:"button",onClick:i,"aria-label":m,className:"wco-no-drag flex items-center shrink-0 rounded-md p-1 hover:bg-accent/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:d}),e[3]=i,e[4]=m,e[5]=d,e[6]=u):u=e[6];let f;e[7]!==a?(f=s.jsx("span",{className:"truncate font-medium max-w-[8rem]",children:a}),e[7]=a,e[8]=f):f=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(kt,{size:14,className:"shrink-0 text-muted-foreground opacity-70"}),e[9]=h):h=e[9];let x;e[10]!==f?(x=s.jsxs("button",{type:"button",className:yl,children:[f,h]}),e[10]=f,e[11]=x):x=e[11];let g;e[12]!==n||e[13]!==r||e[14]!==x?(g=s.jsx(vl,{side:"bottom",align:"start",selectedAgentId:n,onSelectAgent:r,trigger:x}),e[12]=n,e[13]=r,e[14]=x,e[15]=g):g=e[15];let p;return e[16]!==u||e[17]!==g?(p=s.jsxs("div",{className:"flex min-w-0 items-center gap-0",children:[u,g]}),e[16]=u,e[17]=g,e[18]=p):p=e[18],p}function vt(t){const e=A.c(26);let n;e[0]!==t?(n=t===void 0?{}:t,e[0]=t,e[1]=n):n=e[1];const{showName:l}=n,{org:i}=Z(),{state:r,isMobile:o}=pe(),a=zs().invitations.length>0,m=r==="collapsed"||o,c=a?`${i.name} — switch organization (pending invitation)`:`${i.name} — switch organization`;let d;e[2]!==i?(d=s.jsx(rt,{org:i,size:"sm"}),e[2]=i,e[3]=d):d=e[3];let u;e[4]!==a||e[5]!==m?(u=a&&s.jsx("span",{className:D("absolute -right-1 size-2.5 rounded-full bg-destructive ring-2 ring-background",m?"-top-1":"top-1/2 -translate-y-1/2")}),e[4]=a,e[5]=m,e[6]=u):u=e[6];let f;e[7]!==d||e[8]!==u?(f=s.jsxs("span",{className:"relative inline-flex",children:[d,u]}),e[7]=d,e[8]=u,e[9]=f):f=e[9];let h;e[10]!==i.name||e[11]!==l?(h=l&&s.jsx("span",{className:"truncate text-sm font-medium text-foreground max-w-[10rem]",children:i.name}),e[10]=i.name,e[11]=l,e[12]=h):h=e[12];let x;e[13]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(kt,{size:14,className:"shrink-0 text-muted-foreground opacity-70"}),e[13]=x):x=e[13];let g;e[14]!==c||e[15]!==f||e[16]!==h?(g=s.jsx(fe,{asChild:!0,children:s.jsxs("button",{type:"button","aria-label":c,className:"wco-no-drag flex items-center gap-1.5 shrink-0 rounded-lg pl-[5px] pr-1.5 py-1.5 hover:bg-accent/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:[f,h,x]})}),e[14]=c,e[15]=f,e[16]=h,e[17]=g):g=e[17];let p;e[18]!==i.slug||e[19]!==g?(p=s.jsx($s,{orgParam:i.slug,trigger:g}),e[18]=i.slug,e[19]=g,e[20]=p):p=e[20];let b;e[21]!==i.name?(b=s.jsx(he,{side:"bottom",children:i.name}),e[21]=i.name,e[22]=b):b=e[22];let j;return e[23]!==b||e[24]!==p?(j=s.jsxs(xe,{children:[p,b]}),e[23]=b,e[24]=p,e[25]=j):j=e[25],j}function ot(t){const e=A.c(24);let n;e[0]!==t?(n=t===void 0?{}:t,e[0]=t,e[1]=n):n=e[1];const{onNavigate:l}=n,{org:i}=Z(),r=de();let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[2]=o):o=e[2];const a=_t(o);let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m={strict:!1},e[3]=m):m=e[3];const c=tt(m),{threads:d}=At(),{data:u}=re.useSession(),{setTaskId:f,createNewTask:h}=zt();let x;e[4]!==i.id?(x=Qe(i.id),e[4]=i.id,e[5]=x):x=e[5];const g=x,p=g.id,b=a.taskId?c.virtualmcpid??p:p;let j;e[6]!==h||e[7]!==p||e[8]!==r||e[9]!==l||e[10]!==i.slug||e[11]!==u?.user?.id||e[12]!==f||e[13]!==d?(j=S=>{if(!S||S===p){r({to:"/$org",params:{org:i.slug}}),l?.();return}const k=xi(d,S,u?.user?.id);k?f(k.id,S):h(S),l?.()},e[6]=h,e[7]=p,e[8]=r,e[9]=l,e[10]=i.slug,e[11]=u?.user?.id,e[12]=f,e[13]=d,e[14]=j):j=e[14];const y=j;let v;e[15]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx("span",{className:"h-5 w-24 rounded bg-muted animate-pulse"}),e[15]=v):v=e[15];const C=b===p?g:void 0;let N;e[16]!==b||e[17]!==y?(N=()=>y(b),e[16]=b,e[17]=y,e[18]=N):N=e[18];let _;return e[19]!==b||e[20]!==y||e[21]!==C||e[22]!==N?(_=s.jsx(F.Suspense,{fallback:v,children:s.jsx(Sl,{agentId:b,fallback:C,onOpenHome:N,onPick:y})}),e[19]=b,e[20]=y,e[21]=C,e[22]=N,e[23]=_):_=e[23],_}function Rt(t){const e=A.c(18),{item:n,onClose:l}=t,i=n.isActive&&"z-10";let r;e[0]!==i?(r=D(i),e[0]=i,e[1]=r):r=e[1];let o;e[2]!==n||e[3]!==l?(o=()=>{n.onClick?.(),l()},e[2]=n,e[3]=l,e[4]=o):o=e[4];let a;e[5]!==n.icon?(a=s.jsx("span",{className:"[&>svg]:size-5 shrink-0",children:n.icon}),e[5]=n.icon,e[6]=a):a=e[6];let m;e[7]!==n.label?(m=s.jsx("span",{children:n.label}),e[7]=n.label,e[8]=m):m=e[8];let c;e[9]!==n.isActive||e[10]!==n.label||e[11]!==o||e[12]!==a||e[13]!==m?(c=s.jsxs(J,{onClick:o,isActive:n.isActive,tooltip:n.label,className:"h-10! text-sm!",children:[a,m]}),e[9]=n.isActive,e[10]=n.label,e[11]=o,e[12]=a,e[13]=m,e[14]=c):c=e[14];let d;return e[15]!==r||e[16]!==c?(d=s.jsx(V,{className:r,children:c}),e[15]=r,e[16]=c,e[17]=d):d=e[17],d}function _l(t){const e=A.c(18),{section:n,onClose:l}=t;switch(n.type){case"divider":{let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(ss,{className:"my-2"}),e[0]=i):i=e[0],i}case"spacer":{let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex-1"}),e[1]=i):i=e[1],i}case"group":{const i=n.group.label,r=n.group.defaultExpanded;let o;if(e[2]!==l||e[3]!==n.group.items){let m;e[5]!==l?(m=c=>s.jsx(Rt,{item:c,onClose:l},c.key),e[5]=l,e[6]=m):m=e[6],o=n.group.items.map(m),e[2]=l,e[3]=n.group.items,e[4]=o}else o=e[4];let a;return e[7]!==n.group.defaultExpanded||e[8]!==n.group.label||e[9]!==o?(a=s.jsx(ws,{label:i,defaultExpanded:r,children:o}),e[7]=n.group.defaultExpanded,e[8]=n.group.label,e[9]=o,e[10]=a):a=e[10],a}case"items":{let i;if(e[11]!==l||e[12]!==n.items){let o;e[14]!==l?(o=a=>s.jsx(Rt,{item:a,onClose:l},a.key),e[14]=l,e[15]=o):o=e[15],i=n.items.map(o),e[11]=l,e[12]=n.items,e[13]=i}else i=e[13];let r;return e[16]!==i?(r=s.jsx(Nt,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ct,{children:s.jsx(ie,{className:"gap-1.5",children:i})})}),e[16]=i,e[17]=r):r=e[17],r}case"custom":return n.content}}function Nl(t){const e=A.c(24),{sections:n,onClose:l,footer:i,additionalContent:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(vt,{}),e[0]=o):o=e[0];let a;e[1]!==l?(a=s.jsx(ot,{onNavigate:l}),e[1]=l,e[2]=a):a=e[2];let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"flex-1"}),e[3]=m):m=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(ds,{size:16}),e[4]=c):c=e[4];let d;e[5]!==l?(d=s.jsx(ve,{onClick:l,"aria-label":"Close sidebar",children:c}),e[5]=l,e[6]=d):d=e[6];let u;e[7]!==a||e[8]!==d?(u=s.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-0.5 px-1.5",children:[o,a,m,d]}),e[7]=a,e[8]=d,e[9]=u):u=e[9];let f;if(e[10]!==l||e[11]!==n){let p;e[13]!==l?(p=(b,j)=>s.jsx(_l,{section:b,onClose:l},j),e[13]=l,e[14]=p):p=e[14],f=n.map(p),e[10]=l,e[11]=n,e[12]=f}else f=e[12];let h;e[15]!==r?(h=r&&s.jsx("div",{className:"mt-3 flex flex-col flex-1 min-h-0",children:r}),e[15]=r,e[16]=h):h=e[16];let x;e[17]!==f||e[18]!==h?(x=s.jsxs(ns,{className:"flex flex-col flex-1 px-2 py-2 gap-0",children:[f,h]}),e[17]=f,e[18]=h,e[19]=x):x=e[19];let g;return e[20]!==i||e[21]!==u||e[22]!==x?(g=s.jsxs("div",{className:"bg-sidebar flex h-full w-full flex-col","data-sidebar":"sidebar",children:[u,x,i]}),e[20]=i,e[21]=u,e[22]=x,e[23]=g):g=e[23],g}function Pe(t){const e=A.c(26),{item:n,onClose:l}=t;let i;e[0]!==n.className?(i=D("flex items-center gap-2.5 px-3 py-2 rounded-md text-sm text-left w-full transition-colors text-foreground/80 hover:bg-sidebar-accent hover:text-foreground",n.className),e[0]=n.className,e[1]=i):i=e[1];const r=i;if(n.href){const d=n.external?"_blank":void 0,u=n.external?"noopener noreferrer":void 0;let f;e[2]!==n.icon?(f=s.jsx("span",{className:"shrink-0 text-muted-foreground",children:n.icon}),e[2]=n.icon,e[3]=f):f=e[3];let h;e[4]!==n.label?(h=s.jsx("span",{className:"flex-1",children:n.label}),e[4]=n.label,e[5]=h):h=e[5];let x;return e[6]!==r||e[7]!==n.href||e[8]!==l||e[9]!==d||e[10]!==u||e[11]!==f||e[12]!==h?(x=s.jsxs("a",{href:n.href,target:d,rel:u,className:r,onClick:l,children:[f,h]}),e[6]=r,e[7]=n.href,e[8]=l,e[9]=d,e[10]=u,e[11]=f,e[12]=h,e[13]=x):x=e[13],x}let o;e[14]!==n||e[15]!==l?(o=()=>{n.onClick?.(),l()},e[14]=n,e[15]=l,e[16]=o):o=e[16];let a;e[17]!==n.icon?(a=s.jsx("span",{className:"shrink-0 text-muted-foreground",children:n.icon}),e[17]=n.icon,e[18]=a):a=e[18];let m;e[19]!==n.label?(m=s.jsx("span",{className:"flex-1",children:n.label}),e[19]=n.label,e[20]=m):m=e[20];let c;return e[21]!==r||e[22]!==o||e[23]!==a||e[24]!==m?(c=s.jsxs("button",{type:"button",onClick:o,className:r,children:[a,m]}),e[21]=r,e[22]=o,e[23]=a,e[24]=m,e[25]=c):c=e[25],c}function Lt(){const t=A.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("span",{className:"shrink-0 inline-flex items-center rounded-full bg-amber-100 dark:bg-amber-500/20 px-2 py-0.5 text-[10px] font-medium text-amber-700 dark:text-amber-400",children:"Impersonating"}),t[0]=e):e=t[0],e}function Ut(t){const e=A.c(144),{user:n,userImage:l,menuItems:i,signOutItem:r,stopImpersonatingItem:o,isImpersonating:a,themeOptions:m,preferences:c,setPreferences:d,close:u,isMobile:f}=t;if(f){const X=n?.name??"U";let ee;e[0]!==X||e[1]!==l?(ee=s.jsx(Je,{url:l,fallback:X,shape:"circle",size:"sm",className:"shrink-0"}),e[0]=X,e[1]=l,e[2]=ee):ee=e[2];const ge=n?.name??"User";let te;e[3]!==ge?(te=s.jsx("p",{className:"text-sm font-medium truncate",children:ge}),e[3]=ge,e[4]=te):te=e[4];let oe;e[5]!==a?(oe=a&&s.jsx(Lt,{}),e[5]=a,e[6]=oe):oe=e[6];let le;e[7]!==te||e[8]!==oe?(le=s.jsxs("div",{className:"flex items-center gap-2",children:[te,oe]}),e[7]=te,e[8]=oe,e[9]=le):le=e[9];const T=n?.email;let q;e[10]!==T?(q=s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:T}),e[10]=T,e[11]=q):q=e[11];let Q;e[12]!==le||e[13]!==q?(Q=s.jsxs("div",{className:"flex-1 min-w-0",children:[le,q]}),e[12]=le,e[13]=q,e[14]=Q):Q=e[14];let K;e[15]!==n?(K=()=>{n?.id&&navigator.clipboard.writeText(n.id).then(Il)},e[15]=n,e[16]=K):K=e[16];let be;e[17]===Symbol.for("react.memo_cache_sentinel")?(be=s.jsx(Et,{size:14}),e[17]=be):be=e[17];let Se;e[18]!==K?(Se=s.jsx(fe,{asChild:!0,children:s.jsx("button",{type:"button",tabIndex:-1,onClick:K,className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:be})}),e[18]=K,e[19]=Se):Se=e[19];let We;e[20]===Symbol.for("react.memo_cache_sentinel")?(We=s.jsx(he,{side:"right",children:s.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[20]=We):We=e[20];let _e;e[21]!==Se?(_e=s.jsx(bt,{delayDuration:300,children:s.jsxs(xe,{children:[Se,We]})}),e[21]=Se,e[22]=_e):_e=e[22];let Ne;e[23]!==_e||e[24]!==ee||e[25]!==Q?(Ne=s.jsxs("div",{className:"flex items-center gap-3 px-4 py-4 border-b border-border",children:[ee,Q,_e]}),e[23]=_e,e[24]=ee,e[25]=Q,e[26]=Ne):Ne=e[26];let Ce;if(e[27]!==u||e[28]!==i){let ue;e[30]!==u?(ue=Ke=>s.jsx(Pe,{item:Ke,onClose:u},Ke.key),e[30]=u,e[31]=ue):ue=e[31],Ce=i.map(ue),e[27]=u,e[28]=i,e[29]=Ce}else Ce=e[29];let we;e[32]!==u||e[33]!==o?(we=o&&s.jsx(Pe,{item:o,onClose:u}),e[32]=u,e[33]=o,e[34]=we):we=e[34];let ke;e[35]!==u||e[36]!==r?(ke=s.jsx(Pe,{item:r,onClose:u}),e[35]=u,e[36]=r,e[37]=ke):ke=e[37];let Ie;e[38]!==Ce||e[39]!==we||e[40]!==ke?(Ie=s.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:s.jsxs("nav",{className:"flex flex-col px-2 pt-2 pb-2 gap-0.5",children:[Ce,we,ke]})}),e[38]=Ce,e[39]=we,e[40]=ke,e[41]=Ie):Ie=e[41];let Ae;if(e[42]!==c.theme||e[43]!==d||e[44]!==m){let ue;e[46]!==c.theme||e[47]!==d?(ue=Ke=>{const{value:mt,icon:Rs,label:Ls}=Ke;return s.jsx("button",{type:"button","aria-label":Ls,onClick:()=>d(Us=>({...Us,theme:mt})),className:D("size-8 rounded-md flex items-center justify-center transition-colors",c.theme===mt?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground"),children:Rs},mt)},e[46]=c.theme,e[47]=d,e[48]=ue):ue=e[48],Ae=m.map(ue),e[42]=c.theme,e[43]=d,e[44]=m,e[45]=Ae}else Ae=e[45];let ze;e[49]!==Ae?(ze=s.jsx("div",{className:"flex items-center gap-0.5",children:Ae}),e[49]=Ae,e[50]=ze):ze=e[50];const ct=c.enableSounds?"Disable sounds":"Enable sounds";let $e;e[51]!==d?($e=()=>d(kl),e[51]=d,e[52]=$e):$e=e[52];const dt=c.enableSounds?"text-foreground hover:bg-sidebar-accent/50":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground";let Te;e[53]!==dt?(Te=D("size-8 rounded-md flex items-center justify-center transition-colors",dt),e[53]=dt,e[54]=Te):Te=e[54];let Oe;e[55]!==c.enableSounds?(Oe=c.enableSounds?s.jsx(Tt,{size:14}):s.jsx(Ot,{size:14}),e[55]=c.enableSounds,e[56]=Oe):Oe=e[56];let Me;e[57]!==ct||e[58]!==$e||e[59]!==Te||e[60]!==Oe?(Me=s.jsx("button",{type:"button","aria-label":ct,onClick:$e,className:Te,children:Oe}),e[57]=ct,e[58]=$e,e[59]=Te,e[60]=Oe,e[61]=Me):Me=e[61];let qe;e[62]===Symbol.for("react.memo_cache_sentinel")?(qe=s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","4.72.3"]}),e[62]=qe):qe=e[62];let Ee;e[63]!==Me?(Ee=s.jsxs("div",{className:"flex items-center gap-2",children:[Me,qe]}),e[63]=Me,e[64]=Ee):Ee=e[64];let De;e[65]!==ze||e[66]!==Ee?(De=s.jsxs("div",{className:"flex items-center justify-between px-3 py-3 border-t border-border/50",children:[ze,Ee]}),e[65]=ze,e[66]=Ee,e[67]=De):De=e[67];let Ve;return e[68]!==Ne||e[69]!==Ie||e[70]!==De?(Ve=s.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[Ne,Ie,De]}),e[68]=Ne,e[69]=Ie,e[70]=De,e[71]=Ve):Ve=e[71],Ve}const h=n?.name??"U";let x;e[72]!==h||e[73]!==l?(x=s.jsx(Je,{url:l,fallback:h,shape:"circle",size:"sm",className:"shrink-0"}),e[72]=h,e[73]=l,e[74]=x):x=e[74];const g=n?.name??"User";let p;e[75]!==g?(p=s.jsx("p",{className:"text-sm font-medium truncate",children:g}),e[75]=g,e[76]=p):p=e[76];let b;e[77]!==a?(b=a&&s.jsx(Lt,{}),e[77]=a,e[78]=b):b=e[78];let j;e[79]!==p||e[80]!==b?(j=s.jsxs("div",{className:"flex items-center gap-2",children:[p,b]}),e[79]=p,e[80]=b,e[81]=j):j=e[81];const y=n?.email;let v;e[82]!==y?(v=s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:y}),e[82]=y,e[83]=v):v=e[83];let C;e[84]!==j||e[85]!==v?(C=s.jsxs("div",{className:"flex-1 min-w-0",children:[j,v]}),e[84]=j,e[85]=v,e[86]=C):C=e[86];let N;e[87]!==n?(N=()=>{n?.id&&navigator.clipboard.writeText(n.id).then(wl)},e[87]=n,e[88]=N):N=e[88];let _;e[89]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(Et,{size:14}),e[89]=_):_=e[89];let S;e[90]!==N?(S=s.jsx(fe,{asChild:!0,children:s.jsx("button",{type:"button",tabIndex:-1,onClick:N,className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:_})}),e[90]=N,e[91]=S):S=e[91];let k;e[92]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(he,{side:"right",children:s.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[92]=k):k=e[92];let I;e[93]!==S?(I=s.jsx(bt,{delayDuration:300,children:s.jsxs(xe,{children:[S,k]})}),e[93]=S,e[94]=I):I=e[94];let $;e[95]!==I||e[96]!==x||e[97]!==C?($=s.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 mx-1 mt-1",children:[x,C,I]}),e[95]=I,e[96]=x,e[97]=C,e[98]=$):$=e[98];let w;if(e[99]!==u||e[100]!==i){let X;e[102]!==u?(X=ee=>s.jsx(Pe,{item:ee,onClose:u},ee.key),e[102]=u,e[103]=X):X=e[103],w=i.map(X),e[99]=u,e[100]=i,e[101]=w}else w=e[101];let z;e[104]!==u||e[105]!==o?(z=o&&s.jsx(Pe,{item:o,onClose:u}),e[104]=u,e[105]=o,e[106]=z):z=e[106];let M;e[107]!==u||e[108]!==r?(M=s.jsx(Pe,{item:r,onClose:u}),e[107]=u,e[108]=r,e[109]=M):M=e[109];let P;e[110]!==w||e[111]!==z||e[112]!==M?(P=s.jsxs("nav",{className:"flex-1 flex flex-col px-2 pt-1 overflow-y-auto",children:[w,z,M]}),e[110]=w,e[111]=z,e[112]=M,e[113]=P):P=e[113];let U;if(e[114]!==c.theme||e[115]!==d||e[116]!==m){let X;e[118]!==c.theme||e[119]!==d?(X=ee=>{const{value:ge,icon:te,label:oe}=ee;return s.jsx("button",{type:"button","aria-label":oe,onClick:()=>d(le=>({...le,theme:ge})),className:D("size-7 rounded-md flex items-center justify-center transition-colors",c.theme===ge?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground"),children:te},ge)},e[118]=c.theme,e[119]=d,e[120]=X):X=e[120],U=m.map(X),e[114]=c.theme,e[115]=d,e[116]=m,e[117]=U}else U=e[117];let R;e[121]!==U?(R=s.jsx("div",{className:"flex items-center gap-0.5",children:U}),e[121]=U,e[122]=R):R=e[122];const E=c.enableSounds?"Disable sounds":"Enable sounds";let O;e[123]!==d?(O=()=>d(Cl),e[123]=d,e[124]=O):O=e[124];const H=c.enableSounds?"text-foreground hover:bg-sidebar-accent/50":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground";let G;e[125]!==H?(G=D("size-7 rounded-md flex items-center justify-center transition-colors",H),e[125]=H,e[126]=G):G=e[126];let L;e[127]!==c.enableSounds?(L=c.enableSounds?s.jsx(Tt,{size:14}):s.jsx(Ot,{size:14}),e[127]=c.enableSounds,e[128]=L):L=e[128];let B;e[129]!==E||e[130]!==O||e[131]!==G||e[132]!==L?(B=s.jsx("button",{type:"button","aria-label":E,onClick:O,className:G,children:L}),e[129]=E,e[130]=O,e[131]=G,e[132]=L,e[133]=B):B=e[133];let Y;e[134]===Symbol.for("react.memo_cache_sentinel")?(Y=s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","4.72.3"]}),e[134]=Y):Y=e[134];let W;e[135]!==B?(W=s.jsxs("div",{className:"flex items-center gap-2",children:[B,Y]}),e[135]=B,e[136]=W):W=e[136];let me;e[137]!==R||e[138]!==W?(me=s.jsxs("div",{className:"flex items-center justify-between px-2 py-1.5 border-t border-border/50",children:[R,W]}),e[137]=R,e[138]=W,e[139]=me):me=e[139];let ye;return e[140]!==$||e[141]!==P||e[142]!==me?(ye=s.jsx("div",{className:"flex w-full flex-col overflow-hidden",children:s.jsxs("div",{className:"flex flex-col",children:[$,P,me]})}),e[140]=$,e[141]=P,e[142]=me,e[143]=ye):ye=e[143],ye}function Cl(t){return{...t,enableSounds:!t.enableSounds}}function wl(){ae.success("User ID copied")}function kl(t){return{...t,enableSounds:!t.enableSounds}}function Il(){ae.success("User ID copied")}function He(){const t=A.c(43),{data:e}=re.useSession(),{org:n}=Z(),l=de();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={from:"/shell/$org",shouldThrow:!1},t[0]=i):i=t[0];const o=Zs(i)?.params.org,[a,m]=en(),c=wt(),{isAdmin:d}=Ni(),[u,f]=F.useState(!1),h=e?.user,x=h?.image,g=!!e?.session?.impersonatedBy;let p;t[1]===Symbol.for("react.memo_cache_sentinel")?(p=()=>f(!1),t[1]=p):p=t[1];const b=p;let j;t[2]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(it,{size:16}),t[2]=j):j=t[2];let y;t[3]!==l||t[4]!==o?(y={key:"preferences",label:"Preferences",icon:j,onClick:()=>{l({to:"/$org/settings/profile",params:{org:o??""}})}},t[3]=l,t[4]=o,t[5]=y):y=t[5];let v;t[6]!==n||t[7]!==l?(v=n?[{key:"install-app",label:"Add to Home Screen",icon:s.jsx(pi,{size:16}),onClick:()=>{l({to:"/$org/install",params:{org:n.slug}})}}]:[],t[6]=n,t[7]=l,t[8]=v):v=t[8];let C;t[9]===Symbol.for("react.memo_cache_sentinel")?(C={key:"terms",label:"Terms of Use",icon:s.jsx(bi,{size:16}),href:"https://www.decocms.com/terms-of-use",external:!0},t[9]=C):C=t[9];let N;t[10]===Symbol.for("react.memo_cache_sentinel")?(N={key:"privacy",label:"Privacy Policy",icon:s.jsx(Si,{size:16}),href:"https://www.decocms.com/privacy-policy",external:!0},t[10]=N):N=t[10];let _;t[11]===Symbol.for("react.memo_cache_sentinel")?(_={key:"github",label:"decocms/studio",icon:s.jsx(tn,{className:"w-4 h-4"}),href:"https://github.com/decocms/studio",external:!0},t[11]=_):_=t[11];let S;t[12]===Symbol.for("react.memo_cache_sentinel")?(S={key:"community",label:"Community",icon:s.jsx(_i,{size:16}),href:"https://decocms.com/discord",external:!0},t[12]=S):S=t[12];let k;t[13]===Symbol.for("react.memo_cache_sentinel")?(k={key:"homepage",label:"Homepage",icon:s.jsx(gi,{size:16}),href:"https://decocms.com",external:!0},t[13]=k):k=t[13];let I;t[14]!==d||t[15]!==l?(I=d?[{key:"admin-dashboard",label:"Admin Dashboard",icon:s.jsx($n,{size:16}),onClick:()=>l({to:"/_admin"}),className:"text-amber-700 dark:text-amber-400"}]:[],t[14]=d,t[15]=l,t[16]=I):I=t[16];let $;t[17]!==I||t[18]!==y||t[19]!==v?($=[y,...v,C,N,_,S,k,...I],t[17]=I,t[18]=y,t[19]=v,t[20]=$):$=t[20];const w=$;let z;t[21]===Symbol.for("react.memo_cache_sentinel")?(z={key:"logout",label:"Sign out",icon:s.jsx(Dt,{size:16}),onClick:$l},t[21]=z):z=t[21];const M=z;let P;t[22]!==g?(P=g?{key:"stop-impersonating",label:"Stop impersonation",icon:s.jsx(Dt,{size:16}),onClick:zl,className:"text-amber-700 dark:text-amber-400"}:null,t[22]=g,t[23]=P):P=t[23];const U=P;let R;t[24]===Symbol.for("react.memo_cache_sentinel")?(R={value:"light",icon:s.jsx(vi,{size:14}),label:"Light theme"},t[24]=R):R=t[24];let E;t[25]===Symbol.for("react.memo_cache_sentinel")?(E={value:"dark",icon:s.jsx(yi,{size:14}),label:"Dark theme"},t[25]=E):E=t[25];let O;t[26]===Symbol.for("react.memo_cache_sentinel")?(O=[R,E,{value:"system",icon:s.jsx(jt,{size:14}),label:"System theme"}],t[26]=O):O=t[26];const H=O;let G;t[27]!==g||t[28]!==c||t[29]!==w||t[30]!==a||t[31]!==m||t[32]!==U||t[33]!==h||t[34]!==x?(G={user:h,userImage:x,menuItems:w,signOutItem:M,stopImpersonatingItem:U,isImpersonating:g,themeOptions:H,preferences:a,setPreferences:m,close:b,isMobile:c},t[27]=g,t[28]=c,t[29]=w,t[30]=a,t[31]=m,t[32]=U,t[33]=h,t[34]=x,t[35]=G):G=t[35];const L=G;let B;return t[36]!==g||t[37]!==c||t[38]!==u||t[39]!==L||t[40]!==h?.name||t[41]!==x?(B=s.jsx(s.Fragment,{children:c?s.jsxs(hs,{open:u,onOpenChange:f,direction:"bottom",children:[s.jsxs("button",{type:"button",onClick:()=>f(!0),className:D("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",g&&"border-2 border-dashed border-amber-500"),children:[s.jsx(Je,{url:x,fallback:h?.name??"U",shape:"circle",size:"2xs",className:"shrink-0"}),s.jsx("span",{className:"truncate",children:h?.name??"Account"})]}),s.jsxs(xs,{className:"h-[80dvh] p-0",children:[s.jsx(ps,{className:"sr-only",children:"Account"}),s.jsx(Ut,{...L})]})]}):s.jsxs(nt,{open:u,onOpenChange:f,children:[s.jsx(Fe,{asChild:!0,children:s.jsxs(J,{tooltip:h?.name??"Account",className:D("rounded-md",g&&"border-2 border-dashed border-amber-500"),children:[s.jsx(Je,{url:x,fallback:h?.name??"U",shape:"circle",size:"xs",className:"shrink-0"}),s.jsx("span",{className:"truncate",children:h?.name??"Account"})]})}),s.jsx(st,{side:"right",align:"end",sideOffset:18,collisionPadding:16,className:"w-[280px] p-0 flex flex-col max-h-[520px]",onCloseAutoFocus:Al,children:s.jsx(Ut,{...L})})]})}),t[36]=g,t[37]=c,t[38]=u,t[39]=L,t[40]=h?.name,t[41]=x,t[42]=B):B=t[42],B}function Al(t){return t.preventDefault()}async function zl(){const{error:t}=await re.admin.stopImpersonating();if(t){ae.error(t.message||"Failed to stop impersonation");return}window.location.href="/"}function $l(){ne("signed_out",{source:"account_popover"}),sn(),re.signOut()}function Be(t){const e=A.c(43),{variant:n}=t===void 0?{}:t,l=n===void 0?"icon":n,i=Zn(),[r,o]=F.useState(!1);let a,m;if(e[0]!==i.capabilities||e[1]!==i.hostname||e[2]!==i.machineId||e[3]!==i.online){const y=Ci(i.capabilities);a=i.online?"Desktop linked":"Connect desktop",m=i.online?s.jsxs("div",{className:"flex flex-col gap-0.5 text-xs",children:[s.jsx("span",{className:"font-medium",children:i.hostname??i.machineId??"Desktop linked"}),s.jsx("span",{className:"text-muted-foreground",children:y.length>0?`Available: ${y.join(", ")}`:"No CLI agents detected"})]}):s.jsx("span",{className:"text-xs",children:"Desktop disconnected"}),e[0]=i.capabilities,e[1]=i.hostname,e[2]=i.machineId,e[3]=i.online,e[4]=a,e[5]=m}else a=e[4],m=e[5];const c=m;if(l==="full"){let y,v;e[6]===Symbol.for("react.memo_cache_sentinel")?(y=()=>o(!0),v=s.jsx(jt,{}),e[6]=y,e[7]=v):(y=e[6],v=e[7]);let C;e[8]!==a?(C=s.jsx("span",{children:a}),e[8]=a,e[9]=C):C=e[9];let N;e[10]!==i.online?(N=i.online&&s.jsx("span",{className:"ml-auto size-2 rounded-full bg-success animate-pulse"}),e[10]=i.online,e[11]=N):N=e[11];let _;e[12]!==a||e[13]!==C||e[14]!==N?(_=s.jsx(fe,{asChild:!0,children:s.jsxs(J,{tooltip:a,onClick:y,children:[v,C,N]})}),e[12]=a,e[13]=C,e[14]=N,e[15]=_):_=e[15];let S;e[16]!==c?(S=s.jsx(he,{side:"right",children:c}),e[16]=c,e[17]=S):S=e[17];let k;e[18]!==_||e[19]!==S?(k=s.jsxs(xe,{children:[_,S]}),e[18]=_,e[19]=S,e[20]=k):k=e[20];let I;e[21]!==r?(I=s.jsx(Pt,{open:r,onOpenChange:o}),e[21]=r,e[22]=I):I=e[22];let $;return e[23]!==I||e[24]!==k?($=s.jsxs(s.Fragment,{children:[k,I]}),e[23]=I,e[24]=k,e[25]=$):$=e[25],$}let d;e[26]===Symbol.for("react.memo_cache_sentinel")?(d=()=>o(!0),e[26]=d):d=e[26];const u=i.online?"Desktop linked":"Connect your desktop";let f;e[27]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(jt,{size:16}),e[27]=f):f=e[27];let h;e[28]!==i.online?(h=i.online&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-success ring-2 ring-background animate-pulse"}),e[28]=i.online,e[29]=h):h=e[29];let x;e[30]!==u||e[31]!==h?(x=s.jsx(fe,{asChild:!0,children:s.jsxs(ve,{onClick:d,"aria-label":u,children:[f,h]})}),e[30]=u,e[31]=h,e[32]=x):x=e[32];let g;e[33]!==c?(g=s.jsx(he,{side:"bottom",children:c}),e[33]=c,e[34]=g):g=e[34];let p;e[35]!==x||e[36]!==g?(p=s.jsxs(xe,{children:[x,g]}),e[35]=x,e[36]=g,e[37]=p):p=e[37];let b;e[38]!==r?(b=s.jsx(Pt,{open:r,onOpenChange:o}),e[38]=r,e[39]=b):b=e[39];let j;return e[40]!==b||e[41]!==p?(j=s.jsxs(s.Fragment,{children:[p,b]}),e[40]=b,e[41]=p,e[42]=j):j=e[42],j}class Tl extends F.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,n){}render(){return this.state.hasError?null:this.props.children}}function Ol(t){return t<=1?"text-destructive":t<=5?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Ml(){const t=A.c(17),e=de(),{org:n}=Z(),{hasDecoKey:l,balanceDollars:i}=ui();if(!l)return null;let r;t[0]!==i?(r=i!=null?`Credits: $${i.toFixed(2)}`:"Credits",t[0]=i,t[1]=r):r=t[1];let o;t[2]!==i?(o=D(i!=null&&Ol(i)),t[2]=i,t[3]=o):o=t[3];let a;t[4]!==e||t[5]!==n.slug?(a=()=>e({to:"/$org/settings/ai-providers",params:{org:n.slug}}),t[4]=e,t[5]=n.slug,t[6]=a):a=t[6];let m;t[7]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(Tn,{}),t[7]=m):m=t[7];let c;t[8]!==i?(c=i!=null?`$${i.toFixed(2)}`:"Credits",t[8]=i,t[9]=c):c=t[9];let d;t[10]!==c?(d=s.jsx("span",{children:c}),t[10]=c,t[11]=d):d=t[11];let u;return t[12]!==r||t[13]!==o||t[14]!==a||t[15]!==d?(u=s.jsx(ie,{children:s.jsx(V,{children:s.jsxs(J,{tooltip:r,className:o,onClick:a,children:[m,d]})})}),t[12]=r,t[13]=o,t[14]=a,t[15]=d,t[16]=u):u=t[16],u}function Ht(){const t=A.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Tl,{children:s.jsx(F.Suspense,{fallback:null,children:s.jsx(Ml,{})})}),t[0]=e):e=t[0],e}function ht(){const t=A.c(7),e=de(),{org:n}=Z();let l;t[0]!==e||t[1]!==n.slug?(l=()=>e({to:"/$org/settings",params:{org:n.slug}}),t[0]=e,t[1]=n.slug,t[2]=l):l=t[2];let i,r;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(it,{}),r=s.jsx("span",{children:"Settings"}),t[3]=i,t[4]=r):(i=t[3],r=t[4]);let o;return t[5]!==l?(o=s.jsxs(J,{tooltip:"Settings",onClick:l,children:[i,r]}),t[5]=l,t[6]=o):o=t[6],o}function El(){const t=A.c(6),e=de(),{org:n}=Z();let l;t[0]!==e||t[1]!==n.slug?(l=()=>e({to:"/$org/settings",params:{org:n.slug}}),t[0]=e,t[1]=n.slug,t[2]=l):l=t[2];let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(it,{size:15}),t[3]=i):i=t[3];let r;return t[4]!==l?(r=s.jsx("button",{type:"button","aria-label":"Settings",onClick:l,className:"shrink-0 flex items-center justify-center size-7 rounded-md text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground transition-colors",children:i}),t[4]=l,t[5]=r):r=t[5],r}function Bt(){const t=A.c(4),[e,n]=F.useState(!1);let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(V,{children:s.jsx(ys,{trigger:s.jsxs(J,{tooltip:"Invite members",children:[s.jsx(vs,{}),s.jsx("span",{children:"Invite members"})]})})}),t[0]=l):l=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs(ie,{className:"gap-0.5",children:[l,s.jsx(V,{children:s.jsxs(J,{tooltip:"Add connection",onClick:()=>n(!0),children:[s.jsx(ji,{}),s.jsx("span",{children:"Add connection"})]})})]}),t[1]=i):i=t[1];let r;return t[2]!==e?(r=s.jsxs(s.Fragment,{children:[i,s.jsx(fi,{open:e,onOpenChange:n,mode:"browse"})]}),t[2]=e,t[3]=r):r=t[3],r}function Gt(){const t=A.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(ie,{className:"gap-0.5",children:s.jsx(V,{children:s.jsx(ys,{trigger:s.jsxs(J,{tooltip:"Invite members",children:[s.jsx(vs,{}),s.jsx("span",{children:"Invite members"})]})})})}),t[0]=e):e=t[0],e}function Dl(){const t=A.c(17),{state:e}=pe(),n=e==="collapsed";if(lt()){if(n){let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(Gt,{}),t[0]=f):f=t[0];let h;t[1]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(V,{children:s.jsx("div",{className:"flex justify-center",children:s.jsx(Be,{})})}),t[1]=h):h=t[1];let x;t[2]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(V,{children:s.jsx(ht,{})}),t[2]=x):x=t[2];let g;return t[3]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsxs(Re,{className:"px-2 pb-3 gap-1",children:[f,s.jsxs(ie,{children:[h,x,s.jsx(V,{children:s.jsx(He,{})})]})]}),t[3]=g):g=t[3],g}let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Gt,{}),t[4]=c):c=t[4];let d;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(V,{children:s.jsx(Be,{variant:"full"})}),t[5]=d):d=t[5];let u;return t[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsxs(Re,{className:"px-2 pb-3 gap-0.5",children:[c,s.jsxs(ie,{className:"gap-0.5",children:[d,s.jsx(V,{children:s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(He,{})}),s.jsx(El,{})]})})]})]}),t[6]=u):u=t[6],u}if(n){let c,d;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Bt,{}),d=s.jsx(Ht,{}),t[7]=c,t[8]=d):(c=t[7],d=t[8]);let u;t[9]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(V,{children:s.jsx("div",{className:"flex justify-center",children:s.jsx(Be,{})})}),t[9]=u):u=t[9];let f;t[10]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(V,{children:s.jsx(ht,{})}),t[10]=f):f=t[10];let h;return t[11]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsxs(Re,{className:"px-2 pb-3 gap-1",children:[c,d,s.jsxs(ie,{children:[u,f,s.jsx(V,{children:s.jsx(He,{})})]})]}),t[11]=h):h=t[11],h}let i,r;t[12]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Bt,{}),r=s.jsx(Ht,{}),t[12]=i,t[13]=r):(i=t[12],r=t[13]);let o;t[14]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(V,{children:s.jsx(Be,{variant:"full"})}),t[14]=o):o=t[14];let a;t[15]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(V,{children:s.jsx(ht,{})}),t[15]=a):a=t[15];let m;return t[16]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsxs(Re,{className:"px-2 pb-3 gap-0.5",children:[i,r,s.jsxs(ie,{className:"gap-0.5",children:[o,a,s.jsx(V,{children:s.jsx(He,{})})]})]}),t[16]=m):m=t[16],m}function Pl(){const t=A.c(8),e=de(),{org:n}=Z(),{setOpenMobile:l}=pe();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(ie,{children:s.jsx(V,{children:s.jsx(He,{})})})}),t[0]=i):i=t[0];let r;t[1]!==e||t[2]!==n.slug||t[3]!==l?(r=()=>{e({to:"/$org/settings",params:{org:n.slug}}),l(!1)},t[1]=e,t[2]=n.slug,t[3]=l,t[4]=r):r=t[4];let o;t[5]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(it,{className:"size-4"}),t[5]=o):o=t[5];let a;return t[6]!==r?(a=s.jsx(Re,{className:"px-2 pb-3",children:s.jsxs("div",{className:"flex items-center gap-1",children:[i,s.jsx(ve,{"aria-label":"Settings",onClick:r,children:o})]})}),t[6]=r,t[7]=a):a=t[7],a}function Wt(t){const e=A.c(15),{className:n,wrapperClassName:l,children:i}=t,[r,o]=F.useState(!1);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=b=>{b&&o(b.scrollHeight>b.clientHeight+1)},e[0]=a):a=e[0];const m=a;let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=b=>{const j=b.currentTarget;o(j.scrollHeight-j.scrollTop>j.clientHeight+1)},e[1]=c):c=e[1];const d=c;let u;e[2]!==l?(u=D("relative",l),e[2]=l,e[3]=u):u=e[3];let f;e[4]!==i||e[5]!==n?(f=s.jsx("div",{ref:m,onScroll:d,className:n,children:i}),e[4]=i,e[5]=n,e[6]=f):f=e[6];const h=r?"opacity-100":"opacity-0";let x;e[7]!==h?(x=D("pointer-events-none absolute right-0 bottom-0 left-0 h-10 bg-gradient-to-t from-sidebar to-transparent transition-opacity duration-150",h),e[7]=h,e[8]=x):x=e[8];let g;e[9]!==x?(g=s.jsx("div",{"aria-hidden":!0,className:x}),e[9]=x,e[10]=g):g=e[10];let p;return e[11]!==u||e[12]!==f||e[13]!==g?(p=s.jsxs("div",{className:u,children:[f,g]}),e[11]=u,e[12]=f,e[13]=g,e[14]=p):p=e[14],p}function Fl(t){const e=A.c(8),{virtualMcpId:n,size:l,showAutomationBadge:i}=t,r=l===void 0?"sm":l;let o;e[0]!==r||e[1]!==n?(o=n?s.jsx(Rl,{virtualMcpId:n,size:r}):s.jsx(je,{icon:null,name:"?",size:r}),e[0]=r,e[1]=n,e[2]=o):o=e[2];let a;e[3]!==i?(a=i&&s.jsx("span",{"aria-label":"Automation-triggered",className:"absolute -bottom-0.5 -right-0.5 flex size-4 items-center justify-center rounded-full bg-blue-500 border border-blue-600 text-white",children:s.jsx(_s,{size:10,className:"text-white"})}),e[3]=i,e[4]=a):a=e[4];let m;return e[5]!==o||e[6]!==a?(m=s.jsxs("div",{className:"relative shrink-0",children:[o,a]}),e[5]=o,e[6]=a,e[7]=m):m=e[7],m}function Rl(t){const e=A.c(6),{virtualMcpId:n,size:l}=t,i=It(n);if(!i){let a;return e[0]!==l?(a=s.jsx(je,{icon:null,name:"?",size:l}),e[0]=l,e[1]=a):a=e[1],a}const r=i.icon??null;let o;return e[2]!==i.title||e[3]!==l||e[4]!==r?(o=s.jsx(je,{icon:r,name:i.title,size:l}),e[2]=i.title,e[3]=l,e[4]=r,e[5]=o):o=e[5],o}function qt(t){const e=A.c(36),{open:n,onOpenChange:l}=t,[i,r]=F.useState(""),{org:o}=Z(),{setTaskId:a}=zt(),m=Ss();let c,d,u;e[0]!==o.id||e[1]!==i?(u=i.trim(),d=nn,c=es.globalSearch(o.id,u),e[0]=o.id,e[1]=i,e[2]=c,e[3]=d,e[4]=u):(c=e[2],d=e[3],u=e[4]);const f=n&&u.length>0;let h;e[5]!==m||e[6]!==u?(h=async()=>await m.call("GLOBAL_SEARCH",{query:u,limit:20}),e[5]=m,e[6]=u,e[7]=h):h=e[7];let x;e[8]!==c||e[9]!==f||e[10]!==h?(x={queryKey:c,enabled:f,queryFn:h,staleTime:1e4},e[8]=c,e[9]=f,e[10]=h,e[11]=x):x=e[11];const{data:g,isFetching:p}=d(x);let b;e[12]!==g?.items?(b=g?.items??[],e[12]=g?.items,e[13]=b):b=e[13];const j=b;let y;e[14]!==l?(y=z=>{z||r(""),l(z)},e[14]=l,e[15]=y):y=e[15];const v=y;let C;e[16]!==v||e[17]!==a?(C=z=>{v(!1),a(z.id,z.virtual_mcp_id??void 0)},e[16]=v,e[17]=a,e[18]=C):C=e[18];const N=C;let _;e[19]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsxs(_n,{className:"sr-only",children:[s.jsx(is,{children:"Search"}),s.jsx(Nn,{children:"Search across your organization's resources."})]}),e[19]=_):_=e[19];let S;e[20]!==i?(S=s.jsx($i,{value:i,onValueChange:r,placeholder:"Search..."}),e[20]=i,e[21]=S):S=e[21];let k;e[22]!==N||e[23]!==p||e[24]!==j||e[25]!==u?(k=u?p&&j.length===0?s.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"Searching…"}):j.length===0?s.jsx(Ai,{children:"No results."}):j.map(z=>z.type==="thread"?s.jsxs(zi,{value:`thread:${z.id}:${z.title}`,onSelect:()=>N(z),className:"gap-2.5",children:[s.jsx(Fl,{virtualMcpId:z.virtual_mcp_id,size:"xs"}),s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx("div",{className:"text-sm text-foreground truncate",children:z.title||"Untitled chat"})}),s.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:new Date(z.updated_at).toLocaleDateString("en-US",{month:"short",day:"numeric"})})]},`thread:${z.id}`):null):s.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"Start typing to search."}),e[22]=N,e[23]=p,e[24]=j,e[25]=u,e[26]=k):k=e[26];let I;e[27]!==k?(I=s.jsx(Ti,{children:k}),e[27]=k,e[28]=I):I=e[28];let $;e[29]!==S||e[30]!==I?($=s.jsxs(Cn,{className:"overflow-hidden p-0",closeButtonClassName:"hidden",children:[_,s.jsxs(Oi,{shouldFilter:!1,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:[S,I]})]}),e[29]=S,e[30]=I,e[31]=$):$=e[31];let w;return e[32]!==v||e[33]!==n||e[34]!==$?(w=s.jsx(ls,{open:n,onOpenChange:v,children:$}),e[32]=v,e[33]=n,e[34]=$,e[35]=w):w=e[35],w}function Ll(t){return t==="ephemeral"||t.startsWith("thread:")}function Ts(t){const e=A.c(40),{task:n,isActive:l,onClick:i,onArchive:r,showAutomationBadge:o,showAgentIcon:a,hideStatusIdle:m,indented:c}=t,d=Di(n.status),u=d.icon,f=n.metadata?.kind==="tool_call_run",h=It(f?void 0:n.virtual_mcp_id);let x;e[0]!==h?(x=hi(h),e[0]=h,e[1]=x):x=e[1];const g=x;Pi(6e4);const p=o||!!n.trigger_id,b=n.id,j="button",y=0;let v;e[2]!==i?(v=H=>{H.target===H.currentTarget&&(H.key==="Enter"||H.key===" ")&&(H.preventDefault(),i())},e[2]=i,e[3]=v):v=e[3];const C=c?"-ml-4 pl-6":"pl-[7px]",N=l?"bg-accent text-accent-foreground":"hover:bg-accent/60";let _;e[4]!==C||e[5]!==N?(_=D("group/row flex items-center gap-2 py-1.5 rounded-md cursor-pointer transition-colors",C,"focus-visible:outline-none focus-visible:inset-ring-2 focus-visible:inset-ring-ring/50",N),e[4]=C,e[5]=N,e[6]=_):_=e[6];let S;e[7]!==f||e[8]!==a||e[9]!==h?.icon||e[10]!==h?.title?(S=a&&!f&&s.jsx(je,{icon:h?.icon??null,name:h?.title??"?",size:"2xs"}),e[7]=f,e[8]=a,e[9]=h?.icon,e[10]=h?.title,e[11]=S):S=e[11];let k;e[12]!==p?(k=p&&s.jsx(_s,{size:12,"aria-label":"Automation-triggered",className:"shrink-0 text-blue-500"}),e[12]=p,e[13]=k):k=e[13];const I=n.title||"Untitled task";let $;e[14]!==I?($=s.jsx("div",{className:"text-sm text-foreground truncate",children:I}),e[14]=I,e[15]=$):$=e[15];let w;e[16]!==k||e[17]!==$?(w=s.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[k,$]}),e[16]=k,e[17]=$,e[18]=w):w=e[18];let z;e[19]!==g||e[20]!==l||e[21]!==n.branch||e[22]!==n.updated_at?(z=n.updated_at&&s.jsxs("div",{className:D("flex items-center gap-1 text-[11px] min-w-0",l?"text-accent-foreground/70":"text-muted-foreground/60"),children:[n.branch&&!Ll(n.branch)?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"truncate font-mono",children:n.branch}),s.jsx("span",{className:"shrink-0",children:"·"})]}):g?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"truncate",children:[g.owner,"/",g.name]}),s.jsx("span",{className:"shrink-0",children:"·"})]}):null,s.jsx("span",{className:"shrink-0",children:Ri(new Date(n.updated_at))})]}),e[19]=g,e[20]=l,e[21]=n.branch,e[22]=n.updated_at,e[23]=z):z=e[23];let M;e[24]!==w||e[25]!==z?(M=s.jsxs("div",{className:"flex-1 min-w-0",children:[w,z]}),e[24]=w,e[25]=z,e[26]=M):M=e[26];const P="shrink-0 grid [grid-template-areas:'slot'] items-center justify-items-center",U=!m&&s.jsx("span",{className:D("[grid-area:slot] flex size-8 items-center justify-center pointer-events-none transition-opacity",r&&"group-hover/row:opacity-0"),"aria-label":d.label,children:s.jsx(u,{size:14,className:D(d.iconClassName,n.status==="in_progress"&&"animate-spin")})});let R;e[27]!==r?(R=r&&s.jsxs(xe,{children:[s.jsx(fe,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":"Archive task",onClick:H=>{H.stopPropagation(),r()},className:"[grid-area:slot] opacity-0 pointer-events-none group-hover/row:opacity-100 group-hover/row:pointer-events-auto focus-visible:opacity-100 focus-visible:pointer-events-auto transition-opacity flex size-8 items-center justify-center rounded-md text-muted-foreground hover:text-foreground hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:s.jsx(ln,{size:14})})}),s.jsx(he,{side:"right",children:"Archive"})]}),e[27]=r,e[28]=R):R=e[28];let E;e[29]!==U||e[30]!==R?(E=s.jsxs("div",{className:P,children:[U,R]}),e[29]=U,e[30]=R,e[31]=E):E=e[31];let O;return e[32]!==i||e[33]!==M||e[34]!==E||e[35]!==v||e[36]!==_||e[37]!==S||e[38]!==n.id?(O=s.jsxs("div",{"data-task-id":b,role:j,tabIndex:y,onClick:i,onKeyDown:v,className:_,children:[S,M,E]}),e[32]=i,e[33]=M,e[34]=E,e[35]=v,e[36]=_,e[37]=S,e[38]=n.id,e[39]=O):O=e[39],O}const Vt=["requires_action","in_progress","failed","expired","completed"];function Ul(t){const e=new Map(Vt.map(n=>[n,[]]));for(const n of t){const l=n.status??"completed";(e.get(l)??e.get("completed")).push(n)}return Vt.map(n=>({status:n,threads:e.get(n)}))}const Hl="sidebar.group.expanded.";function Bl(t,e){const n=A.c(3),[l,i]=et(`${Hl}${t}`,e);let r;return n[0]!==l||n[1]!==i?(r=[l,i],n[0]=l,n[1]=i,n[2]=r):r=n[2],r}function Os(t){const e=A.c(12),{onClick:n,isFetching:l,indented:i}=t,r=i?"-ml-4 pl-6 pr-2":"px-2";let o;e[0]!==r?(o=D("flex items-center gap-2 py-1.5 rounded-md text-sm text-muted-foreground",r,"hover:bg-accent/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50","transition-colors disabled:cursor-progress disabled:opacity-60"),e[0]=r,e[1]=o):o=e[1];let a;e[2]!==l?(a=l&&s.jsx(ts,{size:14,className:"animate-spin"}),e[2]=l,e[3]=a):a=e[3];const m=l?"Loading…":"Show more";let c;e[4]!==m?(c=s.jsx("span",{children:m}),e[4]=m,e[5]=c):c=e[5];let d;return e[6]!==l||e[7]!==n||e[8]!==o||e[9]!==a||e[10]!==c?(d=s.jsxs("button",{type:"button","aria-label":"Show more tasks",onClick:n,disabled:l,className:o,children:[a,c]}),e[6]=l,e[7]=n,e[8]=o,e[9]=a,e[10]=c,e[11]=d):d=e[11],d}function Gl(t,e,n,l){return[t,e,n,l.type,l.member,l.currentUserId??""].join("|")}function Wl(t){return t.member==="mine"&&!t.currentUserId}const Ms=4;let Xe=0;const yt=[];function ql(){for(;Xe<Ms&&yt.length>0;){const t=yt.shift();t&&t()}}function Es(t){return new Promise((e,n)=>{const l=()=>{Xe++,t().then(e,n).finally(()=>{Xe--,ql()})};Xe<Ms?l():yt.push(l)})}const at=10;function Kt(t,e,n,l,i){const r={hidden:!1};l.member==="mine"&&l.currentUserId&&(r.created_by=l.currentUserId),l.type==="automation"&&(r.has_trigger=!0),l.type==="manual"&&(r.has_trigger=!1);const o={where:r,limit:i,offset:n,orderBy:[{field:["updated_at"],direction:"desc"}]};return o.status=e,o}function Vl(t,e,n,l){let i=0;for(const r of t)Ds(r,e,n,l)&&i++;return i}function xt(t,e,n,l){return Vl(t,e,n,l)}function Kl(t,e){return!!(t>=at||t===0&&e)}function Yt(t,e){return t<e}function Yl(t,e){return e===!1?!1:e===!0?!0:t}function Ds(t,e,n,l){return!(t.hidden||(t.status??"completed")!==n||l.member==="mine"&&l.currentUserId&&t.created_by!==l.currentUserId||l.type==="automation"&&!t.trigger_id||l.type==="manual"&&t.trigger_id)}const Ze=new Map,Ye=new Map;function Xl(t,e){return e?t>=at?!0:null:!1}function Xt(t){return Ze.get(t)}function Ql(t,e){Ze.set(t,e)}function Jl(t,e,n){const l=Ze.get(t);if(l!==void 0){n(l);return}let i=Ye.get(t);i||(i=Es(e).then(r=>(Ze.set(t,r),Ye.delete(t),r)).catch(()=>(Ye.delete(t),Promise.reject(new Error("group probe failed")))),Ye.set(t,i)),i.then(n,()=>n(!1))}function Qt(t){const e=t,n=Array.isArray(e.items)?e.items:[];return{items:n,hasMore:e.hasMore??n.length===at,totalCount:typeof e.totalCount=="number"?e.totalCount:void 0}}function Zl(t,e,n,l,i){let r=0;for(const o of t)e.has(o.id)||Ds(o,n,l,i)&&r++;return r}function er(t,e,n,l){const i=A.c(8),{org:r}=Z(),o=Gl(r.id,t,e,n);let a;i[0]!==n?(a=Wl(n),i[0]=n,i[1]=a):a=i[1];const m=a,[c,d]=F.useState({isFetching:!1,isProbing:!1,identity:o,probeSubscribedIdentity:null,serverHasMore:null});c.identity!==o&&d({isFetching:!1,isProbing:!1,identity:o,probeSubscribedIdentity:null,serverHasMore:null});const u=ni(),{threads:f,hasMore:h}=At(),x=xt(f,t,e,n),g=Kl(x,h),p=Xl(x,h),b=Ss();if(c.identity===o&&c.serverHasMore===null){const _=p??Xt(o);_!==void 0&&d({isFetching:!1,isProbing:!1,identity:o,probeSubscribedIdentity:c.probeSubscribedIdentity,serverHasMore:_})}!m&&c.identity===o&&c.serverHasMore===null&&p===null&&Xt(o)===void 0&&c.probeSubscribedIdentity!==o&&(d(_=>_.identity===o?{..._,isProbing:!0,probeSubscribedIdentity:o}:_),Jl(o,async()=>{const _=Kt(t,e,0,n,1),S=await b.call("COLLECTION_THREADS_LIST",_),{totalCount:k}=Qt(S),I=xt(u.threads.get(),t,e,n);return k===void 0?!1:Yt(I,k)},_=>{d(S=>S.identity!==o?S:{...S,isProbing:!1,serverHasMore:_})}));const y=async function(){if(c.isFetching||c.isProbing||m)return;const S=o;d(k=>k.identity===S?{...k,isFetching:!0}:k);try{const k=xt(f,t,e,n),I=Kt(t,e,k,n,at),$=await Es(()=>b.call("COLLECTION_THREADS_LIST",I)),{items:w,hasMore:z,totalCount:M}=Qt($),P=new Set(f.map(tr)),U=Zl(w,P,t,e,n),R=k;u.mergeThreads(w),d(E=>{if(E.identity!==S)return E;let O;return M!==void 0?O=Yt(R+U,M):O=w.length===0||U===0?!1:z,Ql(S,O),{...E,isFetching:!1,serverHasMore:O}})}catch(k){const I=k,$=I instanceof Error?I.message:String(I);ae.error(`Could not load more tasks: ${$}`),d(w=>w.identity===S?{...w,isFetching:!1}:w)}},v=c.isFetching||c.isProbing,C=!m&&!v&&Yl(g,c.serverHasMore);let N;return i[2]!==v||i[3]!==y||i[4]!==C||i[5]!==c.isProbing||i[6]!==c.serverHasMore?(N={hasMore:C,isFetching:v,isProbing:c.isProbing,serverHasMore:c.serverHasMore,loadMore:y},i[2]=v,i[3]=y,i[4]=C,i[5]=c.isProbing,i[6]=c.serverHasMore,i[7]=N):N=i[7],N}function tr(t){return t.id}function sr(t){const e=A.c(20),{status:n,threads:l,activeTaskId:i,onSelectTask:r,onArchiveTask:o,canArchive:a,filters:m}=t,{isFetching:c,isProbing:d,loadMore:u,hasMore:f,serverHasMore:h}=er("status",n,m),[x,g]=F.useState(!1);!x&&l.length===0&&h===!0&&!c&&!d&&(g(!0),queueMicrotask(()=>{u()}));let p;if(e[0]!==i||e[1]!==a||e[2]!==m||e[3]!==o||e[4]!==r||e[5]!==l){let y;e[7]!==i||e[8]!==a||e[9]!==m||e[10]!==o||e[11]!==r?(y=v=>s.jsx(Ts,{task:v,isActive:i===v.id,onClick:()=>r(v),onArchive:a&&v.created_by===m.currentUserId?()=>o(v):void 0,showAutomationBadge:!!v.trigger_id,showAgentIcon:!0,hideStatusIdle:!0,indented:!0},v.id),e[7]=i,e[8]=a,e[9]=m,e[10]=o,e[11]=r,e[12]=y):y=e[12],p=l.map(y),e[0]=i,e[1]=a,e[2]=m,e[3]=o,e[4]=r,e[5]=l,e[6]=p}else p=e[6];let b;e[13]!==f||e[14]!==c||e[15]!==u?(b=(f||c)&&s.jsx(Os,{onClick:()=>{u()},isFetching:c,indented:!0}),e[13]=f,e[14]=c,e[15]=u,e[16]=b):b=e[16];let j;return e[17]!==p||e[18]!==b?(j=s.jsxs(s.Fragment,{children:[p,b]}),e[17]=p,e[18]=b,e[19]=j):j=e[19],j}function nr(t){const e=A.c(36),{status:n,threads:l,activeTaskId:i,onSelectTask:r,onArchiveTask:o,canArchive:a,filters:m}=t,c=Fi[n],d=c.icon,[u,f]=Bl(`status-${n}`,!1);let h;e[0]!==u||e[1]!==f?(h=function(){f(!u)},e[0]=u,e[1]=f,e[2]=h):h=e[2];const x=h;let g;e[3]!==x?(g=S=>{S.target===S.currentTarget&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),x())},e[3]=x,e[4]=g):g=e[4];let p;e[5]!==d||e[6]!==c.iconClassName?(p=s.jsx("span",{className:"absolute inset-0 flex items-center justify-center transition-opacity group-hover/group:opacity-0",children:s.jsx(d,{size:12,className:c.iconClassName})}),e[5]=d,e[6]=c.iconClassName,e[7]=p):p=e[7];let b;e[8]!==u?(b=s.jsx("span",{className:"absolute inset-0 flex items-center justify-center text-muted-foreground opacity-0 transition-opacity group-hover/group:opacity-100",children:u?s.jsx(kt,{size:14}):s.jsx(Li,{size:14})}),e[8]=u,e[9]=b):b=e[9];let j;e[10]!==p||e[11]!==b?(j=s.jsxs("div",{className:"relative size-5 shrink-0 flex items-center justify-center",children:[p,b]}),e[10]=p,e[11]=b,e[12]=j):j=e[12];let y;e[13]!==c.label?(y=s.jsx("span",{className:"flex-1 truncate",children:c.label}),e[13]=c.label,e[14]=y):y=e[14];let v;e[15]!==l.length?(v=s.jsx("div",{className:"size-5 shrink-0 flex items-center justify-center",children:s.jsx("span",{className:"text-xs text-muted-foreground tabular-nums",children:l.length})}),e[15]=l.length,e[16]=v):v=e[16];let C;e[17]!==u||e[18]!==x||e[19]!==g||e[20]!==j||e[21]!==y||e[22]!==v?(C=s.jsxs("div",{role:"button",tabIndex:0,"aria-expanded":u,onClick:x,onKeyDown:g,className:"group/group flex items-center gap-2 px-2 py-1.5 rounded-md text-sm font-medium text-foreground cursor-pointer hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 transition-colors",children:[j,y,v]}),e[17]=u,e[18]=x,e[19]=g,e[20]=j,e[21]=y,e[22]=v,e[23]=C):C=e[23];let N;e[24]!==i||e[25]!==a||e[26]!==u||e[27]!==m||e[28]!==o||e[29]!==r||e[30]!==n||e[31]!==l?(N=u&&s.jsx("div",{className:"flex flex-col gap-0.5 pb-1 pl-4",children:s.jsx(sr,{status:n,threads:l,activeTaskId:i,onSelectTask:r,onArchiveTask:o,canArchive:a,filters:m})}),e[24]=i,e[25]=a,e[26]=u,e[27]=m,e[28]=o,e[29]=r,e[30]=n,e[31]=l,e[32]=N):N=e[32];let _;return e[33]!==C||e[34]!==N?(_=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[C,N]}),e[33]=C,e[34]=N,e[35]=_):_=e[35],_}function Jt(t){const e=A.c(38),{threads:n,groupBy:l,activeTaskId:i,onSelectTask:r,onArchiveTask:o,filters:a,hasMore:m,isFetchingMore:c,onLoadMore:d,filtersActive:u}=t;if(n.length===0&&!m&&!c){let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(Ei,{className:"size-6 opacity-60"}),e[0]=p):p=e[0];const b=u?"No chats match your filters":"No chats yet";let j;return e[1]!==b?(j=s.jsxs("div",{className:"flex flex-col items-center justify-center gap-2 px-4 py-12 text-center text-muted-foreground",children:[p,s.jsx("p",{className:"text-sm",children:b})]}),e[1]=b,e[2]=j):j=e[2],j}const f=n.length>1||m;if(l==="status"){let p;if(e[3]!==i||e[4]!==f||e[5]!==a||e[6]!==o||e[7]!==r||e[8]!==n){let j;e[10]!==i||e[11]!==f||e[12]!==a||e[13]!==o||e[14]!==r?(j=y=>s.jsx(nr,{status:y.status,threads:y.threads,activeTaskId:i,onSelectTask:r,onArchiveTask:o,canArchive:f,filters:a},y.status),e[10]=i,e[11]=f,e[12]=a,e[13]=o,e[14]=r,e[15]=j):j=e[15],p=Ul(n).map(j),e[3]=i,e[4]=f,e[5]=a,e[6]=o,e[7]=r,e[8]=n,e[9]=p}else p=e[9];let b;return e[16]!==p?(b=s.jsx(s.Fragment,{children:p}),e[16]=p,e[17]=b):b=e[17],b}let h;if(e[18]!==i||e[19]!==f||e[20]!==a||e[21]!==o||e[22]!==r||e[23]!==n){let p;e[25]!==i||e[26]!==f||e[27]!==a||e[28]!==o||e[29]!==r?(p=b=>s.jsx(Ts,{task:b,isActive:i===b.id,onClick:()=>r(b),onArchive:f&&b.created_by===a.currentUserId?()=>o(b):void 0,showAutomationBadge:!!b.trigger_id,showAgentIcon:!0},b.id),e[25]=i,e[26]=f,e[27]=a,e[28]=o,e[29]=r,e[30]=p):p=e[30],h=n.map(p),e[18]=i,e[19]=f,e[20]=a,e[21]=o,e[22]=r,e[23]=n,e[24]=h}else h=e[24];let x;e[31]!==m||e[32]!==c||e[33]!==d?(x=(m||c)&&s.jsx(Os,{onClick:d,isFetching:c}),e[31]=m,e[32]=c,e[33]=d,e[34]=x):x=e[34];let g;return e[35]!==h||e[36]!==x?(g=s.jsxs(s.Fragment,{children:[h,x]}),e[35]=h,e[36]=x,e[37]=g):g=e[37],g}function ir(t,e,n){if(!n)return;const l=t.findIndex(i=>i.id===e);if(l!==-1){for(let i=l+1;i<t.length;i++){const r=t[i];if(r?.created_by===n)return r}for(let i=l-1;i>=0;i--){const r=t[i];if(r?.created_by===n)return r}}}function Zt(t){const e=A.c(17),{label:n,onClick:l,active:i,children:r}=t,[o,a]=F.useState(!1);let m,c,d,u;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>a(!0),c=()=>a(!1),d=()=>a(!0),u=()=>a(!1),e[0]=m,e[1]=c,e[2]=d,e[3]=u):(m=e[0],c=e[1],d=e[2],u=e[3]);const f=i&&"bg-sidebar-accent text-foreground";let h;e[4]!==f?(h=D("md:size-[34px] rounded-lg",f),e[4]=f,e[5]=h):h=e[5];let x;e[6]!==r||e[7]!==n||e[8]!==l||e[9]!==h?(x=s.jsx(fe,{asChild:!0,children:s.jsx(ve,{"aria-label":n,onClick:l,onPointerEnter:m,onPointerLeave:c,onFocus:d,onBlur:u,className:h,children:r})}),e[6]=r,e[7]=n,e[8]=l,e[9]=h,e[10]=x):x=e[10];let g;e[11]!==n?(g=s.jsx(he,{side:"bottom",children:n}),e[11]=n,e[12]=g):g=e[12];let p;return e[13]!==o||e[14]!==x||e[15]!==g?(p=s.jsxs(xe,{open:o,children:[x,g]}),e[13]=o,e[14]=x,e[15]=g,e[16]=p):p=e[16],p}function pt(t){const e=A.c(13),{label:n,value:l,onChange:i,options:r}=t;let o;e[0]!==n?(o=s.jsx("span",{className:"text-sm text-muted-foreground",children:n}),e[0]=n,e[1]=o):o=e[1];let a;e[2]!==i?(a=u=>u&&i(u),e[2]=i,e[3]=a):a=e[3];let m;e[4]!==r?(m=r.map(lr),e[4]=r,e[5]=m):m=e[5];let c;e[6]!==a||e[7]!==m||e[8]!==l?(c=s.jsx(Ii,{type:"single",size:"sm",value:l,onValueChange:a,className:"gap-0.5 rounded-lg border border-border bg-muted/50 p-0.5",children:m}),e[6]=a,e[7]=m,e[8]=l,e[9]=c):c=e[9];let d;return e[10]!==o||e[11]!==c?(d=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[o,c]}),e[10]=o,e[11]=c,e[12]=d):d=e[12],d}function lr(t){return s.jsxs(ki,{value:t.value,className:"h-6 gap-1.5 rounded-md border border-transparent px-2 text-xs font-medium text-muted-foreground hover:bg-transparent data-[state=on]:border-border data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-sm",children:[t.icon,t.label]},t.value)}function Ps({onNavigate:t}={}){const{data:e}=re.useSession(),n=e?.user?.id,{org:l}=Z(),i=rs({connectionId:as,orgId:l.id,orgSlug:l.slug}),r=Qe(l.id).id,o=ms(),{threads:a,hasMore:m,isFetchingMore:c,fetchNextPage:d}=At(),u=a.filter(T=>!T.hidden),{hide:f}=gs(),h=de(),{setTaskId:x,createNewTask:g}=zt(),p=_t({strict:!1}),b=tt({strict:!1}),j=p.taskId??null,y=b.virtualmcpid??a.find(T=>T.id===j)?.virtual_mcp_id??null,v=()=>{t?.()},C=[...u].sort((T,q)=>(q.updated_at??"").localeCompare(T.updated_at??"")),[N,_]=F.useState("all"),[S,k]=F.useState("flat"),[I,$]=et("sidebar-threads-scope-all",!1),[w,z]=F.useState(!1),[M,P]=F.useState(!1),U={type:N,member:"mine",currentUserId:n??null},R=T=>n?T.filter(q=>q.created_by===n):[],E=T=>N==="automation"?T.filter(q=>!!q.trigger_id):N==="manual"?T.filter(q=>!q.trigger_id):T,O=R(C),H=E(O),G=E(C),L=I?G:H,B=T=>{if(n&&T.created_by&&T.created_by!==n)return;const q=T.id===j;if(f(T.id),ri(T.id),!q)return;const Q=ir(L,T.id,n);v(),Q?x(Q.id,Q.virtual_mcp_id):h({to:"/$org",params:{org:l.slug}})},Y=T=>{v(),x(T.id,T.virtual_mcp_id)},W=async T=>{try{const q=await i.callTool({name:"COLLECTION_THREAD_MESSAGES_LIST",arguments:{thread_id:T,limit:1,offset:0}});return((q.structuredContent??q).items?.length??0)===0}catch{return!1}},me=async()=>{const T=y??r;ne("sidebar_new_thread_clicked",{virtual_mcp_id:T});const q=O.find(Q=>Q.virtual_mcp_id===T&&Q.title==="New chat");if(q&&await W(q.id)){v(),x(q.id,T);return}v(),g(T)},{state:ye,isMobile:X,toggleSidebar:ee}=pe();if(ye==="collapsed"&&!X){const T=Qe(l.id),q=new Map((o??[]).map(K=>[K.id,K])),Q=K=>(K?q.get(K):void 0)??(K===r?T:void 0);return s.jsxs("div",{className:"flex flex-col min-h-0 flex-1 -mt-1 w-[calc(var(--sidebar-width-icon)-1rem)]",children:[s.jsx("div",{className:"flex h-12 shrink-0 items-center justify-center",children:s.jsx($s,{orgParam:l.slug,side:"right",align:"start",trigger:s.jsx(J,{tooltip:l.name,children:s.jsx(rt,{org:l,size:"sm"})})})}),s.jsxs(ie,{className:"mt-2 min-h-0 gap-1.5 overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[s.jsx(V,{children:s.jsx(J,{"aria-label":"Toggle sidebar",tooltip:"Toggle sidebar",onClick:ee,children:s.jsx(ds,{size:16})})}),s.jsx(V,{children:s.jsx(J,{tooltip:"New chat",onClick:()=>{me()},children:s.jsx(Mt,{size:16})})}),L.map(K=>{const be=Q(K.virtual_mcp_id);return s.jsx(V,{children:s.jsx(J,{tooltip:K.title||"New chat",isActive:K.id===j,onClick:()=>Y(K),children:s.jsx(je,{icon:be?.icon??null,name:be?.title??"Agent",size:"xs"})})},K.id)})]})]})}const te=S!=="flat"||N!=="all"||I===!0,oe=s.jsxs(nt,{children:[s.jsxs(xe,{children:[s.jsx(fe,{asChild:!0,children:s.jsx(Fe,{asChild:!0,children:s.jsxs(ve,{"aria-label":"Filter chats",active:te,className:"md:size-[34px] rounded-lg",children:[s.jsx(wi,{size:16}),te&&s.jsx("span",{className:"absolute right-1 top-1 size-1.5 rounded-full bg-primary ring-2 ring-sidebar"})]})})}),s.jsx(he,{side:"bottom",children:"Filter chats"})]}),s.jsxs(st,{align:"start",className:"w-64 flex flex-col gap-3 p-3",children:[s.jsx(pt,{label:"View",value:S,onChange:T=>{ne("tasks_panel_group_by_changed",{to_value:T}),k(T)},options:[{value:"flat",label:"List",icon:s.jsx(Mn,{size:13})},{value:"status",label:"Status",icon:s.jsx(En,{size:13})}]}),s.jsx(pt,{label:"Type",value:N,onChange:T=>{ne("tasks_panel_filter_changed",{to_value:T}),_(T)},options:[{value:"all",label:"All"},{value:"manual",label:"Chats"},{value:"automation",label:"Auto"}]}),s.jsx(pt,{label:"Scope",value:I?"team":"mine",onChange:T=>$(T==="team"),options:[{value:"mine",label:"Mine"},{value:"team",label:"Team"}]})]})]}),le=T=>s.jsx(bt,{delayDuration:300,children:s.jsxs("div",{className:D("shrink-0 flex items-center justify-between",T?"h-10":"h-10 md:h-[34px] mb-2"),children:[s.jsxs("div",{className:"flex items-center gap-0.5",children:[!T&&s.jsx(Ns,{className:"md:size-[34px] rounded-lg"}),oe]}),s.jsxs("div",{className:"flex items-center gap-0.5",children:[s.jsx(Zt,{label:"Search chats",onClick:()=>{ne("tasks_panel_search_opened"),P(!0),z(!0)},children:s.jsx(On,{size:16})}),s.jsx(Zt,{label:"New chat",onClick:()=>{me()},children:s.jsx(Mt,{size:16})})]})]})});return X?s.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[le(!0),s.jsx(Wt,{wrapperClassName:"flex-1 min-h-0",className:"flex flex-col gap-0.5 overflow-y-auto overscroll-contain px-1 h-full",children:s.jsx(Jt,{threads:L,groupBy:S,activeTaskId:j,onSelectTask:Y,onArchiveTask:B,filters:U,hasMore:m,isFetchingMore:c,onLoadMore:()=>{d()},filtersActive:te})}),M&&s.jsx(qt,{open:w,onOpenChange:z})]}):s.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[le(!1),s.jsx("div",{className:"flex-1 min-h-0 flex flex-col gap-0.5 -mr-2 pr-2",children:s.jsx(Wt,{wrapperClassName:"flex-1 min-h-0",className:"flex flex-col gap-0.5 overflow-y-auto overscroll-contain h-full",children:s.jsx(Jt,{threads:L,groupBy:S,activeTaskId:j,onSelectTask:Y,onArchiveTask:B,filters:U,hasMore:m,isFetchingMore:c,onLoadMore:()=>{d()},filtersActive:te})})}),M&&s.jsx(qt,{open:w,onOpenChange:z})]})}const rr=5,or=[{nameWidth:"w-24",taskRows:2},{nameWidth:"w-28",taskRows:0},{nameWidth:"w-20",taskRows:1},{nameWidth:"w-32",taskRows:0},{nameWidth:"w-24",taskRows:0}];function Fs(){const t=A.c(3),{state:e}=pe();if(e==="collapsed"){let i;return t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex flex-col gap-1.5",children:Array.from({length:rr}).map(dr)}),t[0]=i):i=t[0],i}let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs("div",{className:"shrink-0 px-1 h-10 md:h-7 mb-2 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(ce,{className:"size-6 rounded-md"}),s.jsx(ce,{className:"size-6 rounded-md"}),s.jsx(ce,{className:"size-6 rounded-md"})]}),s.jsx(ce,{className:"h-6 w-20 rounded-md"})]}),t[1]=n):n=t[1];let l;return t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[n,s.jsx("div",{className:"flex flex-col gap-0.5",children:or.map(ar)})]}),t[2]=l):l=t[2],l}function ar(t,e){return s.jsxs("div",{className:"flex flex-col gap-0.5",children:[s.jsxs("div",{className:"flex items-center gap-2 px-2 py-1.5",children:[s.jsx(ce,{className:"size-5 rounded-full shrink-0"}),s.jsx(ce,{className:D("h-3",t.nameWidth,"rounded-sm")})]}),t.taskRows>0&&s.jsx("div",{className:"flex flex-col gap-0.5 pb-1 pl-4",children:Array.from({length:t.taskRows}).map(cr)})]},e)}function cr(t,e){return s.jsx("div",{className:"flex items-center gap-2 px-2 py-1.5",children:s.jsx(ce,{className:"h-3 flex-1 rounded-sm"})},e)}function dr(t,e){return s.jsx(ce,{className:"size-10 rounded-lg mx-auto"},e)}function mr(){const t=A.c(2);if(lt()){let l;return t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(vt,{showName:!0}),t[0]=l):l=t[0],l}let n;return t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs(s.Fragment,{children:[s.jsx(vt,{}),s.jsx(ot,{})]}),t[1]=n):n=t[1],n}function ur(){const t=A.c(5),e=Cs();let n,l;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Dl,{}),l=s.jsx(mr,{}),t[0]=n,t[1]=l):(n=t[0],l=t[1]);let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(St,{children:s.jsx(F.Suspense,{fallback:s.jsx(Fs,{}),children:s.jsx(Ps,{})})}),t[2]=i):i=t[2];let r;return t[3]!==e?(r=s.jsx(bs,{children:s.jsx(Is,{sections:e,footer:n,header:l,additionalContent:i})}),t[3]=e,t[4]=r):r=t[4],r}function fr(t){const e=A.c(8),{onClose:n}=t,l=Cs();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Pl,{}),e[0]=i):i=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Fs,{}),e[1]=r):r=e[1];let o;e[2]!==n?(o=s.jsx(St,{children:s.jsx(F.Suspense,{fallback:r,children:s.jsx(Ps,{onNavigate:n})})}),e[2]=n,e[3]=o):o=e[3];let a;return e[4]!==n||e[5]!==l||e[6]!==o?(a=s.jsx(bs,{children:s.jsx(Nl,{sections:l,onClose:n,footer:i,additionalContent:o})}),e[4]=n,e[5]=l,e[6]=o,e[7]=a):a=e[7],a}const hr="sidebar.open";function xr(){const t=A.c(1),{state:e}=pe(),n=lt();if(e!=="collapsed"||n)return null;let l;return t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(ot,{}),t[0]=l):l=t[0],l}function pr(){const t=A.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(on,{}),t[0]=e):e=t[0],e}function Ea(){const t=A.c(43),e=wt(),n=lt();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},t[0]=l):l=t[0];const{connect:i,siteUrl:r}=tt(l),o=i==="1",[a,m]=et(hr,!1),{width:c,wrapperRef:d,onStartResize:u,resetWidth:f}=Yi(),h=!e;let x,g;t[1]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsxs(se.LeftColumn,{children:[s.jsx(xr,{}),s.jsx(se.TogglesSlot,{})]}),g=s.jsx(se.CenterSlot,{}),t[1]=x,t[2]=g):(x=t[1],g=t[2]);let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs(se.Header,{children:[x,g,s.jsxs(se.RightColumn,{children:[s.jsx("div",{className:"min-w-0 flex-1 overflow-x-auto [scrollbar-width:none] flex justify-end items-center gap-0.5",children:s.jsx(se.TabsSlot,{})}),s.jsx(se.RightSlot,{})]})]}),t[3]=p):p=t[3];const b=p;let j;t[4]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(Ns,{}),t[4]=j):j=t[4];let y;t[5]!==n?(y=!n&&s.jsx("div",{className:"flex min-w-0 flex-1 items-center",children:s.jsx(ot,{})}),t[5]=n,t[6]=y):y=t[6];let v,C,N,_,S;t[7]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(Be,{}),N=s.jsx(se.TogglesSlot,{}),_=s.jsx(se.TabsSlot,{className:"shrink-0"}),S=s.jsx(se.CenterSlot,{}),v=s.jsx(se.RightSlot,{}),t[7]=v,t[8]=C,t[9]=N,t[10]=_,t[11]=S):(v=t[7],C=t[8],N=t[9],_=t[10],S=t[11]);let k;t[12]!==y?(k=s.jsx(se.Header,{className:"grid-cols-1 px-1",children:s.jsxs("div",{className:"flex w-full min-w-0 items-center gap-1",children:[j,y,C,N,_,S,v]})}),t[12]=y,t[13]=k):k=t[13];const I=k;let $;t[14]===Symbol.for("react.memo_cache_sentinel")?($={background:"transparent",containerType:"inline-size"},t[14]=$):$=t[14];let w;t[15]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(dn,{className:"flex flex-col min-h-0",style:$,children:s.jsx("div",{className:"flex flex-col h-full min-h-0",children:s.jsx("div",{className:"relative flex-1 min-h-0 flex flex-row",children:s.jsx(F.Suspense,{fallback:s.jsx(pr,{}),children:s.jsx(rn,{})})})})}),t[15]=w):w=t[15];const z=w,M=!h&&(e?I:b),P=`${c}px`;let U;t[16]!==P?(U={"--sidebar-width":P,"--sidebar-width-icon":"3.125rem"},t[16]=P,t[17]=U):U=t[17];const R=U;let E;t[18]!==e||t[19]!==u||t[20]!==f?(E=!e&&s.jsxs(s.Fragment,{children:[s.jsx(ur,{}),s.jsx(qi,{onPointerDown:u,onDoubleClick:f})]}),t[18]=e,t[19]=u,t[20]=f,t[21]=E):E=t[21];let O;t[22]!==h?(O=h?s.jsxs("div",{className:"flex flex-col flex-1 min-w-0 min-h-0 h-full",children:[b,z]}):z,t[22]=h,t[23]=O):O=t[23];let H;t[24]!==R||t[25]!==E||t[26]!==O||t[27]!==d?(H=s.jsxs(mn,{ref:d,className:"flex-1 bg-sidebar relative min-h-0",style:R,children:[E,O]}),t[24]=R,t[25]=E,t[26]=O,t[27]=d,t[28]=H):H=t[28];let G;t[29]!==e?(G=e&&s.jsx(Mi,{renderSidebar:gr}),t[29]=e,t[30]=G):G=t[30];let L;t[31]!==r||t[32]!==o?(L=o&&s.jsx(Ui,{siteUrl:r}),t[31]=r,t[32]=o,t[33]=L):L=t[33];let B;t[34]!==M||t[35]!==H||t[36]!==G||t[37]!==L?(B=s.jsx(ei,{children:s.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[M,H,G,L]})}),t[34]=M,t[35]=H,t[36]=G,t[37]=L,t[38]=B):B=t[38];let Y;return t[39]!==m||t[40]!==a||t[41]!==B?(Y=s.jsx(ii,{children:s.jsx(se.Provider,{children:s.jsx(un,{open:a,onOpenChange:m,children:B})})}),t[39]=m,t[40]=a,t[41]=B,t[42]=Y):Y=t[42],Y}function gr(t){const{onClose:e}=t;return s.jsx("div",{className:"flex h-full",children:s.jsx("div",{className:"w-full bg-sidebar flex flex-col overflow-y-auto group/sidebar","data-state":"expanded",children:s.jsx(fr,{onClose:e})})})}export{Ea as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-PCoZIk-M.js","assets/index-C5JCmVQ0.js","assets/index-BO2t38sV.css","assets/ArrowUp-ChoUWc1b.js","assets/chat-context-BhPkOl45.js","assets/autosend-BX8nQnW3.js","assets/hooks-DsQUp7L9.js","assets/use-mcp-client-DlCO79GA.js","assets/constants-D_FQAPnt.js","assets/auth-DIzgjm9h.js","assets/decopilot-sse-pool-B1izZBf2.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/studio-tools--pllMpfK.js","assets/use-virtual-mcp-KZlYJNMn.js","assets/use-collections-Kwxr6RPv.js","assets/use-ai-providers-CQmOOELp.js","assets/use-decopilot-events-Cww7ZCTK.js","assets/tab-id-BijBBRwE.js","assets/use-organization-settings-BFGZ9YuD.js","assets/automation-runs-_xFJy_Wv.js","assets/select-D59HzWyb.js","assets/tooltip-DjWNMg5T.js","assets/Check-BbAbdPfp.js","assets/ChevronDown-BsEi-r9q.js","assets/ChevronUp-BWoVqFrM.js","assets/useInfiniteQuery-D-yVKxn2.js","assets/use-infinite-scroll-WwPPe2Wp.js","assets/use-connection-DhRKlWkl.js","assets/card-1ZIM8JYb.js","assets/sidebar-i7yNFNs9.js","assets/LayoutLeft-C6uN3ryJ.js","assets/use-mobile-vXwkCjTm.js","assets/X-CNdIeej8.js","assets/table-B8kPpHAC.js","assets/empty-state-D0Yjh42T.js","assets/use-members-CP1GrgsV.js","assets/use-org-auth-client-BeUafwOm.js","assets/use-clock-tick-BNpEZMto.js","assets/AlertCircle-CX23NCuO.js","assets/CheckCircle-Day5nLHt.js","assets/Circle-Bj_xS3WU.js","assets/agent-icon-DMtjBPX3.js","assets/UserPlus01-13KHecKW.js","assets/Tool01-BT4kICfE.js","assets/Settings02-DAAnVZLO.js","assets/Tool02-vM8N2pYB.js","assets/XCircle-C9sRiEE0.js","assets/ArrowUpRight-Bq-zX9ha.js","assets/TrendUp01-CBDxjtVg.js","assets/ZapSquare-BV8kr37_.js","assets/Users03-ZlQye2vY.js","assets/ChevronRight-B9mybD1s.js","assets/Stars02-B9xmjTkg.js","assets/Eye-CyP9kYwn.js","assets/ZoomOut-7nLppLEs.js","assets/DotsVertical-BQRa2EB9.js","assets/Globe01-CC0A4U7g.js","assets/FilterLines-C5i4i3WB.js","assets/Flag01-C7YxvVFh.js","assets/Star01-Bb61R21H.js","assets/Globe04-BV89vsfi.js","assets/SwitchHorizontal01-C90B2Auk.js","assets/HardDrive-CA9cG4ej.js","assets/Key01-Y2tTMtA8.js","assets/LinkExternal01-CbW1jJhi.js","assets/List-MOccGrJp.js","assets/Monitor01-DBUBWT-e.js","assets/Sun-wOtTFTOd.js","assets/Package-BL3B6ONo.js","assets/Palette-B0oAitOJ.js","assets/Play-zjQOd6w0.js","assets/Plus-DATZ4-ND.js","assets/SearchLg-B4W4xrFH.js","assets/SearchMd-CKL74aOj.js","assets/Shield01-IlYcL8Fi.js","assets/Stars01-Bnuoinbt.js","assets/Trash01-CrwbV8c_.js","assets/Upload01-Lp0wJMYr.js","assets/User01-CQV6kRtR.js","assets/Users01-CDDfUziK.js","assets/XClose-4pjmwtT4.js","assets/Zap-DHGChPV2.js","assets/use-automations-kY9mTa0N.js","assets/useSuspenseInfiniteQuery-QFUkmQtZ.js","assets/badge-BR8ZoQPH.js","assets/checkbox-YuHG4ViR.js","assets/command-DRUw9pTQ.js","assets/index-BOaCGG-5.js","assets/dialog-DfnhzCwv.js","assets/popover-DL95paTt.js","assets/avatar-CfHetrJ0.js","assets/format-time-BnbuEtat.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/use-copy-C62zVzDi.js","assets/file-type-icon-CyQSc8WD.js","assets/monaco-editor-DYdw6m6P.js","assets/index-B8Idfh3P.js","assets/index-emjsrsD0.js","assets/shell-layout-TAILJ-da.js","assets/alert-dialog-IVNf28U9.js","assets/required-auth-layout-BLRuxjNn.js","assets/use-org-sso-CpksLDM-.js","assets/integration-icon-D74EpYgv.js","assets/use-navigate-to-agent-DZwula5s.js","assets/reusable-new-chat-CouMjkYR.js","assets/AreaChart-CRvFGO5O.js","assets/form-ZPjO3One.js","assets/label-CjR-YPrA.js","assets/input-DWv95vY4.js","assets/drawer-Cu1H6Zpl.js","assets/collection-search-D4kzf4BZ.js","assets/tabs-C19FaLXY.js","assets/toggle-group-SYBG9bZR.js","assets/use-deco-credits-rxapxW2c.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-BddaDWk3.js","assets/use-registry-connections-ml5ez91l.js","assets/extract-connection-data-DkYKg47U.js","assets/collection-tabs-CwblhJGY.js","assets/textarea-DGICe7Jx.js","assets/connection-form-helpers-B3t0vd0x.js","assets/authenticate-and-persist-oauth-Bb5P11Gd.js","assets/mcp-oauth-CDqgI2Xn.js","assets/connect-desktop-dialog-BSEnA0YE.js","assets/select-model-D8LB7zlx.js","assets/skeleton-D824Y8b-.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-CHSsdIIo.js","assets/dropdown-menu-BlorfjU6.js","assets/index-BeTttHS9.js","assets/toolbar-V6M48IQV.js","assets/use-debounced-value-DEfVi-aN.js","assets/question-004-sINsf4GQ.js","assets/use-status-sounds-DUjqcw9j.js","assets/use-mcp-tools-PUeX7iQD.js","assets/use-capability-BtQYj-6N.js","assets/tools-list-CvZ2H4zV.js","assets/switch-DLw5svpB.js","assets/use-debounced-autosave-Cumlh74L.js","assets/index-1xWIMGUU.js","assets/search-input-B9lRxCGI.js","assets/github-repo-picker-DneVvY3I.js","assets/github-installations-ChFezl8I.js","assets/use-secrets-DXp4vVpG.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/companions-core-CrqiPrVn.js","assets/toolbar-icon-button-DapYdi-A.js","assets/calendar-D9BWcxij.js","assets/use-file-configs-BaRnwcsF.js","assets/automation-list-row-BrrHJBg_.js","assets/index-DDGTF8rc.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as $,l as D,j as s,r as A,C as At,n as Qt,m as Yt,d as _t,K as $t,B as ue,aX as us,i as fs}from"./index-C5JCmVQ0.js";import{g as ae}from"./get-initials-D-f_fDFw.js";import{A as re}from"./avatar-CfHetrJ0.js";import{d as Et,i as xs,t as ps,e as gs,f as mt,a as Xe,s as hs,b as Ht,g as bs,c as js}from"./UserPlus01-13KHecKW.js";import{i as Ns}from"./List-MOccGrJp.js";import{s as Ot}from"./Plus-DATZ4-ND.js";import{e as ys}from"./constants-D_FQAPnt.js";import{u as Vt}from"./use-members-CP1GrgsV.js";import{u as Bt}from"./studio-tools--pllMpfK.js";import{t as vs,S as Je}from"./decopilot-sse-pool-B1izZBf2.js";import{u as Ss}from"./use-decopilot-events-Cww7ZCTK.js";import{a as Cs}from"./format-time-BnbuEtat.js";import{i as Xt}from"./AlertCircle-CX23NCuO.js";import{i as Jt}from"./CheckCircle-Day5nLHt.js";import{i as _s}from"./Circle-Bj_xS3WU.js";import{s as ws,a as Ds}from"./Eye-CyP9kYwn.js";import{a as ks,d as Is,e as Ts}from"./dialog-DfnhzCwv.js";import{a as ut,c as ft,d as He,D as xt}from"./dropdown-menu-BlorfjU6.js";import{P as wt,a as Dt,b as kt}from"./popover-DL95paTt.js";import{b as Wt,C as Zt,a as me,e as pt,d as es,c as ts}from"./command-DRUw9pTQ.js";import{C as zs}from"./calendar-D9BWcxij.js";import{u as As}from"./use-copy-C62zVzDi.js";import{i as $s}from"./Check-BbAbdPfp.js";import{i as Es}from"./ChevronRight-B9mybD1s.js";import{n as Os}from"./LinkExternal01-CbW1jJhi.js";import{s as It}from"./User01-CQV6kRtR.js";import{i as Pt}from"./X-CNdIeej8.js";import{g as Bs,b as Fs,e as Rs,f as Ps,a as Ms,D as Ls}from"./drawer-Cu1H6Zpl.js";import{t as Ft}from"./ChevronDown-BsEi-r9q.js";import{i as ss}from"./FilterLines-C5i4i3WB.js";import{s as Us}from"./Flag01-C7YxvVFh.js";import{u as qs}from"./shell-layout-TAILJ-da.js";function ce(t){const e=$.c(8),{size:l,className:a}=t,n=l===void 0?16:l;let r;e[0]!==n?(r={width:n,height:n},e[0]=n,e[1]=r):r=e[1];let i;e[2]!==a?(i=D("shrink-0 rounded-full object-cover",a),e[2]=a,e[3]=i):i=e[3];let o;return e[4]!==n||e[5]!==r||e[6]!==i?(o=s.jsx("img",{src:ys,alt:"Super Agent",width:n,height:n,style:r,className:i}),e[4]=n,e[5]=r,e[6]=i,e[7]=o):o=e[7],o}const Mt=()=>0;function Gs(t){const{orgSlug:e,enabled:l=!0,onUpdate:a}=t,n=A.useRef(a);n.current=a;const r=A.useRef(null),i=A.useRef(l),o=A.useRef(e);(!r.current||i.current!==l||o.current!==e)&&(i.current=l,o.current=e,r.current=f=>{if(!l||!e)return()=>{};const m=x=>{let c;try{c=JSON.parse(x.data)}catch{return}c.data&&n.current(c.data),f()};return vs.subscribe(e,m)}),A.useSyncExternalStore(r.current,Mt,Mt)}function Ks(){const t=$.c(25),{org:e,locator:l}=At(),a=Bt(),n=Qt();let r;t[0]!==l?(r=$t.taskBoardItems(l),t[0]=l,t[1]=r):r=t[1];const i=r;let o;t[2]!==a?(o=async()=>(await a.call("TASK_BOARD_ITEM_LIST",{})).items,t[2]=a,t[3]=o):o=t[3];let d;t[4]!==i||t[5]!==o?(d={queryKey:i,queryFn:o},t[4]=i,t[5]=o,t[6]=d):d=t[6];const f=Yt(d);let m;t[7]!==n||t[8]!==i?(m=h=>{n.setQueryData(i,b=>{const j=b??[],N=h;return j.some(y=>y.id===N.id)?j.map(y=>y.id===N.id?N:y):[N,...j]})},t[7]=n,t[8]=i,t[9]=m):m=t[9];let x;t[10]!==e.slug||t[11]!==m?(x={orgSlug:e.slug,onUpdate:m},t[10]=e.slug,t[11]=m,t[12]=x):x=t[12],Gs(x);let c;t[13]!==n||t[14]!==i?(c=h=>{const b=h.subject,j=h.data.status;n.setQueryData(i,N=>N?.map(y=>y.threads.some(v=>v.threadId===b)?{...y,threads:y.threads.map(v=>v.threadId===b?{...v,status:j}:v)}:y))},t[13]=n,t[14]=i,t[15]=c):c=t[15];let u;t[16]!==e.slug||t[17]!==c?(u={orgSlug:e.slug,onTaskStatus:c},t[16]=e.slug,t[17]=c,t[18]=u):u=t[18],Ss(u);let p;t[19]!==f.data?(p=f.data??[],t[19]=f.data,t[20]=p):p=t[20];let g;return t[21]!==f.error||t[22]!==f.isLoading||t[23]!==p?(g={items:p,isLoading:f.isLoading,error:f.error},t[21]=f.error,t[22]=f.isLoading,t[23]=p,t[24]=g):g=t[24],g}function Qs(){const t=$.c(30),{locator:e}=At(),l=Bt(),a=Qt();let n;t[0]!==e?(n=$t.taskBoardItems(e),t[0]=e,t[1]=n):n=t[1];const r=n;let i;t[2]!==a||t[3]!==r?(i=()=>a.invalidateQueries({queryKey:r}),t[2]=a,t[3]=r,t[4]=i):i=t[4];const o=i;let d;t[5]!==l?(d=y=>l.call("TASK_BOARD_ITEM_CREATE",y),t[5]=l,t[6]=d):d=t[6];let f;t[7]!==o||t[8]!==d?(f={mutationFn:d,onSuccess:o},t[7]=o,t[8]=d,t[9]=f):f=t[9];const m=_t(f);let x;t[10]!==l?(x=y=>l.call("TASK_BOARD_ITEM_UPDATE",y),t[10]=l,t[11]=x):x=t[11];let c,u;t[12]!==a||t[13]!==r?(c=async y=>{await a.cancelQueries({queryKey:r});const v=a.getQueryData(r);return a.setQueryData(r,I=>I?.map(C=>C.id===y.id?{...C,...y}:C)),{previous:v}},u=(y,v,I)=>{I?.previous&&a.setQueryData(r,I.previous)},t[12]=a,t[13]=r,t[14]=c,t[15]=u):(c=t[14],u=t[15]);let p;t[16]!==o||t[17]!==x||t[18]!==c||t[19]!==u?(p={mutationFn:x,onMutate:c,onError:u,onSettled:o},t[16]=o,t[17]=x,t[18]=c,t[19]=u,t[20]=p):p=t[20];const g=_t(p);let h;t[21]!==l?(h=y=>l.call("TASK_BOARD_ITEM_DELETE",{id:y}),t[21]=l,t[22]=h):h=t[22];let b;t[23]!==o||t[24]!==h?(b={mutationFn:h,onSuccess:o},t[23]=o,t[24]=h,t[25]=b):b=t[25];const j=_t(b);let N;return t[26]!==m||t[27]!==j||t[28]!==g?(N={create:m,update:g,remove:j},t[26]=m,t[27]=j,t[28]=g,t[29]=N):N=t[29],N}function Tt(t){return t.threads.some(e=>e.status==="requires_action")}function ls(t){return t.threads[0]}const ns=["triage","todo","in_progress","in_review","done"],ne={triage:{label:"Backlog",icon:Xt,iconClassName:"text-muted-foreground"},todo:{label:"To Do",icon:_s,iconClassName:"text-muted-foreground"},in_progress:{label:"In Progress",icon:Et,iconClassName:"text-blue-500"},in_review:{label:"In Review",icon:ws,iconClassName:"text-amber-500"},done:{label:"Done",icon:Jt,iconClassName:"text-green-600"}},as=["none","low","medium","high","urgent"],ie={none:{label:"No priority",flagClassName:"text-muted-foreground",dotClassName:"border border-muted-foreground/50"},low:{label:"Low",flagClassName:"text-muted-foreground",dotClassName:"bg-muted-foreground/40"},medium:{label:"Medium",flagClassName:"text-blue-500",dotClassName:"bg-blue-500"},high:{label:"High",flagClassName:"text-orange-500",dotClassName:"bg-orange-500"},urgent:{label:"Urgent",flagClassName:"text-red-500",dotClassName:"bg-red-500"}};function Ys(t){const e=$.c(10),{locator:l}=At(),a=Bt();let n;e[0]!==t||e[1]!==l?(n=$t.taskBoardItemPrs(l,t??""),e[0]=t,e[1]=l,e[2]=n):n=e[2];const r=!!t;let i;e[3]!==t||e[4]!==a?(i=async()=>(await a.call("TASK_BOARD_ITEM_PRS_GET",{taskBoardItemId:t})).prs,e[3]=t,e[4]=a,e[5]=i):i=e[5];let o;return e[6]!==n||e[7]!==r||e[8]!==i?(o={queryKey:n,enabled:r,queryFn:i},e[6]=n,e[7]=r,e[8]=i,e[9]=o):o=e[9],Yt(o)}function Hs(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59).toISOString()}function Lt(t){if(!t)return null;const e=new Date(t);return Number.isNaN(e.getTime())?null:e}const Vs=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"}),Ve="inline-flex h-9 items-center gap-2 rounded-lg border border-border px-3 text-sm font-medium text-foreground transition-colors hover:bg-muted sm:border-transparent",Xs={failed:{label:"Error",className:"text-red-600",icon:bs},requires_action:{label:"Needs input",className:"text-amber-600",icon:Ht},in_progress:{label:"Running",className:"text-blue-600",icon:Et,spin:!0},completed:{label:"Completed",className:"text-green-600",icon:Jt},expired:{label:"Expired",className:"text-muted-foreground",icon:Xt}};function Js(t){const e=$.c(164),{open:l,onClose:a,item:n,defaultStatus:r,onSubmit:i,onDelete:o,onOpenThread:d,isSaving:f}=t,{data:m}=Vt();let x;e[0]!==m?.data?.members?(x=m?.data?.members??[],e[0]=m?.data?.members,e[1]=x):x=e[1];const c=x,{handleCopy:u,copied:p}=As(),[g,h]=A.useState(n?.title??""),[b,j]=A.useState(n?.description??""),[N,y]=A.useState(n?.status??r??"triage"),[v,I]=A.useState(n?.priority??"medium"),[C,O]=A.useState(n?.assigneeId??null),q=n?.dueDate;let Q;e[2]!==q?(Q=Lt(q),e[2]=q,e[3]=Q):Q=e[3];const[T,F]=A.useState(Q),[U,M]=A.useState(!1),[R,L]=A.useState(!1);let z;e[4]!==r||e[5]!==n?.assigneeId||e[6]!==n?.description||e[7]!==n?.dueDate||e[8]!==n?.priority||e[9]!==n?.status||e[10]!==n?.title?(z=()=>{h(n?.title??""),j(n?.description??""),y(n?.status??r??"triage"),I(n?.priority??"medium"),O(n?.assigneeId??null),F(Lt(n?.dueDate))},e[4]=r,e[5]=n?.assigneeId,e[6]=n?.description,e[7]=n?.dueDate,e[8]=n?.priority,e[9]=n?.status,e[10]=n?.title,e[11]=z):z=e[11];const G=z;let K;e[12]!==a||e[13]!==G?(K=()=>{a(),G()},e[12]=a,e[13]=G,e[14]=K):K=e[14];const _=K;let k;e[15]!==C||e[16]!==b||e[17]!==T||e[18]!==i||e[19]!==v||e[20]!==N||e[21]!==g?(k=()=>{const S=g.trim();S&&i({title:S,description:b.trim()||null,status:N,priority:v,assigneeId:C,dueDate:T?Hs(T):null})},e[15]=C,e[16]=b,e[17]=T,e[18]=i,e[19]=v,e[20]=N,e[21]=g,e[22]=k):k=e[22];const H=k,B=C===Je;let te;if(e[23]!==C||e[24]!==c){let S;e[26]!==C?(S=V=>V.userId===C,e[26]=C,e[27]=S):S=e[27],te=c.find(S),e[23]=C,e[24]=c,e[25]=te}else te=e[25];const P=te;let X;e[28]!==n||e[29]!==c?(X=n?.assignedBy?c.find(S=>S.userId===n.assignedBy):void 0,e[28]=n,e[29]=c,e[30]=X):X=e[30];const E=X,de=ne[N].icon;let le;e[31]!==n?(le=n?ls(n):void 0,e[31]=n,e[32]=le):le=e[32];const J=le;let se;e[33]!==_?(se=S=>!S&&_(),e[33]=_,e[34]=se):se=e[34];const oe=n?"Edit task":"New task";let Y;e[35]!==oe?(Y=s.jsx(ks,{className:"sr-only",children:oe}),e[35]=oe,e[36]=Y):Y=e[36];let W;e[37]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(Pt,{size:16}),e[37]=W):W=e[37];let Z;e[38]!==_?(Z=s.jsx("button",{type:"button","aria-label":"Close",onClick:_,className:"absolute right-2.5 top-2.5 z-10 flex size-10 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:W}),e[38]=_,e[39]=Z):Z=e[39];let ee;e[40]===Symbol.for("react.memo_cache_sentinel")?(ee=S=>h(S.target.value),e[40]=ee):ee=e[40];let w;e[41]!==g?(w=s.jsx("input",{value:g,onChange:ee,placeholder:"Task title...",autoFocus:!0,className:"w-full border-0 bg-transparent text-xl font-medium text-foreground outline-none placeholder:text-foreground/30"}),e[41]=g,e[42]=w):w=e[42];let fe;e[43]===Symbol.for("react.memo_cache_sentinel")?(fe=S=>j(S.target.value),e[43]=fe):fe=e[43];let xe;e[44]!==b?(xe=s.jsx("textarea",{value:b,onChange:fe,placeholder:"Describe a task for an agent...",className:"min-h-[96px] w-full flex-1 resize-none border-0 bg-transparent text-[15px] leading-relaxed text-foreground outline-none placeholder:text-muted-foreground/50 sm:min-h-[120px]"}),e[44]=b,e[45]=xe):xe=e[45];let pe;e[46]!==p||e[47]!==b||e[48]!==u?(pe=b&&s.jsx(ue,{type:"button",variant:"ghost",size:"icon","aria-label":"Copy description",className:"absolute right-0 top-0 size-7 text-muted-foreground opacity-0 transition-opacity hover:text-foreground group-hover:opacity-100",onClick:()=>u(b),children:p?s.jsx($s,{size:14}):s.jsx(Ds,{size:14})}),e[46]=p,e[47]=b,e[48]=u,e[49]=pe):pe=e[49];let ge;e[50]!==xe||e[51]!==pe?(ge=s.jsxs("div",{className:"group relative flex flex-1 flex-col",children:[xe,pe]}),e[50]=xe,e[51]=pe,e[52]=ge):ge=e[52];let he;e[53]!==E||e[54]!==P||e[55]!==d||e[56]!==J?(he=J&&s.jsx(Ws,{thread:J,startedBy:E??P,onOpen:d}),e[53]=E,e[54]=P,e[55]=d,e[56]=J,e[57]=he):he=e[57];let be;e[58]!==n?(be=n?.id&&s.jsx(tl,{itemId:n.id}),e[58]=n,e[59]=be):be=e[59];let je;e[60]!==w||e[61]!==ge||e[62]!==he||e[63]!==be?(je=s.jsxs("div",{className:"flex min-w-0 flex-col gap-6 p-6 sm:flex-1 sm:overflow-y-auto sm:p-8",children:[w,ge,he,be]}),e[60]=w,e[61]=ge,e[62]=he,e[63]=be,e[64]=je):je=e[64];let We;e[65]===Symbol.for("react.memo_cache_sentinel")?(We=s.jsx("span",{className:"hidden px-3 text-sm text-muted-foreground sm:block",children:"Properties"}),e[65]=We):We=e[65];const bt=ne[N];let Ne;e[66]!==de||e[67]!==bt.iconClassName?(Ne=s.jsx(de,{size:16,className:bt.iconClassName}),e[66]=de,e[67]=bt.iconClassName,e[68]=Ne):Ne=e[68];const jt=ne[N];let ye;e[69]!==Ne||e[70]!==jt.label?(ye=s.jsx(ut,{asChild:!0,children:s.jsxs("button",{type:"button",className:Ve,children:[Ne,jt.label]})}),e[69]=Ne,e[70]=jt.label,e[71]=ye):ye=e[71];let Ze;e[72]===Symbol.for("react.memo_cache_sentinel")?(Ze=s.jsx(ft,{align:"start",className:"w-44",children:ns.map(S=>{const V=ne[S].icon;return s.jsxs(He,{onSelect:()=>y(S),className:"gap-2",children:[s.jsx(V,{size:16,className:ne[S].iconClassName}),ne[S].label]},S)})}),e[72]=Ze):Ze=e[72];let ve;e[73]!==ye?(ve=s.jsxs(xt,{children:[ye,Ze]}),e[73]=ye,e[74]=ve):ve=e[74];const Nt=v==="none"&&"text-muted-foreground";let Se;e[75]!==Nt?(Se=D(Ve,Nt),e[75]=Nt,e[76]=Se):Se=e[76];let Ce;e[77]!==v?(Ce=v==="none"?s.jsxs(s.Fragment,{children:[s.jsx(xs,{size:16}),"Set priority"]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:D("size-2 rounded-full",ie[v].dotClassName)}),ie[v].label]}),e[77]=v,e[78]=Ce):Ce=e[78];let _e;e[79]!==Se||e[80]!==Ce?(_e=s.jsx(ut,{asChild:!0,children:s.jsx("button",{type:"button",className:Se,children:Ce})}),e[79]=Se,e[80]=Ce,e[81]=_e):_e=e[81];let et;e[82]===Symbol.for("react.memo_cache_sentinel")?(et=s.jsx(ft,{align:"start",className:"w-40",children:as.map(S=>s.jsxs(He,{onSelect:()=>I(S),children:[s.jsx("span",{className:D("size-2 rounded-full",ie[S].dotClassName)}),ie[S].label]},S))}),e[82]=et):et=e[82];let we;e[83]!==_e?(we=s.jsxs(xt,{children:[_e,et]}),e[83]=_e,e[84]=we):we=e[84];const yt=!C&&"text-muted-foreground";let De;e[85]!==yt?(De=D(Ve,yt),e[85]=yt,e[86]=De):De=e[86];let ke;e[87]!==E||e[88]!==P||e[89]!==B?(ke=B&&E?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"hidden items-center gap-2 sm:flex",children:[s.jsx(re,{url:E.user?.image??void 0,fallback:ae(E.user?.name),shape:"circle",size:"2xs"}),s.jsx("span",{className:"truncate",children:E.user?.name??"Super Agent"})]}),s.jsxs("span",{className:"flex items-center gap-2 sm:hidden",children:[s.jsxs("span",{className:"inline-flex items-center",children:[s.jsx(re,{url:E.user?.image??void 0,fallback:ae(E.user?.name),shape:"circle",size:"2xs",className:"-mr-1.5 ring-2 ring-background"}),s.jsx(ce,{size:16,className:"ring-2 ring-background"})]}),"Super Agent"]})]}):B?s.jsxs(s.Fragment,{children:[s.jsx(ce,{size:16}),"Super Agent"]}):P?s.jsxs(s.Fragment,{children:[s.jsx(re,{url:P.user?.image??void 0,fallback:ae(P.user?.name),shape:"circle",size:"2xs"}),s.jsx("span",{className:"truncate",children:P.user?.name??"Unassigned"})]}):s.jsxs(s.Fragment,{children:[s.jsx(ps,{size:16,className:"text-muted-foreground"}),"Assign"]}),e[87]=E,e[88]=P,e[89]=B,e[90]=ke):ke=e[90];let Ie;e[91]!==De||e[92]!==ke?(Ie=s.jsx(wt,{asChild:!0,children:s.jsx("button",{type:"button",className:De,children:ke})}),e[91]=De,e[92]=ke,e[93]=Ie):Ie=e[93];let tt;e[94]===Symbol.for("react.memo_cache_sentinel")?(tt=s.jsx(Wt,{placeholder:"Assign to…",className:"h-9"}),e[94]=tt):tt=e[94];let st;e[95]===Symbol.for("react.memo_cache_sentinel")?(st=s.jsx(Zt,{children:"No members found."}),e[95]=st):st=e[95];let lt;e[96]===Symbol.for("react.memo_cache_sentinel")?(lt=()=>{O(Je),L(!1)},e[96]=lt):lt=e[96];let nt;e[97]===Symbol.for("react.memo_cache_sentinel")?(nt=s.jsxs(me,{value:"Super Agent",onSelect:lt,className:"gap-2",children:[s.jsx(ce,{size:16}),s.jsx("span",{className:"truncate",children:"Super Agent"})]}),e[97]=nt):nt=e[97];let at;e[98]===Symbol.for("react.memo_cache_sentinel")?(at=()=>{O(null),L(!1)},e[98]=at):at=e[98];let rt;e[99]===Symbol.for("react.memo_cache_sentinel")?(rt=s.jsxs(pt,{children:[nt,s.jsxs(me,{value:"Unassigned",onSelect:at,className:"gap-2",children:[s.jsx(It,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"truncate",children:"Unassigned"})]})]}),e[99]=rt):rt=e[99];let Te;if(e[100]!==c){let S;e[102]===Symbol.for("react.memo_cache_sentinel")?(S=V=>s.jsxs(me,{value:V.user?.name??V.userId,onSelect:()=>{O(V.userId),L(!1)},className:"gap-2",children:[s.jsx(re,{url:V.user?.image??void 0,fallback:ae(V.user?.name),shape:"circle",size:"2xs"}),s.jsx("span",{className:"truncate",children:V.user?.name??V.userId})]},V.userId),e[102]=S):S=e[102],Te=c.map(S),e[100]=c,e[101]=Te}else Te=e[101];let ze;e[103]!==Te?(ze=s.jsx(Dt,{align:"start",className:"w-56 p-0",children:s.jsxs(es,{children:[tt,s.jsxs(ts,{children:[st,rt,s.jsx(pt,{heading:"Members",children:Te})]})]})}),e[103]=Te,e[104]=ze):ze=e[104];let Ae;e[105]!==R||e[106]!==Ie||e[107]!==ze?(Ae=s.jsxs(kt,{open:R,onOpenChange:L,children:[Ie,ze]}),e[105]=R,e[106]=Ie,e[107]=ze,e[108]=Ae):Ae=e[108];let $e;e[109]!==E||e[110]!==B?($e=B&&E&&s.jsxs("div",{className:"relative mt-1.5 hidden items-center pl-5 sm:flex",children:[s.jsx("span",{className:"absolute -top-1.5 left-5 h-[calc(50%+0.375rem)] w-2.5 rounded-bl-md border-b border-l border-border"}),s.jsxs("span",{className:D(Ve,"pointer-events-none"),children:[s.jsx(ce,{size:16}),"Super Agent"]})]}),e[109]=E,e[110]=B,e[111]=$e):$e=e[111];let Ee;e[112]!==Ae||e[113]!==$e?(Ee=s.jsxs("div",{className:"flex flex-col",children:[Ae,$e]}),e[112]=Ae,e[113]=$e,e[114]=Ee):Ee=e[114];const vt=!T&&"text-muted-foreground";let Oe;e[115]!==vt?(Oe=D(Ve,vt),e[115]=vt,e[116]=Oe):Oe=e[116];let it;e[117]===Symbol.for("react.memo_cache_sentinel")?(it=s.jsx(Xe,{size:16,className:"text-muted-foreground"}),e[117]=it):it=e[117];let Be;e[118]!==T?(Be=T?Vs.format(T):"Due date",e[118]=T,e[119]=Be):Be=e[119];let Fe;e[120]!==T?(Fe=T&&s.jsx("span",{role:"button",tabIndex:0,"aria-label":"Clear due date",className:"-mr-1 ml-0.5 flex size-4 items-center justify-center rounded-sm text-muted-foreground hover:bg-muted hover:text-foreground",onClick:S=>{S.stopPropagation(),F(null)},onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),S.stopPropagation(),F(null))},children:s.jsx(Pt,{size:12})}),e[120]=T,e[121]=Fe):Fe=e[121];let Re;e[122]!==Oe||e[123]!==Be||e[124]!==Fe?(Re=s.jsx(wt,{asChild:!0,children:s.jsxs("button",{type:"button",className:Oe,children:[it,Be,Fe]})}),e[122]=Oe,e[123]=Be,e[124]=Fe,e[125]=Re):Re=e[125];const St=T??void 0;let ot;e[126]===Symbol.for("react.memo_cache_sentinel")?(ot=S=>{F(S??null),S&&M(!1)},e[126]=ot):ot=e[126];let Pe;e[127]!==St?(Pe=s.jsx(Dt,{className:"w-auto p-0",align:"start",children:s.jsx(zs,{mode:"single",selected:St,onSelect:ot,initialFocus:!0})}),e[127]=St,e[128]=Pe):Pe=e[128];let Me;e[129]!==U||e[130]!==Re||e[131]!==Pe?(Me=s.jsxs(kt,{open:U,onOpenChange:M,children:[Re,Pe]}),e[129]=U,e[130]=Re,e[131]=Pe,e[132]=Me):Me=e[132];let Le;e[133]!==ve||e[134]!==we||e[135]!==Ee||e[136]!==Me?(Le=s.jsxs("div",{className:"flex w-full shrink-0 flex-col gap-4 border-t border-border p-6 sm:w-[220px] sm:border-t-0 sm:border-l sm:px-6 sm:py-10",children:[We,s.jsxs("div",{className:"flex flex-wrap gap-2 sm:flex-col",children:[ve,we,Ee,Me]})]}),e[133]=ve,e[134]=we,e[135]=Ee,e[136]=Me,e[137]=Le):Le=e[137];let Ue;e[138]!==je||e[139]!==Le?(Ue=s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto sm:flex-row sm:overflow-hidden",children:[je,Le]}),e[138]=je,e[139]=Le,e[140]=Ue):Ue=e[140];let qe;e[141]!==n||e[142]!==o?(qe=n&&o?s.jsx(ue,{variant:"ghost",size:"icon","aria-label":"Delete task",className:"size-10 text-muted-foreground hover:text-destructive",onClick:o,children:s.jsx(hs,{size:16})}):s.jsx("span",{}),e[141]=n,e[142]=o,e[143]=qe):qe=e[143];let Ge;e[144]!==f||e[145]!==g?(Ge=!g.trim()||f,e[144]=f,e[145]=g,e[146]=Ge):Ge=e[146];let ct;e[147]===Symbol.for("react.memo_cache_sentinel")?(ct=s.jsx(Ot,{size:16}),e[147]=ct):ct=e[147];const Ct=n?"Save":"Create task";let Ke;e[148]!==H||e[149]!==Ge||e[150]!==Ct?(Ke=s.jsxs(ue,{size:"sm",disabled:Ge,onClick:H,children:[ct,Ct]}),e[148]=H,e[149]=Ge,e[150]=Ct,e[151]=Ke):Ke=e[151];let Qe;e[152]!==qe||e[153]!==Ke?(Qe=s.jsxs("div",{className:"flex h-16 items-center justify-between border-t border-border px-4",children:[qe,Ke]}),e[152]=qe,e[153]=Ke,e[154]=Qe):Qe=e[154];let Ye;e[155]!==Y||e[156]!==Z||e[157]!==Ue||e[158]!==Qe?(Ye=s.jsxs(Is,{className:"flex max-h-[90vh] flex-col gap-0 overflow-hidden rounded-2xl p-0 sm:h-[85vh] sm:max-h-[640px] sm:max-w-[850px]",closeButtonClassName:"hidden",children:[Y,Z,Ue,Qe]}),e[155]=Y,e[156]=Z,e[157]=Ue,e[158]=Qe,e[159]=Ye):Ye=e[159];let dt;return e[160]!==l||e[161]!==se||e[162]!==Ye?(dt=s.jsx(Ts,{open:l,onOpenChange:se,children:Ye}),e[160]=l,e[161]=se,e[162]=Ye,e[163]=dt):dt=e[163],dt}function Ws(t){const e=$.c(14),{thread:l,startedBy:a,onOpen:n}=t,r=l.status?Xs[l.status]:null,i=l.lastMessage??l.title;let o,d;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(ce,{size:16}),d=s.jsx("span",{className:"text-sm text-foreground",children:"Super Agent"}),e[0]=o,e[1]=d):(o=e[0],d=e[1]);let f;e[2]!==a?(f=a&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-sm text-muted-foreground/50",children:"started by"}),s.jsx(re,{url:a.user?.image??void 0,fallback:ae(a.user?.name),shape:"circle",size:"2xs"}),s.jsx("span",{className:"truncate text-sm text-foreground",children:a.user?.name??"someone"})]}),e[2]=a,e[3]=f):f=e[3];let m;e[4]!==f?(m=s.jsxs("div",{className:"flex items-center gap-2 px-4 py-3.5",children:[o,d,f]}),e[4]=f,e[5]=m):m=e[5];let x;e[6]!==i||e[7]!==n||e[8]!==r||e[9]!==l?(x=r&&s.jsxs("button",{type:"button",disabled:!n,onClick:()=>n?.(l),className:"flex items-center gap-2 border-t border-border px-4 py-2 text-left transition-colors enabled:hover:bg-muted disabled:cursor-default",children:[s.jsxs("span",{className:D("flex items-center gap-1.5",r.className),children:[s.jsx(r.icon,{size:16,className:D(r.spin&&"animate-spin")}),s.jsx("span",{className:"text-sm",children:r.label})]}),i&&s.jsx("span",{className:"min-w-0 flex-1 truncate text-sm text-foreground",children:i}),n&&s.jsx(Es,{size:16,className:"ml-auto shrink-0 text-muted-foreground"})]}),e[6]=i,e[7]=n,e[8]=r,e[9]=l,e[10]=x):x=e[10];let c;return e[11]!==m||e[12]!==x?(c=s.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border border-border",children:[m,x]}),e[11]=m,e[12]=x,e[13]=c):c=e[13],c}function Zs(t){return t.merged?{label:"Merged",className:"text-purple-600",icon:gs}:t.state==="closed"?{label:"Closed",className:"text-red-600",icon:mt}:t.draft?{label:"Draft",className:"text-muted-foreground",icon:mt}:{label:"Open",className:"text-green-600",icon:mt}}function el(t){const e=$.c(38),{pr:l}=t;let a,n,r,i,o,d,f,m;if(e[0]!==l){n=Zs(l);let v;e[9]!==l.body?(v=l.body?.trim(),e[9]=l.body,e[10]=v):v=e[10],a=v,o=l.url,d="_blank",f="noreferrer",m="flex flex-col gap-1 border-t border-border px-4 py-2 transition-colors hover:bg-muted",i="flex items-center gap-2",r=D("flex items-center gap-1.5",n.className),e[0]=l,e[1]=a,e[2]=n,e[3]=r,e[4]=i,e[5]=o,e[6]=d,e[7]=f,e[8]=m}else a=e[1],n=e[2],r=e[3],i=e[4],o=e[5],d=e[6],f=e[7],m=e[8];let x;e[11]!==n.icon?(x=s.jsx(n.icon,{size:16}),e[11]=n.icon,e[12]=x):x=e[12];let c;e[13]!==n.label?(c=s.jsx("span",{className:"text-sm",children:n.label}),e[13]=n.label,e[14]=c):c=e[14];let u;e[15]!==r||e[16]!==x||e[17]!==c?(u=s.jsxs("span",{className:r,children:[x,c]}),e[15]=r,e[16]=x,e[17]=c,e[18]=u):u=e[18];const p=l.title??`${l.repoOwner}/${l.repoName}`;let g;e[19]!==p?(g=s.jsx("span",{className:"min-w-0 flex-1 truncate text-sm text-foreground",children:p}),e[19]=p,e[20]=g):g=e[20];let h;e[21]!==l.number?(h=s.jsxs("span",{className:"shrink-0 text-sm text-muted-foreground",children:["#",l.number]}),e[21]=l.number,e[22]=h):h=e[22];let b;e[23]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Os,{size:16,className:"shrink-0 text-muted-foreground"}),e[23]=b):b=e[23];let j;e[24]!==g||e[25]!==h||e[26]!==i||e[27]!==u?(j=s.jsxs("span",{className:i,children:[u,g,h,b]}),e[24]=g,e[25]=h,e[26]=i,e[27]=u,e[28]=j):j=e[28];let N;e[29]!==a?(N=a?s.jsx("span",{className:"line-clamp-3 whitespace-pre-line text-xs text-muted-foreground",children:a}):null,e[29]=a,e[30]=N):N=e[30];let y;return e[31]!==j||e[32]!==N||e[33]!==o||e[34]!==d||e[35]!==f||e[36]!==m?(y=s.jsxs("a",{href:o,target:d,rel:f,className:m,children:[j,N]}),e[31]=j,e[32]=N,e[33]=o,e[34]=d,e[35]=f,e[36]=m,e[37]=y):y=e[37],y}function tl(t){const e=$.c(5),{itemId:l}=t,{data:a,isLoading:n}=Ys(l);if(!n&&(!a||a.length===0))return null;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs("div",{className:"flex items-center gap-2 px-4 py-3.5",children:[s.jsx(mt,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"text-sm text-foreground",children:"Pull requests"})]}),e[0]=r):r=e[0];let i;e[1]!==a?(i=a?a.map(sl):s.jsxs("div",{className:"flex items-center gap-2 border-t border-border px-4 py-2 text-sm text-muted-foreground",children:[s.jsx(Et,{size:16,className:"animate-spin"}),s.jsx("span",{children:"Loading…"})]}),e[1]=a,e[2]=i):i=e[2];let o;return e[3]!==i?(o=s.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border border-border",children:[r,i]}),e[3]=i,e[4]=o):o=e[4],o}function sl(t){return s.jsx(el,{pr:t},t.url)}const zt="__unassigned__",gt={assignee:null,priority:null,due:null};function ll(t){return t.assignee!==null||t.priority!==null||t.due!==null}function nl(t){return(t.assignee!==null?1:0)+(t.priority!==null?1:0)+(t.due!==null?1:0)}const al=864e5;function rl(t,e){const l=new Date(t),a=new Date(e);return l.getFullYear()===a.getFullYear()&&l.getMonth()===a.getMonth()&&l.getDate()===a.getDate()}function il(t,e){if(e.assignee!==null){if(e.assignee===zt){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 l=new Date(t.dueDate).getTime(),a=Date.now();if(e.due==="overdue"&&l>=a||e.due==="today"&&!rl(l,a)||e.due==="week"&&(l<a||l>a+7*al))return!1}return!0}const Ut=[{value:"overdue",label:"Overdue"},{value:"today",label:"Due today"},{value:"week",label:"Due this week"},{value:"none",label:"No due date"}];function ht(t,e=!1){return D("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 ol(t){const e=$.c(62),{value:l,members:a,onChange:n,block:r}=t,[i,o]=A.useState(!1);let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(It,{size:14,className:"shrink-0"}),e[0]=d):d=e[0];let f=d,m="Assignee";if(l===zt)m="Unassigned";else if(l===Je){let _;e[1]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(ce,{size:14}),e[1]=_):_=e[1],f=_,m="Super Agent"}else if(l){let _,k,H,B;if(e[2]!==a||e[3]!==l){let P;e[8]!==l?(P=X=>X.userId===l,e[8]=l,e[9]=P):P=e[9],k=a.find(P),_=re,H=k?.user?.image??void 0,B=ae(k?.user?.name),e[2]=a,e[3]=l,e[4]=_,e[5]=k,e[6]=H,e[7]=B}else _=e[4],k=e[5],H=e[6],B=e[7];let te;e[10]!==_||e[11]!==H||e[12]!==B?(te=s.jsx(_,{url:H,fallback:B,shape:"circle",size:"2xs"}),e[10]=_,e[11]=H,e[12]=B,e[13]=te):te=e[13],f=te,m=k?.user?.name??"Member"}let x;e[14]!==n?(x=_=>{n(_),o(!1)},e[14]=n,e[15]=x):x=e[15];const c=x,u=l!==null;let p;e[16]!==r||e[17]!==u?(p=ht(u,r),e[16]=r,e[17]=u,e[18]=p):p=e[18];const g=p,h=r&&"ml-auto";let b;e[19]!==h?(b=D("shrink-0 opacity-60",h),e[19]=h,e[20]=b):b=e[20];const j=b;let N;e[21]!==m?(N=s.jsx("span",{className:"max-w-[10rem] truncate",children:m}),e[21]=m,e[22]=N):N=e[22];let y;e[23]!==j?(y=s.jsx(Ft,{size:12,className:j}),e[23]=j,e[24]=y):y=e[24];let v;e[25]!==f||e[26]!==N||e[27]!==y||e[28]!==g?(v=s.jsx(wt,{asChild:!0,children:s.jsxs("button",{type:"button",className:g,children:[f,N,y]})}),e[25]=f,e[26]=N,e[27]=y,e[28]=g,e[29]=v):v=e[29];let I;e[30]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(Wt,{placeholder:"Filter by assignee…",className:"h-9"}),e[30]=I):I=e[30];let C;e[31]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(Zt,{children:"No members found."}),e[31]=C):C=e[31];let O;e[32]!==c?(O=s.jsx(me,{value:"Anyone",onSelect:()=>c(null),children:"Anyone"}),e[32]=c,e[33]=O):O=e[33];let q;e[34]!==c?(q=()=>c(zt),e[34]=c,e[35]=q):q=e[35];let Q;e[36]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(It,{size:16,className:"text-muted-foreground"}),e[36]=Q):Q=e[36];let T;e[37]!==q?(T=s.jsxs(me,{value:"Unassigned",onSelect:q,className:"gap-2",children:[Q,"Unassigned"]}),e[37]=q,e[38]=T):T=e[38];let F;e[39]!==c?(F=()=>c(Je),e[39]=c,e[40]=F):F=e[40];let U;e[41]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(ce,{size:16}),e[41]=U):U=e[41];let M;e[42]!==F?(M=s.jsxs(me,{value:"Super Agent",onSelect:F,className:"gap-2",children:[U,"Super Agent"]}),e[42]=F,e[43]=M):M=e[43];let R;e[44]!==O||e[45]!==T||e[46]!==M?(R=s.jsxs(pt,{children:[O,T,M]}),e[44]=O,e[45]=T,e[46]=M,e[47]=R):R=e[47];let L;if(e[48]!==a||e[49]!==c){let _;e[51]!==c?(_=k=>s.jsxs(me,{value:k.user?.name??k.userId,onSelect:()=>c(k.userId),className:"gap-2",children:[s.jsx(re,{url:k.user?.image??void 0,fallback:ae(k.user?.name),shape:"circle",size:"2xs"}),s.jsx("span",{className:"truncate",children:k.user?.name??k.userId})]},k.userId),e[51]=c,e[52]=_):_=e[52],L=a.map(_),e[48]=a,e[49]=c,e[50]=L}else L=e[50];let z;e[53]!==L?(z=s.jsx(pt,{heading:"Members",children:L}),e[53]=L,e[54]=z):z=e[54];let G;e[55]!==R||e[56]!==z?(G=s.jsx(Dt,{align:"start",className:"w-56 p-0",children:s.jsxs(es,{children:[I,s.jsxs(ts,{children:[C,R,z]})]})}),e[55]=R,e[56]=z,e[57]=G):G=e[57];let K;return e[58]!==i||e[59]!==G||e[60]!==v?(K=s.jsxs(kt,{open:i,onOpenChange:o,children:[v,G]}),e[58]=i,e[59]=G,e[60]=v,e[61]=K):K=e[61],K}function cl(t){const e=$.c(23),{value:l,onChange:a,block:n}=t,r=l!==null;let i;e[0]!==n||e[1]!==r?(i=ht(r,n),e[0]=n,e[1]=r,e[2]=i):i=e[2];const o=i,d=n&&"ml-auto";let f;e[3]!==d?(f=D("shrink-0 opacity-60",d),e[3]=d,e[4]=f):f=e[4];const m=f;let x;e[5]!==l?(x=l?s.jsx("span",{className:D("size-2 shrink-0 rounded-full",ie[l].dotClassName)}):s.jsx(Us,{size:14,className:"shrink-0"}),e[5]=l,e[6]=x):x=e[6];const c=l?ie[l].label:"Priority";let u;e[7]!==m?(u=s.jsx(Ft,{size:12,className:m}),e[7]=m,e[8]=u):u=e[8];let p;e[9]!==x||e[10]!==c||e[11]!==u||e[12]!==o?(p=s.jsx(ut,{asChild:!0,children:s.jsxs("button",{type:"button",className:o,children:[x,c,u]})}),e[9]=x,e[10]=c,e[11]=u,e[12]=o,e[13]=p):p=e[13];let g,h;e[14]!==a?(h=s.jsx(He,{onSelect:()=>a(null),children:"Any priority"}),g=as.map(N=>s.jsxs(He,{onSelect:()=>a(N),className:"gap-2",children:[s.jsx("span",{className:D("size-2 rounded-full",ie[N].dotClassName)}),ie[N].label]},N)),e[14]=a,e[15]=g,e[16]=h):(g=e[15],h=e[16]);let b;e[17]!==g||e[18]!==h?(b=s.jsxs(ft,{align:"start",className:"w-40",children:[h,g]}),e[17]=g,e[18]=h,e[19]=b):b=e[19];let j;return e[20]!==b||e[21]!==p?(j=s.jsxs(xt,{children:[p,b]}),e[20]=b,e[21]=p,e[22]=j):j=e[22],j}function dl(t){const e=$.c(27),{value:l,onChange:a,block:n}=t;let r;e[0]!==l?(r=Ut.find(C=>C.value===l)?.label,e[0]=l,e[1]=r):r=e[1];const i=r,o=l!==null;let d;e[2]!==n||e[3]!==o?(d=ht(o,n),e[2]=n,e[3]=o,e[4]=d):d=e[4];const f=d,m=n&&"ml-auto";let x;e[5]!==m?(x=D("shrink-0 opacity-60",m),e[5]=m,e[6]=x):x=e[6];const c=x;let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(Xe,{size:14,className:"shrink-0"}),e[7]=u):u=e[7];const p=i??"Due date";let g;e[8]!==c?(g=s.jsx(Ft,{size:12,className:c}),e[8]=c,e[9]=g):g=e[9];let h;e[10]!==p||e[11]!==g||e[12]!==f?(h=s.jsx(ut,{asChild:!0,children:s.jsxs("button",{type:"button",className:f,children:[u,p,g]})}),e[10]=p,e[11]=g,e[12]=f,e[13]=h):h=e[13];let b;e[14]!==a?(b=()=>a(null),e[14]=a,e[15]=b):b=e[15];let j;e[16]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(Xe,{size:16,className:"text-muted-foreground"}),e[16]=j):j=e[16];let N;e[17]!==b?(N=s.jsxs(He,{onSelect:b,className:"gap-2",children:[j,"Any time"]}),e[17]=b,e[18]=N):N=e[18];let y;e[19]!==a?(y=Ut.map(C=>{const O=C.value==="overdue";return s.jsxs(He,{onSelect:()=>a(C.value),className:D("gap-2",O&&"text-destructive"),children:[s.jsx(Xe,{size:16,className:D("shrink-0",O?"text-destructive":"text-muted-foreground")}),C.label]},C.value)}),e[19]=a,e[20]=y):y=e[20];let v;e[21]!==N||e[22]!==y?(v=s.jsxs(ft,{align:"start",className:"w-44",children:[N,y]}),e[21]=N,e[22]=y,e[23]=v):v=e[23];let I;return e[24]!==v||e[25]!==h?(I=s.jsxs(xt,{children:[h,v]}),e[24]=v,e[25]=h,e[26]=I):I=e[26],I}function rs(t){const e=$.c(26),{filters:l,members:a,onChange:n,block:r}=t;let i;e[0]!==l||e[1]!==n?(i=u=>n({...l,assignee:u}),e[0]=l,e[1]=n,e[2]=i):i=e[2];let o;e[3]!==r||e[4]!==l.assignee||e[5]!==a||e[6]!==i?(o=s.jsx(ol,{block:r,value:l.assignee,members:a,onChange:i}),e[3]=r,e[4]=l.assignee,e[5]=a,e[6]=i,e[7]=o):o=e[7];let d;e[8]!==l||e[9]!==n?(d=u=>n({...l,priority:u}),e[8]=l,e[9]=n,e[10]=d):d=e[10];let f;e[11]!==r||e[12]!==l.priority||e[13]!==d?(f=s.jsx(cl,{block:r,value:l.priority,onChange:d}),e[11]=r,e[12]=l.priority,e[13]=d,e[14]=f):f=e[14];let m;e[15]!==l||e[16]!==n?(m=u=>n({...l,due:u}),e[15]=l,e[16]=n,e[17]=m):m=e[17];let x;e[18]!==r||e[19]!==l.due||e[20]!==m?(x=s.jsx(dl,{block:r,value:l.due,onChange:m}),e[18]=r,e[19]=l.due,e[20]=m,e[21]=x):x=e[21];let c;return e[22]!==o||e[23]!==f||e[24]!==x?(c=s.jsxs(s.Fragment,{children:[o,f,x]}),e[22]=o,e[23]=f,e[24]=x,e[25]=c):c=e[25],c}function ml(t){const e=$.c(11),{filters:l,members:a,onChange:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(ss,{size:16,className:"mr-0.5 shrink-0 text-muted-foreground"}),e[0]=r):r=e[0];let i;e[1]!==l||e[2]!==a||e[3]!==n?(i=s.jsx(rs,{filters:l,members:a,onChange:n}),e[1]=l,e[2]=a,e[3]=n,e[4]=i):i=e[4];let o;e[5]!==l||e[6]!==n?(o=ll(l)&&s.jsx("button",{type:"button",onClick:()=>n(gt),className:"ml-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground",children:"Clear"}),e[5]=l,e[6]=n,e[7]=o):o=e[7];let d;return e[8]!==i||e[9]!==o?(d=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[r,i,o]}),e[8]=i,e[9]=o,e[10]=d):d=e[10],d}function ul(t){const e=$.c(26),{filters:l,members:a,onChange:n}=t,[r,i]=A.useState(!1),o=nl(l),d=o>0;let f;e[0]!==d?(f=ht(d),e[0]=d,e[1]=f):f=e[1];const m=f;let x;e[2]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(ss,{size:14,className:"shrink-0"}),e[2]=x):x=e[2];let c;e[3]!==o?(c=o>0&&s.jsx("span",{className:"ml-0.5 flex size-4 items-center justify-center rounded-full bg-foreground text-[10px] font-semibold text-background",children:o}),e[3]=o,e[4]=c):c=e[4];let u;e[5]!==c||e[6]!==m?(u=s.jsx(Bs,{asChild:!0,children:s.jsxs("button",{type:"button",className:m,children:[x,"Filters",c]})}),e[5]=c,e[6]=m,e[7]=u):u=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(Fs,{className:"px-4 pt-4 text-base font-medium text-foreground",children:"Filters"}),e[8]=p):p=e[8];let g;e[9]!==l||e[10]!==a||e[11]!==n?(g=s.jsx("div",{className:"flex flex-col gap-2 p-4",children:s.jsx(rs,{block:!0,filters:l,members:a,onChange:n})}),e[9]=l,e[10]=a,e[11]=n,e[12]=g):g=e[12];let h;e[13]!==o||e[14]!==n?(h=o>0&&s.jsx(ue,{variant:"outline",className:"flex-1",onClick:()=>n(gt),children:"Clear all"}),e[13]=o,e[14]=n,e[15]=h):h=e[15];let b;e[16]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Rs,{asChild:!0,children:s.jsx(ue,{className:"flex-1",children:"Done"})}),e[16]=b):b=e[16];let j;e[17]!==h?(j=s.jsxs(Ps,{className:"flex-row gap-2",children:[h,b]}),e[17]=h,e[18]=j):j=e[18];let N;e[19]!==j||e[20]!==g?(N=s.jsxs(Ms,{className:"p-0",children:[p,g,j]}),e[19]=j,e[20]=g,e[21]=N):N=e[21];let y;return e[22]!==r||e[23]!==N||e[24]!==u?(y=s.jsxs(Ls,{open:r,onOpenChange:i,direction:"bottom",children:[u,N]}),e[22]=r,e[23]=N,e[24]=u,e[25]=y):y=e[25],y}const qt=380,fl=90,Gt=5,xl="cubic-bezier(0.22, 0.61, 0.36, 1)",pl=8;function gl(t,e){const l=A.useRef(new Map);A.useLayoutEffect(()=>{const a=t.current;if(!a)return;const n=a.querySelectorAll("[data-flip-id]"),r=l.current,i=new Map,o=typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches,d=[];for(const c of n){const u=c.dataset.flipId;if(!u)continue;const p=c.getBoundingClientRect();i.set(u,p);const g=r.get(u);if(!g)continue;const h=g.left-p.left,b=g.top-p.top;(h||b)&&d.push({el:c,dx:h,dy:b,lane:Math.abs(h)>pl})}if(l.current=i,o||d.length===0)return;for(const c of d){const u=c.lane?` rotate(${c.dx>0?Gt:-Gt}deg)`:"";c.el.style.transition="none",c.el.style.transform=`translate(${c.dx}px, ${c.dy}px)${u}`,c.lane&&(c.el.style.zIndex="10")}let f=0;const m=[],x=requestAnimationFrame(()=>{for(const c of d){const u=c.lane?f++*fl:0;c.el.style.transition=`transform ${qt}ms ${xl} ${u}ms`,c.el.style.transform="",m.push(window.setTimeout(()=>{c.el.style.transition="",c.el.style.transform="",c.el.style.zIndex=""},qt+u+30))}});return()=>{cancelAnimationFrame(x);for(const c of m)clearTimeout(c)}},[e,t])}us(()=>import("./index-PCoZIk-M.js").then(t=>t.aY),__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,149,150,151])).catch(()=>{});function hl(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"min-h-0 flex-1 pt-0 pr-1 pb-1 pl-0",children:s.jsx("div",{className:"h-full p-0.5 pt-0.25",children:s.jsx("div",{className:"card-shadow flex h-full flex-col overflow-hidden rounded-[0.75rem] bg-background",children:s.jsx(ms,{})})})}),t[0]=e):e=t[0],e}const bl=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"});function jl(t){const e=new Date(t),l=e.getTime()<Date.now();return{label:bl.format(e),overdue:l}}const Rt="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 is(){const t=$.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=D(Rt,"border-amber-500/30 text-amber-600"),t[0]=e):e=t[0];let l;return t[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs("span",{className:e,title:"The agent is waiting for your input",children:[s.jsx(Ht,{size:14}),"Needs input"]}),t[1]=l):l=t[1],l}function os(t){const e=$.c(7),{priority:l}=t,a=ie[l];let n;e[0]!==a.dotClassName?(n=D("size-2 rounded-full",a.dotClassName),e[0]=a.dotClassName,e[1]=n):n=e[1];let r;e[2]!==n?(r=s.jsx("span",{className:n}),e[2]=n,e[3]=r):r=e[3];let i;return e[4]!==a.label||e[5]!==r?(i=s.jsxs("span",{className:Rt,children:[r,a.label]}),e[4]=a.label,e[5]=r,e[6]=i):i=e[6],i}function cs(t){const e=$.c(7),{iso:l}=t;let a,n;if(e[0]!==l){const{label:o,overdue:d}=jl(l);a=o,n=D(Rt,d&&"border-destructive/30 text-destructive"),e[0]=l,e[1]=a,e[2]=n}else a=e[1],n=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Xe,{size:14}),e[3]=r):r=e[3];let i;return e[4]!==a||e[5]!==n?(i=s.jsxs("span",{className:n,children:[r,a]}),e[4]=a,e[5]=n,e[6]=i):i=e[6],i}function ds(t){const e=$.c(11),{item:l,assignee:a,assignedBy:n}=t;if(l.assigneeId===Je){const r=n?.user?.name?`Assigned to Super Agent by ${n.user.name}`:"Assigned to Super Agent";let i;e[0]!==n?(i=n&&s.jsx(re,{url:n.user?.image??void 0,fallback:ae(n.user?.name),shape:"circle",size:"2xs",className:"-mr-1.5 ring-2 ring-background"}),e[0]=n,e[1]=i):i=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(ce,{size:16,className:"ring-2 ring-background"}),e[2]=o):o=e[2];let d;return e[3]!==r||e[4]!==i?(d=s.jsxs("span",{className:"inline-flex items-center",title:r,children:[i,o]}),e[3]=r,e[4]=i,e[5]=d):d=e[5],d}if(a){const r=a.user?.image??void 0,i=a.user?.name;let o;e[6]!==i?(o=ae(i),e[6]=i,e[7]=o):o=e[7];let d;return e[8]!==r||e[9]!==o?(d=s.jsx(re,{url:r,fallback:o,shape:"circle",size:"2xs"}),e[8]=r,e[9]=o,e[10]=d):d=e[10],d}return null}function ms(){const t=$.c(64),{items:e,isLoading:l}=Ks(),a=Qs(),{data:n}=Vt();let r,i;t[0]!==n?.data?.members?(r=n?.data?.members??[],i=new Map(r.map(Nl)),t[0]=n?.data?.members,t[1]=r,t[2]=i):(r=t[1],i=t[2]);const o=i,[d,f]=A.useState("board"),[m,x]=A.useState(gt),[c,u]=A.useState(!1),[p,g]=A.useState(null),[h,b]=A.useState(null),{setTaskId:j}=qs();let N,y,v,I;if(t[3]!==a||t[4]!==m||t[5]!==l||t[6]!==e||t[7]!==d||t[8]!==o||t[9]!==r){I=Symbol.for("react.early_return_sentinel");e:{let z;t[14]!==m?(z=w=>il(w,m),t[14]=m,t[15]=z):z=t[15];const G=e.filter(z);let K;t[16]===Symbol.for("react.memo_cache_sentinel")?(K=()=>{g(null),b(null),u(!0)},t[16]=K):K=t[16];const _=K;let k;t[17]===Symbol.for("react.memo_cache_sentinel")?(k=w=>{g(null),b(w),u(!0)},t[17]=k):k=t[17];const H=k;let B;t[18]===Symbol.for("react.memo_cache_sentinel")?(B=w=>{g(w),u(!0)},t[18]=B):B=t[18];const P=B;if(l&&e.length===0){let w;t[19]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx("div",{className:"flex flex-1 items-center justify-center",children:s.jsx(fs,{size:20,className:"animate-spin text-muted-foreground"})}),t[19]=w):w=t[19],I=w;break e}N="mx-auto flex min-h-0 w-full max-w-[1680px] flex-1 flex-col";let X;t[20]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx("h1",{className:"text-xl font-medium text-foreground",children:"Tasks"}),t[20]=X):X=t[20];let E;t[21]!==m||t[22]!==e.length||t[23]!==r?(E=e.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sm:hidden",children:s.jsx(ul,{filters:m,members:r,onChange:x})}),s.jsx("div",{className:"hidden sm:block",children:s.jsx(ml,{filters:m,members:r,onChange:x})})]}),t[21]=m,t[22]=e.length,t[23]=r,t[24]=E):E=t[24];const de=d==="list";let le;t[25]===Symbol.for("react.memo_cache_sentinel")?(le=()=>f("list"),t[25]=le):le=t[25];let J;t[26]!==de?(J=s.jsx(Kt,{active:de,onClick:le,icon:Ns,label:"List"}),t[26]=de,t[27]=J):J=t[27];const se=d==="board";let oe;t[28]===Symbol.for("react.memo_cache_sentinel")?(oe=()=>f("board"),t[28]=oe):oe=t[28];let Y;t[29]!==se?(Y=s.jsx(Kt,{active:se,onClick:oe,icon:js,label:"Board"}),t[29]=se,t[30]=Y):Y=t[30];let W;t[31]!==J||t[32]!==Y?(W=s.jsxs("div",{className:"inline-flex rounded-lg bg-muted p-0.5",children:[J,Y]}),t[31]=J,t[32]=Y,t[33]=W):W=t[33];let Z;t[34]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsxs(ue,{size:"sm",onClick:_,children:[s.jsx(Ot,{size:16}),"New task"]}),t[34]=Z):Z=t[34];let ee;t[35]!==W?(ee=s.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[W,Z]}),t[35]=W,t[36]=ee):ee=t[36],t[37]!==E||t[38]!==ee?(y=s.jsxs("div",{className:"flex flex-col gap-4 px-4 pt-6 sm:px-8 sm:pt-8",children:[X,s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[E,ee]})]}),t[37]=E,t[38]=ee,t[39]=y):y=t[39],v=e.length===0?s.jsx("div",{className:"px-4 pt-6 sm:px-8",children:s.jsx("div",{className:"rounded-xl bg-card px-4 py-12 text-center text-sm text-muted-foreground card-shadow",children:"No tasks yet. Start one with New task."})}):G.length===0?s.jsx("div",{className:"px-4 pt-6 sm:px-8",children:s.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:["No tasks match these filters.",s.jsx(ue,{variant:"outline",size:"sm",onClick:()=>x(gt),children:"Clear filters"})]})}):d==="board"?s.jsx(yl,{items:G,memberByUserId:o,onOpen:P,onCreate:H,onMove:(w,fe)=>a.update.mutate({id:w,status:fe})}):s.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 pt-6 pb-16 sm:px-8",children:s.jsx("div",{className:"mx-auto flex max-w-[820px] flex-col gap-2",children:G.map(w=>s.jsx(Cl,{item:w,assignee:w.assigneeId?o.get(w.assigneeId):void 0,assignedBy:w.assignedBy?o.get(w.assignedBy):void 0,onOpen:()=>P(w)},w.id))})})}t[3]=a,t[4]=m,t[5]=l,t[6]=e,t[7]=d,t[8]=o,t[9]=r,t[10]=N,t[11]=y,t[12]=v,t[13]=I}else N=t[10],y=t[11],v=t[12],I=t[13];if(I!==Symbol.for("react.early_return_sentinel"))return I;const C=c?p?.id??`new-${h??"default"}`:"closed";let O;t[40]===Symbol.for("react.memo_cache_sentinel")?(O=()=>u(!1),t[40]=O):O=t[40];const q=p??void 0,Q=h??void 0,T=a.create.isPending||a.update.isPending;let F;t[41]!==a.create||t[42]!==a.update||t[43]!==p?(F=z=>{p?a.update.mutate({id:p.id,...z}):a.create.mutate(z),u(!1)},t[41]=a.create,t[42]=a.update,t[43]=p,t[44]=F):F=t[44];let U;t[45]!==a.remove||t[46]!==p?(U=p?()=>{a.remove.mutate(p.id),u(!1)}:void 0,t[45]=a.remove,t[46]=p,t[47]=U):U=t[47];let M;t[48]!==j?(M=z=>{z.virtualMcpId&&(u(!1),j(z.threadId,z.virtualMcpId,{main:z.hasPreview?"preview":"board"}))},t[48]=j,t[49]=M):M=t[49];let R;t[50]!==c||t[51]!==F||t[52]!==U||t[53]!==M||t[54]!==C||t[55]!==q||t[56]!==Q||t[57]!==T?(R=s.jsx(Js,{open:c,onClose:O,item:q,defaultStatus:Q,isSaving:T,onSubmit:F,onDelete:U,onOpenThread:M},C),t[50]=c,t[51]=F,t[52]=U,t[53]=M,t[54]=C,t[55]=q,t[56]=Q,t[57]=T,t[58]=R):R=t[58];let L;return t[59]!==N||t[60]!==R||t[61]!==y||t[62]!==v?(L=s.jsxs("div",{className:N,children:[y,v,R]}),t[59]=N,t[60]=R,t[61]=y,t[62]=v,t[63]=L):L=t[63],L}function Nl(t){return[t.userId,t]}function Kt(t){const e=$.c(11),{active:l,onClick:a,icon:n,label:r}=t,i=`${r} view`,o=l?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground";let d;e[0]!==o?(d=D("flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs font-medium transition-colors",o),e[0]=o,e[1]=d):d=e[1];let f;e[2]!==n?(f=s.jsx(n,{size:14}),e[2]=n,e[3]=f):f=e[3];let m;return e[4]!==l||e[5]!==r||e[6]!==a||e[7]!==i||e[8]!==d||e[9]!==f?(m=s.jsxs("button",{type:"button",onClick:a,"aria-label":i,"aria-pressed":l,className:d,children:[f,r]}),e[4]=l,e[5]=r,e[6]=a,e[7]=i,e[8]=d,e[9]=f,e[10]=m):m=e[10],m}function yl(t){const e=$.c(11),{items:l,memberByUserId:a,onOpen:n,onCreate:r,onMove:i}=t,[o,d]=A.useState(null),f=A.useRef(null);let m;e[0]!==l?(m=l.map(vl).join(","),e[0]=l,e[1]=m):m=e[1],gl(f,m);let c;e[2]!==l||e[3]!==a||e[4]!==r||e[5]!==i||e[6]!==n||e[7]!==o?(c=ns.map(p=>{const g=l.filter(j=>j.status===p),h=ne[p],b=h.icon;return s.jsxs("div",{onDragOver:j=>{j.preventDefault(),d(p)},onDragLeave:j=>{j.currentTarget.contains(j.relatedTarget)||d(null)},onDrop:j=>{j.preventDefault();const N=j.dataTransfer.getData("text/plain");N&&i(N,p),d(null)},className:D("flex w-[300px] shrink-0 flex-col rounded-xl p-1 transition-colors",o===p&&"bg-muted/50"),children:[s.jsxs("div",{className:"flex items-center gap-2 px-2 py-1.5",children:[s.jsx(b,{size:15,className:D("shrink-0",h.iconClassName)}),s.jsx("span",{className:"text-sm font-medium text-foreground",children:h.label}),s.jsx("span",{className:"rounded-md bg-muted px-1.5 text-[11px] font-medium text-muted-foreground",children:g.length}),s.jsx("button",{type:"button","aria-label":`New task in ${h.label}`,title:`New task in ${h.label}`,onClick:()=>r(p),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:s.jsx(Ot,{size:15})})]}),s.jsx("div",{className:"flex min-h-12 flex-col gap-2 pt-1",children:g.map(j=>s.jsx(Sl,{item:j,assignee:j.assigneeId?a.get(j.assigneeId):void 0,assignedBy:j.assignedBy?a.get(j.assignedBy):void 0,onOpen:()=>n(j)},j.id))})]},p)}),e[2]=l,e[3]=a,e[4]=r,e[5]=i,e[6]=n,e[7]=o,e[8]=c):c=e[8];let u;return e[9]!==c?(u=s.jsx("div",{ref:f,className:"flex min-h-0 flex-1 gap-3 overflow-x-auto overflow-y-auto px-4 pt-6 pb-16 sm:px-8",children:c}),e[9]=c,e[10]=u):u=e[10],u}function vl(t){return`${t.id}:${t.status}`}function Sl(t){const e=$.c(29),{item:l,assignee:a,assignedBy:n,onOpen:r}=t,i=ne[l.status],o=i.icon,d=ls(l)?.lastMessage,f=l.id;let m;e[0]!==l.id?(m=y=>{y.dataTransfer.setData("text/plain",l.id),y.dataTransfer.effectAllowed="move"},e[0]=l.id,e[1]=m):m=e[1];const x=l.title;let c;e[2]!==i.iconClassName?(c=D("mt-px shrink-0",i.iconClassName),e[2]=i.iconClassName,e[3]=c):c=e[3];let u;e[4]!==o||e[5]!==c?(u=s.jsx(o,{size:16,className:c}),e[4]=o,e[5]=c,e[6]=u):u=e[6];let p;e[7]!==l.title?(p=s.jsx("span",{className:"min-w-0 flex-1 text-sm font-medium leading-snug text-foreground line-clamp-2",children:l.title}),e[7]=l.title,e[8]=p):p=e[8];let g;e[9]!==n||e[10]!==a||e[11]!==l?(g=s.jsx(ds,{item:l,assignee:a,assignedBy:n}),e[9]=n,e[10]=a,e[11]=l,e[12]=g):g=e[12];let h;e[13]!==u||e[14]!==p||e[15]!==g?(h=s.jsxs("div",{className:"flex items-start gap-2",children:[u,p,g]}),e[13]=u,e[14]=p,e[15]=g,e[16]=h):h=e[16];let b;e[17]!==d?(b=d&&s.jsx("p",{className:"line-clamp-2 pl-6 text-xs leading-snug text-muted-foreground",children:d}),e[17]=d,e[18]=b):b=e[18];let j;e[19]!==l?(j=(Tt(l)||l.priority!=="none"||!!l.dueDate)&&s.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 pl-6",children:[Tt(l)&&s.jsx(is,{}),l.priority!=="none"&&s.jsx(os,{priority:l.priority}),l.dueDate&&s.jsx(cs,{iso:l.dueDate})]}),e[19]=l,e[20]=j):j=e[20];let N;return e[21]!==l.id||e[22]!==l.title||e[23]!==r||e[24]!==j||e[25]!==m||e[26]!==h||e[27]!==b?(N=s.jsxs("button",{type:"button",draggable:!0,"data-flip-id":f,onDragStart:m,onClick:r,className:"group flex cursor-grab flex-col gap-2 rounded-xl bg-card px-3 py-2.5 text-left card-shadow transition-colors will-change-transform hover:bg-accent/60 active:cursor-grabbing",title:x,children:[h,b,j]}),e[21]=l.id,e[22]=l.title,e[23]=r,e[24]=j,e[25]=m,e[26]=h,e[27]=b,e[28]=N):N=e[28],N}function Cl(t){const e=$.c(30),{item:l,assignee:a,assignedBy:n,onOpen:r}=t,i=ne[l.status],o=i.icon;let d;e[0]!==i.iconClassName?(d=D("shrink-0",i.iconClassName),e[0]=i.iconClassName,e[1]=d):d=e[1];let f;e[2]!==o||e[3]!==d?(f=s.jsx(o,{size:16,className:d}),e[2]=o,e[3]=d,e[4]=f):f=e[4];let m;e[5]!==l.title?(m=s.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium text-foreground",children:l.title}),e[5]=l.title,e[6]=m):m=e[6];let x;e[7]!==l?(x=Tt(l)&&s.jsx(is,{}),e[7]=l,e[8]=x):x=e[8];let c;e[9]!==l.priority?(c=l.priority!=="none"&&s.jsx("span",{className:"hidden sm:inline-flex",children:s.jsx(os,{priority:l.priority})}),e[9]=l.priority,e[10]=c):c=e[10];let u;e[11]!==l.dueDate?(u=l.dueDate&&s.jsx("span",{className:"hidden sm:inline-flex",children:s.jsx(cs,{iso:l.dueDate})}),e[11]=l.dueDate,e[12]=u):u=e[12];let p;e[13]!==n||e[14]!==a||e[15]!==l?(p=s.jsx(ds,{item:l,assignee:a,assignedBy:n}),e[13]=n,e[14]=a,e[15]=l,e[16]=p):p=e[16];let g;e[17]!==l.createdAt?(g=Cs(new Date(l.createdAt)),e[17]=l.createdAt,e[18]=g):g=e[18];let h;e[19]!==g?(h=s.jsx("span",{className:"hidden shrink-0 text-[11px] text-muted-foreground/70 sm:inline",children:g}),e[19]=g,e[20]=h):h=e[20];let b;return e[21]!==r||e[22]!==f||e[23]!==m||e[24]!==x||e[25]!==c||e[26]!==u||e[27]!==p||e[28]!==h?(b=s.jsxs("button",{type:"button",onClick:r,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:[f,m,x,c,u,p,h]}),e[21]=r,e[22]=f,e[23]=m,e[24]=x,e[25]=c,e[26]=u,e[27]=p,e[28]=h,e[29]=b):b=e[29],b}const ln=Object.freeze(Object.defineProperty({__proto__:null,TaskBoardPage:ms,default:hl},Symbol.toStringTag,{value:"Module"}));export{ie as P,ne as S,Js as T,Qs as a,ce as b,ms as c,ln as i,Ks as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as it,r as E,j as e,i as rt}from"./index-C5JCmVQ0.js";import{m as mt,o as pt,p as st,q as at}from"./sidebar-i7yNFNs9.js";import{A as nt}from"./automation-runs-_xFJy_Wv.js";import{r as lt,u as ct,a as dt,b as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-BoV5cy5K.js";import{r as xt}from"./index-PCoZIk-M.js";import"./LayoutLeft-C6uN3ryJ.js";import"./use-mobile-vXwkCjTm.js";import"./X-CNdIeej8.js";import"./tooltip-DjWNMg5T.js";import"./select-D59HzWyb.js";import"./Check-BbAbdPfp.js";import"./ChevronDown-BsEi-r9q.js";import"./ChevronUp-BWoVqFrM.js";import"./useInfiniteQuery-D-yVKxn2.js";import"./use-infinite-scroll-WwPPe2Wp.js";import"./use-connection-DhRKlWkl.js";import"./use-collections-Kwxr6RPv.js";import"./use-mcp-client-DlCO79GA.js";import"./constants-D_FQAPnt.js";import"./auth-DIzgjm9h.js";import"./use-virtual-mcp-KZlYJNMn.js";import"./card-1ZIM8JYb.js";import"./table-B8kPpHAC.js";import"./empty-state-D0Yjh42T.js";import"./use-members-CP1GrgsV.js";import"./use-org-auth-client-BeUafwOm.js";import"./use-clock-tick-BNpEZMto.js";import"./AlertCircle-CX23NCuO.js";import"./CheckCircle-Day5nLHt.js";import"./Circle-Bj_xS3WU.js";import"./agent-icon-DMtjBPX3.js";import"./UserPlus01-13KHecKW.js";import"./Tool01-BT4kICfE.js";import"./ArrowUp-ChoUWc1b.js";import"./Settings02-DAAnVZLO.js";import"./Tool02-vM8N2pYB.js";import"./XCircle-C9sRiEE0.js";import"./ArrowUpRight-Bq-zX9ha.js";import"./TrendUp01-CBDxjtVg.js";import"./ZapSquare-BV8kr37_.js";import"./Users03-ZlQye2vY.js";import"./ChevronRight-B9mybD1s.js";import"./Stars02-B9xmjTkg.js";import"./Eye-CyP9kYwn.js";import"./ZoomOut-7nLppLEs.js";import"./DotsVertical-BQRa2EB9.js";import"./Globe01-CC0A4U7g.js";import"./FilterLines-C5i4i3WB.js";import"./Flag01-C7YxvVFh.js";import"./Star01-Bb61R21H.js";import"./Globe04-BV89vsfi.js";import"./SwitchHorizontal01-C90B2Auk.js";import"./HardDrive-CA9cG4ej.js";import"./Key01-Y2tTMtA8.js";import"./LinkExternal01-CbW1jJhi.js";import"./List-MOccGrJp.js";import"./Monitor01-DBUBWT-e.js";import"./Sun-wOtTFTOd.js";import"./Package-BL3B6ONo.js";import"./Palette-B0oAitOJ.js";import"./Play-zjQOd6w0.js";import"./Plus-DATZ4-ND.js";import"./SearchLg-B4W4xrFH.js";import"./SearchMd-CKL74aOj.js";import"./Shield01-IlYcL8Fi.js";import"./Stars01-Bnuoinbt.js";import"./Trash01-CrwbV8c_.js";import"./Upload01-Lp0wJMYr.js";import"./User01-CQV6kRtR.js";import"./Users01-CDDfUziK.js";import"./XClose-4pjmwtT4.js";import"./Zap-DHGChPV2.js";import"./use-automations-kY9mTa0N.js";import"./studio-tools--pllMpfK.js";import"./useSuspenseInfiniteQuery-QFUkmQtZ.js";import"./badge-BR8ZoQPH.js";import"./checkbox-YuHG4ViR.js";import"./command-DRUw9pTQ.js";import"./index-BOaCGG-5.js";import"./dialog-DfnhzCwv.js";import"./popover-DL95paTt.js";import"./avatar-CfHetrJ0.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-C62zVzDi.js";import"./file-type-icon-CyQSc8WD.js";import"./tab-id-BijBBRwE.js";import"./monaco-editor-DYdw6m6P.js";import"./index-B8Idfh3P.js";import"./chat-context-BhPkOl45.js";import"./autosend-BX8nQnW3.js";import"./hooks-DsQUp7L9.js";import"./decopilot-sse-pool-B1izZBf2.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-CQmOOELp.js";import"./use-decopilot-events-Cww7ZCTK.js";import"./use-organization-settings-BFGZ9YuD.js";import"./index-emjsrsD0.js";import"./shell-layout-TAILJ-da.js";import"./alert-dialog-IVNf28U9.js";import"./required-auth-layout-BLRuxjNn.js";import"./use-org-sso-CpksLDM-.js";import"./integration-icon-D74EpYgv.js";import"./use-navigate-to-agent-DZwula5s.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CRvFGO5O.js";import"./form-ZPjO3One.js";import"./label-CjR-YPrA.js";import"./input-DWv95vY4.js";import"./switch-DLw5svpB.js";import"./drawer-Cu1H6Zpl.js";import"./collection-search-D4kzf4BZ.js";import"./tabs-C19FaLXY.js";import"./toggle-group-SYBG9bZR.js";import"./use-deco-credits-rxapxW2c.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BddaDWk3.js";import"./use-registry-connections-ml5ez91l.js";import"./extract-connection-data-DkYKg47U.js";import"./collection-tabs-CwblhJGY.js";import"./textarea-DGICe7Jx.js";import"./connection-form-helpers-B3t0vd0x.js";import"./authenticate-and-persist-oauth-Bb5P11Gd.js";import"./mcp-oauth-CDqgI2Xn.js";import"./connect-desktop-dialog-BSEnA0YE.js";import"./select-model-D8LB7zlx.js";import"./skeleton-D824Y8b-.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CHSsdIIo.js";import"./dropdown-menu-BlorfjU6.js";import"./index-BeTttHS9.js";import"./toolbar-V6M48IQV.js";import"./use-debounced-value-DEfVi-aN.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DUjqcw9j.js";import"./use-mcp-tools-PUeX7iQD.js";import"./use-capability-BtQYj-6N.js";import"./tools-list-CvZ2H4zV.js";import"./use-debounced-autosave-Cumlh74L.js";import"./index-1xWIMGUU.js";import"./search-input-B9lRxCGI.js";import"./github-repo-picker-DneVvY3I.js";import"./github-installations-ChFezl8I.js";import"./use-secrets-DXp4vVpG.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-CrqiPrVn.js";import"./index-D-JmKBPU.js";import"./get-initials-D-f_fDFw.js";import"./calendar-D9BWcxij.js";import"./toolbar-icon-button-DapYdi-A.js";import"./use-file-configs-BaRnwcsF.js";import"./automation-list-row-BrrHJBg_.js";function fi(u){const t=it.c(46),{open:N,onOpenChange:P,orgSlug:Q,virtualMcpId:U,branch:W,decofile:G,meta:s,target:m,onSaved:X}=u,o=lt(G,m,s),k=m.kind==="site"?"site":m.pageKey,[Y,Z]=E.useState(k),[tt,i]=E.useState(null),[J,g]=E.useState(void 0),[x,y]=E.useState(0);Y!==k&&(Z(k),i(null),g(void 0),y(wt));const{persistSeo:a,persistRawSeo:I,flush:K,isPending:D}=ct({orgSlug:Q,virtualMcpId:U,branch:W,target:m,resolved:o,onSaved:X}),w=m.kind==="page",ot=w?o?.rawSeoData:void 0,v=J!==void 0?J:ot,et=w?dt(v)??void 0:void 0,h=tt??et??o?.seoData??{},p=o?St(h,o):null,n=p&&(!w||ft(v))?xt(p,s):null,_=m.kind==="page"?ut(G,s)?.seoData??void 0:void 0;let j;t[0]!==s?(j=vt(s),t[0]=s,t[1]=j):j=t[1];const A=j;let R;t[2]!==a||t[3]!==o||t[4]!==i?(R=r=>{if(!o)return;const L=r;i(L),a(L)},t[2]=a,t[3]=o,t[4]=i,t[5]=R):R=t[5];const M=R;let F;t[6]!==K||t[7]!==P?(F=r=>{r||K(),P(r)},t[6]=K,t[7]=P,t[8]=F):F=t[8];const V=F,q=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,z=m.kind==="site"&&o&&n,B=m.kind==="site"?"No site-level SEO block found.":o?"SEO schema not found for this page.":"Could not load page SEO.";let C;t[9]!==i?(C=()=>i(null),t[9]=i,t[10]=C):C=t[10];const H=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const $=O;let l;t[13]!==q?(l=e.jsx(mt,{className:"text-sm font-semibold",children:q}),t[13]=q,t[14]=l):l=t[14];let c;t[15]!==D?(c=D&&e.jsx(rt,{size:14,className:"animate-spin text-muted-foreground"}),t[15]=D,t[16]=c):c=t[16];let d;t[17]!==l||t[18]!==c?(d=e.jsxs(pt,{className:"px-4 py-3 border-b flex-row items-center justify-between space-y-0",children:[l,c]}),t[17]=l,t[18]=c,t[19]=d):d=t[19];let S;t[20]!==p||t[21]!==$||t[22]!==H||t[23]!==A||t[24]!==v||t[25]!==h||t[26]!==B||t[27]!==x||t[28]!==M||t[29]!==I||t[30]!==a||t[31]!==o||t[32]!==n||t[33]!==i||t[34]!==g||t[35]!==T||t[36]!==z||t[37]!==_?(S=!o||!T&&!z?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:B}):e.jsx(nt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"mx-auto max-w-sm",children:T?e.jsx(ht,{rawSeo:v,innerSeo:h,defaultResolveType:A,seoSchema:n,activeResolveType:p,seoTypeOptions:o.seoTypeOptions,formResetKey:x,siteDefaultSeo:_,onPersistRaw:r=>{g(r),I(r)},onInnerChange:r=>{i(r),a(r)},onClearForm:H,onBumpFormKey:$}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:M})})})}),t[20]=p,t[21]=$,t[22]=H,t[23]=A,t[24]=v,t[25]=h,t[26]=B,t[27]=x,t[28]=M,t[29]=I,t[30]=a,t[31]=o,t[32]=n,t[33]=i,t[34]=g,t[35]=T,t[36]=z,t[37]=_,t[38]=S):S=t[38];let f;t[39]!==d||t[40]!==S?(f=e.jsxs(st,{side:"right",className:"w-[400px] sm:max-w-[440px] p-0 gap-0",children:[d,S]}),t[39]=d,t[40]=S,t[41]=f):f=t[41];let b;return t[42]!==V||t[43]!==N||t[44]!==f?(b=e.jsx(at,{open:N,onOpenChange:V,children:f}),t[42]=V,t[43]=N,t[44]=f,t[45]=b):b=t[45],b}function yt(u){return u+1}function wt(u){return u+1}export{fi as SeoSheet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as H,j as t,B as Z}from"./index-C5JCmVQ0.js";import{n as ee}from"./LinkExternal01-CbW1jJhi.js";import{aF as te,g as ie}from"./agent-icon-DMtjBPX3.js";import{I as J}from"./input-DWv95vY4.js";import{L as G}from"./label-CjR-YPrA.js";import{a1 as oe}from"./automation-runs-_xFJy_Wv.js";import{b as Q,c as se,T as W,a as re}from"./tabs-C19FaLXY.js";import{T as le}from"./textarea-DGICe7Jx.js";import{v as ae,w as me,o as pe,x as ne,y as ce,I as de,z as fe,A as ue,B as xe}from"./index-PCoZIk-M.js";import{b as he,a as ge,B as ve}from"./block-document-BeMgCoP0.js";import{u as je}from"./use-autosave-DhXH8ptD.js";import{s as E,E as be,R as ye,A as Ce}from"./primitives-CnjPXZBb.js";import"./AlertCircle-CX23NCuO.js";import"./UserPlus01-13KHecKW.js";import"./Tool01-BT4kICfE.js";import"./ArrowUp-ChoUWc1b.js";import"./Settings02-DAAnVZLO.js";import"./Tool02-vM8N2pYB.js";import"./XCircle-C9sRiEE0.js";import"./ArrowUpRight-Bq-zX9ha.js";import"./TrendUp01-CBDxjtVg.js";import"./ZapSquare-BV8kr37_.js";import"./Users03-ZlQye2vY.js";import"./CheckCircle-Day5nLHt.js";import"./Check-BbAbdPfp.js";import"./ChevronDown-BsEi-r9q.js";import"./ChevronRight-B9mybD1s.js";import"./ChevronUp-BWoVqFrM.js";import"./Circle-Bj_xS3WU.js";import"./Stars02-B9xmjTkg.js";import"./Eye-CyP9kYwn.js";import"./ZoomOut-7nLppLEs.js";import"./DotsVertical-BQRa2EB9.js";import"./Globe01-CC0A4U7g.js";import"./FilterLines-C5i4i3WB.js";import"./Flag01-C7YxvVFh.js";import"./Star01-Bb61R21H.js";import"./Globe04-BV89vsfi.js";import"./SwitchHorizontal01-C90B2Auk.js";import"./HardDrive-CA9cG4ej.js";import"./Key01-Y2tTMtA8.js";import"./LayoutLeft-C6uN3ryJ.js";import"./List-MOccGrJp.js";import"./Monitor01-DBUBWT-e.js";import"./Sun-wOtTFTOd.js";import"./Package-BL3B6ONo.js";import"./Palette-B0oAitOJ.js";import"./Play-zjQOd6w0.js";import"./Plus-DATZ4-ND.js";import"./SearchLg-B4W4xrFH.js";import"./SearchMd-CKL74aOj.js";import"./Shield01-IlYcL8Fi.js";import"./Stars01-Bnuoinbt.js";import"./Trash01-CrwbV8c_.js";import"./Upload01-Lp0wJMYr.js";import"./User01-CQV6kRtR.js";import"./Users01-CDDfUziK.js";import"./XClose-4pjmwtT4.js";import"./X-CNdIeej8.js";import"./Zap-DHGChPV2.js";import"./select-D59HzWyb.js";import"./tooltip-DjWNMg5T.js";import"./useInfiniteQuery-D-yVKxn2.js";import"./use-infinite-scroll-WwPPe2Wp.js";import"./use-connection-DhRKlWkl.js";import"./use-collections-Kwxr6RPv.js";import"./use-mcp-client-DlCO79GA.js";import"./constants-D_FQAPnt.js";import"./auth-DIzgjm9h.js";import"./use-virtual-mcp-KZlYJNMn.js";import"./card-1ZIM8JYb.js";import"./sidebar-i7yNFNs9.js";import"./use-mobile-vXwkCjTm.js";import"./table-B8kPpHAC.js";import"./empty-state-D0Yjh42T.js";import"./use-members-CP1GrgsV.js";import"./use-org-auth-client-BeUafwOm.js";import"./use-clock-tick-BNpEZMto.js";import"./use-automations-kY9mTa0N.js";import"./studio-tools--pllMpfK.js";import"./useSuspenseInfiniteQuery-QFUkmQtZ.js";import"./badge-BR8ZoQPH.js";import"./checkbox-YuHG4ViR.js";import"./command-DRUw9pTQ.js";import"./index-BOaCGG-5.js";import"./dialog-DfnhzCwv.js";import"./popover-DL95paTt.js";import"./avatar-CfHetrJ0.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-C62zVzDi.js";import"./file-type-icon-CyQSc8WD.js";import"./tab-id-BijBBRwE.js";import"./monaco-editor-DYdw6m6P.js";import"./index-B8Idfh3P.js";import"./chat-context-BhPkOl45.js";import"./autosend-BX8nQnW3.js";import"./hooks-DsQUp7L9.js";import"./decopilot-sse-pool-B1izZBf2.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-CQmOOELp.js";import"./use-decopilot-events-Cww7ZCTK.js";import"./use-organization-settings-BFGZ9YuD.js";import"./index-emjsrsD0.js";import"./shell-layout-TAILJ-da.js";import"./alert-dialog-IVNf28U9.js";import"./required-auth-layout-BLRuxjNn.js";import"./use-org-sso-CpksLDM-.js";import"./integration-icon-D74EpYgv.js";import"./use-navigate-to-agent-DZwula5s.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CRvFGO5O.js";import"./form-ZPjO3One.js";import"./drawer-Cu1H6Zpl.js";import"./collection-search-D4kzf4BZ.js";import"./toggle-group-SYBG9bZR.js";import"./use-deco-credits-rxapxW2c.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BddaDWk3.js";import"./use-registry-connections-ml5ez91l.js";import"./extract-connection-data-DkYKg47U.js";import"./collection-tabs-CwblhJGY.js";import"./connection-form-helpers-B3t0vd0x.js";import"./authenticate-and-persist-oauth-Bb5P11Gd.js";import"./mcp-oauth-CDqgI2Xn.js";import"./connect-desktop-dialog-BSEnA0YE.js";import"./select-model-D8LB7zlx.js";import"./skeleton-D824Y8b-.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CHSsdIIo.js";import"./dropdown-menu-BlorfjU6.js";import"./index-BeTttHS9.js";import"./toolbar-V6M48IQV.js";import"./use-debounced-value-DEfVi-aN.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DUjqcw9j.js";import"./use-mcp-tools-PUeX7iQD.js";import"./use-capability-BtQYj-6N.js";import"./tools-list-CvZ2H4zV.js";import"./switch-DLw5svpB.js";import"./use-debounced-autosave-Cumlh74L.js";import"./index-1xWIMGUU.js";import"./search-input-B9lRxCGI.js";import"./github-repo-picker-DneVvY3I.js";import"./github-installations-ChFezl8I.js";import"./use-secrets-DXp4vVpG.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-CrqiPrVn.js";import"./index-D-JmKBPU.js";import"./get-initials-D-f_fDFw.js";import"./calendar-D9BWcxij.js";import"./toolbar-icon-button-DapYdi-A.js";import"./use-file-configs-BaRnwcsF.js";import"./automation-list-row-BrrHJBg_.js";function ke(g){return Array.isArray(g)?g.map(e=>({key:E(e?.key),value:E(e?.value)})):[]}function Co(g){const e=H.c(66),{orgSlug:o,virtualMcpId:m,branch:i,blockKey:f,block:a,decofile:l,meta:c,previewBaseUrl:h}=g;let x;e[0]!==i||e[1]!==o||e[2]!==m?(x={orgSlug:o,virtualMcpId:m,branch:i},e[0]=i,e[1]=o,e[2]=m,e[3]=x):x=e[3];const r=ae(x);let p;e[4]!==a?(p=me(a,"posts"),e[4]=a,e[5]=p):p=e[5];const d=p;let n;e[6]!==f||e[7]!==r?(n=F=>{r.mutate({blockKey:f,data:ne(f,"posts",ce(F))})},e[6]=f,e[7]=r,e[8]=n):n=e[8];const[s,N]=je(d,n);let S;e[9]!==s||e[10]!==N?(S=(F,Y)=>N({...s,[F]:Y}),e[9]=s,e[10]=N,e[11]=S):S=e[11];const v=S;let w;e[12]!==l||e[13]!==s||e[14]!==h?(w=he({decofile:l,post:s,previewBaseUrl:h}),e[12]=l,e[13]=s,e[14]=h,e[15]=w):w=e[15];const j=w;let b;e[16]!==s.title?(b=E(s.title)||"Untitled post",e[16]=s.title,e[17]=b):b=e[17];let y;e[18]!==b?(y=t.jsx("span",{className:"truncate text-sm font-medium",children:b}),e[18]=b,e[19]=y):y=e[19];let C;e[20]!==r.isError||e[21]!==r.isPending?(C=t.jsx(pe,{isPending:r.isPending,isError:r.isError}),e[20]=r.isError,e[21]=r.isPending,e[22]=C):C=e[22];const P=!j,_=j?"Open the post preview in a new tab":"Set the post slug (and its category) plus the blog app's pageSlug to preview";let k;e[23]!==j?(k=()=>{j&&window.open(j,"_blank","noopener,noreferrer")},e[23]=j,e[24]=k):k=e[24];let B;e[25]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx(ee,{size:14}),e[25]=B):B=e[25];let u;e[26]!==_||e[27]!==k||e[28]!==P?(u=t.jsxs(Z,{type:"button",variant:"outline",size:"sm",disabled:P,title:_,onClick:k,children:[B,"See preview"]}),e[26]=_,e[27]=k,e[28]=P,e[29]=u):u=e[29];let T;e[30]!==u||e[31]!==C?(T=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[C,u]}),e[30]=u,e[31]=C,e[32]=T):T=e[32];let R;e[33]!==T||e[34]!==y?(R=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[y,T]}),e[33]=T,e[34]=y,e[35]=R):R=e[35];let A;e[36]!==s.title?(A=E(s.title),e[36]=s.title,e[37]=A):A=e[37];let L;e[38]!==v?(L=F=>v("title",F),e[38]=v,e[39]=L):L=e[39];let I;e[40]!==A||e[41]!==L?(I=t.jsx(be,{value:A,onChange:L,placeholder:"Post title",className:"py-1 text-4xl font-bold text-foreground"}),e[40]=A,e[41]=L,e[42]=I):I=e[42];let K;e[43]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsxs(Q,{value:"content",children:[t.jsx(te,{}),"Content"]}),e[43]=K):K=e[43];let O;e[44]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsxs(se,{children:[K,t.jsxs(Q,{value:"settings",children:[t.jsx(ie,{}),"Settings"]})]}),e[44]=O):O=e[44];let U;e[45]!==s.sections?(U=ge(s.sections),e[45]=s.sections,e[46]=U):U=e[46];let V;e[47]!==v?(V=F=>v("sections",F),e[47]=v,e[48]=V):V=e[48];let $;e[49]!==c||e[50]!==U||e[51]!==V?($=t.jsx(W,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(ve,{value:U,onChange:V,meta:c,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."})})}),e[49]=c,e[50]=U,e[51]=V,e[52]=$):$=e[52];let M;e[53]!==l||e[54]!==s||e[55]!==v?(M=t.jsx(W,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(Ne,{post:s,decofile:l,onChange:v})})}),e[53]=l,e[54]=s,e[55]=v,e[56]=M):M=e[56];let z;e[57]!==$||e[58]!==M?(z=t.jsxs(re,{defaultValue:"content",className:"mt-6 gap-4",children:[O,$,M]}),e[57]=$,e[58]=M,e[59]=z):z=e[59];let D;e[60]!==I||e[61]!==z?(D=t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[I,z]})}),e[60]=I,e[61]=z,e[62]=D):D=e[62];let q;return e[63]!==R||e[64]!==D?(q=t.jsxs("div",{className:"flex h-full flex-col",children:[R,D]}),e[63]=R,e[64]=D,e[65]=q):q=e[65],q}function Ne(g){const e=H.c(57),{post:o,decofile:m,onChange:i}=g;let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(G,{htmlFor:"post-excerpt",children:"Excerpt"}),e[0]=f):f=e[0];let a;e[1]!==o.excerpt?(a=E(o.excerpt),e[1]=o.excerpt,e[2]=a):a=e[2];let l;e[3]!==i?(l=u=>i("excerpt",u.target.value),e[3]=i,e[4]=l):l=e[4];let c;e[5]!==a||e[6]!==l?(c=t.jsxs("div",{className:"space-y-2",children:[f,t.jsx(le,{id:"post-excerpt",value:a,onChange:l,rows:2})]}),e[5]=a,e[6]=l,e[7]=c):c=e[7];let h;e[8]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(G,{htmlFor:"post-slug",children:"Slug"}),e[8]=h):h=e[8];let x;e[9]!==o.slug?(x=E(o.slug),e[9]=o.slug,e[10]=x):x=e[10];let r;e[11]!==i?(r=u=>i("slug",u.target.value),e[11]=i,e[12]=r):r=e[12];let p;e[13]!==x||e[14]!==r?(p=t.jsxs("div",{className:"space-y-2",children:[h,t.jsx(J,{id:"post-slug",value:x,onChange:r,placeholder:"my-post",className:"h-10"})]}),e[13]=x,e[14]=r,e[15]=p):p=e[15];let d;e[16]===Symbol.for("react.memo_cache_sentinel")?(d={type:"string",format:"date",title:"Date"},e[16]=d):d=e[16];let n;e[17]!==o.date?(n=E(o.date),e[17]=o.date,e[18]=n):n=e[18];let s;e[19]!==i?(s=u=>i("date",u),e[19]=i,e[20]=s):s=e[20];let N;e[21]!==n||e[22]!==s?(N=t.jsx(xe,{schema:d,value:n,onChange:s,path:"post-date",label:"Date"}),e[21]=n,e[22]=s,e[23]=N):N=e[23];let S;e[24]!==N||e[25]!==p?(S=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p,N]}),e[24]=N,e[25]=p,e[26]=S):S=e[26];let v;e[27]===Symbol.for("react.memo_cache_sentinel")?(v={type:"string",format:"image-uri",title:"Cover image"},e[27]=v):v=e[27];let w;e[28]!==i?(w=u=>i("image",u),e[28]=i,e[29]=w):w=e[29];let j;e[30]!==o.image||e[31]!==w?(j=t.jsx(de,{schema:v,value:o.image,onChange:w,path:"post-image",label:"Cover image"}),e[30]=o.image,e[31]=w,e[32]=j):j=e[32];let b;e[33]!==i?(b=u=>i("authors",u),e[33]=i,e[34]=b):b=e[34];let y;e[35]!==m||e[36]!==o.authors||e[37]!==b?(y=t.jsx(X,{label:"Authors",decofile:m,kind:"authors",valueField:"email",toRef:we,selected:o.authors,onChange:b}),e[35]=m,e[36]=o.authors,e[37]=b,e[38]=y):y=e[38];let C;e[39]!==i?(C=u=>i("categories",u),e[39]=i,e[40]=C):C=e[40];let P;e[41]!==m||e[42]!==o.categories||e[43]!==C?(P=t.jsx(X,{label:"Categories",decofile:m,kind:"categories",valueField:"slug",toRef:Se,selected:o.categories,onChange:C}),e[41]=m,e[42]=o.categories,e[43]=C,e[44]=P):P=e[44];let _;e[45]!==i?(_=u=>i("extraProps",u),e[45]=i,e[46]=_):_=e[46];let k;e[47]!==o.extraProps||e[48]!==_?(k=t.jsx(Pe,{value:o.extraProps,onChange:_}),e[47]=o.extraProps,e[48]=_,e[49]=k):k=e[49];let B;return e[50]!==S||e[51]!==j||e[52]!==y||e[53]!==P||e[54]!==k||e[55]!==c?(B=t.jsxs("div",{className:"space-y-5",children:[c,S,j,y,P,k]}),e[50]=S,e[51]=j,e[52]=y,e[53]=P,e[54]=k,e[55]=c,e[56]=B):B=e[56],B}function Se(g){return{name:E(g.name),slug:E(g.slug)}}function we(g){return{...g}}function Pe(g){const e=H.c(15),{value:o,onChange:m}=g;let i,f,a,l;if(e[0]!==m||e[1]!==o){i=ke(o);const x=(r,p)=>m(i.map((d,n)=>n===r?{...d,...p}:d));f="space-y-2",e[6]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(G,{children:"Extra props"}),e[6]=a):a=e[6],l=i.length>0&&t.jsx("ul",{className:"space-y-2",children:i.map((r,p)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(J,{value:r.key,onChange:d=>x(p,{key:d.target.value}),placeholder:"key",className:"h-9 flex-1"}),t.jsx(J,{value:r.value,onChange:d=>x(p,{value:d.target.value}),placeholder:"value",className:"h-9 flex-1"}),t.jsx(ye,{label:"Remove prop",onClick:()=>m(i.filter((d,n)=>n!==p))})]},p))}),e[0]=m,e[1]=o,e[2]=i,e[3]=f,e[4]=a,e[5]=l}else i=e[2],f=e[3],a=e[4],l=e[5];let c;e[7]!==i||e[8]!==m?(c=t.jsx(Ce,{label:"Add prop",onClick:()=>m([...i,{key:"",value:""}])}),e[7]=i,e[8]=m,e[9]=c):c=e[9];let h;return e[10]!==f||e[11]!==a||e[12]!==l||e[13]!==c?(h=t.jsxs("div",{className:f,children:[a,l,c]}),e[10]=f,e[11]=a,e[12]=l,e[13]=c,e[14]=h):h=e[14],h}function X(g){const e=H.c(17),{label:o,decofile:m,kind:i,valueField:f,toRef:a,selected:l,onChange:c}=g;let h;e[0]!==m||e[1]!==i||e[2]!==l||e[3]!==a||e[4]!==f?(h=fe({records:ue(m,i),selected:l,valueField:f,toRef:a}),e[0]=m,e[1]=i,e[2]=l,e[3]=a,e[4]=f,e[5]=h):h=e[5];const{options:x,selectedValues:r,refsForValues:p}=h;let d;e[6]!==o?(d=t.jsx(G,{children:o}),e[6]=o,e[7]=d):d=e[7];let n;e[8]!==o||e[9]!==c||e[10]!==x||e[11]!==p||e[12]!==r?(n=x.length===0?t.jsxs("p",{className:"text-xs text-muted-foreground",children:["No ",o.toLowerCase()," yet — create some in the"," ",o.toLowerCase()," collection."]}):t.jsx(oe,{options:x,defaultValue:r,onValueChange:N=>c(p(N)),placeholder:`Select ${o.toLowerCase()}`,maxCount:4}),e[8]=o,e[9]=c,e[10]=x,e[11]=p,e[12]=r,e[13]=n):n=e[13];let s;return e[14]!==d||e[15]!==n?(s=t.jsxs("div",{className:"space-y-2",children:[d,n]}),e[14]=d,e[15]=n,e[16]=s):s=e[16],s}export{Co as PostEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as L,C as H,j as U}from"./index-C5JCmVQ0.js";import{a as O,g as $,s as E}from"./automation-runs-_xFJy_Wv.js";import{u as k}from"./use-mcp-client-DlCO79GA.js";import{p as B}from"./constants-D_FQAPnt.js";import{b as V,c as Y}from"./use-mcp-tools-PUeX7iQD.js";import{u as q}from"./index-PCoZIk-M.js";import{c as G}from"./monaco-editor-DYdw6m6P.js";import{g as K,M as W,a as D}from"./index-emjsrsD0.js";import{b as z,a as F}from"./chat-context-BhPkOl45.js";import{u as J}from"./shell-layout-TAILJ-da.js";import{O as Q}from"./tab-id-BijBBRwE.js";import"./select-D59HzWyb.js";import"./tooltip-DjWNMg5T.js";import"./Check-BbAbdPfp.js";import"./ChevronDown-BsEi-r9q.js";import"./ChevronUp-BWoVqFrM.js";import"./useInfiniteQuery-D-yVKxn2.js";import"./use-infinite-scroll-WwPPe2Wp.js";import"./use-connection-DhRKlWkl.js";import"./use-collections-Kwxr6RPv.js";import"./use-virtual-mcp-KZlYJNMn.js";import"./card-1ZIM8JYb.js";import"./sidebar-i7yNFNs9.js";import"./LayoutLeft-C6uN3ryJ.js";import"./use-mobile-vXwkCjTm.js";import"./X-CNdIeej8.js";import"./table-B8kPpHAC.js";import"./empty-state-D0Yjh42T.js";import"./use-members-CP1GrgsV.js";import"./use-org-auth-client-BeUafwOm.js";import"./use-clock-tick-BNpEZMto.js";import"./AlertCircle-CX23NCuO.js";import"./CheckCircle-Day5nLHt.js";import"./Circle-Bj_xS3WU.js";import"./agent-icon-DMtjBPX3.js";import"./UserPlus01-13KHecKW.js";import"./Tool01-BT4kICfE.js";import"./ArrowUp-ChoUWc1b.js";import"./Settings02-DAAnVZLO.js";import"./Tool02-vM8N2pYB.js";import"./XCircle-C9sRiEE0.js";import"./ArrowUpRight-Bq-zX9ha.js";import"./TrendUp01-CBDxjtVg.js";import"./ZapSquare-BV8kr37_.js";import"./Users03-ZlQye2vY.js";import"./ChevronRight-B9mybD1s.js";import"./Stars02-B9xmjTkg.js";import"./Eye-CyP9kYwn.js";import"./ZoomOut-7nLppLEs.js";import"./DotsVertical-BQRa2EB9.js";import"./Globe01-CC0A4U7g.js";import"./FilterLines-C5i4i3WB.js";import"./Flag01-C7YxvVFh.js";import"./Star01-Bb61R21H.js";import"./Globe04-BV89vsfi.js";import"./SwitchHorizontal01-C90B2Auk.js";import"./HardDrive-CA9cG4ej.js";import"./Key01-Y2tTMtA8.js";import"./LinkExternal01-CbW1jJhi.js";import"./List-MOccGrJp.js";import"./Monitor01-DBUBWT-e.js";import"./Sun-wOtTFTOd.js";import"./Package-BL3B6ONo.js";import"./Palette-B0oAitOJ.js";import"./Play-zjQOd6w0.js";import"./Plus-DATZ4-ND.js";import"./SearchLg-B4W4xrFH.js";import"./SearchMd-CKL74aOj.js";import"./Shield01-IlYcL8Fi.js";import"./Stars01-Bnuoinbt.js";import"./Trash01-CrwbV8c_.js";import"./Upload01-Lp0wJMYr.js";import"./User01-CQV6kRtR.js";import"./Users01-CDDfUziK.js";import"./XClose-4pjmwtT4.js";import"./Zap-DHGChPV2.js";import"./use-automations-kY9mTa0N.js";import"./studio-tools--pllMpfK.js";import"./useSuspenseInfiniteQuery-QFUkmQtZ.js";import"./badge-BR8ZoQPH.js";import"./checkbox-YuHG4ViR.js";import"./command-DRUw9pTQ.js";import"./index-BOaCGG-5.js";import"./dialog-DfnhzCwv.js";import"./popover-DL95paTt.js";import"./avatar-CfHetrJ0.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-C62zVzDi.js";import"./file-type-icon-CyQSc8WD.js";import"./hooks-DsQUp7L9.js";import"./decopilot-sse-pool-B1izZBf2.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./integration-icon-D74EpYgv.js";import"./use-navigate-to-agent-DZwula5s.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CRvFGO5O.js";import"./form-ZPjO3One.js";import"./label-CjR-YPrA.js";import"./input-DWv95vY4.js";import"./auth-DIzgjm9h.js";import"./drawer-Cu1H6Zpl.js";import"./collection-search-D4kzf4BZ.js";import"./autosend-BX8nQnW3.js";import"./tabs-C19FaLXY.js";import"./toggle-group-SYBG9bZR.js";import"./use-deco-credits-rxapxW2c.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BddaDWk3.js";import"./use-registry-connections-ml5ez91l.js";import"./use-organization-settings-BFGZ9YuD.js";import"./extract-connection-data-DkYKg47U.js";import"./collection-tabs-CwblhJGY.js";import"./textarea-DGICe7Jx.js";import"./connection-form-helpers-B3t0vd0x.js";import"./authenticate-and-persist-oauth-Bb5P11Gd.js";import"./mcp-oauth-CDqgI2Xn.js";import"./use-ai-providers-CQmOOELp.js";import"./connect-desktop-dialog-BSEnA0YE.js";import"./select-model-D8LB7zlx.js";import"./skeleton-D824Y8b-.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CHSsdIIo.js";import"./dropdown-menu-BlorfjU6.js";import"./index-BeTttHS9.js";import"./alert-dialog-IVNf28U9.js";import"./toolbar-V6M48IQV.js";import"./use-debounced-value-DEfVi-aN.js";import"./index-B8Idfh3P.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DUjqcw9j.js";import"./use-decopilot-events-Cww7ZCTK.js";import"./use-capability-BtQYj-6N.js";import"./tools-list-CvZ2H4zV.js";import"./switch-DLw5svpB.js";import"./use-debounced-autosave-Cumlh74L.js";import"./index-1xWIMGUU.js";import"./search-input-B9lRxCGI.js";import"./github-repo-picker-DneVvY3I.js";import"./github-installations-ChFezl8I.js";import"./use-secrets-DXp4vVpG.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-CrqiPrVn.js";import"./index-D-JmKBPU.js";import"./get-initials-D-f_fDFw.js";import"./calendar-D9BWcxij.js";import"./toolbar-icon-button-DapYdi-A.js";import"./use-file-configs-BaRnwcsF.js";import"./automation-list-row-BrrHJBg_.js";import"./required-auth-layout-BLRuxjNn.js";import"./use-org-sso-CpksLDM-.js";const X="studio://navigate";function Z(M){const[t]=M;if(M.length!==1||t?.type!=="resource_link"||!t.uri.startsWith(X))return{isNavigate:!1};let o=null;try{o=new URL(t.uri).searchParams.get("main")}catch{}return{isNavigate:!0,tab:o&&Q.has(o)?o:null}}const tt={};function ot(M){const t=L.c(38),{client:o,resourceURI:I,tool:i,connectionId:p,orgId:a,args:v}=M,{sendMessage:C}=z(),{setAppContext:d,clearAppContext:l}=F(),{openSidePanel:g,openTab:s}=J(),r=`${p}:${i.name}`;let c;t[0]!==s?(c=x=>x==="inline"?(s("0"),"inline"):"fullscreen",t[0]=s,t[1]=c):c=t[1];const m=c,n=v??tt;let u;t[2]!==o||t[3]!==i.name||t[4]!==n?(u={client:o,toolName:i.name,toolArguments:n},t[2]=o,t[3]=i.name,t[4]=n,t[5]=u):u=t[5];const{data:e}=Y(u);let h;if(t[6]!==i._meta||t[7]!==i.name){const x=$(i._meta);h=E(i.name,x),t[6]=i._meta,t[7]=i.name,t[8]=h}else h=t[8];const A=h;let f;t[9]!==i.inputSchema?(f=i.inputSchema??{type:"object"},t[9]=i.inputSchema,t[10]=f):f=t[10];let R;t[11]!==A||t[12]!==f||t[13]!==i?(R={...i,name:A,inputSchema:f},t[11]=A,t[12]=f,t[13]=i,t[14]=R):R=t[14];const b=R;let _;t[15]!==g||t[16]!==s||t[17]!==C?(_=x=>{const j=Z(x.content);if(j.isNavigate){j.tab&&s(j.tab);return}const w=G(x.content);w.content.length>0&&(g("chat"),C({tiptapDoc:w}))},t[15]=g,t[16]=s,t[17]=C,t[18]=_):_=t[18];const y=_;let P;t[19]!==b?(P={tool:b},t[19]=b,t[20]=P):P=t[20];let N;t[21]!==d||t[22]!==r?(N=x=>d(r,x),t[21]=d,t[22]=r,t[23]=N):N=t[23];let T;t[24]!==l||t[25]!==r?(T=()=>l(r),t[24]=l,t[25]=r,t[26]=T):T=t[26];let S;return t[27]!==o||t[28]!==y||t[29]!==m||t[30]!==a||t[31]!==I||t[32]!==P||t[33]!==N||t[34]!==T||t[35]!==n||t[36]!==e?(S=U.jsx(W,{resourceURI:I,orgId:a,toolInfo:P,toolInput:n,toolResult:e,displayMode:"fullscreen",minHeight:D.fullscreen.minHeight,maxHeight:D.fullscreen.maxHeight,client:o,onMessage:y,onUpdateModelContext:N,onTeardown:T,onRequestDisplayMode:m,className:"h-full"}),t[27]=o,t[28]=y,t[29]=m,t[30]=a,t[31]=I,t[32]=P,t[33]=N,t[34]=T,t[35]=n,t[36]=e,t[37]=S):S=t[37],S}function Wi(M){const t=L.c(24),{connectionId:o,toolName:I,args:i}=M,{org:p}=H(),a=q();let v;t[0]!==o||t[1]!==a?(v=B(o)&&a.vmEntry?.sandboxProviderKind==="user-desktop"&&a.previewUrl?`${a.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=o,t[1]=a,t[2]=v):v=t[2];const C=v;let d;t[3]!==o||t[4]!==C||t[5]!==p.id||t[6]!==p.slug?(d={connectionId:o,orgId:p.id,orgSlug:p.slug,mcpUrl:C},t[3]=o,t[4]=C,t[5]=p.id,t[6]=p.slug,t[7]=d):d=t[7];const l=k(d);let g;t[8]!==l?(g={client:l},t[8]=l,t[9]=g):g=t[9];const{data:s}=V(g);let r,c,m;t[10]!==I||t[11]!==s.tools?(r=O(decodeURIComponent(I)),m=s.tools.find(e=>e.name===r)??s.tools.find(e=>{const h=$(e._meta);if(!h)return!1;if(E(e.name,h)===r)return!0;const f=E(r,h);return f!==r&&e.name===f}),c=m?._meta?K(m._meta):void 0,t[10]=I,t[11]=s.tools,t[12]=r,t[13]=c,t[14]=m):(r=t[12],c=t[13],m=t[14]);const n=c;if(!m||!n){let e;return t[15]!==r?(e=U.jsx("div",{className:"flex items-center justify-center h-full w-full",children:U.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',r,'" not found or has no UI']})}),t[15]=r,t[16]=e):e=t[16],e}let u;return t[17]!==i||t[18]!==l||t[19]!==o||t[20]!==p.id||t[21]!==n||t[22]!==m?(u=U.jsx(ot,{client:l,resourceURI:n,tool:m,connectionId:o,orgId:p.id,args:i}),t[17]=i,t[18]=l,t[19]=o,t[20]=p.id,t[21]=n,t[22]=m,t[23]=u):u=t[23],u}export{Wi as AppViewContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as C,j as o}from"./index-C5JCmVQ0.js";import{I as B}from"./input-DWv95vY4.js";import{L as T}from"./label-CjR-YPrA.js";import{S as L,a as A,b as R,c as z,d as O}from"./select-D59HzWyb.js";import{T as V}from"./textarea-DGICe7Jx.js";import{v as D,w as J,o as K,x as M,I as _}from"./index-PCoZIk-M.js";import{s as F}from"./primitives-CnjPXZBb.js";import{u as $}from"./use-autosave-DhXH8ptD.js";import"./tooltip-DjWNMg5T.js";import"./Check-BbAbdPfp.js";import"./ChevronDown-BsEi-r9q.js";import"./ChevronUp-BWoVqFrM.js";import"./ArrowUp-ChoUWc1b.js";import"./chat-context-BhPkOl45.js";import"./autosend-BX8nQnW3.js";import"./hooks-DsQUp7L9.js";import"./use-mcp-client-DlCO79GA.js";import"./constants-D_FQAPnt.js";import"./auth-DIzgjm9h.js";import"./decopilot-sse-pool-B1izZBf2.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools--pllMpfK.js";import"./use-virtual-mcp-KZlYJNMn.js";import"./use-collections-Kwxr6RPv.js";import"./use-ai-providers-CQmOOELp.js";import"./use-decopilot-events-Cww7ZCTK.js";import"./tab-id-BijBBRwE.js";import"./use-organization-settings-BFGZ9YuD.js";import"./automation-runs-_xFJy_Wv.js";import"./useInfiniteQuery-D-yVKxn2.js";import"./use-infinite-scroll-WwPPe2Wp.js";import"./use-connection-DhRKlWkl.js";import"./card-1ZIM8JYb.js";import"./sidebar-i7yNFNs9.js";import"./LayoutLeft-C6uN3ryJ.js";import"./use-mobile-vXwkCjTm.js";import"./X-CNdIeej8.js";import"./table-B8kPpHAC.js";import"./empty-state-D0Yjh42T.js";import"./use-members-CP1GrgsV.js";import"./use-org-auth-client-BeUafwOm.js";import"./use-clock-tick-BNpEZMto.js";import"./AlertCircle-CX23NCuO.js";import"./CheckCircle-Day5nLHt.js";import"./Circle-Bj_xS3WU.js";import"./agent-icon-DMtjBPX3.js";import"./UserPlus01-13KHecKW.js";import"./Tool01-BT4kICfE.js";import"./Settings02-DAAnVZLO.js";import"./Tool02-vM8N2pYB.js";import"./XCircle-C9sRiEE0.js";import"./ArrowUpRight-Bq-zX9ha.js";import"./TrendUp01-CBDxjtVg.js";import"./ZapSquare-BV8kr37_.js";import"./Users03-ZlQye2vY.js";import"./ChevronRight-B9mybD1s.js";import"./Stars02-B9xmjTkg.js";import"./Eye-CyP9kYwn.js";import"./ZoomOut-7nLppLEs.js";import"./DotsVertical-BQRa2EB9.js";import"./Globe01-CC0A4U7g.js";import"./FilterLines-C5i4i3WB.js";import"./Flag01-C7YxvVFh.js";import"./Star01-Bb61R21H.js";import"./Globe04-BV89vsfi.js";import"./SwitchHorizontal01-C90B2Auk.js";import"./HardDrive-CA9cG4ej.js";import"./Key01-Y2tTMtA8.js";import"./LinkExternal01-CbW1jJhi.js";import"./List-MOccGrJp.js";import"./Monitor01-DBUBWT-e.js";import"./Sun-wOtTFTOd.js";import"./Package-BL3B6ONo.js";import"./Palette-B0oAitOJ.js";import"./Play-zjQOd6w0.js";import"./Plus-DATZ4-ND.js";import"./SearchLg-B4W4xrFH.js";import"./SearchMd-CKL74aOj.js";import"./Shield01-IlYcL8Fi.js";import"./Stars01-Bnuoinbt.js";import"./Trash01-CrwbV8c_.js";import"./Upload01-Lp0wJMYr.js";import"./User01-CQV6kRtR.js";import"./Users01-CDDfUziK.js";import"./XClose-4pjmwtT4.js";import"./Zap-DHGChPV2.js";import"./use-automations-kY9mTa0N.js";import"./useSuspenseInfiniteQuery-QFUkmQtZ.js";import"./badge-BR8ZoQPH.js";import"./checkbox-YuHG4ViR.js";import"./command-DRUw9pTQ.js";import"./index-BOaCGG-5.js";import"./dialog-DfnhzCwv.js";import"./popover-DL95paTt.js";import"./avatar-CfHetrJ0.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-C62zVzDi.js";import"./file-type-icon-CyQSc8WD.js";import"./monaco-editor-DYdw6m6P.js";import"./index-B8Idfh3P.js";import"./index-emjsrsD0.js";import"./shell-layout-TAILJ-da.js";import"./alert-dialog-IVNf28U9.js";import"./required-auth-layout-BLRuxjNn.js";import"./use-org-sso-CpksLDM-.js";import"./integration-icon-D74EpYgv.js";import"./use-navigate-to-agent-DZwula5s.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CRvFGO5O.js";import"./form-ZPjO3One.js";import"./drawer-Cu1H6Zpl.js";import"./collection-search-D4kzf4BZ.js";import"./tabs-C19FaLXY.js";import"./toggle-group-SYBG9bZR.js";import"./use-deco-credits-rxapxW2c.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BddaDWk3.js";import"./use-registry-connections-ml5ez91l.js";import"./extract-connection-data-DkYKg47U.js";import"./collection-tabs-CwblhJGY.js";import"./connection-form-helpers-B3t0vd0x.js";import"./authenticate-and-persist-oauth-Bb5P11Gd.js";import"./mcp-oauth-CDqgI2Xn.js";import"./connect-desktop-dialog-BSEnA0YE.js";import"./select-model-D8LB7zlx.js";import"./skeleton-D824Y8b-.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CHSsdIIo.js";import"./dropdown-menu-BlorfjU6.js";import"./index-BeTttHS9.js";import"./toolbar-V6M48IQV.js";import"./use-debounced-value-DEfVi-aN.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DUjqcw9j.js";import"./use-mcp-tools-PUeX7iQD.js";import"./use-capability-BtQYj-6N.js";import"./tools-list-CvZ2H4zV.js";import"./switch-DLw5svpB.js";import"./use-debounced-autosave-Cumlh74L.js";import"./index-1xWIMGUU.js";import"./search-input-B9lRxCGI.js";import"./github-repo-picker-DneVvY3I.js";import"./github-installations-ChFezl8I.js";import"./use-secrets-DXp4vVpG.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-CrqiPrVn.js";import"./index-D-JmKBPU.js";import"./get-initials-D-f_fDFw.js";import"./calendar-D9BWcxij.js";import"./toolbar-icon-button-DapYdi-A.js";import"./use-file-configs-BaRnwcsF.js";import"./automation-list-row-BrrHJBg_.js";const q={authors:[{key:"name",label:"Name",widget:"text"},{key:"type",label:"Type",widget:"select",options:[{value:"Person",label:"Person"},{value:"Organization",label:"Organization"}]},{key:"email",label:"Email",widget:"text",placeholder:"author@example.com"},{key:"jobTitle",label:"Job title",widget:"text"},{key:"company",label:"Company",widget:"text"},{key:"avatar",label:"Avatar",widget:"image"}]},G={authors:"Author"};function Ko(g){const t=C.c(34),{orgSlug:j,virtualMcpId:w,branch:S,kind:e,blockKey:h,block:E}=g;let y;t[0]!==S||t[1]!==j||t[2]!==w?(y={orgSlug:j,virtualMcpId:w,branch:S},t[0]=S,t[1]=j,t[2]=w,t[3]=y):y=t[3];const m=D(y);let d;t[4]!==E||t[5]!==e?(d=J(E,e),t[4]=E,t[5]=e,t[6]=d):d=t[6];const f=d;let k;t[7]!==h||t[8]!==e||t[9]!==m?(k=a=>{m.mutate({blockKey:h,data:M(h,e,a)})},t[7]=h,t[8]=e,t[9]=m,t[10]=k):k=t[10];const[i,N]=$(f,k);let b;t[11]!==i||t[12]!==N?(b=(a,r)=>N({...i,[a]:r}),t[11]=i,t[12]=N,t[13]=b):b=t[13];const p=b,I=G[e];let l;t[14]!==I?(l=o.jsx("span",{className:"text-sm font-medium",children:I}),t[14]=I,t[15]=l):l=t[15];let n;t[16]!==m.isError||t[17]!==m.isPending?(n=o.jsx(K,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=n):n=t[18];let c;t[19]!==l||t[20]!==n?(c=o.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[l,n]}),t[19]=l,t[20]=n,t[21]=c):c=t[21];const P=q[e];let u;if(t[22]!==i||t[23]!==p||t[24]!==P){let a;t[26]!==i||t[27]!==p?(a=r=>o.jsx("div",{className:"space-y-2",children:r.widget==="image"?o.jsx(_,{schema:{type:"string",format:"image-uri",title:r.label},value:i[r.key],onChange:s=>p(r.key,s),path:r.key,label:r.label}):r.widget==="select"?o.jsxs(o.Fragment,{children:[o.jsx(T,{htmlFor:r.key,children:r.label}),o.jsxs(L,{value:F(i[r.key])||r.options?.[0]?.value,onValueChange:s=>p(r.key,s),children:[o.jsx(A,{id:r.key,className:"h-10 w-full",children:o.jsx(R,{placeholder:r.label})}),o.jsx(z,{children:(r.options??[]).map(H)})]})]}):o.jsxs(o.Fragment,{children:[o.jsx(T,{htmlFor:r.key,children:r.label}),r.widget==="textarea"?o.jsx(V,{id:r.key,value:F(i[r.key]),onChange:s=>p(r.key,s.target.value),rows:3}):o.jsx(B,{id:r.key,value:F(i[r.key]),placeholder:r.placeholder,onChange:s=>p(r.key,s.target.value),className:"h-10"})]})},r.key),t[26]=i,t[27]=p,t[28]=a):a=t[28],u=P.map(a),t[22]=i,t[23]=p,t[24]=P,t[25]=u}else u=t[25];let x;t[29]!==u?(x=o.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:o.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:u})}),t[29]=u,t[30]=x):x=t[30];let v;return t[31]!==x||t[32]!==c?(v=o.jsxs("div",{className:"flex h-full flex-col",children:[c,x]}),t[31]=x,t[32]=c,t[33]=v):v=t[33],v}function H(g){return o.jsx(O,{value:g.value,children:g.label},g.value)}export{Ko as RecordEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as X,j as t}from"./index-C5JCmVQ0.js";import{C as Y}from"./checkbox-YuHG4ViR.js";import{I as K}from"./input-DWv95vY4.js";import{L as q}from"./label-CjR-YPrA.js";import{c as z,S as G,d as H,a as J,b as Z}from"./select-D59HzWyb.js";import{k as ee,aV as te,o as re,aW as M,aX as ie}from"./index-PCoZIk-M.js";import{u as oe}from"./use-autosave-DhXH8ptD.js";import"./Check-BbAbdPfp.js";import"./tooltip-DjWNMg5T.js";import"./ChevronDown-BsEi-r9q.js";import"./ChevronUp-BWoVqFrM.js";import"./ArrowUp-ChoUWc1b.js";import"./chat-context-BhPkOl45.js";import"./autosend-BX8nQnW3.js";import"./hooks-DsQUp7L9.js";import"./use-mcp-client-DlCO79GA.js";import"./constants-D_FQAPnt.js";import"./auth-DIzgjm9h.js";import"./decopilot-sse-pool-B1izZBf2.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools--pllMpfK.js";import"./use-virtual-mcp-KZlYJNMn.js";import"./use-collections-Kwxr6RPv.js";import"./use-ai-providers-CQmOOELp.js";import"./use-decopilot-events-Cww7ZCTK.js";import"./tab-id-BijBBRwE.js";import"./use-organization-settings-BFGZ9YuD.js";import"./automation-runs-_xFJy_Wv.js";import"./useInfiniteQuery-D-yVKxn2.js";import"./use-infinite-scroll-WwPPe2Wp.js";import"./use-connection-DhRKlWkl.js";import"./card-1ZIM8JYb.js";import"./sidebar-i7yNFNs9.js";import"./LayoutLeft-C6uN3ryJ.js";import"./use-mobile-vXwkCjTm.js";import"./X-CNdIeej8.js";import"./table-B8kPpHAC.js";import"./empty-state-D0Yjh42T.js";import"./use-members-CP1GrgsV.js";import"./use-org-auth-client-BeUafwOm.js";import"./use-clock-tick-BNpEZMto.js";import"./AlertCircle-CX23NCuO.js";import"./CheckCircle-Day5nLHt.js";import"./Circle-Bj_xS3WU.js";import"./agent-icon-DMtjBPX3.js";import"./UserPlus01-13KHecKW.js";import"./Tool01-BT4kICfE.js";import"./Settings02-DAAnVZLO.js";import"./Tool02-vM8N2pYB.js";import"./XCircle-C9sRiEE0.js";import"./ArrowUpRight-Bq-zX9ha.js";import"./TrendUp01-CBDxjtVg.js";import"./ZapSquare-BV8kr37_.js";import"./Users03-ZlQye2vY.js";import"./ChevronRight-B9mybD1s.js";import"./Stars02-B9xmjTkg.js";import"./Eye-CyP9kYwn.js";import"./ZoomOut-7nLppLEs.js";import"./DotsVertical-BQRa2EB9.js";import"./Globe01-CC0A4U7g.js";import"./FilterLines-C5i4i3WB.js";import"./Flag01-C7YxvVFh.js";import"./Star01-Bb61R21H.js";import"./Globe04-BV89vsfi.js";import"./SwitchHorizontal01-C90B2Auk.js";import"./HardDrive-CA9cG4ej.js";import"./Key01-Y2tTMtA8.js";import"./LinkExternal01-CbW1jJhi.js";import"./List-MOccGrJp.js";import"./Monitor01-DBUBWT-e.js";import"./Sun-wOtTFTOd.js";import"./Package-BL3B6ONo.js";import"./Palette-B0oAitOJ.js";import"./Play-zjQOd6w0.js";import"./Plus-DATZ4-ND.js";import"./SearchLg-B4W4xrFH.js";import"./SearchMd-CKL74aOj.js";import"./Shield01-IlYcL8Fi.js";import"./Stars01-Bnuoinbt.js";import"./Trash01-CrwbV8c_.js";import"./Upload01-Lp0wJMYr.js";import"./User01-CQV6kRtR.js";import"./Users01-CDDfUziK.js";import"./XClose-4pjmwtT4.js";import"./Zap-DHGChPV2.js";import"./use-automations-kY9mTa0N.js";import"./useSuspenseInfiniteQuery-QFUkmQtZ.js";import"./badge-BR8ZoQPH.js";import"./command-DRUw9pTQ.js";import"./index-BOaCGG-5.js";import"./dialog-DfnhzCwv.js";import"./popover-DL95paTt.js";import"./avatar-CfHetrJ0.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-C62zVzDi.js";import"./file-type-icon-CyQSc8WD.js";import"./monaco-editor-DYdw6m6P.js";import"./index-B8Idfh3P.js";import"./index-emjsrsD0.js";import"./shell-layout-TAILJ-da.js";import"./alert-dialog-IVNf28U9.js";import"./required-auth-layout-BLRuxjNn.js";import"./use-org-sso-CpksLDM-.js";import"./integration-icon-D74EpYgv.js";import"./use-navigate-to-agent-DZwula5s.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CRvFGO5O.js";import"./form-ZPjO3One.js";import"./drawer-Cu1H6Zpl.js";import"./collection-search-D4kzf4BZ.js";import"./tabs-C19FaLXY.js";import"./toggle-group-SYBG9bZR.js";import"./use-deco-credits-rxapxW2c.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BddaDWk3.js";import"./use-registry-connections-ml5ez91l.js";import"./extract-connection-data-DkYKg47U.js";import"./collection-tabs-CwblhJGY.js";import"./textarea-DGICe7Jx.js";import"./connection-form-helpers-B3t0vd0x.js";import"./authenticate-and-persist-oauth-Bb5P11Gd.js";import"./mcp-oauth-CDqgI2Xn.js";import"./connect-desktop-dialog-BSEnA0YE.js";import"./select-model-D8LB7zlx.js";import"./skeleton-D824Y8b-.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CHSsdIIo.js";import"./dropdown-menu-BlorfjU6.js";import"./index-BeTttHS9.js";import"./toolbar-V6M48IQV.js";import"./use-debounced-value-DEfVi-aN.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DUjqcw9j.js";import"./use-mcp-tools-PUeX7iQD.js";import"./use-capability-BtQYj-6N.js";import"./tools-list-CvZ2H4zV.js";import"./switch-DLw5svpB.js";import"./use-debounced-autosave-Cumlh74L.js";import"./index-1xWIMGUU.js";import"./search-input-B9lRxCGI.js";import"./github-repo-picker-DneVvY3I.js";import"./github-installations-ChFezl8I.js";import"./use-secrets-DXp4vVpG.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-CrqiPrVn.js";import"./index-D-JmKBPU.js";import"./get-initials-D-f_fDFw.js";import"./calendar-D9BWcxij.js";import"./toolbar-icon-button-DapYdi-A.js";import"./use-file-configs-BaRnwcsF.js";import"./automation-list-row-BrrHJBg_.js";const me=[{value:"temporary",label:`Temporary (${M.temporary})`},{value:"permanent",label:`Permanent (${M.permanent})`}];function Jr(S){const e=X.c(62),{orgSlug:V,virtualMcpId:$,branch:A,blockKey:B,block:D}=S;let _;e[0]!==A||e[1]!==V||e[2]!==$?(_={orgSlug:V,virtualMcpId:$,branch:A},e[0]=A,e[1]=V,e[2]=$,e[3]=_):_=e[3];const m=ee(_);let g;e[4]!==D?(g=te(D),e[4]=D,e[5]=g):g=e[5];const W=g;let v;e[6]!==B||e[7]!==m?(v=o=>{m.mutate({blockKey:B,data:ie(o)})},e[6]=B,e[7]=m,e[8]=v):v=e[8];const[r,O]=oe(W,v);let N;e[9]!==r||e[10]!==O?(N=o=>O({...r,...o}),e[9]=r,e[10]=O,e[11]=N):N=e[11];const i=N;let P;e[12]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx("span",{className:"text-sm font-medium",children:"Redirect"}),e[12]=P):P=e[12];let p;e[13]!==m.isError||e[14]!==m.isPending?(p=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[P,t.jsx(re,{isPending:m.isPending,isError:m.isError})]}),e[13]=m.isError,e[14]=m.isPending,e[15]=p):p=e[15];let T;e[16]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(q,{htmlFor:"redirect-from",children:"From"}),e[16]=T):T=e[16];let s;e[17]!==i?(s=o=>i({from:o.target.value}),e[17]=i,e[18]=s):s=e[18];let l;e[19]!==r.from||e[20]!==s?(l=t.jsx(K,{id:"redirect-from",value:r.from,placeholder:"/old-path",onChange:s,className:"h-10"}),e[19]=r.from,e[20]=s,e[21]=l):l=e[21];let E;e[22]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsxs("p",{className:"text-xs text-muted-foreground",children:["The source path to match. Supports URLPattern syntax (e.g."," ",t.jsx("code",{children:"/product/:slug"}),")."]}),e[22]=E):E=e[22];let a;e[23]!==l?(a=t.jsxs("div",{className:"space-y-2",children:[T,l,E]}),e[23]=l,e[24]=a):a=e[24];let R;e[25]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(q,{htmlFor:"redirect-to",children:"To"}),e[25]=R):R=e[25];let c;e[26]!==i?(c=o=>i({to:o.target.value}),e[26]=i,e[27]=c):c=e[27];let n;e[28]!==r.to||e[29]!==c?(n=t.jsx(K,{id:"redirect-to",value:r.to,placeholder:"/new-path",onChange:c,className:"h-10"}),e[28]=r.to,e[29]=c,e[30]=n):n=e[30];let k;e[31]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("p",{className:"text-xs text-muted-foreground",children:"The destination — a relative path or an absolute URL."}),e[31]=k):k=e[31];let d;e[32]!==n?(d=t.jsxs("div",{className:"space-y-2",children:[R,n,k]}),e[32]=n,e[33]=d):d=e[33];let C;e[34]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(q,{htmlFor:"redirect-type",children:"Type"}),e[34]=C):C=e[34];let f;e[35]!==i?(f=o=>i({type:o}),e[35]=i,e[36]=f):f=e[36];let w;e[37]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(J,{id:"redirect-type",className:"h-10 w-full",children:t.jsx(Z,{placeholder:"Type"})}),e[37]=w):w=e[37];let I;e[38]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(z,{children:me.map(pe)}),e[38]=I):I=e[38];let h;e[39]!==r.type||e[40]!==f?(h=t.jsxs(G,{value:r.type,onValueChange:f,children:[w,I]}),e[39]=r.type,e[40]=f,e[41]=h):h=e[41];let F;e[42]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx("strong",{children:"Temporary"}),e[42]=F):F=e[42];let L;e[43]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",F," when the redirect may change;"," ",t.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),e[43]=L):L=e[43];let x;e[44]!==h?(x=t.jsxs("div",{className:"space-y-2",children:[C,h,L]}),e[44]=h,e[45]=x):x=e[45];let u;e[46]!==i?(u=o=>i({discardQueryParameters:o===!0}),e[46]=i,e[47]=u):u=e[47];let y;e[48]!==r.discardQueryParameters||e[49]!==u?(y=t.jsx(Y,{checked:r.discardQueryParameters,onCheckedChange:u}),e[48]=r.discardQueryParameters,e[49]=u,e[50]=y):y=e[50];let Q;e[51]===Symbol.for("react.memo_cache_sentinel")?(Q=t.jsx("span",{className:"text-sm",children:"Discard query parameters"}),e[51]=Q):Q=e[51];let j;e[52]!==y?(j=t.jsxs("label",{className:"flex cursor-pointer items-center gap-2.5",children:[y,Q]}),e[52]=y,e[53]=j):j=e[53];let b;e[54]!==a||e[55]!==d||e[56]!==x||e[57]!==j?(b=t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:t.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[a,d,x,j]})}),e[54]=a,e[55]=d,e[56]=x,e[57]=j,e[58]=b):b=e[58];let U;return e[59]!==b||e[60]!==p?(U=t.jsxs("div",{className:"flex h-full flex-col",children:[p,b]}),e[59]=b,e[60]=p,e[61]=U):U=e[61],U}function pe(S){return t.jsx(H,{value:S.value,children:S.label},S.value)}export{Jr as RedirectEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-C2G4koz9.js","assets/index-C5JCmVQ0.js","assets/index-BO2t38sV.css","assets/Tool02-vM8N2pYB.js","assets/CheckCircle-Day5nLHt.js","assets/Settings02-DAAnVZLO.js","assets/use-mcp-client-DlCO79GA.js","assets/constants-D_FQAPnt.js","assets/auth-DIzgjm9h.js","assets/useInfiniteQuery-D-yVKxn2.js","assets/use-infinite-scroll-WwPPe2Wp.js","assets/studio-tools--pllMpfK.js","assets/badge-BR8ZoQPH.js","assets/input-DWv95vY4.js","assets/dropdown-menu-BlorfjU6.js","assets/Check-BbAbdPfp.js","assets/ChevronRight-B9mybD1s.js","assets/Circle-Bj_xS3WU.js","assets/table-B8kPpHAC.js","assets/toggle-group-SYBG9bZR.js","assets/use-view-mode-CJMBEHOJ.js","assets/use-mobile-vXwkCjTm.js","assets/DotsVertical-BQRa2EB9.js","assets/FilterLines-C5i4i3WB.js","assets/Globe01-CC0A4U7g.js","assets/SearchMd-CKL74aOj.js","assets/dialog-DfnhzCwv.js","assets/X-CNdIeej8.js","assets/AlertCircle-CX23NCuO.js","assets/Upload01-Lp0wJMYr.js","assets/alert-dialog-IVNf28U9.js","assets/card-1ZIM8JYb.js","assets/Trash01-CrwbV8c_.js","assets/label-CjR-YPrA.js","assets/select-D59HzWyb.js","assets/tooltip-DjWNMg5T.js","assets/ChevronDown-BsEi-r9q.js","assets/ChevronUp-BWoVqFrM.js","assets/switch-DLw5svpB.js","assets/textarea-DGICe7Jx.js","assets/XCircle-C9sRiEE0.js","assets/checkbox-YuHG4ViR.js","assets/Eye-CyP9kYwn.js","assets/LinkExternal01-CbW1jJhi.js","assets/use-copy-C62zVzDi.js","assets/Key01-Y2tTMtA8.js","assets/Plus-DATZ4-ND.js","assets/mcp-oauth-CDqgI2Xn.js","assets/Play-zjQOd6w0.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as s,j as e,r as i,i as a,aX as o}from"./index-C5JCmVQ0.js";import{R as m}from"./require-capability-Coot4cTo.js";import"./use-capability-BtQYj-6N.js";import"./access-gate-BAwcBNbs.js";import"./capability-load-error-CWaH-_Bd.js";const n=i.lazy(()=>o(()=>import("./registry-layout-C2G4koz9.js"),__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])));function f(){const r=s.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(m,{capability:"registry:manage",area:"the registry",children:e.jsx(i.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(n,{})})}),r[0]=t):t=r[0],t}export{f as default};
|