decocms 4.58.0 → 4.58.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-BsK2j8lX.js → AlertCircle-ikh9EhW8.js} +1 -1
- package/dist/client/assets/{AreaChart-BLzsywx_.js → AreaChart-BacVKm-e.js} +1 -1
- package/dist/client/assets/{ArrowUp-CiXcGn12.js → ArrowUp-C2Uxk9v5.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-C4WIYJS6.js → ArrowUpRight-dKwmf_Po.js} +1 -1
- package/dist/client/assets/{Check-CIsZpsif.js → Check-l-3_5Yub.js} +1 -1
- package/dist/client/assets/{CheckCircle-V3Hv2XSA.js → CheckCircle-CG3UGDqI.js} +1 -1
- package/dist/client/assets/{ChevronDown-Cf7u9l43.js → ChevronDown-GxzgRPnW.js} +1 -1
- package/dist/client/assets/{ChevronRight-BNYV3zMY.js → ChevronRight-DOjdQ2jl.js} +1 -1
- package/dist/client/assets/{ChevronUp-CCh08wW9.js → ChevronUp-IrB7cB7L.js} +1 -1
- package/dist/client/assets/{Circle-DPPhpz1H.js → Circle-DdSDnwMx.js} +1 -1
- package/dist/client/assets/{Copy01-DZTNMmB_.js → Copy01-C8oU0zGn.js} +1 -1
- package/dist/client/assets/{DotsVertical-xF2OLIK0.js → DotsVertical-CmKqicos.js} +1 -1
- package/dist/client/assets/{Eye-zIW_btrx.js → Eye-CiVCpr3W.js} +1 -1
- package/dist/client/assets/{FilterLines-DEPqd77p.js → FilterLines-zHENNr4w.js} +1 -1
- package/dist/client/assets/{Globe01-B6ViMY-a.js → Globe01-4qneKCx1.js} +1 -1
- package/dist/client/assets/{Globe04-Ds-oxCM4.js → Globe04-DY_S10bh.js} +1 -1
- package/dist/client/assets/{HardDrive-bbtqUR30.js → HardDrive-B7X8S1zT.js} +1 -1
- package/dist/client/assets/{Key01-DQPMjuS7.js → Key01-CvEHhjaQ.js} +1 -1
- package/dist/client/assets/{LayoutLeft-Dh8b6qBD.js → LayoutLeft-s8OpLO9_.js} +1 -1
- package/dist/client/assets/{LinkExternal01-9VsFaQCg.js → LinkExternal01-Ur0JUTw7.js} +1 -1
- package/dist/client/assets/{List-DxDwUsHQ.js → List-CSCZWijQ.js} +1 -1
- package/dist/client/assets/{Loading02-DlaqgSnW.js → Loading02-Dw7Fb8fV.js} +1 -1
- package/dist/client/assets/{Monitor01-DetfAZxn.js → Monitor01-BnQIQR2J.js} +1 -1
- package/dist/client/assets/{Package-P2uQA8UR.js → Package-kk32-meL.js} +1 -1
- package/dist/client/assets/{Palette-B1W3bpHO.js → Palette-BPqpewmi.js} +1 -1
- package/dist/client/assets/{Play-C3EW_5aN.js → Play-C-A2YLYB.js} +1 -1
- package/dist/client/assets/{Plus-DWsP481X.js → Plus-BYVxPimi.js} +1 -1
- package/dist/client/assets/{SearchLg-DtlozG9O.js → SearchLg-ZXO1oGJV.js} +1 -1
- package/dist/client/assets/{SearchMd-BzqJR21G.js → SearchMd-DewSjApI.js} +1 -1
- package/dist/client/assets/{Settings02-CfwJwixJ.js → Settings02-CkhH_edn.js} +1 -1
- package/dist/client/assets/{Shield01-D8BSHCuL.js → Shield01-DBYYWk72.js} +1 -1
- package/dist/client/assets/{Star01-BElbpB-4.js → Star01-DgeiDc0c.js} +1 -1
- package/dist/client/assets/{Stars01-CnLrPEGr.js → Stars01-jiIyYd0A.js} +1 -1
- package/dist/client/assets/{Stars02-DV2x_8X4.js → Stars02-CmHYcatE.js} +1 -1
- package/dist/client/assets/{Sun-LNIUqEwV.js → Sun-DmqkCs1o.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-LhVEaBhn.js → SwitchHorizontal01-B0Uzi4bY.js} +1 -1
- package/dist/client/assets/{Tool01-D9X9-2gX.js → Tool01-HhI3MH65.js} +1 -1
- package/dist/client/assets/{Tool02-3aANdbCk.js → Tool02-ByL8yJTv.js} +1 -1
- package/dist/client/assets/{Trash01-YlywuJOa.js → Trash01-Dhchorur.js} +1 -1
- package/dist/client/assets/{TrendUp01-Cn96zgOO.js → TrendUp01-B5QYsL1h.js} +1 -1
- package/dist/client/assets/{Upload01-Ds0fsDXO.js → Upload01-BEJOqF9_.js} +1 -1
- package/dist/client/assets/{User01-Cn7CiRhy.js → User01-DSAgnBZM.js} +1 -1
- package/dist/client/assets/{Users01-B36BnXKf.js → Users01-vv2jCaJ0.js} +1 -1
- package/dist/client/assets/{Users03-CH4KGn7q.js → Users03-CQemWhYw.js} +1 -1
- package/dist/client/assets/{X-CCOY7lES.js → X-CERA5XX-.js} +1 -1
- package/dist/client/assets/{XCircle-CBw8-s9c.js → XCircle-CQFHeST9.js} +1 -1
- package/dist/client/assets/{XClose-BZZDYipc.js → XClose-BtDELoL6.js} +1 -1
- package/dist/client/assets/{Zap-CLmJ7X99.js → Zap-LK71Qw10.js} +1 -1
- package/dist/client/assets/{ZapSquare-4ta3HU4A.js → ZapSquare-vhGlfaIe.js} +1 -1
- package/dist/client/assets/{ZoomOut-CpVNvi6I.js → ZoomOut-MVldqGOh.js} +1 -1
- package/dist/client/assets/{access-gate-Dm9HP6nd.js → access-gate-BCRHHlgW.js} +1 -1
- package/dist/client/assets/{add-section-modal-Dkif2MHI.js → add-section-modal-ikwxP1ow.js} +1 -1
- package/dist/client/assets/{agent-capabilities-tgV1dWvl.js → agent-capabilities-gp1_3T8j.js} +1 -1
- package/dist/client/assets/{agent-icon-B7V41V3w.js → agent-icon-C0PPbu4E.js} +1 -1
- package/dist/client/assets/{agents-list-BbB-Rj7G.js → agents-list-B6DTKK57.js} +1 -1
- package/dist/client/assets/{ai-providers-9NSoRJvL.js → ai-providers-UsV5F8r0.js} +1 -1
- package/dist/client/assets/{alert-CFsGAZmo.js → alert-Dq4hhjN_.js} +1 -1
- package/dist/client/assets/{alert-dialog-DlH1qn27.js → alert-dialog-CFQnSlFi.js} +1 -1
- package/dist/client/assets/{app-editor-Fenxhw0K.js → app-editor-u1QFK_Ft.js} +1 -1
- package/dist/client/assets/{auth-DIw1R4FB.js → auth-CXQvN3HA.js} +1 -1
- package/dist/client/assets/{auth-catchall-DT8ZYblC.js → auth-catchall-Pj-Cz6B9.js} +1 -1
- package/dist/client/assets/{auth-entry-C6xBObDF.js → auth-entry-C4xKLodJ.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DokQOGq8.js → auth-split-layout-BWrZ2kkB.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BWW5qgjr.js → authenticate-and-persist-oauth-DMKTtCER.js} +1 -1
- package/dist/client/assets/{automation-list-row-CrZMuVyz.js → automation-list-row-DCMnAURk.js} +1 -1
- package/dist/client/assets/{automation-runs-COfUpgLG.js → automation-runs-yYKLkcKJ.js} +1 -1
- package/dist/client/assets/{automations-vCJ2mZTl.js → automations-BZyXm5za.js} +1 -1
- package/dist/client/assets/{autosend-Dqth_Lvz.js → autosend-B09y_xWT.js} +1 -1
- package/dist/client/assets/{avatar-BLw8Q1_P.js → avatar-AMoGOThV.js} +1 -1
- package/dist/client/assets/{badge-BLlsFYFH.js → badge-BPHuSIZS.js} +1 -1
- package/dist/client/assets/{block-document-CxtI5tT-.js → block-document-C7MFYVIv.js} +1 -1
- package/dist/client/assets/{brand-context-DF9Lu69M.js → brand-context-CtLzo7po.js} +1 -1
- package/dist/client/assets/{breadcrumb-D4-_sl4P.js → breadcrumb-rNDrWzNZ.js} +1 -1
- package/dist/client/assets/{buckets-B4zVpzu4.js → buckets-D33Jl6Ik.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BlQt2ZBG.js → bulk-category-panel-Bye1Yrjd.js} +1 -1
- package/dist/client/assets/{calendar-BfXhAJwH.js → calendar-yVXWtqHX.js} +1 -1
- package/dist/client/assets/{capability-load-error-CqbGYiTK.js → capability-load-error-CqAiKd5S.js} +1 -1
- package/dist/client/assets/{card-Dr39ocdW.js → card-Ctjdx224.js} +1 -1
- package/dist/client/assets/{category-editor-qjicpFa3.js → category-editor-dCU9wpGr.js} +1 -1
- package/dist/client/assets/{chat-context-Cj90aqG3.js → chat-context-BSjDu3Kn.js} +1 -1
- package/dist/client/assets/{checkbox-BLTtdUJX.js → checkbox-CeNWwfEP.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Bogsg1gc.js → cli-auth-success-CJZnvzJS.js} +1 -1
- package/dist/client/assets/{collection-detail-DCRlIVFr.js → collection-detail-sTSYI_r3.js} +1 -1
- package/dist/client/assets/{collection-display-button-BAWZrgtL.js → collection-display-button-Bx3j6t-b.js} +1 -1
- package/dist/client/assets/{collection-search-DxjEuL_D.js → collection-search-DctAKiw4.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DOw4jIB9.js → collection-table-wrapper-au75k3eG.js} +1 -1
- package/dist/client/assets/{collection-tabs-DwKDQp6H.js → collection-tabs-JAM8b1XR.js} +1 -1
- package/dist/client/assets/{command-Dr_Fu2IW.js → command-B6OX1Qec.js} +1 -1
- package/dist/client/assets/commerce-onboarding-B2c8XccC.js +1 -0
- package/dist/client/assets/{connect-desktop-dialog-CHkD7GAc.js → connect-desktop-dialog-BNocJmhH.js} +1 -1
- package/dist/client/assets/{connection-card-DbKoXvAA.js → connection-card-BDNvnCUp.js} +1 -1
- package/dist/client/assets/{connection-detail-DcxhLZlM.js → connection-detail-K11FVTyY.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-ZtAjEE6E.js → connection-form-helpers-BhOdBOe6.js} +1 -1
- package/dist/client/assets/{connections-D-tLBJFZ.js → connections-iYW5VuAk.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-CDyfzRYy.js → decopilot-sse-pool-5WtA4uC2.js} +1 -1
- package/dist/client/assets/{dialog-fh7l4sng.js → dialog-CTw40U7G.js} +1 -1
- package/dist/client/assets/{domain-settings-DoB42dVy.js → domain-settings-Or0qxE6F.js} +1 -1
- package/dist/client/assets/{drawer-C6ZV4KXJ.js → drawer-DJ5Vp96g.js} +1 -1
- package/dist/client/assets/{dropdown-menu-Y2JpHwLO.js → dropdown-menu-BdvxZA7T.js} +1 -1
- package/dist/client/assets/{empty-state-DalbBhZq.js → empty-state-Cs9sDgfJ.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CSGt_bh7.js → extract-connection-data-BZ1uTNMW.js} +1 -1
- package/dist/client/assets/{file-explorer-BXo29_Z4.js → file-explorer-DKa9r7oa.js} +1 -1
- package/dist/client/assets/{file-type-icon-Dt3FbbjO.js → file-type-icon-DUIM8qyD.js} +1 -1
- package/dist/client/assets/{files-D8622kE_.js → files-DMXsXsJ9.js} +1 -1
- package/dist/client/assets/{form-MOAQpg4z.js → form-Dkgedw9n.js} +1 -1
- package/dist/client/assets/{general-DwEzGRBj.js → general-Cgkxmg93.js} +1 -1
- package/dist/client/assets/{github-repo-picker-Bnkr38By.js → github-repo-picker-BuEGWsss.js} +1 -1
- package/dist/client/assets/{hooks-BOmfFPA1.js → hooks-CkYtPFsw.js} +1 -1
- package/dist/client/assets/{index-Cs0l2cdC.js → index-BK3u4oUy.js} +28 -28
- package/dist/client/assets/{index-Bdud9TAa.js → index-C-yoHvwt.js} +1 -1
- package/dist/client/assets/{index-CdiNO3pS.js → index-C0rEm26V.js} +1 -1
- package/dist/client/assets/{index-DQS4uqTL.js → index-C3t5fTpe.js} +1 -1
- package/dist/client/assets/{index-fTBvXwtq.js → index-CE7Jzo0Y.js} +3 -3
- package/dist/client/assets/{index-pasDzH67.js → index-ClvxTMee.js} +1 -1
- package/dist/client/assets/{index-BIMrgiGT.js → index-D-4NOzHL.js} +1 -1
- package/dist/client/assets/{index-BjIv3NiG.js → index-D27MNvxY.js} +1 -1
- package/dist/client/assets/{index-BwtIoAWX.js → index-DEdLbGg7.js} +1 -1
- package/dist/client/assets/{index-BDgkjVbt.js → index-Dl5-e8S3.js} +1 -1
- package/dist/client/assets/{index-BScXsDNd.js → index-I1x-eDFx.js} +1 -1
- package/dist/client/assets/{index-NLWgbFF6.js → index-bDUBGy1b.js} +1 -1
- package/dist/client/assets/{index-1m4TnoDs.js → index-g31Idu4B.js} +1 -1
- package/dist/client/assets/{index-Hf6MZntC.js → index-mQkPfrTe.js} +1 -1
- package/dist/client/assets/{index-redirect-DVXKyr8c.js → index-redirect-DF2BcssQ.js} +1 -1
- package/dist/client/assets/{input-BCFnb5pa.js → input-BwW0UiHD.js} +1 -1
- package/dist/client/assets/{integration-icon-D2ih8lLH.js → integration-icon-JNGEdZ2b.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-HKCs9csw.js → invite-member-dialog-QuxHKR2k.js} +1 -1
- package/dist/client/assets/{label-DlcV7-lQ.js → label-T4A96HJz.js} +1 -1
- package/dist/client/assets/{layout-DQ-E3CMX.js → layout-CeWm_iKH.js} +1 -1
- package/dist/client/assets/{login-CAzmisNW.js → login-DE06PpOv.js} +1 -1
- package/dist/client/assets/{mcp-oauth-WwLjUcQG.js → mcp-oauth-C31dvqbj.js} +1 -1
- package/dist/client/assets/{members-Db9Pp1S_.js → members-Dn88Bffl.js} +1 -1
- package/dist/client/assets/{monaco-editor-CU5IsWCk.js → monaco-editor-gHFinYBb.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-je4jOOK4.js → monitoring-stats-row-CEk3Zxob.js} +1 -1
- package/dist/client/assets/{oauth-callback-EFcI6S_n.js → oauth-callback-CKWnk81p.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CRMHZb_k.js → oauth-callback-ai-provider-CO3rOTsW.js} +1 -1
- package/dist/client/assets/{onboarding-MhSEXmGS.js → onboarding-B1eBt1p_.js} +1 -1
- package/dist/client/assets/{org-install-BL1nnV4S.js → org-install-B5Y6qfMh.js} +1 -1
- package/dist/client/assets/{org-layout-leGZ1nms.js → org-layout-hJkfwTVi.js} +1 -1
- package/dist/client/assets/{organization-choice-CGh-oHoO.js → organization-choice-BDqECtbt.js} +1 -1
- package/dist/client/assets/{orgs-Bcnn1l3-.js → orgs-Bjvgb9xY.js} +1 -1
- package/dist/client/assets/{page-seo-form-BleD6npj.js → page-seo-form-BwfYKlsk.js} +1 -1
- package/dist/client/assets/page-seo-sheet-Bn-lcNcF.js +1 -0
- package/dist/client/assets/{popover-CNxsj5z1.js → popover-CcnO0tN5.js} +1 -1
- package/dist/client/assets/{post-editor-7yiM1RvF.js → post-editor-B2yjjWDn.js} +1 -1
- package/dist/client/assets/{primitives-DLmkvEJN.js → primitives-ec6IrqXe.js} +1 -1
- package/dist/client/assets/{profile-e7Ghaczc.js → profile-CQp8SDdd.js} +1 -1
- package/dist/client/assets/project-app-view-CQJ8CS68.js +1 -0
- package/dist/client/assets/record-editor-CqZ_vF03.js +1 -0
- package/dist/client/assets/registry-CaBFZ1S5.js +2 -0
- package/dist/client/assets/{registry-layout-D72cFP53.js → registry-layout-yjtzq8OJ.js} +1 -1
- package/dist/client/assets/{reports-B6abVv3u.js → reports-jlAfUS9l.js} +1 -1
- package/dist/client/assets/{require-capability-BkA_0M4L.js → require-capability-CW48-N_9.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BQbJTgYE.js → required-auth-layout-CfrjXfDR.js} +1 -1
- package/dist/client/assets/{reset-password-DIckw0Ms.js → reset-password-DuBdwse3.js} +1 -1
- package/dist/client/assets/{roles-DyKLhx_B.js → roles-pcgATUPH.js} +1 -1
- package/dist/client/assets/{search-input--Rgpfj-4.js → search-input-RSgVIEKO.js} +1 -1
- package/dist/client/assets/{secrets-DxkIt321.js → secrets-CYnN_AZD.js} +1 -1
- package/dist/client/assets/{sections-editor-DjeaapZJ.js → sections-editor-DmkI5cy2.js} +1 -1
- package/dist/client/assets/{select-VaDgX2xH.js → select-ClxYO5H6.js} +1 -1
- package/dist/client/assets/{select-model-eQuhl8Ce.js → select-model-BACehDcD.js} +1 -1
- package/dist/client/assets/{seo-editor-BNXe112p.js → seo-editor-Bpzm-zWq.js} +1 -1
- package/dist/client/assets/{settings-layout-DJl6ndvG.js → settings-layout-pTH5uIds.js} +1 -1
- package/dist/client/assets/{settings-section-Dhs7I_E9.js → settings-section-D_8CkXtp.js} +1 -1
- package/dist/client/assets/{shell-controls-rVApaBEX.js → shell-controls-qAQVXXT6.js} +1 -1
- package/dist/client/assets/{shell-layout-LRsQP-h_.js → shell-layout-B2PcjLB_.js} +1 -1
- package/dist/client/assets/{sidebar-CYWiRPI2.js → sidebar-DEGnavl-.js} +1 -1
- package/dist/client/assets/{skeleton-BjvmRaJs.js → skeleton-0HG2HMmG.js} +1 -1
- package/dist/client/assets/{sso-BRcEauRm.js → sso-RM8V1p0-.js} +1 -1
- package/dist/client/assets/store-registry-B7_cTIN0.js +2 -0
- package/dist/client/assets/{store-LV2LmI7b.js → store-x9jFtxnD.js} +1 -1
- package/dist/client/assets/{studio-tools-Bgge8r2I.js → studio-tools-D1EUgEy9.js} +1 -1
- package/dist/client/assets/{switch-B5hqdxQf.js → switch-845JpOMu.js} +1 -1
- package/dist/client/assets/{table-BGC66mX8.js → table-DAPGi_D2.js} +1 -1
- package/dist/client/assets/{tabs-7iMqy-cX.js → tabs-Cm6bXuT8.js} +1 -1
- package/dist/client/assets/{textarea-DUeM1qLR.js → textarea-yMzCwiSX.js} +1 -1
- package/dist/client/assets/{toggle-group-DGTTTK16.js → toggle-group-DKvzk__a.js} +1 -1
- package/dist/client/assets/{toolbar-f57IeKJA.js → toolbar-C5HBDWWH.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BxWJLLOv.js → toolbar-icon-button-DjPm2uc7.js} +1 -1
- package/dist/client/assets/{tools-list-lsZ0EoUN.js → tools-list-DeeCHjbo.js} +1 -1
- package/dist/client/assets/{tooltip-BeUHG-np.js → tooltip-Vu1Uuv9_.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BixOjL9U.js → use-ai-providers-BMEp8Mut.js} +1 -1
- package/dist/client/assets/{use-automations-BmZJRHpv.js → use-automations-mOEGpdbM.js} +1 -1
- package/dist/client/assets/{use-capability-DqpCecgW.js → use-capability-BjfQMpiC.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BxBaYbkF.js → use-clock-tick-CvcXb-1b.js} +1 -1
- package/dist/client/assets/{use-collections-CAn6PdRl.js → use-collections-D2V9DhNo.js} +1 -1
- package/dist/client/assets/{use-connection-CRWYWlA3.js → use-connection-C_If0ms7.js} +1 -1
- package/dist/client/assets/{use-copy-C72jUXvA.js → use-copy-cNe9Kr2Q.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BCfEdG_e.js → use-create-virtual-mcp-gPhN-xyp.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CV4I7zcE.js → use-debounced-autosave-ChSz32o5.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BhdX0Eeh.js → use-debounced-value-AdeDkiX7.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CZZxmCko.js → use-decopilot-events-DmjCRfAR.js} +1 -1
- package/dist/client/assets/{use-delete-connection-D4cIX0rG.js → use-delete-connection-ChlvDMzk.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-C-056bEj.js → use-deployment-admin-V_3H2ttZ.js} +1 -1
- package/dist/client/assets/{use-file-configs-BDx4iCDa.js → use-file-configs-pW8HPA2a.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CGAPBZVb.js → use-infinite-scroll-BoTNtZTW.js} +1 -1
- package/dist/client/assets/{use-join-requests-B3QaYtT8.js → use-join-requests-_Jnj29j6.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DtdzmFrp.js → use-mcp-client-DH5Fdew1.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DJ2ELHXx.js → use-mcp-tools-B725qrdb.js} +1 -1
- package/dist/client/assets/{use-members-BCw3JyoG.js → use-members-BUInbDff.js} +1 -1
- package/dist/client/assets/{use-mobile-9MTF5ix-.js → use-mobile-J-gsekNR.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CL_Sr9aS.js → use-navigate-to-agent-Beq_qyoO.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-QJOcG_S6.js → use-org-auth-client-C5W2PyEJ.js} +1 -1
- package/dist/client/assets/{use-org-sso-D1Hh9X5_.js → use-org-sso-zoDPrJJW.js} +1 -1
- package/dist/client/assets/{use-organization-roles-RnVZIuuZ.js → use-organization-roles-e-GN53UA.js} +1 -1
- package/dist/client/assets/{use-organization-settings-4fF6reF2.js → use-organization-settings-DnJMCRoV.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BKqXWBpN.js → use-registry-connections-BWu3IdPe.js} +1 -1
- package/dist/client/assets/{use-secrets-C0ii327y.js → use-secrets-CxQdNvgI.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BeMLu_4s.js → use-status-sounds-BJOW0AJk.js} +1 -1
- package/dist/client/assets/{use-view-mode-BM9KKZ6W.js → use-view-mode-miVmRD8y.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-UbApJn5U.js → use-virtual-mcp-Bt2cc3Sl.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-ChPiqG8n.js +1 -0
- package/dist/client/assets/{useRouterState-DnqIZgiT.js → useRouterState-DrUN6v2W.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BhY7UhqT.js +1 -0
- package/dist/client/assets/{users-CqWKV4Rn.js → users-WJdkEy7Z.js} +1 -1
- package/dist/client/assets/{variant-calendar-B6bYDAsn.js → variant-calendar-CzfW59Wl.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-COBf4bvm.js → view-mode-toggle-tCzuUwA-.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/commerce-onboarding-DasOD5zN.js +0 -1
- package/dist/client/assets/page-seo-sheet-EWq7D9q1.js +0 -1
- package/dist/client/assets/project-app-view-DRxqcpXA.js +0 -1
- package/dist/client/assets/record-editor-DphlBghM.js +0 -1
- package/dist/client/assets/registry-CQWcDlJ4.js +0 -2
- package/dist/client/assets/store-registry-BPEcVVl-.js +0 -2
- package/dist/client/assets/useInfiniteQuery-E-ZlRxfS.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-pC4lCsVT.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as T,j as t,r as Q,B as je,i as be}from"./index-fTBvXwtq.js";import{i as Se}from"./ChevronRight-BNYV3zMY.js";import{X as fe}from"./agent-icon-B7V41V3w.js";import{A as ue}from"./automation-runs-COfUpgLG.js";import{r as Ne,u as ke,a as _e,b as we,i as Ce,d as Te,f as Fe,P as Re,S as Ee}from"./page-seo-form-BleD6npj.js";import{X as xe,r as ze}from"./index-Cs0l2cdC.js";import{a as ge}from"./Tool01-D9X9-2gX.js";import"./AlertCircle-BsK2j8lX.js";import"./ArrowUp-CiXcGn12.js";import"./Settings02-CfwJwixJ.js";import"./Tool02-3aANdbCk.js";import"./XCircle-CBw8-s9c.js";import"./ArrowUpRight-C4WIYJS6.js";import"./TrendUp01-Cn96zgOO.js";import"./ZapSquare-4ta3HU4A.js";import"./Users03-CH4KGn7q.js";import"./Loading02-DlaqgSnW.js";import"./CheckCircle-V3Hv2XSA.js";import"./Check-CIsZpsif.js";import"./ChevronDown-Cf7u9l43.js";import"./ChevronUp-CCh08wW9.js";import"./Circle-DPPhpz1H.js";import"./Stars02-DV2x_8X4.js";import"./Copy01-DZTNMmB_.js";import"./ZoomOut-CpVNvi6I.js";import"./DotsVertical-xF2OLIK0.js";import"./Globe01-B6ViMY-a.js";import"./Eye-zIW_btrx.js";import"./FilterLines-DEPqd77p.js";import"./Star01-BElbpB-4.js";import"./Globe04-Ds-oxCM4.js";import"./SwitchHorizontal01-LhVEaBhn.js";import"./HardDrive-bbtqUR30.js";import"./Key01-DQPMjuS7.js";import"./LayoutLeft-Dh8b6qBD.js";import"./LinkExternal01-9VsFaQCg.js";import"./List-DxDwUsHQ.js";import"./Monitor01-DetfAZxn.js";import"./Sun-LNIUqEwV.js";import"./Package-P2uQA8UR.js";import"./Palette-B1W3bpHO.js";import"./Play-C3EW_5aN.js";import"./Plus-DWsP481X.js";import"./SearchLg-DtlozG9O.js";import"./SearchMd-BzqJR21G.js";import"./Shield01-D8BSHCuL.js";import"./Stars01-CnLrPEGr.js";import"./Trash01-YlywuJOa.js";import"./Upload01-Ds0fsDXO.js";import"./User01-Cn7CiRhy.js";import"./Users01-B36BnXKf.js";import"./XClose-BZZDYipc.js";import"./X-CCOY7lES.js";import"./Zap-CLmJ7X99.js";import"./select-VaDgX2xH.js";import"./tooltip-BeUHG-np.js";import"./useInfiniteQuery-E-ZlRxfS.js";import"./use-infinite-scroll-CGAPBZVb.js";import"./use-connection-CRWYWlA3.js";import"./use-collections-CAn6PdRl.js";import"./use-mcp-client-DtdzmFrp.js";import"./constants-CaIX_f5U.js";import"./auth-DIw1R4FB.js";import"./use-virtual-mcp-UbApJn5U.js";import"./card-Dr39ocdW.js";import"./sidebar-CYWiRPI2.js";import"./use-mobile-9MTF5ix-.js";import"./table-BGC66mX8.js";import"./empty-state-DalbBhZq.js";import"./use-members-BCw3JyoG.js";import"./use-org-auth-client-QJOcG_S6.js";import"./use-clock-tick-BxBaYbkF.js";import"./use-automations-BmZJRHpv.js";import"./studio-tools-Bgge8r2I.js";import"./useSuspenseInfiniteQuery-pC4lCsVT.js";import"./badge-BLlsFYFH.js";import"./checkbox-BLTtdUJX.js";import"./command-Dr_Fu2IW.js";import"./index-BScXsDNd.js";import"./dialog-fh7l4sng.js";import"./popover-CNxsj5z1.js";import"./avatar-BLw8Q1_P.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-C72jUXvA.js";import"./file-type-icon-Dt3FbbjO.js";import"./tab-id-bb-jjgGv.js";import"./monaco-editor-CU5IsWCk.js";import"./index-NLWgbFF6.js";import"./chat-context-Cj90aqG3.js";import"./autosend-Dqth_Lvz.js";import"./hooks-BOmfFPA1.js";import"./decopilot-sse-pool-CDyfzRYy.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-BixOjL9U.js";import"./use-decopilot-events-CZZxmCko.js";import"./use-organization-settings-4fF6reF2.js";import"./index-CdiNO3pS.js";import"./shell-layout-LRsQP-h_.js";import"./alert-dialog-DlH1qn27.js";import"./required-auth-layout-BQbJTgYE.js";import"./use-org-sso-D1Hh9X5_.js";import"./integration-icon-D2ih8lLH.js";import"./use-navigate-to-agent-CL_Sr9aS.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-BLzsywx_.js";import"./form-MOAQpg4z.js";import"./label-DlcV7-lQ.js";import"./input-BCFnb5pa.js";import"./switch-B5hqdxQf.js";import"./drawer-C6ZV4KXJ.js";import"./collection-search-DxjEuL_D.js";import"./tabs-7iMqy-cX.js";import"./toggle-group-DGTTTK16.js";import"./agent-capabilities-tgV1dWvl.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DbKoXvAA.js";import"./use-registry-connections-BKqXWBpN.js";import"./extract-connection-data-CSGt_bh7.js";import"./collection-tabs-DwKDQp6H.js";import"./textarea-DUeM1qLR.js";import"./connection-form-helpers-ZtAjEE6E.js";import"./authenticate-and-persist-oauth-BWW5qgjr.js";import"./mcp-oauth-WwLjUcQG.js";import"./connect-desktop-dialog-CHkD7GAc.js";import"./select-model-eQuhl8Ce.js";import"./skeleton-BjvmRaJs.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Dhs7I_E9.js";import"./dropdown-menu-Y2JpHwLO.js";import"./index-Hf6MZntC.js";import"./toolbar-f57IeKJA.js";import"./use-debounced-value-BhdX0Eeh.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BeMLu_4s.js";import"./use-mcp-tools-DJ2ELHXx.js";import"./use-capability-DqpCecgW.js";import"./tools-list-lsZ0EoUN.js";import"./use-debounced-autosave-CV4I7zcE.js";import"./index-pasDzH67.js";import"./search-input--Rgpfj-4.js";import"./github-repo-picker-Bnkr38By.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-C0ii327y.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-BDgkjVbt.js";import"./get-initials-D-f_fDFw.js";import"./calendar-BfXhAJwH.js";import"./toolbar-icon-button-BxWJLLOv.js";import"./use-file-configs-BDx4iCDa.js";import"./automation-list-row-CrZMuVyz.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 b;return e[23]!==u||e[24]!==y||e[25]!==g?(b=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]=b):b=e[26],b}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 b=i.description??ee;let _;e[17]!==y||e[18]!==b?(_=t.jsx("div",{className:"line-clamp-2 text-[12px]",style:y,children:b}),e[17]=y,e[18]=b,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 S;e[24]!==i.image?(S=t.jsx(pe,{src:i.image,className:"size-14 shrink-0 rounded",iconSize:16}),e[24]=i.image,e[25]=S):S=e[25];let k;e[26]!==N||e[27]!==S||e[28]!==g?(k=t.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:g,children:[N,S]}),e[26]=N,e[27]=S,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,b]=Q.useState(0),[_,N]=Q.useState(void 0);x!==f&&(u(f),v(null),N(void 0),b(Me));const{persistSeo:S,persistRawSeo:k,flush:C,isPending:te}=ke({orgSlug:i,virtualMcpId:r,branch:h,target:o,resolved:c,onSaved:m}),K=o.kind==="page",ve=K?c?.rawSeoData:void 0,B=_!==void 0?_:ve,ye=K?_e(B)??void 0:void 0,w=j??ye??g??{},F=c?we(w,c):null,z=F&&(!K||Ce(B))?ze(F,s):null;let M;e[0]!==s?(M=Te(s),e[0]=s,e[1]=M):M=e[1];const oe=M;let R,X;e[2]!==a||e[3]!==w||e[4]!==s||e[5]!==o.kind?(R=o.kind==="page"?Fe(a,s)?.seoData??{}:{},X=o.kind==="page"?Ge(R,w):w,e[2]=a,e[3]=w,e[4]=s,e[5]=o.kind,e[6]=R,e[7]=X):(R=e[6],X=e[7]);const ie=X;let G;e[8]!==S||e[9]!==c||e[10]!==v?(G=E=>{if(!c)return;const de=E;v(de),S(de)},e[8]=S,e[9]=c,e[10]=v,e[11]=G):G=e[11];const se=G;let V;e[12]!==v?(V=()=>v(null),e[12]=v,e[13]=V):V=e[13];const le=V;let Y;e[14]!==b?(Y=()=>b(Ke),e[14]=b,e[15]=Y):Y=e[15];const re=Y;let H;e[16]!==C||e[17]!==d?(H=()=>{C(),d?.()},e[16]=C,e[17]=d,e[18]=H):H=e[18];const ae=H,P=o.kind==="page"?o.path:"/";let W;e[19]!==P||e[20]!==l||e[21]!==o.kind?(W=o.kind==="page"&&l?Xe(P,l):l??null,e[19]=P,e[20]=l,e[21]=o.kind,e[22]=W):W=e[22];const ne=W,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(Se,{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(be,{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]!==S||e[50]!==ie||e[51]!==ne||e[52]!==c||e[53]!==z||e[54]!==v||e[55]!==N||e[56]!==q||e[57]!==me||e[58]!==R?(A=!c||!q&&!me?t.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ce}):t.jsxs("div",{className:"flex min-h-0 flex-1",children:[t.jsx(ue,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"px-5 py-4",children:q?t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:"Empty fields inherit the default SEO. The preview shows the resolved result."}),t.jsx(Re,{rawSeo:B,innerSeo:w,defaultResolveType:oe,seoSchema:z,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:y,siteDefaultSeo:R,onPersistRaw:E=>{N(E),k(E)},onInnerChange:E=>{v(E),S(E)},onClearForm:le,onBumpFormKey:re})]}):z&&F&&t.jsx(Ee,{schema:z,resolveType:F,value:w,formResetKey:y,onChange:se})})}),t.jsx(ue,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"@container px-5 py-4",children:t.jsx(Ue,{seo:ie,url:ne,path:P})})})]}),e[38]=F,e[39]=re,e[40]=le,e[41]=oe,e[42]=B,e[43]=w,e[44]=ce,e[45]=y,e[46]=se,e[47]=P,e[48]=k,e[49]=S,e[50]=ie,e[51]=ne,e[52]=c,e[53]=z,e[54]=v,e[55]=N,e[56]=q,e[57]=me,e[58]=R,e[59]=A):A=e[59];let J;return e[60]!==I||e[61]!==A?(J=t.jsxs("div",{className:"flex h-full w-full flex-col",children:[I,A]}),e[60]=I,e[61]=A,e[62]=J):J=e[62],J}function Ke(n){return n+1}function Me(n){return n+1}function Xe(n,e){try{return new URL(n,e).href}catch{return e}}function Ge(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{c as T,j as t,r as Q,B as je,i as be}from"./index-CE7Jzo0Y.js";import{i as Se}from"./ChevronRight-DOjdQ2jl.js";import{X as fe}from"./agent-icon-C0PPbu4E.js";import{A as ue}from"./automation-runs-yYKLkcKJ.js";import{r as Ne,u as ke,a as _e,b as we,i as Ce,d as Te,f as Fe,P as Re,S as Ee}from"./page-seo-form-BwfYKlsk.js";import{X as xe,r as ze}from"./index-BK3u4oUy.js";import{a as ge}from"./Tool01-HhI3MH65.js";import"./AlertCircle-ikh9EhW8.js";import"./ArrowUp-C2Uxk9v5.js";import"./Settings02-CkhH_edn.js";import"./Tool02-ByL8yJTv.js";import"./XCircle-CQFHeST9.js";import"./ArrowUpRight-dKwmf_Po.js";import"./TrendUp01-B5QYsL1h.js";import"./ZapSquare-vhGlfaIe.js";import"./Users03-CQemWhYw.js";import"./Loading02-Dw7Fb8fV.js";import"./CheckCircle-CG3UGDqI.js";import"./Check-l-3_5Yub.js";import"./ChevronDown-GxzgRPnW.js";import"./ChevronUp-IrB7cB7L.js";import"./Circle-DdSDnwMx.js";import"./Stars02-CmHYcatE.js";import"./Copy01-C8oU0zGn.js";import"./ZoomOut-MVldqGOh.js";import"./DotsVertical-CmKqicos.js";import"./Globe01-4qneKCx1.js";import"./Eye-CiVCpr3W.js";import"./FilterLines-zHENNr4w.js";import"./Star01-DgeiDc0c.js";import"./Globe04-DY_S10bh.js";import"./SwitchHorizontal01-B0Uzi4bY.js";import"./HardDrive-B7X8S1zT.js";import"./Key01-CvEHhjaQ.js";import"./LayoutLeft-s8OpLO9_.js";import"./LinkExternal01-Ur0JUTw7.js";import"./List-CSCZWijQ.js";import"./Monitor01-BnQIQR2J.js";import"./Sun-DmqkCs1o.js";import"./Package-kk32-meL.js";import"./Palette-BPqpewmi.js";import"./Play-C-A2YLYB.js";import"./Plus-BYVxPimi.js";import"./SearchLg-ZXO1oGJV.js";import"./SearchMd-DewSjApI.js";import"./Shield01-DBYYWk72.js";import"./Stars01-jiIyYd0A.js";import"./Trash01-Dhchorur.js";import"./Upload01-BEJOqF9_.js";import"./User01-DSAgnBZM.js";import"./Users01-vv2jCaJ0.js";import"./XClose-BtDELoL6.js";import"./X-CERA5XX-.js";import"./Zap-LK71Qw10.js";import"./select-ClxYO5H6.js";import"./tooltip-Vu1Uuv9_.js";import"./useInfiniteQuery-ChPiqG8n.js";import"./use-infinite-scroll-BoTNtZTW.js";import"./use-connection-C_If0ms7.js";import"./use-collections-D2V9DhNo.js";import"./use-mcp-client-DH5Fdew1.js";import"./constants-CaIX_f5U.js";import"./auth-CXQvN3HA.js";import"./use-virtual-mcp-Bt2cc3Sl.js";import"./card-Ctjdx224.js";import"./sidebar-DEGnavl-.js";import"./use-mobile-J-gsekNR.js";import"./table-DAPGi_D2.js";import"./empty-state-Cs9sDgfJ.js";import"./use-members-BUInbDff.js";import"./use-org-auth-client-C5W2PyEJ.js";import"./use-clock-tick-CvcXb-1b.js";import"./use-automations-mOEGpdbM.js";import"./studio-tools-D1EUgEy9.js";import"./useSuspenseInfiniteQuery-BhY7UhqT.js";import"./badge-BPHuSIZS.js";import"./checkbox-CeNWwfEP.js";import"./command-B6OX1Qec.js";import"./index-I1x-eDFx.js";import"./dialog-CTw40U7G.js";import"./popover-CcnO0tN5.js";import"./avatar-AMoGOThV.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-cNe9Kr2Q.js";import"./file-type-icon-DUIM8qyD.js";import"./tab-id-bb-jjgGv.js";import"./monaco-editor-gHFinYBb.js";import"./index-bDUBGy1b.js";import"./chat-context-BSjDu3Kn.js";import"./autosend-B09y_xWT.js";import"./hooks-CkYtPFsw.js";import"./decopilot-sse-pool-5WtA4uC2.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-BMEp8Mut.js";import"./use-decopilot-events-DmjCRfAR.js";import"./use-organization-settings-DnJMCRoV.js";import"./index-C0rEm26V.js";import"./shell-layout-B2PcjLB_.js";import"./alert-dialog-CFQnSlFi.js";import"./required-auth-layout-CfrjXfDR.js";import"./use-org-sso-zoDPrJJW.js";import"./integration-icon-JNGEdZ2b.js";import"./use-navigate-to-agent-Beq_qyoO.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-BacVKm-e.js";import"./form-Dkgedw9n.js";import"./label-T4A96HJz.js";import"./input-BwW0UiHD.js";import"./switch-845JpOMu.js";import"./drawer-DJ5Vp96g.js";import"./collection-search-DctAKiw4.js";import"./tabs-Cm6bXuT8.js";import"./toggle-group-DKvzk__a.js";import"./agent-capabilities-gp1_3T8j.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BDNvnCUp.js";import"./use-registry-connections-BWu3IdPe.js";import"./extract-connection-data-BZ1uTNMW.js";import"./collection-tabs-JAM8b1XR.js";import"./textarea-yMzCwiSX.js";import"./connection-form-helpers-BhOdBOe6.js";import"./authenticate-and-persist-oauth-DMKTtCER.js";import"./mcp-oauth-C31dvqbj.js";import"./connect-desktop-dialog-BNocJmhH.js";import"./select-model-BACehDcD.js";import"./skeleton-0HG2HMmG.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-D_8CkXtp.js";import"./dropdown-menu-BdvxZA7T.js";import"./index-mQkPfrTe.js";import"./toolbar-C5HBDWWH.js";import"./use-debounced-value-AdeDkiX7.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BJOW0AJk.js";import"./use-mcp-tools-B725qrdb.js";import"./use-capability-BjfQMpiC.js";import"./tools-list-DeeCHjbo.js";import"./use-debounced-autosave-ChSz32o5.js";import"./index-ClvxTMee.js";import"./search-input-RSgVIEKO.js";import"./github-repo-picker-BuEGWsss.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-CxQdNvgI.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-Dl5-e8S3.js";import"./get-initials-D-f_fDFw.js";import"./calendar-yVXWtqHX.js";import"./toolbar-icon-button-DjPm2uc7.js";import"./use-file-configs-pW8HPA2a.js";import"./automation-list-row-DCMnAURk.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 b;return e[23]!==u||e[24]!==y||e[25]!==g?(b=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]=b):b=e[26],b}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 b=i.description??ee;let _;e[17]!==y||e[18]!==b?(_=t.jsx("div",{className:"line-clamp-2 text-[12px]",style:y,children:b}),e[17]=y,e[18]=b,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 S;e[24]!==i.image?(S=t.jsx(pe,{src:i.image,className:"size-14 shrink-0 rounded",iconSize:16}),e[24]=i.image,e[25]=S):S=e[25];let k;e[26]!==N||e[27]!==S||e[28]!==g?(k=t.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:g,children:[N,S]}),e[26]=N,e[27]=S,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,b]=Q.useState(0),[_,N]=Q.useState(void 0);x!==f&&(u(f),v(null),N(void 0),b(Me));const{persistSeo:S,persistRawSeo:k,flush:C,isPending:te}=ke({orgSlug:i,virtualMcpId:r,branch:h,target:o,resolved:c,onSaved:m}),K=o.kind==="page",ve=K?c?.rawSeoData:void 0,B=_!==void 0?_:ve,ye=K?_e(B)??void 0:void 0,w=j??ye??g??{},F=c?we(w,c):null,z=F&&(!K||Ce(B))?ze(F,s):null;let M;e[0]!==s?(M=Te(s),e[0]=s,e[1]=M):M=e[1];const oe=M;let R,X;e[2]!==a||e[3]!==w||e[4]!==s||e[5]!==o.kind?(R=o.kind==="page"?Fe(a,s)?.seoData??{}:{},X=o.kind==="page"?Ge(R,w):w,e[2]=a,e[3]=w,e[4]=s,e[5]=o.kind,e[6]=R,e[7]=X):(R=e[6],X=e[7]);const ie=X;let G;e[8]!==S||e[9]!==c||e[10]!==v?(G=E=>{if(!c)return;const de=E;v(de),S(de)},e[8]=S,e[9]=c,e[10]=v,e[11]=G):G=e[11];const se=G;let V;e[12]!==v?(V=()=>v(null),e[12]=v,e[13]=V):V=e[13];const le=V;let Y;e[14]!==b?(Y=()=>b(Ke),e[14]=b,e[15]=Y):Y=e[15];const re=Y;let H;e[16]!==C||e[17]!==d?(H=()=>{C(),d?.()},e[16]=C,e[17]=d,e[18]=H):H=e[18];const ae=H,P=o.kind==="page"?o.path:"/";let W;e[19]!==P||e[20]!==l||e[21]!==o.kind?(W=o.kind==="page"&&l?Xe(P,l):l??null,e[19]=P,e[20]=l,e[21]=o.kind,e[22]=W):W=e[22];const ne=W,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(Se,{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(be,{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]!==S||e[50]!==ie||e[51]!==ne||e[52]!==c||e[53]!==z||e[54]!==v||e[55]!==N||e[56]!==q||e[57]!==me||e[58]!==R?(A=!c||!q&&!me?t.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ce}):t.jsxs("div",{className:"flex min-h-0 flex-1",children:[t.jsx(ue,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"px-5 py-4",children:q?t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:"Empty fields inherit the default SEO. The preview shows the resolved result."}),t.jsx(Re,{rawSeo:B,innerSeo:w,defaultResolveType:oe,seoSchema:z,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:y,siteDefaultSeo:R,onPersistRaw:E=>{N(E),k(E)},onInnerChange:E=>{v(E),S(E)},onClearForm:le,onBumpFormKey:re})]}):z&&F&&t.jsx(Ee,{schema:z,resolveType:F,value:w,formResetKey:y,onChange:se})})}),t.jsx(ue,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"@container px-5 py-4",children:t.jsx(Ue,{seo:ie,url:ne,path:P})})})]}),e[38]=F,e[39]=re,e[40]=le,e[41]=oe,e[42]=B,e[43]=w,e[44]=ce,e[45]=y,e[46]=se,e[47]=P,e[48]=k,e[49]=S,e[50]=ie,e[51]=ne,e[52]=c,e[53]=z,e[54]=v,e[55]=N,e[56]=q,e[57]=me,e[58]=R,e[59]=A):A=e[59];let J;return e[60]!==I||e[61]!==A?(J=t.jsxs("div",{className:"flex h-full w-full flex-col",children:[I,A]}),e[60]=I,e[61]=A,e[62]=J):J=e[62],J}function Ke(n){return n+1}function Me(n){return n+1}function Xe(n,e){try{return new URL(n,e).href}catch{return e}}function Ge(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{c as S,a5 as A,j as s,N as Q,e as L,l as k,$ as D,L as B,R as G,a9 as I,a as T,i as F,r as K,O as U}from"./index-fTBvXwtq.js";import{u as E}from"./useRouterState-DnqIZgiT.js";import{j as V,k as X,l as Y,S as q,a as w,b as O,d as M,c as P,f as Z,g as ee}from"./sidebar-CYWiRPI2.js";import{a as se}from"./index-pasDzH67.js";import{n as te,c as le,a as re,d as oe,b as ie,i as W}from"./ZapSquare-4ta3HU4A.js";import{t as ne,a as R}from"./Users03-CH4KGn7q.js";import{i as ae}from"./HardDrive-bbtqUR30.js";import{i as ce}from"./Key01-DQPMjuS7.js";import{i as me}from"./Shield01-D8BSHCuL.js";import{s as fe}from"./User01-Cn7CiRhy.js";import{i as de}from"./Zap-CLmJ7X99.js";import{d as xe}from"./use-organization-settings-4fF6reF2.js";import{a as ue}from"./use-capability-DqpCecgW.js";import{u as be}from"./use-join-requests-B3QaYtT8.js";import{u as H}from"./use-mobile-9MTF5ix-.js";import{u as pe}from"./use-status-sounds-BeMLu_4s.js";import{T as y}from"./toolbar-f57IeKJA.js";import{S as he,M as ge}from"./shell-controls-rVApaBEX.js";import"./LayoutLeft-Dh8b6qBD.js";import"./X-CCOY7lES.js";import"./tooltip-BeUHG-np.js";import"./constants-CaIX_f5U.js";import"./studio-tools-Bgge8r2I.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-CZZxmCko.js";import"./decopilot-sse-pool-CDyfzRYy.js";import"./backoff-CrEUbyZT.js";import"./toolbar-icon-button-BxWJLLOv.js";function J(){const e=S.c(21),{capabilities:t,isPrivileged:u,loading:f,error:i}=ue(),l=be().length;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(ne,{size:14}),e[0]=r):r=e[0];let o,n;if(e[1]!==t||e[2]!==i||e[3]!==u||e[4]!==l||e[5]!==f){n=Symbol.for("react.early_return_sentinel");e:{let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(te,{size:14}),e[8]=d):d=e[8];let b;e[9]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(le,{size:14}),e[9]=b):b=e[9];let a;e[10]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(ce,{size:14}),e[10]=a):a=e[10];let h;e[11]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(ae,{size:14}),e[11]=h):h=e[11];let c;e[12]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(re,{size:14}),e[12]=c):c=e[12];let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(R,{size:14}),e[13]=m):m=e[13];let x;e[14]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(de,{size:14}),e[14]=x):x=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(oe,{size:14}),e[15]=g):g=e[15];let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(ie,{size:14}),e[16]=p):p=e[16];let _;e[17]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(R,{size:14}),e[17]=_):_=e[17];let j;e[18]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(me,{size:14}),e[18]=j):j=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(D,{size:14}),e[19]=v):v=e[19];let N;e[20]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(fe,{size:14}),e[20]=N):N=e[20];const z=[{label:"Organization",items:[{key:"general",label:"General",icon:r,to:"/$org/settings/general",requires:"org:manage"},{key:"brand-context",label:"Brand Context",icon:d,to:"/$org/settings/brand-context",requires:"org:manage"},{key:"ai-providers",label:"AI Providers",icon:b,to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"secrets",label:"Secrets",icon:a,to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"buckets",label:"Buckets",icon:h,to:"/$org/settings/buckets",requires:"file-configs:manage"}]},{label:"Build",items:[{key:"connections",label:"Connections",icon:c,to:"/$org/settings/connections"},{key:"agents",label:"Agents",icon:m,to:"/$org/settings/agents"},{key:"automations",label:"Automations",icon:x,to:"/$org/settings/automations",requires:"automations:manage"},{key:"store",label:"Store",icon:g,to:"/$org/settings/store",requires:"registry:manage"}]},{label:"Manage",items:[{key:"monitor",label:"Monitor",icon:p,to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:"Members",icon:_,to:"/$org/settings/members",requires:"members:manage",badge:l},{key:"roles",label:"Roles",icon:j,to:"/$org/settings/roles",privilegedOnly:!0},{key:"sso",label:"Security",icon:v,to:"/$org/settings/sso",requires:"org:manage"}]},{label:"Account",items:[{key:"profile",label:"Profile & Preferences",icon:N,to:"/$org/settings/profile"}]}];if(f||i){n=z;break e}o=z.map(C=>({...C,items:C.items.filter($=>$.privilegedOnly?u:$.requires?u||t[$.requires]:!0)})).filter(je)}e[1]=t,e[2]=i,e[3]=u,e[4]=l,e[5]=f,e[6]=o,e[7]=n}else o=e[6],n=e[7];return n!==Symbol.for("react.early_return_sentinel")?n:o}function je(e){return e.items.length>0}function _e(){const e=S.c(19),t=J();let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={from:"/shell/$org"},e[0]=u):u=e[0];const{org:f}=L(u);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={select:Se},e[1]=i):i=e[1];const l=E(i);let r;e[2]!==f||e[3]!==l?(r=m=>{const x=m.replace("$org",f);return l.startsWith(x)},e[2]=f,e[3]=l,e[4]=r):r=e[4];const o=r;let n;if(e[5]!==t||e[6]!==o||e[7]!==f){let m;e[9]!==o||e[10]!==f?(m=(x,g)=>s.jsxs(q,{className:"pt-0 pr-0 pb-0 pl-0",children:[x.label&&s.jsx("p",{className:k("px-2 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",g>0&&"mt-3"),children:x.label}),s.jsx(w,{children:s.jsx(O,{className:"gap-0.5",children:x.items.map(p=>s.jsx(M,{children:s.jsx(P,{asChild:!0,isActive:o(p.to),children:s.jsxs(B,{to:p.to,params:{org:f},onClick:()=>G("settings_nav_clicked",{section_key:p.key,section_label:p.label,group_label:x.label||"main"}),className:"flex items-center gap-2.5 text-sm",children:[s.jsxs("span",{className:"relative shrink-0",children:[p.icon,p.badge?s.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-red-500 pointer-events-none"}):null]}),s.jsx("span",{className:"truncate",children:p.label})]})})},p.key))})})]},`${x.label}-${g}`),e[9]=o,e[10]=f,e[11]=m):m=e[11],n=t.map(m),e[5]=t,e[6]=o,e[7]=f,e[8]=n}else n=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 b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsxs(q,{className:"pt-0 pr-0 pb-0 pl-0",children:[d,s.jsx(w,{children:s.jsx(O,{className:"gap-0.5",children:s.jsx(M,{children:s.jsxs(P,{onClick:ye,className:"flex items-center gap-2.5 text-sm",children:[s.jsx("span",{className:"shrink-0",children:s.jsx(W,{size:14})}),s.jsx("span",{className:"truncate",children:"Sign Out"})]})})})})]}),e[13]=b):b=e[13];let a;e[14]!==n?(a=s.jsxs(Z,{className:"flex flex-col flex-1 mt-2 px-2 pb-2 gap-0 overflow-y-auto",children:[n,b]}),e[14]=n,e[15]=a):a=e[15];let h;e[16]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx("div",{className:"mt-auto px-4 pb-1",children:s.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.58.0"]})}),e[16]=h):h=e[16];let c;return e[17]!==a?(c=s.jsxs(ee,{variant:"sidebar",children:[a,h]}),e[17]=a,e[18]=c):c=e[18],c}function ye(){G("signed_out",{source:"settings_sidebar"}),I(),T.signOut()}function Se(e){return e.location.pathname}function ve(e){const t=S.c(21),{onClose:u}=e,f=J();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={from:"/shell/$org"},t[0]=i):i=t[0];const{org:l}=L(i);let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={select:ke},t[1]=r):r=t[1];const o=E(r);let n;t[2]!==l||t[3]!==o?(n=g=>{const p=g.replace("$org",l);return o.startsWith(p)},t[2]=l,t[3]=o,t[4]=n):n=t[4];const d=n;let b;if(t[5]!==f||t[6]!==d||t[7]!==u||t[8]!==l){let g;t[10]!==d||t[11]!==u||t[12]!==l?(g=(p,_)=>s.jsxs("div",{className:"flex flex-col gap-0.5",children:[p.label&&s.jsx("p",{className:k("px-3 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",_>0&&"mt-3"),children:p.label}),p.items.map(j=>s.jsxs(B,{to:j.to,params:{org:l},onClick:u,className:k("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.jsxs("span",{className:"relative shrink-0",children:[j.icon,j.badge?s.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-red-500 pointer-events-none"}):null]}),s.jsx("span",{className:"truncate",children:j.label})]},j.key))]},`${p.label}-${_}`),t[10]=d,t[11]=u,t[12]=l,t[13]=g):g=t[13],b=f.map(g),t[5]=f,t[6]=d,t[7]=u,t[8]=l,t[9]=b}else b=t[9];let a;t[14]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"h-px bg-border/50 my-2"}),t[14]=a):a=t[14];let h;t[15]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[a,s.jsxs("button",{type:"button",onClick:Ne,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(W,{size:14})}),s.jsx("span",{className:"truncate",children:"Sign Out"})]})]}),t[15]=h):h=t[15];let c;t[16]!==b?(c=s.jsxs("div",{className:"flex flex-col flex-1 overflow-y-auto px-2 py-2 gap-0.5",children:[b,h]}),t[16]=b,t[17]=c):c=t[17];let m;t[18]===Symbol.for("react.memo_cache_sentinel")?(m=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","4.58.0"]})}),t[18]=m):m=t[18];let x;return t[19]!==c?(x=s.jsxs("div",{className:"flex flex-col h-full bg-sidebar",children:[c,m]}),t[19]=c,t[20]=x):x=t[20],x}function Ne(){I(),T.signOut()}function ke(e){return e.location.pathname}function $e(){const e=S.c(4),t=H(),{org:u}=A();pe(u.slug);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(F,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=f):f=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(K.Suspense,{fallback:f,children:s.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:s.jsx(se,{value:"p-0",children:s.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:s.jsx(U,{})})})})}),e[1]=i):i=e[1];const l=i;if(t){let o;return e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex flex-col flex-1 bg-background min-h-0 overflow-hidden",children:l}),e[2]=o):o=e[2],o}let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"flex-1 min-h-0 p-1",children:s.jsx("div",{className:k("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),children:l})}),e[3]=r):r=e[3],r}function ts(){const e=S.c(23),t=H(),{org:u}=A();if(xe()){let g;return e[0]!==u.slug?(g=s.jsx(Q,{to:"/commerce-onboarding",search:{org:u.slug},replace:!0}),e[0]=u.slug,e[1]=g):g=e[1],g}let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(y.LogoLink,{}),e[2]=i):i=e[2];let l;e[3]!==t?(l=t&&s.jsx(he,{}),e[3]=t,e[4]=l):l=e[4];let r;e[5]!==l?(r=s.jsxs(y.LeftColumn,{children:[i,l]}),e[5]=l,e[6]=r):r=e[6];let o;e[7]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(y.CenterSlot,{}),e[7]=o):o=e[7];let n;e[8]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(y.RightColumn,{children:s.jsx("span",{})}),e[8]=n):n=e[8];let d;e[9]!==r?(d=s.jsxs(y.Header,{children:[r,o,n]}),e[9]=r,e[10]=d):d=e[10];let b;e[11]===Symbol.for("react.memo_cache_sentinel")?(b={"--sidebar-width-icon":"3.5rem"},e[11]=b):b=e[11];let a;e[12]!==t?(a=!t&&s.jsx(_e,{}),e[12]=t,e[13]=a):a=e[13];let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(V,{className:"flex flex-col",style:{background:"transparent",containerType:"inline-size"},children:s.jsx($e,{})}),e[14]=h):h=e[14];let c;e[15]!==a?(c=s.jsxs(X,{className:"flex-1 bg-sidebar min-h-0",style:b,children:[a,h]}),e[15]=a,e[16]=c):c=e[16];let m;e[17]!==t?(m=t&&s.jsx(ge,{renderSidebar:ze}),e[17]=t,e[18]=m):m=e[18];let x;return e[19]!==m||e[20]!==d||e[21]!==c?(x=s.jsx(y.Provider,{children:s.jsx(Y,{defaultOpen:!0,children:s.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[d,c,m]})})}),e[19]=m,e[20]=d,e[21]=c,e[22]=x):x=e[22],x}function ze(e){const{onClose:t}=e;return s.jsx(ve,{onClose:t})}export{_e as SettingsSidebar,ve as SettingsSidebarMobile,ts as default};
|
|
1
|
+
import{c as S,a5 as A,j as s,N as Q,e as L,l as k,$ as D,L as B,R as G,a9 as I,a as T,i as F,r as K,O as U}from"./index-CE7Jzo0Y.js";import{u as E}from"./useRouterState-DrUN6v2W.js";import{j as V,k as X,l as Y,S as q,a as w,b as O,d as M,c as P,f as Z,g as ee}from"./sidebar-DEGnavl-.js";import{a as se}from"./index-ClvxTMee.js";import{n as te,c as le,a as re,d as oe,b as ie,i as W}from"./ZapSquare-vhGlfaIe.js";import{t as ne,a as R}from"./Users03-CQemWhYw.js";import{i as ae}from"./HardDrive-B7X8S1zT.js";import{i as ce}from"./Key01-CvEHhjaQ.js";import{i as me}from"./Shield01-DBYYWk72.js";import{s as fe}from"./User01-DSAgnBZM.js";import{i as de}from"./Zap-LK71Qw10.js";import{d as xe}from"./use-organization-settings-DnJMCRoV.js";import{a as ue}from"./use-capability-BjfQMpiC.js";import{u as be}from"./use-join-requests-_Jnj29j6.js";import{u as H}from"./use-mobile-J-gsekNR.js";import{u as pe}from"./use-status-sounds-BJOW0AJk.js";import{T as y}from"./toolbar-C5HBDWWH.js";import{S as he,M as ge}from"./shell-controls-qAQVXXT6.js";import"./LayoutLeft-s8OpLO9_.js";import"./X-CERA5XX-.js";import"./tooltip-Vu1Uuv9_.js";import"./constants-CaIX_f5U.js";import"./studio-tools-D1EUgEy9.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-DmjCRfAR.js";import"./decopilot-sse-pool-5WtA4uC2.js";import"./backoff-CrEUbyZT.js";import"./toolbar-icon-button-DjPm2uc7.js";function J(){const e=S.c(21),{capabilities:t,isPrivileged:u,loading:f,error:i}=ue(),l=be().length;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(ne,{size:14}),e[0]=r):r=e[0];let o,n;if(e[1]!==t||e[2]!==i||e[3]!==u||e[4]!==l||e[5]!==f){n=Symbol.for("react.early_return_sentinel");e:{let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(te,{size:14}),e[8]=d):d=e[8];let b;e[9]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(le,{size:14}),e[9]=b):b=e[9];let a;e[10]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(ce,{size:14}),e[10]=a):a=e[10];let h;e[11]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(ae,{size:14}),e[11]=h):h=e[11];let c;e[12]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(re,{size:14}),e[12]=c):c=e[12];let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(R,{size:14}),e[13]=m):m=e[13];let x;e[14]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(de,{size:14}),e[14]=x):x=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(oe,{size:14}),e[15]=g):g=e[15];let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(ie,{size:14}),e[16]=p):p=e[16];let _;e[17]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(R,{size:14}),e[17]=_):_=e[17];let j;e[18]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(me,{size:14}),e[18]=j):j=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(D,{size:14}),e[19]=v):v=e[19];let N;e[20]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(fe,{size:14}),e[20]=N):N=e[20];const z=[{label:"Organization",items:[{key:"general",label:"General",icon:r,to:"/$org/settings/general",requires:"org:manage"},{key:"brand-context",label:"Brand Context",icon:d,to:"/$org/settings/brand-context",requires:"org:manage"},{key:"ai-providers",label:"AI Providers",icon:b,to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"secrets",label:"Secrets",icon:a,to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"buckets",label:"Buckets",icon:h,to:"/$org/settings/buckets",requires:"file-configs:manage"}]},{label:"Build",items:[{key:"connections",label:"Connections",icon:c,to:"/$org/settings/connections"},{key:"agents",label:"Agents",icon:m,to:"/$org/settings/agents"},{key:"automations",label:"Automations",icon:x,to:"/$org/settings/automations",requires:"automations:manage"},{key:"store",label:"Store",icon:g,to:"/$org/settings/store",requires:"registry:manage"}]},{label:"Manage",items:[{key:"monitor",label:"Monitor",icon:p,to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:"Members",icon:_,to:"/$org/settings/members",requires:"members:manage",badge:l},{key:"roles",label:"Roles",icon:j,to:"/$org/settings/roles",privilegedOnly:!0},{key:"sso",label:"Security",icon:v,to:"/$org/settings/sso",requires:"org:manage"}]},{label:"Account",items:[{key:"profile",label:"Profile & Preferences",icon:N,to:"/$org/settings/profile"}]}];if(f||i){n=z;break e}o=z.map(C=>({...C,items:C.items.filter($=>$.privilegedOnly?u:$.requires?u||t[$.requires]:!0)})).filter(je)}e[1]=t,e[2]=i,e[3]=u,e[4]=l,e[5]=f,e[6]=o,e[7]=n}else o=e[6],n=e[7];return n!==Symbol.for("react.early_return_sentinel")?n:o}function je(e){return e.items.length>0}function _e(){const e=S.c(19),t=J();let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={from:"/shell/$org"},e[0]=u):u=e[0];const{org:f}=L(u);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={select:Se},e[1]=i):i=e[1];const l=E(i);let r;e[2]!==f||e[3]!==l?(r=m=>{const x=m.replace("$org",f);return l.startsWith(x)},e[2]=f,e[3]=l,e[4]=r):r=e[4];const o=r;let n;if(e[5]!==t||e[6]!==o||e[7]!==f){let m;e[9]!==o||e[10]!==f?(m=(x,g)=>s.jsxs(q,{className:"pt-0 pr-0 pb-0 pl-0",children:[x.label&&s.jsx("p",{className:k("px-2 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",g>0&&"mt-3"),children:x.label}),s.jsx(w,{children:s.jsx(O,{className:"gap-0.5",children:x.items.map(p=>s.jsx(M,{children:s.jsx(P,{asChild:!0,isActive:o(p.to),children:s.jsxs(B,{to:p.to,params:{org:f},onClick:()=>G("settings_nav_clicked",{section_key:p.key,section_label:p.label,group_label:x.label||"main"}),className:"flex items-center gap-2.5 text-sm",children:[s.jsxs("span",{className:"relative shrink-0",children:[p.icon,p.badge?s.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-red-500 pointer-events-none"}):null]}),s.jsx("span",{className:"truncate",children:p.label})]})})},p.key))})})]},`${x.label}-${g}`),e[9]=o,e[10]=f,e[11]=m):m=e[11],n=t.map(m),e[5]=t,e[6]=o,e[7]=f,e[8]=n}else n=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 b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsxs(q,{className:"pt-0 pr-0 pb-0 pl-0",children:[d,s.jsx(w,{children:s.jsx(O,{className:"gap-0.5",children:s.jsx(M,{children:s.jsxs(P,{onClick:ye,className:"flex items-center gap-2.5 text-sm",children:[s.jsx("span",{className:"shrink-0",children:s.jsx(W,{size:14})}),s.jsx("span",{className:"truncate",children:"Sign Out"})]})})})})]}),e[13]=b):b=e[13];let a;e[14]!==n?(a=s.jsxs(Z,{className:"flex flex-col flex-1 mt-2 px-2 pb-2 gap-0 overflow-y-auto",children:[n,b]}),e[14]=n,e[15]=a):a=e[15];let h;e[16]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx("div",{className:"mt-auto px-4 pb-1",children:s.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.58.2"]})}),e[16]=h):h=e[16];let c;return e[17]!==a?(c=s.jsxs(ee,{variant:"sidebar",children:[a,h]}),e[17]=a,e[18]=c):c=e[18],c}function ye(){G("signed_out",{source:"settings_sidebar"}),I(),T.signOut()}function Se(e){return e.location.pathname}function ve(e){const t=S.c(21),{onClose:u}=e,f=J();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={from:"/shell/$org"},t[0]=i):i=t[0];const{org:l}=L(i);let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={select:ke},t[1]=r):r=t[1];const o=E(r);let n;t[2]!==l||t[3]!==o?(n=g=>{const p=g.replace("$org",l);return o.startsWith(p)},t[2]=l,t[3]=o,t[4]=n):n=t[4];const d=n;let b;if(t[5]!==f||t[6]!==d||t[7]!==u||t[8]!==l){let g;t[10]!==d||t[11]!==u||t[12]!==l?(g=(p,_)=>s.jsxs("div",{className:"flex flex-col gap-0.5",children:[p.label&&s.jsx("p",{className:k("px-3 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",_>0&&"mt-3"),children:p.label}),p.items.map(j=>s.jsxs(B,{to:j.to,params:{org:l},onClick:u,className:k("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.jsxs("span",{className:"relative shrink-0",children:[j.icon,j.badge?s.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-red-500 pointer-events-none"}):null]}),s.jsx("span",{className:"truncate",children:j.label})]},j.key))]},`${p.label}-${_}`),t[10]=d,t[11]=u,t[12]=l,t[13]=g):g=t[13],b=f.map(g),t[5]=f,t[6]=d,t[7]=u,t[8]=l,t[9]=b}else b=t[9];let a;t[14]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"h-px bg-border/50 my-2"}),t[14]=a):a=t[14];let h;t[15]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[a,s.jsxs("button",{type:"button",onClick:Ne,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(W,{size:14})}),s.jsx("span",{className:"truncate",children:"Sign Out"})]})]}),t[15]=h):h=t[15];let c;t[16]!==b?(c=s.jsxs("div",{className:"flex flex-col flex-1 overflow-y-auto px-2 py-2 gap-0.5",children:[b,h]}),t[16]=b,t[17]=c):c=t[17];let m;t[18]===Symbol.for("react.memo_cache_sentinel")?(m=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","4.58.2"]})}),t[18]=m):m=t[18];let x;return t[19]!==c?(x=s.jsxs("div",{className:"flex flex-col h-full bg-sidebar",children:[c,m]}),t[19]=c,t[20]=x):x=t[20],x}function Ne(){I(),T.signOut()}function ke(e){return e.location.pathname}function $e(){const e=S.c(4),t=H(),{org:u}=A();pe(u.slug);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(F,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=f):f=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(K.Suspense,{fallback:f,children:s.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:s.jsx(se,{value:"p-0",children:s.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:s.jsx(U,{})})})})}),e[1]=i):i=e[1];const l=i;if(t){let o;return e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex flex-col flex-1 bg-background min-h-0 overflow-hidden",children:l}),e[2]=o):o=e[2],o}let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"flex-1 min-h-0 p-1",children:s.jsx("div",{className:k("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),children:l})}),e[3]=r):r=e[3],r}function ts(){const e=S.c(23),t=H(),{org:u}=A();if(xe()){let g;return e[0]!==u.slug?(g=s.jsx(Q,{to:"/commerce-onboarding",search:{org:u.slug},replace:!0}),e[0]=u.slug,e[1]=g):g=e[1],g}let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(y.LogoLink,{}),e[2]=i):i=e[2];let l;e[3]!==t?(l=t&&s.jsx(he,{}),e[3]=t,e[4]=l):l=e[4];let r;e[5]!==l?(r=s.jsxs(y.LeftColumn,{children:[i,l]}),e[5]=l,e[6]=r):r=e[6];let o;e[7]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(y.CenterSlot,{}),e[7]=o):o=e[7];let n;e[8]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(y.RightColumn,{children:s.jsx("span",{})}),e[8]=n):n=e[8];let d;e[9]!==r?(d=s.jsxs(y.Header,{children:[r,o,n]}),e[9]=r,e[10]=d):d=e[10];let b;e[11]===Symbol.for("react.memo_cache_sentinel")?(b={"--sidebar-width-icon":"3.5rem"},e[11]=b):b=e[11];let a;e[12]!==t?(a=!t&&s.jsx(_e,{}),e[12]=t,e[13]=a):a=e[13];let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(V,{className:"flex flex-col",style:{background:"transparent",containerType:"inline-size"},children:s.jsx($e,{})}),e[14]=h):h=e[14];let c;e[15]!==a?(c=s.jsxs(X,{className:"flex-1 bg-sidebar min-h-0",style:b,children:[a,h]}),e[15]=a,e[16]=c):c=e[16];let m;e[17]!==t?(m=t&&s.jsx(ge,{renderSidebar:ze}),e[17]=t,e[18]=m):m=e[18];let x;return e[19]!==m||e[20]!==d||e[21]!==c?(x=s.jsx(y.Provider,{children:s.jsx(Y,{defaultOpen:!0,children:s.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[d,c,m]})})}),e[19]=m,e[20]=d,e[21]=c,e[22]=x):x=e[22],x}function ze(e){const{onClose:t}=e;return s.jsx(ve,{onClose:t})}export{_e as SettingsSidebar,ve as SettingsSidebarMobile,ts as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,l as N,j as r,r as S}from"./index-
|
|
1
|
+
import{c as v,l as N,j as r,r as S}from"./index-CE7Jzo0Y.js";import{C as w}from"./card-Ctjdx224.js";import{i as E}from"./ArrowUpRight-dKwmf_Po.js";function I(c){const e=v.c(12),{title:i,description:l,docsHref:t,actions:s,className:n,headerClassName:a,children:d}=c;let m;e[0]!==n?(m=N("flex flex-col gap-3",n),e[0]=n,e[1]=m):m=e[1];let f;e[2]!==s||e[3]!==l||e[4]!==t||e[5]!==a||e[6]!==i?(f=(i||l||t||s)&&r.jsxs("div",{className:N("flex items-center justify-between gap-3 px-4",a),children:[r.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[i&&r.jsx("h2",{className:"text-[15px] font-medium leading-tight",children:i}),(l||t)&&r.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[l,t&&r.jsxs("a",{href:t,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",r.jsx(E,{size:12})]})]})]}),s&&r.jsx("div",{className:"shrink-0",children:s})]}),e[2]=s,e[3]=l,e[4]=t,e[5]=a,e[6]=i,e[7]=f):f=e[7];let o;return e[8]!==d||e[9]!==m||e[10]!==f?(o=r.jsxs("section",{className:m,children:[f,d]}),e[8]=d,e[9]=m,e[10]=f,e[11]=o):o=e[11],o}function P(c){const e=v.c(11),{className:i,children:l}=c;let t,s,n;if(e[0]!==l||e[1]!==i){const d=S.Children.toArray(l).filter(S.isValidElement);t=w,e[5]!==i?(s=N("p-0 gap-0 overflow-hidden",i),e[5]=i,e[6]=s):s=e[6],n=d.map($),e[0]=l,e[1]=i,e[2]=t,e[3]=s,e[4]=n}else t=e[2],s=e[3],n=e[4];let a;return e[7]!==t||e[8]!==s||e[9]!==n?(a=r.jsx(t,{className:s,children:n}),e[7]=t,e[8]=s,e[9]=n,e[10]=a):a=e[10],a}function $(c,e){return r.jsxs("div",{children:[e>0&&r.jsx("div",{className:"h-px bg-border mx-5"}),c]},e)}function R(c){const e=v.c(27),{icon:i,title:l,description:t,action:s,onClick:n,className:a,children:d}=c,m=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",f=n&&"hover:bg-muted/50 cursor-pointer";let o;e[0]!==a||e[1]!==m||e[2]!==f?(o=N(m,f,a),e[0]=a,e[1]=m,e[2]=f,e[3]=o):o=e[3];const b=n?"button":void 0,C=n?0:void 0;let x;e[4]!==n?(x=n?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),n())}:void 0,e[4]=n,e[5]=x):x=e[5];let p;e[6]!==i?(p=i&&r.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:i}),e[6]=i,e[7]=p):p=e[7];let u;e[8]!==l?(u=r.jsx("div",{className:"text-sm font-medium",children:l}),e[8]=l,e[9]=u):u=e[9];let h;e[10]!==t?(h=t&&r.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:t}),e[10]=t,e[11]=h):h=e[11];let g;e[12]!==d||e[13]!==u||e[14]!==h?(g=r.jsxs("div",{className:"flex-1 min-w-0",children:[u,h,d]}),e[12]=d,e[13]=u,e[14]=h,e[15]=g):g=e[15];let j;e[16]!==s?(j=s&&r.jsx("div",{className:"shrink-0",onClick:D,children:s}),e[16]=s,e[17]=j):j=e[17];let y;return e[18]!==n||e[19]!==g||e[20]!==j||e[21]!==o||e[22]!==b||e[23]!==C||e[24]!==x||e[25]!==p?(y=r.jsxs("div",{className:o,onClick:n,role:b,tabIndex:C,onKeyDown:x,children:[p,g,j]}),e[18]=n,e[19]=g,e[20]=j,e[21]=o,e[22]=b,e[23]=C,e[24]=x,e[25]=p,e[26]=y):y=e[26],y}function D(c){return c.stopPropagation()}function H(c){const e=v.c(5),{children:i,className:l}=c;let t;e[0]!==l?(t=N("flex items-center justify-end gap-2 px-4 py-4",l),e[0]=l,e[1]=t):t=e[1];let s;return e[2]!==i||e[3]!==t?(s=r.jsx("div",{className:t,children:i}),e[2]=i,e[3]=t,e[4]=s):s=e[4],s}function K(c){const e=v.c(5),{className:i,children:l}=c;let t;e[0]!==i?(t=N("flex flex-col gap-10",i),e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==l||e[3]!==t?(s=r.jsx("div",{className:t,children:l}),e[2]=l,e[3]=t,e[4]=s):s=e[4],s}export{I as S,P as a,R as b,K as c,H as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,j as a}from"./index-
|
|
1
|
+
import{c as f,j as a}from"./index-CE7Jzo0Y.js";import{u as p,m as b,p as d,q as h}from"./sidebar-DEGnavl-.js";import{i as u}from"./LayoutLeft-s8OpLO9_.js";import{T as S}from"./toolbar-icon-button-DjPm2uc7.js";function T(){const t=f.c(3),{toggleSidebar:e}=p();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(u,{size:16}),t[0]=o):o=t[0];let s;return t[1]!==e?(s=a.jsx(S,{onClick:e,"aria-label":"Toggle sidebar",children:o}),t[1]=e,t[2]=s):s=t[2],s}function M(t){const e=f.c(12),{renderSidebar:o}=t,{openMobile:s,setOpenMobile:i}=p();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(b,{className:"sr-only",children:"Navigation"}),e[0]=c):c=e[0];let n;e[1]!==i?(n=()=>i(!1),e[1]=i,e[2]=n):n=e[2];let l;e[3]!==o||e[4]!==n?(l=o({onClose:n}),e[3]=o,e[4]=n,e[5]=l):l=e[5];let r;e[6]!==l?(r=a.jsxs(d,{side:"left",hideCloseButton:!0,className:"w-screen max-w-none! p-0",children:[c,l]}),e[6]=l,e[7]=r):r=e[7];let m;return e[8]!==s||e[9]!==i||e[10]!==r?(m=a.jsx(h,{open:s,onOpenChange:i,children:r}),e[8]=s,e[9]=i,e[10]=r,e[11]=m):m=e[11],m}export{M,T as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,d as ee,j as n,B as T,bU as H,t as W,$ as ye,a as Y,X as Ne,P as xe,K as se,bV as _e,bW as Ae,Y as B,r as K,m as te,bX as Ce,bY as Oe,b as Te,a5 as Ee,e as be,u as $e,a6 as ze,aZ as Pe,bZ as De,b_ as ue,b$ as Ie,c0 as Le,S as Fe,O as Me,c1 as Re}from"./index-fTBvXwtq.js";import{A as oe}from"./avatar-BLw8Q1_P.js";import{t as we,a as qe}from"./Users03-CH4KGn7q.js";import{i as Ue}from"./SearchLg-DtlozG9O.js";import{i as Ge,s as Ke,a as P,n as He}from"./Stars02-DV2x_8X4.js";import{s as Be}from"./XClose-BZZDYipc.js";import{i as I}from"./CheckCircle-V3Hv2XSA.js";import{i as me}from"./FilterLines-DEPqd77p.js";import{i as G}from"./Zap-CLmJ7X99.js";import{d as Ye,D as We,a as Je,e as Qe}from"./dialog-fh7l4sng.js";import{b as Ve,c as Xe,d as Ze,a as et,e as tt,g as nt,f as st}from"./alert-dialog-DlH1qn27.js";import{R as ot}from"./required-auth-layout-BQbJTgYE.js";import{A as it}from"./autosend-Dqth_Lvz.js";import{m as at}from"./use-mcp-client-DtdzmFrp.js";import{a as fe,S as rt}from"./constants-CaIX_f5U.js";import{g as lt,c as ct}from"./hooks-BOmfFPA1.js";import{q as dt}from"./tab-id-bb-jjgGv.js";import{f as ut}from"./use-organization-settings-4fF6reF2.js";import{u as mt}from"./use-org-sso-D1Hh9X5_.js";function ft(t){const e=k.c(27),{orgName:s,orgSlug:o,orgLogo:a,domain:r}=t;let i;e[0]!==o?(i={mutationFn:async()=>{const S=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:o})}),v=await S.json();if(!S.ok||!v.success)throw new Error(v.error??"Failed to join organization");return v},onSuccess:S=>{window.location.href=`/${S.slug??o}`},onError:gt},e[0]=o,e[1]=i):i=e[1];const l=ee(i),c=ht;let d;e[2]!==a||e[3]!==s?(d=a?n.jsx(oe,{url:a,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(we,{className:"h-6 w-6 text-primary"})}),e[2]=a,e[3]=s,e[4]=d):d=e[4];let u;e[5]!==s?(u=n.jsxs("h3",{className:"text-lg font-medium",children:["Join ",s,"?"]}),e[5]=s,e[6]=u):u=e[6];let m;e[7]!==r?(m=n.jsxs("p",{className:"text-sm text-muted-foreground",children:["Anyone with an ",n.jsxs("strong",{children:["@",r]})," email can join this organization."]}),e[7]=r,e[8]=m):m=e[8];let h;e[9]!==u||e[10]!==m?(h=n.jsxs("div",{className:"space-y-2",children:[u,m]}),e[9]=u,e[10]=m,e[11]=h):h=e[11];let p;e[12]!==l?(p=()=>l.mutate(),e[12]=l,e[13]=p):p=e[13];const f=l.isPending?"Joining…":`Enter ${s}`;let g;e[14]!==l.isPending||e[15]!==p||e[16]!==f?(g=n.jsx(T,{onClick:p,disabled:l.isPending,children:f}),e[14]=l.isPending,e[15]=p,e[16]=f,e[17]=g):g=e[17];let y;e[18]!==l.isPending?(y=n.jsx(T,{variant:"ghost",onClick:c,disabled:l.isPending,children:"Go to home"}),e[18]=l.isPending,e[19]=y):y=e[19];let b;e[20]!==g||e[21]!==y?(b=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,y]}),e[20]=g,e[21]=y,e[22]=b):b=e[22];let x;return e[23]!==b||e[24]!==d||e[25]!==h?(x=n.jsxs(H,{children:[d,h,b]}),e[23]=b,e[24]=d,e[25]=h,e[26]=x):x=e[26],x}function ht(){window.location.href="/"}function gt(t){W.error(t instanceof Error?t.message:"Failed to join organization")}function he(t){const e=k.c(17),{orgSlug:s,orgName:o,reason:a}=t,r=pt,i=a==="not-found",l=i?Ue:ye,c=i?"Organization not found":"No access";let d;e[0]!==i||e[1]!==o||e[2]!==s?(d=i?n.jsxs(n.Fragment,{children:["We couldn't find an organization called ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:["You don't have access to ",n.jsx("strong",{children:o??s}),".",n.jsx("br",{}),"Ask an admin to invite you."]}),e[0]=i,e[1]=o,e[2]=s,e[3]=d):d=e[3];const u=d;let m;e[4]!==l?(m=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(l,{className:"h-6 w-6 text-muted-foreground"})}),e[4]=l,e[5]=m):m=e[5];let h;e[6]!==c?(h=n.jsx("h3",{className:"text-lg font-medium",children:c}),e[6]=c,e[7]=h):h=e[7];let p;e[8]!==u?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[8]=u,e[9]=p):p=e[9];let f;e[10]!==h||e[11]!==p?(f=n.jsxs("div",{className:"space-y-2",children:[h,p]}),e[10]=h,e[11]=p,e[12]=f):f=e[12];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(T,{onClick:r,children:"Go to home"}),e[13]=g):g=e[13];let y;return e[14]!==m||e[15]!==f?(y=n.jsxs(H,{children:[m,f,g]}),e[14]=m,e[15]=f,e[16]=y):y=e[16],y}function pt(){window.location.href="/"}function yt(t){const e=k.c(39),{invitationId:s,orgName:o,orgSlug:a,orgLogo:r}=t;let i;e[0]!==s?(i=async()=>{const A=await Y.organization.acceptInvitation({invitationId:s});if(A.error)throw new Error(A.error.message);return A.data},e[0]=s,e[1]=i):i=e[1];let l;e[2]!==a?(l=()=>{Ne(),window.location.href=`/${a}`},e[2]=a,e[3]=l):l=e[3];let c;e[4]!==i||e[5]!==l?(c={mutationFn:i,onSuccess:l,onError:wt},e[4]=i,e[5]=l,e[6]=c):c=e[6];const d=ee(c);let u;e[7]!==s?(u=async()=>{const A=await Y.organization.rejectInvitation({invitationId:s});if(A.error)throw new Error(A.error.message);return A.data},e[7]=s,e[8]=u):u=e[8];let m;e[9]===Symbol.for("react.memo_cache_sentinel")?(m=bt,e[9]=m):m=e[9];let h;e[10]!==u?(h={mutationFn:u,onSuccess:m,onError:xt},e[10]=u,e[11]=h):h=e[11];const p=ee(h),f=d.isPending||p.isPending;let g;e[12]!==r||e[13]!==o?(g=r?n.jsx(oe,{url:r,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Ge,{className:"h-6 w-6 text-primary"})}),e[12]=r,e[13]=o,e[14]=g):g=e[14];let y;e[15]!==o?(y=n.jsxs("h3",{className:"text-lg font-medium",children:["You've been invited to ",n.jsx("strong",{children:o})]}),e[15]=o,e[16]=y):y=e[16];let b;e[17]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx("p",{className:"text-sm text-muted-foreground",children:"Accept the invitation to join this organization."}),e[17]=b):b=e[17];let x;e[18]!==y?(x=n.jsxs("div",{className:"space-y-2",children:[y,b]}),e[18]=y,e[19]=x):x=e[19];let S;e[20]!==d?(S=()=>d.mutate(),e[20]=d,e[21]=S):S=e[21];const v=d.isPending?"Accepting…":"Accept invitation";let N;e[22]!==f||e[23]!==S||e[24]!==v?(N=n.jsx(T,{onClick:S,disabled:f,children:v}),e[22]=f,e[23]=S,e[24]=v,e[25]=N):N=e[25];let O;e[26]!==p?(O=()=>p.mutate(),e[26]=p,e[27]=O):O=e[27];const _=p.isPending?"Declining…":"Decline";let w;e[28]!==f||e[29]!==O||e[30]!==_?(w=n.jsx(T,{variant:"ghost",onClick:O,disabled:f,children:_}),e[28]=f,e[29]=O,e[30]=_,e[31]=w):w=e[31];let $;e[32]!==N||e[33]!==w?($=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,w]}),e[32]=N,e[33]=w,e[34]=$):$=e[34];let z;return e[35]!==x||e[36]!==$||e[37]!==g?(z=n.jsxs(H,{children:[g,x,$]}),e[35]=x,e[36]=$,e[37]=g,e[38]=z):z=e[38],z}function xt(t){W.error(t instanceof Error?t.message:"Failed to decline invitation")}function bt(){W.success("Invitation declined"),window.location.href="/"}function wt(t){W.error(t instanceof Error?t.message:"Failed to accept invitation")}function St(t){const e=k.c(10),{orgName:s,orgLogo:o}=t;let a;e[0]!==o||e[1]!==s?(a=o?n.jsx(oe,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Ke,{className:"h-6 w-6 text-primary"})}),e[0]=o,e[1]=s,e[2]=a):a=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx("h3",{className:"text-lg font-medium",children:"Request pending"}),e[3]=r):r=e[3];let i;e[4]!==s?(i=n.jsxs("div",{className:"space-y-2",children:[r,n.jsxs("p",{className:"text-sm text-muted-foreground",children:["Your request to join ",n.jsx("strong",{children:s})," is waiting for an admin to approve it. You'll get access once it's approved."]})]}),e[4]=s,e[5]=i):i=e[5];let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(T,{variant:"ghost",onClick:jt,children:"Go to home"}),e[6]=l):l=e[6];let c;return e[7]!==a||e[8]!==i?(c=n.jsxs(H,{children:[a,i,l]}),e[7]=a,e[8]=i,e[9]=c):c=e[9],c}function jt(){window.location.href="/"}function vt(t){const e=k.c(30),{orgName:s,orgSlug:o,orgLogo:a,domain:r}=t;let i;e[0]!==o?(i=async()=>{const v=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:o})}),N=await v.json();if(!v.ok||!N.success)throw new Error(N.error??"Failed to request access");return N},e[0]=o,e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=_t,e[2]=l):l=e[2];let c;e[3]!==i?(c={mutationFn:i,onSuccess:l,onError:Nt},e[3]=i,e[4]=c):c=e[4];const d=ee(c);let u;e[5]!==a||e[6]!==s?(u=a?n.jsx(oe,{url:a,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(we,{className:"h-6 w-6 text-primary"})}),e[5]=a,e[6]=s,e[7]=u):u=e[7];let m;e[8]!==s?(m=n.jsxs("h3",{className:"text-lg font-medium",children:["Request to join ",s,"?"]}),e[8]=s,e[9]=m):m=e[9];let h;e[10]!==r?(h=n.jsxs("p",{className:"text-sm text-muted-foreground",children:["An admin must approve requests from ",n.jsxs("strong",{children:["@",r]})," emails before you can join."]}),e[10]=r,e[11]=h):h=e[11];let p;e[12]!==m||e[13]!==h?(p=n.jsxs("div",{className:"space-y-2",children:[m,h]}),e[12]=m,e[13]=h,e[14]=p):p=e[14];let f;e[15]!==d?(f=()=>d.mutate(),e[15]=d,e[16]=f):f=e[16];const g=d.isPending?"Requesting…":"Request to join";let y;e[17]!==d.isPending||e[18]!==f||e[19]!==g?(y=n.jsx(T,{onClick:f,disabled:d.isPending,children:g}),e[17]=d.isPending,e[18]=f,e[19]=g,e[20]=y):y=e[20];let b;e[21]!==d.isPending?(b=n.jsx(T,{variant:"ghost",onClick:kt,disabled:d.isPending,children:"Go to home"}),e[21]=d.isPending,e[22]=b):b=e[22];let x;e[23]!==y||e[24]!==b?(x=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[y,b]}),e[23]=y,e[24]=b,e[25]=x):x=e[25];let S;return e[26]!==x||e[27]!==u||e[28]!==p?(S=n.jsxs(H,{children:[u,p,x]}),e[26]=x,e[27]=u,e[28]=p,e[29]=S):S=e[29],S}function kt(){window.location.href="/"}function Nt(t){W.error(t instanceof Error?t.message:"Failed to request access")}function _t(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function At(t){const e=k.c(7);let s;e[0]!==t?(s=se.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let o;e[2]!==t?(o=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=o):o=e[3];let a;return e[4]!==s||e[5]!==o?(a={queryKey:s,queryFn:o,refetchOnWindowFocus:!1},e[4]=s,e[5]=o,e[6]=a):a=e[6],xe(a)}function Ct({orgSlug:t}){const{data:e}=At(t);if(e.status!=="member"){_e()?.org===t&&Ae();const s=localStorage.getItem(B.lastOrgSlug())===t;if(s&&localStorage.removeItem(B.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(he,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(yt,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ft,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(vt,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(St,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(he,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Ot(t){const e=k.c(20),{release:s,onCtaClick:o,onLearnMoreClick:a}=t;let r;e[0]!==s.eyebrow?(r=s.eyebrow&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s.eyebrow}),e[0]=s.eyebrow,e[1]=r):r=e[1];let i;e[2]!==s.title?(i=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:s.title}),e[2]=s.title,e[3]=i):i=e[3];let l;e[4]!==r||e[5]!==i?(l=n.jsxs("div",{children:[r,i]}),e[4]=r,e[5]=i,e[6]=l):l=e[6];let c;e[7]!==s.bullets?(c=s.bullets.map(Tt),e[7]=s.bullets,e[8]=c):c=e[8];let d;e[9]!==c?(d=n.jsx("ul",{className:"flex flex-col gap-3",children:c}),e[9]=c,e[10]=d):d=e[10];let u;e[11]!==o||e[12]!==a||e[13]!==s.cta||e[14]!==s.learnMoreHref?(u=(s.cta||s.learnMoreHref)&&n.jsxs("div",{className:"flex items-center justify-between pt-1",children:[s.learnMoreHref?n.jsx("a",{href:s.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:a,className:"text-xs text-muted-foreground hover:text-foreground underline-offset-2 hover:underline",children:"Learn More"}):n.jsx("span",{}),s.cta&&n.jsx(T,{asChild:!0,size:"sm",onClick:o,children:n.jsx("a",{href:s.cta.href,children:s.cta.label})})]}),e[11]=o,e[12]=a,e[13]=s.cta,e[14]=s.learnMoreHref,e[15]=u):u=e[15];let m;return e[16]!==l||e[17]!==d||e[18]!==u?(m=n.jsxs("div",{className:"flex flex-col gap-3",children:[l,d,u]}),e[16]=l,e[17]=d,e[18]=u,e[19]=m):m=e[19],m}function Tt(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"text-muted-foreground mt-0.5 shrink-0"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Se=[{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:P,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:I,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:G,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:P,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:I,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:G,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:I,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:P,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:G,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:P,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:I,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:P,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:I,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:P,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:me,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:I,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:qe,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:G,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:I,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:P,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:me,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:P,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:He,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],ne="studio.release-feed.v1",ce=new Set;let L="",F={},de=!1;function Et(){if(de)return L||"{}";try{return localStorage.getItem(ne)??"{}"}catch{return L||"{}"}}function je(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function ge(){const t=Et();return t!==L&&(L=t,F=je(t)),F}function $t(t){ce.add(t);const e=s=>{if(!(s.key!==ne&&s.key!==null)){try{const o=localStorage.getItem(ne)??"{}",r={...je(o),...F};F=r,L=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{ce.delete(t),window.removeEventListener("storage",e)}}function zt(t){F=t,L=JSON.stringify(t);try{localStorage.setItem(ne,L),de=!1}catch{de=!0}ce.forEach(e=>e())}function Pt(){const t=k.c(7),e=K.useSyncExternalStore($t,ge,ge);let s;t[0]!==e?(s=c=>!!e[c],t[0]=e,t[1]=s):s=t[1];const o=s,a=Dt;let r;t[2]!==e?(r=Se.reduce((c,d)=>e[d.id]?c:c+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let l;return t[4]!==o||t[5]!==i?(l={isSeen:o,markSeen:a,unseenCount:i},t[4]=o,t[5]=i,t[6]=l):l=t[6],l}function Dt(t){F[t]||zt({...F,[t]:{seenAt:new Date().toISOString()}})}const It=720*60*60*1e3,Lt=10080*60*1e3;function Ft(t){const[e,s,o]=t.split("-").map(Number);return!e||!s||!o?new Date(t).getTime():new Date(e,s-1,o).getTime()}function Mt(t){const e=Se[0];if(!e)return null;const s=Ft(e.date),o=t-s;return o<0||o>It?null:e}function Rt(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function qt(t,e){const s=Rt(t);return s===null?!1:e-s>=Lt}function Ut(){const t=k.c(22),{data:e}=Y.useSession(),{isSeen:s,markSeen:o}=Pt();let a,r,i;if(t[0]!==s||t[1]!==e?.user?.createdAt){i=Symbol.for("react.early_return_sentinel");e:{const f=Date.now();if(a=Mt(f),!a){i=null;break e}if(!qt(e?.user?.createdAt,f)){i=null;break e}r=s(a.id)}t[0]=s,t[1]=e?.user?.createdAt,t[2]=a,t[3]=r,t[4]=i}else a=t[2],r=t[3],i=t[4];if(i!==Symbol.for("react.early_return_sentinel"))return i;if(r)return null;let l;t[5]!==a.id||t[6]!==o?(l=()=>o(a.id),t[5]=a.id,t[6]=o,t[7]=l):l=t[7];let c;t[8]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(Be,{size:14}),t[8]=c):c=t[8];let d;t[9]!==l?(d=n.jsx(T,{size:"icon",variant:"ghost","aria-label":"Dismiss release announcement",className:"absolute right-2 top-2 size-7 text-muted-foreground",onClick:l,children:c}),t[9]=l,t[10]=d):d=t[10];let u,m;t[11]!==a.id||t[12]!==o?(u=()=>o(a.id),m=()=>o(a.id),t[11]=a.id,t[12]=o,t[13]=u,t[14]=m):(u=t[13],m=t[14]);let h;t[15]!==a||t[16]!==u||t[17]!==m?(h=n.jsx(Ot,{release:a,onCtaClick:u,onLearnMoreClick:m}),t[15]=a,t[16]=u,t[17]=m,t[18]=h):h=t[18];let p;return t[19]!==d||t[20]!==h?(p=n.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,h]}),t[19]=d,t[20]=h,t[21]=p):p=t[21],p}const ve=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),D=ve?"⌘":"Ctrl",E={keyboardShortcuts:{keys:[D,"K"],description:"Keyboard shortcuts"},back:{keys:[D,"["],description:"Back to previous"},focusChatInput:{keys:[D,"L"],description:"Focus chat input"},saveAndFormat:{keys:[D,"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:[D,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[D,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",D,"S"],description:"New task"},toggleDaemon:{keys:[D,"D"],description:"Toggle daemon logs"}},Gt=[{label:"General",shortcuts:[E.keyboardShortcuts,E.back,E.newTask,E.toggleDaemon]},{label:"Editor",shortcuts:[E.saveAndFormat]},{label:"Chat",shortcuts:[E.focusChatInput,E.togglePlanMode,E.sendMessage,E.newLine]},{label:"Questions",shortcuts:[E.selectOption]},{label:"Monitoring",shortcuts:[E.applyFilter]}];function pe(t){return ve?t.metaKey:t.ctrlKey}function Kt(t){const e=k.c(5),{open:s,onOpenChange:o}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(We,{children:n.jsx(Je,{children:"Keyboard Shortcuts"})}),e[0]=a):a=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsxs(Ye,{className:"sm:max-w-md",children:[a,n.jsx("div",{className:"flex flex-col gap-4",children:Gt.map(Ht)})]}),e[1]=r):r=e[1];let i;return e[2]!==o||e[3]!==s?(i=n.jsx(Qe,{open:s,onOpenChange:o,children:r}),e[2]=o,e[3]=s,e[4]=i):i=e[4],i}function Ht(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Bt)})]},t.label)}function Bt(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Yt)})]},t.description)}function Yt(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const Wt=300*1e3,Jt=2;function Qt(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Vt(){const t=k.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:se.appVersionCheck(),queryFn:Zt,refetchInterval:Wt,refetchIntervalInBackground:!0,staleTime:0},t[0]=e):e=t[0];const{data:s,dataUpdatedAt:o}=te(e),[a,r]=K.useState(0);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i={version:null,count:0},t[1]=i):i=t[1];const[l,c]=K.useState(i);o!==a&&(r(o),c(p=>Qt(p,s,"4.58.0")));const d=l.count>=Jt;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsxs(Ve,{children:[n.jsx(Xe,{children:"A new version is available"}),n.jsx(Ze,{children:"You're viewing an outdated version of this page. Refresh to get the latest updates."})]}),t[2]=u):u=t[2];let m;t[3]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsxs(et,{children:[u,n.jsx(tt,{children:n.jsx(nt,{onClick:Xt,children:"Refresh"})})]}),t[3]=m):m=t[3];let h;return t[4]!==d?(h=n.jsx(st,{open:d,children:m}),t[4]=d,t[5]=h):h=t[5],h}function Xt(){return window.location.reload()}async function Zt(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function en({activeOrg:t}){return t&&(Ce(t.id,{name:t.name??void 0,slug:t.slug??void 0}),Oe()),null}function tn(t,e,s){if(!s)return null;const o=lt(t,e);return o?o.threads.get().find(r=>r.id===s)?.branch??null:null}function ke(t){return{queryKey:se.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 Tn(t){const e=k.c(10);let s;e[0]!==t?(s=ke(t),e[0]=t,e[1]=s):s=e[1];const o=te(s);let a;e[2]!==o.data?.prompts?(a=o.data?.prompts??[],e[2]=o.data?.prompts,e[3]=a):a=e[3];let r;e[4]!==o.data?.tiles?(r=o.data?.tiles??[],e[4]=o.data?.tiles,e[5]=r):r=e[5];let i;return e[6]!==o.isLoading||e[7]!==a||e[8]!==r?(i={isLoading:o.isLoading,prompts:a,tiles:r},e[6]=o.isLoading,e[7]=a,e[8]=r,e[9]=i):i=e[9],i}function nn(t){const e=k.c(17),{orgSlug:s,orgName:o,domain:a}=t;let r;e[0]!==s?(r=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=r):r=e[1];const i=r,l=sn;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(ye,{className:"h-6 w-6 text-primary"})}),e[2]=c):c=e[2];let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("h3",{className:"text-lg font-medium",children:"SSO Authentication Required"}),e[3]=d):d=e[3];let u;e[4]!==a||e[5]!==o?(u=o?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:o})," requires SSO authentication",a?` via ${a}`:"","."]}):"This organization requires SSO authentication to access.",e[4]=a,e[5]=o,e[6]=u):u=e[6];let m;e[7]!==u?(m=n.jsxs("div",{className:"space-y-2",children:[d,n.jsx("p",{className:"text-sm text-muted-foreground",children:u})]}),e[7]=u,e[8]=m):m=e[8];let h;e[9]!==i?(h=n.jsx(T,{onClick:i,children:"Sign in with SSO"}),e[9]=i,e[10]=h):h=e[10];let p;e[11]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(T,{variant:"ghost",onClick:l,children:"Go back"}),e[11]=p):p=e[11];let f;e[12]!==h?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,p]}),e[12]=h,e[13]=f):f=e[13];let g;return e[14]!==m||e[15]!==f?(g=n.jsxs(H,{children:[c,m,f]}),e[14]=m,e[15]=f,e[16]=g):g=e[16],g}function sn(){window.location.href="/"}function on(t){const e=k.c(8),{org:s,children:o}=t,r=ut(s.id,s.slug)?.enabled_plugins??null;let i;e[0]!==s.id||e[1]!==s.name||e[2]!==r?(i={id:s.id,organizationId:s.id,slug:"_org",name:s.name,enabledPlugins:r,ui:null},e[0]=s.id,e[1]=s.name,e[2]=r,e[3]=i):i=e[3];const l=i;let c;return e[4]!==o||e[5]!==s||e[6]!==l?(c=n.jsx(Re,{org:s,project:l,children:o}),e[4]=o,e[5]=s,e[6]=l,e[7]=c):c=e[7],c}function an(){const t=Te(),e=ct(),{org:s,locator:o}=Ee(),a=be({strict:!1}),r=$e({strict:!1}),i=a.org??"",l=a.taskId??"",c=(f,g,y=!0)=>t({to:"/$org/$taskId",params:{org:i,taskId:f},search:g,replace:y}),d=(f,g=!0)=>c(l,f,g),u=f=>d(g=>({...g,sidepanel:f})),m=(f,g,y)=>c(f,b=>{const x={sidepanel:"chat"};g?x.virtualmcpid=g:b.virtualmcpid&&(x.virtualmcpid=b.virtualmcpid);const S=fe(s.id).id,v=typeof b.virtualmcpid=="string"?b.virtualmcpid:S,O=(g??v)!==v;if(y?.main)x.main=y.main;else if(!O){const _=b.main;_&&typeof _=="string"&&!dt(_)&&(x.main=_)}return y?.autosend&&(x.autosend=it),x},!1);return{openSidePanel:u,setTaskId:m,createNewTask:async f=>{const g=crypto.randomUUID(),y=f??r.virtualmcpid??fe(s.id).id,x=y===r.virtualmcpid?tn(s.slug,o,l):null;try{await e?.create({id:g,virtual_mcp_id:y,...x?{branch:x}:{}})}catch{}m(g,y)},openTab:f=>c(l||crypto.randomUUID(),g=>({...g,main:f}))}}function rn(){const t=k.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const o=ze(e)?.params.org;let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},t[1]=a):a=t[1];const{taskId:r}=be(a),[i,l]=K.useState(!1),c=Pe(),d=o??"";let u;t[2]!==d?(u=ke(d),t[2]=d,t[3]=u):u=t[3];const m=!!o&&!r;let h;t[4]!==u||t[5]!==m?(h={...u,enabled:m},t[4]=u,t[5]=m,t[6]=h):h=t[6],te(h);const{data:p}=Y.useSession(),f=p?.user?.id;let g;t[7]!==o||t[8]!==f?(g=o&&f?De(f,o):null,t[7]=o,t[8]=f,t[9]=g):g=t[9];const y=g;let b,x;t[10]!==c?(b=()=>{const j=C=>{if(pe(C)&&C.code==="KeyK"){C.preventDefault(),l(!0);return}pe(C)&&C.code==="BracketLeft"&&c.history.canGoBack()&&(C.preventDefault(),c.history.back())};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},x=[c],t[10]=c,t[11]=b,t[12]=x):(b=t[11],x=t[12]),K.useEffect(b,x);let S;t[13]!==o?(S=se.activeOrganization(o),t[13]=o,t[14]=S):S=t[14];let v;t[15]!==o||t[16]!==f?(v=async()=>{if(!o)return null;performance.mark("mesh:active-org-fetch:start");const{data:j}=await Y.organization.getFullOrganization({query:{organizationSlug:o}}).finally(ln),C=ue(j);return j&&!C&&localStorage.setItem(B.lastOrgSlug(),o),f&&j&&Le(f,o,j),j},t[15]=o,t[16]=f,t[17]=v):v=t[17];const N=y?y.data:void 0,O=y?.updatedAt;let _;t[18]!==v||t[19]!==N||t[20]!==O||t[21]!==S?(_={queryKey:S,queryFn:v,initialData:N,initialDataUpdatedAt:O,gcTime:1/0,refetchOnWindowFocus:!1},t[18]=v,t[19]=N,t[20]=O,t[21]=S,t[22]=_):_=t[22];const{data:w}=xe(_),$=w?.id,z=w?.slug,{data:A}=mt($,z),ie=$??"",ae=z??"";let M;t[23]!==ie||t[24]!==ae?(M=at({connectionId:rt,orgId:ie,orgSlug:ae}),t[23]=ie,t[24]=ae,t[25]=M):M=t[25];const re=!!$&&!!z;let J;if(t[26]!==M||t[27]!==re?(J={...M,enabled:re},t[26]=M,t[27]=re,t[28]=J):J=t[28],te(J),!w){let j;t[29]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx(Fe,{}),t[29]=j):j=t[29];let C;return t[30]!==o?(C=n.jsx(K.Suspense,{fallback:j,children:n.jsx(Ct,{orgSlug:o})}),t[30]=o,t[31]=C):C=t[31],C}if(ue(w)){localStorage.getItem(B.lastOrgSlug())===o&&localStorage.removeItem(B.lastOrgSlug());let j;return t[32]!==w.name?(j=n.jsx(Ie,{orgName:w.name}),t[32]=w.name,t[33]=j):j=t[33],j}if(A?.ssoRequired&&!A.authenticated){let j;return t[34]!==w.id||t[35]!==w.name||t[36]!==w.slug||t[37]!==A.domain?(j=n.jsx(nn,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:A.domain}),t[34]=w.id,t[35]=w.name,t[36]=w.slug,t[37]=A.domain,t[38]=j):j=t[38],j}const le=w.logo??null;let R;t[39]!==w||t[40]!==le?(R={...w,logo:le},t[39]=w,t[40]=le,t[41]=R):R=t[41];let q;t[42]!==w?(q=n.jsx(en,{activeOrg:w}),t[42]=w,t[43]=q):q=t[43];let Q,V;t[44]===Symbol.for("react.memo_cache_sentinel")?(Q=n.jsx(Me,{}),V=n.jsx(Ut,{}),t[44]=Q,t[45]=V):(Q=t[44],V=t[45]);let U;t[46]!==i?(U=n.jsx(Kt,{open:i,onOpenChange:l}),t[46]=i,t[47]=U):U=t[47];let X;t[48]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(Vt,{}),t[48]=X):X=t[48];let Z;return t[49]!==R||t[50]!==q||t[51]!==U?(Z=n.jsxs(on,{org:R,children:[q,Q,V,U,X]}),t[49]=R,t[50]=q,t[51]=U,t[52]=Z):Z=t[52],Z}function ln(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function cn(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(ot,{children:n.jsx(rn,{})}),t[0]=e):e=t[0],e}const En=Object.freeze(Object.defineProperty({__proto__:null,default:cn,usePanelActions:an},Symbol.toStringTag,{value:"Module"}));export{E as K,Tn as a,pe as i,tn as r,En as s,an as u};
|
|
1
|
+
import{c as k,d as ee,j as n,B as T,bU as H,t as W,$ as ye,a as Y,X as Ne,P as xe,K as se,bV as _e,bW as Ae,Y as B,r as K,m as te,bX as Ce,bY as Oe,b as Te,a5 as Ee,e as be,u as $e,a6 as ze,aZ as Pe,bZ as De,b_ as ue,b$ as Ie,c0 as Le,S as Fe,O as Me,c1 as Re}from"./index-CE7Jzo0Y.js";import{A as oe}from"./avatar-AMoGOThV.js";import{t as we,a as qe}from"./Users03-CQemWhYw.js";import{i as Ue}from"./SearchLg-ZXO1oGJV.js";import{i as Ge,s as Ke,a as P,n as He}from"./Stars02-CmHYcatE.js";import{s as Be}from"./XClose-BtDELoL6.js";import{i as I}from"./CheckCircle-CG3UGDqI.js";import{i as me}from"./FilterLines-zHENNr4w.js";import{i as G}from"./Zap-LK71Qw10.js";import{d as Ye,D as We,a as Je,e as Qe}from"./dialog-CTw40U7G.js";import{b as Ve,c as Xe,d as Ze,a as et,e as tt,g as nt,f as st}from"./alert-dialog-CFQnSlFi.js";import{R as ot}from"./required-auth-layout-CfrjXfDR.js";import{A as it}from"./autosend-B09y_xWT.js";import{m as at}from"./use-mcp-client-DH5Fdew1.js";import{a as fe,S as rt}from"./constants-CaIX_f5U.js";import{g as lt,c as ct}from"./hooks-CkYtPFsw.js";import{q as dt}from"./tab-id-bb-jjgGv.js";import{f as ut}from"./use-organization-settings-DnJMCRoV.js";import{u as mt}from"./use-org-sso-zoDPrJJW.js";function ft(t){const e=k.c(27),{orgName:s,orgSlug:o,orgLogo:a,domain:r}=t;let i;e[0]!==o?(i={mutationFn:async()=>{const S=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:o})}),v=await S.json();if(!S.ok||!v.success)throw new Error(v.error??"Failed to join organization");return v},onSuccess:S=>{window.location.href=`/${S.slug??o}`},onError:gt},e[0]=o,e[1]=i):i=e[1];const l=ee(i),c=ht;let d;e[2]!==a||e[3]!==s?(d=a?n.jsx(oe,{url:a,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(we,{className:"h-6 w-6 text-primary"})}),e[2]=a,e[3]=s,e[4]=d):d=e[4];let u;e[5]!==s?(u=n.jsxs("h3",{className:"text-lg font-medium",children:["Join ",s,"?"]}),e[5]=s,e[6]=u):u=e[6];let m;e[7]!==r?(m=n.jsxs("p",{className:"text-sm text-muted-foreground",children:["Anyone with an ",n.jsxs("strong",{children:["@",r]})," email can join this organization."]}),e[7]=r,e[8]=m):m=e[8];let h;e[9]!==u||e[10]!==m?(h=n.jsxs("div",{className:"space-y-2",children:[u,m]}),e[9]=u,e[10]=m,e[11]=h):h=e[11];let p;e[12]!==l?(p=()=>l.mutate(),e[12]=l,e[13]=p):p=e[13];const f=l.isPending?"Joining…":`Enter ${s}`;let g;e[14]!==l.isPending||e[15]!==p||e[16]!==f?(g=n.jsx(T,{onClick:p,disabled:l.isPending,children:f}),e[14]=l.isPending,e[15]=p,e[16]=f,e[17]=g):g=e[17];let y;e[18]!==l.isPending?(y=n.jsx(T,{variant:"ghost",onClick:c,disabled:l.isPending,children:"Go to home"}),e[18]=l.isPending,e[19]=y):y=e[19];let b;e[20]!==g||e[21]!==y?(b=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,y]}),e[20]=g,e[21]=y,e[22]=b):b=e[22];let x;return e[23]!==b||e[24]!==d||e[25]!==h?(x=n.jsxs(H,{children:[d,h,b]}),e[23]=b,e[24]=d,e[25]=h,e[26]=x):x=e[26],x}function ht(){window.location.href="/"}function gt(t){W.error(t instanceof Error?t.message:"Failed to join organization")}function he(t){const e=k.c(17),{orgSlug:s,orgName:o,reason:a}=t,r=pt,i=a==="not-found",l=i?Ue:ye,c=i?"Organization not found":"No access";let d;e[0]!==i||e[1]!==o||e[2]!==s?(d=i?n.jsxs(n.Fragment,{children:["We couldn't find an organization called ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:["You don't have access to ",n.jsx("strong",{children:o??s}),".",n.jsx("br",{}),"Ask an admin to invite you."]}),e[0]=i,e[1]=o,e[2]=s,e[3]=d):d=e[3];const u=d;let m;e[4]!==l?(m=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(l,{className:"h-6 w-6 text-muted-foreground"})}),e[4]=l,e[5]=m):m=e[5];let h;e[6]!==c?(h=n.jsx("h3",{className:"text-lg font-medium",children:c}),e[6]=c,e[7]=h):h=e[7];let p;e[8]!==u?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[8]=u,e[9]=p):p=e[9];let f;e[10]!==h||e[11]!==p?(f=n.jsxs("div",{className:"space-y-2",children:[h,p]}),e[10]=h,e[11]=p,e[12]=f):f=e[12];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(T,{onClick:r,children:"Go to home"}),e[13]=g):g=e[13];let y;return e[14]!==m||e[15]!==f?(y=n.jsxs(H,{children:[m,f,g]}),e[14]=m,e[15]=f,e[16]=y):y=e[16],y}function pt(){window.location.href="/"}function yt(t){const e=k.c(39),{invitationId:s,orgName:o,orgSlug:a,orgLogo:r}=t;let i;e[0]!==s?(i=async()=>{const A=await Y.organization.acceptInvitation({invitationId:s});if(A.error)throw new Error(A.error.message);return A.data},e[0]=s,e[1]=i):i=e[1];let l;e[2]!==a?(l=()=>{Ne(),window.location.href=`/${a}`},e[2]=a,e[3]=l):l=e[3];let c;e[4]!==i||e[5]!==l?(c={mutationFn:i,onSuccess:l,onError:wt},e[4]=i,e[5]=l,e[6]=c):c=e[6];const d=ee(c);let u;e[7]!==s?(u=async()=>{const A=await Y.organization.rejectInvitation({invitationId:s});if(A.error)throw new Error(A.error.message);return A.data},e[7]=s,e[8]=u):u=e[8];let m;e[9]===Symbol.for("react.memo_cache_sentinel")?(m=bt,e[9]=m):m=e[9];let h;e[10]!==u?(h={mutationFn:u,onSuccess:m,onError:xt},e[10]=u,e[11]=h):h=e[11];const p=ee(h),f=d.isPending||p.isPending;let g;e[12]!==r||e[13]!==o?(g=r?n.jsx(oe,{url:r,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Ge,{className:"h-6 w-6 text-primary"})}),e[12]=r,e[13]=o,e[14]=g):g=e[14];let y;e[15]!==o?(y=n.jsxs("h3",{className:"text-lg font-medium",children:["You've been invited to ",n.jsx("strong",{children:o})]}),e[15]=o,e[16]=y):y=e[16];let b;e[17]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx("p",{className:"text-sm text-muted-foreground",children:"Accept the invitation to join this organization."}),e[17]=b):b=e[17];let x;e[18]!==y?(x=n.jsxs("div",{className:"space-y-2",children:[y,b]}),e[18]=y,e[19]=x):x=e[19];let S;e[20]!==d?(S=()=>d.mutate(),e[20]=d,e[21]=S):S=e[21];const v=d.isPending?"Accepting…":"Accept invitation";let N;e[22]!==f||e[23]!==S||e[24]!==v?(N=n.jsx(T,{onClick:S,disabled:f,children:v}),e[22]=f,e[23]=S,e[24]=v,e[25]=N):N=e[25];let O;e[26]!==p?(O=()=>p.mutate(),e[26]=p,e[27]=O):O=e[27];const _=p.isPending?"Declining…":"Decline";let w;e[28]!==f||e[29]!==O||e[30]!==_?(w=n.jsx(T,{variant:"ghost",onClick:O,disabled:f,children:_}),e[28]=f,e[29]=O,e[30]=_,e[31]=w):w=e[31];let $;e[32]!==N||e[33]!==w?($=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,w]}),e[32]=N,e[33]=w,e[34]=$):$=e[34];let z;return e[35]!==x||e[36]!==$||e[37]!==g?(z=n.jsxs(H,{children:[g,x,$]}),e[35]=x,e[36]=$,e[37]=g,e[38]=z):z=e[38],z}function xt(t){W.error(t instanceof Error?t.message:"Failed to decline invitation")}function bt(){W.success("Invitation declined"),window.location.href="/"}function wt(t){W.error(t instanceof Error?t.message:"Failed to accept invitation")}function St(t){const e=k.c(10),{orgName:s,orgLogo:o}=t;let a;e[0]!==o||e[1]!==s?(a=o?n.jsx(oe,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Ke,{className:"h-6 w-6 text-primary"})}),e[0]=o,e[1]=s,e[2]=a):a=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx("h3",{className:"text-lg font-medium",children:"Request pending"}),e[3]=r):r=e[3];let i;e[4]!==s?(i=n.jsxs("div",{className:"space-y-2",children:[r,n.jsxs("p",{className:"text-sm text-muted-foreground",children:["Your request to join ",n.jsx("strong",{children:s})," is waiting for an admin to approve it. You'll get access once it's approved."]})]}),e[4]=s,e[5]=i):i=e[5];let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(T,{variant:"ghost",onClick:jt,children:"Go to home"}),e[6]=l):l=e[6];let c;return e[7]!==a||e[8]!==i?(c=n.jsxs(H,{children:[a,i,l]}),e[7]=a,e[8]=i,e[9]=c):c=e[9],c}function jt(){window.location.href="/"}function vt(t){const e=k.c(30),{orgName:s,orgSlug:o,orgLogo:a,domain:r}=t;let i;e[0]!==o?(i=async()=>{const v=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:o})}),N=await v.json();if(!v.ok||!N.success)throw new Error(N.error??"Failed to request access");return N},e[0]=o,e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=_t,e[2]=l):l=e[2];let c;e[3]!==i?(c={mutationFn:i,onSuccess:l,onError:Nt},e[3]=i,e[4]=c):c=e[4];const d=ee(c);let u;e[5]!==a||e[6]!==s?(u=a?n.jsx(oe,{url:a,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(we,{className:"h-6 w-6 text-primary"})}),e[5]=a,e[6]=s,e[7]=u):u=e[7];let m;e[8]!==s?(m=n.jsxs("h3",{className:"text-lg font-medium",children:["Request to join ",s,"?"]}),e[8]=s,e[9]=m):m=e[9];let h;e[10]!==r?(h=n.jsxs("p",{className:"text-sm text-muted-foreground",children:["An admin must approve requests from ",n.jsxs("strong",{children:["@",r]})," emails before you can join."]}),e[10]=r,e[11]=h):h=e[11];let p;e[12]!==m||e[13]!==h?(p=n.jsxs("div",{className:"space-y-2",children:[m,h]}),e[12]=m,e[13]=h,e[14]=p):p=e[14];let f;e[15]!==d?(f=()=>d.mutate(),e[15]=d,e[16]=f):f=e[16];const g=d.isPending?"Requesting…":"Request to join";let y;e[17]!==d.isPending||e[18]!==f||e[19]!==g?(y=n.jsx(T,{onClick:f,disabled:d.isPending,children:g}),e[17]=d.isPending,e[18]=f,e[19]=g,e[20]=y):y=e[20];let b;e[21]!==d.isPending?(b=n.jsx(T,{variant:"ghost",onClick:kt,disabled:d.isPending,children:"Go to home"}),e[21]=d.isPending,e[22]=b):b=e[22];let x;e[23]!==y||e[24]!==b?(x=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[y,b]}),e[23]=y,e[24]=b,e[25]=x):x=e[25];let S;return e[26]!==x||e[27]!==u||e[28]!==p?(S=n.jsxs(H,{children:[u,p,x]}),e[26]=x,e[27]=u,e[28]=p,e[29]=S):S=e[29],S}function kt(){window.location.href="/"}function Nt(t){W.error(t instanceof Error?t.message:"Failed to request access")}function _t(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function At(t){const e=k.c(7);let s;e[0]!==t?(s=se.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let o;e[2]!==t?(o=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=o):o=e[3];let a;return e[4]!==s||e[5]!==o?(a={queryKey:s,queryFn:o,refetchOnWindowFocus:!1},e[4]=s,e[5]=o,e[6]=a):a=e[6],xe(a)}function Ct({orgSlug:t}){const{data:e}=At(t);if(e.status!=="member"){_e()?.org===t&&Ae();const s=localStorage.getItem(B.lastOrgSlug())===t;if(s&&localStorage.removeItem(B.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(he,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(yt,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ft,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(vt,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(St,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(he,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Ot(t){const e=k.c(20),{release:s,onCtaClick:o,onLearnMoreClick:a}=t;let r;e[0]!==s.eyebrow?(r=s.eyebrow&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s.eyebrow}),e[0]=s.eyebrow,e[1]=r):r=e[1];let i;e[2]!==s.title?(i=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:s.title}),e[2]=s.title,e[3]=i):i=e[3];let l;e[4]!==r||e[5]!==i?(l=n.jsxs("div",{children:[r,i]}),e[4]=r,e[5]=i,e[6]=l):l=e[6];let c;e[7]!==s.bullets?(c=s.bullets.map(Tt),e[7]=s.bullets,e[8]=c):c=e[8];let d;e[9]!==c?(d=n.jsx("ul",{className:"flex flex-col gap-3",children:c}),e[9]=c,e[10]=d):d=e[10];let u;e[11]!==o||e[12]!==a||e[13]!==s.cta||e[14]!==s.learnMoreHref?(u=(s.cta||s.learnMoreHref)&&n.jsxs("div",{className:"flex items-center justify-between pt-1",children:[s.learnMoreHref?n.jsx("a",{href:s.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:a,className:"text-xs text-muted-foreground hover:text-foreground underline-offset-2 hover:underline",children:"Learn More"}):n.jsx("span",{}),s.cta&&n.jsx(T,{asChild:!0,size:"sm",onClick:o,children:n.jsx("a",{href:s.cta.href,children:s.cta.label})})]}),e[11]=o,e[12]=a,e[13]=s.cta,e[14]=s.learnMoreHref,e[15]=u):u=e[15];let m;return e[16]!==l||e[17]!==d||e[18]!==u?(m=n.jsxs("div",{className:"flex flex-col gap-3",children:[l,d,u]}),e[16]=l,e[17]=d,e[18]=u,e[19]=m):m=e[19],m}function Tt(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"text-muted-foreground mt-0.5 shrink-0"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Se=[{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:P,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:I,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:G,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:P,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:I,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:G,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:I,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:P,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:G,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:P,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:I,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:P,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:I,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:P,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:me,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:I,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:qe,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:G,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:I,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:P,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:me,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:P,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:He,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],ne="studio.release-feed.v1",ce=new Set;let L="",F={},de=!1;function Et(){if(de)return L||"{}";try{return localStorage.getItem(ne)??"{}"}catch{return L||"{}"}}function je(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function ge(){const t=Et();return t!==L&&(L=t,F=je(t)),F}function $t(t){ce.add(t);const e=s=>{if(!(s.key!==ne&&s.key!==null)){try{const o=localStorage.getItem(ne)??"{}",r={...je(o),...F};F=r,L=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{ce.delete(t),window.removeEventListener("storage",e)}}function zt(t){F=t,L=JSON.stringify(t);try{localStorage.setItem(ne,L),de=!1}catch{de=!0}ce.forEach(e=>e())}function Pt(){const t=k.c(7),e=K.useSyncExternalStore($t,ge,ge);let s;t[0]!==e?(s=c=>!!e[c],t[0]=e,t[1]=s):s=t[1];const o=s,a=Dt;let r;t[2]!==e?(r=Se.reduce((c,d)=>e[d.id]?c:c+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let l;return t[4]!==o||t[5]!==i?(l={isSeen:o,markSeen:a,unseenCount:i},t[4]=o,t[5]=i,t[6]=l):l=t[6],l}function Dt(t){F[t]||zt({...F,[t]:{seenAt:new Date().toISOString()}})}const It=720*60*60*1e3,Lt=10080*60*1e3;function Ft(t){const[e,s,o]=t.split("-").map(Number);return!e||!s||!o?new Date(t).getTime():new Date(e,s-1,o).getTime()}function Mt(t){const e=Se[0];if(!e)return null;const s=Ft(e.date),o=t-s;return o<0||o>It?null:e}function Rt(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function qt(t,e){const s=Rt(t);return s===null?!1:e-s>=Lt}function Ut(){const t=k.c(22),{data:e}=Y.useSession(),{isSeen:s,markSeen:o}=Pt();let a,r,i;if(t[0]!==s||t[1]!==e?.user?.createdAt){i=Symbol.for("react.early_return_sentinel");e:{const f=Date.now();if(a=Mt(f),!a){i=null;break e}if(!qt(e?.user?.createdAt,f)){i=null;break e}r=s(a.id)}t[0]=s,t[1]=e?.user?.createdAt,t[2]=a,t[3]=r,t[4]=i}else a=t[2],r=t[3],i=t[4];if(i!==Symbol.for("react.early_return_sentinel"))return i;if(r)return null;let l;t[5]!==a.id||t[6]!==o?(l=()=>o(a.id),t[5]=a.id,t[6]=o,t[7]=l):l=t[7];let c;t[8]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(Be,{size:14}),t[8]=c):c=t[8];let d;t[9]!==l?(d=n.jsx(T,{size:"icon",variant:"ghost","aria-label":"Dismiss release announcement",className:"absolute right-2 top-2 size-7 text-muted-foreground",onClick:l,children:c}),t[9]=l,t[10]=d):d=t[10];let u,m;t[11]!==a.id||t[12]!==o?(u=()=>o(a.id),m=()=>o(a.id),t[11]=a.id,t[12]=o,t[13]=u,t[14]=m):(u=t[13],m=t[14]);let h;t[15]!==a||t[16]!==u||t[17]!==m?(h=n.jsx(Ot,{release:a,onCtaClick:u,onLearnMoreClick:m}),t[15]=a,t[16]=u,t[17]=m,t[18]=h):h=t[18];let p;return t[19]!==d||t[20]!==h?(p=n.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,h]}),t[19]=d,t[20]=h,t[21]=p):p=t[21],p}const ve=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),D=ve?"⌘":"Ctrl",E={keyboardShortcuts:{keys:[D,"K"],description:"Keyboard shortcuts"},back:{keys:[D,"["],description:"Back to previous"},focusChatInput:{keys:[D,"L"],description:"Focus chat input"},saveAndFormat:{keys:[D,"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:[D,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[D,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",D,"S"],description:"New task"},toggleDaemon:{keys:[D,"D"],description:"Toggle daemon logs"}},Gt=[{label:"General",shortcuts:[E.keyboardShortcuts,E.back,E.newTask,E.toggleDaemon]},{label:"Editor",shortcuts:[E.saveAndFormat]},{label:"Chat",shortcuts:[E.focusChatInput,E.togglePlanMode,E.sendMessage,E.newLine]},{label:"Questions",shortcuts:[E.selectOption]},{label:"Monitoring",shortcuts:[E.applyFilter]}];function pe(t){return ve?t.metaKey:t.ctrlKey}function Kt(t){const e=k.c(5),{open:s,onOpenChange:o}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(We,{children:n.jsx(Je,{children:"Keyboard Shortcuts"})}),e[0]=a):a=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsxs(Ye,{className:"sm:max-w-md",children:[a,n.jsx("div",{className:"flex flex-col gap-4",children:Gt.map(Ht)})]}),e[1]=r):r=e[1];let i;return e[2]!==o||e[3]!==s?(i=n.jsx(Qe,{open:s,onOpenChange:o,children:r}),e[2]=o,e[3]=s,e[4]=i):i=e[4],i}function Ht(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Bt)})]},t.label)}function Bt(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Yt)})]},t.description)}function Yt(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const Wt=300*1e3,Jt=2;function Qt(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Vt(){const t=k.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:se.appVersionCheck(),queryFn:Zt,refetchInterval:Wt,refetchIntervalInBackground:!0,staleTime:0},t[0]=e):e=t[0];const{data:s,dataUpdatedAt:o}=te(e),[a,r]=K.useState(0);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i={version:null,count:0},t[1]=i):i=t[1];const[l,c]=K.useState(i);o!==a&&(r(o),c(p=>Qt(p,s,"4.58.2")));const d=l.count>=Jt;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsxs(Ve,{children:[n.jsx(Xe,{children:"A new version is available"}),n.jsx(Ze,{children:"You're viewing an outdated version of this page. Refresh to get the latest updates."})]}),t[2]=u):u=t[2];let m;t[3]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsxs(et,{children:[u,n.jsx(tt,{children:n.jsx(nt,{onClick:Xt,children:"Refresh"})})]}),t[3]=m):m=t[3];let h;return t[4]!==d?(h=n.jsx(st,{open:d,children:m}),t[4]=d,t[5]=h):h=t[5],h}function Xt(){return window.location.reload()}async function Zt(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function en({activeOrg:t}){return t&&(Ce(t.id,{name:t.name??void 0,slug:t.slug??void 0}),Oe()),null}function tn(t,e,s){if(!s)return null;const o=lt(t,e);return o?o.threads.get().find(r=>r.id===s)?.branch??null:null}function ke(t){return{queryKey:se.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 Tn(t){const e=k.c(10);let s;e[0]!==t?(s=ke(t),e[0]=t,e[1]=s):s=e[1];const o=te(s);let a;e[2]!==o.data?.prompts?(a=o.data?.prompts??[],e[2]=o.data?.prompts,e[3]=a):a=e[3];let r;e[4]!==o.data?.tiles?(r=o.data?.tiles??[],e[4]=o.data?.tiles,e[5]=r):r=e[5];let i;return e[6]!==o.isLoading||e[7]!==a||e[8]!==r?(i={isLoading:o.isLoading,prompts:a,tiles:r},e[6]=o.isLoading,e[7]=a,e[8]=r,e[9]=i):i=e[9],i}function nn(t){const e=k.c(17),{orgSlug:s,orgName:o,domain:a}=t;let r;e[0]!==s?(r=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=r):r=e[1];const i=r,l=sn;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(ye,{className:"h-6 w-6 text-primary"})}),e[2]=c):c=e[2];let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("h3",{className:"text-lg font-medium",children:"SSO Authentication Required"}),e[3]=d):d=e[3];let u;e[4]!==a||e[5]!==o?(u=o?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:o})," requires SSO authentication",a?` via ${a}`:"","."]}):"This organization requires SSO authentication to access.",e[4]=a,e[5]=o,e[6]=u):u=e[6];let m;e[7]!==u?(m=n.jsxs("div",{className:"space-y-2",children:[d,n.jsx("p",{className:"text-sm text-muted-foreground",children:u})]}),e[7]=u,e[8]=m):m=e[8];let h;e[9]!==i?(h=n.jsx(T,{onClick:i,children:"Sign in with SSO"}),e[9]=i,e[10]=h):h=e[10];let p;e[11]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(T,{variant:"ghost",onClick:l,children:"Go back"}),e[11]=p):p=e[11];let f;e[12]!==h?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,p]}),e[12]=h,e[13]=f):f=e[13];let g;return e[14]!==m||e[15]!==f?(g=n.jsxs(H,{children:[c,m,f]}),e[14]=m,e[15]=f,e[16]=g):g=e[16],g}function sn(){window.location.href="/"}function on(t){const e=k.c(8),{org:s,children:o}=t,r=ut(s.id,s.slug)?.enabled_plugins??null;let i;e[0]!==s.id||e[1]!==s.name||e[2]!==r?(i={id:s.id,organizationId:s.id,slug:"_org",name:s.name,enabledPlugins:r,ui:null},e[0]=s.id,e[1]=s.name,e[2]=r,e[3]=i):i=e[3];const l=i;let c;return e[4]!==o||e[5]!==s||e[6]!==l?(c=n.jsx(Re,{org:s,project:l,children:o}),e[4]=o,e[5]=s,e[6]=l,e[7]=c):c=e[7],c}function an(){const t=Te(),e=ct(),{org:s,locator:o}=Ee(),a=be({strict:!1}),r=$e({strict:!1}),i=a.org??"",l=a.taskId??"",c=(f,g,y=!0)=>t({to:"/$org/$taskId",params:{org:i,taskId:f},search:g,replace:y}),d=(f,g=!0)=>c(l,f,g),u=f=>d(g=>({...g,sidepanel:f})),m=(f,g,y)=>c(f,b=>{const x={sidepanel:"chat"};g?x.virtualmcpid=g:b.virtualmcpid&&(x.virtualmcpid=b.virtualmcpid);const S=fe(s.id).id,v=typeof b.virtualmcpid=="string"?b.virtualmcpid:S,O=(g??v)!==v;if(y?.main)x.main=y.main;else if(!O){const _=b.main;_&&typeof _=="string"&&!dt(_)&&(x.main=_)}return y?.autosend&&(x.autosend=it),x},!1);return{openSidePanel:u,setTaskId:m,createNewTask:async f=>{const g=crypto.randomUUID(),y=f??r.virtualmcpid??fe(s.id).id,x=y===r.virtualmcpid?tn(s.slug,o,l):null;try{await e?.create({id:g,virtual_mcp_id:y,...x?{branch:x}:{}})}catch{}m(g,y)},openTab:f=>c(l||crypto.randomUUID(),g=>({...g,main:f}))}}function rn(){const t=k.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const o=ze(e)?.params.org;let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},t[1]=a):a=t[1];const{taskId:r}=be(a),[i,l]=K.useState(!1),c=Pe(),d=o??"";let u;t[2]!==d?(u=ke(d),t[2]=d,t[3]=u):u=t[3];const m=!!o&&!r;let h;t[4]!==u||t[5]!==m?(h={...u,enabled:m},t[4]=u,t[5]=m,t[6]=h):h=t[6],te(h);const{data:p}=Y.useSession(),f=p?.user?.id;let g;t[7]!==o||t[8]!==f?(g=o&&f?De(f,o):null,t[7]=o,t[8]=f,t[9]=g):g=t[9];const y=g;let b,x;t[10]!==c?(b=()=>{const j=C=>{if(pe(C)&&C.code==="KeyK"){C.preventDefault(),l(!0);return}pe(C)&&C.code==="BracketLeft"&&c.history.canGoBack()&&(C.preventDefault(),c.history.back())};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},x=[c],t[10]=c,t[11]=b,t[12]=x):(b=t[11],x=t[12]),K.useEffect(b,x);let S;t[13]!==o?(S=se.activeOrganization(o),t[13]=o,t[14]=S):S=t[14];let v;t[15]!==o||t[16]!==f?(v=async()=>{if(!o)return null;performance.mark("mesh:active-org-fetch:start");const{data:j}=await Y.organization.getFullOrganization({query:{organizationSlug:o}}).finally(ln),C=ue(j);return j&&!C&&localStorage.setItem(B.lastOrgSlug(),o),f&&j&&Le(f,o,j),j},t[15]=o,t[16]=f,t[17]=v):v=t[17];const N=y?y.data:void 0,O=y?.updatedAt;let _;t[18]!==v||t[19]!==N||t[20]!==O||t[21]!==S?(_={queryKey:S,queryFn:v,initialData:N,initialDataUpdatedAt:O,gcTime:1/0,refetchOnWindowFocus:!1},t[18]=v,t[19]=N,t[20]=O,t[21]=S,t[22]=_):_=t[22];const{data:w}=xe(_),$=w?.id,z=w?.slug,{data:A}=mt($,z),ie=$??"",ae=z??"";let M;t[23]!==ie||t[24]!==ae?(M=at({connectionId:rt,orgId:ie,orgSlug:ae}),t[23]=ie,t[24]=ae,t[25]=M):M=t[25];const re=!!$&&!!z;let J;if(t[26]!==M||t[27]!==re?(J={...M,enabled:re},t[26]=M,t[27]=re,t[28]=J):J=t[28],te(J),!w){let j;t[29]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx(Fe,{}),t[29]=j):j=t[29];let C;return t[30]!==o?(C=n.jsx(K.Suspense,{fallback:j,children:n.jsx(Ct,{orgSlug:o})}),t[30]=o,t[31]=C):C=t[31],C}if(ue(w)){localStorage.getItem(B.lastOrgSlug())===o&&localStorage.removeItem(B.lastOrgSlug());let j;return t[32]!==w.name?(j=n.jsx(Ie,{orgName:w.name}),t[32]=w.name,t[33]=j):j=t[33],j}if(A?.ssoRequired&&!A.authenticated){let j;return t[34]!==w.id||t[35]!==w.name||t[36]!==w.slug||t[37]!==A.domain?(j=n.jsx(nn,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:A.domain}),t[34]=w.id,t[35]=w.name,t[36]=w.slug,t[37]=A.domain,t[38]=j):j=t[38],j}const le=w.logo??null;let R;t[39]!==w||t[40]!==le?(R={...w,logo:le},t[39]=w,t[40]=le,t[41]=R):R=t[41];let q;t[42]!==w?(q=n.jsx(en,{activeOrg:w}),t[42]=w,t[43]=q):q=t[43];let Q,V;t[44]===Symbol.for("react.memo_cache_sentinel")?(Q=n.jsx(Me,{}),V=n.jsx(Ut,{}),t[44]=Q,t[45]=V):(Q=t[44],V=t[45]);let U;t[46]!==i?(U=n.jsx(Kt,{open:i,onOpenChange:l}),t[46]=i,t[47]=U):U=t[47];let X;t[48]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(Vt,{}),t[48]=X):X=t[48];let Z;return t[49]!==R||t[50]!==q||t[51]!==U?(Z=n.jsxs(on,{org:R,children:[q,Q,V,U,X]}),t[49]=R,t[50]=q,t[51]=U,t[52]=Z):Z=t[52],Z}function ln(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function cn(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(ot,{children:n.jsx(rn,{})}),t[0]=e):e=t[0],e}const En=Object.freeze(Object.defineProperty({__proto__:null,default:cn,usePanelActions:an},Symbol.toStringTag,{value:"Module"}));export{E as K,Tn as a,pe as i,tn as r,En as s,an as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,l as g,j as o,cL as P,cM as R,bP as A,cN as H,cO as L,cP as V,cQ as W,r as T,B as q,bc as G,bB as F}from"./index-fTBvXwtq.js";import{i as Q}from"./LayoutLeft-Dh8b6qBD.js";import{u as J}from"./use-mobile-9MTF5ix-.js";import{i as K}from"./X-CCOY7lES.js";import{c as I,a as z,b as D,T as k}from"./tooltip-BeUHG-np.js";function U(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(R,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function X(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(L,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function Y(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(W,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Z(i){const e=b.c(20);let t,s,a,l,d;e[0]!==i?({className:s,children:t,side:l,hideCloseButton:d,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5]);const n=l===void 0?"right":l,r=d===void 0?!1:d;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(Y,{}),e[6]=m):m=e[6];const u=n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",h=n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",p=n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let x;e[7]!==s||e[8]!==u||e[9]!==h||e[10]!==f||e[11]!==p?(x=g("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",u,h,f,p,s),e[7]=s,e[8]=u,e[9]=h,e[10]=f,e[11]=p,e[12]=x):x=e[12];let c;e[13]!==r?(c=!r&&o.jsxs(V,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsx(K,{className:"size-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=r,e[14]=c):c=e[14];let v;return e[15]!==t||e[16]!==a||e[17]!==x||e[18]!==c?(v=o.jsxs(X,{children:[m,o.jsxs(A,{"data-slot":"sheet-content",className:x,...a,children:[t,c]})]}),e[15]=t,e[16]=a,e[17]=x,e[18]=c,e[19]=v):v=e[19],v}function ee(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function te(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(P,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(H,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const ae="15rem",le="18rem",ie="4.5rem",E=T.createContext(null);function B(){const i=T.useContext(E);if(!i)throw new Error("useSidebar must be used within a SidebarProvider.");return i}function be(i){const e=b.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:l}=i,d=s===void 0?!1:s,n=J(),[r,m]=T.useState(d),[u,h]=T.useState(!1),f=a!==void 0,p=f?a:r;let x;e[0]!==f||e[1]!==l?(x=$=>{f||m($),l?.($)},e[0]=f,e[1]=l,e[2]=x):x=e[2];const c=x;let v;e[3]!==n||e[4]!==p||e[5]!==c?(v=()=>{n?h(oe):c(!p)},e[3]=n,e[4]=p,e[5]=c,e[6]=v):v=e[6];const y=v,w=p?"expanded":"collapsed";let j;e[7]!==n||e[8]!==p||e[9]!==u||e[10]!==c||e[11]!==w||e[12]!==y?(j={state:w,open:p,setOpen:c,isMobile:n,openMobile:u,setOpenMobile:h,toggleSidebar:y},e[7]=n,e[8]=p,e[9]=u,e[10]=c,e[11]=w,e[12]=y,e[13]=j):j=e[13];const S=j;let N;e[14]!==t?(N=o.jsx(I,{delayDuration:0,children:t}),e[14]=t,e[15]=N):N=e[15];let C;return e[16]!==S||e[17]!==N?(C=o.jsx(E.Provider,{value:S,children:N}),e[16]=S,e[17]=N,e[18]=C):C=e[18],C}function oe(i){return!i}function me(i){const e=b.c(14);let t,s,a,l;e[0]!==i?({className:s,style:l,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l):(t=e[1],s=e[2],a=e[3],l=e[4]);let d;e[5]!==l?(d={"--sidebar-width":ae,"--sidebar-width-icon":ie,...l},e[5]=l,e[6]=d):d=e[6];const n=d;let r;e[7]!==s?(r=g("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=r):r=e[8];let m;return e[9]!==t||e[10]!==a||e[11]!==n||e[12]!==r?(m=o.jsx("div",{"data-slot":"sidebar-wrapper",style:n,className:r,...a,children:t}),e[9]=t,e[10]=a,e[11]=n,e[12]=r,e[13]=m):m=e[13],m}function he(i){const e=b.c(36);let t,s,a,l,d;e[0]!==i?({side:l,variant:d,className:s,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5]);const n=l===void 0?"left":l,r=d===void 0?"sidebar":d,{isMobile:m,state:u,openMobile:h,setOpenMobile:f}=B();if(m){let C;e[6]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":le},e[6]=C):C=e[6];let $;e[7]===Symbol.for("react.memo_cache_sentinel")?($=o.jsxs(ee,{className:"sr-only",children:[o.jsx(te,{children:"Sidebar"}),o.jsx(se,{children:"Displays the mobile sidebar."})]}),e[7]=$):$=e[7];let _;e[8]!==t?(_=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=_):_=e[9];let M;e[10]!==n||e[11]!==_?(M=o.jsxs(Z,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:n,children:[$,_]}),e[10]=n,e[11]=_,e[12]=M):M=e[12];let O;return e[13]!==h||e[14]!==a||e[15]!==f||e[16]!==M?(O=o.jsx(U,{open:h,onOpenChange:f,...a,children:M}),e[13]=h,e[14]=a,e[15]=f,e[16]=M,e[17]=O):O=e[17],O}const p=u==="expanded",x=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let c;e[18]!==x?(c=g("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",x),e[18]=x,e[19]=c):c=e[19];const v=p?void 0:"icon",y=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let w;e[20]!==s||e[21]!==y?(w=g("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",y,s),e[20]=s,e[21]=y,e[22]=w):w=e[22];let j;e[23]!==t?(j=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=j):j=e[24];let S;e[25]!==a||e[26]!==w||e[27]!==j?(S=o.jsx("div",{"data-slot":"sidebar-container",className:w,...a,children:j}),e[25]=a,e[26]=w,e[27]=j,e[28]=S):S=e[28];let N;return e[29]!==n||e[30]!==u||e[31]!==c||e[32]!==v||e[33]!==S||e[34]!==r?(N=o.jsx("div",{className:c,"data-state":u,"data-collapsible":v,"data-variant":r,"data-side":n,"data-slot":"sidebar",children:S}),e[29]=n,e[30]=u,e[31]=c,e[32]=v,e[33]=S,e[34]=r,e[35]=N):N=e[35],N}function xe(i){const e=b.c(18);let t,s,a;e[0]!==i?({className:t,onClick:s,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:l}=B();let d;e[4]!==t?(d=g("size-7",t),e[4]=t,e[5]=d):d=e[5];let n;e[6]!==s||e[7]!==l?(n=p=>{s?.(p),l()},e[6]=s,e[7]=l,e[8]=n):n=e[8];let r,m;e[9]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(Q,{}),m=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=r,e[10]=m):(r=e[9],m=e[10]);let u;e[11]!==a||e[12]!==d||e[13]!==n?(u=o.jsx(z,{asChild:!0,children:o.jsxs(q,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:n,...a,children:[r,m]})}),e[11]=a,e[12]=d,e[13]=n,e[14]=u):u=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsxs(D,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(ne)})]}),e[15]=h):h=e[15];let f;return e[16]!==u?(f=o.jsx(I,{delayDuration:300,children:o.jsxs(k,{children:[u,h]})}),e[16]=u,e[17]=f):f=e[17],f}function ne(i){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:i},i)}function ge(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ve(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function je(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function we(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("h-4 m-0! w-full",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-sidebar":"separator",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ne(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ye(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("w-full text-sm overflow-visible",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ce(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function $e(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const re=F("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function _e(i){const e=b.c(28);let t,s,a,l,d,n,r;e[0]!==i?({asChild:a,isActive:l,variant:d,size:n,tooltip:r,className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d,e[6]=n,e[7]=r):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5],n=e[6],r=e[7]);const m=a===void 0?!1:a,u=l===void 0?!1:l,h=d===void 0?"default":d,f=n===void 0?"default":n,p=m?G:"button",{isMobile:x}=B();let c;e[8]!==t||e[9]!==f||e[10]!==h?(c=g(re({variant:h,size:f}),t),e[8]=t,e[9]=f,e[10]=h,e[11]=c):c=e[11];let v;e[12]!==p||e[13]!==u||e[14]!==s||e[15]!==f||e[16]!==c?(v=o.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":u,className:c,...s}),e[12]=p,e[13]=u,e[14]=s,e[15]=f,e[16]=c,e[17]=v):v=e[17];const y=v;if(!r)return y;if(typeof r=="string"){let N;e[18]!==r?(N={children:r},e[18]=r,e[19]=N):N=e[19],r=N}let w;e[20]!==y?(w=o.jsx(z,{asChild:!0,children:y}),e[20]=y,e[21]=w):w=e[21];let j;e[22]!==x||e[23]!==r?(j=o.jsx(D,{side:"right",align:"center",hidden:x,...r}),e[22]=x,e[23]=r,e[24]=j):j=e[24];let S;return e[25]!==w||e[26]!==j?(S=o.jsxs(k,{children:[w,j]}),e[25]=w,e[26]=j,e[27]=S):S=e[27],S}export{Se as S,ye as a,Ce as b,_e as c,$e as d,we as e,Ne as f,he as g,ve as h,je as i,ge as j,me as k,be as l,te as m,se as n,ee as o,Z as p,U as q,xe as r,B as u};
|
|
1
|
+
import{c as b,l as g,j as o,cL as P,cM as R,bP as A,cN as H,cO as L,cP as V,cQ as W,r as T,B as q,bc as G,bB as F}from"./index-CE7Jzo0Y.js";import{i as Q}from"./LayoutLeft-s8OpLO9_.js";import{u as J}from"./use-mobile-J-gsekNR.js";import{i as K}from"./X-CERA5XX-.js";import{c as I,a as z,b as D,T as k}from"./tooltip-Vu1Uuv9_.js";function U(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(R,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function X(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(L,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function Y(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(W,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Z(i){const e=b.c(20);let t,s,a,l,d;e[0]!==i?({className:s,children:t,side:l,hideCloseButton:d,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5]);const n=l===void 0?"right":l,r=d===void 0?!1:d;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(Y,{}),e[6]=m):m=e[6];const u=n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",h=n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",p=n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let x;e[7]!==s||e[8]!==u||e[9]!==h||e[10]!==f||e[11]!==p?(x=g("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",u,h,f,p,s),e[7]=s,e[8]=u,e[9]=h,e[10]=f,e[11]=p,e[12]=x):x=e[12];let c;e[13]!==r?(c=!r&&o.jsxs(V,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsx(K,{className:"size-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=r,e[14]=c):c=e[14];let v;return e[15]!==t||e[16]!==a||e[17]!==x||e[18]!==c?(v=o.jsxs(X,{children:[m,o.jsxs(A,{"data-slot":"sheet-content",className:x,...a,children:[t,c]})]}),e[15]=t,e[16]=a,e[17]=x,e[18]=c,e[19]=v):v=e[19],v}function ee(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function te(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(P,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(H,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const ae="15rem",le="18rem",ie="4.5rem",E=T.createContext(null);function B(){const i=T.useContext(E);if(!i)throw new Error("useSidebar must be used within a SidebarProvider.");return i}function be(i){const e=b.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:l}=i,d=s===void 0?!1:s,n=J(),[r,m]=T.useState(d),[u,h]=T.useState(!1),f=a!==void 0,p=f?a:r;let x;e[0]!==f||e[1]!==l?(x=$=>{f||m($),l?.($)},e[0]=f,e[1]=l,e[2]=x):x=e[2];const c=x;let v;e[3]!==n||e[4]!==p||e[5]!==c?(v=()=>{n?h(oe):c(!p)},e[3]=n,e[4]=p,e[5]=c,e[6]=v):v=e[6];const y=v,w=p?"expanded":"collapsed";let j;e[7]!==n||e[8]!==p||e[9]!==u||e[10]!==c||e[11]!==w||e[12]!==y?(j={state:w,open:p,setOpen:c,isMobile:n,openMobile:u,setOpenMobile:h,toggleSidebar:y},e[7]=n,e[8]=p,e[9]=u,e[10]=c,e[11]=w,e[12]=y,e[13]=j):j=e[13];const S=j;let N;e[14]!==t?(N=o.jsx(I,{delayDuration:0,children:t}),e[14]=t,e[15]=N):N=e[15];let C;return e[16]!==S||e[17]!==N?(C=o.jsx(E.Provider,{value:S,children:N}),e[16]=S,e[17]=N,e[18]=C):C=e[18],C}function oe(i){return!i}function me(i){const e=b.c(14);let t,s,a,l;e[0]!==i?({className:s,style:l,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l):(t=e[1],s=e[2],a=e[3],l=e[4]);let d;e[5]!==l?(d={"--sidebar-width":ae,"--sidebar-width-icon":ie,...l},e[5]=l,e[6]=d):d=e[6];const n=d;let r;e[7]!==s?(r=g("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=r):r=e[8];let m;return e[9]!==t||e[10]!==a||e[11]!==n||e[12]!==r?(m=o.jsx("div",{"data-slot":"sidebar-wrapper",style:n,className:r,...a,children:t}),e[9]=t,e[10]=a,e[11]=n,e[12]=r,e[13]=m):m=e[13],m}function he(i){const e=b.c(36);let t,s,a,l,d;e[0]!==i?({side:l,variant:d,className:s,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5]);const n=l===void 0?"left":l,r=d===void 0?"sidebar":d,{isMobile:m,state:u,openMobile:h,setOpenMobile:f}=B();if(m){let C;e[6]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":le},e[6]=C):C=e[6];let $;e[7]===Symbol.for("react.memo_cache_sentinel")?($=o.jsxs(ee,{className:"sr-only",children:[o.jsx(te,{children:"Sidebar"}),o.jsx(se,{children:"Displays the mobile sidebar."})]}),e[7]=$):$=e[7];let _;e[8]!==t?(_=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=_):_=e[9];let M;e[10]!==n||e[11]!==_?(M=o.jsxs(Z,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:n,children:[$,_]}),e[10]=n,e[11]=_,e[12]=M):M=e[12];let O;return e[13]!==h||e[14]!==a||e[15]!==f||e[16]!==M?(O=o.jsx(U,{open:h,onOpenChange:f,...a,children:M}),e[13]=h,e[14]=a,e[15]=f,e[16]=M,e[17]=O):O=e[17],O}const p=u==="expanded",x=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let c;e[18]!==x?(c=g("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",x),e[18]=x,e[19]=c):c=e[19];const v=p?void 0:"icon",y=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let w;e[20]!==s||e[21]!==y?(w=g("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",y,s),e[20]=s,e[21]=y,e[22]=w):w=e[22];let j;e[23]!==t?(j=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=j):j=e[24];let S;e[25]!==a||e[26]!==w||e[27]!==j?(S=o.jsx("div",{"data-slot":"sidebar-container",className:w,...a,children:j}),e[25]=a,e[26]=w,e[27]=j,e[28]=S):S=e[28];let N;return e[29]!==n||e[30]!==u||e[31]!==c||e[32]!==v||e[33]!==S||e[34]!==r?(N=o.jsx("div",{className:c,"data-state":u,"data-collapsible":v,"data-variant":r,"data-side":n,"data-slot":"sidebar",children:S}),e[29]=n,e[30]=u,e[31]=c,e[32]=v,e[33]=S,e[34]=r,e[35]=N):N=e[35],N}function xe(i){const e=b.c(18);let t,s,a;e[0]!==i?({className:t,onClick:s,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:l}=B();let d;e[4]!==t?(d=g("size-7",t),e[4]=t,e[5]=d):d=e[5];let n;e[6]!==s||e[7]!==l?(n=p=>{s?.(p),l()},e[6]=s,e[7]=l,e[8]=n):n=e[8];let r,m;e[9]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(Q,{}),m=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=r,e[10]=m):(r=e[9],m=e[10]);let u;e[11]!==a||e[12]!==d||e[13]!==n?(u=o.jsx(z,{asChild:!0,children:o.jsxs(q,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:n,...a,children:[r,m]})}),e[11]=a,e[12]=d,e[13]=n,e[14]=u):u=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsxs(D,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(ne)})]}),e[15]=h):h=e[15];let f;return e[16]!==u?(f=o.jsx(I,{delayDuration:300,children:o.jsxs(k,{children:[u,h]})}),e[16]=u,e[17]=f):f=e[17],f}function ne(i){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:i},i)}function ge(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ve(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function je(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function we(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("h-4 m-0! w-full",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-sidebar":"separator",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ne(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ye(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("w-full text-sm overflow-visible",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ce(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function $e(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const re=F("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function _e(i){const e=b.c(28);let t,s,a,l,d,n,r;e[0]!==i?({asChild:a,isActive:l,variant:d,size:n,tooltip:r,className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=d,e[6]=n,e[7]=r):(t=e[1],s=e[2],a=e[3],l=e[4],d=e[5],n=e[6],r=e[7]);const m=a===void 0?!1:a,u=l===void 0?!1:l,h=d===void 0?"default":d,f=n===void 0?"default":n,p=m?G:"button",{isMobile:x}=B();let c;e[8]!==t||e[9]!==f||e[10]!==h?(c=g(re({variant:h,size:f}),t),e[8]=t,e[9]=f,e[10]=h,e[11]=c):c=e[11];let v;e[12]!==p||e[13]!==u||e[14]!==s||e[15]!==f||e[16]!==c?(v=o.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":u,className:c,...s}),e[12]=p,e[13]=u,e[14]=s,e[15]=f,e[16]=c,e[17]=v):v=e[17];const y=v;if(!r)return y;if(typeof r=="string"){let N;e[18]!==r?(N={children:r},e[18]=r,e[19]=N):N=e[19],r=N}let w;e[20]!==y?(w=o.jsx(z,{asChild:!0,children:y}),e[20]=y,e[21]=w):w=e[21];let j;e[22]!==x||e[23]!==r?(j=o.jsx(D,{side:"right",align:"center",hidden:x,...r}),e[22]=x,e[23]=r,e[24]=j):j=e[24];let S;return e[25]!==w||e[26]!==j?(S=o.jsxs(k,{children:[w,j]}),e[25]=w,e[26]=j,e[27]=S):S=e[27],S}export{Se as S,ye as a,Ce as b,_e as c,$e as d,we as e,Ne as f,he as g,ve as h,je as i,ge as j,me as k,be as l,te as m,se as n,ee as o,Z as p,U as q,xe as r,B as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,l as c,j as i}from"./index-
|
|
1
|
+
import{c as n,l as c,j as i}from"./index-CE7Jzo0Y.js";function m(o){const e=n.c(8);let s,t;e[0]!==o?({className:s,...t}=o,e[0]=o,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=c("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=l):l=e[4];let a;return e[5]!==t||e[6]!==l?(a=i.jsx("div",{"data-slot":"skeleton",className:l,...t}),e[5]=t,e[6]=l,e[7]=a):a=e[7],a}export{m as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a5 as D,r as v,j as e,B as p,R as S,t as c,c as N}from"./index-
|
|
1
|
+
import{a5 as D,r as v,j as e,B as p,R as S,t as c,c as N}from"./index-CE7Jzo0Y.js";import{D as k}from"./domain-settings-Or0qxE6F.js";import{P as f}from"./index-ClvxTMee.js";import{I as l}from"./input-BwW0UiHD.js";import{S as z}from"./switch-845JpOMu.js";import{a as P,b as R,c as A,d as T}from"./use-org-sso-zoDPrJJW.js";import{c as F,S as y,a as C,b as r,d as O}from"./settings-section-D_8CkXtp.js";import{s as L}from"./Trash01-Dhchorur.js";import{R as q}from"./require-capability-CW48-N_9.js";import"./studio-tools-D1EUgEy9.js";import"./badge-BPHuSIZS.js";import"./select-ClxYO5H6.js";import"./tooltip-Vu1Uuv9_.js";import"./Check-l-3_5Yub.js";import"./ChevronDown-GxzgRPnW.js";import"./ChevronUp-IrB7cB7L.js";import"./sidebar-DEGnavl-.js";import"./LayoutLeft-s8OpLO9_.js";import"./use-mobile-J-gsekNR.js";import"./X-CERA5XX-.js";import"./card-Ctjdx224.js";import"./ArrowUpRight-dKwmf_Po.js";import"./use-capability-BjfQMpiC.js";import"./access-gate-BCRHHlgW.js";import"./capability-load-error-CqAiKd5S.js";function B(){const{org:s}=D(),{data:a,isLoading:E}=P(s.id,s.slug),x=R(s.id,s.slug),h=A(s.id,s.slug),j=T(s.id,s.slug),[t,d]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[m,g]=v.useState(!1),u=a?.configured&&a.config,o=a?.config,I=()=>{o&&d({issuer:o.issuer,clientId:o.clientId,clientSecret:"",discoveryEndpoint:o.discoveryEndpoint??"",domain:o.domain,scopes:o.scopes.join(" ")}),g(!0)},b=async()=>{if(!t.issuer||!t.clientId||!t.domain){c.error("Issuer, Client ID, and Domain are required");return}if(!u&&!t.clientSecret){c.error("Client Secret is required for initial setup");return}try{await x.mutateAsync({issuer:t.issuer,clientId:t.clientId,clientSecret:t.clientSecret,discoveryEndpoint:t.discoveryEndpoint||void 0,scopes:t.scopes.split(/\s+/).filter(Boolean),domain:t.domain,enforced:o?.enforced??!1}),S(u?"sso_config_updated":"sso_configured",{organization_id:s.id,email_domain:t.domain}),c.success("SSO configuration saved"),g(!1)}catch(i){c.error(i instanceof Error?i.message:"Failed to save SSO config")}},w=async()=>{if(confirm("Are you sure you want to remove SSO configuration?"))try{await h.mutateAsync(),S("sso_config_removed",{organization_id:s.id}),c.success("SSO configuration removed"),g(!1)}catch{c.error("Failed to remove SSO config")}},_=async i=>{try{await j.mutateAsync(i),S("sso_enforcement_toggled",{organization_id:s.id,enforced:i}),c.success(i?"SSO enforcement enabled":"SSO enforcement disabled")}catch{c.error("Failed to toggle SSO enforcement")}};return e.jsx(f,{children:e.jsx(f.Content,{children:e.jsx(f.Body,{children:e.jsxs(F,{children:[e.jsx(f.Title,{children:"Security"}),e.jsx(k,{}),E?e.jsx("div",{className:"text-sm text-muted-foreground",children:"Loading..."}):e.jsxs(e.Fragment,{children:[u&&!m&&e.jsx(y,{title:"Single Sign-On",children:e.jsxs(C,{children:[e.jsx(r,{title:"Provider",action:e.jsx("span",{className:"font-medium",children:o.issuer})}),e.jsx(r,{title:"Client ID",action:e.jsx("span",{className:"font-mono text-xs",children:o.clientId})}),e.jsx(r,{title:"Domain",action:e.jsx("span",{className:"font-medium",children:o.domain})}),e.jsx(r,{title:"Scopes",action:e.jsx("span",{className:"font-mono text-xs",children:o.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(r,{title:"Enforce SSO",description:"Require all members to authenticate via SSO",action:e.jsx(z,{checked:o.enforced,onCheckedChange:_,disabled:j.isPending})}),e.jsxs(O,{children:[e.jsxs(p,{variant:"ghost",size:"sm",onClick:w,disabled:h.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(L,{size:14}),"Remove"]}),e.jsx(p,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${s.slug}/sso/authorize`,"_blank")},children:"Test SSO"}),e.jsx(p,{variant:"outline",size:"sm",onClick:I,children:"Edit configuration"})]})]})}),(!u||m)&&e.jsx(y,{title:"Single Sign-On",children:e.jsxs(C,{children:[e.jsx(r,{title:"Issuer URL",description:"The OIDC issuer URL of your identity provider.",action:e.jsx(l,{id:"sso-issuer",placeholder:"https://login.microsoftonline.com/{tenant}/v2.0",value:t.issuer,onChange:i=>d(n=>({...n,issuer:i.target.value})),className:"w-[280px]"})}),e.jsx(r,{title:"Client ID",action:e.jsx(l,{id:"sso-client-id",placeholder:"your-client-id",value:t.clientId,onChange:i=>d(n=>({...n,clientId:i.target.value})),className:"w-[280px]"})}),e.jsx(r,{title:"Client Secret",description:m&&u?"Leave empty to keep current":void 0,action:e.jsx(l,{id:"sso-client-secret",type:"password",placeholder:"your-client-secret",value:t.clientSecret,onChange:i=>d(n=>({...n,clientSecret:i.target.value})),className:"w-[280px]"})}),e.jsx(r,{title:"Email Domain",description:"The email domain this SSO provider covers.",action:e.jsx(l,{id:"sso-domain",placeholder:"company.com",value:t.domain,onChange:i=>d(n=>({...n,domain:i.target.value})),className:"w-[280px]"})}),e.jsx(r,{title:"Scopes",action:e.jsx(l,{id:"sso-scopes",placeholder:"openid email profile",value:t.scopes,onChange:i=>d(n=>({...n,scopes:i.target.value})),className:"w-[280px]"})}),e.jsx(r,{title:"Discovery Endpoint",description:"Optional — auto-detected from issuer if omitted.",action:e.jsx(l,{id:"sso-discovery",placeholder:"Auto-detected from issuer",value:t.discoveryEndpoint,onChange:i=>d(n=>({...n,discoveryEndpoint:i.target.value})),className:"w-[280px]"})}),e.jsxs(O,{children:[m&&e.jsx(p,{variant:"outline",size:"sm",onClick:()=>g(!1),children:"Cancel"}),e.jsx(p,{onClick:b,disabled:x.isPending,size:"sm",children:x.isPending?"Saving...":m?"Update":"Configure SSO"})]})]})})]})]})})})})}function ue(){const s=N.c(1);let a;return s[0]===Symbol.for("react.memo_cache_sentinel")?(a=e.jsx(q,{capability:"org:manage",area:"security",children:e.jsx(B,{})}),s[0]=a):a=s[0],a}export{ue as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-yjtzq8OJ.js","assets/index-CE7Jzo0Y.js","assets/index-B_EB6W38.css","assets/Tool02-ByL8yJTv.js","assets/CheckCircle-CG3UGDqI.js","assets/Settings02-CkhH_edn.js","assets/use-mcp-client-DH5Fdew1.js","assets/constants-CaIX_f5U.js","assets/auth-CXQvN3HA.js","assets/useInfiniteQuery-ChPiqG8n.js","assets/use-infinite-scroll-BoTNtZTW.js","assets/studio-tools-D1EUgEy9.js","assets/badge-BPHuSIZS.js","assets/input-BwW0UiHD.js","assets/dropdown-menu-BdvxZA7T.js","assets/Check-l-3_5Yub.js","assets/ChevronRight-DOjdQ2jl.js","assets/Circle-DdSDnwMx.js","assets/table-DAPGi_D2.js","assets/toggle-group-DKvzk__a.js","assets/use-view-mode-miVmRD8y.js","assets/use-mobile-J-gsekNR.js","assets/DotsVertical-CmKqicos.js","assets/FilterLines-zHENNr4w.js","assets/Globe01-4qneKCx1.js","assets/SearchMd-DewSjApI.js","assets/dialog-CTw40U7G.js","assets/X-CERA5XX-.js","assets/AlertCircle-ikh9EhW8.js","assets/Upload01-BEJOqF9_.js","assets/alert-dialog-CFQnSlFi.js","assets/card-Ctjdx224.js","assets/Trash01-Dhchorur.js","assets/label-T4A96HJz.js","assets/select-ClxYO5H6.js","assets/tooltip-Vu1Uuv9_.js","assets/ChevronDown-GxzgRPnW.js","assets/ChevronUp-IrB7cB7L.js","assets/switch-845JpOMu.js","assets/textarea-yMzCwiSX.js","assets/XCircle-CQFHeST9.js","assets/checkbox-CeNWwfEP.js","assets/Eye-CiVCpr3W.js","assets/LinkExternal01-Ur0JUTw7.js","assets/use-copy-cNe9Kr2Q.js","assets/Copy01-C8oU0zGn.js","assets/Key01-CvEHhjaQ.js","assets/Plus-BYVxPimi.js","assets/mcp-oauth-C31dvqbj.js","assets/Play-C-A2YLYB.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as m,b as n,e as c,j as t,i as p,r as l,aX as f}from"./index-CE7Jzo0Y.js";import{R as u}from"./require-capability-CW48-N_9.js";import"./use-capability-BjfQMpiC.js";import"./access-gate-BCRHHlgW.js";import"./capability-load-error-CqAiKd5S.js";const g=l.lazy(()=>f(()=>import("./registry-layout-yjtzq8OJ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(p,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
|