decocms 3.97.4 → 3.97.5
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-BI7qL-zf.js → AlertCircle-BY01IebW.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Z3BBkuVk.js → ArrowUpRight-CrNpVXJQ.js} +1 -1
- package/dist/client/assets/{CheckCircle-Ct0IkEsg.js → CheckCircle-UPyj94ce.js} +1 -1
- package/dist/client/assets/{ChevronDown-c1oSYfs-.js → ChevronDown-DuS1gosF.js} +1 -1
- package/dist/client/assets/{ChevronLeft-B5WBGMCf.js → ChevronLeft-DNoBDBkQ.js} +1 -1
- package/dist/client/assets/{ChevronRight-ro8pTEbC.js → ChevronRight-DUYBaJAA.js} +1 -1
- package/dist/client/assets/{ChevronUp-D4yp8Sde.js → ChevronUp-Bj5wnP8v.js} +1 -1
- package/dist/client/assets/{DotsVertical-Bva5wMia.js → DotsVertical-BoWHOZg-.js} +1 -1
- package/dist/client/assets/{Eye-Dz0LfZhX.js → Eye-BN8eZd3q.js} +1 -1
- package/dist/client/assets/{FilterLines-CNNSd5My.js → FilterLines-BcDA53T2.js} +1 -1
- package/dist/client/assets/{Globe01-Cat8RRQP.js → Globe01-CtRTi-q3.js} +1 -1
- package/dist/client/assets/{Globe04-CNkdEC4q.js → Globe04-DcqSH090.js} +1 -1
- package/dist/client/assets/{HardDrive-Bp0ax-t_.js → HardDrive-LcockCRx.js} +1 -1
- package/dist/client/assets/{Key01-CK-dtvzj.js → Key01-BcXniqTr.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DRgE3-pt.js → LayoutLeft-DIu4qlvA.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BMRTG9GY.js → LinkExternal01-Dyt9zIKA.js} +1 -1
- package/dist/client/assets/{Monitor01-ClILKoXR.js → Monitor01-BY0WhsQY.js} +1 -1
- package/dist/client/assets/{Palette-DzZpBk45.js → Palette-D0tFYq6o.js} +1 -1
- package/dist/client/assets/{Play-B0tuLbrU.js → Play-Ds_dyiCJ.js} +1 -1
- package/dist/client/assets/{Plus-C2AcrVDQ.js → Plus-CXJQYPWf.js} +1 -1
- package/dist/client/assets/{SearchMd-CiOkSnnl.js → SearchMd--1Uwo-4h.js} +1 -1
- package/dist/client/assets/{Settings02-DIy8pOAO.js → Settings02-Qog-9BW9.js} +1 -1
- package/dist/client/assets/{Shield01-txQYlyv3.js → Shield01-BjGAptDu.js} +1 -1
- package/dist/client/assets/{Star01-DhVZBXZp.js → Star01-BNPre7m8.js} +1 -1
- package/dist/client/assets/{Stars01-BpFWqd_D.js → Stars01-CUSSCI6Q.js} +1 -1
- package/dist/client/assets/{Stars02-Ulg_Ysyf.js → Stars02--YU8wF8-.js} +1 -1
- package/dist/client/assets/{Sun-DTQS8SC0.js → Sun-DF1tmwEc.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-h5bJ4Pj6.js → SwitchHorizontal01-C-d9B1Pc.js} +1 -1
- package/dist/client/assets/{Tool01-95LOctqu.js → Tool01-Cbity1uu.js} +1 -1
- package/dist/client/assets/{Trash01-CA4eBk7v.js → Trash01-Csom-OmK.js} +1 -1
- package/dist/client/assets/{Upload01-C6hlgF_d.js → Upload01-BKLWvYK3.js} +1 -1
- package/dist/client/assets/{User01-Bj4QEnuq.js → User01-rB66Yp8m.js} +1 -1
- package/dist/client/assets/{Users01-DjqWZa4u.js → Users01-CSjiAX-B.js} +1 -1
- package/dist/client/assets/{Users03-BnJ4POBL.js → Users03-CzMI4hYk.js} +1 -1
- package/dist/client/assets/{X-C3pn9FBd.js → X-C23kraKx.js} +1 -1
- package/dist/client/assets/{XCircle-NMY-qxx5.js → XCircle-DAQ6sXs1.js} +1 -1
- package/dist/client/assets/{XClose-JPFhglUg.js → XClose-CD3EJbwD.js} +1 -1
- package/dist/client/assets/{Zap-DZT0zVFp.js → Zap-BKA-au81.js} +1 -1
- package/dist/client/assets/{ZapSquare-CqtF4LbQ.js → ZapSquare-JpoS_XnR.js} +1 -1
- package/dist/client/assets/{ZoomOut-D5bsZWrB.js → ZoomOut-B5vLZpoX.js} +1 -1
- package/dist/client/assets/{access-gate-WSH9l2fw.js → access-gate-hq7UmdZv.js} +1 -1
- package/dist/client/assets/{add-section-modal-B8U8k2da.js → add-section-modal-DPGYUmmW.js} +1 -1
- package/dist/client/assets/{agent-icon-CUDD1qQU.js → agent-icon-B_lvSp90.js} +1 -1
- package/dist/client/assets/{agents-list-Mmv48hK1.js → agents-list-BuiqFvDD.js} +1 -1
- package/dist/client/assets/{ai-providers-DG_vNOxr.js → ai-providers-igMP4uEw.js} +1 -1
- package/dist/client/assets/{alert-B3Lwgjtc.js → alert-B6tz0cqs.js} +1 -1
- package/dist/client/assets/{alert-dialog-Dr09xmbF.js → alert-dialog-CsikfeuV.js} +1 -1
- package/dist/client/assets/{app-editor-iiNJMmFS.js → app-editor-DA7fDqIP.js} +1 -1
- package/dist/client/assets/{auth-DEoT60Hp.js → auth-CdNUf-u6.js} +1 -1
- package/dist/client/assets/{auth-catchall-mlk2GEuO.js → auth-catchall-DTkC1khj.js} +1 -1
- package/dist/client/assets/{auth-entry-D5mX9Y1D.js → auth-entry-ChKD6XAl.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BmZglzY9.js → auth-split-layout-CUgDVzOC.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DdfnmUPY.js → authenticate-and-persist-oauth-B-HUI4Rh.js} +1 -1
- package/dist/client/assets/{automation-list-row-DPE279l_.js → automation-list-row-DqslLX8-.js} +1 -1
- package/dist/client/assets/{automation-runs-BKcxyen4.js → automation-runs-C-ImxLWq.js} +1 -1
- package/dist/client/assets/{automations-smiyhS9S.js → automations-BIUDKFSY.js} +1 -1
- package/dist/client/assets/{avatar-VM4z7Sph.js → avatar-CjYG3-98.js} +1 -1
- package/dist/client/assets/{badge-BZaA6_yP.js → badge-yqmEwWNw.js} +1 -1
- package/dist/client/assets/{block-document-BZQOaxe6.js → block-document-Ddmw8MXB.js} +1 -1
- package/dist/client/assets/{brand-context-DY3B6pea.js → brand-context-b43I5gSL.js} +1 -1
- package/dist/client/assets/{buckets-CIWObJCG.js → buckets-dtFdBXmS.js} +1 -1
- package/dist/client/assets/{capability-load-error-CTNXM3k1.js → capability-load-error-CFrsagBh.js} +1 -1
- package/dist/client/assets/{card-6Fn3KHk6.js → card-CZci2Ked.js} +1 -1
- package/dist/client/assets/{category-editor-E-0PdzQN.js → category-editor-CufMmbEd.js} +1 -1
- package/dist/client/assets/{chat-context-CkCIvS-v.js → chat-context-hue9xev7.js} +1 -1
- package/dist/client/assets/{checkbox-DwEPCxo5.js → checkbox-CnyL8XHl.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CjSSt7y-.js → cli-auth-success-DEWC2vv9.js} +1 -1
- package/dist/client/assets/{collection-detail-Dx0PFfMs.js → collection-detail-BmiSLLei.js} +1 -1
- package/dist/client/assets/{collection-display-button-DCfbO2En.js → collection-display-button-DA3BZFv2.js} +1 -1
- package/dist/client/assets/{collection-search-D0UcbNUO.js → collection-search-BaiviTLW.js} +1 -1
- package/dist/client/assets/{collection-tabs-C7i3EtkQ.js → collection-tabs-gJzAs0-U.js} +1 -1
- package/dist/client/assets/{command-C2F2XANI.js → command-BtIUrGW9.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-DpQtYpFJ.js → commerce-onboarding-B6X46OGL.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-SkaagoHI.js → connect-desktop-dialog-lLRzH9Wf.js} +1 -1
- package/dist/client/assets/{connection-card-DKzKsYD0.js → connection-card-BvZozJYf.js} +1 -1
- package/dist/client/assets/{connection-detail-106OasvA.js → connection-detail--FRkiCAU.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-xWNyKJEb.js → connection-form-helpers-BXpJ-39p.js} +1 -1
- package/dist/client/assets/{connections-CQDCMrAi.js → connections-B8tGIqm6.js} +1 -1
- package/dist/client/assets/{context-menu-DBrEbI4f.js → context-menu-DdUP1nvw.js} +1 -1
- package/dist/client/assets/{decopilot-xz4hhVZ2.js → decopilot-D6Us63Iz.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-p2LEr2W4.js → decopilot-sse-pool-Cn1O82-8.js} +1 -1
- package/dist/client/assets/{dialog-XnZQaCET.js → dialog-Djo11OZ8.js} +1 -1
- package/dist/client/assets/{domain-settings-BmO0lECY.js → domain-settings-Qv_TUecy.js} +1 -1
- package/dist/client/assets/{drawer-B5z2AOPt.js → drawer-CGy7XhOb.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CjfuPw4B.js → dropdown-menu-CuiF-07J.js} +1 -1
- package/dist/client/assets/{empty-state-K13YYE8V.js → empty-state-CFMrMwNK.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D2_IgRyD.js → extract-connection-data-HZVgcUqH.js} +1 -1
- package/dist/client/assets/{file-explorer-CSMcmCDO.js → file-explorer-d1r4yEtA.js} +1 -1
- package/dist/client/assets/{file-type-icon-gLx9uWdG.js → file-type-icon-9Eew51_j.js} +1 -1
- package/dist/client/assets/{files-CgBtSGQa.js → files-BX2R4Hdg.js} +1 -1
- package/dist/client/assets/{form-BCSBsB3M.js → form-Bws9hvDL.js} +1 -1
- package/dist/client/assets/{general-Dev0qsuS.js → general-BfDLAR84.js} +1 -1
- package/dist/client/assets/{github-repo-picker-B4DQ87lb.js → github-repo-picker-DgsWIyrn.js} +1 -1
- package/dist/client/assets/{hooks-Dh6Jo6FF.js → hooks-BFhhtb2P.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-BVHsGWbT.js → import-from-deco-dialog-B_FF9twl.js} +1 -1
- package/dist/client/assets/{index-WC9jROXW.js → index-BQpSQsx-.js} +1 -1
- package/dist/client/assets/{index-IsMJIAw6.js → index-Bbr4phoV.js} +1 -1
- package/dist/client/assets/{index-CE2XOQVr.js → index-Bfc1Ah6s.js} +1 -1
- package/dist/client/assets/{index-CJOXnwUs.js → index-BolwlNK6.js} +1 -1
- package/dist/client/assets/{index-Djd6TuLO.js → index-BwVMeD3q.js} +3 -3
- package/dist/client/assets/{index-DSYaiu7_.js → index-C5p4XFGO.js} +1 -1
- package/dist/client/assets/{index-y2e8K8Eh.js → index-CM09tGUK.js} +1 -1
- package/dist/client/assets/{index-Wtqqsvov.js → index-CNHawUWP.js} +1 -1
- package/dist/client/assets/{index-C8Wh7-Ly.js → index-Cb0xFHoO.js} +1 -1
- package/dist/client/assets/{index-DbYhcgAw.js → index-CxFZHubh.js} +5 -5
- package/dist/client/assets/{index-BbxDcYXz.js → index-Cyi-U3f4.js} +1 -1
- package/dist/client/assets/{index-BBAsYjSg.js → index-D6bagO5K.js} +1 -1
- package/dist/client/assets/{index-CQJFA7-5.js → index-DgHQzdnZ.js} +1 -1
- package/dist/client/assets/{index-redirect-LwQf8HQF.js → index-redirect-CEK3pBZ_.js} +1 -1
- package/dist/client/assets/{index-BuTMcq2r.js → index-zLeBpb-e.js} +1 -1
- package/dist/client/assets/{input-BNOGUlQT.js → input-C8pdmexi.js} +1 -1
- package/dist/client/assets/{integration-icon-Da8Ja8xZ.js → integration-icon-BYt__tsS.js} +1 -1
- package/dist/client/assets/{label-BzwbJuLA.js → label-6fUzynqC.js} +1 -1
- package/dist/client/assets/{login-BFTv0hNB.js → login-RzsGUcw2.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CiksM5XP.js → mcp-oauth-DOYfP2o1.js} +1 -1
- package/dist/client/assets/{members-BhnBffwF.js → members-C8QsS2ME.js} +1 -1
- package/dist/client/assets/{monaco-editor-DiBPYiNx.js → monaco-editor-DGlh_VCI.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CcPgk97X.js → monitoring-stats-row-tBQqJwnX.js} +1 -1
- package/dist/client/assets/{oauth-callback-BrGCqspF.js → oauth-callback-C7HO5sjA.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BfdjFrej.js → oauth-callback-ai-provider-C2ZKRasi.js} +1 -1
- package/dist/client/assets/{onboarding-CxGIxXF1.js → onboarding-Pxz11AYs.js} +1 -1
- package/dist/client/assets/{org-install-CI7aPCB0.js → org-install-Fk_fo4EG.js} +1 -1
- package/dist/client/assets/{org-layout-DOBb0Fbt.js → org-layout-BYDLh4Da.js} +1 -1
- package/dist/client/assets/{organization-choice-BFeOoh8u.js → organization-choice-D91Z6ihZ.js} +1 -1
- package/dist/client/assets/{page-seo-form-BTOsm1v0.js → page-seo-form-Dw_-ajyz.js} +1 -1
- package/dist/client/assets/page-seo-sheet-CFP5LBzL.js +1 -0
- package/dist/client/assets/{popover-D2ChxMGV.js → popover-cxXkvARj.js} +1 -1
- package/dist/client/assets/{post-editor-BkEG5JCy.js → post-editor-CqZVJyys.js} +1 -1
- package/dist/client/assets/{preview-dialog-Dyv-Otum.js → preview-dialog-C1XBzik_.js} +1 -1
- package/dist/client/assets/{primitives-DqhOOS3x.js → primitives-C8RGsHih.js} +1 -1
- package/dist/client/assets/{profile-BJcOUl1z.js → profile-RQBuJ0-C.js} +1 -1
- package/dist/client/assets/project-app-view-BUDCdtfR.js +1 -0
- package/dist/client/assets/record-editor-x3p3WRWl.js +1 -0
- package/dist/client/assets/registry-DUN-rzpb.js +2 -0
- package/dist/client/assets/{registry-layout-BHbBw0Su.js → registry-layout-JxXagtmN.js} +1 -1
- package/dist/client/assets/{require-capability-CS7JuOWU.js → require-capability-D8wtdjJA.js} +1 -1
- package/dist/client/assets/{required-auth-layout-D8JzfwRM.js → required-auth-layout-Bni9Lv8T.js} +1 -1
- package/dist/client/assets/{reset-password-BUI5EECa.js → reset-password-CDD1X47u.js} +1 -1
- package/dist/client/assets/{roles-B25l2ywl.js → roles-BmFGLWBQ.js} +1 -1
- package/dist/client/assets/{save-status-CcBc_RS2.js → save-status-Ap0tRvUu.js} +1 -1
- package/dist/client/assets/{scroll-area-BnoH8jf-.js → scroll-area-BFIPKXPy.js} +1 -1
- package/dist/client/assets/{search-input-Djqm0TA1.js → search-input-DqD8geWF.js} +1 -1
- package/dist/client/assets/{secrets-DcAzNXon.js → secrets-CUG9brF8.js} +1 -1
- package/dist/client/assets/{sections-editor-Bk9qVARB.js → sections-editor-2XAp7iDT.js} +1 -1
- package/dist/client/assets/{select-DKj7B0V2.js → select-UKSqIIxL.js} +1 -1
- package/dist/client/assets/{select-model-Bimfcw46.js → select-model-Duntt4sG.js} +1 -1
- package/dist/client/assets/{seo-editor-J7Oo13p-.js → seo-editor-sJTA698t.js} +1 -1
- package/dist/client/assets/{settings-layout-DY61B_5X.js → settings-layout-D4PyBfZX.js} +1 -1
- package/dist/client/assets/{settings-section-BHLR2lqY.js → settings-section-uysJimh1.js} +1 -1
- package/dist/client/assets/{sheet-a31ex1bd.js → sheet-DaEm5-cm.js} +1 -1
- package/dist/client/assets/{shell-controls-BRxhvPab.js → shell-controls-D-FZtlw4.js} +1 -1
- package/dist/client/assets/{shell-layout-C1UY2dDO.js → shell-layout-BU2Eo26M.js} +1 -1
- package/dist/client/assets/{shell-route-loading-D1Wm-1cK.js → shell-route-loading-k31lp-sb.js} +1 -1
- package/dist/client/assets/{sidebar-Cj_aFqAP.js → sidebar-CDHrQeMJ.js} +1 -1
- package/dist/client/assets/{skeleton-BgGeuCF7.js → skeleton-CjN5A6XL.js} +1 -1
- package/dist/client/assets/{sortable.esm-CMtvLYoN.js → sortable.esm-DWhmpOCs.js} +1 -1
- package/dist/client/assets/{sso-DqhUN-uI.js → sso-CWuDaOKP.js} +1 -1
- package/dist/client/assets/{store-CdnJ7fUT.js → store-DMU35qQr.js} +1 -1
- package/dist/client/assets/store-registry-DE3B_JjR.js +2 -0
- package/dist/client/assets/{studio-tools-gp9mLcnF.js → studio-tools-Cj1fBaXp.js} +1 -1
- package/dist/client/assets/{switch-14YiCb40.js → switch-BlhCItPG.js} +1 -1
- package/dist/client/assets/{table-D5xuIpUU.js → table-Bt_fbenL.js} +1 -1
- package/dist/client/assets/{tabs-ChA8V1ag.js → tabs-DLLYyT_4.js} +1 -1
- package/dist/client/assets/{task-status-C7xHgaQ7.js → task-status-DG_3CCeu.js} +1 -1
- package/dist/client/assets/{textarea-0LfkB4H6.js → textarea-LTBnL6Dv.js} +1 -1
- package/dist/client/assets/{toggle-group-Ctok94CI.js → toggle-group-DLR6cnlJ.js} +1 -1
- package/dist/client/assets/{toolbar-Dgv-0cJG.js → toolbar-BuAJdBWi.js} +1 -1
- package/dist/client/assets/{tooltip-DNHEz7H9.js → tooltip-_TcC7QSJ.js} +1 -1
- package/dist/client/assets/{types-BpjdnyIn.js → types-C9zbfwjF.js} +1 -1
- package/dist/client/assets/{use-ai-providers-FEYc1hYo.js → use-ai-providers-Mmhw_1Og.js} +1 -1
- package/dist/client/assets/{use-automations-BBBpz3Ll.js → use-automations-Cw5ubZKL.js} +1 -1
- package/dist/client/assets/{use-capability-BDeYhQRR.js → use-capability-CP1V4i_3.js} +1 -1
- package/dist/client/assets/{use-clock-tick-xyRkceIk.js → use-clock-tick-BbDdy2cM.js} +1 -1
- package/dist/client/assets/{use-collections-DHsBnI-g.js → use-collections-DDwKLwWC.js} +1 -1
- package/dist/client/assets/{use-connection-d25soQOF.js → use-connection-bj-QmeCF.js} +1 -1
- package/dist/client/assets/{use-copy-dG8egJns.js → use-copy-TPlwZ6aA.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-t3h12kDQ.js → use-create-virtual-mcp-CoJdf93N.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CbQ41T1D.js → use-debounced-autosave-D_Bc7lE0.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DWsYfcTZ.js → use-delete-connection-0kzxSS_1.js} +1 -1
- package/dist/client/assets/{use-file-configs-BZdMLkS5.js → use-file-configs-BumxkY1W.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-B66e2kY3.js → use-infinite-scroll-B0LwAHpI.js} +1 -1
- package/dist/client/assets/{use-join-requests-SbIrsr3r.js → use-join-requests-BVChfrSN.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DIy-B1wr.js → use-mcp-client-DjnQKDkF.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-9snCiqu-.js → use-mcp-prompts-7fCwwbYc.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Dm8hC2Ai.js → use-mcp-tools-CbjkHt5p.js} +1 -1
- package/dist/client/assets/{use-members-QdT6WLec.js → use-members-DPAHG5Sy.js} +1 -1
- package/dist/client/assets/{use-mobile-thzrczKW.js → use-mobile-7oYhfh2a.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BUtLr1-s.js → use-navigate-to-agent-C1cPyWif.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DEuaxZpa.js → use-org-auth-client-CywDmsAy.js} +1 -1
- package/dist/client/assets/{use-org-sso-CydJi_gG.js → use-org-sso-BRBxUiX-.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DoQvWm8B.js → use-organization-roles-Bk3e4nqx.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BIHpPlmZ.js → use-organization-settings-DeAexlNB.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DaDcQiUE.js → use-registry-connections-B0D0ZFPH.js} +1 -1
- package/dist/client/assets/{use-secrets-JQFoSSKX.js → use-secrets-COBbdB1z.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DuB5Qdsa.js → use-status-sounds-CwxWlyu5.js} +1 -1
- package/dist/client/assets/{use-view-mode-n-a_ONE0.js → use-view-mode-DY00qIDT.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Cw7Cf-co.js → use-virtual-mcp-Bn261I3R.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CbK39j5Y.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-HNqdvvLG.js +1 -0
- package/dist/client/assets/{useSuspenseQueries-DxszLLty.js → useSuspenseQueries-BZYHmjMQ.js} +1 -1
- package/dist/client/assets/{variant-calendar-E9B1QGS8.js → variant-calendar-Ds28F-NA.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CmzDEt1O.js → view-mode-toggle-e9BSYjzY.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-BC74IS3P.js +0 -1
- package/dist/client/assets/project-app-view-juh8eCQN.js +0 -1
- package/dist/client/assets/record-editor-Bl6ua1Xn.js +0 -1
- package/dist/client/assets/registry-1R5kgpGp.js +0 -2
- package/dist/client/assets/store-registry-k484eohP.js +0 -2
- package/dist/client/assets/useInfiniteQuery-sDr4Gfly.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CpcwLIEk.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as L,m as te,K as U,j as a,r as M,l as ne}from"./index-Djd6TuLO.js";import{i as oe,p as z,ae as se,af as re,ag as ie,j as le,ah as ce,ab as ae}from"./index-DbYhcgAw.js";import{L as Y}from"./label-BzwbJuLA.js";import{S as $}from"./switch-14YiCb40.js";import{a as ue,b as fe,c as pe,S as de,d as ye}from"./select-DKj7B0V2.js";const he="website/sections/Rendering/Lazy.tsx";function K(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function N(t){if(!K(t))return!1;const e=t.__resolveType;return typeof e=="string"&&oe(e)}function k(t){return t!=null}function w(t){if(t==null)return t;if(N(t)){const e=t.section;return e==null?null:K(e)?e:{}}return K(t)?t:void 0}function G(t,e){return t===null?null:N(e)?{...e,section:t}:t}function me(t){return{__resolveType:t}}function Se(t,e){if(!k(e))return null;if(t){const n=w(e)??{};return{__resolveType:he,section:n}}return N(e)?w(e)??null:K(e)?e:null}const ge="General";function O(t){return/\/Seo(V\d+)?\.tsx$/i.test(t)||t.includes("/sections/Seo")}function Q(t,e){return t===C?ge:e}function W(t){const e=re(t),n=new Set,o=[];for(const s of e)O(s.resolveType)&&(ie(s.resolveType)||n.has(s.resolveType)||(n.add(s.resolveType),o.push({resolveType:s.resolveType,title:Q(s.resolveType,s.title),description:s.description})));return o}function V(t){const e=se(t),n=z(e,t),o=W(n?.properties?.seo);return o.length>0?o:ve(t)}function ve(t){const e=t.manifest?.blocks??{},n=[];for(const[o,s]of Object.entries(e))if(o.includes("sections"))for(const r of Object.keys(s)){if(!O(r))continue;const i=r.split("/").pop()?.replace(/\.tsx?$/,"")??r;n.push({resolveType:r,title:Q(r,i)})}return n}function Z(t){const e=V(t),n=e.find(o=>o.resolveType===C);return n?n.resolveType:e[0]?.resolveType??C}function q(t,e){const n=e.__resolveType;if(typeof n=="string"){const o=z(n,t),s=W(o?.properties?.seo);if(s.length>0)return s}return V(t)}function be(t,e){const n=q(t,e),o=n.find(s=>s.resolveType===C);return o?o.resolveType:n[0]?.resolveType??Z(t)}function Te(t,e){const n=e?.__resolveType;return typeof n=="string"&&n.length>0?n:Z(t)}function xe(t,e,n){const o=n.__resolveType;return typeof o=="string"&&O(o)?o:be(t,e)}const _e=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]),C="website/sections/Seo/SeoV2.tsx",Re=["title","titleTemplate","description","descriptionTemplate","image","favicon","type","noIndexing"];function F(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function je(t){return typeof t.__resolveType=="string"&&O(t.__resolveType)?!0:Re.some(e=>e in t)}function Ee(t,e){for(const[n,o]of Object.entries(t)){if(!F(o))continue;const s=o,r=s.__resolveType;if(typeof r=="string"&&_e.has(r))continue;const i=s.seo;if(F(i)){const c=i;if(je(c))return{blockKey:n,kind:"nested",seoData:c,blockData:s,seoResolveType:e?xe(e,s,c):typeof c.__resolveType=="string"&&O(c.__resolveType)?c.__resolveType:C}}}for(const[n,o]of Object.entries(t)){if(!F(o))continue;const s=o;if(typeof s.__resolveType=="string"&&O(s.__resolveType))return{blockKey:n,kind:"block",seoData:s,blockData:s,seoResolveType:s.__resolveType}}return null}function De(t,e){return t.kind==="block"?e:{...t.blockData,seo:e}}function Ze(t,e,n){if(e.kind==="site"){const l=Ee(t,n);return l?{blockKey:l.blockKey,seoData:l.seoData,seoResolveType:l.seoResolveType,siteKind:l.kind,seoTypeOptions:n?q(n,l.blockData):void 0,build:d=>De(l,d)}:null}const o=t[e.pageKey];if(!F(o))return null;const s=o,r=s.seo,i=w(r),c=i&&F(i)?i:void 0;return{blockKey:e.pageKey,seoData:c,rawSeoData:r,seoResolveType:n?Te(n,c):typeof c?.__resolveType=="string"?c.__resolveType:C,seoTypeOptions:n?V(n):void 0,build:l=>({...s,seo:l===null?null:G(l,r)})}}function I(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Ce(t,e,n,o){if(t.kind==="page"){if(!I(n))return null;const s=n.seo!==void 0?n.seo:e.rawSeoData;return{...n,seo:o===null?null:G(o,s)}}return I(n)?e.siteKind==="block"?o:{...n,seo:o}:null}function qe(t,e){const n=t.__resolveType;return typeof n=="string"&&n.length>0?n:e.seoResolveType}function He(t){const e=L.c(23),{orgSlug:n,virtualMcpId:o,branch:s,target:r,resolved:i,onSaved:c}=t,l=te(),d=`${n}/${o}/${s}`;let y;e[0]!==s||e[1]!==n||e[2]!==o?(y={orgSlug:n,virtualMcpId:o,branch:s},e[0]=s,e[1]=n,e[2]=o,e[3]=y):y=e[3];let p;e[4]!==c?(p={onSaved:c},e[4]=c,e[5]=p):p=e[5];const{save:f,flush:S,isPending:h}=le(y,p);let m;e[6]!==d||e[7]!==l||e[8]!==i||e[9]!==f||e[10]!==r?(m=j=>{i&&f(i.blockKey,()=>{const b=l.getQueryData(U.decofile(d))?.[i.blockKey];return Ce(r,i,b,j)})},e[6]=d,e[7]=l,e[8]=i,e[9]=f,e[10]=r,e[11]=m):m=e[11];const g=m;let v;e[12]!==d||e[13]!==l||e[14]!==i||e[15]!==f||e[16]!==r?(v=j=>{!i||r.kind!=="page"||f(i.blockKey,()=>{const b=l.getQueryData(U.decofile(d))?.[i.blockKey];return I(b)?{...b,seo:j}:null})},e[12]=d,e[13]=l,e[14]=i,e[15]=f,e[16]=r,e[17]=v):v=e[17];const R=v;let x;return e[18]!==S||e[19]!==h||e[20]!==R||e[21]!==g?(x={persistSeo:g,persistRawSeo:R,flush:S,isPending:h},e[18]=S,e[19]=h,e[20]=R,e[21]=g,e[22]=x):x=e[22],x}const Pe="https://deco.cx/docs/en/performance/edge-async-render";function Oe(t){const e=L.c(16),{rawSeo:n,onEnableChange:o,onAsyncRenderChange:s,children:r}=t;let i;e[0]!==n?(i=k(n),e[0]=n,e[1]=i):i=e[1];const c=i;let l;e[2]!==n?(l=N(n),e[2]=n,e[3]=l):l=e[3];const d=l;let y;e[4]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(Y,{htmlFor:"seo-enable",className:"text-sm font-medium",children:"Enable SEO"}),e[4]=y):y=e[4];let p;e[5]!==c||e[6]!==o?(p=a.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y,a.jsx($,{id:"seo-enable",checked:c,onCheckedChange:o})]}),e[5]=c,e[6]=o,e[7]=p):p=e[7];let f;e[8]!==d||e[9]!==r||e[10]!==c||e[11]!==s?(f=c&&a.jsxs(a.Fragment,{children:[r,a.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[a.jsxs("div",{className:"min-w-0 space-y-1",children:[a.jsx("p",{className:"text-sm font-medium",children:"Async render"}),a.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",a.jsx("a",{href:Pe,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:"documentation"}),"."]})]}),a.jsx($,{id:"seo-async-render",checked:d,onCheckedChange:s,className:"shrink-0"})]})]}),e[8]=d,e[9]=r,e[10]=c,e[11]=s,e[12]=f):f=e[12];let S;return e[13]!==p||e[14]!==f?(S=a.jsxs("div",{className:"space-y-4",children:[p,f]}),e[13]=p,e[14]=f,e[15]=S):S=e[15],S}const B=["type","title","description","canonical","favicon","image","themeColor"],Le=["jsonLD","omitVariants","title","description","noIndexing","ignoreStructuredData"],Fe=["jsonLD","title","description","noIndexing","configJsonLD"];function H(t){return t===C||/\/Seo\/SeoV2\.tsx$/i.test(t)?"general":/\/Seo\/SeoPDP/i.test(t)?"pdp":/\/Seo\/SeoPLP/i.test(t)?"plp":"full"}function Ke(t){switch(t){case"general":return B;case"pdp":return Le;case"plp":return Fe;default:return null}}function J(t,e){const n=Ke(H(e));if(!n||!t.properties)return t;const o={};for(const s of n){const r=t.properties[s];r&&(o[s]=r)}return{...t,properties:o}}function ke(){return B.filter(t=>t!=="type")}function Ne(t){return t.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}function Ae(t,e){return t[e]===void 0}function $e(t){const e=L.c(13),{schema:n,value:o,onChange:s,siteDefaultSeo:r,formResetKey:i}=t,l=J(n,C).properties??{},d=ke();let y;e[0]!==r?(y=!!r&&Object.keys(r).length>0,e[0]=r,e[1]=y):y=e[1];const p=y,[f,S]=M.useState(i);let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h={},e[2]=h):h=e[2];const[m,g]=M.useState(h);f!==i&&(S(i),g({}));let v;e[3]!==m||e[4]!==o?(v=u=>m[u]!==void 0?m[u]:Ae(o,u),e[3]=m,e[4]=o,e[5]=v):v=e[5];const R=v;let x;e[6]!==s||e[7]!==r||e[8]!==o?(x=(u,T)=>{g(D=>({...D,[u]:T}));const E={...o};if(T)delete E[u];else{const D=r?.[u];E[u]=D??(u==="type"?"website":"")}s(E)},e[6]=s,e[7]=r,e[8]=o,e[9]=x):x=e[9];const j=x,P="min-w-0 space-y-6",b=B.map(u=>{const T=l[u];if(!T)return null;const E=p&&d.includes(u),D=E&&R(u),X=D?r?.[u]??o[u]:o[u],ee=T.title??Ne(u);return a.jsxs("div",{className:"space-y-2",children:[a.jsx("div",{className:ne(D&&"pointer-events-none opacity-60"),children:ce({schema:T,value:X,onChange:A=>{D||s({...o,[u]:A})},path:u,label:ee,breadcrumbPath:[],onBreadcrumbChange:we})}),E&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx($,{id:`seo-use-default-${u}`,checked:D,onCheckedChange:A=>j(u,A)}),a.jsx(Y,{htmlFor:`seo-use-default-${u}`,className:"text-xs font-normal text-muted-foreground",children:"Use default"})]})]},u)});let _;return e[10]!==i||e[11]!==b?(_=a.jsx("div",{className:P,children:b},i),e[10]=i,e[11]=b,e[12]=_):_=e[12],_}function we(){}function Ie(t){const e=L.c(18),{schema:n,resolveType:o,value:s,formResetKey:r,onChange:i,onBreadcrumbChange:c,siteDefaultSeo:l}=t;if(H(o)==="general"){let m;e[0]!==i?(m=v=>i(v),e[0]=i,e[1]=m):m=e[1];let g;return e[2]!==r||e[3]!==n||e[4]!==l||e[5]!==m||e[6]!==s?(g=a.jsx($e,{schema:n,value:s,onChange:m,siteDefaultSeo:l,formResetKey:r}),e[2]=r,e[3]=n,e[4]=l,e[5]=m,e[6]=s,e[7]=g):g=e[7],g}let y;e[8]!==o||e[9]!==n?(y=J(n,o),e[8]=o,e[9]=n,e[10]=y):y=e[10];const p=y;let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=[],e[11]=f):f=e[11];const S=c??Ye;let h;return e[12]!==p||e[13]!==r||e[14]!==i||e[15]!==S||e[16]!==s?(h=a.jsx(ae,{schema:p,value:s,onChange:i,basePath:"",breadcrumbPath:f,onBreadcrumbChange:S},r),e[12]=p,e[13]=r,e[14]=i,e[15]=S,e[16]=s,e[17]=h):h=e[17],h}function Ye(){}function Ve(t){const e=L.c(10),{options:n,value:o,onChange:s}=t;if(n.length<=1)return null;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Y,{className:"text-xs text-muted-foreground",children:"SEO type"}),e[0]=r):r=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(fe,{className:"w-full",children:a.jsx(pe,{placeholder:"Select SEO type"})}),e[1]=i):i=e[1];let c;e[2]!==n?(c=n.filter(Ue).map(Be),e[2]=n,e[3]=c):c=e[3];let l;e[4]!==c?(l=a.jsx(de,{children:c}),e[4]=c,e[5]=l):l=e[5];let d;return e[6]!==s||e[7]!==l||e[8]!==o?(d=a.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[r,a.jsxs(ye,{value:o,onValueChange:s,children:[i,l]})]}),e[6]=s,e[7]=l,e[8]=o,e[9]=d):d=e[9],d}function Be(t){return a.jsx(ue,{value:t.resolveType,children:t.title},t.resolveType)}function Ue(t){return t.resolveType.length>0}function Je(t){const e=L.c(33),{rawSeo:n,innerSeo:o,defaultResolveType:s,seoSchema:r,activeResolveType:i,seoTypeOptions:c,formResetKey:l,siteDefaultSeo:d,onBreadcrumbChange:y,onPersistRaw:p,onInnerChange:f,onClearForm:S,onBumpFormKey:h,beforeFields:m}=t;let g;e[0]!==s||e[1]!==h||e[2]!==S||e[3]!==p?(g=T=>{if(T){const E=me(s);p(E),S(),h();return}p(null),S(),h()},e[0]=s,e[1]=h,e[2]=S,e[3]=p,e[4]=g):g=e[4];const v=g;let R;e[5]!==p||e[6]!==n?(R=T=>{const E=Se(T,n);p(E)},e[5]=p,e[6]=n,e[7]=R):R=e[7];const x=R;let j;e[8]!==h||e[9]!==f?(j=T=>{f({__resolveType:T}),h()},e[8]=h,e[9]=f,e[10]=j):j=e[10];const P=j;let b;e[11]!==i||e[12]!==P||e[13]!==n||e[14]!==r||e[15]!==c?(b=k(n)&&r&&i&&c&&c.length>0&&a.jsx(Ve,{options:c,value:i,onChange:P}),e[11]=i,e[12]=P,e[13]=n,e[14]=r,e[15]=c,e[16]=b):b=e[16];let _;e[17]!==i||e[18]!==l||e[19]!==o||e[20]!==y||e[21]!==f||e[22]!==n||e[23]!==r||e[24]!==d?(_=k(n)&&r&&i&&a.jsx(Ie,{schema:r,resolveType:i,value:o,formResetKey:l,onChange:T=>f(T),onBreadcrumbChange:y,siteDefaultSeo:d}),e[17]=i,e[18]=l,e[19]=o,e[20]=y,e[21]=f,e[22]=n,e[23]=r,e[24]=d,e[25]=_):_=e[25];let u;return e[26]!==m||e[27]!==x||e[28]!==v||e[29]!==n||e[30]!==b||e[31]!==_?(u=a.jsxs(Oe,{rawSeo:n,onEnableChange:v,onAsyncRenderChange:x,children:[m,b,_]}),e[26]=m,e[27]=x,e[28]=v,e[29]=n,e[30]=b,e[31]=_,e[32]=u):u=e[32],u}export{Je as P,Ie as S,qe as a,Ce as b,He as c,Z as d,Ee as f,k as i,Ze as r,w as u};
|
|
1
|
+
import{c as L,m as te,K as U,j as a,r as M,l as ne}from"./index-BwVMeD3q.js";import{i as oe,p as z,ae as se,af as re,ag as ie,j as le,ah as ce,ab as ae}from"./index-CxFZHubh.js";import{L as Y}from"./label-6fUzynqC.js";import{S as $}from"./switch-BlhCItPG.js";import{a as ue,b as fe,c as pe,S as de,d as ye}from"./select-UKSqIIxL.js";const he="website/sections/Rendering/Lazy.tsx";function K(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function N(t){if(!K(t))return!1;const e=t.__resolveType;return typeof e=="string"&&oe(e)}function k(t){return t!=null}function w(t){if(t==null)return t;if(N(t)){const e=t.section;return e==null?null:K(e)?e:{}}return K(t)?t:void 0}function G(t,e){return t===null?null:N(e)?{...e,section:t}:t}function me(t){return{__resolveType:t}}function Se(t,e){if(!k(e))return null;if(t){const n=w(e)??{};return{__resolveType:he,section:n}}return N(e)?w(e)??null:K(e)?e:null}const ge="General";function O(t){return/\/Seo(V\d+)?\.tsx$/i.test(t)||t.includes("/sections/Seo")}function Q(t,e){return t===C?ge:e}function W(t){const e=re(t),n=new Set,o=[];for(const s of e)O(s.resolveType)&&(ie(s.resolveType)||n.has(s.resolveType)||(n.add(s.resolveType),o.push({resolveType:s.resolveType,title:Q(s.resolveType,s.title),description:s.description})));return o}function V(t){const e=se(t),n=z(e,t),o=W(n?.properties?.seo);return o.length>0?o:ve(t)}function ve(t){const e=t.manifest?.blocks??{},n=[];for(const[o,s]of Object.entries(e))if(o.includes("sections"))for(const r of Object.keys(s)){if(!O(r))continue;const i=r.split("/").pop()?.replace(/\.tsx?$/,"")??r;n.push({resolveType:r,title:Q(r,i)})}return n}function Z(t){const e=V(t),n=e.find(o=>o.resolveType===C);return n?n.resolveType:e[0]?.resolveType??C}function q(t,e){const n=e.__resolveType;if(typeof n=="string"){const o=z(n,t),s=W(o?.properties?.seo);if(s.length>0)return s}return V(t)}function be(t,e){const n=q(t,e),o=n.find(s=>s.resolveType===C);return o?o.resolveType:n[0]?.resolveType??Z(t)}function Te(t,e){const n=e?.__resolveType;return typeof n=="string"&&n.length>0?n:Z(t)}function xe(t,e,n){const o=n.__resolveType;return typeof o=="string"&&O(o)?o:be(t,e)}const _e=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]),C="website/sections/Seo/SeoV2.tsx",Re=["title","titleTemplate","description","descriptionTemplate","image","favicon","type","noIndexing"];function F(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function je(t){return typeof t.__resolveType=="string"&&O(t.__resolveType)?!0:Re.some(e=>e in t)}function Ee(t,e){for(const[n,o]of Object.entries(t)){if(!F(o))continue;const s=o,r=s.__resolveType;if(typeof r=="string"&&_e.has(r))continue;const i=s.seo;if(F(i)){const c=i;if(je(c))return{blockKey:n,kind:"nested",seoData:c,blockData:s,seoResolveType:e?xe(e,s,c):typeof c.__resolveType=="string"&&O(c.__resolveType)?c.__resolveType:C}}}for(const[n,o]of Object.entries(t)){if(!F(o))continue;const s=o;if(typeof s.__resolveType=="string"&&O(s.__resolveType))return{blockKey:n,kind:"block",seoData:s,blockData:s,seoResolveType:s.__resolveType}}return null}function De(t,e){return t.kind==="block"?e:{...t.blockData,seo:e}}function Ze(t,e,n){if(e.kind==="site"){const l=Ee(t,n);return l?{blockKey:l.blockKey,seoData:l.seoData,seoResolveType:l.seoResolveType,siteKind:l.kind,seoTypeOptions:n?q(n,l.blockData):void 0,build:d=>De(l,d)}:null}const o=t[e.pageKey];if(!F(o))return null;const s=o,r=s.seo,i=w(r),c=i&&F(i)?i:void 0;return{blockKey:e.pageKey,seoData:c,rawSeoData:r,seoResolveType:n?Te(n,c):typeof c?.__resolveType=="string"?c.__resolveType:C,seoTypeOptions:n?V(n):void 0,build:l=>({...s,seo:l===null?null:G(l,r)})}}function I(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Ce(t,e,n,o){if(t.kind==="page"){if(!I(n))return null;const s=n.seo!==void 0?n.seo:e.rawSeoData;return{...n,seo:o===null?null:G(o,s)}}return I(n)?e.siteKind==="block"?o:{...n,seo:o}:null}function qe(t,e){const n=t.__resolveType;return typeof n=="string"&&n.length>0?n:e.seoResolveType}function He(t){const e=L.c(23),{orgSlug:n,virtualMcpId:o,branch:s,target:r,resolved:i,onSaved:c}=t,l=te(),d=`${n}/${o}/${s}`;let y;e[0]!==s||e[1]!==n||e[2]!==o?(y={orgSlug:n,virtualMcpId:o,branch:s},e[0]=s,e[1]=n,e[2]=o,e[3]=y):y=e[3];let p;e[4]!==c?(p={onSaved:c},e[4]=c,e[5]=p):p=e[5];const{save:f,flush:S,isPending:h}=le(y,p);let m;e[6]!==d||e[7]!==l||e[8]!==i||e[9]!==f||e[10]!==r?(m=j=>{i&&f(i.blockKey,()=>{const b=l.getQueryData(U.decofile(d))?.[i.blockKey];return Ce(r,i,b,j)})},e[6]=d,e[7]=l,e[8]=i,e[9]=f,e[10]=r,e[11]=m):m=e[11];const g=m;let v;e[12]!==d||e[13]!==l||e[14]!==i||e[15]!==f||e[16]!==r?(v=j=>{!i||r.kind!=="page"||f(i.blockKey,()=>{const b=l.getQueryData(U.decofile(d))?.[i.blockKey];return I(b)?{...b,seo:j}:null})},e[12]=d,e[13]=l,e[14]=i,e[15]=f,e[16]=r,e[17]=v):v=e[17];const R=v;let x;return e[18]!==S||e[19]!==h||e[20]!==R||e[21]!==g?(x={persistSeo:g,persistRawSeo:R,flush:S,isPending:h},e[18]=S,e[19]=h,e[20]=R,e[21]=g,e[22]=x):x=e[22],x}const Pe="https://deco.cx/docs/en/performance/edge-async-render";function Oe(t){const e=L.c(16),{rawSeo:n,onEnableChange:o,onAsyncRenderChange:s,children:r}=t;let i;e[0]!==n?(i=k(n),e[0]=n,e[1]=i):i=e[1];const c=i;let l;e[2]!==n?(l=N(n),e[2]=n,e[3]=l):l=e[3];const d=l;let y;e[4]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(Y,{htmlFor:"seo-enable",className:"text-sm font-medium",children:"Enable SEO"}),e[4]=y):y=e[4];let p;e[5]!==c||e[6]!==o?(p=a.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y,a.jsx($,{id:"seo-enable",checked:c,onCheckedChange:o})]}),e[5]=c,e[6]=o,e[7]=p):p=e[7];let f;e[8]!==d||e[9]!==r||e[10]!==c||e[11]!==s?(f=c&&a.jsxs(a.Fragment,{children:[r,a.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[a.jsxs("div",{className:"min-w-0 space-y-1",children:[a.jsx("p",{className:"text-sm font-medium",children:"Async render"}),a.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",a.jsx("a",{href:Pe,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:"documentation"}),"."]})]}),a.jsx($,{id:"seo-async-render",checked:d,onCheckedChange:s,className:"shrink-0"})]})]}),e[8]=d,e[9]=r,e[10]=c,e[11]=s,e[12]=f):f=e[12];let S;return e[13]!==p||e[14]!==f?(S=a.jsxs("div",{className:"space-y-4",children:[p,f]}),e[13]=p,e[14]=f,e[15]=S):S=e[15],S}const B=["type","title","description","canonical","favicon","image","themeColor"],Le=["jsonLD","omitVariants","title","description","noIndexing","ignoreStructuredData"],Fe=["jsonLD","title","description","noIndexing","configJsonLD"];function H(t){return t===C||/\/Seo\/SeoV2\.tsx$/i.test(t)?"general":/\/Seo\/SeoPDP/i.test(t)?"pdp":/\/Seo\/SeoPLP/i.test(t)?"plp":"full"}function Ke(t){switch(t){case"general":return B;case"pdp":return Le;case"plp":return Fe;default:return null}}function J(t,e){const n=Ke(H(e));if(!n||!t.properties)return t;const o={};for(const s of n){const r=t.properties[s];r&&(o[s]=r)}return{...t,properties:o}}function ke(){return B.filter(t=>t!=="type")}function Ne(t){return t.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}function Ae(t,e){return t[e]===void 0}function $e(t){const e=L.c(13),{schema:n,value:o,onChange:s,siteDefaultSeo:r,formResetKey:i}=t,l=J(n,C).properties??{},d=ke();let y;e[0]!==r?(y=!!r&&Object.keys(r).length>0,e[0]=r,e[1]=y):y=e[1];const p=y,[f,S]=M.useState(i);let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h={},e[2]=h):h=e[2];const[m,g]=M.useState(h);f!==i&&(S(i),g({}));let v;e[3]!==m||e[4]!==o?(v=u=>m[u]!==void 0?m[u]:Ae(o,u),e[3]=m,e[4]=o,e[5]=v):v=e[5];const R=v;let x;e[6]!==s||e[7]!==r||e[8]!==o?(x=(u,T)=>{g(D=>({...D,[u]:T}));const E={...o};if(T)delete E[u];else{const D=r?.[u];E[u]=D??(u==="type"?"website":"")}s(E)},e[6]=s,e[7]=r,e[8]=o,e[9]=x):x=e[9];const j=x,P="min-w-0 space-y-6",b=B.map(u=>{const T=l[u];if(!T)return null;const E=p&&d.includes(u),D=E&&R(u),X=D?r?.[u]??o[u]:o[u],ee=T.title??Ne(u);return a.jsxs("div",{className:"space-y-2",children:[a.jsx("div",{className:ne(D&&"pointer-events-none opacity-60"),children:ce({schema:T,value:X,onChange:A=>{D||s({...o,[u]:A})},path:u,label:ee,breadcrumbPath:[],onBreadcrumbChange:we})}),E&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx($,{id:`seo-use-default-${u}`,checked:D,onCheckedChange:A=>j(u,A)}),a.jsx(Y,{htmlFor:`seo-use-default-${u}`,className:"text-xs font-normal text-muted-foreground",children:"Use default"})]})]},u)});let _;return e[10]!==i||e[11]!==b?(_=a.jsx("div",{className:P,children:b},i),e[10]=i,e[11]=b,e[12]=_):_=e[12],_}function we(){}function Ie(t){const e=L.c(18),{schema:n,resolveType:o,value:s,formResetKey:r,onChange:i,onBreadcrumbChange:c,siteDefaultSeo:l}=t;if(H(o)==="general"){let m;e[0]!==i?(m=v=>i(v),e[0]=i,e[1]=m):m=e[1];let g;return e[2]!==r||e[3]!==n||e[4]!==l||e[5]!==m||e[6]!==s?(g=a.jsx($e,{schema:n,value:s,onChange:m,siteDefaultSeo:l,formResetKey:r}),e[2]=r,e[3]=n,e[4]=l,e[5]=m,e[6]=s,e[7]=g):g=e[7],g}let y;e[8]!==o||e[9]!==n?(y=J(n,o),e[8]=o,e[9]=n,e[10]=y):y=e[10];const p=y;let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=[],e[11]=f):f=e[11];const S=c??Ye;let h;return e[12]!==p||e[13]!==r||e[14]!==i||e[15]!==S||e[16]!==s?(h=a.jsx(ae,{schema:p,value:s,onChange:i,basePath:"",breadcrumbPath:f,onBreadcrumbChange:S},r),e[12]=p,e[13]=r,e[14]=i,e[15]=S,e[16]=s,e[17]=h):h=e[17],h}function Ye(){}function Ve(t){const e=L.c(10),{options:n,value:o,onChange:s}=t;if(n.length<=1)return null;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Y,{className:"text-xs text-muted-foreground",children:"SEO type"}),e[0]=r):r=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(fe,{className:"w-full",children:a.jsx(pe,{placeholder:"Select SEO type"})}),e[1]=i):i=e[1];let c;e[2]!==n?(c=n.filter(Ue).map(Be),e[2]=n,e[3]=c):c=e[3];let l;e[4]!==c?(l=a.jsx(de,{children:c}),e[4]=c,e[5]=l):l=e[5];let d;return e[6]!==s||e[7]!==l||e[8]!==o?(d=a.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[r,a.jsxs(ye,{value:o,onValueChange:s,children:[i,l]})]}),e[6]=s,e[7]=l,e[8]=o,e[9]=d):d=e[9],d}function Be(t){return a.jsx(ue,{value:t.resolveType,children:t.title},t.resolveType)}function Ue(t){return t.resolveType.length>0}function Je(t){const e=L.c(33),{rawSeo:n,innerSeo:o,defaultResolveType:s,seoSchema:r,activeResolveType:i,seoTypeOptions:c,formResetKey:l,siteDefaultSeo:d,onBreadcrumbChange:y,onPersistRaw:p,onInnerChange:f,onClearForm:S,onBumpFormKey:h,beforeFields:m}=t;let g;e[0]!==s||e[1]!==h||e[2]!==S||e[3]!==p?(g=T=>{if(T){const E=me(s);p(E),S(),h();return}p(null),S(),h()},e[0]=s,e[1]=h,e[2]=S,e[3]=p,e[4]=g):g=e[4];const v=g;let R;e[5]!==p||e[6]!==n?(R=T=>{const E=Se(T,n);p(E)},e[5]=p,e[6]=n,e[7]=R):R=e[7];const x=R;let j;e[8]!==h||e[9]!==f?(j=T=>{f({__resolveType:T}),h()},e[8]=h,e[9]=f,e[10]=j):j=e[10];const P=j;let b;e[11]!==i||e[12]!==P||e[13]!==n||e[14]!==r||e[15]!==c?(b=k(n)&&r&&i&&c&&c.length>0&&a.jsx(Ve,{options:c,value:i,onChange:P}),e[11]=i,e[12]=P,e[13]=n,e[14]=r,e[15]=c,e[16]=b):b=e[16];let _;e[17]!==i||e[18]!==l||e[19]!==o||e[20]!==y||e[21]!==f||e[22]!==n||e[23]!==r||e[24]!==d?(_=k(n)&&r&&i&&a.jsx(Ie,{schema:r,resolveType:i,value:o,formResetKey:l,onChange:T=>f(T),onBreadcrumbChange:y,siteDefaultSeo:d}),e[17]=i,e[18]=l,e[19]=o,e[20]=y,e[21]=f,e[22]=n,e[23]=r,e[24]=d,e[25]=_):_=e[25];let u;return e[26]!==m||e[27]!==x||e[28]!==v||e[29]!==n||e[30]!==b||e[31]!==_?(u=a.jsxs(Oe,{rawSeo:n,onEnableChange:v,onAsyncRenderChange:x,children:[m,b,_]}),e[26]=m,e[27]=x,e[28]=v,e[29]=n,e[30]=b,e[31]=_,e[32]=u):u=e[32],u}export{Je as P,Ie as S,qe as a,Ce as b,He as c,Z as d,Ee as f,k as i,Ze as r,w as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as it,r as E,j as e,i as rt}from"./index-BwVMeD3q.js";import{S as mt,b as pt,c as st,d as at}from"./sheet-DaEm5-cm.js";import{S as nt}from"./scroll-area-BFIPKXPy.js";import{r as lt,c as ct,u as dt,a as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-Dw_-ajyz.js";import{p as xt}from"./index-CxFZHubh.js";import"./X-C23kraKx.js";import"./agent-icon-B_lvSp90.js";import"./AlertCircle-BY01IebW.js";import"./Tool01-Cbity1uu.js";import"./SwitchHorizontal01-C-d9B1Pc.js";import"./Settings02-Qog-9BW9.js";import"./XCircle-DAQ6sXs1.js";import"./ArrowUpRight-CrNpVXJQ.js";import"./ZapSquare-JpoS_XnR.js";import"./Users03-CzMI4hYk.js";import"./CheckCircle-UPyj94ce.js";import"./ChevronUp-Bj5wnP8v.js";import"./ChevronDown-DuS1gosF.js";import"./ChevronLeft-DNoBDBkQ.js";import"./ChevronRight-DUYBaJAA.js";import"./DotsVertical-BoWHOZg-.js";import"./Stars02--YU8wF8-.js";import"./Eye-BN8eZd3q.js";import"./ZoomOut-B5vLZpoX.js";import"./Globe01-CtRTi-q3.js";import"./FilterLines-BcDA53T2.js";import"./Star01-BNPre7m8.js";import"./Globe04-DcqSH090.js";import"./HardDrive-LcockCRx.js";import"./Key01-BcXniqTr.js";import"./LayoutLeft-DIu4qlvA.js";import"./LinkExternal01-Dyt9zIKA.js";import"./Monitor01-BY0WhsQY.js";import"./Sun-DF1tmwEc.js";import"./Palette-D0tFYq6o.js";import"./Play-Ds_dyiCJ.js";import"./Plus-CXJQYPWf.js";import"./SearchMd--1Uwo-4h.js";import"./Shield01-BjGAptDu.js";import"./Stars01-CUSSCI6Q.js";import"./Trash01-Csom-OmK.js";import"./Upload01-BKLWvYK3.js";import"./User01-rB66Yp8m.js";import"./Users01-CSjiAX-B.js";import"./XClose-CD3EJbwD.js";import"./Zap-BKA-au81.js";import"./use-clock-tick-BbDdy2cM.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-TPlwZ6aA.js";import"./tooltip-_TcC7QSJ.js";import"./file-type-icon-9Eew51_j.js";import"./dialog-Djo11OZ8.js";import"./use-mobile-7oYhfh2a.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-C9zbfwjF.js";import"./use-mcp-client-DjnQKDkF.js";import"./auth-CdNUf-u6.js";import"./chat-context-hue9xev7.js";import"./hooks-BFhhtb2P.js";import"./decopilot-sse-pool-Cn1O82-8.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-Bn261I3R.js";import"./use-collections-DDwKLwWC.js";import"./use-ai-providers-Mmhw_1Og.js";import"./studio-tools-Cj1fBaXp.js";import"./use-organization-settings-DeAexlNB.js";import"./shell-layout-BU2Eo26M.js";import"./avatar-CjYG3-98.js";import"./required-auth-layout-Bni9Lv8T.js";import"./use-org-sso-BRBxUiX-.js";import"./integration-icon-BYt__tsS.js";import"./use-navigate-to-agent-C1cPyWif.js";import"./use-connection-bj-QmeCF.js";import"./use-mcp-prompts-7fCwwbYc.js";import"./form-Bws9hvDL.js";import"./label-6fUzynqC.js";import"./input-C8pdmexi.js";import"./select-UKSqIIxL.js";import"./switch-BlhCItPG.js";import"./index-Bbr4phoV.js";import"./drawer-CGy7XhOb.js";import"./collection-search-BaiviTLW.js";import"./tabs-DLLYyT_4.js";import"./toggle-group-DLR6cnlJ.js";import"./sortable.esm-DWhmpOCs.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BvZozJYf.js";import"./use-registry-connections-B0D0ZFPH.js";import"./useInfiniteQuery-CbK39j5Y.js";import"./use-infinite-scroll-B0LwAHpI.js";import"./extract-connection-data-HZVgcUqH.js";import"./card-CZci2Ked.js";import"./collection-tabs-gJzAs0-U.js";import"./badge-yqmEwWNw.js";import"./textarea-LTBnL6Dv.js";import"./connection-form-helpers-BXpJ-39p.js";import"./authenticate-and-persist-oauth-B-HUI4Rh.js";import"./mcp-oauth-DOYfP2o1.js";import"./useSuspenseInfiniteQuery-HNqdvvLG.js";import"./connect-desktop-dialog-lLRzH9Wf.js";import"./decopilot-D6Us63Iz.js";import"./checkbox-CnyL8XHl.js";import"./skeleton-CjN5A6XL.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-uysJimh1.js";import"./popover-cxXkvARj.js";import"./command-BtIUrGW9.js";import"./index-CNHawUWP.js";import"./dropdown-menu-CuiF-07J.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CwxWlyu5.js";import"./empty-state-CFMrMwNK.js";import"./toolbar-BuAJdBWi.js";import"./preview-dialog-C1XBzik_.js";import"./index-Bfc1Ah6s.js";import"./use-mcp-tools-CbjkHt5p.js";import"./use-capability-CP1V4i_3.js";import"./shell-route-loading-k31lp-sb.js";import"./index-DgHQzdnZ.js";import"./alert-dialog-CsikfeuV.js";import"./use-debounced-autosave-D_Bc7lE0.js";import"./index-Cyi-U3f4.js";import"./sidebar-CDHrQeMJ.js";import"./search-input-DqD8geWF.js";import"./github-repo-picker-DgsWIyrn.js";import"./use-secrets-COBbdB1z.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-e9BSYjzY.js";import"./automation-runs-C-ImxLWq.js";import"./table-Bt_fbenL.js";import"./use-members-DPAHG5Sy.js";import"./use-org-auth-client-CywDmsAy.js";import"./task-status-DG_3CCeu.js";import"./use-automations-Cw5ubZKL.js";import"./use-file-configs-BumxkY1W.js";import"./monaco-editor-DGlh_VCI.js";import"./select-model-Duntt4sG.js";import"./automation-list-row-DqslLX8-.js";function oi(u){const t=it.c(46),{open:N,onOpenChange:P,orgSlug:Q,virtualMcpId:U,branch:W,decofile:G,meta:s,target:m,onSaved:X}=u,o=lt(G,m,s),k=m.kind==="site"?"site":m.pageKey,[Y,Z]=E.useState(k),[tt,i]=E.useState(null),[J,g]=E.useState(void 0),[x,y]=E.useState(0);Y!==k&&(Z(k),i(null),g(void 0),y(wt));const{persistSeo:a,persistRawSeo:I,flush:K,isPending:D}=ct({orgSlug:Q,virtualMcpId:U,branch:W,target:m,resolved:o,onSaved:X}),w=m.kind==="page",ot=w?o?.rawSeoData:void 0,v=J!==void 0?J:ot,et=w?dt(v)??void 0:void 0,h=tt??et??o?.seoData??{},p=o?St(h,o):null,n=p&&(!w||ft(v))?xt(p,s):null,_=m.kind==="page"?ut(G,s)?.seoData??void 0:void 0;let j;t[0]!==s?(j=vt(s),t[0]=s,t[1]=j):j=t[1];const M=j;let R;t[2]!==a||t[3]!==o||t[4]!==i?(R=r=>{if(!o)return;const L=r;i(L),a(L)},t[2]=a,t[3]=o,t[4]=i,t[5]=R):R=t[5];const V=R;let F;t[6]!==K||t[7]!==P?(F=r=>{r||K(),P(r)},t[6]=K,t[7]=P,t[8]=F):F=t[8];const z=F,A=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,B=m.kind==="site"&&o&&n,H=m.kind==="site"?"No site-level SEO block found.":o?"SEO schema not found for this page.":"Could not load page SEO.";let C;t[9]!==i?(C=()=>i(null),t[9]=i,t[10]=C):C=t[10];const $=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const q=O;let l;t[13]!==A?(l=e.jsx(mt,{className:"text-sm font-semibold",children:A}),t[13]=A,t[14]=l):l=t[14];let c;t[15]!==D?(c=D&&e.jsx(rt,{size:14,className:"animate-spin text-muted-foreground"}),t[15]=D,t[16]=c):c=t[16];let d;t[17]!==l||t[18]!==c?(d=e.jsxs(pt,{className:"px-4 py-3 border-b flex-row items-center justify-between space-y-0",children:[l,c]}),t[17]=l,t[18]=c,t[19]=d):d=t[19];let S;t[20]!==p||t[21]!==q||t[22]!==$||t[23]!==M||t[24]!==v||t[25]!==h||t[26]!==H||t[27]!==x||t[28]!==V||t[29]!==I||t[30]!==a||t[31]!==o||t[32]!==n||t[33]!==i||t[34]!==g||t[35]!==T||t[36]!==B||t[37]!==_?(S=!o||!T&&!B?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:H}):e.jsx(nt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"mx-auto max-w-sm",children:T?e.jsx(ht,{rawSeo:v,innerSeo:h,defaultResolveType:M,seoSchema:n,activeResolveType:p,seoTypeOptions:o.seoTypeOptions,formResetKey:x,siteDefaultSeo:_,onPersistRaw:r=>{g(r),I(r)},onInnerChange:r=>{i(r),a(r)},onClearForm:$,onBumpFormKey:q}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:V})})})}),t[20]=p,t[21]=q,t[22]=$,t[23]=M,t[24]=v,t[25]=h,t[26]=H,t[27]=x,t[28]=V,t[29]=I,t[30]=a,t[31]=o,t[32]=n,t[33]=i,t[34]=g,t[35]=T,t[36]=B,t[37]=_,t[38]=S):S=t[38];let f;t[39]!==d||t[40]!==S?(f=e.jsxs(st,{side:"right",className:"w-[400px] sm:max-w-[440px] p-0 gap-0",children:[d,S]}),t[39]=d,t[40]=S,t[41]=f):f=t[41];let b;return t[42]!==z||t[43]!==N||t[44]!==f?(b=e.jsx(at,{open:N,onOpenChange:z,children:f}),t[42]=z,t[43]=N,t[44]=f,t[45]=b):b=t[45],b}function yt(u){return u+1}function wt(u){return u+1}export{oi as SeoSheet};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,a3 as $,j as c,a4 as z,ak as L,_ as O,V as _,W as g,U as j,Z as w,a2 as G,X as E,dz as H,dA as K,Y as U,dB as V,dC as W,dD as Z,$ as B,a0 as X,a1 as Y,c as R,l as q}from"./index-
|
|
1
|
+
import{r as i,a3 as $,j as c,a4 as z,ak as L,_ as O,V as _,W as g,U as j,Z as w,a2 as G,X as E,dz as H,dA as K,Y as U,dB as V,dC as W,dD as Z,$ as B,a0 as X,a1 as Y,c as R,l as q}from"./index-BwVMeD3q.js";var C="Popover",[b]=U(C,[E]),P=E(),[J,u]=b(C),N=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,p=P(e),l=i.useRef(null),[d,h]=i.useState(!1),[x,f]=$({prop:r,defaultProp:n??!1,onChange:s,caller:C});return c.jsx(z,{...p,children:c.jsx(J,{scope:e,contentId:L(),triggerRef:l,open:x,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:d,onCustomAnchorAdd:i.useCallback(()=>h(!0),[]),onCustomAnchorRemove:i.useCallback(()=>h(!1),[]),modal:a,children:o})})};N.displayName=C;var F="PopoverAnchor",Q=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(F,o),s=P(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:p}=n;return i.useEffect(()=>(a(),()=>p()),[a,p]),c.jsx(j,{...s,...r,ref:e})});Q.displayName=F;var S="PopoverTrigger",y=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(S,o),s=P(o),a=O(e,n.triggerRef),p=c.jsx(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":I(n.open),...r,ref:a,onClick:g(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?p:c.jsx(j,{asChild:!0,...s,children:p})});y.displayName=S;var A="PopoverPortal",[ee,oe]=b(A,{forceMount:void 0}),D=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=u(A,e);return c.jsx(ee,{scope:e,forceMount:o,children:c.jsx(w,{present:o||s.open,children:c.jsx(G,{asChild:!0,container:n,children:r})})})};D.displayName=A;var v="PopoverContent",M=i.forwardRef((t,e)=>{const o=oe(v,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=u(v,t.__scopePopover);return c.jsx(w,{present:r||s.open,children:s.modal?c.jsx(re,{...n,ref:e}):c.jsx(ne,{...n,ref:e})})});M.displayName=v;var te=V("PopoverContent.RemoveScroll"),re=i.forwardRef((t,e)=>{const o=u(v,t.__scopePopover),r=i.useRef(null),n=O(e,r),s=i.useRef(!1);return i.useEffect(()=>{const a=r.current;if(a)return H(a)},[]),c.jsx(K,{as:te,allowPinchZoom:!0,children:c.jsx(k,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:g(t.onPointerDownOutside,a=>{const p=a.detail.originalEvent,l=p.button===0&&p.ctrlKey===!0,d=p.button===2||l;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:g(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),ne=i.forwardRef((t,e)=>{const o=u(v,t.__scopePopover),r=i.useRef(!1),n=i.useRef(!1);return c.jsx(k,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),k=i.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:h,...x}=t,f=u(v,o),m=P(o);return W(),c.jsx(Z,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(B,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(X,{"data-state":I(f.open),role:"dialog",id:f.contentId,...m,...x,ref:e,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),T="PopoverClose",se=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(T,o);return c.jsx(_.button,{type:"button",...r,ref:e,onClick:g(t.onClick,()=>n.onOpenChange(!1))})});se.displayName=T;var ae="PopoverArrow",ce=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(o);return c.jsx(Y,{...n,...r,ref:e})});ce.displayName=ae;function I(t){return t?"open":"closed"}var ie=N,pe=y,le=D,de=M;function fe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(ie,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function ve(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function ge(t){const e=R.c(12);let o,r,n,s;e[0]!==t?({className:o,align:n,sideOffset:s,...r}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s):(o=e[1],r=e[2],n=e[3],s=e[4]);const a=n===void 0?"center":n,p=s===void 0?4:s;let l;e[5]!==o?(l=q("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg overflow-hidden border p-4 shadow-md outline-hidden",o),e[5]=o,e[6]=l):l=e[6];let d;return e[7]!==a||e[8]!==r||e[9]!==p||e[10]!==l?(d=c.jsx(le,{children:c.jsx(de,{"data-slot":"popover-content",align:a,sideOffset:p,className:l,...r})}),e[7]=a,e[8]=r,e[9]=p,e[10]=l,e[11]=d):d=e[11],d}export{fe as P,ve as a,ge as b};
|
|
@@ -1 +1 @@
|
|
|
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
|
+
import{c as G,j as t,B as Z}from"./index-BwVMeD3q.js";import{n as ee}from"./LinkExternal01-Dyt9zIKA.js";import{ay as te,Y as oe}from"./agent-icon-B_lvSp90.js";import{I as H}from"./input-C8pdmexi.js";import{L as q}from"./label-6fUzynqC.js";import{M as ie}from"./automation-runs-C-ImxLWq.js";import{T as J,a as se,b as Q,c as le}from"./tabs-DLLYyT_4.js";import{T as re}from"./textarea-LTBnL6Dv.js";import{as as ae,at as me,au as pe,av as ne,aw as ce,ax as de}from"./index-CxFZHubh.js";import{b as fe,a as ue,B as xe}from"./block-document-Ddmw8MXB.js";import{u as he,s as F,E as ge,R as ve,A as ye}from"./primitives-C8RGsHih.js";import{S as je}from"./save-status-Ap0tRvUu.js";import"./AlertCircle-BY01IebW.js";import"./Tool01-Cbity1uu.js";import"./SwitchHorizontal01-C-d9B1Pc.js";import"./Settings02-Qog-9BW9.js";import"./XCircle-DAQ6sXs1.js";import"./ArrowUpRight-CrNpVXJQ.js";import"./ZapSquare-JpoS_XnR.js";import"./Users03-CzMI4hYk.js";import"./CheckCircle-UPyj94ce.js";import"./ChevronUp-Bj5wnP8v.js";import"./ChevronDown-DuS1gosF.js";import"./ChevronLeft-DNoBDBkQ.js";import"./ChevronRight-DUYBaJAA.js";import"./DotsVertical-BoWHOZg-.js";import"./Stars02--YU8wF8-.js";import"./Eye-BN8eZd3q.js";import"./ZoomOut-B5vLZpoX.js";import"./Globe01-CtRTi-q3.js";import"./FilterLines-BcDA53T2.js";import"./Star01-BNPre7m8.js";import"./Globe04-DcqSH090.js";import"./HardDrive-LcockCRx.js";import"./Key01-BcXniqTr.js";import"./LayoutLeft-DIu4qlvA.js";import"./Monitor01-BY0WhsQY.js";import"./Sun-DF1tmwEc.js";import"./Palette-D0tFYq6o.js";import"./Play-Ds_dyiCJ.js";import"./Plus-CXJQYPWf.js";import"./SearchMd--1Uwo-4h.js";import"./Shield01-BjGAptDu.js";import"./Stars01-CUSSCI6Q.js";import"./Trash01-Csom-OmK.js";import"./Upload01-BKLWvYK3.js";import"./User01-rB66Yp8m.js";import"./Users01-CSjiAX-B.js";import"./XClose-CD3EJbwD.js";import"./X-C23kraKx.js";import"./Zap-BKA-au81.js";import"./useInfiniteQuery-CbK39j5Y.js";import"./use-infinite-scroll-B0LwAHpI.js";import"./use-connection-bj-QmeCF.js";import"./use-collections-DDwKLwWC.js";import"./use-mcp-client-DjnQKDkF.js";import"./auth-CdNUf-u6.js";import"./use-virtual-mcp-Bn261I3R.js";import"./card-CZci2Ked.js";import"./sheet-DaEm5-cm.js";import"./table-Bt_fbenL.js";import"./empty-state-CFMrMwNK.js";import"./use-members-DPAHG5Sy.js";import"./use-org-auth-client-CywDmsAy.js";import"./task-status-DG_3CCeu.js";import"./use-automations-Cw5ubZKL.js";import"./studio-tools-Cj1fBaXp.js";import"./useSuspenseInfiniteQuery-HNqdvvLG.js";import"./badge-yqmEwWNw.js";import"./select-UKSqIIxL.js";import"./tooltip-_TcC7QSJ.js";import"./checkbox-CnyL8XHl.js";import"./command-BtIUrGW9.js";import"./index-CNHawUWP.js";import"./dialog-Djo11OZ8.js";import"./popover-cxXkvARj.js";import"./avatar-CjYG3-98.js";import"./scroll-area-BFIPKXPy.js";import"./use-clock-tick-BbDdy2cM.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-TPlwZ6aA.js";import"./file-type-icon-9Eew51_j.js";import"./use-mobile-7oYhfh2a.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-C9zbfwjF.js";import"./chat-context-hue9xev7.js";import"./hooks-BFhhtb2P.js";import"./decopilot-sse-pool-Cn1O82-8.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-Mmhw_1Og.js";import"./use-organization-settings-DeAexlNB.js";import"./shell-layout-BU2Eo26M.js";import"./required-auth-layout-Bni9Lv8T.js";import"./use-org-sso-BRBxUiX-.js";import"./integration-icon-BYt__tsS.js";import"./use-navigate-to-agent-C1cPyWif.js";import"./use-mcp-prompts-7fCwwbYc.js";import"./form-Bws9hvDL.js";import"./index-Bbr4phoV.js";import"./drawer-CGy7XhOb.js";import"./collection-search-BaiviTLW.js";import"./toggle-group-DLR6cnlJ.js";import"./sortable.esm-DWhmpOCs.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BvZozJYf.js";import"./use-registry-connections-B0D0ZFPH.js";import"./extract-connection-data-HZVgcUqH.js";import"./collection-tabs-gJzAs0-U.js";import"./connection-form-helpers-BXpJ-39p.js";import"./authenticate-and-persist-oauth-B-HUI4Rh.js";import"./mcp-oauth-DOYfP2o1.js";import"./connect-desktop-dialog-lLRzH9Wf.js";import"./decopilot-D6Us63Iz.js";import"./skeleton-CjN5A6XL.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-uysJimh1.js";import"./dropdown-menu-CuiF-07J.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CwxWlyu5.js";import"./toolbar-BuAJdBWi.js";import"./preview-dialog-C1XBzik_.js";import"./index-Bfc1Ah6s.js";import"./use-mcp-tools-CbjkHt5p.js";import"./use-capability-CP1V4i_3.js";import"./shell-route-loading-k31lp-sb.js";import"./index-DgHQzdnZ.js";import"./alert-dialog-CsikfeuV.js";import"./switch-BlhCItPG.js";import"./use-debounced-autosave-D_Bc7lE0.js";import"./index-Cyi-U3f4.js";import"./sidebar-CDHrQeMJ.js";import"./search-input-DqD8geWF.js";import"./github-repo-picker-DgsWIyrn.js";import"./use-secrets-COBbdB1z.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-e9BSYjzY.js";import"./use-file-configs-BumxkY1W.js";import"./monaco-editor-DGlh_VCI.js";import"./select-model-Duntt4sG.js";import"./automation-list-row-DqslLX8-.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-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(`
|
|
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-BwVMeD3q.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-B5vLZpoX.js";import{c as Sn,d as Ze,b as kt,a as Pt}from"./dialog-Djo11OZ8.js";import{T as ue,a as de,b as fe}from"./tooltip-_TcC7QSJ.js";import{n as Fe,i as Ct}from"./Globe01-CtRTi-q3.js";import{n as Et}from"./LinkExternal01-Dyt9zIKA.js";import{s as zn}from"./XClose-CD3EJbwD.js";import{S as _e}from"./skeleton-CjN5A6XL.js";import{l as jn,F as kn}from"./index-Bfc1Ah6s.js";import{F as et,M as Pn}from"./file-type-icon-9Eew51_j.js";import{D as Cn,a as En,b as $n,c as dt}from"./dropdown-menu-CuiF-07J.js";import{i as Nn}from"./LayoutLeft-DIu4qlvA.js";import{I as In}from"./input-C8pdmexi.js";import{a as Mn,P as Rn,b as Dn}from"./popover-cxXkvARj.js";import{i as Ln}from"./ChevronUp-Bj5wnP8v.js";import{a as _n}from"./Eye-BN8eZd3q.js";import{i as An}from"./Key01-BcXniqTr.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-BwVMeD3q.js";import{a0 as A}from"./agent-icon-B_lvSp90.js";import{s as N}from"./Plus-CXJQYPWf.js";import{s as _}from"./Trash01-Csom-OmK.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-BwVMeD3q.js";import{P as L}from"./index-Cyi-U3f4.js";import{A as U}from"./avatar-CjYG3-98.js";import{S as I}from"./switch-BlhCItPG.js";import{d as G,b as Y,a as $,S as J}from"./select-UKSqIIxL.js";import{T as K,a as z}from"./toggle-group-DLR6cnlJ.js";import{I as O}from"./input-C8pdmexi.js";import{i as H}from"./Monitor01-BY0WhsQY.js";import{n as M,a as Q}from"./Sun-DF1tmwEc.js";import{i as W}from"./Play-Ds_dyiCJ.js";import{u as X}from"./use-debounced-autosave-D_Bc7lE0.js";import{p as Z,q as ee}from"./question-004-sINsf4GQ.js";import"./index-D6bagO5K.js";import{c as te,b as A,S as E,a as F}from"./settings-section-uysJimh1.js";import"./sidebar-CDHrQeMJ.js";import"./LayoutLeft-DIu4qlvA.js";import"./use-mobile-7oYhfh2a.js";import"./sheet-DaEm5-cm.js";import"./X-C23kraKx.js";import"./tooltip-_TcC7QSJ.js";import"./User01-rB66Yp8m.js";import"./ChevronUp-Bj5wnP8v.js";import"./ChevronDown-DuS1gosF.js";import"./card-CZci2Ked.js";import"./ArrowUpRight-CrNpVXJQ.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-BwVMeD3q.js";import{l as L,g as E,s as y}from"./scroll-area-BFIPKXPy.js";import{p as O,u as k}from"./use-mcp-client-DjnQKDkF.js";import{b as q,c as B}from"./use-mcp-tools-CbjkHt5p.js";import{u as Y}from"./index-CxFZHubh.js";import{c as G}from"./content-blocks-o63cs2vh.js";import{g as K,M as V,a as w}from"./types-C9zbfwjF.js";import{u as z,b as F}from"./chat-context-hue9xev7.js";import{b as J}from"./shell-layout-BU2Eo26M.js";import"./agent-icon-B_lvSp90.js";import"./AlertCircle-BY01IebW.js";import"./Tool01-Cbity1uu.js";import"./SwitchHorizontal01-C-d9B1Pc.js";import"./Settings02-Qog-9BW9.js";import"./XCircle-DAQ6sXs1.js";import"./ArrowUpRight-CrNpVXJQ.js";import"./ZapSquare-JpoS_XnR.js";import"./Users03-CzMI4hYk.js";import"./CheckCircle-UPyj94ce.js";import"./ChevronUp-Bj5wnP8v.js";import"./ChevronDown-DuS1gosF.js";import"./ChevronLeft-DNoBDBkQ.js";import"./ChevronRight-DUYBaJAA.js";import"./DotsVertical-BoWHOZg-.js";import"./Stars02--YU8wF8-.js";import"./Eye-BN8eZd3q.js";import"./ZoomOut-B5vLZpoX.js";import"./Globe01-CtRTi-q3.js";import"./FilterLines-BcDA53T2.js";import"./Star01-BNPre7m8.js";import"./Globe04-DcqSH090.js";import"./HardDrive-LcockCRx.js";import"./Key01-BcXniqTr.js";import"./LayoutLeft-DIu4qlvA.js";import"./LinkExternal01-Dyt9zIKA.js";import"./Monitor01-BY0WhsQY.js";import"./Sun-DF1tmwEc.js";import"./Palette-D0tFYq6o.js";import"./Play-Ds_dyiCJ.js";import"./Plus-CXJQYPWf.js";import"./SearchMd--1Uwo-4h.js";import"./Shield01-BjGAptDu.js";import"./Stars01-CUSSCI6Q.js";import"./Trash01-Csom-OmK.js";import"./Upload01-BKLWvYK3.js";import"./User01-rB66Yp8m.js";import"./Users01-CSjiAX-B.js";import"./XClose-CD3EJbwD.js";import"./X-C23kraKx.js";import"./Zap-BKA-au81.js";import"./use-clock-tick-BbDdy2cM.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-TPlwZ6aA.js";import"./tooltip-_TcC7QSJ.js";import"./file-type-icon-9Eew51_j.js";import"./dialog-Djo11OZ8.js";import"./use-mobile-7oYhfh2a.js";import"./tab-id-BptcWVWa.js";import"./hooks-BFhhtb2P.js";import"./decopilot-sse-pool-Cn1O82-8.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-Cj1fBaXp.js";import"./sheet-DaEm5-cm.js";import"./integration-icon-BYt__tsS.js";import"./use-virtual-mcp-Bn261I3R.js";import"./use-collections-DDwKLwWC.js";import"./use-navigate-to-agent-C1cPyWif.js";import"./use-connection-bj-QmeCF.js";import"./use-mcp-prompts-7fCwwbYc.js";import"./form-Bws9hvDL.js";import"./label-6fUzynqC.js";import"./input-C8pdmexi.js";import"./select-UKSqIIxL.js";import"./auth-CdNUf-u6.js";import"./index-Bbr4phoV.js";import"./drawer-CGy7XhOb.js";import"./collection-search-BaiviTLW.js";import"./tabs-DLLYyT_4.js";import"./toggle-group-DLR6cnlJ.js";import"./sortable.esm-DWhmpOCs.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BvZozJYf.js";import"./use-registry-connections-B0D0ZFPH.js";import"./use-organization-settings-DeAexlNB.js";import"./useInfiniteQuery-CbK39j5Y.js";import"./use-infinite-scroll-B0LwAHpI.js";import"./extract-connection-data-HZVgcUqH.js";import"./card-CZci2Ked.js";import"./collection-tabs-gJzAs0-U.js";import"./badge-yqmEwWNw.js";import"./textarea-LTBnL6Dv.js";import"./connection-form-helpers-BXpJ-39p.js";import"./authenticate-and-persist-oauth-B-HUI4Rh.js";import"./mcp-oauth-DOYfP2o1.js";import"./useSuspenseInfiniteQuery-HNqdvvLG.js";import"./use-ai-providers-Mmhw_1Og.js";import"./connect-desktop-dialog-lLRzH9Wf.js";import"./decopilot-D6Us63Iz.js";import"./checkbox-CnyL8XHl.js";import"./skeleton-CjN5A6XL.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-CjYG3-98.js";import"./settings-section-uysJimh1.js";import"./popover-cxXkvARj.js";import"./command-BtIUrGW9.js";import"./index-CNHawUWP.js";import"./dropdown-menu-CuiF-07J.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CwxWlyu5.js";import"./empty-state-CFMrMwNK.js";import"./toolbar-BuAJdBWi.js";import"./preview-dialog-C1XBzik_.js";import"./index-Bfc1Ah6s.js";import"./use-capability-CP1V4i_3.js";import"./shell-route-loading-k31lp-sb.js";import"./index-DgHQzdnZ.js";import"./alert-dialog-CsikfeuV.js";import"./switch-BlhCItPG.js";import"./use-debounced-autosave-D_Bc7lE0.js";import"./index-Cyi-U3f4.js";import"./sidebar-CDHrQeMJ.js";import"./search-input-DqD8geWF.js";import"./github-repo-picker-DgsWIyrn.js";import"./use-secrets-COBbdB1z.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-e9BSYjzY.js";import"./automation-runs-C-ImxLWq.js";import"./table-Bt_fbenL.js";import"./use-members-DPAHG5Sy.js";import"./use-org-auth-client-CywDmsAy.js";import"./task-status-DG_3CCeu.js";import"./use-automations-Cw5ubZKL.js";import"./use-file-configs-BumxkY1W.js";import"./monaco-editor-DGlh_VCI.js";import"./select-model-Duntt4sG.js";import"./automation-list-row-DqslLX8-.js";import"./required-auth-layout-Bni9Lv8T.js";import"./use-org-sso-BRBxUiX-.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-BwVMeD3q.js";import{I as T}from"./input-C8pdmexi.js";import{L as C}from"./label-6fUzynqC.js";import{T as L}from"./textarea-LTBnL6Dv.js";import{as as A,at as R,au as D,av as J}from"./index-CxFZHubh.js";import{u as K,s as P}from"./primitives-C8RGsHih.js";import{S as M}from"./save-status-Ap0tRvUu.js";import"./index-Bbr4phoV.js";import"./chat-context-hue9xev7.js";import"./hooks-BFhhtb2P.js";import"./use-mcp-client-DjnQKDkF.js";import"./auth-CdNUf-u6.js";import"./decopilot-sse-pool-Cn1O82-8.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-Bn261I3R.js";import"./use-collections-DDwKLwWC.js";import"./use-ai-providers-Mmhw_1Og.js";import"./studio-tools-Cj1fBaXp.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-DeAexlNB.js";import"./scroll-area-BFIPKXPy.js";import"./agent-icon-B_lvSp90.js";import"./AlertCircle-BY01IebW.js";import"./Tool01-Cbity1uu.js";import"./SwitchHorizontal01-C-d9B1Pc.js";import"./Settings02-Qog-9BW9.js";import"./XCircle-DAQ6sXs1.js";import"./ArrowUpRight-CrNpVXJQ.js";import"./ZapSquare-JpoS_XnR.js";import"./Users03-CzMI4hYk.js";import"./CheckCircle-UPyj94ce.js";import"./ChevronUp-Bj5wnP8v.js";import"./ChevronDown-DuS1gosF.js";import"./ChevronLeft-DNoBDBkQ.js";import"./ChevronRight-DUYBaJAA.js";import"./DotsVertical-BoWHOZg-.js";import"./Stars02--YU8wF8-.js";import"./Eye-BN8eZd3q.js";import"./ZoomOut-B5vLZpoX.js";import"./Globe01-CtRTi-q3.js";import"./FilterLines-BcDA53T2.js";import"./Star01-BNPre7m8.js";import"./Globe04-DcqSH090.js";import"./HardDrive-LcockCRx.js";import"./Key01-BcXniqTr.js";import"./LayoutLeft-DIu4qlvA.js";import"./LinkExternal01-Dyt9zIKA.js";import"./Monitor01-BY0WhsQY.js";import"./Sun-DF1tmwEc.js";import"./Palette-D0tFYq6o.js";import"./Play-Ds_dyiCJ.js";import"./Plus-CXJQYPWf.js";import"./SearchMd--1Uwo-4h.js";import"./Shield01-BjGAptDu.js";import"./Stars01-CUSSCI6Q.js";import"./Trash01-Csom-OmK.js";import"./Upload01-BKLWvYK3.js";import"./User01-rB66Yp8m.js";import"./Users01-CSjiAX-B.js";import"./XClose-CD3EJbwD.js";import"./X-C23kraKx.js";import"./Zap-BKA-au81.js";import"./use-clock-tick-BbDdy2cM.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-TPlwZ6aA.js";import"./tooltip-_TcC7QSJ.js";import"./file-type-icon-9Eew51_j.js";import"./dialog-Djo11OZ8.js";import"./use-mobile-7oYhfh2a.js";import"./content-blocks-o63cs2vh.js";import"./types-C9zbfwjF.js";import"./shell-layout-BU2Eo26M.js";import"./avatar-CjYG3-98.js";import"./required-auth-layout-Bni9Lv8T.js";import"./use-org-sso-BRBxUiX-.js";import"./sheet-DaEm5-cm.js";import"./integration-icon-BYt__tsS.js";import"./use-navigate-to-agent-C1cPyWif.js";import"./use-connection-bj-QmeCF.js";import"./use-mcp-prompts-7fCwwbYc.js";import"./form-Bws9hvDL.js";import"./select-UKSqIIxL.js";import"./drawer-CGy7XhOb.js";import"./collection-search-BaiviTLW.js";import"./tabs-DLLYyT_4.js";import"./toggle-group-DLR6cnlJ.js";import"./sortable.esm-DWhmpOCs.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BvZozJYf.js";import"./use-registry-connections-B0D0ZFPH.js";import"./useInfiniteQuery-CbK39j5Y.js";import"./use-infinite-scroll-B0LwAHpI.js";import"./extract-connection-data-HZVgcUqH.js";import"./card-CZci2Ked.js";import"./collection-tabs-gJzAs0-U.js";import"./badge-yqmEwWNw.js";import"./connection-form-helpers-BXpJ-39p.js";import"./authenticate-and-persist-oauth-B-HUI4Rh.js";import"./mcp-oauth-DOYfP2o1.js";import"./useSuspenseInfiniteQuery-HNqdvvLG.js";import"./connect-desktop-dialog-lLRzH9Wf.js";import"./decopilot-D6Us63Iz.js";import"./checkbox-CnyL8XHl.js";import"./skeleton-CjN5A6XL.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-uysJimh1.js";import"./popover-cxXkvARj.js";import"./command-BtIUrGW9.js";import"./index-CNHawUWP.js";import"./dropdown-menu-CuiF-07J.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CwxWlyu5.js";import"./empty-state-CFMrMwNK.js";import"./toolbar-BuAJdBWi.js";import"./preview-dialog-C1XBzik_.js";import"./index-Bfc1Ah6s.js";import"./use-mcp-tools-CbjkHt5p.js";import"./use-capability-CP1V4i_3.js";import"./shell-route-loading-k31lp-sb.js";import"./index-DgHQzdnZ.js";import"./alert-dialog-CsikfeuV.js";import"./switch-BlhCItPG.js";import"./use-debounced-autosave-D_Bc7lE0.js";import"./index-Cyi-U3f4.js";import"./sidebar-CDHrQeMJ.js";import"./search-input-DqD8geWF.js";import"./github-repo-picker-DgsWIyrn.js";import"./use-secrets-COBbdB1z.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-e9BSYjzY.js";import"./automation-runs-C-ImxLWq.js";import"./table-Bt_fbenL.js";import"./use-members-DPAHG5Sy.js";import"./use-org-auth-client-CywDmsAy.js";import"./task-status-DG_3CCeu.js";import"./use-automations-Cw5ubZKL.js";import"./use-file-configs-BumxkY1W.js";import"./monaco-editor-DGlh_VCI.js";import"./select-model-Duntt4sG.js";import"./automation-list-row-DqslLX8-.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-JxXagtmN.js","assets/index-BwVMeD3q.js","assets/index-NVhaWgyE.css","assets/XCircle-DAQ6sXs1.js","assets/CheckCircle-UPyj94ce.js","assets/Settings02-Qog-9BW9.js","assets/use-mcp-client-DjnQKDkF.js","assets/auth-CdNUf-u6.js","assets/useInfiniteQuery-CbK39j5Y.js","assets/use-infinite-scroll-B0LwAHpI.js","assets/studio-tools-Cj1fBaXp.js","assets/badge-yqmEwWNw.js","assets/input-C8pdmexi.js","assets/dropdown-menu-CuiF-07J.js","assets/ChevronUp-Bj5wnP8v.js","assets/ChevronRight-DUYBaJAA.js","assets/DotsVertical-BoWHOZg-.js","assets/table-Bt_fbenL.js","assets/toggle-group-DLR6cnlJ.js","assets/use-view-mode-DY00qIDT.js","assets/use-mobile-7oYhfh2a.js","assets/FilterLines-BcDA53T2.js","assets/Globe01-CtRTi-q3.js","assets/SearchMd--1Uwo-4h.js","assets/dialog-Djo11OZ8.js","assets/X-C23kraKx.js","assets/AlertCircle-BY01IebW.js","assets/Upload01-BKLWvYK3.js","assets/alert-dialog-CsikfeuV.js","assets/card-CZci2Ked.js","assets/Trash01-Csom-OmK.js","assets/label-6fUzynqC.js","assets/select-UKSqIIxL.js","assets/tooltip-_TcC7QSJ.js","assets/ChevronDown-DuS1gosF.js","assets/switch-BlhCItPG.js","assets/textarea-LTBnL6Dv.js","assets/checkbox-CnyL8XHl.js","assets/Eye-BN8eZd3q.js","assets/LinkExternal01-Dyt9zIKA.js","assets/use-copy-TPlwZ6aA.js","assets/Key01-BcXniqTr.js","assets/Plus-CXJQYPWf.js","assets/mcp-oauth-DOYfP2o1.js","assets/Play-Ds_dyiCJ.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-BwVMeD3q.js";import{R as m}from"./require-capability-D8wtdjJA.js";import"./use-capability-CP1V4i_3.js";import"./access-gate-hq7UmdZv.js";import"./capability-load-error-CFrsagBh.js";const n=i.lazy(()=>o(()=>import("./registry-layout-JxXagtmN.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};
|