decocms 4.2.0 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-HztvGgEK.js → AlertCircle-B4WPpzHx.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-CD45Pqa3.js → ArrowUpRight-n7J2ORua.js} +1 -1
- package/dist/client/assets/{CheckCircle-B93tZkib.js → CheckCircle-DGqDWZvl.js} +1 -1
- package/dist/client/assets/{ChevronDown-BHp2n33E.js → ChevronDown-BzkFMF52.js} +1 -1
- package/dist/client/assets/{ChevronLeft-CkLGnzyI.js → ChevronLeft-B-p3uhTp.js} +1 -1
- package/dist/client/assets/{ChevronRight-HkVZWjVD.js → ChevronRight-BhZIqa2P.js} +1 -1
- package/dist/client/assets/{ChevronUp-DLoyITzq.js → ChevronUp-CtzC0jb0.js} +1 -1
- package/dist/client/assets/{DotsVertical-DBVnta3o.js → DotsVertical-DskMPw9G.js} +1 -1
- package/dist/client/assets/{Eye-BuXBYPNx.js → Eye-Bkw15G1G.js} +1 -1
- package/dist/client/assets/{FilterLines-JdWf41nd.js → FilterLines-CTiCp3St.js} +1 -1
- package/dist/client/assets/{Globe01-DbyYsbkQ.js → Globe01-CIvUZBh0.js} +1 -1
- package/dist/client/assets/{Globe04-ht6-fzwU.js → Globe04-By_qGXm-.js} +1 -1
- package/dist/client/assets/{HardDrive-QsbiOkra.js → HardDrive-Da-ea-EW.js} +1 -1
- package/dist/client/assets/{Key01-B-rzooWI.js → Key01-DugFMT5_.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CvZZnjM_.js → LayoutLeft-DiQ60pSu.js} +1 -1
- package/dist/client/assets/{LinkExternal01-C75h4nTA.js → LinkExternal01-BMDEbMBF.js} +1 -1
- package/dist/client/assets/{Monitor01-C751a6VH.js → Monitor01-BFD-ivVa.js} +1 -1
- package/dist/client/assets/{Palette-Cw4TmFXF.js → Palette-DrmZY9bB.js} +1 -1
- package/dist/client/assets/{Play-BaPiITj6.js → Play-CiiKZLoa.js} +1 -1
- package/dist/client/assets/{Plus-cqzweyhV.js → Plus-hFZ_SbzL.js} +1 -1
- package/dist/client/assets/{SearchLg-BgcbIGrG.js → SearchLg-D4Hs4YLQ.js} +1 -1
- package/dist/client/assets/{SearchMd-B_E38g9S.js → SearchMd-RBoojwOu.js} +1 -1
- package/dist/client/assets/{Settings02-HJQMPAnK.js → Settings02-CuT9JazG.js} +1 -1
- package/dist/client/assets/{Shield01-CYOeouzJ.js → Shield01-D5Fc_Ylv.js} +1 -1
- package/dist/client/assets/{Star01-BLuwEqBm.js → Star01-BMttIRxb.js} +1 -1
- package/dist/client/assets/{Stars01-bmKEIBXR.js → Stars01-HANlppqn.js} +1 -1
- package/dist/client/assets/{Stars02-CO1akjaP.js → Stars02-Call5O4Q.js} +1 -1
- package/dist/client/assets/{Sun-DGf33qzc.js → Sun-B0JI-Irq.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CtPAye2M.js → SwitchHorizontal01-BcqnyefE.js} +1 -1
- package/dist/client/assets/{Tool01-Dc5WA1H4.js → Tool01-DFCFgRlB.js} +1 -1
- package/dist/client/assets/{Trash01-Dn19EDIc.js → Trash01-CGEeRKCz.js} +1 -1
- package/dist/client/assets/{Upload01-AmIm4zQN.js → Upload01-V0qkIpRk.js} +1 -1
- package/dist/client/assets/{User01-CYnD1B0h.js → User01-Co_ACiCO.js} +1 -1
- package/dist/client/assets/{Users01-B3f8K1I8.js → Users01-B-VpMOmx.js} +1 -1
- package/dist/client/assets/{Users03-B7auzTEh.js → Users03-DBa0-LbB.js} +1 -1
- package/dist/client/assets/{X-BJ5AK9_B.js → X-DlUiLOPC.js} +1 -1
- package/dist/client/assets/{XCircle-BEhXc7sQ.js → XCircle-BIxZfFEg.js} +1 -1
- package/dist/client/assets/{XClose-BaODJMh0.js → XClose-CEJj7vhn.js} +1 -1
- package/dist/client/assets/{Zap-CDSogr5w.js → Zap-USVmT42t.js} +1 -1
- package/dist/client/assets/{ZapSquare-CmmJkOPb.js → ZapSquare-qeizwUPq.js} +1 -1
- package/dist/client/assets/{ZoomOut-9WiOjKDc.js → ZoomOut-fkR_2hFy.js} +1 -1
- package/dist/client/assets/{access-gate-Bwf2CoM1.js → access-gate-Dob1Rc1a.js} +1 -1
- package/dist/client/assets/{add-section-modal-CmQEBOgZ.js → add-section-modal-JApa7Z44.js} +1 -1
- package/dist/client/assets/{agent-icon-Ba-0ZYgG.js → agent-icon-CCm6veEh.js} +1 -1
- package/dist/client/assets/{agents-list-D5VkOHIG.js → agents-list-CsmaOmeB.js} +1 -1
- package/dist/client/assets/{ai-providers-CZ5SMOKO.js → ai-providers-boT7K-bH.js} +1 -1
- package/dist/client/assets/{alert-dialog-Bqe6OAIL.js → alert-dialog-BZ8TrIVu.js} +2 -2
- package/dist/client/assets/{alert-nxT5lZho.js → alert-ez0UE1C8.js} +1 -1
- package/dist/client/assets/app-editor-D5hlOetk.js +1 -0
- package/dist/client/assets/{auth-CqOhN4mO.js → auth-CNqDC7uO.js} +1 -1
- package/dist/client/assets/{auth-catchall-CNFrjBAq.js → auth-catchall-BG9GP_5W.js} +1 -1
- package/dist/client/assets/{auth-entry-DPV3aDXY.js → auth-entry-BAXdJDhh.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Dp0-2xO6.js → auth-split-layout-BQs9JvYd.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BkWGH7gY.js → authenticate-and-persist-oauth-Dy2XeMqO.js} +1 -1
- package/dist/client/assets/{automation-list-row-CjVzmIPj.js → automation-list-row-DO51bU3z.js} +1 -1
- package/dist/client/assets/{automation-runs-DIDLqvYF.js → automation-runs-CXnAhWiY.js} +1 -1
- package/dist/client/assets/{automations-DEtrS6hH.js → automations-akz_oClO.js} +1 -1
- package/dist/client/assets/{avatar-DUFWGs9Z.js → avatar-Jhd31ejW.js} +1 -1
- package/dist/client/assets/{badge-ULvYE549.js → badge-cxwmW2xd.js} +1 -1
- package/dist/client/assets/{block-document-Cl3urvMb.js → block-document-AtpOGVAy.js} +1 -1
- package/dist/client/assets/{brand-context-DU7I0d5o.js → brand-context-D-YGjyHl.js} +1 -1
- package/dist/client/assets/{buckets-4u7bKclV.js → buckets-ByuitLd7.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-Bqpqm_Qj.js → bulk-category-panel-Bu7vkdyV.js} +1 -1
- package/dist/client/assets/{capability-load-error-Xikv63T6.js → capability-load-error-C00HLz2q.js} +1 -1
- package/dist/client/assets/{card-DuZccs_2.js → card-D3bKVB8y.js} +1 -1
- package/dist/client/assets/category-editor-AxaHD2PX.js +1 -0
- package/dist/client/assets/{chat-context-Ba1J4Wbr.js → chat-context-B5uEh4ay.js} +4 -4
- package/dist/client/assets/{checkbox-CZumSc8B.js → checkbox-PMXW46HN.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Ca86Sm5z.js → cli-auth-success-Bo07c76Z.js} +1 -1
- package/dist/client/assets/{collection-detail-2DizOat2.js → collection-detail-DEEAX0DE.js} +1 -1
- package/dist/client/assets/{collection-display-button-DTaFqStv.js → collection-display-button-Cu6MzTbi.js} +1 -1
- package/dist/client/assets/{collection-search-D2jsOcE8.js → collection-search-CN9TCItb.js} +1 -1
- package/dist/client/assets/{collection-tabs-BlI5WHJs.js → collection-tabs-D5o6VjHd.js} +1 -1
- package/dist/client/assets/{command-ClUS1KMM.js → command-D-t5bmXW.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-C9kK24Mf.js → commerce-onboarding-CljjzqU2.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-DPJKYCn-.js → connect-desktop-dialog-DchtPbuP.js} +1 -1
- package/dist/client/assets/{connection-card-CEtBve6r.js → connection-card-BswtsnGE.js} +1 -1
- package/dist/client/assets/{connection-detail-dUoqAHFY.js → connection-detail-Dt-8hGUD.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DtWH2w6r.js → connection-form-helpers-JfkHcTGO.js} +1 -1
- package/dist/client/assets/{connections-SZjaegFI.js → connections-D2zRczhs.js} +1 -1
- package/dist/client/assets/{context-menu-VSlW1NY7.js → context-menu-Dln5uXsN.js} +1 -1
- package/dist/client/assets/{decopilot-Y0nnLngo.js → decopilot-CfDwLIyX.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-BR9ewfWR.js → decopilot-sse-pool-DoJkdYBA.js} +1 -1
- package/dist/client/assets/{dialog-onqVrhoh.js → dialog-B2cGEuOv.js} +1 -1
- package/dist/client/assets/{domain-settings-D6CfPi24.js → domain-settings-DNJMc9fW.js} +1 -1
- package/dist/client/assets/{drawer-D6-83PZ_.js → drawer-Tv6bcT7w.js} +1 -1
- package/dist/client/assets/{dropdown-menu-D9g8Sl4X.js → dropdown-menu-Dw-pnYXI.js} +1 -1
- package/dist/client/assets/{empty-state-0bsCiepl.js → empty-state-D7nJB9UW.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Dk45baha.js → extract-connection-data-CxK1dunT.js} +1 -1
- package/dist/client/assets/file-explorer-dyfhIxpy.js +2 -0
- package/dist/client/assets/{file-type-icon-B1XEm_9k.js → file-type-icon-W_AZRfzL.js} +1 -1
- package/dist/client/assets/{files-BvKHt3eY.js → files-B0cAPQGO.js} +1 -1
- package/dist/client/assets/{form-Dvd73W2C.js → form-DI8q6OtF.js} +1 -1
- package/dist/client/assets/{general-DrBGUycq.js → general-bpWfsinD.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CB-ypGEp.js → github-repo-picker-M1TBbLot.js} +1 -1
- package/dist/client/assets/{hooks-tDbCB3C5.js → hooks-DgSrpwcx.js} +6 -6
- package/dist/client/assets/{import-from-deco-dialog-wTIFbH1Y.js → import-from-deco-dialog-IZXHkaJ2.js} +1 -1
- package/dist/client/assets/{index-DmjWDqcd.js → index-5MyNR89x.js} +3 -3
- package/dist/client/assets/{index-D3WaYPH4.js → index-5XIJtJJp.js} +1 -1
- package/dist/client/assets/{index--njjOK24.js → index-BD4HYlEX.js} +1 -1
- package/dist/client/assets/{index-D3mRtkEB.js → index-BFW_K0gJ.js} +1 -1
- package/dist/client/assets/{index-Ftnw_1Xy.js → index-BQIJkmZH.js} +1 -1
- package/dist/client/assets/index-BWMRVcd2.js +513 -0
- package/dist/client/assets/{index-1nPke5TY.js → index-BgPTCVWL.js} +1 -1
- package/dist/client/assets/index-BqKQnks_.css +1 -0
- package/dist/client/assets/index-BvxT8QID.js +1 -0
- package/dist/client/assets/{index-DkjetCaY.js → index-CABmrUBB.js} +1 -1
- package/dist/client/assets/{index-B_kMLuGG.js → index-CO_UO0dQ.js} +1 -1
- package/dist/client/assets/{index-BTZwvNmT.js → index-CU_03aq0.js} +1 -1
- package/dist/client/assets/{index-DrUwfEHA.js → index-CshxsRNd.js} +1 -1
- package/dist/client/assets/{index-BFlpjafk.js → index-Cxp4ZtBG.js} +1 -1
- package/dist/client/assets/{index-DeiWC-uz.js → index-Db0TT11B.js} +1 -1
- package/dist/client/assets/{index-redirect-B6SIDrdt.js → index-redirect-Clw5irxr.js} +1 -1
- package/dist/client/assets/{input-BlaLo4Ee.js → input-D9aeO8wK.js} +1 -1
- package/dist/client/assets/{integration-icon-BF4ETuj8.js → integration-icon-CMGCCNyJ.js} +1 -1
- package/dist/client/assets/{label-GEC2UjFS.js → label-Bj7qsNrz.js} +1 -1
- package/dist/client/assets/{login-DiR83Uim.js → login-BF7DsD8r.js} +1 -1
- package/dist/client/assets/{mcp-oauth-sGspCuYg.js → mcp-oauth-DEfvhjPc.js} +1 -1
- package/dist/client/assets/{members-BDtCBiR9.js → members-5GqN16xx.js} +1 -1
- package/dist/client/assets/{monaco-editor-BKh1966p.js → monaco-editor-B3KzPr3D.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Bdo8nd6T.js → monitoring-stats-row-B6byJzyf.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-1VSCaYAB.js → oauth-callback-ai-provider-DGwgTWgk.js} +1 -1
- package/dist/client/assets/{oauth-callback-BexQI-2W.js → oauth-callback-xYG2bhs8.js} +1 -1
- package/dist/client/assets/{onboarding-CZfsqsuP.js → onboarding-CnEfKMnB.js} +1 -1
- package/dist/client/assets/{org-install-BCHSGKR9.js → org-install-DfRej3K2.js} +1 -1
- package/dist/client/assets/{org-layout-D5zV7CtT.js → org-layout-Bc9Glt8J.js} +1 -1
- package/dist/client/assets/{organization-choice-B_qzGE3r.js → organization-choice-DGTNMrAe.js} +1 -1
- package/dist/client/assets/{page-seo-form-Cg3EP0Kg.js → page-seo-form-CcZ53r1B.js} +1 -1
- package/dist/client/assets/page-seo-sheet-D8FULk67.js +1 -0
- package/dist/client/assets/{popover-BxWSrnHV.js → popover-DowpnV25.js} +1 -1
- package/dist/client/assets/post-editor-SVRg54TN.js +1 -0
- package/dist/client/assets/{preview-dialog-B6mTIXuI.js → preview-dialog-CwTtT7qa.js} +2 -2
- package/dist/client/assets/{primitives-DikyHxBV.js → primitives-CAIbeS4G.js} +1 -1
- package/dist/client/assets/{profile-CR2pTbhO.js → profile-BF9HkmK_.js} +1 -1
- package/dist/client/assets/project-app-view-BQ4gYl-m.js +1 -0
- package/dist/client/assets/record-editor-BNOUgLnP.js +1 -0
- package/dist/client/assets/registry-Bo4vnNv4.js +2 -0
- package/dist/client/assets/{registry-layout-BQTxWcaj.js → registry-layout-CRS0SBoX.js} +1 -1
- package/dist/client/assets/{require-capability-B1UdIHXr.js → require-capability-BclGG3Lq.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CykGSzYq.js → required-auth-layout-CZqB7vUr.js} +1 -1
- package/dist/client/assets/{reset-password-BKTSF6vw.js → reset-password-CKTIPX2L.js} +1 -1
- package/dist/client/assets/{roles-tVsESxlL.js → roles-DTMTF-Ml.js} +1 -1
- package/dist/client/assets/{scroll-area-B8CDvPWi.js → scroll-area-DLqMfi_N.js} +1 -1
- package/dist/client/assets/{search-input-L82tU3Bd.js → search-input-BXzntIcj.js} +1 -1
- package/dist/client/assets/{secrets-BPwXng2k.js → secrets-D5X-Z3Mv.js} +1 -1
- package/dist/client/assets/{sections-editor-CuKTooG7.js → sections-editor-jc7NLaYJ.js} +2 -2
- package/dist/client/assets/{select-ySr8WoR1.js → select-CZgnwyj0.js} +1 -1
- package/dist/client/assets/{select-model-DdjL4UVJ.js → select-model-BLeb_gwV.js} +1 -1
- package/dist/client/assets/seo-editor-BCj_Owpk.js +1 -0
- package/dist/client/assets/{settings-layout-BBsWbAB4.js → settings-layout-QQo5fqWD.js} +1 -1
- package/dist/client/assets/{settings-section-ysOtzM09.js → settings-section-Br7JxQz6.js} +1 -1
- package/dist/client/assets/{sheet-X3VztLnq.js → sheet-M6dgbK60.js} +1 -1
- package/dist/client/assets/{shell-controls-DTY4r0Sw.js → shell-controls-CqC5zeBM.js} +1 -1
- package/dist/client/assets/{shell-layout-CdseotG7.js → shell-layout-CnTaR8UN.js} +1 -1
- package/dist/client/assets/{shell-route-loading-DNSXVK6N.js → shell-route-loading-DFu6UBUI.js} +1 -1
- package/dist/client/assets/{sidebar-H8VlLCcE.js → sidebar-oYab2QX7.js} +1 -1
- package/dist/client/assets/{skeleton-DknPHMRJ.js → skeleton-DoPnd-4p.js} +1 -1
- package/dist/client/assets/{sortable.esm-Ctxa79RM.js → sortable.esm-D8GIYMew.js} +1 -1
- package/dist/client/assets/{sso-WkG_Ya3-.js → sso-C9l3tEYi.js} +1 -1
- package/dist/client/assets/{store-BisoAFLO.js → store-DXXRJ_VG.js} +1 -1
- package/dist/client/assets/store-registry-DuMrJjAm.js +2 -0
- package/dist/client/assets/{studio-tools-BWRE75AX.js → studio-tools-4NjxmaVZ.js} +1 -1
- package/dist/client/assets/{switch-DR4CkZQD.js → switch-DLNzAYS1.js} +1 -1
- package/dist/client/assets/{table-C4Cy5HHY.js → table-B06cGuvx.js} +1 -1
- package/dist/client/assets/{tabs-C77-FnFK.js → tabs-8VxbUDVb.js} +1 -1
- package/dist/client/assets/{task-status-DIimAguz.js → task-status-Cm29b2AK.js} +1 -1
- package/dist/client/assets/{textarea-DzC7ppsf.js → textarea-Bwn2Wdf8.js} +1 -1
- package/dist/client/assets/{toggle-group-DUz2fIQy.js → toggle-group-CndOAl-N.js} +1 -1
- package/dist/client/assets/toolbar-ClL4Dhs_.js +1 -0
- package/dist/client/assets/{tools-list-CTCIGteU.js → tools-list-DL7ip2gg.js} +1 -1
- package/dist/client/assets/{tooltip-Cr9AJTu1.js → tooltip-DvT2WKW9.js} +1 -1
- package/dist/client/assets/{types-DIYYFrZY.js → types-U3TqUYrY.js} +4 -4
- package/dist/client/assets/{use-ai-providers-DnoPML_E.js → use-ai-providers-D4m0Vu5Q.js} +1 -1
- package/dist/client/assets/{use-automations-B4dRXrYb.js → use-automations-ChKoVegP.js} +1 -1
- package/dist/client/assets/{use-capability-CDOjpxJe.js → use-capability-CQPMPR-5.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DfB4yM8e.js → use-clock-tick-CJO5qoT7.js} +1 -1
- package/dist/client/assets/{use-collections-C6o5d0Mn.js → use-collections-DAKL2YGx.js} +1 -1
- package/dist/client/assets/{use-connection-RPVug9uL.js → use-connection-BvgL1-Da.js} +1 -1
- package/dist/client/assets/{use-copy-DByELpSB.js → use-copy-WaepYGtr.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DYyOoMN3.js → use-create-virtual-mcp-BSTwTG_J.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-D9laFBFB.js → use-debounced-autosave-mA5Fw-09.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Bs78etny.js → use-debounced-value-cQ7ZQKtl.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DavYF-aF.js → use-decopilot-events-BDkaUhLT.js} +1 -1
- package/dist/client/assets/{use-delete-connection-9x3-oXog.js → use-delete-connection-B9XKLaZf.js} +1 -1
- package/dist/client/assets/{use-file-configs-YQp2GWKp.js → use-file-configs-Dfeoim5G.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BmnUwDlC.js → use-infinite-scroll-4tV6tFjB.js} +1 -1
- package/dist/client/assets/{use-join-requests-wdTUrAXP.js → use-join-requests-CdAJlpjO.js} +1 -1
- package/dist/client/assets/{use-mcp-client-NDJy9UEP.js → use-mcp-client-CherrXvD.js} +2 -2
- package/dist/client/assets/{use-mcp-prompts-ziW0oQXD.js → use-mcp-prompts-BnOdccbh.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-ByN1fg_5.js → use-mcp-tools-w6KwNDra.js} +1 -1
- package/dist/client/assets/{use-members-CqCv95kS.js → use-members-ge80zFlj.js} +1 -1
- package/dist/client/assets/{use-mobile-C1ok2Oda.js → use-mobile-lIIxFH5C.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-GB89TSmS.js → use-navigate-to-agent-BtVHPn7N.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-a0tV0I4a.js → use-org-auth-client-Ctxe3HXF.js} +1 -1
- package/dist/client/assets/{use-org-fs-C4An_fXX.js → use-org-fs-D-40uH2W.js} +1 -1
- package/dist/client/assets/{use-org-sso-DXOaOrbn.js → use-org-sso-BxzKK5rO.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CsUVzen8.js → use-organization-roles-DmQYT9Pn.js} +1 -1
- package/dist/client/assets/{use-organization-settings-rqcqUUeR.js → use-organization-settings-CZfEdu0P.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BHtQ89zr.js → use-registry-connections-C_VqH6te.js} +1 -1
- package/dist/client/assets/{use-secrets-CQoqzufN.js → use-secrets-Dn4coT0R.js} +1 -1
- package/dist/client/assets/{use-status-sounds-yeVUNOcg.js → use-status-sounds-CWHPQWBO.js} +1 -1
- package/dist/client/assets/{use-view-mode-D7GDuIV9.js → use-view-mode--ERDyrf1.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DQxIBquV.js → use-virtual-mcp-C5pbd140.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-_sl5B1oR.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-_eC9d3ii.js +1 -0
- package/dist/client/assets/{useSuspenseQueries-DM2UC-1d.js → useSuspenseQueries-CRdXyKYB.js} +1 -1
- package/dist/client/assets/{variant-calendar-Dkf9XIru.js → variant-calendar-Dqcgu1C1.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-1VKSbXaL.js → view-mode-toggle-BP4LoXpd.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +10 -1
- package/package.json +1 -1
- package/dist/client/assets/app-editor-Cfln2sHr.js +0 -1
- package/dist/client/assets/category-editor-BT4Cxoo3.js +0 -1
- package/dist/client/assets/file-explorer-BtYpNmrX.js +0 -2
- package/dist/client/assets/index-1MQY-aKx.css +0 -1
- package/dist/client/assets/index-DL5xoOQh.js +0 -513
- package/dist/client/assets/index-PHpiDror.js +0 -1
- package/dist/client/assets/page-seo-sheet-fP6EiExR.js +0 -1
- package/dist/client/assets/post-editor-CpIwB3m_.js +0 -1
- package/dist/client/assets/project-app-view-AkqKN49v.js +0 -1
- package/dist/client/assets/record-editor-Dm0nCNn9.js +0 -1
- package/dist/client/assets/registry-DhcyXlrd.js +0 -2
- package/dist/client/assets/seo-editor-BXwxtymi.js +0 -1
- package/dist/client/assets/store-registry-DKSrdFtG.js +0 -2
- package/dist/client/assets/toolbar-1nBak56S.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BiSAb_zK.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-9J-jWStM.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as N,j as s,C as us,r as z,l as Q,i as Ks,v as se,D as le,a as Ne,F as Vs,K as ms,k as fs,b as Me,e as Ys,u as er,G as tr,R as sr,H as nr,o as rr,s as or,n as ir,p as lr,d as ar,B as pt,I as cr,J as dr,t as Te,M as ur,P as mr,x as fr,m as pr,y as xr,T as hr,U as gr,V as br,W as $e,X as Xs,Y as jr,Z as Qs,_ as vr,$ as yr,a0 as Sr,a1 as _r,a2 as Nr,a3 as Cr,a4 as wr,a5 as kr,E as Js,O as Ir}from"./index-DmjWDqcd.js";import{u as Xe,S as fe,a as Ce,b as Lt,c as Ht,d as Ae,e as Zs,f as en,g as Tr,h as $r,i as rs,j as Ar,k as zr,l as Or}from"./sidebar-H8VlLCcE.js";import{u as ps}from"./use-mobile-C1ok2Oda.js";import{u as Pr,S as Ns,M as Dr}from"./shell-controls-DTY4r0Sw.js";import{i as Mr,a as Rr,b as Er}from"./ZoomOut-9WiOjKDc.js";import{T as pe,a as oe}from"./toolbar-1nBak56S.js";import{a as ze,b as Oe,T as Pe,c as Cs}from"./tooltip-Cr9AJTu1.js";import{S as Se}from"./skeleton-DknPHMRJ.js";import{P as Bt,a as xt,b as Ut}from"./popover-BxWSrnHV.js";import{D as tn,a as sn,b as nn}from"./drawer-D6-83PZ_.js";import{i as rn}from"./SearchMd-B_E38g9S.js";import{s as Fr}from"./Star01-BLuwEqBm.js";import{s as _e}from"./Plus-cqzweyhV.js";import{i as Gr,a as Lr}from"./use-mcp-client-NDJy9UEP.js";import{u as on,a as jt,b as Hr}from"./use-virtual-mcp-DQxIBquV.js";import{u as Br}from"./use-create-virtual-mcp-DYyOoMN3.js";import{I as Ur,u as qr,W as Wr}from"./import-from-deco-dialog-wTIFbH1Y.js";import{A as De,a as ws,b as ks,c as ln,d as Kr,e as Vr,i as Yr,f as Xr}from"./agent-icon-Ba-0ZYgG.js";import{G as Qr,a as Jr}from"./github-repo-picker-CB-ypGEp.js";import{u as an,a as Zr,b as cn,T as eo}from"./hooks-tDbCB3C5.js";import{r as to,u as so,R as no,a as ro,b as dn}from"./shell-layout-CdseotG7.js";import{u as oo,g as un,a as io,b as lo,s as ao,c as co,r as uo,d as mo,e as fo,f as po,p as xo,T as os,h as ho,i as go,j as bo,k as jo,l as vo,m as yo,n as So,o as _o,q as No,S as Is,t as mn}from"./use-navigate-to-agent-GB89TSmS.js";import{g as Co,u as fn,A as pn,a as wo,b as ko,c as Ts,K as Io,P as To,s as $o,S as Ao,v as zo,D as Oo,d as Po,e as Do,C as Mo,f as Ro}from"./sortable.esm-Ctxa79RM.js";import{i as Eo}from"./LayoutLeft-CvZZnjM_.js";import{i as xn}from"./Monitor01-C751a6VH.js";import{u as Fo,v as Go,C as Lo}from"./connect-desktop-dialog-DPJKYCn-.js";import{A as is}from"./avatar-DUFWGs9Z.js";import{i as xs}from"./ChevronUp-DLoyITzq.js";import{a as $s}from"./Eye-BuXBYPNx.js";import{n as Ho,i as Bo}from"./Globe01-DbyYsbkQ.js";import{i as Uo,a as hn}from"./ZapSquare-CmmJkOPb.js";import{n as qo,a as Wo}from"./Sun-DGf33qzc.js";import{a as vt,b as Ko,i as Vo}from"./Settings02-HJQMPAnK.js";import{i as Yo}from"./Shield01-CYOeouzJ.js";import{a as Xo}from"./Users03-B7auzTEh.js";import{s as hs}from"./XClose-BaODJMh0.js";import{A as Qo,a as Jo,b as Zo,c as ei,d as ti,e as si,f as ni}from"./alert-dialog-Bqe6OAIL.js";import{F as ri,a as oi,b as ii,c as li,d as ai,f as ci,e as di}from"./form-Dvd73W2C.js";import{I as ui}from"./input-BlaLo4Ee.js";import{S as mi,C as fi}from"./chat-context-Ba1J4Wbr.js";import"./index-D3WaYPH4.js";import{n as gs}from"./Stars02-CO1akjaP.js";import{u as pi,a as xi}from"./use-join-requests-wdTUrAXP.js";import{i as bs}from"./ChevronRight-HkVZWjVD.js";import{i as hi}from"./FilterLines-JdWf41nd.js";import{t as gi}from"./Users01-B3f8K1I8.js";import{S as As,a as gn,b as zs,c as Os,d as Ps}from"./select-ySr8WoR1.js";import{c as bi,a as ji,b as vi,d as yi,e as Si}from"./dialog-onqVrhoh.js";import{C as _i,a as Ni,b as Ci,c as wi,d as ki}from"./command-ClUS1KMM.js";import{u as bn}from"./studio-tools-BWRE75AX.js";import{i as jn}from"./Zap-CDSogr5w.js";import{u as Ii}from"./use-org-auth-client-a0tV0I4a.js";import{C as Ot,a as Ds,b as vn,c as yn,d as Sn}from"./context-menu-VSlW1NY7.js";import{g as Ti,S as $i}from"./task-status-DIimAguz.js";import{u as Ai,f as zi}from"./use-clock-tick-DfB4yM8e.js";import{t as _n}from"./ChevronDown-BHp2n33E.js";import{S as Oi}from"./shell-route-loading-DNSXVK6N.js";import"./sheet-X3VztLnq.js";import"./X-BJ5AK9_B.js";import"./ChevronLeft-CkLGnzyI.js";import"./auth-CqOhN4mO.js";import"./use-collections-C6o5d0Mn.js";import"./use-connection-RPVug9uL.js";import"./github-installations-DzN1UQ4x.js";import"./collection-search-D2jsOcE8.js";import"./AlertCircle-HztvGgEK.js";import"./Tool01-Dc5WA1H4.js";import"./SwitchHorizontal01-CtPAye2M.js";import"./XCircle-BEhXc7sQ.js";import"./ArrowUpRight-CD45Pqa3.js";import"./CheckCircle-B93tZkib.js";import"./DotsVertical-DBVnta3o.js";import"./Globe04-ht6-fzwU.js";import"./HardDrive-QsbiOkra.js";import"./Key01-B-rzooWI.js";import"./LinkExternal01-C75h4nTA.js";import"./Palette-Cw4TmFXF.js";import"./Play-BaPiITj6.js";import"./SearchLg-BgcbIGrG.js";import"./Stars01-bmKEIBXR.js";import"./Trash01-Dn19EDIc.js";import"./Upload01-AmIm4zQN.js";import"./User01-CYnD1B0h.js";import"./checkbox-CZumSc8B.js";import"./use-debounced-value-Bs78etny.js";import"./authenticate-and-persist-oauth-BkWGH7gY.js";import"./mcp-oauth-sGspCuYg.js";import"./use-mcp-tools-ByN1fg_5.js";import"./extract-connection-data-Dk45baha.js";import"./decopilot-sse-pool-BR9ewfWR.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./required-auth-layout-CykGSzYq.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-rqcqUUeR.js";import"./use-org-sso-DXOaOrbn.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CEtBve6r.js";import"./use-registry-connections-BHtQ89zr.js";import"./useInfiniteQuery-BiSAb_zK.js";import"./use-infinite-scroll-BmnUwDlC.js";import"./card-DuZccs_2.js";import"./integration-icon-BF4ETuj8.js";import"./collection-tabs-BlI5WHJs.js";import"./badge-ULvYE549.js";import"./textarea-DzC7ppsf.js";import"./connection-form-helpers-DtWH2w6r.js";import"./useSuspenseInfiniteQuery-9J-jWStM.js";import"./use-ai-providers-DnoPML_E.js";import"./label-GEC2UjFS.js";import"./use-decopilot-events-DavYF-aF.js";import"./use-capability-CDOjpxJe.js";import"./index--njjOK24.js";import"./differenceInSeconds-NQ4PDo0z.js";function Pi(t){const e=N.c(5),{onPointerDown:n,onDoubleClick:r}=t,{state:o,isMobile:i}=Xe();if(i||o==="collapsed")return null;let l,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={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]=l,e[1]=a):(l=e[0],a=e[1]);let c;return e[2]!==r||e[3]!==n?(c=s.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize sidebar",title:"Drag to resize, double-click to reset",onPointerDown:n,onDoubleClick:r,className:"group/resize absolute top-0 z-20 h-full w-2 -translate-x-1/2 cursor-col-resize",style:l,children:a}),e[2]=r,e[3]=n,e[4]=c):c=e[4],c}const js=240,Di=400,Mi="sidebar.width";function bt(t){return Math.max(js,Math.min(Di,t))}function Ri(){const t=N.c(11),[e,n]=us(Mi,Ei),r=z.useRef(null);let o;t[0]!==n||t[1]!==e?(o=u=>{u.preventDefault();const m=u.clientX,f=bt(e),h=r.current??(typeof document<"u"?document.querySelector('[data-slot="sidebar-wrapper"]'):null),p=h?Array.from(h.querySelectorAll('[data-slot="sidebar"], [data-slot="sidebar-container"]')):[];for(const b of p)b.style.transition="none";const x=b=>{const j=bt(f+(b.clientX-m));h?.style.setProperty("--sidebar-width",`${j}px`)},g=b=>{const j=bt(f+(b.clientX-m));n(j);for(const y of p)y.style.transition="";window.removeEventListener("pointermove",x),window.removeEventListener("pointerup",g),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",x),window.addEventListener("pointerup",g)},t[0]=n,t[1]=e,t[2]=o):o=t[2];const i=o;let l;t[3]!==n?(l=()=>{n(js)},t[3]=n,t[4]=l):l=t[4];const a=l;let c;t[5]!==e?(c=bt(e),t[5]=e,t[6]=c):c=t[6];let d;return t[7]!==i||t[8]!==a||t[9]!==c?(d={width:c,wrapperRef:r,onStartResize:i,resetWidth:a},t[7]=i,t[8]=a,t[9]=c,t[10]=d):d=t[10],d}function Ei(t){return typeof t=="number"?bt(t):js}function Fi(t){const e=N.c(21),{value:n,onChange:r,placeholder:o,onKeyDown:i,className:l,isSearching:a,disabled:c}=t,d=o===void 0?"Search...":o;let u;e[0]!==l?(u=Q("shrink-0 w-full border-b border-border h-12",l),e[0]=l,e[1]=u):u=e[1];const m=c?"cursor-not-allowed opacity-50":"cursor-text";let f;e[2]!==m?(f=Q("flex items-center gap-2.5 h-12 px-4",m),e[2]=m,e[3]=f):f=e[3];let h;e[4]!==a?(h=a?s.jsx(Ks,{size:16,className:"animate-spin text-muted-foreground shrink-0"}):s.jsx(rn,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=a,e[5]=h):h=e[5];let p;e[6]!==r?(p=j=>r(j.target.value),e[6]=r,e[7]=p):p=e[7];let x;e[8]!==c||e[9]!==i||e[10]!==d||e[11]!==p||e[12]!==n?(x=s.jsx("input",{type:"text",value:n,onChange:p,onKeyDown:i,placeholder:d,disabled:c,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=c,e[9]=i,e[10]=d,e[11]=p,e[12]=n,e[13]=x):x=e[13];let g;e[14]!==f||e[15]!==h||e[16]!==x?(g=s.jsxs("label",{className:f,children:[h,x]}),e[14]=f,e[15]=h,e[16]=x,e[17]=g):g=e[17];let b;return e[18]!==u||e[19]!==g?(b=s.jsx("div",{className:u,children:g}),e[18]=u,e[19]=g,e[20]=b):b=e[20],b}const Gi="Select an existing agent";function Li(t){const e=N.c(5),{children:n}=t;let r;e[0]!==n?(r=s.jsx(ze,{asChild:!0,children:n}),e[0]=n,e[1]=r):r=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Oe,{side:"right",sideOffset:8,children:Gi}),e[2]=o):o=e[2];let i;return e[3]!==r?(i=s.jsxs(Pe,{defaultOpen:!0,delayDuration:0,children:[r,o]}),e[3]=r,e[4]=i):i=e[4],i}function Hi(){const t=N.c(5),{enableDecoImport:e}=Vs(),{data:n}=Ne.useSession();let r;t[0]!==n?.user?.email?(r=ms.decoProfile(n?.user?.email),t[0]=n?.user?.email,t[1]=r):r=t[1];const o=!!e&&!!n?.user?.email;let i;t[2]!==r||t[3]!==o?(i={queryKey:r,queryFn:Bi,enabled:o,staleTime:3e5},t[2]=r,t[3]=o,t[4]=i):i=t[4];const{data:l}=fs(i);return l?.isDecoUser??!1}async function Bi(){const t=await fetch("/api/deco-sites/profile");return t.ok?t.json():{isDecoUser:!1}}function Ui(t){const e=Me(),{create:n}=an(),{locator:r}=le(),o=Ys({strict:!1}),i=er({strict:!1});return async l=>{const a=crypto.randomUUID(),c=l===i.virtualmcpid?to(t,r,o.taskId??""):null;try{await n({id:a,virtual_mcp_id:l,...c?{branch:c}:{}})}catch{}e({to:"/$org/$taskId",params:{org:t,taskId:a},search:{virtualmcpid:l}})}}function qi(t){const e=N.c(9),{agent:n,onClick:r}=t;let o;e[0]!==n.icon||e[1]!==n.title?(o=s.jsx(De,{icon:n.icon,name:n.title,size:"md",className:"transition-transform group-hover:scale-105"}),e[0]=n.icon,e[1]=n.title,e[2]=o):o=e[2];let i;e[3]!==n.title?(i=s.jsx("span",{className:"text-xs leading-tight text-center text-muted-foreground group-hover:text-foreground line-clamp-2 w-full",children:n.title}),e[3]=n.title,e[4]=i):i=e[4];let l;return e[5]!==r||e[6]!==o||e[7]!==i?(l=s.jsxs("button",{type:"button",onClick:r,className:"flex flex-col items-center gap-2 p-3 rounded-xl transition-colors hover:bg-accent cursor-pointer group",children:[o,i]}),e[5]=r,e[6]=o,e[7]=i,e[8]=l):l=e[8],l}function Wi(t){const e=N.c(56),{onClose:n,onOpenImportDeco:r,onOpenGithubImport:o}=t,[i,l]=z.useState(""),a=on(),c=a??[],{org:d}=le(),{data:u}=Ne.useSession(),m=u?.user?.id??"anon",f=un(a),h=io();let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p={navigateOnCreate:!0},e[0]=p):p=e[0];const{createVirtualMCP:x,isCreating:g}=Br(p),{createFromTemplate:b,isCreating:j}=qr(),y=Hi(),v=Ui(d.slug),_=Co(a),k=i.toLowerCase(),S=c.filter(Ki).filter(Z=>!_.has(Z.id)).filter(Z=>!i||Z.title.toLowerCase().includes(k)),I=Z=>{lo({orgId:d.id,userId:m},Z.id,f),h(),n(),l(""),v(Z.id)},T="flex flex-col max-h-[min(640px,80dvh)]";let $;e[1]!==i?($=s.jsx(Fi,{value:i,onChange:l,placeholder:"Search agents..."}),e[1]=i,e[2]=$):$=e[2];const O="overflow-y-auto flex-1 min-h-0 px-3 pb-3";let A;e[3]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx("div",{className:"px-1 pt-3 pb-2",children:s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Agents"})}),e[3]=A):A=e[3];const C="grid grid-cols-3 gap-1";let M;e[4]!==x||e[5]!==n?(M=async()=>{se("agent_create_new_clicked",{source:"browse_popover"}),await x(),n()},e[4]=x,e[5]=n,e[6]=M):M=e[6];let V,q;e[7]===Symbol.for("react.memo_cache_sentinel")?(V=s.jsx("div",{className:"w-12 h-12 rounded-xl border-2 border-dashed border-border flex items-center justify-center shrink-0 transition-transform group-hover:scale-105",children:s.jsx(_e,{size:16,className:"text-muted-foreground"})}),q=s.jsx("span",{className:"text-xs leading-tight text-center text-muted-foreground group-hover:text-foreground",children:"Create new"}),e[7]=V,e[8]=q):(V=e[7],q=e[8]);let E;e[9]!==g||e[10]!==M?(E=s.jsxs("button",{type:"button",disabled:g,onClick:M,className:"flex flex-col items-center gap-2 p-3 rounded-xl transition-colors hover:bg-accent cursor-pointer group disabled:opacity-50 disabled:cursor-not-allowed",children:[V,q]}),e[9]=g,e[10]=M,e[11]=E):E=e[11];let L;e[12]!==b||e[13]!==n?(L=async()=>{se("agent_create_clicked",{source:"browse_popover",method:"website"}),await b(Wr),n()},e[12]=b,e[13]=n,e[14]=L):L=e[14];let R,H;e[15]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx("div",{className:"w-12 h-12 rounded-xl border-2 border-border flex items-center justify-center shrink-0 transition-transform group-hover:scale-105",children:s.jsx(Fr,{className:"size-5 text-muted-foreground"})}),H=s.jsx("span",{className:"text-xs leading-tight text-center text-muted-foreground group-hover:text-foreground",children:"Start Website"}),e[15]=R,e[16]=H):(R=e[15],H=e[16]);let P;e[17]!==j||e[18]!==L?(P=s.jsxs("button",{type:"button",disabled:j,onClick:L,className:"flex flex-col items-center gap-2 p-3 rounded-xl transition-colors hover:bg-accent cursor-pointer group disabled:opacity-50 disabled:cursor-not-allowed",children:[R,H]}),e[17]=j,e[18]=L,e[19]=P):P=e[19];let G;e[20]!==n||e[21]!==o?(G=()=>{se("agent_import_clicked",{source:"github"}),o(),n()},e[20]=n,e[21]=o,e[22]=G):G=e[22];let D,B;e[23]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx("div",{className:"w-12 h-12 rounded-xl border-2 border-border flex items-center justify-center shrink-0 transition-transform group-hover:scale-105",children:s.jsx(Jr,{className:"size-5 text-muted-foreground"})}),B=s.jsx("span",{className:"text-xs leading-tight text-center text-muted-foreground group-hover:text-foreground",children:"Import GitHub"}),e[23]=D,e[24]=B):(D=e[23],B=e[24]);let F;e[25]!==G?(F=s.jsxs("button",{type:"button",onClick:G,className:"flex flex-col items-center gap-2 p-3 rounded-xl transition-colors hover:bg-accent cursor-pointer group",children:[D,B]}),e[25]=G,e[26]=F):F=e[26];let Y;e[27]!==y||e[28]!==n||e[29]!==r?(Y=y&&s.jsxs("button",{type:"button",onClick:()=>{se("agent_import_clicked",{source:"deco"}),r(),n()},className:"flex flex-col items-center gap-2 p-3 rounded-xl transition-colors hover:bg-accent cursor-pointer group",children:[s.jsx("div",{className:"w-12 h-12 rounded-xl border-2 border-border flex items-center justify-center shrink-0 transition-transform group-hover:scale-105",children:s.jsx("img",{src:"/logos/deco%20logo.svg",alt:"",className:"size-5 object-contain"})}),s.jsx("span",{className:"text-xs leading-tight text-center text-muted-foreground group-hover:text-foreground",children:"Import deco.cx"})]}),e[27]=y,e[28]=n,e[29]=r,e[30]=Y):Y=e[30];const ee=S.map(Z=>s.jsx(qi,{agent:Z,onClick:()=>I(Z)},Z.id));let K;e[31]!==E||e[32]!==P||e[33]!==F||e[34]!==Y||e[35]!==ee?(K=s.jsxs("div",{className:C,children:[E,P,F,Y,ee]}),e[31]=E,e[32]=P,e[33]=F,e[34]=Y,e[35]=ee,e[36]=K):K=e[36];let J;e[37]!==g||e[38]!==i||e[39]!==S.length?(J=S.length===0&&!g&&s.jsx("div",{className:"flex items-center justify-center py-6 text-xs text-muted-foreground",children:i?"No agents found":"No agents yet"}),e[37]=g,e[38]=i,e[39]=S.length,e[40]=J):J=e[40];let X;e[41]!==K||e[42]!==J||e[43]!==A?(X=s.jsxs("div",{className:O,children:[A,K,J]}),e[41]=K,e[42]=J,e[43]=A,e[44]=X):X=e[44];let U;e[45]!==d.slug?(U={org:d.slug},e[45]=d.slug,e[46]=U):U=e[46];let ne;e[47]!==n?(ne=()=>n(),e[47]=n,e[48]=ne):ne=e[48];let re;e[49]!==U||e[50]!==ne?(re=s.jsx("div",{className:"border-t border-border px-3 py-2.5",children:s.jsx(tr,{to:"/$org/settings/agents",params:U,onClick:ne,className:"text-xs text-muted-foreground hover:text-foreground transition-colors flex items-center justify-center",children:"See all agents"})}),e[49]=U,e[50]=ne,e[51]=re):re=e[51];let ae;return e[52]!==X||e[53]!==re||e[54]!==$?(ae=s.jsxs("div",{className:T,children:[$,X,re]}),e[52]=X,e[53]=re,e[54]=$,e[55]=ae):ae=e[55],ae}function Ki(t){return!Gr(t.id)}function Nn(t){const e=N.c(26);let n;e[0]!==t?(n=t===void 0?{}:t,e[0]=t,e[1]=n):n=e[1];const{compact:r}=n,o=r===void 0?!1:r,[i,l]=z.useState(!1),[a,c]=z.useState(!1),[d,u]=z.useState(!1),m=ps(),{setOpenMobile:f}=Xe(),h=oo(),p=h?"border border-border":void 0;let x;e[2]!==h?(x=T=>h?s.jsx(Li,{children:T}):T,e[2]=h,e[3]=x):x=e[3];const g=x;let b;e[4]!==m||e[5]!==f?(b=()=>{l(!1),m&&f(!1)},e[4]=m,e[5]=f,e[6]=b):b=e[6];const j=b;let y;e[7]!==j||e[8]!==i?(y=i&&s.jsx(z.Suspense,{fallback:s.jsx("div",{className:"flex items-center justify-center py-8",children:s.jsx(Se,{className:"h-4 w-24"})}),children:s.jsx(Wi,{onClose:j,onOpenImportDeco:()=>c(!0),onOpenGithubImport:()=>{u(!0),j()}})}),e[7]=j,e[8]=i,e[9]=y):y=e[9];const v=y;let _;e[10]!==o||e[11]!==p||e[12]!==h||e[13]!==m||e[14]!==i||e[15]!==v||e[16]!==g?(_=m?s.jsxs(s.Fragment,{children:[o?g(s.jsx(pe,{"aria-label":"Browse agents",className:Q(p),onClick:()=>{se("agent_browser_opened",{surface:"mobile_drawer"}),l(!0)},children:s.jsx(_e,{className:"size-4"})})):s.jsx(fe,{children:g(s.jsxs(Ce,{tooltip:h?void 0:"Browse agents",className:Q(p),onClick:()=>{se("agent_browser_opened",{surface:"mobile_drawer"}),l(!0)},children:[s.jsx(_e,{}),s.jsx("span",{children:"New agent"})]}))}),s.jsx(tn,{open:i,onOpenChange:l,direction:"bottom",children:s.jsxs(sn,{className:"max-h-[85dvh] p-0",children:[s.jsx(nn,{className:"sr-only",children:"Browse agents"}),v]})})]}):s.jsxs(Bt,{open:i,onOpenChange:T=>{T&&!i&&se("agent_browser_opened",{surface:"desktop_popover"}),l(T)},children:[o?g(s.jsx(xt,{asChild:!0,children:s.jsx(pe,{"aria-label":"Browse agents",className:Q(p),children:s.jsx(_e,{className:"size-4"})})})):s.jsx(fe,{children:g(s.jsx(xt,{asChild:!0,children:s.jsxs(Ce,{tooltip:h?void 0:"Browse agents",className:Q(p),children:[s.jsx(_e,{}),s.jsx("span",{children:"New agent"})]})}))}),s.jsx(Ut,{className:"w-[380px] p-0 overflow-hidden",side:"right",align:"start",children:v})]}),e[10]=o,e[11]=p,e[12]=h,e[13]=m,e[14]=i,e[15]=v,e[16]=g,e[17]=_):_=e[17];let k;e[18]!==a?(k=s.jsx(Ur,{open:a,onOpenChange:c}),e[18]=a,e[19]=k):k=e[19];let S;e[20]!==d?(S=s.jsx(Qr,{open:d,onOpenChange:u}),e[20]=d,e[21]=S):S=e[21];let I;return e[22]!==_||e[23]!==k||e[24]!==S?(I=s.jsxs(s.Fragment,{children:[_,k,S]}),e[22]=_,e[23]=k,e[24]=S,e[25]=I):I=e[25],I}function Cn(){const t=N.c(24),{org:e}=le(),n=Me(),o=Pr().location.pathname,i=e.slug,{state:l,isMobile:a}=Xe(),c=!a&&l==="collapsed";let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Mr,{className:"size-4!"}),t[0]=d):d=t[0];const u=o===`/${i}`||o===`/${i}/`;let m;t[1]!==n||t[2]!==i?(m=()=>{n({to:"/$org",params:{org:i}})},t[1]=n,t[2]=i,t[3]=m):m=t[3];let f;t[4]!==u||t[5]!==m?(f={key:"home",label:"Home",icon:d,isActive:u,onClick:m},t[4]=u,t[5]=m,t[6]=f):f=t[6];const h=f;let p;t[7]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(Rr,{className:"size-4!"}),t[7]=p):p=t[7];let x;t[8]!==o||t[9]!==i?(x=o.startsWith(`/${i}/files`),t[8]=o,t[9]=i,t[10]=x):x=t[10];let g;t[11]!==n||t[12]!==i?(g=()=>{n({to:"/$org/files",params:{org:i}})},t[11]=n,t[12]=i,t[13]=g):g=t[13];let b;t[14]!==x||t[15]!==g?(b={key:"files",label:"Library",icon:p,isActive:x,onClick:g},t[14]=x,t[15]=g,t[16]=b):b=t[16];const j=b;let y;t[17]!==j||t[18]!==h?(y={type:"items",items:[h,j]},t[17]=j,t[18]=h,t[19]=y):y=t[19];let v;if(t[20]!==c||t[21]!==y){if(v=[y],c){let _;t[23]===Symbol.for("react.memo_cache_sentinel")?(_={type:"custom",key:"new-task",content:s.jsx(Lt,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ht,{children:s.jsx(Ae,{className:"gap-1.5",children:s.jsx(Nn,{})})})})},t[23]=_):_=t[23],v.push(_)}t[20]=c,t[21]=y,t[22]=v}else v=t[22];return v}function Rt(t){const e=N.c(12);let n,r,o,i;e[0]!==t?({className:n,orientation:o,decorative:i,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=i):(n=e[1],r=e[2],o=e[3],i=e[4]);const l=o===void 0?"horizontal":o,a=i===void 0?!0:i;let c;e[5]!==n?(c=Q("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",n),e[5]=n,e[6]=c):c=e[6];let d;return e[7]!==a||e[8]!==l||e[9]!==r||e[10]!==c?(d=s.jsx(sr,{"data-slot":"separator-root",decorative:a,orientation:l,className:c,...r}),e[7]=a,e[8]=l,e[9]=r,e[10]=c,e[11]=d):d=e[11],d}function wn(t){const e=N.c(3),{children:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=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]=r):r=e[0];let o;return e[1]!==n?(o=s.jsxs(Lt,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[r,s.jsx(Ht,{children:s.jsx(Ae,{className:"gap-0.5",children:n})})]}),e[1]=n,e[2]=o):o=e[2],o}function kn(t){const e=N.c(18),{item:n}=t,{isMobile:r,setOpenMobile:o}=Xe();let i;e[0]!==r||e[1]!==n||e[2]!==o?(i=()=>{se("nav_item_clicked",{nav_key:n.key,nav_label:n.label,is_active:!!n.isActive,is_mobile:r}),n.onClick?.(),r&&o(!1)},e[0]=r,e[1]=n,e[2]=o,e[3]=i):i=e[3];const l=i,a=n.key,c=n.isActive&&"z-10";let d;e[4]!==c?(d=Q(c),e[4]=c,e[5]=d):d=e[5];let u;e[6]!==n.label?(u=s.jsx("span",{children:n.label}),e[6]=n.label,e[7]=u):u=e[7];let m;e[8]!==l||e[9]!==n.icon||e[10]!==n.isActive||e[11]!==n.label||e[12]!==u?(m=s.jsxs(Ce,{onClick:l,isActive:n.isActive,tooltip:n.label,children:[n.icon,u]}),e[8]=l,e[9]=n.icon,e[10]=n.isActive,e[11]=n.label,e[12]=u,e[13]=m):m=e[13];let f;return e[14]!==n.key||e[15]!==d||e[16]!==m?(f=s.jsx(fe,{className:d,children:m},a),e[14]=n.key,e[15]=d,e[16]=m,e[17]=f):f=e[17],f}function Vi(t){const e=N.c(12),{section:n}=t;switch(n.type){case"divider":{let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Zs,{className:"my-2"}),e[0]=r):r=e[0],r}case"spacer":{let r;return e[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"flex-1"}),e[1]=r):r=e[1],r}case"group":{const r=n.group.label,o=n.group.defaultExpanded;let i;e[2]!==n.group.items?(i=n.group.items.map(Xi),e[2]=n.group.items,e[3]=i):i=e[3];let l;return e[4]!==n.group.defaultExpanded||e[5]!==n.group.label||e[6]!==i?(l=s.jsx(wn,{label:r,defaultExpanded:o,children:i}),e[4]=n.group.defaultExpanded,e[5]=n.group.label,e[6]=i,e[7]=l):l=e[7],l}case"items":{let r;e[8]!==n.items?(r=n.items.map(Yi),e[8]=n.items,e[9]=r):r=e[9];let o;return e[10]!==r?(o=s.jsx(Lt,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ht,{children:s.jsx(Ae,{className:"gap-1.5",children:r})})}),e[10]=r,e[11]=o):o=e[11],o}case"custom":return n.content}}function Yi(t){return s.jsx(kn,{item:t},t.key)}function Xi(t){return s.jsx(kn,{item:t},t.key)}function Qi(t){const e=N.c(14),{sections:n,footer:r,additionalContent:o,variant:i,contentClassName:l}=t,a=i===void 0?"sidebar":i;let c;e[0]!==l?(c=Q("flex flex-col flex-1 px-2 py-2 gap-0.5",l),e[0]=l,e[1]=c):c=e[1];let d;e[2]!==n?(d=n.map(Ji),e[2]=n,e[3]=d):d=e[3];let u;e[4]!==o?(u=o&&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:o}),e[4]=o,e[5]=u):u=e[5];let m;e[6]!==c||e[7]!==d||e[8]!==u?(m=s.jsxs(en,{className:c,children:[d,u]}),e[6]=c,e[7]=d,e[8]=u,e[9]=m):m=e[9];let f;return e[10]!==r||e[11]!==m||e[12]!==a?(f=s.jsxs(Tr,{variant:a,children:[m,r]}),e[10]=r,e[11]=m,e[12]=a,e[13]=f):f=e[13],f}function Ji(t,e){return s.jsx(Vi,{section:t},e)}function In(t){const e=N.c(2);let n;return e[0]!==t?(n=s.jsx(Qi,{...t}),e[0]=t,e[1]=n):n=e[1],n}In.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(Se,{className:"h-full bg-sidebar-accent rounded-md"})},n))})};function ls(){const t=N.c(22),e=Fo(),[n,r]=z.useState(!1);let o;if(t[0]!==e.capabilities||t[1]!==e.hostname||t[2]!==e.machineId||t[3]!==e.online){const x=Go(e.capabilities);o=e.online?s.jsxs("div",{className:"flex flex-col gap-0.5 text-xs",children:[s.jsx("span",{className:"font-medium",children:e.hostname??e.machineId??"Desktop linked"}),s.jsx("span",{className:"text-muted-foreground",children:x.length>0?`Available: ${x.join(", ")}`:"No CLI agents detected"})]}):s.jsx("span",{className:"text-xs",children:"Desktop disconnected"}),t[0]=e.capabilities,t[1]=e.hostname,t[2]=e.machineId,t[3]=e.online,t[4]=o}else o=t[4];const i=o;let l;t[5]===Symbol.for("react.memo_cache_sentinel")?(l=()=>r(!0),t[5]=l):l=t[5];const a=e.online?"Desktop linked":"Connect your desktop";let c;t[6]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(xn,{size:16}),t[6]=c):c=t[6];let d;t[7]!==e.online?(d=e.online&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-success ring-2 ring-background animate-pulse"}),t[7]=e.online,t[8]=d):d=t[8];let u;t[9]!==a||t[10]!==d?(u=s.jsx(ze,{asChild:!0,children:s.jsxs(pe,{onClick:l,"aria-label":a,children:[c,d]})}),t[9]=a,t[10]=d,t[11]=u):u=t[11];let m;t[12]!==i?(m=s.jsx(Oe,{side:"bottom",children:i}),t[12]=i,t[13]=m):m=t[13];let f;t[14]!==u||t[15]!==m?(f=s.jsxs(Pe,{children:[u,m]}),t[14]=u,t[15]=m,t[16]=f):f=t[16];let h;t[17]!==n?(h=s.jsx(Lo,{open:n,onOpenChange:r}),t[17]=n,t[18]=h):h=t[18];let p;return t[19]!==f||t[20]!==h?(p=s.jsxs(s.Fragment,{children:[f,h]}),t[19]=f,t[20]=h,t[21]=p):p=t[21],p}function Zi(t){const e=N.c(17),{onToggle:n,className:r}=t,i=Vs().logo??nr,l=typeof i=="string"?i:i.light,a=typeof i=="string"?i:i.dark;let c;e[0]!==r?(c=Q("flex flex-row items-center gap-2 md:gap-0.5 shrink-0 h-12 pl-1 pr-2 pt-0.25 pb-0","group-data-[collapsible=icon]/sidebar:hidden",r),e[0]=r,e[1]=c):c=e[1];let d;e[2]!==l?(d=s.jsx("img",{src:l,alt:"Logo",className:"size-6 object-contain dark:hidden"}),e[2]=l,e[3]=d):d=e[3];let u;e[4]!==a?(u=s.jsx("img",{src:a,alt:"Logo",className:"size-6 object-contain hidden dark:block"}),e[4]=a,e[5]=u):u=e[5];let m;e[6]!==d||e[7]!==u?(m=s.jsx("span",{className:"flex items-center shrink-0 pl-1",children:s.jsxs("span",{className:"flex items-center shrink-0 px-2",children:[d,u]})}),e[6]=d,e[7]=u,e[8]=m):m=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(Eo,{size:16}),e[9]=f):f=e[9];let h;e[10]!==n?(h=s.jsx(pe,{onClick:n,"aria-label":"Toggle sidebar",children:f}),e[10]=n,e[11]=h):h=e[11];let p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(ls,{}),e[12]=p):p=e[12];let x;return e[13]!==c||e[14]!==m||e[15]!==h?(x=s.jsxs($r,{className:c,children:[m,h,p]}),e[13]=c,e[14]=m,e[15]=h,e[16]=x):x=e[16],x}function Ms(t){const e=N.c(18),{item:n,onClose:r}=t,o=n.isActive&&"z-10";let i;e[0]!==o?(i=Q(o),e[0]=o,e[1]=i):i=e[1];let l;e[2]!==n||e[3]!==r?(l=()=>{n.onClick?.(),r()},e[2]=n,e[3]=r,e[4]=l):l=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 c;e[7]!==n.label?(c=s.jsx("span",{children:n.label}),e[7]=n.label,e[8]=c):c=e[8];let d;e[9]!==n.isActive||e[10]!==n.label||e[11]!==l||e[12]!==a||e[13]!==c?(d=s.jsxs(Ce,{onClick:l,isActive:n.isActive,tooltip:n.label,className:"h-10! text-sm!",children:[a,c]}),e[9]=n.isActive,e[10]=n.label,e[11]=l,e[12]=a,e[13]=c,e[14]=d):d=e[14];let u;return e[15]!==i||e[16]!==d?(u=s.jsx(fe,{className:i,children:d}),e[15]=i,e[16]=d,e[17]=u):u=e[17],u}function el(t){const e=N.c(18),{section:n,onClose:r}=t;switch(n.type){case"divider":{let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Zs,{className:"my-2"}),e[0]=o):o=e[0],o}case"spacer":{let o;return e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1"}),e[1]=o):o=e[1],o}case"group":{const o=n.group.label,i=n.group.defaultExpanded;let l;if(e[2]!==r||e[3]!==n.group.items){let c;e[5]!==r?(c=d=>s.jsx(Ms,{item:d,onClose:r},d.key),e[5]=r,e[6]=c):c=e[6],l=n.group.items.map(c),e[2]=r,e[3]=n.group.items,e[4]=l}else l=e[4];let a;return e[7]!==n.group.defaultExpanded||e[8]!==n.group.label||e[9]!==l?(a=s.jsx(wn,{label:o,defaultExpanded:i,children:l}),e[7]=n.group.defaultExpanded,e[8]=n.group.label,e[9]=l,e[10]=a):a=e[10],a}case"items":{let o;if(e[11]!==r||e[12]!==n.items){let l;e[14]!==r?(l=a=>s.jsx(Ms,{item:a,onClose:r},a.key),e[14]=r,e[15]=l):l=e[15],o=n.items.map(l),e[11]=r,e[12]=n.items,e[13]=o}else o=e[13];let i;return e[16]!==o?(i=s.jsx(Lt,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ht,{children:s.jsx(Ae,{className:"gap-1.5",children:o})})}),e[16]=o,e[17]=i):i=e[17],i}case"custom":return n.content}}function tl(t){const e=N.c(17),{sections:n,onClose:r,footer:o,additionalContent:i}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"h-12 shrink-0"}),e[0]=l):l=e[0];let a;e[1]!==r?(a=s.jsx(z.Suspense,{fallback:l,children:s.jsx(Zi,{onToggle:r})}),e[1]=r,e[2]=a):a=e[2];let c;if(e[3]!==r||e[4]!==n){let f;e[6]!==r?(f=(h,p)=>s.jsx(el,{section:h,onClose:r},p),e[6]=r,e[7]=f):f=e[7],c=n.map(f),e[3]=r,e[4]=n,e[5]=c}else c=e[5];let d;e[8]!==i?(d=i&&s.jsx("div",{className:"mt-3 flex flex-col flex-1 min-h-0",children:i}),e[8]=i,e[9]=d):d=e[9];let u;e[10]!==c||e[11]!==d?(u=s.jsxs(en,{className:"flex flex-col flex-1 px-2 py-2 gap-0",children:[c,d]}),e[10]=c,e[11]=d,e[12]=u):u=e[12];let m;return e[13]!==o||e[14]!==a||e[15]!==u?(m=s.jsxs("div",{className:"bg-sidebar flex h-full w-full flex-col","data-sidebar":"sidebar",children:[a,u,o]}),e[13]=o,e[14]=a,e[15]=u,e[16]=m):m=e[16],m}function Tn(t){return t.toLowerCase().trim().replace(/[^a-z0-9\s_-]+/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const sl=rr({name:or().min(2,"Organization name is required")});function nl(t){const e=N.c(41),{open:n,onOpenChange:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={resolver:ir(sl),defaultValues:{name:""}},e[0]=o):o=e[0];const i=lr(o);let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l={mutationFn:ol,onSuccess:rl},e[1]=l):l=e[1];const a=ar(l),c=a.error instanceof Error?a.error.message:a.error?"Failed to create organization.":null;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsxs(Zo,{children:[s.jsx(ei,{children:"Create a new organization"}),s.jsx(ti,{children:"Set up a new organization to collaborate with others."})]}),e[2]=d):d=e[2];let u;if(e[3]!==a||e[4]!==i){let S;e[6]!==a?(S=I=>a.mutateAsync(I),e[6]=a,e[7]=S):S=e[7],u=i.handleSubmit(S),e[3]=a,e[4]=i,e[5]=u}else u=e[5];let m;e[8]!==i.formState.isSubmitting?(m=S=>{const{field:I}=S;return s.jsxs(ii,{children:[s.jsx(li,{children:"Organization Name"}),s.jsx(ai,{children:s.jsx(ui,{...I,placeholder:"Acme Inc.",disabled:i.formState.isSubmitting})}),s.jsx(ci,{children:"The name of your company or organization"}),I.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:"","/",Tn(I.value)]})]}),s.jsx(di,{})]})},e[8]=i.formState.isSubmitting,e[9]=m):m=e[9];let f;e[10]!==i.control||e[11]!==m?(f=s.jsx(ri,{control:i.control,name:"name",render:m}),e[10]=i.control,e[11]=m,e[12]=f):f=e[12];let h;e[13]!==c?(h=c&&s.jsx("div",{className:"text-destructive text-sm mt-2",children:c}),e[13]=c,e[14]=h):h=e[14];let p;e[15]!==a||e[16]!==i?(p=()=>{a.reset(),i.reset()},e[15]=a,e[16]=i,e[17]=p):p=e[17];let x;e[18]!==i.formState.isSubmitting||e[19]!==p?(x=s.jsx(Qo,{disabled:i.formState.isSubmitting,onClick:p,children:"Cancel"}),e[18]=i.formState.isSubmitting,e[19]=p,e[20]=x):x=e[20];const g=!i.formState.isValid||i.formState.isSubmitting;let b;e[21]!==i.formState.isSubmitting?(b=i.formState.isSubmitting?s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(mi,{size:"xs"})," Creating..."]}):"Create Organization",e[21]=i.formState.isSubmitting,e[22]=b):b=e[22];let j;e[23]!==g||e[24]!==b?(j=s.jsx(pt,{type:"submit",variant:"default",disabled:g,children:b}),e[23]=g,e[24]=b,e[25]=j):j=e[25];let y;e[26]!==j||e[27]!==x?(y=s.jsxs(si,{children:[x,j]}),e[26]=j,e[27]=x,e[28]=y):y=e[28];let v;e[29]!==y||e[30]!==u||e[31]!==f||e[32]!==h?(v=s.jsxs("form",{className:"space-y-6",onSubmit:u,autoComplete:"off",children:[f,h,y]}),e[29]=y,e[30]=u,e[31]=f,e[32]=h,e[33]=v):v=e[33];let _;e[34]!==i||e[35]!==v?(_=s.jsxs(Jo,{children:[d,s.jsx(oi,{...i,children:v})]}),e[34]=i,e[35]=v,e[36]=_):_=e[36];let k;return e[37]!==r||e[38]!==n||e[39]!==_?(k=s.jsx(ni,{open:n,onOpenChange:r,children:_}),e[37]=r,e[38]=n,e[39]=_,e[40]=k):k=e[40],k}function rl(t){const{orgSlug:e}=t;window.location.href=`/${e}`}async function ol(t){const e=Tn(t.name);if(!e)throw new Error("Organization slug is invalid");const n=await Ne.organization.create({name:t.name,slug:e});if(n?.error)throw new Error(n.error.message||"Failed to create organization");const r=n?.data?.slug??e;if(!r)throw new Error("Failed to create organization");return{orgSlug:r}}function as(t){let e=0;for(let r=0;r<t.length;r++)e=t.charCodeAt(r)+((e<<5)-e);const n=Math.abs(e)%360;return{backgroundColor:`hsl(${n} 55% 70%)`,color:`hsl(${n} 55% 20%)`}}function il(t){const e=N.c(13),{org:n,size:r}=t,o=r===void 0?"sm":r,i=o==="xs"?"size-5":"size-6",l=o==="xs"?"text-[9px]":"text-xs";let a;e[0]!==i?(a=Q(i,"shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden"),e[0]=i,e[1]=a):a=e[1];let c;e[2]!==n.logo||e[3]!==n.name?(c=n.logo?void 0:as(n.name),e[2]=n.logo,e[3]=n.name,e[4]=c):c=e[4];let d;e[5]!==n.logo||e[6]!==n.name||e[7]!==l?(d=n.logo?s.jsx("img",{src:n.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:Q("font-semibold leading-none",l),children:n.name.slice(0,2).toUpperCase()}),e[5]=n.logo,e[6]=n.name,e[7]=l,e[8]=d):d=e[8];let u;return e[9]!==a||e[10]!==c||e[11]!==d?(u=s.jsx("div",{className:a,style:c,children:d}),e[9]=a,e[10]=c,e[11]=d,e[12]=u):u=e[12],u}function Pt(t){const e=N.c(22),{item:n,onClose:r}=t;if(n.href){const c=n.external?"_blank":void 0,d=n.external?"noopener noreferrer":void 0;let u;e[0]!==n.icon?(u=s.jsx("span",{className:"shrink-0 text-muted-foreground",children:n.icon}),e[0]=n.icon,e[1]=u):u=e[1];let m;e[2]!==n.label?(m=s.jsx("span",{className:"flex-1",children:n.label}),e[2]=n.label,e[3]=m):m=e[3];let f;return e[4]!==n.href||e[5]!==r||e[6]!==c||e[7]!==d||e[8]!==u||e[9]!==m?(f=s.jsxs("a",{href:n.href,target:c,rel:d,className:"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",onClick:r,children:[u,m]}),e[4]=n.href,e[5]=r,e[6]=c,e[7]=d,e[8]=u,e[9]=m,e[10]=f):f=e[10],f}let o;e[11]!==n||e[12]!==r?(o=()=>{n.onClick?.(),r()},e[11]=n,e[12]=r,e[13]=o):o=e[13];let i;e[14]!==n.icon?(i=s.jsx("span",{className:"shrink-0 text-muted-foreground",children:n.icon}),e[14]=n.icon,e[15]=i):i=e[15];let l;e[16]!==n.label?(l=s.jsx("span",{className:"flex-1",children:n.label}),e[16]=n.label,e[17]=l):l=e[17];let a;return e[18]!==o||e[19]!==i||e[20]!==l?(a=s.jsxs("button",{type:"button",onClick:o,className:"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",children:[i,l]}),e[18]=o,e[19]=i,e[20]=l,e[21]=a):a=e[21],a}function Rs(t){const e=N.c(31),{orgParam:n,onSelectOrg:r,onCreateOrg:o}=t,{data:i}=fr();let l;e[0]!==n?(l=(C,M)=>C.slug===n?-1:M.slug===n?1:C.name.localeCompare(M.name),e[0]=n,e[1]=l):l=e[1];const a=[...i??[]].sort(l),[c,d]=z.useState(!1),[u,m]=z.useState(""),f=u.toLowerCase(),h=f?a.filter(C=>C.name.toLowerCase().includes(f)||C.slug.toLowerCase().includes(f)):a;let p;e[2]!==c?(p=function(){c&&m(""),d(ll)},e[2]=c,e[3]=p):p=e[3];const x=p;let g;e[4]!==u||e[5]!==c||e[6]!==x?(g=c?s.jsx("input",{autoFocus:!0,type:"text",value:u,onChange:C=>m(C.target.value),onKeyDown:C=>C.key==="Escape"&&x(),placeholder:"Search organizations...",className:"flex-1 min-w-0 bg-transparent text-sm outline-none placeholder:text-muted-foreground/60"}):s.jsx("span",{className:"text-sm font-medium text-muted-foreground/60",children:"Your Organizations"}),e[4]=u,e[5]=c,e[6]=x,e[7]=g):g=e[7];let b;e[8]!==c?(b=c?s.jsx(hs,{size:16}):s.jsx(rn,{size:16}),e[8]=c,e[9]=b):b=e[9];let j;e[10]!==b||e[11]!==x?(j=s.jsx("button",{type:"button",onClick:x,className:"flex items-center justify-center size-7 rounded-md text-muted-foreground hover:bg-accent/50 hover:text-foreground transition-colors",children:b}),e[10]=b,e[11]=x,e[12]=j):j=e[12];let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(_e,{size:16}),e[13]=y):y=e[13];let v;e[14]!==o?(v=s.jsx("button",{type:"button",onClick:o,className:"flex items-center justify-center size-7 rounded-md text-muted-foreground hover:bg-accent/50 hover:text-foreground transition-colors",children:y}),e[14]=o,e[15]=v):v=e[15];let _;e[16]!==j||e[17]!==v?(_=s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[j,v]}),e[16]=j,e[17]=v,e[18]=_):_=e[18];let k;e[19]!==g||e[20]!==_?(k=s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[g,_]}),e[19]=g,e[20]=_,e[21]=k):k=e[21];const S="flex-1 min-h-0 overflow-y-auto p-1.5 flex flex-col gap-1",I=h.length===0&&s.jsx("p",{className:"px-3 py-4 text-sm text-muted-foreground/60 text-center",children:u?`No organizations match "${u}"`:"No organizations available"});let T;e[22]!==r||e[23]!==n?(T=C=>s.jsxs("button",{type:"button",onClick:()=>r(C.slug),className:Q("flex items-center gap-3 px-3 py-2.5 rounded-md text-sm text-left w-full transition-colors",C.slug===n?"bg-accent text-accent-foreground":"text-foreground hover:bg-accent/50"),children:[s.jsx(il,{org:C,size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:C.name}),s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:C.slug})]}),C.slug===n&&s.jsx(xs,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},C.id),e[22]=r,e[23]=n,e[24]=T):T=e[24];const $=h.map(T);let O;e[25]!==I||e[26]!==$?(O=s.jsxs("div",{className:S,children:[I,$]}),e[25]=I,e[26]=$,e[27]=O):O=e[27];let A;return e[28]!==O||e[29]!==k?(A=s.jsxs(s.Fragment,{children:[k,O]}),e[28]=O,e[29]=k,e[30]=A):A=e[30],A}function ll(t){return!t}function Es(t){const e=N.c(142),{user:n,userImage:r,menuItems:o,signOutItem:i,themeOptions:l,preferences:a,setPreferences:c,orgParam:d,onSelectOrg:u,onCreateOrg:m,close:f,isMobile:h,open:p}=t;if(h){const X=n?.name??"U";let U;e[0]!==X||e[1]!==r?(U=s.jsx(is,{url:r,fallback:X,shape:"circle",size:"sm",className:"shrink-0"}),e[0]=X,e[1]=r,e[2]=U):U=e[2];const ne=n?.name??"User";let re;e[3]!==ne?(re=s.jsx("p",{className:"text-sm font-medium truncate",children:ne}),e[3]=ne,e[4]=re):re=e[4];const ae=n?.email;let Z;e[5]!==ae?(Z=s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:ae}),e[5]=ae,e[6]=Z):Z=e[6];let ce;e[7]!==re||e[8]!==Z?(ce=s.jsxs("div",{className:"flex-1 min-w-0",children:[re,Z]}),e[7]=re,e[8]=Z,e[9]=ce):ce=e[9];let je;e[10]!==n?(je=()=>{n?.id&&navigator.clipboard.writeText(n.id).then(ul)},e[10]=n,e[11]=je):je=e[11];let Qe;e[12]===Symbol.for("react.memo_cache_sentinel")?(Qe=s.jsx($s,{size:14}),e[12]=Qe):Qe=e[12];let Re;e[13]!==je?(Re=s.jsx(ze,{asChild:!0,children:s.jsx("button",{type:"button",tabIndex:-1,onClick:je,className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:Qe})}),e[13]=je,e[14]=Re):Re=e[14];let we;e[15]===Symbol.for("react.memo_cache_sentinel")?(we=s.jsx(Oe,{side:"right",children:s.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[15]=we):we=e[15];let Ee;e[16]!==Re?(Ee=s.jsx(Cs,{delayDuration:300,children:s.jsxs(Pe,{children:[Re,we]})}),e[16]=Re,e[17]=Ee):Ee=e[17];let de;e[18]!==Ee||e[19]!==U||e[20]!==ce?(de=s.jsxs("div",{className:"flex items-center gap-3 px-4 py-4 border-b border-border",children:[U,ce,Ee]}),e[18]=Ee,e[19]=U,e[20]=ce,e[21]=de):de=e[21];const Fe=String(p);let ue;e[22]!==m||e[23]!==u||e[24]!==d||e[25]!==Fe?(ue=s.jsx("div",{className:"border-b border-border pb-2",children:s.jsx(Rs,{orgParam:d,onSelectOrg:u,onCreateOrg:m},Fe)}),e[22]=m,e[23]=u,e[24]=d,e[25]=Fe,e[26]=ue):ue=e[26];let xe;if(e[27]!==f||e[28]!==o){let be;e[30]!==f?(be=Ke=>s.jsx(Pt,{item:Ke,onClose:f},Ke.key),e[30]=f,e[31]=be):be=e[31],xe=o.map(be),e[27]=f,e[28]=o,e[29]=xe}else xe=e[29];let me;e[32]!==f||e[33]!==i?(me=s.jsx(Pt,{item:i,onClose:f}),e[32]=f,e[33]=i,e[34]=me):me=e[34];let ke;e[35]!==xe||e[36]!==me?(ke=s.jsxs("nav",{className:"flex flex-col px-2 pt-2 pb-2 gap-0.5",children:[xe,me]}),e[35]=xe,e[36]=me,e[37]=ke):ke=e[37];let he;e[38]!==ue||e[39]!==ke?(he=s.jsxs("div",{className:"flex-1 min-h-0 overflow-y-auto",children:[ue,ke]}),e[38]=ue,e[39]=ke,e[40]=he):he=e[40];let Ge;if(e[41]!==a.theme||e[42]!==c||e[43]!==l){let be;e[45]!==a.theme||e[46]!==c?(be=Ke=>{const{value:ye,icon:Ve,label:Je}=Ke;return s.jsx("button",{type:"button","aria-label":Je,onClick:()=>c(Ye=>({...Ye,theme:ye})),className:Q("size-8 rounded-md flex items-center justify-center transition-colors",a.theme===ye?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground"),children:Ve},ye)},e[45]=a.theme,e[46]=c,e[47]=be):be=e[47],Ge=l.map(be),e[41]=a.theme,e[42]=c,e[43]=l,e[44]=Ge}else Ge=e[44];let ve;e[48]!==Ge?(ve=s.jsx("div",{className:"flex items-center gap-0.5",children:Ge}),e[48]=Ge,e[49]=ve):ve=e[49];const Le=a.enableSounds?"Disable sounds":"Enable sounds";let He;e[50]!==c?(He=()=>c(dl),e[50]=c,e[51]=He):He=e[51];const ht=a.enableSounds?"text-foreground hover:bg-sidebar-accent/50":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground";let Be;e[52]!==ht?(Be=Q("size-8 rounded-md flex items-center justify-center transition-colors",ht),e[52]=ht,e[53]=Be):Be=e[53];let Ue;e[54]!==a.enableSounds?(Ue=a.enableSounds?s.jsx(ws,{size:14}):s.jsx(ks,{size:14}),e[54]=a.enableSounds,e[55]=Ue):Ue=e[55];let Ie;e[56]!==Le||e[57]!==He||e[58]!==Be||e[59]!==Ue?(Ie=s.jsx("button",{type:"button","aria-label":Le,onClick:He,className:Be,children:Ue}),e[56]=Le,e[57]=He,e[58]=Be,e[59]=Ue,e[60]=Ie):Ie=e[60];let ge;e[61]===Symbol.for("react.memo_cache_sentinel")?(ge=s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","4.2.0"]}),e[61]=ge):ge=e[61];let qe;e[62]!==Ie?(qe=s.jsxs("div",{className:"flex items-center gap-2",children:[Ie,ge]}),e[62]=Ie,e[63]=qe):qe=e[63];let We;e[64]!==ve||e[65]!==qe?(We=s.jsxs("div",{className:"flex items-center justify-between px-3 py-3 border-t border-border/50",children:[ve,qe]}),e[64]=ve,e[65]=qe,e[66]=We):We=e[66];let gt;return e[67]!==de||e[68]!==he||e[69]!==We?(gt=s.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[de,he,We]}),e[67]=de,e[68]=he,e[69]=We,e[70]=gt):gt=e[70],gt}const x=n?.name??"U";let g;e[71]!==x||e[72]!==r?(g=s.jsx(is,{url:r,fallback:x,shape:"circle",size:"sm",className:"shrink-0"}),e[71]=x,e[72]=r,e[73]=g):g=e[73];const b=n?.name??"User";let j;e[74]!==b?(j=s.jsx("p",{className:"text-sm font-medium truncate",children:b}),e[74]=b,e[75]=j):j=e[75];const y=n?.email;let v;e[76]!==y?(v=s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:y}),e[76]=y,e[77]=v):v=e[77];let _;e[78]!==j||e[79]!==v?(_=s.jsxs("div",{className:"flex-1 min-w-0",children:[j,v]}),e[78]=j,e[79]=v,e[80]=_):_=e[80];let k;e[81]!==n?(k=()=>{n?.id&&navigator.clipboard.writeText(n.id).then(cl)},e[81]=n,e[82]=k):k=e[82];let S;e[83]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx($s,{size:14}),e[83]=S):S=e[83];let I;e[84]!==k?(I=s.jsx(ze,{asChild:!0,children:s.jsx("button",{type:"button",tabIndex:-1,onClick:k,className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:S})}),e[84]=k,e[85]=I):I=e[85];let T;e[86]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(Oe,{side:"right",children:s.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[86]=T):T=e[86];let $;e[87]!==I?($=s.jsx(Cs,{delayDuration:300,children:s.jsxs(Pe,{children:[I,T]})}),e[87]=I,e[88]=$):$=e[88];let O;e[89]!==$||e[90]!==g||e[91]!==_?(O=s.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 mx-1 mt-1",children:[g,_,$]}),e[89]=$,e[90]=g,e[91]=_,e[92]=O):O=e[92];let A;if(e[93]!==f||e[94]!==o){let X;e[96]!==f?(X=U=>s.jsx(Pt,{item:U,onClose:f},U.key),e[96]=f,e[97]=X):X=e[97],A=o.map(X),e[93]=f,e[94]=o,e[95]=A}else A=e[95];let C;e[98]!==f||e[99]!==i?(C=s.jsx(Pt,{item:i,onClose:f}),e[98]=f,e[99]=i,e[100]=C):C=e[100];let M;e[101]!==A||e[102]!==C?(M=s.jsxs("nav",{className:"flex-1 flex flex-col px-2 pt-1 overflow-y-auto",children:[A,C]}),e[101]=A,e[102]=C,e[103]=M):M=e[103];let V;if(e[104]!==a.theme||e[105]!==c||e[106]!==l){let X;e[108]!==a.theme||e[109]!==c?(X=U=>{const{value:ne,icon:re,label:ae}=U;return s.jsx("button",{type:"button","aria-label":ae,onClick:()=>c(Z=>({...Z,theme:ne})),className:Q("size-7 rounded-md flex items-center justify-center transition-colors",a.theme===ne?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground"),children:re},ne)},e[108]=a.theme,e[109]=c,e[110]=X):X=e[110],V=l.map(X),e[104]=a.theme,e[105]=c,e[106]=l,e[107]=V}else V=e[107];let q;e[111]!==V?(q=s.jsx("div",{className:"flex items-center gap-0.5",children:V}),e[111]=V,e[112]=q):q=e[112];const E=a.enableSounds?"Disable sounds":"Enable sounds";let L;e[113]!==c?(L=()=>c(al),e[113]=c,e[114]=L):L=e[114];const R=a.enableSounds?"text-foreground hover:bg-sidebar-accent/50":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground";let H;e[115]!==R?(H=Q("size-7 rounded-md flex items-center justify-center transition-colors",R),e[115]=R,e[116]=H):H=e[116];let P;e[117]!==a.enableSounds?(P=a.enableSounds?s.jsx(ws,{size:14}):s.jsx(ks,{size:14}),e[117]=a.enableSounds,e[118]=P):P=e[118];let G;e[119]!==E||e[120]!==L||e[121]!==H||e[122]!==P?(G=s.jsx("button",{type:"button","aria-label":E,onClick:L,className:H,children:P}),e[119]=E,e[120]=L,e[121]=H,e[122]=P,e[123]=G):G=e[123];let D;e[124]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","4.2.0"]}),e[124]=D):D=e[124];let B;e[125]!==G?(B=s.jsxs("div",{className:"flex items-center gap-2",children:[G,D]}),e[125]=G,e[126]=B):B=e[126];let F;e[127]!==q||e[128]!==B?(F=s.jsxs("div",{className:"flex items-center justify-between px-2 py-1.5 border-t border-border/50",children:[q,B]}),e[127]=q,e[128]=B,e[129]=F):F=e[129];let Y;e[130]!==O||e[131]!==M||e[132]!==F?(Y=s.jsxs("div",{className:"w-60 shrink-0 flex flex-col border-r border-border bg-sidebar/75",children:[O,M,F]}),e[130]=O,e[131]=M,e[132]=F,e[133]=Y):Y=e[133];const ee=String(p);let K;e[134]!==m||e[135]!==u||e[136]!==d||e[137]!==ee?(K=s.jsx("div",{className:"flex-1 flex flex-col min-w-0 min-h-0 overflow-hidden",children:s.jsx(Rs,{orgParam:d,onSelectOrg:u,onCreateOrg:m},ee)}),e[134]=m,e[135]=u,e[136]=d,e[137]=ee,e[138]=K):K=e[138];let J;return e[139]!==Y||e[140]!==K?(J=s.jsxs("div",{className:"flex min-h-[380px] w-full overflow-hidden",children:[Y,K]}),e[139]=Y,e[140]=K,e[141]=J):J=e[141],J}function al(t){return{...t,enableSounds:!t.enableSounds}}function cl(){Te.success("User ID copied")}function dl(t){return{...t,enableSounds:!t.enableSounds}}function ul(){Te.success("User ID copied")}function cs(){const t=N.c(44),{data:e}=Ne.useSession(),{org:n}=le(),r=Me();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org",shouldThrow:!1},t[0]=o):o=t[0];const l=cr(o)?.params.org,[a,c]=dr(),d=ps(),[u,m]=z.useState(!1),[f,h]=z.useState(!1),p=e?.user,x=p?.image;let g;t[1]!==r?(g=Y=>{m(!1),r({to:"/$org",params:{org:Y}})},t[1]=r,t[2]=g):g=t[2];const b=g;let j;t[3]===Symbol.for("react.memo_cache_sentinel")?(j=()=>m(!1),t[3]=j):j=t[3];const y=j;let v;t[4]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(vt,{size:16}),t[4]=v):v=t[4];let _;t[5]!==r||t[6]!==l?(_={key:"preferences",label:"Preferences",icon:v,onClick:()=>{r({to:"/$org/settings/profile",params:{org:l??""}})}},t[5]=r,t[6]=l,t[7]=_):_=t[7];let k;t[8]!==n||t[9]!==r?(k=n?[{key:"install-app",label:"Add to Home Screen",icon:s.jsx(Ho,{size:16}),onClick:()=>{r({to:"/$org/install",params:{org:n.slug}})}}]:[],t[8]=n,t[9]=r,t[10]=k):k=t[10];let S;t[11]===Symbol.for("react.memo_cache_sentinel")?(S={key:"terms",label:"Terms of Use",icon:s.jsx(Er,{size:16}),href:"https://www.decocms.com/terms-of-use",external:!0},t[11]=S):S=t[11];let I;t[12]===Symbol.for("react.memo_cache_sentinel")?(I={key:"privacy",label:"Privacy Policy",icon:s.jsx(Yo,{size:16}),href:"https://www.decocms.com/privacy-policy",external:!0},t[12]=I):I=t[12];let T;t[13]===Symbol.for("react.memo_cache_sentinel")?(T={key:"github",label:"decocms/studio",icon:s.jsx(ur,{className:"w-4 h-4"}),href:"https://github.com/decocms/studio",external:!0},t[13]=T):T=t[13];let $;t[14]===Symbol.for("react.memo_cache_sentinel")?($={key:"community",label:"Community",icon:s.jsx(Xo,{size:16}),href:"https://decocms.com/discord",external:!0},t[14]=$):$=t[14];let O;t[15]===Symbol.for("react.memo_cache_sentinel")?(O={key:"homepage",label:"Homepage",icon:s.jsx(Bo,{size:16}),href:"https://decocms.com",external:!0},t[15]=O):O=t[15];let A;t[16]!==_||t[17]!==k?(A=[_,...k,S,I,T,$,O],t[16]=_,t[17]=k,t[18]=A):A=t[18];const C=A;let M;t[19]===Symbol.for("react.memo_cache_sentinel")?(M={key:"logout",label:"Sign out",icon:s.jsx(Uo,{size:16}),onClick:fl},t[19]=M):M=t[19];const V=M;let q;t[20]===Symbol.for("react.memo_cache_sentinel")?(q={value:"light",icon:s.jsx(qo,{size:14}),label:"Light theme"},t[20]=q):q=t[20];let E;t[21]===Symbol.for("react.memo_cache_sentinel")?(E={value:"dark",icon:s.jsx(Wo,{size:14}),label:"Dark theme"},t[21]=E):E=t[21];let L;t[22]===Symbol.for("react.memo_cache_sentinel")?(L=[q,E,{value:"system",icon:s.jsx(xn,{size:14}),label:"System theme"}],t[22]=L):L=t[22];const R=L;let H;t[23]===Symbol.for("react.memo_cache_sentinel")?(H=()=>{m(!1),h(!0)},t[23]=H):H=t[23];let P;t[24]!==b||t[25]!==d||t[26]!==C||t[27]!==u||t[28]!==l||t[29]!==a||t[30]!==c||t[31]!==p||t[32]!==x?(P={user:p,userImage:x,menuItems:C,signOutItem:V,themeOptions:R,preferences:a,setPreferences:c,orgParam:l,onSelectOrg:b,onCreateOrg:H,close:y,isMobile:d,open:u},t[24]=b,t[25]=d,t[26]=C,t[27]=u,t[28]=l,t[29]=a,t[30]=c,t[31]=p,t[32]=x,t[33]=P):P=t[33];const G=P;let D;t[34]!==n||t[35]!==d||t[36]!==u||t[37]!==G?(D=d?s.jsxs(tn,{open:u,onOpenChange:m,direction:"bottom",children:[s.jsxs("button",{type:"button",onClick:()=>m(!0),className:"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",children:[s.jsx("div",{className:"shrink-0 size-5 rounded-md flex items-center justify-center border border-border/50 overflow-hidden",style:n?.logo?void 0:as(n?.name??""),children:n?.logo?s.jsx("img",{src:n.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"font-semibold leading-none text-[8px]",children:(n?.name??"?").slice(0,2).toUpperCase()})}),s.jsx("span",{className:"truncate",children:n?.name??"Account"})]}),s.jsxs(sn,{className:"h-[80dvh] p-0",children:[s.jsx(nn,{className:"sr-only",children:"Account"}),s.jsx(Es,{...G})]})]}):s.jsxs(Bt,{open:u,onOpenChange:m,children:[s.jsx(xt,{asChild:!0,children:s.jsxs(Ce,{tooltip:n?.name??"Account",className:"rounded-md",children:[s.jsx("div",{className:"shrink-0 size-6 rounded-md flex items-center justify-center border border-border/50 overflow-hidden",style:n?.logo?void 0:as(n?.name??""),children:n?.logo?s.jsx("img",{src:n.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"font-semibold leading-none text-[9px]",children:(n?.name??"?").slice(0,2).toUpperCase()})}),s.jsx("span",{className:"truncate",children:n?.name??"Account"})]})}),s.jsx(Ut,{side:"right",align:"end",sideOffset:18,collisionPadding:16,className:"w-[520px] p-0 flex max-h-[520px]",onCloseAutoFocus:ml,children:s.jsx(Es,{...G})})]}),t[34]=n,t[35]=d,t[36]=u,t[37]=G,t[38]=D):D=t[38];let B;t[39]!==f?(B=s.jsx(nl,{open:f,onOpenChange:h}),t[39]=f,t[40]=B):B=t[40];let F;return t[41]!==D||t[42]!==B?(F=s.jsxs(s.Fragment,{children:[D,B]}),t[41]=D,t[42]=B,t[43]=F):F=t[43],F}function ml(t){return t.preventDefault()}function fl(){se("signed_out",{source:"account_popover"}),mr(),Ne.signOut()}function pl({invitation:t}){const[e,n]=z.useState(!1),[r,o]=z.useState(!1),i=pr(),l=async()=>{n(!0);try{const d=await Ne.organization.acceptInvitation({invitationId:t.id});if(d.error){Te.error(d.error.message),n(!1);return}}catch{Te.error("Failed to accept invitation"),n(!1);return}Te.success("Invitation accepted!"),xr();let c;try{c=(await Ne.organization.getFullOrganization({query:{organizationId:t.organizationId}}))?.data?.slug}catch{}window.location.href=c?`/${c}`:"/"},a=async()=>{o(!0);try{const c=await Ne.organization.rejectInvitation({invitationId:t.id});c.error?(Te.error(c.error.message),o(!1)):(Te.success("Invitation declined"),i.invalidateQueries())}catch{Te.error("Failed to decline invitation"),o(!1)}};return s.jsxs("div",{className:"flex items-center gap-3 px-5 py-4 border-b border-border last:border-0 hover:bg-muted/25 transition-colors",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-xs text-muted-foreground",children:"You've been invited to join"}),s.jsx("p",{className:"text-sm font-medium truncate",children:t.organizationName??"Unknown organization"})]}),s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[s.jsx(pt,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:l,disabled:e||r,"aria-label":"Accept invitation",children:s.jsx(xs,{size:14})}),s.jsx(pt,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:a,disabled:e||r,"aria-label":"Decline invitation",children:s.jsx(hs,{size:14})})]})]})}function xl(t){const e=N.c(29),{request:n}=t,{approve:r,deny:o}=pi(),i=r.isPending||o.isPending,l=n.user?.name??n.user?.email??n.userId,a=n.user?.image??void 0;let c;e[0]!==l?(c=l.charAt(0).toUpperCase(),e[0]=l,e[1]=c):c=e[1];let d;e[2]!==a||e[3]!==c?(d=s.jsx(is,{url:a,fallback:c,shape:"circle",size:"sm"}),e[2]=a,e[3]=c,e[4]=d):d=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("p",{className:"text-xs text-muted-foreground",children:"Requested to join"}),e[5]=u):u=e[5];let m;e[6]!==l?(m=s.jsxs("div",{className:"flex-1 min-w-0",children:[u,s.jsx("p",{className:"text-sm font-medium truncate",children:l})]}),e[6]=l,e[7]=m):m=e[7];let f;e[8]!==r||e[9]!==n.id?(f=()=>r.mutate(n.id),e[8]=r,e[9]=n.id,e[10]=f):f=e[10];let h;e[11]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(xs,{size:14}),e[11]=h):h=e[11];let p;e[12]!==i||e[13]!==f?(p=s.jsx(pt,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:f,disabled:i,"aria-label":"Approve join request",children:h}),e[12]=i,e[13]=f,e[14]=p):p=e[14];let x;e[15]!==o||e[16]!==n.id?(x=()=>o.mutate(n.id),e[15]=o,e[16]=n.id,e[17]=x):x=e[17];let g;e[18]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(hs,{size:14}),e[18]=g):g=e[18];let b;e[19]!==i||e[20]!==x?(b=s.jsx(pt,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:x,disabled:i,"aria-label":"Deny join request",children:g}),e[19]=i,e[20]=x,e[21]=b):b=e[21];let j;e[22]!==b||e[23]!==p?(j=s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[p,b]}),e[22]=b,e[23]=p,e[24]=j):j=e[24];let y;return e[25]!==j||e[26]!==d||e[27]!==m?(y=s.jsxs("div",{className:"flex items-center gap-3 px-5 py-4 border-b border-border last:border-0 hover:bg-muted/25 transition-colors",children:[d,m,j]}),e[25]=j,e[26]=d,e[27]=m,e[28]=y):y=e[28],y}function hl(t){const e=N.c(14),{release:n,isSeen:r,onSelect:o}=t;let i;e[0]!==r?(i=!r&&s.jsx("span",{"aria-label":"New release",className:"absolute left-2 top-1/2 -translate-y-1/2 size-1.5 rounded-full bg-primary"}),e[0]=r,e[1]=i):i=e[1];let l;e[2]!==n.eyebrow?(l=n.eyebrow&&s.jsx("p",{className:"text-xs text-muted-foreground",children:n.eyebrow}),e[2]=n.eyebrow,e[3]=l):l=e[3];let a;e[4]!==n.title?(a=s.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:n.title}),e[4]=n.title,e[5]=a):a=e[5];let c;e[6]!==l||e[7]!==a?(c=s.jsxs("div",{className:"flex-1 min-w-0",children:[l,a]}),e[6]=l,e[7]=a,e[8]=c):c=e[8];let d;e[9]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(bs,{size:16,className:"text-muted-foreground shrink-0"}),e[9]=d):d=e[9];let u;return e[10]!==o||e[11]!==i||e[12]!==c?(u=s.jsxs("button",{type:"button",onClick:o,className:"relative w-full flex items-center gap-3 px-5 py-4 border-b border-border last:border-0 hover:bg-muted/25 transition-colors text-left",children:[i,c,d]}),e[10]=o,e[11]=i,e[12]=c,e[13]=u):u=e[13],u}function gl(){const t=z.useContext(hr),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(r=>r.status==="pending"&&new Date(r.expiresAt)>new Date)}function $n(){const t=N.c(11),{isSeen:e,markSeen:n,unseenCount:r}=so(),o=gl(),i=xi();let l;if(t[0]!==e||t[1]!==o||t[2]!==i){const d=[...i].sort(Sl).map(yl),u=[...o].sort(vl).map(jl);let m;t[4]!==e?(m=h=>({type:"release",release:h,isSeen:e(h.id)}),t[4]=e,t[5]=m):m=t[5];const f=[...no].sort(bl).map(m);l=[...d,...u,...f],t[0]=e,t[1]=o,t[2]=i,t[3]=l}else l=t[3];const a=r+o.length+i.length;let c;return t[6]!==n||t[7]!==o||t[8]!==l||t[9]!==a?(c={items:l,pendingInvitations:o,redDotCount:a,markReleaseSeen:n},t[6]=n,t[7]=o,t[8]=l,t[9]=a,t[10]=c):c=t[10],c}function bl(t,e){return new Date(e.date).getTime()-new Date(t.date).getTime()}function jl(t){return{type:"invitation",invitation:t}}function vl(t,e){return new Date(t.expiresAt).getTime()-new Date(e.expiresAt).getTime()}function yl(t){return{type:"join-request",request:t}}function Sl(t,e){return new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime()}class An extends z.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 zn(t){return t<=1?"text-destructive":t<=5?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function _l(){const t=N.c(17),e=Me(),{org:n}=le(),{hasDecoKey:r,balanceDollars:o}=fn();if(!r)return null;let i;t[0]!==o?(i=o!=null?`Credits: $${o.toFixed(2)}`:"Credits",t[0]=o,t[1]=i):i=t[1];let l;t[2]!==o?(l=Q(o!=null&&zn(o)),t[2]=o,t[3]=l):l=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 c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(ln,{}),t[7]=c):c=t[7];let d;t[8]!==o?(d=o!=null?`$${o.toFixed(2)}`:"Credits",t[8]=o,t[9]=d):d=t[9];let u;t[10]!==d?(u=s.jsx("span",{children:d}),t[10]=d,t[11]=u):u=t[11];let m;return t[12]!==i||t[13]!==l||t[14]!==a||t[15]!==u?(m=s.jsx(Ae,{children:s.jsx(fe,{children:s.jsxs(Ce,{tooltip:i,className:l,onClick:a,children:[c,u]})})}),t[12]=i,t[13]=l,t[14]=a,t[15]=u,t[16]=m):m=t[16],m}function Nl(){const t=N.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(An,{children:s.jsx(z.Suspense,{fallback:null,children:s.jsx(_l,{})})}),t[0]=e):e=t[0],e}function Cl(){const t=N.c(17),e=Me(),{org:n}=le(),{hasDecoKey:r,balanceDollars:o}=fn();if(!r)return null;let i;t[0]!==o?(i=o!=null?`Credits: $${o.toFixed(2)}`:"Credits",t[0]=o,t[1]=i):i=t[1];const l=i;let a;t[2]!==e||t[3]!==n.slug?(a=()=>e({to:"/$org/settings/ai-providers",params:{org:n.slug}}),t[2]=e,t[3]=n.slug,t[4]=a):a=t[4];let c;t[5]!==o?(c=Q(o!=null&&zn(o)),t[5]=o,t[6]=c):c=t[6];let d;t[7]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(ln,{className:"size-4"}),t[7]=d):d=t[7];let u;t[8]!==a||t[9]!==c||t[10]!==l?(u=s.jsx(ze,{asChild:!0,children:s.jsx(pe,{"aria-label":l,onClick:a,className:c,children:d})}),t[8]=a,t[9]=c,t[10]=l,t[11]=u):u=t[11];let m;t[12]!==l?(m=s.jsx(Oe,{side:"top",children:l}),t[12]=l,t[13]=m):m=t[13];let f;return t[14]!==u||t[15]!==m?(f=s.jsxs(Pe,{delayDuration:300,children:[u,m]}),t[14]=u,t[15]=m,t[16]=f):f=t[16],f}function wl(){const t=N.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(An,{children:s.jsx(z.Suspense,{fallback:null,children:s.jsx(Cl,{})})}),t[0]=e):e=t[0],e}function On(t){const e=N.c(15),{children:n}=t,{items:r,markReleaseSeen:o}=$n(),[i,l]=z.useState(null);let a;if(e[0]!==r||e[1]!==i){let x;e[3]!==i?(x=g=>g.type==="release"&&g.release.id===i,e[3]=i,e[4]=x):x=e[4],a=r.find(x),e[0]=r,e[1]=i,e[2]=a}else a=e[2];const c=a,d=c?.type==="release"?c.release:null;let u;e[5]!==o?(u=x=>{l(x),o(x)},e[5]=o,e[6]=u):u=e[6];const m=u;let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=x=>{x||l(null)},e[7]=f):f=e[7];let h;e[8]!==m||e[9]!==r||e[10]!==d?(h=s.jsx(Ut,{side:"right",align:"start",sideOffset:16,collisionPadding:16,className:"w-[min(400px,calc(100vw-2rem))] p-0 h-[min(650px,calc(100dvh-4rem))] flex flex-col",children:d?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center gap-2 px-3 py-3 border-b border-border shrink-0",children:[s.jsx(pt,{size:"icon",variant:"ghost","aria-label":"Back to inbox",className:"size-7 text-muted-foreground",onClick:()=>l(null),children:s.jsx(Ko,{size:16})}),s.jsx("h3",{className:"text-sm font-medium truncate",children:d.title})]}),s.jsx("div",{className:"overflow-y-auto flex-1 p-5",children:s.jsx(ro,{release:d})})]}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"px-4 py-3 border-b border-border shrink-0",children:s.jsx("h3",{className:"text-sm font-medium",children:"Inbox"})}),r.length===0?s.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center",children:[s.jsx(gs,{size:24,className:"text-muted-foreground/50"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:"Nothing here yet"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Invitations, join requests, and release updates will appear here"})]}):s.jsx("div",{className:"overflow-y-auto flex-1",children:r.map(x=>x.type==="join-request"?s.jsx(xl,{request:x.request},`req-${x.request.id}`):x.type==="invitation"?s.jsx(pl,{invitation:x.invitation},`inv-${x.invitation.id}`):s.jsx(hl,{release:x.release,isSeen:x.isSeen,onSelect:()=>m(x.release.id)},`rel-${x.release.id}`))})]})}),e[8]=m,e[9]=r,e[10]=d,e[11]=h):h=e[11];let p;return e[12]!==n||e[13]!==h?(p=s.jsxs(Bt,{onOpenChange:f,children:[n,h]}),e[12]=n,e[13]=h,e[14]=p):p=e[14],p}function Pn(){const{redDotCount:t}=$n();return t>0}function kl(){const t=N.c(6),e=Pn();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(gs,{}),t[0]=n):n=t[0];let r;t[1]!==e?(r=e&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-red-500 pointer-events-none"}),t[1]=e,t[2]=r):r=t[2];let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("span",{children:"Inbox"}),t[3]=o):o=t[3];let i;return t[4]!==r?(i=s.jsx(On,{children:s.jsx(xt,{asChild:!0,children:s.jsxs(Ce,{tooltip:"Inbox",className:"relative",children:[n,r,o]})})}),t[4]=r,t[5]=i):i=t[5],i}function Il(){const t=N.c(8),e=Pn();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(gs,{className:"size-4"}),t[0]=n):n=t[0];let r;t[1]!==e?(r=e&&s.jsx("span",{className:"absolute top-0.5 right-0.5 size-2 rounded-full bg-red-500 pointer-events-none"}),t[1]=e,t[2]=r):r=t[2];let o;t[3]!==r?(o=s.jsx(xt,{asChild:!0,children:s.jsx(ze,{asChild:!0,children:s.jsxs(pe,{"aria-label":"Inbox",children:[n,r]})})}),t[3]=r,t[4]=o):o=t[4];let i;t[5]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Oe,{side:"top",children:"Inbox"}),t[5]=i):i=t[5];let l;return t[6]!==o?(l=s.jsx(On,{children:s.jsxs(Pe,{delayDuration:300,children:[o,i]})}),t[6]=o,t[7]=l):l=t[7],l}function Tl(){const t=N.c(3),[e,n]=z.useState(!1);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs(Ce,{tooltip:"Connections",onClick:()=>{se("connections_dialog_opened",{source:"sidebar_footer",mode:"browse"}),n(!0)},children:[s.jsx(hn,{}),s.jsx("span",{children:"Connections"})]}),t[0]=r):r=t[0];let o;return t[1]!==e?(o=s.jsxs(s.Fragment,{children:[r,s.jsx(pn,{mode:"browse",open:e,onOpenChange:n,defaultTab:"all"})]}),t[1]=e,t[2]=o):o=t[2],o}function $l(){const t=N.c(3),[e,n]=z.useState(!1);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs(Pe,{delayDuration:300,children:[s.jsx(ze,{asChild:!0,children:s.jsx(pe,{"aria-label":"Connections",onClick:()=>{se("connections_dialog_opened",{source:"sidebar_footer",mode:"browse"}),n(!0)},children:s.jsx(hn,{className:"size-4"})})}),s.jsx(Oe,{side:"top",children:"Connections"})]}),t[0]=r):r=t[0];let o;return t[1]!==e?(o=s.jsxs(s.Fragment,{children:[r,s.jsx(pn,{mode:"browse",open:e,onOpenChange:n,defaultTab:"all"})]}),t[1]=e,t[2]=o):o=t[2],o}function Al(){const t=N.c(7),e=Me(),{org:n}=le();let r;t[0]!==e||t[1]!==n.slug?(r=()=>e({to:"/$org/settings",params:{org:n.slug}}),t[0]=e,t[1]=n.slug,t[2]=r):r=t[2];let o,i;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(vt,{}),i=s.jsx("span",{children:"Settings"}),t[3]=o,t[4]=i):(o=t[3],i=t[4]);let l;return t[5]!==r?(l=s.jsxs(Ce,{tooltip:"Settings",onClick:r,children:[o,i]}),t[5]=r,t[6]=l):l=t[6],l}function zl(){const t=N.c(9),e=Me(),{org:n}=le();let r;t[0]!==e||t[1]!==n.slug?(r=()=>e({to:"/$org/settings",params:{org:n.slug}}),t[0]=e,t[1]=n.slug,t[2]=r):r=t[2];let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(vt,{className:"size-4"}),t[3]=o):o=t[3];let i;t[4]!==r?(i=s.jsx(ze,{asChild:!0,children:s.jsx(pe,{"aria-label":"Settings",onClick:r,children:o})}),t[4]=r,t[5]=i):i=t[5];let l;t[6]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Oe,{side:"top",children:"Settings"}),t[6]=l):l=t[6];let a;return t[7]!==i?(a=s.jsxs(Pe,{delayDuration:300,children:[i,l]}),t[7]=i,t[8]=a):a=t[8],a}function Ol(){const t=N.c(6),{state:e}=Xe();if(e==="collapsed"){let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Nl,{}),t[0]=o):o=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(fe,{children:s.jsx(Tl,{})}),t[1]=i):i=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(fe,{children:s.jsx(kl,{})}),t[2]=l):l=t[2];let a;t[3]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(fe,{children:s.jsx(Al,{})}),t[3]=a):a=t[3];let c;return t[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsxs(rs,{className:"px-2 pb-3 gap-1",children:[o,s.jsxs(Ae,{children:[i,l,a,s.jsx(fe,{children:s.jsx(cs,{})})]})]}),t[4]=c):c=t[4],c}let r;return t[5]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(rs,{className:"px-2 pb-3",children:s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(Ae,{children:s.jsx(fe,{children:s.jsx(cs,{})})})}),s.jsx(zl,{}),s.jsx(Il,{}),s.jsx($l,{}),s.jsx(wl,{})]})}),t[5]=r):r=t[5],r}function Pl(){const t=N.c(8),e=Me(),{org:n}=le(),{setOpenMobile:r}=Xe();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(Ae,{children:s.jsx(fe,{children:s.jsx(cs,{})})})}),t[0]=o):o=t[0];let i;t[1]!==e||t[2]!==n.slug||t[3]!==r?(i=()=>{e({to:"/$org/settings",params:{org:n.slug}}),r(!1)},t[1]=e,t[2]=n.slug,t[3]=r,t[4]=i):i=t[4];let l;t[5]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(vt,{className:"size-4"}),t[5]=l):l=t[5];let a;return t[6]!==i?(a=s.jsx(rs,{className:"px-2 pb-3",children:s.jsxs("div",{className:"flex items-center gap-1",children:[o,s.jsx(pe,{"aria-label":"Settings",onClick:i,children:l})]})}),t[6]=i,t[7]=a):a=t[7],a}function Dl(t){const e=N.c(8),{virtualMcpId:n,size:r,showAutomationBadge:o}=t,i=r===void 0?"sm":r;let l;e[0]!==i||e[1]!==n?(l=n?s.jsx(Ml,{virtualMcpId:n,size:i}):s.jsx(De,{icon:null,name:"?",size:i}),e[0]=i,e[1]=n,e[2]=l):l=e[2];let a;e[3]!==o?(a=o&&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(jn,{size:10,className:"text-white"})}),e[3]=o,e[4]=a):a=e[4];let c;return e[5]!==l||e[6]!==a?(c=s.jsxs("div",{className:"relative shrink-0",children:[l,a]}),e[5]=l,e[6]=a,e[7]=c):c=e[7],c}function Ml(t){const e=N.c(6),{virtualMcpId:n,size:r}=t,o=jt(n);if(!o){let a;return e[0]!==r?(a=s.jsx(De,{icon:null,name:"?",size:r}),e[0]=r,e[1]=a):a=e[1],a}const i=o.icon??null;let l;return e[2]!==o.title||e[3]!==r||e[4]!==i?(l=s.jsx(De,{icon:i,name:o.title,size:r}),e[2]=o.title,e[3]=r,e[4]=i,e[5]=l):l=e[5],l}function Rl(t){const e=N.c(36),{open:n,onOpenChange:r}=t,[o,i]=z.useState(""),{org:l}=le(),{setTaskId:a}=dn(),c=bn();let d,u,m;e[0]!==l.id||e[1]!==o?(m=o.trim(),u=fs,d=ms.globalSearch(l.id,m),e[0]=l.id,e[1]=o,e[2]=d,e[3]=u,e[4]=m):(d=e[2],u=e[3],m=e[4]);const f=n&&m.length>0;let h;e[5]!==c||e[6]!==m?(h=async()=>await c.call("GLOBAL_SEARCH",{query:m,limit:20}),e[5]=c,e[6]=m,e[7]=h):h=e[7];let p;e[8]!==d||e[9]!==f||e[10]!==h?(p={queryKey:d,enabled:f,queryFn:h,staleTime:1e4},e[8]=d,e[9]=f,e[10]=h,e[11]=p):p=e[11];const{data:x,isFetching:g}=u(p);let b;e[12]!==x?.items?(b=x?.items??[],e[12]=x?.items,e[13]=b):b=e[13];const j=b;let y;e[14]!==r?(y=C=>{C||i(""),r(C)},e[14]=r,e[15]=y):y=e[15];const v=y;let _;e[16]!==v||e[17]!==a?(_=C=>{v(!1),a(C.id,C.virtual_mcp_id??void 0)},e[16]=v,e[17]=a,e[18]=_):_=e[18];const k=_;let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsxs(bi,{className:"sr-only",children:[s.jsx(ji,{children:"Search"}),s.jsx(vi,{children:"Search across your organization's resources."})]}),e[19]=S):S=e[19];let I;e[20]!==o?(I=s.jsx(Ci,{value:o,onValueChange:i,placeholder:"Search..."}),e[20]=o,e[21]=I):I=e[21];let T;e[22]!==k||e[23]!==g||e[24]!==j||e[25]!==m?(T=m?g&&j.length===0?s.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"Searching…"}):j.length===0?s.jsx(_i,{children:"No results."}):j.map(C=>C.type==="thread"?s.jsxs(Ni,{value:`thread:${C.id}:${C.title}`,onSelect:()=>k(C),className:"gap-2.5",children:[s.jsx(Dl,{virtualMcpId:C.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:C.title||"Untitled thread"})}),s.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:new Date(C.updated_at).toLocaleDateString("en-US",{month:"short",day:"numeric"})})]},`thread:${C.id}`):null):s.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"Start typing to search."}),e[22]=k,e[23]=g,e[24]=j,e[25]=m,e[26]=T):T=e[26];let $;e[27]!==T?($=s.jsx(wi,{children:T}),e[27]=T,e[28]=$):$=e[28];let O;e[29]!==I||e[30]!==$?(O=s.jsxs(yi,{className:"overflow-hidden p-0",closeButtonClassName:"hidden",children:[S,s.jsxs(ki,{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:[I,$]})]}),e[29]=I,e[30]=$,e[31]=O):O=e[31];let A;return e[32]!==v||e[33]!==n||e[34]!==O?(A=s.jsx(Si,{open:n,onOpenChange:v,children:O}),e[32]=v,e[33]=n,e[34]=O,e[35]=A):A=e[35],A}function El(t){return t==="owner"||t==="admin"}function Fl(){const t=N.c(11),{locator:e}=le(),n=Ii(),{data:r}=Ne.useSession(),o=r?.user?.id;let i;t[0]!==e?(i=ms.members(e),t[0]=e,t[1]=i):i=t[1];let l;t[2]!==n?(l=()=>n.organization.listMembers(),t[2]=n,t[3]=l):l=t[3];const a=!!o;let c;t[4]!==i||t[5]!==l||t[6]!==a?(c={queryKey:i,queryFn:l,enabled:a,staleTime:6e4},t[4]=i,t[5]=l,t[6]=a,t[7]=c):c=t[7];const{data:d}=fs(c);let u;if(t[8]!==d?.data?.members||t[9]!==o){const f=(d?.data?.members??[]).find(h=>h.userId===o)?.role;u=El(f??void 0),t[8]=d?.data?.members,t[9]=o,t[10]=u}else u=t[10];return u}var ss,qt="HoverCard",[Dn]=jr(qt,[Xs]),Wt=Xs(),[Gl,Kt]=Dn(qt),Mn=t=>{const{__scopeHoverCard:e,children:n,open:r,defaultOpen:o,onOpenChange:i,openDelay:l=700,closeDelay:a=300}=t,c=Wt(e),d=z.useRef(0),u=z.useRef(0),m=z.useRef(!1),f=z.useRef(!1),[h,p]=Cr({prop:r,defaultProp:o??!1,onChange:i,caller:qt}),x=z.useCallback(()=>{clearTimeout(u.current),d.current=window.setTimeout(()=>p(!0),l)},[l,p]),g=z.useCallback(()=>{clearTimeout(d.current),!m.current&&!f.current&&(u.current=window.setTimeout(()=>p(!1),a))},[a,p]),b=z.useCallback(()=>p(!1),[p]);return z.useEffect(()=>()=>{clearTimeout(d.current),clearTimeout(u.current)},[]),s.jsx(Gl,{scope:e,open:h,onOpenChange:p,onOpen:x,onClose:g,onDismiss:b,hasSelectionRef:m,isPointerDownOnContentRef:f,children:s.jsx(wr,{...c,children:n})})};Mn.displayName=qt;var Rn="HoverCardTrigger",En=z.forwardRef((t,e)=>{const{__scopeHoverCard:n,...r}=t,o=Kt(Rn,n),i=Wt(n);return s.jsx(gr,{asChild:!0,...i,children:s.jsx(br.a,{"data-state":o.open?"open":"closed",...r,ref:e,onPointerEnter:$e(t.onPointerEnter,Ft(o.onOpen)),onPointerLeave:$e(t.onPointerLeave,Ft(o.onClose)),onFocus:$e(t.onFocus,o.onOpen),onBlur:$e(t.onBlur,o.onClose),onTouchStart:$e(t.onTouchStart,l=>l.preventDefault())})})});En.displayName=Rn;var vs="HoverCardPortal",[Ll,Hl]=Dn(vs,{forceMount:void 0}),Fn=t=>{const{__scopeHoverCard:e,forceMount:n,children:r,container:o}=t,i=Kt(vs,e);return s.jsx(Ll,{scope:e,forceMount:n,children:s.jsx(Qs,{present:n||i.open,children:s.jsx(Nr,{asChild:!0,container:o,children:r})})})};Fn.displayName=vs;var Et="HoverCardContent",Gn=z.forwardRef((t,e)=>{const n=Hl(Et,t.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=t,i=Kt(Et,t.__scopeHoverCard);return s.jsx(Qs,{present:r||i.open,children:s.jsx(Bl,{"data-state":i.open?"open":"closed",...o,onPointerEnter:$e(t.onPointerEnter,Ft(i.onOpen)),onPointerLeave:$e(t.onPointerLeave,Ft(i.onClose)),ref:e})})});Gn.displayName=Et;var Bl=z.forwardRef((t,e)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,...a}=t,c=Kt(Et,n),d=Wt(n),u=z.useRef(null),m=vr(e,u),[f,h]=z.useState(!1);return z.useEffect(()=>{if(f){const p=document.body;return ss=p.style.userSelect||p.style.webkitUserSelect,p.style.userSelect="none",p.style.webkitUserSelect="none",()=>{p.style.userSelect=ss,p.style.webkitUserSelect=ss}}},[f]),z.useEffect(()=>{if(u.current){const p=()=>{h(!1),c.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(c.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",p),()=>{document.removeEventListener("pointerup",p),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!1}}},[c.isPointerDownOnContentRef,c.hasSelectionRef]),z.useEffect(()=>{u.current&&Wl(u.current).forEach(x=>x.setAttribute("tabindex","-1"))}),s.jsx(yr,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:l,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:$e(i,p=>{p.preventDefault()}),onDismiss:c.onDismiss,children:s.jsx(Sr,{...d,...a,onPointerDown:$e(a.onPointerDown,p=>{p.currentTarget.contains(p.target)&&h(!0),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!0}),ref:m,style:{...a.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),Ul="HoverCardArrow",ql=z.forwardRef((t,e)=>{const{__scopeHoverCard:n,...r}=t,o=Wt(n);return s.jsx(_r,{...o,...r,ref:e})});ql.displayName=Ul;function Ft(t){return e=>e.pointerType==="touch"?void 0:t()}function Wl(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)e.push(n.currentNode);return e}var Kl=Mn,Vl=En,Yl=Fn,Xl=Gn;function Ql(t){const e=N.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let r;return e[2]!==n?(r=s.jsx(Kl,{"data-slot":"hover-card",...n}),e[2]=n,e[3]=r):r=e[3],r}function Jl(t){const e=N.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let r;return e[2]!==n?(r=s.jsx(Vl,{"data-slot":"hover-card-trigger",...n}),e[2]=n,e[3]=r):r=e[3],r}function Zl(t){const e=N.c(12);let n,r,o,i;e[0]!==t?({className:n,align:o,sideOffset:i,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=i):(n=e[1],r=e[2],o=e[3],i=e[4]);const l=o===void 0?"center":o,a=i===void 0?4:i;let c;e[5]!==n?(c=Q("bg-popover text-popover-foreground 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",n),e[5]=n,e[6]=c):c=e[6];let d;return e[7]!==l||e[8]!==r||e[9]!==a||e[10]!==c?(d=s.jsx(Yl,{"data-slot":"hover-card-portal",children:s.jsx(Xl,{"data-slot":"hover-card-content",align:l,sideOffset:a,className:c,...r})}),e[7]=l,e[8]=r,e[9]=a,e[10]=c,e[11]=d):d=e[11],d}function Ln(t){const e=N.c(26),{virtualMcpId:n,isOrgPinned:r,canManageOrgPin:o,onNewTaskInGroup:i,onShowSettings:l,onToggleOrgPin:a,onHideGroup:c}=t;let d;e[0]!==i||e[1]!==n?(d=()=>i(n),e[0]=i,e[1]=n,e[2]=d):d=e[2];let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(_e,{size:14,className:"mr-2"}),e[3]=u):u=e[3];let m;e[4]!==d?(m=s.jsxs(Ot,{onSelect:d,children:[u,"New task"]}),e[4]=d,e[5]=m):m=e[5];let f;e[6]!==l||e[7]!==n?(f=()=>l(n),e[6]=l,e[7]=n,e[8]=f):f=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(vt,{size:14,className:"mr-2"}),e[9]=h):h=e[9];let p;e[10]!==f?(p=s.jsxs(Ot,{onSelect:f,children:[h,"Settings"]}),e[10]=f,e[11]=p):p=e[11];let x;e[12]!==o||e[13]!==r||e[14]!==a||e[15]!==n?(x=o&&s.jsxs(s.Fragment,{children:[s.jsx(Ds,{}),s.jsxs(Ot,{onSelect:()=>a(n,!r),children:[s.jsx(Kr,{size:14,className:"mr-2"}),r?"Unpin for all members":"Pin for all members"]})]}),e[12]=o,e[13]=r,e[14]=a,e[15]=n,e[16]=x):x=e[16];let g;e[17]!==r||e[18]!==c||e[19]!==n?(g=!r&&s.jsxs(s.Fragment,{children:[s.jsx(Ds,{}),s.jsxs(Ot,{onSelect:()=>c(n),children:[s.jsx(Vo,{size:14,className:"mr-2"}),"Hide"]})]}),e[17]=r,e[18]=c,e[19]=n,e[20]=g):g=e[20];let b;return e[21]!==m||e[22]!==p||e[23]!==x||e[24]!==g?(b=s.jsxs(s.Fragment,{children:[m,p,x,g]}),e[21]=m,e[22]=p,e[23]=x,e[24]=g,e[25]=b):b=e[25],b}function ea(t){return t==="ephemeral"||t.startsWith("thread:")}function Vt(t){const e=N.c(46),{task:n,isActive:r,onClick:o,onArchive:i,showAutomationBadge:l,showAgentIcon:a,hideStatusIdle:c,indented:d}=t,u=Ti(n.status),m=u.icon,f=n.metadata?.kind==="tool_call_run",h=jt(f?void 0:n.virtual_mcp_id);let p;e[0]!==h?(p=wo(h),e[0]=h,e[1]=p):p=e[1];const x=p;Ai(6e4);const g=l||!!n.trigger_id,b=n.id,j="button",y=0;let v;e[2]!==o?(v=B=>{B.target===B.currentTarget&&(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),o())},e[2]=o,e[3]=v):v=e[3];const _=d?"-ml-4 pl-6":"pl-2",k=r?"bg-accent text-accent-foreground":"hover:bg-accent/60";let S;e[4]!==_||e[5]!==k?(S=Q("group/row flex items-center gap-2 py-1.5 pr-2 rounded-md cursor-pointer transition-colors",_,"focus-visible:outline-none focus-visible:inset-ring-2 focus-visible:inset-ring-ring/50",k),e[4]=_,e[5]=k,e[6]=S):S=e[6];let I;e[7]!==f||e[8]!==a||e[9]!==h?.icon||e[10]!==h?.title?(I=a&&!f&&s.jsx(De,{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]=I):I=e[11];let T;e[12]!==g?(T=g&&s.jsx(jn,{size:12,"aria-label":"Automation-triggered",className:"shrink-0 text-blue-500"}),e[12]=g,e[13]=T):T=e[13];const $=n.title||"Untitled task";let O;e[14]!==$?(O=s.jsx("div",{className:"text-sm text-foreground truncate",children:$}),e[14]=$,e[15]=O):O=e[15];let A;e[16]!==T||e[17]!==O?(A=s.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[T,O]}),e[16]=T,e[17]=O,e[18]=A):A=e[18];let C;e[19]!==x||e[20]!==r||e[21]!==n.branch||e[22]!==n.updated_at?(C=n.updated_at&&s.jsxs("div",{className:Q("flex items-center gap-1 text-[11px] min-w-0",r?"text-accent-foreground/70":"text-muted-foreground/60"),children:[n.branch&&!ea(n.branch)?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"truncate font-mono",children:n.branch}),s.jsx("span",{className:"shrink-0",children:"·"})]}):x?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"truncate",children:[x.owner,"/",x.name]}),s.jsx("span",{className:"shrink-0",children:"·"})]}):null,s.jsx("span",{className:"shrink-0",children:zi(new Date(n.updated_at))})]}),e[19]=x,e[20]=r,e[21]=n.branch,e[22]=n.updated_at,e[23]=C):C=e[23];let M;e[24]!==A||e[25]!==C?(M=s.jsxs("div",{className:"flex-1 min-w-0",children:[A,C]}),e[24]=A,e[25]=C,e[26]=M):M=e[26];const V="shrink-0 grid [grid-template-areas:'slot'] items-center justify-items-center",q=!c&&s.jsx("span",{className:"[grid-area:slot] flex size-7 items-center justify-center pointer-events-none transition-opacity group-hover/row:opacity-0","aria-label":u.label,children:s.jsx(m,{size:14,className:Q(u.iconClassName,n.status==="in_progress"&&"animate-spin")})});let E;e[27]!==i?(E=B=>{B.stopPropagation(),i()},e[27]=i,e[28]=E):E=e[28];let L;e[29]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(kr,{size:14}),e[29]=L):L=e[29];let R;e[30]!==E?(R=s.jsx(ze,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":"Archive task",onClick:E,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-7 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:L})}),e[30]=E,e[31]=R):R=e[31];let H;e[32]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(Oe,{side:"right",children:"Archive"}),e[32]=H):H=e[32];let P;e[33]!==R?(P=s.jsxs(Pe,{children:[R,H]}),e[33]=R,e[34]=P):P=e[34];let G;e[35]!==q||e[36]!==P?(G=s.jsxs("div",{className:V,children:[q,P]}),e[35]=q,e[36]=P,e[37]=G):G=e[37];let D;return e[38]!==o||e[39]!==M||e[40]!==G||e[41]!==v||e[42]!==S||e[43]!==I||e[44]!==n.id?(D=s.jsxs("div",{"data-task-id":b,role:j,tabIndex:y,onClick:o,onKeyDown:v,className:S,children:[I,M,G]}),e[38]=o,e[39]=M,e[40]=G,e[41]=v,e[42]=S,e[43]=I,e[44]=n.id,e[45]=D):D=e[45],D}function ys(t){const e=N.c(12),{onClick:n,isFetching:r,indented:o}=t,i=o?"-ml-4 pl-6 pr-2":"px-2";let l;e[0]!==i?(l=Q("flex items-center gap-2 py-1.5 rounded-md text-sm text-muted-foreground",i,"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]=i,e[1]=l):l=e[1];let a;e[2]!==r?(a=r&&s.jsx(Ks,{size:14,className:"animate-spin"}),e[2]=r,e[3]=a):a=e[3];const c=r?"Loading…":"Show more";let d;e[4]!==c?(d=s.jsx("span",{children:c}),e[4]=c,e[5]=d):d=e[5];let u;return e[6]!==r||e[7]!==n||e[8]!==l||e[9]!==a||e[10]!==d?(u=s.jsxs("button",{type:"button","aria-label":"Show more tasks",onClick:n,disabled:r,className:l,children:[a,d]}),e[6]=r,e[7]=n,e[8]=l,e[9]=a,e[10]=d,e[11]=u):u=e[11],u}function ta(t,e,n,r){return[t,e,n,r.type,r.member,r.currentUserId??""].join("|")}function sa(t){return t.member==="mine"&&!t.currentUserId}const Hn=4;let Mt=0;const ds=[];function na(){for(;Mt<Hn&&ds.length>0;){const t=ds.shift();t&&t()}}function Bn(t){return new Promise((e,n)=>{const r=()=>{Mt++,t().then(e,n).finally(()=>{Mt--,na()})};Mt<Hn?r():ds.push(r)})}const Yt=10;function Fs(t,e,n,r,o){const i={hidden:!1};t==="agent"&&(i.virtual_mcp_id=e),r.member==="mine"&&r.currentUserId&&(i.created_by=r.currentUserId),r.type==="automation"&&(i.has_trigger=!0),r.type==="manual"&&(i.has_trigger=!1);const l={where:i,limit:o,offset:n,orderBy:[{field:["updated_at"],direction:"desc"}]};return t==="status"&&(l.status=e),l}function ra(t,e,n,r){let o=0;for(const i of t)Ss(i,e,n,r)&&o++;return o}function ns(t,e,n,r){return ra(t,e,n,r)}function oa(t,e,n){const r=new Map;for(const o of t){const i=o.virtual_mcp_id;i&&Ss(o,e,i,n)&&r.set(i,(r.get(i)??0)+1)}return r}function ia(t,e){return!!(t>=Yt||t===0&&e)}function Gs(t,e){return t<e}function la(t,e){return e===!1?!1:e===!0?!0:t}function Ss(t,e,n,r){return!(t.hidden||e==="agent"&&t.virtual_mcp_id!==n||e==="status"&&(t.status??"completed")!==n||r.member==="mine"&&r.currentUserId&&t.created_by!==r.currentUserId||r.type==="automation"&&!t.trigger_id||r.type==="manual"&&t.trigger_id)}const Gt=new Map,Dt=new Map;function aa(t,e){return e?t>=Yt?!0:null:!1}function Ls(t){return Gt.get(t)}function ca(t,e){Gt.set(t,e)}function da(t,e,n){const r=Gt.get(t);if(r!==void 0){n(r);return}let o=Dt.get(t);o||(o=Bn(e).then(i=>(Gt.set(t,i),Dt.delete(t),i)).catch(()=>(Dt.delete(t),Promise.reject(new Error("group probe failed")))),Dt.set(t,o)),o.then(n,()=>n(!1))}function Hs(t){const e=t,n=Array.isArray(e.items)?e.items:[];return{items:n,hasMore:e.hasMore??n.length===Yt,totalCount:typeof e.totalCount=="number"?e.totalCount:void 0}}function ua(t,e,n,r,o){let i=0;for(const l of t)e.has(l.id)||Ss(l,n,r,o)&&i++;return i}function _s(t,e,n,r){const o=N.c(8),{org:i}=le(),l=ta(i.id,t,e,n);let a;o[0]!==n?(a=sa(n),o[0]=n,o[1]=a):a=o[1];const c=a,[d,u]=z.useState({isFetching:!1,isProbing:!1,identity:l,probeSubscribedIdentity:null,serverHasMore:null});d.identity!==l&&u({isFetching:!1,isProbing:!1,identity:l,probeSubscribedIdentity:null,serverHasMore:null});const m=Zr(),{threads:f,hasMore:h}=cn(),p=r??ns(f,t,e,n),x=ia(p,h),g=aa(p,h),b=bn();if(d.identity===l&&d.serverHasMore===null){const S=g??Ls(l);S!==void 0&&u({isFetching:!1,isProbing:!1,identity:l,probeSubscribedIdentity:d.probeSubscribedIdentity,serverHasMore:S})}!c&&d.identity===l&&d.serverHasMore===null&&g===null&&Ls(l)===void 0&&d.probeSubscribedIdentity!==l&&(u(S=>S.identity===l?{...S,isProbing:!0,probeSubscribedIdentity:l}:S),da(l,async()=>{const S=Fs(t,e,0,n,1),I=await b.call("COLLECTION_THREADS_LIST",S),{totalCount:T}=Hs(I),$=ns(m.threads.get(),t,e,n);return T===void 0?!1:Gs($,T)},S=>{u(I=>I.identity!==l?I:{...I,isProbing:!1,serverHasMore:S})}));const y=async function(){if(d.isFetching||d.isProbing||c)return;const I=l;u(T=>T.identity===I?{...T,isFetching:!0}:T);try{const T=ns(f,t,e,n),$=Fs(t,e,T,n,Yt),O=await Bn(()=>b.call("COLLECTION_THREADS_LIST",$)),{items:A,hasMore:C,totalCount:M}=Hs(O),V=new Set(f.map(ma)),q=ua(A,V,t,e,n),E=T;m.mergeThreads(A),u(L=>{if(L.identity!==I)return L;let R;return M!==void 0?R=Gs(E+q,M):R=A.length===0||q===0?!1:C,ca(I,R),{...L,isFetching:!1,serverHasMore:R}})}catch(T){const $=T,O=$ instanceof Error?$.message:String($);Te.error(`Could not load more tasks: ${O}`),u(A=>A.identity===I?{...A,isFetching:!1}:A)}},v=d.isFetching||d.isProbing,_=!c&&!v&&la(x,d.serverHasMore);let k;return o[2]!==v||o[3]!==y||o[4]!==_||o[5]!==d.isProbing||o[6]!==d.serverHasMore?(k={hasMore:_,isFetching:v,isProbing:d.isProbing,serverHasMore:d.serverHasMore,loadMore:y},o[2]=v,o[3]=y,o[4]=_,o[5]=d.isProbing,o[6]=d.serverHasMore,o[7]=k):k=o[7],k}function ma(t){return t.id}function Un(t){const e=N.c(61),{virtualMcpId:n,threads:r,activeTaskId:o,filters:i,onSelectTask:l,onArchiveTask:a,onNewTaskInGroup:c,onShowSettings:d,onHideGroup:u,isOrgPinned:m,canManageOrgPin:f,onToggleOrgPin:h,sortable:p,groupVisibleCount:x}=t,g=m===void 0?!1:m,b=f===void 0?!1:f,j=jt(n),y=r[0];let v;e[0]!==y||e[1]!==c||e[2]!==l||e[3]!==n?(v=()=>{y?l(y):c(n)},e[0]=y,e[1]=c,e[2]=l,e[3]=n,e[4]=v):v=e[4];const _=v,k=p?.isDragging?!1:void 0;let S;e[5]!==p?.isDragging||e[6]!==n?(S=X=>{p?.isDragging||X&&se("sidebar_group_hover_popover_opened",{virtual_mcp_id:n})},e[5]=p?.isDragging,e[6]=n,e[7]=S):S=e[7];const I=!!(y&&o&&y.id===o),T=p?"Drag to reorder":void 0;let $;e[8]!==p?($=p?{...p.attributes,...p.listeners}:{},e[8]=p,e[9]=$):$=e[9];const O=p&&"cursor-pointer active:cursor-grabbing touch-none",A=p?.isDragging&&"cursor-grabbing";let C;e[10]!==A||e[11]!==O?(C=Q("group-data-[state=collapsed]/sidebar:!size-10 group-data-[state=collapsed]/sidebar:!max-w-none group-data-[state=collapsed]/sidebar:!overflow-visible group-data-[state=collapsed]/sidebar:[&_svg]:opacity-100",O,A),e[10]=A,e[11]=O,e[12]=C):C=e[12];const M=j?.icon??null,V=j?.title??"?";let q;e[13]!==M||e[14]!==V?(q=s.jsx(De,{icon:M,name:V,size:"sm+",className:"rounded-lg"}),e[13]=M,e[14]=V,e[15]=q):q=e[15];let E;e[16]!==_||e[17]!==C||e[18]!==q||e[19]!==I||e[20]!==T||e[21]!==$?(E=s.jsx(fe,{children:s.jsx(vn,{asChild:!0,children:s.jsx(Jl,{asChild:!0,children:s.jsx(Ce,{onClick:_,isActive:I,title:T,...$,className:C,children:q})})})}),e[16]=_,e[17]=C,e[18]=q,e[19]=I,e[20]=T,e[21]=$,e[22]=E):E=e[22];const L=h??fa;let R;e[23]!==b||e[24]!==g||e[25]!==u||e[26]!==c||e[27]!==d||e[28]!==L||e[29]!==n?(R=s.jsx(yn,{className:"w-56",children:s.jsx(Ln,{virtualMcpId:n,isOrgPinned:g,canManageOrgPin:b,onNewTaskInGroup:c,onShowSettings:d,onToggleOrgPin:L,onHideGroup:u})}),e[23]=b,e[24]=g,e[25]=u,e[26]=c,e[27]=d,e[28]=L,e[29]=n,e[30]=R):R=e[30];let H;e[31]!==E||e[32]!==R?(H=s.jsxs(Sn,{children:[E,R]}),e[31]=E,e[32]=R,e[33]=H):H=e[33];const P=j?.title??"Agent";let G;e[34]!==P?(G=s.jsx("span",{className:"truncate",children:P}),e[34]=P,e[35]=G):G=e[35];let D;e[36]!==c||e[37]!==n?(D=()=>c(n),e[36]=c,e[37]=n,e[38]=D):D=e[38];let B;e[39]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(_e,{size:14}),e[39]=B):B=e[39];let F;e[40]!==D?(F=s.jsx("button",{type:"button","aria-label":"New task in this agent",onClick:D,className:"flex size-6 items-center justify-center rounded-md hover:bg-accent text-muted-foreground hover:text-foreground",children:B}),e[40]=D,e[41]=F):F=e[41];let Y;e[42]!==G||e[43]!==F?(Y=s.jsxs("div",{className:"flex items-center justify-between px-1 pb-1 text-xs font-medium",children:[G,F]}),e[42]=G,e[43]=F,e[44]=Y):Y=e[44];let ee;e[45]!==o||e[46]!==i||e[47]!==x||e[48]!==a||e[49]!==l||e[50]!==r||e[51]!==n?(ee=s.jsx(pa,{virtualMcpId:n,threads:r,activeTaskId:o,filters:i,groupVisibleCount:x,onSelectTask:l,onArchiveTask:a}),e[45]=o,e[46]=i,e[47]=x,e[48]=a,e[49]=l,e[50]=r,e[51]=n,e[52]=ee):ee=e[52];let K;e[53]!==Y||e[54]!==ee?(K=s.jsxs(Zl,{side:"right",align:"start",sideOffset:8,className:"w-72 p-2",children:[Y,ee]}),e[53]=Y,e[54]=ee,e[55]=K):K=e[55];let J;return e[56]!==H||e[57]!==K||e[58]!==k||e[59]!==S?(J=s.jsxs(Ql,{open:k,openDelay:120,closeDelay:150,onOpenChange:S,children:[H,K]}),e[56]=H,e[57]=K,e[58]=k,e[59]=S,e[60]=J):J=e[60],J}function fa(){}function pa(t){const e=N.c(6),{virtualMcpId:n,threads:r,activeTaskId:o,filters:i,groupVisibleCount:l,onSelectTask:a,onArchiveTask:c}=t,d=_s("agent",n,i,l);let u;return e[0]!==o||e[1]!==c||e[2]!==a||e[3]!==d||e[4]!==r?(u=s.jsx("div",{className:"flex flex-col gap-0.5 max-h-[60vh] overflow-y-auto",children:r.length===0&&!d.hasMore&&!d.isFetching?s.jsx("div",{className:"px-2 py-1.5 text-xs text-muted-foreground",children:"No tasks yet"}):s.jsxs(s.Fragment,{children:[r.map(m=>s.jsx(Vt,{task:m,isActive:o===m.id,onClick:()=>a(m),onArchive:()=>c(m),showAutomationBadge:!!m.trigger_id},m.id)),(d.hasMore||d.isFetching)&&s.jsx(ys,{onClick:()=>{d.loadMore()},isFetching:d.isFetching})]})}),e[0]=o,e[1]=c,e[2]=a,e[3]=d,e[4]=r,e[5]=u):u=e[5],u}function xa(t,e,n,r,o,i,l){const a=N.c(18),c=l===void 0?"expanded":l;let d;a[0]===Symbol.for("react.memo_cache_sentinel")?(d={activationConstraint:{distance:8}},a[0]=d):d=a[0];let u;a[1]===Symbol.for("react.memo_cache_sentinel")?(u={coordinateGetter:$o},a[1]=u):u=a[1];const m=ko(Ts(To,d),Ts(Io,u));let f;a[2]!==r||a[3]!==o||a[4]!==e||a[5]!==t?(f=ao(t,e,r,o),a[2]=r,a[3]=o,a[4]=e,a[5]=t,a[6]=f):f=a[6];const h=f;let p;a[7]!==i||a[8]!==n||a[9]!==o||a[10]!==e||a[11]!==h||a[12]!==c?(p=b=>{const{active:j,over:y}=b;if(!y||j.id===y.id)return;const v=String(j.id),_=String(y.id);if(!co(v,_,o))return;const k=uo(h,v,_),S=mo(e,n,o,k);e==="org"?fo(n.orgId,S):po(n,S),se("sidebar_group_reordered",{virtual_mcp_id:v,over_virtual_mcp_id:_,surface:c,section:e}),i()},a[7]=i,a[8]=n,a[9]=o,a[10]=e,a[11]=h,a[12]=c,a[13]=p):p=a[13];const x=p;let g;return a[14]!==x||a[15]!==m||a[16]!==h?(g={sensors:m,sortableIds:h,handleDragEnd:x},a[14]=x,a[15]=m,a[16]=h,a[17]=g):g=a[17],g}function ha(t){const e=N.c(2),{collapsed:n}=t;if(n===void 0?!1:n){let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{role:"separator","aria-orientation":"horizontal",className:"mx-auto my-1 h-px w-6 shrink-0 bg-border"}),e[0]=i):i=e[0],i}let o;return e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{role:"separator","aria-orientation":"horizontal",className:"my-1.5 h-px w-full shrink-0 bg-border"}),e[1]=o):o=e[1],o}function ga(t){const e=N.c(12),{id:n,children:r}=t;let o;e[0]!==n?(o={id:n},e[0]=n,e[1]=o):o=e[1];const{attributes:i,listeners:l,setNodeRef:a,transform:c,transition:d,isDragging:u}=Do(o);let m;if(e[2]!==i||e[3]!==r||e[4]!==u||e[5]!==l||e[6]!==a||e[7]!==c||e[8]!==d){const h={transform:Mo.Transform.toString(c),transition:d,zIndex:u?100:void 0};m=r({setNodeRef:a,style:h,isDragging:u,attributes:i,listeners:l}),e[2]=i,e[3]=r,e[4]=u,e[5]=l,e[6]=a,e[7]=c,e[8]=d,e[9]=m}else m=e[9];let f;return e[10]!==m?(f=s.jsx(s.Fragment,{children:m}),e[10]=m,e[11]=f):f=e[11],f}function Bs(t){const e=N.c(18),{section:n,groups:r,orderScope:o,decopilotId:i,orgPinnedIds:l,onReorder:a,surface:c,renderGroup:d,renderSortable:u,renderFixed:m}=t,{sensors:f,sortableIds:h,handleDragEnd:p}=xa(r,n,o,i,l,a,c);if(r.length===0)return null;const x=h;let g;if(e[0]!==r||e[1]!==m||e[2]!==d||e[3]!==u||e[4]!==h){let y;e[6]!==m||e[7]!==d||e[8]!==u||e[9]!==h?(y=v=>{const _=d(v);return h.includes(v.virtualMcpId)?s.jsx(ga,{id:v.virtualMcpId,children:k=>{const{setNodeRef:S,style:I,isDragging:T,attributes:$,listeners:O}=k;return s.jsx("div",{ref:S,style:I,className:Q(T&&"opacity-50"),children:u(_,{attributes:$,listeners:O,isDragging:T})})}},v.virtualMcpId):s.jsx("div",{children:m(_)},v.virtualMcpId)},e[6]=m,e[7]=d,e[8]=u,e[9]=h,e[10]=y):y=e[10],g=r.map(y),e[0]=r,e[1]=m,e[2]=d,e[3]=u,e[4]=h,e[5]=g}else g=e[5];let b;e[11]!==x||e[12]!==g?(b=s.jsx(Ao,{items:x,strategy:zo,children:g}),e[11]=x,e[12]=g,e[13]=b):b=e[13];let j;return e[14]!==p||e[15]!==f||e[16]!==b?(j=s.jsx(Oo,{sensors:f,collisionDetection:Po,onDragEnd:p,children:b}),e[14]=p,e[15]=f,e[16]=b,e[17]=j):j=e[17],j}function qn(t){const e=N.c(23),{groups:n,orderScope:r,decopilotId:o,orgPinnedIds:i,onReorder:l,surface:a,collapsedSeparator:c,renderGroup:d,renderSortable:u,renderFixed:m}=t;let f;if(e[0]!==c||e[1]!==o||e[2]!==n||e[3]!==l||e[4]!==r||e[5]!==i||e[6]!==m||e[7]!==d||e[8]!==u||e[9]!==a){const{decopilot:h,orgPinned:p,user:x,toolCallRuns:g}=xo(n,o,i),b=p.length>0&&x.length>0;let j;e[11]!==o||e[12]!==l||e[13]!==r||e[14]!==i||e[15]!==m||e[16]!==d||e[17]!==u||e[18]!==a?(j={orderScope:r,decopilotId:o,orgPinnedIds:i,onReorder:l,surface:a,renderGroup:d,renderSortable:u,renderFixed:m},e[11]=o,e[12]=l,e[13]=r,e[14]=i,e[15]=m,e[16]=d,e[17]=u,e[18]=a,e[19]=j):j=e[19];const y=j;let v;e[20]!==c||e[21]!==b?(v=b&&s.jsx(ha,{collapsed:c}),e[20]=c,e[21]=b,e[22]=v):v=e[22],f=s.jsxs(s.Fragment,{children:[h&&m(d(h)),s.jsx(Bs,{section:"org",groups:p,...y}),v,s.jsx(Bs,{section:"user",groups:x,...y}),g&&m(d(g))]}),e[0]=c,e[1]=o,e[2]=n,e[3]=l,e[4]=r,e[5]=i,e[6]=m,e[7]=d,e[8]=u,e[9]=a,e[10]=f}else f=e[10];return f}function ba(t){const e=N.c(7),{groups:n,orderScope:r,decopilotId:o,orgPinnedIds:i,onReorder:l,renderGroup:a}=t;let c;return e[0]!==o||e[1]!==n||e[2]!==l||e[3]!==r||e[4]!==i||e[5]!==a?(c=s.jsx(qn,{groups:n,orderScope:r,decopilotId:o,orgPinnedIds:i,onReorder:l,surface:"collapsed_rail",collapsedSeparator:!0,renderGroup:a,renderFixed:va,renderSortable:ja}),e[0]=o,e[1]=n,e[2]=l,e[3]=r,e[4]=i,e[5]=a,e[6]=c):c=e[6],c}function ja(t,e){return s.jsx(Un,{...t,sortable:{attributes:e.attributes,listeners:e.listeners,isDragging:e.isDragging}},t.virtualMcpId)}function va(t){return s.jsx(Un,{...t},t.virtualMcpId)}const ya="sidebar.group.expanded.";function Wn(t,e){const n=N.c(3),[r,o]=us(`${ya}${t}`,e);let i;return n[0]!==r||n[1]!==o?(i=[r,o],n[0]=r,n[1]=o,n[2]=i):i=n[2],i}function Kn(t){const e=N.c(70),{virtualMcpId:n,threads:r,activeTaskId:o,onSelectTask:i,onArchiveTask:l,onNewTaskInGroup:a,onShowSettings:c,onHideGroup:d,isOrgPinned:u,canManageOrgPin:m,onToggleOrgPin:f,filters:h,groupVisibleCount:p,devPartnerId:x,devGroupVisibleCount:g,sortable:b}=t,j=u===void 0?!1:u,y=m===void 0?!1:m,v=x===void 0?null:x,[_,k]=Wn(n,!1),S=n===os,I=b?.isDragging??!1;let T;e[0]!==v||e[1]!==r?(T=v?r.filter(U=>U.virtual_mcp_id===v):[],e[0]=v,e[1]=r,e[2]=T):T=e[2];const $=T;let O;e[3]!==v||e[4]!==r?(O=v?r.filter(U=>U.virtual_mcp_id!==v):r,e[3]=v,e[4]=r,e[5]=O):O=e[5];const A=O,C=!!v&&($.length>0||(g??0)>0);let M;e[6]!==_||e[7]!==k?(M=function(){k(!_)},e[6]=_,e[7]=k,e[8]=M):M=e[8];const V=M;let q;e[9]!==S||e[10]!==b?(q=b&&!S?{...b.attributes,...b.listeners}:{},e[9]=S,e[10]=b,e[11]=q):q=e[11];let E;e[12]!==V?(E=U=>{U.target===U.currentTarget&&(U.key==="Enter"||U.key===" ")&&(U.preventDefault(),V())},e[12]=V,e[13]=E):E=e[13];const L=b&&!S&&"touch-none active:cursor-grabbing",R=I&&"shadow-md bg-accent/40 cursor-grabbing";let H;e[14]!==R||e[15]!==L?(H=Q("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",L,R),e[14]=R,e[15]=L,e[16]=H):H=e[16];let P;e[17]!==S||e[18]!==n?(P=s.jsx("span",{className:"absolute inset-0 flex items-center justify-center transition-opacity group-hover/group:opacity-0",children:s.jsx(_a,{virtualMcpId:n,isToolCallRuns:S})}),e[17]=S,e[18]=n,e[19]=P):P=e[19];let G;e[20]!==_?(G=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:_?s.jsx(_n,{size:14}):s.jsx(bs,{size:14})}),e[20]=_,e[21]=G):G=e[21];let D;e[22]!==P||e[23]!==G?(D=s.jsxs("div",{className:"relative size-5 shrink-0 flex items-center justify-center",children:[P,G]}),e[22]=P,e[23]=G,e[24]=D):D=e[24];let B;e[25]!==S||e[26]!==n?(B=s.jsx("span",{className:"flex-1 truncate",children:s.jsx(Ca,{virtualMcpId:n,isToolCallRuns:S})}),e[25]=S,e[26]=n,e[27]=B):B=e[27];let F;e[28]!==S||e[29]!==a||e[30]!==n?(F=!S&&s.jsx("button",{type:"button","aria-label":"New task in this agent",onClick:U=>{U.stopPropagation(),a(n)},className:"opacity-0 group-hover/group:opacity-100 focus-visible:opacity-100 transition-opacity flex size-7 items-center justify-center rounded-md hover:bg-accent text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:s.jsx(_e,{size:14})}),e[28]=S,e[29]=a,e[30]=n,e[31]=F):F=e[31];let Y;e[32]!==_||e[33]!==V||e[34]!==H||e[35]!==D||e[36]!==B||e[37]!==F||e[38]!==q||e[39]!==E?(Y=s.jsxs("div",{...q,role:"button",tabIndex:0,"aria-expanded":_,onClick:V,onKeyDown:E,className:H,children:[D,B,F]}),e[32]=_,e[33]=V,e[34]=H,e[35]=D,e[36]=B,e[37]=F,e[38]=q,e[39]=E,e[40]=Y):Y=e[40];const ee=Y;let K;e[41]!==y||e[42]!==ee||e[43]!==j||e[44]!==S||e[45]!==d||e[46]!==a||e[47]!==c||e[48]!==f||e[49]!==n?(K=S?ee:s.jsxs(Sn,{children:[s.jsx(vn,{asChild:!0,children:ee}),s.jsx(yn,{className:"w-56",children:s.jsx(Ln,{virtualMcpId:n,isOrgPinned:j,canManageOrgPin:y,onNewTaskInGroup:a,onShowSettings:c,onToggleOrgPin:f??Sa,onHideGroup:d})})]}),e[41]=y,e[42]=ee,e[43]=j,e[44]=S,e[45]=d,e[46]=a,e[47]=c,e[48]=f,e[49]=n,e[50]=K):K=e[50];let J;e[51]!==o||e[52]!==g||e[53]!==v||e[54]!==$||e[55]!==_||e[56]!==h||e[57]!==p||e[58]!==S||e[59]!==A||e[60]!==l||e[61]!==a||e[62]!==i||e[63]!==C||e[64]!==r||e[65]!==n?(J=_&&s.jsx("div",{className:"flex flex-col gap-0.5 pb-1 pl-4",children:S?r.map(U=>s.jsx(Vt,{task:U,isActive:o===U.id,onClick:()=>i(U),onArchive:()=>l(U),showAutomationBadge:!!U.trigger_id,indented:!0},U.id)):s.jsxs(s.Fragment,{children:[s.jsx(Us,{virtualMcpId:n,threads:A,activeTaskId:o,onSelectTask:i,onArchiveTask:l,onNewTaskInGroup:a,filters:h,groupVisibleCount:p}),C&&v&&s.jsxs("div",{className:"flex flex-col gap-0.5 mt-1.5",children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-2 pb-0.5 text-[10px] font-medium uppercase tracking-wider text-muted-foreground/80",children:[s.jsx(Vr,{size:11}),"Develop"]}),s.jsx(Us,{virtualMcpId:v,threads:$,activeTaskId:o,onSelectTask:i,onArchiveTask:l,onNewTaskInGroup:a,filters:h,groupVisibleCount:g})]})]})}),e[51]=o,e[52]=g,e[53]=v,e[54]=$,e[55]=_,e[56]=h,e[57]=p,e[58]=S,e[59]=A,e[60]=l,e[61]=a,e[62]=i,e[63]=C,e[64]=r,e[65]=n,e[66]=J):J=e[66];let X;return e[67]!==K||e[68]!==J?(X=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[K,J]}),e[67]=K,e[68]=J,e[69]=X):X=e[69],X}function Sa(){}function _a(t){const e=N.c(3),{virtualMcpId:n,isToolCallRuns:r}=t;if(r){let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(De,{icon:null,name:"⚙",size:"2xs"}),e[0]=i):i=e[0],i}let o;return e[1]!==n?(o=s.jsx(Na,{virtualMcpId:n}),e[1]=n,e[2]=o):o=e[2],o}function Na(t){const e=N.c(4),{virtualMcpId:n}=t,r=jt(n);if(!r){let l;return e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(De,{icon:null,name:"?",size:"2xs"}),e[0]=l):l=e[0],l}const o=r.icon??null;let i;return e[1]!==r.title||e[2]!==o?(i=s.jsx(De,{icon:o,name:r.title,size:"2xs"}),e[1]=r.title,e[2]=o,e[3]=i):i=e[3],i}function Ca(t){const e=N.c(3),{virtualMcpId:n,isToolCallRuns:r}=t;if(r){let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(s.Fragment,{children:"Automation runs"}),e[0]=i):i=e[0],i}let o;return e[1]!==n?(o=s.jsx(wa,{virtualMcpId:n}),e[1]=n,e[2]=o):o=e[2],o}function wa(t){const e=N.c(2),{virtualMcpId:n}=t,o=jt(n)?.title??"Agent";let i;return e[0]!==o?(i=s.jsx(s.Fragment,{children:o}),e[0]=o,e[1]=i):i=e[1],i}function Us(t){const e=N.c(10),{virtualMcpId:n,threads:r,activeTaskId:o,onSelectTask:i,onArchiveTask:l,onNewTaskInGroup:a,filters:c,groupVisibleCount:d}=t,u=_s("agent",n,c,d),{isFetching:m,isProbing:f,loadMore:h,serverHasMore:p}=u,[x,g]=z.useState(!1);!x&&r.length===0&&p===!0&&!m&&!f&&(g(!0),queueMicrotask(()=>{h()}));const{hasMore:b}=u;let j;return e[0]!==o||e[1]!==b||e[2]!==m||e[3]!==h||e[4]!==l||e[5]!==a||e[6]!==i||e[7]!==r||e[8]!==n?(j=s.jsx(s.Fragment,{children:r.length===0?s.jsxs("button",{type:"button",onClick:()=>a(n),className:"flex items-center gap-2 -ml-4 pl-6 pr-2 py-1.5 rounded-md cursor-pointer text-sm text-muted-foreground hover:bg-accent/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 transition-colors",children:[s.jsx(_e,{size:14}),s.jsx("span",{children:"New thread"})]}):s.jsxs(s.Fragment,{children:[r.map(y=>s.jsx(Vt,{task:y,isActive:o===y.id,onClick:()=>i(y),onArchive:()=>l(y),showAutomationBadge:!!y.trigger_id,indented:!0},y.id)),(b||m)&&s.jsx(ys,{onClick:()=>{h()},isFetching:m,indented:!0})]})}),e[0]=o,e[1]=b,e[2]=m,e[3]=h,e[4]=l,e[5]=a,e[6]=i,e[7]=r,e[8]=n,e[9]=j):j=e[9],j}function ka(t){const e=N.c(16),{status:n,threads:r,activeTaskId:o,onSelectTask:i,onArchiveTask:l,filters:a}=t,{isFetching:c,isProbing:d,loadMore:u,hasMore:m,serverHasMore:f}=_s("status",n,a),[h,p]=z.useState(!1);!h&&r.length===0&&f===!0&&!c&&!d&&(p(!0),queueMicrotask(()=>{u()}));let x;if(e[0]!==o||e[1]!==l||e[2]!==i||e[3]!==r){let j;e[5]!==o||e[6]!==l||e[7]!==i?(j=y=>s.jsx(Vt,{task:y,isActive:o===y.id,onClick:()=>i(y),onArchive:()=>l(y),showAutomationBadge:!!y.trigger_id,showAgentIcon:!0,hideStatusIdle:!0,indented:!0},y.id),e[5]=o,e[6]=l,e[7]=i,e[8]=j):j=e[8],x=r.map(j),e[0]=o,e[1]=l,e[2]=i,e[3]=r,e[4]=x}else x=e[4];let g;e[9]!==m||e[10]!==c||e[11]!==u?(g=(m||c)&&s.jsx(ys,{onClick:()=>{u()},isFetching:c,indented:!0}),e[9]=m,e[10]=c,e[11]=u,e[12]=g):g=e[12];let b;return e[13]!==x||e[14]!==g?(b=s.jsxs(s.Fragment,{children:[x,g]}),e[13]=x,e[14]=g,e[15]=b):b=e[15],b}function Ia(t){const e=N.c(35),{status:n,threads:r,activeTaskId:o,onSelectTask:i,onArchiveTask:l,filters:a}=t,c=$i[n],d=c.icon,[u,m]=Wn(`status-${n}`,!1);let f;e[0]!==u||e[1]!==m?(f=function(){m(!u)},e[0]=u,e[1]=m,e[2]=f):f=e[2];const h=f;let p;e[3]!==h?(p=S=>{S.target===S.currentTarget&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),h())},e[3]=h,e[4]=p):p=e[4];let x;e[5]!==d||e[6]!==c.iconClassName?(x=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]=x):x=e[7];let g;e[8]!==u?(g=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(_n,{size:14}):s.jsx(bs,{size:14})}),e[8]=u,e[9]=g):g=e[9];let b;e[10]!==x||e[11]!==g?(b=s.jsxs("div",{className:"relative size-5 shrink-0 flex items-center justify-center",children:[x,g]}),e[10]=x,e[11]=g,e[12]=b):b=e[12];let j;e[13]!==c.label?(j=s.jsx("span",{className:"flex-1 truncate",children:c.label}),e[13]=c.label,e[14]=j):j=e[14];let y;e[15]!==r.length?(y=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:r.length})}),e[15]=r.length,e[16]=y):y=e[16];let v;e[17]!==u||e[18]!==h||e[19]!==p||e[20]!==b||e[21]!==j||e[22]!==y?(v=s.jsxs("div",{role:"button",tabIndex:0,"aria-expanded":u,onClick:h,onKeyDown:p,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:[b,j,y]}),e[17]=u,e[18]=h,e[19]=p,e[20]=b,e[21]=j,e[22]=y,e[23]=v):v=e[23];let _;e[24]!==o||e[25]!==u||e[26]!==a||e[27]!==l||e[28]!==i||e[29]!==n||e[30]!==r?(_=u&&s.jsx("div",{className:"flex flex-col gap-0.5 pb-1 pl-4",children:s.jsx(ka,{status:n,threads:r,activeTaskId:o,onSelectTask:i,onArchiveTask:l,filters:a})}),e[24]=o,e[25]=u,e[26]=a,e[27]=l,e[28]=i,e[29]=n,e[30]=r,e[31]=_):_=e[31];let k;return e[32]!==v||e[33]!==_?(k=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[v,_]}),e[32]=v,e[33]=_,e[34]=k):k=e[34],k}function Ta(t){const e=N.c(7),{groups:n,orderScope:r,decopilotId:o,orgPinnedIds:i,onReorder:l,renderGroup:a}=t;let c;return e[0]!==o||e[1]!==n||e[2]!==l||e[3]!==r||e[4]!==i||e[5]!==a?(c=s.jsx(qn,{groups:n,orderScope:r,decopilotId:o,orgPinnedIds:i,onReorder:l,surface:"expanded",renderGroup:a,renderFixed:Aa,renderSortable:$a}),e[0]=o,e[1]=n,e[2]=l,e[3]=r,e[4]=i,e[5]=a,e[6]=c):c=e[6],c}function $a(t,e){return s.jsx(Kn,{...t,sortable:e},t.virtualMcpId)}function Aa(t){return s.jsx(Kn,{...t},t.virtualMcpId)}function za(t,e,n,r){return[t.orgId,t.userId,r,n.slice().sort().join(","),e.map(o=>o.virtualMcpId).sort().join(",")].join("|")}function Oa(t,e,n,r,o){const i=N.c(5),l=za(t,e,r,o),[a,c]=z.useState("");a!==l&&(ho(t,e,n,r),c(l));let d;return i[0]!==n||i[1]!==r||i[2]!==t||i[3]!==e?(d=go(t,e,n,r),i[0]=n,i[1]=r,i[2]=t,i[3]=e,i[4]=d):d=i[4],d}const Vn={all:"All tasks",manual:"Chats",automation:"Automation"},Yn={all:"All members",mine:"Mine only"},qs={agent:"Agent",status:"Status"};function Xn(t){const e=N.c(95);let n;e[0]!==t?(n=t===void 0?{}:t,e[0]=t,e[1]=n):n=e[1];const{onNavigate:r}=n,{data:o}=Ne.useSession(),i=o?.user?.id,l=i??"anon",{org:a}=le(),c=Lr(a.id).id,d=on(),{liveToDev:u,devToLive:m}=Ro(d),f=un(d),h=Fl(),p=Hr();let x;e[2]===Symbol.for("react.memo_cache_sentinel")?(x={},e[2]=x):x=e[2];const[g,b]=z.useState(x),j=new Set(f),y={},v=[];let _;e[3]!==g?(_=Object.entries(g),e[3]=g,e[4]=_):_=e[4];for(const[w,W]of _)j.has(w)!==W?y[w]=W:v.push(w);v.length>0&&b(w=>{const W={...w};for(const te of v)delete W[te];return W});const k=new Set(f);for(const[w,W]of Object.entries(y))W?k.add(w):k.delete(w);const S=[...k],I=new Set(S),{threads:T}=cn(),$=T.filter(Ua),{hide:O}=an(),A=Me(),{setTaskId:C,createNewTask:M}=dn();let V;e[5]===Symbol.for("react.memo_cache_sentinel")?(V={strict:!1},e[5]=V):V=e[5];const E=Ys(V).taskId??null;let L;e[6]!==r?(L=()=>{r?.()},e[6]=r,e[7]=L):L=e[7];const R=L,H=[...$].sort(Ba),[P,G]=z.useState("all"),[D,B]=z.useState("mine"),[F,Y]=z.useState("agent"),[ee,K]=z.useState(!1),[J,X]=z.useState(!1),[U,ne]=z.useState(0),re=bo(),ae=U+re;let Z;e[8]!==a.id||e[9]!==l?(Z={orgId:a.id,userId:l},e[8]=a.id,e[9]=l,e[10]=Z):Z=e[10];const ce=Z,je={type:P,member:D,currentUserId:i??null},Qe=oa(H,"agent",je),Re=Oa(ce,jo(vo(H,c),m),c,S,ae);let we;e[11]!==d?(we=new Set(d.map(Ha).filter(La)),e[11]=d,e[12]=we):we=e[12];const Ee=we,de=Re.filter(w=>w.virtualMcpId===c||w.virtualMcpId===os||Ee.has(w.virtualMcpId));let Fe;e[13]!==i||e[14]!==D?(Fe=w=>D==="mine"&&i?w.filter(W=>W.created_by===i):w,e[13]=i,e[14]=D,e[15]=Fe):Fe=e[15];const ue=Fe;let xe;e[16]!==P?(xe=w=>P==="automation"?w.filter(Ga):P==="manual"?w.filter(Fa):w,e[16]=P,e[17]=xe):xe=e[17];const me=xe,ke=w=>{const W=w.id===E;if(O(w.id),!W)return;const te=H.find(ie=>ie.id!==w.id&&ie.virtual_mcp_id===w.virtual_mcp_id&&ie.created_by===i);R(),te?C(te.id,te.virtual_mcp_id):A({to:"/$org",params:{org:a.slug}})};let he;e[18]!==R||e[19]!==M?(he=w=>{se("sidebar_group_new_clicked",{virtual_mcp_id:w}),R(),M(w)},e[18]=R,e[19]=M,e[20]=he):he=e[20];const Ge=he,ve=yo();let Le;e[21]!==R||e[22]!==ve?(Le=w=>{se("sidebar_group_settings_clicked",{virtual_mcp_id:w}),R(),ve(w,{search:{main:"instructions"}})},e[21]=R,e[22]=ve,e[23]=Le):Le=e[23];const He=Le,ht=w=>{if(I.has(w))return;se("sidebar_group_hide_clicked",{virtual_mcp_id:w});const W=de.find(te=>te.virtualMcpId===w);if(W)for(const te of W.threads)O(te.id);_o(ce,w,S),ne(Ea)},Be=async(w,W)=>{if(h&&y[w]===void 0){se("sidebar_group_org_pin_toggled",{virtual_mcp_id:w,pinned:W}),b(te=>({...te,[w]:W}));try{await p.update.mutateAsync({id:w,data:{pinned:W}})}catch{No(ce,w,!W),b(te=>{const ie={...te};return delete ie[w],ie})}}},Ue=w=>{const W=w===c||w===os;return{isOrgPinned:W||I.has(w),canManageOrgPin:W?!1:h,onToggleOrgPin:W?void 0:Be}},Ie=w=>{const W=me(ue(w.threads)),te=u.get(w.virtualMcpId)??null;return{virtualMcpId:w.virtualMcpId,threads:W,devPartnerId:te,devGroupVisibleCount:te?Qe.get(te)??0:0,activeTaskId:E,filters:je,groupVisibleCount:Qe.get(w.virtualMcpId)??0,onSelectTask:ie=>{R(),C(ie.id,ie.virtual_mcp_id)},onArchiveTask:ke,onNewTaskInGroup:Ge,onShowSettings:He,onHideGroup:ht,...Ue(w.virtualMcpId)}},ge=P!=="all"||D!=="mine",{state:qe,isMobile:We}=Xe();if(qe==="collapsed"&&!We){let w;e[24]!==ge||e[25]!==ue||e[26]!==me?(w=ts=>{const Zn=me(ue(ts.threads));return!(ge&&Zn.length===0)},e[24]=ge,e[25]=ue,e[26]=me,e[27]=w):w=e[27];const W=de.filter(w),te=F==="agent"&&de.length===0;let ie;e[28]!==te?(ie=s.jsx(Is,{value:te}),e[28]=te,e[29]=ie):ie=e[29];let zt;return e[30]===Symbol.for("react.memo_cache_sentinel")?(zt=()=>ne(Ra),e[30]=zt):zt=e[30],s.jsxs(s.Fragment,{children:[ie,s.jsx(Ae,{className:"min-h-0 gap-1.5 overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:s.jsx(ba,{groups:W,orderScope:ce,decopilotId:c,orgPinnedIds:S,onReorder:zt,renderGroup:ts=>Ie(ts)})})]})}const be="flex flex-col h-full min-h-0",Ke=F==="agent"&&de.length===0;let ye;e[31]!==Ke?(ye=s.jsx(Is,{value:Ke}),e[31]=Ke,e[32]=ye):ye=e[32];let Ve;e[33]!==K?(Ve=()=>{se("tasks_panel_search_opened"),X(!0),K(!0)},e[33]=K,e[34]=Ve):Ve=e[34];let Je;e[35]===Symbol.for("react.memo_cache_sentinel")?(Je=s.jsx(Yr,{size:16}),e[35]=Je):Je=e[35];let Ye;e[36]!==Ve?(Ye=s.jsx(pe,{"aria-label":"Search threads",onClick:Ve,children:Je}),e[36]=Ve,e[37]=Ye):Ye=e[37];const Xt=qs[F==="agent"?"status":"agent"];let yt;e[38]!==Xt?(yt=Xt.toLowerCase(),e[38]=Xt,e[39]=yt):yt=e[39];const Qt=`Group by ${yt}`,Jt=qs[F];let St;e[40]!==Jt?(St=Jt.toLowerCase(),e[40]=Jt,e[41]=St):St=e[41];const Zt=`Grouped by ${St}`;let Ze,et;e[42]!==F?(Ze=()=>{const w=F==="agent"?"status":"agent";se("tasks_panel_group_by_changed",{to_value:w}),Y(w)},et=F==="agent"?s.jsx(gi,{size:16}):s.jsx(Xr,{size:16}),e[42]=F,e[43]=Ze,e[44]=et):(Ze=e[43],et=e[44]);let tt;e[45]!==Qt||e[46]!==Zt||e[47]!==Ze||e[48]!==et?(tt=s.jsx(pe,{"aria-label":Qt,title:Zt,onClick:Ze,children:et}),e[45]=Qt,e[46]=Zt,e[47]=Ze,e[48]=et,e[49]=tt):tt=e[49];let _t;e[50]===Symbol.for("react.memo_cache_sentinel")?(_t=s.jsx(hi,{size:16}),e[50]=_t):_t=e[50];let st;e[51]!==ge?(st=ge&&s.jsx("span",{className:"absolute top-0.5 right-0.5 size-2 rounded-full bg-red-500 ring-1 ring-sidebar pointer-events-none"}),e[51]=ge,e[52]=st):st=e[52];let nt;e[53]!==st?(nt=s.jsx(xt,{asChild:!0,children:s.jsxs(pe,{"aria-label":"Filter tasks",children:[_t,st]})}),e[53]=st,e[54]=nt):nt=e[54];let rt;e[55]!==D?(rt=w=>{const W=w;W!==D&&se("tasks_panel_member_filter_changed",{to_value:W}),B(W)},e[55]=D,e[56]=rt):rt=e[56];let Nt;e[57]===Symbol.for("react.memo_cache_sentinel")?(Nt=s.jsx(zs,{size:"sm",className:"w-full",children:s.jsx(Os,{})}),e[57]=Nt):Nt=e[57];let Ct;e[58]===Symbol.for("react.memo_cache_sentinel")?(Ct=Object.keys(Yn),e[58]=Ct):Ct=e[58];let wt;e[59]===Symbol.for("react.memo_cache_sentinel")?(wt=s.jsx(As,{children:Ct.map(Ma)}),e[59]=wt):wt=e[59];let ot;e[60]!==D||e[61]!==rt?(ot=s.jsx(Ws,{label:"Members",children:s.jsxs(Ps,{value:D,onValueChange:rt,children:[Nt,wt]})}),e[60]=D,e[61]=rt,e[62]=ot):ot=e[62];let it;e[63]!==P?(it=w=>{const W=w;W!==P&&se("tasks_panel_filter_changed",{to_value:W}),G(W)},e[63]=P,e[64]=it):it=e[64];let kt;e[65]===Symbol.for("react.memo_cache_sentinel")?(kt=s.jsx(zs,{size:"sm",className:"w-full",children:s.jsx(Os,{})}),e[65]=kt):kt=e[65];let It;e[66]===Symbol.for("react.memo_cache_sentinel")?(It=Object.keys(Vn),e[66]=It):It=e[66];let Tt;e[67]===Symbol.for("react.memo_cache_sentinel")?(Tt=s.jsx(As,{children:It.map(Da)}),e[67]=Tt):Tt=e[67];let lt;e[68]!==it||e[69]!==P?(lt=s.jsx(Ws,{label:"Type",children:s.jsxs(Ps,{value:P,onValueChange:it,children:[kt,Tt]})}),e[68]=it,e[69]=P,e[70]=lt):lt=e[70];let at;e[71]!==ot||e[72]!==lt?(at=s.jsx(Ut,{align:"start",sideOffset:8,collisionPadding:16,className:"w-72 p-3",children:s.jsxs("div",{className:"flex flex-col gap-2",children:[ot,lt]})}),e[71]=ot,e[72]=lt,e[73]=at):at=e[73];let ct;e[74]!==nt||e[75]!==at?(ct=s.jsxs(Bt,{children:[nt,at]}),e[74]=nt,e[75]=at,e[76]=ct):ct=e[76];let dt;e[77]!==Ye||e[78]!==tt||e[79]!==ct?(dt=s.jsxs("div",{className:"flex items-center gap-0.5",children:[Ye,tt,ct]}),e[77]=Ye,e[78]=tt,e[79]=ct,e[80]=dt):dt=e[80];let $t;e[81]===Symbol.for("react.memo_cache_sentinel")?($t=s.jsx(Nn,{compact:!0}),e[81]=$t):$t=e[81];let ut;e[82]!==dt?(ut=s.jsxs("div",{className:"shrink-0 px-1 h-10 md:h-7 mb-2 flex items-center justify-between",children:[dt,$t]}),e[82]=dt,e[83]=ut):ut=e[83];const Jn="flex-1 min-h-0 overflow-y-auto overscroll-contain flex flex-col gap-0.5 -mr-2 pr-2",es=F==="status"?s.jsx(s.Fragment,{children:So(me(ue(H))).map(w=>s.jsx(Ia,{status:w.status,threads:w.threads,activeTaskId:E,onSelectTask:W=>{R(),C(W.id,W.virtual_mcp_id)},onArchiveTask:ke,filters:je},w.status))}):s.jsx(Ta,{groups:de,orderScope:ce,decopilotId:c,orgPinnedIds:S,onReorder:()=>ne(Pa),renderGroup:w=>({...Ie(w)})});let mt;e[84]!==es?(mt=s.jsx("div",{className:Jn,children:es}),e[84]=es,e[85]=mt):mt=e[85];let ft;e[86]!==J||e[87]!==ee||e[88]!==K?(ft=J&&s.jsx(Rl,{open:ee,onOpenChange:K}),e[86]=J,e[87]=ee,e[88]=K,e[89]=ft):ft=e[89];let At;return e[90]!==ye||e[91]!==ut||e[92]!==mt||e[93]!==ft?(At=s.jsxs("div",{className:be,children:[ye,ut,mt,ft]}),e[90]=ye,e[91]=ut,e[92]=mt,e[93]=ft,e[94]=At):At=e[94],At}function Pa(t){return t+1}function Da(t){return s.jsx(gn,{value:t,children:Vn[t]},t)}function Ma(t){return s.jsx(gn,{value:t,children:Yn[t]},t)}function Ra(t){return t+1}function Ea(t){return t+1}function Fa(t){return!t.trigger_id}function Ga(t){return!!t.trigger_id}function La(t){return!!t}function Ha(t){return t.id}function Ba(t,e){return(e.updated_at??"").localeCompare(t.updated_at??"")}function Ua(t){return!t.hidden}function Ws(t){const e=N.c(7),{label:n,children: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 i;e[2]!==r?(i=s.jsx("div",{className:"w-36 shrink-0",children:r}),e[2]=r,e[3]=i):i=e[3];let l;return e[4]!==o||e[5]!==i?(l=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[o,i]}),e[4]=o,e[5]=i,e[6]=l):l=e[6],l}const qa=5,Wa=[{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 Qn(){const t=N.c(3),{state:e}=Xe();if(e==="collapsed"){let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex flex-col gap-1.5",children:Array.from({length:qa}).map(Ya)}),t[0]=o):o=t[0],o}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(Se,{className:"size-6 rounded-md"}),s.jsx(Se,{className:"size-6 rounded-md"}),s.jsx(Se,{className:"size-6 rounded-md"})]}),s.jsx(Se,{className:"h-6 w-20 rounded-md"})]}),t[1]=n):n=t[1];let r;return t[2]===Symbol.for("react.memo_cache_sentinel")?(r=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:Wa.map(Ka)})]}),t[2]=r):r=t[2],r}function Ka(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(Se,{className:"size-5 rounded-full shrink-0"}),s.jsx(Se,{className:Q("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(Va)})]},e)}function Va(t,e){return s.jsx("div",{className:"flex items-center gap-2 px-2 py-1.5",children:s.jsx(Se,{className:"h-3 flex-1 rounded-sm"})},e)}function Ya(t,e){return s.jsx(Se,{className:"size-10 rounded-lg mx-auto"},e)}function Xa(){const t=N.c(4),e=Cn();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Ol,{}),t[0]=n):n=t[0];let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Js,{children:s.jsxs(z.Suspense,{fallback:s.jsxs(s.Fragment,{children:[s.jsx(Rt,{className:"mb-2"}),s.jsx(Qn,{})]}),children:[s.jsx(Rt,{className:"mb-2"}),s.jsx(Xn,{})]})}),t[1]=r):r=t[1];let o;return t[2]!==e?(o=s.jsx(mn,{children:s.jsx(In,{sections:e,footer:n,additionalContent:r})}),t[2]=e,t[3]=o):o=t[3],o}function Qa(t){const e=N.c(9),{onClose:n}=t,r=Cn();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Pl,{}),e[0]=o):o=e[0];let i,l;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs(s.Fragment,{children:[s.jsx(Rt,{className:"mb-2"}),s.jsx(Qn,{})]}),l=s.jsx(Rt,{className:"mb-2"}),e[1]=i,e[2]=l):(i=e[1],l=e[2]);let a;e[3]!==n?(a=s.jsx(Js,{children:s.jsxs(z.Suspense,{fallback:i,children:[l,s.jsx(Xn,{onNavigate:n})]})}),e[3]=n,e[4]=a):a=e[4];let c;return e[5]!==n||e[6]!==r||e[7]!==a?(c=s.jsx(mn,{children:s.jsx(tl,{sections:r,onClose:n,footer:o,additionalContent:a})}),e[5]=n,e[6]=r,e[7]=a,e[8]=c):c=e[8],c}const Ja="sidebar.open";function Za(){const t=N.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Oi,{}),t[0]=e):e=t[0],e}function lu(){const t=N.c(24),e=ps(),[n,r]=us(Ja,!1),{width:o,wrapperRef:i,onStartResize:l,resetWidth:a}=Ri();let c;t[0]!==e?(c=e?s.jsxs(oe.Header,{className:"grid-cols-1 px-1 pr-1",children:[s.jsxs("div",{className:"grid w-full grid-cols-[auto_auto_auto_1fr_auto_auto_auto] items-center gap-2",children:[s.jsx(oe.LogoLink,{}),s.jsx(Ns,{}),s.jsx(ls,{}),s.jsx("div",{"aria-hidden":!0,className:"min-w-0"}),s.jsx(oe.TogglesSlot,{}),s.jsx(oe.TabsSlot,{className:"min-w-0 justify-self-end"})]}),s.jsx(oe.CenterSlot,{}),s.jsx(oe.RightSlot,{})]}):s.jsxs(oe.Header,{children:[s.jsxs(oe.LeftColumn,{children:[s.jsx(oe.LogoLink,{}),s.jsx(Ns,{}),s.jsx("span",{className:"hidden md:contents",children:s.jsx(oe.Nav,{})}),s.jsx(oe.TogglesSlot,{}),s.jsx(ls,{})]}),s.jsx(oe.CenterSlot,{}),s.jsxs(oe.RightColumn,{children:[s.jsx("div",{className:"min-w-0 flex-1 overflow-x-auto [scrollbar-width:none] flex justify-end",children:s.jsx(oe.TabsSlot,{})}),s.jsx(oe.RightSlot,{})]})]}),t[0]=e,t[1]=c):c=t[1];const d=`${o}px`;let u;t[2]!==d?(u={"--sidebar-width":d,"--sidebar-width-icon":"3.5rem"},t[2]=d,t[3]=u):u=t[3];const m=u;let f;t[4]!==e||t[5]!==l||t[6]!==a?(f=!e&&s.jsxs(s.Fragment,{children:[s.jsx(Xa,{}),s.jsx(Pi,{onPointerDown:l,onDoubleClick:a})]}),t[4]=e,t[5]=l,t[6]=a,t[7]=f):f=t[7];let h;t[8]===Symbol.for("react.memo_cache_sentinel")?(h={background:"transparent",containerType:"inline-size"},t[8]=h):h=t[8];let p;t[9]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(Ar,{className:"flex flex-col",style:h,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(z.Suspense,{fallback:s.jsx(Za,{}),children:s.jsx(Ir,{})})})})}),t[9]=p):p=t[9];let x;t[10]!==m||t[11]!==f||t[12]!==i?(x=s.jsxs(zr,{ref:i,className:"flex-1 bg-sidebar relative min-h-0",style:m,children:[f,p]}),t[10]=m,t[11]=f,t[12]=i,t[13]=x):x=t[13];let g;t[14]!==e?(g=e&&s.jsx(Dr,{renderSidebar:ec}),t[14]=e,t[15]=g):g=t[15];let b;t[16]!==c||t[17]!==x||t[18]!==g?(b=s.jsx(fi,{children:s.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[c,x,g]})}),t[16]=c,t[17]=x,t[18]=g,t[19]=b):b=t[19];let j;return t[20]!==r||t[21]!==n||t[22]!==b?(j=s.jsx(eo,{children:s.jsx(oe.Provider,{children:s.jsx(Or,{open:n,onOpenChange:r,children:b})})}),t[20]=r,t[21]=n,t[22]=b,t[23]=j):j=t[23],j}function ec(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(Qa,{onClose:e})})})}export{lu as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as it,r as E,j as e,i as rt}from"./index-DmjWDqcd.js";import{S as mt,b as pt,c as st,d as at}from"./sheet-X3VztLnq.js";import{S as nt}from"./scroll-area-B8CDvPWi.js";import{r as lt,c as ct,u as dt,a as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-Cg3EP0Kg.js";import{p as xt}from"./index-DL5xoOQh.js";import"./X-BJ5AK9_B.js";import"./agent-icon-Ba-0ZYgG.js";import"./AlertCircle-HztvGgEK.js";import"./Tool01-Dc5WA1H4.js";import"./SwitchHorizontal01-CtPAye2M.js";import"./Settings02-HJQMPAnK.js";import"./XCircle-BEhXc7sQ.js";import"./ArrowUpRight-CD45Pqa3.js";import"./ZapSquare-CmmJkOPb.js";import"./Users03-B7auzTEh.js";import"./CheckCircle-B93tZkib.js";import"./ChevronUp-DLoyITzq.js";import"./ChevronDown-BHp2n33E.js";import"./ChevronLeft-CkLGnzyI.js";import"./ChevronRight-HkVZWjVD.js";import"./DotsVertical-DBVnta3o.js";import"./Stars02-CO1akjaP.js";import"./Eye-BuXBYPNx.js";import"./ZoomOut-9WiOjKDc.js";import"./Globe01-DbyYsbkQ.js";import"./FilterLines-JdWf41nd.js";import"./Star01-BLuwEqBm.js";import"./Globe04-ht6-fzwU.js";import"./HardDrive-QsbiOkra.js";import"./Key01-B-rzooWI.js";import"./LayoutLeft-CvZZnjM_.js";import"./LinkExternal01-C75h4nTA.js";import"./Monitor01-C751a6VH.js";import"./Sun-DGf33qzc.js";import"./Palette-Cw4TmFXF.js";import"./Play-BaPiITj6.js";import"./Plus-cqzweyhV.js";import"./SearchLg-BgcbIGrG.js";import"./SearchMd-B_E38g9S.js";import"./Shield01-CYOeouzJ.js";import"./Stars01-bmKEIBXR.js";import"./Trash01-Dn19EDIc.js";import"./Upload01-AmIm4zQN.js";import"./User01-CYnD1B0h.js";import"./Users01-B3f8K1I8.js";import"./XClose-BaODJMh0.js";import"./Zap-CDSogr5w.js";import"./use-clock-tick-DfB4yM8e.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DByELpSB.js";import"./tooltip-Cr9AJTu1.js";import"./file-type-icon-B1XEm_9k.js";import"./dialog-onqVrhoh.js";import"./use-mobile-C1ok2Oda.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-DIYYFrZY.js";import"./use-mcp-client-NDJy9UEP.js";import"./auth-CqOhN4mO.js";import"./chat-context-Ba1J4Wbr.js";import"./hooks-tDbCB3C5.js";import"./decopilot-sse-pool-BR9ewfWR.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-DQxIBquV.js";import"./use-collections-C6o5d0Mn.js";import"./use-ai-providers-DnoPML_E.js";import"./studio-tools-BWRE75AX.js";import"./use-decopilot-events-DavYF-aF.js";import"./use-organization-settings-rqcqUUeR.js";import"./shell-layout-CdseotG7.js";import"./avatar-DUFWGs9Z.js";import"./required-auth-layout-CykGSzYq.js";import"./use-org-sso-DXOaOrbn.js";import"./integration-icon-BF4ETuj8.js";import"./use-navigate-to-agent-GB89TSmS.js";import"./use-connection-RPVug9uL.js";import"./use-mcp-prompts-ziW0oQXD.js";import"./form-Dvd73W2C.js";import"./label-GEC2UjFS.js";import"./input-BlaLo4Ee.js";import"./select-ySr8WoR1.js";import"./switch-DR4CkZQD.js";import"./index-D3mRtkEB.js";import"./drawer-D6-83PZ_.js";import"./collection-search-D2jsOcE8.js";import"./tabs-C77-FnFK.js";import"./toggle-group-DUz2fIQy.js";import"./sortable.esm-Ctxa79RM.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CEtBve6r.js";import"./use-registry-connections-BHtQ89zr.js";import"./useInfiniteQuery-BiSAb_zK.js";import"./use-infinite-scroll-BmnUwDlC.js";import"./extract-connection-data-Dk45baha.js";import"./card-DuZccs_2.js";import"./collection-tabs-BlI5WHJs.js";import"./badge-ULvYE549.js";import"./textarea-DzC7ppsf.js";import"./connection-form-helpers-DtWH2w6r.js";import"./authenticate-and-persist-oauth-BkWGH7gY.js";import"./mcp-oauth-sGspCuYg.js";import"./useSuspenseInfiniteQuery-9J-jWStM.js";import"./connect-desktop-dialog-DPJKYCn-.js";import"./decopilot-Y0nnLngo.js";import"./checkbox-CZumSc8B.js";import"./skeleton-DknPHMRJ.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-ysOtzM09.js";import"./popover-BxWSrnHV.js";import"./command-ClUS1KMM.js";import"./index--njjOK24.js";import"./use-org-fs-C4An_fXX.js";import"./dropdown-menu-D9g8Sl4X.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-yeVUNOcg.js";import"./empty-state-0bsCiepl.js";import"./toolbar-1nBak56S.js";import"./preview-dialog-B6mTIXuI.js";import"./index-1nPke5TY.js";import"./use-mcp-tools-ByN1fg_5.js";import"./use-capability-CDOjpxJe.js";import"./shell-route-loading-DNSXVK6N.js";import"./tools-list-CTCIGteU.js";import"./alert-dialog-Bqe6OAIL.js";import"./use-debounced-autosave-D9laFBFB.js";import"./index-DrUwfEHA.js";import"./sidebar-H8VlLCcE.js";import"./search-input-L82tU3Bd.js";import"./github-repo-picker-CB-ypGEp.js";import"./use-debounced-value-Bs78etny.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-CQoqzufN.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-1VKSbXaL.js";import"./automation-runs-DIDLqvYF.js";import"./table-C4Cy5HHY.js";import"./use-members-CqCv95kS.js";import"./use-org-auth-client-a0tV0I4a.js";import"./task-status-DIimAguz.js";import"./use-automations-B4dRXrYb.js";import"./use-file-configs-YQp2GWKp.js";import"./monaco-editor-BKh1966p.js";import"./select-model-DdjL4UVJ.js";import"./automation-list-row-CjVzmIPj.js";function pi(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 M=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 V=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 z=F,A=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,B=m.kind==="site"&&o&&n,H=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 $=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const q=O;let l;t[13]!==A?(l=e.jsx(mt,{className:"text-sm font-semibold",children:A}),t[13]=A,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]!==q||t[22]!==$||t[23]!==M||t[24]!==v||t[25]!==h||t[26]!==H||t[27]!==x||t[28]!==V||t[29]!==I||t[30]!==a||t[31]!==o||t[32]!==n||t[33]!==i||t[34]!==g||t[35]!==T||t[36]!==B||t[37]!==_?(S=!o||!T&&!B?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:H}):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:M,seoSchema:n,activeResolveType:p,seoTypeOptions:o.seoTypeOptions,formResetKey:x,siteDefaultSeo:_,onPersistRaw:r=>{g(r),I(r)},onInnerChange:r=>{i(r),a(r)},onClearForm:$,onBumpFormKey:q}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:V})})})}),t[20]=p,t[21]=q,t[22]=$,t[23]=M,t[24]=v,t[25]=h,t[26]=H,t[27]=x,t[28]=V,t[29]=I,t[30]=a,t[31]=o,t[32]=n,t[33]=i,t[34]=g,t[35]=T,t[36]=B,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]!==z||t[43]!==N||t[44]!==f?(b=e.jsx(at,{open:N,onOpenChange:z,children:f}),t[42]=z,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{pi as SeoSheet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as H,j as t,B as Z}from"./index-DmjWDqcd.js";import{n as ee}from"./LinkExternal01-C75h4nTA.js";import{aC as te,t as oe}from"./agent-icon-Ba-0ZYgG.js";import{I as J}from"./input-BlaLo4Ee.js";import{L as G}from"./label-GEC2UjFS.js";import{M as ie}from"./automation-runs-DIDLqvYF.js";import{T as Q,a as se,b as W,c as le}from"./tabs-C77-FnFK.js";import{T as re}from"./textarea-DzC7ppsf.js";import{au as ae,av as me,at as pe,aw as ne,ax as ce,ay as de,az as fe}from"./index-DL5xoOQh.js";import{b as ue,a as xe,B as he}from"./block-document-Cl3urvMb.js";import{u as ge,s as F,E as ve,R as ye,A as je}from"./primitives-DikyHxBV.js";import"./AlertCircle-HztvGgEK.js";import"./Tool01-Dc5WA1H4.js";import"./SwitchHorizontal01-CtPAye2M.js";import"./Settings02-HJQMPAnK.js";import"./XCircle-BEhXc7sQ.js";import"./ArrowUpRight-CD45Pqa3.js";import"./ZapSquare-CmmJkOPb.js";import"./Users03-B7auzTEh.js";import"./CheckCircle-B93tZkib.js";import"./ChevronUp-DLoyITzq.js";import"./ChevronDown-BHp2n33E.js";import"./ChevronLeft-CkLGnzyI.js";import"./ChevronRight-HkVZWjVD.js";import"./DotsVertical-DBVnta3o.js";import"./Stars02-CO1akjaP.js";import"./Eye-BuXBYPNx.js";import"./ZoomOut-9WiOjKDc.js";import"./Globe01-DbyYsbkQ.js";import"./FilterLines-JdWf41nd.js";import"./Star01-BLuwEqBm.js";import"./Globe04-ht6-fzwU.js";import"./HardDrive-QsbiOkra.js";import"./Key01-B-rzooWI.js";import"./LayoutLeft-CvZZnjM_.js";import"./Monitor01-C751a6VH.js";import"./Sun-DGf33qzc.js";import"./Palette-Cw4TmFXF.js";import"./Play-BaPiITj6.js";import"./Plus-cqzweyhV.js";import"./SearchLg-BgcbIGrG.js";import"./SearchMd-B_E38g9S.js";import"./Shield01-CYOeouzJ.js";import"./Stars01-bmKEIBXR.js";import"./Trash01-Dn19EDIc.js";import"./Upload01-AmIm4zQN.js";import"./User01-CYnD1B0h.js";import"./Users01-B3f8K1I8.js";import"./XClose-BaODJMh0.js";import"./X-BJ5AK9_B.js";import"./Zap-CDSogr5w.js";import"./useInfiniteQuery-BiSAb_zK.js";import"./use-infinite-scroll-BmnUwDlC.js";import"./use-connection-RPVug9uL.js";import"./use-collections-C6o5d0Mn.js";import"./use-mcp-client-NDJy9UEP.js";import"./auth-CqOhN4mO.js";import"./use-virtual-mcp-DQxIBquV.js";import"./card-DuZccs_2.js";import"./sheet-X3VztLnq.js";import"./table-C4Cy5HHY.js";import"./empty-state-0bsCiepl.js";import"./use-members-CqCv95kS.js";import"./use-org-auth-client-a0tV0I4a.js";import"./task-status-DIimAguz.js";import"./use-automations-B4dRXrYb.js";import"./studio-tools-BWRE75AX.js";import"./useSuspenseInfiniteQuery-9J-jWStM.js";import"./badge-ULvYE549.js";import"./select-ySr8WoR1.js";import"./tooltip-Cr9AJTu1.js";import"./checkbox-CZumSc8B.js";import"./command-ClUS1KMM.js";import"./index--njjOK24.js";import"./dialog-onqVrhoh.js";import"./popover-BxWSrnHV.js";import"./avatar-DUFWGs9Z.js";import"./scroll-area-B8CDvPWi.js";import"./use-clock-tick-DfB4yM8e.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DByELpSB.js";import"./file-type-icon-B1XEm_9k.js";import"./use-mobile-C1ok2Oda.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-DIYYFrZY.js";import"./chat-context-Ba1J4Wbr.js";import"./hooks-tDbCB3C5.js";import"./decopilot-sse-pool-BR9ewfWR.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-DnoPML_E.js";import"./use-decopilot-events-DavYF-aF.js";import"./use-organization-settings-rqcqUUeR.js";import"./shell-layout-CdseotG7.js";import"./required-auth-layout-CykGSzYq.js";import"./use-org-sso-DXOaOrbn.js";import"./integration-icon-BF4ETuj8.js";import"./use-navigate-to-agent-GB89TSmS.js";import"./use-mcp-prompts-ziW0oQXD.js";import"./form-Dvd73W2C.js";import"./index-D3mRtkEB.js";import"./drawer-D6-83PZ_.js";import"./collection-search-D2jsOcE8.js";import"./toggle-group-DUz2fIQy.js";import"./sortable.esm-Ctxa79RM.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CEtBve6r.js";import"./use-registry-connections-BHtQ89zr.js";import"./extract-connection-data-Dk45baha.js";import"./collection-tabs-BlI5WHJs.js";import"./connection-form-helpers-DtWH2w6r.js";import"./authenticate-and-persist-oauth-BkWGH7gY.js";import"./mcp-oauth-sGspCuYg.js";import"./connect-desktop-dialog-DPJKYCn-.js";import"./decopilot-Y0nnLngo.js";import"./skeleton-DknPHMRJ.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-ysOtzM09.js";import"./use-org-fs-C4An_fXX.js";import"./dropdown-menu-D9g8Sl4X.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-yeVUNOcg.js";import"./toolbar-1nBak56S.js";import"./preview-dialog-B6mTIXuI.js";import"./index-1nPke5TY.js";import"./use-mcp-tools-ByN1fg_5.js";import"./use-capability-CDOjpxJe.js";import"./shell-route-loading-DNSXVK6N.js";import"./tools-list-CTCIGteU.js";import"./alert-dialog-Bqe6OAIL.js";import"./switch-DR4CkZQD.js";import"./use-debounced-autosave-D9laFBFB.js";import"./index-DrUwfEHA.js";import"./sidebar-H8VlLCcE.js";import"./search-input-L82tU3Bd.js";import"./github-repo-picker-CB-ypGEp.js";import"./use-debounced-value-Bs78etny.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-CQoqzufN.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-1VKSbXaL.js";import"./use-file-configs-YQp2GWKp.js";import"./monaco-editor-BKh1966p.js";import"./select-model-DdjL4UVJ.js";import"./automation-list-row-CjVzmIPj.js";function be(A){return Array.isArray(A)?A.map(e=>({key:F(e?.key),value:F(e?.value)})):[]}function pi(A){const e=H.c(66),{orgSlug:i,virtualMcpId:d,branch:o,blockKey:l,block:p,decofile:m,meta:u,previewBaseUrl:x}=A;let y;e[0]!==o||e[1]!==i||e[2]!==d?(y={orgSlug:i,virtualMcpId:d,branch:o},e[0]=o,e[1]=i,e[2]=d,e[3]=y):y=e[3];const s=ae(y);let n;e[4]!==p?(n=me(p,"posts"),e[4]=p,e[5]=n):n=e[5];const j=n;let b;e[6]!==l||e[7]!==s?(b=T=>{s.mutate({blockKey:l,data:ne(l,"posts",T)})},e[6]=l,e[7]=s,e[8]=b):b=e[8];const[r,_]=ge(j,b);let C;e[9]!==r||e[10]!==_?(C=(T,Y)=>_({...r,[T]:Y}),e[9]=r,e[10]=_,e[11]=C):C=e[11];const h=C;let S;e[12]!==m||e[13]!==r||e[14]!==x?(S=ue({decofile:m,post:r,previewBaseUrl:x}),e[12]=m,e[13]=r,e[14]=x,e[15]=S):S=e[15];const f=S;let a;e[16]!==r.title?(a=F(r.title)||"Untitled post",e[16]=r.title,e[17]=a):a=e[17];let c;e[18]!==a?(c=t.jsx("span",{className:"truncate text-sm font-medium",children:a}),e[18]=a,e[19]=c):c=e[19];let g;e[20]!==s.isError||e[21]!==s.isPending?(g=t.jsx(pe,{isPending:s.isPending,isError:s.isError}),e[20]=s.isError,e[21]=s.isPending,e[22]=g):g=e[22];const k=!f,P=f?"Open the post preview in a new tab":"Set the post slug (and its category) plus the blog app's pageSlug to preview";let N;e[23]!==f?(N=()=>{f&&window.open(f,"_blank","noopener,noreferrer")},e[23]=f,e[24]=N):N=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 w;e[26]!==P||e[27]!==N||e[28]!==k?(w=t.jsxs(Z,{type:"button",variant:"outline",size:"sm",disabled:k,title:P,onClick:N,children:[B,"See preview"]}),e[26]=P,e[27]=N,e[28]=k,e[29]=w):w=e[29];let E;e[30]!==w||e[31]!==g?(E=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[g,w]}),e[30]=w,e[31]=g,e[32]=E):E=e[32];let v;e[33]!==E||e[34]!==c?(v=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,E]}),e[33]=E,e[34]=c,e[35]=v):v=e[35];let L;e[36]!==r.title?(L=F(r.title),e[36]=r.title,e[37]=L):L=e[37];let R;e[38]!==h?(R=T=>h("title",T),e[38]=h,e[39]=R):R=e[39];let U;e[40]!==L||e[41]!==R?(U=t.jsx(ve,{value:L,onChange:R,placeholder:"Post title",className:"py-1 text-4xl font-bold text-foreground"}),e[40]=L,e[41]=R,e[42]=U):U=e[42];let O;e[43]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsxs(Q,{value:"content",children:[t.jsx(te,{}),"Content"]}),e[43]=O):O=e[43];let K;e[44]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsxs(se,{children:[O,t.jsxs(Q,{value:"settings",children:[t.jsx(oe,{}),"Settings"]})]}),e[44]=K):K=e[44];let $;e[45]!==r.sections?($=xe(r.sections),e[45]=r.sections,e[46]=$):$=e[46];let I;e[47]!==h?(I=T=>h("sections",T),e[47]=h,e[48]=I):I=e[48];let M;e[49]!==u||e[50]!==$||e[51]!==I?(M=t.jsx(W,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(he,{value:$,onChange:I,meta:u,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."})})}),e[49]=u,e[50]=$,e[51]=I,e[52]=M):M=e[52];let z;e[53]!==m||e[54]!==r||e[55]!==h?(z=t.jsx(W,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(Ce,{post:r,decofile:m,onChange:h})})}),e[53]=m,e[54]=r,e[55]=h,e[56]=z):z=e[56];let D;e[57]!==M||e[58]!==z?(D=t.jsxs(le,{defaultValue:"content",className:"mt-6 gap-4",children:[K,M,z]}),e[57]=M,e[58]=z,e[59]=D):D=e[59];let V;e[60]!==U||e[61]!==D?(V=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:[U,D]})}),e[60]=U,e[61]=D,e[62]=V):V=e[62];let q;return e[63]!==v||e[64]!==V?(q=t.jsxs("div",{className:"flex h-full flex-col",children:[v,V]}),e[63]=v,e[64]=V,e[65]=q):q=e[65],q}function Ce(A){const e=H.c(59),{post:i,decofile:d,onChange:o}=A;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(G,{htmlFor:"post-excerpt",children:"Excerpt"}),e[0]=l):l=e[0];let p;e[1]!==i.excerpt?(p=F(i.excerpt),e[1]=i.excerpt,e[2]=p):p=e[2];let m;e[3]!==o?(m=v=>o("excerpt",v.target.value),e[3]=o,e[4]=m):m=e[4];let u;e[5]!==p||e[6]!==m?(u=t.jsxs("div",{className:"space-y-2",children:[l,t.jsx(re,{id:"post-excerpt",value:p,onChange:m,rows:2})]}),e[5]=p,e[6]=m,e[7]=u):u=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(G,{htmlFor:"post-slug",children:"Slug"}),e[8]=x):x=e[8];let y;e[9]!==i.slug?(y=F(i.slug),e[9]=i.slug,e[10]=y):y=e[10];let s;e[11]!==o?(s=v=>o("slug",v.target.value),e[11]=o,e[12]=s):s=e[12];let n;e[13]!==y||e[14]!==s?(n=t.jsxs("div",{className:"space-y-2",children:[x,t.jsx(J,{id:"post-slug",value:y,onChange:s,placeholder:"my-post",className:"h-10"})]}),e[13]=y,e[14]=s,e[15]=n):n=e[15];let j;e[16]===Symbol.for("react.memo_cache_sentinel")?(j={type:"string",format:"date",title:"Date"},e[16]=j):j=e[16];let b;e[17]!==i.date?(b=F(i.date),e[17]=i.date,e[18]=b):b=e[18];let r;e[19]!==o?(r=v=>o("date",v),e[19]=o,e[20]=r):r=e[20];let _;e[21]!==b||e[22]!==r?(_=t.jsx(fe,{schema:j,value:b,onChange:r,path:"post-date",label:"Date"}),e[21]=b,e[22]=r,e[23]=_):_=e[23];let C;e[24]!==_||e[25]!==n?(C=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n,_]}),e[24]=_,e[25]=n,e[26]=C):C=e[26];let h;e[27]===Symbol.for("react.memo_cache_sentinel")?(h={type:"string",format:"image-uri",title:"Cover image"},e[27]=h):h=e[27];let S;e[28]!==o?(S=v=>o("image",v),e[28]=o,e[29]=S):S=e[29];let f;e[30]!==i.image||e[31]!==S?(f=t.jsx(ce,{schema:h,value:i.image,onChange:S,path:"post-image",label:"Cover image"}),e[30]=i.image,e[31]=S,e[32]=f):f=e[32];let a;e[33]===Symbol.for("react.memo_cache_sentinel")?(a=["email"],e[33]=a):a=e[33];let c;e[34]!==o?(c=v=>o("authors",v),e[34]=o,e[35]=c):c=e[35];let g;e[36]!==d||e[37]!==i.authors||e[38]!==c?(g=t.jsx(X,{label:"Authors",decofile:d,kind:"authors",valueField:"email",extraFields:a,selected:i.authors,onChange:c}),e[36]=d,e[37]=i.authors,e[38]=c,e[39]=g):g=e[39];let k;e[40]===Symbol.for("react.memo_cache_sentinel")?(k=["slug"],e[40]=k):k=e[40];let P;e[41]!==o?(P=v=>o("categories",v),e[41]=o,e[42]=P):P=e[42];let N;e[43]!==d||e[44]!==i.categories||e[45]!==P?(N=t.jsx(X,{label:"Categories",decofile:d,kind:"categories",valueField:"slug",extraFields:k,selected:i.categories,onChange:P}),e[43]=d,e[44]=i.categories,e[45]=P,e[46]=N):N=e[46];let B;e[47]!==o?(B=v=>o("extraProps",v),e[47]=o,e[48]=B):B=e[48];let w;e[49]!==i.extraProps||e[50]!==B?(w=t.jsx(ke,{value:i.extraProps,onChange:B}),e[49]=i.extraProps,e[50]=B,e[51]=w):w=e[51];let E;return e[52]!==C||e[53]!==f||e[54]!==g||e[55]!==N||e[56]!==w||e[57]!==u?(E=t.jsxs("div",{className:"space-y-5",children:[u,C,f,g,N,w]}),e[52]=C,e[53]=f,e[54]=g,e[55]=N,e[56]=w,e[57]=u,e[58]=E):E=e[58],E}function ke(A){const e=H.c(15),{value:i,onChange:d}=A;let o,l,p,m;if(e[0]!==d||e[1]!==i){o=be(i);const y=(s,n)=>d(o.map((j,b)=>b===s?{...j,...n}:j));l="space-y-2",e[6]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(G,{children:"Extra props"}),e[6]=p):p=e[6],m=o.length>0&&t.jsx("ul",{className:"space-y-2",children:o.map((s,n)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(J,{value:s.key,onChange:j=>y(n,{key:j.target.value}),placeholder:"key",className:"h-9 flex-1"}),t.jsx(J,{value:s.value,onChange:j=>y(n,{value:j.target.value}),placeholder:"value",className:"h-9 flex-1"}),t.jsx(ye,{label:"Remove prop",onClick:()=>d(o.filter((j,b)=>b!==n))})]},n))}),e[0]=d,e[1]=i,e[2]=o,e[3]=l,e[4]=p,e[5]=m}else o=e[2],l=e[3],p=e[4],m=e[5];let u;e[7]!==o||e[8]!==d?(u=t.jsx(je,{label:"Add prop",onClick:()=>d([...o,{key:"",value:""}])}),e[7]=o,e[8]=d,e[9]=u):u=e[9];let x;return e[10]!==l||e[11]!==p||e[12]!==m||e[13]!==u?(x=t.jsxs("div",{className:l,children:[p,m,u]}),e[10]=l,e[11]=p,e[12]=m,e[13]=u,e[14]=x):x=e[14],x}function X(A){const e=H.c(31),{label:i,decofile:d,kind:o,valueField:l,extraFields:p,selected:m,onChange:u}=A;let x,y,s;if(e[0]!==d||e[1]!==o||e[2]!==l){x=de(d,o);let f;e[6]!==l?(f=(c,g)=>F(c[l])||g,e[6]=l,e[7]=f):f=e[7],s=f;let a;e[8]!==s?(a=c=>{const{key:g,payload:k}=c;return{value:s(k,g),label:F(k.name)||s(k,g)}},e[8]=s,e[9]=a):a=e[9],y=x.map(a),e[0]=d,e[1]=o,e[2]=l,e[3]=x,e[4]=y,e[5]=s}else x=e[3],y=e[4],s=e[5];const n=y;let j;if(e[10]!==m||e[11]!==l){const f=Array.isArray(m)?m:[];let a;e[13]!==l?(a=c=>F(c[l]),e[13]=l,e[14]=a):a=e[14],j=f.map(a).filter(Boolean),e[10]=m,e[11]=l,e[12]=j}else j=e[12];const b=j;let r;e[15]!==p||e[16]!==u||e[17]!==x||e[18]!==l||e[19]!==s?(r=f=>{u(f.map(a=>{const c=x.find(k=>{const{key:P,payload:N}=k;return s(N,P)===a});if(!c)return{name:a,[l]:a};const g={name:F(c.payload.name)};for(const k of p)g[k]=c.payload[k]??a;return g}))},e[15]=p,e[16]=u,e[17]=x,e[18]=l,e[19]=s,e[20]=r):r=e[20];const _=r;let C;e[21]!==i?(C=t.jsx(G,{children:i}),e[21]=i,e[22]=C):C=e[22];let h;e[23]!==b||e[24]!==_||e[25]!==i||e[26]!==n?(h=n.length===0?t.jsxs("p",{className:"text-xs text-muted-foreground",children:["No ",i.toLowerCase()," yet — create some in the"," ",i.toLowerCase()," collection."]}):t.jsx(ie,{options:n,defaultValue:b,onValueChange:_,placeholder:`Select ${i.toLowerCase()}`,maxCount:4}),e[23]=b,e[24]=_,e[25]=i,e[26]=n,e[27]=h):h=e[27];let S;return e[28]!==C||e[29]!==h?(S=t.jsxs("div",{className:"space-y-2",children:[C,h]}),e[28]=C,e[29]=h,e[30]=S):S=e[30],S}export{pi as PostEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as $,D as H,j as A}from"./index-DmjWDqcd.js";import{l as L,g as E,s as y}from"./scroll-area-B8CDvPWi.js";import{p as O,u as k}from"./use-mcp-client-NDJy9UEP.js";import{b as q,c as B}from"./use-mcp-tools-ByN1fg_5.js";import{u as Y}from"./index-DL5xoOQh.js";import{c as G}from"./content-blocks-o63cs2vh.js";import{g as K,M as V,a as w}from"./types-DIYYFrZY.js";import{u as z,b as F}from"./chat-context-Ba1J4Wbr.js";import{b as J}from"./shell-layout-CdseotG7.js";import"./agent-icon-Ba-0ZYgG.js";import"./AlertCircle-HztvGgEK.js";import"./Tool01-Dc5WA1H4.js";import"./SwitchHorizontal01-CtPAye2M.js";import"./Settings02-HJQMPAnK.js";import"./XCircle-BEhXc7sQ.js";import"./ArrowUpRight-CD45Pqa3.js";import"./ZapSquare-CmmJkOPb.js";import"./Users03-B7auzTEh.js";import"./CheckCircle-B93tZkib.js";import"./ChevronUp-DLoyITzq.js";import"./ChevronDown-BHp2n33E.js";import"./ChevronLeft-CkLGnzyI.js";import"./ChevronRight-HkVZWjVD.js";import"./DotsVertical-DBVnta3o.js";import"./Stars02-CO1akjaP.js";import"./Eye-BuXBYPNx.js";import"./ZoomOut-9WiOjKDc.js";import"./Globe01-DbyYsbkQ.js";import"./FilterLines-JdWf41nd.js";import"./Star01-BLuwEqBm.js";import"./Globe04-ht6-fzwU.js";import"./HardDrive-QsbiOkra.js";import"./Key01-B-rzooWI.js";import"./LayoutLeft-CvZZnjM_.js";import"./LinkExternal01-C75h4nTA.js";import"./Monitor01-C751a6VH.js";import"./Sun-DGf33qzc.js";import"./Palette-Cw4TmFXF.js";import"./Play-BaPiITj6.js";import"./Plus-cqzweyhV.js";import"./SearchLg-BgcbIGrG.js";import"./SearchMd-B_E38g9S.js";import"./Shield01-CYOeouzJ.js";import"./Stars01-bmKEIBXR.js";import"./Trash01-Dn19EDIc.js";import"./Upload01-AmIm4zQN.js";import"./User01-CYnD1B0h.js";import"./Users01-B3f8K1I8.js";import"./XClose-BaODJMh0.js";import"./X-BJ5AK9_B.js";import"./Zap-CDSogr5w.js";import"./use-clock-tick-DfB4yM8e.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DByELpSB.js";import"./tooltip-Cr9AJTu1.js";import"./file-type-icon-B1XEm_9k.js";import"./dialog-onqVrhoh.js";import"./use-mobile-C1ok2Oda.js";import"./tab-id-BptcWVWa.js";import"./hooks-tDbCB3C5.js";import"./decopilot-sse-pool-BR9ewfWR.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-BWRE75AX.js";import"./sheet-X3VztLnq.js";import"./integration-icon-BF4ETuj8.js";import"./use-virtual-mcp-DQxIBquV.js";import"./use-collections-C6o5d0Mn.js";import"./use-navigate-to-agent-GB89TSmS.js";import"./use-connection-RPVug9uL.js";import"./use-mcp-prompts-ziW0oQXD.js";import"./form-Dvd73W2C.js";import"./label-GEC2UjFS.js";import"./input-BlaLo4Ee.js";import"./select-ySr8WoR1.js";import"./auth-CqOhN4mO.js";import"./index-D3mRtkEB.js";import"./drawer-D6-83PZ_.js";import"./collection-search-D2jsOcE8.js";import"./tabs-C77-FnFK.js";import"./toggle-group-DUz2fIQy.js";import"./sortable.esm-Ctxa79RM.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CEtBve6r.js";import"./use-registry-connections-BHtQ89zr.js";import"./use-organization-settings-rqcqUUeR.js";import"./useInfiniteQuery-BiSAb_zK.js";import"./use-infinite-scroll-BmnUwDlC.js";import"./extract-connection-data-Dk45baha.js";import"./card-DuZccs_2.js";import"./collection-tabs-BlI5WHJs.js";import"./badge-ULvYE549.js";import"./textarea-DzC7ppsf.js";import"./connection-form-helpers-DtWH2w6r.js";import"./authenticate-and-persist-oauth-BkWGH7gY.js";import"./mcp-oauth-sGspCuYg.js";import"./useSuspenseInfiniteQuery-9J-jWStM.js";import"./use-ai-providers-DnoPML_E.js";import"./connect-desktop-dialog-DPJKYCn-.js";import"./decopilot-Y0nnLngo.js";import"./checkbox-CZumSc8B.js";import"./skeleton-DknPHMRJ.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-DUFWGs9Z.js";import"./settings-section-ysOtzM09.js";import"./popover-BxWSrnHV.js";import"./command-ClUS1KMM.js";import"./index--njjOK24.js";import"./use-org-fs-C4An_fXX.js";import"./dropdown-menu-D9g8Sl4X.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-yeVUNOcg.js";import"./use-decopilot-events-DavYF-aF.js";import"./empty-state-0bsCiepl.js";import"./toolbar-1nBak56S.js";import"./preview-dialog-B6mTIXuI.js";import"./index-1nPke5TY.js";import"./use-capability-CDOjpxJe.js";import"./shell-route-loading-DNSXVK6N.js";import"./tools-list-CTCIGteU.js";import"./alert-dialog-Bqe6OAIL.js";import"./switch-DR4CkZQD.js";import"./use-debounced-autosave-D9laFBFB.js";import"./index-DrUwfEHA.js";import"./sidebar-H8VlLCcE.js";import"./search-input-L82tU3Bd.js";import"./github-repo-picker-CB-ypGEp.js";import"./use-debounced-value-Bs78etny.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-CQoqzufN.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-1VKSbXaL.js";import"./automation-runs-DIDLqvYF.js";import"./table-C4Cy5HHY.js";import"./use-members-CqCv95kS.js";import"./use-org-auth-client-a0tV0I4a.js";import"./task-status-DIimAguz.js";import"./use-automations-B4dRXrYb.js";import"./use-file-configs-YQp2GWKp.js";import"./monaco-editor-BKh1966p.js";import"./select-model-DdjL4UVJ.js";import"./automation-list-row-CjVzmIPj.js";import"./required-auth-layout-CykGSzYq.js";import"./use-org-sso-DXOaOrbn.js";const Q={};function W(S){const t=$.c(37),{client:r,resourceURI:h,tool:o,connectionId:p,orgId:l,args:M}=S,{sendMessage:I}=z(),{setAppContext:u,clearAppContext:n}=F(),{setChatOpen:f,openTab:g}=J(),e=`${p}:${o.name}`;let a;t[0]!==g?(a=C=>C==="inline"?(g("0"),"inline"):"fullscreen",t[0]=g,t[1]=a):a=t[1];const m=a,s=M??Q;let c;t[2]!==r||t[3]!==o.name||t[4]!==s?(c={client:r,toolName:o.name,toolArguments:s},t[2]=r,t[3]=o.name,t[4]=s,t[5]=c):c=t[5];const{data:i}=B(c);let x;if(t[6]!==o._meta||t[7]!==o.name){const C=E(o._meta);x=y(o.name,C),t[6]=o._meta,t[7]=o.name,t[8]=x}else x=t[8];const U=x;let d;t[9]!==o.inputSchema?(d=o.inputSchema??{type:"object"},t[9]=o.inputSchema,t[10]=d):d=t[10];let N;t[11]!==U||t[12]!==d||t[13]!==o?(N={...o,name:U,inputSchema:d},t[11]=U,t[12]=d,t[13]=o,t[14]=N):N=t[14];const b=N;let _;t[15]!==I||t[16]!==f?(_=C=>{const D=G(C.content);D.content.length>0&&(f(!0),I({tiptapDoc:D}))},t[15]=I,t[16]=f,t[17]=_):_=t[17];const j=_;let P;t[18]!==b?(P={tool:b},t[18]=b,t[19]=P):P=t[19];let T;t[20]!==u||t[21]!==e?(T=C=>u(e,C),t[20]=u,t[21]=e,t[22]=T):T=t[22];let R;t[23]!==n||t[24]!==e?(R=()=>n(e),t[23]=n,t[24]=e,t[25]=R):R=t[25];let v;return t[26]!==r||t[27]!==j||t[28]!==m||t[29]!==l||t[30]!==h||t[31]!==P||t[32]!==T||t[33]!==R||t[34]!==s||t[35]!==i?(v=A.jsx(V,{resourceURI:h,orgId:l,toolInfo:P,toolInput:s,toolResult:i,displayMode:"fullscreen",minHeight:w.fullscreen.minHeight,maxHeight:w.fullscreen.maxHeight,client:r,onMessage:j,onUpdateModelContext:T,onTeardown:R,onRequestDisplayMode:m,className:"h-full"}),t[26]=r,t[27]=j,t[28]=m,t[29]=l,t[30]=h,t[31]=P,t[32]=T,t[33]=R,t[34]=s,t[35]=i,t[36]=v):v=t[36],v}function $e(S){const t=$.c(24),{connectionId:r,toolName:h,args:o}=S,{org:p}=H(),l=Y();let M;t[0]!==r||t[1]!==l?(M=O(r)&&l.vmEntry?.sandboxProviderKind==="user-desktop"&&l.previewUrl?`${l.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=r,t[1]=l,t[2]=M):M=t[2];const I=M;let u;t[3]!==r||t[4]!==I||t[5]!==p.id||t[6]!==p.slug?(u={connectionId:r,orgId:p.id,orgSlug:p.slug,mcpUrl:I},t[3]=r,t[4]=I,t[5]=p.id,t[6]=p.slug,t[7]=u):u=t[7];const n=k(u);let f;t[8]!==n?(f={client:n},t[8]=n,t[9]=f):f=t[9];const{data:g}=q(f);let e,a,m;t[10]!==h||t[11]!==g.tools?(e=L(decodeURIComponent(h)),m=g.tools.find(i=>i.name===e)??g.tools.find(i=>{const x=E(i._meta);if(!x)return!1;if(y(i.name,x)===e)return!0;const d=y(e,x);return d!==e&&i.name===d}),a=m?._meta?K(m._meta):void 0,t[10]=h,t[11]=g.tools,t[12]=e,t[13]=a,t[14]=m):(e=t[12],a=t[13],m=t[14]);const s=a;if(!m||!s){let i;return t[15]!==e?(i=A.jsx("div",{className:"flex items-center justify-center h-full w-full",children:A.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',e,'" not found or has no UI']})}),t[15]=e,t[16]=i):i=t[16],i}let c;return t[17]!==o||t[18]!==n||t[19]!==r||t[20]!==p.id||t[21]!==s||t[22]!==m?(c=A.jsx(W,{client:n,resourceURI:s,tool:m,connectionId:r,orgId:p.id,args:o}),t[17]=o,t[18]=n,t[19]=r,t[20]=p.id,t[21]=s,t[22]=m,t[23]=c):c=t[23],c}export{$e as AppViewContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as S,j as r}from"./index-DmjWDqcd.js";import{I as T}from"./input-BlaLo4Ee.js";import{L as C}from"./label-GEC2UjFS.js";import{T as L}from"./textarea-DzC7ppsf.js";import{au as A,av as R,at as D,aw as J,ax as K}from"./index-DL5xoOQh.js";import{u as M,s as P}from"./primitives-DikyHxBV.js";import"./index-D3mRtkEB.js";import"./SwitchHorizontal01-CtPAye2M.js";import"./chat-context-Ba1J4Wbr.js";import"./hooks-tDbCB3C5.js";import"./use-mcp-client-NDJy9UEP.js";import"./auth-CqOhN4mO.js";import"./decopilot-sse-pool-BR9ewfWR.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-DQxIBquV.js";import"./use-collections-C6o5d0Mn.js";import"./use-ai-providers-DnoPML_E.js";import"./studio-tools-BWRE75AX.js";import"./use-decopilot-events-DavYF-aF.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-rqcqUUeR.js";import"./scroll-area-B8CDvPWi.js";import"./agent-icon-Ba-0ZYgG.js";import"./AlertCircle-HztvGgEK.js";import"./Tool01-Dc5WA1H4.js";import"./Settings02-HJQMPAnK.js";import"./XCircle-BEhXc7sQ.js";import"./ArrowUpRight-CD45Pqa3.js";import"./ZapSquare-CmmJkOPb.js";import"./Users03-B7auzTEh.js";import"./CheckCircle-B93tZkib.js";import"./ChevronUp-DLoyITzq.js";import"./ChevronDown-BHp2n33E.js";import"./ChevronLeft-CkLGnzyI.js";import"./ChevronRight-HkVZWjVD.js";import"./DotsVertical-DBVnta3o.js";import"./Stars02-CO1akjaP.js";import"./Eye-BuXBYPNx.js";import"./ZoomOut-9WiOjKDc.js";import"./Globe01-DbyYsbkQ.js";import"./FilterLines-JdWf41nd.js";import"./Star01-BLuwEqBm.js";import"./Globe04-ht6-fzwU.js";import"./HardDrive-QsbiOkra.js";import"./Key01-B-rzooWI.js";import"./LayoutLeft-CvZZnjM_.js";import"./LinkExternal01-C75h4nTA.js";import"./Monitor01-C751a6VH.js";import"./Sun-DGf33qzc.js";import"./Palette-Cw4TmFXF.js";import"./Play-BaPiITj6.js";import"./Plus-cqzweyhV.js";import"./SearchLg-BgcbIGrG.js";import"./SearchMd-B_E38g9S.js";import"./Shield01-CYOeouzJ.js";import"./Stars01-bmKEIBXR.js";import"./Trash01-Dn19EDIc.js";import"./Upload01-AmIm4zQN.js";import"./User01-CYnD1B0h.js";import"./Users01-B3f8K1I8.js";import"./XClose-BaODJMh0.js";import"./X-BJ5AK9_B.js";import"./Zap-CDSogr5w.js";import"./use-clock-tick-DfB4yM8e.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DByELpSB.js";import"./tooltip-Cr9AJTu1.js";import"./file-type-icon-B1XEm_9k.js";import"./dialog-onqVrhoh.js";import"./use-mobile-C1ok2Oda.js";import"./content-blocks-o63cs2vh.js";import"./types-DIYYFrZY.js";import"./shell-layout-CdseotG7.js";import"./avatar-DUFWGs9Z.js";import"./required-auth-layout-CykGSzYq.js";import"./use-org-sso-DXOaOrbn.js";import"./sheet-X3VztLnq.js";import"./integration-icon-BF4ETuj8.js";import"./use-navigate-to-agent-GB89TSmS.js";import"./use-connection-RPVug9uL.js";import"./use-mcp-prompts-ziW0oQXD.js";import"./form-Dvd73W2C.js";import"./select-ySr8WoR1.js";import"./drawer-D6-83PZ_.js";import"./collection-search-D2jsOcE8.js";import"./tabs-C77-FnFK.js";import"./toggle-group-DUz2fIQy.js";import"./sortable.esm-Ctxa79RM.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CEtBve6r.js";import"./use-registry-connections-BHtQ89zr.js";import"./useInfiniteQuery-BiSAb_zK.js";import"./use-infinite-scroll-BmnUwDlC.js";import"./extract-connection-data-Dk45baha.js";import"./card-DuZccs_2.js";import"./collection-tabs-BlI5WHJs.js";import"./badge-ULvYE549.js";import"./connection-form-helpers-DtWH2w6r.js";import"./authenticate-and-persist-oauth-BkWGH7gY.js";import"./mcp-oauth-sGspCuYg.js";import"./useSuspenseInfiniteQuery-9J-jWStM.js";import"./connect-desktop-dialog-DPJKYCn-.js";import"./decopilot-Y0nnLngo.js";import"./checkbox-CZumSc8B.js";import"./skeleton-DknPHMRJ.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-ysOtzM09.js";import"./popover-BxWSrnHV.js";import"./command-ClUS1KMM.js";import"./index--njjOK24.js";import"./use-org-fs-C4An_fXX.js";import"./dropdown-menu-D9g8Sl4X.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-yeVUNOcg.js";import"./empty-state-0bsCiepl.js";import"./toolbar-1nBak56S.js";import"./preview-dialog-B6mTIXuI.js";import"./index-1nPke5TY.js";import"./use-mcp-tools-ByN1fg_5.js";import"./use-capability-CDOjpxJe.js";import"./shell-route-loading-DNSXVK6N.js";import"./tools-list-CTCIGteU.js";import"./alert-dialog-Bqe6OAIL.js";import"./switch-DR4CkZQD.js";import"./use-debounced-autosave-D9laFBFB.js";import"./index-DrUwfEHA.js";import"./sidebar-H8VlLCcE.js";import"./search-input-L82tU3Bd.js";import"./github-repo-picker-CB-ypGEp.js";import"./use-debounced-value-Bs78etny.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-CQoqzufN.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-1VKSbXaL.js";import"./automation-runs-DIDLqvYF.js";import"./table-C4Cy5HHY.js";import"./use-members-CqCv95kS.js";import"./use-org-auth-client-a0tV0I4a.js";import"./task-status-DIimAguz.js";import"./use-automations-B4dRXrYb.js";import"./use-file-configs-YQp2GWKp.js";import"./monaco-editor-BKh1966p.js";import"./select-model-DdjL4UVJ.js";import"./automation-list-row-CjVzmIPj.js";const $={authors:[{key:"name",label:"Name",widget:"text"},{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"}]},q={authors:"Author"};function Ir(B){const t=S.c(34),{orgSlug:v,virtualMcpId:j,branch:w,kind:p,blockKey:g,block:f}=B;let y;t[0]!==w||t[1]!==v||t[2]!==j?(y={orgSlug:v,virtualMcpId:j,branch:w},t[0]=w,t[1]=v,t[2]=j,t[3]=y):y=t[3];const m=A(y);let d;t[4]!==f||t[5]!==p?(d=R(f,p),t[4]=f,t[5]=p,t[6]=d):d=t[6];const F=d;let h;t[7]!==g||t[8]!==p||t[9]!==m?(h=e=>{m.mutate({blockKey:g,data:J(g,p,e)})},t[7]=g,t[8]=p,t[9]=m,t[10]=h):h=t[10];const[i,E]=M(F,h);let k;t[11]!==i||t[12]!==E?(k=(e,o)=>E({...i,[e]:o}),t[11]=i,t[12]=E,t[13]=k):k=t[13];const a=k,N=q[p];let s;t[14]!==N?(s=r.jsx("span",{className:"text-sm font-medium",children:N}),t[14]=N,t[15]=s):s=t[15];let l;t[16]!==m.isError||t[17]!==m.isPending?(l=r.jsx(D,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=l):l=t[18];let n;t[19]!==s||t[20]!==l?(n=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[s,l]}),t[19]=s,t[20]=l,t[21]=n):n=t[21];const I=$[p];let c;if(t[22]!==i||t[23]!==a||t[24]!==I){let e;t[26]!==i||t[27]!==a?(e=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(K,{schema:{type:"string",format:"image-uri",title:o.label},value:i[o.key],onChange:u=>a(o.key,u),path:o.key,label:o.label}):r.jsxs(r.Fragment,{children:[r.jsx(C,{htmlFor:o.key,children:o.label}),o.widget==="textarea"?r.jsx(L,{id:o.key,value:P(i[o.key]),onChange:u=>a(o.key,u.target.value),rows:3}):r.jsx(T,{id:o.key,value:P(i[o.key]),placeholder:o.placeholder,onChange:u=>a(o.key,u.target.value),className:"h-10"})]})},o.key),t[26]=i,t[27]=a,t[28]=e):e=t[28],c=I.map(e),t[22]=i,t[23]=a,t[24]=I,t[25]=c}else c=t[25];let x;t[29]!==c?(x=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:c})}),t[29]=c,t[30]=x):x=t[30];let b;return t[31]!==x||t[32]!==n?(b=r.jsxs("div",{className:"flex h-full flex-col",children:[n,x]}),t[31]=x,t[32]=n,t[33]=b):b=t[33],b}export{Ir as RecordEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BQTxWcaj.js","assets/index-DmjWDqcd.js","assets/index-1MQY-aKx.css","assets/XCircle-BEhXc7sQ.js","assets/CheckCircle-B93tZkib.js","assets/Settings02-HJQMPAnK.js","assets/use-mcp-client-NDJy9UEP.js","assets/auth-CqOhN4mO.js","assets/useInfiniteQuery-BiSAb_zK.js","assets/use-infinite-scroll-BmnUwDlC.js","assets/studio-tools-BWRE75AX.js","assets/badge-ULvYE549.js","assets/input-BlaLo4Ee.js","assets/dropdown-menu-D9g8Sl4X.js","assets/ChevronUp-DLoyITzq.js","assets/ChevronRight-HkVZWjVD.js","assets/DotsVertical-DBVnta3o.js","assets/table-C4Cy5HHY.js","assets/toggle-group-DUz2fIQy.js","assets/use-view-mode-D7GDuIV9.js","assets/use-mobile-C1ok2Oda.js","assets/FilterLines-JdWf41nd.js","assets/Globe01-DbyYsbkQ.js","assets/SearchMd-B_E38g9S.js","assets/dialog-onqVrhoh.js","assets/X-BJ5AK9_B.js","assets/AlertCircle-HztvGgEK.js","assets/Upload01-AmIm4zQN.js","assets/alert-dialog-Bqe6OAIL.js","assets/card-DuZccs_2.js","assets/Trash01-Dn19EDIc.js","assets/label-GEC2UjFS.js","assets/select-ySr8WoR1.js","assets/tooltip-Cr9AJTu1.js","assets/ChevronDown-BHp2n33E.js","assets/switch-DR4CkZQD.js","assets/textarea-DzC7ppsf.js","assets/checkbox-CZumSc8B.js","assets/Eye-BuXBYPNx.js","assets/LinkExternal01-C75h4nTA.js","assets/use-copy-DByELpSB.js","assets/Key01-B-rzooWI.js","assets/Plus-cqzweyhV.js","assets/mcp-oauth-sGspCuYg.js","assets/Play-BaPiITj6.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as s,j as e,r as i,i as a,am as o}from"./index-DmjWDqcd.js";import{R as m}from"./require-capability-B1UdIHXr.js";import"./use-capability-CDOjpxJe.js";import"./access-gate-Bwf2CoM1.js";import"./capability-load-error-Xikv63T6.js";const n=i.lazy(()=>o(()=>import("./registry-layout-BQTxWcaj.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])));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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as T,j as t,r as Q,B as je,i as Se}from"./index-DmjWDqcd.js";import{i as be}from"./ChevronRight-HkVZWjVD.js";import{M as fe}from"./agent-icon-Ba-0ZYgG.js";import{S as ue}from"./scroll-area-B8CDvPWi.js";import{r as Ne,c as ke,u as _e,a as we,i as Ce,d as Te,f as Fe,P as Re,S as Ee}from"./page-seo-form-Cg3EP0Kg.js";import{s as xe,p as ze}from"./index-DL5xoOQh.js";import{a as ge}from"./Tool01-Dc5WA1H4.js";import"./AlertCircle-HztvGgEK.js";import"./SwitchHorizontal01-CtPAye2M.js";import"./Settings02-HJQMPAnK.js";import"./XCircle-BEhXc7sQ.js";import"./ArrowUpRight-CD45Pqa3.js";import"./ZapSquare-CmmJkOPb.js";import"./Users03-B7auzTEh.js";import"./CheckCircle-B93tZkib.js";import"./ChevronUp-DLoyITzq.js";import"./ChevronDown-BHp2n33E.js";import"./ChevronLeft-CkLGnzyI.js";import"./DotsVertical-DBVnta3o.js";import"./Stars02-CO1akjaP.js";import"./Eye-BuXBYPNx.js";import"./ZoomOut-9WiOjKDc.js";import"./Globe01-DbyYsbkQ.js";import"./FilterLines-JdWf41nd.js";import"./Star01-BLuwEqBm.js";import"./Globe04-ht6-fzwU.js";import"./HardDrive-QsbiOkra.js";import"./Key01-B-rzooWI.js";import"./LayoutLeft-CvZZnjM_.js";import"./LinkExternal01-C75h4nTA.js";import"./Monitor01-C751a6VH.js";import"./Sun-DGf33qzc.js";import"./Palette-Cw4TmFXF.js";import"./Play-BaPiITj6.js";import"./Plus-cqzweyhV.js";import"./SearchLg-BgcbIGrG.js";import"./SearchMd-B_E38g9S.js";import"./Shield01-CYOeouzJ.js";import"./Stars01-bmKEIBXR.js";import"./Trash01-Dn19EDIc.js";import"./Upload01-AmIm4zQN.js";import"./User01-CYnD1B0h.js";import"./Users01-B3f8K1I8.js";import"./XClose-BaODJMh0.js";import"./X-BJ5AK9_B.js";import"./Zap-CDSogr5w.js";import"./use-clock-tick-DfB4yM8e.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DByELpSB.js";import"./tooltip-Cr9AJTu1.js";import"./file-type-icon-B1XEm_9k.js";import"./dialog-onqVrhoh.js";import"./use-mobile-C1ok2Oda.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-DIYYFrZY.js";import"./use-mcp-client-NDJy9UEP.js";import"./auth-CqOhN4mO.js";import"./chat-context-Ba1J4Wbr.js";import"./hooks-tDbCB3C5.js";import"./decopilot-sse-pool-BR9ewfWR.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-DQxIBquV.js";import"./use-collections-C6o5d0Mn.js";import"./use-ai-providers-DnoPML_E.js";import"./studio-tools-BWRE75AX.js";import"./use-decopilot-events-DavYF-aF.js";import"./use-organization-settings-rqcqUUeR.js";import"./shell-layout-CdseotG7.js";import"./avatar-DUFWGs9Z.js";import"./required-auth-layout-CykGSzYq.js";import"./use-org-sso-DXOaOrbn.js";import"./sheet-X3VztLnq.js";import"./integration-icon-BF4ETuj8.js";import"./use-navigate-to-agent-GB89TSmS.js";import"./use-connection-RPVug9uL.js";import"./use-mcp-prompts-ziW0oQXD.js";import"./form-Dvd73W2C.js";import"./label-GEC2UjFS.js";import"./input-BlaLo4Ee.js";import"./select-ySr8WoR1.js";import"./switch-DR4CkZQD.js";import"./index-D3mRtkEB.js";import"./drawer-D6-83PZ_.js";import"./collection-search-D2jsOcE8.js";import"./tabs-C77-FnFK.js";import"./toggle-group-DUz2fIQy.js";import"./sortable.esm-Ctxa79RM.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CEtBve6r.js";import"./use-registry-connections-BHtQ89zr.js";import"./useInfiniteQuery-BiSAb_zK.js";import"./use-infinite-scroll-BmnUwDlC.js";import"./extract-connection-data-Dk45baha.js";import"./card-DuZccs_2.js";import"./collection-tabs-BlI5WHJs.js";import"./badge-ULvYE549.js";import"./textarea-DzC7ppsf.js";import"./connection-form-helpers-DtWH2w6r.js";import"./authenticate-and-persist-oauth-BkWGH7gY.js";import"./mcp-oauth-sGspCuYg.js";import"./useSuspenseInfiniteQuery-9J-jWStM.js";import"./connect-desktop-dialog-DPJKYCn-.js";import"./decopilot-Y0nnLngo.js";import"./checkbox-CZumSc8B.js";import"./skeleton-DknPHMRJ.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-ysOtzM09.js";import"./popover-BxWSrnHV.js";import"./command-ClUS1KMM.js";import"./index--njjOK24.js";import"./use-org-fs-C4An_fXX.js";import"./dropdown-menu-D9g8Sl4X.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-yeVUNOcg.js";import"./empty-state-0bsCiepl.js";import"./toolbar-1nBak56S.js";import"./preview-dialog-B6mTIXuI.js";import"./index-1nPke5TY.js";import"./use-mcp-tools-ByN1fg_5.js";import"./use-capability-CDOjpxJe.js";import"./shell-route-loading-DNSXVK6N.js";import"./tools-list-CTCIGteU.js";import"./alert-dialog-Bqe6OAIL.js";import"./use-debounced-autosave-D9laFBFB.js";import"./index-DrUwfEHA.js";import"./sidebar-H8VlLCcE.js";import"./search-input-L82tU3Bd.js";import"./github-repo-picker-CB-ypGEp.js";import"./use-debounced-value-Bs78etny.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-CQoqzufN.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-1VKSbXaL.js";import"./automation-runs-DIDLqvYF.js";import"./table-C4Cy5HHY.js";import"./use-members-CqCv95kS.js";import"./use-org-auth-client-a0tV0I4a.js";import"./task-status-DIimAguz.js";import"./use-automations-B4dRXrYb.js";import"./use-file-configs-YQp2GWKp.js";import"./monaco-editor-BKh1966p.js";import"./select-model-DdjL4UVJ.js";import"./automation-list-row-CjVzmIPj.js";function U(n){return typeof n=="string"&&n.trim()?n:void 0}function he(n,e){if(n){if(e)try{const i=new URL(n,e).href;return xe(i)}catch{return}return xe(n)}}function Pe(n){if(!n)return{};const e=U(n.title),i=U(n.titleTemplate);return{title:e&&i?.includes("%s")?i.replace(/%s/g,e):e,description:U(n.description),image:U(n.image),favicon:U(n.favicon)}}function Oe(n){if(!n)return"example.com";try{return new URL(n).host}catch{return"example.com"}}const Z="Your page title",ee="Your meta description will appear here.",Le=[{id:"google",label:"Google",color:"#4285F4",layout:"search"},{id:"facebook",label:"Facebook",color:"#1877F2",layout:"card"},{id:"twitter",label:"X (Twitter)",color:"#0f1419",layout:"card"},{id:"linkedin",label:"LinkedIn",color:"#0A66C2",layout:"card"},{id:"whatsapp",label:"WhatsApp",color:"#25D366",layout:"chat"},{id:"telegram",label:"Telegram",color:"#229ED9",layout:"chat"},{id:"slack",label:"Slack",color:"#611f69",layout:"attachment"},{id:"discord",label:"Discord",color:"#5865F2",layout:"attachment"}];function pe(n){const e=T.c(10),{src:i,className:r,iconSize:h}=n,a=h===void 0?20:h;if(i){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let p;return e[1]!==r||e[2]!==i?(p=t.jsx("img",{src:i,alt:"",referrerPolicy:"no-referrer",className:r,style:m}),e[1]=r,e[2]=i,e[3]=p):p=e[3],p}let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=s):s=e[4];let o;e[5]!==a?(o=t.jsx(ge,{size:a}),e[5]=a,e[6]=o):o=e[6];let l;return e[7]!==r||e[8]!==o?(l=t.jsx("div",{className:r,style:s,children:o}),e[7]=r,e[8]=o,e[9]=l):l=e[9],l}function $e(n){const e=T.c(27),{seo:i,host:r,path:h}=n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={background:"#fff",border:"1px solid #dadce0"},e[0]=a):a=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f1f3f4"},e[1]=s):s=e[1];let o;e[2]!==i.favicon?(o=t.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:s,children:i.favicon?t.jsx("img",{src:i.favicon,alt:"",className:"size-full object-cover"}):t.jsx(ge,{size:12,color:"#9aa0a6"})}),e[2]=i.favicon,e[3]=o):o=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={color:"#202124"},e[4]=l):l=e[4];let m;e[5]!==r?(m=t.jsx("div",{className:"truncate text-[13px] leading-tight",style:l,children:r}),e[5]=r,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#4d5156"},e[7]=p):p=e[7];let d;e[8]!==r||e[9]!==h?(d=t.jsxs("div",{className:"truncate text-[12px] leading-tight",style:p,children:[r,h]}),e[8]=r,e[9]=h,e[10]=d):d=e[10];let c;e[11]!==m||e[12]!==d?(c=t.jsxs("div",{className:"min-w-0",children:[m,d]}),e[11]=m,e[12]=d,e[13]=c):c=e[13];let g;e[14]!==o||e[15]!==c?(g=t.jsxs("div",{className:"flex items-center gap-2",children:[o,c]}),e[14]=o,e[15]=c,e[16]=g):g=e[16];let f;e[17]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#1a0dab"},e[17]=f):f=e[17];const x=i.title??Z;let u;e[18]!==x?(u=t.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:f,children:x}),e[18]=x,e[19]=u):u=e[19];let j;e[20]===Symbol.for("react.memo_cache_sentinel")?(j={color:"#4d5156"},e[20]=j):j=e[20];const v=i.description??ee;let y;e[21]!==v?(y=t.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:j,children:v}),e[21]=v,e[22]=y):y=e[22];let S;return e[23]!==u||e[24]!==y||e[25]!==g?(S=t.jsxs("div",{className:"rounded-lg p-3 text-left",style:a,children:[g,u,y]}),e[23]=u,e[24]=y,e[25]=g,e[26]=S):S=e[26],S}function De(n){const e=T.c(20),{seo:i,host:r}=n;let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h={background:"#fff",border:"1px solid #e2e8f0"},e[0]=h):h=e[0];let a;e[1]!==i.image?(a=t.jsx(pe,{src:i.image,className:"h-40 w-full"}),e[1]=i.image,e[2]=a):a=e[2];let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s={borderTop:"1px solid #e2e8f0"},e[3]=s):s=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o={color:"#8a9099"},e[4]=o):o=e[4];let l;e[5]!==r?(l=t.jsx("div",{className:"truncate text-[11px]",style:o,children:r}),e[5]=r,e[6]=l):l=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#1c2024"},e[7]=m):m=e[7];const p=i.title??Z;let d;e[8]!==p?(d=t.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:m,children:p}),e[8]=p,e[9]=d):d=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[10]=c):c=e[10];const g=i.description??ee;let f;e[11]!==g?(f=t.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:g}),e[11]=g,e[12]=f):f=e[12];let x;e[13]!==f||e[14]!==l||e[15]!==d?(x=t.jsxs("div",{className:"px-3 py-2",style:s,children:[l,d,f]}),e[13]=f,e[14]=l,e[15]=d,e[16]=x):x=e[16];let u;return e[17]!==x||e[18]!==a?(u=t.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:h,children:[a,x]}),e[17]=x,e[18]=a,e[19]=u):u=e[19],u}function Ie(n){const e=T.c(23),{seo:i,host:r,accent:h}=n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={background:"#f0f2f5"},e[0]=a):a=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:{color:"#3b4045"},children:"Here's a post you might write with the link of your website:"}),e[1]=s):s=e[1];const o=`3px solid ${h}`;let l;e[2]!==o?(l={background:"#fff",borderLeft:o},e[2]=o,e[3]=l):l=e[3];let m;e[4]!==i.image?(m=t.jsx(pe,{src:i.image,className:"h-28 w-full",iconSize:18}),e[4]=i.image,e[5]=m):m=e[5];let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#1c2024"},e[6]=p):p=e[6];const d=i.title??Z;let c;e[7]!==d?(c=t.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:p,children:d}),e[7]=d,e[8]=c):c=e[8];let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g={color:"#60666c"},e[9]=g):g=e[9];const f=i.description??ee;let x;e[10]!==f?(x=t.jsx("div",{className:"line-clamp-2 text-[11px]",style:g,children:f}),e[10]=f,e[11]=x):x=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#8a9099"},e[12]=u):u=e[12];let j;e[13]!==r?(j=t.jsx("div",{className:"mt-0.5 text-[10px]",style:u,children:r}),e[13]=r,e[14]=j):j=e[14];let v;e[15]!==x||e[16]!==j||e[17]!==c?(v=t.jsxs("div",{className:"px-2.5 py-1.5",children:[c,x,j]}),e[15]=x,e[16]=j,e[17]=c,e[18]=v):v=e[18];let y;return e[19]!==v||e[20]!==l||e[21]!==m?(y=t.jsxs("div",{className:"rounded-lg p-2 text-left",style:a,children:[s,t.jsxs("div",{className:"overflow-hidden rounded-md",style:l,children:[m,v]})]}),e[19]=v,e[20]=l,e[21]=m,e[22]=y):y=e[22],y}function Ae(n){const e=T.c(33),{seo:i,host:r,accent:h,dark:a}=n,s=a?"#2b2d31":"#fff",o=a?"#00a8fc":"#1264a3",l=a?"#dbdee1":"#3b4045",m=a?"#949ba4":"#8a9099",p=a?"none":"1px solid #e2e8f0";let d;e[0]!==s||e[1]!==p?(d={background:s,border:p},e[0]=s,e[1]=p,e[2]=d):d=e[2];const c=`3px solid ${h}`;let g;e[3]!==c?(g={borderLeft:c,borderRadius:2},e[3]=c,e[4]=g):g=e[4];let f;e[5]!==m?(f={color:m},e[5]=m,e[6]=f):f=e[6];let x;e[7]!==r||e[8]!==f?(x=t.jsx("div",{className:"text-[10px]",style:f,children:r}),e[7]=r,e[8]=f,e[9]=x):x=e[9];let u;e[10]!==o?(u={color:o},e[10]=o,e[11]=u):u=e[11];const j=i.title??Z;let v;e[12]!==u||e[13]!==j?(v=t.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:u,children:j}),e[12]=u,e[13]=j,e[14]=v):v=e[14];let y;e[15]!==l?(y={color:l},e[15]=l,e[16]=y):y=e[16];const S=i.description??ee;let _;e[17]!==y||e[18]!==S?(_=t.jsx("div",{className:"line-clamp-2 text-[12px]",style:y,children:S}),e[17]=y,e[18]=S,e[19]=_):_=e[19];let N;e[20]!==_||e[21]!==x||e[22]!==v?(N=t.jsxs("div",{className:"min-w-0 flex-1",children:[x,v,_]}),e[20]=_,e[21]=x,e[22]=v,e[23]=N):N=e[23];let b;e[24]!==i.image?(b=t.jsx(pe,{src:i.image,className:"size-14 shrink-0 rounded",iconSize:16}),e[24]=i.image,e[25]=b):b=e[25];let k;e[26]!==N||e[27]!==b||e[28]!==g?(k=t.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:g,children:[N,b]}),e[26]=N,e[27]=b,e[28]=g,e[29]=k):k=e[29];let C;return e[30]!==k||e[31]!==d?(C=t.jsx("div",{className:"rounded-lg p-2.5 text-left",style:d,children:k}),e[30]=k,e[31]=d,e[32]=C):C=e[32],C}function Be(n){const e=T.c(17),{platform:i,seo:r,host:h,path:a}=n;let s;e[0]!==h||e[1]!==a||e[2]!==i.color||e[3]!==i.id||e[4]!==i.layout||e[5]!==r?(s=i.layout==="search"?t.jsx($e,{seo:r,host:h,path:a}):i.layout==="card"?t.jsx(De,{seo:r,host:h,path:a}):i.layout==="chat"?t.jsx(Ie,{seo:r,host:h,path:a,accent:i.color}):t.jsx(Ae,{seo:r,host:h,path:a,accent:i.color,dark:i.id==="discord"}),e[0]=h,e[1]=a,e[2]=i.color,e[3]=i.id,e[4]=i.layout,e[5]=r,e[6]=s):s=e[6];const o=s;let l;e[7]!==i.color?(l=t.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:i.color}}),e[7]=i.color,e[8]=l):l=e[8];let m;e[9]!==i.label?(m=t.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i.label}),e[9]=i.label,e[10]=m):m=e[10];let p;e[11]!==l||e[12]!==m?(p=t.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[l,m]}),e[11]=l,e[12]=m,e[13]=p):p=e[13];let d;return e[14]!==o||e[15]!==p?(d=t.jsxs("div",{children:[p,o]}),e[14]=o,e[15]=p,e[16]=d):d=e[16],d}function Ue(n){const e=T.c(17),{seo:i,url:r,path:h}=n,a=h===void 0?"/":h;let s,o,l;if(e[0]!==i||e[1]!==r){const u=Pe(i);s=u,o=he(u.image,r),l=he(u.favicon,r),e[0]=i,e[1]=r,e[2]=s,e[3]=o,e[4]=l}else s=e[2],o=e[3],l=e[4];let m;e[5]!==s||e[6]!==o||e[7]!==l?(m={...s,image:o,favicon:l},e[5]=s,e[6]=o,e[7]=l,e[8]=m):m=e[8];const p=m;let d;e[9]!==r?(d=Oe(r),e[9]=r,e[10]=d):d=e[10];const c=d,g=a==="/"?"":a;let f;e[11]!==g||e[12]!==c||e[13]!==p?(f=Le.map(u=>t.jsx(Be,{platform:u,seo:p,host:c,path:g},u.id)),e[11]=g,e[12]=c,e[13]=p,e[14]=f):f=e[14];let x;return e[15]!==f?(x=t.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:f}),e[15]=f,e[16]=x):x=e[16],x}function Ri(n){const e=T.c(63),{orgSlug:i,virtualMcpId:r,branch:h,decofile:a,meta:s,target:o,previewBaseUrl:l,onSaved:m,onEditDefaultSeo:p,onBack:d}=n,c=Ne(a,o,s),g=c?.seoData,f=o.kind==="site"?"site":o.pageKey,[x,u]=Q.useState(f),[j,v]=Q.useState(null),[y,S]=Q.useState(0),[_,N]=Q.useState(void 0);x!==f&&(u(f),v(null),N(void 0),S(Me));const{persistSeo:b,persistRawSeo:k,flush:C,isPending:te}=ke({orgSlug:i,virtualMcpId:r,branch:h,target:o,resolved:c,onSaved:m}),K=o.kind==="page",ve=K?c?.rawSeoData:void 0,B=_!==void 0?_:ve,ye=K?_e(B)??void 0:void 0,w=j??ye??g??{},F=c?we(w,c):null,z=F&&(!K||Ce(B))?ze(F,s):null;let M;e[0]!==s?(M=Te(s),e[0]=s,e[1]=M):M=e[1];const oe=M;let R,G;e[2]!==a||e[3]!==w||e[4]!==s||e[5]!==o.kind?(R=o.kind==="page"?Fe(a,s)?.seoData??{}:{},G=o.kind==="page"?Ve(R,w):w,e[2]=a,e[3]=w,e[4]=s,e[5]=o.kind,e[6]=R,e[7]=G):(R=e[6],G=e[7]);const ie=G;let V;e[8]!==b||e[9]!==c||e[10]!==v?(V=E=>{if(!c)return;const de=E;v(de),b(de)},e[8]=b,e[9]=c,e[10]=v,e[11]=V):V=e[11];const se=V;let Y;e[12]!==v?(Y=()=>v(null),e[12]=v,e[13]=Y):Y=e[13];const le=Y;let H;e[14]!==S?(H=()=>S(Ke),e[14]=S,e[15]=H):H=e[15];const re=H;let W;e[16]!==C||e[17]!==d?(W=()=>{C(),d?.()},e[16]=C,e[17]=d,e[18]=W):W=e[18];const ae=W,P=o.kind==="page"?o.path:"/";let X;e[19]!==P||e[20]!==l||e[21]!==o.kind?(X=o.kind==="page"&&l?Ge(P,l):l??null,e[19]=P,e[20]=l,e[21]=o.kind,e[22]=X):X=e[22];const ne=X,ce=o.kind==="site"?"No site-level SEO block found.":c?"SEO schema not found for this page.":"Could not load page SEO.",q=K&&c,me=o.kind==="site"&&c&&z;let O;e[23]!==ae||e[24]!==o.kind||e[25]!==o.pageName?(O=o.kind==="page"?t.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[t.jsx("button",{type:"button",onClick:ae,title:o.pageName,className:"min-w-0 truncate rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:o.pageName}),t.jsx(be,{className:"size-3 shrink-0 text-muted-foreground/60"}),t.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx(fe,{size:16,className:"shrink-0 text-muted-foreground"}),t.jsx("span",{className:"text-sm font-medium",children:"Default SEO"}),t.jsx("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:"· applied to every page unless overridden"})]}),e[23]=ae,e[24]=o.kind,e[25]=o.pageName,e[26]=O):O=e[26];let L;e[27]!==te?(L=te&&t.jsx(Se,{size:14,className:"animate-spin text-muted-foreground"}),e[27]=te,e[28]=L):L=e[28];let $;e[29]!==p||e[30]!==o.kind?($=o.kind==="page"&&p&&t.jsxs(je,{type:"button",variant:"outline",size:"sm",onClick:p,children:[t.jsx(fe,{size:14}),"Edit default SEO"]}),e[29]=p,e[30]=o.kind,e[31]=$):$=e[31];let D;e[32]!==$||e[33]!==L?(D=t.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[L,$]}),e[32]=$,e[33]=L,e[34]=D):D=e[34];let I;e[35]!==D||e[36]!==O?(I=t.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[O,D]}),e[35]=D,e[36]=O,e[37]=I):I=e[37];let A;e[38]!==F||e[39]!==re||e[40]!==le||e[41]!==oe||e[42]!==B||e[43]!==w||e[44]!==ce||e[45]!==y||e[46]!==se||e[47]!==P||e[48]!==k||e[49]!==b||e[50]!==ie||e[51]!==ne||e[52]!==c||e[53]!==z||e[54]!==v||e[55]!==N||e[56]!==q||e[57]!==me||e[58]!==R?(A=!c||!q&&!me?t.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ce}):t.jsxs("div",{className:"flex min-h-0 flex-1",children:[t.jsx(ue,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"px-5 py-4",children:q?t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:"Empty fields inherit the default SEO. The preview shows the resolved result."}),t.jsx(Re,{rawSeo:B,innerSeo:w,defaultResolveType:oe,seoSchema:z,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:y,siteDefaultSeo:R,onPersistRaw:E=>{N(E),k(E)},onInnerChange:E=>{v(E),b(E)},onClearForm:le,onBumpFormKey:re})]}):z&&F&&t.jsx(Ee,{schema:z,resolveType:F,value:w,formResetKey:y,onChange:se})})}),t.jsx(ue,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"@container px-5 py-4",children:t.jsx(Ue,{seo:ie,url:ne,path:P})})})]}),e[38]=F,e[39]=re,e[40]=le,e[41]=oe,e[42]=B,e[43]=w,e[44]=ce,e[45]=y,e[46]=se,e[47]=P,e[48]=k,e[49]=b,e[50]=ie,e[51]=ne,e[52]=c,e[53]=z,e[54]=v,e[55]=N,e[56]=q,e[57]=me,e[58]=R,e[59]=A):A=e[59];let J;return e[60]!==I||e[61]!==A?(J=t.jsxs("div",{className:"flex h-full w-full flex-col",children:[I,A]}),e[60]=I,e[61]=A,e[62]=J):J=e[62],J}function Ke(n){return n+1}function Me(n){return n+1}function Ge(n,e){try{return new URL(n,e).href}catch{return e}}function Ve(n,e){const i=e.__resolveType,r=n.__resolveType;if(typeof i=="string"&&typeof r=="string"&&i!==r)return{...e};const h={...n};for(const[a,s]of Object.entries(e))a!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(h[a]=s));return h}export{Ri as SeoEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BQTxWcaj.js","assets/index-DmjWDqcd.js","assets/index-1MQY-aKx.css","assets/XCircle-BEhXc7sQ.js","assets/CheckCircle-B93tZkib.js","assets/Settings02-HJQMPAnK.js","assets/use-mcp-client-NDJy9UEP.js","assets/auth-CqOhN4mO.js","assets/useInfiniteQuery-BiSAb_zK.js","assets/use-infinite-scroll-BmnUwDlC.js","assets/studio-tools-BWRE75AX.js","assets/badge-ULvYE549.js","assets/input-BlaLo4Ee.js","assets/dropdown-menu-D9g8Sl4X.js","assets/ChevronUp-DLoyITzq.js","assets/ChevronRight-HkVZWjVD.js","assets/DotsVertical-DBVnta3o.js","assets/table-C4Cy5HHY.js","assets/toggle-group-DUz2fIQy.js","assets/use-view-mode-D7GDuIV9.js","assets/use-mobile-C1ok2Oda.js","assets/FilterLines-JdWf41nd.js","assets/Globe01-DbyYsbkQ.js","assets/SearchMd-B_E38g9S.js","assets/dialog-onqVrhoh.js","assets/X-BJ5AK9_B.js","assets/AlertCircle-HztvGgEK.js","assets/Upload01-AmIm4zQN.js","assets/alert-dialog-Bqe6OAIL.js","assets/card-DuZccs_2.js","assets/Trash01-Dn19EDIc.js","assets/label-GEC2UjFS.js","assets/select-ySr8WoR1.js","assets/tooltip-Cr9AJTu1.js","assets/ChevronDown-BHp2n33E.js","assets/switch-DR4CkZQD.js","assets/textarea-DzC7ppsf.js","assets/checkbox-CZumSc8B.js","assets/Eye-BuXBYPNx.js","assets/LinkExternal01-C75h4nTA.js","assets/use-copy-DByELpSB.js","assets/Key01-B-rzooWI.js","assets/Plus-cqzweyhV.js","assets/mcp-oauth-sGspCuYg.js","assets/Play-BaPiITj6.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as m,b as n,e as c,j as t,i as p,r as l,am as f}from"./index-DmjWDqcd.js";import{R as u}from"./require-capability-B1UdIHXr.js";import"./use-capability-CDOjpxJe.js";import"./access-gate-Bwf2CoM1.js";import"./capability-load-error-Xikv63T6.js";const g=l.lazy(()=>f(()=>import("./registry-layout-BQTxWcaj.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])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(p,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as i,l as p,j as r,r as d,e as N,aQ as T,G as S,F as $,H as y}from"./index-DmjWDqcd.js";import{n as w}from"./ChevronLeft-CkLGnzyI.js";import{i as C}from"./ChevronRight-HkVZWjVD.js";function j(t){const e=i.c(14);let s,o,l,n,c;e[0]!==t?({active:s,className:o,ref:n,type:c,...l}=t,e[0]=t,e[1]=s,e[2]=o,e[3]=l,e[4]=n,e[5]=c):(s=e[1],o=e[2],l=e[3],n=e[4],c=e[5]);const f=c===void 0?"button":c,h=s?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground";let u;e[6]!==o||e[7]!==h?(u=p("relative flex size-10 md:size-7 shrink-0 items-center justify-center rounded-md transition-colors","max-md:[&_svg]:size-5","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",h,o),e[6]=o,e[7]=h,e[8]=u):u=e[8];let g;return e[9]!==l||e[10]!==n||e[11]!==u||e[12]!==f?(g=r.jsx("button",{ref:n,type:f,className:u,...l}),e[9]=l,e[10]=n,e[11]=u,e[12]=f,e[13]=g):g=e[13],g}const k=d.createContext(null);function m(){const t=d.use(k);if(!t)throw new Error("Toolbar.* must be used inside <Toolbar>");return t}function v(t){const e=i.c(8),{children:s}=t,[o,l]=d.useState(null),[n,c]=d.useState(null),[f,h]=d.useState(null),[u,g]=d.useState(null);let b;e[0]!==f||e[1]!==u||e[2]!==n||e[3]!==o?(b={togglesEl:o,setTogglesEl:l,tabsEl:n,setTabsEl:c,centerEl:f,setCenterEl:h,rightEl:u,setRightEl:g},e[0]=f,e[1]=u,e[2]=n,e[3]=o,e[4]=b):b=e[4];let x;return e[5]!==s||e[6]!==b?(x=r.jsx(k,{value:b,children:s}),e[5]=s,e[6]=b,e[7]=x):x=e[7],x}function a(t){const e=i.c(2),{children:s}=t;let o;return e[0]!==s?(o=r.jsx(v,{children:r.jsx("div",{className:"flex flex-col h-full min-h-0",children:s})}),e[0]=s,e[1]=o):o=e[1],o}function L(t){const e=i.c(10);let s,o,l;e[0]!==t?({children:s,className:o,...l}=t,e[0]=t,e[1]=s,e[2]=o,e[3]=l):(s=e[1],o=e[2],l=e[3]);let n;e[4]!==o?(n=p("app-titlebar wco-drag shrink-0 grid grid-cols-3 items-center pl-1 pr-2 pt-0.25 h-12 bg-sidebar",o),e[4]=o,e[5]=n):n=e[5];let c;return e[6]!==s||e[7]!==l||e[8]!==n?(c=r.jsx("div",{className:n,...l,children:s}),e[6]=s,e[7]=l,e[8]=n,e[9]=c):c=e[9],c}function _(t){const e=i.c(2),{children:s}=t;let o;return e[0]!==s?(o=r.jsx("div",{className:"flex items-center gap-0.5 min-w-0 justify-self-start",children:s}),e[0]=s,e[1]=o):o=e[1],o}function R(t){const e=i.c(2),{children:s}=t;let o;return e[0]!==s?(o=r.jsx("div",{className:"flex items-center justify-end gap-0.5 min-w-0 justify-self-end",children:s}),e[0]=s,e[1]=o):o=e[1],o}function z(){const t=i.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(j,{onClick:G,"aria-label":"Go back",title:"Go back",children:r.jsx(w,{size:16})}),t[0]=e):e=t[0];let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsxs(r.Fragment,{children:[e,r.jsx(j,{onClick:P,"aria-label":"Go forward",title:"Go forward",children:r.jsx(C,{size:16})})]}),t[1]=s):s=t[1],s}function P(){return window.history.forward()}function G(){return window.history.back()}function B(){const t=i.c(7),s=$().logo??y,o=typeof s=="string"?s:s.light,l=typeof s=="string"?s:s.dark;let n;t[0]!==o?(n=r.jsx("img",{src:o,alt:"Logo",className:"size-6 object-contain dark:hidden"}),t[0]=o,t[1]=n):n=t[1];let c;t[2]!==l?(c=r.jsx("img",{src:l,alt:"Logo",className:"size-6 object-contain hidden dark:block"}),t[2]=l,t[3]=c):c=t[3];let f;return t[4]!==n||t[5]!==c?(f=r.jsxs("span",{className:"wco-hide flex items-center shrink-0 px-2",children:[n,c]}),t[4]=n,t[5]=c,t[6]=f):f=t[6],f}function E(){const t=i.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(d.Suspense,{fallback:r.jsx("span",{className:"wco-hide shrink-0 size-6 mx-2"}),children:r.jsx(B,{})}),t[0]=e):e=t[0],e}function F(){const t=i.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org"},t[0]=e):e=t[0];const{org:s}=N(e);let o;t[1]!==s?(o={org:s},t[1]=s,t[2]=o):o=t[2];let l;t[3]===Symbol.for("react.memo_cache_sentinel")?(l=r.jsx(E,{}),t[3]=l):l=t[3];let n;return t[4]!==o?(n=r.jsx(S,{to:"/$org",params:o,"aria-label":"Back to home",title:"Back to home",className:"wco-no-drag flex items-center shrink-0 cursor-pointer pl-1",children:l}),t[4]=o,t[5]=n):n=t[5],n}function H(){const t=i.c(2),{setCenterEl:e}=m();let s;return t[0]!==e?(s=r.jsx("div",{ref:e,className:"min-w-0 flex items-center justify-center gap-2"}),t[0]=e,t[1]=s):s=t[1],s}function I(t){const e=i.c(3),{children:s}=t,{centerEl:o}=m();if(!o)return null;let l;return e[0]!==o||e[1]!==s?(l=T.createPortal(s,o),e[0]=o,e[1]=s,e[2]=l):l=e[2],l}function D(t){const e=i.c(5),{className:s}=t,{setTabsEl:o}=m();let l;e[0]!==s?(l=p("shrink-0 flex items-center",s),e[0]=s,e[1]=l):l=e[1];let n;return e[2]!==o||e[3]!==l?(n=r.jsx("div",{ref:o,className:l}),e[2]=o,e[3]=l,e[4]=n):n=e[4],n}function O(t){const e=i.c(3),{children:s}=t,{tabsEl:o}=m();if(!o)return null;let l;return e[0]!==s||e[1]!==o?(l=T.createPortal(s,o),e[0]=s,e[1]=o,e[2]=l):l=e[2],l}function A(t){const e=i.c(5),{className:s}=t,{setTogglesEl:o}=m();let l;e[0]!==s?(l=p("contents",s),e[0]=s,e[1]=l):l=e[1];let n;return e[2]!==o||e[3]!==l?(n=r.jsx("div",{ref:o,className:l}),e[2]=o,e[3]=l,e[4]=n):n=e[4],n}function Q(t){const e=i.c(3),{children:s}=t,{togglesEl:o}=m();if(!o)return null;let l;return e[0]!==s||e[1]!==o?(l=T.createPortal(s,o),e[0]=s,e[1]=o,e[2]=l):l=e[2],l}function U(){const t=i.c(2),{setRightEl:e}=m();let s;return t[0]!==e?(s=r.jsx("div",{ref:e,className:"flex items-center justify-end gap-0.5 shrink-0"}),t[0]=e,t[1]=s):s=t[1],s}function q(t){const e=i.c(3),{children:s}=t,{rightEl:o}=m();if(!o)return null;let l;return e[0]!==s||e[1]!==o?(l=T.createPortal(s,o),e[0]=s,e[1]=o,e[2]=l):l=e[2],l}a.Provider=v;a.Header=L;a.LeftColumn=_;a.RightColumn=R;a.Nav=z;a.Logo=E;a.LogoLink=F;a.CenterSlot=H;a.Center=I;a.TabsSlot=D;a.Tabs=O;a.TogglesSlot=A;a.Toggles=Q;a.RightSlot=U;a.Right=q;export{j as T,a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./use-infinite-scroll-BmnUwDlC.js";import{cJ as i}from"./index-DmjWDqcd.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./use-infinite-scroll-BmnUwDlC.js";import{cJ as u,aC as n}from"./index-DmjWDqcd.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|