decocms 3.86.0 → 3.87.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-qY5ngKLr.js → AlertCircle-DCaILIxy.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-C7uYzZ0Z.js → ArrowUpRight-X5amVRyC.js} +1 -1
- package/dist/client/assets/{CheckCircle-CNYYpNQm.js → CheckCircle-CbsNhQn0.js} +1 -1
- package/dist/client/assets/{ChevronDown-BVJUps1_.js → ChevronDown-CVjUKz-z.js} +1 -1
- package/dist/client/assets/{ChevronLeft-CCp89cqe.js → ChevronLeft-D1-Kt_O_.js} +1 -1
- package/dist/client/assets/{ChevronRight-MnjJHQHy.js → ChevronRight-B5vIIazE.js} +1 -1
- package/dist/client/assets/{ChevronUp-CKICjFfX.js → ChevronUp-BVstlWuJ.js} +1 -1
- package/dist/client/assets/{DotsVertical-Bl5GcKp2.js → DotsVertical-jXbP9E3i.js} +1 -1
- package/dist/client/assets/{Eye-C6daRddp.js → Eye-CZMmu7ZU.js} +1 -1
- package/dist/client/assets/{FilterLines-B_0u5HAa.js → FilterLines-PGGfujeb.js} +1 -1
- package/dist/client/assets/Form-otBZ0aYe.js +26 -0
- package/dist/client/assets/{Globe01-CgHdNpOL.js → Globe01-Dkk22t5V.js} +1 -1
- package/dist/client/assets/{Globe04-DEangwXD.js → Globe04-DqCAznfy.js} +1 -1
- package/dist/client/assets/{HardDrive-V1dbAXdv.js → HardDrive-Dm-8T9iU.js} +1 -1
- package/dist/client/assets/{Key01-B0h1bFlR.js → Key01-BNThvF9O.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BsVzrTOG.js → LayoutLeft-IEoSRkSV.js} +1 -1
- package/dist/client/assets/{LinkExternal01-B9RsD2Us.js → LinkExternal01-AFpRcUMN.js} +1 -1
- package/dist/client/assets/{Monitor01-DAM-u2R2.js → Monitor01-ge-8I-dx.js} +1 -1
- package/dist/client/assets/{Palette-DT8p7ZEl.js → Palette-DOfcM3Kq.js} +1 -1
- package/dist/client/assets/{Play-Blum-MoR.js → Play-BpkgKRX8.js} +1 -1
- package/dist/client/assets/{Plus-DfIcHYEj.js → Plus-BAnxALLT.js} +1 -1
- package/dist/client/assets/{SearchMd-B6GaXN7Q.js → SearchMd-D72ymOya.js} +1 -1
- package/dist/client/assets/{Settings02-Dd9sO-oW.js → Settings02-BYzbH49L.js} +1 -1
- package/dist/client/assets/{Shield01-DLANpVD0.js → Shield01-DzzrgcSm.js} +1 -1
- package/dist/client/assets/{Star01-Be_MjtDZ.js → Star01-CfUlqnJc.js} +1 -1
- package/dist/client/assets/{Stars01-D3ha2IeY.js → Stars01-DOOJ-cpD.js} +1 -1
- package/dist/client/assets/{Stars02-DHcW8N80.js → Stars02-BcDfq8PM.js} +1 -1
- package/dist/client/assets/{Sun-DO_Gt4P2.js → Sun-r3rOsIIR.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CrHLIeRP.js → SwitchHorizontal01-D3QmyK-N.js} +1 -1
- package/dist/client/assets/{Tool01-hxrY31T7.js → Tool01-Bahn8UbK.js} +1 -1
- package/dist/client/assets/{Trash01-DGJ-LjB-.js → Trash01-BNbAqaqW.js} +1 -1
- package/dist/client/assets/{Upload01-CzOJ3UuD.js → Upload01-4k3hmRFX.js} +1 -1
- package/dist/client/assets/{User01-DR_UC5XH.js → User01-_ttgUTw7.js} +1 -1
- package/dist/client/assets/{Users01-cxH39exM.js → Users01-BwX0Mh9G.js} +1 -1
- package/dist/client/assets/{Users03-BZYHqQGQ.js → Users03-Bp6iF_8k.js} +1 -1
- package/dist/client/assets/{X-CXRx6PGX.js → X-D-dT8MOl.js} +1 -1
- package/dist/client/assets/{XCircle-BLfqcVud.js → XCircle-BGPqJ1Ro.js} +1 -1
- package/dist/client/assets/{XClose-4ak3u3qT.js → XClose-CNxbnD3N.js} +1 -1
- package/dist/client/assets/{Zap-DVtX-UPi.js → Zap-CxIlaYID.js} +1 -1
- package/dist/client/assets/{ZapSquare-iu6ldaYZ.js → ZapSquare-BDFHxBEC.js} +1 -1
- package/dist/client/assets/{ZoomOut-6aWLXLSs.js → ZoomOut-Bw1ZSU5L.js} +1 -1
- package/dist/client/assets/{access-gate-B_rz72ZQ.js → access-gate-CCJp4m8K.js} +1 -1
- package/dist/client/assets/{add-section-modal-ExcCDC5z.js → add-section-modal-BgrC9Ld1.js} +1 -1
- package/dist/client/assets/{agent-icon-CKGTD-zQ.js → agent-icon-DLeN3d18.js} +1 -1
- package/dist/client/assets/{agents-list-DKD78ho4.js → agents-list-Q3tDYSwW.js} +1 -1
- package/dist/client/assets/ai-providers-BqFV0dkm.js +1 -0
- package/dist/client/assets/{alert-DIaLGkVq.js → alert-Dry1jh9V.js} +1 -1
- package/dist/client/assets/{alert-dialog-D5KOx-3H.js → alert-dialog-BRxMo-sj.js} +1 -1
- package/dist/client/assets/app-editor-CmSP6n2r.js +1 -0
- package/dist/client/assets/{auth-B4fF5n_6.js → auth-BmpBXuc6.js} +1 -1
- package/dist/client/assets/{auth-catchall-DS1LbQ8-.js → auth-catchall-C2f_hrTA.js} +1 -1
- package/dist/client/assets/{auth-entry-BVyaHjaQ.js → auth-entry-Dc0ISy_Q.js} +1 -1
- package/dist/client/assets/auth-split-layout-vIU-YxKv.js +1 -0
- package/dist/client/assets/{authenticate-and-persist-oauth-D2tM_mGL.js → authenticate-and-persist-oauth-Ch8j6yff.js} +1 -1
- package/dist/client/assets/{automation-list-row-BKx-xx1i.js → automation-list-row-DuiEBMt2.js} +1 -1
- package/dist/client/assets/{automation-runs-_FCeac3K.js → automation-runs-Cdam9_64.js} +1 -1
- package/dist/client/assets/{automations-BQ894D8d.js → automations-CdkAIVKM.js} +1 -1
- package/dist/client/assets/{avatar-3b85MUU5.js → avatar-ByeXDTC_.js} +1 -1
- package/dist/client/assets/{badge-CBy4Rm2Q.js → badge-DUd6QA6I.js} +1 -1
- package/dist/client/assets/{block-document-BFMWdkuR.js → block-document-CC_dKbbH.js} +1 -1
- package/dist/client/assets/{brand-context-DQ3HUqVS.js → brand-context-EyJOR9fi.js} +1 -1
- package/dist/client/assets/buckets-Du6WAmVO.js +1 -0
- package/dist/client/assets/{capability-load-error-DmenvLwh.js → capability-load-error-hf3qlFQ9.js} +1 -1
- package/dist/client/assets/{card-D0ElZuSJ.js → card-BL8IT_Xq.js} +1 -1
- package/dist/client/assets/category-editor-BkcL4gtt.js +1 -0
- package/dist/client/assets/{chat-context-SWJ_FDEf.js → chat-context-8aInoVVs.js} +1 -1
- package/dist/client/assets/{checkbox-UCOb4UyX.js → checkbox-BvC4eja3.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DYcgRZGE.js → cli-auth-success-BzKwknZh.js} +1 -1
- package/dist/client/assets/collection-detail-DGACG0zf.js +1 -0
- package/dist/client/assets/{collection-display-button-DY7UIm0_.js → collection-display-button-CWZcD7VW.js} +1 -1
- package/dist/client/assets/{collection-search-B-ZTg2tB.js → collection-search-xJgITIyC.js} +1 -1
- package/dist/client/assets/{collection-tabs-7m5XLASC.js → collection-tabs-rwQ7O1FC.js} +1 -1
- package/dist/client/assets/{command-CKe7nBfr.js → command-DrqBy6cr.js} +1 -1
- package/dist/client/assets/commerce-onboarding-PAEJK5wr.js +1 -0
- package/dist/client/assets/{connect-desktop-dialog-JUjDMHMz.js → connect-desktop-dialog-CN-nGv3X.js} +1 -1
- package/dist/client/assets/{connection-card-By0LggNB.js → connection-card-_vJp-QnB.js} +1 -1
- package/dist/client/assets/connection-detail-ja-xrIwZ.js +1 -0
- package/dist/client/assets/{connection-form-helpers-DeSC5iva.js → connection-form-helpers-I0PYYuLM.js} +1 -1
- package/dist/client/assets/connections-B1jNaws1.js +1 -0
- package/dist/client/assets/{context-menu-BXRYPu2v.js → context-menu-HarJm6y_.js} +1 -1
- package/dist/client/assets/{decopilot-DBiOjpCq.js → decopilot-DlerL3TD.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-Cd7s5cwH.js → decopilot-sse-pool-D0qyyVP7.js} +1 -1
- package/dist/client/assets/{dialog-CwfeALzq.js → dialog-BuyMoIGd.js} +1 -1
- package/dist/client/assets/{domain-settings-DYoOK4LM.js → domain-settings-DKI84wPN.js} +1 -1
- package/dist/client/assets/{drawer-_RQmWfAo.js → drawer-R83GIfSJ.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CppAWsT_.js → dropdown-menu-6KXvVkGj.js} +1 -1
- package/dist/client/assets/{empty-state-CfAeMInj.js → empty-state-8wIqOHhT.js} +1 -1
- package/dist/client/assets/{extract-connection-data-qW230rJb.js → extract-connection-data-BlAuqFCc.js} +1 -1
- package/dist/client/assets/file-explorer-Xu0RpKKj.js +2 -0
- package/dist/client/assets/{file-type-icon-CdZyaTKH.js → file-type-icon-CvUBwDjL.js} +1 -1
- package/dist/client/assets/{files-BagYqqvX.js → files-aEPuOJ77.js} +1 -1
- package/dist/client/assets/{form-xYXw--Kt.js → form-DrdYYSH7.js} +1 -1
- package/dist/client/assets/general-ItE-Caya.js +1 -0
- package/dist/client/assets/{github-repo-picker-B1nNLNvt.js → github-repo-picker-B9itq1xr.js} +1 -1
- package/dist/client/assets/{hooks-CLt3SUb8.js → hooks-B2hm8dgB.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-DhVDGeAO.js → import-from-deco-dialog-LpeKak-8.js} +1 -1
- package/dist/client/assets/{index-Benu0NlA.js → index-01iYleW9.js} +1 -1
- package/dist/client/assets/index-8j69uwRU.js +1 -0
- package/dist/client/assets/{index-DkOvgjMe.js → index-B0KuFfZg.js} +2 -2
- package/dist/client/assets/index-B6DoI6qf.css +1 -0
- package/dist/client/assets/{index-uKLTzwtC.js → index-BD-GJSKU.js} +1 -1
- package/dist/client/assets/index-BP-ioQEj.js +1 -0
- package/dist/client/assets/index-BdQq_4o_.js +1 -0
- package/dist/client/assets/{index-CLz5uOtD.js → index-BneU-diW.js} +1 -1
- package/dist/client/assets/index-BpzEWYcj.js +1 -0
- package/dist/client/assets/{index-D7pI5IpD.js → index-C4Pfm5Oe.js} +1 -1
- package/dist/client/assets/{index-CCbaPbk-.js → index-C5jRpoWd.js} +1 -1
- package/dist/client/assets/index-CDSjl7Ui.js +1 -0
- package/dist/client/assets/{index-B7l76Ktp.js → index-CZObCZGR.js} +1 -1
- package/dist/client/assets/{index-Yqaph2kh.js → index-CdH9ADyr.js} +10 -10
- package/dist/client/assets/{index-DILk6pqr.js → index-DP_mpTaG.js} +4 -4
- package/dist/client/assets/{index-U2AV4b0H.js → index-oY9SWynr.js} +1 -1
- package/dist/client/assets/{index-redirect-Bmnv-CEe.js → index-redirect-CLJSuvD8.js} +1 -1
- package/dist/client/assets/{input-DntqEqec.js → input-BIu7fT2w.js} +1 -1
- package/dist/client/assets/{integration-icon-CxxjWIPp.js → integration-icon-DM5W4vtE.js} +1 -1
- package/dist/client/assets/{label-NJtv9Xrj.js → label-DPhUzMw-.js} +1 -1
- package/dist/client/assets/{login-_rldC1vQ.js → login-c1Klklse.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BTUV7ht5.js → mcp-oauth-CzalxeD0.js} +1 -1
- package/dist/client/assets/{members-DNPmSt7U.js → members-B3SDcfGH.js} +2 -2
- package/dist/client/assets/{monaco-editor-BS1tOSHv.js → monaco-editor-OzwRuboT.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Bly7CEZA.js → monitoring-stats-row-CZFGN_Ar.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DX668UtX.js → oauth-callback-ai-provider-Zibshrw4.js} +1 -1
- package/dist/client/assets/{oauth-callback-Brn-4X2e.js → oauth-callback-rILtKGBx.js} +1 -1
- package/dist/client/assets/{onboarding-h3gvqE97.js → onboarding-Ba1_LMfh.js} +1 -1
- package/dist/client/assets/{org-install-devOK14U.js → org-install-B3ClN2KG.js} +1 -1
- package/dist/client/assets/{org-layout-C6RX2zdp.js → org-layout-BIcSmhzR.js} +1 -1
- package/dist/client/assets/{organization-choice-DFUlgHk4.js → organization-choice-Djr2j4p7.js} +1 -1
- package/dist/client/assets/{page-seo-form-DIlFQufm.js → page-seo-form-Cygtl0_G.js} +1 -1
- package/dist/client/assets/page-seo-sheet-Ca_ed5x4.js +1 -0
- package/dist/client/assets/{popover-DmLzbFpk.js → popover-CoSr2FBy.js} +1 -1
- package/dist/client/assets/post-editor-DlBTWEb0.js +1 -0
- package/dist/client/assets/{preview-dialog-XKGBZobL.js → preview-dialog-Ew97vZX-.js} +1 -1
- package/dist/client/assets/{primitives-pW0ukQfP.js → primitives-Y5zOyEze.js} +1 -1
- package/dist/client/assets/profile-Bv93_4sd.js +1 -0
- package/dist/client/assets/project-app-view-B-FRjb71.js +1 -0
- package/dist/client/assets/record-editor-CnrRrpeQ.js +1 -0
- package/dist/client/assets/registry-DXqXIJ3q.js +2 -0
- package/dist/client/assets/{registry-layout-CQVApMRy.js → registry-layout-DJX2uyJL.js} +2 -2
- package/dist/client/assets/{require-capability-BlqPTqxe.js → require-capability-CaEtxlmL.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DdFOKjMd.js → required-auth-layout-DaTmuUAT.js} +1 -1
- package/dist/client/assets/{reset-password-C7ldICgc.js → reset-password-DOCud_M1.js} +1 -1
- package/dist/client/assets/{roles-DqqpBRsM.js → roles-CxxJGu2W.js} +1 -1
- package/dist/client/assets/{save-status-DIZcxleS.js → save-status-CzIIhKYY.js} +1 -1
- package/dist/client/assets/{scroll-area-CN3_YfBC.js → scroll-area-DqRON9QZ.js} +1 -1
- package/dist/client/assets/{search-input-SieA9wsp.js → search-input-CBG595Ow.js} +1 -1
- package/dist/client/assets/secrets-CI45M6t4.js +1 -0
- package/dist/client/assets/{sections-editor-B8F8gKNp.js → sections-editor-DGK7CeFk.js} +2 -2
- package/dist/client/assets/select-Cr3vICrM.js +1 -0
- package/dist/client/assets/{select-model-DmLcnpxY.js → select-model-Bg44O4qj.js} +1 -1
- package/dist/client/assets/seo-editor-BnPhYxBs.js +1 -0
- package/dist/client/assets/{settings-layout-DStO9uhp.js → settings-layout-B3cOf57A.js} +1 -1
- package/dist/client/assets/{settings-section-BXkrjyua.js → settings-section-C9C9TZId.js} +1 -1
- package/dist/client/assets/{sheet-CgvO6KT7.js → sheet-CTaEFOuN.js} +1 -1
- package/dist/client/assets/{shell-controls-BlCSLJCZ.js → shell-controls-DTok3_fO.js} +1 -1
- package/dist/client/assets/{shell-layout-DAyf8ZZZ.js → shell-layout-BAiMOktM.js} +1 -1
- package/dist/client/assets/{shell-route-loading-44H3A_LH.js → shell-route-loading-s4EoOI9P.js} +1 -1
- package/dist/client/assets/{sidebar-D5TdEONj.js → sidebar-BSjkOAEq.js} +1 -1
- package/dist/client/assets/{skeleton-DUdp3Kvb.js → skeleton-DBbnbGFm.js} +1 -1
- package/dist/client/assets/{sortable.esm-DdDX2lbe.js → sortable.esm-DW_CXYvf.js} +1 -1
- package/dist/client/assets/sso-B0FMpGZK.js +1 -0
- package/dist/client/assets/{store-CrUgJduQ.js → store-DmCUraJs.js} +1 -1
- package/dist/client/assets/store-registry-DWQAV-zh.js +2 -0
- package/dist/client/assets/{studio-tools-DWzikkvB.js → studio-tools-D3_SJ0_N.js} +1 -1
- package/dist/client/assets/{switch-ZSF60LRT.js → switch-BSnmwd67.js} +1 -1
- package/dist/client/assets/{table-CAdy-hg6.js → table-B4QqlN52.js} +1 -1
- package/dist/client/assets/{tabs-CVnN0f33.js → tabs-B7KtNlAY.js} +1 -1
- package/dist/client/assets/{task-status-CtOjrZ5U.js → task-status-CN8kElP5.js} +1 -1
- package/dist/client/assets/{textarea-Fs50NfWG.js → textarea-B5r3kbSQ.js} +1 -1
- package/dist/client/assets/{toggle-group-C7SpEcqz.js → toggle-group-BoZF2OOS.js} +1 -1
- package/dist/client/assets/{toolbar-Dp05iiiH.js → toolbar-D_dUXYk3.js} +1 -1
- package/dist/client/assets/tools-list-Bw8CpHV0.js +1 -0
- package/dist/client/assets/{tooltip-DNJ6cRlV.js → tooltip-CYe5fPCQ.js} +1 -1
- package/dist/client/assets/{types-CsHe6BgD.js → types-CJgIJauG.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CVKwKs8r.js → use-ai-providers-BQTrck2T.js} +1 -1
- package/dist/client/assets/{use-automations-Ca6VluJ_.js → use-automations-aeYDYpbz.js} +1 -1
- package/dist/client/assets/{use-capability-OLvFRh1U.js → use-capability-DhoZz-If.js} +1 -1
- package/dist/client/assets/{use-clock-tick-CWHp6nCX.js → use-clock-tick-BlJ7-hRX.js} +1 -1
- package/dist/client/assets/{use-collections-D0HN84Lz.js → use-collections-CSCQtjHx.js} +1 -1
- package/dist/client/assets/{use-connection-Bj1m8ynL.js → use-connection-CCWvfaxs.js} +1 -1
- package/dist/client/assets/{use-copy-CuQAt0Vj.js → use-copy-DJR4tQ3-.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Cxqyw0Tn.js → use-create-virtual-mcp-CCvXLRxb.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-OpSLLz7d.js → use-debounced-autosave-C4Qmf5qO.js} +1 -1
- package/dist/client/assets/{use-delete-connection-ARKHDNqJ.js → use-delete-connection-gqYfcWeD.js} +1 -1
- package/dist/client/assets/{use-file-configs-aDA6u1U_.js → use-file-configs-B7ZdH4sp.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CCIuAqs7.js → use-infinite-scroll-CU-J9rqm.js} +1 -1
- package/dist/client/assets/{use-join-requests-CyAP3Yln.js → use-join-requests-DrugHR3B.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BdmHrvF5.js → use-mcp-client-B_wvxVvi.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BwQLmLZi.js → use-mcp-prompts-B5ITx1M8.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-ChlFTYss.js → use-mcp-tools--Zcng6MU.js} +1 -1
- package/dist/client/assets/{use-members-9pMsaLP9.js → use-members-DRYUtb_4.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Qyyx-mm9.js → use-navigate-to-agent-VYoT0How.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CtaccGLo.js → use-org-auth-client-p32QdZVr.js} +1 -1
- package/dist/client/assets/{use-org-sso-DvlbibgX.js → use-org-sso-DuGGcbA7.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CYiD53yX.js → use-organization-roles-DshdakDm.js} +1 -1
- package/dist/client/assets/{use-organization-settings-a8PuTrsa.js → use-organization-settings-DNzEj3SY.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DZ1G13oh.js → use-registry-connections-t5X0dgE2.js} +1 -1
- package/dist/client/assets/{use-secrets-GRgGPWUb.js → use-secrets-CdtjD3HA.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DMne2oqE.js → use-status-sounds-SmT5_iKp.js} +1 -1
- package/dist/client/assets/{use-view-mode-CslUtkLV.js → use-view-mode-BCaeLPRd.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-OPb4DVO0.js → use-virtual-mcp-DTNF-w70.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Bziqv5Nz.js +1 -0
- package/dist/client/assets/{useQueries-BD3bwl6B.js → useQueries-B88iFaFv.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Dx7jl2bl.js +1 -0
- package/dist/client/assets/variant-calendar-zBAnpIIP.js +1 -0
- package/dist/client/assets/{view-mode-toggle-k-q_tsqg.js → view-mode-toggle-dKl9f2N6.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +253 -206
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-shPNJ0G8.js +0 -1
- package/dist/client/assets/app-editor-CASRPS-o.js +0 -1
- package/dist/client/assets/auth-split-layout-BO9g4lYZ.js +0 -1
- package/dist/client/assets/buckets-BJOevXCK.js +0 -1
- package/dist/client/assets/category-editor-Ci2DnrkV.js +0 -1
- package/dist/client/assets/collection-detail-BLwVko_9.js +0 -1
- package/dist/client/assets/commerce-onboarding-DpB8M1dk.js +0 -1
- package/dist/client/assets/connection-detail-BEiO-h95.js +0 -1
- package/dist/client/assets/connections-DJCB8L8S.js +0 -1
- package/dist/client/assets/file-explorer-DZMbkqJ0.js +0 -2
- package/dist/client/assets/general-C27Cwywq.js +0 -1
- package/dist/client/assets/index-BSzVFCV6.js +0 -26
- package/dist/client/assets/index-C6ZVo7HH.js +0 -1
- package/dist/client/assets/index-Cey8outX.js +0 -1
- package/dist/client/assets/index-D9MBRSbh.js +0 -1
- package/dist/client/assets/index-fHHzFvHF.css +0 -1
- package/dist/client/assets/page-seo-sheet-BsYTh7m4.js +0 -1
- package/dist/client/assets/post-editor-msU8kMVE.js +0 -1
- package/dist/client/assets/profile-Cq_Bww2z.js +0 -1
- package/dist/client/assets/project-app-view-DjSLRXjX.js +0 -1
- package/dist/client/assets/record-editor-SpOTRD39.js +0 -1
- package/dist/client/assets/registry-BYRguUOn.js +0 -2
- package/dist/client/assets/secrets-B2XOt0uB.js +0 -1
- package/dist/client/assets/select-DeFnLWdd.js +0 -1
- package/dist/client/assets/seo-editor-nfDAcvV7.js +0 -1
- package/dist/client/assets/sso-DFI00-8p.js +0 -1
- package/dist/client/assets/store-registry-DOL4KgkC.js +0 -2
- package/dist/client/assets/useInfiniteQuery-D-pnegbi.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-_rNdlYkE.js +0 -1
- package/dist/client/assets/variant-calendar-DAwCBXUq.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as it,r as E,j as e,i as rt}from"./index-DILk6pqr.js";import{S as mt,b as pt,c as st,d as at}from"./sheet-CgvO6KT7.js";import{S as nt}from"./scroll-area-CN3_YfBC.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-DIlFQufm.js";import{p as xt}from"./index-Yqaph2kh.js";import"./X-CXRx6PGX.js";import"./agent-icon-CKGTD-zQ.js";import"./AlertCircle-qY5ngKLr.js";import"./Tool01-hxrY31T7.js";import"./SwitchHorizontal01-CrHLIeRP.js";import"./Settings02-Dd9sO-oW.js";import"./XCircle-BLfqcVud.js";import"./ArrowUpRight-C7uYzZ0Z.js";import"./ZapSquare-iu6ldaYZ.js";import"./Users03-BZYHqQGQ.js";import"./CheckCircle-CNYYpNQm.js";import"./ChevronUp-CKICjFfX.js";import"./ChevronDown-BVJUps1_.js";import"./ChevronLeft-CCp89cqe.js";import"./ChevronRight-MnjJHQHy.js";import"./DotsVertical-Bl5GcKp2.js";import"./Stars02-DHcW8N80.js";import"./Eye-C6daRddp.js";import"./ZoomOut-6aWLXLSs.js";import"./Globe01-CgHdNpOL.js";import"./FilterLines-B_0u5HAa.js";import"./Star01-Be_MjtDZ.js";import"./Globe04-DEangwXD.js";import"./HardDrive-V1dbAXdv.js";import"./Key01-B0h1bFlR.js";import"./LayoutLeft-BsVzrTOG.js";import"./LinkExternal01-B9RsD2Us.js";import"./Monitor01-DAM-u2R2.js";import"./Sun-DO_Gt4P2.js";import"./Palette-DT8p7ZEl.js";import"./Play-Blum-MoR.js";import"./Plus-DfIcHYEj.js";import"./SearchMd-B6GaXN7Q.js";import"./Shield01-DLANpVD0.js";import"./Stars01-D3ha2IeY.js";import"./Trash01-DGJ-LjB-.js";import"./Upload01-CzOJ3UuD.js";import"./User01-DR_UC5XH.js";import"./Users01-cxH39exM.js";import"./XClose-4ak3u3qT.js";import"./Zap-DVtX-UPi.js";import"./use-clock-tick-CWHp6nCX.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CuQAt0Vj.js";import"./tooltip-DNJ6cRlV.js";import"./file-type-icon-CdZyaTKH.js";import"./dialog-CwfeALzq.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-CsHe6BgD.js";import"./use-mcp-client-BdmHrvF5.js";import"./auth-B4fF5n_6.js";import"./chat-context-SWJ_FDEf.js";import"./hooks-CLt3SUb8.js";import"./decopilot-sse-pool-Cd7s5cwH.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-OPb4DVO0.js";import"./use-collections-D0HN84Lz.js";import"./use-ai-providers-CVKwKs8r.js";import"./studio-tools-DWzikkvB.js";import"./use-organization-settings-a8PuTrsa.js";import"./shell-layout-DAyf8ZZZ.js";import"./avatar-3b85MUU5.js";import"./required-auth-layout-DdFOKjMd.js";import"./use-org-sso-DvlbibgX.js";import"./integration-icon-CxxjWIPp.js";import"./use-navigate-to-agent-Qyyx-mm9.js";import"./use-connection-Bj1m8ynL.js";import"./use-mcp-prompts-BwQLmLZi.js";import"./form-xYXw--Kt.js";import"./label-NJtv9Xrj.js";import"./input-DntqEqec.js";import"./select-DeFnLWdd.js";import"./switch-ZSF60LRT.js";import"./index-CCbaPbk-.js";import"./drawer-_RQmWfAo.js";import"./collection-search-B-ZTg2tB.js";import"./tabs-CVnN0f33.js";import"./toggle-group-C7SpEcqz.js";import"./sortable.esm-DdDX2lbe.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-By0LggNB.js";import"./use-registry-connections-DZ1G13oh.js";import"./useInfiniteQuery-D-pnegbi.js";import"./use-infinite-scroll-CCIuAqs7.js";import"./extract-connection-data-qW230rJb.js";import"./card-D0ElZuSJ.js";import"./collection-tabs-7m5XLASC.js";import"./badge-CBy4Rm2Q.js";import"./textarea-Fs50NfWG.js";import"./connection-form-helpers-DeSC5iva.js";import"./authenticate-and-persist-oauth-D2tM_mGL.js";import"./mcp-oauth-BTUV7ht5.js";import"./useSuspenseInfiniteQuery-_rNdlYkE.js";import"./connect-desktop-dialog-JUjDMHMz.js";import"./decopilot-DBiOjpCq.js";import"./checkbox-UCOb4UyX.js";import"./skeleton-DUdp3Kvb.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BXkrjyua.js";import"./popover-DmLzbFpk.js";import"./command-CKe7nBfr.js";import"./index-Benu0NlA.js";import"./dropdown-menu-CppAWsT_.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DMne2oqE.js";import"./empty-state-CfAeMInj.js";import"./toolbar-Dp05iiiH.js";import"./preview-dialog-XKGBZobL.js";import"./index-uKLTzwtC.js";import"./use-mcp-tools-ChlFTYss.js";import"./use-capability-OLvFRh1U.js";import"./shell-route-loading-44H3A_LH.js";import"./index-C6ZVo7HH.js";import"./alert-dialog-D5KOx-3H.js";import"./use-debounced-autosave-OpSLLz7d.js";import"./index-D7pI5IpD.js";import"./sidebar-D5TdEONj.js";import"./search-input-SieA9wsp.js";import"./github-repo-picker-B1nNLNvt.js";import"./use-secrets-GRgGPWUb.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-k-q_tsqg.js";import"./automation-runs-_FCeac3K.js";import"./table-CAdy-hg6.js";import"./use-members-9pMsaLP9.js";import"./use-org-auth-client-CtaccGLo.js";import"./task-status-CtOjrZ5U.js";import"./use-automations-Ca6VluJ_.js";import"./use-file-configs-aDA6u1U_.js";import"./monaco-editor-BS1tOSHv.js";import"./select-model-DmLcnpxY.js";import"./automation-list-row-BKx-xx1i.js";function ti(u){const t=it.c(46),{open:N,onOpenChange:P,orgSlug:Q,virtualMcpId:U,branch:W,decofile:G,meta:s,target:m,onSaved:X}=u,o=lt(G,m,s),k=m.kind==="site"?"site":m.pageKey,[Y,Z]=E.useState(k),[tt,i]=E.useState(null),[J,g]=E.useState(void 0),[x,y]=E.useState(0);Y!==k&&(Z(k),i(null),g(void 0),y(wt));const{persistSeo:a,persistRawSeo:I,flush:K,isPending:D}=ct({orgSlug:Q,virtualMcpId:U,branch:W,target:m,resolved:o,onSaved:X}),w=m.kind==="page",ot=w?o?.rawSeoData:void 0,v=J!==void 0?J:ot,et=w?dt(v)??void 0:void 0,h=tt??et??o?.seoData??{},p=o?St(h,o):null,n=p&&(!w||ft(v))?xt(p,s):null,_=m.kind==="page"?ut(G,s)?.seoData??void 0:void 0;let j;t[0]!==s?(j=vt(s),t[0]=s,t[1]=j):j=t[1];const M=j;let R;t[2]!==a||t[3]!==o||t[4]!==i?(R=r=>{if(!o)return;const L=r;i(L),a(L)},t[2]=a,t[3]=o,t[4]=i,t[5]=R):R=t[5];const V=R;let F;t[6]!==K||t[7]!==P?(F=r=>{r||K(),P(r)},t[6]=K,t[7]=P,t[8]=F):F=t[8];const z=F,A=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,B=m.kind==="site"&&o&&n,H=m.kind==="site"?"No site-level SEO block found.":o?"SEO schema not found for this page.":"Could not load page SEO.";let C;t[9]!==i?(C=()=>i(null),t[9]=i,t[10]=C):C=t[10];const $=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const q=O;let l;t[13]!==A?(l=e.jsx(mt,{className:"text-sm font-semibold",children:A}),t[13]=A,t[14]=l):l=t[14];let c;t[15]!==D?(c=D&&e.jsx(rt,{size:14,className:"animate-spin text-muted-foreground"}),t[15]=D,t[16]=c):c=t[16];let d;t[17]!==l||t[18]!==c?(d=e.jsxs(pt,{className:"px-4 py-3 border-b flex-row items-center justify-between space-y-0",children:[l,c]}),t[17]=l,t[18]=c,t[19]=d):d=t[19];let S;t[20]!==p||t[21]!==q||t[22]!==$||t[23]!==M||t[24]!==v||t[25]!==h||t[26]!==H||t[27]!==x||t[28]!==V||t[29]!==I||t[30]!==a||t[31]!==o||t[32]!==n||t[33]!==i||t[34]!==g||t[35]!==T||t[36]!==B||t[37]!==_?(S=!o||!T&&!B?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:H}):e.jsx(nt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"mx-auto max-w-sm",children:T?e.jsx(ht,{rawSeo:v,innerSeo:h,defaultResolveType:M,seoSchema:n,activeResolveType:p,seoTypeOptions:o.seoTypeOptions,formResetKey:x,siteDefaultSeo:_,onPersistRaw:r=>{g(r),I(r)},onInnerChange:r=>{i(r),a(r)},onClearForm:$,onBumpFormKey:q}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:V})})})}),t[20]=p,t[21]=q,t[22]=$,t[23]=M,t[24]=v,t[25]=h,t[26]=H,t[27]=x,t[28]=V,t[29]=I,t[30]=a,t[31]=o,t[32]=n,t[33]=i,t[34]=g,t[35]=T,t[36]=B,t[37]=_,t[38]=S):S=t[38];let f;t[39]!==d||t[40]!==S?(f=e.jsxs(st,{side:"right",className:"w-[400px] sm:max-w-[440px] p-0 gap-0",children:[d,S]}),t[39]=d,t[40]=S,t[41]=f):f=t[41];let b;return t[42]!==z||t[43]!==N||t[44]!==f?(b=e.jsx(at,{open:N,onOpenChange:z,children:f}),t[42]=z,t[43]=N,t[44]=f,t[45]=b):b=t[45],b}function yt(u){return u+1}function wt(u){return u+1}export{ti as SeoSheet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as K,j as l,B as W,r as X,l as Z}from"./index-DILk6pqr.js";import{t as ee}from"./ChevronDown-BVJUps1_.js";import{n as te}from"./LinkExternal01-B9RsD2Us.js";import{Y as oe}from"./agent-icon-CKGTD-zQ.js";import{f as le,h as se,e as re}from"./scroll-area-CN3_YfBC.js";import{I as q}from"./input-DntqEqec.js";import{L as G}from"./label-NJtv9Xrj.js";import{M as ie}from"./automation-runs-_FCeac3K.js";import{T as ae}from"./textarea-Fs50NfWG.js";import{as as ne,at as me,au as pe,av as ce,aw as fe,ax as ue}from"./index-Yqaph2kh.js";import{u as de,s as U,I as ge,R as xe,A as he}from"./primitives-pW0ukQfP.js";import{S as ye}from"./save-status-DIZcxleS.js";import{a as ve,B as je,b as be}from"./block-document-BFMWdkuR.js";import"./AlertCircle-qY5ngKLr.js";import"./Tool01-hxrY31T7.js";import"./SwitchHorizontal01-CrHLIeRP.js";import"./Settings02-Dd9sO-oW.js";import"./XCircle-BLfqcVud.js";import"./ArrowUpRight-C7uYzZ0Z.js";import"./ZapSquare-iu6ldaYZ.js";import"./Users03-BZYHqQGQ.js";import"./CheckCircle-CNYYpNQm.js";import"./ChevronUp-CKICjFfX.js";import"./ChevronLeft-CCp89cqe.js";import"./ChevronRight-MnjJHQHy.js";import"./DotsVertical-Bl5GcKp2.js";import"./Stars02-DHcW8N80.js";import"./Eye-C6daRddp.js";import"./ZoomOut-6aWLXLSs.js";import"./Globe01-CgHdNpOL.js";import"./FilterLines-B_0u5HAa.js";import"./Star01-Be_MjtDZ.js";import"./Globe04-DEangwXD.js";import"./HardDrive-V1dbAXdv.js";import"./Key01-B0h1bFlR.js";import"./LayoutLeft-BsVzrTOG.js";import"./Monitor01-DAM-u2R2.js";import"./Sun-DO_Gt4P2.js";import"./Palette-DT8p7ZEl.js";import"./Play-Blum-MoR.js";import"./Plus-DfIcHYEj.js";import"./SearchMd-B6GaXN7Q.js";import"./Shield01-DLANpVD0.js";import"./Stars01-D3ha2IeY.js";import"./Trash01-DGJ-LjB-.js";import"./Upload01-CzOJ3UuD.js";import"./User01-DR_UC5XH.js";import"./Users01-cxH39exM.js";import"./XClose-4ak3u3qT.js";import"./X-CXRx6PGX.js";import"./Zap-DVtX-UPi.js";import"./use-clock-tick-CWHp6nCX.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CuQAt0Vj.js";import"./tooltip-DNJ6cRlV.js";import"./file-type-icon-CdZyaTKH.js";import"./dialog-CwfeALzq.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-CsHe6BgD.js";import"./use-mcp-client-BdmHrvF5.js";import"./auth-B4fF5n_6.js";import"./chat-context-SWJ_FDEf.js";import"./hooks-CLt3SUb8.js";import"./decopilot-sse-pool-Cd7s5cwH.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-OPb4DVO0.js";import"./use-collections-D0HN84Lz.js";import"./use-ai-providers-CVKwKs8r.js";import"./studio-tools-DWzikkvB.js";import"./use-organization-settings-a8PuTrsa.js";import"./shell-layout-DAyf8ZZZ.js";import"./avatar-3b85MUU5.js";import"./required-auth-layout-DdFOKjMd.js";import"./use-org-sso-DvlbibgX.js";import"./sheet-CgvO6KT7.js";import"./integration-icon-CxxjWIPp.js";import"./use-navigate-to-agent-Qyyx-mm9.js";import"./use-connection-Bj1m8ynL.js";import"./use-mcp-prompts-BwQLmLZi.js";import"./form-xYXw--Kt.js";import"./select-DeFnLWdd.js";import"./useInfiniteQuery-D-pnegbi.js";import"./use-infinite-scroll-CCIuAqs7.js";import"./card-D0ElZuSJ.js";import"./table-CAdy-hg6.js";import"./empty-state-CfAeMInj.js";import"./use-members-9pMsaLP9.js";import"./use-org-auth-client-CtaccGLo.js";import"./task-status-CtOjrZ5U.js";import"./use-automations-Ca6VluJ_.js";import"./useSuspenseInfiniteQuery-_rNdlYkE.js";import"./badge-CBy4Rm2Q.js";import"./checkbox-UCOb4UyX.js";import"./command-CKe7nBfr.js";import"./index-Benu0NlA.js";import"./popover-DmLzbFpk.js";import"./index-CCbaPbk-.js";import"./drawer-_RQmWfAo.js";import"./collection-search-B-ZTg2tB.js";import"./tabs-CVnN0f33.js";import"./toggle-group-C7SpEcqz.js";import"./sortable.esm-DdDX2lbe.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-By0LggNB.js";import"./use-registry-connections-DZ1G13oh.js";import"./extract-connection-data-qW230rJb.js";import"./collection-tabs-7m5XLASC.js";import"./connection-form-helpers-DeSC5iva.js";import"./authenticate-and-persist-oauth-D2tM_mGL.js";import"./mcp-oauth-BTUV7ht5.js";import"./connect-desktop-dialog-JUjDMHMz.js";import"./decopilot-DBiOjpCq.js";import"./skeleton-DUdp3Kvb.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BXkrjyua.js";import"./dropdown-menu-CppAWsT_.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DMne2oqE.js";import"./toolbar-Dp05iiiH.js";import"./preview-dialog-XKGBZobL.js";import"./index-uKLTzwtC.js";import"./use-mcp-tools-ChlFTYss.js";import"./use-capability-OLvFRh1U.js";import"./shell-route-loading-44H3A_LH.js";import"./index-C6ZVo7HH.js";import"./alert-dialog-D5KOx-3H.js";import"./switch-ZSF60LRT.js";import"./use-debounced-autosave-OpSLLz7d.js";import"./index-D7pI5IpD.js";import"./sidebar-D5TdEONj.js";import"./search-input-SieA9wsp.js";import"./github-repo-picker-B1nNLNvt.js";import"./use-secrets-GRgGPWUb.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-k-q_tsqg.js";import"./use-file-configs-aDA6u1U_.js";import"./monaco-editor-BS1tOSHv.js";import"./select-model-DmLcnpxY.js";import"./automation-list-row-BKx-xx1i.js";const H=f=>typeof f=="string"?f:"",Ce=/\/blog\.tsx?$/;function Se(f){for(const[e,t]of Object.entries(f)){if(e.includes("/")||!t||typeof t!="object"||Array.isArray(t))continue;const s=t;if(typeof s.__resolveType!="string"||!Ce.test(s.__resolveType))continue;const o=H(s.pageSlug);if(o)return o}return null}function _e(f){const e=f.categories;if(!Array.isArray(e)||e.length===0)return"";const t=e[0];return H(t?.slug)}function ke(f,e){let t=f;if(/:category\??/.test(t)){if(!e.category)return null;t=t.replace(/:category\??/g,encodeURIComponent(e.category))}if(/:slug\??/.test(t)){if(!e.slug)return null;t=t.replace(/:slug\??/g,encodeURIComponent(e.slug))}return t}function Ne({decofile:f,post:e,previewBaseUrl:t}){if(!t)return null;const s=Se(f);if(!s)return null;const o=ke(s,{category:_e(e),slug:H(e.slug)});if(!o)return null;try{return new URL(o,t).href}catch{return null}}function Pe(f){return Array.isArray(f)?f.map(e=>({key:U(e?.key),value:U(e?.value)})):[]}function pl(f){const e=K.c(68),{orgSlug:t,virtualMcpId:s,branch:o,blockKey:i,block:S,decofile:m,meta:v,previewBaseUrl:x}=f;let j;e[0]!==o||e[1]!==t||e[2]!==s?(j={orgSlug:t,virtualMcpId:s,branch:o},e[0]=o,e[1]=t,e[2]=s,e[3]=j):j=e[3];const r=ne(j);let u;e[4]!==S?(u=me(S,"posts"),e[4]=S,e[5]=u):u=e[5];const d=u;let b;e[6]!==i||e[7]!==r?(b=M=>{r.mutate({blockKey:i,data:pe(i,"posts",M)})},e[6]=i,e[7]=r,e[8]=b):b=e[8];const[a,R]=de(d,b);let _;e[9]!==a||e[10]!==R?(_=(M,Q)=>R({...a,[M]:Q}),e[9]=a,e[10]=R,e[11]=_):_=e[11];const p=_;let k;e[12]!==m||e[13]!==a||e[14]!==x?(k=Ne({decofile:m,post:a,previewBaseUrl:x}),e[12]=m,e[13]=a,e[14]=x,e[15]=k):k=e[15];const h=k;let n;e[16]!==a.title?(n=U(a.title)||"Untitled post",e[16]=a.title,e[17]=n):n=e[17];let c;e[18]!==n?(c=l.jsx("span",{className:"truncate text-sm font-medium",children:n}),e[18]=n,e[19]=c):c=e[19];let g;e[20]!==r.isError||e[21]!==r.isPending?(g=l.jsx(ye,{isPending:r.isPending,isError:r.isError}),e[20]=r.isError,e[21]=r.isPending,e[22]=g):g=e[22];const C=!h,z=h?"Open the post preview in a new tab":"Set the post slug (and its category) plus the blog app's pageSlug to preview";let N;e[23]!==h?(N=()=>{h&&window.open(h,"_blank","noopener,noreferrer")},e[23]=h,e[24]=N):N=e[24];let I;e[25]===Symbol.for("react.memo_cache_sentinel")?(I=l.jsx(te,{size:14}),e[25]=I):I=e[25];let L;e[26]!==z||e[27]!==N||e[28]!==C?(L=l.jsxs(W,{type:"button",variant:"outline",size:"sm",disabled:C,title:z,onClick:N,children:[I,"See preview"]}),e[26]=z,e[27]=N,e[28]=C,e[29]=L):L=e[29];let P;e[30]!==L||e[31]!==g?(P=l.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[g,L]}),e[30]=L,e[31]=g,e[32]=P):P=e[32];let w;e[33]!==P||e[34]!==c?(w=l.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,P]}),e[33]=P,e[34]=c,e[35]=w):w=e[35];let T;e[36]!==a.title?(T=U(a.title),e[36]=a.title,e[37]=T):T=e[37];let B;e[38]!==p?(B=M=>p("title",M),e[38]=p,e[39]=B):B=e[39];let A;e[40]!==T||e[41]!==B?(A=l.jsx(ge,{value:T,onChange:B,placeholder:"Post title",className:"py-1 text-3xl font-bold text-foreground"}),e[40]=T,e[41]=B,e[42]=A):A=e[42];let E;e[43]!==m||e[44]!==a||e[45]!==p?(E=l.jsx(we,{post:a,decofile:m,onChange:p}),e[43]=m,e[44]=a,e[45]=p,e[46]=E):E=e[46];let $;e[47]===Symbol.for("react.memo_cache_sentinel")?($=l.jsx("div",{className:"mt-6 border-t"}),e[47]=$):$=e[47];let F;e[48]!==a.sections?(F=ve(a.sections),e[48]=a.sections,e[49]=F):F=e[49];let O;e[50]!==p?(O=M=>p("sections",M),e[50]=p,e[51]=O):O=e[51];let y;e[52]!==v||e[53]!==F||e[54]!==O?(y=l.jsx(je,{value:F,onChange:O,meta:v,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."}),e[52]=v,e[53]=F,e[54]=O,e[55]=y):y=e[55];let D;e[56]!==A||e[57]!==E||e[58]!==y?(D=l.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:l.jsxs("div",{className:"mx-auto max-w-3xl px-8 py-8",children:[A,E,$,y]})}),e[56]=A,e[57]=E,e[58]=y,e[59]=D):D=e[59];let V;e[60]!==w||e[61]!==D?(V=l.jsxs("div",{className:"flex h-full flex-col",children:[w,D]}),e[60]=w,e[61]=D,e[62]=V):V=e[62];let Y;return e[63]!==o||e[64]!==t||e[65]!==V||e[66]!==s?(Y=l.jsx(be,{orgSlug:t,virtualMcpId:s,branch:o,children:V}),e[63]=o,e[64]=t,e[65]=V,e[66]=s,e[67]=Y):Y=e[67],Y}function we(f){const e=K.c(69),{post:t,decofile:s,onChange:o}=f,[i,S]=X.useState(!1);let m,v;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx(oe,{size:15}),v=l.jsx("span",{className:"flex-1 text-left",children:"Post settings"}),e[0]=m,e[1]=v):(m=e[0],v=e[1]);const x=i&&"rotate-180";let j;e[2]!==x?(j=Z("transition-transform",x),e[2]=x,e[3]=j):j=e[3];let r;e[4]!==j?(r=l.jsx(le,{asChild:!0,children:l.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm text-muted-foreground transition-colors hover:bg-muted hover:text-foreground cursor-pointer",children:[m,v,l.jsx(ee,{size:15,className:j})]})}),e[4]=j,e[5]=r):r=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsx(G,{htmlFor:"post-excerpt",children:"Excerpt"}),e[6]=u):u=e[6];let d;e[7]!==t.excerpt?(d=U(t.excerpt),e[7]=t.excerpt,e[8]=d):d=e[8];let b;e[9]!==o?(b=y=>o("excerpt",y.target.value),e[9]=o,e[10]=b):b=e[10];let a;e[11]!==d||e[12]!==b?(a=l.jsxs("div",{className:"space-y-2",children:[u,l.jsx(ae,{id:"post-excerpt",value:d,onChange:b,rows:2})]}),e[11]=d,e[12]=b,e[13]=a):a=e[13];let R;e[14]===Symbol.for("react.memo_cache_sentinel")?(R=l.jsx(G,{htmlFor:"post-slug",children:"Slug"}),e[14]=R):R=e[14];let _;e[15]!==t.slug?(_=U(t.slug),e[15]=t.slug,e[16]=_):_=e[16];let p;e[17]!==o?(p=y=>o("slug",y.target.value),e[17]=o,e[18]=p):p=e[18];let k;e[19]!==_||e[20]!==p?(k=l.jsxs("div",{className:"space-y-2",children:[R,l.jsx(q,{id:"post-slug",value:_,onChange:p,placeholder:"my-post",className:"h-10"})]}),e[19]=_,e[20]=p,e[21]=k):k=e[21];let h;e[22]===Symbol.for("react.memo_cache_sentinel")?(h={type:"string",format:"date",title:"Date"},e[22]=h):h=e[22];let n;e[23]!==t.date?(n=U(t.date),e[23]=t.date,e[24]=n):n=e[24];let c;e[25]!==o?(c=y=>o("date",y),e[25]=o,e[26]=c):c=e[26];let g;e[27]!==n||e[28]!==c?(g=l.jsx(ue,{schema:h,value:n,onChange:c,path:"post-date",label:"Date"}),e[27]=n,e[28]=c,e[29]=g):g=e[29];let C;e[30]!==k||e[31]!==g?(C=l.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[k,g]}),e[30]=k,e[31]=g,e[32]=C):C=e[32];let z;e[33]===Symbol.for("react.memo_cache_sentinel")?(z={type:"string",format:"image-uri",title:"Cover image"},e[33]=z):z=e[33];let N;e[34]!==o?(N=y=>o("image",y),e[34]=o,e[35]=N):N=e[35];let I;e[36]!==t.image||e[37]!==N?(I=l.jsx(ce,{schema:z,value:t.image,onChange:N,path:"post-image",label:"Cover image"}),e[36]=t.image,e[37]=N,e[38]=I):I=e[38];let L;e[39]===Symbol.for("react.memo_cache_sentinel")?(L=["email"],e[39]=L):L=e[39];let P;e[40]!==o?(P=y=>o("authors",y),e[40]=o,e[41]=P):P=e[41];let w;e[42]!==s||e[43]!==t.authors||e[44]!==P?(w=l.jsx(J,{label:"Authors",decofile:s,kind:"authors",valueField:"email",extraFields:L,selected:t.authors,onChange:P}),e[42]=s,e[43]=t.authors,e[44]=P,e[45]=w):w=e[45];let T;e[46]===Symbol.for("react.memo_cache_sentinel")?(T=["slug"],e[46]=T):T=e[46];let B;e[47]!==o?(B=y=>o("categories",y),e[47]=o,e[48]=B):B=e[48];let A;e[49]!==s||e[50]!==t.categories||e[51]!==B?(A=l.jsx(J,{label:"Categories",decofile:s,kind:"categories",valueField:"slug",extraFields:T,selected:t.categories,onChange:B}),e[49]=s,e[50]=t.categories,e[51]=B,e[52]=A):A=e[52];let E;e[53]!==o?(E=y=>o("extraProps",y),e[53]=o,e[54]=E):E=e[54];let $;e[55]!==t.extraProps||e[56]!==E?($=l.jsx(Be,{value:t.extraProps,onChange:E}),e[55]=t.extraProps,e[56]=E,e[57]=$):$=e[57];let F;e[58]!==C||e[59]!==I||e[60]!==w||e[61]!==A||e[62]!==$||e[63]!==a?(F=l.jsxs(se,{className:"space-y-5 px-2 pt-4",children:[a,C,I,w,A,$]}),e[58]=C,e[59]=I,e[60]=w,e[61]=A,e[62]=$,e[63]=a,e[64]=F):F=e[64];let O;return e[65]!==i||e[66]!==F||e[67]!==r?(O=l.jsxs(re,{open:i,onOpenChange:S,className:"mt-4",children:[r,F]}),e[65]=i,e[66]=F,e[67]=r,e[68]=O):O=e[68],O}function Be(f){const e=K.c(15),{value:t,onChange:s}=f;let o,i,S,m;if(e[0]!==s||e[1]!==t){o=Pe(t);const j=(r,u)=>s(o.map((d,b)=>b===r?{...d,...u}:d));i="space-y-2",e[6]===Symbol.for("react.memo_cache_sentinel")?(S=l.jsx(G,{children:"Extra props"}),e[6]=S):S=e[6],m=o.length>0&&l.jsx("ul",{className:"space-y-2",children:o.map((r,u)=>l.jsxs("li",{className:"group/item flex items-center gap-2",children:[l.jsx(q,{value:r.key,onChange:d=>j(u,{key:d.target.value}),placeholder:"key",className:"h-9 flex-1"}),l.jsx(q,{value:r.value,onChange:d=>j(u,{value:d.target.value}),placeholder:"value",className:"h-9 flex-1"}),l.jsx(xe,{label:"Remove prop",onClick:()=>s(o.filter((d,b)=>b!==u))})]},u))}),e[0]=s,e[1]=t,e[2]=o,e[3]=i,e[4]=S,e[5]=m}else o=e[2],i=e[3],S=e[4],m=e[5];let v;e[7]!==o||e[8]!==s?(v=l.jsx(he,{label:"Add prop",onClick:()=>s([...o,{key:"",value:""}])}),e[7]=o,e[8]=s,e[9]=v):v=e[9];let x;return e[10]!==i||e[11]!==S||e[12]!==m||e[13]!==v?(x=l.jsxs("div",{className:i,children:[S,m,v]}),e[10]=i,e[11]=S,e[12]=m,e[13]=v,e[14]=x):x=e[14],x}function J(f){const e=K.c(31),{label:t,decofile:s,kind:o,valueField:i,extraFields:S,selected:m,onChange:v}=f;let x,j,r;if(e[0]!==s||e[1]!==o||e[2]!==i){x=fe(s,o);let h;e[6]!==i?(h=(c,g)=>U(c[i])||g,e[6]=i,e[7]=h):h=e[7],r=h;let n;e[8]!==r?(n=c=>{const{key:g,payload:C}=c;return{value:r(C,g),label:U(C.name)||r(C,g)}},e[8]=r,e[9]=n):n=e[9],j=x.map(n),e[0]=s,e[1]=o,e[2]=i,e[3]=x,e[4]=j,e[5]=r}else x=e[3],j=e[4],r=e[5];const u=j;let d;if(e[10]!==m||e[11]!==i){const h=Array.isArray(m)?m:[];let n;e[13]!==i?(n=c=>U(c[i]),e[13]=i,e[14]=n):n=e[14],d=h.map(n).filter(Boolean),e[10]=m,e[11]=i,e[12]=d}else d=e[12];const b=d;let a;e[15]!==S||e[16]!==v||e[17]!==x||e[18]!==i||e[19]!==r?(a=h=>{v(h.map(n=>{const c=x.find(C=>{const{key:z,payload:N}=C;return r(N,z)===n});if(!c)return{name:n,[i]:n};const g={name:U(c.payload.name)};for(const C of S)g[C]=c.payload[C]??n;return g}))},e[15]=S,e[16]=v,e[17]=x,e[18]=i,e[19]=r,e[20]=a):a=e[20];const R=a;let _;e[21]!==t?(_=l.jsx(G,{children:t}),e[21]=t,e[22]=_):_=e[22];let p;e[23]!==b||e[24]!==R||e[25]!==t||e[26]!==u?(p=u.length===0?l.jsxs("p",{className:"text-xs text-muted-foreground",children:["No ",t.toLowerCase()," yet — create some in the"," ",t.toLowerCase()," collection."]}):l.jsx(ie,{options:u,defaultValue:b,onValueChange:R,placeholder:`Select ${t.toLowerCase()}`,maxCount:4}),e[23]=b,e[24]=R,e[25]=t,e[26]=u,e[27]=p):p=e[27];let k;return e[28]!==_||e[29]!==p?(k=l.jsxs("div",{className:"space-y-2",children:[_,p]}),e[28]=_,e[29]=p,e[30]=k):k=e[30],k}export{pl as PostEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as V,j as t,a as T,G as R,ae as q,I as B,s as N,t as I}from"./index-DILk6pqr.js";import{P as L}from"./index-D7pI5IpD.js";import{A as G}from"./avatar-3b85MUU5.js";import{S as D}from"./switch-ZSF60LRT.js";import{d as U,b as Y,a as $,S as K}from"./select-DeFnLWdd.js";import{T as O,a as z}from"./toggle-group-C7SpEcqz.js";import{I as H}from"./input-DntqEqec.js";import{i as J}from"./Monitor01-DAM-u2R2.js";import{n as M,a as Q}from"./Sun-DO_Gt4P2.js";import{i as W}from"./Play-Blum-MoR.js";import{u as X}from"./use-debounced-autosave-OpSLLz7d.js";import{p as Z,q as ee}from"./question-004-sINsf4GQ.js";import"./index-B7l76Ktp.js";import{c as te,b as A,S as E,a as F}from"./settings-section-BXkrjyua.js";import"./sidebar-D5TdEONj.js";import"./LayoutLeft-BsVzrTOG.js";import"./tooltip-DNJ6cRlV.js";import"./sheet-CgvO6KT7.js";import"./X-CXRx6PGX.js";import"./User01-DR_UC5XH.js";import"./ChevronUp-CKICjFfX.js";import"./ChevronDown-BVJUps1_.js";import"./card-D0ElZuSJ.js";import"./ArrowUpRight-C7uYzZ0Z.js";function se(){const e=V.c(19),{data:s,isPending:o}=T.useSession(),v=s?.user,p=v?.image,h=v?.name??"";let S;e[0]!==h?(S={values:{name:h}},e[0]=h,e[1]=S):S=e[1];const n=R(S);let _;e[2]!==n?(_={save:async()=>{const g=n.control._formState.dirtyFields;if(Object.keys(g).length===0)return;const r=n.getValues(),f=n.control._defaultValues;n.reset(r,{keepValues:!0});try{await T.updateUser({name:r.name}),N("profile_updated",{fields:["name"]}),I.success("Profile updated successfully")}catch{n.reset(f,{keepValues:!0}),I.error("Failed to update profile")}}},e[2]=n,e[3]=_):_=e[3];const{schedule:x,flush:d}=X(_);if(o)return null;const j=v?.name??"U";let i;e[4]!==j||e[5]!==p?(i=t.jsx(A,{title:"Avatar",action:t.jsx(G,{url:p,fallback:j,shape:"circle",size:"base"})}),e[4]=j,e[5]=p,e[6]=i):i=e[6];let l;e[7]!==d||e[8]!==x?(l=g=>{const{field:r}=g;return t.jsx(H,{id:"display-name",...r,onChange:f=>{r.onChange(f),x()},onBlur:()=>{r.onBlur(),d()},onKeyDown:f=>{f.key==="Enter"&&d()},placeholder:"Your name",className:"w-[280px]"})},e[7]=d,e[8]=x,e[9]=l):l=e[9];let m;e[10]!==n.control||e[11]!==l?(m=t.jsx(A,{title:"Display name",action:t.jsx(q,{control:n.control,name:"name",render:l})}),e[10]=n.control,e[11]=l,e[12]=m):m=e[12];const b=v?.email;let a;e[13]!==b?(a=t.jsx(A,{title:"Email",action:t.jsx("span",{className:"text-sm text-muted-foreground",children:b})}),e[13]=b,e[14]=a):a=e[14];let u;return e[15]!==i||e[16]!==m||e[17]!==a?(u=t.jsx(E,{children:t.jsxs(F,{children:[i,m,a]})}),e[15]=i,e[16]=m,e[17]=a,e[18]=u):u=e[18],u}function oe(){const e=V.c(48),[s,o]=B();let v;e[0]!==o?(v=async c=>{if(c&&await Notification.requestPermission()!=="granted"){N("preferences_notifications_permission_denied"),I.error("Notifications denied. Please enable them in your browser settings."),o(ae);return}N("preferences_notifications_toggled",{enabled:c}),o(y=>({...y,enableNotifications:c}))},e[0]=o,e[1]=v):v=e[1];const p=v;let h;e[2]!==o?(h=c=>{c&&(N("preferences_theme_changed",{to_value:c}),o(y=>({...y,theme:c})))},e[2]=o,e[3]=h):h=e[3];let S;e[4]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(z,{value:"light","aria-label":"Light theme",children:t.jsx(M,{size:14})}),e[4]=S):S=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(z,{value:"dark","aria-label":"Dark theme",children:t.jsx(Q,{size:14})}),e[5]=n):n=e[5];let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(z,{value:"system","aria-label":"System theme",children:t.jsx(J,{size:14})}),e[6]=_):_=e[6];let x;e[7]!==s.theme||e[8]!==h?(x=t.jsx(A,{title:"Theme",description:"Your preferred color scheme.",action:t.jsxs(O,{type:"single",size:"sm",variant:"outline",value:s.theme,onValueChange:h,children:[S,n,_]})}),e[7]=s.theme,e[8]=h,e[9]=x):x=e[9];let d;e[10]!==p||e[11]!==s.enableNotifications?(d=typeof Notification<"u"?()=>p(!s.enableNotifications):void 0,e[10]=p,e[11]=s.enableNotifications,e[12]=d):d=e[12];let j;e[13]!==p||e[14]!==s.enableNotifications?(j=t.jsx(D,{disabled:typeof Notification>"u",checked:s.enableNotifications,onCheckedChange:p}),e[13]=p,e[14]=s.enableNotifications,e[15]=j):j=e[15];let i;e[16]!==d||e[17]!==j?(i=t.jsx(A,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:d,action:j}),e[16]=d,e[17]=j,e[18]=i):i=e[18];let l;e[19]!==s.enableSounds||e[20]!==o?(l=()=>{N("preferences_sounds_toggled",{enabled:!s.enableSounds}),o(le)},e[19]=s.enableSounds,e[20]=o,e[21]=l):l=e[21];let m;e[22]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("button",{type:"button","aria-label":"Preview notification sound",onClick:ne,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:t.jsx(W,{size:11})}),e[22]=m):m=e[22];let b;e[23]!==o?(b=c=>{N("preferences_sounds_toggled",{enabled:c}),o(y=>({...y,enableSounds:c}))},e[23]=o,e[24]=b):b=e[24];let a;e[25]!==s.enableSounds||e[26]!==b?(a=t.jsxs("div",{className:"flex items-center gap-2",children:[m,t.jsx(D,{checked:s.enableSounds,onCheckedChange:b})]}),e[25]=s.enableSounds,e[26]=b,e[27]=a):a=e[27];let u;e[28]!==a||e[29]!==l?(u=t.jsx(A,{title:"Sounds",description:"Play sounds for agent actions and notifications.",onClick:l,action:a}),e[28]=a,e[29]=l,e[30]=u):u=e[30];let g;e[31]!==o?(g=c=>{N("preferences_tool_approval_changed",{to_value:c}),o(y=>({...y,toolApprovalLevel:c}))},e[31]=o,e[32]=g):g=e[32];let r;e[33]!==s.toolApprovalLevel?(r={readonly:"Ask before edit",auto:"Auto approve"}[s.toolApprovalLevel]??"Ask before edit",e[33]=s.toolApprovalLevel,e[34]=r):r=e[34];let f;e[35]!==r?(f=t.jsx(Y,{className:"w-36 h-7 text-xs",children:t.jsx("span",{children:r})}),e[35]=r,e[36]=f):f=e[36];let C;e[37]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx($,{value:"readonly",textValue:"Ask before edit",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Ask before edit"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[37]=C):C=e[37];let k;e[38]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsxs(K,{children:[C,t.jsx($,{value:"auto",textValue:"Auto approve",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Auto approve"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all without approval"})]})})]}),e[38]=k):k=e[38];let P;e[39]!==s.toolApprovalLevel||e[40]!==g||e[41]!==f?(P=t.jsx(A,{title:"Tool Approval",description:"Control how tools are approved before execution.",action:t.jsxs(U,{value:s.toolApprovalLevel,onValueChange:g,children:[f,k]})}),e[39]=s.toolApprovalLevel,e[40]=g,e[41]=f,e[42]=P):P=e[42];let w;return e[43]!==u||e[44]!==P||e[45]!==x||e[46]!==i?(w=t.jsx(E,{title:"Preferences",children:t.jsxs(F,{children:[x,i,u,P]})}),e[43]=u,e[44]=P,e[45]=x,e[46]=i,e[47]=w):w=e[47],w}function ne(){N("preferences_sounds_previewed"),Z(ee.dataUri).catch(ie)}function ie(){}function le(e){return{...e,enableSounds:!e.enableSounds}}function ae(e){return{...e,enableNotifications:!1}}function re(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(L,{children:t.jsx(L.Content,{children:t.jsx(L.Body,{children:t.jsxs(te,{children:[t.jsx(L.Title,{children:"Profile & Preferences"}),t.jsx(se,{}),t.jsx(oe,{})]})})})}),e[0]=s):s=e[0],s}function Ie(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(re,{}),e[0]=s):s=e[0],s}export{Ie as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as $,w as H,j as A}from"./index-DILk6pqr.js";import{l as L,g as E,s as y}from"./scroll-area-CN3_YfBC.js";import{p as O,u as k}from"./use-mcp-client-BdmHrvF5.js";import{b as q,c as B}from"./use-mcp-tools-ChlFTYss.js";import{u as Y}from"./index-Yqaph2kh.js";import{c as G}from"./content-blocks-o63cs2vh.js";import{g as K,M as V,a as D}from"./types-CsHe6BgD.js";import{u as z,b as F}from"./chat-context-SWJ_FDEf.js";import{b as J}from"./shell-layout-DAyf8ZZZ.js";import"./agent-icon-CKGTD-zQ.js";import"./AlertCircle-qY5ngKLr.js";import"./Tool01-hxrY31T7.js";import"./SwitchHorizontal01-CrHLIeRP.js";import"./Settings02-Dd9sO-oW.js";import"./XCircle-BLfqcVud.js";import"./ArrowUpRight-C7uYzZ0Z.js";import"./ZapSquare-iu6ldaYZ.js";import"./Users03-BZYHqQGQ.js";import"./CheckCircle-CNYYpNQm.js";import"./ChevronUp-CKICjFfX.js";import"./ChevronDown-BVJUps1_.js";import"./ChevronLeft-CCp89cqe.js";import"./ChevronRight-MnjJHQHy.js";import"./DotsVertical-Bl5GcKp2.js";import"./Stars02-DHcW8N80.js";import"./Eye-C6daRddp.js";import"./ZoomOut-6aWLXLSs.js";import"./Globe01-CgHdNpOL.js";import"./FilterLines-B_0u5HAa.js";import"./Star01-Be_MjtDZ.js";import"./Globe04-DEangwXD.js";import"./HardDrive-V1dbAXdv.js";import"./Key01-B0h1bFlR.js";import"./LayoutLeft-BsVzrTOG.js";import"./LinkExternal01-B9RsD2Us.js";import"./Monitor01-DAM-u2R2.js";import"./Sun-DO_Gt4P2.js";import"./Palette-DT8p7ZEl.js";import"./Play-Blum-MoR.js";import"./Plus-DfIcHYEj.js";import"./SearchMd-B6GaXN7Q.js";import"./Shield01-DLANpVD0.js";import"./Stars01-D3ha2IeY.js";import"./Trash01-DGJ-LjB-.js";import"./Upload01-CzOJ3UuD.js";import"./User01-DR_UC5XH.js";import"./Users01-cxH39exM.js";import"./XClose-4ak3u3qT.js";import"./X-CXRx6PGX.js";import"./Zap-DVtX-UPi.js";import"./use-clock-tick-CWHp6nCX.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CuQAt0Vj.js";import"./tooltip-DNJ6cRlV.js";import"./file-type-icon-CdZyaTKH.js";import"./dialog-CwfeALzq.js";import"./tab-id-BptcWVWa.js";import"./hooks-CLt3SUb8.js";import"./decopilot-sse-pool-Cd7s5cwH.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-DWzikkvB.js";import"./sheet-CgvO6KT7.js";import"./integration-icon-CxxjWIPp.js";import"./use-virtual-mcp-OPb4DVO0.js";import"./use-collections-D0HN84Lz.js";import"./use-navigate-to-agent-Qyyx-mm9.js";import"./use-connection-Bj1m8ynL.js";import"./use-mcp-prompts-BwQLmLZi.js";import"./form-xYXw--Kt.js";import"./label-NJtv9Xrj.js";import"./input-DntqEqec.js";import"./select-DeFnLWdd.js";import"./auth-B4fF5n_6.js";import"./index-CCbaPbk-.js";import"./drawer-_RQmWfAo.js";import"./collection-search-B-ZTg2tB.js";import"./tabs-CVnN0f33.js";import"./toggle-group-C7SpEcqz.js";import"./sortable.esm-DdDX2lbe.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-By0LggNB.js";import"./use-registry-connections-DZ1G13oh.js";import"./use-organization-settings-a8PuTrsa.js";import"./useInfiniteQuery-D-pnegbi.js";import"./use-infinite-scroll-CCIuAqs7.js";import"./extract-connection-data-qW230rJb.js";import"./card-D0ElZuSJ.js";import"./collection-tabs-7m5XLASC.js";import"./badge-CBy4Rm2Q.js";import"./textarea-Fs50NfWG.js";import"./connection-form-helpers-DeSC5iva.js";import"./authenticate-and-persist-oauth-D2tM_mGL.js";import"./mcp-oauth-BTUV7ht5.js";import"./useSuspenseInfiniteQuery-_rNdlYkE.js";import"./use-ai-providers-CVKwKs8r.js";import"./connect-desktop-dialog-JUjDMHMz.js";import"./decopilot-DBiOjpCq.js";import"./checkbox-UCOb4UyX.js";import"./skeleton-DUdp3Kvb.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-3b85MUU5.js";import"./settings-section-BXkrjyua.js";import"./popover-DmLzbFpk.js";import"./command-CKe7nBfr.js";import"./index-Benu0NlA.js";import"./dropdown-menu-CppAWsT_.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DMne2oqE.js";import"./empty-state-CfAeMInj.js";import"./toolbar-Dp05iiiH.js";import"./preview-dialog-XKGBZobL.js";import"./index-uKLTzwtC.js";import"./use-capability-OLvFRh1U.js";import"./shell-route-loading-44H3A_LH.js";import"./index-C6ZVo7HH.js";import"./alert-dialog-D5KOx-3H.js";import"./switch-ZSF60LRT.js";import"./use-debounced-autosave-OpSLLz7d.js";import"./index-D7pI5IpD.js";import"./sidebar-D5TdEONj.js";import"./search-input-SieA9wsp.js";import"./github-repo-picker-B1nNLNvt.js";import"./use-secrets-GRgGPWUb.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-k-q_tsqg.js";import"./automation-runs-_FCeac3K.js";import"./table-CAdy-hg6.js";import"./use-members-9pMsaLP9.js";import"./use-org-auth-client-CtaccGLo.js";import"./task-status-CtOjrZ5U.js";import"./use-automations-Ca6VluJ_.js";import"./use-file-configs-aDA6u1U_.js";import"./monaco-editor-BS1tOSHv.js";import"./select-model-DmLcnpxY.js";import"./automation-list-row-BKx-xx1i.js";import"./required-auth-layout-DdFOKjMd.js";import"./use-org-sso-DvlbibgX.js";const Q={};function W(S){const t=$.c(37),{client:r,resourceURI:h,tool:o,connectionId:p,orgId:l,args:M}=S,{sendMessage:I}=z(),{setAppContext:u,clearAppContext:n}=F(),{setChatOpen:f,openTab:g}=J(),e=`${p}:${o.name}`;let a;t[0]!==g?(a=C=>C==="inline"?(g("0"),"inline"):"fullscreen",t[0]=g,t[1]=a):a=t[1];const m=a,s=M??Q;let c;t[2]!==r||t[3]!==o.name||t[4]!==s?(c={client:r,toolName:o.name,toolArguments:s},t[2]=r,t[3]=o.name,t[4]=s,t[5]=c):c=t[5];const{data:i}=B(c);let x;if(t[6]!==o._meta||t[7]!==o.name){const C=E(o._meta);x=y(o.name,C),t[6]=o._meta,t[7]=o.name,t[8]=x}else x=t[8];const U=x;let d;t[9]!==o.inputSchema?(d=o.inputSchema??{type:"object"},t[9]=o.inputSchema,t[10]=d):d=t[10];let N;t[11]!==U||t[12]!==d||t[13]!==o?(N={...o,name:U,inputSchema:d},t[11]=U,t[12]=d,t[13]=o,t[14]=N):N=t[14];const b=N;let _;t[15]!==I||t[16]!==f?(_=C=>{const w=G(C.content);w.content.length>0&&(f(!0),I({tiptapDoc:w}))},t[15]=I,t[16]=f,t[17]=_):_=t[17];const j=_;let P;t[18]!==b?(P={tool:b},t[18]=b,t[19]=P):P=t[19];let T;t[20]!==u||t[21]!==e?(T=C=>u(e,C),t[20]=u,t[21]=e,t[22]=T):T=t[22];let R;t[23]!==n||t[24]!==e?(R=()=>n(e),t[23]=n,t[24]=e,t[25]=R):R=t[25];let v;return t[26]!==r||t[27]!==j||t[28]!==m||t[29]!==l||t[30]!==h||t[31]!==P||t[32]!==T||t[33]!==R||t[34]!==s||t[35]!==i?(v=A.jsx(V,{resourceURI:h,orgId:l,toolInfo:P,toolInput:s,toolResult:i,displayMode:"fullscreen",minHeight:D.fullscreen.minHeight,maxHeight:D.fullscreen.maxHeight,client:r,onMessage:j,onUpdateModelContext:T,onTeardown:R,onRequestDisplayMode:m,className:"h-full"}),t[26]=r,t[27]=j,t[28]=m,t[29]=l,t[30]=h,t[31]=P,t[32]=T,t[33]=R,t[34]=s,t[35]=i,t[36]=v):v=t[36],v}function Se(S){const t=$.c(24),{connectionId:r,toolName:h,args:o}=S,{org:p}=H(),l=Y();let M;t[0]!==r||t[1]!==l?(M=O(r)&&l.vmEntry?.sandboxProviderKind==="user-desktop"&&l.previewUrl?`${l.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=r,t[1]=l,t[2]=M):M=t[2];const I=M;let u;t[3]!==r||t[4]!==I||t[5]!==p.id||t[6]!==p.slug?(u={connectionId:r,orgId:p.id,orgSlug:p.slug,mcpUrl:I},t[3]=r,t[4]=I,t[5]=p.id,t[6]=p.slug,t[7]=u):u=t[7];const n=k(u);let f;t[8]!==n?(f={client:n},t[8]=n,t[9]=f):f=t[9];const{data:g}=q(f);let e,a,m;t[10]!==h||t[11]!==g.tools?(e=L(decodeURIComponent(h)),m=g.tools.find(i=>i.name===e)??g.tools.find(i=>{const x=E(i._meta);if(!x)return!1;if(y(i.name,x)===e)return!0;const d=y(e,x);return d!==e&&i.name===d}),a=m?._meta?K(m._meta):void 0,t[10]=h,t[11]=g.tools,t[12]=e,t[13]=a,t[14]=m):(e=t[12],a=t[13],m=t[14]);const s=a;if(!m||!s){let i;return t[15]!==e?(i=A.jsx("div",{className:"flex items-center justify-center h-full w-full",children:A.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',e,'" not found or has no UI']})}),t[15]=e,t[16]=i):i=t[16],i}let c;return t[17]!==o||t[18]!==n||t[19]!==r||t[20]!==p.id||t[21]!==s||t[22]!==m?(c=A.jsx(W,{client:n,resourceURI:s,tool:m,connectionId:r,orgId:p.id,args:o}),t[17]=o,t[18]=n,t[19]=r,t[20]=p.id,t[21]=s,t[22]=m,t[23]=c):c=t[23],c}export{Se as AppViewContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as F,j as r}from"./index-DILk6pqr.js";import{I as T}from"./input-DntqEqec.js";import{L as C}from"./label-NJtv9Xrj.js";import{T as L}from"./textarea-Fs50NfWG.js";import{as as A,at as R,au as D,av as J}from"./index-Yqaph2kh.js";import{u as K,s as P}from"./primitives-pW0ukQfP.js";import{S as M}from"./save-status-DIZcxleS.js";import"./index-CCbaPbk-.js";import"./chat-context-SWJ_FDEf.js";import"./hooks-CLt3SUb8.js";import"./use-mcp-client-BdmHrvF5.js";import"./auth-B4fF5n_6.js";import"./decopilot-sse-pool-Cd7s5cwH.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-OPb4DVO0.js";import"./use-collections-D0HN84Lz.js";import"./use-ai-providers-CVKwKs8r.js";import"./studio-tools-DWzikkvB.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-a8PuTrsa.js";import"./scroll-area-CN3_YfBC.js";import"./agent-icon-CKGTD-zQ.js";import"./AlertCircle-qY5ngKLr.js";import"./Tool01-hxrY31T7.js";import"./SwitchHorizontal01-CrHLIeRP.js";import"./Settings02-Dd9sO-oW.js";import"./XCircle-BLfqcVud.js";import"./ArrowUpRight-C7uYzZ0Z.js";import"./ZapSquare-iu6ldaYZ.js";import"./Users03-BZYHqQGQ.js";import"./CheckCircle-CNYYpNQm.js";import"./ChevronUp-CKICjFfX.js";import"./ChevronDown-BVJUps1_.js";import"./ChevronLeft-CCp89cqe.js";import"./ChevronRight-MnjJHQHy.js";import"./DotsVertical-Bl5GcKp2.js";import"./Stars02-DHcW8N80.js";import"./Eye-C6daRddp.js";import"./ZoomOut-6aWLXLSs.js";import"./Globe01-CgHdNpOL.js";import"./FilterLines-B_0u5HAa.js";import"./Star01-Be_MjtDZ.js";import"./Globe04-DEangwXD.js";import"./HardDrive-V1dbAXdv.js";import"./Key01-B0h1bFlR.js";import"./LayoutLeft-BsVzrTOG.js";import"./LinkExternal01-B9RsD2Us.js";import"./Monitor01-DAM-u2R2.js";import"./Sun-DO_Gt4P2.js";import"./Palette-DT8p7ZEl.js";import"./Play-Blum-MoR.js";import"./Plus-DfIcHYEj.js";import"./SearchMd-B6GaXN7Q.js";import"./Shield01-DLANpVD0.js";import"./Stars01-D3ha2IeY.js";import"./Trash01-DGJ-LjB-.js";import"./Upload01-CzOJ3UuD.js";import"./User01-DR_UC5XH.js";import"./Users01-cxH39exM.js";import"./XClose-4ak3u3qT.js";import"./X-CXRx6PGX.js";import"./Zap-DVtX-UPi.js";import"./use-clock-tick-CWHp6nCX.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CuQAt0Vj.js";import"./tooltip-DNJ6cRlV.js";import"./file-type-icon-CdZyaTKH.js";import"./dialog-CwfeALzq.js";import"./content-blocks-o63cs2vh.js";import"./types-CsHe6BgD.js";import"./shell-layout-DAyf8ZZZ.js";import"./avatar-3b85MUU5.js";import"./required-auth-layout-DdFOKjMd.js";import"./use-org-sso-DvlbibgX.js";import"./sheet-CgvO6KT7.js";import"./integration-icon-CxxjWIPp.js";import"./use-navigate-to-agent-Qyyx-mm9.js";import"./use-connection-Bj1m8ynL.js";import"./use-mcp-prompts-BwQLmLZi.js";import"./form-xYXw--Kt.js";import"./select-DeFnLWdd.js";import"./drawer-_RQmWfAo.js";import"./collection-search-B-ZTg2tB.js";import"./tabs-CVnN0f33.js";import"./toggle-group-C7SpEcqz.js";import"./sortable.esm-DdDX2lbe.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-By0LggNB.js";import"./use-registry-connections-DZ1G13oh.js";import"./useInfiniteQuery-D-pnegbi.js";import"./use-infinite-scroll-CCIuAqs7.js";import"./extract-connection-data-qW230rJb.js";import"./card-D0ElZuSJ.js";import"./collection-tabs-7m5XLASC.js";import"./badge-CBy4Rm2Q.js";import"./connection-form-helpers-DeSC5iva.js";import"./authenticate-and-persist-oauth-D2tM_mGL.js";import"./mcp-oauth-BTUV7ht5.js";import"./useSuspenseInfiniteQuery-_rNdlYkE.js";import"./connect-desktop-dialog-JUjDMHMz.js";import"./decopilot-DBiOjpCq.js";import"./checkbox-UCOb4UyX.js";import"./skeleton-DUdp3Kvb.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BXkrjyua.js";import"./popover-DmLzbFpk.js";import"./command-CKe7nBfr.js";import"./index-Benu0NlA.js";import"./dropdown-menu-CppAWsT_.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DMne2oqE.js";import"./empty-state-CfAeMInj.js";import"./toolbar-Dp05iiiH.js";import"./preview-dialog-XKGBZobL.js";import"./index-uKLTzwtC.js";import"./use-mcp-tools-ChlFTYss.js";import"./use-capability-OLvFRh1U.js";import"./shell-route-loading-44H3A_LH.js";import"./index-C6ZVo7HH.js";import"./alert-dialog-D5KOx-3H.js";import"./switch-ZSF60LRT.js";import"./use-debounced-autosave-OpSLLz7d.js";import"./index-D7pI5IpD.js";import"./sidebar-D5TdEONj.js";import"./search-input-SieA9wsp.js";import"./github-repo-picker-B1nNLNvt.js";import"./use-secrets-GRgGPWUb.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-k-q_tsqg.js";import"./automation-runs-_FCeac3K.js";import"./table-CAdy-hg6.js";import"./use-members-9pMsaLP9.js";import"./use-org-auth-client-CtaccGLo.js";import"./task-status-CtOjrZ5U.js";import"./use-automations-Ca6VluJ_.js";import"./use-file-configs-aDA6u1U_.js";import"./monaco-editor-BS1tOSHv.js";import"./select-model-DmLcnpxY.js";import"./automation-list-row-BKx-xx1i.js";const $={authors:[{key:"name",label:"Name",widget:"text"},{key:"email",label:"Email",widget:"text",placeholder:"author@example.com"},{key:"jobTitle",label:"Job title",widget:"text"},{key:"company",label:"Company",widget:"text"},{key:"avatar",label:"Avatar",widget:"image"}]},q={authors:"Author"};function jr(S){const t=F.c(34),{orgSlug:v,virtualMcpId:j,branch:f,kind:p,blockKey:g,block:w}=S;let y;t[0]!==f||t[1]!==v||t[2]!==j?(y={orgSlug:v,virtualMcpId:j,branch:f},t[0]=f,t[1]=v,t[2]=j,t[3]=y):y=t[3];const m=A(y);let d;t[4]!==w||t[5]!==p?(d=R(w,p),t[4]=w,t[5]=p,t[6]=d):d=t[6];const B=d;let h;t[7]!==g||t[8]!==p||t[9]!==m?(h=e=>{m.mutate({blockKey:g,data:D(g,p,e)})},t[7]=g,t[8]=p,t[9]=m,t[10]=h):h=t[10];const[i,E]=K(B,h);let k;t[11]!==i||t[12]!==E?(k=(e,o)=>E({...i,[e]:o}),t[11]=i,t[12]=E,t[13]=k):k=t[13];const a=k,N=q[p];let s;t[14]!==N?(s=r.jsx("span",{className:"text-sm font-medium",children:N}),t[14]=N,t[15]=s):s=t[15];let l;t[16]!==m.isError||t[17]!==m.isPending?(l=r.jsx(M,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=l):l=t[18];let n;t[19]!==s||t[20]!==l?(n=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[s,l]}),t[19]=s,t[20]=l,t[21]=n):n=t[21];const I=$[p];let c;if(t[22]!==i||t[23]!==a||t[24]!==I){let e;t[26]!==i||t[27]!==a?(e=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(J,{schema:{type:"string",format:"image-uri",title:o.label},value:i[o.key],onChange:u=>a(o.key,u),path:o.key,label:o.label}):r.jsxs(r.Fragment,{children:[r.jsx(C,{htmlFor:o.key,children:o.label}),o.widget==="textarea"?r.jsx(L,{id:o.key,value:P(i[o.key]),onChange:u=>a(o.key,u.target.value),rows:3}):r.jsx(T,{id:o.key,value:P(i[o.key]),placeholder:o.placeholder,onChange:u=>a(o.key,u.target.value),className:"h-10"})]})},o.key),t[26]=i,t[27]=a,t[28]=e):e=t[28],c=I.map(e),t[22]=i,t[23]=a,t[24]=I,t[25]=c}else c=t[25];let x;t[29]!==c?(x=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:c})}),t[29]=c,t[30]=x):x=t[30];let b;return t[31]!==x||t[32]!==n?(b=r.jsxs("div",{className:"flex h-full flex-col",children:[n,x]}),t[31]=x,t[32]=n,t[33]=b):b=t[33],b}export{jr as RecordEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CQVApMRy.js","assets/index-DILk6pqr.js","assets/index-fHHzFvHF.css","assets/XCircle-BLfqcVud.js","assets/CheckCircle-CNYYpNQm.js","assets/Settings02-Dd9sO-oW.js","assets/use-mcp-client-BdmHrvF5.js","assets/auth-B4fF5n_6.js","assets/useInfiniteQuery-D-pnegbi.js","assets/use-infinite-scroll-CCIuAqs7.js","assets/studio-tools-DWzikkvB.js","assets/badge-CBy4Rm2Q.js","assets/input-DntqEqec.js","assets/dropdown-menu-CppAWsT_.js","assets/ChevronUp-CKICjFfX.js","assets/ChevronRight-MnjJHQHy.js","assets/DotsVertical-Bl5GcKp2.js","assets/table-CAdy-hg6.js","assets/toggle-group-C7SpEcqz.js","assets/use-view-mode-CslUtkLV.js","assets/tooltip-DNJ6cRlV.js","assets/FilterLines-B_0u5HAa.js","assets/Globe01-CgHdNpOL.js","assets/SearchMd-B6GaXN7Q.js","assets/dialog-CwfeALzq.js","assets/X-CXRx6PGX.js","assets/AlertCircle-qY5ngKLr.js","assets/Upload01-CzOJ3UuD.js","assets/alert-dialog-D5KOx-3H.js","assets/card-D0ElZuSJ.js","assets/Trash01-DGJ-LjB-.js","assets/label-NJtv9Xrj.js","assets/select-DeFnLWdd.js","assets/ChevronDown-BVJUps1_.js","assets/switch-ZSF60LRT.js","assets/textarea-Fs50NfWG.js","assets/checkbox-UCOb4UyX.js","assets/Eye-C6daRddp.js","assets/LinkExternal01-B9RsD2Us.js","assets/use-copy-CuQAt0Vj.js","assets/Key01-B0h1bFlR.js","assets/Plus-DfIcHYEj.js","assets/mcp-oauth-BTUV7ht5.js","assets/Play-Blum-MoR.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as s,j as e,r as i,i as a,al as o}from"./index-DILk6pqr.js";import{R as l}from"./require-capability-BlqPTqxe.js";import"./use-capability-OLvFRh1U.js";import"./access-gate-B_rz72ZQ.js";import"./capability-load-error-DmenvLwh.js";const m=i.lazy(()=>o(()=>import("./registry-layout-CQVApMRy.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=s.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(i.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(m,{})})}),r[0]=t):t=r[0],t}export{f as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as p,j as t,E as P,r as j,af as w,B as S,t as y}from"./index-DILk6pqr.js";import{i as k}from"./AlertCircle-qY5ngKLr.js";import{s as z}from"./Plus-DfIcHYEj.js";import{s as E}from"./User01-DR_UC5XH.js";import{t as F}from"./Users01-cxH39exM.js";import{d as $,c as I,D as O,a as A,b as R,e as T}from"./dialog-CwfeALzq.js";import{I as N}from"./input-DntqEqec.js";import{L as g}from"./label-NJtv9Xrj.js";import{d as B,b as V,c as L,S as q,a as C}from"./select-DeFnLWdd.js";import{S as H}from"./skeleton-DUdp3Kvb.js";import{T as K}from"./textarea-Fs50NfWG.js";import{P as b}from"./index-D7pI5IpD.js";import{c as W}from"./settings-section-BXkrjyua.js";import{u as Y,a as G}from"./use-secrets-GRgGPWUb.js";import{R as J}from"./require-capability-BlqPTqxe.js";import"./X-CXRx6PGX.js";import"./tooltip-DNJ6cRlV.js";import"./ChevronUp-CKICjFfX.js";import"./ChevronDown-BVJUps1_.js";import"./sidebar-D5TdEONj.js";import"./LayoutLeft-BsVzrTOG.js";import"./sheet-CgvO6KT7.js";import"./card-D0ElZuSJ.js";import"./ArrowUpRight-C7uYzZ0Z.js";import"./studio-tools-DWzikkvB.js";import"./use-capability-OLvFRh1U.js";import"./access-gate-B_rz72ZQ.js";import"./capability-load-error-DmenvLwh.js";function M(s){const e=p.c(3),{error:r}=s;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(k,{size:16}),e[0]=c):c=e[0];let n;return e[1]!==r.message?(n=t.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[c,t.jsxs("span",{className:"text-sm font-medium",children:["Failed to load secrets: ",r.message]})]}),e[1]=r.message,e[2]=n):n=e[2],n}function Q(s){const e=p.c(5),{scope:r}=s,c=r==="user"?E:F,n=r==="user"?"Private":"Organization";let i;e[0]!==c?(i=t.jsx(c,{size:12}),e[0]=c,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=t.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-muted text-muted-foreground text-xs",children:[i,n]}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function D(s){const e=p.c(20),{secret:r}=s;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:t.jsx(w,{size:16,className:"text-muted-foreground"})}),e[0]=c):c=e[0];let n;e[1]!==r.name?(n=t.jsx("span",{className:"font-medium text-sm truncate",children:r.name}),e[1]=r.name,e[2]=n):n=e[2];let i;e[3]!==r.scope?(i=t.jsx(Q,{scope:r.scope}),e[3]=r.scope,e[4]=i):i=e[4];let a;e[5]!==n||e[6]!==i?(a=t.jsxs("div",{className:"flex items-center gap-2",children:[n,i]}),e[5]=n,e[6]=i,e[7]=a):a=e[7];let d;e[8]!==r.description?(d=r.description?t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:r.description}):null,e[8]=r.description,e[9]=d):d=e[9];let u;e[10]!==a||e[11]!==d?(u=t.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[c,t.jsxs("div",{className:"min-w-0",children:[a,d]})]}),e[10]=a,e[11]=d,e[12]=u):u=e[12];let l;e[13]!==r.createdAt?(l=new Date(r.createdAt).toLocaleDateString(),e[13]=r.createdAt,e[14]=l):l=e[14];let o;e[15]!==l?(o=t.jsx("div",{className:"text-xs text-muted-foreground shrink-0",children:l}),e[15]=l,e[16]=o):o=e[16];let x;return e[17]!==u||e[18]!==o?(x=t.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[u,o]}),e[17]=u,e[18]=o,e[19]=x):x=e[19],x}function U(s){const e=p.c(5),{onCreate:r}=s;let c,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:t.jsx(w,{size:20,className:"text-muted-foreground"})}),n=t.jsxs("div",{children:[t.jsx("p",{className:"font-medium text-sm",children:"No secrets yet"}),t.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:"Store API keys, tokens, and other sensitive values. Values are encrypted at rest and never returned over the API."})]}),e[0]=c,e[1]=n):(c=e[0],n=e[1]);let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(z,{size:14}),e[2]=i):i=e[2];let a;return e[3]!==r?(a=t.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[c,n,t.jsxs(S,{onClick:r,size:"sm",className:"mt-2",children:[i,"New secret"]})]}),e[3]=r,e[4]=a):a=e[4],a}function _({open:s,onOpenChange:e}){const[r,c]=j.useState("organization"),[n,i]=j.useState(""),[a,d]=j.useState(""),[u,l]=j.useState(""),o=G();function x(){c("organization"),i(""),d(""),l("")}function f(){x(),e(!1)}async function h(m){if(m.preventDefault(),!(!n.trim()||!a))try{await o.mutateAsync({scope:r,name:n.trim(),value:a,description:u.trim()||void 0}),y.success(`Secret "${n.trim()}" created`),f()}catch(v){y.error(v instanceof Error?v.message:"Failed to create secret")}}return t.jsx($,{open:s,onOpenChange:m=>{m?e(m):f()},children:t.jsxs(I,{className:"sm:max-w-lg",children:[t.jsxs(O,{children:[t.jsx(A,{children:"New secret"}),t.jsx(R,{children:"Stored encrypted in the credential vault. Choose who can read it."})]}),t.jsxs("form",{onSubmit:h,className:"space-y-4",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(g,{htmlFor:"secret-scope",children:"Scope"}),t.jsxs(B,{value:r,onValueChange:m=>c(m),children:[t.jsx(V,{id:"secret-scope",children:t.jsx(L,{})}),t.jsxs(q,{children:[t.jsx(C,{value:"organization",children:"Organization — visible to all members"}),t.jsx(C,{value:"user",children:"Private — only visible to me"})]})]})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(g,{htmlFor:"secret-name",children:"Name"}),t.jsx(N,{id:"secret-name",value:n,onChange:m=>i(m.target.value),placeholder:"STRIPE_API_KEY",autoComplete:"off",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Letters, digits, underscore, dot, hyphen. Case-insensitive within its scope."})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(g,{htmlFor:"secret-value",children:"Value"}),t.jsx(N,{id:"secret-value",type:"password",value:a,onChange:m=>d(m.target.value),autoComplete:"new-password",required:!0})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(g,{htmlFor:"secret-description",children:"Description (optional)"}),t.jsx(K,{id:"secret-description",value:u,onChange:m=>l(m.target.value),rows:2,placeholder:"What is this secret used for?"})]}),t.jsxs(T,{children:[t.jsx(S,{type:"button",variant:"outline",onClick:f,disabled:o.isPending,children:"Cancel"}),t.jsx(S,{type:"submit",disabled:o.isPending||!n.trim()||!a,children:o.isPending?"Creating…":"Create secret"})]})]})]})})}function X(){const s=p.c(21),e=Y(),[r,c]=j.useState(!1);if(e.length===0){let l;s[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(U,{onCreate:()=>c(!0)}),s[0]=l):l=s[0];let o;return s[1]!==r?(o=t.jsxs(t.Fragment,{children:[l,t.jsx(_,{open:r,onOpenChange:c})]}),s[1]=r,s[2]=o):o=s[2],o}let n,i,a;if(s[3]!==e){const l=e.filter(se),o=e.filter(te),x=e.length===1?"":"s";let f;s[7]!==e.length||s[8]!==x?(f=t.jsxs("p",{className:"text-sm text-muted-foreground",children:[e.length," secret",x," stored"]}),s[7]=e.length,s[8]=x,s[9]=f):f=s[9];let h;s[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>c(!0),s[10]=h):h=s[10];let m;s[11]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsxs(S,{onClick:h,size:"sm",children:[t.jsx(z,{size:14}),"New secret"]}),s[11]=m):m=s[11],s[12]!==f?(n=t.jsxs("div",{className:"flex items-center justify-between",children:[f,m]}),s[12]=f,s[13]=n):n=s[13],i=l.length>0?t.jsxs("section",{className:"rounded-2xl border border-border/60 bg-background p-5",children:[t.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Organization"}),t.jsx("div",{children:l.map(ee)})]}):null,a=o.length>0?t.jsxs("section",{className:"rounded-2xl border border-border/60 bg-background p-5",children:[t.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Private to me"}),t.jsx("div",{children:o.map(Z)})]}):null,s[3]=e,s[4]=n,s[5]=i,s[6]=a}else n=s[4],i=s[5],a=s[6];let d;s[14]!==r?(d=t.jsx(_,{open:r,onOpenChange:c}),s[14]=r,s[15]=d):d=s[15];let u;return s[16]!==n||s[17]!==i||s[18]!==a||s[19]!==d?(u=t.jsxs(t.Fragment,{children:[n,i,a,d]}),s[16]=n,s[17]=i,s[18]=a,s[19]=d,s[20]=u):u=s[20],u}function Z(s){return t.jsx(D,{secret:s},s.id)}function ee(s){return t.jsx(D,{secret:s},s.id)}function te(s){return s.scope==="user"}function se(s){return s.scope==="organization"}function re(){const s=p.c(2);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(b.Title,{children:"Secrets"}),s[0]=e):e=s[0];let r;return s[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(b,{children:t.jsx(b.Content,{children:t.jsx(b.Body,{children:t.jsxs(W,{children:[e,t.jsx(P,{fallback:ne,children:t.jsx(j.Suspense,{fallback:t.jsx(H,{className:"h-32 w-full"}),children:t.jsx(X,{})})})]})})})}),s[1]=r):r=s[1],r}function ne(s){const{error:e}=s;return t.jsx(M,{error:e??new Error("Failed to load secrets")})}function $e(){const s=p.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(J,{capability:"secrets:manage",area:"secrets",children:t.jsx(re,{})}),s[0]=e):e=s[0],e}export{$e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as c,ai as nt,a2 as Pe,j as d,a3 as rt,aj as be,Z as k,T as st,U as j,V as _,bP as $,a1 as lt,aP as Ne,W as Ee,ah as at,bK as it,bR as ct,dz as dt,dC as ut,dA as pt,dD as ft,_ as mt,X as ht,dB as vt,$ as gt,a0 as xt,c as ee,l as oe}from"./index-DILk6pqr.js";import{V as St}from"./tooltip-DNJ6cRlV.js";import{i as wt,n as Ct}from"./ChevronUp-CKICjFfX.js";import{t as Re}from"./ChevronDown-BVJUps1_.js";function _e(r,[e,t]){return Math.min(t,Math.max(e,r))}var yt=[" ","Enter","ArrowUp","ArrowDown"],It=[" ","Enter"],J="Select",[de,ue,bt]=at(J),[ne]=ht(J,[bt,Ee]),pe=Ee(),[Tt,G]=ne(J),[Pt,_t]=ne(J),je=r=>{const{__scopeSelect:e,children:t,open:o,defaultOpen:n,onOpenChange:i,value:s,defaultValue:l,onValueChange:a,dir:u,name:h,autoComplete:g,disabled:b,required:w,form:S}=r,p=pe(e),[v,C]=c.useState(null),[m,x]=c.useState(null),[U,M]=c.useState(!1),re=nt(u),[N,O]=Pe({prop:o,defaultProp:n??!1,onChange:i,caller:J}),[F,q]=Pe({prop:s,defaultProp:l,onChange:a,caller:J}),L=c.useRef(null),B=v?S||!!v.closest("form"):!0,[W,V]=c.useState(new Set),H=Array.from(W).map(E=>E.props.value).join(";");return d.jsx(rt,{...p,children:d.jsxs(Tt,{required:w,scope:e,trigger:v,onTriggerChange:C,valueNode:m,onValueNodeChange:x,valueNodeHasChildren:U,onValueNodeHasChildrenChange:M,contentId:be(),value:F,onValueChange:q,open:N,onOpenChange:O,dir:re,triggerPointerDownPosRef:L,disabled:b,children:[d.jsx(de.Provider,{scope:e,children:d.jsx(Pt,{scope:r.__scopeSelect,onNativeOptionAdd:c.useCallback(E=>{V(D=>new Set(D).add(E))},[]),onNativeOptionRemove:c.useCallback(E=>{V(D=>{const z=new Set(D);return z.delete(E),z})},[]),children:t})}),B?d.jsxs(Qe,{"aria-hidden":!0,required:w,tabIndex:-1,name:h,autoComplete:g,value:F,onChange:E=>q(E.target.value),disabled:b,form:S,children:[F===void 0?d.jsx("option",{value:""}):null,Array.from(W)]},H):null]})})};je.displayName=J;var Me="SelectTrigger",Ae=c.forwardRef((r,e)=>{const{__scopeSelect:t,disabled:o=!1,...n}=r,i=pe(t),s=G(Me,t),l=s.disabled||o,a=k(e,s.onTriggerChange),u=ue(t),h=c.useRef("touch"),[g,b,w]=tt(p=>{const v=u().filter(x=>!x.disabled),C=v.find(x=>x.value===s.value),m=ot(v,p,C);m!==void 0&&s.onValueChange(m.value)}),S=p=>{l||(s.onOpenChange(!0),w()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return d.jsx(st,{asChild:!0,...i,children:d.jsx(j.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":et(s.value)?"":void 0,...n,ref:a,onClick:_(n.onClick,p=>{p.currentTarget.focus(),h.current!=="mouse"&&S(p)}),onPointerDown:_(n.onPointerDown,p=>{h.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(S(p),p.preventDefault())}),onKeyDown:_(n.onKeyDown,p=>{const v=g.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&b(p.key),!(v&&p.key===" ")&&yt.includes(p.key)&&(S(),p.preventDefault())})})})});Ae.displayName=Me;var Oe="SelectValue",De=c.forwardRef((r,e)=>{const{__scopeSelect:t,className:o,style:n,children:i,placeholder:s="",...l}=r,a=G(Oe,t),{onValueNodeHasChildrenChange:u}=a,h=i!==void 0,g=k(e,a.onValueNodeChange);return $(()=>{u(h)},[u,h]),d.jsx(j.span,{...l,ref:g,style:{pointerEvents:"none"},children:et(a.value)?d.jsx(d.Fragment,{children:s}):i})});De.displayName=Oe;var Nt="SelectIcon",ke=c.forwardRef((r,e)=>{const{__scopeSelect:t,children:o,...n}=r;return d.jsx(j.span,{"aria-hidden":!0,...n,ref:e,children:o||"▼"})});ke.displayName=Nt;var Et="SelectPortal",Le=r=>d.jsx(lt,{asChild:!0,...r});Le.displayName=Et;var Q="SelectContent",Be=c.forwardRef((r,e)=>{const t=G(Q,r.__scopeSelect),[o,n]=c.useState();if($(()=>{n(new DocumentFragment)},[]),!t.open){const i=o;return i?Ne.createPortal(d.jsx(Ve,{scope:r.__scopeSelect,children:d.jsx(de.Slot,{scope:r.__scopeSelect,children:d.jsx("div",{children:r.children})})}),i):null}return d.jsx(He,{...r,ref:e})});Be.displayName=Q;var A=10,[Ve,Y]=ne(Q),Rt="SelectContentImpl",jt=vt("SelectContent.RemoveScroll"),He=c.forwardRef((r,e)=>{const{__scopeSelect:t,position:o="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:i,onPointerDownOutside:s,side:l,sideOffset:a,align:u,alignOffset:h,arrowPadding:g,collisionBoundary:b,collisionPadding:w,sticky:S,hideWhenDetached:p,avoidCollisions:v,...C}=r,m=G(Q,t),[x,U]=c.useState(null),[M,re]=c.useState(null),N=k(e,f=>U(f)),[O,F]=c.useState(null),[q,L]=c.useState(null),B=ue(t),[W,V]=c.useState(!1),H=c.useRef(!1);c.useEffect(()=>{if(x)return dt(x)},[x]),ut();const E=c.useCallback(f=>{const[T,...R]=B().map(P=>P.ref.current),[y]=R.slice(-1),I=document.activeElement;for(const P of f)if(P===I||(P?.scrollIntoView({block:"nearest"}),P===T&&M&&(M.scrollTop=0),P===y&&M&&(M.scrollTop=M.scrollHeight),P?.focus(),document.activeElement!==I))return},[B,M]),D=c.useCallback(()=>E([O,x]),[E,O,x]);c.useEffect(()=>{W&&D()},[W,D]);const{onOpenChange:z,triggerPointerDownPosRef:K}=m;c.useEffect(()=>{if(x){let f={x:0,y:0};const T=y=>{f={x:Math.abs(Math.round(y.pageX)-(K.current?.x??0)),y:Math.abs(Math.round(y.pageY)-(K.current?.y??0))}},R=y=>{f.x<=10&&f.y<=10?y.preventDefault():x.contains(y.target)||z(!1),document.removeEventListener("pointermove",T),K.current=null};return K.current!==null&&(document.addEventListener("pointermove",T),document.addEventListener("pointerup",R,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",T),document.removeEventListener("pointerup",R,{capture:!0})}}},[x,z,K]),c.useEffect(()=>{const f=()=>z(!1);return window.addEventListener("blur",f),window.addEventListener("resize",f),()=>{window.removeEventListener("blur",f),window.removeEventListener("resize",f)}},[z]);const[fe,ae]=tt(f=>{const T=B().filter(I=>!I.disabled),R=T.find(I=>I.ref.current===document.activeElement),y=ot(T,f,R);y&&setTimeout(()=>y.ref.current.focus())}),me=c.useCallback((f,T,R)=>{const y=!H.current&&!R;(m.value!==void 0&&m.value===T||y)&&(F(f),y&&(H.current=!0))},[m.value]),he=c.useCallback(()=>x?.focus(),[x]),te=c.useCallback((f,T,R)=>{const y=!H.current&&!R;(m.value!==void 0&&m.value===T||y)&&L(f)},[m.value]),ie=o==="popper"?Se:ze,se=ie===Se?{side:l,sideOffset:a,align:u,alignOffset:h,arrowPadding:g,collisionBoundary:b,collisionPadding:w,sticky:S,hideWhenDetached:p,avoidCollisions:v}:{};return d.jsx(Ve,{scope:t,content:x,viewport:M,onViewportChange:re,itemRefCallback:me,selectedItem:O,onItemLeave:he,itemTextRefCallback:te,focusSelectedItem:D,selectedItemText:q,position:o,isPositioned:W,searchRef:fe,children:d.jsx(pt,{as:jt,allowPinchZoom:!0,children:d.jsx(ft,{asChild:!0,trapped:m.open,onMountAutoFocus:f=>{f.preventDefault()},onUnmountAutoFocus:_(n,f=>{m.trigger?.focus({preventScroll:!0}),f.preventDefault()}),children:d.jsx(mt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:d.jsx(ie,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:f=>f.preventDefault(),...C,...se,onPlaced:()=>V(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:_(C.onKeyDown,f=>{const T=f.ctrlKey||f.altKey||f.metaKey;if(f.key==="Tab"&&f.preventDefault(),!T&&f.key.length===1&&ae(f.key),["ArrowUp","ArrowDown","Home","End"].includes(f.key)){let y=B().filter(I=>!I.disabled).map(I=>I.ref.current);if(["ArrowUp","End"].includes(f.key)&&(y=y.slice().reverse()),["ArrowUp","ArrowDown"].includes(f.key)){const I=f.target,P=y.indexOf(I);y=y.slice(P+1)}setTimeout(()=>E(y)),f.preventDefault()}})})})})})})});He.displayName=Rt;var Mt="SelectItemAlignedPosition",ze=c.forwardRef((r,e)=>{const{__scopeSelect:t,onPlaced:o,...n}=r,i=G(Q,t),s=Y(Q,t),[l,a]=c.useState(null),[u,h]=c.useState(null),g=k(e,N=>h(N)),b=ue(t),w=c.useRef(!1),S=c.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:C,focusSelectedItem:m}=s,x=c.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&p&&v&&C){const N=i.trigger.getBoundingClientRect(),O=u.getBoundingClientRect(),F=i.valueNode.getBoundingClientRect(),q=C.getBoundingClientRect();if(i.dir!=="rtl"){const I=q.left-O.left,P=F.left-I,X=N.left-P,Z=N.width+X,ve=Math.max(Z,O.width),ge=window.innerWidth-A,xe=_e(P,[A,Math.max(A,ge-ve)]);l.style.minWidth=Z+"px",l.style.left=xe+"px"}else{const I=O.right-q.right,P=window.innerWidth-F.right-I,X=window.innerWidth-N.right-P,Z=N.width+X,ve=Math.max(Z,O.width),ge=window.innerWidth-A,xe=_e(P,[A,Math.max(A,ge-ve)]);l.style.minWidth=Z+"px",l.style.right=xe+"px"}const L=b(),B=window.innerHeight-A*2,W=p.scrollHeight,V=window.getComputedStyle(u),H=parseInt(V.borderTopWidth,10),E=parseInt(V.paddingTop,10),D=parseInt(V.borderBottomWidth,10),z=parseInt(V.paddingBottom,10),K=H+E+W+z+D,fe=Math.min(v.offsetHeight*5,K),ae=window.getComputedStyle(p),me=parseInt(ae.paddingTop,10),he=parseInt(ae.paddingBottom,10),te=N.top+N.height/2-A,ie=B-te,se=v.offsetHeight/2,f=v.offsetTop+se,T=H+E+f,R=K-T;if(T<=te){const I=L.length>0&&v===L[L.length-1].ref.current;l.style.bottom="0px";const P=u.clientHeight-p.offsetTop-p.offsetHeight,X=Math.max(ie,se+(I?he:0)+P+D),Z=T+X;l.style.height=Z+"px"}else{const I=L.length>0&&v===L[0].ref.current;l.style.top="0px";const X=Math.max(te,H+p.offsetTop+(I?me:0)+se)+R;l.style.height=X+"px",p.scrollTop=T-te+p.offsetTop}l.style.margin=`${A}px 0`,l.style.minHeight=fe+"px",l.style.maxHeight=B+"px",o?.(),requestAnimationFrame(()=>w.current=!0)}},[b,i.trigger,i.valueNode,l,u,p,v,C,i.dir,o]);$(()=>x(),[x]);const[U,M]=c.useState();$(()=>{u&&M(window.getComputedStyle(u).zIndex)},[u]);const re=c.useCallback(N=>{N&&S.current===!0&&(x(),m?.(),S.current=!1)},[x,m]);return d.jsx(Ot,{scope:t,contentWrapper:l,shouldExpandOnScrollRef:w,onScrollButtonChange:re,children:d.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:U},children:d.jsx(j.div,{...n,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})});ze.displayName=Mt;var At="SelectPopperPosition",Se=c.forwardRef((r,e)=>{const{__scopeSelect:t,align:o="start",collisionPadding:n=A,...i}=r,s=pe(t);return d.jsx(gt,{...s,...i,ref:e,align:o,collisionPadding:n,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Se.displayName=At;var[Ot,Te]=ne(Q,{}),we="SelectViewport",Ue=c.forwardRef((r,e)=>{const{__scopeSelect:t,nonce:o,...n}=r,i=Y(we,t),s=Te(we,t),l=k(e,i.onViewportChange),a=c.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),d.jsx(de.Slot,{scope:t,children:d.jsx(j.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:_(n.onScroll,u=>{const h=u.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:b}=s;if(b?.current&&g){const w=Math.abs(a.current-h.scrollTop);if(w>0){const S=window.innerHeight-A*2,p=parseFloat(g.style.minHeight),v=parseFloat(g.style.height),C=Math.max(p,v);if(C<S){const m=C+w,x=Math.min(S,m),U=m-x;g.style.height=x+"px",g.style.bottom==="0px"&&(h.scrollTop=U>0?U:0,g.style.justifyContent="flex-end")}}}a.current=h.scrollTop})})})]})});Ue.displayName=we;var Fe="SelectGroup",[Dt,kt]=ne(Fe),Lt=c.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r,n=be();return d.jsx(Dt,{scope:t,id:n,children:d.jsx(j.div,{role:"group","aria-labelledby":n,...o,ref:e})})});Lt.displayName=Fe;var We="SelectLabel",Bt=c.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r,n=kt(We,t);return d.jsx(j.div,{id:n.id,...o,ref:e})});Bt.displayName=We;var ce="SelectItem",[Vt,Ke]=ne(ce),$e=c.forwardRef((r,e)=>{const{__scopeSelect:t,value:o,disabled:n=!1,textValue:i,...s}=r,l=G(ce,t),a=Y(ce,t),u=l.value===o,[h,g]=c.useState(i??""),[b,w]=c.useState(!1),S=k(e,m=>a.itemRefCallback?.(m,o,n)),p=be(),v=c.useRef("touch"),C=()=>{n||(l.onValueChange(o),l.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(Vt,{scope:t,value:o,disabled:n,textId:p,isSelected:u,onItemTextChange:c.useCallback(m=>{g(x=>x||(m?.textContent??"").trim())},[]),children:d.jsx(de.ItemSlot,{scope:t,value:o,disabled:n,textValue:h,children:d.jsx(j.div,{role:"option","aria-labelledby":p,"data-highlighted":b?"":void 0,"aria-selected":u&&b,"data-state":u?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...s,ref:S,onFocus:_(s.onFocus,()=>w(!0)),onBlur:_(s.onBlur,()=>w(!1)),onClick:_(s.onClick,()=>{v.current!=="mouse"&&C()}),onPointerUp:_(s.onPointerUp,()=>{v.current==="mouse"&&C()}),onPointerDown:_(s.onPointerDown,m=>{v.current=m.pointerType}),onPointerMove:_(s.onPointerMove,m=>{v.current=m.pointerType,n?a.onItemLeave?.():v.current==="mouse"&&m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:_(s.onPointerLeave,m=>{m.currentTarget===document.activeElement&&a.onItemLeave?.()}),onKeyDown:_(s.onKeyDown,m=>{a.searchRef?.current!==""&&m.key===" "||(It.includes(m.key)&&C(),m.key===" "&&m.preventDefault())})})})})});$e.displayName=ce;var le="SelectItemText",Ge=c.forwardRef((r,e)=>{const{__scopeSelect:t,className:o,style:n,...i}=r,s=G(le,t),l=Y(le,t),a=Ke(le,t),u=_t(le,t),[h,g]=c.useState(null),b=k(e,C=>g(C),a.onItemTextChange,C=>l.itemTextRefCallback?.(C,a.value,a.disabled)),w=h?.textContent,S=c.useMemo(()=>d.jsx("option",{value:a.value,disabled:a.disabled,children:w},a.value),[a.disabled,a.value,w]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=u;return $(()=>(p(S),()=>v(S)),[p,v,S]),d.jsxs(d.Fragment,{children:[d.jsx(j.span,{id:a.textId,...i,ref:b}),a.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Ne.createPortal(i.children,s.valueNode):null]})});Ge.displayName=le;var Ye="SelectItemIndicator",qe=c.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r;return Ke(Ye,t).isSelected?d.jsx(j.span,{"aria-hidden":!0,...o,ref:e}):null});qe.displayName=Ye;var Ce="SelectScrollUpButton",Xe=c.forwardRef((r,e)=>{const t=Y(Ce,r.__scopeSelect),o=Te(Ce,r.__scopeSelect),[n,i]=c.useState(!1),s=k(e,o.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let l=function(){const u=a.scrollTop>0;i(u)};const a=t.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[t.viewport,t.isPositioned]),n?d.jsx(Je,{...r,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=t;l&&a&&(l.scrollTop=l.scrollTop-a.offsetHeight)}}):null});Xe.displayName=Ce;var ye="SelectScrollDownButton",Ze=c.forwardRef((r,e)=>{const t=Y(ye,r.__scopeSelect),o=Te(ye,r.__scopeSelect),[n,i]=c.useState(!1),s=k(e,o.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let l=function(){const u=a.scrollHeight-a.clientHeight,h=Math.ceil(a.scrollTop)<u;i(h)};const a=t.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[t.viewport,t.isPositioned]),n?d.jsx(Je,{...r,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=t;l&&a&&(l.scrollTop=l.scrollTop+a.offsetHeight)}}):null});Ze.displayName=ye;var Je=c.forwardRef((r,e)=>{const{__scopeSelect:t,onAutoScroll:o,...n}=r,i=Y("SelectScrollButton",t),s=c.useRef(null),l=ue(t),a=c.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return c.useEffect(()=>()=>a(),[a]),$(()=>{l().find(h=>h.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),d.jsx(j.div,{"aria-hidden":!0,...n,ref:e,style:{flexShrink:0,...n.style},onPointerDown:_(n.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(o,50))}),onPointerMove:_(n.onPointerMove,()=>{i.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(o,50))}),onPointerLeave:_(n.onPointerLeave,()=>{a()})})}),Ht="SelectSeparator",zt=c.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r;return d.jsx(j.div,{"aria-hidden":!0,...o,ref:e})});zt.displayName=Ht;var Ie="SelectArrow",Ut=c.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r,n=pe(t),i=G(Ie,t),s=Y(Ie,t);return i.open&&s.position==="popper"?d.jsx(xt,{...n,...o,ref:e}):null});Ut.displayName=Ie;var Ft="SelectBubbleInput",Qe=c.forwardRef(({__scopeSelect:r,value:e,...t},o)=>{const n=c.useRef(null),i=k(o,n),s=it(e);return c.useEffect(()=>{const l=n.current;if(!l)return;const a=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(a,"value").set;if(s!==e&&h){const g=new Event("change",{bubbles:!0});h.call(l,e),l.dispatchEvent(g)}},[s,e]),d.jsx(j.select,{...t,style:{...St,...t.style},ref:i,defaultValue:e})});Qe.displayName=Ft;function et(r){return r===""||r===void 0}function tt(r){const e=ct(r),t=c.useRef(""),o=c.useRef(0),n=c.useCallback(s=>{const l=t.current+s;e(l),(function a(u){t.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>a(""),1e3))})(l)},[e]),i=c.useCallback(()=>{t.current="",window.clearTimeout(o.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(o.current),[]),[t,n,i]}function ot(r,e,t){const n=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,i=t?r.indexOf(t):-1;let s=Wt(r,Math.max(i,0));n.length===1&&(s=s.filter(u=>u!==t));const a=s.find(u=>u.textValue.toLowerCase().startsWith(n.toLowerCase()));return a!==t?a:void 0}function Wt(r,e){return r.map((t,o)=>r[(e+o)%r.length])}var Kt=je,$t=Ae,Gt=De,Yt=ke,qt=Le,Xt=Be,Zt=Ue,Jt=$e,Qt=Ge,eo=qe,to=Xe,oo=Ze;function co(r){const e=ee.c(4);let t;e[0]!==r?({...t}=r,e[0]=r,e[1]=t):t=e[1];let o;return e[2]!==t?(o=d.jsx(Kt,{"data-slot":"select",...t}),e[2]=t,e[3]=o):o=e[3],o}function uo(r){const e=ee.c(4);let t;e[0]!==r?({...t}=r,e[0]=r,e[1]=t):t=e[1];let o;return e[2]!==t?(o=d.jsx(Gt,{"data-slot":"select-value",...t}),e[2]=t,e[3]=o):o=e[3],o}function po(r){const e=ee.c(13);let t,o,n,i;e[0]!==r?({className:o,size:i,children:t,...n}=r,e[0]=r,e[1]=t,e[2]=o,e[3]=n,e[4]=i):(t=e[1],o=e[2],n=e[3],i=e[4]);const s=i===void 0?"default":i;let l;e[5]!==o?(l=oe("data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 hover:bg-accent hover:text-accent-foreground dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-lg bg-background px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[2px] card-shadow disabled:opacity-50 data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=xs]:h-6 data-[size=xs]:px-2.5 data-[size=xs]:py-1.5 data-[size=xs]:rounded-lg *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),e[5]=o,e[6]=l):l=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=d.jsx(Yt,{asChild:!0,children:d.jsx(Re,{className:"size-4 opacity-50"})}),e[7]=a):a=e[7];let u;return e[8]!==t||e[9]!==n||e[10]!==s||e[11]!==l?(u=d.jsxs($t,{"data-slot":"select-trigger","data-size":s,className:l,...n,children:[t,a]}),e[8]=t,e[9]=n,e[10]=s,e[11]=l,e[12]=u):u=e[12],u}function fo(r){const e=ee.c(25);let t,o,n,i,s;e[0]!==r?({className:o,children:t,position:i,hideScrollButtons:s,...n}=r,e[0]=r,e[1]=t,e[2]=o,e[3]=n,e[4]=i,e[5]=s):(t=e[1],o=e[2],n=e[3],i=e[4],s=e[5]);const l=i===void 0?"popper":i,a=s===void 0?!1:s,u=l==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1";let h;e[6]!==o||e[7]!==u?(h=oe("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border shadow-md",u,o),e[6]=o,e[7]=u,e[8]=h):h=e[8];let g;e[9]!==a?(g=!a&&d.jsx(no,{}),e[9]=a,e[10]=g):g=e[10];const b=l==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1";let w;e[11]!==b?(w=oe("p-1",b),e[11]=b,e[12]=w):w=e[12];let S;e[13]!==t||e[14]!==w?(S=d.jsx(Zt,{className:w,children:t}),e[13]=t,e[14]=w,e[15]=S):S=e[15];let p;e[16]!==a?(p=!a&&d.jsx(ro,{}),e[16]=a,e[17]=p):p=e[17];let v;return e[18]!==l||e[19]!==n||e[20]!==h||e[21]!==g||e[22]!==S||e[23]!==p?(v=d.jsx(qt,{children:d.jsxs(Xt,{"data-slot":"select-content",className:h,position:l,...n,children:[g,S,p]})}),e[18]=l,e[19]=n,e[20]=h,e[21]=g,e[22]=S,e[23]=p,e[24]=v):v=e[24],v}function mo(r){const e=ee.c(16);let t,o,n,i;e[0]!==r?({className:o,children:t,hideCheck:i,...n}=r,e[0]=r,e[1]=t,e[2]=o,e[3]=n,e[4]=i):(t=e[1],o=e[2],n=e[3],i=e[4]);const s=i===void 0?!1:i;let l;e[5]!==o?(l=oe("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",o),e[5]=o,e[6]=l):l=e[6];let a;e[7]!==s?(a=!s&&d.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:d.jsx(eo,{children:d.jsx(wt,{className:"size-4"})})}),e[7]=s,e[8]=a):a=e[8];let u;e[9]!==t?(u=d.jsx(Qt,{children:t}),e[9]=t,e[10]=u):u=e[10];let h;return e[11]!==n||e[12]!==l||e[13]!==a||e[14]!==u?(h=d.jsxs(Jt,{"data-slot":"select-item",className:l,...n,children:[a,u]}),e[11]=n,e[12]=l,e[13]=a,e[14]=u,e[15]=h):h=e[15],h}function no(r){const e=ee.c(9);let t,o;e[0]!==r?({className:t,...o}=r,e[0]=r,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let n;e[3]!==t?(n=oe("flex cursor-default items-center justify-center py-1",t),e[3]=t,e[4]=n):n=e[4];let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=d.jsx(Ct,{className:"size-4"}),e[5]=i):i=e[5];let s;return e[6]!==o||e[7]!==n?(s=d.jsx(to,{"data-slot":"select-scroll-up-button",className:n,...o,children:i}),e[6]=o,e[7]=n,e[8]=s):s=e[8],s}function ro(r){const e=ee.c(9);let t,o;e[0]!==r?({className:t,...o}=r,e[0]=r,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let n;e[3]!==t?(n=oe("flex cursor-default items-center justify-center py-1",t),e[3]=t,e[4]=n):n=e[4];let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=d.jsx(Re,{className:"size-4"}),e[5]=i):i=e[5];let s;return e[6]!==o||e[7]!==n?(s=d.jsx(oo,{"data-slot":"select-scroll-down-button",className:n,...o,children:i}),e[6]=o,e[7]=n,e[8]=s):s=e[8],s}export{fo as S,mo as a,po as b,uo as c,co as d,_e as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as T,j as t,r as Q,B as je,i as Se}from"./index-DILk6pqr.js";import{i as be}from"./ChevronRight-MnjJHQHy.js";import{L as fe}from"./agent-icon-CKGTD-zQ.js";import{S as ue}from"./scroll-area-CN3_YfBC.js";import{r as Ne,c as ke,u as _e,a as we,i as Ce,d as Te,f as Fe,P as Re,S as Ee}from"./page-seo-form-DIlFQufm.js";import{s as xe,p as ze}from"./index-Yqaph2kh.js";import{a as ge}from"./Tool01-hxrY31T7.js";import"./AlertCircle-qY5ngKLr.js";import"./SwitchHorizontal01-CrHLIeRP.js";import"./Settings02-Dd9sO-oW.js";import"./XCircle-BLfqcVud.js";import"./ArrowUpRight-C7uYzZ0Z.js";import"./ZapSquare-iu6ldaYZ.js";import"./Users03-BZYHqQGQ.js";import"./CheckCircle-CNYYpNQm.js";import"./ChevronUp-CKICjFfX.js";import"./ChevronDown-BVJUps1_.js";import"./ChevronLeft-CCp89cqe.js";import"./DotsVertical-Bl5GcKp2.js";import"./Stars02-DHcW8N80.js";import"./Eye-C6daRddp.js";import"./ZoomOut-6aWLXLSs.js";import"./Globe01-CgHdNpOL.js";import"./FilterLines-B_0u5HAa.js";import"./Star01-Be_MjtDZ.js";import"./Globe04-DEangwXD.js";import"./HardDrive-V1dbAXdv.js";import"./Key01-B0h1bFlR.js";import"./LayoutLeft-BsVzrTOG.js";import"./LinkExternal01-B9RsD2Us.js";import"./Monitor01-DAM-u2R2.js";import"./Sun-DO_Gt4P2.js";import"./Palette-DT8p7ZEl.js";import"./Play-Blum-MoR.js";import"./Plus-DfIcHYEj.js";import"./SearchMd-B6GaXN7Q.js";import"./Shield01-DLANpVD0.js";import"./Stars01-D3ha2IeY.js";import"./Trash01-DGJ-LjB-.js";import"./Upload01-CzOJ3UuD.js";import"./User01-DR_UC5XH.js";import"./Users01-cxH39exM.js";import"./XClose-4ak3u3qT.js";import"./X-CXRx6PGX.js";import"./Zap-DVtX-UPi.js";import"./use-clock-tick-CWHp6nCX.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CuQAt0Vj.js";import"./tooltip-DNJ6cRlV.js";import"./file-type-icon-CdZyaTKH.js";import"./dialog-CwfeALzq.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-CsHe6BgD.js";import"./use-mcp-client-BdmHrvF5.js";import"./auth-B4fF5n_6.js";import"./chat-context-SWJ_FDEf.js";import"./hooks-CLt3SUb8.js";import"./decopilot-sse-pool-Cd7s5cwH.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-OPb4DVO0.js";import"./use-collections-D0HN84Lz.js";import"./use-ai-providers-CVKwKs8r.js";import"./studio-tools-DWzikkvB.js";import"./use-organization-settings-a8PuTrsa.js";import"./shell-layout-DAyf8ZZZ.js";import"./avatar-3b85MUU5.js";import"./required-auth-layout-DdFOKjMd.js";import"./use-org-sso-DvlbibgX.js";import"./sheet-CgvO6KT7.js";import"./integration-icon-CxxjWIPp.js";import"./use-navigate-to-agent-Qyyx-mm9.js";import"./use-connection-Bj1m8ynL.js";import"./use-mcp-prompts-BwQLmLZi.js";import"./form-xYXw--Kt.js";import"./label-NJtv9Xrj.js";import"./input-DntqEqec.js";import"./select-DeFnLWdd.js";import"./switch-ZSF60LRT.js";import"./index-CCbaPbk-.js";import"./drawer-_RQmWfAo.js";import"./collection-search-B-ZTg2tB.js";import"./tabs-CVnN0f33.js";import"./toggle-group-C7SpEcqz.js";import"./sortable.esm-DdDX2lbe.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-By0LggNB.js";import"./use-registry-connections-DZ1G13oh.js";import"./useInfiniteQuery-D-pnegbi.js";import"./use-infinite-scroll-CCIuAqs7.js";import"./extract-connection-data-qW230rJb.js";import"./card-D0ElZuSJ.js";import"./collection-tabs-7m5XLASC.js";import"./badge-CBy4Rm2Q.js";import"./textarea-Fs50NfWG.js";import"./connection-form-helpers-DeSC5iva.js";import"./authenticate-and-persist-oauth-D2tM_mGL.js";import"./mcp-oauth-BTUV7ht5.js";import"./useSuspenseInfiniteQuery-_rNdlYkE.js";import"./connect-desktop-dialog-JUjDMHMz.js";import"./decopilot-DBiOjpCq.js";import"./checkbox-UCOb4UyX.js";import"./skeleton-DUdp3Kvb.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BXkrjyua.js";import"./popover-DmLzbFpk.js";import"./command-CKe7nBfr.js";import"./index-Benu0NlA.js";import"./dropdown-menu-CppAWsT_.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DMne2oqE.js";import"./empty-state-CfAeMInj.js";import"./toolbar-Dp05iiiH.js";import"./preview-dialog-XKGBZobL.js";import"./index-uKLTzwtC.js";import"./use-mcp-tools-ChlFTYss.js";import"./use-capability-OLvFRh1U.js";import"./shell-route-loading-44H3A_LH.js";import"./index-C6ZVo7HH.js";import"./alert-dialog-D5KOx-3H.js";import"./use-debounced-autosave-OpSLLz7d.js";import"./index-D7pI5IpD.js";import"./sidebar-D5TdEONj.js";import"./search-input-SieA9wsp.js";import"./github-repo-picker-B1nNLNvt.js";import"./use-secrets-GRgGPWUb.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-k-q_tsqg.js";import"./automation-runs-_FCeac3K.js";import"./table-CAdy-hg6.js";import"./use-members-9pMsaLP9.js";import"./use-org-auth-client-CtaccGLo.js";import"./task-status-CtOjrZ5U.js";import"./use-automations-Ca6VluJ_.js";import"./use-file-configs-aDA6u1U_.js";import"./monaco-editor-BS1tOSHv.js";import"./select-model-DmLcnpxY.js";import"./automation-list-row-BKx-xx1i.js";function U(n){return typeof n=="string"&&n.trim()?n:void 0}function he(n,e){if(n){if(e)try{const i=new URL(n,e).href;return xe(i)}catch{return}return xe(n)}}function Pe(n){if(!n)return{};const e=U(n.title),i=U(n.titleTemplate);return{title:e&&i?.includes("%s")?i.replace(/%s/g,e):e,description:U(n.description),image:U(n.image),favicon:U(n.favicon)}}function Oe(n){if(!n)return"example.com";try{return new URL(n).host}catch{return"example.com"}}const Z="Your page title",ee="Your meta description will appear here.",Le=[{id:"google",label:"Google",color:"#4285F4",layout:"search"},{id:"facebook",label:"Facebook",color:"#1877F2",layout:"card"},{id:"twitter",label:"X (Twitter)",color:"#0f1419",layout:"card"},{id:"linkedin",label:"LinkedIn",color:"#0A66C2",layout:"card"},{id:"whatsapp",label:"WhatsApp",color:"#25D366",layout:"chat"},{id:"telegram",label:"Telegram",color:"#229ED9",layout:"chat"},{id:"slack",label:"Slack",color:"#611f69",layout:"attachment"},{id:"discord",label:"Discord",color:"#5865F2",layout:"attachment"}];function pe(n){const e=T.c(10),{src:i,className:r,iconSize:h}=n,a=h===void 0?20:h;if(i){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let p;return e[1]!==r||e[2]!==i?(p=t.jsx("img",{src:i,alt:"",referrerPolicy:"no-referrer",className:r,style:m}),e[1]=r,e[2]=i,e[3]=p):p=e[3],p}let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=s):s=e[4];let o;e[5]!==a?(o=t.jsx(ge,{size:a}),e[5]=a,e[6]=o):o=e[6];let l;return e[7]!==r||e[8]!==o?(l=t.jsx("div",{className:r,style:s,children:o}),e[7]=r,e[8]=o,e[9]=l):l=e[9],l}function $e(n){const e=T.c(27),{seo:i,host:r,path:h}=n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={background:"#fff",border:"1px solid #dadce0"},e[0]=a):a=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f1f3f4"},e[1]=s):s=e[1];let o;e[2]!==i.favicon?(o=t.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:s,children:i.favicon?t.jsx("img",{src:i.favicon,alt:"",className:"size-full object-cover"}):t.jsx(ge,{size:12,color:"#9aa0a6"})}),e[2]=i.favicon,e[3]=o):o=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={color:"#202124"},e[4]=l):l=e[4];let m;e[5]!==r?(m=t.jsx("div",{className:"truncate text-[13px] leading-tight",style:l,children:r}),e[5]=r,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#4d5156"},e[7]=p):p=e[7];let d;e[8]!==r||e[9]!==h?(d=t.jsxs("div",{className:"truncate text-[12px] leading-tight",style:p,children:[r,h]}),e[8]=r,e[9]=h,e[10]=d):d=e[10];let c;e[11]!==m||e[12]!==d?(c=t.jsxs("div",{className:"min-w-0",children:[m,d]}),e[11]=m,e[12]=d,e[13]=c):c=e[13];let g;e[14]!==o||e[15]!==c?(g=t.jsxs("div",{className:"flex items-center gap-2",children:[o,c]}),e[14]=o,e[15]=c,e[16]=g):g=e[16];let f;e[17]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#1a0dab"},e[17]=f):f=e[17];const x=i.title??Z;let u;e[18]!==x?(u=t.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:f,children:x}),e[18]=x,e[19]=u):u=e[19];let j;e[20]===Symbol.for("react.memo_cache_sentinel")?(j={color:"#4d5156"},e[20]=j):j=e[20];const v=i.description??ee;let y;e[21]!==v?(y=t.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:j,children:v}),e[21]=v,e[22]=y):y=e[22];let S;return e[23]!==u||e[24]!==y||e[25]!==g?(S=t.jsxs("div",{className:"rounded-lg p-3 text-left",style:a,children:[g,u,y]}),e[23]=u,e[24]=y,e[25]=g,e[26]=S):S=e[26],S}function De(n){const e=T.c(20),{seo:i,host:r}=n;let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h={background:"#fff",border:"1px solid #e2e8f0"},e[0]=h):h=e[0];let a;e[1]!==i.image?(a=t.jsx(pe,{src:i.image,className:"h-40 w-full"}),e[1]=i.image,e[2]=a):a=e[2];let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s={borderTop:"1px solid #e2e8f0"},e[3]=s):s=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o={color:"#8a9099"},e[4]=o):o=e[4];let l;e[5]!==r?(l=t.jsx("div",{className:"truncate text-[11px]",style:o,children:r}),e[5]=r,e[6]=l):l=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#1c2024"},e[7]=m):m=e[7];const p=i.title??Z;let d;e[8]!==p?(d=t.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:m,children:p}),e[8]=p,e[9]=d):d=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[10]=c):c=e[10];const g=i.description??ee;let f;e[11]!==g?(f=t.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:g}),e[11]=g,e[12]=f):f=e[12];let x;e[13]!==f||e[14]!==l||e[15]!==d?(x=t.jsxs("div",{className:"px-3 py-2",style:s,children:[l,d,f]}),e[13]=f,e[14]=l,e[15]=d,e[16]=x):x=e[16];let u;return e[17]!==x||e[18]!==a?(u=t.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:h,children:[a,x]}),e[17]=x,e[18]=a,e[19]=u):u=e[19],u}function Ie(n){const e=T.c(23),{seo:i,host:r,accent:h}=n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={background:"#f0f2f5"},e[0]=a):a=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:{color:"#3b4045"},children:"Here's a post you might write with the link of your website:"}),e[1]=s):s=e[1];const o=`3px solid ${h}`;let l;e[2]!==o?(l={background:"#fff",borderLeft:o},e[2]=o,e[3]=l):l=e[3];let m;e[4]!==i.image?(m=t.jsx(pe,{src:i.image,className:"h-28 w-full",iconSize:18}),e[4]=i.image,e[5]=m):m=e[5];let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#1c2024"},e[6]=p):p=e[6];const d=i.title??Z;let c;e[7]!==d?(c=t.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:p,children:d}),e[7]=d,e[8]=c):c=e[8];let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g={color:"#60666c"},e[9]=g):g=e[9];const f=i.description??ee;let x;e[10]!==f?(x=t.jsx("div",{className:"line-clamp-2 text-[11px]",style:g,children:f}),e[10]=f,e[11]=x):x=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#8a9099"},e[12]=u):u=e[12];let j;e[13]!==r?(j=t.jsx("div",{className:"mt-0.5 text-[10px]",style:u,children:r}),e[13]=r,e[14]=j):j=e[14];let v;e[15]!==x||e[16]!==j||e[17]!==c?(v=t.jsxs("div",{className:"px-2.5 py-1.5",children:[c,x,j]}),e[15]=x,e[16]=j,e[17]=c,e[18]=v):v=e[18];let y;return e[19]!==v||e[20]!==l||e[21]!==m?(y=t.jsxs("div",{className:"rounded-lg p-2 text-left",style:a,children:[s,t.jsxs("div",{className:"overflow-hidden rounded-md",style:l,children:[m,v]})]}),e[19]=v,e[20]=l,e[21]=m,e[22]=y):y=e[22],y}function Ae(n){const e=T.c(33),{seo:i,host:r,accent:h,dark:a}=n,s=a?"#2b2d31":"#fff",o=a?"#00a8fc":"#1264a3",l=a?"#dbdee1":"#3b4045",m=a?"#949ba4":"#8a9099",p=a?"none":"1px solid #e2e8f0";let d;e[0]!==s||e[1]!==p?(d={background:s,border:p},e[0]=s,e[1]=p,e[2]=d):d=e[2];const c=`3px solid ${h}`;let g;e[3]!==c?(g={borderLeft:c,borderRadius:2},e[3]=c,e[4]=g):g=e[4];let f;e[5]!==m?(f={color:m},e[5]=m,e[6]=f):f=e[6];let x;e[7]!==r||e[8]!==f?(x=t.jsx("div",{className:"text-[10px]",style:f,children:r}),e[7]=r,e[8]=f,e[9]=x):x=e[9];let u;e[10]!==o?(u={color:o},e[10]=o,e[11]=u):u=e[11];const j=i.title??Z;let v;e[12]!==u||e[13]!==j?(v=t.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:u,children:j}),e[12]=u,e[13]=j,e[14]=v):v=e[14];let y;e[15]!==l?(y={color:l},e[15]=l,e[16]=y):y=e[16];const S=i.description??ee;let _;e[17]!==y||e[18]!==S?(_=t.jsx("div",{className:"line-clamp-2 text-[12px]",style:y,children:S}),e[17]=y,e[18]=S,e[19]=_):_=e[19];let N;e[20]!==_||e[21]!==x||e[22]!==v?(N=t.jsxs("div",{className:"min-w-0 flex-1",children:[x,v,_]}),e[20]=_,e[21]=x,e[22]=v,e[23]=N):N=e[23];let b;e[24]!==i.image?(b=t.jsx(pe,{src:i.image,className:"size-14 shrink-0 rounded",iconSize:16}),e[24]=i.image,e[25]=b):b=e[25];let k;e[26]!==N||e[27]!==b||e[28]!==g?(k=t.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:g,children:[N,b]}),e[26]=N,e[27]=b,e[28]=g,e[29]=k):k=e[29];let C;return e[30]!==k||e[31]!==d?(C=t.jsx("div",{className:"rounded-lg p-2.5 text-left",style:d,children:k}),e[30]=k,e[31]=d,e[32]=C):C=e[32],C}function Be(n){const e=T.c(17),{platform:i,seo:r,host:h,path:a}=n;let s;e[0]!==h||e[1]!==a||e[2]!==i.color||e[3]!==i.id||e[4]!==i.layout||e[5]!==r?(s=i.layout==="search"?t.jsx($e,{seo:r,host:h,path:a}):i.layout==="card"?t.jsx(De,{seo:r,host:h,path:a}):i.layout==="chat"?t.jsx(Ie,{seo:r,host:h,path:a,accent:i.color}):t.jsx(Ae,{seo:r,host:h,path:a,accent:i.color,dark:i.id==="discord"}),e[0]=h,e[1]=a,e[2]=i.color,e[3]=i.id,e[4]=i.layout,e[5]=r,e[6]=s):s=e[6];const o=s;let l;e[7]!==i.color?(l=t.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:i.color}}),e[7]=i.color,e[8]=l):l=e[8];let m;e[9]!==i.label?(m=t.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i.label}),e[9]=i.label,e[10]=m):m=e[10];let p;e[11]!==l||e[12]!==m?(p=t.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[l,m]}),e[11]=l,e[12]=m,e[13]=p):p=e[13];let d;return e[14]!==o||e[15]!==p?(d=t.jsxs("div",{children:[p,o]}),e[14]=o,e[15]=p,e[16]=d):d=e[16],d}function Ue(n){const e=T.c(17),{seo:i,url:r,path:h}=n,a=h===void 0?"/":h;let s,o,l;if(e[0]!==i||e[1]!==r){const u=Pe(i);s=u,o=he(u.image,r),l=he(u.favicon,r),e[0]=i,e[1]=r,e[2]=s,e[3]=o,e[4]=l}else s=e[2],o=e[3],l=e[4];let m;e[5]!==s||e[6]!==o||e[7]!==l?(m={...s,image:o,favicon:l},e[5]=s,e[6]=o,e[7]=l,e[8]=m):m=e[8];const p=m;let d;e[9]!==r?(d=Oe(r),e[9]=r,e[10]=d):d=e[10];const c=d,g=a==="/"?"":a;let f;e[11]!==g||e[12]!==c||e[13]!==p?(f=Le.map(u=>t.jsx(Be,{platform:u,seo:p,host:c,path:g},u.id)),e[11]=g,e[12]=c,e[13]=p,e[14]=f):f=e[14];let x;return e[15]!==f?(x=t.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:f}),e[15]=f,e[16]=x):x=e[16],x}function ki(n){const e=T.c(63),{orgSlug:i,virtualMcpId:r,branch:h,decofile:a,meta:s,target:o,previewBaseUrl:l,onSaved:m,onEditDefaultSeo:p,onBack:d}=n,c=Ne(a,o,s),g=c?.seoData,f=o.kind==="site"?"site":o.pageKey,[x,u]=Q.useState(f),[j,v]=Q.useState(null),[y,S]=Q.useState(0),[_,N]=Q.useState(void 0);x!==f&&(u(f),v(null),N(void 0),S(Me));const{persistSeo:b,persistRawSeo:k,flush:C,isPending:te}=ke({orgSlug:i,virtualMcpId:r,branch:h,target:o,resolved:c,onSaved:m}),K=o.kind==="page",ve=K?c?.rawSeoData:void 0,B=_!==void 0?_:ve,ye=K?_e(B)??void 0:void 0,w=j??ye??g??{},F=c?we(w,c):null,z=F&&(!K||Ce(B))?ze(F,s):null;let M;e[0]!==s?(M=Te(s),e[0]=s,e[1]=M):M=e[1];const oe=M;let R,G;e[2]!==a||e[3]!==w||e[4]!==s||e[5]!==o.kind?(R=o.kind==="page"?Fe(a,s)?.seoData??{}:{},G=o.kind==="page"?Ve(R,w):w,e[2]=a,e[3]=w,e[4]=s,e[5]=o.kind,e[6]=R,e[7]=G):(R=e[6],G=e[7]);const ie=G;let V;e[8]!==b||e[9]!==c||e[10]!==v?(V=E=>{if(!c)return;const de=E;v(de),b(de)},e[8]=b,e[9]=c,e[10]=v,e[11]=V):V=e[11];const se=V;let Y;e[12]!==v?(Y=()=>v(null),e[12]=v,e[13]=Y):Y=e[13];const le=Y;let H;e[14]!==S?(H=()=>S(Ke),e[14]=S,e[15]=H):H=e[15];const re=H;let W;e[16]!==C||e[17]!==d?(W=()=>{C(),d?.()},e[16]=C,e[17]=d,e[18]=W):W=e[18];const ae=W,P=o.kind==="page"?o.path:"/";let X;e[19]!==P||e[20]!==l||e[21]!==o.kind?(X=o.kind==="page"&&l?Ge(P,l):l??null,e[19]=P,e[20]=l,e[21]=o.kind,e[22]=X):X=e[22];const ne=X,ce=o.kind==="site"?"No site-level SEO block found.":c?"SEO schema not found for this page.":"Could not load page SEO.",q=K&&c,me=o.kind==="site"&&c&&z;let O;e[23]!==ae||e[24]!==o.kind||e[25]!==o.pageName?(O=o.kind==="page"?t.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[t.jsx("button",{type:"button",onClick:ae,title:o.pageName,className:"min-w-0 truncate rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:o.pageName}),t.jsx(be,{className:"size-3 shrink-0 text-muted-foreground/60"}),t.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx(fe,{size:16,className:"shrink-0 text-muted-foreground"}),t.jsx("span",{className:"text-sm font-medium",children:"Default SEO"}),t.jsx("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:"· applied to every page unless overridden"})]}),e[23]=ae,e[24]=o.kind,e[25]=o.pageName,e[26]=O):O=e[26];let L;e[27]!==te?(L=te&&t.jsx(Se,{size:14,className:"animate-spin text-muted-foreground"}),e[27]=te,e[28]=L):L=e[28];let $;e[29]!==p||e[30]!==o.kind?($=o.kind==="page"&&p&&t.jsxs(je,{type:"button",variant:"outline",size:"sm",onClick:p,children:[t.jsx(fe,{size:14}),"Edit default SEO"]}),e[29]=p,e[30]=o.kind,e[31]=$):$=e[31];let D;e[32]!==$||e[33]!==L?(D=t.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[L,$]}),e[32]=$,e[33]=L,e[34]=D):D=e[34];let I;e[35]!==D||e[36]!==O?(I=t.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[O,D]}),e[35]=D,e[36]=O,e[37]=I):I=e[37];let A;e[38]!==F||e[39]!==re||e[40]!==le||e[41]!==oe||e[42]!==B||e[43]!==w||e[44]!==ce||e[45]!==y||e[46]!==se||e[47]!==P||e[48]!==k||e[49]!==b||e[50]!==ie||e[51]!==ne||e[52]!==c||e[53]!==z||e[54]!==v||e[55]!==N||e[56]!==q||e[57]!==me||e[58]!==R?(A=!c||!q&&!me?t.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ce}):t.jsxs("div",{className:"flex min-h-0 flex-1",children:[t.jsx(ue,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"px-5 py-4",children:q?t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:"Empty fields inherit the default SEO. The preview shows the resolved result."}),t.jsx(Re,{rawSeo:B,innerSeo:w,defaultResolveType:oe,seoSchema:z,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:y,siteDefaultSeo:R,onPersistRaw:E=>{N(E),k(E)},onInnerChange:E=>{v(E),b(E)},onClearForm:le,onBumpFormKey:re})]}):z&&F&&t.jsx(Ee,{schema:z,resolveType:F,value:w,formResetKey:y,onChange:se})})}),t.jsx(ue,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"@container px-5 py-4",children:t.jsx(Ue,{seo:ie,url:ne,path:P})})})]}),e[38]=F,e[39]=re,e[40]=le,e[41]=oe,e[42]=B,e[43]=w,e[44]=ce,e[45]=y,e[46]=se,e[47]=P,e[48]=k,e[49]=b,e[50]=ie,e[51]=ne,e[52]=c,e[53]=z,e[54]=v,e[55]=N,e[56]=q,e[57]=me,e[58]=R,e[59]=A):A=e[59];let J;return e[60]!==I||e[61]!==A?(J=t.jsxs("div",{className:"flex h-full w-full flex-col",children:[I,A]}),e[60]=I,e[61]=A,e[62]=J):J=e[62],J}function Ke(n){return n+1}function Me(n){return n+1}function Ge(n,e){try{return new URL(n,e).href}catch{return e}}function Ve(n,e){const i=e.__resolveType,r=n.__resolveType;if(typeof i=="string"&&typeof r=="string"&&i!==r)return{...e};const h={...n};for(const[a,s]of Object.entries(e))a!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(h[a]=s));return h}export{ki as SeoEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{w as D,r as v,j as e,B as p,s as S,t as c,c as N}from"./index-DILk6pqr.js";import{D as k}from"./domain-settings-DYoOK4LM.js";import{P as f}from"./index-D7pI5IpD.js";import{I as l}from"./input-DntqEqec.js";import{S as z}from"./switch-ZSF60LRT.js";import{a as P,b as R,c as A,d as T}from"./use-org-sso-DvlbibgX.js";import{c as F,S as y,a as C,b as r,d as O}from"./settings-section-BXkrjyua.js";import{s as L}from"./Trash01-DGJ-LjB-.js";import{R as q}from"./require-capability-BlqPTqxe.js";import"./studio-tools-DWzikkvB.js";import"./badge-CBy4Rm2Q.js";import"./select-DeFnLWdd.js";import"./tooltip-DNJ6cRlV.js";import"./ChevronUp-CKICjFfX.js";import"./ChevronDown-BVJUps1_.js";import"./sidebar-D5TdEONj.js";import"./LayoutLeft-BsVzrTOG.js";import"./sheet-CgvO6KT7.js";import"./X-CXRx6PGX.js";import"./card-D0ElZuSJ.js";import"./ArrowUpRight-C7uYzZ0Z.js";import"./use-capability-OLvFRh1U.js";import"./access-gate-B_rz72ZQ.js";import"./capability-load-error-DmenvLwh.js";function B(){const{org:s}=D(),{data:a,isLoading:E}=P(s.id,s.slug),x=R(s.id,s.slug),h=A(s.id,s.slug),j=T(s.id,s.slug),[t,d]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[m,g]=v.useState(!1),u=a?.configured&&a.config,o=a?.config,I=()=>{o&&d({issuer:o.issuer,clientId:o.clientId,clientSecret:"",discoveryEndpoint:o.discoveryEndpoint??"",domain:o.domain,scopes:o.scopes.join(" ")}),g(!0)},w=async()=>{if(!t.issuer||!t.clientId||!t.domain){c.error("Issuer, Client ID, and Domain are required");return}if(!u&&!t.clientSecret){c.error("Client Secret is required for initial setup");return}try{await x.mutateAsync({issuer:t.issuer,clientId:t.clientId,clientSecret:t.clientSecret,discoveryEndpoint:t.discoveryEndpoint||void 0,scopes:t.scopes.split(/\s+/).filter(Boolean),domain:t.domain,enforced:o?.enforced??!1}),S(u?"sso_config_updated":"sso_configured",{organization_id:s.id,email_domain:t.domain}),c.success("SSO configuration saved"),g(!1)}catch(i){c.error(i instanceof Error?i.message:"Failed to save SSO config")}},b=async()=>{if(confirm("Are you sure you want to remove SSO configuration?"))try{await h.mutateAsync(),S("sso_config_removed",{organization_id:s.id}),c.success("SSO configuration removed"),g(!1)}catch{c.error("Failed to remove SSO config")}},_=async i=>{try{await j.mutateAsync(i),S("sso_enforcement_toggled",{organization_id:s.id,enforced:i}),c.success(i?"SSO enforcement enabled":"SSO enforcement disabled")}catch{c.error("Failed to toggle SSO enforcement")}};return e.jsx(f,{children:e.jsx(f.Content,{children:e.jsx(f.Body,{children:e.jsxs(F,{children:[e.jsx(f.Title,{children:"Security"}),e.jsx(k,{}),E?e.jsx("div",{className:"text-sm text-muted-foreground",children:"Loading..."}):e.jsxs(e.Fragment,{children:[u&&!m&&e.jsx(y,{title:"Single Sign-On",children:e.jsxs(C,{children:[e.jsx(r,{title:"Provider",action:e.jsx("span",{className:"font-medium",children:o.issuer})}),e.jsx(r,{title:"Client ID",action:e.jsx("span",{className:"font-mono text-xs",children:o.clientId})}),e.jsx(r,{title:"Domain",action:e.jsx("span",{className:"font-medium",children:o.domain})}),e.jsx(r,{title:"Scopes",action:e.jsx("span",{className:"font-mono text-xs",children:o.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(r,{title:"Enforce SSO",description:"Require all members to authenticate via SSO",action:e.jsx(z,{checked:o.enforced,onCheckedChange:_,disabled:j.isPending})}),e.jsxs(O,{children:[e.jsxs(p,{variant:"ghost",size:"sm",onClick:b,disabled:h.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(L,{size:14}),"Remove"]}),e.jsx(p,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${s.slug}/sso/authorize`,"_blank")},children:"Test SSO"}),e.jsx(p,{variant:"outline",size:"sm",onClick:I,children:"Edit configuration"})]})]})}),(!u||m)&&e.jsx(y,{title:"Single Sign-On",children:e.jsxs(C,{children:[e.jsx(r,{title:"Issuer URL",description:"The OIDC issuer URL of your identity provider.",action:e.jsx(l,{id:"sso-issuer",placeholder:"https://login.microsoftonline.com/{tenant}/v2.0",value:t.issuer,onChange:i=>d(n=>({...n,issuer:i.target.value})),className:"w-[280px]"})}),e.jsx(r,{title:"Client ID",action:e.jsx(l,{id:"sso-client-id",placeholder:"your-client-id",value:t.clientId,onChange:i=>d(n=>({...n,clientId:i.target.value})),className:"w-[280px]"})}),e.jsx(r,{title:"Client Secret",description:m&&u?"Leave empty to keep current":void 0,action:e.jsx(l,{id:"sso-client-secret",type:"password",placeholder:"your-client-secret",value:t.clientSecret,onChange:i=>d(n=>({...n,clientSecret:i.target.value})),className:"w-[280px]"})}),e.jsx(r,{title:"Email Domain",description:"The email domain this SSO provider covers.",action:e.jsx(l,{id:"sso-domain",placeholder:"company.com",value:t.domain,onChange:i=>d(n=>({...n,domain:i.target.value})),className:"w-[280px]"})}),e.jsx(r,{title:"Scopes",action:e.jsx(l,{id:"sso-scopes",placeholder:"openid email profile",value:t.scopes,onChange:i=>d(n=>({...n,scopes:i.target.value})),className:"w-[280px]"})}),e.jsx(r,{title:"Discovery Endpoint",description:"Optional — auto-detected from issuer if omitted.",action:e.jsx(l,{id:"sso-discovery",placeholder:"Auto-detected from issuer",value:t.discoveryEndpoint,onChange:i=>d(n=>({...n,discoveryEndpoint:i.target.value})),className:"w-[280px]"})}),e.jsxs(O,{children:[m&&e.jsx(p,{variant:"outline",size:"sm",onClick:()=>g(!1),children:"Cancel"}),e.jsx(p,{onClick:w,disabled:x.isPending,size:"sm",children:x.isPending?"Saving...":m?"Update":"Configure SSO"})]})]})})]})]})})})})}function me(){const s=N.c(1);let a;return s[0]===Symbol.for("react.memo_cache_sentinel")?(a=e.jsx(q,{capability:"org:manage",area:"security",children:e.jsx(B,{})}),s[0]=a):a=s[0],a}export{me as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CQVApMRy.js","assets/index-DILk6pqr.js","assets/index-fHHzFvHF.css","assets/XCircle-BLfqcVud.js","assets/CheckCircle-CNYYpNQm.js","assets/Settings02-Dd9sO-oW.js","assets/use-mcp-client-BdmHrvF5.js","assets/auth-B4fF5n_6.js","assets/useInfiniteQuery-D-pnegbi.js","assets/use-infinite-scroll-CCIuAqs7.js","assets/studio-tools-DWzikkvB.js","assets/badge-CBy4Rm2Q.js","assets/input-DntqEqec.js","assets/dropdown-menu-CppAWsT_.js","assets/ChevronUp-CKICjFfX.js","assets/ChevronRight-MnjJHQHy.js","assets/DotsVertical-Bl5GcKp2.js","assets/table-CAdy-hg6.js","assets/toggle-group-C7SpEcqz.js","assets/use-view-mode-CslUtkLV.js","assets/tooltip-DNJ6cRlV.js","assets/FilterLines-B_0u5HAa.js","assets/Globe01-CgHdNpOL.js","assets/SearchMd-B6GaXN7Q.js","assets/dialog-CwfeALzq.js","assets/X-CXRx6PGX.js","assets/AlertCircle-qY5ngKLr.js","assets/Upload01-CzOJ3UuD.js","assets/alert-dialog-D5KOx-3H.js","assets/card-D0ElZuSJ.js","assets/Trash01-DGJ-LjB-.js","assets/label-NJtv9Xrj.js","assets/select-DeFnLWdd.js","assets/ChevronDown-BVJUps1_.js","assets/switch-ZSF60LRT.js","assets/textarea-Fs50NfWG.js","assets/checkbox-UCOb4UyX.js","assets/Eye-C6daRddp.js","assets/LinkExternal01-B9RsD2Us.js","assets/use-copy-CuQAt0Vj.js","assets/Key01-B0h1bFlR.js","assets/Plus-DfIcHYEj.js","assets/mcp-oauth-BTUV7ht5.js","assets/Play-Blum-MoR.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as m,b as n,e as c,j as t,i as p,r as l,al as f}from"./index-DILk6pqr.js";import{R as u}from"./require-capability-BlqPTqxe.js";import"./use-capability-OLvFRh1U.js";import"./access-gate-B_rz72ZQ.js";import"./capability-load-error-DmenvLwh.js";const g=l.lazy(()=>f(()=>import("./registry-layout-CQVApMRy.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(p,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./use-infinite-scroll-CCIuAqs7.js";import{cJ as i}from"./index-DILk6pqr.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./use-infinite-scroll-CCIuAqs7.js";import{cJ as u,am as n}from"./index-DILk6pqr.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{c as V,r as U,j as o,l as J,B as Y}from"./index-DILk6pqr.js";import{T as et,f as ct}from"./agent-icon-CKGTD-zQ.js";import{n as mt}from"./ChevronLeft-CCp89cqe.js";import{i as dt}from"./ChevronRight-MnjJHQHy.js";import{L as ft}from"./label-NJtv9Xrj.js";import{S as nt}from"./scroll-area-CN3_YfBC.js";import{S as pt}from"./switch-ZSF60LRT.js";import{T as ut,b as ht,a as gt}from"./tooltip-DNJ6cRlV.js";import{V as xt}from"./view-mode-toggle-k-q_tsqg.js";import"./AlertCircle-qY5ngKLr.js";import"./Tool01-hxrY31T7.js";import"./SwitchHorizontal01-CrHLIeRP.js";import"./Settings02-Dd9sO-oW.js";import"./XCircle-BLfqcVud.js";import"./ArrowUpRight-C7uYzZ0Z.js";import"./ZapSquare-iu6ldaYZ.js";import"./Users03-BZYHqQGQ.js";import"./CheckCircle-CNYYpNQm.js";import"./ChevronUp-CKICjFfX.js";import"./ChevronDown-BVJUps1_.js";import"./DotsVertical-Bl5GcKp2.js";import"./Stars02-DHcW8N80.js";import"./Eye-C6daRddp.js";import"./ZoomOut-6aWLXLSs.js";import"./Globe01-CgHdNpOL.js";import"./FilterLines-B_0u5HAa.js";import"./Star01-Be_MjtDZ.js";import"./Globe04-DEangwXD.js";import"./HardDrive-V1dbAXdv.js";import"./Key01-B0h1bFlR.js";import"./LayoutLeft-BsVzrTOG.js";import"./LinkExternal01-B9RsD2Us.js";import"./Monitor01-DAM-u2R2.js";import"./Sun-DO_Gt4P2.js";import"./Palette-DT8p7ZEl.js";import"./Play-Blum-MoR.js";import"./Plus-DfIcHYEj.js";import"./SearchMd-B6GaXN7Q.js";import"./Shield01-DLANpVD0.js";import"./Stars01-D3ha2IeY.js";import"./Trash01-DGJ-LjB-.js";import"./Upload01-CzOJ3UuD.js";import"./User01-DR_UC5XH.js";import"./Users01-cxH39exM.js";import"./XClose-4ak3u3qT.js";import"./X-CXRx6PGX.js";import"./Zap-DVtX-UPi.js";import"./use-clock-tick-CWHp6nCX.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CuQAt0Vj.js";import"./file-type-icon-CdZyaTKH.js";import"./dialog-CwfeALzq.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-CsHe6BgD.js";import"./use-mcp-client-BdmHrvF5.js";import"./auth-B4fF5n_6.js";import"./chat-context-SWJ_FDEf.js";import"./hooks-CLt3SUb8.js";import"./decopilot-sse-pool-Cd7s5cwH.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-OPb4DVO0.js";import"./use-collections-D0HN84Lz.js";import"./use-ai-providers-CVKwKs8r.js";import"./studio-tools-DWzikkvB.js";import"./use-organization-settings-a8PuTrsa.js";import"./shell-layout-DAyf8ZZZ.js";import"./avatar-3b85MUU5.js";import"./required-auth-layout-DdFOKjMd.js";import"./use-org-sso-DvlbibgX.js";import"./sheet-CgvO6KT7.js";import"./integration-icon-CxxjWIPp.js";import"./use-navigate-to-agent-Qyyx-mm9.js";import"./use-connection-Bj1m8ynL.js";import"./use-mcp-prompts-BwQLmLZi.js";import"./form-xYXw--Kt.js";import"./input-DntqEqec.js";import"./select-DeFnLWdd.js";const bt=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),yt=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Tt=new Date(-864e13),vt=new Date(864e13),jt=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,Nt=/\/flags\/multivariate\.ts$/;function wt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function kt(e){if(!e||typeof e!="object")return null;const{start:t,end:n}=e,r=typeof t=="string",l=typeof n=="string";if(!r&&!l)return null;const s=r?new Date(t):Tt,m=l?new Date(n):vt;return Number.isNaN(s.getTime())||Number.isNaN(m.getTime())||r&&l&&m.getTime()<=s.getTime()?null:{start:s,end:m,openStart:!r,openEnd:!l}}function rt(e,t){if(!e||typeof e!="object")return;const n=e.__resolveType;if(typeof n=="string"){if(bt.has(n)){const r=kt(e);r&&t.push(r);return}if(yt.has(n)){const r=e.matchers;if(Array.isArray(r))for(const l of r)rt(l,t)}}}function _t(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!jt.test(t))return!1;const n=e.variants;return Array.isArray(n)}function Mt(e){if(typeof e=="string"){const a=e.trim();if(a.length===0)return null;try{const i=new URL(a).pathname.split("/").filter(Boolean),d=i[i.length-1];if(d)return decodeURIComponent(d)}catch{}return a.length>80?`${a.slice(0,77)}…`:a}if(!e||typeof e!="object")return null;const t=e,n=t.config,l=t.desktop?.media,s=[t.title,t.name,t.label,t.alt,n?.title,n?.name,n?.typeAlert?.message,l?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const a of s)if(typeof a=="string"&&a.trim().length>0)return a.trim();const m=t.__resolveType;if(typeof m=="string"){const c=(m.split("/").pop()??m).replace(/\.(tsx?|jsx?)$/i,"");if(c.length>0)return c}return null}function St(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];typeof r=="number"?t.length>0?t[t.length-1]+=`[${r}]`:t.push(`[${r}]`):t.push(r)}return t.join(" · ")}function W(e,t,n,r,l){if(_t(e)){const s=e.variants,m=e.__resolveType,a=Nt.test(m)?"":St(r);s.forEach((c,i)=>{if(!c||typeof c!="object")return;const d=c,f=[];if(rt(d.rule,f),f.length===0)return;const x=Mt(d.value)??(a||n);for(const h of f)l.push({blockKey:t,blockLabel:n,innerPath:a,variantIndex:i,start:h.start,end:h.end,openStart:h.openStart,openEnd:h.openEnd,label:x,flagResolveType:m})});for(let c=0;c<s.length;c++){const i=s[c];i&&typeof i=="object"&&W(i.value,t,n,[...r,"variants",c,"value"],l)}return}if(Array.isArray(e)){for(let s=0;s<e.length;s++)W(e[s],t,n,[...r,s],l);return}if(e&&typeof e=="object")for(const[s,m]of Object.entries(e))s!=="__resolveType"&&W(m,t,n,[...r,s],l)}function Et(e){if(!e)return[];const t=[];for(const[n,r]of Object.entries(e))W(r,n,wt(n),[],t);return t.sort((n,r)=>n.start.getTime()-r.start.getTime())}function At(e){const t=[...new Set(e)].sort(),n=new Map;return t.forEach((r,l)=>{const s=l*137.508%360;n.set(r,{bg:`oklch(0.62 0.14 ${s})`,text:"white",border:`oklch(0.50 0.14 ${s})`})}),n}const Dt={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function st(e,t){return e.get(t)??Dt}const $t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ot=["January","February","March","April","May","June","July","August","September","October","November","December"],it=1440*60*1e3;function P(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function at(e){return new Date(e.getFullYear(),e.getMonth(),1)}function F(e,t){return new Date(e.getFullYear(),e.getMonth()+t,1)}function z(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function K(e,t){return Math.round((P(e).getTime()-P(t).getTime())/it)}function Ct(e){const t=(e.getTime()-P(e).getTime())/it;return Math.min(Math.max(t,0),1)}function q(e,t){return K(e,t)+Ct(e)}function Rt(e){const t=z(e,-e.getDay()),n=[];for(let r=0;r<6;r++){const l=[];for(let s=0;s<7;s++)l.push(z(t,r*7+s));n.push(l)}for(;n.length>0&&n[n.length-1].every(r=>r.getMonth()!==e.getMonth());)n.pop();return n}function Lt(e,t){const n=P(e[0]),r=z(n,7),l=n.getTime(),s=r.getTime(),m=[];for(const i of t){const d=P(i.start),f=P(i.end);if(f.getTime()<n.getTime()||d.getTime()>=r.getTime())continue;const u=d.getTime()<n.getTime()?n:d,x=f.getTime()>=r.getTime()?z(r,-1):f,h=K(u,n),g=K(x,u)+1;if(g<=0)continue;const b=Math.max(i.start.getTime(),l),y=Math.min(i.end.getTime(),s),T=q(new Date(b),n),p=Math.max(q(new Date(y),n)-T,0);p<=0||m.push({variant:i,startCol:h,span:g,leftUnits:T,widthUnits:p})}m.sort((i,d)=>i.startCol-d.startCol||d.span-i.span||i.variant.blockKey.localeCompare(d.variant.blockKey));const a=[],c=[];for(const i of m){let d=a.findIndex(f=>f<=i.startCol);d===-1&&(d=a.length,a.push(0)),a[d]=i.startCol+i.span,c.push({...i,lane:d})}return c}const Q=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Ot(e){const t=e.openStart?"Always":Q.format(e.start),n=e.openEnd?"Ongoing":Q.format(e.end);return`${t} → ${n}`}function Pt(e){const t=V.c(17),{variant:n}=e;let r;t[0]!==n.blockLabel?(r=o.jsx("div",{className:"font-semibold",children:n.blockLabel}),t[0]=n.blockLabel,t[1]=r):r=t[1];let l;t[2]!==n.innerPath?(l=n.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:n.innerPath}),t[2]=n.innerPath,t[3]=l):l=t[3];let s;t[4]!==n.blockLabel||t[5]!==n.innerPath||t[6]!==n.label?(s=n.label!==n.blockLabel&&n.label!==n.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:n.label}),t[4]=n.blockLabel,t[5]=n.innerPath,t[6]=n.label,t[7]=s):s=t[7];let m;t[8]!==n?(m=Ot(n),t[8]=n,t[9]=m):m=t[9];let a;t[10]!==m?(a=o.jsx("div",{className:"mt-1",children:m}),t[10]=m,t[11]=a):a=t[11];let c;return t[12]!==r||t[13]!==l||t[14]!==s||t[15]!==a?(c=o.jsx(gt,{children:o.jsxs("div",{className:"text-xs",children:[r,l,s,a]})}),t[12]=r,t[13]=l,t[14]=s,t[15]=a,t[16]=c):c=t[16],c}const X=16;function It(e,t){const n=e?"transparent":"#000 0",r=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${n}, #000 ${X}px, #000 calc(100% - ${X}px), ${r})`}function lt(e){const t=V.c(26),{variant:n,color:r,style:l,children:s,fadeStart:m,fadeEnd:a}=e,c=m===void 0?!1:m,i=a===void 0?!1:a;let d;t[0]!==i||t[1]!==c?(d=It(c,i),t[0]=i,t[1]=c,t[2]=d):d=t[2];const f=d;let u;t[3]!==c?(u=c&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=c,t[4]=u):u=t[4];let x;t[5]!==i?(x=i&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=i,t[6]=x):x=t[6];let h;t[7]!==f?(h=f&&{maskImage:f,WebkitMaskImage:f},t[7]=f,t[8]=h):h=t[8];let g;t[9]!==r.bg||t[10]!==r.text||t[11]!==l||t[12]!==u||t[13]!==x||t[14]!==h?(g={background:r.bg,color:r.text,borderRadius:4,...u,...x,...h,...l},t[9]=r.bg,t[10]=r.text,t[11]=l,t[12]=u,t[13]=x,t[14]=h,t[15]=g):g=t[15];let b;t[16]!==s?(b=o.jsx("span",{className:"truncate",children:s}),t[16]=s,t[17]=b):b=t[17];let y;t[18]!==g||t[19]!==b?(y=o.jsx(ut,{asChild:!0,children:o.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:g,children:b})}),t[18]=g,t[19]=b,t[20]=y):y=t[20];let T;t[21]!==n?(T=o.jsx(Pt,{variant:n}),t[21]=n,t[22]=T):T=t[22];let p;return t[23]!==T||t[24]!==y?(p=o.jsxs(ht,{children:[y,T]}),t[23]=T,t[24]=y,t[25]=p):p=t[25],p}function kn(e){const t=V.c(49),{decofile:n}=e,[r,l]=U.useState("calendar"),[s,m]=U.useState(Bt),[a,c]=U.useState(!1);let i,d,f;if(t[0]!==n||t[1]!==a){const E=Et(n);i=E.filter(Ht).length,f=a?E:E.filter(Vt),d=At(f.map(Ft)),t[0]=n,t[1]=a,t[2]=i,t[3]=d,t[4]=f}else i=t[2],d=t[3],f=t[4];const u=d;let x;t[5]===Symbol.for("react.memo_cache_sentinel")?(x=()=>m(at(new Date)),t[5]=x):x=t[5];const h=x;let g;t[6]!==r?(g=()=>m(E=>r==="calendar"?F(E,-1):F(E,-3)),t[6]=r,t[7]=g):g=t[7];const b=g;let y;t[8]!==r?(y=()=>m(E=>r==="calendar"?F(E,1):F(E,3)),t[8]=r,t[9]=y):y=t[9];const T=y;let p;t[10]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(Y,{variant:"outline",size:"sm",onClick:h,children:"Today"}),t[10]=p):p=t[10];let w;t[11]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(mt,{size:16}),t[11]=w):w=t[11];let k;t[12]!==b?(k=o.jsx(Y,{variant:"ghost",size:"icon",className:"size-8",onClick:b,"aria-label":"Previous",children:w}),t[12]=b,t[13]=k):k=t[13];let _;t[14]===Symbol.for("react.memo_cache_sentinel")?(_=o.jsx(dt,{size:16}),t[14]=_):_=t[14];let M;t[15]!==T?(M=o.jsx(Y,{variant:"ghost",size:"icon",className:"size-8",onClick:T,"aria-label":"Next",children:_}),t[15]=T,t[16]=M):M=t[16];const A=ot[s.getMonth()];let S;t[17]!==s?(S=s.getFullYear(),t[17]=s,t[18]=S):S=t[18];let v;t[19]!==A||t[20]!==S?(v=o.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[A," ",S]}),t[19]=A,t[20]=S,t[21]=v):v=t[21];let j;t[22]!==v||t[23]!==k||t[24]!==M?(j=o.jsxs("div",{className:"flex items-center gap-2",children:[p,k,M,v]}),t[22]=v,t[23]=k,t[24]=M,t[25]=j):j=t[25];let D;t[26]!==i||t[27]!==a?(D=i>0&&o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(pt,{id:"show-ongoing",checked:a,onCheckedChange:c}),o.jsxs(ft,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:["Show ongoing (",i,")"]})]}),t[26]=i,t[27]=a,t[28]=D):D=t[28];let L;t[29]===Symbol.for("react.memo_cache_sentinel")?(L={value:"calendar",icon:o.jsx(et,{}),label:"Calendar"},t[29]=L):L=t[29];let I;t[30]===Symbol.for("react.memo_cache_sentinel")?(I=[L,{value:"timeline",icon:o.jsx(ct,{}),label:"Timeline"}],t[30]=I):I=t[30];let N;t[31]!==r?(N=o.jsx(xt,{value:r,onValueChange:l,options:I}),t[31]=r,t[32]=N):N=t[32];let R;t[33]!==D||t[34]!==N?(R=o.jsxs("div",{className:"flex items-center gap-4",children:[D,N]}),t[33]=D,t[34]=N,t[35]=R):R=t[35];let $;t[36]!==j||t[37]!==R?($=o.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,R]}),t[36]=j,t[37]=R,t[38]=$):$=t[38];let C;t[39]!==u||t[40]!==s||t[41]!==i||t[42]!==a||t[43]!==f||t[44]!==r?(C=f.length===0?o.jsx(Wt,{hiddenOngoing:a?0:i}):r==="calendar"?o.jsx(Ut,{monthStart:s,variants:f,colorMap:u}):o.jsx(Jt,{monthStart:s,variants:f,colorMap:u}),t[39]=u,t[40]=s,t[41]=i,t[42]=a,t[43]=f,t[44]=r,t[45]=C):C=t[45];let O;return t[46]!==$||t[47]!==C?(O=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[$,C]}),t[46]=$,t[47]=C,t[48]=O):O=t[48],O}function Ft(e){return e.blockKey}function Vt(e){return!e.openEnd}function Ht(e){return e.openEnd}function Bt(){return at(new Date)}function Wt(e){const t=V.c(3),{hiddenOngoing:n}=e,r=n===void 0?0:n;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(et,{size:24,className:"text-muted-foreground/60"}),t[0]=l):l=t[0];let s;return t[1]!==r?(s=o.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[l,r>0?o.jsxs(o.Fragment,{children:[o.jsx("div",{children:"No dated variants in view."}),o.jsxs("div",{className:"text-xs text-muted-foreground/80",children:[r," ongoing"," ",r===1?"variant is":"variants are"," hidden — enable “Show ongoing” to view."]})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{children:"No scheduled variants."}),o.jsx("div",{className:"text-xs text-muted-foreground/80",children:"Variants gated by a date matcher appear here."})]})]}),t[1]=r,t[2]=s):s=t[2],s}const G=20,Z=2,tt=28,zt=6;function Ut(e){const t=V.c(17),{monthStart:n,variants:r,colorMap:l}=e;let s,m,a,c,i;if(t[0]!==l||t[1]!==n||t[2]!==r){const u=Rt(n),x=P(new Date);s=nt,i="flex-1 min-h-0",m="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:$t.map(Gt)}),t[8]=a):a=t[8],c=u.map((h,g)=>{const b=Lt(h,r),y=b.reduce(Yt,0),T=tt+y*(G+Z)+8;return o.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[h.map((p,w)=>{const k=p.getMonth()===n.getMonth(),_=p.getTime()===x.getTime();return o.jsx("div",{className:J("border-r last:border-r-0 px-2 pt-1.5 text-xs",k?"bg-background":"bg-muted/30 text-muted-foreground"),children:o.jsx("span",{className:J("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",_&&"bg-primary text-primary-foreground font-semibold"),children:p.getDate()})},w)}),b.map((p,w)=>{const k=st(l,p.variant.blockKey),_=tt+p.lane*(G+Z),M=p.leftUnits/7*100,A=p.widthUnits/7*100,S=p.variant.openStart&&g===0,v=p.variant.openEnd&&g===u.length-1;return o.jsxs(lt,{variant:p.variant,color:k,fadeStart:S,fadeEnd:v,style:{top:_,left:`calc(${M}% + 2px)`,width:`calc(${A}% - 4px)`,minWidth:zt,height:G},children:[p.variant.blockLabel,p.variant.label!==p.variant.blockLabel&&o.jsxs("span",{className:"opacity-70",children:[" · ",p.variant.label]})]},`${g}-${w}`)})]},g)}),t[0]=l,t[1]=n,t[2]=r,t[3]=s,t[4]=m,t[5]=a,t[6]=c,t[7]=i}else s=t[3],m=t[4],a=t[5],c=t[6],i=t[7];let d;t[9]!==m||t[10]!==a||t[11]!==c?(d=o.jsxs("div",{className:m,children:[a,c]}),t[9]=m,t[10]=a,t[11]=c,t[12]=d):d=t[12];let f;return t[13]!==s||t[14]!==i||t[15]!==d?(f=o.jsx(s,{className:i,children:d}),t[13]=s,t[14]=i,t[15]=d,t[16]=f):f=t[16],f}function Yt(e,t){return Math.max(e,t.lane+1)}function Gt(e){return o.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const B=4,Kt=32,H=240;function Jt(e){const t=V.c(27),{monthStart:n,variants:r,colorMap:l}=e,s=n;let m,a,c,i,d,f;if(t[0]!==l||t[1]!==n||t[2]!==s||t[3]!==r){const h=F(n,B),g=new Date,b=new Map;for(const v of r){const j=b.get(v.blockKey)??[];j.push(v),b.set(v.blockKey,j)}const y=Array.from(b.entries()).sort(Xt),T=h.getTime()-s.getTime(),p=v=>(Math.max(s.getTime(),Math.min(h.getTime(),v.getTime()))-s.getTime())/T*100;let w;t[10]!==s?(w=(v,j)=>F(s,j),t[10]=s,t[11]=w):w=t[11];const k=Array.from({length:B},w),_=g.getTime()>=s.getTime()&&g.getTime()<=h.getTime()?p(g):null;m=nt,f="flex-1 min-h-0",a="min-w-[900px] relative";let M;t[12]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:{width:H},children:"Variant / Block"}),t[12]=M):M=t[12];let A;t[13]===Symbol.for("react.memo_cache_sentinel")?(A={gridTemplateColumns:`repeat(${B}, minmax(0, 1fr))`},t[13]=A):A=t[13];const S=k.map(Qt);t[14]!==S?(c=o.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[M,o.jsx("div",{className:"flex-1 grid",style:A,children:S})]}),t[14]=S,t[15]=c):c=t[15],t[16]!==_?(i=_!==null&&o.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${H}px + (100% - ${H}px) * ${_} / 100)`},children:o.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:"Today"})}),t[16]=_,t[17]=i):i=t[17],d=y.map(v=>{const[j,D]=v,L=st(l,j),I=D[0]?.blockLabel??j;return o.jsxs("div",{children:[o.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:o.jsx("div",{className:"px-3 truncate",style:{width:H},children:I})}),D.map((N,R)=>o.jsxs("div",{className:"flex border-b items-center",style:{height:Kt},children:[o.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:H},children:[o.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:L.bg}}),o.jsx("span",{className:"truncate text-foreground/80",children:N.label})]}),o.jsxs("div",{className:"relative flex-1 h-full",children:[o.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${B}, minmax(0, 1fr))`},children:k.map(qt)}),(()=>{const $=Math.max(N.start.getTime(),s.getTime()),C=Math.min(N.end.getTime(),h.getTime());if(C<=$)return null;const O=p(new Date($)),E=p(new Date(C))-O;return o.jsx(lt,{variant:N,color:L,fadeStart:N.openStart,fadeEnd:N.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${O}%`,width:`calc(${E}% - 2px)`,height:22},children:N.label})})()]})]},R))]},j)}),t[0]=l,t[1]=n,t[2]=s,t[3]=r,t[4]=m,t[5]=a,t[6]=c,t[7]=i,t[8]=d,t[9]=f}else m=t[4],a=t[5],c=t[6],i=t[7],d=t[8],f=t[9];let u;t[18]!==a||t[19]!==c||t[20]!==i||t[21]!==d?(u=o.jsxs("div",{className:a,children:[c,i,d]}),t[18]=a,t[19]=c,t[20]=i,t[21]=d,t[22]=u):u=t[22];let x;return t[23]!==m||t[24]!==f||t[25]!==u?(x=o.jsx(m,{className:f,children:u}),t[23]=m,t[24]=f,t[25]=u,t[26]=x):x=t[26],x}function qt(e,t){return o.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function Qt(e,t){return o.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ot[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function Xt(e,t){return e[0].localeCompare(t[0])}export{kn as VariantCalendar};
|