decocms 2.443.0 → 2.443.2
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-C0w7vkhj.js → AlertCircle-DnC_4-aH.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-DNyQYu-V.js → ArrowUpRight-BbHnOLMA.js} +1 -1
- package/dist/client/assets/{Check-8AgR6ZjG.js → Check-J16uJKEA.js} +1 -1
- package/dist/client/assets/{CheckCircle-CEi1N2Mq.js → CheckCircle-Bn1opDbW.js} +1 -1
- package/dist/client/assets/{ChevronDown-DhOfQXzQ.js → ChevronDown-BMQmid7F.js} +1 -1
- package/dist/client/assets/{ChevronRight-DQs4tkMm.js → ChevronRight-DGEJKjKF.js} +1 -1
- package/dist/client/assets/{ChevronUp-BJ7RKHi2.js → ChevronUp-DsZ27x1e.js} +1 -1
- package/dist/client/assets/{Container-nZYBPJRv.js → Container-BEXJVDeX.js} +1 -1
- package/dist/client/assets/{DotsVertical-C00j11Qg.js → DotsVertical-DIU7iQOr.js} +1 -1
- package/dist/client/assets/{Eye-B7Xkt1CB.js → Eye-DGTaoPip.js} +1 -1
- package/dist/client/assets/{FilterLines-FHjfh1pF.js → FilterLines-ihO-BOSo.js} +1 -1
- package/dist/client/assets/{Globe01-Uo6KHfk2.js → Globe01-EL-63tMj.js} +1 -1
- package/dist/client/assets/{HardDrive-CGMuM2Oy.js → HardDrive-DH3YXoR5.js} +1 -1
- package/dist/client/assets/{Key01-BIkGax_i.js → Key01-Uu38RiTq.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DycVPnNy.js → LinkExternal01-DUyPujY1.js} +1 -1
- package/dist/client/assets/{Monitor01-D1U6Pa3W.js → Monitor01-CSp7kTBc.js} +1 -1
- package/dist/client/assets/{Palette-Toq4eQ-J.js → Palette-Dm2B2aWH.js} +1 -1
- package/dist/client/assets/{Play-CA-oDPY7.js → Play-_v67HnUl.js} +1 -1
- package/dist/client/assets/{Plus-DgS5eNSe.js → Plus-2dxUo5Gk.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-DVTjMN9w.js → RefreshCcw01-wYUm6j8U.js} +1 -1
- package/dist/client/assets/{SearchMd-WbJoDaWs.js → SearchMd-BEAj_Tol.js} +1 -1
- package/dist/client/assets/{Settings02-rrw51k4M.js → Settings02--quM5obQ.js} +1 -1
- package/dist/client/assets/{Shield01-5itVZGiR.js → Shield01-BmW8AbQ-.js} +1 -1
- package/dist/client/assets/{Star01-CeDy0qEH.js → Star01-cWWe-fM3.js} +1 -1
- package/dist/client/assets/{Stars01-DYDsxZnS.js → Stars01-ByMVzm20.js} +1 -1
- package/dist/client/assets/{Stars02-ButLG8tI.js → Stars02-B3NUztPs.js} +1 -1
- package/dist/client/assets/{Sun-DB_K22EW.js → Sun-2edPErlj.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-5B3DSr8e.js → SwitchHorizontal01-ChMk-c2p.js} +1 -1
- package/dist/client/assets/{Tool01-BcHwzAg_.js → Tool01-BVHZgMyD.js} +1 -1
- package/dist/client/assets/{Trash01-C9vkf5T6.js → Trash01--dscDyOn.js} +1 -1
- package/dist/client/assets/{Upload01-BXTkAAEz.js → Upload01-DHbZQDwg.js} +1 -1
- package/dist/client/assets/{User01-C3qNbl-c.js → User01-BKSpWmao.js} +1 -1
- package/dist/client/assets/{Users01-C95xm0Ia.js → Users01-BZWtF34f.js} +1 -1
- package/dist/client/assets/{Users03-Cgth-3GS.js → Users03-BYDlCvnW.js} +1 -1
- package/dist/client/assets/{X-FDfBE4i9.js → X-CM6QpVzE.js} +1 -1
- package/dist/client/assets/{XCircle-8FTuCNvR.js → XCircle-qIbNI5i3.js} +1 -1
- package/dist/client/assets/{XClose-BfJTW_HK.js → XClose-ItMIqiRG.js} +1 -1
- package/dist/client/assets/{Zap-DK6MOOIv.js → Zap-JtT0wYK8.js} +1 -1
- package/dist/client/assets/{ZapSquare-wTPdLQod.js → ZapSquare-CRhWmOBI.js} +1 -1
- package/dist/client/assets/{ZoomOut-NkImUVHk.js → ZoomOut-94598aZa.js} +1 -1
- package/dist/client/assets/{access-gate-DwKbtSzY.js → access-gate-CkaXtmJV.js} +1 -1
- package/dist/client/assets/accordion-pXaJWDz6.js +1 -0
- package/dist/client/assets/{add-section-modal-D23n3egw.js → add-section-modal-DW0JgTS8.js} +1 -1
- package/dist/client/assets/{agent-capabilities-CpWXCeRz.js → agent-capabilities-OXDugmFh.js} +1 -1
- package/dist/client/assets/{agent-icon-ExlCX9f5.js → agent-icon-7qAr93xD.js} +1 -1
- package/dist/client/assets/{agent-icons-DAJPmC7Z.js → agent-icons-BEQWubEs.js} +1 -1
- package/dist/client/assets/{agents-list-DdCb3QPP.js → agents-list-uKZd9xX7.js} +1 -1
- package/dist/client/assets/{ai-providers-D52L7y0S.js → ai-providers-buSq74n7.js} +1 -1
- package/dist/client/assets/{alert-saVtzR2u.js → alert-CR95B63F.js} +1 -1
- package/dist/client/assets/{alert-dialog-rlUwGNsJ.js → alert-dialog-BbnUiGi3.js} +1 -1
- package/dist/client/assets/app-editor-BtpJAeSV.js +1 -0
- package/dist/client/assets/{auth-catchall-DtCKOmFI.js → auth-catchall-IiQD1HFz.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DaXnlxNx.js → auth-split-layout-DEuV3P90.js} +1 -1
- package/dist/client/assets/{automation-list-row-BYivUbaE.js → automation-list-row-znfqm5Rn.js} +1 -1
- package/dist/client/assets/{automation-runs-B9Hv9eE-.js → automation-runs-DdnGvg90.js} +1 -1
- package/dist/client/assets/{automations-A6uZCwrZ.js → automations-DV3Hwvkh.js} +1 -1
- package/dist/client/assets/{avatar-GGBvmgaP.js → avatar-BtAQCO-2.js} +1 -1
- package/dist/client/assets/{badge-BYAYJbYP.js → badge-1XsLmnCd.js} +1 -1
- package/dist/client/assets/{brand-context-C7vqZWF-.js → brand-context-Cy-mOFme.js} +1 -1
- package/dist/client/assets/{buckets-Cv2ETh1T.js → buckets-BJavIeNL.js} +1 -1
- package/dist/client/assets/{calendar-xjXZIDeb.js → calendar-DDr4OpOw.js} +1 -1
- package/dist/client/assets/{capability-load-error-CUPCgjg9.js → capability-load-error-RHVeL-ZD.js} +1 -1
- package/dist/client/assets/{card-7rOCFixx.js → card-BEPIE5c3.js} +1 -1
- package/dist/client/assets/{chat-context-T6Hxtz67.js → chat-context-D6aO01ix.js} +1 -1
- package/dist/client/assets/{checkbox-DotF6hoA.js → checkbox-BBjpY9PF.js} +1 -1
- package/dist/client/assets/{cli-auth-success-C_1kF7Fn.js → cli-auth-success-C80PQRdD.js} +1 -1
- package/dist/client/assets/collection-detail-BmeI38cL.js +1 -0
- package/dist/client/assets/{collection-display-button-Cn72Xu3L.js → collection-display-button-b6a7UYE5.js} +1 -1
- package/dist/client/assets/{collection-search-loHJ7IYX.js → collection-search-zyQA1nxB.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CB8ynCFf.js → collection-table-wrapper-BVqZr_Qu.js} +1 -1
- package/dist/client/assets/{collection-tabs-IuChGrKO.js → collection-tabs-Cj0N0ju7.js} +1 -1
- package/dist/client/assets/{collections-BY2lU4NZ.js → collections-Bjtc-hAu.js} +1 -1
- package/dist/client/assets/{command-CYcMZe50.js → command-Cra4G6CA.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-BjjpdcQ_.js → connect-desktop-dialog--2F6IlSo.js} +1 -1
- package/dist/client/assets/{connection-card-C98P6TUE.js → connection-card-BryVQVNj.js} +1 -1
- package/dist/client/assets/{connection-detail-DzFlb_go.js → connection-detail-CJ3YGQTJ.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-B_et0Rp5.js → connection-form-helpers-BrVODh8v.js} +1 -1
- package/dist/client/assets/{connections-B1EHRtVn.js → connections-DHNRJmth.js} +1 -1
- package/dist/client/assets/{constants-P1xnRFeX.js → constants-B90dSsdp.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-CnTXTZP-.js → decopilot-sse-pool-CGDUUcoH.js} +1 -1
- package/dist/client/assets/{dialog-C3j-c3SR.js → dialog-CkRRGZnc.js} +1 -1
- package/dist/client/assets/{domain-settings-8dDTfx0k.js → domain-settings-Cv6h80DI.js} +1 -1
- package/dist/client/assets/{drawer-ySjhgvkO.js → drawer-D9a9biew.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DKiorR9d.js → dropdown-menu-OXHZ7kAR.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-CtrFibYD.js → dynamic-plugin-layout-WQX2dbye.js} +1 -1
- package/dist/client/assets/{empty-state-CsQfijIL.js → empty-state-CrnpTs87.js} +1 -1
- package/dist/client/assets/{empty-state-D0UPz__M.js → empty-state-HuDuVXt9.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DQPoIIzo.js → extract-connection-data-zhKCs3hG.js} +1 -1
- package/dist/client/assets/{features-DOYt53uh.js → features-B2DYM1KA.js} +1 -1
- package/dist/client/assets/{file-explorer-BcIDvGnY.js → file-explorer-CodmJ5if.js} +1 -1
- package/dist/client/assets/{file-preview-kcOvLrSx.js → file-preview-CI4QFiCQ.js} +1 -1
- package/dist/client/assets/{file-type-icon-DWtzaQPp.js → file-type-icon-D2uT8L4_.js} +1 -1
- package/dist/client/assets/{files-x6DVqY52.js → files-CVOuUBU3.js} +1 -1
- package/dist/client/assets/{form-w7JkvptQ.js → form-DB_SF1NK.js} +1 -1
- package/dist/client/assets/{general-BPDsNgDe.js → general-vWqND5zS.js} +1 -1
- package/dist/client/assets/{generate-id-BsvOSxwt.js → generate-id-CACjqlq9.js} +1 -1
- package/dist/client/assets/{github-repo-picker-B_v87FGw.js → github-repo-picker-DYd9iz4o.js} +1 -1
- package/dist/client/assets/{hover-card-B_RJCrCA.js → hover-card-BuRqave8.js} +1 -1
- package/dist/client/assets/{image-field-Cru0b2ZK.js → image-field-Dl50PYRh.js} +1 -1
- package/dist/client/assets/{index-BiOB1WZm.js → index-8UgO20ro.js} +1 -1
- package/dist/client/assets/{index-B7LqxKQ-.js → index-B3mW6knO.js} +1 -1
- package/dist/client/assets/{index-NioO90_M.js → index-BZNyLwY8.js} +1 -1
- package/dist/client/assets/{index-CswQOvGx.js → index-BfF2luiz.js} +1 -1
- package/dist/client/assets/{index-mPypacb-.js → index-BrlS6ckp.js} +1 -1
- package/dist/client/assets/{index-pO-YX1wf.js → index-Bv83EN60.js} +25 -25
- package/dist/client/assets/{index-EVJ_UeFF.js → index-C0hyS3dF.js} +3 -3
- package/dist/client/assets/{index-Cwd5mIBy.js → index-CVj-R_ah.js} +1 -1
- package/dist/client/assets/{index-CJoBkEf_.js → index-CfZkqwiZ.js} +3 -3
- package/dist/client/assets/{index-C4kuSARI.js → index-CtxvqkUX.js} +1 -1
- package/dist/client/assets/{index-CKPUoGqe.js → index-D8CSJJ8c.js} +1 -1
- package/dist/client/assets/index-FNnK1HRr.js +1 -0
- package/dist/client/assets/{index-Ck3k86Ip.js → index-J4gua_Pf.js} +1 -1
- package/dist/client/assets/{index-vNb1uvqd.js → index-adulDWjY.js} +1 -1
- package/dist/client/assets/{index-redirect-mdT-wByU.js → index-redirect-BFJQIlkE.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-hzkIseBw.js → infiniteQueryObserver-CrBAaz5f.js} +1 -1
- package/dist/client/assets/{input-BZDQfdYn.js → input-Bo10McUW.js} +1 -1
- package/dist/client/assets/{integration-icon-DYz5eywh.js → integration-icon-DVKcDoT_.js} +1 -1
- package/dist/client/assets/{label-09bf4ZUr.js → label-DeJyoAdf.js} +1 -1
- package/dist/client/assets/{layout-hMbyvZRj.js → layout-z7PUq8Py.js} +1 -1
- package/dist/client/assets/{login-BWhh5Wx9.js → login-CnjNBA1X.js} +1 -1
- package/dist/client/assets/{members-PDEQDpHB.js → members-DYWejlv3.js} +1 -1
- package/dist/client/assets/{monaco-editor-B2MBxzPo.js → monaco-editor-CqmI1KNs.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-D8gHIB7G.js → monitoring-stats-row-B87lwM70.js} +1 -1
- package/dist/client/assets/{oauth-callback-BlANIrYK.js → oauth-callback-BcVHS0MK.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-ClHHYRKz.js → oauth-callback-ai-provider-DRHXM6OL.js} +1 -1
- package/dist/client/assets/{onboarding-lvXp9VmW.js → onboarding-BzJZtima.js} +1 -1
- package/dist/client/assets/{org-install-C2fZgqt9.js → org-install-YeCG58Rs.js} +1 -1
- package/dist/client/assets/{org-layout-NE6bn4Sq.js → org-layout-C6tvIE4n.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-hZqikTN5.js → org-plugin-layout-CSeUEC6W.js} +1 -1
- package/dist/client/assets/{page-seo-form-aB22X3RV.js → page-seo-form-27ssB04C.js} +1 -1
- package/dist/client/assets/page-seo-sheet-ePDfcFUB.js +1 -0
- package/dist/client/assets/{pair-B1HhmTC2.js → pair-3Ly6FRTU.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-Bq8PMk0Q.js → plugin-empty-state-DRuPL8Mv.js} +1 -1
- package/dist/client/assets/{plugin-header-C3QgrcHM.js → plugin-header-DAxR9AVC.js} +1 -1
- package/dist/client/assets/{plugin-layout-D8j3qU9M.js → plugin-layout-b5wiHu3V.js} +1 -1
- package/dist/client/assets/{popover-D7H0zNnu.js → popover-Bd7ax5LE.js} +1 -1
- package/dist/client/assets/{post-editor-Q0aCt3BM.js → post-editor-4p9ApTUQ.js} +1 -1
- package/dist/client/assets/{primitives-JHMgB1o-.js → primitives-DKQ5HhlZ.js} +1 -1
- package/dist/client/assets/{profile-B9yqAVYS.js → profile-C9tpCrcC.js} +1 -1
- package/dist/client/assets/{project-app-view-CQ14p1sb.js → project-app-view-B3kuvoTa.js} +1 -1
- package/dist/client/assets/record-editor-DvWyQ1zV.js +1 -0
- package/dist/client/assets/registry-DgD5qwPp.js +2 -0
- package/dist/client/assets/{registry-layout-DYhQxzqY.js → registry-layout-CwSfcNM7.js} +1 -1
- package/dist/client/assets/{require-capability-DJDpC59C.js → require-capability-CimNrW1R.js} +1 -1
- package/dist/client/assets/{required-auth-layout-D_pVrMnQ.js → required-auth-layout-CKYrXOdT.js} +1 -1
- package/dist/client/assets/{reset-password-DzpB5VA8.js → reset-password-VqN3JOVe.js} +1 -1
- package/dist/client/assets/{roles-BIa4EfJE.js → roles-DkHv6AP7.js} +1 -1
- package/dist/client/assets/{save-status-B_RrNks8.js → save-status-DcMmk-lM.js} +1 -1
- package/dist/client/assets/schema-form-D6utjQNJ.js +1 -0
- package/dist/client/assets/{scroll-area-DCO9LjjC.js → scroll-area-DaONxw8l.js} +1 -1
- package/dist/client/assets/{search-input-BkjmAgNX.js → search-input-Df2c1m7s.js} +1 -1
- package/dist/client/assets/{secrets-eB4KGgEb.js → secrets-DdjscyJ_.js} +1 -1
- package/dist/client/assets/{sections-editor-DcoSMLUX.js → sections-editor-gZPJp9Sx.js} +2 -2
- package/dist/client/assets/{select-D3xFKLhW.js → select-BMjAzYm-.js} +1 -1
- package/dist/client/assets/{select-model-DClZJUk2.js → select-model-Bli_ehQ1.js} +1 -1
- package/dist/client/assets/{seo-editor-DEb43_7H.js → seo-editor-CJXt1p2W.js} +1 -1
- package/dist/client/assets/{settings-layout-Y8ddbgRB.js → settings-layout-Pn7scIb3.js} +1 -1
- package/dist/client/assets/{settings-section-xKZ0B7RQ.js → settings-section-BQBkAedV.js} +1 -1
- package/dist/client/assets/{sheet-y48NbizY.js → sheet-BJ3bW92v.js} +1 -1
- package/dist/client/assets/{shell-controls-DTs3k-tY.js → shell-controls-BZteSBrG.js} +1 -1
- package/dist/client/assets/{shell-layout-CtsnLkL0.js → shell-layout-Dsomzf8V.js} +1 -1
- package/dist/client/assets/{shell-route-loading-2R_HkOJm.js → shell-route-loading-CpAzFhDh.js} +1 -1
- package/dist/client/assets/{sidebar-BNHENVF_.js → sidebar-CL9yZebM.js} +1 -1
- package/dist/client/assets/{skeleton-BWDI6b5B.js → skeleton-CI2wWNuJ.js} +1 -1
- package/dist/client/assets/{sortable.esm-D1-ateSo.js → sortable.esm-D5BZ5JbX.js} +1 -1
- package/dist/client/assets/{spinner-BLcfraim.js → spinner-DF36atd1.js} +1 -1
- package/dist/client/assets/{sso-B-Hyr04j.js → sso-BVFomjSj.js} +1 -1
- package/dist/client/assets/{store-DtSOq-my.js → store-VVYF_oq6.js} +1 -1
- package/dist/client/assets/store-registry-BrR-0Jjf.js +2 -0
- package/dist/client/assets/{switch-DFEmgVSQ.js → switch-CVCd-1RP.js} +1 -1
- package/dist/client/assets/{tab-id-BfrA42Sy.js → tab-id-DNCjIkOQ.js} +1 -1
- package/dist/client/assets/{table-zHqbyGEy.js → table-B88DYSpu.js} +1 -1
- package/dist/client/assets/{tabs-Dj3HihPI.js → tabs-DpVci7De.js} +1 -1
- package/dist/client/assets/{task-status-gyYC-BVM.js → task-status-CssRvy-C.js} +1 -1
- package/dist/client/assets/{textarea-Kw6SbqZA.js → textarea-Ckk3if9k.js} +1 -1
- package/dist/client/assets/{toggle-group-CgAd7Mg_.js → toggle-group-B_PXvWYp.js} +1 -1
- package/dist/client/assets/{toolbar-D7UKSzZi.js → toolbar-BBrIRnWM.js} +1 -1
- package/dist/client/assets/{tools-list-X7Olg8ty.js → tools-list-DnIfcR1E.js} +1 -1
- package/dist/client/assets/{tooltip-BseNApEN.js → tooltip-CfqlCvT2.js} +1 -1
- package/dist/client/assets/{types-CEUmohd_.js → types-BjfkOQkC.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DSjz3Xn-.js → use-ai-providers-BJa_hJvx.js} +1 -1
- package/dist/client/assets/{use-automations-DD-gzzG-.js → use-automations-FVoVOV9R.js} +1 -1
- package/dist/client/assets/{use-capability-BETReHdP.js → use-capability-BBI5hTlm.js} +1 -1
- package/dist/client/assets/{use-collections-C-e494pb.js → use-collections-ICJ6kTy2.js} +1 -1
- package/dist/client/assets/{use-connection-COB3wZyv.js → use-connection-DkEqcF8U.js} +1 -1
- package/dist/client/assets/{use-copy-B4ijm3eQ.js → use-copy-BJS9L5jV.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DHggusOz.js → use-create-virtual-mcp-D1VCPSqP.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-7RLEJTRO.js → use-debounced-autosave-CMzFqAwx.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CWde71K0.js → use-delete-connection-Btg8O9dc.js} +1 -1
- package/dist/client/assets/{use-file-configs-BXchIe2N.js → use-file-configs-BVJ0gRIl.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BTrNIqxO.js → use-infinite-scroll-BU26n5pY.js} +1 -1
- package/dist/client/assets/{use-list-state-DSHFjIyq.js → use-list-state-CTiC5L3e.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CLrlZKHJ.js → use-mcp-prompts-CKe0_SlQ.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BdUmFkbH.js → use-mcp-tools-CZizGVNS.js} +1 -1
- package/dist/client/assets/{use-members-CaSqF02H.js → use-members-1OgqK7Qv.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BLkLok3n.js → use-navigate-to-agent-hwOcyt3u.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-Bl3vPuak.js → use-org-auth-client-BidTbwfV.js} +1 -1
- package/dist/client/assets/{use-org-sso-Bm8Zb6fp.js → use-org-sso-CL3vguua.js} +1 -1
- package/dist/client/assets/{use-organization-roles-JDC-YH-l.js → use-organization-roles-DJMm5Q4p.js} +1 -1
- package/dist/client/assets/{use-organization-settings-D5g7NFw1.js → use-organization-settings-Bf7xjdWE.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BfC5RU93.js → use-registry-connections-CCW1N8Qx.js} +1 -1
- package/dist/client/assets/{use-secrets-BjVtsdxA.js → use-secrets-BWnP55Jc.js} +1 -1
- package/dist/client/assets/{use-status-sounds-9imVHc_4.js → use-status-sounds-UJAv4S8H.js} +1 -1
- package/dist/client/assets/{use-view-mode-CUhYlh8A.js → use-view-mode-CU8SdpcX.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-C09vm-BM.js → use-virtual-mcp-Y4_4PdHC.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-kqO70TvN.js +1 -0
- package/dist/client/assets/{useRouterState-BjzQ0bsm.js → useRouterState-DD4VLDS4.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CAC6RxXP.js +1 -0
- package/dist/client/assets/{user-Coaz5g4K.js → user-sCHxaUTE.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CoifNzqg.js → view-mode-toggle-DtDdB_XX.js} +1 -1
- package/dist/client/assets/{workflow-53Ic0UX5.js → workflow-CAOlw1bP.js} +1 -1
- package/dist/client/assets/workflow-detail-ozALCkrV.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +343 -344
- package/dist/server/server.js +233 -234
- package/package.json +1 -1
- package/dist/client/assets/accordion-BrfX2IfA.js +0 -1
- package/dist/client/assets/app-editor-DR7rTN1y.js +0 -1
- package/dist/client/assets/collection-detail-Bfy-MA_d.js +0 -1
- package/dist/client/assets/index-D935qYUN.js +0 -1
- package/dist/client/assets/page-seo-sheet-9U2O7bHl.js +0 -1
- package/dist/client/assets/record-editor-DcoIPsEz.js +0 -1
- package/dist/client/assets/registry-a7dn3L4L.js +0 -2
- package/dist/client/assets/schema-form-B58UjuIl.js +0 -1
- package/dist/client/assets/store-registry-D5nKgOXT.js +0 -2
- package/dist/client/assets/useInfiniteQuery--C6hdwWo.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BZeP3q20.js +0 -1
- package/dist/client/assets/workflow-detail-xBmS8ZJ3.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as f,aO as Un,e as le,c as Se,j as E,b1 as F,a6 as sn,bd as Fn,bt as Wn,bc as cn,af as qn,bq as Xn,bb as Jn,a7 as Yn}from"./index-CJoBkEf_.js";import{Z as Zn}from"./agent-icon-ExlCX9f5.js";import{T as Qn,g as et,h as nt,j as un}from"./scroll-area-DCO9LjjC.js";import{i as tt}from"./ChevronRight-DQs4tkMm.js";const Ne=f.createContext(null);Ne.displayName="PanelGroupContext";const $={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"},Ke=10,re=f.useLayoutEffect,Qe=Un.useId,ot=typeof Qe=="function"?Qe:()=>null;let rt=0;function Ue(n=null){const e=ot(),t=f.useRef(n||e||null);return t.current===null&&(t.current=""+rt++),n??t.current}function dn({children:n,className:e="",collapsedSize:t,collapsible:o,defaultSize:i,forwardedRef:r,id:l,maxSize:a,minSize:s,onCollapse:g,onExpand:y,onResize:u,order:c,style:m,tagName:h="div",...A}){const P=f.useContext(Ne);if(P===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:S,expandPanel:I,getPanelSize:k,getPanelStyle:L,groupId:V,isPanelCollapsed:R,reevaluatePanelConstraints:w,registerPanel:T,resizePanel:Z,unregisterPanel:K}=P,G=Ue(l),D=f.useRef({callbacks:{onCollapse:g,onExpand:y,onResize:u},constraints:{collapsedSize:t,collapsible:o,defaultSize:i,maxSize:a,minSize:s},id:G,idIsFromProps:l!==void 0,order:c});f.useRef({didLogMissingDefaultSizeWarning:!1}),re(()=>{const{callbacks:j,constraints:H}=D.current,O={...H};D.current.id=G,D.current.idIsFromProps=l!==void 0,D.current.order=c,j.onCollapse=g,j.onExpand=y,j.onResize=u,H.collapsedSize=t,H.collapsible=o,H.defaultSize=i,H.maxSize=a,H.minSize=s,(O.collapsedSize!==H.collapsedSize||O.collapsible!==H.collapsible||O.maxSize!==H.maxSize||O.minSize!==H.minSize)&&w(D.current,O)}),re(()=>{const j=D.current;return T(j),()=>{K(j)}},[c,G,T,K]),f.useImperativeHandle(r,()=>({collapse:()=>{S(D.current)},expand:j=>{I(D.current,j)},getId(){return G},getSize(){return k(D.current)},isCollapsed(){return R(D.current)},isExpanded(){return!R(D.current)},resize:j=>{Z(D.current,j)}}),[S,I,k,R,G,Z]);const ne=L(D.current,i);return f.createElement(h,{...A,children:n,className:e,id:G,style:{...ne,...m},[$.groupId]:V,[$.panel]:"",[$.panelCollapsible]:o||void 0,[$.panelId]:G,[$.panelSize]:parseFloat(""+ne.flexGrow).toFixed(1)})}const fn=f.forwardRef((n,e)=>f.createElement(dn,{...n,forwardedRef:e}));dn.displayName="Panel";fn.displayName="forwardRef(Panel)";let Ve=null,Ie=-1,ee=null;function it(n,e){if(e){const t=(e&xn)!==0,o=(e&vn)!==0,i=(e&yn)!==0,r=(e&bn)!==0;if(t)return i?"se-resize":r?"ne-resize":"e-resize";if(o)return i?"sw-resize":r?"nw-resize":"w-resize";if(i)return"s-resize";if(r)return"n-resize"}switch(n){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function lt(){ee!==null&&(document.head.removeChild(ee),Ve=null,ee=null,Ie=-1)}function He(n,e){var t,o;const i=it(n,e);if(Ve!==i){if(Ve=i,ee===null&&(ee=document.createElement("style"),document.head.appendChild(ee)),Ie>=0){var r;(r=ee.sheet)===null||r===void 0||r.removeRule(Ie)}Ie=(t=(o=ee.sheet)===null||o===void 0?void 0:o.insertRule(`*{cursor: ${i} !important;}`))!==null&&t!==void 0?t:-1}}function pn(n){return n.type==="keydown"}function gn(n){return n.type.startsWith("pointer")}function mn(n){return n.type.startsWith("mouse")}function ke(n){if(gn(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(mn(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function at(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function st(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 ct(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:tn(n),b:tn(e)};let o;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),o=n;z(o,"Stacking order can only be calculated for elements with a common ancestor");const i={a:nn(en(t.a)),b:nn(en(t.b))};if(i.a===i.b){const r=o.childNodes,l={a:t.a.at(-1),b:t.b.at(-1)};let a=r.length;for(;a--;){const s=r[a];if(s===l.a)return 1;if(s===l.b)return-1}}return Math.sign(i.a-i.b)}const ut=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function dt(n){var e;const t=getComputedStyle((e=hn(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function ft(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||dt(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"||ut.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function en(n){let e=n.length;for(;e--;){const t=n[e];if(z(t,"Missing node"),ft(t))return t}return null}function nn(n){return n&&Number(getComputedStyle(n).zIndex)||0}function tn(n){const e=[];for(;n;)e.push(n),n=hn(n);return e}function hn(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const xn=1,vn=2,yn=4,bn=8,pt=at()==="coarse";let q=[],de=!1,oe=new Map,Le=new Map;const be=new Set;function gt(n,e,t,o,i){var r;const{ownerDocument:l}=e,a={direction:t,element:e,hitAreaMargins:o,setResizeHandlerState:i},s=(r=oe.get(l))!==null&&r!==void 0?r:0;return oe.set(l,s+1),be.add(a),Ae(),function(){var y;Le.delete(n),be.delete(a);const u=(y=oe.get(l))!==null&&y!==void 0?y:1;if(oe.set(l,u-1),Ae(),u===1&&oe.delete(l),q.includes(a)){const c=q.indexOf(a);c>=0&&q.splice(c,1),We(),i("up",!0,null)}}}function mt(n){const{target:e}=n,{x:t,y:o}=ke(n);de=!0,Fe({target:e,x:t,y:o}),Ae(),q.length>0&&(Ee("down",n),n.preventDefault(),zn(e)||n.stopImmediatePropagation())}function je(n){const{x:e,y:t}=ke(n);if(de&&n.buttons===0&&(de=!1,Ee("up",n)),!de){const{target:o}=n;Fe({target:o,x:e,y:t})}Ee("move",n),We(),q.length>0&&n.preventDefault()}function Te(n){const{target:e}=n,{x:t,y:o}=ke(n);Le.clear(),de=!1,q.length>0&&(n.preventDefault(),zn(e)||n.stopImmediatePropagation()),Ee("up",n),Fe({target:e,x:t,y:o}),We(),Ae()}function zn(n){let e=n;for(;e;){if(e.hasAttribute($.resizeHandle))return!0;e=e.parentElement}return!1}function Fe({target:n,x:e,y:t}){q.splice(0);let o=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(o=n),be.forEach(i=>{const{element:r,hitAreaMargins:l}=i,a=r.getBoundingClientRect(),{bottom:s,left:g,right:y,top:u}=a,c=pt?l.coarse:l.fine;if(e>=g-c&&e<=y+c&&t>=u-c&&t<=s+c){if(o!==null&&document.contains(o)&&r!==o&&!r.contains(o)&&!o.contains(r)&&ct(o,r)>0){let h=o,A=!1;for(;h&&!h.contains(r);){if(st(h.getBoundingClientRect(),a)){A=!0;break}h=h.parentElement}if(A)return}q.push(i)}})}function Ge(n,e){Le.set(n,e)}function We(){let n=!1,e=!1;q.forEach(o=>{const{direction:i}=o;i==="horizontal"?n=!0:e=!0});let t=0;Le.forEach(o=>{t|=o}),n&&e?He("intersection",t):n?He("horizontal",t):e?He("vertical",t):lt()}let Oe=new AbortController;function Ae(){Oe.abort(),Oe=new AbortController;const n={capture:!0,signal:Oe.signal};be.size&&(de?(q.length>0&&oe.forEach((e,t)=>{const{body:o}=t;e>0&&(o.addEventListener("contextmenu",Te,n),o.addEventListener("pointerleave",je,n),o.addEventListener("pointermove",je,n))}),window.addEventListener("pointerup",Te,n),window.addEventListener("pointercancel",Te,n)):oe.forEach((e,t)=>{const{body:o}=t;e>0&&(o.addEventListener("pointerdown",mt,n),o.addEventListener("pointermove",je,n))}))}function Ee(n,e){be.forEach(t=>{const{setResizeHandlerState:o}=t,i=q.includes(t);o(n,i,e)})}function ht(){const[n,e]=f.useState(0);return f.useCallback(()=>e(t=>t+1),[])}function z(n,e){if(!n)throw console.error(e),Error(e)}function ie(n,e,t=Ke){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function Q(n,e,t=Ke){return ie(n,e,t)===0}function U(n,e,t){return ie(n,e,t)===0}function xt(n,e,t){if(n.length!==e.length)return!1;for(let o=0;o<n.length;o++){const i=n[o],r=e[o];if(!U(i,r,t))return!1}return!0}function ue({panelConstraints:n,panelIndex:e,size:t}){const o=n[e];z(o!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:r,maxSize:l=100,minSize:a=0}=o;if(ie(t,a)<0)if(r){const s=(i+a)/2;ie(t,s)<0?t=i:t=a}else t=a;return t=Math.min(l,t),t=parseFloat(t.toFixed(Ke)),t}function ve({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:o,prevLayout:i,trigger:r}){if(U(n,0))return e;const l=[...e],[a,s]=o;z(a!=null,"Invalid first pivot index"),z(s!=null,"Invalid second pivot index");let g=0;if(r==="keyboard"){{const u=n<0?s:a,c=t[u];z(c,`Panel constraints not found for index ${u}`);const{collapsedSize:m=0,collapsible:h,minSize:A=0}=c;if(h){const P=e[u];if(z(P!=null,`Previous layout not found for panel index ${u}`),U(P,m)){const S=A-P;ie(S,Math.abs(n))>0&&(n=n<0?0-S:S)}}}{const u=n<0?a:s,c=t[u];z(c,`No panel constraints found for index ${u}`);const{collapsedSize:m=0,collapsible:h,minSize:A=0}=c;if(h){const P=e[u];if(z(P!=null,`Previous layout not found for panel index ${u}`),U(P,A)){const S=P-m;ie(S,Math.abs(n))>0&&(n=n<0?0-S:S)}}}}{const u=n<0?1:-1;let c=n<0?s:a,m=0;for(;;){const A=e[c];z(A!=null,`Previous layout not found for panel index ${c}`);const S=ue({panelConstraints:t,panelIndex:c,size:100})-A;if(m+=S,c+=u,c<0||c>=t.length)break}const h=Math.min(Math.abs(n),Math.abs(m));n=n<0?0-h:h}{let c=n<0?a:s;for(;c>=0&&c<t.length;){const m=Math.abs(n)-Math.abs(g),h=e[c];z(h!=null,`Previous layout not found for panel index ${c}`);const A=h-m,P=ue({panelConstraints:t,panelIndex:c,size:A});if(!U(h,P)&&(g+=h-P,l[c]=P,g.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?c--:c++}}if(xt(i,l))return i;{const u=n<0?s:a,c=e[u];z(c!=null,`Previous layout not found for panel index ${u}`);const m=c+g,h=ue({panelConstraints:t,panelIndex:u,size:m});if(l[u]=h,!U(h,m)){let A=m-h,S=n<0?s:a;for(;S>=0&&S<t.length;){const I=l[S];z(I!=null,`Previous layout not found for panel index ${S}`);const k=I+A,L=ue({panelConstraints:t,panelIndex:S,size:k});if(U(I,L)||(A-=L-I,l[S]=L),U(A,0))break;n>0?S--:S++}}}const y=l.reduce((u,c)=>c+u,0);return U(y,100)?l:i}function vt({layout:n,panelsArray:e,pivotIndices:t}){let o=0,i=100,r=0,l=0;const a=t[0];z(a!=null,"No pivot index found"),e.forEach((u,c)=>{const{constraints:m}=u,{maxSize:h=100,minSize:A=0}=m;c===a?(o=A,i=h):(r+=A,l+=h)});const s=Math.min(i,100-r),g=Math.max(o,100-l),y=n[a];return{valueMax:s,valueMin:g,valueNow:y}}function ze(n,e=document){return Array.from(e.querySelectorAll(`[${$.resizeHandleId}][data-panel-group-id="${n}"]`))}function Sn(n,e,t=document){const i=ze(n,t).findIndex(r=>r.getAttribute($.resizeHandleId)===e);return i??null}function Cn(n,e,t){const o=Sn(n,e,t);return o!=null?[o,o+1]:[-1,-1]}function wn(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 o=e.querySelector(`[data-panel-group][data-panel-group-id="${n}"]`);return o||null}function _e(n,e=document){const t=e.querySelector(`[${$.resizeHandleId}="${n}"]`);return t||null}function yt(n,e,t,o=document){var i,r,l,a;const s=_e(e,o),g=ze(n,o),y=s?g.indexOf(s):-1,u=(i=(r=t[y])===null||r===void 0?void 0:r.id)!==null&&i!==void 0?i:null,c=(l=(a=t[y+1])===null||a===void 0?void 0:a.id)!==null&&l!==void 0?l:null;return[u,c]}function bt({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:o,panelDataArray:i,panelGroupElement:r,setLayout:l}){f.useRef({didWarnAboutMissingResizeHandle:!1}),re(()=>{if(!r)return;const a=ze(t,r);for(let s=0;s<i.length-1;s++){const{valueMax:g,valueMin:y,valueNow:u}=vt({layout:o,panelsArray:i,pivotIndices:[s,s+1]}),c=a[s];if(c!=null){const m=i[s];z(m,`No panel data found for index "${s}"`),c.setAttribute("aria-controls",m.id),c.setAttribute("aria-valuemax",""+Math.round(g)),c.setAttribute("aria-valuemin",""+Math.round(y)),c.setAttribute("aria-valuenow",u!=null?""+Math.round(u):"")}}return()=>{a.forEach((s,g)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[t,o,i,r]),f.useEffect(()=>{if(!r)return;const a=e.current;z(a,"Eager values not found");const{panelDataArray:s}=a,g=wn(t,r);z(g!=null,`No group found for id "${t}"`);const y=ze(t,r);z(y,`No resize handles found for group id "${t}"`);const u=y.map(c=>{const m=c.getAttribute($.resizeHandleId);z(m,"Resize handle element has no handle id attribute");const[h,A]=yt(t,m,s,r);if(h==null||A==null)return()=>{};const P=S=>{if(!S.defaultPrevented)switch(S.key){case"Enter":{S.preventDefault();const I=s.findIndex(k=>k.id===h);if(I>=0){const k=s[I];z(k,`No panel data found for index ${I}`);const L=o[I],{collapsedSize:V=0,collapsible:R,minSize:w=0}=k.constraints;if(L!=null&&R){const T=ve({delta:U(L,V)?w-V:V-L,initialLayout:o,panelConstraints:s.map(Z=>Z.constraints),pivotIndices:Cn(t,m,r),prevLayout:o,trigger:"keyboard"});o!==T&&l(T)}}break}}};return c.addEventListener("keydown",P),()=>{c.removeEventListener("keydown",P)}});return()=>{u.forEach(c=>c())}},[r,n,e,t,o,i,l])}function on(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 Pn(n,e){const t=n==="horizontal",{x:o,y:i}=ke(e);return t?o:i}function zt(n,e,t,o,i){const r=t==="horizontal",l=_e(e,i);z(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute($.groupId);z(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=o;const g=Pn(t,n),y=wn(a,i);z(y,`No group element found for id "${a}"`);const u=y.getBoundingClientRect(),c=r?u.width:u.height;return(g-s)/c*100}function St(n,e,t,o,i,r){if(pn(n)){const l=t==="horizontal";let a=0;n.shiftKey?a=100:i!=null?a=i:a=10;let s=0;switch(n.key){case"ArrowDown":s=l?0:a;break;case"ArrowLeft":s=l?-a:0;break;case"ArrowRight":s=l?a:0;break;case"ArrowUp":s=l?0:-a;break;case"End":s=100;break;case"Home":s=-100;break}return s}else return o==null?0:zt(n,e,t,o,r)}function Ct({panelDataArray:n}){const e=Array(n.length),t=n.map(r=>r.constraints);let o=0,i=100;for(let r=0;r<n.length;r++){const l=t[r];z(l,`Panel constraints not found for index ${r}`);const{defaultSize:a}=l;a!=null&&(o++,e[r]=a,i-=a)}for(let r=0;r<n.length;r++){const l=t[r];z(l,`Panel constraints not found for index ${r}`);const{defaultSize:a}=l;if(a!=null)continue;const s=n.length-o,g=i/s;o++,e[r]=g,i-=g}return e}function se(n,e,t){e.forEach((o,i)=>{const r=n[i];z(r,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=r,{collapsedSize:g=0,collapsible:y}=a,u=t[s];if(u==null||o!==u){t[s]=o;const{onCollapse:c,onExpand:m,onResize:h}=l;h&&h(o,u),y&&(c||m)&&(m&&(u==null||Q(u,g))&&!Q(o,g)&&m(),c&&(u==null||!Q(u,g))&&Q(o,g)&&c())}})}function Pe(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({defaultSize:n,dragState:e,layout:t,panelData:o,panelIndex:i,precision:r=3}){const l=t[i];let a;return l==null?a=n!=null?n.toPrecision(r):"1":o.length===1?a="1":a=l.toPrecision(r),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Pt(n,e=10){let t=null;return(...i)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...i)},e)}}function rn(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 In(n){return`react-resizable-panels:${n}`}function An(n){return n.map(e=>{const{constraints:t,id:o,idIsFromProps:i,order:r}=e;return i?o:r?`${r}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function En(n,e){try{const t=In(n),o=e.getItem(t);if(o){const i=JSON.parse(o);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function It(n,e,t){var o,i;const r=(o=En(n,t))!==null&&o!==void 0?o:{},l=An(e);return(i=r[l])!==null&&i!==void 0?i:null}function At(n,e,t,o,i){var r;const l=In(n),a=An(e),s=(r=En(n,i))!==null&&r!==void 0?r:{};s[a]={expandToSizes:Object.fromEntries(t.entries()),layout:o};try{i.setItem(l,JSON.stringify(s))}catch(g){console.error(g)}}function ln({layout:n,panelConstraints:e}){const t=[...n],o=t.reduce((r,l)=>r+l,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(r=>`${r}%`).join(", ")}`);if(!U(o,100)&&t.length>0)for(let r=0;r<e.length;r++){const l=t[r];z(l!=null,`No layout data found for index ${r}`);const a=100/o*l;t[r]=a}let i=0;for(let r=0;r<e.length;r++){const l=t[r];z(l!=null,`No layout data found for index ${r}`);const a=ue({panelConstraints:e,panelIndex:r,size:l});l!=a&&(i+=l-a,t[r]=a)}if(!U(i,0))for(let r=0;r<e.length;r++){const l=t[r];z(l!=null,`No layout data found for index ${r}`);const a=l+i,s=ue({panelConstraints:e,panelIndex:r,size:a});if(l!==s&&(i-=s-l,t[r]=s,U(i,0)))break}return t}const Et=100,ye={getItem:n=>(rn(ye),ye.getItem(n)),setItem:(n,e)=>{rn(ye),ye.setItem(n,e)}},an={};function Rn({autoSaveId:n=null,children:e,className:t="",direction:o,forwardedRef:i,id:r=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=ye,style:g,tagName:y="div",...u}){const c=Ue(r),m=f.useRef(null),[h,A]=f.useState(null),[P,S]=f.useState([]),I=ht(),k=f.useRef({}),L=f.useRef(new Map),V=f.useRef(0),R=f.useRef({autoSaveId:n,direction:o,dragState:h,id:c,keyboardResizeBy:a,onLayout:l,storage:s}),w=f.useRef({layout:P,panelDataArray:[],panelDataArrayChanged:!1});f.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),f.useImperativeHandle(i,()=>({getId:()=>R.current.id,getLayout:()=>{const{layout:d}=w.current;return d},setLayout:d=>{const{onLayout:v}=R.current,{layout:C,panelDataArray:x}=w.current,p=ln({layout:d,panelConstraints:x.map(b=>b.constraints)});on(C,p)||(S(p),w.current.layout=p,v&&v(p),se(x,p,k.current))}}),[]),re(()=>{R.current.autoSaveId=n,R.current.direction=o,R.current.dragState=h,R.current.id=c,R.current.onLayout=l,R.current.storage=s}),bt({committedValuesRef:R,eagerValuesRef:w,groupId:c,layout:P,panelDataArray:w.current.panelDataArray,setLayout:S,panelGroupElement:m.current}),f.useEffect(()=>{const{panelDataArray:d}=w.current;if(n){if(P.length===0||P.length!==d.length)return;let v=an[n];v==null&&(v=Pt(At,Et),an[n]=v);const C=[...d],x=new Map(L.current);v(n,C,x,P,s)}},[n,P,s]),f.useEffect(()=>{});const T=f.useCallback(d=>{const{onLayout:v}=R.current,{layout:C,panelDataArray:x}=w.current;if(d.constraints.collapsible){const p=x.map(J=>J.constraints),{collapsedSize:b=0,panelSize:N,pivotIndices:M}=te(x,d,C);if(z(N!=null,`Panel size not found for panel "${d.id}"`),!Q(N,b)){L.current.set(d.id,N);const Y=ce(x,d)===x.length-1?N-b:b-N,_=ve({delta:Y,initialLayout:C,panelConstraints:p,pivotIndices:M,prevLayout:C,trigger:"imperative-api"});Pe(C,_)||(S(_),w.current.layout=_,v&&v(_),se(x,_,k.current))}}},[]),Z=f.useCallback((d,v)=>{const{onLayout:C}=R.current,{layout:x,panelDataArray:p}=w.current;if(d.constraints.collapsible){const b=p.map(W=>W.constraints),{collapsedSize:N=0,panelSize:M=0,minSize:J=0,pivotIndices:Y}=te(p,d,x),_=v??J;if(Q(M,N)){const W=L.current.get(d.id),he=W!=null&&W>=_?W:_,Me=ce(p,d)===p.length-1?M-he:he-M,B=ve({delta:Me,initialLayout:x,panelConstraints:b,pivotIndices:Y,prevLayout:x,trigger:"imperative-api"});Pe(x,B)||(S(B),w.current.layout=B,C&&C(B),se(p,B,k.current))}}},[]),K=f.useCallback(d=>{const{layout:v,panelDataArray:C}=w.current,{panelSize:x}=te(C,d,v);return z(x!=null,`Panel size not found for panel "${d.id}"`),x},[]),G=f.useCallback((d,v)=>{const{panelDataArray:C}=w.current,x=ce(C,d);return wt({defaultSize:v,dragState:h,layout:P,panelData:C,panelIndex:x})},[h,P]),D=f.useCallback(d=>{const{layout:v,panelDataArray:C}=w.current,{collapsedSize:x=0,collapsible:p,panelSize:b}=te(C,d,v);return z(b!=null,`Panel size not found for panel "${d.id}"`),p===!0&&Q(b,x)},[]),ne=f.useCallback(d=>{const{layout:v,panelDataArray:C}=w.current,{collapsedSize:x=0,collapsible:p,panelSize:b}=te(C,d,v);return z(b!=null,`Panel size not found for panel "${d.id}"`),!p||ie(b,x)>0},[]),j=f.useCallback(d=>{const{panelDataArray:v}=w.current;v.push(d),v.sort((C,x)=>{const p=C.order,b=x.order;return p==null&&b==null?0:p==null?-1:b==null?1:p-b}),w.current.panelDataArrayChanged=!0,I()},[I]);re(()=>{if(w.current.panelDataArrayChanged){w.current.panelDataArrayChanged=!1;const{autoSaveId:d,onLayout:v,storage:C}=R.current,{layout:x,panelDataArray:p}=w.current;let b=null;if(d){const M=It(d,p,C);M&&(L.current=new Map(Object.entries(M.expandToSizes)),b=M.layout)}b==null&&(b=Ct({panelDataArray:p}));const N=ln({layout:b,panelConstraints:p.map(M=>M.constraints)});on(x,N)||(S(N),w.current.layout=N,v&&v(N),se(p,N,k.current))}}),re(()=>{const d=w.current;return()=>{d.layout=[]}},[]);const H=f.useCallback(d=>{let v=!1;const C=m.current;return C&&window.getComputedStyle(C,null).getPropertyValue("direction")==="rtl"&&(v=!0),function(p){p.preventDefault();const b=m.current;if(!b)return()=>null;const{direction:N,dragState:M,id:J,keyboardResizeBy:Y,onLayout:_}=R.current,{layout:W,panelDataArray:he}=w.current,{initialLayout:we}=M??{},Me=Cn(J,d,b);let B=St(p,d,N,M,Y,b);const Ye=N==="horizontal";Ye&&v&&(B=-B);const Bn=he.map(Kn=>Kn.constraints),xe=ve({delta:B,initialLayout:we??W,panelConstraints:Bn,pivotIndices:Me,prevLayout:W,trigger:pn(p)?"keyboard":"mouse-or-touch"}),Ze=!Pe(W,xe);(gn(p)||mn(p))&&V.current!=B&&(V.current=B,!Ze&&B!==0?Ye?Ge(d,B<0?xn:vn):Ge(d,B<0?yn:bn):Ge(d,0)),Ze&&(S(xe),w.current.layout=xe,_&&_(xe),se(he,xe,k.current))}},[]),O=f.useCallback((d,v)=>{const{onLayout:C}=R.current,{layout:x,panelDataArray:p}=w.current,b=p.map(W=>W.constraints),{panelSize:N,pivotIndices:M}=te(p,d,x);z(N!=null,`Panel size not found for panel "${d.id}"`);const Y=ce(p,d)===p.length-1?N-v:v-N,_=ve({delta:Y,initialLayout:x,panelConstraints:b,pivotIndices:M,prevLayout:x,trigger:"imperative-api"});Pe(x,_)||(S(_),w.current.layout=_,C&&C(_),se(p,_,k.current))},[]),fe=f.useCallback((d,v)=>{const{layout:C,panelDataArray:x}=w.current,{collapsedSize:p=0,collapsible:b}=v,{collapsedSize:N=0,collapsible:M,maxSize:J=100,minSize:Y=0}=d.constraints,{panelSize:_}=te(x,d,C);_!=null&&(b&&M&&Q(_,p)?Q(p,N)||O(d,N):_<Y?O(d,Y):_>J&&O(d,J))},[O]),pe=f.useCallback((d,v)=>{const{direction:C}=R.current,{layout:x}=w.current;if(!m.current)return;const p=_e(d,m.current);z(p,`Drag handle element not found for id "${d}"`);const b=Pn(C,v);A({dragHandleId:d,dragHandleRect:p.getBoundingClientRect(),initialCursorPosition:b,initialLayout:x})},[]),ge=f.useCallback(()=>{A(null)},[]),Ce=f.useCallback(d=>{const{panelDataArray:v}=w.current,C=ce(v,d);C>=0&&(v.splice(C,1),delete k.current[d.id],w.current.panelDataArrayChanged=!0,I())},[I]),ae=f.useMemo(()=>({collapsePanel:T,direction:o,dragState:h,expandPanel:Z,getPanelSize:K,getPanelStyle:G,groupId:c,isPanelCollapsed:D,isPanelExpanded:ne,reevaluatePanelConstraints:fe,registerPanel:j,registerResizeHandle:H,resizePanel:O,startDragging:pe,stopDragging:ge,unregisterPanel:Ce,panelGroupElement:m.current}),[T,h,o,Z,K,G,c,D,ne,fe,j,H,O,pe,ge,Ce]),me={display:"flex",flexDirection:o==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return f.createElement(Ne.Provider,{value:ae},f.createElement(y,{...u,children:e,className:t,id:r,ref:m,style:{...me,...g},[$.group]:"",[$.groupDirection]:o,[$.groupId]:c}))}const Nn=f.forwardRef((n,e)=>f.createElement(Rn,{...n,forwardedRef:e}));Rn.displayName="PanelGroup";Nn.displayName="forwardRef(PanelGroup)";function ce(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function te(n,e,t){const o=ce(n,e),r=o===n.length-1?[o-1,o]:[o,o+1],l=t[o];return{...e.constraints,panelSize:l,pivotIndices:r}}function Rt({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:o}){f.useEffect(()=>{if(n||t==null||o==null)return;const i=_e(e,o);if(i==null)return;const r=l=>{if(!l.defaultPrevented)switch(l.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{l.preventDefault(),t(l);break}case"F6":{l.preventDefault();const a=i.getAttribute($.groupId);z(a,`No group element found for id "${a}"`);const s=ze(a,o),g=Sn(a,e,o);z(g!==null,`No resize element found for id "${e}"`);const y=l.shiftKey?g>0?g-1:s.length-1:g+1<s.length?g+1:0;s[y].focus();break}}};return i.addEventListener("keydown",r),()=>{i.removeEventListener("keydown",r)}},[o,n,e,t])}function kn({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:o,id:i,onBlur:r,onClick:l,onDragging:a,onFocus:s,onPointerDown:g,onPointerUp:y,style:u={},tabIndex:c=0,tagName:m="div",...h}){var A,P;const S=f.useRef(null),I=f.useRef({onClick:l,onDragging:a,onPointerDown:g,onPointerUp:y});f.useEffect(()=>{I.current.onClick=l,I.current.onDragging=a,I.current.onPointerDown=g,I.current.onPointerUp=y});const k=f.useContext(Ne);if(k===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:L,groupId:V,registerResizeHandle:R,startDragging:w,stopDragging:T,panelGroupElement:Z}=k,K=Ue(i),[G,D]=f.useState("inactive"),[ne,j]=f.useState(!1),[H,O]=f.useState(null),fe=f.useRef({state:G});re(()=>{fe.current.state=G}),f.useEffect(()=>{if(t)O(null);else{const ae=R(K);O(()=>ae)}},[t,K,R]);const pe=(A=o?.coarse)!==null&&A!==void 0?A:15,ge=(P=o?.fine)!==null&&P!==void 0?P:5;f.useEffect(()=>{if(t||H==null)return;const ae=S.current;z(ae,"Element ref not attached");let me=!1;return gt(K,ae,L,{coarse:pe,fine:ge},(v,C,x)=>{if(!C){D("inactive");return}switch(v){case"down":{D("drag"),me=!1,z(x,'Expected event to be defined for "down" action'),w(K,x);const{onDragging:p,onPointerDown:b}=I.current;p?.(!0),b?.();break}case"move":{const{state:p}=fe.current;me=!0,p!=="drag"&&D("hover"),z(x,'Expected event to be defined for "move" action'),H(x);break}case"up":{D("hover"),T();const{onClick:p,onDragging:b,onPointerUp:N}=I.current;b?.(!1),N?.(),me||p?.();break}}})},[pe,L,t,ge,R,K,H,w,T]),Rt({disabled:t,handleId:K,resizeHandler:H,panelGroupElement:Z});const Ce={touchAction:"none",userSelect:"none"};return f.createElement(m,{...h,children:n,className:e,id:i,onBlur:()=>{j(!1),r?.()},onFocus:()=>{j(!0),s?.()},ref:S,role:"separator",style:{...Ce,...u},tabIndex:c,[$.groupDirection]:L,[$.groupId]:V,[$.resizeHandle]:"",[$.resizeHandleActive]:G==="drag"?"pointer":ne?"keyboard":void 0,[$.resizeHandleEnabled]:!t,[$.resizeHandleId]:K,[$.resizeHandleState]:G})}kn.displayName="PanelResizeHandle";function qt(n){const e=le.c(10);let t,o,i;e[0]!==n?({className:t,ref:i,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=i):(t=e[1],o=e[2],i=e[3]);let r;e[4]!==t?(r=Se("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=r):r=e[5];let l;return e[6]!==o||e[7]!==i||e[8]!==r?(l=E.jsx(Nn,{ref:i,"data-slot":"resizable-panel-group",className:r,...o}),e[6]=o,e[7]=i,e[8]=r,e[9]=l):l=e[9],l}function Xt(n){const e=le.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=E.jsx(fn,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=o):o=e[3],o}function Jt(n){const e=le.c(12);let t,o,i;e[0]!==n?({withHandle:i,className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=i):(t=e[1],o=e[2],i=e[3]);let r;e[4]!==t?(r=Se("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]=r):r=e[5];let l;e[6]!==i?(l=i&&E.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:E.jsx(Zn,{className:"size-2.5"})}),e[6]=i,e[7]=l):l=e[7];let a;return e[8]!==o||e[9]!==r||e[10]!==l?(a=E.jsx(kn,{"data-slot":"resizable-handle",className:r,...o,children:l}),e[8]=o,e[9]=r,e[10]=l,e[11]=a):a=e[11],a}var X="Accordion",Nt=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[qe,kt,Lt]=Wn(X),[$e]=qn(X,[Lt,un]),Xe=un(),Ln=F.forwardRef((n,e)=>{const{type:t,...o}=n,i=o,r=o;return E.jsx(qe.Provider,{scope:n.__scopeAccordion,children:t==="multiple"?E.jsx(Mt,{...r,ref:e}):E.jsx(Dt,{...i,ref:e})})});Ln.displayName=X;var[_n,_t]=$e(X),[$n,$t]=$e(X,{collapsible:!1}),Dt=F.forwardRef((n,e)=>{const{value:t,defaultValue:o,onValueChange:i=()=>{},collapsible:r=!1,...l}=n,[a,s]=cn({prop:t,defaultProp:o??"",onChange:i,caller:X});return E.jsx(_n,{scope:n.__scopeAccordion,value:F.useMemo(()=>a?[a]:[],[a]),onItemOpen:s,onItemClose:F.useCallback(()=>r&&s(""),[r,s]),children:E.jsx($n,{scope:n.__scopeAccordion,collapsible:r,children:E.jsx(Dn,{...l,ref:e})})})}),Mt=F.forwardRef((n,e)=>{const{value:t,defaultValue:o,onValueChange:i=()=>{},...r}=n,[l,a]=cn({prop:t,defaultProp:o??[],onChange:i,caller:X}),s=F.useCallback(y=>a((u=[])=>[...u,y]),[a]),g=F.useCallback(y=>a((u=[])=>u.filter(c=>c!==y)),[a]);return E.jsx(_n,{scope:n.__scopeAccordion,value:l,onItemOpen:s,onItemClose:g,children:E.jsx($n,{scope:n.__scopeAccordion,collapsible:!0,children:E.jsx(Dn,{...r,ref:e})})})}),[Ht,De]=$e(X),Dn=F.forwardRef((n,e)=>{const{__scopeAccordion:t,disabled:o,dir:i,orientation:r="vertical",...l}=n,a=F.useRef(null),s=Xn(a,e),g=kt(t),u=Jn(i)==="ltr",c=Yn(n.onKeyDown,m=>{if(!Nt.includes(m.key))return;const h=m.target,A=g().filter(T=>!T.ref.current?.disabled),P=A.findIndex(T=>T.ref.current===h),S=A.length;if(P===-1)return;m.preventDefault();let I=P;const k=0,L=S-1,V=()=>{I=P+1,I>L&&(I=k)},R=()=>{I=P-1,I<k&&(I=L)};switch(m.key){case"Home":I=k;break;case"End":I=L;break;case"ArrowRight":r==="horizontal"&&(u?V():R());break;case"ArrowDown":r==="vertical"&&V();break;case"ArrowLeft":r==="horizontal"&&(u?R():V());break;case"ArrowUp":r==="vertical"&&R();break}const w=I%S;A[w].ref.current?.focus()});return E.jsx(Ht,{scope:t,disabled:o,direction:i,orientation:r,children:E.jsx(qe.Slot,{scope:t,children:E.jsx(sn.div,{...l,"data-orientation":r,ref:s,onKeyDown:o?void 0:c})})})}),Re="AccordionItem",[jt,Je]=$e(Re),Mn=F.forwardRef((n,e)=>{const{__scopeAccordion:t,value:o,...i}=n,r=De(Re,t),l=_t(Re,t),a=Xe(t),s=Fn(),g=o&&l.value.includes(o)||!1,y=r.disabled||n.disabled;return E.jsx(jt,{scope:t,open:g,disabled:y,triggerId:s,children:E.jsx(et,{"data-orientation":r.orientation,"data-state":Vn(g),...a,...i,ref:e,disabled:y,open:g,onOpenChange:u=>{u?l.onItemOpen(o):l.onItemClose(o)}})})});Mn.displayName=Re;var Hn="AccordionHeader",jn=F.forwardRef((n,e)=>{const{__scopeAccordion:t,...o}=n,i=De(X,t),r=Je(Hn,t);return E.jsx(sn.h3,{"data-orientation":i.orientation,"data-state":Vn(r.open),"data-disabled":r.disabled?"":void 0,...o,ref:e})});jn.displayName=Hn;var Be="AccordionTrigger",Tn=F.forwardRef((n,e)=>{const{__scopeAccordion:t,...o}=n,i=De(X,t),r=Je(Be,t),l=$t(Be,t),a=Xe(t);return E.jsx(qe.ItemSlot,{scope:t,children:E.jsx(Qn,{"aria-disabled":r.open&&!l.collapsible||void 0,"data-orientation":i.orientation,id:r.triggerId,...a,...o,ref:e})})});Tn.displayName=Be;var Gn="AccordionContent",On=F.forwardRef((n,e)=>{const{__scopeAccordion:t,...o}=n,i=De(X,t),r=Je(Gn,t),l=Xe(t);return E.jsx(nt,{role:"region","aria-labelledby":r.triggerId,"data-orientation":i.orientation,...l,...o,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...n.style}})});On.displayName=Gn;function Vn(n){return n?"open":"closed"}var Tt=Ln,Gt=Mn,Ot=jn,Vt=Tn,Bt=On;function Yt(n){const e=le.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=E.jsx(Tt,{"data-slot":"accordion",...t}),e[2]=t,e[3]=o):o=e[3],o}function Zt(n){const e=le.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let i;e[3]!==t?(i=Se("border-b last:border-b-0",t),e[3]=t,e[4]=i):i=e[4];let r;return e[5]!==o||e[6]!==i?(r=E.jsx(Gt,{"data-slot":"accordion-item",className:i,...o}),e[5]=o,e[6]=i,e[7]=r):r=e[7],r}function Qt(n){const e=le.c(11);let t,o,i;e[0]!==n?({className:o,children:t,...i}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=i):(t=e[1],o=e[2],i=e[3]);let r;e[4]!==o?(r=Se("focus-visible:border-ring focus-visible:ring-ring/20 flex flex-1 items-center justify-between gap-4 py-4 text-left text-sm font-medium transition-all outline-none hover:bg-accent/50 focus-visible:ring-[2px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-90",o),e[4]=o,e[5]=r):r=e[5];let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=E.jsx(tt,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 transition-transform duration-200"}),e[6]=l):l=e[6];let a;return e[7]!==t||e[8]!==i||e[9]!==r?(a=E.jsx(Ot,{className:"flex",children:E.jsxs(Vt,{"data-slot":"accordion-trigger",className:r,...i,children:[t,l]})}),e[7]=t,e[8]=i,e[9]=r,e[10]=a):a=e[10],a}function eo(n){const e=le.c(12);let t,o,i;e[0]!==n?({className:o,children:t,...i}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=i):(t=e[1],o=e[2],i=e[3]);let r;e[4]!==o?(r=Se("pt-0 pb-4",o),e[4]=o,e[5]=r):r=e[5];let l;e[6]!==t||e[7]!==r?(l=E.jsx("div",{className:r,children:t}),e[6]=t,e[7]=r,e[8]=l):l=e[8];let a;return e[9]!==i||e[10]!==l?(a=E.jsx(Bt,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...i,children:l}),e[9]=i,e[10]=l,e[11]=a):a=e[11],a}export{Qt as A,Xt as R,eo as a,Yt as b,Zt as c,Jt as d,qt as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as M,r as S,j as o,l as q}from"./index-CJoBkEf_.js";import{S as G}from"./scroll-area-DCO9LjjC.js";import{j as H,ah as J,d as Q}from"./index-pO-YX1wf.js";import{S as U}from"./schema-form-B58UjuIl.js";import{S as W}from"./save-status-B_RrNks8.js";import"./select-D3xFKLhW.js";import"./tooltip-BseNApEN.js";import"./Check-8AgR6ZjG.js";import"./ChevronDown-DhOfQXzQ.js";import"./ChevronUp-BJ7RKHi2.js";import"./agent-capabilities-CpWXCeRz.js";import"./pair-B1HhmTC2.js";import"./agent-icon-ExlCX9f5.js";import"./AlertCircle-C0w7vkhj.js";import"./Tool01-BcHwzAg_.js";import"./SwitchHorizontal01-5B3DSr8e.js";import"./RefreshCcw01-DVTjMN9w.js";import"./XCircle-8FTuCNvR.js";import"./ArrowUpRight-DNyQYu-V.js";import"./ZapSquare-wTPdLQod.js";import"./Users03-Cgth-3GS.js";import"./CheckCircle-CEi1N2Mq.js";import"./ChevronRight-DQs4tkMm.js";import"./DotsVertical-C00j11Qg.js";import"./Container-nZYBPJRv.js";import"./Eye-B7Xkt1CB.js";import"./Globe01-Uo6KHfk2.js";import"./FilterLines-FHjfh1pF.js";import"./ZoomOut-NkImUVHk.js";import"./Star01-CeDy0qEH.js";import"./Palette-Toq4eQ-J.js";import"./HardDrive-CGMuM2Oy.js";import"./Stars02-ButLG8tI.js";import"./Key01-BIkGax_i.js";import"./sheet-y48NbizY.js";import"./X-FDfBE4i9.js";import"./LinkExternal01-DycVPnNy.js";import"./Monitor01-D1U6Pa3W.js";import"./Sun-DB_K22EW.js";import"./Play-CA-oDPY7.js";import"./Plus-DgS5eNSe.js";import"./SearchMd-WbJoDaWs.js";import"./Settings02-rrw51k4M.js";import"./Shield01-5itVZGiR.js";import"./Stars01-DYDsxZnS.js";import"./Trash01-C9vkf5T6.js";import"./Upload01-BXTkAAEz.js";import"./User01-C3qNbl-c.js";import"./Users01-C95xm0Ia.js";import"./XClose-BfJTW_HK.js";import"./Zap-DK6MOOIv.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-B4ijm3eQ.js";import"./file-type-icon-DWtzaQPp.js";import"./dialog-C3j-c3SR.js";import"./content-blocks-o63cs2vh.js";import"./types-CEUmohd_.js";import"./constants-P1xnRFeX.js";import"./chat-context-T6Hxtz67.js";import"./tab-id-BfrA42Sy.js";import"./decopilot-sse-pool-CnTXTZP-.js";import"./create-sse-subscription-BS5983N4.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./use-virtual-mcp-C09vm-BM.js";import"./use-collections-C-e494pb.js";import"./use-ai-providers-DSjz3Xn-.js";import"./use-organization-settings-D5g7NFw1.js";import"./shell-layout-CtsnLkL0.js";import"./avatar-GGBvmgaP.js";import"./required-auth-layout-D_pVrMnQ.js";import"./useRouterState-BjzQ0bsm.js";import"./use-org-sso-Bm8Zb6fp.js";import"./integration-icon-DYz5eywh.js";import"./use-navigate-to-agent-BLkLok3n.js";import"./use-connection-COB3wZyv.js";import"./use-mcp-prompts-CLrlZKHJ.js";import"./form-w7JkvptQ.js";import"./label-09bf4ZUr.js";import"./input-BZDQfdYn.js";import"./spinner-BLcfraim.js";import"./drawer-ySjhgvkO.js";import"./collection-search-loHJ7IYX.js";import"./tabs-Dj3HihPI.js";import"./toggle-group-CgAd7Mg_.js";import"./agent-icons-DAJPmC7Z.js";import"./checkbox-DotF6hoA.js";import"./skeleton-BWDI6b5B.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-xKZ0B7RQ.js";import"./card-7rOCFixx.js";import"./connect-desktop-dialog-BjjpdcQ_.js";import"./popover-D7H0zNnu.js";import"./command-CYcMZe50.js";import"./index-CswQOvGx.js";import"./useInfiniteQuery--C6hdwWo.js";import"./infiniteQueryObserver-hzkIseBw.js";import"./sortable.esm-D1-ateSo.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-C98P6TUE.js";import"./use-registry-connections-BfC5RU93.js";import"./extract-connection-data-DQPoIIzo.js";import"./generate-id-BsvOSxwt.js";import"./collections-BY2lU4NZ.js";import"./collection-tabs-IuChGrKO.js";import"./badge-BYAYJbYP.js";import"./textarea-Kw6SbqZA.js";import"./connection-form-helpers-B_et0Rp5.js";import"./use-infinite-scroll-BTrNIqxO.js";import"./useSuspenseInfiniteQuery-BZeP3q20.js";import"./index-NioO90_M.js";import"./dropdown-menu-DKiorR9d.js";import"./question-004-sINsf4GQ.js";import"./shell-route-loading-2R_HkOJm.js";import"./sidebar-BNHENVF_.js";import"./toolbar-D7UKSzZi.js";import"./use-create-virtual-mcp-DHggusOz.js";import"./github-repo-picker-B_v87FGw.js";import"./use-mcp-tools-BdUmFkbH.js";import"./alert-dialog-rlUwGNsJ.js";import"./index-vNb1uvqd.js";import"./use-org-auth-client-Bl3vPuak.js";import"./hover-card-B_RJCrCA.js";import"./task-status-gyYC-BVM.js";import"./use-status-sounds-9imVHc_4.js";import"./empty-state-D0UPz__M.js";import"./accordion-BrfX2IfA.js";import"./use-capability-BETReHdP.js";import"./monaco-editor-B2MBxzPo.js";import"./user-Coaz5g4K.js";import"./tools-list-X7Olg8ty.js";import"./switch-DFEmgVSQ.js";import"./use-debounced-autosave-7RLEJTRO.js";import"./index-mPypacb-.js";import"./search-input-BkjmAgNX.js";import"./use-secrets-BjVtsdxA.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-CoifNzqg.js";import"./select-model-DClZJUk2.js";import"./use-automations-DD-gzzG-.js";import"./automation-runs-B9Hv9eE-.js";import"./table-zHqbyGEy.js";import"./use-members-CaSqF02H.js";import"./automation-list-row-BYivUbaE.js";import"./file-preview-kcOvLrSx.js";import"./calendar-xjXZIDeb.js";import"./image-field-Cru0b2ZK.js";import"./use-file-configs-BXchIe2N.js";function zo(g){const t=M.c(38),{orgSlug:N,virtualMcpId:_,branch:k,blockKey:r,block:i,meta:m,title:E,excludeFields:n,schemaPending:C}=g,P=C===void 0?!1:C,e=typeof i?.__resolveType=="string"?i.__resolveType:"";let d;if(t[0]!==n||t[1]!==m||t[2]!==e){const c=e?H(e,m):null;d=c&&n?.length?{...c,properties:Object.fromEntries(Object.entries(c.properties??{}).filter(y=>{const[I]=y;return!n.includes(I)}))}:c,t[0]=n,t[1]=m,t[2]=e,t[3]=d}else d=t[3];const f=d;let u;t[4]!==i||t[5]!==r||t[6]!==m||t[7]!==E?(u=E??(i?J(r,i,m):r),t[4]=i,t[5]=r,t[6]=m,t[7]=E,t[8]=u):u=t[8];const B=u;let x;t[9]!==k||t[10]!==N||t[11]!==_?(x={orgSlug:N,virtualMcpId:_,branch:k},t[9]=k,t[10]=N,t[11]=_,t[12]=x):x=t[12];const{save:K,isPending:R}=Q(x),[A,L]=S.useState(r),[z,O]=S.useState(null),[V,D]=S.useState(0);let h;t[13]===Symbol.for("react.memo_cache_sentinel")?(h=[],t[13]=h):h=t[13];const[w,$]=S.useState(h);A!==r&&(L(r),O(null),D(X),$([]));let v;t[14]!==i?(v=i??{},t[14]=i,t[15]=v):v=t[15];const F=z??v;let b;t[16]!==r||t[17]!==e||t[18]!==K?(b=c=>{const y=c;O(y),K(r,{...y,__resolveType:e})},t[16]=r,t[17]=e,t[18]=K,t[19]=b):b=t[19];const T=b;let p;t[20]!==B?(p=o.jsx("span",{className:"text-sm font-medium",children:B}),t[20]=B,t[21]=p):p=t[21];let s;t[22]!==R?(s=o.jsx(W,{isPending:R,isError:!1}),t[22]=R,t[23]=s):s=t[23];let l;t[24]!==p||t[25]!==s?(l=o.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[p,s]}),t[24]=p,t[25]=s,t[26]=l):l=t[26];let a;t[27]!==r||t[28]!==w||t[29]!==F||t[30]!==V||t[31]!==T||t[32]!==f||t[33]!==P?(a=o.jsx(G,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-6 py-6",children:o.jsx("div",{className:"mx-auto max-w-xl",children:f?o.jsx(U,{schema:f,value:F,onChange:T,basePath:"",breadcrumbPath:w,onBreadcrumbChange:$},`${r}:${V}`):P?o.jsxs("div",{className:"flex flex-col items-center gap-2 py-6 text-center text-xs text-muted-foreground",children:[o.jsx(q,{size:16,className:"animate-spin"}),"Loading app schema…"]}):o.jsx("div",{className:"py-6 text-center text-xs text-muted-foreground",children:"No editable schema found for this app."})})})}),t[27]=r,t[28]=w,t[29]=F,t[30]=V,t[31]=T,t[32]=f,t[33]=P,t[34]=a):a=t[34];let j;return t[35]!==l||t[36]!==a?(j=o.jsxs("div",{className:"flex h-full flex-col",children:[l,a]}),t[35]=l,t[36]=a,t[37]=j):j=t[37],j}function X(g){return g+1}export{zo as AppEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{R as Ke,U as te,e as C,j as t,E as Te,r as w,q as le,G as Ge,c as J,bg as Qe,l as ie,d as Ye,M as G,B as W,o as Xe,g as ae,bh as ke}from"./index-CJoBkEf_.js";import{E as Pe}from"./empty-state-D0UPz__M.js";import{u as Ze,a as Ee}from"./use-collections-C-e494pb.js";import{u as ce}from"./constants-P1xnRFeX.js";import{F as se,a as et,b as de,d as me}from"./form-w7JkvptQ.js";import{I as ue}from"./input-BZDQfdYn.js";import{T as re}from"./textarea-Kw6SbqZA.js";import{a as tt,b as st,V as pe}from"./layout-hMbyvZRj.js";import{S as ot,W as nt,a as rt}from"./index-B7LqxKQ-.js";import{g as lt,M as it,b as je}from"./types-CEUmohd_.js";import{A as at,a as ct,b as dt}from"./alert-saVtzR2u.js";import{d as be,S as Ne,a as ve,b as Se,c as oe}from"./select-D3xFKLhW.js";import{c as mt,b as ye,T as we,a as Ce}from"./tooltip-BseNApEN.js";import{i as ut}from"./AlertCircle-C0w7vkhj.js";import{O as pt,M as xt,a6 as ft,a7 as ht,a8 as gt,E as Ie}from"./agent-icon-ExlCX9f5.js";import{a as jt}from"./Eye-B7Xkt1CB.js";import{i as bt}from"./Play-CA-oDPY7.js";import{i as Nt}from"./ChevronRight-DQs4tkMm.js";import{O as vt,M as St}from"./index-CKPUoGqe.js";import{g as yt}from"./connection-slug-eyAPH6o3.js";import{u as wt,T as Ct}from"./tools-list-X7Olg8ty.js";import{a as Oe,u as _e}from"./use-connection-COB3wZyv.js";import{b as It}from"./use-mcp-tools-BdUmFkbH.js";import{c as $t}from"./content-blocks-o63cs2vh.js";import{I as $e}from"./integration-icon-DYz5eywh.js";import{f as Tt,i as kt}from"./chat-context-T6Hxtz67.js";import{u as Pt}from"./shell-layout-CtsnLkL0.js";import{M as Et}from"./monaco-editor-B2MBxzPo.js";import{E as Ot}from"./empty-state-CsQfijIL.js";import{n as _t}from"./Container-nZYBPJRv.js";import"./label-09bf4ZUr.js";import"./index-mPypacb-.js";import"./sidebar-BNHENVF_.js";import"./sheet-y48NbizY.js";import"./X-FDfBE4i9.js";import"./index-Ck3k86Ip.js";import"./collections-BY2lU4NZ.js";import"./index-C4kuSARI.js";import"./use-virtual-mcp-C09vm-BM.js";import"./accordion-BrfX2IfA.js";import"./scroll-area-DCO9LjjC.js";import"./badge-BYAYJbYP.js";import"./spinner-BLcfraim.js";import"./view-mode-toggle-CoifNzqg.js";import"./dialog-C3j-c3SR.js";import"./index-NioO90_M.js";import"./hover-card-B_RJCrCA.js";import"./dropdown-menu-DKiorR9d.js";import"./Check-8AgR6ZjG.js";import"./DotsVertical-C00j11Qg.js";import"./Plus-DgS5eNSe.js";import"./Tool01-BcHwzAg_.js";import"./XClose-BfJTW_HK.js";import"./index-vNb1uvqd.js";import"./create-sse-subscription-BS5983N4.js";import"./ChevronDown-DhOfQXzQ.js";import"./ChevronUp-BJ7RKHi2.js";import"./SwitchHorizontal01-5B3DSr8e.js";import"./RefreshCcw01-DVTjMN9w.js";import"./XCircle-8FTuCNvR.js";import"./ArrowUpRight-DNyQYu-V.js";import"./ZapSquare-wTPdLQod.js";import"./Users03-Cgth-3GS.js";import"./CheckCircle-CEi1N2Mq.js";import"./Globe01-Uo6KHfk2.js";import"./FilterLines-FHjfh1pF.js";import"./ZoomOut-NkImUVHk.js";import"./Star01-CeDy0qEH.js";import"./Palette-Toq4eQ-J.js";import"./HardDrive-CGMuM2Oy.js";import"./Stars02-ButLG8tI.js";import"./Key01-BIkGax_i.js";import"./LinkExternal01-DycVPnNy.js";import"./Monitor01-D1U6Pa3W.js";import"./Sun-DB_K22EW.js";import"./SearchMd-WbJoDaWs.js";import"./Settings02-rrw51k4M.js";import"./Shield01-5itVZGiR.js";import"./Stars01-DYDsxZnS.js";import"./Trash01-C9vkf5T6.js";import"./Upload01-BXTkAAEz.js";import"./User01-C3qNbl-c.js";import"./Users01-C95xm0Ia.js";import"./Zap-DK6MOOIv.js";import"./extract-connection-data-DQPoIIzo.js";import"./generate-id-BsvOSxwt.js";import"./use-registry-connections-BfC5RU93.js";import"./use-organization-settings-D5g7NFw1.js";import"./index-CswQOvGx.js";import"./popover-D7H0zNnu.js";import"./use-create-virtual-mcp-DHggusOz.js";import"./use-navigate-to-agent-BLkLok3n.js";import"./tab-id-BfrA42Sy.js";import"./decopilot-sse-pool-CnTXTZP-.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./use-ai-providers-DSjz3Xn-.js";import"./avatar-GGBvmgaP.js";import"./required-auth-layout-D_pVrMnQ.js";import"./useRouterState-BjzQ0bsm.js";import"./use-org-sso-Bm8Zb6fp.js";Ke({title:te().min(1),description:te().nullable(),body:te()});function ne(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function At(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(o=>o==="mcps"),n=e>=0?s[e+1]:void 0;return n?decodeURIComponent(n):void 0}function Rt(s){const e=C.c(13),{form:n}=s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Details"}),e[0]=o):o=e[0];let r;e[1]!==n.control?(r=t.jsxs("div",{className:"flex flex-col gap-4",children:[o,t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[t.jsx(se,{control:n.control,name:"title",render:Ut}),t.jsx(se,{control:n.control,name:"description",render:Dt})]})]}),e[1]=n.control,e[2]=r):r=e[2];let l,a;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Message"}),a=t.jsx("div",{className:"text-xs text-muted-foreground",children:"This becomes the user message in the prompt."}),e[3]=l,e[4]=a):(l=e[3],a=e[4]);let c;e[5]!==n.control?(c=t.jsxs("div",{className:"flex flex-col gap-2",children:[l,a,t.jsx(se,{control:n.control,name:"body",render:Mt})]}),e[5]=n.control,e[6]=c):c=e[6];let i;e[7]!==r||e[8]!==c?(i=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[r,c]}),e[7]=r,e[8]=c,e[9]=i):i=e[9];let p;return e[10]!==n||e[11]!==i?(p=t.jsx(et,{...n,children:i}),e[10]=n,e[11]=i,e[12]=p):p=e[12],p}function Mt(s){const{field:e}=s;return t.jsx(de,{children:t.jsx(me,{children:t.jsx(re,{...e,value:e.value??"",placeholder:"Write the prompt message…",className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})}function Dt(s){const{field:e}=s;return t.jsxs(de,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Description"}),t.jsx(me,{children:t.jsx(ue,{...e,value:e.value??"",placeholder:"Add a description…",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Ut(s){const{field:e}=s;return t.jsxs(de,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Title"}),t.jsx(me,{children:t.jsx(ue,{...e,placeholder:"Untitled prompt",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function zt(s){const e=C.c(36),{providerId:n,promptId:o}=s,{org:r}=le(),l=n||null;let a;e[0]!==r.id||e[1]!==r.slug||e[2]!==l?(a={connectionId:l,orgId:r.id,orgSlug:r.slug},e[0]=r.id,e[1]=r.slug,e[2]=l,e[3]=a):a=e[3];const c=ce(a),i=Ze(n,"PROMPT",o,c),p=Ee(n,"PROMPT",c),f=p.update.isPending;let u;e[4]!==i?(u=i?{title:i.title,description:i.description??null,body:ne(i)}:void 0,e[4]=i,e[5]=u):u=e[5];let h;e[6]!==u?(h={values:u},e[6]=u,e[7]=h):h=e[7];const N=Ge(h);let T;e[8]!==N||e[9]!==i?(T=()=>{i&&N.reset({title:i.title,description:i.description??null,body:ne(i)})},e[8]=N,e[9]=i,e[10]=T):T=e[10];const O=T;let _;e[11]!==p.update||e[12]!==N||e[13]!==o?(_=N.handleSubmit(async j=>{const P=await p.update.mutateAsync({id:o,data:{title:j.title,description:j.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:j.body}}]}});N.reset({title:P.title,description:P.description??null,body:ne(P)})}),e[11]=p.update,e[12]=N,e[13]=o,e[14]=_):_=e[14];const A=_;if(!i){let j;return e[15]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Pe,{title:"Prompt not found",description:"This prompt may have been deleted or you may not have access to it."})}),e[15]=j):j=e[15],j}let y;e[16]!==i.title?(y=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:i.title}),e[16]=i.title,e[17]=y):y=e[17];let k;e[18]!==i.description?(k=i.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:i.description})]}):null,e[18]=i.description,e[19]=k):k=e[19];let I;e[20]!==y||e[21]!==k?(I=t.jsx(st,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[y,k]})}),e[20]=y,e[21]=k,e[22]=I):I=e[22];let g;e[23]!==A?(g=()=>{A()},e[23]=A,e[24]=g):g=e[24];let v;e[25]!==N.formState.isDirty||e[26]!==f||e[27]!==O||e[28]!==g?(v=t.jsx(tt,{children:t.jsx(ot,{onSave:g,onUndo:O,isDirty:N.formState.isDirty,isSaving:f})}),e[25]=N.formState.isDirty,e[26]=f,e[27]=O,e[28]=g,e[29]=v):v=e[29];let S;e[30]!==N?(S=t.jsx("div",{className:"h-full",children:t.jsx(Rt,{form:N})}),e[30]=N,e[31]=S):S=e[31];let $;return e[32]!==v||e[33]!==S||e[34]!==I?($=t.jsxs(pe,{children:[I,v,S]}),e[32]=v,e[33]=S,e[34]=I,e[35]=$):$=e[35],$}function Bt(s){const e=C.c(4),{itemId:n}=s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=At(),e[0]=o):o=e[0];const r=o;if(!r){let a;return e[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Pe,{title:"Prompt not found",description:"Missing connection information in the current route."})}),e[1]=a):a=e[1],a}let l;return e[2]!==n?(l=t.jsx(Te,{children:t.jsx(w.Suspense,{fallback:null,children:t.jsx(zt,{providerId:r,promptId:n})})}),e[2]=n,e[3]=l):l=e[3],l}function Ae(s){const e=C.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let r;e[3]!==n?(r=J("min-w-0 overflow-hidden",n),e[3]=n,e[4]=r):r=e[4];let l;return e[5]!==o||e[6]!==r?(l=t.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:r,...o}),e[5]=o,e[6]=r,e[7]=l):l=e[7],l}function Re(s){const e=C.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let r;e[3]!==n?(r=J("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden",n),e[3]=n,e[4]=r):r=e[4];let l;return e[5]!==o||e[6]!==r?(l=t.jsx("ol",{"data-slot":"breadcrumb-list",className:r,...o}),e[5]=o,e[6]=r,e[7]=l):l=e[7],l}function V(s){const e=C.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let r;e[3]!==n?(r=J("inline-flex items-center gap-1.5 min-w-0",n),e[3]=n,e[4]=r):r=e[4];let l;return e[5]!==o||e[6]!==r?(l=t.jsx("li",{"data-slot":"breadcrumb-item",className:r,...o}),e[5]=o,e[6]=r,e[7]=l):l=e[7],l}function Q(s){const e=C.c(10);let n,o,r;e[0]!==s?({asChild:n,className:o,...r}=s,e[0]=s,e[1]=n,e[2]=o,e[3]=r):(n=e[1],o=e[2],r=e[3]);const l=n?Qe:"a";let a;e[4]!==o?(a=J("hover:text-foreground transition-colors truncate",o),e[4]=o,e[5]=a):a=e[5];let c;return e[6]!==l||e[7]!==r||e[8]!==a?(c=t.jsx(l,{"data-slot":"breadcrumb-link",className:a,...r}),e[6]=l,e[7]=r,e[8]=a,e[9]=c):c=e[9],c}function Me(s){const e=C.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let r;e[3]!==n?(r=J("text-foreground font-medium truncate",n),e[3]=n,e[4]=r):r=e[4];let l;return e[5]!==o||e[6]!==r?(l=t.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:r,...o}),e[5]=o,e[6]=r,e[7]=l):l=e[7],l}function Y(s){const e=C.c(12);let n,o,r;e[0]!==s?({children:n,className:o,...r}=s,e[0]=s,e[1]=n,e[2]=o,e[3]=r):(n=e[1],o=e[2],r=e[3]);let l;e[4]!==o?(l=J("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",o),e[4]=o,e[5]=l):l=e[5];let a;e[6]!==n?(a=n??t.jsx(Nt,{}),e[6]=n,e[7]=a):a=e[7];let c;return e[8]!==r||e[9]!==l||e[10]!==a?(c=t.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:l,...r,children:a}),e[8]=r,e[9]=l,e[10]=a,e[11]=c):c=e[11],c}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ft(s){const e=C.c(11),{toolName:n,connectionId:o,siblings:r,onSelectInstance:l,onBack:a}=s;let c;e[0]!==o?(c={connectionId:o},e[0]=o,e[1]=c):c=e[1];const i=wt(c);if(!i.isAuthenticated){let u;return e[2]!==i.supportsOAuth||e[3]!==a?(u=t.jsx("div",{className:"flex h-full items-center justify-center",children:i.supportsOAuth?t.jsx(vt,{onAuthenticate:()=>a(),buttonText:"Go back to authenticate"}):t.jsx(St,{hasReadme:!1})}),e[2]=i.supportsOAuth,e[3]=a,e[4]=u):u=e[4],u}const p=`${o}:${n}`;let f;return e[5]!==o||e[6]!==l||e[7]!==r||e[8]!==p||e[9]!==n?(f=t.jsx(Vt,{toolName:n,connectionId:o,siblings:r,onSelectInstance:l},p),e[5]=o,e[6]=l,e[7]=r,e[8]=p,e[9]=n,e[10]=f):f=e[10],f}function Vt({toolName:s,connectionId:e,siblings:n,onSelectInstance:o}){const{replayId:r}=Ye({strict:!1}),l=(()=>{if(!r)return null;const d=`replay-${r}`,m=sessionStorage.getItem(d);if(!m)return null;sessionStorage.removeItem(d);try{return JSON.parse(m)}catch{return null}})(),a=(()=>{if(!l)return null;const d={};for(const[m,b]of Object.entries(l))b!==null&&typeof b=="object"?d[m]=JSON.stringify(b,null,2):d[m]=b;return d})(),[c,i]=w.useState(a??{}),[p,f]=w.useState(l?JSON.stringify(l,null,2):"{}"),[u,h]=w.useState(null),[N,T]=w.useState(null),[O,_]=w.useState(null),[A,y]=w.useState(null),[k,I]=w.useState(!1),[g,v]=w.useState(null),{org:S}=le(),$=Oe(e),j=Tt(),P=kt(),{setChatOpen:z}=Pt(),D=`${e}:${s}`,R=ce({connectionId:e,orgId:S.id,orgSlug:S.slug}),U=It({client:R}),x=U.data?.tools?.find(d=>d.name===s),E=lt(x?._meta),B=d=>{if(!j)return;const m=$t(d.content);m.content.length>0&&(z(!0),j.sendMessage({tiptapDoc:m}))},[M,X]=w.useState("json"),[De,Ue]=w.useState(!1);E&&!De&&(X("ui"),Ue(!0));const xe=x?.inputSchema?.properties,fe=xe?Object.keys(xe):[],q=fe.length>0,H={};if(q&&x?.inputSchema?.properties)for(const d of fe)H[d]=x.inputSchema.required?.includes(d)?"":void 0;const Z=d=>Object.prototype.hasOwnProperty.call(c,d),ze=async()=>{I(!0),y(null),h(null),T(null),_(null),v(null);const d=performance.now();try{if(!R)throw new Error("MCP client is not available");const m=q?{...H,...c}:(()=>{const L=p.trim();if(!L)return{};const F=JSON.parse(L);if(F&&typeof F=="object")return F;throw new Error("Raw JSON input must be an object.")})();q&&x?.inputSchema?.properties&&Object.entries(x.inputSchema.properties).forEach(([L,F])=>{if((F.type==="object"||F.type==="array")&&typeof m[L]=="string")try{m[L]=JSON.parse(m[L])}catch{}});const b=await R.callTool({name:s,arguments:m}),K=b.structuredContent??b,qe=performance.now(),We=Math.round(qe-d);h(K),T(b),_(m);const He=JSON.stringify(K),ge=new TextEncoder().encode(He).length;v({duration:`${We}ms`,bytes:`${ge} bytes`,tokens:`~${Math.ceil(ge/4)} tokens`,cost:"$0.0000"})}catch(m){const b=m instanceof Error?m.message:String(m);y(b||"Unknown error occurred");const K=performance.now();v({duration:`${Math.round(K-d)}ms`})}finally{I(!1)}},ee=(d,m)=>{i(b=>({...b,[d]:m}))},Be=()=>{h(null),T(null),_(null),y(null),v(null)},Le=x?.name??Lt(s),Fe=t.jsx(Ae,{children:t.jsxs(Re,{children:[t.jsx(V,{children:t.jsx(Q,{asChild:!0,children:t.jsx(G,{to:"/$org/settings/connections",params:{org:S.slug},children:"Connections"})})}),t.jsx(Y,{}),$&&t.jsxs(t.Fragment,{children:[t.jsx(V,{children:t.jsx(Q,{asChild:!0,children:t.jsx(G,{to:"/$org/settings/connections/$appSlug",params:{org:S.slug,appSlug:yt($)},search:{tab:"tools"},children:$.title})})}),t.jsx(Y,{})]}),t.jsx(V,{children:t.jsx(Me,{children:Le})})]})}),he=n.length>1&&t.jsxs(be,{value:e,onValueChange:o,children:[t.jsx(Ne,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(ve,{})}),t.jsx(Se,{children:n.map(d=>t.jsx(oe,{value:d.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx($e,{icon:d.icon,name:d.title,size:"xs",className:"shrink-0"}),d.title]})},d.id))})]}),Ve=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Parameters"}),x?.inputSchema?.required&&x.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-red-500",children:"*"})," Required"]})]}),t.jsx("div",{className:"space-y-4",children:q&&x?.inputSchema?.properties?Object.entries(x.inputSchema.properties).map(([d,m])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[d,x.inputSchema?.required?.includes(d)&&t.jsx("span",{className:"text-red-500 text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:m.type})]}),m.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:m.description}),m.type==="object"||m.type==="array"?t.jsx(re,{className:"font-mono text-xs",value:Z(d)?c[d]??"":H[d]??"",onChange:b=>ee(d,b.target.value),placeholder:`Enter ${d} as JSON...`,rows:3}):m.type==="boolean"?t.jsxs(be,{value:Z(d)?String(c[d]??""):"",onValueChange:b=>ee(d,b==="true"),children:[t.jsx(Ne,{children:t.jsx(ve,{placeholder:"Select true or false..."})}),t.jsxs(Se,{children:[t.jsx(oe,{value:"true",children:"true"}),t.jsx(oe,{value:"false",children:"false"})]})]}):t.jsx(ue,{value:Z(d)?c[d]??"":H[d]??"",onChange:b=>ee(d,b.target.value),placeholder:`Enter ${d}...`})]},d)):x?.inputSchema&&!q?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:"Raw JSON Input"}),t.jsx(re,{className:"font-mono text-xs min-h-[120px]",value:p,onChange:d=>f(d.target.value),placeholder:'e.g. { "foo": "bar" }'})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:"No parameters required"})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:k?t.jsxs(W,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Be,children:[t.jsx(pt,{className:"h-3.5 w-3.5"}),"Cancel"]}):t.jsxs(W,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:ze,children:[t.jsx(bt,{className:"h-3.5 w-3.5 fill-current"}),"Execute Tool"]})})]}),Je=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:"Result"}),t.jsxs("div",{className:"flex items-center gap-3",children:[g&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(xt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:g.duration})]}),g.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ft,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:g.tokens})]}),g.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ht,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:g.bytes})]}),g.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:g.cost})})]}),E&&t.jsx(mt,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(ye,{children:[t.jsx(we,{asChild:!0,children:t.jsx(W,{size:"icon",variant:M==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("ui"),children:t.jsx(gt,{size:14})})}),t.jsx(Ce,{children:"Interactive view"})]}),t.jsxs(ye,{children:[t.jsx(we,{asChild:!0,children:t.jsx(W,{size:"icon",variant:M==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("json"),children:t.jsx(Ie,{size:14})})}),t.jsx(Ce,{children:"JSON view"})]})]})})]})]}),A&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(at,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(ut,{className:"h-4 w-4"}),t.jsx(ct,{className:"mb-0",children:"Execution Failed"})]}),t.jsx(dt,{className:"text-xs text-destructive",children:A})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:E&&M==="ui"&&R?t.jsx(w.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),t.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),children:t.jsx(it,{resourceURI:E,toolInfo:x?{tool:x}:void 0,toolInput:O??void 0,toolResult:N??void 0,displayMode:"fullscreen",minHeight:je.view.minHeight,maxHeight:je.view.maxHeight,client:R,onMessage:B,onUpdateModelContext:d=>P?.setAppContext(D,d),onTeardown:()=>P?.clearAppContext(D),className:"h-full"})}):u?t.jsxs(t.Fragment,{children:[t.jsx(Et,{code:JSON.stringify(u,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(W,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(u,null,2)),Xe.success("Copied to clipboard")},children:t.jsx(jt,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(Ie,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:"Run the tool to see results"})]})})]});return t.jsx(pe,{breadcrumb:Fe,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx($e,{icon:$?.icon||null,name:$?.title||s,size:"xl",className:"shrink-0"}),t.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground leading-none truncate",children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[U.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500 animate-pulse shrink-0"}):U.isLoading?t.jsx(ie,{size:10,className:"animate-spin text-yellow-500 shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-red-500 shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:U.isSuccess?"ready":U.isLoading?"connecting":"error"})]}),t.jsx(Ct,{annotations:x?.annotations,_meta:x?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:he})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:x?.description||"No description available"})]}),n.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:"Instance"}),he]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Ve}),Je]})})]})})}function Jt(s){const e=C.c(10),{itemId:n,siblings:o,onBack:r}=s,[l,a]=w.useState(o[0]?.id??"");let c;e[0]!==l||e[1]!==o?(c=o.find(h=>h.id===l)?.id??o[0]?.id??"",e[0]=l,e[1]=o,e[2]=c):c=e[2];const i=c;if(!Oe(i||void 0)||!i){let h;return e[3]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[t.jsx("h3",{className:"text-lg font-semibold",children:"Connection not found"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"This connection may have been deleted or you may not have access."})]})}),e[3]=h):h=e[3],h}let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ie,{size:32,className:"animate-spin text-muted-foreground"})}),e[4]=f):f=e[4];let u;return e[5]!==i||e[6]!==r||e[7]!==o||e[8]!==n?(u=t.jsx(w.Suspense,{fallback:f,children:t.jsx(Ft,{toolName:n,connectionId:i,siblings:o,onSelectInstance:a,onBack:r})}),e[5]=i,e[6]=r,e[7]=o,e[8]=n,e[9]=u):u=e[9],u}const qt={workflow:rt,workflow_execution:nt,prompt:Bt};function Wt(){const s=C.c(9),e=ke();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=ae(n),r=decodeURIComponent(o.itemId);let l;s[1]!==o.appSlug?(l={slug:o.appSlug},s[1]=o.appSlug,s[2]=l):l=s[2];const a=_e(l);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const i=c,p=Ht;let f;return s[5]!==i||s[6]!==r||s[7]!==a?(f=t.jsx(Jt,{itemId:r,siblings:a,onBack:i,onUpdate:p}),s[5]=i,s[6]=r,s[7]=a,s[8]=f):f=s[8],f}async function Ht(s){return Promise.resolve()}function Kt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Gt(){const s=C.c(41),e=ke();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=ae(n),r=decodeURIComponent(o.collectionName),l=decodeURIComponent(o.itemId);let a;s[1]!==e.history?(a=()=>{e.history.back()},s[1]=e.history,s[2]=a):a=s[2];const c=a,{org:i}=le();let p;s[3]!==o.appSlug?(p={slug:o.appSlug},s[3]=o.appSlug,s[4]=p):p=s[4];const u=_e(p)[0]??null,h=u?.id??"",N=h||"no-connection",T=h??null;let O;s[5]!==i.id||s[6]!==i.slug||s[7]!==T?(O={connectionId:T,orgId:i.id,orgSlug:i.slug},s[5]=i.id,s[6]=i.slug,s[7]=T,s[8]=O):O=s[8];const _=ce(O),A=Ee(N,r,_);let y;s[9]!==A||s[10]!==l?(y=async M=>{l&&await A.update.mutateAsync({id:l,data:M})},s[9]=A,s[10]=l,s[11]=y):y=s[11];const k=y;let I;s[12]!==r?(I=r?.toLowerCase(),s[12]=r,s[13]=I):I=s[13];const g=I,v=g&&qt[g];let S;s[14]!==r?(S=Kt(r),s[14]=r,s[15]=S):S=s[15];const $=S;let j;s[16]!==i.slug?(j=t.jsx(V,{children:t.jsx(Q,{asChild:!0,children:t.jsx(G,{to:"/$org/settings/connections",params:{org:i.slug},children:"Connections"})})}),s[16]=i.slug,s[17]=j):j=s[17];let P;s[18]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(Y,{}),s[18]=P):P=s[18];let z;s[19]!==r||s[20]!==u||s[21]!==i.slug||s[22]!==o.appSlug?(z=u&&t.jsxs(t.Fragment,{children:[t.jsx(V,{children:t.jsx(Q,{asChild:!0,children:t.jsx(G,{to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:o.appSlug},search:{tab:r},children:u.title})})}),t.jsx(Y,{})]}),s[19]=r,s[20]=u,s[21]=i.slug,s[22]=o.appSlug,s[23]=z):z=s[23];let D;s[24]!==$?(D=t.jsx(V,{children:t.jsx(Me,{children:$})}),s[24]=$,s[25]=D):D=s[25];let R;s[26]!==z||s[27]!==D||s[28]!==j?(R=t.jsx(Ae,{children:t.jsxs(Re,{children:[j,P,z,D]})}),s[26]=z,s[27]=D,s[28]=j,s[29]=R):R=s[29];const U=R;if(v){let M;return s[30]!==v||s[31]!==c||s[32]!==k||s[33]!==l?(M=t.jsx(v,{itemId:l,onBack:c,onUpdate:k}),s[30]=v,s[31]=c,s[32]=k,s[33]=l,s[34]=M):M=s[34],M}let x;s[35]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(_t,{size:36,className:"text-muted-foreground"}),s[35]=x):x=s[35];let E;s[36]!==c?(E=t.jsx(Ot,{icon:x,title:"No component defined",description:"No component for this collection was defined",buttonProps:{onClick:c,children:"Go back"}}),s[36]=c,s[37]=E):E=s[37];let B;return s[38]!==U||s[39]!==E?(B=t.jsx(pe,{breadcrumb:U,children:E}),s[38]=U,s[39]=E,s[40]=B):B=s[40],B}function Qt(){const s=C.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const n=ae(e);if(decodeURIComponent(n.collectionName)==="tools"){let a;return s[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(Wt,{}),s[1]=a):a=s[1],a}let l;return s[2]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(Gt,{}),s[2]=l):l=s[2],l}function Jo(){const s=C.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Te,{children:t.jsx(w.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ie,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Qt,{})})}),s[0]=e):e=s[0],e}export{Jo as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aq as st,ar as me,as as it,at as nt,au as Ae,F as pe,av as rt,aw as ot,r as L,ax as lt,ay as at,az as ct,aA as dt,aB as je,aC as mt,aD as ut,aE as ft,e as $,j as i,q as V,c as K,l as Me,aF as xe,o as W,K as oe,n as le,a as ht,v as pt,E as xt,b as gt,B as we}from"./index-CJoBkEf_.js";import{u as ge}from"./tooltip-BseNApEN.js";import{i as bt,u as ee,S as Le,g as yt}from"./constants-P1xnRFeX.js";import{a as vt,b as jt,v as wt,u as Nt}from"./use-virtual-mcp-C09vm-BM.js";import{i as St}from"./Check-8AgR6ZjG.js";import{X as _t,A as Y,Z as ze,_ as Ct,s as Tt,c as Et}from"./agent-icon-ExlCX9f5.js";import{s as be}from"./Plus-DgS5eNSe.js";import{i as Oe}from"./X-FDfBE4i9.js";import{u as kt,b as It,h as $t,C as ne}from"./agent-capabilities-CpWXCeRz.js";import{u as At,c as Mt}from"./chat-context-T6Hxtz67.js";import{N as Lt}from"./agent-icons-DAJPmC7Z.js";import{u as Re,a as re,K as De,P as Pe,D as He,c as zt,S as Ot,v as Rt,b as Dt,C as Pt,s as Ht,d as Ut,e as Bt,f as Ft}from"./sortable.esm-D1-ateSo.js";import{u as Ue,a as Be,o as Qt}from"./use-organization-settings-D5g7NFw1.js";import{c as ye,u as Wt,h as qt}from"./shell-layout-CtsnLkL0.js";import{I as Kt}from"./input-BZDQfdYn.js";import{S as Xt}from"./scroll-area-DCO9LjjC.js";import{S as Gt,c as Vt,d as Zt,a as Jt,b as Yt}from"./sheet-y48NbizY.js";import{S as H}from"./skeleton-BWDI6b5B.js";import{t as Fe}from"./ChevronDown-DhOfQXzQ.js";import{g as es,M as ts}from"./types-CEUmohd_.js";import{I as ss}from"./integration-icon-DYz5eywh.js";import{u as is}from"./unwrap-tool-result-BYXdCQMg.js";import{t as Qe,P as ns,e as rs,s as os,g as ls}from"./pair-B1HhmTC2.js";import{a as as}from"./XCircle-8FTuCNvR.js";import{g as cs}from"./use-mcp-prompts-CLrlZKHJ.js";import{u as ds,w as ms}from"./tab-id-BfrA42Sy.js";import{D as us,a as fs,b as hs,h as ps,c as Ne,d as xs}from"./dropdown-menu-DKiorR9d.js";import{s as gs}from"./Trash01-C9vkf5T6.js";import{a as bs,u as ys}from"./use-ai-providers-DSjz3Xn-.js";import{a as vs}from"./toolbar-D7UKSzZi.js";import"./use-collections-C-e494pb.js";import"./AlertCircle-C0w7vkhj.js";import"./Tool01-BcHwzAg_.js";import"./SwitchHorizontal01-5B3DSr8e.js";import"./RefreshCcw01-DVTjMN9w.js";import"./ArrowUpRight-DNyQYu-V.js";import"./ZapSquare-wTPdLQod.js";import"./Users03-Cgth-3GS.js";import"./CheckCircle-CEi1N2Mq.js";import"./ChevronRight-DQs4tkMm.js";import"./ChevronUp-BJ7RKHi2.js";import"./DotsVertical-C00j11Qg.js";import"./Container-nZYBPJRv.js";import"./Eye-B7Xkt1CB.js";import"./Globe01-Uo6KHfk2.js";import"./FilterLines-FHjfh1pF.js";import"./ZoomOut-NkImUVHk.js";import"./Star01-CeDy0qEH.js";import"./Palette-Toq4eQ-J.js";import"./HardDrive-CGMuM2Oy.js";import"./Stars02-ButLG8tI.js";import"./Key01-BIkGax_i.js";import"./LinkExternal01-DycVPnNy.js";import"./Monitor01-D1U6Pa3W.js";import"./Sun-DB_K22EW.js";import"./Play-CA-oDPY7.js";import"./SearchMd-WbJoDaWs.js";import"./Settings02-rrw51k4M.js";import"./Shield01-5itVZGiR.js";import"./Stars01-DYDsxZnS.js";import"./Upload01-BXTkAAEz.js";import"./User01-C3qNbl-c.js";import"./Users01-C95xm0Ia.js";import"./XClose-BfJTW_HK.js";import"./Zap-DK6MOOIv.js";import"./spinner-BLcfraim.js";import"./dialog-C3j-c3SR.js";import"./drawer-ySjhgvkO.js";import"./collection-search-loHJ7IYX.js";import"./form-w7JkvptQ.js";import"./label-09bf4ZUr.js";import"./select-D3xFKLhW.js";import"./tabs-Dj3HihPI.js";import"./toggle-group-CgAd7Mg_.js";import"./popover-D7H0zNnu.js";import"./command-CYcMZe50.js";import"./index-CswQOvGx.js";import"./useInfiniteQuery--C6hdwWo.js";import"./infiniteQueryObserver-hzkIseBw.js";import"./index-NioO90_M.js";import"./question-004-sINsf4GQ.js";import"./checkbox-DotF6hoA.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-GGBvmgaP.js";import"./settings-section-xKZ0B7RQ.js";import"./card-7rOCFixx.js";import"./connect-desktop-dialog-BjjpdcQ_.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-C98P6TUE.js";import"./use-registry-connections-BfC5RU93.js";import"./use-connection-COB3wZyv.js";import"./extract-connection-data-DQPoIIzo.js";import"./generate-id-BsvOSxwt.js";import"./collections-BY2lU4NZ.js";import"./collection-tabs-IuChGrKO.js";import"./badge-BYAYJbYP.js";import"./textarea-Kw6SbqZA.js";import"./connection-form-helpers-B_et0Rp5.js";import"./use-infinite-scroll-BTrNIqxO.js";import"./useSuspenseInfiniteQuery-BZeP3q20.js";import"./required-auth-layout-D_pVrMnQ.js";import"./useRouterState-BjzQ0bsm.js";import"./use-org-sso-Bm8Zb6fp.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-B4ijm3eQ.js";import"./file-type-icon-DWtzaQPp.js";import"./content-blocks-o63cs2vh.js";import"./use-navigate-to-agent-BLkLok3n.js";import"./decopilot-sse-pool-CnTXTZP-.js";import"./create-sse-subscription-BS5983N4.js";function Se(s,e){const t=new Set(e);return s.filter(r=>!t.has(r))}function js(s,e,t){const r=s.slice(0);return r[e]=t,r}var ws=class extends st{#n;#e;#r;#i;#t;#s;#o;#l;#a;#c=[];constructor(s,e,t){super(),this.#n=s,this.#i=t,this.#r=[],this.#t=[],this.#e=[],this.setQueries(e)}onSubscribe(){this.listeners.size===1&&this.#t.forEach(s=>{s.subscribe(e=>{this.#f(s,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#t.forEach(s=>{s.destroy()})}setQueries(s,e){this.#r=s,this.#i=e,me.batch(()=>{const t=this.#t,r=this.#u(this.#r);r.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const n=r.map(m=>m.observer),l=n.map(m=>m.getCurrentResult()),o=t.length!==n.length,c=n.some((m,u)=>m!==t[u]),a=o||c,d=a?!0:l.some((m,u)=>{const p=this.#e[u];return!p||!it(m,p)});!a&&!d||(a&&(this.#c=r,this.#t=n),this.#e=l,this.hasListeners()&&(a&&(Se(t,n).forEach(m=>{m.destroy()}),Se(n,t).forEach(m=>{m.subscribe(u=>{this.#f(m,u)})})),this.#h()))})}getCurrentResult(){return this.#e}getQueries(){return this.#t.map(s=>s.getCurrentQuery())}getObservers(){return this.#t}getOptimisticResult(s,e){const t=this.#u(s),r=t.map(l=>l.observer.getOptimisticResult(l.defaultedQueryOptions)),n=t.map(l=>l.defaultedQueryOptions.queryHash);return[r,l=>this.#m(l??r,e,n),()=>this.#d(r,t)]}#d(s,e){return e.map((t,r)=>{const n=s[r];return t.defaultedQueryOptions.notifyOnChangeProps?n:t.observer.trackResult(n,l=>{e.forEach(o=>{o.observer.trackProp(l)})})})}#m(s,e,t){if(e){const r=this.#a,n=t!==void 0&&r!==void 0&&(r.length!==t.length||t.some((l,o)=>l!==r[o]));return(!this.#s||this.#e!==this.#l||n||e!==this.#o)&&(this.#o=e,this.#l=this.#e,t!==void 0&&(this.#a=t),this.#s=nt(this.#s,e(s))),this.#s}return s}#p(){return this.#i?.combine!==void 0&&this.#t.some((s,e)=>s.options.suspense&&this.#e[e]?.data===void 0)}#u(s){const e=new Map;this.#t.forEach(r=>{const n=r.options.queryHash;if(!n)return;const l=e.get(n);l?l.push(r):e.set(n,[r])});const t=[];return s.forEach(r=>{const n=this.#n.defaultQueryOptions(r),o=e.get(n.queryHash)?.shift()??new Ae(this.#n,n);t.push({defaultedQueryOptions:n,observer:o})}),t}#f(s,e){const t=this.#t.indexOf(s);t!==-1&&(this.#e=js(this.#e,t,e),this.#h())}#h(){if(this.hasListeners()){const s=this.#d(this.#e,this.#c),e=this.#p(),t=this.#s,r=e?t:this.#m(s,this.#i?.combine);(e||t!==r)&&me.batch(()=>{this.listeners.forEach(n=>{n(this.#e)})})}}};function Ns({queries:s,...e},t){const r=pe(t),n=rt(),l=ot(),o=L.useMemo(()=>s.map(x=>{const f=r.defaultQueryOptions(x);return f._optimisticResults=n?"isRestoring":"optimistic",f}),[s,r,n]);o.forEach(x=>{lt(x);const f=r.getQueryCache().get(x.queryHash);at(x,l,f)}),ct(l);const[c]=L.useState(()=>new ws(r,o,e)),[a,d,m]=c.getOptimisticResult(o,e.combine),u=!n&&e.subscribed!==!1;L.useSyncExternalStore(L.useCallback(x=>u?c.subscribe(me.batchCalls(x)):dt,[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),L.useEffect(()=>{c.setQueries(o,e)},[o,e,c]);const g=a.some((x,f)=>je(o[f],x))?a.flatMap((x,f)=>{const h=o[f];if(h&&je(h,x)){const y=new Ae(r,h);return mt(h,y,l)}return[]}):[];if(g.length>0)throw Promise.all(g);const b=a.find((x,f)=>{const h=o[f];return h&&ut({result:x,errorResetBoundary:l,throwOnError:h.throwOnError,query:r.getQueryCache().get(h.queryHash),suspense:h.suspense})});if(b?.error)throw b.error;return d(m())}function Ss(s,e){return Ns({...s,queries:s.queries.map(t=>({...t,suspense:!0,throwOnError:ft,enabled:!0,placeholderData:void 0}))},e)}const te=8;function _s(s){const e=$.c(16),{open:t,onOpenChange:r}=s,[n,l]=L.useState("");let o,c;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx(Gt,{children:"Manage home"}),c=i.jsx(Vt,{children:"Add agents to the home board and pin their interactive UIs or prompts."}),e[0]=o,e[1]=c):(o=e[0],c=e[1]);let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(_t,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none","aria-hidden":!0}),e[2]=a):a=e[2];let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=x=>l(x.target.value),e[3]=d):d=e[3];let m;e[4]!==n?(m=i.jsxs(Zt,{className:"px-5 py-4 border-b border-border",children:[o,c,i.jsxs("div",{className:"relative mt-3",children:[a,i.jsx(Kt,{value:n,onChange:d,placeholder:"Search agents…",className:"pl-8 h-8 text-sm"})]})]}),e[4]=n,e[5]=m):m=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=i.jsx(Ys,{}),e[6]=u):u=e[6];let p;e[7]!==n?(p=i.jsx(Xt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:i.jsx("div",{className:"p-3 flex flex-col gap-4",children:i.jsx(L.Suspense,{fallback:u,children:i.jsx(Ts,{search:n})})})}),e[7]=n,e[8]=p):p=e[8];let g;e[9]!==m||e[10]!==p?(g=i.jsxs(Jt,{side:"right",className:"w-full sm:max-w-md p-0 flex flex-col",children:[m,p]}),e[9]=m,e[10]=p,e[11]=g):g=e[11];let b;return e[12]!==r||e[13]!==t||e[14]!==g?(b=i.jsx(Yt,{open:t,onOpenChange:r,children:g}),e[12]=r,e[13]=t,e[14]=g,e[15]=b):b=e[15],b}function Cs(s){const e=$.c(32),{org:t}=V(),r=Ue();let n;e[0]!==r?.ids?(n=r?.ids??[],e[0]=r?.ids,e[1]=n):n=e[1];const l=n,o=Be(),c=jt(),a=pe();let d;e[2]!==t||e[3]!==a?(d=()=>a.refetchQueries({queryKey:oe.homeNextActions(t.slug),type:"active"}),e[2]=t,e[3]=a,e[4]=d):d=e[4];const m=d;let u;e[5]!==l?(u=S=>l.includes(S),e[5]=l,e[6]=u):u=e[6];const p=u;let g;e[7]!==l||e[8]!==s?(g=s?l.filter(S=>s.has(S)).length:l.length,e[7]=l,e[8]=s,e[9]=g):g=e[9];const x=g>=te;let f;e[10]!==x||e[11]!==p||e[12]!==o?(f=S=>p(S)||x?Promise.resolve():o.apply(E=>E.includes(S)?null:[...E,S]),e[10]=x,e[11]=p,e[12]=o,e[13]=f):f=e[13];const h=f;let y;e[14]!==o?(y=S=>o.apply(E=>E.filter(k=>k!==S)),e[14]=o,e[15]=y):y=e[15];const w=y;let v;e[16]!==o?(v=S=>o.apply(()=>S),e[16]=o,e[17]=v):v=e[17];const j=v;let N;e[18]!==c||e[19]!==x||e[20]!==p||e[21]!==m||e[22]!==o?(N=async(S,E)=>{await c.update.mutateAsync({id:S.id,data:{metadata:E}}),!p(S.id)&&!x&&await o.apply(k=>k.includes(S.id)?null:[...k,S.id]),await m()},e[18]=c,e[19]=x,e[20]=p,e[21]=m,e[22]=o,e[23]=N):N=e[23];const _=N;let T;return e[24]!==h||e[25]!==x||e[26]!==l||e[27]!==p||e[28]!==w||e[29]!==j||e[30]!==_?(T={homeIds:l,isOnHome:p,atLimit:x,addAgent:h,removeAgent:w,reorder:j,saveAgentMetadata:_},e[24]=h,e[25]=x,e[26]=l,e[27]=p,e[28]=w,e[29]=j,e[30]=_,e[31]=T):T=e[31],T}function Ts(s){const e=$.c(21),{search:t}=s;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={pageSize:1e3},e[0]=r):r=e[0];const n=vt(r);let l;e[1]!==n?(l=new Set(n.map(As)),e[1]=n,e[2]=l):l=e[2];const o=Cs(l);let c,a,d;if(e[3]!==n||e[4]!==o||e[5]!==t){const x=new Map(n.map($s));c=t.trim().toLowerCase();const f=y=>!c||y.title?.toLowerCase().includes(c);a=o.homeIds.map(y=>x.get(y)).filter(Is).filter(f);let h;e[9]!==o?(h=y=>!o.isOnHome(y.id),e[9]=o,e[10]=h):h=e[10],d=n.filter(ks).filter(h).filter(f).sort(Es),e[3]=n,e[4]=o,e[5]=t,e[6]=c,e[7]=a,e[8]=d}else c=e[6],a=e[7],d=e[8];const m=d;let u;e[11]!==o||e[12]!==a?(u=i.jsx(Ms,{home:o,agents:a}),e[11]=o,e[12]=a,e[13]=u):u=e[13];const p=!!c;let g;e[14]!==m||e[15]!==o||e[16]!==p?(g=i.jsx(Os,{home:o,agents:m,hasSearch:p}),e[14]=m,e[15]=o,e[16]=p,e[17]=g):g=e[17];let b;return e[18]!==u||e[19]!==g?(b=i.jsxs(i.Fragment,{children:[u,g]}),e[18]=u,e[19]=g,e[20]=b):b=e[20],b}function Es(s,e){return(s.title??"").localeCompare(e.title??"")}function ks(s){return s.id&&!bt(s.id)}function Is(s){return!!s}function $s(s){return[s.id,s]}function As(s){return s.id}function We(s){const e=$.c(7),{title:t,hint:r}=s;let n;e[0]!==t?(n=i.jsx("span",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:t}),e[0]=t,e[1]=n):n=e[1];let l;e[2]!==r?(l=r&&i.jsx("span",{className:"text-xs text-muted-foreground",children:r}),e[2]=r,e[3]=l):l=e[3];let o;return e[4]!==n||e[5]!==l?(o=i.jsxs("div",{className:"flex items-center justify-between px-1",children:[n,l]}),e[4]=n,e[5]=l,e[6]=o):o=e[6],o}function Ms(s){const e=$.c(14),{home:t,agents:r}=s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={activationConstraint:{distance:5}},e[0]=n):n=e[0];let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l={coordinateGetter:Ht},e[1]=l):l=e[1];const o=Re(re(Pe,n),re(De,l));let c;e[2]!==t?(c=g=>{const{active:b,over:x}=g;if(!x||b.id===x.id)return;const f=t.homeIds,h=f.indexOf(b.id),y=f.indexOf(x.id);h===-1||y===-1||t.reorder(Ut([...f],h,y)).catch(zs)},e[2]=t,e[3]=c):c=e[3];const a=c,d=`${t.homeIds.length}/${te}`;let m;e[4]!==d?(m=i.jsx(We,{title:"On home",hint:d}),e[4]=d,e[5]=m):m=e[5];let u;e[6]!==r||e[7]!==a||e[8]!==t||e[9]!==o?(u=r.length===0?i.jsx("p",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:"No agents on the home yet."}):i.jsx(He,{sensors:o,collisionDetection:zt,onDragEnd:a,children:i.jsx(Ot,{items:r.map(Ls),strategy:Rt,children:i.jsx("div",{className:"flex flex-col gap-1",children:r.map(g=>i.jsx(Ds,{agent:g,home:t},g.id))})})}),e[6]=r,e[7]=a,e[8]=t,e[9]=o,e[10]=u):u=e[10];let p;return e[11]!==m||e[12]!==u?(p=i.jsxs("div",{className:"flex flex-col gap-1.5",children:[m,u]}),e[11]=m,e[12]=u,e[13]=p):p=e[13],p}function Ls(s){return s.id}function zs(){return W.error("Couldn't reorder home — please try again.")}function Os(s){const e=$.c(6),{home:t,agents:r,hasSearch:n}=s,[l,o]=L.useState(20);let c;if(e[0]!==r||e[1]!==n||e[2]!==t||e[3]!==l){const a=r.slice(0,l);let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=i.jsx(We,{title:"Add to home"}),e[5]=d):d=e[5],c=i.jsxs("div",{className:"flex flex-col gap-1.5",children:[d,r.length===0?i.jsx("p",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:n?"No agents match.":"Every agent is on the home."}):i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"flex flex-col gap-1",children:a.map(m=>i.jsx(Us,{agent:m,home:t},m.id))}),r.length>l&&i.jsxs("button",{type:"button",onClick:()=>o(Rs),className:"mt-1 self-center rounded-md px-3 py-1.5 text-xs text-muted-foreground hover:bg-accent/40 hover:text-foreground",children:["Load more (",r.length-l,")"]})]})]}),e[0]=r,e[1]=n,e[2]=t,e[3]=l,e[4]=c}else c=e[4];return c}function Rs(s){return s+20}function qe(s){const e=xe(s.metadata?.ui).filter(l=>!!l.resourceUri).length,t=s.metadata?.ui?.homePrompts,r=Array.isArray(t)?t.length:null,n=[];return e>0&&n.push(`${e} tile${e===1?"":"s"}`),r!==null&&r>0&&n.push(`${r} prompt${r===1?"":"s"}`),r===0&&n.push("prompts off"),n.join(" · ")}function Ds(s){const e=$.c(57),{agent:t,home:r}=s,[n,l]=L.useState(!1);let o;e[0]!==t.id?(o={id:t.id},e[0]=t.id,e[1]=o):o=e[1];const{attributes:c,listeners:a,setNodeRef:d,transform:m,transition:u,isDragging:p}=Dt(o),g=qe(t)||"Quick access";let b;e[2]!==m?(b=Pt.Transform.toString(m),e[2]=m,e[3]=b):b=e[3];const x=p?.5:void 0,f=p?100:void 0;let h;e[4]!==b||e[5]!==x||e[6]!==f||e[7]!==u?(h={transform:b,transition:u,opacity:x,zIndex:f},e[4]=b,e[5]=x,e[6]=f,e[7]=u,e[8]=h):h=e[8];const y=h,w=p&&"shadow-lg";let v;e[9]!==w?(v=K("rounded-lg border border-border bg-card",w),e[9]=w,e[10]=v):v=e[10];const j=`Drag to reorder ${t.title??t.id}`;let N;e[11]===Symbol.for("react.memo_cache_sentinel")?(N=i.jsx(ze,{size:14}),e[11]=N):N=e[11];let _;e[12]!==c||e[13]!==a||e[14]!==j?(_=i.jsx("button",{type:"button",...c,...a,className:"shrink-0 text-muted-foreground hover:text-foreground cursor-grab active:cursor-grabbing outline-none focus-visible:ring-2 focus-visible:ring-ring rounded","aria-label":j,children:N}),e[12]=c,e[13]=a,e[14]=j,e[15]=_):_=e[15];let T;e[16]===Symbol.for("react.memo_cache_sentinel")?(T=()=>l(Hs),e[16]=T):T=e[16];const S=t.title??t.id;let E;e[17]!==t.icon||e[18]!==S?(E=i.jsx(Y,{icon:t.icon,name:S,size:"sm"}),e[17]=t.icon,e[18]=S,e[19]=E):E=e[19];const k=t.title??t.id;let C;e[20]!==k?(C=i.jsx("div",{className:"truncate text-sm font-medium text-foreground",children:k}),e[20]=k,e[21]=C):C=e[21];let I;e[22]!==g?(I=i.jsx("div",{className:"truncate text-xs text-muted-foreground",children:g}),e[22]=g,e[23]=I):I=e[23];let A;e[24]!==C||e[25]!==I?(A=i.jsxs("div",{className:"min-w-0 flex-1",children:[C,I]}),e[24]=C,e[25]=I,e[26]=A):A=e[26];const D=n&&"rotate-180";let z;e[27]!==D?(z=K("shrink-0 text-muted-foreground transition-transform",D),e[27]=D,e[28]=z):z=e[28];let O;e[29]!==z?(O=i.jsx(Fe,{size:16,className:z}),e[29]=z,e[30]=O):O=e[30];let Q;e[31]!==n||e[32]!==E||e[33]!==A||e[34]!==O?(Q=i.jsxs("button",{type:"button",onClick:T,className:"flex min-w-0 flex-1 items-center gap-2.5 text-left outline-none","aria-expanded":n,children:[E,A,O]}),e[31]=n,e[32]=E,e[33]=A,e[34]=O,e[35]=Q):Q=e[35];let M;e[36]!==t.id||e[37]!==r?(M=()=>r.removeAgent(t.id).catch(Ps),e[36]=t.id,e[37]=r,e[38]=M):M=e[38];const F=`Remove ${t.title??t.id} from home`;let P;e[39]===Symbol.for("react.memo_cache_sentinel")?(P=i.jsx(Oe,{size:14}),e[39]=P):P=e[39];let R;e[40]!==M||e[41]!==F?(R=i.jsx("button",{type:"button",onClick:M,"aria-label":F,title:"Remove from home",className:"shrink-0 inline-flex size-7 items-center justify-center rounded-md text-muted-foreground hover:bg-destructive/10 hover:text-destructive",children:P}),e[40]=M,e[41]=F,e[42]=R):R=e[42];let U;e[43]!==_||e[44]!==Q||e[45]!==R?(U=i.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-2.5",children:[_,Q,R]}),e[43]=_,e[44]=Q,e[45]=R,e[46]=U):U=e[46];let B;e[47]!==t||e[48]!==n||e[49]!==r?(B=n&&i.jsx(Ke,{agent:t,home:r}),e[47]=t,e[48]=n,e[49]=r,e[50]=B):B=e[50];let q;return e[51]!==d||e[52]!==y||e[53]!==U||e[54]!==B||e[55]!==v?(q=i.jsxs("div",{ref:d,style:y,className:v,children:[U,B]}),e[51]=d,e[52]=y,e[53]=U,e[54]=B,e[55]=v,e[56]=q):q=e[56],q}function Ps(){return W.error("Couldn't remove from home — please try again.")}function Hs(s){return!s}function Us({agent:s,home:e}){const[t,r]=L.useState(!1),[n,l]=L.useState(!1),o=qe(s),c=async()=>{if(!e.atLimit){l(!0);try{await e.addAgent(s.id)}catch{W.error("Couldn't add to home — please try again.")}finally{l(!1)}}};return i.jsxs("div",{className:"rounded-lg border border-border bg-card",children:[i.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5",children:[i.jsxs("button",{type:"button",onClick:()=>r(a=>!a),className:"flex min-w-0 flex-1 items-center gap-3 text-left outline-none","aria-expanded":t,children:[i.jsx(Y,{icon:s.icon,name:s.title??s.id,size:"sm"}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("div",{className:"truncate text-sm font-medium text-foreground",children:s.title??s.id}),o&&i.jsx("div",{className:"truncate text-xs text-muted-foreground",children:o})]}),i.jsx(Fe,{size:16,className:K("shrink-0 text-muted-foreground transition-transform",t&&"rotate-180")})]}),i.jsx("button",{type:"button",onClick:c,disabled:n||e.atLimit,"aria-label":"Add to home",title:e.atLimit?`Home is full (${te}) — remove an agent first`:"Add to home",className:"shrink-0 inline-flex size-7 items-center justify-center rounded-md bg-foreground text-background text-xs hover:opacity-90 disabled:opacity-40 disabled:cursor-not-allowed",children:n?i.jsx(Me,{size:12,className:"animate-spin"}):i.jsx(be,{size:14})})]}),t&&i.jsx(Ke,{agent:s,home:e})]})}function Ke(s){const e=$.c(26),{agent:t,home:r}=s;let n,l,o,c,a,d,m;if(e[0]!==t||e[1]!==r){const f=xe(t.metadata?.ui);let h;e[9]!==t.connections?(h=(t.connections??[]).map(Fs).sort(),e[9]=t.connections,e[10]=h):h=e[10];const y=h;l=t.metadata?.ui?.homePrompts,m="border-t border-border px-3 py-2 flex flex-col gap-3",n=Ws,o=t,c=r,a=y,d=new Set(f.map(Bs)),e[0]=t,e[1]=r,e[2]=n,e[3]=l,e[4]=o,e[5]=c,e[6]=a,e[7]=d,e[8]=m}else n=e[2],l=e[3],o=e[4],c=e[5],a=e[6],d=e[7],m=e[8];let u;e[11]!==n||e[12]!==o||e[13]!==c||e[14]!==a||e[15]!==d?(u=i.jsx(n,{agent:o,home:c,connectionIds:a,pinnedResourceUris:d}),e[11]=n,e[12]=o,e[13]=c,e[14]=a,e[15]=d,e[16]=u):u=e[16];let p;e[17]===Symbol.for("react.memo_cache_sentinel")?(p=i.jsx(Qs,{}),e[17]=p):p=e[17];const g=l??null;let b;e[18]!==t||e[19]!==r||e[20]!==g?(b=i.jsx(L.Suspense,{fallback:p,children:i.jsx(Ks,{agent:t,home:r,curated:g})}),e[18]=t,e[19]=r,e[20]=g,e[21]=b):b=e[21];let x;return e[22]!==m||e[23]!==u||e[24]!==b?(x=i.jsxs("div",{className:m,children:[u,b]}),e[22]=m,e[23]=u,e[24]=b,e[25]=x):x=e[25],x}function Bs(s){return s.resourceUri}function Fs(s){return s.connection_id}function Qs(){const s=$.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsxs("div",{className:"flex flex-col gap-2 py-1",children:[i.jsx(H,{className:"h-8 w-full"}),i.jsx(H,{className:"h-8 w-2/3"})]}),s[0]=e):e=s[0],e}function Ws({agent:s,home:e,connectionIds:t,pinnedResourceUris:r}){const{org:n}=V(),l=ee({connectionId:Le,orgId:n.id,orgSlug:n.slug}),{data:o,isLoading:c}=le({queryKey:oe.projectConnectionDetails(s.id,t),enabled:t.length>0,queryFn:async()=>(await Promise.all(t.map(async d=>{try{const m=await l.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:d}}),{item:u}=is(m),p=(u?.tools??[]).flatMap(g=>{const b=es(g._meta);return b?[{name:g.name,description:g.description,resourceUri:b}]:[]});return{id:d,title:u?.title??d,icon:u?.icon??null,uiTools:p}}catch{return{id:d,title:d,icon:null,uiTools:[]}}}))).filter(d=>d.uiTools.length>0)});return t.length===0?null:c?i.jsxs("div",{className:"flex flex-col gap-1 py-0.5",children:[i.jsx(H,{className:"h-7 w-full"}),i.jsx(H,{className:"h-7 w-2/3"})]}):!o||o.length===0?null:i.jsx("div",{className:"flex flex-col gap-0.5",children:o.map(a=>a.uiTools.map(d=>i.jsx(qs,{agent:s,home:e,connection:a,tool:d,isPinned:r.has(d.resourceUri)},`${a.id}:${d.name}`)))})}function qs({agent:s,home:e,connection:t,tool:r,isPinned:n}){const[l,o]=L.useState(!1),c=async()=>{if(!n&&!e.isOnHome(s.id)&&e.atLimit){W.error(`Home is full (${te}) — remove an agent first`);return}o(!0);try{const a=xe(s.metadata?.ui),d=n?a.filter(u=>u.resourceUri!==r.resourceUri):[...a,{connectionId:t.id,resourceUri:r.resourceUri}],m={...s.metadata??{},ui:{...s.metadata?.ui??{},homeTile:null,homeTiles:d}};await e.saveAgentMetadata(s,m)}catch(a){console.error("[home-tiles] failed to toggle tile",a),W.error("Couldn't update home — please try again.")}finally{o(!1)}};return i.jsxs("div",{className:"flex items-center gap-2.5 rounded-md px-2 py-1 hover:bg-accent/40",children:[i.jsx(ss,{icon:t.icon,name:t.title,size:"xs"}),i.jsx("div",{className:"min-w-0 flex-1 truncate text-sm text-foreground",children:Qe(r.name)}),i.jsx(Xe,{isPinned:n,submitting:l,onClick:c,label:n?"Remove from home":"Add to home"})]})}function Xe(s){const e=$.c(11),{isPinned:t,submitting:r,onClick:n,label:l}=s,o=t?"text-muted-foreground hover:bg-destructive/10 hover:text-destructive":"bg-foreground text-background hover:opacity-90";let c;e[0]!==o?(c=K("inline-flex size-7 shrink-0 items-center justify-center rounded-md text-xs transition-colors disabled:opacity-50 disabled:cursor-progress",o),e[0]=o,e[1]=c):c=e[1];let a;e[2]!==t||e[3]!==r?(a=r?i.jsx(Me,{size:12,className:"animate-spin"}):t?i.jsx(Ct,{size:14}):i.jsx(be,{size:14}),e[2]=t,e[3]=r,e[4]=a):a=e[4];let d;return e[5]!==l||e[6]!==n||e[7]!==r||e[8]!==c||e[9]!==a?(d=i.jsx("button",{type:"button",onClick:n,disabled:r,"aria-label":l,title:l,className:c,children:a}),e[5]=l,e[6]=n,e[7]=r,e[8]=c,e[9]=a,e[10]=d):d=e[10],d}function Ks(s){const e=$.c(32),{agent:t,home:r,curated:n}=s,{org:l}=V();let o;e[0]!==t.id||e[1]!==l.id||e[2]!==l.slug?(o={connectionId:t.id,orgId:l.id,orgSlug:l.slug},e[0]=t.id,e[1]=l.id,e[2]=l.slug,e[3]=o):o=e[3];const c=ee(o);let a;e[4]!==t.id||e[5]!==l.id?(a=oe.agentPrompts(l.id,t.id),e[4]=t.id,e[5]=l.id,e[6]=a):a=e[6];let d;e[7]!==c?(d=async()=>{const{prompts:j}=await c.listPrompts();return j.map(Zs)},e[7]=c,e[8]=d):d=e[8];let m;e[9]!==a||e[10]!==d?(m={queryKey:a,queryFn:d,staleTime:3e4,retry:!1},e[9]=a,e[10]=d,e[11]=m):m=e[11];const{data:u,isLoading:p,error:g}=le(m),b=ye(l.slug);let x,f;if(e[12]!==t.id||e[13]!==u||e[14]!==b.prompts){let j;e[17]!==t.id?(j=_=>_.agentId===t.id&&_.promptName,e[17]=t.id,e[18]=j):j=e[18],x=b.prompts.filter(j).map(Vs);let N;e[19]!==u?(N=u??[],e[19]=u,e[20]=N):N=e[20],f=[...N];for(const _ of x)f.some(T=>T.name===_.name)||f.push(_);e[12]=t.id,e[13]=u,e[14]=b.prompts,e[15]=x,e[16]=f}else x=e[15],f=e[16];if(p&&x.length===0){let j;return e[21]===Symbol.for("react.memo_cache_sentinel")?(j=i.jsxs("div",{className:"flex flex-col gap-1",children:[i.jsx(H,{className:"h-7 w-full"}),i.jsx(H,{className:"h-7 w-2/3"})]}),e[21]=j):j=e[21],j}if(g&&x.length===0)return console.error("[home-tiles] listPrompts failed for agent",t.id,g),null;if(f.length===0)return null;let h;e[22]!==n||e[23]!==f?(h=n??f.map(Gs),e[22]=n,e[23]=f,e[24]=h):h=e[24];let y;e[25]!==h?(y=new Set(h),e[25]=h,e[26]=y):y=e[26];const w=y;let v;return e[27]!==t||e[28]!==r||e[29]!==f||e[30]!==w?(v=i.jsx("div",{className:"flex flex-col gap-0.5",children:f.map(j=>i.jsx(Js,{agent:t,home:r,prompt:j,allPromptNames:f.map(Xs),isPinned:w.has(j.name)},j.name))}),e[27]=t,e[28]=r,e[29]=f,e[30]=w,e[31]=v):v=e[31],v}function Xs(s){return s.name}function Gs(s){return s.name}function Vs(s){return{name:s.promptName,title:s.title,description:s.description}}function Zs(s){return{name:s.name,title:s.title,description:s.description}}function Js({agent:s,home:e,prompt:t,allPromptNames:r,isPinned:n}){const[l,o]=L.useState(!1),c=async()=>{if(!n&&!e.isOnHome(s.id)&&e.atLimit){W.error(`Home is full (${te}) — remove an agent first`);return}o(!0);try{const a=s.metadata?.ui?.homePrompts;let d;Array.isArray(a)?d=n?a.filter(u=>u!==t.name):[...a,t.name]:d=n?r.filter(u=>u!==t.name):r;const m={...s.metadata??{},ui:{...s.metadata?.ui??{},homePrompts:d}};await e.saveAgentMetadata(s,m)}catch(a){console.error("[home-tiles] failed to toggle prompt",a),W.error("Couldn't update home — please try again.")}finally{o(!1)}};return i.jsxs("div",{className:"flex items-center gap-2.5 rounded-md px-2 py-1 hover:bg-accent/40",children:[i.jsx("div",{className:"min-w-0 flex-1 truncate text-sm text-foreground",children:t.title??Qe(t.name)}),i.jsx(Xe,{isPinned:n,submitting:l,onClick:c,label:n?"Remove from home":"Add to home"})]})}function Ys(){const s=$.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx("div",{className:"flex flex-col gap-2 p-2",children:Array.from({length:4},ei)}),s[0]=e):e=s[0],e}function ei(s,e){return i.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border p-2.5",children:[i.jsx(H,{className:"size-8 rounded-md"}),i.jsxs("div",{className:"flex-1 space-y-1.5",children:[i.jsx(H,{className:"h-3 w-1/2"}),i.jsx(H,{className:"h-2.5 w-1/3"})]})]},e)}const J=1,Ge=`home-board.layout.v${J}`;function Ve(s){return`home-board.layout.v${J}.${s}`}const Ze={version:J,tiles:{},hidden:[]};function ue(s){return!s||s.version!==J?Ze:{version:J,tiles:s.tiles??{},hidden:Array.isArray(s.hidden)?s.hidden:[]}}function ti(s){return Object.keys(s.tiles).length>0||s.hidden.length>0}function si(s){try{const e=localStorage.getItem(Ve(s));return e?ue(JSON.parse(e)):void 0}catch{return}}function _e(s,e){try{localStorage.setItem(Ve(s),JSON.stringify(e))}catch{}}async function Ce(s,e){if(!(await fetch(`/api/${s}/kv/${Ge}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok)throw new Error("Failed to save board layout")}function ii(s){const e=$.c(24),t=pe();let r;e[0]!==s?(r=oe.boardLayout(s),e[0]=s,e[1]=r):r=e[1];const n=r;let l;e[2]!==s?(l=si(s),e[2]=s,e[3]=l):l=e[3];const o=l;let c;e[4]!==o||e[5]!==s?(c=async()=>{const h=await fetch(`/api/${s}/kv/${Ge}`);if(h.status===404)return o&&ti(o)?(await Ce(s,o),o):Ze;if(!h.ok)throw new Error("Failed to load board layout");const y=await h.json(),w=ue(y.value);return _e(s,w),w},e[4]=o,e[5]=s,e[6]=c):c=e[6];let a;e[7]!==o||e[8]!==n||e[9]!==c?(a={queryKey:n,queryFn:c,initialData:o,staleTime:0,refetchOnWindowFocus:!1},e[7]=o,e[8]=n,e[9]=c,e[10]=a):a=e[10];const{data:d,isLoading:m}=le(a);let u;e[11]!==s?(u={mutationFn:h=>Ce(s,h)},e[11]=s,e[12]=u):u=e[12];const p=ht(u);let g;e[13]!==p||e[14]!==s||e[15]!==t||e[16]!==n?(g=h=>{_e(s,h),t.setQueryData(n,h),p.mutate(h)},e[13]=p,e[14]=s,e[15]=t,e[16]=n,e[17]=g):g=e[17];const b=g;let x;e[18]!==d?(x=ue(d),e[18]=d,e[19]=x):x=e[19];let f;return e[20]!==m||e[21]!==b||e[22]!==x?(f={layout:x,isLoading:m,save:b},e[20]=m,e[21]=b,e[22]=x,e[23]=f):f=e[23],f}const Je=L.createContext(null);function ni(s){const e=$.c(24),{children:t}=s,{org:r}=V(),n=ii(r.slug),[l,o]=L.useState(!1),[c,a]=L.useState(null);let d;e[0]!==n.layout?(d=()=>{a(n.layout),o(!0)},e[0]=n.layout,e[1]=d):d=e[1];const m=d;let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{a(null),o(!1)},e[2]=u):u=e[2];const p=u;let g;e[3]!==c||e[4]!==n?(g=()=>{c&&n.save(c),a(null),o(!1)},e[3]=c,e[4]=n,e[5]=g):g=e[5];const b=g,x=l&&c!==null,f=x?c:n.layout;let h;e[6]!==c||e[7]!==x||e[8]!==n.layout?(h=x?JSON.stringify(c)!==JSON.stringify(n.layout):!1,e[6]=c,e[7]=x,e[8]=n.layout,e[9]=h):h=e[9];const y=h;let w;e[10]!==l||e[11]!==n?(w=_=>{l?a(_):n.save(_)},e[10]=l,e[11]=n,e[12]=w):w=e[12];const v=w;let j;e[13]!==v||e[14]!==m||e[15]!==y||e[16]!==l||e[17]!==f||e[18]!==b||e[19]!==n.isLoading?(j={isEditMode:l,enter:m,cancel:p,save:b,hasChanges:y,layout:f,isLayoutLoading:n.isLoading,commitLayout:v},e[13]=v,e[14]=m,e[15]=y,e[16]=l,e[17]=f,e[18]=b,e[19]=n.isLoading,e[20]=j):j=e[20];let N;return e[21]!==t||e[22]!==j?(N=i.jsx(Je.Provider,{value:j,children:t}),e[21]=t,e[22]=j,e[23]=N):N=e[23],N}function Ye(){const s=L.useContext(Je);if(!s)throw new Error("useHomeEdit must be used within a HomeEditProvider");return s}function ri({agentId:s}){const{org:e,locator:t}=V(),r=ee({connectionId:s,orgId:e.id,orgSlug:e.slug}),{create:n}=ds(),{setTaskId:l}=Wt(),[o,c]=L.useState(null),[a,d]=L.useState(!1),m=L.useRef(!1),u=async(f,h)=>{if(!r){W.error("MCP client not available");return}if(!m.current){m.current=!0,d(!0);try{const y=await cs(r,f.name,h),w={type:"doc",content:[{type:"paragraph",content:[rs({id:f.name,name:os(f.name,ls(f._meta)),metadata:y.messages,char:"/",kind:"prompt",args:h}),{type:"text",text:" "}]}]},v=crypto.randomUUID();ms(sessionStorage,t,v,{tiptapDoc:w}),await n({id:v,virtual_mcp_id:s}),l(v,s,{autosend:!0})}catch(y){console.error("[start-thread-from-prompt] failed",y),W.error("Failed to start thread. Please try again.")}finally{m.current=!1,d(!1)}}},p=async f=>{if(!m.current){if(f.arguments&&f.arguments.length>0){c(f);return}await u(f)}},g=async f=>{if(!o)return;const h=o;c(null),await u(h,f)};return{start:p,startBlank:async()=>{if(!m.current){m.current=!0,d(!0);try{const f=crypto.randomUUID();await n({id:f,virtual_mcp_id:s}),l(f,s)}catch(f){console.error("[start-thread-from-prompt] startBlank failed",f),W.error("Failed to start thread. Please try again.")}finally{m.current=!1,d(!1)}}},dialog:i.jsx(ns,{prompt:o,setPrompt:f=>c(f),onSubmit:g}),dialogPrompt:o,starting:a}}const G=4,X=100,Te=12,ie={S:{w:1,h:1},M:{w:1,h:2},T:{w:1,h:3},L:{w:2,h:1},XL:{w:2,h:2},LT:{w:2,h:3},XLT:{w:2,h:4},XXLT:{w:2,h:5},W:{w:4,h:1},WT:{w:4,h:3}},oi={S:"Small",M:"Tall",T:"Column",L:"Wide",XL:"Large",LT:"Showcase",XLT:"Display",XXLT:"Tower",W:"Full width",WT:"Hero"},Ee=["S","M","T","L","XL","LT","XLT","XXLT","W","WT"],li=ie.XL;class fe extends L.Component{state={hasError:!1};static getDerivedStateFromError(e){return{hasError:!0,message:e instanceof Error?e.message:"Unknown error"}}componentDidCatch(e,t){console.error("[home-tiles] tile crashed:",e,t.componentStack)}render(){return this.state.hasError?i.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2 p-4 text-center",children:[i.jsx("span",{className:"flex size-8 items-center justify-center rounded-md bg-destructive/10 text-destructive",children:i.jsx(pt,{size:16})}),i.jsx("p",{className:"text-sm font-medium text-foreground",children:"This tile crashed"}),i.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:this.state.message??"Something went wrong rendering this tile."})]}):this.props.children}}function ai(s){const e=$.c(72),{tiles:t,isEditMode:r,renderTile:n,onMove:l,onResize:o,onRemove:c}=s,a=ge(),d=L.useRef(null),[m,u]=L.useState(null),[p,g]=L.useState(null);let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={activationConstraint:{distance:4}},e[0]=b):b=e[0];const x=Re(re(Pe,b),re(De)),f=t.reduce(ci,0),h=r?Math.max(f+2,4):Math.max(f,1);let y;e[1]===Symbol.for("react.memo_cache_sentinel")?(y=()=>{const M=d.current?.getBoundingClientRect();return M?{cellWidth:M.width/G,cellHeight:X}:null},e[1]=y):y=e[1];const w=y;let v;e[2]===Symbol.for("react.memo_cache_sentinel")?(v=M=>{u(String(M.active.id)),g(w())},e[2]=v):v=e[2];const j=v;let N;e[3]!==p||e[4]!==l||e[5]!==t?(N=M=>{const F=String(M.active.id),P=p??w();if(u(null),g(null),!P||P.cellWidth<=0)return;const R=t.find(q=>q.id===F);if(!R)return;const U=Math.round(M.delta.x/P.cellWidth),B=Math.round(M.delta.y/P.cellHeight);U===0&&B===0||l(F,{x:R.x+U,y:R.y+B})},e[3]=p,e[4]=l,e[5]=t,e[6]=N):N=e[6];const _=N;if(a){let M;if(e[7]!==n||e[8]!==t){let P;e[10]!==n?(P=R=>i.jsx("div",{className:"bg-card card-shadow rounded-2xl overflow-hidden",style:{minHeight:X},children:i.jsx(fe,{children:n(R)})},R.id),e[10]=n,e[11]=P):P=e[11],M=t.map(P),e[7]=n,e[8]=t,e[9]=M}else M=e[9];let F;return e[12]!==M?(F=i.jsx("div",{className:"flex flex-col gap-3 px-4 pb-8",children:M}),e[12]=M,e[13]=F):F=e[13],F}let T,S,E,k,C,I,A,D,z;if(e[14]!==m||e[15]!==p||e[16]!==r||e[17]!==_||e[18]!==c||e[19]!==o||e[20]!==n||e[21]!==x||e[22]!==t||e[23]!==h){const M=m?t.find(Z=>Z.id===m):null;S=He,D=x,z=j,E=_;const F=h*X,P=r?X*4:X;let R;e[33]!==F||e[34]!==P?(R={height:F,minHeight:P},e[33]=F,e[34]=P,e[35]=R):R=e[35];let U;e[36]!==r||e[37]!==t||e[38]!==h?(U=r&&i.jsx(di,{rows:h,tiles:t}),e[36]=r,e[37]=t,e[38]=h,e[39]=U):U=e[39];let B;if(e[40]!==m||e[41]!==r||e[42]!==c||e[43]!==o||e[44]!==n||e[45]!==t){let Z;e[47]!==m||e[48]!==r||e[49]!==c||e[50]!==o||e[51]!==n?(Z=se=>i.jsx(ui,{tile:se,isEditMode:r,isDragging:m===se.id,onResize:o,onRemove:c,children:n(se)},se.id),e[47]=m,e[48]=r,e[49]=c,e[50]=o,e[51]=n,e[52]=Z):Z=e[52],B=t.map(Z),e[40]=m,e[41]=r,e[42]=c,e[43]=o,e[44]=n,e[45]=t,e[46]=B}else B=e[46];e[53]!==R||e[54]!==U||e[55]!==B?(k=i.jsxs("div",{ref:d,className:"relative w-full",style:R,children:[U,B]}),e[53]=R,e[54]=U,e[55]=B,e[56]=k):k=e[56],T=Bt,C=null;const q=M&&p?M.w*p.cellWidth-Te:void 0,ae=M&&p?M.h*p.cellHeight-Te:void 0;e[57]!==q||e[58]!==ae?(I={width:q,height:ae},e[57]=q,e[58]=ae,e[59]=I):I=e[59],A=M&&i.jsx("div",{className:"bg-card card-shadow rounded-2xl shadow-2xl ring-2 ring-primary/40 h-full overflow-hidden opacity-95",children:i.jsx(fe,{children:n(M)})}),e[14]=m,e[15]=p,e[16]=r,e[17]=_,e[18]=c,e[19]=o,e[20]=n,e[21]=x,e[22]=t,e[23]=h,e[24]=T,e[25]=S,e[26]=E,e[27]=k,e[28]=C,e[29]=I,e[30]=A,e[31]=D,e[32]=z}else T=e[24],S=e[25],E=e[26],k=e[27],C=e[28],I=e[29],A=e[30],D=e[31],z=e[32];let O;e[60]!==T||e[61]!==C||e[62]!==I||e[63]!==A?(O=i.jsx(T,{dropAnimation:C,style:I,children:A}),e[60]=T,e[61]=C,e[62]=I,e[63]=A,e[64]=O):O=e[64];let Q;return e[65]!==S||e[66]!==E||e[67]!==k||e[68]!==O||e[69]!==D||e[70]!==z?(Q=i.jsxs(S,{sensors:D,onDragStart:z,onDragEnd:E,children:[k,O]}),e[65]=S,e[66]=E,e[67]=k,e[68]=O,e[69]=D,e[70]=z,e[71]=Q):Q=e[71],Q}function ci(s,e){return Math.max(s,e.y+e.h)}function di(s){const e=$.c(7),{rows:t,tiles:r}=s;let n;e[0]!==r?(n=(a,d)=>r.some(m=>a>=m.x&&a<m.x+m.w&&d>=m.y&&d<m.y+m.h),e[0]=r,e[1]=n):n=e[1];const l=n;let o;if(e[2]!==l||e[3]!==t){o=[];for(let a=0;a<t;a++)for(let d=0;d<G;d++)l(d,a)||o.push({x:d,y:a});e[2]=l,e[3]=t,e[4]=o}else o=e[4];let c;return e[5]!==o?(c=i.jsx("div",{className:"absolute inset-0 pointer-events-none",children:o.map(mi)}),e[5]=o,e[6]=c):c=e[6],c}function mi(s){return i.jsx("div",{className:"absolute p-1",style:{left:`${s.x/G*100}%`,top:s.y*X,width:`${1/G*100}%`,height:X},children:i.jsx("div",{className:"h-full w-full rounded-2xl border border-dashed border-border/60"})},`${s.x}-${s.y}`)}function ui(s){const e=$.c(31),{tile:t,isEditMode:r,isDragging:n,onResize:l,onRemove:o,children:c}=s,a=!r;let d;e[0]!==a||e[1]!==t.id?(d={id:t.id,disabled:a},e[0]=a,e[1]=t.id,e[2]=d):d=e[2];const{setNodeRef:m,attributes:u,listeners:p,isDragging:g}=Ft(d),b=`${t.x/G*100}%`,x=`${t.w/G*100}%`,f=t.y*X,h=t.h*X,y=g||n,w=!y&&"transition-[left,top,width,height,opacity] duration-200 ease-out",v=y&&"opacity-30";let j;e[3]!==w||e[4]!==v?(j=K("absolute p-1 will-change-[left,top,width,height,opacity]",w,v),e[3]=w,e[4]=v,e[5]=j):j=e[5];let N;e[6]!==h||e[7]!==b||e[8]!==f||e[9]!==x?(N={left:b,top:f,width:x,height:h},e[6]=h,e[7]=b,e[8]=f,e[9]=x,e[10]=N):N=e[10];const _=r&&"outline outline-1 outline-transparent hover:outline-primary/40";let T;e[11]!==_?(T=K("relative h-full bg-card card-shadow rounded-2xl overflow-hidden",_),e[11]=_,e[12]=T):T=e[12];let S;e[13]!==u||e[14]!==r||e[15]!==p||e[16]!==o||e[17]!==l||e[18]!==t?(S=r&&i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",...u,...p,className:"absolute top-2 left-2 z-10 flex size-8 items-center justify-center rounded-md bg-background/90 border border-border text-muted-foreground hover:text-foreground hover:bg-muted cursor-grab active:cursor-grabbing","aria-label":"Drag tile",children:i.jsx(ze,{size:16})}),i.jsx("div",{className:"absolute top-2 right-2 z-10 flex items-center gap-1",children:i.jsx(fi,{tile:t,onResize:l,onRemove:o})})]}),e[13]=u,e[14]=r,e[15]=p,e[16]=o,e[17]=l,e[18]=t,e[19]=S):S=e[19];let E;e[20]!==c?(E=i.jsx("div",{className:"h-full overflow-hidden",children:i.jsx(fe,{children:c})}),e[20]=c,e[21]=E):E=e[21];let k;e[22]!==E||e[23]!==T||e[24]!==S?(k=i.jsxs("div",{className:T,children:[S,E]}),e[22]=E,e[23]=T,e[24]=S,e[25]=k):k=e[25];let C;return e[26]!==m||e[27]!==k||e[28]!==j||e[29]!==N?(C=i.jsx("div",{ref:m,className:j,style:N,children:k}),e[26]=m,e[27]=k,e[28]=j,e[29]=N,e[30]=C):C=e[30],C}function fi(s){const e=$.c(43),{tile:t,onResize:r,onRemove:n}=s,l=t.minW??1,o=t.minH??1;let c,a,d,m,u,p,g;if(e[0]!==o||e[1]!==l||e[2]!==r||e[3]!==t.h||e[4]!==t.id||e[5]!==t.w){let v;e[13]!==o||e[14]!==l?(v=S=>{const E=ie[S];return E.w>=l&&E.h>=o},e[13]=o,e[14]=l,e[15]=v):v=e[15];const j=Ee.filter(v);let N;e[16]!==t.h||e[17]!==t.w?(N=(()=>{for(const E of Ee){const k=ie[E];if(k.w===t.w&&k.h===t.h)return E}return null})(),e[16]=t.h,e[17]=t.w,e[18]=N):N=e[18];const _=N;a=us,e[19]===Symbol.for("react.memo_cache_sentinel")?(g=i.jsx(fs,{asChild:!0,children:i.jsx("button",{type:"button",className:"flex size-8 items-center justify-center rounded-md bg-background/90 border border-border text-muted-foreground hover:text-foreground hover:bg-muted","aria-label":"Tile options",children:i.jsx(Tt,{size:16})})}),e[19]=g):g=e[19],c=hs,d="end",m="w-44",e[20]===Symbol.for("react.memo_cache_sentinel")?(u=i.jsx(ps,{children:"Size"}),e[20]=u):u=e[20];let T;e[21]!==_||e[22]!==r||e[23]!==t.id?(T=S=>{const E=ie[S];return i.jsxs(Ne,{onSelect:()=>r(t.id,E),className:"flex items-center justify-between",children:[i.jsx("span",{children:oi[S]}),i.jsx("span",{className:"text-xs text-muted-foreground",children:_===S?"✓":`${E.w}×${E.h}`})]},S)},e[21]=_,e[22]=r,e[23]=t.id,e[24]=T):T=e[24],p=j.map(T),e[0]=o,e[1]=l,e[2]=r,e[3]=t.h,e[4]=t.id,e[5]=t.w,e[6]=c,e[7]=a,e[8]=d,e[9]=m,e[10]=u,e[11]=p,e[12]=g}else c=e[6],a=e[7],d=e[8],m=e[9],u=e[10],p=e[11],g=e[12];let b;e[25]===Symbol.for("react.memo_cache_sentinel")?(b=i.jsx(xs,{}),e[25]=b):b=e[25];let x;e[26]!==n||e[27]!==t.id?(x=()=>n(t.id),e[26]=n,e[27]=t.id,e[28]=x):x=e[28];let f;e[29]===Symbol.for("react.memo_cache_sentinel")?(f=i.jsx(gs,{size:14,className:"mr-2"}),e[29]=f):f=e[29];let h;e[30]!==x?(h=i.jsxs(Ne,{onSelect:x,className:"text-destructive focus:text-destructive",children:[f,"Remove tile"]}),e[30]=x,e[31]=h):h=e[31];let y;e[32]!==c||e[33]!==d||e[34]!==m||e[35]!==u||e[36]!==p||e[37]!==h?(y=i.jsxs(c,{align:d,className:m,children:[u,p,b,h]}),e[32]=c,e[33]=d,e[34]=m,e[35]=u,e[36]=p,e[37]=h,e[38]=y):y=e[38];let w;return e[39]!==a||e[40]!==y||e[41]!==g?(w=i.jsxs(a,{children:[g,y]}),e[39]=a,e[40]=y,e[41]=g,e[42]=w):w=e[42],w}function hi(s,e,t){return s.some(r=>e>=r.x&&e<r.x+r.w&&t>=r.y&&t<r.y+r.h)}function he(s,e,t){for(let r=0;r<100;r++)for(let n=0;n<=G-e;n++){let l=!0;for(let o=0;o<t&&l;o++)for(let c=0;c<e&&l;c++)hi(s,n+c,r+o)&&(l=!1);if(l)return{x:n,y:r}}return{x:0,y:0}}function ce(s,e,t={w:1,h:1}){const r=Math.max(t.w,Math.min(G,s)),n=Math.max(t.h,Math.min(6,e));return{w:r,h:n}}function de(s,e,t){const r=Math.max(0,Math.min(G-t,s)),n=Math.max(0,e);return{x:r,y:n}}function pi(s,e,t){const r=s.find(a=>a.id===e);if(!r)return s;const n=s.filter(a=>a.id!==e),l=n.find(a=>t.x>=a.x&&t.x<a.x+a.w&&t.y>=a.y&&t.y<a.y+a.h);if(l&&l.w===r.w&&l.h===r.h)return s.map(a=>a.id===e?{...a,x:l.x,y:l.y}:a.id===l.id?{...a,x:r.x,y:r.y}:a);const c=[{...r,x:t.x,y:t.y}];for(const a of n){const d=he(c,a.w,a.h);c.push({...a,x:d.x,y:d.y})}return c}function xi(s){const e=$.c(35),{layout:t,isLayoutLoading:r,commitLayout:n}=Ye();let l;e[0]!==t.hidden?(l=new Set(t.hidden),e[0]=t.hidden,e[1]=l):l=e[1];const o=l;let c,a;if(e[2]!==s||e[3]!==o||e[4]!==t.tiles){a=[];let y;e[7]!==o?(y=v=>v.pinned||!o.has(v.id),e[7]=o,e[8]=y):y=e[8];const w=s.filter(y);c=new Map;for(const v of s)v.minSize&&c.set(v.id,v.minSize);for(const v of w){const j=t.tiles[v.id];if(!j)continue;const N=c.get(v.id),{w:_,h:T}=ce(j.w,j.h,N),{x:S,y:E}=de(j.x,j.y,_);a.push({id:v.id,x:S,y:E,w:_,h:T,minW:N?.w,minH:N?.h})}for(const v of w){if(a.some(E=>E.id===v.id))continue;const j=v.defaultSize??li,N=c.get(v.id),{w:_,h:T}=ce(j.w,j.h,N),S=he(a,_,T);a.push({id:v.id,x:S.x,y:S.y,w:_,h:T,minW:N?.w,minH:N?.h})}e[2]=s,e[3]=o,e[4]=t.tiles,e[5]=c,e[6]=a}else c=e[5],a=e[6];let d;e[9]!==s?(d=new Set(s.map(gi)),e[9]=s,e[10]=d):d=e[10];const m=d;let u;e[11]!==m||e[12]!==n?(u=(y,w)=>{const v={};for(const j of y)v[j.id]={x:j.x,y:j.y,w:j.w,h:j.h};n({version:J,tiles:v,hidden:w.filter(j=>m.has(j))})},e[11]=m,e[12]=n,e[13]=u):u=e[13];const p=u;let g;e[14]!==a?(g={visible:a},e[14]=a,e[15]=g):g=e[15];let b;e[16]!==p||e[17]!==t||e[18]!==a?(b=(y,w)=>{const v=a.find(_=>_.id===y);if(!v)return;const j=de(w.x,w.y,v.w);if(j.x===v.x&&j.y===v.y)return;const N=pi(a,y,j);p(N,t.hidden)},e[16]=p,e[17]=t,e[18]=a,e[19]=b):b=e[19];let x;e[20]!==p||e[21]!==t||e[22]!==c||e[23]!==a?(x=(y,w)=>{const v=a.find(k=>k.id===y);if(!v)return;const j=c.get(y),{w:N,h:_}=ce(w.w,w.h,j);if(N===v.w&&_===v.h)return;const T={...v,w:N,h:_,x:de(v.x,v.y,N).x},S=a.filter(k=>k.id!==y),E=[T];for(const k of S){const C=he(E,k.w,k.h);E.push({...k,x:C.x,y:C.y})}p(E,t.hidden)},e[20]=p,e[21]=t,e[22]=c,e[23]=a,e[24]=x):x=e[24];let f;e[25]!==p||e[26]!==t||e[27]!==a?(f=y=>{const w=a.filter(v=>v.id!==y);p(w,Array.from(new Set([...t.hidden,y])))},e[25]=p,e[26]=t,e[27]=a,e[28]=f):f=e[28];let h;return e[29]!==r||e[30]!==g||e[31]!==b||e[32]!==x||e[33]!==f?(h={snapshot:g,isLoading:r,moveTile:b,resizeTile:x,hideTile:f},e[29]=r,e[30]=g,e[31]=b,e[32]=x,e[33]=f,e[34]=h):h=e[34],h}function gi(s){return s.id}const bi={w:2,h:4},yi={w:1,h:2},vi={w:1,h:1};function ji(s){return`prompt:${s.agentId}:${s.promptName||"blank"}`}function wi(s){return`tile:${s.agentId}:${s.resourceUri}`}function Ni(s){return s.promptName?s.agentName:s.description}function Si(s){return{name:s.promptName,title:s.title,description:s.description,arguments:s.arguments,_meta:s._meta}}function ve(s){const e=$.c(10);let t;e[0]!==s?(t={agentId:s},e[0]=s,e[1]=t):t=e[1];const{start:r,startBlank:n,dialog:l,starting:o}=ri(t);let c;e[2]!==r||e[3]!==n?(c=m=>{if(!m.promptName){n();return}r(Si(m))},e[2]=r,e[3]=n,e[4]=c):c=e[4];const a=c;let d;return e[5]!==l||e[6]!==a||e[7]!==n||e[8]!==o?(d={open:a,startBlank:n,dialog:l,starting:o},e[5]=l,e[6]=a,e[7]=n,e[8]=o,e[9]=d):d=e[9],d}function _i(s){const e=$.c(32),{entry:t,isEditMode:r}=s,{open:n,dialog:l,starting:o}=ve(t.agentId);let c;e[0]!==t||e[1]!==n?(c=()=>n(t),e[0]=t,e[1]=n,e[2]=c):c=e[2];const a=o||r,d=!r&&"cursor-pointer transition-colors hover:bg-accent/40",m=r&&"cursor-default pl-12",u=o&&"opacity-60";let p;e[3]!==d||e[4]!==m||e[5]!==u?(p=K("group/tile relative flex h-full w-full items-center gap-3 px-4 py-3 text-left bg-card",d,m,u),e[3]=d,e[4]=m,e[5]=u,e[6]=p):p=e[6];let g;e[7]!==t.agentIcon||e[8]!==t.agentName?(g=i.jsx(Y,{icon:t.agentIcon,name:t.agentName,size:"sm+"}),e[7]=t.agentIcon,e[8]=t.agentName,e[9]=g):g=e[9];let b;e[10]!==t.title?(b=i.jsx("div",{className:"line-clamp-2 text-sm font-medium text-foreground leading-snug",children:t.title}),e[10]=t.title,e[11]=b):b=e[11];let x;e[12]!==t?(x=Ni(t),e[12]=t,e[13]=x):x=e[13];let f;e[14]!==x?(f=i.jsx("div",{className:"truncate text-xs text-muted-foreground mt-0.5",children:x}),e[14]=x,e[15]=f):f=e[15];let h;e[16]!==f||e[17]!==b?(h=i.jsxs("div",{className:"min-w-0 flex-1",children:[b,f]}),e[16]=f,e[17]=b,e[18]=h):h=e[18];let y;e[19]!==r?(y=!r&&i.jsx(as,{size:16,className:"shrink-0 text-muted-foreground opacity-0 -translate-x-1 transition-all duration-200 group-hover/tile:opacity-100 group-hover/tile:translate-x-0","aria-hidden":!0}),e[19]=r,e[20]=y):y=e[20];let w;e[21]!==o||e[22]!==c||e[23]!==h||e[24]!==y||e[25]!==a||e[26]!==p||e[27]!==g?(w=i.jsxs("button",{type:"button",onClick:c,disabled:a,"aria-busy":o,className:p,children:[g,h,y]}),e[21]=o,e[22]=c,e[23]=h,e[24]=y,e[25]=a,e[26]=p,e[27]=g,e[28]=w):w=e[28];let v;return e[29]!==l||e[30]!==w?(v=i.jsxs(i.Fragment,{children:[w,l]}),e[29]=l,e[30]=w,e[31]=v):v=e[31],v}function Ci(){const s=$.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx("div",{className:"mt-4 grid w-full grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",children:Array.from({length:3},Ti)}),s[0]=e):e=s[0],e}function Ti(s,e){return i.jsxs("div",{className:"flex w-full items-center gap-3 rounded-2xl bg-card card-shadow px-3 py-2.5",children:[i.jsx(H,{className:"size-10 rounded-xl"}),i.jsxs("div",{className:"flex-1 space-y-1.5",children:[i.jsx(H,{className:"h-3 w-2/3"}),i.jsx(H,{className:"h-2.5 w-1/3"})]})]},`chip-skeleton-${e}`)}function Ei(s){const e=$.c(59),{tile:t,prompts:r,isEditMode:n,tileWidth:l}=s,{org:o}=V();let c;e[0]!==o.id||e[1]!==o.slug||e[2]!==t.connectionId?(c={connectionId:t.connectionId,orgId:o.id,orgSlug:o.slug},e[0]=o.id,e[1]=o.slug,e[2]=t.connectionId,e[3]=c):c=e[3];const a=ee(c),{open:d,startBlank:m,dialog:u,starting:p}=ve(t.agentId);let g,b,x,f,h;if(e[4]!==a||e[5]!==n||e[6]!==d||e[7]!==o.id||e[8]!==r||e[9]!==m||e[10]!==p||e[11]!==t.agentIcon||e[12]!==t.agentName||e[13]!==t.maxHeight||e[14]!==t.minHeight||e[15]!==t.resourceUri||e[16]!==l){const v=r.filter(ki);f="flex h-full w-full flex-col gap-3 p-3";let j;e[22]!==m?(j=()=>{m()},e[22]=m,e[23]=j):j=e[23];const N=p||n,_=n&&"pl-10 pr-10";let T;e[24]!==_?(T=K("flex items-center gap-3 rounded-lg text-left outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-progress disabled:opacity-60",_),e[24]=_,e[25]=T):T=e[25];let S;e[26]!==t.agentIcon||e[27]!==t.agentName?(S=i.jsx(Y,{icon:t.agentIcon,name:t.agentName,size:"sm+"}),e[26]=t.agentIcon,e[27]=t.agentName,e[28]=S):S=e[28];let E;e[29]!==t.agentName?(E=i.jsx("div",{className:"truncate text-sm font-medium text-foreground",children:t.agentName}),e[29]=t.agentName,e[30]=E):E=e[30];const k=n?"Drag to rearrange":"Open chat";let C;e[31]!==k?(C=i.jsx("div",{className:"truncate text-xs text-muted-foreground",children:k}),e[31]=k,e[32]=C):C=e[32];let I;e[33]!==E||e[34]!==C?(I=i.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[E,C]}),e[33]=E,e[34]=C,e[35]=I):I=e[35],e[36]!==p||e[37]!==T||e[38]!==S||e[39]!==I||e[40]!==j||e[41]!==N?(h=i.jsxs("button",{type:"button",onClick:j,disabled:N,"aria-busy":p,className:T,children:[S,I]}),e[36]=p,e[37]=T,e[38]=S,e[39]=I,e[40]=j,e[41]=N,e[42]=h):h=e[42],g="flex min-h-0 flex-1 gap-3 overflow-hidden";let A;e[43]===Symbol.for("react.memo_cache_sentinel")?(A=i.jsx(Ii,{}),e[43]=A):A=e[43];const D=t.minHeight??200,z=t.maxHeight??4e3;e[44]!==a||e[45]!==o.id||e[46]!==D||e[47]!==z||e[48]!==t.resourceUri?(b=i.jsx("div",{className:"min-h-0 flex-1 overflow-hidden rounded-lg border border-border",children:i.jsx(L.Suspense,{fallback:A,children:i.jsx(ts,{resourceURI:t.resourceUri,orgId:o.id,client:a,displayMode:"fullscreen",minHeight:D,maxHeight:z,className:"h-full"})})}),e[44]=a,e[45]=o.id,e[46]=D,e[47]=z,e[48]=t.resourceUri,e[49]=b):b=e[49],x=v.length>0&&!n&&l>=2&&i.jsx("div",{className:"flex w-44 shrink-0 flex-col gap-2 overflow-hidden",children:v.map(O=>i.jsx("button",{type:"button",onClick:()=>d(O),disabled:p,className:"shrink-0 rounded-lg border border-border bg-background px-2.5 py-2 text-left text-xs leading-snug text-foreground transition-colors hover:bg-accent/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-progress disabled:opacity-60",children:i.jsx("span",{className:"line-clamp-2",children:O.title})},O.promptName))}),e[4]=a,e[5]=n,e[6]=d,e[7]=o.id,e[8]=r,e[9]=m,e[10]=p,e[11]=t.agentIcon,e[12]=t.agentName,e[13]=t.maxHeight,e[14]=t.minHeight,e[15]=t.resourceUri,e[16]=l,e[17]=g,e[18]=b,e[19]=x,e[20]=f,e[21]=h}else g=e[17],b=e[18],x=e[19],f=e[20],h=e[21];let y;e[50]!==g||e[51]!==b||e[52]!==x?(y=i.jsxs("div",{className:g,children:[b,x]}),e[50]=g,e[51]=b,e[52]=x,e[53]=y):y=e[53];let w;return e[54]!==u||e[55]!==f||e[56]!==h||e[57]!==y?(w=i.jsxs("div",{className:f,children:[h,y,u]}),e[54]=u,e[55]=f,e[56]=h,e[57]=y,e[58]=w):w=e[58],w}function ki(s){return!!s.promptName}function Ii(){const s=$.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsxs("div",{className:"flex h-full w-full flex-col gap-2 p-4",children:[i.jsx(H,{className:"h-3 w-2/3"}),i.jsx(H,{className:"h-3 w-1/2"}),i.jsx(H,{className:"mt-1 h-full w-full rounded-md"})]}),s[0]=e):e=s[0],e}function $i(s){const e=$.c(14),{icon:t,name:r}=s;let n;e[0]!==t||e[1]!==r?(n=i.jsx(Y,{icon:t,name:r,size:"sm+"}),e[0]=t,e[1]=r,e[2]=n):n=e[2];let l;e[3]!==r?(l=i.jsx("div",{className:"truncate text-sm font-medium text-foreground",children:r}),e[3]=r,e[4]=l):l=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx("div",{className:"truncate text-xs text-muted-foreground",children:"Loading tile…"}),e[5]=o):o=e[5];let c;e[6]!==l?(c=i.jsxs("div",{className:"min-w-0 flex-1",children:[l,o]}),e[6]=l,e[7]=c):c=e[7];let a;e[8]!==n||e[9]!==c?(a=i.jsxs("div",{className:"flex items-center gap-2.5",children:[n,c]}),e[8]=n,e[9]=c,e[10]=a):a=e[10];let d;e[11]===Symbol.for("react.memo_cache_sentinel")?(d=i.jsxs("div",{className:"flex flex-1 flex-col gap-2 pt-1",children:[i.jsx(H,{className:"h-3 w-3/4"}),i.jsx(H,{className:"h-3 w-1/2"}),i.jsx(H,{className:"h-3 w-2/3"})]}),e[11]=d):d=e[11];let m;return e[12]!==a?(m=i.jsxs("div",{className:"flex h-full w-full flex-col gap-3 p-5 opacity-60",children:[a,d]}),e[12]=a,e[13]=m):m=e[13],m}function Ai(s){const e=$.c(33),{tile:t,prompts:r,isEditMode:n}=s,{open:l,startBlank:o,dialog:c,starting:a}=ve(t.agentId);let d,m,u;if(e[0]!==n||e[1]!==l||e[2]!==r||e[3]!==o||e[4]!==a||e[5]!==t.agentIcon||e[6]!==t.agentName){const g=r.filter(Mi);d="flex h-full w-full flex-col gap-3 p-4";let b;e[10]!==o?(b=()=>{o()},e[10]=o,e[11]=b):b=e[11];const x=a||n,f=n&&"pl-10 pr-10";let h;e[12]!==f?(h=K("flex items-center gap-3 rounded-lg text-left outline-none focus-visible:ring-2 focus-visible:ring-ring",f),e[12]=f,e[13]=h):h=e[13];let y;e[14]!==t.agentIcon||e[15]!==t.agentName?(y=i.jsx(Y,{icon:t.agentIcon,name:t.agentName,size:"sm+"}),e[14]=t.agentIcon,e[15]=t.agentName,e[16]=y):y=e[16];let w;e[17]!==t.agentName?(w=i.jsx("div",{className:"truncate text-sm font-medium text-foreground",children:t.agentName}),e[17]=t.agentName,e[18]=w):w=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=i.jsx("div",{className:"truncate text-xs text-muted-foreground",children:"UI unavailable — open chat"}),e[19]=v):v=e[19];let j;e[20]!==w?(j=i.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[w,v]}),e[20]=w,e[21]=j):j=e[21],e[22]!==j||e[23]!==b||e[24]!==x||e[25]!==h||e[26]!==y?(m=i.jsxs("button",{type:"button",onClick:b,disabled:x,className:h,children:[y,j]}),e[22]=j,e[23]=b,e[24]=x,e[25]=h,e[26]=y,e[27]=m):m=e[27],u=g.length>0&&!n&&i.jsx("div",{className:"grid grid-cols-1 gap-2 overflow-hidden sm:grid-cols-2",children:g.map(N=>i.jsx("button",{type:"button",onClick:()=>!n&&l(N),disabled:a,className:"rounded-lg border border-border bg-background px-2.5 py-2 text-left text-xs leading-snug text-foreground transition-colors hover:bg-accent/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-progress disabled:opacity-60",children:i.jsx("span",{className:"line-clamp-2",children:N.title})},N.promptName))}),e[0]=n,e[1]=l,e[2]=r,e[3]=o,e[4]=a,e[5]=t.agentIcon,e[6]=t.agentName,e[7]=d,e[8]=m,e[9]=u}else d=e[7],m=e[8],u=e[9];let p;return e[28]!==c||e[29]!==d||e[30]!==m||e[31]!==u?(p=i.jsxs("div",{className:d,children:[m,u,c]}),e[28]=c,e[29]=d,e[30]=m,e[31]=u,e[32]=p):p=e[32],p}function Mi(s){return!!s.promptName}function et(s){const e=$.c(36),{isEditMode:t}=s,{org:r}=V(),{isLoading:n,prompts:l,tiles:o}=ye(r.slug),c=Ue()?.ids??[];let a;e[0]!==c?(a=new Set(c),e[0]=c,e[1]=a):a=e[1];const d=a,m=Be();let u;e[2]!==o?(u=new Set(o.map(Di)),e[2]=o,e[3]=u):u=e[3];const p=u;let g;if(e[4]!==l){g=new Map;for(const C of l){const I=g.get(C.agentId);I?I.push(C):g.set(C.agentId,[C])}e[4]=l,e[5]=g}else g=e[5];let b;if(e[6]!==l||e[7]!==p||e[8]!==o){let C;e[10]!==p?(C=A=>!p.has(A.agentId),e[10]=p,e[11]=C):C=e[11];const I=l.filter(C);b=[...o.map(Ri),...I.map(Oi)],e[6]=l,e[7]=p,e[8]=o,e[9]=b}else b=e[9];const x=b;let f;e[12]!==x?(f=new Map(x.map(zi)),e[12]=x,e[13]=f):f=e[13];const h=f;let y;e[14]!==x||e[15]!==d?(y=x.map(C=>({id:C.id,defaultSize:C.kind==="tile"?bi:vi,minSize:C.kind==="tile"?yi:void 0,pinned:d.has(C.data.agentId)})),e[14]=x,e[15]=d,e[16]=y):y=e[16];const w=xi(y);let v;e[17]!==m?(v=C=>{m.apply(I=>I.filter(A=>A!==C)).catch(Li)},e[17]=m,e[18]=v):v=e[18];const j=v;let N;e[19]!==h||e[20]!==w||e[21]!==d||e[22]!==j?(N=C=>{const I=h.get(C);I&&d.has(I.data.agentId)?j(I.data.agentId):w.hideTile(C)},e[19]=h,e[20]=w,e[21]=d,e[22]=j,e[23]=N):N=e[23];const _=N;let T;e[24]!==h||e[25]!==t||e[26]!==g?(T=C=>{const I=h.get(C.id);if(!I)return null;if(I.kind==="tile"){const A=g.get(I.data.agentId)??[];return i.jsx(xt,{fallback:i.jsx(Ai,{tile:I.data,prompts:A,isEditMode:t}),children:i.jsx(L.Suspense,{fallback:i.jsx($i,{icon:I.data.agentIcon,name:I.data.agentName}),children:i.jsx(Ei,{tile:I.data,prompts:A,isEditMode:t,tileWidth:C.w})})})}return i.jsx(_i,{entry:I.data,isEditMode:t})},e[24]=h,e[25]=t,e[26]=g,e[27]=T):T=e[27];const S=T;if(n||w.isLoading){let C;return e[28]===Symbol.for("react.memo_cache_sentinel")?(C=i.jsx(Ci,{}),e[28]=C):C=e[28],C}if(w.snapshot.visible.length===0&&!t)return null;let k;return e[29]!==t||e[30]!==w.moveTile||e[31]!==w.resizeTile||e[32]!==w.snapshot.visible||e[33]!==_||e[34]!==S?(k=i.jsx("div",{className:"mt-4 flex w-full max-w-7xl flex-col gap-4",children:i.jsx(ai,{tiles:w.snapshot.visible,isEditMode:t,renderTile:S,onMove:w.moveTile,onResize:w.resizeTile,onRemove:_})}),e[29]=t,e[30]=w.moveTile,e[31]=w.resizeTile,e[32]=w.snapshot.visible,e[33]=_,e[34]=S,e[35]=k):k=e[35],k}function Li(){return W.error("Couldn't remove from home — please try again.")}function zi(s){return[s.id,s]}function Oi(s){return{kind:"prompt",id:ji(s),data:s}}function Ri(s){return{kind:"tile",id:wi(s),data:s}}function Di(s){return s.agentId}function Pi(s){const e=$.c(2),{prompts:t,tiles:r}=ye(s),n=r.length>0||t.length>0;let l;return e[0]!==n?(l={hasVisibleTiles:n},e[0]=n,e[1]=l):l=e[1],l}const ke=420,Ie=305;function tt(){const s=$.c(4);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx("img",{src:"/home/bg-top-left.svg",alt:"",className:"absolute top-0 left-0 h-auto select-none opacity-80 dark:hidden",style:{width:ke}}),s[0]=e):e=s[0];let t;s[1]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx("img",{src:"/home/bg-top-left-dark.svg",alt:"",className:"absolute top-0 left-0 hidden h-auto select-none opacity-80 dark:block",style:{width:ke}}),s[1]=t):t=s[1];let r;s[2]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx("img",{src:"/home/bg-bottom-right.svg",alt:"",className:"absolute bottom-0 right-0 h-auto select-none opacity-80 dark:hidden",style:{width:Ie}}),s[2]=r):r=s[2];let n;return s[3]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 overflow-hidden",children:[e,t,r,i.jsx("img",{src:"/home/bg-bottom-right-dark.svg",alt:"",className:"absolute bottom-0 right-0 hidden h-auto select-none opacity-80 dark:block",style:{width:Ie}})]}),s[3]=n):n=s[3],n}function $e(){const s=$.c(33),{data:e}=gt.useSession(),{org:t}=V(),r=ge(),n=At(),{selectedVirtualMcp:l}=Mt();let o;s[0]!==t.id?(o=yt(t.id),s[0]=t.id,s[1]=o):o=s[1];const a=l??o;let d;s[2]!==t.slug?(d=qt(t.slug),s[2]=t.slug,s[3]=d):d=s[3],le(d);let m;s[4]!==t.id||s[5]!==t.slug?(m={connectionId:Le,orgId:t.id,orgSlug:t.slug},s[4]=t.id,s[5]=t.slug,s[6]=m):m=s[6];const u=ee(m);let p;s[7]!==t.id||s[8]!==u?(p=bs(u,t.id),s[7]=t.id,s[8]=u,s[9]=p):p=s[9];let g;s[10]!==t.id||s[11]!==u?(g=Qt(u,t.id),s[10]=t.id,s[11]=u,s[12]=g):g=s[12];let b;s[13]!==a.id||s[14]!==t.id||s[15]!==u?(b=wt(t.id,a.id,u),s[13]=a.id,s[14]=t.id,s[15]=u,s[16]=b):b=s[16];let x;s[17]!==p||s[18]!==g||s[19]!==b?(x={queries:[p,g,b]},s[17]=p,s[18]=g,s[19]=b,s[20]=x):x=s[20],Ss(x);const f=ys(),h=Nt(a.id),{hasDecoKey:y,isZeroBalance:w,isInitialFreeCredit:v,balanceDollars:j,hasOnlyDecoProvider:N}=kt(),{hasVisibleTiles:_}=Pi(t.slug),T=It(h?.metadata);if(f.length===0&&!(T&&$t(n))){let O;return s[21]===Symbol.for("react.memo_cache_sentinel")?(O=i.jsx("div",{className:"flex-1 overflow-y-auto",children:i.jsx("div",{className:"min-h-full flex items-center justify-center px-4 py-10",children:i.jsx(Lt,{})})}),s[21]=O):O=s[21],O}let E;s[22]!==e?.user?.name?(E=e?.user?.name?.split(" ")[0]||"there",s[22]=e?.user?.name,s[23]=E):E=s[23];const k=E,C=y&&v&&j!=null,I=y&&w&&N;let A;s[24]!==j||s[25]!==C||s[26]!==I?(A=C?i.jsx(ne.CreditsEyebrow,{balanceDollars:j}):I?i.jsx(ne.NoCreditsEyebrow,{}):null,s[24]=j,s[25]=C,s[26]=I,s[27]=A):A=s[27];const D=A;let z;return s[28]!==D||s[29]!==_||s[30]!==r||s[31]!==k?(z=i.jsx(ni,{children:r?i.jsx(Hi,{eyebrow:D,userName:k}):i.jsx(Ui,{eyebrow:D,userName:k,hasVisibleTiles:_})}),s[28]=D,s[29]=_,s[30]=r,s[31]=k,s[32]=z):z=s[32],z}function Hi(s){const e=$.c(12),{eyebrow:t,userName:r}=s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(tt,{}),e[0]=n):n=e[0];let l;e[1]!==t?(l=t&&i.jsx("div",{className:"mb-4",children:t}),e[1]=t,e[2]=l):l=e[2];let o;e[3]!==r?(o=i.jsxs("p",{className:"text-3xl font-medium text-foreground text-center max-w-[280px]",children:["What's on your mind, ",r,"?"]}),e[3]=r,e[4]=o):o=e[4];let c;e[5]!==l||e[6]!==o?(c=i.jsxs("div",{className:"relative flex flex-col items-center justify-center w-full pt-28 pb-8 px-4",children:[l,o]}),e[5]=l,e[6]=o,e[7]=c):c=e[7];let a;e[8]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx("div",{className:"relative w-full flex flex-col gap-4 pb-8 px-4",children:i.jsx(ne.Input,{showConnectionsBanner:!0})}),e[8]=a):a=e[8];let d;e[9]===Symbol.for("react.memo_cache_sentinel")?(d=i.jsx("div",{className:"relative w-full px-4 pb-8",children:i.jsx(et,{isEditMode:!1})}),e[9]=d):d=e[9];let m;return e[10]!==c?(m=i.jsxs("div",{className:"flex-1 relative flex flex-col items-center overflow-y-auto",children:[n,c,a,d]}),e[10]=c,e[11]=m):m=e[11],m}function Ui(s){const e=$.c(32),{eyebrow:t,userName:r,hasVisibleTiles:n}=s,{isEditMode:l,enter:o,save:c,cancel:a,hasChanges:d}=Ye(),[m,u]=L.useState(!1);let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p=()=>u(!0),e[0]=p):p=e[0];let g;e[1]!==a||e[2]!==o||e[3]!==d||e[4]!==l||e[5]!==c?(g=i.jsx(vs.Right,{children:i.jsx(Bi,{isEditMode:l,hasChanges:d,onEnter:o,onSave:c,onCancel:a,onAddTile:p})}),e[1]=a,e[2]=o,e[3]=d,e[4]=l,e[5]=c,e[6]=g):g=e[6];let b;e[7]!==m?(b=i.jsx(_s,{open:m,onOpenChange:u}),e[7]=m,e[8]=b):b=e[8];let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=i.jsx(tt,{}),e[9]=x):x=e[9];const f=n||l?"pt-32":"flex-1 justify-center";let h;e[10]!==f?(h=K("relative flex flex-col items-center px-10 pb-4",f),e[10]=f,e[11]=h):h=e[11];let y;e[12]!==t?(y=t&&i.jsx("div",{className:"mb-4",children:t}),e[12]=t,e[13]=y):y=e[13];let w;e[14]!==r?(w=i.jsxs("p",{className:"text-3xl font-medium text-foreground",children:["What's on your mind, ",r,"?"]}),e[14]=r,e[15]=w):w=e[15];let v;e[16]!==y||e[17]!==w?(v=i.jsxs("div",{className:"text-center mb-10",children:[y,w]}),e[16]=y,e[17]=w,e[18]=v):v=e[18];let j;e[19]===Symbol.for("react.memo_cache_sentinel")?(j=i.jsxs("div",{className:"relative w-full",children:[i.jsx(Fi,{}),i.jsx(ne.Input,{showConnectionsBanner:!0})]}),e[19]=j):j=e[19];let N;e[20]!==v?(N=i.jsxs("div",{className:"flex flex-col items-center w-full max-w-[672px]",children:[v,j]}),e[20]=v,e[21]=N):N=e[21];let _;e[22]!==l?(_=i.jsx("div",{className:"relative w-full mt-10 mx-auto max-w-[1280px] px-2 pb-16",children:i.jsx(et,{isEditMode:l})}),e[22]=l,e[23]=_):_=e[23];let T;e[24]!==N||e[25]!==_||e[26]!==h?(T=i.jsxs("div",{className:"flex-1 relative flex flex-col min-h-0",children:[x,i.jsx("div",{className:"flex-1 relative flex flex-col overflow-y-auto",children:i.jsxs("div",{className:h,children:[N,_]})})]}),e[24]=N,e[25]=_,e[26]=h,e[27]=T):T=e[27];let S;return e[28]!==T||e[29]!==g||e[30]!==b?(S=i.jsxs(i.Fragment,{children:[g,b,T]}),e[28]=T,e[29]=g,e[30]=b,e[31]=S):S=e[31],S}function Bi(s){const e=$.c(17),{isEditMode:t,hasChanges:r,onEnter:n,onSave:l,onCancel:o,onAddTile:c}=s;if(t){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(be,{size:14}),e[0]=m):m=e[0];let u;e[1]!==c?(u=i.jsxs("button",{type:"button",onClick:c,className:"flex h-7 items-center gap-1.5 rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground transition-colors",title:"Add a tile from any agent",children:[m,"Add tile"]}),e[1]=c,e[2]=u):u=e[2];let p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p=i.jsx(Oe,{size:14}),e[3]=p):p=e[3];let g;e[4]!==o?(g=i.jsxs(we,{size:"sm",variant:"ghost",onClick:o,className:"gap-1.5 h-7 text-xs",children:[p,"Cancel"]}),e[4]=o,e[5]=g):g=e[5];const b=!r;let x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=i.jsx(St,{size:14}),e[6]=x):x=e[6];let f;e[7]!==l||e[8]!==b?(f=i.jsxs(we,{size:"sm",onClick:l,disabled:b,className:"gap-1.5 h-7 text-xs",children:[x,"Save"]}),e[7]=l,e[8]=b,e[9]=f):f=e[9];let h;return e[10]!==u||e[11]!==g||e[12]!==f?(h=i.jsxs(i.Fragment,{children:[u,g,f]}),e[10]=u,e[11]=g,e[12]=f,e[13]=h):h=e[13],h}let a;e[14]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(Et,{size:14}),e[14]=a):a=e[14];let d;return e[15]!==n?(d=i.jsxs("button",{type:"button",onClick:n,className:"flex h-7 items-center gap-1.5 rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground transition-colors",title:"Customize your home",children:[a,"Customize"]}),e[15]=n,e[16]=d):d=e[16],d}function Fi(){const s=$.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx("img",{src:"/home/capybara.png",alt:"","aria-hidden":!0,className:"pointer-events-none absolute -top-16 right-6 z-20 h-20 w-auto select-none"}),s[0]=e):e=s[0],e}function Xr(){const s=$.c(2);if(ge()){let r;return s[0]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx("div",{className:"flex-1 min-h-0 flex flex-col bg-background overflow-hidden",children:i.jsx($e,{})}),s[0]=r):r=s[0],r}let t;return s[1]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx("div",{className:"flex-1 min-h-0 pb-1 pr-1 pl-0 pt-0",children:i.jsx("div",{className:"h-full p-0.5 pt-0.25",children:i.jsx("div",{className:"flex flex-col h-full bg-background overflow-hidden card-shadow rounded-[0.75rem]",children:i.jsx($e,{})})})}),s[1]=t):t=s[1],t}export{Xr as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as it,r as E,j as e,l as rt}from"./index-CJoBkEf_.js";import{S as mt,d as pt,a as st,b as at}from"./sheet-y48NbizY.js";import{S as nt}from"./scroll-area-DCO9LjjC.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-aB22X3RV.js";import{j as xt}from"./index-pO-YX1wf.js";import"./X-FDfBE4i9.js";import"./select-D3xFKLhW.js";import"./tooltip-BseNApEN.js";import"./Check-8AgR6ZjG.js";import"./ChevronDown-DhOfQXzQ.js";import"./ChevronUp-BJ7RKHi2.js";import"./label-09bf4ZUr.js";import"./switch-DFEmgVSQ.js";import"./schema-form-B58UjuIl.js";import"./agent-icon-ExlCX9f5.js";import"./AlertCircle-C0w7vkhj.js";import"./Tool01-BcHwzAg_.js";import"./SwitchHorizontal01-5B3DSr8e.js";import"./RefreshCcw01-DVTjMN9w.js";import"./XCircle-8FTuCNvR.js";import"./ArrowUpRight-DNyQYu-V.js";import"./ZapSquare-wTPdLQod.js";import"./Users03-Cgth-3GS.js";import"./CheckCircle-CEi1N2Mq.js";import"./ChevronRight-DQs4tkMm.js";import"./DotsVertical-C00j11Qg.js";import"./Container-nZYBPJRv.js";import"./Eye-B7Xkt1CB.js";import"./Globe01-Uo6KHfk2.js";import"./FilterLines-FHjfh1pF.js";import"./ZoomOut-NkImUVHk.js";import"./Star01-CeDy0qEH.js";import"./Palette-Toq4eQ-J.js";import"./HardDrive-CGMuM2Oy.js";import"./Stars02-ButLG8tI.js";import"./Key01-BIkGax_i.js";import"./LinkExternal01-DycVPnNy.js";import"./Monitor01-D1U6Pa3W.js";import"./Sun-DB_K22EW.js";import"./Play-CA-oDPY7.js";import"./Plus-DgS5eNSe.js";import"./SearchMd-WbJoDaWs.js";import"./Settings02-rrw51k4M.js";import"./Shield01-5itVZGiR.js";import"./Stars01-DYDsxZnS.js";import"./Trash01-C9vkf5T6.js";import"./Upload01-BXTkAAEz.js";import"./User01-C3qNbl-c.js";import"./Users01-C95xm0Ia.js";import"./XClose-BfJTW_HK.js";import"./Zap-DK6MOOIv.js";import"./calendar-xjXZIDeb.js";import"./input-BZDQfdYn.js";import"./popover-D7H0zNnu.js";import"./textarea-Kw6SbqZA.js";import"./dropdown-menu-DKiorR9d.js";import"./image-field-Cru0b2ZK.js";import"./dialog-C3j-c3SR.js";import"./skeleton-BWDI6b5B.js";import"./tabs-Dj3HihPI.js";import"./use-file-configs-BXchIe2N.js";import"./constants-P1xnRFeX.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./useInfiniteQuery--C6hdwWo.js";import"./infiniteQueryObserver-hzkIseBw.js";import"./agent-capabilities-CpWXCeRz.js";import"./pair-B1HhmTC2.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-B4ijm3eQ.js";import"./file-type-icon-DWtzaQPp.js";import"./content-blocks-o63cs2vh.js";import"./types-CEUmohd_.js";import"./chat-context-T6Hxtz67.js";import"./tab-id-BfrA42Sy.js";import"./decopilot-sse-pool-CnTXTZP-.js";import"./create-sse-subscription-BS5983N4.js";import"./use-virtual-mcp-C09vm-BM.js";import"./use-collections-C-e494pb.js";import"./use-ai-providers-DSjz3Xn-.js";import"./use-organization-settings-D5g7NFw1.js";import"./shell-layout-CtsnLkL0.js";import"./avatar-GGBvmgaP.js";import"./required-auth-layout-D_pVrMnQ.js";import"./useRouterState-BjzQ0bsm.js";import"./use-org-sso-Bm8Zb6fp.js";import"./integration-icon-DYz5eywh.js";import"./use-navigate-to-agent-BLkLok3n.js";import"./use-connection-COB3wZyv.js";import"./use-mcp-prompts-CLrlZKHJ.js";import"./form-w7JkvptQ.js";import"./spinner-BLcfraim.js";import"./drawer-ySjhgvkO.js";import"./collection-search-loHJ7IYX.js";import"./toggle-group-CgAd7Mg_.js";import"./agent-icons-DAJPmC7Z.js";import"./checkbox-DotF6hoA.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-xKZ0B7RQ.js";import"./card-7rOCFixx.js";import"./connect-desktop-dialog-BjjpdcQ_.js";import"./command-CYcMZe50.js";import"./index-CswQOvGx.js";import"./sortable.esm-D1-ateSo.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-C98P6TUE.js";import"./use-registry-connections-BfC5RU93.js";import"./extract-connection-data-DQPoIIzo.js";import"./generate-id-BsvOSxwt.js";import"./collections-BY2lU4NZ.js";import"./collection-tabs-IuChGrKO.js";import"./badge-BYAYJbYP.js";import"./connection-form-helpers-B_et0Rp5.js";import"./use-infinite-scroll-BTrNIqxO.js";import"./useSuspenseInfiniteQuery-BZeP3q20.js";import"./index-NioO90_M.js";import"./question-004-sINsf4GQ.js";import"./shell-route-loading-2R_HkOJm.js";import"./sidebar-BNHENVF_.js";import"./toolbar-D7UKSzZi.js";import"./use-create-virtual-mcp-DHggusOz.js";import"./github-repo-picker-B_v87FGw.js";import"./use-mcp-tools-BdUmFkbH.js";import"./alert-dialog-rlUwGNsJ.js";import"./index-vNb1uvqd.js";import"./use-org-auth-client-Bl3vPuak.js";import"./hover-card-B_RJCrCA.js";import"./task-status-gyYC-BVM.js";import"./use-status-sounds-9imVHc_4.js";import"./empty-state-D0UPz__M.js";import"./accordion-BrfX2IfA.js";import"./use-capability-BETReHdP.js";import"./monaco-editor-B2MBxzPo.js";import"./user-Coaz5g4K.js";import"./tools-list-X7Olg8ty.js";import"./use-debounced-autosave-7RLEJTRO.js";import"./index-mPypacb-.js";import"./search-input-BkjmAgNX.js";import"./use-secrets-BjVtsdxA.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-CoifNzqg.js";import"./select-model-DClZJUk2.js";import"./use-automations-DD-gzzG-.js";import"./automation-runs-B9Hv9eE-.js";import"./table-zHqbyGEy.js";import"./use-members-CaSqF02H.js";import"./automation-list-row-BYivUbaE.js";import"./file-preview-kcOvLrSx.js";function ni(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(jt));const{persistSeo:a,persistRawSeo:I,flush:K,isPending:D}=ct({orgSlug:Q,virtualMcpId:U,branch:W,target:m,resolved:o,onSaved:X}),j=m.kind==="page",ot=j?o?.rawSeoData:void 0,v=J!==void 0?J:ot,et=j?dt(v)??void 0:void 0,h=tt??et??o?.seoData??{},p=o?St(h,o):null,n=p&&(!j||ft(v))?xt(p,s):null,_=m.kind==="page"?ut(G,s)?.seoData??void 0:void 0;let w;t[0]!==s?(w=vt(s),t[0]=s,t[1]=w):w=t[1];const M=w;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=j&&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 jt(u){return u+1}export{ni as SeoSheet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as C,j as r}from"./index-CJoBkEf_.js";import{I as F}from"./input-BZDQfdYn.js";import{L as T}from"./label-09bf4ZUr.js";import{T as L}from"./textarea-Kw6SbqZA.js";import{I as A}from"./image-field-Cru0b2ZK.js";import{ak as R,al as D,an as J}from"./index-pO-YX1wf.js";import{u as K,s as S}from"./primitives-JHMgB1o-.js";import{S as M}from"./save-status-B_RrNks8.js";import"./Tool01-BcHwzAg_.js";import"./Trash01-C9vkf5T6.js";import"./Upload01-BXTkAAEz.js";import"./AlertCircle-C0w7vkhj.js";import"./Check-8AgR6ZjG.js";import"./Eye-B7Xkt1CB.js";import"./DotsVertical-C00j11Qg.js";import"./agent-icon-ExlCX9f5.js";import"./SwitchHorizontal01-5B3DSr8e.js";import"./RefreshCcw01-DVTjMN9w.js";import"./XCircle-8FTuCNvR.js";import"./ArrowUpRight-DNyQYu-V.js";import"./ZapSquare-wTPdLQod.js";import"./Users03-Cgth-3GS.js";import"./CheckCircle-CEi1N2Mq.js";import"./ChevronDown-DhOfQXzQ.js";import"./ChevronRight-DQs4tkMm.js";import"./ChevronUp-BJ7RKHi2.js";import"./Container-nZYBPJRv.js";import"./Globe01-Uo6KHfk2.js";import"./FilterLines-FHjfh1pF.js";import"./ZoomOut-NkImUVHk.js";import"./Star01-CeDy0qEH.js";import"./Palette-Toq4eQ-J.js";import"./HardDrive-CGMuM2Oy.js";import"./Stars02-ButLG8tI.js";import"./Key01-BIkGax_i.js";import"./sheet-y48NbizY.js";import"./X-FDfBE4i9.js";import"./LinkExternal01-DycVPnNy.js";import"./Monitor01-D1U6Pa3W.js";import"./Sun-DB_K22EW.js";import"./Play-CA-oDPY7.js";import"./Plus-DgS5eNSe.js";import"./SearchMd-WbJoDaWs.js";import"./Settings02-rrw51k4M.js";import"./Shield01-5itVZGiR.js";import"./Stars01-DYDsxZnS.js";import"./User01-C3qNbl-c.js";import"./Users01-C95xm0Ia.js";import"./XClose-BfJTW_HK.js";import"./Zap-DK6MOOIv.js";import"./dialog-C3j-c3SR.js";import"./dropdown-menu-DKiorR9d.js";import"./skeleton-BWDI6b5B.js";import"./tabs-Dj3HihPI.js";import"./use-file-configs-BXchIe2N.js";import"./constants-P1xnRFeX.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./useInfiniteQuery--C6hdwWo.js";import"./infiniteQueryObserver-hzkIseBw.js";import"./agent-capabilities-CpWXCeRz.js";import"./pair-B1HhmTC2.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./scroll-area-DCO9LjjC.js";import"./select-D3xFKLhW.js";import"./tooltip-BseNApEN.js";import"./use-copy-B4ijm3eQ.js";import"./file-type-icon-DWtzaQPp.js";import"./content-blocks-o63cs2vh.js";import"./types-CEUmohd_.js";import"./chat-context-T6Hxtz67.js";import"./tab-id-BfrA42Sy.js";import"./decopilot-sse-pool-CnTXTZP-.js";import"./create-sse-subscription-BS5983N4.js";import"./use-virtual-mcp-C09vm-BM.js";import"./use-collections-C-e494pb.js";import"./use-ai-providers-DSjz3Xn-.js";import"./use-organization-settings-D5g7NFw1.js";import"./shell-layout-CtsnLkL0.js";import"./avatar-GGBvmgaP.js";import"./required-auth-layout-D_pVrMnQ.js";import"./useRouterState-BjzQ0bsm.js";import"./use-org-sso-Bm8Zb6fp.js";import"./integration-icon-DYz5eywh.js";import"./use-navigate-to-agent-BLkLok3n.js";import"./use-connection-COB3wZyv.js";import"./use-mcp-prompts-CLrlZKHJ.js";import"./form-w7JkvptQ.js";import"./spinner-BLcfraim.js";import"./drawer-ySjhgvkO.js";import"./collection-search-loHJ7IYX.js";import"./toggle-group-CgAd7Mg_.js";import"./agent-icons-DAJPmC7Z.js";import"./checkbox-DotF6hoA.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-xKZ0B7RQ.js";import"./card-7rOCFixx.js";import"./connect-desktop-dialog-BjjpdcQ_.js";import"./popover-D7H0zNnu.js";import"./command-CYcMZe50.js";import"./index-CswQOvGx.js";import"./sortable.esm-D1-ateSo.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-C98P6TUE.js";import"./use-registry-connections-BfC5RU93.js";import"./extract-connection-data-DQPoIIzo.js";import"./generate-id-BsvOSxwt.js";import"./collections-BY2lU4NZ.js";import"./collection-tabs-IuChGrKO.js";import"./badge-BYAYJbYP.js";import"./connection-form-helpers-B_et0Rp5.js";import"./use-infinite-scroll-BTrNIqxO.js";import"./useSuspenseInfiniteQuery-BZeP3q20.js";import"./index-NioO90_M.js";import"./question-004-sINsf4GQ.js";import"./shell-route-loading-2R_HkOJm.js";import"./sidebar-BNHENVF_.js";import"./toolbar-D7UKSzZi.js";import"./use-create-virtual-mcp-DHggusOz.js";import"./github-repo-picker-B_v87FGw.js";import"./use-mcp-tools-BdUmFkbH.js";import"./alert-dialog-rlUwGNsJ.js";import"./index-vNb1uvqd.js";import"./use-org-auth-client-Bl3vPuak.js";import"./hover-card-B_RJCrCA.js";import"./task-status-gyYC-BVM.js";import"./use-status-sounds-9imVHc_4.js";import"./empty-state-D0UPz__M.js";import"./accordion-BrfX2IfA.js";import"./use-capability-BETReHdP.js";import"./monaco-editor-B2MBxzPo.js";import"./user-Coaz5g4K.js";import"./tools-list-X7Olg8ty.js";import"./switch-DFEmgVSQ.js";import"./use-debounced-autosave-7RLEJTRO.js";import"./index-mPypacb-.js";import"./search-input-BkjmAgNX.js";import"./use-secrets-BjVtsdxA.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-CoifNzqg.js";import"./select-model-DClZJUk2.js";import"./use-automations-DD-gzzG-.js";import"./automation-runs-B9Hv9eE-.js";import"./table-zHqbyGEy.js";import"./use-members-CaSqF02H.js";import"./automation-list-row-BYivUbaE.js";import"./file-preview-kcOvLrSx.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"}],categories:[{key:"name",label:"Name",widget:"text"},{key:"slug",label:"Slug",widget:"text",placeholder:"my-category"}]},q={authors:"Author",categories:"Category"};function Pr(P){const t=C.c(34),{orgSlug:v,virtualMcpId:j,branch:w,kind:p,blockKey:y,block:f}=P;let u;t[0]!==w||t[1]!==v||t[2]!==j?(u={orgSlug:v,virtualMcpId:j,branch:w},t[0]=w,t[1]=v,t[2]=j,t[3]=u):u=t[3];const m=R(u);let d;t[4]!==f||t[5]!==p?(d=D(f,p),t[4]=f,t[5]=p,t[6]=d):d=t[6];const B=d;let h;t[7]!==y||t[8]!==p||t[9]!==m?(h=e=>{m.mutate({blockKey:y,data:J(y,p,e)})},t[7]=y,t[8]=p,t[9]=m,t[10]=h):h=t[10];const[i,E]=K(B,h);let k;t[11]!==i||t[12]!==E?(k=(e,o)=>E({...i,[e]:o}),t[11]=i,t[12]=E,t[13]=k):k=t[13];const a=k,N=q[p];let s;t[14]!==N?(s=r.jsx("span",{className:"text-sm font-medium",children:N}),t[14]=N,t[15]=s):s=t[15];let l;t[16]!==m.isError||t[17]!==m.isPending?(l=r.jsx(M,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=l):l=t[18];let n;t[19]!==s||t[20]!==l?(n=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[s,l]}),t[19]=s,t[20]=l,t[21]=n):n=t[21];const I=$[p];let c;if(t[22]!==i||t[23]!==a||t[24]!==I){let e;t[26]!==i||t[27]!==a?(e=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(A,{schema:{type:"string",format:"image-uri",title:o.label},value:i[o.key],onChange:x=>a(o.key,x),path:o.key,label:o.label}):r.jsxs(r.Fragment,{children:[r.jsx(T,{htmlFor:o.key,children:o.label}),o.widget==="textarea"?r.jsx(L,{id:o.key,value:S(i[o.key]),onChange:x=>a(o.key,x.target.value),rows:3}):r.jsx(F,{id:o.key,value:S(i[o.key]),placeholder:o.placeholder,onChange:x=>a(o.key,x.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 g;t[29]!==c?(g=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]=g):g=t[30];let b;return t[31]!==g||t[32]!==n?(b=r.jsxs("div",{className:"flex h-full flex-col",children:[n,g]}),t[31]=g,t[32]=n,t[33]=b):b=t[33],b}export{Pr as RecordEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-DYhQxzqY.js","assets/index-CJoBkEf_.js","assets/index-LtT7znvk.css","assets/XCircle-8FTuCNvR.js","assets/CheckCircle-CEi1N2Mq.js","assets/Container-nZYBPJRv.js","assets/Settings02-rrw51k4M.js","assets/constants-P1xnRFeX.js","assets/useInfiniteQuery--C6hdwWo.js","assets/infiniteQueryObserver-hzkIseBw.js","assets/badge-BYAYJbYP.js","assets/input-BZDQfdYn.js","assets/dropdown-menu-DKiorR9d.js","assets/Check-8AgR6ZjG.js","assets/ChevronRight-DQs4tkMm.js","assets/DotsVertical-C00j11Qg.js","assets/table-zHqbyGEy.js","assets/toggle-group-CgAd7Mg_.js","assets/use-view-mode-CUhYlh8A.js","assets/tooltip-BseNApEN.js","assets/FilterLines-FHjfh1pF.js","assets/Globe01-Uo6KHfk2.js","assets/SearchMd-WbJoDaWs.js","assets/dialog-C3j-c3SR.js","assets/X-FDfBE4i9.js","assets/AlertCircle-C0w7vkhj.js","assets/Upload01-BXTkAAEz.js","assets/alert-dialog-rlUwGNsJ.js","assets/card-7rOCFixx.js","assets/Trash01-C9vkf5T6.js","assets/label-09bf4ZUr.js","assets/select-D3xFKLhW.js","assets/ChevronDown-DhOfQXzQ.js","assets/ChevronUp-BJ7RKHi2.js","assets/switch-DFEmgVSQ.js","assets/textarea-Kw6SbqZA.js","assets/RefreshCcw01-DVTjMN9w.js","assets/checkbox-DotF6hoA.js","assets/Eye-B7Xkt1CB.js","assets/LinkExternal01-DycVPnNy.js","assets/use-copy-B4ijm3eQ.js","assets/Key01-BIkGax_i.js","assets/Plus-DgS5eNSe.js","assets/Play-CA-oDPY7.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{e as i,j as e,r as s,l as a,_ as o}from"./index-CJoBkEf_.js";import{R as l}from"./require-capability-DJDpC59C.js";import"./use-capability-BETReHdP.js";import"./access-gate-DwKbtSzY.js";import"./capability-load-error-CUPCgjg9.js";const m=s.lazy(()=>o(()=>import("./registry-layout-DYhQxzqY.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43])));function f(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(l,{capability:"registry:manage",area:"the registry",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(m,{})})}),r[0]=t):t=r[0],t}export{f as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as R,j as r,r as K,B as ie,c as je,o as oe}from"./index-CJoBkEf_.js";import{aa as Pe,Z as De,s as Re,ar as pe,F as he}from"./agent-icon-ExlCX9f5.js";import{C as ze}from"./calendar-xjXZIDeb.js";import{I as ee}from"./input-BZDQfdYn.js";import{L as Z}from"./label-09bf4ZUr.js";import{a as Be,b as Ee,P as Ve}from"./popover-D7H0zNnu.js";import{T as Me}from"./textarea-Kw6SbqZA.js";import{S as Ue}from"./switch-DFEmgVSQ.js";import{c as ve,S as Ne,a as we,b as Te,d as Ce}from"./select-D3xFKLhW.js";import{s as Le}from"./Plus-DgS5eNSe.js";import{s as ke}from"./Trash01-C9vkf5T6.js";import{D as We,a as He,b as Ye,c as Ke}from"./dropdown-menu-DKiorR9d.js";import{e as Se,u as Ze,L as Qe,F as Xe,I as xe}from"./image-field-Cru0b2ZK.js";import{U as ae,V as Ge,W as qe}from"./index-pO-YX1wf.js";import{t as Ae}from"./ChevronDown-DhOfQXzQ.js";import{i as $e}from"./ChevronRight-DQs4tkMm.js";import{i as Je}from"./Upload01-BXTkAAEz.js";import{c as et}from"./use-file-configs-BXchIe2N.js";function tt(t){if(t?.trim())try{const e=new URL(t);return e.protocol!=="https:"?void 0:e.href}catch{return}}function rt(t){if(Array.isArray(t.variants)){const e=t.variants,n=e.find(l=>l.rule?.__resolveType?.includes("always"));if(typeof n?.value=="string")return n.value;const s=e.find(l=>typeof l.value=="string");if(s)return s.value}if(typeof t.src=="string")return t.src;if(typeof t.url=="string")return t.url;if(typeof t.value=="string")return t.value}function Ie(t){if(typeof t=="string"||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(Ie);const e=t;return e.__resolveType?rt(e)??t:_e(e)}function _e(t){const e={};for(const[n,s]of Object.entries(t))e[n]=Ie(s);return e}function nt(t,e){return e.split(".").reduce((n,s)=>{if(!(n==null||typeof n!="object"))return n[s]},t)}function Oe(t){return t==null?"":Array.isArray(t)?t.map(Oe).filter(Boolean).join(","):typeof t=="object"?"":String(t)}function ce(t,e){if(!t.includes("{"))return;const n=_e(e);return t.replace(/\{\{\{([^}]+)\}\}\}|\{\{([^}]+)\}\}/g,(l,i,o)=>{const d=(i??o??"").trim();return Oe(nt(n,d))}).trim()||void 0}function st(t,e){if(e.includes("{"))return ce(e,t);const n=t[e];if(typeof n=="string"&&n)return n;if(Array.isArray(n)){const s=n.map(l=>l==null?"":String(l)).filter(Boolean).join(",");if(s)return s}}function it(t,e,n){if(typeof t=="string")return t||`Item ${e+1}`;if(typeof t=="number"||typeof t=="boolean")return String(t);if(t&&typeof t=="object"&&!Array.isArray(t)){const s=t;if(n?.titleBy){const i=st(s,n.titleBy);if(i)return i}if(n?.title){const i=ce(n.title,s);if(i)return i;if(!n.title.includes("{"))return n.title}for(const i of["name","label","title","alt","text","href","id"]){const o=s[i];if(typeof o=="string"&&o)return o;if(Array.isArray(o)){const d=o.map(a=>a==null?"":String(a)).filter(Boolean).join(",");if(d)return d}}const l=s.__resolveType;if(typeof l=="string"&&l){const i=l.split("/").at(-1);if(i)return i.replace(/\.tsx?$/,"")}}return`Item ${e+1}`}function lt(t){if(!t)return;if(typeof t.image=="string"&&t.image.includes("{"))return t.image;const e=t.properties?.image;if(!e)return;if(e.format==="image-uri")return"{{{image}}}";const n=e.properties;return n?.mobile?"{{{image.mobile}}}":n?.desktop?"{{{image.desktop}}}":"{{{image}}}"}function ot(t,e){if(!t||typeof t!="object"||Array.isArray(t))return;const n=lt(e);if(!n)return;const s=ce(n,t);if(!s)return;const l=Se(s)||s;return tt(l)}const q=t=>String(t).padStart(2,"0"),at="1900-01-01",ct="2099-12-31",dt="1900-01-01T00:00",ut="2099-12-31T23:59";function ft(t){if(!t)return"";const e=t.slice(0,10);if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e;const n=new Date(t);return Number.isNaN(n.getTime())?"":`${n.getUTCFullYear()}-${q(n.getUTCMonth()+1)}-${q(n.getUTCDate())}`}function mt(t){return!t||!/^\d{4}-\d{2}-\d{2}$/.test(t)?"":`${t}T00:00:00.000Z`}function pt(t){if(!t)return"";const e=new Date(t);return Number.isNaN(e.getTime())?"":`${e.getFullYear()}-${q(e.getMonth()+1)}-${q(e.getDate())}T${q(e.getHours())}:${q(e.getMinutes())}`}function ht(t){if(!t)return"";const e=new Date(t);return Number.isNaN(e.getTime())?"":e.toISOString()}function xt(t){const e=R.c(29),{id:n,withTime:s,value:l,onChange:i}=t,[o,d]=K.useState(!1);let a;e[0]!==l||e[1]!==s?(a=s?pt(l):ft(l),e[0]=l,e[1]=s,e[2]=a):a=e[2];const c=a;let f;e[3]!==i||e[4]!==s?(f=k=>{i(s?ht(k.target.value):mt(k.target.value))},e[3]=i,e[4]=s,e[5]=f):f=e[5];const u=f;let m;if(e[6]!==l){const k=l?new Date(l):null;m=k&&!Number.isNaN(k.getTime())?k:null,e[6]=l,e[7]=m}else m=e[7];const h=m;let y;e[8]!==i||e[9]!==h||e[10]!==s?(y=k=>{k&&(s&&h?k.setHours(h.getHours(),h.getMinutes(),0,0):k.setHours(0,0,0,0),i(k.toISOString()),d(!1))},e[8]=i,e[9]=h,e[10]=s,e[11]=y):y=e[11];const p=y,g=s?"datetime-local":"date",x=s?dt:at,b=s?ut:ct;let j;e[12]!==u||e[13]!==n||e[14]!==c||e[15]!==g||e[16]!==x||e[17]!==b?(j=r.jsx(ee,{id:n,type:g,min:x,max:b,value:c,onChange:u,className:"h-10 flex-1 [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:opacity-0"}),e[12]=u,e[13]=n,e[14]=c,e[15]=g,e[16]=x,e[17]=b,e[18]=j):j=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx(Be,{asChild:!0,children:r.jsx(ie,{type:"button",variant:"outline",size:"icon",className:"h-10 w-10 shrink-0","aria-label":"Open calendar",children:r.jsx(Pe,{className:"h-4 w-4"})})}),e[19]=v):v=e[19];const w=h??void 0;let N;e[20]!==p||e[21]!==w?(N=r.jsx(Ee,{className:"w-auto p-0",align:"end",children:r.jsx(ze,{mode:"single",selected:w,onSelect:p,initialFocus:!0})}),e[20]=p,e[21]=w,e[22]=N):N=e[22];let C;e[23]!==o||e[24]!==N?(C=r.jsxs(Ve,{open:o,onOpenChange:d,children:[v,N]}),e[23]=o,e[24]=N,e[25]=C):C=e[25];let $;return e[26]!==C||e[27]!==j?($=r.jsxs("div",{className:"flex gap-1",children:[j,C]}),e[26]=C,e[27]=j,e[28]=$):$=e[28],$}function ne(t){const e=R.c(8),{htmlFor:n,label:s,description:l}=t;let i;e[0]!==n||e[1]!==s?(i=r.jsx(Z,{htmlFor:n,children:s}),e[0]=n,e[1]=s,e[2]=i):i=e[2];let o;e[3]!==l?(o=l&&r.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:l}),e[3]=l,e[4]=o):o=e[4];let d;return e[5]!==i||e[6]!==o?(d=r.jsxs("div",{className:"space-y-0.5",children:[i,o]}),e[5]=i,e[6]=o,e[7]=d):d=e[7],d}function se(t){const e=R.c(61),{schema:n,value:s,onChange:l,path:i,label:o}=t,d=typeof s=="string"?s:"",a=n.format;if(a==="textarea"||a==="rich-text"||a==="rich-text-inline"||a==="markdown"){let p;e[0]!==o||e[1]!==i||e[2]!==n.description?(p=r.jsx(ne,{htmlFor:i,label:o,description:n.description}),e[0]=o,e[1]=i,e[2]=n.description,e[3]=p):p=e[3];let g;e[4]!==l?(g=j=>l(j.target.value),e[4]=l,e[5]=g):g=e[5];let x;e[6]!==i||e[7]!==d||e[8]!==g?(x=r.jsx(Me,{id:i,value:d,onChange:g,rows:4}),e[6]=i,e[7]=d,e[8]=g,e[9]=x):x=e[9];let b;return e[10]!==p||e[11]!==x?(b=r.jsxs("div",{className:"space-y-2",children:[p,x]}),e[10]=p,e[11]=x,e[12]=b):b=e[12],b}if(a==="date"||a==="date-time"){let p;e[13]!==o||e[14]!==i||e[15]!==n.description?(p=r.jsx(ne,{htmlFor:i,label:o,description:n.description}),e[13]=o,e[14]=i,e[15]=n.description,e[16]=p):p=e[16];const g=a==="date-time";let x;e[17]!==l||e[18]!==i||e[19]!==d||e[20]!==g?(x=r.jsx(xt,{id:i,withTime:g,value:d,onChange:l}),e[17]=l,e[18]=i,e[19]=d,e[20]=g,e[21]=x):x=e[21];let b;return e[22]!==p||e[23]!==x?(b=r.jsxs("div",{className:"space-y-2",children:[p,x]}),e[22]=p,e[23]=x,e[24]=b):b=e[24],b}if(a==="color-input"){let p;e[25]!==o||e[26]!==i||e[27]!==n.description?(p=r.jsx(ne,{htmlFor:i,label:o,description:n.description}),e[25]=o,e[26]=i,e[27]=n.description,e[28]=p):p=e[28];const g=d||"#000000";let x;e[29]!==l?(x=C=>l(C.target.value),e[29]=l,e[30]=x):x=e[30];let b;e[31]!==g||e[32]!==x?(b=r.jsx("input",{type:"color",value:g,onChange:x,className:"h-10 w-10 cursor-pointer rounded-lg border border-border bg-background p-1"}),e[31]=g,e[32]=x,e[33]=b):b=e[33];let j;e[34]!==l?(j=C=>l(C.target.value),e[34]=l,e[35]=j):j=e[35];let v;e[36]!==i||e[37]!==d||e[38]!==j?(v=r.jsx(ee,{id:i,value:d,onChange:j,placeholder:"#000000",className:"h-10 flex-1"}),e[36]=i,e[37]=d,e[38]=j,e[39]=v):v=e[39];let w;e[40]!==b||e[41]!==v?(w=r.jsxs("div",{className:"flex items-center gap-2",children:[b,v]}),e[40]=b,e[41]=v,e[42]=w):w=e[42];let N;return e[43]!==p||e[44]!==w?(N=r.jsxs("div",{className:"space-y-2",children:[p,w]}),e[43]=p,e[44]=w,e[45]=N):N=e[45],N}let c;e[46]!==o||e[47]!==i||e[48]!==n.description?(c=r.jsx(ne,{htmlFor:i,label:o,description:n.description}),e[46]=o,e[47]=i,e[48]=n.description,e[49]=c):c=e[49];const f=a==="url"?"url":"text";let u;e[50]!==l?(u=p=>l(p.target.value),e[50]=l,e[51]=u):u=e[51];const m=n.default!=null?String(n.default):void 0;let h;e[52]!==i||e[53]!==d||e[54]!==f||e[55]!==u||e[56]!==m?(h=r.jsx(ee,{id:i,type:f,value:d,onChange:u,placeholder:m,className:"h-10"}),e[52]=i,e[53]=d,e[54]=f,e[55]=u,e[56]=m,e[57]=h):h=e[57];let y;return e[58]!==c||e[59]!==h?(y=r.jsxs("div",{className:"space-y-2",children:[c,h]}),e[58]=c,e[59]=h,e[60]=y):y=e[60],y}function gt(t){const e=R.c(17),{schema:n,value:s,onChange:l,path:i,label:o}=t,d=typeof s=="number"?s:"";let a;e[0]!==o||e[1]!==i?(a=r.jsx(Z,{htmlFor:i,children:o}),e[0]=o,e[1]=i,e[2]=a):a=e[2];let c;e[3]!==n.description?(c=n.description&&r.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:n.description}),e[3]=n.description,e[4]=c):c=e[4];let f;e[5]!==a||e[6]!==c?(f=r.jsxs("div",{className:"space-y-0.5",children:[a,c]}),e[5]=a,e[6]=c,e[7]=f):f=e[7];let u;e[8]!==l?(u=y=>{const p=y.target.value;l(p===""?void 0:Number(p))},e[8]=l,e[9]=u):u=e[9];let m;e[10]!==d||e[11]!==i||e[12]!==u?(m=r.jsx(ee,{id:i,type:"number",value:d,onChange:u,className:"h-10"}),e[10]=d,e[11]=i,e[12]=u,e[13]=m):m=e[13];let h;return e[14]!==f||e[15]!==m?(h=r.jsxs("div",{className:"space-y-2",children:[f,m]}),e[14]=f,e[15]=m,e[16]=h):h=e[16],h}function yt(t){const e=R.c(17),{value:n,onChange:s,path:l,label:i,schema:o}=t,d=typeof n=="boolean"?n:!1;let a;e[0]!==i||e[1]!==l?(a=r.jsx(Z,{htmlFor:l,children:i}),e[0]=i,e[1]=l,e[2]=a):a=e[2];let c;e[3]!==o.description?(c=o.description&&r.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:o.description}),e[3]=o.description,e[4]=c):c=e[4];let f;e[5]!==a||e[6]!==c?(f=r.jsxs("div",{className:"space-y-0.5",children:[a,c]}),e[5]=a,e[6]=c,e[7]=f):f=e[7];let u;e[8]!==s?(u=y=>s(y),e[8]=s,e[9]=u):u=e[9];let m;e[10]!==d||e[11]!==l||e[12]!==u?(m=r.jsx(Ue,{id:l,checked:d,onCheckedChange:u}),e[10]=d,e[11]=l,e[12]=u,e[13]=m):m=e[13];let h;return e[14]!==f||e[15]!==m?(h=r.jsxs("div",{className:"flex items-center justify-between gap-3",children:[f,m]}),e[14]=f,e[15]=m,e[16]=h):h=e[16],h}const de="__enum_empty__";function ue(t){return t===""?de:String(t)}function bt(t,e){if(t===de)return"";const n=e.find(s=>ue(s)===t);return n!==void 0?n:t}function jt(t,e){return t==null?e.some(n=>n==="")?de:void 0:ue(t)}function vt(t){return t===""?"":String(t)}function Nt(t){const e=R.c(28),{schema:n,value:s,onChange:l,path:i,label:o}=t;let d;e[0]!==n.enum?(d=n.enum??[],e[0]=n.enum,e[1]=d):d=e[1];const a=d;let c;e[2]!==a||e[3]!==s?(c=jt(s,a),e[2]=a,e[3]=s,e[4]=c):c=e[4];const f=c;let u;e[5]!==o||e[6]!==i?(u=r.jsx(Z,{htmlFor:i,children:o}),e[5]=o,e[6]=i,e[7]=u):u=e[7];let m;e[8]!==n.description?(m=n.description&&r.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:n.description}),e[8]=n.description,e[9]=m):m=e[9];let h;e[10]!==u||e[11]!==m?(h=r.jsxs("div",{className:"space-y-0.5",children:[u,m]}),e[10]=u,e[11]=m,e[12]=h):h=e[12];let y;e[13]!==l||e[14]!==a?(y=v=>l(bt(v,a)),e[13]=l,e[14]=a,e[15]=y):y=e[15];let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=r.jsx(Ne,{className:"h-10",children:r.jsx(we,{placeholder:"Select..."})}),e[16]=p):p=e[16];let g;e[17]!==a?(g=a.map(wt),e[17]=a,e[18]=g):g=e[18];let x;e[19]!==g?(x=r.jsx(Te,{children:g}),e[19]=g,e[20]=x):x=e[20];let b;e[21]!==f||e[22]!==y||e[23]!==x?(b=r.jsxs(Ce,{value:f,onValueChange:y,children:[p,x]}),e[21]=f,e[22]=y,e[23]=x,e[24]=b):b=e[24];let j;return e[25]!==b||e[26]!==h?(j=r.jsxs("div",{className:"space-y-2",children:[h,b]}),e[25]=b,e[26]=h,e[27]=j):j=e[27],j}function wt(t){const e=ue(t);return r.jsx(ve,{value:e,children:vt(t)},e)}function Tt(t){const e=R.c(32),{schema:n,value:s,onChange:l,path:i,label:o,breadcrumbPath:d,onBreadcrumbChange:a}=t,c=d===void 0?[]:d,f=Array.isArray(s)?s:[],u=n.items,[m,h]=K.useState(null);let y;e[0]!==u?(y=(T,S)=>it(T,S,u),e[0]=u,e[1]=y):y=e[1];const p=y,g=()=>{const T=u?.type,S=u?.default!==void 0?u.default:T==="object"?{}:T==="block-ref"?(()=>{const _=u?.anyOfRefs?.[0]?.resolveType;return typeof _!="string"||ae(_)?{}:{__resolveType:_}})():T==="number"||T==="integer"?0:T==="boolean"?!1:T==="array"?[]:"",A=[...f,S];l(A);const I=A.length-1;h(I),a?.([...c,p(S,I)])},x=T=>{l(f.filter((S,A)=>A!==T)),m===T&&(h(null),a?.(c))},b=(T,S)=>{const A=[...f];A[T]=S,l(A),m===T&&a?.([...c,p(S,T)])};if(m!==null&&m<f.length){const T=f[m],S=[...c,p(T,m)],A=u?.type==="object"&&u.properties?r.jsx(fe,{schema:u,value:T,onChange:_=>b(m,_),basePath:`${i}.${m}`,breadcrumbPath:S,onBreadcrumbChange:a}):u?Fe({schema:u,value:T,onChange:_=>b(m,_),path:`${i}.${m}`,label:u.title??`Item ${m+1}`,breadcrumbPath:S,onBreadcrumbChange:a}):null;let I;return e[2]!==A?(I=r.jsx("div",{className:"min-w-0 space-y-4",children:A}),e[2]=A,e[3]=I):I=e[3],I}let j;e[4]!==o?(j=r.jsx("span",{className:"min-w-0 truncate text-sm font-medium",children:o}),e[4]=o,e[5]=j):j=e[5];let v;e[6]!==f.length?(v=f.length>0&&r.jsx("span",{className:"rounded-md bg-muted px-1.5 py-0.5 text-xs font-medium text-muted-foreground",children:f.length}),e[6]=f.length,e[7]=v):v=e[7];let w;e[8]!==j||e[9]!==v?(w=r.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[j,v]}),e[8]=j,e[9]=v,e[10]=w):w=e[10];let N;e[11]!==n.description?(N=n.description&&r.jsx("p",{className:"break-words text-xs leading-normal text-muted-foreground",children:n.description}),e[11]=n.description,e[12]=N):N=e[12];let C;e[13]!==w||e[14]!==N?(C=r.jsxs("div",{className:"min-w-0 space-y-0.5",children:[w,N]}),e[13]=w,e[14]=N,e[15]=C):C=e[15];let $;e[16]!==c||e[17]!==p||e[18]!==u||e[19]!==f||e[20]!==a||e[21]!==i||e[22]!==x||e[23]!==h?($=f.length>0&&r.jsx("div",{className:"min-w-0 overflow-hidden rounded-xl border border-border/50 p-1.5",children:f.map((T,S)=>{const A=p(T,S),I=ot(T,u);return r.jsxs("div",{className:"group flex min-w-0 items-center gap-2.5 rounded-lg px-2 py-2.5 hover:bg-accent hover:text-accent-foreground",children:[r.jsx(De,{className:"size-3.5 shrink-0 cursor-grab text-muted-foreground/40"}),r.jsxs("button",{type:"button",onClick:()=>{h(S),a?.([...c,A])},className:"flex min-w-0 flex-1 items-center gap-2.5 text-left text-sm",title:A,children:[I&&r.jsx("img",{src:I,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),r.jsx("span",{className:"min-w-0 truncate",children:A})]}),r.jsxs(We,{children:[r.jsx(He,{asChild:!0,children:r.jsx(ie,{type:"button",variant:"ghost",size:"icon","aria-label":`Open actions for ${A}`,className:"size-6 opacity-0 transition-opacity group-hover:opacity-100",onClick:Ct,children:r.jsx(Re,{size:14})})}),r.jsx(Ye,{align:"end",children:r.jsxs(Ke,{className:"text-destructive focus:text-destructive",onClick:()=>x(S),children:[r.jsx(ke,{size:14}),"Delete"]})})]})]},`${i}.${S}`)})}),e[16]=c,e[17]=p,e[18]=u,e[19]=f,e[20]=a,e[21]=i,e[22]=x,e[23]=h,e[24]=$):$=e[24];let k;e[25]===Symbol.for("react.memo_cache_sentinel")?(k=r.jsx(Le,{size:14}),e[25]=k):k=e[25];let P;e[26]!==g?(P=r.jsxs("button",{type:"button",onClick:g,className:"flex w-full items-center justify-center gap-1.5 rounded-xl border border-dashed border-border/60 py-2.5 text-sm text-muted-foreground transition-colors hover:border-border hover:bg-muted/30",children:[k,"Add item"]}),e[26]=g,e[27]=P):P=e[27];let D;return e[28]!==P||e[29]!==C||e[30]!==$?(D=r.jsxs("div",{className:"space-y-2",children:[C,$,P]}),e[28]=P,e[29]=C,e[30]=$,e[31]=D):D=e[31],D}function Ct(t){return t.stopPropagation()}function kt(t){const e=R.c(37),{schema:n,value:s,onChange:l,path:i,label:o,breadcrumbPath:d,onBreadcrumbChange:a}=t,[c,f]=K.useState(!1);let u;e[0]!==s?(u=s!=null&&typeof s=="object"&&!Array.isArray(s)?s:{},e[0]=s,e[1]=u):u=e[1];const m=u;if(!n.properties)return null;const h=`${i}-fields`;let y;e[2]!==d?(y=d??[],e[2]=d,e[3]=y):y=e[3];let p;e[4]!==o||e[5]!==y?(p=[...y,o],e[4]=o,e[5]=y,e[6]=p):p=e[6];const g=p;let x;e[7]!==d||e[8]!==g||e[9]!==a||e[10]!==c?(x=()=>{const k=!c;f(k),a?.(k?g:d??[])},e[7]=d,e[8]=g,e[9]=a,e[10]=c,e[11]=x):x=e[11];const b=x;let j;e[12]!==c?(j=r.jsx("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors group-hover:text-accent-foreground",children:c?r.jsx(Ae,{size:16}):r.jsx($e,{size:16})}),e[12]=c,e[13]=j):j=e[13];let v;e[14]!==o?(v=r.jsx("span",{className:"min-w-0 truncate text-sm font-medium",children:o}),e[14]=o,e[15]=v):v=e[15];let w;e[16]!==h||e[17]!==b||e[18]!==c||e[19]!==j||e[20]!==v?(w=r.jsxs("button",{type:"button","aria-expanded":c,"aria-controls":h,onClick:b,className:"group flex w-full min-w-0 items-center gap-2 rounded-md py-1.5 pr-2 text-left transition-colors hover:bg-accent hover:text-accent-foreground",children:[j,v]}),e[16]=h,e[17]=b,e[18]=c,e[19]=j,e[20]=v,e[21]=w):w=e[21];let N;e[22]!==n.description?(N=n.description&&r.jsx("p",{className:"break-words pl-9 text-xs leading-normal text-muted-foreground",children:n.description}),e[22]=n.description,e[23]=N):N=e[23];let C;e[24]!==h||e[25]!==g||e[26]!==m||e[27]!==a||e[28]!==l||e[29]!==c||e[30]!==i||e[31]!==n?(C=c&&r.jsx("div",{id:h,className:"ml-3 min-w-0 max-w-full overflow-hidden border-l border-border/80 pl-5",children:r.jsx(fe,{schema:n,value:m,onChange:l,basePath:i,breadcrumbPath:g,onBreadcrumbChange:a})}),e[24]=h,e[25]=g,e[26]=m,e[27]=a,e[28]=l,e[29]=c,e[30]=i,e[31]=n,e[32]=C):C=e[32];let $;return e[33]!==w||e[34]!==N||e[35]!==C?($=r.jsxs("div",{className:"min-w-0 space-y-2",children:[w,N,C]}),e[33]=w,e[34]=N,e[35]=C,e[36]=$):$=e[36],$}function St(t){if(!t?.properties)return{};const e={};for(const[n,s]of Object.entries(t.properties))n.startsWith("__")||n==="@type"||(s.default!==void 0?e[n]=s.default:s.type==="boolean"?e[n]=!1:s.type==="string"?e[n]="":s.type==="number"||s.type==="integer"?e[n]=0:s.type==="object"&&(e[n]={}));return e}function At(t,e){const n=e[0]?.resolveType??"";if(!t||typeof t!="object"||Array.isArray(t))return n;const s=t;if(typeof s.__resolveType=="string"){const o=e.find(d=>Ge(d.resolveType,s.__resolveType));if(o)return o.resolveType}let l=n,i=-1;for(const o of e){if(!o.schema?.properties)continue;const a=Object.keys(o.schema.properties).filter(c=>!c.startsWith("__")&&c!=="@type"&&c!=="action"&&c!=="alt").filter(c=>s[c]!==void 0).length;a>0&&a>i&&(i=a,l=o.resolveType)}if(i>0)return l;for(const o of e){if(!o.schema?.properties)continue;const d=Object.keys(o.schema.properties).filter(a=>s[a]!==void 0).length;d>0&&d>i&&(i=d,l=o.resolveType)}return l}function $t(t){const e=R.c(23),{path:n,open:s,onOpenChange:l,title:i,nested:o,nestedBlockRef:d}=t,a=`${n}-loader-config`,c=d&&"ml-1";let f;e[0]!==c?(f=je("rounded-lg border border-border/80 bg-muted/30",c),e[0]=c,e[1]=f):f=e[1];let u;e[2]!==l||e[3]!==s?(u=()=>l(!s),e[2]=l,e[3]=s,e[4]=u):u=e[4];let m;e[5]!==s?(m=r.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center text-muted-foreground transition-colors group-hover:text-foreground",children:s?r.jsx(Ae,{size:16}):r.jsx($e,{size:16})}),e[5]=s,e[6]=m):m=e[6];let h;e[7]!==i?(h=r.jsx("span",{className:"min-w-0 truncate text-xs font-medium tracking-wide text-muted-foreground uppercase",children:i}),e[7]=i,e[8]=h):h=e[8];let y;e[9]!==a||e[10]!==s||e[11]!==u||e[12]!==m||e[13]!==h?(y=r.jsxs("button",{type:"button","aria-expanded":s,"aria-controls":a,onClick:u,className:"group flex w-full min-w-0 items-center gap-2 rounded-lg px-3 py-2.5 text-left transition-colors hover:bg-accent/50",children:[m,h]}),e[9]=a,e[10]=s,e[11]=u,e[12]=m,e[13]=h,e[14]=y):y=e[14];let p;e[15]!==a||e[16]!==o||e[17]!==s?(p=s&&r.jsx("div",{id:a,className:"border-t border-border/60 px-4 pb-4 pt-3",children:r.jsx("div",{className:"border-l border-border/80 pl-4",children:o})}),e[15]=a,e[16]=o,e[17]=s,e[18]=p):p=e[18];let g;return e[19]!==f||e[20]!==y||e[21]!==p?(g=r.jsxs("div",{className:f,children:[y,p]}),e[19]=f,e[20]=y,e[21]=p,e[22]=g):g=e[22],g}function ge(t){const e=R.c(35),{schema:n,value:s,onChange:l,path:i,label:o,breadcrumbPath:d,onBreadcrumbChange:a}=t,c=(n.anyOfRefs??[]).filter(_t),f=c.length>0?At(s,c):c[0]?.resolveType??"",[u,m]=K.useState(f),[h,y]=K.useState(!1);if(c.length>0){const N=u||f;let C;e[0]!==N?(C=O=>O.resolveType===N,e[0]=N,e[1]=C):C=e[1];const $=c.find(C),k=O=>{m(O);const V=c.find(U=>U.resolveType===O),M=new Set(Object.keys(V?.schema?.properties??{})),Q=s!==null&&typeof s=="object"&&!Array.isArray(s)?s:{},J=Object.fromEntries(Object.entries(Q).filter(U=>{const[H]=U;return M.has(H)})),W={...St(V?.schema),...J};if(ae(O)){l(W);return}l({...W,__resolveType:O})};let P;e[2]!==N||e[3]!==l?(P=O=>{if(!ae(N)||O===null||typeof O!="object"||Array.isArray(O)){l(O);return}const{__resolveType:V,...M}=O;l(M)},e[2]=N,e[3]=l,e[4]=P):P=e[4];const D=P,T=$?.schema?.properties?r.jsx(fe,{schema:$.schema,value:s,onChange:D,basePath:i,breadcrumbPath:d,onBreadcrumbChange:a}):null,S=n.type==="block-ref";let A;e[5]!==i?(A=i.includes("."),e[5]=i,e[6]=A):A=e[6];const I=A;let _;e[7]!==o||e[8]!==i?(_=r.jsx(Z,{htmlFor:i,children:o}),e[7]=o,e[8]=i,e[9]=_):_=e[9];let z;e[10]===Symbol.for("react.memo_cache_sentinel")?(z=r.jsx(Ne,{children:r.jsx(we,{placeholder:"Select..."})}),e[10]=z):z=e[10];let B;e[11]!==n.description?(B=n.description&&r.jsx("p",{className:"text-xs text-muted-foreground",children:n.description}),e[11]=n.description,e[12]=B):B=e[12];let E;return e[13]!==S||e[14]!==I||e[15]!==h||e[16]!==T||e[17]!==i?(E=T&&(S?r.jsx($t,{path:i,open:h,onOpenChange:y,title:I?"Configuration":"Loader configuration",nested:T,nestedBlockRef:I}):T),e[13]=S,e[14]=I,e[15]=h,e[16]=T,e[17]=i,e[18]=E):E=e[18],r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{className:"space-y-1.5",children:[_,r.jsxs(Ce,{value:N,onValueChange:k,children:[z,r.jsx(Te,{children:c.map(It)})]}),B]}),E]})}if(n.anyOfRefs&&n.anyOfRefs.length>0)return null;let p;e[19]!==o||e[20]!==i?(p=r.jsx(Z,{htmlFor:i,children:o}),e[19]=o,e[20]=i,e[21]=p):p=e[21];const g=s!=null?String(s):"";let x;e[22]!==l?(x=N=>l(N.target.value),e[22]=l,e[23]=x):x=e[23];const b=n.description??"";let j;e[24]!==i||e[25]!==g||e[26]!==x||e[27]!==b?(j=r.jsx("input",{id:i,type:"text",value:g,onChange:x,className:"w-full rounded-md border bg-background px-3 py-1.5 text-sm",placeholder:b}),e[24]=i,e[25]=g,e[26]=x,e[27]=b,e[28]=j):j=e[28];let v;e[29]!==n.description?(v=n.description&&r.jsx("p",{className:"text-xs text-muted-foreground",children:n.description}),e[29]=n.description,e[30]=v):v=e[30];let w;return e[31]!==p||e[32]!==j||e[33]!==v?(w=r.jsxs("div",{className:"space-y-1.5",children:[p,j,v]}),e[31]=p,e[32]=j,e[33]=v,e[34]=w):w=e[34],w}function It(t){return r.jsx(ve,{value:t.resolveType,children:t.title??qe(t.resolveType)??t.resolveType},t.resolveType)}function _t(t){return t.resolveType!==""}function ye(t){const e=R.c(2),{ext:n}=t;if(!n)return null;let s;return e[0]!==n?(s=r.jsx("span",{className:"shrink-0 rounded bg-muted px-1.5 py-0.5 text-[10px] font-medium uppercase text-muted-foreground",children:n}),e[0]=n,e[1]=s):s=e[1],s}function Ot(t){try{const e=new URL(t).pathname;return decodeURIComponent(e.split("/").pop()??t)}catch{return t.split("/").pop()??t}}function Ft(t){const e=t.lastIndexOf(".");return e<0||e===t.length-1?"":t.slice(e+1).toLowerCase()}function be(t){const e=R.c(72),{schema:n,value:s,onChange:l,path:i,label:o}=t,d=n.format==="video-uri",a=Se(s),[c,f]=K.useState(!1),[u,m]=K.useState(!1),h=a?Ot(a):"",y=h?Ft(h):"",p=et(),g=Ze();let x;e[0]!==p.data?.configs?(x=function(){const F=p.data?.configs??[];if(F.length===1)return F[0].id;if(F.length===0)return null;const L=typeof window<"u"?window.localStorage.getItem(Qe):null;return F.some(re=>re.id===L)?L:null},e[0]=p.data?.configs,e[1]=x):x=e[1];const b=x;let j;e[2]!==d||e[3]!==l||e[4]!==b||e[5]!==f||e[6]!==g?(j=async function(F){if(!F)return;let L=Array.from(F);if(L.length===0)return;if(d&&(L=L.filter(Pt),L.length===0)){oe.error("Please drop a video file (mp4, webm, …).");return}const re=b();if(!re){f(!0);return}try{const le=await g.mutateAsync({configId:re,file:L[0]});l(le.publicUrl),L.length>1&&oe.info(`Uploaded ${L[0].name}; extra files were ignored (single-select field).`)}catch(le){const me=le;oe.error(me instanceof Error?me.message:"Upload failed")}},e[2]=d,e[3]=l,e[4]=b,e[5]=f,e[6]=g,e[7]=j):j=e[7];const v=j;let w;e[8]!==m?(w=function(F){F.preventDefault(),F.dataTransfer.types.includes("Files")&&m(!0)},e[8]=m,e[9]=w):w=e[9];const N=w;let C;e[10]!==m?(C=function(F){F.currentTarget===F.target&&m(!1)},e[10]=m,e[11]=C):C=e[11];const $=C;let k;e[12]!==v||e[13]!==m?(k=function(F){F.preventDefault(),m(!1),v(F.dataTransfer.files)},e[12]=v,e[13]=m,e[14]=k):k=e[14];const P=k;let D;e[15]!==o||e[16]!==i?(D=r.jsx(Z,{htmlFor:i,className:"text-muted-foreground",children:o}),e[15]=o,e[16]=i,e[17]=D):D=e[17];let T;e[18]!==n.description?(T=n.description&&r.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:n.description}),e[18]=n.description,e[19]=T):T=e[19];let S;e[20]!==D||e[21]!==T?(S=r.jsxs("div",{className:"min-w-0 space-y-0.5",children:[D,T]}),e[20]=D,e[21]=T,e[22]=S):S=e[22];const A=u&&"border-primary ring-2 ring-primary/30",I=g.isPending&&"pointer-events-none opacity-60";let _;e[23]!==I||e[24]!==A?(_=je("group relative w-full overflow-hidden rounded-xl border border-border/60 bg-muted/30 transition",A,I),e[23]=I,e[24]=A,e[25]=_):_=e[25];let z;e[26]!==y||e[27]!==h||e[28]!==d||e[29]!==f||e[30]!==a||e[31]!==g.isPending?(z=a?d?r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"relative h-40 w-full overflow-hidden bg-black",children:r.jsx("video",{src:a,preload:"metadata",className:"h-full w-full object-contain"},a)}),r.jsxs("div",{className:"flex items-center gap-2 border-t border-border/60 bg-background/50 px-3 py-2",children:[r.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground"}),r.jsx("p",{className:"min-w-0 flex-1 truncate text-xs text-muted-foreground",children:h}),r.jsx(ye,{ext:y})]})]}):r.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5",children:[r.jsx("div",{className:"flex size-10 shrink-0 items-center justify-center rounded-md bg-background",children:r.jsx(he,{size:18,className:"text-muted-foreground"})}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsx("p",{className:"truncate text-sm font-medium",children:h}),r.jsx("p",{className:"truncate text-xs text-muted-foreground",children:a})]}),r.jsx(ye,{ext:y})]}):r.jsxs("button",{type:"button",onClick:()=>f(!0),className:"flex w-full flex-col items-center justify-center gap-2 py-8 text-sm text-muted-foreground hover:bg-muted/60 hover:text-foreground",children:[d?r.jsx(pe,{size:20}):r.jsx(he,{size:20}),r.jsx("span",{className:"text-sm font-medium",children:g.isPending?"Uploading…":d?"Drop a video here or click to browse":"Drop a file or click to browse"}),r.jsx("span",{className:"text-xs text-muted-foreground",children:"Up to 100 MB"})]}),e[26]=y,e[27]=h,e[28]=d,e[29]=f,e[30]=a,e[31]=g.isPending,e[32]=z):z=e[32];let B;e[33]!==u?(B=u&&r.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-primary/10 backdrop-blur-[1px]",children:r.jsx("span",{className:"rounded-md bg-background px-3 py-1.5 text-xs font-medium shadow",children:"Drop to upload"})}),e[33]=u,e[34]=B):B=e[34];let E;e[35]!==$||e[36]!==N||e[37]!==P||e[38]!==_||e[39]!==z||e[40]!==B?(E=r.jsxs("div",{onDragOver:N,onDragLeave:$,onDrop:P,className:_,children:[z,B]}),e[35]=$,e[36]=N,e[37]=P,e[38]=_,e[39]=z,e[40]=B,e[41]=E):E=e[41];let O;e[42]!==l?(O=Y=>l(Y.target.value),e[42]=l,e[43]=O):O=e[43];let V;e[44]!==i||e[45]!==a||e[46]!==O?(V=r.jsx(ee,{id:i,type:"url",value:a,onChange:O,placeholder:"https://...",className:"h-9 min-w-0 flex-1"}),e[44]=i,e[45]=a,e[46]=O,e[47]=V):V=e[47];let M;e[48]!==f?(M=()=>f(!0),e[48]=f,e[49]=M):M=e[49];let Q;e[50]===Symbol.for("react.memo_cache_sentinel")?(Q=r.jsx(Je,{size:14}),e[50]=Q):Q=e[50];const J=a?"Replace":"Browse";let W;e[51]!==M||e[52]!==J?(W=r.jsxs(ie,{type:"button",variant:"outline",size:"sm",onClick:M,className:"h-9 shrink-0",children:[Q,J]}),e[51]=M,e[52]=J,e[53]=W):W=e[53];let U;e[54]!==l||e[55]!==a?(U=a&&r.jsx(ie,{type:"button",variant:"ghost",size:"sm",onClick:()=>l(""),className:"h-9 shrink-0","aria-label":"Remove file",children:r.jsx(ke,{size:14})}),e[54]=l,e[55]=a,e[56]=U):U=e[56];let H;e[57]!==V||e[58]!==W||e[59]!==U?(H=r.jsxs("div",{className:"flex w-full min-w-0 items-center gap-2",children:[V,W,U]}),e[57]=V,e[58]=W,e[59]=U,e[60]=H):H=e[60];let X;e[61]!==l?(X=Y=>l(Y),e[61]=l,e[62]=X):X=e[62];let G;e[63]!==c||e[64]!==f||e[65]!==X?(G=r.jsx(Xe,{open:c,onOpenChange:f,mode:"any",onSelect:X}),e[63]=c,e[64]=f,e[65]=X,e[66]=G):G=e[66];let te;return e[67]!==E||e[68]!==H||e[69]!==G||e[70]!==S?(te=r.jsxs("div",{className:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)] gap-2",children:[S,E,H,G]}),e[67]=E,e[68]=H,e[69]=G,e[70]=S,e[71]=te):te=e[71],te}function Pt(t){return t.type.startsWith("video/")}const Dt=new Set(["__resolveType","@type"]);function Rt(t){if(t.type!=="block-ref"||!t.anyOfRefs?.length||t.anyOfRefs.length!==1)return null;const e=t.anyOfRefs[0].resolveType;return e.endsWith("/multivariate/image.ts")?"image":e.endsWith("/multivariate/video.ts")||e.endsWith("/multivariate/file.ts")?"file":null}function zt(t){return t.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]/g," ").replace(/^\w/,e=>e.toUpperCase())}function Bt(t,e){if(e!==void 0)return e;switch(t){case"string":return"";case"number":case"integer":return 0;case"boolean":return!1;case"array":return[];case"object":return{};default:return null}}function Fe(t){const{schema:e,value:n}=t;if(e.type==="block-ref"||n!==null&&typeof n=="object"&&!Array.isArray(n)&&typeof n.__resolveType=="string"&&e.anyOfRefs){const o=Rt(e);return o==="image"?r.jsx(xe,{...t},t.path):o==="file"?r.jsx(be,{...t},t.path):e.anyOfRefs?r.jsx(ge,{...t},t.path):null}if(e.format==="image-uri")return r.jsx(xe,{...t},t.path);if(e.format==="file-uri"||e.format==="video-uri")return r.jsx(be,{...t},t.path);if(e.enum&&e.enum.length>0)return r.jsx(Nt,{...t},t.path);if(e.type==="anyOf")return r.jsx(ge,{...t},t.path);const s=n??Bt(e.type,e.default);if(s==null)return null;const l={...t,value:s},i=n==null?e.type??typeof s:Array.isArray(s)?"array":typeof s;if(i==="array"||Array.isArray(s))return r.jsx(Tt,{...l},t.path);switch(i){case"boolean":return r.jsx(yt,{...l},t.path);case"number":case"integer":return r.jsx(gt,{...l},t.path);case"string":{const o=e.format;return o==="color-input"?r.jsx(se,{...l},t.path):o==="textarea"||o==="rich-text"||o==="html"?r.jsx(se,{...l},t.path):r.jsx(se,{...l},t.path)}case"object":return s!==null&&typeof s=="object"&&!Array.isArray(s)?r.jsx(kt,{...l},t.path):null;default:return r.jsx(se,{...l},t.path)}}function fe(t){const e=R.c(13),{schema:n,value:s,onChange:l,basePath:i,breadcrumbPath:o,onBreadcrumbChange:d}=t;let a;e[0]!==o?(a=o===void 0?[]:o,e[0]=o,e[1]=a):a=e[1];const c=a,f=n.properties;if(!f)return null;let u;e[2]!==s?(u=s!=null&&typeof s=="object"&&!Array.isArray(s)?s:{},e[2]=s,e[3]=u):u=e[3];const m=u;let h,y;if(e[4]!==i||e[5]!==c||e[6]!==m||e[7]!==d||e[8]!==l||e[9]!==f){y=Symbol.for("react.early_return_sentinel");e:{const p=Object.keys(f).filter(Et);if(p.length===0){let x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:"No editable fields on this section."}),e[12]=x):x=e[12],y=x;break e}const g=(x,b)=>{l({...m,[x]:b})};h=r.jsx("div",{className:"min-w-0 space-y-6",children:p.map(x=>{const b=f[x];if(!b)return null;const j=i?`${i}.${x}`:x,v=b.title??zt(x);return Fe({schema:b,value:m[x],onChange:w=>g(x,w),path:j,label:v,breadcrumbPath:c,onBreadcrumbChange:d})})})}e[4]=i,e[5]=c,e[6]=m,e[7]=d,e[8]=l,e[9]=f,e[10]=h,e[11]=y}else h=e[10],y=e[11];return y!==Symbol.for("react.early_return_sentinel")?y:h}function Et(t){return!Dt.has(t)}export{fe as S,Fe as a,se as b,ce as r,tt as s};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-DYhQxzqY.js","assets/index-CJoBkEf_.js","assets/index-LtT7znvk.css","assets/XCircle-8FTuCNvR.js","assets/CheckCircle-CEi1N2Mq.js","assets/Container-nZYBPJRv.js","assets/Settings02-rrw51k4M.js","assets/constants-P1xnRFeX.js","assets/useInfiniteQuery--C6hdwWo.js","assets/infiniteQueryObserver-hzkIseBw.js","assets/badge-BYAYJbYP.js","assets/input-BZDQfdYn.js","assets/dropdown-menu-DKiorR9d.js","assets/Check-8AgR6ZjG.js","assets/ChevronRight-DQs4tkMm.js","assets/DotsVertical-C00j11Qg.js","assets/table-zHqbyGEy.js","assets/toggle-group-CgAd7Mg_.js","assets/use-view-mode-CUhYlh8A.js","assets/tooltip-BseNApEN.js","assets/FilterLines-FHjfh1pF.js","assets/Globe01-Uo6KHfk2.js","assets/SearchMd-WbJoDaWs.js","assets/dialog-C3j-c3SR.js","assets/X-FDfBE4i9.js","assets/AlertCircle-C0w7vkhj.js","assets/Upload01-BXTkAAEz.js","assets/alert-dialog-rlUwGNsJ.js","assets/card-7rOCFixx.js","assets/Trash01-C9vkf5T6.js","assets/label-09bf4ZUr.js","assets/select-D3xFKLhW.js","assets/ChevronDown-DhOfQXzQ.js","assets/ChevronUp-BJ7RKHi2.js","assets/switch-DFEmgVSQ.js","assets/textarea-Kw6SbqZA.js","assets/RefreshCcw01-DVTjMN9w.js","assets/checkbox-DotF6hoA.js","assets/Eye-B7Xkt1CB.js","assets/LinkExternal01-DycVPnNy.js","assets/use-copy-B4ijm3eQ.js","assets/Key01-BIkGax_i.js","assets/Plus-DgS5eNSe.js","assets/Play-CA-oDPY7.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{e as m,f as n,g as c,j as t,l as f,r as l,_ as p}from"./index-CJoBkEf_.js";import{R as u}from"./require-capability-DJDpC59C.js";import"./use-capability-BETReHdP.js";import"./access-gate-DwKbtSzY.js";import"./capability-load-error-CUPCgjg9.js";const g=l.lazy(()=>p(()=>import("./registry-layout-DYhQxzqY.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-hzkIseBw.js";import{cv as i}from"./index-CJoBkEf_.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-hzkIseBw.js";import{cv as u,aE as n}from"./index-CJoBkEf_.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as s,g as l,j as o,l as a,E as n,r as c}from"./index-CJoBkEf_.js";import{a as f}from"./index-B7LqxKQ-.js";import"./index-Ck3k86Ip.js";import"./constants-P1xnRFeX.js";import"./collections-BY2lU4NZ.js";import"./index-C4kuSARI.js";import"./use-virtual-mcp-C09vm-BM.js";import"./use-collections-C-e494pb.js";import"./monaco-editor-B2MBxzPo.js";import"./spinner-BLcfraim.js";import"./accordion-BrfX2IfA.js";import"./agent-icon-ExlCX9f5.js";import"./AlertCircle-C0w7vkhj.js";import"./Tool01-BcHwzAg_.js";import"./SwitchHorizontal01-5B3DSr8e.js";import"./RefreshCcw01-DVTjMN9w.js";import"./XCircle-8FTuCNvR.js";import"./ArrowUpRight-DNyQYu-V.js";import"./ZapSquare-wTPdLQod.js";import"./Users03-Cgth-3GS.js";import"./CheckCircle-CEi1N2Mq.js";import"./Check-8AgR6ZjG.js";import"./ChevronDown-DhOfQXzQ.js";import"./ChevronRight-DQs4tkMm.js";import"./ChevronUp-BJ7RKHi2.js";import"./DotsVertical-C00j11Qg.js";import"./Container-nZYBPJRv.js";import"./Eye-B7Xkt1CB.js";import"./Globe01-Uo6KHfk2.js";import"./FilterLines-FHjfh1pF.js";import"./ZoomOut-NkImUVHk.js";import"./Star01-CeDy0qEH.js";import"./Palette-Toq4eQ-J.js";import"./HardDrive-CGMuM2Oy.js";import"./Stars02-ButLG8tI.js";import"./Key01-BIkGax_i.js";import"./sheet-y48NbizY.js";import"./X-FDfBE4i9.js";import"./LinkExternal01-DycVPnNy.js";import"./Monitor01-D1U6Pa3W.js";import"./Sun-DB_K22EW.js";import"./Play-CA-oDPY7.js";import"./Plus-DgS5eNSe.js";import"./SearchMd-WbJoDaWs.js";import"./Settings02-rrw51k4M.js";import"./Shield01-5itVZGiR.js";import"./Stars01-DYDsxZnS.js";import"./Trash01-C9vkf5T6.js";import"./Upload01-BXTkAAEz.js";import"./User01-C3qNbl-c.js";import"./Users01-C95xm0Ia.js";import"./XClose-BfJTW_HK.js";import"./Zap-DK6MOOIv.js";import"./scroll-area-DCO9LjjC.js";import"./select-D3xFKLhW.js";import"./tooltip-BseNApEN.js";import"./badge-BYAYJbYP.js";import"./view-mode-toggle-CoifNzqg.js";import"./layout-hMbyvZRj.js";import"./index-mPypacb-.js";import"./sidebar-BNHENVF_.js";import"./use-connection-COB3wZyv.js";import"./use-mcp-tools-BdUmFkbH.js";import"./dialog-C3j-c3SR.js";import"./index-NioO90_M.js";import"./hover-card-B_RJCrCA.js";import"./dropdown-menu-DKiorR9d.js";import"./integration-icon-DYz5eywh.js";import"./index-vNb1uvqd.js";import"./empty-state-CsQfijIL.js";import"./create-sse-subscription-BS5983N4.js";import"./input-BZDQfdYn.js";function Pt(){const t=s.c(4);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/workflows/$itemId"},t[0]=r):r=t[0];const{itemId:e}=l(r);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsx(a,{size:32,className:"animate-spin text-muted-foreground"})}),t[1]=i):i=t[1];const p=decodeURIComponent(e);let m;return t[2]!==p?(m=o.jsx(n,{children:o.jsx(c.Suspense,{fallback:i,children:o.jsx(f,{itemId:p})})}),t[2]=p,t[3]=m):m=t[3],m}export{Pt as default};
|