decocms 3.20.1 → 3.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-BiKiI44L.js → AlertCircle-CBwqugJe.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-a9y7JExT.js → ArrowUpRight--24rRsQC.js} +1 -1
- package/dist/client/assets/{Check-BXjvCNRo.js → Check-BEDsGGM_.js} +1 -1
- package/dist/client/assets/{CheckCircle-79umy6UR.js → CheckCircle-CFdIOhwM.js} +1 -1
- package/dist/client/assets/{ChevronDown-DERZQdMP.js → ChevronDown-Y-7MoOW4.js} +1 -1
- package/dist/client/assets/{ChevronLeft-C6IDOOPU.js → ChevronLeft-BSf4mKrR.js} +1 -1
- package/dist/client/assets/{ChevronRight-CBmg3jrn.js → ChevronRight-B1SVpAS5.js} +1 -1
- package/dist/client/assets/{ChevronUp-28KZDFJ3.js → ChevronUp-DooNP946.js} +1 -1
- package/dist/client/assets/{Container-Bmp8f1Hw.js → Container-BcM96X15.js} +1 -1
- package/dist/client/assets/{DotsVertical-BfY2m12a.js → DotsVertical-kVh0UVRo.js} +1 -1
- package/dist/client/assets/{Eye-DNuwjCPP.js → Eye-Bowp4iez.js} +1 -1
- package/dist/client/assets/{FilterLines-0ZErBJ3i.js → FilterLines-DXSEbwW6.js} +1 -1
- package/dist/client/assets/{Globe01-DUsTmpYW.js → Globe01-CF7IqqKh.js} +1 -1
- package/dist/client/assets/{HardDrive-CTInlaSO.js → HardDrive-CPqmzwVB.js} +1 -1
- package/dist/client/assets/{Key01-DhkJOk-2.js → Key01-NY-IsQgy.js} +1 -1
- package/dist/client/assets/{LayoutLeft-C4WMufMy.js → LayoutLeft-BgC7aOjO.js} +1 -1
- package/dist/client/assets/{LinkExternal01-pT0NrKlt.js → LinkExternal01-Cgr3jZjD.js} +1 -1
- package/dist/client/assets/{Monitor01-BqHMMIjb.js → Monitor01-BLzNpHgz.js} +1 -1
- package/dist/client/assets/{Palette-B1alDozW.js → Palette-6N_c4T4_.js} +1 -1
- package/dist/client/assets/{Play--ZCMNFjg.js → Play-B9p1kZpZ.js} +1 -1
- package/dist/client/assets/{Plus-C1rAdUXl.js → Plus-Bymlyq77.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-Bdic4y2D.js → RefreshCcw01-CR5XeXPv.js} +1 -1
- package/dist/client/assets/{SearchMd-BuArn0kO.js → SearchMd-7k7TbMsJ.js} +1 -1
- package/dist/client/assets/{Settings02-CMckE2RK.js → Settings02-DbR-330c.js} +1 -1
- package/dist/client/assets/{Shield01-XGinfl8i.js → Shield01-wwDAi_uJ.js} +1 -1
- package/dist/client/assets/{Star01-lcgisujL.js → Star01-DVebopnN.js} +1 -1
- package/dist/client/assets/{Stars01-CQ0RN6al.js → Stars01-CDcY9WwZ.js} +1 -1
- package/dist/client/assets/{Stars02-bUApAo8o.js → Stars02-YwHPi-7I.js} +1 -1
- package/dist/client/assets/{Sun-BhoXpP-F.js → Sun-DXdRtf6l.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-D9V4WNpS.js → SwitchHorizontal01-Dha4DHjZ.js} +1 -1
- package/dist/client/assets/{Tool01-nw4j5J0X.js → Tool01-BTE6nmQ4.js} +1 -1
- package/dist/client/assets/{Trash01-BoFGJN1_.js → Trash01-B-X6RyaC.js} +1 -1
- package/dist/client/assets/{Upload01-Cmfv30sX.js → Upload01-DsBsPR-L.js} +1 -1
- package/dist/client/assets/{User01-of2DRTwj.js → User01-Y_Kyyfi4.js} +1 -1
- package/dist/client/assets/{Users01-DYI7DwUF.js → Users01-e0FZKqF3.js} +1 -1
- package/dist/client/assets/{Users03-DYjDLJbQ.js → Users03-BwOA6RiF.js} +1 -1
- package/dist/client/assets/{X-DWbNv8Bl.js → X-CeSkzEjM.js} +1 -1
- package/dist/client/assets/{XCircle-DDLSDNYP.js → XCircle-qkpSwHM6.js} +1 -1
- package/dist/client/assets/{XClose-B1Jrn5dt.js → XClose-CodFwf_E.js} +1 -1
- package/dist/client/assets/{Zap-BBs40ZSU.js → Zap-Gvzp-SH3.js} +1 -1
- package/dist/client/assets/{ZapSquare-DfDC54JS.js → ZapSquare-M-fH4MJf.js} +1 -1
- package/dist/client/assets/{ZoomOut-xmLm2dBO.js → ZoomOut-CgCAgEfn.js} +1 -1
- package/dist/client/assets/{access-gate-CZrbf5CL.js → access-gate-yH-Av9gZ.js} +1 -1
- package/dist/client/assets/{accordion-BSz8aiEx.js → accordion-Wptwv3ei.js} +1 -1
- package/dist/client/assets/add-section-modal-C596gc6u.js +1 -0
- package/dist/client/assets/{agent-capabilities-B27hg_M4.js → agent-capabilities-pAj3t6Aa.js} +1 -1
- package/dist/client/assets/{agent-icon-DfM7tMDC.js → agent-icon-BDCTH9NT.js} +1 -1
- package/dist/client/assets/{agent-icons-Bd8x3NUl.js → agent-icons-Jj9QCCT9.js} +1 -1
- package/dist/client/assets/{agents-list-jJ3SCTiq.js → agents-list-DvLskc8Q.js} +1 -1
- package/dist/client/assets/{ai-providers-CvW8VLxj.js → ai-providers-BBIu7ZXT.js} +1 -1
- package/dist/client/assets/{alert-pkP6Ribw.js → alert-C6yRIixe.js} +1 -1
- package/dist/client/assets/{alert-dialog-C4ynNGJF.js → alert-dialog-DPYmMCbT.js} +1 -1
- package/dist/client/assets/app-editor-X4geDaql.js +1 -0
- package/dist/client/assets/{auth-catchall-BORQNXyD.js → auth-catchall-MOPzdxWf.js} +1 -1
- package/dist/client/assets/{auth-split-layout-fc9XAQ3S.js → auth-split-layout-CelS9Z9I.js} +1 -1
- package/dist/client/assets/{automation-list-row-DTxZO-vH.js → automation-list-row-Cscfso-k.js} +1 -1
- package/dist/client/assets/{automation-runs-XPUSkViZ.js → automation-runs-B9tKW-5u.js} +1 -1
- package/dist/client/assets/{automations-BxQFQTdM.js → automations-BmKAo4DY.js} +1 -1
- package/dist/client/assets/{avatar-Cmykl5Hl.js → avatar-CB3_y_zI.js} +1 -1
- package/dist/client/assets/{badge-CYgKxTpF.js → badge-CQybGfxn.js} +1 -1
- package/dist/client/assets/{brand-context-Dg59Sj8x.js → brand-context-BmtDTKSi.js} +1 -1
- package/dist/client/assets/{buckets-Czvp0uyU.js → buckets-BdiAvpJ6.js} +1 -1
- package/dist/client/assets/{calendar-BbdXUff-.js → calendar-BZZJ1lU5.js} +1 -1
- package/dist/client/assets/{capability-load-error-ByfTnmda.js → capability-load-error-BgxjXvkK.js} +1 -1
- package/dist/client/assets/{card-CANcGy5k.js → card-D-5GEcNj.js} +1 -1
- package/dist/client/assets/{chat-context-xuPBtQVH.js → chat-context-CQ8Sv7Z0.js} +1 -1
- package/dist/client/assets/{checkbox-Djxv9Ar7.js → checkbox-B6S6Zp2z.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Cn-VYVl9.js → cli-auth-success-DqylkzZK.js} +1 -1
- package/dist/client/assets/{collection-detail-BDTL3JhR.js → collection-detail-2BYHOr3-.js} +1 -1
- package/dist/client/assets/{collection-display-button-BjlL9Woc.js → collection-display-button-D3QV52tk.js} +1 -1
- package/dist/client/assets/{collection-search-DSz3RDou.js → collection-search-CwRnoUd2.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CFky-DXb.js → collection-table-wrapper-DuBP5O7g.js} +1 -1
- package/dist/client/assets/{collection-tabs-BcYP8buy.js → collection-tabs-BaSPyUXn.js} +1 -1
- package/dist/client/assets/{collections-BVLezaR1.js → collections-CpOrr_Gv.js} +1 -1
- package/dist/client/assets/{command-CnCEvYjS.js → command-DprDJr8i.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-Lo4qdhfs.js → connect-desktop-dialog-Uaj5e58Y.js} +1 -1
- package/dist/client/assets/{connection-card-D82-toy5.js → connection-card-C5qc95C-.js} +1 -1
- package/dist/client/assets/{connection-detail-C_fITaGC.js → connection-detail-ClgTkTr2.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-UH9KShfg.js → connection-form-helpers-DWZPGoQ0.js} +1 -1
- package/dist/client/assets/{connections-sH97qYmC.js → connections-CNnVWMCc.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-C-7QzQnf.js → decopilot-sse-pool-oHmW4h5V.js} +1 -1
- package/dist/client/assets/{dialog-CRbRTRjQ.js → dialog-CxQuymkd.js} +1 -1
- package/dist/client/assets/{domain-settings-Cl33lrry.js → domain-settings-C-5nsb1F.js} +1 -1
- package/dist/client/assets/{drawer-BOb8J64a.js → drawer-Cpdg2y8l.js} +1 -1
- package/dist/client/assets/{dropdown-menu-o8504Ahe.js → dropdown-menu-Kn1KFf_7.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-yJWugNv9.js → dynamic-plugin-layout-m2PVEPiw.js} +1 -1
- package/dist/client/assets/{empty-state-BqjWWsLJ.js → empty-state-B1_qnFui.js} +1 -1
- package/dist/client/assets/{empty-state-iHDXNEBU.js → empty-state-CSC6EQIQ.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Dfy3Qlc3.js → extract-connection-data-DLKFWvUj.js} +1 -1
- package/dist/client/assets/{features-DKmzCIZF.js → features-OWKqeKPc.js} +1 -1
- package/dist/client/assets/{file-explorer-DyPSLDIH.js → file-explorer-cLwV2vYd.js} +1 -1
- package/dist/client/assets/{file-type-icon-C5unlJPE.js → file-type-icon-Bosly9dX.js} +1 -1
- package/dist/client/assets/{files-Dk33oDA1.js → files-DhKSL0bf.js} +1 -1
- package/dist/client/assets/{form-CmvFmoxJ.js → form-BEq77uTF.js} +1 -1
- package/dist/client/assets/{general-3ekLpUOj.js → general-BbVuoj3y.js} +1 -1
- package/dist/client/assets/{generate-id-yESv9K1i.js → generate-id-CpIkXSfl.js} +1 -1
- package/dist/client/assets/{github-repo-picker-BNoPWqQE.js → github-repo-picker-DeZ7XjfM.js} +1 -1
- package/dist/client/assets/header-tab-button-B3Zn4qt-.js +5 -0
- package/dist/client/assets/{hover-card-Clt-L-5u.js → hover-card-CiGu2Rc9.js} +1 -1
- package/dist/client/assets/{image-field-fSOsfNOS.js → image-field-KXYbIIcm.js} +1 -1
- package/dist/client/assets/{index-qOg3Rq1i.js → index-0wo9R-KN.js} +1 -1
- package/dist/client/assets/{index-beoEt2Qf.js → index-1x-cRIHB.js} +1 -1
- package/dist/client/assets/{index-B5koQSO_.js → index-4wfPgw7r.js} +1 -1
- package/dist/client/assets/{index-v-4yPWk5.js → index-B7vG9XMB.js} +3 -3
- package/dist/client/assets/{index-CBptA12o.js → index-BxXPz7Bo.js} +1 -1
- package/dist/client/assets/index-C4D2JWLP.css +1 -0
- package/dist/client/assets/{index-Dcy4qvFS.js → index-CByCDOy2.js} +1 -1
- package/dist/client/assets/{index-oVaThiKb.js → index-CLB6WU0x.js} +1 -1
- package/dist/client/assets/{index-dQSPhEbP.js → index-CVKiAO9w.js} +1 -1
- package/dist/client/assets/{index-tnP0ll1b.js → index-CYhCrWAi.js} +28 -28
- package/dist/client/assets/{index-I3812Vft.js → index-CgnnAE8X.js} +1 -1
- package/dist/client/assets/{index-B-dwfQaO.js → index-CtCvHbuC.js} +1 -1
- package/dist/client/assets/{index-DL_YJ_kc.js → index-D54pKkTb.js} +1 -1
- package/dist/client/assets/{index-CgVH5Gsy.js → index-DLL1noOh.js} +1 -1
- package/dist/client/assets/{index-RZpEFxBX.js → index-DbKaISqA.js} +1 -1
- package/dist/client/assets/{index-redirect-BvT5beZX.js → index-redirect-SPQ5XDqE.js} +1 -1
- package/dist/client/assets/{index-C5VM3lmZ.js → index-z3J3f1Ar.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-C1PO3LYQ.js → infiniteQueryObserver-COC30QjI.js} +1 -1
- package/dist/client/assets/{input-DMJCExP6.js → input-BlbFVhmY.js} +1 -1
- package/dist/client/assets/{integration-icon-CCk0_Shy.js → integration-icon-DV694Bxd.js} +1 -1
- package/dist/client/assets/{label-Cydnpuha.js → label-DusmHQMe.js} +1 -1
- package/dist/client/assets/{layout-CYzkZYWN.js → layout-CSvam0IG.js} +1 -1
- package/dist/client/assets/{login-C8gbPZ_q.js → login-BDEm2zEc.js} +1 -1
- package/dist/client/assets/{members-eOFmKnk2.js → members-Bomx0Sn5.js} +1 -1
- package/dist/client/assets/{monaco-editor-B1jmgnr2.js → monaco-editor-DkKdkwZa.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Bhd7otxG.js → monitoring-stats-row-CX_8bt9_.js} +1 -1
- package/dist/client/assets/{oauth-callback-D_OMww7o.js → oauth-callback-CgtlvaLv.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BrH5KwkX.js → oauth-callback-ai-provider-BYMLI4dT.js} +1 -1
- package/dist/client/assets/{onboarding-x5rgQZTE.js → onboarding-BF9j6YV8.js} +1 -1
- package/dist/client/assets/{org-install-DztqscE_.js → org-install-DGQXekU8.js} +1 -1
- package/dist/client/assets/{org-layout-Djy749Lv.js → org-layout-bYdeQW0W.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-CL51Q8mZ.js → org-plugin-layout-CM3JP6B6.js} +1 -1
- package/dist/client/assets/page-seo-form-DFQzldH7.js +1 -0
- package/dist/client/assets/page-seo-sheet-CPW3cnfl.js +1 -0
- package/dist/client/assets/{pair-q0PU9j8x.js → pair-B6RPc276.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-KoGMJ4Fp.js → plugin-empty-state-C4jzTlPx.js} +1 -1
- package/dist/client/assets/{plugin-header-CDllrFVE.js → plugin-header-CVstxVuf.js} +1 -1
- package/dist/client/assets/{plugin-layout-D37luZoZ.js → plugin-layout-CNVxRIAq.js} +1 -1
- package/dist/client/assets/{popover-BGH6hpUr.js → popover-k1SAuM8F.js} +1 -1
- package/dist/client/assets/{post-editor-DqWr1-HF.js → post-editor-CBrNSYLu.js} +1 -1
- package/dist/client/assets/{primitives-ZaZwVc6Z.js → primitives-BSCmh5I1.js} +1 -1
- package/dist/client/assets/{profile-D9QM6SPx.js → profile-BQ5pYJ22.js} +1 -1
- package/dist/client/assets/{project-app-view-DFa2dXeb.js → project-app-view-v4OZRUM9.js} +1 -1
- package/dist/client/assets/record-editor-OCeUQc_J.js +1 -0
- package/dist/client/assets/registry-CnAAEzHT.js +2 -0
- package/dist/client/assets/{registry-layout-B5ue7X7K.js → registry-layout-DBMQThih.js} +1 -1
- package/dist/client/assets/{require-capability-B6a3uwXa.js → require-capability-DSMbLiZI.js} +1 -1
- package/dist/client/assets/{required-auth-layout-eILzytQh.js → required-auth-layout-D9SRhJSc.js} +1 -1
- package/dist/client/assets/{reset-password-CVi0Kz7H.js → reset-password-C9Ln3Zoi.js} +1 -1
- package/dist/client/assets/{resizable-CJjEyhK7.js → resizable-Ba9LvnO6.js} +1 -1
- package/dist/client/assets/{roles-kJnY_8Mm.js → roles-NETfFBX2.js} +1 -1
- package/dist/client/assets/save-referenced-block-gIsmpl0Z.js +1 -0
- package/dist/client/assets/{save-status-kbN5j4dY.js → save-status-DYfqaiw8.js} +1 -1
- package/dist/client/assets/schema-form-DrlyaJpj.js +1 -0
- package/dist/client/assets/{scroll-area-CIVwHWtS.js → scroll-area-DYol0Grn.js} +1 -1
- package/dist/client/assets/{search-input-BC9i8QlA.js → search-input-nVygL8OB.js} +1 -1
- package/dist/client/assets/{secrets-DtXQgObn.js → secrets-B4fzmsTc.js} +1 -1
- package/dist/client/assets/sections-editor-QyxhsS1_.js +2 -0
- package/dist/client/assets/{select-BjY8Jgav.js → select-B4unS8Yd.js} +1 -1
- package/dist/client/assets/{select-model-DOn11Z7b.js → select-model-CKy0zqKb.js} +1 -1
- package/dist/client/assets/{seo-editor-CaNd-azV.js → seo-editor-BdEjBqlb.js} +1 -1
- package/dist/client/assets/{settings-layout-DRTOSi2K.js → settings-layout-DuBEt8Gq.js} +1 -1
- package/dist/client/assets/{settings-section-DyB2NAPA.js → settings-section-B1XnnsKo.js} +1 -1
- package/dist/client/assets/{sheet-DruC4GtE.js → sheet-BBAkMmdU.js} +1 -1
- package/dist/client/assets/{shell-controls-BEBIH-Ax.js → shell-controls-CpJ33jvP.js} +1 -1
- package/dist/client/assets/{shell-layout-eEtSpk5j.js → shell-layout-ZMa83VsB.js} +1 -1
- package/dist/client/assets/{shell-route-loading-BcsrhQn7.js → shell-route-loading-DSUwFCkI.js} +1 -1
- package/dist/client/assets/{sidebar-CYu-6Gzi.js → sidebar-D5sx4cw7.js} +1 -1
- package/dist/client/assets/{skeleton-DK2Fokh_.js → skeleton-DSWxpPIh.js} +1 -1
- package/dist/client/assets/{sortable.esm-1IzLCE3w.js → sortable.esm-DuiWwZfa.js} +1 -1
- package/dist/client/assets/{spinner-BggGXeYI.js → spinner-DmCMgGSO.js} +1 -1
- package/dist/client/assets/{sso-ic1miYKl.js → sso-DUBJz_x2.js} +1 -1
- package/dist/client/assets/{store-C4tNTNi1.js → store-DYDE6pHq.js} +1 -1
- package/dist/client/assets/store-registry-D8gFa-sw.js +2 -0
- package/dist/client/assets/{switch-DRq3hJSo.js → switch-kJsDxWvb.js} +1 -1
- package/dist/client/assets/{tab-id-BJeBBzov.js → tab-id-Bmckb_ZN.js} +1 -1
- package/dist/client/assets/{table-D3XdCvZp.js → table-Cx2A_sz5.js} +1 -1
- package/dist/client/assets/{tabs-aQunvyGd.js → tabs-B-z6K-Df.js} +1 -1
- package/dist/client/assets/{task-status-CbuV-3eP.js → task-status-C-gQCQz-.js} +1 -1
- package/dist/client/assets/{textarea-CEsBzC6t.js → textarea-WpZ6d3aj.js} +1 -1
- package/dist/client/assets/{toggle-group-v0racvq3.js → toggle-group-CS6geM2v.js} +1 -1
- package/dist/client/assets/{toolbar-QrhbD1LQ.js → toolbar-B7mbC32u.js} +1 -1
- package/dist/client/assets/{tools-list-Dw6j-mti.js → tools-list-Cv15T5e5.js} +1 -1
- package/dist/client/assets/{tooltip-DvNlo5ri.js → tooltip-CwxdEfJN.js} +1 -1
- package/dist/client/assets/{types-COwjtZM8.js → types-akMlG6_N.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BKDhxtFe.js → use-ai-providers-DQ_Lg3nK.js} +1 -1
- package/dist/client/assets/{use-automations-DMOY10H-.js → use-automations-DycGy3r5.js} +1 -1
- package/dist/client/assets/{use-capability-DGmhThV5.js → use-capability-BhXqmGDG.js} +1 -1
- package/dist/client/assets/{use-collections-d0NY3CF9.js → use-collections-BsA9K23E.js} +1 -1
- package/dist/client/assets/{use-connection-Dz8syqkL.js → use-connection-CJ6MBogv.js} +1 -1
- package/dist/client/assets/{use-copy-Qm5PoymQ.js → use-copy-BcPxqPQz.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CakwJE5T.js → use-create-virtual-mcp-pvfszp3d.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C_jxuSEe.js → use-debounced-autosave-DhKjGFFk.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Bb_kkkS5.js → use-delete-connection-CtnxdJxw.js} +1 -1
- package/dist/client/assets/{use-file-configs-BVh0-t8s.js → use-file-configs-2gqpEUPc.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DbJV2aWp.js → use-infinite-scroll-Dq4LQvGA.js} +1 -1
- package/dist/client/assets/{use-list-state-BRMBUjOm.js → use-list-state-Jee6I2EQ.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DR6PB45n.js → use-mcp-client-G3uFjg07.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BKDHmEg_.js → use-mcp-prompts-oto_asve.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BrZjJ9zc.js → use-mcp-tools-CHLE0GCH.js} +1 -1
- package/dist/client/assets/{use-members-BQ26-EKO.js → use-members-DX3EwEQX.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-COvK7v8V.js → use-navigate-to-agent-CzNZ7f2D.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-6-YfaYzt.js → use-org-auth-client-HBznaAU-.js} +1 -1
- package/dist/client/assets/{use-org-sso-Bc6Fs-WH.js → use-org-sso-bBdDyUxO.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Kv2MIjXn.js → use-organization-roles-DfBql3U5.js} +1 -1
- package/dist/client/assets/{use-organization-settings-C_PFgE7g.js → use-organization-settings-nE3QaAmY.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Fz6Tqm1j.js → use-registry-connections-Bf4QfKOn.js} +1 -1
- package/dist/client/assets/{use-secrets-CmzHGX24.js → use-secrets-CMSnZcAo.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DadivPgy.js → use-status-sounds-DpH3cDkD.js} +1 -1
- package/dist/client/assets/{use-view-mode-BTRVa00m.js → use-view-mode-YX6kaXqJ.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Cxb5tpje.js → use-virtual-mcp-DLclk59A.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BYCGnaMl.js +1 -0
- package/dist/client/assets/{useRouterState-BMTgOPTS.js → useRouterState-VGJ_ztuJ.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CttlyQrq.js +1 -0
- package/dist/client/assets/{user-DxLdHnQg.js → user-CvuJ8gsu.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-D7zEkHxC.js → view-mode-toggle-Bd-KjzIY.js} +1 -1
- package/dist/client/assets/{workflow-CqwIhtK4.js → workflow-BiwkeemM.js} +1 -1
- package/dist/client/assets/workflow-detail-BES81Spk.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/add-section-modal-VNTyTVJJ.js +0 -1
- package/dist/client/assets/app-editor-tM5L8LeY.js +0 -1
- package/dist/client/assets/header-tab-button-Dcs0BcqM.js +0 -5
- package/dist/client/assets/index-BgFgIfs8.css +0 -1
- package/dist/client/assets/page-seo-form-CbAafkHJ.js +0 -1
- package/dist/client/assets/page-seo-sheet-pHFDJAAc.js +0 -1
- package/dist/client/assets/record-editor-B-SAraV7.js +0 -1
- package/dist/client/assets/registry-C5dC17io.js +0 -2
- package/dist/client/assets/schema-form-DSVAzke8.js +0 -1
- package/dist/client/assets/sections-editor-B053UCeS.js +0 -2
- package/dist/client/assets/store-registry-B_3NSYXE.js +0 -2
- package/dist/client/assets/useInfiniteQuery-Bj28n6ln.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DT54Ek4w.js +0 -1
- package/dist/client/assets/workflow-detail-ktTAfCXV.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as D,j as o,c as R,r as $,B as H}from"./index-
|
|
1
|
+
import{e as D,j as o,c as R,r as $,B as H}from"./index-B7vG9XMB.js";import{i as Q,c as W,a as J,D as K}from"./dialog-CxQuymkd.js";import{g as V,D as Y,a as Z,b as ee}from"./drawer-Cpdg2y8l.js";import{u as oe}from"./tooltip-CwxdEfJN.js";import{c as A}from"./chat-context-CQ8Sv7Z0.js";import{C as G,a as z,D as te,d as le,S as U,M as se}from"./agent-icons-Jj9QCCT9.js";const ie=[{tier:"fast",description:"Quicker responses"},{tier:"smart",description:"Balanced quality"},{tier:"thinking",description:"Deeper reasoning"}];function X(r){const e=D.c(10),{modelSet:t,selectedModelId:s,onSelect:i}=r;let l,c;if(e[0]!==t.logo||e[1]!==t.models||e[2]!==t.tiers||e[3]!==i||e[4]!==s){const a=Object.fromEntries(t.models.map(ne));l="flex flex-col p-2 w-[320px]",c=ie.map(d=>{const{tier:p,description:m}=d,u=t.tiers[p];if(!u.modelId)return null;const x=a[u.modelId];if(!x)return null;const f=s===u.modelId;return o.jsxs("button",{type:"button",onClick:()=>i(x),className:R("flex items-center gap-3 px-3 py-2.5 rounded-lg text-left hover:bg-accent",f&&"bg-accent/50"),children:[o.jsx("img",{src:t.logo,alt:u.label,className:"size-5 shrink-0 rounded-sm dark:bg-white dark:rounded-sm dark:p-px"}),o.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[o.jsx("span",{className:"text-sm text-foreground leading-tight truncate",children:u.label}),o.jsx("span",{className:"text-xs text-muted-foreground leading-tight",children:m})]})]},p)}),e[0]=t.logo,e[1]=t.models,e[2]=t.tiers,e[3]=i,e[4]=s,e[5]=l,e[6]=c}else l=e[5],c=e[6];let n;return e[7]!==l||e[8]!==c?(n=o.jsx("div",{className:l,children:c}),e[7]=l,e[8]=c,e[9]=n):n=e[9],n}function ne(r){return[r.modelId,r]}const de=[{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",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}],L="https://assets.decocache.com/decocms/6ac44f1c-c0cf-4480-84b5-2ae6fe742d0b/codex-app.png.png",ce=[{providerId:"codex",modelId:"codex:gpt-5.5",title:"GPT-5.5",description:"Frontier model for complex coding, research, and real-world work",capabilities:["text","reasoning"],logo:L,limits:null,costs:null},{providerId:"codex",modelId:"codex:gpt-5.4",title:"GPT-5.4",description:"Strong model for everyday coding",capabilities:["text","reasoning"],logo:L,limits:null,costs:null},{providerId:"codex",modelId:"codex:gpt-5.4-mini",title:"GPT-5.4 Mini",description:"Small, fast, and cost-efficient model for simpler coding tasks",capabilities:["text","reasoning"],logo:L,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:L,limits:null,costs:null}],re="https://decoims.com/decocms/93e4059c-e598-412b-87eb-54d72a946ec8/claude-stroke-rounded.svg",ae="https://decoims.com/decocms/9170ffd4-b9cc-4661-ad8f-ae2eea019e00/codex.svg",me={fast:{modelId:"claude-code:haiku",label:"Haiku 4.5",description:"Quicker responses",iconNode:o.jsx(G,{size:16})},smart:{modelId:"claude-code:sonnet",label:"Sonnet 4.6",description:"Balanced quality",iconNode:o.jsx(G,{size:16})},thinking:{modelId:"claude-code:opus-1m",label:"Opus 4.8 1M",description:"Deeper reasoning",iconNode:o.jsx(G,{size:16})}},pe={fast:{modelId:"codex:gpt-5.4-mini",label:"GPT-5.4 Mini",description:"Quicker responses",iconNode:o.jsx(z,{size:16})},smart:{modelId:"codex:gpt-5.4",label:"GPT-5.4",description:"Balanced quality",iconNode:o.jsx(z,{size:16})},thinking:{modelId:"codex:gpt-5.5",label:"GPT-5.5",description:"Deeper reasoning",iconNode:o.jsx(z,{size:16})}};function q(r){return r==="claude-code"?{logo:re,tiers:me,models:de}:r==="codex"?{logo:ae,tiers:pe,models:ce}:null}function ue(r){const e=D.c(11),{onClose:t,agent:s}=r,i=A(),l=s??i.pendingHarnessId??"decopilot";let c;e[0]!==l?(c=q(l),e[0]=l,e[1]=c):c=e[1];const n=c;if(!n){let m;return e[2]!==t?(m=o.jsx(le,{onClose:t}),e[2]=t,e[3]=m):m=e[3],m}const a=i.selectedModel?.modelId??n.tiers[i.simpleModeTier].modelId;let d;e[4]!==t||e[5]!==i?(d=m=>{i.setModel({...m,keyId:void 0}),t()},e[4]=t,e[5]=i,e[6]=d):d=e[6];let p;return e[7]!==n||e[8]!==a||e[9]!==d?(p=o.jsx(X,{modelSet:n,selectedModelId:a,onSelect:d}),e[7]=n,e[8]=a,e[9]=d,e[10]=p):p=e[10],p}function fe(r){const e=D.c(13);let t,s;e[0]!==r?({agent:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let i;e[3]!==t?(i=t?q(t):null,e[3]=t,e[4]=i):i=e[4];const l=i;if(!l){let d;return e[5]!==s?(d=o.jsx(te,{...s}),e[5]=s,e[6]=d):d=e[6],d}const c=s.selectedModel?.modelId??l.tiers.smart.modelId;let n;e[7]!==s?(n=d=>{s.onModelChange(d),s.onClose()},e[7]=s,e[8]=n):n=e[8];let a;return e[9]!==l||e[10]!==c||e[11]!==n?(a=o.jsx(X,{modelSet:l,selectedModelId:c,onSelect:n}),e[9]=l,e[10]=c,e[11]=n,e[12]=a):a=e[12],a}function Me(r){const e=D.c(39),{variant:t,className:s,placeholder:i,model:l,isLoading:c,credentialId:n,onCredentialChange:a,onModelChange:d,filterModels:p,agent:m}=r,u=t===void 0?"borderless":t,x=i===void 0?"Select model":i,[f,k]=$.useState(!1),g=d!==void 0,F=oe(),B=u==="borderless"?"ghost":"outline",P=u==="borderless"&&"md:border-none";let h;e[0]!==s||e[1]!==P?(h=R("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",P,s),e[0]=s,e[1]=P,e[2]=h):h=e[2];let b;e[3]!==c||e[4]!==l||e[5]!==x||e[6]!==g?(b=g?o.jsx(U,{model:l??null,placeholder:x,isLoading:c}):o.jsx(ge,{placeholder:x}),e[3]=c,e[4]=l,e[5]=x,e[6]=g,e[7]=b):b=e[7];let O;e[8]!==B||e[9]!==h||e[10]!==b?(O=o.jsx(H,{variant:B,size:"sm",className:h,children:b}),e[8]=B,e[9]=h,e[10]=b,e[11]=O):O=e[11];const C=O;let w;e[12]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(se,{}),e[12]=w):w=e[12];let y;e[13]!==m||e[14]!==n||e[15]!==p||e[16]!==l||e[17]!==a||e[18]!==d||e[19]!==g?(y=o.jsx($.Suspense,{fallback:w,children:g?o.jsx(fe,{onClose:()=>k(!1),agent:m,credentialId:n??null,onCredentialChange:a??xe,selectedModel:l??null,onModelChange:d,filterModels:p}):o.jsx(ue,{onClose:()=>k(!1),agent:m})}),e[13]=m,e[14]=n,e[15]=p,e[16]=l,e[17]=a,e[18]=d,e[19]=g,e[20]=y):y=e[20];const I=y;if(F){let M;e[21]!==C?(M=o.jsx(V,{asChild:!0,children:C}),e[21]=C,e[22]=M):M=e[22];let _;e[23]===Symbol.for("react.memo_cache_sentinel")?(_=o.jsx(Y,{className:"sr-only",children:"Select model"}),e[23]=_):_=e[23];let v;e[24]!==I?(v=o.jsxs(Z,{className:"p-0 flex flex-col max-h-[95vh]",children:[_,o.jsx("div",{className:"flex-1 flex flex-col min-h-0 overflow-hidden",children:I})]}),e[24]=I,e[25]=v):v=e[25];let T;return e[26]!==f||e[27]!==M||e[28]!==v?(T=o.jsxs(ee,{open:f,onOpenChange:k,children:[M,v]}),e[26]=f,e[27]=M,e[28]=v,e[29]=T):T=e[29],T}let S;e[30]!==C?(S=o.jsx(Q,{asChild:!0,children:C}),e[30]=C,e[31]=S):S=e[31];let N;e[32]===Symbol.for("react.memo_cache_sentinel")?(N=o.jsx(W,{className:"sr-only",children:"Select model"}),e[32]=N):N=e[32];let j;e[33]!==I?(j=o.jsxs(J,{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:[N,I]}),e[33]=I,e[34]=j):j=e[34];let E;return e[35]!==f||e[36]!==S||e[37]!==j?(E=o.jsxs(K,{open:f,onOpenChange:k,children:[S,j]}),e[35]=f,e[36]=S,e[37]=j,e[38]=E):E=e[38],E}function xe(){}function ge(r){const e=D.c(4),{placeholder:t}=r,{selectedModel:s,isModelsLoading:i}=A();let l;return e[0]!==i||e[1]!==s||e[2]!==t?(l=o.jsx(U,{model:s,placeholder:t,isLoading:i}),e[0]=i,e[1]=s,e[2]=t,e[3]=l):l=e[3],l}export{Me as M};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as T,j as t,r as Q,B as je,l as Se}from"./index-v-4yPWk5.js";import{i as be}from"./ChevronRight-CBmg3jrn.js";import{E as fe}from"./agent-icon-DfM7tMDC.js";import{S as ue}from"./scroll-area-CIVwHWtS.js";import{r as Ne,c as ke,u as _e,a as we,i as Ce,d as Te,f as Fe,P as Ee,S as Re}from"./page-seo-form-CbAafkHJ.js";import{j as ze}from"./index-tnP0ll1b.js";import{a as ge}from"./Tool01-nw4j5J0X.js";import{s as xe}from"./schema-form-DSVAzke8.js";import"./AlertCircle-BiKiI44L.js";import"./SwitchHorizontal01-D9V4WNpS.js";import"./RefreshCcw01-Bdic4y2D.js";import"./XCircle-DDLSDNYP.js";import"./ArrowUpRight-a9y7JExT.js";import"./ZapSquare-DfDC54JS.js";import"./Users03-DYjDLJbQ.js";import"./CheckCircle-79umy6UR.js";import"./Check-BXjvCNRo.js";import"./ChevronDown-DERZQdMP.js";import"./ChevronLeft-C6IDOOPU.js";import"./ChevronUp-28KZDFJ3.js";import"./DotsVertical-BfY2m12a.js";import"./Container-Bmp8f1Hw.js";import"./Eye-DNuwjCPP.js";import"./ZoomOut-xmLm2dBO.js";import"./Globe01-DUsTmpYW.js";import"./FilterLines-0ZErBJ3i.js";import"./Star01-lcgisujL.js";import"./Palette-B1alDozW.js";import"./HardDrive-CTInlaSO.js";import"./Stars02-bUApAo8o.js";import"./Key01-DhkJOk-2.js";import"./LayoutLeft-C4WMufMy.js";import"./LinkExternal01-pT0NrKlt.js";import"./Monitor01-BqHMMIjb.js";import"./Sun-BhoXpP-F.js";import"./Play--ZCMNFjg.js";import"./Plus-C1rAdUXl.js";import"./SearchMd-BuArn0kO.js";import"./Settings02-CMckE2RK.js";import"./Shield01-XGinfl8i.js";import"./Stars01-CQ0RN6al.js";import"./Trash01-BoFGJN1_.js";import"./Upload01-Cmfv30sX.js";import"./User01-of2DRTwj.js";import"./Users01-DYI7DwUF.js";import"./XClose-B1Jrn5dt.js";import"./X-DWbNv8Bl.js";import"./Zap-BBs40ZSU.js";import"./select-BjY8Jgav.js";import"./tooltip-DvNlo5ri.js";import"./label-Cydnpuha.js";import"./switch-DRq3hJSo.js";import"./agent-capabilities-B27hg_M4.js";import"./chat-context-xuPBtQVH.js";import"./tab-id-BJeBBzov.js";import"./use-mcp-client-DR6PB45n.js";import"./decopilot-sse-pool-C-7QzQnf.js";import"./create-sse-subscription-BS5983N4.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./use-virtual-mcp-Cxb5tpje.js";import"./use-collections-d0NY3CF9.js";import"./use-ai-providers-BKDhxtFe.js";import"./use-organization-settings-C_PFgE7g.js";import"./pair-q0PU9j8x.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Qm5PoymQ.js";import"./file-type-icon-C5unlJPE.js";import"./dialog-CRbRTRjQ.js";import"./content-blocks-o63cs2vh.js";import"./types-COwjtZM8.js";import"./shell-layout-eEtSpk5j.js";import"./avatar-Cmykl5Hl.js";import"./required-auth-layout-eILzytQh.js";import"./useRouterState-BMTgOPTS.js";import"./use-org-sso-Bc6Fs-WH.js";import"./integration-icon-CCk0_Shy.js";import"./use-navigate-to-agent-COvK7v8V.js";import"./use-connection-Dz8syqkL.js";import"./use-mcp-prompts-BKDHmEg_.js";import"./form-CmvFmoxJ.js";import"./input-DMJCExP6.js";import"./spinner-BggGXeYI.js";import"./drawer-BOb8J64a.js";import"./collection-search-DSz3RDou.js";import"./tabs-aQunvyGd.js";import"./toggle-group-v0racvq3.js";import"./connect-desktop-dialog-Lo4qdhfs.js";import"./agent-icons-Bd8x3NUl.js";import"./checkbox-Djxv9Ar7.js";import"./skeleton-DK2Fokh_.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DyB2NAPA.js";import"./card-CANcGy5k.js";import"./popover-BGH6hpUr.js";import"./command-CnCEvYjS.js";import"./index-C5VM3lmZ.js";import"./useInfiniteQuery-Bj28n6ln.js";import"./infiniteQueryObserver-C1PO3LYQ.js";import"./sortable.esm-1IzLCE3w.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-D82-toy5.js";import"./use-registry-connections-Fz6Tqm1j.js";import"./extract-connection-data-Dfy3Qlc3.js";import"./generate-id-yESv9K1i.js";import"./collections-BVLezaR1.js";import"./collection-tabs-BcYP8buy.js";import"./badge-CYgKxTpF.js";import"./textarea-CEsBzC6t.js";import"./connection-form-helpers-UH9KShfg.js";import"./use-infinite-scroll-DbJV2aWp.js";import"./useSuspenseInfiniteQuery-DT54Ek4w.js";import"./index-DL_YJ_kc.js";import"./dropdown-menu-o8504Ahe.js";import"./question-004-sINsf4GQ.js";import"./shell-route-loading-BcsrhQn7.js";import"./sidebar-CYu-6Gzi.js";import"./sheet-DruC4GtE.js";import"./toolbar-QrhbD1LQ.js";import"./use-create-virtual-mcp-CakwJE5T.js";import"./github-repo-picker-BNoPWqQE.js";import"./use-mcp-tools-BrZjJ9zc.js";import"./alert-dialog-C4ynNGJF.js";import"./index-dQSPhEbP.js";import"./use-org-auth-client-6-YfaYzt.js";import"./hover-card-Clt-L-5u.js";import"./task-status-CbuV-3eP.js";import"./use-status-sounds-DadivPgy.js";import"./empty-state-iHDXNEBU.js";import"./resizable-CJjEyhK7.js";import"./use-capability-DGmhThV5.js";import"./header-tab-button-Dcs0BcqM.js";import"./index-CgVH5Gsy.js";import"./user-DxLdHnQg.js";import"./tools-list-Dw6j-mti.js";import"./use-debounced-autosave-C_jxuSEe.js";import"./index-B5koQSO_.js";import"./search-input-BC9i8QlA.js";import"./use-secrets-CmzHGX24.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./accordion-BSz8aiEx.js";import"./view-mode-toggle-D7zEkHxC.js";import"./select-model-DOn11Z7b.js";import"./use-automations-DMOY10H-.js";import"./monaco-editor-B1jmgnr2.js";import"./automation-runs-XPUSkViZ.js";import"./table-D3XdCvZp.js";import"./use-members-BQ26-EKO.js";import"./automation-list-row-DTxZO-vH.js";import"./calendar-BbdXUff-.js";import"./image-field-fSOsfNOS.js";import"./use-file-configs-BVh0-t8s.js";function U(n){return typeof n=="string"&&n.trim()?n:void 0}function he(n,e){if(n){if(e)try{const i=new URL(n,e).href;return xe(i)}catch{return}return xe(n)}}function Pe(n){if(!n)return{};const e=U(n.title),i=U(n.titleTemplate);return{title:e&&i?.includes("%s")?i.replace(/%s/g,e):e,description:U(n.description),image:U(n.image),favicon:U(n.favicon)}}function Oe(n){if(!n)return"example.com";try{return new URL(n).host}catch{return"example.com"}}const Z="Your page title",ee="Your meta description will appear here.",Le=[{id:"google",label:"Google",color:"#4285F4",layout:"search"},{id:"facebook",label:"Facebook",color:"#1877F2",layout:"card"},{id:"twitter",label:"X (Twitter)",color:"#0f1419",layout:"card"},{id:"linkedin",label:"LinkedIn",color:"#0A66C2",layout:"card"},{id:"whatsapp",label:"WhatsApp",color:"#25D366",layout:"chat"},{id:"telegram",label:"Telegram",color:"#229ED9",layout:"chat"},{id:"slack",label:"Slack",color:"#611f69",layout:"attachment"},{id:"discord",label:"Discord",color:"#5865F2",layout:"attachment"}];function pe(n){const e=T.c(10),{src:i,className:r,iconSize:h}=n,a=h===void 0?20:h;if(i){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let p;return e[1]!==r||e[2]!==i?(p=t.jsx("img",{src:i,alt:"",referrerPolicy:"no-referrer",className:r,style:m}),e[1]=r,e[2]=i,e[3]=p):p=e[3],p}let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=s):s=e[4];let o;e[5]!==a?(o=t.jsx(ge,{size:a}),e[5]=a,e[6]=o):o=e[6];let l;return e[7]!==r||e[8]!==o?(l=t.jsx("div",{className:r,style:s,children:o}),e[7]=r,e[8]=o,e[9]=l):l=e[9],l}function $e(n){const e=T.c(27),{seo:i,host:r,path:h}=n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={background:"#fff",border:"1px solid #dadce0"},e[0]=a):a=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f1f3f4"},e[1]=s):s=e[1];let o;e[2]!==i.favicon?(o=t.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:s,children:i.favicon?t.jsx("img",{src:i.favicon,alt:"",className:"size-full object-cover"}):t.jsx(ge,{size:12,color:"#9aa0a6"})}),e[2]=i.favicon,e[3]=o):o=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={color:"#202124"},e[4]=l):l=e[4];let m;e[5]!==r?(m=t.jsx("div",{className:"truncate text-[13px] leading-tight",style:l,children:r}),e[5]=r,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#4d5156"},e[7]=p):p=e[7];let d;e[8]!==r||e[9]!==h?(d=t.jsxs("div",{className:"truncate text-[12px] leading-tight",style:p,children:[r,h]}),e[8]=r,e[9]=h,e[10]=d):d=e[10];let c;e[11]!==m||e[12]!==d?(c=t.jsxs("div",{className:"min-w-0",children:[m,d]}),e[11]=m,e[12]=d,e[13]=c):c=e[13];let g;e[14]!==o||e[15]!==c?(g=t.jsxs("div",{className:"flex items-center gap-2",children:[o,c]}),e[14]=o,e[15]=c,e[16]=g):g=e[16];let f;e[17]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#1a0dab"},e[17]=f):f=e[17];const x=i.title??Z;let u;e[18]!==x?(u=t.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:f,children:x}),e[18]=x,e[19]=u):u=e[19];let j;e[20]===Symbol.for("react.memo_cache_sentinel")?(j={color:"#4d5156"},e[20]=j):j=e[20];const v=i.description??ee;let y;e[21]!==v?(y=t.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:j,children:v}),e[21]=v,e[22]=y):y=e[22];let S;return e[23]!==u||e[24]!==y||e[25]!==g?(S=t.jsxs("div",{className:"rounded-lg p-3 text-left",style:a,children:[g,u,y]}),e[23]=u,e[24]=y,e[25]=g,e[26]=S):S=e[26],S}function De(n){const e=T.c(20),{seo:i,host:r}=n;let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h={background:"#fff",border:"1px solid #e2e8f0"},e[0]=h):h=e[0];let a;e[1]!==i.image?(a=t.jsx(pe,{src:i.image,className:"h-40 w-full"}),e[1]=i.image,e[2]=a):a=e[2];let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s={borderTop:"1px solid #e2e8f0"},e[3]=s):s=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o={color:"#8a9099"},e[4]=o):o=e[4];let l;e[5]!==r?(l=t.jsx("div",{className:"truncate text-[11px]",style:o,children:r}),e[5]=r,e[6]=l):l=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#1c2024"},e[7]=m):m=e[7];const p=i.title??Z;let d;e[8]!==p?(d=t.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:m,children:p}),e[8]=p,e[9]=d):d=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[10]=c):c=e[10];const g=i.description??ee;let f;e[11]!==g?(f=t.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:g}),e[11]=g,e[12]=f):f=e[12];let x;e[13]!==f||e[14]!==l||e[15]!==d?(x=t.jsxs("div",{className:"px-3 py-2",style:s,children:[l,d,f]}),e[13]=f,e[14]=l,e[15]=d,e[16]=x):x=e[16];let u;return e[17]!==x||e[18]!==a?(u=t.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:h,children:[a,x]}),e[17]=x,e[18]=a,e[19]=u):u=e[19],u}function Ie(n){const e=T.c(23),{seo:i,host:r,accent:h}=n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={background:"#f0f2f5"},e[0]=a):a=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:{color:"#3b4045"},children:"Here's a post you might write with the link of your website:"}),e[1]=s):s=e[1];const o=`3px solid ${h}`;let l;e[2]!==o?(l={background:"#fff",borderLeft:o},e[2]=o,e[3]=l):l=e[3];let m;e[4]!==i.image?(m=t.jsx(pe,{src:i.image,className:"h-28 w-full",iconSize:18}),e[4]=i.image,e[5]=m):m=e[5];let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#1c2024"},e[6]=p):p=e[6];const d=i.title??Z;let c;e[7]!==d?(c=t.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:p,children:d}),e[7]=d,e[8]=c):c=e[8];let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g={color:"#60666c"},e[9]=g):g=e[9];const f=i.description??ee;let x;e[10]!==f?(x=t.jsx("div",{className:"line-clamp-2 text-[11px]",style:g,children:f}),e[10]=f,e[11]=x):x=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#8a9099"},e[12]=u):u=e[12];let j;e[13]!==r?(j=t.jsx("div",{className:"mt-0.5 text-[10px]",style:u,children:r}),e[13]=r,e[14]=j):j=e[14];let v;e[15]!==x||e[16]!==j||e[17]!==c?(v=t.jsxs("div",{className:"px-2.5 py-1.5",children:[c,x,j]}),e[15]=x,e[16]=j,e[17]=c,e[18]=v):v=e[18];let y;return e[19]!==v||e[20]!==l||e[21]!==m?(y=t.jsxs("div",{className:"rounded-lg p-2 text-left",style:a,children:[s,t.jsxs("div",{className:"overflow-hidden rounded-md",style:l,children:[m,v]})]}),e[19]=v,e[20]=l,e[21]=m,e[22]=y):y=e[22],y}function Ae(n){const e=T.c(33),{seo:i,host:r,accent:h,dark:a}=n,s=a?"#2b2d31":"#fff",o=a?"#00a8fc":"#1264a3",l=a?"#dbdee1":"#3b4045",m=a?"#949ba4":"#8a9099",p=a?"none":"1px solid #e2e8f0";let d;e[0]!==s||e[1]!==p?(d={background:s,border:p},e[0]=s,e[1]=p,e[2]=d):d=e[2];const c=`3px solid ${h}`;let g;e[3]!==c?(g={borderLeft:c,borderRadius:2},e[3]=c,e[4]=g):g=e[4];let f;e[5]!==m?(f={color:m},e[5]=m,e[6]=f):f=e[6];let x;e[7]!==r||e[8]!==f?(x=t.jsx("div",{className:"text-[10px]",style:f,children:r}),e[7]=r,e[8]=f,e[9]=x):x=e[9];let u;e[10]!==o?(u={color:o},e[10]=o,e[11]=u):u=e[11];const j=i.title??Z;let v;e[12]!==u||e[13]!==j?(v=t.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:u,children:j}),e[12]=u,e[13]=j,e[14]=v):v=e[14];let y;e[15]!==l?(y={color:l},e[15]=l,e[16]=y):y=e[16];const S=i.description??ee;let _;e[17]!==y||e[18]!==S?(_=t.jsx("div",{className:"line-clamp-2 text-[12px]",style:y,children:S}),e[17]=y,e[18]=S,e[19]=_):_=e[19];let N;e[20]!==_||e[21]!==x||e[22]!==v?(N=t.jsxs("div",{className:"min-w-0 flex-1",children:[x,v,_]}),e[20]=_,e[21]=x,e[22]=v,e[23]=N):N=e[23];let b;e[24]!==i.image?(b=t.jsx(pe,{src:i.image,className:"size-14 shrink-0 rounded",iconSize:16}),e[24]=i.image,e[25]=b):b=e[25];let k;e[26]!==N||e[27]!==b||e[28]!==g?(k=t.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:g,children:[N,b]}),e[26]=N,e[27]=b,e[28]=g,e[29]=k):k=e[29];let C;return e[30]!==k||e[31]!==d?(C=t.jsx("div",{className:"rounded-lg p-2.5 text-left",style:d,children:k}),e[30]=k,e[31]=d,e[32]=C):C=e[32],C}function Be(n){const e=T.c(17),{platform:i,seo:r,host:h,path:a}=n;let s;e[0]!==h||e[1]!==a||e[2]!==i.color||e[3]!==i.id||e[4]!==i.layout||e[5]!==r?(s=i.layout==="search"?t.jsx($e,{seo:r,host:h,path:a}):i.layout==="card"?t.jsx(De,{seo:r,host:h,path:a}):i.layout==="chat"?t.jsx(Ie,{seo:r,host:h,path:a,accent:i.color}):t.jsx(Ae,{seo:r,host:h,path:a,accent:i.color,dark:i.id==="discord"}),e[0]=h,e[1]=a,e[2]=i.color,e[3]=i.id,e[4]=i.layout,e[5]=r,e[6]=s):s=e[6];const o=s;let l;e[7]!==i.color?(l=t.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:i.color}}),e[7]=i.color,e[8]=l):l=e[8];let m;e[9]!==i.label?(m=t.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i.label}),e[9]=i.label,e[10]=m):m=e[10];let p;e[11]!==l||e[12]!==m?(p=t.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[l,m]}),e[11]=l,e[12]=m,e[13]=p):p=e[13];let d;return e[14]!==o||e[15]!==p?(d=t.jsxs("div",{children:[p,o]}),e[14]=o,e[15]=p,e[16]=d):d=e[16],d}function Ue(n){const e=T.c(17),{seo:i,url:r,path:h}=n,a=h===void 0?"/":h;let s,o,l;if(e[0]!==i||e[1]!==r){const u=Pe(i);s=u,o=he(u.image,r),l=he(u.favicon,r),e[0]=i,e[1]=r,e[2]=s,e[3]=o,e[4]=l}else s=e[2],o=e[3],l=e[4];let m;e[5]!==s||e[6]!==o||e[7]!==l?(m={...s,image:o,favicon:l},e[5]=s,e[6]=o,e[7]=l,e[8]=m):m=e[8];const p=m;let d;e[9]!==r?(d=Oe(r),e[9]=r,e[10]=d):d=e[10];const c=d,g=a==="/"?"":a;let f;e[11]!==g||e[12]!==c||e[13]!==p?(f=Le.map(u=>t.jsx(Be,{platform:u,seo:p,host:c,path:g},u.id)),e[11]=g,e[12]=c,e[13]=p,e[14]=f):f=e[14];let x;return e[15]!==f?(x=t.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:f}),e[15]=f,e[16]=x):x=e[16],x}function Di(n){const e=T.c(63),{orgSlug:i,virtualMcpId:r,branch:h,decofile:a,meta:s,target:o,previewBaseUrl:l,onSaved:m,onEditDefaultSeo:p,onBack:d}=n,c=Ne(a,o,s),g=c?.seoData,f=o.kind==="site"?"site":o.pageKey,[x,u]=Q.useState(f),[j,v]=Q.useState(null),[y,S]=Q.useState(0),[_,N]=Q.useState(void 0);x!==f&&(u(f),v(null),N(void 0),S(Me));const{persistSeo:b,persistRawSeo:k,flush:C,isPending:te}=ke({orgSlug:i,virtualMcpId:r,branch:h,target:o,resolved:c,onSaved:m}),K=o.kind==="page",ve=K?c?.rawSeoData:void 0,B=_!==void 0?_:ve,ye=K?_e(B)??void 0:void 0,w=j??ye??g??{},F=c?we(w,c):null,z=F&&(!K||Ce(B))?ze(F,s):null;let M;e[0]!==s?(M=Te(s),e[0]=s,e[1]=M):M=e[1];const oe=M;let E,G;e[2]!==a||e[3]!==w||e[4]!==s||e[5]!==o.kind?(E=o.kind==="page"?Fe(a,s)?.seoData??{}:{},G=o.kind==="page"?Ve(E,w):w,e[2]=a,e[3]=w,e[4]=s,e[5]=o.kind,e[6]=E,e[7]=G):(E=e[6],G=e[7]);const ie=G;let V;e[8]!==b||e[9]!==c||e[10]!==v?(V=R=>{if(!c)return;const de=R;v(de),b(de)},e[8]=b,e[9]=c,e[10]=v,e[11]=V):V=e[11];const se=V;let Y;e[12]!==v?(Y=()=>v(null),e[12]=v,e[13]=Y):Y=e[13];const le=Y;let H;e[14]!==S?(H=()=>S(Ke),e[14]=S,e[15]=H):H=e[15];const re=H;let W;e[16]!==C||e[17]!==d?(W=()=>{C(),d?.()},e[16]=C,e[17]=d,e[18]=W):W=e[18];const ae=W,P=o.kind==="page"?o.path:"/";let X;e[19]!==P||e[20]!==l||e[21]!==o.kind?(X=o.kind==="page"&&l?Ge(P,l):l??null,e[19]=P,e[20]=l,e[21]=o.kind,e[22]=X):X=e[22];const ne=X,ce=o.kind==="site"?"No site-level SEO block found.":c?"SEO schema not found for this page.":"Could not load page SEO.",q=K&&c,me=o.kind==="site"&&c&&z;let O;e[23]!==ae||e[24]!==o.kind||e[25]!==o.pageName?(O=o.kind==="page"?t.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[t.jsx("button",{type:"button",onClick:ae,title:o.pageName,className:"min-w-0 truncate rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:o.pageName}),t.jsx(be,{className:"size-3 shrink-0 text-muted-foreground/60"}),t.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx(fe,{size:16,className:"shrink-0 text-muted-foreground"}),t.jsx("span",{className:"text-sm font-medium",children:"Default SEO"}),t.jsx("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:"· applied to every page unless overridden"})]}),e[23]=ae,e[24]=o.kind,e[25]=o.pageName,e[26]=O):O=e[26];let L;e[27]!==te?(L=te&&t.jsx(Se,{size:14,className:"animate-spin text-muted-foreground"}),e[27]=te,e[28]=L):L=e[28];let $;e[29]!==p||e[30]!==o.kind?($=o.kind==="page"&&p&&t.jsxs(je,{type:"button",variant:"outline",size:"sm",onClick:p,children:[t.jsx(fe,{size:14}),"Edit default SEO"]}),e[29]=p,e[30]=o.kind,e[31]=$):$=e[31];let D;e[32]!==$||e[33]!==L?(D=t.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[L,$]}),e[32]=$,e[33]=L,e[34]=D):D=e[34];let I;e[35]!==D||e[36]!==O?(I=t.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[O,D]}),e[35]=D,e[36]=O,e[37]=I):I=e[37];let A;e[38]!==F||e[39]!==re||e[40]!==le||e[41]!==oe||e[42]!==B||e[43]!==w||e[44]!==ce||e[45]!==y||e[46]!==se||e[47]!==P||e[48]!==k||e[49]!==b||e[50]!==ie||e[51]!==ne||e[52]!==c||e[53]!==z||e[54]!==v||e[55]!==N||e[56]!==q||e[57]!==me||e[58]!==E?(A=!c||!q&&!me?t.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ce}):t.jsxs("div",{className:"flex min-h-0 flex-1",children:[t.jsx(ue,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"px-5 py-4",children:q?t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:"Empty fields inherit the default SEO. The preview shows the resolved result."}),t.jsx(Ee,{rawSeo:B,innerSeo:w,defaultResolveType:oe,seoSchema:z,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:y,siteDefaultSeo:E,onPersistRaw:R=>{N(R),k(R)},onInnerChange:R=>{v(R),b(R)},onClearForm:le,onBumpFormKey:re})]}):z&&F&&t.jsx(Re,{schema:z,resolveType:F,value:w,formResetKey:y,onChange:se})})}),t.jsx(ue,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"@container px-5 py-4",children:t.jsx(Ue,{seo:ie,url:ne,path:P})})})]}),e[38]=F,e[39]=re,e[40]=le,e[41]=oe,e[42]=B,e[43]=w,e[44]=ce,e[45]=y,e[46]=se,e[47]=P,e[48]=k,e[49]=b,e[50]=ie,e[51]=ne,e[52]=c,e[53]=z,e[54]=v,e[55]=N,e[56]=q,e[57]=me,e[58]=E,e[59]=A):A=e[59];let J;return e[60]!==I||e[61]!==A?(J=t.jsxs("div",{className:"flex h-full w-full flex-col",children:[I,A]}),e[60]=I,e[61]=A,e[62]=J):J=e[62],J}function Ke(n){return n+1}function Me(n){return n+1}function Ge(n,e){try{return new URL(n,e).href}catch{return e}}function Ve(n,e){const i=e.__resolveType,r=n.__resolveType;if(typeof i=="string"&&typeof r=="string"&&i!==r)return{...e};const h={...n};for(const[a,s]of Object.entries(e))a!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(h[a]=s));return h}export{Di as SeoEditor};
|
|
1
|
+
import{e as T,j as t,r as Q,B as je,l as Se}from"./index-B7vG9XMB.js";import{i as be}from"./ChevronRight-B1SVpAS5.js";import{E as fe}from"./agent-icon-BDCTH9NT.js";import{S as ue}from"./scroll-area-DYol0Grn.js";import{r as Ne,c as ke,u as _e,a as we,i as Ce,d as Te,f as Fe,P as Ee,S as Re}from"./page-seo-form-DFQzldH7.js";import{k as ze}from"./index-CYhCrWAi.js";import{a as ge}from"./Tool01-BTE6nmQ4.js";import{s as xe}from"./schema-form-DrlyaJpj.js";import"./AlertCircle-CBwqugJe.js";import"./SwitchHorizontal01-Dha4DHjZ.js";import"./RefreshCcw01-CR5XeXPv.js";import"./XCircle-qkpSwHM6.js";import"./ArrowUpRight--24rRsQC.js";import"./ZapSquare-M-fH4MJf.js";import"./Users03-BwOA6RiF.js";import"./CheckCircle-CFdIOhwM.js";import"./Check-BEDsGGM_.js";import"./ChevronDown-Y-7MoOW4.js";import"./ChevronLeft-BSf4mKrR.js";import"./ChevronUp-DooNP946.js";import"./DotsVertical-kVh0UVRo.js";import"./Container-BcM96X15.js";import"./Eye-Bowp4iez.js";import"./ZoomOut-CgCAgEfn.js";import"./Globe01-CF7IqqKh.js";import"./FilterLines-DXSEbwW6.js";import"./Star01-DVebopnN.js";import"./Palette-6N_c4T4_.js";import"./HardDrive-CPqmzwVB.js";import"./Stars02-YwHPi-7I.js";import"./Key01-NY-IsQgy.js";import"./LayoutLeft-BgC7aOjO.js";import"./LinkExternal01-Cgr3jZjD.js";import"./Monitor01-BLzNpHgz.js";import"./Sun-DXdRtf6l.js";import"./Play-B9p1kZpZ.js";import"./Plus-Bymlyq77.js";import"./SearchMd-7k7TbMsJ.js";import"./Settings02-DbR-330c.js";import"./Shield01-wwDAi_uJ.js";import"./Stars01-CDcY9WwZ.js";import"./Trash01-B-X6RyaC.js";import"./Upload01-DsBsPR-L.js";import"./User01-Y_Kyyfi4.js";import"./Users01-e0FZKqF3.js";import"./XClose-CodFwf_E.js";import"./X-CeSkzEjM.js";import"./Zap-Gvzp-SH3.js";import"./select-B4unS8Yd.js";import"./tooltip-CwxdEfJN.js";import"./label-DusmHQMe.js";import"./switch-kJsDxWvb.js";import"./agent-capabilities-pAj3t6Aa.js";import"./chat-context-CQ8Sv7Z0.js";import"./tab-id-Bmckb_ZN.js";import"./use-mcp-client-G3uFjg07.js";import"./decopilot-sse-pool-oHmW4h5V.js";import"./create-sse-subscription-BS5983N4.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./use-virtual-mcp-DLclk59A.js";import"./use-collections-BsA9K23E.js";import"./use-ai-providers-DQ_Lg3nK.js";import"./use-organization-settings-nE3QaAmY.js";import"./pair-B6RPc276.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BcPxqPQz.js";import"./file-type-icon-Bosly9dX.js";import"./dialog-CxQuymkd.js";import"./content-blocks-o63cs2vh.js";import"./types-akMlG6_N.js";import"./shell-layout-ZMa83VsB.js";import"./avatar-CB3_y_zI.js";import"./required-auth-layout-D9SRhJSc.js";import"./useRouterState-VGJ_ztuJ.js";import"./use-org-sso-bBdDyUxO.js";import"./integration-icon-DV694Bxd.js";import"./use-navigate-to-agent-CzNZ7f2D.js";import"./use-connection-CJ6MBogv.js";import"./use-mcp-prompts-oto_asve.js";import"./form-BEq77uTF.js";import"./input-BlbFVhmY.js";import"./spinner-DmCMgGSO.js";import"./drawer-Cpdg2y8l.js";import"./collection-search-CwRnoUd2.js";import"./tabs-B-z6K-Df.js";import"./toggle-group-CS6geM2v.js";import"./connect-desktop-dialog-Uaj5e58Y.js";import"./agent-icons-Jj9QCCT9.js";import"./checkbox-B6S6Zp2z.js";import"./skeleton-DSWxpPIh.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-B1XnnsKo.js";import"./card-D-5GEcNj.js";import"./popover-k1SAuM8F.js";import"./command-DprDJr8i.js";import"./index-z3J3f1Ar.js";import"./useInfiniteQuery-BYCGnaMl.js";import"./infiniteQueryObserver-COC30QjI.js";import"./sortable.esm-DuiWwZfa.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-C5qc95C-.js";import"./use-registry-connections-Bf4QfKOn.js";import"./extract-connection-data-DLKFWvUj.js";import"./generate-id-CpIkXSfl.js";import"./collections-CpOrr_Gv.js";import"./collection-tabs-BaSPyUXn.js";import"./badge-CQybGfxn.js";import"./textarea-WpZ6d3aj.js";import"./connection-form-helpers-DWZPGoQ0.js";import"./use-infinite-scroll-Dq4LQvGA.js";import"./useSuspenseInfiniteQuery-CttlyQrq.js";import"./index-D54pKkTb.js";import"./dropdown-menu-Kn1KFf_7.js";import"./question-004-sINsf4GQ.js";import"./shell-route-loading-DSUwFCkI.js";import"./sidebar-D5sx4cw7.js";import"./sheet-BBAkMmdU.js";import"./toolbar-B7mbC32u.js";import"./use-create-virtual-mcp-pvfszp3d.js";import"./github-repo-picker-DeZ7XjfM.js";import"./use-mcp-tools-CHLE0GCH.js";import"./alert-dialog-DPYmMCbT.js";import"./index-CVKiAO9w.js";import"./use-org-auth-client-HBznaAU-.js";import"./hover-card-CiGu2Rc9.js";import"./task-status-C-gQCQz-.js";import"./use-status-sounds-DpH3cDkD.js";import"./empty-state-CSC6EQIQ.js";import"./resizable-Ba9LvnO6.js";import"./use-capability-BhXqmGDG.js";import"./header-tab-button-B3Zn4qt-.js";import"./index-DLL1noOh.js";import"./user-CvuJ8gsu.js";import"./tools-list-Cv15T5e5.js";import"./use-debounced-autosave-DhKjGFFk.js";import"./index-4wfPgw7r.js";import"./search-input-nVygL8OB.js";import"./use-secrets-CMSnZcAo.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./accordion-Wptwv3ei.js";import"./view-mode-toggle-Bd-KjzIY.js";import"./select-model-CKy0zqKb.js";import"./use-automations-DycGy3r5.js";import"./monaco-editor-DkKdkwZa.js";import"./automation-runs-B9tKW-5u.js";import"./table-Cx2A_sz5.js";import"./use-members-DX3EwEQX.js";import"./automation-list-row-Cscfso-k.js";import"./calendar-BZZJ1lU5.js";import"./image-field-KXYbIIcm.js";import"./use-file-configs-2gqpEUPc.js";function U(n){return typeof n=="string"&&n.trim()?n:void 0}function he(n,e){if(n){if(e)try{const i=new URL(n,e).href;return xe(i)}catch{return}return xe(n)}}function Pe(n){if(!n)return{};const e=U(n.title),i=U(n.titleTemplate);return{title:e&&i?.includes("%s")?i.replace(/%s/g,e):e,description:U(n.description),image:U(n.image),favicon:U(n.favicon)}}function Oe(n){if(!n)return"example.com";try{return new URL(n).host}catch{return"example.com"}}const Z="Your page title",ee="Your meta description will appear here.",Le=[{id:"google",label:"Google",color:"#4285F4",layout:"search"},{id:"facebook",label:"Facebook",color:"#1877F2",layout:"card"},{id:"twitter",label:"X (Twitter)",color:"#0f1419",layout:"card"},{id:"linkedin",label:"LinkedIn",color:"#0A66C2",layout:"card"},{id:"whatsapp",label:"WhatsApp",color:"#25D366",layout:"chat"},{id:"telegram",label:"Telegram",color:"#229ED9",layout:"chat"},{id:"slack",label:"Slack",color:"#611f69",layout:"attachment"},{id:"discord",label:"Discord",color:"#5865F2",layout:"attachment"}];function pe(n){const e=T.c(10),{src:i,className:r,iconSize:h}=n,a=h===void 0?20:h;if(i){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let p;return e[1]!==r||e[2]!==i?(p=t.jsx("img",{src:i,alt:"",referrerPolicy:"no-referrer",className:r,style:m}),e[1]=r,e[2]=i,e[3]=p):p=e[3],p}let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=s):s=e[4];let o;e[5]!==a?(o=t.jsx(ge,{size:a}),e[5]=a,e[6]=o):o=e[6];let l;return e[7]!==r||e[8]!==o?(l=t.jsx("div",{className:r,style:s,children:o}),e[7]=r,e[8]=o,e[9]=l):l=e[9],l}function $e(n){const e=T.c(27),{seo:i,host:r,path:h}=n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={background:"#fff",border:"1px solid #dadce0"},e[0]=a):a=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f1f3f4"},e[1]=s):s=e[1];let o;e[2]!==i.favicon?(o=t.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:s,children:i.favicon?t.jsx("img",{src:i.favicon,alt:"",className:"size-full object-cover"}):t.jsx(ge,{size:12,color:"#9aa0a6"})}),e[2]=i.favicon,e[3]=o):o=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={color:"#202124"},e[4]=l):l=e[4];let m;e[5]!==r?(m=t.jsx("div",{className:"truncate text-[13px] leading-tight",style:l,children:r}),e[5]=r,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#4d5156"},e[7]=p):p=e[7];let d;e[8]!==r||e[9]!==h?(d=t.jsxs("div",{className:"truncate text-[12px] leading-tight",style:p,children:[r,h]}),e[8]=r,e[9]=h,e[10]=d):d=e[10];let c;e[11]!==m||e[12]!==d?(c=t.jsxs("div",{className:"min-w-0",children:[m,d]}),e[11]=m,e[12]=d,e[13]=c):c=e[13];let g;e[14]!==o||e[15]!==c?(g=t.jsxs("div",{className:"flex items-center gap-2",children:[o,c]}),e[14]=o,e[15]=c,e[16]=g):g=e[16];let f;e[17]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#1a0dab"},e[17]=f):f=e[17];const x=i.title??Z;let u;e[18]!==x?(u=t.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:f,children:x}),e[18]=x,e[19]=u):u=e[19];let j;e[20]===Symbol.for("react.memo_cache_sentinel")?(j={color:"#4d5156"},e[20]=j):j=e[20];const v=i.description??ee;let y;e[21]!==v?(y=t.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:j,children:v}),e[21]=v,e[22]=y):y=e[22];let S;return e[23]!==u||e[24]!==y||e[25]!==g?(S=t.jsxs("div",{className:"rounded-lg p-3 text-left",style:a,children:[g,u,y]}),e[23]=u,e[24]=y,e[25]=g,e[26]=S):S=e[26],S}function De(n){const e=T.c(20),{seo:i,host:r}=n;let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h={background:"#fff",border:"1px solid #e2e8f0"},e[0]=h):h=e[0];let a;e[1]!==i.image?(a=t.jsx(pe,{src:i.image,className:"h-40 w-full"}),e[1]=i.image,e[2]=a):a=e[2];let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s={borderTop:"1px solid #e2e8f0"},e[3]=s):s=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o={color:"#8a9099"},e[4]=o):o=e[4];let l;e[5]!==r?(l=t.jsx("div",{className:"truncate text-[11px]",style:o,children:r}),e[5]=r,e[6]=l):l=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#1c2024"},e[7]=m):m=e[7];const p=i.title??Z;let d;e[8]!==p?(d=t.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:m,children:p}),e[8]=p,e[9]=d):d=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[10]=c):c=e[10];const g=i.description??ee;let f;e[11]!==g?(f=t.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:g}),e[11]=g,e[12]=f):f=e[12];let x;e[13]!==f||e[14]!==l||e[15]!==d?(x=t.jsxs("div",{className:"px-3 py-2",style:s,children:[l,d,f]}),e[13]=f,e[14]=l,e[15]=d,e[16]=x):x=e[16];let u;return e[17]!==x||e[18]!==a?(u=t.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:h,children:[a,x]}),e[17]=x,e[18]=a,e[19]=u):u=e[19],u}function Ie(n){const e=T.c(23),{seo:i,host:r,accent:h}=n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={background:"#f0f2f5"},e[0]=a):a=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:{color:"#3b4045"},children:"Here's a post you might write with the link of your website:"}),e[1]=s):s=e[1];const o=`3px solid ${h}`;let l;e[2]!==o?(l={background:"#fff",borderLeft:o},e[2]=o,e[3]=l):l=e[3];let m;e[4]!==i.image?(m=t.jsx(pe,{src:i.image,className:"h-28 w-full",iconSize:18}),e[4]=i.image,e[5]=m):m=e[5];let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#1c2024"},e[6]=p):p=e[6];const d=i.title??Z;let c;e[7]!==d?(c=t.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:p,children:d}),e[7]=d,e[8]=c):c=e[8];let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g={color:"#60666c"},e[9]=g):g=e[9];const f=i.description??ee;let x;e[10]!==f?(x=t.jsx("div",{className:"line-clamp-2 text-[11px]",style:g,children:f}),e[10]=f,e[11]=x):x=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#8a9099"},e[12]=u):u=e[12];let j;e[13]!==r?(j=t.jsx("div",{className:"mt-0.5 text-[10px]",style:u,children:r}),e[13]=r,e[14]=j):j=e[14];let v;e[15]!==x||e[16]!==j||e[17]!==c?(v=t.jsxs("div",{className:"px-2.5 py-1.5",children:[c,x,j]}),e[15]=x,e[16]=j,e[17]=c,e[18]=v):v=e[18];let y;return e[19]!==v||e[20]!==l||e[21]!==m?(y=t.jsxs("div",{className:"rounded-lg p-2 text-left",style:a,children:[s,t.jsxs("div",{className:"overflow-hidden rounded-md",style:l,children:[m,v]})]}),e[19]=v,e[20]=l,e[21]=m,e[22]=y):y=e[22],y}function Ae(n){const e=T.c(33),{seo:i,host:r,accent:h,dark:a}=n,s=a?"#2b2d31":"#fff",o=a?"#00a8fc":"#1264a3",l=a?"#dbdee1":"#3b4045",m=a?"#949ba4":"#8a9099",p=a?"none":"1px solid #e2e8f0";let d;e[0]!==s||e[1]!==p?(d={background:s,border:p},e[0]=s,e[1]=p,e[2]=d):d=e[2];const c=`3px solid ${h}`;let g;e[3]!==c?(g={borderLeft:c,borderRadius:2},e[3]=c,e[4]=g):g=e[4];let f;e[5]!==m?(f={color:m},e[5]=m,e[6]=f):f=e[6];let x;e[7]!==r||e[8]!==f?(x=t.jsx("div",{className:"text-[10px]",style:f,children:r}),e[7]=r,e[8]=f,e[9]=x):x=e[9];let u;e[10]!==o?(u={color:o},e[10]=o,e[11]=u):u=e[11];const j=i.title??Z;let v;e[12]!==u||e[13]!==j?(v=t.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:u,children:j}),e[12]=u,e[13]=j,e[14]=v):v=e[14];let y;e[15]!==l?(y={color:l},e[15]=l,e[16]=y):y=e[16];const S=i.description??ee;let _;e[17]!==y||e[18]!==S?(_=t.jsx("div",{className:"line-clamp-2 text-[12px]",style:y,children:S}),e[17]=y,e[18]=S,e[19]=_):_=e[19];let N;e[20]!==_||e[21]!==x||e[22]!==v?(N=t.jsxs("div",{className:"min-w-0 flex-1",children:[x,v,_]}),e[20]=_,e[21]=x,e[22]=v,e[23]=N):N=e[23];let b;e[24]!==i.image?(b=t.jsx(pe,{src:i.image,className:"size-14 shrink-0 rounded",iconSize:16}),e[24]=i.image,e[25]=b):b=e[25];let k;e[26]!==N||e[27]!==b||e[28]!==g?(k=t.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:g,children:[N,b]}),e[26]=N,e[27]=b,e[28]=g,e[29]=k):k=e[29];let C;return e[30]!==k||e[31]!==d?(C=t.jsx("div",{className:"rounded-lg p-2.5 text-left",style:d,children:k}),e[30]=k,e[31]=d,e[32]=C):C=e[32],C}function Be(n){const e=T.c(17),{platform:i,seo:r,host:h,path:a}=n;let s;e[0]!==h||e[1]!==a||e[2]!==i.color||e[3]!==i.id||e[4]!==i.layout||e[5]!==r?(s=i.layout==="search"?t.jsx($e,{seo:r,host:h,path:a}):i.layout==="card"?t.jsx(De,{seo:r,host:h,path:a}):i.layout==="chat"?t.jsx(Ie,{seo:r,host:h,path:a,accent:i.color}):t.jsx(Ae,{seo:r,host:h,path:a,accent:i.color,dark:i.id==="discord"}),e[0]=h,e[1]=a,e[2]=i.color,e[3]=i.id,e[4]=i.layout,e[5]=r,e[6]=s):s=e[6];const o=s;let l;e[7]!==i.color?(l=t.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:i.color}}),e[7]=i.color,e[8]=l):l=e[8];let m;e[9]!==i.label?(m=t.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i.label}),e[9]=i.label,e[10]=m):m=e[10];let p;e[11]!==l||e[12]!==m?(p=t.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[l,m]}),e[11]=l,e[12]=m,e[13]=p):p=e[13];let d;return e[14]!==o||e[15]!==p?(d=t.jsxs("div",{children:[p,o]}),e[14]=o,e[15]=p,e[16]=d):d=e[16],d}function Ue(n){const e=T.c(17),{seo:i,url:r,path:h}=n,a=h===void 0?"/":h;let s,o,l;if(e[0]!==i||e[1]!==r){const u=Pe(i);s=u,o=he(u.image,r),l=he(u.favicon,r),e[0]=i,e[1]=r,e[2]=s,e[3]=o,e[4]=l}else s=e[2],o=e[3],l=e[4];let m;e[5]!==s||e[6]!==o||e[7]!==l?(m={...s,image:o,favicon:l},e[5]=s,e[6]=o,e[7]=l,e[8]=m):m=e[8];const p=m;let d;e[9]!==r?(d=Oe(r),e[9]=r,e[10]=d):d=e[10];const c=d,g=a==="/"?"":a;let f;e[11]!==g||e[12]!==c||e[13]!==p?(f=Le.map(u=>t.jsx(Be,{platform:u,seo:p,host:c,path:g},u.id)),e[11]=g,e[12]=c,e[13]=p,e[14]=f):f=e[14];let x;return e[15]!==f?(x=t.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:f}),e[15]=f,e[16]=x):x=e[16],x}function Di(n){const e=T.c(63),{orgSlug:i,virtualMcpId:r,branch:h,decofile:a,meta:s,target:o,previewBaseUrl:l,onSaved:m,onEditDefaultSeo:p,onBack:d}=n,c=Ne(a,o,s),g=c?.seoData,f=o.kind==="site"?"site":o.pageKey,[x,u]=Q.useState(f),[j,v]=Q.useState(null),[y,S]=Q.useState(0),[_,N]=Q.useState(void 0);x!==f&&(u(f),v(null),N(void 0),S(Me));const{persistSeo:b,persistRawSeo:k,flush:C,isPending:te}=ke({orgSlug:i,virtualMcpId:r,branch:h,target:o,resolved:c,onSaved:m}),K=o.kind==="page",ve=K?c?.rawSeoData:void 0,B=_!==void 0?_:ve,ye=K?_e(B)??void 0:void 0,w=j??ye??g??{},F=c?we(w,c):null,z=F&&(!K||Ce(B))?ze(F,s):null;let M;e[0]!==s?(M=Te(s),e[0]=s,e[1]=M):M=e[1];const oe=M;let E,G;e[2]!==a||e[3]!==w||e[4]!==s||e[5]!==o.kind?(E=o.kind==="page"?Fe(a,s)?.seoData??{}:{},G=o.kind==="page"?Ve(E,w):w,e[2]=a,e[3]=w,e[4]=s,e[5]=o.kind,e[6]=E,e[7]=G):(E=e[6],G=e[7]);const ie=G;let V;e[8]!==b||e[9]!==c||e[10]!==v?(V=R=>{if(!c)return;const de=R;v(de),b(de)},e[8]=b,e[9]=c,e[10]=v,e[11]=V):V=e[11];const se=V;let Y;e[12]!==v?(Y=()=>v(null),e[12]=v,e[13]=Y):Y=e[13];const le=Y;let H;e[14]!==S?(H=()=>S(Ke),e[14]=S,e[15]=H):H=e[15];const re=H;let W;e[16]!==C||e[17]!==d?(W=()=>{C(),d?.()},e[16]=C,e[17]=d,e[18]=W):W=e[18];const ae=W,P=o.kind==="page"?o.path:"/";let X;e[19]!==P||e[20]!==l||e[21]!==o.kind?(X=o.kind==="page"&&l?Ge(P,l):l??null,e[19]=P,e[20]=l,e[21]=o.kind,e[22]=X):X=e[22];const ne=X,ce=o.kind==="site"?"No site-level SEO block found.":c?"SEO schema not found for this page.":"Could not load page SEO.",q=K&&c,me=o.kind==="site"&&c&&z;let O;e[23]!==ae||e[24]!==o.kind||e[25]!==o.pageName?(O=o.kind==="page"?t.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[t.jsx("button",{type:"button",onClick:ae,title:o.pageName,className:"min-w-0 truncate rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:o.pageName}),t.jsx(be,{className:"size-3 shrink-0 text-muted-foreground/60"}),t.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx(fe,{size:16,className:"shrink-0 text-muted-foreground"}),t.jsx("span",{className:"text-sm font-medium",children:"Default SEO"}),t.jsx("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:"· applied to every page unless overridden"})]}),e[23]=ae,e[24]=o.kind,e[25]=o.pageName,e[26]=O):O=e[26];let L;e[27]!==te?(L=te&&t.jsx(Se,{size:14,className:"animate-spin text-muted-foreground"}),e[27]=te,e[28]=L):L=e[28];let $;e[29]!==p||e[30]!==o.kind?($=o.kind==="page"&&p&&t.jsxs(je,{type:"button",variant:"outline",size:"sm",onClick:p,children:[t.jsx(fe,{size:14}),"Edit default SEO"]}),e[29]=p,e[30]=o.kind,e[31]=$):$=e[31];let D;e[32]!==$||e[33]!==L?(D=t.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[L,$]}),e[32]=$,e[33]=L,e[34]=D):D=e[34];let I;e[35]!==D||e[36]!==O?(I=t.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[O,D]}),e[35]=D,e[36]=O,e[37]=I):I=e[37];let A;e[38]!==F||e[39]!==re||e[40]!==le||e[41]!==oe||e[42]!==B||e[43]!==w||e[44]!==ce||e[45]!==y||e[46]!==se||e[47]!==P||e[48]!==k||e[49]!==b||e[50]!==ie||e[51]!==ne||e[52]!==c||e[53]!==z||e[54]!==v||e[55]!==N||e[56]!==q||e[57]!==me||e[58]!==E?(A=!c||!q&&!me?t.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ce}):t.jsxs("div",{className:"flex min-h-0 flex-1",children:[t.jsx(ue,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"px-5 py-4",children:q?t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:"Empty fields inherit the default SEO. The preview shows the resolved result."}),t.jsx(Ee,{rawSeo:B,innerSeo:w,defaultResolveType:oe,seoSchema:z,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:y,siteDefaultSeo:E,onPersistRaw:R=>{N(R),k(R)},onInnerChange:R=>{v(R),b(R)},onClearForm:le,onBumpFormKey:re})]}):z&&F&&t.jsx(Re,{schema:z,resolveType:F,value:w,formResetKey:y,onChange:se})})}),t.jsx(ue,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"@container px-5 py-4",children:t.jsx(Ue,{seo:ie,url:ne,path:P})})})]}),e[38]=F,e[39]=re,e[40]=le,e[41]=oe,e[42]=B,e[43]=w,e[44]=ce,e[45]=y,e[46]=se,e[47]=P,e[48]=k,e[49]=b,e[50]=ie,e[51]=ne,e[52]=c,e[53]=z,e[54]=v,e[55]=N,e[56]=q,e[57]=me,e[58]=E,e[59]=A):A=e[59];let J;return e[60]!==I||e[61]!==A?(J=t.jsxs("div",{className:"flex h-full w-full flex-col",children:[I,A]}),e[60]=I,e[61]=A,e[62]=J):J=e[62],J}function Ke(n){return n+1}function Me(n){return n+1}function Ge(n,e){try{return new URL(n,e).href}catch{return e}}function Ve(n,e){const i=e.__resolveType,r=n.__resolveType;if(typeof i=="string"&&typeof r=="string"&&i!==r)return{...e};const h={...n};for(const[a,s]of Object.entries(e))a!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(h[a]=s));return h}export{Di as SeoEditor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as S,g as T,j as s,q as W,b7 as X,c as w,F as Y,P as F,t as H,a2 as Q,b as D,l as Z,r as ee,O as se}from"./index-v-4yPWk5.js";import{u as J}from"./useRouterState-BMTgOPTS.js";import{S as te,a as le,b as re,e as I,f as A,g as L,c as B,d as R,i as ie,j as ne}from"./sidebar-CYu-6Gzi.js";import{a as oe}from"./index-B5koQSO_.js";import{n as ae,b as ce,a as me,c as fe,d as de,i as K}from"./ZapSquare-DfDC54JS.js";import{t as be,a as E}from"./Users03-DYjDLJbQ.js";import{i as xe}from"./HardDrive-CTInlaSO.js";import{i as ue}from"./Key01-DhkJOk-2.js";import{i as he}from"./Shield01-XGinfl8i.js";import{s as ge}from"./User01-of2DRTwj.js";import{i as G}from"./Zap-BBs40ZSU.js";import{a as pe}from"./use-capability-DGmhThV5.js";import{u as U}from"./tooltip-DvNlo5ri.js";import{u as je}from"./use-status-sounds-DadivPgy.js";import{a as y}from"./toolbar-QrhbD1LQ.js";import{S as _e,M as ye}from"./shell-controls-BEBIH-Ax.js";import"./LayoutLeft-C4WMufMy.js";import"./sheet-DruC4GtE.js";import"./X-DWbNv8Bl.js";import"./question-004-sINsf4GQ.js";import"./decopilot-sse-pool-C-7QzQnf.js";import"./create-sse-subscription-BS5983N4.js";import"./ChevronLeft-C6IDOOPU.js";import"./ChevronRight-CBmg3jrn.js";function V(){const e=S.c(26),t=W().project;let n;e[0]!==t.enabledPlugins?(n=t.enabledPlugins??[],e[0]=t.enabledPlugins,e[1]=n):n=e[1];const l=n,{capabilities:i,isPrivileged:r,loading:o,error:a}=pe();let c,d;if(e[2]!==i||e[3]!==l||e[4]!==a||e[5]!==r||e[6]!==o){d=Symbol.for("react.early_return_sentinel");e:{let m;e[9]!==l?(m=q=>l.includes(q.pluginId),e[9]=l,e[10]=m):m=e[10];const h=X.filter(m).map(ve);let b;e[11]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(be,{size:14}),e[11]=b):b=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(ae,{size:14}),e[12]=f):f=e[12];let x;e[13]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(ce,{size:14}),e[13]=x):x=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(ue,{size:14}),e[14]=g):g=e[14];let p;e[15]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(xe,{size:14}),e[15]=p):p=e[15];let u;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(me,{size:14}),e[16]=u):u=e[16];let _;e[17]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(E,{size:14}),e[17]=_):_=e[17];let j;e[18]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(G,{size:14}),e[18]=j):j=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(fe,{size:14}),e[19]=v):v=e[19];let N;e[20]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(de,{size:14}),e[20]=N):N=e[20];let k;e[21]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(E,{size:14}),e[21]=k):k=e[21];let $;e[22]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(he,{size:14}),e[22]=$):$=e[22];let z;e[23]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(Y,{size:14}),e[23]=z):z=e[23];let C;e[24]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(G,{size:14}),e[24]=C):C=e[24];let P;e[25]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(ge,{size:14}),e[25]=P):P=e[25];const O=[{label:"Organization",items:[{key:"general",label:"General",icon:b,to:"/$org/settings/general",requires:"org:manage"},{key:"brand-context",label:"Brand Context",icon:f,to:"/$org/settings/brand-context",requires:"org:manage"},{key:"ai-providers",label:"AI Providers",icon:x,to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"secrets",label:"Secrets",icon:g,to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"buckets",label:"Buckets",icon:p,to:"/$org/settings/buckets",requires:"file-configs:manage"}]},{label:"Build",items:[{key:"connections",label:"Connections",icon:u,to:"/$org/settings/connections"},{key:"agents",label:"Agents",icon:_,to:"/$org/settings/agents"},{key:"automations",label:"Automations",icon:j,to:"/$org/settings/automations",requires:"automations:manage"},{key:"store",label:"Store",icon:v,to:"/$org/settings/store",requires:"registry:manage"}]},{label:"Manage",items:[{key:"monitor",label:"Monitor",icon:N,to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:"Members",icon:k,to:"/$org/settings/members",requires:"members:manage"},{key:"roles",label:"Roles",icon:$,to:"/$org/settings/roles",privilegedOnly:!0},{key:"sso",label:"Security",icon:z,to:"/$org/settings/sso",requires:"org:manage"}]},{label:"Extensions",items:[{key:"features",label:"Plugins",icon:C,to:"/$org/settings/features",requires:"org:manage"},...h]},{label:"Account",items:[{key:"profile",label:"Profile & Preferences",icon:P,to:"/$org/settings/profile"}]}];if(o||a){d=O;break e}c=O.map(q=>({...q,items:q.items.filter(M=>M.privilegedOnly?r:M.requires?r||i[M.requires]:!0)})).filter(Se)}e[2]=i,e[3]=l,e[4]=a,e[5]=r,e[6]=o,e[7]=c,e[8]=d}else c=e[7],d=e[8];return d!==Symbol.for("react.early_return_sentinel")?d:c}function Se(e){return e.items.length>0}function ve(e){const{key:t,label:n,icon:l,to:i}=e;return{key:t,label:n,icon:l,to:i}}function Ne(){const e=S.c(19),t=V();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},e[0]=n):n=e[0];const{org:l}=T(n);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={select:$e},e[1]=i):i=e[1];const r=J(i);let o;e[2]!==l||e[3]!==r?(o=x=>{const g=x.replace("$org",l);return r.startsWith(g)},e[2]=l,e[3]=r,e[4]=o):o=e[4];const a=o;let c;if(e[5]!==t||e[6]!==a||e[7]!==l){let x;e[9]!==a||e[10]!==l?(x=(g,p)=>s.jsxs(I,{className:"pt-0 pr-0 pb-0 pl-0",children:[g.label&&s.jsx("p",{className:w("px-2 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",p>0&&"mt-3"),children:g.label}),s.jsx(A,{children:s.jsx(L,{className:"gap-0.5",children:g.items.map(u=>s.jsx(B,{children:s.jsx(R,{asChild:!0,isActive:a(u.to),children:s.jsxs(F,{to:u.to,params:{org:l},onClick:()=>H("settings_nav_clicked",{section_key:u.key,section_label:u.label,group_label:g.label||"main"}),className:"flex items-center gap-2.5 text-sm",children:[s.jsx("span",{className:"shrink-0",children:u.icon}),s.jsx("span",{className:"truncate",children:u.label})]})})},u.key))})})]},`${g.label}-${p}`),e[9]=a,e[10]=l,e[11]=x):x=e[11],c=t.map(x),e[5]=t,e[6]=a,e[7]=l,e[8]=c}else c=e[8];let d;e[12]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx("div",{className:"mx-2 my-2 border-t border-border/50"}),e[12]=d):d=e[12];let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsxs(I,{className:"pt-0 pr-0 pb-0 pl-0",children:[d,s.jsx(A,{children:s.jsx(L,{className:"gap-0.5",children:s.jsx(B,{children:s.jsxs(R,{onClick:ke,className:"flex items-center gap-2.5 text-sm",children:[s.jsx("span",{className:"shrink-0",children:s.jsx(K,{size:14})}),s.jsx("span",{className:"truncate",children:"Sign Out"})]})})})})]}),e[13]=m):m=e[13];let h;e[14]!==c?(h=s.jsxs(ie,{className:"flex flex-col flex-1 mt-2 px-2 pb-2 gap-0 overflow-y-auto",children:[c,m]}),e[14]=c,e[15]=h):h=e[15];let b;e[16]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx("div",{className:"mt-auto px-4 pb-1",children:s.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","3.20.1"]})}),e[16]=b):b=e[16];let f;return e[17]!==h?(f=s.jsxs(ne,{variant:"sidebar",children:[h,b]}),e[17]=h,e[18]=f):f=e[18],f}function ke(){H("signed_out",{source:"settings_sidebar"}),Q(),D.signOut()}function $e(e){return e.location.pathname}function ze(e){const t=S.c(21),{onClose:n}=e,l=V();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={from:"/shell/$org"},t[0]=i):i=t[0];const{org:r}=T(i);let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o={select:Pe},t[1]=o):o=t[1];const a=J(o);let c;t[2]!==r||t[3]!==a?(c=p=>{const u=p.replace("$org",r);return a.startsWith(u)},t[2]=r,t[3]=a,t[4]=c):c=t[4];const d=c;let m;if(t[5]!==l||t[6]!==d||t[7]!==n||t[8]!==r){let p;t[10]!==d||t[11]!==n||t[12]!==r?(p=(u,_)=>s.jsxs("div",{className:"flex flex-col gap-0.5",children:[u.label&&s.jsx("p",{className:w("px-3 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",_>0&&"mt-3"),children:u.label}),u.items.map(j=>s.jsxs(F,{to:j.to,params:{org:r},onClick:n,className:w("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm",d(j.to)?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground"),children:[s.jsx("span",{className:"shrink-0",children:j.icon}),s.jsx("span",{className:"truncate",children:j.label})]},j.key))]},`${u.label}-${_}`),t[10]=d,t[11]=n,t[12]=r,t[13]=p):p=t[13],m=l.map(p),t[5]=l,t[6]=d,t[7]=n,t[8]=r,t[9]=m}else m=t[9];let h;t[14]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx("div",{className:"h-px bg-border/50 my-2"}),t[14]=h):h=t[14];let b;t[15]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[h,s.jsxs("button",{type:"button",onClick:Ce,className:"flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",children:[s.jsx("span",{className:"shrink-0",children:s.jsx(K,{size:14})}),s.jsx("span",{className:"truncate",children:"Sign Out"})]})]}),t[15]=b):b=t[15];let f;t[16]!==m?(f=s.jsxs("div",{className:"flex flex-col flex-1 overflow-y-auto px-2 py-2 gap-0.5",children:[m,b]}),t[16]=m,t[17]=f):f=t[17];let x;t[18]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("div",{className:"px-4 pb-3 pt-1 border-t border-border/50",children:s.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","3.20.1"]})}),t[18]=x):x=t[18];let g;return t[19]!==f?(g=s.jsxs("div",{className:"flex flex-col h-full bg-sidebar",children:[f,x]}),t[19]=f,t[20]=g):g=t[20],g}function Ce(){Q(),D.signOut()}function Pe(e){return e.location.pathname}function qe(){const e=S.c(4),t=U(),{org:n}=W();je(n.slug);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(Z,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=l):l=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(ee.Suspense,{fallback:l,children:s.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:s.jsx(oe,{value:"p-0",children:s.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:s.jsx(se,{})})})})}),e[1]=i):i=e[1];const r=i;if(t){let a;return e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"flex flex-col flex-1 bg-background min-h-0 overflow-hidden",children:r}),e[2]=a):a=e[2],a}let o;return e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1 min-h-0 p-1",children:s.jsx("div",{className:w("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),children:r})}),e[3]=o):o=e[3],o}function ts(){const e=S.c(22),t=U();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(y.LogoLink,{}),e[0]=n):n=e[0];let l;e[1]!==t?(l=t&&s.jsx(_e,{}),e[1]=t,e[2]=l):l=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("span",{className:"hidden md:contents",children:s.jsx(y.Nav,{})}),e[3]=i):i=e[3];let r;e[4]!==l?(r=s.jsxs(y.LeftColumn,{children:[n,l,i]}),e[4]=l,e[5]=r):r=e[5];let o;e[6]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(y.CenterSlot,{}),e[6]=o):o=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(y.RightColumn,{children:s.jsx("span",{})}),e[7]=a):a=e[7];let c;e[8]!==r?(c=s.jsxs(y.Header,{children:[r,o,a]}),e[8]=r,e[9]=c):c=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d={"--sidebar-width-icon":"3.5rem"},e[10]=d):d=e[10];let m;e[11]!==t?(m=!t&&s.jsx(Ne,{}),e[11]=t,e[12]=m):m=e[12];let h;e[13]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(te,{className:"flex flex-col",style:{background:"transparent",containerType:"inline-size"},children:s.jsx(qe,{})}),e[13]=h):h=e[13];let b;e[14]!==m?(b=s.jsxs(le,{className:"flex-1 bg-sidebar min-h-0",style:d,children:[m,h]}),e[14]=m,e[15]=b):b=e[15];let f;e[16]!==t?(f=t&&s.jsx(ye,{renderSidebar:we}),e[16]=t,e[17]=f):f=e[17];let x;return e[18]!==b||e[19]!==f||e[20]!==c?(x=s.jsx(y.Provider,{children:s.jsx(re,{defaultOpen:!0,children:s.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[c,b,f]})})}),e[18]=b,e[19]=f,e[20]=c,e[21]=x):x=e[21],x}function we(e){const{onClose:t}=e;return s.jsx(ze,{onClose:t})}export{Ne as SettingsSidebar,ze as SettingsSidebarMobile,ts as default};
|
|
1
|
+
import{e as S,g as T,j as s,q as W,b7 as X,c as w,F as Y,P as F,t as H,a2 as Q,b as D,l as Z,r as ee,O as se}from"./index-B7vG9XMB.js";import{u as J}from"./useRouterState-VGJ_ztuJ.js";import{S as te,a as le,b as re,e as I,f as A,g as L,c as B,d as R,i as ie,j as ne}from"./sidebar-D5sx4cw7.js";import{a as oe}from"./index-4wfPgw7r.js";import{n as ae,b as ce,a as me,c as fe,d as de,i as K}from"./ZapSquare-M-fH4MJf.js";import{t as be,a as E}from"./Users03-BwOA6RiF.js";import{i as xe}from"./HardDrive-CPqmzwVB.js";import{i as ue}from"./Key01-NY-IsQgy.js";import{i as he}from"./Shield01-wwDAi_uJ.js";import{s as ge}from"./User01-Y_Kyyfi4.js";import{i as G}from"./Zap-Gvzp-SH3.js";import{a as pe}from"./use-capability-BhXqmGDG.js";import{u as U}from"./tooltip-CwxdEfJN.js";import{u as je}from"./use-status-sounds-DpH3cDkD.js";import{a as y}from"./toolbar-B7mbC32u.js";import{S as _e,M as ye}from"./shell-controls-CpJ33jvP.js";import"./LayoutLeft-BgC7aOjO.js";import"./sheet-BBAkMmdU.js";import"./X-CeSkzEjM.js";import"./question-004-sINsf4GQ.js";import"./decopilot-sse-pool-oHmW4h5V.js";import"./create-sse-subscription-BS5983N4.js";import"./ChevronLeft-BSf4mKrR.js";import"./ChevronRight-B1SVpAS5.js";function V(){const e=S.c(26),t=W().project;let n;e[0]!==t.enabledPlugins?(n=t.enabledPlugins??[],e[0]=t.enabledPlugins,e[1]=n):n=e[1];const l=n,{capabilities:i,isPrivileged:r,loading:o,error:a}=pe();let c,d;if(e[2]!==i||e[3]!==l||e[4]!==a||e[5]!==r||e[6]!==o){d=Symbol.for("react.early_return_sentinel");e:{let m;e[9]!==l?(m=q=>l.includes(q.pluginId),e[9]=l,e[10]=m):m=e[10];const h=X.filter(m).map(ve);let b;e[11]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(be,{size:14}),e[11]=b):b=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(ae,{size:14}),e[12]=f):f=e[12];let x;e[13]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(ce,{size:14}),e[13]=x):x=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(ue,{size:14}),e[14]=g):g=e[14];let p;e[15]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(xe,{size:14}),e[15]=p):p=e[15];let u;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(me,{size:14}),e[16]=u):u=e[16];let _;e[17]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(E,{size:14}),e[17]=_):_=e[17];let j;e[18]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(G,{size:14}),e[18]=j):j=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(fe,{size:14}),e[19]=v):v=e[19];let N;e[20]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(de,{size:14}),e[20]=N):N=e[20];let k;e[21]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(E,{size:14}),e[21]=k):k=e[21];let $;e[22]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(he,{size:14}),e[22]=$):$=e[22];let z;e[23]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(Y,{size:14}),e[23]=z):z=e[23];let C;e[24]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(G,{size:14}),e[24]=C):C=e[24];let P;e[25]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(ge,{size:14}),e[25]=P):P=e[25];const O=[{label:"Organization",items:[{key:"general",label:"General",icon:b,to:"/$org/settings/general",requires:"org:manage"},{key:"brand-context",label:"Brand Context",icon:f,to:"/$org/settings/brand-context",requires:"org:manage"},{key:"ai-providers",label:"AI Providers",icon:x,to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"secrets",label:"Secrets",icon:g,to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"buckets",label:"Buckets",icon:p,to:"/$org/settings/buckets",requires:"file-configs:manage"}]},{label:"Build",items:[{key:"connections",label:"Connections",icon:u,to:"/$org/settings/connections"},{key:"agents",label:"Agents",icon:_,to:"/$org/settings/agents"},{key:"automations",label:"Automations",icon:j,to:"/$org/settings/automations",requires:"automations:manage"},{key:"store",label:"Store",icon:v,to:"/$org/settings/store",requires:"registry:manage"}]},{label:"Manage",items:[{key:"monitor",label:"Monitor",icon:N,to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:"Members",icon:k,to:"/$org/settings/members",requires:"members:manage"},{key:"roles",label:"Roles",icon:$,to:"/$org/settings/roles",privilegedOnly:!0},{key:"sso",label:"Security",icon:z,to:"/$org/settings/sso",requires:"org:manage"}]},{label:"Extensions",items:[{key:"features",label:"Plugins",icon:C,to:"/$org/settings/features",requires:"org:manage"},...h]},{label:"Account",items:[{key:"profile",label:"Profile & Preferences",icon:P,to:"/$org/settings/profile"}]}];if(o||a){d=O;break e}c=O.map(q=>({...q,items:q.items.filter(M=>M.privilegedOnly?r:M.requires?r||i[M.requires]:!0)})).filter(Se)}e[2]=i,e[3]=l,e[4]=a,e[5]=r,e[6]=o,e[7]=c,e[8]=d}else c=e[7],d=e[8];return d!==Symbol.for("react.early_return_sentinel")?d:c}function Se(e){return e.items.length>0}function ve(e){const{key:t,label:n,icon:l,to:i}=e;return{key:t,label:n,icon:l,to:i}}function Ne(){const e=S.c(19),t=V();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},e[0]=n):n=e[0];const{org:l}=T(n);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={select:$e},e[1]=i):i=e[1];const r=J(i);let o;e[2]!==l||e[3]!==r?(o=x=>{const g=x.replace("$org",l);return r.startsWith(g)},e[2]=l,e[3]=r,e[4]=o):o=e[4];const a=o;let c;if(e[5]!==t||e[6]!==a||e[7]!==l){let x;e[9]!==a||e[10]!==l?(x=(g,p)=>s.jsxs(I,{className:"pt-0 pr-0 pb-0 pl-0",children:[g.label&&s.jsx("p",{className:w("px-2 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",p>0&&"mt-3"),children:g.label}),s.jsx(A,{children:s.jsx(L,{className:"gap-0.5",children:g.items.map(u=>s.jsx(B,{children:s.jsx(R,{asChild:!0,isActive:a(u.to),children:s.jsxs(F,{to:u.to,params:{org:l},onClick:()=>H("settings_nav_clicked",{section_key:u.key,section_label:u.label,group_label:g.label||"main"}),className:"flex items-center gap-2.5 text-sm",children:[s.jsx("span",{className:"shrink-0",children:u.icon}),s.jsx("span",{className:"truncate",children:u.label})]})})},u.key))})})]},`${g.label}-${p}`),e[9]=a,e[10]=l,e[11]=x):x=e[11],c=t.map(x),e[5]=t,e[6]=a,e[7]=l,e[8]=c}else c=e[8];let d;e[12]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx("div",{className:"mx-2 my-2 border-t border-border/50"}),e[12]=d):d=e[12];let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsxs(I,{className:"pt-0 pr-0 pb-0 pl-0",children:[d,s.jsx(A,{children:s.jsx(L,{className:"gap-0.5",children:s.jsx(B,{children:s.jsxs(R,{onClick:ke,className:"flex items-center gap-2.5 text-sm",children:[s.jsx("span",{className:"shrink-0",children:s.jsx(K,{size:14})}),s.jsx("span",{className:"truncate",children:"Sign Out"})]})})})})]}),e[13]=m):m=e[13];let h;e[14]!==c?(h=s.jsxs(ie,{className:"flex flex-col flex-1 mt-2 px-2 pb-2 gap-0 overflow-y-auto",children:[c,m]}),e[14]=c,e[15]=h):h=e[15];let b;e[16]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx("div",{className:"mt-auto px-4 pb-1",children:s.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","3.21.0"]})}),e[16]=b):b=e[16];let f;return e[17]!==h?(f=s.jsxs(ne,{variant:"sidebar",children:[h,b]}),e[17]=h,e[18]=f):f=e[18],f}function ke(){H("signed_out",{source:"settings_sidebar"}),Q(),D.signOut()}function $e(e){return e.location.pathname}function ze(e){const t=S.c(21),{onClose:n}=e,l=V();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={from:"/shell/$org"},t[0]=i):i=t[0];const{org:r}=T(i);let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o={select:Pe},t[1]=o):o=t[1];const a=J(o);let c;t[2]!==r||t[3]!==a?(c=p=>{const u=p.replace("$org",r);return a.startsWith(u)},t[2]=r,t[3]=a,t[4]=c):c=t[4];const d=c;let m;if(t[5]!==l||t[6]!==d||t[7]!==n||t[8]!==r){let p;t[10]!==d||t[11]!==n||t[12]!==r?(p=(u,_)=>s.jsxs("div",{className:"flex flex-col gap-0.5",children:[u.label&&s.jsx("p",{className:w("px-3 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",_>0&&"mt-3"),children:u.label}),u.items.map(j=>s.jsxs(F,{to:j.to,params:{org:r},onClick:n,className:w("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm",d(j.to)?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground"),children:[s.jsx("span",{className:"shrink-0",children:j.icon}),s.jsx("span",{className:"truncate",children:j.label})]},j.key))]},`${u.label}-${_}`),t[10]=d,t[11]=n,t[12]=r,t[13]=p):p=t[13],m=l.map(p),t[5]=l,t[6]=d,t[7]=n,t[8]=r,t[9]=m}else m=t[9];let h;t[14]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx("div",{className:"h-px bg-border/50 my-2"}),t[14]=h):h=t[14];let b;t[15]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[h,s.jsxs("button",{type:"button",onClick:Ce,className:"flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",children:[s.jsx("span",{className:"shrink-0",children:s.jsx(K,{size:14})}),s.jsx("span",{className:"truncate",children:"Sign Out"})]})]}),t[15]=b):b=t[15];let f;t[16]!==m?(f=s.jsxs("div",{className:"flex flex-col flex-1 overflow-y-auto px-2 py-2 gap-0.5",children:[m,b]}),t[16]=m,t[17]=f):f=t[17];let x;t[18]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("div",{className:"px-4 pb-3 pt-1 border-t border-border/50",children:s.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","3.21.0"]})}),t[18]=x):x=t[18];let g;return t[19]!==f?(g=s.jsxs("div",{className:"flex flex-col h-full bg-sidebar",children:[f,x]}),t[19]=f,t[20]=g):g=t[20],g}function Ce(){Q(),D.signOut()}function Pe(e){return e.location.pathname}function qe(){const e=S.c(4),t=U(),{org:n}=W();je(n.slug);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(Z,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=l):l=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(ee.Suspense,{fallback:l,children:s.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:s.jsx(oe,{value:"p-0",children:s.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:s.jsx(se,{})})})})}),e[1]=i):i=e[1];const r=i;if(t){let a;return e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"flex flex-col flex-1 bg-background min-h-0 overflow-hidden",children:r}),e[2]=a):a=e[2],a}let o;return e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1 min-h-0 p-1",children:s.jsx("div",{className:w("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),children:r})}),e[3]=o):o=e[3],o}function ts(){const e=S.c(22),t=U();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(y.LogoLink,{}),e[0]=n):n=e[0];let l;e[1]!==t?(l=t&&s.jsx(_e,{}),e[1]=t,e[2]=l):l=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("span",{className:"hidden md:contents",children:s.jsx(y.Nav,{})}),e[3]=i):i=e[3];let r;e[4]!==l?(r=s.jsxs(y.LeftColumn,{children:[n,l,i]}),e[4]=l,e[5]=r):r=e[5];let o;e[6]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(y.CenterSlot,{}),e[6]=o):o=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(y.RightColumn,{children:s.jsx("span",{})}),e[7]=a):a=e[7];let c;e[8]!==r?(c=s.jsxs(y.Header,{children:[r,o,a]}),e[8]=r,e[9]=c):c=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d={"--sidebar-width-icon":"3.5rem"},e[10]=d):d=e[10];let m;e[11]!==t?(m=!t&&s.jsx(Ne,{}),e[11]=t,e[12]=m):m=e[12];let h;e[13]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(te,{className:"flex flex-col",style:{background:"transparent",containerType:"inline-size"},children:s.jsx(qe,{})}),e[13]=h):h=e[13];let b;e[14]!==m?(b=s.jsxs(le,{className:"flex-1 bg-sidebar min-h-0",style:d,children:[m,h]}),e[14]=m,e[15]=b):b=e[15];let f;e[16]!==t?(f=t&&s.jsx(ye,{renderSidebar:we}),e[16]=t,e[17]=f):f=e[17];let x;return e[18]!==b||e[19]!==f||e[20]!==c?(x=s.jsx(y.Provider,{children:s.jsx(re,{defaultOpen:!0,children:s.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[c,b,f]})})}),e[18]=b,e[19]=f,e[20]=c,e[21]=x):x=e[21],x}function we(e){const{onClose:t}=e;return s.jsx(ze,{onClose:t})}export{Ne as SettingsSidebar,ze as SettingsSidebarMobile,ts as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as v,c as N,j as r,r as S}from"./index-
|
|
1
|
+
import{e as v,c as N,j as r,r as S}from"./index-B7vG9XMB.js";import{C as w}from"./card-D-5GEcNj.js";import{i as E}from"./ArrowUpRight--24rRsQC.js";function I(c){const e=v.c(12),{title:i,description:l,docsHref:t,actions:s,className:n,headerClassName:a,children:d}=c;let m;e[0]!==n?(m=N("flex flex-col gap-3",n),e[0]=n,e[1]=m):m=e[1];let f;e[2]!==s||e[3]!==l||e[4]!==t||e[5]!==a||e[6]!==i?(f=(i||l||t||s)&&r.jsxs("div",{className:N("flex items-center justify-between gap-3 px-4",a),children:[r.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[i&&r.jsx("h2",{className:"text-[15px] font-medium leading-tight",children:i}),(l||t)&&r.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[l,t&&r.jsxs("a",{href:t,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",r.jsx(E,{size:12})]})]})]}),s&&r.jsx("div",{className:"shrink-0",children:s})]}),e[2]=s,e[3]=l,e[4]=t,e[5]=a,e[6]=i,e[7]=f):f=e[7];let o;return e[8]!==d||e[9]!==m||e[10]!==f?(o=r.jsxs("section",{className:m,children:[f,d]}),e[8]=d,e[9]=m,e[10]=f,e[11]=o):o=e[11],o}function P(c){const e=v.c(11),{className:i,children:l}=c;let t,s,n;if(e[0]!==l||e[1]!==i){const d=S.Children.toArray(l).filter(S.isValidElement);t=w,e[5]!==i?(s=N("p-0 gap-0 overflow-hidden",i),e[5]=i,e[6]=s):s=e[6],n=d.map($),e[0]=l,e[1]=i,e[2]=t,e[3]=s,e[4]=n}else t=e[2],s=e[3],n=e[4];let a;return e[7]!==t||e[8]!==s||e[9]!==n?(a=r.jsx(t,{className:s,children:n}),e[7]=t,e[8]=s,e[9]=n,e[10]=a):a=e[10],a}function $(c,e){return r.jsxs("div",{children:[e>0&&r.jsx("div",{className:"h-px bg-border mx-5"}),c]},e)}function R(c){const e=v.c(27),{icon:i,title:l,description:t,action:s,onClick:n,className:a,children:d}=c,m=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",f=n&&"hover:bg-muted/50 cursor-pointer";let o;e[0]!==a||e[1]!==m||e[2]!==f?(o=N(m,f,a),e[0]=a,e[1]=m,e[2]=f,e[3]=o):o=e[3];const b=n?"button":void 0,C=n?0:void 0;let x;e[4]!==n?(x=n?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),n())}:void 0,e[4]=n,e[5]=x):x=e[5];let p;e[6]!==i?(p=i&&r.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:i}),e[6]=i,e[7]=p):p=e[7];let u;e[8]!==l?(u=r.jsx("div",{className:"text-sm font-medium",children:l}),e[8]=l,e[9]=u):u=e[9];let h;e[10]!==t?(h=t&&r.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:t}),e[10]=t,e[11]=h):h=e[11];let g;e[12]!==d||e[13]!==u||e[14]!==h?(g=r.jsxs("div",{className:"flex-1 min-w-0",children:[u,h,d]}),e[12]=d,e[13]=u,e[14]=h,e[15]=g):g=e[15];let j;e[16]!==s?(j=s&&r.jsx("div",{className:"shrink-0",onClick:D,children:s}),e[16]=s,e[17]=j):j=e[17];let y;return e[18]!==n||e[19]!==g||e[20]!==j||e[21]!==o||e[22]!==b||e[23]!==C||e[24]!==x||e[25]!==p?(y=r.jsxs("div",{className:o,onClick:n,role:b,tabIndex:C,onKeyDown:x,children:[p,g,j]}),e[18]=n,e[19]=g,e[20]=j,e[21]=o,e[22]=b,e[23]=C,e[24]=x,e[25]=p,e[26]=y):y=e[26],y}function D(c){return c.stopPropagation()}function H(c){const e=v.c(5),{children:i,className:l}=c;let t;e[0]!==l?(t=N("flex items-center justify-end gap-2 px-4 py-4",l),e[0]=l,e[1]=t):t=e[1];let s;return e[2]!==i||e[3]!==t?(s=r.jsx("div",{className:t,children:i}),e[2]=i,e[3]=t,e[4]=s):s=e[4],s}function K(c){const e=v.c(5),{className:i,children:l}=c;let t;e[0]!==i?(t=N("flex flex-col gap-10",i),e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==l||e[3]!==t?(s=r.jsx("div",{className:t,children:l}),e[2]=l,e[3]=t,e[4]=s):s=e[4],s}export{I as S,P as a,R as b,K as c,H as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as n,c as f,j as i,dc as N,cx as y,bE as S,dd as v,cy as $,de as C,cz as w}from"./index-
|
|
1
|
+
import{e as n,c as f,j as i,dc as N,cx as y,bE as S,dd as v,cy as $,de as C,cz as w}from"./index-B7vG9XMB.js";import{i as z}from"./X-CeSkzEjM.js";function D(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(y,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function k(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx($,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function E(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(w,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function O(o){const e=n.c(20);let t,s,a,l,c;e[0]!==o?({className:s,children:t,side:l,hideCloseButton:c,...a}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=c):(t=e[1],s=e[2],a=e[3],l=e[4],c=e[5]);const p=l===void 0?"right":l,h=c===void 0?!1:c;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(E,{}),e[6]=m):m=e[6];const x=p==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",b=p==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",g=p==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",j=p==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let r;e[7]!==s||e[8]!==x||e[9]!==b||e[10]!==g||e[11]!==j?(r=f("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",x,b,g,j,s),e[7]=s,e[8]=x,e[9]=b,e[10]=g,e[11]=j,e[12]=r):r=e[12];let d;e[13]!==h?(d=!h&&i.jsxs(C,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[i.jsx(z,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=h,e[14]=d):d=e[14];let u;return e[15]!==t||e[16]!==a||e[17]!==r||e[18]!==d?(u=i.jsxs(k,{children:[m,i.jsxs(S,{"data-slot":"sheet-content",className:r,...a,children:[t,d]})]}),e[15]=t,e[16]=a,e[17]=r,e[18]=d,e[19]=u):u=e[19],u}function P(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function T(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(N,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function _(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(v,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{T as S,O as a,D as b,_ as c,P as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as f,j as a}from"./index-
|
|
1
|
+
import{e as f,j as a}from"./index-B7vG9XMB.js";import{S as d,a as p,b as S}from"./sheet-BBAkMmdU.js";import{u as b}from"./sidebar-D5sx4cw7.js";import{i as h}from"./LayoutLeft-BgC7aOjO.js";import{T as u}from"./toolbar-B7mbC32u.js";function M(){const t=f.c(3),{toggleSidebar:e}=b();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(h,{size:16}),t[0]=o):o=t[0];let s;return t[1]!==e?(s=a.jsx(u,{onClick:e,"aria-label":"Toggle sidebar",children:o}),t[1]=e,t[2]=s):s=t[2],s}function _(t){const e=f.c(12),{renderSidebar:o}=t,{openMobile:s,setOpenMobile:i}=b();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(d,{className:"sr-only",children:"Navigation"}),e[0]=c):c=e[0];let l;e[1]!==i?(l=()=>i(!1),e[1]=i,e[2]=l):l=e[2];let r;e[3]!==o||e[4]!==l?(r=o({onClose:l}),e[3]=o,e[4]=l,e[5]=r):r=e[5];let n;e[6]!==r?(n=a.jsxs(p,{side:"left",hideCloseButton:!0,className:"w-[calc(100vw-3rem)] sm:max-w-md! p-0",children:[c,r]}),e[6]=r,e[7]=n):n=e[7];let m;return e[8]!==s||e[9]!==i||e[10]!==n?(m=a.jsx(S,{open:s,onOpenChange:i,children:n}),e[8]=s,e[9]=i,e[10]=n,e[11]=m):m=e[11],m}export{_ as M,M as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as k,a as se,j as o,B as z,bJ as X,o as Z,F as me,b as Y,a4 as we,s as fe,K as re,L as U,r as Q,bK as Se,bL as je,n as oe,f as ve,q as ke,g as he,d as Ne,$ as Oe,bM as _e,bN as le,bO as Ae,bP as Ce,S as Ee,O as Te,bQ as $e}from"./index-v-4yPWk5.js";import{A as ge}from"./avatar-Cmykl5Hl.js";import{t as ze,a as Me}from"./Users03-DYjDLJbQ.js";import{i as Ie,a as Fe,s as K,n as Le}from"./Stars02-bUApAo8o.js";import{s as Pe}from"./XClose-B1Jrn5dt.js";import{i as q}from"./CheckCircle-79umy6UR.js";import{i as ce}from"./FilterLines-0ZErBJ3i.js";import{i as J}from"./Zap-BBs40ZSU.js";import{a as De,b as Re,c as Ke,D as qe}from"./dialog-CRbRTRjQ.js";import{R as Ue}from"./required-auth-layout-eILzytQh.js";import{s as He,n as Ge,v as Be,A as We}from"./tab-id-BJeBBzov.js";import{g as Je,m as Qe,S as Ye}from"./use-mcp-client-DR6PB45n.js";import{c as Ve}from"./use-organization-settings-C_PFgE7g.js";import{u as Xe}from"./use-org-sso-Bc6Fs-WH.js";function Ze(t){const e=k.c(27),{orgName:n,orgSlug:s,orgLogo:r,domain:a}=t;let i;e[0]!==s?(i={mutationFn:async()=>{const x=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:s})}),v=await x.json();if(!x.ok||!v.success)throw new Error(v.error??"Failed to join organization");return v},onSuccess:x=>{window.location.href=`/${x.slug??s}`},onError:tt},e[0]=s,e[1]=i):i=e[1];const l=se(i),d=et;let c;e[2]!==r||e[3]!==n?(c=r?o.jsx(ge,{url:r,fallback:n.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(ze,{className:"h-6 w-6 text-primary"})}),e[2]=r,e[3]=n,e[4]=c):c=e[4];let m;e[5]!==n?(m=o.jsxs("h3",{className:"text-lg font-medium",children:["Join ",n,"?"]}),e[5]=n,e[6]=m):m=e[6];let u;e[7]!==a?(u=o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Anyone with an ",o.jsxs("strong",{children:["@",a]})," email can join this organization."]}),e[7]=a,e[8]=u):u=e[8];let p;e[9]!==m||e[10]!==u?(p=o.jsxs("div",{className:"space-y-2",children:[m,u]}),e[9]=m,e[10]=u,e[11]=p):p=e[11];let g;e[12]!==l?(g=()=>l.mutate(),e[12]=l,e[13]=g):g=e[13];const y=l.isPending?"Joining…":`Enter ${n}`;let f;e[14]!==l.isPending||e[15]!==g||e[16]!==y?(f=o.jsx(z,{onClick:g,disabled:l.isPending,children:y}),e[14]=l.isPending,e[15]=g,e[16]=y,e[17]=f):f=e[17];let h;e[18]!==l.isPending?(h=o.jsx(z,{variant:"ghost",onClick:d,disabled:l.isPending,children:"Go to home"}),e[18]=l.isPending,e[19]=h):h=e[19];let b;e[20]!==f||e[21]!==h?(b=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,h]}),e[20]=f,e[21]=h,e[22]=b):b=e[22];let S;return e[23]!==b||e[24]!==c||e[25]!==p?(S=o.jsxs(X,{children:[c,p,b]}),e[23]=b,e[24]=c,e[25]=p,e[26]=S):S=e[26],S}function et(){window.location.href="/"}function tt(t){Z.error(t instanceof Error?t.message:"Failed to join organization")}function de(t){const e=k.c(17),{orgSlug:n,orgName:s,reason:r}=t,a=nt,i=r==="not-found",l=i?Ie:me,d=i?"Organization not found":"No access";let c;e[0]!==i||e[1]!==s||e[2]!==n?(c=i?o.jsxs(o.Fragment,{children:["We couldn't find an organization called ",o.jsx("strong",{children:n}),"."]}):o.jsxs(o.Fragment,{children:["You don't have access to ",o.jsx("strong",{children:s??n}),".",o.jsx("br",{}),"Ask an admin to invite you."]}),e[0]=i,e[1]=s,e[2]=n,e[3]=c):c=e[3];const m=c;let u;e[4]!==l?(u=o.jsx("div",{className:"bg-muted p-3 rounded-full",children:o.jsx(l,{className:"h-6 w-6 text-muted-foreground"})}),e[4]=l,e[5]=u):u=e[5];let p;e[6]!==d?(p=o.jsx("h3",{className:"text-lg font-medium",children:d}),e[6]=d,e[7]=p):p=e[7];let g;e[8]!==m?(g=o.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[8]=m,e[9]=g):g=e[9];let y;e[10]!==p||e[11]!==g?(y=o.jsxs("div",{className:"space-y-2",children:[p,g]}),e[10]=p,e[11]=g,e[12]=y):y=e[12];let f;e[13]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx(z,{onClick:a,children:"Go to home"}),e[13]=f):f=e[13];let h;return e[14]!==u||e[15]!==y?(h=o.jsxs(X,{children:[u,y,f]}),e[14]=u,e[15]=y,e[16]=h):h=e[16],h}function nt(){window.location.href="/"}function st(t){const e=k.c(39),{invitationId:n,orgName:s,orgSlug:r,orgLogo:a}=t;let i;e[0]!==n?(i=async()=>{const O=await Y.organization.acceptInvitation({invitationId:n});if(O.error)throw new Error(O.error.message);return O.data},e[0]=n,e[1]=i):i=e[1];let l;e[2]!==r?(l=()=>{we(),window.location.href=`/${r}`},e[2]=r,e[3]=l):l=e[3];let d;e[4]!==i||e[5]!==l?(d={mutationFn:i,onSuccess:l,onError:it},e[4]=i,e[5]=l,e[6]=d):d=e[6];const c=se(d);let m;e[7]!==n?(m=async()=>{const O=await Y.organization.rejectInvitation({invitationId:n});if(O.error)throw new Error(O.error.message);return O.data},e[7]=n,e[8]=m):m=e[8];let u;e[9]===Symbol.for("react.memo_cache_sentinel")?(u=at,e[9]=u):u=e[9];let p;e[10]!==m?(p={mutationFn:m,onSuccess:u,onError:ot},e[10]=m,e[11]=p):p=e[11];const g=se(p),y=c.isPending||g.isPending;let f;e[12]!==a||e[13]!==s?(f=a?o.jsx(ge,{url:a,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(Fe,{className:"h-6 w-6 text-primary"})}),e[12]=a,e[13]=s,e[14]=f):f=e[14];let h;e[15]!==s?(h=o.jsxs("h3",{className:"text-lg font-medium",children:["You've been invited to ",o.jsx("strong",{children:s})]}),e[15]=s,e[16]=h):h=e[16];let b;e[17]===Symbol.for("react.memo_cache_sentinel")?(b=o.jsx("p",{className:"text-sm text-muted-foreground",children:"Accept the invitation to join this organization."}),e[17]=b):b=e[17];let S;e[18]!==h?(S=o.jsxs("div",{className:"space-y-2",children:[h,b]}),e[18]=h,e[19]=S):S=e[19];let x;e[20]!==c?(x=()=>c.mutate(),e[20]=c,e[21]=x):x=e[21];const v=c.isPending?"Accepting…":"Accept invitation";let _;e[22]!==y||e[23]!==x||e[24]!==v?(_=o.jsx(z,{onClick:x,disabled:y,children:v}),e[22]=y,e[23]=x,e[24]=v,e[25]=_):_=e[25];let N;e[26]!==g?(N=()=>g.mutate(),e[26]=g,e[27]=N):N=e[27];const w=g.isPending?"Declining…":"Decline";let A;e[28]!==y||e[29]!==N||e[30]!==w?(A=o.jsx(z,{variant:"ghost",onClick:N,disabled:y,children:w}),e[28]=y,e[29]=N,e[30]=w,e[31]=A):A=e[31];let C;e[32]!==_||e[33]!==A?(C=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,A]}),e[32]=_,e[33]=A,e[34]=C):C=e[34];let E;return e[35]!==S||e[36]!==C||e[37]!==f?(E=o.jsxs(X,{children:[f,S,C]}),e[35]=S,e[36]=C,e[37]=f,e[38]=E):E=e[38],E}function ot(t){Z.error(t instanceof Error?t.message:"Failed to decline invitation")}function at(){Z.success("Invitation declined"),window.location.href="/"}function it(t){Z.error(t instanceof Error?t.message:"Failed to accept invitation")}function rt(t){const e=k.c(7);let n;e[0]!==t?(n=re.orgAccessStatus(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==t?(s=async()=>{const a=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!a.ok)throw new Error(`org-access-status failed (${a.status})`);return await a.json()},e[2]=t,e[3]=s):s=e[3];let r;return e[4]!==n||e[5]!==s?(r={queryKey:n,queryFn:s,refetchOnWindowFocus:!1},e[4]=n,e[5]=s,e[6]=r):r=e[6],fe(r)}function lt({orgSlug:t}){const{data:e}=rt(t);return(e.status==="not-found"||e.status==="no-access")&&localStorage.getItem(U.lastOrgSlug())===t?(localStorage.removeItem(U.lastOrgSlug()),window.location.href="/",null):e.status==="not-found"?o.jsx(de,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?o.jsx(st,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?o.jsx(Ze,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="member"?(window.location.reload(),null):o.jsx(de,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function ct(t){const e=k.c(20),{release:n,onCtaClick:s,onLearnMoreClick:r}=t;let a;e[0]!==n.eyebrow?(a=n.eyebrow&&o.jsx("p",{className:"text-xs text-muted-foreground",children:n.eyebrow}),e[0]=n.eyebrow,e[1]=a):a=e[1];let i;e[2]!==n.title?(i=o.jsx("h3",{className:"text-base font-semibold text-foreground",children:n.title}),e[2]=n.title,e[3]=i):i=e[3];let l;e[4]!==a||e[5]!==i?(l=o.jsxs("div",{children:[a,i]}),e[4]=a,e[5]=i,e[6]=l):l=e[6];let d;e[7]!==n.bullets?(d=n.bullets.map(dt),e[7]=n.bullets,e[8]=d):d=e[8];let c;e[9]!==d?(c=o.jsx("ul",{className:"flex flex-col gap-3",children:d}),e[9]=d,e[10]=c):c=e[10];let m;e[11]!==s||e[12]!==r||e[13]!==n.cta||e[14]!==n.learnMoreHref?(m=(n.cta||n.learnMoreHref)&&o.jsxs("div",{className:"flex items-center justify-between pt-1",children:[n.learnMoreHref?o.jsx("a",{href:n.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:r,className:"text-xs text-muted-foreground hover:text-foreground underline-offset-2 hover:underline",children:"Learn More"}):o.jsx("span",{}),n.cta&&o.jsx(z,{asChild:!0,size:"sm",onClick:s,children:o.jsx("a",{href:n.cta.href,children:n.cta.label})})]}),e[11]=s,e[12]=r,e[13]=n.cta,e[14]=n.learnMoreHref,e[15]=m):m=e[15];let u;return e[16]!==l||e[17]!==c||e[18]!==m?(u=o.jsxs("div",{className:"flex flex-col gap-3",children:[l,c,m]}),e[16]=l,e[17]=c,e[18]=m,e[19]=u):u=e[19],u}function dt(t,e){return o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx(t.icon,{size:20,className:"text-muted-foreground mt-0.5 shrink-0"}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),o.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const pe=[{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:q,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:K,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:J,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:K,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:q,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:J,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:K,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:q,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:J,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:K,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:ce,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:q,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:Me,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:J,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:q,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:K,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:ce,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:K,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:Le,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],V="studio.release-feed.v1",ae=new Set;let I="",F={},ie=!1;function ut(){if(ie)return I||"{}";try{return localStorage.getItem(V)??"{}"}catch{return I||"{}"}}function ye(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function ue(){const t=ut();return t!==I&&(I=t,F=ye(t)),F}function mt(t){ae.add(t);const e=n=>{if(!(n.key!==V&&n.key!==null)){try{const s=localStorage.getItem(V)??"{}",a={...ye(s),...F};F=a,I=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{ae.delete(t),window.removeEventListener("storage",e)}}function ft(t){F=t,I=JSON.stringify(t);try{localStorage.setItem(V,I),ie=!1}catch{ie=!0}ae.forEach(e=>e())}function ht(){const t=k.c(7),e=Q.useSyncExternalStore(mt,ue,ue);let n;t[0]!==e?(n=d=>!!e[d],t[0]=e,t[1]=n):n=t[1];const s=n,r=gt;let a;t[2]!==e?(a=pe.reduce((d,c)=>e[c.id]?d:d+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let l;return t[4]!==s||t[5]!==i?(l={isSeen:s,markSeen:r,unseenCount:i},t[4]=s,t[5]=i,t[6]=l):l=t[6],l}function gt(t){F[t]||ft({...F,[t]:{seenAt:new Date().toISOString()}})}const pt=720*60*60*1e3;function yt(t){const[e,n,s]=t.split("-").map(Number);return!e||!n||!s?new Date(t).getTime():new Date(e,n-1,s).getTime()}function bt(t){const e=pe[0];if(!e)return null;const n=yt(e.date),s=t-n;return s<0||s>pt?null:e}function xt(){const t=k.c(21),{isSeen:e,markSeen:n}=ht();let s,r,a;if(t[0]!==e){a=Symbol.for("react.early_return_sentinel");e:{if(s=bt(Date.now()),!s){a=null;break e}r=e(s.id)}t[0]=e,t[1]=s,t[2]=r,t[3]=a}else s=t[1],r=t[2],a=t[3];if(a!==Symbol.for("react.early_return_sentinel"))return a;if(r)return null;let i;t[4]!==s.id||t[5]!==n?(i=()=>n(s.id),t[4]=s.id,t[5]=n,t[6]=i):i=t[6];let l;t[7]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(Pe,{size:14}),t[7]=l):l=t[7];let d;t[8]!==i?(d=o.jsx(z,{size:"icon",variant:"ghost","aria-label":"Dismiss release announcement",className:"absolute right-2 top-2 size-7 text-muted-foreground",onClick:i,children:l}),t[8]=i,t[9]=d):d=t[9];let c,m;t[10]!==s.id||t[11]!==n?(c=()=>n(s.id),m=()=>n(s.id),t[10]=s.id,t[11]=n,t[12]=c,t[13]=m):(c=t[12],m=t[13]);let u;t[14]!==s||t[15]!==c||t[16]!==m?(u=o.jsx(ct,{release:s,onCtaClick:c,onLearnMoreClick:m}),t[14]=s,t[15]=c,t[16]=m,t[17]=u):u=t[17];let p;return t[18]!==d||t[19]!==u?(p=o.jsxs("div",{role:"dialog","aria-label":"Release announcement",className:"fixed bottom-6 right-6 z-50 w-[min(360px,calc(100vw-3rem))] rounded-lg border border-border bg-background p-4 shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[d,u]}),t[18]=d,t[19]=u,t[20]=p):p=t[20],p}const be=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),M=be?"⌘":"Ctrl",$={keyboardShortcuts:{keys:[M,"K"],description:"Keyboard shortcuts"},focusChatInput:{keys:[M,"L"],description:"Focus chat input"},saveAndFormat:{keys:[M,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[M,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[M,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",M,"S"],description:"New task"},toggleDaemon:{keys:[M,"D"],description:"Toggle daemon logs"}},wt=[{label:"General",shortcuts:[$.keyboardShortcuts,$.newTask,$.toggleDaemon]},{label:"Editor",shortcuts:[$.saveAndFormat]},{label:"Chat",shortcuts:[$.focusChatInput,$.togglePlanMode,$.sendMessage,$.newLine]},{label:"Questions",shortcuts:[$.selectOption]},{label:"Monitoring",shortcuts:[$.applyFilter]}];function St(t){return be?t.metaKey:t.ctrlKey}function jt(t){const e=k.c(5),{open:n,onOpenChange:s}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(Re,{children:o.jsx(Ke,{children:"Keyboard Shortcuts"})}),e[0]=r):r=e[0];let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsxs(De,{className:"sm:max-w-md",children:[r,o.jsx("div",{className:"flex flex-col gap-4",children:wt.map(vt)})]}),e[1]=a):a=e[1];let i;return e[2]!==s||e[3]!==n?(i=o.jsx(qe,{open:n,onOpenChange:s,children:a}),e[2]=s,e[3]=n,e[4]=i):i=e[4],i}function vt(t){return o.jsxs("div",{children:[o.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),o.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(kt)})]},t.label)}function kt(t){return o.jsxs("div",{className:"flex items-center justify-between py-1",children:[o.jsx("span",{className:"text-sm",children:t.description}),o.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Nt)})]},t.description)}function Nt(t){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}function Ot({activeOrg:t}){return t&&(Se(t.id,{name:t.name??void 0,slug:t.slug??void 0}),je()),null}function _t(t,e,n){if(!n)return null;const s=He(t,e);return s?s.threads.get().find(a=>a.id===n)?.branch??null:null}function xe(t){return{queryKey:re.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function Yt(t){const e=k.c(10);let n;e[0]!==t?(n=xe(t),e[0]=t,e[1]=n):n=e[1];const s=oe(n);let r;e[2]!==s.data?.prompts?(r=s.data?.prompts??[],e[2]=s.data?.prompts,e[3]=r):r=e[3];let a;e[4]!==s.data?.tiles?(a=s.data?.tiles??[],e[4]=s.data?.tiles,e[5]=a):a=e[5];let i;return e[6]!==s.isLoading||e[7]!==r||e[8]!==a?(i={isLoading:s.isLoading,prompts:r,tiles:a},e[6]=s.isLoading,e[7]=r,e[8]=a,e[9]=i):i=e[9],i}function At(t){const e=k.c(17),{orgSlug:n,orgName:s,domain:r}=t;let a;e[0]!==n?(a=()=>{window.location.href=`/api/${encodeURIComponent(n)}/sso/authorize`},e[0]=n,e[1]=a):a=e[1];const i=a,l=Ct;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(me,{className:"h-6 w-6 text-primary"})}),e[2]=d):d=e[2];let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("h3",{className:"text-lg font-medium",children:"SSO Authentication Required"}),e[3]=c):c=e[3];let m;e[4]!==r||e[5]!==s?(m=s?o.jsxs(o.Fragment,{children:[o.jsx("strong",{children:s})," requires SSO authentication",r?` via ${r}`:"","."]}):"This organization requires SSO authentication to access.",e[4]=r,e[5]=s,e[6]=m):m=e[6];let u;e[7]!==m?(u=o.jsxs("div",{className:"space-y-2",children:[c,o.jsx("p",{className:"text-sm text-muted-foreground",children:m})]}),e[7]=m,e[8]=u):u=e[8];let p;e[9]!==i?(p=o.jsx(z,{onClick:i,children:"Sign in with SSO"}),e[9]=i,e[10]=p):p=e[10];let g;e[11]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx(z,{variant:"ghost",onClick:l,children:"Go back"}),e[11]=g):g=e[11];let y;e[12]!==p?(y=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[p,g]}),e[12]=p,e[13]=y):y=e[13];let f;return e[14]!==u||e[15]!==y?(f=o.jsxs(X,{children:[d,u,y]}),e[14]=u,e[15]=y,e[16]=f):f=e[16],f}function Ct(){window.location.href="/"}function Et(t){const e=k.c(8),{org:n,children:s}=t,a=Ve(n.id,n.slug)?.enabled_plugins??null;let i;e[0]!==n.id||e[1]!==n.name||e[2]!==a?(i={id:n.id,organizationId:n.id,slug:"_org",name:n.name,enabledPlugins:a,ui:null},e[0]=n.id,e[1]=n.name,e[2]=a,e[3]=i):i=e[3];const l=i;let d;return e[4]!==s||e[5]!==n||e[6]!==l?(d=o.jsx($e,{org:n,project:l,children:s}),e[4]=s,e[5]=n,e[6]=l,e[7]=d):d=e[7],d}function Tt(){const t=ve(),e=Ge(),{org:n,locator:s}=ke(),r=he({strict:!1}),a=Ne({strict:!1}),i=r.org??"",l=r.taskId??"",d=(f,h,b=!0)=>t({to:"/$org/$taskId",params:{org:i,taskId:f},search:h,replace:b}),c=(f,h=!0)=>d(l,f,h),m=f=>c(h=>({...h,chat:f?1:0})),u=(f,h,b)=>d(f,S=>{const x={chat:1};h?x.virtualmcpid=h:S.virtualmcpid&&(x.virtualmcpid=S.virtualmcpid);const v=S.main;return v&&typeof v=="string"&&!Be(v)&&(x.main=v),b?.autosend&&(x.autosend=We),x},!1);return{setChatOpen:m,setTaskId:u,createNewTask:async f=>{const h=crypto.randomUUID(),b=f??a.virtualmcpid??Je(n.id).id,x=b===a.virtualmcpid?_t(n.slug,s,l):null;try{await e?.create({id:h,virtual_mcp_id:b,...x?{branch:x}:{}})}catch{}u(h,b)},openTab:f=>d(l||crypto.randomUUID(),h=>({...h,main:f})),toggleMain:()=>c(f=>{if(f.main!==void 0&&f.main!=="0")return{...f,main:"0"};const b={...f};return delete b.main,b})}}function $t(){const t=k.c(51);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const s=Oe(e)?.params.org;let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},t[1]=r):r=t[1];const{taskId:a}=he(r),[i,l]=Q.useState(!1),d=s??"";let c;t[2]!==d?(c=xe(d),t[2]=d,t[3]=c):c=t[3];const m=!!s&&!a;let u;t[4]!==c||t[5]!==m?(u={...c,enabled:m},t[4]=c,t[5]=m,t[6]=u):u=t[6],oe(u);const{data:p}=Y.useSession(),g=p?.user?.id;let y;t[7]!==s||t[8]!==g?(y=s&&g?_e(g,s):null,t[7]=s,t[8]=g,t[9]=y):y=t[9];const f=y;let h,b;t[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{const j=T=>{St(T)&&T.code==="KeyK"&&(T.preventDefault(),l(!0))};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},b=[],t[10]=h,t[11]=b):(h=t[10],b=t[11]),Q.useEffect(h,b);let S;t[12]!==s?(S=re.activeOrganization(s),t[12]=s,t[13]=S):S=t[13];let x;t[14]!==s||t[15]!==g?(x=async()=>{if(!s)return null;performance.mark("mesh:active-org-fetch:start");const{data:j}=await Y.organization.getFullOrganization({query:{organizationSlug:s}}).finally(zt),T=le(j);return j&&!T&&localStorage.setItem(U.lastOrgSlug(),s),g&&j&&Ce(g,s,j),j},t[14]=s,t[15]=g,t[16]=x):x=t[16];const v=f?f.data:void 0,_=f?.updatedAt;let N;t[17]!==x||t[18]!==v||t[19]!==_||t[20]!==S?(N={queryKey:S,queryFn:x,initialData:v,initialDataUpdatedAt:_,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=x,t[18]=v,t[19]=_,t[20]=S,t[21]=N):N=t[21];const{data:w}=fe(N),A=w?.id,C=w?.slug,{data:E}=Xe(A,C),O=A??"",ee=C??"";let L;t[22]!==O||t[23]!==ee?(L=Qe({connectionId:Ye,orgId:O,orgSlug:ee}),t[22]=O,t[23]=ee,t[24]=L):L=t[24];const te=!!A&&!!C;let H;if(t[25]!==L||t[26]!==te?(H={...L,enabled:te},t[25]=L,t[26]=te,t[27]=H):H=t[27],oe(H),!w){let j;t[28]===Symbol.for("react.memo_cache_sentinel")?(j=o.jsx(Ee,{}),t[28]=j):j=t[28];let T;return t[29]!==s?(T=o.jsx(Q.Suspense,{fallback:j,children:o.jsx(lt,{orgSlug:s})}),t[29]=s,t[30]=T):T=t[30],T}if(le(w)){localStorage.getItem(U.lastOrgSlug())===s&&localStorage.removeItem(U.lastOrgSlug());let j;return t[31]!==w.name?(j=o.jsx(Ae,{orgName:w.name}),t[31]=w.name,t[32]=j):j=t[32],j}if(E?.ssoRequired&&!E.authenticated){let j;return t[33]!==w.id||t[34]!==w.name||t[35]!==w.slug||t[36]!==E.domain?(j=o.jsx(At,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:E.domain}),t[33]=w.id,t[34]=w.name,t[35]=w.slug,t[36]=E.domain,t[37]=j):j=t[37],j}const ne=w.logo??null;let P;t[38]!==w||t[39]!==ne?(P={...w,logo:ne},t[38]=w,t[39]=ne,t[40]=P):P=t[40];let D;t[41]!==w?(D=o.jsx(Ot,{activeOrg:w}),t[41]=w,t[42]=D):D=t[42];let G,B;t[43]===Symbol.for("react.memo_cache_sentinel")?(G=o.jsx(Te,{}),B=o.jsx(xt,{}),t[43]=G,t[44]=B):(G=t[43],B=t[44]);let R;t[45]!==i?(R=o.jsx(jt,{open:i,onOpenChange:l}),t[45]=i,t[46]=R):R=t[46];let W;return t[47]!==P||t[48]!==D||t[49]!==R?(W=o.jsxs(Et,{org:P,children:[D,G,B,R]}),t[47]=P,t[48]=D,t[49]=R,t[50]=W):W=t[50],W}function zt(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Mt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(Ue,{children:o.jsx($t,{})}),t[0]=e):e=t[0],e}const Vt=Object.freeze(Object.defineProperty({__proto__:null,default:Mt,usePanelActions:Tt},Symbol.toStringTag,{value:"Module"}));export{$ as K,pe as R,ht as a,ct as b,Yt as c,xe as h,St as i,_t as r,Vt as s,Tt as u};
|
|
1
|
+
import{e as k,a as se,j as o,B as z,bJ as X,o as Z,F as me,b as Y,a4 as we,s as fe,K as re,L as U,r as Q,bK as Se,bL as je,n as oe,f as ve,q as ke,g as he,d as Ne,$ as Oe,bM as _e,bN as le,bO as Ae,bP as Ce,S as Ee,O as Te,bQ as $e}from"./index-B7vG9XMB.js";import{A as ge}from"./avatar-CB3_y_zI.js";import{t as ze,a as Me}from"./Users03-BwOA6RiF.js";import{i as Ie,a as Fe,s as K,n as Le}from"./Stars02-YwHPi-7I.js";import{s as Pe}from"./XClose-CodFwf_E.js";import{i as q}from"./CheckCircle-CFdIOhwM.js";import{i as ce}from"./FilterLines-DXSEbwW6.js";import{i as J}from"./Zap-Gvzp-SH3.js";import{a as De,b as Re,c as Ke,D as qe}from"./dialog-CxQuymkd.js";import{R as Ue}from"./required-auth-layout-D9SRhJSc.js";import{s as He,n as Ge,v as Be,A as We}from"./tab-id-Bmckb_ZN.js";import{g as Je,m as Qe,S as Ye}from"./use-mcp-client-G3uFjg07.js";import{c as Ve}from"./use-organization-settings-nE3QaAmY.js";import{u as Xe}from"./use-org-sso-bBdDyUxO.js";function Ze(t){const e=k.c(27),{orgName:n,orgSlug:s,orgLogo:r,domain:a}=t;let i;e[0]!==s?(i={mutationFn:async()=>{const x=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:s})}),v=await x.json();if(!x.ok||!v.success)throw new Error(v.error??"Failed to join organization");return v},onSuccess:x=>{window.location.href=`/${x.slug??s}`},onError:tt},e[0]=s,e[1]=i):i=e[1];const l=se(i),d=et;let c;e[2]!==r||e[3]!==n?(c=r?o.jsx(ge,{url:r,fallback:n.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(ze,{className:"h-6 w-6 text-primary"})}),e[2]=r,e[3]=n,e[4]=c):c=e[4];let m;e[5]!==n?(m=o.jsxs("h3",{className:"text-lg font-medium",children:["Join ",n,"?"]}),e[5]=n,e[6]=m):m=e[6];let u;e[7]!==a?(u=o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Anyone with an ",o.jsxs("strong",{children:["@",a]})," email can join this organization."]}),e[7]=a,e[8]=u):u=e[8];let p;e[9]!==m||e[10]!==u?(p=o.jsxs("div",{className:"space-y-2",children:[m,u]}),e[9]=m,e[10]=u,e[11]=p):p=e[11];let g;e[12]!==l?(g=()=>l.mutate(),e[12]=l,e[13]=g):g=e[13];const y=l.isPending?"Joining…":`Enter ${n}`;let f;e[14]!==l.isPending||e[15]!==g||e[16]!==y?(f=o.jsx(z,{onClick:g,disabled:l.isPending,children:y}),e[14]=l.isPending,e[15]=g,e[16]=y,e[17]=f):f=e[17];let h;e[18]!==l.isPending?(h=o.jsx(z,{variant:"ghost",onClick:d,disabled:l.isPending,children:"Go to home"}),e[18]=l.isPending,e[19]=h):h=e[19];let b;e[20]!==f||e[21]!==h?(b=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,h]}),e[20]=f,e[21]=h,e[22]=b):b=e[22];let S;return e[23]!==b||e[24]!==c||e[25]!==p?(S=o.jsxs(X,{children:[c,p,b]}),e[23]=b,e[24]=c,e[25]=p,e[26]=S):S=e[26],S}function et(){window.location.href="/"}function tt(t){Z.error(t instanceof Error?t.message:"Failed to join organization")}function de(t){const e=k.c(17),{orgSlug:n,orgName:s,reason:r}=t,a=nt,i=r==="not-found",l=i?Ie:me,d=i?"Organization not found":"No access";let c;e[0]!==i||e[1]!==s||e[2]!==n?(c=i?o.jsxs(o.Fragment,{children:["We couldn't find an organization called ",o.jsx("strong",{children:n}),"."]}):o.jsxs(o.Fragment,{children:["You don't have access to ",o.jsx("strong",{children:s??n}),".",o.jsx("br",{}),"Ask an admin to invite you."]}),e[0]=i,e[1]=s,e[2]=n,e[3]=c):c=e[3];const m=c;let u;e[4]!==l?(u=o.jsx("div",{className:"bg-muted p-3 rounded-full",children:o.jsx(l,{className:"h-6 w-6 text-muted-foreground"})}),e[4]=l,e[5]=u):u=e[5];let p;e[6]!==d?(p=o.jsx("h3",{className:"text-lg font-medium",children:d}),e[6]=d,e[7]=p):p=e[7];let g;e[8]!==m?(g=o.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[8]=m,e[9]=g):g=e[9];let y;e[10]!==p||e[11]!==g?(y=o.jsxs("div",{className:"space-y-2",children:[p,g]}),e[10]=p,e[11]=g,e[12]=y):y=e[12];let f;e[13]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx(z,{onClick:a,children:"Go to home"}),e[13]=f):f=e[13];let h;return e[14]!==u||e[15]!==y?(h=o.jsxs(X,{children:[u,y,f]}),e[14]=u,e[15]=y,e[16]=h):h=e[16],h}function nt(){window.location.href="/"}function st(t){const e=k.c(39),{invitationId:n,orgName:s,orgSlug:r,orgLogo:a}=t;let i;e[0]!==n?(i=async()=>{const O=await Y.organization.acceptInvitation({invitationId:n});if(O.error)throw new Error(O.error.message);return O.data},e[0]=n,e[1]=i):i=e[1];let l;e[2]!==r?(l=()=>{we(),window.location.href=`/${r}`},e[2]=r,e[3]=l):l=e[3];let d;e[4]!==i||e[5]!==l?(d={mutationFn:i,onSuccess:l,onError:it},e[4]=i,e[5]=l,e[6]=d):d=e[6];const c=se(d);let m;e[7]!==n?(m=async()=>{const O=await Y.organization.rejectInvitation({invitationId:n});if(O.error)throw new Error(O.error.message);return O.data},e[7]=n,e[8]=m):m=e[8];let u;e[9]===Symbol.for("react.memo_cache_sentinel")?(u=at,e[9]=u):u=e[9];let p;e[10]!==m?(p={mutationFn:m,onSuccess:u,onError:ot},e[10]=m,e[11]=p):p=e[11];const g=se(p),y=c.isPending||g.isPending;let f;e[12]!==a||e[13]!==s?(f=a?o.jsx(ge,{url:a,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(Fe,{className:"h-6 w-6 text-primary"})}),e[12]=a,e[13]=s,e[14]=f):f=e[14];let h;e[15]!==s?(h=o.jsxs("h3",{className:"text-lg font-medium",children:["You've been invited to ",o.jsx("strong",{children:s})]}),e[15]=s,e[16]=h):h=e[16];let b;e[17]===Symbol.for("react.memo_cache_sentinel")?(b=o.jsx("p",{className:"text-sm text-muted-foreground",children:"Accept the invitation to join this organization."}),e[17]=b):b=e[17];let S;e[18]!==h?(S=o.jsxs("div",{className:"space-y-2",children:[h,b]}),e[18]=h,e[19]=S):S=e[19];let x;e[20]!==c?(x=()=>c.mutate(),e[20]=c,e[21]=x):x=e[21];const v=c.isPending?"Accepting…":"Accept invitation";let _;e[22]!==y||e[23]!==x||e[24]!==v?(_=o.jsx(z,{onClick:x,disabled:y,children:v}),e[22]=y,e[23]=x,e[24]=v,e[25]=_):_=e[25];let N;e[26]!==g?(N=()=>g.mutate(),e[26]=g,e[27]=N):N=e[27];const w=g.isPending?"Declining…":"Decline";let A;e[28]!==y||e[29]!==N||e[30]!==w?(A=o.jsx(z,{variant:"ghost",onClick:N,disabled:y,children:w}),e[28]=y,e[29]=N,e[30]=w,e[31]=A):A=e[31];let C;e[32]!==_||e[33]!==A?(C=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,A]}),e[32]=_,e[33]=A,e[34]=C):C=e[34];let E;return e[35]!==S||e[36]!==C||e[37]!==f?(E=o.jsxs(X,{children:[f,S,C]}),e[35]=S,e[36]=C,e[37]=f,e[38]=E):E=e[38],E}function ot(t){Z.error(t instanceof Error?t.message:"Failed to decline invitation")}function at(){Z.success("Invitation declined"),window.location.href="/"}function it(t){Z.error(t instanceof Error?t.message:"Failed to accept invitation")}function rt(t){const e=k.c(7);let n;e[0]!==t?(n=re.orgAccessStatus(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==t?(s=async()=>{const a=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!a.ok)throw new Error(`org-access-status failed (${a.status})`);return await a.json()},e[2]=t,e[3]=s):s=e[3];let r;return e[4]!==n||e[5]!==s?(r={queryKey:n,queryFn:s,refetchOnWindowFocus:!1},e[4]=n,e[5]=s,e[6]=r):r=e[6],fe(r)}function lt({orgSlug:t}){const{data:e}=rt(t);return(e.status==="not-found"||e.status==="no-access")&&localStorage.getItem(U.lastOrgSlug())===t?(localStorage.removeItem(U.lastOrgSlug()),window.location.href="/",null):e.status==="not-found"?o.jsx(de,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?o.jsx(st,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?o.jsx(Ze,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="member"?(window.location.reload(),null):o.jsx(de,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function ct(t){const e=k.c(20),{release:n,onCtaClick:s,onLearnMoreClick:r}=t;let a;e[0]!==n.eyebrow?(a=n.eyebrow&&o.jsx("p",{className:"text-xs text-muted-foreground",children:n.eyebrow}),e[0]=n.eyebrow,e[1]=a):a=e[1];let i;e[2]!==n.title?(i=o.jsx("h3",{className:"text-base font-semibold text-foreground",children:n.title}),e[2]=n.title,e[3]=i):i=e[3];let l;e[4]!==a||e[5]!==i?(l=o.jsxs("div",{children:[a,i]}),e[4]=a,e[5]=i,e[6]=l):l=e[6];let d;e[7]!==n.bullets?(d=n.bullets.map(dt),e[7]=n.bullets,e[8]=d):d=e[8];let c;e[9]!==d?(c=o.jsx("ul",{className:"flex flex-col gap-3",children:d}),e[9]=d,e[10]=c):c=e[10];let m;e[11]!==s||e[12]!==r||e[13]!==n.cta||e[14]!==n.learnMoreHref?(m=(n.cta||n.learnMoreHref)&&o.jsxs("div",{className:"flex items-center justify-between pt-1",children:[n.learnMoreHref?o.jsx("a",{href:n.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:r,className:"text-xs text-muted-foreground hover:text-foreground underline-offset-2 hover:underline",children:"Learn More"}):o.jsx("span",{}),n.cta&&o.jsx(z,{asChild:!0,size:"sm",onClick:s,children:o.jsx("a",{href:n.cta.href,children:n.cta.label})})]}),e[11]=s,e[12]=r,e[13]=n.cta,e[14]=n.learnMoreHref,e[15]=m):m=e[15];let u;return e[16]!==l||e[17]!==c||e[18]!==m?(u=o.jsxs("div",{className:"flex flex-col gap-3",children:[l,c,m]}),e[16]=l,e[17]=c,e[18]=m,e[19]=u):u=e[19],u}function dt(t,e){return o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx(t.icon,{size:20,className:"text-muted-foreground mt-0.5 shrink-0"}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),o.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const pe=[{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:q,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:K,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:J,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:K,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:q,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:J,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:K,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:q,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:J,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:K,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:ce,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:q,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:Me,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:J,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:q,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:K,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:ce,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:K,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:Le,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],V="studio.release-feed.v1",ae=new Set;let I="",F={},ie=!1;function ut(){if(ie)return I||"{}";try{return localStorage.getItem(V)??"{}"}catch{return I||"{}"}}function ye(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function ue(){const t=ut();return t!==I&&(I=t,F=ye(t)),F}function mt(t){ae.add(t);const e=n=>{if(!(n.key!==V&&n.key!==null)){try{const s=localStorage.getItem(V)??"{}",a={...ye(s),...F};F=a,I=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{ae.delete(t),window.removeEventListener("storage",e)}}function ft(t){F=t,I=JSON.stringify(t);try{localStorage.setItem(V,I),ie=!1}catch{ie=!0}ae.forEach(e=>e())}function ht(){const t=k.c(7),e=Q.useSyncExternalStore(mt,ue,ue);let n;t[0]!==e?(n=d=>!!e[d],t[0]=e,t[1]=n):n=t[1];const s=n,r=gt;let a;t[2]!==e?(a=pe.reduce((d,c)=>e[c.id]?d:d+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let l;return t[4]!==s||t[5]!==i?(l={isSeen:s,markSeen:r,unseenCount:i},t[4]=s,t[5]=i,t[6]=l):l=t[6],l}function gt(t){F[t]||ft({...F,[t]:{seenAt:new Date().toISOString()}})}const pt=720*60*60*1e3;function yt(t){const[e,n,s]=t.split("-").map(Number);return!e||!n||!s?new Date(t).getTime():new Date(e,n-1,s).getTime()}function bt(t){const e=pe[0];if(!e)return null;const n=yt(e.date),s=t-n;return s<0||s>pt?null:e}function xt(){const t=k.c(21),{isSeen:e,markSeen:n}=ht();let s,r,a;if(t[0]!==e){a=Symbol.for("react.early_return_sentinel");e:{if(s=bt(Date.now()),!s){a=null;break e}r=e(s.id)}t[0]=e,t[1]=s,t[2]=r,t[3]=a}else s=t[1],r=t[2],a=t[3];if(a!==Symbol.for("react.early_return_sentinel"))return a;if(r)return null;let i;t[4]!==s.id||t[5]!==n?(i=()=>n(s.id),t[4]=s.id,t[5]=n,t[6]=i):i=t[6];let l;t[7]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(Pe,{size:14}),t[7]=l):l=t[7];let d;t[8]!==i?(d=o.jsx(z,{size:"icon",variant:"ghost","aria-label":"Dismiss release announcement",className:"absolute right-2 top-2 size-7 text-muted-foreground",onClick:i,children:l}),t[8]=i,t[9]=d):d=t[9];let c,m;t[10]!==s.id||t[11]!==n?(c=()=>n(s.id),m=()=>n(s.id),t[10]=s.id,t[11]=n,t[12]=c,t[13]=m):(c=t[12],m=t[13]);let u;t[14]!==s||t[15]!==c||t[16]!==m?(u=o.jsx(ct,{release:s,onCtaClick:c,onLearnMoreClick:m}),t[14]=s,t[15]=c,t[16]=m,t[17]=u):u=t[17];let p;return t[18]!==d||t[19]!==u?(p=o.jsxs("div",{role:"dialog","aria-label":"Release announcement",className:"fixed bottom-6 right-6 z-50 w-[min(360px,calc(100vw-3rem))] rounded-lg border border-border bg-background p-4 shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[d,u]}),t[18]=d,t[19]=u,t[20]=p):p=t[20],p}const be=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),M=be?"⌘":"Ctrl",$={keyboardShortcuts:{keys:[M,"K"],description:"Keyboard shortcuts"},focusChatInput:{keys:[M,"L"],description:"Focus chat input"},saveAndFormat:{keys:[M,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[M,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[M,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",M,"S"],description:"New task"},toggleDaemon:{keys:[M,"D"],description:"Toggle daemon logs"}},wt=[{label:"General",shortcuts:[$.keyboardShortcuts,$.newTask,$.toggleDaemon]},{label:"Editor",shortcuts:[$.saveAndFormat]},{label:"Chat",shortcuts:[$.focusChatInput,$.togglePlanMode,$.sendMessage,$.newLine]},{label:"Questions",shortcuts:[$.selectOption]},{label:"Monitoring",shortcuts:[$.applyFilter]}];function St(t){return be?t.metaKey:t.ctrlKey}function jt(t){const e=k.c(5),{open:n,onOpenChange:s}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(Re,{children:o.jsx(Ke,{children:"Keyboard Shortcuts"})}),e[0]=r):r=e[0];let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsxs(De,{className:"sm:max-w-md",children:[r,o.jsx("div",{className:"flex flex-col gap-4",children:wt.map(vt)})]}),e[1]=a):a=e[1];let i;return e[2]!==s||e[3]!==n?(i=o.jsx(qe,{open:n,onOpenChange:s,children:a}),e[2]=s,e[3]=n,e[4]=i):i=e[4],i}function vt(t){return o.jsxs("div",{children:[o.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),o.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(kt)})]},t.label)}function kt(t){return o.jsxs("div",{className:"flex items-center justify-between py-1",children:[o.jsx("span",{className:"text-sm",children:t.description}),o.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Nt)})]},t.description)}function Nt(t){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}function Ot({activeOrg:t}){return t&&(Se(t.id,{name:t.name??void 0,slug:t.slug??void 0}),je()),null}function _t(t,e,n){if(!n)return null;const s=He(t,e);return s?s.threads.get().find(a=>a.id===n)?.branch??null:null}function xe(t){return{queryKey:re.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function Yt(t){const e=k.c(10);let n;e[0]!==t?(n=xe(t),e[0]=t,e[1]=n):n=e[1];const s=oe(n);let r;e[2]!==s.data?.prompts?(r=s.data?.prompts??[],e[2]=s.data?.prompts,e[3]=r):r=e[3];let a;e[4]!==s.data?.tiles?(a=s.data?.tiles??[],e[4]=s.data?.tiles,e[5]=a):a=e[5];let i;return e[6]!==s.isLoading||e[7]!==r||e[8]!==a?(i={isLoading:s.isLoading,prompts:r,tiles:a},e[6]=s.isLoading,e[7]=r,e[8]=a,e[9]=i):i=e[9],i}function At(t){const e=k.c(17),{orgSlug:n,orgName:s,domain:r}=t;let a;e[0]!==n?(a=()=>{window.location.href=`/api/${encodeURIComponent(n)}/sso/authorize`},e[0]=n,e[1]=a):a=e[1];const i=a,l=Ct;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(me,{className:"h-6 w-6 text-primary"})}),e[2]=d):d=e[2];let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("h3",{className:"text-lg font-medium",children:"SSO Authentication Required"}),e[3]=c):c=e[3];let m;e[4]!==r||e[5]!==s?(m=s?o.jsxs(o.Fragment,{children:[o.jsx("strong",{children:s})," requires SSO authentication",r?` via ${r}`:"","."]}):"This organization requires SSO authentication to access.",e[4]=r,e[5]=s,e[6]=m):m=e[6];let u;e[7]!==m?(u=o.jsxs("div",{className:"space-y-2",children:[c,o.jsx("p",{className:"text-sm text-muted-foreground",children:m})]}),e[7]=m,e[8]=u):u=e[8];let p;e[9]!==i?(p=o.jsx(z,{onClick:i,children:"Sign in with SSO"}),e[9]=i,e[10]=p):p=e[10];let g;e[11]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx(z,{variant:"ghost",onClick:l,children:"Go back"}),e[11]=g):g=e[11];let y;e[12]!==p?(y=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[p,g]}),e[12]=p,e[13]=y):y=e[13];let f;return e[14]!==u||e[15]!==y?(f=o.jsxs(X,{children:[d,u,y]}),e[14]=u,e[15]=y,e[16]=f):f=e[16],f}function Ct(){window.location.href="/"}function Et(t){const e=k.c(8),{org:n,children:s}=t,a=Ve(n.id,n.slug)?.enabled_plugins??null;let i;e[0]!==n.id||e[1]!==n.name||e[2]!==a?(i={id:n.id,organizationId:n.id,slug:"_org",name:n.name,enabledPlugins:a,ui:null},e[0]=n.id,e[1]=n.name,e[2]=a,e[3]=i):i=e[3];const l=i;let d;return e[4]!==s||e[5]!==n||e[6]!==l?(d=o.jsx($e,{org:n,project:l,children:s}),e[4]=s,e[5]=n,e[6]=l,e[7]=d):d=e[7],d}function Tt(){const t=ve(),e=Ge(),{org:n,locator:s}=ke(),r=he({strict:!1}),a=Ne({strict:!1}),i=r.org??"",l=r.taskId??"",d=(f,h,b=!0)=>t({to:"/$org/$taskId",params:{org:i,taskId:f},search:h,replace:b}),c=(f,h=!0)=>d(l,f,h),m=f=>c(h=>({...h,chat:f?1:0})),u=(f,h,b)=>d(f,S=>{const x={chat:1};h?x.virtualmcpid=h:S.virtualmcpid&&(x.virtualmcpid=S.virtualmcpid);const v=S.main;return v&&typeof v=="string"&&!Be(v)&&(x.main=v),b?.autosend&&(x.autosend=We),x},!1);return{setChatOpen:m,setTaskId:u,createNewTask:async f=>{const h=crypto.randomUUID(),b=f??a.virtualmcpid??Je(n.id).id,x=b===a.virtualmcpid?_t(n.slug,s,l):null;try{await e?.create({id:h,virtual_mcp_id:b,...x?{branch:x}:{}})}catch{}u(h,b)},openTab:f=>d(l||crypto.randomUUID(),h=>({...h,main:f})),toggleMain:()=>c(f=>{if(f.main!==void 0&&f.main!=="0")return{...f,main:"0"};const b={...f};return delete b.main,b})}}function $t(){const t=k.c(51);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const s=Oe(e)?.params.org;let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},t[1]=r):r=t[1];const{taskId:a}=he(r),[i,l]=Q.useState(!1),d=s??"";let c;t[2]!==d?(c=xe(d),t[2]=d,t[3]=c):c=t[3];const m=!!s&&!a;let u;t[4]!==c||t[5]!==m?(u={...c,enabled:m},t[4]=c,t[5]=m,t[6]=u):u=t[6],oe(u);const{data:p}=Y.useSession(),g=p?.user?.id;let y;t[7]!==s||t[8]!==g?(y=s&&g?_e(g,s):null,t[7]=s,t[8]=g,t[9]=y):y=t[9];const f=y;let h,b;t[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{const j=T=>{St(T)&&T.code==="KeyK"&&(T.preventDefault(),l(!0))};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},b=[],t[10]=h,t[11]=b):(h=t[10],b=t[11]),Q.useEffect(h,b);let S;t[12]!==s?(S=re.activeOrganization(s),t[12]=s,t[13]=S):S=t[13];let x;t[14]!==s||t[15]!==g?(x=async()=>{if(!s)return null;performance.mark("mesh:active-org-fetch:start");const{data:j}=await Y.organization.getFullOrganization({query:{organizationSlug:s}}).finally(zt),T=le(j);return j&&!T&&localStorage.setItem(U.lastOrgSlug(),s),g&&j&&Ce(g,s,j),j},t[14]=s,t[15]=g,t[16]=x):x=t[16];const v=f?f.data:void 0,_=f?.updatedAt;let N;t[17]!==x||t[18]!==v||t[19]!==_||t[20]!==S?(N={queryKey:S,queryFn:x,initialData:v,initialDataUpdatedAt:_,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=x,t[18]=v,t[19]=_,t[20]=S,t[21]=N):N=t[21];const{data:w}=fe(N),A=w?.id,C=w?.slug,{data:E}=Xe(A,C),O=A??"",ee=C??"";let L;t[22]!==O||t[23]!==ee?(L=Qe({connectionId:Ye,orgId:O,orgSlug:ee}),t[22]=O,t[23]=ee,t[24]=L):L=t[24];const te=!!A&&!!C;let H;if(t[25]!==L||t[26]!==te?(H={...L,enabled:te},t[25]=L,t[26]=te,t[27]=H):H=t[27],oe(H),!w){let j;t[28]===Symbol.for("react.memo_cache_sentinel")?(j=o.jsx(Ee,{}),t[28]=j):j=t[28];let T;return t[29]!==s?(T=o.jsx(Q.Suspense,{fallback:j,children:o.jsx(lt,{orgSlug:s})}),t[29]=s,t[30]=T):T=t[30],T}if(le(w)){localStorage.getItem(U.lastOrgSlug())===s&&localStorage.removeItem(U.lastOrgSlug());let j;return t[31]!==w.name?(j=o.jsx(Ae,{orgName:w.name}),t[31]=w.name,t[32]=j):j=t[32],j}if(E?.ssoRequired&&!E.authenticated){let j;return t[33]!==w.id||t[34]!==w.name||t[35]!==w.slug||t[36]!==E.domain?(j=o.jsx(At,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:E.domain}),t[33]=w.id,t[34]=w.name,t[35]=w.slug,t[36]=E.domain,t[37]=j):j=t[37],j}const ne=w.logo??null;let P;t[38]!==w||t[39]!==ne?(P={...w,logo:ne},t[38]=w,t[39]=ne,t[40]=P):P=t[40];let D;t[41]!==w?(D=o.jsx(Ot,{activeOrg:w}),t[41]=w,t[42]=D):D=t[42];let G,B;t[43]===Symbol.for("react.memo_cache_sentinel")?(G=o.jsx(Te,{}),B=o.jsx(xt,{}),t[43]=G,t[44]=B):(G=t[43],B=t[44]);let R;t[45]!==i?(R=o.jsx(jt,{open:i,onOpenChange:l}),t[45]=i,t[46]=R):R=t[46];let W;return t[47]!==P||t[48]!==D||t[49]!==R?(W=o.jsxs(Et,{org:P,children:[D,G,B,R]}),t[47]=P,t[48]=D,t[49]=R,t[50]=W):W=t[50],W}function zt(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Mt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(Ue,{children:o.jsx($t,{})}),t[0]=e):e=t[0],e}const Vt=Object.freeze(Object.defineProperty({__proto__:null,default:Mt,usePanelActions:Tt},Symbol.toStringTag,{value:"Module"}));export{$ as K,pe as R,ht as a,ct as b,Yt as c,xe as h,St as i,_t as r,Vt as s,Tt as u};
|