decocms 4.619.8 → 4.619.10
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-D2NouvfT.js → AlertCircle-D1Q8X__K.js} +1 -1
- package/dist/client/assets/{AreaChart-C69ZZsoI.js → AreaChart-CZ4CFQOF.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BqT0JjoT.js → ArrowLeft-a7zQohPB.js} +1 -1
- package/dist/client/assets/{ArrowRight-drioiso6.js → ArrowRight-CcdemY_e.js} +1 -1
- package/dist/client/assets/{ArrowUp-BX4O3cRq.js → ArrowUp-BjMuYXEC.js} +1 -1
- package/dist/client/assets/{BookOpen01-3jk6-b2F.js → BookOpen01-Caac9KpE.js} +1 -1
- package/dist/client/assets/{CartesianChart-Cq8jOByd.js → CartesianChart-B0jOalhe.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DpckCE8K.js → CategoricalChart-CCxFJJjf.js} +1 -1
- package/dist/client/assets/{CheckCircle-CLvYssUd.js → CheckCircle-BygonUdk.js} +1 -1
- package/dist/client/assets/{ChevronDown-DAnJt1CB.js → ChevronDown-BDwdJQzR.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-CV3zcNGH.js → ChevronSelectorVertical-BAKnniO6.js} +1 -1
- package/dist/client/assets/{ChevronUp-OFnHDyjq.js → ChevronUp-CoA7d7vl.js} +1 -1
- package/dist/client/assets/{CreditCard01-HXOYzid-.js → CreditCard01-BD4H9Smc.js} +1 -1
- package/dist/client/assets/{Eye-CmYcf8ai.js → Eye-B8RfELJD.js} +1 -1
- package/dist/client/assets/{File02-7Vd4jW_I.js → File02-CNp6lbfd.js} +1 -1
- package/dist/client/assets/{Fingerprint04-6UGroDLU.js → Fingerprint04-CYuFFJ8_.js} +1 -1
- package/dist/client/assets/{Globe04-24mKQ9Ao.js → Globe04-DGpfgXDy.js} +1 -1
- package/dist/client/assets/{Image01-BXYfiVgr.js → Image01-DZ0d0gl4.js} +1 -1
- package/dist/client/assets/{Key01-B_hS_62c.js → Key01-CCL-qpBw.js} +1 -1
- package/dist/client/assets/{LayoutLeft-FMo6Osev.js → LayoutLeft-D6A6HKPj.js} +1 -1
- package/dist/client/assets/{LinkBroken01-Cq1VpHt5.js → LinkBroken01-DZpjy5h4.js} +1 -1
- package/dist/client/assets/{MessageCircle01-cLkYRAq1.js → MessageCircle01-Vr9v9ZLf.js} +1 -1
- package/dist/client/assets/{Minus-CpAwDyCu.js → Minus-Cdvi1RtF.js} +1 -1
- package/dist/client/assets/{Monitor01-BgljY9mZ.js → Monitor01-BKLXdSAu.js} +1 -1
- package/dist/client/assets/{Play-B8qXRmXx.js → Play-KnC-ePg8.js} +1 -1
- package/dist/client/assets/{Plus-CMPQGYNJ.js → Plus-fnuC_-Ii.js} +1 -1
- package/dist/client/assets/{ReferenceLine-Bcj8UdgJ.js → ReferenceLine-BWtcsB8X.js} +1 -1
- package/dist/client/assets/{SearchMd-BRrpiXaK.js → SearchMd-C7M41YQV.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-Lv_lXKl3.js → ShoppingBag01-D27zZ3nR.js} +1 -1
- package/dist/client/assets/{Sun-DiXyHGM-.js → Sun-TBLvGE97.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CoKNU7eN.js → SwitchHorizontal01-D47eRm9A.js} +1 -1
- package/dist/client/assets/{Tool01-CQpf9QHt.js → Tool01-eLaAOwHX.js} +1 -1
- package/dist/client/assets/{Tooltip-CVOw8Oes.js → Tooltip-BVDzZkXm.js} +1 -1
- package/dist/client/assets/{Trash01-Dw3BP1yz.js → Trash01-C_glH0wy.js} +1 -1
- package/dist/client/assets/{Upload01-DGYPOiPg.js → Upload01-VrBKSmfZ.js} +1 -1
- package/dist/client/assets/{UserCheck01-Bl-xFtn-.js → UserCheck01-BiEm5Ebz.js} +1 -1
- package/dist/client/assets/{UserSquare-BlZFBeJE.js → UserSquare-DRonBRNm.js} +1 -1
- package/dist/client/assets/{Users01-y41RvLhz.js → Users01-CYW34Us_.js} +1 -1
- package/dist/client/assets/{XClose-CNBL86j1.js → XClose-xoNzv1jt.js} +1 -1
- package/dist/client/assets/{Zap-CjPlT3gP.js → Zap-Ch4l-t5Z.js} +1 -1
- package/dist/client/assets/{access-gate-D0QZMBM8.js → access-gate-CNfTTZux.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-Da-94zWB.js → add-connection-dialog--_GdeImt.js} +1 -1
- package/dist/client/assets/agent-app-1gb3fP-R.js +1 -0
- package/dist/client/assets/{agent-assets-C5rXkHpB.js → agent-assets-B9TTg2qM.js} +1 -1
- package/dist/client/assets/{agent-automation-DdRoXUCi.js → agent-automation-Mtl2x19j.js} +1 -1
- package/dist/client/assets/{agent-automations-CP0SoeZd.js → agent-automations-8oFrbM5G.js} +1 -1
- package/dist/client/assets/{agent-blog-B6woE9FU.js → agent-blog-FC7eW83-.js} +2 -2
- package/dist/client/assets/{agent-blog-post-CcqCot21.js → agent-blog-post-Dpmyvzzj.js} +2 -2
- package/dist/client/assets/{agent-business-case-Duf4Cs8G.js → agent-business-case-DEp0r6mM.js} +1 -1
- package/dist/client/assets/{agent-calendar-BxmvIlWp.js → agent-calendar-B6FrBIj9.js} +1 -1
- package/dist/client/assets/{agent-capabilities-BY-9tVop.js → agent-capabilities-CkWGD_1I.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DRkyMPTr.js → agent-connect-sources-Bc_bs6sE.js} +1 -1
- package/dist/client/assets/agent-deck-CmXstFXo.js +1 -0
- package/dist/client/assets/{agent-e2e-DqkFVlDK.js → agent-e2e-BxjBBycE.js} +1 -1
- package/dist/client/assets/agent-experiments-CDey06Av.js +1 -0
- package/dist/client/assets/agent-file-nF-v4TIq.js +1 -0
- package/dist/client/assets/{agent-hosting-B81aZJg8.js → agent-hosting-CFqNbgT1.js} +1 -1
- package/dist/client/assets/{agent-icon-Di7zqlxT.js → agent-icon-DFYKaa0c.js} +1 -1
- package/dist/client/assets/agent-library-DpY5A561.js +1 -0
- package/dist/client/assets/agent-library-file-CWaKqX-p.js +1 -0
- package/dist/client/assets/agent-overview-DtRPdBry.js +1 -0
- package/dist/client/assets/{agent-releases-BKSsiYLJ.js → agent-releases-wE_sFDN-.js} +1 -1
- package/dist/client/assets/agent-settings-BAi3GmmG.js +1 -0
- package/dist/client/assets/{agent-site-editor-CThnBNcc.js → agent-site-editor-C0q8LvFu.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-MFqRb2Ue.js +2 -0
- package/dist/client/assets/agent-site-editor-content-Bb5YwChE.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-DRcDZGPw.js +1 -0
- package/dist/client/assets/agent-view-B24byKnk.js +1 -0
- package/dist/client/assets/{agent-view-guard-CwnSIu1-.js → agent-view-guard-DKuyN-80.js} +1 -1
- package/dist/client/assets/{ai-providers-BABgYL-0.js → ai-providers-qOMkGjqx.js} +1 -1
- package/dist/client/assets/{alert-CmpLSGbv.js → alert-DosQ3gDY.js} +1 -1
- package/dist/client/assets/{analytics-sections-ozEgo_XG.js → analytics-sections-CD1kYfMD.js} +1 -1
- package/dist/client/assets/{api-keys-DyM3zmsB.js → api-keys-C1SgriUZ.js} +1 -1
- package/dist/client/assets/api-keys-umCPf2jI.js +1 -0
- package/dist/client/assets/{app-editor-Bvtw4ylo.js → app-editor-BlBVNt7A.js} +1 -1
- package/dist/client/assets/{asset-utils-hNqdjb20.js → asset-utils-BK2ot-jO.js} +1 -1
- package/dist/client/assets/{auth-catchall-CAO8d9Fp.js → auth-catchall-Brs6Xsvy.js} +1 -1
- package/dist/client/assets/{auth-entry-BIRQU4mc.js → auth-entry-By-AdTxA.js} +1 -1
- package/dist/client/assets/{auth-split-layout-XFJP-UEn.js → auth-split-layout-CKfdFrqW.js} +1 -1
- package/dist/client/assets/{auth-B-a5Zgxg.js → auth-xINlnEh8.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BJKvJQB_.js → authenticate-and-persist-oauth-CfAul8ih.js} +1 -1
- package/dist/client/assets/{automation-list-row-CdbPiLrN.js → automation-list-row-xGe3-vaO.js} +1 -1
- package/dist/client/assets/{automation-runs-FHf4-haW.js → automation-runs-DUyTfm-1.js} +1 -1
- package/dist/client/assets/{automations-DjrGqdOo.js → automations-Cl7RIbcD.js} +1 -1
- package/dist/client/assets/{badge-CLRPbUCC.js → badge-By3J5rC3.js} +1 -1
- package/dist/client/assets/{block-document-DUuq2ZeF.js → block-document-Bog58LB_.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CHO07sy_.js → blocks-preview-workspace-context-BEc68w0W.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-DyZqVv-l.js → blocks-tab-states-C-fKJR1R.js} +1 -1
- package/dist/client/assets/{blog-preview-url-B7yZ2G-y.js → blog-preview-url-B9jP2xxs.js} +1 -1
- package/dist/client/assets/{blog-schema-C2hFTN-o.js → blog-schema-03G2DeQU.js} +1 -1
- package/dist/client/assets/{blog-source-gate-Ce60HIPG.js → blog-source-gate-D0f9lC6c.js} +1 -1
- package/dist/client/assets/{blog-view-gate-4XPksI2p.js → blog-view-gate-Cd7nZI43.js} +1 -1
- package/dist/client/assets/{buckets-CYMX4NUg.js → buckets-DItzj1C4.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DnoDBpzy.js → build-improve-prompt-doc-DhyvYeik.js} +1 -1
- package/dist/client/assets/{calendar-CuW1bMpF.js → calendar-DhrCDRQ3.js} +1 -1
- package/dist/client/assets/{capability-load-error-Cv8kMWPd.js → capability-load-error-CDIQe4e8.js} +1 -1
- package/dist/client/assets/{category-editor-DTHjgA1h.js → category-editor-df2u5p7v.js} +1 -1
- package/dist/client/assets/{category-tree-Czed1V_u.js → category-tree-ldYsSWnP.js} +1 -1
- package/dist/client/assets/{chart-CT2CjoCj.js → chart-Df8ROyLe.js} +1 -1
- package/dist/client/assets/{chat-context-DytZnaTl.js → chat-context-CqcR4aAu.js} +1 -1
- package/dist/client/assets/{chat-draft-CR3QGF0K.js → chat-draft-D6uyGiuZ.js} +1 -1
- package/dist/client/assets/{checkbox-DV2T_2wi.js → checkbox-Bg0tGTVi.js} +1 -1
- package/dist/client/assets/{choose-editor-D0ZELI37.js → choose-editor-Jha1HKKs.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CWwAkmlP.js → cli-auth-success-DfcdCs0V.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-159iosTN.js → cms-settings-editor-WLlijqQA.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-BxkVhzpN.js → cms-store-drafts-2T-3kouy.js} +1 -1
- package/dist/client/assets/{collapsible-DL_QpL2k.js → collapsible-CxuxAsHp.js} +1 -1
- package/dist/client/assets/{collection-detail-D5h-mH7Y.js → collection-detail-CpK9gTgl.js} +1 -1
- package/dist/client/assets/{collection-display-button-CK1C97OD.js → collection-display-button-BifT3jIZ.js} +1 -1
- package/dist/client/assets/{collection-search-Daa7Sik-.js → collection-search-DhW2WLfL.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BUGBS30a.js → collection-table-wrapper-D0qUDiEO.js} +1 -1
- package/dist/client/assets/{collection-tabs-BOqc8wWl.js → collection-tabs-D91PU4y3.js} +1 -1
- package/dist/client/assets/{combobox-BzGXmufP.js → combobox-B-vXOMV-.js} +1 -1
- package/dist/client/assets/{command-DIXZqeHF.js → command-DmBlCsxL.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-BRWozWTB.js → companion-mcps-section-DAiOKGeY.js} +1 -1
- package/dist/client/assets/{config-DrlLEd_m.js → config-DbV4O0C1.js} +1 -1
- package/dist/client/assets/{connect-BRiNWbHt.js → connect-BZ0g82Ew.js} +1 -1
- package/dist/client/assets/{connect-key-DoVs3WjL.js → connect-key-MkbzrmMb.js} +1 -1
- package/dist/client/assets/{connect-layout-gsj1teLb.js → connect-layout-Cs5HfFrd.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-CSv3fKzD.js → connect-source-dialog-C7Q-kV0F.js} +1 -1
- package/dist/client/assets/{connection-DDqO1q4H.js → connection-B7ZHR3E3.js} +1 -1
- package/dist/client/assets/{connection-card-B2AISi2n.js → connection-card-C1SHg1dG.js} +1 -1
- package/dist/client/assets/{connection-detail-CxZZixgF.js → connection-detail-Bc4itFWH.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Y3w8W20E.js → connection-form-helpers-tazbDTDK.js} +1 -1
- package/dist/client/assets/{connection-slug-Sdn-JTB2.js → connection-slug-B5tLzvCi.js} +1 -1
- package/dist/client/assets/{connections-Cak8mY84.js → connections-CSC_xdmG.js} +1 -1
- package/dist/client/assets/{content-changes-C9Vb6hJi.js → content-changes-JBgMg-Ro.js} +1 -1
- package/dist/client/assets/{content-tab-B6dyUrQE.js → content-tab-g282UVdE.js} +3 -3
- package/dist/client/assets/{context-menu-HaIM8tgp.js → context-menu-CUYerrUs.js} +1 -1
- package/dist/client/assets/{context-DFZn6cdt.js → context-qsn0J_YZ.js} +1 -1
- package/dist/client/assets/{context-shell-CBQjivxm.js → context-shell-BLRwg1tV.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-VS8AR8Z_.js → create-organization-dialog-BaKKV-VG.js} +1 -1
- package/dist/client/assets/{daily-pulse-CC4iC325.js → daily-pulse-UxYLZlxs.js} +1 -1
- package/dist/client/assets/{delete-copy-CyWTr2-i.js → delete-copy-DlW6ZUtG.js} +1 -1
- package/dist/client/assets/{device-hint-B3lp0cJx.js → device-hint-0_GHbWqS.js} +1 -1
- package/dist/client/assets/{discover-BtU_YkoX.js → discover-F-3cKQP2.js} +1 -1
- package/dist/client/assets/{domain-settings-bSyZQ9aD.js → domain-settings-CX6QeizD.js} +1 -1
- package/dist/client/assets/{drawer-Crz9l-4U.js → drawer-D_TsrN48.js} +1 -1
- package/dist/client/assets/{editor-Dh0u_vVE.js → editor-DHPR_ozC.js} +1 -1
- package/dist/client/assets/editor-classes-BLd4hHmH.js +1 -0
- package/dist/client/assets/{empty-state-P04ndpoN.js → empty-state-D1phlWfb.js} +1 -1
- package/dist/client/assets/{empty-state-WGRlYhaM.js → empty-state-L2cTHOLC.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-DTUacXcI.js → experiments-tab-choice-BaZ_leSu.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DrEGE84f.js → extract-connection-data-D6-4uHNK.js} +1 -1
- package/dist/client/assets/{feature-gate-a1fFtbnM.js → feature-gate-BSqSDhFD.js} +1 -1
- package/dist/client/assets/{feature-paywall-vMBXIDf6.js → feature-paywall-CzZKQU6l.js} +1 -1
- package/dist/client/assets/{file-explorer-BQ_fjSNc.js → file-explorer-tOnk4J7V.js} +1 -1
- package/dist/client/assets/{file-preview-BDehN0W9.js → file-preview-C7hdL4Yc.js} +1 -1
- package/dist/client/assets/{file-share-button-C20Gsw-_.js → file-share-button-6nZQXE9V.js} +1 -1
- package/dist/client/assets/{file-type-icon-B7lWHf7B.js → file-type-icon-BIdp66kj.js} +1 -1
- package/dist/client/assets/{folder-icon-PWzAHUsx.js → folder-icon-BqHfg1r8.js} +1 -1
- package/dist/client/assets/{form-BkfFMNZc.js → form-W6JWpxT_.js} +1 -1
- package/dist/client/assets/{frame-navigation-Kdl21Hfd.js → frame-navigation-Df_5J1gU.js} +1 -1
- package/dist/client/assets/{gateway-client-Cj4FQJOw.js → gateway-client-ekFKMjOy.js} +1 -1
- package/dist/client/assets/{general-B4cm3pcf.js → general-Fd7CN8PL.js} +1 -1
- package/dist/client/assets/{github-icon-DspshkUP.js → github-icon-DVLt0ntX.js} +1 -1
- package/dist/client/assets/{held-block-view-BZwFWrfK.js → held-block-view-Bdat6dmL.js} +3 -3
- package/dist/client/assets/{home-overview-xTTroSa7.js → home-overview-BwTsNcY7.js} +1 -1
- package/dist/client/assets/{home-pUg5GzTR.js → home-qxlWWins.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-BFN835oz.js → hosted-reconcile-4JQ_9bXq.js} +1 -1
- package/dist/client/assets/{icon-button-Bb0nd3sO.js → icon-button-BKSgoP48.js} +1 -1
- package/dist/client/assets/{index-B-sjFG2T.js → index--W2AMK-X.js} +1 -1
- package/dist/client/assets/{index-Cc0IUGs-.js → index-AtaL2JD_.js} +1 -1
- package/dist/client/assets/{index-CQ_uABeR.js → index-B7lKid3Y.js} +1 -1
- package/dist/client/assets/{index-B-E9B78d.js → index-B8xqh-Zd.js} +1 -1
- package/dist/client/assets/{index-BxAV7FAM.js → index-BJcrWx9T.js} +1 -1
- package/dist/client/assets/{index-7UwjqA26.js → index-BsbFaHMN.js} +1 -1
- package/dist/client/assets/{index-UmJObwb7.js → index-CXT6KZgX.js} +1 -1
- package/dist/client/assets/{index-Bc8w-fWE.js → index-CZ_tLRoL.js} +1 -1
- package/dist/client/assets/{index-CELMEPYa.js → index-ChDgpo9K.js} +1 -1
- package/dist/client/assets/{index-BujNXjcQ.js → index-CjurNK9x.js} +1 -1
- package/dist/client/assets/{index-ZqZk5RgT.js → index-DAFFHpVi.js} +1 -1
- package/dist/client/assets/{index-DhAzuetW.js → index-Dcn6CILj.js} +1 -1
- package/dist/client/assets/{index-Bf6kDBJJ.js → index-DmyPeHtj.js} +3 -3
- package/dist/client/assets/{index-Dr_1WkX0.js → index-WM2yhiyo.js} +1 -1
- package/dist/client/assets/{index-C3wTiNEy.js → index-_reJwud9.js} +1 -1
- package/dist/client/assets/{index-D_pS5ZXh.js → index-gEUrUJcs.js} +1 -1
- package/dist/client/assets/{index-YMvV0kSt.js → index-nmSJ42Ew.js} +1 -1
- package/dist/client/assets/{index-redirect-BfNTYin8.js → index-redirect-DOqgK536.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-d7-nDzuW.js → infiniteQueryObserver-D9fycF8k.js} +1 -1
- package/dist/client/assets/{infra-billing-3COAyZJp.js → infra-billing-DpYvrDKr.js} +1 -1
- package/dist/client/assets/{input-1k9_lG9l.js → input-BqJq_7pW.js} +3 -3
- package/dist/client/assets/{input-CfERqe7P.js → input-wtbnNzNz.js} +1 -1
- package/dist/client/assets/{integration-icon-DS7lm2zI.js → integration-icon-92n5xPlq.js} +1 -1
- package/dist/client/assets/{item-actions-4ZXG0iY2.js → item-actions-xfXl6n2G.js} +1 -1
- package/dist/client/assets/{jira-icon-CRzccyEz.js → jira-icon-BibTQfLJ.js} +1 -1
- package/dist/client/assets/{label-pfJxqM6J.js → label-B61Mm8gW.js} +1 -1
- package/dist/client/assets/{layout-CSw48bym.js → layout-c2hOp6bu.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-CDOlAR4o.js → legacy-admin-welcome-dialog-DPVEA9Z4.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-Dd3WVxqz.js → legacy-agents-deep-CALyvn1U.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-DfUzTqEU.js → legacy-main-redirect-D7u9pyFK.js} +1 -1
- package/dist/client/assets/library-CIc0x0ue.js +1 -0
- package/dist/client/assets/{library-tab-yq1thSq0.js → library-tab-BAUunaiM.js} +1 -1
- package/dist/client/assets/{login-B4LbkEsb.js → login-DjyyzMPN.js} +1 -1
- package/dist/client/assets/{markdown-CPntqjcN.js → markdown-B7FqmO_Q.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-Xh-Trx1u.js → mcp-app-renderer-BsX2Dy6R.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CAO7EHWk.js → mcp-oauth-BZS2Yc1A.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CMwgcXqt.js → mcp-oauth-BxD-kgyz.js} +1 -1
- package/dist/client/assets/{members-DjY6N4ko.js → members-CVRExxW3.js} +1 -1
- package/dist/client/assets/{memory-DmXV7qdS.js → memory-DncfhJaK.js} +1 -1
- package/dist/client/assets/{mock-board-BHaG5n0Y.js → mock-board-CfGWjmM1.js} +3 -3
- package/dist/client/assets/{monaco-editor-DyPQbQ4Z.js → monaco-editor-DVxpBvnd.js} +1 -1
- package/dist/client/assets/{monitoring-BARgKoFH.js → monitoring-Do3w8SMM.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B9ruwHI_.js → monitoring-stats-row-CD-LeMDq.js} +1 -1
- package/dist/client/assets/{multi-select-DrRX5wC0.js → multi-select-DZx7Z4ko.js} +1 -1
- package/dist/client/assets/{mustache-BHZ1gTAg.js → mustache-96ahxbWY.js} +1 -1
- package/dist/client/assets/{named-rule-step-TzfMLCDH.js → named-rule-step-DjZE94ti.js} +1 -1
- package/dist/client/assets/{named-rule-view-BFtQtNgP.js → named-rule-view-vshmzUJE.js} +1 -1
- package/dist/client/assets/{new-project-dialog-c3TMJ5k3.js → new-project-dialog-zI9XmIIv.js} +1 -1
- package/dist/client/assets/{new-project-store-DVbeCA79.js → new-project-store-BL2Sa0gM.js} +1 -1
- package/dist/client/assets/{oauth-callback-CdhNhJbe.js → oauth-callback-BxhTrPGN.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DMYFb0n0.js → oauth-callback-ai-provider-ebziW9F0.js} +1 -1
- package/dist/client/assets/{oauth-consent-By_E40J9.js → oauth-consent-CjunKK42.js} +1 -1
- package/dist/client/assets/{onboarding-B4HOaAjZ.js → onboarding-BJAPGBBw.js} +1 -1
- package/dist/client/assets/{openai-conversation-BQK-gK3W.js → openai-conversation-CBnYYe6I.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-Dm2yJ3l1.js → optimistic-project-sidebar-views-BwCyFNBl.js} +1 -1
- package/dist/client/assets/{order-monitor-day-0TpAsxio.js → order-monitor-day-Bu7sDLhj.js} +1 -1
- package/dist/client/assets/{organization-choice-D41FfPig.js → organization-choice-CtrQA3cq.js} +1 -1
- package/dist/client/assets/{orgs-AqEAYtia.js → orgs-D8itwEwG.js} +1 -1
- package/dist/client/assets/{own-accounts-section-Yzc7sCur.js → own-accounts-section-CPpyw5Ls.js} +1 -1
- package/dist/client/assets/{pair-BUIEjsmP.js → pair-CgeeVvss.js} +1 -1
- package/dist/client/assets/{parse-sections-CUfOLBCD.js → parse-sections-C8e6hmLP.js} +2 -2
- package/dist/client/assets/{plan-ladder-l7IiO8Kx.js → plan-ladder-BuBxtLzi.js} +1 -1
- package/dist/client/assets/{plan-page-BAf6ZJGG.js → plan-page-DEHjjiXo.js} +1 -1
- package/dist/client/assets/plan-rJ9a3K5T.js +1 -0
- package/dist/client/assets/{plan-usage-card-BFW_rzn_.js → plan-usage-card-CrcTrR82.js} +1 -1
- package/dist/client/assets/{popover-DiQ2Bfq9.js → popover-QqVUvEYR.js} +1 -1
- package/dist/client/assets/{post-calendar-CMpgu01_.js → post-calendar-C64qCtHG.js} +1 -1
- package/dist/client/assets/post-editor-C5PQD-my.js +2 -0
- package/dist/client/assets/{preview-content-Bop4crPO.js → preview-content-BQKPmXGv.js} +1 -1
- package/dist/client/assets/{preview-dialog-Dz5sv3HO.js → preview-dialog-GL8egC2B.js} +1 -1
- package/dist/client/assets/{preview-panel-BcPSEvze.js → preview-panel-DDhAmVzk.js} +1 -1
- package/dist/client/assets/{preview-tab-BncJEfTX.js → preview-tab-DrwAiPmj.js} +3 -3
- package/dist/client/assets/{primitives-C1No5xKr.js → primitives-yWcLmNO5.js} +1 -1
- package/dist/client/assets/{product-picker-dialog-BeeTNurR.js → product-picker-dialog-Bw4o2LZ9.js} +1 -1
- package/dist/client/assets/{profile-DF_IclwB.js → profile-D7IIedH9.js} +1 -1
- package/dist/client/assets/{project-app-view-Cc5GSYC7.js → project-app-view-D79GKyQK.js} +1 -1
- package/dist/client/assets/{project-apps-chPl7xeh.js → project-apps-Ddelf6K_.js} +1 -1
- package/dist/client/assets/{project-icon-BTZl10MB.js → project-icon-D-KoSfqD.js} +1 -1
- package/dist/client/assets/{project-index-oqFo2sF5.js → project-index-Di4hbJe7.js} +1 -1
- package/dist/client/assets/project-reports-BaUD1mSs.js +1 -0
- package/dist/client/assets/project-tasks-IY1SmC3r.js +1 -0
- package/dist/client/assets/{projects-BH-6cg67.js → projects-CKVyhU42.js} +1 -1
- package/dist/client/assets/{projects-empty-state-bstUe2Oh.js → projects-empty-state-ChdeQFYg.js} +1 -1
- package/dist/client/assets/{prompts-Ch92cX_3.js → prompts-D00CUxnv.js} +1 -1
- package/dist/client/assets/record-editor-B4kmxAIk.js +1 -0
- package/dist/client/assets/{redirect-editor-CMzb5XC3.js → redirect-editor-BiVMh5eW.js} +1 -1
- package/dist/client/assets/{reports-CTRznMgw.js → reports-Bpi5NgOn.js} +1 -1
- package/dist/client/assets/{reports-onboarding-Bdb4dG_W.js → reports-onboarding-DFl3ByGh.js} +1 -1
- package/dist/client/assets/{reports-tab-Du9Yt97_.js → reports-tab-Cyoilm6-.js} +2 -2
- package/dist/client/assets/reports-wttF6ZoA.js +1 -0
- package/dist/client/assets/repositories-3Kf5jKe3.js +1 -0
- package/dist/client/assets/{repositories-BDO_qkUm.js → repositories-Bvzle7Kd.js} +1 -1
- package/dist/client/assets/{repository-binding-D_JA1fyv.js → repository-binding-BezKpFog.js} +1 -1
- package/dist/client/assets/{repository-picker-DG8GlSV6.js → repository-picker-BcZZvjJw.js} +1 -1
- package/dist/client/assets/{require-capability-CETSpTpX.js → require-capability-1sXrPz2q.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DhFunmdD.js → required-auth-layout-CRS7KXgy.js} +1 -1
- package/dist/client/assets/{reset-password-Boi6YmgH.js → reset-password-DI52CgpP.js} +1 -1
- package/dist/client/assets/{resizable-DMbeVWSR.js → resizable-D3Zb0j0Y.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-C4iSO1U2.js → resolve-tab-icon-lPLw9e6M.js} +1 -1
- package/dist/client/assets/{review-settings-B16U0xsU.js → review-settings-blIIbEvV.js} +1 -1
- package/dist/client/assets/{role-color-BBVkDYqV.js → role-color-DFMoaBh_.js} +1 -1
- package/dist/client/assets/{roles-BLT9AcGQ.js → roles-Cr_zYAvV.js} +1 -1
- package/dist/client/assets/route-CDLTxCaI.js +1 -0
- package/dist/client/assets/{route-DIu-Ml5P.js → route-CQadzTnr.js} +1 -1
- package/dist/client/assets/route-DhuUeSC5.js +1 -0
- package/dist/client/assets/{route-page-header-BFyj_RTT.js → route-page-header-BjKtp3iF.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-B5ivbUKl.js → sandbox-git-api-DZ5qElbf.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-DLB2RKwh.js → sandbox-lifecycle-context-BukF6MQn.js} +1 -1
- package/dist/client/assets/{save-status-CVcpQMiO.js → save-status-DBCJolXB.js} +1 -1
- package/dist/client/assets/{schema-CBR_062O.js → schema-CRoCQYHH.js} +1 -1
- package/dist/client/assets/{schema-CLDlJ9kb.js → schema-D0halWwt.js} +1 -1
- package/dist/client/assets/{scroll-area-DK0MohcT.js → scroll-area-DmKBqmqO.js} +1 -1
- package/dist/client/assets/{search-input-FykCNfIP.js → search-input-KXpX5gme.js} +1 -1
- package/dist/client/assets/{search-toggle-BxdfiTnS.js → search-toggle-BHbQYf5Y.js} +1 -1
- package/dist/client/assets/{secret-picker-CWYxyjvA.js → secret-picker-CMr7uz4L.js} +1 -1
- package/dist/client/assets/{secrets-DcrvsBfJ.js → secrets-CjUGWgQ8.js} +1 -1
- package/dist/client/assets/{section-array-field-B87vkJiM.js → section-array-field-BUwgz_eV.js} +1 -1
- package/dist/client/assets/{sections-DhMIYAGQ.js → sections-BO6dARSn.js} +1 -1
- package/dist/client/assets/{sections-editor-Bfz34qjk.js → sections-editor-DhNLoFOR.js} +1 -1
- package/dist/client/assets/{select-L_avoMHO.js → select-B-VvZR_M.js} +1 -1
- package/dist/client/assets/{select-model-Dass8Y0N.js → select-model-DTnl9BTI.js} +1 -1
- package/dist/client/assets/{seo-editor-Cn-RIL2d.js → seo-editor-D-9omBT1.js} +1 -1
- package/dist/client/assets/{separator-CRKTbl5Q.js → separator-CxWekJLq.js} +1 -1
- package/dist/client/assets/{session-runtime-CKy7akq1.js → session-runtime-CvClIIGY.js} +1 -1
- package/dist/client/assets/settings-tab-CC9OxhsE.js +1 -0
- package/dist/client/assets/{sheet-B9nYEq_U.js → sheet-C4ApGL6L.js} +1 -1
- package/dist/client/assets/{shell-layout-DMaosfWb.js → shell-layout-DJOHh2NE.js} +1 -1
- package/dist/client/assets/{site-draft-actions-Cys_x7K4.js → site-draft-actions-8xVV9dEa.js} +1 -1
- package/dist/client/assets/{site-draft-view-DvI2wxTi.js → site-draft-view-DlKOjkMp.js} +1 -1
- package/dist/client/assets/site-editor-Ct2iJJKm.js +1 -0
- package/dist/client/assets/{site-editor-toast-B_YX3Li5.js → site-editor-toast-DLSJJb2F.js} +1 -1
- package/dist/client/assets/{skills-C_Qmevz6.js → skills-CRsIU-hD.js} +1 -1
- package/dist/client/assets/{slider-L72dzoE5.js → slider-BIv9sKN-.js} +1 -1
- package/dist/client/assets/{sortable.esm-BwLahjrh.js → sortable.esm-C0ThOxD8.js} +1 -1
- package/dist/client/assets/{sso-CVKitu8q.js → sso-Cp0an3Ez.js} +1 -1
- package/dist/client/assets/{suggestion-CmkjlRde.js → suggestion-DIf7hFaH.js} +1 -1
- package/dist/client/assets/{super-agent-icon-BWyA5A4C.js → super-agent-icon-DUpkyxXZ.js} +1 -1
- package/dist/client/assets/{switch-DNr_AVSx.js → switch-CfqVcR-v.js} +1 -1
- package/dist/client/assets/{synced-repos-BarMTSvl.js → synced-repos-JXJEMpC7.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-oIDlFQgD.js → tab-icon-glyph-CgCRg2hv.js} +1 -1
- package/dist/client/assets/{table-B1D7-LXy.js → table-CoF20Hw1.js} +1 -1
- package/dist/client/assets/{tabs-BDMFi5UF.js → tabs-DBKq274Z.js} +1 -1
- package/dist/client/assets/{task-board-EnWJqcQ6.js → task-board-B8wzNBqW.js} +1 -1
- package/dist/client/assets/{task-key-CnOo1you.js → task-key-CpnKPfDS.js} +1 -1
- package/dist/client/assets/{task-route-Cf7-9Vym.js → task-route-CkAEJVQF.js} +1 -1
- package/dist/client/assets/{task-status-sACqRIxF.js → task-status-Cr1qI7Ux.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-DM9B5dxQ.js → taskboard-analytics-BTJCLNi8.js} +1 -1
- package/dist/client/assets/tasks-DR6gaCo6.js +1 -0
- package/dist/client/assets/{tasks-DRE9-wdz.js → tasks-DuGmmJdD.js} +1 -1
- package/dist/client/assets/{textarea-CmzAWBpF.js → textarea-Djiqi_Hb.js} +1 -1
- package/dist/client/assets/{thread-analytics-B8Ikw9hO.js → thread-analytics-61rO8zWs.js} +1 -1
- package/dist/client/assets/{thread-button-BEg5fteo.js → thread-button-DRipdtQl.js} +1 -1
- package/dist/client/assets/{thread-intent-DtKiFyIT.js → thread-intent-1kOP6maa.js} +1 -1
- package/dist/client/assets/{thread-route-CrkLPvpu.js → thread-route-DHFCXB9E.js} +1 -1
- package/dist/client/assets/{thread-route-CAdVyEBE.js → thread-route-QjX15zqF.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-BcrsEEe7.js → thread-sheet-body-sdh7Mf7u.js} +1 -1
- package/dist/client/assets/{time-range-picker-BuQAB93N.js → time-range-picker-B4sRq8E3.js} +1 -1
- package/dist/client/assets/{toggle-group-Bo6-1Pho.js → toggle-group-BMYX_eGL.js} +1 -1
- package/dist/client/assets/{tool-set-selector-D7l1Lya5.js → tool-set-selector-CJazFfoM.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-By_9Ecje.js → toolbar-icon-button-BXZ6Fg9k.js} +1 -1
- package/dist/client/assets/{tooltip-C1ojQQy2.js → tooltip-CnD2gBxQ.js} +1 -1
- package/dist/client/assets/{tooltipContext-Dduhu_Eq.js → tooltipContext-B6Z4ndzl.js} +1 -1
- package/dist/client/assets/{track-CS1GhTy5.js → track-C2t9Ju4W.js} +1 -1
- package/dist/client/assets/{types-Bgvtdl4f.js → types-DxV-fZV6.js} +1 -1
- package/dist/client/assets/{url-slug-j0iJ8lmu.js → url-slug-cwQb0zdO.js} +1 -1
- package/dist/client/assets/{usage-stats-BNxKoicX.js → usage-stats-DX6ERAU7.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DfdZjEtf.js → use-ai-providers-DrvsAXJ7.js} +1 -1
- package/dist/client/assets/{use-api-keys--uy7V227.js → use-api-keys-WR-MHbKG.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-HtmujZdV.js → use-apply-named-rule-DtVcB2Sd.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-CxLSAUNx.js +1 -0
- package/dist/client/assets/{use-automations-C1U-QI4S.js → use-automations-CQGktFHE.js} +1 -1
- package/dist/client/assets/{use-autosave-BSoV0Vu3.js → use-autosave-4o04OWTs.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-DQzOlv_E.js +1 -0
- package/dist/client/assets/use-blog-view-9Y1OwyU5.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-iNK0kVBA.js → use-chat-layout-state-OXPATbvD.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-B42l35BK.js → use-cms-publish-actions-E5PxzXRo.js} +1 -1
- package/dist/client/assets/{use-connect-companion-o54nIr0o.js → use-connect-companion-G1Hi_qLO.js} +1 -1
- package/dist/client/assets/{use-connection-DA9yY-kf.js → use-connection-G9Us7hRV.js} +1 -1
- package/dist/client/assets/{use-content-sync-BLtyy-8h.js → use-content-sync-qLtFKVoY.js} +1 -1
- package/dist/client/assets/{use-copy-BAGO9B0-.js → use-copy-DcPGMlZ-.js} +1 -1
- package/dist/client/assets/{use-current-view-3DHjYKsB.js → use-current-view-DrUxoucV.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-C3KtJm8n.js → use-date-fns-locale-HbSUG1u1.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CfxqDB3e.js → use-debounced-autosave-5uSqKsMY.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DPFKvG0d.js → use-debounced-value-Io5mDbSS.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CmcGxN-5.js → use-deco-credits-CIEhAz6A.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-q9mkqGKJ.js → use-decopilot-events-Be8G8lj7.js} +1 -1
- package/dist/client/assets/{use-delete-block-CqXZMma0.js → use-delete-block-ZSPe1Jt_.js} +1 -1
- package/dist/client/assets/{use-delete-connection-C8JKkAAS.js → use-delete-connection-BqwFhFOC.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-VYoUqG2M.js → use-deployment-admin-BGJ_CxB1.js} +1 -1
- package/dist/client/assets/{use-entitlements-CdiIkksN.js → use-entitlements-BYhZgO5P.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-GLoGn3Z6.js → use-fast-preview-draft-url-C1FIhbN9.js} +1 -1
- package/dist/client/assets/{use-file-configs-DCBweulZ.js → use-file-configs-k_hhBwsx.js} +1 -1
- package/dist/client/assets/{use-id-selection-spkOrFO_.js → use-id-selection-CMFxpgLZ.js} +1 -1
- package/dist/client/assets/{use-in-settings-hxse8Hhp.js → use-in-settings-BhSbV6H8.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-BvbAUSW4.js → use-inbox-feed-B09538_g.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CCGl3sqA.js → use-infinite-scroll-DW5uI5g1.js} +1 -1
- package/dist/client/assets/{use-join-requests-IcecIzLq.js → use-join-requests-DMhspUtS.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DuSvD2uS.js → use-main-panel-tabs-COup8C-z.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CPCNL8Ac.js → use-mcp-auth-status-B1ZXOBZo.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CaNN8ch9.js → use-mcp-client-DfqrKiZY.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DMHyxZup.js → use-mcp-prompts-CxlRUHT-.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Mt5davfv.js → use-mcp-tools-DBXAxSmu.js} +1 -1
- package/dist/client/assets/{use-mobile-DLKgN0MY.js → use-mobile-BGIYUsLQ.js} +1 -1
- package/dist/client/assets/{use-move-blocks-DHYSyls5.js → use-move-blocks-CYHOXTJj.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DLWEuUiS.js → use-navigate-to-agent-stX_hK-R.js} +1 -1
- package/dist/client/assets/{use-never-published-CN7sgOi-.js → use-never-published-CJQoljTh.js} +1 -1
- package/dist/client/assets/{use-org-fs-6An12np_.js → use-org-fs-j9Hf5idr.js} +1 -1
- package/dist/client/assets/{use-org-notice-jTLfFtFj.js → use-org-notice-J6OTcXIJ.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Dx_d7syo.js → use-org-repo-syncs-B3V0YVhZ.js} +1 -1
- package/dist/client/assets/{use-org-sso-S0027md8.js → use-org-sso-B8YBjAU0.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CJl2Ru2g.js → use-organization-settings-DRtlFFBs.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-DrHMPrDd.js → use-panel-navigate-DLijLDIl.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-CTisoJjU.js → use-project-native-view-presence-CflbYfyt.js} +1 -1
- package/dist/client/assets/{use-project-scope-1pDf1lxX.js → use-project-scope-sgJLxDnc.js} +1 -1
- package/dist/client/assets/{use-recent-apps-BmvdNgmu.js → use-recent-apps-C6R-3xzm.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CfmpBGnm.js → use-reports-diagnostic-D7PJJJR-.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-BQnRSUmP.js → use-sandbox-events-D7X3VYGW.js} +1 -1
- package/dist/client/assets/{use-secrets-Dd3GbHCj.js → use-secrets-DGIBDHGx.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BJSGRJ2g.js → use-section-preview-base-DzxwJmmA.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-CRhLpQ__.js → use-sidebar-collapsed-BsHAzi2v.js} +1 -1
- package/dist/client/assets/{use-tags-Dxxj_5Ub.js → use-tags-7fim3G8l.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-CkHboU7M.js → use-task-board-analytics-DR6GAqO0.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-oRUnerL5.js → use-task-board-item-prs-DHpJNypU.js} +1 -1
- package/dist/client/assets/{use-task-board-items-CWHT3OSj.js → use-task-board-items-B1Pzgu76.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-DXhEBOCc.js → use-task-board-prompts-IJgyzOT-.js} +1 -1
- package/dist/client/assets/{use-task-metadata-lzA4V4K2.js → use-task-metadata-BUNn-khG.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-5ljze7lC.js → use-thread-outputs-CtVbBsAG.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-BXhF5iFd.js → use-view-draft-kind-XY0ukhv-.js} +1 -1
- package/dist/client/assets/{use-voice-input-CZGiAdQC.js → use-voice-input-DguZp9dH.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CSIthp54.js +1 -0
- package/dist/client/assets/{useQueries-C9RAahye.js → useQueries-Di5RfWGT.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Z_2IraLh.js +1 -0
- package/dist/client/assets/{users-WjrefE1B.js → users-CCYUTU45.js} +1 -1
- package/dist/client/assets/{utils-Bnx90cnk.js → utils-DgfuCg_0.js} +1 -1
- package/dist/client/assets/{variant-calendar-DRDxaL-U.js → variant-calendar-B4q2_EtP.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CA3obTng.js → variant-matcher-override-B7mJIZfR.js} +1 -1
- package/dist/client/assets/{view-header-CLjdEAb3.js → view-header-CvQldNEQ.js} +1 -1
- package/dist/client/assets/{virtual-mcp-B_qidLcG.js → virtual-mcp-Ci6QcDj7.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CmbIOlgi.js → watch-sse-pool-BbbQrIO0.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +623 -623
- package/package.json +1 -1
- package/dist/client/assets/agent-app-B3cy5nly.js +0 -1
- package/dist/client/assets/agent-deck-D3XNN693.js +0 -1
- package/dist/client/assets/agent-experiments-DpcLPWr2.js +0 -1
- package/dist/client/assets/agent-file-GBVd_BpZ.js +0 -1
- package/dist/client/assets/agent-library-file-BTMFPMBP.js +0 -1
- package/dist/client/assets/agent-library-ygB7LeW-.js +0 -1
- package/dist/client/assets/agent-overview-PHTNUTRE.js +0 -1
- package/dist/client/assets/agent-settings-C4O62TDb.js +0 -1
- package/dist/client/assets/agent-site-editor-code-fVXCtDzo.js +0 -2
- package/dist/client/assets/agent-site-editor-content-JitpGh8g.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-BiD1iCK2.js +0 -1
- package/dist/client/assets/agent-view-B0XfBbbF.js +0 -1
- package/dist/client/assets/api-keys-icNNhRXn.js +0 -1
- package/dist/client/assets/editor-classes-BPv2mnCh.js +0 -1
- package/dist/client/assets/library-CeRFUyM_.js +0 -1
- package/dist/client/assets/plan-DFKUaTp8.js +0 -1
- package/dist/client/assets/post-editor-CSldaVe4.js +0 -2
- package/dist/client/assets/project-reports-DIwpx3MI.js +0 -1
- package/dist/client/assets/project-tasks-D_q2d1d-.js +0 -1
- package/dist/client/assets/record-editor-BBcvA9IQ.js +0 -1
- package/dist/client/assets/reports-By9XMxVb.js +0 -1
- package/dist/client/assets/repositories-Ch2tj1pK.js +0 -1
- package/dist/client/assets/route-BX6pEH1K.js +0 -1
- package/dist/client/assets/route-CpGDEe6n.js +0 -1
- package/dist/client/assets/settings-tab-f8XSA5Mo.js +0 -1
- package/dist/client/assets/site-editor-9BdXqETC.js +0 -1
- package/dist/client/assets/tasks-D0oDCq_D.js +0 -1
- package/dist/client/assets/use-ask-in-chat-CLB4YmKc.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-CK7jomFI.js +0 -1
- package/dist/client/assets/use-blog-view-Ct3qJq8H.js +0 -1
- package/dist/client/assets/useInfiniteQuery-COV1vcmf.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CqJAXxZd.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as _,a6 as X,m as L,j as n,B as Pe,a7 as xs,b as E,a as Te,d as Re,a8 as hs,J as bt,r as ae,t as gt,o as Me,a9 as jt,aa as bs,ab as gs,C as vt,E as fe,ac as St,ad as js,ae as vs,L as Qe,af as yt,$ as oe,ag as re,ah as Ss,ai as Ge,aj as ys,ak as ks,al as Ns,am as _s,q as Je,K as Ee,i as Ye,an as Ze,ao as ws,e as $s,_ as Xe,X as et,ap as tt,Z as st,Y as pe,D as kt,v as Nt,x as _t,w as wt,aq as Cs,ar as Is,as as Ps,I as Ts,y as zs,at as As,au as Fs,av as $t,aw as Os,ax as Ds,ay as Ms,az as Es,aA as Rs,aB as Ls,aC as qs,f as Bs,l as Us,aD as Vs,R as Ks,u as Hs,O as Ws}from"./index-DmyPeHtj.js";import{L as Be}from"./index-CjurNK9x.js";import{u as Qs,L as ke,I as Gs,i as Ct}from"./use-org-notice-J6OTcXIJ.js";import{u as It}from"./use-in-settings-BhSbV6H8.js";import{P as Pt,a as Tt,b as zt}from"./popover-QqVUvEYR.js";import{D as Js,a as Ys,b as Zs}from"./drawer-D_TsrN48.js";import{T as Xs,a as en,b as tn,c as sn}from"./tooltip-CnD2gBxQ.js";import{u as nn}from"./use-mobile-BGIYUsLQ.js";import{i as Ke,a as on,b as ln,c as rn,d as an,e as cn,f as dn,g as At,s as Ft,h as mn,n as Ot,j as un,k as Dt,l as fn,m as pn,o as xn,p as hn,q as Mt,r as bn}from"./agent-icon-DFYKaa0c.js";import{i as Et}from"./Monitor01-BKLXdSAu.js";import{n as gn,a as jn}from"./Sun-TBLvGE97.js";import{a as Rt,i as vn}from"./Tool01-eLaAOwHX.js";import{t as Sn,a as yn,n as kn}from"./UserCheck01-BiEm5Ebz.js";import{S as Ie,a as te,b as we,u as nt,c as it,d as Lt,e as Nn,f as _n}from"./use-sidebar-collapsed-BsHAzi2v.js";import{u as wn}from"./use-deployment-admin-BGJ_CxB1.js";import{u as $n}from"./use-deco-credits-CIEhAz6A.js";import{u as Cn,a as qt}from"./use-entitlements-BYhZgO5P.js";import{u as In,P as Pn}from"./plan-ladder-BuBxtLzi.js";import{u as Tn,a as zn}from"./use-organization-settings-DRtlFFBs.js";import{S as An}from"./scroll-area-DmKBqmqO.js";import{u as Bt}from"./use-inbox-feed-B09538_g.js";import{t as Ut}from"./task-key-CpnKPfDS.js";import{S as Fn}from"./super-agent-icon-DUpkyxXZ.js";import{i as On}from"./UserSquare-DRonBRNm.js";import{B as Dn}from"./badge-By3J5rC3.js";import{i as Vt}from"./ArrowLeft-a7zQohPB.js";import{u as Kt,a as ze}from"./use-project-scope-sgJLxDnc.js";import{u as Ht}from"./optimistic-project-sidebar-views-BwCyFNBl.js";import{s as Mn,u as En,p as Rn,r as Ln,a as qn,o as Bn,P as Un,i as Vn}from"./use-project-native-view-presence-CflbYfyt.js";import{P as Kn}from"./ai-providers-logos-DD3qZ33J.js";import{u as Hn,O as Wn}from"./own-accounts-section-CPpyw5Ls.js";import{i as Wt}from"./LayoutLeft-D6A6HKPj.js";import{T as Qt}from"./toolbar-icon-button-BXZ6Fg9k.js";import{S as Gt}from"./thread-button-DRipdtQl.js";import{u as Qn}from"./thread-route-QjX15zqF.js";import{n as Gn}from"./BookOpen01-Caac9KpE.js";import{a as Jn}from"./Image01-DZ0d0gl4.js";import{P as Yn}from"./project-apps-Ddelf6K_.js";import{u as Zn}from"./use-panel-navigate-DLijLDIl.js";import{a as Xn}from"./agent-capabilities-CkWGD_1I.js";import{k as ei,p as ti}from"./use-recent-apps-C6R-3xzm.js";import{u as Jt}from"./use-navigate-to-agent-stX_hK-R.js";import{r as si}from"./resolve-tab-icon-lPLw9e6M.js";import{T as ni}from"./tab-icon-glyph-CgCRg2hv.js";import{t as Yt}from"./ChevronDown-BDwdJQzR.js";import{s as He}from"./Plus-fnuC_-Ii.js";import{C as ue,a as ii,b as oi,c as li,d as Ue,e as ri,f as ai,g as ci}from"./context-menu-CUYerrUs.js";import{t as di}from"./daily-pulse-UxYLZlxs.js";import{o as Zt}from"./new-project-store-BL2Sa0gM.js";import{P as Xt}from"./project-icon-D-KoSfqD.js";import{E as mi,p as ui,P as fi}from"./watch-sse-pool-BbbQrIO0.js";import{t as pi}from"./use-task-board-items-B1Pzgu76.js";import{b as xi,p as hi}from"./project-index-Di4hbJe7.js";import{C as bi}from"./checkbox-Bg0tGTVi.js";import{I as We}from"./icon-button-BKSgoP48.js";import{S as gi}from"./switch-CfqVcR-v.js";import{t as ji}from"./Globe04-DGpfgXDy.js";import{i as vi}from"./CreditCard01-BD4H9Smc.js";import{i as Si}from"./Key01-CCL-qpBw.js";import{i as yi}from"./Zap-Ch4l-t5Z.js";import{u as ki}from"./use-join-requests-DMhspUtS.js";import{p as Ni,q as _i}from"./question-004-sINsf4GQ.js";import{u as wi}from"./use-decopilot-events-Be8G8lj7.js";import"./sheet-C4ApGL6L.js";import"./sortable.esm-C0ThOxD8.js";import"./XClose-xoNzv1jt.js";import"./create-organization-dialog-BaKKV-VG.js";import"./form-W6JWpxT_.js";import"./label-B61Mm8gW.js";import"./command-DmBlCsxL.js";import"./index-_reJwud9.js";import"./SearchMd-C7M41YQV.js";import"./use-debounced-value-Io5mDbSS.js";import"./feedback-BqoIMOg7.js";import"./textarea-Djiqi_Hb.js";import"./thread-intent-1kOP6maa.js";import"./use-mcp-client-DfqrKiZY.js";import"./auth-xINlnEh8.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./session-runtime-CvClIIGY.js";import"./index-DAFFHpVi.js";import"./AlertCircle-D1Q8X__K.js";import"./ArrowUp-BjMuYXEC.js";import"./ArrowRight-CcdemY_e.js";import"./CheckCircle-BygonUdk.js";import"./ChevronSelectorVertical-BAKnniO6.js";import"./ChevronUp-CoA7d7vl.js";import"./LinkBroken01-DZpjy5h4.js";import"./File02-CNp6lbfd.js";import"./MessageCircle01-Vr9v9ZLf.js";import"./SwitchHorizontal01-D47eRm9A.js";import"./Eye-B8RfELJD.js";import"./Fingerprint04-CYuFFJ8_.js";import"./Minus-Cdvi1RtF.js";import"./Play-KnC-ePg8.js";import"./ShoppingBag01-D27zZ3nR.js";import"./Trash01-C_glH0wy.js";import"./Upload01-VrBKSmfZ.js";import"./Users01-CYW34Us_.js";import"./use-ai-providers-DrvsAXJ7.js";import"./schema-CRoCQYHH.js";import"./task-board-B8wzNBqW.js";import"./index-BdQq_4o_.js";import"./useInfiniteQuery-CSIthp54.js";import"./infiniteQueryObserver-D9fycF8k.js";import"./repository-binding-BezKpFog.js";import"./match-site-slug-config-B47_xZCi.js";import"./use-file-configs-k_hhBwsx.js";import"./use-blog-view-9Y1OwyU5.js";import"./use-blocks-v8-project-DQzOlv_E.js";import"./github-icon-DVLt0ntX.js";import"./use-date-fns-locale-HbSUG1u1.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./use-chat-layout-state-OXPATbvD.js";import"./config-DbV4O0C1.js";function $i(){const t=_.c(19),{org:e}=X(),{data:i}=Qs(e.slug);if(!i)return null;const s=i.severity==="block",o=s?"border-destructive/25 bg-destructive/5 text-destructive":"border-warning/40 bg-warning/10 text-foreground";let l;t[0]!==o?(l=L("flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1 border-b px-4 py-2 text-sm",o),t[0]=o,t[1]=l):l=t[1];const r=s?void 0:"text-warning";let a;t[2]!==r?(a=L("size-4 shrink-0",r),t[2]=r,t[3]=a):a=t[3];let c;t[4]!==a?(c=n.jsx(xs,{className:a}),t[4]=a,t[5]=c):c=t[5];let f;t[6]!==i.title?(f=n.jsx("span",{className:"font-medium",children:i.title}),t[6]=i.title,t[7]=f):f=t[7];let m;t[8]!==i.message?(m=n.jsx("span",{className:"min-w-0 flex-1 text-muted-foreground",children:i.message}),t[8]=i.message,t[9]=m):m=t[9];let d;t[10]!==i.ctaLabel||t[11]!==i.ctaUrl?(d=i.ctaUrl&&i.ctaLabel?n.jsx(Pe,{size:"sm",variant:"outline",asChild:!0,children:n.jsx("a",{href:i.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:i.ctaLabel})}):null,t[10]=i.ctaLabel,t[11]=i.ctaUrl,t[12]=d):d=t[12];let p;return t[13]!==l||t[14]!==c||t[15]!==f||t[16]!==m||t[17]!==d?(p=n.jsxs("div",{role:"alert",className:l,children:[c,f,m,d]}),t[13]=l,t[14]=c,t[15]=f,t[16]=m,t[17]=d,t[18]=p):p=t[18],p}const ct="size-4 shrink-0";function ot(t){const e=_.c(5),{children:i,className:s}=t;let o;e[0]!==s?(o=L("flex w-4 shrink-0 items-center justify-center",s),e[0]=s,e[1]=o):o=e[1];let l;return e[2]!==i||e[3]!==o?(l=n.jsx("span",{className:o,children:i}),e[2]=i,e[3]=o,e[4]=l):l=e[4],l}function Ce(t){const e=_.c(26),{item:i,onClose:s}=t;let o;e[0]!==i.className?(o=L("flex items-center gap-2.5 px-3 py-2 rounded-md text-sm text-left w-full transition-colors text-foreground/80 hover:bg-sidebar-accent hover:text-foreground",i.className),e[0]=i.className,e[1]=o):o=e[1];const l=o;if(i.href){const m=i.external?"_blank":void 0,d=i.external?"noopener noreferrer":void 0;let p;e[2]!==i.icon?(p=n.jsx("span",{className:"shrink-0 text-muted-foreground",children:i.icon}),e[2]=i.icon,e[3]=p):p=e[3];let u;e[4]!==i.label?(u=n.jsx("span",{className:"flex-1",children:i.label}),e[4]=i.label,e[5]=u):u=e[5];let x;return e[6]!==l||e[7]!==i.href||e[8]!==s||e[9]!==m||e[10]!==d||e[11]!==p||e[12]!==u?(x=n.jsxs("a",{href:i.href,target:m,rel:d,className:l,onClick:s,children:[p,u]}),e[6]=l,e[7]=i.href,e[8]=s,e[9]=m,e[10]=d,e[11]=p,e[12]=u,e[13]=x):x=e[13],x}let r;e[14]!==i||e[15]!==s?(r=()=>{i.onClick?.(),s()},e[14]=i,e[15]=s,e[16]=r):r=e[16];let a;e[17]!==i.icon?(a=n.jsx("span",{className:"shrink-0 text-muted-foreground",children:i.icon}),e[17]=i.icon,e[18]=a):a=e[18];let c;e[19]!==i.label?(c=n.jsx("span",{className:"flex-1",children:i.label}),e[19]=i.label,e[20]=c):c=e[20];let f;return e[21]!==l||e[22]!==r||e[23]!==a||e[24]!==c?(f=n.jsxs("button",{type:"button",onClick:r,className:l,children:[a,c]}),e[21]=l,e[22]=r,e[23]=a,e[24]=c,e[25]=f):f=e[25],f}function Ci(){const t=_.c(4),e=E();let i;t[0]!==e?(i=e("common.accountPopover.impersonating"),t[0]=e,t[1]=i):i=t[1];let s;return t[2]!==i?(s=n.jsx("span",{className:"shrink-0 inline-flex items-center rounded-full bg-warning/10 px-2 py-0.5 text-2xs font-medium text-warning",children:i}),t[2]=i,t[3]=s):s=t[3],s}function dt(t){const e=_.c(38),{user:i,userImage:s,isImpersonating:o,isMobile:l}=t,r=E(),a=l?"py-4 border-b border-border":"py-3 mx-1 mt-1";let c;e[0]!==a?(c=L("flex items-center gap-3 px-4",a),e[0]=a,e[1]=c):c=e[1];const f=i?.name??"U";let m;e[2]!==f||e[3]!==s?(m=n.jsx(Me,{url:s,fallback:f,shape:"circle",size:"sm",className:"shrink-0"}),e[2]=f,e[3]=s,e[4]=m):m=e[4];let d;e[5]!==r||e[6]!==i?.name?(d=i?.name??r("common.accountPopover.defaultUserName"),e[5]=r,e[6]=i?.name,e[7]=d):d=e[7];let p;e[8]!==d?(p=n.jsx("p",{className:"text-sm font-medium truncate",children:d}),e[8]=d,e[9]=p):p=e[9];let u;e[10]!==o?(u=o&&n.jsx(Ci,{}),e[10]=o,e[11]=u):u=e[11];let x;e[12]!==p||e[13]!==u?(x=n.jsxs("div",{className:"flex items-center gap-2",children:[p,u]}),e[12]=p,e[13]=u,e[14]=x):x=e[14];const h=i?.email;let b;e[15]!==h?(b=n.jsx("p",{className:"text-xs text-muted-foreground truncate",children:h}),e[15]=h,e[16]=b):b=e[16];let g;e[17]!==b||e[18]!==x?(g=n.jsxs("div",{className:"flex-1 min-w-0",children:[x,b]}),e[17]=b,e[18]=x,e[19]=g):g=e[19];let y;e[20]!==r||e[21]!==i?(y=()=>{i?.id&&navigator.clipboard.writeText(i.id).then(()=>{gt.success(r("common.accountPopover.userIdCopied"))})},e[20]=r,e[21]=i,e[22]=y):y=e[22];let j;e[23]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx(cn,{size:14}),e[23]=j):j=e[23];let v;e[24]!==y?(v=n.jsx(Xs,{asChild:!0,children:n.jsx("button",{type:"button",tabIndex:-1,onClick:y,className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:j})}),e[24]=y,e[25]=v):v=e[25];let S;e[26]!==r?(S=r("common.accountPopover.copyUserId"),e[26]=r,e[27]=S):S=e[27];let k;e[28]!==S?(k=n.jsx(en,{side:"right",children:n.jsx("p",{className:"text-xs",children:S})}),e[28]=S,e[29]=k):k=e[29];let w;e[30]!==v||e[31]!==k?(w=n.jsx(tn,{delayDuration:300,children:n.jsxs(sn,{children:[v,k]})}),e[30]=v,e[31]=k,e[32]=w):w=e[32];let $;return e[33]!==g||e[34]!==w||e[35]!==c||e[36]!==m?($=n.jsxs("div",{className:c,children:[m,g,w]}),e[33]=g,e[34]=w,e[35]=c,e[36]=m,e[37]=$):$=e[37],$}function mt(t){const e=_.c(35),{themeOptions:i,preferences:s,setPreferences:o,isMobile:l}=t,r=E(),a=l?"size-8":"size-7",c=l?"px-3 py-3":"px-2 py-1.5";let f;e[0]!==c?(f=L("flex items-center justify-between border-t border-border/50",c),e[0]=c,e[1]=f):f=e[1];let m;if(e[2]!==a||e[3]!==s.theme||e[4]!==o||e[5]!==i){let S;e[7]!==a||e[8]!==s.theme||e[9]!==o?(S=k=>{const{value:w,icon:$,label:N}=k;return n.jsx("button",{type:"button","aria-label":N,onClick:()=>o(C=>({...C,theme:w})),className:L(a,"rounded-lg flex items-center justify-center transition-colors",s.theme===w?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent hover:text-foreground"),children:$},w)},e[7]=a,e[8]=s.theme,e[9]=o,e[10]=S):S=e[10],m=i.map(S),e[2]=a,e[3]=s.theme,e[4]=o,e[5]=i,e[6]=m}else m=e[6];let d;e[11]!==m?(d=n.jsx("div",{className:"flex items-center gap-0.5",children:m}),e[11]=m,e[12]=d):d=e[12];let p;e[13]!==s.enableSounds||e[14]!==r?(p=s.enableSounds?r("common.accountPopover.disableSounds"):r("common.accountPopover.enableSounds"),e[13]=s.enableSounds,e[14]=r,e[15]=p):p=e[15];let u;e[16]!==o?(u=()=>o(Ii),e[16]=o,e[17]=u):u=e[17];const x=s.enableSounds?"text-foreground hover:bg-sidebar-accent":"text-muted-foreground hover:bg-sidebar-accent hover:text-foreground";let h;e[18]!==a||e[19]!==x?(h=L(a,"rounded-lg flex items-center justify-center transition-colors",x),e[18]=a,e[19]=x,e[20]=h):h=e[20];let b;e[21]!==s.enableSounds?(b=s.enableSounds?n.jsx(rn,{size:14}):n.jsx(an,{size:14}),e[21]=s.enableSounds,e[22]=b):b=e[22];let g;e[23]!==p||e[24]!==u||e[25]!==h||e[26]!==b?(g=n.jsx("button",{type:"button","aria-label":p,onClick:u,className:h,children:b}),e[23]=p,e[24]=u,e[25]=h,e[26]=b,e[27]=g):g=e[27];let y;e[28]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","4.619.10"]}),e[28]=y):y=e[28];let j;e[29]!==g?(j=n.jsxs("div",{className:"flex items-center gap-2",children:[g,y]}),e[29]=g,e[30]=j):j=e[30];let v;return e[31]!==j||e[32]!==f||e[33]!==d?(v=n.jsxs("div",{className:f,children:[d,j]}),e[31]=j,e[32]=f,e[33]=d,e[34]=v):v=e[34],v}function Ii(t){return{...t,enableSounds:!t.enableSounds}}function ut(t){const e=_.c(54),{user:i,userImage:s,menuItems:o,signOutItem:l,stopImpersonatingItem:r,isImpersonating:a,themeOptions:c,preferences:f,setPreferences:m,close:d,isMobile:p}=t;if(p){let v;e[0]!==a||e[1]!==i||e[2]!==s?(v=n.jsx(dt,{user:i,userImage:s,isImpersonating:a,isMobile:!0}),e[0]=a,e[1]=i,e[2]=s,e[3]=v):v=e[3];let S;if(e[4]!==d||e[5]!==o){let I;e[7]!==d?(I=A=>n.jsx(Ce,{item:A,onClose:d},A.key),e[7]=d,e[8]=I):I=e[8],S=o.map(I),e[4]=d,e[5]=o,e[6]=S}else S=e[6];let k;e[9]!==d||e[10]!==r?(k=r&&n.jsx(Ce,{item:r,onClose:d}),e[9]=d,e[10]=r,e[11]=k):k=e[11];let w;e[12]!==d||e[13]!==l?(w=n.jsx(Ce,{item:l,onClose:d}),e[12]=d,e[13]=l,e[14]=w):w=e[14];let $;e[15]!==S||e[16]!==k||e[17]!==w?($=n.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:n.jsxs("nav",{className:"flex flex-col px-2 pt-2 pb-2 gap-0.5",children:[S,k,w]})}),e[15]=S,e[16]=k,e[17]=w,e[18]=$):$=e[18];let N;e[19]!==f||e[20]!==m||e[21]!==c?(N=n.jsx(mt,{themeOptions:c,preferences:f,setPreferences:m,isMobile:!0}),e[19]=f,e[20]=m,e[21]=c,e[22]=N):N=e[22];let C;return e[23]!==v||e[24]!==$||e[25]!==N?(C=n.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[v,$,N]}),e[23]=v,e[24]=$,e[25]=N,e[26]=C):C=e[26],C}let u;e[27]!==a||e[28]!==i||e[29]!==s?(u=n.jsx(dt,{user:i,userImage:s,isImpersonating:a,isMobile:!1}),e[27]=a,e[28]=i,e[29]=s,e[30]=u):u=e[30];let x;if(e[31]!==d||e[32]!==o){let v;e[34]!==d?(v=S=>n.jsx(Ce,{item:S,onClose:d},S.key),e[34]=d,e[35]=v):v=e[35],x=o.map(v),e[31]=d,e[32]=o,e[33]=x}else x=e[33];let h;e[36]!==d||e[37]!==r?(h=r&&n.jsx(Ce,{item:r,onClose:d}),e[36]=d,e[37]=r,e[38]=h):h=e[38];let b;e[39]!==d||e[40]!==l?(b=n.jsx(Ce,{item:l,onClose:d}),e[39]=d,e[40]=l,e[41]=b):b=e[41];let g;e[42]!==x||e[43]!==h||e[44]!==b?(g=n.jsxs("nav",{className:"flex-1 flex flex-col px-2 pt-1 overflow-y-auto",children:[x,h,b]}),e[42]=x,e[43]=h,e[44]=b,e[45]=g):g=e[45];let y;e[46]!==f||e[47]!==m||e[48]!==c?(y=n.jsx(mt,{themeOptions:c,preferences:f,setPreferences:m,isMobile:!1}),e[46]=f,e[47]=m,e[48]=c,e[49]=y):y=e[49];let j;return e[50]!==u||e[51]!==g||e[52]!==y?(j=n.jsx("div",{className:"flex w-full flex-col overflow-hidden",children:n.jsxs("div",{className:"flex flex-col",children:[u,g,y]})}),e[50]=u,e[51]=g,e[52]=y,e[53]=j):j=e[53],j}function es(){const t=_.c(98),e=E(),{data:i}=Te.useSession(),{org:s}=X(),o=Re();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/shell/$org",shouldThrow:!1},t[0]=l):l=t[0];const a=hs(l)?.params.org,[c,f]=bt(),m=nn(),{isAdmin:d}=wn(),[p,u]=ae.useState(!1),x=i?.user,h=x?.image,b=!!i?.session?.impersonatedBy;let g;t[1]===Symbol.for("react.memo_cache_sentinel")?(g=()=>u(!1),t[1]=g):g=t[1];const y=g;let j;t[2]!==e?(j=e("common.accountPopover.preferences"),t[2]=e,t[3]=j):j=t[3];let v;t[4]===Symbol.for("react.memo_cache_sentinel")?(v=n.jsx(Rt,{size:16}),t[4]=v):v=t[4];let S;t[5]!==o||t[6]!==a?(S=()=>{o({to:"/$org/settings/profile",params:{org:a??""}})},t[5]=o,t[6]=a,t[7]=S):S=t[7];let k;t[8]!==j||t[9]!==S?(k={key:"preferences",label:j,icon:v,onClick:S},t[8]=j,t[9]=S,t[10]=k):k=t[10];let w;t[11]!==s||t[12]!==o?(w=s?[{key:"connect-clients",label:"Connect to Agents",icon:n.jsx(jt,{size:16}),onClick:()=>{o({to:"/$org/settings/connect",params:{org:s.slug}})}}]:[],t[11]=s,t[12]=o,t[13]=w):w=t[13];let $;t[14]!==e?($=e("common.accountPopover.termsOfUse"),t[14]=e,t[15]=$):$=t[15];let N;t[16]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx(on,{size:16}),t[16]=N):N=t[16];let C;t[17]!==$?(C={key:"terms",label:$,icon:N,href:"https://www.decocms.com/terms-of-use",external:!0},t[17]=$,t[18]=C):C=t[18];let I;t[19]!==e?(I=e("common.accountPopover.privacyPolicy"),t[19]=e,t[20]=I):I=t[20];let A;t[21]===Symbol.for("react.memo_cache_sentinel")?(A=n.jsx(bs,{size:16}),t[21]=A):A=t[21];let q;t[22]!==I?(q={key:"privacy",label:I,icon:A,href:"https://www.decocms.com/privacy-policy",external:!0},t[22]=I,t[23]=q):q=t[23];let B;t[24]!==e?(B=e("common.accountPopover.repository"),t[24]=e,t[25]=B):B=t[25];let J;t[26]===Symbol.for("react.memo_cache_sentinel")?(J=n.jsx(gs,{className:"w-4 h-4"}),t[26]=J):J=t[26];let G;t[27]!==B?(G={key:"github",label:B,icon:J,href:"https://github.com/decocms/studio",external:!0},t[27]=B,t[28]=G):G=t[28];let V;t[29]!==e?(V=e("common.accountPopover.community"),t[29]=e,t[30]=V):V=t[30];let ee;t[31]===Symbol.for("react.memo_cache_sentinel")?(ee=n.jsx(vt,{size:16}),t[31]=ee):ee=t[31];let W;t[32]!==V?(W={key:"community",label:V,icon:ee,href:"https://decocms.com/discord",external:!0},t[32]=V,t[33]=W):W=t[33];let K;t[34]!==e?(K=e("common.accountPopover.homepage"),t[34]=e,t[35]=K):K=t[35];let Y;t[36]===Symbol.for("react.memo_cache_sentinel")?(Y=n.jsx(ln,{size:16}),t[36]=Y):Y=t[36];let U;t[37]!==K?(U={key:"homepage",label:K,icon:Y,href:"https://decocms.com",external:!0},t[37]=K,t[38]=U):U=t[38];let Q;t[39]!==d||t[40]!==o||t[41]!==e?(Q=d?[{key:"admin-dashboard",label:e("common.accountPopover.adminDashboard"),icon:n.jsx(Sn,{size:16}),onClick:()=>o({to:"/_admin"}),className:"text-warning"}]:[],t[39]=d,t[40]=o,t[41]=e,t[42]=Q):Q=t[42];let Z;t[43]!==q||t[44]!==G||t[45]!==W||t[46]!==U||t[47]!==Q||t[48]!==k||t[49]!==w||t[50]!==C?(Z=[k,...w,C,q,G,W,U,...Q],t[43]=q,t[44]=G,t[45]=W,t[46]=U,t[47]=Q,t[48]=k,t[49]=w,t[50]=C,t[51]=Z):Z=t[51];const z=Z;let R;t[52]!==e?(R=e("common.accountPopover.signOut"),t[52]=e,t[53]=R):R=t[53];let P;t[54]===Symbol.for("react.memo_cache_sentinel")?(P=n.jsx(Ke,{size:16}),t[54]=P):P=t[54];let O;t[55]!==R?(O={key:"logout",label:R,icon:P,onClick:Ti},t[55]=R,t[56]=O):O=t[56];const D=O;let H;t[57]!==b||t[58]!==e?(H=b?{key:"stop-impersonating",label:e("common.accountPopover.stopImpersonation"),icon:n.jsx(Ke,{size:16}),onClick:async()=>{const{error:_e}=await Te.admin.stopImpersonating();if(_e){gt.error(_e.message||e("common.accountPopover.failedToStopImpersonation"));return}window.location.href="/"},className:"text-warning"}:null,t[57]=b,t[58]=e,t[59]=H):H=t[59];const Se=H;let ce;t[60]===Symbol.for("react.memo_cache_sentinel")?(ce=n.jsx(gn,{size:14}),t[60]=ce):ce=t[60];let se;t[61]!==e?(se=e("common.accountPopover.lightTheme"),t[61]=e,t[62]=se):se=t[62];let ne;t[63]!==se?(ne={value:"light",icon:ce,label:se},t[63]=se,t[64]=ne):ne=t[64];let xe;t[65]===Symbol.for("react.memo_cache_sentinel")?(xe=n.jsx(jn,{size:14}),t[65]=xe):xe=t[65];let M;t[66]!==e?(M=e("common.accountPopover.darkTheme"),t[66]=e,t[67]=M):M=t[67];let ie;t[68]!==M?(ie={value:"dark",icon:xe,label:M},t[68]=M,t[69]=ie):ie=t[69];let he;t[70]===Symbol.for("react.memo_cache_sentinel")?(he=n.jsx(Et,{size:14}),t[70]=he):he=t[70];let de;t[71]!==e?(de=e("common.accountPopover.systemTheme"),t[71]=e,t[72]=de):de=t[72];let me;t[73]!==de?(me={value:"system",icon:he,label:de},t[73]=de,t[74]=me):me=t[74];let be;t[75]!==ne||t[76]!==ie||t[77]!==me?(be=[ne,ie,me],t[75]=ne,t[76]=ie,t[77]=me,t[78]=be):be=t[78];const ye=be;let ge;t[79]!==b||t[80]!==m||t[81]!==z||t[82]!==c||t[83]!==f||t[84]!==D||t[85]!==Se||t[86]!==ye||t[87]!==x||t[88]!==h?(ge={user:x,userImage:h,menuItems:z,signOutItem:D,stopImpersonatingItem:Se,isImpersonating:b,themeOptions:ye,preferences:c,setPreferences:f,close:y,isMobile:m},t[79]=b,t[80]=m,t[81]=z,t[82]=c,t[83]=f,t[84]=D,t[85]=Se,t[86]=ye,t[87]=x,t[88]=h,t[89]=ge):ge=t[89];const je=ge;let ve;return t[90]!==b||t[91]!==m||t[92]!==p||t[93]!==je||t[94]!==e||t[95]!==x?.name||t[96]!==h?(ve=m?n.jsxs(Js,{open:p,onOpenChange:u,direction:"bottom",children:[n.jsxs("button",{type:"button",onClick:()=>u(!0),className:L("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",b&&"border-2 border-dashed border-warning"),children:[n.jsx(Me,{url:h,fallback:x?.name??"U",shape:"circle",size:"2xs",className:"shrink-0"}),n.jsx("span",{className:"truncate",children:x?.name??e("common.accountPopover.defaultAccountLabel")})]}),n.jsxs(Ys,{className:"h-[80dvh] p-0",children:[n.jsx(Zs,{className:"sr-only",children:e("common.accountPopover.account")}),n.jsx(ut,{...je})]})]}):n.jsxs(Pt,{open:p,onOpenChange:u,children:[n.jsx(Tt,{asChild:!0,children:n.jsxs(Ie,{"data-tour":ke.account,tooltip:x?.name??e("common.accountPopover.defaultAccountLabel"),className:L(b&&"border-2 border-dashed border-warning"),children:[n.jsx(ot,{children:n.jsx(Me,{url:h,fallback:x?.name??"U",shape:"circle",size:"2xs",className:"size-[18px] shrink-0"})}),n.jsx("span",{className:"truncate",children:x?.name??e("common.accountPopover.defaultAccountLabel")})]})}),n.jsx(zt,{side:"right",align:"end",sideOffset:18,collisionPadding:16,className:"w-[280px] p-0 flex flex-col max-h-[520px]",onCloseAutoFocus:Pi,children:n.jsx(ut,{...je})})]}),t[90]=b,t[91]=m,t[92]=p,t[93]=je,t[94]=e,t[95]=x?.name,t[96]=h,t[97]=ve):ve=t[97],ve}function Pi(t){return t.preventDefault()}function Ti(){fe("signed_out",{source:"account_popover"}),St(),Te.signOut()}class zi extends ae.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,i){}render(){return this.state.hasError?null:this.props.children}}function Ai(t){return t<=1?"text-destructive":t<=5?"text-warning":"text-foreground/70"}function Fi(){const t=_.c(17),e=Re(),{org:i}=X(),{hasDecoKey:s,balanceDollars:o}=$n();if(!s)return null;let l;t[0]!==o?(l=o!=null?`Credits: $${o.toFixed(2)}`:"Credits",t[0]=o,t[1]=l):l=t[1];let r;t[2]!==o?(r=L(o!=null&&Ai(o)),t[2]=o,t[3]=r):r=t[3];let a;t[4]!==e||t[5]!==i.slug?(a=()=>e({to:"/$org/settings/ai-providers",params:{org:i.slug}}),t[4]=e,t[5]=i.slug,t[6]=a):a=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(dn,{}),t[7]=c):c=t[7];let f;t[8]!==o?(f=o!=null?`$${o.toFixed(2)}`:"Credits",t[8]=o,t[9]=f):f=t[9];let m;t[10]!==f?(m=n.jsx("span",{children:f}),t[10]=f,t[11]=m):m=t[11];let d;return t[12]!==l||t[13]!==r||t[14]!==a||t[15]!==m?(d=n.jsx(te,{children:n.jsx(we,{children:n.jsxs(Ie,{tooltip:l,className:r,onClick:a,children:[c,m]})})}),t[12]=l,t[13]=r,t[14]=a,t[15]=m,t[16]=d):d=t[16],d}const Oi={ok:"bg-brand-purple",warn:"bg-warning",exhausted:"bg-destructive"};function Di(){const t=_.c(32),e=E(),i=Re(),{org:s}=X(),{data:o}=qt();if(!o?.usage||!o.features.chat)return null;let l,r;if(t[0]!==o.usage.percent?(l=Math.round(o.usage.percent*100),r=Number.isFinite(l),t[0]=o.usage.percent,t[1]=l,t[2]=r):(l=t[1],r=t[2]),!r)return null;const a=Math.min(100,Math.max(0,l)),c=o.plan.name;let f;t[3]!==e?(f=e("settings.planUsage.aiUsage"),t[3]=e,t[4]=f):f=t[4];const m=`${c} · ${f} ${a}%`;let d;t[5]!==i||t[6]!==s.slug?(d=()=>i({to:"/$org/settings/ai-providers",params:{org:s.slug}}),t[5]=i,t[6]=s.slug,t[7]=d):d=t[7];let p;t[8]!==o.plan.id?(p=n.jsx(ot,{className:"-ml-px",children:n.jsx(Mi,{planId:o.plan.id})}),t[8]=o.plan.id,t[9]=p):p=t[9];let u;t[10]!==o.plan.name?(u=n.jsx("span",{className:"truncate font-medium",children:o.plan.name}),t[10]=o.plan.name,t[11]=u):u=t[11];let x;t[12]!==a?(x=n.jsxs("span",{className:"tabular-nums text-xs text-muted-foreground",children:[a,"%"]}),t[12]=a,t[13]=x):x=t[13];let h;t[14]!==u||t[15]!==x?(h=n.jsxs("span",{className:"flex items-baseline justify-between gap-2",children:[u,x]}),t[14]=u,t[15]=x,t[16]=h):h=t[16];const b=Oi[o.usage.state];let g;t[17]!==b?(g=L("block h-full rounded-full",b),t[17]=b,t[18]=g):g=t[18];const y=`${a}%`;let j;t[19]!==y?(j={width:y},t[19]=y,t[20]=j):j=t[20];let v;t[21]!==g||t[22]!==j?(v=n.jsx("span",{className:"block h-1 overflow-hidden rounded-full bg-muted",children:n.jsx("span",{className:g,style:j})}),t[21]=g,t[22]=j,t[23]=v):v=t[23];let S;t[24]!==v||t[25]!==h?(S=n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[h,v]}),t[24]=v,t[25]=h,t[26]=S):S=t[26];let k;return t[27]!==S||t[28]!==m||t[29]!==d||t[30]!==p?(k=n.jsx(te,{children:n.jsx(we,{children:n.jsxs(Ie,{tooltip:m,className:"h-auto! rounded-lg border border-border bg-card px-2 py-2 [&_svg]:opacity-100!",onClick:d,children:[p,S]})})}),t[27]=S,t[28]=m,t[29]=d,t[30]=p,t[31]=k):k=t[31],k}function Mi(t){const e=_.c(6),{planId:i}=t,{data:s}=In();let o;e[0]!==i||e[1]!==s?(o=s?.findIndex(a=>a.id===i)??-1,e[0]=i,e[1]=s,e[2]=o):o=e[2];const l=o;if(l<0){let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(At,{className:ct}),e[3]=a):a=e[3],a}let r;return e[4]!==l?(r=n.jsx(Pn,{index:l,className:ct}),e[4]=l,e[5]=r):r=e[5],r}function Ei(){return Cn()?n.jsx(Di,{}):n.jsx(Fi,{})}function Ri(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(zi,{children:n.jsx(ae.Suspense,{fallback:null,children:n.jsx(Ei,{})})}),t[0]=e):e=t[0],e}function Li(t){switch(t){case"mentioned":case"review_requested":return"font-medium text-foreground";case"merge_failed":case"review_changes_requested":case"order_incident":return"font-medium text-destructive";case"review_approved":return"font-medium text-success";default:return""}}function qi(t,e){switch(t.action){case"commented":return e("sidebar.inbox.actionCommented");case"mentioned":return e("sidebar.inbox.actionMentioned");case"created":return e("sidebar.inbox.actionCreated");case"status_changed":return e("sidebar.inbox.actionStatusChanged");case"assignee_changed":return e("sidebar.inbox.actionAssigneeChanged");case"review_requested":return e("sidebar.inbox.actionReviewRequested");case"review_approved":return e("sidebar.inbox.actionReviewApproved");case"review_changes_requested":return e("sidebar.inbox.actionReviewChangesRequested");case"merge_failed":return e("sidebar.inbox.actionMergeFailed");case"order_incident":return e("sidebar.inbox.actionOrderIncident");default:{const i=t.action;return String(i)}}}function Bi(t){const e=_.c(36),{update:i,orgSlug:s,onSelect:o}=t,l=E();let r;e[0]!==s||e[1]!==i.taskKeySeq?(r=Ut(s,i.taskKeySeq),e[0]=s,e[1]=i.taskKeySeq,e[2]=r):r=e[2];const a=r,c=!i.actorName;let f;e[3]!==c||e[4]!==i.actorImage||e[5]!==i.actorName?(f=n.jsx("span",{className:"mt-0.5 shrink-0",children:c?n.jsx(Fn,{size:24}):n.jsx(Me,{url:i.actorImage??void 0,fallback:i.actorName??"?",shape:"circle",size:"xs"})}),e[3]=c,e[4]=i.actorImage,e[5]=i.actorName,e[6]=f):f=e[6];let m;e[7]!==i.taskTitle?(m=n.jsx("p",{className:"min-w-0 flex-1 line-clamp-2 break-words text-sm font-medium text-foreground",children:i.taskTitle}),e[7]=i.taskTitle,e[8]=m):m=e[8];let d;e[9]!==i.occurredAt?(d=js(new Date(i.occurredAt)),e[9]=i.occurredAt,e[10]=d):d=e[10];let p;e[11]!==d?(p=n.jsx("span",{className:"shrink-0 text-xs text-muted-foreground/70",children:d}),e[11]=d,e[12]=p):p=e[12];let u;e[13]!==m||e[14]!==p?(u=n.jsxs("div",{className:"flex items-baseline gap-2",children:[m,p]}),e[13]=m,e[14]=p,e[15]=u):u=e[15];let x;e[16]!==a?(x=a&&n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"font-medium",children:a})," · "]}),e[16]=a,e[17]=x):x=e[17];let h;e[18]!==i.action?(h=L(Li(i.action)),e[18]=i.action,e[19]=h):h=e[19];let b;e[20]!==l||e[21]!==i?(b=qi(i,l),e[20]=l,e[21]=i,e[22]=b):b=e[22];let g;e[23]!==h||e[24]!==b?(g=n.jsx("span",{className:h,children:b}),e[23]=h,e[24]=b,e[25]=g):g=e[25];let y;e[26]!==g||e[27]!==x?(y=n.jsxs("p",{className:"mt-0.5 truncate text-xs text-muted-foreground",children:[x,g]}),e[26]=g,e[27]=x,e[28]=y):y=e[28];let j;e[29]!==y||e[30]!==u?(j=n.jsxs("div",{className:"min-w-0 flex-1",children:[u,y]}),e[29]=y,e[30]=u,e[31]=j):j=e[31];let v;return e[32]!==o||e[33]!==j||e[34]!==f?(v=n.jsxs("button",{type:"button",onClick:o,className:"flex w-full items-start gap-3 border-b border-border px-4 py-3 text-left transition-colors last:border-0 hover:bg-accent",children:[f,j]}),e[32]=o,e[33]=j,e[34]=f,e[35]=v):v=e[35],v}function ts(){const t=ae.useContext(vs),{data:e,refetch:i}=t.hooks.useListUserInvitations();return{invitations:(e??[]).filter(o=>o.status==="pending"&&new Date(o.expiresAt)>new Date),refetch:()=>i?.()}}function Ui(t){const e=_.c(2),{onReach:i}=t;let s;return e[0]!==i?(s=n.jsx("div",{className:"h-8 shrink-0",ref:o=>{if(!o)return;const l=new IntersectionObserver(r=>{r.some(Vi)&&i()});return l.observe(o),()=>l.disconnect()}}),e[0]=i,e[1]=s):s=e[1],s}function Vi(t){return t.isIntersecting}function Ki(t){const e=_.c(28),{onClose:i}=t,s=E(),o=Re(),{org:l}=X(),{updates:r,markAllRead:a,markRead:c,hasMore:f,fetchMore:m}=Bt(),d=ts(),p=d.invitations,u=d.refetch;let x;e[0]!==s?(x=s("sidebar.inbox.title"),e[0]=s,e[1]=x):x=e[1];let h;e[2]!==x?(h=n.jsx("h3",{className:"text-sm font-medium",children:x}),e[2]=x,e[3]=h):h=e[3];let b;e[4]!==a||e[5]!==s||e[6]!==r.length?(b=r.length>0&&n.jsx(Pe,{size:"sm",variant:"ghost",className:"text-muted-foreground",onClick:a,children:s("sidebar.inbox.markAllRead")}),e[4]=a,e[5]=s,e[6]=r.length,e[7]=b):b=e[7];let g;e[8]!==h||e[9]!==b?(g=n.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-2 border-b border-border px-4 py-3",children:[h,b]}),e[8]=h,e[9]=b,e[10]=g):g=e[10];let y;e[11]!==p||e[12]!==u?(y=p.length>0&&n.jsx("div",{className:"shrink-0 border-border border-b p-2",children:p.map(S=>n.jsx(Gs,{invitation:S,onChanged:u},S.id))}),e[11]=p,e[12]=u,e[13]=y):y=e[13];let j;e[14]!==m||e[15]!==f||e[16]!==p.length||e[17]!==c||e[18]!==o||e[19]!==i||e[20]!==l||e[21]!==s||e[22]!==r?(j=r.length===0&&p.length===0?n.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 py-10 text-center",children:[n.jsx(Ft,{size:24,className:"text-muted-foreground/50"}),n.jsx("p",{className:"text-sm font-medium text-foreground",children:s("sidebar.inbox.emptyTitle")}),n.jsx("p",{className:"text-xs text-muted-foreground",children:s("sidebar.inbox.emptyBody")})]}):n.jsxs(An,{className:"min-h-0 flex-1",children:[r.map(S=>{const k=Ut(l.slug,S.taskKeySeq);return n.jsx(Bi,{update:S,orgSlug:l.slug,onSelect:()=>{c(S.id),i(),k&&o({to:"/$org/tasks/{-$taskKey}",params:{org:l.slug,taskKey:k}})}},S.id)}),f&&n.jsx(Ui,{onReach:m})]}),e[14]=m,e[15]=f,e[16]=p.length,e[17]=c,e[18]=o,e[19]=i,e[20]=l,e[21]=s,e[22]=r,e[23]=j):j=e[23];let v;return e[24]!==g||e[25]!==y||e[26]!==j?(v=n.jsxs(n.Fragment,{children:[g,y,j]}),e[24]=g,e[25]=y,e[26]=j,e[27]=v):v=e[27],v}function Hi(){const t=_.c(1),{redDotCount:e}=Bt(),{invitations:i}=ts();if(e===0&&i.length===0)return null;let s;return t[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx("span",{className:"pointer-events-none absolute top-1 right-1 size-2 rounded-full bg-destructive"}),t[0]=s):s=t[0],s}function Wi(t){const e=_.c(10),{open:i,onOpenChange:s,children:o}=t;let l;e[0]!==s||e[1]!==i?(l=i&&n.jsx(Ki,{onClose:()=>s(!1)}),e[0]=s,e[1]=i,e[2]=l):l=e[2];let r;e[3]!==l?(r=n.jsx(zt,{side:"right",align:"end",sideOffset:12,collisionPadding:16,className:"flex max-h-[min(650px,calc(100dvh-4rem))] w-[min(460px,calc(100vw-2rem))] flex-col p-0",children:l}),e[3]=l,e[4]=r):r=e[4];let a;return e[5]!==o||e[6]!==s||e[7]!==i||e[8]!==r?(a=n.jsxs(Pt,{open:i,onOpenChange:s,children:[o,r]}),e[5]=o,e[6]=s,e[7]=i,e[8]=r,e[9]=a):a=e[9],a}function ss(){const t=_.c(9),e=E(),[i,s]=ae.useState(!1);let o;t[0]!==e?(o=e("sidebar.inbox.title"),t[0]=e,t[1]=o):o=t[1];let l,r;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(Ft,{size:15}),r=n.jsx(Hi,{}),t[2]=l,t[3]=r):(l=t[2],r=t[3]);let a;t[4]!==o?(a=n.jsx(Tt,{asChild:!0,children:n.jsxs("button",{type:"button","aria-label":o,className:"relative flex size-7 shrink-0 items-center justify-center rounded-lg text-sidebar-foreground/60 transition-colors hover:bg-sidebar-accent hover:text-sidebar-foreground",children:[l,r]})}),t[4]=o,t[5]=a):a=t[5];let c;return t[6]!==i||t[7]!==a?(c=n.jsx(Wi,{open:i,onOpenChange:s,children:a}),t[6]=i,t[7]=a,t[8]=c):c=t[8],c}function Ne(t){const e=_.c(35),{icon:i,label:s,isActive:o,link:l,onSelect:r,ariaLabel:a,className:c,dataTour:f,children:m,trailing:d,contextId:p}=t,u=o===void 0?!1:o,x=nt(),h=a??s,b=x?h:void 0;let g;e[0]!==c||e[1]!==f||e[2]!==u||e[3]!==b?(g={isActive:u,tooltip:b,className:c,"data-tour":f},e[0]=c,e[1]=f,e[2]=u,e[3]=b,e[4]=g):g=e[4];const y=g;let j;e[5]!==d?(j=d&&n.jsx("span",{className:"order-last ml-auto flex shrink-0 items-center group-data-[state=collapsed]/sidebar:hidden",children:d}),e[5]=d,e[6]=j):j=e[6];let v;e[7]!==s?(v=n.jsx("span",{className:"truncate",children:s}),e[7]=s,e[8]=v):v=e[8];let S;e[9]!==i||e[10]!==j||e[11]!==v?(S=n.jsxs(n.Fragment,{children:[i,j,v]}),e[9]=i,e[10]=j,e[11]=v,e[12]=S):S=e[12];const k=S;if(l){const N=u?"page":void 0;let C;e[13]!==k||e[14]!==l||e[15]!==h||e[16]!==r||e[17]!==N?(C=n.jsx(Qe,{...l,"aria-label":h,"aria-current":N,onClick:r,children:k}),e[13]=k,e[14]=l,e[15]=h,e[16]=r,e[17]=N,e[18]=C):C=e[18];let I;e[19]!==y||e[20]!==C?(I=n.jsx(Ie,{asChild:!0,...y,children:C}),e[19]=y,e[20]=C,e[21]=I):I=e[21];let A;return e[22]!==m||e[23]!==p||e[24]!==I?(A=n.jsxs(we,{"data-context-id":p,children:[I,m]}),e[22]=m,e[23]=p,e[24]=I,e[25]=A):A=e[25],A}let w;e[26]!==k||e[27]!==h||e[28]!==r||e[29]!==y?(w=n.jsx(Ie,{...y,"aria-label":h,onClick:r,children:k}),e[26]=k,e[27]=h,e[28]=r,e[29]=y,e[30]=w):w=e[30];let $;return e[31]!==m||e[32]!==p||e[33]!==w?($=n.jsxs(we,{"data-context-id":p,children:[w,m]}),e[31]=m,e[32]=p,e[33]=w,e[34]=$):$=e[34],$}function Qi(t){const e=_.c(5),{label:i,link:s,onSelect:o}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(Vt,{size:16}),e[0]=l):l=e[0];let r;return e[1]!==i||e[2]!==s||e[3]!==o?(r=n.jsx("div",{className:"contents",children:n.jsx(te,{className:"shrink-0",children:n.jsx(Ne,{icon:l,label:i,className:"text-sidebar-foreground/70",link:s,onSelect:o})})}),e[1]=i,e[2]=s,e[3]=o,e[4]=r):r=e[4],r}function Gi(t){return t==="board"?"kanban":Ct(t)?"cms":null}function ns(){const t=_.c(2),{data:e}=qt();let i;return t[0]!==e?(i=s=>{const o=Gi(s);return!o||!e?!1:e.features[o]!==!0},t[0]=e,t[1]=i):i=t[1],i}const Le="settings",ft=["overview","files","monitor","plan","tasks"];function Ji(t){return t?[...ft,Le]:ft}const Yi={overview:"overview",files:"context",monitor:"monitor",plan:"plan",tasks:"board"};function Zi(t,e){return Ji(t).filter(i=>!t||i===Le||e.has(Yi[i]))}function Xi(){const t=_.c(14),e=E(),{org:i}=X(),s=yt(),o=Kt(),{project:l}=ze(),r=Tn("plan_page_enabled"),a=Ht(l?.id);let c;if(t[0]!==s||t[1]!==i.slug||t[2]!==a||t[3]!==r||t[4]!==l?.metadata||t[5]!==o||t[6]!==e){const f=Mn(l?.metadata,a);let m;t[8]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsx(mn,{size:16}),t[8]=m):m=t[8];let d;t[9]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(On,{size:16}),t[9]=d):d=t[9];let p;t[10]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(Ot,{size:16}),t[10]=p):p=t[10];let u;t[11]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(un,{size:16}),t[11]=u):u=t[11];let x;t[12]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(yn,{size:16}),t[12]=x):x=t[12];let h;t[13]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(Dt,{size:16}),t[13]=h):h=t[13];const b={overview:{key:"overview",label:e("sidebar.navDestinations.overview"),icon:m,isActive:o?s===oe.root||s===`${oe.root}/`:s===re.home||s===re.orgIndex,trackAs:"overview",link:o?{to:oe.root,params:{org:i.slug,agentId:o},state:Ss}:{to:re.home,params:{org:i.slug}}},plan:{key:"plan",label:e("sidebar.navDestinations.plan"),icon:d,isActive:s===re.plan||s===oe.plan,trackAs:"plan",soon:!r,link:o?{to:oe.plan,params:{org:i.slug,agentId:o}}:{to:re.plan,params:{org:i.slug}}},tasks:{key:"tasks",label:e("sidebar.navDestinations.spineTasks"),icon:p,isActive:s===re.tasks||s===oe.tasks,trackAs:"board",link:o?{to:oe.tasks,params:{org:i.slug,agentId:o,taskKey:void 0}}:{to:re.tasks,params:{org:i.slug,taskKey:void 0}}},monitor:{key:"monitor",label:e("sidebar.navDestinations.monitor"),icon:u,isActive:s===re.monitoring||s===oe.monitoring,trackAs:"monitor",link:o?{to:oe.monitoring,params:{org:i.slug,agentId:o}}:{to:re.monitoring,params:{org:i.slug}}},settings:{key:"settings",label:e("sidebar.navDestinations.settings"),icon:x,isActive:s===oe.settings,trackAs:Le,link:{to:oe.settings,params:{org:i.slug,agentId:o??""}}},files:{key:"files",label:e("sidebar.navDestinations.context"),icon:h,isActive:s===re.library||s===oe.library,trackAs:"files",link:o?{to:oe.library,params:{org:i.slug,agentId:o}}:{to:re.library,params:{org:i.slug}}}};c=Zi(!!o,f).map(g=>b[g]),t[0]=s,t[1]=i.slug,t[2]=a,t[3]=r,t[4]=l?.metadata,t[5]=o,t[6]=e,t[7]=c}else c=t[7];return c}function eo(t){const e=_.c(11),{onNavigate:i}=t,s=E(),o=Xi(),l=ns();let r;if(e[0]!==o||e[1]!==l||e[2]!==i||e[3]!==s){let c;e[5]!==l||e[6]!==i||e[7]!==s?(c=f=>n.jsx(Ne,{icon:f.icon,label:f.label,isActive:f.isActive,link:f.link,trailing:f.soon?n.jsx(Dn,{variant:"muted",children:s("common.soon")}):l(f.key)?n.jsx(Ge,{size:14,className:"text-muted-foreground"}):void 0,onSelect:()=>{fe("nav_destination_clicked",{destination:f.trackAs}),i?.()}},f.key),e[5]=l,e[6]=i,e[7]=s,e[8]=c):c=e[8],r=o.map(c),e[0]=o,e[1]=l,e[2]=i,e[3]=s,e[4]=r}else r=e[4];let a;return e[9]!==r?(a=n.jsx(te,{className:"gap-1",children:r}),e[9]=r,e[10]=a):a=e[10],a}function to(){const t=_.c(7),{org:e}=X(),{setOpenMobile:i}=it();let s;t[0]!==e.slug?(s={org:e.slug},t[0]=e.slug,t[1]=s):s=t[1];let o;t[2]!==i?(o=()=>{fe("nav_destination_clicked",{destination:Le,target:"org"}),i(!1)},t[2]=i,t[3]=o):o=t[3];let l;return t[4]!==s||t[5]!==o?(l={to:"/$org/settings",params:s,onClick:o},t[4]=s,t[5]=o,t[6]=l):l=t[6],l}function is(){const t=_.c(6),e=E(),i=to();let s;t[0]!==e?(s=e("sidebar.navDestinations.settings"),t[0]=e,t[1]=s):s=t[1];const o=s;let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(Rt,{size:15}),t[2]=l):l=t[2];let r;return t[3]!==o||t[4]!==i?(r=n.jsx(Qe,{...i,"aria-label":o,title:o,className:"relative flex size-7 shrink-0 items-center justify-center rounded-lg text-sidebar-foreground/60 transition-colors hover:bg-sidebar-accent hover:text-sidebar-foreground","data-tour":ke.settings,children:l}),t[3]=o,t[4]=i,t[5]=r):r=t[5],r}function so(){const t=_.c(14),e=E(),{org:i}=X(),{setOpenMobile:s}=it(),{status:o,connected:l,expired:r}=Hn();if(!o.isSuccess||l)return null;let a;t[0]!==r||t[1]!==e?(a=e(r?"sidebar.linkClaude.relink":"sidebar.linkClaude.button"),t[0]=r,t[1]=e,t[2]=a):a=t[2];const c=a;let f;t[3]!==i.slug?(f={org:i.slug},t[3]=i.slug,t[4]=f):f=t[4];let m;t[5]!==s?(m=()=>s(!1),t[5]=s,t[6]=m):m=t[6];let d;t[7]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(ot,{children:n.jsx("img",{src:Kn["claude-code"],alt:"",className:"size-4 object-contain"})}),t[7]=d):d=t[7];let p;t[8]!==c?(p=n.jsx("span",{children:c}),t[8]=c,t[9]=p):p=t[9];let u;return t[10]!==f||t[11]!==m||t[12]!==p?(u=n.jsx(we,{children:n.jsx(Ie,{asChild:!0,children:n.jsxs(Qe,{to:"/$org/settings/ai-providers",params:f,hash:Wn,onClick:m,children:[d,p]})})}),t[10]=f,t[11]=m,t[12]=p,t[13]=u):u=t[13],u}function no(t){const e=_.c(4),{showLinkClaude:i}=t;let s;e[0]!==i?(s=i&&n.jsx(so,{}),e[0]=i,e[1]=s):s=e[1];let o;return e[2]!==s?(o=n.jsx(te,{className:"gap-0.5",children:s}),e[2]=s,e[3]=o):o=e[3],o}function io(){const t=_.c(8),e=zn(),i=!e;let s;t[0]!==i?(s=i&&n.jsx(Ri,{}),t[0]=i,t[1]=s):s=t[1];const o=!e;let l;t[2]!==o?(l=n.jsx(no,{showLinkClaude:o}),t[2]=o,t[3]=l):l=t[3];let r;t[4]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(te,{className:"gap-0.5",children:n.jsx(we,{children:n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(es,{})}),n.jsx(is,{}),n.jsx(ss,{})]})})}),t[4]=r):r=t[4];let a;return t[5]!==s||t[6]!==l?(a=n.jsxs(Lt,{className:"px-2 pb-3 gap-0.5",children:[s,l,r]}),t[5]=s,t[6]=l,t[7]=a):a=t[7],a}function oo(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Lt,{className:"px-2 pb-3",children:n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(te,{children:n.jsx(we,{children:n.jsx(es,{})})})}),n.jsx(is,{}),n.jsx(ss,{})]})}),t[0]=e):e=t[0],e}function lo(){const t=_.c(3),{setScope:e}=ze(),i=Qn();let s;return t[0]!==i||t[1]!==e?(s=()=>{const o=i!==void 0?"route_resolves_scope":null;fe("scope_cleared",{relocated:o!==null,reason:o}),e(null)},t[0]=i,t[1]=e,t[2]=s):s=t[2],s}function ro(){const t=_.c(2),{org:e}=X();let i;return t[0]!==e.name?(i=n.jsx("div",{className:"flex min-w-0 flex-1 items-center py-1.5 pr-1.5 pl-2 md:h-[34px] md:py-0","data-tour":ke.switcher,children:n.jsx("span",{className:"min-w-0 flex-1 truncate font-medium text-foreground text-sm",children:e.name})}),t[0]=e.name,t[1]=i):i=t[1],i}function os(t){const e=_.c(14),{onNavigate:i}=t,s=E(),{org:o}=X(),{project:l}=ze(),r=lo();if(!l){let u;return e[0]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(ro,{}),e[0]=u):u=e[0],u}let a;e[1]!==o.name||e[2]!==s?(a=s("sidebar.scope.backTo",{name:o.name}),e[1]=o.name,e[2]=s,e[3]=a):a=e[3];const c=a;let f;e[4]!==r||e[5]!==i?(f=()=>{r(),i?.()},e[4]=r,e[5]=i,e[6]=f):f=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsx(Vt,{size:16,className:"shrink-0 text-muted-foreground"}),e[7]=m):m=e[7];let d;e[8]!==l.title?(d=n.jsx("span",{className:"min-w-0 flex-1 truncate font-medium text-foreground text-sm",children:l.title}),e[8]=l.title,e[9]=d):d=e[9];let p;return e[10]!==c||e[11]!==f||e[12]!==d?(p=n.jsxs("button",{type:"button",title:c,"aria-label":c,onClick:f,className:"flex min-w-0 flex-1 items-center gap-2 rounded-lg py-1.5 pr-1.5 pl-2 text-left transition-colors hover:bg-sidebar-accent md:h-[34px] md:py-0",children:[m,d]}),e[10]=c,e[11]=f,e[12]=d,e[13]=p):p=e[13],p}const ls=16;function ao(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsxs(n.Fragment,{children:[n.jsx(os,{}),n.jsx(mo,{}),n.jsx(Gt,{})]}),t[0]=e):e=t[0],e}function co(t){const e=_.c(12),{onClose:i}=t,s=E();let o;e[0]!==i?(o=n.jsx(os,{onNavigate:i}),e[0]=i,e[1]=o):o=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(Gt,{}),e[2]=l):l=e[2];let r;e[3]!==s?(r=s("sidebar.header.closeSidebar"),e[3]=s,e[4]=r):r=e[4];let a;e[5]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(Wt,{size:ls}),e[5]=a):a=e[5];let c;e[6]!==i||e[7]!==r?(c=n.jsx(Qt,{onClick:i,"aria-label":r,children:a}),e[6]=i,e[7]=r,e[8]=c):c=e[8];let f;return e[9]!==o||e[10]!==c?(f=n.jsxs(n.Fragment,{children:[o,l,c]}),e[9]=o,e[10]=c,e[11]=f):f=e[11],f}function mo(){const t=_.c(6),e=E(),{toggleSidebar:i}=it();let s;t[0]!==e?(s=e("page.collapseSidebar"),t[0]=e,t[1]=s):s=t[1];let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(Wt,{size:ls}),t[2]=o):o=t[2];let l;return t[3]!==s||t[4]!==i?(l=n.jsx(Qt,{"aria-label":s,onClick:i,className:"shrink-0 size-7",children:o}),t[3]=s,t[4]=i,t[5]=l):l=t[5],l}function uo(t){const e=_.c(27),{onNavigate:i}=t,s=E(),{project:o}=ze(),l=Jt(),r=yt(),a=Zn(),c=En(o),f=ns(),m=Ht(o?.id);if(!o)return null;let d;if(e[0]!==c.presence||e[1]!==m||e[2]!==o.metadata){const k=Xn(o.metadata),w=c.presence,$=Rn(k,w),N=m??Ln(o.metadata);d=new Set(qn(N,$,m!==void 0?1:o.metadata.sidebarViewsVersion,m!==void 0?[]:Bn(o.metadata.sidebarViewsSeen,$))),e[0]=c.presence,e[1]=m,e[2]=o.metadata,e[3]=d}else d=e[3];const p=d;let u,x,h,b;if(e[4]!==a||e[5]!==f||e[6]!==r||e[7]!==l||e[8]!==i||e[9]!==o||e[10]!==p||e[11]!==s){b=[],p.has("site-editor")&&b.push({key:"site-editor",label:s("sidebar.projectNav.siteEditor"),icon:n.jsx(Et,{size:16}),panel:"site-editor",isActive:bo,dataTour:ke.siteEditor});const k={blog:{label:s("sidebar.projectNav.blog"),icon:n.jsx(Gn,{size:16}),isActive:ho},assets:{label:s("common.mainPanelTabs.assets"),icon:n.jsx(Jn,{size:16})},releases:{label:s("common.mainPanelTabs.releases"),icon:n.jsx(hn,{size:16})},hosting:{label:s("common.mainPanelTabs.hosting"),icon:n.jsx(ks,{size:16})},e2e:{label:s("common.mainPanelTabs.e2e"),icon:n.jsx(xn,{size:16})},calendar:{label:s("common.mainPanelTabs.calendar"),icon:n.jsx(kn,{size:16})},experiments:{label:s("common.mainPanelTabs.experiments"),icon:n.jsx(pn,{size:16})}};for(const N of Un){if(N!=="blog"&&!Vn(N)||!p.has(N))continue;const C=k[N];b.push({key:N,label:C.label,icon:C.icon,panel:N,isActive:C.isActive??(I=>I===N)})}for(const N of ei(ti(o),(o.connections??[]).map(xo))){if(N.toolName==="fetch_assets")continue;const C=ys(N.connectionId,N.toolName),I=si({tabId:C,kind:"expanded",iconUrl:N.icon,connections:[]}),A=N.label||N.toolName,{IconComp:q}=fn(A);b.push({key:`pinned:${N.connectionId}:${N.toolName}`,label:A,icon:I.kind==="fallback"?n.jsx(q,{size:16}):n.jsx(ni,{icon:I}),panel:C,isActive:B=>B===C})}p.has("automations")&&b.push({key:"automations",label:s("sidebar.projectNav.automations"),icon:n.jsx(At,{size:16}),panel:"automations",isActive:po,dataTour:ke.automations});const w=r.startsWith(re.projects),$=fo;u=te,x="gap-1",h=b.map(N=>n.jsx(Ne,{icon:$(N),label:N.label,dataTour:N.dataTour,isActive:w&&N.isActive(a),trailing:f(N.panel)?n.jsx(Ge,{size:14,className:"text-muted-foreground"}):void 0,onSelect:()=>{fe("project_nav_clicked",{surface:N.key}),l(o.id,{panel:N.panel}),i?.()}},N.key)),e[4]=a,e[5]=f,e[6]=r,e[7]=l,e[8]=i,e[9]=o,e[10]=p,e[11]=s,e[12]=u,e[13]=x,e[14]=h,e[15]=b}else u=e[12],x=e[13],h=e[14],b=e[15];let g;e[16]!==u||e[17]!==x||e[18]!==h?(g=n.jsx(u,{className:x,children:h}),e[16]=u,e[17]=x,e[18]=h,e[19]=g):g=e[19];const y=g;if(b.length===0)return null;let j;e[20]!==s?(j=s("sidebar.projectNav.apps"),e[20]=s,e[21]=j):j=e[21];let v;e[22]!==j?(v=n.jsx("div",{className:"flex h-6 items-center px-2 group-data-[state=collapsed]/sidebar:hidden",children:n.jsx("span",{className:"truncate font-medium text-xs text-muted-foreground",children:j})}),e[22]=j,e[23]=v):v=e[23];let S;return e[24]!==y||e[25]!==v?(S=n.jsxs("div",{className:"flex flex-col gap-1",children:[v,y]}),e[24]=y,e[25]=v,e[26]=S):S=e[26],S}function fo(t){const e=Yn[t.panel];return n.jsx("span",{className:L("flex size-5 shrink-0 items-center justify-center rounded-md [&_svg]:size-3",e?e.tone:"bg-muted text-muted-foreground"),children:e?n.jsx(e.Icon,{size:12,className:"text-current"}):t.icon})}function po(t){return t==="automations"||_s(t)!==null}function xo(t){return t.connection_id}function ho(t){return t==="blog"||Ns(t)!==null}function bo(t){return!!t&&Ct(t)}const De={folders:[],preferences:mi,joinedAt:null};function go(){const t=_.c(11),{org:e}=X(),i=Je();let s;t[0]!==e.id?(s=Ee.projectSidebar(e.id),t[0]=e.id,t[1]=s):s=t[1];const o=s;let l;t[2]!==e.slug||t[3]!==i||t[4]!==o?(l=f=>ui.subscribe(e.slug,()=>{i.invalidateQueries({queryKey:o}),f()},()=>i.invalidateQueries({queryKey:o})),t[2]=e.slug,t[3]=i,t[4]=o,t[5]=l):l=t[5],ae.useSyncExternalStore(l,vo,jo);let r;t[6]!==e.slug?(r=async()=>await ws(e.slug,"SIDEBAR_GET",{}),t[6]=e.slug,t[7]=r):r=t[7];let a;t[8]!==o||t[9]!==r?(a={queryKey:o,queryFn:r,staleTime:6e4},t[8]=o,t[9]=r,t[10]=a):a=t[10];const{data:c}=Ye(a);return c??De}function jo(){return 0}function vo(){return 0}function rs(t,e,i){const s=_.c(25),{org:o}=X(),l=Je();let r,a,c,f;s[0]!==o.id||s[1]!==l?(r=Ee.projectSidebar(o.id),a=()=>l.getQueryData(r)??De,f=$s,c=[...r,"write"],s[0]=o.id,s[1]=l,s[2]=r,s[3]=a,s[4]=c,s[5]=f):(r=s[2],a=s[3],c=s[4],f=s[5]);let m;s[6]!==t||s[7]!==a||s[8]!==i?(m=async h=>i(t(a())),s[6]=t,s[7]=a,s[8]=i,s[9]=m):m=s[9];let d;s[10]!==r||s[11]!==t||s[12]!==e||s[13]!==l?(d=h=>{const b=l.getQueryData(r),g=b??De;return l.setQueryData(r,e(g,h(t(g)))),{prev:b}},s[10]=r,s[11]=t,s[12]=e,s[13]=l,s[14]=d):d=s[14];let p,u;s[15]!==r||s[16]!==l?(p=(h,b,g)=>{l.setQueryData(r,g?.prev??De)},u=()=>{l.isMutating({mutationKey:[...r,"write"]})===1&&l.invalidateQueries({queryKey:r})},s[15]=r,s[16]=l,s[17]=p,s[18]=u):(p=s[17],u=s[18]);let x;return s[19]!==c||s[20]!==m||s[21]!==d||s[22]!==p||s[23]!==u?(x={mutationKey:c,mutationFn:m,onMutate:d,onError:p,onSettled:u},s[19]=c,s[20]=m,s[21]=d,s[22]=p,s[23]=u,s[24]=x):x=s[24],f(x)}function So(){const t=_.c(2),e=Ze();let i;return t[0]!==e?(i=async s=>await e.call("SIDEBAR_PREFERENCES_SET",s),t[0]=e,t[1]=i):i=t[1],rs(ko,yo,i)}function yo(t,e){return{...t,preferences:e}}function ko(t){return t.preferences}function No(){const t=_.c(2),e=Ze();let i;return t[0]!==e?(i=async s=>(await e.call("PROJECT_FOLDERS_SET",{folders:s})).folders,t[0]=e,t[1]=i):i=t[1],rs(wo,_o,i)}function _o(t,e){return{...t,folders:e}}function wo(t){return t.folders}function $o({projects:t,folders:e,preferences:i}){const s=new Map(t.map(u=>[u.id,u])),o=new Set(i.pinned),l=new Set(i.hidden),r=new Set(i.hiddenFolders),a=new Map;for(const u of e)for(const x of u.projectIds)a.set(x,u.id);const c=u=>u.map(x=>s.get(x)).filter(x=>!!x),f=c(i.pinned),m=u=>!o.has(u.id)&&!l.has(u.id),d=[],p=[];for(const u of e){const x=c(u.projectIds).filter(m);(r.has(u.id)?p:d).push({folder:u,projects:x})}return{pinned:f,folders:d,loose:t.filter(u=>!a.has(u.id)&&m(u)),hiddenFolders:p,hidden:t.filter(u=>l.has(u.id)&&!o.has(u.id))}}function pt(t,e,i){const s=l=>l.filter(r=>r!==e),o={...t,pinned:s(t.pinned),hidden:s(t.hidden),dismissed:s(t.dismissed)};return i&&(o[i]=[...o[i],e]),o}function Co(t,e,i){const s=t.hiddenFolders.filter(o=>o!==e);return{...t,hiddenFolders:i?[...s,e]:s}}function Io(t,e,i){return[...t,{id:e,name:i,projectIds:[]}]}function Po(t,e,i){return t.map(s=>s.id===e?{...s,name:i}:s)}function Ve(t,e){return t.filter(i=>i.id!==e)}function xt(t,e,i){return t.map(s=>{const o=s.projectIds.filter(l=>l!==e);return{...s,projectIds:s.id===i?[...o,e]:o}})}function To(t){const e=_.c(97),{open:i,onOpenChange:s,projects:o,folders:l,preferences:r,canManage:a,onPin:c,onHide:f,onHideFolder:m,onMove:d,onRequestFolderName:p,onDeleteFolder:u}=t,x=E();let h,b,g,y,j,v,S,k,w,$;if(e[0]!==a||e[1]!==l||e[2]!==u||e[3]!==f||e[4]!==m||e[5]!==d||e[6]!==s||e[7]!==c||e[8]!==p||e[9]!==i||e[10]!==r.hidden||e[11]!==r.hiddenFolders||e[12]!==r.pinned||e[13]!==o||e[14]!==x){const A=new Map(o.map(Oo));let q;e[25]!==l?(q=new Set(l.flatMap(Fo)),e[25]=l,e[26]=q):q=e[26];const B=q;let J;e[27]!==r.pinned?(J=new Set(r.pinned),e[27]=r.pinned,e[28]=J):J=e[28];const G=J;let V;e[29]!==r.hidden?(V=new Set(r.hidden),e[29]=r.hidden,e[30]=V):V=e[30];const ee=V;let W;e[31]!==r.hiddenFolders?(W=new Set(r.hiddenFolders),e[31]=r.hiddenFolders,e[32]=W):W=e[32];const K=W;let Y;e[33]!==a||e[34]!==l||e[35]!==ee||e[36]!==K||e[37]!==f||e[38]!==d||e[39]!==c||e[40]!==p||e[41]!==G||e[42]!==x?(Y=(z,R)=>{const P=G.has(z.id),O=R!==null&&K.has(R.id)&&!P,D=!ee.has(z.id)&&!O;return n.jsxs("li",{className:"group/row flex h-11 items-center gap-3 px-3 transition-colors hover:bg-accent",children:[n.jsx("span",{className:L("flex size-4 shrink-0 items-center justify-center",!D&&"opacity-50"),children:n.jsx(Xt,{icon:z.icon,name:z.title})}),n.jsx("span",{className:L("min-w-0 flex-1 truncate text-sm",D?"text-foreground":"text-muted-foreground"),children:z.title}),a&&n.jsx("span",{className:"opacity-0 transition-opacity group-hover/row:opacity-100 has-[[data-state=open]]:opacity-100",children:n.jsx(Do,{project:z,folder:R,folders:l,onMove:d,onRequestFolderName:p})}),n.jsx("span",{className:L("transition-opacity",!P&&"opacity-0 group-hover/row:opacity-100"),children:n.jsx(We,{label:x(P?"sidebar.projects.unpin":"sidebar.projects.pin"),variant:P?"secondary":"ghost","aria-pressed":P,onClick:()=>c(z.id,!P),children:P?n.jsx(Mo,{}):n.jsx(Mt,{size:14})})}),n.jsx(bi,{checked:D,disabled:O,"aria-label":`${x("sidebar.customize.showInSidebar")}: ${z.title}`,title:O?x("sidebar.customize.stateWithFolder"):void 0,onCheckedChange:H=>f(z.id,H!==!0)})]},z.id)},e[33]=a,e[34]=l,e[35]=ee,e[36]=K,e[37]=f,e[38]=d,e[39]=c,e[40]=p,e[41]=G,e[42]=x,e[43]=Y):Y=e[43];const U=Y;let Q;e[44]!==a||e[45]!==K||e[46]!==u||e[47]!==m||e[48]!==p||e[49]!==U||e[50]!==x?(Q=(z,R,P,O)=>{const D=P!==null&&K.has(P.id);return n.jsxs("section",{className:"flex flex-col gap-2",children:[n.jsxs("div",{className:"flex h-7 items-center gap-2",children:[n.jsx("h3",{className:L("min-w-0 flex-1 truncate text-sm font-medium",D?"text-muted-foreground":"text-foreground"),children:R}),P&&n.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[x("sidebar.customize.showFolder"),n.jsx(gi,{checked:!D,onCheckedChange:H=>m(P.id,!H)})]}),P&&a&&n.jsxs(Xe,{children:[n.jsx(et,{asChild:!0,children:n.jsx(We,{label:x("sidebar.customize.folderOptions"),children:n.jsx(tt,{size:14})})}),n.jsxs(st,{align:"end",children:[n.jsx(pe,{onSelect:()=>p({kind:"rename",folderId:P.id,name:P.name}),children:x("sidebar.projects.renameFolder")}),n.jsx(pe,{variant:"destructive",onSelect:()=>u(P.id),children:x("sidebar.projects.deleteFolder")})]})]})]}),n.jsx("ul",{className:"flex flex-col divide-y divide-border overflow-hidden surface",children:O.length===0?n.jsx("li",{className:"flex h-11 items-center px-3 text-sm text-muted-foreground",children:x("sidebar.customize.empty")}):O.map(H=>U(H,P))})]},z)},e[44]=a,e[45]=K,e[46]=u,e[47]=m,e[48]=p,e[49]=U,e[50]=x,e[51]=Q):Q=e[51];const Z=Q;if(e[52]!==a||e[53]!==Z||e[54]!==s||e[55]!==p||e[56]!==i||e[57]!==B||e[58]!==o||e[59]!==x){let z;e[69]!==B?(z=H=>!B.has(H.id),e[69]=B,e[70]=z):z=e[70];const R=o.filter(z);b=kt,w=i,$=s,h=Nt,v="flex max-h-[85vh] flex-col gap-5 sm:max-w-2xl",S=Ao;let P;e[71]!==x?(P=x("sidebar.projects.customize"),e[71]=x,e[72]=P):P=e[72];let O;e[73]!==P?(O=n.jsx(_t,{children:P}),e[73]=P,e[74]=O):O=e[74];let D;e[75]!==a||e[76]!==p||e[77]!==x?(D=a&&n.jsxs(Pe,{variant:"secondary",size:"sm",className:"shrink-0",onClick:()=>p({kind:"create"}),children:[n.jsx(He,{size:14}),x("sidebar.projects.newFolder")]}),e[75]=a,e[76]=p,e[77]=x,e[78]=D):D=e[78],e[79]!==O||e[80]!==D?(k=n.jsxs(wt,{className:"flex-row items-center justify-between gap-4 pr-8",children:[O,D]}),e[79]=O,e[80]=D,e[81]=k):k=e[81],g="-mx-6 flex min-h-0 flex-col gap-6 overflow-y-auto px-6 pb-1",y=Z("loose",x("sidebar.projects.heading"),null,R),e[52]=a,e[53]=Z,e[54]=s,e[55]=p,e[56]=i,e[57]=B,e[58]=o,e[59]=x,e[60]=h,e[61]=b,e[62]=g,e[63]=y,e[64]=v,e[65]=S,e[66]=k,e[67]=w,e[68]=$}else h=e[60],b=e[61],g=e[62],y=e[63],v=e[64],S=e[65],k=e[66],w=e[67],$=e[68];j=l.map(z=>Z(z.id,z.name,z,z.projectIds.map(R=>A.get(R)).filter(zo))),e[0]=a,e[1]=l,e[2]=u,e[3]=f,e[4]=m,e[5]=d,e[6]=s,e[7]=c,e[8]=p,e[9]=i,e[10]=r.hidden,e[11]=r.hiddenFolders,e[12]=r.pinned,e[13]=o,e[14]=x,e[15]=h,e[16]=b,e[17]=g,e[18]=y,e[19]=j,e[20]=v,e[21]=S,e[22]=k,e[23]=w,e[24]=$}else h=e[15],b=e[16],g=e[17],y=e[18],j=e[19],v=e[20],S=e[21],k=e[22],w=e[23],$=e[24];let N;e[82]!==g||e[83]!==y||e[84]!==j?(N=n.jsxs("div",{className:g,children:[y,j]}),e[82]=g,e[83]=y,e[84]=j,e[85]=N):N=e[85];let C;e[86]!==h||e[87]!==v||e[88]!==S||e[89]!==k||e[90]!==N?(C=n.jsxs(h,{className:v,onOpenAutoFocus:S,children:[k,N]}),e[86]=h,e[87]=v,e[88]=S,e[89]=k,e[90]=N,e[91]=C):C=e[91];let I;return e[92]!==b||e[93]!==C||e[94]!==w||e[95]!==$?(I=n.jsx(b,{open:w,onOpenChange:$,children:C}),e[92]=b,e[93]=C,e[94]=w,e[95]=$,e[96]=I):I=e[96],I}function zo(t){return!!t}function Ao(t){return t.preventDefault()}function Fo(t){return t.projectIds}function Oo(t){return[t.id,t]}function Do(t){const e=_.c(41),{project:i,folder:s,folders:o,onMove:l,onRequestFolderName:r}=t,a=E();let c;e[0]!==a?(c=a("sidebar.customize.projectOptions"),e[0]=a,e[1]=c):c=e[1];let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(tt,{size:14}),e[2]=f):f=e[2];let m;e[3]!==c?(m=n.jsx(et,{asChild:!0,children:n.jsx(We,{label:c,children:f})}),e[3]=c,e[4]=m):m=e[4];let d;e[5]!==a?(d=a("sidebar.projects.moveTo"),e[5]=a,e[6]=d):d=e[6];let p;e[7]!==d?(p=n.jsx(Cs,{children:d}),e[7]=d,e[8]=p):p=e[8];let u;if(e[9]!==s?.id||e[10]!==o||e[11]!==l||e[12]!==i.id){let S;e[14]!==s?.id||e[15]!==l||e[16]!==i.id?(S=k=>n.jsx(pe,{disabled:k.id===s?.id,onSelect:()=>l(i.id,k.id),children:k.name},k.id),e[14]=s?.id,e[15]=l,e[16]=i.id,e[17]=S):S=e[17],u=o.map(S),e[9]=s?.id,e[10]=o,e[11]=l,e[12]=i.id,e[13]=u}else u=e[13];let x;e[18]!==s||e[19]!==l||e[20]!==i.id||e[21]!==a?(x=s&&n.jsx(pe,{onSelect:()=>l(i.id,null),children:a("sidebar.projects.noFolder")}),e[18]=s,e[19]=l,e[20]=i.id,e[21]=a,e[22]=x):x=e[22];let h;e[23]!==r||e[24]!==i.id?(h=()=>r({kind:"create",projectId:i.id}),e[23]=r,e[24]=i.id,e[25]=h):h=e[25];let b;e[26]!==a?(b=a("sidebar.projects.newFolder"),e[26]=a,e[27]=b):b=e[27];let g;e[28]!==h||e[29]!==b?(g=n.jsx(pe,{onSelect:h,children:b}),e[28]=h,e[29]=b,e[30]=g):g=e[30];let y;e[31]!==g||e[32]!==u||e[33]!==x?(y=n.jsxs(Is,{children:[u,x,g]}),e[31]=g,e[32]=u,e[33]=x,e[34]=y):y=e[34];let j;e[35]!==y||e[36]!==p?(j=n.jsx(st,{align:"end",children:n.jsxs(Ps,{children:[p,y]})}),e[35]=y,e[36]=p,e[37]=j):j=e[37];let v;return e[38]!==j||e[39]!==m?(v=n.jsxs(Xe,{children:[m,j]}),e[38]=j,e[39]=m,e[40]=v):v=e[40],v}function Mo(){const t=_.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Mt,{size:14}),t[0]=e):e=t[0];let i;return t[1]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsxs("span",{className:"relative flex size-3.5",children:[e,n.jsx("svg",{viewBox:"0 0 14 14",className:"absolute inset-0 size-3.5","aria-hidden":"true",children:n.jsx("line",{x1:"1.5",y1:"1.5",x2:"12.5",y2:"12.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})})]}),t[1]=i):i=t[1],i}function Eo(t){const e=_.c(10),{request:i,onClose:s,onSave:o}=t,l=i!==null;let r;e[0]!==s?(r=f=>!f&&s(),e[0]=s,e[1]=r):r=e[1];let a;e[2]!==s||e[3]!==o||e[4]!==i?(a=i&&n.jsx(Ro,{request:i,onClose:s,onSave:o},i.kind==="rename"?i.folderId:"create"),e[2]=s,e[3]=o,e[4]=i,e[5]=a):a=e[5];let c;return e[6]!==l||e[7]!==r||e[8]!==a?(c=n.jsx(kt,{open:l,onOpenChange:r,children:a}),e[6]=l,e[7]=r,e[8]=a,e[9]=c):c=e[9],c}function Ro(t){const e=_.c(39),{request:i,onClose:s,onSave:o}=t,l=E(),[r,a]=ae.useState(i.kind==="rename"?i.name:"");let c;e[0]!==r?(c=r.trim(),e[0]=r,e[1]=c):c=e[1];const f=c;let m;e[2]!==s||e[3]!==o||e[4]!==i||e[5]!==f?(m=N=>{N.preventDefault(),f&&(o(i,f),s())},e[2]=s,e[3]=o,e[4]=i,e[5]=f,e[6]=m):m=e[6];const d=i.kind==="rename"?"sidebar.projects.renameFolder":"sidebar.projects.newFolder";let p;e[7]!==l||e[8]!==d?(p=l(d),e[7]=l,e[8]=d,e[9]=p):p=e[9];let u;e[10]!==p?(u=n.jsx(wt,{children:n.jsx(_t,{children:p})}),e[10]=p,e[11]=u):u=e[11];let x;e[12]!==l?(x=l("sidebar.projects.folderName"),e[12]=l,e[13]=x):x=e[13];let h;e[14]!==l?(h=l("sidebar.projects.folderName"),e[14]=l,e[15]=h):h=e[15];let b;e[16]===Symbol.for("react.memo_cache_sentinel")?(b=N=>a(N.target.value),e[16]=b):b=e[16];let g;e[17]!==r||e[18]!==x||e[19]!==h?(g=n.jsx(Ts,{autoFocus:!0,value:r,maxLength:fi,placeholder:x,"aria-label":h,onChange:b}),e[17]=r,e[18]=x,e[19]=h,e[20]=g):g=e[20];let y;e[21]!==l?(y=l("sidebar.projects.folderCancel"),e[21]=l,e[22]=y):y=e[22];let j;e[23]!==s||e[24]!==y?(j=n.jsx(Pe,{type:"button",variant:"ghost",onClick:s,children:y}),e[23]=s,e[24]=y,e[25]=j):j=e[25];const v=!f;let S;e[26]!==l?(S=l("sidebar.projects.folderSave"),e[26]=l,e[27]=S):S=e[27];let k;e[28]!==v||e[29]!==S?(k=n.jsx(Pe,{type:"submit",disabled:v,children:S}),e[28]=v,e[29]=S,e[30]=k):k=e[30];let w;e[31]!==j||e[32]!==k?(w=n.jsxs(zs,{children:[j,k]}),e[31]=j,e[32]=k,e[33]=w):w=e[33];let $;return e[34]!==w||e[35]!==m||e[36]!==u||e[37]!==g?($=n.jsx(Nt,{className:"sm:max-w-sm",children:n.jsxs("form",{className:"flex flex-col gap-4",onSubmit:m,children:[u,g,w]})}),e[34]=w,e[35]=m,e[36]=u,e[37]=g,e[38]=$):$=e[38],$}function Lo(t){const e=t.target.closest("[data-context-id]")?.getAttribute("data-context-id");return e?.startsWith("project:")?{kind:"project",id:e.slice(8)}:e?.startsWith("folder:")?{kind:"folder",id:e.slice(7)}:{kind:"none"}}function qo(t){const e=_.c(8),{locator:i}=X(),s=Ze(),{data:o}=Te.useSession();let l;e[0]!==i||e[1]!==s?(l=pi(i,s),e[0]=i,e[1]=s,e[2]=l):l=e[2];const{data:r}=Ye(l);let a,c;if(e[3]!==r||e[4]!==t||e[5]!==o?.user?.id){c=Symbol.for("react.early_return_sentinel");e:{if(a=new Map,!r){c=a;break e}const f=xi(t);for(const m of di(r.items,o?.user?.id)){const d=hi(m,f);d&&a.set(d.id,(a.get(d.id)??0)+1)}}e[3]=r,e[4]=t,e[5]=o?.user?.id,e[6]=a,e[7]=c}else a=e[6],c=e[7];return c!==Symbol.for("react.early_return_sentinel")?c:a}function Bo(t){const e=_.c(5),{label:i,action:s}=t;let o;e[0]!==i?(o=n.jsx("p",{className:"font-medium text-xs text-muted-foreground",children:i}),e[0]=i,e[1]=o):o=e[1];let l;return e[2]!==s||e[3]!==o?(l=n.jsxs("div",{className:"flex h-6 items-center justify-between gap-2 px-2",children:[o,s]}),e[2]=s,e[3]=o,e[4]=l):l=e[4],l}function as(t){const e=_.c(24),{project:i,onNavigate:s,waiting:o,trailing:l,children:r}=t,a=o===void 0?0:o,c=E(),f=Jt();let m;e[0]!==c||e[1]!==a?(m=a>0?c("sidebar.projects.waiting",{count:a}):null,e[0]=c,e[1]=a,e[2]=m):m=e[2];const d=m;let p;e[3]!==i.icon||e[4]!==i.title?(p=n.jsx(Xt,{icon:i.icon,name:i.title}),e[3]=i.icon,e[4]=i.title,e[5]=p):p=e[5];const u=i.title,x=`project:${i.id}`;let h;e[6]!==l||e[7]!==d?(h=d?n.jsx("span",{title:d,className:"mr-1 size-2 rounded-full bg-warning group-hover/menu-item:invisible"}):l,e[6]=l,e[7]=d,e[8]=h):h=e[8];const b=d&&"font-semibold";let g;e[9]!==b?(g=L(b),e[9]=b,e[10]=g):g=e[10];const y=d?`${i.title}, ${d}`:void 0;let j;e[11]!==f||e[12]!==s||e[13]!==i.id?(j=()=>{fe("sidebar_project_clicked"),f(i.id),s?.()},e[11]=f,e[12]=s,e[13]=i.id,e[14]=j):j=e[14];let v;return e[15]!==r||e[16]!==i.title||e[17]!==j||e[18]!==p||e[19]!==x||e[20]!==h||e[21]!==g||e[22]!==y?(v=n.jsx(Ne,{icon:p,label:u,contextId:x,trailing:h,className:g,ariaLabel:y,onSelect:j,children:r}),e[15]=r,e[16]=i.title,e[17]=j,e[18]=p,e[19]=x,e[20]=h,e[21]=g,e[22]=y,e[23]=v):v=e[23],v}function ht(t){const e=_.c(26),{label:i,contextId:s,folderId:o,projects:l,onNavigate:r,actions:a,waitingByProject:c}=t,{locator:f}=X();let m;e[0]!==o||e[1]!==f?(m=Os.sidebarSectionOpen(f,o??"loose"),e[0]=o,e[1]=f,e[2]=m):m=e[2];const[d,p]=Fs(m,!0),u=d?Yt:$t;let x;e[3]!==p?(x=()=>p(Uo),e[3]=p,e[4]=x):x=e[4];let h;e[5]!==i?(h=n.jsx("span",{className:"truncate font-medium text-xs text-muted-foreground transition-colors group-hover/folder:text-sidebar-foreground",children:i}),e[5]=i,e[6]=h):h=e[6];let b;e[7]!==u?(b=n.jsx(u,{size:12,className:"shrink-0 text-muted-foreground"}),e[7]=u,e[8]=b):b=e[8];let g;e[9]!==d||e[10]!==x||e[11]!==h||e[12]!==b?(g=n.jsxs("button",{type:"button","aria-expanded":d,onClick:x,className:"group/folder flex min-w-0 items-center gap-1 rounded-md text-left",children:[h,b]}),e[9]=d,e[10]=x,e[11]=h,e[12]=b,e[13]=g):g=e[13];let y;e[14]!==a||e[15]!==g?(y=n.jsxs("div",{className:"flex h-6 items-center justify-between gap-2 px-2",children:[g,a]}),e[14]=a,e[15]=g,e[16]=y):y=e[16];let j;e[17]!==r||e[18]!==d||e[19]!==l||e[20]!==c?(j=d&&l.length>0&&n.jsx(te,{className:"gap-1",children:l.map(S=>n.jsx(as,{project:S,onNavigate:r,waiting:c.get(S.id)},S.id))}),e[17]=r,e[18]=d,e[19]=l,e[20]=c,e[21]=j):j=e[21];let v;return e[22]!==s||e[23]!==y||e[24]!==j?(v=n.jsxs("div",{className:"flex flex-col gap-1","data-context-id":s,children:[y,j]}),e[22]=s,e[23]=y,e[24]=j,e[25]=v):v=e[25],v}function Uo(t){return!t}function Vo(t){const e=_.c(141),{onNavigate:i}=t,s=E(),o=nt(),{granted:l}=As("agents:manage"),{projects:r}=ze(),a=Kt(),c=go(),f=qo(r),m=So(),d=No();let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p={kind:"none"},e[0]=p):p=e[0];const[u,x]=ae.useState(p),[h,b]=ae.useState(null),[g,y]=ae.useState(!1);if(a||r.length===0&&!l)return null;let j,v,S,k,w,$,N,C,I,A,q,B,J,G,V,ee,W,K,Y,U;if(e[1]!==l||e[2]!==o||e[3]!==i||e[4]!==r||e[5]!==c.folders||e[6]!==c.preferences||e[7]!==s||e[8]!==u.id||e[9]!==u.kind||e[10]!==d||e[11]!==m||e[12]!==f){const M=$o({projects:r,folders:c.folders,preferences:c.preferences});w=M.hidden.length+M.hiddenFolders.reduce(Wo,0);let ie;e[33]!==m?(ie=(T,F)=>{fe(F?"sidebar_project_pinned":"sidebar_project_unpinned"),m.mutate(le=>pt(le,T,F?"pinned":null))},e[33]=m,e[34]=ie):ie=e[34],A=ie;let he;e[35]!==m?(he=(T,F)=>{fe(F?"sidebar_project_hidden":"sidebar_project_shown"),m.mutate(le=>pt(le,T,F?"hidden":null))},e[35]=m,e[36]=he):he=e[36],N=he;let de;e[37]!==m?(de=(T,F)=>m.mutate(le=>Co(le,T,F)),e[37]=m,e[38]=de):de=e[38],C=de;let me;e[39]!==d?(me=(T,F)=>d.mutate(le=>xt(le,T,F)),e[39]=d,e[40]=me):me=e[40],I=me;let be;e[41]!==d?(be=(T,F)=>{if(T.kind==="rename"){d.mutate(qe=>Po(qe,T.folderId,F));return}const le=crypto.randomUUID();fe("sidebar_folder_created"),d.mutate(qe=>{const at=Io(qe,le,F);return T.projectId?xt(at,T.projectId,le):at})},e[41]=d,e[42]=be):be=e[42],B=be;let ye;e[43]!==c.preferences.pinned?(ye=new Set(c.preferences.pinned),e[43]=c.preferences.pinned,e[44]=ye):ye=e[44],q=ye;let ge;e[45]!==c.preferences.hidden?(ge=new Set(c.preferences.hidden),e[45]=c.preferences.hidden,e[46]=ge):ge=e[46],$=ge;let je;e[47]!==c.folders||e[48]!==u.id||e[49]!==u.kind?(je=u.kind==="project"?c.folders.find(T=>T.projectIds.includes(u.id))?.id:void 0,e[47]=c.folders,e[48]=u.id,e[49]=u.kind,e[50]=je):je=e[50],k=je;let ve;e[51]!==c.folders||e[52]!==u.id||e[53]!==u.kind?(ve=u.kind==="folder"?c.folders.find(T=>T.id===u.id):void 0,e[51]=c.folders,e[52]=u.id,e[53]=u.kind,e[54]=ve):ve=e[54],U=ve;let _e;e[55]===Symbol.for("react.memo_cache_sentinel")?(_e=()=>y(!0),e[55]=_e):_e=e[55];let $e;e[56]!==s?($e=s("sidebar.projects.customize"),e[56]=s,e[57]=$e):$e=e[57];let Ae;e[58]!==$e?(Ae=n.jsx(ue,{onSelect:_e,children:$e}),e[58]=$e,e[59]=Ae):Ae=e[59],S=Ae;let Fe;e[60]!==l||e[61]!==C||e[62]!==I||e[63]!==s||e[64]!==d?(Fe=T=>n.jsxs("span",{className:"-mr-1 flex shrink-0 items-center gap-0.5",children:[n.jsxs(Xe,{children:[n.jsx(et,{asChild:!0,children:n.jsx("button",{type:"button","aria-label":s(T?"sidebar.customize.folderOptions":"sidebar.projects.more"),title:s(T?"sidebar.customize.folderOptions":"sidebar.projects.more"),className:"flex size-5 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-sidebar-accent hover:text-sidebar-foreground",children:n.jsx(tt,{size:14})})}),n.jsxs(st,{align:"start",children:[T&&n.jsx(pe,{onSelect:()=>C(T.id,!0),children:s("sidebar.projects.hideFolder")}),T&&l&&n.jsxs(n.Fragment,{children:[n.jsx(pe,{onSelect:()=>b({kind:"rename",folderId:T.id,name:T.name}),children:s("sidebar.projects.renameFolder")}),n.jsx(pe,{variant:"destructive",onSelect:()=>d.mutate(F=>Ve(F,T.id)),children:s("sidebar.projects.deleteFolder")})]}),T&&n.jsx(Ds,{}),l&&n.jsx(pe,{onSelect:()=>b({kind:"create"}),children:s("sidebar.projects.newFolder")}),n.jsx(pe,{onSelect:()=>y(!0),children:s("sidebar.projects.customize")})]})]}),l&&n.jsx("button",{type:"button","aria-label":s("projects.home.newProject"),title:s("projects.home.newProject"),onClick:()=>Zt("sidebar",T?{onCreated:F=>I(F,T.id)}:void 0),className:"flex size-5 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-sidebar-accent hover:text-sidebar-foreground",children:n.jsx(He,{size:14})})]}),e[60]=l,e[61]=C,e[62]=I,e[63]=s,e[64]=d,e[65]=Fe):Fe=e[65];const lt=Fe;let Oe;e[66]!==i||e[67]!==f?(Oe=T=>T.map(F=>n.jsx(as,{project:F,onNavigate:i,waiting:f.get(F.id)},F.id)),e[66]=i,e[67]=f,e[68]=Oe):Oe=e[68];const rt=Oe;v=ri,j=ai,Y=!0,J="flex flex-col gap-4",G=ke.projects,e[69]===Symbol.for("react.memo_cache_sentinel")?(V=T=>x(Lo(T)),e[69]=V):V=e[69],ee=M.pinned.length>0&&n.jsxs("div",{className:"flex flex-col gap-1",children:[!o&&n.jsx(Bo,{label:s("sidebar.projects.pinned")}),n.jsx(te,{className:"gap-1",children:rt(M.pinned)})]}),W=o?n.jsxs(te,{className:"gap-1",children:[rt([...M.folders.flatMap(Ho),...M.loose]),l&&n.jsx(Ne,{icon:n.jsx(He,{size:16}),label:s("projects.home.newProject"),onSelect:Ko})]}):n.jsx(ht,{label:s("sidebar.projects.heading"),projects:M.loose,onNavigate:i,waitingByProject:f,actions:lt(null)}),K=!o&&M.folders.map(T=>{const{folder:F,projects:le}=T;return n.jsx(ht,{label:F.name,contextId:`folder:${F.id}`,folderId:F.id,projects:le,onNavigate:i,waitingByProject:f,actions:lt(F)},F.id)}),e[1]=l,e[2]=o,e[3]=i,e[4]=r,e[5]=c.folders,e[6]=c.preferences,e[7]=s,e[8]=u.id,e[9]=u.kind,e[10]=d,e[11]=m,e[12]=f,e[13]=j,e[14]=v,e[15]=S,e[16]=k,e[17]=w,e[18]=$,e[19]=N,e[20]=C,e[21]=I,e[22]=A,e[23]=q,e[24]=B,e[25]=J,e[26]=G,e[27]=V,e[28]=ee,e[29]=W,e[30]=K,e[31]=Y,e[32]=U}else j=e[13],v=e[14],S=e[15],k=e[16],w=e[17],$=e[18],N=e[19],C=e[20],I=e[21],A=e[22],q=e[23],B=e[24],J=e[25],G=e[26],V=e[27],ee=e[28],W=e[29],K=e[30],Y=e[31],U=e[32];let Q;e[70]!==o||e[71]!==w||e[72]!==s?(Q=w>0&&!o&&n.jsx(te,{children:n.jsx(Ne,{icon:n.jsx(vn,{size:16}),label:s("sidebar.projects.hiddenCount",{count:w}),className:"text-muted-foreground",onSelect:()=>y(!0)})}),e[70]=o,e[71]=w,e[72]=s,e[73]=Q):Q=e[73];let Z;e[74]!==J||e[75]!==G||e[76]!==V||e[77]!==ee||e[78]!==W||e[79]!==K||e[80]!==Q?(Z=n.jsxs("div",{className:J,"data-tour":G,onContextMenu:V,children:[ee,W,K,Q]}),e[74]=J,e[75]=G,e[76]=V,e[77]=ee,e[78]=W,e[79]=K,e[80]=Q,e[81]=Z):Z=e[81];let z;e[82]!==j||e[83]!==Z||e[84]!==Y?(z=n.jsx(j,{asChild:Y,children:Z}),e[82]=j,e[83]=Z,e[84]=Y,e[85]=z):z=e[85];let R;e[86]!==l||e[87]!==S||e[88]!==k||e[89]!==$||e[90]!==N||e[91]!==I||e[92]!==A||e[93]!==q||e[94]!==c.folders||e[95]!==s||e[96]!==u.id||e[97]!==u.kind?(R=u.kind==="project"&&n.jsxs(n.Fragment,{children:[n.jsx(ue,{onSelect:()=>A(u.id,!q.has(u.id)),children:s(q.has(u.id)?"sidebar.projects.unpin":"sidebar.projects.pin")}),n.jsx(ue,{onSelect:()=>N(u.id,!$.has(u.id)),children:s($.has(u.id)?"sidebar.projects.show":"sidebar.projects.hide")}),l&&n.jsxs(ii,{children:[n.jsx(oi,{children:s("sidebar.projects.moveTo")}),n.jsxs(li,{className:"w-48",children:[c.folders.map(M=>n.jsx(ue,{disabled:M.id===k,onSelect:()=>I(u.id,M.id),children:M.name},M.id)),k&&n.jsx(ue,{onSelect:()=>I(u.id,null),children:s("sidebar.projects.noFolder")}),c.folders.length>0&&n.jsx(Ue,{}),n.jsx(ue,{onSelect:()=>b({kind:"create",projectId:u.id}),children:s("sidebar.projects.newFolder")})]})]}),n.jsx(Ue,{}),S]}),e[86]=l,e[87]=S,e[88]=k,e[89]=$,e[90]=N,e[91]=I,e[92]=A,e[93]=q,e[94]=c.folders,e[95]=s,e[96]=u.id,e[97]=u.kind,e[98]=R):R=e[98];let P;e[99]!==l||e[100]!==S||e[101]!==C||e[102]!==s||e[103]!==u.kind||e[104]!==U||e[105]!==d?(P=u.kind==="folder"&&U&&n.jsxs(n.Fragment,{children:[n.jsx(ue,{onSelect:()=>C(U.id,!0),children:s("sidebar.projects.hideFolder")}),l&&n.jsxs(n.Fragment,{children:[n.jsx(ue,{onSelect:()=>b({kind:"rename",folderId:U.id,name:U.name}),children:s("sidebar.projects.renameFolder")}),n.jsx(ue,{variant:"destructive",onSelect:()=>d.mutate(M=>Ve(M,U.id)),children:s("sidebar.projects.deleteFolder")})]}),n.jsx(Ue,{}),l&&n.jsx(ue,{onSelect:()=>b({kind:"create"}),children:s("sidebar.projects.newFolder")}),S]}),e[99]=l,e[100]=S,e[101]=C,e[102]=s,e[103]=u.kind,e[104]=U,e[105]=d,e[106]=P):P=e[106];let O;e[107]!==l||e[108]!==S||e[109]!==s||e[110]!==u.kind?(O=u.kind==="none"&&n.jsxs(n.Fragment,{children:[l&&n.jsx(ue,{onSelect:()=>b({kind:"create"}),children:s("sidebar.projects.newFolder")}),S]}),e[107]=l,e[108]=S,e[109]=s,e[110]=u.kind,e[111]=O):O=e[111];let D;e[112]!==R||e[113]!==P||e[114]!==O?(D=n.jsxs(ci,{className:"w-52",children:[R,P,O]}),e[112]=R,e[113]=P,e[114]=O,e[115]=D):D=e[115];let H;e[116]!==v||e[117]!==z||e[118]!==D?(H=n.jsxs(v,{children:[z,D]}),e[116]=v,e[117]=z,e[118]=D,e[119]=H):H=e[119];let Se;e[120]===Symbol.for("react.memo_cache_sentinel")?(Se=()=>b(null),e[120]=Se):Se=e[120];let ce;e[121]!==h||e[122]!==B?(ce=n.jsx(Eo,{request:h,onClose:Se,onSave:B}),e[121]=h,e[122]=B,e[123]=ce):ce=e[123];let se;e[124]!==d?(se=M=>d.mutate(ie=>Ve(ie,M)),e[124]=d,e[125]=se):se=e[125];let ne;e[126]!==l||e[127]!==g||e[128]!==N||e[129]!==C||e[130]!==I||e[131]!==A||e[132]!==r||e[133]!==c.folders||e[134]!==c.preferences||e[135]!==se?(ne=n.jsx(To,{open:g,onOpenChange:y,projects:r,folders:c.folders,preferences:c.preferences,canManage:l,onPin:A,onHide:N,onHideFolder:C,onMove:I,onRequestFolderName:b,onDeleteFolder:se}),e[126]=l,e[127]=g,e[128]=N,e[129]=C,e[130]=I,e[131]=A,e[132]=r,e[133]=c.folders,e[134]=c.preferences,e[135]=se,e[136]=ne):ne=e[136];let xe;return e[137]!==H||e[138]!==ce||e[139]!==ne?(xe=n.jsxs(n.Fragment,{children:[H,ce,ne]}),e[137]=H,e[138]=ce,e[139]=ne,e[140]=xe):xe=e[140],xe}function Ko(){return Zt("sidebar")}function Ho(t){return t.projects}function Wo(t,e){return t+e.projects.length}function Qo(){const t=_.c(8),e=E(),{capabilities:i,isPrivileged:s,loading:o,error:l}=Ms(),r=ki().length,a=Es();let c;return t[0]!==i||t[1]!==l||t[2]!==s||t[3]!==r||t[4]!==o||t[5]!==e||t[6]!==a?(c=[{key:"account",label:"",items:[{key:"profile",label:e("settings.nav.profile"),icon:n.jsx(Rs,{size:14}),to:"/$org/settings/profile"}]},{key:"organization",label:e("settings.nav.organization"),items:[{key:"general",label:e("settings.nav.general"),icon:n.jsx(ji,{size:14}),to:"/$org/settings/general"},{key:"billing",label:e("settings.nav.billing"),icon:n.jsx(vi,{size:14}),to:"/$org/settings/ai-providers",group:"billing"},{key:"connect",label:e("settings.nav.connect"),icon:n.jsx(jt,{size:14}),to:"/$org/settings/connect",group:"connect"},{key:"tasks",label:e("settings.nav.tasks"),icon:n.jsx(Ot,{size:14}),to:"/$org/settings/task-board",requires:"org:manage"}]},{key:"build",label:e("settings.nav.build"),items:[{key:"projects",label:e("projects.settings.title"),icon:n.jsx(Dt,{size:14}),to:"/$org/settings/projects"},{key:"automations",label:e("settings.nav.automations"),icon:n.jsx(yi,{size:14}),to:"/$org/settings/automations",requires:"automations:manage"}]},{key:"manage",label:e("settings.nav.manage"),items:[{key:"monitor",label:e("settings.nav.monitor"),icon:n.jsx(bn,{size:14}),to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:e("settings.nav.members"),icon:n.jsx(vt,{size:14}),to:"/$org/settings/members",group:"members",badge:r}]},{key:"advanced",label:e("settings.nav.advanced"),collapsible:!0,items:[{key:"secrets",label:e("settings.nav.secrets"),icon:n.jsx(Si,{size:14}),to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"storage",label:e("settings.nav.storage"),icon:n.jsx(Ls,{size:14}),to:"/$org/settings/buckets",group:"storage"},{key:"sso",label:e("settings.nav.security"),icon:n.jsx(Ge,{size:14}),to:"/$org/settings/sso",requires:"org:manage"}]}].map(m=>({...m,items:m.items.flatMap(d=>{if(d.group){const[p]=a[d.group];return p?[{...d,to:p.to}]:qs(d.group)?[]:[d]}return o||l?[d]:d.privilegedOnly?s?[d]:[]:d.requires?s||i[d.requires]?[d]:[]:[d]})})).filter(Go),t[0]=i,t[1]=l,t[2]=s,t[3]=r,t[4]=o,t[5]=e,t[6]=a,t[7]=c):c=t[7],c}function Go(t){return t.items.length>0}function cs(){const t=_.c(8);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org"},t[0]=e):e=t[0];const{org:i}=Bs(e);let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s={select:Jo},t[1]=s):s=t[1];const o=Us(s);let l;if(t[2]!==i||t[3]!==o){const c=f=>{const m=f.replace("$org",i);return o===m||o.startsWith(`${m}/`)};l=f=>[f.to,...f.group?Vs(f.group):[]].some(c),t[2]=i,t[3]=o,t[4]=l}else l=t[4];const r=l;let a;return t[5]!==r||t[6]!==i?(a={org:i,isActive:r},t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Jo(t){return t.location.pathname}function Yo(){const t=_.c(9),{isActive:e}=cs();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={},t[0]=i):i=t[0];const[s,o]=ae.useState(i);let l;t[1]!==e||t[2]!==s?(l=m=>s[m.key]??(!m.collapsible||m.items.some(e)),t[1]=e,t[2]=s,t[3]=l):l=t[3];const r=l;let a;t[4]!==r?(a=m=>o(d=>({...d,[m.key]:!r(m)})),t[4]=r,t[5]=a):a=t[5];const c=a;let f;return t[6]!==r||t[7]!==c?(f={isOpen:r,toggle:c},t[6]=r,t[7]=c,t[8]=f):f=t[8],f}function Zo(t){const e=_.c(21),{group:i,open:s,onToggle:o,className:l}=t;let r,a,c,f,m;if(e[0]!==l||e[1]!==i.collapsible||e[2]!==i.label||e[3]!==o||e[4]!==s){m=Symbol.for("react.early_return_sentinel");e:{const x=L("text-xs font-medium text-muted-foreground/60 truncate",l);if(!i.collapsible){m=n.jsx("p",{className:x,children:i.label});break e}r="button",a=o,c=s,f=L("flex w-full items-center gap-1 rounded-lg hover:text-muted-foreground",x)}e[0]=l,e[1]=i.collapsible,e[2]=i.label,e[3]=o,e[4]=s,e[5]=r,e[6]=a,e[7]=c,e[8]=f,e[9]=m}else r=e[5],a=e[6],c=e[7],f=e[8],m=e[9];if(m!==Symbol.for("react.early_return_sentinel"))return m;let d;e[10]!==s?(d=s?n.jsx(Yt,{size:12}):n.jsx($t,{size:12}),e[10]=s,e[11]=d):d=e[11];let p;e[12]!==i.label?(p=n.jsx("span",{className:"truncate",children:i.label}),e[12]=i.label,e[13]=p):p=e[13];let u;return e[14]!==r||e[15]!==a||e[16]!==c||e[17]!==f||e[18]!==d||e[19]!==p?(u=n.jsxs("button",{type:r,onClick:a,"aria-expanded":c,className:f,children:[d,p]}),e[14]=r,e[15]=a,e[16]=c,e[17]=f,e[18]=d,e[19]=p,e[20]=u):u=e[20],u}function Xo(t){const e=_.c(5),{icon:i,badge:s}=t;let o;e[0]!==s?(o=s?n.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-destructive pointer-events-none"}):null,e[0]=s,e[1]=o):o=e[1];let l;return e[2]!==i||e[3]!==o?(l=n.jsxs("span",{className:"relative shrink-0",children:[i,o]}),e[2]=i,e[3]=o,e[4]=l):l=e[4],l}function ds(t){const e=_.c(24),{onNavigate:i}=t,s=nt(),o=E(),l=Qo(),{org:r,isActive:a}=cs(),{isOpen:c,toggle:f}=Yo();let m;if(e[0]!==s||e[1]!==l||e[2]!==a||e[3]!==c||e[4]!==i||e[5]!==r||e[6]!==f){let b;e[8]!==s||e[9]!==a||e[10]!==c||e[11]!==i||e[12]!==r||e[13]!==f?(b=(g,y)=>n.jsxs("div",{className:"flex flex-col",children:[g.label&&!s&&n.jsx(Zo,{group:g,open:c(g),onToggle:()=>f(g),className:L("px-2 pt-1.5 pb-0.5",y>0&&"mt-3")}),(s||c(g))&&n.jsx(te,{className:"gap-0.5",children:g.items.map(j=>n.jsx(Ne,{icon:n.jsx(Xo,{icon:j.icon,badge:j.badge}),label:j.label,isActive:a(j),link:{to:j.to,params:{org:r}},className:"gap-2.5",onSelect:()=>{fe("settings_nav_clicked",{section_key:j.key,group_key:g.key}),i?.()}},j.key))})]},g.key),e[8]=s,e[9]=a,e[10]=c,e[11]=i,e[12]=r,e[13]=f,e[14]=b):b=e[14],m=l.map(b),e[0]=s,e[1]=l,e[2]=a,e[3]=c,e[4]=i,e[5]=r,e[6]=f,e[7]=m}else m=e[7];let d;e[15]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("div",{className:"mx-2 my-2 border-t border-border/50 hidden"}),e[15]=d):d=e[15];let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx("span",{className:"shrink-0",children:n.jsx(Ke,{size:14})}),e[16]=p):p=e[16];let u;e[17]!==o?(u=o("settings.nav.signOut"),e[17]=o,e[18]=u):u=e[18];let x;e[19]!==u?(x=n.jsxs("div",{className:"mt-auto flex flex-col pt-4",children:[d,n.jsx(te,{className:"gap-0.5",children:n.jsx(Ne,{icon:p,label:u,className:"gap-2.5",onSelect:el})})]}),e[19]=u,e[20]=x):x=e[20];let h;return e[21]!==m||e[22]!==x?(h=n.jsxs(n.Fragment,{children:[m,x]}),e[21]=m,e[22]=x,e[23]=h):h=e[23],h}function el(){fe("signed_out",{source:"settings_sidebar"}),St(),Te.signOut()}function ms(t){const e=_.c(8),{onNavigate:i}=t,s=E(),{org:o}=X();let l;e[0]!==s?(l=s("settings.nav.backToHome"),e[0]=s,e[1]=l):l=e[1];let r;e[2]!==o.slug?(r={to:"/$org/home",params:{org:o.slug}},e[2]=o.slug,e[3]=r):r=e[3];let a;return e[4]!==i||e[5]!==l||e[6]!==r?(a=n.jsx(Qi,{label:l,link:r,onSelect:i}),e[4]=i,e[5]=l,e[6]=r,e[7]=a):a=e[7],a}function us(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx("div",{className:"px-4 pb-1 group-data-[state=collapsed]/sidebar:hidden",children:n.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.619.10"]})}),t[0]=e):e=t[0],e}const tl="pt-1.5";function fs(t){const e=_.c(18),{header:i,back:s,body:o,footer:l,sheet:r}=t;let a;e[0]!==i?(a=i&&n.jsx("div",{"data-slot":"sidebar-picker-header",className:"flex h-12 shrink-0 flex-row items-center gap-1 px-2 group-data-[state=collapsed]/sidebar:h-auto group-data-[state=collapsed]/sidebar:flex-col group-data-[state=collapsed]/sidebar:gap-2 group-data-[state=collapsed]/sidebar:py-2",children:i}),e[0]=i,e[1]=a):a=e[1];let c;e[2]!==i?(c=i&&n.jsx("div",{className:"hidden mt-1.5 h-px shrink-0 bg-sidebar-border"}),e[2]=i,e[3]=c):c=e[3];let f;e[4]!==s?(f=s&&n.jsx("div",{className:"sticky top-0 z-10 hidden shrink-0 bg-sidebar pb-2 not-empty:block",children:s}),e[4]=s,e[5]=f):f=e[5];let m;e[6]!==o||e[7]!==f?(m=n.jsxs(Nn,{className:"gap-0 overflow-y-auto px-2 pt-3 pb-2 group-data-[state=collapsed]/sidebar:[scrollbar-width:none] group-data-[state=collapsed]/sidebar:[&::-webkit-scrollbar]:hidden",children:[f,o]}),e[6]=o,e[7]=f,e[8]=m):m=e[8];let d;e[9]!==l||e[10]!==a||e[11]!==c||e[12]!==m?(d=n.jsxs(n.Fragment,{children:[a,c,m,l]}),e[9]=l,e[10]=a,e[11]=c,e[12]=m,e[13]=d):d=e[13];const p=d;if(r){let x;return e[14]!==p?(x=n.jsx("div",{className:"group/sidebar flex h-full w-full flex-col bg-sidebar text-sidebar-foreground","data-sidebar":"sidebar","data-state":"expanded","data-tour":ke.nav,children:p}),e[14]=p,e[15]=x):x=e[15],x}let u;return e[16]!==p?(u=n.jsx(_n,{className:tl,"data-tour":ke.nav,children:p}),e[16]=p,e[17]=u):u=e[17],u}function ps(t){const e=_.c(2),{onNavigate:i}=t;let s;return e[0]!==i?(s=n.jsx(Ks,{children:n.jsxs("div",{className:"flex flex-col gap-6",children:[n.jsx(eo,{onNavigate:i}),n.jsx(uo,{onNavigate:i}),n.jsx(Vo,{onNavigate:i})]})}),e[0]=i,e[1]=s):s=e[1],s}function sl(){const t=_.c(10),e=It();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(ao,{}),t[0]=i):i=t[0];let s;t[1]!==e?(s=e&&n.jsx(ms,{}),t[1]=e,t[2]=s):s=t[2];let o,l;t[3]!==e?(o=e?n.jsx(ds,{}):n.jsx(ps,{}),l=e?n.jsx(us,{}):n.jsx(io,{}),t[3]=e,t[4]=o,t[5]=l):(o=t[4],l=t[5]);let r;return t[6]!==s||t[7]!==o||t[8]!==l?(r=n.jsx(fs,{header:i,back:s,body:o,footer:l}),t[6]=s,t[7]=o,t[8]=l,t[9]=r):r=t[9],r}function nl(t){const e=_.c(15),{onClose:i}=t,s=It();let o;e[0]!==i?(o=n.jsx(co,{onClose:i}),e[0]=i,e[1]=o):o=e[1];let l;e[2]!==s||e[3]!==i?(l=s&&n.jsx(ms,{onNavigate:i}),e[2]=s,e[3]=i,e[4]=l):l=e[4];let r;e[5]!==s||e[6]!==i?(r=s?n.jsx(ds,{onNavigate:i}):n.jsx(ps,{onNavigate:i}),e[5]=s,e[6]=i,e[7]=r):r=e[7];let a;e[8]!==s?(a=s?n.jsx(us,{}):n.jsx(oo,{}),e[8]=s,e[9]=a):a=e[9];let c;return e[10]!==o||e[11]!==l||e[12]!==r||e[13]!==a?(c=n.jsx(fs,{sheet:!0,header:o,back:l,body:r,footer:a}),e[10]=o,e[11]=l,e[12]=r,e[13]=a,e[14]=c):c=e[14],c}const il=new Set(["completed","failed","requires_action"]);function ol(t){const e=_.c(5),[i]=bt();let s;e[0]!==i?(s=l=>{i.enableSounds&&il.has(l.data.status)&&Ni(_i.dataUri).catch(ll)},e[0]=i,e[1]=s):s=e[1];let o;e[2]!==t||e[3]!==s?(o={orgSlug:t,onTaskStatus:s},e[2]=t,e[3]=s,e[4]=o):o=e[4],wi(o)}function ll(t){console.warn("[status-sounds] playback failed:",t)}const rl=2e3,al=4e4;function cl(t){return t==="success"||t==="updated"}function dl(t){const e=_.c(15);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},e[0]=i):i=e[0];const s=Hs(i),o=Je();let l;e[1]!==s.checkout?(l=cl(s.checkout),e[1]=s.checkout,e[2]=l):l=e[2];const r=l,[a]=ae.useState(ml);let c;e[3]!==t?(c=Ee.checkoutReturnPoll(t),e[3]=t,e[4]=c):c=e[4];let f;e[5]!==a?(f=()=>Date.now()<a?rl:!1,e[5]=a,e[6]=f):f=e[6];let m;e[7]!==t||e[8]!==o?(m=async()=>(await o.invalidateQueries({queryKey:Ee.aiPlanEntitlements(t)}),Date.now()),e[7]=t,e[8]=o,e[9]=m):m=e[9];let d;e[10]!==r||e[11]!==c||e[12]!==f||e[13]!==m?(d={queryKey:c,enabled:r,gcTime:0,staleTime:0,refetchInterval:f,queryFn:m},e[10]=r,e[11]=c,e[12]=f,e[13]=m,e[14]=d):d=e[14],Ye(d)}function ml(){return Date.now()+al}function Sa(){const t=_.c(3),{org:e}=X();ol(e.slug),dl(e.id);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx($i,{}),t[0]=i):i=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(Be.Sidebar,{renderMobile:ul,children:n.jsx(sl,{})}),t[1]=s):s=t[1];let o;return t[2]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsxs(Be,{notice:i,children:[s,n.jsx(Be.Content,{children:n.jsx(Ws,{})})]}),t[2]=o):o=t[2],o}function ul(t){const{onClose:e}=t;return n.jsx(nl,{onClose:e})}export{Sa as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as H,b as I,a6 as $,j as u,n as R,m as _}from"./index-
|
|
1
|
+
import{c as H,b as I,a6 as $,j as u,n as R,m as _}from"./index-DmyPeHtj.js";import{i as v}from"./LayoutLeft-D6A6HKPj.js";import{c as w,u as D}from"./use-sidebar-collapsed-BsHAzi2v.js";import{T as P,a as B,c as E}from"./tooltip-CnD2gBxQ.js";import{T as O}from"./toolbar-icon-button-BXZ6Fg9k.js";import{u as z}from"./use-project-scope-sgJLxDnc.js";import{a as A}from"./use-current-view-DrUxoucV.js";function M(y){const e=H.c(34),{actions:f,navigation:j,trailingActions:a}=y,s=I(),{org:t}=$(),x=z(),{project:g,title:o,isHome:r,inSettings:p}=A();let l;e[0]!==g?.title||e[1]!==s?(l=g?.title??s("common.loading"),e[0]=g?.title,e[1]=s,e[2]=l):l=e[2];const i=l,c=x??"";let d;e[3]!==t.slug||e[4]!==c?(d={to:"/$org/projects/$agentId",params:{org:t.slug,agentId:c}},e[3]=t.slug,e[4]=c,e[5]=d):d=e[5];const h=d;let m;if(e[6]!==p||e[7]!==r||e[8]!==t.slug||e[9]!==h||e[10]!==i||e[11]!==x||e[12]!==s||e[13]!==o){if(m=[],p){let n;e[15]!==s?(n=s("sidebar.navDestinations.settings"),e[15]=s,e[16]=n):n=e[16];let b;e[17]!==t.slug?(b={to:"/$org/settings/general",params:{org:t.slug}},e[17]=t.slug,e[18]=b):b=e[18];let C;e[19]!==n||e[20]!==b?(C={key:"settings",label:n,link:b},e[19]=n,e[20]=b,e[21]=C):C=e[21],m.push(C)}else if(x&&!r){let n;e[22]!==h||e[23]!==i?(n={key:"project",label:i,link:h},e[22]=h,e[23]=i,e[24]=n):n=e[24],m.push(n)}let k;e[25]!==o?(k={key:"page",label:o},e[25]=o,e[26]=k):k=e[26],m.push(k),e[6]=p,e[7]=r,e[8]=t.slug,e[9]=h,e[10]=i,e[11]=x,e[12]=s,e[13]=o,e[14]=m}else m=e[14];let S;e[27]===Symbol.for("react.memo_cache_sentinel")?(S=u.jsx(L,{}),e[27]=S):S=e[27];let T;return e[28]!==f||e[29]!==m||e[30]!==j||e[31]!==t.name||e[32]!==a?(T=u.jsx(R.Header,{leading:S,breadcrumbs:m,scope:t.name,actions:f,navigation:j,trailingActions:a}),e[28]=f,e[29]=m,e[30]=j,e[31]=t.name,e[32]=a,e[33]=T):T=e[33],T}function L(y){const e=H.c(16),{showOnDesktop:f}=y,j=f===void 0?!0:f,a=I(),{toggleSidebar:s}=w(),t=D(),g=!(j&&t)&&"md:hidden";let o;e[0]!==g?(o=_(g),e[0]=g,e[1]=o):o=e[1];let r;e[2]!==a?(r=a("page.expandSidebar"),e[2]=a,e[3]=r):r=e[3];let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=u.jsx(v,{size:16}),e[4]=p):p=e[4];let l;e[5]!==o||e[6]!==r||e[7]!==s?(l=u.jsx(P,{asChild:!0,children:u.jsx(O,{className:o,onClick:s,"aria-label":r,children:p})}),e[5]=o,e[6]=r,e[7]=s,e[8]=l):l=e[8];let i;e[9]!==a?(i=a("page.expandSidebar"),e[9]=a,e[10]=i):i=e[10];let c;e[11]!==i?(c=u.jsx(B,{side:"bottom",children:i}),e[11]=i,e[12]=c):c=e[12];let d;return e[13]!==l||e[14]!==c?(d=u.jsxs(E,{children:[l,c]}),e[13]=l,e[14]=c,e[15]=d):d=e[15],d}export{M as R,L as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as S}from"./sandbox-url-D3mC8qhT.js";import{aJ as h,bF as g,aK as c,dH as O}from"./index-
|
|
1
|
+
import{b as S}from"./sandbox-url-D3mC8qhT.js";import{aJ as h,bF as g,aK as c,dH as O}from"./index-DmyPeHtj.js";function s(e,n){return S(e,`git/${n}`)}class l extends Error{constructor(n,t){super(n),this.status=t,this.name="SandboxGitError"}status}function F(e){return e instanceof l&&(e.status===503||e.status===410||e.status===404)}function P(e,n){return n instanceof l&&n.status===429?!1:e<1}const G=h({code:O("block-deleted-on-base"),error:c(),blocks:g(h({path:c(),key:c(),renamedTo:c().optional(),missingRefs:g(c())})).min(1)});class p extends Error{constructor(n,t){super(n),this.blocks=t,this.name="BlocksDeletedOnBaseError"}blocks}async function i(e){let n;try{n=await e.json()}catch{throw new l(`Request failed (${e.status})`,e.status)}const t=e.status===409?G.safeParse(n):null;if(t?.success)throw new p(t.data.error,t.data.blocks);if(!e.ok)throw new l(typeof n.error=="string"?n.error:`Request failed (${e.status})`,e.status);return n}function o(e,n){return fetch(e,{cache:"no-store",...n})}async function k(e){const n=await o(s(e,"status"),void 0);return i(n)}async function u(e,n){const t=await o(s(e,"diff"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({...n?.base?{base:n.base}:{},...n?.headSha?{headSha:n.headSha}:{}})});return i(t)}function B(e){const n={};for(const[t,r]of Object.entries(e.diffs))d(t)||f(t)||(n[t]=r);return{...e,diffs:n}}async function N(e,n){const t=await o(s(e,"publish"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({message:n})});await i(t)}async function H(e,n,t){const r=await o(s(e,"rebase"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({base:n,...t?{resolutions:t}:{}})});await i(r)}function d(e){return e==="blocks.gen.json"||e.endsWith("/blocks.gen.json")}function f(e){return e==="static/tailwind.css"||e.endsWith("/static/tailwind.css")}function j(e){return d(e)||f(e)||e.endsWith("generate.digests.json")||e.endsWith("meta.gen.json")}function x(e){return e?e.conflicted.length>0||e.renamed.length>0?!0:[...e.modified,...e.created,...e.deleted,...e.not_added,...e.staged].some(n=>!j(n)):!1}function I(e){return e?!x(e)&&(e.aheadOfBase??0)===0&&(e.unpushed??0)===0:!1}function T(e){return e===".deco"||e.endsWith("/.deco")||e.startsWith(".deco/")||e.includes("/.deco/")}function b(e){return e.length===0?!1:e.every(n=>T(n)||d(n)||f(n))}function y(e){return e?b(Object.keys(e.diffs)):!1}const D="smart";function L(e){return e==="code-review"||e==="open"||e==="smart"?e:D}function U(e){let n=5381;const t=r=>{for(let a=0;a<r.length;a++)n=(n<<5)+n+r.charCodeAt(a)|0};for(const r of Object.keys(e.diffs).sort()){const a=e.diffs[r];t(r),t("\0from:"),t(a?.from??""),t("\0to:"),t(a?.to??""),t("\0\0")}return(n>>>0).toString(36)}async function K(e,n){const t=await o(s(e,"judge-review"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({status:n.status,diff:B(n.diff),...n.language?{language:n.language}:{}})});return i(t)}async function Q(e,n){const t=await o(s(e,"discard"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({filepaths:n})});await i(t)}const v="current";function $(e){return e?.[v]??null}function M(e,n,t){return["sandbox-git-status",e,n,t]}function E(e){return["sandbox-git-status",e.orgSlug,e.virtualMcpId,e.branch,e.threadId]}const R=5e3;function Y(e){return{queryKey:E(e),queryFn:()=>k(e),staleTime:R,retry:P}}function _(e){return e?e.modified.length+e.created.length+e.deleted.length+e.not_added.length+e.renamed.length:0}function J(e){return e?_(e)>0||e.staged.length>0||e.conflicted.length>0:!1}function W(e,n){return{diffs:{...e?.diffs??{},...n?.diffs??{}},...e?.mergeBaseSha?{mergeBaseSha:e.mergeBaseSha}:{}}}function q(e){return e.aheadOfBase===void 0||e.aheadOfBase>0||e.ahead>0||(e.unpushed??0)>0}async function z(e,n,t,r){if(r?.fastPreview)return u(e,{base:t});const a=n.headSha?{base:t,headSha:n.headSha}:{base:t},[m,w]=await Promise.all([q(n)?u(e,a):null,J(n)?u(e):null]);return W(m,w)}function V(e,n="code-review"){return n==="open"?{allowed:!0,reason:null}:y(e)?{allowed:!0,reason:null}:{allowed:!1,reason:null}}function X(e,n){return e.length===0?{allowed:!1,reason:null}:n==="open"?{allowed:!0,reason:null}:b(e)?{allowed:!0,reason:null}:n==="smart"?{allowed:!1,reason:null,pending:!0}:{allowed:!1,reason:null}}function Z(e,n){return n!=="smart"||!e||Object.keys(e.diffs).length===0?!1:!y(e)}function ee(e,n){if(n)return{allowed:!1,reason:null,pending:!0};if(!e)return{allowed:!0,reason:null};if(!e.requiresReview)return{allowed:!0,reason:null};const t=e.reason?.trim();return{allowed:!1,reason:t||null}}export{p as B,M as a,Y as b,F as c,z as d,K as e,k as f,X as g,J as h,j as i,V as j,ee as k,$ as l,q as m,Z as n,x as o,L as p,H as q,U as r,E as s,I as t,N as u,Q as v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{q as P,r as i,ej as ce,eh as le,e as de,cL as X,c as q,j as H,a6 as fe,T as Se}from"./index-
|
|
1
|
+
import{q as P,r as i,ej as ce,eh as le,e as de,cL as X,c as q,j as H,a6 as fe,T as Se}from"./index-DmyPeHtj.js";import{h as me,c as pe,u as ye}from"./chat-context-CqcR4aAu.js";import{u as Ee}from"./use-mcp-client-DfqrKiZY.js";import{u as he}from"./use-voice-input-DguZp9dH.js";import{c as xe}from"./thread-intent-1kOP6maa.js";import{e as Re}from"./backoff-CrEUbyZT.js";import{u as we}from"./use-sandbox-events-D7X3VYGW.js";import{d as Ae}from"./sandbox-start-errors-BK_aDCyt.js";function Te(e,t){const n=P(t);return Pe({filters:{...e,status:"pending"}},n).length}function I(e,t){return e.findAll(t.filters).map(n=>t.select?t.select(n):n.state)}function Pe(e={},t){const n=P(t).getMutationCache(),r=i.useRef(e),s=i.useRef(null);return s.current===null&&(s.current=I(n,e)),i.useEffect(()=>{r.current=e}),i.useSyncExternalStore(i.useCallback(o=>n.subscribe(()=>{const u=ce(s.current,I(n,r.current));s.current!==u&&(s.current=u,le.schedule(o))}),[n]),()=>s.current,()=>s.current)}async function be(e,t,n){const r=await e.callTool({name:t,arguments:n});if(r.isError){const s=r.content?.[0]?.text??`Tool ${t} failed without a message`;throw new Error(s)}return r}const Y=["SANDBOX_START"],w=new Map,Ce=e=>`${e.virtualMcpId}::${e.branch??""}`,ke=e=>e.message.includes("retry shortly"),L=new Set,g={mark:(e,t)=>L.add(`${e}::${t}`),clear:(e,t)=>L.delete(`${e}::${t}`),isStopped:(e,t)=>L.has(`${e}::${t}`)};function _e(e,t){const n=P();return de({mutationKey:Y,retry:(r,s)=>ke(s)&&r<6,retryDelay:r=>Re(5e3,500,r,2,0),mutationFn:async r=>{r.branch&&g.clear(r.virtualMcpId,r.branch);const s=Ce(r),o=w.get(s);if(o)return o;const u=(async()=>(await be(e,"SANDBOX_START",r)).structuredContent)();w.set(s,u);try{return await u}finally{w.get(s)===u&&w.delete(s)}},onSuccess:()=>{X(n),t?.onStarted?.()}})}function Ge(e,t){const n=q.c(3);let r;return n[0]!==t||n[1]!==e?(r={mutationKey:Y,predicate:o=>{if(!e)return!1;const u=o.state.variables;return!u||u.virtualMcpId!==e?!1:(u.branch??"")===(t??"")}},n[0]=t,n[1]=e,n[2]=r):r=n[2],Te(r)>0}function Ue(e){return e.appPaused||e.userStopped?{kind:"suspended"}:e.startError&&!e.previewUrl?{kind:"errored",error:e.startError}:e.previewUrl?{kind:"iframe",previewUrl:e.previewUrl}:{kind:"starting"}}function Le(e){return e.executionEnabled&&e.sessionRuntime==="sandbox"&&e.hasActiveRepository&&!!e.userId&&!!e.branch&&!e.vmEntry&&!e.userStopped&&!e.isPending&&!e.attempted}function Ze(e){return e.threadLoaded&&e.isOwner&&e.hasActiveRepository&&!e.branch&&!e.attempted}function ge(e){return e.executionEnabled&&e.notFound&&!!e.deadVmId&&!e.isPending&&!e.userStopped&&e.deadVmId!==e.lastDeadVmId}function et(e){const{agentSandboxMap:t,threadSandboxMap:n,userId:r,branch:s}=e,o=e.ownerId??r;if(!r||!o||!s)return t;const u=n?.[o]?.[s];return u?{...t??{},[r]:{...t?.[r]??{},[s]:u}}:t}function A(e,t,n){const r={virtualMcpId:e};return t&&(r.branch=t),n&&(r.threadId=n),r}const Q=2,De=new Set(["scheduling-timeout","reconciler-error","claim-never-created","unknown"]);function J(e){return De.has(e)}function $e(e){return e.executionEnabled&&e.failedReason!==null&&J(e.failedReason)&&e.attempts<Q&&!e.isPending&&!e.userStopped&&!e.alreadyHandled}const Oe={branch:null,count:0,handled:!1};function Ve(e,t){return e.branch===t?e:{branch:t,count:0,handled:!1}}function Be(e){return e.mutationError?e.mutationError:e.phase?.kind==="failed"&&!e.startPending&&e.claimRetryExhausted?{code:null,message:e.phase.message}:null}function Fe(e){switch(e.kind){case"suspended":return"suspended";case"iframe":return"running";case"starting":return"starting";case"errored":return"errored"}}function M(e,t){return`${e??""}::${t??""}`}function ve(e){const t=e.vmEntry?.previewUrl??null;return t||(e.seeded?.key===e.key?e.seeded.url:null)}function T(e){const{data:t,virtualMcpId:n,branch:r}=e;t?.branch&&!r&&e.setCurrentTaskBranch(t.branch),t?.previewUrl&&e.setSeededPreviewUrl({key:M(n,t.branch??r),url:t.previewUrl})}const Ke={branch:null,previewState:{kind:"starting"},status:"idle",vmEntry:null,previewUrl:null,userStopped:!1,start:()=>{},stop:async()=>{},restart:async()=>{},retry:()=>{},resume:()=>{}},W=i.createContext(Ke);function tt(){return i.use(W)}const z=me(W);function nt(e){const t=q.c(10);let n,r,s;t[0]!==e?({resetKey:s,children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=s):(n=t[1],r=t[2],s=t[3]);let o;t[4]!==r||t[5]!==s?(o=H.jsx(Ne,{...r},s),t[4]=r,t[5]=s,t[6]=o):o=t[6];let u;return t[7]!==n||t[8]!==o?(u=H.jsx(z.Host,{source:o,children:n}),t[7]=n,t[8]=o,t[9]=u):u=t[9],u}function Ne(e){return z.usePublish(je(e)),null}function je({executionEnabled:e,virtualMcpId:t,branch:n,userId:r,hasActiveRepository:s,vmEntry:o,threadId:u}){const{org:b}=fe(),{setCurrentTaskBranch:l}=pe(),G=xe(),p=we(),Z=P(),D=he(t),ee=D.resolved?D.runtime:null,d=ye()?.taskId??null,$=Ee({connectionId:Se,orgId:b.id,orgSlug:b.slug}),c=_e($,{onStarted:()=>{u&&G?.refreshThreadMetadata(u)}}),{mutate:f,reset:te}=c,[ne,S]=i.useState(null),C=i.useRef(new Set),k=i.useRef(null),[O,x]=i.useState(Oe),E=Ve(O,n);E!==O&&x(E);const y=p.phase?.kind==="failed"?p.phase:null,V=ve({vmEntry:o,seeded:y?null:ne,key:M(t,n)}),h=!!t&&!!n&&g.isStopped(t,n),re=p.status.state==="paused",se=!y||!J(y.reason)||E.count>=Q,oe=Be({mutationError:c.isError&&c.error?Ae(c.error.message):null,phase:p.phase,startPending:c.isPending,claimRetryExhausted:se}),B=Ue({previewUrl:V,appPaused:re,userStopped:h,startError:oe}),ae=Fe(B),_=n??"",ue=C.current.has(_),F=Le({executionEnabled:e,hasActiveRepository:s,userId:r,branch:n,vmEntry:o,userStopped:h,isPending:c.isPending,attempted:ue,sessionRuntime:ee});i.useEffect(()=>{if(!F||!t)return;C.current.add(_);const m=A(t,n,d);f(m,{onSuccess:a=>{T({data:a,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:a=>{console.error("[sandbox-lifecycle] auto-start failed:",a)}})},[F,_,n,t,d,f,l,S]);const R=p.notFound?o?.sandboxHandle??null:null,v=ge({executionEnabled:e,notFound:p.notFound,deadVmId:R,lastDeadVmId:k.current,isPending:c.isPending,userStopped:h});i.useEffect(()=>{if(!v||!R||!t)return;k.current=R;const m=A(t,n,d);f(m,{onSuccess:a=>{T({data:a,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:a=>{console.error("[sandbox-lifecycle] self-heal failed:",a)}})},[v,R,t,n,d,f,l,S]);const K=$e({executionEnabled:e,failedReason:y?.reason??null,attempts:E.count,isPending:c.isPending,userStopped:h,alreadyHandled:E.handled});i.useEffect(()=>{if(!y){x(a=>a.handled?{...a,handled:!1}:a);return}if(!K||!t)return;x(a=>({...a,handled:!0,count:a.count+1}));const m=A(t,n,d);f(m,{onSuccess:a=>{T({data:a,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:a=>{console.error("[sandbox-lifecycle] claim auto-retry failed:",a)}})},[y,K,t,n,d,f,l,S]);const U=()=>{if(!e||!t)return;const m=A(t,n,d);f(m,{onSuccess:a=>{T({data:a,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:a=>{console.error("[sandbox-lifecycle] user start failed:",a)}})},N=async()=>{if(!(!e||!t||!n)&&o){g.mark(t,n);try{await $.callTool({name:"SANDBOX_DELETE",arguments:{virtualMcpId:t,branch:n}})}catch{}X(Z)}},ie=async()=>{await N(),U()},j=()=>{C.current=new Set,k.current=null,x({branch:n,count:0,handled:!1}),te(),U()};return{branch:n,previewState:B,status:ae,vmEntry:o,previewUrl:V,userStopped:h,start:U,stop:N,restart:ie,retry:j,resume:j}}export{nt as S,tt as a,_e as b,et as o,Ze as s,Ge as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as P,r as I,a6 as Ve,eP as Pe,b as ee,m as O,j as r,a7 as Qe,ez as Ge,B as Ne,t as se,I as We,h as Ye,a_ as Ke}from"./index-Bf6kDBJJ.js";import{a as Ue}from"./Image01-BXYfiVgr.js";import{s as He}from"./Trash01-Dw3BP1yz.js";import{i as Re}from"./Upload01-DGYPOiPg.js";import{r as Je,L as Xe,s as Ze,F as et,i as $e}from"./use-never-published-CN7sgOi-.js";import{L as Ce}from"./label-pfJxqM6J.js";import{T as Se,a as ke,c as Ee}from"./tooltip-C1ojQQy2.js";import{b as Ie}from"./repository-binding-D_JA1fyv.js";import{u as tt}from"./chat-context-DytZnaTl.js";import{u as Fe,a6 as st,h as it,b as rt,a7 as nt}from"./site-editor-toast-B_YX3Li5.js";import{c as ot}from"./use-organization-settings-CJl2Ru2g.js";import{a as at}from"./SwitchHorizontal01-CoKNU7eN.js";import{a as lt,b as ct,P as dt}from"./popover-DiQ2Bfq9.js";import{S as ft}from"./switch-DNr_AVSx.js";import{T as ut,a as mt}from"./toggle-group-Bo6-1Pho.js";import{m as pt}from"./match-site-slug-config-B47_xZCi.js";import{u as gt}from"./use-file-configs-DCBweulZ.js";import{u as xt}from"./asset-utils-hNqdjb20.js";import{i as ht}from"./AlertCircle-D2NouvfT.js";const Oe=I.createContext(null);function cs(t){const e=P.c(3),{children:s}=t,n=tt(),a=Fe(n?.virtualMcpId,n?.currentBranch);let o;return e[0]!==a.kind||e[1]!==s?(o=I.createElement(Oe.Provider,{value:a.kind},s),e[0]=a.kind,e[1]=s,e[2]=o):o=e[2],o}function vt(){const t=P.c(4),e=I.useContext(Oe),{org:s}=Ve(),n=ot("new_blocks_editor"),a=!!s.id;let o;return t[0]!==e||t[1]!==n||t[2]!==a?(o=st({backend:e,hasOrg:a,orgFlag:n}),t[0]=e,t[1]=n,t[2]=a,t[3]=o):o=t[3],o}function yt(){return vt()??!1}function bt(t){if(typeof t=="string")return t;if(!t||typeof t!="object")return"";const e=t;if(Array.isArray(e.variants)){const s=e.variants,n=s.find(i=>i.rule?.__resolveType?.includes("always")),a=Pe(n);if(typeof a=="string")return a;const o=s.map(i=>Pe(i)).find(i=>typeof i=="string");if(typeof o=="string")return o}return typeof e.src=="string"?e.src:typeof e.url=="string"?e.url:typeof e.value=="string"?e.value:""}function jt(t){const e=P.c(29),{className:s}=t,n=ee();if(yt()){let c;e[0]!==n?(c=n("sectionsEditor.field.missingRequired"),e[0]=n,e[1]=c):c=e[1];let m;e[2]!==s?(m=O("shrink-0 cursor-help text-destructive",s),e[2]=s,e[3]=m):m=e[3];let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(Qe,{className:"size-3.5"}),e[4]=x):x=e[4];let p;e[5]!==c||e[6]!==m?(p=r.jsx(Se,{asChild:!0,children:r.jsx("span",{role:"img","aria-label":c,className:m,children:x})}),e[5]=c,e[6]=m,e[7]=p):p=e[7];let h;e[8]!==n?(h=n("sectionsEditor.field.missingRequiredTooltip"),e[8]=n,e[9]=h):h=e[9];let g;e[10]!==h?(g=r.jsx(ke,{className:"max-w-56",children:h}),e[10]=h,e[11]=g):g=e[11];let w;return e[12]!==p||e[13]!==g?(w=r.jsxs(Ee,{children:[p,g]}),e[12]=p,e[13]=g,e[14]=w):w=e[14],w}let o;e[15]!==n?(o=n("sectionsEditor.field.missingRequired"),e[15]=n,e[16]=o):o=e[16];let i;e[17]!==s?(i=O("size-2 shrink-0 cursor-help rounded-full bg-destructive",s),e[17]=s,e[18]=i):i=e[18];let f;e[19]!==o||e[20]!==i?(f=r.jsx(Se,{asChild:!0,children:r.jsx("span",{role:"img","aria-label":o,className:i})}),e[19]=o,e[20]=i,e[21]=f):f=e[21];let d;e[22]!==n?(d=n("sectionsEditor.field.missingRequiredTooltip"),e[22]=n,e[23]=d):d=e[23];let l;e[24]!==d?(l=r.jsx(ke,{className:"max-w-56",children:d}),e[24]=d,e[25]=l):l=e[25];let u;return e[26]!==f||e[27]!==l?(u=r.jsxs(Ee,{children:[f,l]}),e[26]=f,e[27]=l,e[28]=u):u=e[28],u}const Me=I.createContext({required:!1,invalid:!1});function wt(){return I.useContext(Me)}function ds(t){const e=P.c(6),{required:s,invalid:n,children:a}=t;let o;e[0]!==n||e[1]!==s?(o={required:s,invalid:n},e[0]=n,e[1]=s,e[2]=o):o=e[2];let i;return e[3]!==a||e[4]!==o?(i=r.jsx(Me.Provider,{value:o,children:a}),e[3]=a,e[4]=o,e[5]=i):i=e[5],i}function fs(t){return t==null?!0:typeof t=="string"?t.trim()==="":Array.isArray(t)?t.length===0:typeof t=="object"?Object.keys(t).length===0:!1}const Nt="cursor-help underline decoration-dotted decoration-muted-foreground/50 underline-offset-4";function De(t){return Ie(t)?.metadata?.fieldDescriptionTooltips??!1}function Ct(t){const e=P.c(9),{description:s,virtualMcpId:n,children:a}=t,o=De(n);if(!s||!o)return a;let i;e[0]!==a?(i=I.cloneElement(a,{className:O(a.props.className,Nt)}),e[0]=a,e[1]=i):i=e[1];let f;e[2]!==i?(f=r.jsx(Se,{asChild:!0,children:i}),e[2]=i,e[3]=f):f=e[3];let d;e[4]!==s?(d=r.jsx(ke,{className:"max-w-64",children:s}),e[4]=s,e[5]=d):d=e[5];let l;return e[6]!==f||e[7]!==d?(l=r.jsxs(Ee,{delayDuration:300,children:[f,d]}),e[6]=f,e[7]=d,e[8]=l):l=e[8],l}function St(t){const e=P.c(17),{htmlFor:s,label:n,description:a,labelClassName:o,virtualMcpId:i}=t,f=De(i),{required:d,invalid:l}=wt();let u;e[0]!==l||e[1]!==d?(u=d&&l&&r.jsx(jt,{className:"mt-0.5 self-start"}),e[0]=l,e[1]=d,e[2]=u):u=e[2];let c;e[3]!==s||e[4]!==n||e[5]!==o||e[6]!==u?(c=r.jsxs(Ce,{htmlFor:s,className:o,children:[n,u]}),e[3]=s,e[4]=n,e[5]=o,e[6]=u,e[7]=c):c=e[7];const m=c;if(!f){let p;e[8]!==a?(p=a&&r.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:a}),e[8]=a,e[9]=p):p=e[9];let h;return e[10]!==m||e[11]!==p?(h=r.jsxs("div",{className:"space-y-0.5",children:[m,p]}),e[10]=m,e[11]=p,e[12]=h):h=e[12],h}let x;return e[13]!==a||e[14]!==m||e[15]!==i?(x=r.jsx(Ct,{description:a,virtualMcpId:i,children:m}),e[13]=a,e[14]=m,e[15]=i,e[16]=x):x=e[16],x}function kt(t){const e=ee(),s=Ie(t?.virtualMcpId),n=Fe(t?.virtualMcpId,t?.branch),{connection:a}=rt(t?.virtualMcpId),o=nt(n,a);if(s?.metadata?.assetStorageConfigId||!o||!t||n.kind!=="protocol"||!n.describe.assets)return null;const{maxBytes:i}=n.describe.assets,f=d=>`${o}/assets/${encodeURIComponent(d)}`;return async d=>{if(d.size>i)throw new Error(e("sectionsEditor.fileField.tooLarge",{max:`${Math.floor(i/(1024*1024))} MB`}));if(n.describe.readOnly)throw new Error(e("decoServe.upload.readOnly",{name:d.name}));let l;try{l=await fetch(f(d.name),{method:"PUT",signal:Ge(),headers:{"content-type":d.type||"application/octet-stream"},body:d})}catch{throw new Error(e("decoServe.upload.serverGone",{name:d.name}))}const u=await l.json().catch(()=>null);if(!l.ok||typeof u?.path!="string"){const c=u?.error?.message;throw new Error(e("decoServe.upload.failed",{name:d.name,detail:typeof c=="string"?c:`HTTP ${l.status}`}))}return u.path}}function Et(t,e){const s=P.c(6),n=Fe(t?.virtualMcpId,t?.branch);let a;s[0]!==n||s[1]!==t?.previewUrl?(a=n.kind==="protocol"&&n.source==="sandbox"?t?.previewUrl??null:it(n),s[0]=n,s[1]=t?.previewUrl,s[2]=a):a=s[2];const o=a;let i;return s[3]!==e||s[4]!==o?(i=o&&e.startsWith("/")&&!e.startsWith("//")?new URL(e,o).href:e,s[3]=e,s[4]=o,s[5]=i):i=s[5],i}function It(){const t=P.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-black/40 opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100",children:r.jsxs("span",{className:"flex items-center gap-1.5 rounded-md bg-background px-3 py-1.5 text-xs font-medium shadow-soft",children:[r.jsx(Re,{size:14}),"Click to replace"]})}),t[0]=e):e=t[0],e}function Ft(t){try{const e=new URL(t).pathname;return decodeURIComponent(e.split("/").pop()??t)}catch{return t.split("/").pop()??t}}function _t(t){const e=t.lastIndexOf(".");return e<0||e===t.length-1?"":t.slice(e+1).toLowerCase()}const Tt=["low","medium","high","original"];function qe(t){return t==="low"||t==="medium"||t==="high"||t==="original"}function Le(t,e){try{return new URL(t).searchParams.get(e)}catch{const s=Pt(t);for(const n of s){const a=n.indexOf("=");if((a>=0?n.slice(0,a):n)===e)return a>=0?n.slice(a+1):""}return null}}function ze(t,e,s){const n=t.indexOf("#"),a=n>=0?t.slice(n):"",o=n>=0?t.slice(0,n):t,i=o.indexOf("?"),f=i>=0?o.slice(0,i):o,d=(i>=0?o.slice(i+1).split("&"):[]).filter(Boolean).filter(l=>{const u=l.indexOf("=");return(u>=0?l.slice(0,u):l)!==e});return s!==void 0&&d.push(`${e}=${s}`),`${f}${d.length?`?${d.join("&")}`:""}${a}`}function Pt(t){const e=t.indexOf("#"),s=e>=0?t.slice(0,e):t,n=s.indexOf("?");return n<0?[]:s.slice(n+1).split("&").filter(Boolean)}function Ut(t){if(!t)return;const e=Le(t,"quality");return qe(e)?e:void 0}function $t(t,e){return ze(t,"quality",e)}function Rt(t){return t?Le(t,"muted")!=="false":!0}function Ot(t,e){return ze(t,"muted",e?void 0:"false")}function Mt(t){const e=P.c(36),{value:s,onChange:n,showMuted:a}=t,o=a===void 0?!1:a,i=ee(),f=I.useId();let d;e[0]!==s?(d=Ut(s),e[0]=s,e[1]=d):d=e[1];const l=d;let u;e[2]!==s?(u=Rt(s),e[2]=s,e[3]=u):u=e[3];const c=u;let m;e[4]!==i?(m=i("sectionsEditor.mediaTransformControls.mediaOptionsLabel"),e[4]=i,e[5]=m):m=e[5];let x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(at,{size:14}),e[6]=x):x=e[6];let p;e[7]!==m?(p=r.jsx(lt,{asChild:!0,children:r.jsx(Ne,{type:"button",variant:"outline",size:"sm",className:"h-9 shrink-0","aria-label":m,children:x})}),e[7]=m,e[8]=p):p=e[8];let h;e[9]!==i?(h=i("sectionsEditor.mediaTransformControls.qualityLabel"),e[9]=i,e[10]=h):h=e[10];let g;e[11]!==h?(g=r.jsx(Ce,{className:"text-xs text-muted-foreground",children:h}),e[11]=h,e[12]=g):g=e[12];const w=l??"";let N;e[13]!==n||e[14]!==s?(N=b=>n($t(s,qe(b)?b:void 0)),e[13]=n,e[14]=s,e[15]=N):N=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=Tt.map(Dt),e[16]=y):y=e[16];let F;e[17]!==N||e[18]!==w?(F=r.jsx(ut,{type:"single",variant:"outline",size:"sm",value:w,onValueChange:N,children:y}),e[17]=N,e[18]=w,e[19]=F):F=e[19];let v;e[20]!==F||e[21]!==g?(v=r.jsxs("div",{className:"flex flex-col gap-1.5",children:[g,F]}),e[20]=F,e[21]=g,e[22]=v):v=e[22];let C;e[23]!==c||e[24]!==f||e[25]!==n||e[26]!==o||e[27]!==i||e[28]!==s?(C=o&&r.jsxs("div",{className:"flex items-center justify-between gap-3",children:[r.jsx(Ce,{htmlFor:f,className:"text-xs text-muted-foreground",children:i("sectionsEditor.mediaTransformControls.mutedLabel")}),r.jsx(ft,{id:f,checked:c,onCheckedChange:b=>n(Ot(s,b))})]}),e[23]=c,e[24]=f,e[25]=n,e[26]=o,e[27]=i,e[28]=s,e[29]=C):C=e[29];let S;e[30]!==v||e[31]!==C?(S=r.jsx(ct,{align:"end",className:"w-auto min-w-52 p-3",children:r.jsxs("div",{className:"flex flex-col gap-3",children:[v,C]})}),e[30]=v,e[31]=C,e[32]=S):S=e[32];let j;return e[33]!==S||e[34]!==p?(j=r.jsxs(dt,{children:[p,S]}),e[33]=S,e[34]=p,e[35]=j):j=e[35],j}function Dt(t){return r.jsx(mt,{value:t,className:"h-8 px-3 text-xs capitalize",children:t},t)}function qt(t){try{const e=new URL(t);return e.protocol==="http:"||e.protocol==="https:"?e.href:""}catch{return""}}const Ae=new Set(["image/png","image/jpeg","image/gif","image/webp","image/svg+xml","image/avif"]);function Lt(t){const e=P.c(26),{siteSlug:s,virtualMcpId:n,onUploaded:a,onNeedsPicker:o,serveUpload:i}=t,f=ee(),l=Ie(n)?.metadata?.assetStorageConfigId,u=!i;let c;e[0]!==u?(c={enabled:u},e[0]=u,e[1]=c):c=e[1];const m=gt(c),x=xt(),[p,h]=I.useState(!1);let g;e[2]!==m.data?.configs?(g=m.data?.configs??[],e[2]=m.data?.configs,e[3]=g):g=e[3];let w;e[4]!==l||e[5]!==s||e[6]!==g?(w=pt(g,s,l),e[4]=l,e[5]=s,e[6]=g,e[7]=w):w=e[7];const y=w?.id??null;let F;e[8]!==m.data?.configs||e[9]!==y||e[10]!==o||e[11]!==a||e[12]!==i||e[13]!==f||e[14]!==x?(F=async function(M){if(!M)return;const $=Array.from(M).filter(zt);if($.length===0){se.error(f("sectionsEditor.imageField.onlyImageFilesAccepted"));return}if(i){try{a(await i($[0]))}catch(_){const T=_;se.error(T instanceof Error?T.message:f("sectionsEditor.imageField.uploadFailed"))}return}const k=Je(m.data?.configs??[],y,typeof window<"u"?window.localStorage.getItem(Xe):null);if(!k){o();return}try{const _=await x.mutateAsync({configId:k,file:$[0]}),T=qt(_.publicUrl);if(!T){se.error(f("sectionsEditor.imageField.uploadFailed"));return}a(T),$.length>1&&se.info(f("sectionsEditor.imageField.uploadedWithExtraFilesIgnored",{fileName:$[0].name}))}catch(_){const T=_;se.error(T instanceof Error?T.message:f("sectionsEditor.imageField.uploadFailed"))}},e[8]=m.data?.configs,e[9]=y,e[10]=o,e[11]=a,e[12]=i,e[13]=f,e[14]=x,e[15]=F):F=e[15];const v=F;let C,S;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=E=>{E.preventDefault(),E.dataTransfer.types.includes("Files")&&h(!0)},S=E=>{E.currentTarget===E.target&&h(!1)},e[16]=C,e[17]=S):(C=e[16],S=e[17]);let j;e[18]!==v?(j={onDragOver:C,onDragLeave:S,onDrop:E=>{E.preventDefault(),E.stopPropagation(),h(!1),v(E.dataTransfer.files)}},e[18]=v,e[19]=j):j=e[19];let b;return e[20]!==v||e[21]!==p||e[22]!==y||e[23]!==j||e[24]!==x.isPending?(b={isDragging:p,isPending:x.isPending,lockedConfigId:y,handleFiles:v,dropProps:j},e[20]=v,e[21]=p,e[22]=y,e[23]=j,e[24]=x.isPending,e[25]=b):b=e[25],b}function zt(t){return Ae.has(t.type||"")}const At=3;function us(t){const e=P.c(98),{schema:s,value:n,onChange:a,path:o,label:i,sandbox:f,compact:d}=t,l=ee();let u;e[0]!==n?(u=bt(n),e[0]=n,e[1]=u):u=e[1];const c=u,[m,x]=I.useState(!1),[p,h]=I.useState(!1),[g,w]=I.useState(!1),N=Et(f,c),[y,F]=I.useState(0);let v;e[2]!==y||e[3]!==N?(v=y>0?`${N}${N.includes("?")?"&":"?"}retry=${y}`:N,e[2]=y,e[3]=N,e[4]=v):v=e[4];let C;e[5]!==v?(C=Ze(v),e[5]=v,e[6]=C):C=e[6];const S=C,j=!!c&&!S;let b,E;e[7]!==c?(b=c?Ft(c):"",E=b?_t(b):"",e[7]=c,e[8]=b,e[9]=E):(b=e[8],E=e[9]);const M=E;let $;e[10]!==a?($=function(fe){h(!1),w(!1),F(0),a(fe)},e[10]=a,e[11]=$):$=e[11];const k=$,[_,T]=I.useState(c),[Be,_e]=I.useState(c);Be!==c&&(_e(c),T(c));let ie;e[12]!==k||e[13]!==c?(ie=function(fe){T(fe);const te=fe.trim();te&&!$e(te)||te!==c&&(_e(te),k(te))},e[12]=k,e[13]=c,e[14]=ie):ie=e[14];const ue=ie;let re;e[15]!==c||e[16]!==_?(re=function(){_.trim()&&!$e(_)&&T(c)},e[15]=c,e[16]=_,e[17]=re):re=e[17];const me=re,R=kt(f),Te=I.useRef(null);let ne;e[18]!==R?(ne=()=>R?Te.current?.click():x(!0),e[18]=R,e[19]=ne):ne=e[19];const D=ne,pe=f?.siteSlug,ge=f?.virtualMcpId;let oe;e[20]===Symbol.for("react.memo_cache_sentinel")?(oe=()=>x(!0),e[20]=oe):oe=e[20];let ae;e[21]!==R||e[22]!==k||e[23]!==ge||e[24]!==pe?(ae={siteSlug:pe,virtualMcpId:ge,onUploaded:k,onNeedsPicker:oe,serveUpload:R},e[21]=R,e[22]=k,e[23]=ge,e[24]=pe,e[25]=ae):ae=e[25];const{isDragging:le,isPending:ce,lockedConfigId:xe,dropProps:he,handleFiles:ve}=Lt(ae),ye=!i&&"hidden";let q;e[26]!==ye?(q=O("min-w-0",ye),e[26]=ye,e[27]=q):q=e[27];const be=f?.virtualMcpId;let L;e[28]!==i||e[29]!==o||e[30]!==s.description||e[31]!==be?(L=r.jsx(St,{htmlFor:o,label:i,description:s.description,labelClassName:"text-muted-foreground",virtualMcpId:be}),e[28]=i,e[29]=o,e[30]=s.description,e[31]=be,e[32]=L):L=e[32];let z;e[33]!==q||e[34]!==L?(z=r.jsx("div",{className:q,children:L}),e[33]=q,e[34]=L,e[35]=z):z=e[35];const je=le&&"border-primary ring-2 ring-primary/30",we=ce&&"pointer-events-none opacity-60";let A;e[36]!==je||e[37]!==we?(A=O("group relative w-full overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-xl))] border shadow-edge border-border/60 bg-muted/30 transition",je,we),e[36]=je,e[37]=we,e[38]=A):A=e[38];let B;e[39]!==D||e[40]!==d||e[41]!==M||e[42]!==b||e[43]!==g||e[44]!==p||e[45]!==ce||e[46]!==i||e[47]!==y||e[48]!==N||e[49]!==S||e[50]!==c||e[51]!==l||e[52]!==j?(B=c?r.jsxs(r.Fragment,{children:[r.jsxs("button",{type:"button",onClick:D,"aria-label":l("sectionsEditor.imageField.replaceImage"),className:O("relative block w-full cursor-pointer bg-[image:linear-gradient(45deg,rgba(0,0,0,0.04)_25%,transparent_25%,transparent_75%,rgba(0,0,0,0.04)_75%),linear-gradient(45deg,rgba(0,0,0,0.04)_25%,transparent_25%,transparent_75%,rgba(0,0,0,0.04)_75%)] bg-[position:0_0,8px_8px] [background-size:16px_16px]",d?"h-28":"h-40"),children:[!g&&!j&&r.jsx("img",{src:S,alt:i,className:O("h-full w-full object-contain transition-opacity",!p&&"opacity-0"),onLoad:()=>h(!0),onError:()=>{N!==c&&y<At?setTimeout(()=>F(Bt),600):w(!0)}},c),(g||j)&&r.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1 text-muted-foreground",children:[r.jsx(Ue,{size:20}),r.jsx("p",{className:"text-xs",children:l("sectionsEditor.imageField.previewUnavailable")})]}),!p&&!g&&!j&&r.jsx("div",{className:"absolute inset-0 animate-pulse bg-muted/60"}),r.jsx(It,{})]}),!d&&r.jsxs("div",{className:"flex items-center gap-2 border-t border-border/60 bg-background/50 px-3 py-2",children:[r.jsx("span",{className:"min-w-0 flex-1 truncate text-xs font-medium",children:b}),M&&r.jsx("span",{className:"shrink-0 rounded-[var(--studio-control-radius,var(--radius))] bg-muted px-1.5 py-0.5 text-2xs font-medium uppercase text-muted-foreground",children:M})]})]}):r.jsxs("button",{type:"button",onClick:D,className:O("flex w-full flex-col items-center justify-center gap-2 text-sm text-muted-foreground hover:bg-accent hover:text-foreground",d?"h-28":"h-40"),children:[r.jsx(Ue,{size:20}),r.jsx("span",{className:"text-sm font-medium",children:l(ce?"sectionsEditor.imageField.uploading":"sectionsEditor.imageField.dropImageOrClickToBrowse")}),!d&&r.jsx("span",{className:"text-xs text-muted-foreground",children:l("sectionsEditor.imageField.supportedFormatsAndSize")})]}),e[39]=D,e[40]=d,e[41]=M,e[42]=b,e[43]=g,e[44]=p,e[45]=ce,e[46]=i,e[47]=y,e[48]=N,e[49]=S,e[50]=c,e[51]=l,e[52]=j,e[53]=B):B=e[53];let V;e[54]!==le||e[55]!==l?(V=le&&r.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-primary/10 backdrop-blur-[1px]",children:r.jsx("span",{className:"rounded-md bg-background px-3 py-1.5 text-xs font-medium shadow-soft",children:l("sectionsEditor.imageField.dropToUpload")})}),e[54]=le,e[55]=l,e[56]=V):V=e[56];let Q;e[57]!==he||e[58]!==A||e[59]!==B||e[60]!==V?(Q=r.jsxs("div",{...he,className:A,children:[B,V]}),e[57]=he,e[58]=A,e[59]=B,e[60]=V,e[61]=Q):Q=e[61];let G;e[62]!==ue?(G=U=>ue(U.target.value),e[62]=ue,e[63]=G):G=e[63];let W;e[64]!==c?(W=U=>{U.key==="Escape"&&T(c)},e[64]=c,e[65]=W):W=e[65];let Y;e[66]!==l?(Y=l("sectionsEditor.imageField.urlPlaceholder"),e[66]=l,e[67]=Y):Y=e[67];let K;e[68]!==o||e[69]!==me||e[70]!==G||e[71]!==W||e[72]!==Y||e[73]!==_?(K=r.jsx(We,{id:o,type:"url",value:_,onChange:G,onBlur:me,onKeyDown:W,placeholder:Y,className:"h-9 min-w-0 flex-1"}),e[68]=o,e[69]=me,e[70]=G,e[71]=W,e[72]=Y,e[73]=_,e[74]=K):K=e[74];let H;e[75]!==D||e[76]!==c||e[77]!==l?(H=!c&&r.jsxs(Ne,{type:"button",variant:"outline",size:"sm",onClick:D,className:"h-9 shrink-0",children:[r.jsx(Re,{size:14}),l("sectionsEditor.imageField.browse")]}),e[75]=D,e[76]=c,e[77]=l,e[78]=H):H=e[78];let J;e[79]!==k||e[80]!==c||e[81]!==l?(J=c&&r.jsxs(r.Fragment,{children:[r.jsx(Mt,{value:c,onChange:k}),r.jsx(Ne,{type:"button",variant:"ghost",size:"sm",onClick:()=>k(""),className:"h-9 shrink-0","aria-label":l("sectionsEditor.imageField.removeImage"),children:r.jsx(He,{size:14})})]}),e[79]=k,e[80]=c,e[81]=l,e[82]=J):J=e[82];let X;e[83]!==K||e[84]!==H||e[85]!==J?(X=r.jsxs("div",{className:"flex w-full min-w-0 items-center gap-2",children:[K,H,J]}),e[83]=K,e[84]=H,e[85]=J,e[86]=X):X=e[86];let Z;e[87]!==ve||e[88]!==xe||e[89]!==m||e[90]!==R||e[91]!==k?(Z=R?r.jsx("input",{ref:Te,type:"file",accept:[...Ae].join(","),className:"hidden",onChange:U=>{ve(U.target.files),U.target.value=""}}):r.jsx(et,{open:m,onOpenChange:x,mode:"image",onSelect:U=>k(U),lockedConfigId:xe}),e[87]=ve,e[88]=xe,e[89]=m,e[90]=R,e[91]=k,e[92]=Z):Z=e[92];let de;return e[93]!==z||e[94]!==Q||e[95]!==X||e[96]!==Z?(de=r.jsxs("div",{className:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)] gap-2",children:[z,Q,X,Z]}),e[93]=z,e[94]=Q,e[95]=X,e[96]=Z,e[97]=de):de=e[97],de}function Bt(t){return t+1}function ms(t){const e=P.c(15),{isPending:s,isError:n}=t,a=ee();if(n){let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(ht,{size:13}),e[0]=d):d=e[0];let l;e[1]!==a?(l=a("sandbox.saveStatus.failed"),e[1]=a,e[2]=l):l=e[2];let u;return e[3]!==l?(u=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-destructive",children:[d,l]}),e[3]=l,e[4]=u):u=e[4],u}if(s){let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(Ye,{className:"size-[13px]"}),e[5]=d):d=e[5];let l;e[6]!==a?(l=a("sandbox.saveStatus.saving"),e[6]=a,e[7]=l):l=e[7];let u;return e[8]!==l?(u=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[d,l]}),e[8]=l,e[9]=u):u=e[9],u}let o;e[10]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(Ke,{size:13}),e[10]=o):o=e[10];let i;e[11]!==a?(i=a("sandbox.saveStatus.saved"),e[11]=a,e[12]=i):i=e[12];let f;return e[13]!==i?(f=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground/70",children:[o,i]}),e[13]=i,e[14]=f):f=e[14],f}export{It as C,St as F,us as I,jt as M,cs as N,Tt as Q,ds as R,ms as S,yt as a,De as b,wt as c,Ct as d,bt as e,Ft as f,_t as g,kt as h,fs as i,Et as j,Mt as k,Ut as l,Lt as m,$t as s,vt as u};
|
|
1
|
+
import{c as P,r as I,a6 as Ve,eP as Pe,b as ee,m as O,j as r,a7 as Qe,ez as Ge,B as Ne,t as se,I as We,h as Ye,a_ as Ke}from"./index-DmyPeHtj.js";import{a as Ue}from"./Image01-DZ0d0gl4.js";import{s as He}from"./Trash01-C_glH0wy.js";import{i as Re}from"./Upload01-VrBKSmfZ.js";import{r as Je,L as Xe,s as Ze,F as et,i as $e}from"./use-never-published-CJQoljTh.js";import{L as Ce}from"./label-B61Mm8gW.js";import{T as Se,a as ke,c as Ee}from"./tooltip-CnD2gBxQ.js";import{b as Ie}from"./repository-binding-BezKpFog.js";import{u as tt}from"./chat-context-CqcR4aAu.js";import{u as Fe,a6 as st,h as it,b as rt,a7 as nt}from"./site-editor-toast-DLSJJb2F.js";import{c as ot}from"./use-organization-settings-DRtlFFBs.js";import{a as at}from"./SwitchHorizontal01-D47eRm9A.js";import{a as lt,b as ct,P as dt}from"./popover-QqVUvEYR.js";import{S as ft}from"./switch-CfqVcR-v.js";import{T as ut,a as mt}from"./toggle-group-BMYX_eGL.js";import{m as pt}from"./match-site-slug-config-B47_xZCi.js";import{u as gt}from"./use-file-configs-k_hhBwsx.js";import{u as xt}from"./asset-utils-BK2ot-jO.js";import{i as ht}from"./AlertCircle-D1Q8X__K.js";const Oe=I.createContext(null);function cs(t){const e=P.c(3),{children:s}=t,n=tt(),a=Fe(n?.virtualMcpId,n?.currentBranch);let o;return e[0]!==a.kind||e[1]!==s?(o=I.createElement(Oe.Provider,{value:a.kind},s),e[0]=a.kind,e[1]=s,e[2]=o):o=e[2],o}function vt(){const t=P.c(4),e=I.useContext(Oe),{org:s}=Ve(),n=ot("new_blocks_editor"),a=!!s.id;let o;return t[0]!==e||t[1]!==n||t[2]!==a?(o=st({backend:e,hasOrg:a,orgFlag:n}),t[0]=e,t[1]=n,t[2]=a,t[3]=o):o=t[3],o}function yt(){return vt()??!1}function bt(t){if(typeof t=="string")return t;if(!t||typeof t!="object")return"";const e=t;if(Array.isArray(e.variants)){const s=e.variants,n=s.find(i=>i.rule?.__resolveType?.includes("always")),a=Pe(n);if(typeof a=="string")return a;const o=s.map(i=>Pe(i)).find(i=>typeof i=="string");if(typeof o=="string")return o}return typeof e.src=="string"?e.src:typeof e.url=="string"?e.url:typeof e.value=="string"?e.value:""}function jt(t){const e=P.c(29),{className:s}=t,n=ee();if(yt()){let c;e[0]!==n?(c=n("sectionsEditor.field.missingRequired"),e[0]=n,e[1]=c):c=e[1];let m;e[2]!==s?(m=O("shrink-0 cursor-help text-destructive",s),e[2]=s,e[3]=m):m=e[3];let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(Qe,{className:"size-3.5"}),e[4]=x):x=e[4];let p;e[5]!==c||e[6]!==m?(p=r.jsx(Se,{asChild:!0,children:r.jsx("span",{role:"img","aria-label":c,className:m,children:x})}),e[5]=c,e[6]=m,e[7]=p):p=e[7];let h;e[8]!==n?(h=n("sectionsEditor.field.missingRequiredTooltip"),e[8]=n,e[9]=h):h=e[9];let g;e[10]!==h?(g=r.jsx(ke,{className:"max-w-56",children:h}),e[10]=h,e[11]=g):g=e[11];let w;return e[12]!==p||e[13]!==g?(w=r.jsxs(Ee,{children:[p,g]}),e[12]=p,e[13]=g,e[14]=w):w=e[14],w}let o;e[15]!==n?(o=n("sectionsEditor.field.missingRequired"),e[15]=n,e[16]=o):o=e[16];let i;e[17]!==s?(i=O("size-2 shrink-0 cursor-help rounded-full bg-destructive",s),e[17]=s,e[18]=i):i=e[18];let f;e[19]!==o||e[20]!==i?(f=r.jsx(Se,{asChild:!0,children:r.jsx("span",{role:"img","aria-label":o,className:i})}),e[19]=o,e[20]=i,e[21]=f):f=e[21];let d;e[22]!==n?(d=n("sectionsEditor.field.missingRequiredTooltip"),e[22]=n,e[23]=d):d=e[23];let l;e[24]!==d?(l=r.jsx(ke,{className:"max-w-56",children:d}),e[24]=d,e[25]=l):l=e[25];let u;return e[26]!==f||e[27]!==l?(u=r.jsxs(Ee,{children:[f,l]}),e[26]=f,e[27]=l,e[28]=u):u=e[28],u}const Me=I.createContext({required:!1,invalid:!1});function wt(){return I.useContext(Me)}function ds(t){const e=P.c(6),{required:s,invalid:n,children:a}=t;let o;e[0]!==n||e[1]!==s?(o={required:s,invalid:n},e[0]=n,e[1]=s,e[2]=o):o=e[2];let i;return e[3]!==a||e[4]!==o?(i=r.jsx(Me.Provider,{value:o,children:a}),e[3]=a,e[4]=o,e[5]=i):i=e[5],i}function fs(t){return t==null?!0:typeof t=="string"?t.trim()==="":Array.isArray(t)?t.length===0:typeof t=="object"?Object.keys(t).length===0:!1}const Nt="cursor-help underline decoration-dotted decoration-muted-foreground/50 underline-offset-4";function De(t){return Ie(t)?.metadata?.fieldDescriptionTooltips??!1}function Ct(t){const e=P.c(9),{description:s,virtualMcpId:n,children:a}=t,o=De(n);if(!s||!o)return a;let i;e[0]!==a?(i=I.cloneElement(a,{className:O(a.props.className,Nt)}),e[0]=a,e[1]=i):i=e[1];let f;e[2]!==i?(f=r.jsx(Se,{asChild:!0,children:i}),e[2]=i,e[3]=f):f=e[3];let d;e[4]!==s?(d=r.jsx(ke,{className:"max-w-64",children:s}),e[4]=s,e[5]=d):d=e[5];let l;return e[6]!==f||e[7]!==d?(l=r.jsxs(Ee,{delayDuration:300,children:[f,d]}),e[6]=f,e[7]=d,e[8]=l):l=e[8],l}function St(t){const e=P.c(17),{htmlFor:s,label:n,description:a,labelClassName:o,virtualMcpId:i}=t,f=De(i),{required:d,invalid:l}=wt();let u;e[0]!==l||e[1]!==d?(u=d&&l&&r.jsx(jt,{className:"mt-0.5 self-start"}),e[0]=l,e[1]=d,e[2]=u):u=e[2];let c;e[3]!==s||e[4]!==n||e[5]!==o||e[6]!==u?(c=r.jsxs(Ce,{htmlFor:s,className:o,children:[n,u]}),e[3]=s,e[4]=n,e[5]=o,e[6]=u,e[7]=c):c=e[7];const m=c;if(!f){let p;e[8]!==a?(p=a&&r.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:a}),e[8]=a,e[9]=p):p=e[9];let h;return e[10]!==m||e[11]!==p?(h=r.jsxs("div",{className:"space-y-0.5",children:[m,p]}),e[10]=m,e[11]=p,e[12]=h):h=e[12],h}let x;return e[13]!==a||e[14]!==m||e[15]!==i?(x=r.jsx(Ct,{description:a,virtualMcpId:i,children:m}),e[13]=a,e[14]=m,e[15]=i,e[16]=x):x=e[16],x}function kt(t){const e=ee(),s=Ie(t?.virtualMcpId),n=Fe(t?.virtualMcpId,t?.branch),{connection:a}=rt(t?.virtualMcpId),o=nt(n,a);if(s?.metadata?.assetStorageConfigId||!o||!t||n.kind!=="protocol"||!n.describe.assets)return null;const{maxBytes:i}=n.describe.assets,f=d=>`${o}/assets/${encodeURIComponent(d)}`;return async d=>{if(d.size>i)throw new Error(e("sectionsEditor.fileField.tooLarge",{max:`${Math.floor(i/(1024*1024))} MB`}));if(n.describe.readOnly)throw new Error(e("decoServe.upload.readOnly",{name:d.name}));let l;try{l=await fetch(f(d.name),{method:"PUT",signal:Ge(),headers:{"content-type":d.type||"application/octet-stream"},body:d})}catch{throw new Error(e("decoServe.upload.serverGone",{name:d.name}))}const u=await l.json().catch(()=>null);if(!l.ok||typeof u?.path!="string"){const c=u?.error?.message;throw new Error(e("decoServe.upload.failed",{name:d.name,detail:typeof c=="string"?c:`HTTP ${l.status}`}))}return u.path}}function Et(t,e){const s=P.c(6),n=Fe(t?.virtualMcpId,t?.branch);let a;s[0]!==n||s[1]!==t?.previewUrl?(a=n.kind==="protocol"&&n.source==="sandbox"?t?.previewUrl??null:it(n),s[0]=n,s[1]=t?.previewUrl,s[2]=a):a=s[2];const o=a;let i;return s[3]!==e||s[4]!==o?(i=o&&e.startsWith("/")&&!e.startsWith("//")?new URL(e,o).href:e,s[3]=e,s[4]=o,s[5]=i):i=s[5],i}function It(){const t=P.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-black/40 opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100",children:r.jsxs("span",{className:"flex items-center gap-1.5 rounded-md bg-background px-3 py-1.5 text-xs font-medium shadow-soft",children:[r.jsx(Re,{size:14}),"Click to replace"]})}),t[0]=e):e=t[0],e}function Ft(t){try{const e=new URL(t).pathname;return decodeURIComponent(e.split("/").pop()??t)}catch{return t.split("/").pop()??t}}function _t(t){const e=t.lastIndexOf(".");return e<0||e===t.length-1?"":t.slice(e+1).toLowerCase()}const Tt=["low","medium","high","original"];function qe(t){return t==="low"||t==="medium"||t==="high"||t==="original"}function Le(t,e){try{return new URL(t).searchParams.get(e)}catch{const s=Pt(t);for(const n of s){const a=n.indexOf("=");if((a>=0?n.slice(0,a):n)===e)return a>=0?n.slice(a+1):""}return null}}function ze(t,e,s){const n=t.indexOf("#"),a=n>=0?t.slice(n):"",o=n>=0?t.slice(0,n):t,i=o.indexOf("?"),f=i>=0?o.slice(0,i):o,d=(i>=0?o.slice(i+1).split("&"):[]).filter(Boolean).filter(l=>{const u=l.indexOf("=");return(u>=0?l.slice(0,u):l)!==e});return s!==void 0&&d.push(`${e}=${s}`),`${f}${d.length?`?${d.join("&")}`:""}${a}`}function Pt(t){const e=t.indexOf("#"),s=e>=0?t.slice(0,e):t,n=s.indexOf("?");return n<0?[]:s.slice(n+1).split("&").filter(Boolean)}function Ut(t){if(!t)return;const e=Le(t,"quality");return qe(e)?e:void 0}function $t(t,e){return ze(t,"quality",e)}function Rt(t){return t?Le(t,"muted")!=="false":!0}function Ot(t,e){return ze(t,"muted",e?void 0:"false")}function Mt(t){const e=P.c(36),{value:s,onChange:n,showMuted:a}=t,o=a===void 0?!1:a,i=ee(),f=I.useId();let d;e[0]!==s?(d=Ut(s),e[0]=s,e[1]=d):d=e[1];const l=d;let u;e[2]!==s?(u=Rt(s),e[2]=s,e[3]=u):u=e[3];const c=u;let m;e[4]!==i?(m=i("sectionsEditor.mediaTransformControls.mediaOptionsLabel"),e[4]=i,e[5]=m):m=e[5];let x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(at,{size:14}),e[6]=x):x=e[6];let p;e[7]!==m?(p=r.jsx(lt,{asChild:!0,children:r.jsx(Ne,{type:"button",variant:"outline",size:"sm",className:"h-9 shrink-0","aria-label":m,children:x})}),e[7]=m,e[8]=p):p=e[8];let h;e[9]!==i?(h=i("sectionsEditor.mediaTransformControls.qualityLabel"),e[9]=i,e[10]=h):h=e[10];let g;e[11]!==h?(g=r.jsx(Ce,{className:"text-xs text-muted-foreground",children:h}),e[11]=h,e[12]=g):g=e[12];const w=l??"";let N;e[13]!==n||e[14]!==s?(N=b=>n($t(s,qe(b)?b:void 0)),e[13]=n,e[14]=s,e[15]=N):N=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=Tt.map(Dt),e[16]=y):y=e[16];let F;e[17]!==N||e[18]!==w?(F=r.jsx(ut,{type:"single",variant:"outline",size:"sm",value:w,onValueChange:N,children:y}),e[17]=N,e[18]=w,e[19]=F):F=e[19];let v;e[20]!==F||e[21]!==g?(v=r.jsxs("div",{className:"flex flex-col gap-1.5",children:[g,F]}),e[20]=F,e[21]=g,e[22]=v):v=e[22];let C;e[23]!==c||e[24]!==f||e[25]!==n||e[26]!==o||e[27]!==i||e[28]!==s?(C=o&&r.jsxs("div",{className:"flex items-center justify-between gap-3",children:[r.jsx(Ce,{htmlFor:f,className:"text-xs text-muted-foreground",children:i("sectionsEditor.mediaTransformControls.mutedLabel")}),r.jsx(ft,{id:f,checked:c,onCheckedChange:b=>n(Ot(s,b))})]}),e[23]=c,e[24]=f,e[25]=n,e[26]=o,e[27]=i,e[28]=s,e[29]=C):C=e[29];let S;e[30]!==v||e[31]!==C?(S=r.jsx(ct,{align:"end",className:"w-auto min-w-52 p-3",children:r.jsxs("div",{className:"flex flex-col gap-3",children:[v,C]})}),e[30]=v,e[31]=C,e[32]=S):S=e[32];let j;return e[33]!==S||e[34]!==p?(j=r.jsxs(dt,{children:[p,S]}),e[33]=S,e[34]=p,e[35]=j):j=e[35],j}function Dt(t){return r.jsx(mt,{value:t,className:"h-8 px-3 text-xs capitalize",children:t},t)}function qt(t){try{const e=new URL(t);return e.protocol==="http:"||e.protocol==="https:"?e.href:""}catch{return""}}const Ae=new Set(["image/png","image/jpeg","image/gif","image/webp","image/svg+xml","image/avif"]);function Lt(t){const e=P.c(26),{siteSlug:s,virtualMcpId:n,onUploaded:a,onNeedsPicker:o,serveUpload:i}=t,f=ee(),l=Ie(n)?.metadata?.assetStorageConfigId,u=!i;let c;e[0]!==u?(c={enabled:u},e[0]=u,e[1]=c):c=e[1];const m=gt(c),x=xt(),[p,h]=I.useState(!1);let g;e[2]!==m.data?.configs?(g=m.data?.configs??[],e[2]=m.data?.configs,e[3]=g):g=e[3];let w;e[4]!==l||e[5]!==s||e[6]!==g?(w=pt(g,s,l),e[4]=l,e[5]=s,e[6]=g,e[7]=w):w=e[7];const y=w?.id??null;let F;e[8]!==m.data?.configs||e[9]!==y||e[10]!==o||e[11]!==a||e[12]!==i||e[13]!==f||e[14]!==x?(F=async function(M){if(!M)return;const $=Array.from(M).filter(zt);if($.length===0){se.error(f("sectionsEditor.imageField.onlyImageFilesAccepted"));return}if(i){try{a(await i($[0]))}catch(_){const T=_;se.error(T instanceof Error?T.message:f("sectionsEditor.imageField.uploadFailed"))}return}const k=Je(m.data?.configs??[],y,typeof window<"u"?window.localStorage.getItem(Xe):null);if(!k){o();return}try{const _=await x.mutateAsync({configId:k,file:$[0]}),T=qt(_.publicUrl);if(!T){se.error(f("sectionsEditor.imageField.uploadFailed"));return}a(T),$.length>1&&se.info(f("sectionsEditor.imageField.uploadedWithExtraFilesIgnored",{fileName:$[0].name}))}catch(_){const T=_;se.error(T instanceof Error?T.message:f("sectionsEditor.imageField.uploadFailed"))}},e[8]=m.data?.configs,e[9]=y,e[10]=o,e[11]=a,e[12]=i,e[13]=f,e[14]=x,e[15]=F):F=e[15];const v=F;let C,S;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=E=>{E.preventDefault(),E.dataTransfer.types.includes("Files")&&h(!0)},S=E=>{E.currentTarget===E.target&&h(!1)},e[16]=C,e[17]=S):(C=e[16],S=e[17]);let j;e[18]!==v?(j={onDragOver:C,onDragLeave:S,onDrop:E=>{E.preventDefault(),E.stopPropagation(),h(!1),v(E.dataTransfer.files)}},e[18]=v,e[19]=j):j=e[19];let b;return e[20]!==v||e[21]!==p||e[22]!==y||e[23]!==j||e[24]!==x.isPending?(b={isDragging:p,isPending:x.isPending,lockedConfigId:y,handleFiles:v,dropProps:j},e[20]=v,e[21]=p,e[22]=y,e[23]=j,e[24]=x.isPending,e[25]=b):b=e[25],b}function zt(t){return Ae.has(t.type||"")}const At=3;function us(t){const e=P.c(98),{schema:s,value:n,onChange:a,path:o,label:i,sandbox:f,compact:d}=t,l=ee();let u;e[0]!==n?(u=bt(n),e[0]=n,e[1]=u):u=e[1];const c=u,[m,x]=I.useState(!1),[p,h]=I.useState(!1),[g,w]=I.useState(!1),N=Et(f,c),[y,F]=I.useState(0);let v;e[2]!==y||e[3]!==N?(v=y>0?`${N}${N.includes("?")?"&":"?"}retry=${y}`:N,e[2]=y,e[3]=N,e[4]=v):v=e[4];let C;e[5]!==v?(C=Ze(v),e[5]=v,e[6]=C):C=e[6];const S=C,j=!!c&&!S;let b,E;e[7]!==c?(b=c?Ft(c):"",E=b?_t(b):"",e[7]=c,e[8]=b,e[9]=E):(b=e[8],E=e[9]);const M=E;let $;e[10]!==a?($=function(fe){h(!1),w(!1),F(0),a(fe)},e[10]=a,e[11]=$):$=e[11];const k=$,[_,T]=I.useState(c),[Be,_e]=I.useState(c);Be!==c&&(_e(c),T(c));let ie;e[12]!==k||e[13]!==c?(ie=function(fe){T(fe);const te=fe.trim();te&&!$e(te)||te!==c&&(_e(te),k(te))},e[12]=k,e[13]=c,e[14]=ie):ie=e[14];const ue=ie;let re;e[15]!==c||e[16]!==_?(re=function(){_.trim()&&!$e(_)&&T(c)},e[15]=c,e[16]=_,e[17]=re):re=e[17];const me=re,R=kt(f),Te=I.useRef(null);let ne;e[18]!==R?(ne=()=>R?Te.current?.click():x(!0),e[18]=R,e[19]=ne):ne=e[19];const D=ne,pe=f?.siteSlug,ge=f?.virtualMcpId;let oe;e[20]===Symbol.for("react.memo_cache_sentinel")?(oe=()=>x(!0),e[20]=oe):oe=e[20];let ae;e[21]!==R||e[22]!==k||e[23]!==ge||e[24]!==pe?(ae={siteSlug:pe,virtualMcpId:ge,onUploaded:k,onNeedsPicker:oe,serveUpload:R},e[21]=R,e[22]=k,e[23]=ge,e[24]=pe,e[25]=ae):ae=e[25];const{isDragging:le,isPending:ce,lockedConfigId:xe,dropProps:he,handleFiles:ve}=Lt(ae),ye=!i&&"hidden";let q;e[26]!==ye?(q=O("min-w-0",ye),e[26]=ye,e[27]=q):q=e[27];const be=f?.virtualMcpId;let L;e[28]!==i||e[29]!==o||e[30]!==s.description||e[31]!==be?(L=r.jsx(St,{htmlFor:o,label:i,description:s.description,labelClassName:"text-muted-foreground",virtualMcpId:be}),e[28]=i,e[29]=o,e[30]=s.description,e[31]=be,e[32]=L):L=e[32];let z;e[33]!==q||e[34]!==L?(z=r.jsx("div",{className:q,children:L}),e[33]=q,e[34]=L,e[35]=z):z=e[35];const je=le&&"border-primary ring-2 ring-primary/30",we=ce&&"pointer-events-none opacity-60";let A;e[36]!==je||e[37]!==we?(A=O("group relative w-full overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-xl))] border shadow-edge border-border/60 bg-muted/30 transition",je,we),e[36]=je,e[37]=we,e[38]=A):A=e[38];let B;e[39]!==D||e[40]!==d||e[41]!==M||e[42]!==b||e[43]!==g||e[44]!==p||e[45]!==ce||e[46]!==i||e[47]!==y||e[48]!==N||e[49]!==S||e[50]!==c||e[51]!==l||e[52]!==j?(B=c?r.jsxs(r.Fragment,{children:[r.jsxs("button",{type:"button",onClick:D,"aria-label":l("sectionsEditor.imageField.replaceImage"),className:O("relative block w-full cursor-pointer bg-[image:linear-gradient(45deg,rgba(0,0,0,0.04)_25%,transparent_25%,transparent_75%,rgba(0,0,0,0.04)_75%),linear-gradient(45deg,rgba(0,0,0,0.04)_25%,transparent_25%,transparent_75%,rgba(0,0,0,0.04)_75%)] bg-[position:0_0,8px_8px] [background-size:16px_16px]",d?"h-28":"h-40"),children:[!g&&!j&&r.jsx("img",{src:S,alt:i,className:O("h-full w-full object-contain transition-opacity",!p&&"opacity-0"),onLoad:()=>h(!0),onError:()=>{N!==c&&y<At?setTimeout(()=>F(Bt),600):w(!0)}},c),(g||j)&&r.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1 text-muted-foreground",children:[r.jsx(Ue,{size:20}),r.jsx("p",{className:"text-xs",children:l("sectionsEditor.imageField.previewUnavailable")})]}),!p&&!g&&!j&&r.jsx("div",{className:"absolute inset-0 animate-pulse bg-muted/60"}),r.jsx(It,{})]}),!d&&r.jsxs("div",{className:"flex items-center gap-2 border-t border-border/60 bg-background/50 px-3 py-2",children:[r.jsx("span",{className:"min-w-0 flex-1 truncate text-xs font-medium",children:b}),M&&r.jsx("span",{className:"shrink-0 rounded-[var(--studio-control-radius,var(--radius))] bg-muted px-1.5 py-0.5 text-2xs font-medium uppercase text-muted-foreground",children:M})]})]}):r.jsxs("button",{type:"button",onClick:D,className:O("flex w-full flex-col items-center justify-center gap-2 text-sm text-muted-foreground hover:bg-accent hover:text-foreground",d?"h-28":"h-40"),children:[r.jsx(Ue,{size:20}),r.jsx("span",{className:"text-sm font-medium",children:l(ce?"sectionsEditor.imageField.uploading":"sectionsEditor.imageField.dropImageOrClickToBrowse")}),!d&&r.jsx("span",{className:"text-xs text-muted-foreground",children:l("sectionsEditor.imageField.supportedFormatsAndSize")})]}),e[39]=D,e[40]=d,e[41]=M,e[42]=b,e[43]=g,e[44]=p,e[45]=ce,e[46]=i,e[47]=y,e[48]=N,e[49]=S,e[50]=c,e[51]=l,e[52]=j,e[53]=B):B=e[53];let V;e[54]!==le||e[55]!==l?(V=le&&r.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-primary/10 backdrop-blur-[1px]",children:r.jsx("span",{className:"rounded-md bg-background px-3 py-1.5 text-xs font-medium shadow-soft",children:l("sectionsEditor.imageField.dropToUpload")})}),e[54]=le,e[55]=l,e[56]=V):V=e[56];let Q;e[57]!==he||e[58]!==A||e[59]!==B||e[60]!==V?(Q=r.jsxs("div",{...he,className:A,children:[B,V]}),e[57]=he,e[58]=A,e[59]=B,e[60]=V,e[61]=Q):Q=e[61];let G;e[62]!==ue?(G=U=>ue(U.target.value),e[62]=ue,e[63]=G):G=e[63];let W;e[64]!==c?(W=U=>{U.key==="Escape"&&T(c)},e[64]=c,e[65]=W):W=e[65];let Y;e[66]!==l?(Y=l("sectionsEditor.imageField.urlPlaceholder"),e[66]=l,e[67]=Y):Y=e[67];let K;e[68]!==o||e[69]!==me||e[70]!==G||e[71]!==W||e[72]!==Y||e[73]!==_?(K=r.jsx(We,{id:o,type:"url",value:_,onChange:G,onBlur:me,onKeyDown:W,placeholder:Y,className:"h-9 min-w-0 flex-1"}),e[68]=o,e[69]=me,e[70]=G,e[71]=W,e[72]=Y,e[73]=_,e[74]=K):K=e[74];let H;e[75]!==D||e[76]!==c||e[77]!==l?(H=!c&&r.jsxs(Ne,{type:"button",variant:"outline",size:"sm",onClick:D,className:"h-9 shrink-0",children:[r.jsx(Re,{size:14}),l("sectionsEditor.imageField.browse")]}),e[75]=D,e[76]=c,e[77]=l,e[78]=H):H=e[78];let J;e[79]!==k||e[80]!==c||e[81]!==l?(J=c&&r.jsxs(r.Fragment,{children:[r.jsx(Mt,{value:c,onChange:k}),r.jsx(Ne,{type:"button",variant:"ghost",size:"sm",onClick:()=>k(""),className:"h-9 shrink-0","aria-label":l("sectionsEditor.imageField.removeImage"),children:r.jsx(He,{size:14})})]}),e[79]=k,e[80]=c,e[81]=l,e[82]=J):J=e[82];let X;e[83]!==K||e[84]!==H||e[85]!==J?(X=r.jsxs("div",{className:"flex w-full min-w-0 items-center gap-2",children:[K,H,J]}),e[83]=K,e[84]=H,e[85]=J,e[86]=X):X=e[86];let Z;e[87]!==ve||e[88]!==xe||e[89]!==m||e[90]!==R||e[91]!==k?(Z=R?r.jsx("input",{ref:Te,type:"file",accept:[...Ae].join(","),className:"hidden",onChange:U=>{ve(U.target.files),U.target.value=""}}):r.jsx(et,{open:m,onOpenChange:x,mode:"image",onSelect:U=>k(U),lockedConfigId:xe}),e[87]=ve,e[88]=xe,e[89]=m,e[90]=R,e[91]=k,e[92]=Z):Z=e[92];let de;return e[93]!==z||e[94]!==Q||e[95]!==X||e[96]!==Z?(de=r.jsxs("div",{className:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)] gap-2",children:[z,Q,X,Z]}),e[93]=z,e[94]=Q,e[95]=X,e[96]=Z,e[97]=de):de=e[97],de}function Bt(t){return t+1}function ms(t){const e=P.c(15),{isPending:s,isError:n}=t,a=ee();if(n){let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(ht,{size:13}),e[0]=d):d=e[0];let l;e[1]!==a?(l=a("sandbox.saveStatus.failed"),e[1]=a,e[2]=l):l=e[2];let u;return e[3]!==l?(u=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-destructive",children:[d,l]}),e[3]=l,e[4]=u):u=e[4],u}if(s){let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(Ye,{className:"size-[13px]"}),e[5]=d):d=e[5];let l;e[6]!==a?(l=a("sandbox.saveStatus.saving"),e[6]=a,e[7]=l):l=e[7];let u;return e[8]!==l?(u=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[d,l]}),e[8]=l,e[9]=u):u=e[9],u}let o;e[10]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(Ke,{size:13}),e[10]=o):o=e[10];let i;e[11]!==a?(i=a("sandbox.saveStatus.saved"),e[11]=a,e[12]=i):i=e[12];let f;return e[13]!==i?(f=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground/70",children:[o,i]}),e[13]=i,e[14]=f):f=e[14],f}export{It as C,St as F,us as I,jt as M,cs as N,Tt as Q,ds as R,ms as S,yt as a,De as b,wt as c,Ct as d,bt as e,Ft as f,_t as g,kt as h,fs as i,Et as j,Mt as k,Ut as l,Lt as m,$t as s,vt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cs as d,aJ as a,ct as e,aK as t,bF as l}from"./index-Bf6kDBJJ.js";const n=500;a({title:t().max(n),url:t().max(n),icon:t().max(n)});const o=a({keyId:t().max(n),modelId:t().max(n),title:t().max(n).optional()}).nullable();d(["fast","smart","thinking","image","web_search","deep_research"]);const f=d(["fast","smart","thinking"]),u="thinking",m=a({tiers:a({fast:o,smart:o,thinking:o,image:o,web_search:o,deep_research:o})});a({tiers:a({fast:o.optional(),smart:o.optional(),thinking:o.optional()})});const g=50,c=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/;a({host:t().trim().toLowerCase().min(1).max(n).regex(c).describe("Git host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:t().min(1).max(n).describe("Vault secret id holding the PAT used to authenticate this host.")});a({ids:l(t().max(n)).describe("Ordered list of custom virtual MCP agent ids to show on the home view.")});const h=280;a({statement:t().max(h).describe("The store goal in one sentence, in the person's own words."),updated_by:t().describe("Id of the user who last wrote the goal."),updated_at:t().datetime().describe("ISO 8601 timestamp")});const _=a({voice_mode:e().optional(),home_task_intake_enabled:e().optional().describe("Show Task mode on the Home composer and allow reports to start tasks."),demo_mode:e().optional().describe("Curated demo org: the commerce connect modal proceeds without a configured required data source."),demo_board_reset:e().optional().describe("Curated demo org: every morning the task board returns to its captured snapshot, and admins can reset or recapture it on demand."),reports_only:e().optional().describe("Curated Deco Score look: hides agent navigation, the home Customize button, and the Settings/Automations tabs. Defaulted on for orgs created by commerce onboarding."),reviewer_enabled:e().optional().describe("Run the Reviewer on a task's pull request when the card reaches In Review — it reviews the code with the repo's stack-appropriate skills, fixes what it finds on the PR's own branch, then exercises the change on the deploy preview and approves or hands the card to a human."),qa_agent_enabled:e().optional().describe("Deprecated: see reviewer_enabled."),code_reviewer_enabled:e().optional().describe("Deprecated: see reviewer_enabled."),auto_merge:e().optional().describe("When a card reaches Ready for Deployment, merge its pull request automatically instead of waiting for someone to press Ship."),auto_resolve_conflicts:e().optional().describe("When a pull request in Ready for Deployment can't be merged because it conflicts with its base branch, hand it back to the Super Agent to resolve the conflict (check out the branch, merge the base, push). Unset, it follows `auto_merge`; set it explicitly to run one without the other."),cheap_reviewer_model:e().optional().describe("Run the Reviewer on a cheaper model than the Super Agent that wrote the code. On by default — turning it off trades cost for some review depth."),coding_agent_org_mcps:e().optional().describe("Give a coding-agent run (the claude-code harness in a sandbox) every MCP connection in the org as its own MCP server, on top of the narrow Studio surface it always gets. Off by default: each connection is one more server the agent connects to at session start, and all of their tools land in its context."),home_chat_org_connections:e().optional().describe("Let a chat a person drives on the organization home reach every active connection the sender's role allows, through Studio rather than mounted as MCP servers. On by default (see DEFAULT_ON_FLAGS); turn it off to leave a home chat with only the connections attached to the default agent. Connections in `coding_agent_mcp_excluded` stay out either way. Board, reviewer, Jira and automation runs are not affected."),coding_agents_claude_code:e().optional().describe("Run chats on a Code Agent (an agent imported from a GitHub repo) with the claude-code harness inside its sandbox, instead of hosted Decopilot. Off by default: it changes the runtime of every such chat, and claude-code flushes whole turns rather than streaming tokens."),task_board_codex:e().optional().describe("Allow tasks to select the Codex harness. Off by default; existing tasks keep Claude Code. Reviewers keep their own runtime."),chat_harness_codex:e().optional().describe("Use Codex for new sandbox chats. Off by default; requires hosted sandboxes and a ChatGPT subscription or Responses API provider. Existing chats keep their pinned runtime."),chat_harness_sandbox_only:e().optional().describe("Run every chat with the claude-code harness in its own sandbox instead of hosted Decopilot. On by default (see DEFAULT_ON_FLAGS); a deployment without hosted sandboxes keeps Decopilot regardless."),sandbox_run_metadata:e().optional().describe("Forward a sandbox run's metadata (such as a webhook trigger's run_metadata) to the MCP tools it calls, as hosted Decopilot runs do. Off by default."),sandbox_chat_user_memory:e().optional().describe("Sandbox chats keep Claude Code's memory in the member's own folder of the organization filesystem, shared by all their chats, and runs started by the task board or an automation get no memory. On by default (see DEFAULT_ON_FLAGS). Off, every sandbox run keeps the harness default: a memory folder local to its sandbox."),sandbox_repo_snapshots:e().optional().describe("Keep a Freestyle snapshot of each project repo at its default branch's head, with its dependencies installed and its dev server running, so a new sandbox for that repo starts already serving. Off by default: each push to a default branch costs a snapshot build the next time a sandbox starts."),auto_assign_report_tasks_to_super_agent:e().optional().describe("When a Deco Score import creates a task board item without an assignee, delegate it to the Super Agent automatically instead of leaving it unassigned."),hosting_enabled:e().optional().describe("Per-site Hosting tab (deployments, domains, deploy outcomes). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),deco_analytics_enabled:e().optional().describe("Per-site Deco Analytics tab (traffic, realtime, usage & limits). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),e2e_enabled:e().optional().describe("Per-site E2E tab (end-to-end test runs). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),experiments_enabled:e().optional().describe("Per-site Experiments tab (A/B tests + variant results). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org."),experiments_v2_enabled:e().optional().describe("Rebuilt Experiments tab: describe the test in prose and an agent drafts it, plus inline editing and the implement/preview tools that write the split into the site. Off by default — an org without it keeps the table-and-dialog tab, which only records experiment metadata. Requires `experiments_enabled`, which still decides whether the tab exists at all."),monitor_enabled:e().optional().describe("Per-site Monitor tab (CDN Performance + Audience from the stats-lake warehouse). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. Its own deployment-wide switch `MONITOR_GA` opens it to every org at once (independent of the control-plane trio)."),site_create_enabled:e().optional().describe('The "Create a new site" option under New project: generates a GitHub repository from a site template in an account the org connected, and opens it as a project. Off by default, for every org — deco.cx staff included.'),new_blocks_editor:e().optional().describe("Use the redesigned blocks editor for every member of the organization. Off by default — the classic editor stays until an admin opts the org in."),blog_ai_enabled:e().optional().describe("The blog's brand context tab and its agentic generation — campaigns, post drafting and link suggestions. Off by default; with it off the blog is written by hand and every BLOG_* tool refuses, over MCP and in the app alike, so an agent cannot spend the organization's credits on a feature it turned off."),site_apps_install_enabled:e().optional().describe("Installing a site app from the Apps tab: writes the app module, registers it (the manifest on Deno, APP_REGISTRY on TanStack), adds the npm dependency, then reinstalls dependencies and restarts the dev script on the running sandbox. Off by default — it writes code and restarts the dev server on install, and the restart only works on a daemon new enough to honour a forced step, so an org opts in once its pods are running one. With it off the catalogue stays browsable and nothing is installable, which is also the lever for an org that does not want the CMS writing code."),multi_app_preview:e().optional().describe("Previewing more than one app of a monorepo: an Apps list in project settings, app tabs with a split view in the preview, and a dev server per extra app in the sandbox, served at its own preview host. Off by default."),cms_auto_commit:e().optional().describe("Fast Preview: commit each CMS save to the editing branch. On by default (see DEFAULT_ON_FLAGS). Off, saves are kept in Studio and shown in the editor and the preview, and reach the branch in one commit when someone publishes or submits for review."),hide_default_blog_blocks:e().optional().describe("Hide the `deco-cms/blog` app's own blocks (`blog/*`) everywhere a post is written — the inserter, the format briefs, and generated drafts — so only the site's own `site/sections/Blog/Post/*` blocks are eligible, plus, in the inserter, the sections under the blog app's `customSectionPaths`. Off by default. Blocks already present in a post keep rendering; this only governs what can be added."),plan_page_enabled:e().optional().describe("The Plan page: the store goal, which Jev picks from the store's data while it is empty, and a composer that turns an idea into a business case written by the agent. Off by default; with it off, Plan stays a coming-soon page."),blog_view_enabled:e().optional().describe("Blog as a project view of its own (a sidebar row, an app tile and `/blog`), edited on Blog drafts with each post beside the site's render of it. Off by default: the blog stays in the Site Editor's Content tab, and `blog-draft-` branches are ordinary drafts.")}),p=new Set(["reviewer_enabled","cheap_reviewer_model","chat_harness_sandbox_only","cms_auto_commit","home_chat_org_connections","sandbox_chat_user_memory"]);function w(i,s){const r=i?.[s];return p.has(s)?r!==!1:r===!0}function y(i){const s=i?.auto_resolve_conflicts;return typeof s=="boolean"?s:i?.auto_merge===!0}export{f as C,p as D,g as G,_ as O,h as P,m as S,y as a,u as b,c,w as o};
|
|
1
|
+
import{cs as d,aJ as a,ct as e,aK as t,bF as l}from"./index-DmyPeHtj.js";const n=500;a({title:t().max(n),url:t().max(n),icon:t().max(n)});const o=a({keyId:t().max(n),modelId:t().max(n),title:t().max(n).optional()}).nullable();d(["fast","smart","thinking","image","web_search","deep_research"]);const f=d(["fast","smart","thinking"]),u="thinking",m=a({tiers:a({fast:o,smart:o,thinking:o,image:o,web_search:o,deep_research:o})});a({tiers:a({fast:o.optional(),smart:o.optional(),thinking:o.optional()})});const g=50,c=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/;a({host:t().trim().toLowerCase().min(1).max(n).regex(c).describe("Git host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:t().min(1).max(n).describe("Vault secret id holding the PAT used to authenticate this host.")});a({ids:l(t().max(n)).describe("Ordered list of custom virtual MCP agent ids to show on the home view.")});const h=280;a({statement:t().max(h).describe("The store goal in one sentence, in the person's own words."),updated_by:t().describe("Id of the user who last wrote the goal."),updated_at:t().datetime().describe("ISO 8601 timestamp")});const _=a({voice_mode:e().optional(),home_task_intake_enabled:e().optional().describe("Show Task mode on the Home composer and allow reports to start tasks."),demo_mode:e().optional().describe("Curated demo org: the commerce connect modal proceeds without a configured required data source."),demo_board_reset:e().optional().describe("Curated demo org: every morning the task board returns to its captured snapshot, and admins can reset or recapture it on demand."),reports_only:e().optional().describe("Curated Deco Score look: hides agent navigation, the home Customize button, and the Settings/Automations tabs. Defaulted on for orgs created by commerce onboarding."),reviewer_enabled:e().optional().describe("Run the Reviewer on a task's pull request when the card reaches In Review — it reviews the code with the repo's stack-appropriate skills, fixes what it finds on the PR's own branch, then exercises the change on the deploy preview and approves or hands the card to a human."),qa_agent_enabled:e().optional().describe("Deprecated: see reviewer_enabled."),code_reviewer_enabled:e().optional().describe("Deprecated: see reviewer_enabled."),auto_merge:e().optional().describe("When a card reaches Ready for Deployment, merge its pull request automatically instead of waiting for someone to press Ship."),auto_resolve_conflicts:e().optional().describe("When a pull request in Ready for Deployment can't be merged because it conflicts with its base branch, hand it back to the Super Agent to resolve the conflict (check out the branch, merge the base, push). Unset, it follows `auto_merge`; set it explicitly to run one without the other."),cheap_reviewer_model:e().optional().describe("Run the Reviewer on a cheaper model than the Super Agent that wrote the code. On by default — turning it off trades cost for some review depth."),coding_agent_org_mcps:e().optional().describe("Give a coding-agent run (the claude-code harness in a sandbox) every MCP connection in the org as its own MCP server, on top of the narrow Studio surface it always gets. Off by default: each connection is one more server the agent connects to at session start, and all of their tools land in its context."),home_chat_org_connections:e().optional().describe("Let a chat a person drives on the organization home reach every active connection the sender's role allows, through Studio rather than mounted as MCP servers. On by default (see DEFAULT_ON_FLAGS); turn it off to leave a home chat with only the connections attached to the default agent. Connections in `coding_agent_mcp_excluded` stay out either way. Board, reviewer, Jira and automation runs are not affected."),coding_agents_claude_code:e().optional().describe("Run chats on a Code Agent (an agent imported from a GitHub repo) with the claude-code harness inside its sandbox, instead of hosted Decopilot. Off by default: it changes the runtime of every such chat, and claude-code flushes whole turns rather than streaming tokens."),task_board_codex:e().optional().describe("Allow tasks to select the Codex harness. Off by default; existing tasks keep Claude Code. Reviewers keep their own runtime."),chat_harness_codex:e().optional().describe("Use Codex for new sandbox chats. Off by default; requires hosted sandboxes and a ChatGPT subscription or Responses API provider. Existing chats keep their pinned runtime."),chat_harness_sandbox_only:e().optional().describe("Run every chat with the claude-code harness in its own sandbox instead of hosted Decopilot. On by default (see DEFAULT_ON_FLAGS); a deployment without hosted sandboxes keeps Decopilot regardless."),sandbox_run_metadata:e().optional().describe("Forward a sandbox run's metadata (such as a webhook trigger's run_metadata) to the MCP tools it calls, as hosted Decopilot runs do. Off by default."),sandbox_chat_user_memory:e().optional().describe("Sandbox chats keep Claude Code's memory in the member's own folder of the organization filesystem, shared by all their chats, and runs started by the task board or an automation get no memory. On by default (see DEFAULT_ON_FLAGS). Off, every sandbox run keeps the harness default: a memory folder local to its sandbox."),sandbox_repo_snapshots:e().optional().describe("Keep a Freestyle snapshot of each project repo at its default branch's head, with its dependencies installed and its dev server running, so a new sandbox for that repo starts already serving. Off by default: each push to a default branch costs a snapshot build the next time a sandbox starts."),auto_assign_report_tasks_to_super_agent:e().optional().describe("When a Deco Score import creates a task board item without an assignee, delegate it to the Super Agent automatically instead of leaving it unassigned."),hosting_enabled:e().optional().describe("Per-site Hosting tab (deployments, domains, deploy outcomes). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),deco_analytics_enabled:e().optional().describe("Per-site Deco Analytics tab (traffic, realtime, usage & limits). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),e2e_enabled:e().optional().describe("Per-site E2E tab (end-to-end test runs). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),experiments_enabled:e().optional().describe("Per-site Experiments tab (A/B tests + variant results). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org."),experiments_v2_enabled:e().optional().describe("Rebuilt Experiments tab: describe the test in prose and an agent drafts it, plus inline editing and the implement/preview tools that write the split into the site. Off by default — an org without it keeps the table-and-dialog tab, which only records experiment metadata. Requires `experiments_enabled`, which still decides whether the tab exists at all."),monitor_enabled:e().optional().describe("Per-site Monitor tab (CDN Performance + Audience from the stats-lake warehouse). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. Its own deployment-wide switch `MONITOR_GA` opens it to every org at once (independent of the control-plane trio)."),site_create_enabled:e().optional().describe('The "Create a new site" option under New project: generates a GitHub repository from a site template in an account the org connected, and opens it as a project. Off by default, for every org — deco.cx staff included.'),new_blocks_editor:e().optional().describe("Use the redesigned blocks editor for every member of the organization. Off by default — the classic editor stays until an admin opts the org in."),blog_ai_enabled:e().optional().describe("The blog's brand context tab and its agentic generation — campaigns, post drafting and link suggestions. Off by default; with it off the blog is written by hand and every BLOG_* tool refuses, over MCP and in the app alike, so an agent cannot spend the organization's credits on a feature it turned off."),site_apps_install_enabled:e().optional().describe("Installing a site app from the Apps tab: writes the app module, registers it (the manifest on Deno, APP_REGISTRY on TanStack), adds the npm dependency, then reinstalls dependencies and restarts the dev script on the running sandbox. Off by default — it writes code and restarts the dev server on install, and the restart only works on a daemon new enough to honour a forced step, so an org opts in once its pods are running one. With it off the catalogue stays browsable and nothing is installable, which is also the lever for an org that does not want the CMS writing code."),multi_app_preview:e().optional().describe("Previewing more than one app of a monorepo: an Apps list in project settings, app tabs with a split view in the preview, and a dev server per extra app in the sandbox, served at its own preview host. Off by default."),cms_auto_commit:e().optional().describe("Fast Preview: commit each CMS save to the editing branch. On by default (see DEFAULT_ON_FLAGS). Off, saves are kept in Studio and shown in the editor and the preview, and reach the branch in one commit when someone publishes or submits for review."),hide_default_blog_blocks:e().optional().describe("Hide the `deco-cms/blog` app's own blocks (`blog/*`) everywhere a post is written — the inserter, the format briefs, and generated drafts — so only the site's own `site/sections/Blog/Post/*` blocks are eligible, plus, in the inserter, the sections under the blog app's `customSectionPaths`. Off by default. Blocks already present in a post keep rendering; this only governs what can be added."),plan_page_enabled:e().optional().describe("The Plan page: the store goal, which Jev picks from the store's data while it is empty, and a composer that turns an idea into a business case written by the agent. Off by default; with it off, Plan stays a coming-soon page."),blog_view_enabled:e().optional().describe("Blog as a project view of its own (a sidebar row, an app tile and `/blog`), edited on Blog drafts with each post beside the site's render of it. Off by default: the blog stays in the Site Editor's Content tab, and `blog-draft-` branches are ordinary drafts.")}),p=new Set(["reviewer_enabled","cheap_reviewer_model","chat_harness_sandbox_only","cms_auto_commit","home_chat_org_connections","sandbox_chat_user_memory"]);function w(i,s){const r=i?.[s];return p.has(s)?r!==!1:r===!0}function y(i){const s=i?.auto_resolve_conflicts;return typeof s=="boolean"?s:i?.auto_merge===!0}export{f as C,p as D,g as G,_ as O,h as P,m as S,y as a,u as b,c,w as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aJ as r,dD as p,dB as _,aK as n,bF as o,cs as m}from"./index-
|
|
1
|
+
import{aJ as r,dD as p,dB as _,aK as n,bF as o,cs as m}from"./index-DmyPeHtj.js";const f=r({key:n().min(1,"Key is required"),value:n()}),g=r({title:n().min(1,"Name is required"),description:n().nullable().optional(),icon:n().nullable().optional(),ui_type:m(["HTTP","SSE","Websocket","NPX","STDIO"]),connection_url:n().optional(),connection_token:n().nullable().optional(),npx_package:n().optional(),stdio_command:n().optional(),stdio_args:n().optional(),stdio_cwd:n().optional(),env_vars:o(f).optional(),configuration_scopes:o(n()).nullable().optional(),configuration_state:p(n(),_()).nullable().optional()}).refine(e=>e.ui_type==="NPX"?!!e.npx_package?.trim():!0,{message:"NPM package is required",path:["npx_package"]}).refine(e=>e.ui_type==="STDIO"?!!e.stdio_command?.trim():!0,{message:"Command is required",path:["stdio_command"]}).refine(e=>e.ui_type==="HTTP"||e.ui_type==="SSE"||e.ui_type==="Websocket"?!!e.connection_url?.trim():!0,{message:"URL is required",path:["connection_url"]}).refine(e=>(e.ui_type==="HTTP"||e.ui_type==="SSE"||e.ui_type==="Websocket")&&e.connection_url?.trim()?n().url().safeParse(e.connection_url.trim()).success:!0,{message:"Enter a valid URL",path:["connection_url"]});function S(e,u,s){const a=i=>{if(i==="*")return!0;const c=i.split("::")[0]??"";let t=s;for(const l of c.split(".")){if(t===null||typeof t!="object")return!1;t=t[l]}return t!=null};return[...new Set([...e,...u.filter(a)])]}export{S as a,g as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as d,c7 as T,c3 as ce,j as b,c9 as _,cn as ae,e4 as O,ca as C,ch as P,cb as ie,c as F,m as $}from"./index-Bf6kDBJJ.js";import{c as de}from"./index-BdQq_4o_.js";function ue(r,e){return d.useReducer((o,l)=>e[o][l]??o,r)}var U="ScrollArea",[q]=ae(U),[fe,v]=q(U),G=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,type:l="hover",dir:t,scrollHideDelay:n=600,...s}=r,[a,c]=d.useState(null),[u,i]=d.useState(null),[h,f]=d.useState(null),[S,w]=d.useState(null),[A,Y]=d.useState(null),[x,L]=d.useState(0),[M,j]=d.useState(0),[D,y]=d.useState(!1),[N,W]=d.useState(!1),m=T(e,R=>c(R)),p=ce(t);return b.jsx(fe,{scope:o,type:l,dir:p,scrollHideDelay:n,scrollArea:a,viewport:u,onViewportChange:i,content:h,onContentChange:f,scrollbarX:S,onScrollbarXChange:w,scrollbarXEnabled:D,onScrollbarXEnabledChange:y,scrollbarY:A,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:W,onCornerWidthChange:L,onCornerHeightChange:j,children:b.jsx(_.div,{dir:p,...s,ref:m,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":M+"px",...r.style}})})});G.displayName=U;var J="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=v(J,o),a=d.useRef(null),c=T(e,a,s.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),b.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...r.style},children:b.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});K.displayName=J;var g="ScrollAreaScrollbar",Q=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=v(g,r.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=t,a=r.orientation==="horizontal";return d.useEffect(()=>(a?n(!0):s(!0),()=>{a?n(!1):s(!1)}),[a,n,s]),t.type==="hover"?b.jsx(he,{...l,ref:e,forceMount:o}):t.type==="scroll"?b.jsx(be,{...l,ref:e,forceMount:o}):t.type==="auto"?b.jsx(Z,{...l,ref:e,forceMount:o}):t.type==="always"?b.jsx(V,{...l,ref:e}):null});Q.displayName=g;var he=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=v(g,r.__scopeScrollArea),[n,s]=d.useState(!1);return d.useEffect(()=>{const a=t.scrollArea;let c=0;if(a){const u=()=>{window.clearTimeout(c),s(!0)},i=()=>{c=window.setTimeout(()=>s(!1),t.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",i),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",i)}}},[t.scrollArea,t.scrollHideDelay]),b.jsx(O,{present:o||n,children:b.jsx(Z,{"data-state":n?"visible":"hidden",...l,ref:e})})}),be=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=v(g,r.__scopeScrollArea),n=r.orientation==="horizontal",s=X(()=>c("SCROLL_END"),100),[a,c]=ue("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>c("HIDE"),t.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,t.scrollHideDelay,c]),d.useEffect(()=>{const u=t.viewport,i=n?"scrollLeft":"scrollTop";if(u){let h=u[i];const f=()=>{const S=u[i];h!==S&&(c("SCROLL"),s()),h=S};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[t.viewport,n,c,s]),b.jsx(O,{present:o||a!=="hidden",children:b.jsx(V,{"data-state":a==="hidden"?"hidden":"visible",...l,ref:e,onPointerEnter:C(r.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:C(r.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Z=d.forwardRef((r,e)=>{const o=v(g,r.__scopeScrollArea),{forceMount:l,...t}=r,[n,s]=d.useState(!1),a=r.orientation==="horizontal",c=X(()=>{if(o.viewport){const u=o.viewport.offsetWidth<o.viewport.scrollWidth,i=o.viewport.offsetHeight<o.viewport.scrollHeight;s(a?u:i)}},10);return E(o.viewport,c),E(o.content,c),b.jsx(O,{present:l||n,children:b.jsx(V,{"data-state":n?"visible":"hidden",...t,ref:e})})}),V=d.forwardRef((r,e)=>{const{orientation:o="vertical",...l}=r,t=v(g,r.__scopeScrollArea),n=d.useRef(null),s=d.useRef(0),[a,c]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ne(a.viewport,a.content),i={...l,sizes:a,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:f=>n.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function h(f,S){return ge(f,s.current,a,S)}return o==="horizontal"?b.jsx(Se,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollLeft,S=k(f,a,t.dir);n.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollLeft=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollLeft=h(f,t.dir))}}):o==="vertical"?b.jsx(me,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,S=k(f,a);n.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollTop=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollTop=h(f))}}):null}),Se=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=v(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=T(e,c,n.onScrollbarXChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"horizontal",...t,ref:u,sizes:o,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.x),onDragScroll:i=>r.onDragScroll(i.x),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollLeft+i.deltaX;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:z(s.paddingLeft),paddingEnd:z(s.paddingRight)}})}})}),me=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=v(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=T(e,c,n.onScrollbarYChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"vertical",...t,ref:u,sizes:o,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.y),onDragScroll:i=>r.onDragScroll(i.y),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollTop+i.deltaY;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:z(s.paddingTop),paddingEnd:z(s.paddingBottom)}})}})}),[ve,ee]=q(g),re=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,sizes:l,hasThumb:t,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:i,onResize:h,...f}=r,S=v(g,o),[w,A]=d.useState(null),Y=T(e,m=>A(m)),x=d.useRef(null),L=d.useRef(""),M=S.viewport,j=l.content-l.viewport,D=P(i),y=P(c),N=X(h,10);function W(m){if(x.current){const p=m.clientX-x.current.left,R=m.clientY-x.current.top;u({x:p,y:R})}}return d.useEffect(()=>{const m=p=>{const R=p.target;w?.contains(R)&&D(p,j)};return document.addEventListener("wheel",m,{passive:!1}),()=>document.removeEventListener("wheel",m,{passive:!1})},[M,w,j,D]),d.useEffect(y,[l,y]),E(w,N),E(S.content,N),b.jsx(ve,{scope:o,scrollbar:w,hasThumb:t,onThumbChange:P(n),onThumbPointerUp:P(s),onThumbPositionChange:y,onThumbPointerDown:P(a),children:b.jsx(_.div,{...f,ref:Y,style:{position:"absolute",...f.style},onPointerDown:C(r.onPointerDown,m=>{m.button===0&&(m.target.setPointerCapture(m.pointerId),x.current=w.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),W(m))}),onPointerMove:C(r.onPointerMove,W),onPointerUp:C(r.onPointerUp,m=>{const p=m.target;p.hasPointerCapture(m.pointerId)&&p.releasePointerCapture(m.pointerId),document.body.style.webkitUserSelect=L.current,S.viewport&&(S.viewport.style.scrollBehavior=""),x.current=null})})})}),H="ScrollAreaThumb",oe=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=ee(H,r.__scopeScrollArea);return b.jsx(O,{present:o||t.hasThumb,children:b.jsx(pe,{ref:e,...l})})}),pe=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,style:l,...t}=r,n=v(H,o),s=ee(H,o),{onThumbPositionChange:a}=s,c=T(e,h=>s.onThumbChange(h)),u=d.useRef(void 0),i=X(()=>{u.current&&(u.current(),u.current=void 0)},100);return d.useEffect(()=>{const h=n.viewport;if(h){const f=()=>{if(i(),!u.current){const S=xe(h,a);u.current=S,a()}};return a(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,i,a]),b.jsx(_.div,{"data-state":s.hasThumb?"visible":"hidden",...t,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:C(r.onPointerDownCapture,h=>{const S=h.target.getBoundingClientRect(),w=h.clientX-S.left,A=h.clientY-S.top;s.onThumbPointerDown({x:w,y:A})}),onPointerUp:C(r.onPointerUp,s.onThumbPointerUp)})});oe.displayName=H;var B="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=v(B,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=B;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=v(B,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return E(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),E(t.scrollbarY,()=>{const i=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(i),s(i)}),u?b.jsx(_.div,{...l,ref:e,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function z(r){return r?parseInt(r,10):0}function ne(r,e){const o=r/e;return isNaN(o)?0:o}function I(r){const e=ne(r.viewport,r.content),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=(r.scrollbar.size-o)*e;return Math.max(l,18)}function ge(r,e,o,l="ltr"){const t=I(o),n=t/2,s=e||n,a=t-s,c=o.scrollbar.paddingStart+s,u=o.scrollbar.size-o.scrollbar.paddingEnd-a,i=o.content-o.viewport,h=l==="ltr"?[0,i]:[i*-1,0];return le([c,u],h)(r)}function k(r,e,o="ltr"){const l=I(e),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=e.scrollbar.size-t,s=e.content-e.viewport,a=n-l,c=o==="ltr"?[0,s]:[s*-1,0],u=de(r,c);return le([0,s],[0,a])(u)}function le(r,e){return o=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const l=(e[1]-e[0])/(r[1]-r[0]);return e[0]+l*(o-r[0])}}function se(r,e){return r>0&&r<e}var xe=(r,e=()=>{})=>{let o={left:r.scrollLeft,top:r.scrollTop},l=0;return(function t(){const n={left:r.scrollLeft,top:r.scrollTop},s=o.left!==n.left,a=o.top!==n.top;(s||a)&&e(),o=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function X(r,e){const o=P(r),l=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(l.current),[]),d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(o,e)},[o,e])}function E(r,e){const o=P(e);ie(()=>{let l=0;if(r){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(o)});return t.observe(r),()=>{window.cancelAnimationFrame(l),t.unobserve(r)}}},[r,o])}var Pe=G,Ce=K,Re=te;function _e(r){const e=F.c(21);let o,l,t,n,s;e[0]!==r?({className:l,children:o,hideScrollbar:n,viewportRef:s,...t}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n,e[5]=s):(o=e[1],l=e[2],t=e[3],n=e[4],s=e[5]);const a=n===void 0?!1:n;let c;e[6]!==l?(c=$("relative h-full w-full",l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==o?(u=b.jsx("div",{className:"flex min-w-0 flex-col",children:o}),e[8]=o,e[9]=u):u=e[9];let i;e[10]!==u||e[11]!==s?(i=b.jsx(Ce,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] transition-[color,box-shadow] focus-ring",children:u}),e[10]=u,e[11]=s,e[12]=i):i=e[12];let h;e[13]!==a?(h=b.jsx(Ee,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Re,{}),e[15]=f):f=e[15];let S;return e[16]!==t||e[17]!==c||e[18]!==i||e[19]!==h?(S=b.jsxs(Pe,{"data-slot":"scroll-area",className:c,...t,children:[i,h,f]}),e[16]=t,e[17]=c,e[18]=i,e[19]=h,e[20]=S):S=e[20],S}function Ee(r){const e=F.c(15);let o,l,t,n;e[0]!==r?({className:o,orientation:t,hideScrollbar:n,...l}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n):(o=e[1],l=e[2],t=e[3],n=e[4]);const s=t===void 0?"vertical":t,a=n===void 0?!1:n,c=s==="vertical"&&"h-full w-2.5 border-l border-l-transparent",u=s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i=a&&"hidden";let h;e[5]!==o||e[6]!==c||e[7]!==u||e[8]!==i?(h=$("select-none touch-none p-px transition-colors",c,u,i,o),e[5]=o,e[6]=c,e[7]=u,e[8]=i,e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(oe,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"}),e[10]=f):f=e[10];let S;return e[11]!==s||e[12]!==l||e[13]!==h?(S=b.jsx(Q,{"data-slot":"scroll-area-scrollbar",orientation:s,className:h,...l,children:f}),e[11]=s,e[12]=l,e[13]=h,e[14]=S):S=e[14],S}export{_e as S};
|
|
1
|
+
import{r as d,c7 as T,c3 as ce,j as b,c9 as _,cn as ae,e4 as O,ca as C,ch as P,cb as ie,c as F,m as $}from"./index-DmyPeHtj.js";import{c as de}from"./index-BdQq_4o_.js";function ue(r,e){return d.useReducer((o,l)=>e[o][l]??o,r)}var U="ScrollArea",[q]=ae(U),[fe,v]=q(U),G=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,type:l="hover",dir:t,scrollHideDelay:n=600,...s}=r,[a,c]=d.useState(null),[u,i]=d.useState(null),[h,f]=d.useState(null),[S,w]=d.useState(null),[A,Y]=d.useState(null),[x,L]=d.useState(0),[M,j]=d.useState(0),[D,y]=d.useState(!1),[N,W]=d.useState(!1),m=T(e,R=>c(R)),p=ce(t);return b.jsx(fe,{scope:o,type:l,dir:p,scrollHideDelay:n,scrollArea:a,viewport:u,onViewportChange:i,content:h,onContentChange:f,scrollbarX:S,onScrollbarXChange:w,scrollbarXEnabled:D,onScrollbarXEnabledChange:y,scrollbarY:A,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:W,onCornerWidthChange:L,onCornerHeightChange:j,children:b.jsx(_.div,{dir:p,...s,ref:m,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":M+"px",...r.style}})})});G.displayName=U;var J="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=v(J,o),a=d.useRef(null),c=T(e,a,s.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),b.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...r.style},children:b.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});K.displayName=J;var g="ScrollAreaScrollbar",Q=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=v(g,r.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=t,a=r.orientation==="horizontal";return d.useEffect(()=>(a?n(!0):s(!0),()=>{a?n(!1):s(!1)}),[a,n,s]),t.type==="hover"?b.jsx(he,{...l,ref:e,forceMount:o}):t.type==="scroll"?b.jsx(be,{...l,ref:e,forceMount:o}):t.type==="auto"?b.jsx(Z,{...l,ref:e,forceMount:o}):t.type==="always"?b.jsx(V,{...l,ref:e}):null});Q.displayName=g;var he=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=v(g,r.__scopeScrollArea),[n,s]=d.useState(!1);return d.useEffect(()=>{const a=t.scrollArea;let c=0;if(a){const u=()=>{window.clearTimeout(c),s(!0)},i=()=>{c=window.setTimeout(()=>s(!1),t.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",i),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",i)}}},[t.scrollArea,t.scrollHideDelay]),b.jsx(O,{present:o||n,children:b.jsx(Z,{"data-state":n?"visible":"hidden",...l,ref:e})})}),be=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=v(g,r.__scopeScrollArea),n=r.orientation==="horizontal",s=X(()=>c("SCROLL_END"),100),[a,c]=ue("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>c("HIDE"),t.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,t.scrollHideDelay,c]),d.useEffect(()=>{const u=t.viewport,i=n?"scrollLeft":"scrollTop";if(u){let h=u[i];const f=()=>{const S=u[i];h!==S&&(c("SCROLL"),s()),h=S};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[t.viewport,n,c,s]),b.jsx(O,{present:o||a!=="hidden",children:b.jsx(V,{"data-state":a==="hidden"?"hidden":"visible",...l,ref:e,onPointerEnter:C(r.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:C(r.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Z=d.forwardRef((r,e)=>{const o=v(g,r.__scopeScrollArea),{forceMount:l,...t}=r,[n,s]=d.useState(!1),a=r.orientation==="horizontal",c=X(()=>{if(o.viewport){const u=o.viewport.offsetWidth<o.viewport.scrollWidth,i=o.viewport.offsetHeight<o.viewport.scrollHeight;s(a?u:i)}},10);return E(o.viewport,c),E(o.content,c),b.jsx(O,{present:l||n,children:b.jsx(V,{"data-state":n?"visible":"hidden",...t,ref:e})})}),V=d.forwardRef((r,e)=>{const{orientation:o="vertical",...l}=r,t=v(g,r.__scopeScrollArea),n=d.useRef(null),s=d.useRef(0),[a,c]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ne(a.viewport,a.content),i={...l,sizes:a,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:f=>n.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function h(f,S){return ge(f,s.current,a,S)}return o==="horizontal"?b.jsx(Se,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollLeft,S=k(f,a,t.dir);n.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollLeft=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollLeft=h(f,t.dir))}}):o==="vertical"?b.jsx(me,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,S=k(f,a);n.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollTop=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollTop=h(f))}}):null}),Se=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=v(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=T(e,c,n.onScrollbarXChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"horizontal",...t,ref:u,sizes:o,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.x),onDragScroll:i=>r.onDragScroll(i.x),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollLeft+i.deltaX;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:z(s.paddingLeft),paddingEnd:z(s.paddingRight)}})}})}),me=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=v(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=T(e,c,n.onScrollbarYChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"vertical",...t,ref:u,sizes:o,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.y),onDragScroll:i=>r.onDragScroll(i.y),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollTop+i.deltaY;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:z(s.paddingTop),paddingEnd:z(s.paddingBottom)}})}})}),[ve,ee]=q(g),re=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,sizes:l,hasThumb:t,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:i,onResize:h,...f}=r,S=v(g,o),[w,A]=d.useState(null),Y=T(e,m=>A(m)),x=d.useRef(null),L=d.useRef(""),M=S.viewport,j=l.content-l.viewport,D=P(i),y=P(c),N=X(h,10);function W(m){if(x.current){const p=m.clientX-x.current.left,R=m.clientY-x.current.top;u({x:p,y:R})}}return d.useEffect(()=>{const m=p=>{const R=p.target;w?.contains(R)&&D(p,j)};return document.addEventListener("wheel",m,{passive:!1}),()=>document.removeEventListener("wheel",m,{passive:!1})},[M,w,j,D]),d.useEffect(y,[l,y]),E(w,N),E(S.content,N),b.jsx(ve,{scope:o,scrollbar:w,hasThumb:t,onThumbChange:P(n),onThumbPointerUp:P(s),onThumbPositionChange:y,onThumbPointerDown:P(a),children:b.jsx(_.div,{...f,ref:Y,style:{position:"absolute",...f.style},onPointerDown:C(r.onPointerDown,m=>{m.button===0&&(m.target.setPointerCapture(m.pointerId),x.current=w.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),W(m))}),onPointerMove:C(r.onPointerMove,W),onPointerUp:C(r.onPointerUp,m=>{const p=m.target;p.hasPointerCapture(m.pointerId)&&p.releasePointerCapture(m.pointerId),document.body.style.webkitUserSelect=L.current,S.viewport&&(S.viewport.style.scrollBehavior=""),x.current=null})})})}),H="ScrollAreaThumb",oe=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=ee(H,r.__scopeScrollArea);return b.jsx(O,{present:o||t.hasThumb,children:b.jsx(pe,{ref:e,...l})})}),pe=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,style:l,...t}=r,n=v(H,o),s=ee(H,o),{onThumbPositionChange:a}=s,c=T(e,h=>s.onThumbChange(h)),u=d.useRef(void 0),i=X(()=>{u.current&&(u.current(),u.current=void 0)},100);return d.useEffect(()=>{const h=n.viewport;if(h){const f=()=>{if(i(),!u.current){const S=xe(h,a);u.current=S,a()}};return a(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,i,a]),b.jsx(_.div,{"data-state":s.hasThumb?"visible":"hidden",...t,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:C(r.onPointerDownCapture,h=>{const S=h.target.getBoundingClientRect(),w=h.clientX-S.left,A=h.clientY-S.top;s.onThumbPointerDown({x:w,y:A})}),onPointerUp:C(r.onPointerUp,s.onThumbPointerUp)})});oe.displayName=H;var B="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=v(B,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=B;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=v(B,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return E(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),E(t.scrollbarY,()=>{const i=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(i),s(i)}),u?b.jsx(_.div,{...l,ref:e,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function z(r){return r?parseInt(r,10):0}function ne(r,e){const o=r/e;return isNaN(o)?0:o}function I(r){const e=ne(r.viewport,r.content),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=(r.scrollbar.size-o)*e;return Math.max(l,18)}function ge(r,e,o,l="ltr"){const t=I(o),n=t/2,s=e||n,a=t-s,c=o.scrollbar.paddingStart+s,u=o.scrollbar.size-o.scrollbar.paddingEnd-a,i=o.content-o.viewport,h=l==="ltr"?[0,i]:[i*-1,0];return le([c,u],h)(r)}function k(r,e,o="ltr"){const l=I(e),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=e.scrollbar.size-t,s=e.content-e.viewport,a=n-l,c=o==="ltr"?[0,s]:[s*-1,0],u=de(r,c);return le([0,s],[0,a])(u)}function le(r,e){return o=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const l=(e[1]-e[0])/(r[1]-r[0]);return e[0]+l*(o-r[0])}}function se(r,e){return r>0&&r<e}var xe=(r,e=()=>{})=>{let o={left:r.scrollLeft,top:r.scrollTop},l=0;return(function t(){const n={left:r.scrollLeft,top:r.scrollTop},s=o.left!==n.left,a=o.top!==n.top;(s||a)&&e(),o=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function X(r,e){const o=P(r),l=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(l.current),[]),d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(o,e)},[o,e])}function E(r,e){const o=P(e);ie(()=>{let l=0;if(r){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(o)});return t.observe(r),()=>{window.cancelAnimationFrame(l),t.unobserve(r)}}},[r,o])}var Pe=G,Ce=K,Re=te;function _e(r){const e=F.c(21);let o,l,t,n,s;e[0]!==r?({className:l,children:o,hideScrollbar:n,viewportRef:s,...t}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n,e[5]=s):(o=e[1],l=e[2],t=e[3],n=e[4],s=e[5]);const a=n===void 0?!1:n;let c;e[6]!==l?(c=$("relative h-full w-full",l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==o?(u=b.jsx("div",{className:"flex min-w-0 flex-col",children:o}),e[8]=o,e[9]=u):u=e[9];let i;e[10]!==u||e[11]!==s?(i=b.jsx(Ce,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] transition-[color,box-shadow] focus-ring",children:u}),e[10]=u,e[11]=s,e[12]=i):i=e[12];let h;e[13]!==a?(h=b.jsx(Ee,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Re,{}),e[15]=f):f=e[15];let S;return e[16]!==t||e[17]!==c||e[18]!==i||e[19]!==h?(S=b.jsxs(Pe,{"data-slot":"scroll-area",className:c,...t,children:[i,h,f]}),e[16]=t,e[17]=c,e[18]=i,e[19]=h,e[20]=S):S=e[20],S}function Ee(r){const e=F.c(15);let o,l,t,n;e[0]!==r?({className:o,orientation:t,hideScrollbar:n,...l}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n):(o=e[1],l=e[2],t=e[3],n=e[4]);const s=t===void 0?"vertical":t,a=n===void 0?!1:n,c=s==="vertical"&&"h-full w-2.5 border-l border-l-transparent",u=s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i=a&&"hidden";let h;e[5]!==o||e[6]!==c||e[7]!==u||e[8]!==i?(h=$("select-none touch-none p-px transition-colors",c,u,i,o),e[5]=o,e[6]=c,e[7]=u,e[8]=i,e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(oe,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"}),e[10]=f):f=e[10];let S;return e[11]!==s||e[12]!==l||e[13]!==h?(S=b.jsx(Q,{"data-slot":"scroll-area-scrollbar",orientation:s,className:h,...l,children:f}),e[11]=s,e[12]=l,e[13]=h,e[14]=S):S=e[14],S}export{_e as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,j as a,bZ as j,h as I,b_ as S,b$ as b}from"./index-
|
|
1
|
+
import{c as f,j as a,bZ as j,h as I,b_ as S,b$ as b}from"./index-DmyPeHtj.js";import{i as g}from"./SearchMd-C7M41YQV.js";function N(x){const e=f.c(14),{value:r,onChange:l,placeholder:h,onKeyDown:i,className:p,isSearching:c,disabled:u}=x,m=h===void 0?"Search...":h;let s;e[0]!==c?(s=a.jsx(j,{className:"pr-0",children:c?a.jsx(I,{className:"size-4"}):a.jsx(g,{})}),e[0]=c,e[1]=s):s=e[1];let t;e[2]!==l?(t=d=>l(d.target.value),e[2]=l,e[3]=t):t=e[3];let n;e[4]!==u||e[5]!==i||e[6]!==m||e[7]!==t||e[8]!==r?(n=a.jsx(S,{type:"text",value:r,onChange:t,onKeyDown:i,placeholder:m,disabled:u}),e[4]=u,e[5]=i,e[6]=m,e[7]=t,e[8]=r,e[9]=n):n=e[9];let o;return e[10]!==p||e[11]!==s||e[12]!==n?(o=a.jsxs(b,{size:"sm",className:p,children:[s,n]}),e[10]=p,e[11]=s,e[12]=n,e[13]=o):o=e[13],o}export{N as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as K,r as C,m as B,j as a,b8 as M}from"./index-
|
|
1
|
+
import{c as K,r as C,m as B,j as a,b8 as M}from"./index-DmyPeHtj.js";import{i as I}from"./SearchMd-C7M41YQV.js";import{I as O}from"./icon-button-BKSgoP48.js";function G(S){const e=K.c(34),{value:t,onChange:s,label:E,placeholder:D,clearLabel:F,expanded:o,className:j}=S,w=E===void 0?"Search":E,d=D===void 0?"Search…":D,_=F===void 0?"Clear search":F,[L,p]=C.useState(t!==""),[R,z]=C.useState(!1),[V,$]=C.useState(t);if(t!==V&&($(t),t===""&&!R&&p(!1)),!L&&!o){let l,g;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>p(!0),g=a.jsx(I,{}),e[0]=l,e[1]=g):(l=e[0],g=e[1]);let v;return e[2]!==w?(v=a.jsx(O,{label:w,tooltipSide:"bottom",variant:"outline",onClick:l,children:g}),e[2]=w,e[3]=v):v=e[3],v}const k=o?"h-10 w-full px-3":"h-7 w-32 animate-search-expand px-2.5 sm:w-44";let n;e[4]!==j||e[5]!==k?(n=B("inline-flex shrink-0 items-center gap-1.5 overflow-hidden rounded-full bg-card text-card-foreground shadow-edge",k,j),e[4]=j,e[5]=k,e[6]=n):n=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(I,{className:"size-4 shrink-0 text-muted-foreground"}),e[7]=x):x=e[7];const y=!o;let r;e[8]!==s?(r=l=>s(l.target.value),e[8]=s,e[9]=r):r=e[9];let h;e[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>z(!0),e[10]=h):h=e[10];let i;e[11]!==t?(i=()=>{z(!1),t===""&&p(!1)},e[11]=t,e[12]=i):i=e[12];let c;e[13]!==s?(c=l=>{l.key==="Escape"&&s("")},e[13]=s,e[14]=c):c=e[14];const N=o?"text-sm":"text-xs";let f;e[15]!==N?(f=B("w-full min-w-0 bg-transparent outline-none placeholder:text-muted-foreground",N),e[15]=N,e[16]=f):f=e[16];let u;e[17]!==d||e[18]!==i||e[19]!==c||e[20]!==f||e[21]!==y||e[22]!==r||e[23]!==t?(u=a.jsx("input",{autoFocus:y,value:t,onChange:r,onFocus:h,onBlur:i,onKeyDown:c,placeholder:d,"aria-label":d,className:f}),e[17]=d,e[18]=i,e[19]=c,e[20]=f,e[21]=y,e[22]=r,e[23]=t,e[24]=u):u=e[24];let m;e[25]!==_||e[26]!==o||e[27]!==s||e[28]!==t?(m=t!==""&&a.jsx("button",{type:"button","aria-label":_,onMouseDown:P,onClick:()=>{s(""),o||p(!1)},className:"shrink-0 text-muted-foreground hover:text-foreground",children:a.jsx(M,{className:"size-3.5"})}),e[25]=_,e[26]=o,e[27]=s,e[28]=t,e[29]=m):m=e[29];let b;return e[30]!==u||e[31]!==m||e[32]!==n?(b=a.jsxs("div",{className:n,children:[x,u,m]}),e[30]=u,e[31]=m,e[32]=n,e[33]=b):b=e[33],b}function P(S){return S.preventDefault()}export{G as S};
|