decocms 3.68.0 → 3.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-DhaQx9Mx.js → AlertCircle-Dnqz3IxM.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-CfMwsozc.js → ArrowUpRight-B2NXgTf2.js} +1 -1
- package/dist/client/assets/{CheckCircle-DTbDatzD.js → CheckCircle-D9OslXZP.js} +1 -1
- package/dist/client/assets/{ChevronDown-6sFYQ_lK.js → ChevronDown-BldydMJ0.js} +1 -1
- package/dist/client/assets/{ChevronLeft-8zvGG53e.js → ChevronLeft-CXmppBJO.js} +1 -1
- package/dist/client/assets/{ChevronRight-BdMquS3m.js → ChevronRight-BsknZQE_.js} +1 -1
- package/dist/client/assets/{ChevronUp-BNOOOsT2.js → ChevronUp-CjDXfs3K.js} +1 -1
- package/dist/client/assets/{DotsVertical-DQ-WKmA2.js → DotsVertical-Ci1mVPsb.js} +1 -1
- package/dist/client/assets/{Eye-B4uYcIta.js → Eye-DifA9NHq.js} +1 -1
- package/dist/client/assets/{FilterLines-DCvNnP3i.js → FilterLines-CV07u96M.js} +1 -1
- package/dist/client/assets/{Globe01-C7fVaUrg.js → Globe01-CMUrlGmF.js} +1 -1
- package/dist/client/assets/{Globe04-Bwx3UG2x.js → Globe04-BplUDurZ.js} +1 -1
- package/dist/client/assets/{HardDrive-BOa3mtdo.js → HardDrive-B6V7BYZB.js} +1 -1
- package/dist/client/assets/{Key01-B-9ep-9Z.js → Key01-DGn_JEBu.js} +1 -1
- package/dist/client/assets/{LayoutLeft-XZqot3mq.js → LayoutLeft-BI32Ru47.js} +1 -1
- package/dist/client/assets/{LinkExternal01-iioOg4ap.js → LinkExternal01-DwIqUvLe.js} +1 -1
- package/dist/client/assets/{Monitor01-DL3Tirrd.js → Monitor01-C-tOv611.js} +1 -1
- package/dist/client/assets/{Palette-pv0gmxnS.js → Palette-pjBymHRy.js} +1 -1
- package/dist/client/assets/{Play-DXtyMrcP.js → Play-BEuZCxsN.js} +1 -1
- package/dist/client/assets/{Plus-J1K3Rh3s.js → Plus-DHJbi1i9.js} +1 -1
- package/dist/client/assets/{SearchMd-CjaRzuTt.js → SearchMd-yvCGxslh.js} +1 -1
- package/dist/client/assets/{Settings02-By0Jzp86.js → Settings02-BcW_Yd93.js} +1 -1
- package/dist/client/assets/{Shield01-M8Hvv7sS.js → Shield01-DXFrycnj.js} +1 -1
- package/dist/client/assets/{Star01-_Kd09vMY.js → Star01-DxJIcjLz.js} +1 -1
- package/dist/client/assets/{Stars01-DyLJc1qm.js → Stars01-Dr_rOBxK.js} +1 -1
- package/dist/client/assets/{Stars02-CDIgaXAV.js → Stars02-CB3UMWzf.js} +1 -1
- package/dist/client/assets/{Sun-TGwF56wV.js → Sun-CTchQz03.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-X5LMtCou.js → SwitchHorizontal01-Ca_h3hG5.js} +1 -1
- package/dist/client/assets/{Tool01-Dw4_QC3_.js → Tool01-B4m3Gnpd.js} +1 -1
- package/dist/client/assets/{Trash01-Cib_Sg7t.js → Trash01-BDNQcRq9.js} +1 -1
- package/dist/client/assets/{Upload01-CJqoFPBG.js → Upload01-CuyZwIAy.js} +1 -1
- package/dist/client/assets/{User01-BywBiT-b.js → User01-kj3Bxvgl.js} +1 -1
- package/dist/client/assets/{Users01-CDCapXFR.js → Users01-DM4FmEoT.js} +1 -1
- package/dist/client/assets/{Users03-4g5nbjFJ.js → Users03-CJ4lkyfr.js} +1 -1
- package/dist/client/assets/{X-BL2gdXEj.js → X-Botvp-t_.js} +1 -1
- package/dist/client/assets/{XCircle-CCiKaJ__.js → XCircle-CpovmLEO.js} +1 -1
- package/dist/client/assets/{XClose-BtRDneKm.js → XClose-CnYr1LOo.js} +1 -1
- package/dist/client/assets/{Zap-B8ZLhQFM.js → Zap-8NdOr1pq.js} +1 -1
- package/dist/client/assets/{ZapSquare-J9sfjhfh.js → ZapSquare-ChOMpHGM.js} +1 -1
- package/dist/client/assets/{ZoomOut-DCv2Tq6d.js → ZoomOut-DYeUJTmS.js} +1 -1
- package/dist/client/assets/{access-gate-DFiTys6s.js → access-gate-lRgnLhCg.js} +1 -1
- package/dist/client/assets/{add-section-modal-ClOPZlnc.js → add-section-modal-CZwFVJh7.js} +1 -1
- package/dist/client/assets/{agent-icon-Cf9b4Ru9.js → agent-icon-B1KjkGhC.js} +1 -1
- package/dist/client/assets/{agents-list-C5u1JJrt.js → agents-list-BeGasDr4.js} +1 -1
- package/dist/client/assets/{ai-providers-5s3h35FZ.js → ai-providers-DhEaZvB4.js} +1 -1
- package/dist/client/assets/{alert-DGGvXsmf.js → alert-DVl9GMhN.js} +1 -1
- package/dist/client/assets/{alert-dialog-C20YoJ0a.js → alert-dialog-DvJDYQsM.js} +1 -1
- package/dist/client/assets/app-editor-Dd12zl9_.js +1 -0
- package/dist/client/assets/{auth-RitCYkp6.js → auth-DA6X7KBB.js} +1 -1
- package/dist/client/assets/{auth-catchall-DwJMWiTa.js → auth-catchall-BljhiRu2.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BUqeR5HU.js → auth-split-layout-DeC-35_z.js} +1 -1
- package/dist/client/assets/{automation-list-row-BGAGsR0l.js → automation-list-row-BIiojY8I.js} +1 -1
- package/dist/client/assets/{automation-runs-Dzg3ROYw.js → automation-runs-CHVaaxN6.js} +1 -1
- package/dist/client/assets/{automations-CxAwu4Kg.js → automations-BZ212IOj.js} +1 -1
- package/dist/client/assets/{avatar-Nw1x5eGz.js → avatar-D7wKrjgH.js} +1 -1
- package/dist/client/assets/{badge-CuCfPx-y.js → badge-Rj4w6Y9D.js} +1 -1
- package/dist/client/assets/{block-document-ZFzIRxrN.js → block-document-Dr1GbIJR.js} +1 -1
- package/dist/client/assets/{brand-context-DzyWDcCk.js → brand-context-BHLNO4fC.js} +1 -1
- package/dist/client/assets/{buckets-XQexDwjp.js → buckets-C3GJftau.js} +1 -1
- package/dist/client/assets/{calendar-CKrH5d_Q.js → calendar-BETEvsL1.js} +1 -1
- package/dist/client/assets/{capability-load-error-gogxAwFW.js → capability-load-error-Caduk_d2.js} +1 -1
- package/dist/client/assets/{card-yVmBUFAg.js → card-BtNxdFil.js} +1 -1
- package/dist/client/assets/category-editor-D8faJ1-Q.js +1 -0
- package/dist/client/assets/{chat-context-WtXAdZJ4.js → chat-context-B_U1gcun.js} +1 -1
- package/dist/client/assets/{checkbox-BMArZ_ix.js → checkbox-CzoSEbjC.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Cm2MX1PH.js → cli-auth-success-BaHruqex.js} +1 -1
- package/dist/client/assets/{collection-detail-CdcHUbmk.js → collection-detail-Dlkc-Hxo.js} +1 -1
- package/dist/client/assets/{collection-display-button-Deigak_t.js → collection-display-button-4X_RKgcc.js} +1 -1
- package/dist/client/assets/{collection-search-CDaYX9FR.js → collection-search-BSHmVsv0.js} +1 -1
- package/dist/client/assets/{collection-tabs-dRuAELuw.js → collection-tabs-CghGabs6.js} +1 -1
- package/dist/client/assets/{command-P8Wd0xDH.js → command-CYqVDIDi.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-p3tqZ2_6.js → connect-desktop-dialog-Cq5se3ri.js} +1 -1
- package/dist/client/assets/{connection-card-CCMuozOG.js → connection-card-CzT4sqi7.js} +1 -1
- package/dist/client/assets/{connection-detail-JjdH17H6.js → connection-detail-BCjmmJh1.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BU4nsydd.js → connection-form-helpers-CuaSwKDp.js} +1 -1
- package/dist/client/assets/{connections-xjFDA3iN.js → connections-BEh7d4ax.js} +1 -1
- package/dist/client/assets/{context-menu-XATcg7cH.js → context-menu-CtPFsuQw.js} +1 -1
- package/dist/client/assets/{decopilot-CJM86E2F.js → decopilot-Bw9nv9Fa.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-BVuJ_7ML.js → decopilot-sse-pool-DdZSTixQ.js} +1 -1
- package/dist/client/assets/{dialog-jhtlYWQH.js → dialog-BMBVdX8K.js} +1 -1
- package/dist/client/assets/{domain-settings-D18yHtBo.js → domain-settings-GHKCO0j2.js} +1 -1
- package/dist/client/assets/{drawer-Ca9qnNLt.js → drawer-TLQRWcN-.js} +1 -1
- package/dist/client/assets/{dropdown-menu-B4AhYSKY.js → dropdown-menu-gXn3xVef.js} +1 -1
- package/dist/client/assets/{empty-state-Cz0bAkoo.js → empty-state-SvMp_sYN.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CObOyXJ4.js → extract-connection-data-BsbTS0uC.js} +1 -1
- package/dist/client/assets/{file-explorer-D0NTDf_o.js → file-explorer-C5eBRtME.js} +1 -1
- package/dist/client/assets/{file-type-icon-CzNWenEv.js → file-type-icon-DURyeK9L.js} +1 -1
- package/dist/client/assets/{files-DMaBuySQ.js → files-B43hGcq-.js} +1 -1
- package/dist/client/assets/{form-rLORGBZw.js → form-CdGhzS_x.js} +1 -1
- package/dist/client/assets/{general-BvPRQvS3.js → general-D01YsmbR.js} +1 -1
- package/dist/client/assets/{github-repo-picker-Cu20X1Oj.js → github-repo-picker-Db3xiFzy.js} +1 -1
- package/dist/client/assets/{hooks-D14HehpA.js → hooks-DlDryoZW.js} +1 -1
- package/dist/client/assets/{image-field-LMawai9Y.js → image-field-ZYWbFFqt.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-BCZEU51-.js → import-from-deco-dialog-wt_cQutp.js} +1 -1
- package/dist/client/assets/{index-DVtTwolW.js → index-B66xjk-i.js} +1 -1
- package/dist/client/assets/{index-kcIuDE6u.js → index-BW5f_EaT.js} +22 -22
- package/dist/client/assets/{index-Bx5YRZw3.js → index-C35Pm7iN.js} +1 -1
- package/dist/client/assets/{index-C3gL9St4.js → index-COlSsy5J.js} +3 -3
- package/dist/client/assets/{index-CQ_hnxd_.js → index-C_H1H79r.js} +1 -1
- package/dist/client/assets/{index-Bf1YdrMc.js → index-CkC7ek4r.js} +1 -1
- package/dist/client/assets/{index-CK3Q6Lxn.js → index-CvuV8zWk.js} +1 -1
- package/dist/client/assets/{index-C2-nEDLj.js → index-D0cczQd_.js} +1 -1
- package/dist/client/assets/{index-DqifP8kh.js → index-D4WUCfu0.js} +1 -1
- package/dist/client/assets/{index-B9_waAhV.js → index-DEanDL8Y.js} +1 -1
- package/dist/client/assets/{index-Df7da_i0.js → index-DWvgpCdb.js} +1 -1
- package/dist/client/assets/{index-CBOm8PQT.js → index-H-_VOpOu.js} +1 -1
- package/dist/client/assets/{index-CaOvTlCR.js → index-dlN4JEF9.js} +1 -1
- package/dist/client/assets/{index-redirect-DD0m-QdY.js → index-redirect-CDQ9iDF3.js} +1 -1
- package/dist/client/assets/{index-i_JkZB27.js → index-swPX_OFH.js} +1 -1
- package/dist/client/assets/{input-BvSXiwAq.js → input-CuVtlRv5.js} +1 -1
- package/dist/client/assets/{integration-icon-BcoSEnuB.js → integration-icon-RqT66_6U.js} +1 -1
- package/dist/client/assets/{label-vllYe6cM.js → label-BCRIEPd0.js} +1 -1
- package/dist/client/assets/{login-DAeVvDXf.js → login-ByPZpD-o.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BswvczAL.js → mcp-oauth-kSTvScdZ.js} +1 -1
- package/dist/client/assets/{members-CqwytKDG.js → members-AD1fVrNE.js} +1 -1
- package/dist/client/assets/{monaco-editor-DFjHxwB9.js → monaco-editor-DNLiFjHn.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DzD-p2bQ.js → monitoring-stats-row-Bsctnbru.js} +1 -1
- package/dist/client/assets/{oauth-callback-tznqb9vz.js → oauth-callback-B6I9yHDk.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BrGqlBMJ.js → oauth-callback-ai-provider-D0iCPw3h.js} +1 -1
- package/dist/client/assets/{onboarding-BjK9ZeXA.js → onboarding-1ssRVacT.js} +1 -1
- package/dist/client/assets/{org-install-C_FZDV9k.js → org-install-r5xxUZ8-.js} +1 -1
- package/dist/client/assets/{org-layout-CsJuQ6Ei.js → org-layout-i53vnou1.js} +1 -1
- package/dist/client/assets/{page-seo-form-BFfGH2mD.js → page-seo-form-BRpnzyUP.js} +1 -1
- package/dist/client/assets/page-seo-sheet-C8gLGTPM.js +1 -0
- package/dist/client/assets/{popover-sSylEgHu.js → popover-rRtv1RUJ.js} +1 -1
- package/dist/client/assets/{post-editor-BWay_CVr.js → post-editor-B3yACnM8.js} +1 -1
- package/dist/client/assets/{preview-dialog-CRHdztnc.js → preview-dialog-HeEAXFdp.js} +1 -1
- package/dist/client/assets/{primitives-DDnm_QnL.js → primitives-DOHAd4Be.js} +1 -1
- package/dist/client/assets/{profile-CHd6ohYJ.js → profile-DxKVe_bi.js} +1 -1
- package/dist/client/assets/project-app-view-C1SP7U91.js +1 -0
- package/dist/client/assets/record-editor-CmQTYxNi.js +1 -0
- package/dist/client/assets/registry-BLAsKSMe.js +2 -0
- package/dist/client/assets/{registry-layout-BwUiqOJ3.js → registry-layout-Cqo7HGa-.js} +1 -1
- package/dist/client/assets/{require-capability-CHNIB1jg.js → require-capability-GPOwZTVN.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DHjwTgi9.js → required-auth-layout-D9YU16Eu.js} +1 -1
- package/dist/client/assets/{reset-password-D0a0hqfd.js → reset-password-BvvmcRor.js} +1 -1
- package/dist/client/assets/{roles-CRte-FI6.js → roles-BG01ewdV.js} +1 -1
- package/dist/client/assets/save-referenced-block-qVgXMpcz.js +1 -0
- package/dist/client/assets/{save-status-N1v_enLx.js → save-status-2WDTqRnj.js} +1 -1
- package/dist/client/assets/schema-form-hXy8-pLC.js +1 -0
- package/dist/client/assets/{scroll-area-Dbsv4e6O.js → scroll-area-DOnfhZQE.js} +1 -1
- package/dist/client/assets/{search-input-ChrXBjj7.js → search-input-Dh2xeHiv.js} +1 -1
- package/dist/client/assets/{secrets-CzfeR8W_.js → secrets-x-a9-QDY.js} +1 -1
- package/dist/client/assets/{sections-editor-D2GO3ILI.js → sections-editor-DpVqLaiP.js} +3 -3
- package/dist/client/assets/{select-gQvIO328.js → select-Dqs7Z4yG.js} +1 -1
- package/dist/client/assets/{select-model-Dzwuphcu.js → select-model-bXVR8jvT.js} +1 -1
- package/dist/client/assets/{seo-editor-CwC2Qeg7.js → seo-editor-d5x7SvAU.js} +1 -1
- package/dist/client/assets/{settings-layout-A5O0niXa.js → settings-layout-CpPje1Xl.js} +1 -1
- package/dist/client/assets/{settings-section-0NTS3MkI.js → settings-section-BqnJtUWr.js} +1 -1
- package/dist/client/assets/{sheet-BBNc6H-H.js → sheet-Cn8FwYbD.js} +1 -1
- package/dist/client/assets/{shell-controls-Cc7-zEXH.js → shell-controls-nCD3gP3E.js} +1 -1
- package/dist/client/assets/{shell-layout-CrbOIA4d.js → shell-layout-Cx--9PV8.js} +1 -1
- package/dist/client/assets/{shell-route-loading-DJR-qsy8.js → shell-route-loading-Brmd2_HQ.js} +1 -1
- package/dist/client/assets/{sidebar-B5eoEEUh.js → sidebar-D1LCPjC8.js} +1 -1
- package/dist/client/assets/{skeleton-DOQx-oqC.js → skeleton-Bo_6Cq99.js} +1 -1
- package/dist/client/assets/{sortable.esm-XdYFSg_0.js → sortable.esm-yJWb24sN.js} +1 -1
- package/dist/client/assets/{sso-kYzS5Tqs.js → sso-DhhZEU-d.js} +1 -1
- package/dist/client/assets/{store-hoHB6kbc.js → store-COjaCE4s.js} +1 -1
- package/dist/client/assets/store-registry-nvoM6APm.js +2 -0
- package/dist/client/assets/{studio-tools-B1vmC7k4.js → studio-tools-CyTucPcW.js} +1 -1
- package/dist/client/assets/{switch-BH90tU73.js → switch-CorAlxCf.js} +1 -1
- package/dist/client/assets/{table-Borl2aRc.js → table-Gv4tJy7V.js} +1 -1
- package/dist/client/assets/{tabs-CznF-MMq.js → tabs-DAvIQWby.js} +1 -1
- package/dist/client/assets/{task-status-W8pectFm.js → task-status-BfeF--n0.js} +1 -1
- package/dist/client/assets/{textarea-BVXgXW3B.js → textarea-DsT2vsGj.js} +1 -1
- package/dist/client/assets/{toggle-group-Cn5J5q3D.js → toggle-group-WKZVvwQm.js} +1 -1
- package/dist/client/assets/{toolbar-6hNYKLLh.js → toolbar-BfY48AQu.js} +1 -1
- package/dist/client/assets/{tooltip-D9KNvVvr.js → tooltip-D5U362dF.js} +1 -1
- package/dist/client/assets/{types-C7TUAV0n.js → types-C-QYkfD4.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CYtt5EvS.js → use-ai-providers-CLZQ64DO.js} +1 -1
- package/dist/client/assets/{use-automations-DB885IUH.js → use-automations-DNKM1hXI.js} +1 -1
- package/dist/client/assets/{use-capability-BgNNCaLI.js → use-capability-XIhIuFk7.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BHE1f1YU.js → use-clock-tick-DkwKhG1v.js} +1 -1
- package/dist/client/assets/{use-collections-H8HuKWEE.js → use-collections-D4JsVK-B.js} +1 -1
- package/dist/client/assets/{use-connection-Cg1b4Um2.js → use-connection-C7Z8M26w.js} +1 -1
- package/dist/client/assets/{use-copy-BGWnHO-M.js → use-copy-CqTP6NE5.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BTbe0O5T.js → use-create-virtual-mcp-fk0U59RA.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DIcW3_zI.js → use-debounced-autosave-B8dr6XMC.js} +1 -1
- package/dist/client/assets/{use-deco-credits-D3w33USN.js → use-deco-credits-Cm6qycwc.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CMXNBeGz.js → use-delete-connection-DTrOkfly.js} +1 -1
- package/dist/client/assets/{use-file-configs-BBtTR4ju.js → use-file-configs-DKTLvOxt.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Cj-XExfy.js → use-infinite-scroll-SjuQvrxH.js} +1 -1
- package/dist/client/assets/{use-join-requests-Dl6EohPu.js → use-join-requests-DmU4yvI-.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DYJrfczK.js → use-mcp-client-CK2bE_Wl.js} +9 -9
- package/dist/client/assets/{use-mcp-prompts-CSCDL01T.js → use-mcp-prompts--L5Py2oF.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-D3AAnhTZ.js → use-mcp-tools-B7wduqbV.js} +1 -1
- package/dist/client/assets/{use-members-DJNn_Bxw.js → use-members-CYuArAru.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BlcN6V5v.js → use-navigate-to-agent-C2rXzvAb.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-wIGZzMQc.js → use-org-auth-client-BYQp-Udb.js} +1 -1
- package/dist/client/assets/{use-org-sso-CwWfX4uS.js → use-org-sso-Dh5HCYSJ.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BXV_PsbS.js → use-organization-roles-BR95hkZY.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DouM9EgM.js → use-organization-settings-CiSDOMOC.js} +1 -1
- package/dist/client/assets/{use-registry-connections-QEmucmhH.js → use-registry-connections-rHz6zGP7.js} +1 -1
- package/dist/client/assets/{use-secrets-DVqtKaXp.js → use-secrets-DLuniCTL.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Dl6bvWf3.js → use-status-sounds-BmR3uEUx.js} +1 -1
- package/dist/client/assets/{use-view-mode-BCnWJZTf.js → use-view-mode-CCFkxJ0W.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-oKPxaCky.js → use-virtual-mcp-DPWDEWCb.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BS_m7Y7W.js +1 -0
- package/dist/client/assets/{useRouterState-ysmOvmXv.js → useRouterState-q7ojL5Do.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CHHT-uCm.js +1 -0
- package/dist/client/assets/{view-mode-toggle-CHlCGyzP.js → view-mode-toggle-CeXLSv0R.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +525 -521
- package/dist/server/migrate.js +113 -109
- package/dist/server/server.js +368 -368
- package/package.json +1 -1
- package/dist/client/assets/app-editor-B87jVOIH.js +0 -1
- package/dist/client/assets/category-editor-BEoXjeUW.js +0 -1
- package/dist/client/assets/page-seo-sheet-CitEZrcC.js +0 -1
- package/dist/client/assets/project-app-view-CXwN5Mnc.js +0 -1
- package/dist/client/assets/record-editor-D-0BBq6H.js +0 -1
- package/dist/client/assets/registry-BCkAgbHk.js +0 -2
- package/dist/client/assets/save-referenced-block-BwxGXLv8.js +0 -1
- package/dist/client/assets/schema-form-mwEmbM5O.js +0 -1
- package/dist/client/assets/store-registry-MgWAZcLM.js +0 -2
- package/dist/client/assets/useInfiniteQuery-YHehADCx.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-xMSumVHF.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as gt,r as w,j as o,c as St,n as ut,l as yt}from"./index-C3gL9St4.js";import{i as jt}from"./ChevronRight-BdMquS3m.js";import{S as kt}from"./scroll-area-Dbsv4e6O.js";import{AddSectionModal as _t}from"./add-section-modal-ClOPZlnc.js";import{ae as wt,af as Bt,f as Nt,g as Rt,ag as At}from"./index-kcIuDE6u.js";import{c as Ct}from"./save-referenced-block-BwxGXLv8.js";import{b as Et,S as Kt}from"./schema-form-mwEmbM5O.js";import{S as Ft}from"./save-status-N1v_enLx.js";import"./agent-icon-Cf9b4Ru9.js";import"./AlertCircle-DhaQx9Mx.js";import"./Tool01-Dw4_QC3_.js";import"./SwitchHorizontal01-X5LMtCou.js";import"./Settings02-By0Jzp86.js";import"./XCircle-CCiKaJ__.js";import"./ArrowUpRight-CfMwsozc.js";import"./ZapSquare-J9sfjhfh.js";import"./Users03-4g5nbjFJ.js";import"./CheckCircle-DTbDatzD.js";import"./ChevronUp-BNOOOsT2.js";import"./ChevronDown-6sFYQ_lK.js";import"./ChevronLeft-8zvGG53e.js";import"./DotsVertical-DQ-WKmA2.js";import"./Stars02-CDIgaXAV.js";import"./Eye-B4uYcIta.js";import"./ZoomOut-DCv2Tq6d.js";import"./Globe01-C7fVaUrg.js";import"./FilterLines-DCvNnP3i.js";import"./Star01-_Kd09vMY.js";import"./Globe04-Bwx3UG2x.js";import"./HardDrive-BOa3mtdo.js";import"./Key01-B-9ep-9Z.js";import"./LayoutLeft-XZqot3mq.js";import"./LinkExternal01-iioOg4ap.js";import"./Monitor01-DL3Tirrd.js";import"./Sun-TGwF56wV.js";import"./Palette-pv0gmxnS.js";import"./Play-DXtyMrcP.js";import"./Plus-J1K3Rh3s.js";import"./SearchMd-CjaRzuTt.js";import"./Shield01-M8Hvv7sS.js";import"./Stars01-DyLJc1qm.js";import"./Trash01-Cib_Sg7t.js";import"./Upload01-CJqoFPBG.js";import"./User01-BywBiT-b.js";import"./Users01-CDCapXFR.js";import"./XClose-BtRDneKm.js";import"./X-BL2gdXEj.js";import"./Zap-B8ZLhQFM.js";import"./use-clock-tick-BHE1f1YU.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BGWnHO-M.js";import"./tooltip-D9KNvVvr.js";import"./file-type-icon-CzNWenEv.js";import"./dialog-jhtlYWQH.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-C7TUAV0n.js";import"./use-mcp-client-DYJrfczK.js";import"./auth-RitCYkp6.js";import"./chat-context-WtXAdZJ4.js";import"./hooks-D14HehpA.js";import"./decopilot-sse-pool-BVuJ_7ML.js";import"./use-virtual-mcp-oKPxaCky.js";import"./use-collections-H8HuKWEE.js";import"./use-ai-providers-CYtt5EvS.js";import"./studio-tools-B1vmC7k4.js";import"./use-organization-settings-DouM9EgM.js";import"./shell-layout-CrbOIA4d.js";import"./avatar-Nw1x5eGz.js";import"./required-auth-layout-DHjwTgi9.js";import"./useRouterState-ysmOvmXv.js";import"./use-org-sso-CwWfX4uS.js";import"./sheet-BBNc6H-H.js";import"./integration-icon-BcoSEnuB.js";import"./use-navigate-to-agent-BlcN6V5v.js";import"./use-connection-Cg1b4Um2.js";import"./use-mcp-prompts-CSCDL01T.js";import"./form-rLORGBZw.js";import"./label-vllYe6cM.js";import"./input-BvSXiwAq.js";import"./select-gQvIO328.js";import"./index-B9_waAhV.js";import"./drawer-Ca9qnNLt.js";import"./collection-search-CDaYX9FR.js";import"./tabs-CznF-MMq.js";import"./toggle-group-Cn5J5q3D.js";import"./use-deco-credits-D3w33USN.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CCMuozOG.js";import"./use-registry-connections-QEmucmhH.js";import"./useInfiniteQuery-YHehADCx.js";import"./use-infinite-scroll-Cj-XExfy.js";import"./extract-connection-data-CObOyXJ4.js";import"./card-yVmBUFAg.js";import"./collection-tabs-dRuAELuw.js";import"./badge-CuCfPx-y.js";import"./textarea-BVXgXW3B.js";import"./connection-form-helpers-BU4nsydd.js";import"./useSuspenseInfiniteQuery-xMSumVHF.js";import"./mcp-oauth-BswvczAL.js";import"./connect-desktop-dialog-p3tqZ2_6.js";import"./decopilot-CJM86E2F.js";import"./checkbox-BMArZ_ix.js";import"./skeleton-DOQx-oqC.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-0NTS3MkI.js";import"./popover-sSylEgHu.js";import"./command-P8Wd0xDH.js";import"./index-DqifP8kh.js";import"./dropdown-menu-B4AhYSKY.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Dl6bvWf3.js";import"./empty-state-Cz0bAkoo.js";import"./toolbar-6hNYKLLh.js";import"./preview-dialog-CRHdztnc.js";import"./index-CQ_hnxd_.js";import"./use-mcp-tools-D3AAnhTZ.js";import"./use-capability-BgNNCaLI.js";import"./shell-route-loading-DJR-qsy8.js";import"./index-DVtTwolW.js";import"./alert-dialog-C20YoJ0a.js";import"./switch-BH90tU73.js";import"./use-debounced-autosave-DIcW3_zI.js";import"./index-Bf1YdrMc.js";import"./sidebar-B5eoEEUh.js";import"./search-input-ChrXBjj7.js";import"./github-repo-picker-Cu20X1Oj.js";import"./use-secrets-DVqtKaXp.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-CHlCGyzP.js";import"./select-model-Dzwuphcu.js";import"./use-automations-DB885IUH.js";import"./monaco-editor-DFjHxwB9.js";import"./automation-runs-Dzg3ROYw.js";import"./table-Borl2aRc.js";import"./use-members-DJNn_Bxw.js";import"./use-org-auth-client-wIGZzMQc.js";import"./task-status-W8pectFm.js";import"./automation-list-row-BGAGsR0l.js";import"./calendar-CKrH5d_Q.js";import"./sortable.esm-XdYFSg_0.js";import"./image-field-LMawai9Y.js";import"./use-file-configs-BBtTR4ju.js";function br(B){const t=gt.c(77),{orgSlug:d,virtualMcpId:f,branch:u,blockKey:i,block:p,meta:m,decofile:l,title:H,excludeFields:G,schemaPending:at,previewBaseUrl:nt}=B,J=at===void 0?!1:at,n=nt===void 0?null:nt,h=typeof p?.__resolveType=="string"?p.__resolveType:"";let A;t[0]!==G||t[1]!==m||t[2]!==h?(A=wt(h,m,G),t[0]=G,t[1]=m,t[2]=h,t[3]=A):A=t[3];const c=A;let C;t[4]!==c?(C=!!c&&Object.keys(c.properties??{}).length>0,t[4]=c,t[5]=C):C=t[5];const Q=C;let E;t[6]!==p||t[7]!==i||t[8]!==m||t[9]!==H?(E=H??(p?Bt(i,p,m):i),t[6]=p,t[7]=i,t[8]=m,t[9]=H,t[10]=E):E=t[10];const x=E;let K;t[11]!==u||t[12]!==d||t[13]!==f?(K={orgSlug:d,virtualMcpId:f,branch:u},t[11]=u,t[12]=d,t[13]=f,t[14]=K):K=t[14];const{save:v,flush:W,isPending:X}=Nt(K);let F;t[15]!==u||t[16]!==d||t[17]!==f?(F={orgSlug:d,virtualMcpId:f,branch:u},t[15]=u,t[16]=d,t[17]=f,t[18]=F):F=t[18];const Y=Rt(F);let $;t[19]!==v?($=Ct((e,r)=>v(e,r)),t[19]=v,t[20]=$):$=t[20];const Z=$,[ht,xt]=w.useState(i),[tt,ct]=w.useState(null),[et,dt]=w.useState(0);let P;t[21]===Symbol.for("react.memo_cache_sentinel")?(P=[],t[21]=P):P=t[21];const[s,ft]=w.useState(P),[ot,rt]=w.useState(!1),O=w.useRef(null);ht!==i&&(xt(i),ct(null),dt(Pt),ft([]));let T;t[22]!==p?(T=p??{},t[22]=p,t[23]=T):T=t[23];const it=T;let b;t[24]!==tt?(b=tt??{},t[24]=tt,t[25]=b):b=t[25];let V;t[26]!==it||t[27]!==b?(V={...it,...b},t[26]=it,t[27]=b,t[28]=V):V=t[28];const mt=V;let I;t[29]!==i||t[30]!==h||t[31]!==v?(I=e=>{const r=e;ct(r),v(i,{...r,__resolveType:h})},t[29]=i,t[30]=h,t[31]=v,t[32]=I):I=t[32];const st=I;let L;t[33]===Symbol.for("react.memo_cache_sentinel")?(L=e=>{ft(e)},t[33]=L):L=t[33];const pt=L;let q;t[34]!==l||t[35]!==W||t[36]!==Y?(q=async(e,r)=>{try{const{blockKey:a,data:R}=At(e,l);await Y.mutateAsync({blockKey:a,data:R}),ut.success(`Created section "${a}"`),r({__resolveType:a}),W()}catch(a){const R=a,bt=R instanceof Error?R.message:"Could not add section";throw ut.error(bt),R}},t[34]=l,t[35]=W,t[36]=Y,t[37]=q):q=t[37];const g=q;let z;t[38]===Symbol.for("react.memo_cache_sentinel")?(z=e=>{O.current=e.append,rt(!0)},t[38]=z):z=t[38];const vt=z;let M;t[39]!==g?(M=async e=>{const r=O.current;if(r)try{await g(e,a=>{r(a),rt(!1),O.current=null})}catch{}},t[39]=g,t[40]=M):M=t[40];const lt=M;let U;t[41]!==s||t[42]!==x?(U=s.length>0?[x,...s]:[],t[41]=s,t[42]=x,t[43]=U):U=t[43];const N=U;let S;t[44]!==s||t[45]!==N||t[46]!==x?(S=N.length>0?o.jsx("nav",{"aria-label":"Editing breadcrumb",className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:N.map((e,r)=>{const a=r===N.length-1;return o.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[r>0&&o.jsx(jt,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("button",{type:"button",onClick:()=>{pt(r===0?[]:Et(s,r)),dt($t)},title:e,className:St("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",a?"font-medium text-foreground":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:e})]},`${e}-${r}`)})}):o.jsx("span",{className:"text-sm font-medium",children:x}),t[44]=s,t[45]=N,t[46]=x,t[47]=S):S=t[47];let y;t[48]!==X?(y=o.jsx(Ft,{isPending:X,isError:!1}),t[48]=X,t[49]=y):y=t[49];let j;t[50]!==S||t[51]!==y?(j=o.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[S,y]}),t[50]=S,t[51]=y,t[52]=j):j=t[52];let k;t[53]!==i||t[54]!==s||t[55]!==l||t[56]!==mt||t[57]!==et||t[58]!==g||t[59]!==st||t[60]!==Q||t[61]!==m||t[62]!==n||t[63]!==Z||t[64]!==c||t[65]!==J?(k=o.jsx(kt,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-6 py-6",children:o.jsx("div",{className:"mx-auto max-w-xl",children:Q?o.jsx(Kt,{schema:c,value:mt,onChange:st,basePath:"",breadcrumbPath:s,onBreadcrumbChange:pt,decofile:l,meta:m,onSaveReferencedBlock:Z,previewBaseUrl:n,onAddSectionItem:g,onRequestAddSection:vt},`${i}:${et}`):J?o.jsxs("div",{className:"flex flex-col items-center gap-2 py-6 text-center text-xs text-muted-foreground",children:[o.jsx(yt,{size:16,className:"animate-spin"}),"Loading app schema…"]}):o.jsx("div",{className:"py-6 text-center text-xs text-muted-foreground",children:"No editable schema found for this app."})})})}),t[53]=i,t[54]=s,t[55]=l,t[56]=mt,t[57]=et,t[58]=g,t[59]=st,t[60]=Q,t[61]=m,t[62]=n,t[63]=Z,t[64]=c,t[65]=J,t[66]=k):k=t[66];let _;t[67]!==ot||t[68]!==l||t[69]!==lt||t[70]!==m||t[71]!==n?(_=n&&o.jsx(_t,{open:ot,onOpenChange:e=>{rt(e),e||(O.current=null)},meta:m,decofile:l,previewBaseUrl:n,onSelect:e=>{lt(e)}}),t[67]=ot,t[68]=l,t[69]=lt,t[70]=m,t[71]=n,t[72]=_):_=t[72];let D;return t[73]!==j||t[74]!==k||t[75]!==_?(D=o.jsxs("div",{className:"flex h-full flex-col",children:[j,k,_]}),t[73]=j,t[74]=k,t[75]=_,t[76]=D):D=t[76],D}function $t(B){return B+1}function Pt(B){return B+1}export{br as AppEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as st,j as e,B as mt}from"./index-C3gL9St4.js";import{a as pt}from"./XCircle-CCiKaJ__.js";import{N as lt}from"./agent-icon-Cf9b4Ru9.js";import{I as tt}from"./input-BvSXiwAq.js";import{L as et}from"./label-vllYe6cM.js";import{ah as at,ai as nt,ao as ct,aj as ft}from"./index-kcIuDE6u.js";import{u as dt,s as M,I as gt}from"./primitives-DDnm_QnL.js";import{S as ut}from"./save-status-N1v_enLx.js";import{a as ht,B as xt,b as yt}from"./block-document-ZFzIRxrN.js";import"./AlertCircle-DhaQx9Mx.js";import"./Tool01-Dw4_QC3_.js";import"./SwitchHorizontal01-X5LMtCou.js";import"./Settings02-By0Jzp86.js";import"./ArrowUpRight-CfMwsozc.js";import"./ZapSquare-J9sfjhfh.js";import"./Users03-4g5nbjFJ.js";import"./CheckCircle-DTbDatzD.js";import"./ChevronUp-BNOOOsT2.js";import"./ChevronDown-6sFYQ_lK.js";import"./ChevronLeft-8zvGG53e.js";import"./ChevronRight-BdMquS3m.js";import"./DotsVertical-DQ-WKmA2.js";import"./Stars02-CDIgaXAV.js";import"./Eye-B4uYcIta.js";import"./ZoomOut-DCv2Tq6d.js";import"./Globe01-C7fVaUrg.js";import"./FilterLines-DCvNnP3i.js";import"./Star01-_Kd09vMY.js";import"./Globe04-Bwx3UG2x.js";import"./HardDrive-BOa3mtdo.js";import"./Key01-B-9ep-9Z.js";import"./LayoutLeft-XZqot3mq.js";import"./LinkExternal01-iioOg4ap.js";import"./Monitor01-DL3Tirrd.js";import"./Sun-TGwF56wV.js";import"./Palette-pv0gmxnS.js";import"./Play-DXtyMrcP.js";import"./Plus-J1K3Rh3s.js";import"./SearchMd-CjaRzuTt.js";import"./Shield01-M8Hvv7sS.js";import"./Stars01-DyLJc1qm.js";import"./Trash01-Cib_Sg7t.js";import"./Upload01-CJqoFPBG.js";import"./User01-BywBiT-b.js";import"./Users01-CDCapXFR.js";import"./XClose-BtRDneKm.js";import"./X-BL2gdXEj.js";import"./Zap-B8ZLhQFM.js";import"./index-B9_waAhV.js";import"./chat-context-WtXAdZJ4.js";import"./hooks-D14HehpA.js";import"./use-mcp-client-DYJrfczK.js";import"./auth-RitCYkp6.js";import"./decopilot-sse-pool-BVuJ_7ML.js";import"./use-virtual-mcp-oKPxaCky.js";import"./use-collections-H8HuKWEE.js";import"./use-ai-providers-CYtt5EvS.js";import"./studio-tools-B1vmC7k4.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-DouM9EgM.js";import"./scroll-area-Dbsv4e6O.js";import"./use-clock-tick-BHE1f1YU.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BGWnHO-M.js";import"./tooltip-D9KNvVvr.js";import"./file-type-icon-CzNWenEv.js";import"./dialog-jhtlYWQH.js";import"./content-blocks-o63cs2vh.js";import"./types-C7TUAV0n.js";import"./shell-layout-CrbOIA4d.js";import"./avatar-Nw1x5eGz.js";import"./required-auth-layout-DHjwTgi9.js";import"./useRouterState-ysmOvmXv.js";import"./use-org-sso-CwWfX4uS.js";import"./sheet-BBNc6H-H.js";import"./integration-icon-BcoSEnuB.js";import"./use-navigate-to-agent-BlcN6V5v.js";import"./use-connection-Cg1b4Um2.js";import"./use-mcp-prompts-CSCDL01T.js";import"./form-rLORGBZw.js";import"./select-gQvIO328.js";import"./drawer-Ca9qnNLt.js";import"./collection-search-CDaYX9FR.js";import"./tabs-CznF-MMq.js";import"./toggle-group-Cn5J5q3D.js";import"./use-deco-credits-D3w33USN.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CCMuozOG.js";import"./use-registry-connections-QEmucmhH.js";import"./useInfiniteQuery-YHehADCx.js";import"./use-infinite-scroll-Cj-XExfy.js";import"./extract-connection-data-CObOyXJ4.js";import"./card-yVmBUFAg.js";import"./collection-tabs-dRuAELuw.js";import"./badge-CuCfPx-y.js";import"./textarea-BVXgXW3B.js";import"./connection-form-helpers-BU4nsydd.js";import"./useSuspenseInfiniteQuery-xMSumVHF.js";import"./mcp-oauth-BswvczAL.js";import"./connect-desktop-dialog-p3tqZ2_6.js";import"./decopilot-CJM86E2F.js";import"./checkbox-BMArZ_ix.js";import"./skeleton-DOQx-oqC.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-0NTS3MkI.js";import"./popover-sSylEgHu.js";import"./command-P8Wd0xDH.js";import"./index-DqifP8kh.js";import"./dropdown-menu-B4AhYSKY.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Dl6bvWf3.js";import"./empty-state-Cz0bAkoo.js";import"./toolbar-6hNYKLLh.js";import"./preview-dialog-CRHdztnc.js";import"./index-CQ_hnxd_.js";import"./use-mcp-tools-D3AAnhTZ.js";import"./use-capability-BgNNCaLI.js";import"./shell-route-loading-DJR-qsy8.js";import"./index-DVtTwolW.js";import"./alert-dialog-C20YoJ0a.js";import"./switch-BH90tU73.js";import"./use-debounced-autosave-DIcW3_zI.js";import"./index-Bf1YdrMc.js";import"./sidebar-B5eoEEUh.js";import"./search-input-ChrXBjj7.js";import"./github-repo-picker-Cu20X1Oj.js";import"./use-secrets-DVqtKaXp.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-CHlCGyzP.js";import"./select-model-Dzwuphcu.js";import"./use-automations-DB885IUH.js";import"./monaco-editor-DFjHxwB9.js";import"./automation-runs-Dzg3ROYw.js";import"./table-Borl2aRc.js";import"./use-members-DJNn_Bxw.js";import"./use-org-auth-client-wIGZzMQc.js";import"./task-status-W8pectFm.js";import"./automation-list-row-BGAGsR0l.js";import"./sortable.esm-XdYFSg_0.js";import"./schema-form-mwEmbM5O.js";import"./calendar-CKrH5d_Q.js";import"./image-field-LMawai9Y.js";import"./use-file-configs-BBtTR4ju.js";function to(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 D;t[4]!==G?(D=nt(G,"categories"),t[4]=G,t[5]=D):D=t[5];const ot=D;let L;t[6]!==z||t[7]!==m?(L=o=>{m.mutate({blockKey:z,data:ft(z,"categories",o)})},t[6]=z,t[7]=m,t[8]=L):L=t[8];const[i,V]=dt(ot,L);let R;t[9]!==i||t[10]!==V?(R=(o,rt)=>V({...i,[o]:rt}),t[9]=i,t[10]=V,t[11]=R):R=t[11];const r=R;let s,T;t[12]!==i.slug||t[13]!==H?(s=M(i.slug),T=s?ct(H).filter(o=>o.categorySlugs.includes(s)).length:0,t[12]=i.slug,t[13]=H,t[14]=s,t[15]=T):(s=t[14],T=t[15]);const U=T;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 h;t[30]!==g||t[31]!==u?(h=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]=h):h=t[32];let $;t[33]===Symbol.for("react.memo_cache_sentinel")?($=e.jsx(et,{htmlFor:"category-slug",children:"Slug"}),t[33]=$):$=t[33];let x;t[34]!==i.slug?(x=M(i.slug),t[34]=i.slug,t[35]=x):x=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]!==x||t[39]!==y?(j=e.jsxs("div",{className:"mt-4 space-y-2",children:[$,e.jsx(tt,{id:"category-slug",value:x,onChange:y,placeholder:"my-category",className:"h-10"})]}),t[38]=x,t[39]=y,t[40]=j):j=t[40];let A;t[41]===Symbol.for("react.memo_cache_sentinel")?(A=e.jsx(et,{htmlFor:"category-description",children:"Description"}),t[41]=A):A=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:[A,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=U===1?"post":"posts";let S;t[50]!==U||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:[U," ",X," in this category"]})]}),t[50]=U,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=ht(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(xt,{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]!==h||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:[h,j,N,_,W,E]})}),t[73]=h,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{to as CategoryEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as it,r as E,j as e,l as rt}from"./index-C3gL9St4.js";import{S as mt,b as pt,c as st,d as at}from"./sheet-BBNc6H-H.js";import{S as nt}from"./scroll-area-Dbsv4e6O.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-BFfGH2mD.js";import{n as xt}from"./index-kcIuDE6u.js";import"./X-BL2gdXEj.js";import"./agent-icon-Cf9b4Ru9.js";import"./AlertCircle-DhaQx9Mx.js";import"./Tool01-Dw4_QC3_.js";import"./SwitchHorizontal01-X5LMtCou.js";import"./Settings02-By0Jzp86.js";import"./XCircle-CCiKaJ__.js";import"./ArrowUpRight-CfMwsozc.js";import"./ZapSquare-J9sfjhfh.js";import"./Users03-4g5nbjFJ.js";import"./CheckCircle-DTbDatzD.js";import"./ChevronUp-BNOOOsT2.js";import"./ChevronDown-6sFYQ_lK.js";import"./ChevronLeft-8zvGG53e.js";import"./ChevronRight-BdMquS3m.js";import"./DotsVertical-DQ-WKmA2.js";import"./Stars02-CDIgaXAV.js";import"./Eye-B4uYcIta.js";import"./ZoomOut-DCv2Tq6d.js";import"./Globe01-C7fVaUrg.js";import"./FilterLines-DCvNnP3i.js";import"./Star01-_Kd09vMY.js";import"./Globe04-Bwx3UG2x.js";import"./HardDrive-BOa3mtdo.js";import"./Key01-B-9ep-9Z.js";import"./LayoutLeft-XZqot3mq.js";import"./LinkExternal01-iioOg4ap.js";import"./Monitor01-DL3Tirrd.js";import"./Sun-TGwF56wV.js";import"./Palette-pv0gmxnS.js";import"./Play-DXtyMrcP.js";import"./Plus-J1K3Rh3s.js";import"./SearchMd-CjaRzuTt.js";import"./Shield01-M8Hvv7sS.js";import"./Stars01-DyLJc1qm.js";import"./Trash01-Cib_Sg7t.js";import"./Upload01-CJqoFPBG.js";import"./User01-BywBiT-b.js";import"./Users01-CDCapXFR.js";import"./XClose-BtRDneKm.js";import"./Zap-B8ZLhQFM.js";import"./use-clock-tick-BHE1f1YU.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BGWnHO-M.js";import"./tooltip-D9KNvVvr.js";import"./file-type-icon-CzNWenEv.js";import"./dialog-jhtlYWQH.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-C7TUAV0n.js";import"./use-mcp-client-DYJrfczK.js";import"./auth-RitCYkp6.js";import"./chat-context-WtXAdZJ4.js";import"./hooks-D14HehpA.js";import"./decopilot-sse-pool-BVuJ_7ML.js";import"./use-virtual-mcp-oKPxaCky.js";import"./use-collections-H8HuKWEE.js";import"./use-ai-providers-CYtt5EvS.js";import"./studio-tools-B1vmC7k4.js";import"./use-organization-settings-DouM9EgM.js";import"./shell-layout-CrbOIA4d.js";import"./avatar-Nw1x5eGz.js";import"./required-auth-layout-DHjwTgi9.js";import"./useRouterState-ysmOvmXv.js";import"./use-org-sso-CwWfX4uS.js";import"./integration-icon-BcoSEnuB.js";import"./use-navigate-to-agent-BlcN6V5v.js";import"./use-connection-Cg1b4Um2.js";import"./use-mcp-prompts-CSCDL01T.js";import"./form-rLORGBZw.js";import"./label-vllYe6cM.js";import"./input-BvSXiwAq.js";import"./select-gQvIO328.js";import"./switch-BH90tU73.js";import"./schema-form-mwEmbM5O.js";import"./calendar-CKrH5d_Q.js";import"./popover-sSylEgHu.js";import"./textarea-BVXgXW3B.js";import"./sortable.esm-XdYFSg_0.js";import"./dropdown-menu-B4AhYSKY.js";import"./image-field-LMawai9Y.js";import"./skeleton-DOQx-oqC.js";import"./tabs-CznF-MMq.js";import"./use-file-configs-BBtTR4ju.js";import"./useInfiniteQuery-YHehADCx.js";import"./use-infinite-scroll-Cj-XExfy.js";import"./command-P8Wd0xDH.js";import"./index-DqifP8kh.js";import"./index-B9_waAhV.js";import"./drawer-Ca9qnNLt.js";import"./collection-search-CDaYX9FR.js";import"./toggle-group-Cn5J5q3D.js";import"./use-deco-credits-D3w33USN.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CCMuozOG.js";import"./use-registry-connections-QEmucmhH.js";import"./extract-connection-data-CObOyXJ4.js";import"./card-yVmBUFAg.js";import"./collection-tabs-dRuAELuw.js";import"./badge-CuCfPx-y.js";import"./connection-form-helpers-BU4nsydd.js";import"./useSuspenseInfiniteQuery-xMSumVHF.js";import"./mcp-oauth-BswvczAL.js";import"./connect-desktop-dialog-p3tqZ2_6.js";import"./decopilot-CJM86E2F.js";import"./checkbox-BMArZ_ix.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-0NTS3MkI.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Dl6bvWf3.js";import"./empty-state-Cz0bAkoo.js";import"./toolbar-6hNYKLLh.js";import"./preview-dialog-CRHdztnc.js";import"./index-CQ_hnxd_.js";import"./use-mcp-tools-D3AAnhTZ.js";import"./use-capability-BgNNCaLI.js";import"./shell-route-loading-DJR-qsy8.js";import"./index-DVtTwolW.js";import"./alert-dialog-C20YoJ0a.js";import"./use-debounced-autosave-DIcW3_zI.js";import"./index-Bf1YdrMc.js";import"./sidebar-B5eoEEUh.js";import"./search-input-ChrXBjj7.js";import"./github-repo-picker-Cu20X1Oj.js";import"./use-secrets-DVqtKaXp.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-CHlCGyzP.js";import"./select-model-Dzwuphcu.js";import"./use-automations-DB885IUH.js";import"./monaco-editor-DFjHxwB9.js";import"./automation-runs-Dzg3ROYw.js";import"./table-Borl2aRc.js";import"./use-members-DJNn_Bxw.js";import"./use-org-auth-client-wIGZzMQc.js";import"./task-status-W8pectFm.js";import"./automation-list-row-BGAGsR0l.js";function ei(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{ei as SeoSheet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as H,p as $,j as A}from"./index-C3gL9St4.js";import{j as v,g as O,s as D}from"./scroll-area-Dbsv4e6O.js";import{u as L}from"./use-mcp-client-DYJrfczK.js";import{b as q,c as B}from"./use-mcp-tools-D3AAnhTZ.js";import{c as Y}from"./content-blocks-o63cs2vh.js";import{g as k,M as G,a as E}from"./types-C7TUAV0n.js";import{u as V,b as z}from"./chat-context-WtXAdZJ4.js";import{b as F}from"./shell-layout-CrbOIA4d.js";import"./agent-icon-Cf9b4Ru9.js";import"./AlertCircle-DhaQx9Mx.js";import"./Tool01-Dw4_QC3_.js";import"./SwitchHorizontal01-X5LMtCou.js";import"./Settings02-By0Jzp86.js";import"./XCircle-CCiKaJ__.js";import"./ArrowUpRight-CfMwsozc.js";import"./ZapSquare-J9sfjhfh.js";import"./Users03-4g5nbjFJ.js";import"./CheckCircle-DTbDatzD.js";import"./ChevronUp-BNOOOsT2.js";import"./ChevronDown-6sFYQ_lK.js";import"./ChevronLeft-8zvGG53e.js";import"./ChevronRight-BdMquS3m.js";import"./DotsVertical-DQ-WKmA2.js";import"./Stars02-CDIgaXAV.js";import"./Eye-B4uYcIta.js";import"./ZoomOut-DCv2Tq6d.js";import"./Globe01-C7fVaUrg.js";import"./FilterLines-DCvNnP3i.js";import"./Star01-_Kd09vMY.js";import"./Globe04-Bwx3UG2x.js";import"./HardDrive-BOa3mtdo.js";import"./Key01-B-9ep-9Z.js";import"./LayoutLeft-XZqot3mq.js";import"./LinkExternal01-iioOg4ap.js";import"./Monitor01-DL3Tirrd.js";import"./Sun-TGwF56wV.js";import"./Palette-pv0gmxnS.js";import"./Play-DXtyMrcP.js";import"./Plus-J1K3Rh3s.js";import"./SearchMd-CjaRzuTt.js";import"./Shield01-M8Hvv7sS.js";import"./Stars01-DyLJc1qm.js";import"./Trash01-Cib_Sg7t.js";import"./Upload01-CJqoFPBG.js";import"./User01-BywBiT-b.js";import"./Users01-CDCapXFR.js";import"./XClose-BtRDneKm.js";import"./X-BL2gdXEj.js";import"./Zap-B8ZLhQFM.js";import"./use-clock-tick-BHE1f1YU.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BGWnHO-M.js";import"./tooltip-D9KNvVvr.js";import"./file-type-icon-CzNWenEv.js";import"./dialog-jhtlYWQH.js";import"./tab-id-BptcWVWa.js";import"./hooks-D14HehpA.js";import"./decopilot-sse-pool-BVuJ_7ML.js";import"./studio-tools-B1vmC7k4.js";import"./sheet-BBNc6H-H.js";import"./integration-icon-BcoSEnuB.js";import"./use-virtual-mcp-oKPxaCky.js";import"./use-collections-H8HuKWEE.js";import"./use-navigate-to-agent-BlcN6V5v.js";import"./use-connection-Cg1b4Um2.js";import"./use-mcp-prompts-CSCDL01T.js";import"./form-rLORGBZw.js";import"./label-vllYe6cM.js";import"./input-BvSXiwAq.js";import"./select-gQvIO328.js";import"./auth-RitCYkp6.js";import"./use-ai-providers-CYtt5EvS.js";import"./use-organization-settings-DouM9EgM.js";import"./avatar-Nw1x5eGz.js";import"./required-auth-layout-DHjwTgi9.js";import"./useRouterState-ysmOvmXv.js";import"./use-org-sso-CwWfX4uS.js";const J={};function K(S){const t=H.c(37),{client:r,resourceURI:g,tool:e,connectionId:m,orgId:a,args:c}=S,{sendMessage:u}=V(),{setAppContext:d,clearAppContext:o}=z(),{setChatOpen:f,openTab:s}=F(),p=`${m}:${e.name}`;let l;t[0]!==s?(l=h=>h==="inline"?(s("0"),"inline"):"fullscreen",t[0]=s,t[1]=l):l=t[1];const i=l,n=c??J;let T;t[2]!==r||t[3]!==e.name||t[4]!==n?(T={client:r,toolName:e.name,toolArguments:n},t[2]=r,t[3]=e.name,t[4]=n,t[5]=T):T=t[5];const{data:x}=B(T);let R;if(t[6]!==e._meta||t[7]!==e.name){const h=O(e._meta);R=D(e.name,h),t[6]=e._meta,t[7]=e.name,t[8]=R}else R=t[8];const U=R;let I;t[9]!==e.inputSchema?(I=e.inputSchema??{type:"object"},t[9]=e.inputSchema,t[10]=I):I=t[10];let N;t[11]!==U||t[12]!==I||t[13]!==e?(N={...e,name:U,inputSchema:I},t[11]=U,t[12]=I,t[13]=e,t[14]=N):N=t[14];const b=N;let _;t[15]!==u||t[16]!==f?(_=h=>{const w=Y(h.content);w.content.length>0&&(f(!0),u({tiptapDoc:w}))},t[15]=u,t[16]=f,t[17]=_):_=t[17];const y=_;let C;t[18]!==b?(C={tool:b},t[18]=b,t[19]=C):C=t[19];let M;t[20]!==d||t[21]!==p?(M=h=>d(p,h),t[20]=d,t[21]=p,t[22]=M):M=t[22];let P;t[23]!==o||t[24]!==p?(P=()=>o(p),t[23]=o,t[24]=p,t[25]=P):P=t[25];let j;return t[26]!==r||t[27]!==y||t[28]!==i||t[29]!==a||t[30]!==g||t[31]!==C||t[32]!==M||t[33]!==P||t[34]!==n||t[35]!==x?(j=A.jsx(G,{resourceURI:g,orgId:a,toolInfo:C,toolInput:n,toolResult:x,displayMode:"fullscreen",minHeight:E.fullscreen.minHeight,maxHeight:E.fullscreen.maxHeight,client:r,onMessage:y,onUpdateModelContext:M,onTeardown:P,onRequestDisplayMode:i,className:"h-full"}),t[26]=r,t[27]=y,t[28]=i,t[29]=a,t[30]=g,t[31]=C,t[32]=M,t[33]=P,t[34]=n,t[35]=x,t[36]=j):j=t[36],j}function Ce(S){const t=H.c(20),{connectionId:r,toolName:g,args:e}=S,{org:m}=$();let a;t[0]!==r||t[1]!==m.id||t[2]!==m.slug?(a={connectionId:r,orgId:m.id,orgSlug:m.slug},t[0]=r,t[1]=m.id,t[2]=m.slug,t[3]=a):a=t[3];const c=L(a);let u;t[4]!==c?(u={client:c},t[4]=c,t[5]=u):u=t[5];const{data:d}=q(u);let o,f,s;t[6]!==g||t[7]!==d.tools?(o=v(decodeURIComponent(g)),s=d.tools.find(i=>i.name===o)??d.tools.find(i=>{const n=O(i._meta);if(!n)return!1;if(D(i.name,n)===o)return!0;const x=D(o,n);return x!==o&&i.name===x}),f=s?._meta?k(s._meta):void 0,t[6]=g,t[7]=d.tools,t[8]=o,t[9]=f,t[10]=s):(o=t[8],f=t[9],s=t[10]);const p=f;if(!s||!p){let i;return t[11]!==o?(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 "',o,'" not found or has no UI']})}),t[11]=o,t[12]=i):i=t[12],i}let l;return t[13]!==e||t[14]!==c||t[15]!==r||t[16]!==m.id||t[17]!==p||t[18]!==s?(l=A.jsx(K,{client:c,resourceURI:p,tool:s,connectionId:r,orgId:m.id,args:e}),t[13]=e,t[14]=c,t[15]=r,t[16]=m.id,t[17]=p,t[18]=s,t[19]=l):l=t[19],l}export{Ce as AppViewContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as F,j as r}from"./index-C3gL9St4.js";import{I as T}from"./input-BvSXiwAq.js";import{L as C}from"./label-vllYe6cM.js";import{T as L}from"./textarea-BVXgXW3B.js";import{I as A}from"./image-field-LMawai9Y.js";import{ah as R,ai as D,aj as J}from"./index-kcIuDE6u.js";import{u as K,s as P}from"./primitives-DDnm_QnL.js";import{S as M}from"./save-status-N1v_enLx.js";import"./Tool01-Dw4_QC3_.js";import"./Trash01-Cib_Sg7t.js";import"./Upload01-CJqoFPBG.js";import"./AlertCircle-DhaQx9Mx.js";import"./ChevronUp-BNOOOsT2.js";import"./Eye-B4uYcIta.js";import"./DotsVertical-DQ-WKmA2.js";import"./agent-icon-Cf9b4Ru9.js";import"./SwitchHorizontal01-X5LMtCou.js";import"./Settings02-By0Jzp86.js";import"./XCircle-CCiKaJ__.js";import"./ArrowUpRight-CfMwsozc.js";import"./ZapSquare-J9sfjhfh.js";import"./Users03-4g5nbjFJ.js";import"./CheckCircle-DTbDatzD.js";import"./ChevronDown-6sFYQ_lK.js";import"./ChevronLeft-8zvGG53e.js";import"./ChevronRight-BdMquS3m.js";import"./Stars02-CDIgaXAV.js";import"./ZoomOut-DCv2Tq6d.js";import"./Globe01-C7fVaUrg.js";import"./FilterLines-DCvNnP3i.js";import"./Star01-_Kd09vMY.js";import"./Globe04-Bwx3UG2x.js";import"./HardDrive-BOa3mtdo.js";import"./Key01-B-9ep-9Z.js";import"./LayoutLeft-XZqot3mq.js";import"./LinkExternal01-iioOg4ap.js";import"./Monitor01-DL3Tirrd.js";import"./Sun-TGwF56wV.js";import"./Palette-pv0gmxnS.js";import"./Play-DXtyMrcP.js";import"./Plus-J1K3Rh3s.js";import"./SearchMd-CjaRzuTt.js";import"./Shield01-M8Hvv7sS.js";import"./Stars01-DyLJc1qm.js";import"./User01-BywBiT-b.js";import"./Users01-CDCapXFR.js";import"./XClose-BtRDneKm.js";import"./X-BL2gdXEj.js";import"./Zap-B8ZLhQFM.js";import"./dialog-jhtlYWQH.js";import"./dropdown-menu-B4AhYSKY.js";import"./skeleton-DOQx-oqC.js";import"./tabs-CznF-MMq.js";import"./use-file-configs-BBtTR4ju.js";import"./studio-tools-B1vmC7k4.js";import"./useInfiniteQuery-YHehADCx.js";import"./use-infinite-scroll-Cj-XExfy.js";import"./index-B9_waAhV.js";import"./chat-context-WtXAdZJ4.js";import"./hooks-D14HehpA.js";import"./use-mcp-client-DYJrfczK.js";import"./auth-RitCYkp6.js";import"./decopilot-sse-pool-BVuJ_7ML.js";import"./use-virtual-mcp-oKPxaCky.js";import"./use-collections-H8HuKWEE.js";import"./use-ai-providers-CYtt5EvS.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-DouM9EgM.js";import"./scroll-area-Dbsv4e6O.js";import"./use-clock-tick-BHE1f1YU.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BGWnHO-M.js";import"./tooltip-D9KNvVvr.js";import"./file-type-icon-CzNWenEv.js";import"./content-blocks-o63cs2vh.js";import"./types-C7TUAV0n.js";import"./shell-layout-CrbOIA4d.js";import"./avatar-Nw1x5eGz.js";import"./required-auth-layout-DHjwTgi9.js";import"./useRouterState-ysmOvmXv.js";import"./use-org-sso-CwWfX4uS.js";import"./sheet-BBNc6H-H.js";import"./integration-icon-BcoSEnuB.js";import"./use-navigate-to-agent-BlcN6V5v.js";import"./use-connection-Cg1b4Um2.js";import"./use-mcp-prompts-CSCDL01T.js";import"./form-rLORGBZw.js";import"./select-gQvIO328.js";import"./drawer-Ca9qnNLt.js";import"./collection-search-CDaYX9FR.js";import"./toggle-group-Cn5J5q3D.js";import"./use-deco-credits-D3w33USN.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CCMuozOG.js";import"./use-registry-connections-QEmucmhH.js";import"./extract-connection-data-CObOyXJ4.js";import"./card-yVmBUFAg.js";import"./collection-tabs-dRuAELuw.js";import"./badge-CuCfPx-y.js";import"./connection-form-helpers-BU4nsydd.js";import"./useSuspenseInfiniteQuery-xMSumVHF.js";import"./mcp-oauth-BswvczAL.js";import"./connect-desktop-dialog-p3tqZ2_6.js";import"./decopilot-CJM86E2F.js";import"./checkbox-BMArZ_ix.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-0NTS3MkI.js";import"./popover-sSylEgHu.js";import"./command-P8Wd0xDH.js";import"./index-DqifP8kh.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Dl6bvWf3.js";import"./empty-state-Cz0bAkoo.js";import"./toolbar-6hNYKLLh.js";import"./preview-dialog-CRHdztnc.js";import"./index-CQ_hnxd_.js";import"./use-mcp-tools-D3AAnhTZ.js";import"./use-capability-BgNNCaLI.js";import"./shell-route-loading-DJR-qsy8.js";import"./index-DVtTwolW.js";import"./alert-dialog-C20YoJ0a.js";import"./switch-BH90tU73.js";import"./use-debounced-autosave-DIcW3_zI.js";import"./index-Bf1YdrMc.js";import"./sidebar-B5eoEEUh.js";import"./search-input-ChrXBjj7.js";import"./github-repo-picker-Cu20X1Oj.js";import"./use-secrets-DVqtKaXp.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-CHlCGyzP.js";import"./select-model-Dzwuphcu.js";import"./use-automations-DB885IUH.js";import"./monaco-editor-DFjHxwB9.js";import"./automation-runs-Dzg3ROYw.js";import"./table-Borl2aRc.js";import"./use-members-DJNn_Bxw.js";import"./use-org-auth-client-wIGZzMQc.js";import"./task-status-W8pectFm.js";import"./automation-list-row-BGAGsR0l.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 vr(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=R(y);let h;t[4]!==w||t[5]!==p?(h=D(w,p),t[4]=w,t[5]=p,t[6]=h):h=t[6];const B=h;let d;t[7]!==g||t[8]!==p||t[9]!==m?(d=e=>{m.mutate({blockKey:g,data:J(g,p,e)})},t[7]=g,t[8]=p,t[9]=m,t[10]=d):d=t[10];const[i,E]=K(B,d);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(A,{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{vr as RecordEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BwUiqOJ3.js","assets/index-C3gL9St4.js","assets/index-D1gOoljU.css","assets/XCircle-CCiKaJ__.js","assets/CheckCircle-DTbDatzD.js","assets/Settings02-By0Jzp86.js","assets/use-mcp-client-DYJrfczK.js","assets/auth-RitCYkp6.js","assets/useInfiniteQuery-YHehADCx.js","assets/use-infinite-scroll-Cj-XExfy.js","assets/studio-tools-B1vmC7k4.js","assets/badge-CuCfPx-y.js","assets/input-BvSXiwAq.js","assets/dropdown-menu-B4AhYSKY.js","assets/ChevronUp-BNOOOsT2.js","assets/ChevronRight-BdMquS3m.js","assets/DotsVertical-DQ-WKmA2.js","assets/table-Borl2aRc.js","assets/toggle-group-Cn5J5q3D.js","assets/use-view-mode-BCnWJZTf.js","assets/tooltip-D9KNvVvr.js","assets/FilterLines-DCvNnP3i.js","assets/Globe01-C7fVaUrg.js","assets/SearchMd-CjaRzuTt.js","assets/dialog-jhtlYWQH.js","assets/X-BL2gdXEj.js","assets/AlertCircle-DhaQx9Mx.js","assets/Upload01-CJqoFPBG.js","assets/alert-dialog-C20YoJ0a.js","assets/card-yVmBUFAg.js","assets/Trash01-Cib_Sg7t.js","assets/label-vllYe6cM.js","assets/select-gQvIO328.js","assets/ChevronDown-6sFYQ_lK.js","assets/switch-BH90tU73.js","assets/textarea-BVXgXW3B.js","assets/checkbox-BMArZ_ix.js","assets/Eye-B4uYcIta.js","assets/LinkExternal01-iioOg4ap.js","assets/use-copy-BGWnHO-M.js","assets/Key01-B-9ep-9Z.js","assets/Plus-J1K3Rh3s.js","assets/mcp-oauth-BswvczAL.js","assets/Play-DXtyMrcP.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{e as i,j as e,r as s,l as a,ak as o}from"./index-C3gL9St4.js";import{R as l}from"./require-capability-CHNIB1jg.js";import"./use-capability-BgNNCaLI.js";import"./access-gate-DFiTys6s.js";import"./capability-load-error-gogxAwFW.js";const m=s.lazy(()=>o(()=>import("./registry-layout-BwUiqOJ3.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])));function f(){const r=i.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(s.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(m,{})})}),r[0]=t):t=r[0],t}export{f as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{y as c}from"./preview-dialog-CRHdztnc.js";function t(r){return(e,a)=>{c(e),r(e,a)}}export{t as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as te,c as Se,j as s,e as Z,B as Re,n as Ae,m as Pt,K as Mt}from"./index-C3gL9St4.js";import{am as Ut,an as Vt,ao as Kt,ap as Ht,aq as Wt,ar as qt,ac as Yt,D as Gt,as as et,N as tt}from"./agent-icon-Cf9b4Ru9.js";import{C as Qt}from"./calendar-CKrH5d_Q.js";import{I as xe}from"./input-BvSXiwAq.js";import{L as me}from"./label-vllYe6cM.js";import{a as gt,b as xt,P as vt}from"./popover-sSylEgHu.js";import{T as Zt}from"./textarea-BVXgXW3B.js";import{b as Xt}from"./XCircle-CCiKaJ__.js";import{d as Jt}from"./SwitchHorizontal01-X5LMtCou.js";import{v as en,y as tn,z as nn}from"./scroll-area-Dbsv4e6O.js";import{S as rn}from"./switch-BH90tU73.js";import{a as bt,b as jt,c as Nt,S as St,d as kt}from"./select-gQvIO328.js";import{u as sn,a as nt,K as on,P as ln,D as an,c as cn,S as un,v as fn,e as dn,d as rt,b as pn,C as mn,s as hn}from"./sortable.esm-XdYFSg_0.js";import{c as Tt}from"./ZoomOut-DCv2Tq6d.js";import{s as yn}from"./Plus-J1K3Rh3s.js";import{s as Ct}from"./Trash01-Cib_Sg7t.js";import{a as gn,b as xn,c as vn,D as bn}from"./dropdown-menu-B4AhYSKY.js";import{i as Oe,Z as Pe,_ as st,n as We,l as qe,$ as wt,a0 as jn,a1 as Me,a2 as Ee,a3 as Nn,o as it,a4 as Sn,a5 as kn}from"./index-kcIuDE6u.js";import{e as At,u as Tn,m as Cn,L as wn,F as An,I as ot}from"./image-field-LMawai9Y.js";import{t as _t}from"./ChevronDown-6sFYQ_lK.js";import{i as It}from"./ChevronRight-BdMquS3m.js";import{i as _n}from"./Globe01-C7fVaUrg.js";import{T as In,b as Rn,a as On}from"./tooltip-D9KNvVvr.js";import{i as $n}from"./ChevronUp-BNOOOsT2.js";import{d as Fn}from"./Tool01-Dw4_QC3_.js";import{b as Ln,C as Dn,a as Bn,e as En,c as zn,d as Pn}from"./command-P8Wd0xDH.js";import{i as Mn}from"./Upload01-CJqoFPBG.js";import{c as Un}from"./use-file-configs-BBtTR4ju.js";function Ye(t){const e=t.__resolveType;if(typeof e!="string")return null;if(Oe(e)){const r=t.section?.__resolveType;return typeof r=="string"?r:e}return e}function Vn(t){return t.includes("flags/multivariate")}function Kn(t){return qe(t)}function Hn(t,e){const n=[...t],r=new Set(n.map(l=>l.resolveType)),i=(l,o)=>{!l||r.has(l)||(r.add(l),n.push({resolveType:l,title:o??Kn(l)}))};if(e.savedBlockKey&&i(e.savedBlockKey,e.savedBlockKey),e.editorValue&&typeof e.editorValue=="object"&&!Array.isArray(e.editorValue)){const l=Ye(e.editorValue);l?.includes("/")&&i(l)}return n}function Wn(t,e,n){const r=e[0]?.resolveType??"";if(n)return n;if(!t||typeof t!="object"||Array.isArray(t))return r;const i=t,l=i.__resolveType;if(typeof l=="string"){if(Pe(l)){const f=e.find(y=>y.resolveType===l);return f?f.resolveType:l}const u=e.find(f=>st(f.resolveType,l));if(u)return u.resolveType;const m=e.find(f=>f.resolveType===l);if(m)return m.resolveType;if(l.includes("/"))return l}const o=typeof i.type=="string"?i.type:void 0;if(o){const u=e.find(m=>m.discriminatorValue===o||m.resolveType===o||st(m.resolveType,o));if(u)return u.resolveType}let a=r,c=-1;for(const u of e){if(!u.schema?.properties)continue;const f=Object.keys(u.schema.properties).filter(y=>!y.startsWith("__")&&y!=="@type"&&y!=="action"&&y!=="alt").filter(y=>i[y]!==void 0).length;f>0&&f>c&&(c=f,a=u.resolveType)}return c>0,a}function lt(t,e,n){if(!t||typeof t!="object"||Array.isArray(t))return n??null;const r=Ye(t);if(!r)return n??null;if(!e)return r.includes("/")?null:n??null;const i=We(r,e);return i||(r.includes("/")?null:n??null)}function qn(t,e){if(!t?.properties||!e)return t??null;if(!(e in t.properties))return t;const n={...t.properties};return delete n[e],{...t,properties:n}}function Rt(t){if(!t||typeof t!="object"||Array.isArray(t))return null;const e=t;if(typeof e.__resolveType!="string"||!Oe(e.__resolveType))return null;const n=e.section;return!n||typeof n!="object"||Array.isArray(n)?null:n}function Yn(t,e){if(e)return!0;if(!t||typeof t!="object"||Array.isArray(t))return!1;const n=t,r=Ye(n);return r&&Vn(r)?Array.isArray(n.variants)&&n.variants.length>0:Object.keys(n).some(i=>!i.startsWith("__")&&i!=="@type")}function Gn(t){if(t?.trim())try{const e=new URL(t);return e.protocol!=="https:"?void 0:e.href}catch{return}}function Qn(t){if(Array.isArray(t.variants)){const e=t.variants,n=e.find(i=>i.rule?.__resolveType?.includes("always"));if(typeof n?.value=="string")return n.value;const r=e.find(i=>typeof i.value=="string");if(r)return r.value}if(typeof t.src=="string")return t.src;if(typeof t.url=="string")return t.url;if(typeof t.value=="string")return t.value}function Ot(t){if(typeof t=="string"||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(Ot);const e=t;return e.__resolveType?Qn(e)??t:$t(e)}function $t(t){const e={};for(const[n,r]of Object.entries(t))e[n]=Ot(r);return e}function Zn(t,e){return e.split(".").reduce((n,r)=>{if(!(n==null||typeof n!="object"))return n[r]},t)}function Ft(t){return t==null?"":Array.isArray(t)?t.map(Ft).filter(Boolean).join(","):typeof t=="object"?"":String(t)}function Ge(t,e){if(!t.includes("{"))return;const n=$t(e);return t.replace(/\{\{\{([^}]+)\}\}\}|\{\{([^}]+)\}\}/g,(i,l,o)=>{const a=(l??o??"").trim();return Ft(Zn(n,a))}).trim()||void 0}function Xn(t){return t.replace(/<[^>]*>/g,"").trim()}function Jn(t,e){if(e.includes("{"))return Ge(e,t);const n=t[e];if(typeof n=="string"&&n)return n;if(Array.isArray(n)){const r=n.map(i=>i==null?"":String(i)).filter(Boolean).join(",");if(r)return r}}function je(t,e,n){if(typeof t=="string")return t.trim()?t:`Item ${e+1}`;if(typeof t=="number"||typeof t=="boolean")return String(t);if(t&&typeof t=="object"&&!Array.isArray(t)){let r=t;const i=Rt(r);if(i&&(r=i),n?.titleBy){const o=Jn(r,n.titleBy);if(o)return o}for(const o of["name","label","title","alt","text","href","id","key"]){const a=r[o];if(typeof a=="string"&&a.trim()){const c=n?.properties?.[o]?.format;if(c==="rich-text"||c==="html"){const u=Xn(a);if(u)return u;continue}return a}if(Array.isArray(a)){const c=a.map(u=>u==null?"":String(u)).filter(Boolean).join(",");if(c)return c}}const l=r.__resolveType;if(typeof l=="string"&&l)return qe(l);if(n?.title){const o=Ge(n.title,r);if(o)return o;if(!n.title.includes("{"))return n.title}}return`Item ${e+1}`}function er(t){if(!t)return;if(typeof t.image=="string"&&t.image.includes("{"))return t.image;const e=t.properties?.image;if(!e)return;if(e.format==="image-uri")return"{{{image}}}";const n=e.properties;return n?.mobile?"{{{image.mobile}}}":n?.desktop?"{{{image.desktop}}}":"{{{image}}}"}function at(t,e){if(!t||typeof t!="object"||Array.isArray(t))return;const n=er(e);if(!n)return;const r=Ge(n,t);if(!r)return;const i=At(r)||r;return Gn(i)}function Lt(t){return t===wt||t===jn}function Ue(t,e){if(!Object.hasOwn(e,t))return null;const n=e[t]??{},r=n.__resolveType??t;return{data:{...n},resolveType:r}}function ze(t,e){const n=t.__resolveType??"";if(!n)return null;if(Oe(n)){const r=t.section??{};return Dt(r,e)}if(Lt(n)){const r=t.variants?.[0]?.value;return r?ze(r,e):null}return!Pe(n)||!Object.hasOwn(e,n)?{data:{...t},resolveType:n}:Ue(n,e)}function Dt(t,e){const n=t.__resolveType??"";if(!n)return null;if(Lt(n)){const r=t.variants?.[0]?.value;return r?ze(r,e):null}return!Pe(n)||!Object.hasOwn(e,n)?{data:{...t},resolveType:n}:Ue(n,e)}function tr(t,e){if(!t||typeof t!="object"||Array.isArray(t))return null;const r=t.__resolveType;if(typeof r!="string"||!Pe(r)||!Object.hasOwn(e,r))return null;const i=Ue(r,e);return i?{blockKey:r,...i}:null}function Fs(t,e,n){if(e.isMultivariate)return null;if(e.isSavedBlock){const r=e.isLazy?t.section?.__resolveType??t.__resolveType:t.__resolveType;return Ue(r,n)}if(e.isHidden){const l=(Oe(t.__resolveType)?t.section:t)?.variants?.[0]?.value??t;return ze(l,n)}if(e.isLazy||Oe(t.__resolveType)){const r=t.section??{};return Dt(r,n)}return ze(t,n)}const nr=new Set(["http:","https:","mailto:","tel:","ftp:"]);function rr(t){if(t.startsWith("/")||t.startsWith(".")||t.startsWith("#"))return!0;try{const e=new URL(t,"https://placeholder.invalid");return nr.has(e.protocol)}catch{return!1}}function ge(t){const e=Z.c(8),{active:n,label:r,onClick:i,children:l}=t,o=n?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground";let a;e[0]!==o?(a=Se("flex h-7 w-7 items-center justify-center rounded transition-colors cursor-pointer",o),e[0]=o,e[1]=a):a=e[1];let c;return e[2]!==n||e[3]!==l||e[4]!==r||e[5]!==i||e[6]!==a?(c=s.jsx("button",{type:"button","aria-label":r,"aria-pressed":n,onMouseDown:sr,onClick:i,className:a,children:l}),e[2]=n,e[3]=l,e[4]=r,e[5]=i,e[6]=a,e[7]=c):c=e[7],c}function sr(t){return t.preventDefault()}function ir({schema:t,value:e,onChange:n,path:r,label:i}){const l=typeof e=="string"?e:"",o=te.useRef(n);o.current=n;const a=en({extensions:[tn.configure({heading:{levels:[1,2,3]}})],content:l||"",editorProps:{attributes:{class:Se("prose prose-sm dark:prose-invert max-w-none focus:outline-none","min-h-[80px] px-3 py-2")}},onUpdate:({editor:c})=>{const u=c.getHTML();o.current(u==="<p></p>"?"":u)}});return a?s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"space-y-0.5",children:[s.jsx(me,{htmlFor:r,children:i}),t.description&&s.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:t.description})]}),s.jsxs("div",{className:"overflow-hidden rounded-md border border-input",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-0.5 border-b border-border/60 bg-muted/30 px-1.5 py-1",children:[s.jsx(ge,{active:a.isActive("bold"),label:"Bold",onClick:()=>a.chain().focus().toggleBold().run(),children:s.jsx(Ut,{size:14})}),s.jsx(ge,{active:a.isActive("italic"),label:"Italic",onClick:()=>a.chain().focus().toggleItalic().run(),children:s.jsx(Vt,{size:14})}),s.jsx(ge,{active:a.isActive("underline"),label:"Underline",onClick:()=>a.chain().focus().toggleUnderline().run(),children:s.jsx(Kt,{size:14})}),s.jsx(ge,{active:a.isActive("strike"),label:"Strikethrough",onClick:()=>a.chain().focus().toggleStrike().run(),children:s.jsx(Ht,{size:14})}),s.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),s.jsx(ge,{active:a.isActive("heading",{level:1}),label:"Heading 1",onClick:()=>a.chain().focus().toggleHeading({level:1}).run(),children:s.jsx(Wt,{size:14})}),s.jsx(ge,{active:a.isActive("heading",{level:2}),label:"Heading 2",onClick:()=>a.chain().focus().toggleHeading({level:2}).run(),children:s.jsx(qt,{size:14})}),s.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),s.jsx(ge,{active:a.isActive("bulletList"),label:"Bullet list",onClick:()=>a.chain().focus().toggleBulletList().run(),children:s.jsx(Jt,{size:14})}),s.jsx(ge,{active:a.isActive("orderedList"),label:"Ordered list",onClick:()=>a.chain().focus().toggleOrderedList().run(),children:s.jsx("span",{className:"text-[11px] font-semibold leading-none",children:"1."})}),s.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),s.jsx(ge,{active:a.isActive("link"),label:"Link",onClick:()=>{const c=a.getAttributes("link").href,u=window.prompt("Link URL",c??"https://");u!==null&&(u===""?a.chain().focus().unsetLink().run():rr(u)&&a.chain().focus().setLink({href:u}).run())},children:s.jsx(Xt,{size:14})})]}),s.jsx(nn,{editor:a})]})]}):null}const Ce=t=>String(t).padStart(2,"0"),or="1900-01-01",lr="2099-12-31",ar="1900-01-01T00:00",cr="2099-12-31T23:59";function ur(t){if(!t)return"";const e=t.slice(0,10);if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e;const n=new Date(t);return Number.isNaN(n.getTime())?"":`${n.getUTCFullYear()}-${Ce(n.getUTCMonth()+1)}-${Ce(n.getUTCDate())}`}function fr(t){return!t||!/^\d{4}-\d{2}-\d{2}$/.test(t)?"":`${t}T00:00:00.000Z`}function dr(t){if(!t)return"";const e=new Date(t);return Number.isNaN(e.getTime())?"":`${e.getFullYear()}-${Ce(e.getMonth()+1)}-${Ce(e.getDate())}T${Ce(e.getHours())}:${Ce(e.getMinutes())}`}function pr(t){if(!t)return"";const e=new Date(t);return Number.isNaN(e.getTime())?"":e.toISOString()}function mr(t){const e=Z.c(29),{id:n,withTime:r,value:i,onChange:l}=t,[o,a]=te.useState(!1);let c;e[0]!==i||e[1]!==r?(c=r?dr(i):ur(i),e[0]=i,e[1]=r,e[2]=c):c=e[2];const u=c;let m;e[3]!==l||e[4]!==r?(m=w=>{l(r?pr(w.target.value):fr(w.target.value))},e[3]=l,e[4]=r,e[5]=m):m=e[5];const f=m;let y;if(e[6]!==i){const w=i?new Date(i):null;y=w&&!Number.isNaN(w.getTime())?w:null,e[6]=i,e[7]=y}else y=e[7];const g=y;let b;e[8]!==l||e[9]!==g||e[10]!==r?(b=w=>{w&&(r&&g?w.setHours(g.getHours(),g.getMinutes(),0,0):w.setHours(0,0,0,0),l(w.toISOString()),a(!1))},e[8]=l,e[9]=g,e[10]=r,e[11]=b):b=e[11];const p=b,v=r?"datetime-local":"date",h=r?ar:or,d=r?cr:lr;let x;e[12]!==f||e[13]!==n||e[14]!==u||e[15]!==v||e[16]!==h||e[17]!==d?(x=s.jsx(xe,{id:n,type:v,min:h,max:d,value:u,onChange:f,className:"h-10 flex-1 [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:opacity-0"}),e[12]=f,e[13]=n,e[14]=u,e[15]=v,e[16]=h,e[17]=d,e[18]=x):x=e[18];let k;e[19]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(gt,{asChild:!0,children:s.jsx(Re,{type:"button",variant:"outline",size:"icon",className:"h-10 w-10 shrink-0","aria-label":"Open calendar",children:s.jsx(Yt,{className:"h-4 w-4"})})}),e[19]=k):k=e[19];const S=g??void 0;let T;e[20]!==p||e[21]!==S?(T=s.jsx(xt,{className:"w-auto p-0",align:"end",children:s.jsx(Qt,{mode:"single",selected:S,onSelect:p,initialFocus:!0})}),e[20]=p,e[21]=S,e[22]=T):T=e[22];let N;e[23]!==o||e[24]!==T?(N=s.jsxs(vt,{open:o,onOpenChange:a,children:[k,T]}),e[23]=o,e[24]=T,e[25]=N):N=e[25];let C;return e[26]!==N||e[27]!==x?(C=s.jsxs("div",{className:"flex gap-1",children:[x,N]}),e[26]=N,e[27]=x,e[28]=C):C=e[28],C}function Fe(t){const e=Z.c(8),{htmlFor:n,label:r,description:i}=t;let l;e[0]!==n||e[1]!==r?(l=s.jsx(me,{htmlFor:n,children:r}),e[0]=n,e[1]=r,e[2]=l):l=e[2];let o;e[3]!==i?(o=i&&s.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:i}),e[3]=i,e[4]=o):o=e[4];let a;return e[5]!==l||e[6]!==o?(a=s.jsxs("div",{className:"space-y-0.5",children:[l,o]}),e[5]=l,e[6]=o,e[7]=a):a=e[7],a}function Le(t){const e=Z.c(67),{schema:n,value:r,onChange:i,path:l,label:o}=t,a=typeof r=="string"?r:"",c=n.format;if(c==="rich-text"||c==="rich-text-inline"||c==="html"){let p;return e[0]!==o||e[1]!==i||e[2]!==l||e[3]!==n||e[4]!==r?(p=s.jsx(ir,{schema:n,value:r,onChange:i,path:l,label:o}),e[0]=o,e[1]=i,e[2]=l,e[3]=n,e[4]=r,e[5]=p):p=e[5],p}if(c==="textarea"||c==="markdown"){let p;e[6]!==o||e[7]!==l||e[8]!==n.description?(p=s.jsx(Fe,{htmlFor:l,label:o,description:n.description}),e[6]=o,e[7]=l,e[8]=n.description,e[9]=p):p=e[9];let v;e[10]!==i?(v=x=>i(x.target.value),e[10]=i,e[11]=v):v=e[11];let h;e[12]!==l||e[13]!==a||e[14]!==v?(h=s.jsx(Zt,{id:l,value:a,onChange:v,rows:4}),e[12]=l,e[13]=a,e[14]=v,e[15]=h):h=e[15];let d;return e[16]!==p||e[17]!==h?(d=s.jsxs("div",{className:"space-y-2",children:[p,h]}),e[16]=p,e[17]=h,e[18]=d):d=e[18],d}if(c==="date"||c==="date-time"){let p;e[19]!==o||e[20]!==l||e[21]!==n.description?(p=s.jsx(Fe,{htmlFor:l,label:o,description:n.description}),e[19]=o,e[20]=l,e[21]=n.description,e[22]=p):p=e[22];const v=c==="date-time";let h;e[23]!==i||e[24]!==l||e[25]!==a||e[26]!==v?(h=s.jsx(mr,{id:l,withTime:v,value:a,onChange:i}),e[23]=i,e[24]=l,e[25]=a,e[26]=v,e[27]=h):h=e[27];let d;return e[28]!==p||e[29]!==h?(d=s.jsxs("div",{className:"space-y-2",children:[p,h]}),e[28]=p,e[29]=h,e[30]=d):d=e[30],d}if(c==="color-input"){let p;e[31]!==o||e[32]!==l||e[33]!==n.description?(p=s.jsx(Fe,{htmlFor:l,label:o,description:n.description}),e[31]=o,e[32]=l,e[33]=n.description,e[34]=p):p=e[34];const v=a||"#000000";let h;e[35]!==i?(h=N=>i(N.target.value),e[35]=i,e[36]=h):h=e[36];let d;e[37]!==v||e[38]!==h?(d=s.jsx("input",{type:"color",value:v,onChange:h,className:"h-10 w-10 cursor-pointer rounded-lg border border-border bg-background p-1"}),e[37]=v,e[38]=h,e[39]=d):d=e[39];let x;e[40]!==i?(x=N=>i(N.target.value),e[40]=i,e[41]=x):x=e[41];let k;e[42]!==l||e[43]!==a||e[44]!==x?(k=s.jsx(xe,{id:l,value:a,onChange:x,placeholder:"#000000",className:"h-10 flex-1"}),e[42]=l,e[43]=a,e[44]=x,e[45]=k):k=e[45];let S;e[46]!==d||e[47]!==k?(S=s.jsxs("div",{className:"flex items-center gap-2",children:[d,k]}),e[46]=d,e[47]=k,e[48]=S):S=e[48];let T;return e[49]!==p||e[50]!==S?(T=s.jsxs("div",{className:"space-y-2",children:[p,S]}),e[49]=p,e[50]=S,e[51]=T):T=e[51],T}let u;e[52]!==o||e[53]!==l||e[54]!==n.description?(u=s.jsx(Fe,{htmlFor:l,label:o,description:n.description}),e[52]=o,e[53]=l,e[54]=n.description,e[55]=u):u=e[55];const m=c==="url"?"url":"text";let f;e[56]!==i?(f=p=>i(p.target.value),e[56]=i,e[57]=f):f=e[57];const y=n.default!=null?String(n.default):void 0;let g;e[58]!==l||e[59]!==a||e[60]!==m||e[61]!==f||e[62]!==y?(g=s.jsx(xe,{id:l,type:m,value:a,onChange:f,placeholder:y,className:"h-10"}),e[58]=l,e[59]=a,e[60]=m,e[61]=f,e[62]=y,e[63]=g):g=e[63];let b;return e[64]!==u||e[65]!==g?(b=s.jsxs("div",{className:"space-y-2",children:[u,g]}),e[64]=u,e[65]=g,e[66]=b):b=e[66],b}function hr(t){const e=Z.c(17),{schema:n,value:r,onChange:i,path:l,label:o}=t,a=typeof r=="number"?r:"";let c;e[0]!==o||e[1]!==l?(c=s.jsx(me,{htmlFor:l,children:o}),e[0]=o,e[1]=l,e[2]=c):c=e[2];let u;e[3]!==n.description?(u=n.description&&s.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:n.description}),e[3]=n.description,e[4]=u):u=e[4];let m;e[5]!==c||e[6]!==u?(m=s.jsxs("div",{className:"space-y-0.5",children:[c,u]}),e[5]=c,e[6]=u,e[7]=m):m=e[7];let f;e[8]!==i?(f=b=>{const p=b.target.value;i(p===""?void 0:Number(p))},e[8]=i,e[9]=f):f=e[9];let y;e[10]!==a||e[11]!==l||e[12]!==f?(y=s.jsx(xe,{id:l,type:"number",value:a,onChange:f,className:"h-10"}),e[10]=a,e[11]=l,e[12]=f,e[13]=y):y=e[13];let g;return e[14]!==m||e[15]!==y?(g=s.jsxs("div",{className:"space-y-2",children:[m,y]}),e[14]=m,e[15]=y,e[16]=g):g=e[16],g}function yr(t){const e=Z.c(17),{value:n,onChange:r,path:i,label:l,schema:o}=t,a=typeof n=="boolean"?n:!1;let c;e[0]!==l||e[1]!==i?(c=s.jsx(me,{htmlFor:i,children:l}),e[0]=l,e[1]=i,e[2]=c):c=e[2];let u;e[3]!==o.description?(u=o.description&&s.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:o.description}),e[3]=o.description,e[4]=u):u=e[4];let m;e[5]!==c||e[6]!==u?(m=s.jsxs("div",{className:"space-y-0.5",children:[c,u]}),e[5]=c,e[6]=u,e[7]=m):m=e[7];let f;e[8]!==r?(f=b=>r(b),e[8]=r,e[9]=f):f=e[9];let y;e[10]!==a||e[11]!==i||e[12]!==f?(y=s.jsx(rn,{id:i,checked:a,onCheckedChange:f}),e[10]=a,e[11]=i,e[12]=f,e[13]=y):y=e[13];let g;return e[14]!==m||e[15]!==y?(g=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[m,y]}),e[14]=m,e[15]=y,e[16]=g):g=e[16],g}const Qe="__enum_empty__";function Ze(t){return t===""?Qe:String(t)}function gr(t,e){if(t===Qe)return"";const n=e.find(r=>Ze(r)===t);return n!==void 0?n:t}function xr(t,e){return t==null?e.some(n=>n==="")?Qe:void 0:Ze(t)}function vr(t){return t===""?"":String(t)}function br(t){const e=Z.c(28),{schema:n,value:r,onChange:i,path:l,label:o}=t;let a;e[0]!==n.enum?(a=n.enum??[],e[0]=n.enum,e[1]=a):a=e[1];const c=a;let u;e[2]!==c||e[3]!==r?(u=xr(r,c),e[2]=c,e[3]=r,e[4]=u):u=e[4];const m=u;let f;e[5]!==o||e[6]!==l?(f=s.jsx(me,{htmlFor:l,children:o}),e[5]=o,e[6]=l,e[7]=f):f=e[7];let y;e[8]!==n.description?(y=n.description&&s.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:n.description}),e[8]=n.description,e[9]=y):y=e[9];let g;e[10]!==f||e[11]!==y?(g=s.jsxs("div",{className:"space-y-0.5",children:[f,y]}),e[10]=f,e[11]=y,e[12]=g):g=e[12];let b;e[13]!==i||e[14]!==c?(b=k=>i(gr(k,c)),e[13]=i,e[14]=c,e[15]=b):b=e[15];let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(jt,{className:"h-10",children:s.jsx(Nt,{placeholder:"Select..."})}),e[16]=p):p=e[16];let v;e[17]!==c?(v=c.map(jr),e[17]=c,e[18]=v):v=e[18];let h;e[19]!==v?(h=s.jsx(St,{children:v}),e[19]=v,e[20]=h):h=e[20];let d;e[21]!==m||e[22]!==b||e[23]!==h?(d=s.jsxs(kt,{value:m,onValueChange:b,children:[p,h]}),e[21]=m,e[22]=b,e[23]=h,e[24]=d):d=e[24];let x;return e[25]!==d||e[26]!==g?(x=s.jsxs("div",{className:"space-y-2",children:[g,d]}),e[25]=d,e[26]=g,e[27]=x):x=e[27],x}function jr(t){const e=Ze(t);return s.jsx(bt,{value:e,children:vr(t)},e)}function Bt(t){return t.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]/g," ").replace(/^\w/,e=>e.toUpperCase())}function Ne(t){return t.normalize("NFC").trim()}function ee(t,e){return Ne(t)===Ne(e)}function ct(t,e){return Ne(t).replace(/\s+/g,"").toLowerCase()===Ne(e).replace(/\s+/g,"").toLowerCase()}function De(t,e,n){const r=Ne(n);if(t.some(o=>ee(o,r)||ee(o,n)))return t;const i=[...t];return i.some(o=>ee(o,e))||i.push(e),i.push(n),i}function Nr(t,e,n){if(n.length===0)return n;const r=_e(t,e),i=n[0];return ee(i,r)||ee(i,t)?n.slice(1):n}function _e(t,e){return e.title??Bt(t)}function Ls(t,e){return e<=0?[]:t.slice(0,e)}function Ve(t,e){const n=Ne(e);return t.findIndex(r=>Ne(r)===n)}function ut(t,e){return t.type==="array"&&t.items||Me(t)?!0:Array.isArray(e)}function Sr(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)?t:{}}function $e(t,e,n,r){if(r.length===0)return null;const i=r[0];for(const o of t){const a=e[o];if(!a||!ut(a,n[o]))continue;const c=_e(o,a);if(ee(i,c)||ee(i,o)||r.some(u=>ee(u,c)||ee(u,o)))return o}for(const o of t){const a=e[o];if(!a||!ut(a,n[o]))continue;const c=n[o];if(!Array.isArray(c))continue;const u=a.items;for(let m=0;m<c.length;m++){const f=je(c[m],m,u);if(ee(f,i))return o}}for(const o of t){const a=e[o];if(a?.type!=="object"||!a.properties)continue;const c=Object.keys(a.properties),u=Sr(n[o]),m=_e(o,a);if($e(c,a.properties,u,r)||(ee(i,m)||ee(i,o))&&$e(c,a.properties,u,r.slice(1)))return o}let l=null;for(const o of t){const a=e[o];if(a?.type!=="block-ref")continue;const c=_e(o,a);if(!(i!==c&&i!==o)){if(r.length>1){const u=n[o];if(u&&typeof u=="object"&&!Array.isArray(u)){const m=r[1];if(Object.keys(u).some(y=>!y.startsWith("__")&&(ct(Bt(y),m)||ct(y,m))))return o}}l||(l=o)}}return l||null}function kr(t,e,n,r){return $e(t,e,n,r)}function Tr(t,e,n,r,i){if(i.length===0||!n.properties)return!1;const l=Object.keys(n.properties);if($e(l,n.properties,r,i))return!0;const o=i[0];return!ee(o,e)&&!ee(o,t)?!1:i.length>1||$e(l,n.properties,r,i.slice(1))!==null}function Cr(t,e,n,r){if(e.length===0)return null;for(let l=0;l<e.length;l++){const o=e[l],a=n.findIndex((c,u)=>ee(je(c,u,r),o));if(a>=0)return{index:a,innerPath:e.slice(l+1)}}const i=e.findIndex(l=>ee(l,t));if(i>=0&&e.length>i+1){const l=e[i+1],o=n.findIndex((a,c)=>ee(je(a,c,r),l));if(o>=0)return{index:o,innerPath:e.slice(i+2)}}return null}function Ke(t){return t.includes("/sections/")||t.includes("multivariate/section")||t===wt}function wr(t){if(t.type==="block-ref"&&t.anyOfRefs?.length)return t.anyOfRefs.some(n=>Ke(n.resolveType));if(t.anyOfRefs?.length)return t.anyOfRefs.some(n=>Ke(n.resolveType));const e=t.properties?.__resolveType;return e?.type==="block-ref"&&e.anyOfRefs?.length?e.anyOfRefs.some(n=>Ke(n.resolveType)):!1}function Ar(t,e){if(e==="global"||e==="sections"||Me(t))return!0;const n=t.type==="array"?t.items:void 0;return n?wr(n):!1}function ft(t){return Array.from({length:t},(e,n)=>({id:crypto.randomUUID(),index:n}))}function _r(t,e,n,r,i){if(e?.type==="object"&&e.properties&&Object.keys(e.properties).length>0||e?.type==="block-ref"&&e.anyOfRefs?.length)return e;if(t!=null&&typeof t=="object"&&!Array.isArray(t)){const l=t.__resolveType;if(typeof l=="string"&&n){const o=We(l,n);if(o?.properties&&Object.keys(o.properties).length>0)return o}}if(n&&r&&i){const o=We(r,n)?.properties?.[i]?.items;if(o?.properties&&Object.keys(o.properties).length>0)return{...o,titleBy:o.titleBy??e?.titleBy}}return e}function Ir(t){const e=t.split(".").filter(n=>!/^\d+$/.test(n));return e[e.length-1]??t}function Et(t){return t.map((e,n)=>({...e,index:n}))}function Rr(t,e){if(e===t.length)return t;if(e<t.length)return Et(t.slice(0,e));const n=Array.from({length:e-t.length},(r,i)=>({id:crypto.randomUUID(),index:t.length+i}));return[...t,...n]}function Or(t){const e=Z.c(8),{labelText:n,imageSrc:r}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Tt,{className:"size-3.5 shrink-0 text-muted-foreground/40"}),e[0]=i):i=e[0];let l;e[1]!==r?(l=r&&s.jsx("img",{src:r,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),e[1]=r,e[2]=l):l=e[2];let o;e[3]!==n?(o=s.jsx("span",{className:"min-w-0 truncate",children:n}),e[3]=n,e[4]=o):o=e[4];let a;return e[5]!==l||e[6]!==o?(a=s.jsxs(s.Fragment,{children:[i,s.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2.5 text-sm",children:[l,o]})]}),e[5]=l,e[6]=o,e[7]=a):a=e[7],a}function $r(t){const e=Z.c(37),{sortableId:n,labelText:r,imageSrc:i,onOpen:l,onRemove:o}=t;let a;e[0]!==n?(a={id:n,animateLayoutChanges:Dr},e[0]=n,e[1]=a):a=e[1];const{attributes:c,listeners:u,setNodeRef:m,transform:f,isDragging:y}=pn(a);let g;e[2]!==f?(g=mn.Transform.toString(f?{...f,x:0}:null),e[2]=f,e[3]=g):g=e[3];const b=y?0:void 0;let p;e[4]!==g||e[5]!==b?(p={transform:g,opacity:b},e[4]=g,e[5]=b,e[6]=p):p=e[6];const v=p;let h;e[7]!==l?(h=B=>{(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),l())},e[7]=l,e[8]=h):h=e[8];const d=y?"cursor-grabbing":"cursor-pointer";let x;e[9]!==d?(x=Se("group flex min-w-0 items-center gap-2.5 rounded-lg px-2 py-2.5 hover:bg-accent hover:text-accent-foreground touch-none",d),e[9]=d,e[10]=x):x=e[10];let k;e[11]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(Tt,{className:"size-3.5 shrink-0 text-muted-foreground/40"}),e[11]=k):k=e[11];let S;e[12]!==i?(S=i&&s.jsx("img",{src:i,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),e[12]=i,e[13]=S):S=e[13];let T;e[14]!==r?(T=s.jsx("span",{className:"min-w-0 flex-1 truncate text-sm",children:r}),e[14]=r,e[15]=T):T=e[15];const N=`Open actions for ${r}`;let C;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(Gt,{size:14}),e[16]=C):C=e[16];let w;e[17]!==N?(w=s.jsx(gn,{asChild:!0,children:s.jsx(Re,{type:"button",variant:"ghost",size:"icon","aria-label":N,className:"size-6 shrink-0 opacity-0 transition-opacity group-hover:opacity-100",onClick:Lr,onPointerDown:Fr,children:C})}),e[17]=N,e[18]=w):w=e[18];let _;e[19]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(Ct,{size:14}),e[19]=_):_=e[19];let j;e[20]!==o?(j=s.jsx(xn,{align:"end",children:s.jsxs(vn,{className:"text-destructive focus:text-destructive",onClick:o,children:[_,"Delete"]})}),e[20]=o,e[21]=j):j=e[21];let I;e[22]!==w||e[23]!==j?(I=s.jsxs(bn,{children:[w,j]}),e[22]=w,e[23]=j,e[24]=I):I=e[24];let R;return e[25]!==c||e[26]!==r||e[27]!==u||e[28]!==l||e[29]!==m||e[30]!==v||e[31]!==T||e[32]!==I||e[33]!==h||e[34]!==x||e[35]!==S?(R=s.jsxs("div",{ref:m,style:v,...c,...u,role:"button",tabIndex:0,onClick:l,onKeyDown:h,className:x,title:r,children:[k,S,T,I]}),e[25]=c,e[26]=r,e[27]=u,e[28]=l,e[29]=m,e[30]=v,e[31]=T,e[32]=I,e[33]=h,e[34]=x,e[35]=S,e[36]=R):R=e[36],R}function Fr(t){return t.stopPropagation()}function Lr(t){return t.stopPropagation()}function Dr(){return!1}function Be(t){const e=Z.c(24),{schema:n,value:r,onChange:i,path:l,label:o,breadcrumbPath:a,onBreadcrumbChange:c,meta:u,decofile:m,onSaveReferencedBlock:f,containerResolveType:y,previewBaseUrl:g,onAddSectionItem:b,onRequestAddSection:p,sandbox:v}=t,h=a===void 0?[]:a,d=Array.isArray(r)?r:[],x=n.items,k=Ir(l),S=Ar(n,k),T=Cr(o,h,d,x),N=T?.index??null,[C,w]=te.useState(()=>ft(d.length)),[_,j]=te.useState(null),[I,R]=te.useState(l),[B,P]=te.useState(d.length),M=te.useRef(!1);I!==l?(R(l),P(d.length),w(ft(d.length))):B!==d.length&&(P(d.length),w(A=>Rr(A,d.length)));let E;e[0]!==x?(E=(A,D)=>je(A,D,x),e[0]=x,e[1]=E):E=e[1];const O=E,ne=A=>{if(M.current)return;const D=O(d[A],A);c?.(De(h,o,D))},re=A=>{const D=[...d,A];i(D);const Q=D.length-1,H=je(A,Q,x);c?.(De(h,o,H))},X=()=>{const A=x?.type,D=x?.default!==void 0?x.default:A==="object"?{}:A==="block-ref"?(()=>{const pe=x?.anyOfRefs?.[0]?.resolveType;return typeof pe!="string"||Ee(pe)?{}:{__resolveType:pe}})():A==="number"||A==="integer"?0:A==="boolean"?!1:A==="array"?[]:"",Q=[...d,D];i(Q);const H=Q.length-1,de=je(D,H,x);c?.(De(h,o,de))},U=()=>{if(S){if(!g){Ae.error("Start the preview dev server to add sections.");return}if(p){p({append:re});return}Ae.error("Section picker is not available in this editor.");return}X()},W=A=>{if(i(d.filter((D,Q)=>Q!==A)),N===A){const D=O(d[A],A),Q=Ve(h,D);c?.(Q>=0?h.slice(0,Q):[])}},Y=(A,D)=>{const Q=[...d];if(Q[A]=D,i(Q),A===N&&N!==null){const H=O(d[A],A),de=je(D,A,x);if(H!==de){const pe=Ve(h,H);if(pe>=0){const Je=[...h];Je[pe]=de,c?.(Je)}}}};let $;e[2]===Symbol.for("react.memo_cache_sentinel")?($={activationConstraint:{distance:8}},e[2]=$):$=e[2];let V;e[3]===Symbol.for("react.memo_cache_sentinel")?(V={coordinateGetter:hn},e[3]=V):V=e[3];const se=sn(nt(ln,$),nt(on,V)),F=C.map(Br);let L;e[4]===Symbol.for("react.memo_cache_sentinel")?(L=A=>{j(String(A.active.id))},e[4]=L):L=e[4];const G=L,le=A=>{j(null);const{active:D,over:Q}=A;if(!Q||D.id===Q.id)return;const H=F.indexOf(String(D.id)),de=F.indexOf(String(Q.id));H===-1||de===-1||(w(pe=>Et(rt([...pe],H,de))),i(rt([...d],H,de)),M.current=!0,requestAnimationFrame(()=>{M.current=!1}))};let J;e[5]===Symbol.for("react.memo_cache_sentinel")?(J=()=>{j(null)},e[5]=J):J=e[5];const he=J,ce=_?C.find(A=>A.id===_):null,ie=ce!=null?d[ce.index]:void 0,ye=ce!=null&&ie!==void 0?O(ie,ce.index):null,ae=ce!=null&&ie!==void 0?at(ie,x):void 0;if(N!==null&&N<d.length){const A=d[N],D=_r(A,x,u,y,k),Q=()=>{const H=O(A,N),de=De(h,o,H),pe=Ve(de,H);return pe>=0?de.slice(0,pe+1):de};return s.jsx("div",{className:"min-w-0",children:D?.type==="object"&&D.properties?s.jsx(Xe,{schema:D,value:A,onChange:H=>Y(N,H),basePath:`${l}.${N}`,breadcrumbPath:T?.innerPath??[],onBreadcrumbChange:H=>{c?.([...Q(),...H])},meta:u,decofile:m,onSaveReferencedBlock:f,previewBaseUrl:g,onAddSectionItem:b,onRequestAddSection:p,sandbox:v}):D?zt({schema:D,value:A,onChange:H=>Y(N,H),path:`${l}.${N}`,label:D.title??`Item ${N+1}`,breadcrumbPath:T?.innerPath??[],onBreadcrumbChange:H=>{c?.([...Q(),...H])},meta:u,decofile:m,onSaveReferencedBlock:f,previewBaseUrl:g,onAddSectionItem:b,onRequestAddSection:p,sandbox:v}):null})}const K="space-y-2";let q;e[6]!==o?(q=s.jsx("span",{className:"min-w-0 truncate text-sm font-medium",children:o}),e[6]=o,e[7]=q):q=e[7];const z=d.length>0&&s.jsx("span",{className:"rounded-md bg-muted px-1.5 py-0.5 text-xs font-medium text-muted-foreground",children:d.length});let oe;e[8]!==q||e[9]!==z?(oe=s.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[q,z]}),e[8]=q,e[9]=z,e[10]=oe):oe=e[10];let ue;e[11]!==n.description?(ue=n.description&&s.jsx("p",{className:"break-words text-xs leading-normal text-muted-foreground",children:n.description}),e[11]=n.description,e[12]=ue):ue=e[12];let ve;e[13]!==oe||e[14]!==ue?(ve=s.jsxs("div",{className:"min-w-0 space-y-0.5",children:[oe,ue]}),e[13]=oe,e[14]=ue,e[15]=ve):ve=e[15];const we=d.length>0&&s.jsx("div",{className:Se(_&&"cursor-grabbing"),children:s.jsxs(an,{sensors:se,collisionDetection:cn,onDragStart:G,onDragEnd:le,onDragCancel:he,children:[s.jsx(un,{items:F,strategy:fn,children:s.jsx("div",{className:"min-w-0 overflow-hidden rounded-xl border border-border/50 p-1.5",children:C.map(A=>{const D=d[A.index];if(D===void 0)return null;const Q=O(D,A.index),H=at(D,x);return s.jsx($r,{sortableId:A.id,labelText:Q,imageSrc:H,onOpen:()=>ne(A.index),onRemove:()=>W(A.index)},A.id)})})}),s.jsx(dn,{dropAnimation:null,children:ye?s.jsx("div",{className:"flex min-w-0 items-center gap-2.5 rounded-lg border border-border/60 bg-background px-2 py-2.5 shadow-lg ring-1 ring-border/60",children:s.jsx(Or,{labelText:ye,imageSrc:ae})}):null})]})});let ke;e[16]===Symbol.for("react.memo_cache_sentinel")?(ke=s.jsx(yn,{size:14}),e[16]=ke):ke=e[16];const be=S?"Add section":"Add item";let fe;e[17]!==U||e[18]!==be?(fe=s.jsxs("button",{type:"button",onClick:U,className:"flex w-full items-center justify-center gap-1.5 rounded-xl border border-dashed border-border/60 py-2.5 text-sm text-muted-foreground transition-colors hover:border-border hover:bg-muted/30",children:[ke,be]}),e[17]=U,e[18]=be,e[19]=fe):fe=e[19];let Te;return e[20]!==ve||e[21]!==we||e[22]!==fe?(Te=s.jsxs("div",{className:K,children:[ve,we,fe]}),e[20]=ve,e[21]=we,e[22]=fe,e[23]=Te):Te=e[23],Te}function Br(t){return t.id}function Er(t){const e=Z.c(44),{schema:n,value:r,onChange:i,path:l,label:o,breadcrumbPath:a,onBreadcrumbChange:c,meta:u,decofile:m,onSaveReferencedBlock:f,previewBaseUrl:y,onAddSectionItem:g,onRequestAddSection:b,sandbox:p}=t;let v;e[0]!==a?(v=a===void 0?[]:a,e[0]=a,e[1]=v):v=e[1];const h=v,[d,x]=te.useState(!1);let k;e[2]!==r?(k=r!=null&&typeof r=="object"&&!Array.isArray(r)?r:{},e[2]=r,e[3]=k):k=e[3];const S=k;if(!n.properties)return null;let T;e[4]!==l?(T=l.split(".").pop()??l,e[4]=l,e[5]=T):T=e[5];const N=T;let C;e[6]!==h||e[7]!==N||e[8]!==o||e[9]!==S||e[10]!==n?(C=Tr(N,o,n,S,h),e[6]=h,e[7]=N,e[8]=o,e[9]=S,e[10]=n,e[11]=C):C=e[11];const _=d||C,j=`${l}-fields`;let I;e[12]===Symbol.for("react.memo_cache_sentinel")?(I=()=>x(zr),e[12]=I):I=e[12];let R;e[13]!==_?(R=s.jsx("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors group-hover:text-accent-foreground",children:_?s.jsx(_t,{size:16}):s.jsx(It,{size:16})}),e[13]=_,e[14]=R):R=e[14];let B;e[15]!==o?(B=s.jsx("span",{className:"min-w-0 truncate text-sm font-medium",children:o}),e[15]=o,e[16]=B):B=e[16];let P;e[17]!==j||e[18]!==_||e[19]!==R||e[20]!==B?(P=s.jsxs("button",{type:"button","aria-expanded":_,"aria-controls":j,onClick:I,className:"group flex w-full min-w-0 items-center gap-2 rounded-md py-1.5 pr-2 text-left transition-colors hover:bg-accent hover:text-accent-foreground",children:[R,B]}),e[17]=j,e[18]=_,e[19]=R,e[20]=B,e[21]=P):P=e[21];let M;e[22]!==n.description?(M=n.description&&s.jsx("p",{className:"break-words pl-9 text-xs leading-normal text-muted-foreground",children:n.description}),e[22]=n.description,e[23]=M):M=e[23];let E;e[24]!==h||e[25]!==j||e[26]!==m||e[27]!==_||e[28]!==u||e[29]!==S||e[30]!==g||e[31]!==c||e[32]!==i||e[33]!==b||e[34]!==f||e[35]!==l||e[36]!==y||e[37]!==p||e[38]!==n?(E=_&&s.jsx("div",{id:j,className:"ml-3 min-w-0 max-w-full overflow-hidden border-l border-border/80 pl-5",children:s.jsx(Xe,{schema:n,value:S,onChange:i,basePath:l,breadcrumbPath:h,onBreadcrumbChange:c,meta:u,decofile:m,onSaveReferencedBlock:f,previewBaseUrl:y,onAddSectionItem:g,onRequestAddSection:b,sandbox:p})}),e[24]=h,e[25]=j,e[26]=m,e[27]=_,e[28]=u,e[29]=S,e[30]=g,e[31]=c,e[32]=i,e[33]=b,e[34]=f,e[35]=l,e[36]=y,e[37]=p,e[38]=n,e[39]=E):E=e[39];let O;return e[40]!==M||e[41]!==E||e[42]!==P?(O=s.jsxs("div",{className:"min-w-0 space-y-2",children:[P,M,E]}),e[40]=M,e[41]=E,e[42]=P,e[43]=O):O=e[43],O}function zr(t){return!t}function Pr(t){if(!t?.properties)return{};const e={};for(const[n,r]of Object.entries(t.properties))n.startsWith("__")||n==="@type"||(r.default!==void 0?e[n]=r.default:r.type==="boolean"?e[n]=!1:r.type==="string"?e[n]="":r.type==="number"||r.type==="integer"?e[n]=0:r.type==="object"&&(e[n]={}));return e}function Mr(t){const e=Z.c(3),{blockKey:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(In,{asChild:!0,children:s.jsxs("span",{className:"inline-flex shrink-0 items-center gap-1 rounded bg-global-section/14 px-1.5 py-0.5 text-[11px] font-medium text-global-section-fg dark:text-global-section-fg-dark",children:[s.jsx(_n,{size:11}),"Global"]})}),e[0]=r):r=e[0];let i;return e[1]!==n?(i=s.jsxs(Rn,{children:[r,s.jsxs(On,{side:"top",className:"max-w-[260px]",children:["Edits the saved block “",n,"”. Changes apply everywhere this loader is referenced on your site."]})]}),e[1]=n,e[2]=i):i=e[2],i}function Ur(t){const e=Z.c(28),{path:n,open:r,onOpenChange:i,title:l,nested:o,nestedBlockRef:a,globalBlockKey:c}=t,u=`${n}-loader-config`,m=a&&"ml-1";let f;e[0]!==m?(f=Se("rounded-lg border border-border/80 bg-muted/30",m),e[0]=m,e[1]=f):f=e[1];let y;e[2]!==i||e[3]!==r?(y=()=>i(!r),e[2]=i,e[3]=r,e[4]=y):y=e[4];let g;e[5]!==r?(g=s.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center text-muted-foreground transition-colors group-hover:text-foreground",children:r?s.jsx(_t,{size:16}):s.jsx(It,{size:16})}),e[5]=r,e[6]=g):g=e[6];let b;e[7]!==l?(b=s.jsx("span",{className:"truncate text-xs font-medium tracking-wide text-muted-foreground uppercase",children:l}),e[7]=l,e[8]=b):b=e[8];let p;e[9]!==c?(p=c&&s.jsx(Mr,{blockKey:c}),e[9]=c,e[10]=p):p=e[10];let v;e[11]!==b||e[12]!==p?(v=s.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[b,p]}),e[11]=b,e[12]=p,e[13]=v):v=e[13];let h;e[14]!==u||e[15]!==r||e[16]!==y||e[17]!==g||e[18]!==v?(h=s.jsxs("button",{type:"button","aria-expanded":r,"aria-controls":u,onClick:y,className:"group flex w-full min-w-0 items-center gap-2 rounded-lg px-3 py-2.5 text-left transition-colors hover:bg-accent/50",children:[g,v]}),e[14]=u,e[15]=r,e[16]=y,e[17]=g,e[18]=v,e[19]=h):h=e[19];let d;e[20]!==u||e[21]!==o||e[22]!==r?(d=r&&s.jsx("div",{id:u,className:"border-t border-border/60 px-4 pb-4 pt-3",children:s.jsx("div",{className:"border-l border-border/80 pl-4",children:o})}),e[20]=u,e[21]=o,e[22]=r,e[23]=d):d=e[23];let x;return e[24]!==f||e[25]!==h||e[26]!==d?(x=s.jsxs("div",{className:f,children:[h,d]}),e[24]=f,e[25]=h,e[26]=d,e[27]=x):x=e[27],x}function dt(t){const e=Z.c(35),{schema:n,value:r,onChange:i,path:l,label:o,breadcrumbPath:a,onBreadcrumbChange:c,meta:u,decofile:m,onSaveReferencedBlock:f,sandbox:y}=t,g=(n.anyOfRefs??[]).filter(Hr),b=m&&r?tr(r,m):null,p=b?.data??r,v=b?null:Rt(p),h=v??p,d=Hn(g,{savedBlockKey:b?.blockKey,editorValue:p}),x=d.length>0?Wn(p,d,b?.blockKey):d[0]?.resolveType??"",S=n.type==="block-ref"&&d.some(Kr);let T;e[0]!==o||e[1]!==l?(T=o??(l.includes(".")?l.split(".")[0]:l),e[0]=o,e[1]=l,e[2]=T):T=e[2];const N=T;let C;e[3]!==a?(C=a??[],e[3]=a,e[4]=C):C=e[4];const w=C,_=S&&w[0]===N?w.slice(1):w,j=S?$=>{c?.([N,...$])}:c,[I,R]=te.useState(x),[B,P]=te.useState(x);B!==x&&(P(x),R(x));const[M,E]=te.useState(()=>Yn(p,b?.blockKey));if(d.length>0){const $=I||x;let V;e[5]!==$?(V=z=>z.resolveType===$,e[5]=$,e[6]=V):V=e[6];const se=d.find(V),F=lt(p,u,se?.schema),L=qn(F??se?.schema??null,n.discriminatorKey),G=n.discriminatorKey,le=z=>{R(z);const oe=d.find(fe=>fe.resolveType===z),ue=lt(p,u,oe?.schema),ve=new Set(Object.keys((ue??oe?.schema)?.properties??{})),we=r!==null&&typeof r=="object"&&!Array.isArray(r)?r:{},ke=Object.fromEntries(Object.entries(we).filter(fe=>{const[Te]=fe;return ve.has(Te)})),be={...Pr(oe?.schema),...ke};if(G){const fe=oe?.discriminatorValue??z;i({...be,[G]:fe});return}if(Ee(z)){i(be);return}i({...be,__resolveType:z})};let J;e[7]!==$||e[8]!==G||e[9]!==i?(J=z=>{if(G||!Ee($)||z===null||typeof z!="object"||Array.isArray(z)){i(z);return}const{__resolveType:oe,...ue}=z;i(ue)},e[7]=$,e[8]=G,e[9]=i,e[10]=J):J=e[10];const he=J,ce=L?.properties?s.jsx(Xe,{schema:L,value:h,onChange:z=>{if(b&&f){f(b.blockKey,z);return}if(v){i({...p,section:z});return}he(z)},basePath:l,breadcrumbPath:_,onBreadcrumbChange:j,meta:u,decofile:m,onSaveReferencedBlock:f,sandbox:y}):null;let ie;e[11]!==l?(ie=l.includes("."),e[11]=l,e[12]=ie):ie=e[12];const ye=ie;let ae;e[13]!==o||e[14]!==l?(ae=s.jsx(me,{htmlFor:l,children:o}),e[13]=o,e[14]=l,e[15]=ae):ae=e[15];let K;e[16]===Symbol.for("react.memo_cache_sentinel")?(K=s.jsx(jt,{children:s.jsx(Nt,{placeholder:"Select..."})}),e[16]=K):K=e[16];let q;return e[17]!==n.description?(q=n.description&&s.jsx("p",{className:"text-xs text-muted-foreground",children:n.description}),e[17]=n.description,e[18]=q):q=e[18],s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"space-y-1.5",children:[ae,s.jsxs(kt,{value:$||void 0,onValueChange:le,children:[K,s.jsx(St,{children:d.map(Vr)})]}),q]}),ce&&(S?s.jsx(Ur,{path:l,open:M,onOpenChange:E,title:ye?"Configuration":"Loader configuration",nested:ce,nestedBlockRef:ye,globalBlockKey:b?.blockKey}):ce)]})}if(n.anyOfRefs&&n.anyOfRefs.length>0)return null;let O;e[19]!==o||e[20]!==l?(O=s.jsx(me,{htmlFor:l,children:o}),e[19]=o,e[20]=l,e[21]=O):O=e[21];const ne=r!=null?String(r):"";let re;e[22]!==i?(re=$=>i($.target.value),e[22]=i,e[23]=re):re=e[23];const X=n.description??"";let U;e[24]!==l||e[25]!==ne||e[26]!==re||e[27]!==X?(U=s.jsx("input",{id:l,type:"text",value:ne,onChange:re,className:"w-full rounded-md border bg-background px-3 py-1.5 text-sm",placeholder:X}),e[24]=l,e[25]=ne,e[26]=re,e[27]=X,e[28]=U):U=e[28];let W;e[29]!==n.description?(W=n.description&&s.jsx("p",{className:"text-xs text-muted-foreground",children:n.description}),e[29]=n.description,e[30]=W):W=e[30];let Y;return e[31]!==O||e[32]!==U||e[33]!==W?(Y=s.jsxs("div",{className:"space-y-1.5",children:[O,U,W]}),e[31]=O,e[32]=U,e[33]=W,e[34]=Y):Y=e[34],Y}function Vr(t){const e=t.title&&!t.title.includes("/")?t.title:Nn(t.resolveType)??qe(t.resolveType);return s.jsx(bt,{value:t.resolveType,children:e},t.resolveType)}function Kr(t){return t.resolveType.includes("/")&&!Ee(t.resolveType)}function Hr(t){return t.resolveType!==""}function Wr(t){if(!Array.isArray(t))return[];const e=[];for(const n of t)if(typeof n=="string")e.push({value:n,label:n});else if(n&&typeof n=="object"&&"value"in n){const r=n;e.push({value:String(r.value),label:typeof r.label=="string"?r.label:String(r.value),image:typeof r.image=="string"?r.image:void 0})}return e}async function qr(t,e,n){const r={};n&&(r.term=n);const l=`${t.replace(/\/+$/,"")}/deco/invoke/${e}`,o=await fetch(l,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(r)});if(!o.ok)throw new Error(`Failed to fetch dynamic options: ${o.status}`);const a=await o.json();return Wr(a)}function pt(t){const e=Z.c(8),{path:n,label:r,description:i}=t;let l;e[0]!==r||e[1]!==n?(l=s.jsx(me,{htmlFor:n,children:r}),e[0]=r,e[1]=n,e[2]=l):l=e[2];let o;e[3]!==i?(o=i&&s.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:i}),e[3]=i,e[4]=o):o=e[4];let a;return e[5]!==l||e[6]!==o?(a=s.jsxs("div",{className:"space-y-0.5",children:[l,o]}),e[5]=l,e[6]=o,e[7]=a):a=e[7],a}function Yr(t){const e=Z.c(71),{schema:n,value:r,onChange:i,path:l,label:o,sandbox:a}=t,c=n.options,u=a?.previewUrl,[m,f]=te.useState(!1),[y,g]=te.useState(""),[b,p]=te.useState(""),v=te.useRef(null);let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=F=>{g(F),v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{p(F)},300)},e[0]=h):h=e[0];const d=h,x=a?`${a.orgSlug}/${a.virtualMcpId}/${a.branch}`:"";let k;e[1]!==b||e[2]!==c||e[3]!==x?(k=Mt.sandboxInvoke(x,`dynamic-options:${c??""}:${b}`),e[1]=b,e[2]=c,e[3]=x,e[4]=k):k=e[4];let S;e[5]!==b||e[6]!==c||e[7]!==u?(S=()=>qr(u,c,b||void 0),e[5]=b,e[6]=c,e[7]=u,e[8]=S):S=e[8];const T=!!u&&!!c&&m;let N;e[9]!==k||e[10]!==S||e[11]!==T?(N={queryKey:k,queryFn:S,enabled:T,staleTime:6e4,retry:1},e[9]=k,e[10]=S,e[11]=T,e[12]=N):N=e[12];const C=Pt(N);let w;e[13]!==C.data?(w=C.data??[],e[13]=C.data,e[14]=w):w=e[14];const _=w,j=typeof r=="string"?r:"";let I;if(e[15]!==j||e[16]!==_){let F;e[18]!==j?(F=L=>L.value===j,e[18]=j,e[19]=F):F=e[19],I=_.find(F),e[15]=j,e[16]=_,e[17]=I}else I=e[17];const R=I;if(!u||!c){let F;e[20]!==o||e[21]!==l||e[22]!==n.description?(F=s.jsx(pt,{path:l,label:o,description:n.description}),e[20]=o,e[21]=l,e[22]=n.description,e[23]=F):F=e[23];let L;e[24]!==i?(L=J=>i(J.target.value),e[24]=i,e[25]=L):L=e[25];let G;e[26]!==j||e[27]!==l||e[28]!==L?(G=s.jsx(xe,{id:l,type:"text",value:j,onChange:L}),e[26]=j,e[27]=l,e[28]=L,e[29]=G):G=e[29];let le;return e[30]!==G||e[31]!==F?(le=s.jsxs("div",{className:"space-y-2",children:[F,G]}),e[30]=G,e[31]=F,e[32]=le):le=e[32],le}let B;e[33]!==o||e[34]!==l||e[35]!==n.description?(B=s.jsx(pt,{path:l,label:o,description:n.description}),e[33]=o,e[34]=l,e[35]=n.description,e[36]=B):B=e[36];let P;e[37]!==j||e[38]!==R?(P=R?s.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[R.image&&s.jsx("img",{src:R.image,alt:"",referrerPolicy:"no-referrer",className:"h-6 w-6 shrink-0 rounded object-cover"}),s.jsx("span",{className:"truncate",children:R.label??R.value})]}):j?s.jsx("span",{className:"truncate",children:j}):s.jsx("span",{className:"text-muted-foreground",children:"Select..."}),e[37]=j,e[38]=R,e[39]=P):P=e[39];let M;e[40]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(Fn,{className:"size-4 shrink-0 opacity-50"}),e[40]=M):M=e[40];let E;e[41]!==m||e[42]!==P?(E=s.jsx(gt,{asChild:!0,children:s.jsxs(Re,{variant:"outline",role:"combobox","aria-expanded":m,className:"h-10 w-full justify-between font-normal",children:[P,M]})}),e[41]=m,e[42]=P,e[43]=E):E=e[43];let O;e[44]===Symbol.for("react.memo_cache_sentinel")?(O={width:"var(--radix-popover-trigger-width)"},e[44]=O):O=e[44];let ne;e[45]!==y?(ne=s.jsx(Ln,{placeholder:"Search...",className:"h-9",value:y,onValueChange:d}),e[45]=y,e[46]=ne):ne=e[46];const re=C.isLoading?"Loading...":"No results found.";let X;e[47]!==re?(X=s.jsx(Dn,{children:re}),e[47]=re,e[48]=X):X=e[48];let U;if(e[49]!==j||e[50]!==i||e[51]!==_){let F;e[53]!==j||e[54]!==i?(F=L=>s.jsxs(Bn,{value:L.value,onSelect:()=>{i(L.value===j?"":L.value),f(!1)},children:[s.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[L.image&&s.jsx("img",{src:L.image,alt:"",referrerPolicy:"no-referrer",className:"h-9 w-9 shrink-0 rounded object-cover"}),s.jsx("span",{className:"truncate",children:L.label??L.value})]}),s.jsx($n,{className:Se("ml-auto size-4 shrink-0",j===L.value?"opacity-100":"opacity-0")})]},L.value),e[53]=j,e[54]=i,e[55]=F):F=e[55],U=_.map(F),e[49]=j,e[50]=i,e[51]=_,e[52]=U}else U=e[52];let W;e[56]!==U?(W=s.jsx(En,{children:U}),e[56]=U,e[57]=W):W=e[57];let Y;e[58]!==X||e[59]!==W?(Y=s.jsxs(zn,{children:[X,W]}),e[58]=X,e[59]=W,e[60]=Y):Y=e[60];let $;e[61]!==ne||e[62]!==Y?($=s.jsx(xt,{className:"p-0",style:O,children:s.jsxs(Pn,{shouldFilter:!1,children:[ne,Y]})}),e[61]=ne,e[62]=Y,e[63]=$):$=e[63];let V;e[64]!==m||e[65]!==E||e[66]!==$?(V=s.jsxs(vt,{open:m,onOpenChange:f,children:[E,$]}),e[64]=m,e[65]=E,e[66]=$,e[67]=V):V=e[67];let se;return e[68]!==V||e[69]!==B?(se=s.jsxs("div",{className:"space-y-2",children:[B,V]}),e[68]=V,e[69]=B,e[70]=se):se=e[70],se}function mt(t){const e=Z.c(2),{ext:n}=t;if(!n)return null;let r;return e[0]!==n?(r=s.jsx("span",{className:"shrink-0 rounded bg-muted px-1.5 py-0.5 text-[10px] font-medium uppercase text-muted-foreground",children:n}),e[0]=n,e[1]=r):r=e[1],r}function Gr(t){try{const e=new URL(t).pathname;return decodeURIComponent(e.split("/").pop()??t)}catch{return t.split("/").pop()??t}}function Qr(t){const e=t.lastIndexOf(".");return e<0||e===t.length-1?"":t.slice(e+1).toLowerCase()}function ht(t){const e=Z.c(79),{schema:n,value:r,onChange:i,path:l,label:o,sandbox:a}=t,c=n.format==="video-uri",u=At(r),[m,f]=te.useState(!1),[y,g]=te.useState(!1),b=u?Gr(u):"",p=b?Qr(b):"",v=Un(),h=Tn();let d;e[0]!==v.data?.configs?(d=v.data?.configs??[],e[0]=v.data?.configs,e[1]=d):d=e[1];const x=a?.siteSlug;let k;e[2]!==d||e[3]!==x?(k=Cn(d,x),e[2]=d,e[3]=x,e[4]=k):k=e[4];const S=k;let T;e[5]!==v.data?.configs||e[6]!==S?(T=function(){if(S)return S.id;const K=v.data?.configs??[];if(K.length===1)return K[0].id;if(K.length===0)return null;const q=typeof window<"u"?window.localStorage.getItem(wn):null;return K.some(z=>z.id===q)?q:null},e[5]=v.data?.configs,e[6]=S,e[7]=T):T=e[7];const N=T;let C;e[8]!==c||e[9]!==i||e[10]!==N||e[11]!==f||e[12]!==h?(C=async function(K){if(!K)return;let q=Array.from(K);if(q.length===0)return;if(c&&(q=q.filter(Zr),q.length===0)){Ae.error("Please drop a video file (mp4, webm, …).");return}const z=N();if(!z){f(!0);return}try{const oe=await h.mutateAsync({configId:z,file:q[0]});i(oe.publicUrl),q.length>1&&Ae.info(`Uploaded ${q[0].name}; extra files were ignored (single-select field).`)}catch(oe){const ue=oe;Ae.error(ue instanceof Error?ue.message:"Upload failed")}},e[8]=c,e[9]=i,e[10]=N,e[11]=f,e[12]=h,e[13]=C):C=e[13];const w=C;let _;e[14]!==g?(_=function(K){K.preventDefault(),K.dataTransfer.types.includes("Files")&&g(!0)},e[14]=g,e[15]=_):_=e[15];const j=_;let I;e[16]!==g?(I=function(K){K.currentTarget===K.target&&g(!1)},e[16]=g,e[17]=I):I=e[17];const R=I;let B;e[18]!==w||e[19]!==g?(B=function(K){K.preventDefault(),g(!1),w(K.dataTransfer.files)},e[18]=w,e[19]=g,e[20]=B):B=e[20];const P=B;let M;e[21]!==o||e[22]!==l?(M=s.jsx(me,{htmlFor:l,className:"text-muted-foreground",children:o}),e[21]=o,e[22]=l,e[23]=M):M=e[23];let E;e[24]!==n.description?(E=n.description&&s.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:n.description}),e[24]=n.description,e[25]=E):E=e[25];let O;e[26]!==E||e[27]!==M?(O=s.jsxs("div",{className:"min-w-0 space-y-0.5",children:[M,E]}),e[26]=E,e[27]=M,e[28]=O):O=e[28];const ne=y&&"border-primary ring-2 ring-primary/30",re=h.isPending&&"pointer-events-none opacity-60";let X;e[29]!==ne||e[30]!==re?(X=Se("group relative w-full overflow-hidden rounded-xl border border-border/60 bg-muted/30 transition",ne,re),e[29]=ne,e[30]=re,e[31]=X):X=e[31];let U;e[32]!==p||e[33]!==b||e[34]!==c||e[35]!==f||e[36]!==u||e[37]!==h.isPending?(U=u?c?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"relative h-40 w-full overflow-hidden bg-black",children:s.jsx("video",{src:u,preload:"metadata",className:"h-full w-full object-contain"},u)}),s.jsxs("div",{className:"flex items-center gap-2 border-t border-border/60 bg-background/50 px-3 py-2",children:[s.jsx(et,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("p",{className:"min-w-0 flex-1 truncate text-xs text-muted-foreground",children:b}),s.jsx(mt,{ext:p})]})]}):s.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5",children:[s.jsx("div",{className:"flex size-10 shrink-0 items-center justify-center rounded-md bg-background",children:s.jsx(tt,{size:18,className:"text-muted-foreground"})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"truncate text-sm font-medium",children:b}),s.jsx("p",{className:"truncate text-xs text-muted-foreground",children:u})]}),s.jsx(mt,{ext:p})]}):s.jsxs("button",{type:"button",onClick:()=>f(!0),className:"flex w-full flex-col items-center justify-center gap-2 py-8 text-sm text-muted-foreground hover:bg-muted/60 hover:text-foreground",children:[c?s.jsx(et,{size:20}):s.jsx(tt,{size:20}),s.jsx("span",{className:"text-sm font-medium",children:h.isPending?"Uploading…":c?"Drop a video here or click to browse":"Drop a file or click to browse"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Up to 100 MB"})]}),e[32]=p,e[33]=b,e[34]=c,e[35]=f,e[36]=u,e[37]=h.isPending,e[38]=U):U=e[38];let W;e[39]!==y?(W=y&&s.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-primary/10 backdrop-blur-[1px]",children:s.jsx("span",{className:"rounded-md bg-background px-3 py-1.5 text-xs font-medium shadow",children:"Drop to upload"})}),e[39]=y,e[40]=W):W=e[40];let Y;e[41]!==R||e[42]!==j||e[43]!==P||e[44]!==X||e[45]!==U||e[46]!==W?(Y=s.jsxs("div",{onDragOver:j,onDragLeave:R,onDrop:P,className:X,children:[U,W]}),e[41]=R,e[42]=j,e[43]=P,e[44]=X,e[45]=U,e[46]=W,e[47]=Y):Y=e[47];let $;e[48]!==i?($=ae=>i(ae.target.value),e[48]=i,e[49]=$):$=e[49];let V;e[50]!==l||e[51]!==u||e[52]!==$?(V=s.jsx(xe,{id:l,type:"url",value:u,onChange:$,placeholder:"https://...",className:"h-9 min-w-0 flex-1"}),e[50]=l,e[51]=u,e[52]=$,e[53]=V):V=e[53];let se;e[54]!==f?(se=()=>f(!0),e[54]=f,e[55]=se):se=e[55];let F;e[56]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(Mn,{size:14}),e[56]=F):F=e[56];const L=u?"Replace":"Browse";let G;e[57]!==se||e[58]!==L?(G=s.jsxs(Re,{type:"button",variant:"outline",size:"sm",onClick:se,className:"h-9 shrink-0",children:[F,L]}),e[57]=se,e[58]=L,e[59]=G):G=e[59];let le;e[60]!==i||e[61]!==u?(le=u&&s.jsx(Re,{type:"button",variant:"ghost",size:"sm",onClick:()=>i(""),className:"h-9 shrink-0","aria-label":"Remove file",children:s.jsx(Ct,{size:14})}),e[60]=i,e[61]=u,e[62]=le):le=e[62];let J;e[63]!==V||e[64]!==G||e[65]!==le?(J=s.jsxs("div",{className:"flex w-full min-w-0 items-center gap-2",children:[V,G,le]}),e[63]=V,e[64]=G,e[65]=le,e[66]=J):J=e[66];let he;e[67]!==i?(he=ae=>i(ae),e[67]=i,e[68]=he):he=e[68];const ce=S?.id??null;let ie;e[69]!==m||e[70]!==f||e[71]!==he||e[72]!==ce?(ie=s.jsx(An,{open:m,onOpenChange:f,mode:"any",onSelect:he,lockedConfigId:ce}),e[69]=m,e[70]=f,e[71]=he,e[72]=ce,e[73]=ie):ie=e[73];let ye;return e[74]!==O||e[75]!==Y||e[76]!==J||e[77]!==ie?(ye=s.jsxs("div",{className:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)] gap-2",children:[O,Y,J,ie]}),e[74]=O,e[75]=Y,e[76]=J,e[77]=ie,e[78]=ye):ye=e[78],ye}function Zr(t){return t.type.startsWith("video/")}const Xr="website/loaders/secret.ts";function Ie(t){if(!t||typeof t!="object"||Array.isArray(t))return!1;const e=t.__resolveType;return typeof e=="string"&&(e.endsWith("/secret.ts")||e.includes("loaders/secret"))}function Jr(){return{__resolveType:Xr,name:"",encrypted:""}}function es(t){const{value:e,...n}=t;return n}function He(t){const e=Z.c(45),{schema:n,value:r,onChange:i,label:l,path:o}=t;if(typeof r=="string"||r==null&&!Ie(r)){const N=typeof r=="string"?r:"";let C;e[0]!==l||e[1]!==o?(C=s.jsx(me,{htmlFor:o,className:"text-sm font-medium",children:l}),e[0]=l,e[1]=o,e[2]=C):C=e[2];let w;e[3]!==n.description?(w=n.description&&s.jsx("p",{className:"text-xs text-muted-foreground",children:n.description}),e[3]=n.description,e[4]=w):w=e[4];let _;e[5]!==i?(_=R=>i(R.target.value),e[5]=i,e[6]=_):_=e[6];let j;e[7]!==o||e[8]!==N||e[9]!==_?(j=s.jsx(xe,{id:o,type:"password",value:N,autoComplete:"new-password",autoCorrect:"off",spellCheck:!1,placeholder:"Secret value",onChange:_,className:"h-10"}),e[7]=o,e[8]=N,e[9]=_,e[10]=j):j=e[10];let I;return e[11]!==C||e[12]!==w||e[13]!==j?(I=s.jsxs("div",{className:"space-y-2",children:[C,w,j]}),e[11]=C,e[12]=w,e[13]=j,e[14]=I):I=e[14],I}let a;e[15]!==r?(a=Ie(r)?r:Jr(),e[15]=r,e[16]=a):a=e[16];const c=a,u=typeof c.name=="string"?c.name:"",m=typeof c.encrypted=="string"&&c.encrypted,f=`${o}-name`;let y;e[17]!==l||e[18]!==f?(y=s.jsx(me,{htmlFor:f,className:"text-sm font-medium",children:l}),e[17]=l,e[18]=f,e[19]=y):y=e[19];let g;e[20]!==n.description?(g=n.description&&s.jsx("p",{className:"text-xs text-muted-foreground",children:n.description}),e[20]=n.description,e[21]=g):g=e[21];const b=`${o}-name`;let p;e[22]!==c||e[23]!==i?(p=N=>i({...c,name:N.target.value}),e[22]=c,e[23]=i,e[24]=p):p=e[24];let v;e[25]!==u||e[26]!==b||e[27]!==p?(v=s.jsx(xe,{id:b,value:u,placeholder:"Secret name",onChange:p,className:"h-10"}),e[25]=u,e[26]=b,e[27]=p,e[28]=v):v=e[28];const h=`${o}-value`,d=m?"Leave blank to keep current value":"Secret value";let x;e[29]!==c||e[30]!==m||e[31]!==i?(x=N=>{const C=N.target.value;if(!C){i(m?es(c):c);return}i({...c,value:C})},e[29]=c,e[30]=m,e[31]=i,e[32]=x):x=e[32];let k;e[33]!==x||e[34]!==h||e[35]!==d?(k=s.jsx(xe,{id:h,type:"password",autoComplete:"new-password",autoCorrect:"off",spellCheck:!1,placeholder:d,onChange:x,className:"h-10"}),e[33]=x,e[34]=h,e[35]=d,e[36]=k):k=e[36];let S;e[37]!==m?(S=m&&s.jsx("p",{className:"text-xs text-muted-foreground",children:"A secret value is stored."}),e[37]=m,e[38]=S):S=e[38];let T;return e[39]!==k||e[40]!==S||e[41]!==y||e[42]!==g||e[43]!==v?(T=s.jsxs("div",{className:"space-y-2",children:[y,g,v,k,S]}),e[39]=k,e[40]=S,e[41]=y,e[42]=g,e[43]=v,e[44]=T):T=e[44],T}function ts(t){const e=t.length>0?t[0]:void 0;if(e==null||typeof e!="object"||Array.isArray(e))return;const n={};for(const[r,i]of Object.entries(e))r.startsWith("__")||(typeof i=="string"?n[r]={type:"string"}:typeof i=="number"?n[r]={type:"number"}:typeof i=="boolean"&&(n[r]={type:"boolean"}));return Object.keys(n).length>0?{type:"object",properties:n}:void 0}const ns=new Set(["__resolveType","@type"]);function rs(t){if(t.type!=="block-ref"||!t.anyOfRefs?.length||t.anyOfRefs.length!==1)return null;const e=t.anyOfRefs[0].resolveType;return e.endsWith("/multivariate/image.ts")?"image":e.endsWith("/multivariate/video.ts")||e.endsWith("/multivariate/file.ts")?"file":null}function ss(t){if(Me(t))for(const e of t.anyOfRefs??[]){const i=e.schema?.properties?.variants?.items?.properties?.value;if(i?.type==="array"&&i.items)return i.items}}function yt(t){if(t.type==="array"&&t.items)return t;const e=t.items??ss(t);return e?{...t,type:"array",items:e}:null}function is(t,e){if(e!==void 0)return e;switch(t){case"string":return"";case"number":case"integer":return 0;case"boolean":return!1;case"array":return[];case"object":return{};default:return null}}function zt(t){const{schema:e,value:n}=t;if(it(n)){const o=Sn(n),a=yt(e);if(o!==null&&a)return s.jsx(Be,{...t,schema:a,value:o,onChange:c=>t.onChange(kn(n,c))},t.path)}if(Array.isArray(n)&&e.type==="block-ref"&&Me(e)){const o=yt(e);if(o)return s.jsx(Be,{...t,schema:o,value:n,onChange:t.onChange},t.path)}if(Array.isArray(n)&&!it(n)&&e.type==="block-ref"){const o=ts(n);if(o){const a={...e,type:"array",items:o};return s.jsx(Be,{...t,schema:a,value:n,onChange:t.onChange},t.path)}}if(e.type==="block-ref"||n!==null&&typeof n=="object"&&!Array.isArray(n)&&typeof n.__resolveType=="string"&&e.anyOfRefs){const o=rs(e);return o==="image"?s.jsx(ot,{...t},t.path):o==="file"?s.jsx(ht,{...t},t.path):e.anyOfRefs?s.jsx(dt,{...t},t.path):null}if(e.format==="image-uri")return s.jsx(ot,{...t},t.path);if(e.format==="file-uri"||e.format==="video-uri")return s.jsx(ht,{...t},t.path);if(e.format==="dynamic-options"&&e.options)return s.jsx(Yr,{...t},t.path);if(e.enum&&e.enum.length>0)return s.jsx(br,{...t},t.path);if(e.type==="anyOf")return s.jsx(dt,{...t},t.path);if(Ie(n)||e.format==="password"||n==null&&e.format==="password")return s.jsx(He,{...t},t.path);const r=n??is(e.type,e.default);if(r==null)return Ie(n)?s.jsx(He,{...t},t.path):null;if(Ie(r))return s.jsx(He,{...t,value:r},t.path);const i={...t,value:r},l=n==null?e.type??typeof r:Array.isArray(r)?"array":typeof r;if(l==="array"||Array.isArray(r))return s.jsx(Be,{...i},t.path);switch(l){case"boolean":return s.jsx(yr,{...i},t.path);case"number":case"integer":return s.jsx(hr,{...i},t.path);case"string":{const o=e.format;return o==="color-input"?s.jsx(Le,{...i},t.path):o==="textarea"||o==="rich-text"||o==="html"?s.jsx(Le,{...i},t.path):s.jsx(Le,{...i},t.path)}case"object":return r!==null&&typeof r=="object"&&!Array.isArray(r)?s.jsx(Er,{...i},t.path):null;default:return s.jsx(Le,{...i},t.path)}}function Xe(t){const e=Z.c(16),{schema:n,value:r,onChange:i,basePath:l,breadcrumbPath:o,onBreadcrumbChange:a,meta:c,decofile:u,onSaveReferencedBlock:m,previewBaseUrl:f,onAddSectionItem:y,onRequestAddSection:g,sandbox:b}=t;let p,v;if(e[0]!==l||e[1]!==u||e[2]!==c||e[3]!==y||e[4]!==a||e[5]!==i||e[6]!==g||e[7]!==m||e[8]!==f||e[9]!==b||e[10]!==n.properties||e[11]!==o||e[12]!==r){v=Symbol.for("react.early_return_sentinel");e:{const h=o===void 0?[]:o,d=n.properties;if(!d){v=null;break e}const x=r!=null&&typeof r=="object"&&!Array.isArray(r)?r:{},k=Object.keys(d).filter(j=>!ns.has(j)&&d[j]?.hidden!==!0);if(k.length===0){let j;e[15]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:"No editable fields on this section."}),e[15]=j):j=e[15],v=j;break e}const S=(j,I)=>{i({...x,[j]:I})},T=typeof x.__resolveType=="string"?x.__resolveType:void 0,N=h.length>0?kr(k,d,x,h):null,C=N?d[N]:null,w=N&&C?[N]:k,_=N&&C?Nr(N,C,h):h;p=s.jsx("div",{className:"min-w-0 space-y-6",children:w.map(j=>{const I=d[j];if(!I)return null;const R=l?`${l}.${j}`:j,B=_e(j,I);return zt({schema:I,value:x[j],onChange:P=>S(j,P),path:R,label:B,breadcrumbPath:_,onBreadcrumbChange:a,meta:c,decofile:u,onSaveReferencedBlock:m,containerResolveType:T,previewBaseUrl:f,onAddSectionItem:y,onRequestAddSection:g,sandbox:b})})})}e[0]=l,e[1]=u,e[2]=c,e[3]=y,e[4]=a,e[5]=i,e[6]=g,e[7]=m,e[8]=f,e[9]=b,e[10]=n.properties,e[11]=o,e[12]=r,e[13]=p,e[14]=v}else p=e[13],v=e[14];return v!==Symbol.for("react.early_return_sentinel")?v:p}export{Xe as S,zt as a,Ls as b,Le as c,Ge as r,Gn as s,Fs as u};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BwUiqOJ3.js","assets/index-C3gL9St4.js","assets/index-D1gOoljU.css","assets/XCircle-CCiKaJ__.js","assets/CheckCircle-DTbDatzD.js","assets/Settings02-By0Jzp86.js","assets/use-mcp-client-DYJrfczK.js","assets/auth-RitCYkp6.js","assets/useInfiniteQuery-YHehADCx.js","assets/use-infinite-scroll-Cj-XExfy.js","assets/studio-tools-B1vmC7k4.js","assets/badge-CuCfPx-y.js","assets/input-BvSXiwAq.js","assets/dropdown-menu-B4AhYSKY.js","assets/ChevronUp-BNOOOsT2.js","assets/ChevronRight-BdMquS3m.js","assets/DotsVertical-DQ-WKmA2.js","assets/table-Borl2aRc.js","assets/toggle-group-Cn5J5q3D.js","assets/use-view-mode-BCnWJZTf.js","assets/tooltip-D9KNvVvr.js","assets/FilterLines-DCvNnP3i.js","assets/Globe01-C7fVaUrg.js","assets/SearchMd-CjaRzuTt.js","assets/dialog-jhtlYWQH.js","assets/X-BL2gdXEj.js","assets/AlertCircle-DhaQx9Mx.js","assets/Upload01-CJqoFPBG.js","assets/alert-dialog-C20YoJ0a.js","assets/card-yVmBUFAg.js","assets/Trash01-Cib_Sg7t.js","assets/label-vllYe6cM.js","assets/select-gQvIO328.js","assets/ChevronDown-6sFYQ_lK.js","assets/switch-BH90tU73.js","assets/textarea-BVXgXW3B.js","assets/checkbox-BMArZ_ix.js","assets/Eye-B4uYcIta.js","assets/LinkExternal01-iioOg4ap.js","assets/use-copy-BGWnHO-M.js","assets/Key01-B-9ep-9Z.js","assets/Plus-J1K3Rh3s.js","assets/mcp-oauth-BswvczAL.js","assets/Play-DXtyMrcP.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{e as m,f as n,g as c,j as t,l as f,r as l,ak as p}from"./index-C3gL9St4.js";import{R as u}from"./require-capability-CHNIB1jg.js";import"./use-capability-BgNNCaLI.js";import"./access-gate-DFiTys6s.js";import"./capability-load-error-gogxAwFW.js";const g=l.lazy(()=>p(()=>import("./registry-layout-BwUiqOJ3.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])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./use-infinite-scroll-Cj-XExfy.js";import{cH as i}from"./index-C3gL9St4.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-Cj-XExfy.js";import{cH as u,az as n}from"./index-C3gL9St4.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|