decocms 4.149.7 → 4.150.1
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-BiFsMhm4.js → AlertCircle-DZqBnZUK.js} +1 -1
- package/dist/client/assets/{AreaChart-DoByAr16.js → AreaChart-BQfL1zWr.js} +1 -1
- package/dist/client/assets/{ArrowUp-BSm3AYB8.js → ArrowUp-BzVoSWRY.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-DeyIz7v5.js → ArrowUpRight-C-HFqkS4.js} +1 -1
- package/dist/client/assets/{Check-rokpcf0T.js → Check-BX2JJtbr.js} +1 -1
- package/dist/client/assets/{CheckCircle-DAP9g-rT.js → CheckCircle-B9Q7BP0R.js} +1 -1
- package/dist/client/assets/{ChevronDown-CPacLmdA.js → ChevronDown-C0kK0nLg.js} +1 -1
- package/dist/client/assets/{ChevronRight-B3aSlkur.js → ChevronRight-DgLwn5xj.js} +1 -1
- package/dist/client/assets/{ChevronUp-BK9Hx0V9.js → ChevronUp-DUu3dFvi.js} +1 -1
- package/dist/client/assets/{Copy01-5TOIojCe.js → Copy01-ButcPCjW.js} +1 -1
- package/dist/client/assets/CpuChip01--vbgg446.js +1 -0
- package/dist/client/assets/{DotsVertical-Ci1-w3e_.js → DotsVertical-C_TeAt9N.js} +1 -1
- package/dist/client/assets/{Eye-D_L0dZ6u.js → Eye-vq9NyAEt.js} +1 -1
- package/dist/client/assets/{FilterLines-CXXP_NBc.js → FilterLines-_MGxq1cj.js} +1 -1
- package/dist/client/assets/{HardDrive-Dz77ORfh.js → HardDrive-CzyBCh3d.js} +1 -1
- package/dist/client/assets/{Key01-DajEy3HZ.js → Key01-CvoufTmi.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CNCDZdDQ.js → LayoutLeft-pPvjYgoZ.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CBBWd_u8.js → LinkExternal01-DQGUVSM9.js} +1 -1
- package/dist/client/assets/{LogOut01-DWlyRcQP.js → LogOut01-BseiHZwI.js} +1 -1
- package/dist/client/assets/{Monitor01-SfpO8_eS.js → Monitor01-CN2AFUd8.js} +1 -1
- package/dist/client/assets/{Palette-DdP8XSRj.js → Palette-iBvrW59Z.js} +1 -1
- package/dist/client/assets/{Play-CCRE5ZQ3.js → Play-C3pUfm0S.js} +1 -1
- package/dist/client/assets/{Plus-SfXjhFdQ.js → Plus-BTr4PI36.js} +1 -1
- package/dist/client/assets/{SearchLg-Cm9WaEOr.js → SearchLg-DqteayyL.js} +1 -1
- package/dist/client/assets/{SearchMd-BFouC3yb.js → SearchMd-DaQvdwYA.js} +1 -1
- package/dist/client/assets/{Settings02-DUdP-JTL.js → Settings02-BK7HMP-t.js} +1 -1
- package/dist/client/assets/{Shield01-CVeAmAQS.js → Shield01-CsKHz8R7.js} +1 -1
- package/dist/client/assets/{Star01-BoqpV_cz.js → Star01-DhZ4xNqy.js} +1 -1
- package/dist/client/assets/{Stars01-oBfIKe_H.js → Stars01-YVkhCw82.js} +1 -1
- package/dist/client/assets/{Stars02-BHuJgpT2.js → Stars02-CXR47Omk.js} +1 -1
- package/dist/client/assets/{Sun-DPFLXdN9.js → Sun-1q5AI4_f.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-UVm_9kuZ.js → SwitchHorizontal01-C97W2y_Q.js} +1 -1
- package/dist/client/assets/{Tool01-Cwtm9Zfc.js → Tool01-BW8ZvrE3.js} +1 -1
- package/dist/client/assets/{Tool02-Dtn0vTkb.js → Tool02-CxblnFnJ.js} +1 -1
- package/dist/client/assets/{Trash01-jc_UuKLC.js → Trash01-CmT8OmvC.js} +1 -1
- package/dist/client/assets/{TrendUp01-GUe-gdeI.js → TrendUp01-D_7UkRme.js} +1 -1
- package/dist/client/assets/{Upload01-_1DUBSlt.js → Upload01-D1JXX1Ph.js} +1 -1
- package/dist/client/assets/{User01-D_ggPL6l.js → User01-Dpjq1MBp.js} +1 -1
- package/dist/client/assets/{Users01-DMeK9zGH.js → Users01-Dl_9JClI.js} +1 -1
- package/dist/client/assets/{Users03-CM1sULj9.js → Users03-rXolOTe_.js} +1 -1
- package/dist/client/assets/{X-C5G0YNBl.js → X-D_oLK6_c.js} +1 -1
- package/dist/client/assets/{XCircle-DrrwTSsJ.js → XCircle-DUZX5yLz.js} +1 -1
- package/dist/client/assets/{XClose-aZG3Lwvy.js → XClose-D0oOj-ud.js} +1 -1
- package/dist/client/assets/{Zap-CxBT7IWE.js → Zap-DVHCKkr0.js} +1 -1
- package/dist/client/assets/ZapSquare-CicfodSm.js +1 -0
- package/dist/client/assets/{access-gate-B3guIJUr.js → access-gate-BnNnauJv.js} +1 -1
- package/dist/client/assets/{add-section-modal-DAOs5z1n.js → add-section-modal-CE7z0FNf.js} +1 -1
- package/dist/client/assets/agent-icon-keI5mZSI.js +1 -0
- package/dist/client/assets/agents-list-DN0L8-S2.js +1 -0
- package/dist/client/assets/{ai-providers-syUkGpFH.js → ai-providers-CJVMEb6m.js} +1 -1
- package/dist/client/assets/{alert-ta_KJfM4.js → alert-QXKW6mrW.js} +1 -1
- package/dist/client/assets/{alert-dialog-DliQGHu_.js → alert-dialog-CJMXecoj.js} +1 -1
- package/dist/client/assets/app-editor-d2FCQf_M.js +1 -0
- package/dist/client/assets/{auth-XDi96955.js → auth-U7lq6rf1.js} +1 -1
- package/dist/client/assets/{auth-catchall-CgBsmSSz.js → auth-catchall-6_yxuDjG.js} +1 -1
- package/dist/client/assets/{auth-entry-Bp3C-6Uj.js → auth-entry-6LychnRm.js} +1 -1
- package/dist/client/assets/{auth-split-layout-D94Rl64P.js → auth-split-layout-CB5yvL88.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-C0WFKfVc.js → authenticate-and-persist-oauth-DfZaAOrc.js} +1 -1
- package/dist/client/assets/{automation-list-row-BUkSuGgE.js → automation-list-row-Bjro_SDr.js} +1 -1
- package/dist/client/assets/{automation-runs-CFl0TPrC.js → automation-runs-CJkwrx8I.js} +1 -1
- package/dist/client/assets/automations-BL6zBb2p.js +1 -0
- package/dist/client/assets/{avatar-BrxEDiW5.js → avatar-DDU8NMhZ.js} +1 -1
- package/dist/client/assets/{badge-DggS66bH.js → badge-if80MApE.js} +1 -1
- package/dist/client/assets/{block-document-DqYzWxLv.js → block-document-DdFaYDne.js} +1 -1
- package/dist/client/assets/{brand-context-Bc6RY2Yv.js → brand-context-BCQ-t-QL.js} +1 -1
- package/dist/client/assets/{buckets-Dl78-NSh.js → buckets-DWozHHqG.js} +1 -1
- package/dist/client/assets/bulk-category-panel-BUe-qkRp.js +1 -0
- package/dist/client/assets/{calendar-DcWQOY47.js → calendar-BSabjpqG.js} +1 -1
- package/dist/client/assets/{capability-load-error-CVQkqfS2.js → capability-load-error-BG2BHe51.js} +1 -1
- package/dist/client/assets/{card-Bc9XMAV0.js → card-CDMFPpZU.js} +1 -1
- package/dist/client/assets/category-editor-HzAm1c9d.js +1 -0
- package/dist/client/assets/{chat-context-AqRARPO5.js → chat-context-Bfoolk8K.js} +12 -12
- package/dist/client/assets/{checkbox-B6ZDdSvN.js → checkbox-zcCdLvf3.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CrDsqLgJ.js → cli-auth-success-BN9YecVy.js} +1 -1
- package/dist/client/assets/collection-detail-jytpg5V6.js +1 -0
- package/dist/client/assets/{collection-display-button-D6RRnHxA.js → collection-display-button-CqG38uH-.js} +1 -1
- package/dist/client/assets/{collection-search-ClOu31ci.js → collection-search-BFAHbGX2.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DzdSHmL5.js → collection-table-wrapper-DOVfUDY5.js} +1 -1
- package/dist/client/assets/{collection-tabs-CLTFM03Q.js → collection-tabs-DJpG_RPu.js} +1 -1
- package/dist/client/assets/{command-tEVFSIDb.js → command-DiRc8_ii.js} +1 -1
- package/dist/client/assets/commerce-onboarding-CtU9NsGr.js +1 -0
- package/dist/client/assets/{companions-core-BXWaci_Z.js → companions-core-DZwnuE3V.js} +1 -1
- package/dist/client/assets/{connect-CdApKN_i.js → connect-YYFj2Q1m.js} +1 -1
- package/dist/client/assets/{connection-BzEpFoAX.js → connection-EN-8DRCE.js} +1 -1
- package/dist/client/assets/{connection-card-D4oWr5G1.js → connection-card-BIyUAtll.js} +1 -1
- package/dist/client/assets/connection-detail-Ce5UBrjG.js +1 -0
- package/dist/client/assets/{connection-form-helpers-bHQvDEyW.js → connection-form-helpers-lxp-YyV6.js} +1 -1
- package/dist/client/assets/connections-CQ2eDkZU.js +1 -0
- package/dist/client/assets/{decopilot-sse-pool-B6fO_e2Q.js → decopilot-sse-pool-BAATEVTt.js} +1 -1
- package/dist/client/assets/{dialog-CcBvH6sb.js → dialog-CYVn8lw-.js} +1 -1
- package/dist/client/assets/{domain-settings-BNIxLber.js → domain-settings-CBbmoa3g.js} +1 -1
- package/dist/client/assets/{drawer-BYPzeiqB.js → drawer-BB1-ZKkN.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BnYh-sUy.js → dropdown-menu-CfjF0x1v.js} +1 -1
- package/dist/client/assets/{empty-state-D0um33CJ.js → empty-state-N4NC3DL9.js} +1 -1
- package/dist/client/assets/{extract-connection-data-C4oZtxRq.js → extract-connection-data-BnMf-nfh.js} +1 -1
- package/dist/client/assets/file-explorer-BqYrk0Ms.js +2 -0
- package/dist/client/assets/{form-B30v3rW_.js → form-CP4aOMvu.js} +1 -1
- package/dist/client/assets/general-BSzHiEss.js +1 -0
- package/dist/client/assets/{github-repo-picker-DnYzYk-g.js → github-repo-picker-0Sxe85R0.js} +1 -1
- package/dist/client/assets/{hooks-DpMhOxp5.js → hooks-BpX9ViV0.js} +1 -1
- package/dist/client/assets/{index-BaONrWsa.js → index-B2fgv8Yv.js} +1 -1
- package/dist/client/assets/index-B5MweN_Z.js +1 -0
- package/dist/client/assets/{index-dverSVGj.js → index-BcSLSEHl.js} +1 -1
- package/dist/client/assets/{index-im4TJfDr.js → index-BotXJfEU.js} +1 -1
- package/dist/client/assets/{index-BXUkQJWN.js → index-CdzXGTFr.js} +3 -3
- package/dist/client/assets/{index-DsTqVdZx.js → index-CncDnAtk.js} +31 -31
- package/dist/client/assets/{index-Ci8RLcRP.js → index-Cxn76qtl.js} +1 -1
- package/dist/client/assets/{index-hrFLkJh0.js → index-D0TpSBVR.js} +2 -2
- package/dist/client/assets/{index-JAfoJcTE.js → index-Dg5lW10U.js} +1 -1
- package/dist/client/assets/{index-DTgaKfa1.js → index-INSKxT89.js} +18 -18
- package/dist/client/assets/{index-j_W2ZplR.js → index-LeH-Nk1D.js} +1 -1
- package/dist/client/assets/{index-redirect-EaRTgxTw.js → index-redirect-tBPXkXmO.js} +1 -1
- package/dist/client/assets/{input-C72W64FP.js → input-Cd5pEbyl.js} +1 -1
- package/dist/client/assets/{integration-icon-Buh9MmdF.js → integration-icon-C-nm4Ydr.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-C85Ce4Km.js → invite-member-dialog-BwM33IGb.js} +1 -1
- package/dist/client/assets/{label-BUH_VVoz.js → label-eqyUR7pd.js} +1 -1
- package/dist/client/assets/{layout-CBiQ0oxs.js → layout-CePiBe08.js} +1 -1
- package/dist/client/assets/{login-DR1jxZMt.js → login-ClZA04aU.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CECKXhxv.js → mcp-oauth-BdEJh0Yp.js} +1 -1
- package/dist/client/assets/{members---vaY7GK.js → members-3_HeLCuh.js} +1 -1
- package/dist/client/assets/{monaco-editor-DGkIp40X.js → monaco-editor-6AQRiRcp.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-C_IyOC8R.js → monitoring-stats-row-CXpN7aAs.js} +1 -1
- package/dist/client/assets/{multi-select-X3IHqjVc.js → multi-select-B-Wy-fBT.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-By0SIhLp.js → oauth-callback-ai-provider-D3gZ3hlb.js} +1 -1
- package/dist/client/assets/{oauth-callback-BeXlujDl.js → oauth-callback-j0W1XQko.js} +1 -1
- package/dist/client/assets/{onboarding-Cit1IiD-.js → onboarding-r-9D_0Za.js} +1 -1
- package/dist/client/assets/{org-install-CgwvFWoC.js → org-install-CbK7rVy9.js} +1 -1
- package/dist/client/assets/{org-layout-DEUTz0Pc.js → org-layout-7y7V8IKN.js} +1 -1
- package/dist/client/assets/{organization-choice-BLASMBg3.js → organization-choice-BAQiqls9.js} +1 -1
- package/dist/client/assets/{orgs-BUaqmNDB.js → orgs-BQTbdOcN.js} +1 -1
- package/dist/client/assets/{page-seo-form-DB3OBAjK.js → page-seo-form-DwD4N-jw.js} +1 -1
- package/dist/client/assets/{popover-DatxMXX8.js → popover-CQ865FPo.js} +1 -1
- package/dist/client/assets/post-editor-C4o2J-RD.js +1 -0
- package/dist/client/assets/{primitives-BYry-oxo.js → primitives-CVvWouXZ.js} +1 -1
- package/dist/client/assets/{profile-DBx-quKK.js → profile-C0lf9fD2.js} +1 -1
- package/dist/client/assets/project-app-view-9r4oY0gB.js +1 -0
- package/dist/client/assets/record-editor-BVYWsgZq.js +1 -0
- package/dist/client/assets/redirect-editor-LqB0Nm_2.js +1 -0
- package/dist/client/assets/registry-B8rqoFpG.js +2 -0
- package/dist/client/assets/{registry-layout-4cbriU6p.js → registry-layout-BVBEgYAJ.js} +1 -1
- package/dist/client/assets/{reports-vwsJm6zQ.js → reports-YUUL3Ytl.js} +1 -1
- package/dist/client/assets/{require-capability-CUVZxilL.js → require-capability-b0W8gUzJ.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Dvz6-mde.js → required-auth-layout-s2bNe0-l.js} +1 -1
- package/dist/client/assets/{reset-password-Dx66CcaP.js → reset-password-CSwEmYQQ.js} +1 -1
- package/dist/client/assets/roles-loV9_p_I.js +1 -0
- package/dist/client/assets/{search-input-CeYZhUxp.js → search-input-CRcO4xtW.js} +1 -1
- package/dist/client/assets/{secrets-DopzyFUm.js → secrets-DBG8Rlmw.js} +1 -1
- package/dist/client/assets/{sections-editor-by9bX78B.js → sections-editor-LAgLjJeB.js} +2 -2
- package/dist/client/assets/{select-DxtXx4Gd.js → select-C2W-lxSj.js} +1 -1
- package/dist/client/assets/select-model-Ct17SqfM.js +4 -0
- package/dist/client/assets/{self-tool-result-BUUd7Dsf.js → self-tool-result-G4ouxwYH.js} +1 -1
- package/dist/client/assets/seo-editor-snae3wbN.js +1 -0
- package/dist/client/assets/settings-layout-Cej22qeG.js +1 -0
- package/dist/client/assets/{settings-section-I60nzLqo.js → settings-section-BgtkwP9q.js} +1 -1
- package/dist/client/assets/{shell-controls-B3pJLSaV.js → shell-controls-DDIY7zkg.js} +1 -1
- package/dist/client/assets/shell-layout-BuuJGaxi.js +1 -0
- package/dist/client/assets/{sidebar-DguXDaRr.js → sidebar-iLgdb67_.js} +1 -1
- package/dist/client/assets/{skeleton-D3TX9e1l.js → skeleton-_WKgU-il.js} +1 -1
- package/dist/client/assets/{sso-CQ5TRs4N.js → sso-BJJ5DW-W.js} +1 -1
- package/dist/client/assets/{store-D7yGyDZ_.js → store-DlBOPhQk.js} +1 -1
- package/dist/client/assets/store-registry-DlQ0I2jj.js +2 -0
- package/dist/client/assets/{studio-tools-e62Z61Le.js → studio-tools-C06bI5ga.js} +1 -1
- package/dist/client/assets/{switch-CxExaNpJ.js → switch-CkEk_N83.js} +1 -1
- package/dist/client/assets/tab-id-Dk_SIAtC.js +1 -0
- package/dist/client/assets/{table-_k-3G-55.js → table-DX8acQFf.js} +1 -1
- package/dist/client/assets/{tabs-dqQKMmuL.js → tabs-gdbVmbI5.js} +1 -1
- package/dist/client/assets/{textarea-DfYALb4E.js → textarea-DSOHqOj4.js} +1 -1
- package/dist/client/assets/{toggle-group-CWypEkzR.js → toggle-group-yPxjK2Ay.js} +1 -1
- package/dist/client/assets/{toolbar-CG6AS3q0.js → toolbar-CF2vnmHI.js} +1 -1
- package/dist/client/assets/{tooltip-CqWMVk2M.js → tooltip-D0pHBYbI.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Du0KxunD.js → use-ai-providers-Do1WYhvy.js} +1 -1
- package/dist/client/assets/{use-automations-CzgZplev.js → use-automations-KDX-0X--.js} +1 -1
- package/dist/client/assets/{use-autosave-BZInI20f.js → use-autosave-C0dZ5JZi.js} +1 -1
- package/dist/client/assets/{use-capability-DOpinycn.js → use-capability-g498lRte.js} +1 -1
- package/dist/client/assets/{use-clock-tick-ZkT_1fjY.js → use-clock-tick-C4AQqDtd.js} +1 -1
- package/dist/client/assets/{use-connection-DtFjrTRv.js → use-connection-CIET0Msk.js} +1 -1
- package/dist/client/assets/{use-copy-BfuE0gud.js → use-copy-Dg_8Rv-z.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DEmwA4BW.js → use-create-virtual-mcp-BvTOzXby.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CMosI2l2.js → use-debounced-autosave-BEBg04RP.js} +1 -1
- package/dist/client/assets/{use-debounced-value-MzI5bRtk.js → use-debounced-value-BrEMTOVV.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BKHMf8TZ.js → use-deco-credits-B66UJoDc.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-B8cCEH6l.js → use-decopilot-events-7kVAFziy.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CEGqjsMV.js → use-delete-connection-Dekdl8Jk.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CA3Wfjto.js → use-deployment-admin-DzTk1Qt9.js} +1 -1
- package/dist/client/assets/{use-file-configs-CB7kRy8l.js → use-file-configs-Cp5zjQB4.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DHM2f60I.js → use-infinite-scroll-CMnhUeUg.js} +1 -1
- package/dist/client/assets/{use-join-requests-DnWd7MPF.js → use-join-requests-Dt2PAYbh.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-C7fHuFD9.js → use-mcp-auth-status-C8CB6EOV.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DayFt0Gf.js → use-mcp-client-BJx91BEC.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BCVy-8a8.js → use-mcp-tools-COwEziEE.js} +1 -1
- package/dist/client/assets/{use-members-CCGbZEKO.js → use-members-Cyar9rsw.js} +1 -1
- package/dist/client/assets/{use-mobile-BIWGqE3k.js → use-mobile-DyVGWTUp.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-C0TiV0EA.js → use-navigate-to-agent-DJbF8uas.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-C8uBs8j9.js → use-org-auth-client-COlHJa-m.js} +1 -1
- package/dist/client/assets/{use-org-sso-DaDrJMD5.js → use-org-sso-3CIZqJFZ.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BlO7RM3e.js → use-organization-roles-CeA_uzsB.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BlVRLL3T.js → use-organization-settings-DzBziioM.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DUkSdHsB.js → use-registry-connections-BpSuBbUM.js} +1 -1
- package/dist/client/assets/{use-secrets-BEx9Od_r.js → use-secrets-CF9zZ1JY.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CP0Qqj0G.js → use-status-sounds-DEoxAi_S.js} +1 -1
- package/dist/client/assets/{use-tags-DH2ycxFF.js → use-tags-DH-DMykO.js} +1 -1
- package/dist/client/assets/{use-view-mode-CxFbTkRh.js → use-view-mode-DADBS_q5.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DDWns2sS.js → use-virtual-mcp-D-ZbuaT8.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-dNqP5hrQ.js +1 -0
- package/dist/client/assets/{useQueries-BPzZfFWR.js → useQueries-BMpOuVMz.js} +1 -1
- package/dist/client/assets/{useRouterState-BJbfWH_Z.js → useRouterState-BWkI0XVJ.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-GpeT0UF_.js +1 -0
- package/dist/client/assets/{users-DuMboXV7.js → users-DwrGpP7z.js} +1 -1
- package/dist/client/assets/variant-calendar-B3_WxDcA.js +1 -0
- package/dist/client/assets/{view-mode-toggle-FdjAmoYN.js → view-mode-toggle-BNh4rdw8.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/ZapSquare-YZ7_-s41.js +0 -1
- package/dist/client/assets/agent-icon-BEPZv5Dl.js +0 -1
- package/dist/client/assets/agents-list-DUyQLNC0.js +0 -1
- package/dist/client/assets/app-editor-B7khE0Iy.js +0 -1
- package/dist/client/assets/automations-CRUVEUg6.js +0 -1
- package/dist/client/assets/bulk-category-panel-IzA2cHs3.js +0 -1
- package/dist/client/assets/category-editor-ynZvDu_K.js +0 -1
- package/dist/client/assets/collection-detail-DvbrhRUo.js +0 -1
- package/dist/client/assets/commerce-onboarding-CCVmPUPH.js +0 -1
- package/dist/client/assets/connection-detail-BbOJLept.js +0 -1
- package/dist/client/assets/connections-nomzvbCd.js +0 -1
- package/dist/client/assets/file-explorer-DMVvyrkG.js +0 -2
- package/dist/client/assets/general-C_h_TDLy.js +0 -1
- package/dist/client/assets/index-B2z-OJ9z.js +0 -1
- package/dist/client/assets/post-editor-DyYUkUcy.js +0 -1
- package/dist/client/assets/project-app-view-DT8-Icbs.js +0 -1
- package/dist/client/assets/record-editor-CwGXwawj.js +0 -1
- package/dist/client/assets/redirect-editor-C3rgNZF9.js +0 -1
- package/dist/client/assets/registry-Bf5g_vcK.js +0 -2
- package/dist/client/assets/roles-dceW8mzX.js +0 -1
- package/dist/client/assets/select-model-CGwgvL1-.js +0 -4
- package/dist/client/assets/seo-editor-6gP8M2Dn.js +0 -1
- package/dist/client/assets/settings-layout-k2SWGDzi.js +0 -1
- package/dist/client/assets/shell-layout-Bz6Fy8ta.js +0 -1
- package/dist/client/assets/store-registry-DC157K5t.js +0 -2
- package/dist/client/assets/tab-id-8NbPTAxB.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BiSANydn.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BMbpgKyc.js +0 -1
- package/dist/client/assets/variant-calendar-B4olbBIH.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as L,b as F,e as ae,j as n,B as $,t as te,bQ as ee,y as ke,a as Z,w as Fe,x as Ne,K as ce,bR as Me,bS as Be,G as X,m as ge,r as M,n as re,aw as he,v as Ue,bT as Je,p as pe,bU as He,bV as Ke,d as Ge,F as Ve,f as _e,u as We,J as Qe,aW as Ye,bW as Xe,bX as xe,bY as Ze,bZ as et,S as tt,O as nt,b_ as st}from"./index-DTgaKfa1.js";import{A as de}from"./avatar-BrxEDiW5.js";import{t as Te,a as ot}from"./Users03-CM1sULj9.js";import{i as it}from"./SearchLg-Cm9WaEOr.js";import{i as at,s as rt,a as U,n as lt}from"./Stars02-BHuJgpT2.js";import{s as ct}from"./XClose-aZG3Lwvy.js";import{i as K}from"./CheckCircle-DAP9g-rT.js";import{i as ye}from"./FilterLines-CXXP_NBc.js";import{i as Y}from"./Zap-CxBT7IWE.js";import{a as Ae,b as Oe,d as Ce,e as Pe,h as dt,c as ut}from"./dialog-CcBvH6sb.js";import{R as mt}from"./required-auth-layout-Dvz6-mde.js";import{q as ft,A as gt}from"./tab-id-8NbPTAxB.js";import{a as be,m as ht,S as pt}from"./use-mcp-client-DayFt0Gf.js";import{c as xt}from"./hooks-DpMhOxp5.js";import{g as yt}from"./use-organization-settings-BlVRLL3T.js";import{u as bt}from"./use-org-sso-DaDrJMD5.js";function St(t){const e=L.c(49),{orgName:o,orgSlug:a,orgLogo:l,domain:s}=t,i=F();let r;e[0]!==a||e[1]!==i?(r=async()=>{const N=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),O=await N.json();if(!N.ok||!O.success)throw new Error(O.error??i("common.autoDomainJoinScreen.joinError"));return O},e[0]=a,e[1]=i,e[2]=r):r=e[2];let d;e[3]!==a?(d=N=>{window.location.href=`/${N.slug??a}`},e[3]=a,e[4]=d):d=e[4];let h;e[5]!==i?(h=N=>{te.error(N instanceof Error?N.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=h):h=e[6];let w;e[7]!==r||e[8]!==d||e[9]!==h?(w={mutationFn:r,onSuccess:d,onError:h},e[7]=r,e[8]=d,e[9]=h,e[10]=w):w=e[10];const m=ae(w),p=wt;let c;e[11]!==l||e[12]!==o?(c=l?n.jsx(de,{url:l,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(Te,{className:"h-6 w-6 text-primary"})}),e[11]=l,e[12]=o,e[13]=c):c=e[13];let u;e[14]!==o||e[15]!==i?(u=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=u):u=e[16];let g;e[17]!==u?(g=n.jsx("h3",{className:"text-lg font-medium",children:u}),e[17]=u,e[18]=g):g=e[18];let f;e[19]!==s||e[20]!==i?(f=i("common.autoDomainJoinScreen.joinDescription",{domain:s}),e[19]=s,e[20]=i,e[21]=f):f=e[21];let x;e[22]!==f?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[22]=f,e[23]=x):x=e[23];let y;e[24]!==g||e[25]!==x?(y=n.jsxs("div",{className:"space-y-2",children:[g,x]}),e[24]=g,e[25]=x,e[26]=y):y=e[26];let S;e[27]!==m?(S=()=>m.mutate(),e[27]=m,e[28]=S):S=e[28];let v;e[29]!==m.isPending||e[30]!==o||e[31]!==i?(v=m.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=m.isPending,e[30]=o,e[31]=i,e[32]=v):v=e[32];let _;e[33]!==m.isPending||e[34]!==S||e[35]!==v?(_=n.jsx($,{onClick:S,disabled:m.isPending,children:v}),e[33]=m.isPending,e[34]=S,e[35]=v,e[36]=_):_=e[36];const k=m.isPending;let j;e[37]!==i?(j=i("common.autoDomainJoinScreen.goHome"),e[37]=i,e[38]=j):j=e[38];let b;e[39]!==m.isPending||e[40]!==j?(b=n.jsx($,{variant:"ghost",onClick:p,disabled:k,children:j}),e[39]=m.isPending,e[40]=j,e[41]=b):b=e[41];let T;e[42]!==_||e[43]!==b?(T=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,b]}),e[42]=_,e[43]=b,e[44]=T):T=e[44];let A;return e[45]!==y||e[46]!==T||e[47]!==c?(A=n.jsxs(ee,{children:[c,y,T]}),e[45]=y,e[46]=T,e[47]=c,e[48]=A):A=e[48],A}function wt(){window.location.href="/"}function Se(t){const e=L.c(25),{orgSlug:o,orgName:a,reason:l}=t,s=F(),i=vt,r=l==="not-found",d=r?it:ke;let h;e[0]!==r||e[1]!==s?(h=s(r?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=r,e[1]=s,e[2]=h):h=e[2];const w=h;let m;e[3]!==r||e[4]!==a||e[5]!==o||e[6]!==s?(m=r?n.jsxs(n.Fragment,{children:[s("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:o}),"."]}):n.jsxs(n.Fragment,{children:[s("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:a??o}),".",n.jsx("br",{}),s("common.noAccessScreen.askAdminToInvite")]}),e[3]=r,e[4]=a,e[5]=o,e[6]=s,e[7]=m):m=e[7];const p=m;let c;e[8]!==d?(c=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(d,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=d,e[9]=c):c=e[9];let u;e[10]!==w?(u=n.jsx("h3",{className:"text-lg font-medium",children:w}),e[10]=w,e[11]=u):u=e[11];let g;e[12]!==p?(g=n.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[12]=p,e[13]=g):g=e[13];let f;e[14]!==u||e[15]!==g?(f=n.jsxs("div",{className:"space-y-2",children:[u,g]}),e[14]=u,e[15]=g,e[16]=f):f=e[16];let x;e[17]!==s?(x=s("common.noAccessScreen.goToHome"),e[17]=s,e[18]=x):x=e[18];let y;e[19]!==x?(y=n.jsx($,{onClick:i,children:x}),e[19]=x,e[20]=y):y=e[20];let S;return e[21]!==c||e[22]!==f||e[23]!==y?(S=n.jsxs(ee,{children:[c,f,y]}),e[21]=c,e[22]=f,e[23]=y,e[24]=S):S=e[24],S}function vt(){window.location.href="/"}function jt(t){const e=L.c(59),{invitationId:o,orgName:a,orgSlug:l,orgLogo:s}=t,i=F();let r;e[0]!==o?(r=async()=>{const P=await Z.organization.acceptInvitation({invitationId:o});if(P.error)throw new Error(P.error.message);return P.data},e[0]=o,e[1]=r):r=e[1];let d;e[2]!==l?(d=()=>{Fe(),window.location.href=`/${l}`},e[2]=l,e[3]=d):d=e[3];let h;e[4]!==i?(h=P=>{te.error(P instanceof Error?P.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=h):h=e[5];let w;e[6]!==r||e[7]!==d||e[8]!==h?(w={mutationFn:r,onSuccess:d,onError:h},e[6]=r,e[7]=d,e[8]=h,e[9]=w):w=e[9];const m=ae(w);let p;e[10]!==o?(p=async()=>{const P=await Z.organization.rejectInvitation({invitationId:o});if(P.error)throw new Error(P.error.message);return P.data},e[10]=o,e[11]=p):p=e[11];let c,u;e[12]!==i?(c=()=>{te.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},u=P=>{te.error(P instanceof Error?P.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=c,e[14]=u):(c=e[13],u=e[14]);let g;e[15]!==p||e[16]!==c||e[17]!==u?(g={mutationFn:p,onSuccess:c,onError:u},e[15]=p,e[16]=c,e[17]=u,e[18]=g):g=e[18];const f=ae(g),x=m.isPending||f.isPending;let y;e[19]!==s||e[20]!==a?(y=s?n.jsx(de,{url:s,fallback:a.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(at,{className:"h-6 w-6 text-primary"})}),e[19]=s,e[20]=a,e[21]=y):y=e[21];let S;e[22]!==a||e[23]!==i?(S=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=S):S=e[24];let v;e[25]!==S?(v=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[25]=S,e[26]=v):v=e[26];let _;e[27]!==i?(_=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=_):_=e[28];let k;e[29]!==_?(k=n.jsx("p",{className:"text-sm text-muted-foreground",children:_}),e[29]=_,e[30]=k):k=e[30];let j;e[31]!==v||e[32]!==k?(j=n.jsxs("div",{className:"space-y-2",children:[v,k]}),e[31]=v,e[32]=k,e[33]=j):j=e[33];let b;e[34]!==m?(b=()=>m.mutate(),e[34]=m,e[35]=b):b=e[35];let T;e[36]!==m.isPending||e[37]!==i?(T=m.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=m.isPending,e[37]=i,e[38]=T):T=e[38];let A;e[39]!==x||e[40]!==b||e[41]!==T?(A=n.jsx($,{onClick:b,disabled:x,children:T}),e[39]=x,e[40]=b,e[41]=T,e[42]=A):A=e[42];let N;e[43]!==f?(N=()=>f.mutate(),e[43]=f,e[44]=N):N=e[44];let O;e[45]!==f.isPending||e[46]!==i?(O=f.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=f.isPending,e[46]=i,e[47]=O):O=e[47];let I;e[48]!==x||e[49]!==N||e[50]!==O?(I=n.jsx($,{variant:"ghost",onClick:N,disabled:x,children:O}),e[48]=x,e[49]=N,e[50]=O,e[51]=I):I=e[51];let C;e[52]!==A||e[53]!==I?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[A,I]}),e[52]=A,e[53]=I,e[54]=C):C=e[54];let D;return e[55]!==j||e[56]!==C||e[57]!==y?(D=n.jsxs(ee,{children:[y,j,C]}),e[55]=j,e[56]=C,e[57]=y,e[58]=D):D=e[58],D}function kt(t){const e=L.c(23),{orgName:o,orgLogo:a}=t,l=F();let s;e[0]!==a||e[1]!==o?(s=a?n.jsx(de,{url:a,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(rt,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=o,e[2]=s):s=e[2];let i;e[3]!==l?(i=l("common.requestPendingScreen.title"),e[3]=l,e[4]=i):i=e[4];let r;e[5]!==i?(r=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=r):r=e[6];let d;e[7]!==o||e[8]!==l?(d=l("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=l,e[9]=d):d=e[9];let h;e[10]!==d?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[10]=d,e[11]=h):h=e[11];let w;e[12]!==r||e[13]!==h?(w=n.jsxs("div",{className:"space-y-2",children:[r,h]}),e[12]=r,e[13]=h,e[14]=w):w=e[14];let m;e[15]!==l?(m=l("common.requestPendingScreen.goHome"),e[15]=l,e[16]=m):m=e[16];let p;e[17]!==m?(p=n.jsx($,{variant:"ghost",onClick:Nt,children:m}),e[17]=m,e[18]=p):p=e[18];let c;return e[19]!==s||e[20]!==w||e[21]!==p?(c=n.jsxs(ee,{children:[s,w,p]}),e[19]=s,e[20]=w,e[21]=p,e[22]=c):c=e[22],c}function Nt(){window.location.href="/"}function _t(t){const e=L.c(45),{orgName:o,orgSlug:a,orgLogo:l,domain:s}=t,i=F();let r;e[0]!==a?(r=async()=>{const A=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),N=await A.json();if(!A.ok||!N.success)throw new Error(N.error??"Failed to request access");return N},e[0]=a,e[1]=r):r=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=At,e[2]=d):d=e[2];let h;e[3]!==i?(h=A=>{te.error(A instanceof Error?A.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=h):h=e[4];let w;e[5]!==r||e[6]!==h?(w={mutationFn:r,onSuccess:d,onError:h},e[5]=r,e[6]=h,e[7]=w):w=e[7];const m=ae(w);let p;e[8]!==l||e[9]!==o?(p=l?n.jsx(de,{url:l,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(Te,{className:"h-6 w-6 text-primary"})}),e[8]=l,e[9]=o,e[10]=p):p=e[10];let c;e[11]!==o||e[12]!==i?(c=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=c):c=e[13];let u;e[14]!==c?(u=n.jsx("h3",{className:"text-lg font-medium",children:c}),e[14]=c,e[15]=u):u=e[15];let g;e[16]!==s||e[17]!==i?(g=i("common.requestToJoinScreen.description",{domain:s}),e[16]=s,e[17]=i,e[18]=g):g=e[18];let f;e[19]!==g?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[19]=g,e[20]=f):f=e[20];let x;e[21]!==u||e[22]!==f?(x=n.jsxs("div",{className:"space-y-2",children:[u,f]}),e[21]=u,e[22]=f,e[23]=x):x=e[23];let y;e[24]!==m?(y=()=>m.mutate(),e[24]=m,e[25]=y):y=e[25];let S;e[26]!==m.isPending||e[27]!==i?(S=m.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=m.isPending,e[27]=i,e[28]=S):S=e[28];let v;e[29]!==m.isPending||e[30]!==y||e[31]!==S?(v=n.jsx($,{onClick:y,disabled:m.isPending,children:S}),e[29]=m.isPending,e[30]=y,e[31]=S,e[32]=v):v=e[32];const _=m.isPending;let k;e[33]!==i?(k=i("common.requestToJoinScreen.goToHome"),e[33]=i,e[34]=k):k=e[34];let j;e[35]!==m.isPending||e[36]!==k?(j=n.jsx($,{variant:"ghost",onClick:Tt,disabled:_,children:k}),e[35]=m.isPending,e[36]=k,e[37]=j):j=e[37];let b;e[38]!==v||e[39]!==j?(b=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[v,j]}),e[38]=v,e[39]=j,e[40]=b):b=e[40];let T;return e[41]!==x||e[42]!==b||e[43]!==p?(T=n.jsxs(ee,{children:[p,x,b]}),e[41]=x,e[42]=b,e[43]=p,e[44]=T):T=e[44],T}function Tt(){window.location.href="/"}function At(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Ot(t){const e=L.c(7);let o;e[0]!==t?(o=ce.orgAccessStatus(t),e[0]=t,e[1]=o):o=e[1];let a;e[2]!==t?(a=async()=>{const s=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!s.ok)throw new Error(`org-access-status failed (${s.status})`);return await s.json()},e[2]=t,e[3]=a):a=e[3];let l;return e[4]!==o||e[5]!==a?(l={queryKey:o,queryFn:a,refetchOnWindowFocus:!1},e[4]=o,e[5]=a,e[6]=l):l=e[6],Ne(l)}function Ct({orgSlug:t}){const{data:e}=Ot(t);if(e.status!=="member"){Me()?.org===t&&Be();const o=localStorage.getItem(X.lastOrgSlug())===t;if(o&&localStorage.removeItem(X.lastOrgSlug()),o&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(Se,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(jt,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(St,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(_t,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(kt,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(Se,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Ee(t){const e=L.c(42),{ariaLabel:o,dismissLabel:a,eyebrow:l,title:s,description:i,icon:r,children:d,footerLeading:h,actions:w,onDismiss:m,tone:p}=t,c=p===void 0?"neutral":p,u=h||w;let g;e[0]!==c?(g=c==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=c,e[1]=g):g=e[1];let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(ct,{size:14}),e[2]=f):f=e[2];let x;e[3]!==a||e[4]!==m?(x=n.jsx($,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:m,children:f}),e[3]=a,e[4]=m,e[5]=x):x=e[5];const y=r&&"flex items-start gap-3",S=d&&"pb-3";let v;e[6]!==y||e[7]!==S?(v=ge("p-4 pr-11",y,S),e[6]=y,e[7]=S,e[8]=v):v=e[8];let _;e[9]!==r?(_=r&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:r}),e[9]=r,e[10]=_):_=e[10];let k;e[11]!==l?(k=l&&n.jsx("p",{className:"text-xs text-muted-foreground",children:l}),e[11]=l,e[12]=k):k=e[12];let j;e[13]!==s?(j=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:s}),e[13]=s,e[14]=j):j=e[14];let b;e[15]!==i?(b=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=b):b=e[16];let T;e[17]!==j||e[18]!==b||e[19]!==k?(T=n.jsxs("div",{children:[k,j,b]}),e[17]=j,e[18]=b,e[19]=k,e[20]=T):T=e[20];let A;e[21]!==d?(A=d&&n.jsx("div",{className:"mt-3",children:d}),e[21]=d,e[22]=A):A=e[22];let N;e[23]!==T||e[24]!==A?(N=n.jsxs("div",{className:"min-w-0 flex-1",children:[T,A]}),e[23]=T,e[24]=A,e[25]=N):N=e[25];let O;e[26]!==N||e[27]!==v||e[28]!==_?(O=n.jsxs("div",{className:v,children:[_,N]}),e[26]=N,e[27]=v,e[28]=_,e[29]=O):O=e[29];let I;e[30]!==w||e[31]!==h||e[32]!==u||e[33]!==c?(I=u&&n.jsxs("div",{className:ge("flex items-center justify-between gap-3 px-4 py-2.5",c==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:h}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:w})]}),e[30]=w,e[31]=h,e[32]=u,e[33]=c,e[34]=I):I=e[34];let C;return e[35]!==o||e[36]!==O||e[37]!==I||e[38]!==g||e[39]!==x||e[40]!==c?(C=n.jsxs("div",{role:"dialog","aria-label":o,"data-slot":"announcement-card","data-tone":c,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[g,x,O,I]}),e[35]=o,e[36]=O,e[37]=I,e[38]=g,e[39]=x,e[40]=c,e[41]=C):C=e[41],C}const Ie=[{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:U,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:K,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:Y,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:U,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:K,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:Y,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:K,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:U,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:Y,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:U,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:K,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:Y,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:U,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:K,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:Y,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:U,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:ye,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:K,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:ot,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:Y,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:K,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:U,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:ye,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:U,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:lt,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],le="studio.release-feed.v1",ue=new Set;let G="",V={},me=!1;function Pt(){if(me)return G||"{}";try{return localStorage.getItem(le)??"{}"}catch{return G||"{}"}}function Le(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function we(){const t=Pt();return t!==G&&(G=t,V=Le(t)),V}function Et(t){ue.add(t);const e=o=>{if(!(o.key!==le&&o.key!==null)){try{const a=localStorage.getItem(le)??"{}",s={...Le(a),...V};V=s,G=JSON.stringify(s)}catch{}t()}};return window.addEventListener("storage",e),()=>{ue.delete(t),window.removeEventListener("storage",e)}}function It(t){V=t,G=JSON.stringify(t);try{localStorage.setItem(le,G),me=!1}catch{me=!0}ue.forEach(e=>e())}function Lt(){const t=L.c(7),e=M.useSyncExternalStore(Et,we,we);let o;t[0]!==e?(o=d=>!!e[d],t[0]=e,t[1]=o):o=t[1];const a=o,l=Dt;let s;t[2]!==e?(s=Ie.reduce((d,h)=>e[h.id]?d:d+1,0),t[2]=e,t[3]=s):s=t[3];const i=s;let r;return t[4]!==a||t[5]!==i?(r={isSeen:a,markSeen:l,unseenCount:i},t[4]=a,t[5]=i,t[6]=r):r=t[6],r}function Dt(t){V[t]||It({...V,[t]:{seenAt:new Date().toISOString()}})}const $t=720*60*60*1e3,zt=10080*60*1e3;function qt(t){const[e,o,a]=t.split("-").map(Number);return!e||!o||!a?new Date(t).getTime():new Date(e,o-1,a).getTime()}function Rt(t){const e=Ie[0];if(!e)return null;const o=qt(e.date),a=t-o;return a<0||a>$t?null:e}function Ft(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 Mt(t,e){const o=Ft(t);return o===null?!1:e-o>=zt}function Bt(){const t=L.c(34),e=F(),{data:o}=Z.useSession(),{isSeen:a,markSeen:l}=Lt();let s,i,r;if(t[0]!==a||t[1]!==o?.user?.createdAt){r=Symbol.for("react.early_return_sentinel");e:{const y=Date.now();if(s=Rt(y),!s){r=null;break e}if(!Mt(o?.user?.createdAt,y)){r=null;break e}i=a(s.id)}t[0]=a,t[1]=o?.user?.createdAt,t[2]=s,t[3]=i,t[4]=r}else s=t[2],i=t[3],r=t[4];if(r!==Symbol.for("react.early_return_sentinel"))return r;if(i)return null;let d;t[5]!==e?(d=e("announcements.release.ariaLabel"),t[5]=e,t[6]=d):d=t[6];let h;t[7]!==e?(h=e("announcements.release.dismiss"),t[7]=e,t[8]=h):h=t[8];const w=s.eyebrow,m=s.title;let p;t[9]!==s.id||t[10]!==l?(p=()=>l(s.id),t[9]=s.id,t[10]=l,t[11]=p):p=t[11];let c;t[12]!==s.id||t[13]!==s.learnMoreHref||t[14]!==l||t[15]!==e?(c=s.learnMoreHref?n.jsx("a",{href:s.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>l(s.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[12]=s.id,t[13]=s.learnMoreHref,t[14]=l,t[15]=e,t[16]=c):c=t[16];let u;t[17]!==s.cta||t[18]!==s.id||t[19]!==l?(u=s.cta?n.jsx($,{asChild:!0,size:"sm",onClick:()=>l(s.id),children:n.jsx("a",{href:s.cta.href,children:s.cta.label})}):null,t[17]=s.cta,t[18]=s.id,t[19]=l,t[20]=u):u=t[20];let g;t[21]!==s.bullets?(g=s.bullets.map(Ut),t[21]=s.bullets,t[22]=g):g=t[22];let f;t[23]!==g?(f=n.jsx("ul",{className:"flex flex-col gap-3",children:g}),t[23]=g,t[24]=f):f=t[24];let x;return t[25]!==s.eyebrow||t[26]!==s.title||t[27]!==f||t[28]!==d||t[29]!==h||t[30]!==p||t[31]!==c||t[32]!==u?(x=n.jsx(Ee,{ariaLabel:d,dismissLabel:h,eyebrow:w,title:m,onDismiss:p,footerLeading:c,actions:u,children:f}),t[25]=s.eyebrow,t[26]=s.title,t[27]=f,t[28]=d,t[29]=h,t[30]=p,t[31]=c,t[32]=u,t[33]=x):x=t[33],x}function Ut(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const De=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),J=De?"⌘":"Ctrl",q={keyboardShortcuts:{keys:[J,"K"],description:"Keyboard shortcuts"},back:{keys:[J,"["],description:"Back to previous"},focusChatInput:{keys:[J,"L"],description:"Focus chat input"},saveAndFormat:{keys:[J,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[J,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[J,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",J,"S"],description:"New task"},toggleDaemon:{keys:[J,"D"],description:"Toggle daemon logs"}},Jt=[{label:"General",shortcuts:[q.keyboardShortcuts,q.back,q.newTask,q.toggleDaemon]},{label:"Editor",shortcuts:[q.saveAndFormat]},{label:"Chat",shortcuts:[q.focusChatInput,q.togglePlanMode,q.sendMessage,q.newLine]},{label:"Questions",shortcuts:[q.selectOption]},{label:"Monitoring",shortcuts:[q.applyFilter]}];function ve(t){return De?t.metaKey:t.ctrlKey}function Ht(t){const e=L.c(11),{open:o,onOpenChange:a}=t,l=F();let s;e[0]!==l?(s=l("common.keyboardShortcutsDialog.title"),e[0]=l,e[1]=s):s=e[1];let i;e[2]!==s?(i=n.jsx(Ae,{children:n.jsx(Oe,{children:s})}),e[2]=s,e[3]=i):i=e[3];let r;e[4]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx("div",{className:"flex flex-col gap-4",children:Jt.map(Kt)}),e[4]=r):r=e[4];let d;e[5]!==i?(d=n.jsxs(Ce,{className:"sm:max-w-md",children:[i,r]}),e[5]=i,e[6]=d):d=e[6];let h;return e[7]!==a||e[8]!==o||e[9]!==d?(h=n.jsx(Pe,{open:o,onOpenChange:a,children:d}),e[7]=a,e[8]=o,e[9]=d,e[10]=h):h=e[10],h}function Kt(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(Gt)})]},t.label)}function Gt(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(Vt)})]},t.description)}function Vt(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,Qt=2;function Yt(t,e,o){return!e||e===o?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Xt(t,e){return t.count>=Qt&&t.version!==null&&t.version!==e}function Zt(){const t=L.c(31),e=F();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={queryKey:ce.appVersionCheck(),queryFn:tn,refetchInterval:Wt,refetchIntervalInBackground:!0,staleTime:0},t[0]=o):o=t[0];const{data:a,dataUpdatedAt:l}=re(o),[s,i]=M.useState(0);let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={version:null,count:0},t[1]=r):r=t[1];const[d,h]=M.useState(r);l!==s&&(i(l),h(b=>Yt(b,a,"4.149.7")));const[w,m]=M.useState(null);if(!Xt(d,w))return null;let p;t[2]!==e?(p=e("announcements.version.ariaLabel"),t[2]=e,t[3]=p):p=t[3];let c;t[4]!==e?(c=e("announcements.version.dismiss"),t[4]=e,t[5]=c):c=t[5];let u;t[6]!==e?(u=e("announcements.version.eyebrow"),t[6]=e,t[7]=u):u=t[7];let g;t[8]!==e?(g=e("announcements.version.title"),t[8]=e,t[9]=g):g=t[9];let f;t[10]!==e?(f=e("announcements.version.description"),t[10]=e,t[11]=f):f=t[11];let x;t[12]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(he,{size:16}),t[12]=x):x=t[12];let y;t[13]!==d.version?(y=()=>m(d.version),t[13]=d.version,t[14]=y):y=t[14];let S;t[15]!==e?(S=e("announcements.version.currentSession",{version:"4.149.7"}),t[15]=e,t[16]=S):S=t[16];let v;t[17]!==e?(v=e("announcements.version.refresh"),t[17]=e,t[18]=v):v=t[18];let _;t[19]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(he,{size:14}),t[19]=_):_=t[19];let k;t[20]!==v?(k=n.jsxs($,{size:"sm",onClick:en,children:[v,_]}),t[20]=v,t[21]=k):k=t[21];let j;return t[22]!==k||t[23]!==p||t[24]!==c||t[25]!==u||t[26]!==g||t[27]!==f||t[28]!==y||t[29]!==S?(j=n.jsx(Ee,{ariaLabel:p,dismissLabel:c,eyebrow:u,title:g,description:f,icon:x,tone:"system",onDismiss:y,footerLeading:S,actions:k}),t[22]=k,t[23]=p,t[24]=c,t[25]=u,t[26]=g,t[27]=f,t[28]=y,t[29]=S,t[30]=j):j=t[30],j}function en(){return window.location.reload()}async function tn(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function nn(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const sn=Date.parse("2026-07-21T00:00:00Z"),je=t=>nn(X.ptBrAnnouncementSeen(t));function on(){const t=L.c(35),e=F(),[o,a]=Ue(),{data:l,isPending:s}=Z.useSession(),i=l?.user,r=i?.id,d=i?.createdAt,h=d!=null&&new Date(d).getTime()<sn,w=Je()==="pt-BR",m=!s&&!!r&&h&&w&&o.language==="en"&&!je(r).has(),[p,c]=M.useState(!1),[u,g]=M.useState(!1);!p&&!s&&(c(!0),m&&r&&(je(r).mark(),a(rn),g(!0),pe("pt_br_auto_switch_shown")));let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f=R=>{pe("pt_br_auto_switch_closed",{action:R}),g(!1)},t[0]=f):f=t[0];const x=f;let y;t[1]!==a?(y=()=>{a(an),x("switch-back")},t[1]=a,t[2]=y):y=t[2];const S=y;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=R=>!R&&x("dismiss"),t[3]=v):v=t[3];let _;t[4]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=_):_=t[4];let k;t[5]!==e?(k=e("announcements.ptBr.title"),t[5]=e,t[6]=k):k=t[6];let j;t[7]!==k?(j=n.jsx(Oe,{children:k}),t[7]=k,t[8]=j):j=t[8];let b;t[9]!==e?(b=e("announcements.ptBr.description"),t[9]=e,t[10]=b):b=t[10];let T;t[11]!==b?(T=n.jsx(dt,{children:b}),t[11]=b,t[12]=T):T=t[12];let A;t[13]!==j||t[14]!==T?(A=n.jsxs(Ae,{children:[j,T]}),t[13]=j,t[14]=T,t[15]=A):A=t[15];let N;t[16]!==e?(N=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=N):N=t[17];let O;t[18]!==S||t[19]!==N?(O=n.jsx($,{variant:"outline",onClick:S,children:N}),t[18]=S,t[19]=N,t[20]=O):O=t[20];let I;t[21]===Symbol.for("react.memo_cache_sentinel")?(I=()=>x("ok"),t[21]=I):I=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let D;t[24]!==C?(D=n.jsx($,{onClick:I,children:C}),t[24]=C,t[25]=D):D=t[25];let P;t[26]!==O||t[27]!==D?(P=n.jsxs(ut,{children:[O,D]}),t[26]=O,t[27]=D,t[28]=P):P=t[28];let H;t[29]!==P||t[30]!==A?(H=n.jsxs(Ce,{className:"sm:max-w-md",children:[_,A,P]}),t[29]=P,t[30]=A,t[31]=H):H=t[31];let B;return t[32]!==u||t[33]!==H?(B=n.jsx(Pe,{open:u,onOpenChange:v,children:H}),t[32]=u,t[33]=H,t[34]=B):B=t[34],B}function an(t){return{...t,language:"en"}}function rn(t){return{...t,language:"pt-BR"}}function ln({activeOrg:t}){return t&&(He(t.id,{name:t.name??void 0,slug:t.slug??void 0}),Ke()),null}function cn(t){const{prev:e,virtualMcpId:o,decopilotId:a,savedLayout:l,opts:s,autosendValue:i}=t,r={};o?r.virtualmcpid=o:e.virtualmcpid&&(r.virtualmcpid=e.virtualmcpid);const d=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,w=(o??d)!==d;let m;if(s?.main)r.main=s.main;else if(l)l.main!==void 0&&(r.main=l.main),l.sidepanel!==void 0&&(m=l.sidepanel);else if(!w){const p=e.main;p&&typeof p=="string"&&!ft(p)&&(r.main=p)}return m!==void 0&&(r.sidepanel=m),s?.autosend&&(r.autosend=i),r}const $e="studio:thread-layout:v1",dn=50;function ze(t){const e={};return(t.main===0||typeof t.main=="string")&&(e.main=t.main),(t.sidepanel===0||t.sidepanel==="chat")&&(e.sidepanel=t.sidepanel),e}function un(t,e,o,a=dn){const l=t.filter(([s])=>s!==e);for(l.push([e,ze(o)]);l.length>a;)l.shift();return l}function fe(){try{const t=sessionStorage.getItem($e);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function qe(t){try{sessionStorage.setItem($e,JSON.stringify(t))}catch{}}function mn(t,e){t&&qe(un(fe(),t,e))}function fn(t){if(!t)return null;const e=fe().find(([o])=>o===t);return e?ze(e[1]):null}function zn(t){if(!t)return;const e=fe(),o=e.filter(([a])=>a!==t);o.length!==e.length&&qe(o)}function Re(t){return{queryKey:ce.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function qn(t){const e=L.c(10);let o;e[0]!==t?(o=Re(t),e[0]=t,e[1]=o):o=e[1];const a=re(o);let l;e[2]!==a.data?.prompts?(l=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=l):l=e[3];let s;e[4]!==a.data?.tiles?(s=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=s):s=e[5];let i;return e[6]!==a.isLoading||e[7]!==l||e[8]!==s?(i={isLoading:a.isLoading,prompts:l,tiles:s},e[6]=a.isLoading,e[7]=l,e[8]=s,e[9]=i):i=e[9],i}function gn(t){const e=L.c(31),{orgSlug:o,orgName:a,domain:l}=t,s=F();let i;e[0]!==o?(i=()=>{window.location.href=`/api/${encodeURIComponent(o)}/sso/authorize`},e[0]=o,e[1]=i):i=e[1];const r=i,d=hn;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(ke,{className:"h-6 w-6 text-primary"})}),e[2]=h):h=e[2];let w;e[3]!==s?(w=s("common.ssoRequiredScreen.title"),e[3]=s,e[4]=w):w=e[4];let m;e[5]!==w?(m=n.jsx("h3",{className:"text-lg font-medium",children:w}),e[5]=w,e[6]=m):m=e[6];let p;e[7]!==l||e[8]!==a||e[9]!==s?(p=a?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:a})," ",s("common.ssoRequiredScreen.requiresSsoAuth"),l?` ${s("common.ssoRequiredScreen.via",{domain:l})}`:"","."]}):s("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=l,e[8]=a,e[9]=s,e[10]=p):p=e[10];let c;e[11]!==p?(c=n.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[11]=p,e[12]=c):c=e[12];let u;e[13]!==m||e[14]!==c?(u=n.jsxs("div",{className:"space-y-2",children:[m,c]}),e[13]=m,e[14]=c,e[15]=u):u=e[15];let g;e[16]!==s?(g=s("common.ssoRequiredScreen.signInWithSso"),e[16]=s,e[17]=g):g=e[17];let f;e[18]!==r||e[19]!==g?(f=n.jsx($,{onClick:r,children:g}),e[18]=r,e[19]=g,e[20]=f):f=e[20];let x;e[21]!==s?(x=s("common.ssoRequiredScreen.goBack"),e[21]=s,e[22]=x):x=e[22];let y;e[23]!==x?(y=n.jsx($,{variant:"ghost",onClick:d,children:x}),e[23]=x,e[24]=y):y=e[24];let S;e[25]!==y||e[26]!==f?(S=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,y]}),e[25]=y,e[26]=f,e[27]=S):S=e[27];let v;return e[28]!==S||e[29]!==u?(v=n.jsxs(ee,{children:[h,u,S]}),e[28]=S,e[29]=u,e[30]=v):v=e[30],v}function hn(){window.location.href="/"}function pn(t){const e=L.c(8),{org:o,children:a}=t,s=yt(o.id,o.slug)?.enabled_plugins??null;let i;e[0]!==o.id||e[1]!==o.name||e[2]!==s?(i={id:o.id,organizationId:o.id,slug:"_org",name:o.name,enabledPlugins:s,ui:null},e[0]=o.id,e[1]=o.name,e[2]=s,e[3]=i):i=e[3];const r=i;let d;return e[4]!==a||e[5]!==o||e[6]!==r?(d=n.jsx(st,{org:o,project:r,children:a}),e[4]=a,e[5]=o,e[6]=r,e[7]=d):d=e[7],d}function xn(){const t=Ge(),e=xt(),{org:o}=Ve(),a=_e({strict:!1}),l=We({strict:!1}),s=a.org??"",i=a.taskId??"",r=(c,u,g=!0)=>t({to:"/$org/$taskId",params:{org:s,taskId:c},search:u,replace:g}),d=(c,u=!0)=>r(i,c,u),h=c=>d(u=>({...u,sidepanel:c})),w=(c,u,g)=>{const f=!!i&&i===c;i&&!f&&mn(i,{main:l.main,sidepanel:l.sidepanel});const x=f?null:fn(c),y=be(o.id).id;return r(c,S=>cn({prev:S,virtualMcpId:u,decopilotId:y,savedLayout:x,opts:g,autosendValue:gt}),!1)};return{openSidePanel:h,setTaskId:w,createNewTask:async(c,u)=>{const g=crypto.randomUUID(),f=c??l.virtualmcpid??be(o.id).id;try{await e?.create({id:g,virtual_mcp_id:f,...u?{branch:u}:{}})}catch{}w(g,f)},openTab:c=>r(i||crypto.randomUUID(),u=>({...u,main:c}))}}function yn(){const t=L.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 a=Qe(e)?.params.org;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},t[1]=l):l=t[1];const{taskId:s}=_e(l),[i,r]=M.useState(!1),d=Ye(),h=a??"";let w;t[2]!==h?(w=Re(h),t[2]=h,t[3]=w):w=t[3];const m=!!a&&!s;let p;t[4]!==w||t[5]!==m?(p={...w,enabled:m},t[4]=w,t[5]=m,t[6]=p):p=t[6],re(p);const{data:c}=Z.useSession(),u=c?.user?.id;let g;t[7]!==a||t[8]!==u?(g=a&&u?Xe(u,a):null,t[7]=a,t[8]=u,t[9]=g):g=t[9];const f=g;let x,y;t[10]!==d?(x=()=>{const E=z=>{if(ve(z)&&z.code==="KeyK"){z.preventDefault(),r(!0);return}ve(z)&&z.code==="BracketLeft"&&d.history.canGoBack()&&(z.preventDefault(),d.history.back())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},y=[d],t[10]=d,t[11]=x,t[12]=y):(x=t[11],y=t[12]),M.useEffect(x,y);let S;t[13]!==a?(S=ce.activeOrganization(a),t[13]=a,t[14]=S):S=t[14];let v;t[15]!==a||t[16]!==u?(v=async()=>{if(!a)return null;performance.mark("mesh:active-org-fetch:start");const{data:E}=await Z.organization.getFullOrganization({query:{organizationSlug:a}}).finally(bn),z=xe(E);return E&&!z&&localStorage.setItem(X.lastOrgSlug(),a),u&&E&&et(u,a,E),E},t[15]=a,t[16]=u,t[17]=v):v=t[17];const _=f?f.data:void 0,k=f?.updatedAt;let j;t[18]!==v||t[19]!==_||t[20]!==k||t[21]!==S?(j={queryKey:S,queryFn:v,initialData:_,initialDataUpdatedAt:k,gcTime:1/0,refetchOnWindowFocus:!1},t[18]=v,t[19]=_,t[20]=k,t[21]=S,t[22]=j):j=t[22];const{data:b}=Ne(j),T=b?.id,A=b?.slug,{data:N}=bt(T,A),O=T??"",I=A??"";let C;t[23]!==O||t[24]!==I?(C=ht({connectionId:pt,orgId:O,orgSlug:I}),t[23]=O,t[24]=I,t[25]=C):C=t[25];const D=!!T&&!!A;let P;if(t[26]!==C||t[27]!==D?(P={...C,enabled:D},t[26]=C,t[27]=D,t[28]=P):P=t[28],re(P),!b){let E;t[29]===Symbol.for("react.memo_cache_sentinel")?(E=n.jsx(tt,{}),t[29]=E):E=t[29];let z;return t[30]!==a?(z=n.jsx(M.Suspense,{fallback:E,children:n.jsx(Ct,{orgSlug:a})}),t[30]=a,t[31]=z):z=t[31],z}if(xe(b)){localStorage.getItem(X.lastOrgSlug())===a&&localStorage.removeItem(X.lastOrgSlug());let E;return t[32]!==b.name?(E=n.jsx(Ze,{orgName:b.name}),t[32]=b.name,t[33]=E):E=t[33],E}if(N?.ssoRequired&&!N.authenticated){let E;return t[34]!==b.id||t[35]!==b.name||t[36]!==b.slug||t[37]!==N.domain?(E=n.jsx(gn,{orgId:b.id,orgSlug:b.slug,orgName:b.name,domain:N.domain}),t[34]=b.id,t[35]=b.name,t[36]=b.slug,t[37]=N.domain,t[38]=E):E=t[38],E}const B=b.logo??null;let R;t[39]!==b||t[40]!==B?(R={...b,logo:B},t[39]=b,t[40]=B,t[41]=R):R=t[41];let W;t[42]!==b?(W=n.jsx(ln,{activeOrg:b}),t[42]=b,t[43]=W):W=t[43];let ne;t[44]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(nt,{}),t[44]=ne):ne=t[44];let se;t[45]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Bt,{}),n.jsx(Zt,{})]}),t[45]=se):se=t[45];let Q;t[46]!==i?(Q=n.jsx(Ht,{open:i,onOpenChange:r}),t[46]=i,t[47]=Q):Q=t[47];let oe;t[48]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(on,{}),t[48]=oe):oe=t[48];let ie;return t[49]!==R||t[50]!==W||t[51]!==Q?(ie=n.jsxs(pn,{org:R,children:[W,ne,se,Q,oe]}),t[49]=R,t[50]=W,t[51]=Q,t[52]=ie):ie=t[52],ie}function bn(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Sn(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(mt,{children:n.jsx(yn,{})}),t[0]=e):e=t[0],e}const Rn=Object.freeze(Object.defineProperty({__proto__:null,default:Sn,usePanelActions:xn},Symbol.toStringTag,{value:"Module"}));export{q as K,qn as a,zn as f,ve as i,nn as m,Rn as s,xn as u};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-4cbriU6p.js","assets/index-DTgaKfa1.js","assets/index-DolLSrq-.css","assets/Tool02-Dtn0vTkb.js","assets/CheckCircle-DAP9g-rT.js","assets/Settings02-DUdP-JTL.js","assets/use-mcp-client-DayFt0Gf.js","assets/auth-XDi96955.js","assets/useInfiniteQuery-BiSANydn.js","assets/use-infinite-scroll-DHM2f60I.js","assets/studio-tools-e62Z61Le.js","assets/badge-DggS66bH.js","assets/input-C72W64FP.js","assets/dropdown-menu-BnYh-sUy.js","assets/Check-rokpcf0T.js","assets/ChevronRight-B3aSlkur.js","assets/DotsVertical-Ci1-w3e_.js","assets/table-_k-3G-55.js","assets/toggle-group-CWypEkzR.js","assets/use-view-mode-CxFbTkRh.js","assets/use-mobile-BIWGqE3k.js","assets/FilterLines-CXXP_NBc.js","assets/SearchMd-BFouC3yb.js","assets/dialog-CcBvH6sb.js","assets/X-C5G0YNBl.js","assets/AlertCircle-BiFsMhm4.js","assets/Upload01-_1DUBSlt.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-DliQGHu_.js","assets/card-Bc9XMAV0.js","assets/Trash01-jc_UuKLC.js","assets/label-BUH_VVoz.js","assets/select-DxtXx4Gd.js","assets/tooltip-CqWMVk2M.js","assets/ChevronDown-CPacLmdA.js","assets/ChevronUp-BK9Hx0V9.js","assets/switch-CxExaNpJ.js","assets/textarea-DfYALb4E.js","assets/XCircle-DrrwTSsJ.js","assets/checkbox-B6ZDdSvN.js","assets/Eye-D_L0dZ6u.js","assets/LinkExternal01-CBBWd_u8.js","assets/use-copy-BfuE0gud.js","assets/Copy01-5TOIojCe.js","assets/Key01-DajEy3HZ.js","assets/Plus-SfXjhFdQ.js","assets/mcp-oauth-CECKXhxv.js","assets/Play-CCRE5ZQ3.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as m,d as n,f as c,j as t,k as f,r as l,aG as p}from"./index-DTgaKfa1.js";import{R as u}from"./require-capability-CUVZxilL.js";import"./use-capability-DOpinycn.js";import"./access-gate-B3guIJUr.js";import"./capability-load-error-CVQkqfS2.js";const g=l.lazy(()=>p(()=>import("./registry-layout-4cbriU6p.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])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{G as u}from"./index-DTgaKfa1.js";const l=1e4,g="true";function s(e,t){return u.chatAutosend(e,t)}function c(e){return e==="pending"||e==="sending"}function f(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}return!t||typeof t!="object"||typeof t.createdAt!="number"||typeof t.message!="object"||!c(t.status)?null:t}function A(e,t,n,r,i=Date.now()){const a={message:r,createdAt:i,status:"pending"};return e.setItem(s(t,n),JSON.stringify(a)),a}function d(e,t,n){const r=s(t,n),i=f(e.getItem(r));return i||(e.removeItem(r),null)}function v(e,t,n,r=Date.now()){const i=s(t,n),a=d(e,t,n);return!a||a.status!=="pending"?null:r-a.createdAt>=l?(e.removeItem(i),null):(e.setItem(i,JSON.stringify({...a,status:"sending"})),{message:a.message,createdAt:a.createdAt})}function b(e,t,n){e.removeItem(s(t,n))}function p(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function m(e,t){return`app:${e}:${t}`}function O(e){if(!e||!e.startsWith("app:"))return null;const t=e.slice(4),n=t.indexOf(":");if(n<=0)return null;const r=t.slice(0,n),i=t.slice(n+1);return!r||!i?null:{connectionId:r,toolName:i}}function C(e){return`deck:${encodeURIComponent(e)}`}function I(e){if(!e||!e.startsWith("deck:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function w(e){return`file:${encodeURIComponent(e)}`}function E(e){if(!e||!e.startsWith("file:"))return null;const t=e.slice(5);if(!t)return null;try{return{key:decodeURIComponent(t)}}catch{return null}}function k(e){return`library-file:${encodeURIComponent(e)}`}function _(e){if(!e||!e.startsWith("library-file:"))return null;const t=e.slice(13);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function U(e){return`code:${encodeURIComponent(e)}`}function W(e){if(!e)return null;if(e==="code")return{path:null};if(!e.startsWith("code:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}const T=["overview","settings","automations","preview","code","content","git"],h=new Set(T),R=new Set(["board","files"]);function D(e){return e.startsWith("app:")||e.startsWith("automation:")||e.startsWith("file:")||e.startsWith("deck:")||e.startsWith("library-file:")||e.startsWith("code:")}const o=new Set(["instructions","connections","layout","settings"]);function L(e){return!!e&&o.has(e)}function y(e){const t=e?.defaultMainView??null;if(!t||o.has(t.type))return"settings";if(h.has(t.type))return t.type;if(t.type==="ext-app"||t.type==="ext-apps"){if(t.id&&t.toolName)return m(t.id,t.toolName);const n=e?.tabs?.map(r=>r.id)??[];return t.id&&n.includes(t.id)?t.id:n[0]??"settings"}return e?.tabs?.[0]?.id??"settings"}function N(e){const t=e.mainParam===0?"0":e.mainParam,n=y(e.metadata);if(t==="0")return{mainOpen:!1,activeTab:n};if(t===void 0){const r=e.metadata?.defaultMainView??null;return{mainOpen:!(r==null||r.type==="chat"),activeTab:n}}return o.has(t)?{mainOpen:!0,activeTab:"settings"}:{mainOpen:!0,activeTab:t}}function P(e){return e.mainOpen&&e.clickedId===e.activeTab?0:e.clickedId}function F(e){return e.mainOpen?e.activeTab==="automations"?!0:p(e.activeTab)!==null:!1}function V(e){return e.mainOpen&&e.activeTab==="automations"?0:"automations"}export{g as A,T as F,R as O,N as a,E as b,I as c,_ as d,P as e,m as f,U as g,k as h,L as i,W as j,O as k,F as l,V as m,C as n,w as o,p,D as q,y as r,v as s,b as t,A as w};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./use-infinite-scroll-DHM2f60I.js";import{dX as i}from"./index-DTgaKfa1.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./use-infinite-scroll-DHM2f60I.js";import{dX as u,W as n}from"./index-DTgaKfa1.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as K,b as tt,r as et,j as s,m as ot,B as nt}from"./index-DTgaKfa1.js";import{x as vt,$ as dt,h as yt}from"./agent-icon-BEPZv5Dl.js";import{i as Tt}from"./ChevronRight-B3aSlkur.js";import{L as jt}from"./label-BUH_VVoz.js";import{n as ft}from"./automation-runs-CFl0TPrC.js";import{S as Nt}from"./switch-CxExaNpJ.js";import{T as wt,c as kt,a as Mt}from"./tooltip-CqWMVk2M.js";import{V as _t}from"./view-mode-toggle-FdjAmoYN.js";import"./AlertCircle-BiFsMhm4.js";import"./Tool01-Cwtm9Zfc.js";import"./ArrowUp-BSm3AYB8.js";import"./Settings02-DUdP-JTL.js";import"./Tool02-Dtn0vTkb.js";import"./XCircle-DrrwTSsJ.js";import"./ArrowUpRight-DeyIz7v5.js";import"./TrendUp01-GUe-gdeI.js";import"./ZapSquare-YZ7_-s41.js";import"./Users03-CM1sULj9.js";import"./CheckCircle-DAP9g-rT.js";import"./Check-rokpcf0T.js";import"./ChevronDown-CPacLmdA.js";import"./ChevronUp-BK9Hx0V9.js";import"./DotsVertical-Ci1-w3e_.js";import"./Stars02-BHuJgpT2.js";import"./Copy01-5TOIojCe.js";import"./Eye-D_L0dZ6u.js";import"./FilterLines-CXXP_NBc.js";import"./Star01-BoqpV_cz.js";import"./Palette-DdP8XSRj.js";import"./SwitchHorizontal01-UVm_9kuZ.js";import"./HardDrive-Dz77ORfh.js";import"./Key01-DajEy3HZ.js";import"./LayoutLeft-CNCDZdDQ.js";import"./LinkExternal01-CBBWd_u8.js";import"./LogOut01-DWlyRcQP.js";import"./Monitor01-SfpO8_eS.js";import"./Sun-DPFLXdN9.js";import"./Play-CCRE5ZQ3.js";import"./Plus-SfXjhFdQ.js";import"./SearchLg-Cm9WaEOr.js";import"./SearchMd-BFouC3yb.js";import"./Shield01-CVeAmAQS.js";import"./Stars01-oBfIKe_H.js";import"./Trash01-jc_UuKLC.js";import"./Upload01-_1DUBSlt.js";import"./User01-D_ggPL6l.js";import"./Users01-DMeK9zGH.js";import"./XClose-aZG3Lwvy.js";import"./X-C5G0YNBl.js";import"./Zap-CxBT7IWE.js";import"./select-DxtXx4Gd.js";import"./useInfiniteQuery-BiSANydn.js";import"./use-infinite-scroll-DHM2f60I.js";import"./use-connection-DtFjrTRv.js";import"./use-mcp-client-DayFt0Gf.js";import"./auth-XDi96955.js";import"./use-virtual-mcp-DDWns2sS.js";import"./card-Bc9XMAV0.js";import"./sidebar-DguXDaRr.js";import"./use-mobile-BIWGqE3k.js";import"./table-_k-3G-55.js";import"./empty-state-D0um33CJ.js";import"./use-members-CCGbZEKO.js";import"./use-org-auth-client-C8uBs8j9.js";import"./use-clock-tick-ZkT_1fjY.js";import"./use-automations-CzgZplev.js";import"./studio-tools-e62Z61Le.js";import"./useSuspenseInfiniteQuery-BMbpgKyc.js";import"./avatar-BrxEDiW5.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BfuE0gud.js";import"./dialog-CcBvH6sb.js";import"./tab-id-8NbPTAxB.js";import"./hooks-DpMhOxp5.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-B6fO_e2Q.js";import"./chat-context-AqRARPO5.js";import"./use-ai-providers-Du0KxunD.js";import"./use-decopilot-events-B8cCEH6l.js";import"./use-organization-settings-BlVRLL3T.js";import"./monaco-editor-DGkIp40X.js";import"./index-j_W2ZplR.js";import"./calendar-DcWQOY47.js";import"./shell-layout-Bz6Fy8ta.js";import"./required-auth-layout-Dvz6-mde.js";import"./use-org-sso-DaDrJMD5.js";import"./integration-icon-Buh9MmdF.js";import"./use-navigate-to-agent-C0TiV0EA.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-DoByAr16.js";import"./form-B30v3rW_.js";import"./input-C72W64FP.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Ct=new Date(-864e13),Dt=new Date(864e13),At=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,$t=/\/flags\/multivariate\.ts$/;function Lt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function Rt(e){if(!e||typeof e!="object")return null;const{start:t,end:n}=e,r=typeof t=="string",a=typeof n=="string";if(!r&&!a)return null;const o=r?new Date(t):Ct,i=a?new Date(n):Dt;return Number.isNaN(o.getTime())||Number.isNaN(i.getTime())||r&&a&&i.getTime()<=o.getTime()?null:{start:o,end:i,openStart:!r,openEnd:!a}}function pt(e,t){if(!e||typeof e!="object")return;const n=e.__resolveType;if(typeof n=="string"){if(Et.has(n)){const r=Rt(e);r&&t.push(r);return}if(St.has(n)){const r=e.matchers;if(Array.isArray(r))for(const a of r)pt(a,t)}}}function Ot(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!At.test(t))return!1;const n=e.variants;return Array.isArray(n)}function It(e){if(typeof e=="string"){const m=e.trim();if(m.length===0)return null;try{const c=new URL(m).pathname.split("/").filter(Boolean),d=c[c.length-1];if(d)return decodeURIComponent(d)}catch{}return m.length>80?`${m.slice(0,77)}…`:m}if(!e||typeof e!="object")return null;const t=e,n=t.config,a=t.desktop?.media,o=[t.title,t.name,t.label,t.alt,n?.title,n?.name,n?.typeAlert?.message,a?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const m of o)if(typeof m=="string"&&m.trim().length>0)return m.trim();const i=t.__resolveType;if(typeof i=="string"){const l=(i.split("/").pop()??i).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Pt(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];typeof r=="number"?t.length>0?t[t.length-1]+=`[${r}]`:t.push(`[${r}]`):t.push(r)}return t.join(" · ")}function X(e,t,n,r,a){if(Ot(e)){const o=e.variants,i=e.__resolveType,m=$t.test(i)?"":Pt(r);o.forEach((l,c)=>{if(!l||typeof l!="object")return;const d=l,p=[];if(pt(d.rule,p),p.length===0)return;const x=It(d.value)??(m||n);for(const h of p)a.push({blockKey:t,blockLabel:n,innerPath:m,variantIndex:c,start:h.start,end:h.end,openStart:h.openStart,openEnd:h.openEnd,label:x,flagResolveType:i})});for(let l=0;l<o.length;l++){const c=o[l];c&&typeof c=="object"&&X(c.value,t,n,[...r,"variants",l,"value"],a)}return}if(Array.isArray(e)){for(let o=0;o<e.length;o++)X(e[o],t,n,[...r,o],a);return}if(e&&typeof e=="object")for(const[o,i]of Object.entries(e))o!=="__resolveType"&&X(i,t,n,[...r,o],a)}function Ft(e){if(!e)return[];const t=[];for(const[n,r]of Object.entries(e))X(r,n,Lt(n),[],t);return t.sort((n,r)=>n.start.getTime()-r.start.getTime())}function Vt(e){const t=[...new Set(e)].sort(),n=new Map;return t.forEach((r,a)=>{const o=a*137.508%360;n.set(r,{bg:`oklch(0.62 0.14 ${o})`,text:"white",border:`oklch(0.50 0.14 ${o})`})}),n}const Ht={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function ut(e,t){return e.get(t)??Ht}const Bt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ht=["January","February","March","April","May","June","July","August","September","October","November","December"],gt=1440*60*1e3;function B(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function xt(e){return new Date(e.getFullYear(),e.getMonth(),1)}function G(e,t){return new Date(e.getFullYear(),e.getMonth()+t,1)}function Z(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function st(e,t){return Math.round((B(e).getTime()-B(t).getTime())/gt)}function Wt(e){const t=(e.getTime()-B(e).getTime())/gt;return Math.min(Math.max(t,0),1)}function at(e,t){return st(e,t)+Wt(e)}function zt(e){const t=Z(e,-e.getDay()),n=[];for(let r=0;r<6;r++){const a=[];for(let o=0;o<7;o++)a.push(Z(t,r*7+o));n.push(a)}for(;n.length>0&&n[n.length-1].every(r=>r.getMonth()!==e.getMonth());)n.pop();return n}function Ut(e,t){const n=B(e[0]),r=Z(n,7),a=n.getTime(),o=r.getTime(),i=[];for(const c of t){const d=B(c.start),p=B(c.end);if(p.getTime()<n.getTime()||d.getTime()>=r.getTime())continue;const u=d.getTime()<n.getTime()?n:d,x=p.getTime()>=r.getTime()?Z(r,-1):p,h=st(u,n),g=st(x,u)+1;if(g<=0)continue;const b=Math.max(c.start.getTime(),a),j=Math.min(c.end.getTime(),o),v=at(new Date(b),n),f=Math.max(at(new Date(j),n)-v,0);f<=0||i.push({variant:c,startCol:h,span:g,leftUnits:v,widthUnits:f})}i.sort((c,d)=>c.startCol-d.startCol||d.span-c.span||c.variant.blockKey.localeCompare(d.variant.blockKey));const m=[],l=[];for(const c of i){let d=m.findIndex(p=>p<=c.startCol);d===-1&&(d=m.length,m.push(0)),m[d]=c.startCol+c.span,l.push({...c,lane:d})}return l}const it=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Yt(e,t){const n=e.openStart?t("sandbox.variantCalendar.always"):it.format(e.start),r=e.openEnd?t("sandbox.variantCalendar.ongoing"):it.format(e.end);return`${n} → ${r}`}function Gt(e){const t=K.c(18),{variant:n}=e,r=tt();let a;t[0]!==n.blockLabel?(a=s.jsx("div",{className:"font-semibold",children:n.blockLabel}),t[0]=n.blockLabel,t[1]=a):a=t[1];let o;t[2]!==n.innerPath?(o=n.innerPath&&s.jsx("div",{className:"text-muted-foreground",children:n.innerPath}),t[2]=n.innerPath,t[3]=o):o=t[3];let i;t[4]!==n.blockLabel||t[5]!==n.innerPath||t[6]!==n.label?(i=n.label!==n.blockLabel&&n.label!==n.innerPath&&s.jsx("div",{className:"text-muted-foreground",children:n.label}),t[4]=n.blockLabel,t[5]=n.innerPath,t[6]=n.label,t[7]=i):i=t[7];let m;t[8]!==r||t[9]!==n?(m=Yt(n,r),t[8]=r,t[9]=n,t[10]=m):m=t[10];let l;t[11]!==m?(l=s.jsx("div",{className:"mt-1",children:m}),t[11]=m,t[12]=l):l=t[12];let c;return t[13]!==a||t[14]!==o||t[15]!==i||t[16]!==l?(c=s.jsx(Mt,{children:s.jsxs("div",{className:"text-xs",children:[a,o,i,l]})}),t[13]=a,t[14]=o,t[15]=i,t[16]=l,t[17]=c):c=t[17],c}const lt=16;function Kt(e,t){const n=e?"transparent":"#000 0",r=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${n}, #000 ${lt}px, #000 calc(100% - ${lt}px), ${r})`}function bt(e){const t=K.c(26),{variant:n,color:r,style:a,children:o,fadeStart:i,fadeEnd:m}=e,l=i===void 0?!1:i,c=m===void 0?!1:m;let d;t[0]!==c||t[1]!==l?(d=Kt(l,c),t[0]=c,t[1]=l,t[2]=d):d=t[2];const p=d;let u;t[3]!==l?(u=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=l,t[4]=u):u=t[4];let x;t[5]!==c?(x=c&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=c,t[6]=x):x=t[6];let h;t[7]!==p?(h=p&&{maskImage:p,WebkitMaskImage:p},t[7]=p,t[8]=h):h=t[8];let g;t[9]!==r.bg||t[10]!==r.text||t[11]!==a||t[12]!==u||t[13]!==x||t[14]!==h?(g={background:r.bg,color:r.text,borderRadius:4,...u,...x,...h,...a},t[9]=r.bg,t[10]=r.text,t[11]=a,t[12]=u,t[13]=x,t[14]=h,t[15]=g):g=t[15];let b;t[16]!==o?(b=s.jsx("span",{className:"truncate",children:o}),t[16]=o,t[17]=b):b=t[17];let j;t[18]!==g||t[19]!==b?(j=s.jsx(wt,{asChild:!0,children:s.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:g,children:b})}),t[18]=g,t[19]=b,t[20]=j):j=t[20];let v;t[21]!==n?(v=s.jsx(Gt,{variant:n}),t[21]=n,t[22]=v):v=t[22];let f;return t[23]!==v||t[24]!==j?(f=s.jsxs(kt,{children:[j,v]}),t[23]=v,t[24]=j,t[25]=f):f=t[25],f}function qn(e){const t=K.c(72),{decofile:n}=e,r=tt(),[a,o]=et.useState("calendar"),[i,m]=et.useState(Xt),[l,c]=et.useState(!1);let d,p,u;if(t[0]!==n||t[1]!==l){const P=Ft(n);d=P.filter(Qt).length,u=l?P:P.filter(qt),p=Vt(u.map(Jt)),t[0]=n,t[1]=l,t[2]=d,t[3]=p,t[4]=u}else d=t[2],p=t[3],u=t[4];const x=p;let h;t[5]===Symbol.for("react.memo_cache_sentinel")?(h=()=>m(xt(new Date)),t[5]=h):h=t[5];const g=h;let b;t[6]!==a?(b=()=>m(P=>a==="calendar"?G(P,-1):G(P,-3)),t[6]=a,t[7]=b):b=t[7];const j=b;let v;t[8]!==a?(v=()=>m(P=>a==="calendar"?G(P,1):G(P,3)),t[8]=a,t[9]=v):v=t[9];const f=v;let y;t[10]!==r?(y=r("sandbox.variantCalendar.today"),t[10]=r,t[11]=y):y=t[11];let T;t[12]!==y?(T=s.jsx(nt,{variant:"outline",size:"sm",onClick:g,children:y}),t[12]=y,t[13]=T):T=t[13];let w;t[14]!==r?(w=r("sandbox.variantCalendar.previous"),t[14]=r,t[15]=w):w=t[15];let D;t[16]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(vt,{size:16}),t[16]=D):D=t[16];let k;t[17]!==j||t[18]!==w?(k=s.jsx(nt,{variant:"ghost",size:"icon",className:"size-8",onClick:j,"aria-label":w,children:D}),t[17]=j,t[18]=w,t[19]=k):k=t[19];let M;t[20]!==r?(M=r("sandbox.variantCalendar.next"),t[20]=r,t[21]=M):M=t[21];let S;t[22]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(Tt,{size:16}),t[22]=S):S=t[22];let A;t[23]!==f||t[24]!==M?(A=s.jsx(nt,{variant:"ghost",size:"icon",className:"size-8",onClick:f,"aria-label":M,children:S}),t[23]=f,t[24]=M,t[25]=A):A=t[25];const $=ht[i.getMonth()];let C;t[26]!==i?(C=i.getFullYear(),t[26]=i,t[27]=C):C=t[27];let _;t[28]!==$||t[29]!==C?(_=s.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[$," ",C]}),t[28]=$,t[29]=C,t[30]=_):_=t[30];let N;t[31]!==A||t[32]!==_||t[33]!==T||t[34]!==k?(N=s.jsxs("div",{className:"flex items-center gap-2",children:[T,k,A,_]}),t[31]=A,t[32]=_,t[33]=T,t[34]=k,t[35]=N):N=t[35];let L;t[36]!==d||t[37]!==l||t[38]!==r?(L=d>0&&s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Nt,{id:"show-ongoing",checked:l,onCheckedChange:c}),s.jsx(jt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:r("sandbox.variantCalendar.showOngoing",{count:d})})]}),t[36]=d,t[37]=l,t[38]=r,t[39]=L):L=t[39];let H;t[40]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(dt,{}),t[40]=H):H=t[40];let F;t[41]!==r?(F=r("sandbox.variantCalendar.calendarMode"),t[41]=r,t[42]=F):F=t[42];let E;t[43]!==F?(E={value:"calendar",icon:H,label:F},t[43]=F,t[44]=E):E=t[44];let W;t[45]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(yt,{}),t[45]=W):W=t[45];let R;t[46]!==r?(R=r("sandbox.variantCalendar.timelineMode"),t[46]=r,t[47]=R):R=t[47];let O;t[48]!==R?(O={value:"timeline",icon:W,label:R},t[48]=R,t[49]=O):O=t[49];let I;t[50]!==E||t[51]!==O?(I=[E,O],t[50]=E,t[51]=O,t[52]=I):I=t[52];let V;t[53]!==I||t[54]!==a?(V=s.jsx(_t,{value:a,onValueChange:o,options:I}),t[53]=I,t[54]=a,t[55]=V):V=t[55];let z;t[56]!==L||t[57]!==V?(z=s.jsxs("div",{className:"flex items-center gap-4",children:[L,V]}),t[56]=L,t[57]=V,t[58]=z):z=t[58];let U;t[59]!==N||t[60]!==z?(U=s.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[N,z]}),t[59]=N,t[60]=z,t[61]=U):U=t[61];let Y;t[62]!==x||t[63]!==i||t[64]!==d||t[65]!==l||t[66]!==u||t[67]!==a?(Y=u.length===0?s.jsx(Zt,{hiddenOngoing:l?0:d}):a==="calendar"?s.jsx(ee,{monthStart:i,variants:u,colorMap:x}):s.jsx(oe,{monthStart:i,variants:u,colorMap:x}),t[62]=x,t[63]=i,t[64]=d,t[65]=l,t[66]=u,t[67]=a,t[68]=Y):Y=t[68];let q;return t[69]!==U||t[70]!==Y?(q=s.jsxs("div",{className:"flex h-full w-full flex-col",children:[U,Y]}),t[69]=U,t[70]=Y,t[71]=q):q=t[71],q}function Jt(e){return e.blockKey}function qt(e){return!e.openEnd}function Qt(e){return e.openEnd}function Xt(){return xt(new Date)}function Zt(e){const t=K.c(4),{hiddenOngoing:n}=e,r=n===void 0?0:n,a=tt();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(dt,{size:24,className:"text-muted-foreground/60"}),t[0]=o):o=t[0];let i;return t[1]!==r||t[2]!==a?(i=s.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[o,r>0?s.jsxs(s.Fragment,{children:[s.jsx("div",{children:a("sandbox.variantCalendar.noDatedVariants")}),s.jsx("div",{className:"text-xs text-muted-foreground/80",children:a("sandbox.variantCalendar.hiddenOngoingVariants",{count:r})})]}):s.jsxs(s.Fragment,{children:[s.jsx("div",{children:a("sandbox.variantCalendar.noScheduledVariants")}),s.jsx("div",{className:"text-xs text-muted-foreground/80",children:a("sandbox.variantCalendar.dateMatcherInfo")})]})]}),t[1]=r,t[2]=a,t[3]=i):i=t[3],i}const rt=20,ct=2,mt=28,te=6;function ee(e){const t=K.c(17),{monthStart:n,variants:r,colorMap:a}=e;let o,i,m,l,c;if(t[0]!==a||t[1]!==n||t[2]!==r){const u=zt(n),x=B(new Date);o=ft,c="flex-1 min-h-0",i="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:Bt.map(re)}),t[8]=m):m=t[8],l=u.map((h,g)=>{const b=Ut(h,r),j=b.reduce(ne,0),v=mt+j*(rt+ct)+8;return s.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:v},children:[h.map((f,y)=>{const T=f.getMonth()===n.getMonth(),w=f.getTime()===x.getTime();return s.jsx("div",{className:ot("border-r last:border-r-0 px-2 pt-1.5 text-xs",T?"bg-background":"bg-muted/30 text-muted-foreground"),children:s.jsx("span",{className:ot("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",w&&"bg-primary text-primary-foreground font-semibold"),children:f.getDate()})},y)}),b.map((f,y)=>{const T=ut(a,f.variant.blockKey),w=mt+f.lane*(rt+ct),D=f.leftUnits/7*100,k=f.widthUnits/7*100,M=f.variant.openStart&&g===0,S=f.variant.openEnd&&g===u.length-1;return s.jsxs(bt,{variant:f.variant,color:T,fadeStart:M,fadeEnd:S,style:{top:w,left:`calc(${D}% + 2px)`,width:`calc(${k}% - 4px)`,minWidth:te,height:rt},children:[f.variant.blockLabel,f.variant.label!==f.variant.blockLabel&&s.jsxs("span",{className:"opacity-70",children:[" · ",f.variant.label]})]},`${g}-${y}`)})]},g)}),t[0]=a,t[1]=n,t[2]=r,t[3]=o,t[4]=i,t[5]=m,t[6]=l,t[7]=c}else o=t[3],i=t[4],m=t[5],l=t[6],c=t[7];let d;t[9]!==i||t[10]!==m||t[11]!==l?(d=s.jsxs("div",{className:i,children:[m,l]}),t[9]=i,t[10]=m,t[11]=l,t[12]=d):d=t[12];let p;return t[13]!==o||t[14]!==c||t[15]!==d?(p=s.jsx(o,{className:c,children:d}),t[13]=o,t[14]=c,t[15]=d,t[16]=p):p=t[16],p}function ne(e,t){return Math.max(e,t.lane+1)}function re(e){return s.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const Q=4,se=32,J=240;function oe(e){const t=K.c(23),{monthStart:n,variants:r,colorMap:a}=e,o=n,i=G(n,Q),m=new Date,l=new Map;for(const _ of r){const N=l.get(_.blockKey)??[];N.push(_),l.set(_.blockKey,N)}const c=Array.from(l.entries()).sort(le),d=i.getTime()-o.getTime(),p=_=>(Math.max(o.getTime(),Math.min(i.getTime(),_.getTime()))-o.getTime())/d*100;let u;t[0]!==o?(u=(_,N)=>G(o,N),t[0]=o,t[1]=u):u=t[1];const x=Array.from({length:Q},u),h=m.getTime()>=o.getTime()&&m.getTime()<=i.getTime()?p(m):null,g=tt(),b=ft,j="flex-1 min-h-0",v="min-w-[900px] relative";let f;t[2]===Symbol.for("react.memo_cache_sentinel")?(f={width:J},t[2]=f):f=t[2];let y;t[3]!==g?(y=g("sandbox.variantCalendar.variantBlock"),t[3]=g,t[4]=y):y=t[4];let T;t[5]!==y?(T=s.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:f,children:y}),t[5]=y,t[6]=T):T=t[6];let w;t[7]===Symbol.for("react.memo_cache_sentinel")?(w={gridTemplateColumns:`repeat(${Q}, minmax(0, 1fr))`},t[7]=w):w=t[7];const D=x.map(ie);let k;t[8]!==D?(k=s.jsx("div",{className:"flex-1 grid",style:w,children:D}),t[8]=D,t[9]=k):k=t[9];let M;t[10]!==T||t[11]!==k?(M=s.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[T,k]}),t[10]=T,t[11]=k,t[12]=M):M=t[12];let S;t[13]!==g||t[14]!==h?(S=h!==null&&s.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${J}px + (100% - ${J}px) * ${h} / 100)`},children:s.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:g("sandbox.variantCalendar.todayLabel")})}),t[13]=g,t[14]=h,t[15]=S):S=t[15];const A=c.map(_=>{const[N,L]=_,H=ut(a,N),F=L[0]?.blockLabel??N;return s.jsxs("div",{children:[s.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:s.jsx("div",{className:"px-3 truncate",style:{width:J},children:F})}),L.map((E,W)=>s.jsxs("div",{className:"flex border-b items-center",style:{height:se},children:[s.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:J},children:[s.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:H.bg}}),s.jsx("span",{className:"truncate text-foreground/80",children:E.label})]}),s.jsxs("div",{className:"relative flex-1 h-full",children:[s.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${Q}, minmax(0, 1fr))`},children:x.map(ae)}),(()=>{const R=Math.max(E.start.getTime(),o.getTime()),O=Math.min(E.end.getTime(),i.getTime());if(O<=R)return null;const I=p(new Date(R)),V=p(new Date(O))-I;return s.jsx(bt,{variant:E,color:H,fadeStart:E.openStart,fadeEnd:E.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${I}%`,width:`calc(${V}% - 2px)`,height:22},children:E.label})})()]})]},W))]},N)});let $;t[16]!==M||t[17]!==S||t[18]!==A?($=s.jsxs("div",{className:v,children:[M,S,A]}),t[16]=M,t[17]=S,t[18]=A,t[19]=$):$=t[19];let C;return t[20]!==b||t[21]!==$?(C=s.jsx(b,{className:j,children:$}),t[20]=b,t[21]=$,t[22]=C):C=t[22],C}function ae(e,t){return s.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function ie(e,t){return s.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ht[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function le(e,t){return e[0].localeCompare(t[0])}export{qn as VariantCalendar};
|