decocms 4.239.0 → 4.239.2
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-BbZbgXRr.js → AlertCircle-CeleFBrs.js} +1 -1
- package/dist/client/assets/{AreaChart-Cnkt2rO0.js → AreaChart-Cr68R9KD.js} +1 -1
- package/dist/client/assets/{ArrowLeft-GIsL96_R.js → ArrowLeft-CwsJ1Sfc.js} +1 -1
- package/dist/client/assets/{ArrowUp-B8ZQ_5fd.js → ArrowUp-PM43ttWN.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-E96pG5Y4.js → ArrowUpRight-C0hTvHTE.js} +1 -1
- package/dist/client/assets/{Check-CB90rOWR.js → Check-BdzjeMXF.js} +1 -1
- package/dist/client/assets/{CheckCircle-D36Maic6.js → CheckCircle-D-nlOrXB.js} +1 -1
- package/dist/client/assets/{ChevronDown-Bx8Y69oK.js → ChevronDown-BOc1-i9L.js} +1 -1
- package/dist/client/assets/{ChevronRight-BU3byqbs.js → ChevronRight-wqbYwiLF.js} +1 -1
- package/dist/client/assets/{ChevronUp-BcB3XW59.js → ChevronUp-IHCmvX3E.js} +1 -1
- package/dist/client/assets/{Copy01-C1SIU7dQ.js → Copy01-DIJvVGQk.js} +1 -1
- package/dist/client/assets/{CreditCard01-D-ct-774.js → CreditCard01-W4m_wy49.js} +1 -1
- package/dist/client/assets/{DotsVertical-Dxmbo9Gl.js → DotsVertical-Bohq38Q1.js} +1 -1
- package/dist/client/assets/{Eye-LnzKDn_l.js → Eye-C5vDWwaK.js} +1 -1
- package/dist/client/assets/{FilterLines-AIqmerRJ.js → FilterLines-C9pmu5SZ.js} +1 -1
- package/dist/client/assets/{Globe01-D-M7ALz4.js → Globe01-DEX4B2yM.js} +1 -1
- package/dist/client/assets/{Globe04-CKB0S8w_.js → Globe04-CDJqKwdP.js} +1 -1
- package/dist/client/assets/{HardDrive-Deu1WGMu.js → HardDrive-BicURFt0.js} +1 -1
- package/dist/client/assets/{Key01-B0QBJ4Qu.js → Key01-CRQOB5O_.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CBvWzVBs.js → LayoutLeft-DZwVeKk1.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BaLmqC7s.js → LinkExternal01-Do6tmctI.js} +1 -1
- package/dist/client/assets/{LockUnlocked01-BvnwwWjO.js → LockUnlocked01-BxK9l3CJ.js} +1 -1
- package/dist/client/assets/{LogOut01-DwiPOTkP.js → LogOut01-DhAdDNkV.js} +1 -1
- package/dist/client/assets/{Monitor01-HfLTb6Ha.js → Monitor01-BKGGKBRj.js} +1 -1
- package/dist/client/assets/{Palette-CJ3pgkMW.js → Palette-5WrpEUaC.js} +1 -1
- package/dist/client/assets/{Play-D__GNZxj.js → Play-Yhg2bDxR.js} +1 -1
- package/dist/client/assets/{Plus-DebJf-LV.js → Plus-CgXuzVCT.js} +1 -1
- package/dist/client/assets/{SearchLg-BmW4WIed.js → SearchLg-CYNvKytJ.js} +1 -1
- package/dist/client/assets/{SearchMd-FuQOpjcf.js → SearchMd-BOeEZKFu.js} +1 -1
- package/dist/client/assets/{Settings02-CcyPrhG-.js → Settings02-CpRid7rG.js} +1 -1
- package/dist/client/assets/{Share07-CcMcxmU_.js → Share07-B14EYmF_.js} +1 -1
- package/dist/client/assets/{Shield01-bn-P8sjw.js → Shield01-DS1CkOm5.js} +1 -1
- package/dist/client/assets/{Stars01-DlatdaOt.js → Stars01-CPDNiFNQ.js} +1 -1
- package/dist/client/assets/{Stars02-BzaS0FDm.js → Stars02-CH68Qhm_.js} +1 -1
- package/dist/client/assets/{Sun-CwoGQQAr.js → Sun-CjcZKPaq.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CiK3Pikg.js → SwitchHorizontal01-DOmwqeXB.js} +1 -1
- package/dist/client/assets/{Tool01-DE8Ezdc1.js → Tool01-BLxK-7k7.js} +1 -1
- package/dist/client/assets/{Tool02--_J-dj-i.js → Tool02-B8GwG_SX.js} +1 -1
- package/dist/client/assets/{Trash01-CrNiAbwH.js → Trash01-COMthlp3.js} +1 -1
- package/dist/client/assets/{TrendUp01-BUMTbs_0.js → TrendUp01-Pa_0KlRB.js} +1 -1
- package/dist/client/assets/{Upload01-CDDvSRRy.js → Upload01-DO7DRGUd.js} +1 -1
- package/dist/client/assets/{User01-CCOAWX6a.js → User01-C2rVZTl-.js} +1 -1
- package/dist/client/assets/{Users01-BNcrVVG5.js → Users01-ClsBMo4K.js} +1 -1
- package/dist/client/assets/{Users03-C6YFSX7v.js → Users03-DP3zwt6-.js} +1 -1
- package/dist/client/assets/{X-D5UcR5HW.js → X-Bfx6rO6W.js} +1 -1
- package/dist/client/assets/{XCircle-CkpCsa8n.js → XCircle-jlAhwcDu.js} +1 -1
- package/dist/client/assets/{XClose-B0INQFzX.js → XClose-DdXn46Em.js} +1 -1
- package/dist/client/assets/{YAxis--qyMzYCa.js → YAxis-C5lX8CaJ.js} +1 -1
- package/dist/client/assets/{Zap-BDRNr0t4.js → Zap-li0rR-RI.js} +1 -1
- package/dist/client/assets/{ZapSquare-mc4RhXIr.js → ZapSquare-Gxca0Ylc.js} +1 -1
- package/dist/client/assets/{access-gate-Ddj0999j.js → access-gate-C8o_OE1N.js} +1 -1
- package/dist/client/assets/{agent-icon-CvLoz0ly.js → agent-icon-BnyLUh_P.js} +1 -1
- package/dist/client/assets/{agents-list-DebR9D-0.js → agents-list-WqvM4PBU.js} +1 -1
- package/dist/client/assets/{ai-providers-BSQwNm5m.js → ai-providers-Cm0Rm1KR.js} +1 -1
- package/dist/client/assets/{alert-CkzGdwPn.js → alert-1MxwzRCP.js} +1 -1
- package/dist/client/assets/{alert-dialog-CDK9edfP.js → alert-dialog-Cqq7FgQj.js} +1 -1
- package/dist/client/assets/{api-keys-DbZAsJ0X.js → api-keys-BmVwKDo4.js} +1 -1
- package/dist/client/assets/{app-editor-GfIpWo2_.js → app-editor-BDtjnvii.js} +1 -1
- package/dist/client/assets/{auth-catchall-PI7fL24-.js → auth-catchall-CYO83hyU.js} +1 -1
- package/dist/client/assets/{auth-entry-B_qB2d7q.js → auth-entry-Dc1zlPtG.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DAnQpi31.js → auth-split-layout-C945ZTK3.js} +1 -1
- package/dist/client/assets/{auth-CTZiqSlH.js → auth-tEJ4bybR.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DRisIqKS.js → authenticate-and-persist-oauth-CqRX86RU.js} +1 -1
- package/dist/client/assets/{automation-list-row-BQQ6MzqA.js → automation-list-row-BN46j3bE.js} +1 -1
- package/dist/client/assets/{automation-runs-aW7uTGut.js → automation-runs-nfuxnSim.js} +1 -1
- package/dist/client/assets/{automations-CC9bl33p.js → automations-C9iJneF6.js} +1 -1
- package/dist/client/assets/{avatar-2UWdGHIP.js → avatar-BqAz0FLa.js} +1 -1
- package/dist/client/assets/{badge-Cqva6-Hj.js → badge-D24p8Xxi.js} +1 -1
- package/dist/client/assets/{billing-hWvNr7RI.js → billing-DSz5ucLf.js} +1 -1
- package/dist/client/assets/{block-document-D2TqkC7I.js → block-document-ChYHEJUH.js} +2 -2
- package/dist/client/assets/{buckets-D7Aq5YZw.js → buckets-DyBjeMFW.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-CcTZqoEo.js → bulk-category-panel-tfM9zSbQ.js} +1 -1
- package/dist/client/assets/{capability-load-error-C3ARzCfm.js → capability-load-error-CPQoG_lp.js} +1 -1
- package/dist/client/assets/{card-c9NhAdWZ.js → card-CooN3E-v.js} +1 -1
- package/dist/client/assets/{cards-BR6taBIk.js → cards-CxCBBMfu.js} +1 -1
- package/dist/client/assets/category-editor-CIZoMWm2.js +1 -0
- package/dist/client/assets/{chart-stfZwO68.js → chart-Dtka3CXu.js} +1 -1
- package/dist/client/assets/{chat-context-DBI2vRI8.js → chat-context--S2eGI2t.js} +1 -1
- package/dist/client/assets/{checkbox-hyklVk3G.js → checkbox-BqtDvsR1.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CO0TAtGL.js → cli-auth-success-B6EGxQbP.js} +1 -1
- package/dist/client/assets/{collection-detail-C4RPjdh-.js → collection-detail-DGbcByEY.js} +1 -1
- package/dist/client/assets/{collection-display-button-BgSueojR.js → collection-display-button-B1OCDGvC.js} +1 -1
- package/dist/client/assets/{collection-search-CCbs13s0.js → collection-search-H6c7ia6t.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Ch6XcZqH.js → collection-table-wrapper-CksgkvG8.js} +1 -1
- package/dist/client/assets/{collection-tabs-DlWLdWfZ.js → collection-tabs-BqnoVI6Y.js} +1 -1
- package/dist/client/assets/{command-B53_zYdk.js → command-DhvOaMnH.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-Dw4m_O-a.js → commerce-onboarding-DO7FMttC.js} +1 -1
- package/dist/client/assets/{connect-axaFsyV6.js → connect-C-NmOGr7.js} +1 -1
- package/dist/client/assets/{connection-CsQRb4c2.js → connection-DJ2785KU.js} +1 -1
- package/dist/client/assets/{connection-card-BZIDQRqe.js → connection-card-DSX5zHxO.js} +1 -1
- package/dist/client/assets/{connection-detail-DeOQVYZ6.js → connection-detail-m014gzNI.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-W-FBa7Ll.js → connection-form-helpers-B07wLptq.js} +1 -1
- package/dist/client/assets/{connections-gXxG2Zl-.js → connections-BNQ0Y0h7.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DmfjqIoT.js → decopilot-sse-pool-U92pbu07.js} +1 -1
- package/dist/client/assets/{dialog-B9Vr29s-.js → dialog-C2XtKj4W.js} +1 -1
- package/dist/client/assets/{domain-settings-B0qNZ6Xw.js → domain-settings-D2fweBMx.js} +1 -1
- package/dist/client/assets/{drawer-DsyuTymL.js → drawer-HtUPoolZ.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CiC56tGr.js → dropdown-menu-Buaqq-Fn.js} +1 -1
- package/dist/client/assets/{empty-state-CcXcptku.js → empty-state-Bd3g-2FH.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BO1lFxJI.js → extract-connection-data-V948FMyj.js} +1 -1
- package/dist/client/assets/{file-explorer-BtgYPSUX.js → file-explorer-DKHfXuC4.js} +1 -1
- package/dist/client/assets/{file-type-icon-C4d9Fi6_.js → file-type-icon-BSAnhEu5.js} +1 -1
- package/dist/client/assets/{form-C8NPlYH9.js → form-CMuk1nXb.js} +1 -1
- package/dist/client/assets/{general-CeylrfQ9.js → general-BTyXC0VC.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CLVepDKj.js → github-repo-picker-DjVb6-0i.js} +1 -1
- package/dist/client/assets/{hooks-MRTBu23Z.js → hooks-Cd2G3711.js} +1 -1
- package/dist/client/assets/{index-CuLm1b-m.js → index-BKOwC_zz.js} +1 -1
- package/dist/client/assets/{index-CKpZocQa.js → index-BRjr3L_N.js} +1 -1
- package/dist/client/assets/{index-B7pXsENU.js → index-BaWtU9eb.js} +50 -50
- package/dist/client/assets/{index-m2JX0m2y.js → index-BflbKT0u.js} +1 -1
- package/dist/client/assets/{index-CipvcPHT.js → index-BoSySxnu.js} +1 -1
- package/dist/client/assets/{index-CAoYxLH3.js → index-BphIXXOp.js} +3 -3
- package/dist/client/assets/{index-CBlugTtE.js → index-CPCOiQxX.js} +1 -1
- package/dist/client/assets/{index-CrZO4E6W.js → index-DNa-ZV66.js} +1 -1
- package/dist/client/assets/{index-D9oljluy.js → index-Di0wCO9r.js} +1 -1
- package/dist/client/assets/{index-CZVmkeug.js → index-Dwrgaiv3.js} +1 -1
- package/dist/client/assets/{index-redirect-Bvz7YmlJ.js → index-redirect-CyqcxiJb.js} +1 -1
- package/dist/client/assets/{infra-billing-D1LtS04J.js → infra-billing-B1fwJNOz.js} +1 -1
- package/dist/client/assets/{input-gtw8JtxE.js → input-9TNY2G6W.js} +1 -1
- package/dist/client/assets/{integration-icon-D4tE8VzD.js → integration-icon-CGwCrGIc.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-D9se-Nja.js → invite-member-dialog-BIJfPXUf.js} +1 -1
- package/dist/client/assets/{label-Bo4a917M.js → label-DhJo3WjY.js} +1 -1
- package/dist/client/assets/{layout-DTio-OZv.js → layout-CeWP0gEY.js} +1 -1
- package/dist/client/assets/{login-CCStXz2R.js → login-DxZTpOpk.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DD6omYMT.js → mcp-oauth--A5K-xL8.js} +1 -1
- package/dist/client/assets/{members-DkdmkTG0.js → members-B5PzIuUU.js} +1 -1
- package/dist/client/assets/{monaco-editor-DAxVIfQw.js → monaco-editor-BMLOnDLJ.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Dz8YUFOK.js → monitoring-stats-row-Rpla78Nn.js} +1 -1
- package/dist/client/assets/{multi-select-CnqBp0vj.js → multi-select-Duz2hJ29.js} +1 -1
- package/dist/client/assets/{oauth-callback-C9MmBfEl.js → oauth-callback-Cn0wl-wL.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-IHAda1kE.js → oauth-callback-ai-provider-CvoqVCiX.js} +1 -1
- package/dist/client/assets/{onboarding-CRS5dq1Y.js → onboarding-CTQgNbX8.js} +1 -1
- package/dist/client/assets/{org-layout-C91vSF4q.js → org-layout-tUX-e_rZ.js} +1 -1
- package/dist/client/assets/{organization-choice-DXYHVWqy.js → organization-choice-T8a5zIBy.js} +1 -1
- package/dist/client/assets/{orgs-l_YIbu-F.js → orgs-CGkwFzZ6.js} +1 -1
- package/dist/client/assets/{page-seo-form-Doh7eCbz.js → page-seo-form-C0yVvfZn.js} +1 -1
- package/dist/client/assets/{popover-lfRTyTfY.js → popover-BV2Ziop4.js} +1 -1
- package/dist/client/assets/post-editor-DnamQd0I.js +1 -0
- package/dist/client/assets/{primitives-D2XiEheA.js → primitives-QfIbZaez.js} +1 -1
- package/dist/client/assets/{profile-DYmWeqVj.js → profile-Bp26cqE6.js} +1 -1
- package/dist/client/assets/{project-app-view-BcBqdtiM.js → project-app-view-C-J9cu-l.js} +1 -1
- package/dist/client/assets/record-editor-CoztL6I2.js +1 -0
- package/dist/client/assets/redirect-editor-Bz1AUCqF.js +1 -0
- package/dist/client/assets/registry-DQjw_3WH.js +2 -0
- package/dist/client/assets/{registry-layout-Cik1SpUp.js → registry-layout-DdRmZw6K.js} +1 -1
- package/dist/client/assets/{reports-Dnc16PRq.js → reports-DMvf7MMo.js} +1 -1
- package/dist/client/assets/{require-capability-BucqG7x5.js → require-capability-ChdE_Nc5.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BPTlCWwQ.js → required-auth-layout-DYO8_0ig.js} +1 -1
- package/dist/client/assets/{reset-password-Daomnp15.js → reset-password-C661myht.js} +1 -1
- package/dist/client/assets/{roles-CArh-SJw.js → roles-CYg93TjU.js} +1 -1
- package/dist/client/assets/{search-input-Bxy5_mlp.js → search-input-ChJAF9CO.js} +1 -1
- package/dist/client/assets/{secrets-CvBkHvhA.js → secrets-CwgPWaoJ.js} +1 -1
- package/dist/client/assets/{sections-editor-DiQtCRBg.js → sections-editor-D8xoci4G.js} +1 -1
- package/dist/client/assets/{select-COYY30vd.js → select-COjQ5V-V.js} +1 -1
- package/dist/client/assets/{select-model-DnVjmGyD.js → select-model-B5IdH_n6.js} +1 -1
- package/dist/client/assets/{self-tool-result-A7hJIzeq.js → self-tool-result-DA97K7F2.js} +1 -1
- package/dist/client/assets/{seo-editor-Dvmj52zw.js → seo-editor-Do7jjKRP.js} +1 -1
- package/dist/client/assets/settings-layout-C23Ga1Si.js +1 -0
- package/dist/client/assets/{settings-section-DhEp4WaB.js → settings-section-BN0IrtYX.js} +1 -1
- package/dist/client/assets/{settings-subnav-CzBll9kW.js → settings-subnav-DlbWpD1A.js} +1 -1
- package/dist/client/assets/{shell-controls-CE18rYtG.js → shell-controls-BBRNaPXa.js} +1 -1
- package/dist/client/assets/{shell-layout-CfcvyUrh.js → shell-layout-DIvwZhUJ.js} +1 -1
- package/dist/client/assets/{sidebar-CjKUpSic.js → sidebar-Dckv7Gxe.js} +1 -1
- package/dist/client/assets/{skeleton-vianXzjk.js → skeleton-C_J-aMdg.js} +1 -1
- package/dist/client/assets/{spinner-BCLFtI8n.js → spinner-Cbrhyipt.js} +1 -1
- package/dist/client/assets/{sso-drbymUoh.js → sso-DC7cMRPW.js} +1 -1
- package/dist/client/assets/{store-Bzknn9SL.js → store-rWTYBa0y.js} +1 -1
- package/dist/client/assets/store-registry-Dz8WBmEa.js +2 -0
- package/dist/client/assets/{studio-tools-D2Jk1wIZ.js → studio-tools-BoD8kcA1.js} +1 -1
- package/dist/client/assets/{switch-CUICPR93.js → switch-b-8BZDWJ.js} +1 -1
- package/dist/client/assets/{synced-repos-BOJgs8MN.js → synced-repos-Cuzl6scP.js} +1 -1
- package/dist/client/assets/{tab-id-EN2Zxh9h.js → tab-id-BJUTVZdl.js} +1 -1
- package/dist/client/assets/{table-3bdtzhCX.js → table-CfpVPCrj.js} +1 -1
- package/dist/client/assets/{tabs-D1_cpyYo.js → tabs-D-7lRbur.js} +1 -1
- package/dist/client/assets/{tasks-D8xzvGag.js → tasks-EwwXPqCM.js} +1 -1
- package/dist/client/assets/{textarea-DUzrfNxk.js → textarea-CosQp1Ex.js} +1 -1
- package/dist/client/assets/{toggle-group-B6o-ngeh.js → toggle-group-5LW11eFN.js} +1 -1
- package/dist/client/assets/{toolbar-DvIO_slw.js → toolbar-Q0b8veSU.js} +1 -1
- package/dist/client/assets/{tooltip-BKve4R9q.js → tooltip-BfkRKScU.js} +1 -1
- package/dist/client/assets/{track-CfD_YmOA.js → track-CG8KgfQd.js} +1 -1
- package/dist/client/assets/{types-DYUncFqY.js → types-BGHf5GHQ.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DpEklshI.js → use-ai-providers-BezO2qdd.js} +1 -1
- package/dist/client/assets/{use-api-keys-CIakTG4i.js → use-api-keys-BELfjQ6X.js} +1 -1
- package/dist/client/assets/{use-automations-jw2FcRc2.js → use-automations-BB8THpxC.js} +1 -1
- package/dist/client/assets/{use-autosave-B4dZA9G8.js → use-autosave-C7alUjY0.js} +1 -1
- package/dist/client/assets/{use-capability-hEEyXr97.js → use-capability-mz-0XBoJ.js} +1 -1
- package/dist/client/assets/{use-clock-tick-Cs0TsaUh.js → use-clock-tick-BlWbr6nY.js} +1 -1
- package/dist/client/assets/{use-commerce-diagnostic-DdLJPuwi.js → use-commerce-diagnostic-B54oYyoh.js} +1 -1
- package/dist/client/assets/{use-connection-u_QfsDEf.js → use-connection-B5TzA1Ut.js} +1 -1
- package/dist/client/assets/{use-copy-Dfpc-fGP.js → use-copy-BEi_L0rW.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CehIL4nf.js → use-create-virtual-mcp-BfQJXcoA.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BoxzRxJi.js → use-debounced-autosave-BHPvlnZn.js} +1 -1
- package/dist/client/assets/{use-debounced-value-JSnoN7KO.js → use-debounced-value-D880nDlC.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-D5d1ERC5.js → use-decopilot-events-D7YXko6B.js} +1 -1
- package/dist/client/assets/{use-delete-connection-B767DfhW.js → use-delete-connection-urOdWe-_.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-XswQDqUF.js → use-deployment-admin-D_5KLYHI.js} +1 -1
- package/dist/client/assets/{use-file-configs-DrJWRqLf.js → use-file-configs-C4oqeXep.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DX-07_8k.js → use-infinite-scroll-A-tTatQb.js} +1 -1
- package/dist/client/assets/{use-join-requests-DxOzJgpB.js → use-join-requests-Cvq2Nlxy.js} +1 -1
- package/dist/client/assets/{use-mcp-client-C5EARA3U.js → use-mcp-client-DKcZ7v-W.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DvLDtIie.js → use-mcp-tools-B4aUfPof.js} +1 -1
- package/dist/client/assets/{use-members-DvyRV9G4.js → use-members-Dypq7HzL.js} +1 -1
- package/dist/client/assets/{use-mobile-BvQU4LiP.js → use-mobile-C0XoguQx.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DzvTkd_w.js → use-navigate-to-agent-Cxg9_mL_.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-C8j7vTe2.js → use-open-billing-url-BwHZpmU9.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-bK2Vv-ay.js → use-org-auth-client-CEm0cNyU.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BqwLFpRT.js → use-org-repo-syncs-DCxfKVxi.js} +1 -1
- package/dist/client/assets/{use-org-sso-C4wNRfjV.js → use-org-sso-8p_mXDai.js} +1 -1
- package/dist/client/assets/{use-organization-roles-c-L-E5hA.js → use-organization-roles-EKX73RmE.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BtiV0ixc.js → use-organization-settings-C62jhu_V.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CxMxT_Q2.js → use-registry-connections-C82adOhA.js} +1 -1
- package/dist/client/assets/{use-secrets-DIZdZ8km.js → use-secrets-CXv4Or8y.js} +1 -1
- package/dist/client/assets/use-section-preview-base-uursozx3.js +1 -0
- package/dist/client/assets/{use-settings-tabs-BJzAnyec.js → use-settings-tabs-BO1uyGPC.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CYKh_hTM.js → use-status-sounds-Df1zE4-g.js} +1 -1
- package/dist/client/assets/{use-tags-CWCV7I2E.js → use-tags-DBhn0x6Q.js} +1 -1
- package/dist/client/assets/{use-view-mode-CRUW3QKR.js → use-view-mode-B8mZlQkB.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-mI8FicV_.js → use-virtual-mcp-IokMTZJW.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-ewuCizNF.js +1 -0
- package/dist/client/assets/{useRouterState-dQ0wTbfS.js → useRouterState-BHrQRzTY.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BvX-6eAF.js +1 -0
- package/dist/client/assets/{users-DIKmIIr0.js → users-B6MzMck4.js} +1 -1
- package/dist/client/assets/{variant-calendar-YrsxgTTm.js → variant-calendar-DrArrrSO.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Dm4tT3g8.js → view-mode-toggle-waWn0PEd.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +224 -224
- package/dist/server/server.js +210 -210
- package/package.json +1 -1
- package/dist/client/assets/category-editor-DFNhuyZy.js +0 -1
- package/dist/client/assets/post-editor-DLM0eINX.js +0 -1
- package/dist/client/assets/record-editor-DbElslpW.js +0 -1
- package/dist/client/assets/redirect-editor-DRtJhqsB.js +0 -1
- package/dist/client/assets/registry-CU-DLkoe.js +0 -2
- package/dist/client/assets/settings-layout-CTUex6In.js +0 -1
- package/dist/client/assets/store-registry-Dw5oYxFD.js +0 -2
- package/dist/client/assets/use-section-preview-base-BZgjy5kd.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BVb02GPo.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Ds8ZjRyV.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,m as N,j as r,r as S}from"./index-
|
|
1
|
+
import{c as v,m as N,j as r,r as S}from"./index-BphIXXOp.js";import{C as w}from"./card-CooN3E-v.js";import{i as E}from"./ArrowUpRight-C0hTvHTE.js";function I(c){const e=v.c(12),{title:i,description:l,docsHref:t,actions:s,className:n,headerClassName:a,children:d}=c;let m;e[0]!==n?(m=N("flex flex-col gap-3",n),e[0]=n,e[1]=m):m=e[1];let f;e[2]!==s||e[3]!==l||e[4]!==t||e[5]!==a||e[6]!==i?(f=(i||l||t||s)&&r.jsxs("div",{className:N("flex items-center justify-between gap-3 px-4",a),children:[r.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[i&&r.jsx("h2",{className:"text-[15px] font-medium leading-tight",children:i}),(l||t)&&r.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[l,t&&r.jsxs("a",{href:t,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",r.jsx(E,{size:12})]})]})]}),s&&r.jsx("div",{className:"shrink-0",children:s})]}),e[2]=s,e[3]=l,e[4]=t,e[5]=a,e[6]=i,e[7]=f):f=e[7];let o;return e[8]!==d||e[9]!==m||e[10]!==f?(o=r.jsxs("section",{className:m,children:[f,d]}),e[8]=d,e[9]=m,e[10]=f,e[11]=o):o=e[11],o}function P(c){const e=v.c(11),{className:i,children:l}=c;let t,s,n;if(e[0]!==l||e[1]!==i){const d=S.Children.toArray(l).filter(S.isValidElement);t=w,e[5]!==i?(s=N("p-0 gap-0 overflow-hidden",i),e[5]=i,e[6]=s):s=e[6],n=d.map($),e[0]=l,e[1]=i,e[2]=t,e[3]=s,e[4]=n}else t=e[2],s=e[3],n=e[4];let a;return e[7]!==t||e[8]!==s||e[9]!==n?(a=r.jsx(t,{className:s,children:n}),e[7]=t,e[8]=s,e[9]=n,e[10]=a):a=e[10],a}function $(c,e){return r.jsxs("div",{children:[e>0&&r.jsx("div",{className:"h-px bg-border mx-5"}),c]},e)}function R(c){const e=v.c(27),{icon:i,title:l,description:t,action:s,onClick:n,className:a,children:d}=c,m=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",f=n&&"hover:bg-muted/50 cursor-pointer";let o;e[0]!==a||e[1]!==m||e[2]!==f?(o=N(m,f,a),e[0]=a,e[1]=m,e[2]=f,e[3]=o):o=e[3];const b=n?"button":void 0,C=n?0:void 0;let x;e[4]!==n?(x=n?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),n())}:void 0,e[4]=n,e[5]=x):x=e[5];let p;e[6]!==i?(p=i&&r.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:i}),e[6]=i,e[7]=p):p=e[7];let u;e[8]!==l?(u=r.jsx("div",{className:"text-sm font-medium",children:l}),e[8]=l,e[9]=u):u=e[9];let h;e[10]!==t?(h=t&&r.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:t}),e[10]=t,e[11]=h):h=e[11];let g;e[12]!==d||e[13]!==u||e[14]!==h?(g=r.jsxs("div",{className:"flex-1 min-w-0",children:[u,h,d]}),e[12]=d,e[13]=u,e[14]=h,e[15]=g):g=e[15];let j;e[16]!==s?(j=s&&r.jsx("div",{className:"shrink-0",onClick:D,children:s}),e[16]=s,e[17]=j):j=e[17];let y;return e[18]!==n||e[19]!==g||e[20]!==j||e[21]!==o||e[22]!==b||e[23]!==C||e[24]!==x||e[25]!==p?(y=r.jsxs("div",{className:o,onClick:n,role:b,tabIndex:C,onKeyDown:x,children:[p,g,j]}),e[18]=n,e[19]=g,e[20]=j,e[21]=o,e[22]=b,e[23]=C,e[24]=x,e[25]=p,e[26]=y):y=e[26],y}function D(c){return c.stopPropagation()}function H(c){const e=v.c(5),{children:i,className:l}=c;let t;e[0]!==l?(t=N("flex items-center justify-end gap-2 px-4 py-4",l),e[0]=l,e[1]=t):t=e[1];let s;return e[2]!==i||e[3]!==t?(s=r.jsx("div",{className:t,children:i}),e[2]=i,e[3]=t,e[4]=s):s=e[4],s}function K(c){const e=v.c(5),{className:i,children:l}=c;let t;e[0]!==i?(t=N("flex flex-col gap-10",i),e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==l||e[3]!==t?(s=r.jsx("div",{className:t,children:l}),e[2]=l,e[3]=t,e[4]=s):s=e[4],s}export{I as S,P as a,R as b,K as c,H as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,b as S,f as _,j as p,L as k,m as y,p as v}from"./index-
|
|
1
|
+
import{c as b,b as S,f as _,j as p,L as k,m as y,p as v}from"./index-BphIXXOp.js";import{u as j}from"./useRouterState-BHrQRzTY.js";import{P as T}from"./index-BKOwC_zz.js";import{u as w,S as N}from"./use-settings-tabs-BO1uyGPC.js";function A(d){const e=b.c(16),{group:r}=d,t=S();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/shell/$org"},e[0]=l):l=e[0];const{org:i}=_(l);let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c={select:P},e[1]=c):c=e[1];const m=j(c),u=w()[r],{titleKey:g}=N[r];let s;e[2]!==t||e[3]!==g?(s=t(g),e[2]=t,e[3]=g,e[4]=s):s=e[4];let o;e[5]!==s?(o=p.jsx(T.Title,{children:s}),e[5]=s,e[6]=o):o=e[6];let n;e[7]!==r||e[8]!==i||e[9]!==m||e[10]!==t||e[11]!==u?(n=u.length>1&&p.jsx("nav",{"data-slot":"settings-subnav","aria-label":t("settings.subnav.ariaLabel"),className:"bg-muted inline-flex h-10 w-fit items-center rounded-xl p-[3px] gap-0.5",children:u.map(a=>{const x=a.to.replace("$org",i),h=m===x||m.startsWith(`${x}/`);return p.jsx(k,{to:a.to,params:{org:i},onClick:()=>v("settings_subnav_clicked",{group_key:r,tab_key:a.key}),className:y("inline-flex h-full items-center justify-center rounded-lg border border-transparent px-3 text-sm font-medium whitespace-nowrap transition-[color,box-shadow]",h?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:t(a.labelKey)},a.key)})}),e[7]=r,e[8]=i,e[9]=m,e[10]=t,e[11]=u,e[12]=n):n=e[12];let f;return e[13]!==o||e[14]!==n?(f=p.jsxs("div",{className:"flex flex-col gap-4",children:[o,n]}),e[13]=o,e[14]=n,e[15]=f):f=e[15],f}function P(d){return d.location.pathname}export{A as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,b,j as m}from"./index-
|
|
1
|
+
import{c as p,b,j as m}from"./index-BphIXXOp.js";import{u as d,m as h,p as S,q as x}from"./sidebar-Dckv7Gxe.js";import{i as g}from"./LayoutLeft-DZwVeKk1.js";import{T as j}from"./toolbar-Q0b8veSU.js";function B(u){const e=p.c(7),{className:l}=u,n=b(),{toggleSidebar:i}=d();let t;e[0]!==n?(t=n("layouts.shellControls.toggleSidebar"),e[0]=n,e[1]=t):t=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=m.jsx(g,{size:16}),e[2]=s):s=e[2];let o;return e[3]!==l||e[4]!==t||e[5]!==i?(o=m.jsx(j,{onClick:i,"aria-label":t,className:l,children:s}),e[3]=l,e[4]=t,e[5]=i,e[6]=o):o=e[6],o}function N(u){const e=p.c(16),{renderSidebar:l}=u,n=b(),{openMobile:i,setOpenMobile:t}=d();let s;e[0]!==n?(s=n("layouts.shellControls.navigationTitle"),e[0]=n,e[1]=s):s=e[1];let o;e[2]!==s?(o=m.jsx(h,{className:"sr-only",children:s}),e[2]=s,e[3]=o):o=e[3];let r;e[4]!==t?(r=()=>t(!1),e[4]=t,e[5]=r):r=e[5];let a;e[6]!==l||e[7]!==r?(a=l({onClose:r}),e[6]=l,e[7]=r,e[8]=a):a=e[8];let c;e[9]!==o||e[10]!==a?(c=m.jsxs(S,{side:"left",hideCloseButton:!0,className:"w-screen max-w-none! p-0",children:[o,a]}),e[9]=o,e[10]=a,e[11]=c):c=e[11];let f;return e[12]!==i||e[13]!==t||e[14]!==c?(f=m.jsx(x,{open:i,onOpenChange:t,children:c}),e[12]=i,e[13]=t,e[14]=c,e[15]=f):f=e[15],f}export{N as M,B as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as I,b as U,e as ne,j as n,B as $,t as te,bV as ee,y as ke,a as Z,w as Re,x as Ne,K as ce,bW as qe,bX as Be,G as X,m as ue,r as B,n as re,at as he,v as Ue,bY as He,p as pe,bZ as Je,b_ as Ke,b$ as Ge,d as Ve,F as We,f as Ae,u as Qe,J as Ye,be as Xe,c0 as Ze,c1 as ye,c2 as et,c3 as tt,S as nt,O as st,c4 as ot}from"./index-CAoYxLH3.js";import{A as de}from"./avatar-2UWdGHIP.js";import{t as _e,a as it}from"./Users03-C6YFSX7v.js";import{i as at}from"./SearchLg-BmW4WIed.js";import{i as rt,s as lt,a as H,b as ct,n as dt}from"./Stars02-BzaS0FDm.js";import{s as ut}from"./XClose-B0INQFzX.js";import{D as mt,s as ft,A as gt}from"./tab-id-EN2Zxh9h.js";import{i as K}from"./CheckCircle-D36Maic6.js";import{i as xe}from"./FilterLines-AIqmerRJ.js";import{i as ht}from"./Monitor01-HfLTb6Ha.js";import{i as G}from"./Zap-BDRNr0t4.js";import{a as Te,b as Oe,d as Ce,e as Ee,h as pt,c as yt}from"./dialog-B9Vr29s-.js";import{u as xt}from"./use-is-desktop-app-BNujXJc_.js";import{R as bt}from"./required-auth-layout-BPTlCWwQ.js";import{a as be,m as wt,S as St}from"./use-mcp-client-C5EARA3U.js";import{b as vt}from"./hooks-MRTBu23Z.js";import{h as jt}from"./use-organization-settings-BtiV0ixc.js";import{u as kt}from"./use-org-sso-C4wNRfjV.js";function Nt(t){const e=I.c(49),{orgName:s,orgSlug:i,orgLogo:l,domain:r}=t,a=U();let o;e[0]!==i||e[1]!==a?(o=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:i})}),O=await k.json();if(!k.ok||!O.success)throw new Error(O.error??a("common.autoDomainJoinScreen.joinError"));return O},e[0]=i,e[1]=a,e[2]=o):o=e[2];let d;e[3]!==i?(d=k=>{window.location.href=`/${k.slug??i}`},e[3]=i,e[4]=d):d=e[4];let f;e[5]!==a?(f=k=>{te.error(k instanceof Error?k.message:a("common.autoDomainJoinScreen.joinError"))},e[5]=a,e[6]=f):f=e[6];let x;e[7]!==o||e[8]!==d||e[9]!==f?(x={mutationFn:o,onSuccess:d,onError:f},e[7]=o,e[8]=d,e[9]=f,e[10]=x):x=e[10];const c=ne(x),v=At;let m;e[11]!==l||e[12]!==s?(m=l?n.jsx(de,{url:l,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[11]=l,e[12]=s,e[13]=m):m=e[13];let u;e[14]!==s||e[15]!==a?(u=a("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=a,e[16]=u):u=e[16];let p;e[17]!==u?(p=n.jsx("h3",{className:"text-lg font-medium",children:u}),e[17]=u,e[18]=p):p=e[18];let g;e[19]!==r||e[20]!==a?(g=a("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=a,e[21]=g):g=e[21];let h;e[22]!==g?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[22]=g,e[23]=h):h=e[23];let w;e[24]!==p||e[25]!==h?(w=n.jsxs("div",{className:"space-y-2",children:[p,h]}),e[24]=p,e[25]=h,e[26]=w):w=e[26];let b;e[27]!==c?(b=()=>c.mutate(),e[27]=c,e[28]=b):b=e[28];let S;e[29]!==c.isPending||e[30]!==s||e[31]!==a?(S=c.isPending?a("common.autoDomainJoinScreen.joining"):a("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=c.isPending,e[30]=s,e[31]=a,e[32]=S):S=e[32];let N;e[33]!==c.isPending||e[34]!==b||e[35]!==S?(N=n.jsx($,{onClick:b,disabled:c.isPending,children:S}),e[33]=c.isPending,e[34]=b,e[35]=S,e[36]=N):N=e[36];const j=c.isPending;let A;e[37]!==a?(A=a("common.autoDomainJoinScreen.goHome"),e[37]=a,e[38]=A):A=e[38];let y;e[39]!==c.isPending||e[40]!==A?(y=n.jsx($,{variant:"ghost",onClick:v,disabled:j,children:A}),e[39]=c.isPending,e[40]=A,e[41]=y):y=e[41];let T;e[42]!==N||e[43]!==y?(T=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,y]}),e[42]=N,e[43]=y,e[44]=T):T=e[44];let _;return e[45]!==w||e[46]!==T||e[47]!==m?(_=n.jsxs(ee,{children:[m,w,T]}),e[45]=w,e[46]=T,e[47]=m,e[48]=_):_=e[48],_}function At(){window.location.href="/"}function we(t){const e=I.c(25),{orgSlug:s,orgName:i,reason:l}=t,r=U(),a=_t,o=l==="not-found",d=o?at:ke;let f;e[0]!==o||e[1]!==r?(f=r(o?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=o,e[1]=r,e[2]=f):f=e[2];const x=f;let c;e[3]!==o||e[4]!==i||e[5]!==s||e[6]!==r?(c=o?n.jsxs(n.Fragment,{children:[r("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:[r("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:i??s}),".",n.jsx("br",{}),r("common.noAccessScreen.askAdminToInvite")]}),e[3]=o,e[4]=i,e[5]=s,e[6]=r,e[7]=c):c=e[7];const v=c;let m;e[8]!==d?(m=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(d,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=d,e[9]=m):m=e[9];let u;e[10]!==x?(u=n.jsx("h3",{className:"text-lg font-medium",children:x}),e[10]=x,e[11]=u):u=e[11];let p;e[12]!==v?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:v}),e[12]=v,e[13]=p):p=e[13];let g;e[14]!==u||e[15]!==p?(g=n.jsxs("div",{className:"space-y-2",children:[u,p]}),e[14]=u,e[15]=p,e[16]=g):g=e[16];let h;e[17]!==r?(h=r("common.noAccessScreen.goToHome"),e[17]=r,e[18]=h):h=e[18];let w;e[19]!==h?(w=n.jsx($,{onClick:a,children:h}),e[19]=h,e[20]=w):w=e[20];let b;return e[21]!==m||e[22]!==g||e[23]!==w?(b=n.jsxs(ee,{children:[m,g,w]}),e[21]=m,e[22]=g,e[23]=w,e[24]=b):b=e[24],b}function _t(){window.location.href="/"}function Tt(t){const e=I.c(59),{invitationId:s,orgName:i,orgSlug:l,orgLogo:r}=t,a=U();let o;e[0]!==s?(o=async()=>{const E=await Z.organization.acceptInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[0]=s,e[1]=o):o=e[1];let d;e[2]!==l?(d=()=>{Re(),window.location.href=`/${l}`},e[2]=l,e[3]=d):d=e[3];let f;e[4]!==a?(f=E=>{te.error(E instanceof Error?E.message:a("common.pendingInviteScreen.failedToAccept"))},e[4]=a,e[5]=f):f=e[5];let x;e[6]!==o||e[7]!==d||e[8]!==f?(x={mutationFn:o,onSuccess:d,onError:f},e[6]=o,e[7]=d,e[8]=f,e[9]=x):x=e[9];const c=ne(x);let v;e[10]!==s?(v=async()=>{const E=await Z.organization.rejectInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[10]=s,e[11]=v):v=e[11];let m,u;e[12]!==a?(m=()=>{te.success(a("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},u=E=>{te.error(E instanceof Error?E.message:a("common.pendingInviteScreen.failedToDecline"))},e[12]=a,e[13]=m,e[14]=u):(m=e[13],u=e[14]);let p;e[15]!==v||e[16]!==m||e[17]!==u?(p={mutationFn:v,onSuccess:m,onError:u},e[15]=v,e[16]=m,e[17]=u,e[18]=p):p=e[18];const g=ne(p),h=c.isPending||g.isPending;let w;e[19]!==r||e[20]!==i?(w=r?n.jsx(de,{url:r,fallback:i.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(rt,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=i,e[21]=w):w=e[21];let b;e[22]!==i||e[23]!==a?(b=a("common.pendingInviteScreen.invitedTo",{orgName:i}),e[22]=i,e[23]=a,e[24]=b):b=e[24];let S;e[25]!==b?(S=n.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=S):S=e[26];let N;e[27]!==a?(N=a("common.pendingInviteScreen.acceptDescription"),e[27]=a,e[28]=N):N=e[28];let j;e[29]!==N?(j=n.jsx("p",{className:"text-sm text-muted-foreground",children:N}),e[29]=N,e[30]=j):j=e[30];let A;e[31]!==S||e[32]!==j?(A=n.jsxs("div",{className:"space-y-2",children:[S,j]}),e[31]=S,e[32]=j,e[33]=A):A=e[33];let y;e[34]!==c?(y=()=>c.mutate(),e[34]=c,e[35]=y):y=e[35];let T;e[36]!==c.isPending||e[37]!==a?(T=c.isPending?a("common.pendingInviteScreen.acceptingButton"):a("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=a,e[38]=T):T=e[38];let _;e[39]!==h||e[40]!==y||e[41]!==T?(_=n.jsx($,{onClick:y,disabled:h,children:T}),e[39]=h,e[40]=y,e[41]=T,e[42]=_):_=e[42];let k;e[43]!==g?(k=()=>g.mutate(),e[43]=g,e[44]=k):k=e[44];let O;e[45]!==g.isPending||e[46]!==a?(O=g.isPending?a("common.pendingInviteScreen.decliningButton"):a("common.pendingInviteScreen.declineButton"),e[45]=g.isPending,e[46]=a,e[47]=O):O=e[47];let L;e[48]!==h||e[49]!==k||e[50]!==O?(L=n.jsx($,{variant:"ghost",onClick:k,disabled:h,children:O}),e[48]=h,e[49]=k,e[50]=O,e[51]=L):L=e[51];let C;e[52]!==_||e[53]!==L?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,L]}),e[52]=_,e[53]=L,e[54]=C):C=e[54];let D;return e[55]!==A||e[56]!==C||e[57]!==w?(D=n.jsxs(ee,{children:[w,A,C]}),e[55]=A,e[56]=C,e[57]=w,e[58]=D):D=e[58],D}function Ot(t){const e=I.c(23),{orgName:s,orgLogo:i}=t,l=U();let r;e[0]!==i||e[1]!==s?(r=i?n.jsx(de,{url:i,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(lt,{className:"h-6 w-6 text-primary"})}),e[0]=i,e[1]=s,e[2]=r):r=e[2];let a;e[3]!==l?(a=l("common.requestPendingScreen.title"),e[3]=l,e[4]=a):a=e[4];let o;e[5]!==a?(o=n.jsx("h3",{className:"text-lg font-medium",children:a}),e[5]=a,e[6]=o):o=e[6];let d;e[7]!==s||e[8]!==l?(d=l("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=l,e[9]=d):d=e[9];let f;e[10]!==d?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[10]=d,e[11]=f):f=e[11];let x;e[12]!==o||e[13]!==f?(x=n.jsxs("div",{className:"space-y-2",children:[o,f]}),e[12]=o,e[13]=f,e[14]=x):x=e[14];let c;e[15]!==l?(c=l("common.requestPendingScreen.goHome"),e[15]=l,e[16]=c):c=e[16];let v;e[17]!==c?(v=n.jsx($,{variant:"ghost",onClick:Ct,children:c}),e[17]=c,e[18]=v):v=e[18];let m;return e[19]!==r||e[20]!==x||e[21]!==v?(m=n.jsxs(ee,{children:[r,x,v]}),e[19]=r,e[20]=x,e[21]=v,e[22]=m):m=e[22],m}function Ct(){window.location.href="/"}function Et(t){const e=I.c(45),{orgName:s,orgSlug:i,orgLogo:l,domain:r}=t,a=U();let o;e[0]!==i?(o=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:i})}),k=await _.json();if(!_.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=i,e[1]=o):o=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=Pt,e[2]=d):d=e[2];let f;e[3]!==a?(f=_=>{te.error(_ instanceof Error?_.message:a("common.requestToJoinScreen.failedToRequest"))},e[3]=a,e[4]=f):f=e[4];let x;e[5]!==o||e[6]!==f?(x={mutationFn:o,onSuccess:d,onError:f},e[5]=o,e[6]=f,e[7]=x):x=e[7];const c=ne(x);let v;e[8]!==l||e[9]!==s?(v=l?n.jsx(de,{url:l,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[8]=l,e[9]=s,e[10]=v):v=e[10];let m;e[11]!==s||e[12]!==a?(m=a("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=a,e[13]=m):m=e[13];let u;e[14]!==m?(u=n.jsx("h3",{className:"text-lg font-medium",children:m}),e[14]=m,e[15]=u):u=e[15];let p;e[16]!==r||e[17]!==a?(p=a("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=a,e[18]=p):p=e[18];let g;e[19]!==p?(g=n.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[19]=p,e[20]=g):g=e[20];let h;e[21]!==u||e[22]!==g?(h=n.jsxs("div",{className:"space-y-2",children:[u,g]}),e[21]=u,e[22]=g,e[23]=h):h=e[23];let w;e[24]!==c?(w=()=>c.mutate(),e[24]=c,e[25]=w):w=e[25];let b;e[26]!==c.isPending||e[27]!==a?(b=c.isPending?a("common.requestToJoinScreen.requesting"):a("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=a,e[28]=b):b=e[28];let S;e[29]!==c.isPending||e[30]!==w||e[31]!==b?(S=n.jsx($,{onClick:w,disabled:c.isPending,children:b}),e[29]=c.isPending,e[30]=w,e[31]=b,e[32]=S):S=e[32];const N=c.isPending;let j;e[33]!==a?(j=a("common.requestToJoinScreen.goToHome"),e[33]=a,e[34]=j):j=e[34];let A;e[35]!==c.isPending||e[36]!==j?(A=n.jsx($,{variant:"ghost",onClick:Lt,disabled:N,children:j}),e[35]=c.isPending,e[36]=j,e[37]=A):A=e[37];let y;e[38]!==S||e[39]!==A?(y=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[S,A]}),e[38]=S,e[39]=A,e[40]=y):y=e[40];let T;return e[41]!==h||e[42]!==y||e[43]!==v?(T=n.jsxs(ee,{children:[v,h,y]}),e[41]=h,e[42]=y,e[43]=v,e[44]=T):T=e[44],T}function Lt(){window.location.href="/"}function Pt(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Dt(t){const e=I.c(7);let s;e[0]!==t?(s=ce.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let i;e[2]!==t?(i=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=i):i=e[3];let l;return e[4]!==s||e[5]!==i?(l={queryKey:s,queryFn:i,refetchOnWindowFocus:!1},e[4]=s,e[5]=i,e[6]=l):l=e[6],Ne(l)}function It({orgSlug:t}){const{data:e}=Dt(t);if(e.status!=="member"){qe()?.org===t&&Be();const s=localStorage.getItem(X.lastOrgSlug())===t;if(s&&localStorage.removeItem(X.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(we,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(Tt,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(Nt,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(Et,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(Ot,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(we,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Le(t){const e=I.c(42),{ariaLabel:s,dismissLabel:i,eyebrow:l,title:r,description:a,icon:o,children:d,footerLeading:f,actions:x,onDismiss:c,tone:v}=t,m=v===void 0?"neutral":v,u=f||x;let p;e[0]!==m?(p=m==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=m,e[1]=p):p=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(ut,{size:14}),e[2]=g):g=e[2];let h;e[3]!==i||e[4]!==c?(h=n.jsx($,{size:"icon-sm",variant:"ghost","aria-label":i,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:g}),e[3]=i,e[4]=c,e[5]=h):h=e[5];const w=o&&"flex items-start gap-3",b=d&&"pb-3";let S;e[6]!==w||e[7]!==b?(S=ue("p-4 pr-11",w,b),e[6]=w,e[7]=b,e[8]=S):S=e[8];let N;e[9]!==o?(N=o&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:o}),e[9]=o,e[10]=N):N=e[10];let j;e[11]!==l?(j=l&&n.jsx("p",{className:"text-xs text-muted-foreground",children:l}),e[11]=l,e[12]=j):j=e[12];let A;e[13]!==r?(A=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=A):A=e[14];let y;e[15]!==a?(y=a&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:a}),e[15]=a,e[16]=y):y=e[16];let T;e[17]!==A||e[18]!==y||e[19]!==j?(T=n.jsxs("div",{children:[j,A,y]}),e[17]=A,e[18]=y,e[19]=j,e[20]=T):T=e[20];let _;e[21]!==d?(_=d&&n.jsx("div",{className:"mt-3",children:d}),e[21]=d,e[22]=_):_=e[22];let k;e[23]!==T||e[24]!==_?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[T,_]}),e[23]=T,e[24]=_,e[25]=k):k=e[25];let O;e[26]!==k||e[27]!==S||e[28]!==N?(O=n.jsxs("div",{className:S,children:[N,k]}),e[26]=k,e[27]=S,e[28]=N,e[29]=O):O=e[29];let L;e[30]!==x||e[31]!==f||e[32]!==u||e[33]!==m?(L=u&&n.jsxs("div",{className:ue("flex items-center justify-between gap-3 px-4 py-2.5",m==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:x})]}),e[30]=x,e[31]=f,e[32]=u,e[33]=m,e[34]=L):L=e[34];let C;return e[35]!==s||e[36]!==O||e[37]!==L||e[38]!==p||e[39]!==h||e[40]!==m?(C=n.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":m,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[p,h,O,L]}),e[35]=s,e[36]=O,e[37]=L,e[38]=p,e[39]=h,e[40]=m,e[41]=C):C=e[41],C}const $t=[{id:"native-app-macos",date:"2026-07-30",eyebrow:"Now Available",title:"New beta studio app",bullets:[{icon:G,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:H,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:ct,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:ht,title:"Apple Silicon only — Windows coming soon",body:"Today's builds target macOS on Apple Silicon; Windows is next."}],cta:{label:"Install on Mac",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases"},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:H,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:K,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:G,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:H,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:K,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:G,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:K,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:H,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:G,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:H,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:K,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:H,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:K,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:H,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:xe,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:K,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:it,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:G,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:K,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:H,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:xe,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:H,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:dt,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],Pe=$t,le="studio.release-feed.v1",me=new Set;let V="",W={},fe=!1;function zt(){if(fe)return V||"{}";try{return localStorage.getItem(le)??"{}"}catch{return V||"{}"}}function De(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Se(){const t=zt();return t!==V&&(V=t,W=De(t)),W}function Ft(t){me.add(t);const e=s=>{if(!(s.key!==le&&s.key!==null)){try{const i=localStorage.getItem(le)??"{}",r={...De(i),...W};W=r,V=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{me.delete(t),window.removeEventListener("storage",e)}}function Mt(t){W=t,V=JSON.stringify(t);try{localStorage.setItem(le,V),fe=!1}catch{fe=!0}me.forEach(e=>e())}function Rt(){const t=I.c(7),e=B.useSyncExternalStore(Ft,Se,Se);let s;t[0]!==e?(s=d=>!!e[d],t[0]=e,t[1]=s):s=t[1];const i=s,l=qt;let r;t[2]!==e?(r=Pe.reduce((d,f)=>e[f.id]?d:d+1,0),t[2]=e,t[3]=r):r=t[3];const a=r;let o;return t[4]!==i||t[5]!==a?(o={isSeen:i,markSeen:l,unseenCount:a},t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function qt(t){W[t]||Mt({...W,[t]:{seenAt:new Date().toISOString()}})}const Bt=720*60*60*1e3,Ut=10080*60*1e3;function Ht(t){const[e,s,i]=t.split("-").map(Number);return!e||!s||!i?new Date(t).getTime():new Date(e,s-1,i).getTime()}function Jt(t){const e=Pe[0];if(!e)return null;const s=Ht(e.date),i=t-s;return i<0||i>Bt?null:e}function Kt(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function Gt(t,e){const s=Kt(t);return s===null?!1:e-s>=Ut}function Vt(){const t=I.c(41),e=U(),{data:s}=Z.useSession(),{isSeen:i,markSeen:l}=Rt(),[r,a]=B.useState(!1);let o,d,f;if(t[0]!==i||t[1]!==s?.user?.createdAt){f=Symbol.for("react.early_return_sentinel");e:{const j=Date.now();if(o=Jt(j),!o){f=null;break e}if(!Gt(s?.user?.createdAt,j)){f=null;break e}d=i(o.id)}t[0]=i,t[1]=s?.user?.createdAt,t[2]=o,t[3]=d,t[4]=f}else o=t[2],d=t[3],f=t[4];if(f!==Symbol.for("react.early_return_sentinel"))return f;if(d)return null;let x;t[5]!==e?(x=e("announcements.release.ariaLabel"),t[5]=e,t[6]=x):x=t[6];let c;t[7]!==e?(c=e("announcements.release.dismiss"),t[7]=e,t[8]=c):c=t[8];const v=o.eyebrow,m=o.title;let u;t[9]!==o.id||t[10]!==l?(u=()=>l(o.id),t[9]=o.id,t[10]=l,t[11]=u):u=t[11];let p;t[12]!==o.id||t[13]!==o.learnMoreHref||t[14]!==l||t[15]!==e?(p=o.learnMoreHref?n.jsx("a",{href:o.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>l(o.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[12]=o.id,t[13]=o.learnMoreHref,t[14]=l,t[15]=e,t[16]=p):p=t[16];let g;t[17]!==o.cta||t[18]!==o.id||t[19]!==l?(g=o.cta?"href"in o.cta?n.jsx($,{asChild:!0,size:"sm",onClick:()=>l(o.id),children:n.jsx("a",{href:o.cta.href,children:o.cta.label})}):n.jsx($,{size:"sm",onClick:()=>a(!0),children:o.cta.label}):null,t[17]=o.cta,t[18]=o.id,t[19]=l,t[20]=g):g=t[20];let h;t[21]!==o.bullets?(h=o.bullets.map(Wt),t[21]=o.bullets,t[22]=h):h=t[22];let w;t[23]!==h?(w=n.jsx("ul",{className:"flex flex-col gap-3",children:h}),t[23]=h,t[24]=w):w=t[24];let b;t[25]!==o.id||t[26]!==l?(b=j=>{a(j),j||l(o.id)},t[25]=o.id,t[26]=l,t[27]=b):b=t[27];let S;t[28]!==r||t[29]!==b?(S=n.jsx(mt,{open:r,onOpenChange:b}),t[28]=r,t[29]=b,t[30]=S):S=t[30];let N;return t[31]!==o.eyebrow||t[32]!==o.title||t[33]!==w||t[34]!==S||t[35]!==x||t[36]!==c||t[37]!==u||t[38]!==p||t[39]!==g?(N=n.jsxs(Le,{ariaLabel:x,dismissLabel:c,eyebrow:v,title:m,onDismiss:u,footerLeading:p,actions:g,children:[w,S]}),t[31]=o.eyebrow,t[32]=o.title,t[33]=w,t[34]=S,t[35]=x,t[36]=c,t[37]=u,t[38]=p,t[39]=g,t[40]=N):N=t[40],N}function Wt(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Ie=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),J=Ie?"⌘":"Ctrl",M={keyboardShortcuts:{keys:[J,"K"],description:"Keyboard shortcuts"},back:{keys:[J,"["],description:"Back to previous"},focusChatInput:{keys:[J,"L"],description:"Focus chat input"},saveAndFormat:{keys:[J,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[J,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[J,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",J,"S"],description:"New task"},toggleDaemon:{keys:[J,"D"],description:"Toggle daemon logs"}},Qt=[{label:"General",shortcuts:[M.keyboardShortcuts,M.back,M.newTask,M.toggleDaemon]},{label:"Editor",shortcuts:[M.saveAndFormat]},{label:"Chat",shortcuts:[M.focusChatInput,M.togglePlanMode,M.sendMessage,M.newLine]},{label:"Questions",shortcuts:[M.selectOption]},{label:"Monitoring",shortcuts:[M.applyFilter]}];function ve(t){return Ie?t.metaKey:t.ctrlKey}function Yt(t){const e=I.c(11),{open:s,onOpenChange:i}=t,l=U();let r;e[0]!==l?(r=l("common.keyboardShortcutsDialog.title"),e[0]=l,e[1]=r):r=e[1];let a;e[2]!==r?(a=n.jsx(Te,{children:n.jsx(Oe,{children:r})}),e[2]=r,e[3]=a):a=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("div",{className:"flex flex-col gap-4",children:Qt.map(Xt)}),e[4]=o):o=e[4];let d;e[5]!==a?(d=n.jsxs(Ce,{className:"sm:max-w-md",children:[a,o]}),e[5]=a,e[6]=d):d=e[6];let f;return e[7]!==i||e[8]!==s||e[9]!==d?(f=n.jsx(Ee,{open:s,onOpenChange:i,children:d}),e[7]=i,e[8]=s,e[9]=d,e[10]=f):f=e[10],f}function Xt(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Zt)})]},t.label)}function Zt(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(en)})]},t.description)}function en(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const tn=300*1e3,nn=2;function sn(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function on(t,e){return t.count>=nn&&t.version!==null&&t.version!==e}function an(){const t=I.c(43),e=U(),s=xt();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={mutationFn:ln},t[0]=i):i=t[0];const l=ne(i);let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:ce.appVersionCheck(),queryFn:rn,refetchInterval:tn,refetchIntervalInBackground:!0,staleTime:0},t[1]=r):r=t[1];const{data:a,dataUpdatedAt:o}=re(r),[d,f]=B.useState(0);let x;t[2]===Symbol.for("react.memo_cache_sentinel")?(x={version:null,count:0},t[2]=x):x=t[2];const[c,v]=B.useState(x);o!==d&&(f(o),v(R=>sn(R,a,"4.239.0")));const[m,u]=B.useState(null),p=s;let g;t[3]!==s||t[4]!==l?(g=()=>window.location.reload(),t[3]=s,t[4]=l,t[5]=g):g=t[5];const h=g,w="announcements.version.refresh";if(!on(c,m))return null;let b;t[6]!==e?(b=e("announcements.version.ariaLabel"),t[6]=e,t[7]=b):b=t[7];let S;t[8]!==e?(S=e("announcements.version.dismiss"),t[8]=e,t[9]=S):S=t[9];let N;t[10]!==e?(N=e("announcements.version.eyebrow"),t[10]=e,t[11]=N):N=t[11];let j;t[12]!==e?(j=e("announcements.version.title"),t[12]=e,t[13]=j):j=t[13];const A="announcements.version.description";let y;t[14]!==e||t[15]!==A?(y=e(A),t[14]=e,t[15]=A,t[16]=y):y=t[16];let T;t[17]===Symbol.for("react.memo_cache_sentinel")?(T=n.jsx(he,{size:16}),t[17]=T):T=t[17];let _;t[18]!==c.version?(_=()=>u(c.version),t[18]=c.version,t[19]=_):_=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.239.0"}),t[20]=e,t[21]=k):k=t[21];let O;t[22]!==w||t[23]!==e?(O=e(w),t[22]=w,t[23]=e,t[24]=O):O=t[24];const L=p;let C;t[25]!==L?(C=ue(L),t[25]=L,t[26]=C):C=t[26];let D;t[27]!==C?(D=n.jsx(he,{size:14,className:C}),t[27]=C,t[28]=D):D=t[28];let E;t[29]!==h||t[30]!==p||t[31]!==O||t[32]!==D?(E=n.jsxs($,{size:"sm",disabled:p,onClick:h,children:[O,D]}),t[29]=h,t[30]=p,t[31]=O,t[32]=D,t[33]=E):E=t[33];let F;return t[34]!==_||t[35]!==k||t[36]!==E||t[37]!==b||t[38]!==S||t[39]!==N||t[40]!==j||t[41]!==y?(F=n.jsx(Le,{ariaLabel:b,dismissLabel:S,eyebrow:N,title:j,description:y,icon:T,tone:"system",onDismiss:_,footerLeading:k,actions:E}),t[34]=_,t[35]=k,t[36]=E,t[37]=b,t[38]=S,t[39]=N,t[40]=j,t[41]=y,t[42]=F):F=t[42],F}async function rn(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function ln(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function cn(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const dn=Date.parse("2026-07-21T00:00:00Z"),je=t=>cn(X.ptBrAnnouncementSeen(t));function un(){const t=I.c(35),e=U(),[s,i]=Ue(),{data:l,isPending:r}=Z.useSession(),a=l?.user,o=a?.id,d=a?.createdAt,f=d!=null&&new Date(d).getTime()<dn,x=He()==="pt-BR",c=!r&&!!o&&f&&x&&s.language==="en"&&!je(o).has(),[v,m]=B.useState(!1),[u,p]=B.useState(!1);!v&&!r&&(m(!0),c&&o&&(je(o).mark(),i(fn),p(!0),pe("pt_br_auto_switch_shown")));let g;t[0]===Symbol.for("react.memo_cache_sentinel")?(g=q=>{pe("pt_br_auto_switch_closed",{action:q}),p(!1)},t[0]=g):g=t[0];const h=g;let w;t[1]!==i?(w=()=>{i(mn),h("switch-back")},t[1]=i,t[2]=w):w=t[2];const b=w;let S;t[3]===Symbol.for("react.memo_cache_sentinel")?(S=q=>!q&&h("dismiss"),t[3]=S):S=t[3];let N;t[4]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=N):N=t[4];let j;t[5]!==e?(j=e("announcements.ptBr.title"),t[5]=e,t[6]=j):j=t[6];let A;t[7]!==j?(A=n.jsx(Oe,{children:j}),t[7]=j,t[8]=A):A=t[8];let y;t[9]!==e?(y=e("announcements.ptBr.description"),t[9]=e,t[10]=y):y=t[10];let T;t[11]!==y?(T=n.jsx(pt,{children:y}),t[11]=y,t[12]=T):T=t[12];let _;t[13]!==A||t[14]!==T?(_=n.jsxs(Te,{children:[A,T]}),t[13]=A,t[14]=T,t[15]=_):_=t[15];let k;t[16]!==e?(k=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=k):k=t[17];let O;t[18]!==b||t[19]!==k?(O=n.jsx($,{variant:"outline",onClick:b,children:k}),t[18]=b,t[19]=k,t[20]=O):O=t[20];let L;t[21]===Symbol.for("react.memo_cache_sentinel")?(L=()=>h("ok"),t[21]=L):L=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let D;t[24]!==C?(D=n.jsx($,{onClick:L,children:C}),t[24]=C,t[25]=D):D=t[25];let E;t[26]!==O||t[27]!==D?(E=n.jsxs(yt,{children:[O,D]}),t[26]=O,t[27]=D,t[28]=E):E=t[28];let F;t[29]!==E||t[30]!==_?(F=n.jsxs(Ce,{className:"sm:max-w-md",children:[N,_,E]}),t[29]=E,t[30]=_,t[31]=F):F=t[31];let R;return t[32]!==u||t[33]!==F?(R=n.jsx(Ee,{open:u,onOpenChange:S,children:F}),t[32]=u,t[33]=F,t[34]=R):R=t[34],R}function mn(t){return{...t,language:"en"}}function fn(t){return{...t,language:"pt-BR"}}function gn(t){const e=Je(t);return typeof e=="string"?e:void 0}function hn(){return gn("experiment-pipeline-check"),null}function pn(t){const e=I.c(1),{activeOrg:s}=t;if(!s)return null;Ke(s.id,{name:s.name??void 0,slug:s.slug??void 0}),Ge();let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(hn,{}),e[0]=i):i=e[0],i}function yn(t){const{prev:e,virtualMcpId:s,decopilotId:i,savedLayout:l,opts:r,autosendValue:a}=t,o={};s?o.virtualmcpid=s:e.virtualmcpid&&(o.virtualmcpid=e.virtualmcpid);const d=typeof e.virtualmcpid=="string"?e.virtualmcpid:i,x=(s??d)!==d;let c;if(r?.main)o.main=r.main;else if(l)l.main!==void 0&&(o.main=l.main),l.sidepanel!==void 0&&(c=l.sidepanel);else if(!x){const v=e.main;v&&typeof v=="string"&&!ft(v)&&(o.main=v)}return c!==void 0&&(o.sidepanel=c),r?.autosend&&(o.autosend=a),o}const $e="studio:thread-layout:v1",xn=50;function ze(t){const e={};return(t.main===0||typeof t.main=="string")&&(e.main=t.main),(t.sidepanel===0||t.sidepanel==="chat")&&(e.sidepanel=t.sidepanel),e}function bn(t,e,s,i=xn){const l=t.filter(([r])=>r!==e);for(l.push([e,ze(s)]);l.length>i;)l.shift();return l}function ge(){try{const t=sessionStorage.getItem($e);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function Fe(t){try{sessionStorage.setItem($e,JSON.stringify(t))}catch{}}function wn(t,e){t&&Fe(bn(ge(),t,e))}function Sn(t){if(!t)return null;const e=ge().find(([s])=>s===t);return e?ze(e[1]):null}function Gn(t){if(!t)return;const e=ge(),s=e.filter(([i])=>i!==t);s.length!==e.length&&Fe(s)}function Me(t){return{queryKey:ce.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function Vn(t){const e=I.c(10);let s;e[0]!==t?(s=Me(t),e[0]=t,e[1]=s):s=e[1];const i=re(s);let l;e[2]!==i.data?.prompts?(l=i.data?.prompts??[],e[2]=i.data?.prompts,e[3]=l):l=e[3];let r;e[4]!==i.data?.tiles?(r=i.data?.tiles??[],e[4]=i.data?.tiles,e[5]=r):r=e[5];let a;return e[6]!==i.isLoading||e[7]!==l||e[8]!==r?(a={isLoading:i.isLoading,prompts:l,tiles:r},e[6]=i.isLoading,e[7]=l,e[8]=r,e[9]=a):a=e[9],a}function vn(t){const e=I.c(31),{orgSlug:s,orgName:i,domain:l}=t,r=U();let a;e[0]!==s?(a=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=a):a=e[1];const o=a,d=jn;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(ke,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let x;e[3]!==r?(x=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=x):x=e[4];let c;e[5]!==x?(c=n.jsx("h3",{className:"text-lg font-medium",children:x}),e[5]=x,e[6]=c):c=e[6];let v;e[7]!==l||e[8]!==i||e[9]!==r?(v=i?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:i})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),l?` ${r("common.ssoRequiredScreen.via",{domain:l})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=l,e[8]=i,e[9]=r,e[10]=v):v=e[10];let m;e[11]!==v?(m=n.jsx("p",{className:"text-sm text-muted-foreground",children:v}),e[11]=v,e[12]=m):m=e[12];let u;e[13]!==c||e[14]!==m?(u=n.jsxs("div",{className:"space-y-2",children:[c,m]}),e[13]=c,e[14]=m,e[15]=u):u=e[15];let p;e[16]!==r?(p=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=p):p=e[17];let g;e[18]!==o||e[19]!==p?(g=n.jsx($,{onClick:o,children:p}),e[18]=o,e[19]=p,e[20]=g):g=e[20];let h;e[21]!==r?(h=r("common.ssoRequiredScreen.goBack"),e[21]=r,e[22]=h):h=e[22];let w;e[23]!==h?(w=n.jsx($,{variant:"ghost",onClick:d,children:h}),e[23]=h,e[24]=w):w=e[24];let b;e[25]!==w||e[26]!==g?(b=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,w]}),e[25]=w,e[26]=g,e[27]=b):b=e[27];let S;return e[28]!==b||e[29]!==u?(S=n.jsxs(ee,{children:[f,u,b]}),e[28]=b,e[29]=u,e[30]=S):S=e[30],S}function jn(){window.location.href="/"}function kn(t){const e=I.c(8),{org:s,children:i}=t,r=jt(s.id,s.slug)?.enabled_plugins??null;let a;e[0]!==s.id||e[1]!==s.name||e[2]!==r?(a={id:s.id,organizationId:s.id,slug:"_org",name:s.name,enabledPlugins:r,ui:null},e[0]=s.id,e[1]=s.name,e[2]=r,e[3]=a):a=e[3];const o=a;let d;return e[4]!==i||e[5]!==s||e[6]!==o?(d=n.jsx(ot,{org:s,project:o,children:i}),e[4]=i,e[5]=s,e[6]=o,e[7]=d):d=e[7],d}function Nn(){const t=Ve(),e=vt(),{org:s}=We(),i=Ae({strict:!1}),l=Qe({strict:!1}),r=i.org??"",a=i.taskId??"",o=(m,u,p=!0)=>t({to:"/$org/$taskId",params:{org:r,taskId:m},search:u,replace:p}),d=(m,u=!0)=>o(a,m,u),f=m=>d(u=>({...u,sidepanel:m})),x=(m,u,p)=>{const g=!!a&&a===m;a&&!g&&wn(a,{main:l.main,sidepanel:l.sidepanel});const h=g?null:Sn(m),w=be(s.id).id;return o(m,b=>yn({prev:b,virtualMcpId:u,decopilotId:w,savedLayout:h,opts:p,autosendValue:gt}),!1)};return{openSidePanel:f,setTaskId:x,createNewTask:async(m,u,p)=>{const g=crypto.randomUUID(),h=m??l.virtualmcpid??be(s.id).id;try{await e?.create({id:g,virtual_mcp_id:h,...u?{branch:u}:{}})}catch{}x(g,h,p)},openTab:m=>o(a||crypto.randomUUID(),u=>({...u,main:m}))}}function An(){const t=I.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const i=Ye(e)?.params.org;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},t[1]=l):l=t[1];const{taskId:r}=Ae(l),[a,o]=B.useState(!1),d=Xe(),f=i??"";let x;t[2]!==f?(x=Me(f),t[2]=f,t[3]=x):x=t[3];const c=!!i&&!r;let v;t[4]!==x||t[5]!==c?(v={...x,enabled:c},t[4]=x,t[5]=c,t[6]=v):v=t[6],re(v);const{data:m}=Z.useSession(),u=m?.user?.id;let p;t[7]!==i||t[8]!==u?(p=i&&u?Ze(u,i):null,t[7]=i,t[8]=u,t[9]=p):p=t[9];const g=p;let h,w;t[10]!==d?(h=()=>{const P=z=>{if(ve(z)&&z.code==="KeyK"){z.preventDefault(),o(!0);return}ve(z)&&z.code==="BracketLeft"&&d.history.canGoBack()&&(z.preventDefault(),d.history.back())};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},w=[d],t[10]=d,t[11]=h,t[12]=w):(h=t[11],w=t[12]),B.useEffect(h,w);let b;t[13]!==i?(b=ce.activeOrganization(i),t[13]=i,t[14]=b):b=t[14];let S;t[15]!==i||t[16]!==u?(S=async()=>{if(!i)return null;performance.mark("mesh:active-org-fetch:start");const{data:P}=await Z.organization.getFullOrganization({query:{organizationSlug:i}}).finally(_n),z=ye(P);return P&&!z&&localStorage.setItem(X.lastOrgSlug(),i),u&&P&&tt(u,i,P),P},t[15]=i,t[16]=u,t[17]=S):S=t[17];const N=g?g.data:void 0,j=g?.updatedAt;let A;t[18]!==S||t[19]!==N||t[20]!==j||t[21]!==b?(A={queryKey:b,queryFn:S,initialData:N,initialDataUpdatedAt:j,gcTime:1/0,refetchOnWindowFocus:!1},t[18]=S,t[19]=N,t[20]=j,t[21]=b,t[22]=A):A=t[22];const{data:y}=Ne(A),T=y?.id,_=y?.slug,{data:k}=kt(T,_),O=T??"",L=_??"";let C;t[23]!==O||t[24]!==L?(C=wt({connectionId:St,orgId:O,orgSlug:L}),t[23]=O,t[24]=L,t[25]=C):C=t[25];const D=!!T&&!!_;let E;if(t[26]!==C||t[27]!==D?(E={...C,enabled:D},t[26]=C,t[27]=D,t[28]=E):E=t[28],re(E),!y){let P;t[29]===Symbol.for("react.memo_cache_sentinel")?(P=n.jsx(nt,{}),t[29]=P):P=t[29];let z;return t[30]!==i?(z=n.jsx(B.Suspense,{fallback:P,children:n.jsx(It,{orgSlug:i})}),t[30]=i,t[31]=z):z=t[31],z}if(ye(y)){localStorage.getItem(X.lastOrgSlug())===i&&localStorage.removeItem(X.lastOrgSlug());let P;return t[32]!==y.name?(P=n.jsx(et,{orgName:y.name}),t[32]=y.name,t[33]=P):P=t[33],P}if(k?.ssoRequired&&!k.authenticated){let P;return t[34]!==y.id||t[35]!==y.name||t[36]!==y.slug||t[37]!==k.domain?(P=n.jsx(vn,{orgId:y.id,orgSlug:y.slug,orgName:y.name,domain:k.domain}),t[34]=y.id,t[35]=y.name,t[36]=y.slug,t[37]=k.domain,t[38]=P):P=t[38],P}const R=y.logo??null;let q;t[39]!==y||t[40]!==R?(q={...y,logo:R},t[39]=y,t[40]=R,t[41]=q):q=t[41];let Q;t[42]!==y?(Q=n.jsx(pn,{activeOrg:y}),t[42]=y,t[43]=Q):Q=t[43];let se;t[44]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(st,{}),t[44]=se):se=t[44];let oe;t[45]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Vt,{}),n.jsx(an,{})]}),t[45]=oe):oe=t[45];let Y;t[46]!==a?(Y=n.jsx(Yt,{open:a,onOpenChange:o}),t[46]=a,t[47]=Y):Y=t[47];let ie;t[48]===Symbol.for("react.memo_cache_sentinel")?(ie=n.jsx(un,{}),t[48]=ie):ie=t[48];let ae;return t[49]!==q||t[50]!==Q||t[51]!==Y?(ae=n.jsxs(kn,{org:q,children:[Q,se,oe,Y,ie]}),t[49]=q,t[50]=Q,t[51]=Y,t[52]=ae):ae=t[52],ae}function _n(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Tn(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(bt,{children:n.jsx(An,{})}),t[0]=e):e=t[0],e}const Wn=Object.freeze(Object.defineProperty({__proto__:null,default:Tn,usePanelActions:Nn},Symbol.toStringTag,{value:"Module"}));export{M as K,Vn as a,Gn as f,ve as i,cn as m,Wn as s,Nn as u};
|
|
1
|
+
import{c as I,b as U,e as ne,j as n,B as $,t as te,bV as ee,y as ke,a as Z,w as Re,x as Ne,K as ce,bW as qe,bX as Be,G as X,m as ue,r as B,n as re,at as he,v as Ue,bY as He,p as pe,bZ as Je,b_ as Ke,b$ as Ge,d as Ve,F as We,f as Ae,u as Qe,J as Ye,be as Xe,c0 as Ze,c1 as ye,c2 as et,c3 as tt,S as nt,O as st,c4 as ot}from"./index-BphIXXOp.js";import{A as de}from"./avatar-BqAz0FLa.js";import{t as _e,a as it}from"./Users03-DP3zwt6-.js";import{i as at}from"./SearchLg-CYNvKytJ.js";import{i as rt,s as lt,a as H,b as ct,n as dt}from"./Stars02-CH68Qhm_.js";import{s as ut}from"./XClose-DdXn46Em.js";import{D as mt,s as ft,A as gt}from"./tab-id-BJUTVZdl.js";import{i as K}from"./CheckCircle-D-nlOrXB.js";import{i as xe}from"./FilterLines-C9pmu5SZ.js";import{i as ht}from"./Monitor01-BKGGKBRj.js";import{i as G}from"./Zap-li0rR-RI.js";import{a as Te,b as Oe,d as Ce,e as Ee,h as pt,c as yt}from"./dialog-C2XtKj4W.js";import{u as xt}from"./use-is-desktop-app-BNujXJc_.js";import{R as bt}from"./required-auth-layout-DYO8_0ig.js";import{a as be,m as wt,S as St}from"./use-mcp-client-DKcZ7v-W.js";import{b as vt}from"./hooks-Cd2G3711.js";import{h as jt}from"./use-organization-settings-C62jhu_V.js";import{u as kt}from"./use-org-sso-8p_mXDai.js";function Nt(t){const e=I.c(49),{orgName:s,orgSlug:i,orgLogo:l,domain:r}=t,a=U();let o;e[0]!==i||e[1]!==a?(o=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:i})}),O=await k.json();if(!k.ok||!O.success)throw new Error(O.error??a("common.autoDomainJoinScreen.joinError"));return O},e[0]=i,e[1]=a,e[2]=o):o=e[2];let d;e[3]!==i?(d=k=>{window.location.href=`/${k.slug??i}`},e[3]=i,e[4]=d):d=e[4];let f;e[5]!==a?(f=k=>{te.error(k instanceof Error?k.message:a("common.autoDomainJoinScreen.joinError"))},e[5]=a,e[6]=f):f=e[6];let x;e[7]!==o||e[8]!==d||e[9]!==f?(x={mutationFn:o,onSuccess:d,onError:f},e[7]=o,e[8]=d,e[9]=f,e[10]=x):x=e[10];const c=ne(x),v=At;let m;e[11]!==l||e[12]!==s?(m=l?n.jsx(de,{url:l,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[11]=l,e[12]=s,e[13]=m):m=e[13];let u;e[14]!==s||e[15]!==a?(u=a("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=a,e[16]=u):u=e[16];let p;e[17]!==u?(p=n.jsx("h3",{className:"text-lg font-medium",children:u}),e[17]=u,e[18]=p):p=e[18];let g;e[19]!==r||e[20]!==a?(g=a("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=a,e[21]=g):g=e[21];let h;e[22]!==g?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[22]=g,e[23]=h):h=e[23];let w;e[24]!==p||e[25]!==h?(w=n.jsxs("div",{className:"space-y-2",children:[p,h]}),e[24]=p,e[25]=h,e[26]=w):w=e[26];let b;e[27]!==c?(b=()=>c.mutate(),e[27]=c,e[28]=b):b=e[28];let S;e[29]!==c.isPending||e[30]!==s||e[31]!==a?(S=c.isPending?a("common.autoDomainJoinScreen.joining"):a("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=c.isPending,e[30]=s,e[31]=a,e[32]=S):S=e[32];let N;e[33]!==c.isPending||e[34]!==b||e[35]!==S?(N=n.jsx($,{onClick:b,disabled:c.isPending,children:S}),e[33]=c.isPending,e[34]=b,e[35]=S,e[36]=N):N=e[36];const j=c.isPending;let A;e[37]!==a?(A=a("common.autoDomainJoinScreen.goHome"),e[37]=a,e[38]=A):A=e[38];let y;e[39]!==c.isPending||e[40]!==A?(y=n.jsx($,{variant:"ghost",onClick:v,disabled:j,children:A}),e[39]=c.isPending,e[40]=A,e[41]=y):y=e[41];let T;e[42]!==N||e[43]!==y?(T=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,y]}),e[42]=N,e[43]=y,e[44]=T):T=e[44];let _;return e[45]!==w||e[46]!==T||e[47]!==m?(_=n.jsxs(ee,{children:[m,w,T]}),e[45]=w,e[46]=T,e[47]=m,e[48]=_):_=e[48],_}function At(){window.location.href="/"}function we(t){const e=I.c(25),{orgSlug:s,orgName:i,reason:l}=t,r=U(),a=_t,o=l==="not-found",d=o?at:ke;let f;e[0]!==o||e[1]!==r?(f=r(o?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=o,e[1]=r,e[2]=f):f=e[2];const x=f;let c;e[3]!==o||e[4]!==i||e[5]!==s||e[6]!==r?(c=o?n.jsxs(n.Fragment,{children:[r("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:[r("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:i??s}),".",n.jsx("br",{}),r("common.noAccessScreen.askAdminToInvite")]}),e[3]=o,e[4]=i,e[5]=s,e[6]=r,e[7]=c):c=e[7];const v=c;let m;e[8]!==d?(m=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(d,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=d,e[9]=m):m=e[9];let u;e[10]!==x?(u=n.jsx("h3",{className:"text-lg font-medium",children:x}),e[10]=x,e[11]=u):u=e[11];let p;e[12]!==v?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:v}),e[12]=v,e[13]=p):p=e[13];let g;e[14]!==u||e[15]!==p?(g=n.jsxs("div",{className:"space-y-2",children:[u,p]}),e[14]=u,e[15]=p,e[16]=g):g=e[16];let h;e[17]!==r?(h=r("common.noAccessScreen.goToHome"),e[17]=r,e[18]=h):h=e[18];let w;e[19]!==h?(w=n.jsx($,{onClick:a,children:h}),e[19]=h,e[20]=w):w=e[20];let b;return e[21]!==m||e[22]!==g||e[23]!==w?(b=n.jsxs(ee,{children:[m,g,w]}),e[21]=m,e[22]=g,e[23]=w,e[24]=b):b=e[24],b}function _t(){window.location.href="/"}function Tt(t){const e=I.c(59),{invitationId:s,orgName:i,orgSlug:l,orgLogo:r}=t,a=U();let o;e[0]!==s?(o=async()=>{const E=await Z.organization.acceptInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[0]=s,e[1]=o):o=e[1];let d;e[2]!==l?(d=()=>{Re(),window.location.href=`/${l}`},e[2]=l,e[3]=d):d=e[3];let f;e[4]!==a?(f=E=>{te.error(E instanceof Error?E.message:a("common.pendingInviteScreen.failedToAccept"))},e[4]=a,e[5]=f):f=e[5];let x;e[6]!==o||e[7]!==d||e[8]!==f?(x={mutationFn:o,onSuccess:d,onError:f},e[6]=o,e[7]=d,e[8]=f,e[9]=x):x=e[9];const c=ne(x);let v;e[10]!==s?(v=async()=>{const E=await Z.organization.rejectInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[10]=s,e[11]=v):v=e[11];let m,u;e[12]!==a?(m=()=>{te.success(a("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},u=E=>{te.error(E instanceof Error?E.message:a("common.pendingInviteScreen.failedToDecline"))},e[12]=a,e[13]=m,e[14]=u):(m=e[13],u=e[14]);let p;e[15]!==v||e[16]!==m||e[17]!==u?(p={mutationFn:v,onSuccess:m,onError:u},e[15]=v,e[16]=m,e[17]=u,e[18]=p):p=e[18];const g=ne(p),h=c.isPending||g.isPending;let w;e[19]!==r||e[20]!==i?(w=r?n.jsx(de,{url:r,fallback:i.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(rt,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=i,e[21]=w):w=e[21];let b;e[22]!==i||e[23]!==a?(b=a("common.pendingInviteScreen.invitedTo",{orgName:i}),e[22]=i,e[23]=a,e[24]=b):b=e[24];let S;e[25]!==b?(S=n.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=S):S=e[26];let N;e[27]!==a?(N=a("common.pendingInviteScreen.acceptDescription"),e[27]=a,e[28]=N):N=e[28];let j;e[29]!==N?(j=n.jsx("p",{className:"text-sm text-muted-foreground",children:N}),e[29]=N,e[30]=j):j=e[30];let A;e[31]!==S||e[32]!==j?(A=n.jsxs("div",{className:"space-y-2",children:[S,j]}),e[31]=S,e[32]=j,e[33]=A):A=e[33];let y;e[34]!==c?(y=()=>c.mutate(),e[34]=c,e[35]=y):y=e[35];let T;e[36]!==c.isPending||e[37]!==a?(T=c.isPending?a("common.pendingInviteScreen.acceptingButton"):a("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=a,e[38]=T):T=e[38];let _;e[39]!==h||e[40]!==y||e[41]!==T?(_=n.jsx($,{onClick:y,disabled:h,children:T}),e[39]=h,e[40]=y,e[41]=T,e[42]=_):_=e[42];let k;e[43]!==g?(k=()=>g.mutate(),e[43]=g,e[44]=k):k=e[44];let O;e[45]!==g.isPending||e[46]!==a?(O=g.isPending?a("common.pendingInviteScreen.decliningButton"):a("common.pendingInviteScreen.declineButton"),e[45]=g.isPending,e[46]=a,e[47]=O):O=e[47];let L;e[48]!==h||e[49]!==k||e[50]!==O?(L=n.jsx($,{variant:"ghost",onClick:k,disabled:h,children:O}),e[48]=h,e[49]=k,e[50]=O,e[51]=L):L=e[51];let C;e[52]!==_||e[53]!==L?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,L]}),e[52]=_,e[53]=L,e[54]=C):C=e[54];let D;return e[55]!==A||e[56]!==C||e[57]!==w?(D=n.jsxs(ee,{children:[w,A,C]}),e[55]=A,e[56]=C,e[57]=w,e[58]=D):D=e[58],D}function Ot(t){const e=I.c(23),{orgName:s,orgLogo:i}=t,l=U();let r;e[0]!==i||e[1]!==s?(r=i?n.jsx(de,{url:i,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(lt,{className:"h-6 w-6 text-primary"})}),e[0]=i,e[1]=s,e[2]=r):r=e[2];let a;e[3]!==l?(a=l("common.requestPendingScreen.title"),e[3]=l,e[4]=a):a=e[4];let o;e[5]!==a?(o=n.jsx("h3",{className:"text-lg font-medium",children:a}),e[5]=a,e[6]=o):o=e[6];let d;e[7]!==s||e[8]!==l?(d=l("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=l,e[9]=d):d=e[9];let f;e[10]!==d?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[10]=d,e[11]=f):f=e[11];let x;e[12]!==o||e[13]!==f?(x=n.jsxs("div",{className:"space-y-2",children:[o,f]}),e[12]=o,e[13]=f,e[14]=x):x=e[14];let c;e[15]!==l?(c=l("common.requestPendingScreen.goHome"),e[15]=l,e[16]=c):c=e[16];let v;e[17]!==c?(v=n.jsx($,{variant:"ghost",onClick:Ct,children:c}),e[17]=c,e[18]=v):v=e[18];let m;return e[19]!==r||e[20]!==x||e[21]!==v?(m=n.jsxs(ee,{children:[r,x,v]}),e[19]=r,e[20]=x,e[21]=v,e[22]=m):m=e[22],m}function Ct(){window.location.href="/"}function Et(t){const e=I.c(45),{orgName:s,orgSlug:i,orgLogo:l,domain:r}=t,a=U();let o;e[0]!==i?(o=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:i})}),k=await _.json();if(!_.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=i,e[1]=o):o=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=Pt,e[2]=d):d=e[2];let f;e[3]!==a?(f=_=>{te.error(_ instanceof Error?_.message:a("common.requestToJoinScreen.failedToRequest"))},e[3]=a,e[4]=f):f=e[4];let x;e[5]!==o||e[6]!==f?(x={mutationFn:o,onSuccess:d,onError:f},e[5]=o,e[6]=f,e[7]=x):x=e[7];const c=ne(x);let v;e[8]!==l||e[9]!==s?(v=l?n.jsx(de,{url:l,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[8]=l,e[9]=s,e[10]=v):v=e[10];let m;e[11]!==s||e[12]!==a?(m=a("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=a,e[13]=m):m=e[13];let u;e[14]!==m?(u=n.jsx("h3",{className:"text-lg font-medium",children:m}),e[14]=m,e[15]=u):u=e[15];let p;e[16]!==r||e[17]!==a?(p=a("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=a,e[18]=p):p=e[18];let g;e[19]!==p?(g=n.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[19]=p,e[20]=g):g=e[20];let h;e[21]!==u||e[22]!==g?(h=n.jsxs("div",{className:"space-y-2",children:[u,g]}),e[21]=u,e[22]=g,e[23]=h):h=e[23];let w;e[24]!==c?(w=()=>c.mutate(),e[24]=c,e[25]=w):w=e[25];let b;e[26]!==c.isPending||e[27]!==a?(b=c.isPending?a("common.requestToJoinScreen.requesting"):a("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=a,e[28]=b):b=e[28];let S;e[29]!==c.isPending||e[30]!==w||e[31]!==b?(S=n.jsx($,{onClick:w,disabled:c.isPending,children:b}),e[29]=c.isPending,e[30]=w,e[31]=b,e[32]=S):S=e[32];const N=c.isPending;let j;e[33]!==a?(j=a("common.requestToJoinScreen.goToHome"),e[33]=a,e[34]=j):j=e[34];let A;e[35]!==c.isPending||e[36]!==j?(A=n.jsx($,{variant:"ghost",onClick:Lt,disabled:N,children:j}),e[35]=c.isPending,e[36]=j,e[37]=A):A=e[37];let y;e[38]!==S||e[39]!==A?(y=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[S,A]}),e[38]=S,e[39]=A,e[40]=y):y=e[40];let T;return e[41]!==h||e[42]!==y||e[43]!==v?(T=n.jsxs(ee,{children:[v,h,y]}),e[41]=h,e[42]=y,e[43]=v,e[44]=T):T=e[44],T}function Lt(){window.location.href="/"}function Pt(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Dt(t){const e=I.c(7);let s;e[0]!==t?(s=ce.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let i;e[2]!==t?(i=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=i):i=e[3];let l;return e[4]!==s||e[5]!==i?(l={queryKey:s,queryFn:i,refetchOnWindowFocus:!1},e[4]=s,e[5]=i,e[6]=l):l=e[6],Ne(l)}function It({orgSlug:t}){const{data:e}=Dt(t);if(e.status!=="member"){qe()?.org===t&&Be();const s=localStorage.getItem(X.lastOrgSlug())===t;if(s&&localStorage.removeItem(X.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(we,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(Tt,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(Nt,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(Et,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(Ot,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(we,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Le(t){const e=I.c(42),{ariaLabel:s,dismissLabel:i,eyebrow:l,title:r,description:a,icon:o,children:d,footerLeading:f,actions:x,onDismiss:c,tone:v}=t,m=v===void 0?"neutral":v,u=f||x;let p;e[0]!==m?(p=m==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=m,e[1]=p):p=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(ut,{size:14}),e[2]=g):g=e[2];let h;e[3]!==i||e[4]!==c?(h=n.jsx($,{size:"icon-sm",variant:"ghost","aria-label":i,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:g}),e[3]=i,e[4]=c,e[5]=h):h=e[5];const w=o&&"flex items-start gap-3",b=d&&"pb-3";let S;e[6]!==w||e[7]!==b?(S=ue("p-4 pr-11",w,b),e[6]=w,e[7]=b,e[8]=S):S=e[8];let N;e[9]!==o?(N=o&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:o}),e[9]=o,e[10]=N):N=e[10];let j;e[11]!==l?(j=l&&n.jsx("p",{className:"text-xs text-muted-foreground",children:l}),e[11]=l,e[12]=j):j=e[12];let A;e[13]!==r?(A=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=A):A=e[14];let y;e[15]!==a?(y=a&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:a}),e[15]=a,e[16]=y):y=e[16];let T;e[17]!==A||e[18]!==y||e[19]!==j?(T=n.jsxs("div",{children:[j,A,y]}),e[17]=A,e[18]=y,e[19]=j,e[20]=T):T=e[20];let _;e[21]!==d?(_=d&&n.jsx("div",{className:"mt-3",children:d}),e[21]=d,e[22]=_):_=e[22];let k;e[23]!==T||e[24]!==_?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[T,_]}),e[23]=T,e[24]=_,e[25]=k):k=e[25];let O;e[26]!==k||e[27]!==S||e[28]!==N?(O=n.jsxs("div",{className:S,children:[N,k]}),e[26]=k,e[27]=S,e[28]=N,e[29]=O):O=e[29];let L;e[30]!==x||e[31]!==f||e[32]!==u||e[33]!==m?(L=u&&n.jsxs("div",{className:ue("flex items-center justify-between gap-3 px-4 py-2.5",m==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:x})]}),e[30]=x,e[31]=f,e[32]=u,e[33]=m,e[34]=L):L=e[34];let C;return e[35]!==s||e[36]!==O||e[37]!==L||e[38]!==p||e[39]!==h||e[40]!==m?(C=n.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":m,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[p,h,O,L]}),e[35]=s,e[36]=O,e[37]=L,e[38]=p,e[39]=h,e[40]=m,e[41]=C):C=e[41],C}const $t=[{id:"native-app-macos",date:"2026-07-30",eyebrow:"Now Available",title:"New beta studio app",bullets:[{icon:G,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:H,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:ct,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:ht,title:"Apple Silicon only — Windows coming soon",body:"Today's builds target macOS on Apple Silicon; Windows is next."}],cta:{label:"Install on Mac",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases"},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:H,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:K,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:G,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:H,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:K,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:G,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:K,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:H,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:G,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:H,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:K,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:H,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:K,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:H,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:xe,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:K,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:it,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:G,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:K,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:H,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:xe,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:H,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:dt,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],Pe=$t,le="studio.release-feed.v1",me=new Set;let V="",W={},fe=!1;function zt(){if(fe)return V||"{}";try{return localStorage.getItem(le)??"{}"}catch{return V||"{}"}}function De(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Se(){const t=zt();return t!==V&&(V=t,W=De(t)),W}function Ft(t){me.add(t);const e=s=>{if(!(s.key!==le&&s.key!==null)){try{const i=localStorage.getItem(le)??"{}",r={...De(i),...W};W=r,V=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{me.delete(t),window.removeEventListener("storage",e)}}function Mt(t){W=t,V=JSON.stringify(t);try{localStorage.setItem(le,V),fe=!1}catch{fe=!0}me.forEach(e=>e())}function Rt(){const t=I.c(7),e=B.useSyncExternalStore(Ft,Se,Se);let s;t[0]!==e?(s=d=>!!e[d],t[0]=e,t[1]=s):s=t[1];const i=s,l=qt;let r;t[2]!==e?(r=Pe.reduce((d,f)=>e[f.id]?d:d+1,0),t[2]=e,t[3]=r):r=t[3];const a=r;let o;return t[4]!==i||t[5]!==a?(o={isSeen:i,markSeen:l,unseenCount:a},t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function qt(t){W[t]||Mt({...W,[t]:{seenAt:new Date().toISOString()}})}const Bt=720*60*60*1e3,Ut=10080*60*1e3;function Ht(t){const[e,s,i]=t.split("-").map(Number);return!e||!s||!i?new Date(t).getTime():new Date(e,s-1,i).getTime()}function Jt(t){const e=Pe[0];if(!e)return null;const s=Ht(e.date),i=t-s;return i<0||i>Bt?null:e}function Kt(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function Gt(t,e){const s=Kt(t);return s===null?!1:e-s>=Ut}function Vt(){const t=I.c(41),e=U(),{data:s}=Z.useSession(),{isSeen:i,markSeen:l}=Rt(),[r,a]=B.useState(!1);let o,d,f;if(t[0]!==i||t[1]!==s?.user?.createdAt){f=Symbol.for("react.early_return_sentinel");e:{const j=Date.now();if(o=Jt(j),!o){f=null;break e}if(!Gt(s?.user?.createdAt,j)){f=null;break e}d=i(o.id)}t[0]=i,t[1]=s?.user?.createdAt,t[2]=o,t[3]=d,t[4]=f}else o=t[2],d=t[3],f=t[4];if(f!==Symbol.for("react.early_return_sentinel"))return f;if(d)return null;let x;t[5]!==e?(x=e("announcements.release.ariaLabel"),t[5]=e,t[6]=x):x=t[6];let c;t[7]!==e?(c=e("announcements.release.dismiss"),t[7]=e,t[8]=c):c=t[8];const v=o.eyebrow,m=o.title;let u;t[9]!==o.id||t[10]!==l?(u=()=>l(o.id),t[9]=o.id,t[10]=l,t[11]=u):u=t[11];let p;t[12]!==o.id||t[13]!==o.learnMoreHref||t[14]!==l||t[15]!==e?(p=o.learnMoreHref?n.jsx("a",{href:o.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>l(o.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[12]=o.id,t[13]=o.learnMoreHref,t[14]=l,t[15]=e,t[16]=p):p=t[16];let g;t[17]!==o.cta||t[18]!==o.id||t[19]!==l?(g=o.cta?"href"in o.cta?n.jsx($,{asChild:!0,size:"sm",onClick:()=>l(o.id),children:n.jsx("a",{href:o.cta.href,children:o.cta.label})}):n.jsx($,{size:"sm",onClick:()=>a(!0),children:o.cta.label}):null,t[17]=o.cta,t[18]=o.id,t[19]=l,t[20]=g):g=t[20];let h;t[21]!==o.bullets?(h=o.bullets.map(Wt),t[21]=o.bullets,t[22]=h):h=t[22];let w;t[23]!==h?(w=n.jsx("ul",{className:"flex flex-col gap-3",children:h}),t[23]=h,t[24]=w):w=t[24];let b;t[25]!==o.id||t[26]!==l?(b=j=>{a(j),j||l(o.id)},t[25]=o.id,t[26]=l,t[27]=b):b=t[27];let S;t[28]!==r||t[29]!==b?(S=n.jsx(mt,{open:r,onOpenChange:b}),t[28]=r,t[29]=b,t[30]=S):S=t[30];let N;return t[31]!==o.eyebrow||t[32]!==o.title||t[33]!==w||t[34]!==S||t[35]!==x||t[36]!==c||t[37]!==u||t[38]!==p||t[39]!==g?(N=n.jsxs(Le,{ariaLabel:x,dismissLabel:c,eyebrow:v,title:m,onDismiss:u,footerLeading:p,actions:g,children:[w,S]}),t[31]=o.eyebrow,t[32]=o.title,t[33]=w,t[34]=S,t[35]=x,t[36]=c,t[37]=u,t[38]=p,t[39]=g,t[40]=N):N=t[40],N}function Wt(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Ie=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),J=Ie?"⌘":"Ctrl",M={keyboardShortcuts:{keys:[J,"K"],description:"Keyboard shortcuts"},back:{keys:[J,"["],description:"Back to previous"},focusChatInput:{keys:[J,"L"],description:"Focus chat input"},saveAndFormat:{keys:[J,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[J,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[J,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",J,"S"],description:"New task"},toggleDaemon:{keys:[J,"D"],description:"Toggle daemon logs"}},Qt=[{label:"General",shortcuts:[M.keyboardShortcuts,M.back,M.newTask,M.toggleDaemon]},{label:"Editor",shortcuts:[M.saveAndFormat]},{label:"Chat",shortcuts:[M.focusChatInput,M.togglePlanMode,M.sendMessage,M.newLine]},{label:"Questions",shortcuts:[M.selectOption]},{label:"Monitoring",shortcuts:[M.applyFilter]}];function ve(t){return Ie?t.metaKey:t.ctrlKey}function Yt(t){const e=I.c(11),{open:s,onOpenChange:i}=t,l=U();let r;e[0]!==l?(r=l("common.keyboardShortcutsDialog.title"),e[0]=l,e[1]=r):r=e[1];let a;e[2]!==r?(a=n.jsx(Te,{children:n.jsx(Oe,{children:r})}),e[2]=r,e[3]=a):a=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("div",{className:"flex flex-col gap-4",children:Qt.map(Xt)}),e[4]=o):o=e[4];let d;e[5]!==a?(d=n.jsxs(Ce,{className:"sm:max-w-md",children:[a,o]}),e[5]=a,e[6]=d):d=e[6];let f;return e[7]!==i||e[8]!==s||e[9]!==d?(f=n.jsx(Ee,{open:s,onOpenChange:i,children:d}),e[7]=i,e[8]=s,e[9]=d,e[10]=f):f=e[10],f}function Xt(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Zt)})]},t.label)}function Zt(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(en)})]},t.description)}function en(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const tn=300*1e3,nn=2;function sn(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function on(t,e){return t.count>=nn&&t.version!==null&&t.version!==e}function an(){const t=I.c(43),e=U(),s=xt();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={mutationFn:ln},t[0]=i):i=t[0];const l=ne(i);let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:ce.appVersionCheck(),queryFn:rn,refetchInterval:tn,refetchIntervalInBackground:!0,staleTime:0},t[1]=r):r=t[1];const{data:a,dataUpdatedAt:o}=re(r),[d,f]=B.useState(0);let x;t[2]===Symbol.for("react.memo_cache_sentinel")?(x={version:null,count:0},t[2]=x):x=t[2];const[c,v]=B.useState(x);o!==d&&(f(o),v(R=>sn(R,a,"4.239.2")));const[m,u]=B.useState(null),p=s;let g;t[3]!==s||t[4]!==l?(g=()=>window.location.reload(),t[3]=s,t[4]=l,t[5]=g):g=t[5];const h=g,w="announcements.version.refresh";if(!on(c,m))return null;let b;t[6]!==e?(b=e("announcements.version.ariaLabel"),t[6]=e,t[7]=b):b=t[7];let S;t[8]!==e?(S=e("announcements.version.dismiss"),t[8]=e,t[9]=S):S=t[9];let N;t[10]!==e?(N=e("announcements.version.eyebrow"),t[10]=e,t[11]=N):N=t[11];let j;t[12]!==e?(j=e("announcements.version.title"),t[12]=e,t[13]=j):j=t[13];const A="announcements.version.description";let y;t[14]!==e||t[15]!==A?(y=e(A),t[14]=e,t[15]=A,t[16]=y):y=t[16];let T;t[17]===Symbol.for("react.memo_cache_sentinel")?(T=n.jsx(he,{size:16}),t[17]=T):T=t[17];let _;t[18]!==c.version?(_=()=>u(c.version),t[18]=c.version,t[19]=_):_=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.239.2"}),t[20]=e,t[21]=k):k=t[21];let O;t[22]!==w||t[23]!==e?(O=e(w),t[22]=w,t[23]=e,t[24]=O):O=t[24];const L=p;let C;t[25]!==L?(C=ue(L),t[25]=L,t[26]=C):C=t[26];let D;t[27]!==C?(D=n.jsx(he,{size:14,className:C}),t[27]=C,t[28]=D):D=t[28];let E;t[29]!==h||t[30]!==p||t[31]!==O||t[32]!==D?(E=n.jsxs($,{size:"sm",disabled:p,onClick:h,children:[O,D]}),t[29]=h,t[30]=p,t[31]=O,t[32]=D,t[33]=E):E=t[33];let F;return t[34]!==_||t[35]!==k||t[36]!==E||t[37]!==b||t[38]!==S||t[39]!==N||t[40]!==j||t[41]!==y?(F=n.jsx(Le,{ariaLabel:b,dismissLabel:S,eyebrow:N,title:j,description:y,icon:T,tone:"system",onDismiss:_,footerLeading:k,actions:E}),t[34]=_,t[35]=k,t[36]=E,t[37]=b,t[38]=S,t[39]=N,t[40]=j,t[41]=y,t[42]=F):F=t[42],F}async function rn(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function ln(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function cn(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const dn=Date.parse("2026-07-21T00:00:00Z"),je=t=>cn(X.ptBrAnnouncementSeen(t));function un(){const t=I.c(35),e=U(),[s,i]=Ue(),{data:l,isPending:r}=Z.useSession(),a=l?.user,o=a?.id,d=a?.createdAt,f=d!=null&&new Date(d).getTime()<dn,x=He()==="pt-BR",c=!r&&!!o&&f&&x&&s.language==="en"&&!je(o).has(),[v,m]=B.useState(!1),[u,p]=B.useState(!1);!v&&!r&&(m(!0),c&&o&&(je(o).mark(),i(fn),p(!0),pe("pt_br_auto_switch_shown")));let g;t[0]===Symbol.for("react.memo_cache_sentinel")?(g=q=>{pe("pt_br_auto_switch_closed",{action:q}),p(!1)},t[0]=g):g=t[0];const h=g;let w;t[1]!==i?(w=()=>{i(mn),h("switch-back")},t[1]=i,t[2]=w):w=t[2];const b=w;let S;t[3]===Symbol.for("react.memo_cache_sentinel")?(S=q=>!q&&h("dismiss"),t[3]=S):S=t[3];let N;t[4]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=N):N=t[4];let j;t[5]!==e?(j=e("announcements.ptBr.title"),t[5]=e,t[6]=j):j=t[6];let A;t[7]!==j?(A=n.jsx(Oe,{children:j}),t[7]=j,t[8]=A):A=t[8];let y;t[9]!==e?(y=e("announcements.ptBr.description"),t[9]=e,t[10]=y):y=t[10];let T;t[11]!==y?(T=n.jsx(pt,{children:y}),t[11]=y,t[12]=T):T=t[12];let _;t[13]!==A||t[14]!==T?(_=n.jsxs(Te,{children:[A,T]}),t[13]=A,t[14]=T,t[15]=_):_=t[15];let k;t[16]!==e?(k=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=k):k=t[17];let O;t[18]!==b||t[19]!==k?(O=n.jsx($,{variant:"outline",onClick:b,children:k}),t[18]=b,t[19]=k,t[20]=O):O=t[20];let L;t[21]===Symbol.for("react.memo_cache_sentinel")?(L=()=>h("ok"),t[21]=L):L=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let D;t[24]!==C?(D=n.jsx($,{onClick:L,children:C}),t[24]=C,t[25]=D):D=t[25];let E;t[26]!==O||t[27]!==D?(E=n.jsxs(yt,{children:[O,D]}),t[26]=O,t[27]=D,t[28]=E):E=t[28];let F;t[29]!==E||t[30]!==_?(F=n.jsxs(Ce,{className:"sm:max-w-md",children:[N,_,E]}),t[29]=E,t[30]=_,t[31]=F):F=t[31];let R;return t[32]!==u||t[33]!==F?(R=n.jsx(Ee,{open:u,onOpenChange:S,children:F}),t[32]=u,t[33]=F,t[34]=R):R=t[34],R}function mn(t){return{...t,language:"en"}}function fn(t){return{...t,language:"pt-BR"}}function gn(t){const e=Je(t);return typeof e=="string"?e:void 0}function hn(){return gn("experiment-pipeline-check"),null}function pn(t){const e=I.c(1),{activeOrg:s}=t;if(!s)return null;Ke(s.id,{name:s.name??void 0,slug:s.slug??void 0}),Ge();let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(hn,{}),e[0]=i):i=e[0],i}function yn(t){const{prev:e,virtualMcpId:s,decopilotId:i,savedLayout:l,opts:r,autosendValue:a}=t,o={};s?o.virtualmcpid=s:e.virtualmcpid&&(o.virtualmcpid=e.virtualmcpid);const d=typeof e.virtualmcpid=="string"?e.virtualmcpid:i,x=(s??d)!==d;let c;if(r?.main)o.main=r.main;else if(l)l.main!==void 0&&(o.main=l.main),l.sidepanel!==void 0&&(c=l.sidepanel);else if(!x){const v=e.main;v&&typeof v=="string"&&!ft(v)&&(o.main=v)}return c!==void 0&&(o.sidepanel=c),r?.autosend&&(o.autosend=a),o}const $e="studio:thread-layout:v1",xn=50;function ze(t){const e={};return(t.main===0||typeof t.main=="string")&&(e.main=t.main),(t.sidepanel===0||t.sidepanel==="chat")&&(e.sidepanel=t.sidepanel),e}function bn(t,e,s,i=xn){const l=t.filter(([r])=>r!==e);for(l.push([e,ze(s)]);l.length>i;)l.shift();return l}function ge(){try{const t=sessionStorage.getItem($e);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function Fe(t){try{sessionStorage.setItem($e,JSON.stringify(t))}catch{}}function wn(t,e){t&&Fe(bn(ge(),t,e))}function Sn(t){if(!t)return null;const e=ge().find(([s])=>s===t);return e?ze(e[1]):null}function Gn(t){if(!t)return;const e=ge(),s=e.filter(([i])=>i!==t);s.length!==e.length&&Fe(s)}function Me(t){return{queryKey:ce.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function Vn(t){const e=I.c(10);let s;e[0]!==t?(s=Me(t),e[0]=t,e[1]=s):s=e[1];const i=re(s);let l;e[2]!==i.data?.prompts?(l=i.data?.prompts??[],e[2]=i.data?.prompts,e[3]=l):l=e[3];let r;e[4]!==i.data?.tiles?(r=i.data?.tiles??[],e[4]=i.data?.tiles,e[5]=r):r=e[5];let a;return e[6]!==i.isLoading||e[7]!==l||e[8]!==r?(a={isLoading:i.isLoading,prompts:l,tiles:r},e[6]=i.isLoading,e[7]=l,e[8]=r,e[9]=a):a=e[9],a}function vn(t){const e=I.c(31),{orgSlug:s,orgName:i,domain:l}=t,r=U();let a;e[0]!==s?(a=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=a):a=e[1];const o=a,d=jn;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(ke,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let x;e[3]!==r?(x=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=x):x=e[4];let c;e[5]!==x?(c=n.jsx("h3",{className:"text-lg font-medium",children:x}),e[5]=x,e[6]=c):c=e[6];let v;e[7]!==l||e[8]!==i||e[9]!==r?(v=i?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:i})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),l?` ${r("common.ssoRequiredScreen.via",{domain:l})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=l,e[8]=i,e[9]=r,e[10]=v):v=e[10];let m;e[11]!==v?(m=n.jsx("p",{className:"text-sm text-muted-foreground",children:v}),e[11]=v,e[12]=m):m=e[12];let u;e[13]!==c||e[14]!==m?(u=n.jsxs("div",{className:"space-y-2",children:[c,m]}),e[13]=c,e[14]=m,e[15]=u):u=e[15];let p;e[16]!==r?(p=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=p):p=e[17];let g;e[18]!==o||e[19]!==p?(g=n.jsx($,{onClick:o,children:p}),e[18]=o,e[19]=p,e[20]=g):g=e[20];let h;e[21]!==r?(h=r("common.ssoRequiredScreen.goBack"),e[21]=r,e[22]=h):h=e[22];let w;e[23]!==h?(w=n.jsx($,{variant:"ghost",onClick:d,children:h}),e[23]=h,e[24]=w):w=e[24];let b;e[25]!==w||e[26]!==g?(b=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,w]}),e[25]=w,e[26]=g,e[27]=b):b=e[27];let S;return e[28]!==b||e[29]!==u?(S=n.jsxs(ee,{children:[f,u,b]}),e[28]=b,e[29]=u,e[30]=S):S=e[30],S}function jn(){window.location.href="/"}function kn(t){const e=I.c(8),{org:s,children:i}=t,r=jt(s.id,s.slug)?.enabled_plugins??null;let a;e[0]!==s.id||e[1]!==s.name||e[2]!==r?(a={id:s.id,organizationId:s.id,slug:"_org",name:s.name,enabledPlugins:r,ui:null},e[0]=s.id,e[1]=s.name,e[2]=r,e[3]=a):a=e[3];const o=a;let d;return e[4]!==i||e[5]!==s||e[6]!==o?(d=n.jsx(ot,{org:s,project:o,children:i}),e[4]=i,e[5]=s,e[6]=o,e[7]=d):d=e[7],d}function Nn(){const t=Ve(),e=vt(),{org:s}=We(),i=Ae({strict:!1}),l=Qe({strict:!1}),r=i.org??"",a=i.taskId??"",o=(m,u,p=!0)=>t({to:"/$org/$taskId",params:{org:r,taskId:m},search:u,replace:p}),d=(m,u=!0)=>o(a,m,u),f=m=>d(u=>({...u,sidepanel:m})),x=(m,u,p)=>{const g=!!a&&a===m;a&&!g&&wn(a,{main:l.main,sidepanel:l.sidepanel});const h=g?null:Sn(m),w=be(s.id).id;return o(m,b=>yn({prev:b,virtualMcpId:u,decopilotId:w,savedLayout:h,opts:p,autosendValue:gt}),!1)};return{openSidePanel:f,setTaskId:x,createNewTask:async(m,u,p)=>{const g=crypto.randomUUID(),h=m??l.virtualmcpid??be(s.id).id;try{await e?.create({id:g,virtual_mcp_id:h,...u?{branch:u}:{}})}catch{}x(g,h,p)},openTab:m=>o(a||crypto.randomUUID(),u=>({...u,main:m}))}}function An(){const t=I.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const i=Ye(e)?.params.org;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},t[1]=l):l=t[1];const{taskId:r}=Ae(l),[a,o]=B.useState(!1),d=Xe(),f=i??"";let x;t[2]!==f?(x=Me(f),t[2]=f,t[3]=x):x=t[3];const c=!!i&&!r;let v;t[4]!==x||t[5]!==c?(v={...x,enabled:c},t[4]=x,t[5]=c,t[6]=v):v=t[6],re(v);const{data:m}=Z.useSession(),u=m?.user?.id;let p;t[7]!==i||t[8]!==u?(p=i&&u?Ze(u,i):null,t[7]=i,t[8]=u,t[9]=p):p=t[9];const g=p;let h,w;t[10]!==d?(h=()=>{const P=z=>{if(ve(z)&&z.code==="KeyK"){z.preventDefault(),o(!0);return}ve(z)&&z.code==="BracketLeft"&&d.history.canGoBack()&&(z.preventDefault(),d.history.back())};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},w=[d],t[10]=d,t[11]=h,t[12]=w):(h=t[11],w=t[12]),B.useEffect(h,w);let b;t[13]!==i?(b=ce.activeOrganization(i),t[13]=i,t[14]=b):b=t[14];let S;t[15]!==i||t[16]!==u?(S=async()=>{if(!i)return null;performance.mark("mesh:active-org-fetch:start");const{data:P}=await Z.organization.getFullOrganization({query:{organizationSlug:i}}).finally(_n),z=ye(P);return P&&!z&&localStorage.setItem(X.lastOrgSlug(),i),u&&P&&tt(u,i,P),P},t[15]=i,t[16]=u,t[17]=S):S=t[17];const N=g?g.data:void 0,j=g?.updatedAt;let A;t[18]!==S||t[19]!==N||t[20]!==j||t[21]!==b?(A={queryKey:b,queryFn:S,initialData:N,initialDataUpdatedAt:j,gcTime:1/0,refetchOnWindowFocus:!1},t[18]=S,t[19]=N,t[20]=j,t[21]=b,t[22]=A):A=t[22];const{data:y}=Ne(A),T=y?.id,_=y?.slug,{data:k}=kt(T,_),O=T??"",L=_??"";let C;t[23]!==O||t[24]!==L?(C=wt({connectionId:St,orgId:O,orgSlug:L}),t[23]=O,t[24]=L,t[25]=C):C=t[25];const D=!!T&&!!_;let E;if(t[26]!==C||t[27]!==D?(E={...C,enabled:D},t[26]=C,t[27]=D,t[28]=E):E=t[28],re(E),!y){let P;t[29]===Symbol.for("react.memo_cache_sentinel")?(P=n.jsx(nt,{}),t[29]=P):P=t[29];let z;return t[30]!==i?(z=n.jsx(B.Suspense,{fallback:P,children:n.jsx(It,{orgSlug:i})}),t[30]=i,t[31]=z):z=t[31],z}if(ye(y)){localStorage.getItem(X.lastOrgSlug())===i&&localStorage.removeItem(X.lastOrgSlug());let P;return t[32]!==y.name?(P=n.jsx(et,{orgName:y.name}),t[32]=y.name,t[33]=P):P=t[33],P}if(k?.ssoRequired&&!k.authenticated){let P;return t[34]!==y.id||t[35]!==y.name||t[36]!==y.slug||t[37]!==k.domain?(P=n.jsx(vn,{orgId:y.id,orgSlug:y.slug,orgName:y.name,domain:k.domain}),t[34]=y.id,t[35]=y.name,t[36]=y.slug,t[37]=k.domain,t[38]=P):P=t[38],P}const R=y.logo??null;let q;t[39]!==y||t[40]!==R?(q={...y,logo:R},t[39]=y,t[40]=R,t[41]=q):q=t[41];let Q;t[42]!==y?(Q=n.jsx(pn,{activeOrg:y}),t[42]=y,t[43]=Q):Q=t[43];let se;t[44]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(st,{}),t[44]=se):se=t[44];let oe;t[45]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Vt,{}),n.jsx(an,{})]}),t[45]=oe):oe=t[45];let Y;t[46]!==a?(Y=n.jsx(Yt,{open:a,onOpenChange:o}),t[46]=a,t[47]=Y):Y=t[47];let ie;t[48]===Symbol.for("react.memo_cache_sentinel")?(ie=n.jsx(un,{}),t[48]=ie):ie=t[48];let ae;return t[49]!==q||t[50]!==Q||t[51]!==Y?(ae=n.jsxs(kn,{org:q,children:[Q,se,oe,Y,ie]}),t[49]=q,t[50]=Q,t[51]=Y,t[52]=ae):ae=t[52],ae}function _n(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Tn(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(bt,{children:n.jsx(An,{})}),t[0]=e):e=t[0],e}const Wn=Object.freeze(Object.defineProperty({__proto__:null,default:Tn,usePanelActions:Nn},Symbol.toStringTag,{value:"Module"}));export{M as K,Vn as a,Gn as f,ve as i,cn as m,Wn as s,Nn as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,m as g,j as o,cU as P,cV as R,H,cW as A,cX as V,cY as W,cZ as q,r as T,B as G,bd as L,aR as F}from"./index-CAoYxLH3.js";import{i as U}from"./LayoutLeft-CBvWzVBs.js";import{u as X}from"./use-mobile-BvQU4LiP.js";import{i as Y}from"./X-D5UcR5HW.js";import{b as z,T as B,a as D,c as k}from"./tooltip-BKve4R9q.js";function Z(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(R,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function J(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(V,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function K(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(q,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Q(i){const e=b.c(20);let t,s,a,l,d;e[0]!==i?({className:s,children:t,side:l,hideCloseButton:d,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5]);const n=l===void 0?"right":l,r=d===void 0?!1:d;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(K,{}),e[6]=m):m=e[6];const u=n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",h=n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",p=n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let x;e[7]!==s||e[8]!==u||e[9]!==h||e[10]!==f||e[11]!==p?(x=g("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",u,h,f,p,s),e[7]=s,e[8]=u,e[9]=h,e[10]=f,e[11]=p,e[12]=x):x=e[12];let c;e[13]!==r?(c=!r&&o.jsxs(W,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsx(Y,{className:"size-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=r,e[14]=c):c=e[14];let v;return e[15]!==t||e[16]!==a||e[17]!==x||e[18]!==c?(v=o.jsxs(J,{children:[m,o.jsxs(H,{"data-slot":"sheet-content",className:x,...a,children:[t,c]})]}),e[15]=t,e[16]=a,e[17]=x,e[18]=c,e[19]=v):v=e[19],v}function ee(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function te(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(P,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(A,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const ae="15rem",le="18rem",ie="4.5rem",E=T.createContext(null);function I(){const i=T.useContext(E);if(!i)throw new Error("useSidebar must be used within a SidebarProvider.");return i}function be(i){const e=b.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:l}=i,d=s===void 0?!1:s,n=X(),[r,m]=T.useState(d),[u,h]=T.useState(!1),f=a!==void 0,p=f?a:r;let x;e[0]!==f||e[1]!==l?(x=$=>{f||m($),l?.($)},e[0]=f,e[1]=l,e[2]=x):x=e[2];const c=x;let v;e[3]!==n||e[4]!==p||e[5]!==c?(v=()=>{n?h(oe):c(!p)},e[3]=n,e[4]=p,e[5]=c,e[6]=v):v=e[6];const y=v,w=p?"expanded":"collapsed";let j;e[7]!==n||e[8]!==p||e[9]!==u||e[10]!==c||e[11]!==w||e[12]!==y?(j={state:w,open:p,setOpen:c,isMobile:n,openMobile:u,setOpenMobile:h,toggleSidebar:y},e[7]=n,e[8]=p,e[9]=u,e[10]=c,e[11]=w,e[12]=y,e[13]=j):j=e[13];const S=j;let N;e[14]!==t?(N=o.jsx(z,{delayDuration:0,children:t}),e[14]=t,e[15]=N):N=e[15];let C;return e[16]!==S||e[17]!==N?(C=o.jsx(E.Provider,{value:S,children:N}),e[16]=S,e[17]=N,e[18]=C):C=e[18],C}function oe(i){return!i}function me(i){const e=b.c(14);let t,s,a,l;e[0]!==i?({className:s,style:l,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l):(t=e[1],s=e[2],a=e[3],l=e[4]);let d;e[5]!==l?(d={"--sidebar-width":ae,"--sidebar-width-icon":ie,...l},e[5]=l,e[6]=d):d=e[6];const n=d;let r;e[7]!==s?(r=g("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=r):r=e[8];let m;return e[9]!==t||e[10]!==a||e[11]!==n||e[12]!==r?(m=o.jsx("div",{"data-slot":"sidebar-wrapper",style:n,className:r,...a,children:t}),e[9]=t,e[10]=a,e[11]=n,e[12]=r,e[13]=m):m=e[13],m}function he(i){const e=b.c(36);let t,s,a,l,d;e[0]!==i?({side:l,variant:d,className:s,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5]);const n=l===void 0?"left":l,r=d===void 0?"sidebar":d,{isMobile:m,state:u,openMobile:h,setOpenMobile:f}=I();if(m){let C;e[6]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":le},e[6]=C):C=e[6];let $;e[7]===Symbol.for("react.memo_cache_sentinel")?($=o.jsxs(ee,{className:"sr-only",children:[o.jsx(te,{children:"Sidebar"}),o.jsx(se,{children:"Displays the mobile sidebar."})]}),e[7]=$):$=e[7];let _;e[8]!==t?(_=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=_):_=e[9];let M;e[10]!==n||e[11]!==_?(M=o.jsxs(Q,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:n,children:[$,_]}),e[10]=n,e[11]=_,e[12]=M):M=e[12];let O;return e[13]!==h||e[14]!==a||e[15]!==f||e[16]!==M?(O=o.jsx(Z,{open:h,onOpenChange:f,...a,children:M}),e[13]=h,e[14]=a,e[15]=f,e[16]=M,e[17]=O):O=e[17],O}const p=u==="expanded",x=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let c;e[18]!==x?(c=g("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",x),e[18]=x,e[19]=c):c=e[19];const v=p?void 0:"icon",y=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let w;e[20]!==s||e[21]!==y?(w=g("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",y,s),e[20]=s,e[21]=y,e[22]=w):w=e[22];let j;e[23]!==t?(j=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=j):j=e[24];let S;e[25]!==a||e[26]!==w||e[27]!==j?(S=o.jsx("div",{"data-slot":"sidebar-container",className:w,...a,children:j}),e[25]=a,e[26]=w,e[27]=j,e[28]=S):S=e[28];let N;return e[29]!==n||e[30]!==u||e[31]!==c||e[32]!==v||e[33]!==S||e[34]!==r?(N=o.jsx("div",{className:c,"data-state":u,"data-collapsible":v,"data-variant":r,"data-side":n,"data-slot":"sidebar",children:S}),e[29]=n,e[30]=u,e[31]=c,e[32]=v,e[33]=S,e[34]=r,e[35]=N):N=e[35],N}function xe(i){const e=b.c(18);let t,s,a;e[0]!==i?({className:t,onClick:s,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:l}=I();let d;e[4]!==t?(d=g("size-7",t),e[4]=t,e[5]=d):d=e[5];let n;e[6]!==s||e[7]!==l?(n=p=>{s?.(p),l()},e[6]=s,e[7]=l,e[8]=n):n=e[8];let r,m;e[9]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(U,{}),m=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=r,e[10]=m):(r=e[9],m=e[10]);let u;e[11]!==a||e[12]!==d||e[13]!==n?(u=o.jsx(B,{asChild:!0,children:o.jsxs(G,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:n,...a,children:[r,m]})}),e[11]=a,e[12]=d,e[13]=n,e[14]=u):u=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsxs(D,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(ne)})]}),e[15]=h):h=e[15];let f;return e[16]!==u?(f=o.jsx(z,{delayDuration:300,children:o.jsxs(k,{children:[u,h]})}),e[16]=u,e[17]=f):f=e[17],f}function ne(i){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:i},i)}function ge(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ve(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function je(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function we(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("h-4 m-0! w-full",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-sidebar":"separator",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ne(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ye(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("w-full text-sm overflow-visible",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ce(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function $e(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const re=F("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function _e(i){const e=b.c(28);let t,s,a,l,d,n,r;e[0]!==i?({asChild:a,isActive:l,variant:d,size:n,tooltip:r,className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d,e[6]=n,e[7]=r):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5],n=e[6],r=e[7]);const m=a===void 0?!1:a,u=l===void 0?!1:l,h=d===void 0?"default":d,f=n===void 0?"default":n,p=m?L:"button",{isMobile:x}=I();let c;e[8]!==t||e[9]!==f||e[10]!==h?(c=g(re({variant:h,size:f}),t),e[8]=t,e[9]=f,e[10]=h,e[11]=c):c=e[11];let v;e[12]!==p||e[13]!==u||e[14]!==s||e[15]!==f||e[16]!==c?(v=o.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":u,className:c,...s}),e[12]=p,e[13]=u,e[14]=s,e[15]=f,e[16]=c,e[17]=v):v=e[17];const y=v;if(!r)return y;if(typeof r=="string"){let N;e[18]!==r?(N={children:r},e[18]=r,e[19]=N):N=e[19],r=N}let w;e[20]!==y?(w=o.jsx(B,{asChild:!0,children:y}),e[20]=y,e[21]=w):w=e[21];let j;e[22]!==x||e[23]!==r?(j=o.jsx(D,{side:"right",align:"center",hidden:x,...r}),e[22]=x,e[23]=r,e[24]=j):j=e[24];let S;return e[25]!==w||e[26]!==j?(S=o.jsxs(k,{children:[w,j]}),e[25]=w,e[26]=j,e[27]=S):S=e[27],S}export{Se as S,ye as a,Ce as b,_e as c,$e as d,we as e,ve as f,Ne as g,he as h,je as i,ge as j,me as k,be as l,te as m,se as n,ee as o,Q as p,Z as q,xe as r,I as u};
|
|
1
|
+
import{c as b,m as g,j as o,cU as P,cV as R,H,cW as A,cX as V,cY as W,cZ as q,r as T,B as G,bd as L,aR as F}from"./index-BphIXXOp.js";import{i as U}from"./LayoutLeft-DZwVeKk1.js";import{u as X}from"./use-mobile-C0XoguQx.js";import{i as Y}from"./X-Bfx6rO6W.js";import{b as z,T as B,a as D,c as k}from"./tooltip-BfkRKScU.js";function Z(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(R,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function J(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(V,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function K(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(q,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Q(i){const e=b.c(20);let t,s,a,l,d;e[0]!==i?({className:s,children:t,side:l,hideCloseButton:d,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5]);const n=l===void 0?"right":l,r=d===void 0?!1:d;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(K,{}),e[6]=m):m=e[6];const u=n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",h=n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",p=n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let x;e[7]!==s||e[8]!==u||e[9]!==h||e[10]!==f||e[11]!==p?(x=g("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",u,h,f,p,s),e[7]=s,e[8]=u,e[9]=h,e[10]=f,e[11]=p,e[12]=x):x=e[12];let c;e[13]!==r?(c=!r&&o.jsxs(W,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsx(Y,{className:"size-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=r,e[14]=c):c=e[14];let v;return e[15]!==t||e[16]!==a||e[17]!==x||e[18]!==c?(v=o.jsxs(J,{children:[m,o.jsxs(H,{"data-slot":"sheet-content",className:x,...a,children:[t,c]})]}),e[15]=t,e[16]=a,e[17]=x,e[18]=c,e[19]=v):v=e[19],v}function ee(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function te(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(P,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(A,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const ae="15rem",le="18rem",ie="4.5rem",E=T.createContext(null);function I(){const i=T.useContext(E);if(!i)throw new Error("useSidebar must be used within a SidebarProvider.");return i}function be(i){const e=b.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:l}=i,d=s===void 0?!1:s,n=X(),[r,m]=T.useState(d),[u,h]=T.useState(!1),f=a!==void 0,p=f?a:r;let x;e[0]!==f||e[1]!==l?(x=$=>{f||m($),l?.($)},e[0]=f,e[1]=l,e[2]=x):x=e[2];const c=x;let v;e[3]!==n||e[4]!==p||e[5]!==c?(v=()=>{n?h(oe):c(!p)},e[3]=n,e[4]=p,e[5]=c,e[6]=v):v=e[6];const y=v,w=p?"expanded":"collapsed";let j;e[7]!==n||e[8]!==p||e[9]!==u||e[10]!==c||e[11]!==w||e[12]!==y?(j={state:w,open:p,setOpen:c,isMobile:n,openMobile:u,setOpenMobile:h,toggleSidebar:y},e[7]=n,e[8]=p,e[9]=u,e[10]=c,e[11]=w,e[12]=y,e[13]=j):j=e[13];const S=j;let N;e[14]!==t?(N=o.jsx(z,{delayDuration:0,children:t}),e[14]=t,e[15]=N):N=e[15];let C;return e[16]!==S||e[17]!==N?(C=o.jsx(E.Provider,{value:S,children:N}),e[16]=S,e[17]=N,e[18]=C):C=e[18],C}function oe(i){return!i}function me(i){const e=b.c(14);let t,s,a,l;e[0]!==i?({className:s,style:l,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l):(t=e[1],s=e[2],a=e[3],l=e[4]);let d;e[5]!==l?(d={"--sidebar-width":ae,"--sidebar-width-icon":ie,...l},e[5]=l,e[6]=d):d=e[6];const n=d;let r;e[7]!==s?(r=g("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=r):r=e[8];let m;return e[9]!==t||e[10]!==a||e[11]!==n||e[12]!==r?(m=o.jsx("div",{"data-slot":"sidebar-wrapper",style:n,className:r,...a,children:t}),e[9]=t,e[10]=a,e[11]=n,e[12]=r,e[13]=m):m=e[13],m}function he(i){const e=b.c(36);let t,s,a,l,d;e[0]!==i?({side:l,variant:d,className:s,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5]);const n=l===void 0?"left":l,r=d===void 0?"sidebar":d,{isMobile:m,state:u,openMobile:h,setOpenMobile:f}=I();if(m){let C;e[6]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":le},e[6]=C):C=e[6];let $;e[7]===Symbol.for("react.memo_cache_sentinel")?($=o.jsxs(ee,{className:"sr-only",children:[o.jsx(te,{children:"Sidebar"}),o.jsx(se,{children:"Displays the mobile sidebar."})]}),e[7]=$):$=e[7];let _;e[8]!==t?(_=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=_):_=e[9];let M;e[10]!==n||e[11]!==_?(M=o.jsxs(Q,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:n,children:[$,_]}),e[10]=n,e[11]=_,e[12]=M):M=e[12];let O;return e[13]!==h||e[14]!==a||e[15]!==f||e[16]!==M?(O=o.jsx(Z,{open:h,onOpenChange:f,...a,children:M}),e[13]=h,e[14]=a,e[15]=f,e[16]=M,e[17]=O):O=e[17],O}const p=u==="expanded",x=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let c;e[18]!==x?(c=g("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",x),e[18]=x,e[19]=c):c=e[19];const v=p?void 0:"icon",y=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let w;e[20]!==s||e[21]!==y?(w=g("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",y,s),e[20]=s,e[21]=y,e[22]=w):w=e[22];let j;e[23]!==t?(j=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=j):j=e[24];let S;e[25]!==a||e[26]!==w||e[27]!==j?(S=o.jsx("div",{"data-slot":"sidebar-container",className:w,...a,children:j}),e[25]=a,e[26]=w,e[27]=j,e[28]=S):S=e[28];let N;return e[29]!==n||e[30]!==u||e[31]!==c||e[32]!==v||e[33]!==S||e[34]!==r?(N=o.jsx("div",{className:c,"data-state":u,"data-collapsible":v,"data-variant":r,"data-side":n,"data-slot":"sidebar",children:S}),e[29]=n,e[30]=u,e[31]=c,e[32]=v,e[33]=S,e[34]=r,e[35]=N):N=e[35],N}function xe(i){const e=b.c(18);let t,s,a;e[0]!==i?({className:t,onClick:s,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:l}=I();let d;e[4]!==t?(d=g("size-7",t),e[4]=t,e[5]=d):d=e[5];let n;e[6]!==s||e[7]!==l?(n=p=>{s?.(p),l()},e[6]=s,e[7]=l,e[8]=n):n=e[8];let r,m;e[9]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(U,{}),m=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=r,e[10]=m):(r=e[9],m=e[10]);let u;e[11]!==a||e[12]!==d||e[13]!==n?(u=o.jsx(B,{asChild:!0,children:o.jsxs(G,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:n,...a,children:[r,m]})}),e[11]=a,e[12]=d,e[13]=n,e[14]=u):u=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsxs(D,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(ne)})]}),e[15]=h):h=e[15];let f;return e[16]!==u?(f=o.jsx(z,{delayDuration:300,children:o.jsxs(k,{children:[u,h]})}),e[16]=u,e[17]=f):f=e[17],f}function ne(i){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:i},i)}function ge(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ve(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function je(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function we(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("h-4 m-0! w-full",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-sidebar":"separator",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ne(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ye(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("w-full text-sm overflow-visible",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ce(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function $e(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const re=F("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function _e(i){const e=b.c(28);let t,s,a,l,d,n,r;e[0]!==i?({asChild:a,isActive:l,variant:d,size:n,tooltip:r,className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d,e[6]=n,e[7]=r):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5],n=e[6],r=e[7]);const m=a===void 0?!1:a,u=l===void 0?!1:l,h=d===void 0?"default":d,f=n===void 0?"default":n,p=m?L:"button",{isMobile:x}=I();let c;e[8]!==t||e[9]!==f||e[10]!==h?(c=g(re({variant:h,size:f}),t),e[8]=t,e[9]=f,e[10]=h,e[11]=c):c=e[11];let v;e[12]!==p||e[13]!==u||e[14]!==s||e[15]!==f||e[16]!==c?(v=o.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":u,className:c,...s}),e[12]=p,e[13]=u,e[14]=s,e[15]=f,e[16]=c,e[17]=v):v=e[17];const y=v;if(!r)return y;if(typeof r=="string"){let N;e[18]!==r?(N={children:r},e[18]=r,e[19]=N):N=e[19],r=N}let w;e[20]!==y?(w=o.jsx(B,{asChild:!0,children:y}),e[20]=y,e[21]=w):w=e[21];let j;e[22]!==x||e[23]!==r?(j=o.jsx(D,{side:"right",align:"center",hidden:x,...r}),e[22]=x,e[23]=r,e[24]=j):j=e[24];let S;return e[25]!==w||e[26]!==j?(S=o.jsxs(k,{children:[w,j]}),e[25]=w,e[26]=j,e[27]=S):S=e[27],S}export{Se as S,ye as a,Ce as b,_e as c,$e as d,we as e,ve as f,Ne as g,he as h,je as i,ge as j,me as k,be as l,te as m,se as n,ee as o,Q as p,Z as q,xe as r,I as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,m as c,j as i}from"./index-
|
|
1
|
+
import{c as n,m as c,j as i}from"./index-BphIXXOp.js";function r(o){const e=n.c(8);let s,t;e[0]!==o?({className:s,...t}=o,e[0]=o,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=c("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=l):l=e[4];let a;return e[5]!==t||e[6]!==l?(a=i.jsx("div",{"data-slot":"skeleton",className:l,...t}),e[5]=t,e[6]=l,e[7]=a):a=e[7],a}export{r as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,m as d,aR as m,j as a}from"./index-
|
|
1
|
+
import{c as C,m as d,aR as m,j as a}from"./index-BphIXXOp.js";const u=m("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",success:"fill-success text-gray-200",special:"fill-special text-background"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=d(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let l,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=l,e[4]=i):(l=e[3],i=e[4]);let s;e[5]!==t?(s=a.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=a.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as B,F as L,r as v,j as e,B as u,p as C,t as c,c as k}from"./index-
|
|
1
|
+
import{b as B,F as L,r as v,j as e,B as u,p as C,t as c,c as k}from"./index-BphIXXOp.js";import{D as z}from"./domain-settings-D2fweBMx.js";import{P as x}from"./index-BKOwC_zz.js";import{A as T,a as O,b as R,c as F,e as q,f as M,g as U}from"./alert-dialog-Cqq7FgQj.js";import{I as d}from"./input-9TNY2G6W.js";import{S as $}from"./switch-b-8BZDWJ.js";import{a as H,b as G,c as J,d as K}from"./use-org-sso-8p_mXDai.js";import{c as Q,S as y,a as E,b as a,d as D}from"./settings-section-BN0IrtYX.js";import{s as V}from"./Trash01-COMthlp3.js";import{R as W}from"./require-capability-ChdE_Nc5.js";import"./studio-tools-BoD8kcA1.js";import"./badge-D24p8Xxi.js";import"./select-COjQ5V-V.js";import"./tooltip-BfkRKScU.js";import"./Check-BdzjeMXF.js";import"./ChevronDown-BOc1-i9L.js";import"./ChevronUp-IHCmvX3E.js";import"./sidebar-Dckv7Gxe.js";import"./LayoutLeft-DZwVeKk1.js";import"./use-mobile-C0XoguQx.js";import"./X-Bfx6rO6W.js";import"./card-CooN3E-v.js";import"./ArrowUpRight-C0hTvHTE.js";import"./use-capability-mz-0XBoJ.js";import"./access-gate-C8o_OE1N.js";import"./capability-load-error-CPQoG_lp.js";function X(){const s=B(),{org:o}=L(),{data:f,isLoading:P}=H(o.id,o.slug),h=G(o.id,o.slug),p=J(o.id,o.slug),b=K(o.id,o.slug),[i,l]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[g,S]=v.useState(!1),[I,j]=v.useState(!1),m=f?.configured&&f.config,n=f?.config,N=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),S(!0)},_=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!m&&!i.clientSecret){c.error(s("settings.orgSso.clientSecretRequiredError"));return}try{await h.mutateAsync({issuer:i.issuer,clientId:i.clientId,clientSecret:i.clientSecret,discoveryEndpoint:i.discoveryEndpoint||void 0,scopes:i.scopes.split(/\s+/).filter(Boolean),domain:i.domain,enforced:n?.enforced??!1}),C(m?"sso_config_updated":"sso_configured",{organization_id:o.id,email_domain:i.domain}),c.success(s("settings.orgSso.configurationSavedSuccess")),S(!1)}catch(t){c.error(t instanceof Error?t.message:s("settings.orgSso.saveSsoConfigError"))}},w=async()=>{try{await p.mutateAsync(),C("sso_config_removed",{organization_id:o.id}),c.success(s("settings.orgSso.configurationRemovedSuccess")),S(!1),j(!1)}catch{c.error(s("settings.orgSso.removeSsoConfigError"))}},A=async t=>{try{await b.mutateAsync(t),C("sso_enforcement_toggled",{organization_id:o.id,enforced:t}),c.success(s(t?"settings.orgSso.enforcementEnabledSuccess":"settings.orgSso.enforcementDisabledSuccess"))}catch{c.error(s("settings.orgSso.toggleEnforcementError"))}};return e.jsxs(x,{children:[e.jsx(x.Content,{children:e.jsx(x.Body,{children:e.jsxs(Q,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(z,{}),P?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[m&&!g&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.providerLabel"),action:e.jsx("span",{className:"font-medium",children:n.issuer})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.clientId})}),e.jsx(a,{title:s("settings.orgSso.domainLabel"),action:e.jsx("span",{className:"font-medium",children:n.domain})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(a,{title:s("settings.orgSso.enforceSsoLabel"),description:s("settings.orgSso.enforceSsoDescription"),action:e.jsx($,{checked:n.enforced,onCheckedChange:A,disabled:b.isPending})}),e.jsxs(D,{children:[e.jsxs(u,{variant:"ghost",size:"sm",onClick:()=>j(!0),disabled:p.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(V,{size:14}),s("settings.orgSso.removeButton")]}),e.jsx(u,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(u,{variant:"outline",size:"sm",onClick:N,children:s("settings.orgSso.editConfigButton")})]})]})}),(!m||g)&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.issuerUrlLabel"),description:s("settings.orgSso.issuerUrlDescription"),action:e.jsx(d,{id:"sso-issuer",placeholder:s("settings.orgSso.issuerUrlPlaceholder"),value:i.issuer,onChange:t=>l(r=>({...r,issuer:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx(d,{id:"sso-client-id",placeholder:s("settings.orgSso.clientIdPlaceholder"),value:i.clientId,onChange:t=>l(r=>({...r,clientId:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientSecretLabel"),description:g&&m?s("settings.orgSso.clientSecretEditDescription"):void 0,action:e.jsx(d,{id:"sso-client-secret",type:"password",placeholder:s("settings.orgSso.clientSecretPlaceholder"),value:i.clientSecret,onChange:t=>l(r=>({...r,clientSecret:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.emailDomainLabel"),description:s("settings.orgSso.emailDomainDescription"),action:e.jsx(d,{id:"sso-domain",placeholder:s("settings.orgSso.emailDomainPlaceholder"),value:i.domain,onChange:t=>l(r=>({...r,domain:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx(d,{id:"sso-scopes",placeholder:s("settings.orgSso.scopesPlaceholder"),value:i.scopes,onChange:t=>l(r=>({...r,scopes:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.discoveryEndpointLabel"),description:s("settings.orgSso.discoveryEndpointDescription"),action:e.jsx(d,{id:"sso-discovery",placeholder:s("settings.orgSso.discoveryEndpointPlaceholder"),value:i.discoveryEndpoint,onChange:t=>l(r=>({...r,discoveryEndpoint:t.target.value})),className:"w-[280px]"})}),e.jsxs(D,{children:[g&&e.jsx(u,{variant:"outline",size:"sm",onClick:()=>S(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(u,{onClick:_,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(T,{open:I,onOpenChange:j,children:e.jsxs(O,{children:[e.jsx(R,{children:e.jsx(F,{children:s("settings.orgSso.removeConfirmation")})}),e.jsxs(q,{children:[e.jsx(M,{disabled:p.isPending,children:s("settings.orgSso.cancelButton")}),e.jsx(U,{onClick:w,disabled:p.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.orgSso.removeButton")})]})]})})]})}function Ee(){const s=k.c(1);let o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(W,{capability:"org:manage",area:"security",children:e.jsx(X,{})}),s[0]=o):o=s[0],o}export{Ee as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as J,b as Z,j as i,r as V,E as pe,F as ue,o as Se,B as X,d as xe,f as he,p as ae,K as ye,e as je,t as ge}from"./index-CAoYxLH3.js";import{i as ve}from"./AlertCircle-BbZbgXRr.js";import{i as Ce}from"./ChevronRight-BU3byqbs.js";import{s as be}from"./Plus-DebJf-LV.js";import{s as _e}from"./Trash01-CrNiAbwH.js";import{I as re}from"./input-gtw8JtxE.js";import{S as de}from"./switch-CUICPR93.js";import{S as Re}from"./skeleton-vianXzjk.js";import{A as me}from"./avatar-2UWdGHIP.js";import{P as ke,a as Ne,b as Pe}from"./popover-lfRTyTfY.js";import{b as fe}from"./use-connection-u_QfsDEf.js";import{W as ne}from"./use-mcp-client-C5EARA3U.js";import{P as te}from"./index-CuLm1b-m.js";import{u as Te}from"./use-registry-connections-CxMxT_Q2.js";import{l as we,m as Ae}from"./use-organization-settings-BtiV0ixc.js";import{c as ze,b as H,a as ie,S as le}from"./settings-section-DhEp4WaB.js";import{R as Ee}from"./require-capability-BucqG7x5.js";import"./User01-CCOAWX6a.js";import"./auth-CTZiqSlH.js";import"./sidebar-CjKUpSic.js";import"./LayoutLeft-CBvWzVBs.js";import"./use-mobile-BvQU4LiP.js";import"./X-D5UcR5HW.js";import"./tooltip-BKve4R9q.js";import"./studio-tools-D2Jk1wIZ.js";import"./card-c9NhAdWZ.js";import"./ArrowUpRight-E96pG5Y4.js";import"./use-capability-hEEyXr97.js";import"./access-gate-Ddj0999j.js";import"./capability-load-error-C3ARzCfm.js";function Me(t){const e=J.c(6),{error:l}=t,c=Z();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx(ve,{size:16}),e[0]=s):s=e[0];let o;e[1]!==c?(o=c("settings.orgStore.failedLoadStoreSettings"),e[1]=c,e[2]=o):o=e[2];let r;return e[3]!==l.message||e[4]!==o?(r=i.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[s,i.jsxs("span",{className:"text-sm font-medium",children:[o," ",l.message]})]}),e[3]=l.message,e[4]=o,e[5]=r):r=e[5],r}function $e(t){const e=J.c(74),{onCancel:l,onSuccess:c}=t,s=Z(),o=fe(),[r,u]=V.useState(""),[a,A]=V.useState(""),[S,_]=V.useState("");let j;e[0]!==o||e[1]!==r||e[2]!==s||e[3]!==S||e[4]!==a?(j=async()=>(await o.create.mutateAsync({title:r||s("settings.orgStore.privateRegistry"),description:s("settings.orgStore.privateMcpRegistry"),connection_type:"HTTP",connection_url:a,connection_token:S||null,connection_headers:null,oauth_config:null,configuration_state:null,configuration_scopes:null,metadata:{type:"registry"},app_name:null,app_id:null,icon:null})).id,e[0]=o,e[1]=r,e[2]=s,e[3]=S,e[4]=a,e[5]=j):j=e[5];let d;e[6]!==c||e[7]!==s?(d=y=>{ae("store_private_registry_added",{connection_id:y}),ge.success(s("settings.orgStore.privateRegistryAdded")),c(y)},e[6]=c,e[7]=s,e[8]=d):d=e[8];let x;e[9]!==s?(x=y=>{ge.error(s("settings.orgStore.failedAddRegistry",{error:y.message}))},e[9]=s,e[10]=x):x=e[10];let m;e[11]!==j||e[12]!==d||e[13]!==x?(m={mutationFn:j,onSuccess:d,onError:x},e[11]=j,e[12]=d,e[13]=x,e[14]=m):m=e[14];const{mutate:v,isPending:g}=je(m);let h;e[15]!==s?(h=s("settings.orgStore.nameLabel"),e[15]=s,e[16]=h):h=e[16];let f;e[17]!==s?(f=s("settings.orgStore.namePlaceholder"),e[17]=s,e[18]=f):f=e[18];let p;e[19]===Symbol.for("react.memo_cache_sentinel")?(p=y=>u(y.target.value),e[19]=p):p=e[19];let C;e[20]!==r||e[21]!==f?(C=i.jsx(re,{placeholder:f,value:r,onChange:p,className:"w-[280px]"}),e[20]=r,e[21]=f,e[22]=C):C=e[22];let R;e[23]!==h||e[24]!==C?(R=i.jsx(H,{title:h,action:C}),e[23]=h,e[24]=C,e[25]=R):R=e[25];let F;e[26]!==s?(F=s("settings.orgStore.registryUrlLabel"),e[26]=s,e[27]=F):F=e[27];let U;e[28]!==s?(U=s("settings.orgStore.registryUrlPlaceholder"),e[28]=s,e[29]=U):U=e[29];let q;e[30]===Symbol.for("react.memo_cache_sentinel")?(q=y=>A(y.target.value),e[30]=q):q=e[30];let B;e[31]!==U||e[32]!==a?(B=i.jsx(re,{placeholder:U,value:a,onChange:q,className:"w-[280px]"}),e[31]=U,e[32]=a,e[33]=B):B=e[33];let O;e[34]!==F||e[35]!==B?(O=i.jsx(H,{title:F,action:B}),e[34]=F,e[35]=B,e[36]=O):O=e[36];let z;e[37]!==s?(z=s("settings.orgStore.authTokenLabel"),e[37]=s,e[38]=z):z=e[38];let b;e[39]!==s?(b=s("settings.orgStore.optional"),e[39]=s,e[40]=b):b=e[40];let E;e[41]!==s?(E=s("settings.orgStore.authTokenPlaceholder"),e[41]=s,e[42]=E):E=e[42];let Y;e[43]===Symbol.for("react.memo_cache_sentinel")?(Y=y=>_(y.target.value),e[43]=Y):Y=e[43];let M;e[44]!==E||e[45]!==S?(M=i.jsx(re,{type:"password",placeholder:E,value:S,onChange:Y,className:"w-[280px]"}),e[44]=E,e[45]=S,e[46]=M):M=e[46];let I;e[47]!==z||e[48]!==b||e[49]!==M?(I=i.jsx(H,{title:z,description:b,action:M}),e[47]=z,e[48]=b,e[49]=M,e[50]=I):I=e[50];let k;e[51]!==s?(k=s("settings.orgStore.cancel"),e[51]=s,e[52]=k):k=e[52];let D;e[53]!==g||e[54]!==l||e[55]!==k?(D=i.jsx(X,{variant:"ghost",size:"sm",onClick:l,disabled:g,children:k}),e[53]=g,e[54]=l,e[55]=k,e[56]=D):D=e[56];let N;e[57]!==v?(N=()=>v(),e[57]=v,e[58]=N):N=e[58];const L=!a||g;let P;e[59]!==g||e[60]!==s?(P=s(g?"settings.orgStore.adding":"settings.orgStore.addRegistry"),e[59]=g,e[60]=s,e[61]=P):P=e[61];let T;e[62]!==N||e[63]!==L||e[64]!==P?(T=i.jsx(X,{size:"sm",onClick:N,disabled:L,children:P}),e[62]=N,e[63]=L,e[64]=P,e[65]=T):T=e[65];let w;e[66]!==D||e[67]!==T?(w=i.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[D,T]}),e[66]=D,e[67]=T,e[68]=w):w=e[68];let $;return e[69]!==O||e[70]!==I||e[71]!==w||e[72]!==R?($=i.jsxs(ie,{children:[R,O,I,w]}),e[69]=O,e[70]=I,e[71]=w,e[72]=R,e[73]=$):$=e[73],$}function se(t){const e=J.c(30),{name:l,description:c,icon:s,enabled:o,onToggle:r,onDelete:u,href:a}=t,A=Z(),S=xe();let _;e[0]===Symbol.for("react.memo_cache_sentinel")?(_={from:"/shell/$org"},e[0]=_):_=e[0];const{org:j}=he(_);let d;e[1]!==o||e[2]!==a||e[3]!==S||e[4]!==r||e[5]!==j?(d=()=>{a?S({to:a,params:{org:j}}):r(!o)},e[1]=o,e[2]=a,e[3]=S,e[4]=r,e[5]=j,e[6]=d):d=e[6];const x=d;let m;e[7]!==s||e[8]!==l?(m=s?i.jsx("img",{src:s,alt:l,className:"size-8 rounded-md object-contain"}):i.jsx(me,{fallback:l.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[7]=s,e[8]=l,e[9]=m):m=e[9];let v;e[10]!==u||e[11]!==A?(v=u&&i.jsxs(ke,{children:[i.jsx(Ne,{asChild:!0,children:i.jsx(X,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:Ie,children:i.jsx(_e,{size:14})})}),i.jsx(Pe,{className:"w-auto p-2",align:"end",children:i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("p",{className:"text-xs font-medium",children:A("settings.orgStore.removeRegistry")}),i.jsx(X,{variant:"destructive",size:"xs",onClick:R=>{R.stopPropagation(),u()},children:A("settings.orgStore.remove")})]})})]}),e[10]=u,e[11]=A,e[12]=v):v=e[12];let g;e[13]!==r?(g=R=>r(R),e[13]=r,e[14]=g):g=e[14];let h;e[15]!==o||e[16]!==g?(h=i.jsx(de,{checked:o,onClick:Fe,onCheckedChange:g}),e[15]=o,e[16]=g,e[17]=h):h=e[17];let f;e[18]!==a?(f=a&&i.jsx(Ce,{size:14,className:"text-muted-foreground"}),e[18]=a,e[19]=f):f=e[19];let p;e[20]!==v||e[21]!==h||e[22]!==f?(p=i.jsxs("div",{className:"flex items-center gap-2",children:[v,h,f]}),e[20]=v,e[21]=h,e[22]=f,e[23]=p):p=e[23];let C;return e[24]!==c||e[25]!==x||e[26]!==l||e[27]!==m||e[28]!==p?(C=i.jsx(H,{title:l,description:c,onClick:x,icon:m,action:p}),e[24]=c,e[25]=x,e[26]=l,e[27]=m,e[28]=p,e[29]=C):C=e[29],C}function Fe(t){return t.stopPropagation()}function Ie(t){return t.stopPropagation()}function De(){const t=J.c(78),e=Z(),{org:l}=ue(),c=Te(),s=fe(),o=we(),{mutateAsync:r}=Ae(),u=Se(),[a,A]=V.useState(!1);let S,_,j,d,x,m;if(t[0]!==s||t[1]!==l.id||t[2]!==u||t[3]!==o||t[4]!==c||t[5]!==a||t[6]!==e||t[7]!==r){const f=ne.REGISTRY(l.id),p=n=>{if(!o)return n===f;const K=o.registries[n];return K?K.enabled:n===f},C=ne.COMMUNITY_REGISTRY(l.id),R=c.find(n=>n.id===f),F=c.find(n=>n.id===C||n.id==="community-registry"),U=F?.id??C,q=ne.SELF(l.id),B=new Set([f,C,"community-registry",q]),O=c.filter(n=>!B.has(n.id));let z;t[14]!==o||t[15]!==r?(z=async(n,K)=>{ae("store_registry_toggled",{connection_id:n,enabled:K});const ce=o??{registries:{},blockedMcps:[]};await r({...ce,registries:{...ce.registries,[n]:{enabled:K}}})},t[14]=o,t[15]=r,t[16]=z):z=t[16];const b=z;let E;t[17]!==s||t[18]!==l.id||t[19]!==u?(E=async n=>{ae("store_private_registry_removed",{connection_id:n}),await s.delete.mutateAsync(n),u.invalidateQueries({queryKey:ye.organizationSettings(l.id)})},t[17]=s,t[18]=l.id,t[19]=u,t[20]=E):E=t[20];const Y=E;let M;t[21]!==o||t[22]!==r?(M=async n=>{A(!1);const K=o??{registries:{},blockedMcps:[]};await r({...K,registries:{...K.registries,[n]:{enabled:!0}}})},t[21]=o,t[22]=r,t[23]=M):M=t[23];const I=M;let k;t[24]!==e?(k=e("settings.orgStore.decoStoreSection"),t[24]=e,t[25]=k):k=t[25];const D=R?i.jsx(se,{name:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.decoStoreDescription"),icon:R.icon,enabled:p(f),onToggle:n=>b(f,n)}):i.jsx(H,{title:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.connectionNotFound")});let N;t[26]!==D?(N=i.jsx(ie,{children:D}),t[26]=D,t[27]=N):N=t[27],t[28]!==k||t[29]!==N?(x=i.jsx(le,{title:k,children:N}),t[28]=k,t[29]=N,t[30]=x):x=t[30];let L;t[31]!==e?(L=e("settings.orgStore.privateRegistriesSection"),t[31]=e,t[32]=L):L=t[32];let P;t[33]!==a||t[34]!==e?(P=a?void 0:i.jsxs(X,{variant:"outline",size:"sm",onClick:()=>A(!0),children:[i.jsx(be,{size:14}),e("settings.orgStore.addRegistry")]}),t[33]=a,t[34]=e,t[35]=P):P=t[35];let T;t[36]!==I||t[37]!==a?(T=a&&i.jsx($e,{onCancel:()=>A(!1),onSuccess:I}),t[36]=I,t[37]=a,t[38]=T):T=t[38];let w;t[39]!==e?(w=e("settings.orgStore.privateRegistry"),t[39]=e,t[40]=w):w=t[40];let $;t[41]!==e?($=e("settings.orgStore.privateRegistryDescription"),t[41]=e,t[42]=$):$=t[42];let y;t[43]!==p?(y=p("self"),t[43]=p,t[44]=y):y=t[44];let G;t[45]!==b?(G=n=>b("self",n),t[45]=b,t[46]=G):G=t[46];let Q;t[47]!==w||t[48]!==$||t[49]!==y||t[50]!==G?(Q=i.jsx(se,{name:w,description:$,enabled:y,onToggle:G,href:"/$org/settings/store/registry"}),t[47]=w,t[48]=$,t[49]=y,t[50]=G,t[51]=Q):Q=t[51];let ee;t[52]!==Y||t[53]!==b||t[54]!==p||t[55]!==e?(ee=n=>i.jsx(se,{name:n.title,description:n.description??e("settings.orgStore.privateMcpRegistry"),icon:n.icon,enabled:p(n.id),onToggle:K=>b(n.id,K),onDelete:()=>Y(n.id)},n.id),t[52]=Y,t[53]=b,t[54]=p,t[55]=e,t[56]=ee):ee=t[56];const oe=O.map(ee);let W;t[57]!==Q||t[58]!==oe?(W=i.jsxs(ie,{children:[Q,oe]}),t[57]=Q,t[58]=oe,t[59]=W):W=t[59],t[60]!==L||t[61]!==P||t[62]!==T||t[63]!==W?(m=i.jsxs(le,{title:L,actions:P,children:[T,W]}),t[60]=L,t[61]=P,t[62]=T,t[63]=W,t[64]=m):m=t[64],_=le,t[65]!==e?(d=e("settings.orgStore.communitySection"),t[65]=e,t[66]=d):d=t[66],S=ie,j=F?i.jsx(se,{name:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryDescription"),icon:F.icon,enabled:p(U),onToggle:n=>b(U,n)}):i.jsx(H,{title:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryNotAdded"),icon:i.jsx(me,{fallback:"M",className:"size-8 bg-primary/10 text-primary"}),action:i.jsx(de,{checked:!1,disabled:!0,onCheckedChange:Le})}),t[0]=s,t[1]=l.id,t[2]=u,t[3]=o,t[4]=c,t[5]=a,t[6]=e,t[7]=r,t[8]=S,t[9]=_,t[10]=j,t[11]=d,t[12]=x,t[13]=m}else S=t[8],_=t[9],j=t[10],d=t[11],x=t[12],m=t[13];let v;t[67]!==S||t[68]!==j?(v=i.jsx(S,{children:j}),t[67]=S,t[68]=j,t[69]=v):v=t[69];let g;t[70]!==_||t[71]!==d||t[72]!==v?(g=i.jsx(_,{title:d,children:v}),t[70]=_,t[71]=d,t[72]=v,t[73]=g):g=t[73];let h;return t[74]!==x||t[75]!==m||t[76]!==g?(h=i.jsxs(i.Fragment,{children:[x,m,g]}),t[74]=x,t[75]=m,t[76]=g,t[77]=h):h=t[77],h}function Le(){}function Ke(){const t=J.c(13),e=Z();let l;t[0]!==e?(l=A=>{const{error:S}=A;return i.jsx(Me,{error:S??new Error(e("settings.orgStore.failedLoadStoreSettings"))})},t[0]=e,t[1]=l):l=t[1];let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(Re,{className:"h-64 w-full"}),t[2]=c):c=t[2];let s;t[3]!==e?(s=e("settings.orgStore.pageTitle"),t[3]=e,t[4]=s):s=t[4];let o;t[5]!==s?(o=i.jsx(te.Title,{children:s}),t[5]=s,t[6]=o):o=t[6];let r;t[7]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(De,{}),t[7]=r):r=t[7];let u;t[8]!==o?(u=i.jsx(V.Suspense,{fallback:c,children:i.jsx(te,{children:i.jsx(te.Content,{children:i.jsx(te.Body,{children:i.jsxs(ze,{children:[o,r]})})})})}),t[8]=o,t[9]=u):u=t[9];let a;return t[10]!==l||t[11]!==u?(a=i.jsx(pe,{fallback:l,children:u}),t[10]=l,t[11]=u,t[12]=a):a=t[12],a}function xt(){const t=J.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Ee,{capability:"registry:manage",area:"the store",children:i.jsx(Ke,{})}),t[0]=e):e=t[0],e}export{xt as default};
|
|
1
|
+
import{c as J,b as Z,j as i,r as V,E as pe,F as ue,o as Se,B as X,d as xe,f as he,p as ae,K as ye,e as je,t as ge}from"./index-BphIXXOp.js";import{i as ve}from"./AlertCircle-CeleFBrs.js";import{i as Ce}from"./ChevronRight-wqbYwiLF.js";import{s as be}from"./Plus-CgXuzVCT.js";import{s as _e}from"./Trash01-COMthlp3.js";import{I as re}from"./input-9TNY2G6W.js";import{S as de}from"./switch-b-8BZDWJ.js";import{S as Re}from"./skeleton-C_J-aMdg.js";import{A as me}from"./avatar-BqAz0FLa.js";import{P as ke,a as Ne,b as Pe}from"./popover-BV2Ziop4.js";import{b as fe}from"./use-connection-B5TzA1Ut.js";import{W as ne}from"./use-mcp-client-DKcZ7v-W.js";import{P as te}from"./index-BKOwC_zz.js";import{u as Te}from"./use-registry-connections-C82adOhA.js";import{l as we,m as Ae}from"./use-organization-settings-C62jhu_V.js";import{c as ze,b as H,a as ie,S as le}from"./settings-section-BN0IrtYX.js";import{R as Ee}from"./require-capability-ChdE_Nc5.js";import"./User01-C2rVZTl-.js";import"./auth-tEJ4bybR.js";import"./sidebar-Dckv7Gxe.js";import"./LayoutLeft-DZwVeKk1.js";import"./use-mobile-C0XoguQx.js";import"./X-Bfx6rO6W.js";import"./tooltip-BfkRKScU.js";import"./studio-tools-BoD8kcA1.js";import"./card-CooN3E-v.js";import"./ArrowUpRight-C0hTvHTE.js";import"./use-capability-mz-0XBoJ.js";import"./access-gate-C8o_OE1N.js";import"./capability-load-error-CPQoG_lp.js";function Me(t){const e=J.c(6),{error:l}=t,c=Z();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx(ve,{size:16}),e[0]=s):s=e[0];let o;e[1]!==c?(o=c("settings.orgStore.failedLoadStoreSettings"),e[1]=c,e[2]=o):o=e[2];let r;return e[3]!==l.message||e[4]!==o?(r=i.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[s,i.jsxs("span",{className:"text-sm font-medium",children:[o," ",l.message]})]}),e[3]=l.message,e[4]=o,e[5]=r):r=e[5],r}function $e(t){const e=J.c(74),{onCancel:l,onSuccess:c}=t,s=Z(),o=fe(),[r,u]=V.useState(""),[a,A]=V.useState(""),[S,_]=V.useState("");let j;e[0]!==o||e[1]!==r||e[2]!==s||e[3]!==S||e[4]!==a?(j=async()=>(await o.create.mutateAsync({title:r||s("settings.orgStore.privateRegistry"),description:s("settings.orgStore.privateMcpRegistry"),connection_type:"HTTP",connection_url:a,connection_token:S||null,connection_headers:null,oauth_config:null,configuration_state:null,configuration_scopes:null,metadata:{type:"registry"},app_name:null,app_id:null,icon:null})).id,e[0]=o,e[1]=r,e[2]=s,e[3]=S,e[4]=a,e[5]=j):j=e[5];let d;e[6]!==c||e[7]!==s?(d=y=>{ae("store_private_registry_added",{connection_id:y}),ge.success(s("settings.orgStore.privateRegistryAdded")),c(y)},e[6]=c,e[7]=s,e[8]=d):d=e[8];let x;e[9]!==s?(x=y=>{ge.error(s("settings.orgStore.failedAddRegistry",{error:y.message}))},e[9]=s,e[10]=x):x=e[10];let m;e[11]!==j||e[12]!==d||e[13]!==x?(m={mutationFn:j,onSuccess:d,onError:x},e[11]=j,e[12]=d,e[13]=x,e[14]=m):m=e[14];const{mutate:v,isPending:g}=je(m);let h;e[15]!==s?(h=s("settings.orgStore.nameLabel"),e[15]=s,e[16]=h):h=e[16];let f;e[17]!==s?(f=s("settings.orgStore.namePlaceholder"),e[17]=s,e[18]=f):f=e[18];let p;e[19]===Symbol.for("react.memo_cache_sentinel")?(p=y=>u(y.target.value),e[19]=p):p=e[19];let C;e[20]!==r||e[21]!==f?(C=i.jsx(re,{placeholder:f,value:r,onChange:p,className:"w-[280px]"}),e[20]=r,e[21]=f,e[22]=C):C=e[22];let R;e[23]!==h||e[24]!==C?(R=i.jsx(H,{title:h,action:C}),e[23]=h,e[24]=C,e[25]=R):R=e[25];let F;e[26]!==s?(F=s("settings.orgStore.registryUrlLabel"),e[26]=s,e[27]=F):F=e[27];let U;e[28]!==s?(U=s("settings.orgStore.registryUrlPlaceholder"),e[28]=s,e[29]=U):U=e[29];let q;e[30]===Symbol.for("react.memo_cache_sentinel")?(q=y=>A(y.target.value),e[30]=q):q=e[30];let B;e[31]!==U||e[32]!==a?(B=i.jsx(re,{placeholder:U,value:a,onChange:q,className:"w-[280px]"}),e[31]=U,e[32]=a,e[33]=B):B=e[33];let O;e[34]!==F||e[35]!==B?(O=i.jsx(H,{title:F,action:B}),e[34]=F,e[35]=B,e[36]=O):O=e[36];let z;e[37]!==s?(z=s("settings.orgStore.authTokenLabel"),e[37]=s,e[38]=z):z=e[38];let b;e[39]!==s?(b=s("settings.orgStore.optional"),e[39]=s,e[40]=b):b=e[40];let E;e[41]!==s?(E=s("settings.orgStore.authTokenPlaceholder"),e[41]=s,e[42]=E):E=e[42];let Y;e[43]===Symbol.for("react.memo_cache_sentinel")?(Y=y=>_(y.target.value),e[43]=Y):Y=e[43];let M;e[44]!==E||e[45]!==S?(M=i.jsx(re,{type:"password",placeholder:E,value:S,onChange:Y,className:"w-[280px]"}),e[44]=E,e[45]=S,e[46]=M):M=e[46];let I;e[47]!==z||e[48]!==b||e[49]!==M?(I=i.jsx(H,{title:z,description:b,action:M}),e[47]=z,e[48]=b,e[49]=M,e[50]=I):I=e[50];let k;e[51]!==s?(k=s("settings.orgStore.cancel"),e[51]=s,e[52]=k):k=e[52];let D;e[53]!==g||e[54]!==l||e[55]!==k?(D=i.jsx(X,{variant:"ghost",size:"sm",onClick:l,disabled:g,children:k}),e[53]=g,e[54]=l,e[55]=k,e[56]=D):D=e[56];let N;e[57]!==v?(N=()=>v(),e[57]=v,e[58]=N):N=e[58];const L=!a||g;let P;e[59]!==g||e[60]!==s?(P=s(g?"settings.orgStore.adding":"settings.orgStore.addRegistry"),e[59]=g,e[60]=s,e[61]=P):P=e[61];let T;e[62]!==N||e[63]!==L||e[64]!==P?(T=i.jsx(X,{size:"sm",onClick:N,disabled:L,children:P}),e[62]=N,e[63]=L,e[64]=P,e[65]=T):T=e[65];let w;e[66]!==D||e[67]!==T?(w=i.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[D,T]}),e[66]=D,e[67]=T,e[68]=w):w=e[68];let $;return e[69]!==O||e[70]!==I||e[71]!==w||e[72]!==R?($=i.jsxs(ie,{children:[R,O,I,w]}),e[69]=O,e[70]=I,e[71]=w,e[72]=R,e[73]=$):$=e[73],$}function se(t){const e=J.c(30),{name:l,description:c,icon:s,enabled:o,onToggle:r,onDelete:u,href:a}=t,A=Z(),S=xe();let _;e[0]===Symbol.for("react.memo_cache_sentinel")?(_={from:"/shell/$org"},e[0]=_):_=e[0];const{org:j}=he(_);let d;e[1]!==o||e[2]!==a||e[3]!==S||e[4]!==r||e[5]!==j?(d=()=>{a?S({to:a,params:{org:j}}):r(!o)},e[1]=o,e[2]=a,e[3]=S,e[4]=r,e[5]=j,e[6]=d):d=e[6];const x=d;let m;e[7]!==s||e[8]!==l?(m=s?i.jsx("img",{src:s,alt:l,className:"size-8 rounded-md object-contain"}):i.jsx(me,{fallback:l.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[7]=s,e[8]=l,e[9]=m):m=e[9];let v;e[10]!==u||e[11]!==A?(v=u&&i.jsxs(ke,{children:[i.jsx(Ne,{asChild:!0,children:i.jsx(X,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:Ie,children:i.jsx(_e,{size:14})})}),i.jsx(Pe,{className:"w-auto p-2",align:"end",children:i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("p",{className:"text-xs font-medium",children:A("settings.orgStore.removeRegistry")}),i.jsx(X,{variant:"destructive",size:"xs",onClick:R=>{R.stopPropagation(),u()},children:A("settings.orgStore.remove")})]})})]}),e[10]=u,e[11]=A,e[12]=v):v=e[12];let g;e[13]!==r?(g=R=>r(R),e[13]=r,e[14]=g):g=e[14];let h;e[15]!==o||e[16]!==g?(h=i.jsx(de,{checked:o,onClick:Fe,onCheckedChange:g}),e[15]=o,e[16]=g,e[17]=h):h=e[17];let f;e[18]!==a?(f=a&&i.jsx(Ce,{size:14,className:"text-muted-foreground"}),e[18]=a,e[19]=f):f=e[19];let p;e[20]!==v||e[21]!==h||e[22]!==f?(p=i.jsxs("div",{className:"flex items-center gap-2",children:[v,h,f]}),e[20]=v,e[21]=h,e[22]=f,e[23]=p):p=e[23];let C;return e[24]!==c||e[25]!==x||e[26]!==l||e[27]!==m||e[28]!==p?(C=i.jsx(H,{title:l,description:c,onClick:x,icon:m,action:p}),e[24]=c,e[25]=x,e[26]=l,e[27]=m,e[28]=p,e[29]=C):C=e[29],C}function Fe(t){return t.stopPropagation()}function Ie(t){return t.stopPropagation()}function De(){const t=J.c(78),e=Z(),{org:l}=ue(),c=Te(),s=fe(),o=we(),{mutateAsync:r}=Ae(),u=Se(),[a,A]=V.useState(!1);let S,_,j,d,x,m;if(t[0]!==s||t[1]!==l.id||t[2]!==u||t[3]!==o||t[4]!==c||t[5]!==a||t[6]!==e||t[7]!==r){const f=ne.REGISTRY(l.id),p=n=>{if(!o)return n===f;const K=o.registries[n];return K?K.enabled:n===f},C=ne.COMMUNITY_REGISTRY(l.id),R=c.find(n=>n.id===f),F=c.find(n=>n.id===C||n.id==="community-registry"),U=F?.id??C,q=ne.SELF(l.id),B=new Set([f,C,"community-registry",q]),O=c.filter(n=>!B.has(n.id));let z;t[14]!==o||t[15]!==r?(z=async(n,K)=>{ae("store_registry_toggled",{connection_id:n,enabled:K});const ce=o??{registries:{},blockedMcps:[]};await r({...ce,registries:{...ce.registries,[n]:{enabled:K}}})},t[14]=o,t[15]=r,t[16]=z):z=t[16];const b=z;let E;t[17]!==s||t[18]!==l.id||t[19]!==u?(E=async n=>{ae("store_private_registry_removed",{connection_id:n}),await s.delete.mutateAsync(n),u.invalidateQueries({queryKey:ye.organizationSettings(l.id)})},t[17]=s,t[18]=l.id,t[19]=u,t[20]=E):E=t[20];const Y=E;let M;t[21]!==o||t[22]!==r?(M=async n=>{A(!1);const K=o??{registries:{},blockedMcps:[]};await r({...K,registries:{...K.registries,[n]:{enabled:!0}}})},t[21]=o,t[22]=r,t[23]=M):M=t[23];const I=M;let k;t[24]!==e?(k=e("settings.orgStore.decoStoreSection"),t[24]=e,t[25]=k):k=t[25];const D=R?i.jsx(se,{name:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.decoStoreDescription"),icon:R.icon,enabled:p(f),onToggle:n=>b(f,n)}):i.jsx(H,{title:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.connectionNotFound")});let N;t[26]!==D?(N=i.jsx(ie,{children:D}),t[26]=D,t[27]=N):N=t[27],t[28]!==k||t[29]!==N?(x=i.jsx(le,{title:k,children:N}),t[28]=k,t[29]=N,t[30]=x):x=t[30];let L;t[31]!==e?(L=e("settings.orgStore.privateRegistriesSection"),t[31]=e,t[32]=L):L=t[32];let P;t[33]!==a||t[34]!==e?(P=a?void 0:i.jsxs(X,{variant:"outline",size:"sm",onClick:()=>A(!0),children:[i.jsx(be,{size:14}),e("settings.orgStore.addRegistry")]}),t[33]=a,t[34]=e,t[35]=P):P=t[35];let T;t[36]!==I||t[37]!==a?(T=a&&i.jsx($e,{onCancel:()=>A(!1),onSuccess:I}),t[36]=I,t[37]=a,t[38]=T):T=t[38];let w;t[39]!==e?(w=e("settings.orgStore.privateRegistry"),t[39]=e,t[40]=w):w=t[40];let $;t[41]!==e?($=e("settings.orgStore.privateRegistryDescription"),t[41]=e,t[42]=$):$=t[42];let y;t[43]!==p?(y=p("self"),t[43]=p,t[44]=y):y=t[44];let G;t[45]!==b?(G=n=>b("self",n),t[45]=b,t[46]=G):G=t[46];let Q;t[47]!==w||t[48]!==$||t[49]!==y||t[50]!==G?(Q=i.jsx(se,{name:w,description:$,enabled:y,onToggle:G,href:"/$org/settings/store/registry"}),t[47]=w,t[48]=$,t[49]=y,t[50]=G,t[51]=Q):Q=t[51];let ee;t[52]!==Y||t[53]!==b||t[54]!==p||t[55]!==e?(ee=n=>i.jsx(se,{name:n.title,description:n.description??e("settings.orgStore.privateMcpRegistry"),icon:n.icon,enabled:p(n.id),onToggle:K=>b(n.id,K),onDelete:()=>Y(n.id)},n.id),t[52]=Y,t[53]=b,t[54]=p,t[55]=e,t[56]=ee):ee=t[56];const oe=O.map(ee);let W;t[57]!==Q||t[58]!==oe?(W=i.jsxs(ie,{children:[Q,oe]}),t[57]=Q,t[58]=oe,t[59]=W):W=t[59],t[60]!==L||t[61]!==P||t[62]!==T||t[63]!==W?(m=i.jsxs(le,{title:L,actions:P,children:[T,W]}),t[60]=L,t[61]=P,t[62]=T,t[63]=W,t[64]=m):m=t[64],_=le,t[65]!==e?(d=e("settings.orgStore.communitySection"),t[65]=e,t[66]=d):d=t[66],S=ie,j=F?i.jsx(se,{name:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryDescription"),icon:F.icon,enabled:p(U),onToggle:n=>b(U,n)}):i.jsx(H,{title:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryNotAdded"),icon:i.jsx(me,{fallback:"M",className:"size-8 bg-primary/10 text-primary"}),action:i.jsx(de,{checked:!1,disabled:!0,onCheckedChange:Le})}),t[0]=s,t[1]=l.id,t[2]=u,t[3]=o,t[4]=c,t[5]=a,t[6]=e,t[7]=r,t[8]=S,t[9]=_,t[10]=j,t[11]=d,t[12]=x,t[13]=m}else S=t[8],_=t[9],j=t[10],d=t[11],x=t[12],m=t[13];let v;t[67]!==S||t[68]!==j?(v=i.jsx(S,{children:j}),t[67]=S,t[68]=j,t[69]=v):v=t[69];let g;t[70]!==_||t[71]!==d||t[72]!==v?(g=i.jsx(_,{title:d,children:v}),t[70]=_,t[71]=d,t[72]=v,t[73]=g):g=t[73];let h;return t[74]!==x||t[75]!==m||t[76]!==g?(h=i.jsxs(i.Fragment,{children:[x,m,g]}),t[74]=x,t[75]=m,t[76]=g,t[77]=h):h=t[77],h}function Le(){}function Ke(){const t=J.c(13),e=Z();let l;t[0]!==e?(l=A=>{const{error:S}=A;return i.jsx(Me,{error:S??new Error(e("settings.orgStore.failedLoadStoreSettings"))})},t[0]=e,t[1]=l):l=t[1];let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(Re,{className:"h-64 w-full"}),t[2]=c):c=t[2];let s;t[3]!==e?(s=e("settings.orgStore.pageTitle"),t[3]=e,t[4]=s):s=t[4];let o;t[5]!==s?(o=i.jsx(te.Title,{children:s}),t[5]=s,t[6]=o):o=t[6];let r;t[7]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(De,{}),t[7]=r):r=t[7];let u;t[8]!==o?(u=i.jsx(V.Suspense,{fallback:c,children:i.jsx(te,{children:i.jsx(te.Content,{children:i.jsx(te.Body,{children:i.jsxs(ze,{children:[o,r]})})})})}),t[8]=o,t[9]=u):u=t[9];let a;return t[10]!==l||t[11]!==u?(a=i.jsx(pe,{fallback:l,children:u}),t[10]=l,t[11]=u,t[12]=a):a=t[12],a}function xt(){const t=J.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Ee,{capability:"registry:manage",area:"the store",children:i.jsx(Ke,{})}),t[0]=e):e=t[0],e}export{xt as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-DdRmZw6K.js","assets/index-BphIXXOp.js","assets/index-iwXkDaR-.css","assets/Tool02-B8GwG_SX.js","assets/CheckCircle-D-nlOrXB.js","assets/Settings02-CpRid7rG.js","assets/use-mcp-client-DKcZ7v-W.js","assets/auth-tEJ4bybR.js","assets/useInfiniteQuery-ewuCizNF.js","assets/use-infinite-scroll-A-tTatQb.js","assets/studio-tools-BoD8kcA1.js","assets/badge-D24p8Xxi.js","assets/input-9TNY2G6W.js","assets/dropdown-menu-Buaqq-Fn.js","assets/Check-BdzjeMXF.js","assets/ChevronRight-wqbYwiLF.js","assets/DotsVertical-Bohq38Q1.js","assets/table-CfpVPCrj.js","assets/toggle-group-5LW11eFN.js","assets/use-view-mode-B8mZlQkB.js","assets/use-mobile-C0XoguQx.js","assets/FilterLines-C9pmu5SZ.js","assets/Globe01-DEX4B2yM.js","assets/SearchMd-BOeEZKFu.js","assets/dialog-C2XtKj4W.js","assets/X-Bfx6rO6W.js","assets/AlertCircle-CeleFBrs.js","assets/Upload01-DO7DRGUd.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-Cqq7FgQj.js","assets/card-CooN3E-v.js","assets/Trash01-COMthlp3.js","assets/label-DhJo3WjY.js","assets/select-COjQ5V-V.js","assets/tooltip-BfkRKScU.js","assets/ChevronDown-BOc1-i9L.js","assets/ChevronUp-IHCmvX3E.js","assets/switch-b-8BZDWJ.js","assets/textarea-CosQp1Ex.js","assets/ArrowLeft-CwsJ1Sfc.js","assets/XCircle-jlAhwcDu.js","assets/checkbox-BqtDvsR1.js","assets/Eye-C5vDWwaK.js","assets/LinkExternal01-Do6tmctI.js","assets/use-copy-BEi_L0rW.js","assets/Copy01-DIJvVGQk.js","assets/Key01-CRQOB5O_.js","assets/Plus-CgXuzVCT.js","assets/mcp-oauth--A5K-xL8.js","assets/Play-Yhg2bDxR.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as m,d as n,f as c,j as t,k as f,r as l,aF as p}from"./index-BphIXXOp.js";import{R as u}from"./require-capability-ChdE_Nc5.js";import"./use-capability-mz-0XBoJ.js";import"./access-gate-C8o_OE1N.js";import"./capability-load-error-CPQoG_lp.js";const g=l.lazy(()=>p(()=>import("./registry-layout-DdRmZw6K.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49])));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(f,{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 +1 @@
|
|
|
1
|
-
import{c as i,F as u}from"./index-
|
|
1
|
+
import{c as i,F as u}from"./index-BphIXXOp.js";class a extends Error{constructor(e,s){super(e),this.status=s,this.name="StudioToolError"}status}async function l(t,e,s){const o=await fetch(`/api/${encodeURIComponent(t)}/tools/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s??{})});if(!o.ok){let r=`${e} failed (${o.status})`;try{const n=await o.json();n?.error&&(r=n.error)}catch{}throw new a(r,o.status)}try{return await o.json()}catch{throw new a(`${e} returned a non-JSON response`,o.status)}}function p(){const t=i.c(5),{org:e}=u(),s=e.slug;let o;t[0]!==s?(o=(n,c)=>l(s,n,c),t[0]=s,t[1]=o):o=t[1];let r;return t[2]!==s||t[3]!==o?(r={orgSlug:s,call:o},t[2]=s,t[3]=o,t[4]=r):r=t[4],r}export{l as c,p as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as i,aG as C,aK as y,aJ as I,aM as T,bH as M,bG as H,aI as z,c as A,m as g}from"./index-
|
|
1
|
+
import{r as c,j as i,aG as C,aK as y,aJ as I,aM as T,bH as M,bG as H,aI as z,c as A,m as g}from"./index-BphIXXOp.js";var m="Switch",[U]=z(m),[q,G]=U(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:s,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=I({prop:a,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:T(r.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:s,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...s}=r,a=G(P,t);return i.jsx(C.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:e})});R.displayName=P;var L="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:s=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:s});h.call(l,t),l.dispatchEvent(v)}},[u,t,s]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:d,style:{...a.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=L;function j(r){return r?"checked":"unchecked"}var O=E,$=R;function F(r){const e=A.c(9);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/20 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[2px] disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx($,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==s||e[7]!==a?(o=i.jsx(O,{"data-slot":"switch",className:a,...s,children:n}),e[6]=s,e[7]=a,e[8]=o):o=e[8],o}export{F as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as te,j as s,b as ge,r as ce,B as ee,m as je,t as ae}from"./index-CAoYxLH3.js";import{s as xe}from"./Plus-DebJf-LV.js";import{c as be,d as Re,b as Se,f as ve,g as Ne,e as De,a as _e,A as Ce}from"./alert-dialog-CDK9edfP.js";import{b as Pe,h as Ae,a as ke,c as we,d as Oe,e as ze}from"./dialog-B9Vr29s-.js";import{I as Ee}from"./input-gtw8JtxE.js";import{S as Ie}from"./skeleton-vianXzjk.js";import{P as ue}from"./index-CuLm1b-m.js";import{c as $e}from"./settings-section-DhEp4WaB.js";import{G as he,a as Fe}from"./github-repo-picker-CLVepDKj.js";import{u as Te,b as He,c as Be}from"./use-org-repo-syncs-BqwLFpRT.js";import{t as Ge}from"./cards-BR6taBIk.js";import{S as qe}from"./settings-subnav-CzBll9kW.js";import{R as Le}from"./require-capability-BucqG7x5.js";import"./X-D5UcR5HW.js";import"./sidebar-CjKUpSic.js";import"./LayoutLeft-CBvWzVBs.js";import"./use-mobile-BvQU4LiP.js";import"./tooltip-BKve4R9q.js";import"./card-c9NhAdWZ.js";import"./ArrowUpRight-E96pG5Y4.js";import"./collection-search-CCbs13s0.js";import"./SearchMd-FuQOpjcf.js";import"./use-debounced-value-JSnoN7KO.js";import"./use-connection-u_QfsDEf.js";import"./use-mcp-client-C5EARA3U.js";import"./auth-CTZiqSlH.js";import"./authenticate-and-persist-oauth-DRisIqKS.js";import"./mcp-oauth-DD6omYMT.js";import"./ArrowLeft-GIsL96_R.js";import"./LinkExternal01-BaLmqC7s.js";import"./LockUnlocked01-BvnwwWjO.js";import"./use-mcp-tools-DvLDtIie.js";import"./extract-connection-data-BO1lFxJI.js";import"./metadata-dUsYcpuu.js";import"./use-navigate-to-agent-DzvTkd_w.js";import"./use-virtual-mcp-mI8FicV_.js";import"./hooks-MRTBu23Z.js";import"./decopilot-sse-pool-DmfjqIoT.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./reusable-new-chat-CouMjkYR.js";import"./provision-repo-scoped-github-connection-C2HwF4Ce.js";import"./studio-tools-D2Jk1wIZ.js";import"./DotsVertical-Dxmbo9Gl.js";import"./Globe01-D-M7ALz4.js";import"./Share07-CcMcxmU_.js";import"./Key01-B0QBJ4Qu.js";import"./Palette-CJ3pgkMW.js";import"./Trash01-CrNiAbwH.js";import"./Zap-BDRNr0t4.js";import"./dropdown-menu-CiC56tGr.js";import"./Check-CB90rOWR.js";import"./ChevronRight-BU3byqbs.js";import"./file-type-icon-C4d9Fi6_.js";import"./Eye-LnzKDn_l.js";import"./useRouterState-dQ0wTbfS.js";import"./use-settings-tabs-BJzAnyec.js";import"./use-capability-hEEyXr97.js";import"./access-gate-Ddj0999j.js";import"./capability-load-error-C3ARzCfm.js";function Ve(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Je(e,t){return e.lastSyncError?{label:e.lastSyncError,error:!0}:e.lastSyncedAt?{label:t("library.syncedRepos.syncedAgo",{ago:Ge(e.lastSyncedAt)}),error:!1}:{label:t("library.syncedRepos.waitingFirstSync"),error:!1}}function Ke(e){const t=te.c(32),{config:l,onRemove:i}=e,c=ge();let u;t[0]!==l||t[1]!==c?(u=Je(l,c),t[0]=l,t[1]=c,t[2]=u):u=t[2];const p=u;let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(he,{size:16,className:"text-muted-foreground"})}),t[3]=o):o=t[3];let a;t[4]!==l.repoName||t[5]!==l.repoOwner?(a=s.jsxs("span",{className:"font-medium text-sm truncate",children:[l.repoOwner,"/",l.repoName]}),t[4]=l.repoName,t[5]=l.repoOwner,t[6]=a):a=t[6];let n;t[7]!==l.ref?(n=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",l.ref]}),t[7]=l.ref,t[8]=n):n=t[8];let g;t[9]!==a||t[10]!==n?(g=s.jsxs("div",{className:"flex items-center gap-2",children:[a,n]}),t[9]=a,t[10]=n,t[11]=g):g=t[11];const m=p.error?"text-destructive":"text-muted-foreground";let d;t[12]!==m?(d=je("text-xs mt-0.5 truncate",m),t[12]=m,t[13]=d):d=t[13];let f;t[14]!==l.volume||t[15]!==c?(f=c("settings.syncedRepos.rowSubtitle",{volume:l.volume}),t[14]=l.volume,t[15]=c,t[16]=f):f=t[16];let y;t[17]!==p.label||t[18]!==d||t[19]!==f?(y=s.jsxs("p",{className:d,children:[f," ·"," ",p.label]}),t[17]=p.label,t[18]=d,t[19]=f,t[20]=y):y=t[20];let x;t[21]!==g||t[22]!==y?(x=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[o,s.jsxs("div",{className:"min-w-0",children:[g,y]})]}),t[21]=g,t[22]=y,t[23]=x):x=t[23];let j;t[24]!==c?(j=c("settings.syncedRepos.remove"),t[24]=c,t[25]=j):j=t[25];let h;t[26]!==i||t[27]!==j?(h=s.jsx(ee,{variant:"outline",size:"sm",onClick:i,children:j}),t[26]=i,t[27]=j,t[28]=h):h=t[28];let b;return t[29]!==x||t[30]!==h?(b=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[x,h]}),t[29]=x,t[30]=h,t[31]=b):b=t[31],b}function Me(e){const t=te.c(21),{onAdd:l}=e,i=ge();let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(he,{size:20,className:"text-muted-foreground"})}),t[0]=c):c=t[0];let u;t[1]!==i?(u=i("settings.syncedRepos.emptyTitle"),t[1]=i,t[2]=u):u=t[2];let p;t[3]!==u?(p=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=p):p=t[4];let o;t[5]!==i?(o=i("settings.syncedRepos.emptyDescription"),t[5]=i,t[6]=o):o=t[6];let a;t[7]!==o?(a=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:o}),t[7]=o,t[8]=a):a=t[8];let n;t[9]!==p||t[10]!==a?(n=s.jsxs("div",{children:[p,a]}),t[9]=p,t[10]=a,t[11]=n):n=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(xe,{size:14}),t[12]=g):g=t[12];let m;t[13]!==i?(m=i("settings.syncedRepos.addRepo"),t[13]=i,t[14]=m):m=t[14];let d;t[15]!==l||t[16]!==m?(d=s.jsxs(ee,{onClick:l,size:"sm",className:"mt-2",children:[g,m]}),t[15]=l,t[16]=m,t[17]=d):d=t[17];let f;return t[18]!==n||t[19]!==d?(f=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[c,n,d]}),t[18]=n,t[19]=d,t[20]=f):f=t[20],f}function Qe(){const e=te.c(107),t=ge(),l=Te(),i=He(),c=Be(),[u,p]=ce.useState(!1),[o,a]=ce.useState(null),[n,g]=ce.useState(""),[m,d]=ce.useState(null);let f;e[0]!==i||e[1]!==o||e[2]!==t||e[3]!==n?(f=function(){!o||!n.trim()||i.mutate({connectionId:o.connectionId,volume:n.trim()},{onSuccess:R=>{a(null),ae.success(t("settings.syncedRepos.created",{volume:R.volume}))},onError:R=>{ae.error(R instanceof Error?R.message:t("settings.syncedRepos.failed"))}})},e[0]=i,e[1]=o,e[2]=t,e[3]=n,e[4]=f):f=e[4];const y=f;let x;e[5]!==m||e[6]!==c||e[7]!==t?(x=function(){m&&c.mutate(m.id,{onSuccess:()=>ae.success(t("settings.syncedRepos.removed")),onError:R=>ae.error(R instanceof Error?R.message:t("settings.syncedRepos.failed")),onSettled:()=>d(null)})},e[5]=m,e[6]=c,e[7]=t,e[8]=x):x=e[8];const j=x;if(l.isPending){let r;return e[9]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ie,{className:"h-32 w-full"}),e[9]=r):r=e[9],r}let h;e[10]!==l.data?(h=l.data??[],e[10]=l.data,e[11]=h):h=e[11];const b=h;let S;e[12]!==t?(S=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=S):S=e[13];let v;e[14]!==S?(v=s.jsx("p",{className:"text-sm text-muted-foreground",children:S}),e[14]=S,e[15]=v):v=e[15];let N;e[16]!==b||e[17]!==t?(N=b.length===0?s.jsx(Me,{onAdd:()=>p(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(ee,{onClick:()=>p(!0),size:"sm",children:[s.jsx(xe,{size:14}),t("settings.syncedRepos.addRepo")]})}),s.jsx("section",{className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:b.map(r=>s.jsx(Ke,{config:r,onRemove:()=>d(r)},r.id))})]}),e[16]=b,e[17]=t,e[18]=N):N=e[18];let D;e[19]!==t?(D=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=D):D=e[20];let se;e[21]===Symbol.for("react.memo_cache_sentinel")?(se=r=>{p(!1),a(r),g(Ve(r.repo.name))},e[21]=se):se=e[21];let _;e[22]!==u||e[23]!==D?(_=s.jsx(Fe,{mode:"connection",open:u,onOpenChange:p,title:D,onImportComplete:se}),e[22]=u,e[23]=D,e[24]=_):_=e[24];const me=o!==null;let ie;e[25]===Symbol.for("react.memo_cache_sentinel")?(ie=r=>{r||a(null)},e[25]=ie):ie=e[25];let C;e[26]!==t?(C=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=C):C=e[27];let P;e[28]!==C?(P=s.jsx(Pe,{children:C}),e[28]=C,e[29]=P):P=e[29];const de=o?`${o.repo.owner}/${o.repo.name}`:"";let A;e[30]!==t||e[31]!==de?(A=t("settings.syncedRepos.nameDialogDescription",{repo:de}),e[30]=t,e[31]=de,e[32]=A):A=e[32];let k;e[33]!==A?(k=s.jsx(Ae,{children:A}),e[33]=A,e[34]=k):k=e[34];let w;e[35]!==P||e[36]!==k?(w=s.jsxs(ke,{children:[P,k]}),e[35]=P,e[36]=k,e[37]=w):w=e[37];let le;e[38]===Symbol.for("react.memo_cache_sentinel")?(le=r=>g(r.target.value),e[38]=le):le=e[38];let O;e[39]!==t?(O=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=O):O=e[40];let z;e[41]!==O||e[42]!==n?(z=s.jsx(Ee,{value:n,onChange:le,placeholder:O,autoFocus:!0}),e[41]=O,e[42]=n,e[43]=z):z=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>a(null),e[44]=ne):ne=e[44];const ye=i.isPending;let E;e[45]!==t?(E=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=E):E=e[46];let I;e[47]!==i.isPending||e[48]!==E?(I=s.jsx(ee,{variant:"outline",onClick:ne,disabled:ye,children:E}),e[47]=i.isPending,e[48]=E,e[49]=I):I=e[49];let $;e[50]!==i.isPending||e[51]!==n?($=!n.trim()||i.isPending,e[50]=i.isPending,e[51]=n,e[52]=$):$=e[52];let F;e[53]!==i.isPending||e[54]!==t?(F=i.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=i.isPending,e[54]=t,e[55]=F):F=e[55];let T;e[56]!==y||e[57]!==$||e[58]!==F?(T=s.jsx(ee,{disabled:$,onClick:y,children:F}),e[56]=y,e[57]=$,e[58]=F,e[59]=T):T=e[59];let H;e[60]!==I||e[61]!==T?(H=s.jsxs(we,{children:[I,T]}),e[60]=I,e[61]=T,e[62]=H):H=e[62];let B;e[63]!==w||e[64]!==z||e[65]!==H?(B=s.jsxs(Oe,{className:"sm:max-w-sm",children:[w,z,H]}),e[63]=w,e[64]=z,e[65]=H,e[66]=B):B=e[66];let G;e[67]!==B||e[68]!==me?(G=s.jsx(ze,{open:me,onOpenChange:ie,children:B}),e[67]=B,e[68]=me,e[69]=G):G=e[69];const pe=m!==null;let oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(oe=r=>{r||d(null)},e[70]=oe):oe=e[70];const fe=m?.volume??"";let q;e[71]!==t||e[72]!==fe?(q=t("settings.syncedRepos.removeTitle",{volume:fe}),e[71]=t,e[72]=fe,e[73]=q):q=e[73];let L;e[74]!==q?(L=s.jsx(be,{children:q}),e[74]=q,e[75]=L):L=e[75];let V;e[76]!==t?(V=t("settings.syncedRepos.removeDescription"),e[76]=t,e[77]=V):V=e[77];let J;e[78]!==V?(J=s.jsx(Re,{children:V}),e[78]=V,e[79]=J):J=e[79];let K;e[80]!==L||e[81]!==J?(K=s.jsxs(Se,{children:[L,J]}),e[80]=L,e[81]=J,e[82]=K):K=e[82];let M;e[83]!==t?(M=t("settings.syncedRepos.cancel"),e[83]=t,e[84]=M):M=e[84];let Q;e[85]!==M?(Q=s.jsx(ve,{children:M}),e[85]=M,e[86]=Q):Q=e[86];let U;e[87]!==t?(U=t("settings.syncedRepos.remove"),e[87]=t,e[88]=U):U=e[88];let W;e[89]!==j||e[90]!==U?(W=s.jsx(Ne,{onClick:j,children:U}),e[89]=j,e[90]=U,e[91]=W):W=e[91];let X;e[92]!==Q||e[93]!==W?(X=s.jsxs(De,{children:[Q,W]}),e[92]=Q,e[93]=W,e[94]=X):X=e[94];let Y;e[95]!==K||e[96]!==X?(Y=s.jsxs(_e,{children:[K,X]}),e[95]=K,e[96]=X,e[97]=Y):Y=e[97];let Z;e[98]!==pe||e[99]!==Y?(Z=s.jsx(Ce,{open:pe,onOpenChange:oe,children:Y}),e[98]=pe,e[99]=Y,e[100]=Z):Z=e[100];let re;return e[101]!==G||e[102]!==v||e[103]!==Z||e[104]!==N||e[105]!==_?(re=s.jsxs(s.Fragment,{children:[v,N,_,G,Z]}),e[101]=G,e[102]=v,e[103]=Z,e[104]=N,e[105]=_,e[106]=re):re=e[106],re}function Ue(){const e=te.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ue,{children:s.jsx(ue.Content,{children:s.jsx(ue.Body,{children:s.jsxs($e,{children:[s.jsx(qe,{group:"storage"}),s.jsx(Qe,{})]})})})}),e[0]=t):t=e[0],t}function ss(){const e=te.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Le,{capability:"file-configs:manage",area:"files",children:s.jsx(Ue,{})}),e[0]=t):t=e[0],t}export{ss as default};
|
|
1
|
+
import{c as te,j as s,b as ge,r as ce,B as ee,m as je,t as ae}from"./index-BphIXXOp.js";import{s as xe}from"./Plus-CgXuzVCT.js";import{c as be,d as Re,b as Se,f as ve,g as Ne,e as De,a as _e,A as Ce}from"./alert-dialog-Cqq7FgQj.js";import{b as Pe,h as Ae,a as ke,c as we,d as Oe,e as ze}from"./dialog-C2XtKj4W.js";import{I as Ee}from"./input-9TNY2G6W.js";import{S as Ie}from"./skeleton-C_J-aMdg.js";import{P as ue}from"./index-BKOwC_zz.js";import{c as $e}from"./settings-section-BN0IrtYX.js";import{G as he,a as Fe}from"./github-repo-picker-DjVb6-0i.js";import{u as Te,b as He,c as Be}from"./use-org-repo-syncs-DCxfKVxi.js";import{t as Ge}from"./cards-CxCBBMfu.js";import{S as qe}from"./settings-subnav-DlbWpD1A.js";import{R as Le}from"./require-capability-ChdE_Nc5.js";import"./X-Bfx6rO6W.js";import"./sidebar-Dckv7Gxe.js";import"./LayoutLeft-DZwVeKk1.js";import"./use-mobile-C0XoguQx.js";import"./tooltip-BfkRKScU.js";import"./card-CooN3E-v.js";import"./ArrowUpRight-C0hTvHTE.js";import"./collection-search-H6c7ia6t.js";import"./SearchMd-BOeEZKFu.js";import"./use-debounced-value-D880nDlC.js";import"./use-connection-B5TzA1Ut.js";import"./use-mcp-client-DKcZ7v-W.js";import"./auth-tEJ4bybR.js";import"./authenticate-and-persist-oauth-CqRX86RU.js";import"./mcp-oauth--A5K-xL8.js";import"./ArrowLeft-CwsJ1Sfc.js";import"./LinkExternal01-Do6tmctI.js";import"./LockUnlocked01-BxK9l3CJ.js";import"./use-mcp-tools-B4aUfPof.js";import"./extract-connection-data-V948FMyj.js";import"./metadata-dUsYcpuu.js";import"./use-navigate-to-agent-Cxg9_mL_.js";import"./use-virtual-mcp-IokMTZJW.js";import"./hooks-Cd2G3711.js";import"./decopilot-sse-pool-U92pbu07.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./reusable-new-chat-CouMjkYR.js";import"./provision-repo-scoped-github-connection-C2HwF4Ce.js";import"./studio-tools-BoD8kcA1.js";import"./DotsVertical-Bohq38Q1.js";import"./Globe01-DEX4B2yM.js";import"./Share07-B14EYmF_.js";import"./Key01-CRQOB5O_.js";import"./Palette-5WrpEUaC.js";import"./Trash01-COMthlp3.js";import"./Zap-li0rR-RI.js";import"./dropdown-menu-Buaqq-Fn.js";import"./Check-BdzjeMXF.js";import"./ChevronRight-wqbYwiLF.js";import"./file-type-icon-BSAnhEu5.js";import"./Eye-C5vDWwaK.js";import"./useRouterState-BHrQRzTY.js";import"./use-settings-tabs-BO1uyGPC.js";import"./use-capability-mz-0XBoJ.js";import"./access-gate-C8o_OE1N.js";import"./capability-load-error-CPQoG_lp.js";function Ve(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Je(e,t){return e.lastSyncError?{label:e.lastSyncError,error:!0}:e.lastSyncedAt?{label:t("library.syncedRepos.syncedAgo",{ago:Ge(e.lastSyncedAt)}),error:!1}:{label:t("library.syncedRepos.waitingFirstSync"),error:!1}}function Ke(e){const t=te.c(32),{config:l,onRemove:i}=e,c=ge();let u;t[0]!==l||t[1]!==c?(u=Je(l,c),t[0]=l,t[1]=c,t[2]=u):u=t[2];const p=u;let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(he,{size:16,className:"text-muted-foreground"})}),t[3]=o):o=t[3];let a;t[4]!==l.repoName||t[5]!==l.repoOwner?(a=s.jsxs("span",{className:"font-medium text-sm truncate",children:[l.repoOwner,"/",l.repoName]}),t[4]=l.repoName,t[5]=l.repoOwner,t[6]=a):a=t[6];let n;t[7]!==l.ref?(n=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",l.ref]}),t[7]=l.ref,t[8]=n):n=t[8];let g;t[9]!==a||t[10]!==n?(g=s.jsxs("div",{className:"flex items-center gap-2",children:[a,n]}),t[9]=a,t[10]=n,t[11]=g):g=t[11];const m=p.error?"text-destructive":"text-muted-foreground";let d;t[12]!==m?(d=je("text-xs mt-0.5 truncate",m),t[12]=m,t[13]=d):d=t[13];let f;t[14]!==l.volume||t[15]!==c?(f=c("settings.syncedRepos.rowSubtitle",{volume:l.volume}),t[14]=l.volume,t[15]=c,t[16]=f):f=t[16];let y;t[17]!==p.label||t[18]!==d||t[19]!==f?(y=s.jsxs("p",{className:d,children:[f," ·"," ",p.label]}),t[17]=p.label,t[18]=d,t[19]=f,t[20]=y):y=t[20];let x;t[21]!==g||t[22]!==y?(x=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[o,s.jsxs("div",{className:"min-w-0",children:[g,y]})]}),t[21]=g,t[22]=y,t[23]=x):x=t[23];let j;t[24]!==c?(j=c("settings.syncedRepos.remove"),t[24]=c,t[25]=j):j=t[25];let h;t[26]!==i||t[27]!==j?(h=s.jsx(ee,{variant:"outline",size:"sm",onClick:i,children:j}),t[26]=i,t[27]=j,t[28]=h):h=t[28];let b;return t[29]!==x||t[30]!==h?(b=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[x,h]}),t[29]=x,t[30]=h,t[31]=b):b=t[31],b}function Me(e){const t=te.c(21),{onAdd:l}=e,i=ge();let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(he,{size:20,className:"text-muted-foreground"})}),t[0]=c):c=t[0];let u;t[1]!==i?(u=i("settings.syncedRepos.emptyTitle"),t[1]=i,t[2]=u):u=t[2];let p;t[3]!==u?(p=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=p):p=t[4];let o;t[5]!==i?(o=i("settings.syncedRepos.emptyDescription"),t[5]=i,t[6]=o):o=t[6];let a;t[7]!==o?(a=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:o}),t[7]=o,t[8]=a):a=t[8];let n;t[9]!==p||t[10]!==a?(n=s.jsxs("div",{children:[p,a]}),t[9]=p,t[10]=a,t[11]=n):n=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(xe,{size:14}),t[12]=g):g=t[12];let m;t[13]!==i?(m=i("settings.syncedRepos.addRepo"),t[13]=i,t[14]=m):m=t[14];let d;t[15]!==l||t[16]!==m?(d=s.jsxs(ee,{onClick:l,size:"sm",className:"mt-2",children:[g,m]}),t[15]=l,t[16]=m,t[17]=d):d=t[17];let f;return t[18]!==n||t[19]!==d?(f=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[c,n,d]}),t[18]=n,t[19]=d,t[20]=f):f=t[20],f}function Qe(){const e=te.c(107),t=ge(),l=Te(),i=He(),c=Be(),[u,p]=ce.useState(!1),[o,a]=ce.useState(null),[n,g]=ce.useState(""),[m,d]=ce.useState(null);let f;e[0]!==i||e[1]!==o||e[2]!==t||e[3]!==n?(f=function(){!o||!n.trim()||i.mutate({connectionId:o.connectionId,volume:n.trim()},{onSuccess:R=>{a(null),ae.success(t("settings.syncedRepos.created",{volume:R.volume}))},onError:R=>{ae.error(R instanceof Error?R.message:t("settings.syncedRepos.failed"))}})},e[0]=i,e[1]=o,e[2]=t,e[3]=n,e[4]=f):f=e[4];const y=f;let x;e[5]!==m||e[6]!==c||e[7]!==t?(x=function(){m&&c.mutate(m.id,{onSuccess:()=>ae.success(t("settings.syncedRepos.removed")),onError:R=>ae.error(R instanceof Error?R.message:t("settings.syncedRepos.failed")),onSettled:()=>d(null)})},e[5]=m,e[6]=c,e[7]=t,e[8]=x):x=e[8];const j=x;if(l.isPending){let r;return e[9]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ie,{className:"h-32 w-full"}),e[9]=r):r=e[9],r}let h;e[10]!==l.data?(h=l.data??[],e[10]=l.data,e[11]=h):h=e[11];const b=h;let S;e[12]!==t?(S=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=S):S=e[13];let v;e[14]!==S?(v=s.jsx("p",{className:"text-sm text-muted-foreground",children:S}),e[14]=S,e[15]=v):v=e[15];let N;e[16]!==b||e[17]!==t?(N=b.length===0?s.jsx(Me,{onAdd:()=>p(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(ee,{onClick:()=>p(!0),size:"sm",children:[s.jsx(xe,{size:14}),t("settings.syncedRepos.addRepo")]})}),s.jsx("section",{className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:b.map(r=>s.jsx(Ke,{config:r,onRemove:()=>d(r)},r.id))})]}),e[16]=b,e[17]=t,e[18]=N):N=e[18];let D;e[19]!==t?(D=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=D):D=e[20];let se;e[21]===Symbol.for("react.memo_cache_sentinel")?(se=r=>{p(!1),a(r),g(Ve(r.repo.name))},e[21]=se):se=e[21];let _;e[22]!==u||e[23]!==D?(_=s.jsx(Fe,{mode:"connection",open:u,onOpenChange:p,title:D,onImportComplete:se}),e[22]=u,e[23]=D,e[24]=_):_=e[24];const me=o!==null;let ie;e[25]===Symbol.for("react.memo_cache_sentinel")?(ie=r=>{r||a(null)},e[25]=ie):ie=e[25];let C;e[26]!==t?(C=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=C):C=e[27];let P;e[28]!==C?(P=s.jsx(Pe,{children:C}),e[28]=C,e[29]=P):P=e[29];const de=o?`${o.repo.owner}/${o.repo.name}`:"";let A;e[30]!==t||e[31]!==de?(A=t("settings.syncedRepos.nameDialogDescription",{repo:de}),e[30]=t,e[31]=de,e[32]=A):A=e[32];let k;e[33]!==A?(k=s.jsx(Ae,{children:A}),e[33]=A,e[34]=k):k=e[34];let w;e[35]!==P||e[36]!==k?(w=s.jsxs(ke,{children:[P,k]}),e[35]=P,e[36]=k,e[37]=w):w=e[37];let le;e[38]===Symbol.for("react.memo_cache_sentinel")?(le=r=>g(r.target.value),e[38]=le):le=e[38];let O;e[39]!==t?(O=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=O):O=e[40];let z;e[41]!==O||e[42]!==n?(z=s.jsx(Ee,{value:n,onChange:le,placeholder:O,autoFocus:!0}),e[41]=O,e[42]=n,e[43]=z):z=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>a(null),e[44]=ne):ne=e[44];const ye=i.isPending;let E;e[45]!==t?(E=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=E):E=e[46];let I;e[47]!==i.isPending||e[48]!==E?(I=s.jsx(ee,{variant:"outline",onClick:ne,disabled:ye,children:E}),e[47]=i.isPending,e[48]=E,e[49]=I):I=e[49];let $;e[50]!==i.isPending||e[51]!==n?($=!n.trim()||i.isPending,e[50]=i.isPending,e[51]=n,e[52]=$):$=e[52];let F;e[53]!==i.isPending||e[54]!==t?(F=i.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=i.isPending,e[54]=t,e[55]=F):F=e[55];let T;e[56]!==y||e[57]!==$||e[58]!==F?(T=s.jsx(ee,{disabled:$,onClick:y,children:F}),e[56]=y,e[57]=$,e[58]=F,e[59]=T):T=e[59];let H;e[60]!==I||e[61]!==T?(H=s.jsxs(we,{children:[I,T]}),e[60]=I,e[61]=T,e[62]=H):H=e[62];let B;e[63]!==w||e[64]!==z||e[65]!==H?(B=s.jsxs(Oe,{className:"sm:max-w-sm",children:[w,z,H]}),e[63]=w,e[64]=z,e[65]=H,e[66]=B):B=e[66];let G;e[67]!==B||e[68]!==me?(G=s.jsx(ze,{open:me,onOpenChange:ie,children:B}),e[67]=B,e[68]=me,e[69]=G):G=e[69];const pe=m!==null;let oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(oe=r=>{r||d(null)},e[70]=oe):oe=e[70];const fe=m?.volume??"";let q;e[71]!==t||e[72]!==fe?(q=t("settings.syncedRepos.removeTitle",{volume:fe}),e[71]=t,e[72]=fe,e[73]=q):q=e[73];let L;e[74]!==q?(L=s.jsx(be,{children:q}),e[74]=q,e[75]=L):L=e[75];let V;e[76]!==t?(V=t("settings.syncedRepos.removeDescription"),e[76]=t,e[77]=V):V=e[77];let J;e[78]!==V?(J=s.jsx(Re,{children:V}),e[78]=V,e[79]=J):J=e[79];let K;e[80]!==L||e[81]!==J?(K=s.jsxs(Se,{children:[L,J]}),e[80]=L,e[81]=J,e[82]=K):K=e[82];let M;e[83]!==t?(M=t("settings.syncedRepos.cancel"),e[83]=t,e[84]=M):M=e[84];let Q;e[85]!==M?(Q=s.jsx(ve,{children:M}),e[85]=M,e[86]=Q):Q=e[86];let U;e[87]!==t?(U=t("settings.syncedRepos.remove"),e[87]=t,e[88]=U):U=e[88];let W;e[89]!==j||e[90]!==U?(W=s.jsx(Ne,{onClick:j,children:U}),e[89]=j,e[90]=U,e[91]=W):W=e[91];let X;e[92]!==Q||e[93]!==W?(X=s.jsxs(De,{children:[Q,W]}),e[92]=Q,e[93]=W,e[94]=X):X=e[94];let Y;e[95]!==K||e[96]!==X?(Y=s.jsxs(_e,{children:[K,X]}),e[95]=K,e[96]=X,e[97]=Y):Y=e[97];let Z;e[98]!==pe||e[99]!==Y?(Z=s.jsx(Ce,{open:pe,onOpenChange:oe,children:Y}),e[98]=pe,e[99]=Y,e[100]=Z):Z=e[100];let re;return e[101]!==G||e[102]!==v||e[103]!==Z||e[104]!==N||e[105]!==_?(re=s.jsxs(s.Fragment,{children:[v,N,_,G,Z]}),e[101]=G,e[102]=v,e[103]=Z,e[104]=N,e[105]=_,e[106]=re):re=e[106],re}function Ue(){const e=te.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ue,{children:s.jsx(ue.Content,{children:s.jsx(ue.Body,{children:s.jsxs($e,{children:[s.jsx(qe,{group:"storage"}),s.jsx(Qe,{})]})})})}),e[0]=t):t=e[0],t}function ss(){const e=te.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Le,{capability:"file-configs:manage",area:"files",children:s.jsx(Ue,{})}),e[0]=t):t=e[0],t}export{ss as default};
|