decocms 4.204.0 → 4.204.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-aOidjqvT.js → AlertCircle-Dvi1k5cn.js} +1 -1
- package/dist/client/assets/{AreaChart-DhlgcMqi.js → AreaChart-CndFxvIo.js} +1 -1
- package/dist/client/assets/{ArrowLeft-B75Lamri.js → ArrowLeft-Ent8iR6x.js} +1 -1
- package/dist/client/assets/{ArrowUp-DrYxkigj.js → ArrowUp-BB36Bdlh.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-DViLhVSI.js → ArrowUpRight-BhRRZUzX.js} +1 -1
- package/dist/client/assets/{Check-Dx-4HUEo.js → Check-C_JGadkZ.js} +1 -1
- package/dist/client/assets/{CheckCircle-Bn_vBNFy.js → CheckCircle-CfMS5-8U.js} +1 -1
- package/dist/client/assets/{ChevronDown-JRTCHhvr.js → ChevronDown-pjtec-xe.js} +1 -1
- package/dist/client/assets/{ChevronRight-BEmZD6vD.js → ChevronRight-EZoEfiBP.js} +1 -1
- package/dist/client/assets/{ChevronUp-C5AupxBz.js → ChevronUp-CCmZkWFs.js} +1 -1
- package/dist/client/assets/{Copy01-C-nHXXWU.js → Copy01-3zRGTDeQ.js} +1 -1
- package/dist/client/assets/{CpuChip01-Bo3zJKjM.js → CpuChip01-Dnu2MbJR.js} +1 -1
- package/dist/client/assets/{CreditCard01-Dh_t5bkX.js → CreditCard01-DqPcU1mb.js} +1 -1
- package/dist/client/assets/{DotsVertical-loouiV0t.js → DotsVertical-C5y4Pnp5.js} +1 -1
- package/dist/client/assets/{Eye-5nLs5Hvl.js → Eye-BLs6tnei.js} +1 -1
- package/dist/client/assets/{FilterLines-Bv1NZQv4.js → FilterLines-DqxEG8PY.js} +1 -1
- package/dist/client/assets/{Globe01-B54JZBFD.js → Globe01-BsZ_32nV.js} +1 -1
- package/dist/client/assets/{Globe04-BJ0M5tPH.js → Globe04-VlVzop2v.js} +1 -1
- package/dist/client/assets/{HardDrive-DY4V5XN0.js → HardDrive-TH5m1Z7o.js} +1 -1
- package/dist/client/assets/{Key01-CRbalBhy.js → Key01-hdAZ7qcN.js} +1 -1
- package/dist/client/assets/{LayoutLeft-imuYF97o.js → LayoutLeft-BZJRnjD8.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DpBurIUH.js → LinkExternal01-BgjMEXLY.js} +1 -1
- package/dist/client/assets/{LogOut01-BfG0GXaG.js → LogOut01-CkqHTgGA.js} +1 -1
- package/dist/client/assets/{Monitor01-CvcqYp4W.js → Monitor01-B_jt2_OR.js} +1 -1
- package/dist/client/assets/{Palette-DQESctRo.js → Palette-CpQiwtZ1.js} +1 -1
- package/dist/client/assets/{Play-BbZQD697.js → Play-WM1USKmL.js} +1 -1
- package/dist/client/assets/{Plus-BMXBf3l6.js → Plus-CXd7PZXs.js} +1 -1
- package/dist/client/assets/{SearchLg-BSoKDKGM.js → SearchLg-Cdaw6dcQ.js} +1 -1
- package/dist/client/assets/{SearchMd-DYIQSyA0.js → SearchMd-DLZKrl0d.js} +1 -1
- package/dist/client/assets/{Settings02-BTfVHkK7.js → Settings02-ClcFomqr.js} +1 -1
- package/dist/client/assets/{Share07-D0gmP-5W.js → Share07-CKnq1pwo.js} +1 -1
- package/dist/client/assets/{Shield01-CzM3eIKy.js → Shield01-BHrGfuES.js} +1 -1
- package/dist/client/assets/{Star01-QiZ1RG77.js → Star01-11MAgZ9T.js} +1 -1
- package/dist/client/assets/{Stars01-uVD9VW2u.js → Stars01-Bc7pOhlB.js} +1 -1
- package/dist/client/assets/{Stars02-BMKoPVMZ.js → Stars02-C-UrCZnt.js} +1 -1
- package/dist/client/assets/{Sun-D5jb6SEL.js → Sun-6SeD2sez.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-D6iKkjDf.js → SwitchHorizontal01-Bes_0lU-.js} +1 -1
- package/dist/client/assets/{Tool01-DCUx1m_2.js → Tool01-tHzVB4HP.js} +1 -1
- package/dist/client/assets/{Tool02-CiBt8qeE.js → Tool02-Qken4U3T.js} +1 -1
- package/dist/client/assets/{Trash01-CkvycJBp.js → Trash01-BeizWm5n.js} +1 -1
- package/dist/client/assets/{TrendUp01-61jUkayc.js → TrendUp01-f__iwSOx.js} +1 -1
- package/dist/client/assets/{Upload01-B8mvKr_w.js → Upload01-BDaL0KVV.js} +1 -1
- package/dist/client/assets/{User01-Bh73V9Wb.js → User01-Db4pRmiC.js} +1 -1
- package/dist/client/assets/{Users01-DPdfOTlJ.js → Users01-Cuf-Hz02.js} +1 -1
- package/dist/client/assets/{Users03-DFt9F3jC.js → Users03-tcm10YB7.js} +1 -1
- package/dist/client/assets/{X-BDolklLb.js → X-vVVLaEHg.js} +1 -1
- package/dist/client/assets/{XCircle-Cedk5oAW.js → XCircle-BpOpdAqm.js} +1 -1
- package/dist/client/assets/{XClose-CwEsNeOG.js → XClose-BCb-hWNQ.js} +1 -1
- package/dist/client/assets/{Zap-BulQ-wUS.js → Zap-BmrfAzJZ.js} +1 -1
- package/dist/client/assets/{ZapSquare-C-b0Epcw.js → ZapSquare-DJAk8IQj.js} +1 -1
- package/dist/client/assets/{access-gate-Ba1Ptbc3.js → access-gate-B8trsumA.js} +1 -1
- package/dist/client/assets/{agent-icon-BfLH4bjn.js → agent-icon-ccKEJMPF.js} +1 -1
- package/dist/client/assets/{agents-list-DIjxgsMj.js → agents-list-BZfjoEPb.js} +1 -1
- package/dist/client/assets/{ai-providers-v901PhRr.js → ai-providers-DhWGDyPr.js} +1 -1
- package/dist/client/assets/{alert-j6AIE-aT.js → alert-BFqYopRA.js} +1 -1
- package/dist/client/assets/{alert-dialog-DO8HokZ1.js → alert-dialog-BLVdfah0.js} +1 -1
- package/dist/client/assets/{app-editor-B_ctY0W8.js → app-editor-DoLoWamE.js} +1 -1
- package/dist/client/assets/{auth-D7Fz4chI.js → auth-D8wV7o7j.js} +1 -1
- package/dist/client/assets/{auth-catchall-DkIY9L-Y.js → auth-catchall-CmtX4UfQ.js} +1 -1
- package/dist/client/assets/{auth-entry-TY-04IOE.js → auth-entry-Cqq_buv2.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CYgtglUd.js → auth-split-layout-C3FvXcyA.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Dm1PHKBd.js → authenticate-and-persist-oauth-CnP8b3sw.js} +1 -1
- package/dist/client/assets/{automation-list-row-DP-NJftm.js → automation-list-row-BkUJ2ET4.js} +1 -1
- package/dist/client/assets/{automation-runs-CZrEWNgn.js → automation-runs-DA9X_MEC.js} +1 -1
- package/dist/client/assets/{automations-DFhondbT.js → automations-CDTXWLOw.js} +1 -1
- package/dist/client/assets/{avatar-6hvPldfY.js → avatar-DNY4OgMb.js} +1 -1
- package/dist/client/assets/{badge-Dz8OuFCR.js → badge-4lOTF_m5.js} +1 -1
- package/dist/client/assets/{billing-BLCXdYWO.js → billing-Cw01R7ct.js} +1 -1
- package/dist/client/assets/{block-document-CBv7FiVx.js → block-document-DUn-U8y5.js} +1 -1
- package/dist/client/assets/{brand-context-Oc-S0TZu.js → brand-context-DSDT2DRK.js} +1 -1
- package/dist/client/assets/{buckets-DgIMATKn.js → buckets-BVr4I05q.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BXFrSMyg.js → bulk-category-panel-DRTnGEsc.js} +1 -1
- package/dist/client/assets/{capability-load-error-BmyPT20N.js → capability-load-error-DMtJ9CUf.js} +1 -1
- package/dist/client/assets/{card-7QSUKxf2.js → card-BlNsXwmB.js} +1 -1
- package/dist/client/assets/{cards-CzFnf54y.js → cards-CNSd-DjB.js} +1 -1
- package/dist/client/assets/{category-editor-BIgNxtn-.js → category-editor-tE1h7IUC.js} +1 -1
- package/dist/client/assets/{chat-context-2M6oc7QJ.js → chat-context-D6avQC12.js} +1 -1
- package/dist/client/assets/{checkbox-Bz2ch0aq.js → checkbox-D_tBjzWE.js} +1 -1
- package/dist/client/assets/{cli-auth-success-D7DKAoJU.js → cli-auth-success-C6ZcXbQD.js} +1 -1
- package/dist/client/assets/{collection-detail-C71NnA6g.js → collection-detail-BL536I7a.js} +1 -1
- package/dist/client/assets/{collection-display-button-Ck7WQnU9.js → collection-display-button-BEJU17Ui.js} +1 -1
- package/dist/client/assets/{collection-search-SDeQkDQi.js → collection-search-ClPMaQYs.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BzW6IJM4.js → collection-table-wrapper-DXktbrPI.js} +1 -1
- package/dist/client/assets/{collection-tabs-oDsWQber.js → collection-tabs-DKkFDS-A.js} +1 -1
- package/dist/client/assets/{command-DPmNVSl9.js → command-jjpmGOm_.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-u6LDKwri.js → commerce-onboarding-Bzn59Zz3.js} +1 -1
- package/dist/client/assets/{connect-Cbz92grF.js → connect-3OALFKWa.js} +1 -1
- package/dist/client/assets/{connection-CgC8i9WR.js → connection-KlVIBqwe.js} +1 -1
- package/dist/client/assets/{connection-card-BFsIJd5n.js → connection-card-rNFP4aQW.js} +1 -1
- package/dist/client/assets/{connection-detail-DfbwL7Bf.js → connection-detail-BYkNaIez.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DR_KMHPb.js → connection-form-helpers-DoenWKiE.js} +1 -1
- package/dist/client/assets/{connections-CgAUHydd.js → connections-DKyyOPxn.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-BFs-SH0_.js → decopilot-sse-pool-CQj1A1m0.js} +1 -1
- package/dist/client/assets/{dialog-CnsKJ4XS.js → dialog-D0XmFvwy.js} +1 -1
- package/dist/client/assets/{domain-settings-Bx7CJaj2.js → domain-settings-BNOU5bWJ.js} +1 -1
- package/dist/client/assets/{drawer-BeDNXxoT.js → drawer-2-RcK2eN.js} +1 -1
- package/dist/client/assets/{dropdown-menu-rlmS2woE.js → dropdown-menu-ktTeb92V.js} +1 -1
- package/dist/client/assets/{empty-state-BdPr9i4J.js → empty-state-D06lbQAg.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CIbNaxR4.js → extract-connection-data-60VxImy-.js} +1 -1
- package/dist/client/assets/{file-explorer-CqYQN3mT.js → file-explorer-D0vyjnLD.js} +1 -1
- package/dist/client/assets/{file-type-icon-Cj7E9OWU.js → file-type-icon-D9ViA8l1.js} +1 -1
- package/dist/client/assets/{form-52Ne-88n.js → form-DhkfpDnn.js} +1 -1
- package/dist/client/assets/{general-DXtaTpna.js → general-DlNDbeh6.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CwPFj7dA.js → github-repo-picker-Dglj8ihi.js} +1 -1
- package/dist/client/assets/{hooks-DlP_xAJH.js → hooks-3NsxKnAm.js} +1 -1
- package/dist/client/assets/{index-CPr46uJq.js → index--3TZFBch.js} +1 -1
- package/dist/client/assets/{index-Cd7ImlZn.js → index-B3ox4h-M.js} +5 -5
- package/dist/client/assets/{index-9APmX5bw.js → index-BB7AjniC.js} +1 -1
- package/dist/client/assets/{index-DEPqNRvO.js → index-BOCCjDoR.js} +1 -1
- package/dist/client/assets/{index-DEpEe4q-.js → index-BfnLly6x.js} +5 -5
- package/dist/client/assets/{index-L3EDbLB4.js → index-BhCUIllL.js} +1 -1
- package/dist/client/assets/{index-k-sVFH0h.js → index-BvGZqbiV.js} +1 -1
- package/dist/client/assets/{index-2TqE-Au3.js → index-DL8upMg6.js} +1 -1
- package/dist/client/assets/{index-C3IDT9Mf.js → index-Df_w5LHi.js} +1 -1
- package/dist/client/assets/{index-CFnhKOfk.js → index-TgeMi6H_.js} +1 -1
- package/dist/client/assets/{index-redirect-DWRIN8hS.js → index-redirect-C18Un53_.js} +1 -1
- package/dist/client/assets/{input-zrZUAZiG.js → input-B3O1LD5g.js} +1 -1
- package/dist/client/assets/{integration-icon-BMIRMQW1.js → integration-icon-CQ5JlCKc.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-BPb7fjDg.js → invite-member-dialog-DtX6wKbN.js} +1 -1
- package/dist/client/assets/{label-Biv3DlJq.js → label-vhwuIOtE.js} +1 -1
- package/dist/client/assets/{layout-DM0AMssY.js → layout-CY-2zPim.js} +1 -1
- package/dist/client/assets/{login-Cb2Srpdo.js → login-iPO7Yc38.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BvER8ITi.js → mcp-oauth-Bu7cXC-N.js} +1 -1
- package/dist/client/assets/{members-_gaSXQm8.js → members-DnsZ4pAw.js} +1 -1
- package/dist/client/assets/{monaco-editor-D-JEkm2C.js → monaco-editor-B_JApexZ.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CoB3IUlu.js → monitoring-stats-row-BrBxaE4Y.js} +1 -1
- package/dist/client/assets/{multi-select-BcUm9boe.js → multi-select-DFeSg1NP.js} +1 -1
- package/dist/client/assets/{oauth-callback-CjJCNrMo.js → oauth-callback-D6_sQFC_.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BRsRTwVv.js → oauth-callback-ai-provider-CV1aemmG.js} +1 -1
- package/dist/client/assets/{onboarding-BnfwrFzt.js → onboarding-DqO8Rm5B.js} +1 -1
- package/dist/client/assets/{org-layout-Bhw_xjPK.js → org-layout-B4taLp4t.js} +1 -1
- package/dist/client/assets/{organization-choice-BTo434bl.js → organization-choice-BLLrYafp.js} +1 -1
- package/dist/client/assets/{orgs-BGGdhFTY.js → orgs-SfTh-3Zt.js} +1 -1
- package/dist/client/assets/{page-seo-form-SqsJT8Ac.js → page-seo-form-DILJ2hQ5.js} +1 -1
- package/dist/client/assets/{popover-Cb70GKE2.js → popover-CnuSqmth.js} +1 -1
- package/dist/client/assets/{post-editor-BTtQ-x8C.js → post-editor-BwudRQhS.js} +1 -1
- package/dist/client/assets/{primitives-Gtp7Pf-m.js → primitives-DBJOgfbx.js} +1 -1
- package/dist/client/assets/{profile-Dr7LPacL.js → profile-QKSun4zF.js} +1 -1
- package/dist/client/assets/{project-app-view-CByYOD5Z.js → project-app-view-Cv3q6q4M.js} +1 -1
- package/dist/client/assets/record-editor-C5UQgsIx.js +1 -0
- package/dist/client/assets/{redirect-editor-BJt9I56D.js → redirect-editor-DFb06Ov_.js} +1 -1
- package/dist/client/assets/registry-CN6EeD7o.js +2 -0
- package/dist/client/assets/{registry-layout-39QoePJF.js → registry-layout-DIay4wCd.js} +1 -1
- package/dist/client/assets/{reports-CdVsYqCs.js → reports-eg0dTaeE.js} +2 -2
- package/dist/client/assets/{require-capability-vPM9ojao.js → require-capability-YJOfPqF8.js} +1 -1
- package/dist/client/assets/{required-auth-layout-B0-fnnpX.js → required-auth-layout-DT7lerOS.js} +1 -1
- package/dist/client/assets/{reset-password-D6vZdpvq.js → reset-password-1CzPdKHE.js} +1 -1
- package/dist/client/assets/{roles-BBHuDVTR.js → roles-C11A21iv.js} +1 -1
- package/dist/client/assets/{search-input-CjKFfke1.js → search-input-D2RwfNXw.js} +1 -1
- package/dist/client/assets/{secrets-Bjp3Ny4T.js → secrets-BoBw_UVY.js} +1 -1
- package/dist/client/assets/sections-editor-XnhvlMkB.js +2 -0
- package/dist/client/assets/{select-CDhKZB8e.js → select-Bzk-wakL.js} +1 -1
- package/dist/client/assets/{select-model-BEwJ6x6F.js → select-model-BZLtIxQF.js} +1 -1
- package/dist/client/assets/{self-tool-result-C7MBhQze.js → self-tool-result-CDBZiaIw.js} +1 -1
- package/dist/client/assets/{seo-editor-BF9b8-xU.js → seo-editor-B1nAIwLn.js} +1 -1
- package/dist/client/assets/{settings-layout-5ooTBQpc.js → settings-layout-BSAQjcwu.js} +1 -1
- package/dist/client/assets/{settings-section-CXrma9rU.js → settings-section-CAPU8-8e.js} +1 -1
- package/dist/client/assets/{shell-controls-Bh_CpwnW.js → shell-controls-Blju68Rs.js} +1 -1
- package/dist/client/assets/{shell-layout-BN_umvta.js → shell-layout-dKq00SYl.js} +1 -1
- package/dist/client/assets/{sidebar-RUbPN908.js → sidebar-CvGOAxuW.js} +1 -1
- package/dist/client/assets/{skeleton-DS3OSh5_.js → skeleton-Dwp0Y-Z5.js} +1 -1
- package/dist/client/assets/{spinner-NNRHh_E-.js → spinner-Dhw_a2i3.js} +1 -1
- package/dist/client/assets/{sso-DsFOo_H0.js → sso-CBXNr-xd.js} +1 -1
- package/dist/client/assets/{store-Bp8uDjes.js → store-BeCxyxqE.js} +1 -1
- package/dist/client/assets/store-registry-BMCpK1O5.js +2 -0
- package/dist/client/assets/{studio-tools-JKrn9JOe.js → studio-tools-Bm6Bdldj.js} +1 -1
- package/dist/client/assets/{switch-BJPAHFJE.js → switch-BlAcG5cP.js} +1 -1
- package/dist/client/assets/{synced-repos-CTZyY4WA.js → synced-repos-C3N7q-D3.js} +1 -1
- package/dist/client/assets/{tab-id-B0K1Rwjt.js → tab-id-C3qVK2pu.js} +1 -1
- package/dist/client/assets/{table-CdLLcRfU.js → table-CV9MM-eC.js} +1 -1
- package/dist/client/assets/{tabs-BpdKKZCJ.js → tabs-BCh_NjNz.js} +1 -1
- package/dist/client/assets/{textarea-B6_XVzip.js → textarea-btTfmKOm.js} +1 -1
- package/dist/client/assets/{toggle-group-CwlmdjBY.js → toggle-group-B-6k7nps.js} +1 -1
- package/dist/client/assets/{toolbar-YSDwUh5f.js → toolbar-Bp98tVBt.js} +1 -1
- package/dist/client/assets/{tooltip-CDKJbBi0.js → tooltip-BaIB14Nh.js} +1 -1
- package/dist/client/assets/{use-ai-providers-IL8QzB9I.js → use-ai-providers-CrMNt7EO.js} +1 -1
- package/dist/client/assets/{use-automations-BCNS6TuJ.js → use-automations-COu6E8ML.js} +1 -1
- package/dist/client/assets/{use-autosave-CRIeylnN.js → use-autosave-YdjmZ5mA.js} +1 -1
- package/dist/client/assets/{use-capability-DiYIjwqM.js → use-capability-DkfEDI2S.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BZBQkA9i.js → use-clock-tick-CT9NimTB.js} +1 -1
- package/dist/client/assets/{use-connection-CqI346XJ.js → use-connection-DYei0Fbb.js} +1 -1
- package/dist/client/assets/{use-copy-CPzfqp89.js → use-copy-Dnt1OHM7.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-6SS-W9Cz.js → use-create-virtual-mcp-CHKFgANU.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DwbXpD7Q.js → use-debounced-autosave-C3ZK_z9k.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Bww2cW3r.js → use-debounced-value-seAIOKeD.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CpFkclRC.js → use-deco-credits-Dk-Fws42.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CZky27eB.js → use-decopilot-events-7yWQfl6W.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BnXepcbn.js → use-delete-connection-B-FoNtHD.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BnlDMhXQ.js → use-deployment-admin-afzOHWds.js} +1 -1
- package/dist/client/assets/{use-file-configs-CMtQ8Ude.js → use-file-configs-DJOLOtA4.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BQdv-Z2F.js → use-infinite-scroll-tZORgQaO.js} +1 -1
- package/dist/client/assets/{use-join-requests-CW9gMEOW.js → use-join-requests-BOU5eK2G.js} +1 -1
- package/dist/client/assets/{use-mcp-client-omwH710V.js → use-mcp-client-DsczaGyn.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CtGBOWHg.js → use-mcp-tools-BLWx-Pl5.js} +1 -1
- package/dist/client/assets/{use-members-X5452kjt.js → use-members-Cqf8CmaV.js} +1 -1
- package/dist/client/assets/{use-mobile-Wto5-uq3.js → use-mobile-Bv8LWkaB.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-X_HSTSU-.js → use-navigate-to-agent-DU7hqQBC.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-BZaSYrMb.js → use-open-billing-url-C_NlLF0X.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-D9z89DQw.js → use-org-auth-client-CbZIjjqc.js} +1 -1
- package/dist/client/assets/{use-org-sso-BhCewyhm.js → use-org-sso-6gijGsGw.js} +1 -1
- package/dist/client/assets/{use-organization-roles-B9CMHdKM.js → use-organization-roles-8Q0M1osF.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BZCDAWGL.js → use-organization-settings-Bd3GU4bn.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CJTYfSxR.js → use-registry-connections-BtFbwSL5.js} +1 -1
- package/dist/client/assets/{use-secrets-BKH6DKDA.js → use-secrets-BmqSS90P.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DJQYqKD8.js → use-section-preview-base-v6IaT3Sv.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CN3t7bB_.js → use-status-sounds-COmLo-Ug.js} +1 -1
- package/dist/client/assets/{use-tags-CAcDQQYY.js → use-tags-BUlm2YXF.js} +1 -1
- package/dist/client/assets/{use-view-mode-BqOg6L7c.js → use-view-mode-C8t3sYfu.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-H33bo8qX.js → use-virtual-mcp-B8AOs5Nq.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CJn_wQPu.js +1 -0
- package/dist/client/assets/{useRouterState-DZGUIUCl.js → useRouterState-1KcBylII.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BMOve1t3.js +1 -0
- package/dist/client/assets/{users-BG64rNTh.js → users-Qrk9slwB.js} +1 -1
- package/dist/client/assets/{variant-calendar-BmVgnwB6.js → variant-calendar-CnE6Ihu4.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-B151C9kh.js → view-mode-toggle-BDd5pZQe.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/record-editor-43CnkrgG.js +0 -1
- package/dist/client/assets/registry-Bi58rPH1.js +0 -2
- package/dist/client/assets/sections-editor-DnnpiKor.js +0 -2
- package/dist/client/assets/store-registry-D8mmqkcn.js +0 -2
- package/dist/client/assets/useInfiniteQuery-F_jw9PUx.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Q6fusjYJ.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as L,b as R,j as r}from"./index-DEpEe4q-.js";import{I as A}from"./input-zrZUAZiG.js";import{L as I}from"./label-Biv3DlJq.js";import{S as z,a as J,b as O,c as V,d as $}from"./select-CDhKZB8e.js";import{T as D}from"./textarea-B6_XVzip.js";import{R as M,T as U,U as W,J as q,W as G,$ as H}from"./index-Cd7ImlZn.js";import{s as F}from"./primitives-Gtp7Pf-m.js";import{u as Q}from"./use-autosave-CRIeylnN.js";import"./tooltip-CDKJbBi0.js";import"./Check-Dx-4HUEo.js";import"./ChevronDown-JRTCHhvr.js";import"./ChevronUp-C5AupxBz.js";import"./ArrowUp-DrYxkigj.js";import"./chat-context-2M6oc7QJ.js";import"./tab-id-B0K1Rwjt.js";import"./dialog-CnsKJ4XS.js";import"./X-BDolklLb.js";import"./Copy01-C-nHXXWU.js";import"./hooks-DlP_xAJH.js";import"./use-mcp-client-omwH710V.js";import"./auth-D7Fz4chI.js";import"./decopilot-sse-pool-BFs-SH0_.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-H33bo8qX.js";import"./use-ai-providers-IL8QzB9I.js";import"./studio-tools-JKrn9JOe.js";import"./use-decopilot-events-CZky27eB.js";import"./use-organization-settings-BZCDAWGL.js";import"./automation-runs-CZrEWNgn.js";import"./agent-icon-BfLH4bjn.js";import"./AlertCircle-aOidjqvT.js";import"./Tool01-DCUx1m_2.js";import"./ArrowLeft-B75Lamri.js";import"./Tool02-CiBt8qeE.js";import"./XCircle-Cedk5oAW.js";import"./ArrowUpRight-DViLhVSI.js";import"./TrendUp01-61jUkayc.js";import"./ZapSquare-C-b0Epcw.js";import"./Users03-DFt9F3jC.js";import"./CheckCircle-Bn_vBNFy.js";import"./ChevronRight-BEmZD6vD.js";import"./DotsVertical-loouiV0t.js";import"./Stars02-BMKoPVMZ.js";import"./CpuChip01-Bo3zJKjM.js";import"./CreditCard01-Dh_t5bkX.js";import"./Globe01-B54JZBFD.js";import"./Settings02-BTfVHkK7.js";import"./Eye-5nLs5Hvl.js";import"./FilterLines-Bv1NZQv4.js";import"./Share07-D0gmP-5W.js";import"./Star01-QiZ1RG77.js";import"./Globe04-BJ0M5tPH.js";import"./SwitchHorizontal01-D6iKkjDf.js";import"./HardDrive-DY4V5XN0.js";import"./Key01-CRbalBhy.js";import"./LayoutLeft-imuYF97o.js";import"./LinkExternal01-DpBurIUH.js";import"./LogOut01-BfG0GXaG.js";import"./Monitor01-CvcqYp4W.js";import"./Sun-D5jb6SEL.js";import"./Palette-DQESctRo.js";import"./Play-BbZQD697.js";import"./Plus-BMXBf3l6.js";import"./SearchLg-BSoKDKGM.js";import"./SearchMd-DYIQSyA0.js";import"./Shield01-CzM3eIKy.js";import"./Stars01-uVD9VW2u.js";import"./Trash01-CkvycJBp.js";import"./Upload01-B8mvKr_w.js";import"./User01-Bh73V9Wb.js";import"./Users01-DPdfOTlJ.js";import"./XClose-CwEsNeOG.js";import"./Zap-BulQ-wUS.js";import"./useInfiniteQuery-F_jw9PUx.js";import"./use-infinite-scroll-BQdv-Z2F.js";import"./use-connection-CqI346XJ.js";import"./card-7QSUKxf2.js";import"./sidebar-RUbPN908.js";import"./use-mobile-Wto5-uq3.js";import"./table-CdLLcRfU.js";import"./empty-state-BdPr9i4J.js";import"./use-members-X5452kjt.js";import"./use-org-auth-client-D9z89DQw.js";import"./use-clock-tick-BZBQkA9i.js";import"./use-automations-BCNS6TuJ.js";import"./useSuspenseInfiniteQuery-Q6fusjYJ.js";import"./avatar-6hvPldfY.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CPzfqp89.js";import"./monaco-editor-D-JEkm2C.js";import"./spinner-NNRHh_E-.js";import"./index-L3EDbLB4.js";import"./shell-layout-BN_umvta.js";import"./required-auth-layout-B0-fnnpX.js";import"./use-org-sso-BhCewyhm.js";import"./integration-icon-BMIRMQW1.js";import"./use-navigate-to-agent-X_HSTSU-.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-DhlgcMqi.js";import"./form-52Ne-88n.js";import"./file-type-icon-Cj7E9OWU.js";import"./drawer-BeDNXxoT.js";import"./collection-search-SDeQkDQi.js";import"./tabs-BpdKKZCJ.js";import"./toggle-group-CwlmdjBY.js";import"./use-deco-credits-CpFkclRC.js";import"./popover-Cb70GKE2.js";import"./alert-dialog-DO8HokZ1.js";import"./toolbar-YSDwUh5f.js";import"./skeleton-DS3OSh5_.js";import"./github-repo-picker-CwPFj7dA.js";import"./use-debounced-value-Bww2cW3r.js";import"./authenticate-and-persist-oauth-Dm1PHKBd.js";import"./mcp-oauth-BvER8ITi.js";import"./use-mcp-tools-CtGBOWHg.js";import"./extract-connection-data-CIbNaxR4.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-ufuvpGD9.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-BFsIJd5n.js";import"./use-registry-connections-CJTYfSxR.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-DR_KMHPb.js";import"./collection-tabs-oDsWQber.js";import"./badge-Dz8OuFCR.js";import"./use-open-billing-url-BZaSYrMb.js";import"./select-model-BEwJ6x6F.js";import"./checkbox-Bz2ch0aq.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CXrma9rU.js";import"./cards-CzFnf54y.js";import"./dropdown-menu-rlmS2woE.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CN3t7bB_.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-DiYIjwqM.js";import"./pt-BR-CLy76QW2.js";import"./switch-BJPAHFJE.js";import"./use-debounced-autosave-DwbXpD7Q.js";import"./index-k-sVFH0h.js";import"./search-input-CjKFfke1.js";import"./index-DEPqNRvO.js";import"./use-secrets-BKH6DKDA.js";import"./self-tool-result-C7MBhQze.js";import"./use-tags-CAcDQQYY.js";import"./get-initials-D-f_fDFw.js";import"./command-DPmNVSl9.js";import"./index-2TqE-Au3.js";import"./use-file-configs-CMtQ8Ude.js";import"./automation-list-row-DP-NJftm.js";const X={authors:[{key:"name",labelKey:"sandbox.recordEditor.fieldName",widget:"text"},{key:"type",labelKey:"sandbox.recordEditor.fieldType",widget:"select",options:[{value:"Person",labelKey:"sandbox.recordEditor.optionPerson"},{value:"Organization",labelKey:"sandbox.recordEditor.optionOrganization"}]},{key:"email",labelKey:"sandbox.recordEditor.fieldEmail",widget:"text",placeholderKey:"sandbox.recordEditor.placeholderEmail"},{key:"jobTitle",labelKey:"sandbox.recordEditor.fieldJobTitle",widget:"text"},{key:"company",labelKey:"sandbox.recordEditor.fieldCompany",widget:"text"},{key:"avatar",labelKey:"sandbox.recordEditor.fieldAvatar",widget:"image"}]},Y={authors:"sandbox.recordEditor.titleAuthor"};function Wr(C){const t=L.c(40),{orgSlug:K,virtualMcpId:h,branch:w,kind:a,blockKey:g,block:f}=C,i=R(),P=M(h);let b;t[0]!==w||t[1]!==K||t[2]!==P||t[3]!==h?(b={orgSlug:K,virtualMcpId:h,branch:w,packagePath:P},t[0]=w,t[1]=K,t[2]=P,t[3]=h,t[4]=b):b=t[4];const p=U(b);let k;t[5]!==f||t[6]!==a?(k=W(f,a),t[5]=f,t[6]=a,t[7]=k):k=t[7];const B=k;let v;t[8]!==g||t[9]!==a||t[10]!==p?(v=l=>{p.mutate({blockKey:g,data:G(g,a,l)})},t[8]=g,t[9]=a,t[10]=p,t[11]=v):v=t[11];const[e,S]=Q(B,v);let j;t[12]!==e||t[13]!==S?(j=(l,o)=>S({...e,[l]:o}),t[12]=e,t[13]=S,t[14]=j):j=t[14];const s=j,T=Y[a];let n;t[15]!==i||t[16]!==T?(n=i(T),t[15]=i,t[16]=T,t[17]=n):n=t[17];let c;t[18]!==n?(c=r.jsx("span",{className:"text-sm font-medium",children:n}),t[18]=n,t[19]=c):c=t[19];let d;t[20]!==p.isError||t[21]!==p.isPending?(d=r.jsx(q,{isPending:p.isPending,isError:p.isError}),t[20]=p.isError,t[21]=p.isPending,t[22]=d):d=t[22];let y;t[23]!==c||t[24]!==d?(y=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,d]}),t[23]=c,t[24]=d,t[25]=y):y=t[25];const N=X[a];let x;if(t[26]!==e||t[27]!==s||t[28]!==i||t[29]!==N){let l;t[31]!==e||t[32]!==s||t[33]!==i?(l=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(H,{schema:{type:"string",format:"image-uri",title:i(o.labelKey)},value:e[o.key],onChange:m=>s(o.key,m),path:o.key,label:i(o.labelKey)}):o.widget==="select"?r.jsxs(r.Fragment,{children:[r.jsx(I,{htmlFor:o.key,children:i(o.labelKey)}),r.jsxs(z,{value:F(e[o.key])||o.options?.[0]?.value,onValueChange:m=>s(o.key,m),children:[r.jsx(J,{id:o.key,className:"h-10 w-full",children:r.jsx(O,{placeholder:i(o.labelKey)})}),r.jsx(V,{children:(o.options??[]).map(m=>r.jsx($,{value:m.value,children:i(m.labelKey)},m.value))})]})]}):r.jsxs(r.Fragment,{children:[r.jsx(I,{htmlFor:o.key,children:i(o.labelKey)}),o.widget==="textarea"?r.jsx(D,{id:o.key,value:F(e[o.key]),onChange:m=>s(o.key,m.target.value),rows:3}):r.jsx(A,{id:o.key,value:F(e[o.key]),placeholder:o.placeholderKey?i(o.placeholderKey):void 0,onChange:m=>s(o.key,m.target.value),className:"h-10"})]})},o.key),t[31]=e,t[32]=s,t[33]=i,t[34]=l):l=t[34],x=N.map(l),t[26]=e,t[27]=s,t[28]=i,t[29]=N,t[30]=x}else x=t[30];let u;t[35]!==x?(u=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:x})}),t[35]=x,t[36]=u):u=t[36];let E;return t[37]!==y||t[38]!==u?(E=r.jsxs("div",{className:"flex h-full flex-col",children:[y,u]}),t[37]=y,t[38]=u,t[39]=E):E=t[39],E}export{Wr as RecordEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-39QoePJF.js","assets/index-DEpEe4q-.js","assets/index-BEdBSIIA.css","assets/Tool02-CiBt8qeE.js","assets/CheckCircle-Bn_vBNFy.js","assets/Settings02-BTfVHkK7.js","assets/use-mcp-client-omwH710V.js","assets/auth-D7Fz4chI.js","assets/useInfiniteQuery-F_jw9PUx.js","assets/use-infinite-scroll-BQdv-Z2F.js","assets/studio-tools-JKrn9JOe.js","assets/badge-Dz8OuFCR.js","assets/input-zrZUAZiG.js","assets/dropdown-menu-rlmS2woE.js","assets/Check-Dx-4HUEo.js","assets/ChevronRight-BEmZD6vD.js","assets/DotsVertical-loouiV0t.js","assets/table-CdLLcRfU.js","assets/toggle-group-CwlmdjBY.js","assets/use-view-mode-BqOg6L7c.js","assets/use-mobile-Wto5-uq3.js","assets/FilterLines-Bv1NZQv4.js","assets/Globe01-B54JZBFD.js","assets/SearchMd-DYIQSyA0.js","assets/dialog-CnsKJ4XS.js","assets/X-BDolklLb.js","assets/AlertCircle-aOidjqvT.js","assets/Upload01-B8mvKr_w.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-DO8HokZ1.js","assets/card-7QSUKxf2.js","assets/Trash01-CkvycJBp.js","assets/label-Biv3DlJq.js","assets/select-CDhKZB8e.js","assets/tooltip-CDKJbBi0.js","assets/ChevronDown-JRTCHhvr.js","assets/ChevronUp-C5AupxBz.js","assets/switch-BJPAHFJE.js","assets/textarea-B6_XVzip.js","assets/ArrowLeft-B75Lamri.js","assets/XCircle-Cedk5oAW.js","assets/checkbox-Bz2ch0aq.js","assets/Eye-5nLs5Hvl.js","assets/LinkExternal01-DpBurIUH.js","assets/use-copy-CPzfqp89.js","assets/Copy01-C-nHXXWU.js","assets/Key01-CRbalBhy.js","assets/Plus-BMXBf3l6.js","assets/mcp-oauth-BvER8ITi.js","assets/Play-BbZQD697.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as i,j as e,r as s,k as a,aG as o}from"./index-DEpEe4q-.js";import{R as m}from"./require-capability-vPM9ojao.js";import"./use-capability-DiYIjwqM.js";import"./access-gate-Ba1Ptbc3.js";import"./capability-load-error-BmyPT20N.js";const n=s.lazy(()=>o(()=>import("./registry-layout-39QoePJF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49])));function f(){const r=i.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(s.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,b as ct,r as w,m as $e,j as n,ae as Xn,B as Xe,k as Zn,o as Ca,t as J,K as Ma}from"./index-DEpEe4q-.js";import{ap as Ba,aq as Ka,ar as La,a4 as es,a5 as Qt,as as ts,at as ns,a6 as ss,a7 as as,au as os,av as Fa,ae as rs,af as is,aw as Ia,ax as Oa,ay as ls,O as $a,a8 as cs,a9 as Mt,ac as us,ad as ds,aa as ms,ak as fs,az as za,aA as Bt,aB as ps,aC as Ha,S as gs,aD as lt,G as hs,aE as Ua,aF as qa,aG as Ga,aH as Wa,D as Ya,F as Ja,aI as Qa,aJ as Xa,aK as Za,aL as eo,ai as qt,aM as Gt,aN as to,aO as St,aP as Pt,aQ as no,aR as so,aS as tt,aT as Kn,aU as ao,aV as At,aW as Wt,aX as oo,aY as mn,aZ as ro,a_ as kt,a$ as io,b0 as lo,b1 as co,b2 as uo,b3 as mo,b4 as xt,b5 as fo,b6 as po,b7 as go,I as ho,b8 as Ln,b9 as Ct,ba as Fn,bb as In,bc as vo,bd as bo,be as So,bf as xo,bg as fn,bh as On,bi as $n,bj as Tt,bk as Yt,bl as zn,bm as yo,bn as pn,bo as _o,bp as jo,bq as Eo,br as Ro,bs as wo}from"./index-Cd7ImlZn.js";import{t as ko}from"./ChevronDown-JRTCHhvr.js";import{ad as hn,v as To,T as vs,E as No,u as bs,af as Vo,_ as Do}from"./agent-icon-BfLH4bjn.js";import{i as Ss}from"./ChevronRight-BEmZD6vD.js";import{n as Po}from"./ChevronUp-C5AupxBz.js";import{i as Ao}from"./Globe01-B54JZBFD.js";import{B as Jt}from"./automation-runs-CZrEWNgn.js";import{c as yt,T as _t,a as jt}from"./tooltip-CDKJbBi0.js";import{b as Co,h as Mo,a as Bo,c as Ko,d as Lo,e as Fo}from"./dialog-CnsKJ4XS.js";import{I as Io}from"./input-zrZUAZiG.js";import{a as xs}from"./Copy01-C-nHXXWU.js";import{i as Oo}from"./Settings02-BTfVHkK7.js";import{s as $o}from"./Eye-5nLs5Hvl.js";import{s as ys}from"./TrendUp01-61jUkayc.js";import{s as vn}from"./Plus-BMXBf3l6.js";import{s as _s}from"./Trash01-CkvycJBp.js";import{i as zo}from"./Zap-BulQ-wUS.js";import{D as js,a as vt,c as Es,b as Rs,i as Ho}from"./dropdown-menu-rlmS2woE.js";import{S as Uo,r as Hn,u as qo,d as Go,a as Wo,i as Yo,f as Jo,P as Qo,b as Xo}from"./page-seo-form-SqsJT8Ac.js";import{c as Zo}from"./Tool01-DCUx1m_2.js";import{u as er,A as tr}from"./use-section-preview-base-DJQYqKD8.js";import"./ArrowUp-DrYxkigj.js";import"./chat-context-2M6oc7QJ.js";import"./tab-id-B0K1Rwjt.js";import"./Check-Dx-4HUEo.js";import"./hooks-DlP_xAJH.js";import"./use-mcp-client-omwH710V.js";import"./auth-D7Fz4chI.js";import"./decopilot-sse-pool-BFs-SH0_.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-H33bo8qX.js";import"./use-ai-providers-IL8QzB9I.js";import"./studio-tools-JKrn9JOe.js";import"./use-decopilot-events-CZky27eB.js";import"./use-organization-settings-BZCDAWGL.js";import"./spinner-NNRHh_E-.js";import"./drawer-BeDNXxoT.js";import"./collection-search-SDeQkDQi.js";import"./SearchMd-DYIQSyA0.js";import"./use-mobile-Wto5-uq3.js";import"./AreaChart-DhlgcMqi.js";import"./index-L3EDbLB4.js";import"./X-BDolklLb.js";import"./shell-layout-BN_umvta.js";import"./avatar-6hvPldfY.js";import"./User01-Bh73V9Wb.js";import"./Users03-DFt9F3jC.js";import"./SearchLg-BSoKDKGM.js";import"./Stars02-BMKoPVMZ.js";import"./XClose-CwEsNeOG.js";import"./CheckCircle-Bn_vBNFy.js";import"./CpuChip01-Bo3zJKjM.js";import"./FilterLines-Bv1NZQv4.js";import"./Monitor01-CvcqYp4W.js";import"./required-auth-layout-B0-fnnpX.js";import"./use-org-sso-BhCewyhm.js";import"./ZapSquare-C-b0Epcw.js";import"./Star01-QiZ1RG77.js";import"./Upload01-B8mvKr_w.js";import"./AlertCircle-aOidjqvT.js";import"./form-52Ne-88n.js";import"./label-Biv3DlJq.js";import"./select-CDhKZB8e.js";import"./ArrowLeft-B75Lamri.js";import"./XCircle-Cedk5oAW.js";import"./tabs-BpdKKZCJ.js";import"./Tool02-CiBt8qeE.js";import"./toggle-group-CwlmdjBY.js";import"./use-deco-credits-CpFkclRC.js";import"./sidebar-RUbPN908.js";import"./LayoutLeft-imuYF97o.js";import"./popover-Cb70GKE2.js";import"./alert-dialog-DO8HokZ1.js";import"./toolbar-YSDwUh5f.js";import"./skeleton-DS3OSh5_.js";import"./github-repo-picker-CwPFj7dA.js";import"./use-debounced-value-Bww2cW3r.js";import"./use-connection-CqI346XJ.js";import"./authenticate-and-persist-oauth-Dm1PHKBd.js";import"./mcp-oauth-BvER8ITi.js";import"./LinkExternal01-DpBurIUH.js";import"./Share07-D0gmP-5W.js";import"./use-mcp-tools-CtGBOWHg.js";import"./extract-connection-data-CIbNaxR4.js";import"./metadata-dUsYcpuu.js";import"./use-navigate-to-agent-X_HSTSU-.js";import"./reusable-new-chat-CouMjkYR.js";import"./provision-repo-scoped-github-connection-ufuvpGD9.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-BFsIJd5n.js";import"./use-registry-connections-CJTYfSxR.js";import"./useInfiniteQuery-F_jw9PUx.js";import"./use-infinite-scroll-BQdv-Z2F.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./card-7QSUKxf2.js";import"./integration-icon-BMIRMQW1.js";import"./textarea-B6_XVzip.js";import"./connection-form-helpers-DR_KMHPb.js";import"./collection-tabs-oDsWQber.js";import"./badge-Dz8OuFCR.js";import"./useSuspenseInfiniteQuery-Q6fusjYJ.js";import"./use-open-billing-url-BZaSYrMb.js";import"./select-model-BEwJ6x6F.js";import"./checkbox-Bz2ch0aq.js";import"./Key01-CRbalBhy.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CXrma9rU.js";import"./ArrowUpRight-DViLhVSI.js";import"./Stars01-uVD9VW2u.js";import"./cards-CzFnf54y.js";import"./DotsVertical-loouiV0t.js";import"./Palette-DQESctRo.js";import"./file-type-icon-Cj7E9OWU.js";import"./question-004-sINsf4GQ.js";import"./use-members-X5452kjt.js";import"./use-org-auth-client-D9z89DQw.js";import"./use-status-sounds-CN3t7bB_.js";import"./empty-state-BdPr9i4J.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-DiYIjwqM.js";import"./monaco-editor-D-JEkm2C.js";import"./pt-BR-CLy76QW2.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./switch-BJPAHFJE.js";import"./Play-BbZQD697.js";import"./use-debounced-autosave-DwbXpD7Q.js";import"./index-k-sVFH0h.js";import"./search-input-CjKFfke1.js";import"./index-DEPqNRvO.js";import"./Users01-DPdfOTlJ.js";import"./use-secrets-BKH6DKDA.js";import"./self-tool-result-C7MBhQze.js";import"./format-time-BnbuEtat.js";import"./use-copy-CPzfqp89.js";import"./SwitchHorizontal01-D6iKkjDf.js";import"./use-tags-CAcDQQYY.js";import"./get-initials-D-f_fDFw.js";import"./command-DPmNVSl9.js";import"./index-2TqE-Au3.js";import"./use-file-configs-CMtQ8Ude.js";import"./use-automations-BCNS6TuJ.js";import"./automation-list-row-DP-NJftm.js";import"./CreditCard01-Dh_t5bkX.js";import"./Globe04-BJ0M5tPH.js";import"./HardDrive-DY4V5XN0.js";import"./LogOut01-BfG0GXaG.js";import"./Sun-D5jb6SEL.js";import"./Shield01-CzM3eIKy.js";import"./table-CdLLcRfU.js";import"./use-clock-tick-BZBQkA9i.js";function nr(g){return g.schema?.definitions??g.schema?.$defs??{}}function sr(g,e){const o=nr(e),u=o[btoa(g)];if(!u)return;let p=typeof u.image=="string"?u.image:void 0;if(!p&&Array.isArray(u.allOf)){const v=u.allOf.find(S=>typeof S.$ref=="string")?.$ref;if(typeof v=="string"){const S=v.replace("#/definitions/",""),m=o[S];p=typeof m?.image=="string"?m.image:void 0}}if(p?.includes("{{{"))return p}function ar(g,e){if(!e)return;const o=Ba(g);if(!o)return;const u=sr(o.resolveType,e);if(!u)return;const p=Ka(u,o.data);if(p)return La(p)}const or="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",rr="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 Un(g){return Array.from({length:g},(e,o)=>({id:crypto.randomUUID(),index:o}))}function ws(g){return g.map((e,o)=>({...e,index:o}))}function ir(g,e){if(e===g.length)return g;if(e<g.length)return ws(g.slice(0,e));const o=Array.from({length:e-g.length},(u,p)=>({id:crypto.randomUUID(),index:g.length+p}));return[...g,...o]}function ks(g){const e=Ge.c(20),{section:o,raw:u,meta:p}=g,v=o.isSavedBlock===!0,S=o.isMultivariate===!0;let m;e[0]!==p||e[1]!==u?(m=u&&p?ar(u,p):void 0,e[0]=p,e[1]=u,e[2]=m):m=e[2];const x=m;let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(To,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[3]=d):d=e[3];let y;e[4]!==x?(y=x&&n.jsx("img",{src:x,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),e[4]=x,e[5]=y):y=e[5];let T;e[6]!==S||e[7]!==v?(T=v?{color:$a}:S?{color:"oklch(0.65 0.15 160)"}:void 0,e[6]=S,e[7]=v,e[8]=T):T=e[8];let V;e[9]!==T?(V=n.jsx(hn,{className:"h-4 w-4 shrink-0",style:T}),e[9]=T,e[10]=V):V=e[10];const E=o.isHidden&&"line-through opacity-50";let i;e[11]!==E?(i=$e("min-w-0 flex-1 truncate text-sm font-medium",E),e[11]=E,e[12]=i):i=e[12];let h;e[13]!==o.label||e[14]!==i?(h=n.jsx("span",{className:i,children:o.label}),e[13]=o.label,e[14]=i,e[15]=h):h=e[15];let r;return e[16]!==y||e[17]!==V||e[18]!==h?(r=n.jsxs(n.Fragment,{children:[d,y,V,h]}),e[16]=y,e[17]=V,e[18]=h,e[19]=r):r=e[19],r}const lr="w-7 ml-0 opacity-100 [transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]",cr="w-0 -ml-2 opacity-0 [transition:opacity_150ms_ease-out,width_0ms_150ms,margin-left_0ms_150ms] group-hover:ml-0 group-hover:w-7 group-hover:opacity-100 group-hover:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms] group-has-[:focus-visible]:ml-0 group-has-[:focus-visible]:w-7 group-has-[:focus-visible]:opacity-100 group-has-[:focus-visible]:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]",ur="w-7 ml-0 opacity-0 [transition:opacity_150ms_ease-out,width_0ms_150ms,margin-left_0ms_150ms] group-hover:opacity-100 group-has-[:focus-visible]:opacity-100";function gn(g,e){return $e("h-7 shrink-0 overflow-hidden",e?lr:g?ur:cr)}function Ts(g,e){const o=g.isSavedBlock===!0,u=g.isMultivariate===!0;return $e("group flex select-none items-center gap-2 rounded-md px-2 py-2.5",e?"bg-accent text-accent-foreground":o?or:u?ls:"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function dr(g){const e=Ge.c(82),{section:o,raw:u,meta:p,sortableId:v,selected:S,onSelect:m,onDelete:x,onDuplicate:d,onMakeReusable:y,onToggleHidden:T,onToggleLazy:V,onAddVariant:E,onDetach:i}=g,h=ct(),r=u?os(u.__resolveType??""):!1,P=o.isHidden===!0,l=r||P;let R;e[0]!==o?(R=Fa(o),e[0]=o,e[1]=R):R=e[1];const K=R;let O;e[2]!==v?(O={id:v,animateLayoutChanges:hr},e[2]=v,e[3]=O):O=e[3];const{attributes:H,listeners:f,setNodeRef:A,transform:De,isDragging:C}=rs(O);let ce;e[4]!==De?(ce=is.Transform.toString(De?{...De,x:0}:null),e[4]=De,e[5]=ce):ce=e[5];const B=C?0:void 0;let te;e[6]!==ce||e[7]!==B?(te={transform:ce,opacity:B},e[6]=ce,e[7]=B,e[8]=te):te=e[8];const F=te;let re;e[9]!==o?(re=Ia(o),e[9]=o,e[10]=re):re=e[10];const ie=re,xe="button",Q=0;let X;e[11]!==m?(X=N=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),m())},e[11]=m,e[12]=X):X=e[12];const ge=C?"cursor-grabbing":"cursor-pointer";let se;e[13]!==o||e[14]!==S||e[15]!==ge?(se=$e("touch-none transition-colors",ge,Ts(o,S)),e[13]=o,e[14]=S,e[15]=ge,e[16]=se):se=e[16];let L;e[17]!==p||e[18]!==u||e[19]!==o?(L=n.jsx(ks,{section:o,raw:u,meta:p}),e[17]=p,e[18]=u,e[19]=o,e[20]=L):L=e[20];const ze=!o.isMultivariate&&n.jsxs(yt,{children:[n.jsx(_t,{asChild:!0,children:n.jsx(Xe,{type:"button",variant:"ghost",size:"icon","aria-label":h(r?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender"),className:$e(gn(l,r)),onClick:N=>{N.stopPropagation(),V()},onPointerDown:gr,children:n.jsx(zo,{className:$e("h-3.5 w-3.5",r&&"text-yellow-500")})})}),n.jsx(jt,{side:"bottom",children:h(r?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")})]}),nt=!o.isMultivariate&&n.jsxs(yt,{children:[n.jsx(_t,{asChild:!0,children:n.jsx(Xe,{type:"button",variant:"ghost",size:"icon","aria-label":h(P?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),className:$e(gn(l,P)),onClick:N=>{N.stopPropagation(),T()},onPointerDown:pr,children:P?n.jsx(Oo,{className:"h-3.5 w-3.5"}):n.jsx($o,{className:"h-3.5 w-3.5"})})}),n.jsx(jt,{side:"bottom",children:h(P?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection")})]}),Le=Es,Me=js,W=!0,Z=Xe,Fe="button",Pe="ghost",ye="icon";let ue;e[21]!==h?(ue=h("sectionsEditor.sectionList.sectionActionsMenu"),e[21]=h,e[22]=ue):ue=e[22];const he=$e(gn(l,!1),"data-[state=open]:ml-0 data-[state=open]:w-7 data-[state=open]:opacity-100 data-[state=open]:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]");let _e;e[23]===Symbol.for("react.memo_cache_sentinel")?(_e=n.jsx(vs,{className:"h-3.5 w-3.5"}),e[23]=_e):_e=e[23];let we;e[24]!==Z||e[25]!==ue||e[26]!==he?(we=n.jsx(Z,{type:Fe,variant:Pe,size:ye,"aria-label":ue,className:he,onClick:fr,onPointerDown:mr,children:_e}),e[24]=Z,e[25]=ue,e[26]=he,e[27]=we):we=e[27];let ve;e[28]!==Me||e[29]!==we?(ve=n.jsx(Me,{asChild:W,children:we}),e[28]=Me,e[29]=we,e[30]=ve):ve=e[30];let ae;e[31]!==d?(ae=N=>{N.stopPropagation(),d()},e[31]=d,e[32]=ae):ae=e[32];let Ae;e[33]===Symbol.for("react.memo_cache_sentinel")?(Ae=n.jsx(xs,{className:"h-4 w-4"}),e[33]=Ae):Ae=e[33];let je;e[34]!==h?(je=h("sectionsEditor.sectionList.duplicateMenuItem"),e[34]=h,e[35]=je):je=e[35];let fe;e[36]!==ae||e[37]!==je?(fe=n.jsxs(vt,{onClick:ae,children:[Ae,je]}),e[36]=ae,e[37]=je,e[38]=fe):fe=e[38];let $;e[39]!==K||e[40]!==E||e[41]!==h?($=K&&n.jsxs(vt,{className:Oa,onClick:N=>{N.stopPropagation(),E()},children:[n.jsx(ys,{className:"h-4 w-4"}),h("sectionsEditor.sectionList.addVariantMenuItem")]}),e[39]=K,e[40]=E,e[41]=h,e[42]=$):$=e[42];let pe;e[43]!==ie||e[44]!==y||e[45]!==h?(pe=ie&&n.jsxs(vt,{className:rr,onClick:N=>{N.stopPropagation(),y()},children:[n.jsx(hn,{className:"h-4 w-4"}),h("sectionsEditor.sectionList.makeReusableMenuItem")]}),e[43]=ie,e[44]=y,e[45]=h,e[46]=pe):pe=e[46];let Ce;e[47]!==i||e[48]!==o.isMultivariate||e[49]!==o.isSavedBlock||e[50]!==h?(Ce=o.isSavedBlock===!0&&!o.isMultivariate&&n.jsxs(vt,{onClick:N=>{N.stopPropagation(),i()},children:[n.jsx(hn,{className:"h-4 w-4"}),h("sectionsEditor.sectionList.detachMenuItem")]}),e[47]=i,e[48]=o.isMultivariate,e[49]=o.isSavedBlock,e[50]=h,e[51]=Ce):Ce=e[51];let be;e[52]!==x?(be=N=>{N.stopPropagation(),x()},e[52]=x,e[53]=be):be=e[53];let ke;e[54]===Symbol.for("react.memo_cache_sentinel")?(ke=n.jsx(_s,{className:"h-4 w-4"}),e[54]=ke):ke=e[54];let ne;e[55]!==h?(ne=h("sectionsEditor.sectionList.deleteMenuItem"),e[55]=h,e[56]=ne):ne=e[56];let le;e[57]!==be||e[58]!==ne?(le=n.jsxs(vt,{className:"text-destructive focus:text-destructive",onClick:be,children:[ke,ne]}),e[57]=be,e[58]=ne,e[59]=le):le=e[59];let de;e[60]!==fe||e[61]!==$||e[62]!==pe||e[63]!==Ce||e[64]!==le?(de=n.jsxs(Rs,{align:"end",className:"w-44",children:[fe,$,pe,Ce,le]}),e[60]=fe,e[61]=$,e[62]=pe,e[63]=Ce,e[64]=le,e[65]=de):de=e[65];let Ee;e[66]!==Le||e[67]!==ve||e[68]!==de?(Ee=n.jsxs(Le,{children:[ve,de]}),e[66]=Le,e[67]=ve,e[68]=de,e[69]=Ee):Ee=e[69];let me;return e[70]!==H||e[71]!==f||e[72]!==m||e[73]!==A||e[74]!==F||e[75]!==se||e[76]!==L||e[77]!==ze||e[78]!==nt||e[79]!==Ee||e[80]!==X?(me=n.jsxs("div",{ref:A,style:F,...H,...f,role:xe,tabIndex:Q,onClick:m,onKeyDown:X,className:se,children:[L,ze,nt,Ee]}),e[70]=H,e[71]=f,e[72]=m,e[73]=A,e[74]=F,e[75]=se,e[76]=L,e[77]=ze,e[78]=nt,e[79]=Ee,e[80]=X,e[81]=me):me=e[81],me}function mr(g){return g.stopPropagation()}function fr(g){return g.stopPropagation()}function pr(g){return g.stopPropagation()}function gr(g){return g.stopPropagation()}function hr(){return!1}function vr(g){const e=Ge.c(104),{listKey:o,rawSections:u,sections:p,meta:v,selectedIndex:S,onSelect:m,onReorder:x,onDelete:d,onDuplicate:y,onMakeReusable:T,onToggleHidden:V,onToggleLazy:E,onAddVariant:i,onDetach:h,onAddSection:r,canAddSection:P}=g,l=P===void 0?!0:P,R=ct();let K;e[0]!==p.length?(K=()=>Un(p.length),e[0]=p.length,e[1]=K):K=e[1];const[O,H]=w.useState(K),[f,A]=w.useState(null),[De,C]=w.useState(o),[ce,B]=w.useState(p.length),te=w.useRef(!1);De!==o?(C(o),B(p.length),H(Un(p.length))):ce!==p.length&&(B(p.length),H(me=>ir(me,p.length)));let F;e[2]===Symbol.for("react.memo_cache_sentinel")?(F={activationConstraint:{distance:8}},e[2]=F):F=e[2];let re;e[3]===Symbol.for("react.memo_cache_sentinel")?(re={coordinateGetter:cs},e[3]=re):re=e[3];const ie=es(Qt(as,F),Qt(ss,re));let xe;e[4]!==O?(xe=O.map(br),e[4]=O,e[5]=xe):xe=e[5];const Q=xe;let X;e[6]===Symbol.for("react.memo_cache_sentinel")?(X=me=>{A(String(me.active.id))},e[6]=X):X=e[6];const ge=X;let se;e[7]!==Q||e[8]!==x?(se=me=>{A(null);const{active:N,over:oe}=me;if(!oe||N.id===oe.id)return;const I=Q.indexOf(String(N.id)),Be=Q.indexOf(String(oe.id));I===-1||Be===-1||(H(ut=>ws(Mt([...ut],I,Be))),te.current=!0,requestAnimationFrame(()=>{te.current=!1}),x?.(I,Be))},e[7]=Q,e[8]=x,e[9]=se):se=e[9];const L=se;let ze;e[10]===Symbol.for("react.memo_cache_sentinel")?(ze=()=>{A(null)},e[10]=ze):ze=e[10];const nt=ze;let Le,Me,W,Z,Fe,Pe,ye,ue,he,_e,we,ve,ae,Ae,je;if(e[11]!==f||e[12]!==l||e[13]!==O||e[14]!==Q||e[15]!==L||e[16]!==v||e[17]!==r||e[18]!==i||e[19]!==d||e[20]!==h||e[21]!==y||e[22]!==T||e[23]!==m||e[24]!==V||e[25]!==E||e[26]!==u||e[27]!==p||e[28]!==S||e[29]!==ie||e[30]!==R){Ae=Symbol.for("react.early_return_sentinel");e:{const me=N=>{te.current||m(N)};if(e[46]!==f||e[47]!==l||e[48]!==O||e[49]!==r||e[50]!==u||e[51]!==p||e[52]!==R){const N=f?O.find(oe=>oe.id===f):null;if(Z=N!=null?p[N.index]:null,W=N!=null?u[N.index]:void 0,O.length===0){let oe;e[56]!==R?(oe=R("sectionsEditor.sectionList.noSections"),e[56]=R,e[57]=oe):oe=e[57];let I;e[58]!==oe?(I=n.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:oe}),e[58]=oe,e[59]=I):I=e[59];const Be=!l;let ut;e[60]===Symbol.for("react.memo_cache_sentinel")?(ut=n.jsx(vn,{size:14}),e[60]=ut):ut=e[60];let Te;e[61]!==R?(Te=R("sectionsEditor.sectionList.addSectionButton"),e[61]=R,e[62]=Te):Te=e[62];let We;e[63]!==r||e[64]!==Be||e[65]!==Te?(We=n.jsxs(Xe,{type:"button",variant:"outline",size:"sm",className:"w-full",disabled:Be,onClick:r,children:[ut,Te]}),e[63]=r,e[64]=Be,e[65]=Te,e[66]=We):We=e[66];let Ie;e[67]!==I||e[68]!==We?(Ie=n.jsxs("div",{className:"space-y-2",children:[I,We]}),e[67]=I,e[68]=We,e[69]=Ie):Ie=e[69],Ae=Ie;break e}ae=$e(N&&"cursor-grabbing"),e[46]=f,e[47]=l,e[48]=O,e[49]=r,e[50]=u,e[51]=p,e[52]=R,e[53]=W,e[54]=Z,e[55]=ae}else W=e[53],Z=e[54],ae=e[55];Me=us,ue=ie,he=ds,_e=ge,we=L,ve=nt,Le=ms,Pe=Q,ye=fs,je="space-y-1",Fe=O.map(N=>{const oe=p[N.index];return oe?n.jsx(dr,{sortableId:N.id,section:oe,raw:u[N.index],meta:v,selected:S===N.index,onSelect:()=>me(N.index),onDelete:()=>d(N.index),onDuplicate:()=>y(N.index),onMakeReusable:()=>T(N.index),onToggleHidden:()=>V(N.index),onToggleLazy:()=>E(N.index),onAddVariant:()=>i(N.index),onDetach:()=>h(N.index)},N.id):null})}e[11]=f,e[12]=l,e[13]=O,e[14]=Q,e[15]=L,e[16]=v,e[17]=r,e[18]=i,e[19]=d,e[20]=h,e[21]=y,e[22]=T,e[23]=m,e[24]=V,e[25]=E,e[26]=u,e[27]=p,e[28]=S,e[29]=ie,e[30]=R,e[31]=Le,e[32]=Me,e[33]=W,e[34]=Z,e[35]=Fe,e[36]=Pe,e[37]=ye,e[38]=ue,e[39]=he,e[40]=_e,e[41]=we,e[42]=ve,e[43]=ae,e[44]=Ae,e[45]=je}else Le=e[31],Me=e[32],W=e[33],Z=e[34],Fe=e[35],Pe=e[36],ye=e[37],ue=e[38],he=e[39],_e=e[40],we=e[41],ve=e[42],ae=e[43],Ae=e[44],je=e[45];if(Ae!==Symbol.for("react.early_return_sentinel"))return Ae;let fe;e[70]!==Fe||e[71]!==je?(fe=n.jsx("div",{className:je,children:Fe}),e[70]=Fe,e[71]=je,e[72]=fe):fe=e[72];let $;e[73]!==Le||e[74]!==Pe||e[75]!==ye||e[76]!==fe?($=n.jsx(Le,{items:Pe,strategy:ye,children:fe}),e[73]=Le,e[74]=Pe,e[75]=ye,e[76]=fe,e[77]=$):$=e[77];let pe;e[78]!==W||e[79]!==Z||e[80]!==v?(pe=Z?n.jsx("div",{className:$e("cursor-grabbing shadow-lg ring-1 ring-border/60",Ts(Z,!1)),children:n.jsx(ks,{section:Z,raw:W,meta:v})}):null,e[78]=W,e[79]=Z,e[80]=v,e[81]=pe):pe=e[81];let Ce;e[82]!==pe?(Ce=Xn.createPortal(n.jsx(ts,{dropAnimation:ns,children:pe}),document.body),e[82]=pe,e[83]=Ce):Ce=e[83];let be;e[84]!==Me||e[85]!==ue||e[86]!==he||e[87]!==_e||e[88]!==we||e[89]!==ve||e[90]!==$||e[91]!==Ce?(be=n.jsxs(Me,{sensors:ue,collisionDetection:he,onDragStart:_e,onDragEnd:we,onDragCancel:ve,children:[$,Ce]}),e[84]=Me,e[85]=ue,e[86]=he,e[87]=_e,e[88]=we,e[89]=ve,e[90]=$,e[91]=Ce,e[92]=be):be=e[92];const ke=!l;let ne;e[93]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(vn,{size:14}),e[93]=ne):ne=e[93];let le;e[94]!==R?(le=R("sectionsEditor.sectionList.addSectionButton"),e[94]=R,e[95]=le):le=e[95];let de;e[96]!==r||e[97]!==ke||e[98]!==le?(de=n.jsxs(Xe,{type:"button",variant:"outline",size:"sm",className:"mt-2 w-full",disabled:ke,onClick:r,children:[ne,le]}),e[96]=r,e[97]=ke,e[98]=le,e[99]=de):de=e[99];let Ee;return e[100]!==ae||e[101]!==be||e[102]!==de?(Ee=n.jsxs("div",{className:ae,children:[be,de]}),e[100]=ae,e[101]=be,e[102]=de,e[103]=Ee):Ee=e[103],Ee}function br(g){return g.id}function qn(g){const e=Ge.c(57),{open:o,initialName:u,autoLabel:p,isPending:v,onSubmit:S,onOpenChange:m}=g,x=v===void 0?!1:v,d=ct(),[y,T]=w.useState(u),[V,E]=w.useState(o);o!==V&&(E(o),o&&T(u));let i;e[0]!==x||e[1]!==m?(i=ge=>{!ge&&!x&&m(!1)},e[0]=x,e[1]=m,e[2]=i):i=e[2];const h=i;let r;e[3]!==x||e[4]!==y||e[5]!==S?(r=async ge=>{ge.preventDefault(),!x&&await S(y.trim())},e[3]=x,e[4]=y,e[5]=S,e[6]=r):r=e[6];const P=r;let l;e[7]!==d?(l=d("sectionsEditor.variantRenameDialog.title"),e[7]=d,e[8]=l):l=e[8];let R;e[9]!==l?(R=n.jsx(Co,{children:l}),e[9]=l,e[10]=R):R=e[10];let K;e[11]!==p||e[12]!==d?(K=d("sectionsEditor.variantRenameDialog.description",{fallback:p||d("sectionsEditor.variantRenameDialog.defaultFallback")}),e[11]=p,e[12]=d,e[13]=K):K=e[13];let O;e[14]!==K?(O=n.jsx(Mo,{children:K}),e[14]=K,e[15]=O):O=e[15];let H;e[16]!==R||e[17]!==O?(H=n.jsxs(Bo,{children:[R,O]}),e[16]=R,e[17]=O,e[18]=H):H=e[18];let f;e[19]!==d?(f=d("sectionsEditor.variantRenameDialog.nameLabel"),e[19]=d,e[20]=f):f=e[20];let A;e[21]!==f?(A=n.jsx("label",{htmlFor:"variant-rename-name",className:"text-xs font-medium text-muted-foreground",children:f}),e[21]=f,e[22]=A):A=e[22];let De;e[23]===Symbol.for("react.memo_cache_sentinel")?(De=ge=>T(ge.target.value),e[23]=De):De=e[23];let C;e[24]!==p||e[25]!==x||e[26]!==y?(C=n.jsx(Io,{id:"variant-rename-name",value:y,onChange:De,placeholder:p,autoFocus:!0,disabled:x}),e[24]=p,e[25]=x,e[26]=y,e[27]=C):C=e[27];let ce;e[28]!==A||e[29]!==C?(ce=n.jsxs("div",{className:"space-y-1.5 py-4",children:[A,C]}),e[28]=A,e[29]=C,e[30]=ce):ce=e[30];let B;e[31]!==m?(B=()=>m(!1),e[31]=m,e[32]=B):B=e[32];let te;e[33]!==d?(te=d("sectionsEditor.variantRenameDialog.cancel"),e[33]=d,e[34]=te):te=e[34];let F;e[35]!==x||e[36]!==B||e[37]!==te?(F=n.jsx(Xe,{type:"button",variant:"outline",onClick:B,disabled:x,children:te}),e[35]=x,e[36]=B,e[37]=te,e[38]=F):F=e[38];let re;e[39]!==x||e[40]!==d?(re=x?n.jsxs(n.Fragment,{children:[n.jsx(Zn,{size:14,className:"animate-spin"}),d("sectionsEditor.variantRenameDialog.saving")]}):d("sectionsEditor.variantRenameDialog.save"),e[39]=x,e[40]=d,e[41]=re):re=e[41];let ie;e[42]!==x||e[43]!==re?(ie=n.jsx(Xe,{type:"submit",disabled:x,children:re}),e[42]=x,e[43]=re,e[44]=ie):ie=e[44];let xe;e[45]!==F||e[46]!==ie?(xe=n.jsxs(Ko,{children:[F,ie]}),e[45]=F,e[46]=ie,e[47]=xe):xe=e[47];let Q;e[48]!==P||e[49]!==ce||e[50]!==xe||e[51]!==H?(Q=n.jsx(Lo,{className:"sm:max-w-md",children:n.jsxs("form",{onSubmit:P,children:[H,ce,xe]})}),e[48]=P,e[49]=ce,e[50]=xe,e[51]=H,e[52]=Q):Q=e[52];let X;return e[53]!==h||e[54]!==o||e[55]!==Q?(X=n.jsx(Fo,{open:o,onOpenChange:h,children:Q}),e[53]=h,e[54]=o,e[55]=Q,e[56]=X):X=e[56],X}function Ns(g){const e=Ge.c(5),{rule:o,matchers:u}=g,p=o?.__resolveType??"";let v;if(e[0]!==u||e[1]!==p){const d=u.find(y=>y.resolveType===p)?.iconName??za(p);v=No(d),e[0]=u,e[1]=p,e[2]=v}else v=e[2];const S=v;if(!S)return null;let m;return e[3]!==S?(m=n.jsx(S,{size:14,className:"shrink-0"}),e[3]=S,e[4]=m):m=e[4],m}function Gn(g){return g.map(e=>`${e.label}|${e.rule?.__resolveType??""}`).join(`
|
|
2
|
-
`)}function Wn(g){return g.map((e,o)=>({id:crypto.randomUUID(),index:o,variant:e}))}function Sr(g,e){const o=new Map(g.map(u=>[u.variant.label,u]));return e.map((u,p)=>{const v=o.get(u.label);return v&&o.delete(u.label),{id:v?.id??crypto.randomUUID(),index:p,variant:u}})}function xr(g){return g.map((e,o)=>({...e,index:o}))}function Vs(g){const e=Ge.c(17),{label:o,effectiveRule:u,matchers:p,canDelete:v,dragging:S,onRename:m,onDuplicate:x,onDelete:d}=g,y=ct();let T;e[0]!==u||e[1]!==p?(T=n.jsx(Ns,{rule:u,matchers:p}),e[0]=u,e[1]=p,e[2]=T):T=e[2];let V;e[3]!==o?(V=n.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:o}),e[3]=o,e[4]=V):V=e[4];let E;e[5]!==v||e[6]!==S||e[7]!==o||e[8]!==d||e[9]!==x||e[10]!==m||e[11]!==y?(E=!S&&n.jsxs(Es,{children:[n.jsx(js,{asChild:!0,children:n.jsx(Xe,{type:"button",variant:"ghost",size:"icon","aria-label":y("sectionsEditor.pageVariantTabs.actionsAriaLabel",{label:o}),className:"size-6 shrink-0 opacity-0 transition-opacity group-hover:opacity-100 data-[state=open]:opacity-100",onClick:_r,onPointerDown:yr,children:n.jsx(vs,{size:14})})}),n.jsxs(Rs,{align:"end",className:"w-36",children:[n.jsxs(vt,{onClick:h=>{h.stopPropagation(),m?.()},children:[n.jsx(Zo,{size:14}),y("sectionsEditor.pageVariantTabs.renameAction")]}),n.jsxs(vt,{onClick:h=>{h.stopPropagation(),x?.()},children:[n.jsx(xs,{size:14}),y("sectionsEditor.pageVariantTabs.duplicateAction")]}),n.jsx(Ho,{}),n.jsxs(vt,{variant:"destructive",disabled:!v,onClick:h=>{h.stopPropagation(),d?.()},children:[n.jsx(_s,{size:14}),y("sectionsEditor.pageVariantTabs.deleteAction")]})]})]}),e[5]=v,e[6]=S,e[7]=o,e[8]=d,e[9]=x,e[10]=m,e[11]=y,e[12]=E):E=e[12];let i;return e[13]!==T||e[14]!==V||e[15]!==E?(i=n.jsxs(n.Fragment,{children:[T,V,E]}),e[13]=T,e[14]=V,e[15]=E,e[16]=i):i=e[16],i}function yr(g){return g.stopPropagation()}function _r(g){return g.stopPropagation()}function jr(g){const e=Ge.c(33),{entry:o,sortableId:u,isActive:p,canDelete:v,decofile:S,meta:m,matchers:x,onSelect:d,onRename:y,onDuplicate:T,onDelete:V}=g;let E;e[0]!==u?(E={id:u,animateLayoutChanges:Er},e[0]=u,e[1]=E):E=e[1];const{attributes:i,listeners:h,setNodeRef:r,transform:P,isDragging:l}=rs(E);let R;e[2]!==P?(R=is.Transform.toString(P?{...P,x:0}:null),e[2]=P,e[3]=R):R=e[3];const K=l?0:void 0;let O;e[4]!==R||e[5]!==K?(O={transform:R,opacity:K},e[4]=R,e[5]=K,e[6]=O):O=e[6];const H=O,f=m??void 0;let A;e[7]!==S||e[8]!==o.variant.rule||e[9]!==f?(A=Bt(o.variant.rule,S,f),e[7]=S,e[8]=o.variant.rule,e[9]=f,e[10]=A):A=e[10];const De=A;let C;e[11]!==d?(C=ie=>{ie.target===ie.currentTarget&&(ie.key==="Enter"||ie.key===" ")&&(ie.preventDefault(),d())},e[11]=d,e[12]=C):C=e[12];const ce=l?"cursor-grabbing":"cursor-pointer active:cursor-grabbing",B=p?ps:ls;let te;e[13]!==ce||e[14]!==B?(te=$e("group flex select-none items-center gap-2 rounded-md px-2 py-2.5 transition-colors touch-none",ce,B),e[13]=ce,e[14]=B,e[15]=te):te=e[15];let F;e[16]!==v||e[17]!==De||e[18]!==o.variant.label||e[19]!==x||e[20]!==V||e[21]!==T||e[22]!==y?(F=n.jsx(Vs,{label:o.variant.label,effectiveRule:De,matchers:x,canDelete:v,onRename:y,onDuplicate:T,onDelete:V}),e[16]=v,e[17]=De,e[18]=o.variant.label,e[19]=x,e[20]=V,e[21]=T,e[22]=y,e[23]=F):F=e[23];let re;return e[24]!==i||e[25]!==h||e[26]!==d||e[27]!==r||e[28]!==H||e[29]!==te||e[30]!==F||e[31]!==C?(re=n.jsx("div",{ref:r,style:H,...i,...h,onClick:d,onKeyDown:C,className:te,children:F}),e[24]=i,e[25]=h,e[26]=d,e[27]=r,e[28]=H,e[29]=te,e[30]=F,e[31]=C,e[32]=re):re=e[32],re}function Er(){return!1}function Rr(g){const e=Ge.c(9),{variant:o,decofile:u,meta:p,matchers:v}=g,S=p??void 0;let m;e[0]!==u||e[1]!==S||e[2]!==o.rule?(m=Bt(o.rule,u,S),e[0]=u,e[1]=S,e[2]=o.rule,e[3]=m):m=e[3];const x=m;let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=$e("flex items-center gap-2 rounded-md px-2 py-2.5 shadow-lg ring-1 ring-border/60 cursor-grabbing",ps),e[4]=d):d=e[4];let y;return e[5]!==x||e[6]!==v||e[7]!==o.label?(y=n.jsx("div",{className:d,children:n.jsx(Vs,{label:o.label,effectiveRule:x,matchers:v,canDelete:!1,dragging:!0})}),e[5]=x,e[6]=v,e[7]=o.label,e[8]=y):y=e[8],y}function wr(g){const e=Ge.c(91),{listKey:o,variants:u,activeIndex:p,decofile:v,meta:S,matchers:m,onSelect:x,onReorder:d,onRename:y,onDuplicate:T,onDelete:V,onAdd:E}=g,i=ct();let h;e[0]!==u?(h=()=>Wn(u),e[0]=u,e[1]=h):h=e[1];const[r,P]=w.useState(h),[l,R]=w.useState(null),[K,O]=w.useState(o),[H,f]=w.useState(u.length);let A;e[2]!==u?(A=()=>Gn(u),e[2]=u,e[3]=A):A=e[3];const[De,C]=w.useState(A),ce=w.useRef(!1),B=Gn(u);K!==o?(O(o),f(u.length),C(B),P(Wn(u))):(H!==u.length||De!==B)&&(f(u.length),C(B),P(be=>Sr(be,u)));let te;e[4]===Symbol.for("react.memo_cache_sentinel")?(te={activationConstraint:{distance:8}},e[4]=te):te=e[4];let F;e[5]===Symbol.for("react.memo_cache_sentinel")?(F={coordinateGetter:cs},e[5]=F):F=e[5];const re=es(Qt(as,te),Qt(ss,F));let ie;e[6]!==r?(ie=r.map(kr),e[6]=r,e[7]=ie):ie=e[7];const xe=ie,Q=u.length>1;let X;e[8]!==r?(X=be=>{const ke=String(be.active.id);R(r.find(ne=>ne.id===ke)??null)},e[8]=r,e[9]=X):X=e[9];const ge=X;let se;e[10]!==xe||e[11]!==d?(se=be=>{R(null);const{active:ke,over:ne}=be;if(!ne||ke.id===ne.id)return;const le=xe.indexOf(String(ke.id)),de=xe.indexOf(String(ne.id));le===-1||de===-1||(P(Ee=>xr(Mt([...Ee],le,de))),ce.current=!0,requestAnimationFrame(()=>{ce.current=!1}),d(le,de))},e[10]=xe,e[11]=d,e[12]=se):se=e[12];const L=se;let ze;e[13]===Symbol.for("react.memo_cache_sentinel")?(ze=()=>{R(null)},e[13]=ze):ze=e[13];const nt=ze;let Le,Me,W,Z,Fe,Pe,ye,ue,he,_e,we,ve,ae;if(e[14]!==p||e[15]!==Q||e[16]!==v||e[17]!==r||e[18]!==xe||e[19]!==L||e[20]!==ge||e[21]!==m||e[22]!==S||e[23]!==E||e[24]!==V||e[25]!==T||e[26]!==y||e[27]!==x||e[28]!==re||e[29]!==i){const be=I=>{ce.current||x(I)};we="space-y-1 border-b p-2";let ke;e[43]!==i?(ke=i("sectionsEditor.pageVariantTabs.variantsLabel"),e[43]=i,e[44]=ke):ke=e[44];let ne;e[45]!==ke?(ne=n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:ke}),e[45]=ke,e[46]=ne):ne=e[46];let le;e[47]!==i?(le=i("sectionsEditor.pageVariantTabs.addVariantAriaLabel"),e[47]=i,e[48]=le):le=e[48];let de;e[49]===Symbol.for("react.memo_cache_sentinel")?(de=n.jsx(vn,{size:14}),e[49]=de):de=e[49];let Ee;e[50]!==E||e[51]!==le?(Ee=n.jsx(_t,{asChild:!0,children:n.jsx(Xe,{type:"button",variant:"ghost",size:"icon","aria-label":le,className:"size-6",onClick:E,children:de})}),e[50]=E,e[51]=le,e[52]=Ee):Ee=e[52];let me;e[53]!==i?(me=i("sectionsEditor.pageVariantTabs.addVariantTooltip"),e[53]=i,e[54]=me):me=e[54];let N;e[55]!==me?(N=n.jsx(jt,{children:me}),e[55]=me,e[56]=N):N=e[56];let oe;e[57]!==Ee||e[58]!==N?(oe=n.jsxs(yt,{children:[Ee,N]}),e[57]=Ee,e[58]=N,e[59]=oe):oe=e[59],e[60]!==ne||e[61]!==oe?(ve=n.jsxs("div",{className:"flex items-center justify-between",children:[ne,oe]}),e[60]=ne,e[61]=oe,e[62]=ve):ve=e[62],Me=us,Pe=re,ye=ds,ue=ge,he=L,_e=nt,Le=ms,Z=xe,Fe=fs,ae="space-y-0.5",W=r.map(I=>n.jsx(jr,{sortableId:I.id,entry:I,isActive:I.index===p,canDelete:Q,decofile:v,meta:S,matchers:m,onSelect:()=>be(I.index),onRename:()=>y(I.index),onDuplicate:()=>T(I.index),onDelete:()=>V(I.index)},I.id)),e[14]=p,e[15]=Q,e[16]=v,e[17]=r,e[18]=xe,e[19]=L,e[20]=ge,e[21]=m,e[22]=S,e[23]=E,e[24]=V,e[25]=T,e[26]=y,e[27]=x,e[28]=re,e[29]=i,e[30]=Le,e[31]=Me,e[32]=W,e[33]=Z,e[34]=Fe,e[35]=Pe,e[36]=ye,e[37]=ue,e[38]=he,e[39]=_e,e[40]=we,e[41]=ve,e[42]=ae}else Le=e[30],Me=e[31],W=e[32],Z=e[33],Fe=e[34],Pe=e[35],ye=e[36],ue=e[37],he=e[38],_e=e[39],we=e[40],ve=e[41],ae=e[42];let Ae;e[63]!==W||e[64]!==ae?(Ae=n.jsx("div",{className:ae,children:W}),e[63]=W,e[64]=ae,e[65]=Ae):Ae=e[65];let je;e[66]!==Le||e[67]!==Z||e[68]!==Fe||e[69]!==Ae?(je=n.jsx(Le,{items:Z,strategy:Fe,children:Ae}),e[66]=Le,e[67]=Z,e[68]=Fe,e[69]=Ae,e[70]=je):je=e[70];let fe;e[71]!==l||e[72]!==v||e[73]!==m||e[74]!==S?(fe=l?n.jsx(Rr,{variant:l.variant,decofile:v,meta:S,matchers:m}):null,e[71]=l,e[72]=v,e[73]=m,e[74]=S,e[75]=fe):fe=e[75];let $;e[76]!==fe?($=Xn.createPortal(n.jsx(ts,{dropAnimation:ns,children:fe}),document.body),e[76]=fe,e[77]=$):$=e[77];let pe;e[78]!==Me||e[79]!==Pe||e[80]!==ye||e[81]!==ue||e[82]!==he||e[83]!==_e||e[84]!==je||e[85]!==$?(pe=n.jsxs(Me,{sensors:Pe,collisionDetection:ye,onDragStart:ue,onDragEnd:he,onDragCancel:_e,children:[je,$]}),e[78]=Me,e[79]=Pe,e[80]=ye,e[81]=ue,e[82]=he,e[83]=_e,e[84]=je,e[85]=$,e[86]=pe):pe=e[86];let Ce;return e[87]!==we||e[88]!==ve||e[89]!==pe?(Ce=n.jsxs("div",{className:we,children:[ve,pe]}),e[87]=we,e[88]=ve,e[89]=pe,e[90]=Ce):Ce=e[90],Ce}function kr(g){return g.id}function Tr(g){const e=Ge.c(16),{schema:o,value:u,onChange:p,meta:v,decofile:S,onSaveReferencedBlock:m,sandbox:x}=g,d=ct();let y;e[0]===Symbol.for("react.memo_cache_sentinel")?(y=[],e[0]=y):y=e[0];const[T,V]=w.useState(y);let E;e[1]!==T||e[2]!==d?(E=T.length>0&&n.jsxs("nav",{"aria-label":d("sectionsEditor.sectionsEditorPanels.variantRuleBreadcrumb"),className:"flex min-w-0 items-center gap-1 overflow-hidden text-xs",children:[n.jsx("button",{type:"button",onClick:()=>V([]),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:d("sectionsEditor.sectionsEditorPanels.backToRule"),children:n.jsx(bs,{className:"size-3.5"})}),T.map((r,P)=>{const l=P===T.length-1,R=hs(r);return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[P>0&&n.jsx(Ss,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>V(T.slice(0,P+1)),title:R,className:$e("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors hover:bg-accent hover:text-accent-foreground",l?"font-medium text-foreground":"text-muted-foreground"),children:R})]},`${R}-${P}`)})]}),e[1]=T,e[2]=d,e[3]=E):E=e[3];let i;e[4]!==T||e[5]!==S||e[6]!==v||e[7]!==p||e[8]!==m||e[9]!==x||e[10]!==o||e[11]!==u?(i=n.jsx(gs,{schema:o,value:u,onChange:p,basePath:"",breadcrumbPath:T,onBreadcrumbChange:V,meta:v,decofile:S,onSaveReferencedBlock:m,sandbox:x}),e[4]=T,e[5]=S,e[6]=v,e[7]=p,e[8]=m,e[9]=x,e[10]=o,e[11]=u,e[12]=i):i=e[12];let h;return e[13]!==E||e[14]!==i?(h=n.jsxs("div",{className:"space-y-2",children:[E,i]}),e[13]=E,e[14]=i,e[15]=h):h=e[15],h}function Yn(g){const e=Ge.c(23),{activeSchema:o,formValue:u,formResetKey:p,onFormChange:v,onBreadcrumbChange:S,breadcrumbPath:m,emptyMessage:x,beforeForm:d,seoResolveType:y,siteDefaultSeo:T,meta:V,decofile:E,onSaveReferencedBlock:i,sandbox:h,previewBaseUrl:r,onRequestAddSection:P}=g;let l;e[0]!==m?(l=m===void 0?[]:m,e[0]=m,e[1]=l):l=e[1];const R=l;let K;e[2]!==o||e[3]!==R||e[4]!==E||e[5]!==p||e[6]!==u||e[7]!==V||e[8]!==S||e[9]!==v||e[10]!==P||e[11]!==i||e[12]!==r||e[13]!==h||e[14]!==y||e[15]!==T?(K=o&&u?y?n.jsx(Uo,{schema:o,resolveType:y,value:u,formResetKey:p,onChange:v,onBreadcrumbChange:S,siteDefaultSeo:T}):n.jsx(gs,{schema:o,value:u,onChange:v,basePath:"",breadcrumbPath:R,onBreadcrumbChange:S,meta:V,decofile:E,onSaveReferencedBlock:i,sandbox:h,previewBaseUrl:r,onRequestAddSection:P},p):null,e[2]=o,e[3]=R,e[4]=E,e[5]=p,e[6]=u,e[7]=V,e[8]=S,e[9]=v,e[10]=P,e[11]=i,e[12]=r,e[13]=h,e[14]=y,e[15]=T,e[16]=K):K=e[16];const O=K;let H;e[17]!==x||e[18]!==O?(H=O??n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:x}),e[17]=x,e[18]=O,e[19]=H):H=e[19];let f;return e[20]!==d||e[21]!==H?(f=n.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:n.jsxs("div",{className:"mx-auto max-w-2xl",children:[d,H]})}),e[20]=d,e[21]=H,e[22]=f):f=e[22],f}const Nr="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 Vr(g,e){return Ha(g,e,lt)}function Dr(g){const e=Ge.c(19),{pageKey:o,initialName:u,initialPath:p,onFieldChange:v}=g,S=ct(),[m,x]=w.useState(u),[d,y]=w.useState(p),[T,V]=w.useState(o);T!==o&&(V(o),x(u),y(p));let E;e[0]!==v?(E=K=>{x(K.target.value),v("name",K.target.value)},e[0]=v,e[1]=E):E=e[1];let i;e[2]!==S?(i=S("sectionsEditor.sectionsEditorPanels.pageNamePlaceholder"),e[2]=S,e[3]=i):i=e[3];let h;e[4]!==m||e[5]!==E||e[6]!==i?(h=n.jsx("input",{type:"text",value:m,onChange:E,className:"w-full bg-transparent text-sm font-semibold truncate outline-none border-none p-0 focus:ring-0 placeholder:text-muted-foreground",placeholder:i}),e[4]=m,e[5]=E,e[6]=i,e[7]=h):h=e[7];let r;e[8]!==v?(r=K=>{y(K.target.value),v("path",K.target.value)},e[8]=v,e[9]=r):r=e[9];let P;e[10]!==S?(P=S("sectionsEditor.sectionsEditorPanels.pathPlaceholder"),e[10]=S,e[11]=P):P=e[11];let l;e[12]!==d||e[13]!==r||e[14]!==P?(l=n.jsx("input",{type:"text",value:d,onChange:r,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:P}),e[12]=d,e[13]=r,e[14]=P,e[15]=l):l=e[15];let R;return e[16]!==h||e[17]!==l?(R=n.jsxs("div",{className:"space-y-1",children:[h,l]}),e[16]=h,e[17]=l,e[18]=R):R=e[18],R}function Jn(g){const e=Ge.c(13),{onClick:o}=g,u=ct();let p;e[0]!==u?(p=u("sectionsEditor.sectionsEditorPanels.addVariant"),e[0]=u,e[1]=p):p=e[1];let v;e[2]===Symbol.for("react.memo_cache_sentinel")?(v=n.jsx(ys,{size:14}),e[2]=v):v=e[2];let S;e[3]!==o||e[4]!==p?(S=n.jsx(_t,{asChild:!0,children:n.jsx(Xe,{type:"button",variant:"ghost",size:"icon","aria-label":p,className:"size-7 shrink-0 text-[oklch(0.65_0.15_160)]",onClick:o,children:v})}),e[3]=o,e[4]=p,e[5]=S):S=e[5];let m;e[6]!==u?(m=u("sectionsEditor.sectionsEditorPanels.addVariant"),e[6]=u,e[7]=m):m=e[7];let x;e[8]!==m?(x=n.jsx(jt,{side:"bottom",children:m}),e[8]=m,e[9]=x):x=e[9];let d;return e[10]!==S||e[11]!==x?(d=n.jsxs(yt,{children:[S,x]}),e[10]=S,e[11]=x,e[12]=d):d=e[12],d}function Qn(g){const e=Ge.c(21),{currentRt:o,currentLabel:u,currentGlobalKey:p,matchers:v,globals:S,onSelect:m,onSelectGlobal:x,schema:d,formValue:y,onChange:T,formKey:V,formWrapperClassName:E,meta:i,decofile:h,onSaveReferencedBlock:r,sandbox:P}=g;let l;e[0]!==p||e[1]!==u||e[2]!==o||e[3]!==S||e[4]!==v||e[5]!==m||e[6]!==x?(l=n.jsx(Ua,{currentRt:o,currentLabel:u,currentGlobalKey:p,matchers:v,globals:S,onSelect:m,onSelectGlobal:x}),e[0]=p,e[1]=u,e[2]=o,e[3]=S,e[4]=v,e[5]=m,e[6]=x,e[7]=l):l=e[7];let R;e[8]!==h||e[9]!==V||e[10]!==y||e[11]!==E||e[12]!==i||e[13]!==T||e[14]!==r||e[15]!==P||e[16]!==d?(R=d&&y&&n.jsx("div",{className:E,children:n.jsx(Tr,{schema:d,value:y,onChange:T,meta:i,decofile:h,onSaveReferencedBlock:r,sandbox:P},V)}),e[8]=h,e[9]=V,e[10]=y,e[11]=E,e[12]=i,e[13]=T,e[14]=r,e[15]=P,e[16]=d,e[17]=R):R=e[17];let K;return e[18]!==l||e[19]!==R?(K=n.jsxs(n.Fragment,{children:[l,R]}),e[18]=l,e[19]=R,e[20]=K):K=e[20],K}function Ec({orgSlug:g,virtualMcpId:e,branch:o,previewReady:u=!0,previewUrl:p,currentPath:v,activePageBlockKey:S=null,activeGlobalBlockKey:m=null,externalSelection:x,onSaved:d,initialEditSeo:y=!1,onExitSeo:T,onViewJsonFile:V,onVariantPreviewOverride:E}){const i=ct(),h=u?{orgSlug:g,virtualMcpId:e,branch:o,previewUrl:p}:null,{data:r,isLoading:P}=qa(h),{data:l,isLoading:R}=Ga(h),K=Wa(),O=K?.entity?.id===e?K.entity.metadata?.siteSlug??null:null,H=er({virtualMcpId:e,sandboxUrl:p}),[f,A]=w.useState(null),[De,C]=w.useState(null),[ce,B]=w.useState(null),[te,F]=w.useState(0),[re,ie]=w.useState(void 0),[xe,Q]=w.useState(null),[X,ge]=w.useState(null),[se,L]=w.useState([]),ze=w.useRef(null),[nt,Le]=w.useState(se.length);nt!==se.length&&(Le(se.length),requestAnimationFrame(()=>{ze.current&&(ze.current.scrollTop=0)}));const[Me,W]=w.useState(0),[Z,Fe]=w.useState(null),[Pe,ye]=w.useState(null),[ue,he]=w.useState(null),[_e,we]=w.useState(!0),[ve,ae]=w.useState(!1),[Ae,je]=w.useState(!1),fe=w.useRef(null),[$,pe]=w.useState(y),[Ce,be]=w.useState(y);y&&!Ce&&(be(!0),pe(!0),A(null),C(null),B(null),L([])),!y&&Ce&&be(!1);const[ke,ne]=w.useState(null),[le,de]=w.useState(void 0),[Ee,me]=w.useState([]),[N,oe]=w.useState(0),[I,Be]=w.useState(0),[ut,Te]=w.useState(null),[We,Ie]=w.useState(null),[bn,Sn]=w.useState(null),Ds=Ca(),Ps=`${g}/${e}/${o}`,Xt=Ya({orgSlug:g,virtualMcpId:e,branch:o}),[As,Cs]=w.useState(v),[Ms,Bs]=w.useState(S),[Ks,Ls]=w.useState(m);(As!==v||Ms!==S||Ks!==m)&&(queueMicrotask(()=>Xt.flush()),Cs(v),Bs(S),Ls(m),A(null),C(null),B(null),F(0),Q(null),ge(null),Be(0),Te(null),Ie(null),L([]),W(t=>t+1),pe(!1),ne(null),de(void 0),me([]),oe(t=>t+1));const Ne=Ja({orgSlug:g,virtualMcpId:e,branch:o}),Kt=ho((t,s)=>{Ne.mutate({blockKey:t,data:s},{onSuccess:()=>d?.(),onError:a=>J.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:a.message}))})}),Zt=Qa({orgSlug:g,virtualMcpId:e,branch:o}),[Nt,Lt]=w.useState(!1),He=w.useRef(null),st=w.useRef(null),at=w.useRef(null),en=w.useRef({}),Ze=w.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null});if(!u||P||R)return n.jsx("div",{className:"h-full w-full flex items-center justify-center",children:n.jsx(Zn,{size:20,className:"animate-spin text-muted-foreground"})});if(!r||!l)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:i("sectionsEditor.sectionsEditor.couldNotLoadSiteData")});const Fs=Xa(r),Ve=!!m,Ye=Ve?null:Za(Fs,v,S),k=Ve?m:Ye?.key??null,tn=Ve&&m?r[m]:void 0,xn=Ve&&m&&tn?eo(m,tn):Ve&&m?m:"",Ft=!Ve&&k&&r[k]?r[k]:null,nn=$&&r&&l&&k&&Ye?Hn(r,{kind:"page",pageKey:k,pageName:String(Ye.name??""),path:String(Ye.path??"")},l):null,Is=$?Ft?.seo:void 0,sn=le!==void 0?le:Is,Os=$?qo(sn):void 0,$s=nn?.seoTypeOptions??[],zs=$&&l?Go(l):"",yn=ke??Os??{},an=$&&nn?Wo(yn,nn):null,Hs=$&&an&&Yo(sn)?qt(an,l):null,Us=$?Jo(r,l)?.seoData:void 0,qe=Ve?[{label:"Default",sections:[{__resolveType:m}]}]:Vr(Ft?.sections,r??{}),It=qe.length>1,Oe=Math.min(te,qe.length-1),dt=qe[Oe],q=dt?.sections??[],Ue=Gt(q,r),_n=!Ve&&to(Ft?.sections);if(Ve&&m&&bn!==m){Sn(m);const t=q[0],s=Ue[0];if(t&&s){A(0),Be(0),L([]);const a=St(t,s,r);a&&(C(a.data),B(a.resolveType),Ie(null),Te(null))}}!Ve&&bn!==null&&Sn(null),Ze.current={rawSections:q,parsedSections:Ue,decofile:r??{},activePageKey:k,pageVariants:qe,variantIndex:Oe,sectionVariantIndex:I,selectedSectionIndex:f};const qs=()=>({multivariate:_n,index:Oe,variants:qe.map(t=>({rule:t.rule}))}),jn=(t,s)=>{if(!E)return;if(!k||!_n||t.length<=1){E(null);return}const a=zn(k,{multivariate:!0,index:s,variants:t},r,l);E(a.length>0?a:null)},Et=(t,s,a)=>{if(!E)return;if(!k){E(null);return}const c=qs(),b=zn(k,c,r,l);if(!t||s<0){E(b.length>0?b:null);return}const j=yo({pageKey:k,page:c,sectionIndex:s,sectionLazy:Ue[s]?.isLazy??!1,mvObj:t,selectedVariantIndex:a,decofile:r,meta:l}),_=[...b,...j];E(_.length>0?_:null)},mt=(t,s,a,c=f??-1,b=!1)=>{const j=tt(t,s);if(!j){C(null),B(null),Ie(null),Te(null),b&&Et(null,c,a);return}const D=Kn(j,lt)[a];if(!D){C(null),B(null),Ie(null),Te(null),b&&Et(null,c,a);return}const ee=io(D.value,r);C(ee?.data??null),B(ee?.resolveType??null);const{resolveType:M,formValue:z}=Pt(D.rule,r,l??void 0);Ie(M),Te(z),b&&Et(j,c,a)},Vt=x?.index;if(x!==void 0&&(x?.seq??null)!==re&&(ie(x?.seq??null),typeof Vt=="number")){const t=q[Vt],s=Ue[Vt];if(t&&s)if(A(Vt),Be(0),L([]),W(a=>a+1),s.isMultivariate)mt(t,s,0,Vt);else{const a=St(t,s,r);a?(C(a.data),B(a.resolveType)):(C(null),B(null)),Ie(null),Te(null)}}const Ot={orgSlug:g,virtualMcpId:e,branch:o,previewUrl:p??void 0,siteSlug:O},on=ce&&l?qt(ce,l):null,Je=(t,s)=>{if(!k)return;He.current&&(clearTimeout(He.current),He.current=null),at.current&&(clearTimeout(at.current),at.current=null),st.current&&(clearTimeout(st.current),st.current=null);const a=Ct(r,k,t,Oe,qe);Ne.mutate({blockKey:k,data:a},{onSuccess:()=>s?.onSuccess?.()??d?.(),onError:c=>J.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:c.message}))})},Rt=()=>{A(null),C(null),B(null),Be(0),Te(null),Ie(null),L([]),W(t=>t+1)},Gs=(t,s)=>{He.current&&clearTimeout(He.current);const a=Ze.current.sectionVariantIndex;He.current=setTimeout(()=>{const{rawSections:c,parsedSections:b,decofile:j,activePageKey:_,pageVariants:D,variantIndex:ee}=Ze.current,M=c[s];if(!M)return;const z=b[s];if(!z)return;if(z.isSavedBlock){const G=z.isLazy?M.section?.__resolveType??M.__resolveType:M.__resolveType;Ne.mutate({blockKey:G,data:t},{onSuccess:()=>d?.(),onError:Y=>J.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:Y.message}))});return}if(!_)return;const U={...j[_]},Re=[...c];if(z.isMultivariate){const G=tt(M,z);if(!G||!_)return;const Y=jo(G,a,t);Re[s]=xt(M,z,Y)}else if(z.isHidden){const G=os(M.__resolveType),Y=G?{...M.section}:{...M},Ke=Array.isArray(Y.variants)?[...Y.variants]:[];Ke[0]&&(Ke[0]={...Ke[0],value:t}),Y.variants=Ke,G?Re[s]={...M,section:Y}:Re[s]=Y}else z.isLazy?Re[s]={...M,section:t}:Re[s]=t;if(D.length>1){const G=U.sections,Y=[...G?.variants??[]];Y[ee]&&(Y[ee]={...Y[ee],value:Re}),U.sections={...G,variants:Y}}else U.sections=Re;Ne.mutate({blockKey:_,data:U},{onSuccess:()=>d?.(),onError:G=>J.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:G.message}))})},pn)},Ws=t=>{A(t),Be(0),L([]),W(b=>b+1);const s=q[t],a=Ue[t];if(!s||!a)return;if(a.isMultivariate){mt(s,a,0,t);return}const c=St(s,a,r);if(!c){C(null),B(null),Ie(null),Te(null),Et(null,t,0);return}C(c.data),B(c.resolveType),Ie(null),Te(null),Et(null,t,0)},En=t=>{const s=t;C(s),f!==null&&Gs(s,f)},rn=t=>{if(!k||!r||!l||!Ye)return;const s={kind:"page",pageKey:k,pageName:String(Ye.name??""),path:String(Ye.path??"")},a=Hn(r,s,l);a&&Xt.save(k,()=>{const c=Ds.getQueryData(Ma.decofile(Ps))?.[k];if(!c||typeof c!="object"||c===null||Array.isArray(c))return null;const b={...c,...en.current};return en.current={},t?.raw!==void 0?{...b,seo:t.raw}:t?.inner!==void 0?Xo(s,a,b,t.inner):b})},Ys=(t,s)=>{k&&(en.current[t]=s,rn())},Js=(t,s)=>{if(!k)return;const a=Mt([...q],t,s);f!==null&&(f===t?A(s):t<f&&s>=f?A(f-1):t>f&&s<=f&&A(f+1)),Je(a)},Qs=t=>{if(!k)return;const s=q.filter((a,c)=>c!==t);f===t?Rt():f!==null&&f>t&&A(f-1),Je(s)},Xs=t=>{if(!k)return;const s=q[t];if(!s)return;const a=[...q];a.splice(t+1,0,xo(s)),f!==null&&f>t&&A(f+1),Je(a)},Zs=t=>{if(!k)return;const s=q[t],a=Ue[t];if(!s||!a||a.isMultivariate)return;const c=a.isHidden?bo(s):So(s);if(!c)return;const b=[...q];b[t]=c,f===t&&Rt(),Je(b)},ea=t=>{if(!k)return;const s=q[t],a=Ue[t];if(!s||!a||a.isMultivariate)return;const c=vo(s);if(!c)return;const b=[...q];b[t]=c,f===t&&Rt(),Je(b)},ta=t=>{if(!k)return;const s=q[t],a=Ue[t];if(!s||!a?.isSavedBlock)return;const c=St(s,a,r);if(!c?.data)return;const{name:b,...j}=c.data,_=[...q];a.isLazy?_[t]={...s,section:j}:_[t]=j,f===t&&Rt(),Je(_)},na=t=>{if(!k)return;const s=[...q,{__resolveType:t.resolveType}],a=s.length-1;Je(s,{onSuccess:()=>{ae(!1),A(a),Be(0),L([]),W(_=>_+1);const c=s[a],b=Gt(s,r)[a];if(!c||!b)return;if(b.isMultivariate){mt(c,b,0);return}const j=St(c,b,r);if(!j){C(null),B(null),Ie(null),Te(null);return}C(j.data),B(j.resolveType),Ie(null),Te(null)}})},Rn=t=>{fe.current=t.append,ae(!0)},sa=t=>{const s=fe.current;if(!s){na(t);return}s({__resolveType:t.resolveType}),ae(!1),fe.current=null},aa=t=>{if(f===null)return;const s=q[f],a=Ue[f];!s||!a?.isMultivariate||(Be(t),L([]),W(c=>c+1),mt(s,a,t,f,!0))},oa=t=>{if(f===null||!k)return;const s=q[f],a=Ue[f];if(!s||!a?.isMultivariate)return;const c=tt(s,a);if(!c)return;const b=po(c,t);if(!b){J.error(i("sectionsEditor.sectionsEditor.cannotDeleteOnlyVariant"));return}const j=[...q];j[f]=xt(s,a,b);const _=b.variants;let D=I;t===I?D=Math.min(t,_.length-1):t<I&&(D=I-1),Be(D),L([]),W(ee=>ee+1),mt(j[f],a,D),Je(j)},ra=t=>{if(f===null||!k)return;const s=q[f],a=Ue[f];if(!s||!a?.isMultivariate)return;const c=tt(s,a);if(!c)return;const b=go(c,t),j=[...q];j[f]=xt(s,a,b);const _=t+1;Be(_),L([]),W(D=>D+1),mt(j[f],a,_),Je(j)},ia=(t,s)=>{if(f===null||!k||t===s)return;const a=q[f],c=Ue[f];if(!a||!c?.isMultivariate)return;const b=tt(a,c);if(!b)return;const j=mo(b,t,s),_=[...q];_[f]=xt(a,c,j);let D=I;I===t?D=s:t<I&&s>=I?D=I-1:t>I&&s<=I&&(D=I+1),Be(D),mt(_[f],c,D),Je(_)},ln=t=>{const s=t??f;if(s===null||!k)return;const a=q[s],c=Ue[s];if(!a||!c)return;const b=lo(a,c);if(!b){J.error(i("sectionsEditor.sectionsEditor.sectionCannotHaveVariants"));return}const j=[...q];j[s]=b.section;const _=Gt(j,r)[s];if(!_?.isMultivariate){J.error(i("sectionsEditor.sectionsEditor.couldNotAddVariant"));return}A(s),Be(b.newVariantIndex),L([]),W(D=>D+1),mt(b.section,_,b.newVariantIndex,s),Je(j)},la=()=>{if(f===null||!k)return;const t=q[f],s=Ue[f];if(!t||!s?.isMultivariate)return;const a=tt(t,s);if(!a)return;const c=fo(t,s,a);if(!c){J.error(i("sectionsEditor.sectionsEditor.couldNotRemoveVariants"));return}const b=[...q];b[f]=c;const j=Gt(b,r)[f];if(!j)return;Be(0),Ie(null),Te(null),L([]),W(D=>D+1);const _=St(c,j,r);_?(C(_.data),B(_.resolveType)):(C(null),B(null)),Et(null,f,0),Je(b)},ca=async t=>{if(Z===null||!k)return;const s=fn(t,r);if(s){J.error(s);return}const a=q[Z],c=Ue[Z];if(!a||!c)return;const b=St(a,c,r);if(!b){J.error(i("sectionsEditor.sectionsEditor.sectionCannotBeSavedAsGlobal"));return}const j={...b.data,name:t};try{await Ne.mutateAsync({blockKey:t,data:j});const _=[...q];_[Z]={__resolveType:t},await Ne.mutateAsync({blockKey:k,data:Ct(r,k,_,Oe,qe)}),f===Z&&Rt(),Fe(null),J.success(i("sectionsEditor.sectionsEditor.savedGlobalBlock",{blockId:t})),d?.()}catch(_){J.error(_ instanceof Error?_.message:i("sectionsEditor.sectionsEditor.failedToSaveGlobalBlock"))}},wn=dt?.rule;if(It&&f===null&&X===null&&wn){const{resolveType:t,formValue:s}=Pt(wn,r??{},l??void 0);ge(t),Q(s)}const $t=l?no(l):[],kn=l&&r?so(l,r):[],ua=!Ve&&!!(H&&l&&r),da=X&&l?qt(X,l):null,wt=()=>{st.current&&(clearTimeout(st.current),st.current=null),at.current&&(clearTimeout(at.current),at.current=null)},Dt=async(t,s)=>{if(!(_o(s,t,l)>0))try{await Zt.mutateAsync({blockKey:t})}catch(a){J.error(a instanceof Error?a.message:i("sectionsEditor.sectionsEditor.couldNotDeleteMatcherBlock"))}},Tn=t=>{st.current&&clearTimeout(st.current),st.current=setTimeout(()=>{const{activePageKey:s,decofile:a,variantIndex:c}=Ze.current;if(!s)return;const b={...a[s]},j={...b.sections},_=[...j.variants??[]],D=_[c],ee=D?.rule;if(kt(ee,a,l)){const M=ee?.__resolveType??"",z=a[M],U=typeof z?.name=="string"?z.name:M,{__resolveType:Re,...G}=t;Ne.mutate({blockKey:M,data:Tt(Re??"",G,U)},{onSuccess:()=>d?.(),onError:Y=>J.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:Y.message}))});return}D&&(_[c]={...D,rule:t}),b.sections={...j,variants:_},Ne.mutate({blockKey:s,data:b},{onSuccess:()=>d?.(),onError:M=>J.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:M.message}))})},pn)},ma=t=>{ge(t);const s=t?Fn(t,l):{__resolveType:In};Q(t?s:{}),Tn(s)},fa=t=>{const s=t;Q(s);const a=X?{__resolveType:X,...s}:{...s};Tn(a)},pa=async t=>{wt();const{activePageKey:s,decofile:a,variantIndex:c}=Ze.current;if(!s)return;const b=a[s],j=b?.sections;if(!j||typeof j!="object"||Array.isArray(j))return;const _=j;if(!Array.isArray(_.variants))return;const D=[..._.variants],ee=D[c];if(!ee)return;const M=At(ee.rule,a,l),z=Yt(t);D[c]={...ee,rule:z};const U={...a,[s]:{...b,sections:{..._,variants:D}}},{resolveType:Re,formValue:G}=Pt(z,U,l??void 0);ge(Re),Q(G);try{await Ne.mutateAsync({blockKey:s,data:U[s]}),M&&M!==t&&await Dt(M,U),d?.()}catch(Y){J.error(Y instanceof Error?Y.message:i("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}},Nn=t=>{at.current&&clearTimeout(at.current);const{selectedSectionIndex:s,sectionVariantIndex:a}=Ze.current;s!==null&&(at.current=setTimeout(()=>{const{rawSections:c,parsedSections:b,decofile:j,activePageKey:_,pageVariants:D,variantIndex:ee}=Ze.current;if(!_)return;const M=c[s],z=b[s];if(!M||!z?.isMultivariate)return;const U=tt(M,z);if(!U)return;const G=(U.variants??[])[a]?.rule;if(kt(G,j,l)){const Se=G?.__resolveType??"",Qe=j[Se],rt=typeof Qe?.name=="string"?Qe.name:Se,{__resolveType:gt,...it}=t;Ne.mutate({blockKey:Se,data:Tt(gt??"",it,rt)},{onSuccess:()=>d?.(),onError:ht=>J.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:ht.message}))});return}const Y=Ln(U,a,t),Ke=[...c];Ke[s]=xt(M,z,Y);const et=Ct(j,_,Ke,ee,D);Ne.mutate({blockKey:_,data:et},{onSuccess:()=>d?.(),onError:Se=>J.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:Se.message}))})},pn))},ga=t=>{Ie(t);const s=t?Fn(t,l):{__resolveType:In};Te(t?s:{}),Nn(s)},ha=t=>{const s=t;Te(s);const a=We?{__resolveType:We,...s}:{...s};Nn(a)},va=async t=>{wt();const{selectedSectionIndex:s,sectionVariantIndex:a,rawSections:c,parsedSections:b,decofile:j,activePageKey:_,pageVariants:D,variantIndex:ee}=Ze.current;if(s===null||!_)return;const M=c[s],z=b[s];if(!M||!z?.isMultivariate)return;const U=tt(M,z);if(!U)return;const Re=U.variants??[],G=At(Re[a]?.rule,j,l),Y=Yt(t),Ke=Ln(U,a,Y),et=[...c];et[s]=xt(M,z,Ke);const Se=Ct(j,_,et,ee,D),Qe={...j,[_]:Se},{resolveType:rt,formValue:gt}=Pt(Y,Qe,l??void 0);Ie(rt),Te(gt);try{await Ne.mutateAsync({blockKey:_,data:Se}),G&&G!==t&&await Dt(G,Qe),d?.()}catch(it){J.error(it instanceof Error?it.message:i("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}};if(!Ve&&!Ye)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:i("sectionsEditor.sectionsEditor.noPageFound",{currentPath:v})});if(Ve&&!tn)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:i("sectionsEditor.sectionsEditor.globalBlockNotFound")});const ft=f!==null?Ue[f]??null:null,Vn=f!==null?q[f]:null,Dn=Vn&&ft?.isMultivariate?tt(Vn,ft):null,bt=Dn?Kn(Dn,lt):[],cn=Math.min(I,Math.max(bt.length-1,0)),zt=bt[cn]??null,pt=ft?.isMultivariate===!0,Pn=f!==null&&ft!==null,Ht=Pn&&(pt||!!(on&&De)),ba=Ht&&!Ve&&ft?.isSavedBlock===!0,ot=Ve||ba,Sa=Ve?xn:ft?.label??"",xa=We&&l?qt(We,l):null,un=Ht&&(!Ve||se.length>0)?Ve?[xn,...se]:[Ye.name,ft.label,...pt&&zt?[zt.label]:[],...se]:[],ya=$&&Ye?[Ye.name,"SEO",...Ee]:[],Ut=$?ya:ot?un.length>0?un:[Sa]:un,_a=!$&&!Ve&&pt&&se.length===0,An=()=>{if(!k)return;wt(),He.current&&(clearTimeout(He.current),He.current=null);const t=r[k],s=co(t.sections,q);if(!s)return;const a=uo(s);Ne.mutate({blockKey:k,data:{...t,sections:s}},{onSuccess:()=>{F(a),A(null),C(null),B(null),L([]),Q(null),ge(null)},onError:c=>J.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:c.message}))})},dn=(t,s,a)=>{if(!k)return;wt(),He.current&&(clearTimeout(He.current),He.current=null);const c=r[k],b=c.sections;if(!b||typeof b!="object"||Array.isArray(b))return;const j=b;if(!Array.isArray(j.variants))return;const _=t([...j.variants]);if(!_)return;const D=Eo(j,_),ee={...r,[k]:{...c,sections:D}};Ne.mutate({blockKey:k,data:ee[k]},{onSuccess:()=>{s?.(),a&&Dt(a,ee)},onError:M=>J.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:M.message}))})},ja=t=>{ye(null),F(t),A(null),C(null),B(null),L([]);const s=qe[t]?.rule,{resolveType:a,formValue:c}=Pt(s,r??{},l??void 0);ge(a),Q(c),jn(qe.map(b=>({rule:b.rule})),t)},Ea=(t,s)=>{if(t===s)return;let a=Oe;Oe===t?a=s:t<Oe&&s>=Oe?a=Oe-1:t>Oe&&s<=Oe&&(a=Oe+1),F(a);const c=Mt(qe.map(b=>({rule:b.rule})),t,s);jn(c,a),dn(b=>Mt(b,t,s))},Ra=t=>{const s=qe[t]?.rule,a=At(s,r??{},l??void 0);dn(c=>c.length<=1?null:(c.splice(t,1),c),()=>{qe.length-1===1?F(0):t<Oe?F(Oe-1):t===Oe&&F(Math.max(0,t-1)),A(null),C(null),B(null),L([]),Q(null),ge(null)},a)},wa=t=>{dn(s=>Ro(s,t),()=>{F(t+1),A(null),C(null),B(null),L([]),Q(null),ge(null)})},ka=async(t,s)=>{wt(),He.current&&(clearTimeout(He.current),He.current=null);const a=Ze.current.activePageKey,c=Ze.current.decofile;if(!a)return;const b=c[a],j=b.sections;if(!j||typeof j!="object"||Array.isArray(j))return;const _=j;if(!Array.isArray(_.variants))return;const D=[..._.variants],ee=D[t];if(!ee?.rule||typeof ee.rule!="object"){J.error(i("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const M=ee.rule,z=s.trim();Lt(!0);try{if(!z){if(!kt(M,c,l)){ye(null);return}const et=M.__resolveType??"";D[t]={...ee,rule:On(M,c,l)};const Se={...c,[a]:{...b,sections:{..._,variants:D}}};await Ne.mutateAsync({blockKey:a,data:Se[a]}),await Dt(et,Se),ye(null),d?.();return}const U=$n(M,c,l);if(!U){J.error(i("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(U.blockKey){await Ne.mutateAsync({blockKey:U.blockKey,data:Tt(U.resolveType,U.data,z)}),ye(null),d?.();return}const Re=mn(z),G=fn(Re,c);if(G){J.error(G);return}const Y=Tt(U.resolveType,U.data,z);let Ke=null;try{await Ne.mutateAsync({blockKey:Re,data:Y}),Ke=Re,D[t]={...ee,rule:Yt(Re)},await Ne.mutateAsync({blockKey:a,data:{...b,sections:{..._,variants:D}}}),Ke=null}catch(et){throw Ke&&await Zt.mutateAsync({blockKey:Ke}).catch(()=>{}),et}ye(null),J.success(i("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:z})),d?.()}catch(U){J.error(U instanceof Error?U.message:i("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{Lt(!1)}},Ta=async(t,s)=>{wt(),He.current&&(clearTimeout(He.current),He.current=null);const{selectedSectionIndex:a,rawSections:c,parsedSections:b,decofile:j,activePageKey:_,pageVariants:D,variantIndex:ee}=Ze.current;if(a===null||!_)return;const M=c[a],z=b[a];if(!M||!z?.isMultivariate)return;const U=tt(M,z);if(!U)return;const Re=U.variants??[],G=Re[t];if(!G?.rule||typeof G.rule!="object"){J.error(i("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const Y=G.rule,Ke=s.trim();Lt(!0);const et=async Se=>{const Qe={...U,variants:Se},rt=[...c];rt[a]=xt(M,z,Qe);const gt=Ct(j,_,rt,ee,D);return await Ne.mutateAsync({blockKey:_,data:gt}),{...j,[_]:gt}};try{if(!Ke){if(!kt(Y,j,l)){he(null);return}const ht=Y.__resolveType??"",Bn=[...Re];Bn[t]={...G,rule:On(Y,j,l)};const Aa=await et(Bn);await Dt(ht,Aa),he(null),d?.();return}const Se=$n(Y,j,l);if(!Se){J.error(i("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(Se.blockKey){await Ne.mutateAsync({blockKey:Se.blockKey,data:Tt(Se.resolveType,Se.data,Ke)}),he(null),d?.();return}const Qe=mn(Ke),rt=fn(Qe,j);if(rt){J.error(rt);return}const gt=Tt(Se.resolveType,Se.data,Ke);let it=null;try{await Ne.mutateAsync({blockKey:Qe,data:gt}),it=Qe;const ht=[...Re];ht[t]={...G,rule:Yt(Qe)},await et(ht),it=null}catch(ht){throw it&&await Zt.mutateAsync({blockKey:it}).catch(()=>{}),ht}he(null),J.success(i("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:Ke})),d?.()}catch(Se){J.error(Se instanceof Error?Se.message:i("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{Lt(!1)}},Cn=()=>{Rt()},Na=t=>{ne(t),rn({inner:t})},Va=t=>{de(t),rn({raw:t})},Da=()=>{ne(null),me([])},Pa=()=>oe(t=>t+1),Mn=t=>{if($){if(t===0){Xt.flush(),pe(!1),ne(null),de(void 0),me([]),oe(a=>a+1),T?.();return}if(t===1){me([]),oe(a=>a+1);return}me(Ee.slice(0,t-1)),oe(a=>a+1);return}if(Ve){L(se.slice(0,t)),W(a=>a+1);return}if(t===0){Cn();return}if(t===1){L([]),W(a=>a+1);return}if(pt&&t===2){L([]),W(a=>a+1);return}const s=pt?2:1;L(se.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:ot||Ht||$?n.jsxs("div",{className:$e("border-b px-3 py-2.5",ot&&"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:[Ut.length>1&&n.jsx("button",{type:"button",onClick:()=>Mn(wo(Ut.length,{isMultivariateSectionTop:_a})),title:i("sectionsEditor.sectionsEditor.back"),"aria-label":i("sectionsEditor.sectionsEditor.back"),className:$e("shrink-0 inline-flex size-6 items-center justify-center rounded-md transition-colors",ot?"text-foreground/80 hover:bg-global-section/15":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:n.jsx(bs,{className:"size-4"})}),!Ve&&It&&dt&&n.jsxs("button",{type:"button",onClick:Cn,title:i("sectionsEditor.sectionsEditor.editingInVariant",{variant:dt.label}),className:$e("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",Nr),children:[n.jsx(Ns,{rule:Bt(dt.rule,r??{},l??void 0),matchers:$t}),n.jsx("span",{className:"max-w-[160px] truncate",children:dt.label})]}),n.jsx("nav",{"aria-label":i("sectionsEditor.sectionsEditor.editingBreadcrumb"),className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:Ut.map((t,s)=>{const a=s===Ut.length-1,c=hs(t);return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[s>0&&n.jsx(Ss,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>Mn(s),title:c,className:$e("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",a?ot?"font-semibold text-global-section-fg dark:text-global-section-fg-dark":"font-medium text-foreground":ot?"text-foreground/80":"text-muted-foreground",ot?"hover:bg-global-section/15":"hover:bg-accent hover:text-accent-foreground"),children:c})]},`${c}-${s}`)})}),ot&&n.jsxs(yt,{children:[n.jsx(_t,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(Ao,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),n.jsx(jt,{side:"bottom",className:"max-w-[260px]",children:i("sectionsEditor.sectionsEditor.globalSectionTooltip")})]}),Pn&&!pt&&!ft?.isHidden&&k&&n.jsx(Jn,{onClick:()=>ln()})]}),ot&&n.jsx("p",{className:"mt-1.5 py-1.5 pl-1 text-sm leading-snug text-foreground",children:i("sectionsEditor.sectionsEditor.globalSectionBanner")})]}):n.jsxs("div",{className:"flex items-center gap-2 border-b px-3 py-2.5",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(Dr,{pageKey:k,initialName:Ye.name,initialPath:Ye.path,onFieldChange:Ys})}),n.jsxs(yt,{children:[n.jsx(_t,{asChild:!0,children:n.jsx(Xe,{type:"button",variant:"ghost",size:"icon","aria-label":i("sectionsEditor.sectionsEditor.editSeo"),className:"size-7 shrink-0",onClick:()=>pe(!0),children:n.jsx(Vo,{size:14})})}),n.jsx(jt,{side:"bottom",children:i("sectionsEditor.sectionsEditor.editSeo")})]}),n.jsxs(yt,{children:[n.jsx(_t,{asChild:!0,children:n.jsx(Xe,{type:"button",variant:"ghost",size:"icon","aria-label":i("sectionsEditor.sectionsEditor.viewJson"),className:"size-7 shrink-0",onClick:()=>V&&k?V(k):je(!0),children:n.jsx(Do,{size:14})})}),n.jsx(jt,{side:"bottom",children:i("sectionsEditor.sectionsEditor.viewJson")})]}),n.jsx(Jn,{onClick:An})]})}),$?n.jsx(Jt,{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:Ft&&k?n.jsx(Qo,{rawSeo:sn,innerSeo:yn,defaultResolveType:zs,seoSchema:Hs,activeResolveType:an,seoTypeOptions:$s,formResetKey:N,siteDefaultSeo:Us,onBreadcrumbChange:me,onPersistRaw:Va,onInnerChange:Na,onClearForm:Da,onBumpFormKey:Pa}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:i("sectionsEditor.sectionsEditor.seoSchemaNotFound")})})})}):Ht?n.jsxs(Jt,{viewportRef:ze,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[pt&&bt.length>0&&n.jsxs(n.Fragment,{children:[n.jsx(ao,{listKey:`${k??""}:${f??""}`,variants:bt.map((t,s)=>({index:s,label:t.label})),selectedIndex:cn,onSelect:aa,onRename:he,onDuplicate:ra,onDelete:oa,onRemoveAll:la,onReorder:ia,onAdd:()=>ln()}),pt&&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:i("sectionsEditor.sectionsEditor.variantRule")}),n.jsx(Qn,{currentRt:We??"",currentLabel:Wt(zt?.rule,r??{},lt,l??void 0),currentGlobalKey:At(zt?.rule,r??{},l??void 0)??void 0,matchers:$t,globals:kn,onSelect:ga,onSelectGlobal:va,schema:xa,formValue:ut,onChange:ha,formKey:`${f??"none"}:${cn}:${We??""}`,formWrapperClassName:"pt-1",meta:l??void 0,decofile:r,onSaveReferencedBlock:Kt,sandbox:Ot})]})]}),n.jsx(Yn,{activeSchema:on,formValue:De,formResetKey:Me,onFormChange:En,onBreadcrumbChange:L,breadcrumbPath:se,emptyMessage:i("sectionsEditor.sectionsEditor.noEditableFieldsForVariant"),meta:l,decofile:r,onSaveReferencedBlock:Kt,sandbox:Ot,previewBaseUrl:H,onRequestAddSection:Rn})]}):Ve?n.jsx(Jt,{viewportRef:ze,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx(Yn,{activeSchema:on,formValue:De,formResetKey:Me,onFormChange:En,onBreadcrumbChange:L,breadcrumbPath:se,emptyMessage:i("sectionsEditor.sectionsEditor.noEditableFieldsForGlobalBlock"),meta:l,decofile:r,onSaveReferencedBlock:Kt,sandbox:Ot,previewBaseUrl:H,onRequestAddSection:Rn})}):n.jsxs(Jt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[It&&k&&n.jsx(wr,{listKey:k,variants:qe,activeIndex:Oe,decofile:r??{},meta:l,matchers:$t,onSelect:ja,onReorder:Ea,onRename:ye,onDuplicate:wa,onDelete:Ra,onAdd:An}),It&&X!==null&&n.jsxs("div",{className:$e("px-3 border-b",_e?"pt-3 pb-5 space-y-3":"py-2"),children:[n.jsxs("button",{type:"button",onClick:()=>we(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":_e,children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i("sectionsEditor.sectionsEditor.variantRule")}),_e?n.jsx(Po,{className:"size-3.5 shrink-0 text-muted-foreground"}):n.jsx(ko,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),_e&&n.jsx("div",{className:$e("space-y-3",Nt&&"pointer-events-none opacity-50"),children:n.jsx(Qn,{currentRt:X,currentLabel:Wt(dt?.rule,r??{},lt,l??void 0),currentGlobalKey:At(dt?.rule,r??{},l??void 0)??void 0,matchers:$t,globals:kn,onSelect:ma,onSelectGlobal:pa,schema:da,formValue:xe,onChange:fa,formKey:`${Oe}:${X??""}`,formWrapperClassName:"space-y-3",meta:l??void 0,decofile:r,onSaveReferencedBlock:Kt,sandbox:Ot})})]}),n.jsx("div",{className:"p-2 pt-3",children:n.jsx(vr,{listKey:`${k??""}-${Oe}`,rawSections:q,sections:Ue,meta:l,selectedIndex:f,onSelect:Ws,onReorder:Js,onDelete:Qs,onDuplicate:Xs,onMakeReusable:Fe,onToggleHidden:Zs,onToggleLazy:ea,onAddVariant:ln,onDetach:ta,onAddSection:()=>ae(!0),canAddSection:ua})})]}),n.jsx(oo,{open:Z!==null,onOpenChange:t=>{t||Fe(null)},defaultBlockId:Z!==null?mn(Ue[Z]?.label??""):"",isPending:Ne.isPending,onSubmit:ca}),H&&n.jsx(tr,{open:ve,onOpenChange:t=>{ae(t),t||(fe.current=null)},meta:l,decofile:r,previewBaseUrl:H,onSelect:sa}),Ae&&k&&r&&n.jsx(ro,{open:Ae,onOpenChange:je,pageKey:k,decofile:r}),Pe!==null&&n.jsx(qn,{open:!0,initialName:kt(qe[Pe]?.rule,r??{},l??void 0)?Wt(qe[Pe]?.rule,r??{},lt,l??void 0):"",autoLabel:lt(Bt(qe[Pe]?.rule,r??{},l??void 0)),isPending:Nt,onSubmit:async t=>{await ka(Pe,t)},onOpenChange:t=>{!t&&!Nt&&ye(null)}}),ue!==null&&n.jsx(qn,{open:!0,initialName:kt(bt[ue]?.rule,r??{},l??void 0)?Wt(bt[ue]?.rule,r??{},lt,l??void 0):"",autoLabel:lt(Bt(bt[ue]?.rule,r??{},l??void 0)),isPending:Nt,onSubmit:async t=>{await Ta(ue,t)},onOpenChange:t=>{!t&&!Nt&&he(null)}})]})}export{Ec as SectionsEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-39QoePJF.js","assets/index-DEpEe4q-.js","assets/index-BEdBSIIA.css","assets/Tool02-CiBt8qeE.js","assets/CheckCircle-Bn_vBNFy.js","assets/Settings02-BTfVHkK7.js","assets/use-mcp-client-omwH710V.js","assets/auth-D7Fz4chI.js","assets/useInfiniteQuery-F_jw9PUx.js","assets/use-infinite-scroll-BQdv-Z2F.js","assets/studio-tools-JKrn9JOe.js","assets/badge-Dz8OuFCR.js","assets/input-zrZUAZiG.js","assets/dropdown-menu-rlmS2woE.js","assets/Check-Dx-4HUEo.js","assets/ChevronRight-BEmZD6vD.js","assets/DotsVertical-loouiV0t.js","assets/table-CdLLcRfU.js","assets/toggle-group-CwlmdjBY.js","assets/use-view-mode-BqOg6L7c.js","assets/use-mobile-Wto5-uq3.js","assets/FilterLines-Bv1NZQv4.js","assets/Globe01-B54JZBFD.js","assets/SearchMd-DYIQSyA0.js","assets/dialog-CnsKJ4XS.js","assets/X-BDolklLb.js","assets/AlertCircle-aOidjqvT.js","assets/Upload01-B8mvKr_w.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-DO8HokZ1.js","assets/card-7QSUKxf2.js","assets/Trash01-CkvycJBp.js","assets/label-Biv3DlJq.js","assets/select-CDhKZB8e.js","assets/tooltip-CDKJbBi0.js","assets/ChevronDown-JRTCHhvr.js","assets/ChevronUp-C5AupxBz.js","assets/switch-BJPAHFJE.js","assets/textarea-B6_XVzip.js","assets/ArrowLeft-B75Lamri.js","assets/XCircle-Cedk5oAW.js","assets/checkbox-Bz2ch0aq.js","assets/Eye-5nLs5Hvl.js","assets/LinkExternal01-DpBurIUH.js","assets/use-copy-CPzfqp89.js","assets/Copy01-C-nHXXWU.js","assets/Key01-CRbalBhy.js","assets/Plus-BMXBf3l6.js","assets/mcp-oauth-BvER8ITi.js","assets/Play-BbZQD697.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as m,d as n,f as c,j as t,k as f,r as l,aG as p}from"./index-DEpEe4q-.js";import{R as u}from"./require-capability-vPM9ojao.js";import"./use-capability-DiYIjwqM.js";import"./access-gate-Ba1Ptbc3.js";import"./capability-load-error-BmyPT20N.js";const g=l.lazy(()=>p(()=>import("./registry-layout-39QoePJF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{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-BQdv-Z2F.js";import{e4 as i}from"./index-DEpEe4q-.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-BQdv-Z2F.js";import{e4 as u,b2 as n}from"./index-DEpEe4q-.js";function a(e,r){return u({...e,enabled:!0,suspense:!0,throwOnError:n},s,r)}export{a as u};
|