decocms 4.82.4 → 4.82.6
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-C_R2gNR6.js → AlertCircle-DIU1uwdv.js} +1 -1
- package/dist/client/assets/{AreaChart-C2NnxYNE.js → AreaChart-DnLoYMeA.js} +1 -1
- package/dist/client/assets/{ArrowUp-B1StHCTH.js → ArrowUp-CamnDqii.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Ca8yn7_h.js → ArrowUpRight-CISxEI__.js} +1 -1
- package/dist/client/assets/{Check-CHN1T8vI.js → Check-BLgWD0GA.js} +1 -1
- package/dist/client/assets/{CheckCircle-CaqljOnz.js → CheckCircle-BqjLVgLk.js} +1 -1
- package/dist/client/assets/{ChevronDown-DeKhnunA.js → ChevronDown-Cg28vsPI.js} +1 -1
- package/dist/client/assets/{ChevronRight-C6t8IZZc.js → ChevronRight-Cb1USg65.js} +1 -1
- package/dist/client/assets/{ChevronUp-ByLiGcrz.js → ChevronUp-CVyZKv1_.js} +1 -1
- package/dist/client/assets/{Circle-Akjlxa1B.js → Circle-DI447HWO.js} +1 -1
- package/dist/client/assets/{Copy01-D_XFEDz5.js → Copy01-D2SShEQK.js} +1 -1
- package/dist/client/assets/{DotsVertical-DwGEoc3a.js → DotsVertical-CoznmdrB.js} +1 -1
- package/dist/client/assets/{Eye-BdDoUsgN.js → Eye-De--_5qN.js} +1 -1
- package/dist/client/assets/{FilterLines-D5F51p9V.js → FilterLines-DUaafveS.js} +1 -1
- package/dist/client/assets/{Flag01-DRon0ZUu.js → Flag01-FtzPWX1n.js} +1 -1
- package/dist/client/assets/{Globe01-CDfSxX3-.js → Globe01-cVMolXWh.js} +1 -1
- package/dist/client/assets/{Globe04-BOvSDMUd.js → Globe04-CczeFOJe.js} +1 -1
- package/dist/client/assets/{HardDrive-BG6k4mGW.js → HardDrive-BuU81L4m.js} +1 -1
- package/dist/client/assets/{Image01-BHNPXrnC.js → Image01-ChxMgnn2.js} +1 -1
- package/dist/client/assets/{Key01-C3yVFpbS.js → Key01-DP9CGc6F.js} +1 -1
- package/dist/client/assets/{LayoutLeft-T-ESxFnl.js → LayoutLeft-DW0zflCC.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BwkQzfkf.js → LinkExternal01-Dd4SbuIj.js} +1 -1
- package/dist/client/assets/{List-B9Fa3bXa.js → List-ByU6rPiQ.js} +1 -1
- package/dist/client/assets/{Monitor01--TFQb6Ix.js → Monitor01-CVbOlbf2.js} +1 -1
- package/dist/client/assets/{Package-DvWDWZFB.js → Package-DvOb2_yI.js} +1 -1
- package/dist/client/assets/{Palette-DRMDR8JV.js → Palette-D2-we9W6.js} +1 -1
- package/dist/client/assets/{Play-Bu8Z0F10.js → Play-Bq1qRxWx.js} +1 -1
- package/dist/client/assets/{Plus-B2SZN6mH.js → Plus-BWQZgcQa.js} +1 -1
- package/dist/client/assets/{SearchLg-cnYdsIh9.js → SearchLg-eFn18Kw_.js} +1 -1
- package/dist/client/assets/{SearchMd-DoLlnPcs.js → SearchMd-Dlt1D-Qo.js} +1 -1
- package/dist/client/assets/{Settings02-BJaUducV.js → Settings02-9mOFpnzI.js} +1 -1
- package/dist/client/assets/{Shield01-CRbVn2DO.js → Shield01-CkzK3E6r.js} +1 -1
- package/dist/client/assets/{Star01-DVTMTzj3.js → Star01-AiaSH0JI.js} +1 -1
- package/dist/client/assets/{Stars01-gidBm02o.js → Stars01-DYgZhwBc.js} +1 -1
- package/dist/client/assets/{Stars02-D25QqAmt.js → Stars02-w19ZwBFJ.js} +1 -1
- package/dist/client/assets/{Sun-BfpGkeDJ.js → Sun-B1hSjUpN.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-C8k2Pvdq.js → SwitchHorizontal01-BxFMtX4G.js} +1 -1
- package/dist/client/assets/{Tool01-B-H3cWyo.js → Tool01-c-l8OjRL.js} +1 -1
- package/dist/client/assets/{Tool02-CxiSJzZp.js → Tool02-wdfimN2K.js} +1 -1
- package/dist/client/assets/{Trash01-3RGYR5ZZ.js → Trash01-CUnIOwwf.js} +1 -1
- package/dist/client/assets/{TrendUp01-BIZ2rqpR.js → TrendUp01-gEAGFYpT.js} +1 -1
- package/dist/client/assets/{Upload01-QJcrfIv8.js → Upload01-FXH6UaQm.js} +1 -1
- package/dist/client/assets/{User01-MduAtdbm.js → User01-p4G6hdbF.js} +1 -1
- package/dist/client/assets/{UserPlus01-DFOW-O5v.js → UserPlus01-DwA-Q4Du.js} +1 -1
- package/dist/client/assets/{Users01-BPKikrPB.js → Users01-BxE0ziAp.js} +1 -1
- package/dist/client/assets/{Users03-IG5JVRz9.js → Users03-Bs9-dPfr.js} +1 -1
- package/dist/client/assets/{X-CGox_cIc.js → X-DtxBnPlu.js} +1 -1
- package/dist/client/assets/{XCircle-CW8s2hOY.js → XCircle-BvPQAGLO.js} +1 -1
- package/dist/client/assets/{XClose-B0KA3C8u.js → XClose-CzvlYGZI.js} +1 -1
- package/dist/client/assets/{Zap-I1E7lqUU.js → Zap-Bjw6u1jh.js} +1 -1
- package/dist/client/assets/{ZapSquare-1bKpNdcW.js → ZapSquare-DLWh2NtR.js} +1 -1
- package/dist/client/assets/{ZoomOut-xslIZ2b2.js → ZoomOut-C_52xIm1.js} +1 -1
- package/dist/client/assets/{access-gate-Dz6XZqwf.js → access-gate-LB7WRcMv.js} +1 -1
- package/dist/client/assets/{add-section-modal-SIAZEdMS.js → add-section-modal-BVXvs76A.js} +1 -1
- package/dist/client/assets/{agent-icon-DTwuae9u.js → agent-icon-BC_KNLBc.js} +1 -1
- package/dist/client/assets/{agents-list-P8MujZb1.js → agents-list-CfyUhmMv.js} +1 -1
- package/dist/client/assets/{ai-providers-C51sPi-D.js → ai-providers-i0zually.js} +1 -1
- package/dist/client/assets/{alert-DXQE21-8.js → alert-CI9hvRMI.js} +1 -1
- package/dist/client/assets/{alert-dialog-DC9ppgrc.js → alert-dialog-CnIFkNbq.js} +1 -1
- package/dist/client/assets/{app-editor-EHw7oC0S.js → app-editor-C2Abaowd.js} +1 -1
- package/dist/client/assets/{auth-B2MrKpCt.js → auth-ChMYVWrY.js} +1 -1
- package/dist/client/assets/{auth-catchall-Ku2OintM.js → auth-catchall-CmtpBOwL.js} +1 -1
- package/dist/client/assets/{auth-entry-CJkn94dH.js → auth-entry-BEDszYEw.js} +1 -1
- package/dist/client/assets/{auth-split-layout-EWwj4ksJ.js → auth-split-layout-xlrFEMN5.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-hrrJBGtM.js → authenticate-and-persist-oauth-DseA9DEc.js} +1 -1
- package/dist/client/assets/{automation-list-row-DHlgW_F4.js → automation-list-row-CqhTNcxw.js} +1 -1
- package/dist/client/assets/{automation-runs-ztbqdTSF.js → automation-runs-CYcQ6kWY.js} +1 -1
- package/dist/client/assets/automations-Do2UCzP1.js +1 -0
- package/dist/client/assets/{autosend-D-bsHKL6.js → autosend-lbXPihmg.js} +1 -1
- package/dist/client/assets/{avatar-BIRf-1JV.js → avatar-Bvo7wmug.js} +1 -1
- package/dist/client/assets/{badge-NQMfn1dt.js → badge-CPED7mjY.js} +1 -1
- package/dist/client/assets/{block-document-D7aa039Q.js → block-document-BXrINyiU.js} +1 -1
- package/dist/client/assets/{brand-context-vatlIWcL.js → brand-context-BnMyNO0t.js} +1 -1
- package/dist/client/assets/{buckets-BjV0MOlQ.js → buckets-Bmg5Q9ho.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-o61dLDPe.js → bulk-category-panel-DAZkQjF-.js} +1 -1
- package/dist/client/assets/{calendar-BcjoSWjl.js → calendar-OiDQRfAL.js} +1 -1
- package/dist/client/assets/{capability-load-error-BStQ9veQ.js → capability-load-error-BEH79uiJ.js} +1 -1
- package/dist/client/assets/{card-BCHwENDj.js → card-C25LFblr.js} +1 -1
- package/dist/client/assets/{category-editor-Cu3vO8_V.js → category-editor-BbhmhtHO.js} +1 -1
- package/dist/client/assets/{chat-context-pyYL3ixq.js → chat-context-ClVlxf8D.js} +1 -1
- package/dist/client/assets/{checkbox-CWSfmUzO.js → checkbox-fXU1EWi8.js} +1 -1
- package/dist/client/assets/{cli-auth-success-vIgCiHLf.js → cli-auth-success-RT6T0eE2.js} +1 -1
- package/dist/client/assets/{collection-detail-BlcQ7GrA.js → collection-detail-CNGp3Hsu.js} +1 -1
- package/dist/client/assets/{collection-display-button-Mwx5_6Gd.js → collection-display-button-CUbxXoi5.js} +1 -1
- package/dist/client/assets/{collection-search-Z_8iQC5w.js → collection-search-BdhAAZpQ.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BOSeWXSE.js → collection-table-wrapper-GtiePLuG.js} +1 -1
- package/dist/client/assets/{collection-tabs-IXdsYZLL.js → collection-tabs-BD7HCyJk.js} +1 -1
- package/dist/client/assets/{command-DDK9C2Ku.js → command-BghfotR8.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-Dc3MPtD5.js → commerce-onboarding-DflK-k14.js} +1 -1
- package/dist/client/assets/{companions-core-D0swijM3.js → companions-core-DT_zSdiA.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-W8rk23aM.js → connect-desktop-dialog-CoC6V2tY.js} +1 -1
- package/dist/client/assets/{connection-card-DHRk2I51.js → connection-card-Dus961Yu.js} +1 -1
- package/dist/client/assets/{connection-detail-WLsxZT6x.js → connection-detail-DHbMLyqZ.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-tWgv4Wes.js → connection-form-helpers-FCIigXAi.js} +1 -1
- package/dist/client/assets/{connections-Dj0WAX5w.js → connections-So5Zcaxb.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-D4sUN2DX.js → decopilot-sse-pool-vnCOX06s.js} +1 -1
- package/dist/client/assets/{dialog-Df9j8Uag.js → dialog-EZ6iyRXQ.js} +1 -1
- package/dist/client/assets/{domain-settings-ClsWOiiS.js → domain-settings-f3cMqhGq.js} +1 -1
- package/dist/client/assets/{drawer-SQ2tdg7g.js → drawer-ByyV2koe.js} +1 -1
- package/dist/client/assets/{dropdown-menu-D3TO7NsH.js → dropdown-menu-Ct8YWftD.js} +1 -1
- package/dist/client/assets/{empty-state-CtQmVSR3.js → empty-state-9-GSZWvK.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DHZE5fNa.js → extract-connection-data-CJhaI7u1.js} +1 -1
- package/dist/client/assets/{file-explorer-DU7EXv5i.js → file-explorer-D1AOfE09.js} +1 -1
- package/dist/client/assets/{file-type-icon-CnZBX84T.js → file-type-icon-Drr92e1P.js} +1 -1
- package/dist/client/assets/{files-DkXTyaOg.js → files-D6SgX8E7.js} +1 -1
- package/dist/client/assets/{form-Dfkw50Nf.js → form-Da1cOVEZ.js} +1 -1
- package/dist/client/assets/{general-BDPrZlkS.js → general-BFKIv9bO.js} +1 -1
- package/dist/client/assets/{github-repo-picker-mjAYmFki.js → github-repo-picker-BcVBQazG.js} +1 -1
- package/dist/client/assets/{hooks-DGbRldGt.js → hooks-Cz2-83Bk.js} +1 -1
- package/dist/client/assets/{index-rdpvJSGU.js → index-7i9DLBW9.js} +1 -1
- package/dist/client/assets/{index-BbQNPbWq.js → index-BSEB05QB.js} +1 -1
- package/dist/client/assets/{index-Ds-HfC6n.js → index-BTHbZ3fW.js} +3 -3
- package/dist/client/assets/{index-BGtrS9Vk.js → index-Bddr5jlE.js} +1 -1
- package/dist/client/assets/{index-DRJdjAA8.js → index-CVxYcyWT.js} +1 -1
- package/dist/client/assets/{index-jyU4Aq6-.js → index-Cp9QbUc7.js} +1 -1
- package/dist/client/assets/{index-CMhDqMuC.js → index-CzuAtNO8.js} +1 -1
- package/dist/client/assets/{index-ly0tFqQY.js → index-DR3FAFcH.js} +1 -1
- package/dist/client/assets/{index-Dw4gy48n.js → index-DnKkKkvY.js} +1 -1
- package/dist/client/assets/{index-B92vyGB4.js → index-T1gR9lmU.js} +1 -1
- package/dist/client/assets/{index-D2dvWBW6.js → index-ch7ZdrcQ.js} +2 -2
- package/dist/client/assets/{index-BuY013d1.js → index-dFZZw5J1.js} +1 -1
- package/dist/client/assets/{index-redirect-RB3wZKH8.js → index-redirect-AOlU1tmb.js} +1 -1
- package/dist/client/assets/{index-Dwt0b6RB.js → index-wJ224uw5.js} +1 -1
- package/dist/client/assets/{index-DZaSGphN.js → index-xc_m0Zus.js} +5 -5
- package/dist/client/assets/{input-CwsDeRW1.js → input-Y6fWR28g.js} +1 -1
- package/dist/client/assets/{integration-icon-DLCIjog7.js → integration-icon-DOF5PeCM.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-BGTRU1EK.js → invite-member-dialog-CQkwXVyT.js} +1 -1
- package/dist/client/assets/{label-D06iDaWq.js → label-pxY21Qew.js} +1 -1
- package/dist/client/assets/{layout-DveW2ipT.js → layout-ipN7avwt.js} +1 -1
- package/dist/client/assets/{login-DJr0aA_v.js → login-Bx5zQWJB.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DsKnJBMS.js → mcp-oauth-BVfik1ai.js} +1 -1
- package/dist/client/assets/{members-IAS61mQc.js → members-B0ZDEgAK.js} +1 -1
- package/dist/client/assets/{monaco-editor-D3doD1gM.js → monaco-editor-SCX0G783.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DN4Ghntn.js → monitoring-stats-row-C9KVnDW4.js} +1 -1
- package/dist/client/assets/{multi-select-BB72kUkY.js → multi-select-X2bqwBQP.js} +1 -1
- package/dist/client/assets/{oauth-callback-BcwuhfDj.js → oauth-callback-BydnBd5x.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-mJJkqzAZ.js → oauth-callback-ai-provider-DkzLy-5w.js} +1 -1
- package/dist/client/assets/{onboarding-BLJ-vfB6.js → onboarding-WkTFPhEE.js} +1 -1
- package/dist/client/assets/{org-install-D7qYcSHc.js → org-install-DkUwrnkk.js} +1 -1
- package/dist/client/assets/{org-layout-B3hCZxHs.js → org-layout-Dwifq_1y.js} +1 -1
- package/dist/client/assets/{organization-choice-CjDO8mq_.js → organization-choice-BTHJIJNQ.js} +1 -1
- package/dist/client/assets/{orgs-CpmdEjfb.js → orgs-B_Co6IVQ.js} +1 -1
- package/dist/client/assets/{page-seo-form-Dn6l-GbC.js → page-seo-form-DJ4H6xNv.js} +1 -1
- package/dist/client/assets/page-seo-sheet-C0u8Dags.js +1 -0
- package/dist/client/assets/{popover-DOTl-8IJ.js → popover-nJWbvGy7.js} +1 -1
- package/dist/client/assets/{post-editor-BCsrxsYC.js → post-editor-DTYZK67a.js} +1 -1
- package/dist/client/assets/{primitives-CL8pfXwb.js → primitives-D4752m-j.js} +1 -1
- package/dist/client/assets/{profile-BX8RXmcm.js → profile-vwnpAtK8.js} +1 -1
- package/dist/client/assets/project-app-view-OSpZaDRN.js +1 -0
- package/dist/client/assets/record-editor-DQVrJiTB.js +1 -0
- package/dist/client/assets/redirect-editor-kEMnEOwJ.js +1 -0
- package/dist/client/assets/registry-DYJw6Uls.js +2 -0
- package/dist/client/assets/{registry-layout-E5qs1vxm.js → registry-layout-CLeQnwpl.js} +1 -1
- package/dist/client/assets/{reports-jslr43jc.js → reports-Bjm7qUBw.js} +1 -1
- package/dist/client/assets/{require-capability-x1ztzZLs.js → require-capability-BzXq43l4.js} +1 -1
- package/dist/client/assets/{required-auth-layout-B6YgJRpI.js → required-auth-layout-CUy26Z1A.js} +1 -1
- package/dist/client/assets/{reset-password-BMmVNkHt.js → reset-password-D4TxPMfh.js} +1 -1
- package/dist/client/assets/{roles-lJO6OZgQ.js → roles-Ciu-I_GH.js} +1 -1
- package/dist/client/assets/{search-input-Dp4ccMqk.js → search-input-Cg-ovBCv.js} +1 -1
- package/dist/client/assets/{secrets-BJc7uX9z.js → secrets-D5AvnWsw.js} +1 -1
- package/dist/client/assets/{sections-editor-Dv7kNd1E.js → sections-editor-BMpJHKJ4.js} +1 -1
- package/dist/client/assets/{select-rVmmMqu5.js → select-Vm7c_PEj.js} +1 -1
- package/dist/client/assets/select-model-CVLWyRoG.js +4 -0
- package/dist/client/assets/{self-tool-result-BgMbqusE.js → self-tool-result-w_Zlb9WS.js} +1 -1
- package/dist/client/assets/{seo-editor-BRGADy3w.js → seo-editor-DzAJdWzw.js} +1 -1
- package/dist/client/assets/{settings-layout-Ce73Sz_V.js → settings-layout-DF10DBX1.js} +1 -1
- package/dist/client/assets/{settings-section-C7QXqmBb.js → settings-section-Brqo1YO8.js} +1 -1
- package/dist/client/assets/{shell-controls-Bzt-lxOC.js → shell-controls-60oy-rGN.js} +1 -1
- package/dist/client/assets/{shell-layout-D0_WcVHi.js → shell-layout-7FU1v8gU.js} +1 -1
- package/dist/client/assets/{sidebar-k4saLJHr.js → sidebar-BrpJd6_A.js} +1 -1
- package/dist/client/assets/{skeleton-Cl7rlzcs.js → skeleton-ChKXORf5.js} +1 -1
- package/dist/client/assets/{sso-CJllknu9.js → sso-CQq4ntu1.js} +1 -1
- package/dist/client/assets/{store-B8KCK-yh.js → store-6IOz2qa6.js} +1 -1
- package/dist/client/assets/store-registry-Oa-Husi-.js +2 -0
- package/dist/client/assets/{studio-tools-BCF7Emba.js → studio-tools-DI7xpOjd.js} +1 -1
- package/dist/client/assets/{switch-p99UQqZH.js → switch-B8Hk0TKk.js} +1 -1
- package/dist/client/assets/{table-4qGBxfdb.js → table-OsCmHrD5.js} +1 -1
- package/dist/client/assets/{tabs-ByKIufCY.js → tabs-BgbvJYk6.js} +1 -1
- package/dist/client/assets/{textarea-CNNNBEcd.js → textarea-CN4z27sS.js} +1 -1
- package/dist/client/assets/{toggle-group-BRjSMSnU.js → toggle-group-C5mGj81m.js} +1 -1
- package/dist/client/assets/{toolbar-efUhUw5A.js → toolbar-QfI0EeNc.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-Do2DZvKF.js → toolbar-icon-button-C8srmDtO.js} +1 -1
- package/dist/client/assets/{tooltip-DF9ELLft.js → tooltip-C_Bvrl8y.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BhqApjOp.js → use-ai-providers-CamRs5rN.js} +1 -1
- package/dist/client/assets/{use-automations-DCss45mw.js → use-automations-CEBJlrhb.js} +1 -1
- package/dist/client/assets/{use-autosave-DNyaoSmX.js → use-autosave-j5aLaTVz.js} +1 -1
- package/dist/client/assets/{use-capability-BFu21g24.js → use-capability-LZTPbrlj.js} +1 -1
- package/dist/client/assets/{use-clock-tick-D7vB-RjW.js → use-clock-tick-Be0TWnWI.js} +1 -1
- package/dist/client/assets/{use-collections-D-jn7che.js → use-collections-CsRObdNV.js} +1 -1
- package/dist/client/assets/{use-connection-BQsuZGTe.js → use-connection-BJhUDGnD.js} +1 -1
- package/dist/client/assets/{use-copy-BwC3MtYV.js → use-copy-kOixGsfY.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DDSfNlQ3.js → use-create-virtual-mcp-CZ8Bo0Um.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-D2fWtiut.js → use-debounced-autosave-DyKUtJGv.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Cy-FxJxI.js → use-debounced-value-C5OJJMcr.js} +1 -1
- package/dist/client/assets/{use-deco-credits-C7qriL8q.js → use-deco-credits-DTgWl2Tv.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BnIE-ELu.js → use-decopilot-events-NYQdS56r.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DJVX-_Ob.js → use-delete-connection-CoZkMUoW.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-C3Ofcw24.js → use-deployment-admin-B3pmPeeJ.js} +1 -1
- package/dist/client/assets/{use-file-configs-p2bSDLWv.js → use-file-configs-Bwb8sm-4.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CNHh35jb.js → use-infinite-scroll-BEG3HyUM.js} +1 -1
- package/dist/client/assets/{use-join-requests-DlOBkYyR.js → use-join-requests-N2CmqG2A.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-D44bggig.js → use-mcp-auth-status-BEszDSCC.js} +1 -1
- package/dist/client/assets/{use-mcp-client-_br2p_bf.js → use-mcp-client-B8WahVOd.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CUj9YOKr.js → use-mcp-tools-D7wpdYV7.js} +1 -1
- package/dist/client/assets/{use-members-DICSbVvO.js → use-members-BgmxYNRw.js} +1 -1
- package/dist/client/assets/{use-mobile-1EYV2ZBj.js → use-mobile-nbFOyGxy.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-B9NcIkNG.js → use-navigate-to-agent-BKQZ-pdr.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BXLsMe6m.js → use-org-auth-client-DmK8bIFg.js} +1 -1
- package/dist/client/assets/{use-org-sso-BgfPMjp-.js → use-org-sso-DqjmsSsi.js} +1 -1
- package/dist/client/assets/{use-organization-roles-IEDYHPkh.js → use-organization-roles-DIaYB6zC.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DZRIsOxS.js → use-organization-settings-BiUDKqg7.js} +1 -1
- package/dist/client/assets/{use-registry-app-DthhTf0w.js → use-registry-app-Cn7DFJPG.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CMcjRfMM.js → use-registry-connections-DoTPFx8G.js} +1 -1
- package/dist/client/assets/{use-secrets-Du-COw7H.js → use-secrets-DdrwnKIR.js} +1 -1
- package/dist/client/assets/{use-status-sounds-D9V29Hpa.js → use-status-sounds-DLvtE-i2.js} +1 -1
- package/dist/client/assets/{use-view-mode-CueytzVI.js → use-view-mode-Csgx1BiO.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Cje5EUFo.js → use-virtual-mcp-XdCpZoe5.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DZam2UcH.js +1 -0
- package/dist/client/assets/{useRouterState-Xqnk9hIU.js → useRouterState-DJuBNhC7.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DR3wIRlE.js +1 -0
- package/dist/client/assets/{users-DnlmOz7t.js → users-Bu2It7c4.js} +1 -1
- package/dist/client/assets/{variant-calendar-BNHd1W7e.js → variant-calendar-DjSWKU4q.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DqeJHxMa.js → view-mode-toggle-DqUBGhss.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/automations-CWsPljNK.js +0 -1
- package/dist/client/assets/page-seo-sheet-CrljFz8_.js +0 -1
- package/dist/client/assets/project-app-view-BVXgPoP_.js +0 -1
- package/dist/client/assets/record-editor-CHQ8PoX4.js +0 -1
- package/dist/client/assets/redirect-editor-Cjavuusd.js +0 -1
- package/dist/client/assets/registry-Cn3MLkyj.js +0 -2
- package/dist/client/assets/select-model-_p-BWObi.js +0 -4
- package/dist/client/assets/store-registry-BtewmP4q.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BRkIiLOG.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BFeUiYZI.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as B,j as o,C as L,b as T,r as $,B as M,p as N}from"./index-Ds-HfC6n.js";import{s as q}from"./Plus-B2SZN6mH.js";import{i as S}from"./Zap-I1E7lqUU.js";import{S as D}from"./search-input-Dp4ccMqk.js";import{P as l}from"./index-BbQNPbWq.js";import{E as b}from"./empty-state-CtQmVSR3.js";import{c as O}from"./use-automations-DCss45mw.js";import{c as V}from"./use-navigate-to-agent-B9NcIkNG.js";import{A as F}from"./automation-list-row-DHlgW_F4.js";import{f as G}from"./constants-BHDe7bIw.js";import{u as H}from"./use-virtual-mcp-Cje5EUFo.js";import{R as J}from"./require-capability-x1ztzZLs.js";import"./SearchMd-DoLlnPcs.js";import"./sidebar-k4saLJHr.js";import"./LayoutLeft-T-ESxFnl.js";import"./use-mobile-1EYV2ZBj.js";import"./X-CGox_cIc.js";import"./tooltip-DF9ELLft.js";import"./use-mcp-client-_br2p_bf.js";import"./auth-B2MrKpCt.js";import"./studio-tools-BCF7Emba.js";import"./hooks-DGbRldGt.js";import"./decopilot-sse-pool-D4sUN2DX.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./reusable-new-chat-CouMjkYR.js";import"./alert-dialog-DC9ppgrc.js";import"./dropdown-menu-D3TO7NsH.js";import"./Check-CHN1T8vI.js";import"./ChevronRight-C6t8IZZc.js";import"./Circle-Akjlxa1B.js";import"./Stars02-D25QqAmt.js";import"./DotsVertical-DwGEoc3a.js";import"./Trash01-3RGYR5ZZ.js";import"./agent-icon-DTwuae9u.js";import"./AlertCircle-C_R2gNR6.js";import"./UserPlus01-DFOW-O5v.js";import"./Tool01-B-H3cWyo.js";import"./ArrowUp-B1StHCTH.js";import"./Settings02-BJaUducV.js";import"./Tool02-CxiSJzZp.js";import"./XCircle-CW8s2hOY.js";import"./ArrowUpRight-Ca8yn7_h.js";import"./TrendUp01-BIZ2rqpR.js";import"./ZapSquare-1bKpNdcW.js";import"./ZoomOut-xslIZ2b2.js";import"./Users03-IG5JVRz9.js";import"./CheckCircle-CaqljOnz.js";import"./ChevronDown-DeKhnunA.js";import"./ChevronUp-ByLiGcrz.js";import"./Copy01-D_XFEDz5.js";import"./Globe01-CDfSxX3-.js";import"./Eye-BdDoUsgN.js";import"./FilterLines-D5F51p9V.js";import"./Flag01-DRon0ZUu.js";import"./Star01-DVTMTzj3.js";import"./Globe04-BOvSDMUd.js";import"./SwitchHorizontal01-C8k2Pvdq.js";import"./HardDrive-BG6k4mGW.js";import"./Image01-BHNPXrnC.js";import"./Key01-C3yVFpbS.js";import"./LinkExternal01-BwkQzfkf.js";import"./List-B9Fa3bXa.js";import"./Monitor01--TFQb6Ix.js";import"./Sun-BfpGkeDJ.js";import"./Package-DvWDWZFB.js";import"./Palette-DRMDR8JV.js";import"./Play-Bu8Z0F10.js";import"./SearchLg-cnYdsIh9.js";import"./Shield01-CRbVn2DO.js";import"./Stars01-gidBm02o.js";import"./Upload01-QJcrfIv8.js";import"./User01-MduAtdbm.js";import"./Users01-BPKikrPB.js";import"./XClose-B0KA3C8u.js";import"./use-collections-D-jn7che.js";import"./use-capability-BFu21g24.js";import"./access-gate-Dz6XZqwf.js";import"./capability-load-error-BStQ9veQ.js";function K(){const t=B.c(16),{org:e}=L(),{data:w}=O(void 0),u=w===void 0?[]:w,R=H(),k=V(),d=T(),[f,E]=$.useState(""),g=f.toLowerCase(),y=new Map(R.map(Q)),C=u.filter(i=>{if(!g||i.name.toLowerCase().includes(g))return!0;if(i.virtual_mcp_id){const a=y.get(i.virtual_mcp_id);if(a&&a.title.toLowerCase().includes(g))return!0}return!1}),P=(i,a)=>{const A=a&&y.has(a)?a:G(e.id);N("automations_list_row_clicked",{automation_id:i,agent_id:A,source:"settings_automations"}),k(A,{search:{main:"automation:"+i}})};let n;t[0]!==d||t[1]!==e.slug?(n=()=>{N("automations_empty_state_browse_agents_clicked"),d({to:"/$org/settings/agents",params:{org:e.slug}})},t[0]=d,t[1]=e.slug,t[2]=n):n=t[2];const z=n,x=l,h=l,j=l;let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(l.Title,{children:"Automations"}),t[3]=p):p=t[3];const _=u.length>0&&o.jsx(D,{value:f,onChange:E,placeholder:"Search automations...",className:"w-full md:w-[375px]"});let r;t[4]!==_?(r=o.jsxs("div",{className:"flex flex-col gap-6",children:[p,_]}),t[4]=_,t[5]=r):r=t[5];const v=u.length===0?o.jsx("div",{className:"flex items-center justify-center py-20",children:o.jsx(b,{image:o.jsx(S,{size:48,className:"text-muted-foreground"}),title:"No automations yet",description:"Automations are created per agent. Open an agent and add one from its Automations tab.",actions:o.jsxs(M,{size:"sm",onClick:z,children:[o.jsx(q,{size:14}),"Browse agents"]})})}):C.length===0?o.jsx("div",{className:"flex items-center justify-center py-20",children:o.jsx(b,{image:o.jsx(S,{size:48,className:"text-muted-foreground"}),title:"No automations found",description:`No automations match "${f}"`})}):o.jsx("div",{className:"mt-6 rounded-xl border border-border overflow-hidden",children:C.map(i=>o.jsx(F,{automation:i,showAgent:!0,onClick:()=>P(i.id,i.virtual_mcp_id)},i.id))});let s;t[6]!==j.Body||t[7]!==r||t[8]!==v?(s=o.jsxs(j.Body,{children:[r,v]}),t[6]=j.Body,t[7]=r,t[8]=v,t[9]=s):s=t[9];let m;t[10]!==h.Content||t[11]!==s?(m=o.jsx(h.Content,{children:s}),t[10]=h.Content,t[11]=s,t[12]=m):m=t[12];let c;return t[13]!==x||t[14]!==m?(c=o.jsx(x,{children:m}),t[13]=x,t[14]=m,t[15]=c):c=t[15],c}function Q(t){return[t.id,t]}function vo(){const t=B.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(J,{capability:"automations:manage",area:"automations",children:o.jsx(K,{})}),t[0]=e):e=t[0],e}export{vo as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as it,r as E,j as e,i as rt}from"./index-Ds-HfC6n.js";import{m as mt,o as pt,p as st,q as at}from"./sidebar-k4saLJHr.js";import{A as nt}from"./automation-runs-ztbqdTSF.js";import{r as lt,u as ct,a as dt,b as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-Dn6l-GbC.js";import{r as xt}from"./index-DZaSGphN.js";import"./LayoutLeft-T-ESxFnl.js";import"./use-mobile-1EYV2ZBj.js";import"./X-CGox_cIc.js";import"./tooltip-DF9ELLft.js";import"./select-rVmmMqu5.js";import"./Check-CHN1T8vI.js";import"./ChevronDown-DeKhnunA.js";import"./ChevronUp-ByLiGcrz.js";import"./useInfiniteQuery-BRkIiLOG.js";import"./use-infinite-scroll-CNHh35jb.js";import"./use-connection-BQsuZGTe.js";import"./use-collections-D-jn7che.js";import"./use-mcp-client-_br2p_bf.js";import"./constants-BHDe7bIw.js";import"./auth-B2MrKpCt.js";import"./use-virtual-mcp-Cje5EUFo.js";import"./card-BCHwENDj.js";import"./table-4qGBxfdb.js";import"./empty-state-CtQmVSR3.js";import"./use-members-DICSbVvO.js";import"./use-org-auth-client-BXLsMe6m.js";import"./use-clock-tick-D7vB-RjW.js";import"./AlertCircle-C_R2gNR6.js";import"./CheckCircle-CaqljOnz.js";import"./Circle-Akjlxa1B.js";import"./agent-icon-DTwuae9u.js";import"./UserPlus01-DFOW-O5v.js";import"./Tool01-B-H3cWyo.js";import"./ArrowUp-B1StHCTH.js";import"./Settings02-BJaUducV.js";import"./Tool02-CxiSJzZp.js";import"./XCircle-CW8s2hOY.js";import"./ArrowUpRight-Ca8yn7_h.js";import"./TrendUp01-BIZ2rqpR.js";import"./ZapSquare-1bKpNdcW.js";import"./ZoomOut-xslIZ2b2.js";import"./Users03-IG5JVRz9.js";import"./ChevronRight-C6t8IZZc.js";import"./Stars02-D25QqAmt.js";import"./Copy01-D_XFEDz5.js";import"./DotsVertical-DwGEoc3a.js";import"./Globe01-CDfSxX3-.js";import"./Eye-BdDoUsgN.js";import"./FilterLines-D5F51p9V.js";import"./Flag01-DRon0ZUu.js";import"./Star01-DVTMTzj3.js";import"./Globe04-BOvSDMUd.js";import"./SwitchHorizontal01-C8k2Pvdq.js";import"./HardDrive-BG6k4mGW.js";import"./Image01-BHNPXrnC.js";import"./Key01-C3yVFpbS.js";import"./LinkExternal01-BwkQzfkf.js";import"./List-B9Fa3bXa.js";import"./Monitor01--TFQb6Ix.js";import"./Sun-BfpGkeDJ.js";import"./Package-DvWDWZFB.js";import"./Palette-DRMDR8JV.js";import"./Play-Bu8Z0F10.js";import"./Plus-B2SZN6mH.js";import"./SearchLg-cnYdsIh9.js";import"./SearchMd-DoLlnPcs.js";import"./Shield01-CRbVn2DO.js";import"./Stars01-gidBm02o.js";import"./Trash01-3RGYR5ZZ.js";import"./Upload01-QJcrfIv8.js";import"./User01-MduAtdbm.js";import"./Users01-BPKikrPB.js";import"./XClose-B0KA3C8u.js";import"./Zap-I1E7lqUU.js";import"./use-automations-DCss45mw.js";import"./studio-tools-BCF7Emba.js";import"./useSuspenseInfiniteQuery-BFeUiYZI.js";import"./avatar-BIRf-1JV.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BwC3MtYV.js";import"./file-type-icon-CnZBX84T.js";import"./dialog-Df9j8Uag.js";import"./tab-id-BijBBRwE.js";import"./hooks-DGbRldGt.js";import"./decopilot-sse-pool-D4sUN2DX.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./chat-context-pyYL3ixq.js";import"./autosend-D-bsHKL6.js";import"./use-ai-providers-BhqApjOp.js";import"./location-BpLtHjTZ.js";import"./use-decopilot-events-BnIE-ELu.js";import"./use-organization-settings-DZRIsOxS.js";import"./monaco-editor-D3doD1gM.js";import"./index-jyU4Aq6-.js";import"./index-CMhDqMuC.js";import"./shell-layout-D0_WcVHi.js";import"./required-auth-layout-B6YgJRpI.js";import"./use-org-sso-BgfPMjp-.js";import"./integration-icon-DLCIjog7.js";import"./use-navigate-to-agent-B9NcIkNG.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-C2NnxYNE.js";import"./form-Dfkw50Nf.js";import"./label-D06iDaWq.js";import"./input-CwsDeRW1.js";import"./switch-p99UQqZH.js";import"./drawer-SQ2tdg7g.js";import"./collection-search-Z_8iQC5w.js";import"./tabs-ByKIufCY.js";import"./toggle-group-BRjSMSnU.js";import"./use-deco-credits-C7qriL8q.js";import"./extract-connection-data-DHZE5fNa.js";import"./connection-card-DHRk2I51.js";import"./use-registry-connections-CMcjRfMM.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CNNNBEcd.js";import"./connection-form-helpers-tWgv4Wes.js";import"./authenticate-and-persist-oauth-hrrJBGtM.js";import"./mcp-oauth-DsKnJBMS.js";import"./collection-tabs-IXdsYZLL.js";import"./badge-NQMfn1dt.js";import"./connect-desktop-dialog-W8rk23aM.js";import"./select-model-_p-BWObi.js";import"./checkbox-CWSfmUzO.js";import"./skeleton-Cl7rlzcs.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-C7QXqmBb.js";import"./command-DDK9C2Ku.js";import"./index-Dw4gy48n.js";import"./popover-DOTl-8IJ.js";import"./dropdown-menu-D3TO7NsH.js";import"./index-rdpvJSGU.js";import"./alert-dialog-DC9ppgrc.js";import"./toolbar-efUhUw5A.js";import"./use-debounced-value-Cy-FxJxI.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-D9V29Hpa.js";import"./use-mcp-tools-CUj9YOKr.js";import"./use-capability-BFu21g24.js";import"./toolbar-icon-button-Do2DZvKF.js";import"./use-debounced-autosave-D2fWtiut.js";import"./index-BbQNPbWq.js";import"./search-input-Dp4ccMqk.js";import"./use-mcp-auth-status-D44bggig.js";import"./use-registry-app-DthhTf0w.js";import"./github-repo-picker-mjAYmFki.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./github-repo-scope-DjMZbiKa.js";import"./use-secrets-Du-COw7H.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-D0swijM3.js";import"./index-D2dvWBW6.js";import"./get-initials-D-f_fDFw.js";import"./calendar-BcjoSWjl.js";import"./use-file-configs-p2bSDLWv.js";import"./automation-list-row-DHlgW_F4.js";function yi(u){const t=it.c(46),{open:N,onOpenChange:P,orgSlug:Q,virtualMcpId:U,branch:W,decofile:G,meta:s,target:m,onSaved:X}=u,o=lt(G,m,s),k=m.kind==="site"?"site":m.pageKey,[Y,Z]=E.useState(k),[tt,i]=E.useState(null),[J,g]=E.useState(void 0),[x,y]=E.useState(0);Y!==k&&(Z(k),i(null),g(void 0),y(wt));const{persistSeo:a,persistRawSeo:I,flush:K,isPending:D}=ct({orgSlug:Q,virtualMcpId:U,branch:W,target:m,resolved:o,onSaved:X}),w=m.kind==="page",ot=w?o?.rawSeoData:void 0,v=J!==void 0?J:ot,et=w?dt(v)??void 0:void 0,h=tt??et??o?.seoData??{},p=o?St(h,o):null,n=p&&(!w||ft(v))?xt(p,s):null,_=m.kind==="page"?ut(G,s)?.seoData??void 0:void 0;let j;t[0]!==s?(j=vt(s),t[0]=s,t[1]=j):j=t[1];const A=j;let R;t[2]!==a||t[3]!==o||t[4]!==i?(R=r=>{if(!o)return;const L=r;i(L),a(L)},t[2]=a,t[3]=o,t[4]=i,t[5]=R):R=t[5];const M=R;let F;t[6]!==K||t[7]!==P?(F=r=>{r||K(),P(r)},t[6]=K,t[7]=P,t[8]=F):F=t[8];const V=F,q=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,z=m.kind==="site"&&o&&n,B=m.kind==="site"?"No site-level SEO block found.":o?"SEO schema not found for this page.":"Could not load page SEO.";let C;t[9]!==i?(C=()=>i(null),t[9]=i,t[10]=C):C=t[10];const H=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const $=O;let l;t[13]!==q?(l=e.jsx(mt,{className:"text-sm font-semibold",children:q}),t[13]=q,t[14]=l):l=t[14];let c;t[15]!==D?(c=D&&e.jsx(rt,{size:14,className:"animate-spin text-muted-foreground"}),t[15]=D,t[16]=c):c=t[16];let d;t[17]!==l||t[18]!==c?(d=e.jsxs(pt,{className:"px-4 py-3 border-b flex-row items-center justify-between space-y-0",children:[l,c]}),t[17]=l,t[18]=c,t[19]=d):d=t[19];let S;t[20]!==p||t[21]!==$||t[22]!==H||t[23]!==A||t[24]!==v||t[25]!==h||t[26]!==B||t[27]!==x||t[28]!==M||t[29]!==I||t[30]!==a||t[31]!==o||t[32]!==n||t[33]!==i||t[34]!==g||t[35]!==T||t[36]!==z||t[37]!==_?(S=!o||!T&&!z?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:B}):e.jsx(nt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"mx-auto max-w-sm",children:T?e.jsx(ht,{rawSeo:v,innerSeo:h,defaultResolveType:A,seoSchema:n,activeResolveType:p,seoTypeOptions:o.seoTypeOptions,formResetKey:x,siteDefaultSeo:_,onPersistRaw:r=>{g(r),I(r)},onInnerChange:r=>{i(r),a(r)},onClearForm:H,onBumpFormKey:$}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:M})})})}),t[20]=p,t[21]=$,t[22]=H,t[23]=A,t[24]=v,t[25]=h,t[26]=B,t[27]=x,t[28]=M,t[29]=I,t[30]=a,t[31]=o,t[32]=n,t[33]=i,t[34]=g,t[35]=T,t[36]=z,t[37]=_,t[38]=S):S=t[38];let f;t[39]!==d||t[40]!==S?(f=e.jsxs(st,{side:"right",className:"w-[400px] sm:max-w-[440px] p-0 gap-0",children:[d,S]}),t[39]=d,t[40]=S,t[41]=f):f=t[41];let b;return t[42]!==V||t[43]!==N||t[44]!==f?(b=e.jsx(at,{open:N,onOpenChange:V,children:f}),t[42]=V,t[43]=N,t[44]=f,t[45]=b):b=t[45],b}function yt(u){return u+1}function wt(u){return u+1}export{yi as SeoSheet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as L,C as H,j as U}from"./index-Ds-HfC6n.js";import{a as O,g as $,s as E}from"./automation-runs-ztbqdTSF.js";import{u as k}from"./use-mcp-client-_br2p_bf.js";import{p as B}from"./constants-BHDe7bIw.js";import{b as V,c as Y}from"./use-mcp-tools-CUj9YOKr.js";import{u as q}from"./index-DZaSGphN.js";import{c as G}from"./monaco-editor-D3doD1gM.js";import{g as K,M as W,a as D}from"./index-CMhDqMuC.js";import{b as z,a as F}from"./chat-context-pyYL3ixq.js";import{u as J}from"./shell-layout-D0_WcVHi.js";import{O as Q}from"./tab-id-BijBBRwE.js";import"./select-rVmmMqu5.js";import"./tooltip-DF9ELLft.js";import"./Check-CHN1T8vI.js";import"./ChevronDown-DeKhnunA.js";import"./ChevronUp-ByLiGcrz.js";import"./useInfiniteQuery-BRkIiLOG.js";import"./use-infinite-scroll-CNHh35jb.js";import"./use-connection-BQsuZGTe.js";import"./use-collections-D-jn7che.js";import"./use-virtual-mcp-Cje5EUFo.js";import"./card-BCHwENDj.js";import"./sidebar-k4saLJHr.js";import"./LayoutLeft-T-ESxFnl.js";import"./use-mobile-1EYV2ZBj.js";import"./X-CGox_cIc.js";import"./table-4qGBxfdb.js";import"./empty-state-CtQmVSR3.js";import"./use-members-DICSbVvO.js";import"./use-org-auth-client-BXLsMe6m.js";import"./use-clock-tick-D7vB-RjW.js";import"./AlertCircle-C_R2gNR6.js";import"./CheckCircle-CaqljOnz.js";import"./Circle-Akjlxa1B.js";import"./agent-icon-DTwuae9u.js";import"./UserPlus01-DFOW-O5v.js";import"./Tool01-B-H3cWyo.js";import"./ArrowUp-B1StHCTH.js";import"./Settings02-BJaUducV.js";import"./Tool02-CxiSJzZp.js";import"./XCircle-CW8s2hOY.js";import"./ArrowUpRight-Ca8yn7_h.js";import"./TrendUp01-BIZ2rqpR.js";import"./ZapSquare-1bKpNdcW.js";import"./ZoomOut-xslIZ2b2.js";import"./Users03-IG5JVRz9.js";import"./ChevronRight-C6t8IZZc.js";import"./Stars02-D25QqAmt.js";import"./Copy01-D_XFEDz5.js";import"./DotsVertical-DwGEoc3a.js";import"./Globe01-CDfSxX3-.js";import"./Eye-BdDoUsgN.js";import"./FilterLines-D5F51p9V.js";import"./Flag01-DRon0ZUu.js";import"./Star01-DVTMTzj3.js";import"./Globe04-BOvSDMUd.js";import"./SwitchHorizontal01-C8k2Pvdq.js";import"./HardDrive-BG6k4mGW.js";import"./Image01-BHNPXrnC.js";import"./Key01-C3yVFpbS.js";import"./LinkExternal01-BwkQzfkf.js";import"./List-B9Fa3bXa.js";import"./Monitor01--TFQb6Ix.js";import"./Sun-BfpGkeDJ.js";import"./Package-DvWDWZFB.js";import"./Palette-DRMDR8JV.js";import"./Play-Bu8Z0F10.js";import"./Plus-B2SZN6mH.js";import"./SearchLg-cnYdsIh9.js";import"./SearchMd-DoLlnPcs.js";import"./Shield01-CRbVn2DO.js";import"./Stars01-gidBm02o.js";import"./Trash01-3RGYR5ZZ.js";import"./Upload01-QJcrfIv8.js";import"./User01-MduAtdbm.js";import"./Users01-BPKikrPB.js";import"./XClose-B0KA3C8u.js";import"./Zap-I1E7lqUU.js";import"./use-automations-DCss45mw.js";import"./studio-tools-BCF7Emba.js";import"./useSuspenseInfiniteQuery-BFeUiYZI.js";import"./avatar-BIRf-1JV.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BwC3MtYV.js";import"./file-type-icon-CnZBX84T.js";import"./dialog-Df9j8Uag.js";import"./hooks-DGbRldGt.js";import"./decopilot-sse-pool-D4sUN2DX.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./integration-icon-DLCIjog7.js";import"./use-navigate-to-agent-B9NcIkNG.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-C2NnxYNE.js";import"./form-Dfkw50Nf.js";import"./label-D06iDaWq.js";import"./input-CwsDeRW1.js";import"./auth-B2MrKpCt.js";import"./drawer-SQ2tdg7g.js";import"./collection-search-Z_8iQC5w.js";import"./autosend-D-bsHKL6.js";import"./tabs-ByKIufCY.js";import"./toggle-group-BRjSMSnU.js";import"./use-deco-credits-C7qriL8q.js";import"./extract-connection-data-DHZE5fNa.js";import"./connection-card-DHRk2I51.js";import"./use-registry-connections-CMcjRfMM.js";import"./use-organization-settings-DZRIsOxS.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CNNNBEcd.js";import"./connection-form-helpers-tWgv4Wes.js";import"./authenticate-and-persist-oauth-hrrJBGtM.js";import"./mcp-oauth-DsKnJBMS.js";import"./collection-tabs-IXdsYZLL.js";import"./badge-NQMfn1dt.js";import"./use-ai-providers-BhqApjOp.js";import"./connect-desktop-dialog-W8rk23aM.js";import"./select-model-_p-BWObi.js";import"./checkbox-CWSfmUzO.js";import"./skeleton-Cl7rlzcs.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-C7QXqmBb.js";import"./command-DDK9C2Ku.js";import"./index-Dw4gy48n.js";import"./popover-DOTl-8IJ.js";import"./dropdown-menu-D3TO7NsH.js";import"./index-rdpvJSGU.js";import"./alert-dialog-DC9ppgrc.js";import"./toolbar-efUhUw5A.js";import"./use-debounced-value-Cy-FxJxI.js";import"./location-BpLtHjTZ.js";import"./index-jyU4Aq6-.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-D9V29Hpa.js";import"./use-decopilot-events-BnIE-ELu.js";import"./use-capability-BFu21g24.js";import"./toolbar-icon-button-Do2DZvKF.js";import"./use-debounced-autosave-D2fWtiut.js";import"./index-BbQNPbWq.js";import"./search-input-Dp4ccMqk.js";import"./use-mcp-auth-status-D44bggig.js";import"./switch-p99UQqZH.js";import"./use-registry-app-DthhTf0w.js";import"./github-repo-picker-mjAYmFki.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./github-repo-scope-DjMZbiKa.js";import"./use-secrets-Du-COw7H.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-D0swijM3.js";import"./index-D2dvWBW6.js";import"./get-initials-D-f_fDFw.js";import"./calendar-BcjoSWjl.js";import"./use-file-configs-p2bSDLWv.js";import"./automation-list-row-DHlgW_F4.js";import"./required-auth-layout-B6YgJRpI.js";import"./use-org-sso-BgfPMjp-.js";const X="studio://navigate";function Z(M){const[t]=M;if(M.length!==1||t?.type!=="resource_link"||!t.uri.startsWith(X))return{isNavigate:!1};let o=null;try{o=new URL(t.uri).searchParams.get("main")}catch{}return{isNavigate:!0,tab:o&&Q.has(o)?o:null}}const tt={};function ot(M){const t=L.c(38),{client:o,resourceURI:I,tool:i,connectionId:p,orgId:a,args:v}=M,{sendMessage:C}=z(),{setAppContext:d,clearAppContext:l}=F(),{openSidePanel:g,openTab:s}=J(),r=`${p}:${i.name}`;let c;t[0]!==s?(c=x=>x==="inline"?(s("0"),"inline"):"fullscreen",t[0]=s,t[1]=c):c=t[1];const m=c,n=v??tt;let u;t[2]!==o||t[3]!==i.name||t[4]!==n?(u={client:o,toolName:i.name,toolArguments:n},t[2]=o,t[3]=i.name,t[4]=n,t[5]=u):u=t[5];const{data:e}=Y(u);let h;if(t[6]!==i._meta||t[7]!==i.name){const x=$(i._meta);h=E(i.name,x),t[6]=i._meta,t[7]=i.name,t[8]=h}else h=t[8];const A=h;let f;t[9]!==i.inputSchema?(f=i.inputSchema??{type:"object"},t[9]=i.inputSchema,t[10]=f):f=t[10];let R;t[11]!==A||t[12]!==f||t[13]!==i?(R={...i,name:A,inputSchema:f},t[11]=A,t[12]=f,t[13]=i,t[14]=R):R=t[14];const b=R;let _;t[15]!==g||t[16]!==s||t[17]!==C?(_=x=>{const j=Z(x.content);if(j.isNavigate){j.tab&&s(j.tab);return}const w=G(x.content);w.content.length>0&&(g("chat"),C({tiptapDoc:w}))},t[15]=g,t[16]=s,t[17]=C,t[18]=_):_=t[18];const y=_;let P;t[19]!==b?(P={tool:b},t[19]=b,t[20]=P):P=t[20];let N;t[21]!==d||t[22]!==r?(N=x=>d(r,x),t[21]=d,t[22]=r,t[23]=N):N=t[23];let T;t[24]!==l||t[25]!==r?(T=()=>l(r),t[24]=l,t[25]=r,t[26]=T):T=t[26];let S;return t[27]!==o||t[28]!==y||t[29]!==m||t[30]!==a||t[31]!==I||t[32]!==P||t[33]!==N||t[34]!==T||t[35]!==n||t[36]!==e?(S=U.jsx(W,{resourceURI:I,orgId:a,toolInfo:P,toolInput:n,toolResult:e,displayMode:"fullscreen",minHeight:D.fullscreen.minHeight,maxHeight:D.fullscreen.maxHeight,client:o,onMessage:y,onUpdateModelContext:N,onTeardown:T,onRequestDisplayMode:m,className:"h-full"}),t[27]=o,t[28]=y,t[29]=m,t[30]=a,t[31]=I,t[32]=P,t[33]=N,t[34]=T,t[35]=n,t[36]=e,t[37]=S):S=t[37],S}function Zi(M){const t=L.c(24),{connectionId:o,toolName:I,args:i}=M,{org:p}=H(),a=q();let v;t[0]!==o||t[1]!==a?(v=B(o)&&a.vmEntry?.sandboxProviderKind==="user-desktop"&&a.previewUrl?`${a.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=o,t[1]=a,t[2]=v):v=t[2];const C=v;let d;t[3]!==o||t[4]!==C||t[5]!==p.id||t[6]!==p.slug?(d={connectionId:o,orgId:p.id,orgSlug:p.slug,mcpUrl:C},t[3]=o,t[4]=C,t[5]=p.id,t[6]=p.slug,t[7]=d):d=t[7];const l=k(d);let g;t[8]!==l?(g={client:l},t[8]=l,t[9]=g):g=t[9];const{data:s}=V(g);let r,c,m;t[10]!==I||t[11]!==s.tools?(r=O(decodeURIComponent(I)),m=s.tools.find(e=>e.name===r)??s.tools.find(e=>{const h=$(e._meta);if(!h)return!1;if(E(e.name,h)===r)return!0;const f=E(r,h);return f!==r&&e.name===f}),c=m?._meta?K(m._meta):void 0,t[10]=I,t[11]=s.tools,t[12]=r,t[13]=c,t[14]=m):(r=t[12],c=t[13],m=t[14]);const n=c;if(!m||!n){let e;return t[15]!==r?(e=U.jsx("div",{className:"flex items-center justify-center h-full w-full",children:U.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',r,'" not found or has no UI']})}),t[15]=r,t[16]=e):e=t[16],e}let u;return t[17]!==i||t[18]!==l||t[19]!==o||t[20]!==p.id||t[21]!==n||t[22]!==m?(u=U.jsx(ot,{client:l,resourceURI:n,tool:m,connectionId:o,orgId:p.id,args:i}),t[17]=i,t[18]=l,t[19]=o,t[20]=p.id,t[21]=n,t[22]=m,t[23]=u):u=t[23],u}export{Zi as AppViewContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as C,j as o}from"./index-Ds-HfC6n.js";import{I as B}from"./input-CwsDeRW1.js";import{L as T}from"./label-D06iDaWq.js";import{S as L,a as A,b as R,c as z,d as O}from"./select-rVmmMqu5.js";import{T as V}from"./textarea-CNNNBEcd.js";import{v as D,w as J,o as K,x as M,I as _}from"./index-DZaSGphN.js";import{s as F}from"./primitives-CL8pfXwb.js";import{u as $}from"./use-autosave-DNyaoSmX.js";import"./tooltip-DF9ELLft.js";import"./Check-CHN1T8vI.js";import"./ChevronDown-DeKhnunA.js";import"./ChevronUp-ByLiGcrz.js";import"./ArrowUp-B1StHCTH.js";import"./chat-context-pyYL3ixq.js";import"./autosend-D-bsHKL6.js";import"./hooks-DGbRldGt.js";import"./use-mcp-client-_br2p_bf.js";import"./constants-BHDe7bIw.js";import"./auth-B2MrKpCt.js";import"./decopilot-sse-pool-D4sUN2DX.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-BCF7Emba.js";import"./use-virtual-mcp-Cje5EUFo.js";import"./use-collections-D-jn7che.js";import"./use-ai-providers-BhqApjOp.js";import"./location-BpLtHjTZ.js";import"./tab-id-BijBBRwE.js";import"./use-decopilot-events-BnIE-ELu.js";import"./use-organization-settings-DZRIsOxS.js";import"./automation-runs-ztbqdTSF.js";import"./useInfiniteQuery-BRkIiLOG.js";import"./use-infinite-scroll-CNHh35jb.js";import"./use-connection-BQsuZGTe.js";import"./card-BCHwENDj.js";import"./sidebar-k4saLJHr.js";import"./LayoutLeft-T-ESxFnl.js";import"./use-mobile-1EYV2ZBj.js";import"./X-CGox_cIc.js";import"./table-4qGBxfdb.js";import"./empty-state-CtQmVSR3.js";import"./use-members-DICSbVvO.js";import"./use-org-auth-client-BXLsMe6m.js";import"./use-clock-tick-D7vB-RjW.js";import"./AlertCircle-C_R2gNR6.js";import"./CheckCircle-CaqljOnz.js";import"./Circle-Akjlxa1B.js";import"./agent-icon-DTwuae9u.js";import"./UserPlus01-DFOW-O5v.js";import"./Tool01-B-H3cWyo.js";import"./Settings02-BJaUducV.js";import"./Tool02-CxiSJzZp.js";import"./XCircle-CW8s2hOY.js";import"./ArrowUpRight-Ca8yn7_h.js";import"./TrendUp01-BIZ2rqpR.js";import"./ZapSquare-1bKpNdcW.js";import"./ZoomOut-xslIZ2b2.js";import"./Users03-IG5JVRz9.js";import"./ChevronRight-C6t8IZZc.js";import"./Stars02-D25QqAmt.js";import"./Copy01-D_XFEDz5.js";import"./DotsVertical-DwGEoc3a.js";import"./Globe01-CDfSxX3-.js";import"./Eye-BdDoUsgN.js";import"./FilterLines-D5F51p9V.js";import"./Flag01-DRon0ZUu.js";import"./Star01-DVTMTzj3.js";import"./Globe04-BOvSDMUd.js";import"./SwitchHorizontal01-C8k2Pvdq.js";import"./HardDrive-BG6k4mGW.js";import"./Image01-BHNPXrnC.js";import"./Key01-C3yVFpbS.js";import"./LinkExternal01-BwkQzfkf.js";import"./List-B9Fa3bXa.js";import"./Monitor01--TFQb6Ix.js";import"./Sun-BfpGkeDJ.js";import"./Package-DvWDWZFB.js";import"./Palette-DRMDR8JV.js";import"./Play-Bu8Z0F10.js";import"./Plus-B2SZN6mH.js";import"./SearchLg-cnYdsIh9.js";import"./SearchMd-DoLlnPcs.js";import"./Shield01-CRbVn2DO.js";import"./Stars01-gidBm02o.js";import"./Trash01-3RGYR5ZZ.js";import"./Upload01-QJcrfIv8.js";import"./User01-MduAtdbm.js";import"./Users01-BPKikrPB.js";import"./XClose-B0KA3C8u.js";import"./Zap-I1E7lqUU.js";import"./use-automations-DCss45mw.js";import"./useSuspenseInfiniteQuery-BFeUiYZI.js";import"./avatar-BIRf-1JV.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BwC3MtYV.js";import"./file-type-icon-CnZBX84T.js";import"./dialog-Df9j8Uag.js";import"./monaco-editor-D3doD1gM.js";import"./index-jyU4Aq6-.js";import"./index-CMhDqMuC.js";import"./shell-layout-D0_WcVHi.js";import"./required-auth-layout-B6YgJRpI.js";import"./use-org-sso-BgfPMjp-.js";import"./integration-icon-DLCIjog7.js";import"./use-navigate-to-agent-B9NcIkNG.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-C2NnxYNE.js";import"./form-Dfkw50Nf.js";import"./drawer-SQ2tdg7g.js";import"./collection-search-Z_8iQC5w.js";import"./tabs-ByKIufCY.js";import"./toggle-group-BRjSMSnU.js";import"./use-deco-credits-C7qriL8q.js";import"./extract-connection-data-DHZE5fNa.js";import"./connection-card-DHRk2I51.js";import"./use-registry-connections-CMcjRfMM.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-tWgv4Wes.js";import"./authenticate-and-persist-oauth-hrrJBGtM.js";import"./mcp-oauth-DsKnJBMS.js";import"./collection-tabs-IXdsYZLL.js";import"./badge-NQMfn1dt.js";import"./connect-desktop-dialog-W8rk23aM.js";import"./select-model-_p-BWObi.js";import"./checkbox-CWSfmUzO.js";import"./skeleton-Cl7rlzcs.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-C7QXqmBb.js";import"./command-DDK9C2Ku.js";import"./index-Dw4gy48n.js";import"./popover-DOTl-8IJ.js";import"./dropdown-menu-D3TO7NsH.js";import"./index-rdpvJSGU.js";import"./alert-dialog-DC9ppgrc.js";import"./toolbar-efUhUw5A.js";import"./use-debounced-value-Cy-FxJxI.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-D9V29Hpa.js";import"./use-mcp-tools-CUj9YOKr.js";import"./use-capability-BFu21g24.js";import"./toolbar-icon-button-Do2DZvKF.js";import"./use-debounced-autosave-D2fWtiut.js";import"./index-BbQNPbWq.js";import"./search-input-Dp4ccMqk.js";import"./use-mcp-auth-status-D44bggig.js";import"./switch-p99UQqZH.js";import"./use-registry-app-DthhTf0w.js";import"./github-repo-picker-mjAYmFki.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./github-repo-scope-DjMZbiKa.js";import"./use-secrets-Du-COw7H.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-D0swijM3.js";import"./index-D2dvWBW6.js";import"./get-initials-D-f_fDFw.js";import"./calendar-BcjoSWjl.js";import"./use-file-configs-p2bSDLWv.js";import"./automation-list-row-DHlgW_F4.js";const q={authors:[{key:"name",label:"Name",widget:"text"},{key:"type",label:"Type",widget:"select",options:[{value:"Person",label:"Person"},{value:"Organization",label:"Organization"}]},{key:"email",label:"Email",widget:"text",placeholder:"author@example.com"},{key:"jobTitle",label:"Job title",widget:"text"},{key:"company",label:"Company",widget:"text"},{key:"avatar",label:"Avatar",widget:"image"}]},G={authors:"Author"};function Ho(g){const t=C.c(34),{orgSlug:j,virtualMcpId:w,branch:S,kind:e,blockKey:h,block:E}=g;let y;t[0]!==S||t[1]!==j||t[2]!==w?(y={orgSlug:j,virtualMcpId:w,branch:S},t[0]=S,t[1]=j,t[2]=w,t[3]=y):y=t[3];const m=D(y);let d;t[4]!==E||t[5]!==e?(d=J(E,e),t[4]=E,t[5]=e,t[6]=d):d=t[6];const f=d;let k;t[7]!==h||t[8]!==e||t[9]!==m?(k=a=>{m.mutate({blockKey:h,data:M(h,e,a)})},t[7]=h,t[8]=e,t[9]=m,t[10]=k):k=t[10];const[i,N]=$(f,k);let b;t[11]!==i||t[12]!==N?(b=(a,r)=>N({...i,[a]:r}),t[11]=i,t[12]=N,t[13]=b):b=t[13];const p=b,I=G[e];let l;t[14]!==I?(l=o.jsx("span",{className:"text-sm font-medium",children:I}),t[14]=I,t[15]=l):l=t[15];let n;t[16]!==m.isError||t[17]!==m.isPending?(n=o.jsx(K,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=n):n=t[18];let c;t[19]!==l||t[20]!==n?(c=o.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[l,n]}),t[19]=l,t[20]=n,t[21]=c):c=t[21];const P=q[e];let u;if(t[22]!==i||t[23]!==p||t[24]!==P){let a;t[26]!==i||t[27]!==p?(a=r=>o.jsx("div",{className:"space-y-2",children:r.widget==="image"?o.jsx(_,{schema:{type:"string",format:"image-uri",title:r.label},value:i[r.key],onChange:s=>p(r.key,s),path:r.key,label:r.label}):r.widget==="select"?o.jsxs(o.Fragment,{children:[o.jsx(T,{htmlFor:r.key,children:r.label}),o.jsxs(L,{value:F(i[r.key])||r.options?.[0]?.value,onValueChange:s=>p(r.key,s),children:[o.jsx(A,{id:r.key,className:"h-10 w-full",children:o.jsx(R,{placeholder:r.label})}),o.jsx(z,{children:(r.options??[]).map(H)})]})]}):o.jsxs(o.Fragment,{children:[o.jsx(T,{htmlFor:r.key,children:r.label}),r.widget==="textarea"?o.jsx(V,{id:r.key,value:F(i[r.key]),onChange:s=>p(r.key,s.target.value),rows:3}):o.jsx(B,{id:r.key,value:F(i[r.key]),placeholder:r.placeholder,onChange:s=>p(r.key,s.target.value),className:"h-10"})]})},r.key),t[26]=i,t[27]=p,t[28]=a):a=t[28],u=P.map(a),t[22]=i,t[23]=p,t[24]=P,t[25]=u}else u=t[25];let x;t[29]!==u?(x=o.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:o.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:u})}),t[29]=u,t[30]=x):x=t[30];let v;return t[31]!==x||t[32]!==c?(v=o.jsxs("div",{className:"flex h-full flex-col",children:[c,x]}),t[31]=x,t[32]=c,t[33]=v):v=t[33],v}function H(g){return o.jsx(O,{value:g.value,children:g.label},g.value)}export{Ho as RecordEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as X,j as e}from"./index-Ds-HfC6n.js";import{C as Y}from"./checkbox-CWSfmUzO.js";import{I as K}from"./input-CwsDeRW1.js";import{L as q}from"./label-D06iDaWq.js";import{c as z,S as G,d as H,a as J,b as Z}from"./select-rVmmMqu5.js";import{k as tt,aV as et,o as rt,aW as M,aX as it}from"./index-DZaSGphN.js";import{u as ot}from"./use-autosave-DNyaoSmX.js";import"./Check-CHN1T8vI.js";import"./tooltip-DF9ELLft.js";import"./ChevronDown-DeKhnunA.js";import"./ChevronUp-ByLiGcrz.js";import"./ArrowUp-B1StHCTH.js";import"./chat-context-pyYL3ixq.js";import"./autosend-D-bsHKL6.js";import"./hooks-DGbRldGt.js";import"./use-mcp-client-_br2p_bf.js";import"./constants-BHDe7bIw.js";import"./auth-B2MrKpCt.js";import"./decopilot-sse-pool-D4sUN2DX.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-BCF7Emba.js";import"./use-virtual-mcp-Cje5EUFo.js";import"./use-collections-D-jn7che.js";import"./use-ai-providers-BhqApjOp.js";import"./location-BpLtHjTZ.js";import"./tab-id-BijBBRwE.js";import"./use-decopilot-events-BnIE-ELu.js";import"./use-organization-settings-DZRIsOxS.js";import"./automation-runs-ztbqdTSF.js";import"./useInfiniteQuery-BRkIiLOG.js";import"./use-infinite-scroll-CNHh35jb.js";import"./use-connection-BQsuZGTe.js";import"./card-BCHwENDj.js";import"./sidebar-k4saLJHr.js";import"./LayoutLeft-T-ESxFnl.js";import"./use-mobile-1EYV2ZBj.js";import"./X-CGox_cIc.js";import"./table-4qGBxfdb.js";import"./empty-state-CtQmVSR3.js";import"./use-members-DICSbVvO.js";import"./use-org-auth-client-BXLsMe6m.js";import"./use-clock-tick-D7vB-RjW.js";import"./AlertCircle-C_R2gNR6.js";import"./CheckCircle-CaqljOnz.js";import"./Circle-Akjlxa1B.js";import"./agent-icon-DTwuae9u.js";import"./UserPlus01-DFOW-O5v.js";import"./Tool01-B-H3cWyo.js";import"./Settings02-BJaUducV.js";import"./Tool02-CxiSJzZp.js";import"./XCircle-CW8s2hOY.js";import"./ArrowUpRight-Ca8yn7_h.js";import"./TrendUp01-BIZ2rqpR.js";import"./ZapSquare-1bKpNdcW.js";import"./ZoomOut-xslIZ2b2.js";import"./Users03-IG5JVRz9.js";import"./ChevronRight-C6t8IZZc.js";import"./Stars02-D25QqAmt.js";import"./Copy01-D_XFEDz5.js";import"./DotsVertical-DwGEoc3a.js";import"./Globe01-CDfSxX3-.js";import"./Eye-BdDoUsgN.js";import"./FilterLines-D5F51p9V.js";import"./Flag01-DRon0ZUu.js";import"./Star01-DVTMTzj3.js";import"./Globe04-BOvSDMUd.js";import"./SwitchHorizontal01-C8k2Pvdq.js";import"./HardDrive-BG6k4mGW.js";import"./Image01-BHNPXrnC.js";import"./Key01-C3yVFpbS.js";import"./LinkExternal01-BwkQzfkf.js";import"./List-B9Fa3bXa.js";import"./Monitor01--TFQb6Ix.js";import"./Sun-BfpGkeDJ.js";import"./Package-DvWDWZFB.js";import"./Palette-DRMDR8JV.js";import"./Play-Bu8Z0F10.js";import"./Plus-B2SZN6mH.js";import"./SearchLg-cnYdsIh9.js";import"./SearchMd-DoLlnPcs.js";import"./Shield01-CRbVn2DO.js";import"./Stars01-gidBm02o.js";import"./Trash01-3RGYR5ZZ.js";import"./Upload01-QJcrfIv8.js";import"./User01-MduAtdbm.js";import"./Users01-BPKikrPB.js";import"./XClose-B0KA3C8u.js";import"./Zap-I1E7lqUU.js";import"./use-automations-DCss45mw.js";import"./useSuspenseInfiniteQuery-BFeUiYZI.js";import"./avatar-BIRf-1JV.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BwC3MtYV.js";import"./file-type-icon-CnZBX84T.js";import"./dialog-Df9j8Uag.js";import"./monaco-editor-D3doD1gM.js";import"./index-jyU4Aq6-.js";import"./index-CMhDqMuC.js";import"./shell-layout-D0_WcVHi.js";import"./required-auth-layout-B6YgJRpI.js";import"./use-org-sso-BgfPMjp-.js";import"./integration-icon-DLCIjog7.js";import"./use-navigate-to-agent-B9NcIkNG.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-C2NnxYNE.js";import"./form-Dfkw50Nf.js";import"./drawer-SQ2tdg7g.js";import"./collection-search-Z_8iQC5w.js";import"./tabs-ByKIufCY.js";import"./toggle-group-BRjSMSnU.js";import"./use-deco-credits-C7qriL8q.js";import"./extract-connection-data-DHZE5fNa.js";import"./connection-card-DHRk2I51.js";import"./use-registry-connections-CMcjRfMM.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CNNNBEcd.js";import"./connection-form-helpers-tWgv4Wes.js";import"./authenticate-and-persist-oauth-hrrJBGtM.js";import"./mcp-oauth-DsKnJBMS.js";import"./collection-tabs-IXdsYZLL.js";import"./badge-NQMfn1dt.js";import"./connect-desktop-dialog-W8rk23aM.js";import"./select-model-_p-BWObi.js";import"./skeleton-Cl7rlzcs.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-C7QXqmBb.js";import"./command-DDK9C2Ku.js";import"./index-Dw4gy48n.js";import"./popover-DOTl-8IJ.js";import"./dropdown-menu-D3TO7NsH.js";import"./index-rdpvJSGU.js";import"./alert-dialog-DC9ppgrc.js";import"./toolbar-efUhUw5A.js";import"./use-debounced-value-Cy-FxJxI.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-D9V29Hpa.js";import"./use-mcp-tools-CUj9YOKr.js";import"./use-capability-BFu21g24.js";import"./toolbar-icon-button-Do2DZvKF.js";import"./use-debounced-autosave-D2fWtiut.js";import"./index-BbQNPbWq.js";import"./search-input-Dp4ccMqk.js";import"./use-mcp-auth-status-D44bggig.js";import"./switch-p99UQqZH.js";import"./use-registry-app-DthhTf0w.js";import"./github-repo-picker-mjAYmFki.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./github-repo-scope-DjMZbiKa.js";import"./use-secrets-Du-COw7H.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-D0swijM3.js";import"./index-D2dvWBW6.js";import"./get-initials-D-f_fDFw.js";import"./calendar-BcjoSWjl.js";import"./use-file-configs-p2bSDLWv.js";import"./automation-list-row-DHlgW_F4.js";const mt=[{value:"temporary",label:`Temporary (${M.temporary})`},{value:"permanent",label:`Permanent (${M.permanent})`}];function oi(S){const t=X.c(62),{orgSlug:V,virtualMcpId:$,branch:A,blockKey:B,block:D}=S;let _;t[0]!==A||t[1]!==V||t[2]!==$?(_={orgSlug:V,virtualMcpId:$,branch:A},t[0]=A,t[1]=V,t[2]=$,t[3]=_):_=t[3];const m=tt(_);let g;t[4]!==D?(g=et(D),t[4]=D,t[5]=g):g=t[5];const W=g;let v;t[6]!==B||t[7]!==m?(v=o=>{m.mutate({blockKey:B,data:it(o)})},t[6]=B,t[7]=m,t[8]=v):v=t[8];const[r,O]=ot(W,v);let N;t[9]!==r||t[10]!==O?(N=o=>O({...r,...o}),t[9]=r,t[10]=O,t[11]=N):N=t[11];const i=N;let P;t[12]===Symbol.for("react.memo_cache_sentinel")?(P=e.jsx("span",{className:"text-sm font-medium",children:"Redirect"}),t[12]=P):P=t[12];let p;t[13]!==m.isError||t[14]!==m.isPending?(p=e.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[P,e.jsx(rt,{isPending:m.isPending,isError:m.isError})]}),t[13]=m.isError,t[14]=m.isPending,t[15]=p):p=t[15];let T;t[16]===Symbol.for("react.memo_cache_sentinel")?(T=e.jsx(q,{htmlFor:"redirect-from",children:"From"}),t[16]=T):T=t[16];let s;t[17]!==i?(s=o=>i({from:o.target.value}),t[17]=i,t[18]=s):s=t[18];let l;t[19]!==r.from||t[20]!==s?(l=e.jsx(K,{id:"redirect-from",value:r.from,placeholder:"/old-path",onChange:s,className:"h-10"}),t[19]=r.from,t[20]=s,t[21]=l):l=t[21];let E;t[22]===Symbol.for("react.memo_cache_sentinel")?(E=e.jsxs("p",{className:"text-xs text-muted-foreground",children:["The source path to match. Supports URLPattern syntax (e.g."," ",e.jsx("code",{children:"/product/:slug"}),")."]}),t[22]=E):E=t[22];let a;t[23]!==l?(a=e.jsxs("div",{className:"space-y-2",children:[T,l,E]}),t[23]=l,t[24]=a):a=t[24];let R;t[25]===Symbol.for("react.memo_cache_sentinel")?(R=e.jsx(q,{htmlFor:"redirect-to",children:"To"}),t[25]=R):R=t[25];let c;t[26]!==i?(c=o=>i({to:o.target.value}),t[26]=i,t[27]=c):c=t[27];let n;t[28]!==r.to||t[29]!==c?(n=e.jsx(K,{id:"redirect-to",value:r.to,placeholder:"/new-path",onChange:c,className:"h-10"}),t[28]=r.to,t[29]=c,t[30]=n):n=t[30];let k;t[31]===Symbol.for("react.memo_cache_sentinel")?(k=e.jsx("p",{className:"text-xs text-muted-foreground",children:"The destination — a relative path or an absolute URL."}),t[31]=k):k=t[31];let d;t[32]!==n?(d=e.jsxs("div",{className:"space-y-2",children:[R,n,k]}),t[32]=n,t[33]=d):d=t[33];let C;t[34]===Symbol.for("react.memo_cache_sentinel")?(C=e.jsx(q,{htmlFor:"redirect-type",children:"Type"}),t[34]=C):C=t[34];let f;t[35]!==i?(f=o=>i({type:o}),t[35]=i,t[36]=f):f=t[36];let w;t[37]===Symbol.for("react.memo_cache_sentinel")?(w=e.jsx(J,{id:"redirect-type",className:"h-10 w-full",children:e.jsx(Z,{placeholder:"Type"})}),t[37]=w):w=t[37];let I;t[38]===Symbol.for("react.memo_cache_sentinel")?(I=e.jsx(z,{children:mt.map(pt)}),t[38]=I):I=t[38];let h;t[39]!==r.type||t[40]!==f?(h=e.jsxs(G,{value:r.type,onValueChange:f,children:[w,I]}),t[39]=r.type,t[40]=f,t[41]=h):h=t[41];let F;t[42]===Symbol.for("react.memo_cache_sentinel")?(F=e.jsx("strong",{children:"Temporary"}),t[42]=F):F=t[42];let L;t[43]===Symbol.for("react.memo_cache_sentinel")?(L=e.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",F," when the redirect may change;"," ",e.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),t[43]=L):L=t[43];let x;t[44]!==h?(x=e.jsxs("div",{className:"space-y-2",children:[C,h,L]}),t[44]=h,t[45]=x):x=t[45];let u;t[46]!==i?(u=o=>i({discardQueryParameters:o===!0}),t[46]=i,t[47]=u):u=t[47];let y;t[48]!==r.discardQueryParameters||t[49]!==u?(y=e.jsx(Y,{checked:r.discardQueryParameters,onCheckedChange:u}),t[48]=r.discardQueryParameters,t[49]=u,t[50]=y):y=t[50];let Q;t[51]===Symbol.for("react.memo_cache_sentinel")?(Q=e.jsx("span",{className:"text-sm",children:"Discard query parameters"}),t[51]=Q):Q=t[51];let j;t[52]!==y?(j=e.jsxs("label",{className:"flex cursor-pointer items-center gap-2.5",children:[y,Q]}),t[52]=y,t[53]=j):j=t[53];let b;t[54]!==a||t[55]!==d||t[56]!==x||t[57]!==j?(b=e.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:e.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[a,d,x,j]})}),t[54]=a,t[55]=d,t[56]=x,t[57]=j,t[58]=b):b=t[58];let U;return t[59]!==b||t[60]!==p?(U=e.jsxs("div",{className:"flex h-full flex-col",children:[p,b]}),t[59]=b,t[60]=p,t[61]=U):U=t[61],U}function pt(S){return e.jsx(H,{value:S.value,children:S.label},S.value)}export{oi as RedirectEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-E5qs1vxm.js","assets/index-Ds-HfC6n.js","assets/index-BGqqvTWB.css","assets/Tool02-CxiSJzZp.js","assets/CheckCircle-CaqljOnz.js","assets/Settings02-BJaUducV.js","assets/use-mcp-client-_br2p_bf.js","assets/constants-BHDe7bIw.js","assets/auth-B2MrKpCt.js","assets/useInfiniteQuery-BRkIiLOG.js","assets/use-infinite-scroll-CNHh35jb.js","assets/studio-tools-BCF7Emba.js","assets/badge-NQMfn1dt.js","assets/input-CwsDeRW1.js","assets/dropdown-menu-D3TO7NsH.js","assets/Check-CHN1T8vI.js","assets/ChevronRight-C6t8IZZc.js","assets/Circle-Akjlxa1B.js","assets/table-4qGBxfdb.js","assets/toggle-group-BRjSMSnU.js","assets/use-view-mode-CueytzVI.js","assets/use-mobile-1EYV2ZBj.js","assets/DotsVertical-DwGEoc3a.js","assets/FilterLines-D5F51p9V.js","assets/Globe01-CDfSxX3-.js","assets/SearchMd-DoLlnPcs.js","assets/dialog-Df9j8Uag.js","assets/X-CGox_cIc.js","assets/AlertCircle-C_R2gNR6.js","assets/Upload01-QJcrfIv8.js","assets/alert-dialog-DC9ppgrc.js","assets/card-BCHwENDj.js","assets/Trash01-3RGYR5ZZ.js","assets/label-D06iDaWq.js","assets/select-rVmmMqu5.js","assets/tooltip-DF9ELLft.js","assets/ChevronDown-DeKhnunA.js","assets/ChevronUp-ByLiGcrz.js","assets/switch-p99UQqZH.js","assets/textarea-CNNNBEcd.js","assets/XCircle-CW8s2hOY.js","assets/checkbox-CWSfmUzO.js","assets/Eye-BdDoUsgN.js","assets/LinkExternal01-BwkQzfkf.js","assets/use-copy-BwC3MtYV.js","assets/Copy01-D_XFEDz5.js","assets/Key01-C3yVFpbS.js","assets/Plus-B2SZN6mH.js","assets/mcp-oauth-DsKnJBMS.js","assets/Play-Bu8Z0F10.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as s,j as e,r as i,i as a,aX as o}from"./index-Ds-HfC6n.js";import{R as m}from"./require-capability-x1ztzZLs.js";import"./use-capability-BFu21g24.js";import"./access-gate-Dz6XZqwf.js";import"./capability-load-error-BStQ9veQ.js";const n=i.lazy(()=>o(()=>import("./registry-layout-E5qs1vxm.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49])));function f(){const r=s.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(m,{capability:"registry:manage",area:"the registry",children:e.jsx(i.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(n,{})})}),r[0]=t):t=r[0],t}export{f as default};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{r as $,at as nt,c as B,j as s,H as Re,I as ae,C as oe,n as pe,J as Le,M as Pe,d as fe,K as te,t as Z,B as ee,p as J,z as ot,l as ne,m as rt,b as at,E as ct,x as dt}from"./index-Ds-HfC6n.js";import{c as $e,e as De,d as Fe,D as ut,a as Ke,h as mt,b as ft}from"./dialog-Df9j8Uag.js";import{g as ht,b as pt,a as xt,D as gt}from"./drawer-SQ2tdg7g.js";import{u as vt}from"./use-mobile-1EYV2ZBj.js";import{S as ye,u as bt,m as jt,a as xe}from"./chat-context-pyYL3ixq.js";import{C as yt}from"./checkbox-CWSfmUzO.js";import{I as le}from"./input-CwsDeRW1.js";import{S as St,a as kt,b as Nt,c as Ct,d as wt}from"./select-rVmmMqu5.js";import{S as X}from"./skeleton-Cl7rlzcs.js";import{i as Ue,b as Be,c as _t,a as It,s as Mt}from"./Settings02-BJaUducV.js";import{c as Ot,a as Et,i as Tt}from"./Tool01-B-H3cWyo.js";import{i as At}from"./Key01-C3yVFpbS.js";import{i as We}from"./SearchMd-DoLlnPcs.js";import{b as ge,u as zt,a as Rt}from"./use-ai-providers-BhqApjOp.js";import{g as ve}from"./ai-providers-logos-DD3qZ33J.js";import{i as Lt}from"./Monitor01--TFQb6Ix.js";import{i as Pt}from"./AlertCircle-C_R2gNR6.js";import{u as he}from"./studio-tools-BCF7Emba.js";import{i as $t}from"./ChevronRight-C6t8IZZc.js";import{A as Dt}from"./avatar-BIRf-1JV.js";import{S as Se,a as ke,b as He}from"./settings-section-C7QXqmBb.js";import{s as Ve}from"./Eye-BdDoUsgN.js";import{a as ue,b as me,C as Ft}from"./connect-desktop-dialog-W8rk23aM.js";import{t as Ne}from"./ChevronDown-DeKhnunA.js";import{a as Kt}from"./Image01-BHNPXrnC.js";import{t as Ut}from"./Stars01-gidBm02o.js";function ie(i,e,t){let l=t.initialDeps??[],n,o=!0;function r(){var a,c,d;let u;t.key&&((a=t.debug)!=null&&a.call(t))&&(u=Date.now());const m=i();if(!(m.length!==l.length||m.some((g,x)=>l[x]!==g)))return n;l=m;let f;if(t.key&&((c=t.debug)!=null&&c.call(t))&&(f=Date.now()),n=e(...m),t.key&&((d=t.debug)!=null&&d.call(t))){const g=Math.round((Date.now()-u)*100)/100,x=Math.round((Date.now()-f)*100)/100,j=x/16,k=(w,_)=>{for(w=String(w);w.length<_;)w=" "+w;return w};console.info(`%c⏱ ${k(x,5)} /${k(g,5)} ms`,`
|
|
2
|
-
font-size: .6rem;
|
|
3
|
-
font-weight: bold;
|
|
4
|
-
color: hsl(${Math.max(0,Math.min(120-120*j,120))}deg 100% 31%);`,t?.key)}return t?.onChange&&!(o&&t.skipInitialOnChange)&&t.onChange(n),o=!1,n}return r.updateDeps=a=>{l=a},r}function Ce(i,e){if(i===void 0)throw new Error("Unexpected undefined");return i}const Bt=(i,e)=>Math.abs(i-e)<1.01,Wt=(i,e,t)=>{let l;return function(...n){i.clearTimeout(l),l=i.setTimeout(()=>e.apply(this,n),t)}},we=i=>{const{offsetWidth:e,offsetHeight:t}=i;return{width:e,height:t}},Ht=i=>i,Vt=i=>{const e=Math.max(i.startIndex-i.overscan,0),t=Math.min(i.endIndex+i.overscan,i.count-1),l=[];for(let n=e;n<=t;n++)l.push(n);return l},qt=(i,e)=>{const t=i.scrollElement;if(!t)return;const l=i.targetWindow;if(!l)return;const n=r=>{const{width:a,height:c}=r;e({width:Math.round(a),height:Math.round(c)})};if(n(we(t)),!l.ResizeObserver)return()=>{};const o=new l.ResizeObserver(r=>{const a=()=>{const c=r[0];if(c?.borderBoxSize){const d=c.borderBoxSize[0];if(d){n({width:d.inlineSize,height:d.blockSize});return}}n(we(t))};i.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()});return o.observe(t,{box:"border-box"}),()=>{o.unobserve(t)}},_e={passive:!0},Ie=typeof window>"u"?!0:"onscrollend"in window,Gt=(i,e)=>{const t=i.scrollElement;if(!t)return;const l=i.targetWindow;if(!l)return;let n=0;const o=i.options.useScrollendEvent&&Ie?()=>{}:Wt(l,()=>{e(n,!1)},i.options.isScrollingResetDelay),r=u=>()=>{const{horizontal:m,isRtl:p}=i.options;n=m?t.scrollLeft*(p&&-1||1):t.scrollTop,o(),e(n,u)},a=r(!0),c=r(!1);t.addEventListener("scroll",a,_e);const d=i.options.useScrollendEvent&&Ie;return d&&t.addEventListener("scrollend",c,_e),()=>{t.removeEventListener("scroll",a),d&&t.removeEventListener("scrollend",c)}},Xt=(i,e,t)=>{if(e?.borderBoxSize){const l=e.borderBoxSize[0];if(l)return Math.round(l[t.options.horizontal?"inlineSize":"blockSize"])}return i[t.options.horizontal?"offsetWidth":"offsetHeight"]},Yt=(i,{adjustments:e=0,behavior:t},l)=>{var n,o;const r=i+e;(o=(n=l.scrollElement)==null?void 0:n.scrollTo)==null||o.call(n,{[l.options.horizontal?"left":"top"]:r,behavior:t})};class Qt{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var t,l,n;return((n=(l=(t=this.targetWindow)==null?void 0:t.performance)==null?void 0:l.now)==null?void 0:n.call(l))??Date.now()},this.observer=(()=>{let t=null;const l=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(n=>{n.forEach(o=>{const r=()=>{const a=o.target,c=this.indexFromElement(a);if(!a.isConnected){this.observer.unobserve(a);return}this.shouldMeasureDuringScroll(c)&&this.resizeItem(c,this.options.measureElement(a,o,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()})}));return{disconnect:()=>{var n;(n=l())==null||n.disconnect(),t=null},observe:n=>{var o;return(o=l())==null?void 0:o.observe(n,{box:"border-box"})},unobserve:n=>{var o;return(o=l())==null?void 0:o.unobserve(n)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([l,n])=>{typeof n>"u"&&delete t[l]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Ht,rangeExtractor:Vt,onChange:()=>{},measureElement:Xt,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",...t}},this.notify=t=>{var l,n;(n=(l=this.options).onChange)==null||n.call(l,this,t)},this.maybeNotify=ie(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const l=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==l){if(this.cleanup(),!l){this.maybeNotify();return}this.scrollElement=l,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(n=>{this.observer.observe(n)}),this.unsubs.push(this.options.observeElementRect(this,n=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(n,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()<n?"forward":"backward":null,this.scrollOffset=n,this.isScrolling=o,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,l)=>{const n=new Map,o=new Map;for(let r=l-1;r>=0;r--){const a=t[r];if(n.has(a.lane))continue;const c=o.get(a.lane);if(c==null||a.end>c.end?o.set(a.lane,a):a.end<c.end&&n.set(a.lane,!0),n.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((r,a)=>r.end===a.end?r.index-a.index:r.end-a.end)[0]:void 0},this.getMeasurementOptions=ie(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode],(t,l,n,o,r,a,c)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:l,scrollMargin:n,getItemKey:o,enabled:r,lanes:a,laneAssignmentMode:c}),{key:!1}),this.getMeasurements=ie(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:l,scrollMargin:n,getItemKey:o,enabled:r,lanes:a,laneAssignmentMode:c},d)=>{if(!r)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>t)for(const f of this.laneAssignments.keys())f>=t&&this.laneAssignments.delete(f);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(f=>{this.itemSizeCache.set(f.key,f.size)}));const u=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===t&&(this.lanesSettling=!1);const m=this.measurementsCache.slice(0,u),p=new Array(a).fill(void 0);for(let f=0;f<u;f++){const g=m[f];g&&(p[g.lane]=f)}for(let f=u;f<t;f++){const g=o(f),x=this.laneAssignments.get(f);let j,k;const w=c==="estimate"||d.has(g);if(x!==void 0&&this.options.lanes>1){j=x;const b=p[j],N=b!==void 0?m[b]:void 0;k=N?N.end+this.options.gap:l+n}else{const b=this.options.lanes===1?m[f-1]:this.getFurthestMeasurement(m,f);k=b?b.end+this.options.gap:l+n,j=b?b.lane:f%this.options.lanes,this.options.lanes>1&&w&&this.laneAssignments.set(f,j)}const _=d.get(g),I=typeof _=="number"?_:this.options.estimateSize(f),M=k+I;m[f]={index:f,start:k,size:I,end:M,key:g,lane:j},p[j]=f}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ie(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,l,n,o)=>this.range=t.length>0&&l>0?Jt({measurements:t,outerSize:l,scrollOffset:n,lanes:o}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=ie(()=>{let t=null,l=null;const n=this.calculateRange();return n&&(t=n.startIndex,l=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,l]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,l]},(t,l,n,o,r)=>o===null||r===null?[]:t({startIndex:o,endIndex:r,overscan:l,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const l=this.options.indexAttribute,n=t.getAttribute(l);return n?parseInt(n,10):(console.warn(`Missing attribute name '${l}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=t=>{var l;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const n=this.scrollState.index??((l=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:l.index);if(n!==void 0&&this.range){const o=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,n-o),a=Math.min(this.options.count-1,n+o);return t>=r&&t<=a}return!0},this.measureElement=t=>{if(!t){this.elementsCache.forEach((r,a)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(a))});return}const l=this.indexFromElement(t),n=this.options.getItemKey(l),o=this.elementsCache.get(n);o!==t&&(o&&this.observer.unobserve(o),this.observer.observe(t),this.elementsCache.set(n,t)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(l)&&this.resizeItem(l,this.options.measureElement(t,void 0,this))},this.resizeItem=(t,l)=>{var n;const o=this.measurementsCache[t];if(!o)return;const r=this.itemSizeCache.get(o.key)??o.size,a=l-r;a!==0&&(((n=this.scrollState)==null?void 0:n.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,a,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,l)),this.notify(!1))},this.getVirtualItems=ie(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,l)=>{const n=[];for(let o=0,r=t.length;o<r;o++){const a=t[o],c=l[a];n.push(c)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const l=this.getMeasurements();if(l.length!==0)return Ce(l[qe(0,l.length-1,n=>Ce(l[n]).start,t)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const t=this.scrollElement.document.documentElement;return this.options.horizontal?t.scrollWidth-this.scrollElement.innerWidth:t.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(t,l,n=0)=>{if(!this.scrollElement)return 0;const o=this.getSize(),r=this.getScrollOffset();l==="auto"&&(l=t>=r+o?"end":"start"),l==="center"?t+=(n-o)/2:l==="end"&&(t-=o);const a=this.getMaxScrollOffset();return Math.max(Math.min(a,t),0)},this.getOffsetForIndex=(t,l="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const n=this.getSize(),o=this.getScrollOffset(),r=this.measurementsCache[t];if(!r)return;if(l==="auto")if(r.end>=o+n-this.options.scrollPaddingEnd)l="end";else if(r.start<=o+this.options.scrollPaddingStart)l="start";else return[o,l];if(l==="end"&&t===this.options.count-1)return[this.getMaxScrollOffset(),l];const a=l==="end"?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,l,r.size),l]},this.scrollToOffset=(t,{align:l="start",behavior:n="auto"}={})=>{const o=this.getOffsetForAlignment(t,l),r=this.now();this.scrollState={index:null,align:l,behavior:n,startedAt:r,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(t,{align:l="auto",behavior:n="auto"}={})=>{t=Math.max(0,Math.min(t,this.options.count-1));const o=this.getOffsetForIndex(t,l);if(!o)return;const[r,a]=o,c=this.now();this.scrollState={index:t,align:a,behavior:n,startedAt:c,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(t,{behavior:l="auto"}={})=>{const n=this.getScrollOffset()+t,o=this.now();this.scrollState={index:null,align:"start",behavior:l,startedAt:o,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:l}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var t;const l=this.getMeasurements();let n;if(l.length===0)n=this.options.paddingStart;else if(this.options.lanes===1)n=((t=l[l.length-1])==null?void 0:t.end)??0;else{const o=Array(this.options.lanes).fill(null);let r=l.length-1;for(;r>=0&&o.some(a=>a===null);){const a=l[r];o[a.lane]===null&&(o[a.lane]=a.end),r--}n=Math.max(...o.filter(a=>a!==null))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:l,behavior:n})=>{this.options.scrollToFn(t,{behavior:n,adjustments:l},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const l=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,n=l?l[0]:this.scrollState.lastTargetOffset,o=1,r=n!==this.scrollState.lastTargetOffset;if(!r&&Bt(n,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=o){this.scrollState=null;return}}else this.scrollState.stableFrames=0,r&&(this.scrollState.lastTargetOffset=n,this.scrollState.behavior="auto",this._scrollToOffset(n,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const qe=(i,e,t,l)=>{for(;i<=e;){const n=(i+e)/2|0,o=t(n);if(o<l)i=n+1;else if(o>l)e=n-1;else return n}return i>0?i-1:0};function Jt({measurements:i,outerSize:e,scrollOffset:t,lanes:l}){const n=i.length-1,o=c=>i[c].start;if(i.length<=l)return{startIndex:0,endIndex:n};let r=qe(0,n,o,t),a=r;if(l===1)for(;a<n&&i[a].end<t+e;)a++;else if(l>1){const c=Array(l).fill(0);for(;a<n&&c.some(u=>u<t+e);){const u=i[a];c[u.lane]=u.end,a++}const d=Array(l).fill(t+e);for(;r>=0&&d.some(u=>u>=t);){const u=i[r];d[u.lane]=u.start,r--}r=Math.max(0,r-r%l),a=Math.min(n,a+(l-1-a%l))}return{startIndex:r,endIndex:a}}const Me=typeof document<"u"?$.useLayoutEffect:$.useEffect;function Zt({useFlushSync:i=!0,...e}){const t=$.useReducer(()=>({}),{})[1],l={...e,onChange:(o,r)=>{var a;i&&r?nt.flushSync(t):t(),(a=e.onChange)==null||a.call(e,o,r)}},[n]=$.useState(()=>new Qt(l));return n.setOptions(l),Me(()=>n._didMount(),[]),Me(()=>n._willUpdate()),n}function es(i){return Zt({observeElementRect:qt,observeElementOffset:Gt,scrollToFn:Yt,...i})}const ce=[{id:"openai",name:"OpenAI",description:"GPT-4, GPT-5, and other OpenAI models",logo:"https://decoims.com/decocms/b51001ef-ae58-4db4-8a75-9e6d2df2dd8e/openai.png",baseUrlPlaceholder:"https://api.openai.com/v1",defaultBaseUrl:"https://api.openai.com/v1",apiKeyRecommended:!0,helpText:"Use your OpenAI API key (starts with sk-)."},{id:"litellm",name:"LiteLLM",description:"Connect to a LiteLLM gateway your team manages",logo:"https://decoims.com/decocms/e974ae05-ad64-4b4a-8444-d9705f019b85/litellm.png",baseUrlPlaceholder:"http://localhost:4000",apiKeyRecommended:!0,helpText:"Point at your LiteLLM proxy. The base URL should be the root of the proxy (we'll append /v1)."},{id:"ollama",name:"Ollama",description:"Run open-source models on your own computer",logo:"https://decoims.com/decocms/2bb2f822-5288-4b7c-a541-dcbef76525a0/ollama.png",baseUrlPlaceholder:"http://localhost:11434",apiKeyRecommended:!1,helpText:"Ollama exposes /v1 by default — no API key required for local use."},{id:"lm-studio",name:"LM Studio",description:"Open models running through LM Studio",logo:"https://decoims.com/decocms/9f0ab1a9-d2d5-4f3e-9de0-aadd4926428d/lmstudio.webp",baseUrlPlaceholder:"http://localhost:1234",apiKeyRecommended:!1,helpText:"Start the local server in LM Studio, then paste its base URL here."},{id:"vllm",name:"vLLM",description:"Connect to your team's self-hosted vLLM server",logo:"https://decoims.com/decocms/b6c60e4f-a4aa-443c-981f-ad0f31640e22/vllm.png",baseUrlPlaceholder:"http://localhost:8000",apiKeyRecommended:!1}];function Oe(i){if(i)return ce.find(e=>e.id===i)}const Ee=4;function re(i){const e=B.c(8),{logo:t,name:l,description:n,onClick:o}=i;let r;e[0]!==t||e[1]!==l?(r=t?s.jsx("img",{src:t,alt:l,className:"size-8 rounded-md object-contain dark:bg-white dark:p-0.5"}):s.jsx(Dt,{fallback:l.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[0]=t,e[1]=l,e[2]=r):r=e[2];let a;return e[3]!==n||e[4]!==l||e[5]!==o||e[6]!==r?(a=s.jsx(He,{onClick:o,icon:r,title:l,description:n}),e[3]=n,e[4]=l,e[5]=o,e[6]=r,e[7]=a):a=e[7],a}function Ge(i){const e=B.c(32),{providers:t,onSelect:l,onShowAll:n}=i;let o;e[0]!==t?(o=t.find(ns),e[0]=t,e[1]=o):o=e[1];const r=o;let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a={openrouter:0,llmapi:1,anthropic:2,google:3},e[2]=a):a=e[2];const c=a;let d;if(e[3]!==l||e[4]!==t){let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_=(v,O)=>{const T=c[v.id]??Number.MAX_SAFE_INTEGER,A=c[O.id]??Number.MAX_SAFE_INTEGER;return T-A},e[6]=_):_=e[6];const I=t.filter(ls).sort(_);let M;e[7]!==t?(M=t.find(is),e[7]=t,e[8]=M):M=e[8];const b=M;let N;e[9]===Symbol.for("react.memo_cache_sentinel")?(N=ce.find(ss),e[9]=N):N=e[9];const S=N;let C;e[10]!==l?(C=v=>s.jsx(re,{logo:v.logo,name:v.name,description:v.description,onClick:()=>l({kind:"provider",provider:v})},v.id),e[10]=l,e[11]=C):C=e[11];let h,y;e[12]!==l||e[13]!==b?(h=b&&S?[s.jsx(re,{logo:S.logo,name:S.name,description:S.description,onClick:()=>l({kind:"openai-compatible",provider:b,preset:S})},S.id)]:[],y=b?[...ce.filter(ts).map(v=>s.jsx(re,{logo:v.logo,name:v.name,description:v.description,onClick:()=>l({kind:"openai-compatible",provider:b,preset:v})},v.id)),s.jsx(re,{logo:b.logo,name:"Custom OpenAI-compatible",description:"Bring your own model server (advanced)",onClick:()=>l({kind:"openai-compatible",provider:b,preset:null})},"custom")]:[],e[12]=l,e[13]=b,e[14]=h,e[15]=y):(h=e[14],y=e[15]),d=[...I.map(C),...h,...y],e[3]=l,e[4]=t,e[5]=d}else d=e[5];const u=d,m=u.length-Ee,p=!!n&&m>0;let f;e[16]!==u||e[17]!==p?(f=p?u.slice(0,Ee):u,e[16]=u,e[17]=p,e[18]=f):f=e[18];const g=f;let x;e[19]!==r||e[20]!==l?(x=r&&s.jsx(Se,{children:s.jsxs("div",{className:"relative rounded-xl border border-violet-400/30 bg-gradient-to-br from-violet-50/50 via-transparent to-lime-50/30 dark:from-violet-950/20 dark:to-lime-950/10 p-1.5",children:[s.jsx("div",{className:"absolute inset-0 rounded-xl bg-gradient-to-br from-violet-400/5 to-lime-400/5 pointer-events-none"}),s.jsx("p",{className:"text-xs font-medium text-violet-700 dark:text-violet-400 mb-1.5 px-2 pt-2 relative",children:"Recommended — 100+ models, pay as you go"}),s.jsx(ke,{className:"relative",children:s.jsx(re,{logo:r.logo,name:r.name,description:r.description,onClick:()=>l({kind:"provider",provider:r})})})]})}),e[19]=r,e[20]=l,e[21]=x):x=e[21];let j;e[22]!==m||e[23]!==n||e[24]!==p?(j=p&&s.jsx(He,{onClick:n,title:`${m} more provider${m===1?"":"s"}`,action:s.jsx($t,{size:16,className:"text-muted-foreground"})}),e[22]=m,e[23]=n,e[24]=p,e[25]=j):j=e[25];let k;e[26]!==j||e[27]!==g?(k=s.jsx(Se,{children:s.jsxs(ke,{children:[g,j]})}),e[26]=j,e[27]=g,e[28]=k):k=e[28];let w;return e[29]!==x||e[30]!==k?(w=s.jsxs("div",{className:"flex flex-col gap-6",children:[x,k]}),e[29]=x,e[30]=k,e[31]=w):w=e[31],w}function ts(i){return i.id!=="openai"}function ss(i){return i.id==="openai"}function is(i){return i.id==="openai-compatible"}function ls(i){return i.id!=="deco"&&i.id!=="openai-compatible"}function ns(i){return i.id==="deco"}const os=Re({label:ae().optional(),apiKey:ae().min(1,"API key is required")});function rs(i){const e=B.c(59),{providerId:t,onCancel:l,onSuccess:n}=i,{org:o}=oe(),r=he(),a=pe(),[c,d]=$.useState(!1);let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={resolver:Le(os),defaultValues:{label:"",apiKey:""}},e[0]=u):u=e[0];const{register:m,handleSubmit:p,formState:f}=Pe(u),{errors:g}=f;let x;e[1]!==t||e[2]!==r?(x=async z=>{await r.call("AI_PROVIDER_KEY_CREATE",{providerId:t,label:z.label||"Personal key",apiKey:z.apiKey})},e[1]=t,e[2]=r,e[3]=x):x=e[3];let j;e[4]!==n||e[5]!==o||e[6]!==a?(j=()=>{a.invalidateQueries({queryKey:te.aiProviderKeys(o.id)}),a.invalidateQueries({queryKey:te.aiProviders(o.id)}),Z.success("Key saved successfully"),n()},e[4]=n,e[5]=o,e[6]=a,e[7]=j):j=e[7];let k;e[8]!==x||e[9]!==j?(k={mutationFn:x,onSuccess:j,onError:as},e[8]=x,e[9]=j,e[10]=k):k=e[10];const{mutate:w,isPending:_,error:I}=fe(k);let M;e[11]!==w?(M=z=>w(z),e[11]=w,e[12]=M):M=e[12];let b;e[13]!==p||e[14]!==M?(b=p(M),e[13]=p,e[14]=M,e[15]=b):b=e[15];let N;e[16]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Label"}),e[16]=N):N=e[16];let S;e[17]!==m?(S=m("label"),e[17]=m,e[18]=S):S=e[18];let C;e[19]!==S?(C=s.jsxs("div",{className:"space-y-1",children:[N,s.jsx(le,{placeholder:"e.g. Personal key",...S,className:"h-8 text-sm"})]}),e[19]=S,e[20]=C):C=e[20];let h;e[21]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"API Key"}),e[21]=h):h=e[21];const y=c?"text":"password";let v;e[22]!==m?(v=m("apiKey"),e[22]=m,e[23]=v):v=e[23];let O;e[24]!==y||e[25]!==v?(O=s.jsx(le,{type:y,placeholder:"sk-...",...v,className:"ph-no-capture h-8 text-sm pr-8"}),e[24]=y,e[25]=v,e[26]=O):O=e[26];let T;e[27]!==c?(T=()=>d(!c),e[27]=c,e[28]=T):T=e[28];let A;e[29]!==c?(A=c?s.jsx(Ue,{size:14}):s.jsx(Ve,{size:14}),e[29]=c,e[30]=A):A=e[30];let E;e[31]!==T||e[32]!==A?(E=s.jsx("button",{type:"button",onClick:T,className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:A}),e[31]=T,e[32]=A,e[33]=E):E=e[33];let L;e[34]!==O||e[35]!==E?(L=s.jsxs("div",{className:"relative",children:[O,E]}),e[34]=O,e[35]=E,e[36]=L):L=e[36];let R;e[37]!==g.apiKey?(R=g.apiKey&&s.jsx("p",{className:"text-xs text-destructive",children:g.apiKey.message}),e[37]=g.apiKey,e[38]=R):R=e[38];let P;e[39]!==L||e[40]!==R?(P=s.jsxs("div",{className:"space-y-1",children:[h,L,R]}),e[39]=L,e[40]=R,e[41]=P):P=e[41];let D;e[42]!==I?(D=I&&s.jsx("p",{className:"text-xs text-destructive",children:I.message}),e[42]=I,e[43]=D):D=e[43];let F;e[44]!==_||e[45]!==l?(F=s.jsx(ee,{type:"button",variant:"ghost",size:"sm",onClick:l,disabled:_,children:"Cancel"}),e[44]=_,e[45]=l,e[46]=F):F=e[46];const W=_?"Saving...":"Save Key";let H;e[47]!==_||e[48]!==W?(H=s.jsx(ee,{type:"submit",size:"sm",disabled:_,children:W}),e[47]=_,e[48]=W,e[49]=H):H=e[49];let K;e[50]!==F||e[51]!==H?(K=s.jsxs($e,{children:[F,H]}),e[50]=F,e[51]=H,e[52]=K):K=e[52];let V;return e[53]!==C||e[54]!==P||e[55]!==D||e[56]!==K||e[57]!==b?(V=s.jsxs("form",{onSubmit:b,className:"space-y-3",children:[C,P,D,K]}),e[53]=C,e[54]=P,e[55]=D,e[56]=K,e[57]=b,e[58]=V):V=e[58],V}function as(i){Z.error(`Failed to save key: ${i.message}`)}const cs=Re({label:ae().optional(),baseUrl:ae().min(1,"Base URL is required"),apiKey:ae().optional()});function ds(i){const e=B.c(70),{preset:t,onCancel:l,onSuccess:n}=i,{org:o}=oe(),r=he(),a=pe(),[c,d]=$.useState(!1);let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=Le(cs),e[0]=u):u=e[0];const m=t?.defaultBaseUrl??"";let p;e[1]!==m?(p={resolver:u,defaultValues:{label:"",baseUrl:m,apiKey:""}},e[1]=m,e[2]=p):p=e[2];const{register:f,handleSubmit:g,formState:x}=Pe(p),{errors:j}=x;let k;e[3]!==t||e[4]!==r?(k=async se=>{const lt=JSON.stringify({baseUrl:se.baseUrl,apiKey:se.apiKey||""});await r.call("AI_PROVIDER_KEY_CREATE",{providerId:"openai-compatible",label:se.label||t?.name||se.baseUrl,apiKey:lt,...t?{presetId:t.id}:{}})},e[3]=t,e[4]=r,e[5]=k):k=e[5];let w;e[6]!==n||e[7]!==o||e[8]!==a?(w=()=>{a.invalidateQueries({queryKey:te.aiProviderKeys(o.id)}),a.invalidateQueries({queryKey:te.aiProviders(o.id)}),Z.success("Connection saved successfully"),n()},e[6]=n,e[7]=o,e[8]=a,e[9]=w):w=e[9];let _;e[10]!==k||e[11]!==w?(_={mutationFn:k,onSuccess:w,onError:us},e[10]=k,e[11]=w,e[12]=_):_=e[12];const{mutate:I,isPending:M,error:b}=fe(_),N=t?`e.g. ${t.name} prod, ${t.name} dev`:"e.g. My OpenAI-compatible server",S=t?.baseUrlPlaceholder??"http://localhost:4000/v1";let C;e[13]!==I?(C=se=>I(se),e[13]=I,e[14]=C):C=e[14];let h;e[15]!==g||e[16]!==C?(h=g(C),e[15]=g,e[16]=C,e[17]=h):h=e[17];let y;e[18]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Label"}),e[18]=y):y=e[18];let v;e[19]!==f?(v=f("label"),e[19]=f,e[20]=v):v=e[20];let O;e[21]!==N||e[22]!==v?(O=s.jsxs("div",{className:"space-y-1",children:[y,s.jsx(le,{placeholder:N,...v,className:"h-8 text-sm"})]}),e[21]=N,e[22]=v,e[23]=O):O=e[23];let T;e[24]!==S||e[25]!==j||e[26]!==t?.defaultBaseUrl||e[27]!==f?(T=t?.defaultBaseUrl?s.jsx("input",{type:"hidden",...f("baseUrl")}):s.jsxs("div",{className:"space-y-1",children:[s.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Base URL"}),s.jsx(le,{type:"url",placeholder:S,...f("baseUrl"),className:"h-8 text-sm"}),j.baseUrl&&s.jsx("p",{className:"text-xs text-destructive",children:j.baseUrl.message})]}),e[24]=S,e[25]=j,e[26]=t?.defaultBaseUrl,e[27]=f,e[28]=T):T=e[28];const A=t?.apiKeyRecommended?"recommended":"optional";let E;e[29]!==A?(E=s.jsxs("label",{className:"text-xs font-medium text-muted-foreground",children:["API Key"," ",s.jsxs("span",{className:"text-muted-foreground/60",children:["(",A,")"]})]}),e[29]=A,e[30]=E):E=e[30];const L=c?"text":"password";let R;e[31]!==f?(R=f("apiKey"),e[31]=f,e[32]=R):R=e[32];let P;e[33]!==L||e[34]!==R?(P=s.jsx(le,{type:L,placeholder:"sk-...",...R,className:"ph-no-capture h-8 text-sm pr-8"}),e[33]=L,e[34]=R,e[35]=P):P=e[35];let D;e[36]!==c?(D=()=>d(!c),e[36]=c,e[37]=D):D=e[37];let F;e[38]!==c?(F=c?s.jsx(Ue,{size:14}):s.jsx(Ve,{size:14}),e[38]=c,e[39]=F):F=e[39];let W;e[40]!==D||e[41]!==F?(W=s.jsx("button",{type:"button",onClick:D,className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:F}),e[40]=D,e[41]=F,e[42]=W):W=e[42];let H;e[43]!==P||e[44]!==W?(H=s.jsxs("div",{className:"relative",children:[P,W]}),e[43]=P,e[44]=W,e[45]=H):H=e[45];let K;e[46]!==E||e[47]!==H?(K=s.jsxs("div",{className:"space-y-1",children:[E,H]}),e[46]=E,e[47]=H,e[48]=K):K=e[48];let V;e[49]!==t?(V=t?.helpText&&s.jsx("p",{className:"text-xs text-muted-foreground",children:t.helpText}),e[49]=t,e[50]=V):V=e[50];let z;e[51]!==b?(z=b&&s.jsx("p",{className:"text-xs text-destructive",children:b.message}),e[51]=b,e[52]=z):z=e[52];let Y;e[53]!==M||e[54]!==l?(Y=s.jsx(ee,{type:"button",variant:"ghost",size:"sm",onClick:l,disabled:M,children:"Cancel"}),e[53]=M,e[54]=l,e[55]=Y):Y=e[55];const Q=M?"Saving...":"Save Connection";let q;e[56]!==M||e[57]!==Q?(q=s.jsx(ee,{type:"submit",size:"sm",disabled:M,children:Q}),e[56]=M,e[57]=Q,e[58]=q):q=e[58];let G;e[59]!==Y||e[60]!==q?(G=s.jsxs($e,{children:[Y,q]}),e[59]=Y,e[60]=q,e[61]=G):G=e[61];let U;return e[62]!==O||e[63]!==T||e[64]!==K||e[65]!==V||e[66]!==z||e[67]!==G||e[68]!==h?(U=s.jsxs("form",{onSubmit:h,className:"space-y-3",children:[O,T,K,V,z,G]}),e[62]=O,e[63]=T,e[64]=K,e[65]=V,e[66]=z,e[67]=G,e[68]=h,e[69]=U):U=e[69],U}function us(i){Z.error(`Failed to save connection: ${i.message}`)}const ms={kind:"closed"};function fs(i,e){switch(e.type){case"open":return i.kind==="closed"?{kind:"grid"}:i;case"close":return{kind:"closed"};case"back":switch(i.kind){case"form":case"oauth-pending":case"provision-pending":case"provision-error":return{kind:"grid"};default:return i}case"select-form":return i.kind!=="grid"?i:{kind:"form",providerId:e.providerId,presetId:e.presetId};case"select-oauth":return i.kind!=="grid"?i:{kind:"oauth-pending",providerId:e.providerId,stateToken:e.stateToken};case"oauth-failed":return i.kind==="oauth-pending"?{kind:"grid"}:i;case"select-provision":return i.kind!=="grid"?i:{kind:"provision-pending",providerId:e.providerId};case"provision-error":return i.kind!=="provision-pending"?i:{kind:"provision-error",providerId:i.providerId,error:e.error};case"retry-provision":return i.kind!=="provision-error"?i:{kind:"provision-pending",providerId:i.providerId}}}function hs(i){switch(i.kind){case"form":case"oauth-pending":case"provision-pending":case"provision-error":return i.providerId;default:return null}}function ps({open:i,onOpenChange:e,initialProvider:t}){const n=ge()?.providers??[],{org:o}=oe(),r=he(),a=pe(),[c,d]=$.useReducer(fs,ms),u=$.useRef(!1);$.useEffect(()=>{i&&c.kind==="closed"?d({type:"open"}):!i&&c.kind!=="closed"&&d({type:"close"})},[i,c.kind]);const m=()=>{u.current=!1,d({type:"close"}),e(!1)},p=()=>{a.invalidateQueries({queryKey:te.aiProviderKeys(o.id)}),a.invalidateQueries({queryKey:te.aiProviders(o.id)})},{mutate:f}=fe({mutationFn:async({providerId:h,code:y,stateToken:v,label:O})=>(await r.call("AI_PROVIDER_OAUTH_EXCHANGE",{providerId:h,code:y,stateToken:v,label:O}),h),onSuccess:h=>{J("ai_provider_oauth_succeeded",{provider_id:h}),p();const y=n.find(v=>v.id===h);Z.success(`${y?.name??"Provider"} connected successfully`),m()},onError:(h,y)=>{J("ai_provider_oauth_failed",{provider_id:y.providerId,error:h.message}),Z.error(`OAuth connection failed: ${h.message}`),d({type:"oauth-failed"})}}),{mutate:g}=fe({mutationFn:async h=>(await r.call("AI_PROVIDER_PROVISION_KEY",{providerId:h}),h),onSuccess:h=>{J("ai_provider_provision_succeeded",{provider_id:h}),p();const y=n.find(v=>v.id===h);Z.success(`${y?.name??"Provider"} connected successfully`),m()},onError:(h,y)=>{J("ai_provider_provision_failed",{provider_id:y,error:h.message}),d({type:"provision-error",error:h.message})}}),x=async h=>{const{provider:y}=h,v=h.kind==="openai-compatible"?h.preset?.id??null:null,O=y.supportedMethods.includes("oauth-pkce"),T=y.supportedMethods.includes("api-key");if(y.supportsProvision===!0){J("ai_provider_connect_clicked",{provider_id:y.id,method:"provision"}),d({type:"select-provision",providerId:y.id}),g(y.id);return}if(O){J("ai_provider_connect_clicked",{provider_id:y.id,method:"oauth-pkce"});try{const E=await r.call("AI_PROVIDER_OAUTH_URL",{providerId:y.id,callbackUrl:`${window.location.origin}/oauth/callback/ai-provider`});if(!E?.url)throw new Error("Invalid response from AI_PROVIDER_OAUTH_URL");d({type:"select-oauth",providerId:y.id,stateToken:E.stateToken}),window.open(E.url,"AiProviderOAuth","width=600,height=700")}catch(E){Z.error(`Failed to start OAuth: ${E instanceof Error?E.message:String(E)}`)}return}T&&(J("ai_provider_connect_clicked",{provider_id:y.id,...v!==null?{preset_id:v}:{},method:"api-key"}),d({type:"select-form",providerId:y.id,presetId:v}))},j=$.useRef(x);j.current=x;const k=$.useRef(t);k.current=t,$.useEffect(()=>{!k.current||c.kind!=="grid"||u.current||(u.current=!0,j.current(k.current))},[c.kind]);const w=c.kind==="oauth-pending"?c.stateToken:null,_=c.kind==="oauth-pending"?c.providerId:null;$.useEffect(()=>{if(c.kind!=="oauth-pending")return;let h=!1;const y=c.stateToken,v=c.providerId,O=A=>{if(A.origin!==window.location.origin||A.data?.type!=="AI_PROVIDER_OAUTH_CALLBACK")return;const{code:E,stateToken:L}=A.data;if(L!==y){Z.error("Security check failed: State token mismatch"),d({type:"oauth-failed"});return}h=!0;const R=n.find(P=>P.id===v);f({providerId:v,code:E,stateToken:y,label:R?.name??v})};window.addEventListener("message",O);const T=setTimeout(()=>{h||(J("ai_provider_oauth_timeout",{provider_id:v}),d({type:"oauth-failed"}),Z.error("Connection timed out"))},12e4);return()=>{window.removeEventListener("message",O),clearTimeout(T)}},[c.kind,w,_,f]);const I=hs(c),M=I?n.find(h=>h.id===I):null,N=(c.kind==="form"&&c.presetId?ce.find(h=>h.id===c.presetId):null)?.name??M?.name??"Connect an AI provider",S=c.kind!=="grid"&&c.kind!=="closed",C=()=>{t?m():d({type:"back"})};return s.jsx(De,{open:c.kind!=="closed",onOpenChange:h=>!h&&m(),children:s.jsxs(Fe,{className:"sm:max-w-md max-h-[90vh] overflow-y-auto",children:[s.jsxs(ut,{children:[s.jsxs("div",{className:"flex items-center gap-2",children:[S&&s.jsx(ee,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:C,children:s.jsx(Be,{size:16})}),s.jsx(Ke,{children:N})]}),c.kind==="grid"&&!t&&s.jsx(mt,{children:"Pick a provider — we'll handle the rest."})]}),c.kind==="grid"&&!t&&s.jsx(Ge,{providers:n,onSelect:x}),c.kind==="form"&&(c.providerId==="openai-compatible"?s.jsx(ds,{preset:c.presetId?ce.find(h=>h.id===c.presetId):void 0,onCancel:()=>d({type:"back"}),onSuccess:()=>{p(),m()}}):s.jsx(rs,{providerId:c.providerId,onCancel:()=>d({type:"back"}),onSuccess:()=>{p(),m()}})),c.kind==="oauth-pending"&&s.jsxs("div",{className:"flex flex-col items-center gap-4 py-8",children:[s.jsx(ye,{size:"lg"}),s.jsx("p",{className:"text-sm text-muted-foreground text-center",children:"Authorize the connection in the popup window. This dialog will close once authorization completes."})]}),c.kind==="provision-pending"&&s.jsxs("div",{className:"flex flex-col items-center gap-4 py-8",children:[s.jsx(ye,{size:"lg"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Connecting…"})]}),c.kind==="provision-error"&&s.jsxs("div",{className:"flex flex-col items-center gap-4 py-6",children:[s.jsx(Pt,{size:28,className:"text-destructive"}),s.jsx("p",{className:"text-sm text-foreground text-center",children:c.error}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx(ee,{variant:"outline",size:"sm",onClick:()=>d({type:"back"}),children:"Back"}),s.jsx(ee,{size:"sm",onClick:()=>{d({type:"retry-provision"}),g(c.providerId)},children:"Retry"})]})]})]})})}function xs(){const i=B.c(7),{org:e}=oe(),t=he();let l;i[0]!==e.id?(l=te.defaultBrand(e.id),i[0]=e.id,i[1]=l):l=i[1];let n;i[2]!==t?(n=async()=>{const{items:a}=await t.call("BRAND_CONTEXT_LIST",{});return(Array.isArray(a)?a:[]).find(gs)??null},i[2]=t,i[3]=n):n=i[3];let o;i[4]!==l||i[5]!==n?(o={queryKey:l,queryFn:n},i[4]=l,i[5]=n,i[6]=o):o=i[6];const{data:r}=rt(o);return r??null}function gs(i){return i.isDefault&&!i.archivedAt}function vs(i){const e=i.colors;if(!e)return null;if(Array.isArray(e)){const t=e.find(n=>typeof n=="object"&&n!==null&&"label"in n&&/primary|brand|main/i.test(n.label)),l=t?t.value:e[0]?.value;return typeof l=="string"?l:null}if(typeof e=="object"){const t=e;return t.primary??Object.values(t)[0]??null}return null}function bs(i){const e=B.c(50);let t;e[0]!==i?(t=i===void 0?{}:i,e[0]=i,e[1]=t):t=e[1];const{title:l,description:n,onLocalRuntimePicked:o}=t,{org:r}=oe(),{localMode:a}=ot(),c=xs(),d=bt(),u=jt(),[m,p]=$.useState(null),[f,g]=$.useState(!1),[x,j]=$.useState(!1),k=ge();let w;e[2]!==k?.providers?(w=k?.providers??[],e[2]=k?.providers,e[3]=w):w=e[3];const _=w;let I;if(e[4]!==d.capabilities||e[5]!==d.online){if(I=[],d.online){if(d.capabilities.includes("claude-code")){let U;e[7]===Symbol.for("react.memo_cache_sentinel")?(U={option:"claude-code-desktop",label:"Claude Code",icon:s.jsx(ue,{size:16})},e[7]=U):U=e[7],I.push(U)}if(d.capabilities.includes("codex")){let U;e[8]===Symbol.for("react.memo_cache_sentinel")?(U={option:"codex-desktop",label:"Codex",icon:s.jsx(me,{size:16})},e[8]=U):U=e[8],I.push(U)}}e[4]=d.capabilities,e[5]=d.online,e[6]=I}else I=e[6];const M=I.length>0&&u!==null,b=r.name;let N;e[9]!==c?(N=c?vs(c):null,e[9]=c,e[10]=N):N=e[10];const S=N,C=c?.favicon??c?.logo??null,h=l??(b?`${b} is ready for agents`:"Your agents are almost ready"),y=n??(M?"Your desktop is linked — start now with a local coding agent, or connect a cloud provider for hosted models.":a?"Connect a provider, or run `bunx decocms@latest link` on your desktop for Claude Code, Codex, and local files.":"Connect a provider — or run `bunx decocms@latest link` on your desktop to use Claude Code, Codex, or your local files."),v=!!(C||S);let O;e[11]!==S?(O=S?{backgroundColor:`${S}18`,borderColor:`${S}30`}:void 0,e[11]=S,e[12]=O):O=e[12];const T=O,A=v?"flex items-center justify-center size-14 rounded-2xl border":"flex items-center justify-center size-14 rounded-2xl bg-muted border border-border";let E;e[13]!==A||e[14]!==T||e[15]!==C||e[16]!==d.online||e[17]!==S?(E=C?s.jsx("div",{className:A,style:T,children:s.jsx("img",{src:C,alt:"",className:"size-7 rounded object-contain"})}):s.jsx("button",{type:"button",onClick:()=>j(!0),"aria-label":d.online?"Desktop linked":"Connect your desktop",className:ne(A,"cursor-pointer transition-colors hover:bg-accent"),style:T,children:s.jsxs("span",{className:"relative inline-flex items-center justify-center",children:[s.jsx(Lt,{size:24,style:S?{color:S}:void 0,className:ne(!S&&"text-muted-foreground")}),d.online&&s.jsx("span",{className:"absolute -top-0.5 -right-0.5 size-2.5 rounded-full bg-success ring-2 ring-background animate-pulse"})]})}),e[13]=A,e[14]=T,e[15]=C,e[16]=d.online,e[17]=S,e[18]=E):E=e[18];let L;e[19]!==h?(L=s.jsx("p",{className:"text-xl font-semibold text-foreground tracking-tight",children:h}),e[19]=h,e[20]=L):L=e[20];let R;e[21]!==y?(R=s.jsx("p",{className:"text-sm text-muted-foreground max-w-md",children:y}),e[21]=y,e[22]=R):R=e[22];let P;e[23]!==L||e[24]!==R?(P=s.jsxs("div",{className:"space-y-2",children:[L,R]}),e[23]=L,e[24]=R,e[25]=P):P=e[25];let D;e[26]!==E||e[27]!==P?(D=s.jsxs("div",{className:"flex flex-col items-center gap-4 text-center",children:[E,P]}),e[26]=E,e[27]=P,e[28]=D):D=e[28];let F;e[29]!==u||e[30]!==M||e[31]!==I||e[32]!==o?(F=M&&s.jsxs("div",{className:"flex flex-col items-center gap-3 w-full",children:[s.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2",children:I.map(U=>s.jsxs(ee,{variant:"default",className:"gap-2",onClick:()=>{u?.setPendingAgentOption(U.option),o?.(U.option)},children:[U.icon,"Use ",U.label]},U.option))}),s.jsxs("div",{className:"flex items-center gap-3 w-full max-w-xs text-xs text-muted-foreground",children:[s.jsx("span",{className:"h-px flex-1 bg-border"}),"or connect a cloud provider",s.jsx("span",{className:"h-px flex-1 bg-border"})]})]}),e[29]=u,e[30]=M,e[31]=I,e[32]=o,e[33]=F):F=e[33];let W,H;e[34]===Symbol.for("react.memo_cache_sentinel")?(W=U=>p(U),H=()=>g(!0),e[34]=W,e[35]=H):(W=e[34],H=e[35]);let K;e[36]!==_?(K=s.jsx("div",{className:"w-full",children:s.jsx(Ge,{providers:_,onSelect:W,onShowAll:H})}),e[36]=_,e[37]=K):K=e[37];const V=m!==null||f;let z;e[38]===Symbol.for("react.memo_cache_sentinel")?(z=U=>{U||(p(null),g(!1))},e[38]=z):z=e[38];const Y=m??void 0;let Q;e[39]!==V||e[40]!==Y?(Q=s.jsx(ps,{open:V,onOpenChange:z,initialProvider:Y}),e[39]=V,e[40]=Y,e[41]=Q):Q=e[41];let q;e[42]!==x?(q=s.jsx(Ft,{open:x,onOpenChange:j}),e[42]=x,e[43]=q):q=e[43];let G;return e[44]!==F||e[45]!==K||e[46]!==Q||e[47]!==q||e[48]!==D?(G=s.jsxs("div",{className:"flex flex-col items-center gap-8 w-full max-w-3xl px-4",children:[D,F,K,Q,q]}),e[44]=F,e[45]=K,e[46]=Q,e[47]=q,e[48]=D,e[49]=G):G=e[49],G}function be(i){const e=i.title.includes(": ");return{provider:e?i.title.split(": ")[0]??"":i.modelId.split("/")[0]??"",displayName:e?i.title.split(": ").slice(1).join(": "):i.title}}function js(i){return i<32e3?{level:1,label:"Small",description:"Short conversations"}:i<2e5?{level:2,label:"Medium",description:"Good for most tasks"}:i<5e5?{level:3,label:"Large",description:"Long projects & research"}:{level:4,label:"Very large",description:"Massive files & data"}}const ys=["bg-destructive","bg-warning","bg-success","bg-success"],Ss=["text-success","text-warning","text-warning","text-destructive"];function ks(i){const e=Math.round(i*.75/1e3);return e>=1?`~${e}K words`:`~${Math.round(i*.75)} words`}function Ns(i){return i<1?{level:1,label:"Cheap"}:i<5?{level:2,label:"Moderate"}:i<15?{level:3,label:"High"}:{level:4,label:"Expensive"}}const Cs={text:{icon:s.jsx(Et,{className:"size-3.5"}),label:"Text"},vision:{icon:s.jsx(Kt,{className:"size-3.5"}),label:"Vision"},image:{icon:s.jsx(_t,{className:"size-3.5"}),label:"Image"},tools:{icon:s.jsx(Ot,{className:"size-3.5"}),label:"Tools"},reasoning:{icon:s.jsx(Ut,{className:"size-3.5"}),label:"Reasoning"},"web-search":{icon:s.jsx(We,{className:"size-3.5"}),label:"Web search"}};function ws(i){const e=B.c(5),{capability:t}=i;let l;e[0]!==t?(l=Cs[t]??{icon:null,label:t.charAt(0).toUpperCase()+t.slice(1)},e[0]=t,e[1]=l):l=e[1];const n=l;let o;return e[2]!==n.icon||e[3]!==n.label?(o=s.jsxs("span",{className:"inline-flex items-center gap-1 text-xs text-muted-foreground border border-border rounded px-2 py-0.5",children:[n.icon,n.label]}),e[2]=n.icon,e[3]=n.label,e[4]=o):o=e[4],o}function _s(i){const e=B.c(49),{model:t,compact:l}=i,n=l===void 0?!1:l;if(!t){let b;return e[0]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx("div",{className:"flex items-center justify-center h-full text-muted-foreground text-sm",children:"Hover to preview"}),e[0]=b):b=e[0],b}const o=t.costs?.input!=null?t.costs.input*1e6:null,r=t.costs?.output!=null?t.costs.output*1e6:null;let a;e[1]!==t?(a=be(t),e[1]=t,e[2]=a):a=e[2];const{provider:c,displayName:d}=a;if(n){let b;e[3]!==t.limits?(b=t.limits?.contextWindow&&s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-muted-foreground",children:"Context"}),s.jsxs("span",{className:"text-foreground font-medium",children:[t.limits.contextWindow.toLocaleString()," tokens"]})]}),e[3]=t.limits,e[4]=b):b=e[4];let N;e[5]!==o?(N=o!=null&&s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-muted-foreground",children:"Input"}),s.jsxs("span",{className:"text-foreground font-medium",children:["$",o.toFixed(2)," / 1M"]})]}),e[5]=o,e[6]=N):N=e[6];let S;e[7]!==r?(S=r!=null&&s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-muted-foreground",children:"Output"}),s.jsxs("span",{className:"text-foreground font-medium",children:["$",r.toFixed(2)," / 1M"]})]}),e[7]=r,e[8]=S):S=e[8];let C;e[9]!==t.limits?(C=t.limits?.maxOutputTokens&&s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-muted-foreground",children:"Output limit"}),s.jsxs("span",{className:"text-foreground font-medium",children:[t.limits.maxOutputTokens.toLocaleString()," tokens"]})]}),e[9]=t.limits,e[10]=C):C=e[10];let h;return e[11]!==b||e[12]!==N||e[13]!==S||e[14]!==C?(h=s.jsxs("div",{className:"flex flex-col gap-2 pt-3 pb-3 px-3 text-xs",children:[b,N,S,C]}),e[11]=b,e[12]=N,e[13]=S,e[14]=C,e[15]=h):h=e[15],h}let u;e[16]!==c?(u=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:c}),e[16]=c,e[17]=u):u=e[17];let m;e[18]!==t.logo||e[19]!==t.title?(m=t.logo&&s.jsx("img",{src:t.logo,className:"size-6 shrink-0 rounded-md dark:bg-white dark:rounded-sm dark:p-px",alt:t.title}),e[18]=t.logo,e[19]=t.title,e[20]=m):m=e[20];let p;e[21]!==d?(p=s.jsx("p",{className:"text-lg font-semibold leading-snug tracking-tight",children:d}),e[21]=d,e[22]=p):p=e[22];let f;e[23]!==m||e[24]!==p?(f=s.jsxs("div",{className:"flex items-center gap-2.5",children:[m,p]}),e[23]=m,e[24]=p,e[25]=f):f=e[25];let g;e[26]!==t.modelId?(g=s.jsx("p",{className:"text-xs text-muted-foreground/50 font-mono",children:t.modelId}),e[26]=t.modelId,e[27]=g):g=e[27];let x;e[28]!==u||e[29]!==f||e[30]!==g?(x=s.jsxs("div",{className:"flex flex-col gap-1 pt-1 pr-6",children:[u,f,g]}),e[28]=u,e[29]=f,e[30]=g,e[31]=x):x=e[31];let j;e[32]!==t.capabilities?(j=t.capabilities&&t.capabilities.length>0&&s.jsx("div",{className:"flex flex-wrap items-center gap-1.5 pb-4 border-b border-border",children:[...new Set(t.capabilities)].map(Is)}),e[32]=t.capabilities,e[33]=j):j=e[33];let k;e[34]!==t.limits?(k=t.limits?.contextWindow&&(()=>{const{level:b,label:N,description:S}=js(t.limits.contextWindow);return s.jsxs("div",{className:"flex flex-col gap-1.5",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Context window"}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"flex items-center gap-0.5",children:[1,2,3,4].map(C=>s.jsx("div",{className:ne("w-2 h-2 rounded-full",C<=b?ys[b-1]:"bg-muted")},C))}),s.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:N}),s.jsxs("span",{className:"text-xs text-muted-foreground",children:["— ",S]})]}),s.jsxs("span",{className:"text-sm text-muted-foreground",children:[t.limits.contextWindow.toLocaleString()," tokens"]})]})})(),e[34]=t.limits,e[35]=k):k=e[35];let w;e[36]!==t.limits?(w=t.limits?.maxOutputTokens&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Output limit"}),s.jsxs("div",{className:"flex items-baseline gap-2",children:[s.jsxs("span",{className:"text-sm text-foreground",children:[t.limits.maxOutputTokens.toLocaleString()," tokens"]}),s.jsx("span",{className:"text-sm text-muted-foreground",children:ks(t.limits.maxOutputTokens)})]})]}),e[36]=t.limits,e[37]=w):w=e[37];let _;e[38]!==o||e[39]!==r?(_=(o!=null||r!=null)&&(()=>{const{level:b,label:N}=o!=null?Ns(o):{level:0,label:""};return s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Pricing"}),o!=null&&s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"flex items-center",children:[1,2,3,4].map(S=>s.jsx("span",{className:ne("text-sm font-bold leading-none",S<=b?Ss[b-1]:"text-muted-foreground/20"),children:"$"},S))}),s.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:N})]}),s.jsxs("div",{className:"flex flex-col gap-1",children:[o!=null&&s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsx("span",{className:"text-xs text-muted-foreground",children:"Input"}),s.jsxs("span",{className:"text-xs text-foreground",children:["$",o.toFixed(2)," / 1M tokens"]})]}),r!=null&&s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsx("span",{className:"text-xs text-muted-foreground",children:"Output"}),s.jsxs("span",{className:"text-xs text-foreground",children:["$",r.toFixed(2)," / 1M tokens"]})]})]})]})})(),e[38]=o,e[39]=r,e[40]=_):_=e[40];let I;e[41]!==k||e[42]!==w||e[43]!==_?(I=s.jsxs("div",{className:"flex flex-col gap-6",children:[k,w,_]}),e[41]=k,e[42]=w,e[43]=_,e[44]=I):I=e[44];let M;return e[45]!==I||e[46]!==x||e[47]!==j?(M=s.jsxs("div",{className:"flex flex-col gap-5 py-1 px-1.5",children:[x,j,I]}),e[45]=I,e[46]=x,e[47]=j,e[48]=M):M=e[48],M}function Is(i){return s.jsx(ws,{capability:i},i)}function Xe(i){const e=B.c(19),{model:t,placeholder:l,isLoading:n}=i,o=l===void 0?"Select model":l;if(n===void 0?!1:n){let x;return e[0]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(X,{className:"w-5 h-5 rounded-sm shrink-0"}),s.jsx(X,{className:"w-16 h-3 hidden md:block"})]}),e[0]=x):x=e[0],x}if(!t){let x;e[1]!==o?(x=s.jsx("span",{className:"text-sm text-muted-foreground",children:o}),e[1]=o,e[2]=x):x=e[2];let j;e[3]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(Ne,{size:14,className:"text-muted-foreground opacity-50 shrink-0"}),e[3]=j):j=e[3];let k;return e[4]!==x?(k=s.jsxs("div",{className:"flex items-center gap-1.5",children:[x,j]}),e[4]=x,e[5]=k):k=e[5],k}let a;e[6]!==t?(a=be(t),e[6]=t,e[7]=a):a=e[7];const{displayName:c}=a;let d;e[8]!==t?(d=ve(t),e[8]=t,e[9]=d):d=e[9];const u=d;let m;e[10]!==t.title||e[11]!==u?(m=s.jsx("img",{src:u,className:"w-3.5 h-3.5 shrink-0 rounded-sm dark:bg-white dark:rounded-sm dark:p-px",alt:t.title}),e[10]=t.title,e[11]=u,e[12]=m):m=e[12];let p;e[13]!==c?(p=s.jsx("span",{className:"text-sm truncate whitespace-nowrap text-muted-foreground max-w-[100px] sm:max-w-none",children:c}),e[13]=c,e[14]=p):p=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(Ne,{size:14,className:"text-muted-foreground opacity-50 shrink-0"}),e[15]=f):f=e[15];let g;return e[16]!==m||e[17]!==p?(g=s.jsxs("div",{className:"flex items-center gap-1.5 min-w-0 overflow-hidden",children:[m,p,f]}),e[16]=m,e[17]=p,e[18]=g):g=e[18],g}const Ms=["vision","image","file","audio","video"],Ye=["image/png","image/jpeg","image/gif","image/webp"],Qe=["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];function je(i){const e=i?.capabilities;return e?Ms.some(t=>e.includes(t)):!1}function Di(i,e){if(!i)return!1;if(i.startsWith("text/"))return!0;const t=e?.capabilities??[],l=t.includes("vision")||t.includes("image"),n=t.includes("file"),o=t.includes("audio"),r=t.includes("video");return!!(l&&Ye.includes(i)||n&&i==="application/pdf"||o&&i.startsWith("audio/")||r&&i.startsWith("video/")||je(e)&&Qe.includes(i))}function Fi(i){const e=i?.capabilities??[],t=["text/*"];return(e.includes("vision")||e.includes("image"))&&t.push(...Ye),e.includes("file")&&t.push("application/pdf"),e.includes("audio")&&t.push("audio/*"),e.includes("video")&&t.push("video/*"),je(i)&&t.push(...Qe),t.join(",")}function Ki(i){const e=i?.capabilities??[],t=[];return(e.includes("vision")||e.includes("image"))&&t.push("images"),e.includes("file")&&t.push("PDFs"),e.includes("audio")&&t.push("audio"),e.includes("video")&&t.push("video"),je(i)&&t.push("Office files"),t.length===0?"text only":t.length===1?t[0]:t.length===2?`${t[0]} and ${t[1]}`:`${t.slice(0,-1).join(", ")}, and ${t.at(-1)}`}const Je=["smarter","faster","cheaper"],Ze={smarter:"Smarter",faster:"Faster",cheaper:"Cheaper"},Os=[{tier:"smarter",prefixes:["anthropic/claude-opus-4.8","anthropic/claude-sonnet-4.6","anthropic/claude-4.6-sonnet","openai/gpt-5.3-codex","google/gemini-3-pro","google/gemini-2.5-pro","cohere/command-r-plus","cohere/command-a"]},{tier:"faster",prefixes:["anthropic/claude-haiku-4.5","anthropic/claude-4.5-haiku","google/gemini-3-flash","openai/gpt-5.1-codex-mini","x-ai/grok-code-fast","x-ai/grok-3","mistralai/mistral-large","mistralai/codestral","mistralai/mistral-medium","minimax/minimax-m1"]},{tier:"cheaper",prefixes:["google/gemini-2.5-flash-lite","google/gemini-2.5-flash","google/gemini-2.0-flash","deepseek/deepseek-v3","openai/gpt-oss-120b","mistralai/mistral-small","mistralai/pixtral","cohere/command-r"]}],Es=Os.flatMap(({tier:i,prefixes:e})=>e.map(t=>({tier:i,prefix:t}))).sort((i,e)=>e.prefix.length-i.prefix.length),Ts="google/gemini-2.5-pro",Te=new Map;function As(i){const e=Te.get(i);if(e!==void 0)return e;let t=null;if(i.endsWith(":free"))t="cheaper";else for(const{tier:l,prefix:n}of Es)if(i.startsWith(n)){if(n===Ts&&i.length>n.length&&i[n.length]==="-"){const r=i[n.length+1];if(!r||!/\d/.test(r))continue}t=l;break}return Te.set(i,t),t}function Ae(i){const e={smarter:[],faster:[],cheaper:[],other:[]};for(const t of i){const l=As(t.modelId);e[l??"other"].push(t)}for(const t of Object.keys(e))e[t].sort((l,n)=>l.title.localeCompare(n.title));return e}const et="mesh:model-shortlist:",zs=new Set(["anthropic/claude-opus-4.8","anthropic/claude-sonnet-4.6","anthropic/claude-4.6-sonnet","anthropic/claude-sonnet-4.6:extended","openai/gpt-5.3-codex","google/gemini-3-pro-preview","google/gemini-2.5-pro","anthropic/claude-haiku-4.5","anthropic/claude-haiku-4.5-20251001","anthropic/claude-4.5-haiku","google/gemini-3-flash-preview","openai/gpt-5.1-codex-mini","x-ai/grok-code-fast-1","google/gemini-2.5-flash","deepseek/deepseek-v3.2","google/gemini-2.5-flash-lite","openai/gpt-oss-120b:free"]);function Rs(i){try{const e=localStorage.getItem(et+i);return e?new Set(JSON.parse(e)):null}catch{return null}}function Ls(i,e){localStorage.setItem(et+i,JSON.stringify([...e]))}function Ps(i){const e=B.c(21),{model:t,onHover:l}=i;let n;e[0]!==t?(n=be(t),e[0]=t,e[1]=n):n=e[1];const{displayName:o,provider:r}=n;let a;e[2]!==t?(a=ve(t),e[2]=t,e[3]=a):a=e[3];const c=a;let d;e[4]!==t||e[5]!==l?(d=()=>l(t),e[4]=t,e[5]=l,e[6]=d):d=e[6];let u;e[7]!==t.title||e[8]!==c?(u=s.jsx("img",{src:c,className:"w-4 h-4 shrink-0 rounded-sm dark:bg-white dark:rounded-sm dark:p-px",alt:t.title}),e[7]=t.title,e[8]=c,e[9]=u):u=e[9];let m;e[10]!==o?(m=s.jsx("span",{className:"text-sm text-foreground leading-tight truncate",children:o}),e[10]=o,e[11]=m):m=e[11];let p;e[12]!==r?(p=s.jsx("span",{className:"text-xs text-muted-foreground/60 leading-tight",children:r}),e[12]=r,e[13]=p):p=e[13];let f;e[14]!==m||e[15]!==p?(f=s.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[m,p]}),e[14]=m,e[15]=p,e[16]=f):f=e[16];let g;return e[17]!==d||e[18]!==u||e[19]!==f?(g=s.jsxs("div",{className:"flex items-center gap-2.5 py-2 px-3 hover:bg-accent cursor-pointer rounded-lg",onMouseEnter:d,children:[u,f]}),e[17]=d,e[18]=u,e[19]=f,e[20]=g):g=e[20],g}function $s(i){const e=B.c(10),{error:t,onRetry:l}=i;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"bg-destructive/10 p-2 rounded-full",children:s.jsx(dt,{className:"size-5 text-destructive"})}),e[0]=n):n=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("p",{className:"text-sm font-medium text-foreground",children:"Failed to load models"}),e[1]=o):o=e[1];const r=t?.message||"Could not fetch models from this provider.";let a;e[2]!==r?(a=s.jsxs("div",{className:"flex flex-col gap-1",children:[o,s.jsxs("p",{className:"text-xs text-muted-foreground max-w-[260px]",children:[r," Try another provider or retry."]})]}),e[2]=r,e[3]=a):a=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Mt,{className:"size-3.5"}),e[4]=c):c=e[4];let d;e[5]!==l?(d=s.jsx("div",{className:"flex items-center gap-2",children:s.jsxs(ee,{variant:"outline",size:"sm",onClick:l,className:"gap-1.5",children:[c,"Retry"]})}),e[5]=l,e[6]=d):d=e[6];let u;return e[7]!==a||e[8]!==d?(u=s.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-3 px-4 py-8 text-center",children:[n,a,d]}),e[7]=a,e[8]=d,e[9]=u):u=e[9],u}function Ds(){const i=B.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex-1 overflow-y-auto p-2 space-y-1",children:Array.from({length:6}).map(Fs)}),i[0]=e):e=i[0],e}function Fs(i,e){return s.jsxs("div",{className:"flex items-center gap-2 min-h-8 py-3 px-3 rounded-lg",children:[s.jsx(X,{className:"size-5 shrink-0 rounded-sm"}),s.jsx(X,{className:"flex-1 h-4"}),s.jsx(X,{className:"w-16 h-5 shrink-0 rounded-md"})]},e)}function ze(i){const e=B.c(12),{label:t,models:l,onSelect:n,onHover:o}=i;if(l.length===0)return null;let r;e[0]!==t?(r=s.jsx("div",{className:"text-xs font-medium text-muted-foreground px-3 pt-3 pb-1",children:t}),e[0]=t,e[1]=r):r=e[1];let a;if(e[2]!==l||e[3]!==o||e[4]!==n){let d;e[6]!==o||e[7]!==n?(d=u=>s.jsx("div",{onClick:()=>n(u),className:"cursor-pointer",children:s.jsx(Ps,{model:u,onHover:o})},u.modelId),e[6]=o,e[7]=n,e[8]=d):d=e[8],a=l.map(d),e[2]=l,e[3]=o,e[4]=n,e[5]=a}else a=e[5];let c;return e[9]!==r||e[10]!==a?(c=s.jsxs("div",{children:[r,a]}),e[9]=r,e[10]=a,e[11]=c):c=e[11],c}function Ks(i){const e=B.c(21),{model:t,isChecked:l,onToggle:n,onHover:o}=i,[r,a]=$.useState(l);r!==l&&a(l);let c;e[0]!==t?(c=ve(t),e[0]=t,e[1]=c):c=e[1];const d=c;let u;e[2]!==t||e[3]!==o?(u=()=>o(t),e[2]=t,e[3]=o,e[4]=u):u=e[4];let m;e[5]!==t.modelId||e[6]!==n?(m=()=>{a(Us),n(t.modelId)},e[5]=t.modelId,e[6]=n,e[7]=m):m=e[7];let p;e[8]!==r||e[9]!==m?(p=s.jsx(yt,{checked:r,onCheckedChange:m}),e[8]=r,e[9]=m,e[10]=p):p=e[10];let f;e[11]!==d||e[12]!==t.title?(f=s.jsx("img",{src:d,className:"w-5 h-5 shrink-0 rounded-sm dark:bg-white dark:rounded-sm dark:p-px",alt:t.title}),e[11]=d,e[12]=t.title,e[13]=f):f=e[13];let g;e[14]!==t.title?(g=s.jsx("span",{className:"text-sm text-foreground flex-1 min-w-0 line-clamp-1",children:t.title}),e[14]=t.title,e[15]=g):g=e[15];let x;return e[16]!==u||e[17]!==p||e[18]!==f||e[19]!==g?(x=s.jsxs("label",{className:"flex items-center gap-3 min-h-8 py-2.5 px-3 hover:bg-accent cursor-pointer rounded-lg",onMouseEnter:u,children:[p,f,g]}),e[16]=u,e[17]=p,e[18]=f,e[19]=g,e[20]=x):x=e[20],x}function Us(i){return!i}function Bs(i){const e=[];for(const t of Je)if(i[t].length>0){e.push({type:"header",label:Ze[t]});for(const l of i[t])e.push({type:"model",model:l})}if(i.other.length>0){e.push({type:"header",label:"Other"});for(const t of i.other)e.push({type:"model",model:t})}return e}function Ws({items:i,shortlistSet:e,onToggle:t,onHover:l}){const n=$.useRef(null),o=es({count:i.length,getScrollElement:()=>n.current,estimateSize:r=>i[r]?.type==="header"?36:44,overscan:6});return s.jsx("div",{ref:n,className:"flex-1 overflow-y-auto",children:s.jsx("div",{className:"relative",style:{height:o.getTotalSize()},children:o.getVirtualItems().map(r=>{const a=i[r.index];return a?s.jsx("div",{"data-index":r.index,ref:o.measureElement,className:"absolute left-0 right-0 top-0 px-0.5",style:{transform:`translateY(${r.start}px)`},children:a.type==="header"?s.jsx("div",{className:"text-xs font-medium text-muted-foreground px-3 pt-3 pb-1",children:a.label}):s.jsx(Ks,{model:a.model,isChecked:e.has(a.model.modelId),onToggle:t,onHover:l})},r.key):null})})})}function Hs(i){const e=B.c(23),{keyId:t,searchTerm:l,onHover:n,onModelSelect:o,managing:r,onToggleManage:a,filterModels:c}=i,{models:d}=Rt(t),u=c?d.filter(c):d.filter(Vs);let m;e[0]!==t?(m=()=>(t?Rs(t):null)??zs,e[0]=t,e[1]=m):m=e[1];const[p,f]=$.useState(m),[,g]=$.useTransition();let x;e[2]!==t||e[3]!==g?(x=h=>{t&&g(()=>{f(y=>{const v=new Set(y);return v.has(h)?v.delete(h):v.add(h),Ls(t,v),v})})},e[2]=t,e[3]=g,e[4]=x):x=e[4];const j=x,k=l.toLowerCase().trim(),w=h=>k?h.filter(y=>y.title.toLowerCase().includes(k)||y.modelId.toLowerCase().includes(k)):h;if(r){const h=Ae(w(u)),y=Bs(h);let v;e[5]!==p?(v=E=>p.has(E.modelId),e[5]=p,e[6]=v):v=e[6];const O=u.filter(v).length;let T;e[7]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(Be,{size:14}),e[7]=T):T=e[7];let A;return e[8]!==a?(A=s.jsxs("button",{type:"button",onClick:a,className:"flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground cursor-pointer",children:[T,"Back"]}),e[8]=a,e[9]=A):A=e[9],s.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[s.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-border",children:[A,s.jsxs("span",{className:"text-xs text-muted-foreground",children:[O," selected"]})]}),s.jsx(Ws,{items:y,shortlistSet:p,onToggle:j,onHover:n})]})}let _;e[10]!==p?(_=h=>p.has(h.modelId),e[10]=p,e[11]=_):_=e[11];const I=u.filter(_),M=I.length>0?I:u,b=Ae(w(M));let N;e[12]!==b||e[13]!==n||e[14]!==o?(N=Je.map(h=>s.jsx(ze,{label:Ze[h],models:b[h],onSelect:o,onHover:n},h)),e[12]=b,e[13]=n,e[14]=o,e[15]=N):N=e[15];let S;e[16]!==b.other||e[17]!==n||e[18]!==o?(S=s.jsx(ze,{label:"Other",models:b.other,onSelect:o,onHover:n}),e[16]=b.other,e[17]=n,e[18]=o,e[19]=S):S=e[19];let C;return e[20]!==N||e[21]!==S?(C=s.jsxs("div",{className:"flex-1 overflow-y-auto px-0.5 pt-1 [touch-action:pan-y]",children:[N,S]}),e[20]=N,e[21]=S,e[22]=C):C=e[22],C}function Vs(i){return i.asyncResearch!==!0}function qs(){const i=B.c(6);let e;i[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"border-b border-border h-12 bg-background/95 backdrop-blur sticky top-0 z-10",children:s.jsxs("div",{className:"flex items-center gap-2.5 h-12 px-4",children:[s.jsx(X,{className:"size-4 shrink-0"}),s.jsx(X,{className:"flex-1 h-6"}),s.jsx(X,{className:"w-[140px] h-8 shrink-0"})]})}),i[0]=e):e=i[0];let t;i[1]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsxs("div",{className:"flex-1 flex flex-col md:border-r md:w-[420px] md:min-w-[420px] min-h-0 overflow-hidden",children:[e,s.jsx("div",{className:"flex-1 overflow-y-auto p-2 space-y-1",children:Array.from({length:8}).map(Gs)})]}),i[1]=t):t=i[1];let l;i[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[s.jsx(X,{className:"size-6 shrink-0"}),s.jsx(X,{className:"h-6 w-32"})]}),i[2]=l):l=i[2];let n;i[3]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs("div",{className:"flex flex-col gap-3 py-2 px-0",children:[l,s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(X,{className:"h-6 w-20 rounded-md"}),s.jsx(X,{className:"h-6 w-24 rounded-md"})]})]}),i[3]=n):n=i[3];let o;i[4]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs("div",{className:"flex flex-col gap-1.5",children:[s.jsx(X,{className:"h-4 w-24"}),s.jsx(X,{className:"h-4 w-32"})]}),i[4]=o):o=i[4];let r;return i[5]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs("div",{className:"flex flex-col md:flex-row h-full sm:h-[460px] min-h-0",children:[t,s.jsx("div",{className:"hidden md:block md:w-[320px] md:shrink-0 p-3",children:s.jsxs("div",{className:"flex flex-col gap-3 py-1 px-1.5",children:[n,s.jsxs("div",{className:"flex flex-col gap-4",children:[o,s.jsxs("div",{className:"flex flex-col gap-1.5",children:[s.jsx(X,{className:"h-4 w-16"}),s.jsx(X,{className:"h-4 w-40"})]})]})]})})]}),i[5]=r):r=i[5],r}function Gs(i,e){return s.jsxs("div",{className:"flex items-center gap-2 min-h-8 py-3 px-3 rounded-lg",children:[s.jsx(X,{className:"size-5 shrink-0 rounded-sm"}),s.jsx(X,{className:"flex-1 h-4"}),s.jsx(X,{className:"w-16 h-5 shrink-0 rounded-md"})]},e)}function tt(i){const e=B.c(49),{onClose:t,credentialId:l,onCredentialChange:n,selectedModel:o,onModelChange:r,filterModels:a}=i,[c,d]=$.useState(null),[u,m]=$.useState(""),[p,f]=$.useState(!1),g=$.useRef(null),x=ge(),j=zt();let k;e[0]!==x?.providers?(k=Object.fromEntries((x?.providers??[]).map(Qs)),e[0]=x?.providers,e[1]=k):k=e[1];const w=k,_=at(),{org:I}=oe();let M;e[2]!==n?(M=z=>{n(z),d(null)},e[2]=n,e[3]=M):M=e[3];const b=M;let N;e[4]!==l||e[5]!==t||e[6]!==r?(N=z=>{l&&(r(z),m(""),t())},e[4]=l,e[5]=t,e[6]=r,e[7]=N):N=e[7];const S=N;if(j.length===0){let z;return e[8]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx("div",{className:"flex items-center justify-center p-8 w-full sm:w-[740px]",children:s.jsx(bs,{})}),e[8]=z):z=e[8],z}let C;e[9]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(We,{size:16,className:"text-muted-foreground shrink-0"}),e[9]=C):C=e[9];const h=p?"Search all models...":"Search for a model...";let y;e[10]===Symbol.for("react.memo_cache_sentinel")?(y=z=>m(z.target.value),e[10]=y):y=e[10];let v;e[11]!==u||e[12]!==h?(v=s.jsx(le,{ref:g,type:"text",placeholder:h,value:u,onChange:y,className:"flex-1 min-w-0 border-0 !shadow-none focus-visible:ring-0 px-0 h-full text-sm placeholder:text-muted-foreground/50 bg-transparent"}),e[11]=u,e[12]=h,e[13]=v):v=e[13];let O;e[14]!==l||e[15]!==b||e[16]!==j||e[17]!==w?(O=j.length>0&&s.jsxs(St,{value:l??"",onValueChange:b,children:[s.jsxs(kt,{size:"sm",className:"w-auto max-w-[140px] h-8 shrink-0 gap-1.5 px-2 [&>svg:last-child]:hidden",onClick:Ys,children:[s.jsx(Nt,{placeholder:"Key",children:(()=>{const z=j.find(U=>U.id===l),Y=z?w[z.providerId]:void 0,Q=Oe(z?.presetId),q=Q?.logo??Y?.logo,G=Q?.name??Y?.name??z?.providerId??"Key";return s.jsxs("span",{className:"flex items-center gap-1.5 min-w-0",children:[q?s.jsx("img",{src:q,alt:G,className:"w-4 h-4 rounded shrink-0 dark:bg-white dark:rounded-sm dark:p-px"}):s.jsx("div",{className:"w-4 h-4 rounded bg-primary/10 flex items-center justify-center text-xs font-semibold text-primary shrink-0",children:G.slice(0,1).toUpperCase()}),s.jsx("span",{className:"text-xs truncate",children:G})]})})()}),s.jsx(Tt,{className:"size-4 opacity-50 shrink-0 pointer-events-none"})]}),s.jsx(Ct,{children:j.map(z=>{const Y=w[z.providerId],Q=Oe(z.presetId),q=Q?.logo??Y?.logo,G=Q?.name??Y?.name??z.providerId;return s.jsx(wt,{value:z.id,children:s.jsxs("div",{className:"flex items-center gap-2",children:[q?s.jsx("img",{src:q,alt:G,className:"w-4 h-4 rounded dark:bg-white dark:rounded-sm dark:p-px"}):s.jsx("div",{className:"w-4 h-4 rounded bg-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:G.slice(0,1).toUpperCase()}),s.jsxs("span",{children:[G," — ",z.label]})]})},z.id)})})]}),e[14]=l,e[15]=b,e[16]=j,e[17]=w,e[18]=O):O=e[18];let T;e[19]!==v||e[20]!==O?(T=s.jsx("div",{className:"border-b border-border h-12 bg-background/95 backdrop-blur sticky top-0 z-10",children:s.jsxs("label",{className:"flex items-center gap-2.5 h-12 px-4 pr-12 md:pr-4 cursor-text",children:[C,v,O]})}),e[19]=v,e[20]=O,e[21]=T):T=e[21];let A;e[22]!==l?(A=z=>{const{error:Y,resetError:Q}=z;return s.jsx($s,{error:Y,onRetry:Q,credentialId:l??void 0})},e[22]=l,e[23]=A):A=e[23];let E;e[24]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(Ds,{}),e[24]=E):E=e[24];const L=l??void 0;let R;e[25]===Symbol.for("react.memo_cache_sentinel")?(R=()=>f(Xs),e[25]=R):R=e[25];let P;e[26]!==a||e[27]!==S||e[28]!==p||e[29]!==u||e[30]!==L?(P=s.jsx($.Suspense,{fallback:E,children:s.jsx(Hs,{keyId:L,searchTerm:u,onHover:d,onModelSelect:S,managing:p,onToggleManage:R,filterModels:a})}),e[26]=a,e[27]=S,e[28]=p,e[29]=u,e[30]=L,e[31]=P):P=e[31];let D;e[32]!==l||e[33]!==A||e[34]!==P?(D=s.jsx(ct,{fallback:A,children:P},l),e[32]=l,e[33]=A,e[34]=P,e[35]=D):D=e[35];let F;e[36]!==p||e[37]!==_||e[38]!==I?(F=!p&&s.jsxs("div",{className:"border-t border-border flex",children:[s.jsxs("button",{type:"button",onClick:()=>$.startTransition(()=>f(!0)),className:"flex items-center gap-2 flex-1 px-4 py-2.5 text-xs text-muted-foreground hover:text-foreground hover:bg-accent cursor-pointer",children:[s.jsx(It,{className:"size-3.5 shrink-0"}),"Manage models"]}),s.jsx("div",{className:"w-px bg-border shrink-0"}),s.jsxs("button",{type:"button",onClick:()=>_({to:"/$org/settings/ai-providers",params:{org:I.slug}}),className:"flex items-center gap-2 flex-1 px-4 py-2.5 text-xs text-muted-foreground hover:text-foreground hover:bg-accent cursor-pointer",children:[s.jsx(At,{className:"size-3.5 shrink-0"}),"Manage API keys"]})]}),e[36]=p,e[37]=_,e[38]=I,e[39]=F):F=e[39];let W;e[40]!==D||e[41]!==F||e[42]!==T?(W=s.jsxs("div",{className:"flex-1 flex flex-col md:border-r md:w-[420px] md:min-w-[420px] min-h-0 overflow-hidden",children:[T,D,F]}),e[40]=D,e[41]=F,e[42]=T,e[43]=W):W=e[43];const H=c??o??null;let K;e[44]!==H?(K=s.jsx("div",{className:"hidden md:flex md:flex-col md:w-[320px] md:shrink-0 p-3",children:s.jsx(_s,{model:H})}),e[44]=H,e[45]=K):K=e[45];let V;return e[46]!==W||e[47]!==K?(V=s.jsxs("div",{className:"flex flex-col md:flex-row h-full sm:h-[460px] min-h-0",children:[W,K]}),e[46]=W,e[47]=K,e[48]=V):V=e[48],V}function Xs(i){return!i}function Ys(i){return i.stopPropagation()}function Qs(i){return[i.id,i]}function Js(i){const e=B.c(12),{onClose:t}=i,{credentialId:l,setCredentialId:n,selectedModel:o,setModel:r}=xe();let a;e[0]!==n?(a=u=>{J("chat_credential_changed",{credential_id:u}),n(u)},e[0]=n,e[1]=a):a=e[1];let c;e[2]!==l||e[3]!==o?.modelId||e[4]!==r?(c=u=>{l&&(J("chat_model_changed",{from_model_id:o?.modelId??null,to_model_id:u.modelId,to_model_provider:u.providerId??null,credential_id:l}),r({...u,keyId:l}))},e[2]=l,e[3]=o?.modelId,e[4]=r,e[5]=c):c=e[5];let d;return e[6]!==l||e[7]!==t||e[8]!==o||e[9]!==a||e[10]!==c?(d=s.jsx(tt,{onClose:t,credentialId:l,onCredentialChange:a,selectedModel:o,onModelChange:c}),e[6]=l,e[7]=t,e[8]=o,e[9]=a,e[10]=c,e[11]=d):d=e[11],d}function Zs(i){const e=B.c(2),{onClose:t}=i;let l;return e[0]!==t?(l=s.jsx(Js,{onClose:t}),e[0]=t,e[1]=l):l=e[1],l}function ei(i){const e=B.c(2);let t;return e[0]!==i?(t=s.jsx(tt,{...i}),e[0]=i,e[1]=t):t=e[1],t}const ti=[{tier:"fast",description:"Quicker responses"},{tier:"smart",description:"Balanced quality"},{tier:"thinking",description:"Deeper reasoning"}];function st(i){const e=B.c(10),{modelSet:t,selectedModelId:l,onSelect:n}=i;let o,r;if(e[0]!==t.logo||e[1]!==t.models||e[2]!==t.tiers||e[3]!==n||e[4]!==l){const c=Object.fromEntries(t.models.map(si));o="flex flex-col p-2 w-[320px]",r=ti.map(d=>{const{tier:u,description:m}=d,p=t.tiers[u];if(!p.modelId)return null;const f=c[p.modelId];if(!f)return null;const g=l===p.modelId;return s.jsxs("button",{type:"button",onClick:()=>n(f),className:ne("flex items-center gap-3 px-3 py-2.5 rounded-lg text-left hover:bg-accent",g&&"bg-accent/50"),children:[s.jsx("img",{src:t.logo,alt:p.label,className:"size-5 shrink-0 rounded-sm dark:bg-white dark:rounded-sm dark:p-px"}),s.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[s.jsx("span",{className:"text-sm text-foreground leading-tight truncate",children:p.label}),s.jsx("span",{className:"text-xs text-muted-foreground leading-tight",children:m})]})]},u)}),e[0]=t.logo,e[1]=t.models,e[2]=t.tiers,e[3]=n,e[4]=l,e[5]=o,e[6]=r}else o=e[5],r=e[6];let a;return e[7]!==o||e[8]!==r?(a=s.jsx("div",{className:o,children:r}),e[7]=o,e[8]=r,e[9]=a):a=e[9],a}function si(i){return[i.modelId,i]}const ii=[{providerId:"claude-code",modelId:"claude-code:haiku",title:"Claude Code Haiku",description:"Fast and lightweight",capabilities:["text"],limits:null,costs:null},{providerId:"claude-code",modelId:"claude-code:sonnet",title:"Claude Code Sonnet 5",description:"Balanced performance",capabilities:["text","reasoning"],limits:null,costs:null},{providerId:"claude-code",modelId:"claude-code:opus",title:"Claude Code Opus",description:"Most capable",capabilities:["text","reasoning"],limits:null,costs:null},{providerId:"claude-code",modelId:"claude-code:opus-1m",title:"Claude Code Opus 4.8 1M",description:"Most capable, 1M context window",capabilities:["text","reasoning"],limits:{contextWindow:1e6,maxOutputTokens:null},costs:null}],de="https://assets.decocache.com/decocms/6ac44f1c-c0cf-4480-84b5-2ae6fe742d0b/codex-app.png.png",li=[{providerId:"codex",modelId:"codex:gpt-5.6-sol",title:"GPT-5.6 Sol",description:"Frontier Codex model for deep reasoning, complex coding, and real-world work",capabilities:["text","reasoning"],logo:de,limits:null,costs:null},{providerId:"codex",modelId:"codex:gpt-5.6-terra",title:"GPT-5.6 Terra",description:"Balanced Codex model for everyday coding and agent work",capabilities:["text","reasoning"],logo:de,limits:null,costs:null},{providerId:"codex",modelId:"codex:gpt-5.6-luna",title:"GPT-5.6 Luna",description:"Fast Codex model for lightweight coding tasks and titles",capabilities:["text","reasoning"],logo:de,limits:null,costs:null},{providerId:"codex",modelId:"codex:gpt-5.3-codex-spark",title:"GPT-5.3 Codex Spark",description:"Ultra-fast coding model",capabilities:["text","reasoning"],logo:de,limits:null,costs:null}],ni="https://decoims.com/decocms/93e4059c-e598-412b-87eb-54d72a946ec8/claude-stroke-rounded.svg",oi="https://decoims.com/decocms/9170ffd4-b9cc-4661-ad8f-ae2eea019e00/codex.svg",ri={fast:{modelId:"claude-code:haiku",label:"Haiku 4.5",description:"Quicker responses",iconNode:s.jsx(ue,{size:16})},smart:{modelId:"claude-code:sonnet",label:"Sonnet 5",description:"Balanced quality",iconNode:s.jsx(ue,{size:16})},thinking:{modelId:"claude-code:opus-1m",label:"Opus 4.8 1M",description:"Deeper reasoning",iconNode:s.jsx(ue,{size:16})}},ai={fast:{modelId:"codex:gpt-5.6-luna",label:"GPT-5.6 Luna",description:"Quicker responses",iconNode:s.jsx(me,{size:16})},smart:{modelId:"codex:gpt-5.6-terra",label:"GPT-5.6 Terra",description:"Balanced quality",iconNode:s.jsx(me,{size:16})},thinking:{modelId:"codex:gpt-5.6-sol",label:"GPT-5.6 Sol",description:"Deeper reasoning",iconNode:s.jsx(me,{size:16})}};function it(i){return i==="claude-code"?{logo:ni,tiers:ri,models:ii}:i==="codex"?{logo:oi,tiers:ai,models:li}:null}function ci(i){const e=B.c(11),{onClose:t,agent:l}=i,n=xe(),o=l??n.pendingHarnessId??"decopilot";let r;e[0]!==o?(r=it(o),e[0]=o,e[1]=r):r=e[1];const a=r;if(!a){let m;return e[2]!==t?(m=s.jsx(Zs,{onClose:t}),e[2]=t,e[3]=m):m=e[3],m}const c=n.selectedModel?.modelId??a.tiers[n.simpleModeTier].modelId;let d;e[4]!==t||e[5]!==n?(d=m=>{n.setModel({...m,keyId:void 0}),t()},e[4]=t,e[5]=n,e[6]=d):d=e[6];let u;return e[7]!==a||e[8]!==c||e[9]!==d?(u=s.jsx(st,{modelSet:a,selectedModelId:c,onSelect:d}),e[7]=a,e[8]=c,e[9]=d,e[10]=u):u=e[10],u}function di(i){const e=B.c(13);let t,l;e[0]!==i?({agent:t,...l}=i,e[0]=i,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let n;e[3]!==t?(n=t?it(t):null,e[3]=t,e[4]=n):n=e[4];const o=n;if(!o){let d;return e[5]!==l?(d=s.jsx(ei,{...l}),e[5]=l,e[6]=d):d=e[6],d}const r=l.selectedModel?.modelId??o.tiers.smart.modelId;let a;e[7]!==l?(a=d=>{l.onModelChange(d),l.onClose()},e[7]=l,e[8]=a):a=e[8];let c;return e[9]!==o||e[10]!==r||e[11]!==a?(c=s.jsx(st,{modelSet:o,selectedModelId:r,onSelect:a}),e[9]=o,e[10]=r,e[11]=a,e[12]=c):c=e[12],c}function Ui(i){const e=B.c(39),{variant:t,className:l,placeholder:n,model:o,isLoading:r,credentialId:a,onCredentialChange:c,onModelChange:d,filterModels:u,agent:m}=i,p=t===void 0?"borderless":t,f=n===void 0?"Select model":n,[g,x]=$.useState(!1),j=d!==void 0,k=vt(),w=p==="borderless"?"ghost":"outline",_=p==="borderless"&&"md:border-none";let I;e[0]!==l||e[1]!==_?(I=ne("text-sm hover:bg-accent rounded-lg py-0.5 px-1 gap-1 shadow-none cursor-pointer border-0 group focus-visible:ring-0 focus-visible:ring-offset-0 min-w-0 shrink justify-start overflow-hidden",_,l),e[0]=l,e[1]=_,e[2]=I):I=e[2];let M;e[3]!==r||e[4]!==o||e[5]!==f||e[6]!==j?(M=j?s.jsx(Xe,{model:o??null,placeholder:f,isLoading:r}):s.jsx(mi,{placeholder:f}),e[3]=r,e[4]=o,e[5]=f,e[6]=j,e[7]=M):M=e[7];let b;e[8]!==w||e[9]!==I||e[10]!==M?(b=s.jsx(ee,{variant:w,size:"sm",className:I,children:M}),e[8]=w,e[9]=I,e[10]=M,e[11]=b):b=e[11];const N=b;let S;e[12]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(qs,{}),e[12]=S):S=e[12];let C;e[13]!==m||e[14]!==a||e[15]!==u||e[16]!==o||e[17]!==c||e[18]!==d||e[19]!==j?(C=s.jsx($.Suspense,{fallback:S,children:j?s.jsx(di,{onClose:()=>x(!1),agent:m,credentialId:a??null,onCredentialChange:c??ui,selectedModel:o??null,onModelChange:d,filterModels:u}):s.jsx(ci,{onClose:()=>x(!1),agent:m})}),e[13]=m,e[14]=a,e[15]=u,e[16]=o,e[17]=c,e[18]=d,e[19]=j,e[20]=C):C=e[20];const h=C;if(k){let A;e[21]!==N?(A=s.jsx(ht,{asChild:!0,children:N}),e[21]=N,e[22]=A):A=e[22];let E;e[23]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(pt,{className:"sr-only",children:"Select model"}),e[23]=E):E=e[23];let L;e[24]!==h?(L=s.jsxs(xt,{className:"p-0 flex flex-col max-h-[95vh]",children:[E,s.jsx("div",{className:"flex-1 flex flex-col min-h-0 overflow-hidden",children:h})]}),e[24]=h,e[25]=L):L=e[25];let R;return e[26]!==g||e[27]!==A||e[28]!==L?(R=s.jsxs(gt,{open:g,onOpenChange:x,children:[A,L]}),e[26]=g,e[27]=A,e[28]=L,e[29]=R):R=e[29],R}let y;e[30]!==N?(y=s.jsx(ft,{asChild:!0,children:N}),e[30]=N,e[31]=y):y=e[31];let v;e[32]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(Ke,{className:"sr-only",children:"Select model"}),e[32]=v):v=e[32];let O;e[33]!==h?(O=s.jsxs(Fe,{className:"p-0 gap-0 sm:max-w-fit overflow-hidden h-[100dvh] sm:h-auto max-h-[100dvh] sm:max-h-[85vh] w-full max-w-full sm:max-w-fit rounded-none sm:rounded-xl border-0 sm:border",closeButtonClassName:"top-3.5 right-3.5 z-20",children:[v,h]}),e[33]=h,e[34]=O):O=e[34];let T;return e[35]!==g||e[36]!==y||e[37]!==O?(T=s.jsxs(De,{open:g,onOpenChange:x,children:[y,O]}),e[35]=g,e[36]=y,e[37]=O,e[38]=T):T=e[38],T}function ui(){}function mi(i){const e=B.c(4),{placeholder:t}=i,{selectedModel:l,isModelsLoading:n}=xe();let o;return e[0]!==n||e[1]!==l||e[2]!==t?(o=s.jsx(Xe,{model:l,placeholder:t,isLoading:n}),e[0]=n,e[1]=l,e[2]=t,e[3]=o):o=e[3],o}export{ps as C,Ui as M,bs as N,ce as O,Ge as P,Fi as a,Ki as g,Di as i,je as m};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-E5qs1vxm.js","assets/index-Ds-HfC6n.js","assets/index-BGqqvTWB.css","assets/Tool02-CxiSJzZp.js","assets/CheckCircle-CaqljOnz.js","assets/Settings02-BJaUducV.js","assets/use-mcp-client-_br2p_bf.js","assets/constants-BHDe7bIw.js","assets/auth-B2MrKpCt.js","assets/useInfiniteQuery-BRkIiLOG.js","assets/use-infinite-scroll-CNHh35jb.js","assets/studio-tools-BCF7Emba.js","assets/badge-NQMfn1dt.js","assets/input-CwsDeRW1.js","assets/dropdown-menu-D3TO7NsH.js","assets/Check-CHN1T8vI.js","assets/ChevronRight-C6t8IZZc.js","assets/Circle-Akjlxa1B.js","assets/table-4qGBxfdb.js","assets/toggle-group-BRjSMSnU.js","assets/use-view-mode-CueytzVI.js","assets/use-mobile-1EYV2ZBj.js","assets/DotsVertical-DwGEoc3a.js","assets/FilterLines-D5F51p9V.js","assets/Globe01-CDfSxX3-.js","assets/SearchMd-DoLlnPcs.js","assets/dialog-Df9j8Uag.js","assets/X-CGox_cIc.js","assets/AlertCircle-C_R2gNR6.js","assets/Upload01-QJcrfIv8.js","assets/alert-dialog-DC9ppgrc.js","assets/card-BCHwENDj.js","assets/Trash01-3RGYR5ZZ.js","assets/label-D06iDaWq.js","assets/select-rVmmMqu5.js","assets/tooltip-DF9ELLft.js","assets/ChevronDown-DeKhnunA.js","assets/ChevronUp-ByLiGcrz.js","assets/switch-p99UQqZH.js","assets/textarea-CNNNBEcd.js","assets/XCircle-CW8s2hOY.js","assets/checkbox-CWSfmUzO.js","assets/Eye-BdDoUsgN.js","assets/LinkExternal01-BwkQzfkf.js","assets/use-copy-BwC3MtYV.js","assets/Copy01-D_XFEDz5.js","assets/Key01-C3yVFpbS.js","assets/Plus-B2SZN6mH.js","assets/mcp-oauth-DsKnJBMS.js","assets/Play-Bu8Z0F10.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as m,b as n,e as c,j as t,i as p,r as l,aX as f}from"./index-Ds-HfC6n.js";import{R as u}from"./require-capability-x1ztzZLs.js";import"./use-capability-BFu21g24.js";import"./access-gate-Dz6XZqwf.js";import"./capability-load-error-BStQ9veQ.js";const g=l.lazy(()=>f(()=>import("./registry-layout-E5qs1vxm.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(p,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./use-infinite-scroll-CNHh35jb.js";import{dK as i}from"./index-Ds-HfC6n.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./use-infinite-scroll-CNHh35jb.js";import{dK as u,ab as n}from"./index-Ds-HfC6n.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|