decocms 3.97.3 → 3.97.4
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-CiYXjBCp.js → AlertCircle-BI7qL-zf.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-D62C8hBG.js → ArrowUpRight-Z3BBkuVk.js} +1 -1
- package/dist/client/assets/{CheckCircle-B0cHPrPi.js → CheckCircle-Ct0IkEsg.js} +1 -1
- package/dist/client/assets/{ChevronDown-Ep-T2bbc.js → ChevronDown-c1oSYfs-.js} +1 -1
- package/dist/client/assets/{ChevronLeft-Cn3JRl7K.js → ChevronLeft-B5WBGMCf.js} +1 -1
- package/dist/client/assets/{ChevronRight-BB8PtdU_.js → ChevronRight-ro8pTEbC.js} +1 -1
- package/dist/client/assets/{ChevronUp-BCrNzv-A.js → ChevronUp-D4yp8Sde.js} +1 -1
- package/dist/client/assets/{DotsVertical-21OsfYko.js → DotsVertical-Bva5wMia.js} +1 -1
- package/dist/client/assets/{Eye-vPozEeRC.js → Eye-Dz0LfZhX.js} +1 -1
- package/dist/client/assets/{FilterLines-BcHnc4HO.js → FilterLines-CNNSd5My.js} +1 -1
- package/dist/client/assets/{Globe01-eAXhqoKJ.js → Globe01-Cat8RRQP.js} +1 -1
- package/dist/client/assets/{Globe04-8G7DaJlX.js → Globe04-CNkdEC4q.js} +1 -1
- package/dist/client/assets/{HardDrive-BJ-lnZmp.js → HardDrive-Bp0ax-t_.js} +1 -1
- package/dist/client/assets/{Key01-qC4LCntt.js → Key01-CK-dtvzj.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DiBhmi5f.js → LayoutLeft-DRgE3-pt.js} +1 -1
- package/dist/client/assets/{LinkExternal01-k2q6wU7l.js → LinkExternal01-BMRTG9GY.js} +1 -1
- package/dist/client/assets/{Monitor01-DvPP6kPt.js → Monitor01-ClILKoXR.js} +1 -1
- package/dist/client/assets/{Palette-BaoaCY0h.js → Palette-DzZpBk45.js} +1 -1
- package/dist/client/assets/{Play-CMo8plFz.js → Play-B0tuLbrU.js} +1 -1
- package/dist/client/assets/{Plus-CexM6aI0.js → Plus-C2AcrVDQ.js} +1 -1
- package/dist/client/assets/{SearchMd-BT6OYA0s.js → SearchMd-CiOkSnnl.js} +1 -1
- package/dist/client/assets/{Settings02-CtG2aS1_.js → Settings02-DIy8pOAO.js} +1 -1
- package/dist/client/assets/{Shield01-Dwjpxvd-.js → Shield01-txQYlyv3.js} +1 -1
- package/dist/client/assets/{Star01-Ccb8Hi5b.js → Star01-DhVZBXZp.js} +1 -1
- package/dist/client/assets/{Stars01-Dsl5vjAD.js → Stars01-BpFWqd_D.js} +1 -1
- package/dist/client/assets/{Stars02-kHQQc3aX.js → Stars02-Ulg_Ysyf.js} +1 -1
- package/dist/client/assets/{Sun-BjBDYy_F.js → Sun-DTQS8SC0.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-YTEahx81.js → SwitchHorizontal01-h5bJ4Pj6.js} +1 -1
- package/dist/client/assets/{Tool01-DaG15Hqa.js → Tool01-95LOctqu.js} +1 -1
- package/dist/client/assets/{Trash01-B5-ciNMB.js → Trash01-CA4eBk7v.js} +1 -1
- package/dist/client/assets/{Upload01-DWdtOJ5u.js → Upload01-C6hlgF_d.js} +1 -1
- package/dist/client/assets/{User01-4kOfLZMN.js → User01-Bj4QEnuq.js} +1 -1
- package/dist/client/assets/{Users01-dV9sT0dy.js → Users01-DjqWZa4u.js} +1 -1
- package/dist/client/assets/{Users03-D9C5BM7D.js → Users03-BnJ4POBL.js} +1 -1
- package/dist/client/assets/{X-BKm6Fw1t.js → X-C3pn9FBd.js} +1 -1
- package/dist/client/assets/{XCircle-CAZvEkjb.js → XCircle-NMY-qxx5.js} +1 -1
- package/dist/client/assets/{XClose-ssDuFEQg.js → XClose-JPFhglUg.js} +1 -1
- package/dist/client/assets/{Zap-C-erO5Sh.js → Zap-DZT0zVFp.js} +1 -1
- package/dist/client/assets/{ZapSquare-DbVR4h30.js → ZapSquare-CqtF4LbQ.js} +1 -1
- package/dist/client/assets/{ZoomOut-BNzpzje_.js → ZoomOut-D5bsZWrB.js} +1 -1
- package/dist/client/assets/{access-gate-BkA2GKhf.js → access-gate-WSH9l2fw.js} +1 -1
- package/dist/client/assets/{add-section-modal-DxQ_2Wd2.js → add-section-modal-B8U8k2da.js} +1 -1
- package/dist/client/assets/{agent-icon-DC15QH5N.js → agent-icon-CUDD1qQU.js} +1 -1
- package/dist/client/assets/{agents-list-DcKbuDjZ.js → agents-list-Mmv48hK1.js} +1 -1
- package/dist/client/assets/{ai-providers-Je5PimJe.js → ai-providers-DG_vNOxr.js} +1 -1
- package/dist/client/assets/{alert-Dl9mLaEt.js → alert-B3Lwgjtc.js} +1 -1
- package/dist/client/assets/{alert-dialog-DgcsfpwV.js → alert-dialog-Dr09xmbF.js} +1 -1
- package/dist/client/assets/{app-editor-9i48Z1mN.js → app-editor-iiNJMmFS.js} +1 -1
- package/dist/client/assets/{auth-fUaquGnI.js → auth-DEoT60Hp.js} +1 -1
- package/dist/client/assets/{auth-catchall-C-nIq0-D.js → auth-catchall-mlk2GEuO.js} +1 -1
- package/dist/client/assets/{auth-entry-BRIrNXJW.js → auth-entry-D5mX9Y1D.js} +1 -1
- package/dist/client/assets/{auth-split-layout-MeF5ymWQ.js → auth-split-layout-BmZglzY9.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DJxmh0FS.js → authenticate-and-persist-oauth-DdfnmUPY.js} +1 -1
- package/dist/client/assets/{automation-list-row-BE7UAA7m.js → automation-list-row-DPE279l_.js} +1 -1
- package/dist/client/assets/{automation-runs-KROcbEKJ.js → automation-runs-BKcxyen4.js} +1 -1
- package/dist/client/assets/{automations-M_nP8Dw1.js → automations-smiyhS9S.js} +1 -1
- package/dist/client/assets/{avatar-VLg8_8qy.js → avatar-VM4z7Sph.js} +1 -1
- package/dist/client/assets/{badge-CXqt8LsO.js → badge-BZaA6_yP.js} +1 -1
- package/dist/client/assets/{block-document-gRQauTZI.js → block-document-BZQOaxe6.js} +1 -1
- package/dist/client/assets/{brand-context-BBxDnkt1.js → brand-context-DY3B6pea.js} +1 -1
- package/dist/client/assets/{buckets-BMjr1jEe.js → buckets-CIWObJCG.js} +1 -1
- package/dist/client/assets/{capability-load-error-BssWdjEJ.js → capability-load-error-CTNXM3k1.js} +1 -1
- package/dist/client/assets/{card-c1tDYTHP.js → card-6Fn3KHk6.js} +1 -1
- package/dist/client/assets/{category-editor-DsdVSDFi.js → category-editor-E-0PdzQN.js} +1 -1
- package/dist/client/assets/{chat-context-DAyh5sec.js → chat-context-CkCIvS-v.js} +1 -1
- package/dist/client/assets/{checkbox-BZ4Cev3m.js → checkbox-DwEPCxo5.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DIR-u7k3.js → cli-auth-success-CjSSt7y-.js} +1 -1
- package/dist/client/assets/{collection-detail-xnmDLTC2.js → collection-detail-Dx0PFfMs.js} +1 -1
- package/dist/client/assets/{collection-display-button-5E1VxEVW.js → collection-display-button-DCfbO2En.js} +1 -1
- package/dist/client/assets/{collection-search-BHxcuieJ.js → collection-search-D0UcbNUO.js} +1 -1
- package/dist/client/assets/{collection-tabs-BMqIu2hn.js → collection-tabs-C7i3EtkQ.js} +1 -1
- package/dist/client/assets/{command-hmVb9nzj.js → command-C2F2XANI.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-BPECsSVR.js → commerce-onboarding-DpQtYpFJ.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-M8mQpyYi.js → connect-desktop-dialog-SkaagoHI.js} +1 -1
- package/dist/client/assets/{connection-card-DwO2q63k.js → connection-card-DKzKsYD0.js} +1 -1
- package/dist/client/assets/{connection-detail-DlzvyCLX.js → connection-detail-106OasvA.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-_UdmyYSC.js → connection-form-helpers-xWNyKJEb.js} +1 -1
- package/dist/client/assets/{connections-BzsSZkKz.js → connections-CQDCMrAi.js} +1 -1
- package/dist/client/assets/{context-menu-ClXPOkdV.js → context-menu-DBrEbI4f.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DF7I7n1i.js → decopilot-sse-pool-p2LEr2W4.js} +1 -1
- package/dist/client/assets/{decopilot-BZ76gfhX.js → decopilot-xz4hhVZ2.js} +1 -1
- package/dist/client/assets/{dialog-CaTEiJVO.js → dialog-XnZQaCET.js} +1 -1
- package/dist/client/assets/{domain-settings-Dy-h970m.js → domain-settings-BmO0lECY.js} +1 -1
- package/dist/client/assets/{drawer-BAJPoLOE.js → drawer-B5z2AOPt.js} +1 -1
- package/dist/client/assets/{dropdown-menu-oCs7Iiv2.js → dropdown-menu-CjfuPw4B.js} +1 -1
- package/dist/client/assets/{empty-state-wZACnL2J.js → empty-state-K13YYE8V.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Bmmw_I_H.js → extract-connection-data-D2_IgRyD.js} +1 -1
- package/dist/client/assets/{file-explorer-DYFMt1oY.js → file-explorer-CSMcmCDO.js} +1 -1
- package/dist/client/assets/{file-type-icon-DHG3dnn1.js → file-type-icon-gLx9uWdG.js} +1 -1
- package/dist/client/assets/{files-BjRJXW0l.js → files-CgBtSGQa.js} +1 -1
- package/dist/client/assets/{form-BWIorvmY.js → form-BCSBsB3M.js} +1 -1
- package/dist/client/assets/{general-CFBr5HF3.js → general-Dev0qsuS.js} +1 -1
- package/dist/client/assets/{github-repo-picker-Bqmm5RYY.js → github-repo-picker-B4DQ87lb.js} +1 -1
- package/dist/client/assets/{hooks-DGQm848Q.js → hooks-Dh6Jo6FF.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-z9TrSbfs.js → import-from-deco-dialog-BVHsGWbT.js} +1 -1
- package/dist/client/assets/{index-ZWBhZDHA.js → index-BBAsYjSg.js} +1 -1
- package/dist/client/assets/{index-DFanLV1X.js → index-BbxDcYXz.js} +1 -1
- package/dist/client/assets/{index-CVhJkkBU.js → index-BuTMcq2r.js} +1 -1
- package/dist/client/assets/{index-DY2Xseue.js → index-C8Wh7-Ly.js} +1 -1
- package/dist/client/assets/{index-6BQORbvL.js → index-CE2XOQVr.js} +1 -1
- package/dist/client/assets/{index-C4Z0gT1h.js → index-CJOXnwUs.js} +1 -1
- package/dist/client/assets/{index-CqwvSop6.js → index-CQJFA7-5.js} +1 -1
- package/dist/client/assets/{index-DIk1O_Dr.js → index-DSYaiu7_.js} +1 -1
- package/dist/client/assets/{index-17QLTZMM.js → index-DbYhcgAw.js} +5 -5
- package/dist/client/assets/{index-DLQ4JwZN.js → index-Djd6TuLO.js} +3 -3
- package/dist/client/assets/{index-DHFxvk5e.js → index-IsMJIAw6.js} +1 -1
- package/dist/client/assets/{index-AltTReR4.js → index-WC9jROXW.js} +1 -1
- package/dist/client/assets/{index-B83rPo9I.js → index-Wtqqsvov.js} +1 -1
- package/dist/client/assets/{index-redirect-2HTXFJkp.js → index-redirect-LwQf8HQF.js} +1 -1
- package/dist/client/assets/{index-qjVbGUv9.js → index-y2e8K8Eh.js} +1 -1
- package/dist/client/assets/{input-BFLS6IB9.js → input-BNOGUlQT.js} +1 -1
- package/dist/client/assets/{integration-icon-DD9LcA1t.js → integration-icon-Da8Ja8xZ.js} +1 -1
- package/dist/client/assets/{label-TS_o46fE.js → label-BzwbJuLA.js} +1 -1
- package/dist/client/assets/{login-jqUZykUn.js → login-BFTv0hNB.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DyPHEZc0.js → mcp-oauth-CiksM5XP.js} +1 -1
- package/dist/client/assets/{members-Oku2ILxU.js → members-BhnBffwF.js} +1 -1
- package/dist/client/assets/{monaco-editor-D0BeTcV-.js → monaco-editor-DiBPYiNx.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BkORDVIl.js → monitoring-stats-row-CcPgk97X.js} +1 -1
- package/dist/client/assets/{oauth-callback-BgIbnfWn.js → oauth-callback-BrGCqspF.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DnNDJyNh.js → oauth-callback-ai-provider-BfdjFrej.js} +1 -1
- package/dist/client/assets/{onboarding-Df5Y7dbu.js → onboarding-CxGIxXF1.js} +1 -1
- package/dist/client/assets/{org-install-C9pyMts_.js → org-install-CI7aPCB0.js} +1 -1
- package/dist/client/assets/{org-layout-Bl_9Td80.js → org-layout-DOBb0Fbt.js} +1 -1
- package/dist/client/assets/{organization-choice-vRlqbiOV.js → organization-choice-BFeOoh8u.js} +1 -1
- package/dist/client/assets/{page-seo-form-BlSVNC9f.js → page-seo-form-BTOsm1v0.js} +1 -1
- package/dist/client/assets/page-seo-sheet-BC74IS3P.js +1 -0
- package/dist/client/assets/{popover-BSP7ejLc.js → popover-D2ChxMGV.js} +1 -1
- package/dist/client/assets/{post-editor-CXXGCGJD.js → post-editor-BkEG5JCy.js} +1 -1
- package/dist/client/assets/{preview-dialog-CSsWWs5M.js → preview-dialog-Dyv-Otum.js} +1 -1
- package/dist/client/assets/{primitives-DhSbPHiR.js → primitives-DqhOOS3x.js} +1 -1
- package/dist/client/assets/{profile-BZTAS1CN.js → profile-BJcOUl1z.js} +1 -1
- package/dist/client/assets/project-app-view-juh8eCQN.js +1 -0
- package/dist/client/assets/record-editor-Bl6ua1Xn.js +1 -0
- package/dist/client/assets/registry-1R5kgpGp.js +2 -0
- package/dist/client/assets/{registry-layout-BRvslRVV.js → registry-layout-BHbBw0Su.js} +1 -1
- package/dist/client/assets/{require-capability-CikSO1sK.js → require-capability-CS7JuOWU.js} +1 -1
- package/dist/client/assets/{required-auth-layout-1Q0s2bde.js → required-auth-layout-D8JzfwRM.js} +1 -1
- package/dist/client/assets/{reset-password-e6G_i6Vq.js → reset-password-BUI5EECa.js} +1 -1
- package/dist/client/assets/{roles-BKbJv76K.js → roles-B25l2ywl.js} +1 -1
- package/dist/client/assets/{save-status-DJMZw4Ff.js → save-status-CcBc_RS2.js} +1 -1
- package/dist/client/assets/{scroll-area-bUXD_r58.js → scroll-area-BnoH8jf-.js} +1 -1
- package/dist/client/assets/{search-input-Cw_P0J35.js → search-input-Djqm0TA1.js} +1 -1
- package/dist/client/assets/{secrets-DH2hlPoO.js → secrets-DcAzNXon.js} +1 -1
- package/dist/client/assets/{sections-editor-D2ALK4En.js → sections-editor-Bk9qVARB.js} +1 -1
- package/dist/client/assets/{select-C0lOOEoK.js → select-DKj7B0V2.js} +1 -1
- package/dist/client/assets/{select-model-vYCpp3x3.js → select-model-Bimfcw46.js} +1 -1
- package/dist/client/assets/{seo-editor-CkygDS8T.js → seo-editor-J7Oo13p-.js} +1 -1
- package/dist/client/assets/{settings-layout-BXYPwJV4.js → settings-layout-DY61B_5X.js} +1 -1
- package/dist/client/assets/{settings-section-Bk_k5SKB.js → settings-section-BHLR2lqY.js} +1 -1
- package/dist/client/assets/{sheet-DAwn9AHA.js → sheet-a31ex1bd.js} +1 -1
- package/dist/client/assets/{shell-controls-HZ3369Yf.js → shell-controls-BRxhvPab.js} +1 -1
- package/dist/client/assets/{shell-layout-DOpUjfn5.js → shell-layout-C1UY2dDO.js} +1 -1
- package/dist/client/assets/{shell-route-loading-xptU08tM.js → shell-route-loading-D1Wm-1cK.js} +1 -1
- package/dist/client/assets/{sidebar-g2qAal9U.js → sidebar-Cj_aFqAP.js} +1 -1
- package/dist/client/assets/{skeleton-D4R3a4o-.js → skeleton-BgGeuCF7.js} +1 -1
- package/dist/client/assets/{sortable.esm-BnJIYE_Z.js → sortable.esm-CMtvLYoN.js} +1 -1
- package/dist/client/assets/{sso-qEodk6g6.js → sso-DqhUN-uI.js} +1 -1
- package/dist/client/assets/{store-C4B_G2oW.js → store-CdnJ7fUT.js} +1 -1
- package/dist/client/assets/store-registry-k484eohP.js +2 -0
- package/dist/client/assets/{studio-tools-COOhA4uQ.js → studio-tools-gp9mLcnF.js} +1 -1
- package/dist/client/assets/{switch-B56_YQh-.js → switch-14YiCb40.js} +1 -1
- package/dist/client/assets/{table-C_RjqUn4.js → table-D5xuIpUU.js} +1 -1
- package/dist/client/assets/{tabs-DWit868K.js → tabs-ChA8V1ag.js} +1 -1
- package/dist/client/assets/{task-status-ANvwNzqA.js → task-status-C7xHgaQ7.js} +1 -1
- package/dist/client/assets/{textarea-DUeOU9F3.js → textarea-0LfkB4H6.js} +1 -1
- package/dist/client/assets/{toggle-group-BJd6ihxO.js → toggle-group-Ctok94CI.js} +1 -1
- package/dist/client/assets/{toolbar-CqV98Xz1.js → toolbar-Dgv-0cJG.js} +1 -1
- package/dist/client/assets/{tooltip-BBVKuVWA.js → tooltip-DNHEz7H9.js} +1 -1
- package/dist/client/assets/{types-CFybozjb.js → types-BpjdnyIn.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BI7Dx3UD.js → use-ai-providers-FEYc1hYo.js} +1 -1
- package/dist/client/assets/{use-automations-BlPG5Nag.js → use-automations-BBBpz3Ll.js} +1 -1
- package/dist/client/assets/{use-capability-GDRaaPxs.js → use-capability-BDeYhQRR.js} +1 -1
- package/dist/client/assets/{use-clock-tick-10nS2wAD.js → use-clock-tick-xyRkceIk.js} +1 -1
- package/dist/client/assets/{use-collections-olSa4--l.js → use-collections-DHsBnI-g.js} +1 -1
- package/dist/client/assets/{use-connection-n2su9fBK.js → use-connection-d25soQOF.js} +1 -1
- package/dist/client/assets/{use-copy-CV2s0Bln.js → use-copy-dG8egJns.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-G5bEKswL.js → use-create-virtual-mcp-t3h12kDQ.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-3i25sE_n.js → use-debounced-autosave-CbQ41T1D.js} +1 -1
- package/dist/client/assets/{use-delete-connection-C1BvcpjL.js → use-delete-connection-DWsYfcTZ.js} +1 -1
- package/dist/client/assets/{use-file-configs-fW8ExhxC.js → use-file-configs-BZdMLkS5.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DEtplhmh.js → use-infinite-scroll-B66e2kY3.js} +1 -1
- package/dist/client/assets/{use-join-requests-CPgAASRp.js → use-join-requests-SbIrsr3r.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CNXUneAa.js → use-mcp-client-DIy-B1wr.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Dp1bbbjz.js → use-mcp-prompts-9snCiqu-.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Dp1oFDkR.js → use-mcp-tools-Dm8hC2Ai.js} +1 -1
- package/dist/client/assets/{use-members-CbHGf6Jg.js → use-members-QdT6WLec.js} +1 -1
- package/dist/client/assets/{use-mobile-D49EcQdA.js → use-mobile-thzrczKW.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-m-7qnjdO.js → use-navigate-to-agent-BUtLr1-s.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-FC6WdH_x.js → use-org-auth-client-DEuaxZpa.js} +1 -1
- package/dist/client/assets/{use-org-sso-BFPLcR8G.js → use-org-sso-CydJi_gG.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CEdyJBDf.js → use-organization-roles-DoQvWm8B.js} +1 -1
- package/dist/client/assets/{use-organization-settings-I56W3q4b.js → use-organization-settings-BIHpPlmZ.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DeVqfCCu.js → use-registry-connections-DaDcQiUE.js} +1 -1
- package/dist/client/assets/{use-secrets-DfdiWPHB.js → use-secrets-JQFoSSKX.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DBMDawLF.js → use-status-sounds-DuB5Qdsa.js} +1 -1
- package/dist/client/assets/{use-view-mode-CVarJF55.js → use-view-mode-n-a_ONE0.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-37EwEzlF.js → use-virtual-mcp-Cw7Cf-co.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-sDr4Gfly.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-CpcwLIEk.js +1 -0
- package/dist/client/assets/{useSuspenseQueries-DlzLq1Lb.js → useSuspenseQueries-DxszLLty.js} +1 -1
- package/dist/client/assets/{variant-calendar-D1ngj2k8.js → variant-calendar-E9B1QGS8.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CoFBmpiz.js → view-mode-toggle-CmzDEt1O.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/page-seo-sheet-B4lXhQN9.js +0 -1
- package/dist/client/assets/project-app-view-zNAcdk0L.js +0 -1
- package/dist/client/assets/record-editor-CTIyv7ob.js +0 -1
- package/dist/client/assets/registry-eX771F2z.js +0 -2
- package/dist/client/assets/store-registry-BYI63lgN.js +0 -2
- package/dist/client/assets/useInfiniteQuery-Do3-OeIV.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-7BcKLQOb.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as G,j as t,B as Z}from"./index-DLQ4JwZN.js";import{n as ee}from"./LinkExternal01-k2q6wU7l.js";import{ay as te,Y as oe}from"./agent-icon-DC15QH5N.js";import{I as H}from"./input-BFLS6IB9.js";import{L as q}from"./label-TS_o46fE.js";import{M as ie}from"./automation-runs-KROcbEKJ.js";import{T as J,a as se,b as Q,c as le}from"./tabs-DWit868K.js";import{T as re}from"./textarea-DUeOU9F3.js";import{as as ae,at as me,au as pe,av as ne,aw as ce,ax as de}from"./index-17QLTZMM.js";import{b as fe,a as ue,B as xe}from"./block-document-gRQauTZI.js";import{u as he,s as F,E as ge,R as ve,A as ye}from"./primitives-DhSbPHiR.js";import{S as je}from"./save-status-DJMZw4Ff.js";import"./AlertCircle-CiYXjBCp.js";import"./Tool01-DaG15Hqa.js";import"./SwitchHorizontal01-YTEahx81.js";import"./Settings02-CtG2aS1_.js";import"./XCircle-CAZvEkjb.js";import"./ArrowUpRight-D62C8hBG.js";import"./ZapSquare-DbVR4h30.js";import"./Users03-D9C5BM7D.js";import"./CheckCircle-B0cHPrPi.js";import"./ChevronUp-BCrNzv-A.js";import"./ChevronDown-Ep-T2bbc.js";import"./ChevronLeft-Cn3JRl7K.js";import"./ChevronRight-BB8PtdU_.js";import"./DotsVertical-21OsfYko.js";import"./Stars02-kHQQc3aX.js";import"./Eye-vPozEeRC.js";import"./ZoomOut-BNzpzje_.js";import"./Globe01-eAXhqoKJ.js";import"./FilterLines-BcHnc4HO.js";import"./Star01-Ccb8Hi5b.js";import"./Globe04-8G7DaJlX.js";import"./HardDrive-BJ-lnZmp.js";import"./Key01-qC4LCntt.js";import"./LayoutLeft-DiBhmi5f.js";import"./Monitor01-DvPP6kPt.js";import"./Sun-BjBDYy_F.js";import"./Palette-BaoaCY0h.js";import"./Play-CMo8plFz.js";import"./Plus-CexM6aI0.js";import"./SearchMd-BT6OYA0s.js";import"./Shield01-Dwjpxvd-.js";import"./Stars01-Dsl5vjAD.js";import"./Trash01-B5-ciNMB.js";import"./Upload01-DWdtOJ5u.js";import"./User01-4kOfLZMN.js";import"./Users01-dV9sT0dy.js";import"./XClose-ssDuFEQg.js";import"./X-BKm6Fw1t.js";import"./Zap-C-erO5Sh.js";import"./useInfiniteQuery-Do3-OeIV.js";import"./use-infinite-scroll-DEtplhmh.js";import"./use-connection-n2su9fBK.js";import"./use-collections-olSa4--l.js";import"./use-mcp-client-CNXUneAa.js";import"./auth-fUaquGnI.js";import"./use-virtual-mcp-37EwEzlF.js";import"./card-c1tDYTHP.js";import"./sheet-DAwn9AHA.js";import"./table-C_RjqUn4.js";import"./empty-state-wZACnL2J.js";import"./use-members-CbHGf6Jg.js";import"./use-org-auth-client-FC6WdH_x.js";import"./task-status-ANvwNzqA.js";import"./use-automations-BlPG5Nag.js";import"./studio-tools-COOhA4uQ.js";import"./useSuspenseInfiniteQuery-7BcKLQOb.js";import"./badge-CXqt8LsO.js";import"./select-C0lOOEoK.js";import"./tooltip-BBVKuVWA.js";import"./checkbox-BZ4Cev3m.js";import"./command-hmVb9nzj.js";import"./index-B83rPo9I.js";import"./dialog-CaTEiJVO.js";import"./popover-BSP7ejLc.js";import"./avatar-VLg8_8qy.js";import"./scroll-area-bUXD_r58.js";import"./use-clock-tick-10nS2wAD.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CV2s0Bln.js";import"./file-type-icon-DHG3dnn1.js";import"./use-mobile-D49EcQdA.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-CFybozjb.js";import"./chat-context-DAyh5sec.js";import"./hooks-DGQm848Q.js";import"./decopilot-sse-pool-DF7I7n1i.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-BI7Dx3UD.js";import"./use-organization-settings-I56W3q4b.js";import"./shell-layout-DOpUjfn5.js";import"./required-auth-layout-1Q0s2bde.js";import"./use-org-sso-BFPLcR8G.js";import"./integration-icon-DD9LcA1t.js";import"./use-navigate-to-agent-m-7qnjdO.js";import"./use-mcp-prompts-Dp1bbbjz.js";import"./form-BWIorvmY.js";import"./index-DHFxvk5e.js";import"./drawer-BAJPoLOE.js";import"./collection-search-BHxcuieJ.js";import"./toggle-group-BJd6ihxO.js";import"./sortable.esm-BnJIYE_Z.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DwO2q63k.js";import"./use-registry-connections-DeVqfCCu.js";import"./extract-connection-data-Bmmw_I_H.js";import"./collection-tabs-BMqIu2hn.js";import"./connection-form-helpers-_UdmyYSC.js";import"./authenticate-and-persist-oauth-DJxmh0FS.js";import"./mcp-oauth-DyPHEZc0.js";import"./connect-desktop-dialog-M8mQpyYi.js";import"./decopilot-BZ76gfhX.js";import"./skeleton-D4R3a4o-.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Bk_k5SKB.js";import"./dropdown-menu-oCs7Iiv2.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DBMDawLF.js";import"./toolbar-CqV98Xz1.js";import"./preview-dialog-CSsWWs5M.js";import"./index-6BQORbvL.js";import"./use-mcp-tools-Dp1oFDkR.js";import"./use-capability-GDRaaPxs.js";import"./shell-route-loading-xptU08tM.js";import"./index-CqwvSop6.js";import"./alert-dialog-DgcsfpwV.js";import"./switch-B56_YQh-.js";import"./use-debounced-autosave-3i25sE_n.js";import"./index-DFanLV1X.js";import"./sidebar-g2qAal9U.js";import"./search-input-Cw_P0J35.js";import"./github-repo-picker-Bqmm5RYY.js";import"./use-secrets-DfdiWPHB.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-CoFBmpiz.js";import"./use-file-configs-fW8ExhxC.js";import"./monaco-editor-D0BeTcV-.js";import"./select-model-vYCpp3x3.js";import"./automation-list-row-BE7UAA7m.js";function be(A){return Array.isArray(A)?A.map(e=>({key:F(e?.key),value:F(e?.value)})):[]}function li(A){const e=G.c(66),{orgSlug:i,virtualMcpId:d,branch:o,blockKey:l,block:p,decofile:m,meta:u,previewBaseUrl:x}=A;let y;e[0]!==o||e[1]!==i||e[2]!==d?(y={orgSlug:i,virtualMcpId:d,branch:o},e[0]=o,e[1]=i,e[2]=d,e[3]=y):y=e[3];const s=ae(y);let n;e[4]!==p?(n=me(p,"posts"),e[4]=p,e[5]=n):n=e[5];const j=n;let b;e[6]!==l||e[7]!==s?(b=T=>{s.mutate({blockKey:l,data:pe(l,"posts",T)})},e[6]=l,e[7]=s,e[8]=b):b=e[8];const[r,_]=he(j,b);let C;e[9]!==r||e[10]!==_?(C=(T,X)=>_({...r,[T]:X}),e[9]=r,e[10]=_,e[11]=C):C=e[11];const h=C;let S;e[12]!==m||e[13]!==r||e[14]!==x?(S=fe({decofile:m,post:r,previewBaseUrl:x}),e[12]=m,e[13]=r,e[14]=x,e[15]=S):S=e[15];const f=S;let a;e[16]!==r.title?(a=F(r.title)||"Untitled post",e[16]=r.title,e[17]=a):a=e[17];let c;e[18]!==a?(c=t.jsx("span",{className:"truncate text-sm font-medium",children:a}),e[18]=a,e[19]=c):c=e[19];let g;e[20]!==s.isError||e[21]!==s.isPending?(g=t.jsx(je,{isPending:s.isPending,isError:s.isError}),e[20]=s.isError,e[21]=s.isPending,e[22]=g):g=e[22];const k=!f,P=f?"Open the post preview in a new tab":"Set the post slug (and its category) plus the blog app's pageSlug to preview";let N;e[23]!==f?(N=()=>{f&&window.open(f,"_blank","noopener,noreferrer")},e[23]=f,e[24]=N):N=e[24];let B;e[25]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx(ee,{size:14}),e[25]=B):B=e[25];let w;e[26]!==P||e[27]!==N||e[28]!==k?(w=t.jsxs(Z,{type:"button",variant:"outline",size:"sm",disabled:k,title:P,onClick:N,children:[B,"See preview"]}),e[26]=P,e[27]=N,e[28]=k,e[29]=w):w=e[29];let E;e[30]!==w||e[31]!==g?(E=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[g,w]}),e[30]=w,e[31]=g,e[32]=E):E=e[32];let v;e[33]!==E||e[34]!==c?(v=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,E]}),e[33]=E,e[34]=c,e[35]=v):v=e[35];let L;e[36]!==r.title?(L=F(r.title),e[36]=r.title,e[37]=L):L=e[37];let R;e[38]!==h?(R=T=>h("title",T),e[38]=h,e[39]=R):R=e[39];let U;e[40]!==L||e[41]!==R?(U=t.jsx(ge,{value:L,onChange:R,placeholder:"Post title",className:"py-1 text-4xl font-bold text-foreground"}),e[40]=L,e[41]=R,e[42]=U):U=e[42];let O;e[43]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsxs(J,{value:"content",children:[t.jsx(te,{}),"Content"]}),e[43]=O):O=e[43];let K;e[44]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsxs(se,{children:[O,t.jsxs(J,{value:"settings",children:[t.jsx(oe,{}),"Settings"]})]}),e[44]=K):K=e[44];let $;e[45]!==r.sections?($=ue(r.sections),e[45]=r.sections,e[46]=$):$=e[46];let I;e[47]!==h?(I=T=>h("sections",T),e[47]=h,e[48]=I):I=e[48];let M;e[49]!==u||e[50]!==$||e[51]!==I?(M=t.jsx(Q,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(xe,{value:$,onChange:I,meta:u,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."})})}),e[49]=u,e[50]=$,e[51]=I,e[52]=M):M=e[52];let D;e[53]!==m||e[54]!==r||e[55]!==h?(D=t.jsx(Q,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(Ce,{post:r,decofile:m,onChange:h})})}),e[53]=m,e[54]=r,e[55]=h,e[56]=D):D=e[56];let V;e[57]!==M||e[58]!==D?(V=t.jsxs(le,{defaultValue:"content",className:"mt-6 gap-4",children:[K,M,D]}),e[57]=M,e[58]=D,e[59]=V):V=e[59];let z;e[60]!==U||e[61]!==V?(z=t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[U,V]})}),e[60]=U,e[61]=V,e[62]=z):z=e[62];let Y;return e[63]!==v||e[64]!==z?(Y=t.jsxs("div",{className:"flex h-full flex-col",children:[v,z]}),e[63]=v,e[64]=z,e[65]=Y):Y=e[65],Y}function Ce(A){const e=G.c(59),{post:i,decofile:d,onChange:o}=A;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(q,{htmlFor:"post-excerpt",children:"Excerpt"}),e[0]=l):l=e[0];let p;e[1]!==i.excerpt?(p=F(i.excerpt),e[1]=i.excerpt,e[2]=p):p=e[2];let m;e[3]!==o?(m=v=>o("excerpt",v.target.value),e[3]=o,e[4]=m):m=e[4];let u;e[5]!==p||e[6]!==m?(u=t.jsxs("div",{className:"space-y-2",children:[l,t.jsx(re,{id:"post-excerpt",value:p,onChange:m,rows:2})]}),e[5]=p,e[6]=m,e[7]=u):u=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(q,{htmlFor:"post-slug",children:"Slug"}),e[8]=x):x=e[8];let y;e[9]!==i.slug?(y=F(i.slug),e[9]=i.slug,e[10]=y):y=e[10];let s;e[11]!==o?(s=v=>o("slug",v.target.value),e[11]=o,e[12]=s):s=e[12];let n;e[13]!==y||e[14]!==s?(n=t.jsxs("div",{className:"space-y-2",children:[x,t.jsx(H,{id:"post-slug",value:y,onChange:s,placeholder:"my-post",className:"h-10"})]}),e[13]=y,e[14]=s,e[15]=n):n=e[15];let j;e[16]===Symbol.for("react.memo_cache_sentinel")?(j={type:"string",format:"date",title:"Date"},e[16]=j):j=e[16];let b;e[17]!==i.date?(b=F(i.date),e[17]=i.date,e[18]=b):b=e[18];let r;e[19]!==o?(r=v=>o("date",v),e[19]=o,e[20]=r):r=e[20];let _;e[21]!==b||e[22]!==r?(_=t.jsx(de,{schema:j,value:b,onChange:r,path:"post-date",label:"Date"}),e[21]=b,e[22]=r,e[23]=_):_=e[23];let C;e[24]!==_||e[25]!==n?(C=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n,_]}),e[24]=_,e[25]=n,e[26]=C):C=e[26];let h;e[27]===Symbol.for("react.memo_cache_sentinel")?(h={type:"string",format:"image-uri",title:"Cover image"},e[27]=h):h=e[27];let S;e[28]!==o?(S=v=>o("image",v),e[28]=o,e[29]=S):S=e[29];let f;e[30]!==i.image||e[31]!==S?(f=t.jsx(ne,{schema:h,value:i.image,onChange:S,path:"post-image",label:"Cover image"}),e[30]=i.image,e[31]=S,e[32]=f):f=e[32];let a;e[33]===Symbol.for("react.memo_cache_sentinel")?(a=["email"],e[33]=a):a=e[33];let c;e[34]!==o?(c=v=>o("authors",v),e[34]=o,e[35]=c):c=e[35];let g;e[36]!==d||e[37]!==i.authors||e[38]!==c?(g=t.jsx(W,{label:"Authors",decofile:d,kind:"authors",valueField:"email",extraFields:a,selected:i.authors,onChange:c}),e[36]=d,e[37]=i.authors,e[38]=c,e[39]=g):g=e[39];let k;e[40]===Symbol.for("react.memo_cache_sentinel")?(k=["slug"],e[40]=k):k=e[40];let P;e[41]!==o?(P=v=>o("categories",v),e[41]=o,e[42]=P):P=e[42];let N;e[43]!==d||e[44]!==i.categories||e[45]!==P?(N=t.jsx(W,{label:"Categories",decofile:d,kind:"categories",valueField:"slug",extraFields:k,selected:i.categories,onChange:P}),e[43]=d,e[44]=i.categories,e[45]=P,e[46]=N):N=e[46];let B;e[47]!==o?(B=v=>o("extraProps",v),e[47]=o,e[48]=B):B=e[48];let w;e[49]!==i.extraProps||e[50]!==B?(w=t.jsx(ke,{value:i.extraProps,onChange:B}),e[49]=i.extraProps,e[50]=B,e[51]=w):w=e[51];let E;return e[52]!==C||e[53]!==f||e[54]!==g||e[55]!==N||e[56]!==w||e[57]!==u?(E=t.jsxs("div",{className:"space-y-5",children:[u,C,f,g,N,w]}),e[52]=C,e[53]=f,e[54]=g,e[55]=N,e[56]=w,e[57]=u,e[58]=E):E=e[58],E}function ke(A){const e=G.c(15),{value:i,onChange:d}=A;let o,l,p,m;if(e[0]!==d||e[1]!==i){o=be(i);const y=(s,n)=>d(o.map((j,b)=>b===s?{...j,...n}:j));l="space-y-2",e[6]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(q,{children:"Extra props"}),e[6]=p):p=e[6],m=o.length>0&&t.jsx("ul",{className:"space-y-2",children:o.map((s,n)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(H,{value:s.key,onChange:j=>y(n,{key:j.target.value}),placeholder:"key",className:"h-9 flex-1"}),t.jsx(H,{value:s.value,onChange:j=>y(n,{value:j.target.value}),placeholder:"value",className:"h-9 flex-1"}),t.jsx(ve,{label:"Remove prop",onClick:()=>d(o.filter((j,b)=>b!==n))})]},n))}),e[0]=d,e[1]=i,e[2]=o,e[3]=l,e[4]=p,e[5]=m}else o=e[2],l=e[3],p=e[4],m=e[5];let u;e[7]!==o||e[8]!==d?(u=t.jsx(ye,{label:"Add prop",onClick:()=>d([...o,{key:"",value:""}])}),e[7]=o,e[8]=d,e[9]=u):u=e[9];let x;return e[10]!==l||e[11]!==p||e[12]!==m||e[13]!==u?(x=t.jsxs("div",{className:l,children:[p,m,u]}),e[10]=l,e[11]=p,e[12]=m,e[13]=u,e[14]=x):x=e[14],x}function W(A){const e=G.c(31),{label:i,decofile:d,kind:o,valueField:l,extraFields:p,selected:m,onChange:u}=A;let x,y,s;if(e[0]!==d||e[1]!==o||e[2]!==l){x=ce(d,o);let f;e[6]!==l?(f=(c,g)=>F(c[l])||g,e[6]=l,e[7]=f):f=e[7],s=f;let a;e[8]!==s?(a=c=>{const{key:g,payload:k}=c;return{value:s(k,g),label:F(k.name)||s(k,g)}},e[8]=s,e[9]=a):a=e[9],y=x.map(a),e[0]=d,e[1]=o,e[2]=l,e[3]=x,e[4]=y,e[5]=s}else x=e[3],y=e[4],s=e[5];const n=y;let j;if(e[10]!==m||e[11]!==l){const f=Array.isArray(m)?m:[];let a;e[13]!==l?(a=c=>F(c[l]),e[13]=l,e[14]=a):a=e[14],j=f.map(a).filter(Boolean),e[10]=m,e[11]=l,e[12]=j}else j=e[12];const b=j;let r;e[15]!==p||e[16]!==u||e[17]!==x||e[18]!==l||e[19]!==s?(r=f=>{u(f.map(a=>{const c=x.find(k=>{const{key:P,payload:N}=k;return s(N,P)===a});if(!c)return{name:a,[l]:a};const g={name:F(c.payload.name)};for(const k of p)g[k]=c.payload[k]??a;return g}))},e[15]=p,e[16]=u,e[17]=x,e[18]=l,e[19]=s,e[20]=r):r=e[20];const _=r;let C;e[21]!==i?(C=t.jsx(q,{children:i}),e[21]=i,e[22]=C):C=e[22];let h;e[23]!==b||e[24]!==_||e[25]!==i||e[26]!==n?(h=n.length===0?t.jsxs("p",{className:"text-xs text-muted-foreground",children:["No ",i.toLowerCase()," yet — create some in the"," ",i.toLowerCase()," collection."]}):t.jsx(ie,{options:n,defaultValue:b,onValueChange:_,placeholder:`Select ${i.toLowerCase()}`,maxCount:4}),e[23]=b,e[24]=_,e[25]=i,e[26]=n,e[27]=h):h=e[27];let S;return e[28]!==C||e[29]!==h?(S=t.jsxs("div",{className:"space-y-2",children:[C,h]}),e[28]=C,e[29]=h,e[30]=S):S=e[30],S}export{li as PostEditor};
|
|
1
|
+
import{c as G,j as t,B as Z}from"./index-Djd6TuLO.js";import{n as ee}from"./LinkExternal01-BMRTG9GY.js";import{ay as te,Y as oe}from"./agent-icon-CUDD1qQU.js";import{I as H}from"./input-BNOGUlQT.js";import{L as q}from"./label-BzwbJuLA.js";import{M as ie}from"./automation-runs-BKcxyen4.js";import{T as J,a as se,b as Q,c as le}from"./tabs-ChA8V1ag.js";import{T as re}from"./textarea-0LfkB4H6.js";import{as as ae,at as me,au as pe,av as ne,aw as ce,ax as de}from"./index-DbYhcgAw.js";import{b as fe,a as ue,B as xe}from"./block-document-BZQOaxe6.js";import{u as he,s as F,E as ge,R as ve,A as ye}from"./primitives-DqhOOS3x.js";import{S as je}from"./save-status-CcBc_RS2.js";import"./AlertCircle-BI7qL-zf.js";import"./Tool01-95LOctqu.js";import"./SwitchHorizontal01-h5bJ4Pj6.js";import"./Settings02-DIy8pOAO.js";import"./XCircle-NMY-qxx5.js";import"./ArrowUpRight-Z3BBkuVk.js";import"./ZapSquare-CqtF4LbQ.js";import"./Users03-BnJ4POBL.js";import"./CheckCircle-Ct0IkEsg.js";import"./ChevronUp-D4yp8Sde.js";import"./ChevronDown-c1oSYfs-.js";import"./ChevronLeft-B5WBGMCf.js";import"./ChevronRight-ro8pTEbC.js";import"./DotsVertical-Bva5wMia.js";import"./Stars02-Ulg_Ysyf.js";import"./Eye-Dz0LfZhX.js";import"./ZoomOut-D5bsZWrB.js";import"./Globe01-Cat8RRQP.js";import"./FilterLines-CNNSd5My.js";import"./Star01-DhVZBXZp.js";import"./Globe04-CNkdEC4q.js";import"./HardDrive-Bp0ax-t_.js";import"./Key01-CK-dtvzj.js";import"./LayoutLeft-DRgE3-pt.js";import"./Monitor01-ClILKoXR.js";import"./Sun-DTQS8SC0.js";import"./Palette-DzZpBk45.js";import"./Play-B0tuLbrU.js";import"./Plus-C2AcrVDQ.js";import"./SearchMd-CiOkSnnl.js";import"./Shield01-txQYlyv3.js";import"./Stars01-BpFWqd_D.js";import"./Trash01-CA4eBk7v.js";import"./Upload01-C6hlgF_d.js";import"./User01-Bj4QEnuq.js";import"./Users01-DjqWZa4u.js";import"./XClose-JPFhglUg.js";import"./X-C3pn9FBd.js";import"./Zap-DZT0zVFp.js";import"./useInfiniteQuery-sDr4Gfly.js";import"./use-infinite-scroll-B66e2kY3.js";import"./use-connection-d25soQOF.js";import"./use-collections-DHsBnI-g.js";import"./use-mcp-client-DIy-B1wr.js";import"./auth-DEoT60Hp.js";import"./use-virtual-mcp-Cw7Cf-co.js";import"./card-6Fn3KHk6.js";import"./sheet-a31ex1bd.js";import"./table-D5xuIpUU.js";import"./empty-state-K13YYE8V.js";import"./use-members-QdT6WLec.js";import"./use-org-auth-client-DEuaxZpa.js";import"./task-status-C7xHgaQ7.js";import"./use-automations-BBBpz3Ll.js";import"./studio-tools-gp9mLcnF.js";import"./useSuspenseInfiniteQuery-CpcwLIEk.js";import"./badge-BZaA6_yP.js";import"./select-DKj7B0V2.js";import"./tooltip-DNHEz7H9.js";import"./checkbox-DwEPCxo5.js";import"./command-C2F2XANI.js";import"./index-Wtqqsvov.js";import"./dialog-XnZQaCET.js";import"./popover-D2ChxMGV.js";import"./avatar-VM4z7Sph.js";import"./scroll-area-BnoH8jf-.js";import"./use-clock-tick-xyRkceIk.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-dG8egJns.js";import"./file-type-icon-gLx9uWdG.js";import"./use-mobile-thzrczKW.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-BpjdnyIn.js";import"./chat-context-CkCIvS-v.js";import"./hooks-Dh6Jo6FF.js";import"./decopilot-sse-pool-p2LEr2W4.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-FEYc1hYo.js";import"./use-organization-settings-BIHpPlmZ.js";import"./shell-layout-C1UY2dDO.js";import"./required-auth-layout-D8JzfwRM.js";import"./use-org-sso-CydJi_gG.js";import"./integration-icon-Da8Ja8xZ.js";import"./use-navigate-to-agent-BUtLr1-s.js";import"./use-mcp-prompts-9snCiqu-.js";import"./form-BCSBsB3M.js";import"./index-IsMJIAw6.js";import"./drawer-B5z2AOPt.js";import"./collection-search-D0UcbNUO.js";import"./toggle-group-Ctok94CI.js";import"./sortable.esm-CMtvLYoN.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DKzKsYD0.js";import"./use-registry-connections-DaDcQiUE.js";import"./extract-connection-data-D2_IgRyD.js";import"./collection-tabs-C7i3EtkQ.js";import"./connection-form-helpers-xWNyKJEb.js";import"./authenticate-and-persist-oauth-DdfnmUPY.js";import"./mcp-oauth-CiksM5XP.js";import"./connect-desktop-dialog-SkaagoHI.js";import"./decopilot-xz4hhVZ2.js";import"./skeleton-BgGeuCF7.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BHLR2lqY.js";import"./dropdown-menu-CjfuPw4B.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DuB5Qdsa.js";import"./toolbar-Dgv-0cJG.js";import"./preview-dialog-Dyv-Otum.js";import"./index-CE2XOQVr.js";import"./use-mcp-tools-Dm8hC2Ai.js";import"./use-capability-BDeYhQRR.js";import"./shell-route-loading-D1Wm-1cK.js";import"./index-CQJFA7-5.js";import"./alert-dialog-Dr09xmbF.js";import"./switch-14YiCb40.js";import"./use-debounced-autosave-CbQ41T1D.js";import"./index-BbxDcYXz.js";import"./sidebar-Cj_aFqAP.js";import"./search-input-Djqm0TA1.js";import"./github-repo-picker-B4DQ87lb.js";import"./use-secrets-JQFoSSKX.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-CmzDEt1O.js";import"./use-file-configs-BZdMLkS5.js";import"./monaco-editor-DiBPYiNx.js";import"./select-model-Bimfcw46.js";import"./automation-list-row-DPE279l_.js";function be(A){return Array.isArray(A)?A.map(e=>({key:F(e?.key),value:F(e?.value)})):[]}function li(A){const e=G.c(66),{orgSlug:i,virtualMcpId:d,branch:o,blockKey:l,block:p,decofile:m,meta:u,previewBaseUrl:x}=A;let y;e[0]!==o||e[1]!==i||e[2]!==d?(y={orgSlug:i,virtualMcpId:d,branch:o},e[0]=o,e[1]=i,e[2]=d,e[3]=y):y=e[3];const s=ae(y);let n;e[4]!==p?(n=me(p,"posts"),e[4]=p,e[5]=n):n=e[5];const j=n;let b;e[6]!==l||e[7]!==s?(b=T=>{s.mutate({blockKey:l,data:pe(l,"posts",T)})},e[6]=l,e[7]=s,e[8]=b):b=e[8];const[r,_]=he(j,b);let C;e[9]!==r||e[10]!==_?(C=(T,X)=>_({...r,[T]:X}),e[9]=r,e[10]=_,e[11]=C):C=e[11];const h=C;let S;e[12]!==m||e[13]!==r||e[14]!==x?(S=fe({decofile:m,post:r,previewBaseUrl:x}),e[12]=m,e[13]=r,e[14]=x,e[15]=S):S=e[15];const f=S;let a;e[16]!==r.title?(a=F(r.title)||"Untitled post",e[16]=r.title,e[17]=a):a=e[17];let c;e[18]!==a?(c=t.jsx("span",{className:"truncate text-sm font-medium",children:a}),e[18]=a,e[19]=c):c=e[19];let g;e[20]!==s.isError||e[21]!==s.isPending?(g=t.jsx(je,{isPending:s.isPending,isError:s.isError}),e[20]=s.isError,e[21]=s.isPending,e[22]=g):g=e[22];const k=!f,P=f?"Open the post preview in a new tab":"Set the post slug (and its category) plus the blog app's pageSlug to preview";let N;e[23]!==f?(N=()=>{f&&window.open(f,"_blank","noopener,noreferrer")},e[23]=f,e[24]=N):N=e[24];let B;e[25]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx(ee,{size:14}),e[25]=B):B=e[25];let w;e[26]!==P||e[27]!==N||e[28]!==k?(w=t.jsxs(Z,{type:"button",variant:"outline",size:"sm",disabled:k,title:P,onClick:N,children:[B,"See preview"]}),e[26]=P,e[27]=N,e[28]=k,e[29]=w):w=e[29];let E;e[30]!==w||e[31]!==g?(E=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[g,w]}),e[30]=w,e[31]=g,e[32]=E):E=e[32];let v;e[33]!==E||e[34]!==c?(v=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,E]}),e[33]=E,e[34]=c,e[35]=v):v=e[35];let L;e[36]!==r.title?(L=F(r.title),e[36]=r.title,e[37]=L):L=e[37];let R;e[38]!==h?(R=T=>h("title",T),e[38]=h,e[39]=R):R=e[39];let U;e[40]!==L||e[41]!==R?(U=t.jsx(ge,{value:L,onChange:R,placeholder:"Post title",className:"py-1 text-4xl font-bold text-foreground"}),e[40]=L,e[41]=R,e[42]=U):U=e[42];let O;e[43]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsxs(J,{value:"content",children:[t.jsx(te,{}),"Content"]}),e[43]=O):O=e[43];let K;e[44]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsxs(se,{children:[O,t.jsxs(J,{value:"settings",children:[t.jsx(oe,{}),"Settings"]})]}),e[44]=K):K=e[44];let $;e[45]!==r.sections?($=ue(r.sections),e[45]=r.sections,e[46]=$):$=e[46];let I;e[47]!==h?(I=T=>h("sections",T),e[47]=h,e[48]=I):I=e[48];let M;e[49]!==u||e[50]!==$||e[51]!==I?(M=t.jsx(Q,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(xe,{value:$,onChange:I,meta:u,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."})})}),e[49]=u,e[50]=$,e[51]=I,e[52]=M):M=e[52];let D;e[53]!==m||e[54]!==r||e[55]!==h?(D=t.jsx(Q,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(Ce,{post:r,decofile:m,onChange:h})})}),e[53]=m,e[54]=r,e[55]=h,e[56]=D):D=e[56];let V;e[57]!==M||e[58]!==D?(V=t.jsxs(le,{defaultValue:"content",className:"mt-6 gap-4",children:[K,M,D]}),e[57]=M,e[58]=D,e[59]=V):V=e[59];let z;e[60]!==U||e[61]!==V?(z=t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[U,V]})}),e[60]=U,e[61]=V,e[62]=z):z=e[62];let Y;return e[63]!==v||e[64]!==z?(Y=t.jsxs("div",{className:"flex h-full flex-col",children:[v,z]}),e[63]=v,e[64]=z,e[65]=Y):Y=e[65],Y}function Ce(A){const e=G.c(59),{post:i,decofile:d,onChange:o}=A;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(q,{htmlFor:"post-excerpt",children:"Excerpt"}),e[0]=l):l=e[0];let p;e[1]!==i.excerpt?(p=F(i.excerpt),e[1]=i.excerpt,e[2]=p):p=e[2];let m;e[3]!==o?(m=v=>o("excerpt",v.target.value),e[3]=o,e[4]=m):m=e[4];let u;e[5]!==p||e[6]!==m?(u=t.jsxs("div",{className:"space-y-2",children:[l,t.jsx(re,{id:"post-excerpt",value:p,onChange:m,rows:2})]}),e[5]=p,e[6]=m,e[7]=u):u=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(q,{htmlFor:"post-slug",children:"Slug"}),e[8]=x):x=e[8];let y;e[9]!==i.slug?(y=F(i.slug),e[9]=i.slug,e[10]=y):y=e[10];let s;e[11]!==o?(s=v=>o("slug",v.target.value),e[11]=o,e[12]=s):s=e[12];let n;e[13]!==y||e[14]!==s?(n=t.jsxs("div",{className:"space-y-2",children:[x,t.jsx(H,{id:"post-slug",value:y,onChange:s,placeholder:"my-post",className:"h-10"})]}),e[13]=y,e[14]=s,e[15]=n):n=e[15];let j;e[16]===Symbol.for("react.memo_cache_sentinel")?(j={type:"string",format:"date",title:"Date"},e[16]=j):j=e[16];let b;e[17]!==i.date?(b=F(i.date),e[17]=i.date,e[18]=b):b=e[18];let r;e[19]!==o?(r=v=>o("date",v),e[19]=o,e[20]=r):r=e[20];let _;e[21]!==b||e[22]!==r?(_=t.jsx(de,{schema:j,value:b,onChange:r,path:"post-date",label:"Date"}),e[21]=b,e[22]=r,e[23]=_):_=e[23];let C;e[24]!==_||e[25]!==n?(C=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n,_]}),e[24]=_,e[25]=n,e[26]=C):C=e[26];let h;e[27]===Symbol.for("react.memo_cache_sentinel")?(h={type:"string",format:"image-uri",title:"Cover image"},e[27]=h):h=e[27];let S;e[28]!==o?(S=v=>o("image",v),e[28]=o,e[29]=S):S=e[29];let f;e[30]!==i.image||e[31]!==S?(f=t.jsx(ne,{schema:h,value:i.image,onChange:S,path:"post-image",label:"Cover image"}),e[30]=i.image,e[31]=S,e[32]=f):f=e[32];let a;e[33]===Symbol.for("react.memo_cache_sentinel")?(a=["email"],e[33]=a):a=e[33];let c;e[34]!==o?(c=v=>o("authors",v),e[34]=o,e[35]=c):c=e[35];let g;e[36]!==d||e[37]!==i.authors||e[38]!==c?(g=t.jsx(W,{label:"Authors",decofile:d,kind:"authors",valueField:"email",extraFields:a,selected:i.authors,onChange:c}),e[36]=d,e[37]=i.authors,e[38]=c,e[39]=g):g=e[39];let k;e[40]===Symbol.for("react.memo_cache_sentinel")?(k=["slug"],e[40]=k):k=e[40];let P;e[41]!==o?(P=v=>o("categories",v),e[41]=o,e[42]=P):P=e[42];let N;e[43]!==d||e[44]!==i.categories||e[45]!==P?(N=t.jsx(W,{label:"Categories",decofile:d,kind:"categories",valueField:"slug",extraFields:k,selected:i.categories,onChange:P}),e[43]=d,e[44]=i.categories,e[45]=P,e[46]=N):N=e[46];let B;e[47]!==o?(B=v=>o("extraProps",v),e[47]=o,e[48]=B):B=e[48];let w;e[49]!==i.extraProps||e[50]!==B?(w=t.jsx(ke,{value:i.extraProps,onChange:B}),e[49]=i.extraProps,e[50]=B,e[51]=w):w=e[51];let E;return e[52]!==C||e[53]!==f||e[54]!==g||e[55]!==N||e[56]!==w||e[57]!==u?(E=t.jsxs("div",{className:"space-y-5",children:[u,C,f,g,N,w]}),e[52]=C,e[53]=f,e[54]=g,e[55]=N,e[56]=w,e[57]=u,e[58]=E):E=e[58],E}function ke(A){const e=G.c(15),{value:i,onChange:d}=A;let o,l,p,m;if(e[0]!==d||e[1]!==i){o=be(i);const y=(s,n)=>d(o.map((j,b)=>b===s?{...j,...n}:j));l="space-y-2",e[6]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(q,{children:"Extra props"}),e[6]=p):p=e[6],m=o.length>0&&t.jsx("ul",{className:"space-y-2",children:o.map((s,n)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(H,{value:s.key,onChange:j=>y(n,{key:j.target.value}),placeholder:"key",className:"h-9 flex-1"}),t.jsx(H,{value:s.value,onChange:j=>y(n,{value:j.target.value}),placeholder:"value",className:"h-9 flex-1"}),t.jsx(ve,{label:"Remove prop",onClick:()=>d(o.filter((j,b)=>b!==n))})]},n))}),e[0]=d,e[1]=i,e[2]=o,e[3]=l,e[4]=p,e[5]=m}else o=e[2],l=e[3],p=e[4],m=e[5];let u;e[7]!==o||e[8]!==d?(u=t.jsx(ye,{label:"Add prop",onClick:()=>d([...o,{key:"",value:""}])}),e[7]=o,e[8]=d,e[9]=u):u=e[9];let x;return e[10]!==l||e[11]!==p||e[12]!==m||e[13]!==u?(x=t.jsxs("div",{className:l,children:[p,m,u]}),e[10]=l,e[11]=p,e[12]=m,e[13]=u,e[14]=x):x=e[14],x}function W(A){const e=G.c(31),{label:i,decofile:d,kind:o,valueField:l,extraFields:p,selected:m,onChange:u}=A;let x,y,s;if(e[0]!==d||e[1]!==o||e[2]!==l){x=ce(d,o);let f;e[6]!==l?(f=(c,g)=>F(c[l])||g,e[6]=l,e[7]=f):f=e[7],s=f;let a;e[8]!==s?(a=c=>{const{key:g,payload:k}=c;return{value:s(k,g),label:F(k.name)||s(k,g)}},e[8]=s,e[9]=a):a=e[9],y=x.map(a),e[0]=d,e[1]=o,e[2]=l,e[3]=x,e[4]=y,e[5]=s}else x=e[3],y=e[4],s=e[5];const n=y;let j;if(e[10]!==m||e[11]!==l){const f=Array.isArray(m)?m:[];let a;e[13]!==l?(a=c=>F(c[l]),e[13]=l,e[14]=a):a=e[14],j=f.map(a).filter(Boolean),e[10]=m,e[11]=l,e[12]=j}else j=e[12];const b=j;let r;e[15]!==p||e[16]!==u||e[17]!==x||e[18]!==l||e[19]!==s?(r=f=>{u(f.map(a=>{const c=x.find(k=>{const{key:P,payload:N}=k;return s(N,P)===a});if(!c)return{name:a,[l]:a};const g={name:F(c.payload.name)};for(const k of p)g[k]=c.payload[k]??a;return g}))},e[15]=p,e[16]=u,e[17]=x,e[18]=l,e[19]=s,e[20]=r):r=e[20];const _=r;let C;e[21]!==i?(C=t.jsx(q,{children:i}),e[21]=i,e[22]=C):C=e[22];let h;e[23]!==b||e[24]!==_||e[25]!==i||e[26]!==n?(h=n.length===0?t.jsxs("p",{className:"text-xs text-muted-foreground",children:["No ",i.toLowerCase()," yet — create some in the"," ",i.toLowerCase()," collection."]}):t.jsx(ie,{options:n,defaultValue:b,onValueChange:_,placeholder:`Select ${i.toLowerCase()}`,maxCount:4}),e[23]=b,e[24]=_,e[25]=i,e[26]=n,e[27]=h):h=e[27];let S;return e[28]!==C||e[29]!==h?(S=t.jsxs("div",{className:"space-y-2",children:[C,h]}),e[28]=C,e[29]=h,e[30]=S):S=e[30],S}export{li as PostEditor};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as g,aM as ln,c as A,l as ve,j as c,D as se,m as st,d as Ie,K as Y,k as be,b1 as an,J as cn,i as un,B as ee,ae as dn,t as Me,ag as fn,G as pn,e as mn}from"./index-DLQ4JwZN.js";import{d as hn,i as xn,g as gn,c as yn,e as wn,b as vn,h as bn}from"./ZoomOut-BNzpzje_.js";import{c as Sn,d as Ze,b as kt,a as Pt}from"./dialog-CaTEiJVO.js";import{T as ue,a as de,b as fe}from"./tooltip-BBVKuVWA.js";import{n as Fe,i as Ct}from"./Globe01-eAXhqoKJ.js";import{n as Et}from"./LinkExternal01-k2q6wU7l.js";import{s as zn}from"./XClose-ssDuFEQg.js";import{S as _e}from"./skeleton-D4R3a4o-.js";import{l as jn,F as kn}from"./index-6BQORbvL.js";import{F as et,M as Pn}from"./file-type-icon-DHG3dnn1.js";import{D as Cn,a as En,b as $n,c as dt}from"./dropdown-menu-oCs7Iiv2.js";import{i as Nn}from"./LayoutLeft-DiBhmi5f.js";import{I as In}from"./input-BFLS6IB9.js";import{a as Mn,P as Rn,b as Dn}from"./popover-BSP7ejLc.js";import{i as Ln}from"./ChevronUp-BCrNzv-A.js";import{a as _n}from"./Eye-vPozEeRC.js";import{i as An}from"./Key01-qC4LCntt.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 $t({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:h="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(h,{...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($t,{...n,forwardedRef:e}));$t.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;$(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($(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 h=s,z=!1;for(;h&&!h.contains(i);){if(Wn(h.getBoundingClientRect(),l)){z=!0;break}h=h.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 $(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];$(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 $e({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:s,prevLayout:r,trigger:i}){if(te(n,0))return e;const o=[...e],[l,a]=s;$(l!=null,"Invalid first pivot index"),$(a!=null,"Invalid second pivot index");let u=0;if(i==="keyboard"){{const d=n<0?a:l,f=t[d];$(f,`Panel constraints not found for index ${d}`);const{collapsedSize:x=0,collapsible:h,minSize:z=0}=f;if(h){const v=e[d];if($(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];$(f,`No panel constraints found for index ${d}`);const{collapsedSize:x=0,collapsible:h,minSize:z=0}=f;if(h){const v=e[d];if($(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];$(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 h=Math.min(Math.abs(n),Math.abs(x));n=n<0?0-h:h}{let f=n<0?l:a;for(;f>=0&&f<t.length;){const x=Math.abs(n)-Math.abs(u),h=e[f];$(h!=null,`Previous layout not found for panel index ${f}`);const z=h-x,v=ke({panelConstraints:t,panelIndex:f,size:z});if(!te(h,v)&&(u+=h-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];$(f!=null,`Previous layout not found for panel index ${d}`);const x=f+u,h=ke({panelConstraints:t,panelIndex:d,size:x});if(o[d]=h,!te(h,x)){let z=x-h,y=n<0?a:l;for(;y>=0&&y<t.length;){const P=o[y];$(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];$(l!=null,"No pivot index found"),e.forEach((d,f)=>{const{constraints:x}=d,{maxSize:h=100,minSize:z=0}=x;f===l?(s=z,r=h):(i+=z,o+=h)});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];$(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;$(l,"Eager values not found");const{panelDataArray:a}=l,u=Ot(t,i);$(u!=null,`No group found for id "${t}"`);const p=De(t,i);$(p,`No resize handles found for group id "${t}"`);const d=p.map(f=>{const x=f.getAttribute(V.resizeHandleId);$(x,"Resize handle element has no handle id attribute");const[h,z]=es(t,x,a,i);if(h==null||z==null)return()=>{};const v=y=>{if(!y.defaultPrevented)switch(y.key){case"Enter":{y.preventDefault();const P=a.findIndex(M=>M.id===h);if(P>=0){const M=a[P];$(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=$e({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);$(o,`No resize handle element found for id "${e}"`);const l=o.getAttribute(V.groupId);$(l,"Resize handle element has no group id attribute");let{initialCursorPosition:a}=s;const u=Wt(t,n),p=Ot(l,r);$(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];$(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];$(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];$(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:h}=o;h&&h(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];$(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];$(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];$(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),[h,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:h,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:m}=w.current;return m},setLayout:m=>{const{onLayout:j}=N.current,{layout:I,panelDataArray:C}=w.current,b=yt({layout:m,panelConstraints:C.map(E=>E.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=h,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:m}=w.current;if(n){if(v.length===0||v.length!==m.length)return;let j=wt[n];j==null&&(j=os(as,cs),wt[n]=j);const I=[...m],C=new Map(k.current);j(n,I,C,v,a)}},[n,v,a]),g.useEffect(()=>{});const K=g.useCallback(m=>{const{onLayout:j}=N.current,{layout:I,panelDataArray:C}=w.current;if(m.constraints.collapsible){const b=C.map(oe=>oe.constraints),{collapsedSize:E=0,panelSize:O,pivotIndices:Q}=xe(C,m,I);if($(O!=null,`Panel size not found for panel "${m.id}"`),!pe(O,E)){k.current.set(m.id,O);const le=ze(C,m)===C.length-1?O-E:E-O,G=$e({delta:le,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((m,j)=>{const{onLayout:I}=N.current,{layout:C,panelDataArray:b}=w.current;if(m.constraints.collapsible){const E=b.map(re=>re.constraints),{collapsedSize:O=0,panelSize:Q=0,minSize:oe=0,pivotIndices:le}=xe(b,m,C),G=j??oe;if(pe(Q,O)){const re=k.current.get(m.id),Ce=re!=null&&re>=G?re:G,Ge=ze(b,m)===b.length-1?Q-Ce:Ce-Q,Z=$e({delta:Ge,initialLayout:C,panelConstraints:E,pivotIndices:le,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(m=>{const{layout:j,panelDataArray:I}=w.current,{panelSize:C}=xe(I,m,j);return $(C!=null,`Panel size not found for panel "${m.id}"`),C},[]),T=g.useCallback((m,j)=>{const{panelDataArray:I}=w.current,C=ze(I,m);return is({defaultSize:j,dragState:h,layout:v,panelData:I,panelIndex:C})},[h,v]),D=g.useCallback(m=>{const{layout:j,panelDataArray:I}=w.current,{collapsedSize:C=0,collapsible:b,panelSize:E}=xe(I,m,j);return $(E!=null,`Panel size not found for panel "${m.id}"`),b===!0&&pe(E,C)},[]),X=g.useCallback(m=>{const{layout:j,panelDataArray:I}=w.current,{collapsedSize:C=0,collapsible:b,panelSize:E}=xe(I,m,j);return $(E!=null,`Panel size not found for panel "${m.id}"`),!b||we(E,C)>0},[]),_=g.useCallback(m=>{const{panelDataArray:j}=w.current;j.push(m),j.sort((I,C)=>{const b=I.order,E=C.order;return b==null&&E==null?0:b==null?-1:E==null?1:b-E}),w.current.panelDataArrayChanged=!0,P()},[P]);ye(()=>{if(w.current.panelDataArrayChanged){w.current.panelDataArrayChanged=!1;const{autoSaveId:m,onLayout:j,storage:I}=N.current,{layout:C,panelDataArray:b}=w.current;let E=null;if(m){const Q=ls(m,b,I);Q&&(k.current=new Map(Object.entries(Q.expandToSizes)),E=Q.layout)}E==null&&(E=rs({panelDataArray:b}));const O=yt({layout:E,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 m=w.current;return()=>{m.layout=[]}},[]);const L=g.useCallback(m=>{let j=!1;const I=x.current;return I&&window.getComputedStyle(I,null).getPropertyValue("direction")==="rtl"&&(j=!0),function(b){b.preventDefault();const E=x.current;if(!E)return()=>null;const{direction:O,dragState:Q,id:oe,keyboardResizeBy:le,onLayout:G}=N.current,{layout:re,panelDataArray:Ce}=w.current,{initialLayout:Le}=Q??{},Ge=Ut(oe,m,E);let Z=ss(b,m,O,Q,le,E);const ct=O==="horizontal";ct&&j&&(Z=-Z);const rn=Ce.map(on=>on.constraints),Ee=$e({delta:Z,initialLayout:Le??re,panelConstraints:rn,pivotIndices:Ge,prevLayout:re,trigger:It(b)?"keyboard":"mouse-or-touch"}),ut=!Ae(re,Ee);(Mt(b)||Rt(b))&&W.current!=Z&&(W.current=Z,!ut&&Z!==0?ct?Je(m,Z<0?Lt:_t):Je(m,Z<0?At:Tt):Je(m,0)),ut&&(y(Ee),w.current.layout=Ee,G&&G(Ee),Se(Ce,Ee,M.current))}},[]),F=g.useCallback((m,j)=>{const{onLayout:I}=N.current,{layout:C,panelDataArray:b}=w.current,E=b.map(re=>re.constraints),{panelSize:O,pivotIndices:Q}=xe(b,m,C);$(O!=null,`Panel size not found for panel "${m.id}"`);const le=ze(b,m)===b.length-1?O-j:j-O,G=$e({delta:le,initialLayout:C,panelConstraints:E,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((m,j)=>{const{layout:I,panelDataArray:C}=w.current,{collapsedSize:b=0,collapsible:E}=j,{collapsedSize:O=0,collapsible:Q,maxSize:oe=100,minSize:le=0}=m.constraints,{panelSize:G}=xe(C,m,I);G!=null&&(E&&Q&&pe(G,b)?pe(b,O)||F(m,O):G<le?F(m,le):G>oe&&F(m,oe))},[F]),J=g.useCallback((m,j)=>{const{direction:I}=N.current,{layout:C}=w.current;if(!x.current)return;const b=Ke(m,x.current);$(b,`Drag handle element not found for id "${m}"`);const E=Wt(I,j);z({dragHandleId:m,dragHandleRect:b.getBoundingClientRect(),initialCursorPosition:E,initialLayout:C})},[]),ne=g.useCallback(()=>{z(null)},[]),B=g.useCallback(m=>{const{panelDataArray:j}=w.current,I=ze(j,m);I>=0&&(j.splice(I,1),delete M.current[m.id],w.current.panelDataArrayChanged=!0,P())},[P]),S=g.useMemo(()=>({collapsePanel:K,direction:s,dragState:h,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,h,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);$(l,`No group element found for id "${l}"`);const a=De(l,s),u=Ht(l,e,s);$(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",...h}){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;$(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,$(C,'Expected event to be defined for "down" action'),w(U,C);const{onDragging:b,onPointerDown:E}=P.current;b?.(!0),E?.();break}case"move":{const{state:b}=H.current;R=!0,b!=="drag"&&D("hover"),$(C,'Expected event to be defined for "move" action'),L(C);break}case"up":{D("hover"),K();const{onClick:b,onDragging:E,onPointerUp:O}=P.current;E?.(!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,{...h,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 ur(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 dr(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 fr(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 ae(n,e,t,s){const r=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${r?`?${r}`:""}`}async function ce(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 pr(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 ce(ae(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(ae(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 mr(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 ce(ae(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 hr(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 ce(`/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 xr(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 ce(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:a}=await l.json();return a.map(fs)},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{volume:n.volume,path:n.path}}function gr(){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 ce(`/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 ps(n){const e=A.c(3),{org:t}=se();let s;return e[0]!==t.slug||e[1]!==n?(s=r=>ae(t.slug,n,"read",{path:r}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function yr(){const n=A.c(2),{org:e}=se();let t;return n[0]!==e.slug?(t=(s,r)=>ae(e.slug,s,"read",{path:r}),n[0]=e.slug,n[1]=t):t=n[1],t}function ms(n){const e=A.c(3),{org:t}=se();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async r=>(await(await ce(ae(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 hs(n){const e=A.c(18),{org:t}=se(),s=st();let r;e[0]!==t||e[1]!==n?(r=async u=>(await(await ce(ae(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 wr(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 ce(ae(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 ce(ae(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 ce(ae(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 h=Ie(x);let z;return e[22]!==d||e[23]!==h||e[24]!==a?(z={upload:a,mkdir:d,remove:h},e[22]=d,e[23]=h,e[24]=a,e[25]=z):z=e[25],z}function xs(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 gs(n){if(xs(n))throw new Error(`Invalid block key: ${n||"(empty)"}`)}function ys(n){try{return decodeURIComponent(n)}catch{return n}}function ws(n){return gs(n),encodeURIComponent(n)}function vs(n){return`.deco/blocks/${ws(n)}.json`}function vr(n){return`/${vs(n)}`}const br=1e4,bs=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 Ss(n){const e=Oe(n);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function Sr(n,e){const t=e.replace(/^\/+|\/+$/g,"");return Oe(t?`${n==="/"?"":n}/${t}`:n)}function zr(n,e){return e==="directory"?n:Ss(n)}function jr(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 zs(n){const e=at(n);return e?e.split("/").filter(Boolean).length:0}function kr(n,e,t,s=!1){return{files:[...new Set([...n,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:s||!!t.truncated}}function Pr(n,e){return zs(n)>=bs&&!e.has(n)}function Cr(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 ys(s)}function js(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 $r(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 Nr(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(h=>h.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 ks(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(...ks(r.children,e,t+1)));return s}function Ir(n){return n.split(`
|
|
1
|
+
import{r as g,aM as ln,c as A,l as ve,j as c,D as se,m as st,d as Ie,K as Y,k as be,b1 as an,J as cn,i as un,B as ee,ae as dn,t as Me,ag as fn,G as pn,e as mn}from"./index-Djd6TuLO.js";import{d as hn,i as xn,g as gn,c as yn,e as wn,b as vn,h as bn}from"./ZoomOut-D5bsZWrB.js";import{c as Sn,d as Ze,b as kt,a as Pt}from"./dialog-XnZQaCET.js";import{T as ue,a as de,b as fe}from"./tooltip-DNHEz7H9.js";import{n as Fe,i as Ct}from"./Globe01-Cat8RRQP.js";import{n as Et}from"./LinkExternal01-BMRTG9GY.js";import{s as zn}from"./XClose-JPFhglUg.js";import{S as _e}from"./skeleton-BgGeuCF7.js";import{l as jn,F as kn}from"./index-CE2XOQVr.js";import{F as et,M as Pn}from"./file-type-icon-gLx9uWdG.js";import{D as Cn,a as En,b as $n,c as dt}from"./dropdown-menu-CjfuPw4B.js";import{i as Nn}from"./LayoutLeft-DRgE3-pt.js";import{I as In}from"./input-BNOGUlQT.js";import{a as Mn,P as Rn,b as Dn}from"./popover-D2ChxMGV.js";import{i as Ln}from"./ChevronUp-D4yp8Sde.js";import{a as _n}from"./Eye-Dz0LfZhX.js";import{i as An}from"./Key01-CK-dtvzj.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 $t({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:h="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(h,{...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($t,{...n,forwardedRef:e}));$t.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;$(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($(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 h=s,z=!1;for(;h&&!h.contains(i);){if(Wn(h.getBoundingClientRect(),l)){z=!0;break}h=h.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 $(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];$(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 $e({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:s,prevLayout:r,trigger:i}){if(te(n,0))return e;const o=[...e],[l,a]=s;$(l!=null,"Invalid first pivot index"),$(a!=null,"Invalid second pivot index");let u=0;if(i==="keyboard"){{const d=n<0?a:l,f=t[d];$(f,`Panel constraints not found for index ${d}`);const{collapsedSize:x=0,collapsible:h,minSize:z=0}=f;if(h){const v=e[d];if($(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];$(f,`No panel constraints found for index ${d}`);const{collapsedSize:x=0,collapsible:h,minSize:z=0}=f;if(h){const v=e[d];if($(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];$(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 h=Math.min(Math.abs(n),Math.abs(x));n=n<0?0-h:h}{let f=n<0?l:a;for(;f>=0&&f<t.length;){const x=Math.abs(n)-Math.abs(u),h=e[f];$(h!=null,`Previous layout not found for panel index ${f}`);const z=h-x,v=ke({panelConstraints:t,panelIndex:f,size:z});if(!te(h,v)&&(u+=h-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];$(f!=null,`Previous layout not found for panel index ${d}`);const x=f+u,h=ke({panelConstraints:t,panelIndex:d,size:x});if(o[d]=h,!te(h,x)){let z=x-h,y=n<0?a:l;for(;y>=0&&y<t.length;){const P=o[y];$(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];$(l!=null,"No pivot index found"),e.forEach((d,f)=>{const{constraints:x}=d,{maxSize:h=100,minSize:z=0}=x;f===l?(s=z,r=h):(i+=z,o+=h)});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];$(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;$(l,"Eager values not found");const{panelDataArray:a}=l,u=Ot(t,i);$(u!=null,`No group found for id "${t}"`);const p=De(t,i);$(p,`No resize handles found for group id "${t}"`);const d=p.map(f=>{const x=f.getAttribute(V.resizeHandleId);$(x,"Resize handle element has no handle id attribute");const[h,z]=es(t,x,a,i);if(h==null||z==null)return()=>{};const v=y=>{if(!y.defaultPrevented)switch(y.key){case"Enter":{y.preventDefault();const P=a.findIndex(M=>M.id===h);if(P>=0){const M=a[P];$(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=$e({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);$(o,`No resize handle element found for id "${e}"`);const l=o.getAttribute(V.groupId);$(l,"Resize handle element has no group id attribute");let{initialCursorPosition:a}=s;const u=Wt(t,n),p=Ot(l,r);$(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];$(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];$(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];$(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:h}=o;h&&h(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];$(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];$(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];$(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),[h,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:h,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:m}=w.current;return m},setLayout:m=>{const{onLayout:j}=N.current,{layout:I,panelDataArray:C}=w.current,b=yt({layout:m,panelConstraints:C.map(E=>E.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=h,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:m}=w.current;if(n){if(v.length===0||v.length!==m.length)return;let j=wt[n];j==null&&(j=os(as,cs),wt[n]=j);const I=[...m],C=new Map(k.current);j(n,I,C,v,a)}},[n,v,a]),g.useEffect(()=>{});const K=g.useCallback(m=>{const{onLayout:j}=N.current,{layout:I,panelDataArray:C}=w.current;if(m.constraints.collapsible){const b=C.map(oe=>oe.constraints),{collapsedSize:E=0,panelSize:O,pivotIndices:Q}=xe(C,m,I);if($(O!=null,`Panel size not found for panel "${m.id}"`),!pe(O,E)){k.current.set(m.id,O);const le=ze(C,m)===C.length-1?O-E:E-O,G=$e({delta:le,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((m,j)=>{const{onLayout:I}=N.current,{layout:C,panelDataArray:b}=w.current;if(m.constraints.collapsible){const E=b.map(re=>re.constraints),{collapsedSize:O=0,panelSize:Q=0,minSize:oe=0,pivotIndices:le}=xe(b,m,C),G=j??oe;if(pe(Q,O)){const re=k.current.get(m.id),Ce=re!=null&&re>=G?re:G,Ge=ze(b,m)===b.length-1?Q-Ce:Ce-Q,Z=$e({delta:Ge,initialLayout:C,panelConstraints:E,pivotIndices:le,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(m=>{const{layout:j,panelDataArray:I}=w.current,{panelSize:C}=xe(I,m,j);return $(C!=null,`Panel size not found for panel "${m.id}"`),C},[]),T=g.useCallback((m,j)=>{const{panelDataArray:I}=w.current,C=ze(I,m);return is({defaultSize:j,dragState:h,layout:v,panelData:I,panelIndex:C})},[h,v]),D=g.useCallback(m=>{const{layout:j,panelDataArray:I}=w.current,{collapsedSize:C=0,collapsible:b,panelSize:E}=xe(I,m,j);return $(E!=null,`Panel size not found for panel "${m.id}"`),b===!0&&pe(E,C)},[]),X=g.useCallback(m=>{const{layout:j,panelDataArray:I}=w.current,{collapsedSize:C=0,collapsible:b,panelSize:E}=xe(I,m,j);return $(E!=null,`Panel size not found for panel "${m.id}"`),!b||we(E,C)>0},[]),_=g.useCallback(m=>{const{panelDataArray:j}=w.current;j.push(m),j.sort((I,C)=>{const b=I.order,E=C.order;return b==null&&E==null?0:b==null?-1:E==null?1:b-E}),w.current.panelDataArrayChanged=!0,P()},[P]);ye(()=>{if(w.current.panelDataArrayChanged){w.current.panelDataArrayChanged=!1;const{autoSaveId:m,onLayout:j,storage:I}=N.current,{layout:C,panelDataArray:b}=w.current;let E=null;if(m){const Q=ls(m,b,I);Q&&(k.current=new Map(Object.entries(Q.expandToSizes)),E=Q.layout)}E==null&&(E=rs({panelDataArray:b}));const O=yt({layout:E,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 m=w.current;return()=>{m.layout=[]}},[]);const L=g.useCallback(m=>{let j=!1;const I=x.current;return I&&window.getComputedStyle(I,null).getPropertyValue("direction")==="rtl"&&(j=!0),function(b){b.preventDefault();const E=x.current;if(!E)return()=>null;const{direction:O,dragState:Q,id:oe,keyboardResizeBy:le,onLayout:G}=N.current,{layout:re,panelDataArray:Ce}=w.current,{initialLayout:Le}=Q??{},Ge=Ut(oe,m,E);let Z=ss(b,m,O,Q,le,E);const ct=O==="horizontal";ct&&j&&(Z=-Z);const rn=Ce.map(on=>on.constraints),Ee=$e({delta:Z,initialLayout:Le??re,panelConstraints:rn,pivotIndices:Ge,prevLayout:re,trigger:It(b)?"keyboard":"mouse-or-touch"}),ut=!Ae(re,Ee);(Mt(b)||Rt(b))&&W.current!=Z&&(W.current=Z,!ut&&Z!==0?ct?Je(m,Z<0?Lt:_t):Je(m,Z<0?At:Tt):Je(m,0)),ut&&(y(Ee),w.current.layout=Ee,G&&G(Ee),Se(Ce,Ee,M.current))}},[]),F=g.useCallback((m,j)=>{const{onLayout:I}=N.current,{layout:C,panelDataArray:b}=w.current,E=b.map(re=>re.constraints),{panelSize:O,pivotIndices:Q}=xe(b,m,C);$(O!=null,`Panel size not found for panel "${m.id}"`);const le=ze(b,m)===b.length-1?O-j:j-O,G=$e({delta:le,initialLayout:C,panelConstraints:E,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((m,j)=>{const{layout:I,panelDataArray:C}=w.current,{collapsedSize:b=0,collapsible:E}=j,{collapsedSize:O=0,collapsible:Q,maxSize:oe=100,minSize:le=0}=m.constraints,{panelSize:G}=xe(C,m,I);G!=null&&(E&&Q&&pe(G,b)?pe(b,O)||F(m,O):G<le?F(m,le):G>oe&&F(m,oe))},[F]),J=g.useCallback((m,j)=>{const{direction:I}=N.current,{layout:C}=w.current;if(!x.current)return;const b=Ke(m,x.current);$(b,`Drag handle element not found for id "${m}"`);const E=Wt(I,j);z({dragHandleId:m,dragHandleRect:b.getBoundingClientRect(),initialCursorPosition:E,initialLayout:C})},[]),ne=g.useCallback(()=>{z(null)},[]),B=g.useCallback(m=>{const{panelDataArray:j}=w.current,I=ze(j,m);I>=0&&(j.splice(I,1),delete M.current[m.id],w.current.panelDataArrayChanged=!0,P())},[P]),S=g.useMemo(()=>({collapsePanel:K,direction:s,dragState:h,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,h,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);$(l,`No group element found for id "${l}"`);const a=De(l,s),u=Ht(l,e,s);$(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",...h}){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;$(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,$(C,'Expected event to be defined for "down" action'),w(U,C);const{onDragging:b,onPointerDown:E}=P.current;b?.(!0),E?.();break}case"move":{const{state:b}=H.current;R=!0,b!=="drag"&&D("hover"),$(C,'Expected event to be defined for "move" action'),L(C);break}case"up":{D("hover"),K();const{onClick:b,onDragging:E,onPointerUp:O}=P.current;E?.(!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,{...h,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 ur(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 dr(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 fr(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 ae(n,e,t,s){const r=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${r?`?${r}`:""}`}async function ce(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 pr(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 ce(ae(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(ae(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 mr(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 ce(ae(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 hr(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 ce(`/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 xr(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 ce(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:a}=await l.json();return a.map(fs)},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{volume:n.volume,path:n.path}}function gr(){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 ce(`/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 ps(n){const e=A.c(3),{org:t}=se();let s;return e[0]!==t.slug||e[1]!==n?(s=r=>ae(t.slug,n,"read",{path:r}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function yr(){const n=A.c(2),{org:e}=se();let t;return n[0]!==e.slug?(t=(s,r)=>ae(e.slug,s,"read",{path:r}),n[0]=e.slug,n[1]=t):t=n[1],t}function ms(n){const e=A.c(3),{org:t}=se();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async r=>(await(await ce(ae(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 hs(n){const e=A.c(18),{org:t}=se(),s=st();let r;e[0]!==t||e[1]!==n?(r=async u=>(await(await ce(ae(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 wr(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 ce(ae(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 ce(ae(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 ce(ae(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 h=Ie(x);let z;return e[22]!==d||e[23]!==h||e[24]!==a?(z={upload:a,mkdir:d,remove:h},e[22]=d,e[23]=h,e[24]=a,e[25]=z):z=e[25],z}function xs(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 gs(n){if(xs(n))throw new Error(`Invalid block key: ${n||"(empty)"}`)}function ys(n){try{return decodeURIComponent(n)}catch{return n}}function ws(n){return gs(n),encodeURIComponent(n)}function vs(n){return`.deco/blocks/${ws(n)}.json`}function vr(n){return`/${vs(n)}`}const br=1e4,bs=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 Ss(n){const e=Oe(n);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function Sr(n,e){const t=e.replace(/^\/+|\/+$/g,"");return Oe(t?`${n==="/"?"":n}/${t}`:n)}function zr(n,e){return e==="directory"?n:Ss(n)}function jr(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 zs(n){const e=at(n);return e?e.split("/").filter(Boolean).length:0}function kr(n,e,t,s=!1){return{files:[...new Set([...n,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:s||!!t.truncated}}function Pr(n,e){return zs(n)>=bs&&!e.has(n)}function Cr(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 ys(s)}function js(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 $r(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 Nr(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(h=>h.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 ks(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(...ks(r.children,e,t+1)));return s}function Ir(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 Ps(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=js(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 Cs=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 $s(n,e){const t=n.split(".").pop()?.toLowerCase()??"";return Cs.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(Ps,{value:l,filename:t.filename}),e[13]=l,e[14]=t.filename,e[15]=p):p=e[15],p}function Ns(n){const e=A.c(15),{file:t}=n;switch($s(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 Is(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 h;e[17]!==s?(h=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]=h):h=e[18];let z;e[19]!==l||e[20]!==r||e[21]!==s.deckDetected?(z=s.deckDetected?c.jsxs(Cn,{children:[c.jsx(En,{asChild:!0,children:c.jsx(ee,{variant:"ghost",size:"icon","aria-label":"Download",children:c.jsx(Fe,{size:14})})}),c.jsxs($n,{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(Et,{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]!==h||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,h,z,k,i]}),e[31]=k,e[32]=a,e[33]=d,e[34]=f,e[35]=x,e[36]=h,e[37]=z,e[38]=i,e[39]=W):W=e[39],W}const je=1;function Ms(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 Rs(n){const t=new DOMParser().parseFromString(n,"text/html").querySelector("deck-viewer");return t?tn(t).length:null}function Ds(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{c as h,r as y,l as j,j as f}from"./index-
|
|
1
|
+
import{c as h,r as y,l as j,j as f}from"./index-Djd6TuLO.js";import{a0 as A}from"./agent-icon-CUDD1qQU.js";import{s as N}from"./Plus-C2AcrVDQ.js";import{s as _}from"./Trash01-CA4eBk7v.js";const S=700;function R(r,e,o){const t=h.c(7),s=S,[n,c]=y.useState(r),[l,u]=y.useState(r),[x,p]=y.useState(!1),i=y.useRef(null);r!==l&&(u(r),x||c(r));let a;t[0]!==s||t[1]!==e?(a=g=>{c(g),p(!0),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{i.current=null,p(!1),e(g)},s)},t[0]=s,t[1]=e,t[2]=a):a=t[2];const d=a;let m;t[3]===Symbol.for("react.memo_cache_sentinel")?(m=g=>{c(g),i.current&&clearTimeout(i.current),i.current=null,p(!1)},t[3]=m):m=t[3];const v=m;let b;return t[4]!==n||t[5]!==d?(b=[n,d,v],t[4]=n,t[5]=d,t[6]=b):b=t[6],b}function T(r){const e=h.c(14),{value:o,onChange:t,placeholder:s,className:n,onFocus:c,onBlur:l,onKeyDown:u,spellCheck:x,inputRef:p}=r,i=x===void 0?!0:x;let a;e[0]!==t?(a=v=>t(v.target.value),e[0]=t,e[1]=a):a=e[1];let d;e[2]!==n?(d=j("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]=d):d=e[3];let m;return e[4]!==p||e[5]!==l||e[6]!==c||e[7]!==u||e[8]!==s||e[9]!==i||e[10]!==a||e[11]!==d||e[12]!==o?(m=f.jsx("textarea",{ref:p,value:o,onChange:a,onInput:w,onFocus:c,onBlur:l,onKeyDown:u,placeholder:s,spellCheck:i,rows:1,className:d}),e[4]=p,e[5]=l,e[6]=c,e[7]=u,e[8]=s,e[9]=i,e[10]=a,e[11]=d,e[12]=o,e[13]=m):m=e[13],m}function w(r){const e=r.currentTarget;e.style.height="auto",e.style.height=`${e.scrollHeight}px`}function D(r){return typeof r=="string"?r:""}function B(r){const e=h.c(11);let o,t;e[0]!==r?({className:o,...t}=r,e[0]=r,e[1]=o,e[2]=t):(o=e[1],t=e[2]);let s;e[3]!==o?(s=j(o,"pr-9"),e[3]=o,e[4]=s):s=e[4];let n;e[5]!==t||e[6]!==s?(n=f.jsx(T,{...t,className:s}),e[5]=t,e[6]=s,e[7]=n):n=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=f.jsx(A,{size:18,"aria-hidden":!0,className:"pointer-events-none absolute right-2 top-3 text-muted-foreground/40 transition-opacity group-hover/editable:text-muted-foreground group-focus-within/editable:text-muted-foreground"}),e[8]=c):c=e[8];let l;return e[9]!==n?(l=f.jsxs("div",{className:"group/editable relative -mx-2 rounded-md px-2 transition-colors hover:bg-muted/50 focus-within:bg-muted/50",children:[n,c]}),e[9]=n,e[10]=l):l=e[10],l}function F(r){const e=h.c(5),{label:o,onClick:t,disabled:s}=r;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=f.jsx(N,{size:13}),e[0]=n):n=e[0];let c;return e[1]!==s||e[2]!==o||e[3]!==t?(c=f.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 I(r){const e=h.c(4),{label:o,onClick:t}=r;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx(_,{size:13}),e[0]=s):s=e[0];let n;return e[1]!==o||e[2]!==t?(n=f.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 J(r){const e=h.c(2),{children:o}=r;let t;return e[0]!==o?(t=f.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 O(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 l;e[0]!==c?(l=j("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]=l):l=e[1];let u;return e[2]!==o||e[3]!==n||e[4]!==t||e[5]!==s||e[6]!==l?(u=f.jsx("button",{type:"button","aria-label":t,"aria-pressed":o,onMouseDown:$,onClick:s,className:l,children:n}),e[2]=o,e[3]=n,e[4]=t,e[5]=s,e[6]=l,e[7]=u):u=e[7],u}function $(r){return r.preventDefault()}function H(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{F as A,B as E,J as F,T as I,I as R,O as T,H as p,D as s,R as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as V,j as t,a as D,p as R,af as q,J as B,w as N,t as T}from"./index-
|
|
1
|
+
import{c as V,j as t,a as D,p as R,af as q,J as B,w as N,t as T}from"./index-Djd6TuLO.js";import{P as L}from"./index-BbxDcYXz.js";import{A as U}from"./avatar-VM4z7Sph.js";import{S as I}from"./switch-14YiCb40.js";import{d as G,b as Y,a as $,S as J}from"./select-DKj7B0V2.js";import{T as K,a as z}from"./toggle-group-Ctok94CI.js";import{I as O}from"./input-BNOGUlQT.js";import{i as H}from"./Monitor01-ClILKoXR.js";import{n as M,a as Q}from"./Sun-DTQS8SC0.js";import{i as W}from"./Play-B0tuLbrU.js";import{u as X}from"./use-debounced-autosave-CbQ41T1D.js";import{p as Z,q as ee}from"./question-004-sINsf4GQ.js";import"./index-BBAsYjSg.js";import{c as te,b as A,S as E,a as F}from"./settings-section-BHLR2lqY.js";import"./sidebar-Cj_aFqAP.js";import"./LayoutLeft-DRgE3-pt.js";import"./use-mobile-thzrczKW.js";import"./sheet-a31ex1bd.js";import"./X-C3pn9FBd.js";import"./tooltip-DNHEz7H9.js";import"./User01-Bj4QEnuq.js";import"./ChevronUp-D4yp8Sde.js";import"./ChevronDown-c1oSYfs-.js";import"./card-6Fn3KHk6.js";import"./ArrowUpRight-Z3BBkuVk.js";function se(){const e=V.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:m}=X(_);if(o)return null;const j=v?.name??"U";let i;e[4]!==j||e[5]!==p?(i=t.jsx(A,{title:"Avatar",action:t.jsx(U,{url:p,fallback:j,shape:"circle",size:"base"})}),e[4]=j,e[5]=p,e[6]=i):i=e[6];let l;e[7]!==m||e[8]!==x?(l=g=>{const{field:a}=g;return t.jsx(O,{id:"display-name",...a,onChange:f=>{a.onChange(f),x()},onBlur:()=>{a.onBlur(),m()},onKeyDown:f=>{f.key==="Enter"&&m()},placeholder:"Your name",className:"w-[280px]"})},e[7]=m,e[8]=x,e[9]=l):l=e[9];let d;e[10]!==n.control||e[11]!==l?(d=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]=d):d=e[12];const b=v?.email;let r;e[13]!==b?(r=t.jsx(A,{title:"Email",action:t.jsx("span",{className:"text-sm text-muted-foreground",children:b})}),e[13]=b,e[14]=r):r=e[14];let u;return e[15]!==i||e[16]!==d||e[17]!==r?(u=t.jsx(E,{children:t.jsxs(F,{children:[i,d,r]})}),e[15]=i,e[16]=d,e[17]=r,e[18]=u):u=e[18],u}function oe(){const e=V.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(z,{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(z,{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(z,{value:"system","aria-label":"System theme",children:t.jsx(H,{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(K,{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 m;e[10]!==p||e[11]!==s.enableNotifications?(m=typeof Notification<"u"?()=>p(!s.enableNotifications):void 0,e[10]=p,e[11]=s.enableNotifications,e[12]=m):m=e[12];let j;e[13]!==p||e[14]!==s.enableNotifications?(j=t.jsx(I,{disabled:typeof Notification>"u",checked:s.enableNotifications,onCheckedChange:p}),e[13]=p,e[14]=s.enableNotifications,e[15]=j):j=e[15];let i;e[16]!==m||e[17]!==j?(i=t.jsx(A,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:m,action:j}),e[16]=m,e[17]=j,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 d;e[22]===Symbol.for("react.memo_cache_sentinel")?(d=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]=d):d=e[22];let b;e[23]!==o?(b=c=>{N("preferences_sounds_toggled",{enabled:c}),o(y=>({...y,enableSounds:c}))},e[23]=o,e[24]=b):b=e[24];let r;e[25]!==s.enableSounds||e[26]!==b?(r=t.jsxs("div",{className:"flex items-center gap-2",children:[d,t.jsx(I,{checked:s.enableSounds,onCheckedChange:b})]}),e[25]=s.enableSounds,e[26]=b,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(J,{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=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(L,{children:t.jsx(L.Content,{children:t.jsx(L.Body,{children:t.jsxs(te,{children:[t.jsx(L.Title,{children:"Profile & Preferences"}),t.jsx(se,{}),t.jsx(oe,{})]})})})}),e[0]=s):s=e[0],s}function De(){const e=V.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{De as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as $,D as H,j as A}from"./index-Djd6TuLO.js";import{l as L,g as E,s as y}from"./scroll-area-BnoH8jf-.js";import{p as O,u as k}from"./use-mcp-client-DIy-B1wr.js";import{b as q,c as B}from"./use-mcp-tools-Dm8hC2Ai.js";import{u as Y}from"./index-DbYhcgAw.js";import{c as G}from"./content-blocks-o63cs2vh.js";import{g as K,M as V,a as w}from"./types-BpjdnyIn.js";import{u as z,b as F}from"./chat-context-CkCIvS-v.js";import{b as J}from"./shell-layout-C1UY2dDO.js";import"./agent-icon-CUDD1qQU.js";import"./AlertCircle-BI7qL-zf.js";import"./Tool01-95LOctqu.js";import"./SwitchHorizontal01-h5bJ4Pj6.js";import"./Settings02-DIy8pOAO.js";import"./XCircle-NMY-qxx5.js";import"./ArrowUpRight-Z3BBkuVk.js";import"./ZapSquare-CqtF4LbQ.js";import"./Users03-BnJ4POBL.js";import"./CheckCircle-Ct0IkEsg.js";import"./ChevronUp-D4yp8Sde.js";import"./ChevronDown-c1oSYfs-.js";import"./ChevronLeft-B5WBGMCf.js";import"./ChevronRight-ro8pTEbC.js";import"./DotsVertical-Bva5wMia.js";import"./Stars02-Ulg_Ysyf.js";import"./Eye-Dz0LfZhX.js";import"./ZoomOut-D5bsZWrB.js";import"./Globe01-Cat8RRQP.js";import"./FilterLines-CNNSd5My.js";import"./Star01-DhVZBXZp.js";import"./Globe04-CNkdEC4q.js";import"./HardDrive-Bp0ax-t_.js";import"./Key01-CK-dtvzj.js";import"./LayoutLeft-DRgE3-pt.js";import"./LinkExternal01-BMRTG9GY.js";import"./Monitor01-ClILKoXR.js";import"./Sun-DTQS8SC0.js";import"./Palette-DzZpBk45.js";import"./Play-B0tuLbrU.js";import"./Plus-C2AcrVDQ.js";import"./SearchMd-CiOkSnnl.js";import"./Shield01-txQYlyv3.js";import"./Stars01-BpFWqd_D.js";import"./Trash01-CA4eBk7v.js";import"./Upload01-C6hlgF_d.js";import"./User01-Bj4QEnuq.js";import"./Users01-DjqWZa4u.js";import"./XClose-JPFhglUg.js";import"./X-C3pn9FBd.js";import"./Zap-DZT0zVFp.js";import"./use-clock-tick-xyRkceIk.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-dG8egJns.js";import"./tooltip-DNHEz7H9.js";import"./file-type-icon-gLx9uWdG.js";import"./dialog-XnZQaCET.js";import"./use-mobile-thzrczKW.js";import"./tab-id-BptcWVWa.js";import"./hooks-Dh6Jo6FF.js";import"./decopilot-sse-pool-p2LEr2W4.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-gp9mLcnF.js";import"./sheet-a31ex1bd.js";import"./integration-icon-Da8Ja8xZ.js";import"./use-virtual-mcp-Cw7Cf-co.js";import"./use-collections-DHsBnI-g.js";import"./use-navigate-to-agent-BUtLr1-s.js";import"./use-connection-d25soQOF.js";import"./use-mcp-prompts-9snCiqu-.js";import"./form-BCSBsB3M.js";import"./label-BzwbJuLA.js";import"./input-BNOGUlQT.js";import"./select-DKj7B0V2.js";import"./auth-DEoT60Hp.js";import"./index-IsMJIAw6.js";import"./drawer-B5z2AOPt.js";import"./collection-search-D0UcbNUO.js";import"./tabs-ChA8V1ag.js";import"./toggle-group-Ctok94CI.js";import"./sortable.esm-CMtvLYoN.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DKzKsYD0.js";import"./use-registry-connections-DaDcQiUE.js";import"./use-organization-settings-BIHpPlmZ.js";import"./useInfiniteQuery-sDr4Gfly.js";import"./use-infinite-scroll-B66e2kY3.js";import"./extract-connection-data-D2_IgRyD.js";import"./card-6Fn3KHk6.js";import"./collection-tabs-C7i3EtkQ.js";import"./badge-BZaA6_yP.js";import"./textarea-0LfkB4H6.js";import"./connection-form-helpers-xWNyKJEb.js";import"./authenticate-and-persist-oauth-DdfnmUPY.js";import"./mcp-oauth-CiksM5XP.js";import"./useSuspenseInfiniteQuery-CpcwLIEk.js";import"./use-ai-providers-FEYc1hYo.js";import"./connect-desktop-dialog-SkaagoHI.js";import"./decopilot-xz4hhVZ2.js";import"./checkbox-DwEPCxo5.js";import"./skeleton-BgGeuCF7.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-VM4z7Sph.js";import"./settings-section-BHLR2lqY.js";import"./popover-D2ChxMGV.js";import"./command-C2F2XANI.js";import"./index-Wtqqsvov.js";import"./dropdown-menu-CjfuPw4B.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DuB5Qdsa.js";import"./empty-state-K13YYE8V.js";import"./toolbar-Dgv-0cJG.js";import"./preview-dialog-Dyv-Otum.js";import"./index-CE2XOQVr.js";import"./use-capability-BDeYhQRR.js";import"./shell-route-loading-D1Wm-1cK.js";import"./index-CQJFA7-5.js";import"./alert-dialog-Dr09xmbF.js";import"./switch-14YiCb40.js";import"./use-debounced-autosave-CbQ41T1D.js";import"./index-BbxDcYXz.js";import"./sidebar-Cj_aFqAP.js";import"./search-input-Djqm0TA1.js";import"./github-repo-picker-B4DQ87lb.js";import"./use-secrets-JQFoSSKX.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-CmzDEt1O.js";import"./automation-runs-BKcxyen4.js";import"./table-D5xuIpUU.js";import"./use-members-QdT6WLec.js";import"./use-org-auth-client-DEuaxZpa.js";import"./task-status-C7xHgaQ7.js";import"./use-automations-BBBpz3Ll.js";import"./use-file-configs-BZdMLkS5.js";import"./monaco-editor-DiBPYiNx.js";import"./select-model-Bimfcw46.js";import"./automation-list-row-DPE279l_.js";import"./required-auth-layout-D8JzfwRM.js";import"./use-org-sso-CydJi_gG.js";const Q={};function W(S){const t=$.c(37),{client:r,resourceURI:h,tool:o,connectionId:p,orgId:l,args:M}=S,{sendMessage:I}=z(),{setAppContext:u,clearAppContext:n}=F(),{setChatOpen:f,openTab:g}=J(),e=`${p}:${o.name}`;let a;t[0]!==g?(a=C=>C==="inline"?(g("0"),"inline"):"fullscreen",t[0]=g,t[1]=a):a=t[1];const m=a,s=M??Q;let c;t[2]!==r||t[3]!==o.name||t[4]!==s?(c={client:r,toolName:o.name,toolArguments:s},t[2]=r,t[3]=o.name,t[4]=s,t[5]=c):c=t[5];const{data:i}=B(c);let x;if(t[6]!==o._meta||t[7]!==o.name){const C=E(o._meta);x=y(o.name,C),t[6]=o._meta,t[7]=o.name,t[8]=x}else x=t[8];const U=x;let d;t[9]!==o.inputSchema?(d=o.inputSchema??{type:"object"},t[9]=o.inputSchema,t[10]=d):d=t[10];let N;t[11]!==U||t[12]!==d||t[13]!==o?(N={...o,name:U,inputSchema:d},t[11]=U,t[12]=d,t[13]=o,t[14]=N):N=t[14];const b=N;let _;t[15]!==I||t[16]!==f?(_=C=>{const D=G(C.content);D.content.length>0&&(f(!0),I({tiptapDoc:D}))},t[15]=I,t[16]=f,t[17]=_):_=t[17];const j=_;let P;t[18]!==b?(P={tool:b},t[18]=b,t[19]=P):P=t[19];let T;t[20]!==u||t[21]!==e?(T=C=>u(e,C),t[20]=u,t[21]=e,t[22]=T):T=t[22];let R;t[23]!==n||t[24]!==e?(R=()=>n(e),t[23]=n,t[24]=e,t[25]=R):R=t[25];let v;return t[26]!==r||t[27]!==j||t[28]!==m||t[29]!==l||t[30]!==h||t[31]!==P||t[32]!==T||t[33]!==R||t[34]!==s||t[35]!==i?(v=A.jsx(V,{resourceURI:h,orgId:l,toolInfo:P,toolInput:s,toolResult:i,displayMode:"fullscreen",minHeight:w.fullscreen.minHeight,maxHeight:w.fullscreen.maxHeight,client:r,onMessage:j,onUpdateModelContext:T,onTeardown:R,onRequestDisplayMode:m,className:"h-full"}),t[26]=r,t[27]=j,t[28]=m,t[29]=l,t[30]=h,t[31]=P,t[32]=T,t[33]=R,t[34]=s,t[35]=i,t[36]=v):v=t[36],v}function be(S){const t=$.c(24),{connectionId:r,toolName:h,args:o}=S,{org:p}=H(),l=Y();let M;t[0]!==r||t[1]!==l?(M=O(r)&&l.vmEntry?.sandboxProviderKind==="user-desktop"&&l.previewUrl?`${l.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=r,t[1]=l,t[2]=M):M=t[2];const I=M;let u;t[3]!==r||t[4]!==I||t[5]!==p.id||t[6]!==p.slug?(u={connectionId:r,orgId:p.id,orgSlug:p.slug,mcpUrl:I},t[3]=r,t[4]=I,t[5]=p.id,t[6]=p.slug,t[7]=u):u=t[7];const n=k(u);let f;t[8]!==n?(f={client:n},t[8]=n,t[9]=f):f=t[9];const{data:g}=q(f);let e,a,m;t[10]!==h||t[11]!==g.tools?(e=L(decodeURIComponent(h)),m=g.tools.find(i=>i.name===e)??g.tools.find(i=>{const x=E(i._meta);if(!x)return!1;if(y(i.name,x)===e)return!0;const d=y(e,x);return d!==e&&i.name===d}),a=m?._meta?K(m._meta):void 0,t[10]=h,t[11]=g.tools,t[12]=e,t[13]=a,t[14]=m):(e=t[12],a=t[13],m=t[14]);const s=a;if(!m||!s){let i;return t[15]!==e?(i=A.jsx("div",{className:"flex items-center justify-center h-full w-full",children:A.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',e,'" not found or has no UI']})}),t[15]=e,t[16]=i):i=t[16],i}let c;return t[17]!==o||t[18]!==n||t[19]!==r||t[20]!==p.id||t[21]!==s||t[22]!==m?(c=A.jsx(W,{client:n,resourceURI:s,tool:m,connectionId:r,orgId:p.id,args:o}),t[17]=o,t[18]=n,t[19]=r,t[20]=p.id,t[21]=s,t[22]=m,t[23]=c):c=t[23],c}export{be as AppViewContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as F,j as r}from"./index-Djd6TuLO.js";import{I as T}from"./input-BNOGUlQT.js";import{L as C}from"./label-BzwbJuLA.js";import{T as L}from"./textarea-0LfkB4H6.js";import{as as A,at as R,au as D,av as J}from"./index-DbYhcgAw.js";import{u as K,s as P}from"./primitives-DqhOOS3x.js";import{S as M}from"./save-status-CcBc_RS2.js";import"./index-IsMJIAw6.js";import"./chat-context-CkCIvS-v.js";import"./hooks-Dh6Jo6FF.js";import"./use-mcp-client-DIy-B1wr.js";import"./auth-DEoT60Hp.js";import"./decopilot-sse-pool-p2LEr2W4.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-Cw7Cf-co.js";import"./use-collections-DHsBnI-g.js";import"./use-ai-providers-FEYc1hYo.js";import"./studio-tools-gp9mLcnF.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-BIHpPlmZ.js";import"./scroll-area-BnoH8jf-.js";import"./agent-icon-CUDD1qQU.js";import"./AlertCircle-BI7qL-zf.js";import"./Tool01-95LOctqu.js";import"./SwitchHorizontal01-h5bJ4Pj6.js";import"./Settings02-DIy8pOAO.js";import"./XCircle-NMY-qxx5.js";import"./ArrowUpRight-Z3BBkuVk.js";import"./ZapSquare-CqtF4LbQ.js";import"./Users03-BnJ4POBL.js";import"./CheckCircle-Ct0IkEsg.js";import"./ChevronUp-D4yp8Sde.js";import"./ChevronDown-c1oSYfs-.js";import"./ChevronLeft-B5WBGMCf.js";import"./ChevronRight-ro8pTEbC.js";import"./DotsVertical-Bva5wMia.js";import"./Stars02-Ulg_Ysyf.js";import"./Eye-Dz0LfZhX.js";import"./ZoomOut-D5bsZWrB.js";import"./Globe01-Cat8RRQP.js";import"./FilterLines-CNNSd5My.js";import"./Star01-DhVZBXZp.js";import"./Globe04-CNkdEC4q.js";import"./HardDrive-Bp0ax-t_.js";import"./Key01-CK-dtvzj.js";import"./LayoutLeft-DRgE3-pt.js";import"./LinkExternal01-BMRTG9GY.js";import"./Monitor01-ClILKoXR.js";import"./Sun-DTQS8SC0.js";import"./Palette-DzZpBk45.js";import"./Play-B0tuLbrU.js";import"./Plus-C2AcrVDQ.js";import"./SearchMd-CiOkSnnl.js";import"./Shield01-txQYlyv3.js";import"./Stars01-BpFWqd_D.js";import"./Trash01-CA4eBk7v.js";import"./Upload01-C6hlgF_d.js";import"./User01-Bj4QEnuq.js";import"./Users01-DjqWZa4u.js";import"./XClose-JPFhglUg.js";import"./X-C3pn9FBd.js";import"./Zap-DZT0zVFp.js";import"./use-clock-tick-xyRkceIk.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-dG8egJns.js";import"./tooltip-DNHEz7H9.js";import"./file-type-icon-gLx9uWdG.js";import"./dialog-XnZQaCET.js";import"./use-mobile-thzrczKW.js";import"./content-blocks-o63cs2vh.js";import"./types-BpjdnyIn.js";import"./shell-layout-C1UY2dDO.js";import"./avatar-VM4z7Sph.js";import"./required-auth-layout-D8JzfwRM.js";import"./use-org-sso-CydJi_gG.js";import"./sheet-a31ex1bd.js";import"./integration-icon-Da8Ja8xZ.js";import"./use-navigate-to-agent-BUtLr1-s.js";import"./use-connection-d25soQOF.js";import"./use-mcp-prompts-9snCiqu-.js";import"./form-BCSBsB3M.js";import"./select-DKj7B0V2.js";import"./drawer-B5z2AOPt.js";import"./collection-search-D0UcbNUO.js";import"./tabs-ChA8V1ag.js";import"./toggle-group-Ctok94CI.js";import"./sortable.esm-CMtvLYoN.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DKzKsYD0.js";import"./use-registry-connections-DaDcQiUE.js";import"./useInfiniteQuery-sDr4Gfly.js";import"./use-infinite-scroll-B66e2kY3.js";import"./extract-connection-data-D2_IgRyD.js";import"./card-6Fn3KHk6.js";import"./collection-tabs-C7i3EtkQ.js";import"./badge-BZaA6_yP.js";import"./connection-form-helpers-xWNyKJEb.js";import"./authenticate-and-persist-oauth-DdfnmUPY.js";import"./mcp-oauth-CiksM5XP.js";import"./useSuspenseInfiniteQuery-CpcwLIEk.js";import"./connect-desktop-dialog-SkaagoHI.js";import"./decopilot-xz4hhVZ2.js";import"./checkbox-DwEPCxo5.js";import"./skeleton-BgGeuCF7.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BHLR2lqY.js";import"./popover-D2ChxMGV.js";import"./command-C2F2XANI.js";import"./index-Wtqqsvov.js";import"./dropdown-menu-CjfuPw4B.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DuB5Qdsa.js";import"./empty-state-K13YYE8V.js";import"./toolbar-Dgv-0cJG.js";import"./preview-dialog-Dyv-Otum.js";import"./index-CE2XOQVr.js";import"./use-mcp-tools-Dm8hC2Ai.js";import"./use-capability-BDeYhQRR.js";import"./shell-route-loading-D1Wm-1cK.js";import"./index-CQJFA7-5.js";import"./alert-dialog-Dr09xmbF.js";import"./switch-14YiCb40.js";import"./use-debounced-autosave-CbQ41T1D.js";import"./index-BbxDcYXz.js";import"./sidebar-Cj_aFqAP.js";import"./search-input-Djqm0TA1.js";import"./github-repo-picker-B4DQ87lb.js";import"./use-secrets-JQFoSSKX.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-CmzDEt1O.js";import"./automation-runs-BKcxyen4.js";import"./table-D5xuIpUU.js";import"./use-members-QdT6WLec.js";import"./use-org-auth-client-DEuaxZpa.js";import"./task-status-C7xHgaQ7.js";import"./use-automations-BBBpz3Ll.js";import"./use-file-configs-BZdMLkS5.js";import"./monaco-editor-DiBPYiNx.js";import"./select-model-Bimfcw46.js";import"./automation-list-row-DPE279l_.js";const $={authors:[{key:"name",label:"Name",widget:"text"},{key:"email",label:"Email",widget:"text",placeholder:"author@example.com"},{key:"jobTitle",label:"Job title",widget:"text"},{key:"company",label:"Company",widget:"text"},{key:"avatar",label:"Avatar",widget:"image"}]},q={authors:"Author"};function fr(S){const t=F.c(34),{orgSlug:v,virtualMcpId:j,branch:f,kind:p,blockKey:g,block:w}=S;let y;t[0]!==f||t[1]!==v||t[2]!==j?(y={orgSlug:v,virtualMcpId:j,branch:f},t[0]=f,t[1]=v,t[2]=j,t[3]=y):y=t[3];const m=A(y);let d;t[4]!==w||t[5]!==p?(d=R(w,p),t[4]=w,t[5]=p,t[6]=d):d=t[6];const B=d;let h;t[7]!==g||t[8]!==p||t[9]!==m?(h=e=>{m.mutate({blockKey:g,data:D(g,p,e)})},t[7]=g,t[8]=p,t[9]=m,t[10]=h):h=t[10];const[i,E]=K(B,h);let k;t[11]!==i||t[12]!==E?(k=(e,o)=>E({...i,[e]:o}),t[11]=i,t[12]=E,t[13]=k):k=t[13];const a=k,N=q[p];let s;t[14]!==N?(s=r.jsx("span",{className:"text-sm font-medium",children:N}),t[14]=N,t[15]=s):s=t[15];let l;t[16]!==m.isError||t[17]!==m.isPending?(l=r.jsx(M,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=l):l=t[18];let n;t[19]!==s||t[20]!==l?(n=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[s,l]}),t[19]=s,t[20]=l,t[21]=n):n=t[21];const I=$[p];let c;if(t[22]!==i||t[23]!==a||t[24]!==I){let e;t[26]!==i||t[27]!==a?(e=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(J,{schema:{type:"string",format:"image-uri",title:o.label},value:i[o.key],onChange:u=>a(o.key,u),path:o.key,label:o.label}):r.jsxs(r.Fragment,{children:[r.jsx(C,{htmlFor:o.key,children:o.label}),o.widget==="textarea"?r.jsx(L,{id:o.key,value:P(i[o.key]),onChange:u=>a(o.key,u.target.value),rows:3}):r.jsx(T,{id:o.key,value:P(i[o.key]),placeholder:o.placeholder,onChange:u=>a(o.key,u.target.value),className:"h-10"})]})},o.key),t[26]=i,t[27]=a,t[28]=e):e=t[28],c=I.map(e),t[22]=i,t[23]=a,t[24]=I,t[25]=c}else c=t[25];let x;t[29]!==c?(x=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:c})}),t[29]=c,t[30]=x):x=t[30];let b;return t[31]!==x||t[32]!==n?(b=r.jsxs("div",{className:"flex h-full flex-col",children:[n,x]}),t[31]=x,t[32]=n,t[33]=b):b=t[33],b}export{fr as RecordEditor};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BHbBw0Su.js","assets/index-Djd6TuLO.js","assets/index-NVhaWgyE.css","assets/XCircle-NMY-qxx5.js","assets/CheckCircle-Ct0IkEsg.js","assets/Settings02-DIy8pOAO.js","assets/use-mcp-client-DIy-B1wr.js","assets/auth-DEoT60Hp.js","assets/useInfiniteQuery-sDr4Gfly.js","assets/use-infinite-scroll-B66e2kY3.js","assets/studio-tools-gp9mLcnF.js","assets/badge-BZaA6_yP.js","assets/input-BNOGUlQT.js","assets/dropdown-menu-CjfuPw4B.js","assets/ChevronUp-D4yp8Sde.js","assets/ChevronRight-ro8pTEbC.js","assets/DotsVertical-Bva5wMia.js","assets/table-D5xuIpUU.js","assets/toggle-group-Ctok94CI.js","assets/use-view-mode-n-a_ONE0.js","assets/use-mobile-thzrczKW.js","assets/FilterLines-CNNSd5My.js","assets/Globe01-Cat8RRQP.js","assets/SearchMd-CiOkSnnl.js","assets/dialog-XnZQaCET.js","assets/X-C3pn9FBd.js","assets/AlertCircle-BI7qL-zf.js","assets/Upload01-C6hlgF_d.js","assets/alert-dialog-Dr09xmbF.js","assets/card-6Fn3KHk6.js","assets/Trash01-CA4eBk7v.js","assets/label-BzwbJuLA.js","assets/select-DKj7B0V2.js","assets/tooltip-DNHEz7H9.js","assets/ChevronDown-c1oSYfs-.js","assets/switch-14YiCb40.js","assets/textarea-0LfkB4H6.js","assets/checkbox-DwEPCxo5.js","assets/Eye-Dz0LfZhX.js","assets/LinkExternal01-BMRTG9GY.js","assets/use-copy-dG8egJns.js","assets/Key01-CK-dtvzj.js","assets/Plus-C2AcrVDQ.js","assets/mcp-oauth-CiksM5XP.js","assets/Play-B0tuLbrU.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as s,j as e,r as i,i as a,am as o}from"./index-Djd6TuLO.js";import{R as m}from"./require-capability-CS7JuOWU.js";import"./use-capability-BDeYhQRR.js";import"./access-gate-WSH9l2fw.js";import"./capability-load-error-CTNXM3k1.js";const n=i.lazy(()=>o(()=>import("./registry-layout-BHbBw0Su.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44])));function f(){const r=s.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(m,{capability:"registry:manage",area:"the registry",children:e.jsx(i.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(n,{})})}),r[0]=t):t=r[0],t}export{f as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as W,D as fe,k as Re,m as Te,d as be,t as Q,r as T,j as t,B as V,i as Fe,l as Z,be as qs,bf as Bs}from"./index-
|
|
1
|
+
import{c as W,D as fe,k as Re,m as Te,d as be,t as Q,r as T,j as t,B as V,i as Fe,l as Z,be as qs,bf as Bs}from"./index-Djd6TuLO.js";import{c as Jt,b as Qs,d as ds,i as Vs,a as Gs,t as Ks,f as Ys,n as Hs,e as Ws}from"./XCircle-NMY-qxx5.js";import{i as qe}from"./CheckCircle-Ct0IkEsg.js";import{s as Mt,c as Js,b as Zs,i as Xs,a as er}from"./Settings02-DIy8pOAO.js";import{S as Me,u as Ie,W as tr}from"./use-mcp-client-DIy-B1wr.js";import{u as us}from"./useInfiniteQuery-sDr4Gfly.js";import{u as _e}from"./studio-tools-gp9mLcnF.js";import{B as F}from"./badge-BZaA6_yP.js";import{I as ue}from"./input-BNOGUlQT.js";import{a as dt,c as Ne,D as ut,b as mt,h as Zt,k as Xt,g as sr}from"./dropdown-menu-CjfuPw4B.js";import{c as Et,d as Dt,a as Be,e as ae,b as At,T as oe}from"./table-D5xuIpUU.js";import{T as rr,a as es}from"./toggle-group-Ctok94CI.js";import{u as nr}from"./use-view-mode-n-a_ONE0.js";import{a as $t}from"./DotsVertical-Bva5wMia.js";import{i as ir}from"./FilterLines-CNNSd5My.js";import{n as lr,i as ms}from"./Globe01-Cat8RRQP.js";import{i as ar}from"./SearchMd-CiOkSnnl.js";import{c as xt,d as pt,e as ht,D as ft,b as gt,a as jt}from"./dialog-XnZQaCET.js";import{i as Ye}from"./AlertCircle-BI7qL-zf.js";import{i as ts}from"./Upload01-C6hlgF_d.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-Dr09xmbF.js";import{C as ne}from"./card-6Fn3KHk6.js";import{s as rt}from"./Trash01-CA4eBk7v.js";import{L as te}from"./label-BzwbJuLA.js";import{d as or,b as cr,c as dr,S as ur,a as St}from"./select-DKj7B0V2.js";import{S as ze}from"./switch-14YiCb40.js";import{T as vt}from"./textarea-0LfkB4H6.js";import{i as mr}from"./X-C3pn9FBd.js";import{t as xr}from"./ChevronDown-c1oSYfs-.js";import{n as pr,i as Rt}from"./ChevronUp-D4yp8Sde.js";import{C as ss}from"./checkbox-DwEPCxo5.js";import{s as xs,a as Tt}from"./Eye-Dz0LfZhX.js";import{n as hr}from"./LinkExternal01-BMRTG9GY.js";import{u as fr}from"./use-infinite-scroll-B66e2kY3.js";import{u as It}from"./use-copy-dG8egJns.js";import{i as gr}from"./Key01-CK-dtvzj.js";import{s as jr}from"./Plus-C2AcrVDQ.js";import{a as vr,b as br,T as yr}from"./tooltip-DNHEz7H9.js";import{i as Nr,a as wr}from"./mcp-oauth-CiksM5XP.js";import{i as _r}from"./Play-B0tuLbrU.js";import"./auth-DEoT60Hp.js";import"./ChevronRight-ro8pTEbC.js";import"./use-mobile-thzrczKW.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-CikSO1sK.js → require-capability-CS7JuOWU.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,j as m}from"./index-
|
|
1
|
+
import{c as p,j as m}from"./index-Djd6TuLO.js";import{u as l}from"./use-capability-BDeYhQRR.js";import{A as u}from"./access-gate-WSH9l2fw.js";function b(c){const t=p.c(6),{capability:n,area:e,children:i}=c,{granted:a,loading:o,error:s}=l(n);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-1Q0s2bde.js → required-auth-layout-D8JzfwRM.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as l,j as s,A as a,S as m,f as h,h as u,N as f}from"./index-
|
|
1
|
+
import{c as l,j as s,A as a,S as m,f as h,h as u,N as f}from"./index-Djd6TuLO.js";function x(){const o=l.c(1),e=window.location.pathname+window.location.search;let t;if(o[0]===Symbol.for("react.memo_cache_sentinel")){const n=e==="/login"||e.startsWith("/login?")?{}:{next:e};t=s.jsx(f,{to:"/login",search:n,replace:!0}),o[0]=t}else t=o[0];return t}function g(o){const e=l.c(6),{children:t}=o;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(a,{children:s.jsx(m,{})}),e[0]=i):i=e[0];let n;e[1]!==t?(n=s.jsx(h,{children:t}),e[1]=t,e[2]=n):n=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(u,{children:s.jsx(x,{})}),e[3]=r):r=e[3];let c;return e[4]!==n?(c=s.jsxs(s.Fragment,{children:[i,n,r]}),e[4]=n,e[5]=c):c=e[5],c}export{g as R};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as q,u as Y,b as A,r as B,d as G,j as s,B as z,a as K}from"./index-
|
|
1
|
+
import{c as q,u as Y,b as A,r as B,d as G,j as s,B as z,a as K}from"./index-Djd6TuLO.js";import{I as L}from"./input-BNOGUlQT.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 g;e[22]!==a||e[23]!==t?(g=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]=g):g=e[24];let f;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?(f=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]=f):f=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]!==g||e[42]!==f||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,g,f,p]})]})]}),e[38]=m,e[39]=u,e[40]=x,e[41]=g,e[42]=f,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};
|