decocms 4.459.0 → 4.459.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-Cnt3s3Qv.js → AlertCircle-BhLvKd51.js} +1 -1
- package/dist/client/assets/{AreaChart-Cds6XVCQ.js → AreaChart-BXdKk-Jh.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CVapKJeO.js → ArrowLeft-BGBmg7V7.js} +1 -1
- package/dist/client/assets/{ArrowUp-BlzOYA31.js → ArrowUp-BiSVkN3f.js} +1 -1
- package/dist/client/assets/{Building02-DEQgvDUF.js → Building02-Cn4v8u0T.js} +1 -1
- package/dist/client/assets/{CartesianChart-B_Fanzw9.js → CartesianChart-CaWYdC9u.js} +1 -1
- package/dist/client/assets/{Check-CzSx-ydY.js → Check-BIm8oPAI.js} +1 -1
- package/dist/client/assets/{CheckCircle-BWPfjhqr.js → CheckCircle-DtMOIYIN.js} +1 -1
- package/dist/client/assets/{ChevronUp-rUh9iEAD.js → ChevronUp-CW9NwQNu.js} +1 -1
- package/dist/client/assets/{Copy01-C2Yrgrxb.js → Copy01-CVhdu84v.js} +1 -1
- package/dist/client/assets/{CreditCard01-hJClrSeg.js → CreditCard01-YvQwrjsc.js} +1 -1
- package/dist/client/assets/{DotsVertical-3xNyBi9X.js → DotsVertical-D-FvZQn0.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-ByxxxsZC.js → ErrorBarContext-D3MulA5M.js} +1 -1
- package/dist/client/assets/{Image01-BB-fQuF8.js → Image01-CGBVFmAI.js} +1 -1
- package/dist/client/assets/{Key01-DcjI-nGA.js → Key01-CwVo9Cfv.js} +1 -1
- package/dist/client/assets/{Line-ZiYmGsuL.js → Line-C48uhTy3.js} +1 -1
- package/dist/client/assets/{Link01-BRPPP5SV.js → Link01-9k5oDSP-.js} +1 -1
- package/dist/client/assets/{LinkBroken01-BkNFLcBO.js → LinkBroken01-CKAYv5Ws.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DGnJ7QLB.js → LinkExternal01-DNJF5sr3.js} +1 -1
- package/dist/client/assets/{Monitor01-CwkGnynm.js → Monitor01-emBSPIO-.js} +1 -1
- package/dist/client/assets/{Palette-vvvH2B7g.js → Palette-CbtdR6wJ.js} +1 -1
- package/dist/client/assets/{Plus-IBFVYt16.js → Plus-088McVZs.js} +1 -1
- package/dist/client/assets/{SearchMd-ma2pJckE.js → SearchMd-CRK8FN15.js} +1 -1
- package/dist/client/assets/{Sector-CR8YJj93.js → Sector-cSOsr2E-.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-D_1-HSzF.js → ShoppingBag01-BxQzf-9l.js} +1 -1
- package/dist/client/assets/{Sun-D8jVF5Xg.js → Sun-D6nY-Bb0.js} +1 -1
- package/dist/client/assets/{Tool01-BQ6YeSBp.js → Tool01-DQQGDcpr.js} +1 -1
- package/dist/client/assets/{Trash01-CFIg7T-4.js → Trash01-B3Mmvw35.js} +1 -1
- package/dist/client/assets/{Upload01-DR9ASh0y.js → Upload01-jQPNdEwy.js} +1 -1
- package/dist/client/assets/{User01-B1tXJtqS.js → User01-B-OC1WKF.js} +1 -1
- package/dist/client/assets/{UserSquare-Cx5Xiw2A.js → UserSquare-DAPHqKUt.js} +1 -1
- package/dist/client/assets/{Users01-Dnx31YPK.js → Users01-ClTO42s_.js} +1 -1
- package/dist/client/assets/{X-CgBe-4Jc.js → X-B8pJz_49.js} +1 -1
- package/dist/client/assets/{XAxis-O9p9WbIW.js → XAxis-D6VwqdrO.js} +1 -1
- package/dist/client/assets/{XClose-BUXY9lDw.js → XClose-BqnBpCCh.js} +1 -1
- package/dist/client/assets/{ZoomOut-1hnYerz5.js → ZoomOut-DsjWT-m0.js} +1 -1
- package/dist/client/assets/{access-gate-IfeDUCmD.js → access-gate-Bn9w-zIx.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-Dq2YpbVF.js → add-connection-dialog-BhN1VUAm.js} +1 -1
- package/dist/client/assets/{agent-analytics-BxHEhXGJ.js → agent-analytics-DqtV4MPf.js} +1 -1
- package/dist/client/assets/agent-app-CwRJsLag.js +1 -0
- package/dist/client/assets/{agent-assets-De3wO9xX.js → agent-assets-BFqhddLD.js} +1 -1
- package/dist/client/assets/{agent-automation-DA8thEE9.js → agent-automation-C8klKvKY.js} +1 -1
- package/dist/client/assets/{agent-automations-B-eYvFiq.js → agent-automations-DqhEODAb.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-B4X91jM-.js → agent-connect-sources-C86EyOB5.js} +1 -1
- package/dist/client/assets/agent-deck-DGV-pK2t.js +1 -0
- package/dist/client/assets/{agent-e2e-D_bSHB2i.js → agent-e2e-DzJ9sAzc.js} +1 -1
- package/dist/client/assets/{agent-experiments-D9Hm886u.js → agent-experiments-VcqTmtZL.js} +1 -1
- package/dist/client/assets/{agent-file-C53RbwG4.js → agent-file-DI2wK--r.js} +1 -1
- package/dist/client/assets/{agent-hosting-Ck4H3tEL.js → agent-hosting-kfFKqM9r.js} +1 -1
- package/dist/client/assets/{agent-icon-CIGL1pZs.js → agent-icon-CP_Ce3vP.js} +1 -1
- package/dist/client/assets/agent-library-Dlz_4LiQ.js +1 -0
- package/dist/client/assets/agent-library-file-DPfP5s66.js +1 -0
- package/dist/client/assets/{agent-monitor-C8IHLMHD.js → agent-monitor-Cmsy40BX.js} +1 -1
- package/dist/client/assets/agent-overview-CmHeFyml.js +1 -0
- package/dist/client/assets/agent-settings-C7f7_N2z.js +1 -0
- package/dist/client/assets/{agent-site-editor-DaSW5uvn.js → agent-site-editor-Cn5duNcn.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-CIrGs6m3.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-Bb1ejRxz.js → agent-site-editor-content-CbT525Tv.js} +5 -5
- package/dist/client/assets/{agent-site-editor-preview-CoQ_Kpp-.js → agent-site-editor-preview-CYb_d7vH.js} +3 -3
- package/dist/client/assets/agent-view-Be5hcLqc.js +1 -0
- package/dist/client/assets/{agent-view-guard-COCiOJT8.js → agent-view-guard-C1R2qCc9.js} +1 -1
- package/dist/client/assets/{agents-list-XUQd9rlP.js → agents-list-y-TIBGAq.js} +1 -1
- package/dist/client/assets/{ai-providers-0dAet6Ph.js → ai-providers-CRe_x6a5.js} +1 -1
- package/dist/client/assets/{alert-DrR2x4bd.js → alert-DtABAm9U.js} +1 -1
- package/dist/client/assets/{alert-dialog-CYGz7ldN.js → alert-dialog-DmVEYAb4.js} +1 -1
- package/dist/client/assets/{analytics-sections-BPEmvryR.js → analytics-sections-B7lS35B2.js} +1 -1
- package/dist/client/assets/{api-keys-DUUMIXcJ.js → api-keys-Cif1835z.js} +1 -1
- package/dist/client/assets/api-keys-Dwm2bo1Y.js +1 -0
- package/dist/client/assets/app-editor-C8_M7ADb.js +1 -0
- package/dist/client/assets/{asset-utils-BsDgokdc.js → asset-utils-CT4-E6TK.js} +1 -1
- package/dist/client/assets/{auth-CbP-I67u.js → auth-2OsbyFrK.js} +1 -1
- package/dist/client/assets/{auth-catchall-gXqx7jWL.js → auth-catchall-BzbXV9-m.js} +1 -1
- package/dist/client/assets/{auth-entry-CXFwVhZf.js → auth-entry-DGYmKia4.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DAiKWK3e.js → auth-split-layout-95LDkF8r.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DIDvxq7p.js → authenticate-and-persist-oauth-BGZheh1t.js} +1 -1
- package/dist/client/assets/{automation-list-row-C9x2-dqo.js → automation-list-row-DVowGYyJ.js} +1 -1
- package/dist/client/assets/{automation-runs-BFkUkwl_.js → automation-runs-C4ptawD5.js} +1 -1
- package/dist/client/assets/{automations-CMtFKDqu.js → automations-9sMoXMlz.js} +1 -1
- package/dist/client/assets/{autosend-DCU1n5eC.js → autosend-BL2q_s0u.js} +1 -1
- package/dist/client/assets/{avatar-B48LJY_f.js → avatar-BE-fSFZD.js} +1 -1
- package/dist/client/assets/{badge-CbK6PWVy.js → badge-CWkPL4_H.js} +1 -1
- package/dist/client/assets/{block-document-B78z-a3g.js → block-document-B5Nbhvq6.js} +3 -3
- package/dist/client/assets/{blocks-preview-workspace-context-C85CoWqo.js → blocks-preview-workspace-context-BmQuZmk0.js} +1 -1
- package/dist/client/assets/{blog-schema-SRUdp3sd.js → blog-schema-C5vM1gTk.js} +1 -1
- package/dist/client/assets/{buckets-8RnICEdF.js → buckets-CSwPt34t.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CgZLsG1y.js → build-improve-prompt-doc-ztgqv-Z4.js} +1 -1
- package/dist/client/assets/{calendar-BLnb7Mll.js → calendar-BibeDh1C.js} +1 -1
- package/dist/client/assets/{capability-load-error-azaduCYQ.js → capability-load-error-Cifg-uxi.js} +1 -1
- package/dist/client/assets/category-editor-LUC4tS1v.js +1 -0
- package/dist/client/assets/{chart-DH7MfDo4.js → chart-Dtz_P3D3.js} +5 -5
- package/dist/client/assets/{chat-context-Dz_Vgbbo.js → chat-context-Blq_eRG7.js} +6 -6
- package/dist/client/assets/{chat-draft-BEcLQYcH.js → chat-draft-jYk7-XVU.js} +1 -1
- package/dist/client/assets/{checkbox-fg5Liawx.js → checkbox-D5Dxpou_.js} +1 -1
- package/dist/client/assets/{choose-editor-BwpCyTHb.js → choose-editor-db_FowHS.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-CFpL9K68.js → claim-phase-copy-8K3qgNLh.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DIWSlo4_.js → cli-auth-success-DjOImTaI.js} +1 -1
- package/dist/client/assets/{client-icons-BAQMv0Qg.js → client-icons-BkFbGfWa.js} +1 -1
- package/dist/client/assets/{collapsible-BbONBSMG.js → collapsible-DsS_PEhd.js} +1 -1
- package/dist/client/assets/{collection-detail-DLFQHJrO.js → collection-detail-DP9fd0Dw.js} +1 -1
- package/dist/client/assets/{collection-display-button-1HU6sh_z.js → collection-display-button-C2K7H_M_.js} +1 -1
- package/dist/client/assets/{collection-search-D8CVrsVV.js → collection-search-9MFDsQ6p.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-MT5DbxAL.js → collection-table-wrapper-SA5bpKVN.js} +1 -1
- package/dist/client/assets/{collection-tabs-0IVfLZGF.js → collection-tabs-jDuTyfYq.js} +1 -1
- package/dist/client/assets/{column-rules-CX7nbnH9.js → column-rules-D6JxKTRe.js} +1 -1
- package/dist/client/assets/{combobox-DhYfa0RQ.js → combobox-DF39TceE.js} +1 -1
- package/dist/client/assets/{command-D3dAN0q_.js → command-B4jGFd17.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-PzMGKTiF.js → companion-mcps-section-CVSn-aTg.js} +1 -1
- package/dist/client/assets/config-bg0vG3sC.js +1 -0
- package/dist/client/assets/{connect-CZqVU7B6.js → connect-D_b6-CyS.js} +1 -1
- package/dist/client/assets/{connect-layout-mdLHs13X.js → connect-layout-DDUc-hD-.js} +1 -1
- package/dist/client/assets/{connection-PwoIxFr1.js → connection-CwaA-4mr.js} +1 -1
- package/dist/client/assets/{connection-card-Bkip9U2_.js → connection-card-BtsAXkN4.js} +1 -1
- package/dist/client/assets/{connection-detail-B_oXBonF.js → connection-detail-QHFcVXMr.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-RxtiQen1.js → connection-form-helpers-BV0FZHte.js} +1 -1
- package/dist/client/assets/{connections-C8w4xaQ1.js → connections-CNadoE5b.js} +1 -1
- package/dist/client/assets/context-CFdmX9Xg.js +1 -0
- package/dist/client/assets/{context-menu-DGbccz2w.js → context-menu-BnfFPukJ.js} +1 -1
- package/dist/client/assets/core.esm-C5SAJNWk.js +5 -0
- package/dist/client/assets/{create-organization-dialog-D3pW5srr.js → create-organization-dialog-mc6cUsWg.js} +1 -1
- package/dist/client/assets/{daily-pulse-jsV2hysv.js → daily-pulse-DxbyF8Ez.js} +1 -1
- package/dist/client/assets/{decopilot--nY6-Nba.js → decopilot-NLRNUzMe.js} +1 -1
- package/dist/client/assets/{device-hint-CusD2WUe.js → device-hint-Bk3hM3wv.js} +1 -1
- package/dist/client/assets/{dialog-7XPFiysQ.js → dialog-BGB8jiGJ.js} +1 -1
- package/dist/client/assets/{discover-B2TNQgKF.js → discover-DTxiggmr.js} +1 -1
- package/dist/client/assets/{domain-settings-C_KSW-jG.js → domain-settings--d3mBGQt.js} +1 -1
- package/dist/client/assets/{download-app-dialog-DKnC1JBE.js → download-app-dialog-C1623CnU.js} +1 -1
- package/dist/client/assets/{drawer-Bw83CS61.js → drawer-CDzlciSr.js} +1 -1
- package/dist/client/assets/{editor-BGyR0Yu7.js → editor-CtDmuL7X.js} +3 -3
- package/dist/client/assets/{empty-state-BqrekKjc.js → empty-state-CjQyKZ-1.js} +1 -1
- package/dist/client/assets/{empty-state-BPSNY9Ff.js → empty-state-ClSZs1JG.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D2UmPaHV.js → extract-connection-data-BnK0gWOf.js} +1 -1
- package/dist/client/assets/{feature-gate-Dy49RHsY.js → feature-gate-cEqP5nQK.js} +1 -1
- package/dist/client/assets/{feature-paywall-Cq3ulvvn.js → feature-paywall-B0iudT_s.js} +1 -1
- package/dist/client/assets/{file-explorer-CpTAURot.js → file-explorer-CPmbjsZ0.js} +1 -1
- package/dist/client/assets/{file-preview-BzweKibR.js → file-preview-FOaYPomf.js} +1 -1
- package/dist/client/assets/{file-share-button-B0pm46tc.js → file-share-button-C99y-deU.js} +1 -1
- package/dist/client/assets/{file-type-icon-CLaHXnTs.js → file-type-icon-CaoQ1xmx.js} +1 -1
- package/dist/client/assets/flat-project-U_elHLQG.js +1 -0
- package/dist/client/assets/{folder-icon-mwp3RZsH.js → folder-icon-C189zm-A.js} +1 -1
- package/dist/client/assets/{form-Bq3zfSIW.js → form-Bc6DsBML.js} +1 -1
- package/dist/client/assets/{gateway-client-3IqhjEcP.js → gateway-client-C0zWKCU4.js} +1 -1
- package/dist/client/assets/{general-CEini4k1.js → general-BtREXR3p.js} +1 -1
- package/dist/client/assets/home-twE7M1iU.js +1 -0
- package/dist/client/assets/{icon-button-mN70eAbU.js → icon-button-DI_TQN14.js} +1 -1
- package/dist/client/assets/{index-ChVmLdHW.js → index-BDhW9xxN.js} +4 -4
- package/dist/client/assets/{index-CmiT1BjZ.js → index-BOGlzqxy.js} +1 -1
- package/dist/client/assets/{index-NzXgSYlC.js → index-BgnBPJ_k.js} +1 -1
- package/dist/client/assets/{index-CpaCFTVB.js → index-Bjctp948.js} +1 -1
- package/dist/client/assets/{index-Bw3vJovA.js → index-CKHLb67S.js} +5 -5
- package/dist/client/assets/{index-CvNCy3PN.js → index-CN7c5BIN.js} +1 -1
- package/dist/client/assets/{index-BqteJsv4.js → index-C_I69v1G.js} +1 -1
- package/dist/client/assets/{index-BGJh0fv3.js → index-CdXinK8k.js} +1 -1
- package/dist/client/assets/{index-BrjxbobA.js → index-ChB9J_RZ.js} +1 -1
- package/dist/client/assets/{index-DZa7kB0Z.js → index-DClhYi2n.js} +1 -1
- package/dist/client/assets/{index-4prK16Bx.js → index-DH9SXre1.js} +1 -1
- package/dist/client/assets/{index-Bf68wbQY.js → index-G3JSHUT3.js} +1 -1
- package/dist/client/assets/{index-BVoDvJqr.js → index-RmHD0J0J.js} +1 -1
- package/dist/client/assets/{index-D1n3DRPd.js → index-XEhCSGBE.js} +1 -1
- package/dist/client/assets/{index-IcPh7oEh.js → index-kogfMavo.js} +1 -1
- package/dist/client/assets/{index-redirect-DsKYJNmF.js → index-redirect-BVO0FWKk.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-D1DafD0M.js → infiniteQueryObserver-8nco6j0l.js} +1 -1
- package/dist/client/assets/{infra-billing-zUiDiuZM.js → infra-billing-D_L2KNiI.js} +1 -1
- package/dist/client/assets/{input-BrPt5MZJ.js → input--BdO_-Si.js} +1 -1
- package/dist/client/assets/{input-C2Q29OSf.js → input-Bl8RoIF_.js} +3 -3
- package/dist/client/assets/{input-9ltBphX4.js → input-DrKcGYrl.js} +1 -1
- package/dist/client/assets/{integration-icon-d1AiAF22.js → integration-icon-BDP6F9Pj.js} +1 -1
- package/dist/client/assets/{label-llKCPsPO.js → label-uTNaIuWI.js} +1 -1
- package/dist/client/assets/{layout-EXCNCQSS.js → layout-wln6hIY8.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-eylzpiF_.js → legacy-agents-deep-CawwPAe9.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-D_lkF7FC.js → legacy-main-redirect-BRfxPgdK.js} +1 -1
- package/dist/client/assets/library-DvaCz1Wk.js +1 -0
- package/dist/client/assets/{library-tab-Lgm0ghP5.js → library-tab-CX8njRPr.js} +1 -1
- package/dist/client/assets/{login-DuFlqpvt.js → login-Ba7PbDUP.js} +1 -1
- package/dist/client/assets/{markdown-Dmr3MD7N.js → markdown-LIOti3qC.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-BQm3KRIJ.js → mcp-app-renderer-Z11oKtDn.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BDj-ENs2.js → mcp-oauth-DdEBE0Y7.js} +1 -1
- package/dist/client/assets/{members-D2zsUYru.js → members-BpY2Uunx.js} +1 -1
- package/dist/client/assets/{memory-DCcCIE6E.js → memory-BOfe9xo8.js} +1 -1
- package/dist/client/assets/{mini-report-page-8E9sblcd.js → mini-report-page-CDObofTo.js} +1 -1
- package/dist/client/assets/{mock-board-BVxIfeR9.js → mock-board-DTiFXXEW.js} +1 -1
- package/dist/client/assets/{monaco-editor-k3tefZgc.js → monaco-editor-J-McljL4.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-pBlR6qWx.js → monitoring-stats-row-BuUSw5n9.js} +1 -1
- package/dist/client/assets/{multi-select-B2Ze7jsd.js → multi-select-YETcY4pN.js} +1 -1
- package/dist/client/assets/{mustache-DBD5y6DJ.js → mustache-B6NVLdGZ.js} +1 -1
- package/dist/client/assets/{new-project-dialog-Cy-6meY2.js → new-project-dialog-C_qrCiK3.js} +1 -1
- package/dist/client/assets/{oauth-callback-BjmTr7x6.js → oauth-callback-CoY1dClF.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BkhAnS03.js → oauth-callback-ai-provider-DRzdFuFq.js} +1 -1
- package/dist/client/assets/{onboarding-NzhRXTjq.js → onboarding-ZdgIxalP.js} +1 -1
- package/dist/client/assets/{openai-conversation-B2eCHMd2.js → openai-conversation-D0z85aeO.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-bEyFOTpu.js → optimistic-project-sidebar-views-F9PSyz4u.js} +1 -1
- package/dist/client/assets/{org-file-open-context-GQ31bTUS.js → org-file-open-context-BMxi_LQF.js} +1 -1
- package/dist/client/assets/{organization-choice-j7iLLEc2.js → organization-choice-BByF2TD6.js} +1 -1
- package/dist/client/assets/{orgs-86mFN1bL.js → orgs-DNf-zQVQ.js} +1 -1
- package/dist/client/assets/{page-seo-form-ChqcYa8F.js → page-seo-form-D3EpRlka.js} +1 -1
- package/dist/client/assets/{pair-W1JkklHY.js → pair-DcQaouFq.js} +1 -1
- package/dist/client/assets/{plan-ladder-BcnPG8kD.js → plan-ladder-DCJHDLS1.js} +1 -1
- package/dist/client/assets/{popover-CqhYMlVn.js → popover-BeYdUP-7.js} +1 -1
- package/dist/client/assets/post-calendar-CWlL1qOv.js +1 -0
- package/dist/client/assets/{post-editor-BaU9SxKj.js → post-editor-BqiuLn6r.js} +2 -2
- package/dist/client/assets/{preview-content-HhS4fEPc.js → preview-content-wfTnwfYO.js} +1 -1
- package/dist/client/assets/{preview-dialog-dA-lxV4T.js → preview-dialog-BBD3jkZw.js} +1 -1
- package/dist/client/assets/{profile-BRC9Ss0Z.js → profile-C4Rt4NnT.js} +1 -1
- package/dist/client/assets/project-app-view-BSuJFE5I.js +1 -0
- package/dist/client/assets/project-feed-DmY6xTEa.js +1 -0
- package/dist/client/assets/{project-icon-C7Hu1tJm.js → project-icon-CtBv5qE9.js} +1 -1
- package/dist/client/assets/project-reports-DqdW9cvU.js +1 -0
- package/dist/client/assets/project-tasks-n0fjaerW.js +1 -0
- package/dist/client/assets/{projects-Dpuak2HA.js → projects-C5p0nBlq.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BURfBBvk.js → projects-empty-state-CTShW1Lx.js} +1 -1
- package/dist/client/assets/{prompts-CiBT8-NB.js → prompts-CQ9lRosC.js} +1 -1
- package/dist/client/assets/record-editor-CuQArctF.js +1 -0
- package/dist/client/assets/redirect-editor-BqLcv-Nb.js +1 -0
- package/dist/client/assets/{reports-B9whLNOW.js → reports-D1mTKUWD.js} +1 -1
- package/dist/client/assets/reports-eg7qCRZt.js +1 -0
- package/dist/client/assets/{reports-onboarding-OKRaptw7.js → reports-onboarding-Bhi9ZgPz.js} +1 -1
- package/dist/client/assets/reports-tab-CvuocIip.js +2 -0
- package/dist/client/assets/{repositories-heCfXdkU.js → repositories-BYsSTJU-.js} +1 -1
- package/dist/client/assets/{repository-binding-c-pt63EX.js → repository-binding-C6IRmj-B.js} +1 -1
- package/dist/client/assets/{repository-import-picker-DRt0VM9d.js → repository-import-picker-COTFeOcQ.js} +1 -1
- package/dist/client/assets/{repository-picker-nqe38njd.js → repository-picker-sBc4_JWX.js} +1 -1
- package/dist/client/assets/{require-capability-Dir5VfBS.js → require-capability-BhFz_zS7.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CIIRb74R.js → required-auth-layout-CslXPG0m.js} +1 -1
- package/dist/client/assets/{reset-password-yOtTjadj.js → reset-password-D0bAgN3-.js} +1 -1
- package/dist/client/assets/{resizable-CfLbGzYc.js → resizable-DQ19gouy.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-C1JCYc8e.js → resolve-tab-icon-CY3X9f4_.js} +1 -1
- package/dist/client/assets/{review-settings-BdDEMD7G.js → review-settings-BV2AxARx.js} +1 -1
- package/dist/client/assets/rich-text-link-control-B1QtoX3z.js +1 -0
- package/dist/client/assets/{roles-bh3gMsHP.js → roles-BeG_4GHR.js} +1 -1
- package/dist/client/assets/route-BqiT-Ol6.js +1 -0
- package/dist/client/assets/route-CAFnuBNg.js +1 -0
- package/dist/client/assets/route-CHYkbxgn.js +1 -0
- package/dist/client/assets/{runnable-block-editor-CuWmi7BA.js → runnable-block-editor-DcMkYuUb.js} +4 -4
- package/dist/client/assets/{sandbox-lifecycle-context-IbJdCFZl.js → sandbox-lifecycle-context-DeQIS6JV.js} +1 -1
- package/dist/client/assets/{schema-D71rjoG0.js → schema-B4_xo1tD.js} +1 -1
- package/dist/client/assets/{scroll-area-C1A8PvHb.js → scroll-area-DCMK1tWu.js} +1 -1
- package/dist/client/assets/{search-input-Bt-TRqMJ.js → search-input-BSOQ3ySE.js} +1 -1
- package/dist/client/assets/{search-toggle-DJ_XCJbV.js → search-toggle-C-N7d4fN.js} +1 -1
- package/dist/client/assets/{secret-picker-CUh7CKpQ.js → secret-picker-DZTMfxXL.js} +1 -1
- package/dist/client/assets/{secrets-BdK4qu9r.js → secrets-Bx2QImFq.js} +1 -1
- package/dist/client/assets/sections-editor-BYNA13Qk.js +1 -0
- package/dist/client/assets/{select-6CFL7VEE.js → select-B6DzqJiH.js} +1 -1
- package/dist/client/assets/{select-model-DP5ItPif.js → select-model-bJPmmx5f.js} +1 -1
- package/dist/client/assets/seo-editor-qeEunz7R.js +1 -0
- package/dist/client/assets/{separator-Dv_2rMb4.js → separator-iMNYfJb7.js} +1 -1
- package/dist/client/assets/{settings-tab-BpJo_e5R.js → settings-tab-BhyiSM9Z.js} +1 -1
- package/dist/client/assets/{sheet-DMTbOlwp.js → sheet-CMNWdtKR.js} +1 -1
- package/dist/client/assets/{shell-layout-CK7wLTUx.js → shell-layout-CTITeNJr.js} +1 -1
- package/dist/client/assets/{skills-DTxnfNaS.js → skills-BsLVR3Vn.js} +1 -1
- package/dist/client/assets/{sso-BNxOATww.js → sso-Jw8gC2hK.js} +1 -1
- package/dist/client/assets/{suggestion-BsbxdlrF.js → suggestion-CRtEJ9La.js} +1 -1
- package/dist/client/assets/{switch-BYw3Xugd.js → switch-Ay_EsHPF.js} +1 -1
- package/dist/client/assets/{synced-repos-D8_WCeck.js → synced-repos-DMWgs820.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-DboxqswS.js → tab-icon-glyph-C5LJrgle.js} +1 -1
- package/dist/client/assets/{table-Dvr7kYjd.js → table-BDAYwSIe.js} +1 -1
- package/dist/client/assets/{tabs-D3R4V_n3.js → tabs-QC_e18gg.js} +1 -1
- package/dist/client/assets/{task-board-jWDOqP6T.js → task-board-BpcFKojY.js} +1 -1
- package/dist/client/assets/task-route-CaaYbxyP.js +1 -0
- package/dist/client/assets/{task-status-B-SX0lAT.js → task-status-CtgvGjEg.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-3-5Zwbn5.js → taskboard-analytics-CkC7VEhH.js} +1 -1
- package/dist/client/assets/tasks-COTcKNjz.js +1 -0
- package/dist/client/assets/{tasks-CQz6Nviz.js → tasks-D-EA-uwO.js} +1 -1
- package/dist/client/assets/{textarea-BeITBKxj.js → textarea-MfQKTdum.js} +1 -1
- package/dist/client/assets/{thread-analytics-Chp53ll5.js → thread-analytics-xc71V_Jy.js} +1 -1
- package/dist/client/assets/{thread-button-CyealSYx.js → thread-button-RYt2155P.js} +1 -1
- package/dist/client/assets/{thread-intent-2EYthzbr.js → thread-intent-y4sFV6nC.js} +1 -1
- package/dist/client/assets/{thread-route-BJfF-e-7.js → thread-route-BRm6UAyi.js} +1 -1
- package/dist/client/assets/{thread-route-BAyYuLhg.js → thread-route-ZX2rkhqS.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-BT9_vo3C.js → thread-sheet-body-B9fTAvbI.js} +1 -1
- package/dist/client/assets/{toggle-group-DqXAR_ku.js → toggle-group-B2CGQVNc.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-SXWkQtCo.js → toolbar-icon-button-CsZD8f-r.js} +1 -1
- package/dist/client/assets/{tooltip-Cd2NmgKf.js → tooltip-D555rgHk.js} +1 -1
- package/dist/client/assets/{track-BzIxBx0U.js → track-DQPZdUAl.js} +1 -1
- package/dist/client/assets/{types-Yj0uB20y.js → types-C1FT5lJw.js} +1 -1
- package/dist/client/assets/{usage-stats-CPgORe2K.js → usage-stats-cLtXqoaq.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DRajJwjA.js → use-ai-providers-cz2PnRt5.js} +1 -1
- package/dist/client/assets/{use-automations-C-4XQ4JO.js → use-automations-BITjz5uS.js} +1 -1
- package/dist/client/assets/{use-autosave-B_ASkdoT.js → use-autosave-CXwSXrBr.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-QjPc9oo9.js → use-chat-layout-state-C_QstcMu.js} +1 -1
- package/dist/client/assets/{use-clock-tick-CDj388Wx.js → use-clock-tick-Dx4PkWs4.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CSdDEA_3.js → use-connect-companion-DdM71OKb.js} +1 -1
- package/dist/client/assets/{use-connection-C-VZ8w9P.js → use-connection-hMJ4m1KM.js} +1 -1
- package/dist/client/assets/{use-copy-DDBNqL1l.js → use-copy-D1Nm-kgX.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-KCSUU6WZ.js → use-create-virtual-mcp-CHjD7uCu.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-e4GZpEEu.js → use-date-fns-locale-Bp7nVQWs.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C5pQP1AE.js → use-debounced-autosave-SzIG02td.js} +1 -1
- package/dist/client/assets/{use-debounced-value-QxJhT0l9.js → use-debounced-value-DCwb28TF.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BOKw4P1d.js → use-deco-credits-3BarR1a3.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-e6tJ215a.js → use-decopilot-events-CY9KSVWJ.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Bl2-hIur.js → use-delete-connection-B4ggOZlI.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-D-VzDuWZ.js → use-deployment-admin-D9OrJmDH.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-C0bfTg9j.js → use-fast-preview-draft-url-QLdWZwPZ.js} +1 -1
- package/dist/client/assets/{use-file-configs-5_tcNCEF.js → use-file-configs-Dk0C1WSo.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-3EQsEpEW.js → use-infinite-scroll-DoBJIre7.js} +1 -1
- package/dist/client/assets/{use-join-requests-C33UkUVi.js → use-join-requests-51xqIM_A.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-BtITsfHw.js → use-main-panel-tabs-DmvkA1OF.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-C63PL9mw.js → use-mcp-auth-status-CVLugyb-.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Q4rBo7vM.js → use-mcp-client-alN3BSuJ.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BUsT36pj.js → use-mcp-prompts-C5SH_xGs.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BEIQB24m.js → use-mcp-tools-s04xKOM2.js} +1 -1
- package/dist/client/assets/{use-members-Up_i1D-k.js → use-members-DF7c1t5_.js} +1 -1
- package/dist/client/assets/{use-mobile-NUesfqlY.js → use-mobile-DEWonsbr.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-D_jqZmcT.js → use-navigate-to-agent-MADN_glW.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-D6QRwqGF.js +1 -0
- package/dist/client/assets/{use-open-billing-url-XbJkJRvN.js → use-open-billing-url-CSK9y7YW.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BV6ZBK4X.js → use-org-auth-client-CoFPUjTd.js} +1 -1
- package/dist/client/assets/{use-org-fs-BbRMsy5S.js → use-org-fs-BQ9rCXmr.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BxJXCsWN.js → use-org-repo-syncs-CaR1Xa1F.js} +1 -1
- package/dist/client/assets/{use-org-sso-CMHVPcMz.js → use-org-sso-DzvTriO7.js} +1 -1
- package/dist/client/assets/{use-organization-roles-C2vcpSSU.js → use-organization-roles-DGclowcu.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DOzB1VOw.js → use-organization-settings-BBoTt-lq.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-sve-S3VW.js → use-panel-navigate-yk7t3bcJ.js} +1 -1
- package/dist/client/assets/{use-project-scope-DiTyFpcQ.js → use-project-scope-BxM698pt.js} +1 -1
- package/dist/client/assets/{use-releases-f_VX5ISv.js → use-releases-BwrUbxxj.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-Bv_isoDm.js → use-reports-diagnostic-CpCwaiXg.js} +1 -1
- package/dist/client/assets/{use-secrets-CskMGRW-.js → use-secrets-BebZ2nF0.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-A6-AQdBJ.js → use-section-preview-base-Z5lePfkA.js} +1 -1
- package/dist/client/assets/{use-session-runtime-bs_s_abt.js → use-session-runtime-Cgb0XGQC.js} +1 -1
- package/dist/client/assets/{use-tags-DkfNupSg.js → use-tags-D9QMq4tP.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-Ci_fmCxC.js → use-task-board-analytics-jg77_cwt.js} +1 -1
- package/dist/client/assets/{use-task-board-events-CWmA4Ntk.js → use-task-board-events-gPs9mr0g.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CXgGKsKs.js → use-task-metadata-DhhvrkSV.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-jKD2KnkA.js → use-thread-analytics-DJFeqMXb.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-B2TafAgP.js → use-thread-outputs-CHJvnckm.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DWxFiM4L.js +1 -0
- package/dist/client/assets/{useQueries-Fm6fR85y.js → useQueries-Ckdgdjes.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Cc2PctH-.js +1 -0
- package/dist/client/assets/{users-CcYYe1k1.js → users-BTZ7odtd.js} +1 -1
- package/dist/client/assets/{utils-BT5oy4Sg.js → utils-BFq73cJ1.js} +1 -1
- package/dist/client/assets/variant-calendar-KMXxLfQ4.js +1 -0
- package/dist/client/assets/{variant-matcher-override-BsWNx25m.js → variant-matcher-override-M6HMnoKw.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CvV4AEos.js → view-mode-toggle-Bed1vKIv.js} +1 -1
- package/dist/client/assets/{virtual-mcp-C70ka1-l.js → virtual-mcp-DYlKBgbY.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-BpQ0nl5-.js +0 -1
- package/dist/client/assets/agent-deck-DU6uai7B.js +0 -1
- package/dist/client/assets/agent-library-DLdV7bTC.js +0 -1
- package/dist/client/assets/agent-library-file-BjsBj-Wl.js +0 -1
- package/dist/client/assets/agent-overview-DKDtU5t3.js +0 -1
- package/dist/client/assets/agent-settings-DyDWo-xz.js +0 -1
- package/dist/client/assets/agent-site-editor-code-qfzxbq5A.js +0 -2
- package/dist/client/assets/agent-view-71ZLty7s.js +0 -1
- package/dist/client/assets/api-keys-C3d-u3vQ.js +0 -1
- package/dist/client/assets/app-editor-CNbrXrX0.js +0 -1
- package/dist/client/assets/category-editor-DSiP9f3W.js +0 -1
- package/dist/client/assets/config-ZWQ8i__D.js +0 -1
- package/dist/client/assets/context-BfKSfp0f.js +0 -1
- package/dist/client/assets/flat-project-DUFYT5xZ.js +0 -1
- package/dist/client/assets/home-EA-2hmK_.js +0 -1
- package/dist/client/assets/library-BItXalTV.js +0 -1
- package/dist/client/assets/post-calendar-13r69x6B.js +0 -1
- package/dist/client/assets/project-app-view-C5SpLJK1.js +0 -1
- package/dist/client/assets/project-feed-D6agmcc_.js +0 -1
- package/dist/client/assets/project-reports-C9IB-nYY.js +0 -1
- package/dist/client/assets/project-tasks-CvAFJHcK.js +0 -1
- package/dist/client/assets/record-editor-CxL_DRZu.js +0 -1
- package/dist/client/assets/redirect-editor-CiM0EDOs.js +0 -1
- package/dist/client/assets/reports-DJBFYttZ.js +0 -1
- package/dist/client/assets/reports-tab-DfvYoVqg.js +0 -2
- package/dist/client/assets/rich-text-link-control-VXQ4aFnS.js +0 -5
- package/dist/client/assets/route-CnkEGFJm.js +0 -1
- package/dist/client/assets/route-bQkBR-ir.js +0 -1
- package/dist/client/assets/route-lim1UvZz.js +0 -1
- package/dist/client/assets/sections-editor-N2UAgVVa.js +0 -1
- package/dist/client/assets/seo-editor-CbsyPDlr.js +0 -1
- package/dist/client/assets/task-route-B3N_Er49.js +0 -1
- package/dist/client/assets/tasks-B1EusHyh.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-D6-Yba00.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CwfMdk7l.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CmT1utOV.js +0 -1
- package/dist/client/assets/variant-calendar-BmYiEWSz.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as Jt,b as Yt,r as j,l as oe,j as n,aR as ho,B as Vt,G as Kt,al as go,I as vo,H as So,o as yo,h as bo,t as N,K as xo}from"./index-ChVmLdHW.js";import{u as _o}from"./chat-context-Dz_Vgbbo.js";import{u as fs}from"./use-new-blocks-editor-D6-Yba00.js";import{E as jo,F as Eo,G as ko,H as wo,I as Ro,J as Vo,K as To,V as No,L as Ao,N as Bn,O as Mo,Q as Po,C as cs,y as us,e as Co,f as Do,j as Ko,u as Bo,T as Ln,U as Lo,W as Fo,X as Io,Y as Oo,Z as zo,p as rs,A as kt,_ as $o,$ as Ho,w as Fn,a0 as Go,a1 as qo,a2 as is,a3 as In,a4 as On,a5 as zn,a6 as As,a7 as Wo,a8 as Uo,z as Jo,a9 as $n,aa as Yo,ab as Hn,ac as Gn,M as Qo,ad as qn,ae as lt,d as Xo,af as qt,ag as Zo,ah as er,ai as Ms,aj as tr}from"./runnable-block-editor-CuWmi7BA.js";import{c as sr}from"./repository-binding-c-pt63EX.js";import{n as nr,t as ar}from"./ChevronUp-rUh9iEAD.js";import{a6 as oa,b as ms,aj as or,z as rr,$ as Wn,I as Un}from"./agent-icon-CIGL1pZs.js";import{S as Bt}from"./scroll-area-C1A8PvHb.js";import{b as ct,T as ut,a as dt}from"./tooltip-Cd2NmgKf.js";import{m as ir,u as lr,P as cr}from"./mustache-DBD5y6DJ.js";import{aq as ra,c as Is,ar as ia,G as ur,ag as Rt,a4 as Ds,as as Ks,ah as xt,a5 as Lt,j as dr,l as mr,g as fr,r as ls,ak as pr,af as Wt,at as tt,au as Jn,a6 as Ps,ae as bt,ad as Ut,av as hr,aw as gr,K as vr,ax as Sr,ai as Yn,_ as Qn,ay as yr,az as wt,aA as br,aB as xr,aC as _r,aD as Xn,aE as jr,aF as Er,aG as kr,ac as wr,aH as Rr,aI as Vr,aJ as Tr,aK as Nr,ab as Ar,aL as Mr}from"./claim-phase-copy-CFpL9K68.js";import{a as Pr}from"./Copy01-C2Yrgrxb.js";import{a as Bs,e as la}from"./UserSquare-Cx5Xiw2A.js";import{b as Zn}from"./Tool01-BQ6YeSBp.js";import{s as ea}from"./Image01-BB-fQuF8.js";import{s as Cr}from"./Plus-IBFVYt16.js";import{s as Dr}from"./Trash01-CFIg7T-4.js";import{i as Ls}from"./ZoomOut-1hnYerz5.js";import{a as Kr,b as ta,d as Br,K as Lr,P as Fr,u as Ir,C as Or,s as zr,e as ds,D as $r,c as Hr,S as Gr,v as qr}from"./rich-text-link-control-VXQ4aFnS.js";import{a as Wr,P as sa,b as Ur}from"./page-seo-form-ChqcYa8F.js";import{u as Jr,A as Yr}from"./use-section-preview-base-A6-AQdBJ.js";import{b as na,a as Qr}from"./variant-matcher-override-BsWNx25m.js";import"./use-panel-navigate-sve-S3VW.js";import"./thread-route-BJfF-e-7.js";import"./use-project-scope-DiTyFpcQ.js";import"./autosend-DCU1n5eC.js";import"./thread-intent-2EYthzbr.js";import"./use-mcp-client-Q4rBo7vM.js";import"./auth-CbP-I67u.js";import"./backoff-8mStPHYB.js";import"./task-board-jWDOqP6T.js";import"./schema-D71rjoG0.js";import"./slugify-CEUa2lfQ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-decopilot-events-e6tJ215a.js";import"./use-ai-providers-DRajJwjA.js";import"./location-DPIrGNp7.js";import"./use-organization-settings-DOzB1VOw.js";import"./use-session-runtime-bs_s_abt.js";import"./Sun-D8jVF5Xg.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-W1JkklHY.js";import"./LinkBroken01-BkNFLcBO.js";import"./Check-CzSx-ydY.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-BbONBSMG.js";import"./use-copy-DDBNqL1l.js";import"./usage-stats-CPgORe2K.js";import"./markdown-Dmr3MD7N.js";import"./dialog-7XPFiysQ.js";import"./X-CgBe-4Jc.js";import"./org-file-open-context-GQ31bTUS.js";import"./use-mobile-NUesfqlY.js";import"./use-clock-tick-CDj388Wx.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BQm3KRIJ.js";import"./types-Yj0uB20y.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./gateway-client-3IqhjEcP.js";import"./tool-namespace-DmnQIdtF.js";import"./utils-CVEq3hMx.js";import"./AlertCircle-Cnt3s3Qv.js";import"./XClose-BUXY9lDw.js";import"./ShoppingBag01-D_1-HSzF.js";import"./SearchMd-ma2pJckE.js";import"./shell-layout-CK7wLTUx.js";import"./avatar-B48LJY_f.js";import"./User01-B1tXJtqS.js";import"./Building02-DEQgvDUF.js";import"./download-app-dialog-DKnC1JBE.js";import"./CheckCircle-BWPfjhqr.js";import"./Monitor01-CwkGnynm.js";import"./command-D3dAN0q_.js";import"./index-CmiT1BjZ.js";import"./integration-icon-d1AiAF22.js";import"./project-icon-C7Hu1tJm.js";import"./new-project-dialog-Cy-6meY2.js";import"./ArrowLeft-CVapKJeO.js";import"./input-9ltBphX4.js";import"./label-llKCPsPO.js";import"./repository-import-picker-DRt0VM9d.js";import"./use-navigate-to-agent-D_jqZmcT.js";import"./repository-picker-nqe38njd.js";import"./LinkExternal01-DGnJ7QLB.js";import"./useInfiniteQuery-CwfMdk7l.js";import"./infiniteQueryObserver-D1DafD0M.js";import"./collection-search-D8CVrsVV.js";import"./use-debounced-value-QxJhT0l9.js";import"./required-auth-layout-CIIRb74R.js";import"./use-org-sso-CMHVPcMz.js";import"./sheet-DMTbOlwp.js";import"./use-connection-C-VZ8w9P.js";import"./Palette-vvvH2B7g.js";import"./Link01-BRPPP5SV.js";import"./use-mcp-prompts-BUsT36pj.js";import"./index-DZa7kB0Z.js";import"./form-Bq3zfSIW.js";import"./use-thread-outputs-B2TafAgP.js";import"./file-type-icon-CLaHXnTs.js";import"./popover-CqhYMlVn.js";import"./utils-BT5oy4Sg.js";import"./monaco-editor-k3tefZgc.js";import"./editor-BGyR0Yu7.js";import"./calendar-BLnb7Mll.js";import"./textarea-BeITBKxj.js";import"./select-6CFL7VEE.js";import"./index-CpaCFTVB.js";import"./switch-BYw3Xugd.js";import"./combobox-DhYfa0RQ.js";import"./alert-dialog-CYGz7ldN.js";import"./sandbox-url-D3mC8qhT.js";import"./Upload01-DR9ASh0y.js";import"./DotsVertical-3xNyBi9X.js";import"./search-input-Bt-TRqMJ.js";import"./tabs-D3R4V_n3.js";import"./use-file-configs-5_tcNCEF.js";import"./asset-utils-BsDgokdc.js";import"./use-chat-layout-state-QjPc9oo9.js";import"./site-slug-DebpOoQq.js";import"./toggle-group-DqXAR_ku.js";import"./sandbox-git-api-DTIjDZTr.js";import"./ArrowUp-BlzOYA31.js";import"./CreditCard01-hJClrSeg.js";import"./Key01-DcjI-nGA.js";import"./Users01-Dnx31YPK.js";import"./section-preview-url-7zfngvgW.js";function Xr(v){return v.schema?.definitions??v.schema?.$defs??{}}function ca(v,e){const u=Xr(e),p=u[btoa(v)];if(!p)return[];const h=[p];if(Array.isArray(p.allOf)){const k=p.allOf.find(w=>typeof w.$ref=="string")?.$ref;if(typeof k=="string"){const w=u[k.replace("#/definitions/","")];w&&h.push(w)}}return h}function Zr(v,e){for(const u of ca(v,e)){const p=typeof u.image=="string"?u.image:void 0;if(p?.includes("{{{"))return p}}function ei(v,e){if(!e)return;const u=ra(v);if(!u)return;const p=Zr(u.resolveType,e);if(!p)return;const h=jo(p,u.data);if(h)return Eo(h)}const ti={escape:ko};function si(v,e){for(const u of ca(v,e)){const p=typeof u.title=="string"?u.title:void 0;if(p?.includes("{{"))return p}}function ni(v,e){if(!e)return;const u=ra(v);if(u)try{const p=si(u.resolveType,e);return p&&ir.render(p,u.data,{},ti).trim()||void 0}catch{return}}function ai(v){const e=Jt.c(13),{icon:u,label:p,className:h}=v;let k;e[0]!==h?(k=oe("size-3.5",h),e[0]=h,e[1]=k):k=e[1];let w;e[2]!==u||e[3]!==k?(w=n.jsx(u,{className:k}),e[2]=u,e[3]=k,e[4]=w):w=e[4];let y;e[5]!==p||e[6]!==w?(y=n.jsx(ut,{asChild:!0,children:n.jsx("span",{role:"img","aria-label":p,className:"shrink-0 cursor-help",children:w})}),e[5]=p,e[6]=w,e[7]=y):y=e[7];let T;e[8]!==p?(T=n.jsx(dt,{className:"max-w-56",children:p}),e[8]=p,e[9]=T):T=e[9];let b;return e[10]!==y||e[11]!==T?(b=n.jsxs(ct,{children:[y,T]}),e[10]=y,e[11]=T,e[12]=b):b=e[12],b}const oi="text-global-section-fg focus:bg-global-section/12 focus:text-global-section-fg dark:text-global-section-fg-dark dark:focus:bg-global-section/15 dark:focus:text-global-section-fg-dark [&_svg]:!text-global-section";function aa(v){return Array.from({length:v},(e,u)=>({id:crypto.randomUUID(),index:u}))}function ua(v){return v.map((e,u)=>({...e,index:u}))}function ri(v,e){if(e===v.length)return v;if(e<v.length)return ua(v.slice(0,e));const u=Array.from({length:e-v.length},(p,h)=>({id:crypto.randomUUID(),index:v.length+h}));return[...v,...u]}function da(v){const e=Jt.c(44),{section:u,raw:p,meta:h,decofile:k}=v,w=Yt(),y=fs(),T=u.isSavedBlock===!0,b=u.isMultivariate===!0;let X;e[0]!==h||e[1]!==p?(X=p&&h?ei(p,h):void 0,e[0]=h,e[1]=p,e[2]=X):X=e[2];const me=X;let Ke;e[3]!==h||e[4]!==b||e[5]!==p||e[6]!==T?(Ke=p&&h&&!T&&!b?ni(p,h):void 0,e[3]=h,e[4]=b,e[5]=p,e[6]=T,e[7]=Ke):Ke=e[7];const Be=Ke;let Te;e[8]!==k||e[9]!==h||e[10]!==p||e[11]!==u?(Te=Ao(p,u,k,h),e[8]=k,e[9]=h,e[10]=p,e[11]=u,e[12]=Te):Te=e[12];const re=Te;let r;e[13]!==b||e[14]!==p?.__resolveType?(r=!b&&Is(p?.__resolveType??""),e[13]=b,e[14]=p?.__resolveType,e[15]=r):r=e[15];const V=r,ge=T?ms:b?oa:la;let $;e[16]!==b||e[17]!==T?($=T?{color:ur}:b?{color:"oklch(0.65 0.15 160)"}:void 0,e[16]=b,e[17]=T,e[18]=$):$=e[18];const c=$;let O;e[19]!==ge||e[20]!==y?(O=y?n.jsxs("span",{className:"relative size-4 shrink-0",children:[n.jsx(ge,{className:"absolute inset-0 size-4 text-muted-foreground transition-opacity group-hover:opacity-0 group-has-[:focus-visible]:opacity-0"}),n.jsx(Po,{"aria-hidden":!0,className:"absolute inset-0 size-4 opacity-0 transition-opacity group-hover:opacity-100 group-has-[:focus-visible]:opacity-100"})]}):n.jsx(or,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[19]=ge,e[20]=y,e[21]=O):O=e[21];let l;e[22]!==me?(l=me&&n.jsx("img",{src:me,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded-[var(--studio-control-radius,var(--radius))] object-cover"}),e[22]=me,e[23]=l):l=e[23];let J;e[24]!==y||e[25]!==c?(J=!y&&n.jsx(Bs,{className:"h-4 w-4 shrink-0",style:c}),e[24]=y,e[25]=c,e[26]=J):J=e[26];const G=y?"shrink":"flex-1",ke=u.isHidden&&"line-through opacity-50";let Ne;e[27]!==ke||e[28]!==G?(Ne=oe("min-w-0 truncate text-sm font-medium",G,ke),e[27]=ke,e[28]=G,e[29]=Ne):Ne=e[29];const qe=Be??u.label;let _e;e[30]!==Ne||e[31]!==qe?(_e=n.jsx("span",{className:Ne,children:qe}),e[30]=Ne,e[31]=qe,e[32]=_e):_e=e[32];let d;e[33]!==V||e[34]!==y||e[35]!==re||e[36]!==w?(d=y?n.jsxs(n.Fragment,{children:[V&&n.jsx(ai,{icon:Ls,label:w("sectionsEditor.sectionList.asyncBadge"),className:"text-muted-foreground"}),re&&n.jsx(Bn,{}),n.jsx("span",{className:"min-w-0 flex-1"})]}):re&&n.jsx(Bn,{className:"absolute -right-0.5 -top-0.5"}),e[33]=V,e[34]=y,e[35]=re,e[36]=w,e[37]=d):d=e[37];let M;return e[38]!==_e||e[39]!==d||e[40]!==O||e[41]!==l||e[42]!==J?(M=n.jsxs(n.Fragment,{children:[O,l,J,_e,d]}),e[38]=_e,e[39]=d,e[40]=O,e[41]=l,e[42]=J,e[43]=M):M=e[43],M}const ii="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",li="text-[oklch(0.45_0.15_160)] hover:bg-[oklch(0.65_0.15_160/0.12)] dark:text-[oklch(0.78_0.15_160)] dark:hover:bg-[oklch(0.65_0.15_160/0.15)]";function ma(v,e,u){if(u)return Mo({selected:e});const p=v.isSavedBlock===!0,h=v.isMultivariate===!0;return oe("group relative flex select-none items-center gap-2 rounded-[var(--studio-control-radius,var(--radius-md))] px-2 py-2.5",e?"bg-accent text-accent-foreground":p?ii:h?li:"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function Cs(v,e){return oe("h-7 shrink-0 overflow-hidden",e?"w-7 ml-0 opacity-100 [transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]":v?"w-7 ml-0 opacity-0 [transition:opacity_150ms_ease-out,width_0ms_150ms,margin-left_0ms_150ms] group-hover:opacity-100 group-has-[:focus-visible]:opacity-100":"w-0 -ml-2 opacity-0 [transition:opacity_150ms_ease-out,width_0ms_150ms,margin-left_0ms_150ms] group-hover:ml-0 group-hover:w-7 group-hover:opacity-100 group-hover:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms] group-has-[:focus-visible]:ml-0 group-has-[:focus-visible]:w-7 group-has-[:focus-visible]:opacity-100 group-has-[:focus-visible]:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]")}function ci(v){const e=Jt.c(90),{section:u,raw:p,meta:h,decofile:k,sortableId:w,selected:y,onSelect:T,onDelete:b,onDuplicate:X,onMakeReusable:me,onToggleHidden:Ke,onToggleLazy:Be,onAddVariant:Te,onDetach:re}=v,r=Yt(),V=fs(),ge=p?Is(p.__resolveType??""):!1,$=u.isHidden===!0,c=ge||$;let O;e[0]!==u?(O=ia(u),e[0]=u,e[1]=O):O=e[1];const l=O;let J;e[2]!==w?(J={id:w,animateLayoutChanges:mi},e[2]=w,e[3]=J):J=e[3];const{attributes:G,listeners:ke,setNodeRef:Ne,transform:qe,isDragging:_e}=Ir(J);let d;e[4]!==qe?(d=Or.Transform.toString(qe?{...qe,x:0}:null),e[4]=qe,e[5]=d):d=e[5];const M=_e?0:void 0;let We;e[6]!==d||e[7]!==M?(We={transform:d,opacity:M},e[6]=d,e[7]=M,e[8]=We):We=e[8];const C=We;let Ue;e[9]!==u?(Ue=Ro(u),e[9]=u,e[10]=Ue):Ue=e[10];const z=Ue,mt="button",fe=0;let ze;e[11]!==T?(ze=P=>{(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),T())},e[11]=T,e[12]=ze):ze=e[12];const _t=_e?"cursor-grabbing":"cursor-pointer";let Le;e[13]!==V||e[14]!==u||e[15]!==y||e[16]!==_t?(Le=oe("touch-none transition-colors",_t,ma(u,y,V)),e[13]=V,e[14]=u,e[15]=y,e[16]=_t,e[17]=Le):Le=e[17];let ie;e[18]!==k||e[19]!==h||e[20]!==p||e[21]!==u?(ie=n.jsx(da,{section:u,raw:p,meta:h,decofile:k}),e[18]=k,e[19]=h,e[20]=p,e[21]=u,e[22]=ie):ie=e[22];const le=!V&&!u.isMultivariate&&n.jsxs(ct,{children:[n.jsx(ut,{asChild:!0,children:n.jsx(Vt,{type:"button",variant:"ghost",size:"icon","aria-label":r(ge?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender"),className:oe(Cs(c,ge)),onClick:P=>{P.stopPropagation(),Be()},onPointerDown:di,children:n.jsx(Ls,{className:oe("h-3.5 w-3.5",ge&&"text-warning")})})}),n.jsx(dt,{side:"bottom",children:r(ge?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")})]}),Ae=V?n.jsx(Vo,{label:r($?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),active:$,onToggle:Ke,children:$?n.jsx(Zn,{className:"h-3.5 w-3.5"}):n.jsx(ea,{className:"h-3.5 w-3.5"})}):n.jsxs(ct,{children:[n.jsx(ut,{asChild:!0,children:n.jsx(Vt,{type:"button",variant:"ghost",size:"icon","aria-label":r($?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),className:oe(Cs(c,$)),onClick:P=>{P.stopPropagation(),Ke()},onPointerDown:ui,children:$?n.jsx(Zn,{className:"h-3.5 w-3.5"}):n.jsx(ea,{className:"h-3.5 w-3.5"})})}),n.jsx(dt,{side:"bottom",children:r($?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection")})]}),B=vo,A=To;let ce;e[23]!==r?(ce=r("sectionsEditor.sectionList.sectionActionsMenu"),e[23]=r,e[24]=ce):ce=e[24];const we=oe(Cs(c,!1),"data-[state=open]:ml-0 data-[state=open]:w-7 data-[state=open]:opacity-100 data-[state=open]:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]");let Me;e[25]!==A||e[26]!==ce||e[27]!==we?(Me=n.jsx(A,{label:ce,classicClassName:we}),e[25]=A,e[26]=ce,e[27]=we,e[28]=Me):Me=e[28];let Re;e[29]!==V||e[30]!==ge||e[31]!==Be||e[32]!==u.isMultivariate||e[33]!==r?(Re=V&&!u.isMultivariate&&n.jsxs(n.Fragment,{children:[n.jsxs(Kt,{onClick:P=>{P.stopPropagation(),Be()},children:[n.jsx(Ls,{className:"h-4 w-4"}),r(ge?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")]}),n.jsx(go,{})]}),e[29]=V,e[30]=ge,e[31]=Be,e[32]=u.isMultivariate,e[33]=r,e[34]=Re):Re=e[34];let H;e[35]!==X?(H=P=>{P.stopPropagation(),X()},e[35]=X,e[36]=H):H=e[36];let ue;e[37]===Symbol.for("react.memo_cache_sentinel")?(ue=n.jsx(Pr,{className:"h-4 w-4"}),e[37]=ue):ue=e[37];let je;e[38]!==r?(je=r("sectionsEditor.sectionList.duplicateMenuItem"),e[38]=r,e[39]=je):je=e[39];let pe;e[40]!==H||e[41]!==je?(pe=n.jsxs(Kt,{onClick:H,children:[ue,je]}),e[40]=H,e[41]=je,e[42]=pe):pe=e[42];let ne;e[43]!==V||e[44]!==l||e[45]!==Te||e[46]!==r?(ne=l&&n.jsxs(Kt,{className:oe(!V&&No),onClick:P=>{P.stopPropagation(),Te()},children:[n.jsx(oa,{className:"h-4 w-4"}),r("sectionsEditor.sectionList.addVariantMenuItem")]}),e[43]=V,e[44]=l,e[45]=Te,e[46]=r,e[47]=ne):ne=e[47];let he;e[48]!==V||e[49]!==z||e[50]!==me||e[51]!==r?(he=z&&n.jsxs(Kt,{className:oe(!V&&oi),onClick:P=>{P.stopPropagation(),me()},children:[V?n.jsx(ms,{className:"h-4 w-4"}):n.jsx(Bs,{className:"h-4 w-4"}),r("sectionsEditor.sectionList.makeReusableMenuItem")]}),e[48]=V,e[49]=z,e[50]=me,e[51]=r,e[52]=he):he=e[52];let ae;e[53]!==V||e[54]!==re||e[55]!==u.isMultivariate||e[56]!==u.isSavedBlock||e[57]!==r?(ae=u.isSavedBlock===!0&&!u.isMultivariate&&n.jsxs(Kt,{onClick:P=>{P.stopPropagation(),re()},children:[V?n.jsx(la,{className:"h-4 w-4"}):n.jsx(Bs,{className:"h-4 w-4"}),r("sectionsEditor.sectionList.detachMenuItem")]}),e[53]=V,e[54]=re,e[55]=u.isMultivariate,e[56]=u.isSavedBlock,e[57]=r,e[58]=ae):ae=e[58];let Pe;e[59]!==b?(Pe=P=>{P.stopPropagation(),b()},e[59]=b,e[60]=Pe):Pe=e[60];let ve;e[61]===Symbol.for("react.memo_cache_sentinel")?(ve=n.jsx(Dr,{className:"h-4 w-4"}),e[61]=ve):ve=e[61];let Ve;e[62]!==r?(Ve=r("sectionsEditor.sectionList.deleteMenuItem"),e[62]=r,e[63]=Ve):Ve=e[63];let Ee;e[64]!==Pe||e[65]!==Ve?(Ee=n.jsxs(Kt,{variant:"destructive",onClick:Pe,children:[ve,Ve]}),e[64]=Pe,e[65]=Ve,e[66]=Ee):Ee=e[66];let Se;e[67]!==Re||e[68]!==pe||e[69]!==ne||e[70]!==he||e[71]!==ae||e[72]!==Ee?(Se=n.jsxs(So,{align:"end",className:"w-44",children:[Re,pe,ne,he,ae,Ee]}),e[67]=Re,e[68]=pe,e[69]=ne,e[70]=he,e[71]=ae,e[72]=Ee,e[73]=Se):Se=e[73];let ye;e[74]!==B||e[75]!==Me||e[76]!==Se?(ye=n.jsxs(B,{children:[Me,Se]}),e[74]=B,e[75]=Me,e[76]=Se,e[77]=ye):ye=e[77];let $e;return e[78]!==G||e[79]!==ke||e[80]!==T||e[81]!==Ne||e[82]!==C||e[83]!==Le||e[84]!==ie||e[85]!==le||e[86]!==Ae||e[87]!==ye||e[88]!==ze?($e=n.jsxs("div",{ref:Ne,style:C,...G,...ke,role:mt,tabIndex:fe,onClick:T,onKeyDown:ze,className:Le,children:[ie,le,Ae,ye]}),e[78]=G,e[79]=ke,e[80]=T,e[81]=Ne,e[82]=C,e[83]=Le,e[84]=ie,e[85]=le,e[86]=Ae,e[87]=ye,e[88]=ze,e[89]=$e):$e=e[89],$e}function ui(v){return v.stopPropagation()}function di(v){return v.stopPropagation()}function mi(){return!1}function Fs(v){const e=Jt.c(11),{canAddSection:u,onAddSection:p,className:h,size:k}=v,w=Yt();let y;e[0]!==h?(y=oe("w-full",h),e[0]=h,e[1]=y):y=e[1];const T=!u;let b;e[2]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx(Cr,{size:14}),e[2]=b):b=e[2];let X;e[3]!==w?(X=w("sectionsEditor.sectionList.addSectionButton"),e[3]=w,e[4]=X):X=e[4];let me;return e[5]!==p||e[6]!==k||e[7]!==y||e[8]!==T||e[9]!==X?(me=n.jsxs(Vt,{type:"button",variant:"outline",size:k,className:y,disabled:T,onClick:p,children:[b,X]}),e[5]=p,e[6]=k,e[7]=y,e[8]=T,e[9]=X,e[10]=me):me=e[10],me}function fi(v){const e=Jt.c(101),{listKey:u,rawSections:p,sections:h,meta:k,decofile:w,selectedIndex:y,onSelect:T,onReorder:b,onDelete:X,onDuplicate:me,onMakeReusable:Ke,onToggleHidden:Be,onToggleLazy:Te,onAddVariant:re,onDetach:r,onAddSection:V,canAddSection:ge}=v,$=ge===void 0?!0:ge,c=Yt(),O=fs();let l;e[0]!==h.length?(l=()=>aa(h.length),e[0]=h.length,e[1]=l):l=e[1];const[J,G]=j.useState(l),[ke,Ne]=j.useState(null),[qe,_e]=j.useState(u),[d,M]=j.useState(h.length),We=j.useRef(!1);qe!==u?(_e(u),M(h.length),G(aa(h.length))):d!==h.length&&(M(h.length),G(Ce=>ri(Ce,h.length)));let C;e[2]===Symbol.for("react.memo_cache_sentinel")?(C={activationConstraint:{distance:8}},e[2]=C):C=e[2];let Ue;e[3]===Symbol.for("react.memo_cache_sentinel")?(Ue={coordinateGetter:zr},e[3]=Ue):Ue=e[3];const z=Kr(ta(Fr,C),ta(Lr,Ue));let mt;e[4]!==J?(mt=J.map(pi),e[4]=J,e[5]=mt):mt=e[5];const fe=mt;let ze;e[6]===Symbol.for("react.memo_cache_sentinel")?(ze=Ce=>{Ne(String(Ce.active.id))},e[6]=ze):ze=e[6];const _t=ze;let Le;e[7]!==fe||e[8]!==b?(Le=Ce=>{Ne(null);const{active:L,over:D}=Ce;if(!D||L.id===D.id)return;const Fe=fe.indexOf(String(L.id)),Ze=fe.indexOf(String(D.id));Fe===-1||Ze===-1||(G(nt=>ua(ds([...nt],Fe,Ze))),We.current=!0,requestAnimationFrame(()=>{We.current=!1}),b?.(Fe,Ze))},e[7]=fe,e[8]=b,e[9]=Le):Le=e[9];const ie=Le;let le;e[10]===Symbol.for("react.memo_cache_sentinel")?(le=()=>{Ne(null)},e[10]=le):le=e[10];const Ae=le;let B,A,ce,we,Me,Re,H,ue,je,pe,ne,he,ae,Pe,ve;if(e[11]!==ke||e[12]!==$||e[13]!==O||e[14]!==w||e[15]!==J||e[16]!==fe||e[17]!==ie||e[18]!==k||e[19]!==V||e[20]!==re||e[21]!==X||e[22]!==r||e[23]!==me||e[24]!==Ke||e[25]!==T||e[26]!==Be||e[27]!==Te||e[28]!==p||e[29]!==h||e[30]!==y||e[31]!==z||e[32]!==c){Pe=Symbol.for("react.early_return_sentinel");e:{const Ce=L=>{We.current||T(L)};if(e[48]!==ke||e[49]!==$||e[50]!==O||e[51]!==J||e[52]!==V||e[53]!==p||e[54]!==h||e[55]!==c){const L=ke?J.find(D=>D.id===ke):null;if(we=L!=null?h[L.index]:null,ce=L!=null?p[L.index]:void 0,J.length===0){let D;e[59]!==c?(D=c("sectionsEditor.sectionList.noSections"),e[59]=c,e[60]=D):D=e[60];let Fe;e[61]!==D?(Fe=n.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:D}),e[61]=D,e[62]=Fe):Fe=e[62];const Ze=Fe;let nt;e[63]!==$||e[64]!==O||e[65]!==Ze||e[66]!==V?(nt=O?Ze:n.jsxs("div",{className:"space-y-2",children:[Ze,n.jsx(Fs,{canAddSection:$,onAddSection:V,size:"sm"})]}),e[63]=$,e[64]=O,e[65]=Ze,e[66]=V,e[67]=nt):nt=e[67],Pe=nt;break e}ae=oe(L&&"cursor-grabbing"),e[48]=ke,e[49]=$,e[50]=O,e[51]=J,e[52]=V,e[53]=p,e[54]=h,e[55]=c,e[56]=ce,e[57]=we,e[58]=ae}else ce=e[56],we=e[57],ae=e[58];A=$r,ue=z,je=Hr,pe=_t,ne=ie,he=Ae,B=Gr,Re=fe,H=qr,ve="space-y-1",Me=J.map(L=>{const D=h[L.index];return D?n.jsx(ci,{sortableId:L.id,section:D,raw:p[L.index],meta:k,decofile:w,selected:y===L.index,onSelect:()=>Ce(L.index),onDelete:()=>X(L.index),onDuplicate:()=>me(L.index),onMakeReusable:()=>Ke(L.index),onToggleHidden:()=>Be(L.index),onToggleLazy:()=>Te(L.index),onAddVariant:()=>re(L.index),onDetach:()=>r(L.index)},L.id):null})}e[11]=ke,e[12]=$,e[13]=O,e[14]=w,e[15]=J,e[16]=fe,e[17]=ie,e[18]=k,e[19]=V,e[20]=re,e[21]=X,e[22]=r,e[23]=me,e[24]=Ke,e[25]=T,e[26]=Be,e[27]=Te,e[28]=p,e[29]=h,e[30]=y,e[31]=z,e[32]=c,e[33]=B,e[34]=A,e[35]=ce,e[36]=we,e[37]=Me,e[38]=Re,e[39]=H,e[40]=ue,e[41]=je,e[42]=pe,e[43]=ne,e[44]=he,e[45]=ae,e[46]=Pe,e[47]=ve}else B=e[33],A=e[34],ce=e[35],we=e[36],Me=e[37],Re=e[38],H=e[39],ue=e[40],je=e[41],pe=e[42],ne=e[43],he=e[44],ae=e[45],Pe=e[46],ve=e[47];if(Pe!==Symbol.for("react.early_return_sentinel"))return Pe;let Ve;e[68]!==Me||e[69]!==ve?(Ve=n.jsx("div",{className:ve,children:Me}),e[68]=Me,e[69]=ve,e[70]=Ve):Ve=e[70];let Ee;e[71]!==B||e[72]!==Re||e[73]!==H||e[74]!==Ve?(Ee=n.jsx(B,{items:Re,strategy:H,children:Ve}),e[71]=B,e[72]=Re,e[73]=H,e[74]=Ve,e[75]=Ee):Ee=e[75];let Se;e[76]!==ce||e[77]!==we||e[78]!==O||e[79]!==w||e[80]!==k?(Se=we?n.jsx("div",{className:oe("cursor-grabbing shadow-lg ring-1 ring-border/60",ma(we,!1,O)),children:n.jsx(da,{section:we,raw:ce,meta:k,decofile:w})}):null,e[76]=ce,e[77]=we,e[78]=O,e[79]=w,e[80]=k,e[81]=Se):Se=e[81];let ye;e[82]!==Se?(ye=ho.createPortal(n.jsx(Br,{dropAnimation:wo,children:Se}),document.body),e[82]=Se,e[83]=ye):ye=e[83];let $e;e[84]!==A||e[85]!==ue||e[86]!==je||e[87]!==pe||e[88]!==ne||e[89]!==he||e[90]!==Ee||e[91]!==ye?($e=n.jsxs(A,{sensors:ue,collisionDetection:je,onDragStart:pe,onDragEnd:ne,onDragCancel:he,children:[Ee,ye]}),e[84]=A,e[85]=ue,e[86]=je,e[87]=pe,e[88]=ne,e[89]=he,e[90]=Ee,e[91]=ye,e[92]=$e):$e=e[92];let P;e[93]!==$||e[94]!==O||e[95]!==V?(P=!O&&n.jsx(Fs,{canAddSection:$,onAddSection:V,size:"sm",className:"mt-2"}),e[93]=$,e[94]=O,e[95]=V,e[96]=P):P=e[96];let st;return e[97]!==ae||e[98]!==$e||e[99]!==P?(st=n.jsxs("div",{className:ae,children:[$e,P]}),e[97]=ae,e[98]=$e,e[99]=P,e[100]=st):st=e[100],st}function pi(v){return v.id}function hi(v,e,u,p){if(!v||typeof v!="object")return{kind:"error",reason:"no-matcher-rule"};const h=e.trim();if(!h)return Rt(v,u,p)?{kind:"inline",blockKey:v.__resolveType??"",inlinedRule:Ds(v,u,p)}:{kind:"noop"};const k=Ks(v,u,p);if(!k)return{kind:"error",reason:"unreadable-rule"};if(k.blockKey)return{kind:"updateBlock",blockKey:k.blockKey,blockData:xt(k.resolveType,k.data,h)};const w=cs(h),y=us(w,u);return y?{kind:"error",reason:"invalid-block-id",message:y}:{kind:"createBlock",blockId:w,blockData:xt(k.resolveType,k.data,h),reference:Lt(w)}}function Bc({orgSlug:v,virtualMcpId:e,branch:u,previewReady:p=!0,previewUrl:h,currentPath:k,activePageBlockKey:w=null,activeGlobalBlockKey:y=null,externalSelection:T,onSaved:b,initialEditSeo:X=!1,onExitSeo:me,onSelectRoot:Ke,onViewJsonFile:Be,onFocusedBlockChange:Te,onVariantPreviewOverride:re}){const r=Yt(),V=_o(),ge=V?.taskId??null,$=p?{orgSlug:v,virtualMcpId:e,branch:u,threadId:ge,previewUrl:h}:null,{data:c,isLoading:O}=Co($),{data:l,isLoading:J}=Do($),G=fs(),ke=V?.virtualMcpId,qe=sr(ke===e?e:null)?.metadata?.siteSlug??null,_e=Jr({virtualMcpId:e,sandboxUrl:h}),[d,M]=j.useState(null),[We,C]=j.useState(null),[Ue,z]=j.useState(null),[mt,fe]=j.useState(0),[ze,_t]=j.useState(void 0),[Le,ie]=j.useState(null),[le,Ae]=j.useState(null),[B,A]=j.useState([]),ce=j.useRef(null),[we,Me]=j.useState(B.length);we!==B.length&&(Me(B.length),requestAnimationFrame(()=>{ce.current&&(ce.current.scrollTop=0)}));const[Re,H]=j.useState(0),[ue,je]=j.useState(null),[pe,ne]=j.useState(null),[he,ae]=j.useState(null),[Pe,ve]=j.useState(!1),[Ve,Ee]=j.useState(!1),Se=j.useRef(null),[ye,$e]=j.useState(!0),[P,st]=j.useState(!1),[Ce,L]=j.useState(!1),[D,Fe]=j.useState(X),[Ze,nt]=j.useState(X);X&&!Ze&&(nt(!0),Fe(!0),M(null),C(null),z(null),A([])),!X&&Ze&&nt(!1);const[fa,Qt]=j.useState(null),[Os,ps]=j.useState(void 0),[zs,jt]=j.useState([]),[$s,Ft]=j.useState(0),[Ie,Je]=j.useState(0),[pa,De]=j.useState(null),[Tt,Oe]=j.useState(null),[Hs,Gs]=j.useState(null),ha=yo(),ga=`${v}/${e}/${u}`,Xt=Ko({orgSlug:v,virtualMcpId:e,branch:u}),[va,Sa]=j.useState(k),[ya,ba]=j.useState(w),[xa,_a]=j.useState(y);(va!==k||ya!==w||xa!==y)&&(queueMicrotask(()=>Xt.flush()),Sa(k),ba(w),_a(y),M(null),C(null),z(null),fe(0),ie(null),Ae(null),Je(0),De(null),Oe(null),A([]),H(t=>t+1),Fe(!1),Qt(null),ps(void 0),jt([]),Ft(t=>t+1));const Y=Bo({orgSlug:v,virtualMcpId:e,branch:u}),It=Xo((t,s)=>{Y.mutate({blockKey:t,data:s},{onSuccess:()=>b?.(),onError:a=>N.error(r("sectionsEditor.sectionsEditor.saveFailed",{error:a.message}))})}),Zt=lr({orgSlug:v,virtualMcpId:e,branch:u}),[Nt,At]=j.useState(!1),q=j.useRef(null),qs=j.useRef(null),at=j.useRef(null),ot=j.useRef(null),hs=j.useRef({}),He=j.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null}),[ja,Ea]=j.useState(null);if(!p||O||J)return n.jsx("div",{className:"h-full w-full flex items-center justify-center",children:n.jsx(bo,{className:"size-5 text-muted-foreground"})});if(!c||!l)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:r("sectionsEditor.sectionsEditor.couldNotLoadSiteData")});const ka=dr(c),Q=!!y,te=Q?null:mr(ka,k,w),g=Q?y:te?.key??null,gs=Q&&y?c[y]:void 0,Ws=Q&&y&&gs?fr(y,gs):Q&&y?y:"",Ot=!Q&&g&&c[g]?c[g]:null,vs=D&&c&&l&&g&&te?Ln(c,{kind:"page",pageKey:g,pageName:String(te.name??""),path:String(te.path??"")},l):null,wa=D?Ot?.seo:void 0,es=Os!==void 0?Os:wa,Ra=D?Lo(es):void 0,Us=vs?.seoTypeOptions??[],Js=D&&l?Fo(l):"",Ss=fa??Ra??{},ts=D&&vs?Wr(Ss,vs):null,Ys=D&&ts&&Io(es)?ls(ts,l):null,Qs=D?Oo(c,l)?.seoData:void 0,de=Q?[{label:"Default",sections:[{__resolveType:y}]}]:zo(Ot?.sections,c??{}),et=de.length>1,se=Math.min(mt,de.length-1),Ge=de[se],K=Ge?.sections??[],be=rs(K,c),ys=!Q&&pr(Ot?.sections);if(Q&&y&&Hs!==y){Gs(y);const t=K[0],s=be[0];if(t&&s){M(0),Je(0),A([]);const a=kt(t,s,c);a&&(C(a.data),z(a.resolveType),Oe(null),De(null))}}!Q&&Hs!==null&&Gs(null),He.current={rawSections:K,parsedSections:be,decofile:c??{},activePageKey:g,pageVariants:de,variantIndex:se,sectionVariantIndex:Ie,selectedSectionIndex:d};const Va=()=>({multivariate:ys,index:se,variants:de.map(t=>({rule:t.rule}))}),bs=(t,s)=>{if(!re)return;if(!g||!ys||t.length<=1){re(null);return}const a=na(g,{multivariate:!0,index:s,variants:t},c,l);re(a.length>0?a:null)},xs=re&&g&&ys&&et&&!O&&!J?g:null;if(xs!==ja&&(Ea(xs),xs)){const t=de.map(a=>({rule:a.rule})),s=se;queueMicrotask(()=>bs(t,s))}const Mt=(t,s,a)=>{if(!re)return;if(!g){re(null);return}const o=Va(),i=na(g,o,c,l);if(!t||s<0){re(i.length>0?i:null);return}const m=Qr({pageKey:g,page:o,sectionIndex:s,sectionLazy:be[s]?.isLazy??!1,mvObj:t,selectedVariantIndex:a,decofile:c,meta:l}),f=[...i,...m];re(f.length>0?f:null)},ft=(t,s,a,o=d??-1,i=!1)=>{const m=tt(t,s);if(!m){C(null),z(null),Oe(null),De(null),i&&Mt(null,o,a);return}const x=Jn(m,lt)[a];if(!x){C(null),z(null),Oe(null),De(null),i&&Mt(null,o,a);return}const R=hr(x.value,c);C(R?.data??null),z(R?.resolveType??null);const{resolveType:S,formValue:E}=Wt(x.rule,c,l??void 0);Oe(S),De(E),i&&Mt(m,o,a)},zt=T?.index;if(T!==void 0&&(T?.seq??null)!==ze&&(_t(T?.seq??null),typeof zt=="number")){const t=K[zt],s=be[zt];if(t&&s)if(M(zt),Je(0),A([]),H(a=>a+1),s.isMultivariate)ft(t,s,0,zt);else{const a=kt(t,s,c);a?(C(a.data),z(a.resolveType)):(C(null),z(null)),Oe(null),De(null)}}const $t={orgSlug:v,virtualMcpId:e,branch:u,threadId:ge,previewUrl:h??void 0,siteSlug:qe},_s=Ue&&l?ls(Ue,l):null,Ye=(t,s)=>{if(!g)return;q.current&&(clearTimeout(q.current),q.current=null),ot.current&&(clearTimeout(ot.current),ot.current=null),at.current&&(clearTimeout(at.current),at.current=null);const a=qt(c,g,t,se,de);Y.mutate({blockKey:g,data:a},{onSuccess:()=>s?.onSuccess?.()??b?.(),onError:o=>N.error(r("sectionsEditor.sectionsEditor.saveFailed",{error:o.message}))})},Pt=()=>{Te?.(null),M(null),L(!1),C(null),z(null),Je(0),De(null),Oe(null),A([]),H(t=>t+1)},Ta=(t,s)=>{const a=He.current.sectionVariantIndex,o=qs.current;q.current&&(clearTimeout(q.current),q.current=null,o&&(o.sectionIndex!==s||o.sectionVariantIndex!==a)&&o.write());const i=()=>{const{rawSections:m,parsedSections:f,decofile:x,activePageKey:R,pageVariants:S,variantIndex:E}=He.current,_=m[s];if(!_)return;const W=f[s];if(!W)return;if(W.isSavedBlock){const F=tr(_,W);if(!F)return;Y.mutate({blockKey:F,data:t},{onSuccess:()=>b?.(),onError:U=>N.error(r("sectionsEditor.sectionsEditor.saveFailed",{error:U.message}))});return}if(!R)return;const Z={...x[R]},ee=[...m];if(W.isMultivariate){const F=tt(_,W);if(!F||!R)return;const U=Tr(F,a,t);ee[s]=wt(_,W,U)}else if(W.isHidden){const F=Is(_.__resolveType),U=F?{..._.section}:{..._},I=Array.isArray(U.variants)?[...U.variants]:[];I[0]&&(I[0]={...I[0],value:t}),U.variants=I,F?ee[s]={..._,section:U}:ee[s]=U}else W.isLazy?ee[s]={..._,section:t}:ee[s]=t;if(S.length>1){const F=Z.sections,U=[...F?.variants??[]];U[E]&&(U[E]={...U[E],value:ee}),Z.sections={...F,variants:U}}else Z.sections=ee;Y.mutate({blockKey:R,data:Z},{onSuccess:()=>b?.(),onError:F=>N.error(r("sectionsEditor.sectionsEditor.saveFailed",{error:F.message}))})};qs.current={sectionIndex:s,sectionVariantIndex:a,write:i},q.current=setTimeout(()=>{q.current=null,i()},Ms)},Na=t=>{M(t),Je(0),A([]),H(i=>i+1);const s=K[t],a=be[t];if(Te?.(a?.isSavedBlock?a.resolveType??null:null),!s||!a)return;if(a.isMultivariate){ft(s,a,0,t);return}const o=kt(s,a,c);if(!o){C(null),z(null),Oe(null),De(null),Mt(null,t,0);return}C(o.data),z(o.resolveType),Oe(null),De(null),Mt(null,t,0)},Xs=t=>{const s=t;C(s),d!==null&&Ta(s,d)},js=t=>{if(!g||!c||!l||!te)return;const s={kind:"page",pageKey:g,pageName:String(te.name??""),path:String(te.path??"")},a=Ln(c,s,l);a&&Xt.save(g,()=>{const o=ha.getQueryData(xo.decofile(ga))?.[g];if(!o||typeof o!="object"||o===null||Array.isArray(o))return null;const i={...o,...hs.current};return hs.current={},t?.raw!==void 0?{...i,seo:t.raw}:t?.inner!==void 0?Ur(s,a,i,t.inner):i})},Zs=(t,s)=>{g&&(hs.current[t]=s,js())},Aa=(t,s)=>{if(!g)return;const a=ds([...K],t,s);d!==null&&(d===t?M(s):t<d&&s>=d?M(d-1):t>d&&s<=d&&M(d+1)),Ye(a)},Ma=t=>{if(!g)return;const s=K.filter((a,o)=>o!==t);d===t?Pt():d!==null&&d>t&&M(d-1),Ye(s)},Pa=t=>{if(!g)return;const s=K[t];if(!s)return;const a=[...K];a.splice(t+1,0,Zo(s)),d!==null&&d>t&&M(d+1),Ye(a)},Ca=t=>{if(!g)return;const s=K[t],a=be[t];if(!s||!a)return;const o=a.isHidden?Er(s):kr(s);if(!o)return;const i=[...K];i[t]=o,d===t&&Pt(),Ye(i)},Da=t=>{if(!g)return;const s=K[t],a=be[t];if(!s||!a||a.isMultivariate)return;const o=jr(s);if(!o)return;const i=[...K];i[t]=o,d===t&&Pt(),Ye(i)},Ka=t=>{if(!g)return;const s=K[t],a=be[t];if(!s||!a?.isSavedBlock)return;const o=kt(s,a,c);if(!o?.data)return;const{name:i,...m}=o.data,f=[...K];a.isLazy?f[t]={...s,section:m}:f[t]=m,d===t&&Pt(),Ye(f)},Ba=t=>{if(!g)return;const s=[...K,{__resolveType:t.resolveType}],a=s.length-1;Ye(s,{onSuccess:()=>{ve(!1),M(a),Je(0),A([]),H(f=>f+1);const o=s[a],i=rs(s,c)[a];if(!o||!i)return;if(i.isMultivariate){ft(o,i,0);return}const m=kt(o,i,c);if(!m){C(null),z(null),Oe(null),De(null);return}C(m.data),z(m.resolveType),Oe(null),De(null)}})},en=t=>{Se.current=t.append,ve(!0)},La=t=>{const s=Se.current;if(!s){Ba(t);return}s({__resolveType:t.resolveType}),ve(!1),Se.current=null},tn=t=>{if(d===null)return;const s=K[d],a=be[d];!s||!a?.isMultivariate||(Je(t),A([]),H(o=>o+1),ft(s,a,t,d,!0))},Fa=t=>{if(d===null||!g)return;const s=K[d],a=be[d];if(!s||!a?.isMultivariate)return;const o=tt(s,a);if(!o)return;const i=xr(o,t);if(!i){N.error(r("sectionsEditor.sectionsEditor.cannotDeleteOnlyVariant"));return}const m=[...K];m[d]=wt(s,a,i);const f=i.variants;let x=Ie;t===Ie?x=Math.min(t,f.length-1):t<Ie&&(x=Ie-1),Je(x),A([]),H(R=>R+1),ft(m[d],a,x),Ye(m)},Ia=t=>{if(d===null||!g)return;const s=K[d],a=be[d];if(!s||!a?.isMultivariate)return;const o=tt(s,a);if(!o)return;const i=_r(o,t),m=[...K];m[d]=wt(s,a,i);const f=t+1;Je(f),A([]),H(x=>x+1),ft(m[d],a,f),Ye(m)},Oa=(t,s)=>{if(d===null||!g||t===s)return;const a=K[d],o=be[d];if(!a||!o?.isMultivariate)return;const i=tt(a,o);if(!i)return;const m=yr(i,t,s),f=[...K];f[d]=wt(a,o,m);let x=Ie;Ie===t?x=s:t<Ie&&s>=Ie?x=Ie-1:t>Ie&&s<=Ie&&(x=Ie+1),Je(x),ft(f[d],o,x),Ye(f)},Ht=t=>{const s=t??d;if(s===null||!g)return;const a=K[s],o=be[s];if(!a||!o)return;const i=gr(a,o);if(!i){N.error(r("sectionsEditor.sectionsEditor.sectionCannotHaveVariants"));return}const m=[...K];m[s]=i.section;const f=rs(m,c)[s];if(!f?.isMultivariate){N.error(r("sectionsEditor.sectionsEditor.couldNotAddVariant"));return}M(s),Je(i.newVariantIndex),A([]),H(x=>x+1),ft(i.section,f,i.newVariantIndex,s),Ye(m)},sn=()=>{if(d===null||!g)return;const t=K[d],s=be[d];if(!t||!s?.isMultivariate)return;const a=tt(t,s);if(!a)return;const o=br(t,s,a);if(!o){N.error(r("sectionsEditor.sectionsEditor.couldNotRemoveVariants"));return}const i=[...K];i[d]=o;const m=rs(i,c)[d];if(!m)return;Je(0),Oe(null),De(null),A([]),H(x=>x+1);const f=kt(o,m,c);f?(C(f.data),z(f.resolveType)):(C(null),z(null)),Mt(null,d,0),Ye(i)},za=async t=>{if(ue===null||!g)return;const s=us(t,c);if(s){N.error(s);return}const a=K[ue],o=be[ue];if(!a||!o)return;const i=kt(a,o,c);if(!i){N.error(r("sectionsEditor.sectionsEditor.sectionCannotBeSavedAsGlobal"));return}const m={...i.data,name:t};try{await Y.mutateAsync({blockKey:t,data:m});const f=[...K];f[ue]={__resolveType:t},await Y.mutateAsync({blockKey:g,data:qt(c,g,f,se,de)}),d===ue&&Pt(),je(null),N.success(r("sectionsEditor.sectionsEditor.savedGlobalBlock",{blockId:t})),b?.()}catch(f){N.error(f instanceof Error?f.message:r("sectionsEditor.sectionsEditor.failedToSaveGlobalBlock"))}},nn=Ge?.rule;if(et&&d===null&&le===null&&nn){const{resolveType:t,formValue:s}=Wt(nn,c??{},l??void 0);Ae(t),ie(s)}const Ct=l?$o(l):[],Es=l&&c?Ho(l,c):[],an=!Q&&!!(_e&&l&&c),on=le&&l?ls(le,l):null,pt=()=>{at.current&&(clearTimeout(at.current),at.current=null),ot.current&&(clearTimeout(ot.current),ot.current=null)},Et=async(t,s)=>{if(!(Vr(s,t,l)>0))try{await Zt.mutateAsync({blockKey:t})}catch(a){N.error(a instanceof Error?a.message:r("sectionsEditor.sectionsEditor.couldNotDeleteMatcherBlock"))}},rn=t=>{at.current&&clearTimeout(at.current),at.current=setTimeout(()=>{const{activePageKey:s,decofile:a,variantIndex:o}=He.current;if(!s)return;const i={...a[s]},m={...i.sections},f=[...m.variants??[]],x=f[o],R=x?.rule;if(Rt(R,a,l)){const S=R?.__resolveType??"",E=a[S],_=typeof E?.name=="string"?E.name:S,{__resolveType:W,...Z}=t;Y.mutate({blockKey:S,data:xt(W??"",Z,_)},{onSuccess:()=>b?.(),onError:ee=>N.error(r("sectionsEditor.sectionsEditor.saveFailed",{error:ee.message}))});return}x&&(f[o]={...x,rule:t}),i.sections={...m,variants:f},Y.mutate({blockKey:s,data:i},{onSuccess:()=>b?.(),onError:S=>N.error(r("sectionsEditor.sectionsEditor.saveFailed",{error:S.message}))})},Ms)},ln=t=>{Ae(t);const s=t?Yn(t,l):{__resolveType:Qn};ie(t?s:{}),rn(s)},cn=t=>{const s=t;ie(s);const a=le?{__resolveType:le,...s}:{...s};rn(a)},un=async t=>{pt();const{activePageKey:s,decofile:a,variantIndex:o}=He.current;if(!s)return;const i=a[s],m=i?.sections;if(!m||typeof m!="object"||Array.isArray(m))return;const f=m;if(!Array.isArray(f.variants))return;const x=[...f.variants],R=x[o];if(!R)return;const S=bt(R.rule,a,l),E=Lt(t);x[o]={...R,rule:E};const _={...a,[s]:{...i,sections:{...f,variants:x}}},{resolveType:W,formValue:Z}=Wt(E,_,l??void 0);Ae(W),ie(Z);try{await Y.mutateAsync({blockKey:s,data:_[s]}),S&&S!==t&&await Et(S,_),b?.()}catch(ee){N.error(ee instanceof Error?ee.message:r("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}},dn=t=>{ot.current&&clearTimeout(ot.current);const{selectedSectionIndex:s,sectionVariantIndex:a}=He.current;s!==null&&(ot.current=setTimeout(()=>{const{rawSections:o,parsedSections:i,decofile:m,activePageKey:f,pageVariants:x,variantIndex:R}=He.current;if(!f)return;const S=o[s],E=i[s];if(!S||!E?.isMultivariate)return;const _=tt(S,E);if(!_)return;const Z=(_.variants??[])[a]?.rule;if(Rt(Z,m,l)){const I=Z?.__resolveType??"",Xe=m[I],rt=typeof Xe?.name=="string"?Xe.name:I,{__resolveType:St,...it}=t;Y.mutate({blockKey:I,data:xt(St??"",it,rt)},{onSuccess:()=>b?.(),onError:yt=>N.error(r("sectionsEditor.sectionsEditor.saveFailed",{error:yt.message}))});return}const ee=Xn(_,a,t),F=[...o];F[s]=wt(S,E,ee);const U=qt(m,f,F,R,x);Y.mutate({blockKey:f,data:U},{onSuccess:()=>b?.(),onError:I=>N.error(r("sectionsEditor.sectionsEditor.saveFailed",{error:I.message}))})},Ms))},$a=t=>{Oe(t);const s=t?Yn(t,l):{__resolveType:Qn};De(t?s:{}),dn(s)},Ha=t=>{const s=t;De(s);const a=Tt?{__resolveType:Tt,...s}:{...s};dn(a)},Ga=async t=>{pt();const{selectedSectionIndex:s,sectionVariantIndex:a,rawSections:o,parsedSections:i,decofile:m,activePageKey:f,pageVariants:x,variantIndex:R}=He.current;if(s===null||!f)return;const S=o[s],E=i[s];if(!S||!E?.isMultivariate)return;const _=tt(S,E);if(!_)return;const W=_.variants??[],Z=bt(W[a]?.rule,m,l),ee=Lt(t),F=Xn(_,a,ee),U=[...o];U[s]=wt(S,E,F);const I=qt(m,f,U,R,x),Xe={...m,[f]:I},{resolveType:rt,formValue:St}=Wt(ee,Xe,l??void 0);Oe(rt),De(St);try{await Y.mutateAsync({blockKey:f,data:I}),Z&&Z!==t&&await Et(Z,Xe),b?.()}catch(it){N.error(it instanceof Error?it.message:r("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}};if(!Q&&!te)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:r("sectionsEditor.sectionsEditor.noPageFound",{currentPath:k})});if(Q&&!gs)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:r("sectionsEditor.sectionsEditor.globalBlockNotFound")});const xe=d!==null?be[d]??null:null,mn=d!==null?K[d]:null,fn=mn&&xe?.isMultivariate?tt(mn,xe):null,ht=fn?Jn(fn,lt):[],ss=Math.min(Ie,Math.max(ht.length-1,0)),Dt=ht[ss]??null,gt=xe?.isMultivariate===!0,ks=d!==null&&xe!==null,vt=ks&&(gt||!!(_s&&We)),qa=vt&&!Q&&xe?.isSavedBlock===!0,Qe=Q||qa,pn=Q?Ws:xe?.label??"",Wa=Tt&&l?ls(Tt,l):null,hn=(t,s)=>s&&G?`${t} · ${s}`:t,gn=xe?xe.variantOf??xe.label:"",Ua=(()=>{const t=gt&&Dt?Dt.label:null;return t?G?[hn(gn,t)]:[xe.label,t]:[xe?.label??""]})(),ws=hn(te?.name??"",et?Ge?.label:null),ns=vt&&(!Q||B.length>0)?Q?[Ws,...B]:[ws,...Ua,...B]:[],vn=D&&te?[te.name,"SEO",...zs]:[],Sn=r("sectionsEditor.pageVariantTabs.variantsLabel"),yn=P&&te?[te.name,Sn]:Ce&&te&&xe?[ws,gn,Sn]:[],as=yn.length>0?yn:vn.length>0?vn:Qe?ns.length>0?ns:[pn]:ns.length>0?ns:[ws],bn=ks&&!gt&&!xe?.isHidden&&!!g,Ja=Qe||!Q&&et&&!!Ge||bn,Ya=ks&&!gt&&!Q&&B.length===0&&!!xe&&ia(xe)&&!!g,Qa=G&&vt&&!Ce&>&&B.length===0&&!!Dt,xn=G&&B.length>0?Fn(B[B.length-1]):null,Xa=B.length>1?Fn(B[B.length-2]):null,_n=Qe?pn:vt?xe?.label??"":te?.name??"",Za=P||Ce?r("sectionsEditor.pageVariantTabs.variantsLabel"):D?r("sectionsEditor.panelSections.seo"):xn??_n,jn=Ce?xe?.variantOf??xe?.label??"":P||D?te?.name??"":xn?Xa??_n:Qe?r("sectionsEditor.sectionsEditor.globalSectionSubtitle"):vt?te?.name??"":te?.path??"",Rs=!P&&!Ce&&!D&&!vt&&!Qe,eo=!G&&!D&&!Q&>&&B.length===0,Gt=()=>{if(!g)return;pt(),q.current&&(clearTimeout(q.current),q.current=null);const t=c[g],s=vr(t.sections,K);if(!s)return;const a=Sr(s);Y.mutate({blockKey:g,data:{...t,sections:s}},{onSuccess:()=>{fe(a),M(null),C(null),z(null),A([]),ie(null),Ae(null)},onError:o=>N.error(r("sectionsEditor.sectionsEditor.saveFailed",{error:o.message}))})},os=(t,s,a)=>{if(!g)return;pt(),q.current&&(clearTimeout(q.current),q.current=null);const o=c[g],i=o.sections;if(!i||typeof i!="object"||Array.isArray(i))return;const m=i;if(!Array.isArray(m.variants))return;const f=t([...m.variants]);if(!f)return;const x=Rr(m,f),R={...c,[g]:{...o,sections:x}};Y.mutate({blockKey:g,data:R[g]},{onSuccess:()=>{s?.();const S=typeof a=="string"?[a]:a??[];(async()=>{for(const E of S)await Et(E,R)})()},onError:S=>N.error(r("sectionsEditor.sectionsEditor.saveFailed",{error:S.message}))})},Vs=t=>{ne(null),fe(t),M(null),C(null),z(null),A([]);const s=de[t]?.rule,{resolveType:a,formValue:o}=Wt(s,c??{},l??void 0);Ae(a),ie(o),bs(de.map(i=>({rule:i.rule})),t)},En=(t,s)=>{if(t===s)return;let a=se;se===t?a=s:t<se&&s>=se?a=se-1:t>se&&s<=se&&(a=se+1),fe(a);const o=ds(de.map(i=>({rule:i.rule})),t,s);bs(o,a),os(i=>ds(i,t,s))},kn=t=>{const s=de[t]?.rule,a=bt(s,c??{},l??void 0);os(o=>o.length<=1?null:(o.splice(t,1),o),()=>{de.length-1===1?fe(0):t<se?fe(se-1):t===se&&fe(Math.max(0,t-1)),M(null),C(null),z(null),A([]),ie(null),Ae(null)},a)},to=()=>{const t=de.map((s,a)=>({variant:s,index:a})).filter(({variant:s})=>!wr(s.rule)).map(({variant:s})=>bt(s.rule,c??{},l??void 0)).filter(s=>!!s);os(s=>{const a=Nr({variants:s}),o=s[a];return o?[{...o,rule:Ar()}]:null},()=>{fe(0),M(null),C(null),z(null),A([]),ie(null),Ae(null),st(!1)},t)},wn=t=>{os(s=>Mr(s,t),()=>{fe(t+1),M(null),C(null),z(null),A([]),ie(null),Ae(null)})},so=async(t,s)=>{pt(),q.current&&(clearTimeout(q.current),q.current=null);const a=He.current.activePageKey,o=He.current.decofile;if(!a)return;const i=o[a],m=i.sections;if(!m||typeof m!="object"||Array.isArray(m))return;const f=m;if(!Array.isArray(f.variants))return;const x=[...f.variants],R=x[t];if(!R?.rule||typeof R.rule!="object"){N.error(r("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const S=R.rule,E=s.trim();At(!0);try{if(!E){if(!Rt(S,o,l)){ne(null);return}const U=S.__resolveType??"";x[t]={...R,rule:Ds(S,o,l)};const I={...o,[a]:{...i,sections:{...f,variants:x}}};await Y.mutateAsync({blockKey:a,data:I[a]}),await Et(U,I),ne(null),b?.();return}const _=Ks(S,o,l);if(!_){N.error(r("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(_.blockKey){await Y.mutateAsync({blockKey:_.blockKey,data:xt(_.resolveType,_.data,E)}),ne(null),b?.();return}const W=cs(E),Z=us(W,o);if(Z){N.error(Z);return}const ee=xt(_.resolveType,_.data,E);let F=null;try{await Y.mutateAsync({blockKey:W,data:ee}),F=W,x[t]={...R,rule:Lt(W)},await Y.mutateAsync({blockKey:a,data:{...i,sections:{...f,variants:x}}}),F=null}catch(U){throw F&&await Zt.mutateAsync({blockKey:F}).catch(()=>{}),U}ne(null),N.success(r("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:E})),b?.()}catch(_){N.error(_ instanceof Error?_.message:r("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{At(!1)}},no=async(t,s)=>{pt(),q.current&&(clearTimeout(q.current),q.current=null);const{selectedSectionIndex:a,rawSections:o,parsedSections:i,decofile:m,activePageKey:f,pageVariants:x,variantIndex:R}=He.current;if(a===null||!f)return;const S=o[a],E=i[a];if(!S||!E?.isMultivariate)return;const _=tt(S,E);if(!_)return;const W=_.variants??[],Z=W[t];if(!Z?.rule||typeof Z.rule!="object"){N.error(r("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const ee=Z.rule,F=s.trim();At(!0);const U=async I=>{const Xe={..._,variants:I},rt=[...o];rt[a]=wt(S,E,Xe);const St=qt(m,f,rt,R,x);return await Y.mutateAsync({blockKey:f,data:St}),{...m,[f]:St}};try{if(!F){if(!Rt(ee,m,l)){ae(null);return}const yt=ee.__resolveType??"",Kn=[...W];Kn[t]={...Z,rule:Ds(ee,m,l)};const po=await U(Kn);await Et(yt,po),ae(null),b?.();return}const I=Ks(ee,m,l);if(!I){N.error(r("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(I.blockKey){await Y.mutateAsync({blockKey:I.blockKey,data:xt(I.resolveType,I.data,F)}),ae(null),b?.();return}const Xe=cs(F),rt=us(Xe,m);if(rt){N.error(rt);return}const St=xt(I.resolveType,I.data,F);let it=null;try{await Y.mutateAsync({blockKey:Xe,data:St}),it=Xe;const yt=[...W];yt[t]={...Z,rule:Lt(Xe)},await U(yt),it=null}catch(yt){throw it&&await Zt.mutateAsync({blockKey:it}).catch(()=>{}),yt}ae(null),N.success(r("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:F})),b?.()}catch(I){N.error(I instanceof Error?I.message:r("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{At(!1)}},Rn=async(t,s,a)=>{C(a);try{await Y.mutateAsync({blockKey:t,data:a})}catch(o){throw C(i=>i===a?s:i),o}},ao={rename:async(t,s,a)=>{pt(),q.current&&(clearTimeout(q.current),q.current=null);const{activePageKey:o,decofile:i}=He.current;if(!o)return;const m=Array.isArray(t.variants)?[...t.variants]:[],f=m[s],x=f?.rule&&typeof f.rule=="object"?f.rule:void 0,R=async E=>{const _={...t,variants:E};return await Rn(o,t,_),{...i,[o]:_}},S=hi(x,a,i,l);if(S.kind!=="noop"){if(S.kind==="error"){N.error(S.reason==="no-matcher-rule"?r("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"):S.reason==="unreadable-rule"?r("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"):S.message??r("sectionsEditor.sectionsEditor.failedToRenameVariant"));return}At(!0);try{if(S.kind==="inline"){const _=[...m];_[s]={...f,rule:S.inlinedRule};const W=await R(_);await Et(S.blockKey,W),b?.();return}if(S.kind==="updateBlock"){await Y.mutateAsync({blockKey:S.blockKey,data:S.blockData}),b?.();return}let E=null;try{await Y.mutateAsync({blockKey:S.blockId,data:S.blockData}),E=S.blockId;const _=[...m];_[s]={...f,rule:S.reference},await R(_),E=null}catch(_){throw E&&await Zt.mutateAsync({blockKey:E}).catch(()=>{}),_}N.success(r("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:a.trim()})),b?.()}catch(E){N.error(E instanceof Error?E.message:r("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{At(!1)}}},selectGlobal:async(t,s,a)=>{pt(),q.current&&(clearTimeout(q.current),q.current=null);const{activePageKey:o,decofile:i}=He.current;if(!o)return;const m=Array.isArray(t.variants)?[...t.variants]:[],f=m[s];if(!f)return;const x=bt(f.rule,i,l);m[s]={...f,rule:Lt(a)};const R={...t,variants:m},S={...i,[o]:R};try{await Rn(o,t,R),x&&x!==a&&await Et(x,S),b?.()}catch(E){N.error(E instanceof Error?E.message:r("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}}},Vn=()=>{Pt()},Tn=t=>{Qt(t),js({inner:t})},Nn=t=>{ps(t),js({raw:t})},An=()=>{Qt(null),jt([])},Mn=()=>Ft(t=>t+1),Pn=()=>{Xt.flush(),Fe(!1),Qt(null),ps(void 0),jt([]),Ft(t=>t+1),me?.()},oo=()=>{st(!1),L(!1),M(null),Fe(!0)},ro=()=>{D&&Pn(),M(null),st(!0)},io=()=>L(!0),Ts=t=>{if(P&&t===0){st(!1);return}if(Ce&&t<2){L(!1),t===0&&M(null);return}if(D){if(t===0){Pn();return}if(t===1){jt([]),Ft(a=>a+1);return}jt(zs.slice(0,t-1)),Ft(a=>a+1);return}if(Q){A(B.slice(0,t)),H(a=>a+1);return}if(t===0){Vn();return}if(t===1){A([]),H(a=>a+1);return}const s=!G&>&&Dt?1:0;if(s===1&&t===2){A([]),H(a=>a+1);return}A(B.slice(0,t-1-s))},Ns=as.length>1?n.jsx("button",{type:"button",onClick:()=>Ts(er(as.length,{isMultivariateSectionTop:eo})),title:r("sectionsEditor.sectionsEditor.back"),"aria-label":r("sectionsEditor.sectionsEditor.back"),className:oe("shrink-0 inline-flex size-6 items-center justify-center rounded-[var(--studio-control-radius,var(--radius-md))] transition-colors",Qe?"text-foreground/80 hover:bg-global-section/15":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:n.jsx(rr,{className:"size-4"})}):null,lo=Qe||vt||D?Ja&&n.jsxs("div",{className:oe("border-b px-3 py-2.5",Qe&&"border-global-section/22 bg-global-section/12 dark:bg-global-section/16"),children:[n.jsxs("div",{className:"flex min-w-0 items-center gap-2 overflow-hidden",children:[!Q&&et&&Ge&&n.jsxs("button",{type:"button",onClick:Vn,title:r("sectionsEditor.sectionsEditor.editingInVariant",{variant:Ge.label}),className:oe("shrink-0 inline-flex items-center gap-1 rounded-lg h-6 px-1.5 text-xs font-medium cursor-pointer transition-opacity hover:opacity-80",qo),children:[n.jsx(Go,{rule:Ps(Ge.rule,c??{},l??void 0),matchers:Ct}),n.jsx("span",{className:"max-w-[160px] truncate",children:Ge.label})]}),n.jsx("div",{className:"flex-1"}),Qe&&n.jsxs(ct,{children:[n.jsx(ut,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(ms,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),n.jsx(dt,{side:"bottom",className:"max-w-[260px]",children:r("sectionsEditor.sectionsEditor.globalSectionTooltip")})]}),bn&&n.jsx(is,{onClick:()=>Ht()})]}),Qe&&n.jsx("p",{className:"mt-1.5 py-1.5 pl-1 text-sm leading-snug text-foreground",children:r("sectionsEditor.sectionsEditor.globalSectionBanner")})]}):n.jsxs("div",{className:"flex items-center gap-2 border-b px-3 py-2.5",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(In,{pageKey:g,initialName:te.name,initialPath:te.path,onFieldChange:Zs,variant:"header"})}),n.jsxs(ct,{children:[n.jsx(ut,{asChild:!0,children:n.jsx(Vt,{type:"button",variant:"ghost",size:"icon","aria-label":r("sectionsEditor.sectionsEditor.editSeo"),className:"size-7 shrink-0",onClick:()=>Fe(!0),children:n.jsx(Wn,{size:14})})}),n.jsx(dt,{side:"bottom",children:r("sectionsEditor.sectionsEditor.editSeo")})]}),n.jsxs(ct,{children:[n.jsx(ut,{asChild:!0,children:n.jsx(Vt,{type:"button",variant:"ghost",size:"icon","aria-label":r("sectionsEditor.sectionsEditor.viewJson"),className:"size-7 shrink-0",onClick:()=>Be&&g?Be():Ee(!0),children:n.jsx(Un,{size:14})})}),n.jsx(dt,{side:"bottom",children:r("sectionsEditor.sectionsEditor.viewJson")})]}),n.jsx(is,{onClick:Gt})]}),co=n.jsxs(n.Fragment,{children:[et&&g&&n.jsx(On,{listKey:g,variants:de,activeIndex:se,decofile:c??{},meta:l,matchers:Ct,onSelect:Vs,onReorder:En,onRename:ne,onDuplicate:wn,onDelete:kn,onAdd:Gt}),et&&le!==null&&n.jsx(zn,{className:"mt-3",children:n.jsx("div",{className:oe("space-y-3",Nt&&"pointer-events-none opacity-50"),children:n.jsx(As,{currentRt:le,currentLabel:Ut(Ge?.rule,c??{},lt,l??void 0),currentGlobalKey:bt(Ge?.rule,c??{},l??void 0)??void 0,matchers:Ct,globals:Es,onSelect:ln,onSelectGlobal:un,schema:on,formValue:Le,onChange:cn,formKey:`${se}:${le??""}`,formWrapperClassName:"space-y-3",meta:l??void 0,decofile:c,onSaveReferencedBlock:It,sandbox:$t})})})]}),Cn=n.jsxs(n.Fragment,{children:[n.jsx(Wo,{listKey:`${g??""}:${d??""}`,variants:ht.map((t,s)=>({index:s,label:t.label})),selectedIndex:ss,onSelect:tn,onRename:ae,onDuplicate:Ia,onDelete:Fa,onRemoveAll:sn,onReorder:Oa,onAdd:()=>Ht()}),n.jsx(zn,{children:n.jsx(As,{currentRt:Tt??"",currentLabel:Ut(Dt?.rule,c??{},lt,l??void 0),currentGlobalKey:bt(Dt?.rule,c??{},l??void 0)??void 0,matchers:Ct,globals:Es,onSelect:$a,onSelectGlobal:Ga,schema:Wa,formValue:pa,onChange:Ha,formKey:`${d??"none"}:${ss}:${Tt??""}`,formWrapperClassName:"pt-1",meta:l??void 0,decofile:c,onSaveReferencedBlock:It,sandbox:$t})})]}),Dn=n.jsx("div",{className:oe(G?"px-2":"p-2 pt-3"),children:n.jsx(fi,{listKey:`${g??""}-${se}`,rawSections:K,sections:be,meta:l,decofile:c,selectedIndex:d,onSelect:Na,onReorder:Aa,onDelete:Ma,onDuplicate:Pa,onMakeReusable:je,onToggleHidden:Ca,onToggleLazy:Da,onAddVariant:Ht,onDetach:Ka,onAddSection:()=>ve(!0),canAddSection:an})}),uo=n.jsxs("div",{className:"min-w-0 max-w-full space-y-4 overflow-x-hidden px-3",children:[g&&te&&n.jsx(In,{pageKey:g,initialName:te.name,initialPath:te.path,onFieldChange:Zs}),Ot&&g?n.jsx(sa,{rawSeo:es,innerSeo:Ss,defaultResolveType:Js,seoSchema:Ys,activeResolveType:ts,seoTypeOptions:Us,formResetKey:$s,siteDefaultSeo:Qs,onBreadcrumbChange:jt,onPersistRaw:Nn,onInnerChange:Tn,onClearForm:An,onBumpFormKey:Mn}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:r("sectionsEditor.sectionsEditor.seoSchemaNotFound")})]}),mo=n.jsx(Bt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:n.jsx("div",{className:"mx-auto max-w-2xl",children:Ot&&g?n.jsx(sa,{rawSeo:es,innerSeo:Ss,defaultResolveType:Js,seoSchema:Ys,activeResolveType:ts,seoTypeOptions:Us,formResetKey:$s,siteDefaultSeo:Qs,onBreadcrumbChange:jt,onPersistRaw:Nn,onInnerChange:Tn,onClearForm:An,onBumpFormKey:Mn}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:r("sectionsEditor.sectionsEditor.seoSchemaNotFound")})})})},"editor-seo"),fo=n.jsxs(Bt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[et&&g&&n.jsx(On,{listKey:g,variants:de,activeIndex:se,decofile:c??{},meta:l,matchers:Ct,onSelect:Vs,onReorder:En,onRename:ne,onDuplicate:wn,onDelete:kn,onAdd:Gt}),et&&le!==null&&n.jsxs("div",{className:oe("px-3 border-b",ye?"pt-3 pb-5 space-y-3":"py-2"),children:[n.jsxs("button",{type:"button",onClick:()=>$e(t=>!t),className:"flex w-full items-center justify-between gap-2 text-left cursor-pointer rounded-[var(--studio-control-radius,var(--radius-sm))] py-0.5 hover:bg-muted/40","aria-expanded":ye,children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:r("sectionsEditor.sectionsEditor.variantRule")}),ye?n.jsx(nr,{className:"size-3.5 shrink-0 text-muted-foreground"}):n.jsx(ar,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),ye&&n.jsx("div",{className:oe("space-y-3",Nt&&"pointer-events-none opacity-50"),children:n.jsx(As,{currentRt:le,currentLabel:Ut(Ge?.rule,c??{},lt,l??void 0),currentGlobalKey:bt(Ge?.rule,c??{},l??void 0)??void 0,matchers:Ct,globals:Es,onSelect:ln,onSelectGlobal:un,schema:on,formValue:Le,onChange:cn,formKey:`${se}:${le??""}`,formWrapperClassName:"space-y-3",meta:l??void 0,decofile:c,onSaveReferencedBlock:It,sandbox:$t})})]}),Dn]},"editor-section-list");return n.jsx(Uo,{children:n.jsxs("div",{className:"flex h-full min-w-0 w-full flex-col",children:[!G&&Ns&&n.jsx("div",{className:"flex min-w-0 shrink-0 items-center gap-2 px-3 py-2",children:Ns}),(G||as.length>1)&&n.jsx(Jo,{crumbs:as,onSelect:Ts,onSelectRoot:()=>{Xt.flush(),Ke?Ke():Ts(0)}}),n.jsx("div",{className:"shrink-0",children:G?n.jsxs("div",{className:oe("flex items-center gap-2 border-b px-3 py-2.5",Qe&&"border-global-section/22 bg-global-section/12 dark:bg-global-section/16"),children:[G&&Ns,Qe&&n.jsxs(ct,{children:[n.jsx(ut,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(ms,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),n.jsx(dt,{side:"bottom",className:"max-w-[260px]",children:r("sectionsEditor.sectionsEditor.globalSectionTooltip")})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col leading-tight",children:[n.jsx("span",{className:"truncate text-sm font-semibold",children:Za}),jn&&n.jsx("span",{className:"truncate text-xs text-muted-foreground",children:jn})]}),Rs&&et&&Ge&&n.jsx($n,{variants:de,activeIndex:se,onSelect:Vs,onManage:ro,onRemoveAll:to}),Qa&&n.jsx($n,{variants:ht,activeIndex:ss,onSelect:tn,onManage:io,onRemoveAll:sn}),Rs&&!et&&n.jsx(is,{onClick:Gt}),Ya&&n.jsx(is,{onClick:()=>Ht()}),n.jsx(Yo,{}),Rs&&n.jsxs(n.Fragment,{children:[n.jsxs(ct,{children:[n.jsx(ut,{asChild:!0,children:n.jsx(Vt,{type:"button",variant:"outline",size:"icon","aria-label":r("sectionsEditor.sectionsEditor.editSeo"),className:"size-7 shrink-0",onClick:oo,children:n.jsx(Wn,{size:14})})}),n.jsx(dt,{side:"bottom",children:r("sectionsEditor.sectionsEditor.editSeo")})]}),!Be&&n.jsxs(ct,{children:[n.jsx(ut,{asChild:!0,children:n.jsx(Vt,{type:"button",variant:"outline",size:"icon","aria-label":r("sectionsEditor.sectionsEditor.viewJson"),className:"size-7 shrink-0",onClick:()=>Ee(!0),children:n.jsx(Un,{size:14})})}),n.jsx(dt,{side:"bottom",children:r("sectionsEditor.sectionsEditor.viewJson")})]})]})]}):lo}),Ce?n.jsx(Hn,{onAdd:()=>Ht(),children:Cn},"editor-section-variants"):vt?n.jsxs(Bt,{viewportRef:ce,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[!G&>&&ht.length>0&&B.length===0&&Cn,n.jsx(Gn,{activeSchema:_s,formValue:We,formResetKey:Re,onFormChange:Xs,onBreadcrumbChange:A,breadcrumbPath:B,emptyMessage:r("sectionsEditor.sectionsEditor.noEditableFieldsForVariant"),meta:l,decofile:c,onSaveReferencedBlock:It,sandbox:$t,previewBaseUrl:_e,onRequestAddSection:en,onVariantMatcherOp:Q?ao:void 0})]},"editor-section-form"):Q?n.jsx(Bt,{viewportRef:ce,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx(Gn,{activeSchema:_s,formValue:We,formResetKey:Re,onFormChange:Xs,onBreadcrumbChange:A,breadcrumbPath:B,emptyMessage:r("sectionsEditor.sectionsEditor.noEditableFieldsForGlobalBlock"),meta:l,decofile:c,onSaveReferencedBlock:It,sandbox:$t,previewBaseUrl:_e,onRequestAddSection:en})},"editor-global-block"):D?G?n.jsx(Bt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx("div",{className:"p-3",children:uo})},"editor-seo"):mo:P?n.jsx(Hn,{onAdd:Gt,children:co},"editor-variants"):G?n.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[n.jsx(Bt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx("div",{className:"py-2",children:Dn})}),n.jsx("div",{className:"shrink-0 border-t p-2",children:n.jsx(Fs,{canAddSection:an,onAddSection:()=>ve(!0)})})]},"editor-section-list"):fo,n.jsx(Qo,{open:ue!==null,onOpenChange:t=>{t||je(null)},defaultBlockId:ue!==null?cs(be[ue]?.label??""):"",isPending:Y.isPending,onSubmit:za}),_e&&n.jsx(Yr,{open:Pe,onOpenChange:t=>{ve(t),t||(Se.current=null)},meta:l,decofile:c,previewBaseUrl:_e,onSelect:La}),Ve&&g&&c&&n.jsx(cr,{open:Ve,onOpenChange:Ee,pageKey:g,decofile:c}),pe!==null&&n.jsx(qn,{open:!0,initialName:Rt(de[pe]?.rule,c??{},l??void 0)?Ut(de[pe]?.rule,c??{},lt,l??void 0):"",autoLabel:lt(Ps(de[pe]?.rule,c??{},l??void 0)),isPending:Nt,onSubmit:async t=>{await so(pe,t)},onOpenChange:t=>{!t&&!Nt&&ne(null)}}),he!==null&&n.jsx(qn,{open:!0,initialName:Rt(ht[he]?.rule,c??{},l??void 0)?Ut(ht[he]?.rule,c??{},lt,l??void 0):"",autoLabel:lt(Ps(ht[he]?.rule,c??{},l??void 0)),isPending:Nt,onSubmit:async t=>{await no(he,t)},onOpenChange:t=>{!t&&!Nt&&ae(null)}})]})})}export{Bc as SectionsEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as T,b as ve,j as o,r as ee,ak as je,B as Se,h as ke}from"./index-ChVmLdHW.js";import{$ as fe}from"./agent-icon-CIGL1pZs.js";import{S as ue}from"./scroll-area-C1A8PvHb.js";import{F as xe,T as Ne,U as we,X as _e,W as Ee,Y as Pe,an as Te}from"./runnable-block-editor-CuWmi7BA.js";import{r as Fe}from"./claim-phase-copy-CFpL9K68.js";import{u as Re,a as Ce,P as Ke}from"./page-seo-form-ChqcYa8F.js";import{a as ye}from"./Image01-BB-fQuF8.js";import"./AlertCircle-Cnt3s3Qv.js";import"./Tool01-BQ6YeSBp.js";import"./ArrowUp-BlzOYA31.js";import"./ArrowLeft-CVapKJeO.js";import"./LinkBroken01-BkNFLcBO.js";import"./ShoppingBag01-D_1-HSzF.js";import"./ZoomOut-1hnYerz5.js";import"./Building02-DEQgvDUF.js";import"./CheckCircle-BWPfjhqr.js";import"./Check-CzSx-ydY.js";import"./ChevronUp-rUh9iEAD.js";import"./UserSquare-Cx5Xiw2A.js";import"./Copy01-C2Yrgrxb.js";import"./CreditCard01-hJClrSeg.js";import"./DotsVertical-3xNyBi9X.js";import"./Palette-vvvH2B7g.js";import"./XClose-BUXY9lDw.js";import"./Key01-DcjI-nGA.js";import"./Link01-BRPPP5SV.js";import"./LinkExternal01-DGnJ7QLB.js";import"./Monitor01-CwkGnynm.js";import"./Sun-D8jVF5Xg.js";import"./Plus-IBFVYt16.js";import"./SearchMd-ma2pJckE.js";import"./Trash01-CFIg7T-4.js";import"./Upload01-DR9ASh0y.js";import"./User01-B1tXJtqS.js";import"./Users01-Dnx31YPK.js";import"./X-CgBe-4Jc.js";import"./select-6CFL7VEE.js";import"./index-CpaCFTVB.js";import"./use-session-runtime-bs_s_abt.js";import"./thread-intent-2EYthzbr.js";import"./use-mcp-client-Q4rBo7vM.js";import"./auth-CbP-I67u.js";import"./backoff-8mStPHYB.js";import"./task-board-jWDOqP6T.js";import"./schema-D71rjoG0.js";import"./slugify-CEUa2lfQ.js";import"./chat-context-Dz_Vgbbo.js";import"./use-panel-navigate-sve-S3VW.js";import"./thread-route-BJfF-e-7.js";import"./use-project-scope-DiTyFpcQ.js";import"./repository-binding-c-pt63EX.js";import"./autosend-DCU1n5eC.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-decopilot-events-e6tJ215a.js";import"./use-ai-providers-DRajJwjA.js";import"./location-DPIrGNp7.js";import"./use-organization-settings-DOzB1VOw.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-W1JkklHY.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-BbONBSMG.js";import"./use-copy-DDBNqL1l.js";import"./usage-stats-CPgORe2K.js";import"./markdown-Dmr3MD7N.js";import"./dialog-7XPFiysQ.js";import"./org-file-open-context-GQ31bTUS.js";import"./use-mobile-NUesfqlY.js";import"./tooltip-Cd2NmgKf.js";import"./use-clock-tick-CDj388Wx.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BQm3KRIJ.js";import"./types-Yj0uB20y.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./gateway-client-3IqhjEcP.js";import"./tool-namespace-DmnQIdtF.js";import"./utils-CVEq3hMx.js";import"./shell-layout-CK7wLTUx.js";import"./avatar-B48LJY_f.js";import"./download-app-dialog-DKnC1JBE.js";import"./command-D3dAN0q_.js";import"./index-CmiT1BjZ.js";import"./integration-icon-d1AiAF22.js";import"./project-icon-C7Hu1tJm.js";import"./new-project-dialog-Cy-6meY2.js";import"./input-9ltBphX4.js";import"./label-llKCPsPO.js";import"./repository-import-picker-DRt0VM9d.js";import"./use-navigate-to-agent-D_jqZmcT.js";import"./repository-picker-nqe38njd.js";import"./useInfiniteQuery-CwfMdk7l.js";import"./infiniteQueryObserver-D1DafD0M.js";import"./collection-search-D8CVrsVV.js";import"./use-debounced-value-QxJhT0l9.js";import"./required-auth-layout-CIIRb74R.js";import"./use-org-sso-CMHVPcMz.js";import"./sheet-DMTbOlwp.js";import"./use-connection-C-VZ8w9P.js";import"./use-mcp-prompts-BUsT36pj.js";import"./index-DZa7kB0Z.js";import"./form-Bq3zfSIW.js";import"./use-thread-outputs-B2TafAgP.js";import"./file-type-icon-CLaHXnTs.js";import"./popover-CqhYMlVn.js";import"./utils-BT5oy4Sg.js";import"./monaco-editor-k3tefZgc.js";import"./editor-BGyR0Yu7.js";import"./calendar-BLnb7Mll.js";import"./textarea-BeITBKxj.js";import"./use-new-blocks-editor-D6-Yba00.js";import"./rich-text-link-control-VXQ4aFnS.js";import"./switch-BYw3Xugd.js";import"./combobox-DhYfa0RQ.js";import"./alert-dialog-CYGz7ldN.js";import"./sandbox-url-D3mC8qhT.js";import"./search-input-Bt-TRqMJ.js";import"./tabs-D3R4V_n3.js";import"./use-file-configs-5_tcNCEF.js";import"./asset-utils-BsDgokdc.js";import"./use-chat-layout-state-QjPc9oo9.js";import"./site-slug-DebpOoQq.js";import"./toggle-group-DqXAR_ku.js";import"./sandbox-git-api-DTIjDZTr.js";function A(d){return typeof d=="string"&&d.trim()?d:void 0}function he(d,e){if(d){if(e)try{const t=new URL(d,e).href;return xe(t)}catch{return}return xe(d)}}function ze(d){if(!d)return{};const e=A(d.title),t=A(d.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:A(d.description),image:A(d.image),favicon:A(d.favicon)}}function De(d){if(!d)return"example.com";try{return new URL(d).host}catch{return"example.com"}}const $e=[{id:"google",labelKey:"sectionsEditor.seoPreview.platformGoogle",color:"#4285F4",layout:"search"},{id:"facebook",labelKey:"sectionsEditor.seoPreview.platformFacebook",color:"#1877F2",layout:"card"},{id:"twitter",labelKey:"sectionsEditor.seoPreview.platformTwitter",color:"#0f1419",layout:"card"},{id:"linkedin",labelKey:"sectionsEditor.seoPreview.platformLinkedin",color:"#0A66C2",layout:"card"},{id:"whatsapp",labelKey:"sectionsEditor.seoPreview.platformWhatsapp",color:"#25D366",layout:"chat"},{id:"telegram",labelKey:"sectionsEditor.seoPreview.platformTelegram",color:"#229ED9",layout:"chat"},{id:"slack",labelKey:"sectionsEditor.seoPreview.platformSlack",color:"#611f69",layout:"attachment"},{id:"discord",labelKey:"sectionsEditor.seoPreview.platformDiscord",color:"#5865F2",layout:"attachment"}];function de(d){const e=T.c(10),{src:t,className:c,iconSize:v}=d,r=v===void 0?20:v;if(t){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let p;return e[1]!==c||e[2]!==t?(p=o.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:c,style:m}),e[1]=c,e[2]=t,e[3]=p):p=e[3],p}let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=s):s=e[4];let i;e[5]!==r?(i=o.jsx(ye,{size:r}),e[5]=r,e[6]=i):i=e[6];let n;return e[7]!==c||e[8]!==i?(n=o.jsx("div",{className:c,style:s,children:i}),e[7]=c,e[8]=i,e[9]=n):n=e[9],n}function Ie(d){const e=T.c(33),{seo:t,host:c,path:v,t:r}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#fff",border:"1px solid #dadce0"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={background:"#f1f3f4"},e[1]=i):i=e[1];let n;e[2]!==t.favicon?(n=o.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:i,children:t.favicon?o.jsx("img",{src:t.favicon,alt:"",className:"size-full object-cover"}):o.jsx(ye,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=n):n=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#202124"},e[4]=m):m=e[4];let p;e[5]!==c?(p=o.jsx("div",{className:"truncate text-[13px] leading-tight",style:m,children:c}),e[5]=c,e[6]=p):p=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#4d5156"},e[7]=f):f=e[7];let l;e[8]!==c||e[9]!==v?(l=o.jsxs("div",{className:"truncate text-[12px] leading-tight",style:f,children:[c,v]}),e[8]=c,e[9]=v,e[10]=l):l=e[10];let a;e[11]!==p||e[12]!==l?(a=o.jsxs("div",{className:"min-w-0",children:[p,l]}),e[11]=p,e[12]=l,e[13]=a):a=e[13];let h;e[14]!==n||e[15]!==a?(h=o.jsxs("div",{className:"flex items-center gap-2",children:[n,a]}),e[14]=n,e[15]=a,e[16]=h):h=e[16];let u;e[17]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#1a0dab"},e[17]=u):u=e[17];let y;e[18]!==t.title||e[19]!==r?(y=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=r,e[20]=y):y=e[20];let x;e[21]!==y?(x=o.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:u,children:y}),e[21]=y,e[22]=x):x=e[22];let S;e[23]===Symbol.for("react.memo_cache_sentinel")?(S={color:"#4d5156"},e[23]=S):S=e[23];let g;e[24]!==t.description||e[25]!==r?(g=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=r,e[26]=g):g=e[26];let b;e[27]!==g?(b=o.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:S,children:g}),e[27]=g,e[28]=b):b=e[28];let j;return e[29]!==x||e[30]!==b||e[31]!==h?(j=o.jsxs("div",{className:"rounded-lg p-3 text-left",style:s,children:[h,x,b]}),e[29]=x,e[30]=b,e[31]=h,e[32]=j):j=e[32],j}function Le(d){const e=T.c(26),{seo:t,host:c,t:v}=d;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"#fff",border:"1px solid #e2e8f0"},e[0]=r):r=e[0];let s;e[1]!==t.image?(s=o.jsx(de,{src:t.image,className:"h-40 w-full"}),e[1]=t.image,e[2]=s):s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i={borderTop:"1px solid #e2e8f0"},e[3]=i):i=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n={color:"#8a9099"},e[4]=n):n=e[4];let m;e[5]!==c?(m=o.jsx("div",{className:"truncate text-[11px]",style:n,children:c}),e[5]=c,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#1c2024"},e[7]=p):p=e[7];let f;e[8]!==t.title||e[9]!==v?(f=t.title??v("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=v,e[10]=f):f=e[10];let l;e[11]!==f?(l=o.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:p,children:f}),e[11]=f,e[12]=l):l=e[12];let a;e[13]===Symbol.for("react.memo_cache_sentinel")?(a={color:"#60666c"},e[13]=a):a=e[13];let h;e[14]!==t.description||e[15]!==v?(h=t.description??v("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=v,e[16]=h):h=e[16];let u;e[17]!==h?(u=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:a,children:h}),e[17]=h,e[18]=u):u=e[18];let y;e[19]!==u||e[20]!==m||e[21]!==l?(y=o.jsxs("div",{className:"px-3 py-2",style:i,children:[m,l,u]}),e[19]=u,e[20]=m,e[21]=l,e[22]=y):y=e[22];let x;return e[23]!==y||e[24]!==s?(x=o.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[s,y]}),e[23]=y,e[24]=s,e[25]=x):x=e[25],x}function Ue(d){const e=T.c(36),{seo:t,host:c,accent:v,t:r}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f0f2f5"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={color:"#3b4045"},e[1]=i):i=e[1];let n;e[2]!==r?(n=r("sectionsEditor.seoPreview.chatCardHint"),e[2]=r,e[3]=n):n=e[3];let m;e[4]!==n?(m=o.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:i,children:n}),e[4]=n,e[5]=m):m=e[5];const p=`3px solid ${v}`;let f;e[6]!==p?(f={background:"#fff",borderLeft:p},e[6]=p,e[7]=f):f=e[7];let l;e[8]!==t.image?(l=o.jsx(de,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=l):l=e[9];let a;e[10]===Symbol.for("react.memo_cache_sentinel")?(a={color:"#1c2024"},e[10]=a):a=e[10];let h;e[11]!==t.title||e[12]!==r?(h=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=r,e[13]=h):h=e[13];let u;e[14]!==h?(u=o.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:a,children:h}),e[14]=h,e[15]=u):u=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y={color:"#60666c"},e[16]=y):y=e[16];let x;e[17]!==t.description||e[18]!==r?(x=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=x):x=e[19];let S;e[20]!==x?(S=o.jsx("div",{className:"line-clamp-2 text-[11px]",style:y,children:x}),e[20]=x,e[21]=S):S=e[21];let g;e[22]===Symbol.for("react.memo_cache_sentinel")?(g={color:"#8a9099"},e[22]=g):g=e[22];let b;e[23]!==c?(b=o.jsx("div",{className:"mt-0.5 text-[10px]",style:g,children:c}),e[23]=c,e[24]=b):b=e[24];let j;e[25]!==u||e[26]!==S||e[27]!==b?(j=o.jsxs("div",{className:"px-2.5 py-1.5",children:[u,S,b]}),e[25]=u,e[26]=S,e[27]=b,e[28]=j):j=e[28];let k;e[29]!==j||e[30]!==f||e[31]!==l?(k=o.jsxs("div",{className:"overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-md))]",style:f,children:[l,j]}),e[29]=j,e[30]=f,e[31]=l,e[32]=k):k=e[32];let N;return e[33]!==k||e[34]!==m?(N=o.jsxs("div",{className:"rounded-lg p-2 text-left",style:s,children:[m,k]}),e[33]=k,e[34]=m,e[35]=N):N=e[35],N}function Be(d){const e=T.c(39),{seo:t,host:c,accent:v,dark:r,t:s}=d,i=r?"#2b2d31":"#fff",n=r?"#00a8fc":"#1264a3",m=r?"#dbdee1":"#3b4045",p=r?"#949ba4":"#8a9099",f=r?"none":"1px solid #e2e8f0";let l;e[0]!==i||e[1]!==f?(l={background:i,border:f},e[0]=i,e[1]=f,e[2]=l):l=e[2];const a=`3px solid ${v}`;let h;e[3]!==a?(h={borderLeft:a,borderRadius:2},e[3]=a,e[4]=h):h=e[4];let u;e[5]!==p?(u={color:p},e[5]=p,e[6]=u):u=e[6];let y;e[7]!==c||e[8]!==u?(y=o.jsx("div",{className:"text-[10px]",style:u,children:c}),e[7]=c,e[8]=u,e[9]=y):y=e[9];let x;e[10]!==n?(x={color:n},e[10]=n,e[11]=x):x=e[11];let S;e[12]!==t.title||e[13]!==s?(S=t.title??s("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=s,e[14]=S):S=e[14];let g;e[15]!==x||e[16]!==S?(g=o.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:x,children:S}),e[15]=x,e[16]=S,e[17]=g):g=e[17];let b;e[18]!==m?(b={color:m},e[18]=m,e[19]=b):b=e[19];let j;e[20]!==t.description||e[21]!==s?(j=t.description??s("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=s,e[22]=j):j=e[22];let k;e[23]!==b||e[24]!==j?(k=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:b,children:j}),e[23]=b,e[24]=j,e[25]=k):k=e[25];let N;e[26]!==k||e[27]!==y||e[28]!==g?(N=o.jsxs("div",{className:"min-w-0 flex-1",children:[y,g,k]}),e[26]=k,e[27]=y,e[28]=g,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=o.jsx(de,{src:t.image,className:"size-14 shrink-0 rounded-[var(--studio-control-radius,var(--radius))]",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let _;e[32]!==N||e[33]!==w||e[34]!==h?(_=o.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:h,children:[N,w]}),e[32]=N,e[33]=w,e[34]=h,e[35]=_):_=e[35];let P;return e[36]!==_||e[37]!==l?(P=o.jsx("div",{className:"rounded-lg p-2.5 text-left",style:l,children:_}),e[36]=_,e[37]=l,e[38]=P):P=e[38],P}function Oe(d){const e=T.c(21),{platform:t,seo:c,host:v,path:r,t:s}=d;let i;e[0]!==v||e[1]!==r||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==c||e[6]!==s?(i=t.layout==="search"?o.jsx(Ie,{seo:c,host:v,path:r,t:s}):t.layout==="card"?o.jsx(Le,{seo:c,host:v,path:r,t:s}):t.layout==="chat"?o.jsx(Ue,{seo:c,host:v,path:r,accent:t.color,t:s}):o.jsx(Be,{seo:c,host:v,path:r,accent:t.color,dark:t.id==="discord",t:s}),e[0]=v,e[1]=r,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=c,e[6]=s,e[7]=i):i=e[7];const n=i;let m;e[8]!==t.color?(m=o.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=m):m=e[9];let p;e[10]!==t.labelKey||e[11]!==s?(p=s(t.labelKey),e[10]=t.labelKey,e[11]=s,e[12]=p):p=e[12];let f;e[13]!==p?(f=o.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:p}),e[13]=p,e[14]=f):f=e[14];let l;e[15]!==m||e[16]!==f?(l=o.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[m,f]}),e[15]=m,e[16]=f,e[17]=l):l=e[17];let a;return e[18]!==n||e[19]!==l?(a=o.jsxs("div",{children:[l,n]}),e[18]=n,e[19]=l,e[20]=a):a=e[20],a}function Ae(d){const e=T.c(18),{seo:t,url:c,path:v}=d,r=v===void 0?"/":v,s=ve();let i,n,m;if(e[0]!==t||e[1]!==c){const x=ze(t);i=x,n=he(x.image,c),m=he(x.favicon,c),e[0]=t,e[1]=c,e[2]=i,e[3]=n,e[4]=m}else i=e[2],n=e[3],m=e[4];let p;e[5]!==i||e[6]!==n||e[7]!==m?(p={...i,image:n,favicon:m},e[5]=i,e[6]=n,e[7]=m,e[8]=p):p=e[8];const f=p;let l;e[9]!==c?(l=De(c),e[9]=c,e[10]=l):l=e[10];const a=l,h=r==="/"?"":r;let u;e[11]!==h||e[12]!==a||e[13]!==s||e[14]!==f?(u=$e.map(x=>o.jsx(Oe,{platform:x,seo:f,host:a,path:h,t:s},x.id)),e[11]=h,e[12]=a,e[13]=s,e[14]=f,e[15]=u):u=e[15];let y;return e[16]!==u?(y=o.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:u}),e[16]=u,e[17]=y):y=e[17],y}function ni(d){const e=T.c(70),{orgSlug:t,virtualMcpId:c,branch:v,decofile:r,meta:s,target:i,previewBaseUrl:n,onSaved:m,onEditDefaultSeo:p,onBack:f}=d,l=ve(),a=Ne(r,i,s),h=a?.seoData,u=i.kind==="site"?"site":i.pageKey,[y,x]=ee.useState(u),[S,g]=ee.useState(null),[b,j]=ee.useState(0),[k,N]=ee.useState(void 0);y!==u&&(x(u),g(null),N(void 0),j(Ge));const{persistSeo:w,persistRawSeo:_,flush:P,isPending:te}=Re({orgSlug:t,virtualMcpId:c,branch:v,target:i,resolved:a,onSaved:m}),M=i.kind==="page",ge=M?a?.rawSeoData:void 0,O=k!==void 0?k:ge,be=M?we(O)??void 0:void 0,E=S??be??h??{},F=a?Ce(E,a):null,K=F&&(!M||_e(O))?Fe(F,s):null;let G;e[0]!==s?(G=Ee(s),e[0]=s,e[1]=G):G=e[1];const oe=G;let R,H;e[2]!==r||e[3]!==E||e[4]!==s||e[5]!==i.kind?(R=i.kind==="page"?Pe(r,s)?.seoData??{}:{},H=i.kind==="page"?Ve(R,E):E,e[2]=r,e[3]=E,e[4]=s,e[5]=i.kind,e[6]=R,e[7]=H):(R=e[6],H=e[7]);const ie=H;let V;e[8]!==w||e[9]!==a||e[10]!==g?(V=C=>{if(!a)return;const pe=C;g(pe),w(pe)},e[8]=w,e[9]=a,e[10]=g,e[11]=V):V=e[11];const se=V;let W;e[12]!==g?(W=()=>g(null),e[12]=g,e[13]=W):W=e[13];const le=W;let X;e[14]!==j?(X=()=>j(Me),e[14]=j,e[15]=X):X=e[15];const re=X;let Y;e[16]!==P||e[17]!==f?(Y=()=>{P(),f?.()},e[16]=P,e[17]=f,e[18]=Y):Y=e[18];const ae=Y,z=i.kind==="page"?i.path:"/";let q;e[19]!==z||e[20]!==n||e[21]!==i.kind?(q=i.kind==="page"&&n?He(z,n):n??null,e[19]=z,e[20]=n,e[21]=i.kind,e[22]=q):q=e[22];const ce=q;let J;e[23]!==a||e[24]!==l||e[25]!==i.kind?(J=i.kind==="site"?l("sectionsEditor.seoEditor.noSiteSeoBlock"):l(a?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[23]=a,e[24]=l,e[25]=i.kind,e[26]=J):J=e[26];const ne=J,Q=M&&a,me=i.kind==="site"&&a&&K;let D;e[27]!==ae||e[28]!==l||e[29]!==i.kind||e[30]!==i.pageName?(D=i.kind==="page"?o.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[o.jsx("button",{type:"button",onClick:ae,title:i.pageName,className:"min-w-0 truncate rounded-[var(--studio-control-radius,var(--radius-md))] px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:i.pageName}),o.jsx(je,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):o.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[o.jsx(fe,{size:16,className:"shrink-0 text-muted-foreground"}),o.jsx("span",{className:"text-sm font-medium",children:l("sectionsEditor.seoEditor.defaultSeoLabel")}),o.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",l("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[27]=ae,e[28]=l,e[29]=i.kind,e[30]=i.pageName,e[31]=D):D=e[31];let $;e[32]!==te?($=te&&o.jsx(ke,{className:"size-3.5 text-muted-foreground"}),e[32]=te,e[33]=$):$=e[33];let I;e[34]!==p||e[35]!==l||e[36]!==i.kind?(I=i.kind==="page"&&p&&o.jsxs(Se,{type:"button",variant:"outline",size:"sm",onClick:p,children:[o.jsx(fe,{size:14}),l("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[34]=p,e[35]=l,e[36]=i.kind,e[37]=I):I=e[37];let L;e[38]!==$||e[39]!==I?(L=o.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[$,I]}),e[38]=$,e[39]=I,e[40]=L):L=e[40];let U;e[41]!==L||e[42]!==D?(U=o.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[D,L]}),e[41]=L,e[42]=D,e[43]=U):U=e[43];let B;e[44]!==F||e[45]!==re||e[46]!==le||e[47]!==oe||e[48]!==O||e[49]!==E||e[50]!==ne||e[51]!==b||e[52]!==se||e[53]!==z||e[54]!==_||e[55]!==w||e[56]!==ie||e[57]!==ce||e[58]!==a||e[59]!==K||e[60]!==g||e[61]!==N||e[62]!==Q||e[63]!==me||e[64]!==R||e[65]!==l?(B=!a||!Q&&!me?o.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ne}):o.jsxs("div",{className:"flex min-h-0 flex-1",children:[o.jsx(ue,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-5 py-4",children:Q?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:l("sectionsEditor.seoEditor.emptyFieldsHint")}),o.jsx(Ke,{rawSeo:O,innerSeo:E,defaultResolveType:oe,seoSchema:K,activeResolveType:F,seoTypeOptions:a.seoTypeOptions,formResetKey:b,siteDefaultSeo:R,onPersistRaw:C=>{N(C),_(C)},onInnerChange:C=>{g(C),w(C)},onClearForm:le,onBumpFormKey:re})]}):K&&F&&o.jsx(Te,{schema:K,resolveType:F,value:E,formResetKey:b,onChange:se})})}),o.jsx(ue,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"@container px-5 py-4",children:o.jsx(Ae,{seo:ie,url:ce,path:z})})})]}),e[44]=F,e[45]=re,e[46]=le,e[47]=oe,e[48]=O,e[49]=E,e[50]=ne,e[51]=b,e[52]=se,e[53]=z,e[54]=_,e[55]=w,e[56]=ie,e[57]=ce,e[58]=a,e[59]=K,e[60]=g,e[61]=N,e[62]=Q,e[63]=me,e[64]=R,e[65]=l,e[66]=B):B=e[66];let Z;return e[67]!==U||e[68]!==B?(Z=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[U,B]}),e[67]=U,e[68]=B,e[69]=Z):Z=e[69],Z}function Me(d){return d+1}function Ge(d){return d+1}function He(d,e){try{return new URL(d,e).href}catch{return e}}function Ve(d,e){const t=e.__resolveType,c=d.__resolveType;if(typeof t=="string"&&typeof c=="string"&&t!==c)return{...e};const v={...d};for(const[r,s]of Object.entries(e))r!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(v[r]=s));return v}export{ni as SeoEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as D,e as E}from"./repository-binding-c-pt63EX.js";import{S as R}from"./task-board-jWDOqP6T.js";const S=4,b="TASK";function v(e){return e.replace(/[^a-zA-Z]/g,"").toUpperCase().slice(0,S)||b}function w(e,t){return t==null?null:`${v(e)}-${String(t).padStart(2,"0")}`}const M=/^(?:[a-z]{1,8}-)?0*(\d+)$/i;function y(e){const t=M.exec(e.trim())?.[1];return t===void 0?null:Number(t)}const j="__no_repo__";function i(e){return(e??"").trim().toLowerCase()}function P(e,t){const r=(e.created_at??"").localeCompare(t.created_at??"");return r!==0?r:e.id.localeCompare(t.id)}function C(e){return e.projects.length===1?e.projects[0]?.title??e.repo??e.id:e.repo??e.id}function G(e,t=[]){const r=new Map,n=new Map,s=[],a=o=>{const u=i(o),c=r.get(u);if(c)return c;const l={id:u,kind:"repo",repo:o.trim(),title:o.trim(),projects:[]};return r.set(u,l),l};for(const o of e){const u=D(o);if(u){const l=a(u);l.projects.push(o),n.set(o.id,l);continue}const c={id:o.id,kind:"project",repo:null,title:o.title,projects:[o]};s.push(c),n.set(o.id,c)}for(const o of t){const u=(o??"").trim();u&&!n.has(u)&&a(u)}for(const o of r.values())o.projects.sort(P),o.title=C(o);const p=[...r.values()].filter(o=>o.projects.length>0),T=[...r.values()].filter(o=>o.projects.length===0),f=(o,u)=>o.title.localeCompare(u.title),g=[...[...p,...s].sort(f),...T.sort(f)];return{entries:g,byId:new Map(g.map(o=>[o.id,o])),byRepo:r,byProject:n}}function d(e,t){for(const s of e.threads??[]){const a=s.virtualMcpId?t.byProject.get(s.virtualMcpId):void 0;if(a)return a}const r=t.byProject.get((e.repo??"").trim());if(r)return r;const n=i(e.repo);return(n?t.byRepo.get(n):void 0)??null}function m(e,t){const r=d(e,t);if(!r)return[];if(r.projects.length<=1)return r.projects;for(const s of e.threads??[]){const a=s.virtualMcpId?r.projects.find(p=>p.id===s.virtualMcpId):void 0;if(a)return[a]}const n=r.projects.find(s=>s.id===e.repo?.trim());return n?[n]:r.projects}function Y(e,t,r){return e.filter(n=>m(n,t).some(s=>s.id===r))}function z(e,t){const r=m(e,t);return r.length===1?r[0]??null:null}function h(e,t){return t.byId.get(e)??t.byRepo.get(i(e))??t.byProject.get(e)}function _(e,t,r){if(t===null)return!0;if(t===j)return d(e,r)===null;const n=h(t,r);return n?n.repo&&i(e.repo)===i(n.repo)?!0:d(e,r)===n:t.includes("/")?i(e.repo)===i(t):!0}function X(e,t){return e===null?!1:e===j?!0:!!h(e,t)||e.includes("/")}function q(e,t,r){return t===null?null:_(e,t,r)?t:null}function H(e){return e.entries.filter(t=>t.repo!==null&&(t.projects.length===0||t.projects.some(r=>E(r).status!=="detached")))}const L="__unassigned__",J={assignee:null,priority:null,due:null,tags:[],project:null,search:""},A=864e5;function I(e,t){const r=new Date(e),n=new Date(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()&&r.getDate()===n.getDate()}function k(e,t){const r=e.trim();return r===""?!1:t!=null&&y(r)===t}function N(e,t){return e.assigneeId===t?!0:e.assigneeId===R&&e.assignedBy===t}function W(e,t,r){const n=t.search.trim().toLowerCase();if(n!==""&&!`${e.title} ${e.description??""}`.toLowerCase().includes(n)&&!k(n,e.keySeq))return!1;if(t.assignee!==null){if(t.assignee===L){if(e.assigneeId!==null)return!1}else if(!N(e,t.assignee))return!1}if(t.priority!==null&&e.priority!==t.priority)return!1;if(t.due!==null)if(t.due==="none"){if(e.dueDate)return!1}else{if(!e.dueDate)return!1;const s=new Date(e.dueDate).getTime(),a=Date.now();if(t.due==="overdue"&&s>=a||t.due==="today"&&!I(s,a)||t.due==="week"&&(s<a||s>a+7*A))return!1}if(t.tags.length>0){const s=e.tags.map(a=>a.id);if(!t.tags.some(a=>s.includes(a)))return!1}return!!_(e,t.project,r)}const F={overdue:"taskBoard.taskFilters.dueDateFilterOverdue",today:"taskBoard.taskFilters.dueDateFilterDueToday",week:"taskBoard.taskFilters.dueDateFilterDueThisWeek",none:"taskBoard.taskFilters.dueDateFilterNoDueDate"},Z=Object.keys(F);function Q(e){return F[e]}function $(e,t){return w(e,t.keySeq)??t.id}function V(e,t,r){const n=encodeURIComponent(e),s=encodeURIComponent($(e,t));return r?`/${n}/projects/${encodeURIComponent(r)}/tasks/${s}`:`/${n}/tasks/${s}`}function x(e,t){const r=t?.trim();if(r)return e.find(n=>k(r,n.keySeq))??e.find(n=>n.id===r)}const K=/^board_[\w-]+$/,B=64;function ee(e){const t=e.trim();return t.length>B?null:y(t)!==null||K.test(t)?t:null}export{Z as D,J as E,j as N,L as U,$ as a,G as b,z as c,Y as d,d as e,h as f,V as g,X as h,Q as i,W as j,x as k,q as l,ee as m,m as p,H as s,w as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as l,X as n,j as r,K as f}from"./index-ChVmLdHW.js";import{C as d}from"./index-NzXgSYlC.js";import{T as u}from"./index-Bw3vJovA.js";import{F as x}from"./feature-gate-Dy49RHsY.js";import{m as h,P as j}from"./mock-board-BVxIfeR9.js";import"./use-mobile-NUesfqlY.js";import"./thread-button-CyealSYx.js";import"./agent-icon-CIGL1pZs.js";import"./AlertCircle-Cnt3s3Qv.js";import"./Tool01-BQ6YeSBp.js";import"./ArrowUp-BlzOYA31.js";import"./ArrowLeft-CVapKJeO.js";import"./LinkBroken01-BkNFLcBO.js";import"./ShoppingBag01-D_1-HSzF.js";import"./ZoomOut-1hnYerz5.js";import"./Building02-DEQgvDUF.js";import"./CheckCircle-BWPfjhqr.js";import"./Check-CzSx-ydY.js";import"./ChevronUp-rUh9iEAD.js";import"./UserSquare-Cx5Xiw2A.js";import"./Copy01-C2Yrgrxb.js";import"./CreditCard01-hJClrSeg.js";import"./DotsVertical-3xNyBi9X.js";import"./Image01-BB-fQuF8.js";import"./Palette-vvvH2B7g.js";import"./XClose-BUXY9lDw.js";import"./Key01-DcjI-nGA.js";import"./Link01-BRPPP5SV.js";import"./LinkExternal01-DGnJ7QLB.js";import"./Monitor01-CwkGnynm.js";import"./Sun-D8jVF5Xg.js";import"./Plus-IBFVYt16.js";import"./SearchMd-ma2pJckE.js";import"./Trash01-CFIg7T-4.js";import"./Upload01-DR9ASh0y.js";import"./User01-B1tXJtqS.js";import"./Users01-Dnx31YPK.js";import"./X-CgBe-4Jc.js";import"./use-chat-layout-state-QjPc9oo9.js";import"./use-file-configs-5_tcNCEF.js";import"./use-organization-settings-DOzB1VOw.js";import"./schema-D71rjoG0.js";import"./task-board-jWDOqP6T.js";import"./site-slug-DebpOoQq.js";import"./thread-route-BJfF-e-7.js";import"./use-panel-navigate-sve-S3VW.js";import"./use-project-scope-DiTyFpcQ.js";import"./repository-binding-c-pt63EX.js";import"./use-mcp-client-Q4rBo7vM.js";import"./auth-CbP-I67u.js";import"./thread-intent-2EYthzbr.js";import"./backoff-8mStPHYB.js";import"./slugify-CEUa2lfQ.js";import"./sheet-DMTbOlwp.js";import"./tooltip-Cd2NmgKf.js";import"./index-CpaCFTVB.js";import"./toolbar-icon-button-SXWkQtCo.js";import"./shell-layout-CK7wLTUx.js";import"./avatar-B48LJY_f.js";import"./download-app-dialog-DKnC1JBE.js";import"./dialog-7XPFiysQ.js";import"./use-clock-tick-CDj388Wx.js";import"./command-D3dAN0q_.js";import"./index-CmiT1BjZ.js";import"./integration-icon-d1AiAF22.js";import"./project-icon-C7Hu1tJm.js";import"./new-project-dialog-Cy-6meY2.js";import"./input-9ltBphX4.js";import"./label-llKCPsPO.js";import"./repository-import-picker-DRt0VM9d.js";import"./use-navigate-to-agent-D_jqZmcT.js";import"./repository-picker-nqe38njd.js";import"./useInfiniteQuery-CwfMdk7l.js";import"./infiniteQueryObserver-D1DafD0M.js";import"./collection-search-D8CVrsVV.js";import"./use-debounced-value-QxJhT0l9.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-CIIRb74R.js";import"./autosend-DCU1n5eC.js";import"./use-org-sso-CMHVPcMz.js";import"./resizable-CfLbGzYc.js";import"./icon-button-mN70eAbU.js";import"./rich-text-link-control-VXQ4aFnS.js";import"./use-task-board-analytics-Ci_fmCxC.js";import"./combobox-DhYfa0RQ.js";import"./popover-CqhYMlVn.js";import"./index-DZa7kB0Z.js";import"./gateway-client-3IqhjEcP.js";import"./form-Bq3zfSIW.js";import"./utils-CVEq3hMx.js";import"./org-file-open-context-GQ31bTUS.js";import"./suggestion-BsbxdlrF.js";import"./column-rules-CX7nbnH9.js";import"./badge-CbK6PWVy.js";import"./switch-BYw3Xugd.js";import"./textarea-BeITBKxj.js";import"./use-org-fs-BbRMsy5S.js";import"./get-initials-D-f_fDFw.js";import"./search-toggle-DJ_XCJbV.js";import"./config-ZWQ8i__D.js";import"./use-task-board-events-CWmA4Ntk.js";import"./use-decopilot-events-e6tJ215a.js";import"./use-members-Up_i1D-k.js";import"./use-org-auth-client-BV6ZBK4X.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-tags-DkfNupSg.js";import"./task-route-B3N_Er49.js";import"./calendar-BLnb7Mll.js";import"./alert-DrR2x4bd.js";import"./collapsible-BbONBSMG.js";import"./use-copy-DDBNqL1l.js";import"./markdown-Dmr3MD7N.js";import"./location-DPIrGNp7.js";import"./index-BVoDvJqr.js";import"./index-BqteJsv4.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-connection-C-VZ8w9P.js";import"./github-repo-scope-ByTYKy_L.js";import"./thread-sheet-body-BT9_vo3C.js";import"./useSuspenseInfiniteQuery-CmT1utOV.js";import"./pair-W1JkklHY.js";import"./usage-stats-CPgORe2K.js";import"./chat-context-Dz_Vgbbo.js";import"./use-ai-providers-DRajJwjA.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BQm3KRIJ.js";import"./types-Yj0uB20y.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./use-mcp-prompts-BUsT36pj.js";import"./use-thread-outputs-B2TafAgP.js";import"./file-type-icon-CLaHXnTs.js";import"./use-infinite-scroll-3EQsEpEW.js";import"./task-status-B-SX0lAT.js";import"./use-open-billing-url-XbJkJRvN.js";import"./chat-draft-BEcLQYcH.js";import"./separator-Dv_2rMb4.js";import"./feature-paywall-Cq3ulvvn.js";import"./plan-ladder-BcnPG8kD.js";function a(){const t=l.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:r.jsx(u,{})}),t[0]=o):o=t[0],o}function Vo(){const t=l.c(8),{locator:o}=n();let m;t[0]!==o?(m=c=>c.setQueryData(f.taskBoardItems(o),h()),t[0]=o,t[1]=m):m=t[1];let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p=r.jsx(a,{}),t[2]=p):p=t[2];let i;t[3]!==m?(i=r.jsx(j,{seed:m,children:p}),t[3]=m,t[4]=i):i=t[4];let e;t[5]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(a,{}),t[5]=e):e=t[5];let s;return t[6]!==i?(s=r.jsx(d.Content,{children:r.jsx(x,{feature:"kanban",backdrop:i,children:e})}),t[6]=i,t[7]=s):s=t[7],s}export{Vo as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./use-organization-settings-DOzB1VOw.js";function e(){return o("new_blocks_editor")}export{e as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-D1DafD0M.js";import{df as i}from"./index-ChVmLdHW.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-D1DafD0M.js";import{df as u,dp as n}from"./index-ChVmLdHW.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as K,b as X,r as Z,j as n,l as rt,B as tt,ak as ut}from"./index-ChVmLdHW.js";import{z as ht,a0 as at,D as xt}from"./agent-icon-CIGL1pZs.js";import{L as gt}from"./label-llKCPsPO.js";import{S as lt}from"./scroll-area-C1A8PvHb.js";import{S as bt}from"./switch-BYw3Xugd.js";import{T as vt,b as yt,a as jt}from"./tooltip-Cd2NmgKf.js";import{V as Tt}from"./view-mode-toggle-CvV4AEos.js";import{a7 as ct,a8 as mt,a9 as Nt,aa as _t,ab as kt,ac as U,ad as wt}from"./agent-site-editor-content-Bb1ejRxz.js";import"./AlertCircle-Cnt3s3Qv.js";import"./Tool01-BQ6YeSBp.js";import"./ArrowUp-BlzOYA31.js";import"./ArrowLeft-CVapKJeO.js";import"./LinkBroken01-BkNFLcBO.js";import"./ShoppingBag01-D_1-HSzF.js";import"./ZoomOut-1hnYerz5.js";import"./Building02-DEQgvDUF.js";import"./CheckCircle-BWPfjhqr.js";import"./Check-CzSx-ydY.js";import"./ChevronUp-rUh9iEAD.js";import"./UserSquare-Cx5Xiw2A.js";import"./Copy01-C2Yrgrxb.js";import"./CreditCard01-hJClrSeg.js";import"./DotsVertical-3xNyBi9X.js";import"./Image01-BB-fQuF8.js";import"./Palette-vvvH2B7g.js";import"./XClose-BUXY9lDw.js";import"./Key01-DcjI-nGA.js";import"./Link01-BRPPP5SV.js";import"./LinkExternal01-DGnJ7QLB.js";import"./Monitor01-CwkGnynm.js";import"./Sun-D8jVF5Xg.js";import"./Plus-IBFVYt16.js";import"./SearchMd-ma2pJckE.js";import"./Trash01-CFIg7T-4.js";import"./Upload01-DR9ASh0y.js";import"./User01-B1tXJtqS.js";import"./Users01-Dnx31YPK.js";import"./X-CgBe-4Jc.js";import"./select-6CFL7VEE.js";import"./index-CpaCFTVB.js";import"./agent-view-guard-COCiOJT8.js";import"./use-main-panel-tabs-BtITsfHw.js";import"./use-chat-layout-state-QjPc9oo9.js";import"./use-file-configs-5_tcNCEF.js";import"./use-organization-settings-DOzB1VOw.js";import"./schema-D71rjoG0.js";import"./task-board-jWDOqP6T.js";import"./site-slug-DebpOoQq.js";import"./thread-route-BJfF-e-7.js";import"./use-panel-navigate-sve-S3VW.js";import"./use-project-scope-DiTyFpcQ.js";import"./repository-binding-c-pt63EX.js";import"./use-mcp-client-Q4rBo7vM.js";import"./auth-CbP-I67u.js";import"./thread-intent-2EYthzbr.js";import"./backoff-8mStPHYB.js";import"./slugify-CEUa2lfQ.js";import"./use-connection-C-VZ8w9P.js";import"./use-mcp-tools-BEIQB24m.js";import"./types-Yj0uB20y.js";import"./utils-CVEq3hMx.js";import"./index-IcPh7oEh.js";import"./chat-context-Dz_Vgbbo.js";import"./autosend-DCU1n5eC.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-decopilot-events-e6tJ215a.js";import"./use-ai-providers-DRajJwjA.js";import"./location-DPIrGNp7.js";import"./gateway-client-3IqhjEcP.js";import"./dialog-7XPFiysQ.js";import"./drawer-Bw83CS61.js";import"./collection-search-D8CVrsVV.js";import"./use-mobile-NUesfqlY.js";import"./use-mcp-prompts-BUsT36pj.js";import"./index-DZa7kB0Z.js";import"./form-Bq3zfSIW.js";import"./input-9ltBphX4.js";import"./org-file-open-context-GQ31bTUS.js";import"./input-C2Q29OSf.js";import"./shell-layout-CK7wLTUx.js";import"./avatar-B48LJY_f.js";import"./download-app-dialog-DKnC1JBE.js";import"./use-clock-tick-CDj388Wx.js";import"./command-D3dAN0q_.js";import"./index-CmiT1BjZ.js";import"./integration-icon-d1AiAF22.js";import"./project-icon-C7Hu1tJm.js";import"./new-project-dialog-Cy-6meY2.js";import"./repository-import-picker-DRt0VM9d.js";import"./use-navigate-to-agent-D_jqZmcT.js";import"./repository-picker-nqe38njd.js";import"./useInfiniteQuery-CwfMdk7l.js";import"./infiniteQueryObserver-D1DafD0M.js";import"./use-debounced-value-QxJhT0l9.js";import"./required-auth-layout-CIIRb74R.js";import"./use-org-sso-CMHVPcMz.js";import"./chat-draft-BEcLQYcH.js";import"./use-session-runtime-bs_s_abt.js";import"./usage-stats-CPgORe2K.js";import"./use-copy-DDBNqL1l.js";import"./markdown-Dmr3MD7N.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-D3R4V_n3.js";import"./use-deco-credits-BOKw4P1d.js";import"./toggle-group-DqXAR_ku.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-XbJkJRvN.js";import"./decopilot--nY6-Nba.js";import"./checkbox-fg5Liawx.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-CqhYMlVn.js";import"./index-CvNCy3PN.js";import"./input-BrPt5MZJ.js";import"./suggestion-BsbxdlrF.js";import"./use-org-fs-BbRMsy5S.js";import"./question-004-sINsf4GQ.js";import"./use-members-Up_i1D-k.js";import"./use-org-auth-client-BV6ZBK4X.js";import"./feature-paywall-Cq3ulvvn.js";import"./plan-ladder-BcnPG8kD.js";import"./add-connection-dialog-Dq2YpbVF.js";import"./extract-connection-data-D2UmPaHV.js";import"./metadata-D72DunRR.js";import"./connection-PwoIxFr1.js";import"./connection-card-Bkip9U2_.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-BeITBKxj.js";import"./connection-form-helpers-RxtiQen1.js";import"./authenticate-and-persist-oauth-DIDvxq7p.js";import"./mcp-oauth-BDj-ENs2.js";import"./collection-tabs-0IVfLZGF.js";import"./badge-CbK6PWVy.js";import"./use-infinite-scroll-3EQsEpEW.js";import"./useSuspenseInfiniteQuery-CmT1utOV.js";import"./use-task-board-events-CWmA4Ntk.js";import"./pair-W1JkklHY.js";import"./collapsible-BbONBSMG.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BQm3KRIJ.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./sheet-DMTbOlwp.js";import"./use-thread-outputs-B2TafAgP.js";import"./file-type-icon-CLaHXnTs.js";import"./sandbox-lifecycle-context-IbJdCFZl.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./resolve-tab-icon-C1JCYc8e.js";import"./use-task-metadata-CXgGKsKs.js";import"./virtual-mcp-C70ka1-l.js";import"./feature-gate-Dy49RHsY.js";import"./alert-dialog-CYGz7ldN.js";import"./runnable-block-editor-CuWmi7BA.js";import"./claim-phase-copy-CFpL9K68.js";import"./utils-BT5oy4Sg.js";import"./monaco-editor-k3tefZgc.js";import"./editor-BGyR0Yu7.js";import"./calendar-BLnb7Mll.js";import"./use-new-blocks-editor-D6-Yba00.js";import"./rich-text-link-control-VXQ4aFnS.js";import"./combobox-DhYfa0RQ.js";import"./search-input-Bt-TRqMJ.js";import"./asset-utils-BsDgokdc.js";import"./sandbox-git-api-DTIjDZTr.js";import"./mustache-DBD5y6DJ.js";import"./empty-state-BqrekKjc.js";import"./empty-state-BPSNY9Ff.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Ct=new Date(-864e13),Mt=new Date(864e13),At=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,$t=/\/flags\/multivariate\.ts$/;function Lt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function Rt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e,o=typeof t=="string",s=typeof r=="string";if(!o&&!s)return null;const i=o?new Date(t):Ct,a=s?new Date(r):Mt;return Number.isNaN(i.getTime())||Number.isNaN(a.getTime())||o&&s&&a.getTime()<=i.getTime()?null:{start:i,end:a,openStart:!o,openEnd:!s}}function pt(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(Et.has(r)){const o=Rt(e);o&&t.push(o);return}if(St.has(r)){const o=e.matchers;if(Array.isArray(o))for(const s of o)pt(s,t)}}}function Dt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!At.test(t))return!1;const r=e.variants;return Array.isArray(r)}function Ot(e){if(typeof e=="string"){const c=e.trim();if(c.length===0)return null;try{const m=new URL(c).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}if(!e||typeof e!="object")return null;const t=e,r=t.config,s=t.desktop?.media,i=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,s?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const c of i)if(typeof c=="string"&&c.trim().length>0)return c.trim();const a=t.__resolveType;if(typeof a=="string"){const l=(a.split("/").pop()??a).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Pt(e){const t=[];for(let r=0;r<e.length;r++){const o=e[r];typeof o=="number"?t.length>0?t[t.length-1]+=`[${o}]`:t.push(`[${o}]`):t.push(o)}return t.join(" · ")}function Q(e,t,r,o,s){if(Dt(e)){const i=e.variants,a=e.__resolveType,c=$t.test(a)?"":Pt(o);i.forEach((l,m)=>{if(!l||typeof l!="object")return;const p=l,h=[];if(pt(p.rule,h),h.length===0)return;const g=Ot(p.value)??(c||r);for(const u of h)s.push({blockKey:t,blockLabel:r,innerPath:c,variantIndex:m,start:u.start,end:u.end,openStart:u.openStart,openEnd:u.openEnd,label:g,flagResolveType:a})});for(let l=0;l<i.length;l++){const m=i[l];m&&typeof m=="object"&&Q(m.value,t,r,[...o,"variants",l,"value"],s)}return}if(Array.isArray(e)){for(let i=0;i<e.length;i++)Q(e[i],t,r,[...o,i],s);return}if(e&&typeof e=="object")for(const[i,a]of Object.entries(e))i!=="__resolveType"&&Q(a,t,r,[...o,i],s)}function It(e){if(!e)return[];const t=[];for(const[r,o]of Object.entries(e))Q(o,r,Lt(r),[],t);return t.sort((r,o)=>r.start.getTime()-o.start.getTime())}function Vt(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((o,s)=>{const i=s*137.508%360;r.set(o,{bg:`oklch(0.62 0.14 ${i})`,text:"white",border:`oklch(0.50 0.14 ${i})`})}),r}const Ht={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function dt(e,t){return e.get(t)??Ht}const ot=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Bt(e,t){const r=e.openStart?t("sandbox.variantCalendar.always"):ot.format(e.start),o=e.openEnd?t("sandbox.variantCalendar.ongoing"):ot.format(e.end);return`${r} → ${o}`}function Ft(e){const t=K.c(18),{variant:r}=e,o=X();let s;t[0]!==r.blockLabel?(s=n.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=s):s=t[1];let i;t[2]!==r.innerPath?(i=r.innerPath&&n.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=i):i=t[3];let a;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(a=r.label!==r.blockLabel&&r.label!==r.innerPath&&n.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=a):a=t[7];let c;t[8]!==o||t[9]!==r?(c=Bt(r,o),t[8]=o,t[9]=r,t[10]=c):c=t[10];let l;t[11]!==c?(l=n.jsx("div",{className:"mt-1",children:c}),t[11]=c,t[12]=l):l=t[12];let m;return t[13]!==s||t[14]!==i||t[15]!==a||t[16]!==l?(m=n.jsx(jt,{children:n.jsxs("div",{className:"text-xs",children:[s,i,a,l]})}),t[13]=s,t[14]=i,t[15]=a,t[16]=l,t[17]=m):m=t[17],m}const nt=16;function zt(e,t){const r=e?"transparent":"#000 0",o=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${r}, #000 ${nt}px, #000 calc(100% - ${nt}px), ${o})`}function ft(e){const t=K.c(26),{variant:r,color:o,style:s,children:i,fadeStart:a,fadeEnd:c}=e,l=a===void 0?!1:a,m=c===void 0?!1:c;let p;t[0]!==m||t[1]!==l?(p=zt(l,m),t[0]=m,t[1]=l,t[2]=p):p=t[2];const h=p;let f;t[3]!==l?(f=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=l,t[4]=f):f=t[4];let g;t[5]!==m?(g=m&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=m,t[6]=g):g=t[6];let u;t[7]!==h?(u=h&&{maskImage:h,WebkitMaskImage:h},t[7]=h,t[8]=u):u=t[8];let x;t[9]!==o.bg||t[10]!==o.text||t[11]!==s||t[12]!==f||t[13]!==g||t[14]!==u?(x={background:o.bg,color:o.text,borderRadius:4,...f,...g,...u,...s},t[9]=o.bg,t[10]=o.text,t[11]=s,t[12]=f,t[13]=g,t[14]=u,t[15]=x):x=t[15];let b;t[16]!==i?(b=n.jsx("span",{className:"truncate",children:i}),t[16]=i,t[17]=b):b=t[17];let E;t[18]!==x||t[19]!==b?(E=n.jsx(vt,{asChild:!0,children:n.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:x,children:b})}),t[18]=x,t[19]=b,t[20]=E):E=t[20];let T;t[21]!==r?(T=n.jsx(Ft,{variant:r}),t[21]=r,t[22]=T):T=t[22];let d;return t[23]!==T||t[24]!==E?(d=n.jsxs(yt,{children:[E,T]}),t[23]=T,t[24]=E,t[25]=d):d=t[25],d}function pn(e){const t=K.c(72),{decofile:r}=e,o=X(),[s,i]=Z.useState("calendar"),[a,c]=Z.useState(Kt),[l,m]=Z.useState(!1);let p,h,f;if(t[0]!==r||t[1]!==l){const I=It(r);p=I.filter(Ut).length,f=l?I:I.filter(Gt),h=Vt(f.map(Wt)),t[0]=r,t[1]=l,t[2]=p,t[3]=h,t[4]=f}else p=t[2],h=t[3],f=t[4];const g=h;let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=()=>c(mt(new Date)),t[5]=u):u=t[5];const x=u;let b;t[6]!==s?(b=()=>c(I=>s==="calendar"?U(I,-1):U(I,-3)),t[6]=s,t[7]=b):b=t[7];const E=b;let T;t[8]!==s?(T=()=>c(I=>s==="calendar"?U(I,1):U(I,3)),t[8]=s,t[9]=T):T=t[9];const d=T;let v;t[10]!==o?(v=o("sandbox.variantCalendar.today"),t[10]=o,t[11]=v):v=t[11];let y;t[12]!==v?(y=n.jsx(tt,{variant:"outline",size:"sm",onClick:x,children:v}),t[12]=v,t[13]=y):y=t[13];let N;t[14]!==o?(N=o("sandbox.variantCalendar.previous"),t[14]=o,t[15]=N):N=t[15];let A;t[16]===Symbol.for("react.memo_cache_sentinel")?(A=n.jsx(ht,{size:16}),t[16]=A):A=t[16];let _;t[17]!==E||t[18]!==N?(_=n.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:E,"aria-label":N,children:A}),t[17]=E,t[18]=N,t[19]=_):_=t[19];let k;t[20]!==o?(k=o("sandbox.variantCalendar.next"),t[20]=o,t[21]=k):k=t[21];let C;t[22]===Symbol.for("react.memo_cache_sentinel")?(C=n.jsx(ut,{size:16}),t[22]=C):C=t[22];let $;t[23]!==d||t[24]!==k?($=n.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:d,"aria-label":k,children:C}),t[23]=d,t[24]=k,t[25]=$):$=t[25];const L=ct[a.getMonth()];let M;t[26]!==a?(M=a.getFullYear(),t[26]=a,t[27]=M):M=t[27];let w;t[28]!==L||t[29]!==M?(w=n.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[L," ",M]}),t[28]=L,t[29]=M,t[30]=w):w=t[30];let j;t[31]!==$||t[32]!==w||t[33]!==y||t[34]!==_?(j=n.jsxs("div",{className:"flex items-center gap-2",children:[y,_,$,w]}),t[31]=$,t[32]=w,t[33]=y,t[34]=_,t[35]=j):j=t[35];let R;t[36]!==p||t[37]!==l||t[38]!==o?(R=p>0&&n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(bt,{id:"show-ongoing",checked:l,onCheckedChange:m}),n.jsx(gt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:o("sandbox.variantCalendar.showOngoing",{count:p})})]}),t[36]=p,t[37]=l,t[38]=o,t[39]=R):R=t[39];let B;t[40]===Symbol.for("react.memo_cache_sentinel")?(B=n.jsx(at,{}),t[40]=B):B=t[40];let V;t[41]!==o?(V=o("sandbox.variantCalendar.calendarMode"),t[41]=o,t[42]=V):V=t[42];let S;t[43]!==V?(S={value:"calendar",icon:B,label:V},t[43]=V,t[44]=S):S=t[44];let F;t[45]===Symbol.for("react.memo_cache_sentinel")?(F=n.jsx(xt,{}),t[45]=F):F=t[45];let D;t[46]!==o?(D=o("sandbox.variantCalendar.timelineMode"),t[46]=o,t[47]=D):D=t[47];let O;t[48]!==D?(O={value:"timeline",icon:F,label:D},t[48]=D,t[49]=O):O=t[49];let P;t[50]!==S||t[51]!==O?(P=[S,O],t[50]=S,t[51]=O,t[52]=P):P=t[52];let H;t[53]!==P||t[54]!==s?(H=n.jsx(Tt,{value:s,onValueChange:i,options:P}),t[53]=P,t[54]=s,t[55]=H):H=t[55];let z;t[56]!==R||t[57]!==H?(z=n.jsxs("div",{className:"flex items-center gap-4",children:[R,H]}),t[56]=R,t[57]=H,t[58]=z):z=t[58];let W;t[59]!==j||t[60]!==z?(W=n.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,z]}),t[59]=j,t[60]=z,t[61]=W):W=t[61];let G;t[62]!==g||t[63]!==a||t[64]!==p||t[65]!==l||t[66]!==f||t[67]!==s?(G=f.length===0?n.jsx(Yt,{hiddenOngoing:l?0:p}):s==="calendar"?n.jsx(Jt,{monthStart:a,variants:f,colorMap:g}):n.jsx(te,{monthStart:a,variants:f,colorMap:g}),t[62]=g,t[63]=a,t[64]=p,t[65]=l,t[66]=f,t[67]=s,t[68]=G):G=t[68];let q;return t[69]!==W||t[70]!==G?(q=n.jsxs("div",{className:"flex h-full w-full flex-col",children:[W,G]}),t[69]=W,t[70]=G,t[71]=q):q=t[71],q}function Wt(e){return e.blockKey}function Gt(e){return!e.openEnd}function Ut(e){return e.openEnd}function Kt(){return mt(new Date)}function Yt(e){const t=K.c(4),{hiddenOngoing:r}=e,o=r===void 0?0:r,s=X();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(at,{size:24,className:"text-muted-foreground/60"}),t[0]=i):i=t[0];let a;return t[1]!==o||t[2]!==s?(a=n.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[i,o>0?n.jsxs(n.Fragment,{children:[n.jsx("div",{children:s("sandbox.variantCalendar.noDatedVariants")}),n.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.hiddenOngoingVariants",{count:o})})]}):n.jsxs(n.Fragment,{children:[n.jsx("div",{children:s("sandbox.variantCalendar.noScheduledVariants")}),n.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.dateMatcherInfo")})]})]}),t[1]=o,t[2]=s,t[3]=a):a=t[3],a}const et=20,it=2,st=28,qt=6;function Jt(e){const t=K.c(17),{monthStart:r,variants:o,colorMap:s}=e;let i,a,c,l,m;if(t[0]!==s||t[1]!==r||t[2]!==o){const f=Nt(r),g=_t(new Date);i=lt,m="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:wt.map(Xt)}),t[8]=c):c=t[8],l=f.map((u,x)=>{const b=kt(u,o),E=b.reduce(Qt,0),T=st+E*(et+it)+8;return n.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[u.map((d,v)=>{const y=d.getMonth()===r.getMonth(),N=d.getTime()===g.getTime();return n.jsx("div",{className:rt("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:n.jsx("span",{className:rt("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:d.getDate()})},v)}),b.map((d,v)=>{const y=dt(s,d.variant.blockKey),N=st+d.lane*(et+it),A=d.leftUnits/7*100,_=d.widthUnits/7*100,k=d.variant.openStart&&x===0,C=d.variant.openEnd&&x===f.length-1;return n.jsxs(ft,{variant:d.variant,color:y,fadeStart:k,fadeEnd:C,style:{top:N,left:`calc(${A}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:qt,height:et},children:[d.variant.blockLabel,d.variant.label!==d.variant.blockLabel&&n.jsxs("span",{className:"opacity-70",children:[" · ",d.variant.label]})]},`${x}-${v}`)})]},x)}),t[0]=s,t[1]=r,t[2]=o,t[3]=i,t[4]=a,t[5]=c,t[6]=l,t[7]=m}else i=t[3],a=t[4],c=t[5],l=t[6],m=t[7];let p;t[9]!==a||t[10]!==c||t[11]!==l?(p=n.jsxs("div",{className:a,children:[c,l]}),t[9]=a,t[10]=c,t[11]=l,t[12]=p):p=t[12];let h;return t[13]!==i||t[14]!==m||t[15]!==p?(h=n.jsx(i,{className:m,children:p}),t[13]=i,t[14]=m,t[15]=p,t[16]=h):h=t[16],h}function Qt(e,t){return Math.max(e,t.lane+1)}function Xt(e){return n.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const J=4,Zt=32,Y=240;function te(e){const t=K.c(23),{monthStart:r,variants:o,colorMap:s}=e,i=r,a=U(r,J),c=new Date,l=new Map;for(const w of o){const j=l.get(w.blockKey)??[];j.push(w),l.set(w.blockKey,j)}const m=Array.from(l.entries()).sort(oe),p=a.getTime()-i.getTime(),h=w=>(Math.max(i.getTime(),Math.min(a.getTime(),w.getTime()))-i.getTime())/p*100;let f;t[0]!==i?(f=(w,j)=>U(i,j),t[0]=i,t[1]=f):f=t[1];const g=Array.from({length:J},f),u=c.getTime()>=i.getTime()&&c.getTime()<=a.getTime()?h(c):null,x=X(),b=lt,E="flex-1 min-h-0",T="min-w-[900px] relative";let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d={width:Y},t[2]=d):d=t[2];let v;t[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),t[3]=x,t[4]=v):v=t[4];let y;t[5]!==v?(y=n.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:d,children:v}),t[5]=v,t[6]=y):y=t[6];let N;t[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},t[7]=N):N=t[7];const A=g.map(re);let _;t[8]!==A?(_=n.jsx("div",{className:"flex-1 grid",style:N,children:A}),t[8]=A,t[9]=_):_=t[9];let k;t[10]!==y||t[11]!==_?(k=n.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),t[10]=y,t[11]=_,t[12]=k):k=t[12];let C;t[13]!==x||t[14]!==u?(C=u!==null&&n.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${Y}px + (100% - ${Y}px) * ${u} / 100)`},children:n.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),t[13]=x,t[14]=u,t[15]=C):C=t[15];const $=m.map(w=>{const[j,R]=w,B=dt(s,j),V=R[0]?.blockLabel??j;return n.jsxs("div",{children:[n.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:n.jsx("div",{className:"px-3 truncate",style:{width:Y},children:V})}),R.map((S,F)=>n.jsxs("div",{className:"flex border-b items-center",style:{height:Zt},children:[n.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[n.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:B.bg}}),n.jsx("span",{className:"truncate text-foreground/80",children:S.label})]}),n.jsxs("div",{className:"relative flex-1 h-full",children:[n.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},children:g.map(ee)}),(()=>{const D=Math.max(S.start.getTime(),i.getTime()),O=Math.min(S.end.getTime(),a.getTime());if(O<=D)return null;const P=h(new Date(D)),H=h(new Date(O))-P;return n.jsx(ft,{variant:S,color:B,fadeStart:S.openStart,fadeEnd:S.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${H}% - 2px)`,height:22},children:S.label})})()]})]},F))]},j)});let L;t[16]!==k||t[17]!==C||t[18]!==$?(L=n.jsxs("div",{className:T,children:[k,C,$]}),t[16]=k,t[17]=C,t[18]=$,t[19]=L):L=t[19];let M;return t[20]!==b||t[21]!==L?(M=n.jsx(b,{className:E,children:L}),t[20]=b,t[21]=L,t[22]=M):M=t[22],M}function ee(e,t){return n.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function re(e,t){return n.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ct[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function oe(e,t){return e[0].localeCompare(t[0])}export{pn as VariantCalendar};
|