decocms 4.605.0 → 4.606.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-BodtFcwa.js → AlertCircle-BnvM2zPn.js} +1 -1
- package/dist/client/assets/{AreaChart-CjbFb_L6.js → AreaChart-7dMZB_xx.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DgzOetZ9.js → ArrowLeft-Cd0NVNmx.js} +1 -1
- package/dist/client/assets/{ArrowRight-aDVZWC-C.js → ArrowRight-CJz5gOCD.js} +1 -1
- package/dist/client/assets/{ArrowUp-BYGtX-_f.js → ArrowUp-BEEJnhdb.js} +1 -1
- package/dist/client/assets/{BookOpen01-HlvgQjwt.js → BookOpen01-CniP2FYm.js} +1 -1
- package/dist/client/assets/{CartesianChart-CaDm2fjm.js → CartesianChart-BiEsLRUW.js} +1 -1
- package/dist/client/assets/{CategoricalChart-sHldvFcC.js → CategoricalChart-DcZPtYA2.js} +1 -1
- package/dist/client/assets/{CheckCircle-Dah9jeY2.js → CheckCircle-j4c_X-af.js} +1 -1
- package/dist/client/assets/{ChevronDown-CXawdj31.js → ChevronDown-CgFdozOH.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-Ch5nmynK.js → ChevronSelectorVertical-yXbEsDqn.js} +1 -1
- package/dist/client/assets/{ChevronUp-x4csN1P_.js → ChevronUp-DHTjh0Y0.js} +1 -1
- package/dist/client/assets/{CreditCard01-DNyFsaCV.js → CreditCard01-D5GOo7iv.js} +1 -1
- package/dist/client/assets/{Eye-DteZLUM4.js → Eye-C32r2IAs.js} +1 -1
- package/dist/client/assets/{File02-CC-U2Arr.js → File02-UWhgjmWr.js} +1 -1
- package/dist/client/assets/{Fingerprint04-BvJCAFqB.js → Fingerprint04-gCgCsnUd.js} +1 -1
- package/dist/client/assets/{Globe04-DVM4g6bL.js → Globe04-BBjGUuck.js} +1 -1
- package/dist/client/assets/{Image01-BhokHisl.js → Image01-DDkJ9Dy9.js} +1 -1
- package/dist/client/assets/{Key01-uSPI1gT_.js → Key01-FL089-X0.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BxDKRvBF.js → LayoutLeft-QRmxiAYs.js} +1 -1
- package/dist/client/assets/{LinkBroken01-DXtz62mO.js → LinkBroken01-BfDrOTcX.js} +1 -1
- package/dist/client/assets/{MessageCircle01-B4UE40aX.js → MessageCircle01-DEM19Mwq.js} +1 -1
- package/dist/client/assets/{Minus-BzXBzVF-.js → Minus-CsrGKORi.js} +1 -1
- package/dist/client/assets/{Monitor01-C5ZEAMCm.js → Monitor01-QolCBWSs.js} +1 -1
- package/dist/client/assets/{Play-BjXL9p8F.js → Play-vxTYqc4m.js} +1 -1
- package/dist/client/assets/{Plus-D3LlERXJ.js → Plus-DeLQd6Zk.js} +1 -1
- package/dist/client/assets/{ReferenceLine-Bc5LuluP.js → ReferenceLine-7qZe1xv5.js} +1 -1
- package/dist/client/assets/{SearchMd-DnS7d9Ee.js → SearchMd-DkgqPnqC.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-D-D7_e-d.js → ShoppingBag01-s29quf7C.js} +1 -1
- package/dist/client/assets/{Sun-BMzx7_fZ.js → Sun-Bc2vUXCs.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CNZW6LKe.js → SwitchHorizontal01-BgC-HYh4.js} +1 -1
- package/dist/client/assets/{Tool01-BA13F6bw.js → Tool01-CTybRVg-.js} +1 -1
- package/dist/client/assets/{Tooltip-Dii1B-fM.js → Tooltip-B_Qf-vS6.js} +1 -1
- package/dist/client/assets/{Trash01-C1JB_HDr.js → Trash01-BisimWOO.js} +1 -1
- package/dist/client/assets/{Upload01-CwC3e55G.js → Upload01-Do_OoIek.js} +1 -1
- package/dist/client/assets/{UserCheck01-DywBSoK3.js → UserCheck01-DladGbjD.js} +1 -1
- package/dist/client/assets/{UserSquare-BzfdCQlh.js → UserSquare-CHpQ373y.js} +1 -1
- package/dist/client/assets/{Users01-DndLVpMW.js → Users01-B3OmPtEM.js} +1 -1
- package/dist/client/assets/{XClose-CcCbyQh_.js → XClose-CVMqN_gP.js} +1 -1
- package/dist/client/assets/{Zap-Btccd9_S.js → Zap-4V-BwSiv.js} +1 -1
- package/dist/client/assets/{access-gate-D5qI5wB4.js → access-gate-CSi5AK6V.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-Bnb6aupI.js → add-connection-dialog-CTd_ZrMe.js} +1 -1
- package/dist/client/assets/agent-app-CLnzh8fW.js +1 -0
- package/dist/client/assets/{agent-assets-B-rLBlTy.js → agent-assets-C9CcO-dR.js} +1 -1
- package/dist/client/assets/{agent-automation-BMU9KNaW.js → agent-automation-BN9lsLvH.js} +1 -1
- package/dist/client/assets/{agent-automations-CIAtGC14.js → agent-automations-BQBcsn7g.js} +1 -1
- package/dist/client/assets/{agent-blog-BruAd36b.js → agent-blog-C7OGLgVO.js} +2 -2
- package/dist/client/assets/{agent-blog-post-ozyqXXfJ.js → agent-blog-post-C7kFKVWs.js} +2 -2
- package/dist/client/assets/{agent-business-case-C0zc7nTc.js → agent-business-case-l0oL_aOf.js} +1 -1
- package/dist/client/assets/{agent-calendar-C18_UufH.js → agent-calendar-oGr9KnxK.js} +1 -1
- package/dist/client/assets/{agent-capabilities-BcU9kHgo.js → agent-capabilities-8-THEmCQ.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DYUlg0UE.js → agent-connect-sources-B-f0T_dA.js} +1 -1
- package/dist/client/assets/agent-deck-nV8QPinM.js +1 -0
- package/dist/client/assets/{agent-e2e-BEXnNXca.js → agent-e2e-ByRXToYu.js} +1 -1
- package/dist/client/assets/agent-experiments-DcVLTDe4.js +1 -0
- package/dist/client/assets/agent-file-DHzzmhZQ.js +1 -0
- package/dist/client/assets/{agent-hosting-DtzRZLa6.js → agent-hosting-DpX_SMbk.js} +1 -1
- package/dist/client/assets/{agent-icon-BG1i7gmz.js → agent-icon-Dm6RpqF8.js} +1 -1
- package/dist/client/assets/agent-library-DS6qNrX6.js +1 -0
- package/dist/client/assets/agent-library-file-DaBR5AP5.js +1 -0
- package/dist/client/assets/agent-overview-CghLwyLX.js +1 -0
- package/dist/client/assets/{agent-releases-D1hqnO7h.js → agent-releases-_JCaTszP.js} +1 -1
- package/dist/client/assets/agent-settings-D7iXzsDR.js +1 -0
- package/dist/client/assets/{agent-site-editor-pauq_N3M.js → agent-site-editor-BwIwV-_s.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-V1IdBtHI.js +2 -0
- package/dist/client/assets/agent-site-editor-content-CaoScvdd.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-DqjATknb.js +1 -0
- package/dist/client/assets/agent-view-B6TbpKQz.js +1 -0
- package/dist/client/assets/{agent-view-guard-C3B555p9.js → agent-view-guard-qJlmvJ2i.js} +1 -1
- package/dist/client/assets/{ai-providers-CdyxU1aA.js → ai-providers-DIMv7MuQ.js} +1 -1
- package/dist/client/assets/{alert-Cu41JnRH.js → alert-DXdTY_co.js} +1 -1
- package/dist/client/assets/{analytics-sections-D_EBoYd3.js → analytics-sections-BAKZwfQK.js} +1 -1
- package/dist/client/assets/api-keys-BQLd9bb4.js +1 -0
- package/dist/client/assets/{api-keys-C9NPLrPS.js → api-keys-DudbMq0O.js} +1 -1
- package/dist/client/assets/{app-editor-BYo2sxJ4.js → app-editor-BNP0bnXd.js} +1 -1
- package/dist/client/assets/{asset-utils-CQQKj4KP.js → asset-utils-DP0JUVd0.js} +1 -1
- package/dist/client/assets/{auth-VFTZl0UB.js → auth-B3rll25Q.js} +1 -1
- package/dist/client/assets/{auth-catchall-AjsrlVu9.js → auth-catchall-BpnUWbtj.js} +1 -1
- package/dist/client/assets/{auth-entry-EGyQ7lfC.js → auth-entry-DPm1gfg8.js} +1 -1
- package/dist/client/assets/{auth-split-layout-8naxbL-2.js → auth-split-layout-BB2A-i4i.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CkNJzR5A.js → authenticate-and-persist-oauth-DHo0EDTo.js} +1 -1
- package/dist/client/assets/{automation-list-row-CyKk1lZD.js → automation-list-row-DyD2mlhI.js} +1 -1
- package/dist/client/assets/{automation-runs-CFCkwC0j.js → automation-runs-B260PiC4.js} +1 -1
- package/dist/client/assets/{automations-Dl-Dvtjk.js → automations-jfzv7LWR.js} +1 -1
- package/dist/client/assets/{badge-CE7YbwTl.js → badge-D4SppS4a.js} +1 -1
- package/dist/client/assets/{block-document-BppzVZrG.js → block-document-9iI71H4j.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-PyxPfBnd.js → blocks-preview-workspace-context-DKWDQeqh.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-CuLvvePK.js → blocks-tab-states-BpK6vpo6.js} +1 -1
- package/dist/client/assets/{blog-preview-url-0gexiswS.js → blog-preview-url-D939q-DY.js} +1 -1
- package/dist/client/assets/{blog-schema-BxBrPQZf.js → blog-schema-CzkJNwF8.js} +1 -1
- package/dist/client/assets/{blog-source-gate-Kj-x0Y5Q.js → blog-source-gate-DuEoVk4M.js} +1 -1
- package/dist/client/assets/{blog-view-gate-D2LfYCHB.js → blog-view-gate-C9Qoo4AP.js} +1 -1
- package/dist/client/assets/{buckets-Ci_C-byl.js → buckets-h4Xd0Shl.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DP9H3Qex.js → build-improve-prompt-doc-B4jXwv2B.js} +1 -1
- package/dist/client/assets/{calendar-kDAoF41r.js → calendar-jAkK1h4P.js} +1 -1
- package/dist/client/assets/{capability-load-error-Tn6fWbpS.js → capability-load-error-DgNMLQdO.js} +1 -1
- package/dist/client/assets/{category-editor-CS5ulD2U.js → category-editor-BSeQjFfF.js} +1 -1
- package/dist/client/assets/{category-tree-D2tyKDuY.js → category-tree-Cd3u8CgY.js} +1 -1
- package/dist/client/assets/{chart-Byf4XQVN.js → chart-DN02XHvp.js} +1 -1
- package/dist/client/assets/{chat-context-DheRYNZa.js → chat-context-CFwMTZxg.js} +1 -1
- package/dist/client/assets/{chat-draft-DKmtgP4M.js → chat-draft-Dwk_ftl7.js} +1 -1
- package/dist/client/assets/{checkbox-I411NqYX.js → checkbox-C_A3I8PZ.js} +1 -1
- package/dist/client/assets/{choose-editor-DlarvvQ-.js → choose-editor-DR14fMrT.js} +1 -1
- package/dist/client/assets/{cli-auth-success--pONcgi1.js → cli-auth-success-DhRSjchB.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-C7EucVm7.js → cms-settings-editor-aB3htJiT.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-92haPQGD.js → cms-store-drafts-D4v5Su2t.js} +1 -1
- package/dist/client/assets/{collapsible-DwaxmoW1.js → collapsible-BdoAQ_YW.js} +1 -1
- package/dist/client/assets/{collection-detail-SmQFH-qD.js → collection-detail-Df2LNCkO.js} +1 -1
- package/dist/client/assets/{collection-display-button-DuvAHqCY.js → collection-display-button-sax1OYuh.js} +1 -1
- package/dist/client/assets/{collection-search-CGbA6B6M.js → collection-search-CsTBV1HW.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-3it25vl7.js → collection-table-wrapper-Dmac7M7W.js} +1 -1
- package/dist/client/assets/{collection-tabs-DltCAINe.js → collection-tabs-CiMUTK0X.js} +1 -1
- package/dist/client/assets/{combobox-CYpYC39f.js → combobox-WEsHrsLB.js} +1 -1
- package/dist/client/assets/{command-D5KKg7Po.js → command-BeE3X8y5.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-BwxmUMIN.js → companion-mcps-section-2bf4qFXl.js} +1 -1
- package/dist/client/assets/{config-P-h3mlnU.js → config-Dowl5-lT.js} +1 -1
- package/dist/client/assets/{connect-nUq612aL.js → connect-X--ET8Q_.js} +1 -1
- package/dist/client/assets/{connect-key-ukXJzEF6.js → connect-key-CL1RFrIq.js} +1 -1
- package/dist/client/assets/{connect-layout-CzRgax0u.js → connect-layout-DwfC5Tp5.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-HdWrxtI3.js → connect-source-dialog-smjUO-rv.js} +1 -1
- package/dist/client/assets/{connection-Dc06pK8f.js → connection-D7HLw2dv.js} +1 -1
- package/dist/client/assets/{connection-card-Bp8kpfAc.js → connection-card-C_9cdPDA.js} +1 -1
- package/dist/client/assets/{connection-detail-Bsa4T07R.js → connection-detail-BQeSAUki.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-9IiTX-RV.js → connection-form-helpers-F50wjXuJ.js} +1 -1
- package/dist/client/assets/{connection-slug-BfMtrnxd.js → connection-slug-DQG3aDy4.js} +1 -1
- package/dist/client/assets/{connections-DMCgaaZj.js → connections-BpeHggZB.js} +1 -1
- package/dist/client/assets/{content-changes-Dilm5O36.js → content-changes-BOt-zN-n.js} +1 -1
- package/dist/client/assets/{content-tab-pPR3n-pk.js → content-tab-BQW9Jjow.js} +3 -3
- package/dist/client/assets/{context-DDJLQasP.js → context-DV09Gh4n.js} +1 -1
- package/dist/client/assets/{context-menu-D_0JWbxu.js → context-menu-BdOTQJ-w.js} +1 -1
- package/dist/client/assets/{context-shell-UYzArPpn.js → context-shell-D9K7EGqf.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-Bnctzg-m.js → create-organization-dialog-BMb_Yq3I.js} +1 -1
- package/dist/client/assets/{daily-pulse-tvArjFu0.js → daily-pulse-CA8YgXPc.js} +1 -1
- package/dist/client/assets/{delete-copy-Duz9BHwC.js → delete-copy-XLAaZTxP.js} +1 -1
- package/dist/client/assets/{device-hint-DEag8WwZ.js → device-hint-C3yBJGRz.js} +1 -1
- package/dist/client/assets/{discover-DdUPAsXz.js → discover-wO8Lh4xH.js} +1 -1
- package/dist/client/assets/{domain-settings-CHK45Pfw.js → domain-settings-BdILIdm0.js} +1 -1
- package/dist/client/assets/{drawer--kiS5dBn.js → drawer-hyE0YUay.js} +1 -1
- package/dist/client/assets/{editor-C1KY7pbs.js → editor-BXYu1VfE.js} +1 -1
- package/dist/client/assets/{editor-classes-DpiMJloW.js → editor-classes-CXELBxwb.js} +1 -1
- package/dist/client/assets/{empty-state-CKNJFM0g.js → empty-state-B4S8Q1Lp.js} +1 -1
- package/dist/client/assets/{empty-state-C2fGsW3_.js → empty-state-DV02Ri_0.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-B9mDPy3T.js → experiments-tab-choice-yhD85Qlq.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Bbqi9tlA.js → extract-connection-data-Bja18LWr.js} +1 -1
- package/dist/client/assets/{feature-gate-0i5hB25s.js → feature-gate-DnBLX_ax.js} +1 -1
- package/dist/client/assets/{feature-paywall-NMojxqZr.js → feature-paywall-CnwT2io1.js} +1 -1
- package/dist/client/assets/{file-explorer-B4YpDjaM.js → file-explorer-DEqX8ILr.js} +1 -1
- package/dist/client/assets/{file-preview-D6CfQViG.js → file-preview-Cf5LNuD-.js} +1 -1
- package/dist/client/assets/{file-share-button-B2vaDTgQ.js → file-share-button-CtA53oKL.js} +1 -1
- package/dist/client/assets/{file-type-icon-CNhs2rM5.js → file-type-icon-yff1-x5Z.js} +1 -1
- package/dist/client/assets/{folder-icon-M6nLjZmy.js → folder-icon-CIGqxMhn.js} +1 -1
- package/dist/client/assets/{form-CzPbiwCk.js → form-Dkg-sgNu.js} +1 -1
- package/dist/client/assets/{frame-navigation-D3BFl5rC.js → frame-navigation-BRdg3ujp.js} +1 -1
- package/dist/client/assets/{gateway-client-BVjB9G0S.js → gateway-client-CHRYzCCC.js} +1 -1
- package/dist/client/assets/{general-D5_o0sLN.js → general-DPWjDOAo.js} +1 -1
- package/dist/client/assets/{github-icon-Dum7qGK9.js → github-icon-tDaC8JEi.js} +1 -1
- package/dist/client/assets/{held-block-view-Y8q8NQwP.js → held-block-view-9NiK589h.js} +1 -1
- package/dist/client/assets/{home-CP-V93PA.js → home-BcHqW7NY.js} +1 -1
- package/dist/client/assets/{home-overview-gvFUR_9e.js → home-overview-BvxWraWl.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-C-7rKCsW.js → hosted-reconcile-BoB9JfVs.js} +1 -1
- package/dist/client/assets/{icon-button-DHp8_9LF.js → icon-button-BFdlJx_k.js} +1 -1
- package/dist/client/assets/{index-BFDOeyWj.js → index-8M-FuRJl.js} +1 -1
- package/dist/client/assets/{index-bTk-uf2S.js → index-B_W22vto.js} +1 -1
- package/dist/client/assets/{index-DWyOfEFs.js → index-BbZD-rE-.js} +1 -1
- package/dist/client/assets/{index-sKHGQ8bA.js → index-BpK7UzPN.js} +1 -1
- package/dist/client/assets/{index-Bcg9QrdK.js → index-ButcdXIJ.js} +1 -1
- package/dist/client/assets/{index-CLY9DSuT.js → index-CAls-afN.js} +1 -1
- package/dist/client/assets/{index-DHeyTtUa.js → index-CEt4ZjeR.js} +1 -1
- package/dist/client/assets/{index-CcUHZJh_.js → index-CHOZmISS.js} +1 -1
- package/dist/client/assets/{index-DzFzFcy8.js → index-CIIzucpT.js} +1 -1
- package/dist/client/assets/{index-FlVkgqB3.js → index-Chehsr0o.js} +1 -1
- package/dist/client/assets/{index-BfX-079M.js → index-Ckh_gvL_.js} +1 -1
- package/dist/client/assets/{index-DQWDDBEh.js → index-D2-E2wbG.js} +1 -1
- package/dist/client/assets/{index-BMZ0iqFK.js → index-DMOYB1RJ.js} +1 -1
- package/dist/client/assets/{index-CMOYwhXD.js → index-DOmkLjR6.js} +8 -24
- package/dist/client/assets/{index-CgKFiwIf.js → index-EB7tK8Va.js} +1 -1
- package/dist/client/assets/{index-CVJXgdNU.js → index-LBeW6D5i.js} +1 -1
- package/dist/client/assets/{index-DygnKuGF.js → index-YltJ6l1y.js} +1 -1
- package/dist/client/assets/{index-redirect-DBi2Ms9H.js → index-redirect-B8ZtWNMF.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CWkvrMky.js → infiniteQueryObserver-Tiyzq5P5.js} +1 -1
- package/dist/client/assets/{infra-billing-BL2eqgHh.js → infra-billing-CM2Slbbz.js} +1 -1
- package/dist/client/assets/{input-4eZkb8k7.js → input-D5hqY6hw.js} +3 -3
- package/dist/client/assets/{input-Dywy3XfP.js → input-DjZ2MK-S.js} +1 -1
- package/dist/client/assets/{integration-icon-C2Up_E6S.js → integration-icon-C86ALwAW.js} +1 -1
- package/dist/client/assets/{item-actions-DqwEF8yZ.js → item-actions-jzLWSJEo.js} +1 -1
- package/dist/client/assets/{jira-icon-DOX7QGTN.js → jira-icon-1GeI6igz.js} +1 -1
- package/dist/client/assets/{label-Bww6rH3P.js → label-CMTL587D.js} +1 -1
- package/dist/client/assets/{layout-B-4k0t5s.js → layout-C1wxkSLB.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-B8zKoY6V.js → legacy-admin-welcome-dialog-T6gph-_N.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BpacK6Ur.js → legacy-agents-deep-CszuODii.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-C6lQumIx.js → legacy-main-redirect-C-Yax8Z5.js} +1 -1
- package/dist/client/assets/library-ivMqyHwf.js +1 -0
- package/dist/client/assets/{library-tab-EtzsJ1Jx.js → library-tab-Bwp01649.js} +1 -1
- package/dist/client/assets/{login-CPxJ3_Su.js → login-DMIOJgeb.js} +1 -1
- package/dist/client/assets/{markdown-Bi25DZW_.js → markdown-CfdC1Kmt.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-_y7Sc4cz.js → mcp-app-renderer-kjyoHdXX.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BtlUP1pO.js → mcp-oauth-DR3WlfHj.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DTqz3wMv.js → mcp-oauth-Dd5isk9C.js} +1 -1
- package/dist/client/assets/{members-Cb4H-FJq.js → members-DHadlLrQ.js} +1 -1
- package/dist/client/assets/{memory-BEOd7AZb.js → memory-ChyhTzkn.js} +1 -1
- package/dist/client/assets/{mock-board-N4fziTJI.js → mock-board-_D8hcMbq.js} +3 -3
- package/dist/client/assets/{monaco-editor-BM7hKlAv.js → monaco-editor-Djd2rBQX.js} +1 -1
- package/dist/client/assets/{monitoring-TgRk1dxf.js → monitoring-D4IC0sJF.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BEEQEqRT.js → monitoring-stats-row-BqL0Uzc_.js} +1 -1
- package/dist/client/assets/{multi-select-Cc4yf040.js → multi-select-DfXRJYnm.js} +1 -1
- package/dist/client/assets/{mustache-DUlmsVay.js → mustache-GDcVtru8.js} +1 -1
- package/dist/client/assets/{named-rule-step-K3CcxhyF.js → named-rule-step-DU79Q1ds.js} +1 -1
- package/dist/client/assets/{named-rule-view-B9rNMjLf.js → named-rule-view-CQJoOEqp.js} +1 -1
- package/dist/client/assets/{new-project-dialog-e39xBQJC.js → new-project-dialog-G1F3eAq3.js} +1 -1
- package/dist/client/assets/{new-project-store-CsdnPKbV.js → new-project-store-Do9IYVct.js} +1 -1
- package/dist/client/assets/{oauth-callback-BYJovxS4.js → oauth-callback-BJz5xuZX.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-exavX_0Q.js → oauth-callback-ai-provider-JDy4vNzb.js} +1 -1
- package/dist/client/assets/{oauth-consent-C8hvHu-0.js → oauth-consent-CERucGfB.js} +1 -1
- package/dist/client/assets/{onboarding-BlaowvYa.js → onboarding-CsJQrXy4.js} +1 -1
- package/dist/client/assets/{openai-conversation--MkAx84L.js → openai-conversation-CuSGsNpa.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-BOQrFlQO.js → optimistic-project-sidebar-views-DDC1hObG.js} +1 -1
- package/dist/client/assets/{order-monitor-day-kmYzdtqG.js → order-monitor-day-BCrJC9Q_.js} +1 -1
- package/dist/client/assets/{organization-choice-B-zd_KAX.js → organization-choice-BwNifr3W.js} +1 -1
- package/dist/client/assets/{orgs-oaO_8QY5.js → orgs-Bk6UN65k.js} +1 -1
- package/dist/client/assets/{own-accounts-section-bypdWKM1.js → own-accounts-section-CelLiVsT.js} +1 -1
- package/dist/client/assets/{pair-Cemt435C.js → pair-CWVcOv9o.js} +1 -1
- package/dist/client/assets/{parse-sections-2nDwNbo9.js → parse-sections-AVX0_EMg.js} +2 -2
- package/dist/client/assets/{plan-ladder-9FSbsZ90.js → plan-ladder-DiygPRor.js} +1 -1
- package/dist/client/assets/plan-page-DLtjTHi3.js +2 -0
- package/dist/client/assets/{plan-usage-card-BZQRnP8G.js → plan-usage-card-t6kkCWkU.js} +1 -1
- package/dist/client/assets/plan-zsjpgzYM.js +1 -0
- package/dist/client/assets/{popover-3vnisGas.js → popover-DIfY_LQi.js} +1 -1
- package/dist/client/assets/{post-calendar-rp2Q0Cne.js → post-calendar-DxHrqqjT.js} +1 -1
- package/dist/client/assets/{post-editor-D0JA7IdJ.js → post-editor-CSQwbFci.js} +1 -1
- package/dist/client/assets/{preview-content-DEWZ8-QL.js → preview-content-BwUT5GZy.js} +1 -1
- package/dist/client/assets/{preview-dialog-DTnbkcnt.js → preview-dialog-DBqJTzyP.js} +1 -1
- package/dist/client/assets/{preview-panel-D7xxYiPP.js → preview-panel-DR8SBAa8.js} +1 -1
- package/dist/client/assets/{preview-tab-6sB-rRtC.js → preview-tab-B6JHah6x.js} +3 -3
- package/dist/client/assets/{primitives-0TaeqUnu.js → primitives-B7c-AbY8.js} +1 -1
- package/dist/client/assets/{product-picker-dialog-DxYLlxvO.js → product-picker-dialog-DeB7qsyc.js} +1 -1
- package/dist/client/assets/{profile-7B8EkJP4.js → profile-BMqReddU.js} +1 -1
- package/dist/client/assets/{project-app-view-D0Cj42bt.js → project-app-view-DaqYO4Pg.js} +1 -1
- package/dist/client/assets/{project-apps-ClncucSz.js → project-apps-CH2k-Lsw.js} +1 -1
- package/dist/client/assets/{project-icon-BOqN9iGS.js → project-icon-D4vpZvK_.js} +1 -1
- package/dist/client/assets/{project-index-YBf8huk1.js → project-index-BAqJIBzp.js} +1 -1
- package/dist/client/assets/project-reports-ByF7Cudl.js +1 -0
- package/dist/client/assets/project-tasks-COS57W7H.js +1 -0
- package/dist/client/assets/{projects-BLn-8LM1.js → projects-Bv4i6M-c.js} +1 -1
- package/dist/client/assets/{projects-empty-state-B-KEGV2n.js → projects-empty-state-CqTQ10vY.js} +1 -1
- package/dist/client/assets/{prompts-DGsvCI2x.js → prompts-d5EQuwH3.js} +1 -1
- package/dist/client/assets/record-editor-BawHDC9i.js +1 -0
- package/dist/client/assets/{redirect-editor-TS2CsYRg.js → redirect-editor-DN1blmIX.js} +1 -1
- package/dist/client/assets/reports-D0CteZvZ.js +1 -0
- package/dist/client/assets/{reports-CRuiHeGZ.js → reports-mh4A_Uiy.js} +1 -1
- package/dist/client/assets/{reports-onboarding-DMv3jeqG.js → reports-onboarding-Cj76b7fz.js} +1 -1
- package/dist/client/assets/{reports-tab-Bv0JG6qL.js → reports-tab-vqUxqcY4.js} +2 -2
- package/dist/client/assets/{repositories-Cpl1g-Ko.js → repositories-CQRd6pyO.js} +1 -1
- package/dist/client/assets/repositories-DquO53ag.js +1 -0
- package/dist/client/assets/{repository-binding-BiNVfbBv.js → repository-binding-C2GVWGhh.js} +1 -1
- package/dist/client/assets/{repository-picker-Cd-PmC2o.js → repository-picker-BdQnu-hj.js} +1 -1
- package/dist/client/assets/{require-capability-C2hCZcnC.js → require-capability-OmC9EDmr.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BmmWSkIy.js → required-auth-layout-aVeDGgj3.js} +1 -1
- package/dist/client/assets/{reset-password-Dff8ZPlR.js → reset-password-ZGnP5ruM.js} +1 -1
- package/dist/client/assets/{resizable-BjhtG9yT.js → resizable-zdLNgiq0.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DXA13f0E.js → resolve-tab-icon-B2XfaLSY.js} +1 -1
- package/dist/client/assets/{review-settings-R42PKAM7.js → review-settings-ChnL2m1X.js} +1 -1
- package/dist/client/assets/{role-color-BDZwLjyA.js → role-color-Ba9fsk3G.js} +1 -1
- package/dist/client/assets/roles-C6srQRU6.js +1 -0
- package/dist/client/assets/{route-DHUajtJx.js → route-3CbUNwzq.js} +1 -1
- package/dist/client/assets/{route-Dc9WBi8C.js → route-COPae5w2.js} +1 -1
- package/dist/client/assets/route-jExt-T9A.js +1 -0
- package/dist/client/assets/{route-page-header-BXGE6enK.js → route-page-header-AmX1MotO.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-ErB8jUx9.js → sandbox-git-api-Cgpmkekw.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-Ct_XfgIm.js → sandbox-lifecycle-context-Ce-KhANS.js} +1 -1
- package/dist/client/assets/{save-status-DTq1bu6x.js → save-status-D4nmKZac.js} +1 -1
- package/dist/client/assets/schema-D5KBguFv.js +1 -0
- package/dist/client/assets/{schema-CkSRwqRJ.js → schema-LV0m5Gww.js} +1 -1
- package/dist/client/assets/{scroll-area-ClzBCgdN.js → scroll-area-BdJ7xoTG.js} +1 -1
- package/dist/client/assets/{search-input-Bo0uqwe-.js → search-input-h5VjG2Lq.js} +1 -1
- package/dist/client/assets/{search-toggle-BRau5xEg.js → search-toggle-BzTsSOgK.js} +1 -1
- package/dist/client/assets/{secret-picker-D0n9Jwi0.js → secret-picker-B22OWkrp.js} +1 -1
- package/dist/client/assets/{secrets-BFL3lhbk.js → secrets-Bbqf1sfj.js} +1 -1
- package/dist/client/assets/{section-array-field-Dpm3s7El.js → section-array-field-DdrxCp85.js} +1 -1
- package/dist/client/assets/{sections-BQaXnbhd.js → sections-CNBad-DY.js} +1 -1
- package/dist/client/assets/{sections-editor-CxkTMJ2B.js → sections-editor-BY1F-qe1.js} +1 -1
- package/dist/client/assets/{select-D37YvXxG.js → select-C-yy5RhZ.js} +1 -1
- package/dist/client/assets/{select-model-T5CTSywR.js → select-model-CD_0LBpH.js} +1 -1
- package/dist/client/assets/{seo-editor-D7Dzvtbw.js → seo-editor-DKQ97jCP.js} +1 -1
- package/dist/client/assets/{separator-W1Ytw6Rk.js → separator-Dg0xODGh.js} +1 -1
- package/dist/client/assets/{session-runtime-S41xxwFW.js → session-runtime-DIznRS7b.js} +1 -1
- package/dist/client/assets/settings-tab-OY3ldC9J.js +1 -0
- package/dist/client/assets/{sheet-DCIpFtpL.js → sheet-BBYX1qFy.js} +1 -1
- package/dist/client/assets/{shell-layout-BhLm3ode.js → shell-layout-BBwAE7cO.js} +1 -1
- package/dist/client/assets/{site-draft-actions-Caiw1yL8.js → site-draft-actions-BsREU1HS.js} +1 -1
- package/dist/client/assets/{site-draft-view-qY6zhziP.js → site-draft-view-DfusIMLG.js} +1 -1
- package/dist/client/assets/site-editor-CaNm13CA.js +1 -0
- package/dist/client/assets/{site-editor-toast-CP-wSW1F.js → site-editor-toast-DHAcr7OJ.js} +1 -1
- package/dist/client/assets/{skills-4X8RWGvf.js → skills-Bd5JrQiE.js} +1 -1
- package/dist/client/assets/{slider-DwNcNhts.js → slider-C0FoFC--.js} +1 -1
- package/dist/client/assets/{sortable.esm-hazIEYqc.js → sortable.esm-CxPyVPp1.js} +1 -1
- package/dist/client/assets/{sso-Dxa6I4YM.js → sso-B-ZQsPza.js} +1 -1
- package/dist/client/assets/{suggestion-B07rb2U_.js → suggestion-B_-yQvz3.js} +1 -1
- package/dist/client/assets/{super-agent-icon-BS1zWxbv.js → super-agent-icon-BP9oR520.js} +1 -1
- package/dist/client/assets/{switch-DcLJMUn8.js → switch-DcutR8yX.js} +1 -1
- package/dist/client/assets/{synced-repos-CJhn3IHR.js → synced-repos-B72n3i5U.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-Bhavy4w9.js → tab-icon-glyph-Dl-UKkLa.js} +1 -1
- package/dist/client/assets/{table-BJ-6z4Ka.js → table-B6sCrOds.js} +1 -1
- package/dist/client/assets/{tabs-kd1a9On_.js → tabs-CIltdgg0.js} +1 -1
- package/dist/client/assets/{task-board-8fcnKTrC.js → task-board-DSDOA9iR.js} +1 -1
- package/dist/client/assets/{task-key-VQg9Ju40.js → task-key-DxX_bmqu.js} +1 -1
- package/dist/client/assets/{task-route-L7m6ODZa.js → task-route-XtcHEhxB.js} +1 -1
- package/dist/client/assets/{task-status-DTLTGOFU.js → task-status-BaY8PDtY.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-Ct0IjM7e.js → taskboard-analytics-BTmhkSQ1.js} +1 -1
- package/dist/client/assets/{tasks-2k22R0vc.js → tasks-930hZENq.js} +1 -1
- package/dist/client/assets/tasks-DGVbiNLj.js +1 -0
- package/dist/client/assets/{textarea-hqqjHxii.js → textarea-emOenLWA.js} +1 -1
- package/dist/client/assets/{thread-analytics-BDoq_FPE.js → thread-analytics-BZwQMq7h.js} +1 -1
- package/dist/client/assets/{thread-button-CkhkITiW.js → thread-button-B2izu77t.js} +1 -1
- package/dist/client/assets/{thread-intent-DzUkMPY5.js → thread-intent-CBKsXzw-.js} +1 -1
- package/dist/client/assets/{thread-route-URWAxCjm.js → thread-route-BBs0RbHy.js} +1 -1
- package/dist/client/assets/{thread-route-BRDDKbpn.js → thread-route-DanDzEud.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-Bl5B_SDh.js → thread-sheet-body-CDr0YUfx.js} +1 -1
- package/dist/client/assets/{time-range-picker-D2mzSAw4.js → time-range-picker-ERMCD0tF.js} +1 -1
- package/dist/client/assets/{toggle-group-BdbLr32c.js → toggle-group-Cq5_lXbT.js} +1 -1
- package/dist/client/assets/{tool-set-selector-B4tylXwF.js → tool-set-selector-D9HqzZch.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BnrqNtsd.js → toolbar-icon-button-Cki0uwzD.js} +1 -1
- package/dist/client/assets/{tooltip-BPmKwLsN.js → tooltip-xlc4BEJV.js} +1 -1
- package/dist/client/assets/{tooltipContext-2YdcjubR.js → tooltipContext-CcZII8n2.js} +1 -1
- package/dist/client/assets/{track-BaQRy_Qu.js → track-BVW7pDGN.js} +1 -1
- package/dist/client/assets/{types-BWwlrwgL.js → types-BmGcdlvp.js} +1 -1
- package/dist/client/assets/{url-slug-BlC0E0S4.js → url-slug-B_jTfiQ_.js} +1 -1
- package/dist/client/assets/{usage-stats-CCyrHbOC.js → usage-stats-DSMMmTtM.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BS3OOjFt.js → use-ai-providers-MpAGOvVD.js} +1 -1
- package/dist/client/assets/{use-api-keys-DxNv5Hd6.js → use-api-keys-DHqHyjK0.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-DagKa0bY.js → use-apply-named-rule-B-lsj7oU.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-DPo6Maoe.js +1 -0
- package/dist/client/assets/{use-automations-DUIR4t6J.js → use-automations-DpSZ_3jQ.js} +1 -1
- package/dist/client/assets/{use-autosave-D_JOPQmj.js → use-autosave-BHJmGxuK.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-VqKBWphn.js +1 -0
- package/dist/client/assets/use-blog-view-COWOqkQn.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-DDFKjNIl.js → use-chat-layout-state-BfQv29M9.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-drU_bgxQ.js → use-cms-publish-actions-B2DDqlJw.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CzR8AETN.js → use-connect-companion-B_ofwndF.js} +1 -1
- package/dist/client/assets/{use-connection-lIDtpp77.js → use-connection-CzFofzRE.js} +1 -1
- package/dist/client/assets/{use-content-sync-BYPhpgAW.js → use-content-sync-DkWThoaY.js} +1 -1
- package/dist/client/assets/{use-copy-D5LfgK5z.js → use-copy-IjvgPYVN.js} +1 -1
- package/dist/client/assets/{use-current-view-BBuaPVrA.js → use-current-view-BrXRzoc3.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-0Y6GsIOR.js → use-date-fns-locale-D-udgmy-.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-0zBtHryK.js → use-debounced-autosave-CWNyvn5F.js} +1 -1
- package/dist/client/assets/{use-debounced-value-C26MvSJn.js → use-debounced-value-BjUxBUzw.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DeC-swUL.js → use-deco-credits-DetwWWyD.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BPn3pCjJ.js → use-decopilot-events-DUGLbJG7.js} +1 -1
- package/dist/client/assets/{use-delete-block-CiafX579.js → use-delete-block-N8XvOBCv.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BKoKp6zr.js → use-delete-connection-B5GRj5DD.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-ermoXf--.js → use-deployment-admin-L0-poUv-.js} +1 -1
- package/dist/client/assets/{use-entitlements-BF3joBL4.js → use-entitlements-C4VYQQqd.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-CjZjepWx.js → use-fast-preview-draft-url-DJ0sF8eu.js} +1 -1
- package/dist/client/assets/{use-file-configs-ChPJPjIZ.js → use-file-configs-CF_p23oC.js} +1 -1
- package/dist/client/assets/{use-id-selection-D-wGx9VN.js → use-id-selection-CnO94R9f.js} +1 -1
- package/dist/client/assets/{use-in-settings-BofilH1v.js → use-in-settings-C9r_M3uF.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-DEhnw0lh.js → use-inbox-feed-VfBOakqq.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-C5BHcO3d.js → use-infinite-scroll-BMFZf9cG.js} +1 -1
- package/dist/client/assets/{use-join-requests-Btrh5AlT.js → use-join-requests-CgkJACxe.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs--2UAdIkm.js → use-main-panel-tabs-tl3puCaX.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CB9ZkdO5.js → use-mcp-auth-status-6WW-YeNq.js} +1 -1
- package/dist/client/assets/{use-mcp-client-C2KQU7c3.js → use-mcp-client-yVW1OfAl.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BOa13e9x.js → use-mcp-prompts-C-lHcAjV.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DY99iUOI.js → use-mcp-tools-BRR0Mgi3.js} +1 -1
- package/dist/client/assets/{use-mobile-nGgejGlo.js → use-mobile-CbyUiZm5.js} +1 -1
- package/dist/client/assets/{use-move-blocks-BNfPEh8Z.js → use-move-blocks-DN0w9l0S.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-PmeOctb2.js → use-navigate-to-agent-C3NHuM9e.js} +1 -1
- package/dist/client/assets/{use-never-published-jINFwhsG.js → use-never-published-DSFXmakR.js} +1 -1
- package/dist/client/assets/{use-org-fs-DTKINC-x.js → use-org-fs-B56MYwwY.js} +1 -1
- package/dist/client/assets/{use-org-notice-COy-LgRB.js → use-org-notice-6vYMaPSq.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DqVrFcdi.js → use-org-repo-syncs-DvkgjlBb.js} +1 -1
- package/dist/client/assets/{use-org-sso-B3VN_T5G.js → use-org-sso-C0UasrlW.js} +1 -1
- package/dist/client/assets/use-organization-settings-MZx2Y_vn.js +1 -0
- package/dist/client/assets/{use-panel-navigate-BYtmBtcy.js → use-panel-navigate-BXv-qgP9.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-Cqg4qfrc.js → use-project-native-view-presence-CuLACwQb.js} +1 -1
- package/dist/client/assets/{use-project-scope-D8JxWW5D.js → use-project-scope-_jTbtVSm.js} +1 -1
- package/dist/client/assets/{use-recent-apps-DoFE2306.js → use-recent-apps-DwQLyq40.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CrBDmt5W.js → use-reports-diagnostic-8IoUcXEa.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-BjMmIgSO.js → use-sandbox-events-z6Te4-fI.js} +1 -1
- package/dist/client/assets/{use-secrets-BvHgGE_b.js → use-secrets-aZWABTDQ.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DS1uAb22.js → use-section-preview-base-BxXBG-Eg.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-VC4tdttc.js → use-sidebar-collapsed-Bu7afseR.js} +1 -1
- package/dist/client/assets/{use-tags-BSbXAABz.js → use-tags-70iZP8Xd.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-C4L8m8ha.js → use-task-board-analytics-C-uBazKU.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-BcU73eKI.js → use-task-board-item-prs-CoVfH8Ja.js} +1 -1
- package/dist/client/assets/{use-task-board-items-DNNdhRtP.js → use-task-board-items-CTkDNjrR.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-DixNvU7R.js → use-task-board-prompts-CHOGcQT-.js} +1 -1
- package/dist/client/assets/{use-task-metadata-BnrMMEXM.js → use-task-metadata-CidaoJQ0.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-CqJLmjLP.js → use-thread-outputs-Dc6RQMzx.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-CJTuI6yS.js → use-view-draft-kind-BOyk7pSa.js} +1 -1
- package/dist/client/assets/{use-voice-input-R6pqWjLx.js → use-voice-input-CHI0XUfZ.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BSxy8Gtz.js +1 -0
- package/dist/client/assets/{useQueries-Cv4H9o8h.js → useQueries-BLcN95Yp.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CILmKaBH.js +1 -0
- package/dist/client/assets/{users-26Q8gQUp.js → users-C_kfsBHe.js} +1 -1
- package/dist/client/assets/{utils-BWLamjlv.js → utils-DF7fJbZT.js} +1 -1
- package/dist/client/assets/{variant-calendar-CKpEfG0P.js → variant-calendar-BQ3PPFjE.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-D2LCPF3g.js → variant-matcher-override-DhovvXW7.js} +1 -1
- package/dist/client/assets/{view-header-BxUAMOxx.js → view-header-40IMHBfR.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BOM6yP8Q.js → virtual-mcp-CyxdNtLj.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CuFl2xd0.js → watch-sse-pool-DSlhzSYa.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +798 -835
- package/package.json +1 -1
- package/dist/client/assets/agent-app-B9GB6fEl.js +0 -1
- package/dist/client/assets/agent-deck-ChszJ4B8.js +0 -1
- package/dist/client/assets/agent-experiments-BFPj5r86.js +0 -1
- package/dist/client/assets/agent-file-D-Wz10r1.js +0 -1
- package/dist/client/assets/agent-library-VzpziyQd.js +0 -1
- package/dist/client/assets/agent-library-file-B1D_eHhP.js +0 -1
- package/dist/client/assets/agent-overview-CSdXbhm3.js +0 -1
- package/dist/client/assets/agent-settings-TZwg6GKA.js +0 -1
- package/dist/client/assets/agent-site-editor-code-BeTZbXtt.js +0 -2
- package/dist/client/assets/agent-site-editor-content-CsAYeYao.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-CywvRqkg.js +0 -1
- package/dist/client/assets/agent-view-B-JpvHx2.js +0 -1
- package/dist/client/assets/api-keys-CWdWXFb8.js +0 -1
- package/dist/client/assets/library-BPT6inpT.js +0 -1
- package/dist/client/assets/plan-OCKI8REL.js +0 -1
- package/dist/client/assets/plan-page-4ipv35o3.js +0 -2
- package/dist/client/assets/project-reports-BLjEcb9u.js +0 -1
- package/dist/client/assets/project-tasks-B8Je1HsY.js +0 -1
- package/dist/client/assets/record-editor-DQ4KAAEQ.js +0 -1
- package/dist/client/assets/reports-CNHr6m-v.js +0 -1
- package/dist/client/assets/repositories-yt309Hzu.js +0 -1
- package/dist/client/assets/roles-ABW_QEyF.js +0 -1
- package/dist/client/assets/route-BEpgl_sU.js +0 -1
- package/dist/client/assets/schema-BGVGnZwu.js +0 -1
- package/dist/client/assets/settings-tab-CCix6tDV.js +0 -1
- package/dist/client/assets/site-editor-DNdaUyms.js +0 -1
- package/dist/client/assets/tasks-1QjKeGd4.js +0 -1
- package/dist/client/assets/use-ask-in-chat-DkE-lLcV.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-DvTBxIPw.js +0 -1
- package/dist/client/assets/use-blog-view-BnDurHBG.js +0 -1
- package/dist/client/assets/use-organization-settings-uZzqpAbZ.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CnX3zUSi.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CqJmXMzX.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as L,j as A,c as ve,m as He}from"./index-CMOYwhXD.js";import{b as ft}from"./MessageCircle01-B4UE40aX.js";function pt(e,t){const n=getComputedStyle(e),o=parseFloat(n.fontSize);return t*o}function ht(e,t){const n=getComputedStyle(e.ownerDocument.documentElement),o=parseFloat(n.fontSize);return t*o}function gt(e){return e/100*window.innerHeight}function vt(e){return e/100*window.innerWidth}function mt(e){switch(typeof e){case"number":return[e,"px"];case"string":{const t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function re({groupSize:e,panelElement:t,styleProp:n}){let o;const[r,a]=mt(n);switch(a){case"%":{o=r/100*e;break}case"px":{o=r;break}case"rem":{o=ht(t,r);break}case"em":{o=pt(t,r);break}case"vh":{o=gt(r);break}case"vw":{o=vt(r);break}}return o}function T(e){return parseFloat(e.toFixed(3))}function te({group:e}){const{orientation:t,panels:n}=e;return n.reduce((o,r)=>(o+=t==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,o),0)}function he(e){const{panels:t}=e,n=te({group:e});return n===0?t.map(o=>({groupResizeBehavior:o.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:o.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:o.panelConstraints.disabled,minSize:0,maxSize:100,panelId:o.id})):t.map(o=>{const{element:r,panelConstraints:a}=o;let l=0;if(a.collapsedSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.collapsedSize});l=T(c/n*100)}let s;if(a.defaultSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.defaultSize});s=T(c/n*100)}let i=0;if(a.minSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.minSize});i=T(c/n*100)}let u=100;if(a.maxSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.maxSize});u=T(c/n*100)}return{groupResizeBehavior:a.groupResizeBehavior,collapsedSize:l,collapsible:a.collapsible===!0,defaultSize:s,disabled:a.disabled,minSize:i,maxSize:u,panelId:o.id}})}function P(e,t="Assertion error"){if(!e)throw Error(t)}function ge(e,t){return Array.from(t).sort(e==="horizontal"?bt:yt)}function bt(e,t){const n=e.element.offsetLeft-t.element.offsetLeft;return n!==0?n:e.element.offsetWidth-t.element.offsetWidth}function yt(e,t){const n=e.element.offsetTop-t.element.offsetTop;return n!==0?n:e.element.offsetHeight-t.element.offsetHeight}function Ve(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Ue(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function zt({orientation:e,rects:t,targetRect:n}){const o={x:n.x+n.width/2,y:n.y+n.height/2};let r,a=Number.MAX_VALUE;for(const l of t){const{x:s,y:i}=Ue(o,l),u=e==="horizontal"?s:i;u<a&&(a=u,r=l)}return P(r,"No rect found"),r}let ue;function St(){return ue===void 0&&(typeof matchMedia=="function"?ue=!!matchMedia("(pointer:coarse)").matches:ue=!1),ue}function Ye(e){const{element:t,orientation:n,panels:o,separators:r}=e,a=ge(n,Array.from(t.children).filter(Ve).map(m=>({element:m}))).map(({element:m})=>m),l=[];let s=!1,i=!1,u=-1,c=-1,h=0,d,S=[];{let m=-1;for(const f of a)f.hasAttribute("data-panel")&&(m++,f.hasAttribute("data-disabled")||(h++,u===-1&&(u=m),c=m))}if(h>1){let m=-1;for(const f of a)if(f.hasAttribute("data-panel")){m++;const g=o.find(p=>p.element===f);if(g){if(d){const p=d.element.getBoundingClientRect(),y=f.getBoundingClientRect();let z;if(i){const b=n==="horizontal"?new DOMRect(p.right,p.top,0,p.height):new DOMRect(p.left,p.bottom,p.width,0),v=n==="horizontal"?new DOMRect(y.left,y.top,0,y.height):new DOMRect(y.left,y.top,y.width,0);switch(S.length){case 0:{z=[b,v];break}case 1:{const R=S[0],E=zt({orientation:n,rects:[p,y],targetRect:R.element.getBoundingClientRect()});z=[R,E===p?v:b];break}default:{z=S;break}}}else S.length?z=S:z=[n==="horizontal"?new DOMRect(p.right,y.top,y.left-p.right,y.height):new DOMRect(y.left,p.bottom,y.width,y.top-p.bottom)];for(const b of z){let v="width"in b?b:b.element.getBoundingClientRect();const R=St()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(v.width<R){const M=R-v.width;v=new DOMRect(v.x-M/2,v.y,v.width+M,v.height)}if(v.height<R){const M=R-v.height;v=new DOMRect(v.x,v.y-M/2,v.width,v.height+M)}const E=m<=u||m>c;!s&&!E&&l.push({group:e,groupSize:te({group:e}),panels:[d,g],separator:"width"in b?void 0:b,rect:v}),s=!1}}i=!1,d=g,S=[]}}else if(f.hasAttribute("data-separator")){f.ariaDisabled!==null&&(s=!0);const g=r.find(p=>p.element===f);g?S.push(g):(d=void 0,S=[])}else i=!0}return l}class Xe{#e={};addListener(t,n){const o=this.#e[t];return o===void 0?this.#e[t]=[n]:o.includes(n)||o.push(n),()=>{this.removeListener(t,n)}}emit(t,n){const o=this.#e[t];if(o!==void 0)if(o.length===1)o[0].call(null,n);else{let r=!1,a=null;const l=Array.from(o);for(let s=0;s<l.length;s++){const i=l[s];try{i.call(null,n)}catch(u){a===null&&(r=!0,a=u)}}if(r)throw a}}removeAllListeners(){this.#e={}}removeListener(t,n){const o=this.#e[t];if(o!==void 0){const r=o.indexOf(n);r>=0&&o.splice(r,1)}}}let Q={cursorFlags:0,state:"inactive"};const me=new Xe;function U(){return Q}function wt(e){return me.addListener("change",e)}function xt(e){const t=Q,n={...Q};n.cursorFlags=e,Q=n,me.emit("change",{prev:t,next:n})}function ee(e){const t=Q;Q=e,me.emit("change",{prev:t,next:e})}const Ct=e=>e,pe=()=>{},_e=1,Je=2,qe=4,Ke=8,Le=3,Re=12;let ce;function Ee(){return ce===void 0&&(ce=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(ce=!0)),ce}function Pt({cursorFlags:e,groups:t,state:n}){let o=0,r=0;switch(n){case"active":case"hover":t.forEach(a=>{if(!a.mutableState.disableCursor)switch(a.orientation){case"horizontal":{o++;break}case"vertical":{r++;break}}})}if(!(o===0&&r===0)){switch(n){case"active":{if(e&&Ee()){const a=(e&_e)!==0,l=(e&Je)!==0,s=(e&qe)!==0,i=(e&Ke)!==0;if(a)return s?"se-resize":i?"ne-resize":"e-resize";if(l)return s?"sw-resize":i?"nw-resize":"w-resize";if(s)return"s-resize";if(i)return"n-resize"}break}}return Ee()?o>0&&r>0?"move":o>0?"ew-resize":"ns-resize":o>0&&r>0?"grab":o>0?"col-resize":"row-resize"}}const ke=new WeakMap;function be(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:n}=ke.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]));const o=U();switch(o.state){case"active":case"hover":{const r=Pt({cursorFlags:o.cursorFlags,groups:o.hitRegions.map(l=>l.group),state:o.state}),a=`*, *:hover {cursor: ${r} !important; }`;if(t===a)return;t=a,r?n.cssRules.length===0?n.insertRule(a):n.replaceSync(a):n.cssRules.length===1&&n.deleteRule(0);break}case"inactive":{t=void 0,n.cssRules.length===1&&n.deleteRule(0);break}}ke.set(e,{prevStyle:t,styleSheet:n})}let F=new Map;const Ze=new Xe;function Lt(e){F=new Map(F),F.delete(e)}function Me(e,t){for(const[n]of F)if(n.id===e)return n}function H(e,t){for(const[n,o]of F)if(n.id===e)return o;if(t)throw Error(`Could not find data for Group with id ${e}`)}function _(){return F}function ye(e,t){return Ze.addListener("groupChange",n=>{n.group.id===e&&t(n)})}function W(e,t,n){const o=F.get(e);F=new Map(F),F.set(e,t),Ze.emit("groupChange",{group:e,isUserInteraction:n?.isUserInteraction===!0,prev:o,next:t})}function Qe(e){const t=U();let n=!1;return t.state==="active"&&(ee({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(be(e),n=!0,t.hitRegions.forEach(o=>{const r=H(o.group.id,!0);W(o.group,r,{isUserInteraction:!0})}))),n}function De(e){e.defaultPrevented||Qe(e.currentTarget)}function Rt(e,t,n){let o,r={x:1/0,y:1/0};for(const a of t){const l=Ue(n,a.rect);switch(e){case"horizontal":{l.x<=r.x&&(o=a,r=l);break}case"vertical":{l.y<=r.y&&(o=a,r=l);break}}}return o?{distance:r,hitRegion:o}:void 0}function Et(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function kt(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Ne(e),b:Ne(t)};let o;for(;n.a.at(-1)===n.b.at(-1);)o=n.a.pop(),n.b.pop();P(o,"Stacking order can only be calculated for elements with a common ancestor");const r={a:Te(Ie(n.a)),b:Te(Ie(n.b))};if(r.a===r.b){const a=o.childNodes,l={a:n.a.at(-1),b:n.b.at(-1)};let s=a.length;for(;s--;){const i=a[s];if(i===l.a)return 1;if(i===l.b)return-1}}return Math.sign(r.a-r.b)}const Mt=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Dt(e){const t=getComputedStyle(et(e)??e).display;return t==="flex"||t==="inline-flex"}function It(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||Dt(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||Mt.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Ie(e){let t=e.length;for(;t--;){const n=e[t];if(P(n,"Missing node"),It(n))return n}return null}function Te(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Ne(e){const t=[];for(;e;)t.push(e),e=et(e);return t}function et(e){const{parentNode:t}=e;return Et(t)?t.host:t}function Tt(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function Nt({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!Ve(n)||n.contains(e)||e.contains(n))return!0;if(kt(n,e)>0){let o=n;for(;o;){if(o.contains(e))return!0;if(Tt(o.getBoundingClientRect(),t))return!1;o=o.parentElement}}return!0}function ze(e,t){const n=[];return t.forEach((o,r)=>{if(r.disabled)return;const a=Ye(r),l=Rt(r.orientation,a,{x:e.clientX,y:e.clientY});l&&l.distance.x<=0&&l.distance.y<=0&&Nt({groupElement:r.element,hitRegion:l.hitRegion.rect,pointerEventTarget:e.target})&&n.push(l.hitRegion)}),n}function jt(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function I(e,t,n=0){return Math.abs(T(e)-T(t))<=n}function O(e,t){return I(e,t)?0:e>t?1:-1}function Z({overrideDisabledPanels:e,panelConstraints:t,prevSize:n,size:o}){const{collapsedSize:r=0,collapsible:a,disabled:l,maxSize:s=100,minSize:i=0}=t;if(l&&!e)return n;if(O(o,i)<0)if(a){const u=(r+i)/2;O(o,u)<0?o=r:o=i}else o=i;return o=Math.min(s,o),o=T(o),o}function ie({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:o,prevLayout:r,trigger:a}){if(I(e,0))return t;const l=a==="imperative-api",s=Object.values(t),i=Object.values(r),u=[...s],[c,h]=o;P(c!=null,"Invalid first pivot index"),P(h!=null,"Invalid second pivot index");let d=0;switch(a){case"keyboard":{{const f=e<0?h:c,g=n[f];P(g,`Panel constraints not found for index ${f}`);const{collapsedSize:p=0,collapsible:y,minSize:z=0}=g;if(y){const b=s[f];if(P(b!=null,`Previous layout not found for panel index ${f}`),I(b,p)){const v=z-b;O(v,Math.abs(e))>0&&(e=e<0?0-v:v)}}}{const f=e<0?c:h,g=n[f];P(g,`No panel constraints found for index ${f}`);const{collapsedSize:p=0,collapsible:y,minSize:z=0}=g;if(y){const b=s[f];if(P(b!=null,`Previous layout not found for panel index ${f}`),I(b,z)){const v=b-p;O(v,Math.abs(e))>0&&(e=e<0?0-v:v)}}}break}default:{const f=e<0?h:c,g=n[f];P(g,`Panel constraints not found for index ${f}`);const p=s[f],{collapsible:y,collapsedSize:z,minSize:b}=g;if(y&&O(p,b)<0)if(e>0){const v=b-z,R=v/2,E=p+e;O(E,b)<0&&(e=O(e,R)<=0?0:v)}else{const v=b-z,R=100-v/2,E=p-e;O(E,b)<0&&(e=O(100+e,R)>0?0:-v)}break}}{const f=e<0?1:-1;let g=e<0?h:c,p=0;for(;;){const z=s[g];P(z!=null,`Previous layout not found for panel index ${g}`);const b=Z({overrideDisabledPanels:l,panelConstraints:n[g],prevSize:z,size:100})-z;if(p+=b,g+=f,g<0||g>=n.length)break}const y=Math.min(Math.abs(e),Math.abs(p));e=e<0?0-y:y}{let f=e<0?c:h;for(;f>=0&&f<n.length;){const g=Math.abs(e)-Math.abs(d),p=s[f];P(p!=null,`Previous layout not found for panel index ${f}`);const y=p-g,z=Z({overrideDisabledPanels:l,panelConstraints:n[f],prevSize:p,size:y});if(!I(p,z)&&(d+=p-z,u[f]=z,d.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?f--:f++}}if(jt(i,u))return r;{const f=e<0?h:c,g=s[f];P(g!=null,`Previous layout not found for panel index ${f}`);const p=g+d,y=Z({overrideDisabledPanels:l,panelConstraints:n[f],prevSize:g,size:p});if(u[f]=y,!I(y,p)){let z=p-y,b=e<0?h:c;for(;b>=0&&b<n.length;){const v=u[b];P(v!=null,`Previous layout not found for panel index ${b}`);const R=v+z,E=Z({overrideDisabledPanels:l,panelConstraints:n[b],prevSize:v,size:R});if(I(v,E)||(z-=E-v,u[b]=E),I(z,0))break;e>0?b--:b++}}}const S=Object.values(u).reduce((f,g)=>g+f,0);if(!I(S,100,.1))return r;const m=Object.keys(r);return u.reduce((f,g,p)=>(f[m[p]]=g,f),{})}function Y(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(t[n]===void 0||O(e[n],t[n])!==0)return!1;return!0}function X({layout:e,panelConstraints:t}){const n=Object.values(e),o=[...n],r=o.reduce((s,i)=>s+i,0);if(o.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${o.map(s=>`${s}%`).join(", ")}`);if(!I(r,100)&&o.length>0)for(let s=0;s<t.length;s++){const i=o[s];P(i!=null,`No layout data found for index ${s}`);const u=100/r*i;o[s]=u}let a=0;for(let s=0;s<t.length;s++){const i=n[s];P(i!=null,`No layout data found for index ${s}`);const u=o[s];P(u!=null,`No layout data found for index ${s}`);const c=Z({overrideDisabledPanels:!0,panelConstraints:t[s],prevSize:i,size:u});u!=c&&(a+=u-c,o[s]=c)}if(!I(a,0))for(let s=0;s<t.length;s++){const i=o[s];P(i!=null,`No layout data found for index ${s}`);const u=i+a,c=Z({overrideDisabledPanels:!0,panelConstraints:t[s],prevSize:i,size:u});if(i!==c&&(a-=c-i,o[s]=c,I(a,0)))break}const l=Object.keys(e);return o.reduce((s,i,u)=>(s[l[u]]=i,s),{})}function tt({groupId:e,panelId:t}){const n=()=>{const i=_();for(const[u,{defaultLayoutDeferred:c,derivedPanelConstraints:h,layout:d,groupSize:S,separatorToPanels:m}]of i)if(u.id===e)return{defaultLayoutDeferred:c,derivedPanelConstraints:h,group:u,groupSize:S,layout:d,separatorToPanels:m};throw Error(`Group ${e} not found`)},o=()=>{const i=n().derivedPanelConstraints.find(u=>u.panelId===t);if(i!==void 0)return i;throw Error(`Panel constraints not found for Panel ${t}`)},r=()=>{const i=n().group.panels.find(u=>u.id===t);if(i!==void 0)return i;throw Error(`Layout not found for Panel ${t}`)},a=()=>{const i=n().layout[t];if(i!==void 0)return i;throw Error(`Layout not found for Panel ${t}`)},l=({nextSize:i,panels:u,prevLayout:c,derivedPanelConstraints:h})=>{const d=a(),S=u.findIndex(g=>g.id===t),m=S===0,f=S===u.length-1;if(f&&i<d&&(m||u.slice(0,S).every((g,p)=>{const y=h[p];return y?.collapsible&&I(y.collapsedSize,c[y.panelId])}))){const g=u.slice(0,S).reduce((p,y)=>p+c[y.id],0);return{...c,[t]:T(100-g)}}return ie({delta:f?d-i:i-d,initialLayout:c,panelConstraints:h,pivotIndices:f?[S-1,S]:[S,S+1],prevLayout:c,trigger:"imperative-api"})},s=i=>{const u=a();if(i===u)return;const{defaultLayoutDeferred:c,derivedPanelConstraints:h,group:d,groupSize:S,layout:m,separatorToPanels:f}=n(),g=l({nextSize:i,panels:d.panels,prevLayout:m,derivedPanelConstraints:h}),p=X({layout:g,panelConstraints:h});Y(m,p)||W(d,{defaultLayoutDeferred:c,derivedPanelConstraints:h,groupSize:S,layout:p,separatorToPanels:f})};return{collapse:()=>{const{collapsible:i,collapsedSize:u}=o(),{mutableValues:c}=r(),h=a();i&&h!==u&&(c.expandToSize=h,s(u))},expand:()=>{const{collapsible:i,collapsedSize:u,minSize:c}=o(),{mutableValues:h}=r(),d=a();if(i&&d===u){let S=h.expandToSize??c;S===0&&(S=1),s(S)}},getSize:()=>{const{group:i}=n(),u=a(),{element:c}=r(),h=i.orientation==="horizontal"?c.offsetWidth:c.offsetHeight;return{asPercentage:u,inPixels:h}},isCollapsed:()=>{const{collapsible:i,collapsedSize:u}=o(),c=a();return i&&I(u,c)},resize:i=>{const{group:u}=n(),{element:c}=r(),h=te({group:u}),d=re({groupSize:h,panelElement:c,styleProp:i}),S=T(d/h*100);s(S)}}}function je(e){if(e.defaultPrevented)return;const t=_();ze(e,t).forEach(n=>{if(n.separator&&!n.separator.disableDoubleClick){const o=n.panels.find(r=>r.panelConstraints.defaultSize!==void 0);if(o){const r=o.panelConstraints.defaultSize,a=tt({groupId:n.group.id,panelId:o.id});a&&r!==void 0&&(a.resize(r),e.preventDefault())}}})}function de(e){const t=_();for(const[n]of t)if(n.separators.some(o=>o.element===e))return n;throw Error("Could not find parent Group for separator element")}function nt({groupId:e}){const t=()=>{const n=_();for(const[o,r]of n)if(o.id===e)return{group:o,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){const{defaultLayoutDeferred:n,layout:o}=t();return n?{}:o},setLayout(n){const{defaultLayoutDeferred:o,derivedPanelConstraints:r,group:a,groupSize:l,layout:s,separatorToPanels:i}=t(),u=X({layout:n,panelConstraints:r});return o?s:(Y(s,u)||W(a,{defaultLayoutDeferred:o,derivedPanelConstraints:r,groupSize:l,layout:u,separatorToPanels:i}),u)}}}function V(e,t){const n=de(e),o=H(n.id,!0),r=n.separators.find(c=>c.element===e);P(r,"Matching separator not found");const a=o.separatorToPanels.get(r);P(a,"Matching panels not found");const l=a.map(c=>n.panels.indexOf(c)),s=nt({groupId:n.id}).getLayout(),i=ie({delta:t,initialLayout:s,panelConstraints:o.derivedPanelConstraints,pivotIndices:l,prevLayout:s,trigger:"keyboard"}),u=X({layout:i,panelConstraints:o.derivedPanelConstraints});Y(s,u)||W(n,{defaultLayoutDeferred:o.defaultLayoutDeferred,derivedPanelConstraints:o.derivedPanelConstraints,groupSize:o.groupSize,layout:u,separatorToPanels:o.separatorToPanels},{isUserInteraction:!0})}function Oe(e){if(e.defaultPrevented)return;const t=e.currentTarget,n=de(t);if(!n.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),n.orientation==="vertical"&&V(t,5);break}case"ArrowLeft":{e.preventDefault(),n.orientation==="horizontal"&&V(t,-5);break}case"ArrowRight":{e.preventDefault(),n.orientation==="horizontal"&&V(t,5);break}case"ArrowUp":{e.preventDefault(),n.orientation==="vertical"&&V(t,-5);break}case"End":{e.preventDefault(),V(t,100);break}case"Enter":{e.preventDefault();const o=de(t),r=H(o.id,!0),{derivedPanelConstraints:a,layout:l,separatorToPanels:s}=r,i=o.separators.find(d=>d.element===t);P(i,"Matching separator not found");const u=s.get(i);P(u,"Matching panels not found");const c=u[0],h=a.find(d=>d.panelId===c.id);if(P(h,"Panel metadata not found"),h.collapsible){const d=l[c.id],S=h.collapsedSize===d?o.mutableState.expandedPanelSizes[c.id]??h.minSize:h.collapsedSize;V(t,S-d)}break}case"F6":{e.preventDefault();const o=de(t).separators.map(l=>l.element),r=Array.from(o).findIndex(l=>l===e.currentTarget);P(r!==null,"Index not found");const a=e.shiftKey?r>0?r-1:o.length-1:r+1<o.length?r+1:0;o[a].focus({preventScroll:!0});break}case"Home":{e.preventDefault(),V(t,-100);break}}}function Fe(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const t=_(),n=ze(e,t),o=new Map;let r=!1;n.forEach(a=>{a.separator&&(r||(r=!0,a.separator.element.focus({focusVisible:!1,preventScroll:!0})));const l=t.get(a.group);l&&o.set(a.group,l.layout)}),ee({cursorFlags:0,hitRegions:n,initialLayoutMap:o,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),n.length&&e.preventDefault()}function ot({document:e,event:t,hitRegions:n,initialLayoutMap:o,mountedGroups:r,pointerDownAtPoint:a,prevCursorFlags:l}){let s=0;n.forEach(u=>{const{group:c,groupSize:h}=u,{orientation:d,panels:S}=c,{disableCursor:m}=c.mutableState;let f=0;a?d==="horizontal"?f=(t.clientX-a.x)/h*100:f=(t.clientY-a.y)/h*100:d==="horizontal"?f=t.clientX<0?-100:100:f=t.clientY<0?-100:100;const g=o.get(c),p=r.get(c);if(!g||!p)return;const{defaultLayoutDeferred:y,derivedPanelConstraints:z,groupSize:b,layout:v,separatorToPanels:R}=p;if(z&&v&&R){const E=ie({delta:f,initialLayout:g,panelConstraints:z,pivotIndices:u.panels.map(M=>S.indexOf(M)),prevLayout:v,trigger:"mouse-or-touch"});if(Y(E,v)){if(f!==0&&!m)switch(d){case"horizontal":{s|=f<0?_e:Je;break}case"vertical":{s|=f<0?qe:Ke;break}}}else W(u.group,{defaultLayoutDeferred:y,derivedPanelConstraints:z,groupSize:b,layout:E,separatorToPanels:R})}});let i=0;t.movementX===0?i|=l&Le:i|=s&Le,t.movementY===0?i|=l&Re:i|=s&Re,xt(i),be(e)}function Ae(e){const t=_(),n=U();n.state==="active"&&ot({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}function Ge(e){if(e.defaultPrevented)return;const t=U(),n=_();switch(t.state){case"active":{if(e.buttons===0){ee({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(o=>{const r=H(o.group.id,!0);W(o.group,r,{isUserInteraction:!0})});return}for(const o of t.hitRegions)if(o.separator){const{element:r}=o.separator;r.hasPointerCapture?.(e.pointerId)||r.setPointerCapture?.(e.pointerId)}ot({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break}default:{const o=ze(e,n);o.length===0?t.state!=="inactive"&&ee({cursorFlags:0,state:"inactive"}):ee({cursorFlags:0,hitRegions:o,state:"hover"}),be(e.currentTarget);break}}}function $e(e){e.relatedTarget instanceof HTMLIFrameElement&&U().state==="hover"&&ee({cursorFlags:0,state:"inactive"})}function Be(e){e.defaultPrevented||e.pointerType==="mouse"&&e.button>0||Qe(e.currentTarget)&&e.preventDefault()}function We(e){let t=0,n=0;const o={};for(const a of e)if(a.defaultSize!==void 0){t++;const l=T(a.defaultSize);n+=l,o[a.panelId]=l}else o[a.panelId]=void 0;const r=e.length-t;if(r!==0){const a=T((100-n)/r);for(const l of e)l.defaultSize===void 0&&(o[l.panelId]=a)}return o}function Ot(e,t,n){if(!n[0])return;const o=e.panels.find(i=>i.element===t);if(!o||!o.onResize)return;const r=te({group:e}),a=e.orientation==="horizontal"?o.element.offsetWidth:o.element.offsetHeight,l=o.mutableValues.prevSize,s={asPercentage:T(a/r*100),inPixels:a};o.mutableValues.prevSize=s,o.onResize(s,o.id,l)}function Ft(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function At({group:e,nextGroupSize:t,prevGroupSize:n,prevLayout:o}){if(n<=0||t<=0||n===t)return o;let r=0,a=0,l=!1;const s=new Map,i=[];for(const h of e.panels){const d=o[h.id]??0;if(h.panelConstraints.groupResizeBehavior==="preserve-pixel-size"){l=!0;const S=d/100*n,m=T(S/t*100);s.set(h.id,m),r+=m}else i.push(h.id),a+=d}if(!l||i.length===0)return o;const u=100-r,c={...o};if(s.forEach((h,d)=>{c[d]=h}),a>0)for(const h of i){const d=o[h]??0;c[h]=T(d/a*u)}else{const h=T(u/i.length);for(const d of i)c[d]=h}return c}function Gt(e,t){const n=e.map(r=>r.id),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n)if(!o.includes(r))return!1;return!0}const K=new Map;function $t(e){let t=!0;P(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");const n=e.element.ownerDocument.defaultView.ResizeObserver,o=new Set,r=new Set,a=new n(m=>{for(const f of m){const{borderBoxSize:g,target:p}=f;if(p===e.element){if(t){const y=te({group:e});if(y===0)return;const z=H(e.id);if(!z)return;const b=he(e),v=z.defaultLayoutDeferred?We(b):z.layout,R=At({group:e,nextGroupSize:y,prevGroupSize:z.groupSize,prevLayout:v}),E=X({layout:R,panelConstraints:b});if(!z.defaultLayoutDeferred&&Y(z.layout,E)&&Ft(z.derivedPanelConstraints,b)&&z.groupSize===y)return;W(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:b,groupSize:y,layout:E,separatorToPanels:z.separatorToPanels})}}else Ot(e,p,g)}});a.observe(e.element),e.panels.forEach(m=>{P(!o.has(m.id),`Panel ids must be unique; id "${m.id}" was used more than once`),o.add(m.id),m.onResize&&a.observe(m.element)});const l=te({group:e}),s=he(e),i=e.panels.map(({id:m})=>m).join(",");let u=e.mutableState.defaultLayout;u&&(Gt(e.panels,u)||(u=void 0));const c=e.mutableState.layouts[i]??u??We(s),h=X({layout:c,panelConstraints:s}),d=e.element.ownerDocument;K.set(d,(K.get(d)??0)+1);const S=new Map;return Ye(e).forEach(m=>{m.separator&&S.set(m.separator,m.panels)}),W(e,{defaultLayoutDeferred:l===0,derivedPanelConstraints:s,groupSize:l,layout:h,separatorToPanels:S}),e.separators.forEach(m=>{P(!r.has(m.id),`Separator ids must be unique; id "${m.id}" was used more than once`),r.add(m.id),m.element.addEventListener("keydown",Oe)}),K.get(d)===1&&(d.addEventListener("contextmenu",De,!0),d.addEventListener("dblclick",je,!0),d.addEventListener("pointerdown",Fe,!0),d.addEventListener("pointerleave",Ae),d.addEventListener("pointermove",Ge),d.addEventListener("pointerout",$e),d.addEventListener("pointerup",Be,!0)),function(){t=!1,K.set(d,Math.max(0,(K.get(d)??0)-1)),Lt(e),e.separators.forEach(m=>{m.element.removeEventListener("keydown",Oe)}),K.get(d)||(d.removeEventListener("contextmenu",De,!0),d.removeEventListener("dblclick",je,!0),d.removeEventListener("pointerdown",Fe,!0),d.removeEventListener("pointerleave",Ae),d.removeEventListener("pointermove",Ge),d.removeEventListener("pointerout",$e),d.removeEventListener("pointerup",Be,!0)),a.disconnect()}}function Bt(){const[e,t]=L.useState({}),n=L.useCallback(()=>t({}),[]);return[e,n]}function Se(e){const t=L.useId();return`${e??t}`}const J=typeof window<"u"?L.useLayoutEffect:L.useEffect;function ae(e){const t=L.useRef(e);return J(()=>{t.current=e},[e]),L.useCallback((...n)=>t.current?.(...n),[t])}function we(...e){return ae(t=>{e.forEach(n=>{if(n)switch(typeof n){case"function":{n(t);break}case"object":{n.current=t;break}}})})}function xe(e){const t=L.useRef({...e});return J(()=>{for(const n in e)t.current[n]=e[n]},[e]),t.current}const rt=L.createContext(null);function Wt(e,t){const n=L.useRef({getLayout:()=>({}),setLayout:Ct});L.useImperativeHandle(t,()=>n.current,[]),J(()=>{Object.assign(n.current,nt({groupId:e}))})}function at({children:e,className:t,defaultLayout:n,disableCursor:o,disabled:r,elementRef:a,groupRef:l,id:s,onLayoutChange:i,onLayoutChanged:u,orientation:c="horizontal",resizeTargetMinimumSize:h={coarse:20,fine:10},style:d,...S}){const m=L.useRef({onLayoutChange:{},onLayoutChanged:{}}),f=ae(w=>{Y(m.current.onLayoutChange,w)||(m.current.onLayoutChange=w,i?.(w))}),g=ae((w,x)=>{Y(m.current.onLayoutChanged,w)||(m.current.onLayoutChanged=w,u?.(w,{isUserInteraction:x}))}),p=Se(s),y=L.useRef(null),[z,b]=Bt(),v=L.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:h,separators:[]}),R=we(y,a);Wt(p,l);const E=ae((w,x)=>{const k=U(),C=Me(w),D=H(w);if(D){let N=!1;return k.state==="active"&&(N=k.hitRegions.some(ne=>ne.group===C)),{flexGrow:D.layout[x]??1,pointerEvents:N?"none":void 0}}if(n?.[x])return{flexGrow:n?.[x]}}),M=xe({defaultLayout:n,disableCursor:o}),j=L.useMemo(()=>({get disableCursor(){return!!M.disableCursor},getPanelStyles:E,id:p,orientation:c,registerPanel:w=>{const x=v.current;return x.panels=ge(c,[...x.panels,w]),b(),()=>{x.panels=x.panels.filter(k=>k!==w),b()}},registerSeparator:w=>{const x=v.current;return x.separators=ge(c,[...x.separators,w]),b(),()=>{x.separators=x.separators.filter(k=>k!==w),b()}},updatePanelProps:(w,{disabled:x})=>{const k=v.current.panels.find(N=>N.id===w);k&&(k.panelConstraints.disabled=x);const C=Me(p),D=H(p);C&&D&&W(C,{...D,derivedPanelConstraints:he(C)})},updateSeparatorProps:(w,{disabled:x,disableDoubleClick:k})=>{const C=v.current.separators.find(D=>D.id===w);C&&(C.disabled=x,C.disableDoubleClick=k)}}),[E,p,b,c,M]),G=L.useRef(null);return J(()=>{const w=y.current;if(w===null)return;const x=v.current;let k;if(M.defaultLayout!==void 0&&Object.keys(M.defaultLayout).length===x.panels.length){k={};for(const $ of x.panels){const q=M.defaultLayout[$.id];q!==void 0&&(k[$.id]=q)}}const C={disabled:!!r,element:w,id:p,mutableState:{defaultLayout:k,disableCursor:!!M.disableCursor,expandedPanelSizes:v.current.lastExpandedPanelSizes,layouts:v.current.layouts},orientation:c,panels:x.panels,resizeTargetMinimumSize:x.resizeTargetMinimumSize,separators:x.separators};G.current=C;const D=$t(C),{defaultLayoutDeferred:N,derivedPanelConstraints:ne,layout:se}=H(C.id,!0);!N&&ne.length>0&&(f(se),g(se,!1));const oe=ye(p,$=>{const{defaultLayoutDeferred:q,derivedPanelConstraints:Pe,layout:le}=$.next;if(q||Pe.length===0)return;const lt=C.panels.map(({id:B})=>B).join(",");C.mutableState.layouts[lt]=le,Pe.forEach(B=>{if(B.collapsible){const{layout:fe}=$.prev??{};if(fe){const ct=I(B.collapsedSize,le[B.panelId]),dt=I(B.collapsedSize,fe[B.panelId]);ct&&!dt&&(C.mutableState.expandedPanelSizes[B.panelId]=fe[B.panelId])}}});const ut=U().state!=="active";f(le),ut&&g(le,$.isUserInteraction)});return()=>{G.current=null,D(),oe()}},[r,p,g,f,c,z,M]),L.useEffect(()=>{const w=G.current;w&&(w.mutableState.defaultLayout=n,w.mutableState.disableCursor=!!o)}),A.jsx(rt.Provider,{value:j,children:A.jsx("div",{...S,className:t,"data-group":!0,"data-testid":p,id:p,ref:R,style:{height:"100%",width:"100%",overflow:"hidden",...d,display:"flex",flexDirection:c==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:c==="horizontal"?"pan-y":"pan-x"},children:e})})}at.displayName="Group";function Ce(){const e=L.useContext(rt);return P(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function Ht(e,t){const{id:n}=Ce(),o=L.useRef({collapse:pe,expand:pe,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:pe});L.useImperativeHandle(t,()=>o.current,[]),J(()=>{Object.assign(o.current,tt({groupId:n,panelId:e}))})}function it({children:e,className:t,collapsedSize:n="0%",collapsible:o=!1,defaultSize:r,disabled:a,elementRef:l,groupResizeBehavior:s="preserve-relative-size",id:i,maxSize:u="100%",minSize:c="0%",onResize:h,panelRef:d,style:S,...m}){const f=!!i,g=Se(i),p=xe({disabled:a}),y=L.useRef(null),z=we(y,l),{getPanelStyles:b,id:v,orientation:R,registerPanel:E,updatePanelProps:M}=Ce(),j=h!==null,G=ae((C,D,N)=>{h?.(C,i,N)});J(()=>{const C=y.current;if(C!==null){const D={element:C,id:g,idIsStable:f,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:j?G:void 0,panelConstraints:{groupResizeBehavior:s,collapsedSize:n,collapsible:o,defaultSize:r,disabled:p.disabled,maxSize:u,minSize:c}};return E(D)}},[s,n,o,r,j,g,f,u,c,G,E,p]),L.useEffect(()=>{M(g,{disabled:a})},[a,g,M]),Ht(g,d);const w=()=>{const C=b(v,g);if(C)return JSON.stringify(C)},x=L.useSyncExternalStore(C=>ye(v,C),w,w);let k;return x?k=JSON.parse(x):r!==void 0?k={flexGrow:void 0,flexShrink:void 0,flexBasis:r}:k={flexGrow:1},A.jsx("div",{...m,"data-disabled":a||void 0,"data-panel":!0,"data-testid":g,id:g,ref:z,style:{...Vt,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...k},children:A.jsx("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...S,touchAction:R==="horizontal"?"pan-y":"pan-x"},children:e})})}it.displayName="Panel";const Vt={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function Ut({layout:e,panelConstraints:t,panelId:n,panelIndex:o}){let r,a;const l=e[n],s=t.find(i=>i.panelId===n);if(s){const i=s.maxSize,u=s.collapsible?s.collapsedSize:s.minSize,c=[o,o+1];a=X({layout:ie({delta:u-l,initialLayout:e,panelConstraints:t,pivotIndices:c,prevLayout:e}),panelConstraints:t})[n],r=X({layout:ie({delta:i-l,initialLayout:e,panelConstraints:t,pivotIndices:c,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:r,valueMin:a,valueNow:l}}function st({children:e,className:t,disabled:n,disableDoubleClick:o,elementRef:r,id:a,style:l,...s}){const i=Se(a),u=xe({disabled:n,disableDoubleClick:o}),[c,h]=L.useState({}),[d,S]=L.useState("inactive"),[m,f]=L.useState(!1),g=L.useRef(null),p=we(g,r),{disableCursor:y,id:z,orientation:b,registerSeparator:v,updateSeparatorProps:R}=Ce(),E=b==="horizontal"?"vertical":"horizontal";J(()=>{const G=g.current;if(G!==null){const w={disabled:u.disabled,disableDoubleClick:u.disableDoubleClick,element:G,id:i},x=v(w),k=wt(D=>{S(D.next.state!=="inactive"&&D.next.hitRegions.some(N=>N.separator===w)?D.next.state:"inactive")}),C=ye(z,D=>{const{derivedPanelConstraints:N,layout:ne,separatorToPanels:se}=D.next,oe=se.get(w);if(oe){const $=oe[0],q=oe.indexOf($);h(Ut({layout:ne,panelConstraints:N,panelId:$.id,panelIndex:q}))}});return()=>{k(),C(),x()}}},[z,i,v,u]),L.useEffect(()=>{R(i,{disabled:n,disableDoubleClick:o})},[n,o,i,R]);let M;n&&!y&&(M="not-allowed");let j;return n?j="disabled":d==="active"?j="active":m?j="focus":j=d,A.jsx("div",{...s,"aria-controls":c.valueControls,"aria-disabled":n||void 0,"aria-orientation":E,"aria-valuemax":c.valueMax,"aria-valuemin":c.valueMin,"aria-valuenow":c.valueNow,children:e,className:t,"data-separator":j,"data-testid":i,id:i,onBlur:()=>f(!1),onFocus:()=>f(!0),ref:p,role:"separator",style:{flexBasis:"auto",cursor:M,...l,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:n?void 0:0})}st.displayName="Separator";function _t(e){const t=ve.c(10);let n,o,r;t[0]!==e?({className:n,ref:r,...o}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=r):(n=t[1],o=t[2],r=t[3]);let a;t[4]!==n?(a=He("flex h-full w-full",n),t[4]=n,t[5]=a):a=t[5];let l;return t[6]!==o||t[7]!==r||t[8]!==a?(l=A.jsx(at,{groupRef:r,"data-slot":"resizable-panel-group",className:a,...o}),t[6]=o,t[7]=r,t[8]=a,t[9]=l):l=t[9],l}function Jt(e){const t=ve.c(10);let n,o,r;t[0]!==e?({ref:o,style:r,...n}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=r):(n=t[1],o=t[2],r=t[3]);let a;t[4]!==r?(a={overflow:"hidden",...r},t[4]=r,t[5]=a):a=t[5];let l;return t[6]!==n||t[7]!==o||t[8]!==a?(l=A.jsx(it,{panelRef:o,"data-slot":"resizable-panel",style:a,...n}),t[6]=n,t[7]=o,t[8]=a,t[9]=l):l=t[9],l}function qt(e){const t=ve.c(12);let n,o,r;t[0]!==e?({withHandle:r,className:n,...o}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=r):(n=t[1],o=t[2],r=t[3]);let a;t[4]!==n?(a=He("bg-border relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-ring aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:-translate-y-1/2 aria-[orientation=horizontal]:after:translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90",n),t[4]=n,t[5]=a):a=t[5];let l;t[6]!==r?(l=r&&A.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:A.jsx(ft,{className:"size-2.5"})}),t[6]=r,t[7]=l):l=t[7];let s;return t[8]!==o||t[9]!==a||t[10]!==l?(s=A.jsx(st,{"data-slot":"resizable-handle",className:a,...o,children:l}),t[8]=o,t[9]=a,t[10]=l,t[11]=s):s=t[11],s}export{_t as R,Jt as a,qt as b};
|
|
1
|
+
import{r as L,j as A,c as ve,m as He}from"./index-DOmkLjR6.js";import{b as ft}from"./MessageCircle01-DEM19Mwq.js";function pt(e,t){const n=getComputedStyle(e),o=parseFloat(n.fontSize);return t*o}function ht(e,t){const n=getComputedStyle(e.ownerDocument.documentElement),o=parseFloat(n.fontSize);return t*o}function gt(e){return e/100*window.innerHeight}function vt(e){return e/100*window.innerWidth}function mt(e){switch(typeof e){case"number":return[e,"px"];case"string":{const t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function re({groupSize:e,panelElement:t,styleProp:n}){let o;const[r,a]=mt(n);switch(a){case"%":{o=r/100*e;break}case"px":{o=r;break}case"rem":{o=ht(t,r);break}case"em":{o=pt(t,r);break}case"vh":{o=gt(r);break}case"vw":{o=vt(r);break}}return o}function T(e){return parseFloat(e.toFixed(3))}function te({group:e}){const{orientation:t,panels:n}=e;return n.reduce((o,r)=>(o+=t==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,o),0)}function he(e){const{panels:t}=e,n=te({group:e});return n===0?t.map(o=>({groupResizeBehavior:o.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:o.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:o.panelConstraints.disabled,minSize:0,maxSize:100,panelId:o.id})):t.map(o=>{const{element:r,panelConstraints:a}=o;let l=0;if(a.collapsedSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.collapsedSize});l=T(c/n*100)}let s;if(a.defaultSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.defaultSize});s=T(c/n*100)}let i=0;if(a.minSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.minSize});i=T(c/n*100)}let u=100;if(a.maxSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.maxSize});u=T(c/n*100)}return{groupResizeBehavior:a.groupResizeBehavior,collapsedSize:l,collapsible:a.collapsible===!0,defaultSize:s,disabled:a.disabled,minSize:i,maxSize:u,panelId:o.id}})}function P(e,t="Assertion error"){if(!e)throw Error(t)}function ge(e,t){return Array.from(t).sort(e==="horizontal"?bt:yt)}function bt(e,t){const n=e.element.offsetLeft-t.element.offsetLeft;return n!==0?n:e.element.offsetWidth-t.element.offsetWidth}function yt(e,t){const n=e.element.offsetTop-t.element.offsetTop;return n!==0?n:e.element.offsetHeight-t.element.offsetHeight}function Ve(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Ue(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function zt({orientation:e,rects:t,targetRect:n}){const o={x:n.x+n.width/2,y:n.y+n.height/2};let r,a=Number.MAX_VALUE;for(const l of t){const{x:s,y:i}=Ue(o,l),u=e==="horizontal"?s:i;u<a&&(a=u,r=l)}return P(r,"No rect found"),r}let ue;function St(){return ue===void 0&&(typeof matchMedia=="function"?ue=!!matchMedia("(pointer:coarse)").matches:ue=!1),ue}function Ye(e){const{element:t,orientation:n,panels:o,separators:r}=e,a=ge(n,Array.from(t.children).filter(Ve).map(m=>({element:m}))).map(({element:m})=>m),l=[];let s=!1,i=!1,u=-1,c=-1,h=0,d,S=[];{let m=-1;for(const f of a)f.hasAttribute("data-panel")&&(m++,f.hasAttribute("data-disabled")||(h++,u===-1&&(u=m),c=m))}if(h>1){let m=-1;for(const f of a)if(f.hasAttribute("data-panel")){m++;const g=o.find(p=>p.element===f);if(g){if(d){const p=d.element.getBoundingClientRect(),y=f.getBoundingClientRect();let z;if(i){const b=n==="horizontal"?new DOMRect(p.right,p.top,0,p.height):new DOMRect(p.left,p.bottom,p.width,0),v=n==="horizontal"?new DOMRect(y.left,y.top,0,y.height):new DOMRect(y.left,y.top,y.width,0);switch(S.length){case 0:{z=[b,v];break}case 1:{const R=S[0],E=zt({orientation:n,rects:[p,y],targetRect:R.element.getBoundingClientRect()});z=[R,E===p?v:b];break}default:{z=S;break}}}else S.length?z=S:z=[n==="horizontal"?new DOMRect(p.right,y.top,y.left-p.right,y.height):new DOMRect(y.left,p.bottom,y.width,y.top-p.bottom)];for(const b of z){let v="width"in b?b:b.element.getBoundingClientRect();const R=St()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(v.width<R){const M=R-v.width;v=new DOMRect(v.x-M/2,v.y,v.width+M,v.height)}if(v.height<R){const M=R-v.height;v=new DOMRect(v.x,v.y-M/2,v.width,v.height+M)}const E=m<=u||m>c;!s&&!E&&l.push({group:e,groupSize:te({group:e}),panels:[d,g],separator:"width"in b?void 0:b,rect:v}),s=!1}}i=!1,d=g,S=[]}}else if(f.hasAttribute("data-separator")){f.ariaDisabled!==null&&(s=!0);const g=r.find(p=>p.element===f);g?S.push(g):(d=void 0,S=[])}else i=!0}return l}class Xe{#e={};addListener(t,n){const o=this.#e[t];return o===void 0?this.#e[t]=[n]:o.includes(n)||o.push(n),()=>{this.removeListener(t,n)}}emit(t,n){const o=this.#e[t];if(o!==void 0)if(o.length===1)o[0].call(null,n);else{let r=!1,a=null;const l=Array.from(o);for(let s=0;s<l.length;s++){const i=l[s];try{i.call(null,n)}catch(u){a===null&&(r=!0,a=u)}}if(r)throw a}}removeAllListeners(){this.#e={}}removeListener(t,n){const o=this.#e[t];if(o!==void 0){const r=o.indexOf(n);r>=0&&o.splice(r,1)}}}let Q={cursorFlags:0,state:"inactive"};const me=new Xe;function U(){return Q}function wt(e){return me.addListener("change",e)}function xt(e){const t=Q,n={...Q};n.cursorFlags=e,Q=n,me.emit("change",{prev:t,next:n})}function ee(e){const t=Q;Q=e,me.emit("change",{prev:t,next:e})}const Ct=e=>e,pe=()=>{},_e=1,Je=2,qe=4,Ke=8,Le=3,Re=12;let ce;function Ee(){return ce===void 0&&(ce=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(ce=!0)),ce}function Pt({cursorFlags:e,groups:t,state:n}){let o=0,r=0;switch(n){case"active":case"hover":t.forEach(a=>{if(!a.mutableState.disableCursor)switch(a.orientation){case"horizontal":{o++;break}case"vertical":{r++;break}}})}if(!(o===0&&r===0)){switch(n){case"active":{if(e&&Ee()){const a=(e&_e)!==0,l=(e&Je)!==0,s=(e&qe)!==0,i=(e&Ke)!==0;if(a)return s?"se-resize":i?"ne-resize":"e-resize";if(l)return s?"sw-resize":i?"nw-resize":"w-resize";if(s)return"s-resize";if(i)return"n-resize"}break}}return Ee()?o>0&&r>0?"move":o>0?"ew-resize":"ns-resize":o>0&&r>0?"grab":o>0?"col-resize":"row-resize"}}const ke=new WeakMap;function be(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:n}=ke.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]));const o=U();switch(o.state){case"active":case"hover":{const r=Pt({cursorFlags:o.cursorFlags,groups:o.hitRegions.map(l=>l.group),state:o.state}),a=`*, *:hover {cursor: ${r} !important; }`;if(t===a)return;t=a,r?n.cssRules.length===0?n.insertRule(a):n.replaceSync(a):n.cssRules.length===1&&n.deleteRule(0);break}case"inactive":{t=void 0,n.cssRules.length===1&&n.deleteRule(0);break}}ke.set(e,{prevStyle:t,styleSheet:n})}let F=new Map;const Ze=new Xe;function Lt(e){F=new Map(F),F.delete(e)}function Me(e,t){for(const[n]of F)if(n.id===e)return n}function H(e,t){for(const[n,o]of F)if(n.id===e)return o;if(t)throw Error(`Could not find data for Group with id ${e}`)}function _(){return F}function ye(e,t){return Ze.addListener("groupChange",n=>{n.group.id===e&&t(n)})}function W(e,t,n){const o=F.get(e);F=new Map(F),F.set(e,t),Ze.emit("groupChange",{group:e,isUserInteraction:n?.isUserInteraction===!0,prev:o,next:t})}function Qe(e){const t=U();let n=!1;return t.state==="active"&&(ee({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(be(e),n=!0,t.hitRegions.forEach(o=>{const r=H(o.group.id,!0);W(o.group,r,{isUserInteraction:!0})}))),n}function De(e){e.defaultPrevented||Qe(e.currentTarget)}function Rt(e,t,n){let o,r={x:1/0,y:1/0};for(const a of t){const l=Ue(n,a.rect);switch(e){case"horizontal":{l.x<=r.x&&(o=a,r=l);break}case"vertical":{l.y<=r.y&&(o=a,r=l);break}}}return o?{distance:r,hitRegion:o}:void 0}function Et(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function kt(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Ne(e),b:Ne(t)};let o;for(;n.a.at(-1)===n.b.at(-1);)o=n.a.pop(),n.b.pop();P(o,"Stacking order can only be calculated for elements with a common ancestor");const r={a:Te(Ie(n.a)),b:Te(Ie(n.b))};if(r.a===r.b){const a=o.childNodes,l={a:n.a.at(-1),b:n.b.at(-1)};let s=a.length;for(;s--;){const i=a[s];if(i===l.a)return 1;if(i===l.b)return-1}}return Math.sign(r.a-r.b)}const Mt=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Dt(e){const t=getComputedStyle(et(e)??e).display;return t==="flex"||t==="inline-flex"}function It(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||Dt(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||Mt.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Ie(e){let t=e.length;for(;t--;){const n=e[t];if(P(n,"Missing node"),It(n))return n}return null}function Te(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Ne(e){const t=[];for(;e;)t.push(e),e=et(e);return t}function et(e){const{parentNode:t}=e;return Et(t)?t.host:t}function Tt(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function Nt({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!Ve(n)||n.contains(e)||e.contains(n))return!0;if(kt(n,e)>0){let o=n;for(;o;){if(o.contains(e))return!0;if(Tt(o.getBoundingClientRect(),t))return!1;o=o.parentElement}}return!0}function ze(e,t){const n=[];return t.forEach((o,r)=>{if(r.disabled)return;const a=Ye(r),l=Rt(r.orientation,a,{x:e.clientX,y:e.clientY});l&&l.distance.x<=0&&l.distance.y<=0&&Nt({groupElement:r.element,hitRegion:l.hitRegion.rect,pointerEventTarget:e.target})&&n.push(l.hitRegion)}),n}function jt(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function I(e,t,n=0){return Math.abs(T(e)-T(t))<=n}function O(e,t){return I(e,t)?0:e>t?1:-1}function Z({overrideDisabledPanels:e,panelConstraints:t,prevSize:n,size:o}){const{collapsedSize:r=0,collapsible:a,disabled:l,maxSize:s=100,minSize:i=0}=t;if(l&&!e)return n;if(O(o,i)<0)if(a){const u=(r+i)/2;O(o,u)<0?o=r:o=i}else o=i;return o=Math.min(s,o),o=T(o),o}function ie({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:o,prevLayout:r,trigger:a}){if(I(e,0))return t;const l=a==="imperative-api",s=Object.values(t),i=Object.values(r),u=[...s],[c,h]=o;P(c!=null,"Invalid first pivot index"),P(h!=null,"Invalid second pivot index");let d=0;switch(a){case"keyboard":{{const f=e<0?h:c,g=n[f];P(g,`Panel constraints not found for index ${f}`);const{collapsedSize:p=0,collapsible:y,minSize:z=0}=g;if(y){const b=s[f];if(P(b!=null,`Previous layout not found for panel index ${f}`),I(b,p)){const v=z-b;O(v,Math.abs(e))>0&&(e=e<0?0-v:v)}}}{const f=e<0?c:h,g=n[f];P(g,`No panel constraints found for index ${f}`);const{collapsedSize:p=0,collapsible:y,minSize:z=0}=g;if(y){const b=s[f];if(P(b!=null,`Previous layout not found for panel index ${f}`),I(b,z)){const v=b-p;O(v,Math.abs(e))>0&&(e=e<0?0-v:v)}}}break}default:{const f=e<0?h:c,g=n[f];P(g,`Panel constraints not found for index ${f}`);const p=s[f],{collapsible:y,collapsedSize:z,minSize:b}=g;if(y&&O(p,b)<0)if(e>0){const v=b-z,R=v/2,E=p+e;O(E,b)<0&&(e=O(e,R)<=0?0:v)}else{const v=b-z,R=100-v/2,E=p-e;O(E,b)<0&&(e=O(100+e,R)>0?0:-v)}break}}{const f=e<0?1:-1;let g=e<0?h:c,p=0;for(;;){const z=s[g];P(z!=null,`Previous layout not found for panel index ${g}`);const b=Z({overrideDisabledPanels:l,panelConstraints:n[g],prevSize:z,size:100})-z;if(p+=b,g+=f,g<0||g>=n.length)break}const y=Math.min(Math.abs(e),Math.abs(p));e=e<0?0-y:y}{let f=e<0?c:h;for(;f>=0&&f<n.length;){const g=Math.abs(e)-Math.abs(d),p=s[f];P(p!=null,`Previous layout not found for panel index ${f}`);const y=p-g,z=Z({overrideDisabledPanels:l,panelConstraints:n[f],prevSize:p,size:y});if(!I(p,z)&&(d+=p-z,u[f]=z,d.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?f--:f++}}if(jt(i,u))return r;{const f=e<0?h:c,g=s[f];P(g!=null,`Previous layout not found for panel index ${f}`);const p=g+d,y=Z({overrideDisabledPanels:l,panelConstraints:n[f],prevSize:g,size:p});if(u[f]=y,!I(y,p)){let z=p-y,b=e<0?h:c;for(;b>=0&&b<n.length;){const v=u[b];P(v!=null,`Previous layout not found for panel index ${b}`);const R=v+z,E=Z({overrideDisabledPanels:l,panelConstraints:n[b],prevSize:v,size:R});if(I(v,E)||(z-=E-v,u[b]=E),I(z,0))break;e>0?b--:b++}}}const S=Object.values(u).reduce((f,g)=>g+f,0);if(!I(S,100,.1))return r;const m=Object.keys(r);return u.reduce((f,g,p)=>(f[m[p]]=g,f),{})}function Y(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(t[n]===void 0||O(e[n],t[n])!==0)return!1;return!0}function X({layout:e,panelConstraints:t}){const n=Object.values(e),o=[...n],r=o.reduce((s,i)=>s+i,0);if(o.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${o.map(s=>`${s}%`).join(", ")}`);if(!I(r,100)&&o.length>0)for(let s=0;s<t.length;s++){const i=o[s];P(i!=null,`No layout data found for index ${s}`);const u=100/r*i;o[s]=u}let a=0;for(let s=0;s<t.length;s++){const i=n[s];P(i!=null,`No layout data found for index ${s}`);const u=o[s];P(u!=null,`No layout data found for index ${s}`);const c=Z({overrideDisabledPanels:!0,panelConstraints:t[s],prevSize:i,size:u});u!=c&&(a+=u-c,o[s]=c)}if(!I(a,0))for(let s=0;s<t.length;s++){const i=o[s];P(i!=null,`No layout data found for index ${s}`);const u=i+a,c=Z({overrideDisabledPanels:!0,panelConstraints:t[s],prevSize:i,size:u});if(i!==c&&(a-=c-i,o[s]=c,I(a,0)))break}const l=Object.keys(e);return o.reduce((s,i,u)=>(s[l[u]]=i,s),{})}function tt({groupId:e,panelId:t}){const n=()=>{const i=_();for(const[u,{defaultLayoutDeferred:c,derivedPanelConstraints:h,layout:d,groupSize:S,separatorToPanels:m}]of i)if(u.id===e)return{defaultLayoutDeferred:c,derivedPanelConstraints:h,group:u,groupSize:S,layout:d,separatorToPanels:m};throw Error(`Group ${e} not found`)},o=()=>{const i=n().derivedPanelConstraints.find(u=>u.panelId===t);if(i!==void 0)return i;throw Error(`Panel constraints not found for Panel ${t}`)},r=()=>{const i=n().group.panels.find(u=>u.id===t);if(i!==void 0)return i;throw Error(`Layout not found for Panel ${t}`)},a=()=>{const i=n().layout[t];if(i!==void 0)return i;throw Error(`Layout not found for Panel ${t}`)},l=({nextSize:i,panels:u,prevLayout:c,derivedPanelConstraints:h})=>{const d=a(),S=u.findIndex(g=>g.id===t),m=S===0,f=S===u.length-1;if(f&&i<d&&(m||u.slice(0,S).every((g,p)=>{const y=h[p];return y?.collapsible&&I(y.collapsedSize,c[y.panelId])}))){const g=u.slice(0,S).reduce((p,y)=>p+c[y.id],0);return{...c,[t]:T(100-g)}}return ie({delta:f?d-i:i-d,initialLayout:c,panelConstraints:h,pivotIndices:f?[S-1,S]:[S,S+1],prevLayout:c,trigger:"imperative-api"})},s=i=>{const u=a();if(i===u)return;const{defaultLayoutDeferred:c,derivedPanelConstraints:h,group:d,groupSize:S,layout:m,separatorToPanels:f}=n(),g=l({nextSize:i,panels:d.panels,prevLayout:m,derivedPanelConstraints:h}),p=X({layout:g,panelConstraints:h});Y(m,p)||W(d,{defaultLayoutDeferred:c,derivedPanelConstraints:h,groupSize:S,layout:p,separatorToPanels:f})};return{collapse:()=>{const{collapsible:i,collapsedSize:u}=o(),{mutableValues:c}=r(),h=a();i&&h!==u&&(c.expandToSize=h,s(u))},expand:()=>{const{collapsible:i,collapsedSize:u,minSize:c}=o(),{mutableValues:h}=r(),d=a();if(i&&d===u){let S=h.expandToSize??c;S===0&&(S=1),s(S)}},getSize:()=>{const{group:i}=n(),u=a(),{element:c}=r(),h=i.orientation==="horizontal"?c.offsetWidth:c.offsetHeight;return{asPercentage:u,inPixels:h}},isCollapsed:()=>{const{collapsible:i,collapsedSize:u}=o(),c=a();return i&&I(u,c)},resize:i=>{const{group:u}=n(),{element:c}=r(),h=te({group:u}),d=re({groupSize:h,panelElement:c,styleProp:i}),S=T(d/h*100);s(S)}}}function je(e){if(e.defaultPrevented)return;const t=_();ze(e,t).forEach(n=>{if(n.separator&&!n.separator.disableDoubleClick){const o=n.panels.find(r=>r.panelConstraints.defaultSize!==void 0);if(o){const r=o.panelConstraints.defaultSize,a=tt({groupId:n.group.id,panelId:o.id});a&&r!==void 0&&(a.resize(r),e.preventDefault())}}})}function de(e){const t=_();for(const[n]of t)if(n.separators.some(o=>o.element===e))return n;throw Error("Could not find parent Group for separator element")}function nt({groupId:e}){const t=()=>{const n=_();for(const[o,r]of n)if(o.id===e)return{group:o,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){const{defaultLayoutDeferred:n,layout:o}=t();return n?{}:o},setLayout(n){const{defaultLayoutDeferred:o,derivedPanelConstraints:r,group:a,groupSize:l,layout:s,separatorToPanels:i}=t(),u=X({layout:n,panelConstraints:r});return o?s:(Y(s,u)||W(a,{defaultLayoutDeferred:o,derivedPanelConstraints:r,groupSize:l,layout:u,separatorToPanels:i}),u)}}}function V(e,t){const n=de(e),o=H(n.id,!0),r=n.separators.find(c=>c.element===e);P(r,"Matching separator not found");const a=o.separatorToPanels.get(r);P(a,"Matching panels not found");const l=a.map(c=>n.panels.indexOf(c)),s=nt({groupId:n.id}).getLayout(),i=ie({delta:t,initialLayout:s,panelConstraints:o.derivedPanelConstraints,pivotIndices:l,prevLayout:s,trigger:"keyboard"}),u=X({layout:i,panelConstraints:o.derivedPanelConstraints});Y(s,u)||W(n,{defaultLayoutDeferred:o.defaultLayoutDeferred,derivedPanelConstraints:o.derivedPanelConstraints,groupSize:o.groupSize,layout:u,separatorToPanels:o.separatorToPanels},{isUserInteraction:!0})}function Oe(e){if(e.defaultPrevented)return;const t=e.currentTarget,n=de(t);if(!n.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),n.orientation==="vertical"&&V(t,5);break}case"ArrowLeft":{e.preventDefault(),n.orientation==="horizontal"&&V(t,-5);break}case"ArrowRight":{e.preventDefault(),n.orientation==="horizontal"&&V(t,5);break}case"ArrowUp":{e.preventDefault(),n.orientation==="vertical"&&V(t,-5);break}case"End":{e.preventDefault(),V(t,100);break}case"Enter":{e.preventDefault();const o=de(t),r=H(o.id,!0),{derivedPanelConstraints:a,layout:l,separatorToPanels:s}=r,i=o.separators.find(d=>d.element===t);P(i,"Matching separator not found");const u=s.get(i);P(u,"Matching panels not found");const c=u[0],h=a.find(d=>d.panelId===c.id);if(P(h,"Panel metadata not found"),h.collapsible){const d=l[c.id],S=h.collapsedSize===d?o.mutableState.expandedPanelSizes[c.id]??h.minSize:h.collapsedSize;V(t,S-d)}break}case"F6":{e.preventDefault();const o=de(t).separators.map(l=>l.element),r=Array.from(o).findIndex(l=>l===e.currentTarget);P(r!==null,"Index not found");const a=e.shiftKey?r>0?r-1:o.length-1:r+1<o.length?r+1:0;o[a].focus({preventScroll:!0});break}case"Home":{e.preventDefault(),V(t,-100);break}}}function Fe(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const t=_(),n=ze(e,t),o=new Map;let r=!1;n.forEach(a=>{a.separator&&(r||(r=!0,a.separator.element.focus({focusVisible:!1,preventScroll:!0})));const l=t.get(a.group);l&&o.set(a.group,l.layout)}),ee({cursorFlags:0,hitRegions:n,initialLayoutMap:o,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),n.length&&e.preventDefault()}function ot({document:e,event:t,hitRegions:n,initialLayoutMap:o,mountedGroups:r,pointerDownAtPoint:a,prevCursorFlags:l}){let s=0;n.forEach(u=>{const{group:c,groupSize:h}=u,{orientation:d,panels:S}=c,{disableCursor:m}=c.mutableState;let f=0;a?d==="horizontal"?f=(t.clientX-a.x)/h*100:f=(t.clientY-a.y)/h*100:d==="horizontal"?f=t.clientX<0?-100:100:f=t.clientY<0?-100:100;const g=o.get(c),p=r.get(c);if(!g||!p)return;const{defaultLayoutDeferred:y,derivedPanelConstraints:z,groupSize:b,layout:v,separatorToPanels:R}=p;if(z&&v&&R){const E=ie({delta:f,initialLayout:g,panelConstraints:z,pivotIndices:u.panels.map(M=>S.indexOf(M)),prevLayout:v,trigger:"mouse-or-touch"});if(Y(E,v)){if(f!==0&&!m)switch(d){case"horizontal":{s|=f<0?_e:Je;break}case"vertical":{s|=f<0?qe:Ke;break}}}else W(u.group,{defaultLayoutDeferred:y,derivedPanelConstraints:z,groupSize:b,layout:E,separatorToPanels:R})}});let i=0;t.movementX===0?i|=l&Le:i|=s&Le,t.movementY===0?i|=l&Re:i|=s&Re,xt(i),be(e)}function Ae(e){const t=_(),n=U();n.state==="active"&&ot({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}function Ge(e){if(e.defaultPrevented)return;const t=U(),n=_();switch(t.state){case"active":{if(e.buttons===0){ee({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(o=>{const r=H(o.group.id,!0);W(o.group,r,{isUserInteraction:!0})});return}for(const o of t.hitRegions)if(o.separator){const{element:r}=o.separator;r.hasPointerCapture?.(e.pointerId)||r.setPointerCapture?.(e.pointerId)}ot({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break}default:{const o=ze(e,n);o.length===0?t.state!=="inactive"&&ee({cursorFlags:0,state:"inactive"}):ee({cursorFlags:0,hitRegions:o,state:"hover"}),be(e.currentTarget);break}}}function $e(e){e.relatedTarget instanceof HTMLIFrameElement&&U().state==="hover"&&ee({cursorFlags:0,state:"inactive"})}function Be(e){e.defaultPrevented||e.pointerType==="mouse"&&e.button>0||Qe(e.currentTarget)&&e.preventDefault()}function We(e){let t=0,n=0;const o={};for(const a of e)if(a.defaultSize!==void 0){t++;const l=T(a.defaultSize);n+=l,o[a.panelId]=l}else o[a.panelId]=void 0;const r=e.length-t;if(r!==0){const a=T((100-n)/r);for(const l of e)l.defaultSize===void 0&&(o[l.panelId]=a)}return o}function Ot(e,t,n){if(!n[0])return;const o=e.panels.find(i=>i.element===t);if(!o||!o.onResize)return;const r=te({group:e}),a=e.orientation==="horizontal"?o.element.offsetWidth:o.element.offsetHeight,l=o.mutableValues.prevSize,s={asPercentage:T(a/r*100),inPixels:a};o.mutableValues.prevSize=s,o.onResize(s,o.id,l)}function Ft(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function At({group:e,nextGroupSize:t,prevGroupSize:n,prevLayout:o}){if(n<=0||t<=0||n===t)return o;let r=0,a=0,l=!1;const s=new Map,i=[];for(const h of e.panels){const d=o[h.id]??0;if(h.panelConstraints.groupResizeBehavior==="preserve-pixel-size"){l=!0;const S=d/100*n,m=T(S/t*100);s.set(h.id,m),r+=m}else i.push(h.id),a+=d}if(!l||i.length===0)return o;const u=100-r,c={...o};if(s.forEach((h,d)=>{c[d]=h}),a>0)for(const h of i){const d=o[h]??0;c[h]=T(d/a*u)}else{const h=T(u/i.length);for(const d of i)c[d]=h}return c}function Gt(e,t){const n=e.map(r=>r.id),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n)if(!o.includes(r))return!1;return!0}const K=new Map;function $t(e){let t=!0;P(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");const n=e.element.ownerDocument.defaultView.ResizeObserver,o=new Set,r=new Set,a=new n(m=>{for(const f of m){const{borderBoxSize:g,target:p}=f;if(p===e.element){if(t){const y=te({group:e});if(y===0)return;const z=H(e.id);if(!z)return;const b=he(e),v=z.defaultLayoutDeferred?We(b):z.layout,R=At({group:e,nextGroupSize:y,prevGroupSize:z.groupSize,prevLayout:v}),E=X({layout:R,panelConstraints:b});if(!z.defaultLayoutDeferred&&Y(z.layout,E)&&Ft(z.derivedPanelConstraints,b)&&z.groupSize===y)return;W(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:b,groupSize:y,layout:E,separatorToPanels:z.separatorToPanels})}}else Ot(e,p,g)}});a.observe(e.element),e.panels.forEach(m=>{P(!o.has(m.id),`Panel ids must be unique; id "${m.id}" was used more than once`),o.add(m.id),m.onResize&&a.observe(m.element)});const l=te({group:e}),s=he(e),i=e.panels.map(({id:m})=>m).join(",");let u=e.mutableState.defaultLayout;u&&(Gt(e.panels,u)||(u=void 0));const c=e.mutableState.layouts[i]??u??We(s),h=X({layout:c,panelConstraints:s}),d=e.element.ownerDocument;K.set(d,(K.get(d)??0)+1);const S=new Map;return Ye(e).forEach(m=>{m.separator&&S.set(m.separator,m.panels)}),W(e,{defaultLayoutDeferred:l===0,derivedPanelConstraints:s,groupSize:l,layout:h,separatorToPanels:S}),e.separators.forEach(m=>{P(!r.has(m.id),`Separator ids must be unique; id "${m.id}" was used more than once`),r.add(m.id),m.element.addEventListener("keydown",Oe)}),K.get(d)===1&&(d.addEventListener("contextmenu",De,!0),d.addEventListener("dblclick",je,!0),d.addEventListener("pointerdown",Fe,!0),d.addEventListener("pointerleave",Ae),d.addEventListener("pointermove",Ge),d.addEventListener("pointerout",$e),d.addEventListener("pointerup",Be,!0)),function(){t=!1,K.set(d,Math.max(0,(K.get(d)??0)-1)),Lt(e),e.separators.forEach(m=>{m.element.removeEventListener("keydown",Oe)}),K.get(d)||(d.removeEventListener("contextmenu",De,!0),d.removeEventListener("dblclick",je,!0),d.removeEventListener("pointerdown",Fe,!0),d.removeEventListener("pointerleave",Ae),d.removeEventListener("pointermove",Ge),d.removeEventListener("pointerout",$e),d.removeEventListener("pointerup",Be,!0)),a.disconnect()}}function Bt(){const[e,t]=L.useState({}),n=L.useCallback(()=>t({}),[]);return[e,n]}function Se(e){const t=L.useId();return`${e??t}`}const J=typeof window<"u"?L.useLayoutEffect:L.useEffect;function ae(e){const t=L.useRef(e);return J(()=>{t.current=e},[e]),L.useCallback((...n)=>t.current?.(...n),[t])}function we(...e){return ae(t=>{e.forEach(n=>{if(n)switch(typeof n){case"function":{n(t);break}case"object":{n.current=t;break}}})})}function xe(e){const t=L.useRef({...e});return J(()=>{for(const n in e)t.current[n]=e[n]},[e]),t.current}const rt=L.createContext(null);function Wt(e,t){const n=L.useRef({getLayout:()=>({}),setLayout:Ct});L.useImperativeHandle(t,()=>n.current,[]),J(()=>{Object.assign(n.current,nt({groupId:e}))})}function at({children:e,className:t,defaultLayout:n,disableCursor:o,disabled:r,elementRef:a,groupRef:l,id:s,onLayoutChange:i,onLayoutChanged:u,orientation:c="horizontal",resizeTargetMinimumSize:h={coarse:20,fine:10},style:d,...S}){const m=L.useRef({onLayoutChange:{},onLayoutChanged:{}}),f=ae(w=>{Y(m.current.onLayoutChange,w)||(m.current.onLayoutChange=w,i?.(w))}),g=ae((w,x)=>{Y(m.current.onLayoutChanged,w)||(m.current.onLayoutChanged=w,u?.(w,{isUserInteraction:x}))}),p=Se(s),y=L.useRef(null),[z,b]=Bt(),v=L.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:h,separators:[]}),R=we(y,a);Wt(p,l);const E=ae((w,x)=>{const k=U(),C=Me(w),D=H(w);if(D){let N=!1;return k.state==="active"&&(N=k.hitRegions.some(ne=>ne.group===C)),{flexGrow:D.layout[x]??1,pointerEvents:N?"none":void 0}}if(n?.[x])return{flexGrow:n?.[x]}}),M=xe({defaultLayout:n,disableCursor:o}),j=L.useMemo(()=>({get disableCursor(){return!!M.disableCursor},getPanelStyles:E,id:p,orientation:c,registerPanel:w=>{const x=v.current;return x.panels=ge(c,[...x.panels,w]),b(),()=>{x.panels=x.panels.filter(k=>k!==w),b()}},registerSeparator:w=>{const x=v.current;return x.separators=ge(c,[...x.separators,w]),b(),()=>{x.separators=x.separators.filter(k=>k!==w),b()}},updatePanelProps:(w,{disabled:x})=>{const k=v.current.panels.find(N=>N.id===w);k&&(k.panelConstraints.disabled=x);const C=Me(p),D=H(p);C&&D&&W(C,{...D,derivedPanelConstraints:he(C)})},updateSeparatorProps:(w,{disabled:x,disableDoubleClick:k})=>{const C=v.current.separators.find(D=>D.id===w);C&&(C.disabled=x,C.disableDoubleClick=k)}}),[E,p,b,c,M]),G=L.useRef(null);return J(()=>{const w=y.current;if(w===null)return;const x=v.current;let k;if(M.defaultLayout!==void 0&&Object.keys(M.defaultLayout).length===x.panels.length){k={};for(const $ of x.panels){const q=M.defaultLayout[$.id];q!==void 0&&(k[$.id]=q)}}const C={disabled:!!r,element:w,id:p,mutableState:{defaultLayout:k,disableCursor:!!M.disableCursor,expandedPanelSizes:v.current.lastExpandedPanelSizes,layouts:v.current.layouts},orientation:c,panels:x.panels,resizeTargetMinimumSize:x.resizeTargetMinimumSize,separators:x.separators};G.current=C;const D=$t(C),{defaultLayoutDeferred:N,derivedPanelConstraints:ne,layout:se}=H(C.id,!0);!N&&ne.length>0&&(f(se),g(se,!1));const oe=ye(p,$=>{const{defaultLayoutDeferred:q,derivedPanelConstraints:Pe,layout:le}=$.next;if(q||Pe.length===0)return;const lt=C.panels.map(({id:B})=>B).join(",");C.mutableState.layouts[lt]=le,Pe.forEach(B=>{if(B.collapsible){const{layout:fe}=$.prev??{};if(fe){const ct=I(B.collapsedSize,le[B.panelId]),dt=I(B.collapsedSize,fe[B.panelId]);ct&&!dt&&(C.mutableState.expandedPanelSizes[B.panelId]=fe[B.panelId])}}});const ut=U().state!=="active";f(le),ut&&g(le,$.isUserInteraction)});return()=>{G.current=null,D(),oe()}},[r,p,g,f,c,z,M]),L.useEffect(()=>{const w=G.current;w&&(w.mutableState.defaultLayout=n,w.mutableState.disableCursor=!!o)}),A.jsx(rt.Provider,{value:j,children:A.jsx("div",{...S,className:t,"data-group":!0,"data-testid":p,id:p,ref:R,style:{height:"100%",width:"100%",overflow:"hidden",...d,display:"flex",flexDirection:c==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:c==="horizontal"?"pan-y":"pan-x"},children:e})})}at.displayName="Group";function Ce(){const e=L.useContext(rt);return P(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function Ht(e,t){const{id:n}=Ce(),o=L.useRef({collapse:pe,expand:pe,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:pe});L.useImperativeHandle(t,()=>o.current,[]),J(()=>{Object.assign(o.current,tt({groupId:n,panelId:e}))})}function it({children:e,className:t,collapsedSize:n="0%",collapsible:o=!1,defaultSize:r,disabled:a,elementRef:l,groupResizeBehavior:s="preserve-relative-size",id:i,maxSize:u="100%",minSize:c="0%",onResize:h,panelRef:d,style:S,...m}){const f=!!i,g=Se(i),p=xe({disabled:a}),y=L.useRef(null),z=we(y,l),{getPanelStyles:b,id:v,orientation:R,registerPanel:E,updatePanelProps:M}=Ce(),j=h!==null,G=ae((C,D,N)=>{h?.(C,i,N)});J(()=>{const C=y.current;if(C!==null){const D={element:C,id:g,idIsStable:f,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:j?G:void 0,panelConstraints:{groupResizeBehavior:s,collapsedSize:n,collapsible:o,defaultSize:r,disabled:p.disabled,maxSize:u,minSize:c}};return E(D)}},[s,n,o,r,j,g,f,u,c,G,E,p]),L.useEffect(()=>{M(g,{disabled:a})},[a,g,M]),Ht(g,d);const w=()=>{const C=b(v,g);if(C)return JSON.stringify(C)},x=L.useSyncExternalStore(C=>ye(v,C),w,w);let k;return x?k=JSON.parse(x):r!==void 0?k={flexGrow:void 0,flexShrink:void 0,flexBasis:r}:k={flexGrow:1},A.jsx("div",{...m,"data-disabled":a||void 0,"data-panel":!0,"data-testid":g,id:g,ref:z,style:{...Vt,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...k},children:A.jsx("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...S,touchAction:R==="horizontal"?"pan-y":"pan-x"},children:e})})}it.displayName="Panel";const Vt={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function Ut({layout:e,panelConstraints:t,panelId:n,panelIndex:o}){let r,a;const l=e[n],s=t.find(i=>i.panelId===n);if(s){const i=s.maxSize,u=s.collapsible?s.collapsedSize:s.minSize,c=[o,o+1];a=X({layout:ie({delta:u-l,initialLayout:e,panelConstraints:t,pivotIndices:c,prevLayout:e}),panelConstraints:t})[n],r=X({layout:ie({delta:i-l,initialLayout:e,panelConstraints:t,pivotIndices:c,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:r,valueMin:a,valueNow:l}}function st({children:e,className:t,disabled:n,disableDoubleClick:o,elementRef:r,id:a,style:l,...s}){const i=Se(a),u=xe({disabled:n,disableDoubleClick:o}),[c,h]=L.useState({}),[d,S]=L.useState("inactive"),[m,f]=L.useState(!1),g=L.useRef(null),p=we(g,r),{disableCursor:y,id:z,orientation:b,registerSeparator:v,updateSeparatorProps:R}=Ce(),E=b==="horizontal"?"vertical":"horizontal";J(()=>{const G=g.current;if(G!==null){const w={disabled:u.disabled,disableDoubleClick:u.disableDoubleClick,element:G,id:i},x=v(w),k=wt(D=>{S(D.next.state!=="inactive"&&D.next.hitRegions.some(N=>N.separator===w)?D.next.state:"inactive")}),C=ye(z,D=>{const{derivedPanelConstraints:N,layout:ne,separatorToPanels:se}=D.next,oe=se.get(w);if(oe){const $=oe[0],q=oe.indexOf($);h(Ut({layout:ne,panelConstraints:N,panelId:$.id,panelIndex:q}))}});return()=>{k(),C(),x()}}},[z,i,v,u]),L.useEffect(()=>{R(i,{disabled:n,disableDoubleClick:o})},[n,o,i,R]);let M;n&&!y&&(M="not-allowed");let j;return n?j="disabled":d==="active"?j="active":m?j="focus":j=d,A.jsx("div",{...s,"aria-controls":c.valueControls,"aria-disabled":n||void 0,"aria-orientation":E,"aria-valuemax":c.valueMax,"aria-valuemin":c.valueMin,"aria-valuenow":c.valueNow,children:e,className:t,"data-separator":j,"data-testid":i,id:i,onBlur:()=>f(!1),onFocus:()=>f(!0),ref:p,role:"separator",style:{flexBasis:"auto",cursor:M,...l,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:n?void 0:0})}st.displayName="Separator";function _t(e){const t=ve.c(10);let n,o,r;t[0]!==e?({className:n,ref:r,...o}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=r):(n=t[1],o=t[2],r=t[3]);let a;t[4]!==n?(a=He("flex h-full w-full",n),t[4]=n,t[5]=a):a=t[5];let l;return t[6]!==o||t[7]!==r||t[8]!==a?(l=A.jsx(at,{groupRef:r,"data-slot":"resizable-panel-group",className:a,...o}),t[6]=o,t[7]=r,t[8]=a,t[9]=l):l=t[9],l}function Jt(e){const t=ve.c(10);let n,o,r;t[0]!==e?({ref:o,style:r,...n}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=r):(n=t[1],o=t[2],r=t[3]);let a;t[4]!==r?(a={overflow:"hidden",...r},t[4]=r,t[5]=a):a=t[5];let l;return t[6]!==n||t[7]!==o||t[8]!==a?(l=A.jsx(it,{panelRef:o,"data-slot":"resizable-panel",style:a,...n}),t[6]=n,t[7]=o,t[8]=a,t[9]=l):l=t[9],l}function qt(e){const t=ve.c(12);let n,o,r;t[0]!==e?({withHandle:r,className:n,...o}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=r):(n=t[1],o=t[2],r=t[3]);let a;t[4]!==n?(a=He("bg-border relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-ring aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:-translate-y-1/2 aria-[orientation=horizontal]:after:translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90",n),t[4]=n,t[5]=a):a=t[5];let l;t[6]!==r?(l=r&&A.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:A.jsx(ft,{className:"size-2.5"})}),t[6]=r,t[7]=l):l=t[7];let s;return t[8]!==o||t[9]!==a||t[10]!==l?(s=A.jsx(st,{"data-slot":"resizable-handle",className:a,...o,children:l}),t[8]=o,t[9]=a,t[10]=l,t[11]=s):s=t[11],s}export{_t as R,Jt as a,qt as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as s,a6 as c,a3 as f,o as l,p as u,E as p,a7 as d,b as m,g as k,a8 as b,h as I,a9 as $,aa as y}from"./agent-icon-
|
|
1
|
+
import{k as s,a6 as c,a3 as f,o as l,p as u,E as p,a7 as d,b as m,g as k,a8 as b,h as I,a9 as $,aa as y}from"./agent-icon-Dm6RpqF8.js";import{n as C}from"./BookOpen01-CniP2FYm.js";import{i as S}from"./File02-UWhgjmWr.js";import{aj as T}from"./index-DOmkLjR6.js";const e={overview:I,settings:b,automations:k,"site-editor":m,code:d,content:S,blog:C,assets:p,releases:u,hosting:T,e2e:l,analytics:f,cdn:c,files:s};function v(n){return n in e}function a(n){const t=$(n);if(t.type==="icon"){const o=y(t.name);return o?{kind:"component",Component:o}:null}return t.type==="url"?{kind:"url",src:t.url}:null}function j(n){if(n.kind==="system")return v(n.tabId)?{kind:"component",Component:e[n.tabId]}:{kind:"fallback"};const t=a(n.iconUrl);if(t)return t;if(!n.appId)return{kind:"fallback"};const o=n.connections.find(r=>r.id===n.appId);if(!o)return{kind:"fallback"};const i=a(o.icon);return i||{kind:"fallback"}}export{j as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as y,b as T,j as s,gi as H,gW as Q,E as fe,t as le,gj as U,dO as me,Q as pe,R as xe,r as G,B as ie,a6 as ue,e0 as he,I as je,W as Y}from"./index-CMOYwhXD.js";import{S as ae}from"./switch-DcLJMUn8.js";import{n as be}from"./BookOpen01-HlvgQjwt.js";import{g as _e,j as ye,m as ve,f as Se,d as re,k as Te,i as ke,s as we,e as Ke,b as Ee,l as Pe,n as Ce,h as Me,c as $e,a as ze}from"./UserSquare-BzfdCQlh.js";import{u as ge,k as Ne,f as Ae,l as Re,m as De,n as Oe,o as Be}from"./use-organization-settings-uZzqpAbZ.js";import{b as Fe}from"./use-connection-lIDtpp77.js";function tt(){const e=y.c(12),t=T();let i;e[0]!==t?(i=t("settings.review.title"),e[0]=t,e[1]=i):i=e[1];let n;e[2]!==t?(n=t("settings.review.description"),e[2]=t,e[3]=n):n=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Ye,{}),e[4]=l):l=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(u,{flag:"cheap_reviewer_model",icon:s.jsx(_e,{size:16}),titleKey:"settings.review.cheapReviewerModelTitle",descriptionKey:"settings.review.cheapReviewerModelDescription"}),e[5]=c):c=e[5];let o,r;e[6]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(u,{flag:"auto_merge",icon:s.jsx(ye,{size:16}),titleKey:"settings.review.autoMergeTitle",descriptionKey:"settings.review.autoMergeDescription"}),r=s.jsx(Ge,{}),e[6]=o,e[7]=r):(o=e[6],r=e[7]);let g;e[8]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsxs(H,{children:[l,c,o,r,s.jsx(u,{flag:"auto_assign_report_tasks_to_super_agent",icon:s.jsx(ve,{size:16}),titleKey:"settings.review.autoAssignReportTasksTitle",descriptionKey:"settings.review.autoAssignReportTasksDescription"})]}),e[8]=g):g=e[8];let x;return e[9]!==i||e[10]!==n?(x=s.jsx(Q,{title:i,description:n,children:g}),e[9]=i,e[10]=n,e[11]=x):x=e[11],x}function st(){const e=y.c(13),t=T(),i=ge("coding_agent_org_mcps");let n;e[0]!==t?(n=t("settings.agentTools.title"),e[0]=t,e[1]=n):n=e[1];let l;e[2]!==t?(l=t("settings.agentTools.description"),e[2]=t,e[3]=l):l=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(u,{flag:"coding_agent_org_mcps",icon:s.jsx(Se,{size:16}),titleKey:"settings.agentTools.orgMcpsTitle",descriptionKey:"settings.agentTools.orgMcpsDescription"}),e[4]=c):c=e[4];let o;e[5]!==i?(o=i?s.jsx(Ie,{}):null,e[5]=i,e[6]=o):o=e[6];let r;e[7]!==o?(r=s.jsxs(H,{children:[c,o]}),e[7]=o,e[8]=r):r=e[8];let g;return e[9]!==n||e[10]!==l||e[11]!==r?(g=s.jsx(Q,{title:n,description:l,children:r}),e[9]=n,e[10]=l,e[11]=r,e[12]=g):g=e[12],g}function Ie(){const e=y.c(2),t=T();let i;return e[0]!==t?(i=s.jsx(pe,{children:n=>{const{reset:l}=n;return s.jsx(xe,{fallback:c=>{const{resetError:o}=c;return s.jsx(U,{title:t("settings.agentTools.orgMcpsPickTitle"),children:s.jsxs("div",{role:"alert",className:"mt-3 flex items-center gap-2",children:[s.jsx("p",{className:"text-sm text-destructive",children:t("settings.agentTools.orgMcpsPickLoadFailed")}),s.jsx(ie,{variant:"outline",size:"sm",onClick:()=>{l(),o()},children:t("common.errorBoundary.tryAgain")})]})})},children:s.jsx(G.Suspense,{fallback:s.jsx(Le,{}),children:s.jsx(We,{})})})}}),e[0]=t,e[1]=i):i=e[1],i}function Le(){const e=y.c(5),t=T();let i;e[0]!==t?(i=t("settings.agentTools.orgMcpsPickTitle"),e[0]=t,e[1]=i):i=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(he,{className:"mt-3 h-24 w-full"}),e[2]=n):n=e[2];let l;return e[3]!==i?(l=s.jsx(U,{title:i,children:n}),e[3]=i,e[4]=l):l=e[4],l}function se(e){return[...e].sort().join("\0")}function Ve(e,t){return[Y.SELF,Y.REGISTRY,Y.COMMUNITY_REGISTRY,Y.DEV_ASSETS,Y.REPORTS].some(i=>i(e)===t)}function We(){const e=y.c(82),t=T(),{org:i}=ue(),n=Fe(),l=Oe(),c=Be(),[o,r]=G.useState(l);let g;e[0]!==l?(g=se(l),e[0]=l,e[1]=g):g=e[1];const[x,j]=G.useState(g),[b,_]=G.useState(""),v=se(l);x!==v&&(j(v),r(l));let d,f,a,h,m;if(e[2]!==n||e[3]!==o||e[4]!==i||e[5]!==b||e[6]!==l){let p;e[12]!==i?(p=K=>!Ve(i.id,K.id),e[12]=i,e[13]=p):p=e[13],a=n.filter(p);const S=b.trim().toLowerCase();m=S?a.filter(K=>`${K.title} ${K.slug??""}`.toLowerCase().includes(S)):a;let w;e[14]!==o?(w=new Set(o),e[14]=o,e[15]=w):w=e[15],f=w;const te=K=>a.some(de=>de.id===K);d=se(o.filter(te))!==se(l.filter(te)),h=m.length>0&&m.every(K=>!f.has(K.id)),e[2]=n,e[3]=o,e[4]=i,e[5]=b,e[6]=l,e[7]=d,e[8]=f,e[9]=a,e[10]=h,e[11]=m}else d=e[7],f=e[8],a=e[9],h=e[10],m=e[11];const k=h;let q;e[16]!==o?(q=(p,S)=>{const w=new Set(p);r(S?o.filter(te=>!w.has(te)):[...new Set([...o,...p])])},e[16]=o,e[17]=q):q=e[17];const E=q;let J;e[18]!==o||e[19]!==a||e[20]!==c||e[21]!==t?(J=()=>c.mutate(o.filter(p=>a.some(S=>S.id===p)),{onSuccess:()=>le.success(t("settings.agentTools.orgMcpsPickSaved")),onError:()=>le.error(t("settings.agentTools.orgMcpsPickFailed"))}),e[18]=o,e[19]=a,e[20]=c,e[21]=t,e[22]=J):J=e[22];const ne=J;let P;e[23]!==t?(P=t("settings.agentTools.orgMcpsPickTitle"),e[23]=t,e[24]=P):P=e[24];let C;e[25]!==t?(C=t("settings.agentTools.orgMcpsPickDescription"),e[25]=t,e[26]=C):C=e[26];let X;e[27]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx(ze,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[27]=X):X=e[27];let Z;e[28]===Symbol.for("react.memo_cache_sentinel")?(Z=p=>_(p.target.value),e[28]=Z):Z=e[28];let M;e[29]!==t?(M=t("settings.agentTools.orgMcpsPickSearch"),e[29]=t,e[30]=M):M=e[30];let $;e[31]!==t?($=t("settings.agentTools.orgMcpsPickSearch"),e[31]=t,e[32]=$):$=e[32];let z;e[33]!==b||e[34]!==M||e[35]!==$?(z=s.jsxs("div",{className:"relative flex-1",children:[X,s.jsx(je,{value:b,onChange:Z,placeholder:M,"aria-label":$,className:"h-8 pl-8 text-xs"})]}),e[33]=b,e[34]=M,e[35]=$,e[36]=z):z=e[36];const oe=m.length===0;let N;e[37]!==k||e[38]!==E||e[39]!==m?(N=()=>E(m.map(He),!k),e[37]=k,e[38]=E,e[39]=m,e[40]=N):N=e[40];let A;e[41]!==k||e[42]!==t?(A=t(k?"settings.agentTools.orgMcpsPickDisableAll":"settings.agentTools.orgMcpsPickEnableAll"),e[41]=k,e[42]=t,e[43]=A):A=e[43];let R;e[44]!==oe||e[45]!==N||e[46]!==A?(R=s.jsx(ie,{variant:"outline",size:"sm",className:"shrink-0",disabled:oe,onClick:N,children:A}),e[44]=oe,e[45]=N,e[46]=A,e[47]=R):R=e[47];let D;e[48]!==z||e[49]!==R?(D=s.jsxs("div",{className:"flex items-center gap-2",children:[z,R]}),e[48]=z,e[49]=R,e[50]=D):D=e[50];let O;e[51]!==f||e[52]!==a.length||e[53]!==E||e[54]!==t||e[55]!==m?(O=a.length===0?s.jsx("p",{className:"p-3 text-xs text-muted-foreground",children:t("settings.agentTools.orgMcpsPickEmpty")}):m.length===0?s.jsx("p",{className:"p-3 text-xs text-muted-foreground",children:t("settings.agentTools.orgMcpsPickNoMatch")}):m.map(p=>{const S=p.title||p.id;return s.jsxs("div",{className:"flex items-center justify-between gap-3 px-3 py-2",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-2.5",children:[s.jsx(Qe,{icon:p.icon,title:S}),s.jsxs("div",{className:"flex min-w-0 flex-col",children:[s.jsx("span",{className:"truncate text-sm leading-tight",children:S}),p.slug&&s.jsx("span",{className:"truncate text-xs text-muted-foreground",children:p.slug})]})]}),s.jsx(ae,{checked:!f.has(p.id),"aria-label":t("settings.agentTools.orgMcpsPickAriaLabel",{name:S}),onCheckedChange:w=>E([p.id],w)})]},p.id)}),e[51]=f,e[52]=a.length,e[53]=E,e[54]=t,e[55]=m,e[56]=O):O=e[56];let B;e[57]!==O?(B=s.jsx("div",{className:"max-h-64 overflow-y-auto surface divide-y divide-border",children:O}),e[57]=O,e[58]=B):B=e[58];const ce=!d||c.isPending;let F;e[59]!==c.isPending||e[60]!==t?(F=c.isPending?t("settings.agentTools.orgMcpsPickSaving"):t("settings.agentTools.orgMcpsPickSave"),e[59]=c.isPending,e[60]=t,e[61]=F):F=e[61];let I;e[62]!==ne||e[63]!==ce||e[64]!==F?(I=s.jsx(ie,{size:"sm",disabled:ce,onClick:ne,children:F}),e[62]=ne,e[63]=ce,e[64]=F,e[65]=I):I=e[65];let L;e[66]!==d||e[67]!==l||e[68]!==c.isPending||e[69]!==t?(L=d&&s.jsx(ie,{variant:"ghost",size:"sm",disabled:c.isPending,onClick:()=>r(l),children:t("settings.agentTools.orgMcpsPickDiscard")}),e[66]=d,e[67]=l,e[68]=c.isPending,e[69]=t,e[70]=L):L=e[70];let V;e[71]!==I||e[72]!==L?(V=s.jsxs("div",{className:"flex items-center gap-2",children:[I,L]}),e[71]=I,e[72]=L,e[73]=V):V=e[73];let W;e[74]!==D||e[75]!==B||e[76]!==V?(W=s.jsxs("div",{className:"mt-3 flex w-full flex-col gap-2",children:[D,B,V]}),e[74]=D,e[75]=B,e[76]=V,e[77]=W):W=e[77];let ee;return e[78]!==W||e[79]!==P||e[80]!==C?(ee=s.jsx(U,{title:P,description:C,children:W}),e[78]=W,e[79]=P,e[80]=C,e[81]=ee):ee=e[81],ee}function He(e){return e.id}function Qe(e){const t=y.c(4),{icon:i,title:n}=e,[l,c]=G.useState(!1);let o;return t[0]!==l||t[1]!==i||t[2]!==n?(o=s.jsx("div",{className:"flex size-7 shrink-0 items-center justify-center overflow-hidden rounded-md border border-border bg-muted/20",children:i&&!l?s.jsx("img",{src:i,alt:"",loading:"lazy",className:"h-full w-full object-cover",onError:()=>c(!0)}):s.jsx("span",{className:"text-2xs font-semibold text-muted-foreground",children:n.charAt(0).toUpperCase()})}),t[0]=l,t[1]=i,t[2]=n,t[3]=o):o=t[3],o}function it(){const e=y.c(8),t=T();let i;e[0]!==t?(i=t("settings.agentTools.chatRuntimeSection"),e[0]=t,e[1]=i):i=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(u,{flag:"chat_harness_sandbox_only",icon:s.jsx(re,{size:16}),titleKey:"settings.agentTools.chatHarnessSandboxOnlyTitle",descriptionKey:"settings.agentTools.chatHarnessSandboxOnlyDescription"}),e[2]=n):n=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(u,{flag:"coding_agents_claude_code",icon:s.jsx(re,{size:16}),titleKey:"settings.agentTools.codingAgentsClaudeCodeTitle",descriptionKey:"settings.agentTools.codingAgentsClaudeCodeDescription"}),e[3]=l):l=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(u,{flag:"chat_harness_codex",icon:s.jsx(re,{size:16}),titleKey:"settings.agentTools.chatHarnessCodexTitle",descriptionKey:"settings.agentTools.chatHarnessCodexDescription"}),e[4]=c):c=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(H,{children:[n,l,c,s.jsx(u,{flag:"voice_mode",icon:s.jsx(Te,{size:16}),titleKey:"settings.voice.title",descriptionKey:"settings.voice.description"})]}),e[5]=o):o=e[5];let r;return e[6]!==i?(r=s.jsx(Q,{title:i,children:o}),e[6]=i,e[7]=r):r=e[7],r}function lt(){const e=y.c(5),t=T();let i;e[0]!==t?(i=t("settings.plan.sectionTitle"),e[0]=t,e[1]=i):i=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(H,{children:s.jsx(u,{flag:"plan_page_enabled",icon:s.jsx(ke,{size:16}),titleKey:"settings.plan.pageTitle",descriptionKey:"settings.plan.pageDescription"})}),e[2]=n):n=e[2];let l;return e[3]!==i?(l=s.jsx(Q,{title:i,children:n}),e[3]=i,e[4]=l):l=e[4],l}function nt(){const e=y.c(7),t=T();let i;e[0]!==t?(i=t("settings.blog.sectionTitle"),e[0]=t,e[1]=i):i=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(u,{flag:"blog_view_enabled",icon:s.jsx(be,{size:16}),titleKey:"settings.blogView.title",descriptionKey:"settings.blogView.description"}),e[2]=n):n=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(u,{flag:"blog_ai_enabled",icon:s.jsx(we,{size:16}),titleKey:"settings.blog.aiTitle",descriptionKey:"settings.blog.aiDescription"}),e[3]=l):l=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsxs(H,{children:[n,l,s.jsx(u,{flag:"hide_default_blog_blocks",icon:s.jsx(Ke,{size:16}),titleKey:"settings.blogBlocks.title",descriptionKey:"settings.blogBlocks.description"})]}),e[4]=c):c=e[4];let o;return e[5]!==i?(o=s.jsx(Q,{title:i,children:c}),e[5]=i,e[6]=o):o=e[6],o}function ot(e){const t=y.c(29),{manageable:i}=e,n=i===void 0?!1:i,l=T(),c=ge("new_blocks_editor"),o=Ne();let r;t[0]!==l?(r=l("sidebar.projectNav.siteEditor"),t[0]=l,t[1]=r):r=t[1];let g;t[2]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(Ee,{size:16}),t[2]=g):g=t[2];let x;t[3]!==l?(x=l("settings.blocksEditor.title"),t[3]=l,t[4]=x):x=t[4];let j;t[5]!==l?(j=l("settings.blocksEditor.description"),t[5]=l,t[6]=j):j=t[6];const b=o.isPending;let _;t[7]!==l?(_=l("settings.blocksEditor.title"),t[7]=l,t[8]=_):_=t[8];let v;t[9]!==o||t[10]!==l?(v=k=>{fe("preferences_blocks_editor_toggled",{enabled:k}),o.mutate(k,{onError:()=>le.error(l("settings.review.updateError"))})},t[9]=o,t[10]=l,t[11]=v):v=t[11];let d;t[12]!==c||t[13]!==o.isPending||t[14]!==_||t[15]!==v?(d=s.jsx(ae,{checked:c,disabled:b,"aria-label":_,onCheckedChange:v}),t[12]=c,t[13]=o.isPending,t[14]=_,t[15]=v,t[16]=d):d=t[16];let f;t[17]!==x||t[18]!==j||t[19]!==d?(f=s.jsx(U,{icon:g,title:x,description:j,action:d}),t[17]=x,t[18]=j,t[19]=d,t[20]=f):f=t[20];let a;t[21]!==n?(a=n&&s.jsxs(s.Fragment,{children:[s.jsx(u,{flag:"site_apps_install_enabled",icon:s.jsx(Pe,{size:16}),titleKey:"settings.siteAppsInstall.title",descriptionKey:"settings.siteAppsInstall.description"}),s.jsx(u,{flag:"multi_app_preview",icon:s.jsx(Ce,{size:16}),titleKey:"settings.multiAppPreview.title",descriptionKey:"settings.multiAppPreview.description"}),s.jsx(u,{flag:"cms_auto_commit",icon:s.jsx(Me,{size:16}),titleKey:"settings.cmsAutoCommit.title",descriptionKey:"settings.cmsAutoCommit.description"})]}),t[21]=n,t[22]=a):a=t[22];let h;t[23]!==f||t[24]!==a?(h=s.jsxs(H,{children:[f,a]}),t[23]=f,t[24]=a,t[25]=h):h=t[25];let m;return t[26]!==h||t[27]!==r?(m=s.jsx(Q,{title:r,children:h}),t[26]=h,t[27]=r,t[28]=m):m=t[28],m}function Ye(){const e=y.c(3),t=Ae();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx($e,{size:16}),e[0]=i):i=e[0];let n;return e[1]!==t?(n=s.jsx(u,{flag:"reviewer_enabled",icon:i,titleKey:"settings.review.reviewerTitle",descriptionKey:"settings.review.reviewerDescription",enabled:t}),e[1]=t,e[2]=n):n=e[2],n}function Ge(){const e=y.c(3),t=Re();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(me,{size:16}),e[0]=i):i=e[0];let n;return e[1]!==t?(n=s.jsx(u,{flag:"auto_resolve_conflicts",icon:i,titleKey:"settings.review.autoResolveConflictsTitle",descriptionKey:"settings.review.autoResolveConflictsDescription",enabled:t}),e[1]=t,e[2]=n):n=e[2],n}function u(e){const t=y.c(23),{flag:i,icon:n,titleKey:l,descriptionKey:c,enabled:o}=e,r=T(),g=ge(i),x=o??g,j=De();let b;t[0]!==r||t[1]!==l?(b=r(l),t[0]=r,t[1]=l,t[2]=b):b=t[2];let _;t[3]!==c||t[4]!==r?(_=r(c),t[3]=c,t[4]=r,t[5]=_):_=t[5];const v=j.isPending;let d;t[6]!==r||t[7]!==l?(d=r(l),t[6]=r,t[7]=l,t[8]=d):d=t[8];let f;t[9]!==i||t[10]!==j||t[11]!==r?(f=m=>j.mutate(i,m,{onError:()=>le.error(r("settings.review.updateError"))}),t[9]=i,t[10]=j,t[11]=r,t[12]=f):f=t[12];let a;t[13]!==x||t[14]!==j.isPending||t[15]!==d||t[16]!==f?(a=s.jsx(ae,{checked:x,disabled:v,"aria-label":d,onCheckedChange:f}),t[13]=x,t[14]=j.isPending,t[15]=d,t[16]=f,t[17]=a):a=t[17];let h;return t[18]!==n||t[19]!==b||t[20]!==_||t[21]!==a?(h=s.jsx(U,{icon:n,title:b,description:_,action:a}),t[18]=n,t[19]=b,t[20]=_,t[21]=a,t[22]=h):h=t[22],h}export{st as A,nt as B,it as C,lt as P,tt as R,ot as a};
|
|
1
|
+
import{c as y,b as T,j as s,gi as H,gW as Q,E as fe,t as le,gj as U,dO as me,Q as pe,R as xe,r as G,B as ie,a6 as ue,e0 as he,I as je,W as Y}from"./index-DOmkLjR6.js";import{S as ae}from"./switch-DcutR8yX.js";import{n as be}from"./BookOpen01-CniP2FYm.js";import{g as _e,j as ye,m as ve,f as Se,d as re,k as Te,i as ke,s as we,e as Ke,b as Ee,l as Pe,n as Ce,h as Me,c as $e,a as ze}from"./UserSquare-CHpQ373y.js";import{u as ge,j as Ne,f as Ae,k as Re,l as De,m as Oe,n as Be}from"./use-organization-settings-MZx2Y_vn.js";import{b as Fe}from"./use-connection-CzFofzRE.js";function tt(){const e=y.c(12),t=T();let i;e[0]!==t?(i=t("settings.review.title"),e[0]=t,e[1]=i):i=e[1];let n;e[2]!==t?(n=t("settings.review.description"),e[2]=t,e[3]=n):n=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Ye,{}),e[4]=l):l=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(u,{flag:"cheap_reviewer_model",icon:s.jsx(_e,{size:16}),titleKey:"settings.review.cheapReviewerModelTitle",descriptionKey:"settings.review.cheapReviewerModelDescription"}),e[5]=c):c=e[5];let o,r;e[6]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(u,{flag:"auto_merge",icon:s.jsx(ye,{size:16}),titleKey:"settings.review.autoMergeTitle",descriptionKey:"settings.review.autoMergeDescription"}),r=s.jsx(Ge,{}),e[6]=o,e[7]=r):(o=e[6],r=e[7]);let g;e[8]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsxs(H,{children:[l,c,o,r,s.jsx(u,{flag:"auto_assign_report_tasks_to_super_agent",icon:s.jsx(ve,{size:16}),titleKey:"settings.review.autoAssignReportTasksTitle",descriptionKey:"settings.review.autoAssignReportTasksDescription"})]}),e[8]=g):g=e[8];let x;return e[9]!==i||e[10]!==n?(x=s.jsx(Q,{title:i,description:n,children:g}),e[9]=i,e[10]=n,e[11]=x):x=e[11],x}function st(){const e=y.c(13),t=T(),i=ge("coding_agent_org_mcps");let n;e[0]!==t?(n=t("settings.agentTools.title"),e[0]=t,e[1]=n):n=e[1];let l;e[2]!==t?(l=t("settings.agentTools.description"),e[2]=t,e[3]=l):l=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(u,{flag:"coding_agent_org_mcps",icon:s.jsx(Se,{size:16}),titleKey:"settings.agentTools.orgMcpsTitle",descriptionKey:"settings.agentTools.orgMcpsDescription"}),e[4]=c):c=e[4];let o;e[5]!==i?(o=i?s.jsx(Ie,{}):null,e[5]=i,e[6]=o):o=e[6];let r;e[7]!==o?(r=s.jsxs(H,{children:[c,o]}),e[7]=o,e[8]=r):r=e[8];let g;return e[9]!==n||e[10]!==l||e[11]!==r?(g=s.jsx(Q,{title:n,description:l,children:r}),e[9]=n,e[10]=l,e[11]=r,e[12]=g):g=e[12],g}function Ie(){const e=y.c(2),t=T();let i;return e[0]!==t?(i=s.jsx(pe,{children:n=>{const{reset:l}=n;return s.jsx(xe,{fallback:c=>{const{resetError:o}=c;return s.jsx(U,{title:t("settings.agentTools.orgMcpsPickTitle"),children:s.jsxs("div",{role:"alert",className:"mt-3 flex items-center gap-2",children:[s.jsx("p",{className:"text-sm text-destructive",children:t("settings.agentTools.orgMcpsPickLoadFailed")}),s.jsx(ie,{variant:"outline",size:"sm",onClick:()=>{l(),o()},children:t("common.errorBoundary.tryAgain")})]})})},children:s.jsx(G.Suspense,{fallback:s.jsx(Le,{}),children:s.jsx(We,{})})})}}),e[0]=t,e[1]=i):i=e[1],i}function Le(){const e=y.c(5),t=T();let i;e[0]!==t?(i=t("settings.agentTools.orgMcpsPickTitle"),e[0]=t,e[1]=i):i=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(he,{className:"mt-3 h-24 w-full"}),e[2]=n):n=e[2];let l;return e[3]!==i?(l=s.jsx(U,{title:i,children:n}),e[3]=i,e[4]=l):l=e[4],l}function se(e){return[...e].sort().join("\0")}function Ve(e,t){return[Y.SELF,Y.REGISTRY,Y.COMMUNITY_REGISTRY,Y.DEV_ASSETS,Y.REPORTS].some(i=>i(e)===t)}function We(){const e=y.c(82),t=T(),{org:i}=ue(),n=Fe(),l=Oe(),c=Be(),[o,r]=G.useState(l);let g;e[0]!==l?(g=se(l),e[0]=l,e[1]=g):g=e[1];const[x,j]=G.useState(g),[b,_]=G.useState(""),v=se(l);x!==v&&(j(v),r(l));let d,f,a,h,m;if(e[2]!==n||e[3]!==o||e[4]!==i||e[5]!==b||e[6]!==l){let p;e[12]!==i?(p=K=>!Ve(i.id,K.id),e[12]=i,e[13]=p):p=e[13],a=n.filter(p);const S=b.trim().toLowerCase();m=S?a.filter(K=>`${K.title} ${K.slug??""}`.toLowerCase().includes(S)):a;let w;e[14]!==o?(w=new Set(o),e[14]=o,e[15]=w):w=e[15],f=w;const te=K=>a.some(de=>de.id===K);d=se(o.filter(te))!==se(l.filter(te)),h=m.length>0&&m.every(K=>!f.has(K.id)),e[2]=n,e[3]=o,e[4]=i,e[5]=b,e[6]=l,e[7]=d,e[8]=f,e[9]=a,e[10]=h,e[11]=m}else d=e[7],f=e[8],a=e[9],h=e[10],m=e[11];const k=h;let q;e[16]!==o?(q=(p,S)=>{const w=new Set(p);r(S?o.filter(te=>!w.has(te)):[...new Set([...o,...p])])},e[16]=o,e[17]=q):q=e[17];const E=q;let J;e[18]!==o||e[19]!==a||e[20]!==c||e[21]!==t?(J=()=>c.mutate(o.filter(p=>a.some(S=>S.id===p)),{onSuccess:()=>le.success(t("settings.agentTools.orgMcpsPickSaved")),onError:()=>le.error(t("settings.agentTools.orgMcpsPickFailed"))}),e[18]=o,e[19]=a,e[20]=c,e[21]=t,e[22]=J):J=e[22];const ne=J;let P;e[23]!==t?(P=t("settings.agentTools.orgMcpsPickTitle"),e[23]=t,e[24]=P):P=e[24];let C;e[25]!==t?(C=t("settings.agentTools.orgMcpsPickDescription"),e[25]=t,e[26]=C):C=e[26];let X;e[27]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx(ze,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[27]=X):X=e[27];let Z;e[28]===Symbol.for("react.memo_cache_sentinel")?(Z=p=>_(p.target.value),e[28]=Z):Z=e[28];let M;e[29]!==t?(M=t("settings.agentTools.orgMcpsPickSearch"),e[29]=t,e[30]=M):M=e[30];let $;e[31]!==t?($=t("settings.agentTools.orgMcpsPickSearch"),e[31]=t,e[32]=$):$=e[32];let z;e[33]!==b||e[34]!==M||e[35]!==$?(z=s.jsxs("div",{className:"relative flex-1",children:[X,s.jsx(je,{value:b,onChange:Z,placeholder:M,"aria-label":$,className:"h-8 pl-8 text-xs"})]}),e[33]=b,e[34]=M,e[35]=$,e[36]=z):z=e[36];const oe=m.length===0;let N;e[37]!==k||e[38]!==E||e[39]!==m?(N=()=>E(m.map(He),!k),e[37]=k,e[38]=E,e[39]=m,e[40]=N):N=e[40];let A;e[41]!==k||e[42]!==t?(A=t(k?"settings.agentTools.orgMcpsPickDisableAll":"settings.agentTools.orgMcpsPickEnableAll"),e[41]=k,e[42]=t,e[43]=A):A=e[43];let R;e[44]!==oe||e[45]!==N||e[46]!==A?(R=s.jsx(ie,{variant:"outline",size:"sm",className:"shrink-0",disabled:oe,onClick:N,children:A}),e[44]=oe,e[45]=N,e[46]=A,e[47]=R):R=e[47];let D;e[48]!==z||e[49]!==R?(D=s.jsxs("div",{className:"flex items-center gap-2",children:[z,R]}),e[48]=z,e[49]=R,e[50]=D):D=e[50];let O;e[51]!==f||e[52]!==a.length||e[53]!==E||e[54]!==t||e[55]!==m?(O=a.length===0?s.jsx("p",{className:"p-3 text-xs text-muted-foreground",children:t("settings.agentTools.orgMcpsPickEmpty")}):m.length===0?s.jsx("p",{className:"p-3 text-xs text-muted-foreground",children:t("settings.agentTools.orgMcpsPickNoMatch")}):m.map(p=>{const S=p.title||p.id;return s.jsxs("div",{className:"flex items-center justify-between gap-3 px-3 py-2",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-2.5",children:[s.jsx(Qe,{icon:p.icon,title:S}),s.jsxs("div",{className:"flex min-w-0 flex-col",children:[s.jsx("span",{className:"truncate text-sm leading-tight",children:S}),p.slug&&s.jsx("span",{className:"truncate text-xs text-muted-foreground",children:p.slug})]})]}),s.jsx(ae,{checked:!f.has(p.id),"aria-label":t("settings.agentTools.orgMcpsPickAriaLabel",{name:S}),onCheckedChange:w=>E([p.id],w)})]},p.id)}),e[51]=f,e[52]=a.length,e[53]=E,e[54]=t,e[55]=m,e[56]=O):O=e[56];let B;e[57]!==O?(B=s.jsx("div",{className:"max-h-64 overflow-y-auto surface divide-y divide-border",children:O}),e[57]=O,e[58]=B):B=e[58];const ce=!d||c.isPending;let F;e[59]!==c.isPending||e[60]!==t?(F=c.isPending?t("settings.agentTools.orgMcpsPickSaving"):t("settings.agentTools.orgMcpsPickSave"),e[59]=c.isPending,e[60]=t,e[61]=F):F=e[61];let I;e[62]!==ne||e[63]!==ce||e[64]!==F?(I=s.jsx(ie,{size:"sm",disabled:ce,onClick:ne,children:F}),e[62]=ne,e[63]=ce,e[64]=F,e[65]=I):I=e[65];let L;e[66]!==d||e[67]!==l||e[68]!==c.isPending||e[69]!==t?(L=d&&s.jsx(ie,{variant:"ghost",size:"sm",disabled:c.isPending,onClick:()=>r(l),children:t("settings.agentTools.orgMcpsPickDiscard")}),e[66]=d,e[67]=l,e[68]=c.isPending,e[69]=t,e[70]=L):L=e[70];let V;e[71]!==I||e[72]!==L?(V=s.jsxs("div",{className:"flex items-center gap-2",children:[I,L]}),e[71]=I,e[72]=L,e[73]=V):V=e[73];let W;e[74]!==D||e[75]!==B||e[76]!==V?(W=s.jsxs("div",{className:"mt-3 flex w-full flex-col gap-2",children:[D,B,V]}),e[74]=D,e[75]=B,e[76]=V,e[77]=W):W=e[77];let ee;return e[78]!==W||e[79]!==P||e[80]!==C?(ee=s.jsx(U,{title:P,description:C,children:W}),e[78]=W,e[79]=P,e[80]=C,e[81]=ee):ee=e[81],ee}function He(e){return e.id}function Qe(e){const t=y.c(4),{icon:i,title:n}=e,[l,c]=G.useState(!1);let o;return t[0]!==l||t[1]!==i||t[2]!==n?(o=s.jsx("div",{className:"flex size-7 shrink-0 items-center justify-center overflow-hidden rounded-md border border-border bg-muted/20",children:i&&!l?s.jsx("img",{src:i,alt:"",loading:"lazy",className:"h-full w-full object-cover",onError:()=>c(!0)}):s.jsx("span",{className:"text-2xs font-semibold text-muted-foreground",children:n.charAt(0).toUpperCase()})}),t[0]=l,t[1]=i,t[2]=n,t[3]=o):o=t[3],o}function it(){const e=y.c(8),t=T();let i;e[0]!==t?(i=t("settings.agentTools.chatRuntimeSection"),e[0]=t,e[1]=i):i=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(u,{flag:"chat_harness_sandbox_only",icon:s.jsx(re,{size:16}),titleKey:"settings.agentTools.chatHarnessSandboxOnlyTitle",descriptionKey:"settings.agentTools.chatHarnessSandboxOnlyDescription"}),e[2]=n):n=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(u,{flag:"coding_agents_claude_code",icon:s.jsx(re,{size:16}),titleKey:"settings.agentTools.codingAgentsClaudeCodeTitle",descriptionKey:"settings.agentTools.codingAgentsClaudeCodeDescription"}),e[3]=l):l=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(u,{flag:"chat_harness_codex",icon:s.jsx(re,{size:16}),titleKey:"settings.agentTools.chatHarnessCodexTitle",descriptionKey:"settings.agentTools.chatHarnessCodexDescription"}),e[4]=c):c=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(H,{children:[n,l,c,s.jsx(u,{flag:"voice_mode",icon:s.jsx(Te,{size:16}),titleKey:"settings.voice.title",descriptionKey:"settings.voice.description"})]}),e[5]=o):o=e[5];let r;return e[6]!==i?(r=s.jsx(Q,{title:i,children:o}),e[6]=i,e[7]=r):r=e[7],r}function lt(){const e=y.c(5),t=T();let i;e[0]!==t?(i=t("settings.plan.sectionTitle"),e[0]=t,e[1]=i):i=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(H,{children:s.jsx(u,{flag:"plan_page_enabled",icon:s.jsx(ke,{size:16}),titleKey:"settings.plan.pageTitle",descriptionKey:"settings.plan.pageDescription"})}),e[2]=n):n=e[2];let l;return e[3]!==i?(l=s.jsx(Q,{title:i,children:n}),e[3]=i,e[4]=l):l=e[4],l}function nt(){const e=y.c(7),t=T();let i;e[0]!==t?(i=t("settings.blog.sectionTitle"),e[0]=t,e[1]=i):i=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(u,{flag:"blog_view_enabled",icon:s.jsx(be,{size:16}),titleKey:"settings.blogView.title",descriptionKey:"settings.blogView.description"}),e[2]=n):n=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(u,{flag:"blog_ai_enabled",icon:s.jsx(we,{size:16}),titleKey:"settings.blog.aiTitle",descriptionKey:"settings.blog.aiDescription"}),e[3]=l):l=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsxs(H,{children:[n,l,s.jsx(u,{flag:"hide_default_blog_blocks",icon:s.jsx(Ke,{size:16}),titleKey:"settings.blogBlocks.title",descriptionKey:"settings.blogBlocks.description"})]}),e[4]=c):c=e[4];let o;return e[5]!==i?(o=s.jsx(Q,{title:i,children:c}),e[5]=i,e[6]=o):o=e[6],o}function ot(e){const t=y.c(29),{manageable:i}=e,n=i===void 0?!1:i,l=T(),c=ge("new_blocks_editor"),o=Ne();let r;t[0]!==l?(r=l("sidebar.projectNav.siteEditor"),t[0]=l,t[1]=r):r=t[1];let g;t[2]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(Ee,{size:16}),t[2]=g):g=t[2];let x;t[3]!==l?(x=l("settings.blocksEditor.title"),t[3]=l,t[4]=x):x=t[4];let j;t[5]!==l?(j=l("settings.blocksEditor.description"),t[5]=l,t[6]=j):j=t[6];const b=o.isPending;let _;t[7]!==l?(_=l("settings.blocksEditor.title"),t[7]=l,t[8]=_):_=t[8];let v;t[9]!==o||t[10]!==l?(v=k=>{fe("preferences_blocks_editor_toggled",{enabled:k}),o.mutate(k,{onError:()=>le.error(l("settings.review.updateError"))})},t[9]=o,t[10]=l,t[11]=v):v=t[11];let d;t[12]!==c||t[13]!==o.isPending||t[14]!==_||t[15]!==v?(d=s.jsx(ae,{checked:c,disabled:b,"aria-label":_,onCheckedChange:v}),t[12]=c,t[13]=o.isPending,t[14]=_,t[15]=v,t[16]=d):d=t[16];let f;t[17]!==x||t[18]!==j||t[19]!==d?(f=s.jsx(U,{icon:g,title:x,description:j,action:d}),t[17]=x,t[18]=j,t[19]=d,t[20]=f):f=t[20];let a;t[21]!==n?(a=n&&s.jsxs(s.Fragment,{children:[s.jsx(u,{flag:"site_apps_install_enabled",icon:s.jsx(Pe,{size:16}),titleKey:"settings.siteAppsInstall.title",descriptionKey:"settings.siteAppsInstall.description"}),s.jsx(u,{flag:"multi_app_preview",icon:s.jsx(Ce,{size:16}),titleKey:"settings.multiAppPreview.title",descriptionKey:"settings.multiAppPreview.description"}),s.jsx(u,{flag:"cms_auto_commit",icon:s.jsx(Me,{size:16}),titleKey:"settings.cmsAutoCommit.title",descriptionKey:"settings.cmsAutoCommit.description"})]}),t[21]=n,t[22]=a):a=t[22];let h;t[23]!==f||t[24]!==a?(h=s.jsxs(H,{children:[f,a]}),t[23]=f,t[24]=a,t[25]=h):h=t[25];let m;return t[26]!==h||t[27]!==r?(m=s.jsx(Q,{title:r,children:h}),t[26]=h,t[27]=r,t[28]=m):m=t[28],m}function Ye(){const e=y.c(3),t=Ae();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx($e,{size:16}),e[0]=i):i=e[0];let n;return e[1]!==t?(n=s.jsx(u,{flag:"reviewer_enabled",icon:i,titleKey:"settings.review.reviewerTitle",descriptionKey:"settings.review.reviewerDescription",enabled:t}),e[1]=t,e[2]=n):n=e[2],n}function Ge(){const e=y.c(3),t=Re();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(me,{size:16}),e[0]=i):i=e[0];let n;return e[1]!==t?(n=s.jsx(u,{flag:"auto_resolve_conflicts",icon:i,titleKey:"settings.review.autoResolveConflictsTitle",descriptionKey:"settings.review.autoResolveConflictsDescription",enabled:t}),e[1]=t,e[2]=n):n=e[2],n}function u(e){const t=y.c(23),{flag:i,icon:n,titleKey:l,descriptionKey:c,enabled:o}=e,r=T(),g=ge(i),x=o??g,j=De();let b;t[0]!==r||t[1]!==l?(b=r(l),t[0]=r,t[1]=l,t[2]=b):b=t[2];let _;t[3]!==c||t[4]!==r?(_=r(c),t[3]=c,t[4]=r,t[5]=_):_=t[5];const v=j.isPending;let d;t[6]!==r||t[7]!==l?(d=r(l),t[6]=r,t[7]=l,t[8]=d):d=t[8];let f;t[9]!==i||t[10]!==j||t[11]!==r?(f=m=>j.mutate(i,m,{onError:()=>le.error(r("settings.review.updateError"))}),t[9]=i,t[10]=j,t[11]=r,t[12]=f):f=t[12];let a;t[13]!==x||t[14]!==j.isPending||t[15]!==d||t[16]!==f?(a=s.jsx(ae,{checked:x,disabled:v,"aria-label":d,onCheckedChange:f}),t[13]=x,t[14]=j.isPending,t[15]=d,t[16]=f,t[17]=a):a=t[17];let h;return t[18]!==n||t[19]!==b||t[20]!==_||t[21]!==a?(h=s.jsx(U,{icon:n,title:b,description:_,action:a}),t[18]=n,t[19]=b,t[20]=_,t[21]=a,t[22]=h):h=t[22],h}export{st as A,nt as B,it as C,lt as P,tt as R,ot as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a6 as I,hl as N,ax as L,i as _,K as B}from"./index-
|
|
1
|
+
import{a6 as I,hl as N,ax as L,i as _,K as B}from"./index-DOmkLjR6.js";const v="connections",d="*",m="!";function p(e){return`${m}${e}`}function T(e){return e.startsWith(m)?e.slice(m.length):null}function w(e){if(e.includes(p(d)))return{kind:"only",names:[]};const t=new Set,r=new Set;for(const n of e){const l=T(n);l!==null?t.add(l):n!==d&&r.add(n)}return e.includes(d)?t.size===0?{kind:"all"}:{kind:"except",names:[...t]}:{kind:"only",names:[...r].filter(n=>!t.has(n))}}function x(e){return[d,...e.names.map(p)]}const O="projects";function D(e){if(!e)return null;const t=e[O];return Array.isArray(t)?t:null}function K(e){return e===null?{kind:"all"}:w(e)}const A=[{value:"owner",label:"Owner",isBuiltin:!0},{value:"admin",label:"Admin",isBuiltin:!0},{value:"user",label:"User",isBuiltin:!0}];function F(e){return e.replace(/-/g," ").replace(/\b\w/g,t=>t.toUpperCase())}function k(e){if(!e)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const t=[];let r=!1;const n=[];let l=!1;const c=new Set;let a=!1,i=0,f=!1;for(const[o,s]of Object.entries(e)){if(o==="self"){s.includes("*")?r=!0:t.push(...s);continue}if(o==="models"){s.includes("*:*")?f=!0:i=s.length;continue}if(o!==O){if(o===v){w(s).kind!=="only"&&(l=!0,a=!0);continue}if(o==="*"){if(l=!0,s.includes("*"))a=!0;else for(const u of s)c.add(u);continue}if(n.push(o),s.includes("*"))a=!0;else for(const u of s)c.add(u)}}return{staticPermissions:t,allowsAllStaticPermissions:r,connectionIds:n,allowsAllConnections:l,toolNames:Array.from(c),allowsAllTools:a,modelCount:i,allowsAllModels:f}}function U(){const{locator:e}=I(),t=N(),{isPrivileged:r}=L(),{data:n,isLoading:l,error:c,refetch:a}=_({queryKey:B.organizationRoles(e),queryFn:async()=>{try{const o=await t.organization.listRoles();return o?.error?(console.error("[useOrganizationRoles] API error:",o.error),[]):o?.data??[]}catch(o){return console.error("[useOrganizationRoles] Fetch error:",o),[]}},enabled:r,staleTime:3e4}),i=A.map(o=>({role:o.value,label:o.label,isBuiltin:o.isBuiltin}));if(n&&Array.isArray(n))for(const o of n){const s=o.role;if(!s||A.some(E=>E.value===s))continue;const{staticPermissions:u,allowsAllStaticPermissions:g,connectionIds:P,allowsAllConnections:h,toolNames:S,allowsAllTools:C,modelCount:y,allowsAllModels:b}=k(o.permission);i.push({id:o.id,role:s,label:F(s),isBuiltin:!1,permission:o.permission??void 0,staticPermissionCount:g?-1:u.length,allowsAllStaticPermissions:g,connectionCount:h?-1:P.length,allowsAllConnections:h,toolCount:C?-1:S.length,allowsAllTools:C,modelCount:b?-1:y,allowsAllModels:b})}const f=i.filter(o=>!o.isBuiltin);return{roles:i,customRoles:f,builtinRoles:i.filter(o=>o.isBuiltin),isLoading:l,error:c,refetch:a}}const R=["bg-chart-1","bg-chart-2","bg-chart-3","bg-chart-4","bg-chart-5"],z={owner:"bg-destructive",admin:"bg-chart-1",user:"bg-success"};function M(e){if(!e)return"bg-muted-foreground";let t=0;for(let n=0;n<e.length;n++){const l=e.charCodeAt(n);t=(t<<5)-t+l,t=t&t}const r=Math.abs(t)%R.length;return R[r]}function Y(e,t){return t?z[e]??"bg-muted-foreground":M(e)}export{v as C,O as P,M as a,d as b,D as c,p as d,w as e,Y as g,x as l,K as p,U as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aH as qe,bC as ae,aI as W,cp as Ge,dA as Xe,c as Y,a6 as Ye,hl as He,i as nt,j as s,b as ee,q as it,r as F,aG as Pt,aF as Dt,e as rt,t as Le,K as Ne,E as $e,dN as Lt,C as Mt,n as se,m as q,ah as at,B as re,P as wt,h as we,gW as et,gi as tt,gj as st,a7 as yt,hh as ct,o as dt,b5 as lt,au as vt,aP as mt,aO as ut,aJ as ft,aK as gt,aL as _t,aM as Et,b9 as Tt,aN as At,ax as Gt,u as It,i6 as ht,ia as kt,R as Bt,d as Ut,_ as Kt,X as Vt,Z as Ft,Y as zt}from"./index-DOmkLjR6.js";import{g as Rt,a as Yt,P as Ke,l as Ht,b as $t,C as Ve,d as Qt,p as Zt,c as Jt,e as Wt,u as qt}from"./role-color-Ba9fsk3G.js";import{B as Me}from"./badge-D4SppS4a.js";import{a as Xt}from"./SwitchHorizontal01-BgC-HYh4.js";import{s as Fe}from"./Plus-DeLQd6Zk.js";import{s as es}from"./Trash01-BisimWOO.js";import{C as ts}from"./collection-table-wrapper-Dmac7M7W.js";import{E as ot}from"./empty-state-B4S8Q1Lp.js";import{S as Qe}from"./search-input-h5VjG2Lq.js";import{P as pt,D as xt}from"./ai-providers-logos-DD3qZ33J.js";import{a as ss}from"./tool-set-selector-D9HqzZch.js";import{b as St}from"./use-connection-CzFofzRE.js";import{d as ls}from"./repository-binding-C2GVWGhh.js";import{u as os,h as ns}from"./use-ai-providers-MpAGOvVD.js";import{C as Ze}from"./checkbox-C_A3I8PZ.js";import{S as ce}from"./switch-DcutR8yX.js";import{b as be,c as je,T as Pe,a as De}from"./tooltip-xlc4BEJV.js";import{I as Ot}from"./integration-icon-C86ALwAW.js";import{P as is}from"./project-icon-D4vpZvK_.js";import{s as rs}from"./use-project-scope-_jTbtVSm.js";import{t as as}from"./Globe04-BBjGUuck.js";import{t as cs}from"./ChevronDown-CgFdozOH.js";import{b3 as ds,k as ms}from"./agent-icon-Dm6RpqF8.js";import{A as us}from"./access-gate-CSi5AK6V.js";import"./table-B6sCrOds.js";import"./ArrowUp-BEEJnhdb.js";import"./SearchMd-DkgqPnqC.js";import"./use-infinite-scroll-BMFZf9cG.js";import"./ArrowLeft-Cd0NVNmx.js";import"./useSuspenseInfiniteQuery-CILmKaBH.js";import"./infiniteQueryObserver-Tiyzq5P5.js";import"./use-mcp-client-yVW1OfAl.js";import"./auth-B3rll25Q.js";import"./collection-search-CsTBV1HW.js";import"./connection-D7HLw2dv.js";import"./url-slug-B_jTfiQ_.js";import"./Minus-CsrGKORi.js";import"./index-Chehsr0o.js";import"./LinkBroken01-BfDrOTcX.js";import"./AlertCircle-BnvM2zPn.js";import"./UserCheck01-DladGbjD.js";import"./Tool01-CTybRVg-.js";import"./ArrowRight-CJz5gOCD.js";import"./BookOpen01-CniP2FYm.js";import"./CheckCircle-j4c_X-af.js";import"./ChevronSelectorVertical-yXbEsDqn.js";import"./ChevronUp-DHTjh0Y0.js";import"./UserSquare-CHpQ373y.js";import"./CreditCard01-D5GOo7iv.js";import"./File02-UWhgjmWr.js";import"./MessageCircle01-DEM19Mwq.js";import"./Eye-C32r2IAs.js";import"./Fingerprint04-gCgCsnUd.js";import"./Image01-DDkJ9Dy9.js";import"./Key01-FL089-X0.js";import"./LayoutLeft-QRmxiAYs.js";import"./Monitor01-QolCBWSs.js";import"./Sun-Bc2vUXCs.js";import"./Play-vxTYqc4m.js";import"./ShoppingBag01-s29quf7C.js";import"./Upload01-Do_OoIek.js";import"./Users01-B3OmPtEM.js";import"./XClose-CVMqN_gP.js";import"./Zap-4V-BwSiv.js";import"./capability-load-error-DgNMLQdO.js";const Je="basic-usage",We=[{id:Je,label:"Basic Usage",description:"Tools all org members can access by default",section:"Basic Usage",tools:["CODEX_SUBSCRIPTION_CONNECT","CODEX_SUBSCRIPTION_STATUS","SUBSCRIPTION_USAGE_GET","CODEX_SUBSCRIPTION_DISCONNECT","CODEX_SUBSCRIPTION_SYNC","COLLECTION_CONNECTIONS_LIST","COLLECTION_CONNECTIONS_GET","CONNECTION_TEST","CONNECTION_TOOLS_SEARCH","CONNECTION_TOOL_CALL","COLLECTION_VIRTUAL_MCP_LIST","COLLECTION_VIRTUAL_MCP_GET","VIRTUAL_MCP_LAST_USED_LIST","SIDEBAR_GET","SIDEBAR_PREFERENCES_SET","PROJECT_FOLDER_ENSURE","AUTOMATION_GET","AUTOMATION_LIST","AUTOMATION_RUN_STATS","AI_PROVIDERS_LIST","AI_PROVIDERS_LIST_MODELS","AI_PROVIDERS_ACTIVE","AI_PROVIDER_KEY_LIST","AI_PROVIDER_CREDITS","AI_PLAN_ENTITLEMENTS","AI_PLAN_LIST","ORGANIZATION_BILLING_PLAN_PRICES","AI_PROVIDER_TOPUP_URL","LIST_OBJECTS","GET_OBJECT_METADATA","GET_PRESIGNED_URL","PUT_PRESIGNED_URL","FILE_CONFIG_LIST","FILE_OBJECTS_LIST","ORG_REPO_SYNC_LIST","SANDBOX_START","SANDBOX_DELETE","THREAD_SANDBOX_START","REPOSITORY_SEARCH_BRANCHES","GIT_PROVIDER_CAPABILITIES","GIT_ACCOUNT_LIST","REPOSITORY_LIST","REPOSITORY_SEARCH","CHANGE_REQUEST_STATE","CHANGE_REQUEST_LAST_MERGED","CHANGE_REQUEST_LIST_OPEN","CHANGE_REQUEST_CHECK_LOG","GLOBAL_SEARCH","ORGANIZATION_SETTINGS_GET","USER_GET","ORGANIZATION_HAS_SITE","ORGANIZATION_BLOCKS_EDITOR_SET","ORGANIZATION_PLAN_OBJECTIVE_SET","ORGANIZATION_PLAN_OBJECTIVE_FIND","COLLECTION_THREADS_CREATE","COLLECTION_THREADS_LIST","COLLECTION_THREADS_GET","COLLECTION_THREADS_UPDATE","COLLECTION_THREADS_DELETE","COLLECTION_THREAD_MESSAGES_LIST","TASK_BOARD_ITEM_CREATE","TASK_BOARD_ITEM_LIST","TASK_BOARD_ITEM_UPDATE","TASK_BOARD_ITEM_DELETE","TASK_BOARD_PROMPT_LIST","TASK_BOARD_PROMPT_UPSERT","TASK_BOARD_PROMPT_DELETE","TASK_BOARD_ITEM_PRS_GET","TASK_BOARD_PREVIEW_PROBE","ANALYTICS_INSTALL","TASK_BOARD_ITEM_RERUN","TASK_BOARD_RUN_REVIEWER","TASK_BOARD_REVIEW_DECISION","TASK_BOARD_PROMOTE_TO_PRODUCTION","TASK_BOARD_ACTIVITY_LIST","TASK_BOARD_COMMENT_LIST","TASK_BOARD_COMMENT_CREATE","TASK_BOARD_COMMENT_UPDATE","TASK_BOARD_COMMENT_DELETE","TASK_BOARD_DISMISSED_LIST","TASK_BOARD_DISMISSED_RESTORE","TASK_BOARD_SPRINT_LIST","TASK_BOARD_SPRINT_CREATE","TASK_BOARD_SPRINT_UPDATE","TASK_BOARD_SPRINT_START","TASK_BOARD_SPRINT_COMPLETE","TASK_BOARD_SPRINT_DELETE","TASK_BOARD_ADMIN_ORG_LIST","TASK_BOARD_DELIVERY","TASK_BOARD_OPERATION","TASK_BOARD_OPERATION_TASKS","TASK_BOARD_REWORK","TASK_BOARD_SPRINTS","TASK_BOARD_STUCK","TASK_BOARD_COST","TASK_BOARD_QUALITY","TASK_BOARD_ERRORS","TASK_BOARD_TENANTS","THREAD_ANALYTICS_ORG_LIST","THREAD_ANALYTICS_LIVE","THREAD_ANALYTICS_USAGE","THREAD_ANALYTICS_ERRORS","NOTIFICATION_LIST","NOTIFICATION_MARK_READ","NOTIFICATION_SUBSCRIPTION_SET","NOTIFICATION_SUBSCRIPTION_LIST","ALERTS_LIST","ALERT_ACK","ALERT_RULES_LIST","ALERT_RULE_UPDATE","generate_image","generate_text","web_search","deep_research","suggest_task","preview_navigate","update_interests"]},{id:"org:manage",label:"Manage organization",description:"Edit organization settings and domain configuration",section:"Organization",tools:["ORGANIZATION_GET","ORGANIZATION_LIST","ORGANIZATION_UPDATE","ORGANIZATION_SETTINGS_GET","ORGANIZATION_SETTINGS_UPDATE","ORGANIZATION_DOMAIN_LIST","ORGANIZATION_DOMAIN_ADD","ORGANIZATION_DOMAIN_UPDATE","ORGANIZATION_DOMAIN_VERIFY","ORGANIZATION_DOMAIN_REMOVE","JIRA_INTEGRATION_GET","JIRA_INTEGRATION_UPSERT","JIRA_INTEGRATION_DELETE","JIRA_BOARDS_LIST","JIRA_BOARD_COLUMNS_LIST","JIRA_AUTOMATION_LIST","JIRA_AUTOMATION_UPSERT","JIRA_RUN_START"]},{id:"members:manage",label:"Manage members",description:"Invite members, remove them, and change their roles",section:"Organization",tools:["ORGANIZATION_MEMBER_LIST","ORGANIZATION_MEMBER_ADD","ORGANIZATION_MEMBER_REMOVE","ORGANIZATION_MEMBER_UPDATE_ROLE","ORGANIZATION_BILLING_CHECKOUT_START","ORGANIZATION_BILLING_GET","ORGANIZATION_BILLING_PORTAL","INFRA_BILLING_SITES_LIST","INFRA_BILLING_GET","INFRA_BILLING_PORTAL","ORGANIZATION_JOIN_REQUEST_LIST","ORGANIZATION_JOIN_REQUEST_APPROVE","ORGANIZATION_JOIN_REQUEST_DENY"],dangerous:!0},{id:"connections:manage",label:"Manage connections",description:"Create, update, and delete connections",section:"Connections & Agents",tools:["COLLECTION_CONNECTIONS_CREATE","COLLECTION_CONNECTIONS_UPDATE","COLLECTION_CONNECTIONS_DELETE","REPORTS_SETUP","REPORTS_RUN","REPORTS_BIND","REPORTS_CONNECTION_STATUS","REPORTS_SET_REPOSITORY"],dangerous:!0},{id:"agents:manage",label:"Manage agents",description:"Create, configure, and delete agents",section:"Connections & Agents",tools:["COLLECTION_VIRTUAL_MCP_CREATE","COLLECTION_VIRTUAL_MCP_UPDATE","COLLECTION_VIRTUAL_MCP_DELETE","VIRTUAL_MCP_PINNED_VIEWS_UPDATE","PROJECT_FOLDERS_SET"],dangerous:!0},{id:"automations:manage",label:"Manage automations",description:"Create, update, run, and delete automations",section:"Automations",tools:["AUTOMATION_CREATE","AUTOMATION_UPDATE","AUTOMATION_DELETE","AUTOMATION_TRIGGER_ADD","AUTOMATION_TRIGGER_REMOVE","AUTOMATION_TRIGGER_ROTATE_TOKEN","AUTOMATION_RUN"],dangerous:!0},{id:"monitoring:view",label:"View monitoring",description:"Access logs and usage statistics",section:"Monitoring",tools:["MONITORING_HEATMAP","MONITORING_LOG_GET","MONITORING_LOGS_LIST","MONITORING_STATS","MONITORING_THREAD_USAGE"]},{id:"secrets:manage",label:"Manage secrets",description:"Create and list secrets stored in the credential vault",section:"Organization",tools:["SECRET_CREATE","SECRET_LIST"]},{id:"assets:manage",label:"Manage assets",description:"Upload and delete files in configured buckets",section:"Organization",tools:["FILE_OBJECT_UPLOAD","FILE_OBJECT_DELETE"]},{id:"repositories:connect",label:"Connect repositories",description:"Connect git provider accounts and link existing repositories",section:"Organization",tools:["GIT_ACCOUNT_CONNECT_TOKEN","REPOSITORY_LINK"]},{id:"file-configs:manage",label:"Manage file configs",description:"Create, list, update and delete S3 bucket configurations and synced GitHub repositories",section:"Organization",tools:["FILE_CONFIG_CREATE","FILE_CONFIG_LIST","FILE_CONFIG_UPDATE","FILE_CONFIG_DELETE","FILE_OBJECTS_LIST","FILE_OBJECT_DELETE","FILE_OBJECT_UPLOAD","ORG_REPO_SYNC_CREATE","ORG_REPO_SYNC_LIST","ORG_REPO_SYNC_UPDATE","ORG_REPO_SYNC_DELETE","ORG_REPO_SYNC_RUN"]},{id:"ai-providers:manage",label:"Manage AI providers",description:"Add or remove API keys and provision provider credentials",section:"AI Providers",tools:["AI_PROVIDER_KEY_CREATE","AI_PROVIDER_KEY_LIST","AI_PROVIDER_KEY_DELETE","AI_PROVIDER_KEY_UPDATE","AI_PROVIDER_KEY_PREVIEW","AI_PROVIDER_OAUTH_URL","AI_PROVIDER_OAUTH_EXCHANGE","AI_PROVIDER_PROVISION_KEY","AI_PROVIDER_TOPUP_URL","AI_PROVIDER_CREDITS","AI_PLAN_ENTITLEMENTS","AI_PLAN_LIST","AI_PLAN_SET","AI_PLAN_INVOICE_UPGRADE","CLAUDE_SUBSCRIPTION_CONNECT","CLAUDE_SUBSCRIPTION_STATUS","CLAUDE_SUBSCRIPTION_DISCONNECT","GITHUB_COPILOT_CONNECT","GITHUB_COPILOT_STATUS","GITHUB_COPILOT_DISCONNECT","GITHUB_COPILOT_SHARE"]},{id:"tags:manage",label:"Manage tags",description:"Create, assign, and delete organization tags",section:"Organization",tools:["TAGS_LIST","TAGS_CREATE","TAGS_DELETE","MEMBER_TAGS_GET","MEMBER_TAGS_SET"]},{id:"experiments:manage",label:"Manage experiments",description:"Create, update, and delete A/B experiments, and view results",section:"Experiments",tools:["EXPERIMENT_LIST","EXPERIMENT_GET","EXPERIMENT_CREATE","EXPERIMENT_SUGGEST","EXPERIMENT_IMPLEMENT","EXPERIMENT_IMPLEMENT_LOCAL","EXPERIMENT_PREVIEW_SYNC_LOCAL","EXPERIMENT_UPDATE","EXPERIMENT_DELETE","EXPERIMENT_RESULTS"],dangerous:!0},{id:"registry:manage",label:"Browse registry",description:"Browse the Deco MCP catalog",section:"Store & Registry",tools:["COLLECTION_REGISTRY_APP_LIST","COLLECTION_REGISTRY_APP_GET","COLLECTION_REGISTRY_APP_VERSIONS","COLLECTION_REGISTRY_APP_FILTERS","REGISTRY_ITEM_LIST","REGISTRY_ITEM_SEARCH","REGISTRY_ITEM_GET","REGISTRY_ITEM_VERSIONS","REGISTRY_ITEM_FILTERS"]},{id:"api-keys:manage",label:"Manage API keys",description:"Create, update, and revoke API keys",section:"Developer",tools:["API_KEY_CREATE","API_KEY_LIST","API_KEY_UPDATE","API_KEY_DELETE"]},{id:"storage:delete",label:"Delete from storage",description:"Permanently delete files from object storage",section:"Developer",tools:["DELETE_OBJECT","DELETE_OBJECTS"],dangerous:!0},{id:"lake:read",label:"Query the data lake",description:"Run read-only SQL over the organization's own data lake (orders from connected stores)",section:"Developer",tools:["CUSTOMER_LAKE_QUERY"]}];[...We.find(t=>t.id===Je)?.tools??[]];const fs=["agents:manage","connections:manage","assets:manage","repositories:connect"];new Set(We.filter(t=>fs.includes(t.id)).flatMap(t=>t.tools));function gs(){if(ke)return ke;const t=new Map;for(const e of We){if(e.id===Je)continue;const l=t.get(e.section)??[];l.push(e),t.set(e.section,l)}return ke=Array.from(t.entries()).map(([e,l])=>({section:e,capabilities:l})),ke}function _s(t,e,l){if(l)return!0;const i=new Set(e);return t.tools.every(r=>i.has(r))}function Es(t,e,l){const i=new Set(e);for(const r of t.tools)l?i.add(r):i.delete(r);return Array.from(i)}let ke=null;const Ts=qe({role:qe({id:W().optional(),slug:W().optional(),label:W()}),allowAllStaticPermissions:Ge(),staticPermissions:ae(W()),toolSet:Xe(W(),ae(W())),allowAllModels:Ge(),modelSet:Xe(W(),ae(W())),allowAllProjects:Ge(),projectSet:ae(W()),projectExceptions:ae(W()),allowAllConnections:Ge(),connectionExceptions:ae(W()),memberIds:ae(W())});function ze(t,e,l,i){const r=s.jsx(ce,{checked:e,disabled:l,onCheckedChange:i});return l?s.jsx(be,{children:s.jsxs(je,{children:[s.jsx(Pe,{asChild:!0,children:s.jsx("div",{children:r})}),s.jsx(De,{children:s.jsx("p",{children:t("settings.orgRoleDetail.builtinRolePermissionsCannotBeChanged")})})]})}):r}function As(t){const e=Y.c(41),{allowAllStaticPermissions:l,staticPermissions:i,onAllowAllChange:r,onPermissionsChange:n,readOnly:a,searchQuery:f}=t,_=a===void 0?!1:a,d=ee();let u;e[0]!==f?(u=f.trim().toLowerCase(),e[0]=f,e[1]=u):u=e[1];const m=F.useDeferredValue(u);let T;if(e[2]!==l||e[3]!==m||e[4]!==r||e[5]!==n||e[6]!==_||e[7]!==f||e[8]!==i||e[9]!==d){const E=gs(),c=(A,p)=>{if(!_){if(l&&p){const D=E.flatMap(Rs).flatMap(hs);r(!1),n(D.filter(o=>!A.tools.includes(o)));return}l||n(Es(A,i,!p))}};let g;e[11]!==m?(g=A=>{const{section:p,capabilities:D}=A;return{section:p,capabilities:D.filter(o=>!m||o.label.toLowerCase().includes(m)||o.description.toLowerCase().includes(m))}},e[11]=m,e[12]=g):g=e[12];const S=E.map(g).filter(Is);let C;e[13]!==d?(C=d("settings.orgRoleDetail.general"),e[13]=d,e[14]=C):C=e[14];let h;e[15]!==d?(h=d("settings.orgRoleDetail.allOrgPermissions"),e[15]=d,e[16]=h):h=e[16];let N;e[17]!==d?(N=d("settings.orgRoleDetail.grantFullAccessToAllFeaturesBelow"),e[17]=d,e[18]=N):N=e[18];let x;e[19]!==l||e[20]!==r||e[21]!==n?(x=()=>{r(!l),n([])},e[19]=l,e[20]=r,e[21]=n,e[22]=x):x=e[22];let b;e[23]!==l||e[24]!==_||e[25]!==d||e[26]!==x?(b=ze(d,l,_,x),e[23]=l,e[24]=_,e[25]=d,e[26]=x,e[27]=b):b=e[27];let R;e[28]!==l||e[29]!==r||e[30]!==n||e[31]!==_?(R=_?void 0:()=>{r(!l),n([])},e[28]=l,e[29]=r,e[30]=n,e[31]=_,e[32]=R):R=e[32];let O;e[33]!==R||e[34]!==h||e[35]!==N||e[36]!==b?(O=s.jsx(tt,{children:s.jsx(st,{title:h,description:N,action:b,onClick:R})}),e[33]=R,e[34]=h,e[35]=N,e[36]=b,e[37]=O):O=e[37];let j;e[38]!==O||e[39]!==C?(j=s.jsx(et,{title:C,children:O}),e[38]=O,e[39]=C,e[40]=j):j=e[40],T=s.jsx("div",{children:s.jsxs("div",{className:"flex flex-col gap-10 py-4",children:[j,S.length===0&&m?s.jsx("p",{className:"text-sm text-muted-foreground py-4",children:d("settings.orgRoleDetail.noPermissionsMatch",{searchQuery:f})}):S.map(A=>{const{section:p,capabilities:D}=A;return s.jsx(et,{title:p,children:s.jsx(tt,{children:D.map(o=>{const I=_s(o,i,l);return s.jsx(st,{title:s.jsxs("span",{className:"flex items-center gap-1.5",children:[o.label,o.dangerous&&s.jsx(yt,{size:12,className:"text-warning shrink-0"})]}),description:o.description,action:ze(d,I,_,()=>c(o,I)),onClick:_?void 0:()=>c(o,I)},o.id)})})},p)})]})}),e[2]=l,e[3]=m,e[4]=r,e[5]=n,e[6]=_,e[7]=f,e[8]=i,e[9]=d,e[10]=T}else T=e[10];return T}function Is(t){return t.capabilities.length>0}function hs(t){return t.tools}function Rs(t){return t.capabilities}const Ct={anthropic:"Anthropic",openrouter:"OpenRouter"},ps={openai:"OpenAI",anthropic:"Anthropic",google:"Google","meta-llama":"Meta",mistralai:"Mistral","x-ai":"xAI",deepseek:"DeepSeek",qwen:"Qwen",moonshotai:"MoonshotAI",nvidia:"NVIDIA",perplexity:"Perplexity",cohere:"Cohere",amazon:"Amazon",microsoft:"Microsoft","z-ai":"Z.ai","ibm-granite":"IBM Granite",alibaba:"Alibaba",baidu:"Baidu",bytedance:"ByteDance",tencent:"Tencent",minimax:"MiniMax",nousresearch:"Nous Research",allenai:"Allen AI",inception:"Inception"};function xs(t,e){const l=t.indexOf("/"),i=l>0?t.slice(0,l):e;return i.startsWith("~")?i.slice(1):i}function Ss(t){return ps[t]??Ct[t]??t}function Os(t){const e=t.indexOf(": ");return e>0&&e<32?t.slice(e+2):t}const Nt=30;function Cs(t){const e=Y.c(40),{connectionId:l,subProviderId:i,subProviderName:r,groupLogo:n,models:a,allConnectionModelIds:f,selectedModels:_,allowAllModels:d,allConnectionModelsSelected:u,onToggleModel:m,onExitAllowAll:T,readOnly:E,defaultExpanded:c}=t,g=ee(),[S,C]=F.useState(c),h=c||S,N=C,[x,b]=F.useState(Nt);let R;e[0]!==u||e[1]!==d||e[2]!==_?(R=A=>d||u||_.includes("*")||_.includes(A),e[0]=u,e[1]=d,e[2]=_,e[3]=R):R=e[3];const O=R;let j;if(e[4]!==f||e[5]!==d||e[6]!==l||e[7]!==h||e[8]!==n||e[9]!==O||e[10]!==a||e[11]!==T||e[12]!==m||e[13]!==E||e[14]!==i||e[15]!==r||e[16]!==g||e[17]!==x){let A;e[19]!==O?(A=B=>O(B.id),e[19]=O,e[20]=A):A=e[20];const p=a.filter(A).length,D=a.slice(0,x),o=a.length>x;let I;e[21]===Symbol.for("react.memo_cache_sentinel")?(I=()=>N(Ps),e[21]=I):I=e[21];const M=n??pt[i]??xt;let P;e[22]!==r||e[23]!==M?(P=s.jsx(Ot,{icon:M,name:r,size:"sm"}),e[22]=r,e[23]=M,e[24]=P):P=e[24];let L;e[25]!==r?(L=s.jsx("span",{className:"text-sm font-medium truncate",children:r}),e[25]=r,e[26]=L):L=e[26];let y;e[27]!==P||e[28]!==L?(y=s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[P,L]}),e[27]=P,e[28]=L,e[29]=y):y=e[29];const U=g("settings.orgRoleDetail.enabledCount",{enabledCount:p,total:a.length});let G;e[30]!==U?(G=s.jsx(Me,{variant:"muted",children:U}),e[30]=U,e[31]=G):G=e[31];let K;e[32]!==h?(K=h?s.jsx(cs,{size:16,className:"text-muted-foreground shrink-0"}):s.jsx(vt,{size:16,className:"text-muted-foreground shrink-0"}),e[32]=h,e[33]=K):K=e[33];let z;e[34]!==G||e[35]!==K?(z=s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[G,K]}),e[34]=G,e[35]=K,e[36]=z):z=e[36];let k;e[37]!==z||e[38]!==y?(k=s.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 py-3 hover:bg-accent cursor-pointer",onClick:I,children:[y,z]}),e[37]=z,e[38]=y,e[39]=k):k=e[39],j=s.jsxs("div",{className:"border border-border rounded-lg overflow-hidden bg-card",children:[k,h&&s.jsxs("div",{className:"border-t border-border bg-muted/20",children:[D.map(B=>{const H=O(B.id),Q=()=>{if(!E){if(d){T(l,f,B.id);return}m(l,B.id)}};return s.jsxs("div",{className:q("flex items-center justify-between gap-3 px-4 py-3 border-b border-border last:border-b-0",!E&&"hover:bg-accent cursor-pointer"),onClick:Q,children:[s.jsx("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:s.jsx("span",{className:"text-sm truncate",children:B.title})}),s.jsx("div",{onClick:js,children:E?s.jsx(be,{children:s.jsxs(je,{children:[s.jsx(Pe,{asChild:!0,children:s.jsx("div",{children:s.jsx(ce,{checked:H,disabled:!0,onCheckedChange:bs})})}),s.jsx(De,{children:s.jsx("p",{children:g("settings.orgRoleDetail.builtinRolePermissionsCannotBeChanged")})})]})}):s.jsx(ce,{checked:H,onCheckedChange:Q})})]},B.id)}),o&&s.jsx("button",{type:"button",className:"w-full px-4 py-2 text-xs text-muted-foreground hover:text-foreground hover:bg-accent transition-colors",onClick:()=>b(Ns),children:g("settings.orgRoleDetail.showMore",{remaining:a.length-x})})]})]}),e[4]=f,e[5]=d,e[6]=l,e[7]=h,e[8]=n,e[9]=O,e[10]=a,e[11]=T,e[12]=m,e[13]=E,e[14]=i,e[15]=r,e[16]=g,e[17]=x,e[18]=j}else j=e[18];return j}function Ns(t){return t+Nt}function bs(){}function js(t){return t.stopPropagation()}function Ps(t){return!t}function Ds(t){const e=Y.c(33),{connection:l,selectedModels:i,allowAllModels:r,onToggleModel:n,onExitAllowAll:a,allConnectionModelsSelected:f,searchQuery:_,readOnly:d}=t,u=ns(l.id);let m,T,E,c,g;if(e[0]!==f||e[1]!==r||e[2]!==l.id||e[3]!==l.label||e[4]!==l.providerId||e[5]!==a||e[6]!==n||e[7]!==u||e[8]!==d||e[9]!==_||e[10]!==i){g=Symbol.for("react.early_return_sentinel");e:{let h;e[16]!==l.label?(h=I=>({...I,id:I.modelId,provider:l.label}),e[16]=l.label,e[17]=h):h=e[17];const N=u.filter(ys).map(h),x=_.trim().toLowerCase(),b=x?N.filter(I=>I.title.toLowerCase().includes(x)||I.id.toLowerCase().includes(x)||I.provider?.toLowerCase().includes(x)):N;if(b.length===0){g=null;break e}const R=new Map;for(const I of b){const M=xs(I.id,l.providerId),P=R.get(M)??{models:[],logo:null};P.models.push({id:I.id,title:Os(I.title),logo:I.logo}),!P.logo&&I.logo&&(P.logo=I.logo),R.set(M,P)}const O=Array.from(R.entries()).map(ws).sort(Ms),j=O.length===1||x.length>0;E="flex flex-col gap-3";const A=pt[l.providerId]??xt;let p;e[18]!==l.providerId||e[19]!==A?(p=s.jsx("img",{src:A,alt:l.providerId,className:"w-4 h-4 rounded-sm dark:bg-white dark:rounded-sm dark:p-px"}),e[18]=l.providerId,e[19]=A,e[20]=p):p=e[20];const D=Ct[l.providerId]??l.providerId;let o;e[21]!==D?(o=s.jsx("h4",{className:"text-sm font-medium",children:D}),e[21]=D,e[22]=o):o=e[22],e[23]!==o||e[24]!==p?(c=s.jsxs("div",{className:"flex items-center gap-2",children:[p,o]}),e[23]=o,e[24]=p,e[25]=c):c=e[25],m="flex flex-col gap-3",T=O.map(I=>s.jsx(Cs,{connectionId:l.id,subProviderId:I.id,subProviderName:I.name,groupLogo:I.logo,models:I.models,allConnectionModelIds:N.map(Ls),selectedModels:i,allowAllModels:r,allConnectionModelsSelected:f,onToggleModel:n,onExitAllowAll:a,readOnly:d,defaultExpanded:j},I.id))}e[0]=f,e[1]=r,e[2]=l.id,e[3]=l.label,e[4]=l.providerId,e[5]=a,e[6]=n,e[7]=u,e[8]=d,e[9]=_,e[10]=i,e[11]=m,e[12]=T,e[13]=E,e[14]=c,e[15]=g}else m=e[11],T=e[12],E=e[13],c=e[14],g=e[15];if(g!==Symbol.for("react.early_return_sentinel"))return g;let S;e[26]!==m||e[27]!==T?(S=s.jsx("div",{className:m,children:T}),e[26]=m,e[27]=T,e[28]=S):S=e[28];let C;return e[29]!==E||e[30]!==c||e[31]!==S?(C=s.jsxs("div",{className:E,children:[c,S]}),e[29]=E,e[30]=c,e[31]=S,e[32]=C):C=e[32],C}function Ls(t){return t.id}function Ms(t,e){return t.name.localeCompare(e.name)}function ws(t){const[e,l]=t;return{id:e,name:Ss(e),logo:l.logo,models:l.models}}function ys(t,e,l){return l.findIndex(i=>i.modelId===t.modelId)===e}function vs(t){const e=Y.c(41),{allowAllModels:l,modelSet:i,onAllowAllChange:r,onModelSetChange:n,readOnly:a,searchQuery:f}=t,_=a===void 0?!1:a,d=ee(),u=F.useDeferredValue(f),m=os();let T;e[0]!==i||e[1]!==n?(T=(A,p)=>{const D=i[A]??[],o={...i};if(D.includes(p)){const I=D.filter(M=>M!==p);I.length===0?delete o[A]:o[A]=I}else o[A]=[...D,p];n(o)},e[0]=i,e[1]=n,e[2]=T):T=e[2];const E=T;let c;e[3]!==i||e[4]!==r||e[5]!==n?(c=(A,p,D)=>{r(!1),n({...i,[A]:p.filter(o=>o!==D)})},e[3]=i,e[4]=r,e[5]=n,e[6]=c):c=e[6];const g=c,S=!_&&"hover:bg-accent cursor-pointer";let C;e[7]!==S?(C=q("flex items-center justify-between px-4 py-3 rounded-lg border border-border bg-card",S),e[7]=S,e[8]=C):C=e[8];let h;e[9]!==l||e[10]!==r||e[11]!==n||e[12]!==_?(h=()=>{if(_)return;const A=!l;r(A),A&&n({})},e[9]=l,e[10]=r,e[11]=n,e[12]=_,e[13]=h):h=e[13];let N;e[14]!==d?(N=d("settings.orgRoleDetail.allModels"),e[14]=d,e[15]=N):N=e[15];let x;e[16]!==N?(x=s.jsx("span",{className:"text-sm font-medium",children:N}),e[16]=N,e[17]=x):x=e[17];let b;e[18]!==l||e[19]!==r||e[20]!==n||e[21]!==_||e[22]!==d?(b=s.jsx("div",{onClick:ks,children:_?s.jsx(be,{children:s.jsxs(je,{children:[s.jsx(Pe,{asChild:!0,children:s.jsx("div",{children:s.jsx(ce,{checked:l,disabled:!0,onCheckedChange:Gs})})}),s.jsx(De,{children:s.jsx("p",{children:d("settings.orgRoleDetail.builtinRolePermissionsCannotBeChanged")})})]})}):s.jsx(ce,{checked:l,onCheckedChange:A=>{r(A),A&&n({})}})}),e[18]=l,e[19]=r,e[20]=n,e[21]=_,e[22]=d,e[23]=b):b=e[23];let R;e[24]!==C||e[25]!==h||e[26]!==x||e[27]!==b?(R=s.jsxs("div",{className:C,onClick:h,children:[x,b]}),e[24]=C,e[25]=h,e[26]=x,e[27]=b,e[28]=R):R=e[28];let O;e[29]!==m||e[30]!==l||e[31]!==u||e[32]!==g||e[33]!==i||e[34]!==_||e[35]!==d||e[36]!==E?(O=m.length===0?s.jsx("div",{className:"flex items-center justify-center py-8 text-sm text-muted-foreground",children:d("settings.orgRoleDetail.noLlmConnectionsConfigured")}):m.map(A=>s.jsx(F.Suspense,{fallback:s.jsxs("div",{className:"px-4 py-3 flex items-center gap-2 text-sm text-muted-foreground",children:[s.jsx(we,{className:"size-4"}),d("settings.orgRoleDetail.loadingModels")]}),children:s.jsx(Ds,{connection:A,selectedModels:i[A.id]??[],allowAllModels:l,onToggleModel:E,onExitAllowAll:g,allConnectionModelsSelected:(i[A.id]??[]).includes("*"),searchQuery:u,readOnly:_})},A.id)),e[29]=m,e[30]=l,e[31]=u,e[32]=g,e[33]=i,e[34]=_,e[35]=d,e[36]=E,e[37]=O):O=e[37];let j;return e[38]!==R||e[39]!==O?(j=s.jsxs("div",{className:"flex flex-col h-full overflow-auto gap-6 pb-6",children:[R,O]}),e[38]=R,e[39]=O,e[40]=j):j=e[40],j}function Gs(){}function ks(t){return t.stopPropagation()}function Bs(t){const e=Y.c(49),{allowAllProjects:l,projectSet:i,projectExceptions:r,onAllowAllChange:n,onProjectSetChange:a,onProjectExceptionsChange:f,readOnly:_,searchQuery:d}=t,u=_===void 0?!1:_,m=ee(),T=F.useDeferredValue(d),E=ls();let c;if(e[0]!==l||e[1]!==T||e[2]!==n||e[3]!==f||e[4]!==a||e[5]!==r||e[6]!==i||e[7]!==u||e[8]!==d||e[9]!==m||e[10]!==E){const g=rs(E),S=T.trim().toLowerCase(),C=S?g.filter(L=>L.title.toLowerCase().includes(S)):g;let h;e[12]!==l||e[13]!==f||e[14]!==a||e[15]!==r||e[16]!==i?(h=L=>{const[y,U]=l?[r,f]:[i,a];U(y.includes(L)?y.filter(G=>G!==L):[...y,L])},e[12]=l,e[13]=f,e[14]=a,e[15]=r,e[16]=i,e[17]=h):h=e[17];const N=h;let x;e[18]!==n||e[19]!==f||e[20]!==a?(x=L=>{n(L),a([]),f([])},e[18]=n,e[19]=f,e[20]=a,e[21]=x):x=e[21];const b=x,R=!u&&"hover:bg-accent cursor-pointer";let O;e[22]!==R?(O=q("flex items-center justify-between px-4 py-3 rounded-lg border border-border bg-card",R),e[22]=R,e[23]=O):O=e[23];let j;e[24]!==l||e[25]!==u||e[26]!==b?(j=()=>{u||b(!l)},e[24]=l,e[25]=u,e[26]=b,e[27]=j):j=e[27];let A;e[28]!==m?(A=m("settings.orgRoleDetail.allProjects"),e[28]=m,e[29]=A):A=e[29];let p;e[30]!==A?(p=s.jsx("span",{className:"text-sm font-medium",children:A}),e[30]=A,e[31]=p):p=e[31];let D;e[32]!==m?(D=m("settings.orgRoleDetail.allProjectsDescription"),e[32]=m,e[33]=D):D=e[33];let o;e[34]!==D?(o=s.jsx("span",{className:"text-xs text-muted-foreground",children:D}),e[34]=D,e[35]=o):o=e[35];let I;e[36]!==o||e[37]!==p?(I=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[p,o]}),e[36]=o,e[37]=p,e[38]=I):I=e[38];let M;e[39]!==l||e[40]!==u||e[41]!==b||e[42]!==m?(M=s.jsx("div",{onClick:Ks,children:u?s.jsx(be,{children:s.jsxs(je,{children:[s.jsx(Pe,{asChild:!0,children:s.jsx("div",{children:s.jsx(ce,{checked:l,disabled:!0,onCheckedChange:Us})})}),s.jsx(De,{children:s.jsx("p",{children:m("settings.orgRoleDetail.builtinRolePermissionsCannotBeChanged")})})]})}):s.jsx(ce,{checked:l,onCheckedChange:b})}),e[39]=l,e[40]=u,e[41]=b,e[42]=m,e[43]=M):M=e[43];let P;e[44]!==I||e[45]!==M||e[46]!==O||e[47]!==j?(P=s.jsxs("div",{className:O,onClick:j,children:[I,M]}),e[44]=I,e[45]=M,e[46]=O,e[47]=j,e[48]=P):P=e[48],c=s.jsxs("div",{className:"flex flex-col h-full overflow-auto gap-6 p-4",children:[P,g.length===0?s.jsx("div",{className:"flex items-center justify-center py-8 text-sm text-muted-foreground",children:m("settings.orgRoleDetail.noProjectsAvailable")}):C.length===0?s.jsx("div",{className:"flex items-center justify-center py-8 text-sm text-muted-foreground",children:m("settings.orgRoleDetail.noProjectsMatch",{searchQuery:d})}):s.jsx("div",{className:"flex flex-col gap-1",children:C.map(L=>{const y=l?!r.includes(L.id):i.includes(L.id);return s.jsxs("label",{className:q("flex items-center gap-3 px-3 py-2 rounded-lg border border-transparent",u?"cursor-default":"hover:bg-accent cursor-pointer"),children:[s.jsx(Ze,{checked:y,disabled:u,onCheckedChange:()=>{u||N(L.id)}}),s.jsx(is,{icon:L.icon,name:L.title}),s.jsx("span",{className:"text-sm truncate",children:L.title})]},L.id)})})]}),e[0]=l,e[1]=T,e[2]=n,e[3]=f,e[4]=a,e[5]=r,e[6]=i,e[7]=u,e[8]=d,e[9]=m,e[10]=E,e[11]=c}else c=e[11];return c}function Us(){}function Ks(t){return t.stopPropagation()}function Vs(t){const e=Y.c(48),{allowAllConnections:l,connectionExceptions:i,onAllowAllChange:r,onConnectionExceptionsChange:n,readOnly:a,searchQuery:f,children:_}=t,d=a===void 0?!1:a,u=ee(),m=F.useDeferredValue(f),T=St();let E;if(e[0]!==T||e[1]!==m){const P=m.trim().toLowerCase();E=P?T.filter(L=>L.title.toLowerCase().includes(P)):T,e[0]=T,e[1]=m,e[2]=E}else E=e[2];const c=E;let g;e[3]!==i||e[4]!==n?(g=P=>{n(i.includes(P)?i.filter(L=>L!==P):[...i,P])},e[3]=i,e[4]=n,e[5]=g):g=e[5];const S=g,C=!d&&"hover:bg-accent cursor-pointer";let h;e[6]!==C?(h=q("flex items-center justify-between px-4 py-3 border-b border-border",C),e[6]=C,e[7]=h):h=e[7];let N;e[8]!==l||e[9]!==r||e[10]!==d?(N=()=>{d||r(!l)},e[8]=l,e[9]=r,e[10]=d,e[11]=N):N=e[11];let x;e[12]!==u?(x=u("settings.orgRoleDetail.allConnections"),e[12]=u,e[13]=x):x=e[13];let b;e[14]!==x?(b=s.jsx("span",{className:"text-sm font-medium",children:x}),e[14]=x,e[15]=b):b=e[15];let R;e[16]!==u?(R=u("settings.orgRoleDetail.allConnectionsDescription"),e[16]=u,e[17]=R):R=e[17];let O;e[18]!==R?(O=s.jsx("span",{className:"text-xs text-muted-foreground",children:R}),e[18]=R,e[19]=O):O=e[19];let j;e[20]!==O||e[21]!==b?(j=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[b,O]}),e[20]=O,e[21]=b,e[22]=j):j=e[22];let A;e[23]!==l||e[24]!==r?(A=()=>r(!l),e[23]=l,e[24]=r,e[25]=A):A=e[25];let p;e[26]!==l||e[27]!==d||e[28]!==u||e[29]!==A?(p=ze(u,l,d,A),e[26]=l,e[27]=d,e[28]=u,e[29]=A,e[30]=p):p=e[30];let D;e[31]!==p?(D=s.jsx("div",{onClick:Fs,children:p}),e[31]=p,e[32]=D):D=e[32];let o;e[33]!==j||e[34]!==D||e[35]!==h||e[36]!==N?(o=s.jsxs("div",{className:h,onClick:N,children:[j,D]}),e[33]=j,e[34]=D,e[35]=h,e[36]=N,e[37]=o):o=e[37];let I;e[38]!==l||e[39]!==_||e[40]!==i||e[41]!==c||e[42]!==d||e[43]!==S?(I=l?s.jsx("div",{className:"flex-1 min-h-0 overflow-auto p-4 flex flex-col gap-1",children:c.map(P=>s.jsxs("label",{className:q("flex items-center gap-3 px-3 py-2 rounded-lg border border-transparent",d?"cursor-default":"hover:bg-accent cursor-pointer"),children:[s.jsx(Ze,{checked:!i.includes(P.id),disabled:d,onCheckedChange:()=>{d||S(P.id)}}),s.jsx(Ot,{icon:P.icon,name:P.title,size:"sm"}),s.jsx("span",{className:"text-sm truncate",children:P.title})]},P.id))}):s.jsx("div",{className:"flex-1 min-h-0",children:_}),e[38]=l,e[39]=_,e[40]=i,e[41]=c,e[42]=d,e[43]=S,e[44]=I):I=e[44];let M;return e[45]!==o||e[46]!==I?(M=s.jsxs("div",{className:"flex flex-col h-full",children:[o,I]}),e[45]=o,e[46]=I,e[47]=M):M=e[47],M}function Fs(t){return t.stopPropagation()}function zs(t){const e=Y.c(75),{open:l,onOpenChange:i,selectedMemberIds:r,onAddMembers:n}=t,a=ee(),[f,_]=F.useState(""),d=F.useDeferredValue(f);let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=[],e[0]=u):u=e[0];const[m,T]=F.useState(u),{data:E}=ct();let c,g,S,C,h,N,x,b,R,O,j;if(e[1]!==E?.data?.members||e[2]!==d||e[3]!==n||e[4]!==i||e[5]!==l||e[6]!==m||e[7]!==f||e[8]!==r||e[9]!==a){const G=E?.data?.members??[];let K;e[21]!==d?(K=V=>{const Z=d.toLowerCase();return V.user?.name?.toLowerCase().includes(Z)||V.user?.email?.toLowerCase().includes(Z)},e[21]=d,e[22]=K):K=e[22];const z=G.filter(K);let k;e[23]!==n||e[24]!==i||e[25]!==m?(k=()=>{n(m),T([]),i(!1)},e[23]=n,e[24]=i,e[25]=m,e[26]=k):k=e[26],S=k,g=mt,O=l,j=i,c=ut,b="sm:max-w-md p-0";let B;e[27]!==a?(B=a("settings.orgRoleDetail.addMembersToRole"),e[27]=a,e[28]=B):B=e[28];let H;e[29]!==B?(H=s.jsx(ft,{children:B}),e[29]=B,e[30]=H):H=e[30];let Q;e[31]!==a?(Q=a("settings.orgRoleDetail.selectMembersToAddToThisRole"),e[31]=a,e[32]=Q):Q=e[32];let X;e[33]!==Q?(X=s.jsx(gt,{children:Q}),e[33]=Q,e[34]=X):X=e[34],e[35]!==H||e[36]!==X?(R=s.jsxs(_t,{className:"px-6 pt-6",children:[H,X]}),e[35]=H,e[36]=X,e[37]=R):R=e[37],N="flex flex-col h-80";let te;e[38]!==a?(te=a("settings.orgRoleDetail.searchMembers"),e[38]=a,e[39]=te):te=e[39],e[40]!==f||e[41]!==te?(x=s.jsx("div",{className:"border-b border-border px-4 py-3",children:s.jsx(Qe,{value:f,onChange:_,placeholder:te,className:"w-full"})}),e[40]=f,e[41]=te,e[42]=x):x=e[42],C="flex-1 overflow-auto",h=z.length===0?s.jsx("div",{className:"flex items-center justify-center h-full px-6",children:s.jsx("p",{className:"text-sm text-muted-foreground",children:a(f?"settings.orgRoleDetail.noMembersFound":"settings.orgRoleDetail.noMembersAvailable")})}):s.jsx("div",{className:"px-6 py-2 space-y-1",children:z.map(V=>{const Z=V.role!=="owner",J=r.includes(V.id),le=m.includes(V.id);return s.jsxs("label",{className:q("flex items-center gap-3 p-2 rounded-lg",!Z||J?"opacity-50 cursor-not-allowed":"cursor-pointer hover:bg-accent"),children:[s.jsx(Ze,{checked:le||J,onCheckedChange:()=>{!Z||J||T(oe=>oe.includes(V.id)?oe.filter(ne=>ne!==V.id):[...oe,V.id])},disabled:!Z||J}),s.jsx(dt,{url:V.user?.image??void 0,fallback:V.user?.name??"?",shape:"circle",size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:V.user?.name||a("settings.orgRoleDetail.unknown")}),s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:V.user?.email})]}),!Z&&s.jsx(Me,{variant:"secondary",className:"shrink-0",children:a("settings.orgRoleDetail.owner")}),J&&Z&&s.jsx(Me,{variant:"outline",className:"shrink-0",children:a("settings.orgRoleDetail.added")})]},V.id)})}),e[1]=E?.data?.members,e[2]=d,e[3]=n,e[4]=i,e[5]=l,e[6]=m,e[7]=f,e[8]=r,e[9]=a,e[10]=c,e[11]=g,e[12]=S,e[13]=C,e[14]=h,e[15]=N,e[16]=x,e[17]=b,e[18]=R,e[19]=O,e[20]=j}else c=e[10],g=e[11],S=e[12],C=e[13],h=e[14],N=e[15],x=e[16],b=e[17],R=e[18],O=e[19],j=e[20];let A;e[43]!==C||e[44]!==h?(A=s.jsx("div",{className:C,children:h}),e[43]=C,e[44]=h,e[45]=A):A=e[45];let p;e[46]!==A||e[47]!==N||e[48]!==x?(p=s.jsxs("div",{className:N,children:[x,A]}),e[46]=A,e[47]=N,e[48]=x,e[49]=p):p=e[49];let D;e[50]!==a?(D=a("settings.orgRoleDetail.cancel"),e[50]=a,e[51]=D):D=e[51];let o;e[52]!==D?(o=s.jsx(Et,{children:D}),e[52]=D,e[53]=o):o=e[53];const I=m.length===0;let M;e[54]!==m.length||e[55]!==a?(M=a("settings.orgRoleDetail.addWithCount",{count:m.length}),e[54]=m.length,e[55]=a,e[56]=M):M=e[56];let P;e[57]!==S||e[58]!==I||e[59]!==M?(P=s.jsx(Tt,{onClick:S,disabled:I,children:M}),e[57]=S,e[58]=I,e[59]=M,e[60]=P):P=e[60];let L;e[61]!==o||e[62]!==P?(L=s.jsxs(At,{className:"px-6 pb-6",children:[o,P]}),e[61]=o,e[62]=P,e[63]=L):L=e[63];let y;e[64]!==c||e[65]!==p||e[66]!==L||e[67]!==b||e[68]!==R?(y=s.jsxs(c,{className:b,children:[R,p,L]}),e[64]=c,e[65]=p,e[66]=L,e[67]=b,e[68]=R,e[69]=y):y=e[69];let U;return e[70]!==g||e[71]!==y||e[72]!==O||e[73]!==j?(U=s.jsx(g,{open:O,onOpenChange:j,children:y}),e[70]=g,e[71]=y,e[72]=O,e[73]=j,e[74]=U):U=e[74],U}function Ys(t){const e=Y.c(33),{memberIds:l,onMemberIdsChange:i,readOnly:r,readOnlyMessage:n,searchQuery:a,addMemberDialogOpen:f,onAddMemberDialogOpenChange:_}=t,d=r===void 0?!1:r,u=n===void 0?void 0:n,m=ee(),T=F.useDeferredValue(a),{data:E}=ct();let c,g,S;if(e[0]!==E?.data?.members||e[1]!==T||e[2]!==l||e[3]!==i||e[4]!==d||e[5]!==u||e[6]!==a||e[7]!==m){const b=E?.data?.members??[];let R;e[11]!==l?(R=o=>l.includes(o.id),e[11]=l,e[12]=R):R=e[12];const O=b.filter(R);let j;e[13]!==T?(j=o=>{const I=T.toLowerCase();return o.user?.name?.toLowerCase().includes(I)||o.user?.email?.toLowerCase().includes(I)},e[13]=T,e[14]=j):j=e[14];const A=O.filter(j);let p;e[15]!==u||e[16]!==m?(p=u??m("settings.orgRoleDetail.ownerMembershipCannotBeChanged"),e[15]=u,e[16]=m,e[17]=p):p=e[17];const D=p;S="flex flex-col h-full",c="flex-1 overflow-auto",g=O.length===0?s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsxs("div",{className:"text-center",children:[s.jsx("h3",{className:"text-base font-medium mb-1",children:m("settings.orgRoleDetail.noMembers")}),s.jsx("p",{className:"text-sm text-muted-foreground",children:m("settings.orgRoleDetail.addMembersToGrantPermissions")})]})}):A.length===0?s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("p",{className:"text-sm text-muted-foreground",children:m("settings.orgRoleDetail.noMembersMatch",{searchQuery:a})})}):s.jsx("div",{className:"p-4 space-y-2",children:A.map(o=>s.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg bg-muted/30",children:[s.jsx(dt,{url:o.user?.image??void 0,fallback:o.user?.name??"?",shape:"circle",size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:o.user?.name||m("settings.orgRoleDetail.unknown")}),s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:o.user?.email})]}),d?s.jsx(be,{children:s.jsxs(je,{children:[s.jsx(Pe,{asChild:!0,children:s.jsx("div",{children:s.jsx(re,{variant:"ghost",size:"sm",disabled:!0,"aria-label":m("settings.orgRoleDetail.removeMember",{name:o.user?.name||m("settings.orgRoleDetail.unknown")}),children:s.jsx(lt,{size:16})})})}),s.jsx(De,{children:s.jsx("p",{children:D})})]})}):s.jsx(re,{variant:"ghost",size:"sm","aria-label":m("settings.orgRoleDetail.removeMember",{name:o.user?.name||m("settings.orgRoleDetail.unknown")}),onClick:()=>i(l.filter(I=>I!==o.id)),children:s.jsx(lt,{size:16})})]},o.id))}),e[0]=E?.data?.members,e[1]=T,e[2]=l,e[3]=i,e[4]=d,e[5]=u,e[6]=a,e[7]=m,e[8]=c,e[9]=g,e[10]=S}else c=e[8],g=e[9],S=e[10];let C;e[18]!==c||e[19]!==g?(C=s.jsx("div",{className:c,children:g}),e[18]=c,e[19]=g,e[20]=C):C=e[20];let h;e[21]!==l||e[22]!==i?(h=b=>i([...l,...b]),e[21]=l,e[22]=i,e[23]=h):h=e[23];let N;e[24]!==f||e[25]!==l||e[26]!==_||e[27]!==h?(N=s.jsx(zs,{open:f,onOpenChange:_,selectedMemberIds:l,onAddMembers:h}),e[24]=f,e[25]=l,e[26]=_,e[27]=h,e[28]=N):N=e[28];let x;return e[29]!==S||e[30]!==C||e[31]!==N?(x=s.jsxs("div",{className:S,children:[C,N]}),e[29]=S,e[30]=C,e[31]=N,e[32]=x):x=e[32],x}function Hs(t){const e=Y.c(3);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx(we,{className:"size-6 text-muted-foreground"})}),e[0]=l):l=e[0];let i;return e[1]!==t?(i=s.jsx(F.Suspense,{fallback:l,children:s.jsx(Ys,{...t})}),e[1]=t,e[2]=i):i=e[2],i}const $s={owner:[],admin:[],user:[]};function Qs(t,e,l,i){const r=t==="owner"||t==="admin";return{role:{id:l?.id,slug:t,label:t.charAt(0).toUpperCase()+t.slice(1)},allowAllStaticPermissions:r,staticPermissions:$s[t],toolSet:{},allowAllModels:!0,modelSet:{},allowAllProjects:!0,projectSet:[],projectExceptions:[],allowAllConnections:r,connectionExceptions:[],memberIds:e.filter(n=>n.role===t).map(n=>n.id)}}function Zs(t,e,l){const i=t.permission||{},r=i.self||[],n=r.includes("*"),a=n?[]:r.filter(E=>E!=="*"),f={};for(const[E,c]of Object.entries(i))if(!(E==="self"||E==="models"||E===Ke||E===Ve))if(E==="*")for(const g of l)f[g.id]=c.includes("*")?g.tools?.map(S=>S.name)??[]:c;else{const g=l.find(S=>S.id===E);g&&(f[E]=c.includes("*")?g.tools?.map(S=>S.name)??[]:c)}const _=i.models||[],d=_.length===0||_.includes("*:*"),u={};if(!d)for(const E of _){const c=E.indexOf(":");if(c===-1)continue;const g=E.slice(0,c),S=E.slice(c+1);u[g]||(u[g]=[]),u[g].push(S)}const m=Zt(Jt(i)),T=Wt(i[Ve]??[]);return{role:{id:t.id,slug:t.role,label:t.label},allowAllStaticPermissions:n,staticPermissions:a,toolSet:f,allowAllModels:d,modelSet:u,allowAllProjects:m.kind!=="only",projectSet:m.kind==="only"?m.names:[],projectExceptions:m.kind==="except"?m.names:[],allowAllConnections:T.kind!=="only",connectionExceptions:T.kind==="except"?T.names:[],memberIds:e.filter(E=>E.role===t.role).map(E=>E.id)}}function Js(t,e){const l={};t.allowAllStaticPermissions?l.self=["*"]:t.staticPermissions.length>0&&(l.self=t.staticPermissions);for(const[i,r]of Object.entries(t.toolSet))if(r.length>0){const a=e.find(f=>f.id===i)?.tools?.map(f=>f.name)??[];l[i]=a.length>0&&a.every(f=>r.includes(f))?["*"]:r}if(t.allowAllModels)l.models=["*:*"];else{const i=[];for(const[r,n]of Object.entries(t.modelSet))for(const a of n)i.push(`${r}:${a}`);i.length>0&&(l.models=i)}return t.allowAllProjects?t.projectExceptions.length>0&&(l[Ke]=Ht({names:t.projectExceptions})):l[Ke]=t.projectSet,t.allowAllConnections&&(l[Ve]=[$t,...t.connectionExceptions.map(Qt)]),l}function Ws(t,e,l){return t.kind==="builtin"?Qs(t.role,e,void 0):t.kind==="custom"?Zs(t.role,e,l):{role:{id:void 0,slug:void 0,label:""},allowAllStaticPermissions:!1,staticPermissions:[],toolSet:{},allowAllModels:!0,modelSet:{},allowAllProjects:!0,projectSet:[],projectExceptions:[],allowAllConnections:!1,connectionExceptions:[],memberIds:[]}}function qs(t){const e=Y.c(19),{readOnly:l,readOnlyMessage:i,onOpen:r}=t,n=i===void 0?void 0:i,a=ee();let f;e[0]!==n||e[1]!==a?(f=n??a("settings.orgRoleDetail.ownerMembershipCannotBeChanged"),e[0]=n,e[1]=a,e[2]=f):f=e[2];const _=f;if(l){let T;e[3]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(Fe,{size:16}),e[3]=T):T=e[3];let E;e[4]!==a?(E=a("settings.orgRoleDetail.addMember"),e[4]=a,e[5]=E):E=e[5];let c;e[6]!==E?(c=s.jsx(Pe,{asChild:!0,children:s.jsx("div",{children:s.jsxs(re,{variant:"outline",size:"sm",disabled:!0,children:[T,E]})})}),e[6]=E,e[7]=c):c=e[7];let g;e[8]!==_?(g=s.jsx(De,{children:s.jsx("p",{children:_})}),e[8]=_,e[9]=g):g=e[9];let S;return e[10]!==c||e[11]!==g?(S=s.jsx(be,{children:s.jsxs(je,{children:[c,g]})}),e[10]=c,e[11]=g,e[12]=S):S=e[12],S}let d;e[13]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Fe,{size:16}),e[13]=d):d=e[13];let u;e[14]!==a?(u=a("settings.orgRoleDetail.addMember"),e[14]=a,e[15]=u):u=e[15];let m;return e[16]!==r||e[17]!==u?(m=s.jsxs(re,{variant:"outline",size:"sm",onClick:r,children:[d,u]}),e[16]=r,e[17]=u,e[18]=m):m=e[18],m}function Xs(t){const e=Y.c(14),{locator:l}=Ye(),i=He(),r=St();let n;e[0]!==l?(n=Ne.members(l),e[0]=l,e[1]=n):n=e[1];let a;e[2]!==i?(a=()=>i.organization.listMembers(),e[2]=i,e[3]=a):a=e[3];let f;e[4]!==n||e[5]!==a?(f={queryKey:n,queryFn:a},e[4]=n,e[5]=a,e[6]=f):f=e[6];const{data:_,isPending:d}=nt(f);if(d||!r){let E;return e[7]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(se,{children:s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx(we,{className:"size-8 text-muted-foreground"})})}),e[7]=E):E=e[7],E}let u;e[8]!==_?.data?.members?(u=_?.data?.members??[],e[8]=_?.data?.members,e[9]=u):u=e[9];const m=u;let T;return e[10]!==r||e[11]!==m||e[12]!==t?(T=s.jsx(el,{...t,members:m,connections:r}),e[10]=r,e[11]=m,e[12]=t,e[13]=T):T=e[13],T}function el({target:t,onBack:e,onSaved:l,members:i,connections:r}){const n=ee(),{locator:a}=Ye(),f=He(),_=it(),d=t.kind==="builtin",u=t.kind==="builtin"&&t.role==="owner",m=t.kind==="new",[T,E]=F.useState(d?"org":"mcp"),c=Pt({resolver:Dt(Ts),defaultValues:Ws(t,i,r)}),g=c.formState.isValid,S=c.formState.isDirty,C=rt({mutationFn:async o=>{const I=Js(o,r),M=o.role.slug||o.role.label.toLowerCase().replace(/\s+/g,"-"),P=(o.role.slug==="owner"||o.role.slug==="admin"||o.role.slug==="user")&&!o.role.id,L=async(y,U)=>{const G=i.filter(k=>k.role===(U??y)).map(k=>k.id),K=o.memberIds.filter(k=>!G.includes(k)),z=G.filter(k=>!o.memberIds.includes(k));for(const k of K){const B=await f.organization.updateMemberRole({memberId:k,role:[y]});if(B?.error)throw new Error(B.error.message??n("settings.orgRoleDetail.somethingWentWrong"))}for(const k of z){const B=await f.organization.updateMemberRole({memberId:k,role:["user"]});if(B?.error)throw new Error(B.error.message??n("settings.orgRoleDetail.somethingWentWrong"))}};if(P)return await L(o.role.slug),o;if(o.role.id){const y=o.role.label.toLowerCase().replace(/\s+/g,"-"),U=o.role.slug,G=y!==U,K=await f.organization.updateRole({roleId:o.role.id,data:{permission:I,...G?{roleName:y}:{}}});if(K?.error)throw new Error(K.error.message??n("settings.orgRoleDetail.somethingWentWrong"));return await L(G?y:U,G?U:void 0),G?{...o,role:{...o.role,slug:y}}:o}else{const y=await f.organization.createRole({role:M,permission:I});if(y?.error)throw new Error(y.error.message??n("settings.orgRoleDetail.somethingWentWrong"));for(const U of o.memberIds){const G=await f.organization.updateMemberRole({memberId:U,role:[M]});if(G?.error)throw new Error(G.error.message)}return{...o,role:{...o.role,id:y.data?.roleData?.id,slug:M}}}},onSuccess:(o,I)=>{_.invalidateQueries({queryKey:Ne.members(a)}),_.invalidateQueries({queryKey:Ne.organizationRoles(a)});const M=!I.role.id&&!I.role.slug,P=I.role.slug==="owner"&&!I.role.id;$e(P?"role_members_updated":M?"role_created":"role_updated",{role_slug:I.role.slug??null}),Le.success(n(P?"settings.orgRoleDetail.membersUpdatedSuccessfully":M?"settings.orgRoleDetail.roleCreatedSuccessfully":"settings.orgRoleDetail.roleUpdatedSuccessfully")),c.reset(o),l(o.role.id)},onError:o=>{Le.error(o instanceof Error?o.message:n("settings.orgRoleDetail.failedToSaveRole"))}}),h=c.handleSubmit(o=>{if(!o.role.label.trim()){Le.error(n("settings.orgRoleDetail.roleNameIsRequired")),c.setFocus("role.label");return}C.mutate(o)}),N=!u,x=t.kind==="builtin"?t.role.charAt(0).toUpperCase()+t.role.slice(1):t.kind==="custom"?t.role.label:"",b=[...u?[]:[{id:"mcp",label:n("settings.orgRoleDetail.mcpPermissions"),icon:ds}],{id:"org",label:n("settings.orgRoleDetail.organizationPermissions"),icon:as},{id:"models",label:n("settings.orgRoleDetail.models"),icon:Lt},{id:"projects",label:n("settings.orgRoleDetail.projects"),icon:ms},{id:"members",label:n("settings.orgRoleDetail.members"),icon:Mt}],[R,O]=F.useState(""),[j,A]=F.useState(!1),p=o=>{E(o),O("")},D={mcp:n("settings.orgRoleDetail.searchMcpServers"),org:n("settings.orgRoleDetail.searchPermissions"),models:n("settings.orgRoleDetail.searchModels"),projects:n("settings.orgRoleDetail.searchProjects"),members:n("settings.orgRoleDetail.searchMembers")};return s.jsx(se,{children:s.jsxs(se.Content,{className:q("flex flex-col",T!=="org"&&"overflow-hidden"),children:[s.jsx("div",{className:"shrink-0 mx-auto w-full max-w-[1200px] px-4 md:px-10 pt-8 md:pt-12 pb-4",children:s.jsxs("div",{className:"flex flex-col gap-5",children:[s.jsx(se.Title,{actions:N&&s.jsxs(s.Fragment,{children:[s.jsx(re,{variant:"outline",size:"sm",onClick:e,disabled:C.isPending,children:n("settings.orgRoleDetail.cancel")}),s.jsx(re,{size:"sm",onClick:h,disabled:C.isPending||!g||!S,children:C.isPending?n("settings.orgRoleDetail.saving"):n(m?"settings.orgRoleDetail.createRole":"settings.orgRoleDetail.saveChanges")})]}),children:s.jsxs("div",{className:"flex items-center gap-2.5 min-w-0",children:[s.jsx("div",{className:q("size-2.5 rounded-full shrink-0",t.kind==="builtin"?Rt(t.role,!0):Yt(c.watch("role.label")))}),u&&s.jsx(at,{size:16,className:"text-muted-foreground shrink-0"}),m||t.kind==="custom"?s.jsx("input",{...c.register("role.label"),placeholder:n("settings.orgRoleDetail.roleName"),className:"leading-tight text-foreground bg-transparent border-none outline-none px-1 -mx-1 rounded hover:bg-input/25 focus:bg-input/25 transition-colors w-64 placeholder:text-muted-foreground/50",autoFocus:m}):s.jsx("span",{className:"truncate",children:x})]})}),s.jsx(s.Fragment,{children:s.jsx(wt.Toolbar.Left.Portal,{children:s.jsx(se.Tabs,{children:b.map(o=>s.jsx(se.Tab,{active:T===o.id,onClick:()=>p(o.id),children:o.label},o.id))})})}),s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[s.jsx(Qe,{value:R,onChange:O,placeholder:D[T]??"Search...",className:"w-full md:w-[375px]"}),T==="members"&&s.jsx(qs,{readOnly:t.kind==="builtin"&&t.role==="owner",onOpen:()=>A(!0)})]})]})}),s.jsx("div",{className:q("mx-auto w-full max-w-[1200px] px-4 md:px-10 pb-6",T!=="org"&&"flex-1 min-h-0"),children:s.jsxs("div",{className:q(T!=="org"&&"h-full overflow-hidden",T!=="models"&&T!=="projects"&&T!=="org"&&"border border-border rounded-xl bg-card"),children:[T==="mcp"&&!u&&s.jsx(F.Suspense,{fallback:s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx(we,{className:"size-6 text-muted-foreground"})}),children:s.jsx(Vs,{allowAllConnections:c.watch("allowAllConnections"),connectionExceptions:c.watch("connectionExceptions"),onAllowAllChange:o=>{c.setValue("allowAllConnections",o,{shouldDirty:!0}),c.setValue("connectionExceptions",[],{shouldDirty:!0})},onConnectionExceptionsChange:o=>c.setValue("connectionExceptions",o,{shouldDirty:!0}),readOnly:t.kind==="builtin",searchQuery:R,children:s.jsx(ss,{toolSet:c.watch("toolSet"),onToolSetChange:o=>c.setValue("toolSet",o,{shouldDirty:!0}),searchQuery:R})})}),T==="org"&&s.jsx(As,{allowAllStaticPermissions:c.watch("allowAllStaticPermissions"),staticPermissions:c.watch("staticPermissions"),onAllowAllChange:o=>c.setValue("allowAllStaticPermissions",o,{shouldDirty:!0}),onPermissionsChange:o=>c.setValue("staticPermissions",o,{shouldDirty:!0}),readOnly:u,searchQuery:R}),T==="models"&&s.jsx(vs,{allowAllModels:c.watch("allowAllModels"),modelSet:c.watch("modelSet"),onAllowAllChange:o=>c.setValue("allowAllModels",o,{shouldDirty:!0}),onModelSetChange:o=>c.setValue("modelSet",o,{shouldDirty:!0}),readOnly:u,searchQuery:R}),T==="projects"&&s.jsx(Bs,{allowAllProjects:c.watch("allowAllProjects"),projectSet:c.watch("projectSet"),projectExceptions:c.watch("projectExceptions"),onAllowAllChange:o=>c.setValue("allowAllProjects",o,{shouldDirty:!0}),onProjectSetChange:o=>c.setValue("projectSet",o,{shouldDirty:!0}),onProjectExceptionsChange:o=>c.setValue("projectExceptions",o,{shouldDirty:!0}),readOnly:u,searchQuery:R}),T==="members"&&s.jsx(Hs,{memberIds:c.watch("memberIds"),onMemberIdsChange:o=>c.setValue("memberIds",o,{shouldDirty:!0}),readOnly:t.kind==="builtin"&&(t.role==="owner"||t.role==="user"),readOnlyMessage:t.kind==="builtin"&&t.role==="user"?n("settings.orgRoleDetail.userIsDefaultRoleMessage"):n("settings.orgRoleDetail.ownerMembershipCannotBeChanged"),searchQuery:R,addMemberDialogOpen:j,onAddMemberDialogOpenChange:A})]})})]})})}function tl(t){return t.kind==="builtin"?`builtin-${t.role}`:t.kind==="custom"?`custom-${t.role.id}`:"new"}function sl(t){const e=Y.c(6),{area:l,children:i}=t,{isPrivileged:r,loading:n,error:a}=Gt();let f;return e[0]!==l||e[1]!==i||e[2]!==a||e[3]!==r||e[4]!==n?(f=s.jsx(us,{granted:r,loading:n,error:a,area:l,children:i}),e[0]=l,e[1]=i,e[2]=a,e[3]=r,e[4]=n,e[5]=f):f=e[5],f}const ll=[{role:"owner",labelKey:"settings.roles.roleOwner"},{role:"admin",labelKey:"settings.roles.roleAdmin"},{role:"user",labelKey:"settings.roles.roleUser"}];function ol(){const t=Y.c(128),e=ee(),[l,i]=F.useState(""),[r,n]=F.useState(null),a=Ut();let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f={strict:!1},t[0]=f):f=t[0];const{role:_}=It(f),{locator:d}=Ye(),u=He(),m=it(),{customRoles:T,refetch:E}=qt();let c;t[1]!==a?(c=w=>a({to:".",search:v=>({...v,role:w})}),t[1]=a,t[2]=c):c=t[2];const g=c;let S;e:{if(!_){S=null;break e}if(_==="new"){S={kind:"new"};break e}if(_.startsWith("builtin-")){S={kind:"builtin",role:_.slice(8)};break e}let w;t[3]!==_?(w=$=>$.id===_,t[3]=_,t[4]=w):w=t[4];const v=T.find(w);S=v?{kind:"custom",role:v}:null}const C=S;let h;t[5]!==d?(h=Ne.members(d),t[5]=d,t[6]=h):h=t[6];let N;t[7]!==u?(N=()=>u.organization.listMembers(),t[7]=u,t[8]=N):N=t[8];let x;t[9]!==h||t[10]!==N?(x={queryKey:h,queryFn:N},t[9]=h,t[10]=N,t[11]=x):x=t[11];const{data:b}=nt(x);let R;t[12]!==b?.data?.members?(R=b?.data?.members??[],t[12]=b?.data?.members,t[13]=R):R=t[13];const O=R;let j;t[14]!==O?(j=w=>O.filter(v=>v.role===w).length,t[14]=O,t[15]=j):j=t[15];const A=j;let p;if(t[16]!==T||t[17]!==A||t[18]!==l||t[19]!==e){let w;t[21]!==A||t[22]!==e?(w=ie=>({kind:"builtin",role:{...ie,memberCount:A(ie.role),label:e(ie.labelKey)}}),t[21]=A,t[22]=e,t[23]=w):w=t[23];const v=ll.map(w);let $;t[24]!==A?($=ie=>({kind:"custom",role:{...ie,memberCount:A(ie.role)}}),t[24]=A,t[25]=$):$=t[25];const bt=T.map($);if(p=[...v,...bt],l){const ie=l.toLowerCase();p=p.filter(jt=>jt.role.label.toLowerCase().includes(ie))}t[16]=T,t[17]=A,t[18]=l,t[19]=e,t[20]=p}else p=t[20];let D;t[26]!==u?(D=async w=>{const v=await u.organization.deleteRole({roleId:w});if(v?.error)throw new Error(v.error.message);return v?.data},t[26]=u,t[27]=D):D=t[27];const o=rt({mutationFn:D,onSuccess:(w,v)=>{$e("role_deleted",{role_id:v}),m.invalidateQueries({queryKey:Ne.members(d)}),m.invalidateQueries({queryKey:Ne.organizationRoles(d)}),Le.success(e("settings.roles.deletedSuccessfully")),E(),C?.kind==="custom"&&C.role.id===v&&g(void 0)},onError:cl});let I;t[28]!==e?(I=e("settings.roles.columnRole"),t[28]=e,t[29]=I):I=t[29];let M;t[30]!==I?(M={id:"role",header:I,render:al,cellClassName:"flex-1 min-w-0",sortable:!0},t[30]=I,t[31]=M):M=t[31];let P;t[32]!==e?(P=e("settings.roles.columnType"),t[32]=e,t[33]=P):P=t[33];let L;t[34]!==e?(L=w=>w.kind==="builtin"?s.jsx(Me,{variant:"secondary",children:e("settings.roles.builtIn")}):s.jsx(Me,{variant:"outline",children:e("settings.roles.custom")}),t[34]=e,t[35]=L):L=t[35];let y;t[36]!==P||t[37]!==L?(y={id:"type",header:P,render:L,cellClassName:"w-28 shrink-0"},t[36]=P,t[37]=L,t[38]=y):y=t[38];let U;t[39]!==e?(U=e("settings.roles.columnPermissions"),t[39]=e,t[40]=U):U=t[40];let G;t[41]!==e?(G=w=>{if(w.kind==="builtin")return w.role.role==="owner"||w.role.role==="admin"?s.jsx("span",{className:"text-sm text-muted-foreground",children:e("settings.roles.fullAccess")}):s.jsx("span",{className:"text-sm text-muted-foreground",children:e("settings.roles.basicAccess")});const v=w.role,$=[];return v.allowsAllStaticPermissions?$.push(e("settings.roles.fullOrgAccess")):v.staticPermissionCount&&v.staticPermissionCount>0&&$.push(e("settings.roles.orgPermsCount",{count:v.staticPermissionCount})),v.allowsAllConnections?$.push(e("settings.roles.allConnections")):v.connectionCount&&v.connectionCount>0&&$.push(e("settings.roles.connectionCount",{count:v.connectionCount})),s.jsx("span",{className:"text-sm text-muted-foreground truncate",children:$.length>0?$.join(", "):e("settings.roles.noPermissions")})},t[41]=e,t[42]=G):G=t[42];let K;t[43]!==U||t[44]!==G?(K={id:"permissions",header:U,render:G,cellClassName:"flex-1 min-w-0"},t[43]=U,t[44]=G,t[45]=K):K=t[45];let z;t[46]!==e?(z=e("settings.roles.columnMembers"),t[46]=e,t[47]=z):z=t[47];let k;t[48]!==z?(k={id:"members",header:z,render:rl,cellClassName:"w-24 shrink-0"},t[48]=z,t[49]=k):k=t[49];let B;t[50]!==e?(B={id:"actions",header:"",render:w=>w.kind==="builtin"?null:s.jsxs(Kt,{children:[s.jsx(Vt,{asChild:!0,children:s.jsx(re,{variant:"ghost",size:"icon",onClick:il,children:s.jsx(Xt,{size:16})})}),s.jsx(Ft,{align:"end",onClick:nl,children:s.jsxs(zt,{variant:"destructive",onClick:()=>{const v=w.role;v.id&&n({id:v.id,label:v.label})},children:[s.jsx(es,{size:16}),e("settings.roles.delete")]})})]}),cellClassName:"w-12 shrink-0"},t[50]=e,t[51]=B):B=t[51];let H;t[52]!==M||t[53]!==y||t[54]!==K||t[55]!==k||t[56]!==B?(H=[M,y,K,k,B],t[52]=M,t[53]=y,t[54]=K,t[55]=k,t[56]=B,t[57]=H):H=t[57];const Q=H;let X;t[58]!==g?(X=w=>{if(w.kind==="builtin")g(`builtin-${w.role.role}`);else{const v=w.role;g(v.id)}},t[58]=g,t[59]=X):X=t[59];const te=X;if(C){let w;t[60]!==g?(w=()=>g(void 0),t[60]=g,t[61]=w):w=t[61];let v;return t[62]!==E||t[63]!==g?(v=()=>{E(),g(void 0)},t[62]=E,t[63]=g,t[64]=v):v=t[64],s.jsx(Xs,{target:C,onBack:w,onSaved:v},tl(C))}let V;t[65]!==e?(V=e("settings.roles.searchPlaceholder"),t[65]=e,t[66]=V):V=t[66];let Z;t[67]===Symbol.for("react.memo_cache_sentinel")?(Z=w=>{w.key==="Escape"&&(i(""),w.target.blur())},t[67]=Z):Z=t[67];let J;t[68]!==l||t[69]!==V?(J=s.jsx(Qe,{value:l,onChange:i,placeholder:V,className:"w-full md:w-[375px]",onKeyDown:Z}),t[68]=l,t[69]=V,t[70]=J):J=t[70];let le;t[71]!==g?(le=()=>g("new"),t[71]=g,t[72]=le):le=t[72];let oe;t[73]===Symbol.for("react.memo_cache_sentinel")?(oe=s.jsx(Fe,{size:16}),t[73]=oe):oe=t[73];let ne;t[74]!==e?(ne=e("settings.roles.createRole"),t[74]=e,t[75]=ne):ne=t[75];let de;t[76]!==le||t[77]!==ne?(de=s.jsx(se.Actions,{children:s.jsxs(re,{size:"sm",onClick:le,children:[oe,ne]})}),t[76]=le,t[77]=ne,t[78]=de):de=t[78];let me;t[79]!==J||t[80]!==de?(me=s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[J,de]}),t[79]=J,t[80]=de,t[81]=me):me=t[81];let ue;t[82]!==l||t[83]!==e?(ue=l?s.jsx(ot,{title:e("settings.roles.noRolesFound"),description:e("settings.roles.noRolesMatchSearch",{search:l})}):s.jsx(ot,{title:e("settings.roles.noRoles"),description:e("settings.roles.createRoleGetStarted")}),t[82]=l,t[83]=e,t[84]=ue):ue=t[84];let fe;t[85]!==p||t[86]!==Q||t[87]!==te||t[88]!==ue?(fe=s.jsx(ts,{columns:Q,data:p,isLoading:!1,onRowClick:te,emptyState:ue}),t[85]=p,t[86]=Q,t[87]=te,t[88]=ue,t[89]=fe):fe=t[89];const Be=r!==null;let ye;t[90]===Symbol.for("react.memo_cache_sentinel")?(ye=w=>!w&&n(null),t[90]=ye):ye=t[90];let ge;t[91]!==e?(ge=e("settings.roles.deleteRoleTitle"),t[91]=e,t[92]=ge):ge=t[92];let _e;t[93]!==ge?(_e=s.jsx(ft,{children:ge}),t[93]=ge,t[94]=_e):_e=t[94];const Ue=r?.label??"";let Ee;t[95]!==e||t[96]!==Ue?(Ee=e("settings.roles.deleteRoleConfirm",{role:Ue}),t[95]=e,t[96]=Ue,t[97]=Ee):Ee=t[97];let Te;t[98]!==Ee?(Te=s.jsx(gt,{children:Ee}),t[98]=Ee,t[99]=Te):Te=t[99];let Ae;t[100]!==_e||t[101]!==Te?(Ae=s.jsxs(_t,{children:[_e,Te]}),t[100]=_e,t[101]=Te,t[102]=Ae):Ae=t[102];let Ie;t[103]!==e?(Ie=e("settings.roles.cancel"),t[103]=e,t[104]=Ie):Ie=t[104];let he;t[105]!==Ie?(he=s.jsx(Et,{children:Ie}),t[105]=Ie,t[106]=he):he=t[106];let Re;t[107]!==o||t[108]!==r?(Re=()=>{r?.id&&o.mutate(r.id),n(null)},t[107]=o,t[108]=r,t[109]=Re):Re=t[109];let pe;t[110]!==e?(pe=e("settings.roles.delete"),t[110]=e,t[111]=pe):pe=t[111];let xe;t[112]!==Re||t[113]!==pe?(xe=s.jsx(Tt,{onClick:Re,variant:"destructive",children:pe}),t[112]=Re,t[113]=pe,t[114]=xe):xe=t[114];let Se;t[115]!==he||t[116]!==xe?(Se=s.jsxs(At,{children:[he,xe]}),t[115]=he,t[116]=xe,t[117]=Se):Se=t[117];let Oe;t[118]!==Ae||t[119]!==Se?(Oe=s.jsxs(ut,{children:[Ae,Se]}),t[118]=Ae,t[119]=Se,t[120]=Oe):Oe=t[120];let Ce;t[121]!==Be||t[122]!==Oe?(Ce=s.jsx(mt,{open:Be,onOpenChange:ye,children:Oe}),t[121]=Be,t[122]=Oe,t[123]=Ce):Ce=t[123];let ve;return t[124]!==me||t[125]!==fe||t[126]!==Ce?(ve=s.jsxs(ht,{group:"members",className:"gap-6",children:[me,fe,Ce]}),t[124]=me,t[125]=fe,t[126]=Ce,t[127]=ve):ve=t[127],ve}function nl(t){return t.stopPropagation()}function il(t){return t.stopPropagation()}function rl(t){return s.jsx("span",{className:"text-sm text-foreground",children:t.role.memberCount})}function al(t){return s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:q("size-2.5 rounded-full shrink-0",Rt(t.role.role,t.kind==="builtin"))}),s.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:t.role.label}),t.kind==="builtin"&&s.jsx(at,{size:12,className:"text-muted-foreground shrink-0"})]})}function cl(t,e){$e("role_delete_failed",{role_id:e,error:t instanceof Error?t.message:String(t)}),Le.error(t instanceof Error?t.message:"Failed to delete role")}function dl(){const t=Y.c(13),e=ee();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},t[0]=l):l=t[0];const{role:i}=It(l);let r;t[1]!==e?(r=e("settings.roles.failedToLoad"),t[1]=e,t[2]=r):r=t[2];let n;t[3]!==r?(n=s.jsx(se,{children:s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-sm text-muted-foreground",children:r})})}),t[3]=r,t[4]=n):n=t[4];let a;t[5]!==i?(a=i?s.jsx(se,{children:s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx(we,{className:"size-8 text-muted-foreground"})})}):s.jsx(ht,{group:"members",className:"gap-6",children:s.jsx(kt,{})}),t[5]=i,t[6]=a):a=t[6];let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(ol,{}),t[7]=f):f=t[7];let _;t[8]!==a?(_=s.jsx(F.Suspense,{fallback:a,children:f}),t[8]=a,t[9]=_):_=t[9];let d;return t[10]!==n||t[11]!==_?(d=s.jsx(Bt,{fallback:n,children:_}),t[10]=n,t[11]=_,t[12]=d):d=t[12],d}function xo(){const t=Y.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(sl,{area:"roles",children:s.jsx(dl,{})}),t[0]=e):e=t[0],e}export{xo as default};
|