decocms 3.69.0 → 3.70.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-Dnqz3IxM.js → AlertCircle-CPhjAdzy.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-B2NXgTf2.js → ArrowUpRight-ByULm16q.js} +1 -1
- package/dist/client/assets/{CheckCircle-D9OslXZP.js → CheckCircle-f5gZcaGs.js} +1 -1
- package/dist/client/assets/{ChevronDown-BldydMJ0.js → ChevronDown-DEax0m8J.js} +1 -1
- package/dist/client/assets/{ChevronLeft-CXmppBJO.js → ChevronLeft-BNIg0E5Q.js} +1 -1
- package/dist/client/assets/{ChevronRight-BsknZQE_.js → ChevronRight-C3K9gEKE.js} +1 -1
- package/dist/client/assets/{ChevronUp-CjDXfs3K.js → ChevronUp-k8vE0jpp.js} +1 -1
- package/dist/client/assets/{DotsVertical-Ci1mVPsb.js → DotsVertical-BMWCYHTN.js} +1 -1
- package/dist/client/assets/{Eye-DifA9NHq.js → Eye-CFgk5O7d.js} +1 -1
- package/dist/client/assets/{FilterLines-CV07u96M.js → FilterLines-D4i7TeOP.js} +1 -1
- package/dist/client/assets/{Globe01-CMUrlGmF.js → Globe01-DhUQ5HNX.js} +1 -1
- package/dist/client/assets/{Globe04-BplUDurZ.js → Globe04-CzcwlKYt.js} +1 -1
- package/dist/client/assets/{HardDrive-B6V7BYZB.js → HardDrive-CdAsICPa.js} +1 -1
- package/dist/client/assets/{Key01-DGn_JEBu.js → Key01-BDydLAZy.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BI32Ru47.js → LayoutLeft-CiWu8qBT.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DwIqUvLe.js → LinkExternal01-DvInJfCe.js} +1 -1
- package/dist/client/assets/{Monitor01-C-tOv611.js → Monitor01-DwCf4abV.js} +1 -1
- package/dist/client/assets/{Palette-pjBymHRy.js → Palette-COeRpWyL.js} +1 -1
- package/dist/client/assets/{Play-BEuZCxsN.js → Play-BfAmSLXY.js} +1 -1
- package/dist/client/assets/{Plus-DHJbi1i9.js → Plus-C1_ruIfW.js} +1 -1
- package/dist/client/assets/{SearchMd-yvCGxslh.js → SearchMd-DJ2wt73y.js} +1 -1
- package/dist/client/assets/{Settings02-BcW_Yd93.js → Settings02-xC8_pyoX.js} +1 -1
- package/dist/client/assets/{Shield01-DXFrycnj.js → Shield01-IdxP145L.js} +1 -1
- package/dist/client/assets/{Star01-DxJIcjLz.js → Star01-BoVF12Xx.js} +1 -1
- package/dist/client/assets/{Stars01-Dr_rOBxK.js → Stars01-BXoy7DLH.js} +1 -1
- package/dist/client/assets/{Stars02-CB3UMWzf.js → Stars02-BN7irakH.js} +1 -1
- package/dist/client/assets/{Sun-CTchQz03.js → Sun-D7p5-rHi.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-Ca_h3hG5.js → SwitchHorizontal01-gtJNQfFu.js} +1 -1
- package/dist/client/assets/{Tool01-B4m3Gnpd.js → Tool01-XeWWEM02.js} +1 -1
- package/dist/client/assets/{Trash01-BDNQcRq9.js → Trash01-Dv2bkB3B.js} +1 -1
- package/dist/client/assets/{Upload01-CuyZwIAy.js → Upload01-D4ujwkxA.js} +1 -1
- package/dist/client/assets/{User01-kj3Bxvgl.js → User01-4ybEpVge.js} +1 -1
- package/dist/client/assets/{Users01-DM4FmEoT.js → Users01-B32j0dPN.js} +1 -1
- package/dist/client/assets/{Users03-CJ4lkyfr.js → Users03-8tkacGp5.js} +1 -1
- package/dist/client/assets/{X-Botvp-t_.js → X-XfDufvpq.js} +1 -1
- package/dist/client/assets/{XCircle-CpovmLEO.js → XCircle-DA_NLmoN.js} +1 -1
- package/dist/client/assets/{XClose-CnYr1LOo.js → XClose-C3jOtT-R.js} +1 -1
- package/dist/client/assets/{Zap-8NdOr1pq.js → Zap-JBZrSnLL.js} +1 -1
- package/dist/client/assets/{ZapSquare-ChOMpHGM.js → ZapSquare-CxtarS5X.js} +1 -1
- package/dist/client/assets/{ZoomOut-DYeUJTmS.js → ZoomOut-BLdVdOct.js} +1 -1
- package/dist/client/assets/{access-gate-lRgnLhCg.js → access-gate-O6D6hWrf.js} +1 -1
- package/dist/client/assets/{add-section-modal-CZwFVJh7.js → add-section-modal-COHza967.js} +1 -1
- package/dist/client/assets/{agent-icon-B1KjkGhC.js → agent-icon-2IzCfMt4.js} +1 -1
- package/dist/client/assets/{agents-list-BeGasDr4.js → agents-list-AgDyERee.js} +1 -1
- package/dist/client/assets/{ai-providers-DhEaZvB4.js → ai-providers-BRHYrStB.js} +1 -1
- package/dist/client/assets/{alert-DVl9GMhN.js → alert-Db4A40j9.js} +1 -1
- package/dist/client/assets/{alert-dialog-DvJDYQsM.js → alert-dialog-Cmw7yEK3.js} +1 -1
- package/dist/client/assets/app-editor-DxXI2JZX.js +1 -0
- package/dist/client/assets/{auth-DA6X7KBB.js → auth-CTqVB4IS.js} +1 -1
- package/dist/client/assets/{auth-catchall-BljhiRu2.js → auth-catchall-Brw-wAgT.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DeC-35_z.js → auth-split-layout-Dr_HdgZm.js} +1 -1
- package/dist/client/assets/{automation-list-row-BIiojY8I.js → automation-list-row-B-h0vNXd.js} +1 -1
- package/dist/client/assets/{automation-runs-CHVaaxN6.js → automation-runs-BhO4xZsY.js} +1 -1
- package/dist/client/assets/{automations-BZ212IOj.js → automations-D1B0EqR4.js} +1 -1
- package/dist/client/assets/{avatar-D7wKrjgH.js → avatar-peV5o6WX.js} +1 -1
- package/dist/client/assets/{badge-Rj4w6Y9D.js → badge-BZkDCIOE.js} +1 -1
- package/dist/client/assets/{block-document-Dr1GbIJR.js → block-document-DotLcLXO.js} +1 -1
- package/dist/client/assets/{brand-context-BHLNO4fC.js → brand-context-uN8jI8xC.js} +1 -1
- package/dist/client/assets/{buckets-C3GJftau.js → buckets-BdGXs4KO.js} +1 -1
- package/dist/client/assets/{calendar-BETEvsL1.js → calendar-B7Dh7RAA.js} +1 -1
- package/dist/client/assets/{capability-load-error-Caduk_d2.js → capability-load-error-BJCCKmds.js} +1 -1
- package/dist/client/assets/{card-BtNxdFil.js → card-C2sSM-Le.js} +1 -1
- package/dist/client/assets/category-editor-Bz_lQ2TE.js +1 -0
- package/dist/client/assets/{chat-context-B_U1gcun.js → chat-context-B3aQdnCo.js} +1 -1
- package/dist/client/assets/{checkbox-CzoSEbjC.js → checkbox-Bx3S96Y8.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BaHruqex.js → cli-auth-success-_zFviGkP.js} +1 -1
- package/dist/client/assets/{collection-detail-Dlkc-Hxo.js → collection-detail-D8M6PlzO.js} +1 -1
- package/dist/client/assets/{collection-display-button-4X_RKgcc.js → collection-display-button-DHljb2lz.js} +1 -1
- package/dist/client/assets/{collection-search-BSHmVsv0.js → collection-search-K6lqqQFY.js} +1 -1
- package/dist/client/assets/{collection-tabs-CghGabs6.js → collection-tabs-CFsxwAyi.js} +1 -1
- package/dist/client/assets/{command-CYqVDIDi.js → command-okvQdmbU.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-Cq5se3ri.js → connect-desktop-dialog-Cr2QVwup.js} +1 -1
- package/dist/client/assets/{connection-card-CzT4sqi7.js → connection-card-PMR-7_mJ.js} +1 -1
- package/dist/client/assets/{connection-detail-BCjmmJh1.js → connection-detail-DqkZuzth.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CuaSwKDp.js → connection-form-helpers-D0kGxihY.js} +1 -1
- package/dist/client/assets/{connections-BEh7d4ax.js → connections-vK8Hpcgk.js} +1 -1
- package/dist/client/assets/{context-menu-CtPFsuQw.js → context-menu-Bwr45ABt.js} +1 -1
- package/dist/client/assets/{decopilot-Bw9nv9Fa.js → decopilot-CZ4O1Mkt.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DdZSTixQ.js → decopilot-sse-pool-DYYweec9.js} +1 -1
- package/dist/client/assets/{dialog-BMBVdX8K.js → dialog-BxPbOvQB.js} +1 -1
- package/dist/client/assets/{domain-settings-GHKCO0j2.js → domain-settings-BL7faBG3.js} +1 -1
- package/dist/client/assets/{drawer-TLQRWcN-.js → drawer-iUEgRU-6.js} +1 -1
- package/dist/client/assets/{dropdown-menu-gXn3xVef.js → dropdown-menu-DdGNF14G.js} +1 -1
- package/dist/client/assets/{empty-state-SvMp_sYN.js → empty-state-DBEkUTru.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BsbTS0uC.js → extract-connection-data-BRqbgUe3.js} +1 -1
- package/dist/client/assets/{file-explorer-C5eBRtME.js → file-explorer-NXIUASsQ.js} +1 -1
- package/dist/client/assets/{file-type-icon-DURyeK9L.js → file-type-icon-DXOOqaDU.js} +1 -1
- package/dist/client/assets/{files-B43hGcq-.js → files-y5I9x3Dd.js} +1 -1
- package/dist/client/assets/{form-CdGhzS_x.js → form-CXZkpbkB.js} +1 -1
- package/dist/client/assets/{general-D01YsmbR.js → general-CFE8C8Y1.js} +1 -1
- package/dist/client/assets/{github-repo-picker-Db3xiFzy.js → github-repo-picker-Cx0gyzTe.js} +1 -1
- package/dist/client/assets/{hooks-DlDryoZW.js → hooks-cdIk86Xa.js} +1 -1
- package/dist/client/assets/{image-field-ZYWbFFqt.js → image-field-LZYJGdaT.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-wt_cQutp.js → import-from-deco-dialog-Bp63uQGv.js} +1 -1
- package/dist/client/assets/{index-swPX_OFH.js → index-05x4OeWz.js} +1 -1
- package/dist/client/assets/{index-H-_VOpOu.js → index-9hu3UK2K.js} +1 -1
- package/dist/client/assets/{index-DEanDL8Y.js → index-BRLVEMpk.js} +1 -1
- package/dist/client/assets/{index-BW5f_EaT.js → index-Bm9fFssP.js} +23 -23
- package/dist/client/assets/{index-CkC7ek4r.js → index-C-1BWhby.js} +1 -1
- package/dist/client/assets/{index-C_H1H79r.js → index-C2R2thJn.js} +1 -1
- package/dist/client/assets/{index-D0cczQd_.js → index-C6FflRBs.js} +1 -1
- package/dist/client/assets/{index-DWvgpCdb.js → index-D5upgNFM.js} +1 -1
- package/dist/client/assets/{index-B66xjk-i.js → index-DHaiIcTc.js} +1 -1
- package/dist/client/assets/{index-COlSsy5J.js → index-DR_rePBs.js} +3 -3
- package/dist/client/assets/{index-CvuV8zWk.js → index-DZN7Qv8J.js} +1 -1
- package/dist/client/assets/{index-C35Pm7iN.js → index-DxA-vh3_.js} +1 -1
- package/dist/client/assets/{index-D4WUCfu0.js → index-DxM9Paz3.js} +1 -1
- package/dist/client/assets/{index-dlN4JEF9.js → index-izoVseA2.js} +1 -1
- package/dist/client/assets/{index-redirect-CDQ9iDF3.js → index-redirect-RldmhaND.js} +1 -1
- package/dist/client/assets/{input-CuVtlRv5.js → input-y1TM2XAx.js} +1 -1
- package/dist/client/assets/{integration-icon-RqT66_6U.js → integration-icon-BGjX8lxs.js} +1 -1
- package/dist/client/assets/{label-BCRIEPd0.js → label-DEiO6j8m.js} +1 -1
- package/dist/client/assets/{login-ByPZpD-o.js → login-CPBE6Z3u.js} +1 -1
- package/dist/client/assets/{mcp-oauth-kSTvScdZ.js → mcp-oauth-XgK_hrdl.js} +1 -1
- package/dist/client/assets/{members-AD1fVrNE.js → members-CUN0UMu5.js} +1 -1
- package/dist/client/assets/{monaco-editor-DNLiFjHn.js → monaco-editor-EJlpnsl7.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Bsctnbru.js → monitoring-stats-row-1w0TMwEI.js} +1 -1
- package/dist/client/assets/{oauth-callback-B6I9yHDk.js → oauth-callback-DRxeGvOF.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-D0iCPw3h.js → oauth-callback-ai-provider-aUeyWaW9.js} +1 -1
- package/dist/client/assets/{onboarding-1ssRVacT.js → onboarding-D1Drp94W.js} +1 -1
- package/dist/client/assets/{org-install-r5xxUZ8-.js → org-install-BXQfuUVe.js} +1 -1
- package/dist/client/assets/{org-layout-i53vnou1.js → org-layout-DzxNeVws.js} +1 -1
- package/dist/client/assets/{page-seo-form-BRpnzyUP.js → page-seo-form-CvVoMD8d.js} +1 -1
- package/dist/client/assets/page-seo-sheet-CzfAta0I.js +1 -0
- package/dist/client/assets/{popover-rRtv1RUJ.js → popover-dr7pU8MM.js} +1 -1
- package/dist/client/assets/{post-editor-B3yACnM8.js → post-editor-Ab7ZN-pl.js} +1 -1
- package/dist/client/assets/{preview-dialog-HeEAXFdp.js → preview-dialog-D_Uo4scR.js} +1 -1
- package/dist/client/assets/{primitives-DOHAd4Be.js → primitives-CSHo7U8r.js} +1 -1
- package/dist/client/assets/{profile-DxKVe_bi.js → profile-BZ2vUSat.js} +1 -1
- package/dist/client/assets/project-app-view-7ka1a6jD.js +1 -0
- package/dist/client/assets/record-editor-Bw4BOSzu.js +1 -0
- package/dist/client/assets/registry-3bAYOMeH.js +2 -0
- package/dist/client/assets/{registry-layout-Cqo7HGa-.js → registry-layout-BJRgjVur.js} +1 -1
- package/dist/client/assets/{require-capability-GPOwZTVN.js → require-capability-CWWOJPSW.js} +1 -1
- package/dist/client/assets/{required-auth-layout-D9YU16Eu.js → required-auth-layout-CxWIW5O_.js} +1 -1
- package/dist/client/assets/{reset-password-BvvmcRor.js → reset-password-FsDvA3-S.js} +1 -1
- package/dist/client/assets/{roles-BG01ewdV.js → roles--gGAxktM.js} +1 -1
- package/dist/client/assets/save-referenced-block-CSLLwbjJ.js +1 -0
- package/dist/client/assets/{save-status-2WDTqRnj.js → save-status-B6vdRBM4.js} +1 -1
- package/dist/client/assets/schema-form-G5roc-Nc.js +2 -0
- package/dist/client/assets/{scroll-area-DOnfhZQE.js → scroll-area-Ci24bTQj.js} +1 -1
- package/dist/client/assets/{search-input-Dh2xeHiv.js → search-input-h0dabDnJ.js} +1 -1
- package/dist/client/assets/{secrets-x-a9-QDY.js → secrets-ByqRKqq_.js} +1 -1
- package/dist/client/assets/sections-editor-hVOwn1eg.js +2 -0
- package/dist/client/assets/{select-Dqs7Z4yG.js → select-DGCvlKab.js} +1 -1
- package/dist/client/assets/{select-model-bXVR8jvT.js → select-model-D2CbW0ZU.js} +1 -1
- package/dist/client/assets/{seo-editor-d5x7SvAU.js → seo-editor-BDSzEVrv.js} +1 -1
- package/dist/client/assets/{settings-layout-CpPje1Xl.js → settings-layout-Bnabbtzt.js} +1 -1
- package/dist/client/assets/{settings-section-BqnJtUWr.js → settings-section-JyUX31IZ.js} +1 -1
- package/dist/client/assets/{sheet-Cn8FwYbD.js → sheet-CPU8El7K.js} +1 -1
- package/dist/client/assets/{shell-controls-nCD3gP3E.js → shell-controls-BgQdSR-R.js} +1 -1
- package/dist/client/assets/{shell-layout-Cx--9PV8.js → shell-layout-CQQow3tV.js} +1 -1
- package/dist/client/assets/{shell-route-loading-Brmd2_HQ.js → shell-route-loading-B3xUP7iX.js} +1 -1
- package/dist/client/assets/{sidebar-D1LCPjC8.js → sidebar-BQPFiLcL.js} +1 -1
- package/dist/client/assets/{skeleton-Bo_6Cq99.js → skeleton-CtgijdMV.js} +1 -1
- package/dist/client/assets/{sortable.esm-yJWb24sN.js → sortable.esm-BfQTpMg5.js} +1 -1
- package/dist/client/assets/{sso-DhhZEU-d.js → sso-C3kGdQcw.js} +1 -1
- package/dist/client/assets/{store-COjaCE4s.js → store-keB39fiN.js} +1 -1
- package/dist/client/assets/store-registry-ps_jP3R7.js +2 -0
- package/dist/client/assets/{studio-tools-CyTucPcW.js → studio-tools-bwIfUd7N.js} +1 -1
- package/dist/client/assets/{switch-CorAlxCf.js → switch-zzOr4XIL.js} +1 -1
- package/dist/client/assets/{table-Gv4tJy7V.js → table-CT6UZ1xs.js} +1 -1
- package/dist/client/assets/{tabs-DAvIQWby.js → tabs-CrP0FsDC.js} +1 -1
- package/dist/client/assets/{task-status-BfeF--n0.js → task-status-Cq3maKKR.js} +1 -1
- package/dist/client/assets/{textarea-DsT2vsGj.js → textarea-CDXfa-ym.js} +1 -1
- package/dist/client/assets/{toggle-group-WKZVvwQm.js → toggle-group-Bbddrz4I.js} +1 -1
- package/dist/client/assets/{toolbar-BfY48AQu.js → toolbar-CpdOaidz.js} +1 -1
- package/dist/client/assets/{tooltip-D5U362dF.js → tooltip-BYURy38b.js} +1 -1
- package/dist/client/assets/{types-C-QYkfD4.js → types-CnFNIxDN.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CLZQ64DO.js → use-ai-providers-DoX36CS3.js} +1 -1
- package/dist/client/assets/{use-automations-DNKM1hXI.js → use-automations-C5Pn4p2w.js} +1 -1
- package/dist/client/assets/{use-capability-XIhIuFk7.js → use-capability-D2rsaN6r.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DkwKhG1v.js → use-clock-tick-B8tpzRYt.js} +1 -1
- package/dist/client/assets/{use-collections-D4JsVK-B.js → use-collections-CD47os2h.js} +1 -1
- package/dist/client/assets/{use-connection-C7Z8M26w.js → use-connection-BbV-cahG.js} +1 -1
- package/dist/client/assets/{use-copy-CqTP6NE5.js → use-copy-BE_HAr84.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-fk0U59RA.js → use-create-virtual-mcp-DAGFWjyD.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-B8dr6XMC.js → use-debounced-autosave-C6qPmhCg.js} +1 -1
- package/dist/client/assets/{use-deco-credits-Cm6qycwc.js → use-deco-credits-C_X3P9Ba.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DTrOkfly.js → use-delete-connection-D7vqt_TA.js} +1 -1
- package/dist/client/assets/{use-file-configs-DKTLvOxt.js → use-file-configs-BU5uc_bV.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-SjuQvrxH.js → use-infinite-scroll-C7aFA98u.js} +1 -1
- package/dist/client/assets/{use-join-requests-DmU4yvI-.js → use-join-requests-BfHt0B9x.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CK2bE_Wl.js → use-mcp-client-C71iBuk1.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts--L5Py2oF.js → use-mcp-prompts-B0TUzdG5.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-B7wduqbV.js → use-mcp-tools-Cgv4PG97.js} +1 -1
- package/dist/client/assets/{use-members-CYuArAru.js → use-members-CmkDkATH.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-C2rXzvAb.js → use-navigate-to-agent-YwB-mL2y.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BYQp-Udb.js → use-org-auth-client-rt0mIMHb.js} +1 -1
- package/dist/client/assets/{use-org-sso-Dh5HCYSJ.js → use-org-sso-Bos_GK_g.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BR95hkZY.js → use-organization-roles-BW5gzL5a.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CiSDOMOC.js → use-organization-settings-CvC_Ip3K.js} +1 -1
- package/dist/client/assets/{use-registry-connections-rHz6zGP7.js → use-registry-connections-DIBD6ex2.js} +1 -1
- package/dist/client/assets/{use-secrets-DLuniCTL.js → use-secrets-DCiqQixK.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BmR3uEUx.js → use-status-sounds-DnE7BrP1.js} +1 -1
- package/dist/client/assets/{use-view-mode-CCFkxJ0W.js → use-view-mode-ypnKmup6.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DPWDEWCb.js → use-virtual-mcp-DC_d7ccl.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-ZExvzXfO.js +1 -0
- package/dist/client/assets/{useRouterState-q7ojL5Do.js → useRouterState-yO0hfTaq.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-A4JPhSbS.js +1 -0
- package/dist/client/assets/{view-mode-toggle-CeXLSv0R.js → view-mode-toggle-BNTkbFBk.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/app-editor-Dd12zl9_.js +0 -1
- package/dist/client/assets/category-editor-D8faJ1-Q.js +0 -1
- package/dist/client/assets/page-seo-sheet-C8gLGTPM.js +0 -1
- package/dist/client/assets/project-app-view-C1SP7U91.js +0 -1
- package/dist/client/assets/record-editor-CmQTYxNi.js +0 -1
- package/dist/client/assets/registry-BLAsKSMe.js +0 -2
- package/dist/client/assets/save-referenced-block-qVgXMpcz.js +0 -1
- package/dist/client/assets/schema-form-hXy8-pLC.js +0 -1
- package/dist/client/assets/sections-editor-DpVqLaiP.js +0 -3
- package/dist/client/assets/store-registry-nvoM6APm.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BS_m7Y7W.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CHHT-uCm.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as Y,j as r,B as W,r as X,c as Z}from"./index-COlSsy5J.js";import{t as ee}from"./ChevronDown-BldydMJ0.js";import{n as te}from"./LinkExternal01-DwIqUvLe.js";import{P as oe}from"./agent-icon-B1KjkGhC.js";import{e as re,f as ie,d as le}from"./scroll-area-DOnfhZQE.js";import{I as q}from"./input-CuVtlRv5.js";import{L as K}from"./label-BCRIEPd0.js";import{M as se}from"./automation-runs-CHVaaxN6.js";import{T as ae}from"./textarea-DsT2vsGj.js";import{I as ne}from"./image-field-ZYWbFFqt.js";import{c as me}from"./schema-form-hXy8-pLC.js";import{ai as pe,aj as ce,ak as fe,al as ue}from"./index-BW5f_EaT.js";import{u as de,s as U,I as ge,R as xe,A as he}from"./primitives-DOHAd4Be.js";import{S as ye}from"./save-status-2WDTqRnj.js";import{a as ve,B as je,b as be}from"./block-document-Dr1GbIJR.js";import"./AlertCircle-Dnqz3IxM.js";import"./Tool01-B4m3Gnpd.js";import"./SwitchHorizontal01-Ca_h3hG5.js";import"./Settings02-BcW_Yd93.js";import"./XCircle-CpovmLEO.js";import"./ArrowUpRight-B2NXgTf2.js";import"./ZapSquare-ChOMpHGM.js";import"./Users03-CJ4lkyfr.js";import"./CheckCircle-D9OslXZP.js";import"./ChevronUp-CjDXfs3K.js";import"./ChevronLeft-CXmppBJO.js";import"./ChevronRight-BsknZQE_.js";import"./DotsVertical-Ci1mVPsb.js";import"./Stars02-CB3UMWzf.js";import"./Eye-DifA9NHq.js";import"./ZoomOut-DYeUJTmS.js";import"./Globe01-CMUrlGmF.js";import"./FilterLines-CV07u96M.js";import"./Star01-DxJIcjLz.js";import"./Globe04-BplUDurZ.js";import"./HardDrive-B6V7BYZB.js";import"./Key01-DGn_JEBu.js";import"./LayoutLeft-BI32Ru47.js";import"./Monitor01-C-tOv611.js";import"./Sun-CTchQz03.js";import"./Palette-pjBymHRy.js";import"./Play-BEuZCxsN.js";import"./Plus-DHJbi1i9.js";import"./SearchMd-yvCGxslh.js";import"./Shield01-DXFrycnj.js";import"./Stars01-Dr_rOBxK.js";import"./Trash01-BDNQcRq9.js";import"./Upload01-CuyZwIAy.js";import"./User01-kj3Bxvgl.js";import"./Users01-DM4FmEoT.js";import"./XClose-CnYr1LOo.js";import"./X-Botvp-t_.js";import"./Zap-8NdOr1pq.js";import"./use-clock-tick-DkwKhG1v.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CqTP6NE5.js";import"./tooltip-D5U362dF.js";import"./file-type-icon-DURyeK9L.js";import"./dialog-BMBVdX8K.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-C-QYkfD4.js";import"./use-mcp-client-CK2bE_Wl.js";import"./auth-DA6X7KBB.js";import"./chat-context-B_U1gcun.js";import"./hooks-DlDryoZW.js";import"./decopilot-sse-pool-DdZSTixQ.js";import"./use-virtual-mcp-DPWDEWCb.js";import"./use-collections-D4JsVK-B.js";import"./use-ai-providers-CLZQ64DO.js";import"./studio-tools-CyTucPcW.js";import"./use-organization-settings-CiSDOMOC.js";import"./shell-layout-Cx--9PV8.js";import"./avatar-D7wKrjgH.js";import"./required-auth-layout-D9YU16Eu.js";import"./useRouterState-q7ojL5Do.js";import"./use-org-sso-Dh5HCYSJ.js";import"./sheet-Cn8FwYbD.js";import"./integration-icon-RqT66_6U.js";import"./use-navigate-to-agent-C2rXzvAb.js";import"./use-connection-C7Z8M26w.js";import"./use-mcp-prompts--L5Py2oF.js";import"./form-CdGhzS_x.js";import"./select-Dqs7Z4yG.js";import"./useInfiniteQuery-BS_m7Y7W.js";import"./use-infinite-scroll-SjuQvrxH.js";import"./card-BtNxdFil.js";import"./table-Gv4tJy7V.js";import"./empty-state-SvMp_sYN.js";import"./use-members-CYuArAru.js";import"./use-org-auth-client-BYQp-Udb.js";import"./task-status-BfeF--n0.js";import"./use-automations-DNKM1hXI.js";import"./useSuspenseInfiniteQuery-CHHT-uCm.js";import"./badge-Rj4w6Y9D.js";import"./checkbox-CzoSEbjC.js";import"./command-CYqVDIDi.js";import"./index-D4WUCfu0.js";import"./popover-rRtv1RUJ.js";import"./dropdown-menu-gXn3xVef.js";import"./skeleton-Bo_6Cq99.js";import"./tabs-DAvIQWby.js";import"./use-file-configs-DKTLvOxt.js";import"./calendar-BETEvsL1.js";import"./switch-CorAlxCf.js";import"./sortable.esm-yJWb24sN.js";import"./index-DEanDL8Y.js";import"./drawer-TLQRWcN-.js";import"./collection-search-BSHmVsv0.js";import"./toggle-group-WKZVvwQm.js";import"./use-deco-credits-Cm6qycwc.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CzT4sqi7.js";import"./use-registry-connections-rHz6zGP7.js";import"./extract-connection-data-BsbTS0uC.js";import"./collection-tabs-CghGabs6.js";import"./connection-form-helpers-CuaSwKDp.js";import"./mcp-oauth-kSTvScdZ.js";import"./connect-desktop-dialog-Cq5se3ri.js";import"./decopilot-Bw9nv9Fa.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BqnJtUWr.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BmR3uEUx.js";import"./toolbar-BfY48AQu.js";import"./preview-dialog-HeEAXFdp.js";import"./index-C_H1H79r.js";import"./use-mcp-tools-B7wduqbV.js";import"./use-capability-XIhIuFk7.js";import"./shell-route-loading-Brmd2_HQ.js";import"./index-B66xjk-i.js";import"./alert-dialog-DvJDYQsM.js";import"./use-debounced-autosave-B8dr6XMC.js";import"./index-CkC7ek4r.js";import"./sidebar-D1LCPjC8.js";import"./search-input-Dh2xeHiv.js";import"./github-repo-picker-Db3xiFzy.js";import"./use-secrets-DLuniCTL.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-CeXLSv0R.js";import"./select-model-bXVR8jvT.js";import"./monaco-editor-DNLiFjHn.js";import"./automation-list-row-BIiojY8I.js";const H=f=>typeof f=="string"?f:"",Ce=/\/blog\.tsx?$/;function Se(f){for(const[e,t]of Object.entries(f)){if(e.includes("/")||!t||typeof t!="object"||Array.isArray(t))continue;const i=t;if(typeof i.__resolveType!="string"||!Ce.test(i.__resolveType))continue;const o=H(i.pageSlug);if(o)return o}return null}function _e(f){const e=f.categories;if(!Array.isArray(e)||e.length===0)return"";const t=e[0];return H(t?.slug)}function ke(f,e){let t=f;if(/:category\??/.test(t)){if(!e.category)return null;t=t.replace(/:category\??/g,encodeURIComponent(e.category))}if(/:slug\??/.test(t)){if(!e.slug)return null;t=t.replace(/:slug\??/g,encodeURIComponent(e.slug))}return t}function Pe({decofile:f,post:e,previewBaseUrl:t}){if(!t)return null;const i=Se(f);if(!i)return null;const o=ke(i,{category:_e(e),slug:H(e.slug)});if(!o)return null;try{return new URL(o,t).href}catch{return null}}function Ne(f){return Array.isArray(f)?f.map(e=>({key:U(e?.key),value:U(e?.value)})):[]}function fr(f){const e=Y.c(68),{orgSlug:t,virtualMcpId:i,branch:o,blockKey:s,block:S,decofile:m,meta:v,previewBaseUrl:x}=f;let j;e[0]!==o||e[1]!==t||e[2]!==i?(j={orgSlug:t,virtualMcpId:i,branch:o},e[0]=o,e[1]=t,e[2]=i,e[3]=j):j=e[3];const l=pe(j);let u;e[4]!==S?(u=ce(S,"posts"),e[4]=S,e[5]=u):u=e[5];const d=u;let b;e[6]!==s||e[7]!==l?(b=M=>{l.mutate({blockKey:s,data:fe(s,"posts",M)})},e[6]=s,e[7]=l,e[8]=b):b=e[8];const[a,R]=de(d,b);let _;e[9]!==a||e[10]!==R?(_=(M,Q)=>R({...a,[M]:Q}),e[9]=a,e[10]=R,e[11]=_):_=e[11];const p=_;let k;e[12]!==m||e[13]!==a||e[14]!==x?(k=Pe({decofile:m,post:a,previewBaseUrl:x}),e[12]=m,e[13]=a,e[14]=x,e[15]=k):k=e[15];const h=k;let n;e[16]!==a.title?(n=U(a.title)||"Untitled post",e[16]=a.title,e[17]=n):n=e[17];let c;e[18]!==n?(c=r.jsx("span",{className:"truncate text-sm font-medium",children:n}),e[18]=n,e[19]=c):c=e[19];let g;e[20]!==l.isError||e[21]!==l.isPending?(g=r.jsx(ye,{isPending:l.isPending,isError:l.isError}),e[20]=l.isError,e[21]=l.isPending,e[22]=g):g=e[22];const C=!h,z=h?"Open the post preview in a new tab":"Set the post slug (and its category) plus the blog app's pageSlug to preview";let P;e[23]!==h?(P=()=>{h&&window.open(h,"_blank","noopener,noreferrer")},e[23]=h,e[24]=P):P=e[24];let I;e[25]===Symbol.for("react.memo_cache_sentinel")?(I=r.jsx(te,{size:14}),e[25]=I):I=e[25];let L;e[26]!==z||e[27]!==P||e[28]!==C?(L=r.jsxs(W,{type:"button",variant:"outline",size:"sm",disabled:C,title:z,onClick:P,children:[I,"See preview"]}),e[26]=z,e[27]=P,e[28]=C,e[29]=L):L=e[29];let N;e[30]!==L||e[31]!==g?(N=r.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[g,L]}),e[30]=L,e[31]=g,e[32]=N):N=e[32];let B;e[33]!==N||e[34]!==c?(B=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,N]}),e[33]=N,e[34]=c,e[35]=B):B=e[35];let T;e[36]!==a.title?(T=U(a.title),e[36]=a.title,e[37]=T):T=e[37];let w;e[38]!==p?(w=M=>p("title",M),e[38]=p,e[39]=w):w=e[39];let A;e[40]!==T||e[41]!==w?(A=r.jsx(ge,{value:T,onChange:w,placeholder:"Post title",className:"py-1 text-3xl font-bold text-foreground"}),e[40]=T,e[41]=w,e[42]=A):A=e[42];let E;e[43]!==m||e[44]!==a||e[45]!==p?(E=r.jsx(Be,{post:a,decofile:m,onChange:p}),e[43]=m,e[44]=a,e[45]=p,e[46]=E):E=e[46];let $;e[47]===Symbol.for("react.memo_cache_sentinel")?($=r.jsx("div",{className:"mt-6 border-t"}),e[47]=$):$=e[47];let F;e[48]!==a.sections?(F=ve(a.sections),e[48]=a.sections,e[49]=F):F=e[49];let O;e[50]!==p?(O=M=>p("sections",M),e[50]=p,e[51]=O):O=e[51];let y;e[52]!==v||e[53]!==F||e[54]!==O?(y=r.jsx(je,{value:F,onChange:O,meta:v,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."}),e[52]=v,e[53]=F,e[54]=O,e[55]=y):y=e[55];let D;e[56]!==A||e[57]!==E||e[58]!==y?(D=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:r.jsxs("div",{className:"mx-auto max-w-3xl px-8 py-8",children:[A,E,$,y]})}),e[56]=A,e[57]=E,e[58]=y,e[59]=D):D=e[59];let V;e[60]!==B||e[61]!==D?(V=r.jsxs("div",{className:"flex h-full flex-col",children:[B,D]}),e[60]=B,e[61]=D,e[62]=V):V=e[62];let G;return e[63]!==o||e[64]!==t||e[65]!==V||e[66]!==i?(G=r.jsx(be,{orgSlug:t,virtualMcpId:i,branch:o,children:V}),e[63]=o,e[64]=t,e[65]=V,e[66]=i,e[67]=G):G=e[67],G}function Be(f){const e=Y.c(69),{post:t,decofile:i,onChange:o}=f,[s,S]=X.useState(!1);let m,v;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(oe,{size:15}),v=r.jsx("span",{className:"flex-1 text-left",children:"Post settings"}),e[0]=m,e[1]=v):(m=e[0],v=e[1]);const x=s&&"rotate-180";let j;e[2]!==x?(j=Z("transition-transform",x),e[2]=x,e[3]=j):j=e[3];let l;e[4]!==j?(l=r.jsx(re,{asChild:!0,children:r.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm text-muted-foreground transition-colors hover:bg-muted hover:text-foreground cursor-pointer",children:[m,v,r.jsx(ee,{size:15,className:j})]})}),e[4]=j,e[5]=l):l=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=r.jsx(K,{htmlFor:"post-excerpt",children:"Excerpt"}),e[6]=u):u=e[6];let d;e[7]!==t.excerpt?(d=U(t.excerpt),e[7]=t.excerpt,e[8]=d):d=e[8];let b;e[9]!==o?(b=y=>o("excerpt",y.target.value),e[9]=o,e[10]=b):b=e[10];let a;e[11]!==d||e[12]!==b?(a=r.jsxs("div",{className:"space-y-2",children:[u,r.jsx(ae,{id:"post-excerpt",value:d,onChange:b,rows:2})]}),e[11]=d,e[12]=b,e[13]=a):a=e[13];let R;e[14]===Symbol.for("react.memo_cache_sentinel")?(R=r.jsx(K,{htmlFor:"post-slug",children:"Slug"}),e[14]=R):R=e[14];let _;e[15]!==t.slug?(_=U(t.slug),e[15]=t.slug,e[16]=_):_=e[16];let p;e[17]!==o?(p=y=>o("slug",y.target.value),e[17]=o,e[18]=p):p=e[18];let k;e[19]!==_||e[20]!==p?(k=r.jsxs("div",{className:"space-y-2",children:[R,r.jsx(q,{id:"post-slug",value:_,onChange:p,placeholder:"my-post",className:"h-10"})]}),e[19]=_,e[20]=p,e[21]=k):k=e[21];let h;e[22]===Symbol.for("react.memo_cache_sentinel")?(h={type:"string",format:"date",title:"Date"},e[22]=h):h=e[22];let n;e[23]!==t.date?(n=U(t.date),e[23]=t.date,e[24]=n):n=e[24];let c;e[25]!==o?(c=y=>o("date",y),e[25]=o,e[26]=c):c=e[26];let g;e[27]!==n||e[28]!==c?(g=r.jsx(me,{schema:h,value:n,onChange:c,path:"post-date",label:"Date"}),e[27]=n,e[28]=c,e[29]=g):g=e[29];let C;e[30]!==k||e[31]!==g?(C=r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[k,g]}),e[30]=k,e[31]=g,e[32]=C):C=e[32];let z;e[33]===Symbol.for("react.memo_cache_sentinel")?(z={type:"string",format:"image-uri",title:"Cover image"},e[33]=z):z=e[33];let P;e[34]!==o?(P=y=>o("image",y),e[34]=o,e[35]=P):P=e[35];let I;e[36]!==t.image||e[37]!==P?(I=r.jsx(ne,{schema:z,value:t.image,onChange:P,path:"post-image",label:"Cover image"}),e[36]=t.image,e[37]=P,e[38]=I):I=e[38];let L;e[39]===Symbol.for("react.memo_cache_sentinel")?(L=["email"],e[39]=L):L=e[39];let N;e[40]!==o?(N=y=>o("authors",y),e[40]=o,e[41]=N):N=e[41];let B;e[42]!==i||e[43]!==t.authors||e[44]!==N?(B=r.jsx(J,{label:"Authors",decofile:i,kind:"authors",valueField:"email",extraFields:L,selected:t.authors,onChange:N}),e[42]=i,e[43]=t.authors,e[44]=N,e[45]=B):B=e[45];let T;e[46]===Symbol.for("react.memo_cache_sentinel")?(T=["slug"],e[46]=T):T=e[46];let w;e[47]!==o?(w=y=>o("categories",y),e[47]=o,e[48]=w):w=e[48];let A;e[49]!==i||e[50]!==t.categories||e[51]!==w?(A=r.jsx(J,{label:"Categories",decofile:i,kind:"categories",valueField:"slug",extraFields:T,selected:t.categories,onChange:w}),e[49]=i,e[50]=t.categories,e[51]=w,e[52]=A):A=e[52];let E;e[53]!==o?(E=y=>o("extraProps",y),e[53]=o,e[54]=E):E=e[54];let $;e[55]!==t.extraProps||e[56]!==E?($=r.jsx(we,{value:t.extraProps,onChange:E}),e[55]=t.extraProps,e[56]=E,e[57]=$):$=e[57];let F;e[58]!==C||e[59]!==I||e[60]!==B||e[61]!==A||e[62]!==$||e[63]!==a?(F=r.jsxs(ie,{className:"space-y-5 px-2 pt-4",children:[a,C,I,B,A,$]}),e[58]=C,e[59]=I,e[60]=B,e[61]=A,e[62]=$,e[63]=a,e[64]=F):F=e[64];let O;return e[65]!==s||e[66]!==F||e[67]!==l?(O=r.jsxs(le,{open:s,onOpenChange:S,className:"mt-4",children:[l,F]}),e[65]=s,e[66]=F,e[67]=l,e[68]=O):O=e[68],O}function we(f){const e=Y.c(15),{value:t,onChange:i}=f;let o,s,S,m;if(e[0]!==i||e[1]!==t){o=Ne(t);const j=(l,u)=>i(o.map((d,b)=>b===l?{...d,...u}:d));s="space-y-2",e[6]===Symbol.for("react.memo_cache_sentinel")?(S=r.jsx(K,{children:"Extra props"}),e[6]=S):S=e[6],m=o.length>0&&r.jsx("ul",{className:"space-y-2",children:o.map((l,u)=>r.jsxs("li",{className:"group/item flex items-center gap-2",children:[r.jsx(q,{value:l.key,onChange:d=>j(u,{key:d.target.value}),placeholder:"key",className:"h-9 flex-1"}),r.jsx(q,{value:l.value,onChange:d=>j(u,{value:d.target.value}),placeholder:"value",className:"h-9 flex-1"}),r.jsx(xe,{label:"Remove prop",onClick:()=>i(o.filter((d,b)=>b!==u))})]},u))}),e[0]=i,e[1]=t,e[2]=o,e[3]=s,e[4]=S,e[5]=m}else o=e[2],s=e[3],S=e[4],m=e[5];let v;e[7]!==o||e[8]!==i?(v=r.jsx(he,{label:"Add prop",onClick:()=>i([...o,{key:"",value:""}])}),e[7]=o,e[8]=i,e[9]=v):v=e[9];let x;return e[10]!==s||e[11]!==S||e[12]!==m||e[13]!==v?(x=r.jsxs("div",{className:s,children:[S,m,v]}),e[10]=s,e[11]=S,e[12]=m,e[13]=v,e[14]=x):x=e[14],x}function J(f){const e=Y.c(31),{label:t,decofile:i,kind:o,valueField:s,extraFields:S,selected:m,onChange:v}=f;let x,j,l;if(e[0]!==i||e[1]!==o||e[2]!==s){x=ue(i,o);let h;e[6]!==s?(h=(c,g)=>U(c[s])||g,e[6]=s,e[7]=h):h=e[7],l=h;let n;e[8]!==l?(n=c=>{const{key:g,payload:C}=c;return{value:l(C,g),label:U(C.name)||l(C,g)}},e[8]=l,e[9]=n):n=e[9],j=x.map(n),e[0]=i,e[1]=o,e[2]=s,e[3]=x,e[4]=j,e[5]=l}else x=e[3],j=e[4],l=e[5];const u=j;let d;if(e[10]!==m||e[11]!==s){const h=Array.isArray(m)?m:[];let n;e[13]!==s?(n=c=>U(c[s]),e[13]=s,e[14]=n):n=e[14],d=h.map(n).filter(Boolean),e[10]=m,e[11]=s,e[12]=d}else d=e[12];const b=d;let a;e[15]!==S||e[16]!==v||e[17]!==x||e[18]!==s||e[19]!==l?(a=h=>{v(h.map(n=>{const c=x.find(C=>{const{key:z,payload:P}=C;return l(P,z)===n});if(!c)return{name:n,[s]:n};const g={name:U(c.payload.name)};for(const C of S)g[C]=c.payload[C]??n;return g}))},e[15]=S,e[16]=v,e[17]=x,e[18]=s,e[19]=l,e[20]=a):a=e[20];const R=a;let _;e[21]!==t?(_=r.jsx(K,{children:t}),e[21]=t,e[22]=_):_=e[22];let p;e[23]!==b||e[24]!==R||e[25]!==t||e[26]!==u?(p=u.length===0?r.jsxs("p",{className:"text-xs text-muted-foreground",children:["No ",t.toLowerCase()," yet — create some in the"," ",t.toLowerCase()," collection."]}):r.jsx(se,{options:u,defaultValue:b,onValueChange:R,placeholder:`Select ${t.toLowerCase()}`,maxCount:4}),e[23]=b,e[24]=R,e[25]=t,e[26]=u,e[27]=p):p=e[27];let k;return e[28]!==_||e[29]!==p?(k=r.jsxs("div",{className:"space-y-2",children:[_,p]}),e[28]=_,e[29]=p,e[30]=k):k=e[30],k}export{fr as PostEditor};
|
|
1
|
+
import{e as Y,j as r,B as W,r as X,c as Z}from"./index-DR_rePBs.js";import{t as ee}from"./ChevronDown-DEax0m8J.js";import{n as te}from"./LinkExternal01-DvInJfCe.js";import{P as oe}from"./agent-icon-2IzCfMt4.js";import{e as re,f as le,d as ie}from"./scroll-area-Ci24bTQj.js";import{I as q}from"./input-y1TM2XAx.js";import{L as K}from"./label-DEiO6j8m.js";import{M as se}from"./automation-runs-BhO4xZsY.js";import{T as ae}from"./textarea-CDXfa-ym.js";import{I as ne}from"./image-field-LZYJGdaT.js";import{g as me}from"./schema-form-G5roc-Nc.js";import{ak as pe,al as ce,am as fe,an as ue}from"./index-Bm9fFssP.js";import{u as de,s as U,I as ge,R as xe,A as he}from"./primitives-CSHo7U8r.js";import{S as ye}from"./save-status-B6vdRBM4.js";import{a as ve,B as je,b as be}from"./block-document-DotLcLXO.js";import"./AlertCircle-CPhjAdzy.js";import"./Tool01-XeWWEM02.js";import"./SwitchHorizontal01-gtJNQfFu.js";import"./Settings02-xC8_pyoX.js";import"./XCircle-DA_NLmoN.js";import"./ArrowUpRight-ByULm16q.js";import"./ZapSquare-CxtarS5X.js";import"./Users03-8tkacGp5.js";import"./CheckCircle-f5gZcaGs.js";import"./ChevronUp-k8vE0jpp.js";import"./ChevronLeft-BNIg0E5Q.js";import"./ChevronRight-C3K9gEKE.js";import"./DotsVertical-BMWCYHTN.js";import"./Stars02-BN7irakH.js";import"./Eye-CFgk5O7d.js";import"./ZoomOut-BLdVdOct.js";import"./Globe01-DhUQ5HNX.js";import"./FilterLines-D4i7TeOP.js";import"./Star01-BoVF12Xx.js";import"./Globe04-CzcwlKYt.js";import"./HardDrive-CdAsICPa.js";import"./Key01-BDydLAZy.js";import"./LayoutLeft-CiWu8qBT.js";import"./Monitor01-DwCf4abV.js";import"./Sun-D7p5-rHi.js";import"./Palette-COeRpWyL.js";import"./Play-BfAmSLXY.js";import"./Plus-C1_ruIfW.js";import"./SearchMd-DJ2wt73y.js";import"./Shield01-IdxP145L.js";import"./Stars01-BXoy7DLH.js";import"./Trash01-Dv2bkB3B.js";import"./Upload01-D4ujwkxA.js";import"./User01-4ybEpVge.js";import"./Users01-B32j0dPN.js";import"./XClose-C3jOtT-R.js";import"./X-XfDufvpq.js";import"./Zap-JBZrSnLL.js";import"./use-clock-tick-B8tpzRYt.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BE_HAr84.js";import"./tooltip-BYURy38b.js";import"./file-type-icon-DXOOqaDU.js";import"./dialog-BxPbOvQB.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-CnFNIxDN.js";import"./use-mcp-client-C71iBuk1.js";import"./auth-CTqVB4IS.js";import"./chat-context-B3aQdnCo.js";import"./hooks-cdIk86Xa.js";import"./decopilot-sse-pool-DYYweec9.js";import"./use-virtual-mcp-DC_d7ccl.js";import"./use-collections-CD47os2h.js";import"./use-ai-providers-DoX36CS3.js";import"./studio-tools-bwIfUd7N.js";import"./use-organization-settings-CvC_Ip3K.js";import"./shell-layout-CQQow3tV.js";import"./avatar-peV5o6WX.js";import"./required-auth-layout-CxWIW5O_.js";import"./useRouterState-yO0hfTaq.js";import"./use-org-sso-Bos_GK_g.js";import"./sheet-CPU8El7K.js";import"./integration-icon-BGjX8lxs.js";import"./use-navigate-to-agent-YwB-mL2y.js";import"./use-connection-BbV-cahG.js";import"./use-mcp-prompts-B0TUzdG5.js";import"./form-CXZkpbkB.js";import"./select-DGCvlKab.js";import"./useInfiniteQuery-ZExvzXfO.js";import"./use-infinite-scroll-C7aFA98u.js";import"./card-C2sSM-Le.js";import"./table-CT6UZ1xs.js";import"./empty-state-DBEkUTru.js";import"./use-members-CmkDkATH.js";import"./use-org-auth-client-rt0mIMHb.js";import"./task-status-Cq3maKKR.js";import"./use-automations-C5Pn4p2w.js";import"./useSuspenseInfiniteQuery-A4JPhSbS.js";import"./badge-BZkDCIOE.js";import"./checkbox-Bx3S96Y8.js";import"./command-okvQdmbU.js";import"./index-DxM9Paz3.js";import"./popover-dr7pU8MM.js";import"./dropdown-menu-DdGNF14G.js";import"./skeleton-CtgijdMV.js";import"./tabs-CrP0FsDC.js";import"./use-file-configs-BU5uc_bV.js";import"./calendar-B7Dh7RAA.js";import"./switch-zzOr4XIL.js";import"./sortable.esm-BfQTpMg5.js";import"./index-BRLVEMpk.js";import"./drawer-iUEgRU-6.js";import"./collection-search-K6lqqQFY.js";import"./toggle-group-Bbddrz4I.js";import"./use-deco-credits-C_X3P9Ba.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-PMR-7_mJ.js";import"./use-registry-connections-DIBD6ex2.js";import"./extract-connection-data-BRqbgUe3.js";import"./collection-tabs-CFsxwAyi.js";import"./connection-form-helpers-D0kGxihY.js";import"./mcp-oauth-XgK_hrdl.js";import"./connect-desktop-dialog-Cr2QVwup.js";import"./decopilot-CZ4O1Mkt.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-JyUX31IZ.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DnE7BrP1.js";import"./toolbar-CpdOaidz.js";import"./preview-dialog-D_Uo4scR.js";import"./index-C2R2thJn.js";import"./use-mcp-tools-Cgv4PG97.js";import"./use-capability-D2rsaN6r.js";import"./shell-route-loading-B3xUP7iX.js";import"./index-DHaiIcTc.js";import"./alert-dialog-Cmw7yEK3.js";import"./use-debounced-autosave-C6qPmhCg.js";import"./index-C-1BWhby.js";import"./sidebar-BQPFiLcL.js";import"./search-input-h0dabDnJ.js";import"./github-repo-picker-Cx0gyzTe.js";import"./use-secrets-DCiqQixK.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-BNTkbFBk.js";import"./select-model-D2CbW0ZU.js";import"./monaco-editor-EJlpnsl7.js";import"./automation-list-row-B-h0vNXd.js";const H=f=>typeof f=="string"?f:"",Ce=/\/blog\.tsx?$/;function Se(f){for(const[e,t]of Object.entries(f)){if(e.includes("/")||!t||typeof t!="object"||Array.isArray(t))continue;const l=t;if(typeof l.__resolveType!="string"||!Ce.test(l.__resolveType))continue;const o=H(l.pageSlug);if(o)return o}return null}function _e(f){const e=f.categories;if(!Array.isArray(e)||e.length===0)return"";const t=e[0];return H(t?.slug)}function ke(f,e){let t=f;if(/:category\??/.test(t)){if(!e.category)return null;t=t.replace(/:category\??/g,encodeURIComponent(e.category))}if(/:slug\??/.test(t)){if(!e.slug)return null;t=t.replace(/:slug\??/g,encodeURIComponent(e.slug))}return t}function Pe({decofile:f,post:e,previewBaseUrl:t}){if(!t)return null;const l=Se(f);if(!l)return null;const o=ke(l,{category:_e(e),slug:H(e.slug)});if(!o)return null;try{return new URL(o,t).href}catch{return null}}function Ne(f){return Array.isArray(f)?f.map(e=>({key:U(e?.key),value:U(e?.value)})):[]}function fr(f){const e=Y.c(68),{orgSlug:t,virtualMcpId:l,branch:o,blockKey:s,block:S,decofile:m,meta:v,previewBaseUrl:x}=f;let j;e[0]!==o||e[1]!==t||e[2]!==l?(j={orgSlug:t,virtualMcpId:l,branch:o},e[0]=o,e[1]=t,e[2]=l,e[3]=j):j=e[3];const i=pe(j);let u;e[4]!==S?(u=ce(S,"posts"),e[4]=S,e[5]=u):u=e[5];const d=u;let b;e[6]!==s||e[7]!==i?(b=M=>{i.mutate({blockKey:s,data:fe(s,"posts",M)})},e[6]=s,e[7]=i,e[8]=b):b=e[8];const[a,R]=de(d,b);let _;e[9]!==a||e[10]!==R?(_=(M,Q)=>R({...a,[M]:Q}),e[9]=a,e[10]=R,e[11]=_):_=e[11];const p=_;let k;e[12]!==m||e[13]!==a||e[14]!==x?(k=Pe({decofile:m,post:a,previewBaseUrl:x}),e[12]=m,e[13]=a,e[14]=x,e[15]=k):k=e[15];const h=k;let n;e[16]!==a.title?(n=U(a.title)||"Untitled post",e[16]=a.title,e[17]=n):n=e[17];let c;e[18]!==n?(c=r.jsx("span",{className:"truncate text-sm font-medium",children:n}),e[18]=n,e[19]=c):c=e[19];let g;e[20]!==i.isError||e[21]!==i.isPending?(g=r.jsx(ye,{isPending:i.isPending,isError:i.isError}),e[20]=i.isError,e[21]=i.isPending,e[22]=g):g=e[22];const C=!h,z=h?"Open the post preview in a new tab":"Set the post slug (and its category) plus the blog app's pageSlug to preview";let P;e[23]!==h?(P=()=>{h&&window.open(h,"_blank","noopener,noreferrer")},e[23]=h,e[24]=P):P=e[24];let I;e[25]===Symbol.for("react.memo_cache_sentinel")?(I=r.jsx(te,{size:14}),e[25]=I):I=e[25];let L;e[26]!==z||e[27]!==P||e[28]!==C?(L=r.jsxs(W,{type:"button",variant:"outline",size:"sm",disabled:C,title:z,onClick:P,children:[I,"See preview"]}),e[26]=z,e[27]=P,e[28]=C,e[29]=L):L=e[29];let N;e[30]!==L||e[31]!==g?(N=r.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[g,L]}),e[30]=L,e[31]=g,e[32]=N):N=e[32];let B;e[33]!==N||e[34]!==c?(B=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,N]}),e[33]=N,e[34]=c,e[35]=B):B=e[35];let T;e[36]!==a.title?(T=U(a.title),e[36]=a.title,e[37]=T):T=e[37];let w;e[38]!==p?(w=M=>p("title",M),e[38]=p,e[39]=w):w=e[39];let A;e[40]!==T||e[41]!==w?(A=r.jsx(ge,{value:T,onChange:w,placeholder:"Post title",className:"py-1 text-3xl font-bold text-foreground"}),e[40]=T,e[41]=w,e[42]=A):A=e[42];let E;e[43]!==m||e[44]!==a||e[45]!==p?(E=r.jsx(Be,{post:a,decofile:m,onChange:p}),e[43]=m,e[44]=a,e[45]=p,e[46]=E):E=e[46];let $;e[47]===Symbol.for("react.memo_cache_sentinel")?($=r.jsx("div",{className:"mt-6 border-t"}),e[47]=$):$=e[47];let F;e[48]!==a.sections?(F=ve(a.sections),e[48]=a.sections,e[49]=F):F=e[49];let O;e[50]!==p?(O=M=>p("sections",M),e[50]=p,e[51]=O):O=e[51];let y;e[52]!==v||e[53]!==F||e[54]!==O?(y=r.jsx(je,{value:F,onChange:O,meta:v,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."}),e[52]=v,e[53]=F,e[54]=O,e[55]=y):y=e[55];let D;e[56]!==A||e[57]!==E||e[58]!==y?(D=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:r.jsxs("div",{className:"mx-auto max-w-3xl px-8 py-8",children:[A,E,$,y]})}),e[56]=A,e[57]=E,e[58]=y,e[59]=D):D=e[59];let V;e[60]!==B||e[61]!==D?(V=r.jsxs("div",{className:"flex h-full flex-col",children:[B,D]}),e[60]=B,e[61]=D,e[62]=V):V=e[62];let G;return e[63]!==o||e[64]!==t||e[65]!==V||e[66]!==l?(G=r.jsx(be,{orgSlug:t,virtualMcpId:l,branch:o,children:V}),e[63]=o,e[64]=t,e[65]=V,e[66]=l,e[67]=G):G=e[67],G}function Be(f){const e=Y.c(69),{post:t,decofile:l,onChange:o}=f,[s,S]=X.useState(!1);let m,v;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(oe,{size:15}),v=r.jsx("span",{className:"flex-1 text-left",children:"Post settings"}),e[0]=m,e[1]=v):(m=e[0],v=e[1]);const x=s&&"rotate-180";let j;e[2]!==x?(j=Z("transition-transform",x),e[2]=x,e[3]=j):j=e[3];let i;e[4]!==j?(i=r.jsx(re,{asChild:!0,children:r.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm text-muted-foreground transition-colors hover:bg-muted hover:text-foreground cursor-pointer",children:[m,v,r.jsx(ee,{size:15,className:j})]})}),e[4]=j,e[5]=i):i=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=r.jsx(K,{htmlFor:"post-excerpt",children:"Excerpt"}),e[6]=u):u=e[6];let d;e[7]!==t.excerpt?(d=U(t.excerpt),e[7]=t.excerpt,e[8]=d):d=e[8];let b;e[9]!==o?(b=y=>o("excerpt",y.target.value),e[9]=o,e[10]=b):b=e[10];let a;e[11]!==d||e[12]!==b?(a=r.jsxs("div",{className:"space-y-2",children:[u,r.jsx(ae,{id:"post-excerpt",value:d,onChange:b,rows:2})]}),e[11]=d,e[12]=b,e[13]=a):a=e[13];let R;e[14]===Symbol.for("react.memo_cache_sentinel")?(R=r.jsx(K,{htmlFor:"post-slug",children:"Slug"}),e[14]=R):R=e[14];let _;e[15]!==t.slug?(_=U(t.slug),e[15]=t.slug,e[16]=_):_=e[16];let p;e[17]!==o?(p=y=>o("slug",y.target.value),e[17]=o,e[18]=p):p=e[18];let k;e[19]!==_||e[20]!==p?(k=r.jsxs("div",{className:"space-y-2",children:[R,r.jsx(q,{id:"post-slug",value:_,onChange:p,placeholder:"my-post",className:"h-10"})]}),e[19]=_,e[20]=p,e[21]=k):k=e[21];let h;e[22]===Symbol.for("react.memo_cache_sentinel")?(h={type:"string",format:"date",title:"Date"},e[22]=h):h=e[22];let n;e[23]!==t.date?(n=U(t.date),e[23]=t.date,e[24]=n):n=e[24];let c;e[25]!==o?(c=y=>o("date",y),e[25]=o,e[26]=c):c=e[26];let g;e[27]!==n||e[28]!==c?(g=r.jsx(me,{schema:h,value:n,onChange:c,path:"post-date",label:"Date"}),e[27]=n,e[28]=c,e[29]=g):g=e[29];let C;e[30]!==k||e[31]!==g?(C=r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[k,g]}),e[30]=k,e[31]=g,e[32]=C):C=e[32];let z;e[33]===Symbol.for("react.memo_cache_sentinel")?(z={type:"string",format:"image-uri",title:"Cover image"},e[33]=z):z=e[33];let P;e[34]!==o?(P=y=>o("image",y),e[34]=o,e[35]=P):P=e[35];let I;e[36]!==t.image||e[37]!==P?(I=r.jsx(ne,{schema:z,value:t.image,onChange:P,path:"post-image",label:"Cover image"}),e[36]=t.image,e[37]=P,e[38]=I):I=e[38];let L;e[39]===Symbol.for("react.memo_cache_sentinel")?(L=["email"],e[39]=L):L=e[39];let N;e[40]!==o?(N=y=>o("authors",y),e[40]=o,e[41]=N):N=e[41];let B;e[42]!==l||e[43]!==t.authors||e[44]!==N?(B=r.jsx(J,{label:"Authors",decofile:l,kind:"authors",valueField:"email",extraFields:L,selected:t.authors,onChange:N}),e[42]=l,e[43]=t.authors,e[44]=N,e[45]=B):B=e[45];let T;e[46]===Symbol.for("react.memo_cache_sentinel")?(T=["slug"],e[46]=T):T=e[46];let w;e[47]!==o?(w=y=>o("categories",y),e[47]=o,e[48]=w):w=e[48];let A;e[49]!==l||e[50]!==t.categories||e[51]!==w?(A=r.jsx(J,{label:"Categories",decofile:l,kind:"categories",valueField:"slug",extraFields:T,selected:t.categories,onChange:w}),e[49]=l,e[50]=t.categories,e[51]=w,e[52]=A):A=e[52];let E;e[53]!==o?(E=y=>o("extraProps",y),e[53]=o,e[54]=E):E=e[54];let $;e[55]!==t.extraProps||e[56]!==E?($=r.jsx(we,{value:t.extraProps,onChange:E}),e[55]=t.extraProps,e[56]=E,e[57]=$):$=e[57];let F;e[58]!==C||e[59]!==I||e[60]!==B||e[61]!==A||e[62]!==$||e[63]!==a?(F=r.jsxs(le,{className:"space-y-5 px-2 pt-4",children:[a,C,I,B,A,$]}),e[58]=C,e[59]=I,e[60]=B,e[61]=A,e[62]=$,e[63]=a,e[64]=F):F=e[64];let O;return e[65]!==s||e[66]!==F||e[67]!==i?(O=r.jsxs(ie,{open:s,onOpenChange:S,className:"mt-4",children:[i,F]}),e[65]=s,e[66]=F,e[67]=i,e[68]=O):O=e[68],O}function we(f){const e=Y.c(15),{value:t,onChange:l}=f;let o,s,S,m;if(e[0]!==l||e[1]!==t){o=Ne(t);const j=(i,u)=>l(o.map((d,b)=>b===i?{...d,...u}:d));s="space-y-2",e[6]===Symbol.for("react.memo_cache_sentinel")?(S=r.jsx(K,{children:"Extra props"}),e[6]=S):S=e[6],m=o.length>0&&r.jsx("ul",{className:"space-y-2",children:o.map((i,u)=>r.jsxs("li",{className:"group/item flex items-center gap-2",children:[r.jsx(q,{value:i.key,onChange:d=>j(u,{key:d.target.value}),placeholder:"key",className:"h-9 flex-1"}),r.jsx(q,{value:i.value,onChange:d=>j(u,{value:d.target.value}),placeholder:"value",className:"h-9 flex-1"}),r.jsx(xe,{label:"Remove prop",onClick:()=>l(o.filter((d,b)=>b!==u))})]},u))}),e[0]=l,e[1]=t,e[2]=o,e[3]=s,e[4]=S,e[5]=m}else o=e[2],s=e[3],S=e[4],m=e[5];let v;e[7]!==o||e[8]!==l?(v=r.jsx(he,{label:"Add prop",onClick:()=>l([...o,{key:"",value:""}])}),e[7]=o,e[8]=l,e[9]=v):v=e[9];let x;return e[10]!==s||e[11]!==S||e[12]!==m||e[13]!==v?(x=r.jsxs("div",{className:s,children:[S,m,v]}),e[10]=s,e[11]=S,e[12]=m,e[13]=v,e[14]=x):x=e[14],x}function J(f){const e=Y.c(31),{label:t,decofile:l,kind:o,valueField:s,extraFields:S,selected:m,onChange:v}=f;let x,j,i;if(e[0]!==l||e[1]!==o||e[2]!==s){x=ue(l,o);let h;e[6]!==s?(h=(c,g)=>U(c[s])||g,e[6]=s,e[7]=h):h=e[7],i=h;let n;e[8]!==i?(n=c=>{const{key:g,payload:C}=c;return{value:i(C,g),label:U(C.name)||i(C,g)}},e[8]=i,e[9]=n):n=e[9],j=x.map(n),e[0]=l,e[1]=o,e[2]=s,e[3]=x,e[4]=j,e[5]=i}else x=e[3],j=e[4],i=e[5];const u=j;let d;if(e[10]!==m||e[11]!==s){const h=Array.isArray(m)?m:[];let n;e[13]!==s?(n=c=>U(c[s]),e[13]=s,e[14]=n):n=e[14],d=h.map(n).filter(Boolean),e[10]=m,e[11]=s,e[12]=d}else d=e[12];const b=d;let a;e[15]!==S||e[16]!==v||e[17]!==x||e[18]!==s||e[19]!==i?(a=h=>{v(h.map(n=>{const c=x.find(C=>{const{key:z,payload:P}=C;return i(P,z)===n});if(!c)return{name:n,[s]:n};const g={name:U(c.payload.name)};for(const C of S)g[C]=c.payload[C]??n;return g}))},e[15]=S,e[16]=v,e[17]=x,e[18]=s,e[19]=i,e[20]=a):a=e[20];const R=a;let _;e[21]!==t?(_=r.jsx(K,{children:t}),e[21]=t,e[22]=_):_=e[22];let p;e[23]!==b||e[24]!==R||e[25]!==t||e[26]!==u?(p=u.length===0?r.jsxs("p",{className:"text-xs text-muted-foreground",children:["No ",t.toLowerCase()," yet — create some in the"," ",t.toLowerCase()," collection."]}):r.jsx(se,{options:u,defaultValue:b,onValueChange:R,placeholder:`Select ${t.toLowerCase()}`,maxCount:4}),e[23]=b,e[24]=R,e[25]=t,e[26]=u,e[27]=p):p=e[27];let k;return e[28]!==_||e[29]!==p?(k=r.jsxs("div",{className:"space-y-2",children:[_,p]}),e[28]=_,e[29]=p,e[30]=k):k=e[30],k}export{fr as PostEditor};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as g,aK as ln,e as A,c as ve,j as c,p as se,F as st,a as Ie,K as Y,m as be,a$ as an,z as cn,l as un,B as ee,ac as dn,n as Me,ae as fn,L as pn,g as mn}from"./index-COlSsy5J.js";import{c as hn,f as xn,g as gn,b as yn,d as wn,a as vn,h as bn}from"./ZoomOut-DYeUJTmS.js";import{D as Sn,a as Ze,c as kt,d as Pt}from"./dialog-BMBVdX8K.js";import{b as ue,T as de,a as fe}from"./tooltip-D5U362dF.js";import{n as Fe,i as Ct}from"./Globe01-CMUrlGmF.js";import{n as $t}from"./LinkExternal01-DwIqUvLe.js";import{s as zn}from"./XClose-CnYr1LOo.js";import{S as _e}from"./skeleton-Bo_6Cq99.js";import{l as jn,F as kn}from"./index-C_H1H79r.js";import{F as et,M as Pn}from"./file-type-icon-DURyeK9L.js";import{D as Cn,a as $n,b as En,c as dt}from"./dropdown-menu-gXn3xVef.js";import{i as Nn}from"./LayoutLeft-BI32Ru47.js";import{I as In}from"./input-CuVtlRv5.js";import{a as Mn,P as Rn,b as Dn}from"./popover-rRtv1RUJ.js";import{i as Ln}from"./ChevronUp-CjDXfs3K.js";import{a as _n}from"./Eye-DifA9NHq.js";import{i as An}from"./Key01-DGn_JEBu.js";const We=g.createContext(null);We.displayName="PanelGroupContext";const V={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},rt=10,ye=g.useLayoutEffect,ft=ln.useId,Tn=typeof ft=="function"?ft:()=>null;let Fn=0;function it(n=null){const e=Tn(),t=g.useRef(n||e||null);return t.current===null&&(t.current=""+Fn++),n??t.current}function Et({children:n,className:e="",collapsedSize:t,collapsible:s,defaultSize:r,forwardedRef:i,id:o,maxSize:l,minSize:a,onCollapse:u,onExpand:p,onResize:d,order:f,style:x,tagName:m="div",...z}){const v=g.useContext(We);if(v===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:P,getPanelSize:M,getPanelStyle:k,groupId:W,isPanelCollapsed:N,reevaluatePanelConstraints:w,registerPanel:K,resizePanel:q,unregisterPanel:U}=v,T=it(o),D=g.useRef({callbacks:{onCollapse:u,onExpand:p,onResize:d},constraints:{collapsedSize:t,collapsible:s,defaultSize:r,maxSize:l,minSize:a},id:T,idIsFromProps:o!==void 0,order:f});g.useRef({didLogMissingDefaultSizeWarning:!1}),ye(()=>{const{callbacks:_,constraints:L}=D.current,F={...L};D.current.id=T,D.current.idIsFromProps=o!==void 0,D.current.order=f,_.onCollapse=u,_.onExpand=p,_.onResize=d,L.collapsedSize=t,L.collapsible=s,L.defaultSize=r,L.maxSize=l,L.minSize=a,(F.collapsedSize!==L.collapsedSize||F.collapsible!==L.collapsible||F.maxSize!==L.maxSize||F.minSize!==L.minSize)&&w(D.current,F)}),ye(()=>{const _=D.current;return K(_),()=>{U(_)}},[f,T,K,U]),g.useImperativeHandle(i,()=>({collapse:()=>{y(D.current)},expand:_=>{P(D.current,_)},getId(){return T},getSize(){return M(D.current)},isCollapsed(){return N(D.current)},isExpanded(){return!N(D.current)},resize:_=>{q(D.current,_)}}),[y,P,M,N,T,q]);const X=k(D.current,r);return g.createElement(m,{...z,children:n,className:e,id:T,style:{...X,...x},[V.groupId]:W,[V.panel]:"",[V.panelCollapsible]:s||void 0,[V.panelId]:T,[V.panelSize]:parseFloat(""+X.flexGrow).toFixed(1)})}const Nt=g.forwardRef((n,e)=>g.createElement(Et,{...n,forwardedRef:e}));Et.displayName="Panel";Nt.displayName="forwardRef(Panel)";let tt=null,Te=-1,he=null;function Hn(n,e){if(e){const t=(e&Lt)!==0,s=(e&_t)!==0,r=(e&At)!==0,i=(e&Tt)!==0;if(t)return r?"se-resize":i?"ne-resize":"e-resize";if(s)return r?"sw-resize":i?"nw-resize":"w-resize";if(r)return"s-resize";if(i)return"n-resize"}switch(n){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Un(){he!==null&&(document.head.removeChild(he),tt=null,he=null,Te=-1)}function Ve(n,e){var t,s;const r=Hn(n,e);if(tt!==r){if(tt=r,he===null&&(he=document.createElement("style"),document.head.appendChild(he)),Te>=0){var i;(i=he.sheet)===null||i===void 0||i.removeRule(Te)}Te=(t=(s=he.sheet)===null||s===void 0?void 0:s.insertRule(`*{cursor: ${r} !important;}`))!==null&&t!==void 0?t:-1}}function It(n){return n.type==="keydown"}function Mt(n){return n.type.startsWith("pointer")}function Rt(n){return n.type.startsWith("mouse")}function qe(n){if(Mt(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(Rt(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function On(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Wn(n,e,t){return n.x<e.x+e.width&&n.x+n.width>e.x&&n.y<e.y+e.height&&n.y+n.height>e.y}function qn(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:ht(n),b:ht(e)};let s;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),s=n;E(s,"Stacking order can only be calculated for elements with a common ancestor");const r={a:mt(pt(t.a)),b:mt(pt(t.b))};if(r.a===r.b){const i=s.childNodes,o={a:t.a.at(-1),b:t.b.at(-1)};let l=i.length;for(;l--;){const a=i[l];if(a===o.a)return 1;if(a===o.b)return-1}}return Math.sign(r.a-r.b)}const Bn=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Kn(n){var e;const t=getComputedStyle((e=Dt(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function Gn(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Kn(n))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||Bn.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function pt(n){let e=n.length;for(;e--;){const t=n[e];if(E(t,"Missing node"),Gn(t))return t}return null}function mt(n){return n&&Number(getComputedStyle(n).zIndex)||0}function ht(n){const e=[];for(;n;)e.push(n),n=Dt(n);return e}function Dt(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const Lt=1,_t=2,At=4,Tt=8,Vn=On()==="coarse";let ie=[],Pe=!1,ge=new Map,Be=new Map;const Re=new Set;function Xn(n,e,t,s,r){var i;const{ownerDocument:o}=e,l={direction:t,element:e,hitAreaMargins:s,setResizeHandlerState:r},a=(i=ge.get(o))!==null&&i!==void 0?i:0;return ge.set(o,a+1),Re.add(l),He(),function(){var p;Be.delete(n),Re.delete(l);const d=(p=ge.get(o))!==null&&p!==void 0?p:1;if(ge.set(o,d-1),He(),d===1&&ge.delete(o),ie.includes(l)){const f=ie.indexOf(l);f>=0&&ie.splice(f,1),lt(),r("up",!0,null)}}}function Qn(n){const{target:e}=n,{x:t,y:s}=qe(n);Pe=!0,ot({target:e,x:t,y:s}),He(),ie.length>0&&(Ue("down",n),n.preventDefault(),Ft(e)||n.stopImmediatePropagation())}function Xe(n){const{x:e,y:t}=qe(n);if(Pe&&n.buttons===0&&(Pe=!1,Ue("up",n)),!Pe){const{target:s}=n;ot({target:s,x:e,y:t})}Ue("move",n),lt(),ie.length>0&&n.preventDefault()}function Qe(n){const{target:e}=n,{x:t,y:s}=qe(n);Be.clear(),Pe=!1,ie.length>0&&(n.preventDefault(),Ft(e)||n.stopImmediatePropagation()),Ue("up",n),ot({target:e,x:t,y:s}),lt(),He()}function Ft(n){let e=n;for(;e;){if(e.hasAttribute(V.resizeHandle))return!0;e=e.parentElement}return!1}function ot({target:n,x:e,y:t}){ie.splice(0);let s=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(s=n),Re.forEach(r=>{const{element:i,hitAreaMargins:o}=r,l=i.getBoundingClientRect(),{bottom:a,left:u,right:p,top:d}=l,f=Vn?o.coarse:o.fine;if(e>=u-f&&e<=p+f&&t>=d-f&&t<=a+f){if(s!==null&&document.contains(s)&&i!==s&&!i.contains(s)&&!s.contains(i)&&qn(s,i)>0){let m=s,z=!1;for(;m&&!m.contains(i);){if(Wn(m.getBoundingClientRect(),l)){z=!0;break}m=m.parentElement}if(z)return}ie.push(r)}})}function Je(n,e){Be.set(n,e)}function lt(){let n=!1,e=!1;ie.forEach(s=>{const{direction:r}=s;r==="horizontal"?n=!0:e=!0});let t=0;Be.forEach(s=>{t|=s}),n&&e?Ve("intersection",t):n?Ve("horizontal",t):e?Ve("vertical",t):Un()}let Ye=new AbortController;function He(){Ye.abort(),Ye=new AbortController;const n={capture:!0,signal:Ye.signal};Re.size&&(Pe?(ie.length>0&&ge.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("contextmenu",Qe,n),s.addEventListener("pointerleave",Xe,n),s.addEventListener("pointermove",Xe,n))}),window.addEventListener("pointerup",Qe,n),window.addEventListener("pointercancel",Qe,n)):ge.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("pointerdown",Qn,n),s.addEventListener("pointermove",Xe,n))}))}function Ue(n,e){Re.forEach(t=>{const{setResizeHandlerState:s}=t,r=ie.includes(t);s(n,r,e)})}function Jn(){const[n,e]=g.useState(0);return g.useCallback(()=>e(t=>t+1),[])}function E(n,e){if(!n)throw console.error(e),Error(e)}function we(n,e,t=rt){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function pe(n,e,t=rt){return we(n,e,t)===0}function te(n,e,t){return we(n,e,t)===0}function Yn(n,e,t){if(n.length!==e.length)return!1;for(let s=0;s<n.length;s++){const r=n[s],i=e[s];if(!te(r,i,t))return!1}return!0}function ke({panelConstraints:n,panelIndex:e,size:t}){const s=n[e];E(s!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:r=0,collapsible:i,maxSize:o=100,minSize:l=0}=s;if(we(t,l)<0)if(i){const a=(r+l)/2;we(t,a)<0?t=r:t=l}else t=l;return t=Math.min(o,t),t=parseFloat(t.toFixed(rt)),t}function Ee({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:s,prevLayout:r,trigger:i}){if(te(n,0))return e;const o=[...e],[l,a]=s;E(l!=null,"Invalid first pivot index"),E(a!=null,"Invalid second pivot index");let u=0;if(i==="keyboard"){{const d=n<0?a:l,f=t[d];E(f,`Panel constraints not found for index ${d}`);const{collapsedSize:x=0,collapsible:m,minSize:z=0}=f;if(m){const v=e[d];if(E(v!=null,`Previous layout not found for panel index ${d}`),te(v,x)){const y=z-v;we(y,Math.abs(n))>0&&(n=n<0?0-y:y)}}}{const d=n<0?l:a,f=t[d];E(f,`No panel constraints found for index ${d}`);const{collapsedSize:x=0,collapsible:m,minSize:z=0}=f;if(m){const v=e[d];if(E(v!=null,`Previous layout not found for panel index ${d}`),te(v,z)){const y=v-x;we(y,Math.abs(n))>0&&(n=n<0?0-y:y)}}}}{const d=n<0?1:-1;let f=n<0?a:l,x=0;for(;;){const z=e[f];E(z!=null,`Previous layout not found for panel index ${f}`);const y=ke({panelConstraints:t,panelIndex:f,size:100})-z;if(x+=y,f+=d,f<0||f>=t.length)break}const m=Math.min(Math.abs(n),Math.abs(x));n=n<0?0-m:m}{let f=n<0?l:a;for(;f>=0&&f<t.length;){const x=Math.abs(n)-Math.abs(u),m=e[f];E(m!=null,`Previous layout not found for panel index ${f}`);const z=m-x,v=ke({panelConstraints:t,panelIndex:f,size:z});if(!te(m,v)&&(u+=m-v,o[f]=v,u.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?f--:f++}}if(Yn(r,o))return r;{const d=n<0?a:l,f=e[d];E(f!=null,`Previous layout not found for panel index ${d}`);const x=f+u,m=ke({panelConstraints:t,panelIndex:d,size:x});if(o[d]=m,!te(m,x)){let z=x-m,y=n<0?a:l;for(;y>=0&&y<t.length;){const P=o[y];E(P!=null,`Previous layout not found for panel index ${y}`);const M=P+z,k=ke({panelConstraints:t,panelIndex:y,size:M});if(te(P,k)||(z-=k-P,o[y]=k),te(z,0))break;n>0?y--:y++}}}const p=o.reduce((d,f)=>f+d,0);return te(p,100)?o:r}function Zn({layout:n,panelsArray:e,pivotIndices:t}){let s=0,r=100,i=0,o=0;const l=t[0];E(l!=null,"No pivot index found"),e.forEach((d,f)=>{const{constraints:x}=d,{maxSize:m=100,minSize:z=0}=x;f===l?(s=z,r=m):(i+=z,o+=m)});const a=Math.min(r,100-i),u=Math.max(s,100-o),p=n[l];return{valueMax:a,valueMin:u,valueNow:p}}function De(n,e=document){return Array.from(e.querySelectorAll(`[${V.resizeHandleId}][data-panel-group-id="${n}"]`))}function Ht(n,e,t=document){const r=De(n,t).findIndex(i=>i.getAttribute(V.resizeHandleId)===e);return r??null}function Ut(n,e,t){const s=Ht(n,e,t);return s!=null?[s,s+1]:[-1,-1]}function Ot(n,e=document){var t;if(e instanceof HTMLElement&&(e==null||(t=e.dataset)===null||t===void 0?void 0:t.panelGroupId)==n)return e;const s=e.querySelector(`[data-panel-group][data-panel-group-id="${n}"]`);return s||null}function Ke(n,e=document){const t=e.querySelector(`[${V.resizeHandleId}="${n}"]`);return t||null}function es(n,e,t,s=document){var r,i,o,l;const a=Ke(e,s),u=De(n,s),p=a?u.indexOf(a):-1,d=(r=(i=t[p])===null||i===void 0?void 0:i.id)!==null&&r!==void 0?r:null,f=(o=(l=t[p+1])===null||l===void 0?void 0:l.id)!==null&&o!==void 0?o:null;return[d,f]}function ts({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:s,panelDataArray:r,panelGroupElement:i,setLayout:o}){g.useRef({didWarnAboutMissingResizeHandle:!1}),ye(()=>{if(!i)return;const l=De(t,i);for(let a=0;a<r.length-1;a++){const{valueMax:u,valueMin:p,valueNow:d}=Zn({layout:s,panelsArray:r,pivotIndices:[a,a+1]}),f=l[a];if(f!=null){const x=r[a];E(x,`No panel data found for index "${a}"`),f.setAttribute("aria-controls",x.id),f.setAttribute("aria-valuemax",""+Math.round(u)),f.setAttribute("aria-valuemin",""+Math.round(p)),f.setAttribute("aria-valuenow",d!=null?""+Math.round(d):"")}}return()=>{l.forEach((a,u)=>{a.removeAttribute("aria-controls"),a.removeAttribute("aria-valuemax"),a.removeAttribute("aria-valuemin"),a.removeAttribute("aria-valuenow")})}},[t,s,r,i]),g.useEffect(()=>{if(!i)return;const l=e.current;E(l,"Eager values not found");const{panelDataArray:a}=l,u=Ot(t,i);E(u!=null,`No group found for id "${t}"`);const p=De(t,i);E(p,`No resize handles found for group id "${t}"`);const d=p.map(f=>{const x=f.getAttribute(V.resizeHandleId);E(x,"Resize handle element has no handle id attribute");const[m,z]=es(t,x,a,i);if(m==null||z==null)return()=>{};const v=y=>{if(!y.defaultPrevented)switch(y.key){case"Enter":{y.preventDefault();const P=a.findIndex(M=>M.id===m);if(P>=0){const M=a[P];E(M,`No panel data found for index ${P}`);const k=s[P],{collapsedSize:W=0,collapsible:N,minSize:w=0}=M.constraints;if(k!=null&&N){const K=Ee({delta:te(k,W)?w-W:W-k,initialLayout:s,panelConstraints:a.map(q=>q.constraints),pivotIndices:Ut(t,x,i),prevLayout:s,trigger:"keyboard"});s!==K&&o(K)}}break}}};return f.addEventListener("keydown",v),()=>{f.removeEventListener("keydown",v)}});return()=>{d.forEach(f=>f())}},[i,n,e,t,s,r,o])}function xt(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function Wt(n,e){const t=n==="horizontal",{x:s,y:r}=qe(e);return t?s:r}function ns(n,e,t,s,r){const i=t==="horizontal",o=Ke(e,r);E(o,`No resize handle element found for id "${e}"`);const l=o.getAttribute(V.groupId);E(l,"Resize handle element has no group id attribute");let{initialCursorPosition:a}=s;const u=Wt(t,n),p=Ot(l,r);E(p,`No group element found for id "${l}"`);const d=p.getBoundingClientRect(),f=i?d.width:d.height;return(u-a)/f*100}function ss(n,e,t,s,r,i){if(It(n)){const o=t==="horizontal";let l=0;n.shiftKey?l=100:r!=null?l=r:l=10;let a=0;switch(n.key){case"ArrowDown":a=o?0:l;break;case"ArrowLeft":a=o?-l:0;break;case"ArrowRight":a=o?l:0;break;case"ArrowUp":a=o?0:-l;break;case"End":a=100;break;case"Home":a=-100;break}return a}else return s==null?0:ns(n,e,t,s,i)}function rs({panelDataArray:n}){const e=Array(n.length),t=n.map(i=>i.constraints);let s=0,r=100;for(let i=0;i<n.length;i++){const o=t[i];E(o,`Panel constraints not found for index ${i}`);const{defaultSize:l}=o;l!=null&&(s++,e[i]=l,r-=l)}for(let i=0;i<n.length;i++){const o=t[i];E(o,`Panel constraints not found for index ${i}`);const{defaultSize:l}=o;if(l!=null)continue;const a=n.length-s,u=r/a;s++,e[i]=u,r-=u}return e}function Se(n,e,t){e.forEach((s,r)=>{const i=n[r];E(i,`Panel data not found for index ${r}`);const{callbacks:o,constraints:l,id:a}=i,{collapsedSize:u=0,collapsible:p}=l,d=t[a];if(d==null||s!==d){t[a]=s;const{onCollapse:f,onExpand:x,onResize:m}=o;m&&m(s,d),p&&(f||x)&&(x&&(d==null||pe(d,u))&&!pe(s,u)&&x(),f&&(d==null||!pe(d,u))&&pe(s,u)&&f())}})}function Ae(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t])return!1;return!0}function is({defaultSize:n,dragState:e,layout:t,panelData:s,panelIndex:r,precision:i=3}){const o=t[r];let l;return o==null?l=n!=null?n.toPrecision(i):"1":s.length===1?l="1":l=o.toPrecision(i),{flexBasis:0,flexGrow:l,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function os(n,e=10){let t=null;return(...r)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...r)},e)}}function gt(n){try{if(typeof localStorage<"u")n.getItem=e=>localStorage.getItem(e),n.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),n.getItem=()=>null,n.setItem=()=>{}}}function qt(n){return`react-resizable-panels:${n}`}function Bt(n){return n.map(e=>{const{constraints:t,id:s,idIsFromProps:r,order:i}=e;return r?s:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function Kt(n,e){try{const t=qt(n),s=e.getItem(t);if(s){const r=JSON.parse(s);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function ls(n,e,t){var s,r;const i=(s=Kt(n,t))!==null&&s!==void 0?s:{},o=Bt(e);return(r=i[o])!==null&&r!==void 0?r:null}function as(n,e,t,s,r){var i;const o=qt(n),l=Bt(e),a=(i=Kt(n,r))!==null&&i!==void 0?i:{};a[l]={expandToSizes:Object.fromEntries(t.entries()),layout:s};try{r.setItem(o,JSON.stringify(a))}catch(u){console.error(u)}}function yt({layout:n,panelConstraints:e}){const t=[...n],s=t.reduce((i,o)=>i+o,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(i=>`${i}%`).join(", ")}`);if(!te(s,100)&&t.length>0)for(let i=0;i<e.length;i++){const o=t[i];E(o!=null,`No layout data found for index ${i}`);const l=100/s*o;t[i]=l}let r=0;for(let i=0;i<e.length;i++){const o=t[i];E(o!=null,`No layout data found for index ${i}`);const l=ke({panelConstraints:e,panelIndex:i,size:o});o!=l&&(r+=o-l,t[i]=l)}if(!te(r,0))for(let i=0;i<e.length;i++){const o=t[i];E(o!=null,`No layout data found for index ${i}`);const l=o+r,a=ke({panelConstraints:e,panelIndex:i,size:l});if(o!==a&&(r-=a-o,t[i]=a,te(r,0)))break}return t}const cs=100,Ne={getItem:n=>(gt(Ne),Ne.getItem(n)),setItem:(n,e)=>{gt(Ne),Ne.setItem(n,e)}},wt={};function Gt({autoSaveId:n=null,children:e,className:t="",direction:s,forwardedRef:r,id:i=null,onLayout:o=null,keyboardResizeBy:l=null,storage:a=Ne,style:u,tagName:p="div",...d}){const f=it(i),x=g.useRef(null),[m,z]=g.useState(null),[v,y]=g.useState([]),P=Jn(),M=g.useRef({}),k=g.useRef(new Map),W=g.useRef(0),N=g.useRef({autoSaveId:n,direction:s,dragState:m,id:f,keyboardResizeBy:l,onLayout:o,storage:a}),w=g.useRef({layout:v,panelDataArray:[],panelDataArrayChanged:!1});g.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),g.useImperativeHandle(r,()=>({getId:()=>N.current.id,getLayout:()=>{const{layout:h}=w.current;return h},setLayout:h=>{const{onLayout:j}=N.current,{layout:I,panelDataArray:C}=w.current,b=yt({layout:h,panelConstraints:C.map($=>$.constraints)});xt(I,b)||(y(b),w.current.layout=b,j&&j(b),Se(C,b,M.current))}}),[]),ye(()=>{N.current.autoSaveId=n,N.current.direction=s,N.current.dragState=m,N.current.id=f,N.current.onLayout=o,N.current.storage=a}),ts({committedValuesRef:N,eagerValuesRef:w,groupId:f,layout:v,panelDataArray:w.current.panelDataArray,setLayout:y,panelGroupElement:x.current}),g.useEffect(()=>{const{panelDataArray:h}=w.current;if(n){if(v.length===0||v.length!==h.length)return;let j=wt[n];j==null&&(j=os(as,cs),wt[n]=j);const I=[...h],C=new Map(k.current);j(n,I,C,v,a)}},[n,v,a]),g.useEffect(()=>{});const K=g.useCallback(h=>{const{onLayout:j}=N.current,{layout:I,panelDataArray:C}=w.current;if(h.constraints.collapsible){const b=C.map(ae=>ae.constraints),{collapsedSize:$=0,panelSize:O,pivotIndices:Q}=xe(C,h,I);if(E(O!=null,`Panel size not found for panel "${h.id}"`),!pe(O,$)){k.current.set(h.id,O);const ce=ze(C,h)===C.length-1?O-$:$-O,G=Ee({delta:ce,initialLayout:I,panelConstraints:b,pivotIndices:Q,prevLayout:I,trigger:"imperative-api"});Ae(I,G)||(y(G),w.current.layout=G,j&&j(G),Se(C,G,M.current))}}},[]),q=g.useCallback((h,j)=>{const{onLayout:I}=N.current,{layout:C,panelDataArray:b}=w.current;if(h.constraints.collapsible){const $=b.map(re=>re.constraints),{collapsedSize:O=0,panelSize:Q=0,minSize:ae=0,pivotIndices:ce}=xe(b,h,C),G=j??ae;if(pe(Q,O)){const re=k.current.get(h.id),Ce=re!=null&&re>=G?re:G,Ge=ze(b,h)===b.length-1?Q-Ce:Ce-Q,Z=Ee({delta:Ge,initialLayout:C,panelConstraints:$,pivotIndices:ce,prevLayout:C,trigger:"imperative-api"});Ae(C,Z)||(y(Z),w.current.layout=Z,I&&I(Z),Se(b,Z,M.current))}}},[]),U=g.useCallback(h=>{const{layout:j,panelDataArray:I}=w.current,{panelSize:C}=xe(I,h,j);return E(C!=null,`Panel size not found for panel "${h.id}"`),C},[]),T=g.useCallback((h,j)=>{const{panelDataArray:I}=w.current,C=ze(I,h);return is({defaultSize:j,dragState:m,layout:v,panelData:I,panelIndex:C})},[m,v]),D=g.useCallback(h=>{const{layout:j,panelDataArray:I}=w.current,{collapsedSize:C=0,collapsible:b,panelSize:$}=xe(I,h,j);return E($!=null,`Panel size not found for panel "${h.id}"`),b===!0&&pe($,C)},[]),X=g.useCallback(h=>{const{layout:j,panelDataArray:I}=w.current,{collapsedSize:C=0,collapsible:b,panelSize:$}=xe(I,h,j);return E($!=null,`Panel size not found for panel "${h.id}"`),!b||we($,C)>0},[]),_=g.useCallback(h=>{const{panelDataArray:j}=w.current;j.push(h),j.sort((I,C)=>{const b=I.order,$=C.order;return b==null&&$==null?0:b==null?-1:$==null?1:b-$}),w.current.panelDataArrayChanged=!0,P()},[P]);ye(()=>{if(w.current.panelDataArrayChanged){w.current.panelDataArrayChanged=!1;const{autoSaveId:h,onLayout:j,storage:I}=N.current,{layout:C,panelDataArray:b}=w.current;let $=null;if(h){const Q=ls(h,b,I);Q&&(k.current=new Map(Object.entries(Q.expandToSizes)),$=Q.layout)}$==null&&($=rs({panelDataArray:b}));const O=yt({layout:$,panelConstraints:b.map(Q=>Q.constraints)});xt(C,O)||(y(O),w.current.layout=O,j&&j(O),Se(b,O,M.current))}}),ye(()=>{const h=w.current;return()=>{h.layout=[]}},[]);const L=g.useCallback(h=>{let j=!1;const I=x.current;return I&&window.getComputedStyle(I,null).getPropertyValue("direction")==="rtl"&&(j=!0),function(b){b.preventDefault();const $=x.current;if(!$)return()=>null;const{direction:O,dragState:Q,id:ae,keyboardResizeBy:ce,onLayout:G}=N.current,{layout:re,panelDataArray:Ce}=w.current,{initialLayout:Le}=Q??{},Ge=Ut(ae,h,$);let Z=ss(b,h,O,Q,ce,$);const ct=O==="horizontal";ct&&j&&(Z=-Z);const rn=Ce.map(on=>on.constraints),$e=Ee({delta:Z,initialLayout:Le??re,panelConstraints:rn,pivotIndices:Ge,prevLayout:re,trigger:It(b)?"keyboard":"mouse-or-touch"}),ut=!Ae(re,$e);(Mt(b)||Rt(b))&&W.current!=Z&&(W.current=Z,!ut&&Z!==0?ct?Je(h,Z<0?Lt:_t):Je(h,Z<0?At:Tt):Je(h,0)),ut&&(y($e),w.current.layout=$e,G&&G($e),Se(Ce,$e,M.current))}},[]),F=g.useCallback((h,j)=>{const{onLayout:I}=N.current,{layout:C,panelDataArray:b}=w.current,$=b.map(re=>re.constraints),{panelSize:O,pivotIndices:Q}=xe(b,h,C);E(O!=null,`Panel size not found for panel "${h.id}"`);const ce=ze(b,h)===b.length-1?O-j:j-O,G=Ee({delta:ce,initialLayout:C,panelConstraints:$,pivotIndices:Q,prevLayout:C,trigger:"imperative-api"});Ae(C,G)||(y(G),w.current.layout=G,I&&I(G),Se(b,G,M.current))},[]),H=g.useCallback((h,j)=>{const{layout:I,panelDataArray:C}=w.current,{collapsedSize:b=0,collapsible:$}=j,{collapsedSize:O=0,collapsible:Q,maxSize:ae=100,minSize:ce=0}=h.constraints,{panelSize:G}=xe(C,h,I);G!=null&&($&&Q&&pe(G,b)?pe(b,O)||F(h,O):G<ce?F(h,ce):G>ae&&F(h,ae))},[F]),J=g.useCallback((h,j)=>{const{direction:I}=N.current,{layout:C}=w.current;if(!x.current)return;const b=Ke(h,x.current);E(b,`Drag handle element not found for id "${h}"`);const $=Wt(I,j);z({dragHandleId:h,dragHandleRect:b.getBoundingClientRect(),initialCursorPosition:$,initialLayout:C})},[]),ne=g.useCallback(()=>{z(null)},[]),B=g.useCallback(h=>{const{panelDataArray:j}=w.current,I=ze(j,h);I>=0&&(j.splice(I,1),delete M.current[h.id],w.current.panelDataArrayChanged=!0,P())},[P]),S=g.useMemo(()=>({collapsePanel:K,direction:s,dragState:m,expandPanel:q,getPanelSize:U,getPanelStyle:T,groupId:f,isPanelCollapsed:D,isPanelExpanded:X,reevaluatePanelConstraints:H,registerPanel:_,registerResizeHandle:L,resizePanel:F,startDragging:J,stopDragging:ne,unregisterPanel:B,panelGroupElement:x.current}),[K,m,s,q,U,T,f,D,X,H,_,L,F,J,ne,B]),R={display:"flex",flexDirection:s==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return g.createElement(We.Provider,{value:S},g.createElement(p,{...d,children:e,className:t,id:i,ref:x,style:{...R,...u},[V.group]:"",[V.groupDirection]:s,[V.groupId]:f}))}const Vt=g.forwardRef((n,e)=>g.createElement(Gt,{...n,forwardedRef:e}));Gt.displayName="PanelGroup";Vt.displayName="forwardRef(PanelGroup)";function ze(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function xe(n,e,t){const s=ze(n,e),i=s===n.length-1?[s-1,s]:[s,s+1],o=t[s];return{...e.constraints,panelSize:o,pivotIndices:i}}function us({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:s}){g.useEffect(()=>{if(n||t==null||s==null)return;const r=Ke(e,s);if(r==null)return;const i=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),t(o);break}case"F6":{o.preventDefault();const l=r.getAttribute(V.groupId);E(l,`No group element found for id "${l}"`);const a=De(l,s),u=Ht(l,e,s);E(u!==null,`No resize element found for id "${e}"`);const p=o.shiftKey?u>0?u-1:a.length-1:u+1<a.length?u+1:0;a[p].focus();break}}};return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}},[s,n,e,t])}function Xt({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:s,id:r,onBlur:i,onClick:o,onDragging:l,onFocus:a,onPointerDown:u,onPointerUp:p,style:d={},tabIndex:f=0,tagName:x="div",...m}){var z,v;const y=g.useRef(null),P=g.useRef({onClick:o,onDragging:l,onPointerDown:u,onPointerUp:p});g.useEffect(()=>{P.current.onClick=o,P.current.onDragging=l,P.current.onPointerDown=u,P.current.onPointerUp=p});const M=g.useContext(We);if(M===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:k,groupId:W,registerResizeHandle:N,startDragging:w,stopDragging:K,panelGroupElement:q}=M,U=it(r),[T,D]=g.useState("inactive"),[X,_]=g.useState(!1),[L,F]=g.useState(null),H=g.useRef({state:T});ye(()=>{H.current.state=T}),g.useEffect(()=>{if(t)F(null);else{const S=N(U);F(()=>S)}},[t,U,N]);const J=(z=s?.coarse)!==null&&z!==void 0?z:15,ne=(v=s?.fine)!==null&&v!==void 0?v:5;g.useEffect(()=>{if(t||L==null)return;const S=y.current;E(S,"Element ref not attached");let R=!1;return Xn(U,S,k,{coarse:J,fine:ne},(j,I,C)=>{if(!I){D("inactive");return}switch(j){case"down":{D("drag"),R=!1,E(C,'Expected event to be defined for "down" action'),w(U,C);const{onDragging:b,onPointerDown:$}=P.current;b?.(!0),$?.();break}case"move":{const{state:b}=H.current;R=!0,b!=="drag"&&D("hover"),E(C,'Expected event to be defined for "move" action'),L(C);break}case"up":{D("hover"),K();const{onClick:b,onDragging:$,onPointerUp:O}=P.current;$?.(!1),O?.(),R||b?.();break}}})},[J,k,t,ne,N,U,L,w,K]),us({disabled:t,handleId:U,resizeHandler:L,panelGroupElement:q});const B={touchAction:"none",userSelect:"none"};return g.createElement(x,{...m,children:n,className:e,id:r,onBlur:()=>{_(!1),i?.()},onFocus:()=>{_(!0),a?.()},ref:y,role:"separator",style:{...B,...d},tabIndex:f,[V.groupDirection]:k,[V.groupId]:W,[V.resizeHandle]:"",[V.resizeHandleActive]:T==="drag"?"pointer":X?"keyboard":void 0,[V.resizeHandleEnabled]:!t,[V.resizeHandleId]:U,[V.resizeHandleState]:T})}Xt.displayName="PanelResizeHandle";function dr(n){const e=A.c(10);let t,s,r;e[0]!==n?({className:t,ref:r,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);let i;e[4]!==t?(i=ve("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=i):i=e[5];let o;return e[6]!==s||e[7]!==r||e[8]!==i?(o=c.jsx(Vt,{ref:r,"data-slot":"resizable-panel-group",className:i,...s}),e[6]=s,e[7]=r,e[8]=i,e[9]=o):o=e[9],o}function fr(n){const e=A.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let s;return e[2]!==t?(s=c.jsx(Nt,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=s):s=e[3],s}function pr(n){const e=A.c(12);let t,s,r;e[0]!==n?({withHandle:r,className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);let i;e[4]!==t?(i=ve("bg-border focus-visible:ring-ring relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),e[4]=t,e[5]=i):i=e[5];let o;e[6]!==r?(o=r&&c.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:c.jsx(hn,{className:"size-2.5"})}),e[6]=r,e[7]=o):o=e[7];let l;return e[8]!==s||e[9]!==i||e[10]!==o?(l=c.jsx(Xt,{"data-slot":"resizable-handle",className:i,...s,children:o}),e[8]=s,e[9]=i,e[10]=o,e[11]=l):l=e[11],l}function Qt(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function oe(n,e,t,s){const r=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${r?`?${r}`:""}`}async function le(n,e){const t=await fetch(n,e);if(!t.ok){let s="";try{s=(await t.json()).error??""}catch{}throw new Error(s||`HTTP ${t.status}`)}return t}function mr(n,e){const t=A.c(11),{org:s}=se();let r;t[0]!==s.id||t[1]!==e||t[2]!==n?(r=Y.orgFsList(s.id,n,e),t[0]=s.id,t[1]=e,t[2]=n,t[3]=r):r=t[3];let i;t[4]!==s.slug||t[5]!==e||t[6]!==n?(i=async()=>(await(await le(oe(s.slug,n,"list",{path:e}))).json()).entries.toSorted(ds),t[4]=s.slug,t[5]=e,t[6]=n,t[7]=i):i=t[7];let o;return t[8]!==r||t[9]!==i?(o={queryKey:r,placeholderData:an,queryFn:i},t[8]=r,t[9]=i,t[10]=o):o=t[10],be(o)}function ds(n,e){return n.kind!==e.kind?n.kind==="dir"?-1:1:n.path.localeCompare(e.path)}function Jt(n,e,t){const s=A.c(15),{org:r}=se();let i;s[0]!==r.id||s[1]!==e||s[2]!==n?(i=Y.orgFsStat(r.id,n??"",e),s[0]=r.id,s[1]=e,s[2]=n,s[3]=i):i=s[3];const o=n!==null;let l;s[4]!==t?(l=t?.refetchIntervalWhenAbsent?p=>p.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=l):l=s[5];let a;s[6]!==r.slug||s[7]!==e||s[8]!==n?(a=async()=>{const p=await fetch(oe(r.slug,n??"","stat",{path:e}));if(p.status===404)return null;if(!p.ok)throw new Error(`HTTP ${p.status}`);return(await p.json()).entry},s[6]=r.slug,s[7]=e,s[8]=n,s[9]=a):a=s[9];let u;return s[10]!==i||s[11]!==o||s[12]!==l||s[13]!==a?(u={queryKey:i,enabled:o,refetchInterval:l,queryFn:a},s[10]=i,s[11]=o,s[12]=l,s[13]=a,s[14]=u):u=s[14],be(u)}function hr(n){const e=A.c(9),{org:t}=se();let s;e[0]!==t.id||e[1]!==n?(s=Y.orgFsUsage(t.id,n),e[0]=t.id,e[1]=n,e[2]=s):s=e[2];let r;e[3]!==t.slug||e[4]!==n?(r=async()=>await(await le(oe(t.slug,n,"usage"))).json(),e[3]=t.slug,e[4]=n,e[5]=r):r=e[5];let i;return e[6]!==s||e[7]!==r?(i={queryKey:s,queryFn:r},e[6]=s,e[7]=r,e[8]=i):i=e[8],be(i)}function xr(n,e){const t=A.c(9),s=n===void 0?60:n,{org:r}=se();let i;t[0]!==r.id?(i=Y.orgFsRecent(r.id),t[0]=r.id,t[1]=i):i=t[1];const o=e?.enabled;let l;t[2]!==s||t[3]!==r.slug?(l=async()=>(await(await le(`/api/${encodeURIComponent(r.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=r.slug,t[4]=l):l=t[4];let a;return t[5]!==i||t[6]!==o||t[7]!==l?(a={queryKey:i,enabled:o,queryFn:l},t[5]=i,t[6]=o,t[7]=l,t[8]=a):a=t[8],be(a)}function gr(n){const e=A.c(8),{org:t}=se();let s;e[0]!==t.id?(s=Y.orgFsSkills(t.id),e[0]=t.id,e[1]=s):s=e[1];const r=n?.enabled;let i;e[2]!==t.slug?(i=async()=>{const l=await le(`/api/${encodeURIComponent(t.slug)}/fs/public-sets`),{sets:a}=await l.json(),u=["home",...a.map(ps)];return(await Promise.all(u.map(async d=>{const f=await le(oe(t.slug,d,"list",{path:""})),{entries:x}=await f.json();return x.filter(fs).map(m=>({volume:d,path:m.path}))}))).flat()},e[2]=t.slug,e[3]=i):i=e[3];let o;return e[4]!==s||e[5]!==r||e[6]!==i?(o={queryKey:s,enabled:r,queryFn:i},e[4]=s,e[5]=r,e[6]=i,e[7]=o):o=e[7],be(o)}function fs(n){return n.kind==="dir"&&n.hasSkill}function ps(n){return`public-${n}`}function yr(){const n=A.c(7),{org:e}=se();let t;n[0]!==e.id?(t=Y.orgFsPublicSets(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=async()=>(await(await le(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,n[2]=e.slug,n[3]=s):s=n[3];let r;return n[4]!==t||n[5]!==s?(r={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=r):r=n[6],be(r)}function ms(n){const e=A.c(3),{org:t}=se();let s;return e[0]!==t.slug||e[1]!==n?(s=r=>oe(t.slug,n,"read",{path:r}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function wr(){const n=A.c(2),{org:e}=se();let t;return n[0]!==e.slug?(t=(s,r)=>oe(e.slug,s,"read",{path:r}),n[0]=e.slug,n[1]=t):t=n[1],t}function hs(n){const e=A.c(3),{org:t}=se();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async r=>(await(await le(oe(t.slug,n,"file",{path:r.path}),{method:"PUT",headers:{"content-type":r.contentType??"text/html; charset=utf-8"},body:r.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],Ie(s)}function xs(n){const e=A.c(18),{org:t}=se(),s=st();let r;e[0]!==t||e[1]!==n?(r=async u=>(await(await le(oe(t.slug,n,"public",{path:u.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:u.mode,password:u.password})})).json()).entry,e[0]=t,e[1]=n,e[2]=r):r=e[2];let i;e[3]!==t||e[4]!==s||e[5]!==n?(i=async u=>{const p=Y.orgFsStat(t.id,n,u.path);await s.cancelQueries({queryKey:p});const d=s.getQueryData(p),f=u.mode!=="private";return s.setQueryData(p,x=>x&&{...x,readPublic:f,effectivePublic:f,shareMode:u.mode}),{key:p,previous:d}},e[3]=t,e[4]=s,e[5]=n,e[6]=i):i=e[6];let o;e[7]!==s?(o=(u,p,d)=>{d&&s.setQueryData(d.key,d.previous)},e[7]=s,e[8]=o):o=e[8];let l;e[9]!==t||e[10]!==s||e[11]!==n?(l=(u,p,d)=>{s.invalidateQueries({queryKey:Y.orgFsStat(t.id,n,d.path)}),s.invalidateQueries({queryKey:Y.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:Y.orgFsRecent(t.id)})},e[9]=t,e[10]=s,e[11]=n,e[12]=l):l=e[12];let a;return e[13]!==r||e[14]!==i||e[15]!==o||e[16]!==l?(a={mutationFn:r,onMutate:i,onError:o,onSettled:l},e[13]=r,e[14]=i,e[15]=o,e[16]=l,e[17]=a):a=e[17],Ie(a)}function vr(n){const e=A.c(26),{org:t}=se(),s=st();let r;e[0]!==t||e[1]!==s||e[2]!==n?(r=()=>{s.invalidateQueries({queryKey:Y.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:Y.orgFsRecent(t.id)})},e[0]=t,e[1]=s,e[2]=n,e[3]=r):r=e[3];const i=r;let o;e[4]!==t||e[5]!==n?(o=async v=>{for(const y of v.files){const P=v.dir?`${v.dir}/${y.name}`:y.name;await le(oe(t.slug,n,"file",{path:P}),{method:"PUT",headers:{"content-type":y.type||"application/octet-stream"},body:y})}},e[4]=t,e[5]=n,e[6]=o):o=e[6];let l;e[7]!==i||e[8]!==o?(l={mutationFn:o,onSettled:i},e[7]=i,e[8]=o,e[9]=l):l=e[9];const a=Ie(l);let u;e[10]!==t||e[11]!==n?(u=async v=>{await le(oe(t.slug,n,"dir",{path:v}),{method:"POST"})},e[10]=t,e[11]=n,e[12]=u):u=e[12];let p;e[13]!==i||e[14]!==u?(p={mutationFn:u,onSuccess:i},e[13]=i,e[14]=u,e[15]=p):p=e[15];const d=Ie(p);let f;e[16]!==t||e[17]!==n?(f=async v=>{await le(oe(t.slug,n,"file",{path:v}),{method:"DELETE"})},e[16]=t,e[17]=n,e[18]=f):f=e[18];let x;e[19]!==i||e[20]!==f?(x={mutationFn:f,onSuccess:i},e[19]=i,e[20]=f,e[21]=x):x=e[21];const m=Ie(x);let z;return e[22]!==d||e[23]!==m||e[24]!==a?(z={upload:a,mkdir:d,remove:m},e[22]=d,e[23]=m,e[24]=a,e[25]=z):z=e[25],z}function gs(n){if(!n||n.includes("\\")||n.includes("..")||n.includes("\0"))return!0;try{const e=decodeURIComponent(n);if(e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;if(e!==n&&e.includes("/")){const t=(n.match(/\//g)??[]).length;if((e.match(/\//g)??[]).length>t)return!0}return!1}catch{return!0}}function ys(n){if(gs(n))throw new Error(`Invalid block key: ${n||"(empty)"}`)}function ws(n){try{return decodeURIComponent(n)}catch{return n}}function vs(n){return ys(n),encodeURIComponent(n)}function bs(n){return`.deco/blocks/${vs(n)}.json`}function br(n){return`/${bs(n)}`}const Sr=1e4,Ss=3;function nt(n){return n.trim()?(n.startsWith("/")?n:`/${n}`).replace(/\/+/g,"/"):"/"}function at(n){return n.startsWith("/")?n.slice(1):n}function Oe(n){return n.trim()?n.startsWith("/")?n:`/${n}`:"/"}function zs(n){const e=Oe(n);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function zr(n,e){const t=e.replace(/^\/+|\/+$/g,"");return Oe(t?`${n==="/"?"":n}/${t}`:n)}function jr(n,e){return e==="directory"?n:zs(n)}function kr(n){const e=n.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function js(n){const e=at(n);return e?e.split("/").filter(Boolean).length:0}function Pr(n,e,t,s=!1){return{files:[...new Set([...n,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:s||!!t.truncated}}function Cr(n,e){return js(n)>=Ss&&!e.has(n)}function $r(n,e,t=[]){const s=at(n);if(e.includes(s)||t.includes(s))return!0;if(!s)return!1;const r=`${s}/`;return e.some(i=>i.startsWith(r))||t.some(i=>i.startsWith(r))}function Er(n){const e=at(n),t=".deco/blocks/";if(!e.startsWith(t)||!e.endsWith(".json"))return null;const s=e.slice(t.length,-5);return ws(s)}function ks(n){if(!n)return"plaintext";const e=n.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?"typescript":e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?"javascript":e.endsWith(".json")?"json":e.endsWith(".md")||e.endsWith(".mdx")?"markdown":e.endsWith(".css")?"css":e.endsWith(".scss")?"scss":e.endsWith(".html")?"html":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":e.endsWith(".xml")||e.endsWith(".svg")?"xml":e.endsWith(".py")?"python":e.endsWith(".sql")?"sql":e.endsWith(".sh")?"shell":"plaintext"}function Nr(n){const e=nt(n).split("/").filter(Boolean),t=["/"];let s="";for(const r of e.slice(0,-1))s+=`/${r}`,t.push(s);return t}function Ir(n,e=[]){const t={children:[]},s=i=>{const l=nt(i).split("/").filter(Boolean);let a=t,u="";for(const p of l){u+=`/${p}`;let d=a.children.find(f=>f.name===p);d?d.kind==="file"&&(d.kind="directory"):(d={name:p,path:u,kind:"directory",children:[]},a.children.push(d)),a=d}};for(const i of n){const l=nt(i).split("/").filter(Boolean);let a=t,u="";l.forEach((p,d)=>{u+=`/${p}`;const f=d===l.length-1;let x=a.children.find(m=>m.name===p);x||(x={name:p,path:u,kind:f?"file":"directory",children:[]},a.children.push(x)),a=x})}for(const i of e)s(Oe(i));const r=i=>{i.sort((o,l)=>o.kind!==l.kind?o.kind==="directory"?-1:1:o.name.localeCompare(l.name));for(const o of i)o.children.length>0&&r(o.children)};return r(t.children),t.children}function Ps(n,e,t=0){const s=[];for(const r of n)r.name!==".gitkeep"&&(s.push({node:r,depth:t}),r.kind==="directory"&&r.children.length>0&&e.has(r.path)&&s.push(...Ps(r.children,e,t+1)));return s}function Mr(n){return n.split(`
|
|
1
|
+
import{r as g,aK as ln,e as A,c as ve,j as c,p as se,F as st,a as Ie,K as Y,m as be,a$ as an,z as cn,l as un,B as ee,ac as dn,n as Me,ae as fn,L as pn,g as mn}from"./index-DR_rePBs.js";import{c as hn,f as xn,g as gn,b as yn,d as wn,a as vn,h as bn}from"./ZoomOut-BLdVdOct.js";import{D as Sn,a as Ze,c as kt,d as Pt}from"./dialog-BxPbOvQB.js";import{b as ue,T as de,a as fe}from"./tooltip-BYURy38b.js";import{n as Fe,i as Ct}from"./Globe01-DhUQ5HNX.js";import{n as $t}from"./LinkExternal01-DvInJfCe.js";import{s as zn}from"./XClose-C3jOtT-R.js";import{S as _e}from"./skeleton-CtgijdMV.js";import{l as jn,F as kn}from"./index-C2R2thJn.js";import{F as et,M as Pn}from"./file-type-icon-DXOOqaDU.js";import{D as Cn,a as $n,b as En,c as dt}from"./dropdown-menu-DdGNF14G.js";import{i as Nn}from"./LayoutLeft-CiWu8qBT.js";import{I as In}from"./input-y1TM2XAx.js";import{a as Mn,P as Rn,b as Dn}from"./popover-dr7pU8MM.js";import{i as Ln}from"./ChevronUp-k8vE0jpp.js";import{a as _n}from"./Eye-CFgk5O7d.js";import{i as An}from"./Key01-BDydLAZy.js";const We=g.createContext(null);We.displayName="PanelGroupContext";const V={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},rt=10,ye=g.useLayoutEffect,ft=ln.useId,Tn=typeof ft=="function"?ft:()=>null;let Fn=0;function it(n=null){const e=Tn(),t=g.useRef(n||e||null);return t.current===null&&(t.current=""+Fn++),n??t.current}function Et({children:n,className:e="",collapsedSize:t,collapsible:s,defaultSize:r,forwardedRef:i,id:o,maxSize:l,minSize:a,onCollapse:u,onExpand:p,onResize:d,order:f,style:x,tagName:m="div",...z}){const v=g.useContext(We);if(v===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:P,getPanelSize:M,getPanelStyle:k,groupId:W,isPanelCollapsed:N,reevaluatePanelConstraints:w,registerPanel:K,resizePanel:q,unregisterPanel:U}=v,T=it(o),D=g.useRef({callbacks:{onCollapse:u,onExpand:p,onResize:d},constraints:{collapsedSize:t,collapsible:s,defaultSize:r,maxSize:l,minSize:a},id:T,idIsFromProps:o!==void 0,order:f});g.useRef({didLogMissingDefaultSizeWarning:!1}),ye(()=>{const{callbacks:_,constraints:L}=D.current,F={...L};D.current.id=T,D.current.idIsFromProps=o!==void 0,D.current.order=f,_.onCollapse=u,_.onExpand=p,_.onResize=d,L.collapsedSize=t,L.collapsible=s,L.defaultSize=r,L.maxSize=l,L.minSize=a,(F.collapsedSize!==L.collapsedSize||F.collapsible!==L.collapsible||F.maxSize!==L.maxSize||F.minSize!==L.minSize)&&w(D.current,F)}),ye(()=>{const _=D.current;return K(_),()=>{U(_)}},[f,T,K,U]),g.useImperativeHandle(i,()=>({collapse:()=>{y(D.current)},expand:_=>{P(D.current,_)},getId(){return T},getSize(){return M(D.current)},isCollapsed(){return N(D.current)},isExpanded(){return!N(D.current)},resize:_=>{q(D.current,_)}}),[y,P,M,N,T,q]);const X=k(D.current,r);return g.createElement(m,{...z,children:n,className:e,id:T,style:{...X,...x},[V.groupId]:W,[V.panel]:"",[V.panelCollapsible]:s||void 0,[V.panelId]:T,[V.panelSize]:parseFloat(""+X.flexGrow).toFixed(1)})}const Nt=g.forwardRef((n,e)=>g.createElement(Et,{...n,forwardedRef:e}));Et.displayName="Panel";Nt.displayName="forwardRef(Panel)";let tt=null,Te=-1,he=null;function Hn(n,e){if(e){const t=(e&Lt)!==0,s=(e&_t)!==0,r=(e&At)!==0,i=(e&Tt)!==0;if(t)return r?"se-resize":i?"ne-resize":"e-resize";if(s)return r?"sw-resize":i?"nw-resize":"w-resize";if(r)return"s-resize";if(i)return"n-resize"}switch(n){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Un(){he!==null&&(document.head.removeChild(he),tt=null,he=null,Te=-1)}function Ve(n,e){var t,s;const r=Hn(n,e);if(tt!==r){if(tt=r,he===null&&(he=document.createElement("style"),document.head.appendChild(he)),Te>=0){var i;(i=he.sheet)===null||i===void 0||i.removeRule(Te)}Te=(t=(s=he.sheet)===null||s===void 0?void 0:s.insertRule(`*{cursor: ${r} !important;}`))!==null&&t!==void 0?t:-1}}function It(n){return n.type==="keydown"}function Mt(n){return n.type.startsWith("pointer")}function Rt(n){return n.type.startsWith("mouse")}function qe(n){if(Mt(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(Rt(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function On(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Wn(n,e,t){return n.x<e.x+e.width&&n.x+n.width>e.x&&n.y<e.y+e.height&&n.y+n.height>e.y}function qn(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:ht(n),b:ht(e)};let s;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),s=n;E(s,"Stacking order can only be calculated for elements with a common ancestor");const r={a:mt(pt(t.a)),b:mt(pt(t.b))};if(r.a===r.b){const i=s.childNodes,o={a:t.a.at(-1),b:t.b.at(-1)};let l=i.length;for(;l--;){const a=i[l];if(a===o.a)return 1;if(a===o.b)return-1}}return Math.sign(r.a-r.b)}const Bn=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Kn(n){var e;const t=getComputedStyle((e=Dt(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function Gn(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Kn(n))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||Bn.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function pt(n){let e=n.length;for(;e--;){const t=n[e];if(E(t,"Missing node"),Gn(t))return t}return null}function mt(n){return n&&Number(getComputedStyle(n).zIndex)||0}function ht(n){const e=[];for(;n;)e.push(n),n=Dt(n);return e}function Dt(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const Lt=1,_t=2,At=4,Tt=8,Vn=On()==="coarse";let ie=[],Pe=!1,ge=new Map,Be=new Map;const Re=new Set;function Xn(n,e,t,s,r){var i;const{ownerDocument:o}=e,l={direction:t,element:e,hitAreaMargins:s,setResizeHandlerState:r},a=(i=ge.get(o))!==null&&i!==void 0?i:0;return ge.set(o,a+1),Re.add(l),He(),function(){var p;Be.delete(n),Re.delete(l);const d=(p=ge.get(o))!==null&&p!==void 0?p:1;if(ge.set(o,d-1),He(),d===1&&ge.delete(o),ie.includes(l)){const f=ie.indexOf(l);f>=0&&ie.splice(f,1),lt(),r("up",!0,null)}}}function Qn(n){const{target:e}=n,{x:t,y:s}=qe(n);Pe=!0,ot({target:e,x:t,y:s}),He(),ie.length>0&&(Ue("down",n),n.preventDefault(),Ft(e)||n.stopImmediatePropagation())}function Xe(n){const{x:e,y:t}=qe(n);if(Pe&&n.buttons===0&&(Pe=!1,Ue("up",n)),!Pe){const{target:s}=n;ot({target:s,x:e,y:t})}Ue("move",n),lt(),ie.length>0&&n.preventDefault()}function Qe(n){const{target:e}=n,{x:t,y:s}=qe(n);Be.clear(),Pe=!1,ie.length>0&&(n.preventDefault(),Ft(e)||n.stopImmediatePropagation()),Ue("up",n),ot({target:e,x:t,y:s}),lt(),He()}function Ft(n){let e=n;for(;e;){if(e.hasAttribute(V.resizeHandle))return!0;e=e.parentElement}return!1}function ot({target:n,x:e,y:t}){ie.splice(0);let s=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(s=n),Re.forEach(r=>{const{element:i,hitAreaMargins:o}=r,l=i.getBoundingClientRect(),{bottom:a,left:u,right:p,top:d}=l,f=Vn?o.coarse:o.fine;if(e>=u-f&&e<=p+f&&t>=d-f&&t<=a+f){if(s!==null&&document.contains(s)&&i!==s&&!i.contains(s)&&!s.contains(i)&&qn(s,i)>0){let m=s,z=!1;for(;m&&!m.contains(i);){if(Wn(m.getBoundingClientRect(),l)){z=!0;break}m=m.parentElement}if(z)return}ie.push(r)}})}function Je(n,e){Be.set(n,e)}function lt(){let n=!1,e=!1;ie.forEach(s=>{const{direction:r}=s;r==="horizontal"?n=!0:e=!0});let t=0;Be.forEach(s=>{t|=s}),n&&e?Ve("intersection",t):n?Ve("horizontal",t):e?Ve("vertical",t):Un()}let Ye=new AbortController;function He(){Ye.abort(),Ye=new AbortController;const n={capture:!0,signal:Ye.signal};Re.size&&(Pe?(ie.length>0&&ge.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("contextmenu",Qe,n),s.addEventListener("pointerleave",Xe,n),s.addEventListener("pointermove",Xe,n))}),window.addEventListener("pointerup",Qe,n),window.addEventListener("pointercancel",Qe,n)):ge.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("pointerdown",Qn,n),s.addEventListener("pointermove",Xe,n))}))}function Ue(n,e){Re.forEach(t=>{const{setResizeHandlerState:s}=t,r=ie.includes(t);s(n,r,e)})}function Jn(){const[n,e]=g.useState(0);return g.useCallback(()=>e(t=>t+1),[])}function E(n,e){if(!n)throw console.error(e),Error(e)}function we(n,e,t=rt){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function pe(n,e,t=rt){return we(n,e,t)===0}function te(n,e,t){return we(n,e,t)===0}function Yn(n,e,t){if(n.length!==e.length)return!1;for(let s=0;s<n.length;s++){const r=n[s],i=e[s];if(!te(r,i,t))return!1}return!0}function ke({panelConstraints:n,panelIndex:e,size:t}){const s=n[e];E(s!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:r=0,collapsible:i,maxSize:o=100,minSize:l=0}=s;if(we(t,l)<0)if(i){const a=(r+l)/2;we(t,a)<0?t=r:t=l}else t=l;return t=Math.min(o,t),t=parseFloat(t.toFixed(rt)),t}function Ee({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:s,prevLayout:r,trigger:i}){if(te(n,0))return e;const o=[...e],[l,a]=s;E(l!=null,"Invalid first pivot index"),E(a!=null,"Invalid second pivot index");let u=0;if(i==="keyboard"){{const d=n<0?a:l,f=t[d];E(f,`Panel constraints not found for index ${d}`);const{collapsedSize:x=0,collapsible:m,minSize:z=0}=f;if(m){const v=e[d];if(E(v!=null,`Previous layout not found for panel index ${d}`),te(v,x)){const y=z-v;we(y,Math.abs(n))>0&&(n=n<0?0-y:y)}}}{const d=n<0?l:a,f=t[d];E(f,`No panel constraints found for index ${d}`);const{collapsedSize:x=0,collapsible:m,minSize:z=0}=f;if(m){const v=e[d];if(E(v!=null,`Previous layout not found for panel index ${d}`),te(v,z)){const y=v-x;we(y,Math.abs(n))>0&&(n=n<0?0-y:y)}}}}{const d=n<0?1:-1;let f=n<0?a:l,x=0;for(;;){const z=e[f];E(z!=null,`Previous layout not found for panel index ${f}`);const y=ke({panelConstraints:t,panelIndex:f,size:100})-z;if(x+=y,f+=d,f<0||f>=t.length)break}const m=Math.min(Math.abs(n),Math.abs(x));n=n<0?0-m:m}{let f=n<0?l:a;for(;f>=0&&f<t.length;){const x=Math.abs(n)-Math.abs(u),m=e[f];E(m!=null,`Previous layout not found for panel index ${f}`);const z=m-x,v=ke({panelConstraints:t,panelIndex:f,size:z});if(!te(m,v)&&(u+=m-v,o[f]=v,u.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?f--:f++}}if(Yn(r,o))return r;{const d=n<0?a:l,f=e[d];E(f!=null,`Previous layout not found for panel index ${d}`);const x=f+u,m=ke({panelConstraints:t,panelIndex:d,size:x});if(o[d]=m,!te(m,x)){let z=x-m,y=n<0?a:l;for(;y>=0&&y<t.length;){const P=o[y];E(P!=null,`Previous layout not found for panel index ${y}`);const M=P+z,k=ke({panelConstraints:t,panelIndex:y,size:M});if(te(P,k)||(z-=k-P,o[y]=k),te(z,0))break;n>0?y--:y++}}}const p=o.reduce((d,f)=>f+d,0);return te(p,100)?o:r}function Zn({layout:n,panelsArray:e,pivotIndices:t}){let s=0,r=100,i=0,o=0;const l=t[0];E(l!=null,"No pivot index found"),e.forEach((d,f)=>{const{constraints:x}=d,{maxSize:m=100,minSize:z=0}=x;f===l?(s=z,r=m):(i+=z,o+=m)});const a=Math.min(r,100-i),u=Math.max(s,100-o),p=n[l];return{valueMax:a,valueMin:u,valueNow:p}}function De(n,e=document){return Array.from(e.querySelectorAll(`[${V.resizeHandleId}][data-panel-group-id="${n}"]`))}function Ht(n,e,t=document){const r=De(n,t).findIndex(i=>i.getAttribute(V.resizeHandleId)===e);return r??null}function Ut(n,e,t){const s=Ht(n,e,t);return s!=null?[s,s+1]:[-1,-1]}function Ot(n,e=document){var t;if(e instanceof HTMLElement&&(e==null||(t=e.dataset)===null||t===void 0?void 0:t.panelGroupId)==n)return e;const s=e.querySelector(`[data-panel-group][data-panel-group-id="${n}"]`);return s||null}function Ke(n,e=document){const t=e.querySelector(`[${V.resizeHandleId}="${n}"]`);return t||null}function es(n,e,t,s=document){var r,i,o,l;const a=Ke(e,s),u=De(n,s),p=a?u.indexOf(a):-1,d=(r=(i=t[p])===null||i===void 0?void 0:i.id)!==null&&r!==void 0?r:null,f=(o=(l=t[p+1])===null||l===void 0?void 0:l.id)!==null&&o!==void 0?o:null;return[d,f]}function ts({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:s,panelDataArray:r,panelGroupElement:i,setLayout:o}){g.useRef({didWarnAboutMissingResizeHandle:!1}),ye(()=>{if(!i)return;const l=De(t,i);for(let a=0;a<r.length-1;a++){const{valueMax:u,valueMin:p,valueNow:d}=Zn({layout:s,panelsArray:r,pivotIndices:[a,a+1]}),f=l[a];if(f!=null){const x=r[a];E(x,`No panel data found for index "${a}"`),f.setAttribute("aria-controls",x.id),f.setAttribute("aria-valuemax",""+Math.round(u)),f.setAttribute("aria-valuemin",""+Math.round(p)),f.setAttribute("aria-valuenow",d!=null?""+Math.round(d):"")}}return()=>{l.forEach((a,u)=>{a.removeAttribute("aria-controls"),a.removeAttribute("aria-valuemax"),a.removeAttribute("aria-valuemin"),a.removeAttribute("aria-valuenow")})}},[t,s,r,i]),g.useEffect(()=>{if(!i)return;const l=e.current;E(l,"Eager values not found");const{panelDataArray:a}=l,u=Ot(t,i);E(u!=null,`No group found for id "${t}"`);const p=De(t,i);E(p,`No resize handles found for group id "${t}"`);const d=p.map(f=>{const x=f.getAttribute(V.resizeHandleId);E(x,"Resize handle element has no handle id attribute");const[m,z]=es(t,x,a,i);if(m==null||z==null)return()=>{};const v=y=>{if(!y.defaultPrevented)switch(y.key){case"Enter":{y.preventDefault();const P=a.findIndex(M=>M.id===m);if(P>=0){const M=a[P];E(M,`No panel data found for index ${P}`);const k=s[P],{collapsedSize:W=0,collapsible:N,minSize:w=0}=M.constraints;if(k!=null&&N){const K=Ee({delta:te(k,W)?w-W:W-k,initialLayout:s,panelConstraints:a.map(q=>q.constraints),pivotIndices:Ut(t,x,i),prevLayout:s,trigger:"keyboard"});s!==K&&o(K)}}break}}};return f.addEventListener("keydown",v),()=>{f.removeEventListener("keydown",v)}});return()=>{d.forEach(f=>f())}},[i,n,e,t,s,r,o])}function xt(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function Wt(n,e){const t=n==="horizontal",{x:s,y:r}=qe(e);return t?s:r}function ns(n,e,t,s,r){const i=t==="horizontal",o=Ke(e,r);E(o,`No resize handle element found for id "${e}"`);const l=o.getAttribute(V.groupId);E(l,"Resize handle element has no group id attribute");let{initialCursorPosition:a}=s;const u=Wt(t,n),p=Ot(l,r);E(p,`No group element found for id "${l}"`);const d=p.getBoundingClientRect(),f=i?d.width:d.height;return(u-a)/f*100}function ss(n,e,t,s,r,i){if(It(n)){const o=t==="horizontal";let l=0;n.shiftKey?l=100:r!=null?l=r:l=10;let a=0;switch(n.key){case"ArrowDown":a=o?0:l;break;case"ArrowLeft":a=o?-l:0;break;case"ArrowRight":a=o?l:0;break;case"ArrowUp":a=o?0:-l;break;case"End":a=100;break;case"Home":a=-100;break}return a}else return s==null?0:ns(n,e,t,s,i)}function rs({panelDataArray:n}){const e=Array(n.length),t=n.map(i=>i.constraints);let s=0,r=100;for(let i=0;i<n.length;i++){const o=t[i];E(o,`Panel constraints not found for index ${i}`);const{defaultSize:l}=o;l!=null&&(s++,e[i]=l,r-=l)}for(let i=0;i<n.length;i++){const o=t[i];E(o,`Panel constraints not found for index ${i}`);const{defaultSize:l}=o;if(l!=null)continue;const a=n.length-s,u=r/a;s++,e[i]=u,r-=u}return e}function Se(n,e,t){e.forEach((s,r)=>{const i=n[r];E(i,`Panel data not found for index ${r}`);const{callbacks:o,constraints:l,id:a}=i,{collapsedSize:u=0,collapsible:p}=l,d=t[a];if(d==null||s!==d){t[a]=s;const{onCollapse:f,onExpand:x,onResize:m}=o;m&&m(s,d),p&&(f||x)&&(x&&(d==null||pe(d,u))&&!pe(s,u)&&x(),f&&(d==null||!pe(d,u))&&pe(s,u)&&f())}})}function Ae(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t])return!1;return!0}function is({defaultSize:n,dragState:e,layout:t,panelData:s,panelIndex:r,precision:i=3}){const o=t[r];let l;return o==null?l=n!=null?n.toPrecision(i):"1":s.length===1?l="1":l=o.toPrecision(i),{flexBasis:0,flexGrow:l,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function os(n,e=10){let t=null;return(...r)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...r)},e)}}function gt(n){try{if(typeof localStorage<"u")n.getItem=e=>localStorage.getItem(e),n.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),n.getItem=()=>null,n.setItem=()=>{}}}function qt(n){return`react-resizable-panels:${n}`}function Bt(n){return n.map(e=>{const{constraints:t,id:s,idIsFromProps:r,order:i}=e;return r?s:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function Kt(n,e){try{const t=qt(n),s=e.getItem(t);if(s){const r=JSON.parse(s);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function ls(n,e,t){var s,r;const i=(s=Kt(n,t))!==null&&s!==void 0?s:{},o=Bt(e);return(r=i[o])!==null&&r!==void 0?r:null}function as(n,e,t,s,r){var i;const o=qt(n),l=Bt(e),a=(i=Kt(n,r))!==null&&i!==void 0?i:{};a[l]={expandToSizes:Object.fromEntries(t.entries()),layout:s};try{r.setItem(o,JSON.stringify(a))}catch(u){console.error(u)}}function yt({layout:n,panelConstraints:e}){const t=[...n],s=t.reduce((i,o)=>i+o,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(i=>`${i}%`).join(", ")}`);if(!te(s,100)&&t.length>0)for(let i=0;i<e.length;i++){const o=t[i];E(o!=null,`No layout data found for index ${i}`);const l=100/s*o;t[i]=l}let r=0;for(let i=0;i<e.length;i++){const o=t[i];E(o!=null,`No layout data found for index ${i}`);const l=ke({panelConstraints:e,panelIndex:i,size:o});o!=l&&(r+=o-l,t[i]=l)}if(!te(r,0))for(let i=0;i<e.length;i++){const o=t[i];E(o!=null,`No layout data found for index ${i}`);const l=o+r,a=ke({panelConstraints:e,panelIndex:i,size:l});if(o!==a&&(r-=a-o,t[i]=a,te(r,0)))break}return t}const cs=100,Ne={getItem:n=>(gt(Ne),Ne.getItem(n)),setItem:(n,e)=>{gt(Ne),Ne.setItem(n,e)}},wt={};function Gt({autoSaveId:n=null,children:e,className:t="",direction:s,forwardedRef:r,id:i=null,onLayout:o=null,keyboardResizeBy:l=null,storage:a=Ne,style:u,tagName:p="div",...d}){const f=it(i),x=g.useRef(null),[m,z]=g.useState(null),[v,y]=g.useState([]),P=Jn(),M=g.useRef({}),k=g.useRef(new Map),W=g.useRef(0),N=g.useRef({autoSaveId:n,direction:s,dragState:m,id:f,keyboardResizeBy:l,onLayout:o,storage:a}),w=g.useRef({layout:v,panelDataArray:[],panelDataArrayChanged:!1});g.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),g.useImperativeHandle(r,()=>({getId:()=>N.current.id,getLayout:()=>{const{layout:h}=w.current;return h},setLayout:h=>{const{onLayout:j}=N.current,{layout:I,panelDataArray:C}=w.current,b=yt({layout:h,panelConstraints:C.map($=>$.constraints)});xt(I,b)||(y(b),w.current.layout=b,j&&j(b),Se(C,b,M.current))}}),[]),ye(()=>{N.current.autoSaveId=n,N.current.direction=s,N.current.dragState=m,N.current.id=f,N.current.onLayout=o,N.current.storage=a}),ts({committedValuesRef:N,eagerValuesRef:w,groupId:f,layout:v,panelDataArray:w.current.panelDataArray,setLayout:y,panelGroupElement:x.current}),g.useEffect(()=>{const{panelDataArray:h}=w.current;if(n){if(v.length===0||v.length!==h.length)return;let j=wt[n];j==null&&(j=os(as,cs),wt[n]=j);const I=[...h],C=new Map(k.current);j(n,I,C,v,a)}},[n,v,a]),g.useEffect(()=>{});const K=g.useCallback(h=>{const{onLayout:j}=N.current,{layout:I,panelDataArray:C}=w.current;if(h.constraints.collapsible){const b=C.map(ae=>ae.constraints),{collapsedSize:$=0,panelSize:O,pivotIndices:Q}=xe(C,h,I);if(E(O!=null,`Panel size not found for panel "${h.id}"`),!pe(O,$)){k.current.set(h.id,O);const ce=ze(C,h)===C.length-1?O-$:$-O,G=Ee({delta:ce,initialLayout:I,panelConstraints:b,pivotIndices:Q,prevLayout:I,trigger:"imperative-api"});Ae(I,G)||(y(G),w.current.layout=G,j&&j(G),Se(C,G,M.current))}}},[]),q=g.useCallback((h,j)=>{const{onLayout:I}=N.current,{layout:C,panelDataArray:b}=w.current;if(h.constraints.collapsible){const $=b.map(re=>re.constraints),{collapsedSize:O=0,panelSize:Q=0,minSize:ae=0,pivotIndices:ce}=xe(b,h,C),G=j??ae;if(pe(Q,O)){const re=k.current.get(h.id),Ce=re!=null&&re>=G?re:G,Ge=ze(b,h)===b.length-1?Q-Ce:Ce-Q,Z=Ee({delta:Ge,initialLayout:C,panelConstraints:$,pivotIndices:ce,prevLayout:C,trigger:"imperative-api"});Ae(C,Z)||(y(Z),w.current.layout=Z,I&&I(Z),Se(b,Z,M.current))}}},[]),U=g.useCallback(h=>{const{layout:j,panelDataArray:I}=w.current,{panelSize:C}=xe(I,h,j);return E(C!=null,`Panel size not found for panel "${h.id}"`),C},[]),T=g.useCallback((h,j)=>{const{panelDataArray:I}=w.current,C=ze(I,h);return is({defaultSize:j,dragState:m,layout:v,panelData:I,panelIndex:C})},[m,v]),D=g.useCallback(h=>{const{layout:j,panelDataArray:I}=w.current,{collapsedSize:C=0,collapsible:b,panelSize:$}=xe(I,h,j);return E($!=null,`Panel size not found for panel "${h.id}"`),b===!0&&pe($,C)},[]),X=g.useCallback(h=>{const{layout:j,panelDataArray:I}=w.current,{collapsedSize:C=0,collapsible:b,panelSize:$}=xe(I,h,j);return E($!=null,`Panel size not found for panel "${h.id}"`),!b||we($,C)>0},[]),_=g.useCallback(h=>{const{panelDataArray:j}=w.current;j.push(h),j.sort((I,C)=>{const b=I.order,$=C.order;return b==null&&$==null?0:b==null?-1:$==null?1:b-$}),w.current.panelDataArrayChanged=!0,P()},[P]);ye(()=>{if(w.current.panelDataArrayChanged){w.current.panelDataArrayChanged=!1;const{autoSaveId:h,onLayout:j,storage:I}=N.current,{layout:C,panelDataArray:b}=w.current;let $=null;if(h){const Q=ls(h,b,I);Q&&(k.current=new Map(Object.entries(Q.expandToSizes)),$=Q.layout)}$==null&&($=rs({panelDataArray:b}));const O=yt({layout:$,panelConstraints:b.map(Q=>Q.constraints)});xt(C,O)||(y(O),w.current.layout=O,j&&j(O),Se(b,O,M.current))}}),ye(()=>{const h=w.current;return()=>{h.layout=[]}},[]);const L=g.useCallback(h=>{let j=!1;const I=x.current;return I&&window.getComputedStyle(I,null).getPropertyValue("direction")==="rtl"&&(j=!0),function(b){b.preventDefault();const $=x.current;if(!$)return()=>null;const{direction:O,dragState:Q,id:ae,keyboardResizeBy:ce,onLayout:G}=N.current,{layout:re,panelDataArray:Ce}=w.current,{initialLayout:Le}=Q??{},Ge=Ut(ae,h,$);let Z=ss(b,h,O,Q,ce,$);const ct=O==="horizontal";ct&&j&&(Z=-Z);const rn=Ce.map(on=>on.constraints),$e=Ee({delta:Z,initialLayout:Le??re,panelConstraints:rn,pivotIndices:Ge,prevLayout:re,trigger:It(b)?"keyboard":"mouse-or-touch"}),ut=!Ae(re,$e);(Mt(b)||Rt(b))&&W.current!=Z&&(W.current=Z,!ut&&Z!==0?ct?Je(h,Z<0?Lt:_t):Je(h,Z<0?At:Tt):Je(h,0)),ut&&(y($e),w.current.layout=$e,G&&G($e),Se(Ce,$e,M.current))}},[]),F=g.useCallback((h,j)=>{const{onLayout:I}=N.current,{layout:C,panelDataArray:b}=w.current,$=b.map(re=>re.constraints),{panelSize:O,pivotIndices:Q}=xe(b,h,C);E(O!=null,`Panel size not found for panel "${h.id}"`);const ce=ze(b,h)===b.length-1?O-j:j-O,G=Ee({delta:ce,initialLayout:C,panelConstraints:$,pivotIndices:Q,prevLayout:C,trigger:"imperative-api"});Ae(C,G)||(y(G),w.current.layout=G,I&&I(G),Se(b,G,M.current))},[]),H=g.useCallback((h,j)=>{const{layout:I,panelDataArray:C}=w.current,{collapsedSize:b=0,collapsible:$}=j,{collapsedSize:O=0,collapsible:Q,maxSize:ae=100,minSize:ce=0}=h.constraints,{panelSize:G}=xe(C,h,I);G!=null&&($&&Q&&pe(G,b)?pe(b,O)||F(h,O):G<ce?F(h,ce):G>ae&&F(h,ae))},[F]),J=g.useCallback((h,j)=>{const{direction:I}=N.current,{layout:C}=w.current;if(!x.current)return;const b=Ke(h,x.current);E(b,`Drag handle element not found for id "${h}"`);const $=Wt(I,j);z({dragHandleId:h,dragHandleRect:b.getBoundingClientRect(),initialCursorPosition:$,initialLayout:C})},[]),ne=g.useCallback(()=>{z(null)},[]),B=g.useCallback(h=>{const{panelDataArray:j}=w.current,I=ze(j,h);I>=0&&(j.splice(I,1),delete M.current[h.id],w.current.panelDataArrayChanged=!0,P())},[P]),S=g.useMemo(()=>({collapsePanel:K,direction:s,dragState:m,expandPanel:q,getPanelSize:U,getPanelStyle:T,groupId:f,isPanelCollapsed:D,isPanelExpanded:X,reevaluatePanelConstraints:H,registerPanel:_,registerResizeHandle:L,resizePanel:F,startDragging:J,stopDragging:ne,unregisterPanel:B,panelGroupElement:x.current}),[K,m,s,q,U,T,f,D,X,H,_,L,F,J,ne,B]),R={display:"flex",flexDirection:s==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return g.createElement(We.Provider,{value:S},g.createElement(p,{...d,children:e,className:t,id:i,ref:x,style:{...R,...u},[V.group]:"",[V.groupDirection]:s,[V.groupId]:f}))}const Vt=g.forwardRef((n,e)=>g.createElement(Gt,{...n,forwardedRef:e}));Gt.displayName="PanelGroup";Vt.displayName="forwardRef(PanelGroup)";function ze(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function xe(n,e,t){const s=ze(n,e),i=s===n.length-1?[s-1,s]:[s,s+1],o=t[s];return{...e.constraints,panelSize:o,pivotIndices:i}}function us({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:s}){g.useEffect(()=>{if(n||t==null||s==null)return;const r=Ke(e,s);if(r==null)return;const i=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),t(o);break}case"F6":{o.preventDefault();const l=r.getAttribute(V.groupId);E(l,`No group element found for id "${l}"`);const a=De(l,s),u=Ht(l,e,s);E(u!==null,`No resize element found for id "${e}"`);const p=o.shiftKey?u>0?u-1:a.length-1:u+1<a.length?u+1:0;a[p].focus();break}}};return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}},[s,n,e,t])}function Xt({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:s,id:r,onBlur:i,onClick:o,onDragging:l,onFocus:a,onPointerDown:u,onPointerUp:p,style:d={},tabIndex:f=0,tagName:x="div",...m}){var z,v;const y=g.useRef(null),P=g.useRef({onClick:o,onDragging:l,onPointerDown:u,onPointerUp:p});g.useEffect(()=>{P.current.onClick=o,P.current.onDragging=l,P.current.onPointerDown=u,P.current.onPointerUp=p});const M=g.useContext(We);if(M===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:k,groupId:W,registerResizeHandle:N,startDragging:w,stopDragging:K,panelGroupElement:q}=M,U=it(r),[T,D]=g.useState("inactive"),[X,_]=g.useState(!1),[L,F]=g.useState(null),H=g.useRef({state:T});ye(()=>{H.current.state=T}),g.useEffect(()=>{if(t)F(null);else{const S=N(U);F(()=>S)}},[t,U,N]);const J=(z=s?.coarse)!==null&&z!==void 0?z:15,ne=(v=s?.fine)!==null&&v!==void 0?v:5;g.useEffect(()=>{if(t||L==null)return;const S=y.current;E(S,"Element ref not attached");let R=!1;return Xn(U,S,k,{coarse:J,fine:ne},(j,I,C)=>{if(!I){D("inactive");return}switch(j){case"down":{D("drag"),R=!1,E(C,'Expected event to be defined for "down" action'),w(U,C);const{onDragging:b,onPointerDown:$}=P.current;b?.(!0),$?.();break}case"move":{const{state:b}=H.current;R=!0,b!=="drag"&&D("hover"),E(C,'Expected event to be defined for "move" action'),L(C);break}case"up":{D("hover"),K();const{onClick:b,onDragging:$,onPointerUp:O}=P.current;$?.(!1),O?.(),R||b?.();break}}})},[J,k,t,ne,N,U,L,w,K]),us({disabled:t,handleId:U,resizeHandler:L,panelGroupElement:q});const B={touchAction:"none",userSelect:"none"};return g.createElement(x,{...m,children:n,className:e,id:r,onBlur:()=>{_(!1),i?.()},onFocus:()=>{_(!0),a?.()},ref:y,role:"separator",style:{...B,...d},tabIndex:f,[V.groupDirection]:k,[V.groupId]:W,[V.resizeHandle]:"",[V.resizeHandleActive]:T==="drag"?"pointer":X?"keyboard":void 0,[V.resizeHandleEnabled]:!t,[V.resizeHandleId]:U,[V.resizeHandleState]:T})}Xt.displayName="PanelResizeHandle";function dr(n){const e=A.c(10);let t,s,r;e[0]!==n?({className:t,ref:r,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);let i;e[4]!==t?(i=ve("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=i):i=e[5];let o;return e[6]!==s||e[7]!==r||e[8]!==i?(o=c.jsx(Vt,{ref:r,"data-slot":"resizable-panel-group",className:i,...s}),e[6]=s,e[7]=r,e[8]=i,e[9]=o):o=e[9],o}function fr(n){const e=A.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let s;return e[2]!==t?(s=c.jsx(Nt,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=s):s=e[3],s}function pr(n){const e=A.c(12);let t,s,r;e[0]!==n?({withHandle:r,className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);let i;e[4]!==t?(i=ve("bg-border focus-visible:ring-ring relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),e[4]=t,e[5]=i):i=e[5];let o;e[6]!==r?(o=r&&c.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:c.jsx(hn,{className:"size-2.5"})}),e[6]=r,e[7]=o):o=e[7];let l;return e[8]!==s||e[9]!==i||e[10]!==o?(l=c.jsx(Xt,{"data-slot":"resizable-handle",className:i,...s,children:o}),e[8]=s,e[9]=i,e[10]=o,e[11]=l):l=e[11],l}function Qt(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function oe(n,e,t,s){const r=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${r?`?${r}`:""}`}async function le(n,e){const t=await fetch(n,e);if(!t.ok){let s="";try{s=(await t.json()).error??""}catch{}throw new Error(s||`HTTP ${t.status}`)}return t}function mr(n,e){const t=A.c(11),{org:s}=se();let r;t[0]!==s.id||t[1]!==e||t[2]!==n?(r=Y.orgFsList(s.id,n,e),t[0]=s.id,t[1]=e,t[2]=n,t[3]=r):r=t[3];let i;t[4]!==s.slug||t[5]!==e||t[6]!==n?(i=async()=>(await(await le(oe(s.slug,n,"list",{path:e}))).json()).entries.toSorted(ds),t[4]=s.slug,t[5]=e,t[6]=n,t[7]=i):i=t[7];let o;return t[8]!==r||t[9]!==i?(o={queryKey:r,placeholderData:an,queryFn:i},t[8]=r,t[9]=i,t[10]=o):o=t[10],be(o)}function ds(n,e){return n.kind!==e.kind?n.kind==="dir"?-1:1:n.path.localeCompare(e.path)}function Jt(n,e,t){const s=A.c(15),{org:r}=se();let i;s[0]!==r.id||s[1]!==e||s[2]!==n?(i=Y.orgFsStat(r.id,n??"",e),s[0]=r.id,s[1]=e,s[2]=n,s[3]=i):i=s[3];const o=n!==null;let l;s[4]!==t?(l=t?.refetchIntervalWhenAbsent?p=>p.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=l):l=s[5];let a;s[6]!==r.slug||s[7]!==e||s[8]!==n?(a=async()=>{const p=await fetch(oe(r.slug,n??"","stat",{path:e}));if(p.status===404)return null;if(!p.ok)throw new Error(`HTTP ${p.status}`);return(await p.json()).entry},s[6]=r.slug,s[7]=e,s[8]=n,s[9]=a):a=s[9];let u;return s[10]!==i||s[11]!==o||s[12]!==l||s[13]!==a?(u={queryKey:i,enabled:o,refetchInterval:l,queryFn:a},s[10]=i,s[11]=o,s[12]=l,s[13]=a,s[14]=u):u=s[14],be(u)}function hr(n){const e=A.c(9),{org:t}=se();let s;e[0]!==t.id||e[1]!==n?(s=Y.orgFsUsage(t.id,n),e[0]=t.id,e[1]=n,e[2]=s):s=e[2];let r;e[3]!==t.slug||e[4]!==n?(r=async()=>await(await le(oe(t.slug,n,"usage"))).json(),e[3]=t.slug,e[4]=n,e[5]=r):r=e[5];let i;return e[6]!==s||e[7]!==r?(i={queryKey:s,queryFn:r},e[6]=s,e[7]=r,e[8]=i):i=e[8],be(i)}function xr(n,e){const t=A.c(9),s=n===void 0?60:n,{org:r}=se();let i;t[0]!==r.id?(i=Y.orgFsRecent(r.id),t[0]=r.id,t[1]=i):i=t[1];const o=e?.enabled;let l;t[2]!==s||t[3]!==r.slug?(l=async()=>(await(await le(`/api/${encodeURIComponent(r.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=r.slug,t[4]=l):l=t[4];let a;return t[5]!==i||t[6]!==o||t[7]!==l?(a={queryKey:i,enabled:o,queryFn:l},t[5]=i,t[6]=o,t[7]=l,t[8]=a):a=t[8],be(a)}function gr(n){const e=A.c(8),{org:t}=se();let s;e[0]!==t.id?(s=Y.orgFsSkills(t.id),e[0]=t.id,e[1]=s):s=e[1];const r=n?.enabled;let i;e[2]!==t.slug?(i=async()=>{const l=await le(`/api/${encodeURIComponent(t.slug)}/fs/public-sets`),{sets:a}=await l.json(),u=["home",...a.map(ps)];return(await Promise.all(u.map(async d=>{const f=await le(oe(t.slug,d,"list",{path:""})),{entries:x}=await f.json();return x.filter(fs).map(m=>({volume:d,path:m.path}))}))).flat()},e[2]=t.slug,e[3]=i):i=e[3];let o;return e[4]!==s||e[5]!==r||e[6]!==i?(o={queryKey:s,enabled:r,queryFn:i},e[4]=s,e[5]=r,e[6]=i,e[7]=o):o=e[7],be(o)}function fs(n){return n.kind==="dir"&&n.hasSkill}function ps(n){return`public-${n}`}function yr(){const n=A.c(7),{org:e}=se();let t;n[0]!==e.id?(t=Y.orgFsPublicSets(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=async()=>(await(await le(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,n[2]=e.slug,n[3]=s):s=n[3];let r;return n[4]!==t||n[5]!==s?(r={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=r):r=n[6],be(r)}function ms(n){const e=A.c(3),{org:t}=se();let s;return e[0]!==t.slug||e[1]!==n?(s=r=>oe(t.slug,n,"read",{path:r}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function wr(){const n=A.c(2),{org:e}=se();let t;return n[0]!==e.slug?(t=(s,r)=>oe(e.slug,s,"read",{path:r}),n[0]=e.slug,n[1]=t):t=n[1],t}function hs(n){const e=A.c(3),{org:t}=se();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async r=>(await(await le(oe(t.slug,n,"file",{path:r.path}),{method:"PUT",headers:{"content-type":r.contentType??"text/html; charset=utf-8"},body:r.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],Ie(s)}function xs(n){const e=A.c(18),{org:t}=se(),s=st();let r;e[0]!==t||e[1]!==n?(r=async u=>(await(await le(oe(t.slug,n,"public",{path:u.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:u.mode,password:u.password})})).json()).entry,e[0]=t,e[1]=n,e[2]=r):r=e[2];let i;e[3]!==t||e[4]!==s||e[5]!==n?(i=async u=>{const p=Y.orgFsStat(t.id,n,u.path);await s.cancelQueries({queryKey:p});const d=s.getQueryData(p),f=u.mode!=="private";return s.setQueryData(p,x=>x&&{...x,readPublic:f,effectivePublic:f,shareMode:u.mode}),{key:p,previous:d}},e[3]=t,e[4]=s,e[5]=n,e[6]=i):i=e[6];let o;e[7]!==s?(o=(u,p,d)=>{d&&s.setQueryData(d.key,d.previous)},e[7]=s,e[8]=o):o=e[8];let l;e[9]!==t||e[10]!==s||e[11]!==n?(l=(u,p,d)=>{s.invalidateQueries({queryKey:Y.orgFsStat(t.id,n,d.path)}),s.invalidateQueries({queryKey:Y.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:Y.orgFsRecent(t.id)})},e[9]=t,e[10]=s,e[11]=n,e[12]=l):l=e[12];let a;return e[13]!==r||e[14]!==i||e[15]!==o||e[16]!==l?(a={mutationFn:r,onMutate:i,onError:o,onSettled:l},e[13]=r,e[14]=i,e[15]=o,e[16]=l,e[17]=a):a=e[17],Ie(a)}function vr(n){const e=A.c(26),{org:t}=se(),s=st();let r;e[0]!==t||e[1]!==s||e[2]!==n?(r=()=>{s.invalidateQueries({queryKey:Y.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:Y.orgFsRecent(t.id)})},e[0]=t,e[1]=s,e[2]=n,e[3]=r):r=e[3];const i=r;let o;e[4]!==t||e[5]!==n?(o=async v=>{for(const y of v.files){const P=v.dir?`${v.dir}/${y.name}`:y.name;await le(oe(t.slug,n,"file",{path:P}),{method:"PUT",headers:{"content-type":y.type||"application/octet-stream"},body:y})}},e[4]=t,e[5]=n,e[6]=o):o=e[6];let l;e[7]!==i||e[8]!==o?(l={mutationFn:o,onSettled:i},e[7]=i,e[8]=o,e[9]=l):l=e[9];const a=Ie(l);let u;e[10]!==t||e[11]!==n?(u=async v=>{await le(oe(t.slug,n,"dir",{path:v}),{method:"POST"})},e[10]=t,e[11]=n,e[12]=u):u=e[12];let p;e[13]!==i||e[14]!==u?(p={mutationFn:u,onSuccess:i},e[13]=i,e[14]=u,e[15]=p):p=e[15];const d=Ie(p);let f;e[16]!==t||e[17]!==n?(f=async v=>{await le(oe(t.slug,n,"file",{path:v}),{method:"DELETE"})},e[16]=t,e[17]=n,e[18]=f):f=e[18];let x;e[19]!==i||e[20]!==f?(x={mutationFn:f,onSuccess:i},e[19]=i,e[20]=f,e[21]=x):x=e[21];const m=Ie(x);let z;return e[22]!==d||e[23]!==m||e[24]!==a?(z={upload:a,mkdir:d,remove:m},e[22]=d,e[23]=m,e[24]=a,e[25]=z):z=e[25],z}function gs(n){if(!n||n.includes("\\")||n.includes("..")||n.includes("\0"))return!0;try{const e=decodeURIComponent(n);if(e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;if(e!==n&&e.includes("/")){const t=(n.match(/\//g)??[]).length;if((e.match(/\//g)??[]).length>t)return!0}return!1}catch{return!0}}function ys(n){if(gs(n))throw new Error(`Invalid block key: ${n||"(empty)"}`)}function ws(n){try{return decodeURIComponent(n)}catch{return n}}function vs(n){return ys(n),encodeURIComponent(n)}function bs(n){return`.deco/blocks/${vs(n)}.json`}function br(n){return`/${bs(n)}`}const Sr=1e4,Ss=3;function nt(n){return n.trim()?(n.startsWith("/")?n:`/${n}`).replace(/\/+/g,"/"):"/"}function at(n){return n.startsWith("/")?n.slice(1):n}function Oe(n){return n.trim()?n.startsWith("/")?n:`/${n}`:"/"}function zs(n){const e=Oe(n);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function zr(n,e){const t=e.replace(/^\/+|\/+$/g,"");return Oe(t?`${n==="/"?"":n}/${t}`:n)}function jr(n,e){return e==="directory"?n:zs(n)}function kr(n){const e=n.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function js(n){const e=at(n);return e?e.split("/").filter(Boolean).length:0}function Pr(n,e,t,s=!1){return{files:[...new Set([...n,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:s||!!t.truncated}}function Cr(n,e){return js(n)>=Ss&&!e.has(n)}function $r(n,e,t=[]){const s=at(n);if(e.includes(s)||t.includes(s))return!0;if(!s)return!1;const r=`${s}/`;return e.some(i=>i.startsWith(r))||t.some(i=>i.startsWith(r))}function Er(n){const e=at(n),t=".deco/blocks/";if(!e.startsWith(t)||!e.endsWith(".json"))return null;const s=e.slice(t.length,-5);return ws(s)}function ks(n){if(!n)return"plaintext";const e=n.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?"typescript":e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?"javascript":e.endsWith(".json")?"json":e.endsWith(".md")||e.endsWith(".mdx")?"markdown":e.endsWith(".css")?"css":e.endsWith(".scss")?"scss":e.endsWith(".html")?"html":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":e.endsWith(".xml")||e.endsWith(".svg")?"xml":e.endsWith(".py")?"python":e.endsWith(".sql")?"sql":e.endsWith(".sh")?"shell":"plaintext"}function Nr(n){const e=nt(n).split("/").filter(Boolean),t=["/"];let s="";for(const r of e.slice(0,-1))s+=`/${r}`,t.push(s);return t}function Ir(n,e=[]){const t={children:[]},s=i=>{const l=nt(i).split("/").filter(Boolean);let a=t,u="";for(const p of l){u+=`/${p}`;let d=a.children.find(f=>f.name===p);d?d.kind==="file"&&(d.kind="directory"):(d={name:p,path:u,kind:"directory",children:[]},a.children.push(d)),a=d}};for(const i of n){const l=nt(i).split("/").filter(Boolean);let a=t,u="";l.forEach((p,d)=>{u+=`/${p}`;const f=d===l.length-1;let x=a.children.find(m=>m.name===p);x||(x={name:p,path:u,kind:f?"file":"directory",children:[]},a.children.push(x)),a=x})}for(const i of e)s(Oe(i));const r=i=>{i.sort((o,l)=>o.kind!==l.kind?o.kind==="directory"?-1:1:o.name.localeCompare(l.name));for(const o of i)o.children.length>0&&r(o.children)};return r(t.children),t.children}function Ps(n,e,t=0){const s=[];for(const r of n)r.name!==".gitkeep"&&(s.push({node:r,depth:t}),r.kind==="directory"&&r.children.length>0&&e.has(r.path)&&s.push(...Ps(r.children,e,t+1)));return s}function Mr(n){return n.split(`
|
|
2
2
|
`).map(e=>{const t=e.match(/^\d+\t(.*)/);return t?t[1]:e}).join(`
|
|
3
3
|
`)}jn.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});function Cs(n){const e=A.c(11),{value:t,filename:s}=n,[r]=cn(),i=r.theme==="dark"||r.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let o;e[0]!==s?(o=ks(s),e[0]=s,e[1]=o):o=e[1];const l=i?"vs-dark":"light";let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx("div",{className:"flex h-full w-full items-center justify-center",children:c.jsx(un,{size:20,className:"animate-spin text-muted-foreground"})}),e[2]=a):a=e[2];let u,p;e[3]===Symbol.for("react.memo_cache_sentinel")?(u={enabled:!1},p={top:12,bottom:12},e[3]=u,e[4]=p):(u=e[3],p=e[4]);let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d={readOnly:!0,domReadOnly:!0,fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:3,wordWrap:"on",minimap:u,padding:p,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}},e[5]=d):d=e[5];let f;return e[6]!==s||e[7]!==o||e[8]!==l||e[9]!==t?(f=c.jsx(kn,{path:s,language:o,value:t,theme:l,loading:a,options:d},s),e[6]=s,e[7]=o,e[8]=l,e[9]=t,e[10]=f):f=e[10],f}function Yt(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/(1024*1024)).toFixed(1)} MB`}const $s=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),Es=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),vt=2*1024*1024;function Ns(n,e){const t=n.split(".").pop()?.toLowerCase()??"";return $s.has(t)?"image":t==="pdf"?"pdf":t==="html"||t==="htm"?"html":t==="md"||t==="markdown"?e<=vt?"markdown":"download":Es.has(t)&&e<=vt?"text":"download"}function Zt(){const n=A.c(2);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=c.jsx(_e,{className:"h-6 w-2/3"}),n[0]=e):e=n[0];let t;return n[1]===Symbol.for("react.memo_cache_sentinel")?(t=c.jsx("div",{className:"flex h-full w-full items-center justify-center",children:c.jsxs("div",{className:"flex w-3/4 max-w-md flex-col gap-3 p-6",children:[e,c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsx(_e,{className:"h-3 w-full"}),c.jsx(_e,{className:"h-3 w-5/6"}),c.jsx(_e,{className:"h-3 w-2/3"})]})]})}),n[1]=t):t=n[1],t}function en(n){const e=A.c(20),{file:t,note:s}=n;let r;e[0]!==t.filename?(r=c.jsx(et,{filename:t.filename,className:"h-12 w-10"}),e[0]=t.filename,e[1]=r):r=e[1];let i;e[2]!==t.filename?(i=c.jsx("span",{className:"text-sm font-medium text-foreground",children:t.filename}),e[2]=t.filename,e[3]=i):i=e[3];let o;e[4]!==t.size?(o=Yt(t.size),e[4]=t.size,e[5]=o):o=e[5];const l=s?` · ${s}`:"";let a;e[6]!==o||e[7]!==l?(a=c.jsxs("span",{className:"text-xs text-muted-foreground",children:[o,l]}),e[6]=o,e[7]=l,e[8]=a):a=e[8];let u;e[9]!==i||e[10]!==a?(u=c.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[i,a]}),e[9]=i,e[10]=a,e[11]=u):u=e[11];let p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=c.jsx(Fe,{size:14}),e[12]=p):p=e[12];let d;e[13]!==t.downloadUrl||e[14]!==t.filename?(d=c.jsx(ee,{asChild:!0,variant:"outline",size:"sm",children:c.jsxs("a",{href:t.downloadUrl,download:t.filename,children:[p,"Download"]})}),e[13]=t.downloadUrl,e[14]=t.filename,e[15]=d):d=e[15];let f;return e[16]!==r||e[17]!==u||e[18]!==d?(f=c.jsx("div",{className:"flex h-full w-full items-center justify-center",children:c.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-border bg-muted/30 px-10 py-8",children:[r,u,d]})}),e[16]=r,e[17]=u,e[18]=d,e[19]=f):f=e[19],f}function bt(n){const e=A.c(16),{file:t,markdown:s}=n;let r;e[0]!==t.downloadUrl?(r=Y.fileText(t.downloadUrl),e[0]=t.downloadUrl,e[1]=r):r=e[1];let i;e[2]!==t.downloadUrl?(i=async()=>{const d=await fetch(t.downloadUrl,{credentials:"include"});if(!d.ok)throw new Error(`fetch failed: ${d.status}`);return d.text()},e[2]=t.downloadUrl,e[3]=i):i=e[3];let o;e[4]!==r||e[5]!==i?(o={queryKey:r,queryFn:i,staleTime:6e4,retry:!1},e[4]=r,e[5]=i,e[6]=o):o=e[6];const{data:l,isPending:a,isError:u}=be(o);if(a){let d;return e[7]===Symbol.for("react.memo_cache_sentinel")?(d=c.jsx(Zt,{}),e[7]=d):d=e[7],d}if(u||l===void 0){let d;return e[8]!==t?(d=c.jsx(en,{file:t,note:"preview unavailable"}),e[8]=t,e[9]=d):d=e[9],d}if(s){const d=`file-preview-${t.key}`;let f;return e[10]!==l||e[11]!==d?(f=c.jsx("div",{className:"h-full overflow-y-auto",children:c.jsx("div",{className:"prose prose-sm dark:prose-invert mx-auto max-w-3xl px-6 py-6",children:c.jsx(Pn,{id:d,text:l})})}),e[10]=l,e[11]=d,e[12]=f):f=e[12],f}let p;return e[13]!==l||e[14]!==t.filename?(p=c.jsx(Cs,{value:l,filename:t.filename}),e[13]=l,e[14]=t.filename,e[15]=p):p=e[15],p}function Is(n){const e=A.c(15),{file:t}=n;switch(Ns(t.filename,t.size)){case"image":{let r;return e[0]!==t.downloadUrl||e[1]!==t.filename?(r=c.jsx("div",{className:"flex h-full w-full items-center justify-center overflow-auto bg-muted/30 p-4",children:c.jsx("img",{src:t.downloadUrl,alt:t.filename,className:"max-h-full max-w-full rounded-lg object-contain"})}),e[0]=t.downloadUrl,e[1]=t.filename,e[2]=r):r=e[2],r}case"pdf":{let r;return e[3]!==t.downloadUrl||e[4]!==t.filename?(r=c.jsx("iframe",{src:t.downloadUrl,title:t.filename,className:"block h-full w-full bg-white"}),e[3]=t.downloadUrl,e[4]=t.filename,e[5]=r):r=e[5],r}case"html":{let r;return e[6]!==t.downloadUrl||e[7]!==t.filename?(r=c.jsx("iframe",{src:t.downloadUrl,title:t.filename,sandbox:"allow-scripts",className:"block h-full w-full bg-white"}),e[6]=t.downloadUrl,e[7]=t.filename,e[8]=r):r=e[8],r}case"markdown":{let r;return e[9]!==t?(r=c.jsx(bt,{file:t,markdown:!0}),e[9]=t,e[10]=r):r=e[10],r}case"text":{let r;return e[11]!==t?(r=c.jsx(bt,{file:t,markdown:!1}),e[11]=t,e[12]=r):r=e[12],r}default:{let r;return e[13]!==t?(r=c.jsx(en,{file:t}),e[13]=t,e[14]=r):r=e[14],r}}}function Ms(n){const e=A.c(40),{readUrl:t,editor:s,downloadName:r,trailing:i}=n;let o;e[0]!==t?(o=new URL(t,window.location.origin).toString(),e[0]=t,e[1]=o):o=e[1];const l=o;let a;e[2]!==s?(a=s.deckDetected&&c.jsxs(ue,{children:[c.jsx(de,{asChild:!0,children:c.jsx(ee,{variant:s.railOpen?"secondary":"ghost",size:"icon","aria-label":s.railOpen?"Hide slide list":"Show slide list",onClick:()=>s.setRailOpen(!s.railOpen),children:c.jsx(Nn,{size:14})})}),c.jsx(fe,{side:"bottom",children:s.railOpen?"Hide slide list":"Show slide list"})]}),e[2]=s,e[3]=a):a=e[3];let u;e[4]!==l?(u=()=>window.open(l,"_blank","noopener"),e[4]=l,e[5]=u):u=e[5];let p;e[6]!==l?(p=c.jsx("span",{className:"truncate",children:l}),e[6]=l,e[7]=p):p=e[7];let d;e[8]!==l||e[9]!==u||e[10]!==p?(d=c.jsx("button",{type:"button",onClick:u,className:"flex min-w-0 flex-1 items-center rounded-md px-2 py-1 text-left text-xs text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",title:l,children:p}),e[8]=l,e[9]=u,e[10]=p,e[11]=d):d=e[11];let f;e[12]!==s.agentUpdated||e[13]!==s.reload?(f=s.agentUpdated&&c.jsxs(ue,{children:[c.jsx(de,{asChild:!0,children:c.jsxs(ee,{variant:"outline",size:"sm",className:"h-7 gap-1 text-xs",onClick:s.reload,children:[c.jsx(dn,{size:12}),"Agent updated — reload"]})}),c.jsx(fe,{side:"bottom",children:"The agent rewrote this deck while you were editing. Reloading discards unsaved differences."})]}),e[12]=s.agentUpdated,e[13]=s.reload,e[14]=f):f=e[14];let x;e[15]!==s.saving?(x=s.saving&&c.jsx("span",{className:"px-1 text-xs text-muted-foreground",children:"Saving…"}),e[15]=s.saving,e[16]=x):x=e[16];let m;e[17]!==s?(m=s.deckDetected&&s.writable&&c.jsxs(ue,{children:[c.jsx(de,{asChild:!0,children:c.jsx(ee,{variant:s.editMode?"secondary":"ghost",size:"icon","aria-label":s.editMode?"Done editing":"Edit inline",className:ve(s.editMode&&"text-primary"),onClick:()=>s.setEditMode(!s.editMode),children:c.jsx(xn,{size:14})})}),c.jsx(fe,{side:"bottom",children:s.editMode?"Done editing":"Edit inline (text, reorder, delete)"})]}),e[17]=s,e[18]=m):m=e[18];let z;e[19]!==l||e[20]!==r||e[21]!==s.deckDetected?(z=s.deckDetected?c.jsxs(Cn,{children:[c.jsx($n,{asChild:!0,children:c.jsx(ee,{variant:"ghost",size:"icon","aria-label":"Download",children:c.jsx(Fe,{size:14})})}),c.jsxs(En,{align:"end",children:[c.jsxs(dt,{onClick:()=>window.open(`${l}#print`,"_blank","noopener"),children:[c.jsx(gn,{size:14}),"Export as PDF"]}),c.jsx(dt,{asChild:!0,children:c.jsxs("a",{href:l,download:r,children:[c.jsx(yn,{size:14}),"Download HTML"]})})]})]}):c.jsxs(ue,{children:[c.jsx(de,{asChild:!0,children:c.jsx(ee,{variant:"ghost",size:"icon","aria-label":"Download",asChild:!0,children:c.jsx("a",{href:l,download:r,children:c.jsx(Fe,{size:14})})})}),c.jsx(fe,{side:"bottom",children:"Download"})]}),e[19]=l,e[20]=r,e[21]=s.deckDetected,e[22]=z):z=e[22];let v;e[23]!==l?(v=()=>window.open(l,"_blank","noopener"),e[23]=l,e[24]=v):v=e[24];let y;e[25]===Symbol.for("react.memo_cache_sentinel")?(y=c.jsx($t,{size:14}),e[25]=y):y=e[25];let P;e[26]!==v?(P=c.jsx(de,{asChild:!0,children:c.jsx(ee,{variant:"ghost",size:"icon","aria-label":"Open in new tab",onClick:v,children:y})}),e[26]=v,e[27]=P):P=e[27];let M;e[28]===Symbol.for("react.memo_cache_sentinel")?(M=c.jsx(fe,{side:"bottom",children:"Open in new tab"}),e[28]=M):M=e[28];let k;e[29]!==P?(k=c.jsxs(ue,{children:[P,M]}),e[29]=P,e[30]=k):k=e[30];let W;return e[31]!==k||e[32]!==a||e[33]!==d||e[34]!==f||e[35]!==x||e[36]!==m||e[37]!==z||e[38]!==i?(W=c.jsxs("div",{className:"flex h-9 shrink-0 items-center gap-1 border-b border-border/60 px-2",children:[a,d,f,x,m,z,k,i]}),e[31]=k,e[32]=a,e[33]=d,e[34]=f,e[35]=x,e[36]=m,e[37]=z,e[38]=i,e[39]=W):W=e[39],W}const je=1;function Rs(n){if(typeof n!="object"||n===null||n.v!==je||n.source!=="deck-viewer")return null;const e=n;return e.type==="ready"||e.type==="state"||e.type==="op"&&typeof e.opId=="string"&&e.op?e:null}class me extends Error{constructor(e,t){super(e),this.code=t,this.name="DeckOpError"}code}function tn(n){return[...n.children].filter(e=>!/^(TEMPLATE|SCRIPT|STYLE)$/.test(e.tagName))}function Ds(n){const t=new DOMParser().parseFromString(n,"text/html").querySelector("deck-viewer");return t?tn(t).length:null}function Ls(n,e){const t=new DOMParser().parseFromString(n,"text/html"),s=t.querySelector("deck-viewer");if(!s)throw new me("no <deck-viewer> element in source","no-viewer");const r=tn(s),i=e.kind==="move"?e.from:e.at,o=r[i];if(!o)throw new me(`slide index ${i} out of range (${r.length})`,"stale-index");switch(e.kind){case"remove":{if(r.length<=1)throw new me("cannot remove the last slide","bad-op");o.remove();break}case"duplicate":{const a=o.cloneNode(!0);a.removeAttribute("id");for(const u of a.querySelectorAll("[id]"))u.removeAttribute("id");o.after(a);break}case"move":{if(e.to<0||e.to>=r.length)throw new me(`move target ${e.to} out of range`,"stale-index");if(e.to!==e.from){const a=e.to<e.from?r[e.to]:r[e.to].nextSibling;s.insertBefore(o,a)}break}case"set-attr":{if(!/^[a-zA-Z][\w-]*$/.test(e.name))throw new me(`invalid attribute name: ${e.name}`,"bad-op");o.setAttribute(e.name,e.value);break}case"remove-attr":{o.removeAttribute(e.name);break}case"replace":{const u=new DOMParser().parseFromString(e.html,"text/html").body.firstElementChild;if(!u)throw new me("replace html has no root element","bad-op");o.replaceWith(t.importNode(u,!0));break}default:throw new me(`unknown op kind: ${e.kind}`,"bad-op")}return`${n.trimStart().toLowerCase().startsWith("<!doctype")?`<!DOCTYPE html>
|
|
4
4
|
`:""}${t.documentElement.outerHTML}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as h,r as b,c as g,j as u}from"./index-
|
|
1
|
+
import{e as h,r as b,c as g,j as u}from"./index-DR_rePBs.js";import{s as j}from"./Plus-C1_ruIfW.js";import{s as v}from"./Trash01-Dv2bkB3B.js";const A=700;function _(r,e,o){const t=h.c(6),s=A,[n,c]=b.useState(r),i=b.useRef(null);let l;t[0]!==s||t[1]!==e?(l=f=>{c(f),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>e(f),s)},t[0]=s,t[1]=e,t[2]=l):l=t[2];const d=l;let a;return t[3]!==n||t[4]!==d?(a=[n,d],t[3]=n,t[4]=d,t[5]=a):a=t[5],a}function k(r){const e=h.c(14),{value:o,onChange:t,placeholder:s,className:n,onFocus:c,onBlur:i,onKeyDown:l,spellCheck:d,inputRef:a}=r,f=d===void 0?!0:d;let p;e[0]!==t?(p=y=>t(y.target.value),e[0]=t,e[1]=p):p=e[1];let m;e[2]!==n?(m=g("w-full resize-none border-0 bg-transparent p-0 outline-none [field-sizing:content] placeholder:text-muted-foreground/50 focus:ring-0",n),e[2]=n,e[3]=m):m=e[3];let x;return e[4]!==a||e[5]!==i||e[6]!==c||e[7]!==l||e[8]!==s||e[9]!==f||e[10]!==p||e[11]!==m||e[12]!==o?(x=u.jsx("textarea",{ref:a,value:o,onChange:p,onInput:T,onFocus:c,onBlur:i,onKeyDown:l,placeholder:s,spellCheck:f,rows:1,className:m}),e[4]=a,e[5]=i,e[6]=c,e[7]=l,e[8]=s,e[9]=f,e[10]=p,e[11]=m,e[12]=o,e[13]=x):x=e[13],x}function T(r){const e=r.currentTarget;e.style.height="auto",e.style.height=`${e.scrollHeight}px`}function R(r){return typeof r=="string"?r:""}function z(r){const e=h.c(5),{label:o,onClick:t,disabled:s}=r;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=u.jsx(j,{size:13}),e[0]=n):n=e[0];let c;return e[1]!==s||e[2]!==o||e[3]!==t?(c=u.jsxs("button",{type:"button",onClick:t,disabled:s,className:"flex items-center gap-1.5 rounded-md border border-dashed px-2.5 py-1.5 text-xs text-muted-foreground transition-colors hover:border-foreground/30 hover:text-foreground disabled:opacity-40 disabled:hover:border-dashed disabled:hover:text-muted-foreground cursor-pointer",children:[n,o]}),e[1]=s,e[2]=o,e[3]=t,e[4]=c):c=e[4],c}function D(r){const e=h.c(4),{label:o,onClick:t}=r;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=u.jsx(v,{size:13}),e[0]=s):s=e[0];let n;return e[1]!==o||e[2]!==t?(n=u.jsx("button",{type:"button","aria-label":o,onClick:t,className:"flex h-6 w-6 shrink-0 items-center justify-center rounded text-muted-foreground/60 opacity-0 transition-opacity hover:text-destructive group-hover/item:opacity-100 cursor-pointer",children:s}),e[1]=o,e[2]=t,e[3]=n):n=e[3],n}function E(r){const e=h.c(2),{children:o}=r;let t;return e[0]!==o?(t=u.jsx("div",{className:"absolute -top-9 left-0 z-10 flex items-center gap-0.5 rounded-md border bg-popover p-0.5 shadow-md",children:o}),e[0]=o,e[1]=t):t=e[1],t}function S(r){const e=h.c(8),{active:o,label:t,onClick:s,children:n}=r,c=o?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground";let i;e[0]!==c?(i=g("flex h-7 min-w-7 items-center justify-center rounded px-1.5 text-sm transition-colors cursor-pointer",c),e[0]=c,e[1]=i):i=e[1];let l;return e[2]!==o||e[3]!==n||e[4]!==t||e[5]!==s||e[6]!==i?(l=u.jsx("button",{type:"button","aria-label":t,"aria-pressed":o,onMouseDown:$,onClick:s,className:i,children:n}),e[2]=o,e[3]=n,e[4]=t,e[5]=s,e[6]=i,e[7]=l):l=e[7],l}function $(r){return r.preventDefault()}function B(r){if(Array.isArray(r))return r;if(typeof r!="string"||r.trim()==="")return[];try{const e=JSON.parse(r);return Array.isArray(e)?e:[]}catch{return[]}}export{z as A,E as F,k as I,D as R,S as T,B as p,R as s,_ as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as L,j as t,b as D,x as R,ad as q,z as B,t as N,n as T}from"./index-
|
|
1
|
+
import{e as L,j as t,b as D,x as R,ad as q,z as B,t as N,n as T}from"./index-DR_rePBs.js";import{P as z}from"./index-C-1BWhby.js";import{A as U}from"./avatar-peV5o6WX.js";import{S as I}from"./switch-zzOr4XIL.js";import{d as G,b as Y,a as $,S as K}from"./select-DGCvlKab.js";import{T as O,a as V}from"./toggle-group-Bbddrz4I.js";import{I as H}from"./input-y1TM2XAx.js";import{i as J}from"./Monitor01-DwCf4abV.js";import{n as M,a as Q}from"./Sun-D7p5-rHi.js";import{i as W}from"./Play-BfAmSLXY.js";import{u as X}from"./use-debounced-autosave-C6qPmhCg.js";import{p as Z,q as ee}from"./question-004-sINsf4GQ.js";import"./index-C6FflRBs.js";import{c as te,b as A,S as E,a as F}from"./settings-section-JyUX31IZ.js";import"./sidebar-BQPFiLcL.js";import"./LayoutLeft-CiWu8qBT.js";import"./tooltip-BYURy38b.js";import"./sheet-CPU8El7K.js";import"./X-XfDufvpq.js";import"./User01-4ybEpVge.js";import"./ChevronUp-k8vE0jpp.js";import"./ChevronDown-DEax0m8J.js";import"./card-C2sSM-Le.js";import"./ArrowUpRight-ByULm16q.js";function se(){const e=L.c(19),{data:s,isPending:o}=D.useSession(),v=s?.user,p=v?.image,h=v?.name??"";let S;e[0]!==h?(S={values:{name:h}},e[0]=h,e[1]=S):S=e[1];const n=R(S);let _;e[2]!==n?(_={save:async()=>{const g=n.control._formState.dirtyFields;if(Object.keys(g).length===0)return;const a=n.getValues(),f=n.control._defaultValues;n.reset(a,{keepValues:!0});try{await D.updateUser({name:a.name}),N("profile_updated",{fields:["name"]}),T.success("Profile updated successfully")}catch{n.reset(f,{keepValues:!0}),T.error("Failed to update profile")}}},e[2]=n,e[3]=_):_=e[3];const{schedule:x,flush:d}=X(_);if(o)return null;const b=v?.name??"U";let i;e[4]!==b||e[5]!==p?(i=t.jsx(A,{title:"Avatar",action:t.jsx(U,{url:p,fallback:b,shape:"circle",size:"base"})}),e[4]=b,e[5]=p,e[6]=i):i=e[6];let l;e[7]!==d||e[8]!==x?(l=g=>{const{field:a}=g;return t.jsx(H,{id:"display-name",...a,onChange:f=>{a.onChange(f),x()},onBlur:()=>{a.onBlur(),d()},onKeyDown:f=>{f.key==="Enter"&&d()},placeholder:"Your name",className:"w-[280px]"})},e[7]=d,e[8]=x,e[9]=l):l=e[9];let m;e[10]!==n.control||e[11]!==l?(m=t.jsx(A,{title:"Display name",action:t.jsx(q,{control:n.control,name:"name",render:l})}),e[10]=n.control,e[11]=l,e[12]=m):m=e[12];const j=v?.email;let r;e[13]!==j?(r=t.jsx(A,{title:"Email",action:t.jsx("span",{className:"text-sm text-muted-foreground",children:j})}),e[13]=j,e[14]=r):r=e[14];let u;return e[15]!==i||e[16]!==m||e[17]!==r?(u=t.jsx(E,{children:t.jsxs(F,{children:[i,m,r]})}),e[15]=i,e[16]=m,e[17]=r,e[18]=u):u=e[18],u}function oe(){const e=L.c(48),[s,o]=B();let v;e[0]!==o?(v=async c=>{if(c&&await Notification.requestPermission()!=="granted"){N("preferences_notifications_permission_denied"),T.error("Notifications denied. Please enable them in your browser settings."),o(re);return}N("preferences_notifications_toggled",{enabled:c}),o(y=>({...y,enableNotifications:c}))},e[0]=o,e[1]=v):v=e[1];const p=v;let h;e[2]!==o?(h=c=>{c&&(N("preferences_theme_changed",{to_value:c}),o(y=>({...y,theme:c})))},e[2]=o,e[3]=h):h=e[3];let S;e[4]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(V,{value:"light","aria-label":"Light theme",children:t.jsx(M,{size:14})}),e[4]=S):S=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(V,{value:"dark","aria-label":"Dark theme",children:t.jsx(Q,{size:14})}),e[5]=n):n=e[5];let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(V,{value:"system","aria-label":"System theme",children:t.jsx(J,{size:14})}),e[6]=_):_=e[6];let x;e[7]!==s.theme||e[8]!==h?(x=t.jsx(A,{title:"Theme",description:"Your preferred color scheme.",action:t.jsxs(O,{type:"single",size:"sm",variant:"outline",value:s.theme,onValueChange:h,children:[S,n,_]})}),e[7]=s.theme,e[8]=h,e[9]=x):x=e[9];let d;e[10]!==p||e[11]!==s.enableNotifications?(d=typeof Notification<"u"?()=>p(!s.enableNotifications):void 0,e[10]=p,e[11]=s.enableNotifications,e[12]=d):d=e[12];let b;e[13]!==p||e[14]!==s.enableNotifications?(b=t.jsx(I,{disabled:typeof Notification>"u",checked:s.enableNotifications,onCheckedChange:p}),e[13]=p,e[14]=s.enableNotifications,e[15]=b):b=e[15];let i;e[16]!==d||e[17]!==b?(i=t.jsx(A,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:d,action:b}),e[16]=d,e[17]=b,e[18]=i):i=e[18];let l;e[19]!==s.enableSounds||e[20]!==o?(l=()=>{N("preferences_sounds_toggled",{enabled:!s.enableSounds}),o(le)},e[19]=s.enableSounds,e[20]=o,e[21]=l):l=e[21];let m;e[22]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("button",{type:"button","aria-label":"Preview notification sound",onClick:ne,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:t.jsx(W,{size:11})}),e[22]=m):m=e[22];let j;e[23]!==o?(j=c=>{N("preferences_sounds_toggled",{enabled:c}),o(y=>({...y,enableSounds:c}))},e[23]=o,e[24]=j):j=e[24];let r;e[25]!==s.enableSounds||e[26]!==j?(r=t.jsxs("div",{className:"flex items-center gap-2",children:[m,t.jsx(I,{checked:s.enableSounds,onCheckedChange:j})]}),e[25]=s.enableSounds,e[26]=j,e[27]=r):r=e[27];let u;e[28]!==r||e[29]!==l?(u=t.jsx(A,{title:"Sounds",description:"Play sounds for agent actions and notifications.",onClick:l,action:r}),e[28]=r,e[29]=l,e[30]=u):u=e[30];let g;e[31]!==o?(g=c=>{N("preferences_tool_approval_changed",{to_value:c}),o(y=>({...y,toolApprovalLevel:c}))},e[31]=o,e[32]=g):g=e[32];let a;e[33]!==s.toolApprovalLevel?(a={readonly:"Ask before edit",auto:"Auto approve"}[s.toolApprovalLevel]??"Ask before edit",e[33]=s.toolApprovalLevel,e[34]=a):a=e[34];let f;e[35]!==a?(f=t.jsx(Y,{className:"w-36 h-7 text-xs",children:t.jsx("span",{children:a})}),e[35]=a,e[36]=f):f=e[36];let C;e[37]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx($,{value:"readonly",textValue:"Ask before edit",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Ask before edit"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[37]=C):C=e[37];let k;e[38]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsxs(K,{children:[C,t.jsx($,{value:"auto",textValue:"Auto approve",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Auto approve"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all without approval"})]})})]}),e[38]=k):k=e[38];let P;e[39]!==s.toolApprovalLevel||e[40]!==g||e[41]!==f?(P=t.jsx(A,{title:"Tool Approval",description:"Control how tools are approved before execution.",action:t.jsxs(G,{value:s.toolApprovalLevel,onValueChange:g,children:[f,k]})}),e[39]=s.toolApprovalLevel,e[40]=g,e[41]=f,e[42]=P):P=e[42];let w;return e[43]!==u||e[44]!==P||e[45]!==x||e[46]!==i?(w=t.jsx(E,{title:"Preferences",children:t.jsxs(F,{children:[x,i,u,P]})}),e[43]=u,e[44]=P,e[45]=x,e[46]=i,e[47]=w):w=e[47],w}function ne(){N("preferences_sounds_previewed"),Z(ee.dataUri).catch(ie)}function ie(){}function le(e){return{...e,enableSounds:!e.enableSounds}}function re(e){return{...e,enableNotifications:!1}}function ae(){const e=L.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(z,{children:t.jsx(z.Content,{children:t.jsx(z.Body,{children:t.jsxs(te,{children:[t.jsx(z.Title,{children:"Profile & Preferences"}),t.jsx(se,{}),t.jsx(oe,{})]})})})}),e[0]=s):s=e[0],s}function Te(){const e=L.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(ae,{}),e[0]=s):s=e[0],s}export{Te as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as $,p as H,j as v}from"./index-DR_rePBs.js";import{j as L,g as E,s as y}from"./scroll-area-Ci24bTQj.js";import{p as O,u as k}from"./use-mcp-client-C71iBuk1.js";import{b as q,c as B}from"./use-mcp-tools-Cgv4PG97.js";import{u as Y}from"./index-Bm9fFssP.js";import{c as G}from"./content-blocks-o63cs2vh.js";import{g as K,M as V,a as w}from"./types-CnFNIxDN.js";import{u as z,b as F}from"./chat-context-B3aQdnCo.js";import{b as J}from"./shell-layout-CQQow3tV.js";import"./agent-icon-2IzCfMt4.js";import"./AlertCircle-CPhjAdzy.js";import"./Tool01-XeWWEM02.js";import"./SwitchHorizontal01-gtJNQfFu.js";import"./Settings02-xC8_pyoX.js";import"./XCircle-DA_NLmoN.js";import"./ArrowUpRight-ByULm16q.js";import"./ZapSquare-CxtarS5X.js";import"./Users03-8tkacGp5.js";import"./CheckCircle-f5gZcaGs.js";import"./ChevronUp-k8vE0jpp.js";import"./ChevronDown-DEax0m8J.js";import"./ChevronLeft-BNIg0E5Q.js";import"./ChevronRight-C3K9gEKE.js";import"./DotsVertical-BMWCYHTN.js";import"./Stars02-BN7irakH.js";import"./Eye-CFgk5O7d.js";import"./ZoomOut-BLdVdOct.js";import"./Globe01-DhUQ5HNX.js";import"./FilterLines-D4i7TeOP.js";import"./Star01-BoVF12Xx.js";import"./Globe04-CzcwlKYt.js";import"./HardDrive-CdAsICPa.js";import"./Key01-BDydLAZy.js";import"./LayoutLeft-CiWu8qBT.js";import"./LinkExternal01-DvInJfCe.js";import"./Monitor01-DwCf4abV.js";import"./Sun-D7p5-rHi.js";import"./Palette-COeRpWyL.js";import"./Play-BfAmSLXY.js";import"./Plus-C1_ruIfW.js";import"./SearchMd-DJ2wt73y.js";import"./Shield01-IdxP145L.js";import"./Stars01-BXoy7DLH.js";import"./Trash01-Dv2bkB3B.js";import"./Upload01-D4ujwkxA.js";import"./User01-4ybEpVge.js";import"./Users01-B32j0dPN.js";import"./XClose-C3jOtT-R.js";import"./X-XfDufvpq.js";import"./Zap-JBZrSnLL.js";import"./use-clock-tick-B8tpzRYt.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BE_HAr84.js";import"./tooltip-BYURy38b.js";import"./file-type-icon-DXOOqaDU.js";import"./dialog-BxPbOvQB.js";import"./tab-id-BptcWVWa.js";import"./hooks-cdIk86Xa.js";import"./decopilot-sse-pool-DYYweec9.js";import"./studio-tools-bwIfUd7N.js";import"./sheet-CPU8El7K.js";import"./integration-icon-BGjX8lxs.js";import"./use-virtual-mcp-DC_d7ccl.js";import"./use-collections-CD47os2h.js";import"./use-navigate-to-agent-YwB-mL2y.js";import"./use-connection-BbV-cahG.js";import"./use-mcp-prompts-B0TUzdG5.js";import"./form-CXZkpbkB.js";import"./label-DEiO6j8m.js";import"./input-y1TM2XAx.js";import"./select-DGCvlKab.js";import"./auth-CTqVB4IS.js";import"./index-BRLVEMpk.js";import"./drawer-iUEgRU-6.js";import"./collection-search-K6lqqQFY.js";import"./tabs-CrP0FsDC.js";import"./toggle-group-Bbddrz4I.js";import"./use-deco-credits-C_X3P9Ba.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-PMR-7_mJ.js";import"./use-registry-connections-DIBD6ex2.js";import"./use-organization-settings-CvC_Ip3K.js";import"./useInfiniteQuery-ZExvzXfO.js";import"./use-infinite-scroll-C7aFA98u.js";import"./extract-connection-data-BRqbgUe3.js";import"./card-C2sSM-Le.js";import"./collection-tabs-CFsxwAyi.js";import"./badge-BZkDCIOE.js";import"./textarea-CDXfa-ym.js";import"./connection-form-helpers-D0kGxihY.js";import"./useSuspenseInfiniteQuery-A4JPhSbS.js";import"./mcp-oauth-XgK_hrdl.js";import"./use-ai-providers-DoX36CS3.js";import"./connect-desktop-dialog-Cr2QVwup.js";import"./decopilot-CZ4O1Mkt.js";import"./checkbox-Bx3S96Y8.js";import"./skeleton-CtgijdMV.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-peV5o6WX.js";import"./settings-section-JyUX31IZ.js";import"./popover-dr7pU8MM.js";import"./command-okvQdmbU.js";import"./index-DxM9Paz3.js";import"./dropdown-menu-DdGNF14G.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DnE7BrP1.js";import"./empty-state-DBEkUTru.js";import"./toolbar-CpdOaidz.js";import"./preview-dialog-D_Uo4scR.js";import"./index-C2R2thJn.js";import"./use-capability-D2rsaN6r.js";import"./shell-route-loading-B3xUP7iX.js";import"./index-DHaiIcTc.js";import"./alert-dialog-Cmw7yEK3.js";import"./switch-zzOr4XIL.js";import"./use-debounced-autosave-C6qPmhCg.js";import"./index-C-1BWhby.js";import"./sidebar-BQPFiLcL.js";import"./search-input-h0dabDnJ.js";import"./github-repo-picker-Cx0gyzTe.js";import"./use-secrets-DCiqQixK.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-BNTkbFBk.js";import"./select-model-D2CbW0ZU.js";import"./use-automations-C5Pn4p2w.js";import"./monaco-editor-EJlpnsl7.js";import"./automation-runs-BhO4xZsY.js";import"./table-CT6UZ1xs.js";import"./use-members-CmkDkATH.js";import"./use-org-auth-client-rt0mIMHb.js";import"./task-status-Cq3maKKR.js";import"./automation-list-row-B-h0vNXd.js";import"./required-auth-layout-CxWIW5O_.js";import"./useRouterState-yO0hfTaq.js";import"./use-org-sso-Bos_GK_g.js";const Q={};function W(A){const t=$.c(37),{client:r,resourceURI:h,tool:o,connectionId:p,orgId:l,args:M}=A,{sendMessage:I}=z(),{setAppContext:u,clearAppContext:n}=F(),{setChatOpen:f,openTab:g}=J(),e=`${p}:${o.name}`;let a;t[0]!==g?(a=C=>C==="inline"?(g("0"),"inline"):"fullscreen",t[0]=g,t[1]=a):a=t[1];const m=a,s=M??Q;let c;t[2]!==r||t[3]!==o.name||t[4]!==s?(c={client:r,toolName:o.name,toolArguments:s},t[2]=r,t[3]=o.name,t[4]=s,t[5]=c):c=t[5];const{data:i}=B(c);let x;if(t[6]!==o._meta||t[7]!==o.name){const C=E(o._meta);x=y(o.name,C),t[6]=o._meta,t[7]=o.name,t[8]=x}else x=t[8];const U=x;let d;t[9]!==o.inputSchema?(d=o.inputSchema??{type:"object"},t[9]=o.inputSchema,t[10]=d):d=t[10];let N;t[11]!==U||t[12]!==d||t[13]!==o?(N={...o,name:U,inputSchema:d},t[11]=U,t[12]=d,t[13]=o,t[14]=N):N=t[14];const S=N;let _;t[15]!==I||t[16]!==f?(_=C=>{const D=G(C.content);D.content.length>0&&(f(!0),I({tiptapDoc:D}))},t[15]=I,t[16]=f,t[17]=_):_=t[17];const b=_;let P;t[18]!==S?(P={tool:S},t[18]=S,t[19]=P):P=t[19];let T;t[20]!==u||t[21]!==e?(T=C=>u(e,C),t[20]=u,t[21]=e,t[22]=T):T=t[22];let R;t[23]!==n||t[24]!==e?(R=()=>n(e),t[23]=n,t[24]=e,t[25]=R):R=t[25];let j;return t[26]!==r||t[27]!==b||t[28]!==m||t[29]!==l||t[30]!==h||t[31]!==P||t[32]!==T||t[33]!==R||t[34]!==s||t[35]!==i?(j=v.jsx(V,{resourceURI:h,orgId:l,toolInfo:P,toolInput:s,toolResult:i,displayMode:"fullscreen",minHeight:w.fullscreen.minHeight,maxHeight:w.fullscreen.maxHeight,client:r,onMessage:b,onUpdateModelContext:T,onTeardown:R,onRequestDisplayMode:m,className:"h-full"}),t[26]=r,t[27]=b,t[28]=m,t[29]=l,t[30]=h,t[31]=P,t[32]=T,t[33]=R,t[34]=s,t[35]=i,t[36]=j):j=t[36],j}function _e(A){const t=$.c(24),{connectionId:r,toolName:h,args:o}=A,{org:p}=H(),l=Y();let M;t[0]!==r||t[1]!==l?(M=O(r)&&l.vmEntry?.sandboxProviderKind==="user-desktop"&&l.previewUrl?`${l.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=r,t[1]=l,t[2]=M):M=t[2];const I=M;let u;t[3]!==r||t[4]!==I||t[5]!==p.id||t[6]!==p.slug?(u={connectionId:r,orgId:p.id,orgSlug:p.slug,mcpUrl:I},t[3]=r,t[4]=I,t[5]=p.id,t[6]=p.slug,t[7]=u):u=t[7];const n=k(u);let f;t[8]!==n?(f={client:n},t[8]=n,t[9]=f):f=t[9];const{data:g}=q(f);let e,a,m;t[10]!==h||t[11]!==g.tools?(e=L(decodeURIComponent(h)),m=g.tools.find(i=>i.name===e)??g.tools.find(i=>{const x=E(i._meta);if(!x)return!1;if(y(i.name,x)===e)return!0;const d=y(e,x);return d!==e&&i.name===d}),a=m?._meta?K(m._meta):void 0,t[10]=h,t[11]=g.tools,t[12]=e,t[13]=a,t[14]=m):(e=t[12],a=t[13],m=t[14]);const s=a;if(!m||!s){let i;return t[15]!==e?(i=v.jsx("div",{className:"flex items-center justify-center h-full w-full",children:v.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',e,'" not found or has no UI']})}),t[15]=e,t[16]=i):i=t[16],i}let c;return t[17]!==o||t[18]!==n||t[19]!==r||t[20]!==p.id||t[21]!==s||t[22]!==m?(c=v.jsx(W,{client:n,resourceURI:s,tool:m,connectionId:r,orgId:p.id,args:o}),t[17]=o,t[18]=n,t[19]=r,t[20]=p.id,t[21]=s,t[22]=m,t[23]=c):c=t[23],c}export{_e as AppViewContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as F,j as r}from"./index-DR_rePBs.js";import{I as T}from"./input-y1TM2XAx.js";import{L as C}from"./label-DEiO6j8m.js";import{T as L}from"./textarea-CDXfa-ym.js";import{I as A}from"./image-field-LZYJGdaT.js";import{ak as R,al as D,am as J}from"./index-Bm9fFssP.js";import{u as K,s as P}from"./primitives-CSHo7U8r.js";import{S as M}from"./save-status-B6vdRBM4.js";import"./Tool01-XeWWEM02.js";import"./Trash01-Dv2bkB3B.js";import"./Upload01-D4ujwkxA.js";import"./AlertCircle-CPhjAdzy.js";import"./ChevronUp-k8vE0jpp.js";import"./Eye-CFgk5O7d.js";import"./DotsVertical-BMWCYHTN.js";import"./agent-icon-2IzCfMt4.js";import"./SwitchHorizontal01-gtJNQfFu.js";import"./Settings02-xC8_pyoX.js";import"./XCircle-DA_NLmoN.js";import"./ArrowUpRight-ByULm16q.js";import"./ZapSquare-CxtarS5X.js";import"./Users03-8tkacGp5.js";import"./CheckCircle-f5gZcaGs.js";import"./ChevronDown-DEax0m8J.js";import"./ChevronLeft-BNIg0E5Q.js";import"./ChevronRight-C3K9gEKE.js";import"./Stars02-BN7irakH.js";import"./ZoomOut-BLdVdOct.js";import"./Globe01-DhUQ5HNX.js";import"./FilterLines-D4i7TeOP.js";import"./Star01-BoVF12Xx.js";import"./Globe04-CzcwlKYt.js";import"./HardDrive-CdAsICPa.js";import"./Key01-BDydLAZy.js";import"./LayoutLeft-CiWu8qBT.js";import"./LinkExternal01-DvInJfCe.js";import"./Monitor01-DwCf4abV.js";import"./Sun-D7p5-rHi.js";import"./Palette-COeRpWyL.js";import"./Play-BfAmSLXY.js";import"./Plus-C1_ruIfW.js";import"./SearchMd-DJ2wt73y.js";import"./Shield01-IdxP145L.js";import"./Stars01-BXoy7DLH.js";import"./User01-4ybEpVge.js";import"./Users01-B32j0dPN.js";import"./XClose-C3jOtT-R.js";import"./X-XfDufvpq.js";import"./Zap-JBZrSnLL.js";import"./dialog-BxPbOvQB.js";import"./dropdown-menu-DdGNF14G.js";import"./skeleton-CtgijdMV.js";import"./tabs-CrP0FsDC.js";import"./use-file-configs-BU5uc_bV.js";import"./studio-tools-bwIfUd7N.js";import"./useInfiniteQuery-ZExvzXfO.js";import"./use-infinite-scroll-C7aFA98u.js";import"./index-BRLVEMpk.js";import"./chat-context-B3aQdnCo.js";import"./hooks-cdIk86Xa.js";import"./use-mcp-client-C71iBuk1.js";import"./auth-CTqVB4IS.js";import"./decopilot-sse-pool-DYYweec9.js";import"./use-virtual-mcp-DC_d7ccl.js";import"./use-collections-CD47os2h.js";import"./use-ai-providers-DoX36CS3.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-CvC_Ip3K.js";import"./scroll-area-Ci24bTQj.js";import"./use-clock-tick-B8tpzRYt.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BE_HAr84.js";import"./tooltip-BYURy38b.js";import"./file-type-icon-DXOOqaDU.js";import"./content-blocks-o63cs2vh.js";import"./types-CnFNIxDN.js";import"./shell-layout-CQQow3tV.js";import"./avatar-peV5o6WX.js";import"./required-auth-layout-CxWIW5O_.js";import"./useRouterState-yO0hfTaq.js";import"./use-org-sso-Bos_GK_g.js";import"./sheet-CPU8El7K.js";import"./integration-icon-BGjX8lxs.js";import"./use-navigate-to-agent-YwB-mL2y.js";import"./use-connection-BbV-cahG.js";import"./use-mcp-prompts-B0TUzdG5.js";import"./form-CXZkpbkB.js";import"./select-DGCvlKab.js";import"./drawer-iUEgRU-6.js";import"./collection-search-K6lqqQFY.js";import"./toggle-group-Bbddrz4I.js";import"./use-deco-credits-C_X3P9Ba.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-PMR-7_mJ.js";import"./use-registry-connections-DIBD6ex2.js";import"./extract-connection-data-BRqbgUe3.js";import"./card-C2sSM-Le.js";import"./collection-tabs-CFsxwAyi.js";import"./badge-BZkDCIOE.js";import"./connection-form-helpers-D0kGxihY.js";import"./useSuspenseInfiniteQuery-A4JPhSbS.js";import"./mcp-oauth-XgK_hrdl.js";import"./connect-desktop-dialog-Cr2QVwup.js";import"./decopilot-CZ4O1Mkt.js";import"./checkbox-Bx3S96Y8.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-JyUX31IZ.js";import"./popover-dr7pU8MM.js";import"./command-okvQdmbU.js";import"./index-DxM9Paz3.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DnE7BrP1.js";import"./empty-state-DBEkUTru.js";import"./toolbar-CpdOaidz.js";import"./preview-dialog-D_Uo4scR.js";import"./index-C2R2thJn.js";import"./use-mcp-tools-Cgv4PG97.js";import"./use-capability-D2rsaN6r.js";import"./shell-route-loading-B3xUP7iX.js";import"./index-DHaiIcTc.js";import"./alert-dialog-Cmw7yEK3.js";import"./switch-zzOr4XIL.js";import"./use-debounced-autosave-C6qPmhCg.js";import"./index-C-1BWhby.js";import"./sidebar-BQPFiLcL.js";import"./search-input-h0dabDnJ.js";import"./github-repo-picker-Cx0gyzTe.js";import"./use-secrets-DCiqQixK.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-BNTkbFBk.js";import"./select-model-D2CbW0ZU.js";import"./use-automations-C5Pn4p2w.js";import"./monaco-editor-EJlpnsl7.js";import"./automation-runs-BhO4xZsY.js";import"./table-CT6UZ1xs.js";import"./use-members-CmkDkATH.js";import"./use-org-auth-client-rt0mIMHb.js";import"./task-status-Cq3maKKR.js";import"./automation-list-row-B-h0vNXd.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 d;t[4]!==w||t[5]!==p?(d=D(w,p),t[4]=w,t[5]=p,t[6]=d):d=t[6];const B=d;let h;t[7]!==g||t[8]!==p||t[9]!==m?(h=e=>{m.mutate({blockKey:g,data:J(g,p,e)})},t[7]=g,t[8]=p,t[9]=m,t[10]=h):h=t[10];const[i,E]=K(B,h);let k;t[11]!==i||t[12]!==E?(k=(e,o)=>E({...i,[e]:o}),t[11]=i,t[12]=E,t[13]=k):k=t[13];const a=k,N=q[p];let s;t[14]!==N?(s=r.jsx("span",{className:"text-sm font-medium",children:N}),t[14]=N,t[15]=s):s=t[15];let l;t[16]!==m.isError||t[17]!==m.isPending?(l=r.jsx(M,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=l):l=t[18];let n;t[19]!==s||t[20]!==l?(n=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[s,l]}),t[19]=s,t[20]=l,t[21]=n):n=t[21];const I=$[p];let c;if(t[22]!==i||t[23]!==a||t[24]!==I){let e;t[26]!==i||t[27]!==a?(e=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(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};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BJRgjVur.js","assets/index-DR_rePBs.js","assets/index-D1gOoljU.css","assets/XCircle-DA_NLmoN.js","assets/CheckCircle-f5gZcaGs.js","assets/Settings02-xC8_pyoX.js","assets/use-mcp-client-C71iBuk1.js","assets/auth-CTqVB4IS.js","assets/useInfiniteQuery-ZExvzXfO.js","assets/use-infinite-scroll-C7aFA98u.js","assets/studio-tools-bwIfUd7N.js","assets/badge-BZkDCIOE.js","assets/input-y1TM2XAx.js","assets/dropdown-menu-DdGNF14G.js","assets/ChevronUp-k8vE0jpp.js","assets/ChevronRight-C3K9gEKE.js","assets/DotsVertical-BMWCYHTN.js","assets/table-CT6UZ1xs.js","assets/toggle-group-Bbddrz4I.js","assets/use-view-mode-ypnKmup6.js","assets/tooltip-BYURy38b.js","assets/FilterLines-D4i7TeOP.js","assets/Globe01-DhUQ5HNX.js","assets/SearchMd-DJ2wt73y.js","assets/dialog-BxPbOvQB.js","assets/X-XfDufvpq.js","assets/AlertCircle-CPhjAdzy.js","assets/Upload01-D4ujwkxA.js","assets/alert-dialog-Cmw7yEK3.js","assets/card-C2sSM-Le.js","assets/Trash01-Dv2bkB3B.js","assets/label-DEiO6j8m.js","assets/select-DGCvlKab.js","assets/ChevronDown-DEax0m8J.js","assets/switch-zzOr4XIL.js","assets/textarea-CDXfa-ym.js","assets/checkbox-Bx3S96Y8.js","assets/Eye-CFgk5O7d.js","assets/LinkExternal01-DvInJfCe.js","assets/use-copy-BE_HAr84.js","assets/Key01-BDydLAZy.js","assets/Plus-C1_ruIfW.js","assets/mcp-oauth-XgK_hrdl.js","assets/Play-BfAmSLXY.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-DR_rePBs.js";import{R as l}from"./require-capability-CWWOJPSW.js";import"./use-capability-D2rsaN6r.js";import"./access-gate-O6D6hWrf.js";import"./capability-load-error-BJCCKmds.js";const m=s.lazy(()=>o(()=>import("./registry-layout-BJRgjVur.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,4 +1,4 @@
|
|
|
1
|
-
import{e as W,p as fe,m as Re,F as Te,a as be,n as Q,r as T,j as t,B as V,l as Fe,c as Z,b9 as qs,ba as Bs}from"./index-
|
|
1
|
+
import{e as W,p as fe,m as Re,F as Te,a as be,n as Q,r as T,j as t,B as V,l as Fe,c as Z,b9 as qs,ba as Bs}from"./index-DR_rePBs.js";import{c as Jt,b as Qs,d as ds,a as Vs,i as Gs,t as Ks,f as Ys,n as Hs,e as Ws}from"./XCircle-DA_NLmoN.js";import{i as qe}from"./CheckCircle-f5gZcaGs.js";import{s as Mt,c as Js,i as Zs,b as Xs,a as er}from"./Settings02-xC8_pyoX.js";import{S as Me,u as Ie,W as tr}from"./use-mcp-client-C71iBuk1.js";import{u as us}from"./useInfiniteQuery-ZExvzXfO.js";import{u as _e}from"./studio-tools-bwIfUd7N.js";import{B as F}from"./badge-BZkDCIOE.js";import{I as ue}from"./input-y1TM2XAx.js";import{a as dt,c as Ne,D as ut,b as mt,i as Zt,k as Xt,g as sr}from"./dropdown-menu-DdGNF14G.js";import{c as Et,d as Dt,a as Be,e as le,b as At,T as oe}from"./table-CT6UZ1xs.js";import{T as rr,a as es}from"./toggle-group-Bbddrz4I.js";import{u as nr}from"./use-view-mode-ypnKmup6.js";import{a as $t}from"./DotsVertical-BMWCYHTN.js";import{i as ir}from"./FilterLines-D4i7TeOP.js";import{n as ar,i as ms}from"./Globe01-DhUQ5HNX.js";import{i as lr}from"./SearchMd-DJ2wt73y.js";import{D as xt,a as pt,b as ht,e as ft,c as gt,d as jt}from"./dialog-BxPbOvQB.js";import{i as Ye}from"./AlertCircle-CPhjAdzy.js";import{i as ts}from"./Upload01-D4ujwkxA.js";import{c as He,b as We,d as Je,A as Ze,g as Xe,e as et,a as tt,f as st}from"./alert-dialog-Cmw7yEK3.js";import{C as ne}from"./card-C2sSM-Le.js";import{s as rt}from"./Trash01-Dv2bkB3B.js";import{L as te}from"./label-DEiO6j8m.js";import{d as or,b as cr,c as dr,S as ur,a as St}from"./select-DGCvlKab.js";import{S as ze}from"./switch-zzOr4XIL.js";import{T as vt}from"./textarea-CDXfa-ym.js";import{i as mr}from"./X-XfDufvpq.js";import{t as xr}from"./ChevronDown-DEax0m8J.js";import{n as pr,i as Rt}from"./ChevronUp-k8vE0jpp.js";import{C as ss}from"./checkbox-Bx3S96Y8.js";import{s as xs,a as Tt}from"./Eye-CFgk5O7d.js";import{n as hr}from"./LinkExternal01-DvInJfCe.js";import{u as fr}from"./use-infinite-scroll-C7aFA98u.js";import{u as It}from"./use-copy-BE_HAr84.js";import{i as gr}from"./Key01-BDydLAZy.js";import{s as jr}from"./Plus-C1_ruIfW.js";import{T as vr,a as br,b as yr}from"./tooltip-BYURy38b.js";import{i as Nr,a as wr}from"./mcp-oauth-XgK_hrdl.js";import{i as _r}from"./Play-BfAmSLXY.js";import"./auth-CTqVB4IS.js";import"./ChevronRight-C3K9gEKE.js";const Ue="private-registry",Cr=`
|
|
2
2
|
You are an MCP tool tester running automated integration checks.
|
|
3
3
|
|
|
4
4
|
Goal:
|
package/dist/client/assets/{require-capability-GPOwZTVN.js → require-capability-CWWOJPSW.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as p,j as m}from"./index-
|
|
1
|
+
import{e as p,j as m}from"./index-DR_rePBs.js";import{u as l}from"./use-capability-D2rsaN6r.js";import{A as u}from"./access-gate-O6D6hWrf.js";function b(n){const t=p.c(6),{capability:c,area:e,children:i}=n,{granted:a,loading:o,error:s}=l(c);let r;return t[0]!==e||t[1]!==i||t[2]!==s||t[3]!==a||t[4]!==o?(r=m.jsx(u,{granted:a,loading:o,error:s,area:e,children:i}),t[0]=e,t[1]=i,t[2]=s,t[3]=a,t[4]=o,t[5]=r):r=t[5],r}export{b as R};
|
package/dist/client/assets/{required-auth-layout-D9YU16Eu.js → required-auth-layout-CxWIW5O_.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as c,j as i,A as a,S as u,h as m,k as f,N as h}from"./index-
|
|
1
|
+
import{e as c,j as i,A as a,S as u,h as m,k as f,N as h}from"./index-DR_rePBs.js";import{u as x}from"./useRouterState-yO0hfTaq.js";function g(){const t=c.c(5),s=x().location.href;let n;t[0]!==s?(n=s==="/login"||s.startsWith("/login?"),t[0]=s,t[1]=n):n=t[1];const r=n;let o;if(t[2]!==s||t[3]!==r){const l=r?{}:{next:s};o=i.jsx(h,{to:"/login",search:l,replace:!0}),t[2]=s,t[3]=r,t[4]=o}else o=t[4];return o}function j(t){const e=c.c(6),{children:s}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(a,{children:i.jsx(u,{})}),e[0]=n):n=e[0];let r;e[1]!==s?(r=i.jsx(m,{children:s}),e[1]=s,e[2]=r):r=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx(f,{children:i.jsx(g,{})}),e[3]=o):o=e[3];let l;return e[4]!==r?(l=i.jsxs(i.Fragment,{children:[n,r,o]}),e[4]=r,e[5]=l):l=e[5],l}export{j as R};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as q,d as Y,f as A,r as B,a as G,j as s,B as z,b as K}from"./index-
|
|
1
|
+
import{e as q,d as Y,f as A,r as B,a as G,j as s,B as z,b as K}from"./index-DR_rePBs.js";import{I as L}from"./input-y1TM2XAx.js";function H(){const e=q.c(45);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/reset-password"},e[0]=n):n=e[0];const{token:r,error:h}=Y(n),a=A(),[o,D]=B.useState(""),[l,M]=B.useState(""),[t,T]=B.useState(!1),i=h==="INVALID_TOKEN";let j;e[1]===Symbol.for("react.memo_cache_sentinel")?(j={mutationFn:O,onSuccess:()=>{T(!0)}},e[1]=j):j=e[1];const w=G(j),v=o===l,c=o.length>=8&&l.length>=8&&v,d=w.isPending,N=w.error;let y;e[2]!==c||e[3]!==o||e[4]!==w||e[5]!==r?(y=b=>{b.preventDefault(),!(!r||!c)&&w.mutate({newPassword:o,token:r})},e[2]=c,e[3]=o,e[4]=w,e[5]=r,e[6]=y):y=e[6];const F=y;let k;e[7]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle, var(--primary-foreground) 1px, transparent 1px)",backgroundSize:"16px 16px",opacity:.15}}),e[7]=k):k=e[7];let S,_,P,C;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),_=s.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),P=s.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),C=s.jsx("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),e[8]=S,e[9]=_,e[10]=P,e[11]=C):(S=e[8],_=e[9],P=e[10],C=e[11]);let E;e[12]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx("div",{className:"flex justify-center",children:s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12"})}),e[12]=E):E=e[12];const I=t?"Password reset successful":"Set a new password";let m;e[13]!==I?(m=s.jsx("div",{className:"text-center space-y-1",children:s.jsx("p",{className:"text-sm text-foreground/70",children:I})}),e[13]=I,e[14]=m):m=e[14];let u;e[15]!==i||e[16]!==a||e[17]!==t||e[18]!==r?(u=(i||!r&&!t)&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:"This reset link is invalid or has expired."}),s.jsx(z,{onClick:()=>a({to:"/login"}),className:"w-full font-semibold",size:"lg",children:"Back to login"})]}),e[15]=i,e[16]=a,e[17]=t,e[18]=r,e[19]=u):u=e[19];let x;e[20]!==N?(x=N&&s.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:N.message||"Failed to reset password. Please try again."}),e[20]=N,e[21]=x):x=e[21];let f;e[22]!==a||e[23]!==t?(f=t&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"rounded-xl bg-emerald-500/10 p-3 text-sm text-emerald-600 dark:text-emerald-400 text-center",children:"Your password has been reset. You can now sign in with your new password."}),s.jsx(z,{onClick:()=>a({to:"/login"}),className:"w-full font-semibold",size:"lg",children:"Go to login"})]}),e[22]=a,e[23]=t,e[24]=f):f=e[24];let g;e[25]!==c||e[26]!==l||e[27]!==F||e[28]!==i||e[29]!==d||e[30]!==o||e[31]!==v||e[32]!==t||e[33]!==r?(g=r&&!i&&!t&&s.jsxs("form",{onSubmit:F,className:"grid gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"New password"}),s.jsx(L,{type:"password",placeholder:"••••••••",value:o,onChange:b=>D(b.target.value),required:!0,minLength:8,disabled:d})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Confirm password"}),s.jsx(L,{type:"password",placeholder:"••••••••",value:l,onChange:b=>M(b.target.value),required:!0,minLength:8,disabled:d}),l&&!v&&s.jsx("p",{className:"text-xs text-destructive mt-1.5",children:"Passwords do not match"})]}),s.jsx(z,{type:"submit",disabled:d||!c,className:"w-full font-semibold",size:"lg",children:d?"Resetting...":"Reset password"})]}),e[25]=c,e[26]=l,e[27]=F,e[28]=i,e[29]=d,e[30]=o,e[31]=v,e[32]=t,e[33]=r,e[34]=g):g=e[34];let p;e[35]!==a||e[36]!==t?(p=!t&&s.jsx("div",{className:"text-center",children:s.jsx(z,{type:"button",variant:"link",onClick:()=>a({to:"/login"}),className:"text-sm text-muted-foreground hover:text-foreground",children:"Back to sign in"})}),e[35]=a,e[36]=t,e[37]=p):p=e[37];let R;return e[38]!==m||e[39]!==u||e[40]!==x||e[41]!==f||e[42]!==g||e[43]!==p?(R=s.jsxs("main",{className:"relative flex min-h-screen items-center justify-center bg-gradient-to-br from-primary to-primary/75 p-4",children:[k,s.jsxs("div",{className:"relative z-10",children:[S,_,P,C,s.jsxs("div",{className:"mx-auto w-full min-w-[400px] max-w-md grid gap-6 bg-card p-10 border border-primary-foreground/20",children:[E,m,u,x,f,g,p]})]})]}),e[38]=m,e[39]=u,e[40]=x,e[41]=f,e[42]=g,e[43]=p,e[44]=R):R=e[44],R}async function O(e){const{newPassword:n,token:r}=e,h=await K.resetPassword({newPassword:n,token:r});if(h.error)throw new Error(h.error.message||"Failed to reset password");return h}export{H as default};
|