decocms 4.400.6 → 4.401.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-CiIF9Yxb.js → AlertCircle-D1gV07Oe.js} +1 -1
- package/dist/client/assets/{AreaChart-CiScmeLa.js → AreaChart-lv4gftWl.js} +1 -1
- package/dist/client/assets/{ArrowLeft-Cw8zoASu.js → ArrowLeft-Bpb3sor7.js} +1 -1
- package/dist/client/assets/{ArrowRight-DXuJxv6z.js → ArrowRight-BFyYdKNd.js} +1 -1
- package/dist/client/assets/{ArrowUp-i7W4PLl8.js → ArrowUp-COLR6KTW.js} +1 -1
- package/dist/client/assets/{CartesianChart-CAtvwpDL.js → CartesianChart-CJGGumCB.js} +1 -1
- package/dist/client/assets/{Check-Cxn5ODoZ.js → Check-C-Vn17o5.js} +1 -1
- package/dist/client/assets/{CheckCircle-Cb0ohXc_.js → CheckCircle-CyKBJceB.js} +1 -1
- package/dist/client/assets/{ChevronUp-B3Rmv2Rm.js → ChevronUp-Dto8qCq2.js} +1 -1
- package/dist/client/assets/{Copy01-CDFMtB2-.js → Copy01-B2GuMU9Q.js} +1 -1
- package/dist/client/assets/{CreditCard01-Bpp7DUE2.js → CreditCard01-CoMSE38C.js} +1 -1
- package/dist/client/assets/{DotsVertical-CsphgVVa.js → DotsVertical-R1tuLE9v.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-Cmgr12jK.js → ErrorBarContext-viPSAyu4.js} +1 -1
- package/dist/client/assets/{Eye-BaKrr1k0.js → Eye-BhTmzCKr.js} +1 -1
- package/dist/client/assets/{Globe04-BjYimuB_.js → Globe04-BLoVxWaz.js} +1 -1
- package/dist/client/assets/{Image01-BokX_Ygh.js → Image01-D02_x5mu.js} +1 -1
- package/dist/client/assets/{Key01--iK_92aj.js → Key01-BuudAO_W.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DbmxTpPW.js → LayoutLeft-CuG2yJZR.js} +1 -1
- package/dist/client/assets/{Line-CkGSu-B6.js → Line-CsKmpStn.js} +1 -1
- package/dist/client/assets/{Link01-CwRVjiFm.js → Link01-CVUd8ZSz.js} +1 -1
- package/dist/client/assets/{LinkExternal01-C1LIoQUC.js → LinkExternal01-Bo5cppL4.js} +1 -1
- package/dist/client/assets/{Monitor01-B-jx6SlO.js → Monitor01-Cj93oSbT.js} +1 -1
- package/dist/client/assets/{Palette-BZ8zPcQQ.js → Palette-CEa7GqA9.js} +1 -1
- package/dist/client/assets/{Plus-BeOCeSsu.js → Plus-Ch1uJBgh.js} +1 -1
- package/dist/client/assets/{SearchMd-CmoIwdFD.js → SearchMd-B_MXZ22A.js} +1 -1
- package/dist/client/assets/{Sector-L9R2CZ3j.js → Sector-CNfzRqjQ.js} +1 -1
- package/dist/client/assets/{Share07-BQpOEypi.js → Share07-D6XgmppM.js} +1 -1
- package/dist/client/assets/{Sun-BwQeSpzv.js → Sun-Dy_rDhHe.js} +1 -1
- package/dist/client/assets/{Tool01-CFPgtTUB.js → Tool01-BoO1X0ZH.js} +1 -1
- package/dist/client/assets/{Trash01-yjy5Djos.js → Trash01-D4CwdSy9.js} +1 -1
- package/dist/client/assets/{Upload01-C3YaZ92x.js → Upload01-hQyKBWZL.js} +1 -1
- package/dist/client/assets/{User01-CxY9-OxA.js → User01-gmEyKvLo.js} +1 -1
- package/dist/client/assets/{UserSquare-D1SexGLq.js → UserSquare-DXqYCX9F.js} +1 -1
- package/dist/client/assets/{Users01-C234jzz1.js → Users01-BBb4-Wbt.js} +1 -1
- package/dist/client/assets/{X-C49OUFcX.js → X-CEngH8b7.js} +1 -1
- package/dist/client/assets/{XClose-CKQjrGZS.js → XClose-Dvx_qcsQ.js} +1 -1
- package/dist/client/assets/{Zap-GTFewWZO.js → Zap-DkS3ccHw.js} +1 -1
- package/dist/client/assets/{ZoomOut-BCbY44Eu.js → ZoomOut-D3wne5dx.js} +1 -1
- package/dist/client/assets/{access-gate-BWJ5-fyg.js → access-gate-D2mi3EXZ.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BRSOSKaa.js → add-connection-dialog-mm-WrmAR.js} +1 -1
- package/dist/client/assets/agent-analytics-IX3kP91L.js +2 -0
- package/dist/client/assets/agent-app-CliE0mM3.js +1 -0
- package/dist/client/assets/agent-assets-BbU_YrcZ.js +1 -0
- package/dist/client/assets/agent-automation-v13d06rk.js +20 -0
- package/dist/client/assets/agent-automations-yzTI8Hoc.js +1 -0
- package/dist/client/assets/agent-connect-sources-CEF4jbih.js +1 -0
- package/dist/client/assets/agent-deck-rRdXFIQU.js +1 -0
- package/dist/client/assets/agent-e2e-SKpj9Qv7.js +1 -0
- package/dist/client/assets/agent-experiments-DPD7MHX9.js +1 -0
- package/dist/client/assets/agent-file-CBIwfV0H.js +1 -0
- package/dist/client/assets/{agent-git-CEsra0W5.js → agent-git-N-SzMySX.js} +2 -2
- package/dist/client/assets/agent-hosting-BnzsqBpZ.js +1 -0
- package/dist/client/assets/{agent-icon-B4H17A-3.js → agent-icon-CjNFk4Bw.js} +1 -1
- package/dist/client/assets/agent-library-file-DHUyHSwO.js +1 -0
- package/dist/client/assets/agent-monitor-BeURekaz.js +1 -0
- package/dist/client/assets/agent-overview-By923wES.js +1 -0
- package/dist/client/assets/agent-settings-DiYW6DT3.js +1 -0
- package/dist/client/assets/{agent-site-editor-DqHsR1Oa.js → agent-site-editor-B7WR4KwZ.js} +13 -13
- package/dist/client/assets/agent-site-editor-code-A3lMFnBk.js +2 -0
- package/dist/client/assets/agent-site-editor-content-CTyxs9-E.js +9 -0
- package/dist/client/assets/agent-site-editor-preview-Db1buU8G.js +518 -0
- package/dist/client/assets/agent-view-Ct7YMMW7.js +1 -0
- package/dist/client/assets/{agent-view-guard-AncI1H8B.js → agent-view-guard-BpwecHVM.js} +1 -1
- package/dist/client/assets/agents-list-XIrdiWMz.js +1 -0
- package/dist/client/assets/{ai-providers-C91I1RIi.js → ai-providers-CsYNRATt.js} +2 -2
- package/dist/client/assets/{alert-Vv8Gd72t.js → alert-BYraKSPm.js} +1 -1
- package/dist/client/assets/{alert-dialog-p_yxBHYu.js → alert-dialog-DpzgB-Ls.js} +1 -1
- package/dist/client/assets/{analytics-sections-CJlCPTTn.js → analytics-sections-C2rbPWDv.js} +1 -1
- package/dist/client/assets/api-keys-B9Lt-UrM.js +1 -0
- package/dist/client/assets/api-keys-CzlAuC7_.js +1 -0
- package/dist/client/assets/app-editor-tD7rn_1-.js +1 -0
- package/dist/client/assets/{asset-utils-brdDGay3.js → asset-utils-4p52RC3c.js} +1 -1
- package/dist/client/assets/{auth-DN1jUXQS.js → auth-Dafjkfpj.js} +1 -1
- package/dist/client/assets/{auth-catchall-B8jjuh3t.js → auth-catchall-DD401U-a.js} +1 -1
- package/dist/client/assets/auth-entry-CEr7Y2wf.js +1 -0
- package/dist/client/assets/{auth-split-layout-9lXDS5uC.js → auth-split-layout-DLRovWby.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BS0KLtdr.js → authenticate-and-persist-oauth-DIl2N_8B.js} +1 -1
- package/dist/client/assets/{automation-list-row-Z-oEG96S.js → automation-list-row-ueTfZfDa.js} +1 -1
- package/dist/client/assets/{automation-runs-BfoVhm3K.js → automation-runs-iTxxsepZ.js} +1 -1
- package/dist/client/assets/{automations-BPxNxlY1.js → automations-Cad12Ows.js} +1 -1
- package/dist/client/assets/{autosend-C9lP7MMD.js → autosend-DeYn5nkP.js} +1 -1
- package/dist/client/assets/{avatar-CaSFUaWf.js → avatar-B6HmPhM4.js} +1 -1
- package/dist/client/assets/{badge-DO3CQ_LV.js → badge-4kURMy-V.js} +1 -1
- package/dist/client/assets/block-document-CgGOvOyl.js +3 -0
- package/dist/client/assets/{blocks-preview-workspace-context-Bsh7P3Oa.js → blocks-preview-workspace-context-Bm8P7H4k.js} +1 -1
- package/dist/client/assets/{buckets-DAqePqsj.js → buckets-CK1WY8Rz.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DKmCIRM5.js → build-improve-prompt-doc-BYdufdhy.js} +1 -1
- package/dist/client/assets/{calendar-v3rFo_Cq.js → calendar-CZsGTekl.js} +1 -1
- package/dist/client/assets/{capability-load-error-nzBIi4Tr.js → capability-load-error-CaE4aliY.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BMiVfW6D.js → cards-DaNm0Rmg.js} +3 -3
- package/dist/client/assets/category-editor-CyFQk1RV.js +1 -0
- package/dist/client/assets/{chart-CXdIvQqa.js → chart-_YADtzsN.js} +1 -1
- package/dist/client/assets/{chat-context-CypzFnUJ.js → chat-context-v9O7Tar9.js} +5 -5
- package/dist/client/assets/{chat-draft-bJa35Dyv.js → chat-draft-BSL5UQWs.js} +1 -1
- package/dist/client/assets/{checkbox-RuVP2KAD.js → checkbox-BMxilLAm.js} +1 -1
- package/dist/client/assets/{choose-editor-B6bnAbTO.js → choose-editor-TgQWBIvA.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-IBG3Spfs.js → claim-phase-copy-DHsomph6.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Gnusnqeq.js → cli-auth-success-Bsu7TVxL.js} +1 -1
- package/dist/client/assets/{client-icons-DeH3wN29.js → client-icons-PiLBRjl7.js} +1 -1
- package/dist/client/assets/{collapsible-Bx8hZ5vv.js → collapsible-bc19817o.js} +1 -1
- package/dist/client/assets/collection-detail-DpwCwzTH.js +1 -0
- package/dist/client/assets/{collection-display-button-B4JQi_wC.js → collection-display-button-BBRywDRf.js} +1 -1
- package/dist/client/assets/{collection-search-CPwy4oTQ.js → collection-search-kj64tBFw.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DzLC9Cad.js → collection-table-wrapper-D2tmoW8T.js} +1 -1
- package/dist/client/assets/collection-tabs-DCLfzEOA.js +1 -0
- package/dist/client/assets/{combobox-bXWHxi5l.js → combobox-DlQnH8_N.js} +1 -1
- package/dist/client/assets/command-vKgGCoFF.js +1 -0
- package/dist/client/assets/{companion-mcps-section-BiiIWMdJ.js → companion-mcps-section-Dpcawwvl.js} +1 -1
- package/dist/client/assets/connect-Dick3000.js +8 -0
- package/dist/client/assets/{connect-layout-C5m144rF.js → connect-layout-BfLs3zCI.js} +1 -1
- package/dist/client/assets/{connection-C1Cmv_sz.js → connection-CTAV5crm.js} +1 -1
- package/dist/client/assets/{connection-card-lUin0zXZ.js → connection-card-DXWUKoxP.js} +1 -1
- package/dist/client/assets/connection-detail-BsIDB4zB.js +1 -0
- package/dist/client/assets/{connection-form-helpers-DiXUvzY1.js → connection-form-helpers-BrejHCrx.js} +1 -1
- package/dist/client/assets/connections-dBKfZKZY.js +1 -0
- package/dist/client/assets/{context-lYPc9MR3.js → context-VbsY_yj4.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CVGvbMrB.js → create-organization-dialog-BCpMYw7e.js} +1 -1
- package/dist/client/assets/{decofile-api-D2rDGWIR.js → decofile-api-5Nr0-h_v.js} +1 -1
- package/dist/client/assets/{decopilot-DZa7cUdc.js → decopilot-DlmPNMn_.js} +2 -2
- package/dist/client/assets/dialog-CEiE0rPQ.js +1 -0
- package/dist/client/assets/discover-BvxkrONV.js +1 -0
- package/dist/client/assets/{domain-settings-BoCWiWyd.js → domain-settings-D1tynvCC.js} +1 -1
- package/dist/client/assets/{download-app-dialog-B8fu6N4W.js → download-app-dialog-fmWolHKD.js} +1 -1
- package/dist/client/assets/{drawer-Dj7i5SNu.js → drawer-mNZA6mOf.js} +1 -1
- package/dist/client/assets/{editor-CStKuO5E.js → editor-BGAJHie_.js} +1 -1
- package/dist/client/assets/{empty-state-DuOhKQcg.js → empty-state-BJxP56xq.js} +1 -1
- package/dist/client/assets/{empty-state-C8J78MMg.js → empty-state-BgjUu2bT.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BN6Gn7S7.js → extract-connection-data-erEsLv_0.js} +1 -1
- package/dist/client/assets/{feature-gate-BYtexfTr.js → feature-gate-BdRUy7K_.js} +1 -1
- package/dist/client/assets/{feature-paywall-Do9-TIse.js → feature-paywall-Tj9HTPlX.js} +1 -1
- package/dist/client/assets/{file-explorer-sM87NUct.js → file-explorer-0KdYuesc.js} +2 -2
- package/dist/client/assets/{file-preview-Cctwbzua.js → file-preview-i5I4Vmk2.js} +1 -1
- package/dist/client/assets/file-share-button-FS8XJyOj.js +3 -0
- package/dist/client/assets/{file-type-icon-C--_TBMw.js → file-type-icon-Cv10yXI0.js} +1 -1
- package/dist/client/assets/{folder-icon-Be-ry1Lo.js → folder-icon-DJuQAXN-.js} +1 -1
- package/dist/client/assets/{form-msoIoPH9.js → form-CCT2OtgN.js} +1 -1
- package/dist/client/assets/{gateway-client-B7EtyAUZ.js → gateway-client-hbsOo-al.js} +1 -1
- package/dist/client/assets/{general-B5uAiOFe.js → general-B_HDEt1Q.js} +1 -1
- package/dist/client/assets/{github-icon-Czf3JIe0.js → github-icon-BpCOzzV8.js} +1 -1
- package/dist/client/assets/home-CMRSzFNz.js +1 -0
- package/dist/client/assets/{hooks-BunFzIMc.js → hooks-CcmbiBeQ.js} +4 -4
- package/dist/client/assets/{icon-button-TBoaqswf.js → icon-button-B8KzCtPE.js} +1 -1
- package/dist/client/assets/index-BeJdXzSv.css +1 -0
- package/dist/client/assets/{index-C4bcGTWO.js → index-BpvXUNGE.js} +27 -27
- package/dist/client/assets/index-BsLVRPrU.js +26 -0
- package/dist/client/assets/{index-Bv9cknRX.js → index-CDe2yrwT.js} +1 -1
- package/dist/client/assets/index-CGxhGPsv.js +5 -0
- package/dist/client/assets/{index-DU8D4REs.js → index-CKZ6XrRd.js} +1 -1
- package/dist/client/assets/{index-B4lO5kiB.js → index-CWksyNR9.js} +1 -1
- package/dist/client/assets/{index-BO3WDGm0.js → index-ClooW3Im.js} +1 -1
- package/dist/client/assets/{index-DNOKSPYL.js → index-DVgj8U7g.js} +1 -1
- package/dist/client/assets/index-D_lD_4br.js +1 -0
- package/dist/client/assets/{index-B-RfjkQs.js → index-De5sr9zh.js} +44 -44
- package/dist/client/assets/{index-bU1o14-j.js → index-Kwx27vNK.js} +1 -1
- package/dist/client/assets/index-bMw4G7-h.js +1 -0
- package/dist/client/assets/{index-CUoS9PHq.js → index-gldwodyc.js} +1 -1
- package/dist/client/assets/{index-haAT4fp-.js → index-ldS2WUeM.js} +1 -1
- package/dist/client/assets/index-redirect-CfY3ykU_.js +1 -0
- package/dist/client/assets/{infiniteQueryObserver-CFFZE0G7.js → infiniteQueryObserver-CwgE9ndj.js} +1 -1
- package/dist/client/assets/{infra-billing-CI3pPi6s.js → infra-billing-TzlPUT1_.js} +1 -1
- package/dist/client/assets/{input-DgwTyBrI.js → input-B-DIEGoS.js} +1 -1
- package/dist/client/assets/{input-CkBBlArz.js → input-CogQggtY.js} +1 -1
- package/dist/client/assets/input-DMbK8B2u.js +8 -0
- package/dist/client/assets/{integration-icon-DuRUAYQY.js → integration-icon-CsYMgjoT.js} +1 -1
- package/dist/client/assets/{label-COhaglCI.js → label-Baft7ecp.js} +1 -1
- package/dist/client/assets/{last-preview-page-C2BRWzsU.js → last-preview-page-DkIjQnDn.js} +1 -1
- package/dist/client/assets/{layout-ezpRdHMe.js → layout-CI3O4gkp.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-7Ua9_FGE.js → legacy-agents-deep-BvWpwcOc.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-CoKgMaf6.js → legacy-main-redirect-CQgWSIje.js} +1 -1
- package/dist/client/assets/library-CAwdTP4-.js +161 -0
- package/dist/client/assets/{login-zL3v_Zks.js → login-DJ5PeYOE.js} +1 -1
- package/dist/client/assets/{markdown-CL_7eJfo.js → markdown-UaZeehfy.js} +2 -2
- package/dist/client/assets/{mcp-app-renderer-BF1xjUD_.js → mcp-app-renderer-DVXFXjZU.js} +2 -2
- package/dist/client/assets/{mcp-oauth-CYUMx6Lt.js → mcp-oauth-DpJ1IX9I.js} +1 -1
- package/dist/client/assets/members-CXM5jx_X.js +1 -0
- package/dist/client/assets/message-templates-54foej4h.js +1 -0
- package/dist/client/assets/{mini-report-page-D2G_6nvn.js → mini-report-page-B1sFW1ww.js} +1 -1
- package/dist/client/assets/mock-board-BbS_eZEl.js +10 -0
- package/dist/client/assets/{monaco-editor-B-WPLOla.js → monaco-editor-B9FUV1NZ.js} +2 -2
- package/dist/client/assets/{monitoring-stats-row-IwXyXgpg.js → monitoring-stats-row-Cl5_OBZ5.js} +1 -1
- package/dist/client/assets/multi-select-VDMM47xB.js +1 -0
- package/dist/client/assets/{mustache-D5b2aALH.js → mustache-DZ4FV0Nc.js} +1 -1
- package/dist/client/assets/{oauth-callback-XaDe1ZVU.js → oauth-callback-OoZf3jL0.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CG6P6aWc.js → oauth-callback-ai-provider-foDaIFwI.js} +1 -1
- package/dist/client/assets/{onboarding-C0P9leUg.js → onboarding-Dq71FOpN.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-BULTvoQH.js → optimistic-project-sidebar-views-CgB8Gy1s.js} +1 -1
- package/dist/client/assets/org-file-open-context-Mx8jC4-P.js +1 -0
- package/dist/client/assets/{organization-choice-5mEr1aKE.js → organization-choice-ZqNf00EY.js} +1 -1
- package/dist/client/assets/{orgs-3MZWLo-q.js → orgs-B8y0HHqF.js} +1 -1
- package/dist/client/assets/page-seo-form-DPObRKD4.js +1 -0
- package/dist/client/assets/{pair-CSXFDEIQ.js → pair-D39JYx1G.js} +5 -5
- package/dist/client/assets/{plan-ladder-B7xKH1KD.js → plan-ladder-D85oNnSr.js} +1 -1
- package/dist/client/assets/{popover-DFY37Yvw.js → popover-DCaw39mN.js} +1 -1
- package/dist/client/assets/{post-calendar-Jvfo43V-.js → post-calendar-Dpixo2IP.js} +1 -1
- package/dist/client/assets/{post-editor-D0HMXnr-.js → post-editor-BivV74bZ.js} +1 -1
- package/dist/client/assets/{preview-content-DyylZdej.js → preview-content-ziDhpr9V.js} +1 -1
- package/dist/client/assets/{preview-dialog-GxP1iGgN.js → preview-dialog-DHJShsrA.js} +1 -1
- package/dist/client/assets/profile-C9xI3KvS.js +1 -0
- package/dist/client/assets/{project-app-view-C-S_SBUQ.js → project-app-view-CFWAaKq_.js} +1 -1
- package/dist/client/assets/project-feed-D6D6bSHY.js +1 -0
- package/dist/client/assets/{project-icon-CsZAOQy_.js → project-icon-CXM68zVZ.js} +1 -1
- package/dist/client/assets/project-reports-8SYQbI2J.js +1 -0
- package/dist/client/assets/project-tasks-DrEyprGU.js +1 -0
- package/dist/client/assets/{prompts-CvgNBkYO.js → prompts-CVNAEIJB.js} +1 -1
- package/dist/client/assets/record-editor-CKxwz78L.js +1 -0
- package/dist/client/assets/{redirect-editor-D2NLj98m.js → redirect-editor-Dy1UJRrv.js} +1 -1
- package/dist/client/assets/{reports-BCYtzeDa.js → reports-BvZHk8Hk.js} +2 -2
- package/dist/client/assets/reports-DyvsxSR9.js +1 -0
- package/dist/client/assets/{reports-onboarding-BG7_PC6g.js → reports-onboarding-D4Uaui5Y.js} +1 -1
- package/dist/client/assets/reports-tab-CwwTWlIS.js +2 -0
- package/dist/client/assets/{repositories-C5RyL_z1.js → repositories-CqbcdDdH.js} +1 -1
- package/dist/client/assets/{repository-import-picker-ByioO6uG.js → repository-import-picker-BXQhU82J.js} +1 -1
- package/dist/client/assets/{repository-picker-BPuZL7HO.js → repository-picker-D1hSYB_G.js} +1 -1
- package/dist/client/assets/require-capability-Cab5QyjH.js +1 -0
- package/dist/client/assets/{required-auth-layout-Duev8t_N.js → required-auth-layout-scRrBHKS.js} +1 -1
- package/dist/client/assets/{reset-password-JANPJ9Jd.js → reset-password-CDE1iX3h.js} +1 -1
- package/dist/client/assets/{resizable-yTD1tEOl.js → resizable-D2L182YF.js} +1 -1
- package/dist/client/assets/{review-settings-vW0-yRPH.js → review-settings-B98rLFs_.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-BUscMTY0.js → rich-text-link-control-DwRx0-0K.js} +1 -1
- package/dist/client/assets/roles-CZvYgdUZ.js +1 -0
- package/dist/client/assets/route-B9TApoqS.js +1 -0
- package/dist/client/assets/route-N926-QRJ.js +1 -0
- package/dist/client/assets/route-OKy5_TxY.js +1 -0
- package/dist/client/assets/route-page-header-ErgCCo2N.js +1 -0
- package/dist/client/assets/runnable-block-editor-C2YphDcL.js +17 -0
- package/dist/client/assets/{sandbox-lifecycle-context-BZ0OGbvt.js → sandbox-lifecycle-context-o4KKoGrI.js} +2 -2
- package/dist/client/assets/{schema-kN4UiUD7.js → schema-DkZUkArz.js} +1 -1
- package/dist/client/assets/{scroll-area-DtmE_V3W.js → scroll-area-Ca9Mo_QH.js} +1 -1
- package/dist/client/assets/{search-input-5SNth6iW.js → search-input-DRWRYRPs.js} +1 -1
- package/dist/client/assets/{search-toggle-BQLp0m3w.js → search-toggle-B5FB44XX.js} +1 -1
- package/dist/client/assets/{secret-picker-CNRCwGgJ.js → secret-picker-DLap6vTC.js} +1 -1
- package/dist/client/assets/secrets-jZp-bTCf.js +1 -0
- package/dist/client/assets/sections-editor-BFbkxXEt.js +1 -0
- package/dist/client/assets/{select-lkzYgXdD.js → select-BZ6sktb7.js} +1 -1
- package/dist/client/assets/select-model-BIWsu5PV.js +1 -0
- package/dist/client/assets/{seo-editor-C5sUOmWC.js → seo-editor-PDlEaSFK.js} +1 -1
- package/dist/client/assets/{separator-DIB2NY6d.js → separator-D_UVaWw6.js} +1 -1
- package/dist/client/assets/settings-tab-BBHI-Kul.js +5 -0
- package/dist/client/assets/{sheet-B5VBlNbo.js → sheet-Kja83qKC.js} +1 -1
- package/dist/client/assets/shell-layout-ynqF32RZ.js +1 -0
- package/dist/client/assets/{skill-preview-_2hXoPIK.js → skill-preview-BjeMKh94.js} +1 -1
- package/dist/client/assets/skills-BVNUFN8s.js +1 -0
- package/dist/client/assets/{sso-kIq_TNP0.js → sso-CbvzPnGh.js} +1 -1
- package/dist/client/assets/{suggestion-Bm5WiIMl.js → suggestion-DMGPIg87.js} +1 -1
- package/dist/client/assets/{switch-C_Vj5_E0.js → switch-CSgTLkLq.js} +1 -1
- package/dist/client/assets/synced-repos-DkDa4E03.js +1 -0
- package/dist/client/assets/{table-EewUoElk.js → table-BNlBwUw8.js} +1 -1
- package/dist/client/assets/{tabs-Dn00_KeP.js → tabs-DWl7SNDG.js} +1 -1
- package/dist/client/assets/{task-board-B1qWBX1A.js → task-board-C6TTBmRS.js} +1 -1
- package/dist/client/assets/{task-route-D--4JOl_.js → task-route-Bz3woGSP.js} +1 -1
- package/dist/client/assets/{task-status-Nj47Imo6.js → task-status-CnFMIlt_.js} +1 -1
- package/dist/client/assets/taskboard-analytics-DoJw1Xfg.js +1 -0
- package/dist/client/assets/tasks-CIdMsSLJ.js +1 -0
- package/dist/client/assets/{tasks-BKvSOVwi.js → tasks-Cqz8mQiU.js} +2 -2
- package/dist/client/assets/{textarea-BJstaU_4.js → textarea-CufiKBr1.js} +1 -1
- package/dist/client/assets/thread-analytics-CC-_zVgm.js +1 -0
- package/dist/client/assets/thread-button-Ds-0KssI.js +1 -0
- package/dist/client/assets/{thread-intent-Dv_ln6w2.js → thread-intent-rbLXiRX-.js} +1 -1
- package/dist/client/assets/{thread-route-C2QO3TRR.js → thread-route-B3__WRb1.js} +1 -1
- package/dist/client/assets/thread-route-D_-4E_Qa.js +1 -0
- package/dist/client/assets/{thread-sheet-body-a-hPHT_-.js → thread-sheet-body-C6Nvo-gY.js} +1 -1
- package/dist/client/assets/toggle-group-CEb1zCbt.js +1 -0
- package/dist/client/assets/toolbar-icon-button-B7ENG3u2.js +1 -0
- package/dist/client/assets/{tooltip-1YZ9_LEc.js → tooltip-Bdu4_ay-.js} +1 -1
- package/dist/client/assets/{track-BdOLl-rI.js → track-DYcNrkYj.js} +1 -1
- package/dist/client/assets/{types-BcA15it5.js → types-C1lh-7rD.js} +3 -3
- package/dist/client/assets/{usage-stats-BXm3jzMp.js → usage-stats-C8kdutYl.js} +1 -1
- package/dist/client/assets/{use-ai-providers-OZaiJf_i.js → use-ai-providers-DdvmCGxF.js} +1 -1
- package/dist/client/assets/{use-automations-D-L8pJyH.js → use-automations-By-N-e6c.js} +1 -1
- package/dist/client/assets/{use-autosave-WOg9IhGs.js → use-autosave-tkO4DMDZ.js} +1 -1
- package/dist/client/assets/use-connect-companion-CRgCDVPT.js +1 -0
- package/dist/client/assets/{use-connection-B5_J2wP6.js → use-connection-CzhqmkxY.js} +1 -1
- package/dist/client/assets/{use-copy-B6plqh15.js → use-copy-D35bNj5j.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BHGrzRmt.js → use-create-virtual-mcp-DSS6KW-Y.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-giBeaSOM.js → use-date-fns-locale-B65-a3KP.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-B9G4Lz7n.js → use-debounced-autosave-UCDN4Lw3.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CUPne1nm.js → use-debounced-value-CWshbX7F.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BhBg4qYv.js → use-deco-credits-DTu_Qf20.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CrYWYj1F.js → use-decopilot-events-BvKgG5Ws.js} +1 -1
- package/dist/client/assets/{use-delete-connection-XgJ1tVSe.js → use-delete-connection-1XhxmMPF.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DhLAmeuE.js → use-deployment-admin-DMXwbJU8.js} +1 -1
- package/dist/client/assets/{use-entitlements-Bk0dyRQ2.js → use-entitlements-Da1bmf67.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BfzrR4he.js → use-fast-preview-draft-url-C7L3VsQn.js} +1 -1
- package/dist/client/assets/{use-file-configs-Q9mf6jQo.js → use-file-configs-C7xVU8E2.js} +1 -1
- package/dist/client/assets/use-in-settings-icIKIpSR.js +1 -0
- package/dist/client/assets/{use-infinite-scroll-BAK1V_oQ.js → use-infinite-scroll-7-m4dXi3.js} +1 -1
- package/dist/client/assets/{use-join-requests-DbabBnEV.js → use-join-requests-D_x3dmzZ.js} +1 -1
- package/dist/client/assets/use-main-panel-tabs-B5g6e1MJ.js +1 -0
- package/dist/client/assets/{use-mcp-auth-status-DetA28-g.js → use-mcp-auth-status-nDkEwx2c.js} +1 -1
- package/dist/client/assets/{use-mcp-client-6HSoOGyN.js → use-mcp-client-CkjkRUta.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-1aH_UXpe.js → use-mcp-prompts-D2XJcis0.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-yAkOUoVS.js → use-mcp-tools-DZlo67bQ.js} +1 -1
- package/dist/client/assets/{use-members-CNAxK8NG.js → use-members-CdPjttiy.js} +1 -1
- package/dist/client/assets/{use-mobile-BA2OXMES.js → use-mobile-DVMuGaln.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-B7J0geak.js → use-navigate-to-agent-BCcYux8q.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-CdE8qyDV.js → use-open-billing-url-CJn1G7pV.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DJC4lcTZ.js → use-org-auth-client-D8dxsLtj.js} +1 -1
- package/dist/client/assets/{use-org-fs-DxNvtETC.js → use-org-fs-3jzMRDSK.js} +1 -1
- package/dist/client/assets/{use-org-sso-D0y0H-Wd.js → use-org-sso-Bb_2_N0Z.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CTjyx7IB.js → use-organization-roles-ixSaPxG5.js} +1 -1
- package/dist/client/assets/{use-organization-settings-fx1CniIO.js → use-organization-settings-B0mobgxG.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-ZqAXzPy8.js → use-panel-navigate-CjSWJCy4.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-DU2K0Eyd.js → use-project-native-view-presence-_PPun-xm.js} +1 -1
- package/dist/client/assets/{use-project-scope-Hp7aDrht.js → use-project-scope-CJnr8HCi.js} +1 -1
- package/dist/client/assets/{use-releases-BXIf7cF0.js → use-releases-CT-nVxtd.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-D7jrD_HD.js → use-reports-diagnostic-AsJIEIvt.js} +1 -1
- package/dist/client/assets/{use-route-default-main-DGbZPJrO.js → use-route-default-main-CQGz2KW9.js} +1 -1
- package/dist/client/assets/{use-secrets-C-Xp8b4K.js → use-secrets-DgNcVRY9.js} +1 -1
- package/dist/client/assets/use-section-preview-base-mIL7vKdH.js +1 -0
- package/dist/client/assets/{use-session-runtime-BGl1FWUp.js → use-session-runtime-B9eFlXyW.js} +1 -1
- package/dist/client/assets/{use-tags-pwsJJDvy.js → use-tags-BM82Yu0K.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-Dh7V7MPv.js → use-task-board-analytics-D_ruF5p9.js} +1 -1
- package/dist/client/assets/{use-task-metadata-DKjAQSZf.js → use-task-metadata-qZ-qzNT-.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-CusHOOmZ.js → use-thread-analytics-BcEpZDI1.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-8akdlycY.js → use-thread-outputs-CIF4-tq_.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CbHEuH0C.js → use-virtual-mcp-BKP1YfD8.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DhVx-Xnv.js +1 -0
- package/dist/client/assets/{useQueries-B5DxQ3Sp.js → useQueries-CbuhlNe5.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CB90sByh.js +1 -0
- package/dist/client/assets/{users-p9MUZzW1.js → users-CDy-vhRi.js} +1 -1
- package/dist/client/assets/{utils-BkPwCtYS.js → utils-VRidfAJX.js} +1 -1
- package/dist/client/assets/{variant-calendar-CcJNDqFN.js → variant-calendar-C5Yhhu_f.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CexHfhU3.js → variant-matcher-override-NRDTBNQG.js} +1 -1
- package/dist/client/assets/view-mode-toggle-P-VmNhrj.js +1 -0
- package/dist/client/assets/{virtual-mcp-Dd5g9b73.js → virtual-mcp-DXr1jTLu.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-analytics-DvZELmro.js +0 -2
- package/dist/client/assets/agent-app-CR4dhbC3.js +0 -1
- package/dist/client/assets/agent-assets-CAIo2BGp.js +0 -1
- package/dist/client/assets/agent-automation-4_v-jQ62.js +0 -20
- package/dist/client/assets/agent-automations-DideyLR7.js +0 -1
- package/dist/client/assets/agent-connect-sources-C16mG4Vi.js +0 -1
- package/dist/client/assets/agent-deck-B2S-lir7.js +0 -1
- package/dist/client/assets/agent-e2e-CQ-lGjg-.js +0 -1
- package/dist/client/assets/agent-experiments-CXowDnMX.js +0 -1
- package/dist/client/assets/agent-file-DVtUKLrb.js +0 -1
- package/dist/client/assets/agent-hosting-B95vsATF.js +0 -1
- package/dist/client/assets/agent-library-file-c5FcaNLf.js +0 -1
- package/dist/client/assets/agent-monitor-DKyHOvd6.js +0 -1
- package/dist/client/assets/agent-overview-Dq7efx0u.js +0 -1
- package/dist/client/assets/agent-settings-tjDRwuVg.js +0 -1
- package/dist/client/assets/agent-site-editor-code-D1x0TO9d.js +0 -2
- package/dist/client/assets/agent-site-editor-content-C0C8gdKB.js +0 -9
- package/dist/client/assets/agent-site-editor-preview-BPAT7NTN.js +0 -518
- package/dist/client/assets/agent-view-DECRuUKv.js +0 -1
- package/dist/client/assets/agents-list-DdpIsQof.js +0 -1
- package/dist/client/assets/api-keys-CAMHVAF8.js +0 -1
- package/dist/client/assets/api-keys-Ct4yGdka.js +0 -1
- package/dist/client/assets/app-editor-BWuGvl0o.js +0 -1
- package/dist/client/assets/auth-entry-BZ-zlX-A.js +0 -1
- package/dist/client/assets/block-document-BQbcWy3F.js +0 -3
- package/dist/client/assets/breadcrumb-D3KLnh1b.js +0 -1
- package/dist/client/assets/category-editor-CLkY8j6x.js +0 -1
- package/dist/client/assets/collection-detail-Xqlt3OgU.js +0 -1
- package/dist/client/assets/collection-tabs-VZH79ort.js +0 -1
- package/dist/client/assets/command-C0IXiNme.js +0 -1
- package/dist/client/assets/connect-B9RtRyUW.js +0 -8
- package/dist/client/assets/connection-detail-Bgtg-egn.js +0 -1
- package/dist/client/assets/connections-CIFiKTz-.js +0 -1
- package/dist/client/assets/dialog-fTIcTyHb.js +0 -1
- package/dist/client/assets/discover-BZC8PmWN.js +0 -1
- package/dist/client/assets/file-share-button-Dcpl3tTi.js +0 -3
- package/dist/client/assets/home-nqrW03_D.js +0 -1
- package/dist/client/assets/index-B48I-F_s.js +0 -26
- package/dist/client/assets/index-CnM-XjMS.js +0 -1
- package/dist/client/assets/index-CnlnpiW9.js +0 -1
- package/dist/client/assets/index-Cnm8iPpl.js +0 -5
- package/dist/client/assets/index-DQQ8_5-n.css +0 -1
- package/dist/client/assets/index-redirect-lHlkLUpP.js +0 -1
- package/dist/client/assets/input-bCtnK_dS.js +0 -8
- package/dist/client/assets/library-nbbFy0YJ.js +0 -161
- package/dist/client/assets/members-Ci31aIzf.js +0 -1
- package/dist/client/assets/message-templates-Dievwyon.js +0 -1
- package/dist/client/assets/mock-board-MGFiZQqD.js +0 -10
- package/dist/client/assets/multi-select-B5cPO8Zc.js +0 -1
- package/dist/client/assets/org-file-open-context-C6mgZPAr.js +0 -1
- package/dist/client/assets/page-seo-form-BHc2C0F_.js +0 -1
- package/dist/client/assets/profile-Bl7SMbnv.js +0 -1
- package/dist/client/assets/project-feed-C9k9tVu9.js +0 -1
- package/dist/client/assets/project-reports-h9XKnGzZ.js +0 -1
- package/dist/client/assets/project-tasks-CvQsB5FR.js +0 -1
- package/dist/client/assets/record-editor-Dco1ladi.js +0 -1
- package/dist/client/assets/reports-KVVIwKGA.js +0 -1
- package/dist/client/assets/reports-tab-CZyY8SM6.js +0 -2
- package/dist/client/assets/require-capability-BlL45yDc.js +0 -1
- package/dist/client/assets/roles-B-T-wGt2.js +0 -1
- package/dist/client/assets/route-BoE0K809.js +0 -1
- package/dist/client/assets/route-Ciyyz2ig.js +0 -1
- package/dist/client/assets/route-X5r9RmD7.js +0 -1
- package/dist/client/assets/route-page-header-Ck32Z_z1.js +0 -1
- package/dist/client/assets/runnable-block-editor-DXtvF8jt.js +0 -17
- package/dist/client/assets/secrets-BUndq66A.js +0 -1
- package/dist/client/assets/sections-editor-BMGHgar4.js +0 -1
- package/dist/client/assets/select-model-L0RmAR5m.js +0 -1
- package/dist/client/assets/settings-tab-BQA673_Z.js +0 -5
- package/dist/client/assets/shell-layout-t1NP6lxk.js +0 -1
- package/dist/client/assets/sidebar-Bsj1oRm2.js +0 -1
- package/dist/client/assets/skills-D_mDF0TE.js +0 -1
- package/dist/client/assets/synced-repos-wPtrwk-M.js +0 -1
- package/dist/client/assets/taskboard-analytics-DlcZmFmP.js +0 -1
- package/dist/client/assets/tasks-DhBfoBLp.js +0 -1
- package/dist/client/assets/thread-analytics-CJvSEofm.js +0 -1
- package/dist/client/assets/thread-button-Dg0_8ATn.js +0 -1
- package/dist/client/assets/thread-route-BBwMAr4Q.js +0 -1
- package/dist/client/assets/toggle-group-n81OZ_Uu.js +0 -1
- package/dist/client/assets/toolbar-icon-button-G0ZB62BK.js +0 -1
- package/dist/client/assets/use-connect-companion-dh23z2e4.js +0 -1
- package/dist/client/assets/use-in-settings-_C3gW9Az.js +0 -1
- package/dist/client/assets/use-main-panel-tabs-rnsNQmUO.js +0 -1
- package/dist/client/assets/use-section-preview-base-BIeB_qzV.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CEwPAAtp.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CC4BMd5I.js +0 -1
- package/dist/client/assets/view-mode-toggle-CJHrx4Q2.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as v,b as C,j as s,n as w,e_ as F,E as L,r as y,aQ as O,U as B,B as _,a8 as T,t as z}from"./index-B-RfjkQs.js";import{i as A}from"./AlertCircle-CiIF9Yxb.js";import{s as R}from"./Plus-BeOCeSsu.js";import{s as I}from"./User01-CxY9-OxA.js";import{t as q}from"./Users01-C234jzz1.js";import{D as V,b as H,c as Q,d as U,h as G,e as J}from"./dialog-fTIcTyHb.js";import{I as P}from"./input-DgwTyBrI.js";import{L as D}from"./label-COhaglCI.js";import{S as K,b as M,a as W,d as X,c as k}from"./select-lkzYgXdD.js";import{T as Y}from"./textarea-BJstaU_4.js";import{u as Z,a as ee}from"./use-secrets-C-Xp8b4K.js";import{R as te}from"./require-capability-BlL45yDc.js";import"./X-C49OUFcX.js";import"./index-DNOKSPYL.js";import"./Check-Cxn5ODoZ.js";import"./ChevronUp-B3Rmv2Rm.js";import"./access-gate-BWJ5-fyg.js";import"./capability-load-error-nzBIi4Tr.js";function se(t){const e=v.c(6),{error:r}=t,n=C();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(A,{size:16}),e[0]=c):c=e[0];let i;e[1]!==r.message||e[2]!==n?(i=n("settings.secrets.failedToLoadError",{error:r.message}),e[1]=r.message,e[2]=n,e[3]=i):i=e[3];let l;return e[4]!==i?(l=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[c,s.jsx("span",{className:"text-sm font-medium",children:i})]}),e[4]=i,e[5]=l):l=e[5],l}function re(t){const e=v.c(8),{scope:r}=t,n=C(),c=r==="user"?I:q;let i;e[0]!==r||e[1]!==n?(i=n(r==="user"?"settings.secrets.scopePrivate":"settings.secrets.scopeOrganization"),e[0]=r,e[1]=n,e[2]=i):i=e[2];const l=i;let a;e[3]!==c?(a=s.jsx(c,{size:12}),e[3]=c,e[4]=a):a=e[4];let o;return e[5]!==l||e[6]!==a?(o=s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-muted text-muted-foreground text-xs",children:[a,l]}),e[5]=l,e[6]=a,e[7]=o):o=e[7],o}function $(t){const e=v.c(20),{secret:r}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(T,{size:16,className:"text-muted-foreground"})}),e[0]=n):n=e[0];let c;e[1]!==r.name?(c=s.jsx("span",{className:"font-medium text-sm truncate",children:r.name}),e[1]=r.name,e[2]=c):c=e[2];let i;e[3]!==r.scope?(i=s.jsx(re,{scope:r.scope}),e[3]=r.scope,e[4]=i):i=e[4];let l;e[5]!==c||e[6]!==i?(l=s.jsxs("div",{className:"flex items-center gap-2",children:[c,i]}),e[5]=c,e[6]=i,e[7]=l):l=e[7];let a;e[8]!==r.description?(a=r.description?s.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:r.description}):null,e[8]=r.description,e[9]=a):a=e[9];let o;e[10]!==l||e[11]!==a?(o=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[n,s.jsxs("div",{className:"min-w-0",children:[l,a]})]}),e[10]=l,e[11]=a,e[12]=o):o=e[12];let m;e[13]!==r.createdAt?(m=new Date(r.createdAt).toLocaleDateString(),e[13]=r.createdAt,e[14]=m):m=e[14];let d;e[15]!==m?(d=s.jsx("div",{className:"text-xs text-muted-foreground shrink-0",children:m}),e[15]=m,e[16]=d):d=e[16];let u;return e[17]!==o||e[18]!==d?(u=s.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[o,d]}),e[17]=o,e[18]=d,e[19]=u):u=e[19],u}function ne(t){const e=v.c(15),{action:r}=t,n=C();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(T,{size:20,className:"text-muted-foreground"})}),e[0]=c):c=e[0];let i;e[1]!==n?(i=n("settings.secrets.emptyTitle"),e[1]=n,e[2]=i):i=e[2];let l;e[3]!==i?(l=s.jsx("p",{className:"font-medium text-sm",children:i}),e[3]=i,e[4]=l):l=e[4];let a;e[5]!==n?(a=n("settings.secrets.emptyDescription"),e[5]=n,e[6]=a):a=e[6];let o;e[7]!==a?(o=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:a}),e[7]=a,e[8]=o):o=e[8];let m;e[9]!==l||e[10]!==o?(m=s.jsxs("div",{children:[l,o]}),e[9]=l,e[10]=o,e[11]=m):m=e[11];let d;return e[12]!==r||e[13]!==m?(d=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[c,m,r]}),e[12]=r,e[13]=m,e[14]=d):d=e[14],d}function E({open:t,onOpenChange:e}){const r=C(),[n,c]=y.useState("organization"),[i,l]=y.useState(""),[a,o]=y.useState(""),[m,d]=y.useState(""),u=ee();function b(){c("organization"),l(""),o(""),d("")}function g(){b(),e(!1)}async function S(x){if(x.preventDefault(),!(!i.trim()||!a))try{await u.mutateAsync({scope:n,name:i.trim(),value:a,description:m.trim()||void 0}),z.success(r("settings.secrets.secretCreated",{name:i.trim()})),g()}catch(j){z.error(j instanceof Error?j.message:r("settings.secrets.failedToCreateSecret"))}}return s.jsx(V,{open:t,onOpenChange:x=>{x?e(x):g()},children:s.jsxs(H,{className:"sm:max-w-lg",children:[s.jsxs(Q,{children:[s.jsx(U,{children:r("settings.secrets.newSecretTitle")}),s.jsx(G,{children:r("settings.secrets.newSecretDescription")})]}),s.jsxs("form",{onSubmit:S,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(D,{htmlFor:"secret-scope",children:r("settings.secrets.scopeLabel")}),s.jsxs(K,{value:n,onValueChange:x=>c(x),children:[s.jsx(M,{id:"secret-scope",children:s.jsx(W,{})}),s.jsxs(X,{children:[s.jsx(k,{value:"organization",children:r("settings.secrets.scopeOrganizationDescription")}),s.jsx(k,{value:"user",children:r("settings.secrets.scopePrivateDescription")})]})]})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(D,{htmlFor:"secret-name",children:r("settings.secrets.nameLabel")}),s.jsx(P,{id:"secret-name",value:i,onChange:x=>l(x.target.value),placeholder:r("settings.secrets.namePlaceholder"),autoComplete:"off",required:!0}),s.jsx("p",{className:"text-xs text-muted-foreground",children:r("settings.secrets.nameHelp")})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(D,{htmlFor:"secret-value",children:r("settings.secrets.valueLabel")}),s.jsx(P,{id:"secret-value",type:"password",value:a,onChange:x=>o(x.target.value),autoComplete:"new-password",required:!0})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(D,{htmlFor:"secret-description",children:r("settings.secrets.descriptionLabel")}),s.jsx(Y,{id:"secret-description",value:m,onChange:x=>d(x.target.value),rows:2,placeholder:r("settings.secrets.descriptionPlaceholder")})]}),s.jsxs(J,{children:[s.jsx(_,{type:"button",variant:"outline",onClick:g,disabled:u.isPending,children:r("settings.secrets.cancelButton")}),s.jsx(_,{type:"submit",disabled:u.isPending||!i.trim()||!a,children:u.isPending?r("settings.secrets.creatingButton"):r("settings.secrets.createButton")})]})]})]})})}function ie(){const t=v.c(36),e=B(),r=C(),n=Z(),[c,i]=y.useState(!1);let l,a;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>i(!0),a=s.jsx(R,{size:14}),t[0]=l,t[1]=a):(l=t[0],a=t[1]);let o;t[2]!==r?(o=r("settings.secrets.newSecret"),t[2]=r,t[3]=o):o=t[3];let m;t[4]!==o?(m=s.jsx(w.Actions,{children:s.jsxs(_,{size:"sm",onClick:l,children:[a,o]})}),t[4]=o,t[5]=m):m=t[5];const d=m;if(n.length===0){const j=e&&d,N=!e&&d;let h;t[6]!==N?(h=s.jsx(ne,{action:N}),t[6]=N,t[7]=h):h=t[7];let f;t[8]!==c?(f=s.jsx(E,{open:c,onOpenChange:i}),t[8]=c,t[9]=f):f=t[9];let p;return t[10]!==j||t[11]!==h||t[12]!==f?(p=s.jsxs(s.Fragment,{children:[j,h,f]}),t[10]=j,t[11]=h,t[12]=f,t[13]=p):p=t[13],p}let u,b,g;if(t[14]!==d||t[15]!==n||t[16]!==r){const j=n.filter(oe),N=n.filter(ae),h=n.length===1?"settings.secrets.secretsCountSingular":"settings.secrets.secretsCountPlural";let f;t[20]!==n.length||t[21]!==r||t[22]!==h?(f=r(h,{count:n.length}),t[20]=n.length,t[21]=r,t[22]=h,t[23]=f):f=t[23];let p;t[24]!==f?(p=s.jsx("p",{className:"text-sm text-muted-foreground",children:f}),t[24]=f,t[25]=p):p=t[25],t[26]!==d||t[27]!==p?(u=s.jsxs("div",{className:"flex items-center justify-between",children:[p,d]}),t[26]=d,t[27]=p,t[28]=u):u=t[28],b=j.length>0?s.jsxs("section",{className:"rounded-2xl border border-border/60 bg-background p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:r("settings.secrets.sectionOrganization")}),s.jsx("div",{children:j.map(le)})]}):null,g=N.length>0?s.jsxs("section",{className:"rounded-2xl border border-border/60 bg-background p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:r("settings.secrets.sectionPrivate")}),s.jsx("div",{children:N.map(ce)})]}):null,t[14]=d,t[15]=n,t[16]=r,t[17]=u,t[18]=b,t[19]=g}else u=t[17],b=t[18],g=t[19];let S;t[29]!==c?(S=s.jsx(E,{open:c,onOpenChange:i}),t[29]=c,t[30]=S):S=t[30];let x;return t[31]!==u||t[32]!==b||t[33]!==g||t[34]!==S?(x=s.jsxs(s.Fragment,{children:[u,b,g,S]}),t[31]=u,t[32]=b,t[33]=g,t[34]=S,t[35]=x):x=t[35],x}function ce(t){return s.jsx($,{secret:t},t.id)}function le(t){return s.jsx($,{secret:t},t.id)}function ae(t){return t.scope==="user"}function oe(t){return t.scope==="organization"}function de(){const t=v.c(7),e=C();let r;t[0]!==e?(r=e("settings.nav.secrets"),t[0]=e,t[1]=r):r=t[1];let n;t[2]!==r?(n=s.jsx(w.Title,{children:r}),t[2]=r,t[3]=n):n=t[3];let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(L,{fallback:me,children:s.jsx(y.Suspense,{fallback:s.jsx(O,{className:"h-32 w-full"}),children:s.jsx(ie,{})})}),t[4]=c):c=t[4];let i;return t[5]!==n?(i=s.jsx(w,{children:s.jsx(w.Content,{children:s.jsx(w.Container,{children:s.jsxs(F,{children:[n,c]})})})}),t[5]=n,t[6]=i):i=t[6],i}function me(t){const{error:e}=t;return s.jsx(se,{error:e??new Error("Failed to load secrets")})}function ke(){const t=v.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(te,{capability:"secrets:manage",area:"secrets",children:s.jsx(de,{})}),t[0]=e):e=t[0],e}export{ke as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as Jt,b as Yt,U as ps,r as k,l as ne,j as n,aP as po,B as Vt,G as Kt,aK as ho,I as go,H as vo,o as So,h as yo,t as N,K as bo}from"./index-B-RfjkQs.js";import{u as xo}from"./chat-context-CypzFnUJ.js";import{I as na,J as _o,K as jo,L as Eo,N as ko,O as aa,Q as wo,T as Ro,U as Vo,V as To,W as No,X as Dn,Y as Ao,Z as Mo,G as Rt,_ as Ds,$ as Ks,a0 as xt,C as us,y as ds,a1 as Lt,e as Po,f as Co,j as Do,u as Ko,a2 as Kn,a3 as Bo,a4 as Lo,a5 as Fo,a6 as Io,a7 as Oo,p as is,a8 as zo,A as kt,a9 as qt,aa as $o,ab as Ho,ac as tt,ad as Bn,w as Ln,ae as Go,af as As,ag as qo,ah as ls,ai as Fn,aj as In,ak as On,al as Ms,H as bt,am as Ut,an as Uo,ao as Wo,z as Jo,ap as zn,aq as Yo,ar as $n,as as Hn,M as Qo,at as Gn,au as lt,av as Xo,aw as Zo,F as er,ax as tr,d as sr,ay as qn,az as nr,aA as wt,aB as ar,aC as or,aD as rr,aE as Un,aF as Wt,aG as ir,aH as lr,aI as cr,aJ as ur,aK as dr,aL as mr,aM as fr,aN as Ps,aO as pr,aP as hr,aQ as gr,aR as vr,aS as Sr}from"./runnable-block-editor-DXtvF8jt.js";import{d as yr}from"./use-virtual-mcp-CbHEuH0C.js";import{n as br,t as xr}from"./ChevronUp-B3Rmv2Rm.js";import{a1 as oa,E as Bs,ae as _r,r as jr,V as Wn,C as Jn}from"./agent-icon-B4H17A-3.js";import{i as fs}from"./Share07-BQpOEypi.js";import{S as Bt}from"./scroll-area-DtmE_V3W.js";import{c as ct,T as ut,a as dt}from"./tooltip-1YZ9_LEc.js";import{m as Er,u as kr,P as wr}from"./mustache-D5b2aALH.js";import{b as Is,G as Rr,e as Vr,j as Tr,g as Nr,r as cs,O as Yn,H as Ar}from"./claim-phase-copy-IBG3Spfs.js";import{a as Mr}from"./Copy01-CDFMtB2-.js";import{c as ra}from"./UserSquare-D1SexGLq.js";import{e as Qn}from"./Tool01-CFPgtTUB.js";import{s as Xn}from"./Eye-BaKrr1k0.js";import{s as Pr}from"./Plus-BeOCeSsu.js";import{s as Cr}from"./Trash01-yjy5Djos.js";import{i as Ls}from"./Zap-GTFewWZO.js";import{a as Dr,b as Zn,d as Kr,K as Br,P as Lr,u as Fr,C as Ir,s as Or,e as ms,D as zr,c as $r,S as Hr,v as Gr}from"./rich-text-link-control-BUscMTY0.js";import{a as qr,P as ea,b as Ur}from"./page-seo-form-BHc2C0F_.js";import{u as Wr,A as Jr}from"./use-section-preview-base-BIeB_qzV.js";import{b as ta,a as Yr}from"./variant-matcher-override-CexHfhU3.js";import"./use-panel-navigate-ZqAXzPy8.js";import"./thread-route-C2QO3TRR.js";import"./use-project-scope-Hp7aDrht.js";import"./github-repo-BknN0SVI.js";import"./autosend-C9lP7MMD.js";import"./thread-intent-Dv_ln6w2.js";import"./slugify-CEUa2lfQ.js";import"./hooks-BunFzIMc.js";import"./use-mcp-client-6HSoOGyN.js";import"./auth-DN1jUXQS.js";import"./backoff-8mStPHYB.js";import"./task-board-B1qWBX1A.js";import"./schema-kN4UiUD7.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-Bk0dyRQ2.js";import"./use-ai-providers-OZaiJf_i.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-CrYWYj1F.js";import"./use-organization-settings-fx1CniIO.js";import"./use-session-runtime-BGl1FWUp.js";import"./Sun-BwQeSpzv.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-CSXFDEIQ.js";import"./ArrowRight-DXuJxv6z.js";import"./Check-Cxn5ODoZ.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-Bx8hZ5vv.js";import"./use-copy-B6plqh15.js";import"./usage-stats-BXm3jzMp.js";import"./markdown-CL_7eJfo.js";import"./dialog-fTIcTyHb.js";import"./X-C49OUFcX.js";import"./ZoomOut-BCbY44Eu.js";import"./org-file-open-context-C6mgZPAr.js";import"./use-mobile-BA2OXMES.js";import"./shell-layout-t1NP6lxk.js";import"./avatar-CaSFUaWf.js";import"./User01-CxY9-OxA.js";import"./Globe04-BjYimuB_.js";import"./XClose-CKQjrGZS.js";import"./download-app-dialog-B8fu6N4W.js";import"./CheckCircle-Cb0ohXc_.js";import"./Monitor01-B-jx6SlO.js";import"./command-C0IXiNme.js";import"./index-bU1o14-j.js";import"./SearchMd-CmoIwdFD.js";import"./integration-icon-DuRUAYQY.js";import"./project-icon-CsZAOQy_.js";import"./required-auth-layout-Duev8t_N.js";import"./use-org-sso-D0y0H-Wd.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BF1xjUD_.js";import"./types-BcA15it5.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./gateway-client-B7EtyAUZ.js";import"./tool-namespace-DmnQIdtF.js";import"./utils-CVEq3hMx.js";import"./AlertCircle-CiIF9Yxb.js";import"./Image01-BokX_Ygh.js";import"./LinkExternal01-C1LIoQUC.js";import"./sheet-B5VBlNbo.js";import"./use-connection-B5_J2wP6.js";import"./Palette-BZ8zPcQQ.js";import"./use-navigate-to-agent-B7J0geak.js";import"./Link01-CwRVjiFm.js";import"./use-mcp-prompts-1aH_UXpe.js";import"./index-B4lO5kiB.js";import"./form-msoIoPH9.js";import"./label-COhaglCI.js";import"./input-DgwTyBrI.js";import"./use-thread-outputs-8akdlycY.js";import"./file-type-icon-C--_TBMw.js";import"./popover-DFY37Yvw.js";import"./utils-BkPwCtYS.js";import"./monaco-editor-B-WPLOla.js";import"./editor-CStKuO5E.js";import"./calendar-v3rFo_Cq.js";import"./textarea-BJstaU_4.js";import"./select-lkzYgXdD.js";import"./index-DNOKSPYL.js";import"./switch-C_Vj5_E0.js";import"./combobox-bXWHxi5l.js";import"./alert-dialog-p_yxBHYu.js";import"./sandbox-url-D3mC8qhT.js";import"./Upload01-C3YaZ92x.js";import"./DotsVertical-CsphgVVa.js";import"./search-input-5SNth6iW.js";import"./tabs-Dn00_KeP.js";import"./use-debounced-value-CUPne1nm.js";import"./use-file-configs-Q9mf6jQo.js";import"./asset-utils-brdDGay3.js";import"./useInfiniteQuery-CEwPAAtp.js";import"./infiniteQueryObserver-CFFZE0G7.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./toggle-group-n81OZ_Uu.js";import"./decofile-api-D2rDGWIR.js";import"./sandbox-git-api-B1R0585s.js";import"./ArrowUp-i7W4PLl8.js";import"./ArrowLeft-Cw8zoASu.js";import"./CreditCard01-Bpp7DUE2.js";import"./Key01--iK_92aj.js";import"./LayoutLeft-DbmxTpPW.js";import"./Users01-C234jzz1.js";import"./section-preview-url-Csj0_ZDg.js";function Qr(h){return h.schema?.definitions??h.schema?.$defs??{}}function ia(h,e){const c=Qr(e),p=c[btoa(h)];if(!p)return[];const g=[p];if(Array.isArray(p.allOf)){const j=p.allOf.find(E=>typeof E.$ref=="string")?.$ref;if(typeof j=="string"){const E=c[j.replace("#/definitions/","")];E&&g.push(E)}}return g}function Xr(h,e){for(const c of ia(h,e)){const p=typeof c.image=="string"?c.image:void 0;if(p?.includes("{{{"))return p}}function Zr(h,e){if(!e)return;const c=na(h);if(!c)return;const p=Xr(c.resolveType,e);if(!p)return;const g=_o(p,c.data);if(g)return jo(g)}const ei={escape:Eo};function ti(h,e){for(const c of ia(h,e)){const p=typeof c.title=="string"?c.title:void 0;if(p?.includes("{{"))return p}}function si(h,e){if(!e)return;const c=na(h);if(c)try{const p=ti(c.resolveType,e);return p&&Er.render(p,c.data,{},ei).trim()||void 0}catch{return}}function ni(h){const e=Jt.c(13),{icon:c,label:p,className:g}=h;let j;e[0]!==g?(j=ne("size-3.5",g),e[0]=g,e[1]=j):j=e[1];let E;e[2]!==c||e[3]!==j?(E=n.jsx(c,{className:j}),e[2]=c,e[3]=j,e[4]=E):E=e[4];let y;e[5]!==p||e[6]!==E?(y=n.jsx(ut,{asChild:!0,children:n.jsx("span",{role:"img","aria-label":p,className:"shrink-0 cursor-help",children:E})}),e[5]=p,e[6]=E,e[7]=y):y=e[7];let R;e[8]!==p?(R=n.jsx(dt,{className:"max-w-56",children:p}),e[8]=p,e[9]=R):R=e[9];let b;return e[10]!==y||e[11]!==R?(b=n.jsxs(ct,{children:[y,R]}),e[10]=y,e[11]=R,e[12]=b):b=e[12],b}const ai="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 sa(h){return Array.from({length:h},(e,c)=>({id:crypto.randomUUID(),index:c}))}function la(h){return h.map((e,c)=>({...e,index:c}))}function oi(h,e){if(e===h.length)return h;if(e<h.length)return la(h.slice(0,e));const c=Array.from({length:e-h.length},(p,g)=>({id:crypto.randomUUID(),index:h.length+g}));return[...h,...c]}function ca(h){const e=Jt.c(44),{section:c,raw:p,meta:g,decofile:j}=h,E=Yt(),y=ps(),R=c.isSavedBlock===!0,b=c.isMultivariate===!0;let J;e[0]!==g||e[1]!==p?(J=p&&g?Zr(p,g):void 0,e[0]=g,e[1]=p,e[2]=J):J=e[2];const de=J;let De;e[3]!==g||e[4]!==b||e[5]!==p||e[6]!==R?(De=p&&g&&!R&&!b?si(p,g):void 0,e[3]=g,e[4]=b,e[5]=p,e[6]=R,e[7]=De):De=e[7];const Ke=De;let Ve;e[8]!==j||e[9]!==g||e[10]!==p||e[11]!==c?(Ve=No(p,c,j,g),e[8]=j,e[9]=g,e[10]=p,e[11]=c,e[12]=Ve):Ve=e[12];const ae=Ve;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,he=R?fs:b?oa:ra;let $;e[16]!==b||e[17]!==R?($=R?{color:Rr}:b?{color:"oklch(0.65 0.15 160)"}:void 0,e[16]=b,e[17]=R,e[18]=$):$=e[18];const u=$;let O;e[19]!==he||e[20]!==y?(O=y?n.jsxs("span",{className:"relative size-4 shrink-0",children:[n.jsx(he,{className:"absolute inset-0 size-4 text-muted-foreground transition-opacity group-hover:opacity-0 group-has-[:focus-visible]:opacity-0"}),n.jsx(Mo,{"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(_r,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[19]=he,e[20]=y,e[21]=O):O=e[21];let i;e[22]!==de?(i=de&&n.jsx("img",{src:de,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded-[var(--studio-control-radius,var(--radius))] object-cover"}),e[22]=de,e[23]=i):i=e[23];let U;e[24]!==y||e[25]!==u?(U=!y&&n.jsx(Bs,{className:"h-4 w-4 shrink-0",style:u}),e[24]=y,e[25]=u,e[26]=U):U=e[26];const G=y?"shrink":"flex-1",Ee=c.isHidden&&"line-through opacity-50";let Te;e[27]!==Ee||e[28]!==G?(Te=ne("min-w-0 truncate text-sm font-medium",G,Ee),e[27]=Ee,e[28]=G,e[29]=Te):Te=e[29];const Ge=Ke??c.label;let xe;e[30]!==Te||e[31]!==Ge?(xe=n.jsx("span",{className:Te,children:Ge}),e[30]=Te,e[31]=Ge,e[32]=xe):xe=e[32];let m;e[33]!==V||e[34]!==y||e[35]!==ae||e[36]!==E?(m=y?n.jsxs(n.Fragment,{children:[V&&n.jsx(ni,{icon:Ls,label:E("sectionsEditor.sectionList.asyncBadge"),className:"text-muted-foreground"}),ae&&n.jsx(Dn,{}),n.jsx("span",{className:"min-w-0 flex-1"})]}):ae&&n.jsx(Dn,{className:"absolute -right-0.5 -top-0.5"}),e[33]=V,e[34]=y,e[35]=ae,e[36]=E,e[37]=m):m=e[37];let M;return e[38]!==xe||e[39]!==m||e[40]!==O||e[41]!==i||e[42]!==U?(M=n.jsxs(n.Fragment,{children:[O,i,U,xe,m]}),e[38]=xe,e[39]=m,e[40]=O,e[41]=i,e[42]=U,e[43]=M):M=e[43],M}const ri="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",ii="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 ua(h,e,c){if(c)return Ao({selected:e});const p=h.isSavedBlock===!0,g=h.isMultivariate===!0;return ne("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?ri:g?ii:"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function Cs(h,e){return ne("h-7 shrink-0 overflow-hidden",e?"w-7 ml-0 opacity-100 [transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]":h?"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 li(h){const e=Jt.c(90),{section:c,raw:p,meta:g,decofile:j,sortableId:E,selected:y,onSelect:R,onDelete:b,onDuplicate:J,onMakeReusable:de,onToggleHidden:De,onToggleLazy:Ke,onAddVariant:Ve,onDetach:ae}=h,r=Yt(),V=ps(),he=p?Is(p.__resolveType??""):!1,$=c.isHidden===!0,u=he||$;let O;e[0]!==c?(O=aa(c),e[0]=c,e[1]=O):O=e[1];const i=O;let U;e[2]!==E?(U={id:E,animateLayoutChanges:di},e[2]=E,e[3]=U):U=e[3];const{attributes:G,listeners:Ee,setNodeRef:Te,transform:Ge,isDragging:xe}=Fr(U);let m;e[4]!==Ge?(m=Ir.Transform.toString(Ge?{...Ge,x:0}:null),e[4]=Ge,e[5]=m):m=e[5];const M=xe?0:void 0;let qe;e[6]!==m||e[7]!==M?(qe={transform:m,opacity:M},e[6]=m,e[7]=M,e[8]=qe):qe=e[8];const F=qe;let Ue;e[9]!==c?(Ue=wo(c),e[9]=c,e[10]=Ue):Ue=e[10];const z=Ue,mt="button",me=0;let Oe;e[11]!==R?(Oe=P=>{(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),R())},e[11]=R,e[12]=Oe):Oe=e[12];const _t=xe?"cursor-grabbing":"cursor-pointer";let Be;e[13]!==V||e[14]!==c||e[15]!==y||e[16]!==_t?(Be=ne("touch-none transition-colors",_t,ua(c,y,V)),e[13]=V,e[14]=c,e[15]=y,e[16]=_t,e[17]=Be):Be=e[17];let oe;e[18]!==j||e[19]!==g||e[20]!==p||e[21]!==c?(oe=n.jsx(ca,{section:c,raw:p,meta:g,decofile:j}),e[18]=j,e[19]=g,e[20]=p,e[21]=c,e[22]=oe):oe=e[22];const re=!V&&!c.isMultivariate&&n.jsxs(ct,{children:[n.jsx(ut,{asChild:!0,children:n.jsx(Vt,{type:"button",variant:"ghost",size:"icon","aria-label":r(he?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender"),className:ne(Cs(u,he)),onClick:P=>{P.stopPropagation(),Ke()},onPointerDown:ui,children:n.jsx(Ls,{className:ne("h-3.5 w-3.5",he&&"text-warning")})})}),n.jsx(dt,{side:"bottom",children:r(he?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")})]}),Ne=V?n.jsx(Ro,{label:r($?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),active:$,onToggle:De,children:$?n.jsx(Qn,{className:"h-3.5 w-3.5"}):n.jsx(Xn,{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:ne(Cs(u,$)),onClick:P=>{P.stopPropagation(),De()},onPointerDown:ci,children:$?n.jsx(Qn,{className:"h-3.5 w-3.5"}):n.jsx(Xn,{className:"h-3.5 w-3.5"})})}),n.jsx(dt,{side:"bottom",children:r($?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection")})]}),B=go,A=Vo;let ie;e[23]!==r?(ie=r("sectionsEditor.sectionList.sectionActionsMenu"),e[23]=r,e[24]=ie):ie=e[24];const ke=ne(Cs(u,!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 Ae;e[25]!==A||e[26]!==ie||e[27]!==ke?(Ae=n.jsx(A,{label:ie,classicClassName:ke}),e[25]=A,e[26]=ie,e[27]=ke,e[28]=Ae):Ae=e[28];let we;e[29]!==V||e[30]!==he||e[31]!==Ke||e[32]!==c.isMultivariate||e[33]!==r?(we=V&&!c.isMultivariate&&n.jsxs(n.Fragment,{children:[n.jsxs(Kt,{onClick:P=>{P.stopPropagation(),Ke()},children:[n.jsx(Ls,{className:"h-4 w-4"}),r(he?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")]}),n.jsx(ho,{})]}),e[29]=V,e[30]=he,e[31]=Ke,e[32]=c.isMultivariate,e[33]=r,e[34]=we):we=e[34];let H;e[35]!==J?(H=P=>{P.stopPropagation(),J()},e[35]=J,e[36]=H):H=e[36];let le;e[37]===Symbol.for("react.memo_cache_sentinel")?(le=n.jsx(Mr,{className:"h-4 w-4"}),e[37]=le):le=e[37];let _e;e[38]!==r?(_e=r("sectionsEditor.sectionList.duplicateMenuItem"),e[38]=r,e[39]=_e):_e=e[39];let fe;e[40]!==H||e[41]!==_e?(fe=n.jsxs(Kt,{onClick:H,children:[le,_e]}),e[40]=H,e[41]=_e,e[42]=fe):fe=e[42];let te;e[43]!==V||e[44]!==i||e[45]!==Ve||e[46]!==r?(te=i&&n.jsxs(Kt,{className:ne(!V&&To),onClick:P=>{P.stopPropagation(),Ve()},children:[n.jsx(oa,{className:"h-4 w-4"}),r("sectionsEditor.sectionList.addVariantMenuItem")]}),e[43]=V,e[44]=i,e[45]=Ve,e[46]=r,e[47]=te):te=e[47];let pe;e[48]!==V||e[49]!==z||e[50]!==de||e[51]!==r?(pe=z&&n.jsxs(Kt,{className:ne(!V&&ai),onClick:P=>{P.stopPropagation(),de()},children:[V?n.jsx(fs,{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]=de,e[51]=r,e[52]=pe):pe=e[52];let se;e[53]!==V||e[54]!==ae||e[55]!==c.isMultivariate||e[56]!==c.isSavedBlock||e[57]!==r?(se=c.isSavedBlock===!0&&!c.isMultivariate&&n.jsxs(Kt,{onClick:P=>{P.stopPropagation(),ae()},children:[V?n.jsx(ra,{className:"h-4 w-4"}):n.jsx(Bs,{className:"h-4 w-4"}),r("sectionsEditor.sectionList.detachMenuItem")]}),e[53]=V,e[54]=ae,e[55]=c.isMultivariate,e[56]=c.isSavedBlock,e[57]=r,e[58]=se):se=e[58];let Me;e[59]!==b?(Me=P=>{P.stopPropagation(),b()},e[59]=b,e[60]=Me):Me=e[60];let ge;e[61]===Symbol.for("react.memo_cache_sentinel")?(ge=n.jsx(Cr,{className:"h-4 w-4"}),e[61]=ge):ge=e[61];let Re;e[62]!==r?(Re=r("sectionsEditor.sectionList.deleteMenuItem"),e[62]=r,e[63]=Re):Re=e[63];let je;e[64]!==Me||e[65]!==Re?(je=n.jsxs(Kt,{variant:"destructive",onClick:Me,children:[ge,Re]}),e[64]=Me,e[65]=Re,e[66]=je):je=e[66];let ve;e[67]!==we||e[68]!==fe||e[69]!==te||e[70]!==pe||e[71]!==se||e[72]!==je?(ve=n.jsxs(vo,{align:"end",className:"w-44",children:[we,fe,te,pe,se,je]}),e[67]=we,e[68]=fe,e[69]=te,e[70]=pe,e[71]=se,e[72]=je,e[73]=ve):ve=e[73];let Se;e[74]!==B||e[75]!==Ae||e[76]!==ve?(Se=n.jsxs(B,{children:[Ae,ve]}),e[74]=B,e[75]=Ae,e[76]=ve,e[77]=Se):Se=e[77];let ze;return e[78]!==G||e[79]!==Ee||e[80]!==R||e[81]!==Te||e[82]!==F||e[83]!==Be||e[84]!==oe||e[85]!==re||e[86]!==Ne||e[87]!==Se||e[88]!==Oe?(ze=n.jsxs("div",{ref:Te,style:F,...G,...Ee,role:mt,tabIndex:me,onClick:R,onKeyDown:Oe,className:Be,children:[oe,re,Ne,Se]}),e[78]=G,e[79]=Ee,e[80]=R,e[81]=Te,e[82]=F,e[83]=Be,e[84]=oe,e[85]=re,e[86]=Ne,e[87]=Se,e[88]=Oe,e[89]=ze):ze=e[89],ze}function ci(h){return h.stopPropagation()}function ui(h){return h.stopPropagation()}function di(){return!1}function Fs(h){const e=Jt.c(11),{canAddSection:c,onAddSection:p,className:g,size:j}=h,E=Yt();let y;e[0]!==g?(y=ne("w-full",g),e[0]=g,e[1]=y):y=e[1];const R=!c;let b;e[2]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx(Pr,{size:14}),e[2]=b):b=e[2];let J;e[3]!==E?(J=E("sectionsEditor.sectionList.addSectionButton"),e[3]=E,e[4]=J):J=e[4];let de;return e[5]!==p||e[6]!==j||e[7]!==y||e[8]!==R||e[9]!==J?(de=n.jsxs(Vt,{type:"button",variant:"outline",size:j,className:y,disabled:R,onClick:p,children:[b,J]}),e[5]=p,e[6]=j,e[7]=y,e[8]=R,e[9]=J,e[10]=de):de=e[10],de}function mi(h){const e=Jt.c(101),{listKey:c,rawSections:p,sections:g,meta:j,decofile:E,selectedIndex:y,onSelect:R,onReorder:b,onDelete:J,onDuplicate:de,onMakeReusable:De,onToggleHidden:Ke,onToggleLazy:Ve,onAddVariant:ae,onDetach:r,onAddSection:V,canAddSection:he}=h,$=he===void 0?!0:he,u=Yt(),O=ps();let i;e[0]!==g.length?(i=()=>sa(g.length),e[0]=g.length,e[1]=i):i=e[1];const[U,G]=k.useState(i),[Ee,Te]=k.useState(null),[Ge,xe]=k.useState(c),[m,M]=k.useState(g.length),qe=k.useRef(!1);Ge!==c?(xe(c),M(g.length),G(sa(g.length))):m!==g.length&&(M(g.length),G(Pe=>oi(Pe,g.length)));let F;e[2]===Symbol.for("react.memo_cache_sentinel")?(F={activationConstraint:{distance:8}},e[2]=F):F=e[2];let Ue;e[3]===Symbol.for("react.memo_cache_sentinel")?(Ue={coordinateGetter:Or},e[3]=Ue):Ue=e[3];const z=Dr(Zn(Lr,F),Zn(Br,Ue));let mt;e[4]!==U?(mt=U.map(fi),e[4]=U,e[5]=mt):mt=e[5];const me=mt;let Oe;e[6]===Symbol.for("react.memo_cache_sentinel")?(Oe=Pe=>{Te(String(Pe.active.id))},e[6]=Oe):Oe=e[6];const _t=Oe;let Be;e[7]!==me||e[8]!==b?(Be=Pe=>{Te(null);const{active:I,over:D}=Pe;if(!D||I.id===D.id)return;const Le=me.indexOf(String(I.id)),Xe=me.indexOf(String(D.id));Le===-1||Xe===-1||(G(nt=>la(ms([...nt],Le,Xe))),qe.current=!0,requestAnimationFrame(()=>{qe.current=!1}),b?.(Le,Xe))},e[7]=me,e[8]=b,e[9]=Be):Be=e[9];const oe=Be;let re;e[10]===Symbol.for("react.memo_cache_sentinel")?(re=()=>{Te(null)},e[10]=re):re=e[10];const Ne=re;let B,A,ie,ke,Ae,we,H,le,_e,fe,te,pe,se,Me,ge;if(e[11]!==Ee||e[12]!==$||e[13]!==O||e[14]!==E||e[15]!==U||e[16]!==me||e[17]!==oe||e[18]!==j||e[19]!==V||e[20]!==ae||e[21]!==J||e[22]!==r||e[23]!==de||e[24]!==De||e[25]!==R||e[26]!==Ke||e[27]!==Ve||e[28]!==p||e[29]!==g||e[30]!==y||e[31]!==z||e[32]!==u){Me=Symbol.for("react.early_return_sentinel");e:{const Pe=I=>{qe.current||R(I)};if(e[48]!==Ee||e[49]!==$||e[50]!==O||e[51]!==U||e[52]!==V||e[53]!==p||e[54]!==g||e[55]!==u){const I=Ee?U.find(D=>D.id===Ee):null;if(ke=I!=null?g[I.index]:null,ie=I!=null?p[I.index]:void 0,U.length===0){let D;e[59]!==u?(D=u("sectionsEditor.sectionList.noSections"),e[59]=u,e[60]=D):D=e[60];let Le;e[61]!==D?(Le=n.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:D}),e[61]=D,e[62]=Le):Le=e[62];const Xe=Le;let nt;e[63]!==$||e[64]!==O||e[65]!==Xe||e[66]!==V?(nt=O?Xe:n.jsxs("div",{className:"space-y-2",children:[Xe,n.jsx(Fs,{canAddSection:$,onAddSection:V,size:"sm"})]}),e[63]=$,e[64]=O,e[65]=Xe,e[66]=V,e[67]=nt):nt=e[67],Me=nt;break e}se=ne(I&&"cursor-grabbing"),e[48]=Ee,e[49]=$,e[50]=O,e[51]=U,e[52]=V,e[53]=p,e[54]=g,e[55]=u,e[56]=ie,e[57]=ke,e[58]=se}else ie=e[56],ke=e[57],se=e[58];A=zr,le=z,_e=$r,fe=_t,te=oe,pe=Ne,B=Hr,we=me,H=Gr,ge="space-y-1",Ae=U.map(I=>{const D=g[I.index];return D?n.jsx(li,{sortableId:I.id,section:D,raw:p[I.index],meta:j,decofile:E,selected:y===I.index,onSelect:()=>Pe(I.index),onDelete:()=>J(I.index),onDuplicate:()=>de(I.index),onMakeReusable:()=>De(I.index),onToggleHidden:()=>Ke(I.index),onToggleLazy:()=>Ve(I.index),onAddVariant:()=>ae(I.index),onDetach:()=>r(I.index)},I.id):null})}e[11]=Ee,e[12]=$,e[13]=O,e[14]=E,e[15]=U,e[16]=me,e[17]=oe,e[18]=j,e[19]=V,e[20]=ae,e[21]=J,e[22]=r,e[23]=de,e[24]=De,e[25]=R,e[26]=Ke,e[27]=Ve,e[28]=p,e[29]=g,e[30]=y,e[31]=z,e[32]=u,e[33]=B,e[34]=A,e[35]=ie,e[36]=ke,e[37]=Ae,e[38]=we,e[39]=H,e[40]=le,e[41]=_e,e[42]=fe,e[43]=te,e[44]=pe,e[45]=se,e[46]=Me,e[47]=ge}else B=e[33],A=e[34],ie=e[35],ke=e[36],Ae=e[37],we=e[38],H=e[39],le=e[40],_e=e[41],fe=e[42],te=e[43],pe=e[44],se=e[45],Me=e[46],ge=e[47];if(Me!==Symbol.for("react.early_return_sentinel"))return Me;let Re;e[68]!==Ae||e[69]!==ge?(Re=n.jsx("div",{className:ge,children:Ae}),e[68]=Ae,e[69]=ge,e[70]=Re):Re=e[70];let je;e[71]!==B||e[72]!==we||e[73]!==H||e[74]!==Re?(je=n.jsx(B,{items:we,strategy:H,children:Re}),e[71]=B,e[72]=we,e[73]=H,e[74]=Re,e[75]=je):je=e[75];let ve;e[76]!==ie||e[77]!==ke||e[78]!==O||e[79]!==E||e[80]!==j?(ve=ke?n.jsx("div",{className:ne("cursor-grabbing shadow-lg ring-1 ring-border/60",ua(ke,!1,O)),children:n.jsx(ca,{section:ke,raw:ie,meta:j,decofile:E})}):null,e[76]=ie,e[77]=ke,e[78]=O,e[79]=E,e[80]=j,e[81]=ve):ve=e[81];let Se;e[82]!==ve?(Se=po.createPortal(n.jsx(Kr,{dropAnimation:ko,children:ve}),document.body),e[82]=ve,e[83]=Se):Se=e[83];let ze;e[84]!==A||e[85]!==le||e[86]!==_e||e[87]!==fe||e[88]!==te||e[89]!==pe||e[90]!==je||e[91]!==Se?(ze=n.jsxs(A,{sensors:le,collisionDetection:_e,onDragStart:fe,onDragEnd:te,onDragCancel:pe,children:[je,Se]}),e[84]=A,e[85]=le,e[86]=_e,e[87]=fe,e[88]=te,e[89]=pe,e[90]=je,e[91]=Se,e[92]=ze):ze=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]!==se||e[98]!==ze||e[99]!==P?(st=n.jsxs("div",{className:se,children:[ze,P]}),e[97]=se,e[98]=ze,e[99]=P,e[100]=st):st=e[100],st}function fi(h){return h.id}function da(h,e){if(!h?.properties||e===null||typeof e!="object"||Array.isArray(e))return e;const c=e;let p=null;const g=()=>p??={...c};for(const[j,E]of Object.entries(h.properties)){if(!E||j.startsWith("__")||j==="@type")continue;const y=c[j];if(y===void 0){E.default!==void 0&&(g()[j]=E.default);continue}if(pi(E,y)){const R=da(E,y);R!==y&&(g()[j]=R)}}return p??e}function pi(h,e){return h.type==="object"&&h.properties!=null&&e!==null&&typeof e=="object"&&!Array.isArray(e)&&!("__resolveType"in e)}function hi(h,e,c,p){if(!h||typeof h!="object")return{kind:"error",reason:"no-matcher-rule"};const g=e.trim();if(!g)return Rt(h,c,p)?{kind:"inline",blockKey:h.__resolveType??"",inlinedRule:Ds(h,c,p)}:{kind:"noop"};const j=Ks(h,c,p);if(!j)return{kind:"error",reason:"unreadable-rule"};if(j.blockKey)return{kind:"updateBlock",blockKey:j.blockKey,blockData:xt(j.resolveType,j.data,g)};const E=us(g),y=ds(E,c);return y?{kind:"error",reason:"invalid-block-id",message:y}:{kind:"createBlock",blockId:E,blockData:xt(j.resolveType,j.data,g),reference:Lt(E)}}function Bc({orgSlug:h,virtualMcpId:e,branch:c,previewReady:p=!0,previewUrl:g,currentPath:j,activePageBlockKey:E=null,activeGlobalBlockKey:y=null,externalSelection:R,onSaved:b,initialEditSeo:J=!1,onExitSeo:de,onSelectRoot:De,onViewJsonFile:Ke,onFocusedBlockChange:Ve,onVariantPreviewOverride:ae}){const r=Yt(),V=xo(),he=V?.taskId??null,$=p?{orgSlug:h,virtualMcpId:e,branch:c,threadId:he,previewUrl:g}:null,{data:u,isLoading:O}=Po($),{data:i,isLoading:U}=Co($),G=ps(),Ee=V?.virtualMcpId,Ge=yr(Ee===e?e:null)?.metadata?.siteSlug??null,xe=Wr({virtualMcpId:e,sandboxUrl:g}),[m,M]=k.useState(null),[qe,F]=k.useState(null),[Ue,z]=k.useState(null),[mt,me]=k.useState(0),[Oe,_t]=k.useState(void 0),[Be,oe]=k.useState(null),[re,Ne]=k.useState(null),[B,A]=k.useState([]),ie=k.useRef(null),[ke,Ae]=k.useState(B.length);ke!==B.length&&(Ae(B.length),requestAnimationFrame(()=>{ie.current&&(ie.current.scrollTop=0)}));const[we,H]=k.useState(0),[le,_e]=k.useState(null),[fe,te]=k.useState(null),[pe,se]=k.useState(null),[Me,ge]=k.useState(!1),[Re,je]=k.useState(!1),ve=k.useRef(null),[Se,ze]=k.useState(!0),[P,st]=k.useState(!1),[Pe,I]=k.useState(!1),[D,Le]=k.useState(J),[Xe,nt]=k.useState(J);J&&!Xe&&(nt(!0),Le(!0),M(null),F(null),z(null),A([])),!J&&Xe&&nt(!1);const[ma,Qt]=k.useState(null),[Os,hs]=k.useState(void 0),[zs,jt]=k.useState([]),[$s,Ft]=k.useState(0),[Fe,We]=k.useState(0),[fa,Ce]=k.useState(null),[Tt,Ie]=k.useState(null),[Hs,Gs]=k.useState(null),pa=So(),ha=`${h}/${e}/${c}`,Xt=Do({orgSlug:h,virtualMcpId:e,branch:c}),[ga,va]=k.useState(j),[Sa,ya]=k.useState(E),[ba,xa]=k.useState(y);(ga!==j||Sa!==E||ba!==y)&&(queueMicrotask(()=>Xt.flush()),va(j),ya(E),xa(y),M(null),F(null),z(null),me(0),oe(null),Ne(null),We(0),Ce(null),Ie(null),A([]),H(t=>t+1),Le(!1),Qt(null),hs(void 0),jt([]),Ft(t=>t+1));const q=Ko({orgSlug:h,virtualMcpId:e,branch:c}),It=sr((t,s)=>{q.mutate({blockKey:t,data:s},{onSuccess:()=>b?.(),onError:a=>N.error(r("sectionsEditor.sectionsEditor.saveFailed",{error:a.message}))})}),Zt=kr({orgSlug:h,virtualMcpId:e,branch:c}),[Nt,At]=k.useState(!1),Y=k.useRef(null),at=k.useRef(null),ot=k.useRef(null),gs=k.useRef({}),$e=k.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null}),[_a,ja]=k.useState(null);if(!p||O||U)return n.jsx("div",{className:"h-full w-full flex items-center justify-center",children:n.jsx(yo,{className:"size-5 text-muted-foreground"})});if(!u||!i)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 Ea=Vr(u),Q=!!y,Z=Q?null:Tr(Ea,j,E),v=Q?y:Z?.key??null,vs=Q&&y?u[y]:void 0,qs=Q&&y&&vs?Nr(y,vs):Q&&y?y:"",Ot=!Q&&v&&u[v]?u[v]:null,Ss=D&&u&&i&&v&&Z?Kn(u,{kind:"page",pageKey:v,pageName:String(Z.name??""),path:String(Z.path??"")},i):null,ka=D?Ot?.seo:void 0,es=Os!==void 0?Os:ka,wa=D?Bo(es):void 0,Us=Ss?.seoTypeOptions??[],Ws=D&&i?Lo(i):"",ys=ma??wa??{},ts=D&&Ss?qr(ys,Ss):null,Js=D&&ts&&Fo(es)?cs(ts,i):null,Ys=D?Io(u,i)?.seoData:void 0,ce=Q?[{label:"Default",sections:[{__resolveType:y}]}]:Oo(Ot?.sections,u??{}),Ze=ce.length>1,ee=Math.min(mt,ce.length-1),He=ce[ee],K=He?.sections??[],ye=is(K,u),bs=!Q&&zo(Ot?.sections);if(Q&&y&&Hs!==y){Gs(y);const t=K[0],s=ye[0];if(t&&s){M(0),We(0),A([]);const a=kt(t,s,u);a&&(F(a.data),z(a.resolveType),Ie(null),Ce(null))}}!Q&&Hs!==null&&Gs(null),$e.current={rawSections:K,parsedSections:ye,decofile:u??{},activePageKey:v,pageVariants:ce,variantIndex:ee,sectionVariantIndex:Fe,selectedSectionIndex:m};const Ra=()=>({multivariate:bs,index:ee,variants:ce.map(t=>({rule:t.rule}))}),xs=(t,s)=>{if(!ae)return;if(!v||!bs||t.length<=1){ae(null);return}const a=ta(v,{multivariate:!0,index:s,variants:t},u,i);ae(a.length>0?a:null)},_s=ae&&v&&bs&&Ze&&!O&&!U?v:null;if(_s!==_a&&(ja(_s),_s)){const t=ce.map(a=>({rule:a.rule})),s=ee;queueMicrotask(()=>xs(t,s))}const Mt=(t,s,a)=>{if(!ae)return;if(!v){ae(null);return}const o=Ra(),l=ta(v,o,u,i);if(!t||s<0){ae(l.length>0?l:null);return}const f=Yr({pageKey:v,page:o,sectionIndex:s,sectionLazy:ye[s]?.isLazy??!1,mvObj:t,selectedVariantIndex:a,decofile:u,meta:i}),d=[...l,...f];ae(d.length>0?d:null)},ft=(t,s,a,o=m??-1,l=!1)=>{const f=tt(t,s);if(!f){F(null),z(null),Ie(null),Ce(null),l&&Mt(null,o,a);return}const x=Bn(f,lt)[a];if(!x){F(null),z(null),Ie(null),Ce(null),l&&Mt(null,o,a);return}const T=Xo(x.value,u);F(T?.data??null),z(T?.resolveType??null);const{resolveType:S,formValue:_}=qt(x.rule,u,i??void 0);Ie(S),Ce(_),l&&Mt(f,o,a)},zt=R?.index;if(R!==void 0&&(R?.seq??null)!==Oe&&(_t(R?.seq??null),typeof zt=="number")){const t=K[zt],s=ye[zt];if(t&&s)if(M(zt),We(0),A([]),H(a=>a+1),s.isMultivariate)ft(t,s,0,zt);else{const a=kt(t,s,u);a?(F(a.data),z(a.resolveType)):(F(null),z(null)),Ie(null),Ce(null)}}const $t={orgSlug:h,virtualMcpId:e,branch:c,threadId:he,previewUrl:g??void 0,siteSlug:Ge},ss=Ue&&i?cs(Ue,i):null,Je=(t,s)=>{if(!v)return;Y.current&&(clearTimeout(Y.current),Y.current=null),ot.current&&(clearTimeout(ot.current),ot.current=null),at.current&&(clearTimeout(at.current),at.current=null);const a=Wt(u,v,t,ee,ce);q.mutate({blockKey:v,data:a},{onSuccess:()=>s?.onSuccess?.()??b?.(),onError:o=>N.error(r("sectionsEditor.sectionsEditor.saveFailed",{error:o.message}))})},Pt=()=>{Ve?.(null),M(null),I(!1),F(null),z(null),We(0),Ce(null),Ie(null),A([]),H(t=>t+1)},Va=(t,s)=>{Y.current&&clearTimeout(Y.current);const a=$e.current.sectionVariantIndex;Y.current=setTimeout(()=>{const{rawSections:o,parsedSections:l,decofile:f,activePageKey:d,pageVariants:x,variantIndex:T}=$e.current,S=o[s];if(!S)return;const _=l[s];if(!_)return;if(_.isSavedBlock){const C=hr(S,_);if(!C)return;q.mutate({blockKey:C,data:t},{onSuccess:()=>b?.(),onError:L=>N.error(r("sectionsEditor.sectionsEditor.saveFailed",{error:L.message}))});return}if(!d)return;const w={...f[d]},W=[...o];if(_.isMultivariate){const C=tt(S,_);if(!C||!d)return;const L=gr(C,a,t);W[s]=wt(S,_,L)}else if(_.isHidden){const C=Is(S.__resolveType),L=C?{...S.section}:{...S},ue=Array.isArray(L.variants)?[...L.variants]:[];ue[0]&&(ue[0]={...ue[0],value:t}),L.variants=ue,C?W[s]={...S,section:L}:W[s]=L}else _.isLazy?W[s]={...S,section:t}:W[s]=t;if(x.length>1){const C=w.sections,L=[...C?.variants??[]];L[T]&&(L[T]={...L[T],value:W}),w.sections={...C,variants:L}}else w.sections=W;q.mutate({blockKey:d,data:w},{onSuccess:()=>b?.(),onError:C=>N.error(r("sectionsEditor.sectionsEditor.saveFailed",{error:C.message}))})},Ps)},Ta=t=>{M(t),We(0),A([]),H(l=>l+1);const s=K[t],a=ye[t];if(Ve?.(a?.isSavedBlock?a.resolveType??null:null),!s||!a)return;if(a.isMultivariate){ft(s,a,0,t);return}const o=kt(s,a,u);if(!o){F(null),z(null),Ie(null),Ce(null),Mt(null,t,0);return}F(o.data),z(o.resolveType),Ie(null),Ce(null),Mt(null,t,0)},Qs=t=>{const s=da(ss,t);F(s),m!==null&&Va(s,m)},js=t=>{if(!v||!u||!i||!Z)return;const s={kind:"page",pageKey:v,pageName:String(Z.name??""),path:String(Z.path??"")},a=Kn(u,s,i);a&&Xt.save(v,()=>{const o=pa.getQueryData(bo.decofile(ha))?.[v];if(!o||typeof o!="object"||o===null||Array.isArray(o))return null;const l={...o,...gs.current};return gs.current={},t?.raw!==void 0?{...l,seo:t.raw}:t?.inner!==void 0?Ur(s,a,l,t.inner):l})},Xs=(t,s)=>{v&&(gs.current[t]=s,js())},Na=(t,s)=>{if(!v)return;const a=ms([...K],t,s);m!==null&&(m===t?M(s):t<m&&s>=m?M(m-1):t>m&&s<=m&&M(m+1)),Je(a)},Aa=t=>{if(!v)return;const s=K.filter((a,o)=>o!==t);m===t?Pt():m!==null&&m>t&&M(m-1),Je(s)},Ma=t=>{if(!v)return;const s=K[t];if(!s)return;const a=[...K];a.splice(t+1,0,ur(s)),m!==null&&m>t&&M(m+1),Je(a)},Pa=t=>{if(!v)return;const s=K[t],a=ye[t];if(!s||!a)return;const o=a.isHidden?lr(s):cr(s);if(!o)return;const l=[...K];l[t]=o,m===t&&Pt(),Je(l)},Ca=t=>{if(!v)return;const s=K[t],a=ye[t];if(!s||!a||a.isMultivariate)return;const o=ir(s);if(!o)return;const l=[...K];l[t]=o,m===t&&Pt(),Je(l)},Da=t=>{if(!v)return;const s=K[t],a=ye[t];if(!s||!a?.isSavedBlock)return;const o=kt(s,a,u);if(!o?.data)return;const{name:l,...f}=o.data,d=[...K];a.isLazy?d[t]={...s,section:f}:d[t]=f,m===t&&Pt(),Je(d)},Ka=t=>{if(!v)return;const s=[...K,{__resolveType:t.resolveType}],a=s.length-1;Je(s,{onSuccess:()=>{ge(!1),M(a),We(0),A([]),H(d=>d+1);const o=s[a],l=is(s,u)[a];if(!o||!l)return;if(l.isMultivariate){ft(o,l,0);return}const f=kt(o,l,u);if(!f){F(null),z(null),Ie(null),Ce(null);return}F(f.data),z(f.resolveType),Ie(null),Ce(null)}})},Zs=t=>{ve.current=t.append,ge(!0)},Ba=t=>{const s=ve.current;if(!s){Ka(t);return}s({__resolveType:t.resolveType}),ge(!1),ve.current=null},en=t=>{if(m===null)return;const s=K[m],a=ye[m];!s||!a?.isMultivariate||(We(t),A([]),H(o=>o+1),ft(s,a,t,m,!0))},La=t=>{if(m===null||!v)return;const s=K[m],a=ye[m];if(!s||!a?.isMultivariate)return;const o=tt(s,a);if(!o)return;const l=or(o,t);if(!l){N.error(r("sectionsEditor.sectionsEditor.cannotDeleteOnlyVariant"));return}const f=[...K];f[m]=wt(s,a,l);const d=l.variants;let x=Fe;t===Fe?x=Math.min(t,d.length-1):t<Fe&&(x=Fe-1),We(x),A([]),H(T=>T+1),ft(f[m],a,x),Je(f)},Fa=t=>{if(m===null||!v)return;const s=K[m],a=ye[m];if(!s||!a?.isMultivariate)return;const o=tt(s,a);if(!o)return;const l=rr(o,t),f=[...K];f[m]=wt(s,a,l);const d=t+1;We(d),A([]),H(x=>x+1),ft(f[m],a,d),Je(f)},Ia=(t,s)=>{if(m===null||!v||t===s)return;const a=K[m],o=ye[m];if(!a||!o?.isMultivariate)return;const l=tt(a,o);if(!l)return;const f=nr(l,t,s),d=[...K];d[m]=wt(a,o,f);let x=Fe;Fe===t?x=s:t<Fe&&s>=Fe?x=Fe-1:t>Fe&&s<=Fe&&(x=Fe+1),We(x),ft(d[m],o,x),Je(d)},Ht=t=>{const s=t??m;if(s===null||!v)return;const a=K[s],o=ye[s];if(!a||!o)return;const l=Zo(a,o);if(!l){N.error(r("sectionsEditor.sectionsEditor.sectionCannotHaveVariants"));return}const f=[...K];f[s]=l.section;const d=is(f,u)[s];if(!d?.isMultivariate){N.error(r("sectionsEditor.sectionsEditor.couldNotAddVariant"));return}M(s),We(l.newVariantIndex),A([]),H(x=>x+1),ft(l.section,d,l.newVariantIndex,s),Je(f)},tn=()=>{if(m===null||!v)return;const t=K[m],s=ye[m];if(!t||!s?.isMultivariate)return;const a=tt(t,s);if(!a)return;const o=ar(t,s,a);if(!o){N.error(r("sectionsEditor.sectionsEditor.couldNotRemoveVariants"));return}const l=[...K];l[m]=o;const f=is(l,u)[m];if(!f)return;We(0),Ie(null),Ce(null),A([]),H(x=>x+1);const d=kt(o,f,u);d?(F(d.data),z(d.resolveType)):(F(null),z(null)),Mt(null,m,0),Je(l)},Oa=async t=>{if(le===null||!v)return;const s=ds(t,u);if(s){N.error(s);return}const a=K[le],o=ye[le];if(!a||!o)return;const l=kt(a,o,u);if(!l){N.error(r("sectionsEditor.sectionsEditor.sectionCannotBeSavedAsGlobal"));return}const f={...l.data,name:t};try{await q.mutateAsync({blockKey:t,data:f});const d=[...K];d[le]={__resolveType:t},await q.mutateAsync({blockKey:v,data:Wt(u,v,d,ee,ce)}),m===le&&Pt(),_e(null),N.success(r("sectionsEditor.sectionsEditor.savedGlobalBlock",{blockId:t})),b?.()}catch(d){N.error(d instanceof Error?d.message:r("sectionsEditor.sectionsEditor.failedToSaveGlobalBlock"))}},sn=He?.rule;if(Ze&&m===null&&re===null&&sn){const{resolveType:t,formValue:s}=qt(sn,u??{},i??void 0);Ne(t),oe(s)}const Ct=i?$o(i):[],Es=i&&u?Ho(i,u):[],nn=!Q&&!!(xe&&i&&u),an=re&&i?cs(re,i):null,pt=()=>{at.current&&(clearTimeout(at.current),at.current=null),ot.current&&(clearTimeout(ot.current),ot.current=null)},Et=async(t,s)=>{if(!(pr(s,t,i)>0))try{await Zt.mutateAsync({blockKey:t})}catch(a){N.error(a instanceof Error?a.message:r("sectionsEditor.sectionsEditor.couldNotDeleteMatcherBlock"))}},on=t=>{at.current&&clearTimeout(at.current),at.current=setTimeout(()=>{const{activePageKey:s,decofile:a,variantIndex:o}=$e.current;if(!s)return;const l={...a[s]},f={...l.sections},d=[...f.variants??[]],x=d[o],T=x?.rule;if(Rt(T,a,i)){const S=T?.__resolveType??"",_=a[S],w=typeof _?.name=="string"?_.name:S,{__resolveType:W,...C}=t;q.mutate({blockKey:S,data:xt(W??"",C,w)},{onSuccess:()=>b?.(),onError:L=>N.error(r("sectionsEditor.sectionsEditor.saveFailed",{error:L.message}))});return}x&&(d[o]={...x,rule:t}),l.sections={...f,variants:d},q.mutate({blockKey:s,data:l},{onSuccess:()=>b?.(),onError:S=>N.error(r("sectionsEditor.sectionsEditor.saveFailed",{error:S.message}))})},Ps)},rn=t=>{Ne(t);const s=t?qn(t,i):{__resolveType:Yn};oe(t?s:{}),on(s)},ln=t=>{const s=t;oe(s);const a=re?{__resolveType:re,...s}:{...s};on(a)},cn=async t=>{pt();const{activePageKey:s,decofile:a,variantIndex:o}=$e.current;if(!s)return;const l=a[s],f=l?.sections;if(!f||typeof f!="object"||Array.isArray(f))return;const d=f;if(!Array.isArray(d.variants))return;const x=[...d.variants],T=x[o];if(!T)return;const S=bt(T.rule,a,i),_=Lt(t);x[o]={...T,rule:_};const w={...a,[s]:{...l,sections:{...d,variants:x}}},{resolveType:W,formValue:C}=qt(_,w,i??void 0);Ne(W),oe(C);try{await q.mutateAsync({blockKey:s,data:w[s]}),S&&S!==t&&await Et(S,w),b?.()}catch(L){N.error(L instanceof Error?L.message:r("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}},un=t=>{ot.current&&clearTimeout(ot.current);const{selectedSectionIndex:s,sectionVariantIndex:a}=$e.current;s!==null&&(ot.current=setTimeout(()=>{const{rawSections:o,parsedSections:l,decofile:f,activePageKey:d,pageVariants:x,variantIndex:T}=$e.current;if(!d)return;const S=o[s],_=l[s];if(!S||!_?.isMultivariate)return;const w=tt(S,_);if(!w)return;const C=(w.variants??[])[a]?.rule;if(Rt(C,f,i)){const X=C?.__resolveType??"",Qe=f[X],rt=typeof Qe?.name=="string"?Qe.name:X,{__resolveType:St,...it}=t;q.mutate({blockKey:X,data:xt(St??"",it,rt)},{onSuccess:()=>b?.(),onError:yt=>N.error(r("sectionsEditor.sectionsEditor.saveFailed",{error:yt.message}))});return}const L=Un(w,a,t),ue=[...o];ue[s]=wt(S,_,L);const et=Wt(f,d,ue,T,x);q.mutate({blockKey:d,data:et},{onSuccess:()=>b?.(),onError:X=>N.error(r("sectionsEditor.sectionsEditor.saveFailed",{error:X.message}))})},Ps))},za=t=>{Ie(t);const s=t?qn(t,i):{__resolveType:Yn};Ce(t?s:{}),un(s)},$a=t=>{const s=t;Ce(s);const a=Tt?{__resolveType:Tt,...s}:{...s};un(a)},Ha=async t=>{pt();const{selectedSectionIndex:s,sectionVariantIndex:a,rawSections:o,parsedSections:l,decofile:f,activePageKey:d,pageVariants:x,variantIndex:T}=$e.current;if(s===null||!d)return;const S=o[s],_=l[s];if(!S||!_?.isMultivariate)return;const w=tt(S,_);if(!w)return;const W=w.variants??[],C=bt(W[a]?.rule,f,i),L=Lt(t),ue=Un(w,a,L),et=[...o];et[s]=wt(S,_,ue);const X=Wt(f,d,et,T,x),Qe={...f,[d]:X},{resolveType:rt,formValue:St}=qt(L,Qe,i??void 0);Ie(rt),Ce(St);try{await q.mutateAsync({blockKey:d,data:X}),C&&C!==t&&await Et(C,Qe),b?.()}catch(it){N.error(it instanceof Error?it.message:r("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}};if(!Q&&!Z)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:j})});if(Q&&!vs)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 be=m!==null?ye[m]??null:null,dn=m!==null?K[m]:null,mn=dn&&be?.isMultivariate?tt(dn,be):null,ht=mn?Bn(mn,lt):[],ns=Math.min(Fe,Math.max(ht.length-1,0)),Dt=ht[ns]??null,gt=be?.isMultivariate===!0,ks=m!==null&&be!==null,vt=ks&&(gt||!!(ss&&qe)),Ga=vt&&!Q&&be?.isSavedBlock===!0,Ye=Q||Ga,fn=Q?qs:be?.label??"",qa=Tt&&i?cs(Tt,i):null,pn=(t,s)=>s&&G?`${t} · ${s}`:t,hn=be?be.variantOf??be.label:"",Ua=(()=>{const t=gt&&Dt?Dt.label:null;return t?G?[pn(hn,t)]:[be.label,t]:[be?.label??""]})(),ws=pn(Z?.name??"",Ze?He?.label:null),as=vt&&(!Q||B.length>0)?Q?[qs,...B]:[ws,...Ua,...B]:[],gn=D&&Z?[Z.name,"SEO",...zs]:[],vn=r("sectionsEditor.pageVariantTabs.variantsLabel"),Sn=P&&Z?[Z.name,vn]:Pe&&Z&&be?[ws,hn,vn]:[],os=Sn.length>0?Sn:gn.length>0?gn:Ye?as.length>0?as:[fn]:as.length>0?as:[ws],yn=ks&&!gt&&!be?.isHidden&&!!v,Wa=Ye||!Q&&Ze&&!!He||yn,Ja=ks&&!gt&&!Q&&B.length===0&&!!be&&aa(be)&&!!v,Ya=G&&vt&&!Pe&>&&B.length===0&&!!Dt,bn=G&&B.length>0?Ln(B[B.length-1]):null,Qa=B.length>1?Ln(B[B.length-2]):null,xn=Ye?fn:vt?be?.label??"":Z?.name??"",Xa=P||Pe?r("sectionsEditor.pageVariantTabs.variantsLabel"):D?r("sectionsEditor.panelSections.seo"):bn??xn,_n=Pe?be?.variantOf??be?.label??"":P||D?Z?.name??"":bn?Qa??xn:Ye?r("sectionsEditor.sectionsEditor.globalSectionSubtitle"):vt?Z?.name??"":Z?.path??"",Rs=!P&&!Pe&&!D&&!vt&&!Ye,Za=!G&&!D&&!Q&>&&B.length===0,Gt=()=>{if(!v)return;pt(),Y.current&&(clearTimeout(Y.current),Y.current=null);const t=u[v],s=er(t.sections,K);if(!s)return;const a=tr(s);q.mutate({blockKey:v,data:{...t,sections:s}},{onSuccess:()=>{me(a),M(null),F(null),z(null),A([]),oe(null),Ne(null)},onError:o=>N.error(r("sectionsEditor.sectionsEditor.saveFailed",{error:o.message}))})},rs=(t,s,a)=>{if(!v)return;pt(),Y.current&&(clearTimeout(Y.current),Y.current=null);const o=u[v],l=o.sections;if(!l||typeof l!="object"||Array.isArray(l))return;const f=l;if(!Array.isArray(f.variants))return;const d=t([...f.variants]);if(!d)return;const x=fr(f,d),T={...u,[v]:{...o,sections:x}};q.mutate({blockKey:v,data:T[v]},{onSuccess:()=>{s?.();const S=typeof a=="string"?[a]:a??[];(async()=>{for(const _ of S)await Et(_,T)})()},onError:S=>N.error(r("sectionsEditor.sectionsEditor.saveFailed",{error:S.message}))})},Vs=t=>{te(null),me(t),M(null),F(null),z(null),A([]);const s=ce[t]?.rule,{resolveType:a,formValue:o}=qt(s,u??{},i??void 0);Ne(a),oe(o),xs(ce.map(l=>({rule:l.rule})),t)},jn=(t,s)=>{if(t===s)return;let a=ee;ee===t?a=s:t<ee&&s>=ee?a=ee-1:t>ee&&s<=ee&&(a=ee+1),me(a);const o=ms(ce.map(l=>({rule:l.rule})),t,s);xs(o,a),rs(l=>ms(l,t,s))},En=t=>{const s=ce[t]?.rule,a=bt(s,u??{},i??void 0);rs(o=>o.length<=1?null:(o.splice(t,1),o),()=>{ce.length-1===1?me(0):t<ee?me(ee-1):t===ee&&me(Math.max(0,t-1)),M(null),F(null),z(null),A([]),oe(null),Ne(null)},a)},eo=()=>{const t=ce.map((s,a)=>({variant:s,index:a})).filter(({variant:s})=>!mr(s.rule)).map(({variant:s})=>bt(s.rule,u??{},i??void 0)).filter(s=>!!s);rs(s=>{const a=vr({variants:s}),o=s[a];return o?[{...o,rule:Ar()}]:null},()=>{me(0),M(null),F(null),z(null),A([]),oe(null),Ne(null),st(!1)},t)},kn=t=>{rs(s=>Sr(s,t),()=>{me(t+1),M(null),F(null),z(null),A([]),oe(null),Ne(null)})},to=async(t,s)=>{pt(),Y.current&&(clearTimeout(Y.current),Y.current=null);const a=$e.current.activePageKey,o=$e.current.decofile;if(!a)return;const l=o[a],f=l.sections;if(!f||typeof f!="object"||Array.isArray(f))return;const d=f;if(!Array.isArray(d.variants))return;const x=[...d.variants],T=x[t];if(!T?.rule||typeof T.rule!="object"){N.error(r("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const S=T.rule,_=s.trim();At(!0);try{if(!_){if(!Rt(S,o,i)){te(null);return}const et=S.__resolveType??"";x[t]={...T,rule:Ds(S,o,i)};const X={...o,[a]:{...l,sections:{...d,variants:x}}};await q.mutateAsync({blockKey:a,data:X[a]}),await Et(et,X),te(null),b?.();return}const w=Ks(S,o,i);if(!w){N.error(r("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(w.blockKey){await q.mutateAsync({blockKey:w.blockKey,data:xt(w.resolveType,w.data,_)}),te(null),b?.();return}const W=us(_),C=ds(W,o);if(C){N.error(C);return}const L=xt(w.resolveType,w.data,_);let ue=null;try{await q.mutateAsync({blockKey:W,data:L}),ue=W,x[t]={...T,rule:Lt(W)},await q.mutateAsync({blockKey:a,data:{...l,sections:{...d,variants:x}}}),ue=null}catch(et){throw ue&&await Zt.mutateAsync({blockKey:ue}).catch(()=>{}),et}te(null),N.success(r("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:_})),b?.()}catch(w){N.error(w instanceof Error?w.message:r("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{At(!1)}},so=async(t,s)=>{pt(),Y.current&&(clearTimeout(Y.current),Y.current=null);const{selectedSectionIndex:a,rawSections:o,parsedSections:l,decofile:f,activePageKey:d,pageVariants:x,variantIndex:T}=$e.current;if(a===null||!d)return;const S=o[a],_=l[a];if(!S||!_?.isMultivariate)return;const w=tt(S,_);if(!w)return;const W=w.variants??[],C=W[t];if(!C?.rule||typeof C.rule!="object"){N.error(r("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const L=C.rule,ue=s.trim();At(!0);const et=async X=>{const Qe={...w,variants:X},rt=[...o];rt[a]=wt(S,_,Qe);const St=Wt(f,d,rt,T,x);return await q.mutateAsync({blockKey:d,data:St}),{...f,[d]:St}};try{if(!ue){if(!Rt(L,f,i)){se(null);return}const yt=L.__resolveType??"",Cn=[...W];Cn[t]={...C,rule:Ds(L,f,i)};const fo=await et(Cn);await Et(yt,fo),se(null),b?.();return}const X=Ks(L,f,i);if(!X){N.error(r("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(X.blockKey){await q.mutateAsync({blockKey:X.blockKey,data:xt(X.resolveType,X.data,ue)}),se(null),b?.();return}const Qe=us(ue),rt=ds(Qe,f);if(rt){N.error(rt);return}const St=xt(X.resolveType,X.data,ue);let it=null;try{await q.mutateAsync({blockKey:Qe,data:St}),it=Qe;const yt=[...W];yt[t]={...C,rule:Lt(Qe)},await et(yt),it=null}catch(yt){throw it&&await Zt.mutateAsync({blockKey:it}).catch(()=>{}),yt}se(null),N.success(r("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:ue})),b?.()}catch(X){N.error(X instanceof Error?X.message:r("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{At(!1)}},no={rename:async(t,s,a)=>{pt(),Y.current&&(clearTimeout(Y.current),Y.current=null);const{activePageKey:o,decofile:l}=$e.current;if(!o)return;const f=Array.isArray(t.variants)?[...t.variants]:[],d=f[s],x=d?.rule&&typeof d.rule=="object"?d.rule:void 0,T=async _=>{const w={...t,variants:_};return await q.mutateAsync({blockKey:o,data:w}),{...l,[o]:w}},S=hi(x,a,l,i);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 w=[...f];w[s]={...d,rule:S.inlinedRule};const W=await T(w);await Et(S.blockKey,W),b?.();return}if(S.kind==="updateBlock"){await q.mutateAsync({blockKey:S.blockKey,data:S.blockData}),b?.();return}let _=null;try{await q.mutateAsync({blockKey:S.blockId,data:S.blockData}),_=S.blockId;const w=[...f];w[s]={...d,rule:S.reference},await T(w),_=null}catch(w){throw _&&await Zt.mutateAsync({blockKey:_}).catch(()=>{}),w}N.success(r("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:a.trim()})),b?.()}catch(_){N.error(_ instanceof Error?_.message:r("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{At(!1)}}},selectGlobal:async(t,s,a)=>{pt(),Y.current&&(clearTimeout(Y.current),Y.current=null);const{activePageKey:o,decofile:l}=$e.current;if(!o)return;const f=Array.isArray(t.variants)?[...t.variants]:[],d=f[s];if(!d)return;const x=bt(d.rule,l,i);f[s]={...d,rule:Lt(a)};const T={...t,variants:f},S={...l,[o]:T};try{await q.mutateAsync({blockKey:o,data:T}),x&&x!==a&&await Et(x,S),b?.()}catch(_){N.error(_ instanceof Error?_.message:r("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}}},wn=()=>{Pt()},Rn=t=>{Qt(t),js({inner:t})},Vn=t=>{hs(t),js({raw:t})},Tn=()=>{Qt(null),jt([])},Nn=()=>Ft(t=>t+1),An=()=>{Xt.flush(),Le(!1),Qt(null),hs(void 0),jt([]),Ft(t=>t+1),de?.()},ao=()=>{st(!1),I(!1),M(null),Le(!0)},oo=()=>{D&&An(),M(null),st(!0)},ro=()=>I(!0),Ts=t=>{if(P&&t===0){st(!1);return}if(Pe&&t<2){I(!1),t===0&&M(null);return}if(D){if(t===0){An();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){wn();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=os.length>1?n.jsx("button",{type:"button",onClick:()=>Ts(dr(os.length,{isMultivariateSectionTop:Za})),title:r("sectionsEditor.sectionsEditor.back"),"aria-label":r("sectionsEditor.sectionsEditor.back"),className:ne("shrink-0 inline-flex size-6 items-center justify-center rounded-[var(--studio-control-radius,var(--radius-md))] transition-colors",Ye?"text-foreground/80 hover:bg-global-section/15":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:n.jsx(jr,{className:"size-4"})}):null,io=Ye||vt||D?Wa&&n.jsxs("div",{className:ne("border-b px-3 py-2.5",Ye&&"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&&Ze&&He&&n.jsxs("button",{type:"button",onClick:wn,title:r("sectionsEditor.sectionsEditor.editingInVariant",{variant:He.label}),className:ne("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:As(He.rule,u??{},i??void 0),matchers:Ct}),n.jsx("span",{className:"max-w-[160px] truncate",children:He.label})]}),n.jsx("div",{className:"flex-1"}),Ye&&n.jsxs(ct,{children:[n.jsx(ut,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(fs,{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")})]}),yn&&n.jsx(ls,{onClick:()=>Ht()})]}),Ye&&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(Fn,{pageKey:v,initialName:Z.name,initialPath:Z.path,onFieldChange:Xs,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:()=>Le(!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:()=>Ke&&v?Ke():je(!0),children:n.jsx(Jn,{size:14})})}),n.jsx(dt,{side:"bottom",children:r("sectionsEditor.sectionsEditor.viewJson")})]}),n.jsx(ls,{onClick:Gt})]}),lo=n.jsxs(n.Fragment,{children:[Ze&&v&&n.jsx(In,{listKey:v,variants:ce,activeIndex:ee,decofile:u??{},meta:i,matchers:Ct,onSelect:Vs,onReorder:jn,onRename:te,onDuplicate:kn,onDelete:En,onAdd:Gt}),Ze&&re!==null&&n.jsx(On,{className:"mt-3",children:n.jsx("div",{className:ne("space-y-3",Nt&&"pointer-events-none opacity-50"),children:n.jsx(Ms,{currentRt:re,currentLabel:Ut(He?.rule,u??{},lt,i??void 0),currentGlobalKey:bt(He?.rule,u??{},i??void 0)??void 0,matchers:Ct,globals:Es,onSelect:rn,onSelectGlobal:cn,schema:an,formValue:Be,onChange:ln,formKey:`${ee}:${re??""}`,formWrapperClassName:"space-y-3",meta:i??void 0,decofile:u,onSaveReferencedBlock:It,sandbox:$t})})})]}),Mn=n.jsxs(n.Fragment,{children:[n.jsx(Uo,{listKey:`${v??""}:${m??""}`,variants:ht.map((t,s)=>({index:s,label:t.label})),selectedIndex:ns,onSelect:en,onRename:se,onDuplicate:Fa,onDelete:La,onRemoveAll:tn,onReorder:Ia,onAdd:()=>Ht()}),n.jsx(On,{children:n.jsx(Ms,{currentRt:Tt??"",currentLabel:Ut(Dt?.rule,u??{},lt,i??void 0),currentGlobalKey:bt(Dt?.rule,u??{},i??void 0)??void 0,matchers:Ct,globals:Es,onSelect:za,onSelectGlobal:Ha,schema:qa,formValue:fa,onChange:$a,formKey:`${m??"none"}:${ns}:${Tt??""}`,formWrapperClassName:"pt-1",meta:i??void 0,decofile:u,onSaveReferencedBlock:It,sandbox:$t})})]}),Pn=n.jsx("div",{className:ne(G?"px-2":"p-2 pt-3"),children:n.jsx(mi,{listKey:`${v??""}-${ee}`,rawSections:K,sections:ye,meta:i,decofile:u,selectedIndex:m,onSelect:Ta,onReorder:Na,onDelete:Aa,onDuplicate:Ma,onMakeReusable:_e,onToggleHidden:Pa,onToggleLazy:Ca,onAddVariant:Ht,onDetach:Da,onAddSection:()=>ge(!0),canAddSection:nn})}),co=n.jsxs("div",{className:"min-w-0 max-w-full space-y-4 overflow-x-hidden px-3",children:[v&&Z&&n.jsx(Fn,{pageKey:v,initialName:Z.name,initialPath:Z.path,onFieldChange:Xs}),Ot&&v?n.jsx(ea,{rawSeo:es,innerSeo:ys,defaultResolveType:Ws,seoSchema:Js,activeResolveType:ts,seoTypeOptions:Us,formResetKey:$s,siteDefaultSeo:Ys,onBreadcrumbChange:jt,onPersistRaw:Vn,onInnerChange:Rn,onClearForm:Tn,onBumpFormKey:Nn}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:r("sectionsEditor.sectionsEditor.seoSchemaNotFound")})]}),uo=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&&v?n.jsx(ea,{rawSeo:es,innerSeo:ys,defaultResolveType:Ws,seoSchema:Js,activeResolveType:ts,seoTypeOptions:Us,formResetKey:$s,siteDefaultSeo:Ys,onBreadcrumbChange:jt,onPersistRaw:Vn,onInnerChange:Rn,onClearForm:Tn,onBumpFormKey:Nn}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:r("sectionsEditor.sectionsEditor.seoSchemaNotFound")})})})},"editor-seo"),mo=n.jsxs(Bt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[Ze&&v&&n.jsx(In,{listKey:v,variants:ce,activeIndex:ee,decofile:u??{},meta:i,matchers:Ct,onSelect:Vs,onReorder:jn,onRename:te,onDuplicate:kn,onDelete:En,onAdd:Gt}),Ze&&re!==null&&n.jsxs("div",{className:ne("px-3 border-b",Se?"pt-3 pb-5 space-y-3":"py-2"),children:[n.jsxs("button",{type:"button",onClick:()=>ze(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":Se,children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:r("sectionsEditor.sectionsEditor.variantRule")}),Se?n.jsx(br,{className:"size-3.5 shrink-0 text-muted-foreground"}):n.jsx(xr,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),Se&&n.jsx("div",{className:ne("space-y-3",Nt&&"pointer-events-none opacity-50"),children:n.jsx(Ms,{currentRt:re,currentLabel:Ut(He?.rule,u??{},lt,i??void 0),currentGlobalKey:bt(He?.rule,u??{},i??void 0)??void 0,matchers:Ct,globals:Es,onSelect:rn,onSelectGlobal:cn,schema:an,formValue:Be,onChange:ln,formKey:`${ee}:${re??""}`,formWrapperClassName:"space-y-3",meta:i??void 0,decofile:u,onSaveReferencedBlock:It,sandbox:$t})})]}),Pn]},"editor-section-list");return n.jsx(Wo,{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||os.length>1)&&n.jsx(Jo,{crumbs:os,onSelect:Ts,onSelectRoot:()=>{Xt.flush(),De?De():Ts(0)}}),n.jsx("div",{className:"shrink-0",children:G?n.jsxs("div",{className:ne("flex items-center gap-2 border-b px-3 py-2.5",Ye&&"border-global-section/22 bg-global-section/12 dark:bg-global-section/16"),children:[G&&Ns,Ye&&n.jsxs(ct,{children:[n.jsx(ut,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(fs,{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:Xa}),_n&&n.jsx("span",{className:"truncate text-xs text-muted-foreground",children:_n})]}),Rs&&Ze&&He&&n.jsx(zn,{variants:ce,activeIndex:ee,onSelect:Vs,onManage:oo,onRemoveAll:eo}),Ya&&n.jsx(zn,{variants:ht,activeIndex:ns,onSelect:en,onManage:ro,onRemoveAll:tn}),Rs&&!Ze&&n.jsx(ls,{onClick:Gt}),Ja&&n.jsx(ls,{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:ao,children:n.jsx(Wn,{size:14})})}),n.jsx(dt,{side:"bottom",children:r("sectionsEditor.sectionsEditor.editSeo")})]}),!Ke&&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:()=>je(!0),children:n.jsx(Jn,{size:14})})}),n.jsx(dt,{side:"bottom",children:r("sectionsEditor.sectionsEditor.viewJson")})]})]})]}):io}),Pe?n.jsx($n,{onAdd:()=>Ht(),children:Mn},"editor-section-variants"):vt?n.jsxs(Bt,{viewportRef:ie,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[!G&>&&ht.length>0&&B.length===0&&Mn,n.jsx(Hn,{activeSchema:ss,formValue:qe,formResetKey:we,onFormChange:Qs,onBreadcrumbChange:A,breadcrumbPath:B,emptyMessage:r("sectionsEditor.sectionsEditor.noEditableFieldsForVariant"),meta:i,decofile:u,onSaveReferencedBlock:It,sandbox:$t,previewBaseUrl:xe,onRequestAddSection:Zs})]},"editor-section-form"):Q?n.jsx(Bt,{viewportRef:ie,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx(Hn,{activeSchema:ss,formValue:qe,formResetKey:we,onFormChange:Qs,onBreadcrumbChange:A,breadcrumbPath:B,emptyMessage:r("sectionsEditor.sectionsEditor.noEditableFieldsForGlobalBlock"),meta:i,decofile:u,onSaveReferencedBlock:It,sandbox:$t,previewBaseUrl:xe,onRequestAddSection:Zs,onVariantMatcherOp:no})},"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:co})},"editor-seo"):uo:P?n.jsx($n,{onAdd:Gt,children:lo},"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:Pn})}),n.jsx("div",{className:"shrink-0 border-t p-2",children:n.jsx(Fs,{canAddSection:nn,onAddSection:()=>ge(!0)})})]},"editor-section-list"):mo,n.jsx(Qo,{open:le!==null,onOpenChange:t=>{t||_e(null)},defaultBlockId:le!==null?us(ye[le]?.label??""):"",isPending:q.isPending,onSubmit:Oa}),xe&&n.jsx(Jr,{open:Me,onOpenChange:t=>{ge(t),t||(ve.current=null)},meta:i,decofile:u,previewBaseUrl:xe,onSelect:Ba}),Re&&v&&u&&n.jsx(wr,{open:Re,onOpenChange:je,pageKey:v,decofile:u}),fe!==null&&n.jsx(Gn,{open:!0,initialName:Rt(ce[fe]?.rule,u??{},i??void 0)?Ut(ce[fe]?.rule,u??{},lt,i??void 0):"",autoLabel:lt(As(ce[fe]?.rule,u??{},i??void 0)),isPending:Nt,onSubmit:async t=>{await to(fe,t)},onOpenChange:t=>{!t&&!Nt&&te(null)}}),pe!==null&&n.jsx(Gn,{open:!0,initialName:Rt(ht[pe]?.rule,u??{},i??void 0)?Ut(ht[pe]?.rule,u??{},lt,i??void 0):"",autoLabel:lt(As(ht[pe]?.rule,u??{},i??void 0)),isPending:Nt,onSubmit:async t=>{await so(pe,t)},onOpenChange:t=>{!t&&!Nt&&se(null)}})]})})}export{Bc as SectionsEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as $,b as A,r as R,l as G,j as s,B as H}from"./index-B-RfjkQs.js";import{a as J,d as K,b as Q,D as U}from"./dialog-fTIcTyHb.js";import{c as V,b as W,a as X,D as Y}from"./drawer-Dj7i5SNu.js";import{u as Z}from"./use-mobile-BA2OXMES.js";import{c as ee}from"./chat-context-CypzFnUJ.js";import{S as F,M as se}from"./decopilot-DZa7cUdc.js";import{M as le,a as oe}from"./index-haAT4fp-.js";function he(L){const e=$.c(48),{variant:t,className:o,placeholder:n,model:l,isLoading:I,credentialId:P,onCredentialChange:k,onModelChange:v,filterModels:E}=L,z=t===void 0?"borderless":t,w=n===void 0?"Select model":n,r=A(),[a,S]=R.useState(!1),i=v!==void 0,q=Z(),O=z==="borderless"?"ghost":"outline",_=z==="borderless"&&"md:border-none";let d;e[0]!==o||e[1]!==_?(d=G("text-sm hover:bg-accent classic:rounded-lg py-0.5 px-1 gap-1 shadow-none cursor-pointer border-0 group focus-visible:ring-0 focus-visible:ring-offset-0 min-w-0 shrink justify-start overflow-hidden",_,o),e[0]=o,e[1]=_,e[2]=d):d=e[2];let c;e[3]!==I||e[4]!==l||e[5]!==w||e[6]!==i?(c=i?s.jsx(F,{model:l??null,placeholder:w,isLoading:I}):s.jsx(ne,{placeholder:w}),e[3]=I,e[4]=l,e[5]=w,e[6]=i,e[7]=c):c=e[7];let D;e[8]!==O||e[9]!==d||e[10]!==c?(D=s.jsx(H,{variant:O,size:"sm",className:d,children:c}),e[8]=O,e[9]=d,e[10]=c,e[11]=D):D=e[11];const f=D;let y;e[12]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(se,{}),e[12]=y):y=e[12];let N;e[13]!==P||e[14]!==E||e[15]!==l||e[16]!==k||e[17]!==v||e[18]!==i?(N=s.jsx(R.Suspense,{fallback:y,children:i?s.jsx(le,{onClose:()=>S(!1),credentialId:P??null,onCredentialChange:k??te,selectedModel:l??null,onModelChange:v,filterModels:E}):s.jsx(oe,{onClose:()=>S(!1)})}),e[13]=P,e[14]=E,e[15]=l,e[16]=k,e[17]=v,e[18]=i,e[19]=N):N=e[19];const m=N;if(q){let g;e[20]!==f?(g=s.jsx(V,{asChild:!0,children:f}),e[20]=f,e[21]=g):g=e[21];let j;e[22]!==r?(j=r("chat.selectModel.selectModel"),e[22]=r,e[23]=j):j=e[23];let M;e[24]!==j?(M=s.jsx(W,{className:"sr-only",children:j}),e[24]=j,e[25]=M):M=e[25];let b;e[26]!==m?(b=s.jsx("div",{className:"flex-1 flex flex-col min-h-0 overflow-hidden",children:m}),e[26]=m,e[27]=b):b=e[27];let C;e[28]!==M||e[29]!==b?(C=s.jsxs(X,{className:"p-0 flex flex-col max-h-[95vh]",children:[M,b]}),e[28]=M,e[29]=b,e[30]=C):C=e[30];let T;return e[31]!==a||e[32]!==g||e[33]!==C?(T=s.jsxs(Y,{open:a,onOpenChange:S,children:[g,C]}),e[31]=a,e[32]=g,e[33]=C,e[34]=T):T=e[34],T}let h;e[35]!==f?(h=s.jsx(J,{asChild:!0,children:f}),e[35]=f,e[36]=h):h=e[36];let x;e[37]!==r?(x=r("chat.selectModel.selectModel"),e[37]=r,e[38]=x):x=e[38];let p;e[39]!==x?(p=s.jsx(K,{className:"sr-only",children:x}),e[39]=x,e[40]=p):p=e[40];let u;e[41]!==m||e[42]!==p?(u=s.jsxs(Q,{className:"p-0 gap-0 sm:max-w-fit overflow-hidden h-[100dvh] sm:h-auto max-h-[100dvh] sm:max-h-[85vh] w-full max-w-full sm:max-w-fit rounded-none sm:rounded-xl border-0 sm:border",closeButtonClassName:"top-3.5 right-3.5 z-20",children:[p,m]}),e[41]=m,e[42]=p,e[43]=u):u=e[43];let B;return e[44]!==a||e[45]!==h||e[46]!==u?(B=s.jsxs(U,{open:a,onOpenChange:S,children:[h,u]}),e[44]=a,e[45]=h,e[46]=u,e[47]=B):B=e[47],B}function te(){}function ne(L){const e=$.c(4),{placeholder:t}=L,{selectedModel:o,isModelsLoading:n}=ee();let l;return e[0]!==n||e[1]!==o||e[2]!==t?(l=s.jsx(F,{model:o,placeholder:t,isLoading:n}),e[0]=n,e[1]=o,e[2]=t,e[3]=l):l=e[3],l}export{he as M};
|