decocms 4.262.6 → 4.263.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-BqiO233W.js → AlertCircle-d_jYW-pF.js} +1 -1
- package/dist/client/assets/{AreaChart-BUgIxr3o.js → AreaChart-6ExM5C57.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DHXRr37o.js → ArrowLeft-B5SdDJS5.js} +1 -1
- package/dist/client/assets/{ArrowUp-CK3gYqIk.js → ArrowUp-DmYjuyWi.js} +1 -1
- package/dist/client/assets/{Check-C3meIEhS.js → Check-KqwAmcDj.js} +1 -1
- package/dist/client/assets/{CheckCircle-Dy9V1hp7.js → CheckCircle-DuO-pGO-.js} +1 -1
- package/dist/client/assets/{ChevronDown-TArXGrOQ.js → ChevronDown-BQZF9Af9.js} +1 -1
- package/dist/client/assets/{ChevronRight-CsIw29De.js → ChevronRight-Bq8eLOWM.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-Cdq-qltC.js → ChevronSelectorVertical-DrHEbUrw.js} +1 -1
- package/dist/client/assets/{ChevronUp-CQwDe8iY.js → ChevronUp-BnjYp300.js} +1 -1
- package/dist/client/assets/{Copy01-DdadevxV.js → Copy01-DQMklNBZ.js} +1 -1
- package/dist/client/assets/{CreditCard01-Bzfh8nan.js → CreditCard01-ayJva4-L.js} +1 -1
- package/dist/client/assets/{DotsVertical-CeoSOE_3.js → DotsVertical-DmFi_5m5.js} +1 -1
- package/dist/client/assets/{Download01-1vuZFsJp.js → Download01-BCA2ING7.js} +1 -1
- package/dist/client/assets/{Eye-CbxXrutx.js → Eye-CRgVrt0h.js} +1 -1
- package/dist/client/assets/{FilterLines-ChhF_hNb.js → FilterLines-D6T5uoZ8.js} +1 -1
- package/dist/client/assets/{Globe01-C00u5ZAY.js → Globe01-KXkuiG0o.js} +1 -1
- package/dist/client/assets/{Globe04-CCQDYh_v.js → Globe04-kFCzhDtq.js} +1 -1
- package/dist/client/assets/{HardDrive-11GCZT_6.js → HardDrive-IGVDCiH-.js} +1 -1
- package/dist/client/assets/{Key01-Hp8x5aBN.js → Key01-zoXnVGpi.js} +1 -1
- package/dist/client/assets/{LinkExternal01-C5zRPX5d.js → LinkExternal01-DY154voS.js} +1 -1
- package/dist/client/assets/{LockUnlocked01-ClaEaEpm.js → LockUnlocked01-BUPOcE7Q.js} +1 -1
- package/dist/client/assets/{LogOut01-oHkHXF-Q.js → LogOut01-vFXcKA44.js} +1 -1
- package/dist/client/assets/{Monitor01-dPO6vNK8.js → Monitor01-IMrl8-Sz.js} +1 -1
- package/dist/client/assets/{Palette-t1TUeSoh.js → Palette-CO-9fV73.js} +1 -1
- package/dist/client/assets/{Play--y70fqAB.js → Play-Cnds4faY.js} +1 -1
- package/dist/client/assets/{Plus-BLC2NLIh.js → Plus-DeCuWgpG.js} +1 -1
- package/dist/client/assets/{SearchLg-Cuy9OADE.js → SearchLg-LSbMLZI6.js} +1 -1
- package/dist/client/assets/{SearchMd-BYFRLbwK.js → SearchMd-C6SjxYyL.js} +1 -1
- package/dist/client/assets/{Settings02-CYQxL5B6.js → Settings02-CDWROrkG.js} +1 -1
- package/dist/client/assets/{Share07-DSkEre6x.js → Share07-rauAL5Pr.js} +1 -1
- package/dist/client/assets/{Shield01-Cp3nBugX.js → Shield01-CJQrmrbA.js} +1 -1
- package/dist/client/assets/{Stars01-LtY7QbkW.js → Stars01-DqVhL0wf.js} +1 -1
- package/dist/client/assets/{Stars02-CYmxv8KO.js → Stars02-NRIRt4tn.js} +1 -1
- package/dist/client/assets/{Sun-C0wMFKn3.js → Sun-BDdwc-Zh.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DweIkNK2.js → SwitchHorizontal01-BLilv7ln.js} +1 -1
- package/dist/client/assets/{Tool01-BKSPhSsL.js → Tool01-TcrXKmnF.js} +1 -1
- package/dist/client/assets/{Tool02-BDxSz5gg.js → Tool02-DWE9dUHc.js} +1 -1
- package/dist/client/assets/{Trash01-BTHEeIXL.js → Trash01-DoWKJDZO.js} +1 -1
- package/dist/client/assets/{TrendUp01-D2F7lZcJ.js → TrendUp01-DehiMCpc.js} +1 -1
- package/dist/client/assets/{Upload01-Cb6gGPQE.js → Upload01-DROOnA_X.js} +1 -1
- package/dist/client/assets/{User01-CKH1fp9t.js → User01-DBp5CtcM.js} +1 -1
- package/dist/client/assets/{UserSquare-B_62XpO-.js → UserSquare-CYgbi1K9.js} +1 -1
- package/dist/client/assets/{Users01-BWO9lpcY.js → Users01-D845Yde-.js} +1 -1
- package/dist/client/assets/{Users03-CQBa5hg0.js → Users03-C_Br2__w.js} +1 -1
- package/dist/client/assets/{XCircle-DQIYJHof.js → XCircle-CJ79pnxP.js} +1 -1
- package/dist/client/assets/{XClose-Bd7QmHen.js → XClose-BOvSf6KB.js} +1 -1
- package/dist/client/assets/{YAxis-CkEcdTcn.js → YAxis-Db5uj_c4.js} +1 -1
- package/dist/client/assets/{Zap-yb54W3xr.js → Zap-CYPfTI6g.js} +1 -1
- package/dist/client/assets/{ZapSquare-CLA2S-eo.js → ZapSquare-Cx_Z2jAm.js} +1 -1
- package/dist/client/assets/{access-gate-a5GYm4En.js → access-gate-nqfyC3Gn.js} +1 -1
- package/dist/client/assets/{agent-icon-BbwcTqDP.js → agent-icon-BM9CQspm.js} +1 -1
- package/dist/client/assets/{agents-list-C_cfobwz.js → agents-list-SA81MynM.js} +1 -1
- package/dist/client/assets/{ai-providers-Cd_x-ZMf.js → ai-providers-D2GbZlGj.js} +1 -1
- package/dist/client/assets/{alert-CcskNSBd.js → alert-BIAyvh7L.js} +1 -1
- package/dist/client/assets/{alert-dialog-CcRMrtVX.js → alert-dialog-CJVL1k9x.js} +1 -1
- package/dist/client/assets/{api-keys-DNPPIz-n.js → api-keys-CXhaSQ6j.js} +1 -1
- package/dist/client/assets/{app-editor-UXwbxMoS.js → app-editor-B9KTkNWs.js} +1 -1
- package/dist/client/assets/{auth-BcY3uebC.js → auth-D0FayD-s.js} +1 -1
- package/dist/client/assets/{auth-catchall-CWSbQhmA.js → auth-catchall-QibEwR3X.js} +1 -1
- package/dist/client/assets/{auth-entry-BOzkbLOU.js → auth-entry-BtLGTg0e.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DhzoFf1t.js → auth-split-layout-DYtiT43v.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CXA7t_Jb.js → authenticate-and-persist-oauth-t3Fvmhc7.js} +1 -1
- package/dist/client/assets/{automation-list-row-BoMqLdQE.js → automation-list-row-C9Xx9zFJ.js} +1 -1
- package/dist/client/assets/{automation-runs-Bn9aVPdy.js → automation-runs-BwVIBljL.js} +1 -1
- package/dist/client/assets/{automations-CE-sGKHD.js → automations-aoyy5Tgb.js} +1 -1
- package/dist/client/assets/{avatar-B6C35VqX.js → avatar-CqQE-eFC.js} +1 -1
- package/dist/client/assets/{badge-CevueEaV.js → badge-D3zUUYug.js} +1 -1
- package/dist/client/assets/{block-document-Ckb_3qY2.js → block-document-IwRwz7ED.js} +1 -1
- package/dist/client/assets/{buckets-BRD82t97.js → buckets-B3b8N6K4.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-EGYeSWnm.js → bulk-category-panel-BLNvVNKk.js} +1 -1
- package/dist/client/assets/{capability-load-error-CrgKOkLj.js → capability-load-error-Bc2xBDB9.js} +1 -1
- package/dist/client/assets/{cards-mbbqxtHY.js → cards-B6201d9G.js} +1 -1
- package/dist/client/assets/{category-editor--rcZk4eJ.js → category-editor-BHIciUgg.js} +1 -1
- package/dist/client/assets/{chart-Ca1OAUYc.js → chart-wUtBUsj3.js} +1 -1
- package/dist/client/assets/{chat-context-DG-KDRWW.js → chat-context-PKiduEXT.js} +1 -1
- package/dist/client/assets/{checkbox-NebQ_NWD.js → checkbox-BZ02x3Tw.js} +1 -1
- package/dist/client/assets/{choose-editor-oZZzGqHD.js → choose-editor-BtzA0fpx.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DoOQ2CGz.js → cli-auth-success-B4esG6lN.js} +1 -1
- package/dist/client/assets/{collection-detail-CL1U1eCm.js → collection-detail-BS7drL1-.js} +1 -1
- package/dist/client/assets/{collection-display-button-3YItGqrb.js → collection-display-button-B8yEu5fQ.js} +1 -1
- package/dist/client/assets/{collection-search-CTLleDqU.js → collection-search-CksSLFKw.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-tOsXgJs_.js → collection-table-wrapper-B1nDVamJ.js} +1 -1
- package/dist/client/assets/{collection-tabs-UeGrXap7.js → collection-tabs-Lyg-Hx2-.js} +1 -1
- package/dist/client/assets/{command-CgBS9adc.js → command-UPps-OHa.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-K4y91YHb.js → commerce-onboarding-DLZSaK6E.js} +1 -1
- package/dist/client/assets/{connect-BL06U4b3.js → connect-Dl1amKXS.js} +1 -1
- package/dist/client/assets/{connection-card-CoOjZu_4.js → connection-card-CmsTkv4b.js} +1 -1
- package/dist/client/assets/{connection-detail-Q5yqT3kf.js → connection-detail-Bu9QL2mf.js} +1 -1
- package/dist/client/assets/{connection-BapVkZdv.js → connection-eRnJdwGa.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CWpxuZtn.js → connection-form-helpers-BP-W1_HA.js} +1 -1
- package/dist/client/assets/{connections-BSkJVfi9.js → connections-PrZkDDXx.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-CggZOP6Q.js → decopilot-sse-pool-CzhRRg62.js} +1 -1
- package/dist/client/assets/{dialog-BAZF9YiX.js → dialog-BQ-t4CF4.js} +1 -1
- package/dist/client/assets/{domain-settings-D-udiSEo.js → domain-settings-BE1sHvud.js} +1 -1
- package/dist/client/assets/{drawer-CwsXINx1.js → drawer-Db54djTH.js} +1 -1
- package/dist/client/assets/{dropdown-menu-argXK-i4.js → dropdown-menu-Dl9RzbmM.js} +1 -1
- package/dist/client/assets/{empty-state-B1TGp1i4.js → empty-state-Z6jBJyBE.js} +1 -1
- package/dist/client/assets/{extract-connection-data-qYk7394e.js → extract-connection-data-B6RBsrzJ.js} +1 -1
- package/dist/client/assets/{file-explorer-CLmFBNtb.js → file-explorer-Dal-wJwB.js} +1 -1
- package/dist/client/assets/{file-type-icon-DXjJ_Sr6.js → file-type-icon-k6QIypVu.js} +1 -1
- package/dist/client/assets/{form-CQStgqIC.js → form-WUWViVui.js} +1 -1
- package/dist/client/assets/{general-DndwkeYz.js → general-DujFYF7x.js} +1 -1
- package/dist/client/assets/{github-repo-picker-DO7od-tZ.js → github-repo-picker-CntGYv-N.js} +1 -1
- package/dist/client/assets/{hooks-DHYk1jCl.js → hooks-APRq5B-N.js} +1 -1
- package/dist/client/assets/{index-nvrMUz1E.js → index-B5R-ECHm.js} +3 -3
- package/dist/client/assets/{index-CZiVGAdA.js → index-C6_zR0Yd.js} +1 -1
- package/dist/client/assets/{index-BQNL0PW5.js → index-C9ncfe5m.js} +1 -1
- package/dist/client/assets/{index-Bw4dhNXp.js → index-CCWpCA-G.js} +1 -1
- package/dist/client/assets/{index-C5KI-EOk.js → index-CHh53Mp2.js} +1 -1
- package/dist/client/assets/{index-DijjbpvK.js → index-ChJw-ECJ.js} +1 -1
- package/dist/client/assets/{index-C767ngQL.js → index-CzegzpSG.js} +1 -1
- package/dist/client/assets/{index-Cb_8Ljya.js → index-D_lsHUtB.js} +1 -1
- package/dist/client/assets/{index-Dfwu2C8G.js → index-HRPiQFML.js} +1 -1
- package/dist/client/assets/{index-BWXxYrTu.js → index-PlC49IUs.js} +51 -51
- package/dist/client/assets/{index-redirect-CCOiLV_M.js → index-redirect-Bt9f84nm.js} +1 -1
- package/dist/client/assets/{infra-billing-BkT-KyLu.js → infra-billing-BycQSWPo.js} +1 -1
- package/dist/client/assets/{input-DAGNsgKJ.js → input-DSE7gQf1.js} +1 -1
- package/dist/client/assets/{integration-icon-DtVM-_wt.js → integration-icon-BNk_AQRx.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-C1_dvyNv.js → invite-member-dialog-CGe2Esmt.js} +1 -1
- package/dist/client/assets/{label-DtmHF7gn.js → label-bKnld9-e.js} +1 -1
- package/dist/client/assets/{layout-SoeNovgV.js → layout-C3s_EyAE.js} +1 -1
- package/dist/client/assets/{login-LLYqUNcm.js → login-DgncbZDD.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DJi01uux.js → mcp-oauth-CIUwYU01.js} +1 -1
- package/dist/client/assets/{members-B9ENZ8e1.js → members-fD3fuIPu.js} +1 -1
- package/dist/client/assets/{monaco-editor-L7LqIwWy.js → monaco-editor-DfjGwIkC.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CxzocL3Q.js → monitoring-stats-row-DbN6Nmjk.js} +1 -1
- package/dist/client/assets/{multi-select-BFE4zol0.js → multi-select-CbMJAEZF.js} +1 -1
- package/dist/client/assets/{oauth-callback-BuWTG1nd.js → oauth-callback-WOxNsdHY.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-D2_Sdkug.js → oauth-callback-ai-provider-Bu-7l7W1.js} +1 -1
- package/dist/client/assets/{onboarding-DS3eyf_2.js → onboarding-GV1YOUZx.js} +1 -1
- package/dist/client/assets/{org-layout-B1VIBJAl.js → org-layout-KMgFYnEn.js} +1 -1
- package/dist/client/assets/{organization-choice-DkkZQd_g.js → organization-choice-BdlZTNZ2.js} +1 -1
- package/dist/client/assets/{orgs-zPER5LFt.js → orgs-DpFCZKGa.js} +1 -1
- package/dist/client/assets/{page-seo-form-BJumYX04.js → page-seo-form-yEkuPmLs.js} +1 -1
- package/dist/client/assets/{popover-DJMx2KTn.js → popover-DH9TTdnh.js} +1 -1
- package/dist/client/assets/{post-calendar-BuV78HGF.js → post-calendar-_wAnd4hS.js} +1 -1
- package/dist/client/assets/{post-editor-BZnXAi4d.js → post-editor-DmIGTBNC.js} +1 -1
- package/dist/client/assets/{primitives-5HvGmKK-.js → primitives-ryVKph93.js} +1 -1
- package/dist/client/assets/{profile-BOY3eZR3.js → profile-C8UuIsP3.js} +1 -1
- package/dist/client/assets/{project-app-view-DVoyGHmJ.js → project-app-view-MsPnD9gX.js} +1 -1
- package/dist/client/assets/record-editor-C-RsaIun.js +1 -0
- package/dist/client/assets/{redirect-editor-CMv-pDFR.js → redirect-editor-Bd2rrLYO.js} +1 -1
- package/dist/client/assets/registry-DN_clZPu.js +2 -0
- package/dist/client/assets/{registry-layout-RSxTuPLW.js → registry-layout-Dc0H0ATx.js} +1 -1
- package/dist/client/assets/{reports-Dwt_ucxH.js → reports-CiLAvKnY.js} +1 -1
- package/dist/client/assets/{require-capability-BHAsgjIu.js → require-capability-BwuG9o3e.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DvbmI9tv.js → required-auth-layout-DoToYqRI.js} +1 -1
- package/dist/client/assets/{reset-password-BqXmcqDu.js → reset-password-tKjrzuH3.js} +1 -1
- package/dist/client/assets/{roles-DW-uxPyM.js → roles-zeeKTIgv.js} +1 -1
- package/dist/client/assets/{search-input-ZwmMsdkg.js → search-input-Bghs_Bjp.js} +1 -1
- package/dist/client/assets/{secrets-BLY_wgnw.js → secrets-BGwFAxtw.js} +1 -1
- package/dist/client/assets/sections-editor-g-gezo78.js +2 -0
- package/dist/client/assets/{select-DD0TFY-4.js → select-D5jnyj0l.js} +1 -1
- package/dist/client/assets/{select-model-BwWd88ft.js → select-model-DPpBxnrS.js} +1 -1
- package/dist/client/assets/{self-tool-result-D3dqsm3y.js → self-tool-result-CIZIi6Il.js} +1 -1
- package/dist/client/assets/{seo-editor-BDKoLzSY.js → seo-editor-DNcffLdI.js} +1 -1
- package/dist/client/assets/{settings-layout-DxkYonf_.js → settings-layout-CLBsNOrx.js} +1 -1
- package/dist/client/assets/{shell-controls-B-TBslGa.js → shell-controls-B3oa4qQr.js} +1 -1
- package/dist/client/assets/{shell-layout-DLA9EY8f.js → shell-layout-CAm70xM1.js} +1 -1
- package/dist/client/assets/{spinner-DciFbWI-.js → spinner-ClifCs3i.js} +1 -1
- package/dist/client/assets/{sprints-CjaAlUTS.js → sprints-C1R8b2UK.js} +1 -1
- package/dist/client/assets/{sso-CTs8os-I.js → sso-EV6PU76G.js} +1 -1
- package/dist/client/assets/{store-BxYWvwL5.js → store-DCevyKVu.js} +1 -1
- package/dist/client/assets/store-registry--a7H-Hfk.js +2 -0
- package/dist/client/assets/{switch-Df8CGUfu.js → switch-DXyXcz0k.js} +1 -1
- package/dist/client/assets/{synced-repos-D1k1-lrk.js → synced-repos-Db2YEWLj.js} +1 -1
- package/dist/client/assets/{tab-id-BANvfFYe.js → tab-id-C7NSeDZO.js} +1 -1
- package/dist/client/assets/{table-CiSPwnew.js → table-BdiZmxkC.js} +1 -1
- package/dist/client/assets/{tabs-D8wGPxq8.js → tabs-B1m4e_Lf.js} +1 -1
- package/dist/client/assets/{task-key-DOrREe-r.js → task-key-DzvP3l3i.js} +1 -1
- package/dist/client/assets/{tasks-stuAYb9v.js → tasks-DEqOIdPE.js} +1 -1
- package/dist/client/assets/{textarea-Brv2MTVd.js → textarea-C8A1NtUt.js} +1 -1
- package/dist/client/assets/{toggle-group-vjpCmgL8.js → toggle-group-B9nynTTu.js} +1 -1
- package/dist/client/assets/{toolbar-DIODCb1f.js → toolbar-Dn87lyB_.js} +1 -1
- package/dist/client/assets/{track-DGC-0NLE.js → track-BeWveGxs.js} +1 -1
- package/dist/client/assets/{types-C0NAWhcB.js → types-qEmgOr-R.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BXHrgStA.js → use-ai-providers-BWG1j4R3.js} +1 -1
- package/dist/client/assets/{use-api-keys-VXQLSf4H.js → use-api-keys-DpclRP6H.js} +1 -1
- package/dist/client/assets/{use-automations-C62kgJHR.js → use-automations-CESfm05a.js} +1 -1
- package/dist/client/assets/{use-autosave-DLSiPzTu.js → use-autosave-BRWbTp2x.js} +1 -1
- package/dist/client/assets/{use-clock-tick-CgdPue47.js → use-clock-tick-BmMJ4C9l.js} +1 -1
- package/dist/client/assets/{use-commerce-diagnostic-BlY1TeAF.js → use-commerce-diagnostic-Ll9Jxlc1.js} +1 -1
- package/dist/client/assets/{use-connection-BsaWBmCk.js → use-connection-CFAFM3Yj.js} +1 -1
- package/dist/client/assets/{use-copy-BTR3tthM.js → use-copy-Du-_RwSH.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-G4ihkuKf.js → use-create-virtual-mcp-DR7i4x1_.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BgqPY2VI.js → use-debounced-autosave-44xRW5_u.js} +1 -1
- package/dist/client/assets/{use-debounced-value-94Vu1jzk.js → use-debounced-value-D7E7obaB.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CzJXUH6Z.js → use-decopilot-events-0HarKwn7.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CKHa84kd.js → use-delete-connection-BUhVI2Tk.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-Oy4X_KUq.js → use-deployment-admin-CgvO-LhO.js} +1 -1
- package/dist/client/assets/{use-file-configs-C9vffss0.js → use-file-configs-BxpfXHj_.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CeIk7UeB.js → use-infinite-scroll-DSYZfzYp.js} +1 -1
- package/dist/client/assets/{use-join-requests-UsK1nSMB.js → use-join-requests-BPFfkf2j.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CCl1cIzz.js → use-mcp-client-Bu-g594J.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Dp6VGjwp.js → use-mcp-tools-Dtn2uWjv.js} +1 -1
- package/dist/client/assets/{use-members-C-mAdgAn.js → use-members-yMUdTS3F.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Bt6YTfjX.js → use-navigate-to-agent-CioCH7VJ.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-TkAH2fbH.js → use-org-auth-client-DZGh6wmi.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-MSnvbAQR.js → use-org-repo-syncs-CwiMJzn0.js} +1 -1
- package/dist/client/assets/{use-org-sso-D5kSX76m.js → use-org-sso-CmTeA9vF.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Bx5ZwWms.js → use-organization-roles-fAKqyPgr.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DmB-8cn-.js → use-organization-settings-DeS0wGS3.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CuqMfE1f.js → use-registry-connections-DENDz1rF.js} +1 -1
- package/dist/client/assets/{use-secrets-CaT7-Mkl.js → use-secrets-7WKBJtby.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-JuNAxl-t.js → use-section-preview-base-Dy0el1qx.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Dt-hBW-6.js → use-status-sounds-Dk4EoSoR.js} +1 -1
- package/dist/client/assets/{use-tags-BuzW7Ene.js → use-tags-CrW3MALx.js} +1 -1
- package/dist/client/assets/{use-view-mode-BCwOyDtc.js → use-view-mode-D5UH6KwN.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DPcCegAs.js → use-virtual-mcp-DKc17TzC.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CtQupOcz.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DsYLPBXT.js +1 -0
- package/dist/client/assets/{users-DPQbWgRn.js → users-CSsRTguV.js} +1 -1
- package/dist/client/assets/{variant-calendar-LhvfA_gU.js → variant-calendar-CBFu2wjk.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DcSNREAU.js → view-mode-toggle-NiXmRgSR.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +238 -238
- package/dist/server/server.js +182 -182
- package/package.json +1 -1
- package/dist/client/assets/record-editor-D52D-VV0.js +0 -1
- package/dist/client/assets/registry-wiuOrhEb.js +0 -2
- package/dist/client/assets/sections-editor-C9PT32EV.js +0 -2
- package/dist/client/assets/store-registry-xmZ_4qwo.js +0 -2
- package/dist/client/assets/useInfiniteQuery-C1nxI4nl.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-D5K4oxrg.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as B,b as L,j as r}from"./index-nvrMUz1E.js";import{I as A}from"./input-DAGNsgKJ.js";import{L as F}from"./label-DtmHF7gn.js";import{S as R,a as V,b as z,c as O,d as D}from"./select-DD0TFY-4.js";import{T as G}from"./textarea-Brv2MTVd.js";import{G as J,V as M,K as X,X as $,a5 as q}from"./index-BWXxYrTu.js";import{s as P}from"./primitives-5HvGmKK-.js";import{u as H}from"./use-autosave-DLSiPzTu.js";import"./Check-C3meIEhS.js";import"./ChevronDown-TArXGrOQ.js";import"./ChevronUp-CQwDe8iY.js";import"./ArrowUp-CK3gYqIk.js";import"./chat-context-DG-KDRWW.js";import"./tab-id-BANvfFYe.js";import"./dialog-BAZF9YiX.js";import"./Copy01-DdadevxV.js";import"./Download01-1vuZFsJp.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-DHYk1jCl.js";import"./use-mcp-client-CCl1cIzz.js";import"./constants-_08zpzmT.js";import"./auth-BcY3uebC.js";import"./decopilot-sse-pool-CggZOP6Q.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-DPcCegAs.js";import"./use-ai-providers-BXHrgStA.js";import"./use-decopilot-events-CzJXUH6Z.js";import"./use-organization-settings-DmB-8cn-.js";import"./automation-runs-Bn9aVPdy.js";import"./agent-icon-BbwcTqDP.js";import"./AlertCircle-BqiO233W.js";import"./Tool01-BKSPhSsL.js";import"./ArrowLeft-DHXRr37o.js";import"./Tool02-BDxSz5gg.js";import"./XCircle-DQIYJHof.js";import"./TrendUp01-D2F7lZcJ.js";import"./ZapSquare-CLA2S-eo.js";import"./Users03-CQBa5hg0.js";import"./UserSquare-B_62XpO-.js";import"./CheckCircle-Dy9V1hp7.js";import"./ChevronRight-CsIw29De.js";import"./ChevronSelectorVertical-Cdq-qltC.js";import"./DotsVertical-CeoSOE_3.js";import"./Stars02-CYmxv8KO.js";import"./CreditCard01-Bzfh8nan.js";import"./Settings02-CYQxL5B6.js";import"./Eye-CbxXrutx.js";import"./FilterLines-ChhF_hNb.js";import"./Share07-DSkEre6x.js";import"./Globe01-C00u5ZAY.js";import"./Globe04-CCQDYh_v.js";import"./SwitchHorizontal01-DweIkNK2.js";import"./HardDrive-11GCZT_6.js";import"./Key01-Hp8x5aBN.js";import"./LinkExternal01-C5zRPX5d.js";import"./LockUnlocked01-ClaEaEpm.js";import"./LogOut01-oHkHXF-Q.js";import"./Monitor01-dPO6vNK8.js";import"./Sun-C0wMFKn3.js";import"./Palette-t1TUeSoh.js";import"./Play--y70fqAB.js";import"./Plus-BLC2NLIh.js";import"./SearchLg-Cuy9OADE.js";import"./SearchMd-BYFRLbwK.js";import"./Shield01-Cp3nBugX.js";import"./Stars01-LtY7QbkW.js";import"./Trash01-BTHEeIXL.js";import"./Upload01-Cb6gGPQE.js";import"./User01-CKH1fp9t.js";import"./Users01-BWO9lpcY.js";import"./XClose-Bd7QmHen.js";import"./Zap-yb54W3xr.js";import"./useInfiniteQuery-C1nxI4nl.js";import"./use-infinite-scroll-CeIk7UeB.js";import"./use-connection-BsaWBmCk.js";import"./table-CiSPwnew.js";import"./empty-state-B1TGp1i4.js";import"./use-members-C-mAdgAn.js";import"./use-org-auth-client-TkAH2fbH.js";import"./use-clock-tick-CgdPue47.js";import"./use-automations-C62kgJHR.js";import"./useSuspenseInfiniteQuery-D5K4oxrg.js";import"./avatar-B6C35VqX.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BTR3tthM.js";import"./monaco-editor-L7LqIwWy.js";import"./spinner-DciFbWI-.js";import"./types-C0NAWhcB.js";import"./shell-layout-DLA9EY8f.js";import"./required-auth-layout-DvbmI9tv.js";import"./use-org-sso-D5kSX76m.js";import"./integration-icon-DtVM-_wt.js";import"./use-navigate-to-agent-Bt6YTfjX.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-Ca1OAUYc.js";import"./index-Bw4dhNXp.js";import"./form-CQStgqIC.js";import"./file-type-icon-DXjJ_Sr6.js";import"./drawer-CwsXINx1.js";import"./collection-search-CTLleDqU.js";import"./tabs-D8wGPxq8.js";import"./toggle-group-vjpCmgL8.js";import"./use-commerce-diagnostic-BlY1TeAF.js";import"./popover-DJMx2KTn.js";import"./self-tool-result-D3dqsm3y.js";import"./alert-dialog-CcRMrtVX.js";import"./extract-connection-data-qYk7394e.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-94Vu1jzk.js";import"./authenticate-and-persist-oauth-CXA7t_Jb.js";import"./mcp-oauth-DJi01uux.js";import"./track-DGC-0NLE.js";import"./toolbar-DIODCb1f.js";import"./github-repo-picker-DO7od-tZ.js";import"./use-mcp-tools-Dp6VGjwp.js";import"./agent-capabilities-C4tLW0Za.js";import"./connection-card-CoOjZu_4.js";import"./use-registry-connections-CuqMfE1f.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-CWpxuZtn.js";import"./collection-tabs-UeGrXap7.js";import"./badge-CevueEaV.js";import"./command-CgBS9adc.js";import"./index-DijjbpvK.js";import"./select-model-BwWd88ft.js";import"./checkbox-NebQ_NWD.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-mbbqxtHY.js";import"./dropdown-menu-argXK-i4.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Dt-hBW-6.js";import"./use-file-configs-C9vffss0.js";import"./pt-BR-CLy76QW2.js";import"./switch-Df8CGUfu.js";import"./use-debounced-autosave-BgqPY2VI.js";import"./search-input-ZwmMsdkg.js";import"./index-CZiVGAdA.js";import"./use-secrets-CaT7-Mkl.js";import"./AreaChart-BUgIxr3o.js";import"./task-key-DOrREe-r.js";import"./sprints-CjaAlUTS.js";import"./use-tags-BuzW7Ene.js";import"./get-initials-D-f_fDFw.js";import"./automation-list-row-BoMqLdQE.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-MSnvbAQR.js";const Q={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"}]},U={authors:"sandbox.recordEditor.titleAuthor"};function Dr(I){const t=B.c(39),{orgSlug:E,virtualMcpId:K,branch:w,kind:a,blockKey:b,block:f}=I,i=L();let h;t[0]!==w||t[1]!==E||t[2]!==K?(h={orgSlug:E,virtualMcpId:K,branch:w},t[0]=w,t[1]=E,t[2]=K,t[3]=h):h=t[3];const p=J(h);let g;t[4]!==f||t[5]!==a?(g=M(f,a),t[4]=f,t[5]=a,t[6]=g):g=t[6];const C=g;let k;t[7]!==b||t[8]!==a||t[9]!==p?(k=l=>{p.mutate({blockKey:b,data:$(b,a,l)})},t[7]=b,t[8]=a,t[9]=p,t[10]=k):k=t[10];const[e,S]=H(C,k);let v;t[11]!==e||t[12]!==S?(v=(l,o)=>S({...e,[l]:o}),t[11]=e,t[12]=S,t[13]=v):v=t[13];const s=v,N=U[a];let n;t[14]!==i||t[15]!==N?(n=i(N),t[14]=i,t[15]=N,t[16]=n):n=t[16];let c;t[17]!==n?(c=r.jsx("span",{className:"text-sm font-medium",children:n}),t[17]=n,t[18]=c):c=t[18];let d;t[19]!==p.isError||t[20]!==p.isPending?(d=r.jsx(X,{isPending:p.isPending,isError:p.isError}),t[19]=p.isError,t[20]=p.isPending,t[21]=d):d=t[21];let y;t[22]!==c||t[23]!==d?(y=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,d]}),t[22]=c,t[23]=d,t[24]=y):y=t[24];const T=Q[a];let x;if(t[25]!==e||t[26]!==s||t[27]!==i||t[28]!==T){let l;t[30]!==e||t[31]!==s||t[32]!==i?(l=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(q,{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(F,{htmlFor:o.key,children:i(o.labelKey)}),r.jsxs(R,{value:P(e[o.key])||o.options?.[0]?.value,onValueChange:m=>s(o.key,m),children:[r.jsx(V,{id:o.key,className:"h-10 w-full",children:r.jsx(z,{placeholder:i(o.labelKey)})}),r.jsx(O,{children:(o.options??[]).map(m=>r.jsx(D,{value:m.value,children:i(m.labelKey)},m.value))})]})]}):r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:i(o.labelKey)}),o.widget==="textarea"?r.jsx(G,{id:o.key,value:P(e[o.key]),onChange:m=>s(o.key,m.target.value),rows:3}):r.jsx(A,{id:o.key,value:P(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[30]=e,t[31]=s,t[32]=i,t[33]=l):l=t[33],x=T.map(l),t[25]=e,t[26]=s,t[27]=i,t[28]=T,t[29]=x}else x=t[29];let u;t[34]!==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[34]=x,t[35]=u):u=t[35];let j;return t[36]!==u||t[37]!==y?(j=r.jsxs("div",{className:"flex h-full flex-col",children:[y,u]}),t[36]=u,t[37]=y,t[38]=j):j=t[38],j}export{Dr as RecordEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-RSxTuPLW.js","assets/index-nvrMUz1E.js","assets/index-DfOjcoHJ.css","assets/Tool02-BDxSz5gg.js","assets/CheckCircle-Dy9V1hp7.js","assets/Settings02-CYQxL5B6.js","assets/use-mcp-client-CCl1cIzz.js","assets/constants-_08zpzmT.js","assets/auth-BcY3uebC.js","assets/useInfiniteQuery-C1nxI4nl.js","assets/use-infinite-scroll-CeIk7UeB.js","assets/badge-CevueEaV.js","assets/input-DAGNsgKJ.js","assets/dropdown-menu-argXK-i4.js","assets/Check-C3meIEhS.js","assets/ChevronRight-CsIw29De.js","assets/DotsVertical-CeoSOE_3.js","assets/table-CiSPwnew.js","assets/toggle-group-vjpCmgL8.js","assets/use-view-mode-BCwOyDtc.js","assets/FilterLines-ChhF_hNb.js","assets/Globe01-C00u5ZAY.js","assets/SearchMd-BYFRLbwK.js","assets/dialog-BAZF9YiX.js","assets/AlertCircle-BqiO233W.js","assets/Download01-1vuZFsJp.js","assets/Upload01-Cb6gGPQE.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-CcRMrtVX.js","assets/Trash01-BTHEeIXL.js","assets/label-DtmHF7gn.js","assets/select-DD0TFY-4.js","assets/ChevronDown-TArXGrOQ.js","assets/ChevronUp-CQwDe8iY.js","assets/switch-Df8CGUfu.js","assets/textarea-Brv2MTVd.js","assets/ArrowLeft-DHXRr37o.js","assets/XCircle-DQIYJHof.js","assets/checkbox-NebQ_NWD.js","assets/Eye-CbxXrutx.js","assets/LinkExternal01-C5zRPX5d.js","assets/use-copy-BTR3tthM.js","assets/Copy01-DdadevxV.js","assets/Key01-Hp8x5aBN.js","assets/Plus-BLC2NLIh.js","assets/mcp-oauth-DJi01uux.js","assets/Play--y70fqAB.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as i,j as e,r as s,k as a,bc as o}from"./index-nvrMUz1E.js";import{R as c}from"./require-capability-BHAsgjIu.js";import"./access-gate-a5GYm4En.js";import"./capability-load-error-CrgKOkLj.js";const n=s.lazy(()=>o(()=>import("./registry-layout-RSxTuPLW.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])));function u(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(c,{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{u as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as st,b as Dt,r as w,n as Ue,j as n,aC as Zn,ab as wt,a8 as kt,B as tt,a9 as Tt,k as es,p as Co,t as J,K as Po}from"./index-nvrMUz1E.js";import{b as Mo}from"./chat-context-DG-KDRWW.js";import{aw as ts,ax as Lo,ay as Ko,az as Bo,aA as Io,ab as ns,ac as Xt,aB as ss,aC as os,ad as as,ae as is,aD as rs,aE as Oo,al as ls,am as cs,aF as Fo,aG as $o,aH as us,P as zo,af as ds,ag as Lt,aj as ms,ak as fs,ah as ps,ar as gs,aI as Ho,aJ as Kt,aK as hs,aL as Uo,aM as Go,aN as qo,aO as Wo,aP as Jo,F as Yo,G as Qo,aQ as Xo,aR as Zo,aS as ea,aT as ta,aU as Bn,aV as na,aW as sa,aX as oa,ap as qt,aY as aa,aZ as ia,a_ as Wt,a$ as ra,b0 as St,b1 as Ct,b2 as la,b3 as ca,b4 as nt,b5 as In,b6 as ua,H as da,b7 as On,b8 as ma,b9 as fa,ba as Pt,bb as Jt,bc as Fn,bd as pa,be as fn,bf as ga,bg as ht,bh as Et,bi as ha,bj as va,bk as ba,bl as Sa,bm as ya,bn as yt,bo as xa,bp as _a,bq as ja,J as Ea,br as $n,bs as Mt,bt as zn,bu as Hn,bv as Ra,bw as wa,bx as ka,by as Ta,bz as pn,bA as Un,bB as Gn,bC as Rt,bD as Yt,bE as qn,bF as Da,bG as gn,bH as Va,bI as Na,bJ as Aa,bK as Ca,bL as Pa}from"./index-BWXxYrTu.js";import{t as Ma}from"./ChevronDown-TArXGrOQ.js";import{ah as vn,x as La,V as vs,G as Ka,w as Ba,ao as Ia,r as Oa}from"./agent-icon-BbwcTqDP.js";import{i as Fa}from"./ChevronRight-CsIw29De.js";import{n as $a}from"./ChevronUp-CQwDe8iY.js";import{i as za}from"./Globe01-C00u5ZAY.js";import{B as Qt}from"./automation-runs-Bn9aVPdy.js";import{b as Ha,h as Ua,a as Ga,c as qa,d as Wa,e as Ja}from"./dialog-BAZF9YiX.js";import{I as Ya}from"./input-DAGNsgKJ.js";import{a as bs}from"./Copy01-DdadevxV.js";import{i as Qa}from"./Settings02-CYQxL5B6.js";import{s as Xa}from"./Eye-CbxXrutx.js";import{s as Za}from"./TrendUp01-D2F7lZcJ.js";import{s as bn}from"./Plus-BLC2NLIh.js";import{s as Ss}from"./Trash01-BTHEeIXL.js";import{i as ei}from"./Zap-yb54W3xr.js";import{D as ys,a as vt,c as xs,b as _s,i as ti}from"./dropdown-menu-argXK-i4.js";import{a as ni,P as si,b as oi}from"./page-seo-form-BJumYX04.js";import{b as ai}from"./Tool01-BKSPhSsL.js";import{u as ii,A as ri}from"./use-section-preview-base-JuNAxl-t.js";import"./tab-id-BANvfFYe.js";import"./Check-C3meIEhS.js";import"./Download01-1vuZFsJp.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-DHYk1jCl.js";import"./use-mcp-client-CCl1cIzz.js";import"./constants-_08zpzmT.js";import"./auth-BcY3uebC.js";import"./decopilot-sse-pool-CggZOP6Q.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-DPcCegAs.js";import"./use-ai-providers-BXHrgStA.js";import"./use-decopilot-events-CzJXUH6Z.js";import"./use-organization-settings-DmB-8cn-.js";import"./ArrowUp-CK3gYqIk.js";import"./spinner-DciFbWI-.js";import"./drawer-CwsXINx1.js";import"./collection-search-CTLleDqU.js";import"./SearchMd-BYFRLbwK.js";import"./chart-Ca1OAUYc.js";import"./index-Bw4dhNXp.js";import"./shell-layout-DLA9EY8f.js";import"./avatar-B6C35VqX.js";import"./User01-CKH1fp9t.js";import"./Users03-CQBa5hg0.js";import"./SearchLg-Cuy9OADE.js";import"./Stars02-CYmxv8KO.js";import"./XClose-Bd7QmHen.js";import"./CheckCircle-Dy9V1hp7.js";import"./FilterLines-ChhF_hNb.js";import"./Monitor01-dPO6vNK8.js";import"./required-auth-layout-DvbmI9tv.js";import"./use-org-sso-D5kSX76m.js";import"./XCircle-DQIYJHof.js";import"./Upload01-Cb6gGPQE.js";import"./AlertCircle-BqiO233W.js";import"./form-CQStgqIC.js";import"./label-DtmHF7gn.js";import"./select-DD0TFY-4.js";import"./UserSquare-B_62XpO-.js";import"./ArrowLeft-DHXRr37o.js";import"./tabs-D8wGPxq8.js";import"./Tool02-BDxSz5gg.js";import"./toggle-group-vjpCmgL8.js";import"./use-commerce-diagnostic-BlY1TeAF.js";import"./popover-DJMx2KTn.js";import"./self-tool-result-D3dqsm3y.js";import"./alert-dialog-CcRMrtVX.js";import"./integration-icon-DtVM-_wt.js";import"./extract-connection-data-qYk7394e.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-94Vu1jzk.js";import"./LinkExternal01-C5zRPX5d.js";import"./authenticate-and-persist-oauth-CXA7t_Jb.js";import"./mcp-oauth-DJi01uux.js";import"./track-DGC-0NLE.js";import"./toolbar-DIODCb1f.js";import"./github-repo-picker-DO7od-tZ.js";import"./use-connection-BsaWBmCk.js";import"./LockUnlocked01-ClaEaEpm.js";import"./use-mcp-tools-Dp6VGjwp.js";import"./use-navigate-to-agent-Bt6YTfjX.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./agent-capabilities-C4tLW0Za.js";import"./connection-card-CoOjZu_4.js";import"./use-registry-connections-CuqMfE1f.js";import"./useInfiniteQuery-C1nxI4nl.js";import"./use-infinite-scroll-CeIk7UeB.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-Brv2MTVd.js";import"./connection-form-helpers-CWpxuZtn.js";import"./collection-tabs-UeGrXap7.js";import"./badge-CevueEaV.js";import"./useSuspenseInfiniteQuery-D5K4oxrg.js";import"./command-CgBS9adc.js";import"./index-DijjbpvK.js";import"./use-clock-tick-CgdPue47.js";import"./DotsVertical-CeoSOE_3.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./select-model-BwWd88ft.js";import"./checkbox-NebQ_NWD.js";import"./ChevronSelectorVertical-Cdq-qltC.js";import"./Key01-Hp8x5aBN.js";import"./ai-providers-logos-DD3qZ33J.js";import"./Stars01-LtY7QbkW.js";import"./cards-mbbqxtHY.js";import"./Share07-DSkEre6x.js";import"./Palette-t1TUeSoh.js";import"./file-type-icon-DXjJ_Sr6.js";import"./question-004-sINsf4GQ.js";import"./use-members-C-mAdgAn.js";import"./use-org-auth-client-TkAH2fbH.js";import"./use-status-sounds-Dt-hBW-6.js";import"./empty-state-B1TGp1i4.js";import"./ZapSquare-CLA2S-eo.js";import"./types-C0NAWhcB.js";import"./use-file-configs-C9vffss0.js";import"./monaco-editor-L7LqIwWy.js";import"./pt-BR-CLy76QW2.js";import"./switch-Df8CGUfu.js";import"./Play--y70fqAB.js";import"./use-debounced-autosave-BgqPY2VI.js";import"./search-input-ZwmMsdkg.js";import"./index-CZiVGAdA.js";import"./Users01-BWO9lpcY.js";import"./use-secrets-CaT7-Mkl.js";import"./AreaChart-BUgIxr3o.js";import"./task-key-DOrREe-r.js";import"./sprints-CjaAlUTS.js";import"./use-copy-BTR3tthM.js";import"./SwitchHorizontal01-DweIkNK2.js";import"./use-tags-BuzW7Ene.js";import"./get-initials-D-f_fDFw.js";import"./use-automations-C62kgJHR.js";import"./automation-list-row-BoMqLdQE.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-MSnvbAQR.js";import"./CreditCard01-Bzfh8nan.js";import"./Globe04-CCQDYh_v.js";import"./HardDrive-11GCZT_6.js";import"./LogOut01-oHkHXF-Q.js";import"./Sun-C0wMFKn3.js";import"./Shield01-Cp3nBugX.js";import"./table-CiSPwnew.js";function li(m){return m.schema?.definitions??m.schema?.$defs??{}}function js(m,e){const a=li(e),c=a[btoa(m)];if(!c)return[];const p=[c];if(Array.isArray(c.allOf)){const x=c.allOf.find(j=>typeof j.$ref=="string")?.$ref;if(typeof x=="string"){const j=a[x.replace("#/definitions/","")];j&&p.push(j)}}return p}function ci(m,e){for(const a of js(m,e)){const c=typeof a.image=="string"?a.image:void 0;if(c?.includes("{{{"))return c}}function ui(m,e){if(!e)return;const a=ts(m);if(!a)return;const c=ci(a.resolveType,e);if(!c)return;const p=Lo(c,a.data);if(p)return Ko(p)}const di={escape:Io};function mi(m,e){for(const a of js(m,e)){const c=typeof a.title=="string"?a.title:void 0;if(c?.includes("{{"))return c}}function fi(m,e){if(!e)return;const a=ts(m);if(a)try{const c=mi(a.resolveType,e);return c&&Bo.render(c,a.data,{},di).trim()||void 0}catch{return}}const pi="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",gi="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 Wn(m){return Array.from({length:m},(e,a)=>({id:crypto.randomUUID(),index:a}))}function Es(m){return m.map((e,a)=>({...e,index:a}))}function hi(m,e){if(e===m.length)return m;if(e<m.length)return Es(m.slice(0,e));const a=Array.from({length:e-m.length},(c,p)=>({id:crypto.randomUUID(),index:m.length+p}));return[...m,...a]}function Rs(m){const e=st.c(25),{section:a,raw:c,meta:p}=m,x=a.isSavedBlock===!0,j=a.isMultivariate===!0;let h;e[0]!==p||e[1]!==c?(h=c&&p?ui(c,p):void 0,e[0]=p,e[1]=c,e[2]=h):h=e[2];const S=h;let g;e[3]!==p||e[4]!==j||e[5]!==c||e[6]!==x?(g=c&&p&&!x&&!j?fi(c,p):void 0,e[3]=p,e[4]=j,e[5]=c,e[6]=x,e[7]=g):g=e[7];const k=g;let I;e[8]===Symbol.for("react.memo_cache_sentinel")?(I=n.jsx(La,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[8]=I):I=e[8];let M;e[9]!==S?(M=S&&n.jsx("img",{src:S,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),e[9]=S,e[10]=M):M=e[10];let D;e[11]!==j||e[12]!==x?(D=x?{color:zo}:j?{color:"oklch(0.65 0.15 160)"}:void 0,e[11]=j,e[12]=x,e[13]=D):D=e[13];let l;e[14]!==D?(l=n.jsx(vn,{className:"h-4 w-4 shrink-0",style:D}),e[14]=D,e[15]=l):l=e[15];const y=a.isHidden&&"line-through opacity-50";let R;e[16]!==y?(R=Ue("min-w-0 flex-1 truncate text-sm font-medium",y),e[16]=y,e[17]=R):R=e[17];const u=k??a.label;let V;e[18]!==R||e[19]!==u?(V=n.jsx("span",{className:R,children:u}),e[18]=R,e[19]=u,e[20]=V):V=e[20];let i;return e[21]!==V||e[22]!==M||e[23]!==l?(i=n.jsxs(n.Fragment,{children:[I,M,l,V]}),e[21]=V,e[22]=M,e[23]=l,e[24]=i):i=e[24],i}const vi="w-7 ml-0 opacity-100 [transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]",bi="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]",Si="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 hn(m,e){return Ue("h-7 shrink-0 overflow-hidden",e?vi:m?Si:bi)}function ws(m,e){const a=m.isSavedBlock===!0,c=m.isMultivariate===!0;return Ue("group flex select-none items-center gap-2 rounded-md px-2 py-2.5",e?"bg-accent text-accent-foreground":a?pi:c?us:"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function yi(m){const e=st.c(82),{section:a,raw:c,meta:p,sortableId:x,selected:j,onSelect:h,onDelete:S,onDuplicate:g,onMakeReusable:k,onToggleHidden:I,onToggleLazy:M,onAddVariant:D,onDetach:l}=m,y=Dt(),R=c?rs(c.__resolveType??""):!1,u=a.isHidden===!0,V=R||u;let i;e[0]!==a?(i=Oo(a),e[0]=a,e[1]=i):i=e[1];const Q=i;let U;e[2]!==x?(U={id:x,animateLayoutChanges:Ri},e[2]=x,e[3]=U):U=e[3];const{attributes:we,listeners:G,setNodeRef:d,transform:P,isDragging:ke}=ls(U);let N;e[4]!==P?(N=cs.Transform.toString(P?{...P,x:0}:null),e[4]=P,e[5]=N):N=e[5];const ee=ke?0:void 0;let T;e[6]!==N||e[7]!==ee?(T={transform:N,opacity:ee},e[6]=N,e[7]=ee,e[8]=T):T=e[8];const te=T;let K;e[9]!==a?(K=Fo(a),e[9]=a,e[10]=K):K=e[10];const Pe=K,Se="button",Te=0;let q;e[11]!==h?(q=_=>{(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),h())},e[11]=h,e[12]=q):q=e[12];const ue=ke?"cursor-grabbing":"cursor-pointer";let ae;e[13]!==a||e[14]!==j||e[15]!==ue?(ae=Ue("touch-none transition-colors",ue,ws(a,j)),e[13]=a,e[14]=j,e[15]=ue,e[16]=ae):ae=e[16];let ne;e[17]!==p||e[18]!==c||e[19]!==a?(ne=n.jsx(Rs,{section:a,raw:c,meta:p}),e[17]=p,e[18]=c,e[19]=a,e[20]=ne):ne=e[20];const L=!a.isMultivariate&&n.jsxs(wt,{children:[n.jsx(kt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":y(R?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender"),className:Ue(hn(V,R)),onClick:_=>{_.stopPropagation(),M()},onPointerDown:Ei,children:n.jsx(ei,{className:Ue("h-3.5 w-3.5",R&&"text-yellow-500")})})}),n.jsx(Tt,{side:"bottom",children:y(R?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")})]}),Je=!a.isMultivariate&&n.jsxs(wt,{children:[n.jsx(kt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":y(u?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),className:Ue(hn(V,u)),onClick:_=>{_.stopPropagation(),I()},onPointerDown:ji,children:u?n.jsx(Qa,{className:"h-3.5 w-3.5"}):n.jsx(Xa,{className:"h-3.5 w-3.5"})})}),n.jsx(Tt,{side:"bottom",children:y(u?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection")})]}),Be=xs,Ie=ys,Le=!0,B=tt,de="button",Oe="ghost",Me="icon";let Z;e[21]!==y?(Z=y("sectionsEditor.sectionList.sectionActionsMenu"),e[21]=y,e[22]=Z):Z=e[22];const ye=Ue(hn(V,!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 ie;e[23]===Symbol.for("react.memo_cache_sentinel")?(ie=n.jsx(vs,{className:"h-3.5 w-3.5"}),e[23]=ie):ie=e[23];let re;e[24]!==B||e[25]!==Z||e[26]!==ye?(re=n.jsx(B,{type:de,variant:Oe,size:Me,"aria-label":Z,className:ye,onClick:_i,onPointerDown:xi,children:ie}),e[24]=B,e[25]=Z,e[26]=ye,e[27]=re):re=e[27];let me;e[28]!==Ie||e[29]!==re?(me=n.jsx(Ie,{asChild:Le,children:re}),e[28]=Ie,e[29]=re,e[30]=me):me=e[30];let fe;e[31]!==g?(fe=_=>{_.stopPropagation(),g()},e[31]=g,e[32]=fe):fe=e[32];let pe;e[33]===Symbol.for("react.memo_cache_sentinel")?(pe=n.jsx(bs,{className:"h-4 w-4"}),e[33]=pe):pe=e[33];let xe;e[34]!==y?(xe=y("sectionsEditor.sectionList.duplicateMenuItem"),e[34]=y,e[35]=xe):xe=e[35];let _e;e[36]!==fe||e[37]!==xe?(_e=n.jsxs(vt,{onClick:fe,children:[pe,xe]}),e[36]=fe,e[37]=xe,e[38]=_e):_e=e[38];let le;e[39]!==Q||e[40]!==D||e[41]!==y?(le=Q&&n.jsxs(vt,{className:$o,onClick:_=>{_.stopPropagation(),D()},children:[n.jsx(Za,{className:"h-4 w-4"}),y("sectionsEditor.sectionList.addVariantMenuItem")]}),e[39]=Q,e[40]=D,e[41]=y,e[42]=le):le=e[42];let O;e[43]!==Pe||e[44]!==k||e[45]!==y?(O=Pe&&n.jsxs(vt,{className:gi,onClick:_=>{_.stopPropagation(),k()},children:[n.jsx(vn,{className:"h-4 w-4"}),y("sectionsEditor.sectionList.makeReusableMenuItem")]}),e[43]=Pe,e[44]=k,e[45]=y,e[46]=O):O=e[46];let je;e[47]!==l||e[48]!==a.isMultivariate||e[49]!==a.isSavedBlock||e[50]!==y?(je=a.isSavedBlock===!0&&!a.isMultivariate&&n.jsxs(vt,{onClick:_=>{_.stopPropagation(),l()},children:[n.jsx(vn,{className:"h-4 w-4"}),y("sectionsEditor.sectionList.detachMenuItem")]}),e[47]=l,e[48]=a.isMultivariate,e[49]=a.isSavedBlock,e[50]=y,e[51]=je):je=e[51];let ge;e[52]!==S?(ge=_=>{_.stopPropagation(),S()},e[52]=S,e[53]=ge):ge=e[53];let Ee;e[54]===Symbol.for("react.memo_cache_sentinel")?(Ee=n.jsx(Ss,{className:"h-4 w-4"}),e[54]=Ee):Ee=e[54];let se;e[55]!==y?(se=y("sectionsEditor.sectionList.deleteMenuItem"),e[55]=y,e[56]=se):se=e[56];let X;e[57]!==ge||e[58]!==se?(X=n.jsxs(vt,{className:"text-destructive focus:text-destructive",onClick:ge,children:[Ee,se]}),e[57]=ge,e[58]=se,e[59]=X):X=e[59];let ce;e[60]!==_e||e[61]!==le||e[62]!==O||e[63]!==je||e[64]!==X?(ce=n.jsxs(_s,{align:"end",className:"w-44",children:[_e,le,O,je,X]}),e[60]=_e,e[61]=le,e[62]=O,e[63]=je,e[64]=X,e[65]=ce):ce=e[65];let he;e[66]!==Be||e[67]!==me||e[68]!==ce?(he=n.jsxs(Be,{children:[me,ce]}),e[66]=Be,e[67]=me,e[68]=ce,e[69]=he):he=e[69];let De;return e[70]!==we||e[71]!==G||e[72]!==h||e[73]!==d||e[74]!==te||e[75]!==ae||e[76]!==ne||e[77]!==L||e[78]!==Je||e[79]!==he||e[80]!==q?(De=n.jsxs("div",{ref:d,style:te,...we,...G,role:Se,tabIndex:Te,onClick:h,onKeyDown:q,className:ae,children:[ne,L,Je,he]}),e[70]=we,e[71]=G,e[72]=h,e[73]=d,e[74]=te,e[75]=ae,e[76]=ne,e[77]=L,e[78]=Je,e[79]=he,e[80]=q,e[81]=De):De=e[81],De}function xi(m){return m.stopPropagation()}function _i(m){return m.stopPropagation()}function ji(m){return m.stopPropagation()}function Ei(m){return m.stopPropagation()}function Ri(){return!1}function wi(m){const e=st.c(104),{listKey:a,rawSections:c,sections:p,meta:x,selectedIndex:j,onSelect:h,onReorder:S,onDelete:g,onDuplicate:k,onMakeReusable:I,onToggleHidden:M,onToggleLazy:D,onAddVariant:l,onDetach:y,onAddSection:R,canAddSection:u}=m,V=u===void 0?!0:u,i=Dt();let Q;e[0]!==p.length?(Q=()=>Wn(p.length),e[0]=p.length,e[1]=Q):Q=e[1];const[U,we]=w.useState(Q),[G,d]=w.useState(null),[P,ke]=w.useState(a),[N,ee]=w.useState(p.length),T=w.useRef(!1);P!==a?(ke(a),ee(p.length),we(Wn(p.length))):N!==p.length&&(ee(p.length),we(De=>hi(De,p.length)));let te;e[2]===Symbol.for("react.memo_cache_sentinel")?(te={activationConstraint:{distance:8}},e[2]=te):te=e[2];let K;e[3]===Symbol.for("react.memo_cache_sentinel")?(K={coordinateGetter:ds},e[3]=K):K=e[3];const Pe=ns(Xt(is,te),Xt(as,K));let Se;e[4]!==U?(Se=U.map(ki),e[4]=U,e[5]=Se):Se=e[5];const Te=Se;let q;e[6]===Symbol.for("react.memo_cache_sentinel")?(q=De=>{d(String(De.active.id))},e[6]=q):q=e[6];const ue=q;let ae;e[7]!==Te||e[8]!==S?(ae=De=>{d(null);const{active:_,over:ve}=De;if(!ve||_.id===ve.id)return;const oe=Te.indexOf(String(_.id)),Ve=Te.indexOf(String(ve.id));oe===-1||Ve===-1||(we(Fe=>Es(Lt([...Fe],oe,Ve))),T.current=!0,requestAnimationFrame(()=>{T.current=!1}),S?.(oe,Ve))},e[7]=Te,e[8]=S,e[9]=ae):ae=e[9];const ne=ae;let L;e[10]===Symbol.for("react.memo_cache_sentinel")?(L=()=>{d(null)},e[10]=L):L=e[10];const Je=L;let Be,Ie,Le,B,de,Oe,Me,Z,ye,ie,re,me,fe,pe,xe;if(e[11]!==G||e[12]!==V||e[13]!==U||e[14]!==Te||e[15]!==ne||e[16]!==x||e[17]!==R||e[18]!==l||e[19]!==g||e[20]!==y||e[21]!==k||e[22]!==I||e[23]!==h||e[24]!==M||e[25]!==D||e[26]!==c||e[27]!==p||e[28]!==j||e[29]!==Pe||e[30]!==i){pe=Symbol.for("react.early_return_sentinel");e:{const De=_=>{T.current||h(_)};if(e[46]!==G||e[47]!==V||e[48]!==U||e[49]!==R||e[50]!==c||e[51]!==p||e[52]!==i){const _=G?U.find(ve=>ve.id===G):null;if(B=_!=null?p[_.index]:null,Le=_!=null?c[_.index]:void 0,U.length===0){let ve;e[56]!==i?(ve=i("sectionsEditor.sectionList.noSections"),e[56]=i,e[57]=ve):ve=e[57];let oe;e[58]!==ve?(oe=n.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:ve}),e[58]=ve,e[59]=oe):oe=e[59];const Ve=!V;let Fe;e[60]===Symbol.for("react.memo_cache_sentinel")?(Fe=n.jsx(bn,{size:14}),e[60]=Fe):Fe=e[60];let ct;e[61]!==i?(ct=i("sectionsEditor.sectionList.addSectionButton"),e[61]=i,e[62]=ct):ct=e[62];let Ne;e[63]!==R||e[64]!==Ve||e[65]!==ct?(Ne=n.jsxs(tt,{type:"button",variant:"outline",size:"sm",className:"w-full",disabled:Ve,onClick:R,children:[Fe,ct]}),e[63]=R,e[64]=Ve,e[65]=ct,e[66]=Ne):Ne=e[66];let Xe;e[67]!==oe||e[68]!==Ne?(Xe=n.jsxs("div",{className:"space-y-2",children:[oe,Ne]}),e[67]=oe,e[68]=Ne,e[69]=Xe):Xe=e[69],pe=Xe;break e}fe=Ue(_&&"cursor-grabbing"),e[46]=G,e[47]=V,e[48]=U,e[49]=R,e[50]=c,e[51]=p,e[52]=i,e[53]=Le,e[54]=B,e[55]=fe}else Le=e[53],B=e[54],fe=e[55];Ie=ms,Z=Pe,ye=fs,ie=ue,re=ne,me=Je,Be=ps,Oe=Te,Me=gs,xe="space-y-1",de=U.map(_=>{const ve=p[_.index];return ve?n.jsx(yi,{sortableId:_.id,section:ve,raw:c[_.index],meta:x,selected:j===_.index,onSelect:()=>De(_.index),onDelete:()=>g(_.index),onDuplicate:()=>k(_.index),onMakeReusable:()=>I(_.index),onToggleHidden:()=>M(_.index),onToggleLazy:()=>D(_.index),onAddVariant:()=>l(_.index),onDetach:()=>y(_.index)},_.id):null})}e[11]=G,e[12]=V,e[13]=U,e[14]=Te,e[15]=ne,e[16]=x,e[17]=R,e[18]=l,e[19]=g,e[20]=y,e[21]=k,e[22]=I,e[23]=h,e[24]=M,e[25]=D,e[26]=c,e[27]=p,e[28]=j,e[29]=Pe,e[30]=i,e[31]=Be,e[32]=Ie,e[33]=Le,e[34]=B,e[35]=de,e[36]=Oe,e[37]=Me,e[38]=Z,e[39]=ye,e[40]=ie,e[41]=re,e[42]=me,e[43]=fe,e[44]=pe,e[45]=xe}else Be=e[31],Ie=e[32],Le=e[33],B=e[34],de=e[35],Oe=e[36],Me=e[37],Z=e[38],ye=e[39],ie=e[40],re=e[41],me=e[42],fe=e[43],pe=e[44],xe=e[45];if(pe!==Symbol.for("react.early_return_sentinel"))return pe;let _e;e[70]!==de||e[71]!==xe?(_e=n.jsx("div",{className:xe,children:de}),e[70]=de,e[71]=xe,e[72]=_e):_e=e[72];let le;e[73]!==Be||e[74]!==Oe||e[75]!==Me||e[76]!==_e?(le=n.jsx(Be,{items:Oe,strategy:Me,children:_e}),e[73]=Be,e[74]=Oe,e[75]=Me,e[76]=_e,e[77]=le):le=e[77];let O;e[78]!==Le||e[79]!==B||e[80]!==x?(O=B?n.jsx("div",{className:Ue("cursor-grabbing shadow-lg ring-1 ring-border/60",ws(B,!1)),children:n.jsx(Rs,{section:B,raw:Le,meta:x})}):null,e[78]=Le,e[79]=B,e[80]=x,e[81]=O):O=e[81];let je;e[82]!==O?(je=Zn.createPortal(n.jsx(ss,{dropAnimation:os,children:O}),document.body),e[82]=O,e[83]=je):je=e[83];let ge;e[84]!==Ie||e[85]!==Z||e[86]!==ye||e[87]!==ie||e[88]!==re||e[89]!==me||e[90]!==le||e[91]!==je?(ge=n.jsxs(Ie,{sensors:Z,collisionDetection:ye,onDragStart:ie,onDragEnd:re,onDragCancel:me,children:[le,je]}),e[84]=Ie,e[85]=Z,e[86]=ye,e[87]=ie,e[88]=re,e[89]=me,e[90]=le,e[91]=je,e[92]=ge):ge=e[92];const Ee=!V;let se;e[93]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(bn,{size:14}),e[93]=se):se=e[93];let X;e[94]!==i?(X=i("sectionsEditor.sectionList.addSectionButton"),e[94]=i,e[95]=X):X=e[95];let ce;e[96]!==R||e[97]!==Ee||e[98]!==X?(ce=n.jsxs(tt,{type:"button",variant:"outline",size:"sm",className:"mt-2 w-full",disabled:Ee,onClick:R,children:[se,X]}),e[96]=R,e[97]=Ee,e[98]=X,e[99]=ce):ce=e[99];let he;return e[100]!==fe||e[101]!==ge||e[102]!==ce?(he=n.jsxs("div",{className:fe,children:[ge,ce]}),e[100]=fe,e[101]=ge,e[102]=ce,e[103]=he):he=e[103],he}function ki(m){return m.id}function Jn(m){const e=st.c(57),{open:a,initialName:c,autoLabel:p,isPending:x,onSubmit:j,onOpenChange:h}=m,S=x===void 0?!1:x,g=Dt(),[k,I]=w.useState(c),[M,D]=w.useState(a);a!==M&&(D(a),a&&I(c));let l;e[0]!==S||e[1]!==h?(l=ue=>{!ue&&!S&&h(!1)},e[0]=S,e[1]=h,e[2]=l):l=e[2];const y=l;let R;e[3]!==S||e[4]!==k||e[5]!==j?(R=async ue=>{ue.preventDefault(),!S&&await j(k.trim())},e[3]=S,e[4]=k,e[5]=j,e[6]=R):R=e[6];const u=R;let V;e[7]!==g?(V=g("sectionsEditor.variantRenameDialog.title"),e[7]=g,e[8]=V):V=e[8];let i;e[9]!==V?(i=n.jsx(Ha,{children:V}),e[9]=V,e[10]=i):i=e[10];let Q;e[11]!==p||e[12]!==g?(Q=g("sectionsEditor.variantRenameDialog.description",{fallback:p||g("sectionsEditor.variantRenameDialog.defaultFallback")}),e[11]=p,e[12]=g,e[13]=Q):Q=e[13];let U;e[14]!==Q?(U=n.jsx(Ua,{children:Q}),e[14]=Q,e[15]=U):U=e[15];let we;e[16]!==i||e[17]!==U?(we=n.jsxs(Ga,{children:[i,U]}),e[16]=i,e[17]=U,e[18]=we):we=e[18];let G;e[19]!==g?(G=g("sectionsEditor.variantRenameDialog.nameLabel"),e[19]=g,e[20]=G):G=e[20];let d;e[21]!==G?(d=n.jsx("label",{htmlFor:"variant-rename-name",className:"text-xs font-medium text-muted-foreground",children:G}),e[21]=G,e[22]=d):d=e[22];let P;e[23]===Symbol.for("react.memo_cache_sentinel")?(P=ue=>I(ue.target.value),e[23]=P):P=e[23];let ke;e[24]!==p||e[25]!==S||e[26]!==k?(ke=n.jsx(Ya,{id:"variant-rename-name",value:k,onChange:P,placeholder:p,autoFocus:!0,disabled:S}),e[24]=p,e[25]=S,e[26]=k,e[27]=ke):ke=e[27];let N;e[28]!==d||e[29]!==ke?(N=n.jsxs("div",{className:"space-y-1.5 py-4",children:[d,ke]}),e[28]=d,e[29]=ke,e[30]=N):N=e[30];let ee;e[31]!==h?(ee=()=>h(!1),e[31]=h,e[32]=ee):ee=e[32];let T;e[33]!==g?(T=g("sectionsEditor.variantRenameDialog.cancel"),e[33]=g,e[34]=T):T=e[34];let te;e[35]!==S||e[36]!==ee||e[37]!==T?(te=n.jsx(tt,{type:"button",variant:"outline",onClick:ee,disabled:S,children:T}),e[35]=S,e[36]=ee,e[37]=T,e[38]=te):te=e[38];let K;e[39]!==S||e[40]!==g?(K=S?n.jsxs(n.Fragment,{children:[n.jsx(es,{size:14,className:"animate-spin"}),g("sectionsEditor.variantRenameDialog.saving")]}):g("sectionsEditor.variantRenameDialog.save"),e[39]=S,e[40]=g,e[41]=K):K=e[41];let Pe;e[42]!==S||e[43]!==K?(Pe=n.jsx(tt,{type:"submit",disabled:S,children:K}),e[42]=S,e[43]=K,e[44]=Pe):Pe=e[44];let Se;e[45]!==te||e[46]!==Pe?(Se=n.jsxs(qa,{children:[te,Pe]}),e[45]=te,e[46]=Pe,e[47]=Se):Se=e[47];let Te;e[48]!==u||e[49]!==N||e[50]!==Se||e[51]!==we?(Te=n.jsx(Wa,{className:"sm:max-w-md",children:n.jsxs("form",{onSubmit:u,children:[we,N,Se]})}),e[48]=u,e[49]=N,e[50]=Se,e[51]=we,e[52]=Te):Te=e[52];let q;return e[53]!==y||e[54]!==a||e[55]!==Te?(q=n.jsx(Ja,{open:a,onOpenChange:y,children:Te}),e[53]=y,e[54]=a,e[55]=Te,e[56]=q):q=e[56],q}function ks(m){const e=st.c(5),{rule:a,matchers:c}=m,p=a?.__resolveType??"";let x;if(e[0]!==c||e[1]!==p){const g=c.find(k=>k.resolveType===p)?.iconName??Ho(p);x=Ka(g),e[0]=c,e[1]=p,e[2]=x}else x=e[2];const j=x;if(!j)return null;let h;return e[3]!==j?(h=n.jsx(j,{size:14,className:"shrink-0"}),e[3]=j,e[4]=h):h=e[4],h}function Yn(m){return m.map(e=>`${e.label}|${e.rule?.__resolveType??""}`).join(`
|
|
2
|
-
`)}function Qn(m){return m.map((e,a)=>({id:crypto.randomUUID(),index:a,variant:e}))}function Ti(m,e){const a=new Map;for(const c of m){const p=a.get(c.variant.label);p?p.push(c):a.set(c.variant.label,[c])}return e.map((c,p)=>({id:a.get(c.label)?.shift()?.id??crypto.randomUUID(),index:p,variant:c}))}function Di(m){return m.map((e,a)=>({...e,index:a}))}function Ts(m){const e=st.c(17),{label:a,effectiveRule:c,matchers:p,canDelete:x,dragging:j,onRename:h,onDuplicate:S,onDelete:g}=m,k=Dt();let I;e[0]!==c||e[1]!==p?(I=n.jsx(ks,{rule:c,matchers:p}),e[0]=c,e[1]=p,e[2]=I):I=e[2];let M;e[3]!==a?(M=n.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:a}),e[3]=a,e[4]=M):M=e[4];let D;e[5]!==x||e[6]!==j||e[7]!==a||e[8]!==g||e[9]!==S||e[10]!==h||e[11]!==k?(D=!j&&n.jsxs(xs,{children:[n.jsx(ys,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":k("sectionsEditor.pageVariantTabs.actionsAriaLabel",{label:a}),className:"size-6 shrink-0 opacity-0 transition-opacity group-hover:opacity-100 data-[state=open]:opacity-100",onClick:Ni,onPointerDown:Vi,children:n.jsx(vs,{size:14})})}),n.jsxs(_s,{align:"end",className:"w-36",children:[n.jsxs(vt,{onClick:y=>{y.stopPropagation(),h?.()},children:[n.jsx(ai,{size:14}),k("sectionsEditor.pageVariantTabs.renameAction")]}),n.jsxs(vt,{onClick:y=>{y.stopPropagation(),S?.()},children:[n.jsx(bs,{size:14}),k("sectionsEditor.pageVariantTabs.duplicateAction")]}),n.jsx(ti,{}),n.jsxs(vt,{variant:"destructive",disabled:!x,onClick:y=>{y.stopPropagation(),g?.()},children:[n.jsx(Ss,{size:14}),k("sectionsEditor.pageVariantTabs.deleteAction")]})]})]}),e[5]=x,e[6]=j,e[7]=a,e[8]=g,e[9]=S,e[10]=h,e[11]=k,e[12]=D):D=e[12];let l;return e[13]!==I||e[14]!==M||e[15]!==D?(l=n.jsxs(n.Fragment,{children:[I,M,D]}),e[13]=I,e[14]=M,e[15]=D,e[16]=l):l=e[16],l}function Vi(m){return m.stopPropagation()}function Ni(m){return m.stopPropagation()}function Ai(m){const e=st.c(33),{entry:a,isActive:c,canDelete:p,decofile:x,meta:j,matchers:h,onSelect:S,onRename:g,onDuplicate:k,onDelete:I}=m;let M;e[0]!==a.id?(M={id:a.id,animateLayoutChanges:Ci},e[0]=a.id,e[1]=M):M=e[1];const{attributes:D,listeners:l,setNodeRef:y,transform:R,isDragging:u}=ls(M);let V;e[2]!==R?(V=cs.Transform.toString(R?{...R,x:0}:null),e[2]=R,e[3]=V):V=e[3];const i=u?0:void 0;let Q;e[4]!==V||e[5]!==i?(Q={transform:V,opacity:i},e[4]=V,e[5]=i,e[6]=Q):Q=e[6];const U=Q,we=j??void 0;let G;e[7]!==x||e[8]!==a.variant.rule||e[9]!==we?(G=Kt(a.variant.rule,x,we),e[7]=x,e[8]=a.variant.rule,e[9]=we,e[10]=G):G=e[10];const d=G;let P;e[11]!==S?(P=K=>{K.target===K.currentTarget&&(K.key==="Enter"||K.key===" ")&&(K.preventDefault(),S())},e[11]=S,e[12]=P):P=e[12];const ke=u?"cursor-grabbing":"cursor-pointer active:cursor-grabbing",N=c?hs:us;let ee;e[13]!==ke||e[14]!==N?(ee=Ue("group flex select-none items-center gap-2 rounded-md px-2 py-2.5 transition-colors touch-none",ke,N),e[13]=ke,e[14]=N,e[15]=ee):ee=e[15];let T;e[16]!==p||e[17]!==d||e[18]!==a.variant.label||e[19]!==h||e[20]!==I||e[21]!==k||e[22]!==g?(T=n.jsx(Ts,{label:a.variant.label,effectiveRule:d,matchers:h,canDelete:p,onRename:g,onDuplicate:k,onDelete:I}),e[16]=p,e[17]=d,e[18]=a.variant.label,e[19]=h,e[20]=I,e[21]=k,e[22]=g,e[23]=T):T=e[23];let te;return e[24]!==D||e[25]!==l||e[26]!==S||e[27]!==y||e[28]!==U||e[29]!==ee||e[30]!==T||e[31]!==P?(te=n.jsx("div",{ref:y,style:U,...D,...l,onClick:S,onKeyDown:P,className:ee,children:T}),e[24]=D,e[25]=l,e[26]=S,e[27]=y,e[28]=U,e[29]=ee,e[30]=T,e[31]=P,e[32]=te):te=e[32],te}function Ci(){return!1}function Pi(m){const e=st.c(9),{variant:a,decofile:c,meta:p,matchers:x}=m,j=p??void 0;let h;e[0]!==c||e[1]!==j||e[2]!==a.rule?(h=Kt(a.rule,c,j),e[0]=c,e[1]=j,e[2]=a.rule,e[3]=h):h=e[3];const S=h;let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=Ue("flex items-center gap-2 rounded-md px-2 py-2.5 shadow-lg ring-1 ring-border/60 cursor-grabbing",hs),e[4]=g):g=e[4];let k;return e[5]!==S||e[6]!==x||e[7]!==a.label?(k=n.jsx("div",{className:g,children:n.jsx(Ts,{label:a.label,effectiveRule:S,matchers:x,canDelete:!1,dragging:!0})}),e[5]=S,e[6]=x,e[7]=a.label,e[8]=k):k=e[8],k}function Mi(m){const e=st.c(91),{listKey:a,variants:c,activeIndex:p,decofile:x,meta:j,matchers:h,onSelect:S,onReorder:g,onRename:k,onDuplicate:I,onDelete:M,onAdd:D}=m,l=Dt();let y;e[0]!==c?(y=()=>Qn(c),e[0]=c,e[1]=y):y=e[1];const[R,u]=w.useState(y),[V,i]=w.useState(null),[Q,U]=w.useState(a),[we,G]=w.useState(c.length);let d;e[2]!==c?(d=()=>Yn(c),e[2]=c,e[3]=d):d=e[3];const[P,ke]=w.useState(d),N=w.useRef(!1),ee=Yn(c);Q!==a?(U(a),G(c.length),ke(ee),u(Qn(c))):(we!==c.length||P!==ee)&&(G(c.length),ke(ee),u(ge=>Ti(ge,c)));let T;e[4]===Symbol.for("react.memo_cache_sentinel")?(T={activationConstraint:{distance:8}},e[4]=T):T=e[4];let te;e[5]===Symbol.for("react.memo_cache_sentinel")?(te={coordinateGetter:ds},e[5]=te):te=e[5];const K=ns(Xt(is,T),Xt(as,te));let Pe;e[6]!==R?(Pe=R.map(Li),e[6]=R,e[7]=Pe):Pe=e[7];const Se=Pe,Te=c.length>1;let q;e[8]!==R?(q=ge=>{const Ee=String(ge.active.id);i(R.find(se=>se.id===Ee)??null)},e[8]=R,e[9]=q):q=e[9];const ue=q;let ae;e[10]!==Se||e[11]!==g?(ae=ge=>{i(null);const{active:Ee,over:se}=ge;if(!se||Ee.id===se.id)return;const X=Se.indexOf(String(Ee.id)),ce=Se.indexOf(String(se.id));X===-1||ce===-1||(u(he=>Di(Lt([...he],X,ce))),N.current=!0,requestAnimationFrame(()=>{N.current=!1}),g(X,ce))},e[10]=Se,e[11]=g,e[12]=ae):ae=e[12];const ne=ae;let L;e[13]===Symbol.for("react.memo_cache_sentinel")?(L=()=>{i(null)},e[13]=L):L=e[13];const Je=L;let Be,Ie,Le,B,de,Oe,Me,Z,ye,ie,re,me,fe;if(e[14]!==p||e[15]!==Te||e[16]!==x||e[17]!==R||e[18]!==Se||e[19]!==ne||e[20]!==ue||e[21]!==h||e[22]!==j||e[23]!==D||e[24]!==M||e[25]!==I||e[26]!==k||e[27]!==S||e[28]!==K||e[29]!==l){const ge=oe=>{N.current||S(oe)};re="space-y-1 border-b p-2";let Ee;e[43]!==l?(Ee=l("sectionsEditor.pageVariantTabs.variantsLabel"),e[43]=l,e[44]=Ee):Ee=e[44];let se;e[45]!==Ee?(se=n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:Ee}),e[45]=Ee,e[46]=se):se=e[46];let X;e[47]!==l?(X=l("sectionsEditor.pageVariantTabs.addVariantAriaLabel"),e[47]=l,e[48]=X):X=e[48];let ce;e[49]===Symbol.for("react.memo_cache_sentinel")?(ce=n.jsx(bn,{size:14}),e[49]=ce):ce=e[49];let he;e[50]!==D||e[51]!==X?(he=n.jsx(kt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":X,className:"size-6",onClick:D,children:ce})}),e[50]=D,e[51]=X,e[52]=he):he=e[52];let De;e[53]!==l?(De=l("sectionsEditor.pageVariantTabs.addVariantTooltip"),e[53]=l,e[54]=De):De=e[54];let _;e[55]!==De?(_=n.jsx(Tt,{children:De}),e[55]=De,e[56]=_):_=e[56];let ve;e[57]!==he||e[58]!==_?(ve=n.jsxs(wt,{children:[he,_]}),e[57]=he,e[58]=_,e[59]=ve):ve=e[59],e[60]!==se||e[61]!==ve?(me=n.jsxs("div",{className:"flex items-center justify-between",children:[se,ve]}),e[60]=se,e[61]=ve,e[62]=me):me=e[62],Ie=ms,Oe=K,Me=fs,Z=ue,ye=ne,ie=Je,Be=ps,B=Se,de=gs,fe="space-y-0.5",Le=R.map(oe=>n.jsx(Ai,{entry:oe,isActive:oe.index===p,canDelete:Te,decofile:x,meta:j,matchers:h,onSelect:()=>ge(oe.index),onRename:()=>k(oe.index),onDuplicate:()=>I(oe.index),onDelete:()=>M(oe.index)},oe.id)),e[14]=p,e[15]=Te,e[16]=x,e[17]=R,e[18]=Se,e[19]=ne,e[20]=ue,e[21]=h,e[22]=j,e[23]=D,e[24]=M,e[25]=I,e[26]=k,e[27]=S,e[28]=K,e[29]=l,e[30]=Be,e[31]=Ie,e[32]=Le,e[33]=B,e[34]=de,e[35]=Oe,e[36]=Me,e[37]=Z,e[38]=ye,e[39]=ie,e[40]=re,e[41]=me,e[42]=fe}else Be=e[30],Ie=e[31],Le=e[32],B=e[33],de=e[34],Oe=e[35],Me=e[36],Z=e[37],ye=e[38],ie=e[39],re=e[40],me=e[41],fe=e[42];let pe;e[63]!==Le||e[64]!==fe?(pe=n.jsx("div",{className:fe,children:Le}),e[63]=Le,e[64]=fe,e[65]=pe):pe=e[65];let xe;e[66]!==Be||e[67]!==B||e[68]!==de||e[69]!==pe?(xe=n.jsx(Be,{items:B,strategy:de,children:pe}),e[66]=Be,e[67]=B,e[68]=de,e[69]=pe,e[70]=xe):xe=e[70];let _e;e[71]!==V||e[72]!==x||e[73]!==h||e[74]!==j?(_e=V?n.jsx(Pi,{variant:V.variant,decofile:x,meta:j,matchers:h}):null,e[71]=V,e[72]=x,e[73]=h,e[74]=j,e[75]=_e):_e=e[75];let le;e[76]!==_e?(le=Zn.createPortal(n.jsx(ss,{dropAnimation:os,children:_e}),document.body),e[76]=_e,e[77]=le):le=e[77];let O;e[78]!==Ie||e[79]!==Oe||e[80]!==Me||e[81]!==Z||e[82]!==ye||e[83]!==ie||e[84]!==xe||e[85]!==le?(O=n.jsxs(Ie,{sensors:Oe,collisionDetection:Me,onDragStart:Z,onDragEnd:ye,onDragCancel:ie,children:[xe,le]}),e[78]=Ie,e[79]=Oe,e[80]=Me,e[81]=Z,e[82]=ye,e[83]=ie,e[84]=xe,e[85]=le,e[86]=O):O=e[86];let je;return e[87]!==re||e[88]!==me||e[89]!==O?(je=n.jsxs("div",{className:re,children:[me,O]}),e[87]=re,e[88]=me,e[89]=O,e[90]=je):je=e[90],je}function Li(m){return m.id}function Xn(m){const e=st.c(21),{currentRt:a,currentLabel:c,currentGlobalKey:p,matchers:x,globals:j,onSelect:h,onSelectGlobal:S,schema:g,formValue:k,onChange:I,formKey:M,formWrapperClassName:D,meta:l,decofile:y,onSaveReferencedBlock:R,sandbox:u}=m;let V;e[0]!==p||e[1]!==c||e[2]!==a||e[3]!==j||e[4]!==x||e[5]!==h||e[6]!==S?(V=n.jsx(Uo,{currentRt:a,currentLabel:c,currentGlobalKey:p,matchers:x,globals:j,onSelect:h,onSelectGlobal:S}),e[0]=p,e[1]=c,e[2]=a,e[3]=j,e[4]=x,e[5]=h,e[6]=S,e[7]=V):V=e[7];let i;e[8]!==y||e[9]!==M||e[10]!==k||e[11]!==D||e[12]!==l||e[13]!==I||e[14]!==R||e[15]!==u||e[16]!==g?(i=g&&k&&n.jsx("div",{className:D,children:n.jsx(Go,{schema:g,value:k,onChange:I,meta:l,decofile:y,onSaveReferencedBlock:R,sandbox:u},M)}),e[8]=y,e[9]=M,e[10]=k,e[11]=D,e[12]=l,e[13]=I,e[14]=R,e[15]=u,e[16]=g,e[17]=i):i=e[17];let Q;return e[18]!==V||e[19]!==i?(Q=n.jsxs(n.Fragment,{children:[V,i]}),e[18]=V,e[19]=i,e[20]=Q):Q=e[20],Q}function wc({orgSlug:m,virtualMcpId:e,branch:a,previewReady:c=!0,previewUrl:p,currentPath:x,activePageBlockKey:j=null,activeGlobalBlockKey:h=null,externalSelection:S,onSaved:g,initialEditSeo:k=!1,onExitSeo:I,onViewJsonFile:M,onVariantPreviewOverride:D}){const l=Dt(),y=Mo()?.taskId??null,R=c?{orgSlug:m,virtualMcpId:e,branch:a,threadId:y,previewUrl:p}:null,{data:u,isLoading:V}=qo(R),{data:i,isLoading:Q}=Wo(R),U=Jo(),we=U?.entity?.id===e?U.entity.metadata?.siteSlug??null:null,G=ii({virtualMcpId:e,sandboxUrl:p}),[d,P]=w.useState(null),[ke,N]=w.useState(null),[ee,T]=w.useState(null),[te,K]=w.useState(0),[Pe,Se]=w.useState(void 0),[Te,q]=w.useState(null),[ue,ae]=w.useState(null),[ne,L]=w.useState([]),Je=w.useRef(null),[Be,Ie]=w.useState(ne.length);Be!==ne.length&&(Ie(ne.length),requestAnimationFrame(()=>{Je.current&&(Je.current.scrollTop=0)}));const[Le,B]=w.useState(0),[de,Oe]=w.useState(null),[Me,Z]=w.useState(null),[ye,ie]=w.useState(null),[re,me]=w.useState(!0),[fe,pe]=w.useState(!1),[xe,_e]=w.useState(!1),le=w.useRef(null),[O,je]=w.useState(k),[ge,Ee]=w.useState(k);k&&!ge&&(Ee(!0),je(!0),P(null),N(null),T(null),L([])),!k&&ge&&Ee(!1);const[se,X]=w.useState(null),[ce,he]=w.useState(void 0),[De,_]=w.useState([]),[ve,oe]=w.useState(0),[Ve,Fe]=w.useState(0),[ct,Ne]=w.useState(null),[Xe,qe]=w.useState(null),[Sn,yn]=w.useState(null),Ds=Co(),Vs=`${m}/${e}/${a}`,Zt=Yo({orgSlug:m,virtualMcpId:e,branch:a}),[Ns,As]=w.useState(x),[Cs,Ps]=w.useState(j),[Ms,Ls]=w.useState(h);(Ns!==x||Cs!==j||Ms!==h)&&(queueMicrotask(()=>Zt.flush()),As(x),Ps(j),Ls(h),P(null),N(null),T(null),K(0),q(null),ae(null),Fe(0),Ne(null),qe(null),L([]),B(t=>t+1),je(!1),X(null),he(void 0),_([]),oe(t=>t+1));const Ae=Qo({orgSlug:m,virtualMcpId:e,branch:a}),Bt=Ea((t,s)=>{Ae.mutate({blockKey:t,data:s},{onSuccess:()=>g?.(),onError:o=>J.error(l("sectionsEditor.sectionsEditor.saveFailed",{error:o.message}))})}),en=Xo({orgSlug:m,virtualMcpId:e,branch:a}),[Vt,It]=w.useState(!1),ze=w.useRef(null),ot=w.useRef(null),at=w.useRef(null),tn=w.useRef({}),Ze=w.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null});if(!c||V||Q)return n.jsx("div",{className:"h-full w-full flex items-center justify-center",children:n.jsx(es,{size:20,className:"animate-spin text-muted-foreground"})});if(!u||!i)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:l("sectionsEditor.sectionsEditor.couldNotLoadSiteData")});const Ks=Zo(u),Ce=!!h,We=Ce?null:ea(Ks,x,j),E=Ce?h:We?.key??null,nn=Ce&&h?u[h]:void 0,xn=Ce&&h&&nn?ta(h,nn):Ce&&h?h:"",Ot=!Ce&&E&&u[E]?u[E]:null,sn=O&&u&&i&&E&&We?Bn(u,{kind:"page",pageKey:E,pageName:String(We.name??""),path:String(We.path??"")},i):null,Bs=O?Ot?.seo:void 0,on=ce!==void 0?ce:Bs,Is=O?na(on):void 0,Os=sn?.seoTypeOptions??[],Fs=O&&i?sa(i):"",_n=se??Is??{},an=O&&sn?ni(_n,sn):null,$s=O&&an&&oa(on)?qt(an,i):null,zs=O?aa(u,i)?.seoData:void 0,Ge=Ce?[{label:"Default",sections:[{__resolveType:h}]}]:ia(Ot?.sections,u??{}),Ft=Ge.length>1,$e=Math.min(te,Ge.length-1),ut=Ge[$e],z=ut?.sections??[],He=Wt(z,u),jn=!Ce&&ra(Ot?.sections);if(Ce&&h&&Sn!==h){yn(h);const t=z[0],s=He[0];if(t&&s){P(0),Fe(0),L([]);const o=St(t,s,u);o&&(N(o.data),T(o.resolveType),qe(null),Ne(null))}}!Ce&&Sn!==null&&yn(null),Ze.current={rawSections:z,parsedSections:He,decofile:u??{},activePageKey:E,pageVariants:Ge,variantIndex:$e,sectionVariantIndex:Ve,selectedSectionIndex:d};const Hs=()=>({multivariate:jn,index:$e,variants:Ge.map(t=>({rule:t.rule}))}),En=(t,s)=>{if(!D)return;if(!E||!jn||t.length<=1){D(null);return}const o=qn(E,{multivariate:!0,index:s,variants:t},u,i);D(o.length>0?o:null)},xt=(t,s,o)=>{if(!D)return;if(!E){D(null);return}const r=Hs(),f=qn(E,r,u,i);if(!t||s<0){D(f.length>0?f:null);return}const b=Da({pageKey:E,page:r,sectionIndex:s,sectionLazy:He[s]?.isLazy??!1,mvObj:t,selectedVariantIndex:o,decofile:u,meta:i}),v=[...f,...b];D(v.length>0?v:null)},dt=(t,s,o,r=d??-1,f=!1)=>{const b=nt(t,s);if(!b){N(null),T(null),qe(null),Ne(null),f&&xt(null,r,o);return}const A=In(b,ht)[o];if(!A){N(null),T(null),qe(null),Ne(null),f&&xt(null,r,o);return}const Y=ha(A.value,u);N(Y?.data??null),T(Y?.resolveType??null);const{resolveType:C,formValue:F}=Ct(A.rule,u,i??void 0);qe(C),Ne(F),f&&xt(b,r,o)},Nt=S?.index;if(S!==void 0&&(S?.seq??null)!==Pe&&(Se(S?.seq??null),typeof Nt=="number")){const t=z[Nt],s=He[Nt];if(t&&s)if(P(Nt),Fe(0),L([]),B(o=>o+1),s.isMultivariate)dt(t,s,0,Nt);else{const o=St(t,s,u);o?(N(o.data),T(o.resolveType)):(N(null),T(null)),qe(null),Ne(null)}}const $t={orgSlug:m,virtualMcpId:e,branch:a,threadId:y,previewUrl:p??void 0,siteSlug:we},rn=ee&&i?qt(ee,i):null,Ye=(t,s)=>{if(!E)return;ze.current&&(clearTimeout(ze.current),ze.current=null),at.current&&(clearTimeout(at.current),at.current=null),ot.current&&(clearTimeout(ot.current),ot.current=null);const o=Mt(u,E,t,$e,Ge);Ae.mutate({blockKey:E,data:o},{onSuccess:()=>s?.onSuccess?.()??g?.(),onError:r=>J.error(l("sectionsEditor.sectionsEditor.saveFailed",{error:r.message}))})},_t=()=>{P(null),N(null),T(null),Fe(0),Ne(null),qe(null),L([]),B(t=>t+1)},Us=(t,s)=>{ze.current&&clearTimeout(ze.current);const o=Ze.current.sectionVariantIndex;ze.current=setTimeout(()=>{const{rawSections:r,parsedSections:f,decofile:b,activePageKey:v,pageVariants:A,variantIndex:Y}=Ze.current,C=r[s];if(!C)return;const F=f[s];if(!F)return;if(F.isSavedBlock){const H=F.isLazy?C.section?.__resolveType??C.__resolveType:C.__resolveType;Ae.mutate({blockKey:H,data:t},{onSuccess:()=>g?.(),onError:W=>J.error(l("sectionsEditor.sectionsEditor.saveFailed",{error:W.message}))});return}if(!v)return;const $={...b[v]},Re=[...r];if(F.isMultivariate){const H=nt(C,F);if(!H||!v)return;const W=Na(H,o,t);Re[s]=yt(C,F,W)}else if(F.isHidden){const H=rs(C.__resolveType),W=H?{...C.section}:{...C},Ke=Array.isArray(W.variants)?[...W.variants]:[];Ke[0]&&(Ke[0]={...Ke[0],value:t}),W.variants=Ke,H?Re[s]={...C,section:W}:Re[s]=W}else F.isLazy?Re[s]={...C,section:t}:Re[s]=t;if(A.length>1){const H=$.sections,W=[...H?.variants??[]];W[Y]&&(W[Y]={...W[Y],value:Re}),$.sections={...H,variants:W}}else $.sections=Re;Ae.mutate({blockKey:v,data:$},{onSuccess:()=>g?.(),onError:H=>J.error(l("sectionsEditor.sectionsEditor.saveFailed",{error:H.message}))})},gn)},Gs=t=>{P(t),Fe(0),L([]),B(f=>f+1);const s=z[t],o=He[t];if(!s||!o)return;if(o.isMultivariate){dt(s,o,0,t);return}const r=St(s,o,u);if(!r){N(null),T(null),qe(null),Ne(null),xt(null,t,0);return}N(r.data),T(r.resolveType),qe(null),Ne(null),xt(null,t,0)},Rn=t=>{const s=t;N(s),d!==null&&Us(s,d)},ln=t=>{if(!E||!u||!i||!We)return;const s={kind:"page",pageKey:E,pageName:String(We.name??""),path:String(We.path??"")},o=Bn(u,s,i);o&&Zt.save(E,()=>{const r=Ds.getQueryData(Po.decofile(Vs))?.[E];if(!r||typeof r!="object"||r===null||Array.isArray(r))return null;const f={...r,...tn.current};return tn.current={},t?.raw!==void 0?{...f,seo:t.raw}:t?.inner!==void 0?oi(s,o,f,t.inner):f})},qs=(t,s)=>{E&&(tn.current[t]=s,ln())},Ws=(t,s)=>{if(!E)return;const o=Lt([...z],t,s);d!==null&&(d===t?P(s):t<d&&s>=d?P(d-1):t>d&&s<=d&&P(d+1)),Ye(o)},Js=t=>{if(!E)return;const s=z.filter((o,r)=>r!==t);d===t?_t():d!==null&&d>t&&P(d-1),Ye(s)},Ys=t=>{if(!E)return;const s=z[t];if(!s)return;const o=[...z];o.splice(t+1,0,Ta(s)),d!==null&&d>t&&P(d+1),Ye(o)},Qs=t=>{if(!E)return;const s=z[t],o=He[t];if(!s||!o||o.isMultivariate)return;const r=o.isHidden?wa(s):ka(s);if(!r)return;const f=[...z];f[t]=r,d===t&&_t(),Ye(f)},Xs=t=>{if(!E)return;const s=z[t],o=He[t];if(!s||!o||o.isMultivariate)return;const r=Ra(s);if(!r)return;const f=[...z];f[t]=r,d===t&&_t(),Ye(f)},Zs=t=>{if(!E)return;const s=z[t],o=He[t];if(!s||!o?.isSavedBlock)return;const r=St(s,o,u);if(!r?.data)return;const{name:f,...b}=r.data,v=[...z];o.isLazy?v[t]={...s,section:b}:v[t]=b,d===t&&_t(),Ye(v)},eo=t=>{if(!E)return;const s=[...z,{__resolveType:t.resolveType}],o=s.length-1;Ye(s,{onSuccess:()=>{pe(!1),P(o),Fe(0),L([]),B(v=>v+1);const r=s[o],f=Wt(s,u)[o];if(!r||!f)return;if(f.isMultivariate){dt(r,f,0);return}const b=St(r,f,u);if(!b){N(null),T(null),qe(null),Ne(null);return}N(b.data),T(b.resolveType),qe(null),Ne(null)}})},wn=t=>{le.current=t.append,pe(!0)},to=t=>{const s=le.current;if(!s){eo(t);return}s({__resolveType:t.resolveType}),pe(!1),le.current=null},no=t=>{if(d===null)return;const s=z[d],o=He[d];!s||!o?.isMultivariate||(Fe(t),L([]),B(r=>r+1),dt(s,o,t,d,!0))},so=t=>{if(d===null||!E)return;const s=z[d],o=He[d];if(!s||!o?.isMultivariate)return;const r=nt(s,o);if(!r)return;const f=_a(r,t);if(!f){J.error(l("sectionsEditor.sectionsEditor.cannotDeleteOnlyVariant"));return}const b=[...z];b[d]=yt(s,o,f);const v=f.variants;let A=Ve;t===Ve?A=Math.min(t,v.length-1):t<Ve&&(A=Ve-1),Fe(A),L([]),B(Y=>Y+1),dt(b[d],o,A),Ye(b)},oo=t=>{if(d===null||!E)return;const s=z[d],o=He[d];if(!s||!o?.isMultivariate)return;const r=nt(s,o);if(!r)return;const f=ja(r,t),b=[...z];b[d]=yt(s,o,f);const v=t+1;Fe(v),L([]),B(A=>A+1),dt(b[d],o,v),Ye(b)},ao=(t,s)=>{if(d===null||!E||t===s)return;const o=z[d],r=He[d];if(!o||!r?.isMultivariate)return;const f=nt(o,r);if(!f)return;const b=ya(f,t,s),v=[...z];v[d]=yt(o,r,b);let A=Ve;Ve===t?A=s:t<Ve&&s>=Ve?A=Ve-1:t>Ve&&s<=Ve&&(A=Ve+1),Fe(A),dt(v[d],r,A),Ye(v)},cn=t=>{const s=t??d;if(s===null||!E)return;const o=z[s],r=He[s];if(!o||!r)return;const f=va(o,r);if(!f){J.error(l("sectionsEditor.sectionsEditor.sectionCannotHaveVariants"));return}const b=[...z];b[s]=f.section;const v=Wt(b,u)[s];if(!v?.isMultivariate){J.error(l("sectionsEditor.sectionsEditor.couldNotAddVariant"));return}P(s),Fe(f.newVariantIndex),L([]),B(A=>A+1),dt(f.section,v,f.newVariantIndex,s),Ye(b)},io=()=>{if(d===null||!E)return;const t=z[d],s=He[d];if(!t||!s?.isMultivariate)return;const o=nt(t,s);if(!o)return;const r=xa(t,s,o);if(!r){J.error(l("sectionsEditor.sectionsEditor.couldNotRemoveVariants"));return}const f=[...z];f[d]=r;const b=Wt(f,u)[d];if(!b)return;Fe(0),qe(null),Ne(null),L([]),B(A=>A+1);const v=St(r,b,u);v?(N(v.data),T(v.resolveType)):(N(null),T(null)),xt(null,d,0),Ye(f)},ro=async t=>{if(de===null||!E)return;const s=pn(t,u);if(s){J.error(s);return}const o=z[de],r=He[de];if(!o||!r)return;const f=St(o,r,u);if(!f){J.error(l("sectionsEditor.sectionsEditor.sectionCannotBeSavedAsGlobal"));return}const b={...f.data,name:t};try{await Ae.mutateAsync({blockKey:t,data:b});const v=[...z];v[de]={__resolveType:t},await Ae.mutateAsync({blockKey:E,data:Mt(u,E,v,$e,Ge)}),d===de&&_t(),Oe(null),J.success(l("sectionsEditor.sectionsEditor.savedGlobalBlock",{blockId:t})),g?.()}catch(v){J.error(v instanceof Error?v.message:l("sectionsEditor.sectionsEditor.failedToSaveGlobalBlock"))}},kn=ut?.rule;if(Ft&&d===null&&ue===null&&kn){const{resolveType:t,formValue:s}=Ct(kn,u??{},i??void 0);ae(t),q(s)}const zt=i?la(i):[],Tn=i&&u?ca(i,u):[],lo=!Ce&&!!(G&&i&&u),co=ue&&i?qt(ue,i):null,jt=()=>{ot.current&&(clearTimeout(ot.current),ot.current=null),at.current&&(clearTimeout(at.current),at.current=null)},At=async(t,s)=>{if(!(Va(s,t,i)>0))try{await en.mutateAsync({blockKey:t})}catch(o){J.error(o instanceof Error?o.message:l("sectionsEditor.sectionsEditor.couldNotDeleteMatcherBlock"))}},Dn=t=>{ot.current&&clearTimeout(ot.current),ot.current=setTimeout(()=>{const{activePageKey:s,decofile:o,variantIndex:r}=Ze.current;if(!s)return;const f={...o[s]},b={...f.sections},v=[...b.variants??[]],A=v[r],Y=A?.rule;if(Et(Y,o,i)){const C=Y?.__resolveType??"",F=o[C],$=typeof F?.name=="string"?F.name:C,{__resolveType:Re,...H}=t;Ae.mutate({blockKey:C,data:Rt(Re??"",H,$)},{onSuccess:()=>g?.(),onError:W=>J.error(l("sectionsEditor.sectionsEditor.saveFailed",{error:W.message}))});return}A&&(v[r]={...A,rule:t}),f.sections={...b,variants:v},Ae.mutate({blockKey:s,data:f},{onSuccess:()=>g?.(),onError:C=>J.error(l("sectionsEditor.sectionsEditor.saveFailed",{error:C.message}))})},gn)},uo=t=>{ae(t);const s=t?zn(t,i):{__resolveType:Hn};q(t?s:{}),Dn(s)},mo=t=>{const s=t;q(s);const o=ue?{__resolveType:ue,...s}:{...s};Dn(o)},fo=async t=>{jt();const{activePageKey:s,decofile:o,variantIndex:r}=Ze.current;if(!s)return;const f=o[s],b=f?.sections;if(!b||typeof b!="object"||Array.isArray(b))return;const v=b;if(!Array.isArray(v.variants))return;const A=[...v.variants],Y=A[r];if(!Y)return;const C=Pt(Y.rule,o,i),F=Yt(t);A[r]={...Y,rule:F};const $={...o,[s]:{...f,sections:{...v,variants:A}}},{resolveType:Re,formValue:H}=Ct(F,$,i??void 0);ae(Re),q(H);try{await Ae.mutateAsync({blockKey:s,data:$[s]}),C&&C!==t&&await At(C,$),g?.()}catch(W){J.error(W instanceof Error?W.message:l("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}},Vn=t=>{at.current&&clearTimeout(at.current);const{selectedSectionIndex:s,sectionVariantIndex:o}=Ze.current;s!==null&&(at.current=setTimeout(()=>{const{rawSections:r,parsedSections:f,decofile:b,activePageKey:v,pageVariants:A,variantIndex:Y}=Ze.current;if(!v)return;const C=r[s],F=f[s];if(!C||!F?.isMultivariate)return;const $=nt(C,F);if(!$)return;const H=($.variants??[])[o]?.rule;if(Et(H,b,i)){const be=H?.__resolveType??"",Qe=b[be],rt=typeof Qe?.name=="string"?Qe.name:be,{__resolveType:pt,...lt}=t;Ae.mutate({blockKey:be,data:Rt(pt??"",lt,rt)},{onSuccess:()=>g?.(),onError:gt=>J.error(l("sectionsEditor.sectionsEditor.saveFailed",{error:gt.message}))});return}const W=$n($,o,t),Ke=[...r];Ke[s]=yt(C,F,W);const et=Mt(b,v,Ke,Y,A);Ae.mutate({blockKey:v,data:et},{onSuccess:()=>g?.(),onError:be=>J.error(l("sectionsEditor.sectionsEditor.saveFailed",{error:be.message}))})},gn))},po=t=>{qe(t);const s=t?zn(t,i):{__resolveType:Hn};Ne(t?s:{}),Vn(s)},go=t=>{const s=t;Ne(s);const o=Xe?{__resolveType:Xe,...s}:{...s};Vn(o)},ho=async t=>{jt();const{selectedSectionIndex:s,sectionVariantIndex:o,rawSections:r,parsedSections:f,decofile:b,activePageKey:v,pageVariants:A,variantIndex:Y}=Ze.current;if(s===null||!v)return;const C=r[s],F=f[s];if(!C||!F?.isMultivariate)return;const $=nt(C,F);if(!$)return;const Re=$.variants??[],H=Pt(Re[o]?.rule,b,i),W=Yt(t),Ke=$n($,o,W),et=[...r];et[s]=yt(C,F,Ke);const be=Mt(b,v,et,Y,A),Qe={...b,[v]:be},{resolveType:rt,formValue:pt}=Ct(W,Qe,i??void 0);qe(rt),Ne(pt);try{await Ae.mutateAsync({blockKey:v,data:be}),H&&H!==t&&await At(H,Qe),g?.()}catch(lt){J.error(lt instanceof Error?lt.message:l("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}};if(!Ce&&!We)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:l("sectionsEditor.sectionsEditor.noPageFound",{currentPath:x})});if(Ce&&!nn)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:l("sectionsEditor.sectionsEditor.globalBlockNotFound")});const mt=d!==null?He[d]??null:null,Nn=d!==null?z[d]:null,An=Nn&&mt?.isMultivariate?nt(Nn,mt):null,bt=An?In(An,ht):[],un=Math.min(Ve,Math.max(bt.length-1,0)),Ht=bt[un]??null,ft=mt?.isMultivariate===!0,Cn=d!==null&&mt!==null,Ut=Cn&&(ft||!!(rn&&ke)),vo=Ut&&!Ce&&mt?.isSavedBlock===!0,it=Ce||vo,bo=Ce?xn:mt?.label??"",So=Xe&&i?qt(Xe,i):null,dn=Ut&&(!Ce||ne.length>0)?Ce?[xn,...ne]:[We.name,mt.label,...ft&&Ht?[Ht.label]:[],...ne]:[],yo=O&&We?[We.name,"SEO",...De]:[],Gt=O?yo:it?dn.length>0?dn:[bo]:dn,xo=!O&&!Ce&&ft&&ne.length===0,Pn=()=>{if(!E)return;jt(),ze.current&&(clearTimeout(ze.current),ze.current=null);const t=u[E],s=ba(t.sections,z);if(!s)return;const o=Sa(s);Ae.mutate({blockKey:E,data:{...t,sections:s}},{onSuccess:()=>{K(o),P(null),N(null),T(null),L([]),q(null),ae(null)},onError:r=>J.error(l("sectionsEditor.sectionsEditor.saveFailed",{error:r.message}))})},mn=(t,s,o)=>{if(!E)return;jt(),ze.current&&(clearTimeout(ze.current),ze.current=null);const r=u[E],f=r.sections;if(!f||typeof f!="object"||Array.isArray(f))return;const b=f;if(!Array.isArray(b.variants))return;const v=t([...b.variants]);if(!v)return;const A=Aa(b,v),Y={...u,[E]:{...r,sections:A}};Ae.mutate({blockKey:E,data:Y[E]},{onSuccess:()=>{s?.(),o&&At(o,Y)},onError:C=>J.error(l("sectionsEditor.sectionsEditor.saveFailed",{error:C.message}))})},_o=t=>{Z(null),K(t),P(null),N(null),T(null),L([]);const s=Ge[t]?.rule,{resolveType:o,formValue:r}=Ct(s,u??{},i??void 0);ae(o),q(r),En(Ge.map(f=>({rule:f.rule})),t)},jo=(t,s)=>{if(t===s)return;let o=$e;$e===t?o=s:t<$e&&s>=$e?o=$e-1:t>$e&&s<=$e&&(o=$e+1),K(o);const r=Lt(Ge.map(f=>({rule:f.rule})),t,s);En(r,o),mn(f=>Lt(f,t,s))},Eo=t=>{const s=Ge[t]?.rule,o=Pt(s,u??{},i??void 0);mn(r=>r.length<=1?null:(r.splice(t,1),r),()=>{Ge.length-1===1?K(0):t<$e?K($e-1):t===$e&&K(Math.max(0,t-1)),P(null),N(null),T(null),L([]),q(null),ae(null)},o)},Ro=t=>{mn(s=>Ca(s,t),()=>{K(t+1),P(null),N(null),T(null),L([]),q(null),ae(null)})},wo=async(t,s)=>{jt(),ze.current&&(clearTimeout(ze.current),ze.current=null);const o=Ze.current.activePageKey,r=Ze.current.decofile;if(!o)return;const f=r[o],b=f.sections;if(!b||typeof b!="object"||Array.isArray(b))return;const v=b;if(!Array.isArray(v.variants))return;const A=[...v.variants],Y=A[t];if(!Y?.rule||typeof Y.rule!="object"){J.error(l("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const C=Y.rule,F=s.trim();It(!0);try{if(!F){if(!Et(C,r,i)){Z(null);return}const et=C.__resolveType??"";A[t]={...Y,rule:Un(C,r,i)};const be={...r,[o]:{...f,sections:{...v,variants:A}}};await Ae.mutateAsync({blockKey:o,data:be[o]}),await At(et,be),Z(null),g?.();return}const $=Gn(C,r,i);if(!$){J.error(l("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if($.blockKey){await Ae.mutateAsync({blockKey:$.blockKey,data:Rt($.resolveType,$.data,F)}),Z(null),g?.();return}const Re=fn(F),H=pn(Re,r);if(H){J.error(H);return}const W=Rt($.resolveType,$.data,F);let Ke=null;try{await Ae.mutateAsync({blockKey:Re,data:W}),Ke=Re,A[t]={...Y,rule:Yt(Re)},await Ae.mutateAsync({blockKey:o,data:{...f,sections:{...v,variants:A}}}),Ke=null}catch(et){throw Ke&&await en.mutateAsync({blockKey:Ke}).catch(()=>{}),et}Z(null),J.success(l("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:F})),g?.()}catch($){J.error($ instanceof Error?$.message:l("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{It(!1)}},ko=async(t,s)=>{jt(),ze.current&&(clearTimeout(ze.current),ze.current=null);const{selectedSectionIndex:o,rawSections:r,parsedSections:f,decofile:b,activePageKey:v,pageVariants:A,variantIndex:Y}=Ze.current;if(o===null||!v)return;const C=r[o],F=f[o];if(!C||!F?.isMultivariate)return;const $=nt(C,F);if(!$)return;const Re=$.variants??[],H=Re[t];if(!H?.rule||typeof H.rule!="object"){J.error(l("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const W=H.rule,Ke=s.trim();It(!0);const et=async be=>{const Qe={...$,variants:be},rt=[...r];rt[o]=yt(C,F,Qe);const pt=Mt(b,v,rt,Y,A);return await Ae.mutateAsync({blockKey:v,data:pt}),{...b,[v]:pt}};try{if(!Ke){if(!Et(W,b,i)){ie(null);return}const gt=W.__resolveType??"",Kn=[...Re];Kn[t]={...H,rule:Un(W,b,i)};const Ao=await et(Kn);await At(gt,Ao),ie(null),g?.();return}const be=Gn(W,b,i);if(!be){J.error(l("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(be.blockKey){await Ae.mutateAsync({blockKey:be.blockKey,data:Rt(be.resolveType,be.data,Ke)}),ie(null),g?.();return}const Qe=fn(Ke),rt=pn(Qe,b);if(rt){J.error(rt);return}const pt=Rt(be.resolveType,be.data,Ke);let lt=null;try{await Ae.mutateAsync({blockKey:Qe,data:pt}),lt=Qe;const gt=[...Re];gt[t]={...H,rule:Yt(Qe)},await et(gt),lt=null}catch(gt){throw lt&&await en.mutateAsync({blockKey:lt}).catch(()=>{}),gt}ie(null),J.success(l("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:Ke})),g?.()}catch(be){J.error(be instanceof Error?be.message:l("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{It(!1)}},Mn=()=>{_t()},To=t=>{X(t),ln({inner:t})},Do=t=>{he(t),ln({raw:t})},Vo=()=>{X(null),_([])},No=()=>oe(t=>t+1),Ln=t=>{if(O){if(t===0){Zt.flush(),je(!1),X(null),he(void 0),_([]),oe(o=>o+1),I?.();return}if(t===1){_([]),oe(o=>o+1);return}_(De.slice(0,t-1)),oe(o=>o+1);return}if(Ce){L(ne.slice(0,t)),B(o=>o+1);return}if(t===0){Mn();return}if(t===1){L([]),B(o=>o+1);return}if(ft&&t===2){L([]),B(o=>o+1);return}const s=ft?2:1;L(ne.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:it||Ut||O?n.jsxs("div",{className:Ue("border-b px-3 py-2.5",it&&"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:[Gt.length>1&&n.jsx("button",{type:"button",onClick:()=>Ln(Pa(Gt.length,{isMultivariateSectionTop:xo})),title:l("sectionsEditor.sectionsEditor.back"),"aria-label":l("sectionsEditor.sectionsEditor.back"),className:Ue("shrink-0 inline-flex size-6 items-center justify-center rounded-md transition-colors",it?"text-foreground/80 hover:bg-global-section/15":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:n.jsx(Ba,{className:"size-4"})}),!Ce&&Ft&&ut&&n.jsxs("button",{type:"button",onClick:Mn,title:l("sectionsEditor.sectionsEditor.editingInVariant",{variant:ut.label}),className:Ue("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",ua),children:[n.jsx(ks,{rule:Kt(ut.rule,u??{},i??void 0),matchers:zt}),n.jsx("span",{className:"max-w-[160px] truncate",children:ut.label})]}),n.jsx("nav",{"aria-label":l("sectionsEditor.sectionsEditor.editingBreadcrumb"),className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:Gt.map((t,s)=>{const o=s===Gt.length-1,r=da(t);return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[s>0&&n.jsx(Fa,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>Ln(s),title:r,className:Ue("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",o?it?"font-semibold text-global-section-fg dark:text-global-section-fg-dark":"font-medium text-foreground":it?"text-foreground/80":"text-muted-foreground",it?"hover:bg-global-section/15":"hover:bg-accent hover:text-accent-foreground"),children:r})]},`${r}-${s}`)})}),it&&n.jsxs(wt,{children:[n.jsx(kt,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(za,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),n.jsx(Tt,{side:"bottom",className:"max-w-[260px]",children:l("sectionsEditor.sectionsEditor.globalSectionTooltip")})]}),Cn&&!ft&&!mt?.isHidden&&E&&n.jsx(On,{onClick:()=>cn()})]}),it&&n.jsx("p",{className:"mt-1.5 py-1.5 pl-1 text-sm leading-snug text-foreground",children:l("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(ma,{pageKey:E,initialName:We.name,initialPath:We.path,onFieldChange:qs})}),n.jsxs(wt,{children:[n.jsx(kt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":l("sectionsEditor.sectionsEditor.editSeo"),className:"size-7 shrink-0",onClick:()=>je(!0),children:n.jsx(Ia,{size:14})})}),n.jsx(Tt,{side:"bottom",children:l("sectionsEditor.sectionsEditor.editSeo")})]}),n.jsxs(wt,{children:[n.jsx(kt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":l("sectionsEditor.sectionsEditor.viewJson"),className:"size-7 shrink-0",onClick:()=>M&&E?M(E):_e(!0),children:n.jsx(Oa,{size:14})})}),n.jsx(Tt,{side:"bottom",children:l("sectionsEditor.sectionsEditor.viewJson")})]}),n.jsx(On,{onClick:Pn})]})}),O?n.jsx(Qt,{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:Ot&&E?n.jsx(si,{rawSeo:on,innerSeo:_n,defaultResolveType:Fs,seoSchema:$s,activeResolveType:an,seoTypeOptions:Os,formResetKey:ve,siteDefaultSeo:zs,onBreadcrumbChange:_,onPersistRaw:Do,onInnerChange:To,onClearForm:Vo,onBumpFormKey:No}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:l("sectionsEditor.sectionsEditor.seoSchemaNotFound")})})})},"editor-seo"):Ut?n.jsxs(Qt,{viewportRef:Je,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[ft&&bt.length>0&&ne.length===0&&n.jsxs(n.Fragment,{children:[n.jsx(fa,{listKey:`${E??""}:${d??""}`,variants:bt.map((t,s)=>({index:s,label:t.label})),selectedIndex:un,onSelect:no,onRename:ie,onDuplicate:oo,onDelete:so,onRemoveAll:io,onReorder:ao,onAdd:()=>cn()}),ft&&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:l("sectionsEditor.sectionsEditor.variantRule")}),n.jsx(Xn,{currentRt:Xe??"",currentLabel:Jt(Ht?.rule,u??{},ht,i??void 0),currentGlobalKey:Pt(Ht?.rule,u??{},i??void 0)??void 0,matchers:zt,globals:Tn,onSelect:po,onSelectGlobal:ho,schema:So,formValue:ct,onChange:go,formKey:`${d??"none"}:${un}:${Xe??""}`,formWrapperClassName:"pt-1",meta:i??void 0,decofile:u,onSaveReferencedBlock:Bt,sandbox:$t})]})]}),n.jsx(Fn,{activeSchema:rn,formValue:ke,formResetKey:Le,onFormChange:Rn,onBreadcrumbChange:L,breadcrumbPath:ne,emptyMessage:l("sectionsEditor.sectionsEditor.noEditableFieldsForVariant"),meta:i,decofile:u,onSaveReferencedBlock:Bt,sandbox:$t,previewBaseUrl:G,onRequestAddSection:wn})]},"editor-section-form"):Ce?n.jsx(Qt,{viewportRef:Je,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx(Fn,{activeSchema:rn,formValue:ke,formResetKey:Le,onFormChange:Rn,onBreadcrumbChange:L,breadcrumbPath:ne,emptyMessage:l("sectionsEditor.sectionsEditor.noEditableFieldsForGlobalBlock"),meta:i,decofile:u,onSaveReferencedBlock:Bt,sandbox:$t,previewBaseUrl:G,onRequestAddSection:wn})},"editor-global-block"):n.jsxs(Qt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[Ft&&E&&n.jsx(Mi,{listKey:E,variants:Ge,activeIndex:$e,decofile:u??{},meta:i,matchers:zt,onSelect:_o,onReorder:jo,onRename:Z,onDuplicate:Ro,onDelete:Eo,onAdd:Pn}),Ft&&ue!==null&&n.jsxs("div",{className:Ue("px-3 border-b",re?"pt-3 pb-5 space-y-3":"py-2"),children:[n.jsxs("button",{type:"button",onClick:()=>me(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":re,children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:l("sectionsEditor.sectionsEditor.variantRule")}),re?n.jsx($a,{className:"size-3.5 shrink-0 text-muted-foreground"}):n.jsx(Ma,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),re&&n.jsx("div",{className:Ue("space-y-3",Vt&&"pointer-events-none opacity-50"),children:n.jsx(Xn,{currentRt:ue,currentLabel:Jt(ut?.rule,u??{},ht,i??void 0),currentGlobalKey:Pt(ut?.rule,u??{},i??void 0)??void 0,matchers:zt,globals:Tn,onSelect:uo,onSelectGlobal:fo,schema:co,formValue:Te,onChange:mo,formKey:`${$e}:${ue??""}`,formWrapperClassName:"space-y-3",meta:i??void 0,decofile:u,onSaveReferencedBlock:Bt,sandbox:$t})})]}),n.jsx("div",{className:"p-2 pt-3",children:n.jsx(wi,{listKey:`${E??""}-${$e}`,rawSections:z,sections:He,meta:i,selectedIndex:d,onSelect:Gs,onReorder:Ws,onDelete:Js,onDuplicate:Ys,onMakeReusable:Oe,onToggleHidden:Qs,onToggleLazy:Xs,onAddVariant:cn,onDetach:Zs,onAddSection:()=>pe(!0),canAddSection:lo})})]},"editor-section-list"),n.jsx(pa,{open:de!==null,onOpenChange:t=>{t||Oe(null)},defaultBlockId:de!==null?fn(He[de]?.label??""):"",isPending:Ae.isPending,onSubmit:ro}),G&&n.jsx(ri,{open:fe,onOpenChange:t=>{pe(t),t||(le.current=null)},meta:i,decofile:u,previewBaseUrl:G,onSelect:to}),xe&&E&&u&&n.jsx(ga,{open:xe,onOpenChange:_e,pageKey:E,decofile:u}),Me!==null&&n.jsx(Jn,{open:!0,initialName:Et(Ge[Me]?.rule,u??{},i??void 0)?Jt(Ge[Me]?.rule,u??{},ht,i??void 0):"",autoLabel:ht(Kt(Ge[Me]?.rule,u??{},i??void 0)),isPending:Vt,onSubmit:async t=>{await wo(Me,t)},onOpenChange:t=>{!t&&!Vt&&Z(null)}}),ye!==null&&n.jsx(Jn,{open:!0,initialName:Et(bt[ye]?.rule,u??{},i??void 0)?Jt(bt[ye]?.rule,u??{},ht,i??void 0):"",autoLabel:ht(Kt(bt[ye]?.rule,u??{},i??void 0)),isPending:Vt,onSubmit:async t=>{await ko(ye,t)},onOpenChange:t=>{!t&&!Vt&&ie(null)}})]})}export{wc as SectionsEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-RSxTuPLW.js","assets/index-nvrMUz1E.js","assets/index-DfOjcoHJ.css","assets/Tool02-BDxSz5gg.js","assets/CheckCircle-Dy9V1hp7.js","assets/Settings02-CYQxL5B6.js","assets/use-mcp-client-CCl1cIzz.js","assets/constants-_08zpzmT.js","assets/auth-BcY3uebC.js","assets/useInfiniteQuery-C1nxI4nl.js","assets/use-infinite-scroll-CeIk7UeB.js","assets/badge-CevueEaV.js","assets/input-DAGNsgKJ.js","assets/dropdown-menu-argXK-i4.js","assets/Check-C3meIEhS.js","assets/ChevronRight-CsIw29De.js","assets/DotsVertical-CeoSOE_3.js","assets/table-CiSPwnew.js","assets/toggle-group-vjpCmgL8.js","assets/use-view-mode-BCwOyDtc.js","assets/FilterLines-ChhF_hNb.js","assets/Globe01-C00u5ZAY.js","assets/SearchMd-BYFRLbwK.js","assets/dialog-BAZF9YiX.js","assets/AlertCircle-BqiO233W.js","assets/Download01-1vuZFsJp.js","assets/Upload01-Cb6gGPQE.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-CcRMrtVX.js","assets/Trash01-BTHEeIXL.js","assets/label-DtmHF7gn.js","assets/select-DD0TFY-4.js","assets/ChevronDown-TArXGrOQ.js","assets/ChevronUp-CQwDe8iY.js","assets/switch-Df8CGUfu.js","assets/textarea-Brv2MTVd.js","assets/ArrowLeft-DHXRr37o.js","assets/XCircle-DQIYJHof.js","assets/checkbox-NebQ_NWD.js","assets/Eye-CbxXrutx.js","assets/LinkExternal01-C5zRPX5d.js","assets/use-copy-BTR3tthM.js","assets/Copy01-DdadevxV.js","assets/Key01-Hp8x5aBN.js","assets/Plus-BLC2NLIh.js","assets/mcp-oauth-DJi01uux.js","assets/Play--y70fqAB.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c,d as n,f as m,j as t,k as f,r as l,bc as p}from"./index-nvrMUz1E.js";import{R as u}from"./require-capability-BHAsgjIu.js";import"./access-gate-a5GYm4En.js";import"./capability-load-error-CrgKOkLj.js";const g=l.lazy(()=>p(()=>import("./registry-layout-RSxTuPLW.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])));function h(){const e=c.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}=m(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{h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./use-infinite-scroll-CeIk7UeB.js";import{eR as i}from"./index-nvrMUz1E.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-CeIk7UeB.js";import{eR as u,bD as n}from"./index-nvrMUz1E.js";function a(e,r){return u({...e,enabled:!0,suspense:!0,throwOnError:n},s,r)}export{a as u};
|