decocms 3.89.3 → 3.90.1
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-NC3dB7os.js → AlertCircle-BFW82Glo.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-D9dn8W9B.js → ArrowUpRight-B8NHPBEV.js} +1 -1
- package/dist/client/assets/{CheckCircle-4xU28_ze.js → CheckCircle-DNGMJpxK.js} +1 -1
- package/dist/client/assets/{ChevronDown-4vfFBrpS.js → ChevronDown-CIJ7-0w6.js} +1 -1
- package/dist/client/assets/{ChevronLeft-CCAFk4Lh.js → ChevronLeft-DwrsIjn7.js} +1 -1
- package/dist/client/assets/{ChevronRight-BSaK-g_n.js → ChevronRight-CFrkN22M.js} +1 -1
- package/dist/client/assets/{ChevronUp-CIoJSXpm.js → ChevronUp-5yVty_-J.js} +1 -1
- package/dist/client/assets/{DotsVertical-DXhOiROl.js → DotsVertical-B_6X1vi7.js} +1 -1
- package/dist/client/assets/{Eye-BcF7vo02.js → Eye-CVnhloDi.js} +1 -1
- package/dist/client/assets/{FilterLines-CyP0eiMt.js → FilterLines-aCF-EO8Z.js} +1 -1
- package/dist/client/assets/{Globe01-cpwm3ZU4.js → Globe01-CThKgW6h.js} +1 -1
- package/dist/client/assets/{Globe04-DdU789Mf.js → Globe04-BM8I7PlJ.js} +1 -1
- package/dist/client/assets/{HardDrive-8lyy5Dp-.js → HardDrive-CnFxYfXA.js} +1 -1
- package/dist/client/assets/{Key01-C3jXuyTV.js → Key01-NlklfK2W.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BA3GeXV2.js → LayoutLeft-DeMAAMUQ.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Dc9R-z7y.js → LinkExternal01-BQAshidh.js} +1 -1
- package/dist/client/assets/{Monitor01-4eRzNp1q.js → Monitor01-Dvufl23t.js} +1 -1
- package/dist/client/assets/{Palette-DziwArEq.js → Palette-BpmN1_H8.js} +1 -1
- package/dist/client/assets/{Play-BTFQj3qh.js → Play-BLi-TNw8.js} +1 -1
- package/dist/client/assets/{Plus-pFzKRSyH.js → Plus-DiPCnPyI.js} +1 -1
- package/dist/client/assets/{SearchMd-BiaNZC1b.js → SearchMd-CKZEESAy.js} +1 -1
- package/dist/client/assets/{Settings02-Bvzlcm1U.js → Settings02-xJ3tiWNi.js} +1 -1
- package/dist/client/assets/{Shield01-CtXmxEJK.js → Shield01-CJTqMoEC.js} +1 -1
- package/dist/client/assets/{Star01-B2kdQndt.js → Star01-BO7uFQpG.js} +1 -1
- package/dist/client/assets/{Stars01-C_5LYi93.js → Stars01-BXxzvxO4.js} +1 -1
- package/dist/client/assets/{Stars02-i3gYlhXk.js → Stars02-CjJwnXFf.js} +1 -1
- package/dist/client/assets/{Sun-CoqE3qoL.js → Sun-O-ShYNtI.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CPEaTyhx.js → SwitchHorizontal01-Bw76z7hc.js} +1 -1
- package/dist/client/assets/{Tool01-BmUpgiVH.js → Tool01-D2a8I_Gf.js} +1 -1
- package/dist/client/assets/{Trash01-B2-9vQgJ.js → Trash01-DmRbdJUk.js} +1 -1
- package/dist/client/assets/{Upload01-FAxCvObz.js → Upload01-Ccj_plFg.js} +1 -1
- package/dist/client/assets/{User01-C1HCSK6y.js → User01-BzP8oKZ3.js} +1 -1
- package/dist/client/assets/{Users01-D0cghbTw.js → Users01-CdAaoMtW.js} +1 -1
- package/dist/client/assets/{Users03-vYWz866I.js → Users03-fR0V8I72.js} +1 -1
- package/dist/client/assets/{X-DVenJxl2.js → X-BAIghubv.js} +1 -1
- package/dist/client/assets/{XCircle-DkV5O0gt.js → XCircle-CdCz4npr.js} +1 -1
- package/dist/client/assets/{XClose-1aztqZN5.js → XClose-vwNqWD2m.js} +1 -1
- package/dist/client/assets/{Zap-CxBpS0TW.js → Zap-BJK90vlv.js} +1 -1
- package/dist/client/assets/{ZapSquare-BupPfcYG.js → ZapSquare-DuHMAFt7.js} +1 -1
- package/dist/client/assets/{ZoomOut-DXDDUqzg.js → ZoomOut-Bpyue_Zw.js} +1 -1
- package/dist/client/assets/{access-gate-DJ3w7Rqa.js → access-gate-DcWgdeR9.js} +1 -1
- package/dist/client/assets/{add-section-modal-B_FGzKHG.js → add-section-modal-DT5a2xfl.js} +1 -1
- package/dist/client/assets/{agent-icon-B9Rg96af.js → agent-icon-Dh6cDydc.js} +1 -1
- package/dist/client/assets/{agents-list-BpBQ33-8.js → agents-list-DTju_D-G.js} +1 -1
- package/dist/client/assets/ai-providers-lyzQuhAE.js +1 -0
- package/dist/client/assets/{alert-DBActzOw.js → alert-BPkaPX8i.js} +1 -1
- package/dist/client/assets/{alert-dialog-TZS2F66y.js → alert-dialog-szhg9nbv.js} +3 -3
- package/dist/client/assets/app-editor-C-GJQzq3.js +1 -0
- package/dist/client/assets/{auth-catchall-jfA3V8jK.js → auth-catchall-C5WYUBq2.js} +1 -1
- package/dist/client/assets/{auth-entry-CzM_DcXD.js → auth-entry-v4IJxk9p.js} +1 -1
- package/dist/client/assets/{auth-split-layout-D8jZEv56.js → auth-split-layout-D6VmaiAh.js} +1 -1
- package/dist/client/assets/{auth-B2SyT5jq.js → auth-ylAHlhew.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-ugENWEdg.js → authenticate-and-persist-oauth-v9BhfxwO.js} +1 -1
- package/dist/client/assets/{automation-list-row-RaQMgsZa.js → automation-list-row-BDQR6lip.js} +1 -1
- package/dist/client/assets/{automation-runs-DEnZLNcv.js → automation-runs-CE9uyAtN.js} +1 -1
- package/dist/client/assets/automations-YJ5Px3_a.js +1 -0
- package/dist/client/assets/{avatar-Cz89OzST.js → avatar-C54BAvwV.js} +1 -1
- package/dist/client/assets/{badge-DemqTgjN.js → badge-WRzJoL2O.js} +1 -1
- package/dist/client/assets/{block-document-DnpmRre2.js → block-document-DUdX-3AH.js} +1 -1
- package/dist/client/assets/{brand-context-44FYoRF-.js → brand-context-BZ1-31a8.js} +1 -1
- package/dist/client/assets/buckets-DsHDoGzh.js +1 -0
- package/dist/client/assets/{capability-load-error-CD0k_ZBV.js → capability-load-error-BhBYuN70.js} +1 -1
- package/dist/client/assets/{card-DWocPikY.js → card-CZbszR9z.js} +1 -1
- package/dist/client/assets/category-editor-BSjmmy8p.js +1 -0
- package/dist/client/assets/{chat-context-bLbsqSUE.js → chat-context-2a9Unx31.js} +5 -5
- package/dist/client/assets/{checkbox-DmyBqpG7.js → checkbox-BbXVn_YC.js} +1 -1
- package/dist/client/assets/{cli-auth-success-g1RYvQjB.js → cli-auth-success-UyrL3uNf.js} +1 -1
- package/dist/client/assets/collection-detail-BEFyIol2.js +1 -0
- package/dist/client/assets/{collection-display-button-CmYy5ol1.js → collection-display-button-CZL1yZYo.js} +1 -1
- package/dist/client/assets/{collection-search-JyQFyghK.js → collection-search-DBIvyJJc.js} +1 -1
- package/dist/client/assets/{collection-tabs-LMEfLwWZ.js → collection-tabs-C7lBi7ts.js} +1 -1
- package/dist/client/assets/command-yaXImYX7.js +1 -0
- package/dist/client/assets/commerce-onboarding-DrBs9RF7.js +1 -0
- package/dist/client/assets/{connect-desktop-dialog-dXosml16.js → connect-desktop-dialog-8X7uGHQP.js} +1 -1
- package/dist/client/assets/{connection-card-DoMs787B.js → connection-card-B9W_RY27.js} +1 -1
- package/dist/client/assets/connection-detail-q-5qcjda.js +1 -0
- package/dist/client/assets/{connection-form-helpers-Dm__G9wh.js → connection-form-helpers-BzU7xnbX.js} +1 -1
- package/dist/client/assets/connections-DZXZfK8S.js +1 -0
- package/dist/client/assets/{context-menu-B93bMgay.js → context-menu-C5FEV_by.js} +1 -1
- package/dist/client/assets/{decopilot-4k7KQSVX.js → decopilot-BJ5FU5R8.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-BEKDdVOU.js → decopilot-sse-pool-CjP6zAlU.js} +1 -1
- package/dist/client/assets/{dialog-BbHIKIUS.js → dialog-lbyUpqPt.js} +1 -1
- package/dist/client/assets/{domain-settings-PpBMgUMH.js → domain-settings-Bxo_fvwt.js} +1 -1
- package/dist/client/assets/{drawer-kr03m1vm.js → drawer-BZYAwdgw.js} +1 -1
- package/dist/client/assets/{dropdown-menu-vGHmo9fD.js → dropdown-menu-DF3B7I1K.js} +1 -1
- package/dist/client/assets/{empty-state-B4c8fq4i.js → empty-state-BAyVSC9K.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D9jcQvie.js → extract-connection-data-C4TpBkxN.js} +1 -1
- package/dist/client/assets/file-explorer-BQgJH40A.js +2 -0
- package/dist/client/assets/{file-type-icon-DO4mmgEl.js → file-type-icon-D7nzXwZZ.js} +1 -1
- package/dist/client/assets/{files-DSkQRfS7.js → files-mQKfk-tg.js} +1 -1
- package/dist/client/assets/{form-BtzyQGYU.js → form-BGbfy77_.js} +1 -1
- package/dist/client/assets/general-3ck_txNd.js +1 -0
- package/dist/client/assets/{github-repo-picker-BR4lmXmU.js → github-repo-picker-Dt_KVpAO.js} +1 -1
- package/dist/client/assets/{hooks-DlrZPw8A.js → hooks-BdAROdrZ.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-DCkFh2H5.js → import-from-deco-dialog-l8ENbsJP.js} +1 -1
- package/dist/client/assets/{index-DeXSnTz7.js → index-BKAnigFO.js} +2 -2
- package/dist/client/assets/{index-B37Lpv5S.js → index-BUS-a-tW.js} +4 -4
- package/dist/client/assets/index-C0eVGhHT.js +1 -0
- package/dist/client/assets/{index-yU2r0Gdy.js → index-C6PDcnUv.js} +10 -10
- package/dist/client/assets/index-CInyex9M.js +1 -0
- package/dist/client/assets/{index-JuJHr8Il.js → index-Cj5OqjXz.js} +1 -1
- package/dist/client/assets/{index-BqVMogvA.js → index-CqqoV_UO.js} +1 -1
- package/dist/client/assets/index-CuICTOkh.js +26 -0
- package/dist/client/assets/index-D0fvhtT3.js +1 -0
- package/dist/client/assets/{index-BbMa6I-9.js → index-DOaXG0Oi.js} +2 -2
- package/dist/client/assets/{index-CAIYCRJp.js → index-Dg5jx7eC.js} +1 -1
- package/dist/client/assets/{index-DasNl4Yd.js → index-DlWRWOod.js} +1 -1
- package/dist/client/assets/{index-BHKcN4cC.js → index-n4Vo7V4h.js} +1 -1
- package/dist/client/assets/{index-redirect-c7PIBlRk.js → index-redirect-ChD654T3.js} +1 -1
- package/dist/client/assets/{index-ZjRHn464.js → index-waTLikGH.js} +1 -1
- package/dist/client/assets/{input-D3OR9wlV.js → input-D8TXMXM-.js} +1 -1
- package/dist/client/assets/{integration-icon-DtONHt_d.js → integration-icon-D2yZ6MPG.js} +1 -1
- package/dist/client/assets/{label-C3oLcOn0.js → label-CFlYbKnz.js} +1 -1
- package/dist/client/assets/{login-DjI0bYya.js → login-CnaQyAhS.js} +1 -1
- package/dist/client/assets/{mcp-oauth-B7tRsqo-.js → mcp-oauth-oXYSrL8I.js} +1 -1
- package/dist/client/assets/{members-DIxpLBtJ.js → members-BQ3iSjR0.js} +2 -2
- package/dist/client/assets/{monaco-editor-CI1Pa0QN.js → monaco-editor-D82OjyDd.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BcIi6QZu.js → monitoring-stats-row-BuPr-4zl.js} +1 -1
- package/dist/client/assets/{oauth-callback-Dgp5DdjP.js → oauth-callback-DtstK2kL.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DPhQ8sI3.js → oauth-callback-ai-provider-BgnPPSol.js} +1 -1
- package/dist/client/assets/{onboarding-DtsS5lUr.js → onboarding-CJH0Leuw.js} +1 -1
- package/dist/client/assets/{org-install-7RmPSbO9.js → org-install-D67sKYgq.js} +1 -1
- package/dist/client/assets/{org-layout--gQCQGBA.js → org-layout-BLUbiGyn.js} +1 -1
- package/dist/client/assets/{organization-choice-A8WzCg8t.js → organization-choice-CHjmYj3j.js} +1 -1
- package/dist/client/assets/{page-seo-form-rxuP--YT.js → page-seo-form-C4I7m4Df.js} +1 -1
- package/dist/client/assets/page-seo-sheet-YKiIzrJb.js +1 -0
- package/dist/client/assets/{popover-voqJlCLR.js → popover-D2Q2Eswn.js} +1 -1
- package/dist/client/assets/post-editor-Bv1F9MYX.js +1 -0
- package/dist/client/assets/{preview-dialog-DC1NsLKi.js → preview-dialog-Bc2VzAN-.js} +1 -1
- package/dist/client/assets/{primitives-DLRj8yUL.js → primitives-DHTHNxUS.js} +1 -1
- package/dist/client/assets/profile-B6N3yux5.js +1 -0
- package/dist/client/assets/project-app-view-BELIYBcW.js +1 -0
- package/dist/client/assets/record-editor-DaT6c7WV.js +1 -0
- package/dist/client/assets/registry-DCDFj_rf.js +2 -0
- package/dist/client/assets/{registry-layout-Bsm16ESy.js → registry-layout-Cy_01Sh1.js} +2 -2
- package/dist/client/assets/{require-capability-WHfqcRqc.js → require-capability-ClWn_lpQ.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CcH9lzeU.js → required-auth-layout-wwcnSe6F.js} +1 -1
- package/dist/client/assets/{reset-password-o6QeBSLY.js → reset-password-DaGLhf4o.js} +1 -1
- package/dist/client/assets/{roles-D_-_h1c8.js → roles-CaiOtbXD.js} +1 -1
- package/dist/client/assets/{save-status-D4ISIXoj.js → save-status-CTER4gWs.js} +1 -1
- package/dist/client/assets/{scroll-area-CLfWXW0D.js → scroll-area-CryCPcTg.js} +1 -1
- package/dist/client/assets/{search-input-DPBtlWUD.js → search-input-CeZYeezj.js} +1 -1
- package/dist/client/assets/secrets-BrjgXM97.js +1 -0
- package/dist/client/assets/{sections-editor-DdPJUwmv.js → sections-editor-F-BnnENl.js} +2 -2
- package/dist/client/assets/select-BumbnE5Z.js +1 -0
- package/dist/client/assets/{select-model-DdKq7y8l.js → select-model-CTcIByf-.js} +1 -1
- package/dist/client/assets/seo-editor-ClI_EAvi.js +1 -0
- package/dist/client/assets/{settings-layout-Bf0CD3Ha.js → settings-layout-DXkAusB2.js} +1 -1
- package/dist/client/assets/{settings-section-BOPxWg6D.js → settings-section-C5bkQp2g.js} +1 -1
- package/dist/client/assets/{sheet-BCI6wljB.js → sheet-BbFKIkah.js} +1 -1
- package/dist/client/assets/{shell-controls-CUcC0uoE.js → shell-controls-DGWPxiPv.js} +1 -1
- package/dist/client/assets/{shell-layout-BpdvdxRY.js → shell-layout-C9OrPrc4.js} +1 -1
- package/dist/client/assets/{shell-route-loading-CrU5yzKP.js → shell-route-loading-DaawUhrG.js} +1 -1
- package/dist/client/assets/{sidebar-DLjbCYfe.js → sidebar-DaurSYcm.js} +1 -1
- package/dist/client/assets/{skeleton-vuq3rnUi.js → skeleton-C0NWZPiq.js} +1 -1
- package/dist/client/assets/{sortable.esm-aG8KzwUt.js → sortable.esm-BqlsxZdn.js} +1 -1
- package/dist/client/assets/sso-9s_kUvCN.js +1 -0
- package/dist/client/assets/{store-ChzWT5-N.js → store-Ba8mcjDx.js} +1 -1
- package/dist/client/assets/store-registry-DEktUT3r.js +2 -0
- package/dist/client/assets/{studio-tools-QGvUs6qu.js → studio-tools-BO3QwsEE.js} +1 -1
- package/dist/client/assets/{switch-BwnzJhUB.js → switch-B87bQp16.js} +1 -1
- package/dist/client/assets/{table-DyiI6lY1.js → table-N4-giWdo.js} +1 -1
- package/dist/client/assets/{tabs-2cKRgONn.js → tabs-CRPtX_rJ.js} +1 -1
- package/dist/client/assets/{task-status-1cY6Pf8x.js → task-status-2UEXnm8o.js} +1 -1
- package/dist/client/assets/{textarea-DqRxFP0T.js → textarea-Du6Le5sO.js} +1 -1
- package/dist/client/assets/{toggle-group-CvE2Rn7y.js → toggle-group-CBnuvlgo.js} +1 -1
- package/dist/client/assets/{toolbar-Dsvneu3f.js → toolbar-DdFuWthq.js} +1 -1
- package/dist/client/assets/{tooltip-Bjh8CXdQ.js → tooltip-xmkm89yV.js} +1 -1
- package/dist/client/assets/{types-CXT3eJPp.js → types-D8C9oPp4.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Cm6bJu4O.js → use-ai-providers-9J9bNHdx.js} +1 -1
- package/dist/client/assets/{use-automations-hkjYbjXY.js → use-automations-D_7wf0xL.js} +1 -1
- package/dist/client/assets/{use-capability-qIjsd8HD.js → use-capability-DNSU4SSH.js} +1 -1
- package/dist/client/assets/{use-clock-tick-Doyl2hlk.js → use-clock-tick-6wGCr9QA.js} +1 -1
- package/dist/client/assets/{use-collections-OMXnywUO.js → use-collections-FvPggnCf.js} +1 -1
- package/dist/client/assets/use-connection-C3KlVqRc.js +1 -0
- package/dist/client/assets/{use-copy-CjrJL2o4.js → use-copy-DvqrWhoO.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BbhHiNda.js → use-create-virtual-mcp-CTi94rag.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BStxRiyA.js → use-debounced-autosave-BtHhY3kf.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CcoavCzH.js → use-delete-connection-Ba_GRKCM.js} +1 -1
- package/dist/client/assets/{use-file-configs-DwaAJaA6.js → use-file-configs-Pe4NRgWE.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BLyYnILN.js → use-infinite-scroll-DL5hyVmQ.js} +1 -1
- package/dist/client/assets/{use-join-requests-DzaX5jxt.js → use-join-requests-D_Gq_19N.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CX47WlCL.js → use-mcp-client-CLcTwBS1.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CbrvbR3P.js → use-mcp-prompts-DC-bHnlV.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C37oT0bu.js → use-mcp-tools-DHra8uvX.js} +1 -1
- package/dist/client/assets/{use-members-CtUanB1S.js → use-members-DARPXJlK.js} +1 -1
- package/dist/client/assets/{use-mobile-BsQGJSz8.js → use-mobile-DFs3QJqY.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-C_B7rQZ3.js → use-navigate-to-agent-rF0GaXHe.js} +1 -1
- package/dist/client/assets/use-org-auth-client-C7qnan75.js +1 -0
- package/dist/client/assets/{use-org-sso-DKfKkOYy.js → use-org-sso-Bo9vUunv.js} +1 -1
- package/dist/client/assets/{use-organization-roles-LSjQh-hO.js → use-organization-roles-De8oePVP.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Cw-0oyZX.js → use-organization-settings-57SGXats.js} +1 -1
- package/dist/client/assets/{use-registry-connections-sALt7ACC.js → use-registry-connections-Ii3j5xH_.js} +1 -1
- package/dist/client/assets/{use-secrets-DyPgSICV.js → use-secrets-C4ru1qie.js} +1 -1
- package/dist/client/assets/{use-status-sounds-YKEkF-4T.js → use-status-sounds-BP_ijgUo.js} +1 -1
- package/dist/client/assets/{use-view-mode-BMTZD0uv.js → use-view-mode-Bl_CH29I.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-ByWPjIzd.js → use-virtual-mcp-DgKfTExI.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-uhUmaTO5.js +1 -0
- package/dist/client/assets/{useQueries-Do45fFi7.js → useQueries-CgTem5R4.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DjACAiSm.js +1 -0
- package/dist/client/assets/variant-calendar-CyMRGA_z.js +1 -0
- package/dist/client/assets/{view-mode-toggle-yOXFqeV7.js → view-mode-toggle-DNw1iw_b.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +429 -429
- package/package.json +4 -5
- package/dist/client/assets/Form-DLIz5vwr.js +0 -26
- package/dist/client/assets/ai-providers-Cr1HJb4g.js +0 -1
- package/dist/client/assets/app-editor-Cu5Jn0bp.js +0 -1
- package/dist/client/assets/automations-LxVvDRSf.js +0 -1
- package/dist/client/assets/buckets-pliF9NOx.js +0 -1
- package/dist/client/assets/category-editor-BElGS0p5.js +0 -1
- package/dist/client/assets/collection-detail-BfoXrAWD.js +0 -1
- package/dist/client/assets/command-6Xv18lx6.js +0 -1
- package/dist/client/assets/commerce-onboarding-COle5u-q.js +0 -1
- package/dist/client/assets/connection-detail-Cy4adAl6.js +0 -1
- package/dist/client/assets/connections-x7QDuFJK.js +0 -1
- package/dist/client/assets/file-explorer-BujxJOsE.js +0 -2
- package/dist/client/assets/general-BjDrCY53.js +0 -1
- package/dist/client/assets/index-B7G40tVP.js +0 -1
- package/dist/client/assets/index-BdQq_4o_.js +0 -1
- package/dist/client/assets/index-CxLZ7FWT.js +0 -1
- package/dist/client/assets/index-DGekSTiC.js +0 -1
- package/dist/client/assets/index-hl6kLhIe.js +0 -1
- package/dist/client/assets/page-seo-sheet-vEubWUB4.js +0 -1
- package/dist/client/assets/post-editor-CukRi04m.js +0 -1
- package/dist/client/assets/profile-Cuy0XRiQ.js +0 -1
- package/dist/client/assets/project-app-view-DCl-CWYr.js +0 -1
- package/dist/client/assets/record-editor-DOI2gIfd.js +0 -1
- package/dist/client/assets/registry-EBdkezYg.js +0 -2
- package/dist/client/assets/secrets-cvbnrgVx.js +0 -1
- package/dist/client/assets/select-Dm5gSFeK.js +0 -1
- package/dist/client/assets/seo-editor-D12GD7FT.js +0 -1
- package/dist/client/assets/sso-V1O3oG0I.js +0 -1
- package/dist/client/assets/store-registry-DwmY0RAT.js +0 -2
- package/dist/client/assets/tools-list-Dk1OdhLO.js +0 -1
- package/dist/client/assets/use-connection-CQmB3ngS.js +0 -1
- package/dist/client/assets/use-org-auth-client-BWt-3T2p.js +0 -1
- package/dist/client/assets/useInfiniteQuery-V0rLmF2w.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Zpghw-jA.js +0 -1
- package/dist/client/assets/variant-calendar-bDr2uwc7.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as F,j as r}from"./index-B37Lpv5S.js";import{I as T}from"./input-D3OR9wlV.js";import{L as C}from"./label-C3oLcOn0.js";import{T as L}from"./textarea-DqRxFP0T.js";import{as as A,at as R,au as D,av as J}from"./index-yU2r0Gdy.js";import{u as K,s as P}from"./primitives-DLRj8yUL.js";import{S as M}from"./save-status-D4ISIXoj.js";import"./index-BbMa6I-9.js";import"./chat-context-bLbsqSUE.js";import"./hooks-DlrZPw8A.js";import"./use-mcp-client-CX47WlCL.js";import"./auth-B2SyT5jq.js";import"./decopilot-sse-pool-BEKDdVOU.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-ByWPjIzd.js";import"./use-collections-OMXnywUO.js";import"./use-ai-providers-Cm6bJu4O.js";import"./studio-tools-QGvUs6qu.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-Cw-0oyZX.js";import"./scroll-area-CLfWXW0D.js";import"./agent-icon-B9Rg96af.js";import"./AlertCircle-NC3dB7os.js";import"./Tool01-BmUpgiVH.js";import"./SwitchHorizontal01-CPEaTyhx.js";import"./Settings02-Bvzlcm1U.js";import"./XCircle-DkV5O0gt.js";import"./ArrowUpRight-D9dn8W9B.js";import"./ZapSquare-BupPfcYG.js";import"./Users03-vYWz866I.js";import"./CheckCircle-4xU28_ze.js";import"./ChevronUp-CIoJSXpm.js";import"./ChevronDown-4vfFBrpS.js";import"./ChevronLeft-CCAFk4Lh.js";import"./ChevronRight-BSaK-g_n.js";import"./DotsVertical-DXhOiROl.js";import"./Stars02-i3gYlhXk.js";import"./Eye-BcF7vo02.js";import"./ZoomOut-DXDDUqzg.js";import"./Globe01-cpwm3ZU4.js";import"./FilterLines-CyP0eiMt.js";import"./Star01-B2kdQndt.js";import"./Globe04-DdU789Mf.js";import"./HardDrive-8lyy5Dp-.js";import"./Key01-C3jXuyTV.js";import"./LayoutLeft-BA3GeXV2.js";import"./LinkExternal01-Dc9R-z7y.js";import"./Monitor01-4eRzNp1q.js";import"./Sun-CoqE3qoL.js";import"./Palette-DziwArEq.js";import"./Play-BTFQj3qh.js";import"./Plus-pFzKRSyH.js";import"./SearchMd-BiaNZC1b.js";import"./Shield01-CtXmxEJK.js";import"./Stars01-C_5LYi93.js";import"./Trash01-B2-9vQgJ.js";import"./Upload01-FAxCvObz.js";import"./User01-C1HCSK6y.js";import"./Users01-D0cghbTw.js";import"./XClose-1aztqZN5.js";import"./X-DVenJxl2.js";import"./Zap-CxBpS0TW.js";import"./use-clock-tick-Doyl2hlk.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CjrJL2o4.js";import"./tooltip-Bjh8CXdQ.js";import"./file-type-icon-DO4mmgEl.js";import"./dialog-BbHIKIUS.js";import"./use-mobile-BsQGJSz8.js";import"./content-blocks-o63cs2vh.js";import"./types-CXT3eJPp.js";import"./shell-layout-BpdvdxRY.js";import"./avatar-Cz89OzST.js";import"./required-auth-layout-CcH9lzeU.js";import"./use-org-sso-DKfKkOYy.js";import"./sheet-BCI6wljB.js";import"./integration-icon-DtONHt_d.js";import"./use-navigate-to-agent-C_B7rQZ3.js";import"./use-connection-CQmB3ngS.js";import"./use-mcp-prompts-CbrvbR3P.js";import"./form-BtzyQGYU.js";import"./index-BdQq_4o_.js";import"./drawer-kr03m1vm.js";import"./collection-search-JyQFyghK.js";import"./select-Dm5gSFeK.js";import"./tabs-2cKRgONn.js";import"./toggle-group-CvE2Rn7y.js";import"./sortable.esm-aG8KzwUt.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DoMs787B.js";import"./use-registry-connections-sALt7ACC.js";import"./useInfiniteQuery-V0rLmF2w.js";import"./use-infinite-scroll-BLyYnILN.js";import"./extract-connection-data-D9jcQvie.js";import"./card-DWocPikY.js";import"./collection-tabs-LMEfLwWZ.js";import"./badge-DemqTgjN.js";import"./connection-form-helpers-Dm__G9wh.js";import"./authenticate-and-persist-oauth-ugENWEdg.js";import"./mcp-oauth-B7tRsqo-.js";import"./useSuspenseInfiniteQuery-Zpghw-jA.js";import"./connect-desktop-dialog-dXosml16.js";import"./decopilot-4k7KQSVX.js";import"./checkbox-DmyBqpG7.js";import"./skeleton-vuq3rnUi.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BOPxWg6D.js";import"./popover-voqJlCLR.js";import"./command-6Xv18lx6.js";import"./index-BHKcN4cC.js";import"./dropdown-menu-vGHmo9fD.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-YKEkF-4T.js";import"./empty-state-B4c8fq4i.js";import"./toolbar-Dsvneu3f.js";import"./preview-dialog-DC1NsLKi.js";import"./index-JuJHr8Il.js";import"./use-mcp-tools-C37oT0bu.js";import"./use-capability-qIjsd8HD.js";import"./shell-route-loading-CrU5yzKP.js";import"./tools-list-Dk1OdhLO.js";import"./alert-dialog-TZS2F66y.js";import"./switch-BwnzJhUB.js";import"./use-debounced-autosave-BStxRiyA.js";import"./index-ZjRHn464.js";import"./sidebar-DLjbCYfe.js";import"./search-input-DPBtlWUD.js";import"./github-repo-picker-BR4lmXmU.js";import"./use-secrets-DyPgSICV.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-yOXFqeV7.js";import"./index-B7G40tVP.js";import"./automation-runs-DEnZLNcv.js";import"./table-DyiI6lY1.js";import"./use-members-CtUanB1S.js";import"./use-org-auth-client-BWt-3T2p.js";import"./task-status-1cY6Pf8x.js";import"./use-automations-hkjYbjXY.js";import"./use-file-configs-DwaAJaA6.js";import"./monaco-editor-CI1Pa0QN.js";import"./select-model-DdKq7y8l.js";import"./automation-list-row-RaQMgsZa.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 Er(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{Er as RecordEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-Bsm16ESy.js","assets/index-B37Lpv5S.js","assets/index-rS_HhTdz.css","assets/XCircle-DkV5O0gt.js","assets/CheckCircle-4xU28_ze.js","assets/Settings02-Bvzlcm1U.js","assets/use-mcp-client-CX47WlCL.js","assets/auth-B2SyT5jq.js","assets/useInfiniteQuery-V0rLmF2w.js","assets/use-infinite-scroll-BLyYnILN.js","assets/studio-tools-QGvUs6qu.js","assets/badge-DemqTgjN.js","assets/input-D3OR9wlV.js","assets/dropdown-menu-vGHmo9fD.js","assets/ChevronUp-CIoJSXpm.js","assets/ChevronRight-BSaK-g_n.js","assets/DotsVertical-DXhOiROl.js","assets/table-DyiI6lY1.js","assets/toggle-group-CvE2Rn7y.js","assets/use-view-mode-BMTZD0uv.js","assets/use-mobile-BsQGJSz8.js","assets/FilterLines-CyP0eiMt.js","assets/Globe01-cpwm3ZU4.js","assets/SearchMd-BiaNZC1b.js","assets/dialog-BbHIKIUS.js","assets/X-DVenJxl2.js","assets/AlertCircle-NC3dB7os.js","assets/Upload01-FAxCvObz.js","assets/alert-dialog-TZS2F66y.js","assets/card-DWocPikY.js","assets/Trash01-B2-9vQgJ.js","assets/label-C3oLcOn0.js","assets/select-Dm5gSFeK.js","assets/index-BdQq_4o_.js","assets/tooltip-Bjh8CXdQ.js","assets/ChevronDown-4vfFBrpS.js","assets/switch-BwnzJhUB.js","assets/textarea-DqRxFP0T.js","assets/checkbox-DmyBqpG7.js","assets/Eye-BcF7vo02.js","assets/LinkExternal01-Dc9R-z7y.js","assets/use-copy-CjrJL2o4.js","assets/Key01-C3jXuyTV.js","assets/Plus-pFzKRSyH.js","assets/mcp-oauth-B7tRsqo-.js","assets/Play-BTFQj3qh.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-B37Lpv5S.js";import{R as l}from"./require-capability-WHfqcRqc.js";import"./use-capability-qIjsd8HD.js";import"./access-gate-DJ3w7Rqa.js";import"./capability-load-error-CD0k_ZBV.js";const m=i.lazy(()=>o(()=>import("./registry-layout-Bsm16ESy.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45])));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-B37Lpv5S.js";import{i as k}from"./AlertCircle-NC3dB7os.js";import{s as z}from"./Plus-pFzKRSyH.js";import{s as E}from"./User01-C1HCSK6y.js";import{t as F}from"./Users01-D0cghbTw.js";import{e as $,d as I,b as O,D as A,a as R,c as T}from"./dialog-BbHIKIUS.js";import{I as N}from"./input-D3OR9wlV.js";import{L as g}from"./label-C3oLcOn0.js";import{d as B,b as V,c as L,S as q,a as C}from"./select-Dm5gSFeK.js";import{S as H}from"./skeleton-vuq3rnUi.js";import{T as K}from"./textarea-DqRxFP0T.js";import{P as b}from"./index-ZjRHn464.js";import{c as W}from"./settings-section-BOPxWg6D.js";import{u as Y,a as G}from"./use-secrets-DyPgSICV.js";import{R as J}from"./require-capability-WHfqcRqc.js";import"./X-DVenJxl2.js";import"./index-BdQq_4o_.js";import"./tooltip-Bjh8CXdQ.js";import"./ChevronUp-CIoJSXpm.js";import"./ChevronDown-4vfFBrpS.js";import"./sidebar-DLjbCYfe.js";import"./LayoutLeft-BA3GeXV2.js";import"./use-mobile-BsQGJSz8.js";import"./sheet-BCI6wljB.js";import"./card-DWocPikY.js";import"./ArrowUpRight-D9dn8W9B.js";import"./studio-tools-QGvUs6qu.js";import"./use-capability-qIjsd8HD.js";import"./access-gate-DJ3w7Rqa.js";import"./capability-load-error-CD0k_ZBV.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 Oe(){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{Oe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,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 ct,bR as it,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-B37Lpv5S.js";import{c as _e}from"./index-BdQq_4o_.js";import{V as St}from"./tooltip-Bjh8CXdQ.js";import{i as wt,n as Ct}from"./ChevronUp-CIoJSXpm.js";import{t as Re}from"./ChevronDown-4vfFBrpS.js";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:c,value:s,defaultValue:l,onValueChange:a,dir:u,name:h,autoComplete:g,disabled:b,required:w,form:S}=r,p=pe(e),[v,C]=i.useState(null),[m,x]=i.useState(null),[U,M]=i.useState(!1),re=nt(u),[N,O]=Pe({prop:o,defaultProp:n??!1,onChange:c,caller:J}),[F,q]=Pe({prop:s,defaultProp:l,onChange:a,caller:J}),L=i.useRef(null),B=v?S||!!v.closest("form"):!0,[W,V]=i.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:i.useCallback(E=>{V(D=>new Set(D).add(E))},[]),onNativeOptionRemove:i.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=i.forwardRef((r,e)=>{const{__scopeSelect:t,disabled:o=!1,...n}=r,c=pe(t),s=G(Me,t),l=s.disabled||o,a=k(e,s.onTriggerChange),u=ue(t),h=i.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,...c,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=i.forwardRef((r,e)=>{const{__scopeSelect:t,className:o,style:n,children:c,placeholder:s="",...l}=r,a=G(Oe,t),{onValueNodeHasChildrenChange:u}=a,h=c!==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}):c})});De.displayName=Oe;var Nt="SelectIcon",ke=i.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=i.forwardRef((r,e)=>{const t=G(Q,r.__scopeSelect),[o,n]=i.useState();if($(()=>{n(new DocumentFragment)},[]),!t.open){const c=o;return c?Ne.createPortal(d.jsx(Ve,{scope:r.__scopeSelect,children:d.jsx(de.Slot,{scope:r.__scopeSelect,children:d.jsx("div",{children:r.children})})}),c):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=i.forwardRef((r,e)=>{const{__scopeSelect:t,position:o="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:c,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]=i.useState(null),[M,re]=i.useState(null),N=k(e,f=>U(f)),[O,F]=i.useState(null),[q,L]=i.useState(null),B=ue(t),[W,V]=i.useState(!1),H=i.useRef(!1);i.useEffect(()=>{if(x)return dt(x)},[x]),ut();const E=i.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=i.useCallback(()=>E([O,x]),[E,O,x]);i.useEffect(()=>{W&&D()},[W,D]);const{onOpenChange:z,triggerPointerDownPosRef:K}=m;i.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]),i.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=i.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=i.useCallback(()=>x?.focus(),[x]),te=i.useCallback((f,T,R)=>{const y=!H.current&&!R;(m.value!==void 0&&m.value===T||y)&&L(f)},[m.value]),ce=o==="popper"?Se:ze,se=ce===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:c,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:d.jsx(ce,{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=i.forwardRef((r,e)=>{const{__scopeSelect:t,onPlaced:o,...n}=r,c=G(Q,t),s=Y(Q,t),[l,a]=i.useState(null),[u,h]=i.useState(null),g=k(e,N=>h(N)),b=ue(t),w=i.useRef(!1),S=i.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:C,focusSelectedItem:m}=s,x=i.useCallback(()=>{if(c.trigger&&c.valueNode&&l&&u&&p&&v&&C){const N=c.trigger.getBoundingClientRect(),O=u.getBoundingClientRect(),F=c.valueNode.getBoundingClientRect(),q=C.getBoundingClientRect();if(c.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,ce=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(ce,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,c.trigger,c.valueNode,l,u,p,v,C,c.dir,o]);$(()=>x(),[x]);const[U,M]=i.useState();$(()=>{u&&M(window.getComputedStyle(u).zIndex)},[u]);const re=i.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=i.forwardRef((r,e)=>{const{__scopeSelect:t,align:o="start",collisionPadding:n=A,...c}=r,s=pe(t);return d.jsx(gt,{...s,...c,ref:e,align:o,collisionPadding:n,style:{boxSizing:"border-box",...c.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=i.forwardRef((r,e)=>{const{__scopeSelect:t,nonce:o,...n}=r,c=Y(we,t),s=Te(we,t),l=k(e,c.onViewportChange),a=i.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=i.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=i.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 ie="SelectItem",[Vt,Ke]=ne(ie),$e=i.forwardRef((r,e)=>{const{__scopeSelect:t,value:o,disabled:n=!1,textValue:c,...s}=r,l=G(ie,t),a=Y(ie,t),u=l.value===o,[h,g]=i.useState(c??""),[b,w]=i.useState(!1),S=k(e,m=>a.itemRefCallback?.(m,o,n)),p=be(),v=i.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:i.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=ie;var le="SelectItemText",Ge=i.forwardRef((r,e)=>{const{__scopeSelect:t,className:o,style:n,...c}=r,s=G(le,t),l=Y(le,t),a=Ke(le,t),u=_t(le,t),[h,g]=i.useState(null),b=k(e,C=>g(C),a.onItemTextChange,C=>l.itemTextRefCallback?.(C,a.value,a.disabled)),w=h?.textContent,S=i.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,...c,ref:b}),a.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Ne.createPortal(c.children,s.valueNode):null]})});Ge.displayName=le;var Ye="SelectItemIndicator",qe=i.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=i.forwardRef((r,e)=>{const t=Y(Ce,r.__scopeSelect),o=Te(Ce,r.__scopeSelect),[n,c]=i.useState(!1),s=k(e,o.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let l=function(){const u=a.scrollTop>0;c(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=i.forwardRef((r,e)=>{const t=Y(ye,r.__scopeSelect),o=Te(ye,r.__scopeSelect),[n,c]=i.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;c(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=i.forwardRef((r,e)=>{const{__scopeSelect:t,onAutoScroll:o,...n}=r,c=Y("SelectScrollButton",t),s=i.useRef(null),l=ue(t),a=i.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return i.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,()=>{c.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(o,50))}),onPointerLeave:_(n.onPointerLeave,()=>{a()})})}),Ht="SelectSeparator",zt=i.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=i.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r,n=pe(t),c=G(Ie,t),s=Y(Ie,t);return c.open&&s.position==="popper"?d.jsx(xt,{...n,...o,ref:e}):null});Ut.displayName=Ie;var Ft="SelectBubbleInput",Qe=i.forwardRef(({__scopeSelect:r,value:e,...t},o)=>{const n=i.useRef(null),c=k(o,n),s=ct(e);return i.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:c,defaultValue:e})});Qe.displayName=Ft;function et(r){return r===""||r===void 0}function tt(r){const e=it(r),t=i.useRef(""),o=i.useRef(0),n=i.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]),c=i.useCallback(()=>{t.current="",window.clearTimeout(o.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(o.current),[]),[t,n,c]}function ot(r,e,t){const n=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,c=t?r.indexOf(t):-1;let s=Wt(r,Math.max(c,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 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(Kt,{"data-slot":"select",...t}),e[2]=t,e[3]=o):o=e[3],o}function po(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 fo(r){const e=ee.c(13);let t,o,n,c;e[0]!==r?({className:o,size:c,children:t,...n}=r,e[0]=r,e[1]=t,e[2]=o,e[3]=n,e[4]=c):(t=e[1],o=e[2],n=e[3],c=e[4]);const s=c===void 0?"default":c;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 mo(r){const e=ee.c(25);let t,o,n,c,s;e[0]!==r?({className:o,children:t,position:c,hideScrollButtons:s,...n}=r,e[0]=r,e[1]=t,e[2]=o,e[3]=n,e[4]=c,e[5]=s):(t=e[1],o=e[2],n=e[3],c=e[4],s=e[5]);const l=c===void 0?"popper":c,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 ho(r){const e=ee.c(16);let t,o,n,c;e[0]!==r?({className:o,children:t,hideCheck:c,...n}=r,e[0]=r,e[1]=t,e[2]=o,e[3]=n,e[4]=c):(t=e[1],o=e[2],n=e[3],c=e[4]);const s=c===void 0?!1:c;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 c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=d.jsx(Ct,{className:"size-4"}),e[5]=c):c=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:c}),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 c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=d.jsx(Re,{className:"size-4"}),e[5]=c):c=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:c}),e[6]=o,e[7]=n,e[8]=s):s=e[8],s}export{mo as S,ho as a,fo as b,po as c,uo as d};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as T,j as t,r as Q,B as je,i as Se}from"./index-B37Lpv5S.js";import{i as be}from"./ChevronRight-BSaK-g_n.js";import{L as fe}from"./agent-icon-B9Rg96af.js";import{S as ue}from"./scroll-area-CLfWXW0D.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-rxuP--YT.js";import{s as xe,p as ze}from"./index-yU2r0Gdy.js";import{a as ge}from"./Tool01-BmUpgiVH.js";import"./AlertCircle-NC3dB7os.js";import"./SwitchHorizontal01-CPEaTyhx.js";import"./Settings02-Bvzlcm1U.js";import"./XCircle-DkV5O0gt.js";import"./ArrowUpRight-D9dn8W9B.js";import"./ZapSquare-BupPfcYG.js";import"./Users03-vYWz866I.js";import"./CheckCircle-4xU28_ze.js";import"./ChevronUp-CIoJSXpm.js";import"./ChevronDown-4vfFBrpS.js";import"./ChevronLeft-CCAFk4Lh.js";import"./DotsVertical-DXhOiROl.js";import"./Stars02-i3gYlhXk.js";import"./Eye-BcF7vo02.js";import"./ZoomOut-DXDDUqzg.js";import"./Globe01-cpwm3ZU4.js";import"./FilterLines-CyP0eiMt.js";import"./Star01-B2kdQndt.js";import"./Globe04-DdU789Mf.js";import"./HardDrive-8lyy5Dp-.js";import"./Key01-C3jXuyTV.js";import"./LayoutLeft-BA3GeXV2.js";import"./LinkExternal01-Dc9R-z7y.js";import"./Monitor01-4eRzNp1q.js";import"./Sun-CoqE3qoL.js";import"./Palette-DziwArEq.js";import"./Play-BTFQj3qh.js";import"./Plus-pFzKRSyH.js";import"./SearchMd-BiaNZC1b.js";import"./Shield01-CtXmxEJK.js";import"./Stars01-C_5LYi93.js";import"./Trash01-B2-9vQgJ.js";import"./Upload01-FAxCvObz.js";import"./User01-C1HCSK6y.js";import"./Users01-D0cghbTw.js";import"./XClose-1aztqZN5.js";import"./X-DVenJxl2.js";import"./Zap-CxBpS0TW.js";import"./use-clock-tick-Doyl2hlk.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CjrJL2o4.js";import"./tooltip-Bjh8CXdQ.js";import"./file-type-icon-DO4mmgEl.js";import"./dialog-BbHIKIUS.js";import"./use-mobile-BsQGJSz8.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-CXT3eJPp.js";import"./use-mcp-client-CX47WlCL.js";import"./auth-B2SyT5jq.js";import"./chat-context-bLbsqSUE.js";import"./hooks-DlrZPw8A.js";import"./decopilot-sse-pool-BEKDdVOU.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-ByWPjIzd.js";import"./use-collections-OMXnywUO.js";import"./use-ai-providers-Cm6bJu4O.js";import"./studio-tools-QGvUs6qu.js";import"./use-organization-settings-Cw-0oyZX.js";import"./shell-layout-BpdvdxRY.js";import"./avatar-Cz89OzST.js";import"./required-auth-layout-CcH9lzeU.js";import"./use-org-sso-DKfKkOYy.js";import"./sheet-BCI6wljB.js";import"./integration-icon-DtONHt_d.js";import"./use-navigate-to-agent-C_B7rQZ3.js";import"./use-connection-CQmB3ngS.js";import"./use-mcp-prompts-CbrvbR3P.js";import"./form-BtzyQGYU.js";import"./label-C3oLcOn0.js";import"./input-D3OR9wlV.js";import"./index-BdQq_4o_.js";import"./switch-BwnzJhUB.js";import"./select-Dm5gSFeK.js";import"./index-BbMa6I-9.js";import"./drawer-kr03m1vm.js";import"./collection-search-JyQFyghK.js";import"./tabs-2cKRgONn.js";import"./toggle-group-CvE2Rn7y.js";import"./sortable.esm-aG8KzwUt.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DoMs787B.js";import"./use-registry-connections-sALt7ACC.js";import"./useInfiniteQuery-V0rLmF2w.js";import"./use-infinite-scroll-BLyYnILN.js";import"./extract-connection-data-D9jcQvie.js";import"./card-DWocPikY.js";import"./collection-tabs-LMEfLwWZ.js";import"./badge-DemqTgjN.js";import"./textarea-DqRxFP0T.js";import"./connection-form-helpers-Dm__G9wh.js";import"./authenticate-and-persist-oauth-ugENWEdg.js";import"./mcp-oauth-B7tRsqo-.js";import"./useSuspenseInfiniteQuery-Zpghw-jA.js";import"./connect-desktop-dialog-dXosml16.js";import"./decopilot-4k7KQSVX.js";import"./checkbox-DmyBqpG7.js";import"./skeleton-vuq3rnUi.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BOPxWg6D.js";import"./popover-voqJlCLR.js";import"./command-6Xv18lx6.js";import"./index-BHKcN4cC.js";import"./dropdown-menu-vGHmo9fD.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-YKEkF-4T.js";import"./empty-state-B4c8fq4i.js";import"./toolbar-Dsvneu3f.js";import"./preview-dialog-DC1NsLKi.js";import"./index-JuJHr8Il.js";import"./use-mcp-tools-C37oT0bu.js";import"./use-capability-qIjsd8HD.js";import"./shell-route-loading-CrU5yzKP.js";import"./tools-list-Dk1OdhLO.js";import"./alert-dialog-TZS2F66y.js";import"./use-debounced-autosave-BStxRiyA.js";import"./index-ZjRHn464.js";import"./sidebar-DLjbCYfe.js";import"./search-input-DPBtlWUD.js";import"./github-repo-picker-BR4lmXmU.js";import"./use-secrets-DyPgSICV.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-yOXFqeV7.js";import"./index-B7G40tVP.js";import"./automation-runs-DEnZLNcv.js";import"./table-DyiI6lY1.js";import"./use-members-CtUanB1S.js";import"./use-org-auth-client-BWt-3T2p.js";import"./task-status-1cY6Pf8x.js";import"./use-automations-hkjYbjXY.js";import"./use-file-configs-DwaAJaA6.js";import"./monaco-editor-CI1Pa0QN.js";import"./select-model-DdKq7y8l.js";import"./automation-list-row-RaQMgsZa.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 Ci(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{Ci 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-B37Lpv5S.js";import{D as k}from"./domain-settings-PpBMgUMH.js";import{P as f}from"./index-ZjRHn464.js";import{I as l}from"./input-D3OR9wlV.js";import{S as z}from"./switch-BwnzJhUB.js";import{a as P,b as R,c as A,d as T}from"./use-org-sso-DKfKkOYy.js";import{c as F,S as y,a as C,b as r,d as O}from"./settings-section-BOPxWg6D.js";import{s as L}from"./Trash01-B2-9vQgJ.js";import{R as q}from"./require-capability-WHfqcRqc.js";import"./studio-tools-QGvUs6qu.js";import"./badge-DemqTgjN.js";import"./select-Dm5gSFeK.js";import"./index-BdQq_4o_.js";import"./tooltip-Bjh8CXdQ.js";import"./ChevronUp-CIoJSXpm.js";import"./ChevronDown-4vfFBrpS.js";import"./sidebar-DLjbCYfe.js";import"./LayoutLeft-BA3GeXV2.js";import"./use-mobile-BsQGJSz8.js";import"./sheet-BCI6wljB.js";import"./X-DVenJxl2.js";import"./card-DWocPikY.js";import"./ArrowUpRight-D9dn8W9B.js";import"./use-capability-qIjsd8HD.js";import"./access-gate-DJ3w7Rqa.js";import"./capability-load-error-CD0k_ZBV.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 pe(){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{pe as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-Bsm16ESy.js","assets/index-B37Lpv5S.js","assets/index-rS_HhTdz.css","assets/XCircle-DkV5O0gt.js","assets/CheckCircle-4xU28_ze.js","assets/Settings02-Bvzlcm1U.js","assets/use-mcp-client-CX47WlCL.js","assets/auth-B2SyT5jq.js","assets/useInfiniteQuery-V0rLmF2w.js","assets/use-infinite-scroll-BLyYnILN.js","assets/studio-tools-QGvUs6qu.js","assets/badge-DemqTgjN.js","assets/input-D3OR9wlV.js","assets/dropdown-menu-vGHmo9fD.js","assets/ChevronUp-CIoJSXpm.js","assets/ChevronRight-BSaK-g_n.js","assets/DotsVertical-DXhOiROl.js","assets/table-DyiI6lY1.js","assets/toggle-group-CvE2Rn7y.js","assets/use-view-mode-BMTZD0uv.js","assets/use-mobile-BsQGJSz8.js","assets/FilterLines-CyP0eiMt.js","assets/Globe01-cpwm3ZU4.js","assets/SearchMd-BiaNZC1b.js","assets/dialog-BbHIKIUS.js","assets/X-DVenJxl2.js","assets/AlertCircle-NC3dB7os.js","assets/Upload01-FAxCvObz.js","assets/alert-dialog-TZS2F66y.js","assets/card-DWocPikY.js","assets/Trash01-B2-9vQgJ.js","assets/label-C3oLcOn0.js","assets/select-Dm5gSFeK.js","assets/index-BdQq_4o_.js","assets/tooltip-Bjh8CXdQ.js","assets/ChevronDown-4vfFBrpS.js","assets/switch-BwnzJhUB.js","assets/textarea-DqRxFP0T.js","assets/checkbox-DmyBqpG7.js","assets/Eye-BcF7vo02.js","assets/LinkExternal01-Dc9R-z7y.js","assets/use-copy-CjrJL2o4.js","assets/Key01-C3jXuyTV.js","assets/Plus-pFzKRSyH.js","assets/mcp-oauth-B7tRsqo-.js","assets/Play-BTFQj3qh.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-B37Lpv5S.js";import{R as u}from"./require-capability-WHfqcRqc.js";import"./use-capability-qIjsd8HD.js";import"./access-gate-DJ3w7Rqa.js";import"./capability-load-error-CD0k_ZBV.js";const g=l.lazy(()=>f(()=>import("./registry-layout-Bsm16ESy.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45])));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{c as h,w as I,K as T,p as b,a7 as C,ad as k,j as o}from"./index-B37Lpv5S.js";import{i as N}from"./mcp-oauth-B7tRsqo-.js";import{B as x}from"./badge-DemqTgjN.js";import{T as y,a as j,b as g,c as S}from"./tooltip-Bjh8CXdQ.js";import{g as _}from"./types-CXT3eJPp.js";import{s as $}from"./Eye-BcF7vo02.js";import{s as w}from"./Star01-B2kdQndt.js";import{aj as A}from"./agent-icon-B9Rg96af.js";function M(m){const e=h.c(11),{connectionId:a}=m,{org:r}=I();let i,t,l;e[0]!==a||e[1]!==r.slug?(i=new URL(`/api/${r.slug}/mcp/${a}`,window.location.origin),l=b,t=T.isMCPAuthenticated(i.href,null),e[0]=a,e[1]=r.slug,e[2]=i,e[3]=t,e[4]=l):(i=e[2],t=e[3],l=e[4]);let s;e[5]!==i||e[6]!==r.id?(s=()=>N({url:i.href,token:null,orgId:r.id}),e[5]=i,e[6]=r.id,e[7]=s):s=e[7];let n;e[8]!==t||e[9]!==s?(n={queryKey:t,queryFn:s},e[8]=t,e[9]=s,e[10]=n):n=e[10];const{data:c}=l(n);return c}const H=[{key:"readOnlyHint",label:"Read-only",Icon:$,variant:"secondary"},{key:"destructiveHint",label:"Destructive",Icon:C,variant:"destructive"},{key:"idempotentHint",label:"Idempotent",Icon:k,variant:"secondary"},{key:"openWorldHint",label:"Open-world",Icon:w,variant:"outline"}];function D(m){const e=h.c(18),{annotations:a,_meta:r}=m;let i;e[0]!==r?(i=_(r),e[0]=r,e[1]=i):i=e[1];const t=!!i;let l,s,n,c,u;if(e[2]!==a||e[3]!==t){u=Symbol.for("react.early_return_sentinel");e:{const f=a?H.filter(v=>a[v.key]===!0):[];if(f.length===0&&!t){u=null;break e}l=S,s="flex gap-1 flex-nowrap",e[9]!==t?(n=t&&o.jsxs(y,{children:[o.jsx(j,{asChild:!0,children:o.jsx(x,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:o.jsx(A,{})})}),o.jsx(g,{children:"Interactive"})]}),e[9]=t,e[10]=n):n=e[10],c=f.map(P)}e[2]=a,e[3]=t,e[4]=l,e[5]=s,e[6]=n,e[7]=c,e[8]=u}else l=e[4],s=e[5],n=e[6],c=e[7],u=e[8];if(u!==Symbol.for("react.early_return_sentinel"))return u;let d;e[11]!==s||e[12]!==n||e[13]!==c?(d=o.jsxs("div",{className:s,children:[n,c]}),e[11]=s,e[12]=n,e[13]=c,e[14]=d):d=e[14];let p;return e[15]!==l||e[16]!==d?(p=o.jsx(l,{children:d}),e[15]=l,e[16]=d,e[17]=p):p=e[17],p}function P(m){const{label:e,Icon:a,variant:r}=m;return o.jsxs(y,{children:[o.jsx(j,{asChild:!0,children:o.jsx(x,{asChild:!0,variant:r,className:"size-6 p-1",children:o.jsx(a,{})})}),o.jsx(g,{children:e})]},e)}export{D as T,M as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as f,w as C}from"./index-B37Lpv5S.js";import{a as N,b as O,u as S}from"./use-collections-OMXnywUO.js";import{S as I,u as m}from"./use-mcp-client-CX47WlCL.js";function E(t){const o=f.c(20);let i;o[0]!==t?(i=t===void 0?{}:t,o[0]=t,o[1]=i):i=o[1];const n=i;let l,s,c,d;o[2]!==n?({binding:l,includeVirtual:c,slug:d,...s}=n,o[2]=n,o[3]=l,o[4]=s,o[5]=c,o[6]=d):(l=o[3],s=o[4],c=o[5],d=o[6]);let e;o[7]!==l||o[8]!==s.additionalToolArgs||o[9]!==c||o[10]!==d?(e={...s.additionalToolArgs},l!==void 0&&(e.binding=l),c!==void 0&&(e.include_virtual=c),d!==void 0&&(e.slug=d),o[7]=l,o[8]=s.additionalToolArgs,o[9]=c,o[10]=d,o[11]=e):e=o[11];let r;o[12]!==e?(r=Object.keys(e).length>0?e:void 0,o[12]=e,o[13]=r):r=o[13];let g;o[14]!==s||o[15]!==r?(g={...s,additionalToolArgs:r},o[14]=s,o[15]=r,o[16]=g):g=o[16];const p=g,{org:u}=C();let a;o[17]!==u.id||o[18]!==u.slug?(a={connectionId:I,orgId:u.id,orgSlug:u.slug},o[17]=u.id,o[18]=u.slug,o[19]=a):a=o[19];const A=m(a);return O(u.id,"CONNECTIONS",A,p)}function _(t){const o=f.c(3),{org:i}=C();let n;o[0]!==i.id||o[1]!==i.slug?(n={connectionId:I,orgId:i.id,orgSlug:i.slug},o[0]=i.id,o[1]=i.slug,o[2]=n):n=o[2];const l=m(n);return S(i.id,"CONNECTIONS",t,l)}function x(){const t=f.c(3),{org:o}=C();let i;t[0]!==o.id||t[1]!==o.slug?(i={connectionId:I,orgId:o.id,orgSlug:o.slug},t[0]=o.id,t[1]=o.slug,t[2]=i):i=t[2];const n=m(i);return N(o.id,"CONNECTIONS",n)}export{_ as a,x as b,E as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as x,w as j,a as i}from"./index-B37Lpv5S.js";function w(){const e=x.c(32),{org:O}=j(),o=O.id;let z;e[0]!==o?(z=R=>(f=>i.organization[R]({...f??{},organizationId:o})),e[0]=o,e[1]=z):z=e[1];const t=z;let M;e[2]!==o?(M=R=>(f=>{const y={...f??{}},h=y.query??{};return y.query={...h,organizationId:o},i.organization[R](y)}),e[2]=o,e[3]=M):M=e[3];const n=M;let a,r;e[4]!==n?(a=n("listMembers"),r=n("listRoles"),e[4]=n,e[5]=a,e[6]=r):(a=e[5],r=e[6]);let l,s,c,g,u,m,d,v,b;e[7]!==t?(g=t("inviteMember"),u=t("removeMember"),m=t("updateMemberRole"),d=t("addMember"),v=t("createRole"),b=t("updateRole"),l=t("deleteRole"),s=t("cancelInvitation"),c=t("update"),e[7]=t,e[8]=l,e[9]=s,e[10]=c,e[11]=g,e[12]=u,e[13]=m,e[14]=d,e[15]=v,e[16]=b):(l=e[8],s=e[9],c=e[10],g=e[11],u=e[12],m=e[13],d=e[14],v=e[15],b=e[16]);let p;e[17]!==n?(p=n("getActiveMember"),e[17]=n,e[18]=p):p=e[18];let I;return e[19]!==l||e[20]!==s||e[21]!==c||e[22]!==p||e[23]!==a||e[24]!==r||e[25]!==g||e[26]!==u||e[27]!==m||e[28]!==d||e[29]!==v||e[30]!==b?(I={organization:{listMembers:a,listRoles:r,inviteMember:g,removeMember:u,updateMemberRole:m,addMember:d,createRole:v,updateRole:b,deleteRole:l,cancelInvitation:s,update:c,getActiveMember:p,acceptInvitation:i.organization.acceptInvitation,rejectInvitation:i.organization.rejectInvitation,getInvitation:i.organization.getInvitation,list:i.organization.list,create:i.organization.create,getFullOrganization:i.organization.getFullOrganization}},e[19]=l,e[20]=s,e[21]=c,e[22]=p,e[23]=a,e[24]=r,e[25]=g,e[26]=u,e[27]=m,e[28]=d,e[29]=v,e[30]=b,e[31]=I):I=e[31],I}export{w as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./use-infinite-scroll-BLyYnILN.js";import{cJ as i}from"./index-B37Lpv5S.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-BLyYnILN.js";import{cJ as u,am as n}from"./index-B37Lpv5S.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-B37Lpv5S.js";import{T as et,f as ct}from"./agent-icon-B9Rg96af.js";import{n as mt}from"./ChevronLeft-CCAFk4Lh.js";import{i as dt}from"./ChevronRight-BSaK-g_n.js";import{L as ft}from"./label-C3oLcOn0.js";import{S as nt}from"./scroll-area-CLfWXW0D.js";import{S as pt}from"./switch-BwnzJhUB.js";import{a as ut,T as ht,b as gt}from"./tooltip-Bjh8CXdQ.js";import{V as xt}from"./view-mode-toggle-yOXFqeV7.js";import"./AlertCircle-NC3dB7os.js";import"./Tool01-BmUpgiVH.js";import"./SwitchHorizontal01-CPEaTyhx.js";import"./Settings02-Bvzlcm1U.js";import"./XCircle-DkV5O0gt.js";import"./ArrowUpRight-D9dn8W9B.js";import"./ZapSquare-BupPfcYG.js";import"./Users03-vYWz866I.js";import"./CheckCircle-4xU28_ze.js";import"./ChevronUp-CIoJSXpm.js";import"./ChevronDown-4vfFBrpS.js";import"./DotsVertical-DXhOiROl.js";import"./Stars02-i3gYlhXk.js";import"./Eye-BcF7vo02.js";import"./ZoomOut-DXDDUqzg.js";import"./Globe01-cpwm3ZU4.js";import"./FilterLines-CyP0eiMt.js";import"./Star01-B2kdQndt.js";import"./Globe04-DdU789Mf.js";import"./HardDrive-8lyy5Dp-.js";import"./Key01-C3jXuyTV.js";import"./LayoutLeft-BA3GeXV2.js";import"./LinkExternal01-Dc9R-z7y.js";import"./Monitor01-4eRzNp1q.js";import"./Sun-CoqE3qoL.js";import"./Palette-DziwArEq.js";import"./Play-BTFQj3qh.js";import"./Plus-pFzKRSyH.js";import"./SearchMd-BiaNZC1b.js";import"./Shield01-CtXmxEJK.js";import"./Stars01-C_5LYi93.js";import"./Trash01-B2-9vQgJ.js";import"./Upload01-FAxCvObz.js";import"./User01-C1HCSK6y.js";import"./Users01-D0cghbTw.js";import"./XClose-1aztqZN5.js";import"./X-DVenJxl2.js";import"./Zap-CxBpS0TW.js";import"./use-clock-tick-Doyl2hlk.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CjrJL2o4.js";import"./file-type-icon-DO4mmgEl.js";import"./dialog-BbHIKIUS.js";import"./use-mobile-BsQGJSz8.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-CXT3eJPp.js";import"./use-mcp-client-CX47WlCL.js";import"./auth-B2SyT5jq.js";import"./chat-context-bLbsqSUE.js";import"./hooks-DlrZPw8A.js";import"./decopilot-sse-pool-BEKDdVOU.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-ByWPjIzd.js";import"./use-collections-OMXnywUO.js";import"./use-ai-providers-Cm6bJu4O.js";import"./studio-tools-QGvUs6qu.js";import"./use-organization-settings-Cw-0oyZX.js";import"./shell-layout-BpdvdxRY.js";import"./avatar-Cz89OzST.js";import"./required-auth-layout-CcH9lzeU.js";import"./use-org-sso-DKfKkOYy.js";import"./sheet-BCI6wljB.js";import"./integration-icon-DtONHt_d.js";import"./use-navigate-to-agent-C_B7rQZ3.js";import"./use-connection-CQmB3ngS.js";import"./use-mcp-prompts-CbrvbR3P.js";import"./form-BtzyQGYU.js";import"./input-D3OR9wlV.js";import"./index-BdQq_4o_.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 _n(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{_n as VariantCalendar};
|