decocms 3.108.0 → 3.110.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-CXfHCFxW.js → AlertCircle-3a42Y32Q.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-DrIFBuVF.js → ArrowUpRight-kXfJCOtG.js} +1 -1
- package/dist/client/assets/{CheckCircle-V4cMbp7k.js → CheckCircle-n8jdawLU.js} +1 -1
- package/dist/client/assets/{ChevronDown-yYhj5xP_.js → ChevronDown-G62nfa2N.js} +1 -1
- package/dist/client/assets/{ChevronLeft-eYxyU36o.js → ChevronLeft-BFEbzxr2.js} +1 -1
- package/dist/client/assets/{ChevronRight-B69CKZdN.js → ChevronRight-_-iVnMDM.js} +1 -1
- package/dist/client/assets/{ChevronUp-BYmO7ni8.js → ChevronUp-CvLg0JD0.js} +1 -1
- package/dist/client/assets/{DotsVertical-OVel04b-.js → DotsVertical-Cwultgek.js} +1 -1
- package/dist/client/assets/{Eye-DJDSbP4d.js → Eye-DvWAO5gf.js} +1 -1
- package/dist/client/assets/{FilterLines-Ch9sNilm.js → FilterLines-BHkqBGr7.js} +1 -1
- package/dist/client/assets/{Globe01-YUd_dhFu.js → Globe01-CDttDk96.js} +1 -1
- package/dist/client/assets/{Globe04-Bn_dGrXD.js → Globe04-DB_Sdapa.js} +1 -1
- package/dist/client/assets/{HardDrive-i1NQBY0F.js → HardDrive-DMH3VLW5.js} +1 -1
- package/dist/client/assets/{Key01-CzuZ2YNH.js → Key01-PPoquOD0.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DQ4hyaOy.js → LayoutLeft-Ddkt9171.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CUaKk4PO.js → LinkExternal01-CfgaruN6.js} +1 -1
- package/dist/client/assets/{Monitor01-BMQf5bju.js → Monitor01-DH6AP0w9.js} +1 -1
- package/dist/client/assets/{Palette-DVMpwycK.js → Palette-FlQGtYwX.js} +1 -1
- package/dist/client/assets/{Play-Da7BpsHX.js → Play-ehXX0Q38.js} +1 -1
- package/dist/client/assets/{Plus-DLu0p3LB.js → Plus-Dx_wxVWe.js} +1 -1
- package/dist/client/assets/{SearchLg-BG10mFZp.js → SearchLg-C7qnbpDa.js} +1 -1
- package/dist/client/assets/{SearchMd-TgGSUo83.js → SearchMd-BLh-9N8v.js} +1 -1
- package/dist/client/assets/{Settings02-C_i5syXv.js → Settings02-DQ036CAG.js} +1 -1
- package/dist/client/assets/{Shield01-DWhnEyqf.js → Shield01-CjUxgjnh.js} +1 -1
- package/dist/client/assets/{Star01-DIQdWhPq.js → Star01-BDb11yyu.js} +1 -1
- package/dist/client/assets/{Stars01-D34hqc6C.js → Stars01-VH93BVY_.js} +1 -1
- package/dist/client/assets/{Stars02-C1ilg1eR.js → Stars02-jjLUIqwc.js} +1 -1
- package/dist/client/assets/{Sun-DPvbuD5f.js → Sun-BuMidyKX.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-Bp6ZXj5h.js → SwitchHorizontal01-3qBzKHi7.js} +1 -1
- package/dist/client/assets/{Tool01--3NfnsTB.js → Tool01-D8z2EmLx.js} +1 -1
- package/dist/client/assets/{Trash01-BktfczUu.js → Trash01-wsF4DycC.js} +1 -1
- package/dist/client/assets/{Upload01-BWZGJ0bu.js → Upload01-Dq8q0rQz.js} +1 -1
- package/dist/client/assets/{User01-BE-MaNNT.js → User01-Ddj-LeQV.js} +1 -1
- package/dist/client/assets/{Users01-DRAatqmi.js → Users01-DwZAeWye.js} +1 -1
- package/dist/client/assets/{Users03-DNP40ou1.js → Users03-DnUEh8JP.js} +1 -1
- package/dist/client/assets/{X-D4V_xKxB.js → X-DRAd27QV.js} +1 -1
- package/dist/client/assets/{XCircle-Zk6uYFNc.js → XCircle-DEac6B60.js} +1 -1
- package/dist/client/assets/{XClose-CJbbgFu-.js → XClose-DoitZjeT.js} +1 -1
- package/dist/client/assets/{Zap-DOCsW5bs.js → Zap-BeCXSxio.js} +1 -1
- package/dist/client/assets/{ZapSquare-ZiXXTR85.js → ZapSquare-CxU3wnk2.js} +1 -1
- package/dist/client/assets/{ZoomOut-CBydRAMI.js → ZoomOut-CXIIR5Xs.js} +1 -1
- package/dist/client/assets/{access-gate-Bsc7QUw1.js → access-gate-dSU8i6d5.js} +1 -1
- package/dist/client/assets/{add-section-modal-DxNRWOxr.js → add-section-modal-pvZF0M9Y.js} +1 -1
- package/dist/client/assets/{agent-icon-Codzh2dR.js → agent-icon-z9a7P-VJ.js} +1 -1
- package/dist/client/assets/{agents-list-D9ga9IUz.js → agents-list-nY8NLyGz.js} +1 -1
- package/dist/client/assets/{ai-providers-BzO5It1w.js → ai-providers-Dn_-maPJ.js} +1 -1
- package/dist/client/assets/{alert-dialog-Cey7j4CE.js → alert-dialog-6mhzPWM-.js} +1 -1
- package/dist/client/assets/{alert-B08OvpyD.js → alert-eW0A0Ad6.js} +1 -1
- package/dist/client/assets/app-editor-C-SvUqpt.js +1 -0
- package/dist/client/assets/{auth-D-VB6PXw.js → auth-DI4UdzcA.js} +1 -1
- package/dist/client/assets/{auth-catchall-dvMxAJYZ.js → auth-catchall-CrPnwWxI.js} +1 -1
- package/dist/client/assets/{auth-entry-Sc8ZEToz.js → auth-entry-CUC-1yt-.js} +1 -1
- package/dist/client/assets/{auth-split-layout-D1BIRB9g.js → auth-split-layout-Dp-cvbwA.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CIVGnsAG.js → authenticate-and-persist-oauth-DFUhqBKz.js} +1 -1
- package/dist/client/assets/{automation-list-row-7n10xHBN.js → automation-list-row-CsXsL2m3.js} +1 -1
- package/dist/client/assets/{automation-runs-DsB-LYLH.js → automation-runs-FRZz1Jxo.js} +1 -1
- package/dist/client/assets/{automations-BPKkcs0G.js → automations-D-kCfyB-.js} +1 -1
- package/dist/client/assets/{avatar-D50rXO9q.js → avatar-B1XYxCEI.js} +1 -1
- package/dist/client/assets/{badge-DuPrh-k9.js → badge-BENqSIMW.js} +1 -1
- package/dist/client/assets/{block-document-By66RUPt.js → block-document-D447TgwM.js} +1 -1
- package/dist/client/assets/{brand-context-4Vmk5sXu.js → brand-context-5lPcZBdC.js} +1 -1
- package/dist/client/assets/{buckets-aEEOw89Q.js → buckets-Duo7UnZq.js} +1 -1
- package/dist/client/assets/bulk-category-panel-CsLa0pfY.js +1 -0
- package/dist/client/assets/{capability-load-error-CKrEiZ0g.js → capability-load-error-BbpMI8qO.js} +1 -1
- package/dist/client/assets/{card-CSk11DrN.js → card-cvfFGOFn.js} +1 -1
- package/dist/client/assets/category-editor-CvGgeomu.js +1 -0
- package/dist/client/assets/{chat-context-CYJD3lpS.js → chat-context-BYQB5zQ3.js} +1 -1
- package/dist/client/assets/{checkbox-DhghRz0V.js → checkbox-CExBS06F.js} +1 -1
- package/dist/client/assets/{cli-auth-success-C7Z3uy0J.js → cli-auth-success-B1qAPb3J.js} +1 -1
- package/dist/client/assets/collection-detail-CsIeWL-Q.js +1 -0
- package/dist/client/assets/{collection-display-button-BjZ3KkPT.js → collection-display-button-CfHHbXGO.js} +1 -1
- package/dist/client/assets/{collection-search-3g2v_4Ig.js → collection-search-VqRze0Jz.js} +1 -1
- package/dist/client/assets/{collection-tabs-NH0QHVtb.js → collection-tabs-BPPqRvP7.js} +1 -1
- package/dist/client/assets/{command-DuFRSin9.js → command-C2FYWVqe.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-Fg1zVI63.js → commerce-onboarding-pQ4pxRKH.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-C4RGGomP.js → connect-desktop-dialog-BCCJMJVg.js} +1 -1
- package/dist/client/assets/{connection-card-Bxwr78j_.js → connection-card-DxDSEKb0.js} +1 -1
- package/dist/client/assets/connection-detail-3-BysWH5.js +1 -0
- package/dist/client/assets/{connection-form-helpers-N3pDB096.js → connection-form-helpers-Bfw04B7m.js} +1 -1
- package/dist/client/assets/{connections-C-pSski3.js → connections-BQhJ97tw.js} +1 -1
- package/dist/client/assets/{context-menu-D_t5y3rp.js → context-menu-DD5eZv-o.js} +1 -1
- package/dist/client/assets/{decopilot-D2kjmvQ8.js → decopilot-Dr8wUhH8.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DaS9jANP.js → decopilot-sse-pool-D0AHvthA.js} +1 -1
- package/dist/client/assets/{dialog-59pZJLRI.js → dialog-DI9uZOw1.js} +1 -1
- package/dist/client/assets/{domain-settings-B_IJ176N.js → domain-settings-DldUFjmA.js} +1 -1
- package/dist/client/assets/{drawer-CardDBvQ.js → drawer-BpieeJCx.js} +1 -1
- package/dist/client/assets/{dropdown-menu-KRYgKsut.js → dropdown-menu-DXo7FbtM.js} +1 -1
- package/dist/client/assets/{empty-state-DdjF8vs8.js → empty-state-DW4CjYnI.js} +1 -1
- package/dist/client/assets/{extract-connection-data-C3rg-zH0.js → extract-connection-data-CWyRtB18.js} +1 -1
- package/dist/client/assets/file-explorer-CRJd0jPm.js +2 -0
- package/dist/client/assets/{file-type-icon-DE5lANHh.js → file-type-icon-r28WvKg7.js} +1 -1
- package/dist/client/assets/{files-ChV7PLN8.js → files-C8-d4s_6.js} +1 -1
- package/dist/client/assets/{form-D9GCz4p7.js → form-Bz2znigu.js} +1 -1
- package/dist/client/assets/{general-Dt3BDK6z.js → general-DgTxonnC.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CH_d9yqP.js → github-repo-picker-8V-SSku2.js} +1 -1
- package/dist/client/assets/{hooks-DXPWHoBZ.js → hooks-E0hrfxwb.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-CaK-LsBV.js → import-from-deco-dialog-B84yppT8.js} +1 -1
- package/dist/client/assets/index-AuYmUEf7.js +1 -0
- package/dist/client/assets/{index-DxlSlPki.js → index-B0e3q3tq.js} +1 -1
- package/dist/client/assets/{index-clvydX21.js → index-B2gsdQaf.js} +1 -1
- package/dist/client/assets/{index-BRTT5sEO.js → index-B6lhx2Nx.js} +1 -1
- package/dist/client/assets/{index-DEb9cZMY.js → index-BCtvMzkJ.js} +1 -1
- package/dist/client/assets/{index-D7FZbpdh.js → index-BHCX-9ZH.js} +1 -1
- package/dist/client/assets/{index-CUeWfuiR.js → index-CT2vaQmC.js} +1 -1
- package/dist/client/assets/index-Cer6DaC0.js +503 -0
- package/dist/client/assets/index-D5onFusR.css +1 -0
- package/dist/client/assets/{index-DHU91und.js → index-DfC-bGLv.js} +1 -1
- package/dist/client/assets/{index-kan1E63X.js → index-NHU49YBK.js} +3 -3
- package/dist/client/assets/{index-BkE4vJGC.js → index-YA3tOhz8.js} +1 -1
- package/dist/client/assets/{index-K4SWWTMm.js → index-cH88pHf5.js} +1 -1
- package/dist/client/assets/{index-C3LTWsPC.js → index-nEYHKdqS.js} +1 -1
- package/dist/client/assets/{index-redirect-K7OU_kx0.js → index-redirect-o4wKabTo.js} +1 -1
- package/dist/client/assets/{index-B0PhVd0n.js → index-tdWeLBAc.js} +1 -1
- package/dist/client/assets/{input-CWK_KDxP.js → input-BM2AMR43.js} +1 -1
- package/dist/client/assets/{integration-icon-C9tNQbt4.js → integration-icon-B5YbyPfI.js} +1 -1
- package/dist/client/assets/{label-CShBo-xr.js → label-D5BdX0dr.js} +1 -1
- package/dist/client/assets/{login-CLs68272.js → login-D3BUvM2g.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CRmn6hwI.js → mcp-oauth-CELJ6lWl.js} +1 -1
- package/dist/client/assets/{members-CX3tAqjr.js → members-BR4dIeq1.js} +1 -1
- package/dist/client/assets/{monaco-editor-DCdpc6i0.js → monaco-editor-jmD3XQpJ.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CadxzAo4.js → monitoring-stats-row-_Kz_Cagz.js} +1 -1
- package/dist/client/assets/{oauth-callback-CjuKHJXG.js → oauth-callback-0EduvBqB.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BWRJmgDm.js → oauth-callback-ai-provider-Cw0JfGXH.js} +1 -1
- package/dist/client/assets/{onboarding-red4rHCD.js → onboarding-FtnThbkI.js} +1 -1
- package/dist/client/assets/{org-install-Bsn3y6Z3.js → org-install-CQkZOnCg.js} +1 -1
- package/dist/client/assets/{org-layout-al_5BNwo.js → org-layout-B4ew0nrf.js} +1 -1
- package/dist/client/assets/{organization-choice-DJNr5D-D.js → organization-choice-DOuEChRE.js} +1 -1
- package/dist/client/assets/{page-seo-form-BuiEAYj4.js → page-seo-form-CmDnFXj0.js} +1 -1
- package/dist/client/assets/page-seo-sheet-gHrDU_lX.js +1 -0
- package/dist/client/assets/{popover-Dhad0x9g.js → popover-CgDHu-zS.js} +1 -1
- package/dist/client/assets/post-editor-qeX4BlSI.js +1 -0
- package/dist/client/assets/{preview-dialog-BvNzeY3T.js → preview-dialog-D5E4FgCw.js} +1 -1
- package/dist/client/assets/{primitives-Dr1eHlQS.js → primitives-DzrgzW9n.js} +1 -1
- package/dist/client/assets/{profile-e6Bm5lWR.js → profile-Czu4XqTy.js} +1 -1
- package/dist/client/assets/project-app-view-DN3elPYd.js +1 -0
- package/dist/client/assets/record-editor-BH8xIS6B.js +1 -0
- package/dist/client/assets/registry-BZrOa-jA.js +2 -0
- package/dist/client/assets/{registry-layout-CymZuomq.js → registry-layout-DRn7mFJE.js} +1 -1
- package/dist/client/assets/{require-capability-B1rUcboM.js → require-capability-CvAULB3o.js} +1 -1
- package/dist/client/assets/{required-auth-layout-s2Bxat9U.js → required-auth-layout-CVZjAF6p.js} +1 -1
- package/dist/client/assets/{reset-password-DY5g84O-.js → reset-password-GiIibj_X.js} +1 -1
- package/dist/client/assets/{roles-Iy3MXVa3.js → roles-25LF7sLR.js} +1 -1
- package/dist/client/assets/{scroll-area-Xtfwdb7m.js → scroll-area-DFJYrpdW.js} +1 -1
- package/dist/client/assets/{search-input-DQ6UrvBE.js → search-input-DMv2zQbT.js} +1 -1
- package/dist/client/assets/{secrets-CIe2s2f1.js → secrets-EJqX3Y8_.js} +1 -1
- package/dist/client/assets/sections-editor-DpUaA-UK.js +2 -0
- package/dist/client/assets/{select-Do7P1LSG.js → select-DTXnEmNM.js} +1 -1
- package/dist/client/assets/{select-model-DlSLJO4Y.js → select-model-D-GnzJTk.js} +1 -1
- package/dist/client/assets/seo-editor-aNxCjIBb.js +1 -0
- package/dist/client/assets/{settings-layout-BEHXbjxx.js → settings-layout-zuxw_LPF.js} +1 -1
- package/dist/client/assets/{settings-section-ZqpVSrVJ.js → settings-section-C05qMf5J.js} +1 -1
- package/dist/client/assets/{sheet-CwpMGMQ9.js → sheet-Cm9vy-is.js} +1 -1
- package/dist/client/assets/{shell-controls-DROWNa_M.js → shell-controls-BJYHrPZL.js} +1 -1
- package/dist/client/assets/{shell-layout-BBvvEdo0.js → shell-layout-B3LSdloo.js} +1 -1
- package/dist/client/assets/{shell-route-loading-XVhs5R31.js → shell-route-loading-BHxQVa3P.js} +1 -1
- package/dist/client/assets/{sidebar-DS_youLc.js → sidebar-CUCRALlI.js} +1 -1
- package/dist/client/assets/{skeleton-Bvrl2WPh.js → skeleton-Dhj_RMRP.js} +1 -1
- package/dist/client/assets/{sortable.esm-LdSILUfx.js → sortable.esm-D8Xq7o-p.js} +2 -2
- package/dist/client/assets/{sso-c2vK4RMY.js → sso-COCP_Ig_.js} +1 -1
- package/dist/client/assets/{store-DoxveVdc.js → store-DNNf9CWj.js} +1 -1
- package/dist/client/assets/store-registry-DKlw16c3.js +2 -0
- package/dist/client/assets/{studio-tools-BMwxp5pS.js → studio-tools-B3ETtzpq.js} +1 -1
- package/dist/client/assets/{switch-H7aX0suB.js → switch-yQ4MeBWb.js} +1 -1
- package/dist/client/assets/{table-qhDDbEpO.js → table-FMe6hb4W.js} +1 -1
- package/dist/client/assets/{tabs-B6eIa2zt.js → tabs-ByKhbrL3.js} +1 -1
- package/dist/client/assets/{task-status-D9utHgZw.js → task-status-CKBnAgo0.js} +1 -1
- package/dist/client/assets/{textarea-PSzbbOkb.js → textarea-C2v8p5Q_.js} +1 -1
- package/dist/client/assets/{toggle-group-Bz1hQE3a.js → toggle-group-DRPAcqSk.js} +1 -1
- package/dist/client/assets/{toolbar-DCCrTBZW.js → toolbar-BHV_OeGM.js} +1 -1
- package/dist/client/assets/tools-list-DRrZln_E.js +1 -0
- package/dist/client/assets/{tooltip-Ct27xL12.js → tooltip-DNOJd4mB.js} +1 -1
- package/dist/client/assets/{types-BwDuw3G9.js → types-D8ya3q3L.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DFaFMw_I.js → use-ai-providers-CNL3O4hK.js} +1 -1
- package/dist/client/assets/{use-automations-uZj9fR0Z.js → use-automations-Cb4DxEgv.js} +1 -1
- package/dist/client/assets/{use-capability-CSJPfpi0.js → use-capability-Dok_Iq_h.js} +1 -1
- package/dist/client/assets/{use-clock-tick-uQ0gKwJZ.js → use-clock-tick-BHfy0ujs.js} +1 -1
- package/dist/client/assets/{use-collections-B6Y5SE5i.js → use-collections-D-agNER0.js} +1 -1
- package/dist/client/assets/{use-connection-CCYwDyNR.js → use-connection-D5Yn6X1k.js} +1 -1
- package/dist/client/assets/{use-copy-Y55SDaZL.js → use-copy-BYD2opl9.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CuoNkLte.js → use-create-virtual-mcp-D6uaYgOg.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BL-N3Gnu.js → use-debounced-autosave-EQlvKcut.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DpZKy_Iw.js → use-debounced-value-D2OoRIdo.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-EyZW0ScP.js → use-decopilot-events-T9FNzBJ-.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CPSKVnox.js → use-delete-connection-4o5XFeP8.js} +1 -1
- package/dist/client/assets/{use-file-configs-hHuL8QEC.js → use-file-configs-kMgI5hml.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BW9P8xBl.js → use-infinite-scroll-Bv5wQ7Wg.js} +1 -1
- package/dist/client/assets/{use-join-requests-CTzuXwK-.js → use-join-requests-C-31y_Ou.js} +1 -1
- package/dist/client/assets/{use-mcp-client-B0s_8EVJ.js → use-mcp-client-BGOUlx-P.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-C9WyhCpr.js → use-mcp-prompts-CRVg9LFk.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BTQ51TI6.js → use-mcp-tools-C8njypSm.js} +1 -1
- package/dist/client/assets/{use-members-Cho9vXKF.js → use-members-CEkjXPIb.js} +1 -1
- package/dist/client/assets/{use-mobile-CHScOeMy.js → use-mobile-BdtUaG2t.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BLrW4hmi.js → use-navigate-to-agent-0B1rE19_.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-T24QkUeZ.js → use-org-auth-client-BfIW_pQg.js} +1 -1
- package/dist/client/assets/{use-org-fs-BbjnF7sq.js → use-org-fs-CXhVHffG.js} +1 -1
- package/dist/client/assets/{use-org-sso-CoPgbTky.js → use-org-sso-D4XCcGiP.js} +1 -1
- package/dist/client/assets/{use-organization-roles-uXtY0vKk.js → use-organization-roles-DvgOklyZ.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BdRr72qh.js → use-organization-settings-D3N4P1sO.js} +1 -1
- package/dist/client/assets/{use-registry-connections-HtzalUOh.js → use-registry-connections-BerlzPAj.js} +1 -1
- package/dist/client/assets/{use-secrets-CnXSg99O.js → use-secrets-BqevFm2t.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CFfhXfZc.js → use-status-sounds-CjYwKkX8.js} +1 -1
- package/dist/client/assets/{use-view-mode-1gUAJUA2.js → use-view-mode-BhlKr6oi.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BN8buKcT.js → use-virtual-mcp-CE3-zMFE.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-D57fVIoS.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DEsj7KSO.js +1 -0
- package/dist/client/assets/{useSuspenseQueries-qD79q_C-.js → useSuspenseQueries-C75zNcpN.js} +1 -1
- package/dist/client/assets/{variant-calendar-D0oFAKUu.js → variant-calendar-OqJgLmkv.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-PleSLbFB.js → view-mode-toggle-CFNxBK9n.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +39 -23
- package/package.json +1 -1
- package/dist/client/assets/app-editor-B_z3STUJ.js +0 -1
- package/dist/client/assets/category-editor-C8SeZ2oM.js +0 -1
- package/dist/client/assets/collection-detail-27aQ6HrN.js +0 -1
- package/dist/client/assets/connection-detail-CnruFFRa.js +0 -1
- package/dist/client/assets/file-explorer-Dbf1GYee.js +0 -2
- package/dist/client/assets/index-BADtduG9.css +0 -1
- package/dist/client/assets/index-BNIB-FKU.js +0 -1
- package/dist/client/assets/index-CU99baeo.js +0 -503
- package/dist/client/assets/page-seo-sheet-CCQj63mK.js +0 -1
- package/dist/client/assets/post-editor-BQmK2uFu.js +0 -1
- package/dist/client/assets/project-app-view-DYSfhAgu.js +0 -1
- package/dist/client/assets/record-editor-bF_UstVB.js +0 -1
- package/dist/client/assets/registry-Dm6eGhVz.js +0 -2
- package/dist/client/assets/sections-editor-DsFaeF53.js +0 -2
- package/dist/client/assets/seo-editor-Shj7XB4v.js +0 -1
- package/dist/client/assets/store-registry-BNTE3Ckc.js +0 -2
- package/dist/client/assets/useInfiniteQuery-D-FFXkXU.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BfIitBar.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as it,r as E,j as e,i as rt}from"./index-kan1E63X.js";import{S as mt,b as pt,c as st,d as at}from"./sheet-CwpMGMQ9.js";import{S as nt}from"./scroll-area-Xtfwdb7m.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-BuiEAYj4.js";import{p as xt}from"./index-CU99baeo.js";import"./X-D4V_xKxB.js";import"./agent-icon-Codzh2dR.js";import"./AlertCircle-CXfHCFxW.js";import"./Tool01--3NfnsTB.js";import"./SwitchHorizontal01-Bp6ZXj5h.js";import"./Settings02-C_i5syXv.js";import"./XCircle-Zk6uYFNc.js";import"./ArrowUpRight-DrIFBuVF.js";import"./ZapSquare-ZiXXTR85.js";import"./Users03-DNP40ou1.js";import"./CheckCircle-V4cMbp7k.js";import"./ChevronUp-BYmO7ni8.js";import"./ChevronDown-yYhj5xP_.js";import"./ChevronLeft-eYxyU36o.js";import"./ChevronRight-B69CKZdN.js";import"./DotsVertical-OVel04b-.js";import"./Stars02-C1ilg1eR.js";import"./Eye-DJDSbP4d.js";import"./ZoomOut-CBydRAMI.js";import"./Globe01-YUd_dhFu.js";import"./FilterLines-Ch9sNilm.js";import"./Star01-DIQdWhPq.js";import"./Globe04-Bn_dGrXD.js";import"./HardDrive-i1NQBY0F.js";import"./Key01-CzuZ2YNH.js";import"./LayoutLeft-DQ4hyaOy.js";import"./LinkExternal01-CUaKk4PO.js";import"./Monitor01-BMQf5bju.js";import"./Sun-DPvbuD5f.js";import"./Palette-DVMpwycK.js";import"./Play-Da7BpsHX.js";import"./Plus-DLu0p3LB.js";import"./SearchLg-BG10mFZp.js";import"./SearchMd-TgGSUo83.js";import"./Shield01-DWhnEyqf.js";import"./Stars01-D34hqc6C.js";import"./Trash01-BktfczUu.js";import"./Upload01-BWZGJ0bu.js";import"./User01-BE-MaNNT.js";import"./Users01-DRAatqmi.js";import"./XClose-CJbbgFu-.js";import"./Zap-DOCsW5bs.js";import"./use-clock-tick-uQ0gKwJZ.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Y55SDaZL.js";import"./tooltip-Ct27xL12.js";import"./file-type-icon-DE5lANHh.js";import"./dialog-59pZJLRI.js";import"./use-mobile-CHScOeMy.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-BwDuw3G9.js";import"./use-mcp-client-B0s_8EVJ.js";import"./auth-D-VB6PXw.js";import"./chat-context-CYJD3lpS.js";import"./hooks-DXPWHoBZ.js";import"./decopilot-sse-pool-DaS9jANP.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-BN8buKcT.js";import"./use-collections-B6Y5SE5i.js";import"./use-ai-providers-DFaFMw_I.js";import"./studio-tools-BMwxp5pS.js";import"./use-decopilot-events-EyZW0ScP.js";import"./use-organization-settings-BdRr72qh.js";import"./shell-layout-BBvvEdo0.js";import"./avatar-D50rXO9q.js";import"./required-auth-layout-s2Bxat9U.js";import"./use-org-sso-CoPgbTky.js";import"./integration-icon-C9tNQbt4.js";import"./use-navigate-to-agent-BLrW4hmi.js";import"./use-connection-CCYwDyNR.js";import"./use-mcp-prompts-C9WyhCpr.js";import"./form-D9GCz4p7.js";import"./label-CShBo-xr.js";import"./input-CWK_KDxP.js";import"./select-Do7P1LSG.js";import"./switch-H7aX0suB.js";import"./index-D7FZbpdh.js";import"./drawer-CardDBvQ.js";import"./collection-search-3g2v_4Ig.js";import"./tabs-B6eIa2zt.js";import"./toggle-group-Bz1hQE3a.js";import"./sortable.esm-LdSILUfx.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-Bxwr78j_.js";import"./use-registry-connections-HtzalUOh.js";import"./useInfiniteQuery-D-FFXkXU.js";import"./use-infinite-scroll-BW9P8xBl.js";import"./extract-connection-data-C3rg-zH0.js";import"./card-CSk11DrN.js";import"./collection-tabs-NH0QHVtb.js";import"./badge-DuPrh-k9.js";import"./textarea-PSzbbOkb.js";import"./connection-form-helpers-N3pDB096.js";import"./authenticate-and-persist-oauth-CIVGnsAG.js";import"./mcp-oauth-CRmn6hwI.js";import"./useSuspenseInfiniteQuery-BfIitBar.js";import"./connect-desktop-dialog-C4RGGomP.js";import"./decopilot-D2kjmvQ8.js";import"./checkbox-DhghRz0V.js";import"./skeleton-Bvrl2WPh.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-ZqpVSrVJ.js";import"./popover-Dhad0x9g.js";import"./command-DuFRSin9.js";import"./index-BRTT5sEO.js";import"./use-org-fs-BbjnF7sq.js";import"./dropdown-menu-KRYgKsut.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CFfhXfZc.js";import"./empty-state-DdjF8vs8.js";import"./toolbar-DCCrTBZW.js";import"./preview-dialog-BvNzeY3T.js";import"./index-DHU91und.js";import"./use-mcp-tools-BTQ51TI6.js";import"./use-capability-CSJPfpi0.js";import"./shell-route-loading-XVhs5R31.js";import"./index-BNIB-FKU.js";import"./alert-dialog-Cey7j4CE.js";import"./use-debounced-autosave-BL-N3Gnu.js";import"./index-CUeWfuiR.js";import"./sidebar-DS_youLc.js";import"./search-input-DQ6UrvBE.js";import"./github-repo-picker-CH_d9yqP.js";import"./use-debounced-value-DpZKy_Iw.js";import"./use-secrets-CnXSg99O.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-PleSLbFB.js";import"./automation-runs-DsB-LYLH.js";import"./table-qhDDbEpO.js";import"./use-members-Cho9vXKF.js";import"./use-org-auth-client-T24QkUeZ.js";import"./task-status-D9utHgZw.js";import"./use-automations-uZj9fR0Z.js";import"./use-file-configs-hHuL8QEC.js";import"./monaco-editor-DCdpc6i0.js";import"./select-model-DlSLJO4Y.js";import"./automation-list-row-7n10xHBN.js";function mi(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{mi as SeoSheet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as H,j as t,B as Z}from"./index-kan1E63X.js";import{n as ee}from"./LinkExternal01-CUaKk4PO.js";import{aB as te,t as oe}from"./agent-icon-Codzh2dR.js";import{I as J}from"./input-CWK_KDxP.js";import{L as G}from"./label-CShBo-xr.js";import{M as ie}from"./automation-runs-DsB-LYLH.js";import{T as Q,a as se,b as W,c as le}from"./tabs-B6eIa2zt.js";import{T as re}from"./textarea-PSzbbOkb.js";import{au as ae,av as me,at as pe,aw as ne,ax as ce,ay as de,az as fe}from"./index-CU99baeo.js";import{b as ue,a as xe,B as he}from"./block-document-By66RUPt.js";import{u as ge,s as F,E as ve,R as ye,A as je}from"./primitives-Dr1eHlQS.js";import"./AlertCircle-CXfHCFxW.js";import"./Tool01--3NfnsTB.js";import"./SwitchHorizontal01-Bp6ZXj5h.js";import"./Settings02-C_i5syXv.js";import"./XCircle-Zk6uYFNc.js";import"./ArrowUpRight-DrIFBuVF.js";import"./ZapSquare-ZiXXTR85.js";import"./Users03-DNP40ou1.js";import"./CheckCircle-V4cMbp7k.js";import"./ChevronUp-BYmO7ni8.js";import"./ChevronDown-yYhj5xP_.js";import"./ChevronLeft-eYxyU36o.js";import"./ChevronRight-B69CKZdN.js";import"./DotsVertical-OVel04b-.js";import"./Stars02-C1ilg1eR.js";import"./Eye-DJDSbP4d.js";import"./ZoomOut-CBydRAMI.js";import"./Globe01-YUd_dhFu.js";import"./FilterLines-Ch9sNilm.js";import"./Star01-DIQdWhPq.js";import"./Globe04-Bn_dGrXD.js";import"./HardDrive-i1NQBY0F.js";import"./Key01-CzuZ2YNH.js";import"./LayoutLeft-DQ4hyaOy.js";import"./Monitor01-BMQf5bju.js";import"./Sun-DPvbuD5f.js";import"./Palette-DVMpwycK.js";import"./Play-Da7BpsHX.js";import"./Plus-DLu0p3LB.js";import"./SearchLg-BG10mFZp.js";import"./SearchMd-TgGSUo83.js";import"./Shield01-DWhnEyqf.js";import"./Stars01-D34hqc6C.js";import"./Trash01-BktfczUu.js";import"./Upload01-BWZGJ0bu.js";import"./User01-BE-MaNNT.js";import"./Users01-DRAatqmi.js";import"./XClose-CJbbgFu-.js";import"./X-D4V_xKxB.js";import"./Zap-DOCsW5bs.js";import"./useInfiniteQuery-D-FFXkXU.js";import"./use-infinite-scroll-BW9P8xBl.js";import"./use-connection-CCYwDyNR.js";import"./use-collections-B6Y5SE5i.js";import"./use-mcp-client-B0s_8EVJ.js";import"./auth-D-VB6PXw.js";import"./use-virtual-mcp-BN8buKcT.js";import"./card-CSk11DrN.js";import"./sheet-CwpMGMQ9.js";import"./table-qhDDbEpO.js";import"./empty-state-DdjF8vs8.js";import"./use-members-Cho9vXKF.js";import"./use-org-auth-client-T24QkUeZ.js";import"./task-status-D9utHgZw.js";import"./use-automations-uZj9fR0Z.js";import"./studio-tools-BMwxp5pS.js";import"./useSuspenseInfiniteQuery-BfIitBar.js";import"./badge-DuPrh-k9.js";import"./select-Do7P1LSG.js";import"./tooltip-Ct27xL12.js";import"./checkbox-DhghRz0V.js";import"./command-DuFRSin9.js";import"./index-BRTT5sEO.js";import"./dialog-59pZJLRI.js";import"./popover-Dhad0x9g.js";import"./avatar-D50rXO9q.js";import"./scroll-area-Xtfwdb7m.js";import"./use-clock-tick-uQ0gKwJZ.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Y55SDaZL.js";import"./file-type-icon-DE5lANHh.js";import"./use-mobile-CHScOeMy.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-BwDuw3G9.js";import"./chat-context-CYJD3lpS.js";import"./hooks-DXPWHoBZ.js";import"./decopilot-sse-pool-DaS9jANP.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-DFaFMw_I.js";import"./use-decopilot-events-EyZW0ScP.js";import"./use-organization-settings-BdRr72qh.js";import"./shell-layout-BBvvEdo0.js";import"./required-auth-layout-s2Bxat9U.js";import"./use-org-sso-CoPgbTky.js";import"./integration-icon-C9tNQbt4.js";import"./use-navigate-to-agent-BLrW4hmi.js";import"./use-mcp-prompts-C9WyhCpr.js";import"./form-D9GCz4p7.js";import"./index-D7FZbpdh.js";import"./drawer-CardDBvQ.js";import"./collection-search-3g2v_4Ig.js";import"./toggle-group-Bz1hQE3a.js";import"./sortable.esm-LdSILUfx.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-Bxwr78j_.js";import"./use-registry-connections-HtzalUOh.js";import"./extract-connection-data-C3rg-zH0.js";import"./collection-tabs-NH0QHVtb.js";import"./connection-form-helpers-N3pDB096.js";import"./authenticate-and-persist-oauth-CIVGnsAG.js";import"./mcp-oauth-CRmn6hwI.js";import"./connect-desktop-dialog-C4RGGomP.js";import"./decopilot-D2kjmvQ8.js";import"./skeleton-Bvrl2WPh.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-ZqpVSrVJ.js";import"./use-org-fs-BbjnF7sq.js";import"./dropdown-menu-KRYgKsut.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CFfhXfZc.js";import"./toolbar-DCCrTBZW.js";import"./preview-dialog-BvNzeY3T.js";import"./index-DHU91und.js";import"./use-mcp-tools-BTQ51TI6.js";import"./use-capability-CSJPfpi0.js";import"./shell-route-loading-XVhs5R31.js";import"./index-BNIB-FKU.js";import"./alert-dialog-Cey7j4CE.js";import"./switch-H7aX0suB.js";import"./use-debounced-autosave-BL-N3Gnu.js";import"./index-CUeWfuiR.js";import"./sidebar-DS_youLc.js";import"./search-input-DQ6UrvBE.js";import"./github-repo-picker-CH_d9yqP.js";import"./use-debounced-value-DpZKy_Iw.js";import"./use-secrets-CnXSg99O.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-PleSLbFB.js";import"./use-file-configs-hHuL8QEC.js";import"./monaco-editor-DCdpc6i0.js";import"./select-model-DlSLJO4Y.js";import"./automation-list-row-7n10xHBN.js";function be(A){return Array.isArray(A)?A.map(e=>({key:F(e?.key),value:F(e?.value)})):[]}function mi(A){const e=H.c(66),{orgSlug:i,virtualMcpId:d,branch:o,blockKey:l,block:p,decofile:m,meta:u,previewBaseUrl:x}=A;let y;e[0]!==o||e[1]!==i||e[2]!==d?(y={orgSlug:i,virtualMcpId:d,branch:o},e[0]=o,e[1]=i,e[2]=d,e[3]=y):y=e[3];const s=ae(y);let n;e[4]!==p?(n=me(p,"posts"),e[4]=p,e[5]=n):n=e[5];const j=n;let b;e[6]!==l||e[7]!==s?(b=T=>{s.mutate({blockKey:l,data:ne(l,"posts",T)})},e[6]=l,e[7]=s,e[8]=b):b=e[8];const[r,_]=ge(j,b);let C;e[9]!==r||e[10]!==_?(C=(T,Y)=>_({...r,[T]:Y}),e[9]=r,e[10]=_,e[11]=C):C=e[11];const h=C;let S;e[12]!==m||e[13]!==r||e[14]!==x?(S=ue({decofile:m,post:r,previewBaseUrl:x}),e[12]=m,e[13]=r,e[14]=x,e[15]=S):S=e[15];const f=S;let a;e[16]!==r.title?(a=F(r.title)||"Untitled post",e[16]=r.title,e[17]=a):a=e[17];let c;e[18]!==a?(c=t.jsx("span",{className:"truncate text-sm font-medium",children:a}),e[18]=a,e[19]=c):c=e[19];let g;e[20]!==s.isError||e[21]!==s.isPending?(g=t.jsx(pe,{isPending:s.isPending,isError:s.isError}),e[20]=s.isError,e[21]=s.isPending,e[22]=g):g=e[22];const k=!f,P=f?"Open the post preview in a new tab":"Set the post slug (and its category) plus the blog app's pageSlug to preview";let N;e[23]!==f?(N=()=>{f&&window.open(f,"_blank","noopener,noreferrer")},e[23]=f,e[24]=N):N=e[24];let B;e[25]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx(ee,{size:14}),e[25]=B):B=e[25];let w;e[26]!==P||e[27]!==N||e[28]!==k?(w=t.jsxs(Z,{type:"button",variant:"outline",size:"sm",disabled:k,title:P,onClick:N,children:[B,"See preview"]}),e[26]=P,e[27]=N,e[28]=k,e[29]=w):w=e[29];let E;e[30]!==w||e[31]!==g?(E=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[g,w]}),e[30]=w,e[31]=g,e[32]=E):E=e[32];let v;e[33]!==E||e[34]!==c?(v=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,E]}),e[33]=E,e[34]=c,e[35]=v):v=e[35];let L;e[36]!==r.title?(L=F(r.title),e[36]=r.title,e[37]=L):L=e[37];let R;e[38]!==h?(R=T=>h("title",T),e[38]=h,e[39]=R):R=e[39];let U;e[40]!==L||e[41]!==R?(U=t.jsx(ve,{value:L,onChange:R,placeholder:"Post title",className:"py-1 text-4xl font-bold text-foreground"}),e[40]=L,e[41]=R,e[42]=U):U=e[42];let O;e[43]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsxs(Q,{value:"content",children:[t.jsx(te,{}),"Content"]}),e[43]=O):O=e[43];let K;e[44]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsxs(se,{children:[O,t.jsxs(Q,{value:"settings",children:[t.jsx(oe,{}),"Settings"]})]}),e[44]=K):K=e[44];let $;e[45]!==r.sections?($=xe(r.sections),e[45]=r.sections,e[46]=$):$=e[46];let I;e[47]!==h?(I=T=>h("sections",T),e[47]=h,e[48]=I):I=e[48];let M;e[49]!==u||e[50]!==$||e[51]!==I?(M=t.jsx(W,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(he,{value:$,onChange:I,meta:u,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."})})}),e[49]=u,e[50]=$,e[51]=I,e[52]=M):M=e[52];let z;e[53]!==m||e[54]!==r||e[55]!==h?(z=t.jsx(W,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(Ce,{post:r,decofile:m,onChange:h})})}),e[53]=m,e[54]=r,e[55]=h,e[56]=z):z=e[56];let D;e[57]!==M||e[58]!==z?(D=t.jsxs(le,{defaultValue:"content",className:"mt-6 gap-4",children:[K,M,z]}),e[57]=M,e[58]=z,e[59]=D):D=e[59];let V;e[60]!==U||e[61]!==D?(V=t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[U,D]})}),e[60]=U,e[61]=D,e[62]=V):V=e[62];let q;return e[63]!==v||e[64]!==V?(q=t.jsxs("div",{className:"flex h-full flex-col",children:[v,V]}),e[63]=v,e[64]=V,e[65]=q):q=e[65],q}function Ce(A){const e=H.c(59),{post:i,decofile:d,onChange:o}=A;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(G,{htmlFor:"post-excerpt",children:"Excerpt"}),e[0]=l):l=e[0];let p;e[1]!==i.excerpt?(p=F(i.excerpt),e[1]=i.excerpt,e[2]=p):p=e[2];let m;e[3]!==o?(m=v=>o("excerpt",v.target.value),e[3]=o,e[4]=m):m=e[4];let u;e[5]!==p||e[6]!==m?(u=t.jsxs("div",{className:"space-y-2",children:[l,t.jsx(re,{id:"post-excerpt",value:p,onChange:m,rows:2})]}),e[5]=p,e[6]=m,e[7]=u):u=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(G,{htmlFor:"post-slug",children:"Slug"}),e[8]=x):x=e[8];let y;e[9]!==i.slug?(y=F(i.slug),e[9]=i.slug,e[10]=y):y=e[10];let s;e[11]!==o?(s=v=>o("slug",v.target.value),e[11]=o,e[12]=s):s=e[12];let n;e[13]!==y||e[14]!==s?(n=t.jsxs("div",{className:"space-y-2",children:[x,t.jsx(J,{id:"post-slug",value:y,onChange:s,placeholder:"my-post",className:"h-10"})]}),e[13]=y,e[14]=s,e[15]=n):n=e[15];let j;e[16]===Symbol.for("react.memo_cache_sentinel")?(j={type:"string",format:"date",title:"Date"},e[16]=j):j=e[16];let b;e[17]!==i.date?(b=F(i.date),e[17]=i.date,e[18]=b):b=e[18];let r;e[19]!==o?(r=v=>o("date",v),e[19]=o,e[20]=r):r=e[20];let _;e[21]!==b||e[22]!==r?(_=t.jsx(fe,{schema:j,value:b,onChange:r,path:"post-date",label:"Date"}),e[21]=b,e[22]=r,e[23]=_):_=e[23];let C;e[24]!==_||e[25]!==n?(C=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n,_]}),e[24]=_,e[25]=n,e[26]=C):C=e[26];let h;e[27]===Symbol.for("react.memo_cache_sentinel")?(h={type:"string",format:"image-uri",title:"Cover image"},e[27]=h):h=e[27];let S;e[28]!==o?(S=v=>o("image",v),e[28]=o,e[29]=S):S=e[29];let f;e[30]!==i.image||e[31]!==S?(f=t.jsx(ce,{schema:h,value:i.image,onChange:S,path:"post-image",label:"Cover image"}),e[30]=i.image,e[31]=S,e[32]=f):f=e[32];let a;e[33]===Symbol.for("react.memo_cache_sentinel")?(a=["email"],e[33]=a):a=e[33];let c;e[34]!==o?(c=v=>o("authors",v),e[34]=o,e[35]=c):c=e[35];let g;e[36]!==d||e[37]!==i.authors||e[38]!==c?(g=t.jsx(X,{label:"Authors",decofile:d,kind:"authors",valueField:"email",extraFields:a,selected:i.authors,onChange:c}),e[36]=d,e[37]=i.authors,e[38]=c,e[39]=g):g=e[39];let k;e[40]===Symbol.for("react.memo_cache_sentinel")?(k=["slug"],e[40]=k):k=e[40];let P;e[41]!==o?(P=v=>o("categories",v),e[41]=o,e[42]=P):P=e[42];let N;e[43]!==d||e[44]!==i.categories||e[45]!==P?(N=t.jsx(X,{label:"Categories",decofile:d,kind:"categories",valueField:"slug",extraFields:k,selected:i.categories,onChange:P}),e[43]=d,e[44]=i.categories,e[45]=P,e[46]=N):N=e[46];let B;e[47]!==o?(B=v=>o("extraProps",v),e[47]=o,e[48]=B):B=e[48];let w;e[49]!==i.extraProps||e[50]!==B?(w=t.jsx(ke,{value:i.extraProps,onChange:B}),e[49]=i.extraProps,e[50]=B,e[51]=w):w=e[51];let E;return e[52]!==C||e[53]!==f||e[54]!==g||e[55]!==N||e[56]!==w||e[57]!==u?(E=t.jsxs("div",{className:"space-y-5",children:[u,C,f,g,N,w]}),e[52]=C,e[53]=f,e[54]=g,e[55]=N,e[56]=w,e[57]=u,e[58]=E):E=e[58],E}function ke(A){const e=H.c(15),{value:i,onChange:d}=A;let o,l,p,m;if(e[0]!==d||e[1]!==i){o=be(i);const y=(s,n)=>d(o.map((j,b)=>b===s?{...j,...n}:j));l="space-y-2",e[6]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(G,{children:"Extra props"}),e[6]=p):p=e[6],m=o.length>0&&t.jsx("ul",{className:"space-y-2",children:o.map((s,n)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(J,{value:s.key,onChange:j=>y(n,{key:j.target.value}),placeholder:"key",className:"h-9 flex-1"}),t.jsx(J,{value:s.value,onChange:j=>y(n,{value:j.target.value}),placeholder:"value",className:"h-9 flex-1"}),t.jsx(ye,{label:"Remove prop",onClick:()=>d(o.filter((j,b)=>b!==n))})]},n))}),e[0]=d,e[1]=i,e[2]=o,e[3]=l,e[4]=p,e[5]=m}else o=e[2],l=e[3],p=e[4],m=e[5];let u;e[7]!==o||e[8]!==d?(u=t.jsx(je,{label:"Add prop",onClick:()=>d([...o,{key:"",value:""}])}),e[7]=o,e[8]=d,e[9]=u):u=e[9];let x;return e[10]!==l||e[11]!==p||e[12]!==m||e[13]!==u?(x=t.jsxs("div",{className:l,children:[p,m,u]}),e[10]=l,e[11]=p,e[12]=m,e[13]=u,e[14]=x):x=e[14],x}function X(A){const e=H.c(31),{label:i,decofile:d,kind:o,valueField:l,extraFields:p,selected:m,onChange:u}=A;let x,y,s;if(e[0]!==d||e[1]!==o||e[2]!==l){x=de(d,o);let f;e[6]!==l?(f=(c,g)=>F(c[l])||g,e[6]=l,e[7]=f):f=e[7],s=f;let a;e[8]!==s?(a=c=>{const{key:g,payload:k}=c;return{value:s(k,g),label:F(k.name)||s(k,g)}},e[8]=s,e[9]=a):a=e[9],y=x.map(a),e[0]=d,e[1]=o,e[2]=l,e[3]=x,e[4]=y,e[5]=s}else x=e[3],y=e[4],s=e[5];const n=y;let j;if(e[10]!==m||e[11]!==l){const f=Array.isArray(m)?m:[];let a;e[13]!==l?(a=c=>F(c[l]),e[13]=l,e[14]=a):a=e[14],j=f.map(a).filter(Boolean),e[10]=m,e[11]=l,e[12]=j}else j=e[12];const b=j;let r;e[15]!==p||e[16]!==u||e[17]!==x||e[18]!==l||e[19]!==s?(r=f=>{u(f.map(a=>{const c=x.find(k=>{const{key:P,payload:N}=k;return s(N,P)===a});if(!c)return{name:a,[l]:a};const g={name:F(c.payload.name)};for(const k of p)g[k]=c.payload[k]??a;return g}))},e[15]=p,e[16]=u,e[17]=x,e[18]=l,e[19]=s,e[20]=r):r=e[20];const _=r;let C;e[21]!==i?(C=t.jsx(G,{children:i}),e[21]=i,e[22]=C):C=e[22];let h;e[23]!==b||e[24]!==_||e[25]!==i||e[26]!==n?(h=n.length===0?t.jsxs("p",{className:"text-xs text-muted-foreground",children:["No ",i.toLowerCase()," yet — create some in the"," ",i.toLowerCase()," collection."]}):t.jsx(ie,{options:n,defaultValue:b,onValueChange:_,placeholder:`Select ${i.toLowerCase()}`,maxCount:4}),e[23]=b,e[24]=_,e[25]=i,e[26]=n,e[27]=h):h=e[27];let S;return e[28]!==C||e[29]!==h?(S=t.jsxs("div",{className:"space-y-2",children:[C,h]}),e[28]=C,e[29]=h,e[30]=S):S=e[30],S}export{mi as PostEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as $,D as H,j as A}from"./index-kan1E63X.js";import{l as L,g as E,s as y}from"./scroll-area-Xtfwdb7m.js";import{p as O,u as k}from"./use-mcp-client-B0s_8EVJ.js";import{b as q,c as B}from"./use-mcp-tools-BTQ51TI6.js";import{u as Y}from"./index-CU99baeo.js";import{c as G}from"./content-blocks-o63cs2vh.js";import{g as K,M as V,a as w}from"./types-BwDuw3G9.js";import{u as z,b as F}from"./chat-context-CYJD3lpS.js";import{b as J}from"./shell-layout-BBvvEdo0.js";import"./agent-icon-Codzh2dR.js";import"./AlertCircle-CXfHCFxW.js";import"./Tool01--3NfnsTB.js";import"./SwitchHorizontal01-Bp6ZXj5h.js";import"./Settings02-C_i5syXv.js";import"./XCircle-Zk6uYFNc.js";import"./ArrowUpRight-DrIFBuVF.js";import"./ZapSquare-ZiXXTR85.js";import"./Users03-DNP40ou1.js";import"./CheckCircle-V4cMbp7k.js";import"./ChevronUp-BYmO7ni8.js";import"./ChevronDown-yYhj5xP_.js";import"./ChevronLeft-eYxyU36o.js";import"./ChevronRight-B69CKZdN.js";import"./DotsVertical-OVel04b-.js";import"./Stars02-C1ilg1eR.js";import"./Eye-DJDSbP4d.js";import"./ZoomOut-CBydRAMI.js";import"./Globe01-YUd_dhFu.js";import"./FilterLines-Ch9sNilm.js";import"./Star01-DIQdWhPq.js";import"./Globe04-Bn_dGrXD.js";import"./HardDrive-i1NQBY0F.js";import"./Key01-CzuZ2YNH.js";import"./LayoutLeft-DQ4hyaOy.js";import"./LinkExternal01-CUaKk4PO.js";import"./Monitor01-BMQf5bju.js";import"./Sun-DPvbuD5f.js";import"./Palette-DVMpwycK.js";import"./Play-Da7BpsHX.js";import"./Plus-DLu0p3LB.js";import"./SearchLg-BG10mFZp.js";import"./SearchMd-TgGSUo83.js";import"./Shield01-DWhnEyqf.js";import"./Stars01-D34hqc6C.js";import"./Trash01-BktfczUu.js";import"./Upload01-BWZGJ0bu.js";import"./User01-BE-MaNNT.js";import"./Users01-DRAatqmi.js";import"./XClose-CJbbgFu-.js";import"./X-D4V_xKxB.js";import"./Zap-DOCsW5bs.js";import"./use-clock-tick-uQ0gKwJZ.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Y55SDaZL.js";import"./tooltip-Ct27xL12.js";import"./file-type-icon-DE5lANHh.js";import"./dialog-59pZJLRI.js";import"./use-mobile-CHScOeMy.js";import"./tab-id-BptcWVWa.js";import"./hooks-DXPWHoBZ.js";import"./decopilot-sse-pool-DaS9jANP.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-BMwxp5pS.js";import"./sheet-CwpMGMQ9.js";import"./integration-icon-C9tNQbt4.js";import"./use-virtual-mcp-BN8buKcT.js";import"./use-collections-B6Y5SE5i.js";import"./use-navigate-to-agent-BLrW4hmi.js";import"./use-connection-CCYwDyNR.js";import"./use-mcp-prompts-C9WyhCpr.js";import"./form-D9GCz4p7.js";import"./label-CShBo-xr.js";import"./input-CWK_KDxP.js";import"./select-Do7P1LSG.js";import"./auth-D-VB6PXw.js";import"./index-D7FZbpdh.js";import"./drawer-CardDBvQ.js";import"./collection-search-3g2v_4Ig.js";import"./tabs-B6eIa2zt.js";import"./toggle-group-Bz1hQE3a.js";import"./sortable.esm-LdSILUfx.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-Bxwr78j_.js";import"./use-registry-connections-HtzalUOh.js";import"./use-organization-settings-BdRr72qh.js";import"./useInfiniteQuery-D-FFXkXU.js";import"./use-infinite-scroll-BW9P8xBl.js";import"./extract-connection-data-C3rg-zH0.js";import"./card-CSk11DrN.js";import"./collection-tabs-NH0QHVtb.js";import"./badge-DuPrh-k9.js";import"./textarea-PSzbbOkb.js";import"./connection-form-helpers-N3pDB096.js";import"./authenticate-and-persist-oauth-CIVGnsAG.js";import"./mcp-oauth-CRmn6hwI.js";import"./useSuspenseInfiniteQuery-BfIitBar.js";import"./use-ai-providers-DFaFMw_I.js";import"./connect-desktop-dialog-C4RGGomP.js";import"./decopilot-D2kjmvQ8.js";import"./checkbox-DhghRz0V.js";import"./skeleton-Bvrl2WPh.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-D50rXO9q.js";import"./settings-section-ZqpVSrVJ.js";import"./popover-Dhad0x9g.js";import"./command-DuFRSin9.js";import"./index-BRTT5sEO.js";import"./use-org-fs-BbjnF7sq.js";import"./dropdown-menu-KRYgKsut.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CFfhXfZc.js";import"./use-decopilot-events-EyZW0ScP.js";import"./empty-state-DdjF8vs8.js";import"./toolbar-DCCrTBZW.js";import"./preview-dialog-BvNzeY3T.js";import"./index-DHU91und.js";import"./use-capability-CSJPfpi0.js";import"./shell-route-loading-XVhs5R31.js";import"./index-BNIB-FKU.js";import"./alert-dialog-Cey7j4CE.js";import"./switch-H7aX0suB.js";import"./use-debounced-autosave-BL-N3Gnu.js";import"./index-CUeWfuiR.js";import"./sidebar-DS_youLc.js";import"./search-input-DQ6UrvBE.js";import"./github-repo-picker-CH_d9yqP.js";import"./use-debounced-value-DpZKy_Iw.js";import"./use-secrets-CnXSg99O.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-PleSLbFB.js";import"./automation-runs-DsB-LYLH.js";import"./table-qhDDbEpO.js";import"./use-members-Cho9vXKF.js";import"./use-org-auth-client-T24QkUeZ.js";import"./task-status-D9utHgZw.js";import"./use-automations-uZj9fR0Z.js";import"./use-file-configs-hHuL8QEC.js";import"./monaco-editor-DCdpc6i0.js";import"./select-model-DlSLJO4Y.js";import"./automation-list-row-7n10xHBN.js";import"./required-auth-layout-s2Bxat9U.js";import"./use-org-sso-CoPgbTky.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 we(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{we as AppViewContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as S,j as r}from"./index-kan1E63X.js";import{I as T}from"./input-CWK_KDxP.js";import{L as C}from"./label-CShBo-xr.js";import{T as L}from"./textarea-PSzbbOkb.js";import{au as A,av as R,at as D,aw as J,ax as K}from"./index-CU99baeo.js";import{u as M,s as P}from"./primitives-Dr1eHlQS.js";import"./index-D7FZbpdh.js";import"./chat-context-CYJD3lpS.js";import"./hooks-DXPWHoBZ.js";import"./use-mcp-client-B0s_8EVJ.js";import"./auth-D-VB6PXw.js";import"./decopilot-sse-pool-DaS9jANP.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-BN8buKcT.js";import"./use-collections-B6Y5SE5i.js";import"./use-ai-providers-DFaFMw_I.js";import"./studio-tools-BMwxp5pS.js";import"./use-decopilot-events-EyZW0ScP.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-BdRr72qh.js";import"./scroll-area-Xtfwdb7m.js";import"./agent-icon-Codzh2dR.js";import"./AlertCircle-CXfHCFxW.js";import"./Tool01--3NfnsTB.js";import"./SwitchHorizontal01-Bp6ZXj5h.js";import"./Settings02-C_i5syXv.js";import"./XCircle-Zk6uYFNc.js";import"./ArrowUpRight-DrIFBuVF.js";import"./ZapSquare-ZiXXTR85.js";import"./Users03-DNP40ou1.js";import"./CheckCircle-V4cMbp7k.js";import"./ChevronUp-BYmO7ni8.js";import"./ChevronDown-yYhj5xP_.js";import"./ChevronLeft-eYxyU36o.js";import"./ChevronRight-B69CKZdN.js";import"./DotsVertical-OVel04b-.js";import"./Stars02-C1ilg1eR.js";import"./Eye-DJDSbP4d.js";import"./ZoomOut-CBydRAMI.js";import"./Globe01-YUd_dhFu.js";import"./FilterLines-Ch9sNilm.js";import"./Star01-DIQdWhPq.js";import"./Globe04-Bn_dGrXD.js";import"./HardDrive-i1NQBY0F.js";import"./Key01-CzuZ2YNH.js";import"./LayoutLeft-DQ4hyaOy.js";import"./LinkExternal01-CUaKk4PO.js";import"./Monitor01-BMQf5bju.js";import"./Sun-DPvbuD5f.js";import"./Palette-DVMpwycK.js";import"./Play-Da7BpsHX.js";import"./Plus-DLu0p3LB.js";import"./SearchLg-BG10mFZp.js";import"./SearchMd-TgGSUo83.js";import"./Shield01-DWhnEyqf.js";import"./Stars01-D34hqc6C.js";import"./Trash01-BktfczUu.js";import"./Upload01-BWZGJ0bu.js";import"./User01-BE-MaNNT.js";import"./Users01-DRAatqmi.js";import"./XClose-CJbbgFu-.js";import"./X-D4V_xKxB.js";import"./Zap-DOCsW5bs.js";import"./use-clock-tick-uQ0gKwJZ.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Y55SDaZL.js";import"./tooltip-Ct27xL12.js";import"./file-type-icon-DE5lANHh.js";import"./dialog-59pZJLRI.js";import"./use-mobile-CHScOeMy.js";import"./content-blocks-o63cs2vh.js";import"./types-BwDuw3G9.js";import"./shell-layout-BBvvEdo0.js";import"./avatar-D50rXO9q.js";import"./required-auth-layout-s2Bxat9U.js";import"./use-org-sso-CoPgbTky.js";import"./sheet-CwpMGMQ9.js";import"./integration-icon-C9tNQbt4.js";import"./use-navigate-to-agent-BLrW4hmi.js";import"./use-connection-CCYwDyNR.js";import"./use-mcp-prompts-C9WyhCpr.js";import"./form-D9GCz4p7.js";import"./select-Do7P1LSG.js";import"./drawer-CardDBvQ.js";import"./collection-search-3g2v_4Ig.js";import"./tabs-B6eIa2zt.js";import"./toggle-group-Bz1hQE3a.js";import"./sortable.esm-LdSILUfx.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-Bxwr78j_.js";import"./use-registry-connections-HtzalUOh.js";import"./useInfiniteQuery-D-FFXkXU.js";import"./use-infinite-scroll-BW9P8xBl.js";import"./extract-connection-data-C3rg-zH0.js";import"./card-CSk11DrN.js";import"./collection-tabs-NH0QHVtb.js";import"./badge-DuPrh-k9.js";import"./connection-form-helpers-N3pDB096.js";import"./authenticate-and-persist-oauth-CIVGnsAG.js";import"./mcp-oauth-CRmn6hwI.js";import"./useSuspenseInfiniteQuery-BfIitBar.js";import"./connect-desktop-dialog-C4RGGomP.js";import"./decopilot-D2kjmvQ8.js";import"./checkbox-DhghRz0V.js";import"./skeleton-Bvrl2WPh.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-ZqpVSrVJ.js";import"./popover-Dhad0x9g.js";import"./command-DuFRSin9.js";import"./index-BRTT5sEO.js";import"./use-org-fs-BbjnF7sq.js";import"./dropdown-menu-KRYgKsut.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CFfhXfZc.js";import"./empty-state-DdjF8vs8.js";import"./toolbar-DCCrTBZW.js";import"./preview-dialog-BvNzeY3T.js";import"./index-DHU91und.js";import"./use-mcp-tools-BTQ51TI6.js";import"./use-capability-CSJPfpi0.js";import"./shell-route-loading-XVhs5R31.js";import"./index-BNIB-FKU.js";import"./alert-dialog-Cey7j4CE.js";import"./switch-H7aX0suB.js";import"./use-debounced-autosave-BL-N3Gnu.js";import"./index-CUeWfuiR.js";import"./sidebar-DS_youLc.js";import"./search-input-DQ6UrvBE.js";import"./github-repo-picker-CH_d9yqP.js";import"./use-debounced-value-DpZKy_Iw.js";import"./use-secrets-CnXSg99O.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-PleSLbFB.js";import"./automation-runs-DsB-LYLH.js";import"./table-qhDDbEpO.js";import"./use-members-Cho9vXKF.js";import"./use-org-auth-client-T24QkUeZ.js";import"./task-status-D9utHgZw.js";import"./use-automations-uZj9fR0Z.js";import"./use-file-configs-hHuL8QEC.js";import"./monaco-editor-DCdpc6i0.js";import"./select-model-DlSLJO4Y.js";import"./automation-list-row-7n10xHBN.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 Nr(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{Nr as RecordEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CymZuomq.js","assets/index-kan1E63X.js","assets/index-BADtduG9.css","assets/XCircle-Zk6uYFNc.js","assets/CheckCircle-V4cMbp7k.js","assets/Settings02-C_i5syXv.js","assets/use-mcp-client-B0s_8EVJ.js","assets/auth-D-VB6PXw.js","assets/useInfiniteQuery-D-FFXkXU.js","assets/use-infinite-scroll-BW9P8xBl.js","assets/studio-tools-BMwxp5pS.js","assets/badge-DuPrh-k9.js","assets/input-CWK_KDxP.js","assets/dropdown-menu-KRYgKsut.js","assets/ChevronUp-BYmO7ni8.js","assets/ChevronRight-B69CKZdN.js","assets/DotsVertical-OVel04b-.js","assets/table-qhDDbEpO.js","assets/toggle-group-Bz1hQE3a.js","assets/use-view-mode-1gUAJUA2.js","assets/use-mobile-CHScOeMy.js","assets/FilterLines-Ch9sNilm.js","assets/Globe01-YUd_dhFu.js","assets/SearchMd-TgGSUo83.js","assets/dialog-59pZJLRI.js","assets/X-D4V_xKxB.js","assets/AlertCircle-CXfHCFxW.js","assets/Upload01-BWZGJ0bu.js","assets/alert-dialog-Cey7j4CE.js","assets/card-CSk11DrN.js","assets/Trash01-BktfczUu.js","assets/label-CShBo-xr.js","assets/select-Do7P1LSG.js","assets/tooltip-Ct27xL12.js","assets/ChevronDown-yYhj5xP_.js","assets/switch-H7aX0suB.js","assets/textarea-PSzbbOkb.js","assets/checkbox-DhghRz0V.js","assets/Eye-DJDSbP4d.js","assets/LinkExternal01-CUaKk4PO.js","assets/use-copy-Y55SDaZL.js","assets/Key01-CzuZ2YNH.js","assets/Plus-DLu0p3LB.js","assets/mcp-oauth-CRmn6hwI.js","assets/Play-Da7BpsHX.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-kan1E63X.js";import{R as m}from"./require-capability-B1rUcboM.js";import"./use-capability-CSJPfpi0.js";import"./access-gate-Bsc7QUw1.js";import"./capability-load-error-CKrEiZ0g.js";const n=i.lazy(()=>o(()=>import("./registry-layout-CymZuomq.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 Ge,r as k,l as Pe,j as n,B as Ye,i as Hn,m as ha,t as te,K as ga}from"./index-kan1E63X.js";import{r as va,a as Sa,s as ba,i as Un,c as ya,b as xa,G as _a,V as ja,d as ka,e as Rt,f as wa,g as Na,h as Ra,j as Da,k as Va,l as Ca,m as Ta,n as Pa,o as Aa,p as $t,q as Ot,t as Ma,v as ut,w as kt,x as Ea,y as Ka,z as Je,A as Cn,S as $a,M as Tn,B as wt,C as Bt,D as Oa,E as sn,P as Ba,F as et,H as bt,I as La,J as Fa,K as Ia,L as za,N as Ha,O as Ua,Q as dt,R as Ga,T as Wa,U as qa,W as Pn,X as Nt,Y as Ya,Z as Ja,_ as Qa,$ as Xa,a0 as Za,a1 as an,a2 as An,a3 as Mn,a4 as yt,a5 as Lt,a6 as En,a7 as er,a8 as tr,a9 as nr,aa as rn,ab as sr,ac as Gn,ad as Kn,ae as ar}from"./index-CU99baeo.js";import{t as rr}from"./ChevronDown-yYhj5xP_.js";import{n as or}from"./ChevronLeft-eYxyU36o.js";import{i as Wn}from"./ChevronRight-B69CKZdN.js";import{n as ir}from"./ChevronUp-BYmO7ni8.js";import{L as ln,E as qn,X as Yn,l as lr,M as cr,N as ur}from"./agent-icon-Codzh2dR.js";import{i as dr}from"./Globe01-YUd_dhFu.js";import{S as Ft}from"./scroll-area-Xtfwdb7m.js";import{T as mt,a as ft,b as pt}from"./tooltip-Ct27xL12.js";import{a as mr,c as fr,b as pr,D as hr,d as gr,e as vr}from"./dialog-59pZJLRI.js";import{I as Sr}from"./input-CWK_KDxP.js";import{s as br,a as Jn}from"./Eye-DJDSbP4d.js";import{c as yr}from"./ZoomOut-CBydRAMI.js";import{i as xr}from"./Settings02-C_i5syXv.js";import{s as cn}from"./Plus-DLu0p3LB.js";import{s as Qn}from"./Trash01-BktfczUu.js";import{i as _r}from"./Zap-DOCsW5bs.js";import{c as it,a as Xn,D as Zn,b as es,g as jr}from"./dropdown-menu-KRYgKsut.js";import{b as ts,c as It,K as ns,P as ss,e as as,C as rs,s as os,l as Dt,D as is,d as ls,S as cs,v as kr,k as us,p as wr}from"./sortable.esm-LdSILUfx.js";import{r as $n,u as Nr,d as Rr,a as Dr,i as Vr,f as Cr,P as Tr,b as Pr,S as Ar}from"./page-seo-form-BuiEAYj4.js";import{b as Mr}from"./Tool01--3NfnsTB.js";import{A as Er}from"./add-section-modal-DxNRWOxr.js";import"./index-D7FZbpdh.js";import"./chat-context-CYJD3lpS.js";import"./hooks-DXPWHoBZ.js";import"./use-mcp-client-B0s_8EVJ.js";import"./auth-D-VB6PXw.js";import"./decopilot-sse-pool-DaS9jANP.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-BN8buKcT.js";import"./use-collections-B6Y5SE5i.js";import"./use-ai-providers-DFaFMw_I.js";import"./studio-tools-BMwxp5pS.js";import"./use-decopilot-events-EyZW0ScP.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-BdRr72qh.js";import"./drawer-CardDBvQ.js";import"./collection-search-3g2v_4Ig.js";import"./SearchMd-TgGSUo83.js";import"./use-mobile-CHScOeMy.js";import"./use-mcp-prompts-C9WyhCpr.js";import"./X-D4V_xKxB.js";import"./shell-layout-BBvvEdo0.js";import"./avatar-D50rXO9q.js";import"./User01-BE-MaNNT.js";import"./Users03-DNP40ou1.js";import"./SearchLg-BG10mFZp.js";import"./Stars02-C1ilg1eR.js";import"./XClose-CJbbgFu-.js";import"./CheckCircle-V4cMbp7k.js";import"./FilterLines-Ch9sNilm.js";import"./required-auth-layout-s2Bxat9U.js";import"./use-org-sso-CoPgbTky.js";import"./SwitchHorizontal01-Bp6ZXj5h.js";import"./ZapSquare-ZiXXTR85.js";import"./Star01-DIQdWhPq.js";import"./Upload01-BWZGJ0bu.js";import"./AlertCircle-CXfHCFxW.js";import"./form-D9GCz4p7.js";import"./label-CShBo-xr.js";import"./select-Do7P1LSG.js";import"./XCircle-Zk6uYFNc.js";import"./tabs-B6eIa2zt.js";import"./toggle-group-Bz1hQE3a.js";import"./Monitor01-BMQf5bju.js";import"./connect-desktop-dialog-C4RGGomP.js";import"./decopilot-D2kjmvQ8.js";import"./checkbox-DhghRz0V.js";import"./skeleton-Bvrl2WPh.js";import"./Key01-CzuZ2YNH.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-ZqpVSrVJ.js";import"./card-CSk11DrN.js";import"./ArrowUpRight-DrIFBuVF.js";import"./Stars01-D34hqc6C.js";import"./popover-Dhad0x9g.js";import"./command-DuFRSin9.js";import"./index-BRTT5sEO.js";import"./useInfiniteQuery-D-FFXkXU.js";import"./use-infinite-scroll-BW9P8xBl.js";import"./use-org-fs-BbjnF7sq.js";import"./question-004-sINsf4GQ.js";import"./integration-icon-C9tNQbt4.js";import"./use-status-sounds-CFfhXfZc.js";import"./empty-state-DdjF8vs8.js";import"./toolbar-DCCrTBZW.js";import"./preview-dialog-BvNzeY3T.js";import"./LinkExternal01-CUaKk4PO.js";import"./index-DHU91und.js";import"./file-type-icon-DE5lANHh.js";import"./LayoutLeft-DQ4hyaOy.js";import"./use-connection-CCYwDyNR.js";import"./use-mcp-tools-BTQ51TI6.js";import"./types-BwDuw3G9.js";import"./use-capability-CSJPfpi0.js";import"./textarea-PSzbbOkb.js";import"./shell-route-loading-XVhs5R31.js";import"./extract-connection-data-C3rg-zH0.js";import"./index-BNIB-FKU.js";import"./mcp-oauth-CRmn6hwI.js";import"./badge-DuPrh-k9.js";import"./connection-slug-eyAPH6o3.js";import"./alert-dialog-Cey7j4CE.js";import"./switch-H7aX0suB.js";import"./Play-Da7BpsHX.js";import"./use-debounced-autosave-BL-N3Gnu.js";import"./index-CUeWfuiR.js";import"./sidebar-DS_youLc.js";import"./sheet-CwpMGMQ9.js";import"./search-input-DQ6UrvBE.js";import"./collection-tabs-NH0QHVtb.js";import"./github-repo-picker-CH_d9yqP.js";import"./use-debounced-value-DpZKy_Iw.js";import"./authenticate-and-persist-oauth-CIVGnsAG.js";import"./use-navigate-to-agent-BLrW4hmi.js";import"./Users01-DRAatqmi.js";import"./use-secrets-CnXSg99O.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./view-mode-toggle-PleSLbFB.js";import"./DotsVertical-OVel04b-.js";import"./automation-runs-DsB-LYLH.js";import"./table-qhDDbEpO.js";import"./use-members-Cho9vXKF.js";import"./use-org-auth-client-T24QkUeZ.js";import"./task-status-D9utHgZw.js";import"./use-automations-uZj9fR0Z.js";import"./useSuspenseInfiniteQuery-BfIitBar.js";import"./use-file-configs-hHuL8QEC.js";import"./monaco-editor-DCdpc6i0.js";import"./select-model-DlSLJO4Y.js";import"./automation-list-row-7n10xHBN.js";import"./Globe04-Bn_dGrXD.js";import"./HardDrive-i1NQBY0F.js";import"./Sun-DPvbuD5f.js";import"./Palette-DVMpwycK.js";import"./Shield01-DWhnEyqf.js";import"./use-clock-tick-uQ0gKwJZ.js";import"./use-copy-Y55SDaZL.js";import"./content-blocks-o63cs2vh.js";import"./connection-card-Bxwr78j_.js";import"./use-registry-connections-HtzalUOh.js";import"./connection-form-helpers-N3pDB096.js";function Kr(f){return f.schema?.definitions??f.schema?.$defs??{}}function $r(f,e){const r=Kr(e),u=r[btoa(f)];if(!u)return;let d=typeof u.image=="string"?u.image:void 0;if(!d&&Array.isArray(u.allOf)){const g=u.allOf.find(y=>typeof y.$ref=="string")?.$ref;if(typeof g=="string"){const y=g.replace("#/definitions/",""),p=r[y];d=typeof p?.image=="string"?p.image:void 0}}if(d?.includes("{{{"))return d}function Or(f,e){if(!e)return;const r=va(f);if(!r)return;const u=$r(r.resolveType,e);if(!u)return;const d=Sa(u,r.data);if(d)return ba(d)}const Br="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",Lr="text-global-section-fg focus:bg-global-section/12 focus:text-global-section-fg dark:text-global-section-fg-dark dark:focus:bg-global-section/15 dark:focus:text-global-section-fg-dark [&_svg]:!text-global-section";function On(f){return Array.from({length:f},(e,r)=>({id:crypto.randomUUID(),index:r}))}function ds(f){return f.map((e,r)=>({...e,index:r}))}function Fr(f,e){if(e===f.length)return f;if(e<f.length)return ds(f.slice(0,e));const r=Array.from({length:e-f.length},(u,d)=>({id:crypto.randomUUID(),index:f.length+d}));return[...f,...r]}function ms(f){const e=Ge.c(20),{section:r,raw:u,meta:d}=f,g=r.isSavedBlock===!0,y=r.isMultivariate===!0;let p;e[0]!==d||e[1]!==u?(p=u&&d?Or(u,d):void 0,e[0]=d,e[1]=u,e[2]=p):p=e[2];const v=p;let b;e[3]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx(yr,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[3]=b):b=e[3];let x;e[4]!==v?(x=v&&n.jsx("img",{src:v,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),e[4]=v,e[5]=x):x=e[5];let C;e[6]!==y||e[7]!==g?(C=g?{color:_a}:y?{color:"oklch(0.65 0.15 160)"}:void 0,e[6]=y,e[7]=g,e[8]=C):C=e[8];let N;e[9]!==C?(N=n.jsx(ln,{className:"h-4 w-4 shrink-0",style:C}),e[9]=C,e[10]=N):N=e[10];const j=r.isHidden&&"line-through opacity-50";let D;e[11]!==j?(D=Pe("min-w-0 flex-1 truncate text-sm font-medium",j),e[11]=j,e[12]=D):D=e[12];let o;e[13]!==r.label||e[14]!==D?(o=n.jsx("span",{className:D,children:r.label}),e[13]=r.label,e[14]=D,e[15]=o):o=e[15];let w;return e[16]!==x||e[17]!==N||e[18]!==o?(w=n.jsxs(n.Fragment,{children:[b,x,N,o]}),e[16]=x,e[17]=N,e[18]=o,e[19]=w):w=e[19],w}function fs(f,e){const r=f.isSavedBlock===!0,u=f.isMultivariate===!0;return Pe("group flex select-none items-center gap-2 rounded-md px-2 py-2.5",e?"bg-accent text-accent-foreground":r?Br:u?"text-[oklch(0.45_0.15_160)] hover:bg-[oklch(0.65_0.15_160/0.12)] dark:text-[oklch(0.78_0.15_160)] dark:hover:bg-[oklch(0.65_0.15_160/0.15)]":"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function Ir(f){const e=Ge.c(64),{section:r,raw:u,meta:d,sortableId:g,selected:y,onSelect:p,onDelete:v,onDuplicate:b,onMakeReusable:x,onToggleHidden:C,onToggleLazy:N,onAddVariant:j,onDetach:D}=f,o=u?Un(u.__resolveType??""):!1;let w;e[0]!==r?(w=ya(r),e[0]=r,e[1]=w):w=e[1];const i=w;let se;e[2]!==g?(se={id:g,animateLayoutChanges:Wr},e[2]=g,e[3]=se):se=e[3];const{attributes:Q,listeners:B,setNodeRef:c,transform:T,isDragging:de}=as(se);let P;e[4]!==T?(P=rs.Transform.toString(T?{...T,x:0}:null),e[4]=T,e[5]=P):P=e[5];const be=de?0:void 0;let E;e[6]!==P||e[7]!==be?(E={transform:P,opacity:be},e[6]=P,e[7]=be,e[8]=E):E=e[8];const he=E;let K;e[9]!==r?(K=xa(r),e[9]=r,e[10]=K):K=e[10];const oe=K,me="button",we=0;let U;e[11]!==p?(U=I=>{(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),p())},e[11]=p,e[12]=U):U=e[12];const re=de?"cursor-grabbing":"cursor-pointer";let W;e[13]!==r||e[14]!==y||e[15]!==re?(W=Pe("touch-none transition-colors",re,fs(r,y)),e[13]=r,e[14]=y,e[15]=re,e[16]=W):W=e[16];let fe;e[17]!==d||e[18]!==u||e[19]!==r?(fe=n.jsx(ms,{section:r,raw:u,meta:d}),e[17]=d,e[18]=u,e[19]=r,e[20]=fe):fe=e[20];const A=!r.isMultivariate&&n.jsxs(mt,{children:[n.jsx(ft,{asChild:!0,children:n.jsx(Ye,{type:"button",variant:"ghost",size:"icon","aria-label":o?"Disable async render":"Enable async render",className:Pe("h-7 w-7 shrink-0",o?"":"opacity-0 group-hover:opacity-100"),onClick:I=>{I.stopPropagation(),N()},onPointerDown:Gr,children:n.jsx(_r,{className:Pe("h-3.5 w-3.5",o&&"text-yellow-500")})})}),n.jsx(pt,{side:"bottom",children:o?"Disable async render":"Enable async render"})]});let _e;e[21]!==C||e[22]!==r.isHidden||e[23]!==r.isMultivariate?(_e=!r.isMultivariate&&n.jsxs(mt,{children:[n.jsx(ft,{asChild:!0,children:n.jsx(Ye,{type:"button",variant:"ghost",size:"icon","aria-label":r.isHidden?"Show section":"Hide section",className:Pe("h-7 w-7 shrink-0",r.isHidden?"opacity-100":"opacity-0 group-hover:opacity-100"),onClick:I=>{I.stopPropagation(),C()},onPointerDown:Ur,children:r.isHidden?n.jsx(xr,{className:"h-3.5 w-3.5"}):n.jsx(br,{className:"h-3.5 w-3.5"})})}),n.jsx(pt,{side:"bottom",children:r.isHidden?"Show section":"Hide section"})]}),e[21]=C,e[22]=r.isHidden,e[23]=r.isMultivariate,e[24]=_e):_e=e[24];let $;e[25]===Symbol.for("react.memo_cache_sentinel")?($=n.jsx(Xn,{asChild:!0,children:n.jsx(Ye,{type:"button",variant:"ghost",size:"icon","aria-label":"Section actions",className:"h-7 w-7 shrink-0 opacity-0 group-hover:opacity-100",onClick:Hr,onPointerDown:zr,children:n.jsx(qn,{className:"h-3.5 w-3.5"})})}),e[25]=$):$=e[25];let ge;e[26]!==b?(ge=I=>{I.stopPropagation(),b()},e[26]=b,e[27]=ge):ge=e[27];let ae;e[28]===Symbol.for("react.memo_cache_sentinel")?(ae=n.jsx(Jn,{className:"h-4 w-4"}),e[28]=ae):ae=e[28];let X;e[29]!==ge?(X=n.jsxs(it,{onClick:ge,children:[ae,"Duplicate"]}),e[29]=ge,e[30]=X):X=e[30];let L;e[31]!==i||e[32]!==j?(L=i&&n.jsxs(it,{className:ja,onClick:I=>{I.stopPropagation(),j()},children:[n.jsx(Yn,{className:"h-4 w-4"}),"Add variant"]}),e[31]=i,e[32]=j,e[33]=L):L=e[33];let O;e[34]!==oe||e[35]!==x?(O=oe&&n.jsxs(it,{className:Lr,onClick:I=>{I.stopPropagation(),x()},children:[n.jsx(ln,{className:"h-4 w-4"}),"Make reusable"]}),e[34]=oe,e[35]=x,e[36]=O):O=e[36];let F;e[37]!==D||e[38]!==r.isMultivariate||e[39]!==r.isSavedBlock?(F=r.isSavedBlock===!0&&!r.isMultivariate&&n.jsxs(it,{onClick:I=>{I.stopPropagation(),D()},children:[n.jsx(ln,{className:"h-4 w-4"}),"Detach"]}),e[37]=D,e[38]=r.isMultivariate,e[39]=r.isSavedBlock,e[40]=F):F=e[40];let q;e[41]!==v?(q=I=>{I.stopPropagation(),v()},e[41]=v,e[42]=q):q=e[42];let ie;e[43]===Symbol.for("react.memo_cache_sentinel")?(ie=n.jsx(Qn,{className:"h-4 w-4"}),e[43]=ie):ie=e[43];let le;e[44]!==q?(le=n.jsxs(it,{className:"text-destructive focus:text-destructive",onClick:q,children:[ie,"Delete"]}),e[44]=q,e[45]=le):le=e[45];let ve;e[46]!==X||e[47]!==L||e[48]!==O||e[49]!==F||e[50]!==le?(ve=n.jsxs(Zn,{children:[$,n.jsxs(es,{align:"end",className:"w-44",children:[X,L,O,F,le]})]}),e[46]=X,e[47]=L,e[48]=O,e[49]=F,e[50]=le,e[51]=ve):ve=e[51];let ye;return e[52]!==Q||e[53]!==B||e[54]!==p||e[55]!==c||e[56]!==he||e[57]!==W||e[58]!==fe||e[59]!==A||e[60]!==_e||e[61]!==ve||e[62]!==U?(ye=n.jsxs("div",{ref:c,style:he,...Q,...B,role:me,tabIndex:we,onClick:p,onKeyDown:U,className:W,children:[fe,A,_e,ve]}),e[52]=Q,e[53]=B,e[54]=p,e[55]=c,e[56]=he,e[57]=W,e[58]=fe,e[59]=A,e[60]=_e,e[61]=ve,e[62]=U,e[63]=ye):ye=e[63],ye}function zr(f){return f.stopPropagation()}function Hr(f){return f.stopPropagation()}function Ur(f){return f.stopPropagation()}function Gr(f){return f.stopPropagation()}function Wr(){return!1}function qr(f){const e=Ge.c(90),{listKey:r,rawSections:u,sections:d,meta:g,selectedIndex:y,onSelect:p,onReorder:v,onDelete:b,onDuplicate:x,onMakeReusable:C,onToggleHidden:N,onToggleLazy:j,onAddVariant:D,onDetach:o,onAddSection:w,canAddSection:i}=f,se=i===void 0?!0:i;let Q;e[0]!==d.length?(Q=()=>On(d.length),e[0]=d.length,e[1]=Q):Q=e[1];const[B,c]=k.useState(Q),[T,de]=k.useState(null),[P,be]=k.useState(r),[E,he]=k.useState(d.length),K=k.useRef(!1);P!==r?(be(r),he(d.length),c(On(d.length))):E!==d.length&&(he(d.length),c(Z=>Fr(Z,d.length)));let oe;e[2]===Symbol.for("react.memo_cache_sentinel")?(oe={activationConstraint:{distance:8}},e[2]=oe):oe=e[2];let me;e[3]===Symbol.for("react.memo_cache_sentinel")?(me={coordinateGetter:os},e[3]=me):me=e[3];const we=ts(It(ss,oe),It(ns,me));let U;e[4]!==B?(U=B.map(Yr),e[4]=B,e[5]=U):U=e[5];const re=U;let W;e[6]===Symbol.for("react.memo_cache_sentinel")?(W=Z=>{de(String(Z.active.id))},e[6]=W):W=e[6];const fe=W;let A;e[7]!==re||e[8]!==v?(A=Z=>{de(null);const{active:R,over:z}=Z;if(!z||R.id===z.id)return;const Ce=re.indexOf(String(R.id)),pe=re.indexOf(String(z.id));Ce===-1||pe===-1||(c(Qe=>ds(Dt([...Qe],Ce,pe))),K.current=!0,requestAnimationFrame(()=>{K.current=!1}),v?.(Ce,pe))},e[7]=re,e[8]=v,e[9]=A):A=e[9];const _e=A;let $;e[10]===Symbol.for("react.memo_cache_sentinel")?($=()=>{de(null)},e[10]=$):$=e[10];const ge=$;let ae,X,L,O,F,q,ie,le,ve,ye,I,ce,Ne,Me,Ee;if(e[11]!==T||e[12]!==se||e[13]!==B||e[14]!==re||e[15]!==_e||e[16]!==g||e[17]!==w||e[18]!==D||e[19]!==b||e[20]!==o||e[21]!==x||e[22]!==C||e[23]!==p||e[24]!==N||e[25]!==j||e[26]!==u||e[27]!==d||e[28]!==y||e[29]!==we){Me=Symbol.for("react.early_return_sentinel");e:{const Z=R=>{K.current||p(R)};if(e[45]!==T||e[46]!==se||e[47]!==B||e[48]!==w||e[49]!==u||e[50]!==d){const R=T?B.find(z=>z.id===T):null;if(O=R!=null?d[R.index]:null,L=R!=null?u[R.index]:void 0,B.length===0){let z;e[54]===Symbol.for("react.memo_cache_sentinel")?(z=n.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:"No sections in this page."}),e[54]=z):z=e[54];const Ce=!se;let pe;e[55]===Symbol.for("react.memo_cache_sentinel")?(pe=n.jsx(cn,{size:14}),e[55]=pe):pe=e[55];let Qe;e[56]!==w||e[57]!==Ce?(Qe=n.jsxs("div",{className:"space-y-2",children:[z,n.jsxs(Ye,{type:"button",variant:"outline",size:"sm",className:"w-full",disabled:Ce,onClick:w,children:[pe,"Add section"]})]}),e[56]=w,e[57]=Ce,e[58]=Qe):Qe=e[58],Me=Qe;break e}Ne=Pe(R&&"cursor-grabbing"),e[45]=T,e[46]=se,e[47]=B,e[48]=w,e[49]=u,e[50]=d,e[51]=L,e[52]=O,e[53]=Ne}else L=e[51],O=e[52],Ne=e[53];X=is,le=we,ve=ls,ye=fe,I=_e,ce=ge,ae=cs,q=re,ie=kr,Ee="space-y-1",F=B.map(R=>{const z=d[R.index];return z?n.jsx(Ir,{sortableId:R.id,section:z,raw:u[R.index],meta:g,selected:y===R.index,onSelect:()=>Z(R.index),onDelete:()=>b(R.index),onDuplicate:()=>x(R.index),onMakeReusable:()=>C(R.index),onToggleHidden:()=>N(R.index),onToggleLazy:()=>j(R.index),onAddVariant:()=>D(R.index),onDetach:()=>o(R.index)},R.id):null})}e[11]=T,e[12]=se,e[13]=B,e[14]=re,e[15]=_e,e[16]=g,e[17]=w,e[18]=D,e[19]=b,e[20]=o,e[21]=x,e[22]=C,e[23]=p,e[24]=N,e[25]=j,e[26]=u,e[27]=d,e[28]=y,e[29]=we,e[30]=ae,e[31]=X,e[32]=L,e[33]=O,e[34]=F,e[35]=q,e[36]=ie,e[37]=le,e[38]=ve,e[39]=ye,e[40]=I,e[41]=ce,e[42]=Ne,e[43]=Me,e[44]=Ee}else ae=e[30],X=e[31],L=e[32],O=e[33],F=e[34],q=e[35],ie=e[36],le=e[37],ve=e[38],ye=e[39],I=e[40],ce=e[41],Ne=e[42],Me=e[43],Ee=e[44];if(Me!==Symbol.for("react.early_return_sentinel"))return Me;let Oe;e[59]!==F||e[60]!==Ee?(Oe=n.jsx("div",{className:Ee,children:F}),e[59]=F,e[60]=Ee,e[61]=Oe):Oe=e[61];let Ve;e[62]!==ae||e[63]!==q||e[64]!==ie||e[65]!==Oe?(Ve=n.jsx(ae,{items:q,strategy:ie,children:Oe}),e[62]=ae,e[63]=q,e[64]=ie,e[65]=Oe,e[66]=Ve):Ve=e[66];let Fe;e[67]!==L||e[68]!==O||e[69]!==g?(Fe=O?n.jsx("div",{className:Pe("cursor-grabbing shadow-lg ring-1 ring-border/60",fs(O,!1)),children:n.jsx(ms,{section:O,raw:L,meta:g})}):null,e[67]=L,e[68]=O,e[69]=g,e[70]=Fe):Fe=e[70];let Be;e[71]!==Fe?(Be=n.jsx(us,{dropAnimation:null,children:Fe}),e[71]=Fe,e[72]=Be):Be=e[72];let Ke;e[73]!==X||e[74]!==le||e[75]!==ve||e[76]!==ye||e[77]!==I||e[78]!==ce||e[79]!==Ve||e[80]!==Be?(Ke=n.jsxs(X,{sensors:le,collisionDetection:ve,onDragStart:ye,onDragEnd:I,onDragCancel:ce,children:[Ve,Be]}),e[73]=X,e[74]=le,e[75]=ve,e[76]=ye,e[77]=I,e[78]=ce,e[79]=Ve,e[80]=Be,e[81]=Ke):Ke=e[81];const Le=!se;let Ie;e[82]===Symbol.for("react.memo_cache_sentinel")?(Ie=n.jsx(cn,{size:14}),e[82]=Ie):Ie=e[82];let Ae;e[83]!==w||e[84]!==Le?(Ae=n.jsxs(Ye,{type:"button",variant:"outline",size:"sm",className:"mt-2 w-full",disabled:Le,onClick:w,children:[Ie,"Add section"]}),e[83]=w,e[84]=Le,e[85]=Ae):Ae=e[85];let ue;return e[86]!==Ne||e[87]!==Ke||e[88]!==Ae?(ue=n.jsxs("div",{className:Ne,children:[Ke,Ae]}),e[86]=Ne,e[87]=Ke,e[88]=Ae,e[89]=ue):ue=e[89],ue}function Yr(f){return f.id}function Bn(f){const e=Ge.c(38),{open:r,initialName:u,autoLabel:d,isPending:g,onSubmit:y,onOpenChange:p}=f,v=g===void 0?!1:g,[b,x]=k.useState(u),[C,N]=k.useState(r);r!==C&&(N(r),r&&x(u));let j;e[0]!==v||e[1]!==p?(j=me=>{!me&&!v&&p(!1)},e[0]=v,e[1]=p,e[2]=j):j=e[2];const D=j;let o;e[3]!==v||e[4]!==b||e[5]!==y?(o=async me=>{me.preventDefault(),!v&&await y(b.trim())},e[3]=v,e[4]=b,e[5]=y,e[6]=o):o=e[6];const w=o;let i;e[7]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(mr,{children:"Rename variant"}),e[7]=i):i=e[7];const se=d||"the rule";let Q;e[8]!==se?(Q=n.jsxs(fr,{children:[i,n.jsxs(pr,{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:se}),"."]})]}),e[8]=se,e[9]=Q):Q=e[9];let B;e[10]===Symbol.for("react.memo_cache_sentinel")?(B=n.jsx("label",{htmlFor:"variant-rename-name",className:"text-xs font-medium text-muted-foreground",children:"Name"}),e[10]=B):B=e[10];let c;e[11]===Symbol.for("react.memo_cache_sentinel")?(c=me=>x(me.target.value),e[11]=c):c=e[11];let T;e[12]!==d||e[13]!==v||e[14]!==b?(T=n.jsxs("div",{className:"space-y-1.5 py-4",children:[B,n.jsx(Sr,{id:"variant-rename-name",value:b,onChange:c,placeholder:d,autoFocus:!0,disabled:v})]}),e[12]=d,e[13]=v,e[14]=b,e[15]=T):T=e[15];let de;e[16]!==p?(de=()=>p(!1),e[16]=p,e[17]=de):de=e[17];let P;e[18]!==v||e[19]!==de?(P=n.jsx(Ye,{type:"button",variant:"outline",onClick:de,disabled:v,children:"Cancel"}),e[18]=v,e[19]=de,e[20]=P):P=e[20];let be;e[21]!==v?(be=v?n.jsxs(n.Fragment,{children:[n.jsx(Hn,{size:14,className:"animate-spin"}),"Saving…"]}):"Save",e[21]=v,e[22]=be):be=e[22];let E;e[23]!==v||e[24]!==be?(E=n.jsx(Ye,{type:"submit",disabled:v,children:be}),e[23]=v,e[24]=be,e[25]=E):E=e[25];let he;e[26]!==P||e[27]!==E?(he=n.jsxs(hr,{children:[P,E]}),e[26]=P,e[27]=E,e[28]=he):he=e[28];let K;e[29]!==w||e[30]!==he||e[31]!==Q||e[32]!==T?(K=n.jsx(gr,{className:"sm:max-w-md",children:n.jsxs("form",{onSubmit:w,children:[Q,T,he]})}),e[29]=w,e[30]=he,e[31]=Q,e[32]=T,e[33]=K):K=e[33];let oe;return e[34]!==D||e[35]!==r||e[36]!==K?(oe=n.jsx(vr,{open:r,onOpenChange:D,children:K}),e[34]=D,e[35]=r,e[36]=K,e[37]=oe):oe=e[37],oe}const Jr="oklch(0.65 0.15 160)",ps="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 un(f){const e=Ge.c(5),{rule:r,matchers:u}=f,d=r?.__resolveType??"";let g;if(e[0]!==u||e[1]!==d){const b=u.find(x=>x.resolveType===d)?.iconName??ka(d);g=lr(b),e[0]=u,e[1]=d,e[2]=g}else g=e[2];const y=g;if(!y)return null;let p;return e[3]!==y?(p=n.jsx(y,{size:14,className:"shrink-0"}),e[3]=y,e[4]=p):p=e[4],p}function Ln(f){return f.map(e=>`${e.label}|${e.rule?.__resolveType??""}`).join(`
|
|
2
|
-
`)}function on(f){return f.map((e,r)=>({id:crypto.randomUUID(),index:r,variant:e}))}function Qr(f){return f.map((e,r)=>({...e,index:r}))}function Xr(f){const e=Ge.c(55),{entry:r,sortableId:u,isActive:d,canDelete:g,decofile:y,meta:p,matchers:v,onSelect:b,onRename:x,onDuplicate:C,onDelete:N}=f;let j;e[0]!==u?(j={id:u,animateLayoutChanges:to},e[0]=u,e[1]=j):j=e[1];const{attributes:D,listeners:o,setNodeRef:w,transform:i,isDragging:se}=as(j);let Q;e[2]!==i?(Q=rs.Transform.toString(i?{...i,y:0}:null),e[2]=i,e[3]=Q):Q=e[3];const B=se?0:void 0;let c;e[4]!==Q||e[5]!==B?(c={transform:Q,opacity:B},e[4]=Q,e[5]=B,e[6]=c):c=e[6];const T=c,de=p??void 0;let P;e[7]!==y||e[8]!==r.variant.rule||e[9]!==de?(P=Rt(r.variant.rule,y,de),e[7]=y,e[8]=r.variant.rule,e[9]=de,e[10]=P):P=e[10];const be=P,E=d?ps:"text-muted-foreground hover:bg-muted hover:text-foreground",he=se?"cursor-grabbing":"cursor-grab";let K;e[11]!==E||e[12]!==he?(K=Pe("group shrink-0 inline-flex items-center rounded-md transition-colors touch-none",E,he),e[11]=E,e[12]=he,e[13]=K):K=e[13];let oe;e[14]!==be||e[15]!==v?(oe=n.jsx(un,{rule:be,matchers:v}),e[14]=be,e[15]=v,e[16]=oe):oe=e[16];let me;e[17]!==r.variant.label?(me=n.jsx("span",{className:"truncate",children:r.variant.label}),e[17]=r.variant.label,e[18]=me):me=e[18];let we;e[19]!==D||e[20]!==o||e[21]!==b||e[22]!==oe||e[23]!==me?(we=n.jsxs("button",{type:"button",...D,...o,onClick:b,className:"inline-flex items-center gap-1.5 h-8 pl-3 pr-1.5 text-sm font-medium cursor-[inherit]",children:[oe,me]}),e[19]=D,e[20]=o,e[21]=b,e[22]=oe,e[23]=me,e[24]=we):we=e[24];const U=`Actions for ${r.variant.label}`,re=d&&"opacity-100";let W;e[25]!==re?(W=Pe("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",re),e[25]=re,e[26]=W):W=e[26];let fe;e[27]===Symbol.for("react.memo_cache_sentinel")?(fe=n.jsx(qn,{size:12}),e[27]=fe):fe=e[27];let A;e[28]!==U||e[29]!==W?(A=n.jsx(Xn,{asChild:!0,children:n.jsx("button",{type:"button","aria-label":U,onClick:eo,onPointerDown:Zr,className:W,children:fe})}),e[28]=U,e[29]=W,e[30]=A):A=e[30];let _e;e[31]===Symbol.for("react.memo_cache_sentinel")?(_e=n.jsx(Mr,{size:14}),e[31]=_e):_e=e[31];let $;e[32]!==x?($=n.jsxs(it,{onClick:x,children:[_e,"Rename"]}),e[32]=x,e[33]=$):$=e[33];let ge;e[34]===Symbol.for("react.memo_cache_sentinel")?(ge=n.jsx(Jn,{size:14}),e[34]=ge):ge=e[34];let ae;e[35]!==C?(ae=n.jsxs(it,{onClick:C,children:[ge,"Duplicate"]}),e[35]=C,e[36]=ae):ae=e[36];let X;e[37]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(jr,{}),e[37]=X):X=e[37];const L=!g;let O;e[38]===Symbol.for("react.memo_cache_sentinel")?(O=n.jsx(Qn,{size:14}),e[38]=O):O=e[38];let F;e[39]!==N||e[40]!==L?(F=n.jsxs(it,{variant:"destructive",disabled:L,onClick:N,children:[O,"Delete"]}),e[39]=N,e[40]=L,e[41]=F):F=e[41];let q;e[42]!==$||e[43]!==ae||e[44]!==F?(q=n.jsxs(es,{align:"start",className:"w-36",children:[$,ae,X,F]}),e[42]=$,e[43]=ae,e[44]=F,e[45]=q):q=e[45];let ie;e[46]!==A||e[47]!==q?(ie=n.jsxs(Zn,{children:[A,q]}),e[46]=A,e[47]=q,e[48]=ie):ie=e[48];let le;return e[49]!==w||e[50]!==T||e[51]!==we||e[52]!==ie||e[53]!==K?(le=n.jsxs("div",{ref:w,style:T,className:K,children:[we,ie]}),e[49]=w,e[50]=T,e[51]=we,e[52]=ie,e[53]=K,e[54]=le):le=e[54],le}function Zr(f){return f.stopPropagation()}function eo(f){return f.stopPropagation()}function to(){return!1}function no(f){const e=Ge.c(13),{variant:r,decofile:u,meta:d,matchers:g}=f,y=d??void 0;let p;e[0]!==u||e[1]!==y||e[2]!==r.rule?(p=Rt(r.rule,u,y),e[0]=u,e[1]=y,e[2]=r.rule,e[3]=p):p=e[3];const v=p;let b;e[4]===Symbol.for("react.memo_cache_sentinel")?(b=Pe("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",ps),e[4]=b):b=e[4];let x;e[5]!==v||e[6]!==g?(x=n.jsx(un,{rule:v,matchers:g}),e[5]=v,e[6]=g,e[7]=x):x=e[7];let C;e[8]!==r.label?(C=n.jsx("span",{className:"truncate",children:r.label}),e[8]=r.label,e[9]=C):C=e[9];let N;return e[10]!==x||e[11]!==C?(N=n.jsxs("div",{className:b,children:[x,C]}),e[10]=x,e[11]=C,e[12]=N):N=e[12],N}function so(f){const e=Ge.c(78),{listKey:r,variants:u,activeIndex:d,decofile:g,meta:y,matchers:p,onSelect:v,onReorder:b,onRename:x,onDuplicate:C,onDelete:N,onAdd:j}=f;let D;e[0]!==u?(D=()=>on(u),e[0]=u,e[1]=D):D=e[1];const[o,w]=k.useState(D),[i,se]=k.useState(null),[Q,B]=k.useState(r),[c,T]=k.useState(u.length);let de;e[2]!==u?(de=()=>Ln(u),e[2]=u,e[3]=de):de=e[3];const[P,be]=k.useState(de),E=k.useRef(!1),he=Ln(u);Q!==r?(B(r),T(u.length),be(he),w(on(u))):c!==u.length?(T(u.length),be(he),w(on(u))):P!==he&&(be(he),w(ue=>u.map((Z,R)=>({id:ue[R]?.id??crypto.randomUUID(),index:R,variant:Z}))));let K;e[4]===Symbol.for("react.memo_cache_sentinel")?(K={activationConstraint:{distance:8}},e[4]=K):K=e[4];let oe;e[5]===Symbol.for("react.memo_cache_sentinel")?(oe={coordinateGetter:os},e[5]=oe):oe=e[5];const me=ts(It(ss,K),It(ns,oe));let we;e[6]!==o?(we=o.map(ao),e[6]=o,e[7]=we):we=e[7];const U=we,re=u.length>1;let W;e[8]!==o?(W=ue=>{const Z=String(ue.active.id);se(o.find(R=>R.id===Z)??null)},e[8]=o,e[9]=W):W=e[9];const fe=W;let A;e[10]!==U||e[11]!==b?(A=ue=>{se(null);const{active:Z,over:R}=ue;if(!R||Z.id===R.id)return;const z=U.indexOf(String(Z.id)),Ce=U.indexOf(String(R.id));z===-1||Ce===-1||(w(pe=>Qr(Dt([...pe],z,Ce))),E.current=!0,requestAnimationFrame(()=>{E.current=!1}),b(z,Ce))},e[10]=U,e[11]=b,e[12]=A):A=e[12];const _e=A;let $;e[13]===Symbol.for("react.memo_cache_sentinel")?($=()=>{se(null)},e[13]=$):$=e[13];const ge=$;let ae,X,L,O,F,q,ie,le,ve,ye,I,ce;if(e[14]!==i||e[15]!==d||e[16]!==re||e[17]!==g||e[18]!==o||e[19]!==U||e[20]!==_e||e[21]!==fe||e[22]!==p||e[23]!==y||e[24]!==N||e[25]!==C||e[26]!==x||e[27]!==v||e[28]!==me){const ue=R=>{E.current||v(R)};I="flex items-center border-b shrink-0";const Z=i&&"cursor-grabbing";e[41]!==Z?(ye=Pe("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]=ye):ye=e[42],X=is,F=me,q=ls,ie=fe,le=_e,ve=ge,ae=cs,ce=U,L=wr,O=o.map(R=>n.jsx(Xr,{sortableId:R.id,entry:R,isActive:R.index===d,canDelete:re,decofile:g,meta:y,matchers:p,onSelect:()=>ue(R.index),onRename:()=>x(R.index),onDuplicate:()=>C(R.index),onDelete:()=>N(R.index)},R.id)),e[14]=i,e[15]=d,e[16]=re,e[17]=g,e[18]=o,e[19]=U,e[20]=_e,e[21]=fe,e[22]=p,e[23]=y,e[24]=N,e[25]=C,e[26]=x,e[27]=v,e[28]=me,e[29]=ae,e[30]=X,e[31]=L,e[32]=O,e[33]=F,e[34]=q,e[35]=ie,e[36]=le,e[37]=ve,e[38]=ye,e[39]=I,e[40]=ce}else ae=e[29],X=e[30],L=e[31],O=e[32],F=e[33],q=e[34],ie=e[35],le=e[36],ve=e[37],ye=e[38],I=e[39],ce=e[40];let Ne;e[43]!==ae||e[44]!==L||e[45]!==O||e[46]!==ce?(Ne=n.jsx(ae,{items:ce,strategy:L,children:O}),e[43]=ae,e[44]=L,e[45]=O,e[46]=ce,e[47]=Ne):Ne=e[47];let Me;e[48]!==i||e[49]!==g||e[50]!==p||e[51]!==y?(Me=i?n.jsx(no,{variant:i.variant,decofile:g,meta:y,matchers:p}):null,e[48]=i,e[49]=g,e[50]=p,e[51]=y,e[52]=Me):Me=e[52];let Ee;e[53]!==Me?(Ee=n.jsx(us,{dropAnimation:null,children:Me}),e[53]=Me,e[54]=Ee):Ee=e[54];let Oe;e[55]!==X||e[56]!==F||e[57]!==q||e[58]!==ie||e[59]!==le||e[60]!==ve||e[61]!==Ne||e[62]!==Ee?(Oe=n.jsxs(X,{sensors:F,collisionDetection:q,onDragStart:ie,onDragEnd:le,onDragCancel:ve,children:[Ne,Ee]}),e[55]=X,e[56]=F,e[57]=q,e[58]=ie,e[59]=le,e[60]=ve,e[61]=Ne,e[62]=Ee,e[63]=Oe):Oe=e[63];let Ve;e[64]!==ye||e[65]!==Oe?(Ve=n.jsx("div",{className:ye,children:Oe}),e[64]=ye,e[65]=Oe,e[66]=Ve):Ve=e[66];let Fe;e[67]===Symbol.for("react.memo_cache_sentinel")?(Fe={color:Jr},e[67]=Fe):Fe=e[67];let Be;e[68]===Symbol.for("react.memo_cache_sentinel")?(Be=n.jsx(cn,{size:14}),e[68]=Be):Be=e[68];let Ke;e[69]!==j?(Ke=n.jsx(ft,{asChild:!0,children:n.jsx(Ye,{type:"button",variant:"ghost",size:"icon","aria-label":"Add variant",className:"size-8 shrink-0 cursor-pointer",style:Fe,onClick:j,children:Be})}),e[69]=j,e[70]=Ke):Ke=e[70];let Le;e[71]===Symbol.for("react.memo_cache_sentinel")?(Le=n.jsx(pt,{side:"bottom",children:"Add variant"}),e[71]=Le):Le=e[71];let Ie;e[72]!==Ke?(Ie=n.jsx("div",{className:"shrink-0 pr-3 pl-1 py-2",children:n.jsxs(mt,{children:[Ke,Le]})}),e[72]=Ke,e[73]=Ie):Ie=e[73];let Ae;return e[74]!==I||e[75]!==Ve||e[76]!==Ie?(Ae=n.jsxs("div",{className:I,children:[Ve,Ie]}),e[74]=I,e[75]=Ve,e[76]=Ie,e[77]=Ae):Ae=e[77],Ae}function ao(f){return f.id}function Fn(f){const e=Ge.c(15),{schema:r,value:u,onChange:d,meta:g,decofile:y,onSaveReferencedBlock:p,sandbox:v}=f;let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b=[],e[0]=b):b=e[0];const[x,C]=k.useState(b);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:()=>C([]),className:"flex shrink-0 items-center gap-0.5 rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",title:"Back to rule",children:n.jsx(or,{className:"size-3.5"})}),x.map((o,w)=>{const i=w===x.length-1;return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[w>0&&n.jsx(Wn,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>C(x.slice(0,w+1)),title:o,className:Pe("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors hover:bg-accent hover:text-accent-foreground",i?"font-medium text-foreground":"text-muted-foreground"),children:o})]},`${o}-${w}`)})]}),e[1]=x,e[2]=N):N=e[2];let j;e[3]!==x||e[4]!==y||e[5]!==g||e[6]!==d||e[7]!==p||e[8]!==v||e[9]!==r||e[10]!==u?(j=n.jsx(Gn,{schema:r,value:u,onChange:d,basePath:"",breadcrumbPath:x,onBreadcrumbChange:C,meta:g,decofile:y,onSaveReferencedBlock:p,sandbox:v}),e[3]=x,e[4]=y,e[5]=g,e[6]=d,e[7]=p,e[8]=v,e[9]=r,e[10]=u,e[11]=j):j=e[11];let D;return e[12]!==N||e[13]!==j?(D=n.jsxs("div",{className:"space-y-2",children:[N,j]}),e[12]=N,e[13]=j,e[14]=D):D=e[14],D}function In(f){const e=Ge.c(21),{activeSchema:r,formValue:u,formResetKey:d,onFormChange:g,onBreadcrumbChange:y,breadcrumbPath:p,emptyMessage:v,beforeForm:b,seoResolveType:x,siteDefaultSeo:C,meta:N,decofile:j,onSaveReferencedBlock:D,sandbox:o}=f;let w;e[0]!==p?(w=p===void 0?[]:p,e[0]=p,e[1]=w):w=e[1];const i=w;let se;e[2]!==r||e[3]!==i||e[4]!==j||e[5]!==d||e[6]!==u||e[7]!==N||e[8]!==y||e[9]!==g||e[10]!==D||e[11]!==o||e[12]!==x||e[13]!==C?(se=r&&u?x?n.jsx(Ar,{schema:r,resolveType:x,value:u,formResetKey:d,onChange:g,onBreadcrumbChange:y,siteDefaultSeo:C}):n.jsx(Gn,{schema:r,value:u,onChange:g,basePath:"",breadcrumbPath:i,onBreadcrumbChange:y,meta:N,decofile:j,onSaveReferencedBlock:D,sandbox:o},d):null,e[2]=r,e[3]=i,e[4]=j,e[5]=d,e[6]=u,e[7]=N,e[8]=y,e[9]=g,e[10]=D,e[11]=o,e[12]=x,e[13]=C,e[14]=se):se=e[14];const Q=se;let B;e[15]!==v||e[16]!==Q?(B=Q??n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:v}),e[15]=v,e[16]=Q,e[17]=B):B=e[17];let c;return e[18]!==b||e[19]!==B?(c=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:[b,B]})}),e[18]=b,e[19]=B,e[20]=c):c=e[20],c}const ro="text-[oklch(0.45_0.15_160)] bg-[oklch(0.65_0.15_160/0.18)] dark:text-[oklch(0.78_0.15_160)] dark:bg-[oklch(0.65_0.15_160/0.22)]";function oo(f,e){return La(f,e,et)}function io(f){const e=Ge.c(13),{pageKey:r,initialName:u,initialPath:d,onFieldChange:g}=f,[y,p]=k.useState(u),[v,b]=k.useState(d),[x,C]=k.useState(r);x!==r&&(C(r),p(u),b(d));let N;e[0]!==g?(N=i=>{p(i.target.value),g("name",i.target.value)},e[0]=g,e[1]=N):N=e[1];let j;e[2]!==y||e[3]!==N?(j=n.jsx("input",{type:"text",value:y,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]=y,e[3]=N,e[4]=j):j=e[4];let D;e[5]!==g?(D=i=>{b(i.target.value),g("path",i.target.value)},e[5]=g,e[6]=D):D=e[6];let o;e[7]!==v||e[8]!==D?(o=n.jsx("input",{type:"text",value:v,onChange:D,className:"w-full bg-transparent text-xs text-muted-foreground truncate outline-none border-none p-0 focus:ring-0 placeholder:text-muted-foreground",placeholder:"/path"}),e[7]=v,e[8]=D,e[9]=o):o=e[9];let w;return e[10]!==j||e[11]!==o?(w=n.jsxs("div",{className:"space-y-1",children:[j,o]}),e[10]=j,e[11]=o,e[12]=w):w=e[12],w}function zn(f){const e=Ge.c(6),{onClick:r}=f;let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(Yn,{size:14}),e[0]=u):u=e[0];let d;e[1]!==r?(d=n.jsx(ft,{asChild:!0,children:n.jsx(Ye,{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:u})}),e[1]=r,e[2]=d):d=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(pt,{side:"bottom",children:"Add variant"}),e[3]=g):g=e[3];let y;return e[4]!==d?(y=n.jsxs(mt,{children:[d,g]}),e[4]=d,e[5]=y):y=e[5],y}function Gl({orgSlug:f,virtualMcpId:e,branch:r,previewReady:u=!0,previewUrl:d,currentPath:g,activePageBlockKey:y=null,activeGlobalBlockKey:p=null,externalSelectedIndex:v,onSaved:b,initialEditSeo:x=!1,onExitSeo:C,onViewJsonFile:N,onVariantPreviewOverride:j}){const D=u?{orgSlug:f,virtualMcpId:e,branch:r,previewUrl:d}:null,{data:o,isLoading:w}=wa(D),{data:i,isLoading:se}=Na(D),Q=Ra(),B=Q?.entity?.id===e?Q.entity.metadata?.siteSlug??null:null,[c,T]=k.useState(null),[de,P]=k.useState(null),[be,E]=k.useState(null),[he,K]=k.useState(0),[oe,me]=k.useState(void 0),[we,U]=k.useState(null),[re,W]=k.useState(null),[fe,A]=k.useState([]),[_e,$]=k.useState(0),[ge,ae]=k.useState(null),[X,L]=k.useState(null),[O,F]=k.useState(null),[q,ie]=k.useState(!0),[le,ve]=k.useState(!1),[ye,I]=k.useState(!1),[ce,Ne]=k.useState(x),[Me,Ee]=k.useState(x);x&&!Me&&(Ee(!0),Ne(!0),T(null),P(null),E(null),A([])),!x&&Me&&Ee(!1);const[Oe,Ve]=k.useState(null),[Fe,Be]=k.useState(void 0),[Ke,Le]=k.useState([]),[Ie,Ae]=k.useState(0),[ue,Z]=k.useState(0),[R,z]=k.useState(null),[Ce,pe]=k.useState(null),[Qe,dn]=k.useState(null),hs=ha(),gs=`${f}/${e}/${r}`,zt=Da({orgSlug:f,virtualMcpId:e,branch:r}),[vs,Ss]=k.useState(g),[bs,ys]=k.useState(y),[xs,_s]=k.useState(p);(vs!==g||bs!==y||xs!==p)&&(queueMicrotask(()=>zt.flush()),Ss(g),ys(y),_s(p),T(null),P(null),E(null),K(0),U(null),W(null),Z(0),z(null),pe(null),A([]),$(t=>t+1),Ne(!1),Ve(null),Be(void 0),Le([]),Ae(t=>t+1));const je=Va({orgSlug:f,virtualMcpId:e,branch:r}),Vt=Ya((t,s)=>{je.mutate({blockKey:t,data:s},{onSuccess:()=>b?.(),onError:a=>te.error(`Save failed: ${a.message}`)})}),Ht=Ca({orgSlug:f,virtualMcpId:e,branch:r}),[xt,Ct]=k.useState(!1),Ut=k.useRef(null),ht=k.useRef(null),gt=k.useRef(null),Gt=k.useRef({}),We=k.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null});if(!u||w||se)return n.jsx("div",{className:"h-full w-full flex items-center justify-center",children:n.jsx(Hn,{size:20,className:"animate-spin text-muted-foreground"})});if(!o||!i)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 js=Ta(o),ke=!!p,ze=ke?null:Pa(js,g,y),_=ke?p:ze?.key??null,Wt=ke&&p?o[p]:void 0,mn=ke&&p&&Wt?Aa(p,Wt):ke&&p?p:"",Tt=!ke&&_&&o[_]?o[_]:null,qt=ce&&o&&i&&_&&ze?$n(o,{kind:"page",pageKey:_,pageName:String(ze.name??""),path:String(ze.path??"")},i):null,ks=ce?Tt?.seo:void 0,Yt=Fe!==void 0?Fe:ks,ws=ce?Nr(Yt):void 0,Ns=qt?.seoTypeOptions??[],Rs=ce&&i?Rr(i):"",fn=Oe??ws??{},Jt=ce&&qt?Dr(fn,qt):null,Ds=ce&&Jt&&Vr(Yt)?$t(Jt,i):null,Vs=ce?Cr(o,i)?.seoData:void 0,$e=ke?[{label:"Default",sections:[{__resolveType:p}]}]:oo(Tt?.sections,o??{}),Pt=$e.length>1,De=Math.min(he,$e.length-1),tt=$e[De],Y=tt?.sections??[],Te=Ot(Y,o),pn=!ke&&Ma(Tt?.sections);if(ke&&p&&Qe!==p){dn(p);const t=Y[0],s=Te[0];if(t&&s){T(0),Z(0),A([]);const a=ut(t,s,o);a&&(P(a.data),E(a.resolveType),pe(null),z(null))}}!ke&&Qe!==null&&dn(null),We.current={rawSections:Y,parsedSections:Te,decofile:o??{},activePageKey:_,pageVariants:$e,variantIndex:De,sectionVariantIndex:ue,selectedSectionIndex:c};const Cs=()=>({multivariate:pn,index:De,variants:$e.map(t=>({rule:t.rule}))}),hn=(t,s)=>{if(!j)return;if(!_||!pn||t.length<=1){j(null);return}const a=En(_,{multivariate:!0,index:s,variants:t},o,i);j(a.length>0?a:null)},vt=(t,s,a)=>{if(!j)return;if(!_){j(null);return}const l=Cs(),m=En(_,l,o,i);if(!t||s<0){j(m.length>0?m:null);return}const S=er({pageKey:_,page:l,sectionIndex:s,sectionLazy:Te[s]?.isLazy??!1,mvObj:t,selectedVariantIndex:a,decofile:o,meta:i}),h=[...m,...S];j(h.length>0?h:null)},nt=(t,s,a,l=c??-1,m=!1)=>{const S=Je(t,s);if(!S){P(null),E(null),pe(null),z(null),m&&vt(null,l,a);return}const V=Cn(S,et)[a];if(!V){P(null),E(null),pe(null),z(null),m&&vt(null,l,a);return}const ne=Fa(V.value,o);P(ne?.data??null),E(ne?.resolveType??null);const{resolveType:M,formValue:H}=kt(V.rule,o,i??void 0);pe(M),z(H),m&&vt(S,l,a)};if(v!==void 0&&v!==oe&&(me(v??null),typeof v=="number")){const t=Y[v],s=Te[v];if(t&&s)if(T(v),Z(0),A([]),$(a=>a+1),s.isMultivariate)nt(t,s,0,v);else{const a=ut(t,s,o);a?(P(a.data),E(a.resolveType)):(P(null),E(null)),pe(null),z(null)}}const At={orgSlug:f,virtualMcpId:e,branch:r,previewUrl:d??void 0,siteSlug:B},Qt=be&&i?$t(be,i):null,He=(t,s)=>{if(!_)return;const a=Nt(o,_,t,De,$e);je.mutate({blockKey:_,data:a},{onSuccess:()=>s?.onSuccess?.()??b?.(),onError:l=>te.error(`Save failed: ${l.message}`)})},St=()=>{T(null),P(null),E(null),Z(0),z(null),pe(null),A([]),$(t=>t+1)},Ts=(t,s)=>{Ut.current&&clearTimeout(Ut.current);const a=We.current.sectionVariantIndex;Ut.current=setTimeout(()=>{const{rawSections:l,parsedSections:m,decofile:S,activePageKey:h,pageVariants:V,variantIndex:ne}=We.current,M=l[s];if(!M)return;const H=m[s];if(!H)return;if(H.isSavedBlock){const J=H.isLazy?M.section?.__resolveType??M.__resolveType:M.__resolveType;je.mutate({blockKey:J,data:t},{onSuccess:()=>b?.(),onError:ee=>te.error(`Save failed: ${ee.message}`)});return}if(!h)return;const G={...S[h]},xe=[...l];if(H.isMultivariate){const J=Je(M,H);if(!J||!h)return;const ee=sr(J,a,t);xe[s]=dt(M,H,ee)}else if(H.isHidden){const J=Un(M.__resolveType),ee=J?{...M.section}:{...M},Re=Array.isArray(ee.variants)?[...ee.variants]:[];Re[0]&&(Re[0]={...Re[0],value:t}),ee.variants=Re,J?xe[s]={...M,section:ee}:xe[s]=ee}else H.isLazy?xe[s]={...M,section:t}:xe[s]=t;if(V.length>1){const J=G.sections,ee=[...J?.variants??[]];ee[ne]&&(ee[ne]={...ee[ne],value:xe}),G.sections={...J,variants:ee}}else G.sections=xe;je.mutate({blockKey:h,data:G},{onSuccess:()=>b?.(),onError:J=>te.error(`Save failed: ${J.message}`)})},rn)},Ps=t=>{T(t),Z(0),A([]),$(m=>m+1);const s=Y[t],a=Te[t];if(!s||!a)return;if(a.isMultivariate){nt(s,a,0,t);return}const l=ut(s,a,o);if(!l){P(null),E(null),pe(null),z(null),vt(null,t,0);return}P(l.data),E(l.resolveType),pe(null),z(null),vt(null,t,0)},gn=t=>{const s=t;P(s),c!==null&&Ts(s,c)},Xt=t=>{if(!_||!o||!i||!ze)return;const s={kind:"page",pageKey:_,pageName:String(ze.name??""),path:String(ze.path??"")},a=$n(o,s,i);a&&zt.save(_,()=>{const l=hs.getQueryData(ga.decofile(gs))?.[_];if(!l||typeof l!="object"||l===null||Array.isArray(l))return null;const m={...l,...Gt.current};return Gt.current={},t?.raw!==void 0?{...m,seo:t.raw}:t?.inner!==void 0?Pr(s,a,m,t.inner):m})},As=(t,s)=>{_&&(Gt.current[t]=s,Xt())},Ms=(t,s)=>{if(!_)return;const a=Dt([...Y],t,s);c!==null&&(c===t?T(s):t<c&&s>=c?T(c-1):t>c&&s<=c&&T(c+1)),He(a)},Es=t=>{if(!_)return;const s=Y.filter((a,l)=>l!==t);c===t?St():c!==null&&c>t&&T(c-1),He(s)},Ks=t=>{if(!_)return;const s=Y[t];if(!s)return;const a=[...Y];a.splice(t+1,0,Za(s)),c!==null&&c>t&&T(c+1),He(a)},$s=t=>{if(!_)return;const s=Y[t],a=Te[t];if(!s||!a||a.isMultivariate)return;const l=a.isHidden?Qa(s):Xa(s);if(!l)return;const m=[...Y];m[t]=l,c===t&&St(),He(m)},Os=t=>{if(!_)return;const s=Y[t],a=Te[t];if(!s||!a||a.isMultivariate)return;const l=Ja(s);if(!l)return;const m=[...Y];m[t]=l,c===t&&St(),He(m)},Bs=t=>{if(!_)return;const s=Y[t],a=Te[t];if(!s||!a?.isSavedBlock)return;const l=ut(s,a,o);if(!l?.data)return;const{name:m,...S}=l.data,h=[...Y];a.isLazy?h[t]={...s,section:S}:h[t]=S,c===t&&St(),He(h)},Ls=t=>{if(!_)return;const s=[...Y,{__resolveType:t.resolveType}],a=s.length-1;He(s,{onSuccess:()=>{ve(!1),T(a),Z(0),A([]),$(h=>h+1);const l=s[a],m=Ot(s,o)[a];if(!l||!m)return;if(m.isMultivariate){nt(l,m,0);return}const S=ut(l,m,o);if(!S){P(null),E(null),pe(null),z(null);return}P(S.data),E(S.resolveType),pe(null),z(null)}})},Fs=t=>{if(c===null)return;const s=Y[c],a=Te[c];!s||!a?.isMultivariate||(Z(t),A([]),$(l=>l+1),nt(s,a,t,c,!0))},Is=t=>{if(c===null||!_)return;const s=Y[c],a=Te[c];if(!s||!a?.isMultivariate)return;const l=Je(s,a);if(!l)return;const m=Wa(l,t);if(!m){te.error("Cannot delete the only variant.");return}const S=[...Y];S[c]=dt(s,a,m);const h=m.variants;let V=ue;t===ue?V=Math.min(t,h.length-1):t<ue&&(V=ue-1),Z(V),A([]),$(ne=>ne+1),nt(S[c],a,V),He(S)},zs=t=>{if(c===null||!_)return;const s=Y[c],a=Te[c];if(!s||!a?.isMultivariate)return;const l=Je(s,a);if(!l)return;const m=qa(l,t),S=[...Y];S[c]=dt(s,a,m);const h=t+1;Z(h),A([]),$(V=>V+1),nt(S[c],a,h),He(S)},Hs=(t,s)=>{if(c===null||!_||t===s)return;const a=Y[c],l=Te[c];if(!a||!l?.isMultivariate)return;const m=Je(a,l);if(!m)return;const S=Ua(m,t,s),h=[...Y];h[c]=dt(a,l,S);let V=ue;ue===t?V=s:t<ue&&s>=ue?V=ue-1:t>ue&&s<=ue&&(V=ue+1),Z(V),nt(h[c],l,V),He(h)},Zt=t=>{const s=t??c;if(s===null||!_)return;const a=Y[s],l=Te[s];if(!a||!l)return;const m=Ia(a,l);if(!m){te.error("This section cannot have variants.");return}const S=[...Y];S[s]=m.section;const h=Ot(S,o)[s];if(!h?.isMultivariate){te.error("Could not add variant.");return}T(s),Z(m.newVariantIndex),A([]),$(V=>V+1),nt(m.section,h,m.newVariantIndex,s),He(S)},Us=()=>{if(c===null||!_)return;const t=Y[c],s=Te[c];if(!t||!s?.isMultivariate)return;const a=Je(t,s);if(!a)return;const l=Ga(t,s,a);if(!l){te.error("Could not remove variants.");return}const m=[...Y];m[c]=l;const S=Ot(m,o)[c];if(!S)return;Z(0),pe(null),z(null),A([]),$(V=>V+1);const h=ut(l,S,o);h?(P(h.data),E(h.resolveType)):(P(null),E(null)),vt(null,c,0),He(m)},Gs=async t=>{if(ge===null||!_)return;const s=an(t,o);if(s){te.error(s);return}const a=Y[ge],l=Te[ge];if(!a||!l)return;const m=ut(a,l,o);if(!m){te.error("This section cannot be saved as global.");return}const S={...m.data,name:t};try{await je.mutateAsync({blockKey:t,data:S});const h=[...Y];h[ge]={__resolveType:t},await je.mutateAsync({blockKey:_,data:Nt(o,_,h,De,$e)}),c===ge&&St(),ae(null),te.success(`Saved global block "${t}"`),b?.()}catch(h){te.error(h instanceof Error?h.message:"Failed to save global block")}},vn=tt?.rule;if(Pt&&c===null&&re===null&&vn){const{resolveType:t,formValue:s}=kt(vn,o??{},i??void 0);W(t),U(s)}const Mt=i?Ea(i):[],Sn=i&&o?Ka(i,o):[],Ws=!ke&&!!(d&&i&&o),bn=re&&i?$t(re,i):null,Et=()=>{ht.current&&(clearTimeout(ht.current),ht.current=null),gt.current&&(clearTimeout(gt.current),gt.current=null)},_t=async(t,s)=>{if(!(nr(s,t,i)>0))try{await Ht.mutateAsync({blockKey:t})}catch(a){te.error(a instanceof Error?a.message:"Could not delete matcher block")}},yn=t=>{ht.current&&clearTimeout(ht.current),ht.current=setTimeout(()=>{const{activePageKey:s,decofile:a,variantIndex:l}=We.current;if(!s)return;const m={...a[s]},S={...m.sections},h=[...S.variants??[]],V=h[l],ne=V?.rule;if(bt(ne,a,i)){const M=ne?.__resolveType??"",H=a[M],G=typeof H?.name=="string"?H.name:M,{__resolveType:xe,...J}=t;je.mutate({blockKey:M,data:yt(xe??"",J,G)},{onSuccess:()=>b?.(),onError:ee=>te.error(`Save failed: ${ee.message}`)});return}V&&(h[l]={...V,rule:t}),m.sections={...S,variants:h},je.mutate({blockKey:s,data:m},{onSuccess:()=>b?.(),onError:M=>te.error(`Save failed: ${M.message}`)})},rn)},qs=t=>{W(t);const s=t?{__resolveType:t}:{__resolveType:Kn};U({}),yn(s)},Ys=t=>{const s=t;U(s);const a=re?{__resolveType:re,...s}:{...s};yn(a)},Js=async t=>{Et();const{activePageKey:s,decofile:a,variantIndex:l}=We.current;if(!s)return;const m=a[s],S=m?.sections;if(!S||typeof S!="object"||Array.isArray(S))return;const h=S;if(!Array.isArray(h.variants))return;const V=[...h.variants],ne=V[l];if(!ne)return;const M=wt(ne.rule,a,i),H=Lt(t);V[l]={...ne,rule:H};const G={...a,[s]:{...m,sections:{...h,variants:V}}},{resolveType:xe,formValue:J}=kt(H,G,i??void 0);W(xe),U(J);try{await je.mutateAsync({blockKey:s,data:G[s]}),M&&M!==t&&await _t(M,G),b?.()}catch(ee){te.error(ee instanceof Error?ee.message:"Could not apply saved rule")}},xn=t=>{gt.current&&clearTimeout(gt.current);const{selectedSectionIndex:s,sectionVariantIndex:a}=We.current;s!==null&&(gt.current=setTimeout(()=>{const{rawSections:l,parsedSections:m,decofile:S,activePageKey:h,pageVariants:V,variantIndex:ne}=We.current;if(!h)return;const M=l[s],H=m[s];if(!M||!H?.isMultivariate)return;const G=Je(M,H);if(!G)return;const J=(G.variants??[])[a]?.rule;if(bt(J,S,i)){const Se=J?.__resolveType??"",Ue=S[Se],Xe=typeof Ue?.name=="string"?Ue.name:Se,{__resolveType:rt,...Ze}=t;je.mutate({blockKey:Se,data:yt(rt??"",Ze,Xe)},{onSuccess:()=>b?.(),onError:ot=>te.error(`Save failed: ${ot.message}`)});return}const ee=Pn(G,a,t),Re=[...l];Re[s]=dt(M,H,ee);const qe=Nt(S,h,Re,ne,V);je.mutate({blockKey:h,data:qe},{onSuccess:()=>b?.(),onError:Se=>te.error(`Save failed: ${Se.message}`)})},rn))},Qs=t=>{pe(t),z({}),xn(t?{__resolveType:t}:{__resolveType:Kn})},Xs=t=>{const s=t;z(s);const a=Ce?{__resolveType:Ce,...s}:{...s};xn(a)},Zs=async t=>{Et();const{selectedSectionIndex:s,sectionVariantIndex:a,rawSections:l,parsedSections:m,decofile:S,activePageKey:h,pageVariants:V,variantIndex:ne}=We.current;if(s===null||!h)return;const M=l[s],H=m[s];if(!M||!H?.isMultivariate)return;const G=Je(M,H);if(!G)return;const xe=G.variants??[],J=wt(xe[a]?.rule,S,i),ee=Lt(t),Re=Pn(G,a,ee),qe=[...l];qe[s]=dt(M,H,Re);const Se=Nt(S,h,qe,ne,V),Ue={...S,[h]:Se},{resolveType:Xe,formValue:rt}=kt(ee,Ue,i??void 0);pe(Xe),z(rt);try{await je.mutateAsync({blockKey:h,data:Se}),J&&J!==t&&await _t(J,Ue),b?.()}catch(Ze){te.error(Ze instanceof Error?Ze.message:"Could not apply saved rule")}};if(!ke&&!ze)return n.jsxs("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:["No page found for ",g]});if(ke&&!Wt)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:"Global block not found"});const st=c!==null?Te[c]??null:null,_n=c!==null?Y[c]:null,jn=_n&&st?.isMultivariate?Je(_n,st):null,lt=jn?Cn(jn,et):[],en=Math.min(ue,Math.max(lt.length-1,0)),Kt=lt[en]??null,ct=st?.isMultivariate===!0,kn=c!==null&&st!==null,jt=kn&&(ct||!!(Qt&&de)),ea=jt&&!ke&&st?.isSavedBlock===!0,at=ke||ea,ta=ke?mn:st?.label??"",wn=Ce&&i?$t(Ce,i):null,tn=jt&&(!ke||fe.length>0)?ke?[mn,...fe]:[ze.name,st.label,...ct&&Kt?[Kt.label]:[],...fe]:[],na=ce&&ze?[ze.name,"SEO",...Ke]:[],Nn=ce?na:at?tn.length>0?tn:[ta]:tn,Rn=()=>{if(!_)return;const t=o[_],s=za(t.sections,Y);if(!s)return;const a=Ha(s);je.mutate({blockKey:_,data:{...t,sections:s}},{onSuccess:()=>{K(a),T(null),P(null),E(null),A([]),U(null),W(null)},onError:l=>te.error(`Save failed: ${l.message}`)})},nn=(t,s,a)=>{if(!_)return;const l=o[_],m=l.sections;if(!m||typeof m!="object"||Array.isArray(m))return;const S=m;if(!Array.isArray(S.variants))return;const h=t([...S.variants]);if(!h)return;const V=tr(S,h),ne={...o,[_]:{...l,sections:V}};je.mutate({blockKey:_,data:ne[_]},{onSuccess:()=>{s?.(),a&&_t(a,ne)},onError:M=>te.error(`Save failed: ${M.message}`)})},sa=t=>{L(null),K(t),T(null),P(null),E(null),A([]);const s=$e[t]?.rule,{resolveType:a,formValue:l}=kt(s,o??{},i??void 0);W(a),U(l),hn($e.map(m=>({rule:m.rule})),t)},aa=(t,s)=>{if(t===s)return;let a=De;De===t?a=s:t<De&&s>=De?a=De-1:t>De&&s<=De&&(a=De+1),K(a);const l=Dt($e.map(m=>({rule:m.rule})),t,s);hn(l,a),nn(m=>Dt(m,t,s))},ra=t=>{const s=$e[t]?.rule,a=wt(s,o??{},i??void 0);nn(l=>l.length<=1?null:(l.splice(t,1),l),()=>{$e.length-1===1?K(0):t<De?K(De-1):t===De&&K(Math.max(0,t-1)),T(null),P(null),E(null),A([]),U(null),W(null)},a)},oa=t=>{nn(s=>ar(s,t),()=>{K(t+1),T(null),P(null),E(null),A([]),U(null),W(null)})},ia=async(t,s)=>{Et();const a=We.current.activePageKey,l=We.current.decofile;if(!a)return;const m=l[a],S=m.sections;if(!S||typeof S!="object"||Array.isArray(S))return;const h=S;if(!Array.isArray(h.variants))return;const V=[...h.variants],ne=V[t];if(!ne?.rule||typeof ne.rule!="object"){te.error("This variant has no matcher rule to rename.");return}const M=ne.rule,H=s.trim();Ct(!0);try{if(!H){if(!bt(M,l,i)){L(null);return}const qe=M.__resolveType??"";V[t]={...ne,rule:An(M,l,i)};const Se={...l,[a]:{...m,sections:{...h,variants:V}}};await je.mutateAsync({blockKey:a,data:Se[a]}),await _t(qe,Se),L(null),b?.();return}const G=Mn(M,l,i);if(!G){te.error("Could not read this variant's matcher rule.");return}if(G.blockKey){await je.mutateAsync({blockKey:G.blockKey,data:yt(G.resolveType,G.data,H)}),L(null),b?.();return}const xe=sn(H),J=an(xe,l);if(J){te.error(J);return}const ee=yt(G.resolveType,G.data,H);let Re=null;try{await je.mutateAsync({blockKey:xe,data:ee}),Re=xe,V[t]={...ne,rule:Lt(xe)},await je.mutateAsync({blockKey:a,data:{...m,sections:{...h,variants:V}}}),Re=null}catch(qe){throw Re&&await Ht.mutateAsync({blockKey:Re}).catch(()=>{}),qe}L(null),te.success(`Saved matcher as global block "${H}"`),b?.()}catch(G){te.error(G instanceof Error?G.message:"Failed to rename variant")}finally{Ct(!1)}},la=async(t,s)=>{Et();const{selectedSectionIndex:a,rawSections:l,parsedSections:m,decofile:S,activePageKey:h,pageVariants:V,variantIndex:ne}=We.current;if(a===null||!h)return;const M=l[a],H=m[a];if(!M||!H?.isMultivariate)return;const G=Je(M,H);if(!G)return;const xe=G.variants??[],J=xe[t];if(!J?.rule||typeof J.rule!="object"){te.error("This variant has no matcher rule to rename.");return}const ee=J.rule,Re=s.trim();Ct(!0);const qe=async Se=>{const Ue={...G,variants:Se},Xe=[...l];Xe[a]=dt(M,H,Ue);const rt=Nt(S,h,Xe,ne,V);return await je.mutateAsync({blockKey:h,data:rt}),{...S,[h]:rt}};try{if(!Re){if(!bt(ee,S,i)){F(null);return}const ot=ee.__resolveType??"",Vn=[...xe];Vn[t]={...J,rule:An(ee,S,i)};const pa=await qe(Vn);await _t(ot,pa),F(null),b?.();return}const Se=Mn(ee,S,i);if(!Se){te.error("Could not read this variant's matcher rule.");return}if(Se.blockKey){await je.mutateAsync({blockKey:Se.blockKey,data:yt(Se.resolveType,Se.data,Re)}),F(null),b?.();return}const Ue=sn(Re),Xe=an(Ue,S);if(Xe){te.error(Xe);return}const rt=yt(Se.resolveType,Se.data,Re);let Ze=null;try{await je.mutateAsync({blockKey:Ue,data:rt}),Ze=Ue;const ot=[...xe];ot[t]={...J,rule:Lt(Ue)},await qe(ot),Ze=null}catch(ot){throw Ze&&await Ht.mutateAsync({blockKey:Ze}).catch(()=>{}),ot}F(null),te.success(`Saved matcher as global block "${Re}"`),b?.()}catch(Se){te.error(Se instanceof Error?Se.message:"Failed to rename variant")}finally{Ct(!1)}},Dn=()=>{St()},ca=t=>{Ve(t),Xt({inner:t})},ua=t=>{Be(t),Xt({raw:t})},da=()=>{Ve(null),Le([])},ma=()=>Ae(t=>t+1),fa=t=>{if(ce){if(t===0){zt.flush(),Ne(!1),Ve(null),Be(void 0),Le([]),Ae(a=>a+1),C?.();return}if(t===1){Le([]),Ae(a=>a+1);return}Le(Ke.slice(0,t-1)),Ae(a=>a+1);return}if(ke){A(fe.slice(0,t)),$(a=>a+1);return}if(t===0){Dn();return}if(t===1){A([]),$(a=>a+1);return}if(ct&&t===2){A([]),$(a=>a+1);return}const s=ct?2:1;A(fe.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:at||jt||ce?n.jsxs("div",{className:Pe("border-b px-3 py-2.5",at&&"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:[!ke&&Pt&&tt&&n.jsxs("button",{type:"button",onClick:Dn,title:`Editing in variant: ${tt.label}`,className:Pe("shrink-0 inline-flex items-center gap-1 rounded-md h-6 px-1.5 text-xs font-medium cursor-pointer transition-opacity hover:opacity-80",ro),children:[n.jsx(un,{rule:Rt(tt.rule,o??{},i??void 0),matchers:Mt}),n.jsx("span",{className:"max-w-[160px] truncate",children:tt.label})]}),n.jsx("nav",{"aria-label":"Editing breadcrumb",className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:Nn.map((t,s)=>{const a=s===Nn.length-1;return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[s>0&&n.jsx(Wn,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>fa(s),title:t,className:Pe("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",a?at?"font-semibold text-global-section-fg dark:text-global-section-fg-dark":"font-medium text-foreground":at?"text-foreground/80":"text-muted-foreground",at?"hover:bg-global-section/15":"hover:bg-accent hover:text-accent-foreground"),children:t})]},`${t}-${s}`)})}),at&&n.jsxs(mt,{children:[n.jsx(ft,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(dr,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),n.jsx(pt,{side:"bottom",className:"max-w-[260px]",children:"A global section is a reusable block shared across your site. Editing it here updates it everywhere it's used."})]}),kn&&!ct&&!st?.isHidden&&_&&n.jsx(zn,{onClick:()=>Zt()})]}),at&&n.jsx("p",{className:"mt-1.5 py-1.5 pl-1 text-sm leading-snug text-foreground",children:"This is a global section. Changes apply everywhere this section is used across your site."})]}):n.jsxs("div",{className:"flex items-center gap-2 border-b px-3 py-2.5",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(io,{pageKey:_,initialName:ze.name,initialPath:ze.path,onFieldChange:As})}),n.jsxs(mt,{children:[n.jsx(ft,{asChild:!0,children:n.jsx(Ye,{type:"button",variant:"ghost",size:"icon","aria-label":"Edit SEO",className:"size-7 shrink-0",onClick:()=>Ne(!0),children:n.jsx(cr,{size:14})})}),n.jsx(pt,{side:"bottom",children:"Edit SEO"})]}),n.jsxs(mt,{children:[n.jsx(ft,{asChild:!0,children:n.jsx(Ye,{type:"button",variant:"ghost",size:"icon","aria-label":"View JSON",className:"size-7 shrink-0",onClick:()=>N&&_?N(_):I(!0),children:n.jsx(ur,{size:14})})}),n.jsx(pt,{side:"bottom",children:"View JSON"})]}),n.jsx(zn,{onClick:Rn})]})}),Pt&&!jt&&!ce&&_&&n.jsx(so,{listKey:_,variants:$e,activeIndex:De,decofile:o??{},meta:i,matchers:Mt,onSelect:sa,onReorder:aa,onRename:L,onDuplicate:oa,onDelete:ra,onAdd:Rn}),ce?n.jsx(Ft,{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:Tt&&_?n.jsx(Tr,{rawSeo:Yt,innerSeo:fn,defaultResolveType:Rs,seoSchema:Ds,activeResolveType:Jt,seoTypeOptions:Ns,formResetKey:Ie,siteDefaultSeo:Vs,onBreadcrumbChange:Le,onPersistRaw:ua,onInnerChange:ca,onClearForm:da,onBumpFormKey:ma}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:"SEO schema not found for this site."})})})}):jt?n.jsxs(Ft,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[ct&<.length>0&&n.jsxs(n.Fragment,{children:[n.jsx($a,{listKey:`${_??""}:${c??""}`,variants:lt.map((t,s)=>({index:s,label:t.label})),selectedIndex:en,onSelect:Fs,onRename:F,onDuplicate:zs,onDelete:Is,onRemoveAll:Us,onReorder:Hs,onAdd:()=>Zt()}),ct&&n.jsxs("div",{className:"px-3 py-3 border-b space-y-2",children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Variant rule"}),n.jsx(Tn,{currentRt:Ce??"",currentLabel:Bt(Kt?.rule,o??{},et,i??void 0),currentGlobalKey:wt(Kt?.rule,o??{},i??void 0)??void 0,matchers:Mt,globals:Sn,onSelect:Qs,onSelectGlobal:Zs}),wn&&R&&n.jsx("div",{className:"pt-1",children:n.jsx(Fn,{schema:wn,value:R,onChange:Xs,meta:i??void 0,decofile:o,onSaveReferencedBlock:Vt,sandbox:At},`${c??"none"}:${en}:${Ce??""}`)})]})]}),n.jsx(In,{activeSchema:Qt,formValue:de,formResetKey:_e,onFormChange:gn,onBreadcrumbChange:A,breadcrumbPath:fe,emptyMessage:"No editable fields for this variant.",meta:i,decofile:o,onSaveReferencedBlock:Vt,sandbox:At})]}):ke?n.jsx(Ft,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx(In,{activeSchema:Qt,formValue:de,formResetKey:_e,onFormChange:gn,onBreadcrumbChange:A,breadcrumbPath:fe,emptyMessage:"No editable fields for this global block.",meta:i,decofile:o,onSaveReferencedBlock:Vt,sandbox:At})}):n.jsxs(Ft,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[Pt&&re!==null&&n.jsxs("div",{className:Pe("px-3 border-b",q?"pt-3 pb-5 space-y-3":"py-2"),children:[n.jsxs("button",{type:"button",onClick:()=>ie(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":q,children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Variant rule"}),q?n.jsx(ir,{className:"size-3.5 shrink-0 text-muted-foreground"}):n.jsx(rr,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),q&&n.jsxs("div",{className:Pe("space-y-3",xt&&"pointer-events-none opacity-50"),children:[n.jsx(Tn,{currentRt:re,currentLabel:Bt(tt?.rule,o??{},et,i??void 0),currentGlobalKey:wt(tt?.rule,o??{},i??void 0)??void 0,matchers:Mt,globals:Sn,onSelect:qs,onSelectGlobal:Js}),bn&&we&&n.jsx("div",{className:"space-y-3",children:n.jsx(Fn,{schema:bn,value:we,onChange:Ys,meta:i??void 0,decofile:o,onSaveReferencedBlock:Vt,sandbox:At},`${De}:${re??""}`)})]})]}),n.jsx("div",{className:"p-2 pt-3",children:n.jsx(qr,{listKey:`${_??""}-${De}`,rawSections:Y,sections:Te,meta:i,selectedIndex:c,onSelect:Ps,onReorder:Ms,onDelete:Es,onDuplicate:Ks,onMakeReusable:ae,onToggleHidden:$s,onToggleLazy:Os,onAddVariant:Zt,onDetach:Bs,onAddSection:()=>ve(!0),canAddSection:Ws})})]}),n.jsx(Oa,{open:ge!==null,onOpenChange:t=>{t||ae(null)},defaultBlockId:ge!==null?sn(Te[ge]?.label??""):"",isPending:je.isPending,onSubmit:Gs}),d&&n.jsx(Er,{open:le,onOpenChange:ve,meta:i,decofile:o,previewBaseUrl:d,onSelect:Ls}),ye&&_&&o&&n.jsx(Ba,{open:ye,onOpenChange:I,pageKey:_,decofile:o}),X!==null&&n.jsx(Bn,{open:!0,initialName:bt($e[X]?.rule,o??{},i??void 0)?Bt($e[X]?.rule,o??{},et,i??void 0):"",autoLabel:et(Rt($e[X]?.rule,o??{},i??void 0)),isPending:xt,onSubmit:async t=>{await ia(X,t)},onOpenChange:t=>{!t&&!xt&&L(null)}}),O!==null&&n.jsx(Bn,{open:!0,initialName:bt(lt[O]?.rule,o??{},i??void 0)?Bt(lt[O]?.rule,o??{},et,i??void 0):"",autoLabel:et(Rt(lt[O]?.rule,o??{},i??void 0)),isPending:xt,onSubmit:async t=>{await la(O,t)},onOpenChange:t=>{!t&&!xt&&F(null)}})]})}export{Gl as SectionsEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as T,j as t,r as Q,B as je,i as Se}from"./index-kan1E63X.js";import{i as be}from"./ChevronRight-B69CKZdN.js";import{M as fe}from"./agent-icon-Codzh2dR.js";import{S as ue}from"./scroll-area-Xtfwdb7m.js";import{r as Ne,c as ke,u as _e,a as we,i as Ce,d as Te,f as Fe,P as Re,S as Ee}from"./page-seo-form-BuiEAYj4.js";import{s as xe,p as ze}from"./index-CU99baeo.js";import{a as ge}from"./Tool01--3NfnsTB.js";import"./AlertCircle-CXfHCFxW.js";import"./SwitchHorizontal01-Bp6ZXj5h.js";import"./Settings02-C_i5syXv.js";import"./XCircle-Zk6uYFNc.js";import"./ArrowUpRight-DrIFBuVF.js";import"./ZapSquare-ZiXXTR85.js";import"./Users03-DNP40ou1.js";import"./CheckCircle-V4cMbp7k.js";import"./ChevronUp-BYmO7ni8.js";import"./ChevronDown-yYhj5xP_.js";import"./ChevronLeft-eYxyU36o.js";import"./DotsVertical-OVel04b-.js";import"./Stars02-C1ilg1eR.js";import"./Eye-DJDSbP4d.js";import"./ZoomOut-CBydRAMI.js";import"./Globe01-YUd_dhFu.js";import"./FilterLines-Ch9sNilm.js";import"./Star01-DIQdWhPq.js";import"./Globe04-Bn_dGrXD.js";import"./HardDrive-i1NQBY0F.js";import"./Key01-CzuZ2YNH.js";import"./LayoutLeft-DQ4hyaOy.js";import"./LinkExternal01-CUaKk4PO.js";import"./Monitor01-BMQf5bju.js";import"./Sun-DPvbuD5f.js";import"./Palette-DVMpwycK.js";import"./Play-Da7BpsHX.js";import"./Plus-DLu0p3LB.js";import"./SearchLg-BG10mFZp.js";import"./SearchMd-TgGSUo83.js";import"./Shield01-DWhnEyqf.js";import"./Stars01-D34hqc6C.js";import"./Trash01-BktfczUu.js";import"./Upload01-BWZGJ0bu.js";import"./User01-BE-MaNNT.js";import"./Users01-DRAatqmi.js";import"./XClose-CJbbgFu-.js";import"./X-D4V_xKxB.js";import"./Zap-DOCsW5bs.js";import"./use-clock-tick-uQ0gKwJZ.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Y55SDaZL.js";import"./tooltip-Ct27xL12.js";import"./file-type-icon-DE5lANHh.js";import"./dialog-59pZJLRI.js";import"./use-mobile-CHScOeMy.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-BwDuw3G9.js";import"./use-mcp-client-B0s_8EVJ.js";import"./auth-D-VB6PXw.js";import"./chat-context-CYJD3lpS.js";import"./hooks-DXPWHoBZ.js";import"./decopilot-sse-pool-DaS9jANP.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-BN8buKcT.js";import"./use-collections-B6Y5SE5i.js";import"./use-ai-providers-DFaFMw_I.js";import"./studio-tools-BMwxp5pS.js";import"./use-decopilot-events-EyZW0ScP.js";import"./use-organization-settings-BdRr72qh.js";import"./shell-layout-BBvvEdo0.js";import"./avatar-D50rXO9q.js";import"./required-auth-layout-s2Bxat9U.js";import"./use-org-sso-CoPgbTky.js";import"./sheet-CwpMGMQ9.js";import"./integration-icon-C9tNQbt4.js";import"./use-navigate-to-agent-BLrW4hmi.js";import"./use-connection-CCYwDyNR.js";import"./use-mcp-prompts-C9WyhCpr.js";import"./form-D9GCz4p7.js";import"./label-CShBo-xr.js";import"./input-CWK_KDxP.js";import"./select-Do7P1LSG.js";import"./switch-H7aX0suB.js";import"./index-D7FZbpdh.js";import"./drawer-CardDBvQ.js";import"./collection-search-3g2v_4Ig.js";import"./tabs-B6eIa2zt.js";import"./toggle-group-Bz1hQE3a.js";import"./sortable.esm-LdSILUfx.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-Bxwr78j_.js";import"./use-registry-connections-HtzalUOh.js";import"./useInfiniteQuery-D-FFXkXU.js";import"./use-infinite-scroll-BW9P8xBl.js";import"./extract-connection-data-C3rg-zH0.js";import"./card-CSk11DrN.js";import"./collection-tabs-NH0QHVtb.js";import"./badge-DuPrh-k9.js";import"./textarea-PSzbbOkb.js";import"./connection-form-helpers-N3pDB096.js";import"./authenticate-and-persist-oauth-CIVGnsAG.js";import"./mcp-oauth-CRmn6hwI.js";import"./useSuspenseInfiniteQuery-BfIitBar.js";import"./connect-desktop-dialog-C4RGGomP.js";import"./decopilot-D2kjmvQ8.js";import"./checkbox-DhghRz0V.js";import"./skeleton-Bvrl2WPh.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-ZqpVSrVJ.js";import"./popover-Dhad0x9g.js";import"./command-DuFRSin9.js";import"./index-BRTT5sEO.js";import"./use-org-fs-BbjnF7sq.js";import"./dropdown-menu-KRYgKsut.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CFfhXfZc.js";import"./empty-state-DdjF8vs8.js";import"./toolbar-DCCrTBZW.js";import"./preview-dialog-BvNzeY3T.js";import"./index-DHU91und.js";import"./use-mcp-tools-BTQ51TI6.js";import"./use-capability-CSJPfpi0.js";import"./shell-route-loading-XVhs5R31.js";import"./index-BNIB-FKU.js";import"./alert-dialog-Cey7j4CE.js";import"./use-debounced-autosave-BL-N3Gnu.js";import"./index-CUeWfuiR.js";import"./sidebar-DS_youLc.js";import"./search-input-DQ6UrvBE.js";import"./github-repo-picker-CH_d9yqP.js";import"./use-debounced-value-DpZKy_Iw.js";import"./use-secrets-CnXSg99O.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-PleSLbFB.js";import"./automation-runs-DsB-LYLH.js";import"./table-qhDDbEpO.js";import"./use-members-Cho9vXKF.js";import"./use-org-auth-client-T24QkUeZ.js";import"./task-status-D9utHgZw.js";import"./use-automations-uZj9fR0Z.js";import"./use-file-configs-hHuL8QEC.js";import"./monaco-editor-DCdpc6i0.js";import"./select-model-DlSLJO4Y.js";import"./automation-list-row-7n10xHBN.js";function U(n){return typeof n=="string"&&n.trim()?n:void 0}function he(n,e){if(n){if(e)try{const i=new URL(n,e).href;return xe(i)}catch{return}return xe(n)}}function Pe(n){if(!n)return{};const e=U(n.title),i=U(n.titleTemplate);return{title:e&&i?.includes("%s")?i.replace(/%s/g,e):e,description:U(n.description),image:U(n.image),favicon:U(n.favicon)}}function Oe(n){if(!n)return"example.com";try{return new URL(n).host}catch{return"example.com"}}const Z="Your page title",ee="Your meta description will appear here.",Le=[{id:"google",label:"Google",color:"#4285F4",layout:"search"},{id:"facebook",label:"Facebook",color:"#1877F2",layout:"card"},{id:"twitter",label:"X (Twitter)",color:"#0f1419",layout:"card"},{id:"linkedin",label:"LinkedIn",color:"#0A66C2",layout:"card"},{id:"whatsapp",label:"WhatsApp",color:"#25D366",layout:"chat"},{id:"telegram",label:"Telegram",color:"#229ED9",layout:"chat"},{id:"slack",label:"Slack",color:"#611f69",layout:"attachment"},{id:"discord",label:"Discord",color:"#5865F2",layout:"attachment"}];function pe(n){const e=T.c(10),{src:i,className:r,iconSize:h}=n,a=h===void 0?20:h;if(i){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let p;return e[1]!==r||e[2]!==i?(p=t.jsx("img",{src:i,alt:"",referrerPolicy:"no-referrer",className:r,style:m}),e[1]=r,e[2]=i,e[3]=p):p=e[3],p}let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=s):s=e[4];let o;e[5]!==a?(o=t.jsx(ge,{size:a}),e[5]=a,e[6]=o):o=e[6];let l;return e[7]!==r||e[8]!==o?(l=t.jsx("div",{className:r,style:s,children:o}),e[7]=r,e[8]=o,e[9]=l):l=e[9],l}function $e(n){const e=T.c(27),{seo:i,host:r,path:h}=n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={background:"#fff",border:"1px solid #dadce0"},e[0]=a):a=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f1f3f4"},e[1]=s):s=e[1];let o;e[2]!==i.favicon?(o=t.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:s,children:i.favicon?t.jsx("img",{src:i.favicon,alt:"",className:"size-full object-cover"}):t.jsx(ge,{size:12,color:"#9aa0a6"})}),e[2]=i.favicon,e[3]=o):o=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={color:"#202124"},e[4]=l):l=e[4];let m;e[5]!==r?(m=t.jsx("div",{className:"truncate text-[13px] leading-tight",style:l,children:r}),e[5]=r,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#4d5156"},e[7]=p):p=e[7];let d;e[8]!==r||e[9]!==h?(d=t.jsxs("div",{className:"truncate text-[12px] leading-tight",style:p,children:[r,h]}),e[8]=r,e[9]=h,e[10]=d):d=e[10];let c;e[11]!==m||e[12]!==d?(c=t.jsxs("div",{className:"min-w-0",children:[m,d]}),e[11]=m,e[12]=d,e[13]=c):c=e[13];let g;e[14]!==o||e[15]!==c?(g=t.jsxs("div",{className:"flex items-center gap-2",children:[o,c]}),e[14]=o,e[15]=c,e[16]=g):g=e[16];let f;e[17]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#1a0dab"},e[17]=f):f=e[17];const x=i.title??Z;let u;e[18]!==x?(u=t.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:f,children:x}),e[18]=x,e[19]=u):u=e[19];let j;e[20]===Symbol.for("react.memo_cache_sentinel")?(j={color:"#4d5156"},e[20]=j):j=e[20];const v=i.description??ee;let y;e[21]!==v?(y=t.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:j,children:v}),e[21]=v,e[22]=y):y=e[22];let S;return e[23]!==u||e[24]!==y||e[25]!==g?(S=t.jsxs("div",{className:"rounded-lg p-3 text-left",style:a,children:[g,u,y]}),e[23]=u,e[24]=y,e[25]=g,e[26]=S):S=e[26],S}function De(n){const e=T.c(20),{seo:i,host:r}=n;let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h={background:"#fff",border:"1px solid #e2e8f0"},e[0]=h):h=e[0];let a;e[1]!==i.image?(a=t.jsx(pe,{src:i.image,className:"h-40 w-full"}),e[1]=i.image,e[2]=a):a=e[2];let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s={borderTop:"1px solid #e2e8f0"},e[3]=s):s=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o={color:"#8a9099"},e[4]=o):o=e[4];let l;e[5]!==r?(l=t.jsx("div",{className:"truncate text-[11px]",style:o,children:r}),e[5]=r,e[6]=l):l=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#1c2024"},e[7]=m):m=e[7];const p=i.title??Z;let d;e[8]!==p?(d=t.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:m,children:p}),e[8]=p,e[9]=d):d=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[10]=c):c=e[10];const g=i.description??ee;let f;e[11]!==g?(f=t.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:g}),e[11]=g,e[12]=f):f=e[12];let x;e[13]!==f||e[14]!==l||e[15]!==d?(x=t.jsxs("div",{className:"px-3 py-2",style:s,children:[l,d,f]}),e[13]=f,e[14]=l,e[15]=d,e[16]=x):x=e[16];let u;return e[17]!==x||e[18]!==a?(u=t.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:h,children:[a,x]}),e[17]=x,e[18]=a,e[19]=u):u=e[19],u}function Ie(n){const e=T.c(23),{seo:i,host:r,accent:h}=n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={background:"#f0f2f5"},e[0]=a):a=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:{color:"#3b4045"},children:"Here's a post you might write with the link of your website:"}),e[1]=s):s=e[1];const o=`3px solid ${h}`;let l;e[2]!==o?(l={background:"#fff",borderLeft:o},e[2]=o,e[3]=l):l=e[3];let m;e[4]!==i.image?(m=t.jsx(pe,{src:i.image,className:"h-28 w-full",iconSize:18}),e[4]=i.image,e[5]=m):m=e[5];let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#1c2024"},e[6]=p):p=e[6];const d=i.title??Z;let c;e[7]!==d?(c=t.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:p,children:d}),e[7]=d,e[8]=c):c=e[8];let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g={color:"#60666c"},e[9]=g):g=e[9];const f=i.description??ee;let x;e[10]!==f?(x=t.jsx("div",{className:"line-clamp-2 text-[11px]",style:g,children:f}),e[10]=f,e[11]=x):x=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#8a9099"},e[12]=u):u=e[12];let j;e[13]!==r?(j=t.jsx("div",{className:"mt-0.5 text-[10px]",style:u,children:r}),e[13]=r,e[14]=j):j=e[14];let v;e[15]!==x||e[16]!==j||e[17]!==c?(v=t.jsxs("div",{className:"px-2.5 py-1.5",children:[c,x,j]}),e[15]=x,e[16]=j,e[17]=c,e[18]=v):v=e[18];let y;return e[19]!==v||e[20]!==l||e[21]!==m?(y=t.jsxs("div",{className:"rounded-lg p-2 text-left",style:a,children:[s,t.jsxs("div",{className:"overflow-hidden rounded-md",style:l,children:[m,v]})]}),e[19]=v,e[20]=l,e[21]=m,e[22]=y):y=e[22],y}function Ae(n){const e=T.c(33),{seo:i,host:r,accent:h,dark:a}=n,s=a?"#2b2d31":"#fff",o=a?"#00a8fc":"#1264a3",l=a?"#dbdee1":"#3b4045",m=a?"#949ba4":"#8a9099",p=a?"none":"1px solid #e2e8f0";let d;e[0]!==s||e[1]!==p?(d={background:s,border:p},e[0]=s,e[1]=p,e[2]=d):d=e[2];const c=`3px solid ${h}`;let g;e[3]!==c?(g={borderLeft:c,borderRadius:2},e[3]=c,e[4]=g):g=e[4];let f;e[5]!==m?(f={color:m},e[5]=m,e[6]=f):f=e[6];let x;e[7]!==r||e[8]!==f?(x=t.jsx("div",{className:"text-[10px]",style:f,children:r}),e[7]=r,e[8]=f,e[9]=x):x=e[9];let u;e[10]!==o?(u={color:o},e[10]=o,e[11]=u):u=e[11];const j=i.title??Z;let v;e[12]!==u||e[13]!==j?(v=t.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:u,children:j}),e[12]=u,e[13]=j,e[14]=v):v=e[14];let y;e[15]!==l?(y={color:l},e[15]=l,e[16]=y):y=e[16];const S=i.description??ee;let _;e[17]!==y||e[18]!==S?(_=t.jsx("div",{className:"line-clamp-2 text-[12px]",style:y,children:S}),e[17]=y,e[18]=S,e[19]=_):_=e[19];let N;e[20]!==_||e[21]!==x||e[22]!==v?(N=t.jsxs("div",{className:"min-w-0 flex-1",children:[x,v,_]}),e[20]=_,e[21]=x,e[22]=v,e[23]=N):N=e[23];let b;e[24]!==i.image?(b=t.jsx(pe,{src:i.image,className:"size-14 shrink-0 rounded",iconSize:16}),e[24]=i.image,e[25]=b):b=e[25];let k;e[26]!==N||e[27]!==b||e[28]!==g?(k=t.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:g,children:[N,b]}),e[26]=N,e[27]=b,e[28]=g,e[29]=k):k=e[29];let C;return e[30]!==k||e[31]!==d?(C=t.jsx("div",{className:"rounded-lg p-2.5 text-left",style:d,children:k}),e[30]=k,e[31]=d,e[32]=C):C=e[32],C}function Be(n){const e=T.c(17),{platform:i,seo:r,host:h,path:a}=n;let s;e[0]!==h||e[1]!==a||e[2]!==i.color||e[3]!==i.id||e[4]!==i.layout||e[5]!==r?(s=i.layout==="search"?t.jsx($e,{seo:r,host:h,path:a}):i.layout==="card"?t.jsx(De,{seo:r,host:h,path:a}):i.layout==="chat"?t.jsx(Ie,{seo:r,host:h,path:a,accent:i.color}):t.jsx(Ae,{seo:r,host:h,path:a,accent:i.color,dark:i.id==="discord"}),e[0]=h,e[1]=a,e[2]=i.color,e[3]=i.id,e[4]=i.layout,e[5]=r,e[6]=s):s=e[6];const o=s;let l;e[7]!==i.color?(l=t.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:i.color}}),e[7]=i.color,e[8]=l):l=e[8];let m;e[9]!==i.label?(m=t.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i.label}),e[9]=i.label,e[10]=m):m=e[10];let p;e[11]!==l||e[12]!==m?(p=t.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[l,m]}),e[11]=l,e[12]=m,e[13]=p):p=e[13];let d;return e[14]!==o||e[15]!==p?(d=t.jsxs("div",{children:[p,o]}),e[14]=o,e[15]=p,e[16]=d):d=e[16],d}function Ue(n){const e=T.c(17),{seo:i,url:r,path:h}=n,a=h===void 0?"/":h;let s,o,l;if(e[0]!==i||e[1]!==r){const u=Pe(i);s=u,o=he(u.image,r),l=he(u.favicon,r),e[0]=i,e[1]=r,e[2]=s,e[3]=o,e[4]=l}else s=e[2],o=e[3],l=e[4];let m;e[5]!==s||e[6]!==o||e[7]!==l?(m={...s,image:o,favicon:l},e[5]=s,e[6]=o,e[7]=l,e[8]=m):m=e[8];const p=m;let d;e[9]!==r?(d=Oe(r),e[9]=r,e[10]=d):d=e[10];const c=d,g=a==="/"?"":a;let f;e[11]!==g||e[12]!==c||e[13]!==p?(f=Le.map(u=>t.jsx(Be,{platform:u,seo:p,host:c,path:g},u.id)),e[11]=g,e[12]=c,e[13]=p,e[14]=f):f=e[14];let x;return e[15]!==f?(x=t.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:f}),e[15]=f,e[16]=x):x=e[16],x}function Fi(n){const e=T.c(63),{orgSlug:i,virtualMcpId:r,branch:h,decofile:a,meta:s,target:o,previewBaseUrl:l,onSaved:m,onEditDefaultSeo:p,onBack:d}=n,c=Ne(a,o,s),g=c?.seoData,f=o.kind==="site"?"site":o.pageKey,[x,u]=Q.useState(f),[j,v]=Q.useState(null),[y,S]=Q.useState(0),[_,N]=Q.useState(void 0);x!==f&&(u(f),v(null),N(void 0),S(Me));const{persistSeo:b,persistRawSeo:k,flush:C,isPending:te}=ke({orgSlug:i,virtualMcpId:r,branch:h,target:o,resolved:c,onSaved:m}),K=o.kind==="page",ve=K?c?.rawSeoData:void 0,B=_!==void 0?_:ve,ye=K?_e(B)??void 0:void 0,w=j??ye??g??{},F=c?we(w,c):null,z=F&&(!K||Ce(B))?ze(F,s):null;let M;e[0]!==s?(M=Te(s),e[0]=s,e[1]=M):M=e[1];const oe=M;let R,G;e[2]!==a||e[3]!==w||e[4]!==s||e[5]!==o.kind?(R=o.kind==="page"?Fe(a,s)?.seoData??{}:{},G=o.kind==="page"?Ve(R,w):w,e[2]=a,e[3]=w,e[4]=s,e[5]=o.kind,e[6]=R,e[7]=G):(R=e[6],G=e[7]);const ie=G;let V;e[8]!==b||e[9]!==c||e[10]!==v?(V=E=>{if(!c)return;const de=E;v(de),b(de)},e[8]=b,e[9]=c,e[10]=v,e[11]=V):V=e[11];const se=V;let Y;e[12]!==v?(Y=()=>v(null),e[12]=v,e[13]=Y):Y=e[13];const le=Y;let H;e[14]!==S?(H=()=>S(Ke),e[14]=S,e[15]=H):H=e[15];const re=H;let W;e[16]!==C||e[17]!==d?(W=()=>{C(),d?.()},e[16]=C,e[17]=d,e[18]=W):W=e[18];const ae=W,P=o.kind==="page"?o.path:"/";let X;e[19]!==P||e[20]!==l||e[21]!==o.kind?(X=o.kind==="page"&&l?Ge(P,l):l??null,e[19]=P,e[20]=l,e[21]=o.kind,e[22]=X):X=e[22];const ne=X,ce=o.kind==="site"?"No site-level SEO block found.":c?"SEO schema not found for this page.":"Could not load page SEO.",q=K&&c,me=o.kind==="site"&&c&&z;let O;e[23]!==ae||e[24]!==o.kind||e[25]!==o.pageName?(O=o.kind==="page"?t.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[t.jsx("button",{type:"button",onClick:ae,title:o.pageName,className:"min-w-0 truncate rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:o.pageName}),t.jsx(be,{className:"size-3 shrink-0 text-muted-foreground/60"}),t.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx(fe,{size:16,className:"shrink-0 text-muted-foreground"}),t.jsx("span",{className:"text-sm font-medium",children:"Default SEO"}),t.jsx("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:"· applied to every page unless overridden"})]}),e[23]=ae,e[24]=o.kind,e[25]=o.pageName,e[26]=O):O=e[26];let L;e[27]!==te?(L=te&&t.jsx(Se,{size:14,className:"animate-spin text-muted-foreground"}),e[27]=te,e[28]=L):L=e[28];let $;e[29]!==p||e[30]!==o.kind?($=o.kind==="page"&&p&&t.jsxs(je,{type:"button",variant:"outline",size:"sm",onClick:p,children:[t.jsx(fe,{size:14}),"Edit default SEO"]}),e[29]=p,e[30]=o.kind,e[31]=$):$=e[31];let D;e[32]!==$||e[33]!==L?(D=t.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[L,$]}),e[32]=$,e[33]=L,e[34]=D):D=e[34];let I;e[35]!==D||e[36]!==O?(I=t.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[O,D]}),e[35]=D,e[36]=O,e[37]=I):I=e[37];let A;e[38]!==F||e[39]!==re||e[40]!==le||e[41]!==oe||e[42]!==B||e[43]!==w||e[44]!==ce||e[45]!==y||e[46]!==se||e[47]!==P||e[48]!==k||e[49]!==b||e[50]!==ie||e[51]!==ne||e[52]!==c||e[53]!==z||e[54]!==v||e[55]!==N||e[56]!==q||e[57]!==me||e[58]!==R?(A=!c||!q&&!me?t.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ce}):t.jsxs("div",{className:"flex min-h-0 flex-1",children:[t.jsx(ue,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"px-5 py-4",children:q?t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:"Empty fields inherit the default SEO. The preview shows the resolved result."}),t.jsx(Re,{rawSeo:B,innerSeo:w,defaultResolveType:oe,seoSchema:z,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:y,siteDefaultSeo:R,onPersistRaw:E=>{N(E),k(E)},onInnerChange:E=>{v(E),b(E)},onClearForm:le,onBumpFormKey:re})]}):z&&F&&t.jsx(Ee,{schema:z,resolveType:F,value:w,formResetKey:y,onChange:se})})}),t.jsx(ue,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"@container px-5 py-4",children:t.jsx(Ue,{seo:ie,url:ne,path:P})})})]}),e[38]=F,e[39]=re,e[40]=le,e[41]=oe,e[42]=B,e[43]=w,e[44]=ce,e[45]=y,e[46]=se,e[47]=P,e[48]=k,e[49]=b,e[50]=ie,e[51]=ne,e[52]=c,e[53]=z,e[54]=v,e[55]=N,e[56]=q,e[57]=me,e[58]=R,e[59]=A):A=e[59];let J;return e[60]!==I||e[61]!==A?(J=t.jsxs("div",{className:"flex h-full w-full flex-col",children:[I,A]}),e[60]=I,e[61]=A,e[62]=J):J=e[62],J}function Ke(n){return n+1}function Me(n){return n+1}function Ge(n,e){try{return new URL(n,e).href}catch{return e}}function Ve(n,e){const i=e.__resolveType,r=n.__resolveType;if(typeof i=="string"&&typeof r=="string"&&i!==r)return{...e};const h={...n};for(const[a,s]of Object.entries(e))a!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(h[a]=s));return h}export{Fi as SeoEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CymZuomq.js","assets/index-kan1E63X.js","assets/index-BADtduG9.css","assets/XCircle-Zk6uYFNc.js","assets/CheckCircle-V4cMbp7k.js","assets/Settings02-C_i5syXv.js","assets/use-mcp-client-B0s_8EVJ.js","assets/auth-D-VB6PXw.js","assets/useInfiniteQuery-D-FFXkXU.js","assets/use-infinite-scroll-BW9P8xBl.js","assets/studio-tools-BMwxp5pS.js","assets/badge-DuPrh-k9.js","assets/input-CWK_KDxP.js","assets/dropdown-menu-KRYgKsut.js","assets/ChevronUp-BYmO7ni8.js","assets/ChevronRight-B69CKZdN.js","assets/DotsVertical-OVel04b-.js","assets/table-qhDDbEpO.js","assets/toggle-group-Bz1hQE3a.js","assets/use-view-mode-1gUAJUA2.js","assets/use-mobile-CHScOeMy.js","assets/FilterLines-Ch9sNilm.js","assets/Globe01-YUd_dhFu.js","assets/SearchMd-TgGSUo83.js","assets/dialog-59pZJLRI.js","assets/X-D4V_xKxB.js","assets/AlertCircle-CXfHCFxW.js","assets/Upload01-BWZGJ0bu.js","assets/alert-dialog-Cey7j4CE.js","assets/card-CSk11DrN.js","assets/Trash01-BktfczUu.js","assets/label-CShBo-xr.js","assets/select-Do7P1LSG.js","assets/tooltip-Ct27xL12.js","assets/ChevronDown-yYhj5xP_.js","assets/switch-H7aX0suB.js","assets/textarea-PSzbbOkb.js","assets/checkbox-DhghRz0V.js","assets/Eye-DJDSbP4d.js","assets/LinkExternal01-CUaKk4PO.js","assets/use-copy-Y55SDaZL.js","assets/Key01-CzuZ2YNH.js","assets/Plus-DLu0p3LB.js","assets/mcp-oauth-CRmn6hwI.js","assets/Play-Da7BpsHX.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-kan1E63X.js";import{R as u}from"./require-capability-B1rUcboM.js";import"./use-capability-CSJPfpi0.js";import"./access-gate-Bsc7QUw1.js";import"./capability-load-error-CKrEiZ0g.js";const g=l.lazy(()=>f(()=>import("./registry-layout-CymZuomq.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-BW9P8xBl.js";import{cJ as i}from"./index-kan1E63X.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-BW9P8xBl.js";import{cJ as u,aC as n}from"./index-kan1E63X.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|