decocms 3.84.0 → 3.84.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-D7JULgSW.js → AlertCircle-CmMED3h6.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-BoNegK2J.js → ArrowUpRight-DwILncVx.js} +1 -1
- package/dist/client/assets/{CheckCircle-CubOqkhM.js → CheckCircle-DpKZZDmN.js} +1 -1
- package/dist/client/assets/{ChevronDown-bvcGltsD.js → ChevronDown-BjzwFuai.js} +1 -1
- package/dist/client/assets/{ChevronLeft-CwoAKT1V.js → ChevronLeft-uRkOj5F8.js} +1 -1
- package/dist/client/assets/{ChevronRight-JjxX5FP7.js → ChevronRight-BRGGbOax.js} +1 -1
- package/dist/client/assets/{ChevronUp-BHC7PPdP.js → ChevronUp-CzO_7LvF.js} +1 -1
- package/dist/client/assets/{DotsVertical-lhkCwVyZ.js → DotsVertical-DshGnU_X.js} +1 -1
- package/dist/client/assets/{Eye-DDlQv8dT.js → Eye-BBVg-SSa.js} +1 -1
- package/dist/client/assets/{FilterLines-5NaQCp3e.js → FilterLines-CowTK4HW.js} +1 -1
- package/dist/client/assets/{Globe01-DPxNkWN3.js → Globe01-Cm82tRCS.js} +1 -1
- package/dist/client/assets/{Globe04-CfOFRbjm.js → Globe04-DrE78eQQ.js} +1 -1
- package/dist/client/assets/{HardDrive-Cc6TayZG.js → HardDrive-DsahIXX5.js} +1 -1
- package/dist/client/assets/{Key01-BnvBI-54.js → Key01-CwoTMTFC.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BqPxwhfG.js → LayoutLeft-_ZNcVcNz.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Cuz2KimH.js → LinkExternal01-BeE3-oct.js} +1 -1
- package/dist/client/assets/{Monitor01-Bg2cIqWO.js → Monitor01-Aa4wN2Ct.js} +1 -1
- package/dist/client/assets/{Palette-DqDQ3lBi.js → Palette-DT-obB9z.js} +1 -1
- package/dist/client/assets/{Play-DJY7X3Ac.js → Play-D7fUrl6h.js} +1 -1
- package/dist/client/assets/{Plus-BPXRSHah.js → Plus-CK2CAzo5.js} +1 -1
- package/dist/client/assets/{SearchMd-BzO607jf.js → SearchMd-B3Rw93l5.js} +1 -1
- package/dist/client/assets/{Settings02-B7JvRibZ.js → Settings02-B1ZVVT_e.js} +1 -1
- package/dist/client/assets/{Shield01-CpKySeSn.js → Shield01-BR2mZOZb.js} +1 -1
- package/dist/client/assets/{Star01-Ctay-f61.js → Star01-DBcQByZk.js} +1 -1
- package/dist/client/assets/{Stars01-BvSyxIB7.js → Stars01-aJC5veoy.js} +1 -1
- package/dist/client/assets/{Stars02-0cy3Iac4.js → Stars02-BwRZ8reG.js} +1 -1
- package/dist/client/assets/{Sun-VAruoT-r.js → Sun-BMePDS8S.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-B1Fi_gZm.js → SwitchHorizontal01-B_NmbobE.js} +1 -1
- package/dist/client/assets/{Tool01-BMBmO996.js → Tool01-CZPk8Ney.js} +1 -1
- package/dist/client/assets/{Trash01-bpIqJEin.js → Trash01-SWS-_O9Z.js} +1 -1
- package/dist/client/assets/{Upload01-DRwUypcB.js → Upload01-CoqelT_E.js} +1 -1
- package/dist/client/assets/{User01-CNb4uOQF.js → User01-Do5enW22.js} +1 -1
- package/dist/client/assets/{Users01-Dznayvgx.js → Users01-BmWtNHuf.js} +1 -1
- package/dist/client/assets/{Users03-3hrg8IdJ.js → Users03-B_G71vm-.js} +1 -1
- package/dist/client/assets/{X-BmLEy_4s.js → X-CO9z9Xp0.js} +1 -1
- package/dist/client/assets/{XCircle-lg1atJo8.js → XCircle-BFWoSw7W.js} +1 -1
- package/dist/client/assets/{XClose-DgeTXvEe.js → XClose-BO6FjXoT.js} +1 -1
- package/dist/client/assets/{Zap-yzjfF5fD.js → Zap-Bs_ao0zW.js} +1 -1
- package/dist/client/assets/{ZapSquare-CB80bsBy.js → ZapSquare-CmQdJEdR.js} +1 -1
- package/dist/client/assets/{ZoomOut-Da8en56C.js → ZoomOut-BR28jpI9.js} +1 -1
- package/dist/client/assets/{access-gate-BK8VNoXv.js → access-gate-mrUaShW4.js} +1 -1
- package/dist/client/assets/{add-section-modal-CIpKj9LO.js → add-section-modal-BTy1RUe_.js} +1 -1
- package/dist/client/assets/{agent-icon-_F0cs0c2.js → agent-icon-BB0OI_Zf.js} +1 -1
- package/dist/client/assets/{agents-list-DjjL_a90.js → agents-list-DP438aHv.js} +1 -1
- package/dist/client/assets/{ai-providers-CljQzJuo.js → ai-providers-CHjXy2IX.js} +1 -1
- package/dist/client/assets/{alert-Dj9lc9TR.js → alert-FpAPxAaA.js} +1 -1
- package/dist/client/assets/{alert-dialog-DlpOAGY3.js → alert-dialog-CU4F0Cas.js} +1 -1
- package/dist/client/assets/{app-editor-DTsz2SiG.js → app-editor-DbyBYBd1.js} +1 -1
- package/dist/client/assets/{auth-CX0V_g3E.js → auth-DscXYOeb.js} +1 -1
- package/dist/client/assets/{auth-catchall-Czx8XBA8.js → auth-catchall-BtmfoD1y.js} +1 -1
- package/dist/client/assets/{auth-entry-BlZh1m7O.js → auth-entry-CC1ARBuN.js} +1 -1
- package/dist/client/assets/{auth-split-layout-D8DmmoYv.js → auth-split-layout-Cxddqcmf.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Bb4qQGZD.js → authenticate-and-persist-oauth-KVWekoHI.js} +1 -1
- package/dist/client/assets/{automation-list-row-DikFLwfj.js → automation-list-row-DdnU0_oJ.js} +1 -1
- package/dist/client/assets/{automation-runs-z2Y1nDjt.js → automation-runs-CxkH2J7y.js} +1 -1
- package/dist/client/assets/{automations-h6AjBdGl.js → automations-CHJDB1Wn.js} +1 -1
- package/dist/client/assets/{avatar-DMMu0sLX.js → avatar-B2rvHJ2u.js} +1 -1
- package/dist/client/assets/{badge-BIOaHIWt.js → badge-Bu3HgcYX.js} +1 -1
- package/dist/client/assets/{block-document-xN8KRLYP.js → block-document-DR69_B0F.js} +1 -1
- package/dist/client/assets/{brand-context-B2j85pK0.js → brand-context-BsVjZN3k.js} +1 -1
- package/dist/client/assets/{buckets-OAl0L0y1.js → buckets-BH1wtZ3x.js} +1 -1
- package/dist/client/assets/{capability-load-error-DRTuvJDl.js → capability-load-error-CmAUMxoM.js} +1 -1
- package/dist/client/assets/{card-CwFHuYuT.js → card-kDiEfTw9.js} +1 -1
- package/dist/client/assets/category-editor-CAYNohGr.js +1 -0
- package/dist/client/assets/{chat-context-dU2BBYFR.js → chat-context-D6S41DOV.js} +1 -1
- package/dist/client/assets/{checkbox-Cbr8t7kQ.js → checkbox-CsCGEg8f.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CVzhF-RY.js → cli-auth-success-B79VcMNm.js} +1 -1
- package/dist/client/assets/{collection-detail-B3A3YP9y.js → collection-detail-BV78giTN.js} +1 -1
- package/dist/client/assets/{collection-display-button-CTjP_ikN.js → collection-display-button-BKfSRcS4.js} +1 -1
- package/dist/client/assets/{collection-search-DUL6ybNZ.js → collection-search-Did_rDKr.js} +1 -1
- package/dist/client/assets/{collection-tabs-D6_rF5iF.js → collection-tabs-BWGqEvBL.js} +1 -1
- package/dist/client/assets/{command-BDSPStF6.js → command-HyE3vuW8.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-DtQQW42S.js → commerce-onboarding-CbmMdla_.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-CN-ahIvP.js → connect-desktop-dialog-DzyRhy80.js} +1 -1
- package/dist/client/assets/{connection-card-Cshe8IMI.js → connection-card-D0jDIFWU.js} +1 -1
- package/dist/client/assets/{connection-detail-BxVpiSkZ.js → connection-detail-CTydjWNJ.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DNsEuVwo.js → connection-form-helpers-DoxJStk3.js} +1 -1
- package/dist/client/assets/{connections-B6wVut4v.js → connections-BZqNukEV.js} +1 -1
- package/dist/client/assets/{context-menu-BgxmhhXb.js → context-menu-CBHA394l.js} +1 -1
- package/dist/client/assets/{decopilot-CM0ZbqCj.js → decopilot-Cs0sTBvJ.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DStYMiox.js → decopilot-sse-pool-DCimHDb8.js} +1 -1
- package/dist/client/assets/{dialog-YEMhf2fI.js → dialog-D4-cpiIq.js} +1 -1
- package/dist/client/assets/{domain-settings-Dp98eSJW.js → domain-settings-CpdgF4g-.js} +1 -1
- package/dist/client/assets/{drawer-CbS8-Awm.js → drawer-EynyRy5s.js} +1 -1
- package/dist/client/assets/{dropdown-menu-B5yyPfJy.js → dropdown-menu-DgXWnPV7.js} +1 -1
- package/dist/client/assets/{empty-state-BBWaUmc0.js → empty-state-BqLGg5Qt.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DW6_hSwc.js → extract-connection-data-BrfuWfn9.js} +1 -1
- package/dist/client/assets/{file-explorer-B-BDqfr8.js → file-explorer-l8kW6-_R.js} +1 -1
- package/dist/client/assets/{file-type-icon-CRFnZTrI.js → file-type-icon-vWAzpBPp.js} +1 -1
- package/dist/client/assets/{files-BwRx28HU.js → files-CelzOm7s.js} +1 -1
- package/dist/client/assets/{form-uOBsFqj5.js → form-C0rXEiGF.js} +1 -1
- package/dist/client/assets/{general-C-as289_.js → general-Bcxz5b3F.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CQzVJw3M.js → github-repo-picker-BMm6sNS0.js} +1 -1
- package/dist/client/assets/{hooks-Bsl1fBrR.js → hooks-iTnRVGBT.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-CMi4FLQI.js → import-from-deco-dialog-CEwUaYj8.js} +1 -1
- package/dist/client/assets/{index-Cczp3zRq.js → index-7--My7Kk.js} +7 -7
- package/dist/client/assets/{index-CysG6elH.js → index-BHPHIMku.js} +1 -1
- package/dist/client/assets/{index-BVGtxGJp.js → index-BafofCVM.js} +1 -1
- package/dist/client/assets/{index-Bnzp0u27.js → index-BeL2IYvj.js} +1 -1
- package/dist/client/assets/{index-DwYMCCVI.js → index-Bt_ZjPsW.js} +1 -1
- package/dist/client/assets/{index-Da7zBgP3.js → index-C1yj8oW9.js} +3 -3
- package/dist/client/assets/{index-CEhY-HWu.js → index-C6QKjDvm.js} +1 -1
- package/dist/client/assets/{index-B5iWctwe.js → index-C9vgWyOp.js} +1 -1
- package/dist/client/assets/{index-CLUU6mBc.js → index-CChD3seh.js} +1 -1
- package/dist/client/assets/{index-Cl2voHhm.js → index-ChS8eVb4.js} +1 -1
- package/dist/client/assets/{index-BbZOuhzX.js → index-D5MvY5fk.js} +1 -1
- package/dist/client/assets/{index-CCgrVLOE.js → index-D6W1a9Ed.js} +1 -1
- package/dist/client/assets/{index-_O-v3DMq.js → index-DU_rFtey.js} +1 -1
- package/dist/client/assets/{index-DQbPuQyy.js → index-nQQO626p.js} +1 -1
- package/dist/client/assets/{index-redirect-D9E-kRrz.js → index-redirect-ZLqUsySW.js} +1 -1
- package/dist/client/assets/{index-iwyGvJw3.js → index-uuDmStBi.js} +1 -1
- package/dist/client/assets/{input-JrKcP8_P.js → input-CjEjpxdM.js} +1 -1
- package/dist/client/assets/{integration-icon-BefRgu4d.js → integration-icon-CSYS5mut.js} +1 -1
- package/dist/client/assets/{label-DamWvDSp.js → label-B1XS6835.js} +1 -1
- package/dist/client/assets/{login-CsrgI9dD.js → login-BwzmQ6Vl.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DggY1DlO.js → mcp-oauth-RIVS58UD.js} +1 -1
- package/dist/client/assets/{members-DkmZZg6p.js → members-Cv5_M0H8.js} +1 -1
- package/dist/client/assets/{monaco-editor-D7lo6yjy.js → monaco-editor-BhcbAKhi.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B-0pMNdb.js → monitoring-stats-row-D2hdprzy.js} +1 -1
- package/dist/client/assets/{oauth-callback-BdNMG3d8.js → oauth-callback-Ca8aLtLz.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DRiOpOG0.js → oauth-callback-ai-provider-nS8-aDg-.js} +1 -1
- package/dist/client/assets/{onboarding-DpiL92Sf.js → onboarding-DokdM2si.js} +1 -1
- package/dist/client/assets/{org-install-BmVHa_cl.js → org-install-CFBQ5UN5.js} +1 -1
- package/dist/client/assets/{org-layout-D5M_L5al.js → org-layout-2xw7J9o1.js} +1 -1
- package/dist/client/assets/{organization-choice-CCRYa54g.js → organization-choice-B7gbF-gx.js} +1 -1
- package/dist/client/assets/{page-seo-form-C28dqfPj.js → page-seo-form-B9gdIgu6.js} +1 -1
- package/dist/client/assets/page-seo-sheet-Dim8a_29.js +1 -0
- package/dist/client/assets/{popover-BWJVGvw4.js → popover-C7DR14Uv.js} +1 -1
- package/dist/client/assets/post-editor-Dwsexwwq.js +1 -0
- package/dist/client/assets/{preview-dialog-EpRi5xxw.js → preview-dialog-D0Xo8R0Y.js} +1 -1
- package/dist/client/assets/{primitives-BMQA8oJA.js → primitives-BGDftBXt.js} +1 -1
- package/dist/client/assets/{profile-Dk2P6dGP.js → profile-Tt594UKC.js} +1 -1
- package/dist/client/assets/project-app-view-BWGayozD.js +1 -0
- package/dist/client/assets/record-editor-Cf-PzES3.js +1 -0
- package/dist/client/assets/registry-Bt-hzkrl.js +2 -0
- package/dist/client/assets/{registry-layout-DrMxvc62.js → registry-layout-CepDP4zO.js} +1 -1
- package/dist/client/assets/{require-capability-DQB_sHm-.js → require-capability-CI6JAqgD.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CEA-lcqq.js → required-auth-layout-Be42uHMA.js} +1 -1
- package/dist/client/assets/{reset-password-CAhEe0y_.js → reset-password-vSV6JpaW.js} +1 -1
- package/dist/client/assets/{roles-DSDcdczA.js → roles-DVimCkc2.js} +1 -1
- package/dist/client/assets/{save-status-ByqPY8sQ.js → save-status-B4LrYjc4.js} +1 -1
- package/dist/client/assets/{scroll-area-CDnhflx8.js → scroll-area-Btbw5x0S.js} +1 -1
- package/dist/client/assets/{search-input-E5lbuSaQ.js → search-input-BJySI9eP.js} +1 -1
- package/dist/client/assets/{secrets-HQJKo8ct.js → secrets-CgCqWHuI.js} +1 -1
- package/dist/client/assets/sections-editor-73TndVEn.js +2 -0
- package/dist/client/assets/{select-BRu_aocD.js → select-Bdte2-mH.js} +1 -1
- package/dist/client/assets/{select-model-D6u-jQT1.js → select-model-Da9fCD4_.js} +1 -1
- package/dist/client/assets/{seo-editor-uydyhvcD.js → seo-editor-oYyGw_6F.js} +1 -1
- package/dist/client/assets/{settings-layout-K84_EKqf.js → settings-layout-CnLgsNWc.js} +1 -1
- package/dist/client/assets/{settings-section-CMKiU6m1.js → settings-section-BIuqqQso.js} +1 -1
- package/dist/client/assets/{sheet-B0e56Uwi.js → sheet-CzR0tmZA.js} +1 -1
- package/dist/client/assets/{shell-controls-iDS_YYSh.js → shell-controls-B_8RFrNm.js} +1 -1
- package/dist/client/assets/{shell-layout-DCRByz-Z.js → shell-layout-DPTryinF.js} +1 -1
- package/dist/client/assets/{shell-route-loading-CnU2JL57.js → shell-route-loading-D5ohEyID.js} +1 -1
- package/dist/client/assets/{sidebar-muO-r9NM.js → sidebar-BLFhVRa1.js} +1 -1
- package/dist/client/assets/{skeleton-D_Y0mVys.js → skeleton-BhIDQEW6.js} +1 -1
- package/dist/client/assets/{sortable.esm-DZfVcKsT.js → sortable.esm-BrVUE0Ot.js} +1 -1
- package/dist/client/assets/{sso-GaI62zkx.js → sso-Dz4ih-D0.js} +1 -1
- package/dist/client/assets/{store-ek5K_sQV.js → store-41qcx4ON.js} +1 -1
- package/dist/client/assets/store-registry-Du1ihhH9.js +2 -0
- package/dist/client/assets/{studio-tools-Cxzj-LYh.js → studio-tools-cTyVqaHA.js} +1 -1
- package/dist/client/assets/{switch-DPUXI2pE.js → switch-DoFOdYGu.js} +1 -1
- package/dist/client/assets/{table-D7DRjfAO.js → table-zRS7Teha.js} +1 -1
- package/dist/client/assets/{tabs-CTiHAHkO.js → tabs-CQOpbrKh.js} +1 -1
- package/dist/client/assets/{task-status-CzPGYn0R.js → task-status-DjLIycFQ.js} +1 -1
- package/dist/client/assets/{textarea-rSIhk1As.js → textarea-Cya3KDiz.js} +1 -1
- package/dist/client/assets/{toggle-group-D0HpOa1A.js → toggle-group-DENfWHtP.js} +1 -1
- package/dist/client/assets/{toolbar-CWstIAgU.js → toolbar-CO9czXOO.js} +1 -1
- package/dist/client/assets/{tooltip-B7dbgru1.js → tooltip-Cvbl_0l0.js} +1 -1
- package/dist/client/assets/{types-DiVU1HF6.js → types-DkLih0NK.js} +1 -1
- package/dist/client/assets/{use-ai-providers-UVcAibrU.js → use-ai-providers-BB_netT8.js} +1 -1
- package/dist/client/assets/{use-automations-DyhWqZVe.js → use-automations-C4-BEJDp.js} +1 -1
- package/dist/client/assets/{use-capability-Dkucj2kh.js → use-capability-DtJSLljk.js} +1 -1
- package/dist/client/assets/{use-clock-tick-C8csRlSk.js → use-clock-tick-Bo_9gN4h.js} +1 -1
- package/dist/client/assets/{use-collections-Ce8iOx08.js → use-collections-C5z5SeL0.js} +1 -1
- package/dist/client/assets/{use-connection-MqRKkZiS.js → use-connection-DYuQNBQ8.js} +1 -1
- package/dist/client/assets/{use-copy-BXiwiMZD.js → use-copy-V2SquoUh.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-EFJS-btq.js → use-create-virtual-mcp-DqGii1ks.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-UYvEWk6q.js → use-debounced-autosave-B5XSTYsz.js} +1 -1
- package/dist/client/assets/{use-delete-connection-tf7cUWDI.js → use-delete-connection-D_b2gPBM.js} +1 -1
- package/dist/client/assets/{use-file-configs-Caz1V2y2.js → use-file-configs-CSX8A1vE.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-D-1sc3vv.js → use-infinite-scroll-BaJGyvxX.js} +1 -1
- package/dist/client/assets/{use-join-requests-jqRgPged.js → use-join-requests-dGis0QYB.js} +1 -1
- package/dist/client/assets/{use-mcp-client-QbDw5Kxr.js → use-mcp-client-90IJIS7G.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CJoxcvaa.js → use-mcp-prompts-D2ucpusX.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CwE0F1Fa.js → use-mcp-tools-IJf4yY8f.js} +1 -1
- package/dist/client/assets/{use-members-DqOAFyvD.js → use-members-DSWXPVdi.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CHwphTrt.js → use-navigate-to-agent-D_hba2ju.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-Cw-eW4eJ.js → use-org-auth-client-Bmz_glRx.js} +1 -1
- package/dist/client/assets/{use-org-sso-DYW-70GB.js → use-org-sso-d8VUjdDF.js} +1 -1
- package/dist/client/assets/{use-organization-roles-C929xbIg.js → use-organization-roles-AnHrNvDP.js} +1 -1
- package/dist/client/assets/{use-organization-settings-B7zELDxl.js → use-organization-settings-B-FYwlct.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DSvlh2CW.js → use-registry-connections-COP2SiNd.js} +1 -1
- package/dist/client/assets/{use-secrets-BGVjiXmA.js → use-secrets-CgpawoY3.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Bwl21Nte.js → use-status-sounds-CO3Rxsnj.js} +1 -1
- package/dist/client/assets/{use-view-mode-DeBJ3OlV.js → use-view-mode-CbF51x_n.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-D3YjjDr2.js → use-virtual-mcp-yUKVcLc_.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BxIrRxsB.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DENvoLd9.js +1 -0
- package/dist/client/assets/{variant-calendar-C5R5bfKc.js → variant-calendar-Cjzj9fQr.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BMm_SU4X.js → view-mode-toggle-D1TNBVMm.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +380 -380
- package/dist/server/server.js +246 -246
- package/package.json +1 -1
- package/dist/client/assets/category-editor-DrrOt_5R.js +0 -1
- package/dist/client/assets/page-seo-sheet-C6YR_NxM.js +0 -1
- package/dist/client/assets/post-editor-BRqcUmQd.js +0 -1
- package/dist/client/assets/project-app-view-TZf9g1ss.js +0 -1
- package/dist/client/assets/record-editor-ChJ6RVXx.js +0 -1
- package/dist/client/assets/registry-HmZZwFRK.js +0 -2
- package/dist/client/assets/sections-editor-LwvHy6hA.js +0 -2
- package/dist/client/assets/store-registry-2fFie2P8.js +0 -2
- package/dist/client/assets/useInfiniteQuery-W7QqfcbQ.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-f7kozjC6.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as st,j as e,B as mt}from"./index-Da7zBgP3.js";import{i as pt}from"./XCircle-lg1atJo8.js";import{U as lt}from"./agent-icon-_F0cs0c2.js";import{I as tt}from"./input-JrKcP8_P.js";import{L as et}from"./label-DamWvDSp.js";import{ar as at,as as nt,aA as ct,at as ft}from"./index-Cczp3zRq.js";import{u as dt,s as M,I as gt}from"./primitives-BMQA8oJA.js";import{S as ut}from"./save-status-ByqPY8sQ.js";import{a as xt,B as ht,b as yt}from"./block-document-xN8KRLYP.js";import"./AlertCircle-D7JULgSW.js";import"./Tool01-BMBmO996.js";import"./SwitchHorizontal01-B1Fi_gZm.js";import"./Settings02-B7JvRibZ.js";import"./ArrowUpRight-BoNegK2J.js";import"./ZapSquare-CB80bsBy.js";import"./Users03-3hrg8IdJ.js";import"./CheckCircle-CubOqkhM.js";import"./ChevronUp-BHC7PPdP.js";import"./ChevronDown-bvcGltsD.js";import"./ChevronLeft-CwoAKT1V.js";import"./ChevronRight-JjxX5FP7.js";import"./DotsVertical-lhkCwVyZ.js";import"./Stars02-0cy3Iac4.js";import"./Eye-DDlQv8dT.js";import"./ZoomOut-Da8en56C.js";import"./Globe01-DPxNkWN3.js";import"./FilterLines-5NaQCp3e.js";import"./Star01-Ctay-f61.js";import"./Globe04-CfOFRbjm.js";import"./HardDrive-Cc6TayZG.js";import"./Key01-BnvBI-54.js";import"./LayoutLeft-BqPxwhfG.js";import"./LinkExternal01-Cuz2KimH.js";import"./Monitor01-Bg2cIqWO.js";import"./Sun-VAruoT-r.js";import"./Palette-DqDQ3lBi.js";import"./Play-DJY7X3Ac.js";import"./Plus-BPXRSHah.js";import"./SearchMd-BzO607jf.js";import"./Shield01-CpKySeSn.js";import"./Stars01-BvSyxIB7.js";import"./Trash01-bpIqJEin.js";import"./Upload01-DRwUypcB.js";import"./User01-CNb4uOQF.js";import"./Users01-Dznayvgx.js";import"./XClose-DgeTXvEe.js";import"./X-BmLEy_4s.js";import"./Zap-yzjfF5fD.js";import"./index-Cl2voHhm.js";import"./chat-context-dU2BBYFR.js";import"./hooks-Bsl1fBrR.js";import"./use-mcp-client-QbDw5Kxr.js";import"./auth-CX0V_g3E.js";import"./decopilot-sse-pool-DStYMiox.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-D3YjjDr2.js";import"./use-collections-Ce8iOx08.js";import"./use-ai-providers-UVcAibrU.js";import"./studio-tools-Cxzj-LYh.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-B7zELDxl.js";import"./scroll-area-CDnhflx8.js";import"./use-clock-tick-C8csRlSk.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BXiwiMZD.js";import"./tooltip-B7dbgru1.js";import"./index-iwyGvJw3.js";import"./file-type-icon-CRFnZTrI.js";import"./dialog-YEMhf2fI.js";import"./content-blocks-o63cs2vh.js";import"./types-DiVU1HF6.js";import"./shell-layout-DCRByz-Z.js";import"./avatar-DMMu0sLX.js";import"./required-auth-layout-CEA-lcqq.js";import"./use-org-sso-DYW-70GB.js";import"./sheet-B0e56Uwi.js";import"./integration-icon-BefRgu4d.js";import"./use-navigate-to-agent-CHwphTrt.js";import"./use-connection-MqRKkZiS.js";import"./use-mcp-prompts-CJoxcvaa.js";import"./form-uOBsFqj5.js";import"./select-BRu_aocD.js";import"./drawer-CbS8-Awm.js";import"./collection-search-DUL6ybNZ.js";import"./tabs-CTiHAHkO.js";import"./toggle-group-D0HpOa1A.js";import"./sortable.esm-DZfVcKsT.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-Cshe8IMI.js";import"./use-registry-connections-DSvlh2CW.js";import"./useInfiniteQuery-W7QqfcbQ.js";import"./use-infinite-scroll-D-1sc3vv.js";import"./extract-connection-data-DW6_hSwc.js";import"./card-CwFHuYuT.js";import"./collection-tabs-D6_rF5iF.js";import"./badge-BIOaHIWt.js";import"./textarea-rSIhk1As.js";import"./connection-form-helpers-DNsEuVwo.js";import"./authenticate-and-persist-oauth-Bb4qQGZD.js";import"./mcp-oauth-DggY1DlO.js";import"./useSuspenseInfiniteQuery-f7kozjC6.js";import"./connect-desktop-dialog-CN-ahIvP.js";import"./decopilot-CM0ZbqCj.js";import"./checkbox-Cbr8t7kQ.js";import"./skeleton-D_Y0mVys.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CMKiU6m1.js";import"./popover-BWJVGvw4.js";import"./command-BDSPStF6.js";import"./index-CEhY-HWu.js";import"./dropdown-menu-B5yyPfJy.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Bwl21Nte.js";import"./empty-state-BBWaUmc0.js";import"./toolbar-CWstIAgU.js";import"./preview-dialog-EpRi5xxw.js";import"./index-BbZOuhzX.js";import"./use-mcp-tools-CwE0F1Fa.js";import"./use-capability-Dkucj2kh.js";import"./shell-route-loading-CnU2JL57.js";import"./index-BVGtxGJp.js";import"./alert-dialog-DlpOAGY3.js";import"./switch-DPUXI2pE.js";import"./use-debounced-autosave-UYvEWk6q.js";import"./index-DwYMCCVI.js";import"./sidebar-muO-r9NM.js";import"./search-input-E5lbuSaQ.js";import"./github-repo-picker-CQzVJw3M.js";import"./use-secrets-BGVjiXmA.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-BMm_SU4X.js";import"./automation-runs-z2Y1nDjt.js";import"./table-D7DRjfAO.js";import"./use-members-DqOAFyvD.js";import"./use-org-auth-client-Cw-eW4eJ.js";import"./task-status-CzPGYn0R.js";import"./use-automations-DyhWqZVe.js";import"./use-file-configs-Caz1V2y2.js";import"./monaco-editor-D7lo6yjy.js";import"./select-model-D6u-jQT1.js";import"./automation-list-row-DikFLwfj.js";function Zi(it){const t=st.c(87),{orgSlug:p,virtualMcpId:l,branch:a,blockKey:z,block:G,decofile:H,meta:O,onManagePosts:Q}=it;let F;t[0]!==a||t[1]!==p||t[2]!==l?(F={orgSlug:p,virtualMcpId:l,branch:a},t[0]=a,t[1]=p,t[2]=l,t[3]=F):F=t[3];const m=at(F);let U;t[4]!==G?(U=nt(G,"categories"),t[4]=G,t[5]=U):U=t[5];const ot=U;let A;t[6]!==z||t[7]!==m?(A=o=>{m.mutate({blockKey:z,data:ft(z,"categories",o)})},t[6]=z,t[7]=m,t[8]=A):A=t[8];const[i,V]=dt(ot,A);let D;t[9]!==i||t[10]!==V?(D=(o,rt)=>V({...i,[o]:rt}),t[9]=i,t[10]=V,t[11]=D):D=t[11];const r=D;let s,L;t[12]!==i.slug||t[13]!==H?(s=M(i.slug),L=s?ct(H).filter(o=>o.categorySlugs.includes(s)).length:0,t[12]=i.slug,t[13]=H,t[14]=s,t[15]=L):(s=t[14],L=t[15]);const R=L;let n;t[16]!==i.name?(n=M(i.name)||"Untitled category",t[16]=i.name,t[17]=n):n=t[17];let c;t[18]!==n?(c=e.jsx("span",{className:"truncate text-sm font-medium",children:n}),t[18]=n,t[19]=c):c=t[19];let f;t[20]!==m.isError||t[21]!==m.isPending?(f=e.jsx(ut,{isPending:m.isPending,isError:m.isError}),t[20]=m.isError,t[21]=m.isPending,t[22]=f):f=t[22];let d;t[23]!==c||t[24]!==f?(d=e.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,f]}),t[23]=c,t[24]=f,t[25]=d):d=t[25];let g;t[26]!==i.name?(g=M(i.name),t[26]=i.name,t[27]=g):g=t[27];let u;t[28]!==r?(u=o=>r("name",o),t[28]=r,t[29]=u):u=t[29];let x;t[30]!==g||t[31]!==u?(x=e.jsx(gt,{value:g,onChange:u,placeholder:"Category name",className:"py-1 text-3xl font-bold text-foreground"}),t[30]=g,t[31]=u,t[32]=x):x=t[32];let T;t[33]===Symbol.for("react.memo_cache_sentinel")?(T=e.jsx(et,{htmlFor:"category-slug",children:"Slug"}),t[33]=T):T=t[33];let h;t[34]!==i.slug?(h=M(i.slug),t[34]=i.slug,t[35]=h):h=t[35];let y;t[36]!==r?(y=o=>r("slug",o.target.value),t[36]=r,t[37]=y):y=t[37];let j;t[38]!==h||t[39]!==y?(j=e.jsxs("div",{className:"mt-4 space-y-2",children:[T,e.jsx(tt,{id:"category-slug",value:h,onChange:y,placeholder:"my-category",className:"h-10"})]}),t[38]=h,t[39]=y,t[40]=j):j=t[40];let $;t[41]===Symbol.for("react.memo_cache_sentinel")?($=e.jsx(et,{htmlFor:"category-description",children:"Description"}),t[41]=$):$=t[41];let b;t[42]!==i.description?(b=M(i.description),t[42]=i.description,t[43]=b):b=t[43];let v;t[44]!==r?(v=o=>r("description",o.target.value),t[44]=r,t[45]=v):v=t[45];let N;t[46]!==b||t[47]!==v?(N=e.jsxs("div",{className:"mt-4 space-y-2",children:[$,e.jsx(tt,{id:"category-description",value:b,onChange:v,placeholder:"Short description for this category",className:"h-10"})]}),t[46]=b,t[47]=v,t[48]=N):N=t[48];let J;t[49]===Symbol.for("react.memo_cache_sentinel")?(J=e.jsx(lt,{size:16,className:"shrink-0 text-muted-foreground"}),t[49]=J):J=t[49];const X=R===1?"post":"posts";let S;t[50]!==R||t[51]!==X?(S=e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[J,e.jsxs("span",{className:"text-sm",children:[R," ",X," in this category"]})]}),t[50]=R,t[51]=X,t[52]=S):S=t[52];const Y=!s,Z=s?"Jump to the posts list filtered by this category":"Set a slug to manage this category's posts";let B;t[53]!==Q||t[54]!==s?(B=()=>Q(s),t[53]=Q,t[54]=s,t[55]=B):B=t[55];let K;t[56]===Symbol.for("react.memo_cache_sentinel")?(K=e.jsx(pt,{size:14}),t[56]=K):K=t[56];let k;t[57]!==Y||t[58]!==Z||t[59]!==B?(k=e.jsxs(mt,{type:"button",variant:"outline",size:"sm",disabled:Y,title:Z,onClick:B,children:["Manage posts",K]}),t[57]=Y,t[58]=Z,t[59]=B,t[60]=k):k=t[60];let _;t[61]!==S||t[62]!==k?(_=e.jsxs("div",{className:"mt-6 flex items-center justify-between gap-3 rounded-lg border bg-muted/30 px-4 py-3",children:[S,k]}),t[61]=S,t[62]=k,t[63]=_):_=t[63];let W;t[64]===Symbol.for("react.memo_cache_sentinel")?(W=e.jsx("div",{className:"mt-6 border-t"}),t[64]=W):W=t[64];let C;t[65]!==i.sections?(C=xt(i.sections),t[65]=i.sections,t[66]=C):C=t[66];let P;t[67]!==r?(P=o=>r("sections",o),t[67]=r,t[68]=P):P=t[68];let E;t[69]!==O||t[70]!==C||t[71]!==P?(E=e.jsx(ht,{value:C,onChange:P,meta:O,emptyMessage:"This category has no content yet. Use ⊕ to add your first block."}),t[69]=O,t[70]=C,t[71]=P,t[72]=E):E=t[72];let w;t[73]!==x||t[74]!==j||t[75]!==N||t[76]!==_||t[77]!==E?(w=e.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:e.jsxs("div",{className:"mx-auto max-w-3xl px-8 py-8",children:[x,j,N,_,W,E]})}),t[73]=x,t[74]=j,t[75]=N,t[76]=_,t[77]=E,t[78]=w):w=t[78];let I;t[79]!==w||t[80]!==d?(I=e.jsxs("div",{className:"flex h-full flex-col",children:[d,w]}),t[79]=w,t[80]=d,t[81]=I):I=t[81];let q;return t[82]!==a||t[83]!==p||t[84]!==I||t[85]!==l?(q=e.jsx(yt,{orgSlug:p,virtualMcpId:l,branch:a,children:I}),t[82]=a,t[83]=p,t[84]=I,t[85]=l,t[86]=q):q=t[86],q}export{Zi as CategoryEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as it,r as E,j as e,i as rt}from"./index-Da7zBgP3.js";import{S as mt,b as pt,c as st,d as at}from"./sheet-B0e56Uwi.js";import{S as nt}from"./scroll-area-CDnhflx8.js";import{r as lt,c as ct,u as dt,a as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-C28dqfPj.js";import{p as xt}from"./index-Cczp3zRq.js";import"./X-BmLEy_4s.js";import"./agent-icon-_F0cs0c2.js";import"./AlertCircle-D7JULgSW.js";import"./Tool01-BMBmO996.js";import"./SwitchHorizontal01-B1Fi_gZm.js";import"./Settings02-B7JvRibZ.js";import"./XCircle-lg1atJo8.js";import"./ArrowUpRight-BoNegK2J.js";import"./ZapSquare-CB80bsBy.js";import"./Users03-3hrg8IdJ.js";import"./CheckCircle-CubOqkhM.js";import"./ChevronUp-BHC7PPdP.js";import"./ChevronDown-bvcGltsD.js";import"./ChevronLeft-CwoAKT1V.js";import"./ChevronRight-JjxX5FP7.js";import"./DotsVertical-lhkCwVyZ.js";import"./Stars02-0cy3Iac4.js";import"./Eye-DDlQv8dT.js";import"./ZoomOut-Da8en56C.js";import"./Globe01-DPxNkWN3.js";import"./FilterLines-5NaQCp3e.js";import"./Star01-Ctay-f61.js";import"./Globe04-CfOFRbjm.js";import"./HardDrive-Cc6TayZG.js";import"./Key01-BnvBI-54.js";import"./LayoutLeft-BqPxwhfG.js";import"./LinkExternal01-Cuz2KimH.js";import"./Monitor01-Bg2cIqWO.js";import"./Sun-VAruoT-r.js";import"./Palette-DqDQ3lBi.js";import"./Play-DJY7X3Ac.js";import"./Plus-BPXRSHah.js";import"./SearchMd-BzO607jf.js";import"./Shield01-CpKySeSn.js";import"./Stars01-BvSyxIB7.js";import"./Trash01-bpIqJEin.js";import"./Upload01-DRwUypcB.js";import"./User01-CNb4uOQF.js";import"./Users01-Dznayvgx.js";import"./XClose-DgeTXvEe.js";import"./Zap-yzjfF5fD.js";import"./use-clock-tick-C8csRlSk.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BXiwiMZD.js";import"./tooltip-B7dbgru1.js";import"./index-iwyGvJw3.js";import"./file-type-icon-CRFnZTrI.js";import"./dialog-YEMhf2fI.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-DiVU1HF6.js";import"./use-mcp-client-QbDw5Kxr.js";import"./auth-CX0V_g3E.js";import"./chat-context-dU2BBYFR.js";import"./hooks-Bsl1fBrR.js";import"./decopilot-sse-pool-DStYMiox.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-D3YjjDr2.js";import"./use-collections-Ce8iOx08.js";import"./use-ai-providers-UVcAibrU.js";import"./studio-tools-Cxzj-LYh.js";import"./use-organization-settings-B7zELDxl.js";import"./shell-layout-DCRByz-Z.js";import"./avatar-DMMu0sLX.js";import"./required-auth-layout-CEA-lcqq.js";import"./use-org-sso-DYW-70GB.js";import"./integration-icon-BefRgu4d.js";import"./use-navigate-to-agent-CHwphTrt.js";import"./use-connection-MqRKkZiS.js";import"./use-mcp-prompts-CJoxcvaa.js";import"./form-uOBsFqj5.js";import"./label-DamWvDSp.js";import"./input-JrKcP8_P.js";import"./select-BRu_aocD.js";import"./switch-DPUXI2pE.js";import"./index-Cl2voHhm.js";import"./drawer-CbS8-Awm.js";import"./collection-search-DUL6ybNZ.js";import"./tabs-CTiHAHkO.js";import"./toggle-group-D0HpOa1A.js";import"./sortable.esm-DZfVcKsT.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-Cshe8IMI.js";import"./use-registry-connections-DSvlh2CW.js";import"./useInfiniteQuery-W7QqfcbQ.js";import"./use-infinite-scroll-D-1sc3vv.js";import"./extract-connection-data-DW6_hSwc.js";import"./card-CwFHuYuT.js";import"./collection-tabs-D6_rF5iF.js";import"./badge-BIOaHIWt.js";import"./textarea-rSIhk1As.js";import"./connection-form-helpers-DNsEuVwo.js";import"./authenticate-and-persist-oauth-Bb4qQGZD.js";import"./mcp-oauth-DggY1DlO.js";import"./useSuspenseInfiniteQuery-f7kozjC6.js";import"./connect-desktop-dialog-CN-ahIvP.js";import"./decopilot-CM0ZbqCj.js";import"./checkbox-Cbr8t7kQ.js";import"./skeleton-D_Y0mVys.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CMKiU6m1.js";import"./popover-BWJVGvw4.js";import"./command-BDSPStF6.js";import"./index-CEhY-HWu.js";import"./dropdown-menu-B5yyPfJy.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Bwl21Nte.js";import"./empty-state-BBWaUmc0.js";import"./toolbar-CWstIAgU.js";import"./preview-dialog-EpRi5xxw.js";import"./index-BbZOuhzX.js";import"./use-mcp-tools-CwE0F1Fa.js";import"./use-capability-Dkucj2kh.js";import"./shell-route-loading-CnU2JL57.js";import"./index-BVGtxGJp.js";import"./alert-dialog-DlpOAGY3.js";import"./use-debounced-autosave-UYvEWk6q.js";import"./index-DwYMCCVI.js";import"./sidebar-muO-r9NM.js";import"./search-input-E5lbuSaQ.js";import"./github-repo-picker-CQzVJw3M.js";import"./use-secrets-BGVjiXmA.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-BMm_SU4X.js";import"./automation-runs-z2Y1nDjt.js";import"./table-D7DRjfAO.js";import"./use-members-DqOAFyvD.js";import"./use-org-auth-client-Cw-eW4eJ.js";import"./task-status-CzPGYn0R.js";import"./use-automations-DyhWqZVe.js";import"./use-file-configs-Caz1V2y2.js";import"./monaco-editor-D7lo6yjy.js";import"./select-model-D6u-jQT1.js";import"./automation-list-row-DikFLwfj.js";function oi(u){const t=it.c(46),{open:N,onOpenChange:P,orgSlug:Q,virtualMcpId:U,branch:W,decofile:G,meta:s,target:m,onSaved:X}=u,o=lt(G,m,s),k=m.kind==="site"?"site":m.pageKey,[Y,Z]=E.useState(k),[tt,i]=E.useState(null),[J,g]=E.useState(void 0),[x,y]=E.useState(0);Y!==k&&(Z(k),i(null),g(void 0),y(wt));const{persistSeo:a,persistRawSeo:I,flush:K,isPending:D}=ct({orgSlug:Q,virtualMcpId:U,branch:W,target:m,resolved:o,onSaved:X}),w=m.kind==="page",ot=w?o?.rawSeoData:void 0,v=J!==void 0?J:ot,et=w?dt(v)??void 0:void 0,h=tt??et??o?.seoData??{},p=o?St(h,o):null,n=p&&(!w||ft(v))?xt(p,s):null,_=m.kind==="page"?ut(G,s)?.seoData??void 0:void 0;let j;t[0]!==s?(j=vt(s),t[0]=s,t[1]=j):j=t[1];const M=j;let R;t[2]!==a||t[3]!==o||t[4]!==i?(R=r=>{if(!o)return;const L=r;i(L),a(L)},t[2]=a,t[3]=o,t[4]=i,t[5]=R):R=t[5];const V=R;let F;t[6]!==K||t[7]!==P?(F=r=>{r||K(),P(r)},t[6]=K,t[7]=P,t[8]=F):F=t[8];const z=F,A=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,B=m.kind==="site"&&o&&n,H=m.kind==="site"?"No site-level SEO block found.":o?"SEO schema not found for this page.":"Could not load page SEO.";let C;t[9]!==i?(C=()=>i(null),t[9]=i,t[10]=C):C=t[10];const $=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const q=O;let l;t[13]!==A?(l=e.jsx(mt,{className:"text-sm font-semibold",children:A}),t[13]=A,t[14]=l):l=t[14];let c;t[15]!==D?(c=D&&e.jsx(rt,{size:14,className:"animate-spin text-muted-foreground"}),t[15]=D,t[16]=c):c=t[16];let d;t[17]!==l||t[18]!==c?(d=e.jsxs(pt,{className:"px-4 py-3 border-b flex-row items-center justify-between space-y-0",children:[l,c]}),t[17]=l,t[18]=c,t[19]=d):d=t[19];let S;t[20]!==p||t[21]!==q||t[22]!==$||t[23]!==M||t[24]!==v||t[25]!==h||t[26]!==H||t[27]!==x||t[28]!==V||t[29]!==I||t[30]!==a||t[31]!==o||t[32]!==n||t[33]!==i||t[34]!==g||t[35]!==T||t[36]!==B||t[37]!==_?(S=!o||!T&&!B?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:H}):e.jsx(nt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"mx-auto max-w-sm",children:T?e.jsx(ht,{rawSeo:v,innerSeo:h,defaultResolveType:M,seoSchema:n,activeResolveType:p,seoTypeOptions:o.seoTypeOptions,formResetKey:x,siteDefaultSeo:_,onPersistRaw:r=>{g(r),I(r)},onInnerChange:r=>{i(r),a(r)},onClearForm:$,onBumpFormKey:q}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:V})})})}),t[20]=p,t[21]=q,t[22]=$,t[23]=M,t[24]=v,t[25]=h,t[26]=H,t[27]=x,t[28]=V,t[29]=I,t[30]=a,t[31]=o,t[32]=n,t[33]=i,t[34]=g,t[35]=T,t[36]=B,t[37]=_,t[38]=S):S=t[38];let f;t[39]!==d||t[40]!==S?(f=e.jsxs(st,{side:"right",className:"w-[400px] sm:max-w-[440px] p-0 gap-0",children:[d,S]}),t[39]=d,t[40]=S,t[41]=f):f=t[41];let b;return t[42]!==z||t[43]!==N||t[44]!==f?(b=e.jsx(at,{open:N,onOpenChange:z,children:f}),t[42]=z,t[43]=N,t[44]=f,t[45]=b):b=t[45],b}function yt(u){return u+1}function wt(u){return u+1}export{oi as SeoSheet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as K,j as r,B as W,r as X,l as Z}from"./index-Da7zBgP3.js";import{t as ee}from"./ChevronDown-bvcGltsD.js";import{n as te}from"./LinkExternal01-Cuz2KimH.js";import{Y as oe}from"./agent-icon-_F0cs0c2.js";import{f as re,h as le,e as se}from"./scroll-area-CDnhflx8.js";import{I as q}from"./input-JrKcP8_P.js";import{L as G}from"./label-DamWvDSp.js";import{M as ie}from"./automation-runs-z2Y1nDjt.js";import{T as ae}from"./textarea-rSIhk1As.js";import{ar as ne,as as me,at as pe,au as ce,av as fe,aw as ue}from"./index-Cczp3zRq.js";import{u as de,s as U,I as ge,R as xe,A as he}from"./primitives-BMQA8oJA.js";import{S as ye}from"./save-status-ByqPY8sQ.js";import{a as ve,B as je,b as be}from"./block-document-xN8KRLYP.js";import"./AlertCircle-D7JULgSW.js";import"./Tool01-BMBmO996.js";import"./SwitchHorizontal01-B1Fi_gZm.js";import"./Settings02-B7JvRibZ.js";import"./XCircle-lg1atJo8.js";import"./ArrowUpRight-BoNegK2J.js";import"./ZapSquare-CB80bsBy.js";import"./Users03-3hrg8IdJ.js";import"./CheckCircle-CubOqkhM.js";import"./ChevronUp-BHC7PPdP.js";import"./ChevronLeft-CwoAKT1V.js";import"./ChevronRight-JjxX5FP7.js";import"./DotsVertical-lhkCwVyZ.js";import"./Stars02-0cy3Iac4.js";import"./Eye-DDlQv8dT.js";import"./ZoomOut-Da8en56C.js";import"./Globe01-DPxNkWN3.js";import"./FilterLines-5NaQCp3e.js";import"./Star01-Ctay-f61.js";import"./Globe04-CfOFRbjm.js";import"./HardDrive-Cc6TayZG.js";import"./Key01-BnvBI-54.js";import"./LayoutLeft-BqPxwhfG.js";import"./Monitor01-Bg2cIqWO.js";import"./Sun-VAruoT-r.js";import"./Palette-DqDQ3lBi.js";import"./Play-DJY7X3Ac.js";import"./Plus-BPXRSHah.js";import"./SearchMd-BzO607jf.js";import"./Shield01-CpKySeSn.js";import"./Stars01-BvSyxIB7.js";import"./Trash01-bpIqJEin.js";import"./Upload01-DRwUypcB.js";import"./User01-CNb4uOQF.js";import"./Users01-Dznayvgx.js";import"./XClose-DgeTXvEe.js";import"./X-BmLEy_4s.js";import"./Zap-yzjfF5fD.js";import"./use-clock-tick-C8csRlSk.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BXiwiMZD.js";import"./tooltip-B7dbgru1.js";import"./index-iwyGvJw3.js";import"./file-type-icon-CRFnZTrI.js";import"./dialog-YEMhf2fI.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-DiVU1HF6.js";import"./use-mcp-client-QbDw5Kxr.js";import"./auth-CX0V_g3E.js";import"./chat-context-dU2BBYFR.js";import"./hooks-Bsl1fBrR.js";import"./decopilot-sse-pool-DStYMiox.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-D3YjjDr2.js";import"./use-collections-Ce8iOx08.js";import"./use-ai-providers-UVcAibrU.js";import"./studio-tools-Cxzj-LYh.js";import"./use-organization-settings-B7zELDxl.js";import"./shell-layout-DCRByz-Z.js";import"./avatar-DMMu0sLX.js";import"./required-auth-layout-CEA-lcqq.js";import"./use-org-sso-DYW-70GB.js";import"./sheet-B0e56Uwi.js";import"./integration-icon-BefRgu4d.js";import"./use-navigate-to-agent-CHwphTrt.js";import"./use-connection-MqRKkZiS.js";import"./use-mcp-prompts-CJoxcvaa.js";import"./form-uOBsFqj5.js";import"./select-BRu_aocD.js";import"./useInfiniteQuery-W7QqfcbQ.js";import"./use-infinite-scroll-D-1sc3vv.js";import"./card-CwFHuYuT.js";import"./table-D7DRjfAO.js";import"./empty-state-BBWaUmc0.js";import"./use-members-DqOAFyvD.js";import"./use-org-auth-client-Cw-eW4eJ.js";import"./task-status-CzPGYn0R.js";import"./use-automations-DyhWqZVe.js";import"./useSuspenseInfiniteQuery-f7kozjC6.js";import"./badge-BIOaHIWt.js";import"./checkbox-Cbr8t7kQ.js";import"./command-BDSPStF6.js";import"./index-CEhY-HWu.js";import"./popover-BWJVGvw4.js";import"./index-Cl2voHhm.js";import"./drawer-CbS8-Awm.js";import"./collection-search-DUL6ybNZ.js";import"./tabs-CTiHAHkO.js";import"./toggle-group-D0HpOa1A.js";import"./sortable.esm-DZfVcKsT.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-Cshe8IMI.js";import"./use-registry-connections-DSvlh2CW.js";import"./extract-connection-data-DW6_hSwc.js";import"./collection-tabs-D6_rF5iF.js";import"./connection-form-helpers-DNsEuVwo.js";import"./authenticate-and-persist-oauth-Bb4qQGZD.js";import"./mcp-oauth-DggY1DlO.js";import"./connect-desktop-dialog-CN-ahIvP.js";import"./decopilot-CM0ZbqCj.js";import"./skeleton-D_Y0mVys.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CMKiU6m1.js";import"./dropdown-menu-B5yyPfJy.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Bwl21Nte.js";import"./toolbar-CWstIAgU.js";import"./preview-dialog-EpRi5xxw.js";import"./index-BbZOuhzX.js";import"./use-mcp-tools-CwE0F1Fa.js";import"./use-capability-Dkucj2kh.js";import"./shell-route-loading-CnU2JL57.js";import"./index-BVGtxGJp.js";import"./alert-dialog-DlpOAGY3.js";import"./switch-DPUXI2pE.js";import"./use-debounced-autosave-UYvEWk6q.js";import"./index-DwYMCCVI.js";import"./sidebar-muO-r9NM.js";import"./search-input-E5lbuSaQ.js";import"./github-repo-picker-CQzVJw3M.js";import"./use-secrets-BGVjiXmA.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-BMm_SU4X.js";import"./use-file-configs-Caz1V2y2.js";import"./monaco-editor-D7lo6yjy.js";import"./select-model-D6u-jQT1.js";import"./automation-list-row-DikFLwfj.js";const H=f=>typeof f=="string"?f:"",Ce=/\/blog\.tsx?$/;function Se(f){for(const[e,t]of Object.entries(f)){if(e.includes("/")||!t||typeof t!="object"||Array.isArray(t))continue;const l=t;if(typeof l.__resolveType!="string"||!Ce.test(l.__resolveType))continue;const o=H(l.pageSlug);if(o)return o}return null}function _e(f){const e=f.categories;if(!Array.isArray(e)||e.length===0)return"";const t=e[0];return H(t?.slug)}function ke(f,e){let t=f;if(/:category\??/.test(t)){if(!e.category)return null;t=t.replace(/:category\??/g,encodeURIComponent(e.category))}if(/:slug\??/.test(t)){if(!e.slug)return null;t=t.replace(/:slug\??/g,encodeURIComponent(e.slug))}return t}function Ne({decofile:f,post:e,previewBaseUrl:t}){if(!t)return null;const l=Se(f);if(!l)return null;const o=ke(l,{category:_e(e),slug:H(e.slug)});if(!o)return null;try{return new URL(o,t).href}catch{return null}}function Pe(f){return Array.isArray(f)?f.map(e=>({key:U(e?.key),value:U(e?.value)})):[]}function cr(f){const e=K.c(68),{orgSlug:t,virtualMcpId:l,branch:o,blockKey:i,block:S,decofile:m,meta:v,previewBaseUrl:x}=f;let j;e[0]!==o||e[1]!==t||e[2]!==l?(j={orgSlug:t,virtualMcpId:l,branch:o},e[0]=o,e[1]=t,e[2]=l,e[3]=j):j=e[3];const s=ne(j);let u;e[4]!==S?(u=me(S,"posts"),e[4]=S,e[5]=u):u=e[5];const d=u;let b;e[6]!==i||e[7]!==s?(b=M=>{s.mutate({blockKey:i,data:pe(i,"posts",M)})},e[6]=i,e[7]=s,e[8]=b):b=e[8];const[a,R]=de(d,b);let _;e[9]!==a||e[10]!==R?(_=(M,Q)=>R({...a,[M]:Q}),e[9]=a,e[10]=R,e[11]=_):_=e[11];const p=_;let k;e[12]!==m||e[13]!==a||e[14]!==x?(k=Ne({decofile:m,post:a,previewBaseUrl:x}),e[12]=m,e[13]=a,e[14]=x,e[15]=k):k=e[15];const h=k;let n;e[16]!==a.title?(n=U(a.title)||"Untitled post",e[16]=a.title,e[17]=n):n=e[17];let c;e[18]!==n?(c=r.jsx("span",{className:"truncate text-sm font-medium",children:n}),e[18]=n,e[19]=c):c=e[19];let g;e[20]!==s.isError||e[21]!==s.isPending?(g=r.jsx(ye,{isPending:s.isPending,isError:s.isError}),e[20]=s.isError,e[21]=s.isPending,e[22]=g):g=e[22];const C=!h,z=h?"Open the post preview in a new tab":"Set the post slug (and its category) plus the blog app's pageSlug to preview";let N;e[23]!==h?(N=()=>{h&&window.open(h,"_blank","noopener,noreferrer")},e[23]=h,e[24]=N):N=e[24];let I;e[25]===Symbol.for("react.memo_cache_sentinel")?(I=r.jsx(te,{size:14}),e[25]=I):I=e[25];let L;e[26]!==z||e[27]!==N||e[28]!==C?(L=r.jsxs(W,{type:"button",variant:"outline",size:"sm",disabled:C,title:z,onClick:N,children:[I,"See preview"]}),e[26]=z,e[27]=N,e[28]=C,e[29]=L):L=e[29];let P;e[30]!==L||e[31]!==g?(P=r.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[g,L]}),e[30]=L,e[31]=g,e[32]=P):P=e[32];let w;e[33]!==P||e[34]!==c?(w=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,P]}),e[33]=P,e[34]=c,e[35]=w):w=e[35];let T;e[36]!==a.title?(T=U(a.title),e[36]=a.title,e[37]=T):T=e[37];let B;e[38]!==p?(B=M=>p("title",M),e[38]=p,e[39]=B):B=e[39];let A;e[40]!==T||e[41]!==B?(A=r.jsx(ge,{value:T,onChange:B,placeholder:"Post title",className:"py-1 text-3xl font-bold text-foreground"}),e[40]=T,e[41]=B,e[42]=A):A=e[42];let E;e[43]!==m||e[44]!==a||e[45]!==p?(E=r.jsx(we,{post:a,decofile:m,onChange:p}),e[43]=m,e[44]=a,e[45]=p,e[46]=E):E=e[46];let $;e[47]===Symbol.for("react.memo_cache_sentinel")?($=r.jsx("div",{className:"mt-6 border-t"}),e[47]=$):$=e[47];let F;e[48]!==a.sections?(F=ve(a.sections),e[48]=a.sections,e[49]=F):F=e[49];let O;e[50]!==p?(O=M=>p("sections",M),e[50]=p,e[51]=O):O=e[51];let y;e[52]!==v||e[53]!==F||e[54]!==O?(y=r.jsx(je,{value:F,onChange:O,meta:v,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."}),e[52]=v,e[53]=F,e[54]=O,e[55]=y):y=e[55];let D;e[56]!==A||e[57]!==E||e[58]!==y?(D=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:r.jsxs("div",{className:"mx-auto max-w-3xl px-8 py-8",children:[A,E,$,y]})}),e[56]=A,e[57]=E,e[58]=y,e[59]=D):D=e[59];let V;e[60]!==w||e[61]!==D?(V=r.jsxs("div",{className:"flex h-full flex-col",children:[w,D]}),e[60]=w,e[61]=D,e[62]=V):V=e[62];let Y;return e[63]!==o||e[64]!==t||e[65]!==V||e[66]!==l?(Y=r.jsx(be,{orgSlug:t,virtualMcpId:l,branch:o,children:V}),e[63]=o,e[64]=t,e[65]=V,e[66]=l,e[67]=Y):Y=e[67],Y}function we(f){const e=K.c(69),{post:t,decofile:l,onChange:o}=f,[i,S]=X.useState(!1);let m,v;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(oe,{size:15}),v=r.jsx("span",{className:"flex-1 text-left",children:"Post settings"}),e[0]=m,e[1]=v):(m=e[0],v=e[1]);const x=i&&"rotate-180";let j;e[2]!==x?(j=Z("transition-transform",x),e[2]=x,e[3]=j):j=e[3];let s;e[4]!==j?(s=r.jsx(re,{asChild:!0,children:r.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm text-muted-foreground transition-colors hover:bg-muted hover:text-foreground cursor-pointer",children:[m,v,r.jsx(ee,{size:15,className:j})]})}),e[4]=j,e[5]=s):s=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=r.jsx(G,{htmlFor:"post-excerpt",children:"Excerpt"}),e[6]=u):u=e[6];let d;e[7]!==t.excerpt?(d=U(t.excerpt),e[7]=t.excerpt,e[8]=d):d=e[8];let b;e[9]!==o?(b=y=>o("excerpt",y.target.value),e[9]=o,e[10]=b):b=e[10];let a;e[11]!==d||e[12]!==b?(a=r.jsxs("div",{className:"space-y-2",children:[u,r.jsx(ae,{id:"post-excerpt",value:d,onChange:b,rows:2})]}),e[11]=d,e[12]=b,e[13]=a):a=e[13];let R;e[14]===Symbol.for("react.memo_cache_sentinel")?(R=r.jsx(G,{htmlFor:"post-slug",children:"Slug"}),e[14]=R):R=e[14];let _;e[15]!==t.slug?(_=U(t.slug),e[15]=t.slug,e[16]=_):_=e[16];let p;e[17]!==o?(p=y=>o("slug",y.target.value),e[17]=o,e[18]=p):p=e[18];let k;e[19]!==_||e[20]!==p?(k=r.jsxs("div",{className:"space-y-2",children:[R,r.jsx(q,{id:"post-slug",value:_,onChange:p,placeholder:"my-post",className:"h-10"})]}),e[19]=_,e[20]=p,e[21]=k):k=e[21];let h;e[22]===Symbol.for("react.memo_cache_sentinel")?(h={type:"string",format:"date",title:"Date"},e[22]=h):h=e[22];let n;e[23]!==t.date?(n=U(t.date),e[23]=t.date,e[24]=n):n=e[24];let c;e[25]!==o?(c=y=>o("date",y),e[25]=o,e[26]=c):c=e[26];let g;e[27]!==n||e[28]!==c?(g=r.jsx(ue,{schema:h,value:n,onChange:c,path:"post-date",label:"Date"}),e[27]=n,e[28]=c,e[29]=g):g=e[29];let C;e[30]!==k||e[31]!==g?(C=r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[k,g]}),e[30]=k,e[31]=g,e[32]=C):C=e[32];let z;e[33]===Symbol.for("react.memo_cache_sentinel")?(z={type:"string",format:"image-uri",title:"Cover image"},e[33]=z):z=e[33];let N;e[34]!==o?(N=y=>o("image",y),e[34]=o,e[35]=N):N=e[35];let I;e[36]!==t.image||e[37]!==N?(I=r.jsx(ce,{schema:z,value:t.image,onChange:N,path:"post-image",label:"Cover image"}),e[36]=t.image,e[37]=N,e[38]=I):I=e[38];let L;e[39]===Symbol.for("react.memo_cache_sentinel")?(L=["email"],e[39]=L):L=e[39];let P;e[40]!==o?(P=y=>o("authors",y),e[40]=o,e[41]=P):P=e[41];let w;e[42]!==l||e[43]!==t.authors||e[44]!==P?(w=r.jsx(J,{label:"Authors",decofile:l,kind:"authors",valueField:"email",extraFields:L,selected:t.authors,onChange:P}),e[42]=l,e[43]=t.authors,e[44]=P,e[45]=w):w=e[45];let T;e[46]===Symbol.for("react.memo_cache_sentinel")?(T=["slug"],e[46]=T):T=e[46];let B;e[47]!==o?(B=y=>o("categories",y),e[47]=o,e[48]=B):B=e[48];let A;e[49]!==l||e[50]!==t.categories||e[51]!==B?(A=r.jsx(J,{label:"Categories",decofile:l,kind:"categories",valueField:"slug",extraFields:T,selected:t.categories,onChange:B}),e[49]=l,e[50]=t.categories,e[51]=B,e[52]=A):A=e[52];let E;e[53]!==o?(E=y=>o("extraProps",y),e[53]=o,e[54]=E):E=e[54];let $;e[55]!==t.extraProps||e[56]!==E?($=r.jsx(Be,{value:t.extraProps,onChange:E}),e[55]=t.extraProps,e[56]=E,e[57]=$):$=e[57];let F;e[58]!==C||e[59]!==I||e[60]!==w||e[61]!==A||e[62]!==$||e[63]!==a?(F=r.jsxs(le,{className:"space-y-5 px-2 pt-4",children:[a,C,I,w,A,$]}),e[58]=C,e[59]=I,e[60]=w,e[61]=A,e[62]=$,e[63]=a,e[64]=F):F=e[64];let O;return e[65]!==i||e[66]!==F||e[67]!==s?(O=r.jsxs(se,{open:i,onOpenChange:S,className:"mt-4",children:[s,F]}),e[65]=i,e[66]=F,e[67]=s,e[68]=O):O=e[68],O}function Be(f){const e=K.c(15),{value:t,onChange:l}=f;let o,i,S,m;if(e[0]!==l||e[1]!==t){o=Pe(t);const j=(s,u)=>l(o.map((d,b)=>b===s?{...d,...u}:d));i="space-y-2",e[6]===Symbol.for("react.memo_cache_sentinel")?(S=r.jsx(G,{children:"Extra props"}),e[6]=S):S=e[6],m=o.length>0&&r.jsx("ul",{className:"space-y-2",children:o.map((s,u)=>r.jsxs("li",{className:"group/item flex items-center gap-2",children:[r.jsx(q,{value:s.key,onChange:d=>j(u,{key:d.target.value}),placeholder:"key",className:"h-9 flex-1"}),r.jsx(q,{value:s.value,onChange:d=>j(u,{value:d.target.value}),placeholder:"value",className:"h-9 flex-1"}),r.jsx(xe,{label:"Remove prop",onClick:()=>l(o.filter((d,b)=>b!==u))})]},u))}),e[0]=l,e[1]=t,e[2]=o,e[3]=i,e[4]=S,e[5]=m}else o=e[2],i=e[3],S=e[4],m=e[5];let v;e[7]!==o||e[8]!==l?(v=r.jsx(he,{label:"Add prop",onClick:()=>l([...o,{key:"",value:""}])}),e[7]=o,e[8]=l,e[9]=v):v=e[9];let x;return e[10]!==i||e[11]!==S||e[12]!==m||e[13]!==v?(x=r.jsxs("div",{className:i,children:[S,m,v]}),e[10]=i,e[11]=S,e[12]=m,e[13]=v,e[14]=x):x=e[14],x}function J(f){const e=K.c(31),{label:t,decofile:l,kind:o,valueField:i,extraFields:S,selected:m,onChange:v}=f;let x,j,s;if(e[0]!==l||e[1]!==o||e[2]!==i){x=fe(l,o);let h;e[6]!==i?(h=(c,g)=>U(c[i])||g,e[6]=i,e[7]=h):h=e[7],s=h;let n;e[8]!==s?(n=c=>{const{key:g,payload:C}=c;return{value:s(C,g),label:U(C.name)||s(C,g)}},e[8]=s,e[9]=n):n=e[9],j=x.map(n),e[0]=l,e[1]=o,e[2]=i,e[3]=x,e[4]=j,e[5]=s}else x=e[3],j=e[4],s=e[5];const u=j;let d;if(e[10]!==m||e[11]!==i){const h=Array.isArray(m)?m:[];let n;e[13]!==i?(n=c=>U(c[i]),e[13]=i,e[14]=n):n=e[14],d=h.map(n).filter(Boolean),e[10]=m,e[11]=i,e[12]=d}else d=e[12];const b=d;let a;e[15]!==S||e[16]!==v||e[17]!==x||e[18]!==i||e[19]!==s?(a=h=>{v(h.map(n=>{const c=x.find(C=>{const{key:z,payload:N}=C;return s(N,z)===n});if(!c)return{name:n,[i]:n};const g={name:U(c.payload.name)};for(const C of S)g[C]=c.payload[C]??n;return g}))},e[15]=S,e[16]=v,e[17]=x,e[18]=i,e[19]=s,e[20]=a):a=e[20];const R=a;let _;e[21]!==t?(_=r.jsx(G,{children:t}),e[21]=t,e[22]=_):_=e[22];let p;e[23]!==b||e[24]!==R||e[25]!==t||e[26]!==u?(p=u.length===0?r.jsxs("p",{className:"text-xs text-muted-foreground",children:["No ",t.toLowerCase()," yet — create some in the"," ",t.toLowerCase()," collection."]}):r.jsx(ie,{options:u,defaultValue:b,onValueChange:R,placeholder:`Select ${t.toLowerCase()}`,maxCount:4}),e[23]=b,e[24]=R,e[25]=t,e[26]=u,e[27]=p):p=e[27];let k;return e[28]!==_||e[29]!==p?(k=r.jsxs("div",{className:"space-y-2",children:[_,p]}),e[28]=_,e[29]=p,e[30]=k):k=e[30],k}export{cr as PostEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as $,w as H,j as A}from"./index-Da7zBgP3.js";import{l as L,g as E,s as y}from"./scroll-area-CDnhflx8.js";import{p as O,u as k}from"./use-mcp-client-QbDw5Kxr.js";import{b as q,c as B}from"./use-mcp-tools-CwE0F1Fa.js";import{u as Y}from"./index-Cczp3zRq.js";import{c as G}from"./content-blocks-o63cs2vh.js";import{g as K,M as V,a as D}from"./types-DiVU1HF6.js";import{u as z,b as F}from"./chat-context-dU2BBYFR.js";import{b as J}from"./shell-layout-DCRByz-Z.js";import"./agent-icon-_F0cs0c2.js";import"./AlertCircle-D7JULgSW.js";import"./Tool01-BMBmO996.js";import"./SwitchHorizontal01-B1Fi_gZm.js";import"./Settings02-B7JvRibZ.js";import"./XCircle-lg1atJo8.js";import"./ArrowUpRight-BoNegK2J.js";import"./ZapSquare-CB80bsBy.js";import"./Users03-3hrg8IdJ.js";import"./CheckCircle-CubOqkhM.js";import"./ChevronUp-BHC7PPdP.js";import"./ChevronDown-bvcGltsD.js";import"./ChevronLeft-CwoAKT1V.js";import"./ChevronRight-JjxX5FP7.js";import"./DotsVertical-lhkCwVyZ.js";import"./Stars02-0cy3Iac4.js";import"./Eye-DDlQv8dT.js";import"./ZoomOut-Da8en56C.js";import"./Globe01-DPxNkWN3.js";import"./FilterLines-5NaQCp3e.js";import"./Star01-Ctay-f61.js";import"./Globe04-CfOFRbjm.js";import"./HardDrive-Cc6TayZG.js";import"./Key01-BnvBI-54.js";import"./LayoutLeft-BqPxwhfG.js";import"./LinkExternal01-Cuz2KimH.js";import"./Monitor01-Bg2cIqWO.js";import"./Sun-VAruoT-r.js";import"./Palette-DqDQ3lBi.js";import"./Play-DJY7X3Ac.js";import"./Plus-BPXRSHah.js";import"./SearchMd-BzO607jf.js";import"./Shield01-CpKySeSn.js";import"./Stars01-BvSyxIB7.js";import"./Trash01-bpIqJEin.js";import"./Upload01-DRwUypcB.js";import"./User01-CNb4uOQF.js";import"./Users01-Dznayvgx.js";import"./XClose-DgeTXvEe.js";import"./X-BmLEy_4s.js";import"./Zap-yzjfF5fD.js";import"./use-clock-tick-C8csRlSk.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BXiwiMZD.js";import"./tooltip-B7dbgru1.js";import"./index-iwyGvJw3.js";import"./file-type-icon-CRFnZTrI.js";import"./dialog-YEMhf2fI.js";import"./tab-id-BptcWVWa.js";import"./hooks-Bsl1fBrR.js";import"./decopilot-sse-pool-DStYMiox.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-Cxzj-LYh.js";import"./sheet-B0e56Uwi.js";import"./integration-icon-BefRgu4d.js";import"./use-virtual-mcp-D3YjjDr2.js";import"./use-collections-Ce8iOx08.js";import"./use-navigate-to-agent-CHwphTrt.js";import"./use-connection-MqRKkZiS.js";import"./use-mcp-prompts-CJoxcvaa.js";import"./form-uOBsFqj5.js";import"./label-DamWvDSp.js";import"./input-JrKcP8_P.js";import"./select-BRu_aocD.js";import"./auth-CX0V_g3E.js";import"./index-Cl2voHhm.js";import"./drawer-CbS8-Awm.js";import"./collection-search-DUL6ybNZ.js";import"./tabs-CTiHAHkO.js";import"./toggle-group-D0HpOa1A.js";import"./sortable.esm-DZfVcKsT.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-Cshe8IMI.js";import"./use-registry-connections-DSvlh2CW.js";import"./use-organization-settings-B7zELDxl.js";import"./useInfiniteQuery-W7QqfcbQ.js";import"./use-infinite-scroll-D-1sc3vv.js";import"./extract-connection-data-DW6_hSwc.js";import"./card-CwFHuYuT.js";import"./collection-tabs-D6_rF5iF.js";import"./badge-BIOaHIWt.js";import"./textarea-rSIhk1As.js";import"./connection-form-helpers-DNsEuVwo.js";import"./authenticate-and-persist-oauth-Bb4qQGZD.js";import"./mcp-oauth-DggY1DlO.js";import"./useSuspenseInfiniteQuery-f7kozjC6.js";import"./use-ai-providers-UVcAibrU.js";import"./connect-desktop-dialog-CN-ahIvP.js";import"./decopilot-CM0ZbqCj.js";import"./checkbox-Cbr8t7kQ.js";import"./skeleton-D_Y0mVys.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-DMMu0sLX.js";import"./settings-section-CMKiU6m1.js";import"./popover-BWJVGvw4.js";import"./command-BDSPStF6.js";import"./index-CEhY-HWu.js";import"./dropdown-menu-B5yyPfJy.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Bwl21Nte.js";import"./empty-state-BBWaUmc0.js";import"./toolbar-CWstIAgU.js";import"./preview-dialog-EpRi5xxw.js";import"./index-BbZOuhzX.js";import"./use-capability-Dkucj2kh.js";import"./shell-route-loading-CnU2JL57.js";import"./index-BVGtxGJp.js";import"./alert-dialog-DlpOAGY3.js";import"./switch-DPUXI2pE.js";import"./use-debounced-autosave-UYvEWk6q.js";import"./index-DwYMCCVI.js";import"./sidebar-muO-r9NM.js";import"./search-input-E5lbuSaQ.js";import"./github-repo-picker-CQzVJw3M.js";import"./use-secrets-BGVjiXmA.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-BMm_SU4X.js";import"./automation-runs-z2Y1nDjt.js";import"./table-D7DRjfAO.js";import"./use-members-DqOAFyvD.js";import"./use-org-auth-client-Cw-eW4eJ.js";import"./task-status-CzPGYn0R.js";import"./use-automations-DyhWqZVe.js";import"./use-file-configs-Caz1V2y2.js";import"./monaco-editor-D7lo6yjy.js";import"./select-model-D6u-jQT1.js";import"./automation-list-row-DikFLwfj.js";import"./required-auth-layout-CEA-lcqq.js";import"./use-org-sso-DYW-70GB.js";const Q={};function W(S){const t=$.c(37),{client:r,resourceURI:h,tool:o,connectionId:p,orgId:l,args:M}=S,{sendMessage:I}=z(),{setAppContext:u,clearAppContext:n}=F(),{setChatOpen:f,openTab:g}=J(),e=`${p}:${o.name}`;let a;t[0]!==g?(a=C=>C==="inline"?(g("0"),"inline"):"fullscreen",t[0]=g,t[1]=a):a=t[1];const m=a,s=M??Q;let c;t[2]!==r||t[3]!==o.name||t[4]!==s?(c={client:r,toolName:o.name,toolArguments:s},t[2]=r,t[3]=o.name,t[4]=s,t[5]=c):c=t[5];const{data:i}=B(c);let x;if(t[6]!==o._meta||t[7]!==o.name){const C=E(o._meta);x=y(o.name,C),t[6]=o._meta,t[7]=o.name,t[8]=x}else x=t[8];const U=x;let d;t[9]!==o.inputSchema?(d=o.inputSchema??{type:"object"},t[9]=o.inputSchema,t[10]=d):d=t[10];let N;t[11]!==U||t[12]!==d||t[13]!==o?(N={...o,name:U,inputSchema:d},t[11]=U,t[12]=d,t[13]=o,t[14]=N):N=t[14];const b=N;let _;t[15]!==I||t[16]!==f?(_=C=>{const w=G(C.content);w.content.length>0&&(f(!0),I({tiptapDoc:w}))},t[15]=I,t[16]=f,t[17]=_):_=t[17];const j=_;let P;t[18]!==b?(P={tool:b},t[18]=b,t[19]=P):P=t[19];let T;t[20]!==u||t[21]!==e?(T=C=>u(e,C),t[20]=u,t[21]=e,t[22]=T):T=t[22];let R;t[23]!==n||t[24]!==e?(R=()=>n(e),t[23]=n,t[24]=e,t[25]=R):R=t[25];let v;return t[26]!==r||t[27]!==j||t[28]!==m||t[29]!==l||t[30]!==h||t[31]!==P||t[32]!==T||t[33]!==R||t[34]!==s||t[35]!==i?(v=A.jsx(V,{resourceURI:h,orgId:l,toolInfo:P,toolInput:s,toolResult:i,displayMode:"fullscreen",minHeight:D.fullscreen.minHeight,maxHeight:D.fullscreen.maxHeight,client:r,onMessage:j,onUpdateModelContext:T,onTeardown:R,onRequestDisplayMode:m,className:"h-full"}),t[26]=r,t[27]=j,t[28]=m,t[29]=l,t[30]=h,t[31]=P,t[32]=T,t[33]=R,t[34]=s,t[35]=i,t[36]=v):v=t[36],v}function be(S){const t=$.c(24),{connectionId:r,toolName:h,args:o}=S,{org:p}=H(),l=Y();let M;t[0]!==r||t[1]!==l?(M=O(r)&&l.vmEntry?.sandboxProviderKind==="user-desktop"&&l.previewUrl?`${l.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=r,t[1]=l,t[2]=M):M=t[2];const I=M;let u;t[3]!==r||t[4]!==I||t[5]!==p.id||t[6]!==p.slug?(u={connectionId:r,orgId:p.id,orgSlug:p.slug,mcpUrl:I},t[3]=r,t[4]=I,t[5]=p.id,t[6]=p.slug,t[7]=u):u=t[7];const n=k(u);let f;t[8]!==n?(f={client:n},t[8]=n,t[9]=f):f=t[9];const{data:g}=q(f);let e,a,m;t[10]!==h||t[11]!==g.tools?(e=L(decodeURIComponent(h)),m=g.tools.find(i=>i.name===e)??g.tools.find(i=>{const x=E(i._meta);if(!x)return!1;if(y(i.name,x)===e)return!0;const d=y(e,x);return d!==e&&i.name===d}),a=m?._meta?K(m._meta):void 0,t[10]=h,t[11]=g.tools,t[12]=e,t[13]=a,t[14]=m):(e=t[12],a=t[13],m=t[14]);const s=a;if(!m||!s){let i;return t[15]!==e?(i=A.jsx("div",{className:"flex items-center justify-center h-full w-full",children:A.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',e,'" not found or has no UI']})}),t[15]=e,t[16]=i):i=t[16],i}let c;return t[17]!==o||t[18]!==n||t[19]!==r||t[20]!==p.id||t[21]!==s||t[22]!==m?(c=A.jsx(W,{client:n,resourceURI:s,tool:m,connectionId:r,orgId:p.id,args:o}),t[17]=o,t[18]=n,t[19]=r,t[20]=p.id,t[21]=s,t[22]=m,t[23]=c):c=t[23],c}export{be as AppViewContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as F,j as r}from"./index-Da7zBgP3.js";import{I as T}from"./input-JrKcP8_P.js";import{L as C}from"./label-DamWvDSp.js";import{T as L}from"./textarea-rSIhk1As.js";import{ar as A,as as R,at as D,au as J}from"./index-Cczp3zRq.js";import{u as K,s as P}from"./primitives-BMQA8oJA.js";import{S as M}from"./save-status-ByqPY8sQ.js";import"./index-Cl2voHhm.js";import"./chat-context-dU2BBYFR.js";import"./hooks-Bsl1fBrR.js";import"./use-mcp-client-QbDw5Kxr.js";import"./auth-CX0V_g3E.js";import"./decopilot-sse-pool-DStYMiox.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-D3YjjDr2.js";import"./use-collections-Ce8iOx08.js";import"./use-ai-providers-UVcAibrU.js";import"./studio-tools-Cxzj-LYh.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-B7zELDxl.js";import"./scroll-area-CDnhflx8.js";import"./agent-icon-_F0cs0c2.js";import"./AlertCircle-D7JULgSW.js";import"./Tool01-BMBmO996.js";import"./SwitchHorizontal01-B1Fi_gZm.js";import"./Settings02-B7JvRibZ.js";import"./XCircle-lg1atJo8.js";import"./ArrowUpRight-BoNegK2J.js";import"./ZapSquare-CB80bsBy.js";import"./Users03-3hrg8IdJ.js";import"./CheckCircle-CubOqkhM.js";import"./ChevronUp-BHC7PPdP.js";import"./ChevronDown-bvcGltsD.js";import"./ChevronLeft-CwoAKT1V.js";import"./ChevronRight-JjxX5FP7.js";import"./DotsVertical-lhkCwVyZ.js";import"./Stars02-0cy3Iac4.js";import"./Eye-DDlQv8dT.js";import"./ZoomOut-Da8en56C.js";import"./Globe01-DPxNkWN3.js";import"./FilterLines-5NaQCp3e.js";import"./Star01-Ctay-f61.js";import"./Globe04-CfOFRbjm.js";import"./HardDrive-Cc6TayZG.js";import"./Key01-BnvBI-54.js";import"./LayoutLeft-BqPxwhfG.js";import"./LinkExternal01-Cuz2KimH.js";import"./Monitor01-Bg2cIqWO.js";import"./Sun-VAruoT-r.js";import"./Palette-DqDQ3lBi.js";import"./Play-DJY7X3Ac.js";import"./Plus-BPXRSHah.js";import"./SearchMd-BzO607jf.js";import"./Shield01-CpKySeSn.js";import"./Stars01-BvSyxIB7.js";import"./Trash01-bpIqJEin.js";import"./Upload01-DRwUypcB.js";import"./User01-CNb4uOQF.js";import"./Users01-Dznayvgx.js";import"./XClose-DgeTXvEe.js";import"./X-BmLEy_4s.js";import"./Zap-yzjfF5fD.js";import"./use-clock-tick-C8csRlSk.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BXiwiMZD.js";import"./tooltip-B7dbgru1.js";import"./index-iwyGvJw3.js";import"./file-type-icon-CRFnZTrI.js";import"./dialog-YEMhf2fI.js";import"./content-blocks-o63cs2vh.js";import"./types-DiVU1HF6.js";import"./shell-layout-DCRByz-Z.js";import"./avatar-DMMu0sLX.js";import"./required-auth-layout-CEA-lcqq.js";import"./use-org-sso-DYW-70GB.js";import"./sheet-B0e56Uwi.js";import"./integration-icon-BefRgu4d.js";import"./use-navigate-to-agent-CHwphTrt.js";import"./use-connection-MqRKkZiS.js";import"./use-mcp-prompts-CJoxcvaa.js";import"./form-uOBsFqj5.js";import"./select-BRu_aocD.js";import"./drawer-CbS8-Awm.js";import"./collection-search-DUL6ybNZ.js";import"./tabs-CTiHAHkO.js";import"./toggle-group-D0HpOa1A.js";import"./sortable.esm-DZfVcKsT.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-Cshe8IMI.js";import"./use-registry-connections-DSvlh2CW.js";import"./useInfiniteQuery-W7QqfcbQ.js";import"./use-infinite-scroll-D-1sc3vv.js";import"./extract-connection-data-DW6_hSwc.js";import"./card-CwFHuYuT.js";import"./collection-tabs-D6_rF5iF.js";import"./badge-BIOaHIWt.js";import"./connection-form-helpers-DNsEuVwo.js";import"./authenticate-and-persist-oauth-Bb4qQGZD.js";import"./mcp-oauth-DggY1DlO.js";import"./useSuspenseInfiniteQuery-f7kozjC6.js";import"./connect-desktop-dialog-CN-ahIvP.js";import"./decopilot-CM0ZbqCj.js";import"./checkbox-Cbr8t7kQ.js";import"./skeleton-D_Y0mVys.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CMKiU6m1.js";import"./popover-BWJVGvw4.js";import"./command-BDSPStF6.js";import"./index-CEhY-HWu.js";import"./dropdown-menu-B5yyPfJy.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Bwl21Nte.js";import"./empty-state-BBWaUmc0.js";import"./toolbar-CWstIAgU.js";import"./preview-dialog-EpRi5xxw.js";import"./index-BbZOuhzX.js";import"./use-mcp-tools-CwE0F1Fa.js";import"./use-capability-Dkucj2kh.js";import"./shell-route-loading-CnU2JL57.js";import"./index-BVGtxGJp.js";import"./alert-dialog-DlpOAGY3.js";import"./switch-DPUXI2pE.js";import"./use-debounced-autosave-UYvEWk6q.js";import"./index-DwYMCCVI.js";import"./sidebar-muO-r9NM.js";import"./search-input-E5lbuSaQ.js";import"./github-repo-picker-CQzVJw3M.js";import"./use-secrets-BGVjiXmA.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-BMm_SU4X.js";import"./automation-runs-z2Y1nDjt.js";import"./table-D7DRjfAO.js";import"./use-members-DqOAFyvD.js";import"./use-org-auth-client-Cw-eW4eJ.js";import"./task-status-CzPGYn0R.js";import"./use-automations-DyhWqZVe.js";import"./use-file-configs-Caz1V2y2.js";import"./monaco-editor-D7lo6yjy.js";import"./select-model-D6u-jQT1.js";import"./automation-list-row-DikFLwfj.js";const $={authors:[{key:"name",label:"Name",widget:"text"},{key:"email",label:"Email",widget:"text",placeholder:"author@example.com"},{key:"jobTitle",label:"Job title",widget:"text"},{key:"company",label:"Company",widget:"text"},{key:"avatar",label:"Avatar",widget:"image"}]},q={authors:"Author"};function fr(S){const t=F.c(34),{orgSlug:v,virtualMcpId:j,branch:f,kind:p,blockKey:g,block:w}=S;let y;t[0]!==f||t[1]!==v||t[2]!==j?(y={orgSlug:v,virtualMcpId:j,branch:f},t[0]=f,t[1]=v,t[2]=j,t[3]=y):y=t[3];const m=A(y);let d;t[4]!==w||t[5]!==p?(d=R(w,p),t[4]=w,t[5]=p,t[6]=d):d=t[6];const B=d;let h;t[7]!==g||t[8]!==p||t[9]!==m?(h=e=>{m.mutate({blockKey:g,data:D(g,p,e)})},t[7]=g,t[8]=p,t[9]=m,t[10]=h):h=t[10];const[i,E]=K(B,h);let k;t[11]!==i||t[12]!==E?(k=(e,o)=>E({...i,[e]:o}),t[11]=i,t[12]=E,t[13]=k):k=t[13];const a=k,N=q[p];let s;t[14]!==N?(s=r.jsx("span",{className:"text-sm font-medium",children:N}),t[14]=N,t[15]=s):s=t[15];let l;t[16]!==m.isError||t[17]!==m.isPending?(l=r.jsx(M,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=l):l=t[18];let n;t[19]!==s||t[20]!==l?(n=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[s,l]}),t[19]=s,t[20]=l,t[21]=n):n=t[21];const I=$[p];let c;if(t[22]!==i||t[23]!==a||t[24]!==I){let e;t[26]!==i||t[27]!==a?(e=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(J,{schema:{type:"string",format:"image-uri",title:o.label},value:i[o.key],onChange:u=>a(o.key,u),path:o.key,label:o.label}):r.jsxs(r.Fragment,{children:[r.jsx(C,{htmlFor:o.key,children:o.label}),o.widget==="textarea"?r.jsx(L,{id:o.key,value:P(i[o.key]),onChange:u=>a(o.key,u.target.value),rows:3}):r.jsx(T,{id:o.key,value:P(i[o.key]),placeholder:o.placeholder,onChange:u=>a(o.key,u.target.value),className:"h-10"})]})},o.key),t[26]=i,t[27]=a,t[28]=e):e=t[28],c=I.map(e),t[22]=i,t[23]=a,t[24]=I,t[25]=c}else c=t[25];let x;t[29]!==c?(x=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:c})}),t[29]=c,t[30]=x):x=t[30];let b;return t[31]!==x||t[32]!==n?(b=r.jsxs("div",{className:"flex h-full flex-col",children:[n,x]}),t[31]=x,t[32]=n,t[33]=b):b=t[33],b}export{fr as RecordEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-DrMxvc62.js","assets/index-Da7zBgP3.js","assets/index-DDRZvmg6.css","assets/XCircle-lg1atJo8.js","assets/CheckCircle-CubOqkhM.js","assets/Settings02-B7JvRibZ.js","assets/use-mcp-client-QbDw5Kxr.js","assets/auth-CX0V_g3E.js","assets/useInfiniteQuery-W7QqfcbQ.js","assets/use-infinite-scroll-D-1sc3vv.js","assets/studio-tools-Cxzj-LYh.js","assets/badge-BIOaHIWt.js","assets/input-JrKcP8_P.js","assets/dropdown-menu-B5yyPfJy.js","assets/ChevronUp-BHC7PPdP.js","assets/ChevronRight-JjxX5FP7.js","assets/DotsVertical-lhkCwVyZ.js","assets/table-D7DRjfAO.js","assets/toggle-group-D0HpOa1A.js","assets/use-view-mode-DeBJ3OlV.js","assets/tooltip-B7dbgru1.js","assets/index-iwyGvJw3.js","assets/FilterLines-5NaQCp3e.js","assets/Globe01-DPxNkWN3.js","assets/SearchMd-BzO607jf.js","assets/dialog-YEMhf2fI.js","assets/X-BmLEy_4s.js","assets/AlertCircle-D7JULgSW.js","assets/Upload01-DRwUypcB.js","assets/alert-dialog-DlpOAGY3.js","assets/card-CwFHuYuT.js","assets/Trash01-bpIqJEin.js","assets/label-DamWvDSp.js","assets/select-BRu_aocD.js","assets/ChevronDown-bvcGltsD.js","assets/switch-DPUXI2pE.js","assets/textarea-rSIhk1As.js","assets/checkbox-Cbr8t7kQ.js","assets/Eye-DDlQv8dT.js","assets/LinkExternal01-Cuz2KimH.js","assets/use-copy-BXiwiMZD.js","assets/Key01-BnvBI-54.js","assets/Plus-BPXRSHah.js","assets/mcp-oauth-DggY1DlO.js","assets/Play-DJY7X3Ac.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as s,j as e,r as i,i as a,al as o}from"./index-Da7zBgP3.js";import{R as l}from"./require-capability-DQB_sHm-.js";import"./use-capability-Dkucj2kh.js";import"./access-gate-BK8VNoXv.js";import"./capability-load-error-DRTuvJDl.js";const m=i.lazy(()=>o(()=>import("./registry-layout-DrMxvc62.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44])));function f(){const r=s.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(l,{capability:"registry:manage",area:"the registry",children:e.jsx(i.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(m,{})})}),r[0]=t):t=r[0],t}export{f as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as ze,r as w,l as Ce,j as n,B as Ue,i as Dn,m as Ys,t as fe,K as Js}from"./index-Da7zBgP3.js";import{r as Qs,a as Xs,s as Zs,i as Tn,c as Gs,b as ea,G as ta,V as na,d as sa,e as jt,f as aa,g as ra,h as oa,j as ia,k as la,l as ca,m as ua,n as da,o as ma,p as xt,q as bt,t as fa,v as et,w as Lt,x as pa,y as Xe,z as gn,S as ha,M as vn,A as tt,B as Sn,C as ga,D as xn,P as va,E as Bt,F as Sa,H as xa,I as ba,J as ya,K as ja,L as _a,N as ka,O as dt,Q as wa,R as Na,T as Ra,U as Ca,W as Da,X as Ta,Y as Pa,Z as Va,_ as bn,$ as Ft,a0 as Aa,a1 as Ma,a2 as zt,a3 as Ea,a4 as yn,a5 as $a,a6 as Ka,a7 as Oa,a8 as It,a9 as La,aa as Ba,ab as Pn,ac as jn}from"./index-Cczp3zRq.js";import{t as Fa}from"./ChevronDown-bvcGltsD.js";import{n as za}from"./ChevronLeft-CwoAKT1V.js";import{i as Vn}from"./ChevronRight-JjxX5FP7.js";import{n as Ia}from"./ChevronUp-BHC7PPdP.js";import{K as Ut,D as An,W as Mn,l as Ha,L as Ua,M as Wa}from"./agent-icon-_F0cs0c2.js";import{i as qa}from"./Globe01-DPxNkWN3.js";import{S as yt}from"./scroll-area-CDnhflx8.js";import{b as st,T as at,a as rt}from"./tooltip-B7dbgru1.js";import{a as Ya,D as Ja,b as Qa,e as Xa,c as Za,d as Ga}from"./dialog-YEMhf2fI.js";import{I as er}from"./input-JrKcP8_P.js";import{s as tr,a as nr}from"./Eye-DDlQv8dT.js";import{c as sr}from"./ZoomOut-Da8en56C.js";import{b as ar}from"./Settings02-B7JvRibZ.js";import{s as Wt}from"./Plus-BPXRSHah.js";import{s as En}from"./Trash01-bpIqJEin.js";import{i as rr}from"./Zap-yzjfF5fD.js";import{c as nt,a as $n,D as Kn,b as On,g as or}from"./dropdown-menu-B5yyPfJy.js";import{b as Ln,c as _t,K as Bn,P as Fn,e as zn,C as In,s as Hn,l as mt,D as Un,d as Wn,S as qn,v as ir,k as Yn,p as lr}from"./sortable.esm-DZfVcKsT.js";import{r as _n,u as cr,d as ur,a as dr,i as mr,f as fr,P as pr,b as hr,S as gr}from"./page-seo-form-C28dqfPj.js";import{b as vr}from"./Tool01-BMBmO996.js";import{A as Sr}from"./add-section-modal-CIpKj9LO.js";import"./index-Cl2voHhm.js";import"./chat-context-dU2BBYFR.js";import"./hooks-Bsl1fBrR.js";import"./use-mcp-client-QbDw5Kxr.js";import"./auth-CX0V_g3E.js";import"./decopilot-sse-pool-DStYMiox.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-D3YjjDr2.js";import"./use-collections-Ce8iOx08.js";import"./use-ai-providers-UVcAibrU.js";import"./studio-tools-Cxzj-LYh.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-B7zELDxl.js";import"./drawer-CbS8-Awm.js";import"./collection-search-DUL6ybNZ.js";import"./SearchMd-BzO607jf.js";import"./use-mcp-prompts-CJoxcvaa.js";import"./X-BmLEy_4s.js";import"./shell-layout-DCRByz-Z.js";import"./avatar-DMMu0sLX.js";import"./User01-CNb4uOQF.js";import"./Users03-3hrg8IdJ.js";import"./Stars02-0cy3Iac4.js";import"./XClose-DgeTXvEe.js";import"./CheckCircle-CubOqkhM.js";import"./FilterLines-5NaQCp3e.js";import"./required-auth-layout-CEA-lcqq.js";import"./use-org-sso-DYW-70GB.js";import"./SwitchHorizontal01-B1Fi_gZm.js";import"./ZapSquare-CB80bsBy.js";import"./Star01-Ctay-f61.js";import"./Upload01-DRwUypcB.js";import"./AlertCircle-D7JULgSW.js";import"./form-uOBsFqj5.js";import"./label-DamWvDSp.js";import"./select-BRu_aocD.js";import"./index-iwyGvJw3.js";import"./XCircle-lg1atJo8.js";import"./tabs-CTiHAHkO.js";import"./toggle-group-D0HpOa1A.js";import"./Monitor01-Bg2cIqWO.js";import"./connect-desktop-dialog-CN-ahIvP.js";import"./decopilot-CM0ZbqCj.js";import"./checkbox-Cbr8t7kQ.js";import"./skeleton-D_Y0mVys.js";import"./Key01-BnvBI-54.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CMKiU6m1.js";import"./card-CwFHuYuT.js";import"./ArrowUpRight-BoNegK2J.js";import"./Stars01-BvSyxIB7.js";import"./popover-BWJVGvw4.js";import"./command-BDSPStF6.js";import"./index-CEhY-HWu.js";import"./useInfiniteQuery-W7QqfcbQ.js";import"./use-infinite-scroll-D-1sc3vv.js";import"./question-004-sINsf4GQ.js";import"./integration-icon-BefRgu4d.js";import"./use-status-sounds-Bwl21Nte.js";import"./empty-state-BBWaUmc0.js";import"./toolbar-CWstIAgU.js";import"./preview-dialog-EpRi5xxw.js";import"./LinkExternal01-Cuz2KimH.js";import"./index-BbZOuhzX.js";import"./file-type-icon-CRFnZTrI.js";import"./LayoutLeft-BqPxwhfG.js";import"./use-connection-MqRKkZiS.js";import"./use-mcp-tools-CwE0F1Fa.js";import"./types-DiVU1HF6.js";import"./use-capability-Dkucj2kh.js";import"./textarea-rSIhk1As.js";import"./shell-route-loading-CnU2JL57.js";import"./extract-connection-data-DW6_hSwc.js";import"./index-BVGtxGJp.js";import"./mcp-oauth-DggY1DlO.js";import"./badge-BIOaHIWt.js";import"./connection-slug-eyAPH6o3.js";import"./alert-dialog-DlpOAGY3.js";import"./switch-DPUXI2pE.js";import"./Play-DJY7X3Ac.js";import"./use-debounced-autosave-UYvEWk6q.js";import"./index-DwYMCCVI.js";import"./sidebar-muO-r9NM.js";import"./sheet-B0e56Uwi.js";import"./search-input-E5lbuSaQ.js";import"./collection-tabs-D6_rF5iF.js";import"./github-repo-picker-CQzVJw3M.js";import"./authenticate-and-persist-oauth-Bb4qQGZD.js";import"./use-navigate-to-agent-CHwphTrt.js";import"./Users01-Dznayvgx.js";import"./use-secrets-BGVjiXmA.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./view-mode-toggle-BMm_SU4X.js";import"./DotsVertical-lhkCwVyZ.js";import"./automation-runs-z2Y1nDjt.js";import"./table-D7DRjfAO.js";import"./use-members-DqOAFyvD.js";import"./use-org-auth-client-Cw-eW4eJ.js";import"./task-status-CzPGYn0R.js";import"./use-automations-DyhWqZVe.js";import"./useSuspenseInfiniteQuery-f7kozjC6.js";import"./use-file-configs-Caz1V2y2.js";import"./monaco-editor-D7lo6yjy.js";import"./select-model-D6u-jQT1.js";import"./automation-list-row-DikFLwfj.js";import"./Globe04-CfOFRbjm.js";import"./HardDrive-Cc6TayZG.js";import"./Sun-VAruoT-r.js";import"./Palette-DqDQ3lBi.js";import"./Shield01-CpKySeSn.js";import"./use-clock-tick-C8csRlSk.js";import"./use-copy-BXiwiMZD.js";import"./content-blocks-o63cs2vh.js";import"./connection-card-Cshe8IMI.js";import"./use-registry-connections-DSvlh2CW.js";import"./connection-form-helpers-DNsEuVwo.js";function xr(d){return d.schema?.definitions??d.schema?.$defs??{}}function br(d,e){const r=xr(e),c=r[btoa(d)];if(!c)return;let u=typeof c.image=="string"?c.image:void 0;if(!u&&Array.isArray(c.allOf)){const h=c.allOf.find(v=>typeof v.$ref=="string")?.$ref;if(typeof h=="string"){const v=h.replace("#/definitions/",""),f=r[v];u=typeof f?.image=="string"?f.image:void 0}}if(u?.includes("{{{"))return u}function yr(d,e){if(!e)return;const r=Qs(d);if(!r)return;const c=br(r.resolveType,e);if(!c)return;const u=Xs(c,r.data);if(u)return Zs(u)}const jr="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",_r="text-global-section-fg focus:bg-global-section/12 focus:text-global-section-fg dark:text-global-section-fg-dark dark:focus:bg-global-section/15 dark:focus:text-global-section-fg-dark [&_svg]:!text-global-section";function kn(d){return Array.from({length:d},(e,r)=>({id:crypto.randomUUID(),index:r}))}function Jn(d){return d.map((e,r)=>({...e,index:r}))}function kr(d,e){if(e===d.length)return d;if(e<d.length)return Jn(d.slice(0,e));const r=Array.from({length:e-d.length},(c,u)=>({id:crypto.randomUUID(),index:d.length+u}));return[...d,...r]}function Qn(d){const e=ze.c(20),{section:r,raw:c,meta:u}=d,h=r.isSavedBlock===!0,v=r.isMultivariate===!0;let f;e[0]!==u||e[1]!==c?(f=c&&u?yr(c,u):void 0,e[0]=u,e[1]=c,e[2]=f):f=e[2];const g=f;let S;e[3]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx(sr,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[3]=S):S=e[3];let x;e[4]!==g?(x=g&&n.jsx("img",{src:g,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),e[4]=g,e[5]=x):x=e[5];let D;e[6]!==v||e[7]!==h?(D=h?{color:ta}:v?{color:"oklch(0.65 0.15 160)"}:void 0,e[6]=v,e[7]=h,e[8]=D):D=e[8];let N;e[9]!==D?(N=n.jsx(Ut,{className:"h-4 w-4 shrink-0",style:D}),e[9]=D,e[10]=N):N=e[10];const _=r.isHidden&&"line-through opacity-50";let k;e[11]!==_?(k=Ce("min-w-0 flex-1 truncate text-sm font-medium",_),e[11]=_,e[12]=k):k=e[12];let o;e[13]!==r.label||e[14]!==k?(o=n.jsx("span",{className:k,children:r.label}),e[13]=r.label,e[14]=k,e[15]=o):o=e[15];let b;return e[16]!==x||e[17]!==N||e[18]!==o?(b=n.jsxs(n.Fragment,{children:[S,x,N,o]}),e[16]=x,e[17]=N,e[18]=o,e[19]=b):b=e[19],b}function Xn(d,e){const r=d.isSavedBlock===!0,c=d.isMultivariate===!0;return Ce("group flex select-none items-center gap-2 rounded-md px-2 py-2.5",e?"bg-accent text-accent-foreground":r?jr:c?"text-[oklch(0.45_0.15_160)] hover:bg-[oklch(0.65_0.15_160/0.12)] dark:text-[oklch(0.78_0.15_160)] dark:hover:bg-[oklch(0.65_0.15_160/0.15)]":"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function wr(d){const e=ze.c(64),{section:r,raw:c,meta:u,sortableId:h,selected:v,onSelect:f,onDelete:g,onDuplicate:S,onMakeReusable:x,onToggleHidden:D,onToggleLazy:N,onAddVariant:_,onDetach:k}=d,o=c?Tn(c.__resolveType??""):!1;let b;e[0]!==r?(b=Gs(r),e[0]=r,e[1]=b):b=e[1];const m=b;let U;e[2]!==h?(U={id:h,animateLayoutChanges:Tr},e[2]=h,e[3]=U):U=e[3];const{attributes:J,listeners:L,setNodeRef:l,transform:C,isDragging:le}=zn(U);let T;e[4]!==C?(T=In.Transform.toString(C?{...C,x:0}:null),e[4]=C,e[5]=T):T=e[5];const ue=le?0:void 0;let P;e[6]!==T||e[7]!==ue?(P={transform:T,opacity:ue},e[6]=T,e[7]=ue,e[8]=P):P=e[8];const Z=P;let B;e[9]!==r?(B=ea(r),e[9]=r,e[10]=B):B=e[10];const ae=B,re="button",Se=0;let G;e[11]!==f?(G=$=>{($.key==="Enter"||$.key===" ")&&($.preventDefault(),f())},e[11]=f,e[12]=G):G=e[12];const z=le?"cursor-grabbing":"cursor-pointer";let ee;e[13]!==r||e[14]!==v||e[15]!==z?(ee=Ce("touch-none transition-colors",z,Xn(r,v)),e[13]=r,e[14]=v,e[15]=z,e[16]=ee):ee=e[16];let Q;e[17]!==u||e[18]!==c||e[19]!==r?(Q=n.jsx(Qn,{section:r,raw:c,meta:u}),e[17]=u,e[18]=c,e[19]=r,e[20]=Q):Q=e[20];const A=!r.isMultivariate&&n.jsxs(st,{children:[n.jsx(at,{asChild:!0,children:n.jsx(Ue,{type:"button",variant:"ghost",size:"icon","aria-label":o?"Disable async render":"Enable async render",className:Ce("h-7 w-7 shrink-0",o?"":"opacity-0 group-hover:opacity-100"),onClick:$=>{$.stopPropagation(),N()},onPointerDown:Dr,children:n.jsx(rr,{className:Ce("h-3.5 w-3.5",o&&"text-yellow-500")})})}),n.jsx(rt,{side:"bottom",children:o?"Disable async render":"Enable async render"})]});let oe;e[21]!==D||e[22]!==r.isHidden||e[23]!==r.isMultivariate?(oe=!r.isMultivariate&&n.jsxs(st,{children:[n.jsx(at,{asChild:!0,children:n.jsx(Ue,{type:"button",variant:"ghost",size:"icon","aria-label":r.isHidden?"Show section":"Hide section",className:Ce("h-7 w-7 shrink-0",r.isHidden?"opacity-100":"opacity-0 group-hover:opacity-100"),onClick:$=>{$.stopPropagation(),D()},onPointerDown:Cr,children:r.isHidden?n.jsx(ar,{className:"h-3.5 w-3.5"}):n.jsx(tr,{className:"h-3.5 w-3.5"})})}),n.jsx(rt,{side:"bottom",children:r.isHidden?"Show section":"Hide section"})]}),e[21]=D,e[22]=r.isHidden,e[23]=r.isMultivariate,e[24]=oe):oe=e[24];let q;e[25]===Symbol.for("react.memo_cache_sentinel")?(q=n.jsx($n,{asChild:!0,children:n.jsx(Ue,{type:"button",variant:"ghost",size:"icon","aria-label":"Section actions",className:"h-7 w-7 shrink-0 opacity-0 group-hover:opacity-100",onClick:Rr,onPointerDown:Nr,children:n.jsx(An,{className:"h-3.5 w-3.5"})})}),e[25]=q):q=e[25];let X;e[26]!==S?(X=$=>{$.stopPropagation(),S()},e[26]=S,e[27]=X):X=e[27];let te;e[28]===Symbol.for("react.memo_cache_sentinel")?(te=n.jsx(nr,{className:"h-4 w-4"}),e[28]=te):te=e[28];let F;e[29]!==X?(F=n.jsxs(nt,{onClick:X,children:[te,"Duplicate"]}),e[29]=X,e[30]=F):F=e[30];let M;e[31]!==m||e[32]!==_?(M=m&&n.jsxs(nt,{className:na,onClick:$=>{$.stopPropagation(),_()},children:[n.jsx(Mn,{className:"h-4 w-4"}),"Add variant"]}),e[31]=m,e[32]=_,e[33]=M):M=e[33];let E;e[34]!==ae||e[35]!==x?(E=ae&&n.jsxs(nt,{className:_r,onClick:$=>{$.stopPropagation(),x()},children:[n.jsx(Ut,{className:"h-4 w-4"}),"Make reusable"]}),e[34]=ae,e[35]=x,e[36]=E):E=e[36];let ne;e[37]!==k||e[38]!==r.isMultivariate||e[39]!==r.isSavedBlock?(ne=r.isSavedBlock===!0&&!r.isMultivariate&&n.jsxs(nt,{onClick:$=>{$.stopPropagation(),k()},children:[n.jsx(Ut,{className:"h-4 w-4"}),"Detach"]}),e[37]=k,e[38]=r.isMultivariate,e[39]=r.isSavedBlock,e[40]=ne):ne=e[40];let pe;e[41]!==g?(pe=$=>{$.stopPropagation(),g()},e[41]=g,e[42]=pe):pe=e[42];let he;e[43]===Symbol.for("react.memo_cache_sentinel")?(he=n.jsx(En,{className:"h-4 w-4"}),e[43]=he):he=e[43];let de;e[44]!==pe?(de=n.jsxs(nt,{className:"text-destructive focus:text-destructive",onClick:pe,children:[he,"Delete"]}),e[44]=pe,e[45]=de):de=e[45];let ie;e[46]!==F||e[47]!==M||e[48]!==E||e[49]!==ne||e[50]!==de?(ie=n.jsxs(Kn,{children:[q,n.jsxs(On,{align:"end",className:"w-44",children:[F,M,E,ne,de]})]}),e[46]=F,e[47]=M,e[48]=E,e[49]=ne,e[50]=de,e[51]=ie):ie=e[51];let I;return e[52]!==J||e[53]!==L||e[54]!==f||e[55]!==l||e[56]!==Z||e[57]!==ee||e[58]!==Q||e[59]!==A||e[60]!==oe||e[61]!==ie||e[62]!==G?(I=n.jsxs("div",{ref:l,style:Z,...J,...L,role:re,tabIndex:Se,onClick:f,onKeyDown:G,className:ee,children:[Q,A,oe,ie]}),e[52]=J,e[53]=L,e[54]=f,e[55]=l,e[56]=Z,e[57]=ee,e[58]=Q,e[59]=A,e[60]=oe,e[61]=ie,e[62]=G,e[63]=I):I=e[63],I}function Nr(d){return d.stopPropagation()}function Rr(d){return d.stopPropagation()}function Cr(d){return d.stopPropagation()}function Dr(d){return d.stopPropagation()}function Tr(){return!1}function Pr(d){const e=ze.c(90),{listKey:r,rawSections:c,sections:u,meta:h,selectedIndex:v,onSelect:f,onReorder:g,onDelete:S,onDuplicate:x,onMakeReusable:D,onToggleHidden:N,onToggleLazy:_,onAddVariant:k,onDetach:o,onAddSection:b,canAddSection:m}=d,U=m===void 0?!0:m;let J;e[0]!==u.length?(J=()=>kn(u.length),e[0]=u.length,e[1]=J):J=e[1];const[L,l]=w.useState(J),[C,le]=w.useState(null),[T,ue]=w.useState(r),[P,Z]=w.useState(u.length),B=w.useRef(!1);T!==r?(ue(r),Z(u.length),l(kn(u.length))):P!==u.length&&(Z(u.length),l(V=>kr(V,u.length)));let ae;e[2]===Symbol.for("react.memo_cache_sentinel")?(ae={activationConstraint:{distance:8}},e[2]=ae):ae=e[2];let re;e[3]===Symbol.for("react.memo_cache_sentinel")?(re={coordinateGetter:Hn},e[3]=re):re=e[3];const Se=Ln(_t(Fn,ae),_t(Bn,re));let G;e[4]!==L?(G=L.map(Vr),e[4]=L,e[5]=G):G=e[5];const z=G;let ee;e[6]===Symbol.for("react.memo_cache_sentinel")?(ee=V=>{le(String(V.active.id))},e[6]=ee):ee=e[6];const Q=ee;let A;e[7]!==z||e[8]!==g?(A=V=>{le(null);const{active:K,over:W}=V;if(!W||K.id===W.id)return;const Be=z.indexOf(String(K.id)),Ie=z.indexOf(String(W.id));Be===-1||Ie===-1||(l(We=>Jn(mt([...We],Be,Ie))),B.current=!0,requestAnimationFrame(()=>{B.current=!1}),g?.(Be,Ie))},e[7]=z,e[8]=g,e[9]=A):A=e[9];const oe=A;let q;e[10]===Symbol.for("react.memo_cache_sentinel")?(q=()=>{le(null)},e[10]=q):q=e[10];const X=q;let te,F,M,E,ne,pe,he,de,ie,I,$,De,ke,Ee,we;if(e[11]!==C||e[12]!==U||e[13]!==L||e[14]!==z||e[15]!==oe||e[16]!==h||e[17]!==b||e[18]!==k||e[19]!==S||e[20]!==o||e[21]!==x||e[22]!==D||e[23]!==f||e[24]!==N||e[25]!==_||e[26]!==c||e[27]!==u||e[28]!==v||e[29]!==Se){Ee=Symbol.for("react.early_return_sentinel");e:{const V=K=>{B.current||f(K)};if(e[45]!==C||e[46]!==U||e[47]!==L||e[48]!==b||e[49]!==c||e[50]!==u){const K=C?L.find(W=>W.id===C):null;if(E=K!=null?u[K.index]:null,M=K!=null?c[K.index]:void 0,L.length===0){let W;e[54]===Symbol.for("react.memo_cache_sentinel")?(W=n.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:"No sections in this page."}),e[54]=W):W=e[54];const Be=!U;let Ie;e[55]===Symbol.for("react.memo_cache_sentinel")?(Ie=n.jsx(Wt,{size:14}),e[55]=Ie):Ie=e[55];let We;e[56]!==b||e[57]!==Be?(We=n.jsxs("div",{className:"space-y-2",children:[W,n.jsxs(Ue,{type:"button",variant:"outline",size:"sm",className:"w-full",disabled:Be,onClick:b,children:[Ie,"Add section"]})]}),e[56]=b,e[57]=Be,e[58]=We):We=e[58],Ee=We;break e}ke=Ce(K&&"cursor-grabbing"),e[45]=C,e[46]=U,e[47]=L,e[48]=b,e[49]=c,e[50]=u,e[51]=M,e[52]=E,e[53]=ke}else M=e[51],E=e[52],ke=e[53];F=Un,de=Se,ie=Wn,I=Q,$=oe,De=X,te=qn,pe=z,he=ir,we="space-y-1",ne=L.map(K=>{const W=u[K.index];return W?n.jsx(wr,{sortableId:K.id,section:W,raw:c[K.index],meta:h,selected:v===K.index,onSelect:()=>V(K.index),onDelete:()=>S(K.index),onDuplicate:()=>x(K.index),onMakeReusable:()=>D(K.index),onToggleHidden:()=>N(K.index),onToggleLazy:()=>_(K.index),onAddVariant:()=>k(K.index),onDetach:()=>o(K.index)},K.id):null})}e[11]=C,e[12]=U,e[13]=L,e[14]=z,e[15]=oe,e[16]=h,e[17]=b,e[18]=k,e[19]=S,e[20]=o,e[21]=x,e[22]=D,e[23]=f,e[24]=N,e[25]=_,e[26]=c,e[27]=u,e[28]=v,e[29]=Se,e[30]=te,e[31]=F,e[32]=M,e[33]=E,e[34]=ne,e[35]=pe,e[36]=he,e[37]=de,e[38]=ie,e[39]=I,e[40]=$,e[41]=De,e[42]=ke,e[43]=Ee,e[44]=we}else te=e[30],F=e[31],M=e[32],E=e[33],ne=e[34],pe=e[35],he=e[36],de=e[37],ie=e[38],I=e[39],$=e[40],De=e[41],ke=e[42],Ee=e[43],we=e[44];if(Ee!==Symbol.for("react.early_return_sentinel"))return Ee;let Te;e[59]!==ne||e[60]!==we?(Te=n.jsx("div",{className:we,children:ne}),e[59]=ne,e[60]=we,e[61]=Te):Te=e[61];let $e;e[62]!==te||e[63]!==pe||e[64]!==he||e[65]!==Te?($e=n.jsx(te,{items:pe,strategy:he,children:Te}),e[62]=te,e[63]=pe,e[64]=he,e[65]=Te,e[66]=$e):$e=e[66];let Ke;e[67]!==M||e[68]!==E||e[69]!==h?(Ke=E?n.jsx("div",{className:Ce("cursor-grabbing shadow-lg ring-1 ring-border/60",Xn(E,!1)),children:n.jsx(Qn,{section:E,raw:M,meta:h})}):null,e[67]=M,e[68]=E,e[69]=h,e[70]=Ke):Ke=e[70];let xe;e[71]!==Ke?(xe=n.jsx(Yn,{dropAnimation:null,children:Ke}),e[71]=Ke,e[72]=xe):xe=e[72];let Oe;e[73]!==F||e[74]!==de||e[75]!==ie||e[76]!==I||e[77]!==$||e[78]!==De||e[79]!==$e||e[80]!==xe?(Oe=n.jsxs(F,{sensors:de,collisionDetection:ie,onDragStart:I,onDragEnd:$,onDragCancel:De,children:[$e,xe]}),e[73]=F,e[74]=de,e[75]=ie,e[76]=I,e[77]=$,e[78]=De,e[79]=$e,e[80]=xe,e[81]=Oe):Oe=e[81];const Pe=!U;let ce;e[82]===Symbol.for("react.memo_cache_sentinel")?(ce=n.jsx(Wt,{size:14}),e[82]=ce):ce=e[82];let se;e[83]!==b||e[84]!==Pe?(se=n.jsxs(Ue,{type:"button",variant:"outline",size:"sm",className:"mt-2 w-full",disabled:Pe,onClick:b,children:[ce,"Add section"]}),e[83]=b,e[84]=Pe,e[85]=se):se=e[85];let Ne;return e[86]!==ke||e[87]!==Oe||e[88]!==se?(Ne=n.jsxs("div",{className:ke,children:[Oe,se]}),e[86]=ke,e[87]=Oe,e[88]=se,e[89]=Ne):Ne=e[89],Ne}function Vr(d){return d.id}function Ar(d){const e=ze.c(38),{open:r,initialName:c,autoLabel:u,isPending:h,onSubmit:v,onOpenChange:f}=d,g=h===void 0?!1:h,[S,x]=w.useState(c),[D,N]=w.useState(r);r!==D&&(N(r),r&&x(c));let _;e[0]!==g||e[1]!==f?(_=re=>{!re&&!g&&f(!1)},e[0]=g,e[1]=f,e[2]=_):_=e[2];const k=_;let o;e[3]!==g||e[4]!==S||e[5]!==v?(o=async re=>{re.preventDefault(),!g&&await v(S.trim())},e[3]=g,e[4]=S,e[5]=v,e[6]=o):o=e[6];const b=o;let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsx(Ya,{children:"Rename variant"}),e[7]=m):m=e[7];const U=u||"the rule";let J;e[8]!==U?(J=n.jsxs(Ja,{children:[m,n.jsxs(Qa,{children:["Save this matcher as a global block with a custom label. Leave empty to inline the matcher again and fall back to"," ",n.jsx("span",{className:"font-medium",children:U}),"."]})]}),e[8]=U,e[9]=J):J=e[9];let L;e[10]===Symbol.for("react.memo_cache_sentinel")?(L=n.jsx("label",{htmlFor:"variant-rename-name",className:"text-xs font-medium text-muted-foreground",children:"Name"}),e[10]=L):L=e[10];let l;e[11]===Symbol.for("react.memo_cache_sentinel")?(l=re=>x(re.target.value),e[11]=l):l=e[11];let C;e[12]!==u||e[13]!==g||e[14]!==S?(C=n.jsxs("div",{className:"space-y-1.5 py-4",children:[L,n.jsx(er,{id:"variant-rename-name",value:S,onChange:l,placeholder:u,autoFocus:!0,disabled:g})]}),e[12]=u,e[13]=g,e[14]=S,e[15]=C):C=e[15];let le;e[16]!==f?(le=()=>f(!1),e[16]=f,e[17]=le):le=e[17];let T;e[18]!==g||e[19]!==le?(T=n.jsx(Ue,{type:"button",variant:"outline",onClick:le,disabled:g,children:"Cancel"}),e[18]=g,e[19]=le,e[20]=T):T=e[20];let ue;e[21]!==g?(ue=g?n.jsxs(n.Fragment,{children:[n.jsx(Dn,{size:14,className:"animate-spin"}),"Saving…"]}):"Save",e[21]=g,e[22]=ue):ue=e[22];let P;e[23]!==g||e[24]!==ue?(P=n.jsx(Ue,{type:"submit",disabled:g,children:ue}),e[23]=g,e[24]=ue,e[25]=P):P=e[25];let Z;e[26]!==T||e[27]!==P?(Z=n.jsxs(Xa,{children:[T,P]}),e[26]=T,e[27]=P,e[28]=Z):Z=e[28];let B;e[29]!==b||e[30]!==Z||e[31]!==J||e[32]!==C?(B=n.jsx(Za,{className:"sm:max-w-md",children:n.jsxs("form",{onSubmit:b,children:[J,C,Z]})}),e[29]=b,e[30]=Z,e[31]=J,e[32]=C,e[33]=B):B=e[33];let ae;return e[34]!==k||e[35]!==r||e[36]!==B?(ae=n.jsx(Ga,{open:r,onOpenChange:k,children:B}),e[34]=k,e[35]=r,e[36]=B,e[37]=ae):ae=e[37],ae}const Mr="oklch(0.65 0.15 160)",Zn="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 qt(d){const e=ze.c(5),{rule:r,matchers:c}=d,u=r?.__resolveType??"";let h;if(e[0]!==c||e[1]!==u){const S=c.find(x=>x.resolveType===u)?.iconName??sa(u);h=Ha(S),e[0]=c,e[1]=u,e[2]=h}else h=e[2];const v=h;if(!v)return null;let f;return e[3]!==v?(f=n.jsx(v,{size:14,className:"shrink-0"}),e[3]=v,e[4]=f):f=e[4],f}function wn(d){return d.map(e=>`${e.label}|${e.rule?.__resolveType??""}`).join(`
|
|
2
|
-
`)}function Ht(d){return d.map((e,r)=>({id:crypto.randomUUID(),index:r,variant:e}))}function Er(d){return d.map((e,r)=>({...e,index:r}))}function $r(d){const e=ze.c(51),{entry:r,sortableId:c,isActive:u,canDelete:h,decofile:v,meta:f,matchers:g,onSelect:S,onRename:x,onDelete:D}=d;let N;e[0]!==c?(N={id:c,animateLayoutChanges:Lr},e[0]=c,e[1]=N):N=e[1];const{attributes:_,listeners:k,setNodeRef:o,transform:b,isDragging:m}=zn(N);let U;e[2]!==b?(U=In.Transform.toString(b?{...b,y:0}:null),e[2]=b,e[3]=U):U=e[3];const J=m?0:void 0;let L;e[4]!==U||e[5]!==J?(L={transform:U,opacity:J},e[4]=U,e[5]=J,e[6]=L):L=e[6];const l=L,C=f??void 0;let le;e[7]!==v||e[8]!==r.variant.rule||e[9]!==C?(le=jt(r.variant.rule,v,C),e[7]=v,e[8]=r.variant.rule,e[9]=C,e[10]=le):le=e[10];const T=le,ue=u?Zn:"text-muted-foreground hover:bg-muted hover:text-foreground",P=m?"cursor-grabbing":"cursor-grab";let Z;e[11]!==ue||e[12]!==P?(Z=Ce("group shrink-0 inline-flex items-center rounded-md transition-colors touch-none",ue,P),e[11]=ue,e[12]=P,e[13]=Z):Z=e[13];let B;e[14]!==T||e[15]!==g?(B=n.jsx(qt,{rule:T,matchers:g}),e[14]=T,e[15]=g,e[16]=B):B=e[16];let ae;e[17]!==r.variant.label?(ae=n.jsx("span",{className:"truncate",children:r.variant.label}),e[17]=r.variant.label,e[18]=ae):ae=e[18];let re;e[19]!==_||e[20]!==k||e[21]!==S||e[22]!==B||e[23]!==ae?(re=n.jsxs("button",{type:"button",..._,...k,onClick:S,className:"inline-flex items-center gap-1.5 h-8 pl-3 pr-1.5 text-sm font-medium cursor-[inherit]",children:[B,ae]}),e[19]=_,e[20]=k,e[21]=S,e[22]=B,e[23]=ae,e[24]=re):re=e[24];const Se=`Actions for ${r.variant.label}`,G=u&&"opacity-100";let z;e[25]!==G?(z=Ce("inline-flex h-8 w-6 items-center justify-center pr-1 cursor-pointer transition-opacity","opacity-0 group-hover:opacity-100 data-[state=open]:opacity-100",G),e[25]=G,e[26]=z):z=e[26];let ee;e[27]===Symbol.for("react.memo_cache_sentinel")?(ee=n.jsx(An,{size:12}),e[27]=ee):ee=e[27];let Q;e[28]!==Se||e[29]!==z?(Q=n.jsx($n,{asChild:!0,children:n.jsx("button",{type:"button","aria-label":Se,onClick:Or,onPointerDown:Kr,className:z,children:ee})}),e[28]=Se,e[29]=z,e[30]=Q):Q=e[30];let A;e[31]===Symbol.for("react.memo_cache_sentinel")?(A=n.jsx(vr,{size:14}),e[31]=A):A=e[31];let oe;e[32]!==x?(oe=n.jsxs(nt,{onClick:x,children:[A,"Rename"]}),e[32]=x,e[33]=oe):oe=e[33];let q;e[34]===Symbol.for("react.memo_cache_sentinel")?(q=n.jsx(or,{}),e[34]=q):q=e[34];const X=!h;let te;e[35]===Symbol.for("react.memo_cache_sentinel")?(te=n.jsx(En,{size:14}),e[35]=te):te=e[35];let F;e[36]!==D||e[37]!==X?(F=n.jsxs(nt,{variant:"destructive",disabled:X,onClick:D,children:[te,"Delete"]}),e[36]=D,e[37]=X,e[38]=F):F=e[38];let M;e[39]!==oe||e[40]!==F?(M=n.jsxs(On,{align:"start",className:"w-36",children:[oe,q,F]}),e[39]=oe,e[40]=F,e[41]=M):M=e[41];let E;e[42]!==Q||e[43]!==M?(E=n.jsxs(Kn,{children:[Q,M]}),e[42]=Q,e[43]=M,e[44]=E):E=e[44];let ne;return e[45]!==o||e[46]!==l||e[47]!==re||e[48]!==E||e[49]!==Z?(ne=n.jsxs("div",{ref:o,style:l,className:Z,children:[re,E]}),e[45]=o,e[46]=l,e[47]=re,e[48]=E,e[49]=Z,e[50]=ne):ne=e[50],ne}function Kr(d){return d.stopPropagation()}function Or(d){return d.stopPropagation()}function Lr(){return!1}function Br(d){const e=ze.c(13),{variant:r,decofile:c,meta:u,matchers:h}=d,v=u??void 0;let f;e[0]!==c||e[1]!==v||e[2]!==r.rule?(f=jt(r.rule,c,v),e[0]=c,e[1]=v,e[2]=r.rule,e[3]=f):f=e[3];const g=f;let S;e[4]===Symbol.for("react.memo_cache_sentinel")?(S=Ce("inline-flex items-center gap-1.5 h-8 pl-3 pr-3 text-sm font-medium rounded-md shadow-lg ring-1 ring-border/60 cursor-grabbing",Zn),e[4]=S):S=e[4];let x;e[5]!==g||e[6]!==h?(x=n.jsx(qt,{rule:g,matchers:h}),e[5]=g,e[6]=h,e[7]=x):x=e[7];let D;e[8]!==r.label?(D=n.jsx("span",{className:"truncate",children:r.label}),e[8]=r.label,e[9]=D):D=e[9];let N;return e[10]!==x||e[11]!==D?(N=n.jsxs("div",{className:S,children:[x,D]}),e[10]=x,e[11]=D,e[12]=N):N=e[12],N}function Fr(d){const e=ze.c(77),{listKey:r,variants:c,activeIndex:u,decofile:h,meta:v,matchers:f,onSelect:g,onReorder:S,onRename:x,onDelete:D,onAdd:N}=d;let _;e[0]!==c?(_=()=>Ht(c),e[0]=c,e[1]=_):_=e[1];const[k,o]=w.useState(_),[b,m]=w.useState(null),[U,J]=w.useState(r),[L,l]=w.useState(c.length);let C;e[2]!==c?(C=()=>wn(c),e[2]=c,e[3]=C):C=e[3];const[le,T]=w.useState(C),ue=w.useRef(!1),P=wn(c);U!==r?(J(r),l(c.length),T(P),o(Ht(c))):L!==c.length?(l(c.length),T(P),o(Ht(c))):le!==P&&(T(P),o(se=>c.map((Ne,V)=>({id:se[V]?.id??crypto.randomUUID(),index:V,variant:Ne}))));let Z;e[4]===Symbol.for("react.memo_cache_sentinel")?(Z={activationConstraint:{distance:8}},e[4]=Z):Z=e[4];let B;e[5]===Symbol.for("react.memo_cache_sentinel")?(B={coordinateGetter:Hn},e[5]=B):B=e[5];const ae=Ln(_t(Fn,Z),_t(Bn,B));let re;e[6]!==k?(re=k.map(zr),e[6]=k,e[7]=re):re=e[7];const Se=re,G=c.length>1;let z;e[8]!==k?(z=se=>{const Ne=String(se.active.id);m(k.find(V=>V.id===Ne)??null)},e[8]=k,e[9]=z):z=e[9];const ee=z;let Q;e[10]!==Se||e[11]!==S?(Q=se=>{m(null);const{active:Ne,over:V}=se;if(!V||Ne.id===V.id)return;const K=Se.indexOf(String(Ne.id)),W=Se.indexOf(String(V.id));K===-1||W===-1||(o(Be=>Er(mt([...Be],K,W))),ue.current=!0,requestAnimationFrame(()=>{ue.current=!1}),S(K,W))},e[10]=Se,e[11]=S,e[12]=Q):Q=e[12];const A=Q;let oe;e[13]===Symbol.for("react.memo_cache_sentinel")?(oe=()=>{m(null)},e[13]=oe):oe=e[13];const q=oe;let X,te,F,M,E,ne,pe,he,de,ie,I,$;if(e[14]!==b||e[15]!==u||e[16]!==G||e[17]!==h||e[18]!==k||e[19]!==Se||e[20]!==A||e[21]!==ee||e[22]!==f||e[23]!==v||e[24]!==D||e[25]!==x||e[26]!==g||e[27]!==ae){const se=V=>{ue.current||g(V)};I="flex items-center border-b shrink-0";const Ne=b&&"cursor-grabbing";e[40]!==Ne?(ie=Ce("flex flex-1 min-w-0 items-center gap-1.5 pl-3 pr-2 py-2 overflow-x-auto",Ne),e[40]=Ne,e[41]=ie):ie=e[41],te=Un,E=ae,ne=Wn,pe=ee,he=A,de=q,X=qn,$=Se,F=lr,M=k.map(V=>n.jsx($r,{sortableId:V.id,entry:V,isActive:V.index===u,canDelete:G,decofile:h,meta:v,matchers:f,onSelect:()=>se(V.index),onRename:()=>x(V.index),onDelete:()=>D(V.index)},V.id)),e[14]=b,e[15]=u,e[16]=G,e[17]=h,e[18]=k,e[19]=Se,e[20]=A,e[21]=ee,e[22]=f,e[23]=v,e[24]=D,e[25]=x,e[26]=g,e[27]=ae,e[28]=X,e[29]=te,e[30]=F,e[31]=M,e[32]=E,e[33]=ne,e[34]=pe,e[35]=he,e[36]=de,e[37]=ie,e[38]=I,e[39]=$}else X=e[28],te=e[29],F=e[30],M=e[31],E=e[32],ne=e[33],pe=e[34],he=e[35],de=e[36],ie=e[37],I=e[38],$=e[39];let De;e[42]!==X||e[43]!==F||e[44]!==M||e[45]!==$?(De=n.jsx(X,{items:$,strategy:F,children:M}),e[42]=X,e[43]=F,e[44]=M,e[45]=$,e[46]=De):De=e[46];let ke;e[47]!==b||e[48]!==h||e[49]!==f||e[50]!==v?(ke=b?n.jsx(Br,{variant:b.variant,decofile:h,meta:v,matchers:f}):null,e[47]=b,e[48]=h,e[49]=f,e[50]=v,e[51]=ke):ke=e[51];let Ee;e[52]!==ke?(Ee=n.jsx(Yn,{dropAnimation:null,children:ke}),e[52]=ke,e[53]=Ee):Ee=e[53];let we;e[54]!==te||e[55]!==E||e[56]!==ne||e[57]!==pe||e[58]!==he||e[59]!==de||e[60]!==De||e[61]!==Ee?(we=n.jsxs(te,{sensors:E,collisionDetection:ne,onDragStart:pe,onDragEnd:he,onDragCancel:de,children:[De,Ee]}),e[54]=te,e[55]=E,e[56]=ne,e[57]=pe,e[58]=he,e[59]=de,e[60]=De,e[61]=Ee,e[62]=we):we=e[62];let Te;e[63]!==ie||e[64]!==we?(Te=n.jsx("div",{className:ie,children:we}),e[63]=ie,e[64]=we,e[65]=Te):Te=e[65];let $e;e[66]===Symbol.for("react.memo_cache_sentinel")?($e={color:Mr},e[66]=$e):$e=e[66];let Ke;e[67]===Symbol.for("react.memo_cache_sentinel")?(Ke=n.jsx(Wt,{size:14}),e[67]=Ke):Ke=e[67];let xe;e[68]!==N?(xe=n.jsx(at,{asChild:!0,children:n.jsx(Ue,{type:"button",variant:"ghost",size:"icon","aria-label":"Add variant",className:"size-8 shrink-0 cursor-pointer",style:$e,onClick:N,children:Ke})}),e[68]=N,e[69]=xe):xe=e[69];let Oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(Oe=n.jsx(rt,{side:"bottom",children:"Add variant"}),e[70]=Oe):Oe=e[70];let Pe;e[71]!==xe?(Pe=n.jsx("div",{className:"shrink-0 pr-3 pl-1 py-2",children:n.jsxs(st,{children:[xe,Oe]})}),e[71]=xe,e[72]=Pe):Pe=e[72];let ce;return e[73]!==I||e[74]!==Te||e[75]!==Pe?(ce=n.jsxs("div",{className:I,children:[Te,Pe]}),e[73]=I,e[74]=Te,e[75]=Pe,e[76]=ce):ce=e[76],ce}function zr(d){return d.id}function Nn(d){const e=ze.c(15),{schema:r,value:c,onChange:u,meta:h,decofile:v,onSaveReferencedBlock:f,sandbox:g}=d;let S;e[0]===Symbol.for("react.memo_cache_sentinel")?(S=[],e[0]=S):S=e[0];const[x,D]=w.useState(S);let N;e[1]!==x?(N=x.length>0&&n.jsxs("nav",{"aria-label":"Variant rule breadcrumb",className:"flex min-w-0 items-center gap-1 overflow-hidden text-xs",children:[n.jsx("button",{type:"button",onClick:()=>D([]),className:"flex shrink-0 items-center gap-0.5 rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",title:"Back to rule",children:n.jsx(za,{className:"size-3.5"})}),x.map((o,b)=>{const m=b===x.length-1;return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[b>0&&n.jsx(Vn,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>D(x.slice(0,b+1)),title:o,className:Ce("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors hover:bg-accent hover:text-accent-foreground",m?"font-medium text-foreground":"text-muted-foreground"),children:o})]},`${o}-${b}`)})]}),e[1]=x,e[2]=N):N=e[2];let _;e[3]!==x||e[4]!==v||e[5]!==h||e[6]!==u||e[7]!==f||e[8]!==g||e[9]!==r||e[10]!==c?(_=n.jsx(Pn,{schema:r,value:c,onChange:u,basePath:"",breadcrumbPath:x,onBreadcrumbChange:D,meta:h,decofile:v,onSaveReferencedBlock:f,sandbox:g}),e[3]=x,e[4]=v,e[5]=h,e[6]=u,e[7]=f,e[8]=g,e[9]=r,e[10]=c,e[11]=_):_=e[11];let k;return e[12]!==N||e[13]!==_?(k=n.jsxs("div",{className:"space-y-2",children:[N,_]}),e[12]=N,e[13]=_,e[14]=k):k=e[14],k}function Rn(d){const e=ze.c(21),{activeSchema:r,formValue:c,formResetKey:u,onFormChange:h,onBreadcrumbChange:v,breadcrumbPath:f,emptyMessage:g,beforeForm:S,seoResolveType:x,siteDefaultSeo:D,meta:N,decofile:_,onSaveReferencedBlock:k,sandbox:o}=d;let b;e[0]!==f?(b=f===void 0?[]:f,e[0]=f,e[1]=b):b=e[1];const m=b;let U;e[2]!==r||e[3]!==m||e[4]!==_||e[5]!==u||e[6]!==c||e[7]!==N||e[8]!==v||e[9]!==h||e[10]!==k||e[11]!==o||e[12]!==x||e[13]!==D?(U=r&&c?x?n.jsx(gr,{schema:r,resolveType:x,value:c,formResetKey:u,onChange:h,onBreadcrumbChange:v,siteDefaultSeo:D}):n.jsx(Pn,{schema:r,value:c,onChange:h,basePath:"",breadcrumbPath:m,onBreadcrumbChange:v,meta:N,decofile:_,onSaveReferencedBlock:k,sandbox:o},u):null,e[2]=r,e[3]=m,e[4]=_,e[5]=u,e[6]=c,e[7]=N,e[8]=v,e[9]=h,e[10]=k,e[11]=o,e[12]=x,e[13]=D,e[14]=U):U=e[14];const J=U;let L;e[15]!==g||e[16]!==J?(L=J??n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:g}),e[15]=g,e[16]=J,e[17]=L):L=e[17];let l;return e[18]!==S||e[19]!==L?(l=n.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:n.jsxs("div",{className:"mx-auto max-w-2xl",children:[S,L]})}),e[18]=S,e[19]=L,e[20]=l):l=e[20],l}const Ir="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 Hr(d,e){return Sa(d,e,tt)}function Ur(d){const e=ze.c(13),{pageKey:r,initialName:c,initialPath:u,onFieldChange:h}=d,[v,f]=w.useState(c),[g,S]=w.useState(u),[x,D]=w.useState(r);x!==r&&(D(r),f(c),S(u));let N;e[0]!==h?(N=m=>{f(m.target.value),h("name",m.target.value)},e[0]=h,e[1]=N):N=e[1];let _;e[2]!==v||e[3]!==N?(_=n.jsx("input",{type:"text",value:v,onChange:N,className:"w-full bg-transparent text-sm font-semibold truncate outline-none border-none p-0 focus:ring-0 placeholder:text-muted-foreground",placeholder:"Page name"}),e[2]=v,e[3]=N,e[4]=_):_=e[4];let k;e[5]!==h?(k=m=>{S(m.target.value),h("path",m.target.value)},e[5]=h,e[6]=k):k=e[6];let o;e[7]!==g||e[8]!==k?(o=n.jsx("input",{type:"text",value:g,onChange:k,className:"w-full bg-transparent text-xs text-muted-foreground truncate outline-none border-none p-0 focus:ring-0 placeholder:text-muted-foreground",placeholder:"/path"}),e[7]=g,e[8]=k,e[9]=o):o=e[9];let b;return e[10]!==_||e[11]!==o?(b=n.jsxs("div",{className:"space-y-1",children:[_,o]}),e[10]=_,e[11]=o,e[12]=b):b=e[12],b}function Cn(d){const e=ze.c(6),{onClick:r}=d;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(Mn,{size:14}),e[0]=c):c=e[0];let u;e[1]!==r?(u=n.jsx(at,{asChild:!0,children:n.jsx(Ue,{type:"button",variant:"ghost",size:"icon","aria-label":"Add variant",className:"size-7 shrink-0 text-[oklch(0.65_0.15_160)]",onClick:r,children:c})}),e[1]=r,e[2]=u):u=e[2];let h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(rt,{side:"bottom",children:"Add variant"}),e[3]=h):h=e[3];let v;return e[4]!==u?(v=n.jsxs(st,{children:[u,h]}),e[4]=u,e[5]=v):v=e[5],v}function Nl({orgSlug:d,virtualMcpId:e,branch:r,previewReady:c=!0,previewUrl:u,currentPath:h,activePageBlockKey:v=null,activeGlobalBlockKey:f=null,externalSelectedIndex:g,onSaved:S,initialEditSeo:x=!1,onExitSeo:D,onViewJsonFile:N,onVariantPreviewOverride:_}){const k=c?{orgSlug:d,virtualMcpId:e,branch:r,previewUrl:u}:null,{data:o,isLoading:b}=aa(k),{data:m,isLoading:U}=ra(k),J=oa(),L=J?.entity?.id===e?J.entity.metadata?.siteSlug??null:null,[l,C]=w.useState(null),[le,T]=w.useState(null),[ue,P]=w.useState(null),[Z,B]=w.useState(0),[ae,re]=w.useState(void 0),[Se,G]=w.useState(null),[z,ee]=w.useState(null),[Q,A]=w.useState([]),[oe,q]=w.useState(0),[X,te]=w.useState(null),[F,M]=w.useState(null),[E,ne]=w.useState(!0),[pe,he]=w.useState(!1),[de,ie]=w.useState(!1),[I,$]=w.useState(x),[De,ke]=w.useState(x);x&&!De&&(ke(!0),$(!0),C(null),T(null),P(null),A([])),!x&&De&&ke(!1);const[Ee,we]=w.useState(null),[Te,$e]=w.useState(void 0),[Ke,xe]=w.useState([]),[Oe,Pe]=w.useState(0),[ce,se]=w.useState(0),[Ne,V]=w.useState(null),[K,W]=w.useState(null),[Be,Ie]=w.useState(null),We=Ys(),Gn=`${d}/${e}/${r}`,kt=ia({orgSlug:d,virtualMcpId:e,branch:r}),[es,ts]=w.useState(h),[ns,ss]=w.useState(v),[as,rs]=w.useState(f);(es!==h||ns!==v||as!==f)&&(queueMicrotask(()=>kt.flush()),ts(h),ss(v),rs(f),C(null),T(null),P(null),B(0),G(null),ee(null),se(0),V(null),W(null),A([]),q(t=>t+1),$(!1),we(null),$e(void 0),xe([]),Pe(t=>t+1));const Ve=la({orgSlug:d,virtualMcpId:e,branch:r}),ft=Ca((t,s)=>{Ve.mutate({blockKey:t,data:s},{onSuccess:()=>S?.(),onError:a=>fe.error(`Save failed: ${a.message}`)})}),Yt=ca({orgSlug:d,virtualMcpId:e,branch:r}),[wt,Jt]=w.useState(!1),Nt=w.useRef(null),ot=w.useRef(null),it=w.useRef(null),Rt=w.useRef({}),qe=w.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null});if(!c||b||U)return n.jsx("div",{className:"h-full w-full flex items-center justify-center",children:n.jsx(Dn,{size:20,className:"animate-spin text-muted-foreground"})});if(!o||!m)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:"Could not load site data."});const os=ua(o),ve=!!f,Le=ve?null:da(os,h,v),y=ve?f:Le?.key??null,Ct=ve&&f?o[f]:void 0,Qt=ve&&f&&Ct?ma(f,Ct):ve&&f?f:"",pt=!ve&&y&&o[y]?o[y]:null,Dt=I&&o&&m&&y&&Le?_n(o,{kind:"page",pageKey:y,pageName:String(Le.name??""),path:String(Le.path??"")},m):null,is=I?pt?.seo:void 0,Tt=Te!==void 0?Te:is,ls=I?cr(Tt):void 0,cs=Dt?.seoTypeOptions??[],us=I&&m?ur(m):"",Xt=Ee??ls??{},Pt=I&&Dt?dr(Xt,Dt):null,ds=I&&Pt&&mr(Tt)?xt(Pt,m):null,ms=I?fr(o,m)?.seoData:void 0,Ae=ve?[{label:"Default",sections:[{__resolveType:f}]}]:Hr(pt?.sections,o??{}),ht=Ae.length>1,_e=Math.min(Z,Ae.length-1),Ze=Ae[_e],H=Ze?.sections??[],Re=bt(H,o),Zt=!ve&&fa(pt?.sections);if(ve&&f&&Be!==f){Ie(f);const t=H[0],s=Re[0];if(t&&s){C(0),se(0),A([]);const a=et(t,s,o);a&&(T(a.data),P(a.resolveType),W(null),V(null))}}!ve&&Be!==null&&Ie(null),qe.current={rawSections:H,parsedSections:Re,decofile:o??{},activePageKey:y,pageVariants:Ae,variantIndex:_e,sectionVariantIndex:ce,selectedSectionIndex:l};const fs=()=>({multivariate:Zt,index:_e,variants:Ae.map(t=>({rule:t.rule}))}),Gt=(t,s)=>{if(!_)return;if(!y||!Zt||t.length<=1){_(null);return}const a=yn(y,{multivariate:!0,index:s,variants:t},o,m);_(a.length>0?a:null)},lt=(t,s,a)=>{if(!_)return;if(!y){_(null);return}const i=fs(),p=yn(y,i,o,m);if(!t||s<0){_(p.length>0?p:null);return}const R=$a({pageKey:y,page:i,sectionIndex:s,sectionLazy:Re[s]?.isLazy??!1,mvObj:t,selectedVariantIndex:a,decofile:o,meta:m}),j=[...p,...R];_(j.length>0?j:null)},Ye=(t,s,a,i=l??-1,p=!1)=>{const R=Xe(t,s);if(!R){T(null),P(null),W(null),V(null),p&<(null,i,a);return}const O=gn(R,tt)[a];if(!O){T(null),P(null),W(null),V(null),p&<(null,i,a);return}const ge=xa(O.value,o);T(ge?.data??null),P(ge?.resolveType??null);const{resolveType:Y,formValue:me}=Lt(O.rule,o,m??void 0);W(Y),V(me),p&<(R,i,a)};if(g!==void 0&&g!==ae&&(re(g??null),typeof g=="number")){const t=H[g],s=Re[g];if(t&&s)if(C(g),se(0),A([]),q(a=>a+1),s.isMultivariate)Ye(t,s,0,g);else{const a=et(t,s,o);a?(T(a.data),P(a.resolveType)):(T(null),P(null)),W(null),V(null)}}const gt={orgSlug:d,virtualMcpId:e,branch:r,previewUrl:u??void 0,siteSlug:L},Vt=ue&&m?xt(ue,m):null,Fe=(t,s)=>{if(!y)return;const a=Ft(o,y,t,_e,Ae);Ve.mutate({blockKey:y,data:a},{onSuccess:()=>s?.onSuccess?.()??S?.(),onError:i=>fe.error(`Save failed: ${i.message}`)})},ct=()=>{C(null),T(null),P(null),se(0),V(null),W(null),A([]),q(t=>t+1)},ps=(t,s)=>{Nt.current&&clearTimeout(Nt.current);const a=qe.current.sectionVariantIndex;Nt.current=setTimeout(()=>{const{rawSections:i,parsedSections:p,decofile:R,activePageKey:j,pageVariants:O,variantIndex:ge}=qe.current,Y=i[s];if(!Y)return;const me=p[s];if(!me)return;if(me.isSavedBlock){const ye=me.isLazy?Y.section?.__resolveType??Y.__resolveType:Y.__resolveType;Ve.mutate({blockKey:ye,data:t},{onSuccess:()=>S?.(),onError:je=>fe.error(`Save failed: ${je.message}`)});return}if(!j)return;const be={...R[j]},Me=[...i];if(me.isMultivariate){const ye=Xe(Y,me);if(!ye||!j)return;const je=La(ye,a,t);Me[s]=dt(Y,me,je)}else if(me.isHidden){const ye=Tn(Y.__resolveType),je=ye?{...Y.section}:{...Y},He=Array.isArray(je.variants)?[...je.variants]:[];He[0]&&(He[0]={...He[0],value:t}),je.variants=He,ye?Me[s]={...Y,section:je}:Me[s]=je}else me.isLazy?Me[s]={...Y,section:t}:Me[s]=t;if(O.length>1){const ye=be.sections,je=[...ye?.variants??[]];je[ge]&&(je[ge]={...je[ge],value:Me}),be.sections={...ye,variants:je}}else be.sections=Me;Ve.mutate({blockKey:j,data:be},{onSuccess:()=>S?.(),onError:ye=>fe.error(`Save failed: ${ye.message}`)})},It)},hs=t=>{C(t),se(0),A([]),q(p=>p+1);const s=H[t],a=Re[t];if(!s||!a)return;if(a.isMultivariate){Ye(s,a,0,t);return}const i=et(s,a,o);if(!i){T(null),P(null),W(null),V(null),lt(null,t,0);return}T(i.data),P(i.resolveType),W(null),V(null),lt(null,t,0)},en=t=>{const s=t;T(s),l!==null&&ps(s,l)},At=t=>{if(!y||!o||!m||!Le)return;const s={kind:"page",pageKey:y,pageName:String(Le.name??""),path:String(Le.path??"")},a=_n(o,s,m);a&&kt.save(y,()=>{const i=We.getQueryData(Js.decofile(Gn))?.[y];if(!i||typeof i!="object"||i===null||Array.isArray(i))return null;const p={...i,...Rt.current};return Rt.current={},t?.raw!==void 0?{...p,seo:t.raw}:t?.inner!==void 0?hr(s,a,p,t.inner):p})},gs=(t,s)=>{y&&(Rt.current[t]=s,At())},vs=(t,s)=>{if(!y)return;const a=mt([...H],t,s);l!==null&&(l===t?C(s):t<l&&s>=l?C(l-1):t>l&&s<=l&&C(l+1)),Fe(a)},Ss=t=>{if(!y)return;const s=H.filter((a,i)=>i!==t);l===t?ct():l!==null&&l>t&&C(l-1),Fe(s)},xs=t=>{if(!y)return;const s=H[t];if(!s)return;const a=[...H];a.splice(t+1,0,Va(s)),l!==null&&l>t&&C(l+1),Fe(a)},bs=t=>{if(!y)return;const s=H[t],a=Re[t];if(!s||!a||a.isMultivariate)return;const i=a.isHidden?Ta(s):Pa(s);if(!i)return;const p=[...H];p[t]=i,l===t&&ct(),Fe(p)},ys=t=>{if(!y)return;const s=H[t],a=Re[t];if(!s||!a||a.isMultivariate)return;const i=Da(s);if(!i)return;const p=[...H];p[t]=i,l===t&&ct(),Fe(p)},js=t=>{if(!y)return;const s=H[t],a=Re[t];if(!s||!a?.isSavedBlock)return;const i=et(s,a,o);if(!i?.data)return;const{name:p,...R}=i.data,j=[...H];a.isLazy?j[t]={...s,section:R}:j[t]=R,l===t&&ct(),Fe(j)},_s=t=>{if(!y)return;const s=[...H,{__resolveType:t.resolveType}],a=s.length-1;Fe(s,{onSuccess:()=>{he(!1),C(a),se(0),A([]),q(j=>j+1);const i=s[a],p=bt(s,o)[a];if(!i||!p)return;if(p.isMultivariate){Ye(i,p,0);return}const R=et(i,p,o);if(!R){T(null),P(null),W(null),V(null);return}T(R.data),P(R.resolveType),W(null),V(null)}})},ks=t=>{if(l===null)return;const s=H[l],a=Re[l];!s||!a?.isMultivariate||(se(t),A([]),q(i=>i+1),Ye(s,a,t,l,!0))},ws=t=>{if(l===null||!y)return;const s=H[l],a=Re[l];if(!s||!a?.isMultivariate)return;const i=Xe(s,a);if(!i)return;const p=Na(i,t);if(!p){fe.error("Cannot delete the only variant.");return}const R=[...H];R[l]=dt(s,a,p);const j=p.variants;let O=ce;t===ce?O=Math.min(t,j.length-1):t<ce&&(O=ce-1),se(O),A([]),q(ge=>ge+1),Ye(R[l],a,O),Fe(R)},Ns=t=>{if(l===null||!y)return;const s=H[l],a=Re[l];if(!s||!a?.isMultivariate)return;const i=Xe(s,a);if(!i)return;const p=Ra(i,t),R=[...H];R[l]=dt(s,a,p);const j=t+1;se(j),A([]),q(O=>O+1),Ye(R[l],a,j),Fe(R)},Rs=(t,s)=>{if(l===null||!y||t===s)return;const a=H[l],i=Re[l];if(!a||!i?.isMultivariate)return;const p=Xe(a,i);if(!p)return;const R=ka(p,t,s),j=[...H];j[l]=dt(a,i,R);let O=ce;ce===t?O=s:t<ce&&s>=ce?O=ce-1:t>ce&&s<=ce&&(O=ce+1),se(O),Ye(j[l],i,O),Fe(j)},Mt=t=>{const s=t??l;if(s===null||!y)return;const a=H[s],i=Re[s];if(!a||!i)return;const p=ba(a,i);if(!p){fe.error("This section cannot have variants.");return}const R=[...H];R[s]=p.section;const j=bt(R,o)[s];if(!j?.isMultivariate){fe.error("Could not add variant.");return}C(s),se(p.newVariantIndex),A([]),q(O=>O+1),Ye(p.section,j,p.newVariantIndex,s),Fe(R)},Cs=()=>{if(l===null||!y)return;const t=H[l],s=Re[l];if(!t||!s?.isMultivariate)return;const a=Xe(t,s);if(!a)return;const i=wa(t,s,a);if(!i){fe.error("Could not remove variants.");return}const p=[...H];p[l]=i;const R=bt(p,o)[l];if(!R)return;se(0),W(null),V(null),A([]),q(O=>O+1);const j=et(i,R,o);j?(T(j.data),P(j.resolveType)):(T(null),P(null)),lt(null,l,0),Fe(p)},Ds=async t=>{if(X===null||!y)return;const s=bn(t,o);if(s){fe.error(s);return}const a=H[X],i=Re[X];if(!a||!i)return;const p=et(a,i,o);if(!p){fe.error("This section cannot be saved as global.");return}const R={...p.data,name:t};try{await Ve.mutateAsync({blockKey:t,data:R});const j=[...H];j[X]={__resolveType:t},await Ve.mutateAsync({blockKey:y,data:Ft(o,y,j,_e,Ae)}),l===X&&ct(),te(null),fe.success(`Saved global block "${t}"`),S?.()}catch(j){fe.error(j instanceof Error?j.message:"Failed to save global block")}},tn=Ze?.rule;if(ht&&l===null&&z===null&&tn){const{resolveType:t,formValue:s}=Lt(tn,o??{},m??void 0);ee(t),G(s)}const vt=m?pa(m):[],Ts=!ve&&!!(u&&m&&o),nn=z&&m?xt(z,m):null,Ps=()=>{ot.current&&(clearTimeout(ot.current),ot.current=null),it.current&&(clearTimeout(it.current),it.current=null)},sn=async(t,s)=>{if(!(Ba(s,t,m)>0))try{await Yt.mutateAsync({blockKey:t})}catch(a){fe.error(a instanceof Error?a.message:"Could not delete matcher block")}},an=t=>{ot.current&&clearTimeout(ot.current),ot.current=setTimeout(()=>{const{activePageKey:s,decofile:a,variantIndex:i}=qe.current;if(!s)return;const p={...a[s]},R={...p.sections},j=[...R.variants??[]],O=j[i],ge=O?.rule;if(Bt(ge,a,m)){const Y=ge?.__resolveType??"",me=a[Y],be=typeof me?.name=="string"?me.name:Y,{__resolveType:Me,...ye}=t;Ve.mutate({blockKey:Y,data:zt(Me??"",ye,be)},{onSuccess:()=>S?.(),onError:je=>fe.error(`Save failed: ${je.message}`)});return}O&&(j[i]={...O,rule:t}),p.sections={...R,variants:j},Ve.mutate({blockKey:s,data:p},{onSuccess:()=>S?.(),onError:Y=>fe.error(`Save failed: ${Y.message}`)})},It)},Vs=t=>{ee(t);const s=t?{__resolveType:t}:{__resolveType:jn};G({}),an(s)},As=t=>{const s=t;G(s);const a=z?{__resolveType:z,...s}:{...s};an(a)},rn=t=>{it.current&&clearTimeout(it.current);const{selectedSectionIndex:s,sectionVariantIndex:a}=qe.current;s!==null&&(it.current=setTimeout(()=>{const{rawSections:i,parsedSections:p,decofile:R,activePageKey:j,pageVariants:O,variantIndex:ge}=qe.current;if(!j)return;const Y=i[s],me=p[s];if(!Y||!me?.isMultivariate)return;const be=Xe(Y,me);if(!be)return;const Me=Oa(be,a,t),ye=[...i];ye[s]=dt(Y,me,Me);const je=Ft(R,j,ye,ge,O);Ve.mutate({blockKey:j,data:je},{onSuccess:()=>S?.(),onError:He=>fe.error(`Save failed: ${He.message}`)})},It))},Ms=t=>{W(t),V({}),rn(t?{__resolveType:t}:{__resolveType:jn})},Es=t=>{const s=t;V(s);const a=K?{__resolveType:K,...s}:{...s};rn(a)};if(!ve&&!Le)return n.jsxs("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:["No page found for ",h]});if(ve&&!Ct)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:"Global block not found"});const Je=l!==null?Re[l]??null:null,on=l!==null?H[l]:null,ln=on&&Je?.isMultivariate?Xe(on,Je):null,St=ln?gn(ln,tt):[],Et=Math.min(ce,Math.max(St.length-1,0)),$t=St[Et]??null,Ge=Je?.isMultivariate===!0,cn=l!==null&&Je!==null,ut=cn&&(Ge||!!(Vt&&le)),$s=ut&&!ve&&Je?.isSavedBlock===!0,Qe=ve||$s,Ks=ve?Qt:Je?.label??"",un=K&&m?xt(K,m):null,Kt=ut&&(!ve||Q.length>0)?ve?[Qt,...Q]:[Le.name,Je.label,...Ge&&$t?[$t.label]:[],...Q]:[],Os=I&&Le?[Le.name,"SEO",...Ke]:[],dn=I?Os:Qe?Kt.length>0?Kt:[Ks]:Kt,mn=()=>{if(!y)return;const t=o[y],s=ya(t.sections,H);if(!s)return;const a=ja(s);Ve.mutate({blockKey:y,data:{...t,sections:s}},{onSuccess:()=>{B(a),C(null),T(null),P(null),A([]),G(null),ee(null)},onError:i=>fe.error(`Save failed: ${i.message}`)})},fn=(t,s,a)=>{if(!y)return;const i=o[y],p=i.sections;if(!p||typeof p!="object"||Array.isArray(p))return;const R=p;if(!Array.isArray(R.variants))return;const j=t([...R.variants]);if(!j)return;const O=Ka(R,j),ge={...o,[y]:{...i,sections:O}};Ve.mutate({blockKey:y,data:ge[y]},{onSuccess:()=>{s?.(),a&&sn(a,ge)},onError:Y=>fe.error(`Save failed: ${Y.message}`)})},Ls=t=>{M(null),B(t),C(null),T(null),P(null),A([]);const s=Ae[t]?.rule,{resolveType:a,formValue:i}=Lt(s,o??{},m??void 0);ee(a),G(i),Gt(Ae.map(p=>({rule:p.rule})),t)},Bs=(t,s)=>{if(t===s)return;let a=_e;_e===t?a=s:t<_e&&s>=_e?a=_e-1:t>_e&&s<=_e&&(a=_e+1),B(a);const i=mt(Ae.map(p=>({rule:p.rule})),t,s);Gt(i,a),fn(p=>mt(p,t,s))},Fs=t=>{const s=Ae[t]?.rule,a=_a(s,o??{},m??void 0);fn(i=>i.length<=1?null:(i.splice(t,1),i),()=>{Ae.length-1===1?B(0):t<_e?B(_e-1):t===_e&&B(Math.max(0,t-1)),C(null),T(null),P(null),A([]),G(null),ee(null)},a)},zs=async(t,s)=>{Ps();const a=qe.current.activePageKey,i=qe.current.decofile;if(!a)return;const p=i[a],R=p.sections;if(!R||typeof R!="object"||Array.isArray(R))return;const j=R;if(!Array.isArray(j.variants))return;const O=[...j.variants],ge=O[t];if(!ge?.rule||typeof ge.rule!="object"){fe.error("This variant has no matcher rule to rename.");return}const Y=ge.rule,me=s.trim();Jt(!0);try{if(!me){if(!Bt(Y,i,m)){M(null);return}const Ot=Y.__resolveType??"";O[t]={...ge,rule:Aa(Y,i,m)};const hn={...i,[a]:{...p,sections:{...j,variants:O}}};await Ve.mutateAsync({blockKey:a,data:hn[a]}),await sn(Ot,hn),M(null),S?.();return}const be=Ma(Y,i,m);if(!be){fe.error("Could not read this variant's matcher rule.");return}if(be.blockKey){await Ve.mutateAsync({blockKey:be.blockKey,data:zt(be.resolveType,be.data,me)}),M(null),S?.();return}const Me=xn(me),ye=bn(Me,i);if(ye){fe.error(ye);return}const je=zt(be.resolveType,be.data,me);let He=null;try{await Ve.mutateAsync({blockKey:Me,data:je}),He=Me,O[t]={...ge,rule:Ea(Me)},await Ve.mutateAsync({blockKey:a,data:{...p,sections:{...j,variants:O}}}),He=null}catch(Ot){throw He&&await Yt.mutateAsync({blockKey:He}).catch(()=>{}),Ot}M(null),fe.success(`Saved matcher as global block "${me}"`),S?.()}catch(be){fe.error(be instanceof Error?be.message:"Failed to rename variant")}finally{Jt(!1)}},pn=()=>{ct()},Is=t=>{we(t),At({inner:t})},Hs=t=>{$e(t),At({raw:t})},Us=()=>{we(null),xe([])},Ws=()=>Pe(t=>t+1),qs=t=>{if(I){if(t===0){kt.flush(),$(!1),we(null),$e(void 0),xe([]),Pe(a=>a+1),D?.();return}if(t===1){xe([]),Pe(a=>a+1);return}xe(Ke.slice(0,t-1)),Pe(a=>a+1);return}if(ve){A(Q.slice(0,t)),q(a=>a+1);return}if(t===0){pn();return}if(t===1){A([]),q(a=>a+1);return}if(Ge&&t===2){A([]),q(a=>a+1);return}const s=Ge?2:1;A(Q.slice(0,t-s))};return n.jsxs("div",{className:"flex h-full min-w-0 w-full flex-col",children:[n.jsx("div",{className:"shrink-0",children:Qe||ut||I?n.jsxs("div",{className:Ce("border-b px-3 py-2.5",Qe&&"border-global-section/22 bg-global-section/12 dark:bg-global-section/16"),children:[n.jsxs("div",{className:"flex min-w-0 items-center gap-2 overflow-hidden",children:[!ve&&ht&&Ze&&n.jsxs("button",{type:"button",onClick:pn,title:`Editing in variant: ${Ze.label}`,className:Ce("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",Ir),children:[n.jsx(qt,{rule:jt(Ze.rule,o??{},m??void 0),matchers:vt}),n.jsx("span",{className:"max-w-[160px] truncate",children:Ze.label})]}),n.jsx("nav",{"aria-label":"Editing breadcrumb",className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:dn.map((t,s)=>{const a=s===dn.length-1;return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[s>0&&n.jsx(Vn,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>qs(s),title:t,className:Ce("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",a?Qe?"font-semibold text-global-section-fg dark:text-global-section-fg-dark":"font-medium text-foreground":Qe?"text-foreground/80":"text-muted-foreground",Qe?"hover:bg-global-section/15":"hover:bg-accent hover:text-accent-foreground"),children:t})]},`${t}-${s}`)})}),Qe&&n.jsxs(st,{children:[n.jsx(at,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(qa,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),n.jsx(rt,{side:"bottom",className:"max-w-[260px]",children:"A global section is a reusable block shared across your site. Editing it here updates it everywhere it's used."})]}),cn&&!Ge&&!Je?.isHidden&&y&&n.jsx(Cn,{onClick:()=>Mt()})]}),Qe&&n.jsx("p",{className:"mt-1.5 py-1.5 pl-1 text-sm leading-snug text-foreground",children:"This is a global section. Changes apply everywhere this section is used across your site."})]}):n.jsxs("div",{className:"flex items-center gap-2 border-b px-3 py-2.5",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(Ur,{pageKey:y,initialName:Le.name,initialPath:Le.path,onFieldChange:gs})}),n.jsxs(st,{children:[n.jsx(at,{asChild:!0,children:n.jsx(Ue,{type:"button",variant:"ghost",size:"icon","aria-label":"Edit SEO",className:"size-7 shrink-0",onClick:()=>$(!0),children:n.jsx(Ua,{size:14})})}),n.jsx(rt,{side:"bottom",children:"Edit SEO"})]}),n.jsxs(st,{children:[n.jsx(at,{asChild:!0,children:n.jsx(Ue,{type:"button",variant:"ghost",size:"icon","aria-label":"View JSON",className:"size-7 shrink-0",onClick:()=>N&&y?N(y):ie(!0),children:n.jsx(Wa,{size:14})})}),n.jsx(rt,{side:"bottom",children:"View JSON"})]}),n.jsx(Cn,{onClick:mn})]})}),ht&&!ut&&!I&&y&&n.jsx(Fr,{listKey:y,variants:Ae,activeIndex:_e,decofile:o??{},meta:m,matchers:vt,onSelect:Ls,onReorder:Bs,onRename:M,onDelete:Fs,onAdd:mn}),I?n.jsx(yt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:n.jsx("div",{className:"mx-auto max-w-2xl",children:pt&&y?n.jsx(pr,{rawSeo:Tt,innerSeo:Xt,defaultResolveType:us,seoSchema:ds,activeResolveType:Pt,seoTypeOptions:cs,formResetKey:Oe,siteDefaultSeo:ms,onBreadcrumbChange:xe,onPersistRaw:Hs,onInnerChange:Is,onClearForm:Us,onBumpFormKey:Ws}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:"SEO schema not found for this site."})})})}):ut?n.jsxs(yt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[Ge&&St.length>0&&n.jsxs(n.Fragment,{children:[n.jsx(ha,{listKey:`${y??""}:${l??""}`,variants:St.map((t,s)=>({index:s,label:t.label})),selectedIndex:Et,onSelect:ks,onDuplicate:Ns,onDelete:ws,onRemoveAll:Cs,onReorder:Rs,onAdd:()=>Mt()}),Ge&&n.jsxs("div",{className:"px-3 py-3 border-b space-y-2",children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Variant rule"}),n.jsx(vn,{currentRt:K??"",currentLabel:tt($t?.rule),matchers:vt,onSelect:Ms}),un&&Ne&&n.jsx("div",{className:"pt-1",children:n.jsx(Nn,{schema:un,value:Ne,onChange:Es,meta:m??void 0,decofile:o,onSaveReferencedBlock:ft,sandbox:gt},`${l??"none"}:${Et}:${K??""}`)})]})]}),n.jsx(Rn,{activeSchema:Vt,formValue:le,formResetKey:oe,onFormChange:en,onBreadcrumbChange:A,breadcrumbPath:Q,emptyMessage:"No editable fields for this variant.",meta:m,decofile:o,onSaveReferencedBlock:ft,sandbox:gt})]}):ve?n.jsx(yt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx(Rn,{activeSchema:Vt,formValue:le,formResetKey:oe,onFormChange:en,onBreadcrumbChange:A,breadcrumbPath:Q,emptyMessage:"No editable fields for this global block.",meta:m,decofile:o,onSaveReferencedBlock:ft,sandbox:gt})}):n.jsxs(yt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[ht&&z!==null&&n.jsxs("div",{className:Ce("px-3 border-b",E?"pt-3 pb-5 space-y-3":"py-2"),children:[n.jsxs("button",{type:"button",onClick:()=>ne(t=>!t),className:"flex w-full items-center justify-between gap-2 text-left cursor-pointer rounded-sm py-0.5 hover:bg-muted/40","aria-expanded":E,children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Variant rule"}),E?n.jsx(Ia,{className:"size-3.5 shrink-0 text-muted-foreground"}):n.jsx(Fa,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),E&&n.jsxs("div",{className:Ce("space-y-3",wt&&"pointer-events-none opacity-50"),children:[n.jsx(vn,{currentRt:z,currentLabel:Sn(Ze?.rule,o??{},tt,m??void 0),matchers:vt,onSelect:Vs}),nn&&Se&&n.jsx("div",{className:"space-y-3",children:n.jsx(Nn,{schema:nn,value:Se,onChange:As,meta:m??void 0,decofile:o,onSaveReferencedBlock:ft,sandbox:gt},`${_e}:${z??""}`)})]})]}),n.jsx("div",{className:"p-2 pt-3",children:n.jsx(Pr,{listKey:`${y??""}-${_e}`,rawSections:H,sections:Re,meta:m,selectedIndex:l,onSelect:hs,onReorder:vs,onDelete:Ss,onDuplicate:xs,onMakeReusable:te,onToggleHidden:bs,onToggleLazy:ys,onAddVariant:Mt,onDetach:js,onAddSection:()=>he(!0),canAddSection:Ts})})]}),n.jsx(ga,{open:X!==null,onOpenChange:t=>{t||te(null)},defaultBlockId:X!==null?xn(Re[X]?.label??""):"",isPending:Ve.isPending,onSubmit:Ds}),u&&n.jsx(Sr,{open:pe,onOpenChange:he,meta:m,decofile:o,previewBaseUrl:u,onSelect:_s}),de&&y&&o&&n.jsx(va,{open:de,onOpenChange:ie,pageKey:y,decofile:o}),F!==null&&n.jsx(Ar,{open:!0,initialName:Bt(Ae[F]?.rule,o??{},m??void 0)?Sn(Ae[F]?.rule,o??{},tt,m??void 0):"",autoLabel:tt(jt(Ae[F]?.rule,o??{},m??void 0)),isPending:wt,onSubmit:async t=>{await zs(F,t)},onOpenChange:t=>{!t&&!wt&&M(null)}})]})}export{Nl as SectionsEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-DrMxvc62.js","assets/index-Da7zBgP3.js","assets/index-DDRZvmg6.css","assets/XCircle-lg1atJo8.js","assets/CheckCircle-CubOqkhM.js","assets/Settings02-B7JvRibZ.js","assets/use-mcp-client-QbDw5Kxr.js","assets/auth-CX0V_g3E.js","assets/useInfiniteQuery-W7QqfcbQ.js","assets/use-infinite-scroll-D-1sc3vv.js","assets/studio-tools-Cxzj-LYh.js","assets/badge-BIOaHIWt.js","assets/input-JrKcP8_P.js","assets/dropdown-menu-B5yyPfJy.js","assets/ChevronUp-BHC7PPdP.js","assets/ChevronRight-JjxX5FP7.js","assets/DotsVertical-lhkCwVyZ.js","assets/table-D7DRjfAO.js","assets/toggle-group-D0HpOa1A.js","assets/use-view-mode-DeBJ3OlV.js","assets/tooltip-B7dbgru1.js","assets/index-iwyGvJw3.js","assets/FilterLines-5NaQCp3e.js","assets/Globe01-DPxNkWN3.js","assets/SearchMd-BzO607jf.js","assets/dialog-YEMhf2fI.js","assets/X-BmLEy_4s.js","assets/AlertCircle-D7JULgSW.js","assets/Upload01-DRwUypcB.js","assets/alert-dialog-DlpOAGY3.js","assets/card-CwFHuYuT.js","assets/Trash01-bpIqJEin.js","assets/label-DamWvDSp.js","assets/select-BRu_aocD.js","assets/ChevronDown-bvcGltsD.js","assets/switch-DPUXI2pE.js","assets/textarea-rSIhk1As.js","assets/checkbox-Cbr8t7kQ.js","assets/Eye-DDlQv8dT.js","assets/LinkExternal01-Cuz2KimH.js","assets/use-copy-BXiwiMZD.js","assets/Key01-BnvBI-54.js","assets/Plus-BPXRSHah.js","assets/mcp-oauth-DggY1DlO.js","assets/Play-DJY7X3Ac.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as m,b as n,e as c,j as t,i as p,r as l,al as f}from"./index-Da7zBgP3.js";import{R as u}from"./require-capability-DQB_sHm-.js";import"./use-capability-Dkucj2kh.js";import"./access-gate-BK8VNoXv.js";import"./capability-load-error-DRTuvJDl.js";const g=l.lazy(()=>f(()=>import("./registry-layout-DrMxvc62.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(p,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./use-infinite-scroll-D-1sc3vv.js";import{cJ as i}from"./index-Da7zBgP3.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-D-1sc3vv.js";import{cJ as u,aA as n}from"./index-Da7zBgP3.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|