decocms 4.262.0 → 4.262.1
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-ABVDbGAL.js → AlertCircle-Cy7oFTB3.js} +1 -1
- package/dist/client/assets/{AreaChart-D6oRaKDz.js → AreaChart-C2UbsuMp.js} +1 -1
- package/dist/client/assets/{ArrowLeft-Czvz3aRl.js → ArrowLeft-RGI7d94j.js} +1 -1
- package/dist/client/assets/{ArrowUp-DTAn91Yk.js → ArrowUp-BdmxjulG.js} +1 -1
- package/dist/client/assets/{Check-gRWVjUzZ.js → Check-CNkqGaOZ.js} +1 -1
- package/dist/client/assets/{CheckCircle-BkmaYNCP.js → CheckCircle-DWIJGe1F.js} +1 -1
- package/dist/client/assets/{ChevronDown-CxaLjh_R.js → ChevronDown-Byst6X-M.js} +1 -1
- package/dist/client/assets/{ChevronRight-CXqx2KrQ.js → ChevronRight-DbV0ExZ-.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-BitT8NCd.js → ChevronSelectorVertical-czYyo0Jc.js} +1 -1
- package/dist/client/assets/{ChevronUp-DmiMplG3.js → ChevronUp-B66SCMiE.js} +1 -1
- package/dist/client/assets/{Copy01-BfieAdQP.js → Copy01-Bp5_7w1Z.js} +1 -1
- package/dist/client/assets/{CreditCard01-CQey7L8M.js → CreditCard01-DrDWvbgg.js} +1 -1
- package/dist/client/assets/{DotsVertical-4yIS8kk7.js → DotsVertical-C87nJzBb.js} +1 -1
- package/dist/client/assets/{Download01-CxaHLMQQ.js → Download01-BLXNtOTp.js} +1 -1
- package/dist/client/assets/{Eye-CUqIajCp.js → Eye-BUiNEycU.js} +1 -1
- package/dist/client/assets/{FilterLines-DGnSQE6u.js → FilterLines-DKtt-38g.js} +1 -1
- package/dist/client/assets/{Globe01-CVlnm8Vf.js → Globe01-CVYKugot.js} +1 -1
- package/dist/client/assets/{Globe04-DBZTuhB3.js → Globe04-l1JQaeo7.js} +1 -1
- package/dist/client/assets/{HardDrive-CNK7GdOK.js → HardDrive-BCMDy7nW.js} +1 -1
- package/dist/client/assets/{Key01-C2W3DW4y.js → Key01-C1NwT2vF.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DyBmPgM5.js → LinkExternal01-BiOgKGoU.js} +1 -1
- package/dist/client/assets/{LockUnlocked01-wlnJ6_uX.js → LockUnlocked01-D9pofUfD.js} +1 -1
- package/dist/client/assets/{LogOut01-CGusEZda.js → LogOut01-CeH4FEXG.js} +1 -1
- package/dist/client/assets/{Monitor01-BvyNA2BM.js → Monitor01-CCNGy7_8.js} +1 -1
- package/dist/client/assets/{Palette-CN303p2L.js → Palette-uLW1Msrn.js} +1 -1
- package/dist/client/assets/{Play-BFMaYRsr.js → Play-CFBu1Uai.js} +1 -1
- package/dist/client/assets/{Plus-BkApqW-G.js → Plus-B4-MzaEX.js} +1 -1
- package/dist/client/assets/{SearchLg-Baunrsso.js → SearchLg-D6aWTAn0.js} +1 -1
- package/dist/client/assets/{SearchMd-CBK6moam.js → SearchMd-U7gvGopH.js} +1 -1
- package/dist/client/assets/{Settings02-DrTZcRX-.js → Settings02-l3zf5p3j.js} +1 -1
- package/dist/client/assets/{Share07-DF3lqrLo.js → Share07-CP247mq3.js} +1 -1
- package/dist/client/assets/{Shield01-Dg6xTPv5.js → Shield01-C0v0VO93.js} +1 -1
- package/dist/client/assets/{Stars01-ByjTQBTp.js → Stars01-CO_2V7xJ.js} +1 -1
- package/dist/client/assets/{Stars02-ByG4nYh5.js → Stars02-DtK_AoJb.js} +1 -1
- package/dist/client/assets/{Sun-tjcJB2I-.js → Sun-ChklYK1J.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CyR2nll6.js → SwitchHorizontal01-CNdB1W5l.js} +1 -1
- package/dist/client/assets/{Tool01-D8c2YHPK.js → Tool01-zNBJ_EjG.js} +1 -1
- package/dist/client/assets/{Tool02-Cq6gKq_1.js → Tool02-D_k-aAz5.js} +1 -1
- package/dist/client/assets/{Trash01-CUEOrI6U.js → Trash01-yLsryaeM.js} +1 -1
- package/dist/client/assets/{TrendUp01-79U0S1nj.js → TrendUp01-DJwgRCsf.js} +1 -1
- package/dist/client/assets/{Upload01-Bg3o5Ezk.js → Upload01-OIp6eUuv.js} +1 -1
- package/dist/client/assets/{User01-DqoV9NrH.js → User01-DYFCn4C3.js} +1 -1
- package/dist/client/assets/{UserSquare-BBgHEy7Q.js → UserSquare-VFt2LMJP.js} +1 -1
- package/dist/client/assets/{Users01-CT9PuIPP.js → Users01-BQgIXrcE.js} +1 -1
- package/dist/client/assets/{Users03-fdy2l_9w.js → Users03-Bjg_Hn3h.js} +1 -1
- package/dist/client/assets/{XCircle-C2RmScL8.js → XCircle-C87SboB2.js} +1 -1
- package/dist/client/assets/{XClose-BSL_lEYz.js → XClose-DoTQ_zQh.js} +1 -1
- package/dist/client/assets/{YAxis-BH3BNLDH.js → YAxis-BYqU4m40.js} +1 -1
- package/dist/client/assets/{Zap-Bzi7f43U.js → Zap-B1Got31Y.js} +1 -1
- package/dist/client/assets/{ZapSquare-B_HukLPl.js → ZapSquare-DpbONbNP.js} +1 -1
- package/dist/client/assets/{access-gate-VYHqUBjs.js → access-gate-OZSkx3BV.js} +1 -1
- package/dist/client/assets/{agent-icon-91AFosFp.js → agent-icon-D0Q6jvST.js} +1 -1
- package/dist/client/assets/{agents-list-D6K9_gMT.js → agents-list-CL4GpFiH.js} +1 -1
- package/dist/client/assets/{ai-providers-BYOejRIn.js → ai-providers-LZwS6oZI.js} +1 -1
- package/dist/client/assets/{alert-CezEPzcc.js → alert-BDEMK75_.js} +1 -1
- package/dist/client/assets/{alert-dialog-CsZOKQYF.js → alert-dialog-l8KXVd-s.js} +1 -1
- package/dist/client/assets/{api-keys-CRk0ZLHU.js → api-keys-kmavSP_L.js} +1 -1
- package/dist/client/assets/{app-editor-9HBBVb7F.js → app-editor-A8ygRBfV.js} +1 -1
- package/dist/client/assets/{auth-BGxGKus-.js → auth-CDQyXdg-.js} +1 -1
- package/dist/client/assets/{auth-catchall-5kzncZUR.js → auth-catchall-D2H5RV6_.js} +1 -1
- package/dist/client/assets/{auth-entry-BWubb3o3.js → auth-entry-SaIvb2mp.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CDnSpGGL.js → auth-split-layout-Cf8oT9pr.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BGlnxyje.js → authenticate-and-persist-oauth-B35eKag7.js} +1 -1
- package/dist/client/assets/{automation-list-row-CYFF9KHH.js → automation-list-row-DU1U5Pw5.js} +1 -1
- package/dist/client/assets/{automation-runs-DRoOLpF-.js → automation-runs-C7v_2QHl.js} +1 -1
- package/dist/client/assets/{automations-C_CvJNFW.js → automations-DZGq3n4U.js} +1 -1
- package/dist/client/assets/{avatar-BMdSmPe9.js → avatar-CFcyikvM.js} +1 -1
- package/dist/client/assets/{badge-CMqOdBs6.js → badge-D_w0Pr7X.js} +1 -1
- package/dist/client/assets/{block-document-DtNY8Riv.js → block-document-2G7w5An2.js} +1 -1
- package/dist/client/assets/{buckets-BP3CnX5e.js → buckets-Cb1_EWOC.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-DGCcwCY-.js → bulk-category-panel-AgARsoHn.js} +1 -1
- package/dist/client/assets/{capability-load-error-CfkA0f1M.js → capability-load-error-CkuubVa8.js} +1 -1
- package/dist/client/assets/{cards-I9TyJ1NQ.js → cards-3GgICG-3.js} +1 -1
- package/dist/client/assets/{category-editor-LzAqRzcY.js → category-editor-AM5exBb3.js} +1 -1
- package/dist/client/assets/{chart-4xsDl-pM.js → chart-Bhs-unQi.js} +1 -1
- package/dist/client/assets/{chat-context-DBbPbZpn.js → chat-context-SATa7jvn.js} +1 -1
- package/dist/client/assets/{checkbox-D0HGV5ZN.js → checkbox-DMHN5LX5.js} +1 -1
- package/dist/client/assets/{choose-editor-CiQcW4fV.js → choose-editor-DCLtr_qz.js} +1 -1
- package/dist/client/assets/{cli-auth-success-C3r9D1-L.js → cli-auth-success-BQiViHJM.js} +1 -1
- package/dist/client/assets/{collection-detail-CLr02VTq.js → collection-detail-DGpHxFT3.js} +1 -1
- package/dist/client/assets/{collection-display-button-DJu2PgnG.js → collection-display-button-8bYE3nvL.js} +1 -1
- package/dist/client/assets/{collection-search-DmXTS1wh.js → collection-search-CLZQG-b8.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-ChrU8SON.js → collection-table-wrapper-BzqThiKl.js} +1 -1
- package/dist/client/assets/{collection-tabs-DyJOcIPb.js → collection-tabs-BzFtasQi.js} +1 -1
- package/dist/client/assets/{command-CyZf8T6s.js → command-FE9hLuuD.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-BNoP6sJp.js → commerce-onboarding-DOxXy-7n.js} +1 -1
- package/dist/client/assets/{connect-BalhkMc8.js → connect-Cb-KcPTk.js} +1 -1
- package/dist/client/assets/{connection-CWFs0CLd.js → connection-CbVj01Yy.js} +1 -1
- package/dist/client/assets/{connection-card-B68381K1.js → connection-card-B4t2xHvz.js} +1 -1
- package/dist/client/assets/{connection-detail-B23PBWIl.js → connection-detail-BCNEtIiR.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BCyWIq56.js → connection-form-helpers-CGhCLTPa.js} +1 -1
- package/dist/client/assets/{connections-c1YWH_Z7.js → connections-q3Fkssb4.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-BsnzmFKp.js → decopilot-sse-pool-Da0p4GM_.js} +1 -1
- package/dist/client/assets/{dialog-B3BgSy1E.js → dialog-Op5qOw2T.js} +1 -1
- package/dist/client/assets/{domain-settings-BbFLbfvY.js → domain-settings-CDJLL0kD.js} +1 -1
- package/dist/client/assets/{drawer-K2q1JEh_.js → drawer-oaFjopWn.js} +1 -1
- package/dist/client/assets/{dropdown-menu-ChDb5LR3.js → dropdown-menu-CYKYKuMw.js} +1 -1
- package/dist/client/assets/{empty-state-R2vOK1Fn.js → empty-state-uJYsGh0B.js} +1 -1
- package/dist/client/assets/{extract-connection-data-B3xVsZiJ.js → extract-connection-data-B1iFAdzR.js} +1 -1
- package/dist/client/assets/{file-explorer-B1lV8qOZ.js → file-explorer-CeazzhKs.js} +1 -1
- package/dist/client/assets/{file-type-icon-CZEUEj2R.js → file-type-icon-DjP05ubV.js} +1 -1
- package/dist/client/assets/{form-Dzy6nSw8.js → form-CII0aUGc.js} +1 -1
- package/dist/client/assets/{general-DscUYOsN.js → general-Bg85EcMC.js} +1 -1
- package/dist/client/assets/{github-repo-picker-C7G-WATj.js → github-repo-picker-Brqes-F9.js} +1 -1
- package/dist/client/assets/{hooks-7dGYNKEQ.js → hooks-Cr3l3hl_.js} +1 -1
- package/dist/client/assets/{index-BjKd7PJ-.js → index-24pj1g_w.js} +1 -1
- package/dist/client/assets/{index-DFLgFxCU.js → index-B2rgNF_L.js} +3 -3
- package/dist/client/assets/{index-U8cc0tUu.js → index-B7to8ZlC.js} +1 -1
- package/dist/client/assets/{index-CBNS9FEz.js → index-BK1yTP-D.js} +1 -1
- package/dist/client/assets/{index-CvGGSTHL.js → index-BL-G2F4_.js} +1 -1
- package/dist/client/assets/{index-DDPhpQM1.js → index-BdcsAInY.js} +1 -1
- package/dist/client/assets/{index-DqQHVRPd.js → index-CDX_Xyys.js} +62 -62
- package/dist/client/assets/{index-GUXFC-Kq.js → index-CgkKX_CI.js} +1 -1
- package/dist/client/assets/{index-BQcDBjoJ.js → index-CiPtkCFD.js} +1 -1
- package/dist/client/assets/{index-DdFfps23.js → index-D7Nhv_dL.js} +1 -1
- package/dist/client/assets/{index-redirect-D5laM4jp.js → index-redirect-BeuCug26.js} +1 -1
- package/dist/client/assets/{infra-billing-Ci11c3kA.js → infra-billing-Xj06_tek.js} +1 -1
- package/dist/client/assets/{input-IpTrNNJK.js → input-BPpF5ECy.js} +1 -1
- package/dist/client/assets/{integration-icon-CdqbSkdI.js → integration-icon-Cl4k3QTh.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-DOJSpcY0.js → invite-member-dialog-BizNO7Nd.js} +1 -1
- package/dist/client/assets/{label-t9Mx8W7B.js → label-CmXmzEmC.js} +1 -1
- package/dist/client/assets/{layout-cp2U8KCy.js → layout-Dbmq3Njn.js} +1 -1
- package/dist/client/assets/{login-Cs-NPQLK.js → login-Cv3wNLt0.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BAVqpDLL.js → mcp-oauth-Xanau987.js} +1 -1
- package/dist/client/assets/{members-XPRZhxBP.js → members-DxeVFUYQ.js} +1 -1
- package/dist/client/assets/{monaco-editor-CoOthwEG.js → monaco-editor-DN3AH1iE.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BywHtlYm.js → monitoring-stats-row-Df3XYXNj.js} +1 -1
- package/dist/client/assets/{multi-select-TZy3zGbR.js → multi-select-BeTnZ2xD.js} +1 -1
- package/dist/client/assets/{oauth-callback-DeVFTqWl.js → oauth-callback-DkzyEi6t.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-aD-iPyGS.js → oauth-callback-ai-provider-DbvPDzD6.js} +1 -1
- package/dist/client/assets/{onboarding-C5JSuGET.js → onboarding-CEy4P_cH.js} +1 -1
- package/dist/client/assets/{org-layout-DNM13eNd.js → org-layout-Z2uRYrgd.js} +1 -1
- package/dist/client/assets/{organization-choice-CLoFhxuu.js → organization-choice-CB9P8YDB.js} +1 -1
- package/dist/client/assets/{orgs-DksvPTVm.js → orgs-t3UA34-b.js} +1 -1
- package/dist/client/assets/page-seo-form-D5TTpAmx.js +1 -0
- package/dist/client/assets/{popover-C6jmGFzO.js → popover-Bvnw1y4c.js} +1 -1
- package/dist/client/assets/post-calendar-1N_tNaTJ.js +1 -0
- package/dist/client/assets/{post-editor-Hcscbf0y.js → post-editor--KeI_K-w.js} +1 -1
- package/dist/client/assets/{primitives-ikn_PB-a.js → primitives-DFaAUeZk.js} +1 -1
- package/dist/client/assets/{profile-DDmTSziA.js → profile-C-qO1y_v.js} +1 -1
- package/dist/client/assets/{project-app-view-acsUabdI.js → project-app-view-UxMFlWrH.js} +1 -1
- package/dist/client/assets/record-editor-CX84Ccei.js +1 -0
- package/dist/client/assets/redirect-editor-CcnaMZh3.js +1 -0
- package/dist/client/assets/registry-ENV4xi4Z.js +2 -0
- package/dist/client/assets/{registry-layout-CDl3iJBt.js → registry-layout-Dd_ggH9_.js} +1 -1
- package/dist/client/assets/{reports-C___5ce4.js → reports-DzDHnYig.js} +1 -1
- package/dist/client/assets/{require-capability-D2wSKKwc.js → require-capability-BX3M2RHM.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BrD167u4.js → required-auth-layout-B6v0ZQLQ.js} +1 -1
- package/dist/client/assets/{reset-password-D2NnUzdd.js → reset-password-B4SL0AST.js} +1 -1
- package/dist/client/assets/{roles-B4NJB0tE.js → roles-ZMSAX5Zw.js} +1 -1
- package/dist/client/assets/{search-input-C-ATyqRd.js → search-input-X56koyR4.js} +1 -1
- package/dist/client/assets/{secrets-rhwjaM1i.js → secrets-I3q1Xxgo.js} +1 -1
- package/dist/client/assets/sections-editor-jyFAl9pA.js +2 -0
- package/dist/client/assets/{select-D3GT34Gy.js → select-BWvOvzmC.js} +1 -1
- package/dist/client/assets/{select-model-DLyXkx-M.js → select-model-B-b5n8_s.js} +1 -1
- package/dist/client/assets/{self-tool-result-Dbzgy21X.js → self-tool-result-CjXlsWjJ.js} +1 -1
- package/dist/client/assets/seo-editor-DUAJQNi4.js +1 -0
- package/dist/client/assets/{settings-layout-BdeXoCae.js → settings-layout-JzVahV2c.js} +1 -1
- package/dist/client/assets/{shell-controls-CeUm2dQE.js → shell-controls-Z94-asG3.js} +1 -1
- package/dist/client/assets/{shell-layout-B0a9rW5l.js → shell-layout-DcVym81y.js} +1 -1
- package/dist/client/assets/{spinner-BE2VunTg.js → spinner-CkVRKT_-.js} +1 -1
- package/dist/client/assets/{sprints-DR79G_pJ.js → sprints-BaDROK3s.js} +1 -1
- package/dist/client/assets/{sso-BueWp5EM.js → sso-DrMKFOcs.js} +1 -1
- package/dist/client/assets/{store-BxXcJ3KL.js → store-DCGaYPOy.js} +1 -1
- package/dist/client/assets/store-registry-CVXa99TP.js +2 -0
- package/dist/client/assets/{switch-D04_64ue.js → switch-CeRyi-LW.js} +1 -1
- package/dist/client/assets/{synced-repos-BYyRlHRE.js → synced-repos-BUpJOYiU.js} +1 -1
- package/dist/client/assets/{tab-id-RDG920WU.js → tab-id-azbcA0JR.js} +1 -1
- package/dist/client/assets/{table-DMGTpflk.js → table-DAE077oe.js} +1 -1
- package/dist/client/assets/{tabs-BxNS49pi.js → tabs-CNrUbmDi.js} +1 -1
- package/dist/client/assets/{task-key-BCXNJhsj.js → task-key-CFQR7KAm.js} +1 -1
- package/dist/client/assets/{tasks-B-dV-IdA.js → tasks-DaHjgljY.js} +1 -1
- package/dist/client/assets/{textarea-De5kGfMV.js → textarea-BgwH6v8Q.js} +1 -1
- package/dist/client/assets/{toggle-group-BguaYxUf.js → toggle-group-D_O2Qbfw.js} +1 -1
- package/dist/client/assets/{toolbar-DdeNd8iv.js → toolbar-75YEKXXs.js} +1 -1
- package/dist/client/assets/{track-BYygayxr.js → track-IYxcRPnO.js} +1 -1
- package/dist/client/assets/{types-Cxk-Dj5d.js → types-DJhBysZs.js} +1 -1
- package/dist/client/assets/{use-ai-providers-absaVCyA.js → use-ai-providers-Dqtp4F0g.js} +1 -1
- package/dist/client/assets/{use-api-keys-CyWHfa0t.js → use-api-keys-CyzeDxts.js} +1 -1
- package/dist/client/assets/{use-automations-CZcwk3Fp.js → use-automations-BsglmV9J.js} +1 -1
- package/dist/client/assets/{use-autosave-CDnluVTm.js → use-autosave-AI7FCUa9.js} +1 -1
- package/dist/client/assets/{use-clock-tick-WpmHCHEZ.js → use-clock-tick-OV71bnSy.js} +1 -1
- package/dist/client/assets/{use-commerce-diagnostic-lCvKTYvd.js → use-commerce-diagnostic-B2U0AK03.js} +1 -1
- package/dist/client/assets/{use-connection-Drw6RY05.js → use-connection-CGVdj1Na.js} +1 -1
- package/dist/client/assets/{use-copy-B6rwWnEN.js → use-copy-y6mX7lY_.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DXeNkEQN.js → use-create-virtual-mcp-HmmIlBNF.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Bkaa4A1_.js → use-debounced-autosave-ReRlcVxL.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DX2cZrkJ.js → use-debounced-value-ieGzCUZ6.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DHuBsDwY.js → use-decopilot-events-CbnjcNzx.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CrrQWHjb.js → use-delete-connection-TC1ho7EQ.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-D88Ea8LF.js → use-deployment-admin-3PMX8zH_.js} +1 -1
- package/dist/client/assets/{use-file-configs-MQL8A6Fc.js → use-file-configs-CzfvO2kW.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BmJZHdH2.js → use-infinite-scroll-CUCn3G4l.js} +1 -1
- package/dist/client/assets/{use-join-requests-IfsObcAJ.js → use-join-requests-AZZUE1sS.js} +1 -1
- package/dist/client/assets/{use-mcp-client-szamxkrm.js → use-mcp-client-CsRBcSqu.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CZA8WC01.js → use-mcp-tools-CsWoUK82.js} +1 -1
- package/dist/client/assets/{use-members-BlLDaSKR.js → use-members-DdluiPyH.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BO59LqVt.js → use-navigate-to-agent-CaSAdQKa.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CPyocNQZ.js → use-org-auth-client-B_6Gte_2.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Jsq57B-a.js → use-org-repo-syncs-BTVrkbli.js} +1 -1
- package/dist/client/assets/{use-org-sso-BoSdBEDF.js → use-org-sso-DIeURWQa.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DZD48Zvp.js → use-organization-roles-DFdg9ZWC.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CB-cgZ4Y.js → use-organization-settings-zPkeLKV0.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Dig8X3XA.js → use-registry-connections-DowUtdFx.js} +1 -1
- package/dist/client/assets/{use-secrets-BPBzbTcV.js → use-secrets-DkbwudpY.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CkZqNcbq.js → use-section-preview-base-CRYUuuSf.js} +1 -1
- package/dist/client/assets/{use-status-sounds-tNuSXFWZ.js → use-status-sounds-CuHmWHwm.js} +1 -1
- package/dist/client/assets/{use-tags-CHQXpN86.js → use-tags-DnFIHf8g.js} +1 -1
- package/dist/client/assets/{use-view-mode-BxBV7mFe.js → use-view-mode-BsrSwXQQ.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CQAgyKDG.js → use-virtual-mcp-BdYI7s9_.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CjkJeu2b.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-B9AWsADw.js +1 -0
- package/dist/client/assets/{users-mN0YVvHz.js → users-Mb2XfZY-.js} +1 -1
- package/dist/client/assets/{variant-calendar-Du0CJkSC.js → variant-calendar-C6ImwSuF.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Dq4uzbcn.js → view-mode-toggle-Bm9nOdK2.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/page-seo-form-fdl02Xfy.js +0 -1
- package/dist/client/assets/post-calendar-CL8Hj3K1.js +0 -1
- package/dist/client/assets/record-editor-2DQGlFKO.js +0 -1
- package/dist/client/assets/redirect-editor-B7xa3Qe7.js +0 -1
- package/dist/client/assets/registry-Dcgw4MLr.js +0 -2
- package/dist/client/assets/sections-editor-CjqplL5A.js +0 -2
- package/dist/client/assets/seo-editor-CuX_RUT2.js +0 -1
- package/dist/client/assets/store-registry-KmnxZDMr.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BNOQmJWR.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BV_kPwH6.js +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as We,b as ut,r as T,n as ze,j as n,aC as Zn,ab as _t,a8 as jt,B as Ze,a9 as Et,k as es,p as Ko,t as Y,K as Fo}from"./index-DFLgFxCU.js";import{b as Io}from"./chat-context-DBbPbZpn.js";import{aw as ts,ax as Oo,ay as $o,az as zo,aA as Ho,ab as ns,ac as Xt,aB as ss,aC as os,ad as as,ae as rs,aD as is,aE as Uo,al as ls,am as cs,aF as Go,aG as qo,aH as us,P as Wo,af as ds,ag as Bt,aj as ms,ak as fs,ah as ps,ar as gs,aI as Jo,aJ as Lt,aK as hs,aL as Yo,S as vs,aM as ct,H as bs,aN as Qo,aO as Xo,aP as Zo,aQ as ea,F as ta,G as na,aR as sa,aS as oa,aT as aa,aU as ra,ap as qt,aV as Wt,aW as ia,aX as xt,aY as Ct,aZ as la,a_ as ca,a$ as st,b0 as Kn,b1 as ua,b2 as At,b3 as Jt,b4 as da,b5 as fn,b6 as ma,b7 as Tt,b8 as fa,b9 as pa,ba as ga,bb as ha,bc as va,bd as yt,be as ba,bf as Sa,bg as xa,J as ya,bh as Fn,bi as Mt,bj as In,bk as On,bl as _a,bm as ja,bn as Ea,bo as Ra,bp as pn,bq as $n,br as zn,bs as Nt,bt as Yt,bu as Hn,bv as wa,bw as gn,bx as ka,by as Ta,bz as Na,bA as Va,bB as Da}from"./index-DqQHVRPd.js";import{t as Pa}from"./ChevronDown-CxaLjh_R.js";import{ah as vn,x as Ca,V as Ss,G as Aa,w as xs,ao as Ma,r as Ba}from"./agent-icon-91AFosFp.js";import{i as ys}from"./ChevronRight-CXqx2KrQ.js";import{n as La}from"./ChevronUp-DmiMplG3.js";import{i as Ka}from"./Globe01-CVlnm8Vf.js";import{B as Qt}from"./automation-runs-DRoOLpF-.js";import{b as Fa,h as Ia,a as Oa,c as $a,d as za,e as Ha}from"./dialog-B3BgSy1E.js";import{I as Ua}from"./input-IpTrNNJK.js";import{a as _s}from"./Copy01-BfieAdQP.js";import{i as Ga}from"./Settings02-DrTZcRX-.js";import{s as qa}from"./Eye-CUqIajCp.js";import{s as js}from"./TrendUp01-79U0S1nj.js";import{s as bn}from"./Plus-BkApqW-G.js";import{s as Es}from"./Trash01-CUEOrI6U.js";import{i as Wa}from"./Zap-Bzi7f43U.js";import{D as Rs,a as bt,c as ws,b as ks,i as Ja}from"./dropdown-menu-ChDb5LR3.js";import{S as Ya,r as Un,u as Qa,d as Xa,a as Za,i as er,f as tr,P as nr,b as sr}from"./page-seo-form-fdl02Xfy.js";import{b as or}from"./Tool01-D8c2YHPK.js";import{u as ar,A as rr}from"./use-section-preview-base-CkZqNcbq.js";import"./tab-id-RDG920WU.js";import"./Check-gRWVjUzZ.js";import"./Download01-CxaHLMQQ.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-7dGYNKEQ.js";import"./use-mcp-client-szamxkrm.js";import"./constants-_08zpzmT.js";import"./auth-BGxGKus-.js";import"./decopilot-sse-pool-BsnzmFKp.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-CQAgyKDG.js";import"./use-ai-providers-absaVCyA.js";import"./use-decopilot-events-DHuBsDwY.js";import"./use-organization-settings-CB-cgZ4Y.js";import"./ArrowUp-DTAn91Yk.js";import"./spinner-BE2VunTg.js";import"./drawer-K2q1JEh_.js";import"./collection-search-DmXTS1wh.js";import"./SearchMd-CBK6moam.js";import"./chart-4xsDl-pM.js";import"./index-DDPhpQM1.js";import"./shell-layout-B0a9rW5l.js";import"./avatar-BMdSmPe9.js";import"./User01-DqoV9NrH.js";import"./Users03-fdy2l_9w.js";import"./SearchLg-Baunrsso.js";import"./Stars02-ByG4nYh5.js";import"./XClose-BSL_lEYz.js";import"./CheckCircle-BkmaYNCP.js";import"./FilterLines-DGnSQE6u.js";import"./Monitor01-BvyNA2BM.js";import"./required-auth-layout-BrD167u4.js";import"./use-org-sso-BoSdBEDF.js";import"./XCircle-C2RmScL8.js";import"./Upload01-Bg3o5Ezk.js";import"./AlertCircle-ABVDbGAL.js";import"./form-Dzy6nSw8.js";import"./label-t9Mx8W7B.js";import"./select-D3GT34Gy.js";import"./UserSquare-BBgHEy7Q.js";import"./ArrowLeft-Czvz3aRl.js";import"./tabs-BxNS49pi.js";import"./Tool02-Cq6gKq_1.js";import"./toggle-group-BguaYxUf.js";import"./use-commerce-diagnostic-lCvKTYvd.js";import"./popover-C6jmGFzO.js";import"./self-tool-result-Dbzgy21X.js";import"./alert-dialog-CsZOKQYF.js";import"./integration-icon-CdqbSkdI.js";import"./extract-connection-data-B3xVsZiJ.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-DX2cZrkJ.js";import"./LinkExternal01-DyBmPgM5.js";import"./authenticate-and-persist-oauth-BGlnxyje.js";import"./mcp-oauth-BAVqpDLL.js";import"./track-BYygayxr.js";import"./toolbar-DdeNd8iv.js";import"./github-repo-picker-C7G-WATj.js";import"./use-connection-Drw6RY05.js";import"./LockUnlocked01-wlnJ6_uX.js";import"./use-mcp-tools-CZA8WC01.js";import"./use-navigate-to-agent-BO59LqVt.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./agent-capabilities-C4tLW0Za.js";import"./connection-card-B68381K1.js";import"./use-registry-connections-Dig8X3XA.js";import"./useInfiniteQuery-BNOQmJWR.js";import"./use-infinite-scroll-BmJZHdH2.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-De5kGfMV.js";import"./connection-form-helpers-BCyWIq56.js";import"./collection-tabs-DyJOcIPb.js";import"./badge-CMqOdBs6.js";import"./useSuspenseInfiniteQuery-BV_kPwH6.js";import"./command-CyZf8T6s.js";import"./index-DdFfps23.js";import"./use-clock-tick-WpmHCHEZ.js";import"./DotsVertical-4yIS8kk7.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./select-model-DLyXkx-M.js";import"./checkbox-D0HGV5ZN.js";import"./ChevronSelectorVertical-BitT8NCd.js";import"./Key01-C2W3DW4y.js";import"./ai-providers-logos-DD3qZ33J.js";import"./Stars01-ByjTQBTp.js";import"./cards-I9TyJ1NQ.js";import"./Share07-DF3lqrLo.js";import"./Palette-CN303p2L.js";import"./file-type-icon-CZEUEj2R.js";import"./question-004-sINsf4GQ.js";import"./use-members-BlLDaSKR.js";import"./use-org-auth-client-CPyocNQZ.js";import"./use-status-sounds-tNuSXFWZ.js";import"./empty-state-R2vOK1Fn.js";import"./ZapSquare-B_HukLPl.js";import"./types-Cxk-Dj5d.js";import"./use-file-configs-MQL8A6Fc.js";import"./monaco-editor-CoOthwEG.js";import"./pt-BR-CLy76QW2.js";import"./switch-D04_64ue.js";import"./Play-BFMaYRsr.js";import"./use-debounced-autosave-Bkaa4A1_.js";import"./search-input-C-ATyqRd.js";import"./index-GUXFC-Kq.js";import"./Users01-CT9PuIPP.js";import"./use-secrets-BPBzbTcV.js";import"./AreaChart-D6oRaKDz.js";import"./task-key-BCXNJhsj.js";import"./sprints-DR79G_pJ.js";import"./use-copy-B6rwWnEN.js";import"./SwitchHorizontal01-CyR2nll6.js";import"./use-tags-CHQXpN86.js";import"./get-initials-D-f_fDFw.js";import"./use-automations-CZcwk3Fp.js";import"./automation-list-row-CYFF9KHH.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-Jsq57B-a.js";import"./CreditCard01-CQey7L8M.js";import"./Globe04-DBZTuhB3.js";import"./HardDrive-CNK7GdOK.js";import"./LogOut01-CGusEZda.js";import"./Sun-tjcJB2I-.js";import"./Shield01-Dg6xTPv5.js";import"./table-DMGTpflk.js";function ir(m){return m.schema?.definitions??m.schema?.$defs??{}}function Ts(m,e){const a=ir(e),l=a[btoa(m)];if(!l)return[];const d=[l];if(Array.isArray(l.allOf)){const h=l.allOf.find(b=>typeof b.$ref=="string")?.$ref;if(typeof h=="string"){const b=a[h.replace("#/definitions/","")];b&&d.push(b)}}return d}function lr(m,e){for(const a of Ts(m,e)){const l=typeof a.image=="string"?a.image:void 0;if(l?.includes("{{{"))return l}}function cr(m,e){if(!e)return;const a=ts(m);if(!a)return;const l=lr(a.resolveType,e);if(!l)return;const d=Oo(l,a.data);if(d)return $o(d)}const ur={escape:Ho};function dr(m,e){for(const a of Ts(m,e)){const l=typeof a.title=="string"?a.title:void 0;if(l?.includes("{{"))return l}}function mr(m,e){if(!e)return;const a=ts(m);if(a)try{const l=dr(a.resolveType,e);return l&&zo.render(l,a.data,{},ur).trim()||void 0}catch{return}}const fr="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",pr="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 Gn(m){return Array.from({length:m},(e,a)=>({id:crypto.randomUUID(),index:a}))}function Ns(m){return m.map((e,a)=>({...e,index:a}))}function gr(m,e){if(e===m.length)return m;if(e<m.length)return Ns(m.slice(0,e));const a=Array.from({length:e-m.length},(l,d)=>({id:crypto.randomUUID(),index:m.length+d}));return[...m,...a]}function Vs(m){const e=We.c(25),{section:a,raw:l,meta:d}=m,h=a.isSavedBlock===!0,b=a.isMultivariate===!0;let p;e[0]!==d||e[1]!==l?(p=l&&d?cr(l,d):void 0,e[0]=d,e[1]=l,e[2]=p):p=e[2];const v=p;let f;e[3]!==d||e[4]!==b||e[5]!==l||e[6]!==h?(f=l&&d&&!h&&!b?mr(l,d):void 0,e[3]=d,e[4]=b,e[5]=l,e[6]=h,e[7]=f):f=e[7];const R=f;let V;e[8]===Symbol.for("react.memo_cache_sentinel")?(V=n.jsx(Ca,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[8]=V):V=e[8];let D;e[9]!==v?(D=v&&n.jsx("img",{src:v,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),e[9]=v,e[10]=D):D=e[10];let j;e[11]!==b||e[12]!==h?(j=h?{color:Wo}:b?{color:"oklch(0.65 0.15 160)"}:void 0,e[11]=b,e[12]=h,e[13]=j):j=e[13];let i;e[14]!==j?(i=n.jsx(vn,{className:"h-4 w-4 shrink-0",style:j}),e[14]=j,e[15]=i):i=e[15];const x=a.isHidden&&"line-through opacity-50";let E;e[16]!==x?(E=ze("min-w-0 flex-1 truncate text-sm font-medium",x),e[16]=x,e[17]=E):E=e[17];const c=R??a.label;let w;e[18]!==E||e[19]!==c?(w=n.jsx("span",{className:E,children:c}),e[18]=E,e[19]=c,e[20]=w):w=e[20];let r;return e[21]!==w||e[22]!==D||e[23]!==i?(r=n.jsxs(n.Fragment,{children:[V,D,i,w]}),e[21]=w,e[22]=D,e[23]=i,e[24]=r):r=e[24],r}const hr="w-7 ml-0 opacity-100 [transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]",vr="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]",br="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 ze("h-7 shrink-0 overflow-hidden",e?hr:m?br:vr)}function Ds(m,e){const a=m.isSavedBlock===!0,l=m.isMultivariate===!0;return ze("group flex select-none items-center gap-2 rounded-md px-2 py-2.5",e?"bg-accent text-accent-foreground":a?fr:l?us:"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function Sr(m){const e=We.c(82),{section:a,raw:l,meta:d,sortableId:h,selected:b,onSelect:p,onDelete:v,onDuplicate:f,onMakeReusable:R,onToggleHidden:V,onToggleLazy:D,onAddVariant:j,onDetach:i}=m,x=ut(),E=l?is(l.__resolveType??""):!1,c=a.isHidden===!0,w=E||c;let r;e[0]!==a?(r=Uo(a),e[0]=a,e[1]=r):r=e[1];const B=r;let I;e[2]!==h?(I={id:h,animateLayoutChanges:Er},e[2]=h,e[3]=I):I=e[3];const{attributes:X,listeners:K,setNodeRef:g,transform:L,isDragging:ke}=ls(I);let C;e[4]!==L?(C=cs.Transform.toString(L?{...L,x:0}:null),e[4]=L,e[5]=C):C=e[5];const te=ke?0:void 0;let P;e[6]!==C||e[7]!==te?(P={transform:C,opacity:te},e[6]=C,e[7]=te,e[8]=P):P=e[8];const ne=P;let O;e[9]!==a?(O=Go(a),e[9]=a,e[10]=O):O=e[10];const Ae=O,xe="button",Te=0;let W;e[11]!==p?(W=k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),p())},e[11]=p,e[12]=W):W=e[12];const de=ke?"cursor-grabbing":"cursor-pointer";let re;e[13]!==a||e[14]!==b||e[15]!==de?(re=ze("touch-none transition-colors",de,Ds(a,b)),e[13]=a,e[14]=b,e[15]=de,e[16]=re):re=e[16];let se;e[17]!==d||e[18]!==l||e[19]!==a?(se=n.jsx(Vs,{section:a,raw:l,meta:d}),e[17]=d,e[18]=l,e[19]=a,e[20]=se):se=e[20];const F=!a.isMultivariate&&n.jsxs(_t,{children:[n.jsx(jt,{asChild:!0,children:n.jsx(Ze,{type:"button",variant:"ghost",size:"icon","aria-label":x(E?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender"),className:ze(hn(w,E)),onClick:k=>{k.stopPropagation(),D()},onPointerDown:jr,children:n.jsx(Wa,{className:ze("h-3.5 w-3.5",E&&"text-yellow-500")})})}),n.jsx(Et,{side:"bottom",children:x(E?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")})]}),Ye=!a.isMultivariate&&n.jsxs(_t,{children:[n.jsx(jt,{asChild:!0,children:n.jsx(Ze,{type:"button",variant:"ghost",size:"icon","aria-label":x(c?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),className:ze(hn(w,c)),onClick:k=>{k.stopPropagation(),V()},onPointerDown:_r,children:c?n.jsx(Ga,{className:"h-3.5 w-3.5"}):n.jsx(qa,{className:"h-3.5 w-3.5"})})}),n.jsx(Et,{side:"bottom",children:x(c?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection")})]}),Ke=ws,Fe=Rs,Be=!0,$=Ze,me="button",Ie="ghost",Me="icon";let ee;e[21]!==x?(ee=x("sectionsEditor.sectionList.sectionActionsMenu"),e[21]=x,e[22]=ee):ee=e[22];const ye=ze(hn(w,!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(Ss,{className:"h-3.5 w-3.5"}),e[23]=ie):ie=e[23];let le;e[24]!==$||e[25]!==ee||e[26]!==ye?(le=n.jsx($,{type:me,variant:Ie,size:Me,"aria-label":ee,className:ye,onClick:yr,onPointerDown:xr,children:ie}),e[24]=$,e[25]=ee,e[26]=ye,e[27]=le):le=e[27];let fe;e[28]!==Fe||e[29]!==le?(fe=n.jsx(Fe,{asChild:Be,children:le}),e[28]=Fe,e[29]=le,e[30]=fe):fe=e[30];let pe;e[31]!==f?(pe=k=>{k.stopPropagation(),f()},e[31]=f,e[32]=pe):pe=e[32];let ge;e[33]===Symbol.for("react.memo_cache_sentinel")?(ge=n.jsx(_s,{className:"h-4 w-4"}),e[33]=ge):ge=e[33];let _e;e[34]!==x?(_e=x("sectionsEditor.sectionList.duplicateMenuItem"),e[34]=x,e[35]=_e):_e=e[35];let je;e[36]!==pe||e[37]!==_e?(je=n.jsxs(bt,{onClick:pe,children:[ge,_e]}),e[36]=pe,e[37]=_e,e[38]=je):je=e[38];let ce;e[39]!==B||e[40]!==j||e[41]!==x?(ce=B&&n.jsxs(bt,{className:qo,onClick:k=>{k.stopPropagation(),j()},children:[n.jsx(js,{className:"h-4 w-4"}),x("sectionsEditor.sectionList.addVariantMenuItem")]}),e[39]=B,e[40]=j,e[41]=x,e[42]=ce):ce=e[42];let z;e[43]!==Ae||e[44]!==R||e[45]!==x?(z=Ae&&n.jsxs(bt,{className:pr,onClick:k=>{k.stopPropagation(),R()},children:[n.jsx(vn,{className:"h-4 w-4"}),x("sectionsEditor.sectionList.makeReusableMenuItem")]}),e[43]=Ae,e[44]=R,e[45]=x,e[46]=z):z=e[46];let Ee;e[47]!==i||e[48]!==a.isMultivariate||e[49]!==a.isSavedBlock||e[50]!==x?(Ee=a.isSavedBlock===!0&&!a.isMultivariate&&n.jsxs(bt,{onClick:k=>{k.stopPropagation(),i()},children:[n.jsx(vn,{className:"h-4 w-4"}),x("sectionsEditor.sectionList.detachMenuItem")]}),e[47]=i,e[48]=a.isMultivariate,e[49]=a.isSavedBlock,e[50]=x,e[51]=Ee):Ee=e[51];let he;e[52]!==v?(he=k=>{k.stopPropagation(),v()},e[52]=v,e[53]=he):he=e[53];let Re;e[54]===Symbol.for("react.memo_cache_sentinel")?(Re=n.jsx(Es,{className:"h-4 w-4"}),e[54]=Re):Re=e[54];let oe;e[55]!==x?(oe=x("sectionsEditor.sectionList.deleteMenuItem"),e[55]=x,e[56]=oe):oe=e[56];let Z;e[57]!==he||e[58]!==oe?(Z=n.jsxs(bt,{className:"text-destructive focus:text-destructive",onClick:he,children:[Re,oe]}),e[57]=he,e[58]=oe,e[59]=Z):Z=e[59];let ue;e[60]!==je||e[61]!==ce||e[62]!==z||e[63]!==Ee||e[64]!==Z?(ue=n.jsxs(ks,{align:"end",className:"w-44",children:[je,ce,z,Ee,Z]}),e[60]=je,e[61]=ce,e[62]=z,e[63]=Ee,e[64]=Z,e[65]=ue):ue=e[65];let ve;e[66]!==Ke||e[67]!==fe||e[68]!==ue?(ve=n.jsxs(Ke,{children:[fe,ue]}),e[66]=Ke,e[67]=fe,e[68]=ue,e[69]=ve):ve=e[69];let Ne;return e[70]!==X||e[71]!==K||e[72]!==p||e[73]!==g||e[74]!==ne||e[75]!==re||e[76]!==se||e[77]!==F||e[78]!==Ye||e[79]!==ve||e[80]!==W?(Ne=n.jsxs("div",{ref:g,style:ne,...X,...K,role:xe,tabIndex:Te,onClick:p,onKeyDown:W,className:re,children:[se,F,Ye,ve]}),e[70]=X,e[71]=K,e[72]=p,e[73]=g,e[74]=ne,e[75]=re,e[76]=se,e[77]=F,e[78]=Ye,e[79]=ve,e[80]=W,e[81]=Ne):Ne=e[81],Ne}function xr(m){return m.stopPropagation()}function yr(m){return m.stopPropagation()}function _r(m){return m.stopPropagation()}function jr(m){return m.stopPropagation()}function Er(){return!1}function Rr(m){const e=We.c(104),{listKey:a,rawSections:l,sections:d,meta:h,selectedIndex:b,onSelect:p,onReorder:v,onDelete:f,onDuplicate:R,onMakeReusable:V,onToggleHidden:D,onToggleLazy:j,onAddVariant:i,onDetach:x,onAddSection:E,canAddSection:c}=m,w=c===void 0?!0:c,r=ut();let B;e[0]!==d.length?(B=()=>Gn(d.length),e[0]=d.length,e[1]=B):B=e[1];const[I,X]=T.useState(B),[K,g]=T.useState(null),[L,ke]=T.useState(a),[C,te]=T.useState(d.length),P=T.useRef(!1);L!==a?(ke(a),te(d.length),X(Gn(d.length))):C!==d.length&&(te(d.length),X(Ne=>gr(Ne,d.length)));let ne;e[2]===Symbol.for("react.memo_cache_sentinel")?(ne={activationConstraint:{distance:8}},e[2]=ne):ne=e[2];let O;e[3]===Symbol.for("react.memo_cache_sentinel")?(O={coordinateGetter:ds},e[3]=O):O=e[3];const Ae=ns(Xt(rs,ne),Xt(as,O));let xe;e[4]!==I?(xe=I.map(wr),e[4]=I,e[5]=xe):xe=e[5];const Te=xe;let W;e[6]===Symbol.for("react.memo_cache_sentinel")?(W=Ne=>{g(String(Ne.active.id))},e[6]=W):W=e[6];const de=W;let re;e[7]!==Te||e[8]!==v?(re=Ne=>{g(null);const{active:k,over:be}=Ne;if(!be||k.id===be.id)return;const ae=Te.indexOf(String(k.id)),Ve=Te.indexOf(String(be.id));ae===-1||Ve===-1||(X(Oe=>Ns(Bt([...Oe],ae,Ve))),P.current=!0,requestAnimationFrame(()=>{P.current=!1}),v?.(ae,Ve))},e[7]=Te,e[8]=v,e[9]=re):re=e[9];const se=re;let F;e[10]===Symbol.for("react.memo_cache_sentinel")?(F=()=>{g(null)},e[10]=F):F=e[10];const Ye=F;let Ke,Fe,Be,$,me,Ie,Me,ee,ye,ie,le,fe,pe,ge,_e;if(e[11]!==K||e[12]!==w||e[13]!==I||e[14]!==Te||e[15]!==se||e[16]!==h||e[17]!==E||e[18]!==i||e[19]!==f||e[20]!==x||e[21]!==R||e[22]!==V||e[23]!==p||e[24]!==D||e[25]!==j||e[26]!==l||e[27]!==d||e[28]!==b||e[29]!==Ae||e[30]!==r){ge=Symbol.for("react.early_return_sentinel");e:{const Ne=k=>{P.current||p(k)};if(e[46]!==K||e[47]!==w||e[48]!==I||e[49]!==E||e[50]!==l||e[51]!==d||e[52]!==r){const k=K?I.find(be=>be.id===K):null;if($=k!=null?d[k.index]:null,Be=k!=null?l[k.index]:void 0,I.length===0){let be;e[56]!==r?(be=r("sectionsEditor.sectionList.noSections"),e[56]=r,e[57]=be):be=e[57];let ae;e[58]!==be?(ae=n.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:be}),e[58]=be,e[59]=ae):ae=e[59];const Ve=!w;let Oe;e[60]===Symbol.for("react.memo_cache_sentinel")?(Oe=n.jsx(bn,{size:14}),e[60]=Oe):Oe=e[60];let dt;e[61]!==r?(dt=r("sectionsEditor.sectionList.addSectionButton"),e[61]=r,e[62]=dt):dt=e[62];let De;e[63]!==E||e[64]!==Ve||e[65]!==dt?(De=n.jsxs(Ze,{type:"button",variant:"outline",size:"sm",className:"w-full",disabled:Ve,onClick:E,children:[Oe,dt]}),e[63]=E,e[64]=Ve,e[65]=dt,e[66]=De):De=e[66];let et;e[67]!==ae||e[68]!==De?(et=n.jsxs("div",{className:"space-y-2",children:[ae,De]}),e[67]=ae,e[68]=De,e[69]=et):et=e[69],ge=et;break e}pe=ze(k&&"cursor-grabbing"),e[46]=K,e[47]=w,e[48]=I,e[49]=E,e[50]=l,e[51]=d,e[52]=r,e[53]=Be,e[54]=$,e[55]=pe}else Be=e[53],$=e[54],pe=e[55];Fe=ms,ee=Ae,ye=fs,ie=de,le=se,fe=Ye,Ke=ps,Ie=Te,Me=gs,_e="space-y-1",me=I.map(k=>{const be=d[k.index];return be?n.jsx(Sr,{sortableId:k.id,section:be,raw:l[k.index],meta:h,selected:b===k.index,onSelect:()=>Ne(k.index),onDelete:()=>f(k.index),onDuplicate:()=>R(k.index),onMakeReusable:()=>V(k.index),onToggleHidden:()=>D(k.index),onToggleLazy:()=>j(k.index),onAddVariant:()=>i(k.index),onDetach:()=>x(k.index)},k.id):null})}e[11]=K,e[12]=w,e[13]=I,e[14]=Te,e[15]=se,e[16]=h,e[17]=E,e[18]=i,e[19]=f,e[20]=x,e[21]=R,e[22]=V,e[23]=p,e[24]=D,e[25]=j,e[26]=l,e[27]=d,e[28]=b,e[29]=Ae,e[30]=r,e[31]=Ke,e[32]=Fe,e[33]=Be,e[34]=$,e[35]=me,e[36]=Ie,e[37]=Me,e[38]=ee,e[39]=ye,e[40]=ie,e[41]=le,e[42]=fe,e[43]=pe,e[44]=ge,e[45]=_e}else Ke=e[31],Fe=e[32],Be=e[33],$=e[34],me=e[35],Ie=e[36],Me=e[37],ee=e[38],ye=e[39],ie=e[40],le=e[41],fe=e[42],pe=e[43],ge=e[44],_e=e[45];if(ge!==Symbol.for("react.early_return_sentinel"))return ge;let je;e[70]!==me||e[71]!==_e?(je=n.jsx("div",{className:_e,children:me}),e[70]=me,e[71]=_e,e[72]=je):je=e[72];let ce;e[73]!==Ke||e[74]!==Ie||e[75]!==Me||e[76]!==je?(ce=n.jsx(Ke,{items:Ie,strategy:Me,children:je}),e[73]=Ke,e[74]=Ie,e[75]=Me,e[76]=je,e[77]=ce):ce=e[77];let z;e[78]!==Be||e[79]!==$||e[80]!==h?(z=$?n.jsx("div",{className:ze("cursor-grabbing shadow-lg ring-1 ring-border/60",Ds($,!1)),children:n.jsx(Vs,{section:$,raw:Be,meta:h})}):null,e[78]=Be,e[79]=$,e[80]=h,e[81]=z):z=e[81];let Ee;e[82]!==z?(Ee=Zn.createPortal(n.jsx(ss,{dropAnimation:os,children:z}),document.body),e[82]=z,e[83]=Ee):Ee=e[83];let he;e[84]!==Fe||e[85]!==ee||e[86]!==ye||e[87]!==ie||e[88]!==le||e[89]!==fe||e[90]!==ce||e[91]!==Ee?(he=n.jsxs(Fe,{sensors:ee,collisionDetection:ye,onDragStart:ie,onDragEnd:le,onDragCancel:fe,children:[ce,Ee]}),e[84]=Fe,e[85]=ee,e[86]=ye,e[87]=ie,e[88]=le,e[89]=fe,e[90]=ce,e[91]=Ee,e[92]=he):he=e[92];const Re=!w;let oe;e[93]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(bn,{size:14}),e[93]=oe):oe=e[93];let Z;e[94]!==r?(Z=r("sectionsEditor.sectionList.addSectionButton"),e[94]=r,e[95]=Z):Z=e[95];let ue;e[96]!==E||e[97]!==Re||e[98]!==Z?(ue=n.jsxs(Ze,{type:"button",variant:"outline",size:"sm",className:"mt-2 w-full",disabled:Re,onClick:E,children:[oe,Z]}),e[96]=E,e[97]=Re,e[98]=Z,e[99]=ue):ue=e[99];let ve;return e[100]!==pe||e[101]!==he||e[102]!==ue?(ve=n.jsxs("div",{className:pe,children:[he,ue]}),e[100]=pe,e[101]=he,e[102]=ue,e[103]=ve):ve=e[103],ve}function wr(m){return m.id}function qn(m){const e=We.c(57),{open:a,initialName:l,autoLabel:d,isPending:h,onSubmit:b,onOpenChange:p}=m,v=h===void 0?!1:h,f=ut(),[R,V]=T.useState(l),[D,j]=T.useState(a);a!==D&&(j(a),a&&V(l));let i;e[0]!==v||e[1]!==p?(i=de=>{!de&&!v&&p(!1)},e[0]=v,e[1]=p,e[2]=i):i=e[2];const x=i;let E;e[3]!==v||e[4]!==R||e[5]!==b?(E=async de=>{de.preventDefault(),!v&&await b(R.trim())},e[3]=v,e[4]=R,e[5]=b,e[6]=E):E=e[6];const c=E;let w;e[7]!==f?(w=f("sectionsEditor.variantRenameDialog.title"),e[7]=f,e[8]=w):w=e[8];let r;e[9]!==w?(r=n.jsx(Fa,{children:w}),e[9]=w,e[10]=r):r=e[10];let B;e[11]!==d||e[12]!==f?(B=f("sectionsEditor.variantRenameDialog.description",{fallback:d||f("sectionsEditor.variantRenameDialog.defaultFallback")}),e[11]=d,e[12]=f,e[13]=B):B=e[13];let I;e[14]!==B?(I=n.jsx(Ia,{children:B}),e[14]=B,e[15]=I):I=e[15];let X;e[16]!==r||e[17]!==I?(X=n.jsxs(Oa,{children:[r,I]}),e[16]=r,e[17]=I,e[18]=X):X=e[18];let K;e[19]!==f?(K=f("sectionsEditor.variantRenameDialog.nameLabel"),e[19]=f,e[20]=K):K=e[20];let g;e[21]!==K?(g=n.jsx("label",{htmlFor:"variant-rename-name",className:"text-xs font-medium text-muted-foreground",children:K}),e[21]=K,e[22]=g):g=e[22];let L;e[23]===Symbol.for("react.memo_cache_sentinel")?(L=de=>V(de.target.value),e[23]=L):L=e[23];let ke;e[24]!==d||e[25]!==v||e[26]!==R?(ke=n.jsx(Ua,{id:"variant-rename-name",value:R,onChange:L,placeholder:d,autoFocus:!0,disabled:v}),e[24]=d,e[25]=v,e[26]=R,e[27]=ke):ke=e[27];let C;e[28]!==g||e[29]!==ke?(C=n.jsxs("div",{className:"space-y-1.5 py-4",children:[g,ke]}),e[28]=g,e[29]=ke,e[30]=C):C=e[30];let te;e[31]!==p?(te=()=>p(!1),e[31]=p,e[32]=te):te=e[32];let P;e[33]!==f?(P=f("sectionsEditor.variantRenameDialog.cancel"),e[33]=f,e[34]=P):P=e[34];let ne;e[35]!==v||e[36]!==te||e[37]!==P?(ne=n.jsx(Ze,{type:"button",variant:"outline",onClick:te,disabled:v,children:P}),e[35]=v,e[36]=te,e[37]=P,e[38]=ne):ne=e[38];let O;e[39]!==v||e[40]!==f?(O=v?n.jsxs(n.Fragment,{children:[n.jsx(es,{size:14,className:"animate-spin"}),f("sectionsEditor.variantRenameDialog.saving")]}):f("sectionsEditor.variantRenameDialog.save"),e[39]=v,e[40]=f,e[41]=O):O=e[41];let Ae;e[42]!==v||e[43]!==O?(Ae=n.jsx(Ze,{type:"submit",disabled:v,children:O}),e[42]=v,e[43]=O,e[44]=Ae):Ae=e[44];let xe;e[45]!==ne||e[46]!==Ae?(xe=n.jsxs($a,{children:[ne,Ae]}),e[45]=ne,e[46]=Ae,e[47]=xe):xe=e[47];let Te;e[48]!==c||e[49]!==C||e[50]!==xe||e[51]!==X?(Te=n.jsx(za,{className:"sm:max-w-md",children:n.jsxs("form",{onSubmit:c,children:[X,C,xe]})}),e[48]=c,e[49]=C,e[50]=xe,e[51]=X,e[52]=Te):Te=e[52];let W;return e[53]!==x||e[54]!==a||e[55]!==Te?(W=n.jsx(Ha,{open:a,onOpenChange:x,children:Te}),e[53]=x,e[54]=a,e[55]=Te,e[56]=W):W=e[56],W}function Ps(m){const e=We.c(5),{rule:a,matchers:l}=m,d=a?.__resolveType??"";let h;if(e[0]!==l||e[1]!==d){const f=l.find(R=>R.resolveType===d)?.iconName??Jo(d);h=Aa(f),e[0]=l,e[1]=d,e[2]=h}else h=e[2];const b=h;if(!b)return null;let p;return e[3]!==b?(p=n.jsx(b,{size:14,className:"shrink-0"}),e[3]=b,e[4]=p):p=e[4],p}function Wn(m){return m.map(e=>`${e.label}|${e.rule?.__resolveType??""}`).join(`
|
|
2
|
-
`)}function Jn(m){return m.map((e,a)=>({id:crypto.randomUUID(),index:a,variant:e}))}function kr(m,e){const a=new Map;for(const l of m){const d=a.get(l.variant.label);d?d.push(l):a.set(l.variant.label,[l])}return e.map((l,d)=>({id:a.get(l.label)?.shift()?.id??crypto.randomUUID(),index:d,variant:l}))}function Tr(m){return m.map((e,a)=>({...e,index:a}))}function Cs(m){const e=We.c(17),{label:a,effectiveRule:l,matchers:d,canDelete:h,dragging:b,onRename:p,onDuplicate:v,onDelete:f}=m,R=ut();let V;e[0]!==l||e[1]!==d?(V=n.jsx(Ps,{rule:l,matchers:d}),e[0]=l,e[1]=d,e[2]=V):V=e[2];let D;e[3]!==a?(D=n.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:a}),e[3]=a,e[4]=D):D=e[4];let j;e[5]!==h||e[6]!==b||e[7]!==a||e[8]!==f||e[9]!==v||e[10]!==p||e[11]!==R?(j=!b&&n.jsxs(ws,{children:[n.jsx(Rs,{asChild:!0,children:n.jsx(Ze,{type:"button",variant:"ghost",size:"icon","aria-label":R("sectionsEditor.pageVariantTabs.actionsAriaLabel",{label:a}),className:"size-6 shrink-0 opacity-0 transition-opacity group-hover:opacity-100 data-[state=open]:opacity-100",onClick:Vr,onPointerDown:Nr,children:n.jsx(Ss,{size:14})})}),n.jsxs(ks,{align:"end",className:"w-36",children:[n.jsxs(bt,{onClick:x=>{x.stopPropagation(),p?.()},children:[n.jsx(or,{size:14}),R("sectionsEditor.pageVariantTabs.renameAction")]}),n.jsxs(bt,{onClick:x=>{x.stopPropagation(),v?.()},children:[n.jsx(_s,{size:14}),R("sectionsEditor.pageVariantTabs.duplicateAction")]}),n.jsx(Ja,{}),n.jsxs(bt,{variant:"destructive",disabled:!h,onClick:x=>{x.stopPropagation(),f?.()},children:[n.jsx(Es,{size:14}),R("sectionsEditor.pageVariantTabs.deleteAction")]})]})]}),e[5]=h,e[6]=b,e[7]=a,e[8]=f,e[9]=v,e[10]=p,e[11]=R,e[12]=j):j=e[12];let i;return e[13]!==V||e[14]!==D||e[15]!==j?(i=n.jsxs(n.Fragment,{children:[V,D,j]}),e[13]=V,e[14]=D,e[15]=j,e[16]=i):i=e[16],i}function Nr(m){return m.stopPropagation()}function Vr(m){return m.stopPropagation()}function Dr(m){const e=We.c(33),{entry:a,isActive:l,canDelete:d,decofile:h,meta:b,matchers:p,onSelect:v,onRename:f,onDuplicate:R,onDelete:V}=m;let D;e[0]!==a.id?(D={id:a.id,animateLayoutChanges:Pr},e[0]=a.id,e[1]=D):D=e[1];const{attributes:j,listeners:i,setNodeRef:x,transform:E,isDragging:c}=ls(D);let w;e[2]!==E?(w=cs.Transform.toString(E?{...E,x:0}:null),e[2]=E,e[3]=w):w=e[3];const r=c?0:void 0;let B;e[4]!==w||e[5]!==r?(B={transform:w,opacity:r},e[4]=w,e[5]=r,e[6]=B):B=e[6];const I=B,X=b??void 0;let K;e[7]!==h||e[8]!==a.variant.rule||e[9]!==X?(K=Lt(a.variant.rule,h,X),e[7]=h,e[8]=a.variant.rule,e[9]=X,e[10]=K):K=e[10];const g=K;let L;e[11]!==v?(L=O=>{O.target===O.currentTarget&&(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),v())},e[11]=v,e[12]=L):L=e[12];const ke=c?"cursor-grabbing":"cursor-pointer active:cursor-grabbing",C=l?hs:us;let te;e[13]!==ke||e[14]!==C?(te=ze("group flex select-none items-center gap-2 rounded-md px-2 py-2.5 transition-colors touch-none",ke,C),e[13]=ke,e[14]=C,e[15]=te):te=e[15];let P;e[16]!==d||e[17]!==g||e[18]!==a.variant.label||e[19]!==p||e[20]!==V||e[21]!==R||e[22]!==f?(P=n.jsx(Cs,{label:a.variant.label,effectiveRule:g,matchers:p,canDelete:d,onRename:f,onDuplicate:R,onDelete:V}),e[16]=d,e[17]=g,e[18]=a.variant.label,e[19]=p,e[20]=V,e[21]=R,e[22]=f,e[23]=P):P=e[23];let ne;return e[24]!==j||e[25]!==i||e[26]!==v||e[27]!==x||e[28]!==I||e[29]!==te||e[30]!==P||e[31]!==L?(ne=n.jsx("div",{ref:x,style:I,...j,...i,onClick:v,onKeyDown:L,className:te,children:P}),e[24]=j,e[25]=i,e[26]=v,e[27]=x,e[28]=I,e[29]=te,e[30]=P,e[31]=L,e[32]=ne):ne=e[32],ne}function Pr(){return!1}function Cr(m){const e=We.c(9),{variant:a,decofile:l,meta:d,matchers:h}=m,b=d??void 0;let p;e[0]!==l||e[1]!==b||e[2]!==a.rule?(p=Lt(a.rule,l,b),e[0]=l,e[1]=b,e[2]=a.rule,e[3]=p):p=e[3];const v=p;let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=ze("flex items-center gap-2 rounded-md px-2 py-2.5 shadow-lg ring-1 ring-border/60 cursor-grabbing",hs),e[4]=f):f=e[4];let R;return e[5]!==v||e[6]!==h||e[7]!==a.label?(R=n.jsx("div",{className:f,children:n.jsx(Cs,{label:a.label,effectiveRule:v,matchers:h,canDelete:!1,dragging:!0})}),e[5]=v,e[6]=h,e[7]=a.label,e[8]=R):R=e[8],R}function Ar(m){const e=We.c(91),{listKey:a,variants:l,activeIndex:d,decofile:h,meta:b,matchers:p,onSelect:v,onReorder:f,onRename:R,onDuplicate:V,onDelete:D,onAdd:j}=m,i=ut();let x;e[0]!==l?(x=()=>Jn(l),e[0]=l,e[1]=x):x=e[1];const[E,c]=T.useState(x),[w,r]=T.useState(null),[B,I]=T.useState(a),[X,K]=T.useState(l.length);let g;e[2]!==l?(g=()=>Wn(l),e[2]=l,e[3]=g):g=e[3];const[L,ke]=T.useState(g),C=T.useRef(!1),te=Wn(l);B!==a?(I(a),K(l.length),ke(te),c(Jn(l))):(X!==l.length||L!==te)&&(K(l.length),ke(te),c(he=>kr(he,l)));let P;e[4]===Symbol.for("react.memo_cache_sentinel")?(P={activationConstraint:{distance:8}},e[4]=P):P=e[4];let ne;e[5]===Symbol.for("react.memo_cache_sentinel")?(ne={coordinateGetter:ds},e[5]=ne):ne=e[5];const O=ns(Xt(rs,P),Xt(as,ne));let Ae;e[6]!==E?(Ae=E.map(Mr),e[6]=E,e[7]=Ae):Ae=e[7];const xe=Ae,Te=l.length>1;let W;e[8]!==E?(W=he=>{const Re=String(he.active.id);r(E.find(oe=>oe.id===Re)??null)},e[8]=E,e[9]=W):W=e[9];const de=W;let re;e[10]!==xe||e[11]!==f?(re=he=>{r(null);const{active:Re,over:oe}=he;if(!oe||Re.id===oe.id)return;const Z=xe.indexOf(String(Re.id)),ue=xe.indexOf(String(oe.id));Z===-1||ue===-1||(c(ve=>Tr(Bt([...ve],Z,ue))),C.current=!0,requestAnimationFrame(()=>{C.current=!1}),f(Z,ue))},e[10]=xe,e[11]=f,e[12]=re):re=e[12];const se=re;let F;e[13]===Symbol.for("react.memo_cache_sentinel")?(F=()=>{r(null)},e[13]=F):F=e[13];const Ye=F;let Ke,Fe,Be,$,me,Ie,Me,ee,ye,ie,le,fe,pe;if(e[14]!==d||e[15]!==Te||e[16]!==h||e[17]!==E||e[18]!==xe||e[19]!==se||e[20]!==de||e[21]!==p||e[22]!==b||e[23]!==j||e[24]!==D||e[25]!==V||e[26]!==R||e[27]!==v||e[28]!==O||e[29]!==i){const he=ae=>{C.current||v(ae)};le="space-y-1 border-b p-2";let Re;e[43]!==i?(Re=i("sectionsEditor.pageVariantTabs.variantsLabel"),e[43]=i,e[44]=Re):Re=e[44];let oe;e[45]!==Re?(oe=n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:Re}),e[45]=Re,e[46]=oe):oe=e[46];let Z;e[47]!==i?(Z=i("sectionsEditor.pageVariantTabs.addVariantAriaLabel"),e[47]=i,e[48]=Z):Z=e[48];let ue;e[49]===Symbol.for("react.memo_cache_sentinel")?(ue=n.jsx(bn,{size:14}),e[49]=ue):ue=e[49];let ve;e[50]!==j||e[51]!==Z?(ve=n.jsx(jt,{asChild:!0,children:n.jsx(Ze,{type:"button",variant:"ghost",size:"icon","aria-label":Z,className:"size-6",onClick:j,children:ue})}),e[50]=j,e[51]=Z,e[52]=ve):ve=e[52];let Ne;e[53]!==i?(Ne=i("sectionsEditor.pageVariantTabs.addVariantTooltip"),e[53]=i,e[54]=Ne):Ne=e[54];let k;e[55]!==Ne?(k=n.jsx(Et,{children:Ne}),e[55]=Ne,e[56]=k):k=e[56];let be;e[57]!==ve||e[58]!==k?(be=n.jsxs(_t,{children:[ve,k]}),e[57]=ve,e[58]=k,e[59]=be):be=e[59],e[60]!==oe||e[61]!==be?(fe=n.jsxs("div",{className:"flex items-center justify-between",children:[oe,be]}),e[60]=oe,e[61]=be,e[62]=fe):fe=e[62],Fe=ms,Ie=O,Me=fs,ee=de,ye=se,ie=Ye,Ke=ps,$=xe,me=gs,pe="space-y-0.5",Be=E.map(ae=>n.jsx(Dr,{entry:ae,isActive:ae.index===d,canDelete:Te,decofile:h,meta:b,matchers:p,onSelect:()=>he(ae.index),onRename:()=>R(ae.index),onDuplicate:()=>V(ae.index),onDelete:()=>D(ae.index)},ae.id)),e[14]=d,e[15]=Te,e[16]=h,e[17]=E,e[18]=xe,e[19]=se,e[20]=de,e[21]=p,e[22]=b,e[23]=j,e[24]=D,e[25]=V,e[26]=R,e[27]=v,e[28]=O,e[29]=i,e[30]=Ke,e[31]=Fe,e[32]=Be,e[33]=$,e[34]=me,e[35]=Ie,e[36]=Me,e[37]=ee,e[38]=ye,e[39]=ie,e[40]=le,e[41]=fe,e[42]=pe}else Ke=e[30],Fe=e[31],Be=e[32],$=e[33],me=e[34],Ie=e[35],Me=e[36],ee=e[37],ye=e[38],ie=e[39],le=e[40],fe=e[41],pe=e[42];let ge;e[63]!==Be||e[64]!==pe?(ge=n.jsx("div",{className:pe,children:Be}),e[63]=Be,e[64]=pe,e[65]=ge):ge=e[65];let _e;e[66]!==Ke||e[67]!==$||e[68]!==me||e[69]!==ge?(_e=n.jsx(Ke,{items:$,strategy:me,children:ge}),e[66]=Ke,e[67]=$,e[68]=me,e[69]=ge,e[70]=_e):_e=e[70];let je;e[71]!==w||e[72]!==h||e[73]!==p||e[74]!==b?(je=w?n.jsx(Cr,{variant:w.variant,decofile:h,meta:b,matchers:p}):null,e[71]=w,e[72]=h,e[73]=p,e[74]=b,e[75]=je):je=e[75];let ce;e[76]!==je?(ce=Zn.createPortal(n.jsx(ss,{dropAnimation:os,children:je}),document.body),e[76]=je,e[77]=ce):ce=e[77];let z;e[78]!==Fe||e[79]!==Ie||e[80]!==Me||e[81]!==ee||e[82]!==ye||e[83]!==ie||e[84]!==_e||e[85]!==ce?(z=n.jsxs(Fe,{sensors:Ie,collisionDetection:Me,onDragStart:ee,onDragEnd:ye,onDragCancel:ie,children:[_e,ce]}),e[78]=Fe,e[79]=Ie,e[80]=Me,e[81]=ee,e[82]=ye,e[83]=ie,e[84]=_e,e[85]=ce,e[86]=z):z=e[86];let Ee;return e[87]!==le||e[88]!==fe||e[89]!==z?(Ee=n.jsxs("div",{className:le,children:[fe,z]}),e[87]=le,e[88]=fe,e[89]=z,e[90]=Ee):Ee=e[90],Ee}function Mr(m){return m.id}function Br(m){const e=We.c(16),{schema:a,value:l,onChange:d,meta:h,decofile:b,onSaveReferencedBlock:p,sandbox:v}=m,f=ut();let R;e[0]===Symbol.for("react.memo_cache_sentinel")?(R=[],e[0]=R):R=e[0];const[V,D]=T.useState(R);let j;e[1]!==V||e[2]!==f?(j=V.length>0&&n.jsxs("nav",{"aria-label":f("sectionsEditor.sectionsEditorPanels.variantRuleBreadcrumb"),className:"flex min-w-0 items-center gap-1 overflow-hidden text-xs",children:[n.jsx("button",{type:"button",onClick:()=>D([]),className:"flex shrink-0 items-center gap-0.5 rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",title:f("sectionsEditor.sectionsEditorPanels.backToRule"),children:n.jsx(xs,{className:"size-3.5"})}),V.map((E,c)=>{const w=c===V.length-1,r=bs(E);return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[c>0&&n.jsx(ys,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>D(V.slice(0,c+1)),title:r,className:ze("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors hover:bg-accent hover:text-accent-foreground",w?"font-medium text-foreground":"text-muted-foreground"),children:r})]},`${r}-${c}`)})]}),e[1]=V,e[2]=f,e[3]=j):j=e[3];let i;e[4]!==V||e[5]!==b||e[6]!==h||e[7]!==d||e[8]!==p||e[9]!==v||e[10]!==a||e[11]!==l?(i=n.jsx(vs,{schema:a,value:l,onChange:d,basePath:"",breadcrumbPath:V,onBreadcrumbChange:D,meta:h,decofile:b,onSaveReferencedBlock:p,sandbox:v}),e[4]=V,e[5]=b,e[6]=h,e[7]=d,e[8]=p,e[9]=v,e[10]=a,e[11]=l,e[12]=i):i=e[12];let x;return e[13]!==j||e[14]!==i?(x=n.jsxs("div",{className:"space-y-2",children:[j,i]}),e[13]=j,e[14]=i,e[15]=x):x=e[15],x}function Yn(m){const e=We.c(23),{activeSchema:a,formValue:l,formResetKey:d,onFormChange:h,onBreadcrumbChange:b,breadcrumbPath:p,emptyMessage:v,beforeForm:f,seoResolveType:R,siteDefaultSeo:V,meta:D,decofile:j,onSaveReferencedBlock:i,sandbox:x,previewBaseUrl:E,onRequestAddSection:c}=m;let w;e[0]!==p?(w=p===void 0?[]:p,e[0]=p,e[1]=w):w=e[1];const r=w;let B;e[2]!==a||e[3]!==r||e[4]!==j||e[5]!==d||e[6]!==l||e[7]!==D||e[8]!==b||e[9]!==h||e[10]!==c||e[11]!==i||e[12]!==E||e[13]!==x||e[14]!==R||e[15]!==V?(B=a&&l?R?n.jsx(Ya,{schema:a,resolveType:R,value:l,formResetKey:d,onChange:h,onBreadcrumbChange:b,siteDefaultSeo:V}):n.jsx(vs,{schema:a,value:l,onChange:h,basePath:"",breadcrumbPath:r,onBreadcrumbChange:b,meta:D,decofile:j,onSaveReferencedBlock:i,sandbox:x,previewBaseUrl:E,onRequestAddSection:c},d):null,e[2]=a,e[3]=r,e[4]=j,e[5]=d,e[6]=l,e[7]=D,e[8]=b,e[9]=h,e[10]=c,e[11]=i,e[12]=E,e[13]=x,e[14]=R,e[15]=V,e[16]=B):B=e[16];const I=B;let X;e[17]!==v||e[18]!==I?(X=I??n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:v}),e[17]=v,e[18]=I,e[19]=X):X=e[19];let K;return e[20]!==f||e[21]!==X?(K=n.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:n.jsxs("div",{className:"mx-auto max-w-2xl",children:[f,X]})}),e[20]=f,e[21]=X,e[22]=K):K=e[22],K}const Lr="text-[oklch(0.45_0.15_160)] bg-[oklch(0.65_0.15_160/0.18)] dark:text-[oklch(0.78_0.15_160)] dark:bg-[oklch(0.65_0.15_160/0.22)]";function Kr(m,e){return Yo(m,e,ct)}function Fr(m){const e=We.c(19),{pageKey:a,initialName:l,initialPath:d,onFieldChange:h}=m,b=ut(),[p,v]=T.useState(l),[f,R]=T.useState(d),[V,D]=T.useState(a);V!==a&&(D(a),v(l),R(d));let j;e[0]!==h?(j=B=>{v(B.target.value),h("name",B.target.value)},e[0]=h,e[1]=j):j=e[1];let i;e[2]!==b?(i=b("sectionsEditor.sectionsEditorPanels.pageNamePlaceholder"),e[2]=b,e[3]=i):i=e[3];let x;e[4]!==p||e[5]!==j||e[6]!==i?(x=n.jsx("input",{type:"text",value:p,onChange:j,className:"w-full bg-transparent text-sm font-semibold truncate outline-none border-none p-0 focus:ring-0 placeholder:text-muted-foreground",placeholder:i}),e[4]=p,e[5]=j,e[6]=i,e[7]=x):x=e[7];let E;e[8]!==h?(E=B=>{R(B.target.value),h("path",B.target.value)},e[8]=h,e[9]=E):E=e[9];let c;e[10]!==b?(c=b("sectionsEditor.sectionsEditorPanels.pathPlaceholder"),e[10]=b,e[11]=c):c=e[11];let w;e[12]!==f||e[13]!==E||e[14]!==c?(w=n.jsx("input",{type:"text",value:f,onChange:E,className:"w-full bg-transparent text-xs text-muted-foreground truncate outline-none border-none p-0 focus:ring-0 placeholder:text-muted-foreground",placeholder:c}),e[12]=f,e[13]=E,e[14]=c,e[15]=w):w=e[15];let r;return e[16]!==x||e[17]!==w?(r=n.jsxs("div",{className:"space-y-1",children:[x,w]}),e[16]=x,e[17]=w,e[18]=r):r=e[18],r}function Qn(m){const e=We.c(13),{onClick:a}=m,l=ut();let d;e[0]!==l?(d=l("sectionsEditor.sectionsEditorPanels.addVariant"),e[0]=l,e[1]=d):d=e[1];let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(js,{size:14}),e[2]=h):h=e[2];let b;e[3]!==a||e[4]!==d?(b=n.jsx(jt,{asChild:!0,children:n.jsx(Ze,{type:"button",variant:"ghost",size:"icon","aria-label":d,className:"size-7 shrink-0 text-[oklch(0.65_0.15_160)]",onClick:a,children:h})}),e[3]=a,e[4]=d,e[5]=b):b=e[5];let p;e[6]!==l?(p=l("sectionsEditor.sectionsEditorPanels.addVariant"),e[6]=l,e[7]=p):p=e[7];let v;e[8]!==p?(v=n.jsx(Et,{side:"bottom",children:p}),e[8]=p,e[9]=v):v=e[9];let f;return e[10]!==b||e[11]!==v?(f=n.jsxs(_t,{children:[b,v]}),e[10]=b,e[11]=v,e[12]=f):f=e[12],f}function Xn(m){const e=We.c(21),{currentRt:a,currentLabel:l,currentGlobalKey:d,matchers:h,globals:b,onSelect:p,onSelectGlobal:v,schema:f,formValue:R,onChange:V,formKey:D,formWrapperClassName:j,meta:i,decofile:x,onSaveReferencedBlock:E,sandbox:c}=m;let w;e[0]!==d||e[1]!==l||e[2]!==a||e[3]!==b||e[4]!==h||e[5]!==p||e[6]!==v?(w=n.jsx(Qo,{currentRt:a,currentLabel:l,currentGlobalKey:d,matchers:h,globals:b,onSelect:p,onSelectGlobal:v}),e[0]=d,e[1]=l,e[2]=a,e[3]=b,e[4]=h,e[5]=p,e[6]=v,e[7]=w):w=e[7];let r;e[8]!==x||e[9]!==D||e[10]!==R||e[11]!==j||e[12]!==i||e[13]!==V||e[14]!==E||e[15]!==c||e[16]!==f?(r=f&&R&&n.jsx("div",{className:j,children:n.jsx(Br,{schema:f,value:R,onChange:V,meta:i,decofile:x,onSaveReferencedBlock:E,sandbox:c},D)}),e[8]=x,e[9]=D,e[10]=R,e[11]=j,e[12]=i,e[13]=V,e[14]=E,e[15]=c,e[16]=f,e[17]=r):r=e[17];let B;return e[18]!==w||e[19]!==r?(B=n.jsxs(n.Fragment,{children:[w,r]}),e[18]=w,e[19]=r,e[20]=B):B=e[20],B}function Nc({orgSlug:m,virtualMcpId:e,branch:a,previewReady:l=!0,previewUrl:d,currentPath:h,activePageBlockKey:b=null,activeGlobalBlockKey:p=null,externalSelection:v,onSaved:f,initialEditSeo:R=!1,onExitSeo:V,onViewJsonFile:D,onVariantPreviewOverride:j}){const i=ut(),x=Io()?.taskId??null,E=l?{orgSlug:m,virtualMcpId:e,branch:a,threadId:x,previewUrl:d}:null,{data:c,isLoading:w}=Xo(E),{data:r,isLoading:B}=Zo(E),I=ea(),X=I?.entity?.id===e?I.entity.metadata?.siteSlug??null:null,K=ar({virtualMcpId:e,sandboxUrl:d}),[g,L]=T.useState(null),[ke,C]=T.useState(null),[te,P]=T.useState(null),[ne,O]=T.useState(0),[Ae,xe]=T.useState(void 0),[Te,W]=T.useState(null),[de,re]=T.useState(null),[se,F]=T.useState([]),Ye=T.useRef(null),[Ke,Fe]=T.useState(se.length);Ke!==se.length&&(Fe(se.length),requestAnimationFrame(()=>{Ye.current&&(Ye.current.scrollTop=0)}));const[Be,$]=T.useState(0),[me,Ie]=T.useState(null),[Me,ee]=T.useState(null),[ye,ie]=T.useState(null),[le,fe]=T.useState(!0),[pe,ge]=T.useState(!1),[_e,je]=T.useState(!1),ce=T.useRef(null),[z,Ee]=T.useState(R),[he,Re]=T.useState(R);R&&!he&&(Re(!0),Ee(!0),L(null),C(null),P(null),F([])),!R&&he&&Re(!1);const[oe,Z]=T.useState(null),[ue,ve]=T.useState(void 0),[Ne,k]=T.useState([]),[be,ae]=T.useState(0),[Ve,Oe]=T.useState(0),[dt,De]=T.useState(null),[et,qe]=T.useState(null),[Sn,xn]=T.useState(null),As=Ko(),Ms=`${m}/${e}/${a}`,Zt=ta({orgSlug:m,virtualMcpId:e,branch:a}),[Bs,Ls]=T.useState(h),[Ks,Fs]=T.useState(b),[Is,Os]=T.useState(p);(Bs!==h||Ks!==b||Is!==p)&&(queueMicrotask(()=>Zt.flush()),Ls(h),Fs(b),Os(p),L(null),C(null),P(null),O(0),W(null),re(null),Oe(0),De(null),qe(null),F([]),$(t=>t+1),Ee(!1),Z(null),ve(void 0),k([]),ae(t=>t+1));const Pe=na({orgSlug:m,virtualMcpId:e,branch:a}),Kt=ya((t,s)=>{Pe.mutate({blockKey:t,data:s},{onSuccess:()=>f?.(),onError:o=>Y.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:o.message}))})}),en=sa({orgSlug:m,virtualMcpId:e,branch:a}),[Vt,Ft]=T.useState(!1),He=T.useRef(null),ot=T.useRef(null),at=T.useRef(null),tn=T.useRef({}),tt=T.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null});if(!l||w||B)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(!c||!r)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:i("sectionsEditor.sectionsEditor.couldNotLoadSiteData")});const $s=oa(c),Ce=!!p,Je=Ce?null:aa($s,h,b),N=Ce?p:Je?.key??null,nn=Ce&&p?c[p]:void 0,yn=Ce&&p&&nn?ra(p,nn):Ce&&p?p:"",It=!Ce&&N&&c[N]?c[N]:null,sn=z&&c&&r&&N&&Je?Un(c,{kind:"page",pageKey:N,pageName:String(Je.name??""),path:String(Je.path??"")},r):null,zs=z?It?.seo:void 0,on=ue!==void 0?ue:zs,Hs=z?Qa(on):void 0,Us=sn?.seoTypeOptions??[],Gs=z&&r?Xa(r):"",_n=oe??Hs??{},an=z&&sn?Za(_n,sn):null,qs=z&&an&&er(on)?qt(an,r):null,Ws=z?tr(c,r)?.seoData:void 0,Ge=Ce?[{label:"Default",sections:[{__resolveType:p}]}]:Kr(It?.sections,c??{}),Ot=Ge.length>1,$e=Math.min(ne,Ge.length-1),mt=Ge[$e],G=mt?.sections??[],Ue=Wt(G,c),jn=!Ce&&ia(It?.sections);if(Ce&&p&&Sn!==p){xn(p);const t=G[0],s=Ue[0];if(t&&s){L(0),Oe(0),F([]);const o=xt(t,s,c);o&&(C(o.data),P(o.resolveType),qe(null),De(null))}}!Ce&&Sn!==null&&xn(null),tt.current={rawSections:G,parsedSections:Ue,decofile:c??{},activePageKey:N,pageVariants:Ge,variantIndex:$e,sectionVariantIndex:Ve,selectedSectionIndex:g};const Js=()=>({multivariate:jn,index:$e,variants:Ge.map(t=>({rule:t.rule}))}),En=(t,s)=>{if(!j)return;if(!N||!jn||t.length<=1){j(null);return}const o=Hn(N,{multivariate:!0,index:s,variants:t},c,r);j(o.length>0?o:null)},Rt=(t,s,o)=>{if(!j)return;if(!N){j(null);return}const u=Js(),S=Hn(N,u,c,r);if(!t||s<0){j(S.length>0?S:null);return}const _=wa({pageKey:N,page:u,sectionIndex:s,sectionLazy:Ue[s]?.isLazy??!1,mvObj:t,selectedVariantIndex:o,decofile:c,meta:r}),y=[...S,..._];j(y.length>0?y:null)},ft=(t,s,o,u=g??-1,S=!1)=>{const _=st(t,s);if(!_){C(null),P(null),qe(null),De(null),S&&Rt(null,u,o);return}const A=Kn(_,ct)[o];if(!A){C(null),P(null),qe(null),De(null),S&&Rt(null,u,o);return}const Q=fa(A.value,c);C(Q?.data??null),P(Q?.resolveType??null);const{resolveType:M,formValue:H}=Ct(A.rule,c,r??void 0);qe(M),De(H),S&&Rt(_,u,o)},Dt=v?.index;if(v!==void 0&&(v?.seq??null)!==Ae&&(xe(v?.seq??null),typeof Dt=="number")){const t=G[Dt],s=Ue[Dt];if(t&&s)if(L(Dt),Oe(0),F([]),$(o=>o+1),s.isMultivariate)ft(t,s,0,Dt);else{const o=xt(t,s,c);o?(C(o.data),P(o.resolveType)):(C(null),P(null)),qe(null),De(null)}}const $t={orgSlug:m,virtualMcpId:e,branch:a,threadId:x,previewUrl:d??void 0,siteSlug:X},rn=te&&r?qt(te,r):null,Qe=(t,s)=>{if(!N)return;He.current&&(clearTimeout(He.current),He.current=null),at.current&&(clearTimeout(at.current),at.current=null),ot.current&&(clearTimeout(ot.current),ot.current=null);const o=Mt(c,N,t,$e,Ge);Pe.mutate({blockKey:N,data:o},{onSuccess:()=>s?.onSuccess?.()??f?.(),onError:u=>Y.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:u.message}))})},wt=()=>{L(null),C(null),P(null),Oe(0),De(null),qe(null),F([]),$(t=>t+1)},Ys=(t,s)=>{He.current&&clearTimeout(He.current);const o=tt.current.sectionVariantIndex;He.current=setTimeout(()=>{const{rawSections:u,parsedSections:S,decofile:_,activePageKey:y,pageVariants:A,variantIndex:Q}=tt.current,M=u[s];if(!M)return;const H=S[s];if(!H)return;if(H.isSavedBlock){const q=H.isLazy?M.section?.__resolveType??M.__resolveType:M.__resolveType;Pe.mutate({blockKey:q,data:t},{onSuccess:()=>f?.(),onError:J=>Y.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:J.message}))});return}if(!y)return;const U={..._[y]},we=[...u];if(H.isMultivariate){const q=st(M,H);if(!q||!y)return;const J=Ta(q,o,t);we[s]=yt(M,H,J)}else if(H.isHidden){const q=is(M.__resolveType),J=q?{...M.section}:{...M},Le=Array.isArray(J.variants)?[...J.variants]:[];Le[0]&&(Le[0]={...Le[0],value:t}),J.variants=Le,q?we[s]={...M,section:J}:we[s]=J}else H.isLazy?we[s]={...M,section:t}:we[s]=t;if(A.length>1){const q=U.sections,J=[...q?.variants??[]];J[Q]&&(J[Q]={...J[Q],value:we}),U.sections={...q,variants:J}}else U.sections=we;Pe.mutate({blockKey:y,data:U},{onSuccess:()=>f?.(),onError:q=>Y.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:q.message}))})},gn)},Qs=t=>{L(t),Oe(0),F([]),$(S=>S+1);const s=G[t],o=Ue[t];if(!s||!o)return;if(o.isMultivariate){ft(s,o,0,t);return}const u=xt(s,o,c);if(!u){C(null),P(null),qe(null),De(null),Rt(null,t,0);return}C(u.data),P(u.resolveType),qe(null),De(null),Rt(null,t,0)},Rn=t=>{const s=t;C(s),g!==null&&Ys(s,g)},ln=t=>{if(!N||!c||!r||!Je)return;const s={kind:"page",pageKey:N,pageName:String(Je.name??""),path:String(Je.path??"")},o=Un(c,s,r);o&&Zt.save(N,()=>{const u=As.getQueryData(Fo.decofile(Ms))?.[N];if(!u||typeof u!="object"||u===null||Array.isArray(u))return null;const S={...u,...tn.current};return tn.current={},t?.raw!==void 0?{...S,seo:t.raw}:t?.inner!==void 0?sr(s,o,S,t.inner):S})},Xs=(t,s)=>{N&&(tn.current[t]=s,ln())},Zs=(t,s)=>{if(!N)return;const o=Bt([...G],t,s);g!==null&&(g===t?L(s):t<g&&s>=g?L(g-1):t>g&&s<=g&&L(g+1)),Qe(o)},eo=t=>{if(!N)return;const s=G.filter((o,u)=>u!==t);g===t?wt():g!==null&&g>t&&L(g-1),Qe(s)},to=t=>{if(!N)return;const s=G[t];if(!s)return;const o=[...G];o.splice(t+1,0,Ra(s)),g!==null&&g>t&&L(g+1),Qe(o)},no=t=>{if(!N)return;const s=G[t],o=Ue[t];if(!s||!o||o.isMultivariate)return;const u=o.isHidden?ja(s):Ea(s);if(!u)return;const S=[...G];S[t]=u,g===t&&wt(),Qe(S)},so=t=>{if(!N)return;const s=G[t],o=Ue[t];if(!s||!o||o.isMultivariate)return;const u=_a(s);if(!u)return;const S=[...G];S[t]=u,g===t&&wt(),Qe(S)},oo=t=>{if(!N)return;const s=G[t],o=Ue[t];if(!s||!o?.isSavedBlock)return;const u=xt(s,o,c);if(!u?.data)return;const{name:S,..._}=u.data,y=[...G];o.isLazy?y[t]={...s,section:_}:y[t]=_,g===t&&wt(),Qe(y)},ao=t=>{if(!N)return;const s=[...G,{__resolveType:t.resolveType}],o=s.length-1;Qe(s,{onSuccess:()=>{ge(!1),L(o),Oe(0),F([]),$(y=>y+1);const u=s[o],S=Wt(s,c)[o];if(!u||!S)return;if(S.isMultivariate){ft(u,S,0);return}const _=xt(u,S,c);if(!_){C(null),P(null),qe(null),De(null);return}C(_.data),P(_.resolveType),qe(null),De(null)}})},wn=t=>{ce.current=t.append,ge(!0)},ro=t=>{const s=ce.current;if(!s){ao(t);return}s({__resolveType:t.resolveType}),ge(!1),ce.current=null},io=t=>{if(g===null)return;const s=G[g],o=Ue[g];!s||!o?.isMultivariate||(Oe(t),F([]),$(u=>u+1),ft(s,o,t,g,!0))},lo=t=>{if(g===null||!N)return;const s=G[g],o=Ue[g];if(!s||!o?.isMultivariate)return;const u=st(s,o);if(!u)return;const S=Sa(u,t);if(!S){Y.error(i("sectionsEditor.sectionsEditor.cannotDeleteOnlyVariant"));return}const _=[...G];_[g]=yt(s,o,S);const y=S.variants;let A=Ve;t===Ve?A=Math.min(t,y.length-1):t<Ve&&(A=Ve-1),Oe(A),F([]),$(Q=>Q+1),ft(_[g],o,A),Qe(_)},co=t=>{if(g===null||!N)return;const s=G[g],o=Ue[g];if(!s||!o?.isMultivariate)return;const u=st(s,o);if(!u)return;const S=xa(u,t),_=[...G];_[g]=yt(s,o,S);const y=t+1;Oe(y),F([]),$(A=>A+1),ft(_[g],o,y),Qe(_)},uo=(t,s)=>{if(g===null||!N||t===s)return;const o=G[g],u=Ue[g];if(!o||!u?.isMultivariate)return;const S=st(o,u);if(!S)return;const _=va(S,t,s),y=[...G];y[g]=yt(o,u,_);let A=Ve;Ve===t?A=s:t<Ve&&s>=Ve?A=Ve-1:t>Ve&&s<=Ve&&(A=Ve+1),Oe(A),ft(y[g],u,A),Qe(y)},cn=t=>{const s=t??g;if(s===null||!N)return;const o=G[s],u=Ue[s];if(!o||!u)return;const S=pa(o,u);if(!S){Y.error(i("sectionsEditor.sectionsEditor.sectionCannotHaveVariants"));return}const _=[...G];_[s]=S.section;const y=Wt(_,c)[s];if(!y?.isMultivariate){Y.error(i("sectionsEditor.sectionsEditor.couldNotAddVariant"));return}L(s),Oe(S.newVariantIndex),F([]),$(A=>A+1),ft(S.section,y,S.newVariantIndex,s),Qe(_)},mo=()=>{if(g===null||!N)return;const t=G[g],s=Ue[g];if(!t||!s?.isMultivariate)return;const o=st(t,s);if(!o)return;const u=ba(t,s,o);if(!u){Y.error(i("sectionsEditor.sectionsEditor.couldNotRemoveVariants"));return}const S=[...G];S[g]=u;const _=Wt(S,c)[g];if(!_)return;Oe(0),qe(null),De(null),F([]),$(A=>A+1);const y=xt(u,_,c);y?(C(y.data),P(y.resolveType)):(C(null),P(null)),Rt(null,g,0),Qe(S)},fo=async t=>{if(me===null||!N)return;const s=pn(t,c);if(s){Y.error(s);return}const o=G[me],u=Ue[me];if(!o||!u)return;const S=xt(o,u,c);if(!S){Y.error(i("sectionsEditor.sectionsEditor.sectionCannotBeSavedAsGlobal"));return}const _={...S.data,name:t};try{await Pe.mutateAsync({blockKey:t,data:_});const y=[...G];y[me]={__resolveType:t},await Pe.mutateAsync({blockKey:N,data:Mt(c,N,y,$e,Ge)}),g===me&&wt(),Ie(null),Y.success(i("sectionsEditor.sectionsEditor.savedGlobalBlock",{blockId:t})),f?.()}catch(y){Y.error(y instanceof Error?y.message:i("sectionsEditor.sectionsEditor.failedToSaveGlobalBlock"))}},kn=mt?.rule;if(Ot&&g===null&&de===null&&kn){const{resolveType:t,formValue:s}=Ct(kn,c??{},r??void 0);re(t),W(s)}const zt=r?la(r):[],Tn=r&&c?ca(r,c):[],po=!Ce&&!!(K&&r&&c),go=de&&r?qt(de,r):null,kt=()=>{ot.current&&(clearTimeout(ot.current),ot.current=null),at.current&&(clearTimeout(at.current),at.current=null)},Pt=async(t,s)=>{if(!(ka(s,t,r)>0))try{await en.mutateAsync({blockKey:t})}catch(o){Y.error(o instanceof Error?o.message:i("sectionsEditor.sectionsEditor.couldNotDeleteMatcherBlock"))}},Nn=t=>{ot.current&&clearTimeout(ot.current),ot.current=setTimeout(()=>{const{activePageKey:s,decofile:o,variantIndex:u}=tt.current;if(!s)return;const S={...o[s]},_={...S.sections},y=[..._.variants??[]],A=y[u],Q=A?.rule;if(Tt(Q,o,r)){const M=Q?.__resolveType??"",H=o[M],U=typeof H?.name=="string"?H.name:M,{__resolveType:we,...q}=t;Pe.mutate({blockKey:M,data:Nt(we??"",q,U)},{onSuccess:()=>f?.(),onError:J=>Y.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:J.message}))});return}A&&(y[u]={...A,rule:t}),S.sections={..._,variants:y},Pe.mutate({blockKey:s,data:S},{onSuccess:()=>f?.(),onError:M=>Y.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:M.message}))})},gn)},ho=t=>{re(t);const s=t?In(t,r):{__resolveType:On};W(t?s:{}),Nn(s)},vo=t=>{const s=t;W(s);const o=de?{__resolveType:de,...s}:{...s};Nn(o)},bo=async t=>{kt();const{activePageKey:s,decofile:o,variantIndex:u}=tt.current;if(!s)return;const S=o[s],_=S?.sections;if(!_||typeof _!="object"||Array.isArray(_))return;const y=_;if(!Array.isArray(y.variants))return;const A=[...y.variants],Q=A[u];if(!Q)return;const M=At(Q.rule,o,r),H=Yt(t);A[u]={...Q,rule:H};const U={...o,[s]:{...S,sections:{...y,variants:A}}},{resolveType:we,formValue:q}=Ct(H,U,r??void 0);re(we),W(q);try{await Pe.mutateAsync({blockKey:s,data:U[s]}),M&&M!==t&&await Pt(M,U),f?.()}catch(J){Y.error(J instanceof Error?J.message:i("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}},Vn=t=>{at.current&&clearTimeout(at.current);const{selectedSectionIndex:s,sectionVariantIndex:o}=tt.current;s!==null&&(at.current=setTimeout(()=>{const{rawSections:u,parsedSections:S,decofile:_,activePageKey:y,pageVariants:A,variantIndex:Q}=tt.current;if(!y)return;const M=u[s],H=S[s];if(!M||!H?.isMultivariate)return;const U=st(M,H);if(!U)return;const q=(U.variants??[])[o]?.rule;if(Tt(q,_,r)){const Se=q?.__resolveType??"",Xe=_[Se],it=typeof Xe?.name=="string"?Xe.name:Se,{__resolveType:ht,...lt}=t;Pe.mutate({blockKey:Se,data:Nt(ht??"",lt,it)},{onSuccess:()=>f?.(),onError:vt=>Y.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:vt.message}))});return}const J=Fn(U,o,t),Le=[...u];Le[s]=yt(M,H,J);const nt=Mt(_,y,Le,Q,A);Pe.mutate({blockKey:y,data:nt},{onSuccess:()=>f?.(),onError:Se=>Y.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:Se.message}))})},gn))},So=t=>{qe(t);const s=t?In(t,r):{__resolveType:On};De(t?s:{}),Vn(s)},xo=t=>{const s=t;De(s);const o=et?{__resolveType:et,...s}:{...s};Vn(o)},yo=async t=>{kt();const{selectedSectionIndex:s,sectionVariantIndex:o,rawSections:u,parsedSections:S,decofile:_,activePageKey:y,pageVariants:A,variantIndex:Q}=tt.current;if(s===null||!y)return;const M=u[s],H=S[s];if(!M||!H?.isMultivariate)return;const U=st(M,H);if(!U)return;const we=U.variants??[],q=At(we[o]?.rule,_,r),J=Yt(t),Le=Fn(U,o,J),nt=[...u];nt[s]=yt(M,H,Le);const Se=Mt(_,y,nt,Q,A),Xe={..._,[y]:Se},{resolveType:it,formValue:ht}=Ct(J,Xe,r??void 0);qe(it),De(ht);try{await Pe.mutateAsync({blockKey:y,data:Se}),q&&q!==t&&await Pt(q,Xe),f?.()}catch(lt){Y.error(lt instanceof Error?lt.message:i("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}};if(!Ce&&!Je)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:i("sectionsEditor.sectionsEditor.noPageFound",{currentPath:h})});if(Ce&&!nn)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:i("sectionsEditor.sectionsEditor.globalBlockNotFound")});const pt=g!==null?Ue[g]??null:null,Dn=g!==null?G[g]:null,Pn=Dn&&pt?.isMultivariate?st(Dn,pt):null,St=Pn?Kn(Pn,ct):[],un=Math.min(Ve,Math.max(St.length-1,0)),Ht=St[un]??null,gt=pt?.isMultivariate===!0,Cn=g!==null&&pt!==null,Ut=Cn&&(gt||!!(rn&&ke)),_o=Ut&&!Ce&&pt?.isSavedBlock===!0,rt=Ce||_o,jo=Ce?yn:pt?.label??"",Eo=et&&r?qt(et,r):null,dn=Ut&&(!Ce||se.length>0)?Ce?[yn,...se]:[Je.name,pt.label,...gt&&Ht?[Ht.label]:[],...se]:[],Ro=z&&Je?[Je.name,"SEO",...Ne]:[],Gt=z?Ro:rt?dn.length>0?dn:[jo]:dn,wo=!z&&!Ce&>&&se.length===0,An=()=>{if(!N)return;kt(),He.current&&(clearTimeout(He.current),He.current=null);const t=c[N],s=ga(t.sections,G);if(!s)return;const o=ha(s);Pe.mutate({blockKey:N,data:{...t,sections:s}},{onSuccess:()=>{O(o),L(null),C(null),P(null),F([]),W(null),re(null)},onError:u=>Y.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:u.message}))})},mn=(t,s,o)=>{if(!N)return;kt(),He.current&&(clearTimeout(He.current),He.current=null);const u=c[N],S=u.sections;if(!S||typeof S!="object"||Array.isArray(S))return;const _=S;if(!Array.isArray(_.variants))return;const y=t([..._.variants]);if(!y)return;const A=Na(_,y),Q={...c,[N]:{...u,sections:A}};Pe.mutate({blockKey:N,data:Q[N]},{onSuccess:()=>{s?.(),o&&Pt(o,Q)},onError:M=>Y.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:M.message}))})},ko=t=>{ee(null),O(t),L(null),C(null),P(null),F([]);const s=Ge[t]?.rule,{resolveType:o,formValue:u}=Ct(s,c??{},r??void 0);re(o),W(u),En(Ge.map(S=>({rule:S.rule})),t)},To=(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),O(o);const u=Bt(Ge.map(S=>({rule:S.rule})),t,s);En(u,o),mn(S=>Bt(S,t,s))},No=t=>{const s=Ge[t]?.rule,o=At(s,c??{},r??void 0);mn(u=>u.length<=1?null:(u.splice(t,1),u),()=>{Ge.length-1===1?O(0):t<$e?O($e-1):t===$e&&O(Math.max(0,t-1)),L(null),C(null),P(null),F([]),W(null),re(null)},o)},Vo=t=>{mn(s=>Va(s,t),()=>{O(t+1),L(null),C(null),P(null),F([]),W(null),re(null)})},Do=async(t,s)=>{kt(),He.current&&(clearTimeout(He.current),He.current=null);const o=tt.current.activePageKey,u=tt.current.decofile;if(!o)return;const S=u[o],_=S.sections;if(!_||typeof _!="object"||Array.isArray(_))return;const y=_;if(!Array.isArray(y.variants))return;const A=[...y.variants],Q=A[t];if(!Q?.rule||typeof Q.rule!="object"){Y.error(i("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const M=Q.rule,H=s.trim();Ft(!0);try{if(!H){if(!Tt(M,u,r)){ee(null);return}const nt=M.__resolveType??"";A[t]={...Q,rule:$n(M,u,r)};const Se={...u,[o]:{...S,sections:{...y,variants:A}}};await Pe.mutateAsync({blockKey:o,data:Se[o]}),await Pt(nt,Se),ee(null),f?.();return}const U=zn(M,u,r);if(!U){Y.error(i("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(U.blockKey){await Pe.mutateAsync({blockKey:U.blockKey,data:Nt(U.resolveType,U.data,H)}),ee(null),f?.();return}const we=fn(H),q=pn(we,u);if(q){Y.error(q);return}const J=Nt(U.resolveType,U.data,H);let Le=null;try{await Pe.mutateAsync({blockKey:we,data:J}),Le=we,A[t]={...Q,rule:Yt(we)},await Pe.mutateAsync({blockKey:o,data:{...S,sections:{...y,variants:A}}}),Le=null}catch(nt){throw Le&&await en.mutateAsync({blockKey:Le}).catch(()=>{}),nt}ee(null),Y.success(i("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:H})),f?.()}catch(U){Y.error(U instanceof Error?U.message:i("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{Ft(!1)}},Po=async(t,s)=>{kt(),He.current&&(clearTimeout(He.current),He.current=null);const{selectedSectionIndex:o,rawSections:u,parsedSections:S,decofile:_,activePageKey:y,pageVariants:A,variantIndex:Q}=tt.current;if(o===null||!y)return;const M=u[o],H=S[o];if(!M||!H?.isMultivariate)return;const U=st(M,H);if(!U)return;const we=U.variants??[],q=we[t];if(!q?.rule||typeof q.rule!="object"){Y.error(i("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const J=q.rule,Le=s.trim();Ft(!0);const nt=async Se=>{const Xe={...U,variants:Se},it=[...u];it[o]=yt(M,H,Xe);const ht=Mt(_,y,it,Q,A);return await Pe.mutateAsync({blockKey:y,data:ht}),{..._,[y]:ht}};try{if(!Le){if(!Tt(J,_,r)){ie(null);return}const vt=J.__resolveType??"",Ln=[...we];Ln[t]={...q,rule:$n(J,_,r)};const Lo=await nt(Ln);await Pt(vt,Lo),ie(null),f?.();return}const Se=zn(J,_,r);if(!Se){Y.error(i("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(Se.blockKey){await Pe.mutateAsync({blockKey:Se.blockKey,data:Nt(Se.resolveType,Se.data,Le)}),ie(null),f?.();return}const Xe=fn(Le),it=pn(Xe,_);if(it){Y.error(it);return}const ht=Nt(Se.resolveType,Se.data,Le);let lt=null;try{await Pe.mutateAsync({blockKey:Xe,data:ht}),lt=Xe;const vt=[...we];vt[t]={...q,rule:Yt(Xe)},await nt(vt),lt=null}catch(vt){throw lt&&await en.mutateAsync({blockKey:lt}).catch(()=>{}),vt}ie(null),Y.success(i("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:Le})),f?.()}catch(Se){Y.error(Se instanceof Error?Se.message:i("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{Ft(!1)}},Mn=()=>{wt()},Co=t=>{Z(t),ln({inner:t})},Ao=t=>{ve(t),ln({raw:t})},Mo=()=>{Z(null),k([])},Bo=()=>ae(t=>t+1),Bn=t=>{if(z){if(t===0){Zt.flush(),Ee(!1),Z(null),ve(void 0),k([]),ae(o=>o+1),V?.();return}if(t===1){k([]),ae(o=>o+1);return}k(Ne.slice(0,t-1)),ae(o=>o+1);return}if(Ce){F(se.slice(0,t)),$(o=>o+1);return}if(t===0){Mn();return}if(t===1){F([]),$(o=>o+1);return}if(gt&&t===2){F([]),$(o=>o+1);return}const s=gt?2:1;F(se.slice(0,t-s))};return n.jsxs("div",{className:"flex h-full min-w-0 w-full flex-col",children:[n.jsx("div",{className:"shrink-0",children:rt||Ut||z?n.jsxs("div",{className:ze("border-b px-3 py-2.5",rt&&"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:()=>Bn(Da(Gt.length,{isMultivariateSectionTop:wo})),title:i("sectionsEditor.sectionsEditor.back"),"aria-label":i("sectionsEditor.sectionsEditor.back"),className:ze("shrink-0 inline-flex size-6 items-center justify-center rounded-md transition-colors",rt?"text-foreground/80 hover:bg-global-section/15":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:n.jsx(xs,{className:"size-4"})}),!Ce&&Ot&&mt&&n.jsxs("button",{type:"button",onClick:Mn,title:i("sectionsEditor.sectionsEditor.editingInVariant",{variant:mt.label}),className:ze("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",Lr),children:[n.jsx(Ps,{rule:Lt(mt.rule,c??{},r??void 0),matchers:zt}),n.jsx("span",{className:"max-w-[160px] truncate",children:mt.label})]}),n.jsx("nav",{"aria-label":i("sectionsEditor.sectionsEditor.editingBreadcrumb"),className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:Gt.map((t,s)=>{const o=s===Gt.length-1,u=bs(t);return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[s>0&&n.jsx(ys,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>Bn(s),title:u,className:ze("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",o?rt?"font-semibold text-global-section-fg dark:text-global-section-fg-dark":"font-medium text-foreground":rt?"text-foreground/80":"text-muted-foreground",rt?"hover:bg-global-section/15":"hover:bg-accent hover:text-accent-foreground"),children:u})]},`${u}-${s}`)})}),rt&&n.jsxs(_t,{children:[n.jsx(jt,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(Ka,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),n.jsx(Et,{side:"bottom",className:"max-w-[260px]",children:i("sectionsEditor.sectionsEditor.globalSectionTooltip")})]}),Cn&&!gt&&!pt?.isHidden&&N&&n.jsx(Qn,{onClick:()=>cn()})]}),rt&&n.jsx("p",{className:"mt-1.5 py-1.5 pl-1 text-sm leading-snug text-foreground",children:i("sectionsEditor.sectionsEditor.globalSectionBanner")})]}):n.jsxs("div",{className:"flex items-center gap-2 border-b px-3 py-2.5",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(Fr,{pageKey:N,initialName:Je.name,initialPath:Je.path,onFieldChange:Xs})}),n.jsxs(_t,{children:[n.jsx(jt,{asChild:!0,children:n.jsx(Ze,{type:"button",variant:"ghost",size:"icon","aria-label":i("sectionsEditor.sectionsEditor.editSeo"),className:"size-7 shrink-0",onClick:()=>Ee(!0),children:n.jsx(Ma,{size:14})})}),n.jsx(Et,{side:"bottom",children:i("sectionsEditor.sectionsEditor.editSeo")})]}),n.jsxs(_t,{children:[n.jsx(jt,{asChild:!0,children:n.jsx(Ze,{type:"button",variant:"ghost",size:"icon","aria-label":i("sectionsEditor.sectionsEditor.viewJson"),className:"size-7 shrink-0",onClick:()=>D&&N?D(N):je(!0),children:n.jsx(Ba,{size:14})})}),n.jsx(Et,{side:"bottom",children:i("sectionsEditor.sectionsEditor.viewJson")})]}),n.jsx(Qn,{onClick:An})]})}),z?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:It&&N?n.jsx(nr,{rawSeo:on,innerSeo:_n,defaultResolveType:Gs,seoSchema:qs,activeResolveType:an,seoTypeOptions:Us,formResetKey:be,siteDefaultSeo:Ws,onBreadcrumbChange:k,onPersistRaw:Ao,onInnerChange:Co,onClearForm:Mo,onBumpFormKey:Bo}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:i("sectionsEditor.sectionsEditor.seoSchemaNotFound")})})})},"editor-seo"):Ut?n.jsxs(Qt,{viewportRef:Ye,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[gt&&St.length>0&&se.length===0&&n.jsxs(n.Fragment,{children:[n.jsx(ua,{listKey:`${N??""}:${g??""}`,variants:St.map((t,s)=>({index:s,label:t.label})),selectedIndex:un,onSelect:io,onRename:ie,onDuplicate:co,onDelete:lo,onRemoveAll:mo,onReorder:uo,onAdd:()=>cn()}),gt&&n.jsxs("div",{className:"px-3 py-3 border-b space-y-2",children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i("sectionsEditor.sectionsEditor.variantRule")}),n.jsx(Xn,{currentRt:et??"",currentLabel:Jt(Ht?.rule,c??{},ct,r??void 0),currentGlobalKey:At(Ht?.rule,c??{},r??void 0)??void 0,matchers:zt,globals:Tn,onSelect:So,onSelectGlobal:yo,schema:Eo,formValue:dt,onChange:xo,formKey:`${g??"none"}:${un}:${et??""}`,formWrapperClassName:"pt-1",meta:r??void 0,decofile:c,onSaveReferencedBlock:Kt,sandbox:$t})]})]}),n.jsx(Yn,{activeSchema:rn,formValue:ke,formResetKey:Be,onFormChange:Rn,onBreadcrumbChange:F,breadcrumbPath:se,emptyMessage:i("sectionsEditor.sectionsEditor.noEditableFieldsForVariant"),meta:r,decofile:c,onSaveReferencedBlock:Kt,sandbox:$t,previewBaseUrl:K,onRequestAddSection:wn})]},"editor-section-form"):Ce?n.jsx(Qt,{viewportRef:Ye,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx(Yn,{activeSchema:rn,formValue:ke,formResetKey:Be,onFormChange:Rn,onBreadcrumbChange:F,breadcrumbPath:se,emptyMessage:i("sectionsEditor.sectionsEditor.noEditableFieldsForGlobalBlock"),meta:r,decofile:c,onSaveReferencedBlock:Kt,sandbox:$t,previewBaseUrl:K,onRequestAddSection:wn})},"editor-global-block"):n.jsxs(Qt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[Ot&&N&&n.jsx(Ar,{listKey:N,variants:Ge,activeIndex:$e,decofile:c??{},meta:r,matchers:zt,onSelect:ko,onReorder:To,onRename:ee,onDuplicate:Vo,onDelete:No,onAdd:An}),Ot&&de!==null&&n.jsxs("div",{className:ze("px-3 border-b",le?"pt-3 pb-5 space-y-3":"py-2"),children:[n.jsxs("button",{type:"button",onClick:()=>fe(t=>!t),className:"flex w-full items-center justify-between gap-2 text-left cursor-pointer rounded-sm py-0.5 hover:bg-muted/40","aria-expanded":le,children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i("sectionsEditor.sectionsEditor.variantRule")}),le?n.jsx(La,{className:"size-3.5 shrink-0 text-muted-foreground"}):n.jsx(Pa,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),le&&n.jsx("div",{className:ze("space-y-3",Vt&&"pointer-events-none opacity-50"),children:n.jsx(Xn,{currentRt:de,currentLabel:Jt(mt?.rule,c??{},ct,r??void 0),currentGlobalKey:At(mt?.rule,c??{},r??void 0)??void 0,matchers:zt,globals:Tn,onSelect:ho,onSelectGlobal:bo,schema:go,formValue:Te,onChange:vo,formKey:`${$e}:${de??""}`,formWrapperClassName:"space-y-3",meta:r??void 0,decofile:c,onSaveReferencedBlock:Kt,sandbox:$t})})]}),n.jsx("div",{className:"p-2 pt-3",children:n.jsx(Rr,{listKey:`${N??""}-${$e}`,rawSections:G,sections:Ue,meta:r,selectedIndex:g,onSelect:Qs,onReorder:Zs,onDelete:eo,onDuplicate:to,onMakeReusable:Ie,onToggleHidden:no,onToggleLazy:so,onAddVariant:cn,onDetach:oo,onAddSection:()=>ge(!0),canAddSection:po})})]},"editor-section-list"),n.jsx(da,{open:me!==null,onOpenChange:t=>{t||Ie(null)},defaultBlockId:me!==null?fn(Ue[me]?.label??""):"",isPending:Pe.isPending,onSubmit:fo}),K&&n.jsx(rr,{open:pe,onOpenChange:t=>{ge(t),t||(ce.current=null)},meta:r,decofile:c,previewBaseUrl:K,onSelect:ro}),_e&&N&&c&&n.jsx(ma,{open:_e,onOpenChange:je,pageKey:N,decofile:c}),Me!==null&&n.jsx(qn,{open:!0,initialName:Tt(Ge[Me]?.rule,c??{},r??void 0)?Jt(Ge[Me]?.rule,c??{},ct,r??void 0):"",autoLabel:ct(Lt(Ge[Me]?.rule,c??{},r??void 0)),isPending:Vt,onSubmit:async t=>{await Do(Me,t)},onOpenChange:t=>{!t&&!Vt&&ee(null)}}),ye!==null&&n.jsx(qn,{open:!0,initialName:Tt(St[ye]?.rule,c??{},r??void 0)?Jt(St[ye]?.rule,c??{},ct,r??void 0):"",autoLabel:ct(Lt(St[ye]?.rule,c??{},r??void 0)),isPending:Vt,onSubmit:async t=>{await Po(ye,t)},onOpenChange:t=>{!t&&!Vt&&ie(null)}})]})}export{Nc as SectionsEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as T,b as ve,j as o,r as ee,B as je,k as Se}from"./index-DFLgFxCU.js";import{i as ke}from"./ChevronRight-CXqx2KrQ.js";import{ao as fe}from"./agent-icon-91AFosFp.js";import{B as xe}from"./automation-runs-DRoOLpF-.js";import{r as Ne,c as we,u as _e,a as Ee,i as Pe,d as Te,f as Fe,P as Re,S as Ce}from"./page-seo-form-fdl02Xfy.js";import{ay as ue,ap as Ke}from"./index-DqQHVRPd.js";import{a as ye}from"./Tool01-D8c2YHPK.js";import"./AlertCircle-ABVDbGAL.js";import"./ArrowUp-DTAn91Yk.js";import"./ArrowLeft-Czvz3aRl.js";import"./Tool02-Cq6gKq_1.js";import"./XCircle-C2RmScL8.js";import"./TrendUp01-79U0S1nj.js";import"./ZapSquare-B_HukLPl.js";import"./Users03-fdy2l_9w.js";import"./UserSquare-BBgHEy7Q.js";import"./CheckCircle-BkmaYNCP.js";import"./Check-gRWVjUzZ.js";import"./ChevronDown-CxaLjh_R.js";import"./ChevronSelectorVertical-BitT8NCd.js";import"./ChevronUp-DmiMplG3.js";import"./DotsVertical-4yIS8kk7.js";import"./Stars02-ByG4nYh5.js";import"./Copy01-BfieAdQP.js";import"./CreditCard01-CQey7L8M.js";import"./Download01-CxaHLMQQ.js";import"./Settings02-DrTZcRX-.js";import"./Eye-CUqIajCp.js";import"./FilterLines-DGnSQE6u.js";import"./Share07-DF3lqrLo.js";import"./Globe01-CVlnm8Vf.js";import"./Globe04-DBZTuhB3.js";import"./SwitchHorizontal01-CyR2nll6.js";import"./HardDrive-CNK7GdOK.js";import"./Key01-C2W3DW4y.js";import"./LinkExternal01-DyBmPgM5.js";import"./LockUnlocked01-wlnJ6_uX.js";import"./LogOut01-CGusEZda.js";import"./Monitor01-BvyNA2BM.js";import"./Sun-tjcJB2I-.js";import"./Palette-CN303p2L.js";import"./Play-BFMaYRsr.js";import"./Plus-BkApqW-G.js";import"./SearchLg-Baunrsso.js";import"./SearchMd-CBK6moam.js";import"./Shield01-Dg6xTPv5.js";import"./Stars01-ByjTQBTp.js";import"./Trash01-CUEOrI6U.js";import"./Upload01-Bg3o5Ezk.js";import"./User01-DqoV9NrH.js";import"./Users01-CT9PuIPP.js";import"./XClose-BSL_lEYz.js";import"./Zap-Bzi7f43U.js";import"./select-D3GT34Gy.js";import"./useInfiniteQuery-BNOQmJWR.js";import"./use-infinite-scroll-BmJZHdH2.js";import"./use-connection-Drw6RY05.js";import"./use-mcp-client-szamxkrm.js";import"./constants-_08zpzmT.js";import"./auth-BGxGKus-.js";import"./use-virtual-mcp-CQAgyKDG.js";import"./table-DMGTpflk.js";import"./empty-state-R2vOK1Fn.js";import"./use-members-BlLDaSKR.js";import"./use-org-auth-client-CPyocNQZ.js";import"./use-clock-tick-WpmHCHEZ.js";import"./use-automations-CZcwk3Fp.js";import"./useSuspenseInfiniteQuery-BV_kPwH6.js";import"./avatar-BMdSmPe9.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-B6rwWnEN.js";import"./dialog-B3BgSy1E.js";import"./tab-id-RDG920WU.js";import"./hooks-7dGYNKEQ.js";import"./decopilot-sse-pool-BsnzmFKp.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./chat-context-DBbPbZpn.js";import"./session-runtime-wVXsCwcJ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-absaVCyA.js";import"./use-decopilot-events-DHuBsDwY.js";import"./use-organization-settings-CB-cgZ4Y.js";import"./monaco-editor-CoOthwEG.js";import"./spinner-BE2VunTg.js";import"./types-Cxk-Dj5d.js";import"./shell-layout-B0a9rW5l.js";import"./required-auth-layout-BrD167u4.js";import"./use-org-sso-BoSdBEDF.js";import"./integration-icon-CdqbSkdI.js";import"./use-navigate-to-agent-BO59LqVt.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-4xsDl-pM.js";import"./index-DDPhpQM1.js";import"./form-Dzy6nSw8.js";import"./label-t9Mx8W7B.js";import"./input-IpTrNNJK.js";import"./file-type-icon-CZEUEj2R.js";import"./switch-D04_64ue.js";import"./drawer-K2q1JEh_.js";import"./collection-search-DmXTS1wh.js";import"./tabs-BxNS49pi.js";import"./toggle-group-BguaYxUf.js";import"./use-commerce-diagnostic-lCvKTYvd.js";import"./popover-C6jmGFzO.js";import"./self-tool-result-Dbzgy21X.js";import"./alert-dialog-CsZOKQYF.js";import"./extract-connection-data-B3xVsZiJ.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-DX2cZrkJ.js";import"./authenticate-and-persist-oauth-BGlnxyje.js";import"./mcp-oauth-BAVqpDLL.js";import"./track-BYygayxr.js";import"./toolbar-DdeNd8iv.js";import"./github-repo-picker-C7G-WATj.js";import"./use-mcp-tools-CZA8WC01.js";import"./agent-capabilities-C4tLW0Za.js";import"./connection-card-B68381K1.js";import"./use-registry-connections-Dig8X3XA.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-De5kGfMV.js";import"./connection-form-helpers-BCyWIq56.js";import"./collection-tabs-DyJOcIPb.js";import"./badge-CMqOdBs6.js";import"./command-CyZf8T6s.js";import"./index-DdFfps23.js";import"./select-model-DLyXkx-M.js";import"./checkbox-D0HGV5ZN.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-I9TyJ1NQ.js";import"./dropdown-menu-ChDb5LR3.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-tNuSXFWZ.js";import"./use-file-configs-MQL8A6Fc.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-Bkaa4A1_.js";import"./search-input-C-ATyqRd.js";import"./index-GUXFC-Kq.js";import"./use-secrets-BPBzbTcV.js";import"./AreaChart-D6oRaKDz.js";import"./task-key-BCXNJhsj.js";import"./sprints-DR79G_pJ.js";import"./use-tags-CHQXpN86.js";import"./get-initials-D-f_fDFw.js";import"./automation-list-row-CYFF9KHH.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-Jsq57B-a.js";function A(d){return typeof d=="string"&&d.trim()?d:void 0}function he(d,e){if(d){if(e)try{const t=new URL(d,e).href;return ue(t)}catch{return}return ue(d)}}function ze(d){if(!d)return{};const e=A(d.title),t=A(d.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:A(d.description),image:A(d.image),favicon:A(d.favicon)}}function De(d){if(!d)return"example.com";try{return new URL(d).host}catch{return"example.com"}}const $e=[{id:"google",labelKey:"sectionsEditor.seoPreview.platformGoogle",color:"#4285F4",layout:"search"},{id:"facebook",labelKey:"sectionsEditor.seoPreview.platformFacebook",color:"#1877F2",layout:"card"},{id:"twitter",labelKey:"sectionsEditor.seoPreview.platformTwitter",color:"#0f1419",layout:"card"},{id:"linkedin",labelKey:"sectionsEditor.seoPreview.platformLinkedin",color:"#0A66C2",layout:"card"},{id:"whatsapp",labelKey:"sectionsEditor.seoPreview.platformWhatsapp",color:"#25D366",layout:"chat"},{id:"telegram",labelKey:"sectionsEditor.seoPreview.platformTelegram",color:"#229ED9",layout:"chat"},{id:"slack",labelKey:"sectionsEditor.seoPreview.platformSlack",color:"#611f69",layout:"attachment"},{id:"discord",labelKey:"sectionsEditor.seoPreview.platformDiscord",color:"#5865F2",layout:"attachment"}];function de(d){const e=T.c(10),{src:t,className:n,iconSize:v}=d,r=v===void 0?20:v;if(t){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let p;return e[1]!==n||e[2]!==t?(p=o.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:n,style:m}),e[1]=n,e[2]=t,e[3]=p):p=e[3],p}let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=s):s=e[4];let i;e[5]!==r?(i=o.jsx(ye,{size:r}),e[5]=r,e[6]=i):i=e[6];let a;return e[7]!==n||e[8]!==i?(a=o.jsx("div",{className:n,style:s,children:i}),e[7]=n,e[8]=i,e[9]=a):a=e[9],a}function Be(d){const e=T.c(33),{seo:t,host:n,path:v,t:r}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#fff",border:"1px solid #dadce0"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={background:"#f1f3f4"},e[1]=i):i=e[1];let a;e[2]!==t.favicon?(a=o.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:i,children:t.favicon?o.jsx("img",{src:t.favicon,alt:"",className:"size-full object-cover"}):o.jsx(ye,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=a):a=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#202124"},e[4]=m):m=e[4];let p;e[5]!==n?(p=o.jsx("div",{className:"truncate text-[13px] leading-tight",style:m,children:n}),e[5]=n,e[6]=p):p=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#4d5156"},e[7]=f):f=e[7];let l;e[8]!==n||e[9]!==v?(l=o.jsxs("div",{className:"truncate text-[12px] leading-tight",style:f,children:[n,v]}),e[8]=n,e[9]=v,e[10]=l):l=e[10];let c;e[11]!==p||e[12]!==l?(c=o.jsxs("div",{className:"min-w-0",children:[p,l]}),e[11]=p,e[12]=l,e[13]=c):c=e[13];let h;e[14]!==a||e[15]!==c?(h=o.jsxs("div",{className:"flex items-center gap-2",children:[a,c]}),e[14]=a,e[15]=c,e[16]=h):h=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x={color:"#1a0dab"},e[17]=x):x=e[17];let y;e[18]!==t.title||e[19]!==r?(y=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=r,e[20]=y):y=e[20];let u;e[21]!==y?(u=o.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:x,children:y}),e[21]=y,e[22]=u):u=e[22];let S;e[23]===Symbol.for("react.memo_cache_sentinel")?(S={color:"#4d5156"},e[23]=S):S=e[23];let g;e[24]!==t.description||e[25]!==r?(g=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=r,e[26]=g):g=e[26];let b;e[27]!==g?(b=o.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:S,children:g}),e[27]=g,e[28]=b):b=e[28];let j;return e[29]!==u||e[30]!==b||e[31]!==h?(j=o.jsxs("div",{className:"rounded-lg p-3 text-left",style:s,children:[h,u,b]}),e[29]=u,e[30]=b,e[31]=h,e[32]=j):j=e[32],j}function Ie(d){const e=T.c(26),{seo:t,host:n,t:v}=d;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"#fff",border:"1px solid #e2e8f0"},e[0]=r):r=e[0];let s;e[1]!==t.image?(s=o.jsx(de,{src:t.image,className:"h-40 w-full"}),e[1]=t.image,e[2]=s):s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i={borderTop:"1px solid #e2e8f0"},e[3]=i):i=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a={color:"#8a9099"},e[4]=a):a=e[4];let m;e[5]!==n?(m=o.jsx("div",{className:"truncate text-[11px]",style:a,children:n}),e[5]=n,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#1c2024"},e[7]=p):p=e[7];let f;e[8]!==t.title||e[9]!==v?(f=t.title??v("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=v,e[10]=f):f=e[10];let l;e[11]!==f?(l=o.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:p,children:f}),e[11]=f,e[12]=l):l=e[12];let c;e[13]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[13]=c):c=e[13];let h;e[14]!==t.description||e[15]!==v?(h=t.description??v("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=v,e[16]=h):h=e[16];let x;e[17]!==h?(x=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:h}),e[17]=h,e[18]=x):x=e[18];let y;e[19]!==x||e[20]!==m||e[21]!==l?(y=o.jsxs("div",{className:"px-3 py-2",style:i,children:[m,l,x]}),e[19]=x,e[20]=m,e[21]=l,e[22]=y):y=e[22];let u;return e[23]!==y||e[24]!==s?(u=o.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[s,y]}),e[23]=y,e[24]=s,e[25]=u):u=e[25],u}function Le(d){const e=T.c(36),{seo:t,host:n,accent:v,t:r}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f0f2f5"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={color:"#3b4045"},e[1]=i):i=e[1];let a;e[2]!==r?(a=r("sectionsEditor.seoPreview.chatCardHint"),e[2]=r,e[3]=a):a=e[3];let m;e[4]!==a?(m=o.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:i,children:a}),e[4]=a,e[5]=m):m=e[5];const p=`3px solid ${v}`;let f;e[6]!==p?(f={background:"#fff",borderLeft:p},e[6]=p,e[7]=f):f=e[7];let l;e[8]!==t.image?(l=o.jsx(de,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=l):l=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#1c2024"},e[10]=c):c=e[10];let h;e[11]!==t.title||e[12]!==r?(h=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=r,e[13]=h):h=e[13];let x;e[14]!==h?(x=o.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:c,children:h}),e[14]=h,e[15]=x):x=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y={color:"#60666c"},e[16]=y):y=e[16];let u;e[17]!==t.description||e[18]!==r?(u=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=u):u=e[19];let S;e[20]!==u?(S=o.jsx("div",{className:"line-clamp-2 text-[11px]",style:y,children:u}),e[20]=u,e[21]=S):S=e[21];let g;e[22]===Symbol.for("react.memo_cache_sentinel")?(g={color:"#8a9099"},e[22]=g):g=e[22];let b;e[23]!==n?(b=o.jsx("div",{className:"mt-0.5 text-[10px]",style:g,children:n}),e[23]=n,e[24]=b):b=e[24];let j;e[25]!==x||e[26]!==S||e[27]!==b?(j=o.jsxs("div",{className:"px-2.5 py-1.5",children:[x,S,b]}),e[25]=x,e[26]=S,e[27]=b,e[28]=j):j=e[28];let k;e[29]!==j||e[30]!==f||e[31]!==l?(k=o.jsxs("div",{className:"overflow-hidden rounded-md",style:f,children:[l,j]}),e[29]=j,e[30]=f,e[31]=l,e[32]=k):k=e[32];let N;return e[33]!==k||e[34]!==m?(N=o.jsxs("div",{className:"rounded-lg p-2 text-left",style:s,children:[m,k]}),e[33]=k,e[34]=m,e[35]=N):N=e[35],N}function Oe(d){const e=T.c(39),{seo:t,host:n,accent:v,dark:r,t:s}=d,i=r?"#2b2d31":"#fff",a=r?"#00a8fc":"#1264a3",m=r?"#dbdee1":"#3b4045",p=r?"#949ba4":"#8a9099",f=r?"none":"1px solid #e2e8f0";let l;e[0]!==i||e[1]!==f?(l={background:i,border:f},e[0]=i,e[1]=f,e[2]=l):l=e[2];const c=`3px solid ${v}`;let h;e[3]!==c?(h={borderLeft:c,borderRadius:2},e[3]=c,e[4]=h):h=e[4];let x;e[5]!==p?(x={color:p},e[5]=p,e[6]=x):x=e[6];let y;e[7]!==n||e[8]!==x?(y=o.jsx("div",{className:"text-[10px]",style:x,children:n}),e[7]=n,e[8]=x,e[9]=y):y=e[9];let u;e[10]!==a?(u={color:a},e[10]=a,e[11]=u):u=e[11];let S;e[12]!==t.title||e[13]!==s?(S=t.title??s("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=s,e[14]=S):S=e[14];let g;e[15]!==u||e[16]!==S?(g=o.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:u,children:S}),e[15]=u,e[16]=S,e[17]=g):g=e[17];let b;e[18]!==m?(b={color:m},e[18]=m,e[19]=b):b=e[19];let j;e[20]!==t.description||e[21]!==s?(j=t.description??s("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=s,e[22]=j):j=e[22];let k;e[23]!==b||e[24]!==j?(k=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:b,children:j}),e[23]=b,e[24]=j,e[25]=k):k=e[25];let N;e[26]!==k||e[27]!==y||e[28]!==g?(N=o.jsxs("div",{className:"min-w-0 flex-1",children:[y,g,k]}),e[26]=k,e[27]=y,e[28]=g,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=o.jsx(de,{src:t.image,className:"size-14 shrink-0 rounded",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let _;e[32]!==N||e[33]!==w||e[34]!==h?(_=o.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:h,children:[N,w]}),e[32]=N,e[33]=w,e[34]=h,e[35]=_):_=e[35];let P;return e[36]!==_||e[37]!==l?(P=o.jsx("div",{className:"rounded-lg p-2.5 text-left",style:l,children:_}),e[36]=_,e[37]=l,e[38]=P):P=e[38],P}function Ue(d){const e=T.c(21),{platform:t,seo:n,host:v,path:r,t:s}=d;let i;e[0]!==v||e[1]!==r||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==n||e[6]!==s?(i=t.layout==="search"?o.jsx(Be,{seo:n,host:v,path:r,t:s}):t.layout==="card"?o.jsx(Ie,{seo:n,host:v,path:r,t:s}):t.layout==="chat"?o.jsx(Le,{seo:n,host:v,path:r,accent:t.color,t:s}):o.jsx(Oe,{seo:n,host:v,path:r,accent:t.color,dark:t.id==="discord",t:s}),e[0]=v,e[1]=r,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=n,e[6]=s,e[7]=i):i=e[7];const a=i;let m;e[8]!==t.color?(m=o.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=m):m=e[9];let p;e[10]!==t.labelKey||e[11]!==s?(p=s(t.labelKey),e[10]=t.labelKey,e[11]=s,e[12]=p):p=e[12];let f;e[13]!==p?(f=o.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:p}),e[13]=p,e[14]=f):f=e[14];let l;e[15]!==m||e[16]!==f?(l=o.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[m,f]}),e[15]=m,e[16]=f,e[17]=l):l=e[17];let c;return e[18]!==a||e[19]!==l?(c=o.jsxs("div",{children:[l,a]}),e[18]=a,e[19]=l,e[20]=c):c=e[20],c}function Ae(d){const e=T.c(18),{seo:t,url:n,path:v}=d,r=v===void 0?"/":v,s=ve();let i,a,m;if(e[0]!==t||e[1]!==n){const u=ze(t);i=u,a=he(u.image,n),m=he(u.favicon,n),e[0]=t,e[1]=n,e[2]=i,e[3]=a,e[4]=m}else i=e[2],a=e[3],m=e[4];let p;e[5]!==i||e[6]!==a||e[7]!==m?(p={...i,image:a,favicon:m},e[5]=i,e[6]=a,e[7]=m,e[8]=p):p=e[8];const f=p;let l;e[9]!==n?(l=De(n),e[9]=n,e[10]=l):l=e[10];const c=l,h=r==="/"?"":r;let x;e[11]!==h||e[12]!==c||e[13]!==s||e[14]!==f?(x=$e.map(u=>o.jsx(Ue,{platform:u,seo:f,host:c,path:h,t:s},u.id)),e[11]=h,e[12]=c,e[13]=s,e[14]=f,e[15]=x):x=e[15];let y;return e[16]!==x?(y=o.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:x}),e[16]=x,e[17]=y):y=e[17],y}function $i(d){const e=T.c(70),{orgSlug:t,virtualMcpId:n,branch:v,decofile:r,meta:s,target:i,previewBaseUrl:a,onSaved:m,onEditDefaultSeo:p,onBack:f}=d,l=ve(),c=Ne(r,i,s),h=c?.seoData,x=i.kind==="site"?"site":i.pageKey,[y,u]=ee.useState(x),[S,g]=ee.useState(null),[b,j]=ee.useState(0),[k,N]=ee.useState(void 0);y!==x&&(u(x),g(null),N(void 0),j(Ge));const{persistSeo:w,persistRawSeo:_,flush:P,isPending:te}=we({orgSlug:t,virtualMcpId:n,branch:v,target:i,resolved:c,onSaved:m}),M=i.kind==="page",ge=M?c?.rawSeoData:void 0,U=k!==void 0?k:ge,be=M?_e(U)??void 0:void 0,E=S??be??h??{},F=c?Ee(E,c):null,K=F&&(!M||Pe(U))?Ke(F,s):null;let G;e[0]!==s?(G=Te(s),e[0]=s,e[1]=G):G=e[1];const oe=G;let R,H;e[2]!==r||e[3]!==E||e[4]!==s||e[5]!==i.kind?(R=i.kind==="page"?Fe(r,s)?.seoData??{}:{},H=i.kind==="page"?Ve(R,E):E,e[2]=r,e[3]=E,e[4]=s,e[5]=i.kind,e[6]=R,e[7]=H):(R=e[6],H=e[7]);const ie=H;let V;e[8]!==w||e[9]!==c||e[10]!==g?(V=C=>{if(!c)return;const pe=C;g(pe),w(pe)},e[8]=w,e[9]=c,e[10]=g,e[11]=V):V=e[11];const se=V;let W;e[12]!==g?(W=()=>g(null),e[12]=g,e[13]=W):W=e[13];const le=W;let q;e[14]!==j?(q=()=>j(Me),e[14]=j,e[15]=q):q=e[15];const re=q;let J;e[16]!==P||e[17]!==f?(J=()=>{P(),f?.()},e[16]=P,e[17]=f,e[18]=J):J=e[18];const ce=J,z=i.kind==="page"?i.path:"/";let Q;e[19]!==z||e[20]!==a||e[21]!==i.kind?(Q=i.kind==="page"&&a?He(z,a):a??null,e[19]=z,e[20]=a,e[21]=i.kind,e[22]=Q):Q=e[22];const ne=Q;let X;e[23]!==c||e[24]!==l||e[25]!==i.kind?(X=i.kind==="site"?l("sectionsEditor.seoEditor.noSiteSeoBlock"):l(c?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[23]=c,e[24]=l,e[25]=i.kind,e[26]=X):X=e[26];const ae=X,Y=M&&c,me=i.kind==="site"&&c&&K;let D;e[27]!==ce||e[28]!==l||e[29]!==i.kind||e[30]!==i.pageName?(D=i.kind==="page"?o.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[o.jsx("button",{type:"button",onClick:ce,title:i.pageName,className:"min-w-0 truncate rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:i.pageName}),o.jsx(ke,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):o.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[o.jsx(fe,{size:16,className:"shrink-0 text-muted-foreground"}),o.jsx("span",{className:"text-sm font-medium",children:l("sectionsEditor.seoEditor.defaultSeoLabel")}),o.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",l("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[27]=ce,e[28]=l,e[29]=i.kind,e[30]=i.pageName,e[31]=D):D=e[31];let $;e[32]!==te?($=te&&o.jsx(Se,{size:14,className:"animate-spin text-muted-foreground"}),e[32]=te,e[33]=$):$=e[33];let B;e[34]!==p||e[35]!==l||e[36]!==i.kind?(B=i.kind==="page"&&p&&o.jsxs(je,{type:"button",variant:"outline",size:"sm",onClick:p,children:[o.jsx(fe,{size:14}),l("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[34]=p,e[35]=l,e[36]=i.kind,e[37]=B):B=e[37];let I;e[38]!==$||e[39]!==B?(I=o.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[$,B]}),e[38]=$,e[39]=B,e[40]=I):I=e[40];let L;e[41]!==I||e[42]!==D?(L=o.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[D,I]}),e[41]=I,e[42]=D,e[43]=L):L=e[43];let O;e[44]!==F||e[45]!==re||e[46]!==le||e[47]!==oe||e[48]!==U||e[49]!==E||e[50]!==ae||e[51]!==b||e[52]!==se||e[53]!==z||e[54]!==_||e[55]!==w||e[56]!==ie||e[57]!==ne||e[58]!==c||e[59]!==K||e[60]!==g||e[61]!==N||e[62]!==Y||e[63]!==me||e[64]!==R||e[65]!==l?(O=!c||!Y&&!me?o.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ae}):o.jsxs("div",{className:"flex min-h-0 flex-1",children:[o.jsx(xe,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-5 py-4",children:Y?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:l("sectionsEditor.seoEditor.emptyFieldsHint")}),o.jsx(Re,{rawSeo:U,innerSeo:E,defaultResolveType:oe,seoSchema:K,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:b,siteDefaultSeo:R,onPersistRaw:C=>{N(C),_(C)},onInnerChange:C=>{g(C),w(C)},onClearForm:le,onBumpFormKey:re})]}):K&&F&&o.jsx(Ce,{schema:K,resolveType:F,value:E,formResetKey:b,onChange:se})})}),o.jsx(xe,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"@container px-5 py-4",children:o.jsx(Ae,{seo:ie,url:ne,path:z})})})]}),e[44]=F,e[45]=re,e[46]=le,e[47]=oe,e[48]=U,e[49]=E,e[50]=ae,e[51]=b,e[52]=se,e[53]=z,e[54]=_,e[55]=w,e[56]=ie,e[57]=ne,e[58]=c,e[59]=K,e[60]=g,e[61]=N,e[62]=Y,e[63]=me,e[64]=R,e[65]=l,e[66]=O):O=e[66];let Z;return e[67]!==L||e[68]!==O?(Z=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[L,O]}),e[67]=L,e[68]=O,e[69]=Z):Z=e[69],Z}function Me(d){return d+1}function Ge(d){return d+1}function He(d,e){try{return new URL(d,e).href}catch{return e}}function Ve(d,e){const t=e.__resolveType,n=d.__resolveType;if(typeof t=="string"&&typeof n=="string"&&t!==n)return{...e};const v={...d};for(const[r,s]of Object.entries(e))r!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(v[r]=s));return v}export{$i as SeoEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CDl3iJBt.js","assets/index-DFLgFxCU.js","assets/index-DfOjcoHJ.css","assets/Tool02-Cq6gKq_1.js","assets/CheckCircle-BkmaYNCP.js","assets/Settings02-DrTZcRX-.js","assets/use-mcp-client-szamxkrm.js","assets/constants-_08zpzmT.js","assets/auth-BGxGKus-.js","assets/useInfiniteQuery-BNOQmJWR.js","assets/use-infinite-scroll-BmJZHdH2.js","assets/badge-CMqOdBs6.js","assets/input-IpTrNNJK.js","assets/dropdown-menu-ChDb5LR3.js","assets/Check-gRWVjUzZ.js","assets/ChevronRight-CXqx2KrQ.js","assets/DotsVertical-4yIS8kk7.js","assets/table-DMGTpflk.js","assets/toggle-group-BguaYxUf.js","assets/use-view-mode-BxBV7mFe.js","assets/FilterLines-DGnSQE6u.js","assets/Globe01-CVlnm8Vf.js","assets/SearchMd-CBK6moam.js","assets/dialog-B3BgSy1E.js","assets/AlertCircle-ABVDbGAL.js","assets/Download01-CxaHLMQQ.js","assets/Upload01-Bg3o5Ezk.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-CsZOKQYF.js","assets/Trash01-CUEOrI6U.js","assets/label-t9Mx8W7B.js","assets/select-D3GT34Gy.js","assets/ChevronDown-CxaLjh_R.js","assets/ChevronUp-DmiMplG3.js","assets/switch-D04_64ue.js","assets/textarea-De5kGfMV.js","assets/ArrowLeft-Czvz3aRl.js","assets/XCircle-C2RmScL8.js","assets/checkbox-D0HGV5ZN.js","assets/Eye-CUqIajCp.js","assets/LinkExternal01-DyBmPgM5.js","assets/use-copy-B6rwWnEN.js","assets/Copy01-BfieAdQP.js","assets/Key01-C2W3DW4y.js","assets/Plus-BkApqW-G.js","assets/mcp-oauth-BAVqpDLL.js","assets/Play-BFMaYRsr.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-DFLgFxCU.js";import{R as u}from"./require-capability-D2wSKKwc.js";import"./access-gate-VYHqUBjs.js";import"./capability-load-error-CfkA0f1M.js";const g=l.lazy(()=>p(()=>import("./registry-layout-CDl3iJBt.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-BmJZHdH2.js";import{eR as i}from"./index-DFLgFxCU.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-BmJZHdH2.js";import{eR as u,bD as n}from"./index-DFLgFxCU.js";function a(e,r){return u({...e,enabled:!0,suspense:!0,throwOnError:n},s,r)}export{a as u};
|