decocms 3.103.0 → 3.103.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-a-vR_1FH.js → AlertCircle-B7YwjVuv.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-C6PaikAY.js → ArrowUpRight-DvElag-V.js} +1 -1
- package/dist/client/assets/{CheckCircle-DuFphk_L.js → CheckCircle-DIxU9fNb.js} +1 -1
- package/dist/client/assets/{ChevronDown-C2BfMFj-.js → ChevronDown-D7t2IbgZ.js} +1 -1
- package/dist/client/assets/{ChevronLeft-1icJ8otS.js → ChevronLeft-DnVztwcc.js} +1 -1
- package/dist/client/assets/{ChevronRight-Dwj0GLk6.js → ChevronRight-Cw6r4eF5.js} +1 -1
- package/dist/client/assets/{ChevronUp-BF12r_5T.js → ChevronUp-DrHOs0IB.js} +1 -1
- package/dist/client/assets/{DotsVertical-CrxHFBG_.js → DotsVertical-p5cw6bzY.js} +1 -1
- package/dist/client/assets/{Eye-BP9Sfn-G.js → Eye-CPb9WDyf.js} +1 -1
- package/dist/client/assets/{FilterLines-BAwKn3mF.js → FilterLines-2uX2Gf4U.js} +1 -1
- package/dist/client/assets/{Globe01-DHIJpR1n.js → Globe01-D51Pf1ib.js} +1 -1
- package/dist/client/assets/{Globe04-BOTQR4EH.js → Globe04-8CmI5zRW.js} +1 -1
- package/dist/client/assets/{HardDrive-DpKUIeTU.js → HardDrive-fBNuw9RE.js} +1 -1
- package/dist/client/assets/{Key01-dSck2fXn.js → Key01-B-V8oh6M.js} +1 -1
- package/dist/client/assets/{LayoutLeft-ZU9brebS.js → LayoutLeft-B7KWV4nT.js} +1 -1
- package/dist/client/assets/{LinkExternal01-ByHnE064.js → LinkExternal01-Cd3gNz9H.js} +1 -1
- package/dist/client/assets/{Monitor01-CwM1oQZE.js → Monitor01-BzxQo8OV.js} +1 -1
- package/dist/client/assets/{Palette-De7iXBv9.js → Palette-TV4PomkE.js} +1 -1
- package/dist/client/assets/{Play-CkF-LSWc.js → Play-B9WHtGRe.js} +1 -1
- package/dist/client/assets/{Plus-Cu5Qx9bH.js → Plus-DrCr8atg.js} +1 -1
- package/dist/client/assets/{SearchLg-BlQzlk8z.js → SearchLg-C45t9PQZ.js} +1 -1
- package/dist/client/assets/{SearchMd-9JqOx0vf.js → SearchMd-C5JuA4Q_.js} +1 -1
- package/dist/client/assets/{Settings02-Dq2L1eRV.js → Settings02-CWsiKyfu.js} +1 -1
- package/dist/client/assets/{Shield01-CegV3sPz.js → Shield01-BP8Krja8.js} +1 -1
- package/dist/client/assets/{Star01-jl5974Pz.js → Star01-BvLdWUOq.js} +1 -1
- package/dist/client/assets/{Stars01-CnpuGsR_.js → Stars01-ledCttL2.js} +1 -1
- package/dist/client/assets/{Stars02-Dzh25VWh.js → Stars02-CZ3C1sQr.js} +1 -1
- package/dist/client/assets/{Sun-CGet92vQ.js → Sun-DPnjEA61.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-Cho0JvG4.js → SwitchHorizontal01-fTq_Xj_0.js} +1 -1
- package/dist/client/assets/{Tool01-BoOtnkZl.js → Tool01-MvyjXDCb.js} +1 -1
- package/dist/client/assets/{Trash01-Bwi4fXvt.js → Trash01-C3HJx9Eu.js} +1 -1
- package/dist/client/assets/{Upload01-3eA1Ncxz.js → Upload01-DvSZDpgm.js} +1 -1
- package/dist/client/assets/{User01-DXRIHbfu.js → User01-TldGh0YP.js} +1 -1
- package/dist/client/assets/{Users01-ksBJAyfL.js → Users01-B63UEiqj.js} +1 -1
- package/dist/client/assets/{Users03-7i52kT3p.js → Users03-BiIAwLFR.js} +1 -1
- package/dist/client/assets/{X-qJIM3wpw.js → X-D1lT84o6.js} +1 -1
- package/dist/client/assets/{XCircle-8JtBxZfD.js → XCircle-B1aV7AX3.js} +1 -1
- package/dist/client/assets/{XClose-1YAudtzA.js → XClose-9xeu7JIP.js} +1 -1
- package/dist/client/assets/{Zap-CAS-UyCD.js → Zap-C8z5Nmtq.js} +1 -1
- package/dist/client/assets/{ZapSquare-BGJ4B5KU.js → ZapSquare-C-BUl6mg.js} +1 -1
- package/dist/client/assets/{ZoomOut-B8xi1xbE.js → ZoomOut-DnuKetHD.js} +1 -1
- package/dist/client/assets/{access-gate-eByItBIe.js → access-gate-BY3tN2ja.js} +1 -1
- package/dist/client/assets/{add-section-modal-V99idNXv.js → add-section-modal-B07Xr2Kn.js} +1 -1
- package/dist/client/assets/{agent-icon-HV030aXf.js → agent-icon-SFzfjqT3.js} +1 -1
- package/dist/client/assets/{agents-list-wKNDiV6t.js → agents-list-DjZyRbNh.js} +1 -1
- package/dist/client/assets/{ai-providers-txJ57nZ_.js → ai-providers-CKzZgnvl.js} +1 -1
- package/dist/client/assets/{alert-CX4bs3ts.js → alert-Xi4tmGdJ.js} +1 -1
- package/dist/client/assets/{alert-dialog-07-YnAaX.js → alert-dialog-Dv-S36Xs.js} +1 -1
- package/dist/client/assets/app-editor-DkeeVFb9.js +1 -0
- package/dist/client/assets/{auth-C512TjMm.js → auth-B9AdzGWs.js} +1 -1
- package/dist/client/assets/{auth-catchall-CozmiwOm.js → auth-catchall-0TYVm2fW.js} +1 -1
- package/dist/client/assets/{auth-entry-B-03mJbR.js → auth-entry-DnJxnsQa.js} +1 -1
- package/dist/client/assets/{auth-split-layout-53lVB52j.js → auth-split-layout-CRM5rJ4I.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BchYkTF2.js → authenticate-and-persist-oauth-CWwDFJ5t.js} +1 -1
- package/dist/client/assets/{automation-list-row-C_pALM6R.js → automation-list-row-CsaQkLKW.js} +1 -1
- package/dist/client/assets/{automation-runs--Ic7AVrz.js → automation-runs-B7uMDF25.js} +1 -1
- package/dist/client/assets/{automations-Dtba0rrU.js → automations-Dss23VYg.js} +1 -1
- package/dist/client/assets/{avatar-Fi31oqON.js → avatar-CdYywjB8.js} +1 -1
- package/dist/client/assets/{badge-C4plLe5t.js → badge-Dxlv54DZ.js} +1 -1
- package/dist/client/assets/{block-document-B6LNZi6b.js → block-document-DmBsan0A.js} +1 -1
- package/dist/client/assets/{brand-context-BoMMAxcz.js → brand-context-BXcXRl5I.js} +1 -1
- package/dist/client/assets/{buckets-BGSon2E4.js → buckets-bgNzTmcE.js} +1 -1
- package/dist/client/assets/{capability-load-error-Pc0KmQA1.js → capability-load-error-CFxZVJfo.js} +1 -1
- package/dist/client/assets/{card-BfPYpJZg.js → card-Dt5JuJj0.js} +1 -1
- package/dist/client/assets/category-editor-4VhAzI64.js +1 -0
- package/dist/client/assets/{chat-context-BX3H5kjS.js → chat-context-rSGx0F1S.js} +1 -1
- package/dist/client/assets/{checkbox-CWuh092s.js → checkbox-D5qKxHwE.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DLdzGE75.js → cli-auth-success-fK-z6B11.js} +1 -1
- package/dist/client/assets/{collection-detail-BY_8Qt4K.js → collection-detail-CKsULKt8.js} +1 -1
- package/dist/client/assets/{collection-display-button-BPYtYCHp.js → collection-display-button-D1GAS3K4.js} +1 -1
- package/dist/client/assets/{collection-search-dbq5kU3E.js → collection-search-Yx1Vcd74.js} +1 -1
- package/dist/client/assets/{collection-tabs-DLFvn36O.js → collection-tabs-DEvCjzY2.js} +1 -1
- package/dist/client/assets/{command-n0XKosK9.js → command--DrDkfnb.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-BNPL0zIL.js → commerce-onboarding-C0r_RGc5.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-YMslH841.js → connect-desktop-dialog-Ny2ddpDi.js} +1 -1
- package/dist/client/assets/{connection-card-BWkd3wku.js → connection-card-DGJrNSMY.js} +1 -1
- package/dist/client/assets/{connection-detail-CKP7SAGT.js → connection-detail-CrxMas_a.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-oqhfDx95.js → connection-form-helpers-Cco6Qbpt.js} +1 -1
- package/dist/client/assets/{connections-BDwXVRPQ.js → connections-D2DZU5GB.js} +1 -1
- package/dist/client/assets/{context-menu-CibmMzkh.js → context-menu-BLuGnyVu.js} +1 -1
- package/dist/client/assets/{decopilot-BZPuRnSp.js → decopilot-DMutZh6M.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-BsWkTJtv.js → decopilot-sse-pool--1mtBHxz.js} +1 -1
- package/dist/client/assets/{dialog-BaTe3e0i.js → dialog-Dy6eXpKe.js} +1 -1
- package/dist/client/assets/{domain-settings-Bvl1buYU.js → domain-settings-C1eV-9a-.js} +1 -1
- package/dist/client/assets/{drawer-DZsf-myZ.js → drawer-Dvd-9Sja.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DVBbKPWb.js → dropdown-menu-OVr8TMr_.js} +1 -1
- package/dist/client/assets/{empty-state-RuM2DUgk.js → empty-state-DQfglbNM.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CNb492lQ.js → extract-connection-data-DrUVsxqd.js} +1 -1
- package/dist/client/assets/{file-explorer-Bt-0IRvN.js → file-explorer-CkPnNmO8.js} +1 -1
- package/dist/client/assets/{file-type-icon-qiB7tLz1.js → file-type-icon-SP0v8UlM.js} +1 -1
- package/dist/client/assets/{files-BP0dPHJS.js → files-Wz-xIRKZ.js} +1 -1
- package/dist/client/assets/{form-CPJlZ8gm.js → form-CkEHHrgu.js} +1 -1
- package/dist/client/assets/{general-Bm4xe5kW.js → general-DdP8ztNk.js} +1 -1
- package/dist/client/assets/{github-repo-picker-Bx3PH9wk.js → github-repo-picker-DSR-TwBo.js} +1 -1
- package/dist/client/assets/{hooks-BYCrj8Je.js → hooks-o8yCDzJC.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-pH1GY8sR.js → import-from-deco-dialog-CEW3ZJjT.js} +1 -1
- package/dist/client/assets/{index-DbWLk0C9.js → index-B6kdF_L8.js} +1 -1
- package/dist/client/assets/{index-CHmZLZbP.js → index-BFhrz-f4.js} +1 -1
- package/dist/client/assets/{index-D1V8a8SL.js → index-C0th2ciG.js} +1 -1
- package/dist/client/assets/{index-BGMnz0nc.js → index-D3y2G80O.js} +1 -1
- package/dist/client/assets/{index-C7Ycdp6h.js → index-DgC1qvp3.js} +1 -1
- package/dist/client/assets/{index-mLOYq0-B.js → index-Dp_9MLtk.js} +1 -1
- package/dist/client/assets/{index-B-L72X3x.js → index-DrmUu6Oi.js} +1 -1
- package/dist/client/assets/{index-BCw36lgd.js → index-DuwRwNmr.js} +1 -1
- package/dist/client/assets/{index-dFmhSjxq.js → index-XoC6Mv98.js} +1 -1
- package/dist/client/assets/{index-BGZPQKPy.js → index-Z9ET5M46.js} +1 -1
- package/dist/client/assets/index-_cWo9NQL.js +503 -0
- package/dist/client/assets/{index-Bw_3hvcK.js → index-_iXFFHGt.js} +1 -1
- package/dist/client/assets/{index-6Ms5icf_.js → index-j1EmgqV8.js} +3 -3
- package/dist/client/assets/{index-ASEVNwDG.js → index-kU0DbGlO.js} +1 -1
- package/dist/client/assets/{index-redirect-C7Ygy3w_.js → index-redirect-Cq22Ou3t.js} +1 -1
- package/dist/client/assets/{input-D8vyZlmq.js → input-zUoMTUjz.js} +1 -1
- package/dist/client/assets/{integration-icon-DFGEP0Lg.js → integration-icon-Cpv4CIQ_.js} +1 -1
- package/dist/client/assets/{label-Dd5fDeWg.js → label-DIdfff7-.js} +1 -1
- package/dist/client/assets/{login-9Bnk3uQn.js → login-0NOIPa_i.js} +1 -1
- package/dist/client/assets/{mcp-oauth-6Qawf9vM.js → mcp-oauth-iKgiXli9.js} +1 -1
- package/dist/client/assets/{members-CXb8COd_.js → members-CnFYAz0Z.js} +1 -1
- package/dist/client/assets/{monaco-editor-Bs4VDXaD.js → monaco-editor-DvDR9w-L.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Djz1qbHP.js → monitoring-stats-row-BbY_q-eo.js} +1 -1
- package/dist/client/assets/{oauth-callback-B6RVjo5-.js → oauth-callback-BPtayFiR.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-ttp82rp9.js → oauth-callback-ai-provider-K5aCOvaH.js} +1 -1
- package/dist/client/assets/{onboarding-CoDgT1Lc.js → onboarding-ZiU6JGv-.js} +1 -1
- package/dist/client/assets/{org-install-DX8Z3cjg.js → org-install-Cy54wLGw.js} +1 -1
- package/dist/client/assets/{org-layout-Co8FcicL.js → org-layout-D-P2tcqC.js} +1 -1
- package/dist/client/assets/{organization-choice-C78Udhsf.js → organization-choice-C1y80Okj.js} +1 -1
- package/dist/client/assets/{page-seo-form-DGMnURW-.js → page-seo-form-xc_ndIWR.js} +1 -1
- package/dist/client/assets/page-seo-sheet-CL3gCFpf.js +1 -0
- package/dist/client/assets/{popover-A2RlI-p_.js → popover-DU5qAOzi.js} +1 -1
- package/dist/client/assets/{post-editor-D_8S4mL1.js → post-editor-Bu1uK3RV.js} +1 -1
- package/dist/client/assets/{preview-dialog-BxsyNK36.js → preview-dialog-C9-3VKyJ.js} +1 -1
- package/dist/client/assets/{primitives-BHWTr-Lr.js → primitives-CykDcCCX.js} +1 -1
- package/dist/client/assets/{profile-CPE426z_.js → profile-BKoUm-g9.js} +1 -1
- package/dist/client/assets/project-app-view-y5DH-I8K.js +1 -0
- package/dist/client/assets/record-editor-CvDeMQ2G.js +1 -0
- package/dist/client/assets/registry-BaFm0L19.js +2 -0
- package/dist/client/assets/{registry-layout-CIG_nA03.js → registry-layout-B9FmRjJz.js} +1 -1
- package/dist/client/assets/{require-capability-BpRcFa8Q.js → require-capability-CehH7jAZ.js} +1 -1
- package/dist/client/assets/{required-auth-layout-u_vTlzld.js → required-auth-layout-CU8fve_K.js} +1 -1
- package/dist/client/assets/{reset-password-CWwIm4hk.js → reset-password-zdekZmVd.js} +1 -1
- package/dist/client/assets/{roles-CEklxBS_.js → roles-D-x_wkGo.js} +1 -1
- package/dist/client/assets/{scroll-area-C_bbXuZa.js → scroll-area-BAz3Rj9i.js} +1 -1
- package/dist/client/assets/{search-input-BqgD3o_B.js → search-input-DRzQD01R.js} +1 -1
- package/dist/client/assets/{secrets-BqTYtF5B.js → secrets-CuUGkNhM.js} +1 -1
- package/dist/client/assets/sections-editor-DPVFX_7V.js +2 -0
- package/dist/client/assets/{select-model-U3CYyB5R.js → select-model-Dq-JstQ8.js} +1 -1
- package/dist/client/assets/{select-a9ufxSlc.js → select-svPYG6Bw.js} +1 -1
- package/dist/client/assets/{seo-editor-RUwIcGP1.js → seo-editor-BFJub-eW.js} +1 -1
- package/dist/client/assets/{settings-layout-CQAIaLgS.js → settings-layout-a74u_hLy.js} +1 -1
- package/dist/client/assets/{settings-section-Crwr1bDH.js → settings-section-CNscyKHW.js} +1 -1
- package/dist/client/assets/{sheet-BawlyGxJ.js → sheet-DahuGsa4.js} +1 -1
- package/dist/client/assets/{shell-controls-Kc5UsPCa.js → shell-controls-K52T5sMB.js} +1 -1
- package/dist/client/assets/{shell-layout-CtjSuPfA.js → shell-layout-Buk6j896.js} +1 -1
- package/dist/client/assets/{shell-route-loading-Bzc5NHYu.js → shell-route-loading-B0z1lBof.js} +1 -1
- package/dist/client/assets/{sidebar-Bq9ao_xE.js → sidebar-D5j5gPeI.js} +1 -1
- package/dist/client/assets/{skeleton-BpPhQatD.js → skeleton-U2Av8cLZ.js} +1 -1
- package/dist/client/assets/{sortable.esm-CMXcSVaO.js → sortable.esm-DHLm3dqa.js} +1 -1
- package/dist/client/assets/{sso-zjwvENNS.js → sso-BoRzwrWA.js} +1 -1
- package/dist/client/assets/store-registry-3H_xbQFv.js +2 -0
- package/dist/client/assets/{store-NKaJRnDh.js → store-vubGBkGy.js} +1 -1
- package/dist/client/assets/{studio-tools-Dc1p1o3l.js → studio-tools-BAmwKCdT.js} +1 -1
- package/dist/client/assets/{switch-47Tp9h8M.js → switch-CjEoRRuC.js} +1 -1
- package/dist/client/assets/{table-DJEimqTh.js → table-T8p77nDy.js} +1 -1
- package/dist/client/assets/{tabs-CuJkXGpj.js → tabs-DDAkKuLU.js} +1 -1
- package/dist/client/assets/{task-status-DpUcj3v-.js → task-status-Dc-JFjIj.js} +1 -1
- package/dist/client/assets/{textarea-DpEKguHm.js → textarea-BrxTK711.js} +1 -1
- package/dist/client/assets/{toggle-group-VEpLQl2Q.js → toggle-group-r5JjNYaj.js} +1 -1
- package/dist/client/assets/{toolbar-CX-MgQ9A.js → toolbar-Cd-zT0GV.js} +1 -1
- package/dist/client/assets/{tooltip-CmT4sPVG.js → tooltip-D2IcwsrW.js} +1 -1
- package/dist/client/assets/{types-mcbWEpuD.js → types-DdqgwoF-.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Dt6yQJuE.js → use-ai-providers-B7DE5RlO.js} +1 -1
- package/dist/client/assets/{use-automations-BmyuEPTL.js → use-automations-BaLowkA-.js} +1 -1
- package/dist/client/assets/{use-capability-F7EUba-q.js → use-capability-BYfWBphf.js} +1 -1
- package/dist/client/assets/{use-clock-tick-CNlDEqpG.js → use-clock-tick-vJNeZS2R.js} +1 -1
- package/dist/client/assets/{use-collections-KHENvxRN.js → use-collections-DOhjyZoW.js} +1 -1
- package/dist/client/assets/{use-connection-DbpVSBkT.js → use-connection-a48WkDyi.js} +1 -1
- package/dist/client/assets/{use-copy-BoyDG3RO.js → use-copy-Dm0W_H8p.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DK16CUjb.js → use-create-virtual-mcp-BRQVpCUG.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-D2brCtUy.js → use-debounced-autosave-oRzID6xD.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DpFAtTDl.js → use-debounced-value-B1GdK5fU.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DEF0lPjJ.js → use-delete-connection-CKYm7fJS.js} +1 -1
- package/dist/client/assets/{use-file-configs-C_Pt5uPf.js → use-file-configs-F_Lh19IF.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-By--Xgf5.js → use-infinite-scroll-Cs1p0W0X.js} +1 -1
- package/dist/client/assets/{use-join-requests-DGdwjgnR.js → use-join-requests-Cx83Qjv9.js} +1 -1
- package/dist/client/assets/{use-mcp-client-B1D2WVEt.js → use-mcp-client-B1E7Nyjd.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Cz76t3bh.js → use-mcp-prompts-B4idSZTh.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DXcysFUT.js → use-mcp-tools-CqHv2Xxs.js} +1 -1
- package/dist/client/assets/{use-members-qnss8-tR.js → use-members-BqgoI8LN.js} +1 -1
- package/dist/client/assets/{use-mobile-47bis9AY.js → use-mobile-CWv_pUWp.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-B-yOHE-_.js → use-navigate-to-agent-CWpJGmq-.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BcvL3aML.js → use-org-auth-client-C3mEUOcx.js} +1 -1
- package/dist/client/assets/{use-org-sso-B9dFg3pD.js → use-org-sso-Dop9y0HC.js} +1 -1
- package/dist/client/assets/{use-organization-roles-D35x9dMW.js → use-organization-roles-BJ74MotE.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CgHZKJD7.js → use-organization-settings-8LInvXec.js} +1 -1
- package/dist/client/assets/{use-registry-connections-yk7K5hzB.js → use-registry-connections-D2DhXJmA.js} +1 -1
- package/dist/client/assets/{use-secrets-pTFZVpfk.js → use-secrets-BLkb7BZG.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Dtje6GBy.js → use-status-sounds-MjzDR8jw.js} +1 -1
- package/dist/client/assets/{use-view-mode-CPVAjUN-.js → use-view-mode-pvlDGqxN.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BbFXGgd-.js → use-virtual-mcp-BcsK_V5p.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-QT7BExxx.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-CVusVKT2.js +1 -0
- package/dist/client/assets/{useSuspenseQueries-DHRzuT6I.js → useSuspenseQueries-C20MRsU9.js} +1 -1
- package/dist/client/assets/{variant-calendar-C_6IUdTa.js → variant-calendar-Dnj2EkPc.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BhMtTNtY.js → view-mode-toggle-DQyCEqbJ.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +3 -3
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/app-editor-DcGOAT5n.js +0 -1
- package/dist/client/assets/category-editor-qE3dD0Bv.js +0 -1
- package/dist/client/assets/index-D1MfMZee.js +0 -503
- package/dist/client/assets/page-seo-sheet-DlInYsnr.js +0 -1
- package/dist/client/assets/project-app-view-Bgs4Zjm0.js +0 -1
- package/dist/client/assets/record-editor-dEvbFD7J.js +0 -1
- package/dist/client/assets/registry-BJJKTWWG.js +0 -2
- package/dist/client/assets/sections-editor-DUj_6r8N.js +0 -2
- package/dist/client/assets/store-registry-BWalKvel.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BWsroIps.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BH5HJDwS.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as it,r as E,j as e,i as rt}from"./index-6Ms5icf_.js";import{S as mt,b as pt,c as st,d as at}from"./sheet-BawlyGxJ.js";import{S as nt}from"./scroll-area-C_bbXuZa.js";import{r as lt,c as ct,u as dt,a as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-DGMnURW-.js";import{p as xt}from"./index-D1MfMZee.js";import"./X-qJIM3wpw.js";import"./agent-icon-HV030aXf.js";import"./AlertCircle-a-vR_1FH.js";import"./Tool01-BoOtnkZl.js";import"./SwitchHorizontal01-Cho0JvG4.js";import"./Settings02-Dq2L1eRV.js";import"./XCircle-8JtBxZfD.js";import"./ArrowUpRight-C6PaikAY.js";import"./ZapSquare-BGJ4B5KU.js";import"./Users03-7i52kT3p.js";import"./CheckCircle-DuFphk_L.js";import"./ChevronUp-BF12r_5T.js";import"./ChevronDown-C2BfMFj-.js";import"./ChevronLeft-1icJ8otS.js";import"./ChevronRight-Dwj0GLk6.js";import"./DotsVertical-CrxHFBG_.js";import"./Stars02-Dzh25VWh.js";import"./Eye-BP9Sfn-G.js";import"./ZoomOut-B8xi1xbE.js";import"./Globe01-DHIJpR1n.js";import"./FilterLines-BAwKn3mF.js";import"./Star01-jl5974Pz.js";import"./Globe04-BOTQR4EH.js";import"./HardDrive-DpKUIeTU.js";import"./Key01-dSck2fXn.js";import"./LayoutLeft-ZU9brebS.js";import"./LinkExternal01-ByHnE064.js";import"./Monitor01-CwM1oQZE.js";import"./Sun-CGet92vQ.js";import"./Palette-De7iXBv9.js";import"./Play-CkF-LSWc.js";import"./Plus-Cu5Qx9bH.js";import"./SearchLg-BlQzlk8z.js";import"./SearchMd-9JqOx0vf.js";import"./Shield01-CegV3sPz.js";import"./Stars01-CnpuGsR_.js";import"./Trash01-Bwi4fXvt.js";import"./Upload01-3eA1Ncxz.js";import"./User01-DXRIHbfu.js";import"./Users01-ksBJAyfL.js";import"./XClose-1YAudtzA.js";import"./Zap-CAS-UyCD.js";import"./use-clock-tick-CNlDEqpG.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BoyDG3RO.js";import"./tooltip-CmT4sPVG.js";import"./file-type-icon-qiB7tLz1.js";import"./dialog-BaTe3e0i.js";import"./use-mobile-47bis9AY.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-mcbWEpuD.js";import"./use-mcp-client-B1D2WVEt.js";import"./auth-C512TjMm.js";import"./chat-context-BX3H5kjS.js";import"./hooks-BYCrj8Je.js";import"./decopilot-sse-pool-BsWkTJtv.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-BbFXGgd-.js";import"./use-collections-KHENvxRN.js";import"./use-ai-providers-Dt6yQJuE.js";import"./studio-tools-Dc1p1o3l.js";import"./use-organization-settings-CgHZKJD7.js";import"./shell-layout-CtjSuPfA.js";import"./avatar-Fi31oqON.js";import"./required-auth-layout-u_vTlzld.js";import"./use-org-sso-B9dFg3pD.js";import"./integration-icon-DFGEP0Lg.js";import"./use-navigate-to-agent-B-yOHE-_.js";import"./use-connection-DbpVSBkT.js";import"./use-mcp-prompts-Cz76t3bh.js";import"./form-CPJlZ8gm.js";import"./label-Dd5fDeWg.js";import"./input-D8vyZlmq.js";import"./select-a9ufxSlc.js";import"./switch-47Tp9h8M.js";import"./index-dFmhSjxq.js";import"./drawer-DZsf-myZ.js";import"./collection-search-dbq5kU3E.js";import"./tabs-CuJkXGpj.js";import"./toggle-group-VEpLQl2Q.js";import"./sortable.esm-CMXcSVaO.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BWkd3wku.js";import"./use-registry-connections-yk7K5hzB.js";import"./useInfiniteQuery-BWsroIps.js";import"./use-infinite-scroll-By--Xgf5.js";import"./extract-connection-data-CNb492lQ.js";import"./card-BfPYpJZg.js";import"./collection-tabs-DLFvn36O.js";import"./badge-C4plLe5t.js";import"./textarea-DpEKguHm.js";import"./connection-form-helpers-oqhfDx95.js";import"./authenticate-and-persist-oauth-BchYkTF2.js";import"./mcp-oauth-6Qawf9vM.js";import"./useSuspenseInfiniteQuery-BH5HJDwS.js";import"./connect-desktop-dialog-YMslH841.js";import"./decopilot-BZPuRnSp.js";import"./checkbox-CWuh092s.js";import"./skeleton-BpPhQatD.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Crwr1bDH.js";import"./popover-A2RlI-p_.js";import"./command-n0XKosK9.js";import"./index-BGMnz0nc.js";import"./dropdown-menu-DVBbKPWb.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Dtje6GBy.js";import"./empty-state-RuM2DUgk.js";import"./toolbar-CX-MgQ9A.js";import"./preview-dialog-BxsyNK36.js";import"./index-BGZPQKPy.js";import"./use-mcp-tools-DXcysFUT.js";import"./use-capability-F7EUba-q.js";import"./shell-route-loading-Bzc5NHYu.js";import"./index-ASEVNwDG.js";import"./alert-dialog-07-YnAaX.js";import"./use-debounced-autosave-D2brCtUy.js";import"./index-BCw36lgd.js";import"./sidebar-Bq9ao_xE.js";import"./search-input-BqgD3o_B.js";import"./github-repo-picker-Bx3PH9wk.js";import"./use-debounced-value-DpFAtTDl.js";import"./use-secrets-pTFZVpfk.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-BhMtTNtY.js";import"./automation-runs--Ic7AVrz.js";import"./table-DJEimqTh.js";import"./use-members-qnss8-tR.js";import"./use-org-auth-client-BcvL3aML.js";import"./task-status-DpUcj3v-.js";import"./use-automations-BmyuEPTL.js";import"./use-file-configs-C_Pt5uPf.js";import"./monaco-editor-Bs4VDXaD.js";import"./select-model-U3CYyB5R.js";import"./automation-list-row-C_pALM6R.js";function ii(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 M=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 V=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 z=F,A=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,B=m.kind==="site"&&o&&n,H=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 $=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const q=O;let l;t[13]!==A?(l=e.jsx(mt,{className:"text-sm font-semibold",children:A}),t[13]=A,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]!==q||t[22]!==$||t[23]!==M||t[24]!==v||t[25]!==h||t[26]!==H||t[27]!==x||t[28]!==V||t[29]!==I||t[30]!==a||t[31]!==o||t[32]!==n||t[33]!==i||t[34]!==g||t[35]!==T||t[36]!==B||t[37]!==_?(S=!o||!T&&!B?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:H}):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:M,seoSchema:n,activeResolveType:p,seoTypeOptions:o.seoTypeOptions,formResetKey:x,siteDefaultSeo:_,onPersistRaw:r=>{g(r),I(r)},onInnerChange:r=>{i(r),a(r)},onClearForm:$,onBumpFormKey:q}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:V})})})}),t[20]=p,t[21]=q,t[22]=$,t[23]=M,t[24]=v,t[25]=h,t[26]=H,t[27]=x,t[28]=V,t[29]=I,t[30]=a,t[31]=o,t[32]=n,t[33]=i,t[34]=g,t[35]=T,t[36]=B,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]!==z||t[43]!==N||t[44]!==f?(b=e.jsx(at,{open:N,onOpenChange:z,children:f}),t[42]=z,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{ii as SeoSheet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as $,D as H,j as A}from"./index-6Ms5icf_.js";import{l as L,g as E,s as y}from"./scroll-area-C_bbXuZa.js";import{p as O,u as k}from"./use-mcp-client-B1D2WVEt.js";import{b as q,c as B}from"./use-mcp-tools-DXcysFUT.js";import{u as Y}from"./index-D1MfMZee.js";import{c as G}from"./content-blocks-o63cs2vh.js";import{g as K,M as V,a as w}from"./types-mcbWEpuD.js";import{u as z,b as F}from"./chat-context-BX3H5kjS.js";import{b as J}from"./shell-layout-CtjSuPfA.js";import"./agent-icon-HV030aXf.js";import"./AlertCircle-a-vR_1FH.js";import"./Tool01-BoOtnkZl.js";import"./SwitchHorizontal01-Cho0JvG4.js";import"./Settings02-Dq2L1eRV.js";import"./XCircle-8JtBxZfD.js";import"./ArrowUpRight-C6PaikAY.js";import"./ZapSquare-BGJ4B5KU.js";import"./Users03-7i52kT3p.js";import"./CheckCircle-DuFphk_L.js";import"./ChevronUp-BF12r_5T.js";import"./ChevronDown-C2BfMFj-.js";import"./ChevronLeft-1icJ8otS.js";import"./ChevronRight-Dwj0GLk6.js";import"./DotsVertical-CrxHFBG_.js";import"./Stars02-Dzh25VWh.js";import"./Eye-BP9Sfn-G.js";import"./ZoomOut-B8xi1xbE.js";import"./Globe01-DHIJpR1n.js";import"./FilterLines-BAwKn3mF.js";import"./Star01-jl5974Pz.js";import"./Globe04-BOTQR4EH.js";import"./HardDrive-DpKUIeTU.js";import"./Key01-dSck2fXn.js";import"./LayoutLeft-ZU9brebS.js";import"./LinkExternal01-ByHnE064.js";import"./Monitor01-CwM1oQZE.js";import"./Sun-CGet92vQ.js";import"./Palette-De7iXBv9.js";import"./Play-CkF-LSWc.js";import"./Plus-Cu5Qx9bH.js";import"./SearchLg-BlQzlk8z.js";import"./SearchMd-9JqOx0vf.js";import"./Shield01-CegV3sPz.js";import"./Stars01-CnpuGsR_.js";import"./Trash01-Bwi4fXvt.js";import"./Upload01-3eA1Ncxz.js";import"./User01-DXRIHbfu.js";import"./Users01-ksBJAyfL.js";import"./XClose-1YAudtzA.js";import"./X-qJIM3wpw.js";import"./Zap-CAS-UyCD.js";import"./use-clock-tick-CNlDEqpG.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BoyDG3RO.js";import"./tooltip-CmT4sPVG.js";import"./file-type-icon-qiB7tLz1.js";import"./dialog-BaTe3e0i.js";import"./use-mobile-47bis9AY.js";import"./tab-id-BptcWVWa.js";import"./hooks-BYCrj8Je.js";import"./decopilot-sse-pool-BsWkTJtv.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-Dc1p1o3l.js";import"./sheet-BawlyGxJ.js";import"./integration-icon-DFGEP0Lg.js";import"./use-virtual-mcp-BbFXGgd-.js";import"./use-collections-KHENvxRN.js";import"./use-navigate-to-agent-B-yOHE-_.js";import"./use-connection-DbpVSBkT.js";import"./use-mcp-prompts-Cz76t3bh.js";import"./form-CPJlZ8gm.js";import"./label-Dd5fDeWg.js";import"./input-D8vyZlmq.js";import"./select-a9ufxSlc.js";import"./auth-C512TjMm.js";import"./index-dFmhSjxq.js";import"./drawer-DZsf-myZ.js";import"./collection-search-dbq5kU3E.js";import"./tabs-CuJkXGpj.js";import"./toggle-group-VEpLQl2Q.js";import"./sortable.esm-CMXcSVaO.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BWkd3wku.js";import"./use-registry-connections-yk7K5hzB.js";import"./use-organization-settings-CgHZKJD7.js";import"./useInfiniteQuery-BWsroIps.js";import"./use-infinite-scroll-By--Xgf5.js";import"./extract-connection-data-CNb492lQ.js";import"./card-BfPYpJZg.js";import"./collection-tabs-DLFvn36O.js";import"./badge-C4plLe5t.js";import"./textarea-DpEKguHm.js";import"./connection-form-helpers-oqhfDx95.js";import"./authenticate-and-persist-oauth-BchYkTF2.js";import"./mcp-oauth-6Qawf9vM.js";import"./useSuspenseInfiniteQuery-BH5HJDwS.js";import"./use-ai-providers-Dt6yQJuE.js";import"./connect-desktop-dialog-YMslH841.js";import"./decopilot-BZPuRnSp.js";import"./checkbox-CWuh092s.js";import"./skeleton-BpPhQatD.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-Fi31oqON.js";import"./settings-section-Crwr1bDH.js";import"./popover-A2RlI-p_.js";import"./command-n0XKosK9.js";import"./index-BGMnz0nc.js";import"./dropdown-menu-DVBbKPWb.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Dtje6GBy.js";import"./empty-state-RuM2DUgk.js";import"./toolbar-CX-MgQ9A.js";import"./preview-dialog-BxsyNK36.js";import"./index-BGZPQKPy.js";import"./use-capability-F7EUba-q.js";import"./shell-route-loading-Bzc5NHYu.js";import"./index-ASEVNwDG.js";import"./alert-dialog-07-YnAaX.js";import"./switch-47Tp9h8M.js";import"./use-debounced-autosave-D2brCtUy.js";import"./index-BCw36lgd.js";import"./sidebar-Bq9ao_xE.js";import"./search-input-BqgD3o_B.js";import"./github-repo-picker-Bx3PH9wk.js";import"./use-debounced-value-DpFAtTDl.js";import"./use-secrets-pTFZVpfk.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-BhMtTNtY.js";import"./automation-runs--Ic7AVrz.js";import"./table-DJEimqTh.js";import"./use-members-qnss8-tR.js";import"./use-org-auth-client-BcvL3aML.js";import"./task-status-DpUcj3v-.js";import"./use-automations-BmyuEPTL.js";import"./use-file-configs-C_Pt5uPf.js";import"./monaco-editor-Bs4VDXaD.js";import"./select-model-U3CYyB5R.js";import"./automation-list-row-C_pALM6R.js";import"./required-auth-layout-u_vTlzld.js";import"./use-org-sso-B9dFg3pD.js";const Q={};function W(S){const t=$.c(37),{client:r,resourceURI:h,tool:o,connectionId:p,orgId:l,args:M}=S,{sendMessage:I}=z(),{setAppContext:u,clearAppContext:n}=F(),{setChatOpen:f,openTab:g}=J(),e=`${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]!==r||t[3]!==o.name||t[4]!==s?(c={client:r,toolName:o.name,toolArguments:s},t[2]=r,t[3]=o.name,t[4]=s,t[5]=c):c=t[5];const{data:i}=B(c);let x;if(t[6]!==o._meta||t[7]!==o.name){const C=E(o._meta);x=y(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 b=N;let _;t[15]!==I||t[16]!==f?(_=C=>{const D=G(C.content);D.content.length>0&&(f(!0),I({tiptapDoc:D}))},t[15]=I,t[16]=f,t[17]=_):_=t[17];const j=_;let P;t[18]!==b?(P={tool:b},t[18]=b,t[19]=P):P=t[19];let T;t[20]!==u||t[21]!==e?(T=C=>u(e,C),t[20]=u,t[21]=e,t[22]=T):T=t[22];let R;t[23]!==n||t[24]!==e?(R=()=>n(e),t[23]=n,t[24]=e,t[25]=R):R=t[25];let v;return t[26]!==r||t[27]!==j||t[28]!==m||t[29]!==l||t[30]!==h||t[31]!==P||t[32]!==T||t[33]!==R||t[34]!==s||t[35]!==i?(v=A.jsx(V,{resourceURI:h,orgId:l,toolInfo:P,toolInput:s,toolResult:i,displayMode:"fullscreen",minHeight:w.fullscreen.minHeight,maxHeight:w.fullscreen.maxHeight,client:r,onMessage:j,onUpdateModelContext:T,onTeardown:R,onRequestDisplayMode:m,className:"h-full"}),t[26]=r,t[27]=j,t[28]=m,t[29]=l,t[30]=h,t[31]=P,t[32]=T,t[33]=R,t[34]=s,t[35]=i,t[36]=v):v=t[36],v}function ye(S){const t=$.c(24),{connectionId:r,toolName:h,args:o}=S,{org:p}=H(),l=Y();let M;t[0]!==r||t[1]!==l?(M=O(r)&&l.vmEntry?.sandboxProviderKind==="user-desktop"&&l.previewUrl?`${l.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=r,t[1]=l,t[2]=M):M=t[2];const I=M;let u;t[3]!==r||t[4]!==I||t[5]!==p.id||t[6]!==p.slug?(u={connectionId:r,orgId:p.id,orgSlug:p.slug,mcpUrl:I},t[3]=r,t[4]=I,t[5]=p.id,t[6]=p.slug,t[7]=u):u=t[7];const n=k(u);let f;t[8]!==n?(f={client:n},t[8]=n,t[9]=f):f=t[9];const{data:g}=q(f);let e,a,m;t[10]!==h||t[11]!==g.tools?(e=L(decodeURIComponent(h)),m=g.tools.find(i=>i.name===e)??g.tools.find(i=>{const x=E(i._meta);if(!x)return!1;if(y(i.name,x)===e)return!0;const d=y(e,x);return d!==e&&i.name===d}),a=m?._meta?K(m._meta):void 0,t[10]=h,t[11]=g.tools,t[12]=e,t[13]=a,t[14]=m):(e=t[12],a=t[13],m=t[14]);const s=a;if(!m||!s){let i;return t[15]!==e?(i=A.jsx("div",{className:"flex items-center justify-center h-full w-full",children:A.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',e,'" not found or has no UI']})}),t[15]=e,t[16]=i):i=t[16],i}let c;return t[17]!==o||t[18]!==n||t[19]!==r||t[20]!==p.id||t[21]!==s||t[22]!==m?(c=A.jsx(W,{client:n,resourceURI:s,tool:m,connectionId:r,orgId:p.id,args:o}),t[17]=o,t[18]=n,t[19]=r,t[20]=p.id,t[21]=s,t[22]=m,t[23]=c):c=t[23],c}export{ye as AppViewContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as S,j as r}from"./index-6Ms5icf_.js";import{I as T}from"./input-D8vyZlmq.js";import{L as C}from"./label-Dd5fDeWg.js";import{T as L}from"./textarea-DpEKguHm.js";import{at as A,au as R,as as D,av as J,aw as K}from"./index-D1MfMZee.js";import{u as M,s as P}from"./primitives-BHWTr-Lr.js";import"./index-dFmhSjxq.js";import"./chat-context-BX3H5kjS.js";import"./hooks-BYCrj8Je.js";import"./use-mcp-client-B1D2WVEt.js";import"./auth-C512TjMm.js";import"./decopilot-sse-pool-BsWkTJtv.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-BbFXGgd-.js";import"./use-collections-KHENvxRN.js";import"./use-ai-providers-Dt6yQJuE.js";import"./studio-tools-Dc1p1o3l.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-CgHZKJD7.js";import"./scroll-area-C_bbXuZa.js";import"./agent-icon-HV030aXf.js";import"./AlertCircle-a-vR_1FH.js";import"./Tool01-BoOtnkZl.js";import"./SwitchHorizontal01-Cho0JvG4.js";import"./Settings02-Dq2L1eRV.js";import"./XCircle-8JtBxZfD.js";import"./ArrowUpRight-C6PaikAY.js";import"./ZapSquare-BGJ4B5KU.js";import"./Users03-7i52kT3p.js";import"./CheckCircle-DuFphk_L.js";import"./ChevronUp-BF12r_5T.js";import"./ChevronDown-C2BfMFj-.js";import"./ChevronLeft-1icJ8otS.js";import"./ChevronRight-Dwj0GLk6.js";import"./DotsVertical-CrxHFBG_.js";import"./Stars02-Dzh25VWh.js";import"./Eye-BP9Sfn-G.js";import"./ZoomOut-B8xi1xbE.js";import"./Globe01-DHIJpR1n.js";import"./FilterLines-BAwKn3mF.js";import"./Star01-jl5974Pz.js";import"./Globe04-BOTQR4EH.js";import"./HardDrive-DpKUIeTU.js";import"./Key01-dSck2fXn.js";import"./LayoutLeft-ZU9brebS.js";import"./LinkExternal01-ByHnE064.js";import"./Monitor01-CwM1oQZE.js";import"./Sun-CGet92vQ.js";import"./Palette-De7iXBv9.js";import"./Play-CkF-LSWc.js";import"./Plus-Cu5Qx9bH.js";import"./SearchLg-BlQzlk8z.js";import"./SearchMd-9JqOx0vf.js";import"./Shield01-CegV3sPz.js";import"./Stars01-CnpuGsR_.js";import"./Trash01-Bwi4fXvt.js";import"./Upload01-3eA1Ncxz.js";import"./User01-DXRIHbfu.js";import"./Users01-ksBJAyfL.js";import"./XClose-1YAudtzA.js";import"./X-qJIM3wpw.js";import"./Zap-CAS-UyCD.js";import"./use-clock-tick-CNlDEqpG.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BoyDG3RO.js";import"./tooltip-CmT4sPVG.js";import"./file-type-icon-qiB7tLz1.js";import"./dialog-BaTe3e0i.js";import"./use-mobile-47bis9AY.js";import"./content-blocks-o63cs2vh.js";import"./types-mcbWEpuD.js";import"./shell-layout-CtjSuPfA.js";import"./avatar-Fi31oqON.js";import"./required-auth-layout-u_vTlzld.js";import"./use-org-sso-B9dFg3pD.js";import"./sheet-BawlyGxJ.js";import"./integration-icon-DFGEP0Lg.js";import"./use-navigate-to-agent-B-yOHE-_.js";import"./use-connection-DbpVSBkT.js";import"./use-mcp-prompts-Cz76t3bh.js";import"./form-CPJlZ8gm.js";import"./select-a9ufxSlc.js";import"./drawer-DZsf-myZ.js";import"./collection-search-dbq5kU3E.js";import"./tabs-CuJkXGpj.js";import"./toggle-group-VEpLQl2Q.js";import"./sortable.esm-CMXcSVaO.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BWkd3wku.js";import"./use-registry-connections-yk7K5hzB.js";import"./useInfiniteQuery-BWsroIps.js";import"./use-infinite-scroll-By--Xgf5.js";import"./extract-connection-data-CNb492lQ.js";import"./card-BfPYpJZg.js";import"./collection-tabs-DLFvn36O.js";import"./badge-C4plLe5t.js";import"./connection-form-helpers-oqhfDx95.js";import"./authenticate-and-persist-oauth-BchYkTF2.js";import"./mcp-oauth-6Qawf9vM.js";import"./useSuspenseInfiniteQuery-BH5HJDwS.js";import"./connect-desktop-dialog-YMslH841.js";import"./decopilot-BZPuRnSp.js";import"./checkbox-CWuh092s.js";import"./skeleton-BpPhQatD.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Crwr1bDH.js";import"./popover-A2RlI-p_.js";import"./command-n0XKosK9.js";import"./index-BGMnz0nc.js";import"./dropdown-menu-DVBbKPWb.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Dtje6GBy.js";import"./empty-state-RuM2DUgk.js";import"./toolbar-CX-MgQ9A.js";import"./preview-dialog-BxsyNK36.js";import"./index-BGZPQKPy.js";import"./use-mcp-tools-DXcysFUT.js";import"./use-capability-F7EUba-q.js";import"./shell-route-loading-Bzc5NHYu.js";import"./index-ASEVNwDG.js";import"./alert-dialog-07-YnAaX.js";import"./switch-47Tp9h8M.js";import"./use-debounced-autosave-D2brCtUy.js";import"./index-BCw36lgd.js";import"./sidebar-Bq9ao_xE.js";import"./search-input-BqgD3o_B.js";import"./github-repo-picker-Bx3PH9wk.js";import"./use-debounced-value-DpFAtTDl.js";import"./use-secrets-pTFZVpfk.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-BhMtTNtY.js";import"./automation-runs--Ic7AVrz.js";import"./table-DJEimqTh.js";import"./use-members-qnss8-tR.js";import"./use-org-auth-client-BcvL3aML.js";import"./task-status-DpUcj3v-.js";import"./use-automations-BmyuEPTL.js";import"./use-file-configs-C_Pt5uPf.js";import"./monaco-editor-Bs4VDXaD.js";import"./select-model-U3CYyB5R.js";import"./automation-list-row-C_pALM6R.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 fr(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{fr as RecordEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CIG_nA03.js","assets/index-6Ms5icf_.js","assets/index-BBz2M403.css","assets/XCircle-8JtBxZfD.js","assets/CheckCircle-DuFphk_L.js","assets/Settings02-Dq2L1eRV.js","assets/use-mcp-client-B1D2WVEt.js","assets/auth-C512TjMm.js","assets/useInfiniteQuery-BWsroIps.js","assets/use-infinite-scroll-By--Xgf5.js","assets/studio-tools-Dc1p1o3l.js","assets/badge-C4plLe5t.js","assets/input-D8vyZlmq.js","assets/dropdown-menu-DVBbKPWb.js","assets/ChevronUp-BF12r_5T.js","assets/ChevronRight-Dwj0GLk6.js","assets/DotsVertical-CrxHFBG_.js","assets/table-DJEimqTh.js","assets/toggle-group-VEpLQl2Q.js","assets/use-view-mode-CPVAjUN-.js","assets/use-mobile-47bis9AY.js","assets/FilterLines-BAwKn3mF.js","assets/Globe01-DHIJpR1n.js","assets/SearchMd-9JqOx0vf.js","assets/dialog-BaTe3e0i.js","assets/X-qJIM3wpw.js","assets/AlertCircle-a-vR_1FH.js","assets/Upload01-3eA1Ncxz.js","assets/alert-dialog-07-YnAaX.js","assets/card-BfPYpJZg.js","assets/Trash01-Bwi4fXvt.js","assets/label-Dd5fDeWg.js","assets/select-a9ufxSlc.js","assets/tooltip-CmT4sPVG.js","assets/ChevronDown-C2BfMFj-.js","assets/switch-47Tp9h8M.js","assets/textarea-DpEKguHm.js","assets/checkbox-CWuh092s.js","assets/Eye-BP9Sfn-G.js","assets/LinkExternal01-ByHnE064.js","assets/use-copy-BoyDG3RO.js","assets/Key01-dSck2fXn.js","assets/Plus-Cu5Qx9bH.js","assets/mcp-oauth-6Qawf9vM.js","assets/Play-CkF-LSWc.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as s,j as e,r as i,i as a,am as o}from"./index-6Ms5icf_.js";import{R as m}from"./require-capability-BpRcFa8Q.js";import"./use-capability-F7EUba-q.js";import"./access-gate-eByItBIe.js";import"./capability-load-error-Pc0KmQA1.js";const n=i.lazy(()=>o(()=>import("./registry-layout-CIG_nA03.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])));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 Ie,r as w,l as Re,j as n,B as Ue,i as Dn,m as Qs,t as pe,K as Xs}from"./index-6Ms5icf_.js";import{r as Zs,a as Gs,s as ea,i as Tn,c as ta,b as na,G as sa,V as aa,d as ra,e as jt,f as oa,g as ia,h as la,j as ca,k as ua,l as da,m as ma,n as fa,o as pa,p as xt,q as bt,t as ha,v as tt,w as Bt,x as ga,y as Xe,z as gn,S as va,M as vn,A as nt,B as Sn,C as Sa,D as xn,P as xa,E as Ft,F as ba,H as ya,I as ja,J as _a,K as ka,L as wa,N as Na,O as dt,Q as Ra,R as Ca,T as Da,U as Ta,W as Pa,X as Va,Y as Aa,Z as Ma,_ as bn,$ as zt,a0 as Ea,a1 as $a,a2 as It,a3 as Ka,a4 as yn,a5 as Oa,a6 as La,a7 as Ba,a8 as Ht,a9 as Fa,aa as za,ab as Pn,ac as jn,ad as Ia}from"./index-D1MfMZee.js";import{t as Ha}from"./ChevronDown-C2BfMFj-.js";import{n as Ua}from"./ChevronLeft-1icJ8otS.js";import{i as Vn}from"./ChevronRight-Dwj0GLk6.js";import{n as Wa}from"./ChevronUp-BF12r_5T.js";import{L as Wt,E as An,X as Mn,l as qa,M as Ya,N as Ja}from"./agent-icon-HV030aXf.js";import{i as Qa}from"./Globe01-DHIJpR1n.js";import{S as yt}from"./scroll-area-C_bbXuZa.js";import{T as st,a as at,b as rt}from"./tooltip-CmT4sPVG.js";import{a as Xa,c as Za,b as Ga,D as er,d as tr,e as nr}from"./dialog-BaTe3e0i.js";import{I as sr}from"./input-D8vyZlmq.js";import{s as ar,a as En}from"./Eye-BP9Sfn-G.js";import{c as rr}from"./ZoomOut-B8xi1xbE.js";import{i as or}from"./Settings02-Dq2L1eRV.js";import{s as qt}from"./Plus-Cu5Qx9bH.js";import{s as $n}from"./Trash01-Bwi4fXvt.js";import{i as ir}from"./Zap-CAS-UyCD.js";import{c as Ze,a as Kn,D as On,b as Ln,g as lr}from"./dropdown-menu-DVBbKPWb.js";import{b as Bn,c as _t,K as Fn,P as zn,e as In,C as Hn,s as Un,l as mt,D as Wn,d as qn,S as Yn,v as cr,k as Jn,p as ur}from"./sortable.esm-CMXcSVaO.js";import{r as _n,u as dr,d as mr,a as fr,i as pr,f as hr,P as gr,b as vr,S as Sr}from"./page-seo-form-DGMnURW-.js";import{b as xr}from"./Tool01-BoOtnkZl.js";import{A as br}from"./add-section-modal-V99idNXv.js";import"./index-dFmhSjxq.js";import"./chat-context-BX3H5kjS.js";import"./hooks-BYCrj8Je.js";import"./use-mcp-client-B1D2WVEt.js";import"./auth-C512TjMm.js";import"./decopilot-sse-pool-BsWkTJtv.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-BbFXGgd-.js";import"./use-collections-KHENvxRN.js";import"./use-ai-providers-Dt6yQJuE.js";import"./studio-tools-Dc1p1o3l.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-CgHZKJD7.js";import"./drawer-DZsf-myZ.js";import"./collection-search-dbq5kU3E.js";import"./SearchMd-9JqOx0vf.js";import"./use-mobile-47bis9AY.js";import"./use-mcp-prompts-Cz76t3bh.js";import"./X-qJIM3wpw.js";import"./shell-layout-CtjSuPfA.js";import"./avatar-Fi31oqON.js";import"./User01-DXRIHbfu.js";import"./Users03-7i52kT3p.js";import"./SearchLg-BlQzlk8z.js";import"./Stars02-Dzh25VWh.js";import"./XClose-1YAudtzA.js";import"./CheckCircle-DuFphk_L.js";import"./FilterLines-BAwKn3mF.js";import"./required-auth-layout-u_vTlzld.js";import"./use-org-sso-B9dFg3pD.js";import"./SwitchHorizontal01-Cho0JvG4.js";import"./ZapSquare-BGJ4B5KU.js";import"./Star01-jl5974Pz.js";import"./Upload01-3eA1Ncxz.js";import"./AlertCircle-a-vR_1FH.js";import"./form-CPJlZ8gm.js";import"./label-Dd5fDeWg.js";import"./select-a9ufxSlc.js";import"./XCircle-8JtBxZfD.js";import"./tabs-CuJkXGpj.js";import"./toggle-group-VEpLQl2Q.js";import"./Monitor01-CwM1oQZE.js";import"./connect-desktop-dialog-YMslH841.js";import"./decopilot-BZPuRnSp.js";import"./checkbox-CWuh092s.js";import"./skeleton-BpPhQatD.js";import"./Key01-dSck2fXn.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Crwr1bDH.js";import"./card-BfPYpJZg.js";import"./ArrowUpRight-C6PaikAY.js";import"./Stars01-CnpuGsR_.js";import"./popover-A2RlI-p_.js";import"./command-n0XKosK9.js";import"./index-BGMnz0nc.js";import"./useInfiniteQuery-BWsroIps.js";import"./use-infinite-scroll-By--Xgf5.js";import"./question-004-sINsf4GQ.js";import"./integration-icon-DFGEP0Lg.js";import"./use-status-sounds-Dtje6GBy.js";import"./empty-state-RuM2DUgk.js";import"./toolbar-CX-MgQ9A.js";import"./preview-dialog-BxsyNK36.js";import"./LinkExternal01-ByHnE064.js";import"./index-BGZPQKPy.js";import"./file-type-icon-qiB7tLz1.js";import"./LayoutLeft-ZU9brebS.js";import"./use-connection-DbpVSBkT.js";import"./use-mcp-tools-DXcysFUT.js";import"./types-mcbWEpuD.js";import"./use-capability-F7EUba-q.js";import"./textarea-DpEKguHm.js";import"./shell-route-loading-Bzc5NHYu.js";import"./extract-connection-data-CNb492lQ.js";import"./index-ASEVNwDG.js";import"./mcp-oauth-6Qawf9vM.js";import"./badge-C4plLe5t.js";import"./connection-slug-eyAPH6o3.js";import"./alert-dialog-07-YnAaX.js";import"./switch-47Tp9h8M.js";import"./Play-CkF-LSWc.js";import"./use-debounced-autosave-D2brCtUy.js";import"./index-BCw36lgd.js";import"./sidebar-Bq9ao_xE.js";import"./sheet-BawlyGxJ.js";import"./search-input-BqgD3o_B.js";import"./collection-tabs-DLFvn36O.js";import"./github-repo-picker-Bx3PH9wk.js";import"./use-debounced-value-DpFAtTDl.js";import"./authenticate-and-persist-oauth-BchYkTF2.js";import"./use-navigate-to-agent-B-yOHE-_.js";import"./Users01-ksBJAyfL.js";import"./use-secrets-pTFZVpfk.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./view-mode-toggle-BhMtTNtY.js";import"./DotsVertical-CrxHFBG_.js";import"./automation-runs--Ic7AVrz.js";import"./table-DJEimqTh.js";import"./use-members-qnss8-tR.js";import"./use-org-auth-client-BcvL3aML.js";import"./task-status-DpUcj3v-.js";import"./use-automations-BmyuEPTL.js";import"./useSuspenseInfiniteQuery-BH5HJDwS.js";import"./use-file-configs-C_Pt5uPf.js";import"./monaco-editor-Bs4VDXaD.js";import"./select-model-U3CYyB5R.js";import"./automation-list-row-C_pALM6R.js";import"./Globe04-BOTQR4EH.js";import"./HardDrive-DpKUIeTU.js";import"./Sun-CGet92vQ.js";import"./Palette-De7iXBv9.js";import"./Shield01-CegV3sPz.js";import"./use-clock-tick-CNlDEqpG.js";import"./use-copy-BoyDG3RO.js";import"./content-blocks-o63cs2vh.js";import"./connection-card-BWkd3wku.js";import"./use-registry-connections-yk7K5hzB.js";import"./connection-form-helpers-oqhfDx95.js";function yr(m){return m.schema?.definitions??m.schema?.$defs??{}}function jr(m,e){const r=yr(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(v=>typeof v.$ref=="string")?.$ref;if(typeof h=="string"){const v=h.replace("#/definitions/",""),f=r[v];d=typeof f?.image=="string"?f.image:void 0}}if(d?.includes("{{{"))return d}function _r(m,e){if(!e)return;const r=Zs(m);if(!r)return;const c=jr(r.resolveType,e);if(!c)return;const d=Gs(c,r.data);if(d)return ea(d)}const kr="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",wr="text-global-section-fg focus:bg-global-section/12 focus:text-global-section-fg dark:text-global-section-fg-dark dark:focus:bg-global-section/15 dark:focus:text-global-section-fg-dark [&_svg]:!text-global-section";function kn(m){return Array.from({length:m},(e,r)=>({id:crypto.randomUUID(),index:r}))}function Qn(m){return m.map((e,r)=>({...e,index:r}))}function Nr(m,e){if(e===m.length)return m;if(e<m.length)return Qn(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 Xn(m){const e=Ie.c(20),{section:r,raw:c,meta:d}=m,h=r.isSavedBlock===!0,v=r.isMultivariate===!0;let f;e[0]!==d||e[1]!==c?(f=c&&d?_r(c,d):void 0,e[0]=d,e[1]=c,e[2]=f):f=e[2];const g=f;let S;e[3]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx(rr,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[3]=S):S=e[3];let x;e[4]!==g?(x=g&&n.jsx("img",{src:g,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),e[4]=g,e[5]=x):x=e[5];let D;e[6]!==v||e[7]!==h?(D=h?{color:sa}:v?{color:"oklch(0.65 0.15 160)"}:void 0,e[6]=v,e[7]=h,e[8]=D):D=e[8];let N;e[9]!==D?(N=n.jsx(Wt,{className:"h-4 w-4 shrink-0",style:D}),e[9]=D,e[10]=N):N=e[10];const j=r.isHidden&&"line-through opacity-50";let C;e[11]!==j?(C=Re("min-w-0 flex-1 truncate text-sm font-medium",j),e[11]=j,e[12]=C):C=e[12];let o;e[13]!==r.label||e[14]!==C?(o=n.jsx("span",{className:C,children:r.label}),e[13]=r.label,e[14]=C,e[15]=o):o=e[15];let k;return e[16]!==x||e[17]!==N||e[18]!==o?(k=n.jsxs(n.Fragment,{children:[S,x,N,o]}),e[16]=x,e[17]=N,e[18]=o,e[19]=k):k=e[19],k}function Zn(m,e){const r=m.isSavedBlock===!0,c=m.isMultivariate===!0;return Re("group flex select-none items-center gap-2 rounded-md px-2 py-2.5",e?"bg-accent text-accent-foreground":r?kr: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 Rr(m){const e=Ie.c(64),{section:r,raw:c,meta:d,sortableId:h,selected:v,onSelect:f,onDelete:g,onDuplicate:S,onMakeReusable:x,onToggleHidden:D,onToggleLazy:N,onAddVariant:j,onDetach:C}=m,o=c?Tn(c.__resolveType??""):!1;let k;e[0]!==r?(k=ta(r),e[0]=r,e[1]=k):k=e[1];const u=k;let Q;e[2]!==h?(Q={id:h,animateLayoutChanges:Vr},e[2]=h,e[3]=Q):Q=e[3];const{attributes:W,listeners:O,setNodeRef:l,transform:T,isDragging:ae}=In(Q);let P;e[4]!==T?(P=Hn.Transform.toString(T?{...T,x:0}:null),e[4]=T,e[5]=P):P=e[5];const de=ae?0:void 0;let A;e[6]!==P||e[7]!==de?(A={transform:P,opacity:de},e[6]=P,e[7]=de,e[8]=A):A=e[8];const le=A;let M;e[9]!==r?(M=na(r),e[9]=r,e[10]=M):M=e[10];const se=M,oe="button",Se=0;let I;e[11]!==f?(I=E=>{(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),f())},e[11]=f,e[12]=I):I=e[12];const te=ae?"cursor-grabbing":"cursor-pointer";let q;e[13]!==r||e[14]!==v||e[15]!==te?(q=Re("touch-none transition-colors",te,Zn(r,v)),e[13]=r,e[14]=v,e[15]=te,e[16]=q):q=e[16];let ie;e[17]!==d||e[18]!==c||e[19]!==r?(ie=n.jsx(Xn,{section:r,raw:c,meta:d}),e[17]=d,e[18]=c,e[19]=r,e[20]=ie):ie=e[20];const V=!r.isMultivariate&&n.jsxs(st,{children:[n.jsx(at,{asChild:!0,children:n.jsx(Ue,{type:"button",variant:"ghost",size:"icon","aria-label":o?"Disable async render":"Enable async render",className:Re("h-7 w-7 shrink-0",o?"":"opacity-0 group-hover:opacity-100"),onClick:E=>{E.stopPropagation(),N()},onPointerDown:Pr,children:n.jsx(ir,{className:Re("h-3.5 w-3.5",o&&"text-yellow-500")})})}),n.jsx(rt,{side:"bottom",children:o?"Disable async render":"Enable async render"})]});let he;e[21]!==D||e[22]!==r.isHidden||e[23]!==r.isMultivariate?(he=!r.isMultivariate&&n.jsxs(st,{children:[n.jsx(at,{asChild:!0,children:n.jsx(Ue,{type:"button",variant:"ghost",size:"icon","aria-label":r.isHidden?"Show section":"Hide section",className:Re("h-7 w-7 shrink-0",r.isHidden?"opacity-100":"opacity-0 group-hover:opacity-100"),onClick:E=>{E.stopPropagation(),D()},onPointerDown:Tr,children:r.isHidden?n.jsx(or,{className:"h-3.5 w-3.5"}):n.jsx(ar,{className:"h-3.5 w-3.5"})})}),n.jsx(rt,{side:"bottom",children:r.isHidden?"Show section":"Hide section"})]}),e[21]=D,e[22]=r.isHidden,e[23]=r.isMultivariate,e[24]=he):he=e[24];let K;e[25]===Symbol.for("react.memo_cache_sentinel")?(K=n.jsx(Kn,{asChild:!0,children:n.jsx(Ue,{type:"button",variant:"ghost",size:"icon","aria-label":"Section actions",className:"h-7 w-7 shrink-0 opacity-0 group-hover:opacity-100",onClick:Dr,onPointerDown:Cr,children:n.jsx(An,{className:"h-3.5 w-3.5"})})}),e[25]=K):K=e[25];let ce;e[26]!==S?(ce=E=>{E.stopPropagation(),S()},e[26]=S,e[27]=ce):ce=e[27];let X;e[28]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(En,{className:"h-4 w-4"}),e[28]=X):X=e[28];let Y;e[29]!==ce?(Y=n.jsxs(Ze,{onClick:ce,children:[X,"Duplicate"]}),e[29]=ce,e[30]=Y):Y=e[30];let L;e[31]!==u||e[32]!==j?(L=u&&n.jsxs(Ze,{className:aa,onClick:E=>{E.stopPropagation(),j()},children:[n.jsx(Mn,{className:"h-4 w-4"}),"Add variant"]}),e[31]=u,e[32]=j,e[33]=L):L=e[33];let B;e[34]!==se||e[35]!==x?(B=se&&n.jsxs(Ze,{className:wr,onClick:E=>{E.stopPropagation(),x()},children:[n.jsx(Wt,{className:"h-4 w-4"}),"Make reusable"]}),e[34]=se,e[35]=x,e[36]=B):B=e[36];let Z;e[37]!==C||e[38]!==r.isMultivariate||e[39]!==r.isSavedBlock?(Z=r.isSavedBlock===!0&&!r.isMultivariate&&n.jsxs(Ze,{onClick:E=>{E.stopPropagation(),C()},children:[n.jsx(Wt,{className:"h-4 w-4"}),"Detach"]}),e[37]=C,e[38]=r.isMultivariate,e[39]=r.isSavedBlock,e[40]=Z):Z=e[40];let G;e[41]!==g?(G=E=>{E.stopPropagation(),g()},e[41]=g,e[42]=G):G=e[42];let ee;e[43]===Symbol.for("react.memo_cache_sentinel")?(ee=n.jsx($n,{className:"h-4 w-4"}),e[43]=ee):ee=e[43];let ne;e[44]!==G?(ne=n.jsxs(Ze,{className:"text-destructive focus:text-destructive",onClick:G,children:[ee,"Delete"]}),e[44]=G,e[45]=ne):ne=e[45];let me;e[46]!==Y||e[47]!==L||e[48]!==B||e[49]!==Z||e[50]!==ne?(me=n.jsxs(On,{children:[K,n.jsxs(Ln,{align:"end",className:"w-44",children:[Y,L,B,Z,ne]})]}),e[46]=Y,e[47]=L,e[48]=B,e[49]=Z,e[50]=ne,e[51]=me):me=e[51];let F;return e[52]!==W||e[53]!==O||e[54]!==f||e[55]!==l||e[56]!==le||e[57]!==q||e[58]!==ie||e[59]!==V||e[60]!==he||e[61]!==me||e[62]!==I?(F=n.jsxs("div",{ref:l,style:le,...W,...O,role:oe,tabIndex:Se,onClick:f,onKeyDown:I,className:q,children:[ie,V,he,me]}),e[52]=W,e[53]=O,e[54]=f,e[55]=l,e[56]=le,e[57]=q,e[58]=ie,e[59]=V,e[60]=he,e[61]=me,e[62]=I,e[63]=F):F=e[63],F}function Cr(m){return m.stopPropagation()}function Dr(m){return m.stopPropagation()}function Tr(m){return m.stopPropagation()}function Pr(m){return m.stopPropagation()}function Vr(){return!1}function Ar(m){const e=Ie.c(90),{listKey:r,rawSections:c,sections:d,meta:h,selectedIndex:v,onSelect:f,onReorder:g,onDelete:S,onDuplicate:x,onMakeReusable:D,onToggleHidden:N,onToggleLazy:j,onAddVariant:C,onDetach:o,onAddSection:k,canAddSection:u}=m,Q=u===void 0?!0:u;let W;e[0]!==d.length?(W=()=>kn(d.length),e[0]=d.length,e[1]=W):W=e[1];const[O,l]=w.useState(W),[T,ae]=w.useState(null),[P,de]=w.useState(r),[A,le]=w.useState(d.length),M=w.useRef(!1);P!==r?(de(r),le(d.length),l(kn(d.length))):A!==d.length&&(le(d.length),l(z=>Nr(z,d.length)));let se;e[2]===Symbol.for("react.memo_cache_sentinel")?(se={activationConstraint:{distance:8}},e[2]=se):se=e[2];let oe;e[3]===Symbol.for("react.memo_cache_sentinel")?(oe={coordinateGetter:Un},e[3]=oe):oe=e[3];const Se=Bn(_t(zn,se),_t(Fn,oe));let I;e[4]!==O?(I=O.map(Mr),e[4]=O,e[5]=I):I=e[5];const te=I;let q;e[6]===Symbol.for("react.memo_cache_sentinel")?(q=z=>{ae(String(z.active.id))},e[6]=q):q=e[6];const ie=q;let V;e[7]!==te||e[8]!==g?(V=z=>{ae(null);const{active:_,over:H}=z;if(!H||_.id===H.id)return;const Le=te.indexOf(String(_.id)),Be=te.indexOf(String(H.id));Le===-1||Be===-1||(l(We=>Qn(mt([...We],Le,Be))),M.current=!0,requestAnimationFrame(()=>{M.current=!1}),g?.(Le,Be))},e[7]=te,e[8]=g,e[9]=V):V=e[9];const he=V;let K;e[10]===Symbol.for("react.memo_cache_sentinel")?(K=()=>{ae(null)},e[10]=K):K=e[10];const ce=K;let X,Y,L,B,Z,G,ee,ne,me,F,E,De,_e,Me,ke;if(e[11]!==T||e[12]!==Q||e[13]!==O||e[14]!==te||e[15]!==he||e[16]!==h||e[17]!==k||e[18]!==C||e[19]!==S||e[20]!==o||e[21]!==x||e[22]!==D||e[23]!==f||e[24]!==N||e[25]!==j||e[26]!==c||e[27]!==d||e[28]!==v||e[29]!==Se){Me=Symbol.for("react.early_return_sentinel");e:{const z=_=>{M.current||f(_)};if(e[45]!==T||e[46]!==Q||e[47]!==O||e[48]!==k||e[49]!==c||e[50]!==d){const _=T?O.find(H=>H.id===T):null;if(B=_!=null?d[_.index]:null,L=_!=null?c[_.index]:void 0,O.length===0){let H;e[54]===Symbol.for("react.memo_cache_sentinel")?(H=n.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:"No sections in this page."}),e[54]=H):H=e[54];const Le=!Q;let Be;e[55]===Symbol.for("react.memo_cache_sentinel")?(Be=n.jsx(qt,{size:14}),e[55]=Be):Be=e[55];let We;e[56]!==k||e[57]!==Le?(We=n.jsxs("div",{className:"space-y-2",children:[H,n.jsxs(Ue,{type:"button",variant:"outline",size:"sm",className:"w-full",disabled:Le,onClick:k,children:[Be,"Add section"]})]}),e[56]=k,e[57]=Le,e[58]=We):We=e[58],Me=We;break e}_e=Re(_&&"cursor-grabbing"),e[45]=T,e[46]=Q,e[47]=O,e[48]=k,e[49]=c,e[50]=d,e[51]=L,e[52]=B,e[53]=_e}else L=e[51],B=e[52],_e=e[53];Y=Wn,ne=Se,me=qn,F=ie,E=he,De=ce,X=Yn,G=te,ee=cr,ke="space-y-1",Z=O.map(_=>{const H=d[_.index];return H?n.jsx(Rr,{sortableId:_.id,section:H,raw:c[_.index],meta:h,selected:v===_.index,onSelect:()=>z(_.index),onDelete:()=>S(_.index),onDuplicate:()=>x(_.index),onMakeReusable:()=>D(_.index),onToggleHidden:()=>N(_.index),onToggleLazy:()=>j(_.index),onAddVariant:()=>C(_.index),onDetach:()=>o(_.index)},_.id):null})}e[11]=T,e[12]=Q,e[13]=O,e[14]=te,e[15]=he,e[16]=h,e[17]=k,e[18]=C,e[19]=S,e[20]=o,e[21]=x,e[22]=D,e[23]=f,e[24]=N,e[25]=j,e[26]=c,e[27]=d,e[28]=v,e[29]=Se,e[30]=X,e[31]=Y,e[32]=L,e[33]=B,e[34]=Z,e[35]=G,e[36]=ee,e[37]=ne,e[38]=me,e[39]=F,e[40]=E,e[41]=De,e[42]=_e,e[43]=Me,e[44]=ke}else X=e[30],Y=e[31],L=e[32],B=e[33],Z=e[34],G=e[35],ee=e[36],ne=e[37],me=e[38],F=e[39],E=e[40],De=e[41],_e=e[42],Me=e[43],ke=e[44];if(Me!==Symbol.for("react.early_return_sentinel"))return Me;let Te;e[59]!==Z||e[60]!==ke?(Te=n.jsx("div",{className:ke,children:Z}),e[59]=Z,e[60]=ke,e[61]=Te):Te=e[61];let Ce;e[62]!==X||e[63]!==G||e[64]!==ee||e[65]!==Te?(Ce=n.jsx(X,{items:G,strategy:ee,children:Te}),e[62]=X,e[63]=G,e[64]=ee,e[65]=Te,e[66]=Ce):Ce=e[66];let Ke;e[67]!==L||e[68]!==B||e[69]!==h?(Ke=B?n.jsx("div",{className:Re("cursor-grabbing shadow-lg ring-1 ring-border/60",Zn(B,!1)),children:n.jsx(Xn,{section:B,raw:L,meta:h})}):null,e[67]=L,e[68]=B,e[69]=h,e[70]=Ke):Ke=e[70];let we;e[71]!==Ke?(we=n.jsx(Jn,{dropAnimation:null,children:Ke}),e[71]=Ke,e[72]=we):we=e[72];let Ee;e[73]!==Y||e[74]!==ne||e[75]!==me||e[76]!==F||e[77]!==E||e[78]!==De||e[79]!==Ce||e[80]!==we?(Ee=n.jsxs(Y,{sensors:ne,collisionDetection:me,onDragStart:F,onDragEnd:E,onDragCancel:De,children:[Ce,we]}),e[73]=Y,e[74]=ne,e[75]=me,e[76]=F,e[77]=E,e[78]=De,e[79]=Ce,e[80]=we,e[81]=Ee):Ee=e[81];const Oe=!Q;let re;e[82]===Symbol.for("react.memo_cache_sentinel")?(re=n.jsx(qt,{size:14}),e[82]=re):re=e[82];let ue;e[83]!==k||e[84]!==Oe?(ue=n.jsxs(Ue,{type:"button",variant:"outline",size:"sm",className:"mt-2 w-full",disabled:Oe,onClick:k,children:[re,"Add section"]}),e[83]=k,e[84]=Oe,e[85]=ue):ue=e[85];let $e;return e[86]!==_e||e[87]!==Ee||e[88]!==ue?($e=n.jsxs("div",{className:_e,children:[Ee,ue]}),e[86]=_e,e[87]=Ee,e[88]=ue,e[89]=$e):$e=e[89],$e}function Mr(m){return m.id}function Er(m){const e=Ie.c(38),{open:r,initialName:c,autoLabel:d,isPending:h,onSubmit:v,onOpenChange:f}=m,g=h===void 0?!1:h,[S,x]=w.useState(c),[D,N]=w.useState(r);r!==D&&(N(r),r&&x(c));let j;e[0]!==g||e[1]!==f?(j=oe=>{!oe&&!g&&f(!1)},e[0]=g,e[1]=f,e[2]=j):j=e[2];const C=j;let o;e[3]!==g||e[4]!==S||e[5]!==v?(o=async oe=>{oe.preventDefault(),!g&&await v(S.trim())},e[3]=g,e[4]=S,e[5]=v,e[6]=o):o=e[6];const k=o;let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(Xa,{children:"Rename variant"}),e[7]=u):u=e[7];const Q=d||"the rule";let W;e[8]!==Q?(W=n.jsxs(Za,{children:[u,n.jsxs(Ga,{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:Q}),"."]})]}),e[8]=Q,e[9]=W):W=e[9];let O;e[10]===Symbol.for("react.memo_cache_sentinel")?(O=n.jsx("label",{htmlFor:"variant-rename-name",className:"text-xs font-medium text-muted-foreground",children:"Name"}),e[10]=O):O=e[10];let l;e[11]===Symbol.for("react.memo_cache_sentinel")?(l=oe=>x(oe.target.value),e[11]=l):l=e[11];let T;e[12]!==d||e[13]!==g||e[14]!==S?(T=n.jsxs("div",{className:"space-y-1.5 py-4",children:[O,n.jsx(sr,{id:"variant-rename-name",value:S,onChange:l,placeholder:d,autoFocus:!0,disabled:g})]}),e[12]=d,e[13]=g,e[14]=S,e[15]=T):T=e[15];let ae;e[16]!==f?(ae=()=>f(!1),e[16]=f,e[17]=ae):ae=e[17];let P;e[18]!==g||e[19]!==ae?(P=n.jsx(Ue,{type:"button",variant:"outline",onClick:ae,disabled:g,children:"Cancel"}),e[18]=g,e[19]=ae,e[20]=P):P=e[20];let de;e[21]!==g?(de=g?n.jsxs(n.Fragment,{children:[n.jsx(Dn,{size:14,className:"animate-spin"}),"Saving…"]}):"Save",e[21]=g,e[22]=de):de=e[22];let A;e[23]!==g||e[24]!==de?(A=n.jsx(Ue,{type:"submit",disabled:g,children:de}),e[23]=g,e[24]=de,e[25]=A):A=e[25];let le;e[26]!==P||e[27]!==A?(le=n.jsxs(er,{children:[P,A]}),e[26]=P,e[27]=A,e[28]=le):le=e[28];let M;e[29]!==k||e[30]!==le||e[31]!==W||e[32]!==T?(M=n.jsx(tr,{className:"sm:max-w-md",children:n.jsxs("form",{onSubmit:k,children:[W,T,le]})}),e[29]=k,e[30]=le,e[31]=W,e[32]=T,e[33]=M):M=e[33];let se;return e[34]!==C||e[35]!==r||e[36]!==M?(se=n.jsx(nr,{open:r,onOpenChange:C,children:M}),e[34]=C,e[35]=r,e[36]=M,e[37]=se):se=e[37],se}const $r="oklch(0.65 0.15 160)",Gn="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 Yt(m){const e=Ie.c(5),{rule:r,matchers:c}=m,d=r?.__resolveType??"";let h;if(e[0]!==c||e[1]!==d){const S=c.find(x=>x.resolveType===d)?.iconName??ra(d);h=qa(S),e[0]=c,e[1]=d,e[2]=h}else h=e[2];const v=h;if(!v)return null;let f;return e[3]!==v?(f=n.jsx(v,{size:14,className:"shrink-0"}),e[3]=v,e[4]=f):f=e[4],f}function wn(m){return m.map(e=>`${e.label}|${e.rule?.__resolveType??""}`).join(`
|
|
2
|
-
`)}function Ut(m){return m.map((e,r)=>({id:crypto.randomUUID(),index:r,variant:e}))}function Kr(m){return m.map((e,r)=>({...e,index:r}))}function Or(m){const e=Ie.c(55),{entry:r,sortableId:c,isActive:d,canDelete:h,decofile:v,meta:f,matchers:g,onSelect:S,onRename:x,onDuplicate:D,onDelete:N}=m;let j;e[0]!==c?(j={id:c,animateLayoutChanges:Fr},e[0]=c,e[1]=j):j=e[1];const{attributes:C,listeners:o,setNodeRef:k,transform:u,isDragging:Q}=In(j);let W;e[2]!==u?(W=Hn.Transform.toString(u?{...u,y:0}:null),e[2]=u,e[3]=W):W=e[3];const O=Q?0:void 0;let l;e[4]!==W||e[5]!==O?(l={transform:W,opacity:O},e[4]=W,e[5]=O,e[6]=l):l=e[6];const T=l,ae=f??void 0;let P;e[7]!==v||e[8]!==r.variant.rule||e[9]!==ae?(P=jt(r.variant.rule,v,ae),e[7]=v,e[8]=r.variant.rule,e[9]=ae,e[10]=P):P=e[10];const de=P,A=d?Gn:"text-muted-foreground hover:bg-muted hover:text-foreground",le=Q?"cursor-grabbing":"cursor-grab";let M;e[11]!==A||e[12]!==le?(M=Re("group shrink-0 inline-flex items-center rounded-md transition-colors touch-none",A,le),e[11]=A,e[12]=le,e[13]=M):M=e[13];let se;e[14]!==de||e[15]!==g?(se=n.jsx(Yt,{rule:de,matchers:g}),e[14]=de,e[15]=g,e[16]=se):se=e[16];let oe;e[17]!==r.variant.label?(oe=n.jsx("span",{className:"truncate",children:r.variant.label}),e[17]=r.variant.label,e[18]=oe):oe=e[18];let Se;e[19]!==C||e[20]!==o||e[21]!==S||e[22]!==se||e[23]!==oe?(Se=n.jsxs("button",{type:"button",...C,...o,onClick:S,className:"inline-flex items-center gap-1.5 h-8 pl-3 pr-1.5 text-sm font-medium cursor-[inherit]",children:[se,oe]}),e[19]=C,e[20]=o,e[21]=S,e[22]=se,e[23]=oe,e[24]=Se):Se=e[24];const I=`Actions for ${r.variant.label}`,te=d&&"opacity-100";let q;e[25]!==te?(q=Re("inline-flex h-8 w-6 items-center justify-center pr-1 cursor-pointer transition-opacity","opacity-0 group-hover:opacity-100 data-[state=open]:opacity-100",te),e[25]=te,e[26]=q):q=e[26];let ie;e[27]===Symbol.for("react.memo_cache_sentinel")?(ie=n.jsx(An,{size:12}),e[27]=ie):ie=e[27];let V;e[28]!==I||e[29]!==q?(V=n.jsx(Kn,{asChild:!0,children:n.jsx("button",{type:"button","aria-label":I,onClick:Br,onPointerDown:Lr,className:q,children:ie})}),e[28]=I,e[29]=q,e[30]=V):V=e[30];let he;e[31]===Symbol.for("react.memo_cache_sentinel")?(he=n.jsx(xr,{size:14}),e[31]=he):he=e[31];let K;e[32]!==x?(K=n.jsxs(Ze,{onClick:x,children:[he,"Rename"]}),e[32]=x,e[33]=K):K=e[33];let ce;e[34]===Symbol.for("react.memo_cache_sentinel")?(ce=n.jsx(En,{size:14}),e[34]=ce):ce=e[34];let X;e[35]!==D?(X=n.jsxs(Ze,{onClick:D,children:[ce,"Duplicate"]}),e[35]=D,e[36]=X):X=e[36];let Y;e[37]===Symbol.for("react.memo_cache_sentinel")?(Y=n.jsx(lr,{}),e[37]=Y):Y=e[37];const L=!h;let B;e[38]===Symbol.for("react.memo_cache_sentinel")?(B=n.jsx($n,{size:14}),e[38]=B):B=e[38];let Z;e[39]!==N||e[40]!==L?(Z=n.jsxs(Ze,{variant:"destructive",disabled:L,onClick:N,children:[B,"Delete"]}),e[39]=N,e[40]=L,e[41]=Z):Z=e[41];let G;e[42]!==K||e[43]!==X||e[44]!==Z?(G=n.jsxs(Ln,{align:"start",className:"w-36",children:[K,X,Y,Z]}),e[42]=K,e[43]=X,e[44]=Z,e[45]=G):G=e[45];let ee;e[46]!==V||e[47]!==G?(ee=n.jsxs(On,{children:[V,G]}),e[46]=V,e[47]=G,e[48]=ee):ee=e[48];let ne;return e[49]!==k||e[50]!==T||e[51]!==Se||e[52]!==ee||e[53]!==M?(ne=n.jsxs("div",{ref:k,style:T,className:M,children:[Se,ee]}),e[49]=k,e[50]=T,e[51]=Se,e[52]=ee,e[53]=M,e[54]=ne):ne=e[54],ne}function Lr(m){return m.stopPropagation()}function Br(m){return m.stopPropagation()}function Fr(){return!1}function zr(m){const e=Ie.c(13),{variant:r,decofile:c,meta:d,matchers:h}=m,v=d??void 0;let f;e[0]!==c||e[1]!==v||e[2]!==r.rule?(f=jt(r.rule,c,v),e[0]=c,e[1]=v,e[2]=r.rule,e[3]=f):f=e[3];const g=f;let S;e[4]===Symbol.for("react.memo_cache_sentinel")?(S=Re("inline-flex items-center gap-1.5 h-8 pl-3 pr-3 text-sm font-medium rounded-md shadow-lg ring-1 ring-border/60 cursor-grabbing",Gn),e[4]=S):S=e[4];let x;e[5]!==g||e[6]!==h?(x=n.jsx(Yt,{rule:g,matchers:h}),e[5]=g,e[6]=h,e[7]=x):x=e[7];let D;e[8]!==r.label?(D=n.jsx("span",{className:"truncate",children:r.label}),e[8]=r.label,e[9]=D):D=e[9];let N;return e[10]!==x||e[11]!==D?(N=n.jsxs("div",{className:S,children:[x,D]}),e[10]=x,e[11]=D,e[12]=N):N=e[12],N}function Ir(m){const e=Ie.c(78),{listKey:r,variants:c,activeIndex:d,decofile:h,meta:v,matchers:f,onSelect:g,onReorder:S,onRename:x,onDuplicate:D,onDelete:N,onAdd:j}=m;let C;e[0]!==c?(C=()=>Ut(c),e[0]=c,e[1]=C):C=e[1];const[o,k]=w.useState(C),[u,Q]=w.useState(null),[W,O]=w.useState(r),[l,T]=w.useState(c.length);let ae;e[2]!==c?(ae=()=>wn(c),e[2]=c,e[3]=ae):ae=e[3];const[P,de]=w.useState(ae),A=w.useRef(!1),le=wn(c);W!==r?(O(r),T(c.length),de(le),k(Ut(c))):l!==c.length?(T(c.length),de(le),k(Ut(c))):P!==le&&(de(le),k($e=>c.map((z,_)=>({id:$e[_]?.id??crypto.randomUUID(),index:_,variant:z}))));let M;e[4]===Symbol.for("react.memo_cache_sentinel")?(M={activationConstraint:{distance:8}},e[4]=M):M=e[4];let se;e[5]===Symbol.for("react.memo_cache_sentinel")?(se={coordinateGetter:Un},e[5]=se):se=e[5];const oe=Bn(_t(zn,M),_t(Fn,se));let Se;e[6]!==o?(Se=o.map(Hr),e[6]=o,e[7]=Se):Se=e[7];const I=Se,te=c.length>1;let q;e[8]!==o?(q=$e=>{const z=String($e.active.id);Q(o.find(_=>_.id===z)??null)},e[8]=o,e[9]=q):q=e[9];const ie=q;let V;e[10]!==I||e[11]!==S?(V=$e=>{Q(null);const{active:z,over:_}=$e;if(!_||z.id===_.id)return;const H=I.indexOf(String(z.id)),Le=I.indexOf(String(_.id));H===-1||Le===-1||(k(Be=>Kr(mt([...Be],H,Le))),A.current=!0,requestAnimationFrame(()=>{A.current=!1}),S(H,Le))},e[10]=I,e[11]=S,e[12]=V):V=e[12];const he=V;let K;e[13]===Symbol.for("react.memo_cache_sentinel")?(K=()=>{Q(null)},e[13]=K):K=e[13];const ce=K;let X,Y,L,B,Z,G,ee,ne,me,F,E,De;if(e[14]!==u||e[15]!==d||e[16]!==te||e[17]!==h||e[18]!==o||e[19]!==I||e[20]!==he||e[21]!==ie||e[22]!==f||e[23]!==v||e[24]!==N||e[25]!==D||e[26]!==x||e[27]!==g||e[28]!==oe){const $e=_=>{A.current||g(_)};E="flex items-center border-b shrink-0";const z=u&&"cursor-grabbing";e[41]!==z?(F=Re("flex flex-1 min-w-0 items-center gap-1.5 pl-3 pr-2 py-2 overflow-x-auto",z),e[41]=z,e[42]=F):F=e[42],Y=Wn,Z=oe,G=qn,ee=ie,ne=he,me=ce,X=Yn,De=I,L=ur,B=o.map(_=>n.jsx(Or,{sortableId:_.id,entry:_,isActive:_.index===d,canDelete:te,decofile:h,meta:v,matchers:f,onSelect:()=>$e(_.index),onRename:()=>x(_.index),onDuplicate:()=>D(_.index),onDelete:()=>N(_.index)},_.id)),e[14]=u,e[15]=d,e[16]=te,e[17]=h,e[18]=o,e[19]=I,e[20]=he,e[21]=ie,e[22]=f,e[23]=v,e[24]=N,e[25]=D,e[26]=x,e[27]=g,e[28]=oe,e[29]=X,e[30]=Y,e[31]=L,e[32]=B,e[33]=Z,e[34]=G,e[35]=ee,e[36]=ne,e[37]=me,e[38]=F,e[39]=E,e[40]=De}else X=e[29],Y=e[30],L=e[31],B=e[32],Z=e[33],G=e[34],ee=e[35],ne=e[36],me=e[37],F=e[38],E=e[39],De=e[40];let _e;e[43]!==X||e[44]!==L||e[45]!==B||e[46]!==De?(_e=n.jsx(X,{items:De,strategy:L,children:B}),e[43]=X,e[44]=L,e[45]=B,e[46]=De,e[47]=_e):_e=e[47];let Me;e[48]!==u||e[49]!==h||e[50]!==f||e[51]!==v?(Me=u?n.jsx(zr,{variant:u.variant,decofile:h,meta:v,matchers:f}):null,e[48]=u,e[49]=h,e[50]=f,e[51]=v,e[52]=Me):Me=e[52];let ke;e[53]!==Me?(ke=n.jsx(Jn,{dropAnimation:null,children:Me}),e[53]=Me,e[54]=ke):ke=e[54];let Te;e[55]!==Y||e[56]!==Z||e[57]!==G||e[58]!==ee||e[59]!==ne||e[60]!==me||e[61]!==_e||e[62]!==ke?(Te=n.jsxs(Y,{sensors:Z,collisionDetection:G,onDragStart:ee,onDragEnd:ne,onDragCancel:me,children:[_e,ke]}),e[55]=Y,e[56]=Z,e[57]=G,e[58]=ee,e[59]=ne,e[60]=me,e[61]=_e,e[62]=ke,e[63]=Te):Te=e[63];let Ce;e[64]!==F||e[65]!==Te?(Ce=n.jsx("div",{className:F,children:Te}),e[64]=F,e[65]=Te,e[66]=Ce):Ce=e[66];let Ke;e[67]===Symbol.for("react.memo_cache_sentinel")?(Ke={color:$r},e[67]=Ke):Ke=e[67];let we;e[68]===Symbol.for("react.memo_cache_sentinel")?(we=n.jsx(qt,{size:14}),e[68]=we):we=e[68];let Ee;e[69]!==j?(Ee=n.jsx(at,{asChild:!0,children:n.jsx(Ue,{type:"button",variant:"ghost",size:"icon","aria-label":"Add variant",className:"size-8 shrink-0 cursor-pointer",style:Ke,onClick:j,children:we})}),e[69]=j,e[70]=Ee):Ee=e[70];let Oe;e[71]===Symbol.for("react.memo_cache_sentinel")?(Oe=n.jsx(rt,{side:"bottom",children:"Add variant"}),e[71]=Oe):Oe=e[71];let re;e[72]!==Ee?(re=n.jsx("div",{className:"shrink-0 pr-3 pl-1 py-2",children:n.jsxs(st,{children:[Ee,Oe]})}),e[72]=Ee,e[73]=re):re=e[73];let ue;return e[74]!==E||e[75]!==Ce||e[76]!==re?(ue=n.jsxs("div",{className:E,children:[Ce,re]}),e[74]=E,e[75]=Ce,e[76]=re,e[77]=ue):ue=e[77],ue}function Hr(m){return m.id}function Nn(m){const e=Ie.c(15),{schema:r,value:c,onChange:d,meta:h,decofile:v,onSaveReferencedBlock:f,sandbox:g}=m;let S;e[0]===Symbol.for("react.memo_cache_sentinel")?(S=[],e[0]=S):S=e[0];const[x,D]=w.useState(S);let N;e[1]!==x?(N=x.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:()=>D([]),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(Ua,{className:"size-3.5"})}),x.map((o,k)=>{const u=k===x.length-1;return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[k>0&&n.jsx(Vn,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>D(x.slice(0,k+1)),title:o,className:Re("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors hover:bg-accent hover:text-accent-foreground",u?"font-medium text-foreground":"text-muted-foreground"),children:o})]},`${o}-${k}`)})]}),e[1]=x,e[2]=N):N=e[2];let j;e[3]!==x||e[4]!==v||e[5]!==h||e[6]!==d||e[7]!==f||e[8]!==g||e[9]!==r||e[10]!==c?(j=n.jsx(Pn,{schema:r,value:c,onChange:d,basePath:"",breadcrumbPath:x,onBreadcrumbChange:D,meta:h,decofile:v,onSaveReferencedBlock:f,sandbox:g}),e[3]=x,e[4]=v,e[5]=h,e[6]=d,e[7]=f,e[8]=g,e[9]=r,e[10]=c,e[11]=j):j=e[11];let C;return e[12]!==N||e[13]!==j?(C=n.jsxs("div",{className:"space-y-2",children:[N,j]}),e[12]=N,e[13]=j,e[14]=C):C=e[14],C}function Rn(m){const e=Ie.c(21),{activeSchema:r,formValue:c,formResetKey:d,onFormChange:h,onBreadcrumbChange:v,breadcrumbPath:f,emptyMessage:g,beforeForm:S,seoResolveType:x,siteDefaultSeo:D,meta:N,decofile:j,onSaveReferencedBlock:C,sandbox:o}=m;let k;e[0]!==f?(k=f===void 0?[]:f,e[0]=f,e[1]=k):k=e[1];const u=k;let Q;e[2]!==r||e[3]!==u||e[4]!==j||e[5]!==d||e[6]!==c||e[7]!==N||e[8]!==v||e[9]!==h||e[10]!==C||e[11]!==o||e[12]!==x||e[13]!==D?(Q=r&&c?x?n.jsx(Sr,{schema:r,resolveType:x,value:c,formResetKey:d,onChange:h,onBreadcrumbChange:v,siteDefaultSeo:D}):n.jsx(Pn,{schema:r,value:c,onChange:h,basePath:"",breadcrumbPath:u,onBreadcrumbChange:v,meta:N,decofile:j,onSaveReferencedBlock:C,sandbox:o},d):null,e[2]=r,e[3]=u,e[4]=j,e[5]=d,e[6]=c,e[7]=N,e[8]=v,e[9]=h,e[10]=C,e[11]=o,e[12]=x,e[13]=D,e[14]=Q):Q=e[14];const W=Q;let O;e[15]!==g||e[16]!==W?(O=W??n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:g}),e[15]=g,e[16]=W,e[17]=O):O=e[17];let l;return e[18]!==S||e[19]!==O?(l=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:[S,O]})}),e[18]=S,e[19]=O,e[20]=l):l=e[20],l}const Ur="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 Wr(m,e){return ba(m,e,nt)}function qr(m){const e=Ie.c(13),{pageKey:r,initialName:c,initialPath:d,onFieldChange:h}=m,[v,f]=w.useState(c),[g,S]=w.useState(d),[x,D]=w.useState(r);x!==r&&(D(r),f(c),S(d));let N;e[0]!==h?(N=u=>{f(u.target.value),h("name",u.target.value)},e[0]=h,e[1]=N):N=e[1];let j;e[2]!==v||e[3]!==N?(j=n.jsx("input",{type:"text",value:v,onChange:N,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]=v,e[3]=N,e[4]=j):j=e[4];let C;e[5]!==h?(C=u=>{S(u.target.value),h("path",u.target.value)},e[5]=h,e[6]=C):C=e[6];let o;e[7]!==g||e[8]!==C?(o=n.jsx("input",{type:"text",value:g,onChange:C,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]=g,e[8]=C,e[9]=o):o=e[9];let k;return e[10]!==j||e[11]!==o?(k=n.jsxs("div",{className:"space-y-1",children:[j,o]}),e[10]=j,e[11]=o,e[12]=k):k=e[12],k}function Cn(m){const e=Ie.c(6),{onClick:r}=m;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(Mn,{size:14}),e[0]=c):c=e[0];let d;e[1]!==r?(d=n.jsx(at,{asChild:!0,children:n.jsx(Ue,{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(rt,{side:"bottom",children:"Add variant"}),e[3]=h):h=e[3];let v;return e[4]!==d?(v=n.jsxs(st,{children:[d,h]}),e[4]=d,e[5]=v):v=e[5],v}function Tl({orgSlug:m,virtualMcpId:e,branch:r,previewReady:c=!0,previewUrl:d,currentPath:h,activePageBlockKey:v=null,activeGlobalBlockKey:f=null,externalSelectedIndex:g,onSaved:S,initialEditSeo:x=!1,onExitSeo:D,onViewJsonFile:N,onVariantPreviewOverride:j}){const C=c?{orgSlug:m,virtualMcpId:e,branch:r,previewUrl:d}:null,{data:o,isLoading:k}=oa(C),{data:u,isLoading:Q}=ia(C),W=la(),O=W?.entity?.id===e?W.entity.metadata?.siteSlug??null:null,[l,T]=w.useState(null),[ae,P]=w.useState(null),[de,A]=w.useState(null),[le,M]=w.useState(0),[se,oe]=w.useState(void 0),[Se,I]=w.useState(null),[te,q]=w.useState(null),[ie,V]=w.useState([]),[he,K]=w.useState(0),[ce,X]=w.useState(null),[Y,L]=w.useState(null),[B,Z]=w.useState(!0),[G,ee]=w.useState(!1),[ne,me]=w.useState(!1),[F,E]=w.useState(x),[De,_e]=w.useState(x);x&&!De&&(_e(!0),E(!0),T(null),P(null),A(null),V([])),!x&&De&&_e(!1);const[Me,ke]=w.useState(null),[Te,Ce]=w.useState(void 0),[Ke,we]=w.useState([]),[Ee,Oe]=w.useState(0),[re,ue]=w.useState(0),[$e,z]=w.useState(null),[_,H]=w.useState(null),[Le,Be]=w.useState(null),We=Qs(),es=`${m}/${e}/${r}`,kt=ca({orgSlug:m,virtualMcpId:e,branch:r}),[ts,ns]=w.useState(h),[ss,as]=w.useState(v),[rs,os]=w.useState(f);(ts!==h||ss!==v||rs!==f)&&(queueMicrotask(()=>kt.flush()),ns(h),as(v),os(f),T(null),P(null),A(null),M(0),I(null),q(null),ue(0),z(null),H(null),V([]),K(t=>t+1),E(!1),ke(null),Ce(void 0),we([]),Oe(t=>t+1));const Pe=ua({orgSlug:m,virtualMcpId:e,branch:r}),ft=Ta((t,s)=>{Pe.mutate({blockKey:t,data:s},{onSuccess:()=>S?.(),onError:a=>pe.error(`Save failed: ${a.message}`)})}),Jt=da({orgSlug:m,virtualMcpId:e,branch:r}),[wt,Qt]=w.useState(!1),Nt=w.useRef(null),ot=w.useRef(null),it=w.useRef(null),Rt=w.useRef({}),qe=w.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null});if(!c||k||Q)return n.jsx("div",{className:"h-full w-full flex items-center justify-center",children:n.jsx(Dn,{size:20,className:"animate-spin text-muted-foreground"})});if(!o||!u)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 is=ma(o),ve=!!f,Fe=ve?null:fa(is,h,v),b=ve?f:Fe?.key??null,Ct=ve&&f?o[f]:void 0,Xt=ve&&f&&Ct?pa(f,Ct):ve&&f?f:"",pt=!ve&&b&&o[b]?o[b]:null,Dt=F&&o&&u&&b&&Fe?_n(o,{kind:"page",pageKey:b,pageName:String(Fe.name??""),path:String(Fe.path??"")},u):null,ls=F?pt?.seo:void 0,Tt=Te!==void 0?Te:ls,cs=F?dr(Tt):void 0,us=Dt?.seoTypeOptions??[],ds=F&&u?mr(u):"",Zt=Me??cs??{},Pt=F&&Dt?fr(Zt,Dt):null,ms=F&&Pt&&pr(Tt)?xt(Pt,u):null,fs=F?hr(o,u)?.seoData:void 0,Ve=ve?[{label:"Default",sections:[{__resolveType:f}]}]:Wr(pt?.sections,o??{}),ht=Ve.length>1,je=Math.min(le,Ve.length-1),Ge=Ve[je],U=Ge?.sections??[],Ne=bt(U,o),Gt=!ve&&ha(pt?.sections);if(ve&&f&&Le!==f){Be(f);const t=U[0],s=Ne[0];if(t&&s){T(0),ue(0),V([]);const a=tt(t,s,o);a&&(P(a.data),A(a.resolveType),H(null),z(null))}}!ve&&Le!==null&&Be(null),qe.current={rawSections:U,parsedSections:Ne,decofile:o??{},activePageKey:b,pageVariants:Ve,variantIndex:je,sectionVariantIndex:re,selectedSectionIndex:l};const ps=()=>({multivariate:Gt,index:je,variants:Ve.map(t=>({rule:t.rule}))}),en=(t,s)=>{if(!j)return;if(!b||!Gt||t.length<=1){j(null);return}const a=yn(b,{multivariate:!0,index:s,variants:t},o,u);j(a.length>0?a:null)},lt=(t,s,a)=>{if(!j)return;if(!b){j(null);return}const i=ps(),p=yn(b,i,o,u);if(!t||s<0){j(p.length>0?p:null);return}const R=Oa({pageKey:b,page:i,sectionIndex:s,sectionLazy:Ne[s]?.isLazy??!1,mvObj:t,selectedVariantIndex:a,decofile:o,meta:u}),y=[...p,...R];j(y.length>0?y:null)},Ye=(t,s,a,i=l??-1,p=!1)=>{const R=Xe(t,s);if(!R){P(null),A(null),H(null),z(null),p&<(null,i,a);return}const $=gn(R,nt)[a];if(!$){P(null),A(null),H(null),z(null),p&<(null,i,a);return}const ge=ya($.value,o);P(ge?.data??null),A(ge?.resolveType??null);const{resolveType:J,formValue:fe}=Bt($.rule,o,u??void 0);H(J),z(fe),p&<(R,i,a)};if(g!==void 0&&g!==se&&(oe(g??null),typeof g=="number")){const t=U[g],s=Ne[g];if(t&&s)if(T(g),ue(0),V([]),K(a=>a+1),s.isMultivariate)Ye(t,s,0,g);else{const a=tt(t,s,o);a?(P(a.data),A(a.resolveType)):(P(null),A(null)),H(null),z(null)}}const gt={orgSlug:m,virtualMcpId:e,branch:r,previewUrl:d??void 0,siteSlug:O},Vt=de&&u?xt(de,u):null,ze=(t,s)=>{if(!b)return;const a=zt(o,b,t,je,Ve);Pe.mutate({blockKey:b,data:a},{onSuccess:()=>s?.onSuccess?.()??S?.(),onError:i=>pe.error(`Save failed: ${i.message}`)})},ct=()=>{T(null),P(null),A(null),ue(0),z(null),H(null),V([]),K(t=>t+1)},hs=(t,s)=>{Nt.current&&clearTimeout(Nt.current);const a=qe.current.sectionVariantIndex;Nt.current=setTimeout(()=>{const{rawSections:i,parsedSections:p,decofile:R,activePageKey:y,pageVariants:$,variantIndex:ge}=qe.current,J=i[s];if(!J)return;const fe=p[s];if(!fe)return;if(fe.isSavedBlock){const be=fe.isLazy?J.section?.__resolveType??J.__resolveType:J.__resolveType;Pe.mutate({blockKey:be,data:t},{onSuccess:()=>S?.(),onError:ye=>pe.error(`Save failed: ${ye.message}`)});return}if(!y)return;const xe={...R[y]},Ae=[...i];if(fe.isMultivariate){const be=Xe(J,fe);if(!be||!y)return;const ye=Fa(be,a,t);Ae[s]=dt(J,fe,ye)}else if(fe.isHidden){const be=Tn(J.__resolveType),ye=be?{...J.section}:{...J},He=Array.isArray(ye.variants)?[...ye.variants]:[];He[0]&&(He[0]={...He[0],value:t}),ye.variants=He,be?Ae[s]={...J,section:ye}:Ae[s]=ye}else fe.isLazy?Ae[s]={...J,section:t}:Ae[s]=t;if($.length>1){const be=xe.sections,ye=[...be?.variants??[]];ye[ge]&&(ye[ge]={...ye[ge],value:Ae}),xe.sections={...be,variants:ye}}else xe.sections=Ae;Pe.mutate({blockKey:y,data:xe},{onSuccess:()=>S?.(),onError:be=>pe.error(`Save failed: ${be.message}`)})},Ht)},gs=t=>{T(t),ue(0),V([]),K(p=>p+1);const s=U[t],a=Ne[t];if(!s||!a)return;if(a.isMultivariate){Ye(s,a,0,t);return}const i=tt(s,a,o);if(!i){P(null),A(null),H(null),z(null),lt(null,t,0);return}P(i.data),A(i.resolveType),H(null),z(null),lt(null,t,0)},tn=t=>{const s=t;P(s),l!==null&&hs(s,l)},At=t=>{if(!b||!o||!u||!Fe)return;const s={kind:"page",pageKey:b,pageName:String(Fe.name??""),path:String(Fe.path??"")},a=_n(o,s,u);a&&kt.save(b,()=>{const i=We.getQueryData(Xs.decofile(es))?.[b];if(!i||typeof i!="object"||i===null||Array.isArray(i))return null;const p={...i,...Rt.current};return Rt.current={},t?.raw!==void 0?{...p,seo:t.raw}:t?.inner!==void 0?vr(s,a,p,t.inner):p})},vs=(t,s)=>{b&&(Rt.current[t]=s,At())},Ss=(t,s)=>{if(!b)return;const a=mt([...U],t,s);l!==null&&(l===t?T(s):t<l&&s>=l?T(l-1):t>l&&s<=l&&T(l+1)),ze(a)},xs=t=>{if(!b)return;const s=U.filter((a,i)=>i!==t);l===t?ct():l!==null&&l>t&&T(l-1),ze(s)},bs=t=>{if(!b)return;const s=U[t];if(!s)return;const a=[...U];a.splice(t+1,0,Ma(s)),l!==null&&l>t&&T(l+1),ze(a)},ys=t=>{if(!b)return;const s=U[t],a=Ne[t];if(!s||!a||a.isMultivariate)return;const i=a.isHidden?Va(s):Aa(s);if(!i)return;const p=[...U];p[t]=i,l===t&&ct(),ze(p)},js=t=>{if(!b)return;const s=U[t],a=Ne[t];if(!s||!a||a.isMultivariate)return;const i=Pa(s);if(!i)return;const p=[...U];p[t]=i,l===t&&ct(),ze(p)},_s=t=>{if(!b)return;const s=U[t],a=Ne[t];if(!s||!a?.isSavedBlock)return;const i=tt(s,a,o);if(!i?.data)return;const{name:p,...R}=i.data,y=[...U];a.isLazy?y[t]={...s,section:R}:y[t]=R,l===t&&ct(),ze(y)},ks=t=>{if(!b)return;const s=[...U,{__resolveType:t.resolveType}],a=s.length-1;ze(s,{onSuccess:()=>{ee(!1),T(a),ue(0),V([]),K(y=>y+1);const i=s[a],p=bt(s,o)[a];if(!i||!p)return;if(p.isMultivariate){Ye(i,p,0);return}const R=tt(i,p,o);if(!R){P(null),A(null),H(null),z(null);return}P(R.data),A(R.resolveType),H(null),z(null)}})},ws=t=>{if(l===null)return;const s=U[l],a=Ne[l];!s||!a?.isMultivariate||(ue(t),V([]),K(i=>i+1),Ye(s,a,t,l,!0))},Ns=t=>{if(l===null||!b)return;const s=U[l],a=Ne[l];if(!s||!a?.isMultivariate)return;const i=Xe(s,a);if(!i)return;const p=Ca(i,t);if(!p){pe.error("Cannot delete the only variant.");return}const R=[...U];R[l]=dt(s,a,p);const y=p.variants;let $=re;t===re?$=Math.min(t,y.length-1):t<re&&($=re-1),ue($),V([]),K(ge=>ge+1),Ye(R[l],a,$),ze(R)},Rs=t=>{if(l===null||!b)return;const s=U[l],a=Ne[l];if(!s||!a?.isMultivariate)return;const i=Xe(s,a);if(!i)return;const p=Da(i,t),R=[...U];R[l]=dt(s,a,p);const y=t+1;ue(y),V([]),K($=>$+1),Ye(R[l],a,y),ze(R)},Cs=(t,s)=>{if(l===null||!b||t===s)return;const a=U[l],i=Ne[l];if(!a||!i?.isMultivariate)return;const p=Xe(a,i);if(!p)return;const R=Na(p,t,s),y=[...U];y[l]=dt(a,i,R);let $=re;re===t?$=s:t<re&&s>=re?$=re-1:t>re&&s<=re&&($=re+1),ue($),Ye(y[l],i,$),ze(y)},Mt=t=>{const s=t??l;if(s===null||!b)return;const a=U[s],i=Ne[s];if(!a||!i)return;const p=ja(a,i);if(!p){pe.error("This section cannot have variants.");return}const R=[...U];R[s]=p.section;const y=bt(R,o)[s];if(!y?.isMultivariate){pe.error("Could not add variant.");return}T(s),ue(p.newVariantIndex),V([]),K($=>$+1),Ye(p.section,y,p.newVariantIndex,s),ze(R)},Ds=()=>{if(l===null||!b)return;const t=U[l],s=Ne[l];if(!t||!s?.isMultivariate)return;const a=Xe(t,s);if(!a)return;const i=Ra(t,s,a);if(!i){pe.error("Could not remove variants.");return}const p=[...U];p[l]=i;const R=bt(p,o)[l];if(!R)return;ue(0),H(null),z(null),V([]),K($=>$+1);const y=tt(i,R,o);y?(P(y.data),A(y.resolveType)):(P(null),A(null)),lt(null,l,0),ze(p)},Ts=async t=>{if(ce===null||!b)return;const s=bn(t,o);if(s){pe.error(s);return}const a=U[ce],i=Ne[ce];if(!a||!i)return;const p=tt(a,i,o);if(!p){pe.error("This section cannot be saved as global.");return}const R={...p.data,name:t};try{await Pe.mutateAsync({blockKey:t,data:R});const y=[...U];y[ce]={__resolveType:t},await Pe.mutateAsync({blockKey:b,data:zt(o,b,y,je,Ve)}),l===ce&&ct(),X(null),pe.success(`Saved global block "${t}"`),S?.()}catch(y){pe.error(y instanceof Error?y.message:"Failed to save global block")}},nn=Ge?.rule;if(ht&&l===null&&te===null&&nn){const{resolveType:t,formValue:s}=Bt(nn,o??{},u??void 0);q(t),I(s)}const vt=u?ga(u):[],Ps=!ve&&!!(d&&u&&o),sn=te&&u?xt(te,u):null,Vs=()=>{ot.current&&(clearTimeout(ot.current),ot.current=null),it.current&&(clearTimeout(it.current),it.current=null)},an=async(t,s)=>{if(!(za(s,t,u)>0))try{await Jt.mutateAsync({blockKey:t})}catch(a){pe.error(a instanceof Error?a.message:"Could not delete matcher block")}},rn=t=>{ot.current&&clearTimeout(ot.current),ot.current=setTimeout(()=>{const{activePageKey:s,decofile:a,variantIndex:i}=qe.current;if(!s)return;const p={...a[s]},R={...p.sections},y=[...R.variants??[]],$=y[i],ge=$?.rule;if(Ft(ge,a,u)){const J=ge?.__resolveType??"",fe=a[J],xe=typeof fe?.name=="string"?fe.name:J,{__resolveType:Ae,...be}=t;Pe.mutate({blockKey:J,data:It(Ae??"",be,xe)},{onSuccess:()=>S?.(),onError:ye=>pe.error(`Save failed: ${ye.message}`)});return}$&&(y[i]={...$,rule:t}),p.sections={...R,variants:y},Pe.mutate({blockKey:s,data:p},{onSuccess:()=>S?.(),onError:J=>pe.error(`Save failed: ${J.message}`)})},Ht)},As=t=>{q(t);const s=t?{__resolveType:t}:{__resolveType:jn};I({}),rn(s)},Ms=t=>{const s=t;I(s);const a=te?{__resolveType:te,...s}:{...s};rn(a)},on=t=>{it.current&&clearTimeout(it.current);const{selectedSectionIndex:s,sectionVariantIndex:a}=qe.current;s!==null&&(it.current=setTimeout(()=>{const{rawSections:i,parsedSections:p,decofile:R,activePageKey:y,pageVariants:$,variantIndex:ge}=qe.current;if(!y)return;const J=i[s],fe=p[s];if(!J||!fe?.isMultivariate)return;const xe=Xe(J,fe);if(!xe)return;const Ae=Ba(xe,a,t),be=[...i];be[s]=dt(J,fe,Ae);const ye=zt(R,y,be,ge,$);Pe.mutate({blockKey:y,data:ye},{onSuccess:()=>S?.(),onError:He=>pe.error(`Save failed: ${He.message}`)})},Ht))},Es=t=>{H(t),z({}),on(t?{__resolveType:t}:{__resolveType:jn})},$s=t=>{const s=t;z(s);const a=_?{__resolveType:_,...s}:{...s};on(a)};if(!ve&&!Fe)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(ve&&!Ct)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 Je=l!==null?Ne[l]??null:null,ln=l!==null?U[l]:null,cn=ln&&Je?.isMultivariate?Xe(ln,Je):null,St=cn?gn(cn,nt):[],Et=Math.min(re,Math.max(St.length-1,0)),$t=St[Et]??null,et=Je?.isMultivariate===!0,un=l!==null&&Je!==null,ut=un&&(et||!!(Vt&&ae)),Ks=ut&&!ve&&Je?.isSavedBlock===!0,Qe=ve||Ks,Os=ve?Xt:Je?.label??"",dn=_&&u?xt(_,u):null,Kt=ut&&(!ve||ie.length>0)?ve?[Xt,...ie]:[Fe.name,Je.label,...et&&$t?[$t.label]:[],...ie]:[],Ls=F&&Fe?[Fe.name,"SEO",...Ke]:[],mn=F?Ls:Qe?Kt.length>0?Kt:[Os]:Kt,fn=()=>{if(!b)return;const t=o[b],s=_a(t.sections,U);if(!s)return;const a=ka(s);Pe.mutate({blockKey:b,data:{...t,sections:s}},{onSuccess:()=>{M(a),T(null),P(null),A(null),V([]),I(null),q(null)},onError:i=>pe.error(`Save failed: ${i.message}`)})},Ot=(t,s,a)=>{if(!b)return;const i=o[b],p=i.sections;if(!p||typeof p!="object"||Array.isArray(p))return;const R=p;if(!Array.isArray(R.variants))return;const y=t([...R.variants]);if(!y)return;const $=La(R,y),ge={...o,[b]:{...i,sections:$}};Pe.mutate({blockKey:b,data:ge[b]},{onSuccess:()=>{s?.(),a&&an(a,ge)},onError:J=>pe.error(`Save failed: ${J.message}`)})},Bs=t=>{L(null),M(t),T(null),P(null),A(null),V([]);const s=Ve[t]?.rule,{resolveType:a,formValue:i}=Bt(s,o??{},u??void 0);q(a),I(i),en(Ve.map(p=>({rule:p.rule})),t)},Fs=(t,s)=>{if(t===s)return;let a=je;je===t?a=s:t<je&&s>=je?a=je-1:t>je&&s<=je&&(a=je+1),M(a);const i=mt(Ve.map(p=>({rule:p.rule})),t,s);en(i,a),Ot(p=>mt(p,t,s))},zs=t=>{const s=Ve[t]?.rule,a=wa(s,o??{},u??void 0);Ot(i=>i.length<=1?null:(i.splice(t,1),i),()=>{Ve.length-1===1?M(0):t<je?M(je-1):t===je&&M(Math.max(0,t-1)),T(null),P(null),A(null),V([]),I(null),q(null)},a)},Is=t=>{Ot(s=>Ia(s,t),()=>{M(t+1),T(null),P(null),A(null),V([]),I(null),q(null)})},Hs=async(t,s)=>{Vs();const a=qe.current.activePageKey,i=qe.current.decofile;if(!a)return;const p=i[a],R=p.sections;if(!R||typeof R!="object"||Array.isArray(R))return;const y=R;if(!Array.isArray(y.variants))return;const $=[...y.variants],ge=$[t];if(!ge?.rule||typeof ge.rule!="object"){pe.error("This variant has no matcher rule to rename.");return}const J=ge.rule,fe=s.trim();Qt(!0);try{if(!fe){if(!Ft(J,i,u)){L(null);return}const Lt=J.__resolveType??"";$[t]={...ge,rule:Ea(J,i,u)};const hn={...i,[a]:{...p,sections:{...y,variants:$}}};await Pe.mutateAsync({blockKey:a,data:hn[a]}),await an(Lt,hn),L(null),S?.();return}const xe=$a(J,i,u);if(!xe){pe.error("Could not read this variant's matcher rule.");return}if(xe.blockKey){await Pe.mutateAsync({blockKey:xe.blockKey,data:It(xe.resolveType,xe.data,fe)}),L(null),S?.();return}const Ae=xn(fe),be=bn(Ae,i);if(be){pe.error(be);return}const ye=It(xe.resolveType,xe.data,fe);let He=null;try{await Pe.mutateAsync({blockKey:Ae,data:ye}),He=Ae,$[t]={...ge,rule:Ka(Ae)},await Pe.mutateAsync({blockKey:a,data:{...p,sections:{...y,variants:$}}}),He=null}catch(Lt){throw He&&await Jt.mutateAsync({blockKey:He}).catch(()=>{}),Lt}L(null),pe.success(`Saved matcher as global block "${fe}"`),S?.()}catch(xe){pe.error(xe instanceof Error?xe.message:"Failed to rename variant")}finally{Qt(!1)}},pn=()=>{ct()},Us=t=>{ke(t),At({inner:t})},Ws=t=>{Ce(t),At({raw:t})},qs=()=>{ke(null),we([])},Ys=()=>Oe(t=>t+1),Js=t=>{if(F){if(t===0){kt.flush(),E(!1),ke(null),Ce(void 0),we([]),Oe(a=>a+1),D?.();return}if(t===1){we([]),Oe(a=>a+1);return}we(Ke.slice(0,t-1)),Oe(a=>a+1);return}if(ve){V(ie.slice(0,t)),K(a=>a+1);return}if(t===0){pn();return}if(t===1){V([]),K(a=>a+1);return}if(et&&t===2){V([]),K(a=>a+1);return}const s=et?2:1;V(ie.slice(0,t-s))};return n.jsxs("div",{className:"flex h-full min-w-0 w-full flex-col",children:[n.jsx("div",{className:"shrink-0",children:Qe||ut||F?n.jsxs("div",{className:Re("border-b px-3 py-2.5",Qe&&"border-global-section/22 bg-global-section/12 dark:bg-global-section/16"),children:[n.jsxs("div",{className:"flex min-w-0 items-center gap-2 overflow-hidden",children:[!ve&&ht&&Ge&&n.jsxs("button",{type:"button",onClick:pn,title:`Editing in variant: ${Ge.label}`,className:Re("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",Ur),children:[n.jsx(Yt,{rule:jt(Ge.rule,o??{},u??void 0),matchers:vt}),n.jsx("span",{className:"max-w-[160px] truncate",children:Ge.label})]}),n.jsx("nav",{"aria-label":"Editing breadcrumb",className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:mn.map((t,s)=>{const a=s===mn.length-1;return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[s>0&&n.jsx(Vn,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>Js(s),title:t,className:Re("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",a?Qe?"font-semibold text-global-section-fg dark:text-global-section-fg-dark":"font-medium text-foreground":Qe?"text-foreground/80":"text-muted-foreground",Qe?"hover:bg-global-section/15":"hover:bg-accent hover:text-accent-foreground"),children:t})]},`${t}-${s}`)})}),Qe&&n.jsxs(st,{children:[n.jsx(at,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(Qa,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),n.jsx(rt,{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."})]}),un&&!et&&!Je?.isHidden&&b&&n.jsx(Cn,{onClick:()=>Mt()})]}),Qe&&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(qr,{pageKey:b,initialName:Fe.name,initialPath:Fe.path,onFieldChange:vs})}),n.jsxs(st,{children:[n.jsx(at,{asChild:!0,children:n.jsx(Ue,{type:"button",variant:"ghost",size:"icon","aria-label":"Edit SEO",className:"size-7 shrink-0",onClick:()=>E(!0),children:n.jsx(Ya,{size:14})})}),n.jsx(rt,{side:"bottom",children:"Edit SEO"})]}),n.jsxs(st,{children:[n.jsx(at,{asChild:!0,children:n.jsx(Ue,{type:"button",variant:"ghost",size:"icon","aria-label":"View JSON",className:"size-7 shrink-0",onClick:()=>N&&b?N(b):me(!0),children:n.jsx(Ja,{size:14})})}),n.jsx(rt,{side:"bottom",children:"View JSON"})]}),n.jsx(Cn,{onClick:fn})]})}),ht&&!ut&&!F&&b&&n.jsx(Ir,{listKey:b,variants:Ve,activeIndex:je,decofile:o??{},meta:u,matchers:vt,onSelect:Bs,onReorder:Fs,onRename:L,onDuplicate:Is,onDelete:zs,onAdd:fn}),F?n.jsx(yt,{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:pt&&b?n.jsx(gr,{rawSeo:Tt,innerSeo:Zt,defaultResolveType:ds,seoSchema:ms,activeResolveType:Pt,seoTypeOptions:us,formResetKey:Ee,siteDefaultSeo:fs,onBreadcrumbChange:we,onPersistRaw:Ws,onInnerChange:Us,onClearForm:qs,onBumpFormKey:Ys}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:"SEO schema not found for this site."})})})}):ut?n.jsxs(yt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[et&&St.length>0&&n.jsxs(n.Fragment,{children:[n.jsx(va,{listKey:`${b??""}:${l??""}`,variants:St.map((t,s)=>({index:s,label:t.label})),selectedIndex:Et,onSelect:ws,onDuplicate:Rs,onDelete:Ns,onRemoveAll:Ds,onReorder:Cs,onAdd:()=>Mt()}),et&&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(vn,{currentRt:_??"",currentLabel:nt($t?.rule),matchers:vt,onSelect:Es}),dn&&$e&&n.jsx("div",{className:"pt-1",children:n.jsx(Nn,{schema:dn,value:$e,onChange:$s,meta:u??void 0,decofile:o,onSaveReferencedBlock:ft,sandbox:gt},`${l??"none"}:${Et}:${_??""}`)})]})]}),n.jsx(Rn,{activeSchema:Vt,formValue:ae,formResetKey:he,onFormChange:tn,onBreadcrumbChange:V,breadcrumbPath:ie,emptyMessage:"No editable fields for this variant.",meta:u,decofile:o,onSaveReferencedBlock:ft,sandbox:gt})]}):ve?n.jsx(yt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx(Rn,{activeSchema:Vt,formValue:ae,formResetKey:he,onFormChange:tn,onBreadcrumbChange:V,breadcrumbPath:ie,emptyMessage:"No editable fields for this global block.",meta:u,decofile:o,onSaveReferencedBlock:ft,sandbox:gt})}):n.jsxs(yt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[ht&&te!==null&&n.jsxs("div",{className:Re("px-3 border-b",B?"pt-3 pb-5 space-y-3":"py-2"),children:[n.jsxs("button",{type:"button",onClick:()=>Z(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":B,children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Variant rule"}),B?n.jsx(Wa,{className:"size-3.5 shrink-0 text-muted-foreground"}):n.jsx(Ha,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),B&&n.jsxs("div",{className:Re("space-y-3",wt&&"pointer-events-none opacity-50"),children:[n.jsx(vn,{currentRt:te,currentLabel:Sn(Ge?.rule,o??{},nt,u??void 0),matchers:vt,onSelect:As}),sn&&Se&&n.jsx("div",{className:"space-y-3",children:n.jsx(Nn,{schema:sn,value:Se,onChange:Ms,meta:u??void 0,decofile:o,onSaveReferencedBlock:ft,sandbox:gt},`${je}:${te??""}`)})]})]}),n.jsx("div",{className:"p-2 pt-3",children:n.jsx(Ar,{listKey:`${b??""}-${je}`,rawSections:U,sections:Ne,meta:u,selectedIndex:l,onSelect:gs,onReorder:Ss,onDelete:xs,onDuplicate:bs,onMakeReusable:X,onToggleHidden:ys,onToggleLazy:js,onAddVariant:Mt,onDetach:_s,onAddSection:()=>ee(!0),canAddSection:Ps})})]}),n.jsx(Sa,{open:ce!==null,onOpenChange:t=>{t||X(null)},defaultBlockId:ce!==null?xn(Ne[ce]?.label??""):"",isPending:Pe.isPending,onSubmit:Ts}),d&&n.jsx(br,{open:G,onOpenChange:ee,meta:u,decofile:o,previewBaseUrl:d,onSelect:ks}),ne&&b&&o&&n.jsx(xa,{open:ne,onOpenChange:me,pageKey:b,decofile:o}),Y!==null&&n.jsx(Er,{open:!0,initialName:Ft(Ve[Y]?.rule,o??{},u??void 0)?Sn(Ve[Y]?.rule,o??{},nt,u??void 0):"",autoLabel:nt(jt(Ve[Y]?.rule,o??{},u??void 0)),isPending:wt,onSubmit:async t=>{await Hs(Y,t)},onOpenChange:t=>{!t&&!wt&&L(null)}})]})}export{Tl as SectionsEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CIG_nA03.js","assets/index-6Ms5icf_.js","assets/index-BBz2M403.css","assets/XCircle-8JtBxZfD.js","assets/CheckCircle-DuFphk_L.js","assets/Settings02-Dq2L1eRV.js","assets/use-mcp-client-B1D2WVEt.js","assets/auth-C512TjMm.js","assets/useInfiniteQuery-BWsroIps.js","assets/use-infinite-scroll-By--Xgf5.js","assets/studio-tools-Dc1p1o3l.js","assets/badge-C4plLe5t.js","assets/input-D8vyZlmq.js","assets/dropdown-menu-DVBbKPWb.js","assets/ChevronUp-BF12r_5T.js","assets/ChevronRight-Dwj0GLk6.js","assets/DotsVertical-CrxHFBG_.js","assets/table-DJEimqTh.js","assets/toggle-group-VEpLQl2Q.js","assets/use-view-mode-CPVAjUN-.js","assets/use-mobile-47bis9AY.js","assets/FilterLines-BAwKn3mF.js","assets/Globe01-DHIJpR1n.js","assets/SearchMd-9JqOx0vf.js","assets/dialog-BaTe3e0i.js","assets/X-qJIM3wpw.js","assets/AlertCircle-a-vR_1FH.js","assets/Upload01-3eA1Ncxz.js","assets/alert-dialog-07-YnAaX.js","assets/card-BfPYpJZg.js","assets/Trash01-Bwi4fXvt.js","assets/label-Dd5fDeWg.js","assets/select-a9ufxSlc.js","assets/tooltip-CmT4sPVG.js","assets/ChevronDown-C2BfMFj-.js","assets/switch-47Tp9h8M.js","assets/textarea-DpEKguHm.js","assets/checkbox-CWuh092s.js","assets/Eye-BP9Sfn-G.js","assets/LinkExternal01-ByHnE064.js","assets/use-copy-BoyDG3RO.js","assets/Key01-dSck2fXn.js","assets/Plus-Cu5Qx9bH.js","assets/mcp-oauth-6Qawf9vM.js","assets/Play-CkF-LSWc.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,am as f}from"./index-6Ms5icf_.js";import{R as u}from"./require-capability-BpRcFa8Q.js";import"./use-capability-F7EUba-q.js";import"./access-gate-eByItBIe.js";import"./capability-load-error-Pc0KmQA1.js";const g=l.lazy(()=>f(()=>import("./registry-layout-CIG_nA03.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])));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-By--Xgf5.js";import{cJ as i}from"./index-6Ms5icf_.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-By--Xgf5.js";import{cJ as u,aC as n}from"./index-6Ms5icf_.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|