decocms 4.63.2 → 4.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-BTBypCdn.js → AlertCircle-2jdjwXod.js} +1 -1
- package/dist/client/assets/{AreaChart-BhX94NDH.js → AreaChart-ChGdNg__.js} +1 -1
- package/dist/client/assets/{ArrowUp-BJLl9TqD.js → ArrowUp-Bns359kG.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-sV3vc65w.js → ArrowUpRight-B-SX4ds9.js} +1 -1
- package/dist/client/assets/{Check-C6CkZg9-.js → Check-Cs_nz_11.js} +1 -1
- package/dist/client/assets/{CheckCircle-uMaPMHfw.js → CheckCircle-ODzvf2Mk.js} +1 -1
- package/dist/client/assets/{ChevronDown-CnSiev6J.js → ChevronDown-BnmgLMQp.js} +1 -1
- package/dist/client/assets/{ChevronRight-Bl_yFHrD.js → ChevronRight-BmpzEjlZ.js} +1 -1
- package/dist/client/assets/{ChevronUp-BaPKVFC3.js → ChevronUp-BMWZkFCK.js} +1 -1
- package/dist/client/assets/{Circle-DWd5snPl.js → Circle-CiIqX-4A.js} +1 -1
- package/dist/client/assets/{Copy01-q1_4xSoT.js → Copy01-BBSGxvvU.js} +1 -1
- package/dist/client/assets/{DotsVertical-3-1wg6CQ.js → DotsVertical-DPYpow1e.js} +1 -1
- package/dist/client/assets/{Eye-BkqHAYFU.js → Eye-CxXCNp9x.js} +1 -1
- package/dist/client/assets/{FilterLines-C3raf_4-.js → FilterLines-B5ne1C-E.js} +1 -1
- package/dist/client/assets/{Globe01-C_XmMjFu.js → Globe01-CWT8cfe0.js} +1 -1
- package/dist/client/assets/{Globe04-BrGU2s2F.js → Globe04-EdxS5i8F.js} +1 -1
- package/dist/client/assets/{HardDrive-BphckALA.js → HardDrive-CyRX8eRE.js} +1 -1
- package/dist/client/assets/{Key01-DGNNZHBM.js → Key01-BVM01BsN.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DXTPhzEW.js → LayoutLeft-Ca9h62hv.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DLTXWmjD.js → LinkExternal01-BeHPDO-A.js} +1 -1
- package/dist/client/assets/{List-BwKSG732.js → List-vKHfauer.js} +1 -1
- package/dist/client/assets/{Monitor01-D7y4Pb1B.js → Monitor01-_dxOwg-V.js} +1 -1
- package/dist/client/assets/{Package-Q8Zv9Y_3.js → Package-_xGRzdZH.js} +1 -1
- package/dist/client/assets/{Palette-D82zDHT4.js → Palette-_Bxr-_IA.js} +1 -1
- package/dist/client/assets/{Play-CF7bszTU.js → Play-T6Ulwzbi.js} +1 -1
- package/dist/client/assets/{Plus-ZkctvKC4.js → Plus-5aSNzK4v.js} +1 -1
- package/dist/client/assets/{SearchLg-iQhGcj-a.js → SearchLg-DFE9tDzd.js} +1 -1
- package/dist/client/assets/{SearchMd-D002K9LO.js → SearchMd-BwPBMv_I.js} +1 -1
- package/dist/client/assets/{Settings02-Deuua6cy.js → Settings02-D0ZIXHKW.js} +1 -1
- package/dist/client/assets/{Shield01-DPjv8Zam.js → Shield01-K8ZclYuH.js} +1 -1
- package/dist/client/assets/{Star01-BhWhGrZ_.js → Star01-C6gIUnMC.js} +1 -1
- package/dist/client/assets/{Stars01-Dw5HzSvc.js → Stars01-CIY0Cbdf.js} +1 -1
- package/dist/client/assets/{Stars02-eG3W6QRG.js → Stars02-CaKsPC1S.js} +1 -1
- package/dist/client/assets/{Sun-CsySQ-v-.js → Sun-Cait_D1T.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-h4mu2LgB.js → SwitchHorizontal01-D0LWZZ0b.js} +1 -1
- package/dist/client/assets/{Tool01-BI49uxz7.js → Tool01-ZnHDW7TB.js} +1 -1
- package/dist/client/assets/{Tool02-bHBqq1Gb.js → Tool02-svmJaQQ3.js} +1 -1
- package/dist/client/assets/{Trash01-C4WuTo6-.js → Trash01-i_nNUn-v.js} +1 -1
- package/dist/client/assets/{Trash03-Cwg_hP4B.js → Trash03-pVWJ_Sy5.js} +1 -1
- package/dist/client/assets/{TrendUp01-Bp8GuuqE.js → TrendUp01-BrvNuhlW.js} +1 -1
- package/dist/client/assets/{Upload01-0ls4OKAV.js → Upload01-TtI1kXpP.js} +1 -1
- package/dist/client/assets/{User01-cqDu6Kgh.js → User01-BAWiktf8.js} +1 -1
- package/dist/client/assets/{Users01-BuDSv84q.js → Users01-41Hv3Ltw.js} +1 -1
- package/dist/client/assets/{Users03-DMqPwFCP.js → Users03-fKd2nbn9.js} +1 -1
- package/dist/client/assets/{X-Arce-Ge0.js → X-DToCREjt.js} +1 -1
- package/dist/client/assets/{XCircle-rnvB6r1o.js → XCircle-wrtOXX8g.js} +1 -1
- package/dist/client/assets/{XClose-Dq50L0Ca.js → XClose-BWDuYgYR.js} +1 -1
- package/dist/client/assets/{Zap-cEit2Hj5.js → Zap-CTmOhMPm.js} +1 -1
- package/dist/client/assets/{ZapSquare-DyWoH3ti.js → ZapSquare-Cn0geoo-.js} +1 -1
- package/dist/client/assets/{ZoomOut-CumCWj6X.js → ZoomOut-lcIrQxM0.js} +1 -1
- package/dist/client/assets/{access-gate-CIIsAfZg.js → access-gate-BBFl79aB.js} +1 -1
- package/dist/client/assets/{add-section-modal-DI17p83S.js → add-section-modal-BW5FyqgS.js} +1 -1
- package/dist/client/assets/{agent-icon-BnuD7OG4.js → agent-icon-DLC1L_Hk.js} +1 -1
- package/dist/client/assets/{agents-list-Brg6uD_-.js → agents-list-7yPhU2D5.js} +1 -1
- package/dist/client/assets/{ai-providers-Bh0y9jDE.js → ai-providers-hcb2MVw2.js} +1 -1
- package/dist/client/assets/{alert-Cpp44T6I.js → alert-CBEero1n.js} +1 -1
- package/dist/client/assets/{alert-dialog-B2NrMNUE.js → alert-dialog-CvkagUzR.js} +1 -1
- package/dist/client/assets/{app-editor-Cy8vcnnM.js → app-editor-tJ2cRiPa.js} +1 -1
- package/dist/client/assets/{auth-CWa2vT5L.js → auth-DOYJKEUb.js} +1 -1
- package/dist/client/assets/{auth-catchall-B0F8kAo5.js → auth-catchall-Bu3KTLfT.js} +1 -1
- package/dist/client/assets/{auth-entry-BD9y6J-q.js → auth-entry-CbYLnDEG.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DdUB_-Tg.js → auth-split-layout-D6TGavfk.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CEQqfsIQ.js → authenticate-and-persist-oauth-DU7oSTBO.js} +1 -1
- package/dist/client/assets/{automation-list-row-C16-DFOd.js → automation-list-row-D7B7KBd6.js} +1 -1
- package/dist/client/assets/{automation-runs-8UgQ1V2y.js → automation-runs-i5Bx7Dgv.js} +1 -1
- package/dist/client/assets/{automations-BlDoHSuP.js → automations-D-uJjkYY.js} +1 -1
- package/dist/client/assets/{autosend-CqddBdGe.js → autosend-nHqAyvYN.js} +1 -1
- package/dist/client/assets/{avatar-hfq9tnFm.js → avatar-Bs7NAfc8.js} +1 -1
- package/dist/client/assets/{badge-YHkNrrCW.js → badge-BpKhJajf.js} +1 -1
- package/dist/client/assets/{block-document-D76SqY1T.js → block-document-j4H-9U9T.js} +2 -2
- package/dist/client/assets/{brand-context-C7osILME.js → brand-context-Bnk7RPXs.js} +1 -1
- package/dist/client/assets/{buckets-B2Kkg2C1.js → buckets-DckQUB-T.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-D-swgwub.js → bulk-category-panel-BaHtvno2.js} +1 -1
- package/dist/client/assets/{calendar-BKliC0dO.js → calendar-B82Lx8q5.js} +1 -1
- package/dist/client/assets/{capability-load-error-CpFzHmR1.js → capability-load-error-COHcRrGU.js} +1 -1
- package/dist/client/assets/{card-BuTTBPVv.js → card-BIUOZmk3.js} +1 -1
- package/dist/client/assets/category-editor-C-ERP_7K.js +1 -0
- package/dist/client/assets/{chat-context-CbliNlff.js → chat-context-BGrFDOtM.js} +1 -1
- package/dist/client/assets/{checkbox-q4GScbrY.js → checkbox-GDMFBUJd.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BKrJV8hJ.js → cli-auth-success-CU7JL8dO.js} +1 -1
- package/dist/client/assets/{collection-detail-CD7OwWYS.js → collection-detail-C2Bszkkb.js} +1 -1
- package/dist/client/assets/{collection-display-button-BjSnIE-R.js → collection-display-button-CU3RB7q1.js} +1 -1
- package/dist/client/assets/{collection-search-CMyvx3uf.js → collection-search-DMyO5_Ej.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-L5cOGjNI.js → collection-table-wrapper-DdZzQm1N.js} +1 -1
- package/dist/client/assets/{collection-tabs-DpKi-Pwv.js → collection-tabs-C9deI6X-.js} +1 -1
- package/dist/client/assets/{command-xRIzaNK4.js → command-B3AQHji-.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-wdm8gGPG.js → commerce-onboarding-BpVlrvES.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-BIKJ6n-k.js → connect-desktop-dialog-BSRFYkBR.js} +1 -1
- package/dist/client/assets/{connection-card-DdMOmbQa.js → connection-card-BR5IaC1J.js} +1 -1
- package/dist/client/assets/{connection-detail-DqWeWMCH.js → connection-detail-DOHkFFI9.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-_RrYdkdW.js → connection-form-helpers-B6APusQF.js} +1 -1
- package/dist/client/assets/{connections-DJaNcvRd.js → connections-WwQ-bjsY.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DQQBYQUt.js → decopilot-sse-pool-2YgaflpO.js} +1 -1
- package/dist/client/assets/{dialog-CzzC6F62.js → dialog-CxIxeX9C.js} +1 -1
- package/dist/client/assets/{domain-settings-mISoIv8l.js → domain-settings-DaCqG-ZW.js} +1 -1
- package/dist/client/assets/{drawer-DuwjCdW6.js → drawer-DDntTgAi.js} +1 -1
- package/dist/client/assets/{dropdown-menu-JCGdvklS.js → dropdown-menu-Bgweaubl.js} +1 -1
- package/dist/client/assets/{empty-state-Dl4HXkXF.js → empty-state-Cayxj40G.js} +1 -1
- package/dist/client/assets/{extract-connection-data-_BJPZSvu.js → extract-connection-data-D94p_zzw.js} +1 -1
- package/dist/client/assets/{file-explorer-DBYEoeSj.js → file-explorer-DxpFV8c6.js} +1 -1
- package/dist/client/assets/{file-type-icon-CrZXGPZz.js → file-type-icon-Bu9aeBGQ.js} +1 -1
- package/dist/client/assets/{files-CIzhOaxH.js → files-Cbx2DmP4.js} +1 -1
- package/dist/client/assets/{form-Bezqbf8w.js → form-BBxIjEr6.js} +1 -1
- package/dist/client/assets/{general-Bu6jSzvS.js → general-B_FCI7wN.js} +1 -1
- package/dist/client/assets/{github-repo-picker-oKYi49JD.js → github-repo-picker-VZx0l9da.js} +1 -1
- package/dist/client/assets/{hooks-Lb4O_GM3.js → hooks-BXniOJ3o.js} +1 -1
- package/dist/client/assets/{index-BUMlAxI6.js → index-B59Kgxlq.js} +1 -1
- package/dist/client/assets/{index-UC-5Zxqy.js → index-B7P3JFfk.js} +3 -3
- package/dist/client/assets/{index-C43SQexq.js → index-BCppuwYp.js} +1 -1
- package/dist/client/assets/{index-Bkiwnc43.js → index-BfVeMOIm.js} +1 -1
- package/dist/client/assets/{index-ESHPxC-C.js → index-BqLPTB7A.js} +1 -1
- package/dist/client/assets/{index-DYt6FiP0.js → index-Bx3jIRiZ.js} +28 -28
- package/dist/client/assets/{index-BPuqsE1D.js → index-CpkDiyET.js} +1 -1
- package/dist/client/assets/{index-C2BgM8Yk.js → index-CuBkmpIe.js} +1 -1
- package/dist/client/assets/{index-D4CJqCP8.js → index-Cwh0OVmY.js} +1 -1
- package/dist/client/assets/{index-BM7GH0TM.js → index-DRXYdN6H.js} +1 -1
- package/dist/client/assets/{index-B35SIJeq.js → index-D_j43lM_.js} +1 -1
- package/dist/client/assets/{index-CyJbjnvf.js → index-DefBXvVw.js} +1 -1
- package/dist/client/assets/{index-Iu2z9rV5.js → index-DzPkLC_J.js} +1 -1
- package/dist/client/assets/{index-redirect-C-1Aum45.js → index-redirect-BDhXC6Ig.js} +1 -1
- package/dist/client/assets/{index-Ak5DgymX.js → index-sgF7uOD6.js} +1 -1
- package/dist/client/assets/{input-CdzdWrKi.js → input-BUDeW7hy.js} +1 -1
- package/dist/client/assets/{integration-icon-C9eGFf17.js → integration-icon-CZz-QSyi.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-Dsrdx3GF.js → invite-member-dialog-gPgFMyer.js} +1 -1
- package/dist/client/assets/{label-B6bwSWu6.js → label-iRKA-RF_.js} +1 -1
- package/dist/client/assets/{layout-DozuMsvh.js → layout-C5Jn5Ck8.js} +1 -1
- package/dist/client/assets/{login-C9GZMnFR.js → login-CLODuQOK.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DytXRgMV.js → mcp-oauth-nx6JoJtc.js} +1 -1
- package/dist/client/assets/{members-BH9NbFKp.js → members-QbBRWFnU.js} +1 -1
- package/dist/client/assets/{monaco-editor-DBrHXynI.js → monaco-editor-o1-X26EN.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CO69tHOn.js → monitoring-stats-row-DId3IdA9.js} +1 -1
- package/dist/client/assets/{oauth-callback-CNY0mybS.js → oauth-callback-BgyuKSbG.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CXTgzB5t.js → oauth-callback-ai-provider-D8XWif_h.js} +1 -1
- package/dist/client/assets/{onboarding-DDJYNxgP.js → onboarding-CjxvUllE.js} +1 -1
- package/dist/client/assets/{org-install-nly3Bzjd.js → org-install-DfjZ9IkB.js} +1 -1
- package/dist/client/assets/{org-layout-BbVv-ivs.js → org-layout-D0JSPoO2.js} +1 -1
- package/dist/client/assets/{organization-choice-DVQDFQLE.js → organization-choice-Bricupp_.js} +1 -1
- package/dist/client/assets/{orgs-prHljJU8.js → orgs-CTyTKFBc.js} +1 -1
- package/dist/client/assets/{page-seo-form-CqY6_i8R.js → page-seo-form-CURmYd_o.js} +1 -1
- package/dist/client/assets/page-seo-sheet-DMxSYprS.js +1 -0
- package/dist/client/assets/{popover-DSyswm1r.js → popover-RMDOVNrN.js} +1 -1
- package/dist/client/assets/post-editor-BPw-WVkc.js +1 -0
- package/dist/client/assets/{primitives-BYjlG1fS.js → primitives-CtcKvSOY.js} +1 -1
- package/dist/client/assets/{profile-DSppTsnH.js → profile-C_Wd3XWh.js} +1 -1
- package/dist/client/assets/project-app-view-DOnyWOt_.js +1 -0
- package/dist/client/assets/record-editor-UUQMFRRQ.js +1 -0
- package/dist/client/assets/registry-BOFHa9Y3.js +2 -0
- package/dist/client/assets/{registry-layout-C4dGAHKX.js → registry-layout-Be5afgOI.js} +1 -1
- package/dist/client/assets/{reports-rgCiaQfZ.js → reports-YzPc5Yte.js} +1 -1
- package/dist/client/assets/{require-capability-CHqKvGf6.js → require-capability-DpxZpNd6.js} +1 -1
- package/dist/client/assets/{required-auth-layout-NaXT3_BP.js → required-auth-layout-BxHvrnHd.js} +1 -1
- package/dist/client/assets/{reset-password-wmRO1kQU.js → reset-password-DJH3PjMn.js} +1 -1
- package/dist/client/assets/{roles-BCQT0qMS.js → roles-CvRHFRNy.js} +1 -1
- package/dist/client/assets/{search-input-CedQS3fi.js → search-input-CmYReEhV.js} +1 -1
- package/dist/client/assets/{secrets-NFKjvWj2.js → secrets-BO4MLJfG.js} +1 -1
- package/dist/client/assets/sections-editor-DMR5NTjW.js +2 -0
- package/dist/client/assets/{select-CBCIQKJa.js → select-Dj2K5yjy.js} +1 -1
- package/dist/client/assets/{select-model-Ct4g3NyR.js → select-model-BDs4pEIf.js} +1 -1
- package/dist/client/assets/{self-tool-result-xRS_KbBg.js → self-tool-result-C0z9l7BF.js} +1 -1
- package/dist/client/assets/{seo-editor-DF84QQ2c.js → seo-editor-HaJZpc82.js} +1 -1
- package/dist/client/assets/{settings-layout--8tic038.js → settings-layout-wRl6B5Ra.js} +1 -1
- package/dist/client/assets/{settings-section-BO3lvI3u.js → settings-section-BArXqQeZ.js} +1 -1
- package/dist/client/assets/{shell-controls-DHSs_8GA.js → shell-controls-j0Pjr9eV.js} +1 -1
- package/dist/client/assets/{shell-layout-CcwCsF5D.js → shell-layout-BI2uQO13.js} +1 -1
- package/dist/client/assets/{sidebar-DKTHHq9w.js → sidebar-ChFVldq8.js} +1 -1
- package/dist/client/assets/{skeleton-Bq-ZzOX2.js → skeleton-h93xmIzl.js} +1 -1
- package/dist/client/assets/{sso-D5cfEoiQ.js → sso-Br51DFgV.js} +1 -1
- package/dist/client/assets/{store-BNAUDVRg.js → store-BKizQS0y.js} +1 -1
- package/dist/client/assets/store-registry--3U_Fy0J.js +2 -0
- package/dist/client/assets/{studio-tools-LMp9AQEt.js → studio-tools-ClbHxQRS.js} +1 -1
- package/dist/client/assets/{switch-DSsZIKRQ.js → switch-LnAJMMUO.js} +1 -1
- package/dist/client/assets/{table-Ce-xb9xB.js → table-C5lMn_VP.js} +1 -1
- package/dist/client/assets/{tabs-BKFP20BY.js → tabs-CKW_utIi.js} +1 -1
- package/dist/client/assets/{textarea-hc_vGNu_.js → textarea-DOY6usAP.js} +1 -1
- package/dist/client/assets/{toggle-group-BcRGmKwE.js → toggle-group-J0dpra0o.js} +1 -1
- package/dist/client/assets/{toolbar-DummVT0p.js → toolbar-D6yvNnHM.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DkhMlFlp.js → toolbar-icon-button-bbPI9wI3.js} +1 -1
- package/dist/client/assets/{tools-list-BhzXdOBv.js → tools-list-CQCLDTU0.js} +1 -1
- package/dist/client/assets/{tooltip-oF2dxKvS.js → tooltip-y-gJd0JC.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DFrX5Ixe.js → use-ai-providers-CRVxMN94.js} +1 -1
- package/dist/client/assets/{use-automations-qBheTnHm.js → use-automations-To6FeF4j.js} +1 -1
- package/dist/client/assets/{use-capability-BFUmGJ2c.js → use-capability-yplSlEyH.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BgQszoea.js → use-clock-tick-TVfDewP_.js} +1 -1
- package/dist/client/assets/{use-collections-blnu2tgv.js → use-collections-0g9OhHq7.js} +1 -1
- package/dist/client/assets/{use-connection-Cw3xkHvl.js → use-connection-xe5-hxnX.js} +1 -1
- package/dist/client/assets/{use-copy-CvJ-3ij0.js → use-copy-CNVRhlMf.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-0npVNTv_.js → use-create-virtual-mcp-BbTxeR88.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CIB-GuAM.js → use-debounced-autosave-COJSOT4a.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DS-Y5UGJ.js → use-debounced-value-CbZi79SA.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CKlPfDA8.js → use-deco-credits-BZynjfR8.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DKbJl4ca.js → use-decopilot-events-9exjxACg.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CNp_BsSE.js → use-delete-connection-BPx6hKUu.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CZgq6nwd.js → use-deployment-admin-ryI4o5qb.js} +1 -1
- package/dist/client/assets/{use-file-configs-DY10vbdS.js → use-file-configs-Chz9_IRb.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CgK6_i3r.js → use-infinite-scroll-C4aMXL06.js} +1 -1
- package/dist/client/assets/{use-join-requests-BkeSpaw9.js → use-join-requests-CrCn5SOi.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Dh-Q8DTG.js → use-mcp-client-PGzywnDQ.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DHliIetD.js → use-mcp-tools-DXzabuTu.js} +1 -1
- package/dist/client/assets/{use-members-DMRYjiNZ.js → use-members-DdZYx5_m.js} +1 -1
- package/dist/client/assets/{use-mobile-Berquj-a.js → use-mobile-Dku4KQs9.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CN7_pj2K.js → use-navigate-to-agent-CBtoRE_I.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CYqoyStI.js → use-org-auth-client-Bxwan6CE.js} +1 -1
- package/dist/client/assets/{use-org-sso-BjUBqdim.js → use-org-sso-DaC4OhZk.js} +1 -1
- package/dist/client/assets/{use-organization-roles-D1FuSBs8.js → use-organization-roles-BpTZMueS.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Dioq4CT5.js → use-organization-settings-DxzO3z8d.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CfnMZ-zK.js → use-registry-connections-BiSclmr4.js} +1 -1
- package/dist/client/assets/{use-secrets-yUdF3bez.js → use-secrets-Dm1RRD36.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CKrZbd8R.js → use-status-sounds-C4zoyVF2.js} +1 -1
- package/dist/client/assets/{use-view-mode-BS40WrZo.js → use-view-mode-Cfg-6vGg.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BxAPmhe1.js → use-virtual-mcp-BL4Oe6kY.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BngKVfqj.js +1 -0
- package/dist/client/assets/{useRouterState-BMsfOWFN.js → useRouterState-Bu5QfVp3.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-k9Ynp2wC.js +1 -0
- package/dist/client/assets/{users-Hi3d7jft.js → users-Bzu7dpup.js} +1 -1
- package/dist/client/assets/{variant-calendar-DmERYe5g.js → variant-calendar-Bodi5KUt.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-a9_CAW3t.js → view-mode-toggle-w4-SZlv8.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +375 -375
- package/dist/server/server.js +272 -272
- package/package.json +1 -1
- package/dist/client/assets/category-editor-DVOqZTFo.js +0 -1
- package/dist/client/assets/page-seo-sheet-BLlZasir.js +0 -1
- package/dist/client/assets/post-editor-BSxTbq-v.js +0 -1
- package/dist/client/assets/project-app-view-6KL604QS.js +0 -1
- package/dist/client/assets/record-editor-BYBgdt-l.js +0 -1
- package/dist/client/assets/registry-BK9rFqBw.js +0 -2
- package/dist/client/assets/sections-editor-DFbXpELA.js +0 -2
- package/dist/client/assets/store-registry-BhImI2Wc.js +0 -2
- package/dist/client/assets/useInfiniteQuery-gMRRahCY.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-22jejaAh.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as q,r as S,l as Q,j as t,B as U,i as V,t as I}from"./index-UC-5Zxqy.js";import{i as X}from"./XCircle-rnvB6r1o.js";import{aG as Y,ab as T}from"./agent-icon-BnuD7OG4.js";import{n as Z}from"./LinkExternal01-DLTXWmjD.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-B2NrMNUE.js";import{I as L}from"./input-CdzdWrKi.js";import{L as M}from"./label-B6bwSWu6.js";import{v as at,w as mt,T as nt,o as lt,x as R,y as pt,U as ct}from"./index-DYt6FiP0.js";import{c as dt,B as ut,a as gt}from"./block-document-D76SqY1T.js";import{u as xt,s as v,E as ft}from"./primitives-BYjlG1fS.js";import{t as ht}from"./ChevronDown-CnSiev6J.js";import{J as yt,K as jt,I as vt}from"./automation-runs-8UgQ1V2y.js";import"./AlertCircle-BTBypCdn.js";import"./Trash03-Cwg_hP4B.js";import"./Tool01-BI49uxz7.js";import"./ArrowUp-BJLl9TqD.js";import"./Settings02-Deuua6cy.js";import"./Tool02-bHBqq1Gb.js";import"./ArrowUpRight-sV3vc65w.js";import"./TrendUp01-Bp8GuuqE.js";import"./ZapSquare-DyWoH3ti.js";import"./Users03-DMqPwFCP.js";import"./CheckCircle-uMaPMHfw.js";import"./Check-C6CkZg9-.js";import"./ChevronRight-Bl_yFHrD.js";import"./ChevronUp-BaPKVFC3.js";import"./Circle-DWd5snPl.js";import"./Stars02-eG3W6QRG.js";import"./Copy01-q1_4xSoT.js";import"./ZoomOut-CumCWj6X.js";import"./DotsVertical-3-1wg6CQ.js";import"./Globe01-C_XmMjFu.js";import"./Eye-BkqHAYFU.js";import"./FilterLines-C3raf_4-.js";import"./Star01-BhWhGrZ_.js";import"./Globe04-BrGU2s2F.js";import"./SwitchHorizontal01-h4mu2LgB.js";import"./HardDrive-BphckALA.js";import"./Key01-DGNNZHBM.js";import"./LayoutLeft-DXTPhzEW.js";import"./List-BwKSG732.js";import"./Monitor01-D7y4Pb1B.js";import"./Sun-CsySQ-v-.js";import"./Package-Q8Zv9Y_3.js";import"./Palette-D82zDHT4.js";import"./Play-CF7bszTU.js";import"./Plus-ZkctvKC4.js";import"./SearchLg-iQhGcj-a.js";import"./SearchMd-D002K9LO.js";import"./Shield01-DPjv8Zam.js";import"./Stars01-Dw5HzSvc.js";import"./Trash01-C4WuTo6-.js";import"./Upload01-0ls4OKAV.js";import"./User01-cqDu6Kgh.js";import"./Users01-BuDSv84q.js";import"./XClose-Dq50L0Ca.js";import"./X-Arce-Ge0.js";import"./Zap-cEit2Hj5.js";import"./chat-context-CbliNlff.js";import"./autosend-CqddBdGe.js";import"./hooks-Lb4O_GM3.js";import"./use-mcp-client-Dh-Q8DTG.js";import"./constants-D_FQAPnt.js";import"./auth-CWa2vT5L.js";import"./decopilot-sse-pool-DQQBYQUt.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-LMp9AQEt.js";import"./use-virtual-mcp-BxAPmhe1.js";import"./use-collections-blnu2tgv.js";import"./use-ai-providers-DFrX5Ixe.js";import"./use-decopilot-events-DKbJl4ca.js";import"./tab-id-bb-jjgGv.js";import"./use-organization-settings-Dioq4CT5.js";import"./tooltip-oF2dxKvS.js";import"./dialog-CzzC6F62.js";import"./drawer-DuwjCdW6.js";import"./collection-search-CMyvx3uf.js";import"./use-mobile-Berquj-a.js";import"./AreaChart-BhX94NDH.js";import"./index-Iu2z9rV5.js";import"./shell-layout-CcwCsF5D.js";import"./avatar-hfq9tnFm.js";import"./required-auth-layout-NaXT3_BP.js";import"./use-org-sso-BjUBqdim.js";import"./form-Bezqbf8w.js";import"./select-CBCIQKJa.js";import"./tabs-BKFP20BY.js";import"./toggle-group-BcRGmKwE.js";import"./use-deco-credits-CKlPfDA8.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DdMOmbQa.js";import"./use-registry-connections-CfnMZ-zK.js";import"./use-connection-Cw3xkHvl.js";import"./useInfiniteQuery-gMRRahCY.js";import"./use-infinite-scroll-CgK6_i3r.js";import"./extract-connection-data-_BJPZSvu.js";import"./card-BuTTBPVv.js";import"./integration-icon-C9eGFf17.js";import"./collection-tabs-DpKi-Pwv.js";import"./badge-YHkNrrCW.js";import"./textarea-hc_vGNu_.js";import"./connection-form-helpers-_RrYdkdW.js";import"./authenticate-and-persist-oauth-CEQqfsIQ.js";import"./mcp-oauth-DytXRgMV.js";import"./useSuspenseInfiniteQuery-22jejaAh.js";import"./connect-desktop-dialog-BIKJ6n-k.js";import"./select-model-Ct4g3NyR.js";import"./checkbox-q4GScbrY.js";import"./skeleton-Bq-ZzOX2.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BO3lvI3u.js";import"./command-xRIzaNK4.js";import"./index-D4CJqCP8.js";import"./popover-DSyswm1r.js";import"./dropdown-menu-JCGdvklS.js";import"./index-Ak5DgymX.js";import"./file-type-icon-CrZXGPZz.js";import"./toolbar-DummVT0p.js";import"./use-debounced-value-DS-Y5UGJ.js";import"./index-B35SIJeq.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CKrZbd8R.js";import"./empty-state-Dl4HXkXF.js";import"./use-mcp-tools-DHliIetD.js";import"./use-capability-BFUmGJ2c.js";import"./tools-list-BhzXdOBv.js";import"./switch-DSsZIKRQ.js";import"./use-debounced-autosave-CIB-GuAM.js";import"./index-BM7GH0TM.js";import"./sidebar-DKTHHq9w.js";import"./search-input-CedQS3fi.js";import"./github-repo-picker-oKYi49JD.js";import"./use-navigate-to-agent-CN7_pj2K.js";import"./reusable-new-chat-CouMjkYR.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-yUdF3bez.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./format-time-BnbuEtat.js";import"./use-members-DMRYjiNZ.js";import"./use-org-auth-client-CYqoyStI.js";import"./index-BPuqsE1D.js";import"./get-initials-D-f_fDFw.js";import"./calendar-BKliC0dO.js";import"./toolbar-icon-button-DkhMlFlp.js";import"./use-file-configs-DY10vbdS.js";import"./monaco-editor-DBrHXynI.js";import"./use-automations-qBheTnHm.js";import"./automation-list-row-C16-DFOd.js";import"./table-Ce-xb9xB.js";import"./use-clock-tick-BgQszoea.js";import"./use-copy-CvJ-3ij0.js";function bt(k){const e=q.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(yt,{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(jt,{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 gr({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,y]=S.useState(a),[m,C]=S.useState(null),[N,$]=S.useState(!1),z=a?nt(d).filter(o=>o.categorySlugs.includes(a)):[],j=z.length,G=o=>s("slug",o),H=async(o,w)=>{const W=v(r.name);$(!0);try{let g=0;for(const{key:P,payload:O}of pt(d,"posts")){const F=ct(O,o,{name:W,slug:w});F!==O&&(await i.mutateAsync({blockKey:P,data:R(P,"posts",F)}),g+=1)}const E={...r,slug:w};await i.mutateAsync({blockKey:n,data:R(n,"categories",E)}),c(E),I.success(g>0?`Renamed slug and updated ${g} ${g===1?"post":"posts"}`:"Renamed slug"),C(null)}catch(g){y(o),C(null),I.error(g instanceof Error?g.message:"Rename failed")}finally{$(!1)}},J=()=>{const o=B.trim();if(o===a){B!==o&&y(o);return}if(!o){y(a);return}if(j===0){G(o);return}C({oldSlug:a,newSlug:o,count:j})};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(U,{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(M,{htmlFor:"category-slug",children:"Slug"}),t.jsx(L,{id:"category-slug",value:B,onChange:o=>y(o.target.value),onBlur:J,placeholder:"my-category",className:"h-10"})]}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(M,{htmlFor:"category-description",children:"Description"}),t.jsx(L,{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:[j," ",j===1?"post":"posts"," in this category"]})]}),t.jsxs(U,{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})]})]}),j>0&&t.jsx("ul",{className:"divide-y border-t bg-background",children:z.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||(y(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&&H(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{gr as CategoryEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as it,r as E,j as e,i as rt}from"./index-UC-5Zxqy.js";import{m as mt,o as pt,p as st,q as at}from"./sidebar-DKTHHq9w.js";import{A as nt}from"./automation-runs-8UgQ1V2y.js";import{r as lt,u as ct,a as dt,b as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-CqY6_i8R.js";import{r as xt}from"./index-DYt6FiP0.js";import"./LayoutLeft-DXTPhzEW.js";import"./use-mobile-Berquj-a.js";import"./X-Arce-Ge0.js";import"./tooltip-oF2dxKvS.js";import"./select-CBCIQKJa.js";import"./Check-C6CkZg9-.js";import"./ChevronDown-CnSiev6J.js";import"./ChevronUp-BaPKVFC3.js";import"./useInfiniteQuery-gMRRahCY.js";import"./use-infinite-scroll-CgK6_i3r.js";import"./use-connection-Cw3xkHvl.js";import"./use-collections-blnu2tgv.js";import"./use-mcp-client-Dh-Q8DTG.js";import"./constants-D_FQAPnt.js";import"./auth-CWa2vT5L.js";import"./use-virtual-mcp-BxAPmhe1.js";import"./card-BuTTBPVv.js";import"./table-Ce-xb9xB.js";import"./empty-state-Dl4HXkXF.js";import"./use-members-DMRYjiNZ.js";import"./use-org-auth-client-CYqoyStI.js";import"./use-clock-tick-BgQszoea.js";import"./AlertCircle-BTBypCdn.js";import"./CheckCircle-uMaPMHfw.js";import"./Circle-DWd5snPl.js";import"./agent-icon-BnuD7OG4.js";import"./Trash03-Cwg_hP4B.js";import"./Tool01-BI49uxz7.js";import"./ArrowUp-BJLl9TqD.js";import"./Settings02-Deuua6cy.js";import"./Tool02-bHBqq1Gb.js";import"./XCircle-rnvB6r1o.js";import"./ArrowUpRight-sV3vc65w.js";import"./TrendUp01-Bp8GuuqE.js";import"./ZapSquare-DyWoH3ti.js";import"./Users03-DMqPwFCP.js";import"./ChevronRight-Bl_yFHrD.js";import"./Stars02-eG3W6QRG.js";import"./Copy01-q1_4xSoT.js";import"./ZoomOut-CumCWj6X.js";import"./DotsVertical-3-1wg6CQ.js";import"./Globe01-C_XmMjFu.js";import"./Eye-BkqHAYFU.js";import"./FilterLines-C3raf_4-.js";import"./Star01-BhWhGrZ_.js";import"./Globe04-BrGU2s2F.js";import"./SwitchHorizontal01-h4mu2LgB.js";import"./HardDrive-BphckALA.js";import"./Key01-DGNNZHBM.js";import"./LinkExternal01-DLTXWmjD.js";import"./List-BwKSG732.js";import"./Monitor01-D7y4Pb1B.js";import"./Sun-CsySQ-v-.js";import"./Package-Q8Zv9Y_3.js";import"./Palette-D82zDHT4.js";import"./Play-CF7bszTU.js";import"./Plus-ZkctvKC4.js";import"./SearchLg-iQhGcj-a.js";import"./SearchMd-D002K9LO.js";import"./Shield01-DPjv8Zam.js";import"./Stars01-Dw5HzSvc.js";import"./Trash01-C4WuTo6-.js";import"./Upload01-0ls4OKAV.js";import"./User01-cqDu6Kgh.js";import"./Users01-BuDSv84q.js";import"./XClose-Dq50L0Ca.js";import"./Zap-cEit2Hj5.js";import"./use-automations-qBheTnHm.js";import"./studio-tools-LMp9AQEt.js";import"./useSuspenseInfiniteQuery-22jejaAh.js";import"./badge-YHkNrrCW.js";import"./checkbox-q4GScbrY.js";import"./command-xRIzaNK4.js";import"./index-D4CJqCP8.js";import"./dialog-CzzC6F62.js";import"./popover-DSyswm1r.js";import"./avatar-hfq9tnFm.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CvJ-3ij0.js";import"./file-type-icon-CrZXGPZz.js";import"./tab-id-bb-jjgGv.js";import"./monaco-editor-DBrHXynI.js";import"./index-B35SIJeq.js";import"./chat-context-CbliNlff.js";import"./autosend-CqddBdGe.js";import"./hooks-Lb4O_GM3.js";import"./decopilot-sse-pool-DQQBYQUt.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-DFrX5Ixe.js";import"./use-decopilot-events-DKbJl4ca.js";import"./use-organization-settings-Dioq4CT5.js";import"./index-Iu2z9rV5.js";import"./shell-layout-CcwCsF5D.js";import"./alert-dialog-B2NrMNUE.js";import"./required-auth-layout-NaXT3_BP.js";import"./use-org-sso-BjUBqdim.js";import"./integration-icon-C9eGFf17.js";import"./use-navigate-to-agent-CN7_pj2K.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-BhX94NDH.js";import"./form-Bezqbf8w.js";import"./label-B6bwSWu6.js";import"./input-CdzdWrKi.js";import"./switch-DSsZIKRQ.js";import"./drawer-DuwjCdW6.js";import"./collection-search-CMyvx3uf.js";import"./tabs-BKFP20BY.js";import"./toggle-group-BcRGmKwE.js";import"./use-deco-credits-CKlPfDA8.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DdMOmbQa.js";import"./use-registry-connections-CfnMZ-zK.js";import"./extract-connection-data-_BJPZSvu.js";import"./collection-tabs-DpKi-Pwv.js";import"./textarea-hc_vGNu_.js";import"./connection-form-helpers-_RrYdkdW.js";import"./authenticate-and-persist-oauth-CEQqfsIQ.js";import"./mcp-oauth-DytXRgMV.js";import"./connect-desktop-dialog-BIKJ6n-k.js";import"./select-model-Ct4g3NyR.js";import"./skeleton-Bq-ZzOX2.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BO3lvI3u.js";import"./dropdown-menu-JCGdvklS.js";import"./index-Ak5DgymX.js";import"./toolbar-DummVT0p.js";import"./use-debounced-value-DS-Y5UGJ.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CKrZbd8R.js";import"./use-mcp-tools-DHliIetD.js";import"./use-capability-BFUmGJ2c.js";import"./tools-list-BhzXdOBv.js";import"./use-debounced-autosave-CIB-GuAM.js";import"./index-BM7GH0TM.js";import"./search-input-CedQS3fi.js";import"./github-repo-picker-oKYi49JD.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-yUdF3bez.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-BPuqsE1D.js";import"./get-initials-D-f_fDFw.js";import"./calendar-BKliC0dO.js";import"./toolbar-icon-button-DkhMlFlp.js";import"./use-file-configs-DY10vbdS.js";import"./automation-list-row-C16-DFOd.js";function Si(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]=E.useState(k),[tt,i]=E.useState(null),[J,g]=E.useState(void 0),[x,y]=E.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 M=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 V=F,q=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,z=m.kind==="site"&&o&&n,B=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]!==q?(l=e.jsx(mt,{className:"text-sm font-semibold",children:q}),t[13]=q,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]!==B||t[27]!==x||t[28]!==M||t[29]!==I||t[30]!==a||t[31]!==o||t[32]!==n||t[33]!==i||t[34]!==g||t[35]!==T||t[36]!==z||t[37]!==_?(S=!o||!T&&!z?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:B}):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:M})})})}),t[20]=p,t[21]=$,t[22]=H,t[23]=A,t[24]=v,t[25]=h,t[26]=B,t[27]=x,t[28]=M,t[29]=I,t[30]=a,t[31]=o,t[32]=n,t[33]=i,t[34]=g,t[35]=T,t[36]=z,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 b;return t[42]!==V||t[43]!==N||t[44]!==f?(b=e.jsx(at,{open:N,onOpenChange:V,children:f}),t[42]=V,t[43]=N,t[44]=f,t[45]=b):b=t[45],b}function yt(u){return u+1}function wt(u){return u+1}export{Si as SeoSheet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as H,j as t,B as Z}from"./index-UC-5Zxqy.js";import{n as ee}from"./LinkExternal01-DLTXWmjD.js";import{aG as te,h as oe}from"./agent-icon-BnuD7OG4.js";import{I as J}from"./input-CdzdWrKi.js";import{L as q}from"./label-B6bwSWu6.js";import{a1 as ie}from"./automation-runs-8UgQ1V2y.js";import{b as Q,c as se,T as W,a as re}from"./tabs-BKFP20BY.js";import{T as le}from"./textarea-hc_vGNu_.js";import{v as ae,w as me,o as pe,x as ne,I as ce,y as de,z as fe}from"./index-DYt6FiP0.js";import{b as ue,a as xe,B as he}from"./block-document-D76SqY1T.js";import{u as ge,s as F,E as ve,R as ye,A as je}from"./primitives-BYjlG1fS.js";import"./AlertCircle-BTBypCdn.js";import"./Trash03-Cwg_hP4B.js";import"./Tool01-BI49uxz7.js";import"./ArrowUp-BJLl9TqD.js";import"./Settings02-Deuua6cy.js";import"./Tool02-bHBqq1Gb.js";import"./XCircle-rnvB6r1o.js";import"./ArrowUpRight-sV3vc65w.js";import"./TrendUp01-Bp8GuuqE.js";import"./ZapSquare-DyWoH3ti.js";import"./Users03-DMqPwFCP.js";import"./CheckCircle-uMaPMHfw.js";import"./Check-C6CkZg9-.js";import"./ChevronDown-CnSiev6J.js";import"./ChevronRight-Bl_yFHrD.js";import"./ChevronUp-BaPKVFC3.js";import"./Circle-DWd5snPl.js";import"./Stars02-eG3W6QRG.js";import"./Copy01-q1_4xSoT.js";import"./ZoomOut-CumCWj6X.js";import"./DotsVertical-3-1wg6CQ.js";import"./Globe01-C_XmMjFu.js";import"./Eye-BkqHAYFU.js";import"./FilterLines-C3raf_4-.js";import"./Star01-BhWhGrZ_.js";import"./Globe04-BrGU2s2F.js";import"./SwitchHorizontal01-h4mu2LgB.js";import"./HardDrive-BphckALA.js";import"./Key01-DGNNZHBM.js";import"./LayoutLeft-DXTPhzEW.js";import"./List-BwKSG732.js";import"./Monitor01-D7y4Pb1B.js";import"./Sun-CsySQ-v-.js";import"./Package-Q8Zv9Y_3.js";import"./Palette-D82zDHT4.js";import"./Play-CF7bszTU.js";import"./Plus-ZkctvKC4.js";import"./SearchLg-iQhGcj-a.js";import"./SearchMd-D002K9LO.js";import"./Shield01-DPjv8Zam.js";import"./Stars01-Dw5HzSvc.js";import"./Trash01-C4WuTo6-.js";import"./Upload01-0ls4OKAV.js";import"./User01-cqDu6Kgh.js";import"./Users01-BuDSv84q.js";import"./XClose-Dq50L0Ca.js";import"./X-Arce-Ge0.js";import"./Zap-cEit2Hj5.js";import"./select-CBCIQKJa.js";import"./tooltip-oF2dxKvS.js";import"./useInfiniteQuery-gMRRahCY.js";import"./use-infinite-scroll-CgK6_i3r.js";import"./use-connection-Cw3xkHvl.js";import"./use-collections-blnu2tgv.js";import"./use-mcp-client-Dh-Q8DTG.js";import"./constants-D_FQAPnt.js";import"./auth-CWa2vT5L.js";import"./use-virtual-mcp-BxAPmhe1.js";import"./card-BuTTBPVv.js";import"./sidebar-DKTHHq9w.js";import"./use-mobile-Berquj-a.js";import"./table-Ce-xb9xB.js";import"./empty-state-Dl4HXkXF.js";import"./use-members-DMRYjiNZ.js";import"./use-org-auth-client-CYqoyStI.js";import"./use-clock-tick-BgQszoea.js";import"./use-automations-qBheTnHm.js";import"./studio-tools-LMp9AQEt.js";import"./useSuspenseInfiniteQuery-22jejaAh.js";import"./badge-YHkNrrCW.js";import"./checkbox-q4GScbrY.js";import"./command-xRIzaNK4.js";import"./index-D4CJqCP8.js";import"./dialog-CzzC6F62.js";import"./popover-DSyswm1r.js";import"./avatar-hfq9tnFm.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CvJ-3ij0.js";import"./file-type-icon-CrZXGPZz.js";import"./tab-id-bb-jjgGv.js";import"./monaco-editor-DBrHXynI.js";import"./index-B35SIJeq.js";import"./chat-context-CbliNlff.js";import"./autosend-CqddBdGe.js";import"./hooks-Lb4O_GM3.js";import"./decopilot-sse-pool-DQQBYQUt.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-DFrX5Ixe.js";import"./use-decopilot-events-DKbJl4ca.js";import"./use-organization-settings-Dioq4CT5.js";import"./index-Iu2z9rV5.js";import"./shell-layout-CcwCsF5D.js";import"./alert-dialog-B2NrMNUE.js";import"./required-auth-layout-NaXT3_BP.js";import"./use-org-sso-BjUBqdim.js";import"./integration-icon-C9eGFf17.js";import"./use-navigate-to-agent-CN7_pj2K.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-BhX94NDH.js";import"./form-Bezqbf8w.js";import"./drawer-DuwjCdW6.js";import"./collection-search-CMyvx3uf.js";import"./toggle-group-BcRGmKwE.js";import"./use-deco-credits-CKlPfDA8.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DdMOmbQa.js";import"./use-registry-connections-CfnMZ-zK.js";import"./extract-connection-data-_BJPZSvu.js";import"./collection-tabs-DpKi-Pwv.js";import"./connection-form-helpers-_RrYdkdW.js";import"./authenticate-and-persist-oauth-CEQqfsIQ.js";import"./mcp-oauth-DytXRgMV.js";import"./connect-desktop-dialog-BIKJ6n-k.js";import"./select-model-Ct4g3NyR.js";import"./skeleton-Bq-ZzOX2.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BO3lvI3u.js";import"./dropdown-menu-JCGdvklS.js";import"./index-Ak5DgymX.js";import"./toolbar-DummVT0p.js";import"./use-debounced-value-DS-Y5UGJ.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CKrZbd8R.js";import"./use-mcp-tools-DHliIetD.js";import"./use-capability-BFUmGJ2c.js";import"./tools-list-BhzXdOBv.js";import"./switch-DSsZIKRQ.js";import"./use-debounced-autosave-CIB-GuAM.js";import"./index-BM7GH0TM.js";import"./search-input-CedQS3fi.js";import"./github-repo-picker-oKYi49JD.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-yUdF3bez.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-BPuqsE1D.js";import"./get-initials-D-f_fDFw.js";import"./calendar-BKliC0dO.js";import"./toolbar-icon-button-DkhMlFlp.js";import"./use-file-configs-DY10vbdS.js";import"./automation-list-row-C16-DFOd.js";function be(A){return Array.isArray(A)?A.map(e=>({key:F(e?.key),value:F(e?.value)})):[]}function hi(A){const e=H.c(66),{orgSlug:i,virtualMcpId:d,branch:o,blockKey:r,block:p,decofile:m,meta:u,previewBaseUrl:x}=A;let y;e[0]!==o||e[1]!==i||e[2]!==d?(y={orgSlug:i,virtualMcpId:d,branch:o},e[0]=o,e[1]=i,e[2]=d,e[3]=y):y=e[3];const s=ae(y);let n;e[4]!==p?(n=me(p,"posts"),e[4]=p,e[5]=n):n=e[5];const j=n;let b;e[6]!==r||e[7]!==s?(b=T=>{s.mutate({blockKey:r,data:ne(r,"posts",T)})},e[6]=r,e[7]=s,e[8]=b):b=e[8];const[l,_]=ge(j,b);let C;e[9]!==l||e[10]!==_?(C=(T,Y)=>_({...l,[T]:Y}),e[9]=l,e[10]=_,e[11]=C):C=e[11];const h=C;let S;e[12]!==m||e[13]!==l||e[14]!==x?(S=ue({decofile:m,post:l,previewBaseUrl:x}),e[12]=m,e[13]=l,e[14]=x,e[15]=S):S=e[15];const f=S;let a;e[16]!==l.title?(a=F(l.title)||"Untitled post",e[16]=l.title,e[17]=a):a=e[17];let c;e[18]!==a?(c=t.jsx("span",{className:"truncate text-sm font-medium",children:a}),e[18]=a,e[19]=c):c=e[19];let g;e[20]!==s.isError||e[21]!==s.isPending?(g=t.jsx(pe,{isPending:s.isPending,isError:s.isError}),e[20]=s.isError,e[21]=s.isPending,e[22]=g):g=e[22];const k=!f,P=f?"Open the post preview in a new tab":"Set the post slug (and its category) plus the blog app's pageSlug to preview";let N;e[23]!==f?(N=()=>{f&&window.open(f,"_blank","noopener,noreferrer")},e[23]=f,e[24]=N):N=e[24];let B;e[25]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx(ee,{size:14}),e[25]=B):B=e[25];let w;e[26]!==P||e[27]!==N||e[28]!==k?(w=t.jsxs(Z,{type:"button",variant:"outline",size:"sm",disabled:k,title:P,onClick:N,children:[B,"See preview"]}),e[26]=P,e[27]=N,e[28]=k,e[29]=w):w=e[29];let E;e[30]!==w||e[31]!==g?(E=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[g,w]}),e[30]=w,e[31]=g,e[32]=E):E=e[32];let v;e[33]!==E||e[34]!==c?(v=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,E]}),e[33]=E,e[34]=c,e[35]=v):v=e[35];let L;e[36]!==l.title?(L=F(l.title),e[36]=l.title,e[37]=L):L=e[37];let R;e[38]!==h?(R=T=>h("title",T),e[38]=h,e[39]=R):R=e[39];let I;e[40]!==L||e[41]!==R?(I=t.jsx(ve,{value:L,onChange:R,placeholder:"Post title",className:"py-1 text-4xl font-bold text-foreground"}),e[40]=L,e[41]=R,e[42]=I):I=e[42];let O;e[43]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsxs(Q,{value:"content",children:[t.jsx(te,{}),"Content"]}),e[43]=O):O=e[43];let G;e[44]===Symbol.for("react.memo_cache_sentinel")?(G=t.jsxs(se,{children:[O,t.jsxs(Q,{value:"settings",children:[t.jsx(oe,{}),"Settings"]})]}),e[44]=G):G=e[44];let U;e[45]!==l.sections?(U=xe(l.sections),e[45]=l.sections,e[46]=U):U=e[46];let $;e[47]!==h?($=T=>h("sections",T),e[47]=h,e[48]=$):$=e[48];let z;e[49]!==u||e[50]!==U||e[51]!==$?(z=t.jsx(W,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(he,{value:U,onChange:$,meta:u,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."})})}),e[49]=u,e[50]=U,e[51]=$,e[52]=z):z=e[52];let D;e[53]!==m||e[54]!==l||e[55]!==h?(D=t.jsx(W,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(Ce,{post:l,decofile:m,onChange:h})})}),e[53]=m,e[54]=l,e[55]=h,e[56]=D):D=e[56];let M;e[57]!==z||e[58]!==D?(M=t.jsxs(re,{defaultValue:"content",className:"mt-6 gap-4",children:[G,z,D]}),e[57]=z,e[58]=D,e[59]=M):M=e[59];let V;e[60]!==I||e[61]!==M?(V=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:[I,M]})}),e[60]=I,e[61]=M,e[62]=V):V=e[62];let K;return e[63]!==v||e[64]!==V?(K=t.jsxs("div",{className:"flex h-full flex-col",children:[v,V]}),e[63]=v,e[64]=V,e[65]=K):K=e[65],K}function Ce(A){const e=H.c(59),{post:i,decofile:d,onChange:o}=A;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(q,{htmlFor:"post-excerpt",children:"Excerpt"}),e[0]=r):r=e[0];let p;e[1]!==i.excerpt?(p=F(i.excerpt),e[1]=i.excerpt,e[2]=p):p=e[2];let m;e[3]!==o?(m=v=>o("excerpt",v.target.value),e[3]=o,e[4]=m):m=e[4];let u;e[5]!==p||e[6]!==m?(u=t.jsxs("div",{className:"space-y-2",children:[r,t.jsx(le,{id:"post-excerpt",value:p,onChange:m,rows:2})]}),e[5]=p,e[6]=m,e[7]=u):u=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(q,{htmlFor:"post-slug",children:"Slug"}),e[8]=x):x=e[8];let y;e[9]!==i.slug?(y=F(i.slug),e[9]=i.slug,e[10]=y):y=e[10];let s;e[11]!==o?(s=v=>o("slug",v.target.value),e[11]=o,e[12]=s):s=e[12];let n;e[13]!==y||e[14]!==s?(n=t.jsxs("div",{className:"space-y-2",children:[x,t.jsx(J,{id:"post-slug",value:y,onChange:s,placeholder:"my-post",className:"h-10"})]}),e[13]=y,e[14]=s,e[15]=n):n=e[15];let j;e[16]===Symbol.for("react.memo_cache_sentinel")?(j={type:"string",format:"date",title:"Date"},e[16]=j):j=e[16];let b;e[17]!==i.date?(b=F(i.date),e[17]=i.date,e[18]=b):b=e[18];let l;e[19]!==o?(l=v=>o("date",v),e[19]=o,e[20]=l):l=e[20];let _;e[21]!==b||e[22]!==l?(_=t.jsx(fe,{schema:j,value:b,onChange:l,path:"post-date",label:"Date"}),e[21]=b,e[22]=l,e[23]=_):_=e[23];let C;e[24]!==_||e[25]!==n?(C=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n,_]}),e[24]=_,e[25]=n,e[26]=C):C=e[26];let h;e[27]===Symbol.for("react.memo_cache_sentinel")?(h={type:"string",format:"image-uri",title:"Cover image"},e[27]=h):h=e[27];let S;e[28]!==o?(S=v=>o("image",v),e[28]=o,e[29]=S):S=e[29];let f;e[30]!==i.image||e[31]!==S?(f=t.jsx(ce,{schema:h,value:i.image,onChange:S,path:"post-image",label:"Cover image"}),e[30]=i.image,e[31]=S,e[32]=f):f=e[32];let a;e[33]===Symbol.for("react.memo_cache_sentinel")?(a=["email"],e[33]=a):a=e[33];let c;e[34]!==o?(c=v=>o("authors",v),e[34]=o,e[35]=c):c=e[35];let g;e[36]!==d||e[37]!==i.authors||e[38]!==c?(g=t.jsx(X,{label:"Authors",decofile:d,kind:"authors",valueField:"email",extraFields:a,selected:i.authors,onChange:c}),e[36]=d,e[37]=i.authors,e[38]=c,e[39]=g):g=e[39];let k;e[40]===Symbol.for("react.memo_cache_sentinel")?(k=["slug"],e[40]=k):k=e[40];let P;e[41]!==o?(P=v=>o("categories",v),e[41]=o,e[42]=P):P=e[42];let N;e[43]!==d||e[44]!==i.categories||e[45]!==P?(N=t.jsx(X,{label:"Categories",decofile:d,kind:"categories",valueField:"slug",extraFields:k,selected:i.categories,onChange:P}),e[43]=d,e[44]=i.categories,e[45]=P,e[46]=N):N=e[46];let B;e[47]!==o?(B=v=>o("extraProps",v),e[47]=o,e[48]=B):B=e[48];let w;e[49]!==i.extraProps||e[50]!==B?(w=t.jsx(ke,{value:i.extraProps,onChange:B}),e[49]=i.extraProps,e[50]=B,e[51]=w):w=e[51];let E;return e[52]!==C||e[53]!==f||e[54]!==g||e[55]!==N||e[56]!==w||e[57]!==u?(E=t.jsxs("div",{className:"space-y-5",children:[u,C,f,g,N,w]}),e[52]=C,e[53]=f,e[54]=g,e[55]=N,e[56]=w,e[57]=u,e[58]=E):E=e[58],E}function ke(A){const e=H.c(15),{value:i,onChange:d}=A;let o,r,p,m;if(e[0]!==d||e[1]!==i){o=be(i);const y=(s,n)=>d(o.map((j,b)=>b===s?{...j,...n}:j));r="space-y-2",e[6]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(q,{children:"Extra props"}),e[6]=p):p=e[6],m=o.length>0&&t.jsx("ul",{className:"space-y-2",children:o.map((s,n)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(J,{value:s.key,onChange:j=>y(n,{key:j.target.value}),placeholder:"key",className:"h-9 flex-1"}),t.jsx(J,{value:s.value,onChange:j=>y(n,{value:j.target.value}),placeholder:"value",className:"h-9 flex-1"}),t.jsx(ye,{label:"Remove prop",onClick:()=>d(o.filter((j,b)=>b!==n))})]},n))}),e[0]=d,e[1]=i,e[2]=o,e[3]=r,e[4]=p,e[5]=m}else o=e[2],r=e[3],p=e[4],m=e[5];let u;e[7]!==o||e[8]!==d?(u=t.jsx(je,{label:"Add prop",onClick:()=>d([...o,{key:"",value:""}])}),e[7]=o,e[8]=d,e[9]=u):u=e[9];let x;return e[10]!==r||e[11]!==p||e[12]!==m||e[13]!==u?(x=t.jsxs("div",{className:r,children:[p,m,u]}),e[10]=r,e[11]=p,e[12]=m,e[13]=u,e[14]=x):x=e[14],x}function X(A){const e=H.c(31),{label:i,decofile:d,kind:o,valueField:r,extraFields:p,selected:m,onChange:u}=A;let x,y,s;if(e[0]!==d||e[1]!==o||e[2]!==r){x=de(d,o);let f;e[6]!==r?(f=(c,g)=>F(c[r])||g,e[6]=r,e[7]=f):f=e[7],s=f;let a;e[8]!==s?(a=c=>{const{key:g,payload:k}=c;return{value:s(k,g),label:F(k.name)||s(k,g)}},e[8]=s,e[9]=a):a=e[9],y=x.map(a),e[0]=d,e[1]=o,e[2]=r,e[3]=x,e[4]=y,e[5]=s}else x=e[3],y=e[4],s=e[5];const n=y;let j;if(e[10]!==m||e[11]!==r){const f=Array.isArray(m)?m:[];let a;e[13]!==r?(a=c=>F(c[r]),e[13]=r,e[14]=a):a=e[14],j=f.map(a).filter(Boolean),e[10]=m,e[11]=r,e[12]=j}else j=e[12];const b=j;let l;e[15]!==p||e[16]!==u||e[17]!==x||e[18]!==r||e[19]!==s?(l=f=>{u(f.map(a=>{const c=x.find(k=>{const{key:P,payload:N}=k;return s(N,P)===a});if(!c)return{name:a,[r]:a};const g={name:F(c.payload.name)};for(const k of p)g[k]=c.payload[k]??a;return g}))},e[15]=p,e[16]=u,e[17]=x,e[18]=r,e[19]=s,e[20]=l):l=e[20];const _=l;let C;e[21]!==i?(C=t.jsx(q,{children:i}),e[21]=i,e[22]=C):C=e[22];let h;e[23]!==b||e[24]!==_||e[25]!==i||e[26]!==n?(h=n.length===0?t.jsxs("p",{className:"text-xs text-muted-foreground",children:["No ",i.toLowerCase()," yet — create some in the"," ",i.toLowerCase()," collection."]}):t.jsx(ie,{options:n,defaultValue:b,onValueChange:_,placeholder:`Select ${i.toLowerCase()}`,maxCount:4}),e[23]=b,e[24]=_,e[25]=i,e[26]=n,e[27]=h):h=e[27];let S;return e[28]!==C||e[29]!==h?(S=t.jsxs("div",{className:"space-y-2",children:[C,h]}),e[28]=C,e[29]=h,e[30]=S):S=e[30],S}export{hi as PostEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as $,C as H,j as v}from"./index-UC-5Zxqy.js";import{a as L,g as E,s as b}from"./automation-runs-8UgQ1V2y.js";import{u as O}from"./use-mcp-client-Dh-Q8DTG.js";import{p as k}from"./constants-D_FQAPnt.js";import{b as q,c as B}from"./use-mcp-tools-DHliIetD.js";import{u as Y}from"./index-DYt6FiP0.js";import{c as G}from"./monaco-editor-DBrHXynI.js";import{g as K,M as V,a as w}from"./index-Iu2z9rV5.js";import{b as z,a as F}from"./chat-context-CbliNlff.js";import{u as J}from"./shell-layout-CcwCsF5D.js";import"./select-CBCIQKJa.js";import"./tooltip-oF2dxKvS.js";import"./Check-C6CkZg9-.js";import"./ChevronDown-CnSiev6J.js";import"./ChevronUp-BaPKVFC3.js";import"./useInfiniteQuery-gMRRahCY.js";import"./use-infinite-scroll-CgK6_i3r.js";import"./use-connection-Cw3xkHvl.js";import"./use-collections-blnu2tgv.js";import"./use-virtual-mcp-BxAPmhe1.js";import"./card-BuTTBPVv.js";import"./sidebar-DKTHHq9w.js";import"./LayoutLeft-DXTPhzEW.js";import"./use-mobile-Berquj-a.js";import"./X-Arce-Ge0.js";import"./table-Ce-xb9xB.js";import"./empty-state-Dl4HXkXF.js";import"./use-members-DMRYjiNZ.js";import"./use-org-auth-client-CYqoyStI.js";import"./use-clock-tick-BgQszoea.js";import"./AlertCircle-BTBypCdn.js";import"./CheckCircle-uMaPMHfw.js";import"./Circle-DWd5snPl.js";import"./agent-icon-BnuD7OG4.js";import"./Trash03-Cwg_hP4B.js";import"./Tool01-BI49uxz7.js";import"./ArrowUp-BJLl9TqD.js";import"./Settings02-Deuua6cy.js";import"./Tool02-bHBqq1Gb.js";import"./XCircle-rnvB6r1o.js";import"./ArrowUpRight-sV3vc65w.js";import"./TrendUp01-Bp8GuuqE.js";import"./ZapSquare-DyWoH3ti.js";import"./Users03-DMqPwFCP.js";import"./ChevronRight-Bl_yFHrD.js";import"./Stars02-eG3W6QRG.js";import"./Copy01-q1_4xSoT.js";import"./ZoomOut-CumCWj6X.js";import"./DotsVertical-3-1wg6CQ.js";import"./Globe01-C_XmMjFu.js";import"./Eye-BkqHAYFU.js";import"./FilterLines-C3raf_4-.js";import"./Star01-BhWhGrZ_.js";import"./Globe04-BrGU2s2F.js";import"./SwitchHorizontal01-h4mu2LgB.js";import"./HardDrive-BphckALA.js";import"./Key01-DGNNZHBM.js";import"./LinkExternal01-DLTXWmjD.js";import"./List-BwKSG732.js";import"./Monitor01-D7y4Pb1B.js";import"./Sun-CsySQ-v-.js";import"./Package-Q8Zv9Y_3.js";import"./Palette-D82zDHT4.js";import"./Play-CF7bszTU.js";import"./Plus-ZkctvKC4.js";import"./SearchLg-iQhGcj-a.js";import"./SearchMd-D002K9LO.js";import"./Shield01-DPjv8Zam.js";import"./Stars01-Dw5HzSvc.js";import"./Trash01-C4WuTo6-.js";import"./Upload01-0ls4OKAV.js";import"./User01-cqDu6Kgh.js";import"./Users01-BuDSv84q.js";import"./XClose-Dq50L0Ca.js";import"./Zap-cEit2Hj5.js";import"./use-automations-qBheTnHm.js";import"./studio-tools-LMp9AQEt.js";import"./useSuspenseInfiniteQuery-22jejaAh.js";import"./badge-YHkNrrCW.js";import"./checkbox-q4GScbrY.js";import"./command-xRIzaNK4.js";import"./index-D4CJqCP8.js";import"./dialog-CzzC6F62.js";import"./popover-DSyswm1r.js";import"./avatar-hfq9tnFm.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CvJ-3ij0.js";import"./file-type-icon-CrZXGPZz.js";import"./tab-id-bb-jjgGv.js";import"./hooks-Lb4O_GM3.js";import"./decopilot-sse-pool-DQQBYQUt.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./integration-icon-C9eGFf17.js";import"./use-navigate-to-agent-CN7_pj2K.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-BhX94NDH.js";import"./form-Bezqbf8w.js";import"./label-B6bwSWu6.js";import"./input-CdzdWrKi.js";import"./auth-CWa2vT5L.js";import"./drawer-DuwjCdW6.js";import"./collection-search-CMyvx3uf.js";import"./autosend-CqddBdGe.js";import"./tabs-BKFP20BY.js";import"./toggle-group-BcRGmKwE.js";import"./use-deco-credits-CKlPfDA8.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DdMOmbQa.js";import"./use-registry-connections-CfnMZ-zK.js";import"./use-organization-settings-Dioq4CT5.js";import"./extract-connection-data-_BJPZSvu.js";import"./collection-tabs-DpKi-Pwv.js";import"./textarea-hc_vGNu_.js";import"./connection-form-helpers-_RrYdkdW.js";import"./authenticate-and-persist-oauth-CEQqfsIQ.js";import"./mcp-oauth-DytXRgMV.js";import"./use-ai-providers-DFrX5Ixe.js";import"./connect-desktop-dialog-BIKJ6n-k.js";import"./select-model-Ct4g3NyR.js";import"./skeleton-Bq-ZzOX2.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BO3lvI3u.js";import"./dropdown-menu-JCGdvklS.js";import"./index-Ak5DgymX.js";import"./alert-dialog-B2NrMNUE.js";import"./toolbar-DummVT0p.js";import"./use-debounced-value-DS-Y5UGJ.js";import"./index-B35SIJeq.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CKrZbd8R.js";import"./use-decopilot-events-DKbJl4ca.js";import"./use-capability-BFUmGJ2c.js";import"./tools-list-BhzXdOBv.js";import"./switch-DSsZIKRQ.js";import"./use-debounced-autosave-CIB-GuAM.js";import"./index-BM7GH0TM.js";import"./search-input-CedQS3fi.js";import"./github-repo-picker-oKYi49JD.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-yUdF3bez.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-BPuqsE1D.js";import"./get-initials-D-f_fDFw.js";import"./calendar-BKliC0dO.js";import"./toolbar-icon-button-DkhMlFlp.js";import"./use-file-configs-DY10vbdS.js";import"./automation-list-row-C16-DFOd.js";import"./required-auth-layout-NaXT3_BP.js";import"./use-org-sso-BjUBqdim.js";const Q={};function W(A){const t=$.c(37),{client:i,resourceURI:h,tool:o,connectionId:p,orgId:l,args:M}=A,{sendMessage:I}=z(),{setAppContext:u,clearAppContext:n}=F(),{openSidePanel: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]!==i||t[3]!==o.name||t[4]!==s?(c={client:i,toolName:o.name,toolArguments:s},t[2]=i,t[3]=o.name,t[4]=s,t[5]=c):c=t[5];const{data:e}=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 S;t[15]!==f||t[16]!==I?(S=C=>{const D=G(C.content);D.content.length>0&&(f("chat"),I({tiptapDoc:D}))},t[15]=f,t[16]=I,t[17]=S):S=t[17];const y=S;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 _;return t[26]!==i||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]!==e?(_=v.jsx(V,{resourceURI:h,orgId:l,toolInfo:P,toolInput:s,toolResult:e,displayMode:"fullscreen",minHeight:w.fullscreen.minHeight,maxHeight:w.fullscreen.maxHeight,client:i,onMessage:y,onUpdateModelContext:T,onTeardown:R,onRequestDisplayMode:m,className:"h-full"}),t[26]=i,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]=e,t[36]=_):_=t[36],_}function Br(A){const t=$.c(24),{connectionId:i,toolName:h,args:o}=A,{org:p}=H(),l=Y();let M;t[0]!==i||t[1]!==l?(M=k(i)&&l.vmEntry?.sandboxProviderKind==="user-desktop"&&l.previewUrl?`${l.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=i,t[1]=l,t[2]=M):M=t[2];const I=M;let u;t[3]!==i||t[4]!==I||t[5]!==p.id||t[6]!==p.slug?(u={connectionId:i,orgId:p.id,orgSlug:p.slug,mcpUrl:I},t[3]=i,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(e=>e.name===r)??g.tools.find(e=>{const x=E(e._meta);if(!x)return!1;if(b(e.name,x)===r)return!0;const d=b(r,x);return d!==r&&e.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 e;return t[15]!==r?(e=v.jsx("div",{className:"flex items-center justify-center h-full w-full",children:v.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',r,'" not found or has no UI']})}),t[15]=r,t[16]=e):e=t[16],e}let c;return t[17]!==o||t[18]!==n||t[19]!==i||t[20]!==p.id||t[21]!==s||t[22]!==m?(c=v.jsx(W,{client:n,resourceURI:s,tool:m,connectionId:i,orgId:p.id,args:o}),t[17]=o,t[18]=n,t[19]=i,t[20]=p.id,t[21]=s,t[22]=m,t[23]=c):c=t[23],c}export{Br as AppViewContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as S,j as r}from"./index-UC-5Zxqy.js";import{I as T}from"./input-CdzdWrKi.js";import{L as C}from"./label-B6bwSWu6.js";import{T as L}from"./textarea-hc_vGNu_.js";import{v as A,w as R,o as D,x as J,I as K}from"./index-DYt6FiP0.js";import{u as M,s as P}from"./primitives-BYjlG1fS.js";import"./ArrowUp-BJLl9TqD.js";import"./chat-context-CbliNlff.js";import"./autosend-CqddBdGe.js";import"./hooks-Lb4O_GM3.js";import"./use-mcp-client-Dh-Q8DTG.js";import"./constants-D_FQAPnt.js";import"./auth-CWa2vT5L.js";import"./decopilot-sse-pool-DQQBYQUt.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-LMp9AQEt.js";import"./use-virtual-mcp-BxAPmhe1.js";import"./use-collections-blnu2tgv.js";import"./use-ai-providers-DFrX5Ixe.js";import"./use-decopilot-events-DKbJl4ca.js";import"./tab-id-bb-jjgGv.js";import"./use-organization-settings-Dioq4CT5.js";import"./automation-runs-8UgQ1V2y.js";import"./select-CBCIQKJa.js";import"./tooltip-oF2dxKvS.js";import"./Check-C6CkZg9-.js";import"./ChevronDown-CnSiev6J.js";import"./ChevronUp-BaPKVFC3.js";import"./useInfiniteQuery-gMRRahCY.js";import"./use-infinite-scroll-CgK6_i3r.js";import"./use-connection-Cw3xkHvl.js";import"./card-BuTTBPVv.js";import"./sidebar-DKTHHq9w.js";import"./LayoutLeft-DXTPhzEW.js";import"./use-mobile-Berquj-a.js";import"./X-Arce-Ge0.js";import"./table-Ce-xb9xB.js";import"./empty-state-Dl4HXkXF.js";import"./use-members-DMRYjiNZ.js";import"./use-org-auth-client-CYqoyStI.js";import"./use-clock-tick-BgQszoea.js";import"./AlertCircle-BTBypCdn.js";import"./CheckCircle-uMaPMHfw.js";import"./Circle-DWd5snPl.js";import"./agent-icon-BnuD7OG4.js";import"./Trash03-Cwg_hP4B.js";import"./Tool01-BI49uxz7.js";import"./Settings02-Deuua6cy.js";import"./Tool02-bHBqq1Gb.js";import"./XCircle-rnvB6r1o.js";import"./ArrowUpRight-sV3vc65w.js";import"./TrendUp01-Bp8GuuqE.js";import"./ZapSquare-DyWoH3ti.js";import"./Users03-DMqPwFCP.js";import"./ChevronRight-Bl_yFHrD.js";import"./Stars02-eG3W6QRG.js";import"./Copy01-q1_4xSoT.js";import"./ZoomOut-CumCWj6X.js";import"./DotsVertical-3-1wg6CQ.js";import"./Globe01-C_XmMjFu.js";import"./Eye-BkqHAYFU.js";import"./FilterLines-C3raf_4-.js";import"./Star01-BhWhGrZ_.js";import"./Globe04-BrGU2s2F.js";import"./SwitchHorizontal01-h4mu2LgB.js";import"./HardDrive-BphckALA.js";import"./Key01-DGNNZHBM.js";import"./LinkExternal01-DLTXWmjD.js";import"./List-BwKSG732.js";import"./Monitor01-D7y4Pb1B.js";import"./Sun-CsySQ-v-.js";import"./Package-Q8Zv9Y_3.js";import"./Palette-D82zDHT4.js";import"./Play-CF7bszTU.js";import"./Plus-ZkctvKC4.js";import"./SearchLg-iQhGcj-a.js";import"./SearchMd-D002K9LO.js";import"./Shield01-DPjv8Zam.js";import"./Stars01-Dw5HzSvc.js";import"./Trash01-C4WuTo6-.js";import"./Upload01-0ls4OKAV.js";import"./User01-cqDu6Kgh.js";import"./Users01-BuDSv84q.js";import"./XClose-Dq50L0Ca.js";import"./Zap-cEit2Hj5.js";import"./use-automations-qBheTnHm.js";import"./useSuspenseInfiniteQuery-22jejaAh.js";import"./badge-YHkNrrCW.js";import"./checkbox-q4GScbrY.js";import"./command-xRIzaNK4.js";import"./index-D4CJqCP8.js";import"./dialog-CzzC6F62.js";import"./popover-DSyswm1r.js";import"./avatar-hfq9tnFm.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CvJ-3ij0.js";import"./file-type-icon-CrZXGPZz.js";import"./monaco-editor-DBrHXynI.js";import"./index-B35SIJeq.js";import"./index-Iu2z9rV5.js";import"./shell-layout-CcwCsF5D.js";import"./alert-dialog-B2NrMNUE.js";import"./required-auth-layout-NaXT3_BP.js";import"./use-org-sso-BjUBqdim.js";import"./integration-icon-C9eGFf17.js";import"./use-navigate-to-agent-CN7_pj2K.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-BhX94NDH.js";import"./form-Bezqbf8w.js";import"./drawer-DuwjCdW6.js";import"./collection-search-CMyvx3uf.js";import"./tabs-BKFP20BY.js";import"./toggle-group-BcRGmKwE.js";import"./use-deco-credits-CKlPfDA8.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DdMOmbQa.js";import"./use-registry-connections-CfnMZ-zK.js";import"./extract-connection-data-_BJPZSvu.js";import"./collection-tabs-DpKi-Pwv.js";import"./connection-form-helpers-_RrYdkdW.js";import"./authenticate-and-persist-oauth-CEQqfsIQ.js";import"./mcp-oauth-DytXRgMV.js";import"./connect-desktop-dialog-BIKJ6n-k.js";import"./select-model-Ct4g3NyR.js";import"./skeleton-Bq-ZzOX2.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BO3lvI3u.js";import"./dropdown-menu-JCGdvklS.js";import"./index-Ak5DgymX.js";import"./toolbar-DummVT0p.js";import"./use-debounced-value-DS-Y5UGJ.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CKrZbd8R.js";import"./use-mcp-tools-DHliIetD.js";import"./use-capability-BFUmGJ2c.js";import"./tools-list-BhzXdOBv.js";import"./switch-DSsZIKRQ.js";import"./use-debounced-autosave-CIB-GuAM.js";import"./index-BM7GH0TM.js";import"./search-input-CedQS3fi.js";import"./github-repo-picker-oKYi49JD.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-yUdF3bez.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-BPuqsE1D.js";import"./get-initials-D-f_fDFw.js";import"./calendar-BKliC0dO.js";import"./toolbar-icon-button-DkhMlFlp.js";import"./use-file-configs-DY10vbdS.js";import"./automation-list-row-C16-DFOd.js";const $={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"}]},q={authors:"Author"};function Lr(B){const t=S.c(34),{orgSlug:v,virtualMcpId:j,branch:w,kind:p,blockKey:g,block:f}=B;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 F=d;let h;t[7]!==g||t[8]!==p||t[9]!==m?(h=e=>{m.mutate({blockKey:g,data:J(g,p,e)})},t[7]=g,t[8]=p,t[9]=m,t[10]=h):h=t[10];const[i,E]=M(F,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=q[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=$[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(K,{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:P(i[o.key]),onChange:u=>a(o.key,u.target.value),rows:3}):r.jsx(T,{id:o.key,value:P(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{Lr as RecordEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-C4dGAHKX.js","assets/index-UC-5Zxqy.js","assets/index-Ct4UCmlw.css","assets/Tool02-bHBqq1Gb.js","assets/CheckCircle-uMaPMHfw.js","assets/Settings02-Deuua6cy.js","assets/use-mcp-client-Dh-Q8DTG.js","assets/constants-D_FQAPnt.js","assets/auth-CWa2vT5L.js","assets/useInfiniteQuery-gMRRahCY.js","assets/use-infinite-scroll-CgK6_i3r.js","assets/studio-tools-LMp9AQEt.js","assets/badge-YHkNrrCW.js","assets/input-CdzdWrKi.js","assets/dropdown-menu-JCGdvklS.js","assets/Check-C6CkZg9-.js","assets/ChevronRight-Bl_yFHrD.js","assets/Circle-DWd5snPl.js","assets/table-Ce-xb9xB.js","assets/toggle-group-BcRGmKwE.js","assets/use-view-mode-BS40WrZo.js","assets/use-mobile-Berquj-a.js","assets/DotsVertical-3-1wg6CQ.js","assets/FilterLines-C3raf_4-.js","assets/Globe01-C_XmMjFu.js","assets/SearchMd-D002K9LO.js","assets/dialog-CzzC6F62.js","assets/X-Arce-Ge0.js","assets/AlertCircle-BTBypCdn.js","assets/Upload01-0ls4OKAV.js","assets/alert-dialog-B2NrMNUE.js","assets/card-BuTTBPVv.js","assets/Trash01-C4WuTo6-.js","assets/label-B6bwSWu6.js","assets/select-CBCIQKJa.js","assets/tooltip-oF2dxKvS.js","assets/ChevronDown-CnSiev6J.js","assets/ChevronUp-BaPKVFC3.js","assets/switch-DSsZIKRQ.js","assets/textarea-hc_vGNu_.js","assets/XCircle-rnvB6r1o.js","assets/checkbox-q4GScbrY.js","assets/Eye-BkqHAYFU.js","assets/LinkExternal01-DLTXWmjD.js","assets/use-copy-CvJ-3ij0.js","assets/Copy01-q1_4xSoT.js","assets/Key01-DGNNZHBM.js","assets/Plus-ZkctvKC4.js","assets/mcp-oauth-DytXRgMV.js","assets/Play-CF7bszTU.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as s,j as e,r as i,i as a,aX as o}from"./index-UC-5Zxqy.js";import{R as m}from"./require-capability-CHqKvGf6.js";import"./use-capability-BFUmGJ2c.js";import"./access-gate-CIIsAfZg.js";import"./capability-load-error-CpFzHmR1.js";const n=i.lazy(()=>o(()=>import("./registry-layout-C4dGAHKX.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,49])));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 w,l as Ee,j as n,B as Ge,i as Hn,n as Ss,t as W,K as xs}from"./index-UC-5Zxqy.js";import{V as ys,W as bs,X as _s,H as Un,J as zt,K as Wn,P as Gn,i as Yn,Y as js,D as qn,E as Jn,Z as ks,G as ws,_ as Rs,L as Qn,M as Rt,Q as Xn,R as Zn,N as ea,O as ta,$ as na,a0 as Ds,a1 as Dt,a2 as Ns,a3 as Vs,a4 as Cs,e as Ps,k as Ts,a5 as As,a6 as Ms,a7 as Es,a8 as Ks,r as Ot,a9 as Bt,aa as $s,ab as ut,ac as jt,ad as Os,ae as Bs,af as Je,ag as Cn,ah as Ls,ai as Pn,aj as kt,ak as Lt,al as Fs,am as sn,an as Is,ao as tt,ap as xt,aq as zs,ar as Hs,as as Us,at as Ws,au as Gs,av as Ys,aw as dt,ax as qs,ay as Js,az as Qs,aA as Tn,aB as wt,m as Xs,aC as Zs,aD as er,aE as tr,aF as nr,aG as rn,aH as An,aI as Mn,aJ as yt,aK as Ft,aL as En,aM as ar,aN as sr,aO as on,aP as rr,aQ as or,S as aa,aR as Kn,aS as ir}from"./index-DYt6FiP0.js";import{t as lr}from"./ChevronDown-CnSiev6J.js";import{n as sa}from"./Trash03-Cwg_hP4B.js";import{i as ra}from"./ChevronRight-Bl_yFHrD.js";import{n as cr}from"./ChevronUp-BaPKVFC3.js";import{W as cn,P as oa,B as ur,X as dr,Y as mr}from"./agent-icon-BnuD7OG4.js";import{s as ia}from"./TrendUp01-Bp8GuuqE.js";import{i as fr}from"./Globe01-C_XmMjFu.js";import{A as It}from"./automation-runs-8UgQ1V2y.js";import{b as mt,T as ft,a as pt}from"./tooltip-oF2dxKvS.js";import{a as pr,D as hr,h as gr,c as vr,d as Sr,e as xr}from"./dialog-CzzC6F62.js";import{I as yr}from"./input-CdzdWrKi.js";import{a as la}from"./Copy01-q1_4xSoT.js";import{b as br}from"./ZoomOut-CumCWj6X.js";import{i as _r}from"./Settings02-Deuua6cy.js";import{s as jr}from"./Eye-BkqHAYFU.js";import{s as un}from"./Plus-ZkctvKC4.js";import{s as ca}from"./Trash01-C4WuTo6-.js";import{i as kr}from"./Zap-cEit2Hj5.js";import{d as it,a as ua,D as da,c as ma,j as wr}from"./dropdown-menu-JCGdvklS.js";import{r as $n,a as Rr,d as Dr,b as Nr,i as Vr,f as Cr,P as Pr,c as Tr,S as Ar}from"./page-seo-form-CqY6_i8R.js";import{c as Mr}from"./Tool01-BI49uxz7.js";import{A as Er}from"./add-section-modal-DI17p83S.js";import"./ArrowUp-BJLl9TqD.js";import"./chat-context-CbliNlff.js";import"./autosend-CqddBdGe.js";import"./hooks-Lb4O_GM3.js";import"./use-mcp-client-Dh-Q8DTG.js";import"./constants-D_FQAPnt.js";import"./auth-CWa2vT5L.js";import"./decopilot-sse-pool-DQQBYQUt.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-LMp9AQEt.js";import"./use-virtual-mcp-BxAPmhe1.js";import"./use-collections-blnu2tgv.js";import"./use-ai-providers-DFrX5Ixe.js";import"./use-decopilot-events-DKbJl4ca.js";import"./tab-id-bb-jjgGv.js";import"./use-organization-settings-Dioq4CT5.js";import"./drawer-DuwjCdW6.js";import"./collection-search-CMyvx3uf.js";import"./SearchMd-D002K9LO.js";import"./use-mobile-Berquj-a.js";import"./AreaChart-BhX94NDH.js";import"./index-Iu2z9rV5.js";import"./X-Arce-Ge0.js";import"./shell-layout-CcwCsF5D.js";import"./avatar-hfq9tnFm.js";import"./User01-cqDu6Kgh.js";import"./Users03-DMqPwFCP.js";import"./SearchLg-iQhGcj-a.js";import"./Stars02-eG3W6QRG.js";import"./XClose-Dq50L0Ca.js";import"./CheckCircle-uMaPMHfw.js";import"./FilterLines-C3raf_4-.js";import"./alert-dialog-B2NrMNUE.js";import"./required-auth-layout-NaXT3_BP.js";import"./use-org-sso-BjUBqdim.js";import"./ZapSquare-DyWoH3ti.js";import"./Check-C6CkZg9-.js";import"./Star01-BhWhGrZ_.js";import"./Upload01-0ls4OKAV.js";import"./AlertCircle-BTBypCdn.js";import"./form-Bezqbf8w.js";import"./label-B6bwSWu6.js";import"./select-CBCIQKJa.js";import"./XCircle-rnvB6r1o.js";import"./tabs-BKFP20BY.js";import"./Tool02-bHBqq1Gb.js";import"./toggle-group-BcRGmKwE.js";import"./use-deco-credits-CKlPfDA8.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DdMOmbQa.js";import"./use-registry-connections-CfnMZ-zK.js";import"./use-connection-Cw3xkHvl.js";import"./useInfiniteQuery-gMRRahCY.js";import"./use-infinite-scroll-CgK6_i3r.js";import"./extract-connection-data-_BJPZSvu.js";import"./card-BuTTBPVv.js";import"./integration-icon-C9eGFf17.js";import"./collection-tabs-DpKi-Pwv.js";import"./badge-YHkNrrCW.js";import"./textarea-hc_vGNu_.js";import"./connection-form-helpers-_RrYdkdW.js";import"./authenticate-and-persist-oauth-CEQqfsIQ.js";import"./mcp-oauth-DytXRgMV.js";import"./useSuspenseInfiniteQuery-22jejaAh.js";import"./Monitor01-D7y4Pb1B.js";import"./connect-desktop-dialog-BIKJ6n-k.js";import"./select-model-Ct4g3NyR.js";import"./checkbox-q4GScbrY.js";import"./skeleton-Bq-ZzOX2.js";import"./Key01-DGNNZHBM.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BO3lvI3u.js";import"./ArrowUpRight-sV3vc65w.js";import"./Stars01-Dw5HzSvc.js";import"./command-xRIzaNK4.js";import"./index-D4CJqCP8.js";import"./popover-DSyswm1r.js";import"./index-Ak5DgymX.js";import"./Palette-D82zDHT4.js";import"./file-type-icon-CrZXGPZz.js";import"./toolbar-DummVT0p.js";import"./Package-Q8Zv9Y_3.js";import"./use-debounced-value-DS-Y5UGJ.js";import"./DotsVertical-3-1wg6CQ.js";import"./LinkExternal01-DLTXWmjD.js";import"./index-B35SIJeq.js";import"./LayoutLeft-DXTPhzEW.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CKrZbd8R.js";import"./empty-state-Dl4HXkXF.js";import"./use-mcp-tools-DHliIetD.js";import"./use-capability-BFUmGJ2c.js";import"./tools-list-BhzXdOBv.js";import"./switch-DSsZIKRQ.js";import"./Play-CF7bszTU.js";import"./use-debounced-autosave-CIB-GuAM.js";import"./index-BM7GH0TM.js";import"./sidebar-DKTHHq9w.js";import"./search-input-CedQS3fi.js";import"./github-repo-picker-oKYi49JD.js";import"./use-navigate-to-agent-CN7_pj2K.js";import"./reusable-new-chat-CouMjkYR.js";import"./github-installations-D2vHSx02.js";import"./Users01-BuDSv84q.js";import"./use-secrets-yUdF3bez.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./format-time-BnbuEtat.js";import"./use-members-DMRYjiNZ.js";import"./use-org-auth-client-CYqoyStI.js";import"./index-BPuqsE1D.js";import"./get-initials-D-f_fDFw.js";import"./List-BwKSG732.js";import"./Circle-DWd5snPl.js";import"./calendar-BKliC0dO.js";import"./toolbar-icon-button-DkhMlFlp.js";import"./SwitchHorizontal01-h4mu2LgB.js";import"./use-file-configs-DY10vbdS.js";import"./monaco-editor-DBrHXynI.js";import"./use-automations-qBheTnHm.js";import"./automation-list-row-C16-DFOd.js";import"./Globe04-BrGU2s2F.js";import"./HardDrive-BphckALA.js";import"./Sun-CsySQ-v-.js";import"./Shield01-DPjv8Zam.js";import"./table-Ce-xb9xB.js";import"./use-clock-tick-BgQszoea.js";import"./use-copy-CvJ-3ij0.js";function Kr(m){return m.schema?.definitions??m.schema?.$defs??{}}function $r(m,e){const r=Kr(e),c=r[btoa(m)];if(!c)return;let d=typeof c.image=="string"?c.image:void 0;if(!d&&Array.isArray(c.allOf)){const h=c.allOf.find(S=>typeof S.$ref=="string")?.$ref;if(typeof h=="string"){const S=h.replace("#/definitions/",""),p=r[S];d=typeof p?.image=="string"?p.image:void 0}}if(d?.includes("{{{"))return d}function Or(m,e){if(!e)return;const r=ys(m);if(!r)return;const c=$r(r.resolveType,e);if(!c)return;const d=bs(c,r.data);if(d)return _s(d)}const Br="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",Lr="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 On(m){return Array.from({length:m},(e,r)=>({id:crypto.randomUUID(),index:r}))}function fa(m){return m.map((e,r)=>({...e,index:r}))}function Fr(m,e){if(e===m.length)return m;if(e<m.length)return fa(m.slice(0,e));const r=Array.from({length:e-m.length},(c,d)=>({id:crypto.randomUUID(),index:m.length+d}));return[...m,...r]}function pa(m){const e=He.c(20),{section:r,raw:c,meta:d}=m,h=r.isSavedBlock===!0,S=r.isMultivariate===!0;let p;e[0]!==d||e[1]!==c?(p=c&&d?Or(c,d):void 0,e[0]=d,e[1]=c,e[2]=p):p=e[2];const v=p;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 b;e[4]!==v?(b=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]=b):b=e[5];let C;e[6]!==S||e[7]!==h?(C=h?{color:ws}:S?{color:"oklch(0.65 0.15 160)"}:void 0,e[6]=S,e[7]=h,e[8]=C):C=e[8];let R;e[9]!==C?(R=n.jsx(cn,{className:"h-4 w-4 shrink-0",style:C}),e[9]=C,e[10]=R):R=e[10];const _=r.isHidden&&"line-through opacity-50";let k;e[11]!==_?(k=Ee("min-w-0 flex-1 truncate text-sm font-medium",_),e[11]=_,e[12]=k):k=e[12];let o;e[13]!==r.label||e[14]!==k?(o=n.jsx("span",{className:k,children:r.label}),e[13]=r.label,e[14]=k,e[15]=o):o=e[15];let D;return e[16]!==b||e[17]!==R||e[18]!==o?(D=n.jsxs(n.Fragment,{children:[g,b,R,o]}),e[16]=b,e[17]=R,e[18]=o,e[19]=D):D=e[19],D}function ha(m,e){const r=m.isSavedBlock===!0,c=m.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:c?"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 Ir(m){const e=He.c(64),{section:r,raw:c,meta:d,sortableId:h,selected:S,onSelect:p,onDelete:v,onDuplicate:g,onMakeReusable:b,onToggleHidden:C,onToggleLazy:R,onAddVariant:_,onDetach:k}=m,o=c?Yn(c.__resolveType??""):!1;let D;e[0]!==r?(D=js(r),e[0]=r,e[1]=D):D=e[1];const l=D;let J;e[2]!==h?(J={id:h,animateLayoutChanges:Gr},e[2]=h,e[3]=J):J=e[3];const{attributes:H,listeners:K,setNodeRef:u,transform:P,isDragging:se}=qn(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 N;e[6]!==T||e[7]!==pe?(N={transform:T,opacity:pe},e[6]=T,e[7]=pe,e[8]=N):N=e[8];const ce=N;let B;e[9]!==r?(B=ks(r),e[9]=r,e[10]=B):B=e[10];const te=B,oe="button",Ce=0;let E;e[11]!==p?(E=$=>{($.key==="Enter"||$.key===" ")&&($.preventDefault(),p())},e[11]=p,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]!==d||e[18]!==c||e[19]!==r?(je=n.jsx(pa,{section:r,raw:c,meta:d}),e[17]=d,e[18]=c,e[19]=r,e[20]=je):je=e[20];const M=!r.isMultivariate&&n.jsxs(mt,{children:[n.jsx(ft,{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:$=>{$.stopPropagation(),R()},onPointerDown:Wr,children:n.jsx(kr,{className:Ee("h-3.5 w-3.5",o&&"text-yellow-500")})})}),n.jsx(pt,{side:"bottom",children:o?"Disable async render":"Enable async render"})]});let Ae;e[21]!==C||e[22]!==r.isHidden||e[23]!==r.isMultivariate?(Ae=!r.isMultivariate&&n.jsxs(mt,{children:[n.jsx(ft,{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:$=>{$.stopPropagation(),C()},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(pt,{side:"bottom",children:r.isHidden?"Show section":"Hide section"})]}),e[21]=C,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:zr,children:n.jsx(oa,{className:"h-3.5 w-3.5"})})}),e[25]=X):X=e[25];let Ne;e[26]!==g?(Ne=$=>{$.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]!==l||e[32]!==_?(G=l&&n.jsxs(it,{className:Rs,onClick:$=>{$.stopPropagation(),_()},children:[n.jsx(ia,{className:"h-4 w-4"}),"Add variant"]}),e[31]=l,e[32]=_,e[33]=G):G=e[33];let Y;e[34]!==te||e[35]!==b?(Y=te&&n.jsxs(it,{className:Lr,onClick:$=>{$.stopPropagation(),b()},children:[n.jsx(cn,{className:"h-4 w-4"}),"Make reusable"]}),e[34]=te,e[35]=b,e[36]=Y):Y=e[36];let ne;e[37]!==k||e[38]!==r.isMultivariate||e[39]!==r.isSavedBlock?(ne=r.isSavedBlock===!0&&!r.isMultivariate&&n.jsxs(it,{onClick:$=>{$.stopPropagation(),k()},children:[n.jsx(cn,{className:"h-4 w-4"}),"Detach"]}),e[37]=k,e[38]=r.isMultivariate,e[39]=r.isSavedBlock,e[40]=ne):ne=e[40];let le;e[41]!==v?(le=$=>{$.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]!==Y||e[49]!==ne||e[50]!==Se?(de=n.jsxs(da,{children:[X,n.jsxs(ma,{align:"end",className:"w-44",children:[re,G,Y,ne,Se]})]}),e[46]=re,e[47]=G,e[48]=Y,e[49]=ne,e[50]=Se,e[51]=de):de=e[51];let be;return e[52]!==H||e[53]!==K||e[54]!==p||e[55]!==u||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:u,style:ce,...H,...K,role:oe,tabIndex:Ce,onClick:p,onKeyDown:E,className:ie,children:[je,M,Ae,de]}),e[52]=H,e[53]=K,e[54]=p,e[55]=u,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 zr(m){return m.stopPropagation()}function Hr(m){return m.stopPropagation()}function Ur(m){return m.stopPropagation()}function Wr(m){return m.stopPropagation()}function Gr(){return!1}function Yr(m){const e=He.c(90),{listKey:r,rawSections:c,sections:d,meta:h,selectedIndex:S,onSelect:p,onReorder:v,onDelete:g,onDuplicate:b,onMakeReusable:C,onToggleHidden:R,onToggleLazy:_,onAddVariant:k,onDetach:o,onAddSection:D,canAddSection:l}=m,J=l===void 0?!0:l;let H;e[0]!==d.length?(H=()=>On(d.length),e[0]=d.length,e[1]=H):H=e[1];const[K,u]=w.useState(H),[P,se]=w.useState(null),[T,pe]=w.useState(r),[N,ce]=w.useState(d.length),B=w.useRef(!1);T!==r?(pe(r),ce(d.length),u(On(d.length))):N!==d.length&&(ce(d.length),u(L=>Fr(L,d.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(zt(Gn,te),zt(Wn,oe));let E;e[4]!==K?(E=K.map(qr),e[4]=K,e[5]=E):E=e[5];const ue=E;let ie;e[6]===Symbol.for("react.memo_cache_sentinel")?(ie=L=>{se(String(L.active.id))},e[6]=ie):ie=e[6];const je=ie;let M;e[7]!==ue||e[8]!==v?(M=L=>{se(null);const{active:ae,over:Q}=L;if(!Q||ae.id===Q.id)return;const Ie=ue.indexOf(String(ae.id)),he=ue.indexOf(String(Q.id));Ie===-1||he===-1||(u(Qe=>fa(Rt([...Qe],Ie,he))),B.current=!0,requestAnimationFrame(()=>{B.current=!1}),v?.(Ie,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,Y,ne,le,ke,Se,de,be,$,Z,we,Ke,$e;if(e[11]!==P||e[12]!==J||e[13]!==K||e[14]!==ue||e[15]!==Ae||e[16]!==h||e[17]!==D||e[18]!==k||e[19]!==g||e[20]!==o||e[21]!==b||e[22]!==C||e[23]!==p||e[24]!==R||e[25]!==_||e[26]!==c||e[27]!==d||e[28]!==S||e[29]!==Ce){Ke=Symbol.for("react.early_return_sentinel");e:{const L=ae=>{B.current||p(ae)};if(e[45]!==P||e[46]!==J||e[47]!==K||e[48]!==D||e[49]!==c||e[50]!==d){const ae=P?K.find(Q=>Q.id===P):null;if(Y=ae!=null?d[ae.index]:null,G=ae!=null?c[ae.index]:void 0,K.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 Ie=!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]!==Ie?(Qe=n.jsxs("div",{className:"space-y-2",children:[Q,n.jsxs(Ge,{type:"button",variant:"outline",size:"sm",className:"w-full",disabled:Ie,onClick:D,children:[he,"Add section"]})]}),e[56]=D,e[57]=Ie,e[58]=Qe):Qe=e[58],Ke=Qe;break e}we=Ee(ae&&"cursor-grabbing"),e[45]=P,e[46]=J,e[47]=K,e[48]=D,e[49]=c,e[50]=d,e[51]=G,e[52]=Y,e[53]=we}else G=e[51],Y=e[52],we=e[53];re=Xn,Se=Ce,de=Zn,be=je,$=Ae,Z=Ne,ve=ea,le=ue,ke=ta,$e="space-y-1",ne=K.map(ae=>{const Q=d[ae.index];return Q?n.jsx(Ir,{sortableId:ae.id,section:Q,raw:c[ae.index],meta:h,selected:S===ae.index,onSelect:()=>L(ae.index),onDelete:()=>g(ae.index),onDuplicate:()=>b(ae.index),onMakeReusable:()=>C(ae.index),onToggleHidden:()=>R(ae.index),onToggleLazy:()=>_(ae.index),onAddVariant:()=>k(ae.index),onDetach:()=>o(ae.index)},ae.id):null})}e[11]=P,e[12]=J,e[13]=K,e[14]=ue,e[15]=Ae,e[16]=h,e[17]=D,e[18]=k,e[19]=g,e[20]=o,e[21]=b,e[22]=C,e[23]=p,e[24]=R,e[25]=_,e[26]=c,e[27]=d,e[28]=S,e[29]=Ce,e[30]=ve,e[31]=re,e[32]=G,e[33]=Y,e[34]=ne,e[35]=le,e[36]=ke,e[37]=Se,e[38]=de,e[39]=be,e[40]=$,e[41]=Z,e[42]=we,e[43]=Ke,e[44]=$e}else ve=e[30],re=e[31],G=e[32],Y=e[33],ne=e[34],le=e[35],ke=e[36],Se=e[37],de=e[38],be=e[39],$=e[40],Z=e[41],we=e[42],Ke=e[43],$e=e[44];if(Ke!==Symbol.for("react.early_return_sentinel"))return Ke;let Le;e[59]!==ne||e[60]!==$e?(Le=n.jsx("div",{className:$e,children:ne}),e[59]=ne,e[60]=$e,e[61]=Le):Le=e[61];let Pe;e[62]!==ve||e[63]!==le||e[64]!==ke||e[65]!==Le?(Pe=n.jsx(ve,{items:le,strategy:ke,children:Le}),e[62]=ve,e[63]=le,e[64]=ke,e[65]=Le,e[66]=Pe):Pe=e[66];let Oe;e[67]!==G||e[68]!==Y||e[69]!==h?(Oe=Y?n.jsx("div",{className:Ee("cursor-grabbing shadow-lg ring-1 ring-border/60",ha(Y,!1)),children:n.jsx(pa,{section:Y,raw:G,meta:h})}):null,e[67]=G,e[68]=Y,e[69]=h,e[70]=Oe):Oe=e[70];let Fe;e[71]!==Oe?(Fe=n.jsx(na,{dropAnimation:null,children:Oe}),e[71]=Oe,e[72]=Fe):Fe=e[72];let Me;e[73]!==re||e[74]!==Se||e[75]!==de||e[76]!==be||e[77]!==$||e[78]!==Z||e[79]!==Pe||e[80]!==Fe?(Me=n.jsxs(re,{sensors:Se,collisionDetection:de,onDragStart:be,onDragEnd:$,onDragCancel:Z,children:[Pe,Fe]}),e[73]=re,e[74]=Se,e[75]=de,e[76]=be,e[77]=$,e[78]=Z,e[79]=Pe,e[80]=Fe,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 qr(m){return m.id}function Bn(m){const e=He.c(38),{open:r,initialName:c,autoLabel:d,isPending:h,onSubmit:S,onOpenChange:p}=m,v=h===void 0?!1:h,[g,b]=w.useState(c),[C,R]=w.useState(r);r!==C&&(R(r),r&&b(c));let _;e[0]!==v||e[1]!==p?(_=oe=>{!oe&&!v&&p(!1)},e[0]=v,e[1]=p,e[2]=_):_=e[2];const k=_;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 l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(pr,{children:"Rename variant"}),e[7]=l):l=e[7];const J=d||"the rule";let H;e[8]!==J?(H=n.jsxs(hr,{children:[l,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 K;e[10]===Symbol.for("react.memo_cache_sentinel")?(K=n.jsx("label",{htmlFor:"variant-rename-name",className:"text-xs font-medium text-muted-foreground",children:"Name"}),e[10]=K):K=e[10];let u;e[11]===Symbol.for("react.memo_cache_sentinel")?(u=oe=>b(oe.target.value),e[11]=u):u=e[11];let P;e[12]!==d||e[13]!==v||e[14]!==g?(P=n.jsxs("div",{className:"space-y-1.5 py-4",children:[K,n.jsx(yr,{id:"variant-rename-name",value:g,onChange:u,placeholder:d,autoFocus:!0,disabled:v})]}),e[12]=d,e[13]=v,e[14]=g,e[15]=P):P=e[15];let se;e[16]!==p?(se=()=>p(!1),e[16]=p,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 N;e[23]!==v||e[24]!==pe?(N=n.jsx(Ge,{type:"submit",disabled:v,children:pe}),e[23]=v,e[24]=pe,e[25]=N):N=e[25];let ce;e[26]!==T||e[27]!==N?(ce=n.jsxs(vr,{children:[T,N]}),e[26]=T,e[27]=N,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]!==k||e[35]!==r||e[36]!==B?(te=n.jsx(xr,{open:r,onOpenChange:k,children:B}),e[34]=k,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(m){const e=He.c(5),{rule:r,matchers:c}=m,d=r?.__resolveType??"";let h;if(e[0]!==c||e[1]!==d){const g=c.find(b=>b.resolveType===d)?.iconName??Ds(d);h=ur(g),e[0]=c,e[1]=d,e[2]=h}else h=e[2];const S=h;if(!S)return null;let p;return e[3]!==S?(p=n.jsx(S,{size:14,className:"shrink-0"}),e[3]=S,e[4]=p):p=e[4],p}function Ln(m){return m.map(e=>`${e.label}|${e.rule?.__resolveType??""}`).join(`
|
|
2
|
-
`)}function ln(m){return m.map((e,r)=>({id:crypto.randomUUID(),index:r,variant:e}))}function Qr(m){return m.map((e,r)=>({...e,index:r}))}function Sa(m){const e=He.c(16),{label:r,effectiveRule:c,matchers:d,canDelete:h,dragging:S,onRename:p,onDuplicate:v,onDelete:g}=m;let b;e[0]!==c||e[1]!==d?(b=n.jsx(va,{rule:c,matchers:d}),e[0]=c,e[1]=d,e[2]=b):b=e[2];let C;e[3]!==r?(C=n.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:r}),e[3]=r,e[4]=C):C=e[4];let R;e[5]!==h||e[6]!==S||e[7]!==r||e[8]!==g||e[9]!==v||e[10]!==p?(R=!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(oa,{size:14})})}),n.jsxs(ma,{align:"end",className:"w-36",children:[n.jsxs(it,{onClick:k=>{k.stopPropagation(),p?.()},children:[n.jsx(Mr,{size:14}),"Rename"]}),n.jsxs(it,{onClick:k=>{k.stopPropagation(),v?.()},children:[n.jsx(la,{size:14}),"Duplicate"]}),n.jsx(wr,{}),n.jsxs(it,{variant:"destructive",disabled:!h,onClick:k=>{k.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]=p,e[11]=R):R=e[11];let _;return e[12]!==b||e[13]!==C||e[14]!==R?(_=n.jsxs(n.Fragment,{children:[b,C,R]}),e[12]=b,e[13]=C,e[14]=R,e[15]=_):_=e[15],_}function Xr(m){return m.stopPropagation()}function Zr(m){return m.stopPropagation()}function eo(m){const e=He.c(33),{entry:r,sortableId:c,isActive:d,canDelete:h,decofile:S,meta:p,matchers:v,onSelect:g,onRename:b,onDuplicate:C,onDelete:R}=m;let _;e[0]!==c?(_={id:c,animateLayoutChanges:to},e[0]=c,e[1]=_):_=e[1];const{attributes:k,listeners:o,setNodeRef:D,transform:l,isDragging:J}=qn(_);let H;e[2]!==l?(H=Jn.Transform.toString(l?{...l,x:0}:null),e[2]=l,e[3]=H):H=e[3];const K=J?0:void 0;let u;e[4]!==H||e[5]!==K?(u={transform:H,opacity:K},e[4]=H,e[5]=K,e[6]=u):u=e[6];const P=u,se=p??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 N;e[11]!==g?(N=E=>{E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),g())},e[11]=g,e[12]=N):N=e[12];const ce=J?"cursor-grabbing":"cursor-pointer active:cursor-grabbing",B=d?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]!==R||e[21]!==C||e[22]!==b?(oe=n.jsx(Sa,{label:r.variant.label,effectiveRule:pe,matchers:v,canDelete:h,onRename:b,onDuplicate:C,onDelete:R}),e[16]=h,e[17]=pe,e[18]=r.variant.label,e[19]=v,e[20]=R,e[21]=C,e[22]=b,e[23]=oe):oe=e[23];let Ce;return e[24]!==k||e[25]!==o||e[26]!==g||e[27]!==D||e[28]!==P||e[29]!==te||e[30]!==oe||e[31]!==N?(Ce=n.jsx("div",{ref:D,style:P,...k,...o,onClick:g,onKeyDown:N,className:te,children:oe}),e[24]=k,e[25]=o,e[26]=g,e[27]=D,e[28]=P,e[29]=te,e[30]=oe,e[31]=N,e[32]=Ce):Ce=e[32],Ce}function to(){return!1}function no(m){const e=He.c(9),{variant:r,decofile:c,meta:d,matchers:h}=m,S=d??void 0;let p;e[0]!==c||e[1]!==S||e[2]!==r.rule?(p=Dt(r.rule,c,S),e[0]=c,e[1]=S,e[2]=r.rule,e[3]=p):p=e[3];const v=p;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 b;return e[5]!==v||e[6]!==h||e[7]!==r.label?(b=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]=b):b=e[8],b}function ao(m){const e=He.c(77),{listKey:r,variants:c,activeIndex:d,decofile:h,meta:S,matchers:p,onSelect:v,onReorder:g,onRename:b,onDuplicate:C,onDelete:R,onAdd:_}=m;let k;e[0]!==c?(k=()=>ln(c),e[0]=c,e[1]=k):k=e[1];const[o,D]=w.useState(k),[l,J]=w.useState(null),[H,K]=w.useState(r),[u,P]=w.useState(c.length);let se;e[2]!==c?(se=()=>Ln(c),e[2]=c,e[3]=se):se=e[3];const[T,pe]=w.useState(se),N=w.useRef(!1),ce=Ln(c);H!==r?(K(r),P(c.length),pe(ce),D(ln(c))):u!==c.length?(P(c.length),pe(ce),D(ln(c))):T!==ce&&(pe(ce),D(Me=>c.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(zt(Gn,B),zt(Wn,te));let Ce;e[6]!==o?(Ce=o.map(so),e[6]=o,e[7]=Ce):Ce=e[7];const E=Ce,ue=c.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(L=>Qr(Rt([...L],me,ee))),N.current=!0,requestAnimationFrame(()=>{N.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,Y,ne,le,ke,Se,de,be,$,Z,we;if(e[14]!==d||e[15]!==ue||e[16]!==h||e[17]!==o||e[18]!==E||e[19]!==Ae||e[20]!==je||e[21]!==p||e[22]!==S||e[23]!==_||e[24]!==R||e[25]!==C||e[26]!==b||e[27]!==v||e[28]!==oe){const Me=L=>{N.current||v(L)};$="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(ft,{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(pt,{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(mt,{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,Y=E,ne=ta,we="space-y-0.5",G=o.map(L=>n.jsx(eo,{sortableId:L.id,entry:L,isActive:L.index===d,canDelete:ue,decofile:h,meta:S,matchers:p,onSelect:()=>Me(L.index),onRename:()=>b(L.index),onDuplicate:()=>C(L.index),onDelete:()=>R(L.index)},L.id)),e[14]=d,e[15]=ue,e[16]=h,e[17]=o,e[18]=E,e[19]=Ae,e[20]=je,e[21]=p,e[22]=S,e[23]=_,e[24]=R,e[25]=C,e[26]=b,e[27]=v,e[28]=oe,e[29]=ve,e[30]=re,e[31]=G,e[32]=Y,e[33]=ne,e[34]=le,e[35]=ke,e[36]=Se,e[37]=de,e[38]=be,e[39]=$,e[40]=Z,e[41]=we}else ve=e[29],re=e[30],G=e[31],Y=e[32],ne=e[33],le=e[34],ke=e[35],Se=e[36],de=e[37],be=e[38],$=e[39],Z=e[40],we=e[41];let Ke;e[49]!==G||e[50]!==we?(Ke=n.jsx("div",{className:we,children:G}),e[49]=G,e[50]=we,e[51]=Ke):Ke=e[51];let $e;e[52]!==ve||e[53]!==Y||e[54]!==ne||e[55]!==Ke?($e=n.jsx(ve,{items:Y,strategy:ne,children:Ke}),e[52]=ve,e[53]=Y,e[54]=ne,e[55]=Ke,e[56]=$e):$e=e[56];let Le;e[57]!==l||e[58]!==h||e[59]!==p||e[60]!==S?(Le=l?n.jsx(no,{variant:l.variant,decofile:h,meta:S,matchers:p}):null,e[57]=l,e[58]=h,e[59]=p,e[60]=S,e[61]=Le):Le=e[61];let Pe;e[62]!==Le?(Pe=n.jsx(na,{dropAnimation:null,children:Le}),e[62]=Le,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]!==$e||e[71]!==Pe?(Oe=n.jsxs(re,{sensors:le,collisionDetection:ke,onDragStart:Se,onDragEnd:de,onDragCancel:be,children:[$e,Pe]}),e[64]=re,e[65]=le,e[66]=ke,e[67]=Se,e[68]=de,e[69]=be,e[70]=$e,e[71]=Pe,e[72]=Oe):Oe=e[72];let Fe;return e[73]!==$||e[74]!==Z||e[75]!==Oe?(Fe=n.jsxs("div",{className:$,children:[Z,Oe]}),e[73]=$,e[74]=Z,e[75]=Oe,e[76]=Fe):Fe=e[76],Fe}function so(m){return m.id}function Fn(m){const e=He.c(15),{schema:r,value:c,onChange:d,meta:h,decofile:S,onSaveReferencedBlock:p,sandbox:v}=m;let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=[],e[0]=g):g=e[0];const[b,C]=w.useState(g);let R;e[1]!==b?(R=b.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:()=>C([]),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(sa,{className:"size-3.5"})}),b.map((o,D)=>{const l=D===b.length-1;return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[D>0&&n.jsx(ra,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>C(b.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",l?"font-medium text-foreground":"text-muted-foreground"),children:o})]},`${o}-${D}`)})]}),e[1]=b,e[2]=R):R=e[2];let _;e[3]!==b||e[4]!==S||e[5]!==h||e[6]!==d||e[7]!==p||e[8]!==v||e[9]!==r||e[10]!==c?(_=n.jsx(aa,{schema:r,value:c,onChange:d,basePath:"",breadcrumbPath:b,onBreadcrumbChange:C,meta:h,decofile:S,onSaveReferencedBlock:p,sandbox:v}),e[3]=b,e[4]=S,e[5]=h,e[6]=d,e[7]=p,e[8]=v,e[9]=r,e[10]=c,e[11]=_):_=e[11];let k;return e[12]!==R||e[13]!==_?(k=n.jsxs("div",{className:"space-y-2",children:[R,_]}),e[12]=R,e[13]=_,e[14]=k):k=e[14],k}function In(m){const e=He.c(21),{activeSchema:r,formValue:c,formResetKey:d,onFormChange:h,onBreadcrumbChange:S,breadcrumbPath:p,emptyMessage:v,beforeForm:g,seoResolveType:b,siteDefaultSeo:C,meta:R,decofile:_,onSaveReferencedBlock:k,sandbox:o}=m;let D;e[0]!==p?(D=p===void 0?[]:p,e[0]=p,e[1]=D):D=e[1];const l=D;let J;e[2]!==r||e[3]!==l||e[4]!==_||e[5]!==d||e[6]!==c||e[7]!==R||e[8]!==S||e[9]!==h||e[10]!==k||e[11]!==o||e[12]!==b||e[13]!==C?(J=r&&c?b?n.jsx(Ar,{schema:r,resolveType:b,value:c,formResetKey:d,onChange:h,onBreadcrumbChange:S,siteDefaultSeo:C}):n.jsx(aa,{schema:r,value:c,onChange:h,basePath:"",breadcrumbPath:l,onBreadcrumbChange:S,meta:R,decofile:_,onSaveReferencedBlock:k,sandbox:o},d):null,e[2]=r,e[3]=l,e[4]=_,e[5]=d,e[6]=c,e[7]=R,e[8]=S,e[9]=h,e[10]=k,e[11]=o,e[12]=b,e[13]=C,e[14]=J):J=e[14];const H=J;let K;e[15]!==v||e[16]!==H?(K=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]=K):K=e[17];let u;return e[18]!==g||e[19]!==K?(u=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,K]})}),e[18]=g,e[19]=K,e[20]=u):u=e[20],u}const ro="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 oo(m,e){return zs(m,e,tt)}function io(m){const e=He.c(13),{pageKey:r,initialName:c,initialPath:d,onFieldChange:h}=m,[S,p]=w.useState(c),[v,g]=w.useState(d),[b,C]=w.useState(r);b!==r&&(C(r),p(c),g(d));let R;e[0]!==h?(R=l=>{p(l.target.value),h("name",l.target.value)},e[0]=h,e[1]=R):R=e[1];let _;e[2]!==S||e[3]!==R?(_=n.jsx("input",{type:"text",value:S,onChange:R,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]=R,e[4]=_):_=e[4];let k;e[5]!==h?(k=l=>{g(l.target.value),h("path",l.target.value)},e[5]=h,e[6]=k):k=e[6];let o;e[7]!==v||e[8]!==k?(o=n.jsx("input",{type:"text",value:v,onChange:k,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]=k,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 zn(m){const e=He.c(6),{onClick:r}=m;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(ia,{size:14}),e[0]=c):c=e[0];let d;e[1]!==r?(d=n.jsx(ft,{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:c})}),e[1]=r,e[2]=d):d=e[2];let h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(pt,{side:"bottom",children:"Add variant"}),e[3]=h):h=e[3];let S;return e[4]!==d?(S=n.jsxs(mt,{children:[d,h]}),e[4]=d,e[5]=S):S=e[5],S}function ec({orgSlug:m,virtualMcpId:e,branch:r,previewReady:c=!0,previewUrl:d,currentPath:h,activePageBlockKey:S=null,activeGlobalBlockKey:p=null,externalSelectedIndex:v,onSaved:g,initialEditSeo:b=!1,onExitSeo:C,onViewJsonFile:R,onVariantPreviewOverride:_}){const k=c?{orgSlug:m,virtualMcpId:e,branch:r,previewUrl:d}:null,{data:o,isLoading:D}=Ns(k),{data:l,isLoading:J}=Vs(k),H=Cs(),K=H?.entity?.id===e?H.entity.metadata?.siteSlug??null:null,[u,P]=w.useState(null),[se,T]=w.useState(null),[pe,N]=w.useState(null),[ce,B]=w.useState(0),[te,oe]=w.useState(void 0),[Ce,E]=w.useState(null),[ue,ie]=w.useState(null),[je,M]=w.useState([]),[Ae,X]=w.useState(0),[Ne,ve]=w.useState(null),[re,G]=w.useState(null),[Y,ne]=w.useState(null),[le,ke]=w.useState(!0),[Se,de]=w.useState(!1),[be,$]=w.useState(!1),[Z,we]=w.useState(b),[Ke,$e]=w.useState(b);b&&!Ke&&($e(!0),we(!0),P(null),T(null),N(null),M([])),!b&&Ke&&$e(!1);const[Le,Pe]=w.useState(null),[Oe,Fe]=w.useState(void 0),[Me,xe]=w.useState([]),[Re,me]=w.useState(0),[ee,L]=w.useState(0),[ae,Q]=w.useState(null),[Ie,he]=w.useState(null),[Qe,dn]=w.useState(null),xa=Ss(),ya=`${m}/${e}/${r}`,Ht=Ps({orgSlug:m,virtualMcpId:e,branch:r}),[ba,_a]=w.useState(h),[ja,ka]=w.useState(S),[wa,Ra]=w.useState(p);(ba!==h||ja!==S||wa!==p)&&(queueMicrotask(()=>Ht.flush()),_a(h),ka(S),Ra(p),P(null),T(null),N(null),B(0),E(null),ie(null),L(0),Q(null),he(null),M([]),X(t=>t+1),we(!1),Pe(null),Fe(void 0),xe([]),me(t=>t+1));const ye=Ts({orgSlug:m,virtualMcpId:e,branch:r}),Nt=Xs((t,a)=>{ye.mutate({blockKey:t,data:a},{onSuccess:()=>g?.(),onError:s=>W.error(`Save failed: ${s.message}`)})}),Ut=As({orgSlug:m,virtualMcpId:e,branch:r}),[bt,Vt]=w.useState(!1),Wt=w.useRef(null),ht=w.useRef(null),gt=w.useRef(null),Gt=w.useRef({}),Ye=w.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null});if(!c||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||!l)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 Da=Ms(o),_e=!!p,ze=_e?null:Es(Da,h,S),j=_e?p:ze?.key??null,Yt=_e&&p?o[p]:void 0,mn=_e&&p&&Yt?Ks(p,Yt):_e&&p?p:"",Ct=!_e&&j&&o[j]?o[j]:null,qt=Z&&o&&l&&j&&ze?$n(o,{kind:"page",pageKey:j,pageName:String(ze.name??""),path:String(ze.path??"")},l):null,Na=Z?Ct?.seo:void 0,Jt=Oe!==void 0?Oe:Na,Va=Z?Rr(Jt):void 0,Ca=qt?.seoTypeOptions??[],Pa=Z&&l?Dr(l):"",fn=Le??Va??{},Qt=Z&&qt?Nr(fn,qt):null,Ta=Z&&Qt&&Vr(Jt)?Ot(Qt,l):null,Aa=Z?Cr(o,l)?.seoData:void 0,Be=_e?[{label:"Default",sections:[{__resolveType:p}]}]:oo(Ct?.sections,o??{}),Pt=Be.length>1,Ve=Math.min(ce,Be.length-1),nt=Be[Ve],I=nt?.sections??[],Te=Bt(I,o),pn=!_e&&$s(Ct?.sections);if(_e&&p&&Qe!==p){dn(p);const t=I[0],a=Te[0];if(t&&a){P(0),L(0),M([]);const s=ut(t,a,o);s&&(T(s.data),N(s.resolveType),he(null),Q(null))}}!_e&&Qe!==null&&dn(null),Ye.current={rawSections:I,parsedSections:Te,decofile:o??{},activePageKey:j,pageVariants:Be,variantIndex:Ve,sectionVariantIndex:ee,selectedSectionIndex:u};const Ma=()=>({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=En(j,{multivariate:!0,index:a,variants:t},o,l);_(s.length>0?s:null)},vt=(t,a,s)=>{if(!_)return;if(!j){_(null);return}const i=Ma(),f=En(j,i,o,l);if(!t||a<0){_(f.length>0?f:null);return}const y=ar({pageKey:j,page:i,sectionIndex:a,sectionLazy:Te[a]?.isLazy??!1,mvObj:t,selectedVariantIndex:s,decofile:o,meta:l}),x=[...f,...y];_(x.length>0?x:null)},at=(t,a,s,i=u??-1,f=!1)=>{const y=Je(t,a);if(!y){T(null),N(null),he(null),Q(null),f&&vt(null,i,s);return}const V=Cn(y,tt)[s];if(!V){T(null),N(null),he(null),Q(null),f&&vt(null,i,s);return}const q=Hs(V.value,o);T(q?.data??null),N(q?.resolveType??null);const{resolveType:A,formValue:O}=jt(V.rule,o,l??void 0);he(A),Q(O),f&&vt(y,i,s)};if(v!==void 0&&v!==te&&(oe(v??null),typeof v=="number")){const t=I[v],a=Te[v];if(t&&a)if(P(v),L(0),M([]),X(s=>s+1),a.isMultivariate)at(t,a,0,v);else{const s=ut(t,a,o);s?(T(s.data),N(s.resolveType)):(T(null),N(null)),he(null),Q(null)}}const Tt={orgSlug:m,virtualMcpId:e,branch:r,previewUrl:d??void 0,siteSlug:K},Xt=pe&&l?Ot(pe,l):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}`)})},St=()=>{P(null),T(null),N(null),L(0),Q(null),he(null),M([]),X(t=>t+1)},Ea=(t,a)=>{Wt.current&&clearTimeout(Wt.current);const s=Ye.current.sectionVariantIndex;Wt.current=setTimeout(()=>{const{rawSections:i,parsedSections:f,decofile:y,activePageKey:x,pageVariants:V,variantIndex:q}=Ye.current,A=i[a];if(!A)return;const O=f[a];if(!O)return;if(O.isSavedBlock){const z=O.isLazy?A.section?.__resolveType??A.__resolveType:A.__resolveType;ye.mutate({blockKey:z,data:t},{onSuccess:()=>g?.(),onError:U=>W.error(`Save failed: ${U.message}`)});return}if(!x)return;const F={...y[x]},ge=[...i];if(O.isMultivariate){const z=Je(A,O);if(!z||!x)return;const U=rr(z,s,t);ge[a]=dt(A,O,U)}else if(O.isHidden){const z=Yn(A.__resolveType),U=z?{...A.section}:{...A},De=Array.isArray(U.variants)?[...U.variants]:[];De[0]&&(De[0]={...De[0],value:t}),U.variants=De,z?ge[a]={...A,section:U}:ge[a]=U}else O.isLazy?ge[a]={...A,section:t}:ge[a]=t;if(V.length>1){const z=F.sections,U=[...z?.variants??[]];U[q]&&(U[q]={...U[q],value:ge}),F.sections={...z,variants:U}}else F.sections=ge;ye.mutate({blockKey:x,data:F},{onSuccess:()=>g?.(),onError:z=>W.error(`Save failed: ${z.message}`)})},on)},Ka=t=>{P(t),L(0),M([]),X(f=>f+1);const a=I[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),N(null),he(null),Q(null),vt(null,t,0);return}T(i.data),N(i.resolveType),he(null),Q(null),vt(null,t,0)},gn=t=>{const a=t;T(a),u!==null&&Ea(a,u)},Zt=t=>{if(!j||!o||!l||!ze)return;const a={kind:"page",pageKey:j,pageName:String(ze.name??""),path:String(ze.path??"")},s=$n(o,a,l);s&&Ht.save(j,()=>{const i=xa.getQueryData(xs.decofile(ya))?.[j];if(!i||typeof i!="object"||i===null||Array.isArray(i))return null;const f={...i,...Gt.current};return Gt.current={},t?.raw!==void 0?{...f,seo:t.raw}:t?.inner!==void 0?Tr(a,s,f,t.inner):f})},$a=(t,a)=>{j&&(Gt.current[t]=a,Zt())},Oa=(t,a)=>{if(!j)return;const s=Rt([...I],t,a);u!==null&&(u===t?P(a):t<u&&a>=u?P(u-1):t>u&&a<=u&&P(u+1)),Ue(s)},Ba=t=>{if(!j)return;const a=I.filter((s,i)=>i!==t);u===t?St():u!==null&&u>t&&P(u-1),Ue(a)},La=t=>{if(!j)return;const a=I[t];if(!a)return;const s=[...I];s.splice(t+1,0,nr(a)),u!==null&&u>t&&P(u+1),Ue(s)},Fa=t=>{if(!j)return;const a=I[t],s=Te[t];if(!a||!s||s.isMultivariate)return;const i=s.isHidden?er(a):tr(a);if(!i)return;const f=[...I];f[t]=i,u===t&&St(),Ue(f)},Ia=t=>{if(!j)return;const a=I[t],s=Te[t];if(!a||!s||s.isMultivariate)return;const i=Zs(a);if(!i)return;const f=[...I];f[t]=i,u===t&&St(),Ue(f)},za=t=>{if(!j)return;const a=I[t],s=Te[t];if(!a||!s?.isSavedBlock)return;const i=ut(a,s,o);if(!i?.data)return;const{name:f,...y}=i.data,x=[...I];s.isLazy?x[t]={...a,section:y}:x[t]=y,u===t&&St(),Ue(x)},Ha=t=>{if(!j)return;const a=[...I,{__resolveType:t.resolveType}],s=a.length-1;Ue(a,{onSuccess:()=>{de(!1),P(s),L(0),M([]),X(x=>x+1);const i=a[s],f=Bt(a,o)[s];if(!i||!f)return;if(f.isMultivariate){at(i,f,0);return}const y=ut(i,f,o);if(!y){T(null),N(null),he(null),Q(null);return}T(y.data),N(y.resolveType),he(null),Q(null)}})},Ua=t=>{if(u===null)return;const a=I[u],s=Te[u];!a||!s?.isMultivariate||(L(t),M([]),X(i=>i+1),at(a,s,t,u,!0))},Wa=t=>{if(u===null||!j)return;const a=I[u],s=Te[u];if(!a||!s?.isMultivariate)return;const i=Je(a,s);if(!i)return;const f=Js(i,t);if(!f){W.error("Cannot delete the only variant.");return}const y=[...I];y[u]=dt(a,s,f);const x=f.variants;let V=ee;t===ee?V=Math.min(t,x.length-1):t<ee&&(V=ee-1),L(V),M([]),X(q=>q+1),at(y[u],s,V),Ue(y)},Ga=t=>{if(u===null||!j)return;const a=I[u],s=Te[u];if(!a||!s?.isMultivariate)return;const i=Je(a,s);if(!i)return;const f=Qs(i,t),y=[...I];y[u]=dt(a,s,f);const x=t+1;L(x),M([]),X(V=>V+1),at(y[u],s,x),Ue(y)},Ya=(t,a)=>{if(u===null||!j||t===a)return;const s=I[u],i=Te[u];if(!s||!i?.isMultivariate)return;const f=Je(s,i);if(!f)return;const y=Ys(f,t,a),x=[...I];x[u]=dt(s,i,y);let V=ee;ee===t?V=a:t<ee&&a>=ee?V=ee-1:t>ee&&a<=ee&&(V=ee+1),L(V),at(x[u],i,V),Ue(x)},en=t=>{const a=t??u;if(a===null||!j)return;const s=I[a],i=Te[a];if(!s||!i)return;const f=Us(s,i);if(!f){W.error("This section cannot have variants.");return}const y=[...I];y[a]=f.section;const x=Bt(y,o)[a];if(!x?.isMultivariate){W.error("Could not add variant.");return}P(a),L(f.newVariantIndex),M([]),X(V=>V+1),at(f.section,x,f.newVariantIndex,a),Ue(y)},qa=()=>{if(u===null||!j)return;const t=I[u],a=Te[u];if(!t||!a?.isMultivariate)return;const s=Je(t,a);if(!s)return;const i=qs(t,a,s);if(!i){W.error("Could not remove variants.");return}const f=[...I];f[u]=i;const y=Bt(f,o)[u];if(!y)return;L(0),he(null),Q(null),M([]),X(V=>V+1);const x=ut(i,y,o);x?(T(x.data),N(x.resolveType)):(T(null),N(null)),vt(null,u,0),Ue(f)},Ja=async t=>{if(Ne===null||!j)return;const a=rn(t,o);if(a){W.error(a);return}const s=I[Ne],i=Te[Ne];if(!s||!i)return;const f=ut(s,i,o);if(!f){W.error("This section cannot be saved as global.");return}const y={...f.data,name:t};try{await ye.mutateAsync({blockKey:t,data:y});const x=[...I];x[Ne]={__resolveType:t},await ye.mutateAsync({blockKey:j,data:wt(o,j,x,Ve,Be)}),u===Ne&&St(),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&&u===null&&ue===null&&vn){const{resolveType:t,formValue:a}=jt(vn,o??{},l??void 0);ie(t),E(a)}const At=l?Os(l):[],Sn=l&&o?Bs(l,o):[],Qa=!_e&&!!(d&&l&&o),xn=ue&&l?Ot(ue,l):null,Mt=()=>{ht.current&&(clearTimeout(ht.current),ht.current=null),gt.current&&(clearTimeout(gt.current),gt.current=null)},_t=async(t,a)=>{if(!(sr(a,t,l)>0))try{await Ut.mutateAsync({blockKey:t})}catch(s){W.error(s instanceof Error?s.message:"Could not delete matcher block")}},yn=t=>{ht.current&&clearTimeout(ht.current),ht.current=setTimeout(()=>{const{activePageKey:a,decofile:s,variantIndex:i}=Ye.current;if(!a)return;const f={...s[a]},y={...f.sections},x=[...y.variants??[]],V=x[i],q=V?.rule;if(xt(q,s,l)){const A=q?.__resolveType??"",O=s[A],F=typeof O?.name=="string"?O.name:A,{__resolveType:ge,...z}=t;ye.mutate({blockKey:A,data:yt(ge??"",z,F)},{onSuccess:()=>g?.(),onError:U=>W.error(`Save failed: ${U.message}`)});return}V&&(x[i]={...V,rule:t}),f.sections={...y,variants:x},ye.mutate({blockKey:a,data:f},{onSuccess:()=>g?.(),onError:A=>W.error(`Save failed: ${A.message}`)})},on)},Xa=t=>{ie(t);const a=t?{__resolveType:t}:{__resolveType:Kn};E({}),yn(a)},Za=t=>{const a=t;E(a);const s=ue?{__resolveType:ue,...a}:{...a};yn(s)},es=async t=>{Mt();const{activePageKey:a,decofile:s,variantIndex:i}=Ye.current;if(!a)return;const f=s[a],y=f?.sections;if(!y||typeof y!="object"||Array.isArray(y))return;const x=y;if(!Array.isArray(x.variants))return;const V=[...x.variants],q=V[i];if(!q)return;const A=kt(q.rule,s,l),O=Ft(t);V[i]={...q,rule:O};const F={...s,[a]:{...f,sections:{...x,variants:V}}},{resolveType:ge,formValue:z}=jt(O,F,l??void 0);ie(ge),E(z);try{await ye.mutateAsync({blockKey:a,data:F[a]}),A&&A!==t&&await _t(A,F),g?.()}catch(U){W.error(U instanceof Error?U.message:"Could not apply saved rule")}},bn=t=>{gt.current&&clearTimeout(gt.current);const{selectedSectionIndex:a,sectionVariantIndex:s}=Ye.current;a!==null&&(gt.current=setTimeout(()=>{const{rawSections:i,parsedSections:f,decofile:y,activePageKey:x,pageVariants:V,variantIndex:q}=Ye.current;if(!x)return;const A=i[a],O=f[a];if(!A||!O?.isMultivariate)return;const F=Je(A,O);if(!F)return;const z=(F.variants??[])[s]?.rule;if(xt(z,y,l)){const fe=z?.__resolveType??"",We=y[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(F,s,t),De=[...i];De[a]=dt(A,O,U);const qe=wt(y,x,De,q,V);ye.mutate({blockKey:x,data:qe},{onSuccess:()=>g?.(),onError:fe=>W.error(`Save failed: ${fe.message}`)})},on))},ts=t=>{he(t),Q({}),bn(t?{__resolveType:t}:{__resolveType:Kn})},ns=t=>{const a=t;Q(a);const s=Ie?{__resolveType:Ie,...a}:{...a};bn(s)},as=async t=>{Mt();const{selectedSectionIndex:a,sectionVariantIndex:s,rawSections:i,parsedSections:f,decofile:y,activePageKey:x,pageVariants:V,variantIndex:q}=Ye.current;if(a===null||!x)return;const A=i[a],O=f[a];if(!A||!O?.isMultivariate)return;const F=Je(A,O);if(!F)return;const ge=F.variants??[],z=kt(ge[s]?.rule,y,l),U=Ft(t),De=Tn(F,s,U),qe=[...i];qe[a]=dt(A,O,De);const fe=wt(y,x,qe,q,V),We={...y,[x]:fe},{resolveType:Ze,formValue:rt}=jt(U,We,l??void 0);he(Ze),Q(rt);try{await ye.mutateAsync({blockKey:x,data:fe}),z&&z!==t&&await _t(z,We),g?.()}catch(et){W.error(et instanceof Error?et.message:"Could not apply saved rule")}};if(!_e&&!ze)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&&!Yt)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=u!==null?Te[u]??null:null,_n=u!==null?I[u]: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=u!==null&&st!==null,Kt=kn&&(ct||!!(Xt&&se)),ss=Kt&&!_e&&st?.isSavedBlock===!0,Xe=_e||ss,rs=_e?mn:st?.label??"",wn=Ie&&l?Ot(Ie,l):null,nn=Kt&&(!_e||je.length>0)?_e?[mn,...je]:[ze.name,st.label,...ct&&Et?[Et.label]:[],...je]:[],os=Z&&ze?[ze.name,"SEO",...Me]:[],$t=Z?os:Xe?nn.length>0?nn:[rs]:nn,Rn=()=>{if(!j)return;const t=o[j],a=Ws(t.sections,I);if(!a)return;const s=Gs(a);ye.mutate({blockKey:j,data:{...t,sections:a}},{onSuccess:()=>{B(s),P(null),T(null),N(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],f=i.sections;if(!f||typeof f!="object"||Array.isArray(f))return;const y=f;if(!Array.isArray(y.variants))return;const x=t([...y.variants]);if(!x)return;const V=or(y,x),q={...o,[j]:{...i,sections:V}};ye.mutate({blockKey:j,data:q[j]},{onSuccess:()=>{a?.(),s&&_t(s,q)},onError:A=>W.error(`Save failed: ${A.message}`)})},is=t=>{G(null),B(t),P(null),T(null),N(null),M([]);const a=Be[t]?.rule,{resolveType:s,formValue:i}=jt(a,o??{},l??void 0);ie(s),E(i),hn(Be.map(f=>({rule:f.rule})),t)},ls=(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(f=>({rule:f.rule})),t,a);hn(i,s),an(f=>Rt(f,t,a))},cs=t=>{const a=Be[t]?.rule,s=kt(a,o??{},l??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),N(null),M([]),E(null),ie(null)},s)},us=t=>{an(a=>ir(a,t),()=>{B(t+1),P(null),T(null),N(null),M([]),E(null),ie(null)})},ds=async(t,a)=>{Mt();const s=Ye.current.activePageKey,i=Ye.current.decofile;if(!s)return;const f=i[s],y=f.sections;if(!y||typeof y!="object"||Array.isArray(y))return;const x=y;if(!Array.isArray(x.variants))return;const V=[...x.variants],q=V[t];if(!q?.rule||typeof q.rule!="object"){W.error("This variant has no matcher rule to rename.");return}const A=q.rule,O=a.trim();Vt(!0);try{if(!O){if(!xt(A,i,l)){G(null);return}const qe=A.__resolveType??"";V[t]={...q,rule:An(A,i,l)};const fe={...i,[s]:{...f,sections:{...x,variants:V}}};await ye.mutateAsync({blockKey:s,data:fe[s]}),await _t(qe,fe),G(null),g?.();return}const F=Mn(A,i,l);if(!F){W.error("Could not read this variant's matcher rule.");return}if(F.blockKey){await ye.mutateAsync({blockKey:F.blockKey,data:yt(F.resolveType,F.data,O)}),G(null),g?.();return}const ge=sn(O),z=rn(ge,i);if(z){W.error(z);return}const U=yt(F.resolveType,F.data,O);let De=null;try{await ye.mutateAsync({blockKey:ge,data:U}),De=ge,V[t]={...q,rule:Ft(ge)},await ye.mutateAsync({blockKey:s,data:{...f,sections:{...x,variants:V}}}),De=null}catch(qe){throw De&&await Ut.mutateAsync({blockKey:De}).catch(()=>{}),qe}G(null),W.success(`Saved matcher as global block "${O}"`),g?.()}catch(F){W.error(F instanceof Error?F.message:"Failed to rename variant")}finally{Vt(!1)}},ms=async(t,a)=>{Mt();const{selectedSectionIndex:s,rawSections:i,parsedSections:f,decofile:y,activePageKey:x,pageVariants:V,variantIndex:q}=Ye.current;if(s===null||!x)return;const A=i[s],O=f[s];if(!A||!O?.isMultivariate)return;const F=Je(A,O);if(!F)return;const ge=F.variants??[],z=ge[t];if(!z?.rule||typeof z.rule!="object"){W.error("This variant has no matcher rule to rename.");return}const U=z.rule,De=a.trim();Vt(!0);const qe=async fe=>{const We={...F,variants:fe},Ze=[...i];Ze[s]=dt(A,O,We);const rt=wt(y,x,Ze,q,V);return await ye.mutateAsync({blockKey:x,data:rt}),{...y,[x]:rt}};try{if(!De){if(!xt(U,y,l)){ne(null);return}const ot=U.__resolveType??"",Vn=[...ge];Vn[t]={...z,rule:An(U,y,l)};const vs=await qe(Vn);await _t(ot,vs),ne(null),g?.();return}const fe=Mn(U,y,l);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,y);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]={...z,rule:Ft(We)},await qe(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=()=>{St()},fs=t=>{Pe(t),Zt({inner:t})},ps=t=>{Fe(t),Zt({raw:t})},hs=()=>{Pe(null),xe([])},gs=()=>me(t=>t+1),Nn=t=>{if(Z){if(t===0){Ht.flush(),we(!1),Pe(null),Fe(void 0),xe([]),me(s=>s+1),C?.();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||Kt||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:[$t.length>1&&n.jsx("button",{type:"button",onClick:()=>Nn($t.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(sa,{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",ro),children:[n.jsx(va,{rule:Dt(nt.rule,o??{},l??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:$t.map((t,a)=>{const s=a===$t.length-1;return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[a>0&&n.jsx(ra,{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(mt,{children:[n.jsx(ft,{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(pt,{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(zn,{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(io,{pageKey:j,initialName:ze.name,initialPath:ze.path,onFieldChange:$a})}),n.jsxs(mt,{children:[n.jsx(ft,{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(pt,{side:"bottom",children:"Edit SEO"})]}),n.jsxs(mt,{children:[n.jsx(ft,{asChild:!0,children:n.jsx(Ge,{type:"button",variant:"ghost",size:"icon","aria-label":"View JSON",className:"size-7 shrink-0",onClick:()=>R&&j?R(j):$(!0),children:n.jsx(mr,{size:14})})}),n.jsx(pt,{side:"bottom",children:"View JSON"})]}),n.jsx(zn,{onClick:Rn})]})}),Z?n.jsx(It,{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:Pa,seoSchema:Ta,activeResolveType:Qt,seoTypeOptions:Ca,formResetKey:Re,siteDefaultSeo:Aa,onBreadcrumbChange:xe,onPersistRaw:ps,onInnerChange:fs,onClearForm:hs,onBumpFormKey:gs}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:"SEO schema not found for this site."})})})}):Kt?n.jsxs(It,{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??""}:${u??""}`,variants:lt.map((t,a)=>({index:a,label:t.label})),selectedIndex:tn,onSelect:Ua,onRename:ne,onDuplicate:Ga,onDelete:Wa,onRemoveAll:qa,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:Ie??"",currentLabel:Lt(Et?.rule,o??{},tt,l??void 0),currentGlobalKey:kt(Et?.rule,o??{},l??void 0)??void 0,matchers:At,globals:Sn,onSelect:ts,onSelectGlobal:as}),wn&&ae&&n.jsx("div",{className:"pt-1",children:n.jsx(Fn,{schema:wn,value:ae,onChange:ns,meta:l??void 0,decofile:o,onSaveReferencedBlock:Nt,sandbox:Tt},`${u??"none"}:${tn}:${Ie??""}`)})]})]}),n.jsx(In,{activeSchema:Xt,formValue:se,formResetKey:Ae,onFormChange:gn,onBreadcrumbChange:M,breadcrumbPath:je,emptyMessage:"No editable fields for this variant.",meta:l,decofile:o,onSaveReferencedBlock:Nt,sandbox:Tt})]}):_e?n.jsx(It,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx(In,{activeSchema:Xt,formValue:se,formResetKey:Ae,onFormChange:gn,onBreadcrumbChange:M,breadcrumbPath:je,emptyMessage:"No editable fields for this global block.",meta:l,decofile:o,onSaveReferencedBlock:Nt,sandbox:Tt})}):n.jsxs(It,{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:l,matchers:At,onSelect:is,onReorder:ls,onRename:G,onDuplicate:us,onDelete:cs,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",bt&&"pointer-events-none opacity-50"),children:[n.jsx(Pn,{currentRt:ue,currentLabel:Lt(nt?.rule,o??{},tt,l??void 0),currentGlobalKey:kt(nt?.rule,o??{},l??void 0)??void 0,matchers:At,globals:Sn,onSelect:Xa,onSelectGlobal:es}),xn&&Ce&&n.jsx("div",{className:"space-y-3",children:n.jsx(Fn,{schema:xn,value:Ce,onChange:Za,meta:l??void 0,decofile:o,onSaveReferencedBlock:Nt,sandbox:Tt},`${Ve}:${ue??""}`)})]})]}),n.jsx("div",{className:"p-2 pt-3",children:n.jsx(Yr,{listKey:`${j??""}-${Ve}`,rawSections:I,sections:Te,meta:l,selectedIndex:u,onSelect:Ka,onReorder:Oa,onDelete:Ba,onDuplicate:La,onMakeReusable:ve,onToggleHidden:Fa,onToggleLazy:Ia,onAddVariant:en,onDetach:za,onAddSection:()=>de(!0),canAddSection:Qa})})]}),n.jsx(Fs,{open:Ne!==null,onOpenChange:t=>{t||ve(null)},defaultBlockId:Ne!==null?sn(Te[Ne]?.label??""):"",isPending:ye.isPending,onSubmit:Ja}),d&&n.jsx(Er,{open:Se,onOpenChange:de,meta:l,decofile:o,previewBaseUrl:d,onSelect:Ha}),be&&j&&o&&n.jsx(Is,{open:be,onOpenChange:$,pageKey:j,decofile:o}),re!==null&&n.jsx(Bn,{open:!0,initialName:xt(Be[re]?.rule,o??{},l??void 0)?Lt(Be[re]?.rule,o??{},tt,l??void 0):"",autoLabel:tt(Dt(Be[re]?.rule,o??{},l??void 0)),isPending:bt,onSubmit:async t=>{await ds(re,t)},onOpenChange:t=>{!t&&!bt&&G(null)}}),Y!==null&&n.jsx(Bn,{open:!0,initialName:xt(lt[Y]?.rule,o??{},l??void 0)?Lt(lt[Y]?.rule,o??{},tt,l??void 0):"",autoLabel:tt(Dt(lt[Y]?.rule,o??{},l??void 0)),isPending:bt,onSubmit:async t=>{await ms(Y,t)},onOpenChange:t=>{!t&&!bt&&ne(null)}})]})}export{ec as SectionsEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-C4dGAHKX.js","assets/index-UC-5Zxqy.js","assets/index-Ct4UCmlw.css","assets/Tool02-bHBqq1Gb.js","assets/CheckCircle-uMaPMHfw.js","assets/Settings02-Deuua6cy.js","assets/use-mcp-client-Dh-Q8DTG.js","assets/constants-D_FQAPnt.js","assets/auth-CWa2vT5L.js","assets/useInfiniteQuery-gMRRahCY.js","assets/use-infinite-scroll-CgK6_i3r.js","assets/studio-tools-LMp9AQEt.js","assets/badge-YHkNrrCW.js","assets/input-CdzdWrKi.js","assets/dropdown-menu-JCGdvklS.js","assets/Check-C6CkZg9-.js","assets/ChevronRight-Bl_yFHrD.js","assets/Circle-DWd5snPl.js","assets/table-Ce-xb9xB.js","assets/toggle-group-BcRGmKwE.js","assets/use-view-mode-BS40WrZo.js","assets/use-mobile-Berquj-a.js","assets/DotsVertical-3-1wg6CQ.js","assets/FilterLines-C3raf_4-.js","assets/Globe01-C_XmMjFu.js","assets/SearchMd-D002K9LO.js","assets/dialog-CzzC6F62.js","assets/X-Arce-Ge0.js","assets/AlertCircle-BTBypCdn.js","assets/Upload01-0ls4OKAV.js","assets/alert-dialog-B2NrMNUE.js","assets/card-BuTTBPVv.js","assets/Trash01-C4WuTo6-.js","assets/label-B6bwSWu6.js","assets/select-CBCIQKJa.js","assets/tooltip-oF2dxKvS.js","assets/ChevronDown-CnSiev6J.js","assets/ChevronUp-BaPKVFC3.js","assets/switch-DSsZIKRQ.js","assets/textarea-hc_vGNu_.js","assets/XCircle-rnvB6r1o.js","assets/checkbox-q4GScbrY.js","assets/Eye-BkqHAYFU.js","assets/LinkExternal01-DLTXWmjD.js","assets/use-copy-CvJ-3ij0.js","assets/Copy01-q1_4xSoT.js","assets/Key01-DGNNZHBM.js","assets/Plus-ZkctvKC4.js","assets/mcp-oauth-DytXRgMV.js","assets/Play-CF7bszTU.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,aX as f}from"./index-UC-5Zxqy.js";import{R as u}from"./require-capability-CHqKvGf6.js";import"./use-capability-BFUmGJ2c.js";import"./access-gate-CIIsAfZg.js";import"./capability-load-error-CpFzHmR1.js";const g=l.lazy(()=>f(()=>import("./registry-layout-C4dGAHKX.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,49])));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-CgK6_i3r.js";import{dK as i}from"./index-UC-5Zxqy.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-CgK6_i3r.js";import{dK as u,ab as n}from"./index-UC-5Zxqy.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|