decocms 4.46.2 → 4.46.4
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-D9sGnK-9.js → AlertCircle-BesCMDS0.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-B1h7NYT7.js → ArrowUpRight-Go8sBq25.js} +1 -1
- package/dist/client/assets/{Check-BjITlV29.js → Check-Dm5ESjHa.js} +1 -1
- package/dist/client/assets/{CheckCircle-BB6vk6oF.js → CheckCircle-Cp3stx_U.js} +1 -1
- package/dist/client/assets/{ChevronDown-CP20sAWY.js → ChevronDown-DnTmPo-Z.js} +1 -1
- package/dist/client/assets/{ChevronRight-ChI3PJvZ.js → ChevronRight-kjTTTYjA.js} +1 -1
- package/dist/client/assets/{ChevronUp-C5771OOc.js → ChevronUp-ZcXMWp15.js} +1 -1
- package/dist/client/assets/{Circle-9F0vtvpH.js → Circle-BHD7h_nD.js} +1 -1
- package/dist/client/assets/{Copy01-9jeLkfsF.js → Copy01-DUdq-NQv.js} +1 -1
- package/dist/client/assets/{DotsVertical-BqEs4xQp.js → DotsVertical-k6OtiFxK.js} +1 -1
- package/dist/client/assets/{Eye-Dr_xTPtU.js → Eye-DTuW0TON.js} +1 -1
- package/dist/client/assets/{FilterLines-BZ5zsaAc.js → FilterLines-Ccyc-eUu.js} +1 -1
- package/dist/client/assets/{Globe01-B461Nwwh.js → Globe01-BJZHLlv7.js} +1 -1
- package/dist/client/assets/{Globe04-DOJ4tEQ7.js → Globe04-CWPdNB4s.js} +1 -1
- package/dist/client/assets/{HardDrive-B2RZmWGJ.js → HardDrive-BiJrAS_Z.js} +1 -1
- package/dist/client/assets/{Key01-CIqvP5Ev.js → Key01-D-5fV-U4.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CLNH1DfF.js → LayoutLeft-dfj02VmP.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BFwOFRst.js → LinkExternal01-CMfJjpLH.js} +1 -1
- package/dist/client/assets/{List-BaCDQ99v.js → List-Bug9pmiY.js} +1 -1
- package/dist/client/assets/{Loading02-CC5chJbg.js → Loading02-C2o878Bj.js} +1 -1
- package/dist/client/assets/{Monitor01-B-0ksZCH.js → Monitor01-BXk1APte.js} +1 -1
- package/dist/client/assets/{Palette-DsapFGR6.js → Palette-B-gsq7vu.js} +1 -1
- package/dist/client/assets/{Play-CiLKvyf1.js → Play-Vc_rOusg.js} +1 -1
- package/dist/client/assets/{Plus-C4ugKimL.js → Plus-1ng4gjYL.js} +1 -1
- package/dist/client/assets/{SearchLg-DU6XNSBT.js → SearchLg-B72UA_UA.js} +1 -1
- package/dist/client/assets/{SearchMd-BKdnEqzA.js → SearchMd-BlS1_9IW.js} +1 -1
- package/dist/client/assets/{Settings02-DQPzjW01.js → Settings02-c0IoQpJn.js} +1 -1
- package/dist/client/assets/{Shield01-2mEYEYRl.js → Shield01-DkH7Np8y.js} +1 -1
- package/dist/client/assets/{Star01-2wUlEqlq.js → Star01-CYOx9mF5.js} +1 -1
- package/dist/client/assets/{Stars01-BbVTOrWm.js → Stars01-DYW1Ue2r.js} +1 -1
- package/dist/client/assets/{Stars02-Dit_hv0j.js → Stars02-DBIfNQU7.js} +1 -1
- package/dist/client/assets/{Sun-9eC9mMX9.js → Sun-B6GB8iJu.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-8RU2_S-C.js → SwitchHorizontal01-CEpMuOrt.js} +1 -1
- package/dist/client/assets/{Tool01-oblzQ_m4.js → Tool01-D3LmAIF7.js} +1 -1
- package/dist/client/assets/{Trash01-Dhd1UnVB.js → Trash01-D_2bKiRr.js} +1 -1
- package/dist/client/assets/{Upload01-DBe4YIZX.js → Upload01-BXk9XU4W.js} +1 -1
- package/dist/client/assets/{User01-CF_Gf7t9.js → User01-DOpmPeGR.js} +1 -1
- package/dist/client/assets/{Users01-C6QDIkrj.js → Users01-D2imm0RI.js} +1 -1
- package/dist/client/assets/{Users03-DNOs9Pga.js → Users03-DtaNDPUj.js} +1 -1
- package/dist/client/assets/{X-CW256acn.js → X-HTDFt_4A.js} +1 -1
- package/dist/client/assets/{XCircle-Ubd_lt39.js → XCircle-6HMBNNDh.js} +1 -1
- package/dist/client/assets/{XClose-DetSXJQx.js → XClose-gEf91vuJ.js} +1 -1
- package/dist/client/assets/{Zap-BWjK0pR8.js → Zap-CfA1sQc0.js} +1 -1
- package/dist/client/assets/{ZapSquare-CPKbKk6M.js → ZapSquare-BPABqngz.js} +1 -1
- package/dist/client/assets/{ZoomOut-Dzv5qUFR.js → ZoomOut-ZBUUT0Rv.js} +1 -1
- package/dist/client/assets/{access-gate-Bnbz-F0X.js → access-gate-eNBW8UCF.js} +1 -1
- package/dist/client/assets/{add-section-modal-Ct6xmoDd.js → add-section-modal-DxysqrVc.js} +1 -1
- package/dist/client/assets/{agent-capabilities-BA64EPhR.js → agent-capabilities-CG9JW9RR.js} +1 -1
- package/dist/client/assets/{agent-icon-WFSZC34Q.js → agent-icon-DBuu5nto.js} +1 -1
- package/dist/client/assets/{agents-list-BrKTooje.js → agents-list-C8dmmkXg.js} +1 -1
- package/dist/client/assets/{ai-providers-8-EH7ro1.js → ai-providers-CJgvvARo.js} +1 -1
- package/dist/client/assets/{alert-DG3EBcCO.js → alert-BzRsQLi2.js} +1 -1
- package/dist/client/assets/{alert-dialog-CtGxaRKW.js → alert-dialog-CSKbbXu1.js} +1 -1
- package/dist/client/assets/app-editor-BzsMwvN0.js +1 -0
- package/dist/client/assets/{auth-DEyPYEvA.js → auth-CQEpDOqQ.js} +1 -1
- package/dist/client/assets/{auth-catchall-C7ETGqnK.js → auth-catchall-NCEi8hlr.js} +1 -1
- package/dist/client/assets/{auth-entry-CbkA6iJs.js → auth-entry-BlXPQpbt.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BebkeKms.js → auth-split-layout-DkL0G_pq.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-g9OCjj13.js → authenticate-and-persist-oauth-B2nzGDPf.js} +1 -1
- package/dist/client/assets/{automation-list-row-CtJ-FXg2.js → automation-list-row-Dbg4eyNL.js} +1 -1
- package/dist/client/assets/{automation-runs-CPrAv5hK.js → automation-runs-CiDcCsw6.js} +1 -1
- package/dist/client/assets/{automations-DEkIcBFJ.js → automations-V27H2Ozo.js} +1 -1
- package/dist/client/assets/{autosend-DsvSEeKi.js → autosend-BL34pOJn.js} +1 -1
- package/dist/client/assets/{avatar-DbN4IBGI.js → avatar-Br6d-tNW.js} +1 -1
- package/dist/client/assets/{badge-Co1sD3N3.js → badge-DetkesDd.js} +1 -1
- package/dist/client/assets/{block-document-DSXDa6dk.js → block-document-BP9PEgOK.js} +2 -2
- package/dist/client/assets/{brand-context-ds3aRbzh.js → brand-context-DXc368dS.js} +1 -1
- package/dist/client/assets/{breadcrumb-DXL2uvmv.js → breadcrumb-xk0vhdK8.js} +1 -1
- package/dist/client/assets/{buckets-CaajrYgi.js → buckets-DiJ8juM6.js} +1 -1
- package/dist/client/assets/{bulk-category-panel--rOm14jB.js → bulk-category-panel-CcYC-s0_.js} +1 -1
- package/dist/client/assets/{calendar-CmJTWNZE.js → calendar-C6ttWVwF.js} +1 -1
- package/dist/client/assets/{capability-load-error-sobVTtf7.js → capability-load-error-DX9neg2m.js} +1 -1
- package/dist/client/assets/{card-Bnar-Iu5.js → card-HSSdQLhy.js} +1 -1
- package/dist/client/assets/category-editor-5AynSD13.js +1 -0
- package/dist/client/assets/{chat-context-C9RZ_u31.js → chat-context-DrP38cnA.js} +1 -1
- package/dist/client/assets/{checkbox-B0M0CFfW.js → checkbox-Cohapdc4.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BSzrP9kG.js → cli-auth-success-rlm18qpo.js} +1 -1
- package/dist/client/assets/{collection-detail-Dm3KeGJT.js → collection-detail-aDE_7EGa.js} +1 -1
- package/dist/client/assets/{collection-display-button-DUndX653.js → collection-display-button-CKHi85Fc.js} +1 -1
- package/dist/client/assets/{collection-search-D0a-m_NL.js → collection-search-D604bOGw.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CPVrFz5z.js → collection-table-wrapper-Bsyl29eV.js} +1 -1
- package/dist/client/assets/{collection-tabs-CNA3an60.js → collection-tabs-CkBBgRXV.js} +1 -1
- package/dist/client/assets/{command-DGmwoZuF.js → command-DKgDtpKr.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-BF31ad1W.js → commerce-onboarding-CVL8UgS8.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-DFIRz6n5.js → connect-desktop-dialog-gd4MP2Wq.js} +1 -1
- package/dist/client/assets/{connection-card-CCG2U4yN.js → connection-card-_5vsHFhc.js} +1 -1
- package/dist/client/assets/{connection-detail-C8qxmxUv.js → connection-detail-WHtWiXFl.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-rgxormxA.js → connection-form-helpers-CdTf7VjM.js} +1 -1
- package/dist/client/assets/{connections-CHoCKduO.js → connections-CB5grnKe.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-D2QRgr6F.js → decopilot-sse-pool-BbnLH6Ve.js} +1 -1
- package/dist/client/assets/{dialog-BfE-bxwJ.js → dialog-uKhdVqJA.js} +1 -1
- package/dist/client/assets/{domain-settings-BCExLb2e.js → domain-settings-BuOk0UUg.js} +1 -1
- package/dist/client/assets/{drawer-CQgkwous.js → drawer-Bw7fcnVM.js} +1 -1
- package/dist/client/assets/{dropdown-menu-C88JkCey.js → dropdown-menu-B9AtA-ud.js} +1 -1
- package/dist/client/assets/{empty-state-Beqd7aNQ.js → empty-state-CwYkMZ80.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DXV17csC.js → extract-connection-data-BPZJfaxl.js} +1 -1
- package/dist/client/assets/{file-explorer-CsYRpzO9.js → file-explorer-D1Nn5OxI.js} +1 -1
- package/dist/client/assets/{file-type-icon-Z3xofeT9.js → file-type-icon-BLdK0XSX.js} +1 -1
- package/dist/client/assets/{files-Bka1f3WC.js → files-BY2gXF9Z.js} +1 -1
- package/dist/client/assets/{form-DDJB0Kef.js → form-D0k9F-Ve.js} +1 -1
- package/dist/client/assets/{general-BUawMCEA.js → general-BYQRYcEy.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CPC5WYZv.js → github-repo-picker-DCqCY0h-.js} +1 -1
- package/dist/client/assets/{hooks-Cp3yA0hj.js → hooks-D4jDRo4J.js} +1 -1
- package/dist/client/assets/{index-DLeaFjhW.js → index-BPsg--Rr.js} +1 -1
- package/dist/client/assets/{index-EDsGyjEV.js → index-Bq3iM_o_.js} +1 -1
- package/dist/client/assets/{index-rTl_zI5y.js → index-CLI0HQX-.js} +1 -1
- package/dist/client/assets/{index-qZ858nUo.js → index-Cqd1ksWV.js} +1 -1
- package/dist/client/assets/{index-a8TddNOX.js → index-DL-IxF9S.js} +1 -1
- package/dist/client/assets/{index-D1QwQZ3L.js → index-DZnQksMp.js} +1 -1
- package/dist/client/assets/{index-X0QSQvwS.js → index-Dxfub_dn.js} +1 -1
- package/dist/client/assets/{index-_9_If8hV.js → index-EwY8NV0K.js} +3 -3
- package/dist/client/assets/{index-CbRx1KlA.js → index-L0Wb7a86.js} +1 -1
- package/dist/client/assets/{index-n9tzDuyG.js → index-RczXdqWh.js} +1 -1
- package/dist/client/assets/{index-D4DIF5Ub.js → index-_y-1S30C.js} +1 -1
- package/dist/client/assets/{index-q89_jVMH.js → index-haP3CQuD.js} +27 -27
- package/dist/client/assets/{index-FwoHu01Q.js → index-oK7QkoIv.js} +1 -1
- package/dist/client/assets/{index-redirect-CDwbRb3Y.js → index-redirect-Bkzdn5wg.js} +1 -1
- package/dist/client/assets/{index-K1TULXrf.js → index-yUxZlOjL.js} +1 -1
- package/dist/client/assets/{input-keyrerlc.js → input-gQLmL-Hg.js} +1 -1
- package/dist/client/assets/{integration-icon-FbMUhCw2.js → integration-icon-B27GbdA2.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-HmSAAs32.js → invite-member-dialog-VSfjl8M3.js} +1 -1
- package/dist/client/assets/{label-77EmLnyJ.js → label-391BBFhc.js} +1 -1
- package/dist/client/assets/{login-DLuWZdNi.js → login-B62wMsxn.js} +1 -1
- package/dist/client/assets/{mcp-oauth-ULZ6x3CO.js → mcp-oauth-5UuoqyFh.js} +1 -1
- package/dist/client/assets/{members-DXp_PL5e.js → members-DH8XdXH8.js} +1 -1
- package/dist/client/assets/{monaco-editor-DJn77EfB.js → monaco-editor-zjGV-1fv.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DsucjWjf.js → monitoring-stats-row-ujaaBOBm.js} +1 -1
- package/dist/client/assets/{oauth-callback-BHEpPOWa.js → oauth-callback-CtDichjK.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-tq6e7Jrv.js → oauth-callback-ai-provider-CY1kYHKX.js} +1 -1
- package/dist/client/assets/{onboarding-D3902BZ7.js → onboarding-wuEreiP1.js} +1 -1
- package/dist/client/assets/{org-install-DlplPO8t.js → org-install-BNwBH8Hg.js} +1 -1
- package/dist/client/assets/{org-layout-QAoMH7FC.js → org-layout-BiHQOqNw.js} +1 -1
- package/dist/client/assets/{organization-choice-BU6VxPhK.js → organization-choice-fRp52IZB.js} +1 -1
- package/dist/client/assets/{page-seo-form-BbcbQDOg.js → page-seo-form-BeBMrPD7.js} +1 -1
- package/dist/client/assets/page-seo-sheet-C8lyoDIL.js +1 -0
- package/dist/client/assets/{popover-JdHRslRj.js → popover-CUL8mDnT.js} +1 -1
- package/dist/client/assets/{post-editor-Ftlv1_B7.js → post-editor-fgBatoPz.js} +1 -1
- package/dist/client/assets/{primitives-sdV34vpG.js → primitives-DVFocAIn.js} +1 -1
- package/dist/client/assets/{profile-Bpz1yCnD.js → profile-DZh4xY6j.js} +1 -1
- package/dist/client/assets/project-app-view-BjLovkNt.js +1 -0
- package/dist/client/assets/record-editor-DqEJ3lS6.js +1 -0
- package/dist/client/assets/registry-BG-xXHkR.js +2 -0
- package/dist/client/assets/{registry-layout-CDZ5Aq1h.js → registry-layout-CrIQXpMQ.js} +1 -1
- package/dist/client/assets/{require-capability-DzSwcsvh.js → require-capability-COkJkMhN.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BbzaCJga.js → required-auth-layout-CyG-Dw8D.js} +1 -1
- package/dist/client/assets/{reset-password-Dm1B1ak0.js → reset-password-PyZhVzOR.js} +1 -1
- package/dist/client/assets/{roles-lA00vDfm.js → roles-CzIzFSha.js} +1 -1
- package/dist/client/assets/{search-input-DETYTi0x.js → search-input-t1rg8c3m.js} +1 -1
- package/dist/client/assets/{secrets-BhpaAx2G.js → secrets-B4BIo2i6.js} +1 -1
- package/dist/client/assets/sections-editor-D-50vJIB.js +2 -0
- package/dist/client/assets/{select-Bljv__bR.js → select-DzbqXUcB.js} +1 -1
- package/dist/client/assets/{select-model-Dbg7lBPI.js → select-model-BWuYEwR6.js} +1 -1
- package/dist/client/assets/{seo-editor-DaRNiJ_l.js → seo-editor-0GEMl_aC.js} +1 -1
- package/dist/client/assets/{settings-layout-C_bdIstz.js → settings-layout-OZLjlrBx.js} +1 -1
- package/dist/client/assets/{settings-section-Blbpk6ox.js → settings-section-BQEDNgFm.js} +1 -1
- package/dist/client/assets/{shell-controls-UilXtoei.js → shell-controls-DawPEewY.js} +1 -1
- package/dist/client/assets/{shell-layout-DyS6Gvz7.js → shell-layout-DFjMT1kt.js} +1 -1
- package/dist/client/assets/{sidebar-DMA1r0AO.js → sidebar-BLRhTFxO.js} +1 -1
- package/dist/client/assets/{skeleton-CbZ62d8f.js → skeleton-BIG5A0jD.js} +1 -1
- package/dist/client/assets/{sso-4t2R03nl.js → sso-DnhjaWnn.js} +1 -1
- package/dist/client/assets/{store-7VVCK2Yq.js → store-UF_cnr-_.js} +1 -1
- package/dist/client/assets/store-registry-G4lb87Ue.js +2 -0
- package/dist/client/assets/{studio-tools-CKe88Nyn.js → studio-tools-BgiCb0dU.js} +1 -1
- package/dist/client/assets/{switch-FcQwIjoX.js → switch-DhQcwcK-.js} +1 -1
- package/dist/client/assets/{table-CT3SbJYL.js → table-fe2OuOpR.js} +1 -1
- package/dist/client/assets/{tabs-C67z6z0u.js → tabs-CikThblR.js} +1 -1
- package/dist/client/assets/{textarea-5xpZZEZ9.js → textarea-EdI2QJ_y.js} +1 -1
- package/dist/client/assets/{toggle-group-COgQnBbS.js → toggle-group-Bq3Ku7M9.js} +1 -1
- package/dist/client/assets/{toolbar-CxFn3h3s.js → toolbar-COzRV_lZ.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-Cju6I9oc.js → toolbar-icon-button-CbREYw4E.js} +1 -1
- package/dist/client/assets/{tools-list-CDDnJx86.js → tools-list-DUtpssRD.js} +1 -1
- package/dist/client/assets/{tooltip-TevqeZrN.js → tooltip-D5Xm72-i.js} +1 -1
- package/dist/client/assets/{types-DbmHevzr.js → types-B7A5fQVG.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BQPMvCiK.js → use-ai-providers-DubywYem.js} +1 -1
- package/dist/client/assets/{use-automations-DA6_tOqf.js → use-automations-CKjvxtRZ.js} +1 -1
- package/dist/client/assets/{use-capability-BD-cXUBD.js → use-capability-DQv78B3C.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DBEC1lDq.js → use-clock-tick-DNccK1vY.js} +1 -1
- package/dist/client/assets/{use-collections-CBcI2DFH.js → use-collections-CU9Ik1vU.js} +1 -1
- package/dist/client/assets/{use-connection-Ce9zhGhj.js → use-connection-DwzQTt1G.js} +1 -1
- package/dist/client/assets/{use-copy-1w6BBUlk.js → use-copy-rlUJFqyD.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Czq-xVWo.js → use-create-virtual-mcp-DfXEJZUy.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-D5y8MFA-.js → use-debounced-autosave-CC8-WPA8.js} +1 -1
- package/dist/client/assets/{use-debounced-value-KNtpfE1L.js → use-debounced-value-BTckcxgE.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-kUUObkR0.js → use-decopilot-events-FA84-DDr.js} +1 -1
- package/dist/client/assets/{use-delete-connection-8tbVczHM.js → use-delete-connection-BjsKEQDW.js} +1 -1
- package/dist/client/assets/{use-file-configs-DSNRtEad.js → use-file-configs-8-VV1ZIA.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-XnGTmELt.js → use-infinite-scroll-B4YYueyN.js} +1 -1
- package/dist/client/assets/{use-join-requests-BQVKXd1A.js → use-join-requests-VIFxQLEw.js} +1 -1
- package/dist/client/assets/{use-mcp-client-OHo8USpe.js → use-mcp-client-DC5eUde6.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DR3AEXCG.js → use-mcp-prompts-u6lm7jM9.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DUvuQsnJ.js → use-mcp-tools-ByMVdtvY.js} +1 -1
- package/dist/client/assets/{use-members-D-UWukwW.js → use-members-HEwKDSZW.js} +1 -1
- package/dist/client/assets/{use-mobile-B8GotXbv.js → use-mobile-D5IfeevQ.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-nPCo0XqD.js → use-navigate-to-agent-alM4INC3.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DA-s7_Te.js → use-org-auth-client-BrFkPMSa.js} +1 -1
- package/dist/client/assets/{use-org-sso-BxrJwsL0.js → use-org-sso-ygG1rHWE.js} +1 -1
- package/dist/client/assets/{use-organization-roles-AdIRuUD7.js → use-organization-roles-BoozhZxu.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Bbnv1Tgt.js → use-organization-settings-B_wSTZlk.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Bam9Xvh6.js → use-registry-connections-SmWa3XND.js} +1 -1
- package/dist/client/assets/{use-secrets-Coat2fzG.js → use-secrets-C13v7vOo.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Ole3p-tS.js → use-status-sounds-BrEy-L9k.js} +1 -1
- package/dist/client/assets/{use-view-mode-Dp93w6NF.js → use-view-mode-DBGTodqT.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Bl0CdGKq.js → use-virtual-mcp-DA4Lhfp-.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Dmm16Uo9.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DvL0adQn.js +1 -0
- package/dist/client/assets/{variant-calendar-BtYwzOUi.js → variant-calendar-DYGP-x8e.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Cls2kTwk.js → view-mode-toggle-DyIwkWfM.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/app-editor-DUb-JCFJ.js +0 -1
- package/dist/client/assets/category-editor-1bOtS65t.js +0 -1
- package/dist/client/assets/page-seo-sheet-BiP6ywvB.js +0 -1
- package/dist/client/assets/project-app-view-CNLjRDfU.js +0 -1
- package/dist/client/assets/record-editor-DjtjK277.js +0 -1
- package/dist/client/assets/registry-Dw-S8OOY.js +0 -2
- package/dist/client/assets/sections-editor-D8MMUxK-.js +0 -2
- package/dist/client/assets/store-registry-B9o25eoh.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DTJPJ103.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BqbqsWlq.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as gt,r as w,j as o,l as yt,t as ut,i as St}from"./index-_9_If8hV.js";import{i as _t}from"./ChevronRight-ChI3PJvZ.js";import{A as jt}from"./automation-runs-CPrAv5hK.js";import{A as kt}from"./add-section-modal-Ct6xmoDd.js";import{aA as Bt,aB as wt,aC as At,t as Nt,w as Ct,aD as Rt,a8 as Et,aE as Kt,am as Tt}from"./index-q89_jVMH.js";import"./select-Bljv__bR.js";import"./tooltip-TevqeZrN.js";import"./Check-BjITlV29.js";import"./ChevronDown-CP20sAWY.js";import"./ChevronUp-C5771OOc.js";import"./useInfiniteQuery-DTJPJ103.js";import"./use-infinite-scroll-XnGTmELt.js";import"./use-connection-Ce9zhGhj.js";import"./use-collections-CBcI2DFH.js";import"./use-mcp-client-OHo8USpe.js";import"./constants-B72Xmt_K.js";import"./auth-DEyPYEvA.js";import"./use-virtual-mcp-Bl0CdGKq.js";import"./card-Bnar-Iu5.js";import"./sidebar-DMA1r0AO.js";import"./LayoutLeft-CLNH1DfF.js";import"./use-mobile-B8GotXbv.js";import"./X-CW256acn.js";import"./table-CT3SbJYL.js";import"./empty-state-Beqd7aNQ.js";import"./use-members-D-UWukwW.js";import"./use-org-auth-client-DA-s7_Te.js";import"./use-clock-tick-DBEC1lDq.js";import"./AlertCircle-D9sGnK-9.js";import"./CheckCircle-BB6vk6oF.js";import"./Circle-9F0vtvpH.js";import"./agent-icon-WFSZC34Q.js";import"./Tool01-oblzQ_m4.js";import"./SwitchHorizontal01-8RU2_S-C.js";import"./Settings02-DQPzjW01.js";import"./XCircle-Ubd_lt39.js";import"./ArrowUpRight-B1h7NYT7.js";import"./ZapSquare-CPKbKk6M.js";import"./Users03-DNOs9Pga.js";import"./Loading02-CC5chJbg.js";import"./Stars02-Dit_hv0j.js";import"./Copy01-9jeLkfsF.js";import"./ZoomOut-Dzv5qUFR.js";import"./DotsVertical-BqEs4xQp.js";import"./Globe01-B461Nwwh.js";import"./Eye-Dr_xTPtU.js";import"./FilterLines-BZ5zsaAc.js";import"./Star01-2wUlEqlq.js";import"./Globe04-DOJ4tEQ7.js";import"./HardDrive-B2RZmWGJ.js";import"./Key01-CIqvP5Ev.js";import"./LinkExternal01-BFwOFRst.js";import"./List-BaCDQ99v.js";import"./Monitor01-B-0ksZCH.js";import"./Sun-9eC9mMX9.js";import"./Palette-DsapFGR6.js";import"./Play-CiLKvyf1.js";import"./Plus-C4ugKimL.js";import"./SearchLg-DU6XNSBT.js";import"./SearchMd-BKdnEqzA.js";import"./Shield01-2mEYEYRl.js";import"./Stars01-BbVTOrWm.js";import"./Trash01-Dhd1UnVB.js";import"./Upload01-DBe4YIZX.js";import"./User01-CF_Gf7t9.js";import"./Users01-C6QDIkrj.js";import"./XClose-DetSXJQx.js";import"./Zap-BWjK0pR8.js";import"./use-automations-DA6_tOqf.js";import"./studio-tools-CKe88Nyn.js";import"./useSuspenseInfiniteQuery-BqbqsWlq.js";import"./badge-Co1sD3N3.js";import"./checkbox-B0M0CFfW.js";import"./command-DGmwoZuF.js";import"./index-rTl_zI5y.js";import"./dialog-BfE-bxwJ.js";import"./popover-JdHRslRj.js";import"./avatar-DbN4IBGI.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-1w6BBUlk.js";import"./file-type-icon-Z3xofeT9.js";import"./tab-id-DAJ8K7VA.js";import"./monaco-editor-DJn77EfB.js";import"./index-CbRx1KlA.js";import"./chat-context-C9RZ_u31.js";import"./autosend-DsvSEeKi.js";import"./hooks-Cp3yA0hj.js";import"./decopilot-sse-pool-D2QRgr6F.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-BQPMvCiK.js";import"./use-decopilot-events-kUUObkR0.js";import"./use-organization-settings-Bbnv1Tgt.js";import"./types-DbmHevzr.js";import"./shell-layout-DyS6Gvz7.js";import"./alert-dialog-CtGxaRKW.js";import"./required-auth-layout-BbzaCJga.js";import"./use-org-sso-BxrJwsL0.js";import"./integration-icon-FbMUhCw2.js";import"./use-navigate-to-agent-nPCo0XqD.js";import"./reusable-new-chat-qqWu133U.js";import"./use-mcp-prompts-DR3AEXCG.js";import"./form-DDJB0Kef.js";import"./label-77EmLnyJ.js";import"./input-keyrerlc.js";import"./drawer-CQgkwous.js";import"./collection-search-D0a-m_NL.js";import"./tabs-C67z6z0u.js";import"./toggle-group-COgQnBbS.js";import"./agent-capabilities-BA64EPhR.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CCG2U4yN.js";import"./use-registry-connections-Bam9Xvh6.js";import"./extract-connection-data-DXV17csC.js";import"./collection-tabs-CNA3an60.js";import"./textarea-5xpZZEZ9.js";import"./connection-form-helpers-rgxormxA.js";import"./authenticate-and-persist-oauth-g9OCjj13.js";import"./mcp-oauth-ULZ6x3CO.js";import"./connect-desktop-dialog-DFIRz6n5.js";import"./select-model-Dbg7lBPI.js";import"./skeleton-CbZ62d8f.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Blbpk6ox.js";import"./dropdown-menu-C88JkCey.js";import"./index-DLeaFjhW.js";import"./toolbar-CxFn3h3s.js";import"./use-debounced-value-KNtpfE1L.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Ole3p-tS.js";import"./use-mcp-tools-DUvuQsnJ.js";import"./use-capability-BD-cXUBD.js";import"./tools-list-CDDnJx86.js";import"./switch-FcQwIjoX.js";import"./use-debounced-autosave-D5y8MFA-.js";import"./index-qZ858nUo.js";import"./search-input-DETYTi0x.js";import"./github-repo-picker-CPC5WYZv.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-Coat2fzG.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-D1QwQZ3L.js";import"./get-initials-D-f_fDFw.js";import"./calendar-CmJTWNZE.js";import"./toolbar-icon-button-Cju6I9oc.js";import"./use-file-configs-DSNRtEad.js";import"./automation-list-row-CtJ-FXg2.js";function $t(l,t){const s=(l.title||l.resolveType.split("/").pop()||"").replace(/\.(tsx?|jsx?)$/,"").replace(/[^A-Za-z0-9_-]/g,""),f=/^[A-Za-z]/.test(s)&&s.length>0?s:"Section",a=Bt(t,f);return{blockKey:a,data:{__resolveType:l.resolveType,name:a}}}function kr(l){const t=gt.c(77),{orgSlug:s,virtualMcpId:f,branch:a,blockKey:i,block:n,meta:m,decofile:c,title:Z,excludeFields:H,schemaPending:at,previewBaseUrl:nt}=l,G=at===void 0?!1:at,u=nt===void 0?null:nt,x=typeof n?.__resolveType=="string"?n.__resolveType:"";let C;t[0]!==H||t[1]!==m||t[2]!==x?(C=wt(x,m,H),t[0]=H,t[1]=m,t[2]=x,t[3]=C):C=t[3];const h=C;let R;t[4]!==h?(R=!!h&&Object.keys(h.properties??{}).length>0,t[4]=h,t[5]=R):R=t[5];const J=R;let E;t[6]!==n||t[7]!==i||t[8]!==m||t[9]!==Z?(E=Z??(n?At(i,n,m):i),t[6]=n,t[7]=i,t[8]=m,t[9]=Z,t[10]=E):E=t[10];const v=E;let K;t[11]!==a||t[12]!==s||t[13]!==f?(K={orgSlug:s,virtualMcpId:f,branch:a},t[11]=a,t[12]=s,t[13]=f,t[14]=K):K=t[14];const{save:b,flush:Q,isPending:W}=Nt(K);let T;t[15]!==a||t[16]!==s||t[17]!==f?(T={orgSlug:s,virtualMcpId:f,branch:a},t[15]=a,t[16]=s,t[17]=f,t[18]=T):T=t[18];const X=Ct(T);let $;t[19]!==b?($=Et((e,r)=>b(e,r)),t[19]=b,t[20]=$):$=t[20];const Y=$,[ht,xt]=w.useState(i),[tt,ct]=w.useState(null),[et,dt]=w.useState(0);let F;t[21]===Symbol.for("react.memo_cache_sentinel")?(F=[],t[21]=F):F=t[21];const[p,ft]=w.useState(F),[ot,rt]=w.useState(!1),P=w.useRef(null);ht!==i&&(xt(i),ct(null),dt(Pt),ft([]));let O;t[22]!==n?(O=n??{},t[22]=n,t[23]=O):O=t[23];const it=O;let g;t[24]!==tt?(g=tt??{},t[24]=tt,t[25]=g):g=t[25];let z;t[26]!==it||t[27]!==g?(z={...it,...g},t[26]=it,t[27]=g,t[28]=z):z=t[28];const mt=z;let L;t[29]!==i||t[30]!==x||t[31]!==b?(L=e=>{const r=e;ct(r),b(i,{...r,__resolveType:x})},t[29]=i,t[30]=x,t[31]=b,t[32]=L):L=t[32];const st=L;let V;t[33]===Symbol.for("react.memo_cache_sentinel")?(V=e=>{ft(e)},t[33]=V):V=t[33];const pt=V;let q;t[34]!==c||t[35]!==Q||t[36]!==X?(q=async(e,r)=>{try{const{blockKey:d,data:N}=$t(e,c);await X.mutateAsync({blockKey:d,data:N}),ut.success(`Created section "${d}"`),r({__resolveType:d}),Q()}catch(d){const N=d,bt=N instanceof Error?N.message:"Could not add section";throw ut.error(bt),N}},t[34]=c,t[35]=Q,t[36]=X,t[37]=q):q=t[37];const y=q;let I;t[38]===Symbol.for("react.memo_cache_sentinel")?(I=e=>{P.current=e.append,rt(!0)},t[38]=I):I=t[38];const vt=I;let U;t[39]!==y?(U=async e=>{const r=P.current;if(r)try{await y(e,d=>{r(d),rt(!1),P.current=null})}catch{}},t[39]=y,t[40]=U):U=t[40];const lt=U;let D;t[41]!==p||t[42]!==v?(D=p.length>0?[v,...p]:[],t[41]=p,t[42]=v,t[43]=D):D=t[43];const A=D;let S;t[44]!==p||t[45]!==A||t[46]!==v?(S=A.length>0?o.jsx("nav",{"aria-label":"Editing breadcrumb",className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:A.map((e,r)=>{const d=r===A.length-1;return o.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[r>0&&o.jsx(_t,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("button",{type:"button",onClick:()=>{pt(r===0?[]:Rt(p,r)),dt(Ft)},title:e,className:yt("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",d?"font-medium text-foreground":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:e})]},`${e}-${r}`)})}):o.jsx("span",{className:"text-sm font-medium",children:v}),t[44]=p,t[45]=A,t[46]=v,t[47]=S):S=t[47];let _;t[48]!==W?(_=o.jsx(Kt,{isPending:W,isError:!1}),t[48]=W,t[49]=_):_=t[49];let j;t[50]!==S||t[51]!==_?(j=o.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[S,_]}),t[50]=S,t[51]=_,t[52]=j):j=t[52];let k;t[53]!==i||t[54]!==p||t[55]!==c||t[56]!==mt||t[57]!==et||t[58]!==y||t[59]!==st||t[60]!==J||t[61]!==m||t[62]!==u||t[63]!==Y||t[64]!==h||t[65]!==G?(k=o.jsx(jt,{className:"min-h-0 min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-6 py-6",children:o.jsx("div",{className:"mx-auto max-w-xl",children:J?o.jsx(Tt,{schema:h,value:mt,onChange:st,basePath:"",breadcrumbPath:p,onBreadcrumbChange:pt,decofile:c,meta:m,onSaveReferencedBlock:Y,previewBaseUrl:u,onAddSectionItem:y,onRequestAddSection:vt},`${i}:${et}`):G?o.jsxs("div",{className:"flex flex-col items-center gap-2 py-6 text-center text-xs text-muted-foreground",children:[o.jsx(St,{size:16,className:"animate-spin"}),"Loading app schema…"]}):o.jsx("div",{className:"py-6 text-center text-xs text-muted-foreground",children:"No editable schema found for this app."})})})}),t[53]=i,t[54]=p,t[55]=c,t[56]=mt,t[57]=et,t[58]=y,t[59]=st,t[60]=J,t[61]=m,t[62]=u,t[63]=Y,t[64]=h,t[65]=G,t[66]=k):k=t[66];let B;t[67]!==ot||t[68]!==c||t[69]!==lt||t[70]!==m||t[71]!==u?(B=u&&o.jsx(kt,{open:ot,onOpenChange:e=>{rt(e),e||(P.current=null)},meta:m,decofile:c,previewBaseUrl:u,onSelect:e=>{lt(e)}}),t[67]=ot,t[68]=c,t[69]=lt,t[70]=m,t[71]=u,t[72]=B):B=t[72];let M;return t[73]!==j||t[74]!==k||t[75]!==B?(M=o.jsxs("div",{className:"flex h-full flex-col",children:[j,k,B]}),t[73]=j,t[74]=k,t[75]=B,t[76]=M):M=t[76],M}function Ft(l){return l+1}function Pt(l){return l+1}export{kr as AppEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as W,r as S,l as q,j as t,B as I,i as V,t as U}from"./index-_9_If8hV.js";import{i as X}from"./XCircle-Ubd_lt39.js";import{aG as Y,a9 as T}from"./agent-icon-WFSZC34Q.js";import{n as Z}from"./LinkExternal01-BFwOFRst.js";import{f as K,a as _,b as tt,c as et,d as ot,e as rt,A as it,g as st}from"./alert-dialog-CtGxaRKW.js";import{I as G}from"./input-keyrerlc.js";import{L as H}from"./label-77EmLnyJ.js";import{aF as at,aG as mt,aP as nt,aE as lt,aH as R,aJ as pt,aQ as ct}from"./index-q89_jVMH.js";import{c as dt,B as ut,a as gt}from"./block-document-DSXDa6dk.js";import{u as xt,s as v,E as ft}from"./primitives-sdV34vpG.js";import{t as ht}from"./ChevronDown-CP20sAWY.js";import{J as jt,K as yt,I as vt}from"./automation-runs-CPrAv5hK.js";import"./AlertCircle-D9sGnK-9.js";import"./Tool01-oblzQ_m4.js";import"./SwitchHorizontal01-8RU2_S-C.js";import"./Settings02-DQPzjW01.js";import"./ArrowUpRight-B1h7NYT7.js";import"./ZapSquare-CPKbKk6M.js";import"./Users03-DNOs9Pga.js";import"./Loading02-CC5chJbg.js";import"./CheckCircle-BB6vk6oF.js";import"./Check-BjITlV29.js";import"./ChevronRight-ChI3PJvZ.js";import"./ChevronUp-C5771OOc.js";import"./Circle-9F0vtvpH.js";import"./Stars02-Dit_hv0j.js";import"./Copy01-9jeLkfsF.js";import"./ZoomOut-Dzv5qUFR.js";import"./DotsVertical-BqEs4xQp.js";import"./Globe01-B461Nwwh.js";import"./Eye-Dr_xTPtU.js";import"./FilterLines-BZ5zsaAc.js";import"./Star01-2wUlEqlq.js";import"./Globe04-DOJ4tEQ7.js";import"./HardDrive-B2RZmWGJ.js";import"./Key01-CIqvP5Ev.js";import"./LayoutLeft-CLNH1DfF.js";import"./List-BaCDQ99v.js";import"./Monitor01-B-0ksZCH.js";import"./Sun-9eC9mMX9.js";import"./Palette-DsapFGR6.js";import"./Play-CiLKvyf1.js";import"./Plus-C4ugKimL.js";import"./SearchLg-DU6XNSBT.js";import"./SearchMd-BKdnEqzA.js";import"./Shield01-2mEYEYRl.js";import"./Stars01-BbVTOrWm.js";import"./Trash01-Dhd1UnVB.js";import"./Upload01-DBe4YIZX.js";import"./User01-CF_Gf7t9.js";import"./Users01-C6QDIkrj.js";import"./XClose-DetSXJQx.js";import"./X-CW256acn.js";import"./Zap-BWjK0pR8.js";import"./chat-context-C9RZ_u31.js";import"./autosend-DsvSEeKi.js";import"./hooks-Cp3yA0hj.js";import"./use-mcp-client-OHo8USpe.js";import"./constants-B72Xmt_K.js";import"./auth-DEyPYEvA.js";import"./decopilot-sse-pool-D2QRgr6F.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-Bl0CdGKq.js";import"./use-collections-CBcI2DFH.js";import"./use-ai-providers-BQPMvCiK.js";import"./studio-tools-CKe88Nyn.js";import"./use-decopilot-events-kUUObkR0.js";import"./tab-id-DAJ8K7VA.js";import"./use-organization-settings-Bbnv1Tgt.js";import"./tooltip-TevqeZrN.js";import"./dialog-BfE-bxwJ.js";import"./drawer-CQgkwous.js";import"./collection-search-D0a-m_NL.js";import"./use-mobile-B8GotXbv.js";import"./use-mcp-prompts-DR3AEXCG.js";import"./shell-layout-DyS6Gvz7.js";import"./avatar-DbN4IBGI.js";import"./required-auth-layout-BbzaCJga.js";import"./use-org-sso-BxrJwsL0.js";import"./form-DDJB0Kef.js";import"./select-Bljv__bR.js";import"./tabs-C67z6z0u.js";import"./toggle-group-COgQnBbS.js";import"./agent-capabilities-BA64EPhR.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CCG2U4yN.js";import"./use-registry-connections-Bam9Xvh6.js";import"./use-connection-Ce9zhGhj.js";import"./useInfiniteQuery-DTJPJ103.js";import"./use-infinite-scroll-XnGTmELt.js";import"./extract-connection-data-DXV17csC.js";import"./card-Bnar-Iu5.js";import"./integration-icon-FbMUhCw2.js";import"./collection-tabs-CNA3an60.js";import"./badge-Co1sD3N3.js";import"./textarea-5xpZZEZ9.js";import"./connection-form-helpers-rgxormxA.js";import"./authenticate-and-persist-oauth-g9OCjj13.js";import"./mcp-oauth-ULZ6x3CO.js";import"./useSuspenseInfiniteQuery-BqbqsWlq.js";import"./connect-desktop-dialog-DFIRz6n5.js";import"./select-model-Dbg7lBPI.js";import"./checkbox-B0M0CFfW.js";import"./skeleton-CbZ62d8f.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Blbpk6ox.js";import"./command-DGmwoZuF.js";import"./index-rTl_zI5y.js";import"./popover-JdHRslRj.js";import"./dropdown-menu-C88JkCey.js";import"./index-DLeaFjhW.js";import"./file-type-icon-Z3xofeT9.js";import"./toolbar-CxFn3h3s.js";import"./use-debounced-value-KNtpfE1L.js";import"./index-CbRx1KlA.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Ole3p-tS.js";import"./empty-state-Beqd7aNQ.js";import"./use-mcp-tools-DUvuQsnJ.js";import"./types-DbmHevzr.js";import"./use-capability-BD-cXUBD.js";import"./tools-list-CDDnJx86.js";import"./switch-FcQwIjoX.js";import"./use-debounced-autosave-D5y8MFA-.js";import"./index-qZ858nUo.js";import"./sidebar-DMA1r0AO.js";import"./search-input-DETYTi0x.js";import"./github-repo-picker-CPC5WYZv.js";import"./use-navigate-to-agent-nPCo0XqD.js";import"./reusable-new-chat-qqWu133U.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-Coat2fzG.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-members-D-UWukwW.js";import"./use-org-auth-client-DA-s7_Te.js";import"./index-D1QwQZ3L.js";import"./get-initials-D-f_fDFw.js";import"./format-time-Cy7tTmZp.js";import"./calendar-CmJTWNZE.js";import"./toolbar-icon-button-Cju6I9oc.js";import"./use-file-configs-DSNRtEad.js";import"./monaco-editor-DJn77EfB.js";import"./use-automations-DA6_tOqf.js";import"./automation-list-row-CtJ-FXg2.js";import"./table-CT3SbJYL.js";import"./use-clock-tick-DBEC1lDq.js";import"./use-copy-1w6BBUlk.js";function bt(k){const e=W.c(18),{icon:f,title:n,defaultOpen:b,children:d}=k,D=b===void 0?!1:b,[x,A]=S.useState(D);let l;e[0]!==f?(l=t.jsx(f,{size:15}),e[0]=f,e[1]=l):l=e[1];let i;e[2]!==n?(i=t.jsx("span",{className:"flex-1 text-left",children:n}),e[2]=n,e[3]=i):i=e[3];const h=x&&"rotate-180";let r;e[4]!==h?(r=q("transition-transform",h),e[4]=h,e[5]=r):r=e[5];let p;e[6]!==r?(p=t.jsx(ht,{size:15,className:r}),e[6]=r,e[7]=p):p=e[7];let c;e[8]!==l||e[9]!==i||e[10]!==p?(c=t.jsx(jt,{asChild:!0,children:t.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground cursor-pointer",children:[l,i,p]})}),e[8]=l,e[9]=i,e[10]=p,e[11]=c):c=e[11];let s;e[12]!==d?(s=t.jsx(yt,{className:"px-2 pt-4",children:d}),e[12]=d,e[13]=s):s=e[13];let u;return e[14]!==x||e[15]!==c||e[16]!==s?(u=t.jsxs(vt,{open:x,onOpenChange:A,className:"mt-4",children:[c,s]}),e[14]=x,e[15]=c,e[16]=s,e[17]=u):u=e[17],u}function pr({orgSlug:k,virtualMcpId:e,branch:f,blockKey:n,block:b,decofile:d,meta:D,onManagePosts:x,onOpenPost:A,previewBaseUrl:l}){const i=at({orgSlug:k,virtualMcpId:e,branch:f}),h=mt(b,"categories"),[r,p,c]=xt(h,o=>{i.mutate({blockKey:n,data:R(n,"categories",o)})}),s=(o,w)=>p({...r,[o]:w}),u=dt({decofile:d,category:r,previewBaseUrl:l}),a=v(r.slug),[B,j]=S.useState(a),[m,C]=S.useState(null),[N,E]=S.useState(!1),P=a?nt(d).filter(o=>o.categorySlugs.includes(a)):[],y=P.length,J=o=>s("slug",o),L=async(o,w)=>{const Q=v(r.name);E(!0);try{let g=0;for(const{key:z,payload:F}of pt(d,"posts")){const O=ct(F,o,{name:Q,slug:w});O!==F&&(await i.mutateAsync({blockKey:z,data:R(z,"posts",O)}),g+=1)}const $={...r,slug:w};await i.mutateAsync({blockKey:n,data:R(n,"categories",$)}),c($),U.success(g>0?`Renamed slug and updated ${g} ${g===1?"post":"posts"}`:"Renamed slug"),C(null)}catch(g){j(o),C(null),U.error(g instanceof Error?g.message:"Rename failed")}finally{E(!1)}},M=()=>{const o=B.trim();if(o===a){B!==o&&j(o);return}if(!o){j(a);return}if(y===0){J(o);return}C({oldSlug:a,newSlug:o,count:y})};return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex h-full flex-col",children:[t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[t.jsx("span",{className:"truncate text-sm font-medium",children:v(r.name)||"Untitled category"}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[t.jsx(lt,{isPending:i.isPending,isError:i.isError}),u&&t.jsxs(I,{type:"button",variant:"outline",size:"sm",title:"Open the category preview in a new tab",onClick:()=>window.open(u,"_blank","noopener,noreferrer"),children:[t.jsx(Z,{size:14}),"See category preview"]})]})]}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[t.jsx(ft,{value:v(r.name),onChange:o=>s("name",o),placeholder:"Category name",className:"py-1 text-3xl font-bold text-foreground"}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(H,{htmlFor:"category-slug",children:"Slug"}),t.jsx(G,{id:"category-slug",value:B,onChange:o=>j(o.target.value),onBlur:M,placeholder:"my-category",className:"h-10"})]}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(H,{htmlFor:"category-description",children:"Description"}),t.jsx(G,{id:"category-description",value:v(r.description),onChange:o=>s("description",o.target.value),placeholder:"Short description for this category",className:"h-10"})]}),t.jsx(bt,{icon:Y,title:"Content",defaultOpen:!0,children:t.jsx(ut,{value:gt(r.sections),onChange:o=>s("sections",o),meta:D,emptyMessage:"This category has no content yet. Use ⊕ to add your first block."})}),t.jsxs("div",{className:"mt-6 overflow-hidden rounded-lg border bg-muted/30",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 py-3",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx(T,{size:16,className:"shrink-0 text-muted-foreground"}),t.jsxs("span",{className:"text-sm",children:[y," ",y===1?"post":"posts"," in this category"]})]}),t.jsxs(I,{type:"button",variant:"outline",size:"sm",disabled:!a,title:a?"Pick posts to add to this category":"Set a slug to add posts to this category",onClick:()=>x(a),children:["Add posts",t.jsx(X,{size:14})]})]}),y>0&&t.jsx("ul",{className:"divide-y border-t bg-background",children:P.map(o=>t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>A(o.key),className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-left transition-colors hover:bg-muted cursor-pointer",children:[t.jsx(T,{size:14,className:"shrink-0 text-muted-foreground"}),t.jsxs("span",{className:"min-w-0 flex-1",children:[t.jsx("span",{className:"block truncate text-sm",children:o.title||"Untitled post"}),o.slug&&t.jsx("span",{className:"block truncate text-xs text-muted-foreground",children:o.slug})]})]})},o.key))})]})]})})]}),t.jsx(K,{open:!!m,onOpenChange:o=>{o||N||(j(a),C(null))},children:t.jsxs(_,{children:[t.jsxs(tt,{children:[t.jsx(et,{children:"Rename category slug?"}),t.jsx(ot,{children:m?`Changing the slug from "${m.oldSlug}" to "${m.newSlug}" will update ${m.count} ${m.count===1?"post":"posts"} that reference this category.`:null})]}),t.jsxs(rt,{children:[t.jsx(it,{disabled:N,children:"Cancel"}),t.jsx(st,{onClick:o=>{o.preventDefault(),m&&L(m.oldSlug,m.newSlug)},disabled:N,children:N?t.jsxs(t.Fragment,{children:[t.jsx(V,{size:14,className:"animate-spin"}),"Renaming…"]}):"Rename & update posts"})]})]})})]})}export{pr as CategoryEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as it,r as b,j as e,i as rt}from"./index-_9_If8hV.js";import{m as mt,o as pt,p as st,q as at}from"./sidebar-DMA1r0AO.js";import{A as nt}from"./automation-runs-CPrAv5hK.js";import{r as lt,c as ct,u as dt,a as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-BbcbQDOg.js";import{B as xt}from"./index-q89_jVMH.js";import"./LayoutLeft-CLNH1DfF.js";import"./use-mobile-B8GotXbv.js";import"./X-CW256acn.js";import"./tooltip-TevqeZrN.js";import"./select-Bljv__bR.js";import"./Check-BjITlV29.js";import"./ChevronDown-CP20sAWY.js";import"./ChevronUp-C5771OOc.js";import"./useInfiniteQuery-DTJPJ103.js";import"./use-infinite-scroll-XnGTmELt.js";import"./use-connection-Ce9zhGhj.js";import"./use-collections-CBcI2DFH.js";import"./use-mcp-client-OHo8USpe.js";import"./constants-B72Xmt_K.js";import"./auth-DEyPYEvA.js";import"./use-virtual-mcp-Bl0CdGKq.js";import"./card-Bnar-Iu5.js";import"./table-CT3SbJYL.js";import"./empty-state-Beqd7aNQ.js";import"./use-members-D-UWukwW.js";import"./use-org-auth-client-DA-s7_Te.js";import"./use-clock-tick-DBEC1lDq.js";import"./AlertCircle-D9sGnK-9.js";import"./CheckCircle-BB6vk6oF.js";import"./Circle-9F0vtvpH.js";import"./agent-icon-WFSZC34Q.js";import"./Tool01-oblzQ_m4.js";import"./SwitchHorizontal01-8RU2_S-C.js";import"./Settings02-DQPzjW01.js";import"./XCircle-Ubd_lt39.js";import"./ArrowUpRight-B1h7NYT7.js";import"./ZapSquare-CPKbKk6M.js";import"./Users03-DNOs9Pga.js";import"./Loading02-CC5chJbg.js";import"./ChevronRight-ChI3PJvZ.js";import"./Stars02-Dit_hv0j.js";import"./Copy01-9jeLkfsF.js";import"./ZoomOut-Dzv5qUFR.js";import"./DotsVertical-BqEs4xQp.js";import"./Globe01-B461Nwwh.js";import"./Eye-Dr_xTPtU.js";import"./FilterLines-BZ5zsaAc.js";import"./Star01-2wUlEqlq.js";import"./Globe04-DOJ4tEQ7.js";import"./HardDrive-B2RZmWGJ.js";import"./Key01-CIqvP5Ev.js";import"./LinkExternal01-BFwOFRst.js";import"./List-BaCDQ99v.js";import"./Monitor01-B-0ksZCH.js";import"./Sun-9eC9mMX9.js";import"./Palette-DsapFGR6.js";import"./Play-CiLKvyf1.js";import"./Plus-C4ugKimL.js";import"./SearchLg-DU6XNSBT.js";import"./SearchMd-BKdnEqzA.js";import"./Shield01-2mEYEYRl.js";import"./Stars01-BbVTOrWm.js";import"./Trash01-Dhd1UnVB.js";import"./Upload01-DBe4YIZX.js";import"./User01-CF_Gf7t9.js";import"./Users01-C6QDIkrj.js";import"./XClose-DetSXJQx.js";import"./Zap-BWjK0pR8.js";import"./use-automations-DA6_tOqf.js";import"./studio-tools-CKe88Nyn.js";import"./useSuspenseInfiniteQuery-BqbqsWlq.js";import"./badge-Co1sD3N3.js";import"./checkbox-B0M0CFfW.js";import"./command-DGmwoZuF.js";import"./index-rTl_zI5y.js";import"./dialog-BfE-bxwJ.js";import"./popover-JdHRslRj.js";import"./avatar-DbN4IBGI.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-1w6BBUlk.js";import"./file-type-icon-Z3xofeT9.js";import"./tab-id-DAJ8K7VA.js";import"./monaco-editor-DJn77EfB.js";import"./index-CbRx1KlA.js";import"./chat-context-C9RZ_u31.js";import"./autosend-DsvSEeKi.js";import"./hooks-Cp3yA0hj.js";import"./decopilot-sse-pool-D2QRgr6F.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-BQPMvCiK.js";import"./use-decopilot-events-kUUObkR0.js";import"./use-organization-settings-Bbnv1Tgt.js";import"./types-DbmHevzr.js";import"./shell-layout-DyS6Gvz7.js";import"./alert-dialog-CtGxaRKW.js";import"./required-auth-layout-BbzaCJga.js";import"./use-org-sso-BxrJwsL0.js";import"./integration-icon-FbMUhCw2.js";import"./use-navigate-to-agent-nPCo0XqD.js";import"./reusable-new-chat-qqWu133U.js";import"./use-mcp-prompts-DR3AEXCG.js";import"./form-DDJB0Kef.js";import"./label-77EmLnyJ.js";import"./input-keyrerlc.js";import"./switch-FcQwIjoX.js";import"./drawer-CQgkwous.js";import"./collection-search-D0a-m_NL.js";import"./tabs-C67z6z0u.js";import"./toggle-group-COgQnBbS.js";import"./agent-capabilities-BA64EPhR.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CCG2U4yN.js";import"./use-registry-connections-Bam9Xvh6.js";import"./extract-connection-data-DXV17csC.js";import"./collection-tabs-CNA3an60.js";import"./textarea-5xpZZEZ9.js";import"./connection-form-helpers-rgxormxA.js";import"./authenticate-and-persist-oauth-g9OCjj13.js";import"./mcp-oauth-ULZ6x3CO.js";import"./connect-desktop-dialog-DFIRz6n5.js";import"./select-model-Dbg7lBPI.js";import"./skeleton-CbZ62d8f.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Blbpk6ox.js";import"./dropdown-menu-C88JkCey.js";import"./index-DLeaFjhW.js";import"./toolbar-CxFn3h3s.js";import"./use-debounced-value-KNtpfE1L.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Ole3p-tS.js";import"./use-mcp-tools-DUvuQsnJ.js";import"./use-capability-BD-cXUBD.js";import"./tools-list-CDDnJx86.js";import"./use-debounced-autosave-D5y8MFA-.js";import"./index-qZ858nUo.js";import"./search-input-DETYTi0x.js";import"./github-repo-picker-CPC5WYZv.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-Coat2fzG.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-D1QwQZ3L.js";import"./get-initials-D-f_fDFw.js";import"./calendar-CmJTWNZE.js";import"./toolbar-icon-button-Cju6I9oc.js";import"./use-file-configs-DSNRtEad.js";import"./automation-list-row-CtJ-FXg2.js";function ni(u){const t=it.c(46),{open:N,onOpenChange:P,orgSlug:Q,virtualMcpId:U,branch:W,decofile:G,meta:s,target:m,onSaved:X}=u,o=lt(G,m,s),k=m.kind==="site"?"site":m.pageKey,[Y,Z]=b.useState(k),[tt,i]=b.useState(null),[J,g]=b.useState(void 0),[x,y]=b.useState(0);Y!==k&&(Z(k),i(null),g(void 0),y(wt));const{persistSeo:a,persistRawSeo:I,flush:K,isPending:D}=ct({orgSlug:Q,virtualMcpId:U,branch:W,target:m,resolved:o,onSaved:X}),w=m.kind==="page",ot=w?o?.rawSeoData:void 0,v=J!==void 0?J:ot,et=w?dt(v)??void 0:void 0,h=tt??et??o?.seoData??{},p=o?St(h,o):null,n=p&&(!w||ft(v))?xt(p,s):null,_=m.kind==="page"?ut(G,s)?.seoData??void 0:void 0;let j;t[0]!==s?(j=vt(s),t[0]=s,t[1]=j):j=t[1];const A=j;let R;t[2]!==a||t[3]!==o||t[4]!==i?(R=r=>{if(!o)return;const L=r;i(L),a(L)},t[2]=a,t[3]=o,t[4]=i,t[5]=R):R=t[5];const B=R;let F;t[6]!==K||t[7]!==P?(F=r=>{r||K(),P(r)},t[6]=K,t[7]=P,t[8]=F):F=t[8];const M=F,V=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,q=m.kind==="site"&&o&&n,z=m.kind==="site"?"No site-level SEO block found.":o?"SEO schema not found for this page.":"Could not load page SEO.";let C;t[9]!==i?(C=()=>i(null),t[9]=i,t[10]=C):C=t[10];const H=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const $=O;let l;t[13]!==V?(l=e.jsx(mt,{className:"text-sm font-semibold",children:V}),t[13]=V,t[14]=l):l=t[14];let c;t[15]!==D?(c=D&&e.jsx(rt,{size:14,className:"animate-spin text-muted-foreground"}),t[15]=D,t[16]=c):c=t[16];let d;t[17]!==l||t[18]!==c?(d=e.jsxs(pt,{className:"px-4 py-3 border-b flex-row items-center justify-between space-y-0",children:[l,c]}),t[17]=l,t[18]=c,t[19]=d):d=t[19];let S;t[20]!==p||t[21]!==$||t[22]!==H||t[23]!==A||t[24]!==v||t[25]!==h||t[26]!==z||t[27]!==x||t[28]!==B||t[29]!==I||t[30]!==a||t[31]!==o||t[32]!==n||t[33]!==i||t[34]!==g||t[35]!==T||t[36]!==q||t[37]!==_?(S=!o||!T&&!q?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:z}):e.jsx(nt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"mx-auto max-w-sm",children:T?e.jsx(ht,{rawSeo:v,innerSeo:h,defaultResolveType:A,seoSchema:n,activeResolveType:p,seoTypeOptions:o.seoTypeOptions,formResetKey:x,siteDefaultSeo:_,onPersistRaw:r=>{g(r),I(r)},onInnerChange:r=>{i(r),a(r)},onClearForm:H,onBumpFormKey:$}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:B})})})}),t[20]=p,t[21]=$,t[22]=H,t[23]=A,t[24]=v,t[25]=h,t[26]=z,t[27]=x,t[28]=B,t[29]=I,t[30]=a,t[31]=o,t[32]=n,t[33]=i,t[34]=g,t[35]=T,t[36]=q,t[37]=_,t[38]=S):S=t[38];let f;t[39]!==d||t[40]!==S?(f=e.jsxs(st,{side:"right",className:"w-[400px] sm:max-w-[440px] p-0 gap-0",children:[d,S]}),t[39]=d,t[40]=S,t[41]=f):f=t[41];let E;return t[42]!==M||t[43]!==N||t[44]!==f?(E=e.jsx(at,{open:N,onOpenChange:M,children:f}),t[42]=M,t[43]=N,t[44]=f,t[45]=E):E=t[45],E}function yt(u){return u+1}function wt(u){return u+1}export{ni as SeoSheet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as $,$ as H,j as A}from"./index-_9_If8hV.js";import{a as L,g as E,s as b}from"./automation-runs-CPrAv5hK.js";import{u as O}from"./use-mcp-client-OHo8USpe.js";import{p as k}from"./constants-B72Xmt_K.js";import{b as q,c as B}from"./use-mcp-tools-DUvuQsnJ.js";import{aw as Y}from"./index-q89_jVMH.js";import{c as G}from"./monaco-editor-DJn77EfB.js";import{g as K,M as V,a as D}from"./types-DbmHevzr.js";import{a as z,u as F}from"./chat-context-C9RZ_u31.js";import{u as J}from"./shell-layout-DyS6Gvz7.js";import"./select-Bljv__bR.js";import"./tooltip-TevqeZrN.js";import"./Check-BjITlV29.js";import"./ChevronDown-CP20sAWY.js";import"./ChevronUp-C5771OOc.js";import"./useInfiniteQuery-DTJPJ103.js";import"./use-infinite-scroll-XnGTmELt.js";import"./use-connection-Ce9zhGhj.js";import"./use-collections-CBcI2DFH.js";import"./use-virtual-mcp-Bl0CdGKq.js";import"./card-Bnar-Iu5.js";import"./sidebar-DMA1r0AO.js";import"./LayoutLeft-CLNH1DfF.js";import"./use-mobile-B8GotXbv.js";import"./X-CW256acn.js";import"./table-CT3SbJYL.js";import"./empty-state-Beqd7aNQ.js";import"./use-members-D-UWukwW.js";import"./use-org-auth-client-DA-s7_Te.js";import"./use-clock-tick-DBEC1lDq.js";import"./AlertCircle-D9sGnK-9.js";import"./CheckCircle-BB6vk6oF.js";import"./Circle-9F0vtvpH.js";import"./agent-icon-WFSZC34Q.js";import"./Tool01-oblzQ_m4.js";import"./SwitchHorizontal01-8RU2_S-C.js";import"./Settings02-DQPzjW01.js";import"./XCircle-Ubd_lt39.js";import"./ArrowUpRight-B1h7NYT7.js";import"./ZapSquare-CPKbKk6M.js";import"./Users03-DNOs9Pga.js";import"./Loading02-CC5chJbg.js";import"./ChevronRight-ChI3PJvZ.js";import"./Stars02-Dit_hv0j.js";import"./Copy01-9jeLkfsF.js";import"./ZoomOut-Dzv5qUFR.js";import"./DotsVertical-BqEs4xQp.js";import"./Globe01-B461Nwwh.js";import"./Eye-Dr_xTPtU.js";import"./FilterLines-BZ5zsaAc.js";import"./Star01-2wUlEqlq.js";import"./Globe04-DOJ4tEQ7.js";import"./HardDrive-B2RZmWGJ.js";import"./Key01-CIqvP5Ev.js";import"./LinkExternal01-BFwOFRst.js";import"./List-BaCDQ99v.js";import"./Monitor01-B-0ksZCH.js";import"./Sun-9eC9mMX9.js";import"./Palette-DsapFGR6.js";import"./Play-CiLKvyf1.js";import"./Plus-C4ugKimL.js";import"./SearchLg-DU6XNSBT.js";import"./SearchMd-BKdnEqzA.js";import"./Shield01-2mEYEYRl.js";import"./Stars01-BbVTOrWm.js";import"./Trash01-Dhd1UnVB.js";import"./Upload01-DBe4YIZX.js";import"./User01-CF_Gf7t9.js";import"./Users01-C6QDIkrj.js";import"./XClose-DetSXJQx.js";import"./Zap-BWjK0pR8.js";import"./use-automations-DA6_tOqf.js";import"./studio-tools-CKe88Nyn.js";import"./useSuspenseInfiniteQuery-BqbqsWlq.js";import"./badge-Co1sD3N3.js";import"./checkbox-B0M0CFfW.js";import"./command-DGmwoZuF.js";import"./index-rTl_zI5y.js";import"./dialog-BfE-bxwJ.js";import"./popover-JdHRslRj.js";import"./avatar-DbN4IBGI.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-1w6BBUlk.js";import"./file-type-icon-Z3xofeT9.js";import"./tab-id-DAJ8K7VA.js";import"./hooks-Cp3yA0hj.js";import"./decopilot-sse-pool-D2QRgr6F.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./integration-icon-FbMUhCw2.js";import"./use-navigate-to-agent-nPCo0XqD.js";import"./reusable-new-chat-qqWu133U.js";import"./use-mcp-prompts-DR3AEXCG.js";import"./form-DDJB0Kef.js";import"./label-77EmLnyJ.js";import"./input-keyrerlc.js";import"./auth-DEyPYEvA.js";import"./drawer-CQgkwous.js";import"./collection-search-D0a-m_NL.js";import"./autosend-DsvSEeKi.js";import"./tabs-C67z6z0u.js";import"./toggle-group-COgQnBbS.js";import"./agent-capabilities-BA64EPhR.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CCG2U4yN.js";import"./use-registry-connections-Bam9Xvh6.js";import"./use-organization-settings-Bbnv1Tgt.js";import"./extract-connection-data-DXV17csC.js";import"./collection-tabs-CNA3an60.js";import"./textarea-5xpZZEZ9.js";import"./connection-form-helpers-rgxormxA.js";import"./authenticate-and-persist-oauth-g9OCjj13.js";import"./mcp-oauth-ULZ6x3CO.js";import"./use-ai-providers-BQPMvCiK.js";import"./connect-desktop-dialog-DFIRz6n5.js";import"./select-model-Dbg7lBPI.js";import"./skeleton-CbZ62d8f.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Blbpk6ox.js";import"./dropdown-menu-C88JkCey.js";import"./index-DLeaFjhW.js";import"./alert-dialog-CtGxaRKW.js";import"./toolbar-CxFn3h3s.js";import"./use-debounced-value-KNtpfE1L.js";import"./index-CbRx1KlA.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Ole3p-tS.js";import"./use-decopilot-events-kUUObkR0.js";import"./use-capability-BD-cXUBD.js";import"./tools-list-CDDnJx86.js";import"./switch-FcQwIjoX.js";import"./use-debounced-autosave-D5y8MFA-.js";import"./index-qZ858nUo.js";import"./search-input-DETYTi0x.js";import"./github-repo-picker-CPC5WYZv.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-Coat2fzG.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-D1QwQZ3L.js";import"./get-initials-D-f_fDFw.js";import"./calendar-CmJTWNZE.js";import"./toolbar-icon-button-Cju6I9oc.js";import"./use-file-configs-DSNRtEad.js";import"./automation-list-row-CtJ-FXg2.js";import"./required-auth-layout-BbzaCJga.js";import"./use-org-sso-BxrJwsL0.js";const Q={};function W(S){const t=$.c(37),{client:e,resourceURI:h,tool:o,connectionId:p,orgId:l,args:M}=S,{sendMessage:I}=z(),{setAppContext:u,clearAppContext:n}=F(),{setChatOpen:f,openTab:g}=J(),r=`${p}:${o.name}`;let a;t[0]!==g?(a=C=>C==="inline"?(g("0"),"inline"):"fullscreen",t[0]=g,t[1]=a):a=t[1];const m=a,s=M??Q;let c;t[2]!==e||t[3]!==o.name||t[4]!==s?(c={client:e,toolName:o.name,toolArguments:s},t[2]=e,t[3]=o.name,t[4]=s,t[5]=c):c=t[5];const{data:i}=B(c);let x;if(t[6]!==o._meta||t[7]!==o.name){const C=E(o._meta);x=b(o.name,C),t[6]=o._meta,t[7]=o.name,t[8]=x}else x=t[8];const U=x;let d;t[9]!==o.inputSchema?(d=o.inputSchema??{type:"object"},t[9]=o.inputSchema,t[10]=d):d=t[10];let N;t[11]!==U||t[12]!==d||t[13]!==o?(N={...o,name:U,inputSchema:d},t[11]=U,t[12]=d,t[13]=o,t[14]=N):N=t[14];const j=N;let _;t[15]!==I||t[16]!==f?(_=C=>{const w=G(C.content);w.content.length>0&&(f(!0),I({tiptapDoc:w}))},t[15]=I,t[16]=f,t[17]=_):_=t[17];const y=_;let P;t[18]!==j?(P={tool:j},t[18]=j,t[19]=P):P=t[19];let T;t[20]!==u||t[21]!==r?(T=C=>u(r,C),t[20]=u,t[21]=r,t[22]=T):T=t[22];let R;t[23]!==n||t[24]!==r?(R=()=>n(r),t[23]=n,t[24]=r,t[25]=R):R=t[25];let v;return t[26]!==e||t[27]!==y||t[28]!==m||t[29]!==l||t[30]!==h||t[31]!==P||t[32]!==T||t[33]!==R||t[34]!==s||t[35]!==i?(v=A.jsx(V,{resourceURI:h,orgId:l,toolInfo:P,toolInput:s,toolResult:i,displayMode:"fullscreen",minHeight:D.fullscreen.minHeight,maxHeight:D.fullscreen.maxHeight,client:e,onMessage:y,onUpdateModelContext:T,onTeardown:R,onRequestDisplayMode:m,className:"h-full"}),t[26]=e,t[27]=y,t[28]=m,t[29]=l,t[30]=h,t[31]=P,t[32]=T,t[33]=R,t[34]=s,t[35]=i,t[36]=v):v=t[36],v}function Lr(S){const t=$.c(24),{connectionId:e,toolName:h,args:o}=S,{org:p}=H(),l=Y();let M;t[0]!==e||t[1]!==l?(M=k(e)&&l.vmEntry?.sandboxProviderKind==="user-desktop"&&l.previewUrl?`${l.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=e,t[1]=l,t[2]=M):M=t[2];const I=M;let u;t[3]!==e||t[4]!==I||t[5]!==p.id||t[6]!==p.slug?(u={connectionId:e,orgId:p.id,orgSlug:p.slug,mcpUrl:I},t[3]=e,t[4]=I,t[5]=p.id,t[6]=p.slug,t[7]=u):u=t[7];const n=O(u);let f;t[8]!==n?(f={client:n},t[8]=n,t[9]=f):f=t[9];const{data:g}=q(f);let r,a,m;t[10]!==h||t[11]!==g.tools?(r=L(decodeURIComponent(h)),m=g.tools.find(i=>i.name===r)??g.tools.find(i=>{const x=E(i._meta);if(!x)return!1;if(b(i.name,x)===r)return!0;const d=b(r,x);return d!==r&&i.name===d}),a=m?._meta?K(m._meta):void 0,t[10]=h,t[11]=g.tools,t[12]=r,t[13]=a,t[14]=m):(r=t[12],a=t[13],m=t[14]);const s=a;if(!m||!s){let i;return t[15]!==r?(i=A.jsx("div",{className:"flex items-center justify-center h-full w-full",children:A.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',r,'" not found or has no UI']})}),t[15]=r,t[16]=i):i=t[16],i}let c;return t[17]!==o||t[18]!==n||t[19]!==e||t[20]!==p.id||t[21]!==s||t[22]!==m?(c=A.jsx(W,{client:n,resourceURI:s,tool:m,connectionId:e,orgId:p.id,args:o}),t[17]=o,t[18]=n,t[19]=e,t[20]=p.id,t[21]=s,t[22]=m,t[23]=c):c=t[23],c}export{Lr as AppViewContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as S,j as r}from"./index-_9_If8hV.js";import{I as T}from"./input-keyrerlc.js";import{L as C}from"./label-77EmLnyJ.js";import{T as L}from"./textarea-5xpZZEZ9.js";import{aF as A,aG as R,aE as D,aH as G,aI as H}from"./index-q89_jVMH.js";import{u as J,s as F}from"./primitives-sdV34vpG.js";import"./SwitchHorizontal01-8RU2_S-C.js";import"./chat-context-C9RZ_u31.js";import"./autosend-DsvSEeKi.js";import"./hooks-Cp3yA0hj.js";import"./use-mcp-client-OHo8USpe.js";import"./constants-B72Xmt_K.js";import"./auth-DEyPYEvA.js";import"./decopilot-sse-pool-D2QRgr6F.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-Bl0CdGKq.js";import"./use-collections-CBcI2DFH.js";import"./use-ai-providers-BQPMvCiK.js";import"./studio-tools-CKe88Nyn.js";import"./use-decopilot-events-kUUObkR0.js";import"./tab-id-DAJ8K7VA.js";import"./use-organization-settings-Bbnv1Tgt.js";import"./automation-runs-CPrAv5hK.js";import"./select-Bljv__bR.js";import"./tooltip-TevqeZrN.js";import"./Check-BjITlV29.js";import"./ChevronDown-CP20sAWY.js";import"./ChevronUp-C5771OOc.js";import"./useInfiniteQuery-DTJPJ103.js";import"./use-infinite-scroll-XnGTmELt.js";import"./use-connection-Ce9zhGhj.js";import"./card-Bnar-Iu5.js";import"./sidebar-DMA1r0AO.js";import"./LayoutLeft-CLNH1DfF.js";import"./use-mobile-B8GotXbv.js";import"./X-CW256acn.js";import"./table-CT3SbJYL.js";import"./empty-state-Beqd7aNQ.js";import"./use-members-D-UWukwW.js";import"./use-org-auth-client-DA-s7_Te.js";import"./use-clock-tick-DBEC1lDq.js";import"./AlertCircle-D9sGnK-9.js";import"./CheckCircle-BB6vk6oF.js";import"./Circle-9F0vtvpH.js";import"./agent-icon-WFSZC34Q.js";import"./Tool01-oblzQ_m4.js";import"./Settings02-DQPzjW01.js";import"./XCircle-Ubd_lt39.js";import"./ArrowUpRight-B1h7NYT7.js";import"./ZapSquare-CPKbKk6M.js";import"./Users03-DNOs9Pga.js";import"./Loading02-CC5chJbg.js";import"./ChevronRight-ChI3PJvZ.js";import"./Stars02-Dit_hv0j.js";import"./Copy01-9jeLkfsF.js";import"./ZoomOut-Dzv5qUFR.js";import"./DotsVertical-BqEs4xQp.js";import"./Globe01-B461Nwwh.js";import"./Eye-Dr_xTPtU.js";import"./FilterLines-BZ5zsaAc.js";import"./Star01-2wUlEqlq.js";import"./Globe04-DOJ4tEQ7.js";import"./HardDrive-B2RZmWGJ.js";import"./Key01-CIqvP5Ev.js";import"./LinkExternal01-BFwOFRst.js";import"./List-BaCDQ99v.js";import"./Monitor01-B-0ksZCH.js";import"./Sun-9eC9mMX9.js";import"./Palette-DsapFGR6.js";import"./Play-CiLKvyf1.js";import"./Plus-C4ugKimL.js";import"./SearchLg-DU6XNSBT.js";import"./SearchMd-BKdnEqzA.js";import"./Shield01-2mEYEYRl.js";import"./Stars01-BbVTOrWm.js";import"./Trash01-Dhd1UnVB.js";import"./Upload01-DBe4YIZX.js";import"./User01-CF_Gf7t9.js";import"./Users01-C6QDIkrj.js";import"./XClose-DetSXJQx.js";import"./Zap-BWjK0pR8.js";import"./use-automations-DA6_tOqf.js";import"./useSuspenseInfiniteQuery-BqbqsWlq.js";import"./badge-Co1sD3N3.js";import"./checkbox-B0M0CFfW.js";import"./command-DGmwoZuF.js";import"./index-rTl_zI5y.js";import"./dialog-BfE-bxwJ.js";import"./popover-JdHRslRj.js";import"./avatar-DbN4IBGI.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-1w6BBUlk.js";import"./file-type-icon-Z3xofeT9.js";import"./monaco-editor-DJn77EfB.js";import"./index-CbRx1KlA.js";import"./types-DbmHevzr.js";import"./shell-layout-DyS6Gvz7.js";import"./alert-dialog-CtGxaRKW.js";import"./required-auth-layout-BbzaCJga.js";import"./use-org-sso-BxrJwsL0.js";import"./integration-icon-FbMUhCw2.js";import"./use-navigate-to-agent-nPCo0XqD.js";import"./reusable-new-chat-qqWu133U.js";import"./use-mcp-prompts-DR3AEXCG.js";import"./form-DDJB0Kef.js";import"./drawer-CQgkwous.js";import"./collection-search-D0a-m_NL.js";import"./tabs-C67z6z0u.js";import"./toggle-group-COgQnBbS.js";import"./agent-capabilities-BA64EPhR.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CCG2U4yN.js";import"./use-registry-connections-Bam9Xvh6.js";import"./extract-connection-data-DXV17csC.js";import"./collection-tabs-CNA3an60.js";import"./connection-form-helpers-rgxormxA.js";import"./authenticate-and-persist-oauth-g9OCjj13.js";import"./mcp-oauth-ULZ6x3CO.js";import"./connect-desktop-dialog-DFIRz6n5.js";import"./select-model-Dbg7lBPI.js";import"./skeleton-CbZ62d8f.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Blbpk6ox.js";import"./dropdown-menu-C88JkCey.js";import"./index-DLeaFjhW.js";import"./toolbar-CxFn3h3s.js";import"./use-debounced-value-KNtpfE1L.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Ole3p-tS.js";import"./use-mcp-tools-DUvuQsnJ.js";import"./use-capability-BD-cXUBD.js";import"./tools-list-CDDnJx86.js";import"./switch-FcQwIjoX.js";import"./use-debounced-autosave-D5y8MFA-.js";import"./index-qZ858nUo.js";import"./search-input-DETYTi0x.js";import"./github-repo-picker-CPC5WYZv.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-Coat2fzG.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-D1QwQZ3L.js";import"./get-initials-D-f_fDFw.js";import"./calendar-CmJTWNZE.js";import"./toolbar-icon-button-Cju6I9oc.js";import"./use-file-configs-DSNRtEad.js";import"./automation-list-row-CtJ-FXg2.js";const K={authors:[{key:"name",label:"Name",widget:"text"},{key:"email",label:"Email",widget:"text",placeholder:"author@example.com"},{key:"jobTitle",label:"Job title",widget:"text"},{key:"company",label:"Company",widget:"text"},{key:"avatar",label:"Avatar",widget:"image"}]},M={authors:"Author"};function Br(P){const t=S.c(34),{orgSlug:v,virtualMcpId:j,branch:w,kind:p,blockKey:g,block:f}=P;let y;t[0]!==w||t[1]!==v||t[2]!==j?(y={orgSlug:v,virtualMcpId:j,branch:w},t[0]=w,t[1]=v,t[2]=j,t[3]=y):y=t[3];const m=A(y);let d;t[4]!==f||t[5]!==p?(d=R(f,p),t[4]=f,t[5]=p,t[6]=d):d=t[6];const B=d;let h;t[7]!==g||t[8]!==p||t[9]!==m?(h=e=>{m.mutate({blockKey:g,data:G(g,p,e)})},t[7]=g,t[8]=p,t[9]=m,t[10]=h):h=t[10];const[i,E]=J(B,h);let k;t[11]!==i||t[12]!==E?(k=(e,o)=>E({...i,[e]:o}),t[11]=i,t[12]=E,t[13]=k):k=t[13];const a=k,N=M[p];let s;t[14]!==N?(s=r.jsx("span",{className:"text-sm font-medium",children:N}),t[14]=N,t[15]=s):s=t[15];let l;t[16]!==m.isError||t[17]!==m.isPending?(l=r.jsx(D,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=l):l=t[18];let n;t[19]!==s||t[20]!==l?(n=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[s,l]}),t[19]=s,t[20]=l,t[21]=n):n=t[21];const I=K[p];let c;if(t[22]!==i||t[23]!==a||t[24]!==I){let e;t[26]!==i||t[27]!==a?(e=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(H,{schema:{type:"string",format:"image-uri",title:o.label},value:i[o.key],onChange:u=>a(o.key,u),path:o.key,label:o.label}):r.jsxs(r.Fragment,{children:[r.jsx(C,{htmlFor:o.key,children:o.label}),o.widget==="textarea"?r.jsx(L,{id:o.key,value:F(i[o.key]),onChange:u=>a(o.key,u.target.value),rows:3}):r.jsx(T,{id:o.key,value:F(i[o.key]),placeholder:o.placeholder,onChange:u=>a(o.key,u.target.value),className:"h-10"})]})},o.key),t[26]=i,t[27]=a,t[28]=e):e=t[28],c=I.map(e),t[22]=i,t[23]=a,t[24]=I,t[25]=c}else c=t[25];let x;t[29]!==c?(x=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:c})}),t[29]=c,t[30]=x):x=t[30];let b;return t[31]!==x||t[32]!==n?(b=r.jsxs("div",{className:"flex h-full flex-col",children:[n,x]}),t[31]=x,t[32]=n,t[33]=b):b=t[33],b}export{Br as RecordEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CDZ5Aq1h.js","assets/index-_9_If8hV.js","assets/index-DhHJ9QL9.css","assets/XCircle-Ubd_lt39.js","assets/CheckCircle-BB6vk6oF.js","assets/Settings02-DQPzjW01.js","assets/use-mcp-client-OHo8USpe.js","assets/constants-B72Xmt_K.js","assets/auth-DEyPYEvA.js","assets/useInfiniteQuery-DTJPJ103.js","assets/use-infinite-scroll-XnGTmELt.js","assets/studio-tools-CKe88Nyn.js","assets/badge-Co1sD3N3.js","assets/input-keyrerlc.js","assets/dropdown-menu-C88JkCey.js","assets/Check-BjITlV29.js","assets/ChevronRight-ChI3PJvZ.js","assets/Circle-9F0vtvpH.js","assets/table-CT3SbJYL.js","assets/toggle-group-COgQnBbS.js","assets/use-view-mode-Dp93w6NF.js","assets/use-mobile-B8GotXbv.js","assets/DotsVertical-BqEs4xQp.js","assets/FilterLines-BZ5zsaAc.js","assets/Globe01-B461Nwwh.js","assets/SearchMd-BKdnEqzA.js","assets/dialog-BfE-bxwJ.js","assets/X-CW256acn.js","assets/AlertCircle-D9sGnK-9.js","assets/Upload01-DBe4YIZX.js","assets/alert-dialog-CtGxaRKW.js","assets/card-Bnar-Iu5.js","assets/Trash01-Dhd1UnVB.js","assets/label-77EmLnyJ.js","assets/select-Bljv__bR.js","assets/tooltip-TevqeZrN.js","assets/ChevronDown-CP20sAWY.js","assets/ChevronUp-C5771OOc.js","assets/switch-FcQwIjoX.js","assets/textarea-5xpZZEZ9.js","assets/checkbox-B0M0CFfW.js","assets/Eye-Dr_xTPtU.js","assets/LinkExternal01-BFwOFRst.js","assets/use-copy-1w6BBUlk.js","assets/Copy01-9jeLkfsF.js","assets/Key01-CIqvP5Ev.js","assets/Plus-C4ugKimL.js","assets/mcp-oauth-ULZ6x3CO.js","assets/Play-CiLKvyf1.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as s,j as e,r as i,i as a,aD as o}from"./index-_9_If8hV.js";import{R as m}from"./require-capability-DzSwcsvh.js";import"./use-capability-BD-cXUBD.js";import"./access-gate-Bnbz-F0X.js";import"./capability-load-error-sobVTtf7.js";const n=i.lazy(()=>o(()=>import("./registry-layout-CDZ5Aq1h.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48])));function f(){const r=s.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(m,{capability:"registry:manage",area:"the registry",children:e.jsx(i.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(n,{})})}),r[0]=t):t=r[0],t}export{f as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as He,r as R,l as Ee,j as n,B as Ge,i as Hn,p as xs,t as W,K as ys}from"./index-_9_If8hV.js";import{r as bs,a as _s,s as js,u as Un,b as It,K as Wn,P as Gn,i as qn,c as ks,d as Yn,C as Jn,e as ws,G as Rs,V as Ds,f as Qn,g as Rt,D as Xn,h as Zn,S as ea,v as ta,j as na,k as Ns,l as Dt,m as mt,n as bt,o as Vs,p as Cs,q as Ps,t as Ts,w as As,x as Ms,y as Es,z as $s,A as Ks,B as Ot,E as Bt,F as Os,H as ut,I as kt,J as Bs,L as Fs,M as Je,N as Cn,O as Ls,Q as Pn,R as Ft,T as zs,U as sn,W as Is,X as tt,Y as Hs,Z as Us,_ as Ws,$ as Gs,a0 as qs,a1 as Ys,a2 as dt,a3 as Js,a4 as Qs,a5 as Xs,a6 as Tn,a7 as wt,a8 as Zs,a9 as er,aa as tr,ab as nr,ac as ar,ad as rn,ae as An,af as Mn,ag as yt,ah as Lt,ai as sr,aj as on,ak as rr,al as or,am as aa,an as En,ao as ir}from"./index-q89_jVMH.js";import{t as lr}from"./ChevronDown-CP20sAWY.js";import{s as sa,n as ra}from"./Loading02-CC5chJbg.js";import{i as oa}from"./ChevronRight-ChI3PJvZ.js";import{n as cr}from"./ChevronUp-C5771OOc.js";import{U as cn,P as ia,C as ur,V as dr,W as mr}from"./agent-icon-WFSZC34Q.js";import{i as fr}from"./Globe01-B461Nwwh.js";import{A as zt}from"./automation-runs-CPrAv5hK.js";import{T as ft,a as pt,b as ht}from"./tooltip-TevqeZrN.js";import{a as pr,c as hr,b as gr,D as vr,d as Sr,e as xr}from"./dialog-BfE-bxwJ.js";import{I as yr}from"./input-keyrerlc.js";import{a as la}from"./Copy01-9jeLkfsF.js";import{b as br}from"./ZoomOut-Dzv5qUFR.js";import{i as _r}from"./Settings02-DQPzjW01.js";import{s as jr}from"./Eye-Dr_xTPtU.js";import{s as un}from"./Plus-C4ugKimL.js";import{s as ca}from"./Trash01-Dhd1UnVB.js";import{i as kr}from"./Zap-BWjK0pR8.js";import{d as it,a as ua,D as da,c as ma,j as wr}from"./dropdown-menu-C88JkCey.js";import{r as $n,u as Rr,d as Dr,a as Nr,i as Vr,f as Cr,P as Pr,b as Tr,S as Ar}from"./page-seo-form-BbcbQDOg.js";import{c as Mr}from"./Tool01-oblzQ_m4.js";import{A as Er}from"./add-section-modal-Ct6xmoDd.js";import"./SwitchHorizontal01-8RU2_S-C.js";import"./chat-context-C9RZ_u31.js";import"./autosend-DsvSEeKi.js";import"./hooks-Cp3yA0hj.js";import"./use-mcp-client-OHo8USpe.js";import"./constants-B72Xmt_K.js";import"./auth-DEyPYEvA.js";import"./decopilot-sse-pool-D2QRgr6F.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-Bl0CdGKq.js";import"./use-collections-CBcI2DFH.js";import"./use-ai-providers-BQPMvCiK.js";import"./studio-tools-CKe88Nyn.js";import"./use-decopilot-events-kUUObkR0.js";import"./tab-id-DAJ8K7VA.js";import"./use-organization-settings-Bbnv1Tgt.js";import"./drawer-CQgkwous.js";import"./collection-search-D0a-m_NL.js";import"./SearchMd-BKdnEqzA.js";import"./use-mobile-B8GotXbv.js";import"./use-mcp-prompts-DR3AEXCG.js";import"./X-CW256acn.js";import"./shell-layout-DyS6Gvz7.js";import"./avatar-DbN4IBGI.js";import"./User01-CF_Gf7t9.js";import"./Users03-DNOs9Pga.js";import"./SearchLg-DU6XNSBT.js";import"./Stars02-Dit_hv0j.js";import"./XClose-DetSXJQx.js";import"./CheckCircle-BB6vk6oF.js";import"./FilterLines-BZ5zsaAc.js";import"./alert-dialog-CtGxaRKW.js";import"./required-auth-layout-BbzaCJga.js";import"./use-org-sso-BxrJwsL0.js";import"./ZapSquare-CPKbKk6M.js";import"./Check-BjITlV29.js";import"./Star01-2wUlEqlq.js";import"./Upload01-DBe4YIZX.js";import"./AlertCircle-D9sGnK-9.js";import"./form-DDJB0Kef.js";import"./label-77EmLnyJ.js";import"./select-Bljv__bR.js";import"./XCircle-Ubd_lt39.js";import"./tabs-C67z6z0u.js";import"./toggle-group-COgQnBbS.js";import"./agent-capabilities-BA64EPhR.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CCG2U4yN.js";import"./use-registry-connections-Bam9Xvh6.js";import"./use-connection-Ce9zhGhj.js";import"./useInfiniteQuery-DTJPJ103.js";import"./use-infinite-scroll-XnGTmELt.js";import"./extract-connection-data-DXV17csC.js";import"./card-Bnar-Iu5.js";import"./integration-icon-FbMUhCw2.js";import"./collection-tabs-CNA3an60.js";import"./badge-Co1sD3N3.js";import"./textarea-5xpZZEZ9.js";import"./connection-form-helpers-rgxormxA.js";import"./authenticate-and-persist-oauth-g9OCjj13.js";import"./mcp-oauth-ULZ6x3CO.js";import"./useSuspenseInfiniteQuery-BqbqsWlq.js";import"./Monitor01-B-0ksZCH.js";import"./connect-desktop-dialog-DFIRz6n5.js";import"./select-model-Dbg7lBPI.js";import"./checkbox-B0M0CFfW.js";import"./skeleton-CbZ62d8f.js";import"./Key01-CIqvP5Ev.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Blbpk6ox.js";import"./ArrowUpRight-B1h7NYT7.js";import"./Stars01-BbVTOrWm.js";import"./command-DGmwoZuF.js";import"./index-rTl_zI5y.js";import"./popover-JdHRslRj.js";import"./index-DLeaFjhW.js";import"./Palette-DsapFGR6.js";import"./file-type-icon-Z3xofeT9.js";import"./toolbar-CxFn3h3s.js";import"./use-debounced-value-KNtpfE1L.js";import"./DotsVertical-BqEs4xQp.js";import"./LinkExternal01-BFwOFRst.js";import"./index-CbRx1KlA.js";import"./LayoutLeft-CLNH1DfF.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Ole3p-tS.js";import"./empty-state-Beqd7aNQ.js";import"./use-mcp-tools-DUvuQsnJ.js";import"./types-DbmHevzr.js";import"./use-capability-BD-cXUBD.js";import"./tools-list-CDDnJx86.js";import"./switch-FcQwIjoX.js";import"./Play-CiLKvyf1.js";import"./use-debounced-autosave-D5y8MFA-.js";import"./index-qZ858nUo.js";import"./sidebar-DMA1r0AO.js";import"./search-input-DETYTi0x.js";import"./github-repo-picker-CPC5WYZv.js";import"./use-navigate-to-agent-nPCo0XqD.js";import"./reusable-new-chat-qqWu133U.js";import"./github-installations-D2vHSx02.js";import"./Users01-C6QDIkrj.js";import"./use-secrets-Coat2fzG.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-members-D-UWukwW.js";import"./use-org-auth-client-DA-s7_Te.js";import"./index-D1QwQZ3L.js";import"./get-initials-D-f_fDFw.js";import"./List-BaCDQ99v.js";import"./format-time-Cy7tTmZp.js";import"./Circle-9F0vtvpH.js";import"./calendar-CmJTWNZE.js";import"./toolbar-icon-button-Cju6I9oc.js";import"./use-file-configs-DSNRtEad.js";import"./monaco-editor-DJn77EfB.js";import"./use-automations-DA6_tOqf.js";import"./automation-list-row-CtJ-FXg2.js";import"./Globe04-DOJ4tEQ7.js";import"./HardDrive-B2RZmWGJ.js";import"./Sun-9eC9mMX9.js";import"./Shield01-2mEYEYRl.js";import"./table-CT3SbJYL.js";import"./use-clock-tick-DBEC1lDq.js";import"./use-copy-1w6BBUlk.js";function $r(d){return d.schema?.definitions??d.schema?.$defs??{}}function Kr(d,e){const r=$r(e),l=r[btoa(d)];if(!l)return;let u=typeof l.image=="string"?l.image:void 0;if(!u&&Array.isArray(l.allOf)){const h=l.allOf.find(S=>typeof S.$ref=="string")?.$ref;if(typeof h=="string"){const S=h.replace("#/definitions/",""),m=r[S];u=typeof m?.image=="string"?m.image:void 0}}if(u?.includes("{{{"))return u}function Or(d,e){if(!e)return;const r=bs(d);if(!r)return;const l=Kr(r.resolveType,e);if(!l)return;const u=_s(l,r.data);if(u)return js(u)}const Br="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",Fr="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 Kn(d){return Array.from({length:d},(e,r)=>({id:crypto.randomUUID(),index:r}))}function fa(d){return d.map((e,r)=>({...e,index:r}))}function Lr(d,e){if(e===d.length)return d;if(e<d.length)return fa(d.slice(0,e));const r=Array.from({length:e-d.length},(l,u)=>({id:crypto.randomUUID(),index:d.length+u}));return[...d,...r]}function pa(d){const e=He.c(20),{section:r,raw:l,meta:u}=d,h=r.isSavedBlock===!0,S=r.isMultivariate===!0;let m;e[0]!==u||e[1]!==l?(m=l&&u?Or(l,u):void 0,e[0]=u,e[1]=l,e[2]=m):m=e[2];const v=m;let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(br,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[3]=g):g=e[3];let y;e[4]!==v?(y=v&&n.jsx("img",{src:v,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),e[4]=v,e[5]=y):y=e[5];let N;e[6]!==S||e[7]!==h?(N=h?{color:Rs}:S?{color:"oklch(0.65 0.15 160)"}:void 0,e[6]=S,e[7]=h,e[8]=N):N=e[8];let k;e[9]!==N?(k=n.jsx(cn,{className:"h-4 w-4 shrink-0",style:N}),e[9]=N,e[10]=k):k=e[10];const _=r.isHidden&&"line-through opacity-50";let w;e[11]!==_?(w=Ee("min-w-0 flex-1 truncate text-sm font-medium",_),e[11]=_,e[12]=w):w=e[12];let o;e[13]!==r.label||e[14]!==w?(o=n.jsx("span",{className:w,children:r.label}),e[13]=r.label,e[14]=w,e[15]=o):o=e[15];let D;return e[16]!==y||e[17]!==k||e[18]!==o?(D=n.jsxs(n.Fragment,{children:[g,y,k,o]}),e[16]=y,e[17]=k,e[18]=o,e[19]=D):D=e[19],D}function ha(d,e){const r=d.isSavedBlock===!0,l=d.isMultivariate===!0;return Ee("group flex select-none items-center gap-2 rounded-md px-2 py-2.5",e?"bg-accent text-accent-foreground":r?Br:l?"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)]":"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function zr(d){const e=He.c(64),{section:r,raw:l,meta:u,sortableId:h,selected:S,onSelect:m,onDelete:v,onDuplicate:g,onMakeReusable:y,onToggleHidden:N,onToggleLazy:k,onAddVariant:_,onDetach:w}=d,o=l?qn(l.__resolveType??""):!1;let D;e[0]!==r?(D=ks(r),e[0]=r,e[1]=D):D=e[1];const c=D;let J;e[2]!==h?(J={id:h,animateLayoutChanges:Gr},e[2]=h,e[3]=J):J=e[3];const{attributes:H,listeners:$,setNodeRef:f,transform:P,isDragging:se}=Yn(J);let T;e[4]!==P?(T=Jn.Transform.toString(P?{...P,x:0}:null),e[4]=P,e[5]=T):T=e[5];const pe=se?0:void 0;let V;e[6]!==T||e[7]!==pe?(V={transform:T,opacity:pe},e[6]=T,e[7]=pe,e[8]=V):V=e[8];const ce=V;let B;e[9]!==r?(B=ws(r),e[9]=r,e[10]=B):B=e[10];const te=B,oe="button",Ce=0;let E;e[11]!==m?(E=K=>{(K.key==="Enter"||K.key===" ")&&(K.preventDefault(),m())},e[11]=m,e[12]=E):E=e[12];const ue=se?"cursor-grabbing":"cursor-pointer";let ie;e[13]!==r||e[14]!==S||e[15]!==ue?(ie=Ee("touch-none transition-colors",ue,ha(r,S)),e[13]=r,e[14]=S,e[15]=ue,e[16]=ie):ie=e[16];let je;e[17]!==u||e[18]!==l||e[19]!==r?(je=n.jsx(pa,{section:r,raw:l,meta:u}),e[17]=u,e[18]=l,e[19]=r,e[20]=je):je=e[20];const M=!r.isMultivariate&&n.jsxs(ft,{children:[n.jsx(pt,{asChild:!0,children:n.jsx(Ge,{type:"button",variant:"ghost",size:"icon","aria-label":o?"Disable async render":"Enable async render",className:Ee("h-7 w-7 shrink-0",o?"":"opacity-0 group-hover:opacity-100"),onClick:K=>{K.stopPropagation(),k()},onPointerDown:Wr,children:n.jsx(kr,{className:Ee("h-3.5 w-3.5",o&&"text-yellow-500")})})}),n.jsx(ht,{side:"bottom",children:o?"Disable async render":"Enable async render"})]});let Ae;e[21]!==N||e[22]!==r.isHidden||e[23]!==r.isMultivariate?(Ae=!r.isMultivariate&&n.jsxs(ft,{children:[n.jsx(pt,{asChild:!0,children:n.jsx(Ge,{type:"button",variant:"ghost",size:"icon","aria-label":r.isHidden?"Show section":"Hide section",className:Ee("h-7 w-7 shrink-0",r.isHidden?"opacity-100":"opacity-0 group-hover:opacity-100"),onClick:K=>{K.stopPropagation(),N()},onPointerDown:Ur,children:r.isHidden?n.jsx(_r,{className:"h-3.5 w-3.5"}):n.jsx(jr,{className:"h-3.5 w-3.5"})})}),n.jsx(ht,{side:"bottom",children:r.isHidden?"Show section":"Hide section"})]}),e[21]=N,e[22]=r.isHidden,e[23]=r.isMultivariate,e[24]=Ae):Ae=e[24];let X;e[25]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(ua,{asChild:!0,children:n.jsx(Ge,{type:"button",variant:"ghost",size:"icon","aria-label":"Section actions",className:"h-7 w-7 shrink-0 opacity-0 group-hover:opacity-100",onClick:Hr,onPointerDown:Ir,children:n.jsx(ia,{className:"h-3.5 w-3.5"})})}),e[25]=X):X=e[25];let Ne;e[26]!==g?(Ne=K=>{K.stopPropagation(),g()},e[26]=g,e[27]=Ne):Ne=e[27];let ve;e[28]===Symbol.for("react.memo_cache_sentinel")?(ve=n.jsx(la,{className:"h-4 w-4"}),e[28]=ve):ve=e[28];let re;e[29]!==Ne?(re=n.jsxs(it,{onClick:Ne,children:[ve,"Duplicate"]}),e[29]=Ne,e[30]=re):re=e[30];let G;e[31]!==c||e[32]!==_?(G=c&&n.jsxs(it,{className:Ds,onClick:K=>{K.stopPropagation(),_()},children:[n.jsx(sa,{className:"h-4 w-4"}),"Add variant"]}),e[31]=c,e[32]=_,e[33]=G):G=e[33];let q;e[34]!==te||e[35]!==y?(q=te&&n.jsxs(it,{className:Fr,onClick:K=>{K.stopPropagation(),y()},children:[n.jsx(cn,{className:"h-4 w-4"}),"Make reusable"]}),e[34]=te,e[35]=y,e[36]=q):q=e[36];let ne;e[37]!==w||e[38]!==r.isMultivariate||e[39]!==r.isSavedBlock?(ne=r.isSavedBlock===!0&&!r.isMultivariate&&n.jsxs(it,{onClick:K=>{K.stopPropagation(),w()},children:[n.jsx(cn,{className:"h-4 w-4"}),"Detach"]}),e[37]=w,e[38]=r.isMultivariate,e[39]=r.isSavedBlock,e[40]=ne):ne=e[40];let le;e[41]!==v?(le=K=>{K.stopPropagation(),v()},e[41]=v,e[42]=le):le=e[42];let ke;e[43]===Symbol.for("react.memo_cache_sentinel")?(ke=n.jsx(ca,{className:"h-4 w-4"}),e[43]=ke):ke=e[43];let Se;e[44]!==le?(Se=n.jsxs(it,{className:"text-destructive focus:text-destructive",onClick:le,children:[ke,"Delete"]}),e[44]=le,e[45]=Se):Se=e[45];let de;e[46]!==re||e[47]!==G||e[48]!==q||e[49]!==ne||e[50]!==Se?(de=n.jsxs(da,{children:[X,n.jsxs(ma,{align:"end",className:"w-44",children:[re,G,q,ne,Se]})]}),e[46]=re,e[47]=G,e[48]=q,e[49]=ne,e[50]=Se,e[51]=de):de=e[51];let be;return e[52]!==H||e[53]!==$||e[54]!==m||e[55]!==f||e[56]!==ce||e[57]!==ie||e[58]!==je||e[59]!==M||e[60]!==Ae||e[61]!==de||e[62]!==E?(be=n.jsxs("div",{ref:f,style:ce,...H,...$,role:oe,tabIndex:Ce,onClick:m,onKeyDown:E,className:ie,children:[je,M,Ae,de]}),e[52]=H,e[53]=$,e[54]=m,e[55]=f,e[56]=ce,e[57]=ie,e[58]=je,e[59]=M,e[60]=Ae,e[61]=de,e[62]=E,e[63]=be):be=e[63],be}function Ir(d){return d.stopPropagation()}function Hr(d){return d.stopPropagation()}function Ur(d){return d.stopPropagation()}function Wr(d){return d.stopPropagation()}function Gr(){return!1}function qr(d){const e=He.c(90),{listKey:r,rawSections:l,sections:u,meta:h,selectedIndex:S,onSelect:m,onReorder:v,onDelete:g,onDuplicate:y,onMakeReusable:N,onToggleHidden:k,onToggleLazy:_,onAddVariant:w,onDetach:o,onAddSection:D,canAddSection:c}=d,J=c===void 0?!0:c;let H;e[0]!==u.length?(H=()=>Kn(u.length),e[0]=u.length,e[1]=H):H=e[1];const[$,f]=R.useState(H),[P,se]=R.useState(null),[T,pe]=R.useState(r),[V,ce]=R.useState(u.length),B=R.useRef(!1);T!==r?(pe(r),ce(u.length),f(Kn(u.length))):V!==u.length&&(ce(u.length),f(F=>Lr(F,u.length)));let te;e[2]===Symbol.for("react.memo_cache_sentinel")?(te={activationConstraint:{distance:8}},e[2]=te):te=e[2];let oe;e[3]===Symbol.for("react.memo_cache_sentinel")?(oe={coordinateGetter:Qn},e[3]=oe):oe=e[3];const Ce=Un(It(Gn,te),It(Wn,oe));let E;e[4]!==$?(E=$.map(Yr),e[4]=$,e[5]=E):E=e[5];const ue=E;let ie;e[6]===Symbol.for("react.memo_cache_sentinel")?(ie=F=>{se(String(F.active.id))},e[6]=ie):ie=e[6];const je=ie;let M;e[7]!==ue||e[8]!==v?(M=F=>{se(null);const{active:ae,over:Q}=F;if(!Q||ae.id===Q.id)return;const ze=ue.indexOf(String(ae.id)),he=ue.indexOf(String(Q.id));ze===-1||he===-1||(f(Qe=>fa(Rt([...Qe],ze,he))),B.current=!0,requestAnimationFrame(()=>{B.current=!1}),v?.(ze,he))},e[7]=ue,e[8]=v,e[9]=M):M=e[9];const Ae=M;let X;e[10]===Symbol.for("react.memo_cache_sentinel")?(X=()=>{se(null)},e[10]=X):X=e[10];const Ne=X;let ve,re,G,q,ne,le,ke,Se,de,be,K,Z,we,$e,Ke;if(e[11]!==P||e[12]!==J||e[13]!==$||e[14]!==ue||e[15]!==Ae||e[16]!==h||e[17]!==D||e[18]!==w||e[19]!==g||e[20]!==o||e[21]!==y||e[22]!==N||e[23]!==m||e[24]!==k||e[25]!==_||e[26]!==l||e[27]!==u||e[28]!==S||e[29]!==Ce){$e=Symbol.for("react.early_return_sentinel");e:{const F=ae=>{B.current||m(ae)};if(e[45]!==P||e[46]!==J||e[47]!==$||e[48]!==D||e[49]!==l||e[50]!==u){const ae=P?$.find(Q=>Q.id===P):null;if(q=ae!=null?u[ae.index]:null,G=ae!=null?l[ae.index]:void 0,$.length===0){let Q;e[54]===Symbol.for("react.memo_cache_sentinel")?(Q=n.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:"No sections in this page."}),e[54]=Q):Q=e[54];const ze=!J;let he;e[55]===Symbol.for("react.memo_cache_sentinel")?(he=n.jsx(un,{size:14}),e[55]=he):he=e[55];let Qe;e[56]!==D||e[57]!==ze?(Qe=n.jsxs("div",{className:"space-y-2",children:[Q,n.jsxs(Ge,{type:"button",variant:"outline",size:"sm",className:"w-full",disabled:ze,onClick:D,children:[he,"Add section"]})]}),e[56]=D,e[57]=ze,e[58]=Qe):Qe=e[58],$e=Qe;break e}we=Ee(ae&&"cursor-grabbing"),e[45]=P,e[46]=J,e[47]=$,e[48]=D,e[49]=l,e[50]=u,e[51]=G,e[52]=q,e[53]=we}else G=e[51],q=e[52],we=e[53];re=Xn,Se=Ce,de=Zn,be=je,K=Ae,Z=Ne,ve=ea,le=ue,ke=ta,Ke="space-y-1",ne=$.map(ae=>{const Q=u[ae.index];return Q?n.jsx(zr,{sortableId:ae.id,section:Q,raw:l[ae.index],meta:h,selected:S===ae.index,onSelect:()=>F(ae.index),onDelete:()=>g(ae.index),onDuplicate:()=>y(ae.index),onMakeReusable:()=>N(ae.index),onToggleHidden:()=>k(ae.index),onToggleLazy:()=>_(ae.index),onAddVariant:()=>w(ae.index),onDetach:()=>o(ae.index)},ae.id):null})}e[11]=P,e[12]=J,e[13]=$,e[14]=ue,e[15]=Ae,e[16]=h,e[17]=D,e[18]=w,e[19]=g,e[20]=o,e[21]=y,e[22]=N,e[23]=m,e[24]=k,e[25]=_,e[26]=l,e[27]=u,e[28]=S,e[29]=Ce,e[30]=ve,e[31]=re,e[32]=G,e[33]=q,e[34]=ne,e[35]=le,e[36]=ke,e[37]=Se,e[38]=de,e[39]=be,e[40]=K,e[41]=Z,e[42]=we,e[43]=$e,e[44]=Ke}else ve=e[30],re=e[31],G=e[32],q=e[33],ne=e[34],le=e[35],ke=e[36],Se=e[37],de=e[38],be=e[39],K=e[40],Z=e[41],we=e[42],$e=e[43],Ke=e[44];if($e!==Symbol.for("react.early_return_sentinel"))return $e;let Fe;e[59]!==ne||e[60]!==Ke?(Fe=n.jsx("div",{className:Ke,children:ne}),e[59]=ne,e[60]=Ke,e[61]=Fe):Fe=e[61];let Pe;e[62]!==ve||e[63]!==le||e[64]!==ke||e[65]!==Fe?(Pe=n.jsx(ve,{items:le,strategy:ke,children:Fe}),e[62]=ve,e[63]=le,e[64]=ke,e[65]=Fe,e[66]=Pe):Pe=e[66];let Oe;e[67]!==G||e[68]!==q||e[69]!==h?(Oe=q?n.jsx("div",{className:Ee("cursor-grabbing shadow-lg ring-1 ring-border/60",ha(q,!1)),children:n.jsx(pa,{section:q,raw:G,meta:h})}):null,e[67]=G,e[68]=q,e[69]=h,e[70]=Oe):Oe=e[70];let Le;e[71]!==Oe?(Le=n.jsx(na,{dropAnimation:null,children:Oe}),e[71]=Oe,e[72]=Le):Le=e[72];let Me;e[73]!==re||e[74]!==Se||e[75]!==de||e[76]!==be||e[77]!==K||e[78]!==Z||e[79]!==Pe||e[80]!==Le?(Me=n.jsxs(re,{sensors:Se,collisionDetection:de,onDragStart:be,onDragEnd:K,onDragCancel:Z,children:[Pe,Le]}),e[73]=re,e[74]=Se,e[75]=de,e[76]=be,e[77]=K,e[78]=Z,e[79]=Pe,e[80]=Le,e[81]=Me):Me=e[81];const xe=!J;let Re;e[82]===Symbol.for("react.memo_cache_sentinel")?(Re=n.jsx(un,{size:14}),e[82]=Re):Re=e[82];let me;e[83]!==D||e[84]!==xe?(me=n.jsxs(Ge,{type:"button",variant:"outline",size:"sm",className:"mt-2 w-full",disabled:xe,onClick:D,children:[Re,"Add section"]}),e[83]=D,e[84]=xe,e[85]=me):me=e[85];let ee;return e[86]!==we||e[87]!==Me||e[88]!==me?(ee=n.jsxs("div",{className:we,children:[Me,me]}),e[86]=we,e[87]=Me,e[88]=me,e[89]=ee):ee=e[89],ee}function Yr(d){return d.id}function On(d){const e=He.c(38),{open:r,initialName:l,autoLabel:u,isPending:h,onSubmit:S,onOpenChange:m}=d,v=h===void 0?!1:h,[g,y]=R.useState(l),[N,k]=R.useState(r);r!==N&&(k(r),r&&y(l));let _;e[0]!==v||e[1]!==m?(_=oe=>{!oe&&!v&&m(!1)},e[0]=v,e[1]=m,e[2]=_):_=e[2];const w=_;let o;e[3]!==v||e[4]!==g||e[5]!==S?(o=async oe=>{oe.preventDefault(),!v&&await S(g.trim())},e[3]=v,e[4]=g,e[5]=S,e[6]=o):o=e[6];const D=o;let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(pr,{children:"Rename variant"}),e[7]=c):c=e[7];const J=u||"the rule";let H;e[8]!==J?(H=n.jsxs(hr,{children:[c,n.jsxs(gr,{children:["Save this matcher as a global block with a custom label. Leave empty to inline the matcher again and fall back to"," ",n.jsx("span",{className:"font-medium",children:J}),"."]})]}),e[8]=J,e[9]=H):H=e[9];let $;e[10]===Symbol.for("react.memo_cache_sentinel")?($=n.jsx("label",{htmlFor:"variant-rename-name",className:"text-xs font-medium text-muted-foreground",children:"Name"}),e[10]=$):$=e[10];let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=oe=>y(oe.target.value),e[11]=f):f=e[11];let P;e[12]!==u||e[13]!==v||e[14]!==g?(P=n.jsxs("div",{className:"space-y-1.5 py-4",children:[$,n.jsx(yr,{id:"variant-rename-name",value:g,onChange:f,placeholder:u,autoFocus:!0,disabled:v})]}),e[12]=u,e[13]=v,e[14]=g,e[15]=P):P=e[15];let se;e[16]!==m?(se=()=>m(!1),e[16]=m,e[17]=se):se=e[17];let T;e[18]!==v||e[19]!==se?(T=n.jsx(Ge,{type:"button",variant:"outline",onClick:se,disabled:v,children:"Cancel"}),e[18]=v,e[19]=se,e[20]=T):T=e[20];let pe;e[21]!==v?(pe=v?n.jsxs(n.Fragment,{children:[n.jsx(Hn,{size:14,className:"animate-spin"}),"Saving…"]}):"Save",e[21]=v,e[22]=pe):pe=e[22];let V;e[23]!==v||e[24]!==pe?(V=n.jsx(Ge,{type:"submit",disabled:v,children:pe}),e[23]=v,e[24]=pe,e[25]=V):V=e[25];let ce;e[26]!==T||e[27]!==V?(ce=n.jsxs(vr,{children:[T,V]}),e[26]=T,e[27]=V,e[28]=ce):ce=e[28];let B;e[29]!==D||e[30]!==ce||e[31]!==H||e[32]!==P?(B=n.jsx(Sr,{className:"sm:max-w-md",children:n.jsxs("form",{onSubmit:D,children:[H,P,ce]})}),e[29]=D,e[30]=ce,e[31]=H,e[32]=P,e[33]=B):B=e[33];let te;return e[34]!==w||e[35]!==r||e[36]!==B?(te=n.jsx(xr,{open:r,onOpenChange:w,children:B}),e[34]=w,e[35]=r,e[36]=B,e[37]=te):te=e[37],te}const Jr="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)]",ga="text-[oklch(0.45_0.15_160)] bg-[oklch(0.65_0.15_160/0.18)] dark:text-[oklch(0.78_0.15_160)] dark:bg-[oklch(0.65_0.15_160/0.2)]";function va(d){const e=He.c(5),{rule:r,matchers:l}=d,u=r?.__resolveType??"";let h;if(e[0]!==l||e[1]!==u){const g=l.find(y=>y.resolveType===u)?.iconName??Ns(u);h=ur(g),e[0]=l,e[1]=u,e[2]=h}else h=e[2];const S=h;if(!S)return null;let m;return e[3]!==S?(m=n.jsx(S,{size:14,className:"shrink-0"}),e[3]=S,e[4]=m):m=e[4],m}function Bn(d){return d.map(e=>`${e.label}|${e.rule?.__resolveType??""}`).join(`
|
|
2
|
-
`)}function ln(d){return d.map((e,r)=>({id:crypto.randomUUID(),index:r,variant:e}))}function Qr(d){return d.map((e,r)=>({...e,index:r}))}function Sa(d){const e=He.c(16),{label:r,effectiveRule:l,matchers:u,canDelete:h,dragging:S,onRename:m,onDuplicate:v,onDelete:g}=d;let y;e[0]!==l||e[1]!==u?(y=n.jsx(va,{rule:l,matchers:u}),e[0]=l,e[1]=u,e[2]=y):y=e[2];let N;e[3]!==r?(N=n.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:r}),e[3]=r,e[4]=N):N=e[4];let k;e[5]!==h||e[6]!==S||e[7]!==r||e[8]!==g||e[9]!==v||e[10]!==m?(k=!S&&n.jsxs(da,{children:[n.jsx(ua,{asChild:!0,children:n.jsx(Ge,{type:"button",variant:"ghost",size:"icon","aria-label":`Actions for ${r}`,className:"size-6 shrink-0 opacity-0 transition-opacity group-hover:opacity-100 data-[state=open]:opacity-100",onClick:Zr,onPointerDown:Xr,children:n.jsx(ia,{size:14})})}),n.jsxs(ma,{align:"end",className:"w-36",children:[n.jsxs(it,{onClick:w=>{w.stopPropagation(),m?.()},children:[n.jsx(Mr,{size:14}),"Rename"]}),n.jsxs(it,{onClick:w=>{w.stopPropagation(),v?.()},children:[n.jsx(la,{size:14}),"Duplicate"]}),n.jsx(wr,{}),n.jsxs(it,{variant:"destructive",disabled:!h,onClick:w=>{w.stopPropagation(),g?.()},children:[n.jsx(ca,{size:14}),"Delete"]})]})]}),e[5]=h,e[6]=S,e[7]=r,e[8]=g,e[9]=v,e[10]=m,e[11]=k):k=e[11];let _;return e[12]!==y||e[13]!==N||e[14]!==k?(_=n.jsxs(n.Fragment,{children:[y,N,k]}),e[12]=y,e[13]=N,e[14]=k,e[15]=_):_=e[15],_}function Xr(d){return d.stopPropagation()}function Zr(d){return d.stopPropagation()}function eo(d){const e=He.c(33),{entry:r,sortableId:l,isActive:u,canDelete:h,decofile:S,meta:m,matchers:v,onSelect:g,onRename:y,onDuplicate:N,onDelete:k}=d;let _;e[0]!==l?(_={id:l,animateLayoutChanges:to},e[0]=l,e[1]=_):_=e[1];const{attributes:w,listeners:o,setNodeRef:D,transform:c,isDragging:J}=Yn(_);let H;e[2]!==c?(H=Jn.Transform.toString(c?{...c,x:0}:null),e[2]=c,e[3]=H):H=e[3];const $=J?0:void 0;let f;e[4]!==H||e[5]!==$?(f={transform:H,opacity:$},e[4]=H,e[5]=$,e[6]=f):f=e[6];const P=f,se=m??void 0;let T;e[7]!==S||e[8]!==r.variant.rule||e[9]!==se?(T=Dt(r.variant.rule,S,se),e[7]=S,e[8]=r.variant.rule,e[9]=se,e[10]=T):T=e[10];const pe=T;let V;e[11]!==g?(V=E=>{E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),g())},e[11]=g,e[12]=V):V=e[12];const ce=J?"cursor-grabbing":"cursor-pointer active:cursor-grabbing",B=u?ga:Jr;let te;e[13]!==ce||e[14]!==B?(te=Ee("group flex select-none items-center gap-2 rounded-md px-2 py-2.5 transition-colors touch-none",ce,B),e[13]=ce,e[14]=B,e[15]=te):te=e[15];let oe;e[16]!==h||e[17]!==pe||e[18]!==r.variant.label||e[19]!==v||e[20]!==k||e[21]!==N||e[22]!==y?(oe=n.jsx(Sa,{label:r.variant.label,effectiveRule:pe,matchers:v,canDelete:h,onRename:y,onDuplicate:N,onDelete:k}),e[16]=h,e[17]=pe,e[18]=r.variant.label,e[19]=v,e[20]=k,e[21]=N,e[22]=y,e[23]=oe):oe=e[23];let Ce;return e[24]!==w||e[25]!==o||e[26]!==g||e[27]!==D||e[28]!==P||e[29]!==te||e[30]!==oe||e[31]!==V?(Ce=n.jsx("div",{ref:D,style:P,...w,...o,onClick:g,onKeyDown:V,className:te,children:oe}),e[24]=w,e[25]=o,e[26]=g,e[27]=D,e[28]=P,e[29]=te,e[30]=oe,e[31]=V,e[32]=Ce):Ce=e[32],Ce}function to(){return!1}function no(d){const e=He.c(9),{variant:r,decofile:l,meta:u,matchers:h}=d,S=u??void 0;let m;e[0]!==l||e[1]!==S||e[2]!==r.rule?(m=Dt(r.rule,l,S),e[0]=l,e[1]=S,e[2]=r.rule,e[3]=m):m=e[3];const v=m;let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=Ee("flex items-center gap-2 rounded-md px-2 py-2.5 shadow-lg ring-1 ring-border/60 cursor-grabbing",ga),e[4]=g):g=e[4];let y;return e[5]!==v||e[6]!==h||e[7]!==r.label?(y=n.jsx("div",{className:g,children:n.jsx(Sa,{label:r.label,effectiveRule:v,matchers:h,canDelete:!1,dragging:!0})}),e[5]=v,e[6]=h,e[7]=r.label,e[8]=y):y=e[8],y}function ao(d){const e=He.c(77),{listKey:r,variants:l,activeIndex:u,decofile:h,meta:S,matchers:m,onSelect:v,onReorder:g,onRename:y,onDuplicate:N,onDelete:k,onAdd:_}=d;let w;e[0]!==l?(w=()=>ln(l),e[0]=l,e[1]=w):w=e[1];const[o,D]=R.useState(w),[c,J]=R.useState(null),[H,$]=R.useState(r),[f,P]=R.useState(l.length);let se;e[2]!==l?(se=()=>Bn(l),e[2]=l,e[3]=se):se=e[3];const[T,pe]=R.useState(se),V=R.useRef(!1),ce=Bn(l);H!==r?($(r),P(l.length),pe(ce),D(ln(l))):f!==l.length?(P(l.length),pe(ce),D(ln(l))):T!==ce&&(pe(ce),D(Me=>l.map((xe,Re)=>({id:Me[Re]?.id??crypto.randomUUID(),index:Re,variant:xe}))));let B;e[4]===Symbol.for("react.memo_cache_sentinel")?(B={activationConstraint:{distance:8}},e[4]=B):B=e[4];let te;e[5]===Symbol.for("react.memo_cache_sentinel")?(te={coordinateGetter:Qn},e[5]=te):te=e[5];const oe=Un(It(Gn,B),It(Wn,te));let Ce;e[6]!==o?(Ce=o.map(so),e[6]=o,e[7]=Ce):Ce=e[7];const E=Ce,ue=l.length>1;let ie;e[8]!==o?(ie=Me=>{const xe=String(Me.active.id);J(o.find(Re=>Re.id===xe)??null)},e[8]=o,e[9]=ie):ie=e[9];const je=ie;let M;e[10]!==E||e[11]!==g?(M=Me=>{J(null);const{active:xe,over:Re}=Me;if(!Re||xe.id===Re.id)return;const me=E.indexOf(String(xe.id)),ee=E.indexOf(String(Re.id));me===-1||ee===-1||(D(F=>Qr(Rt([...F],me,ee))),V.current=!0,requestAnimationFrame(()=>{V.current=!1}),g(me,ee))},e[10]=E,e[11]=g,e[12]=M):M=e[12];const Ae=M;let X;e[13]===Symbol.for("react.memo_cache_sentinel")?(X=()=>{J(null)},e[13]=X):X=e[13];const Ne=X;let ve,re,G,q,ne,le,ke,Se,de,be,K,Z,we;if(e[14]!==u||e[15]!==ue||e[16]!==h||e[17]!==o||e[18]!==E||e[19]!==Ae||e[20]!==je||e[21]!==m||e[22]!==S||e[23]!==_||e[24]!==k||e[25]!==N||e[26]!==y||e[27]!==v||e[28]!==oe){const Me=F=>{V.current||v(F)};K="space-y-1 border-b p-2";let xe;e[42]===Symbol.for("react.memo_cache_sentinel")?(xe=n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Variants"}),e[42]=xe):xe=e[42];let Re;e[43]===Symbol.for("react.memo_cache_sentinel")?(Re=n.jsx(un,{size:14}),e[43]=Re):Re=e[43];let me;e[44]!==_?(me=n.jsx(pt,{asChild:!0,children:n.jsx(Ge,{type:"button",variant:"ghost",size:"icon","aria-label":"Add variant",className:"size-6",onClick:_,children:Re})}),e[44]=_,e[45]=me):me=e[45];let ee;e[46]===Symbol.for("react.memo_cache_sentinel")?(ee=n.jsx(ht,{children:"Add variant"}),e[46]=ee):ee=e[46],e[47]!==me?(Z=n.jsxs("div",{className:"flex items-center justify-between",children:[xe,n.jsxs(ft,{children:[me,ee]})]}),e[47]=me,e[48]=Z):Z=e[48],re=Xn,le=oe,ke=Zn,Se=je,de=Ae,be=Ne,ve=ea,q=E,ne=ta,we="space-y-0.5",G=o.map(F=>n.jsx(eo,{sortableId:F.id,entry:F,isActive:F.index===u,canDelete:ue,decofile:h,meta:S,matchers:m,onSelect:()=>Me(F.index),onRename:()=>y(F.index),onDuplicate:()=>N(F.index),onDelete:()=>k(F.index)},F.id)),e[14]=u,e[15]=ue,e[16]=h,e[17]=o,e[18]=E,e[19]=Ae,e[20]=je,e[21]=m,e[22]=S,e[23]=_,e[24]=k,e[25]=N,e[26]=y,e[27]=v,e[28]=oe,e[29]=ve,e[30]=re,e[31]=G,e[32]=q,e[33]=ne,e[34]=le,e[35]=ke,e[36]=Se,e[37]=de,e[38]=be,e[39]=K,e[40]=Z,e[41]=we}else ve=e[29],re=e[30],G=e[31],q=e[32],ne=e[33],le=e[34],ke=e[35],Se=e[36],de=e[37],be=e[38],K=e[39],Z=e[40],we=e[41];let $e;e[49]!==G||e[50]!==we?($e=n.jsx("div",{className:we,children:G}),e[49]=G,e[50]=we,e[51]=$e):$e=e[51];let Ke;e[52]!==ve||e[53]!==q||e[54]!==ne||e[55]!==$e?(Ke=n.jsx(ve,{items:q,strategy:ne,children:$e}),e[52]=ve,e[53]=q,e[54]=ne,e[55]=$e,e[56]=Ke):Ke=e[56];let Fe;e[57]!==c||e[58]!==h||e[59]!==m||e[60]!==S?(Fe=c?n.jsx(no,{variant:c.variant,decofile:h,meta:S,matchers:m}):null,e[57]=c,e[58]=h,e[59]=m,e[60]=S,e[61]=Fe):Fe=e[61];let Pe;e[62]!==Fe?(Pe=n.jsx(na,{dropAnimation:null,children:Fe}),e[62]=Fe,e[63]=Pe):Pe=e[63];let Oe;e[64]!==re||e[65]!==le||e[66]!==ke||e[67]!==Se||e[68]!==de||e[69]!==be||e[70]!==Ke||e[71]!==Pe?(Oe=n.jsxs(re,{sensors:le,collisionDetection:ke,onDragStart:Se,onDragEnd:de,onDragCancel:be,children:[Ke,Pe]}),e[64]=re,e[65]=le,e[66]=ke,e[67]=Se,e[68]=de,e[69]=be,e[70]=Ke,e[71]=Pe,e[72]=Oe):Oe=e[72];let Le;return e[73]!==K||e[74]!==Z||e[75]!==Oe?(Le=n.jsxs("div",{className:K,children:[Z,Oe]}),e[73]=K,e[74]=Z,e[75]=Oe,e[76]=Le):Le=e[76],Le}function so(d){return d.id}function xa({pageKey:d,prefix:e,variants:r,selectedIndex:l,decofile:u,meta:h}){if(!d||l<0||l>=r.length)return[];const S=[];for(let m=0;m<=l;m++){const v=r[m];if(!v)continue;const g=v.rule,y=m===l?"1":"0",k=(mt(g,u,h)?bt(g,u,h):null)??`${d}@${e}.${m}.rule`;S.push(`${k}=${y}`)}return S}function Fn(d,e,r,l){return!e.multivariate||e.variants.length<=1?[]:xa({pageKey:d,prefix:"sections.variants",variants:e.variants,selectedIndex:e.index,decofile:r,meta:l})}function ro({pageKey:d,page:e,sectionIndex:r,sectionLazy:l,mvObj:u,selectedVariantIndex:h,decofile:S,meta:m}){if(r<0)return[];const g=`${e.multivariate?`sections.variants.${e.index}.value`:"sections"}.${r}${l?".section":""}.variants`,y=Array.isArray(u.variants)?u.variants:[];return xa({pageKey:d,prefix:g,variants:y,selectedIndex:h,decofile:S,meta:m})}function Ln(d){const e=He.c(15),{schema:r,value:l,onChange:u,meta:h,decofile:S,onSaveReferencedBlock:m,sandbox:v}=d;let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=[],e[0]=g):g=e[0];const[y,N]=R.useState(g);let k;e[1]!==y?(k=y.length>0&&n.jsxs("nav",{"aria-label":"Variant rule breadcrumb",className:"flex min-w-0 items-center gap-1 overflow-hidden text-xs",children:[n.jsx("button",{type:"button",onClick:()=>N([]),className:"flex shrink-0 items-center gap-0.5 rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",title:"Back to rule",children:n.jsx(ra,{className:"size-3.5"})}),y.map((o,D)=>{const c=D===y.length-1;return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[D>0&&n.jsx(oa,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>N(y.slice(0,D+1)),title:o,className:Ee("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors hover:bg-accent hover:text-accent-foreground",c?"font-medium text-foreground":"text-muted-foreground"),children:o})]},`${o}-${D}`)})]}),e[1]=y,e[2]=k):k=e[2];let _;e[3]!==y||e[4]!==S||e[5]!==h||e[6]!==u||e[7]!==m||e[8]!==v||e[9]!==r||e[10]!==l?(_=n.jsx(aa,{schema:r,value:l,onChange:u,basePath:"",breadcrumbPath:y,onBreadcrumbChange:N,meta:h,decofile:S,onSaveReferencedBlock:m,sandbox:v}),e[3]=y,e[4]=S,e[5]=h,e[6]=u,e[7]=m,e[8]=v,e[9]=r,e[10]=l,e[11]=_):_=e[11];let w;return e[12]!==k||e[13]!==_?(w=n.jsxs("div",{className:"space-y-2",children:[k,_]}),e[12]=k,e[13]=_,e[14]=w):w=e[14],w}function zn(d){const e=He.c(21),{activeSchema:r,formValue:l,formResetKey:u,onFormChange:h,onBreadcrumbChange:S,breadcrumbPath:m,emptyMessage:v,beforeForm:g,seoResolveType:y,siteDefaultSeo:N,meta:k,decofile:_,onSaveReferencedBlock:w,sandbox:o}=d;let D;e[0]!==m?(D=m===void 0?[]:m,e[0]=m,e[1]=D):D=e[1];const c=D;let J;e[2]!==r||e[3]!==c||e[4]!==_||e[5]!==u||e[6]!==l||e[7]!==k||e[8]!==S||e[9]!==h||e[10]!==w||e[11]!==o||e[12]!==y||e[13]!==N?(J=r&&l?y?n.jsx(Ar,{schema:r,resolveType:y,value:l,formResetKey:u,onChange:h,onBreadcrumbChange:S,siteDefaultSeo:N}):n.jsx(aa,{schema:r,value:l,onChange:h,basePath:"",breadcrumbPath:c,onBreadcrumbChange:S,meta:k,decofile:_,onSaveReferencedBlock:w,sandbox:o},u):null,e[2]=r,e[3]=c,e[4]=_,e[5]=u,e[6]=l,e[7]=k,e[8]=S,e[9]=h,e[10]=w,e[11]=o,e[12]=y,e[13]=N,e[14]=J):J=e[14];const H=J;let $;e[15]!==v||e[16]!==H?($=H??n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:v}),e[15]=v,e[16]=H,e[17]=$):$=e[17];let f;return e[18]!==g||e[19]!==$?(f=n.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:n.jsxs("div",{className:"mx-auto max-w-2xl",children:[g,$]})}),e[18]=g,e[19]=$,e[20]=f):f=e[20],f}const oo="text-[oklch(0.45_0.15_160)] bg-[oklch(0.65_0.15_160/0.18)] dark:text-[oklch(0.78_0.15_160)] dark:bg-[oklch(0.65_0.15_160/0.22)]";function io(d,e){return Hs(d,e,tt)}function lo(d){const e=He.c(13),{pageKey:r,initialName:l,initialPath:u,onFieldChange:h}=d,[S,m]=R.useState(l),[v,g]=R.useState(u),[y,N]=R.useState(r);y!==r&&(N(r),m(l),g(u));let k;e[0]!==h?(k=c=>{m(c.target.value),h("name",c.target.value)},e[0]=h,e[1]=k):k=e[1];let _;e[2]!==S||e[3]!==k?(_=n.jsx("input",{type:"text",value:S,onChange:k,className:"w-full bg-transparent text-sm font-semibold truncate outline-none border-none p-0 focus:ring-0 placeholder:text-muted-foreground",placeholder:"Page name"}),e[2]=S,e[3]=k,e[4]=_):_=e[4];let w;e[5]!==h?(w=c=>{g(c.target.value),h("path",c.target.value)},e[5]=h,e[6]=w):w=e[6];let o;e[7]!==v||e[8]!==w?(o=n.jsx("input",{type:"text",value:v,onChange:w,className:"w-full bg-transparent text-xs text-muted-foreground truncate outline-none border-none p-0 focus:ring-0 placeholder:text-muted-foreground",placeholder:"/path"}),e[7]=v,e[8]=w,e[9]=o):o=e[9];let D;return e[10]!==_||e[11]!==o?(D=n.jsxs("div",{className:"space-y-1",children:[_,o]}),e[10]=_,e[11]=o,e[12]=D):D=e[12],D}function In(d){const e=He.c(6),{onClick:r}=d;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(sa,{size:14}),e[0]=l):l=e[0];let u;e[1]!==r?(u=n.jsx(pt,{asChild:!0,children:n.jsx(Ge,{type:"button",variant:"ghost",size:"icon","aria-label":"Add variant",className:"size-7 shrink-0 text-[oklch(0.65_0.15_160)]",onClick:r,children:l})}),e[1]=r,e[2]=u):u=e[2];let h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(ht,{side:"bottom",children:"Add variant"}),e[3]=h):h=e[3];let S;return e[4]!==u?(S=n.jsxs(ft,{children:[u,h]}),e[4]=u,e[5]=S):S=e[5],S}function Ql({orgSlug:d,virtualMcpId:e,branch:r,previewReady:l=!0,previewUrl:u,currentPath:h,activePageBlockKey:S=null,activeGlobalBlockKey:m=null,externalSelectedIndex:v,onSaved:g,initialEditSeo:y=!1,onExitSeo:N,onViewJsonFile:k,onVariantPreviewOverride:_}){const w=l?{orgSlug:d,virtualMcpId:e,branch:r,previewUrl:u}:null,{data:o,isLoading:D}=Vs(w),{data:c,isLoading:J}=Cs(w),H=Ps(),$=H?.entity?.id===e?H.entity.metadata?.siteSlug??null:null,[f,P]=R.useState(null),[se,T]=R.useState(null),[pe,V]=R.useState(null),[ce,B]=R.useState(0),[te,oe]=R.useState(void 0),[Ce,E]=R.useState(null),[ue,ie]=R.useState(null),[je,M]=R.useState([]),[Ae,X]=R.useState(0),[Ne,ve]=R.useState(null),[re,G]=R.useState(null),[q,ne]=R.useState(null),[le,ke]=R.useState(!0),[Se,de]=R.useState(!1),[be,K]=R.useState(!1),[Z,we]=R.useState(y),[$e,Ke]=R.useState(y);y&&!$e&&(Ke(!0),we(!0),P(null),T(null),V(null),M([])),!y&&$e&&Ke(!1);const[Fe,Pe]=R.useState(null),[Oe,Le]=R.useState(void 0),[Me,xe]=R.useState([]),[Re,me]=R.useState(0),[ee,F]=R.useState(0),[ae,Q]=R.useState(null),[ze,he]=R.useState(null),[Qe,dn]=R.useState(null),ya=xs(),ba=`${d}/${e}/${r}`,Ht=Ts({orgSlug:d,virtualMcpId:e,branch:r}),[_a,ja]=R.useState(h),[ka,wa]=R.useState(S),[Ra,Da]=R.useState(m);(_a!==h||ka!==S||Ra!==m)&&(queueMicrotask(()=>Ht.flush()),ja(h),wa(S),Da(m),P(null),T(null),V(null),B(0),E(null),ie(null),F(0),Q(null),he(null),M([]),X(t=>t+1),we(!1),Pe(null),Le(void 0),xe([]),me(t=>t+1));const ye=As({orgSlug:d,virtualMcpId:e,branch:r}),Nt=Zs((t,a)=>{ye.mutate({blockKey:t,data:a},{onSuccess:()=>g?.(),onError:s=>W.error(`Save failed: ${s.message}`)})}),Ut=Ms({orgSlug:d,virtualMcpId:e,branch:r}),[_t,Vt]=R.useState(!1),Wt=R.useRef(null),gt=R.useRef(null),vt=R.useRef(null),Gt=R.useRef({}),qe=R.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null});if(!l||D||J)return n.jsx("div",{className:"h-full w-full flex items-center justify-center",children:n.jsx(Hn,{size:20,className:"animate-spin text-muted-foreground"})});if(!o||!c)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:"Could not load site data."});const Na=Es(o),_e=!!m,Ie=_e?null:$s(Na,h,S),j=_e?m:Ie?.key??null,qt=_e&&m?o[m]:void 0,mn=_e&&m&&qt?Ks(m,qt):_e&&m?m:"",Ct=!_e&&j&&o[j]?o[j]:null,Yt=Z&&o&&c&&j&&Ie?$n(o,{kind:"page",pageKey:j,pageName:String(Ie.name??""),path:String(Ie.path??"")},c):null,Va=Z?Ct?.seo:void 0,Jt=Oe!==void 0?Oe:Va,Ca=Z?Rr(Jt):void 0,Pa=Yt?.seoTypeOptions??[],Ta=Z&&c?Dr(c):"",fn=Fe??Ca??{},Qt=Z&&Yt?Nr(fn,Yt):null,Aa=Z&&Qt&&Vr(Jt)?Ot(Qt,c):null,Ma=Z?Cr(o,c)?.seoData:void 0,Be=_e?[{label:"Default",sections:[{__resolveType:m}]}]:io(Ct?.sections,o??{}),Pt=Be.length>1,Ve=Math.min(ce,Be.length-1),nt=Be[Ve],z=nt?.sections??[],Te=Bt(z,o),pn=!_e&&Os(Ct?.sections);if(_e&&m&&Qe!==m){dn(m);const t=z[0],a=Te[0];if(t&&a){P(0),F(0),M([]);const s=ut(t,a,o);s&&(T(s.data),V(s.resolveType),he(null),Q(null))}}!_e&&Qe!==null&&dn(null),qe.current={rawSections:z,parsedSections:Te,decofile:o??{},activePageKey:j,pageVariants:Be,variantIndex:Ve,sectionVariantIndex:ee,selectedSectionIndex:f};const Ea=()=>({multivariate:pn,index:Ve,variants:Be.map(t=>({rule:t.rule}))}),hn=(t,a)=>{if(!_)return;if(!j||!pn||t.length<=1){_(null);return}const s=Fn(j,{multivariate:!0,index:a,variants:t},o,c);_(s.length>0?s:null)},St=(t,a,s)=>{if(!_)return;if(!j){_(null);return}const i=Ea(),p=Fn(j,i,o,c);if(!t||a<0){_(p.length>0?p:null);return}const b=ro({pageKey:j,page:i,sectionIndex:a,sectionLazy:Te[a]?.isLazy??!1,mvObj:t,selectedVariantIndex:s,decofile:o,meta:c}),x=[...p,...b];_(x.length>0?x:null)},at=(t,a,s,i=f??-1,p=!1)=>{const b=Je(t,a);if(!b){T(null),V(null),he(null),Q(null),p&&St(null,i,s);return}const C=Cn(b,tt)[s];if(!C){T(null),V(null),he(null),Q(null),p&&St(null,i,s);return}const Y=Us(C.value,o);T(Y?.data??null),V(Y?.resolveType??null);const{resolveType:A,formValue:O}=kt(C.rule,o,c??void 0);he(A),Q(O),p&&St(b,i,s)};if(v!==void 0&&v!==te&&(oe(v??null),typeof v=="number")){const t=z[v],a=Te[v];if(t&&a)if(P(v),F(0),M([]),X(s=>s+1),a.isMultivariate)at(t,a,0,v);else{const s=ut(t,a,o);s?(T(s.data),V(s.resolveType)):(T(null),V(null)),he(null),Q(null)}}const Tt={orgSlug:d,virtualMcpId:e,branch:r,previewUrl:u??void 0,siteSlug:$},Xt=pe&&c?Ot(pe,c):null,Ue=(t,a)=>{if(!j)return;const s=wt(o,j,t,Ve,Be);ye.mutate({blockKey:j,data:s},{onSuccess:()=>a?.onSuccess?.()??g?.(),onError:i=>W.error(`Save failed: ${i.message}`)})},xt=()=>{P(null),T(null),V(null),F(0),Q(null),he(null),M([]),X(t=>t+1)},$a=(t,a)=>{Wt.current&&clearTimeout(Wt.current);const s=qe.current.sectionVariantIndex;Wt.current=setTimeout(()=>{const{rawSections:i,parsedSections:p,decofile:b,activePageKey:x,pageVariants:C,variantIndex:Y}=qe.current,A=i[a];if(!A)return;const O=p[a];if(!O)return;if(O.isSavedBlock){const I=O.isLazy?A.section?.__resolveType??A.__resolveType:A.__resolveType;ye.mutate({blockKey:I,data:t},{onSuccess:()=>g?.(),onError:U=>W.error(`Save failed: ${U.message}`)});return}if(!x)return;const L={...b[x]},ge=[...i];if(O.isMultivariate){const I=Je(A,O);if(!I||!x)return;const U=rr(I,s,t);ge[a]=dt(A,O,U)}else if(O.isHidden){const I=qn(A.__resolveType),U=I?{...A.section}:{...A},De=Array.isArray(U.variants)?[...U.variants]:[];De[0]&&(De[0]={...De[0],value:t}),U.variants=De,I?ge[a]={...A,section:U}:ge[a]=U}else O.isLazy?ge[a]={...A,section:t}:ge[a]=t;if(C.length>1){const I=L.sections,U=[...I?.variants??[]];U[Y]&&(U[Y]={...U[Y],value:ge}),L.sections={...I,variants:U}}else L.sections=ge;ye.mutate({blockKey:x,data:L},{onSuccess:()=>g?.(),onError:I=>W.error(`Save failed: ${I.message}`)})},on)},Ka=t=>{P(t),F(0),M([]),X(p=>p+1);const a=z[t],s=Te[t];if(!a||!s)return;if(s.isMultivariate){at(a,s,0,t);return}const i=ut(a,s,o);if(!i){T(null),V(null),he(null),Q(null),St(null,t,0);return}T(i.data),V(i.resolveType),he(null),Q(null),St(null,t,0)},gn=t=>{const a=t;T(a),f!==null&&$a(a,f)},Zt=t=>{if(!j||!o||!c||!Ie)return;const a={kind:"page",pageKey:j,pageName:String(Ie.name??""),path:String(Ie.path??"")},s=$n(o,a,c);s&&Ht.save(j,()=>{const i=ya.getQueryData(ys.decofile(ba))?.[j];if(!i||typeof i!="object"||i===null||Array.isArray(i))return null;const p={...i,...Gt.current};return Gt.current={},t?.raw!==void 0?{...p,seo:t.raw}:t?.inner!==void 0?Tr(a,s,p,t.inner):p})},Oa=(t,a)=>{j&&(Gt.current[t]=a,Zt())},Ba=(t,a)=>{if(!j)return;const s=Rt([...z],t,a);f!==null&&(f===t?P(a):t<f&&a>=f?P(f-1):t>f&&a<=f&&P(f+1)),Ue(s)},Fa=t=>{if(!j)return;const a=z.filter((s,i)=>i!==t);f===t?xt():f!==null&&f>t&&P(f-1),Ue(a)},La=t=>{if(!j)return;const a=z[t];if(!a)return;const s=[...z];s.splice(t+1,0,ar(a)),f!==null&&f>t&&P(f+1),Ue(s)},za=t=>{if(!j)return;const a=z[t],s=Te[t];if(!a||!s||s.isMultivariate)return;const i=s.isHidden?tr(a):nr(a);if(!i)return;const p=[...z];p[t]=i,f===t&&xt(),Ue(p)},Ia=t=>{if(!j)return;const a=z[t],s=Te[t];if(!a||!s||s.isMultivariate)return;const i=er(a);if(!i)return;const p=[...z];p[t]=i,f===t&&xt(),Ue(p)},Ha=t=>{if(!j)return;const a=z[t],s=Te[t];if(!a||!s?.isSavedBlock)return;const i=ut(a,s,o);if(!i?.data)return;const{name:p,...b}=i.data,x=[...z];s.isLazy?x[t]={...a,section:b}:x[t]=b,f===t&&xt(),Ue(x)},Ua=t=>{if(!j)return;const a=[...z,{__resolveType:t.resolveType}],s=a.length-1;Ue(a,{onSuccess:()=>{de(!1),P(s),F(0),M([]),X(x=>x+1);const i=a[s],p=Bt(a,o)[s];if(!i||!p)return;if(p.isMultivariate){at(i,p,0);return}const b=ut(i,p,o);if(!b){T(null),V(null),he(null),Q(null);return}T(b.data),V(b.resolveType),he(null),Q(null)}})},Wa=t=>{if(f===null)return;const a=z[f],s=Te[f];!a||!s?.isMultivariate||(F(t),M([]),X(i=>i+1),at(a,s,t,f,!0))},Ga=t=>{if(f===null||!j)return;const a=z[f],s=Te[f];if(!a||!s?.isMultivariate)return;const i=Je(a,s);if(!i)return;const p=Qs(i,t);if(!p){W.error("Cannot delete the only variant.");return}const b=[...z];b[f]=dt(a,s,p);const x=p.variants;let C=ee;t===ee?C=Math.min(t,x.length-1):t<ee&&(C=ee-1),F(C),M([]),X(Y=>Y+1),at(b[f],s,C),Ue(b)},qa=t=>{if(f===null||!j)return;const a=z[f],s=Te[f];if(!a||!s?.isMultivariate)return;const i=Je(a,s);if(!i)return;const p=Xs(i,t),b=[...z];b[f]=dt(a,s,p);const x=t+1;F(x),M([]),X(C=>C+1),at(b[f],s,x),Ue(b)},Ya=(t,a)=>{if(f===null||!j||t===a)return;const s=z[f],i=Te[f];if(!s||!i?.isMultivariate)return;const p=Je(s,i);if(!p)return;const b=Ys(p,t,a),x=[...z];x[f]=dt(s,i,b);let C=ee;ee===t?C=a:t<ee&&a>=ee?C=ee-1:t>ee&&a<=ee&&(C=ee+1),F(C),at(x[f],i,C),Ue(x)},en=t=>{const a=t??f;if(a===null||!j)return;const s=z[a],i=Te[a];if(!s||!i)return;const p=Ws(s,i);if(!p){W.error("This section cannot have variants.");return}const b=[...z];b[a]=p.section;const x=Bt(b,o)[a];if(!x?.isMultivariate){W.error("Could not add variant.");return}P(a),F(p.newVariantIndex),M([]),X(C=>C+1),at(p.section,x,p.newVariantIndex,a),Ue(b)},Ja=()=>{if(f===null||!j)return;const t=z[f],a=Te[f];if(!t||!a?.isMultivariate)return;const s=Je(t,a);if(!s)return;const i=Js(t,a,s);if(!i){W.error("Could not remove variants.");return}const p=[...z];p[f]=i;const b=Bt(p,o)[f];if(!b)return;F(0),he(null),Q(null),M([]),X(C=>C+1);const x=ut(i,b,o);x?(T(x.data),V(x.resolveType)):(T(null),V(null)),St(null,f,0),Ue(p)},Qa=async t=>{if(Ne===null||!j)return;const a=rn(t,o);if(a){W.error(a);return}const s=z[Ne],i=Te[Ne];if(!s||!i)return;const p=ut(s,i,o);if(!p){W.error("This section cannot be saved as global.");return}const b={...p.data,name:t};try{await ye.mutateAsync({blockKey:t,data:b});const x=[...z];x[Ne]={__resolveType:t},await ye.mutateAsync({blockKey:j,data:wt(o,j,x,Ve,Be)}),f===Ne&&xt(),ve(null),W.success(`Saved global block "${t}"`),g?.()}catch(x){W.error(x instanceof Error?x.message:"Failed to save global block")}},vn=nt?.rule;if(Pt&&f===null&&ue===null&&vn){const{resolveType:t,formValue:a}=kt(vn,o??{},c??void 0);ie(t),E(a)}const At=c?Bs(c):[],Sn=c&&o?Fs(c,o):[],Xa=!_e&&!!(u&&c&&o),xn=ue&&c?Ot(ue,c):null,Mt=()=>{gt.current&&(clearTimeout(gt.current),gt.current=null),vt.current&&(clearTimeout(vt.current),vt.current=null)},jt=async(t,a)=>{if(!(sr(a,t,c)>0))try{await Ut.mutateAsync({blockKey:t})}catch(s){W.error(s instanceof Error?s.message:"Could not delete matcher block")}},yn=t=>{gt.current&&clearTimeout(gt.current),gt.current=setTimeout(()=>{const{activePageKey:a,decofile:s,variantIndex:i}=qe.current;if(!a)return;const p={...s[a]},b={...p.sections},x=[...b.variants??[]],C=x[i],Y=C?.rule;if(mt(Y,s,c)){const A=Y?.__resolveType??"",O=s[A],L=typeof O?.name=="string"?O.name:A,{__resolveType:ge,...I}=t;ye.mutate({blockKey:A,data:yt(ge??"",I,L)},{onSuccess:()=>g?.(),onError:U=>W.error(`Save failed: ${U.message}`)});return}C&&(x[i]={...C,rule:t}),p.sections={...b,variants:x},ye.mutate({blockKey:a,data:p},{onSuccess:()=>g?.(),onError:A=>W.error(`Save failed: ${A.message}`)})},on)},Za=t=>{ie(t);const a=t?{__resolveType:t}:{__resolveType:En};E({}),yn(a)},es=t=>{const a=t;E(a);const s=ue?{__resolveType:ue,...a}:{...a};yn(s)},ts=async t=>{Mt();const{activePageKey:a,decofile:s,variantIndex:i}=qe.current;if(!a)return;const p=s[a],b=p?.sections;if(!b||typeof b!="object"||Array.isArray(b))return;const x=b;if(!Array.isArray(x.variants))return;const C=[...x.variants],Y=C[i];if(!Y)return;const A=bt(Y.rule,s,c),O=Lt(t);C[i]={...Y,rule:O};const L={...s,[a]:{...p,sections:{...x,variants:C}}},{resolveType:ge,formValue:I}=kt(O,L,c??void 0);ie(ge),E(I);try{await ye.mutateAsync({blockKey:a,data:L[a]}),A&&A!==t&&await jt(A,L),g?.()}catch(U){W.error(U instanceof Error?U.message:"Could not apply saved rule")}},bn=t=>{vt.current&&clearTimeout(vt.current);const{selectedSectionIndex:a,sectionVariantIndex:s}=qe.current;a!==null&&(vt.current=setTimeout(()=>{const{rawSections:i,parsedSections:p,decofile:b,activePageKey:x,pageVariants:C,variantIndex:Y}=qe.current;if(!x)return;const A=i[a],O=p[a];if(!A||!O?.isMultivariate)return;const L=Je(A,O);if(!L)return;const I=(L.variants??[])[s]?.rule;if(mt(I,b,c)){const fe=I?.__resolveType??"",We=b[fe],Ze=typeof We?.name=="string"?We.name:fe,{__resolveType:rt,...et}=t;ye.mutate({blockKey:fe,data:yt(rt??"",et,Ze)},{onSuccess:()=>g?.(),onError:ot=>W.error(`Save failed: ${ot.message}`)});return}const U=Tn(L,s,t),De=[...i];De[a]=dt(A,O,U);const Ye=wt(b,x,De,Y,C);ye.mutate({blockKey:x,data:Ye},{onSuccess:()=>g?.(),onError:fe=>W.error(`Save failed: ${fe.message}`)})},on))},ns=t=>{he(t),Q({}),bn(t?{__resolveType:t}:{__resolveType:En})},as=t=>{const a=t;Q(a);const s=ze?{__resolveType:ze,...a}:{...a};bn(s)},ss=async t=>{Mt();const{selectedSectionIndex:a,sectionVariantIndex:s,rawSections:i,parsedSections:p,decofile:b,activePageKey:x,pageVariants:C,variantIndex:Y}=qe.current;if(a===null||!x)return;const A=i[a],O=p[a];if(!A||!O?.isMultivariate)return;const L=Je(A,O);if(!L)return;const ge=L.variants??[],I=bt(ge[s]?.rule,b,c),U=Lt(t),De=Tn(L,s,U),Ye=[...i];Ye[a]=dt(A,O,De);const fe=wt(b,x,Ye,Y,C),We={...b,[x]:fe},{resolveType:Ze,formValue:rt}=kt(U,We,c??void 0);he(Ze),Q(rt);try{await ye.mutateAsync({blockKey:x,data:fe}),I&&I!==t&&await jt(I,We),g?.()}catch(et){W.error(et instanceof Error?et.message:"Could not apply saved rule")}};if(!_e&&!Ie)return n.jsxs("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:["No page found for ",h]});if(_e&&!qt)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:"Global block not found"});const st=f!==null?Te[f]??null:null,_n=f!==null?z[f]:null,jn=_n&&st?.isMultivariate?Je(_n,st):null,lt=jn?Cn(jn,tt):[],tn=Math.min(ee,Math.max(lt.length-1,0)),Et=lt[tn]??null,ct=st?.isMultivariate===!0,kn=f!==null&&st!==null,$t=kn&&(ct||!!(Xt&&se)),rs=$t&&!_e&&st?.isSavedBlock===!0,Xe=_e||rs,os=_e?mn:st?.label??"",wn=ze&&c?Ot(ze,c):null,nn=$t&&(!_e||je.length>0)?_e?[mn,...je]:[Ie.name,st.label,...ct&&Et?[Et.label]:[],...je]:[],is=Z&&Ie?[Ie.name,"SEO",...Me]:[],Kt=Z?is:Xe?nn.length>0?nn:[os]:nn,Rn=()=>{if(!j)return;const t=o[j],a=Gs(t.sections,z);if(!a)return;const s=qs(a);ye.mutate({blockKey:j,data:{...t,sections:a}},{onSuccess:()=>{B(s),P(null),T(null),V(null),M([]),E(null),ie(null)},onError:i=>W.error(`Save failed: ${i.message}`)})},an=(t,a,s)=>{if(!j)return;const i=o[j],p=i.sections;if(!p||typeof p!="object"||Array.isArray(p))return;const b=p;if(!Array.isArray(b.variants))return;const x=t([...b.variants]);if(!x)return;const C=or(b,x),Y={...o,[j]:{...i,sections:C}};ye.mutate({blockKey:j,data:Y[j]},{onSuccess:()=>{a?.(),s&&jt(s,Y)},onError:A=>W.error(`Save failed: ${A.message}`)})},ls=t=>{G(null),B(t),P(null),T(null),V(null),M([]);const a=Be[t]?.rule,{resolveType:s,formValue:i}=kt(a,o??{},c??void 0);ie(s),E(i),hn(Be.map(p=>({rule:p.rule})),t)},cs=(t,a)=>{if(t===a)return;let s=Ve;Ve===t?s=a:t<Ve&&a>=Ve?s=Ve-1:t>Ve&&a<=Ve&&(s=Ve+1),B(s);const i=Rt(Be.map(p=>({rule:p.rule})),t,a);hn(i,s),an(p=>Rt(p,t,a))},us=t=>{const a=Be[t]?.rule,s=bt(a,o??{},c??void 0);an(i=>i.length<=1?null:(i.splice(t,1),i),()=>{Be.length-1===1?B(0):t<Ve?B(Ve-1):t===Ve&&B(Math.max(0,t-1)),P(null),T(null),V(null),M([]),E(null),ie(null)},s)},ds=t=>{an(a=>ir(a,t),()=>{B(t+1),P(null),T(null),V(null),M([]),E(null),ie(null)})},ms=async(t,a)=>{Mt();const s=qe.current.activePageKey,i=qe.current.decofile;if(!s)return;const p=i[s],b=p.sections;if(!b||typeof b!="object"||Array.isArray(b))return;const x=b;if(!Array.isArray(x.variants))return;const C=[...x.variants],Y=C[t];if(!Y?.rule||typeof Y.rule!="object"){W.error("This variant has no matcher rule to rename.");return}const A=Y.rule,O=a.trim();Vt(!0);try{if(!O){if(!mt(A,i,c)){G(null);return}const Ye=A.__resolveType??"";C[t]={...Y,rule:An(A,i,c)};const fe={...i,[s]:{...p,sections:{...x,variants:C}}};await ye.mutateAsync({blockKey:s,data:fe[s]}),await jt(Ye,fe),G(null),g?.();return}const L=Mn(A,i,c);if(!L){W.error("Could not read this variant's matcher rule.");return}if(L.blockKey){await ye.mutateAsync({blockKey:L.blockKey,data:yt(L.resolveType,L.data,O)}),G(null),g?.();return}const ge=sn(O),I=rn(ge,i);if(I){W.error(I);return}const U=yt(L.resolveType,L.data,O);let De=null;try{await ye.mutateAsync({blockKey:ge,data:U}),De=ge,C[t]={...Y,rule:Lt(ge)},await ye.mutateAsync({blockKey:s,data:{...p,sections:{...x,variants:C}}}),De=null}catch(Ye){throw De&&await Ut.mutateAsync({blockKey:De}).catch(()=>{}),Ye}G(null),W.success(`Saved matcher as global block "${O}"`),g?.()}catch(L){W.error(L instanceof Error?L.message:"Failed to rename variant")}finally{Vt(!1)}},fs=async(t,a)=>{Mt();const{selectedSectionIndex:s,rawSections:i,parsedSections:p,decofile:b,activePageKey:x,pageVariants:C,variantIndex:Y}=qe.current;if(s===null||!x)return;const A=i[s],O=p[s];if(!A||!O?.isMultivariate)return;const L=Je(A,O);if(!L)return;const ge=L.variants??[],I=ge[t];if(!I?.rule||typeof I.rule!="object"){W.error("This variant has no matcher rule to rename.");return}const U=I.rule,De=a.trim();Vt(!0);const Ye=async fe=>{const We={...L,variants:fe},Ze=[...i];Ze[s]=dt(A,O,We);const rt=wt(b,x,Ze,Y,C);return await ye.mutateAsync({blockKey:x,data:rt}),{...b,[x]:rt}};try{if(!De){if(!mt(U,b,c)){ne(null);return}const ot=U.__resolveType??"",Vn=[...ge];Vn[t]={...I,rule:An(U,b,c)};const Ss=await Ye(Vn);await jt(ot,Ss),ne(null),g?.();return}const fe=Mn(U,b,c);if(!fe){W.error("Could not read this variant's matcher rule.");return}if(fe.blockKey){await ye.mutateAsync({blockKey:fe.blockKey,data:yt(fe.resolveType,fe.data,De)}),ne(null),g?.();return}const We=sn(De),Ze=rn(We,b);if(Ze){W.error(Ze);return}const rt=yt(fe.resolveType,fe.data,De);let et=null;try{await ye.mutateAsync({blockKey:We,data:rt}),et=We;const ot=[...ge];ot[t]={...I,rule:Lt(We)},await Ye(ot),et=null}catch(ot){throw et&&await Ut.mutateAsync({blockKey:et}).catch(()=>{}),ot}ne(null),W.success(`Saved matcher as global block "${De}"`),g?.()}catch(fe){W.error(fe instanceof Error?fe.message:"Failed to rename variant")}finally{Vt(!1)}},Dn=()=>{xt()},ps=t=>{Pe(t),Zt({inner:t})},hs=t=>{Le(t),Zt({raw:t})},gs=()=>{Pe(null),xe([])},vs=()=>me(t=>t+1),Nn=t=>{if(Z){if(t===0){Ht.flush(),we(!1),Pe(null),Le(void 0),xe([]),me(s=>s+1),N?.();return}if(t===1){xe([]),me(s=>s+1);return}xe(Me.slice(0,t-1)),me(s=>s+1);return}if(_e){M(je.slice(0,t)),X(s=>s+1);return}if(t===0){Dn();return}if(t===1){M([]),X(s=>s+1);return}if(ct&&t===2){M([]),X(s=>s+1);return}const a=ct?2:1;M(je.slice(0,t-a))};return n.jsxs("div",{className:"flex h-full min-w-0 w-full flex-col",children:[n.jsx("div",{className:"shrink-0",children:Xe||$t||Z?n.jsxs("div",{className:Ee("border-b px-3 py-2.5",Xe&&"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:[Kt.length>1&&n.jsx("button",{type:"button",onClick:()=>Nn(Kt.length-2),title:"Back","aria-label":"Back",className:Ee("shrink-0 inline-flex size-6 items-center justify-center rounded-md transition-colors",Xe?"text-foreground/80 hover:bg-global-section/15":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:n.jsx(ra,{className:"size-4"})}),!_e&&Pt&&nt&&n.jsxs("button",{type:"button",onClick:Dn,title:`Editing in variant: ${nt.label}`,className:Ee("shrink-0 inline-flex items-center gap-1 rounded-md h-6 px-1.5 text-xs font-medium cursor-pointer transition-opacity hover:opacity-80",oo),children:[n.jsx(va,{rule:Dt(nt.rule,o??{},c??void 0),matchers:At}),n.jsx("span",{className:"max-w-[160px] truncate",children:nt.label})]}),n.jsx("nav",{"aria-label":"Editing breadcrumb",className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:Kt.map((t,a)=>{const s=a===Kt.length-1;return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[a>0&&n.jsx(oa,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>Nn(a),title:t,className:Ee("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",s?Xe?"font-semibold text-global-section-fg dark:text-global-section-fg-dark":"font-medium text-foreground":Xe?"text-foreground/80":"text-muted-foreground",Xe?"hover:bg-global-section/15":"hover:bg-accent hover:text-accent-foreground"),children:t})]},`${t}-${a}`)})}),Xe&&n.jsxs(ft,{children:[n.jsx(pt,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(fr,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),n.jsx(ht,{side:"bottom",className:"max-w-[260px]",children:"A global section is a reusable block shared across your site. Editing it here updates it everywhere it's used."})]}),kn&&!ct&&!st?.isHidden&&j&&n.jsx(In,{onClick:()=>en()})]}),Xe&&n.jsx("p",{className:"mt-1.5 py-1.5 pl-1 text-sm leading-snug text-foreground",children:"This is a global section. Changes apply everywhere this section is used across your site."})]}):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(lo,{pageKey:j,initialName:Ie.name,initialPath:Ie.path,onFieldChange:Oa})}),n.jsxs(ft,{children:[n.jsx(pt,{asChild:!0,children:n.jsx(Ge,{type:"button",variant:"ghost",size:"icon","aria-label":"Edit SEO",className:"size-7 shrink-0",onClick:()=>we(!0),children:n.jsx(dr,{size:14})})}),n.jsx(ht,{side:"bottom",children:"Edit SEO"})]}),n.jsxs(ft,{children:[n.jsx(pt,{asChild:!0,children:n.jsx(Ge,{type:"button",variant:"ghost",size:"icon","aria-label":"View JSON",className:"size-7 shrink-0",onClick:()=>k&&j?k(j):K(!0),children:n.jsx(mr,{size:14})})}),n.jsx(ht,{side:"bottom",children:"View JSON"})]}),n.jsx(In,{onClick:Rn})]})}),Z?n.jsx(zt,{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:Ct&&j?n.jsx(Pr,{rawSeo:Jt,innerSeo:fn,defaultResolveType:Ta,seoSchema:Aa,activeResolveType:Qt,seoTypeOptions:Pa,formResetKey:Re,siteDefaultSeo:Ma,onBreadcrumbChange:xe,onPersistRaw:hs,onInnerChange:ps,onClearForm:gs,onBumpFormKey:vs}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:"SEO schema not found for this site."})})})}):$t?n.jsxs(zt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[ct&<.length>0&&n.jsxs(n.Fragment,{children:[n.jsx(Ls,{listKey:`${j??""}:${f??""}`,variants:lt.map((t,a)=>({index:a,label:t.label})),selectedIndex:tn,onSelect:Wa,onRename:ne,onDuplicate:qa,onDelete:Ga,onRemoveAll:Ja,onReorder:Ya,onAdd:()=>en()}),ct&&n.jsxs("div",{className:"px-3 py-3 border-b space-y-2",children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Variant rule"}),n.jsx(Pn,{currentRt:ze??"",currentLabel:Ft(Et?.rule,o??{},tt,c??void 0),currentGlobalKey:bt(Et?.rule,o??{},c??void 0)??void 0,matchers:At,globals:Sn,onSelect:ns,onSelectGlobal:ss}),wn&&ae&&n.jsx("div",{className:"pt-1",children:n.jsx(Ln,{schema:wn,value:ae,onChange:as,meta:c??void 0,decofile:o,onSaveReferencedBlock:Nt,sandbox:Tt},`${f??"none"}:${tn}:${ze??""}`)})]})]}),n.jsx(zn,{activeSchema:Xt,formValue:se,formResetKey:Ae,onFormChange:gn,onBreadcrumbChange:M,breadcrumbPath:je,emptyMessage:"No editable fields for this variant.",meta:c,decofile:o,onSaveReferencedBlock:Nt,sandbox:Tt})]}):_e?n.jsx(zt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx(zn,{activeSchema:Xt,formValue:se,formResetKey:Ae,onFormChange:gn,onBreadcrumbChange:M,breadcrumbPath:je,emptyMessage:"No editable fields for this global block.",meta:c,decofile:o,onSaveReferencedBlock:Nt,sandbox:Tt})}):n.jsxs(zt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[Pt&&j&&n.jsx(ao,{listKey:j,variants:Be,activeIndex:Ve,decofile:o??{},meta:c,matchers:At,onSelect:ls,onReorder:cs,onRename:G,onDuplicate:ds,onDelete:us,onAdd:Rn}),Pt&&ue!==null&&n.jsxs("div",{className:Ee("px-3 border-b",le?"pt-3 pb-5 space-y-3":"py-2"),children:[n.jsxs("button",{type:"button",onClick:()=>ke(t=>!t),className:"flex w-full items-center justify-between gap-2 text-left cursor-pointer rounded-sm py-0.5 hover:bg-muted/40","aria-expanded":le,children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Variant rule"}),le?n.jsx(cr,{className:"size-3.5 shrink-0 text-muted-foreground"}):n.jsx(lr,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),le&&n.jsxs("div",{className:Ee("space-y-3",_t&&"pointer-events-none opacity-50"),children:[n.jsx(Pn,{currentRt:ue,currentLabel:Ft(nt?.rule,o??{},tt,c??void 0),currentGlobalKey:bt(nt?.rule,o??{},c??void 0)??void 0,matchers:At,globals:Sn,onSelect:Za,onSelectGlobal:ts}),xn&&Ce&&n.jsx("div",{className:"space-y-3",children:n.jsx(Ln,{schema:xn,value:Ce,onChange:es,meta:c??void 0,decofile:o,onSaveReferencedBlock:Nt,sandbox:Tt},`${Ve}:${ue??""}`)})]})]}),n.jsx("div",{className:"p-2 pt-3",children:n.jsx(qr,{listKey:`${j??""}-${Ve}`,rawSections:z,sections:Te,meta:c,selectedIndex:f,onSelect:Ka,onReorder:Ba,onDelete:Fa,onDuplicate:La,onMakeReusable:ve,onToggleHidden:za,onToggleLazy:Ia,onAddVariant:en,onDetach:Ha,onAddSection:()=>de(!0),canAddSection:Xa})})]}),n.jsx(zs,{open:Ne!==null,onOpenChange:t=>{t||ve(null)},defaultBlockId:Ne!==null?sn(Te[Ne]?.label??""):"",isPending:ye.isPending,onSubmit:Qa}),u&&n.jsx(Er,{open:Se,onOpenChange:de,meta:c,decofile:o,previewBaseUrl:u,onSelect:Ua}),be&&j&&o&&n.jsx(Is,{open:be,onOpenChange:K,pageKey:j,decofile:o}),re!==null&&n.jsx(On,{open:!0,initialName:mt(Be[re]?.rule,o??{},c??void 0)?Ft(Be[re]?.rule,o??{},tt,c??void 0):"",autoLabel:tt(Dt(Be[re]?.rule,o??{},c??void 0)),isPending:_t,onSubmit:async t=>{await ms(re,t)},onOpenChange:t=>{!t&&!_t&&G(null)}}),q!==null&&n.jsx(On,{open:!0,initialName:mt(lt[q]?.rule,o??{},c??void 0)?Ft(lt[q]?.rule,o??{},tt,c??void 0):"",autoLabel:tt(Dt(lt[q]?.rule,o??{},c??void 0)),isPending:_t,onSubmit:async t=>{await fs(q,t)},onOpenChange:t=>{!t&&!_t&&ne(null)}})]})}export{Ql as SectionsEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CDZ5Aq1h.js","assets/index-_9_If8hV.js","assets/index-DhHJ9QL9.css","assets/XCircle-Ubd_lt39.js","assets/CheckCircle-BB6vk6oF.js","assets/Settings02-DQPzjW01.js","assets/use-mcp-client-OHo8USpe.js","assets/constants-B72Xmt_K.js","assets/auth-DEyPYEvA.js","assets/useInfiniteQuery-DTJPJ103.js","assets/use-infinite-scroll-XnGTmELt.js","assets/studio-tools-CKe88Nyn.js","assets/badge-Co1sD3N3.js","assets/input-keyrerlc.js","assets/dropdown-menu-C88JkCey.js","assets/Check-BjITlV29.js","assets/ChevronRight-ChI3PJvZ.js","assets/Circle-9F0vtvpH.js","assets/table-CT3SbJYL.js","assets/toggle-group-COgQnBbS.js","assets/use-view-mode-Dp93w6NF.js","assets/use-mobile-B8GotXbv.js","assets/DotsVertical-BqEs4xQp.js","assets/FilterLines-BZ5zsaAc.js","assets/Globe01-B461Nwwh.js","assets/SearchMd-BKdnEqzA.js","assets/dialog-BfE-bxwJ.js","assets/X-CW256acn.js","assets/AlertCircle-D9sGnK-9.js","assets/Upload01-DBe4YIZX.js","assets/alert-dialog-CtGxaRKW.js","assets/card-Bnar-Iu5.js","assets/Trash01-Dhd1UnVB.js","assets/label-77EmLnyJ.js","assets/select-Bljv__bR.js","assets/tooltip-TevqeZrN.js","assets/ChevronDown-CP20sAWY.js","assets/ChevronUp-C5771OOc.js","assets/switch-FcQwIjoX.js","assets/textarea-5xpZZEZ9.js","assets/checkbox-B0M0CFfW.js","assets/Eye-Dr_xTPtU.js","assets/LinkExternal01-BFwOFRst.js","assets/use-copy-1w6BBUlk.js","assets/Copy01-9jeLkfsF.js","assets/Key01-CIqvP5Ev.js","assets/Plus-C4ugKimL.js","assets/mcp-oauth-ULZ6x3CO.js","assets/Play-CiLKvyf1.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as m,b as n,e as c,j as t,i as p,r as l,aD as f}from"./index-_9_If8hV.js";import{R as u}from"./require-capability-DzSwcsvh.js";import"./use-capability-BD-cXUBD.js";import"./access-gate-Bnbz-F0X.js";import"./capability-load-error-sobVTtf7.js";const g=l.lazy(()=>f(()=>import("./registry-layout-CDZ5Aq1h.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(p,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./use-infinite-scroll-XnGTmELt.js";import{cy as i}from"./index-_9_If8hV.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./use-infinite-scroll-XnGTmELt.js";import{cy as u,F as n}from"./index-_9_If8hV.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|