decocms 4.585.0 → 4.586.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-rt5NTcOt.js → AlertCircle-CGZfuvxJ.js} +1 -1
- package/dist/client/assets/{AreaChart-CX9a7r2e.js → AreaChart-DXqVsicd.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BtflI84P.js → ArrowLeft-XURGfwpG.js} +1 -1
- package/dist/client/assets/{ArrowRight-DckDNEPN.js → ArrowRight-ZoKxZa45.js} +1 -1
- package/dist/client/assets/{ArrowUp-BX9rle-Z.js → ArrowUp-DJZ55cl-.js} +1 -1
- package/dist/client/assets/{BookOpen01-Cdt9znE-.js → BookOpen01-gO5hgFUK.js} +1 -1
- package/dist/client/assets/{CartesianChart-BjWXwRV3.js → CartesianChart-B0LNjIyx.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DAGT6hYP.js → CategoricalChart-CmAKQrAh.js} +1 -1
- package/dist/client/assets/{CheckCircle-DQ8gl2jA.js → CheckCircle-CmN8U1V5.js} +1 -1
- package/dist/client/assets/{ChevronDown-88QbtNjw.js → ChevronDown-ClblfTVV.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-BfhN49CO.js → ChevronSelectorVertical-YxAp9GGa.js} +1 -1
- package/dist/client/assets/{ChevronUp-BwBBvXr-.js → ChevronUp-0ZCAxpBW.js} +1 -1
- package/dist/client/assets/{CreditCard01-CHpJYShR.js → CreditCard01-CcTQ1h3_.js} +1 -1
- package/dist/client/assets/{Eye-C8bzWtOv.js → Eye-D5j_svLn.js} +1 -1
- package/dist/client/assets/{File02-CpMe0sR1.js → File02-Cs751Kds.js} +1 -1
- package/dist/client/assets/{Globe04-BGaPJwRM.js → Globe04-DO1uUwfE.js} +1 -1
- package/dist/client/assets/{Image01-CyjafdfK.js → Image01-CJL4B_rR.js} +1 -1
- package/dist/client/assets/{Key01-NBdT0O9W.js → Key01-fuHivqLl.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BI23EoSs.js → LayoutLeft-CCeum9wV.js} +1 -1
- package/dist/client/assets/{LinkBroken01-DWWxoD2s.js → LinkBroken01-cq4srxHs.js} +1 -1
- package/dist/client/assets/{MessageCircle01-pdZ3c0Ei.js → MessageCircle01-Bf6dD94_.js} +1 -1
- package/dist/client/assets/{Minus-ToHFKPwl.js → Minus-Cc21R1KY.js} +1 -1
- package/dist/client/assets/{Monitor01-DQ2oaJ_f.js → Monitor01-DGdgEYxG.js} +1 -1
- package/dist/client/assets/{Play-Dgyu5PiH.js → Play-zYFs_vGL.js} +1 -1
- package/dist/client/assets/{Plus-NIlBePVH.js → Plus--DcN-eh1.js} +1 -1
- package/dist/client/assets/{ReferenceLine-SNMItkZP.js → ReferenceLine-D6M1JZR1.js} +1 -1
- package/dist/client/assets/{SearchMd-BZFf7uAm.js → SearchMd-BwYuN52e.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-CA3tpOzv.js → ShoppingBag01-D-gmqcz7.js} +1 -1
- package/dist/client/assets/{Sun-CGayzxv4.js → Sun-D9ql5ZlI.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BCndh-XX.js → SwitchHorizontal01-BQF84Li3.js} +1 -1
- package/dist/client/assets/{Tool01-CRE8Zr1E.js → Tool01-BeDQSGiN.js} +1 -1
- package/dist/client/assets/{Tooltip-DB98MWaY.js → Tooltip-C_RHysFo.js} +1 -1
- package/dist/client/assets/{Trash01-C1sTtIQd.js → Trash01-BmQrADz0.js} +1 -1
- package/dist/client/assets/{TrendUp01-CkF2n8Hn.js → TrendUp01-_SFSHjzO.js} +1 -1
- package/dist/client/assets/{Upload01-DF54M6Ph.js → Upload01-DOfZqxci.js} +1 -1
- package/dist/client/assets/{UserCheck01-D14kK5BQ.js → UserCheck01-BMoOFYIZ.js} +1 -1
- package/dist/client/assets/{UserSquare-DAFK733H.js → UserSquare-Dn1UPzSD.js} +1 -1
- package/dist/client/assets/{Users01-8BTVWXNl.js → Users01-B_yoWxPn.js} +1 -1
- package/dist/client/assets/{XClose-igHVZF4W.js → XClose-C4MsAn9v.js} +1 -1
- package/dist/client/assets/{Zap-CZUa6DWb.js → Zap-DoxB0q6B.js} +1 -1
- package/dist/client/assets/{access-gate-DT-H-Dma.js → access-gate-DQ55JjgP.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-CmjWx4NO.js → add-connection-dialog-D0PlxcOk.js} +1 -1
- package/dist/client/assets/agent-app-Ch0m8w-u.js +1 -0
- package/dist/client/assets/{agent-assets-CJbN5bjE.js → agent-assets-COp9WevM.js} +1 -1
- package/dist/client/assets/{agent-automation-DQLWalf1.js → agent-automation-DRfIHgf4.js} +3 -3
- package/dist/client/assets/{agent-automations-DyupYjyf.js → agent-automations-C02SU72h.js} +1 -1
- package/dist/client/assets/{agent-blog-post-DN9dxO82.js → agent-blog-post-BOz0k9l4.js} +2 -2
- package/dist/client/assets/agent-blog-yxvdX-jE.js +2 -0
- package/dist/client/assets/{agent-calendar-CbXz7NvX.js → agent-calendar-BrjcVSaH.js} +1 -1
- package/dist/client/assets/{agent-capabilities-B2Kb_ijp.js → agent-capabilities-Dh06TMfs.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-rfNCNIVh.js → agent-connect-sources-DhRc2-S_.js} +1 -1
- package/dist/client/assets/agent-deck-BEYLEOzY.js +1 -0
- package/dist/client/assets/{agent-e2e-DintiVYM.js → agent-e2e-w331hEXE.js} +1 -1
- package/dist/client/assets/agent-experiments-CIRveYjB.js +1 -0
- package/dist/client/assets/agent-file-CRD-Yf8v.js +1 -0
- package/dist/client/assets/{agent-hosting-BW8Utp_Y.js → agent-hosting-Cf_5DVCs.js} +1 -1
- package/dist/client/assets/{agent-icon-BJ2Wx2fE.js → agent-icon-DwJHakBB.js} +1 -1
- package/dist/client/assets/agent-library-BDbVLVqf.js +1 -0
- package/dist/client/assets/agent-library-file-FdEtCyvQ.js +1 -0
- package/dist/client/assets/agent-overview-90jCAnhT.js +1 -0
- package/dist/client/assets/agent-releases-CQDLHf-9.js +2 -0
- package/dist/client/assets/agent-settings-DazJIQdd.js +1 -0
- package/dist/client/assets/{agent-site-editor-CRztMY23.js → agent-site-editor-Bn_zysVp.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-AxRnYsCW.js +2 -0
- package/dist/client/assets/agent-site-editor-content-Css28lBT.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-rUOwwi2z.js +1 -0
- package/dist/client/assets/agent-view-BwA2SWmb.js +1 -0
- package/dist/client/assets/{agent-view-guard-X-bc2zlR.js → agent-view-guard-_UB25wdA.js} +1 -1
- package/dist/client/assets/{ai-providers-D8Mc6Vyc.js → ai-providers-BZmTFJ6J.js} +1 -1
- package/dist/client/assets/{alert-_oqAOD6X.js → alert-Dl9RecsO.js} +1 -1
- package/dist/client/assets/{analytics-sections-DQPy3uP4.js → analytics-sections-ChR-yKgZ.js} +1 -1
- package/dist/client/assets/api-keys-7ijHuhZV.js +1 -0
- package/dist/client/assets/{api-keys-D9ZKdCDY.js → api-keys-BAKKjcCM.js} +1 -1
- package/dist/client/assets/{app-editor-CC7vXN9x.js → app-editor-aGjbireC.js} +1 -1
- package/dist/client/assets/{asset-utils-DDL7Zhst.js → asset-utils-C40qdOgS.js} +1 -1
- package/dist/client/assets/{auth-DdGqjHXO.js → auth-DuSLyK-k.js} +1 -1
- package/dist/client/assets/{auth-catchall-CmxNn2GB.js → auth-catchall-CwzGmsez.js} +1 -1
- package/dist/client/assets/auth-entry-QpiCG8Kt.js +1 -0
- package/dist/client/assets/{auth-split-layout-BiPDNEOk.js → auth-split-layout-D0SngsR5.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-ZxRhWemt.js → authenticate-and-persist-oauth-BrPxKw11.js} +1 -1
- package/dist/client/assets/{automation-list-row-mqAbrUKE.js → automation-list-row-C_0woHJW.js} +1 -1
- package/dist/client/assets/{automation-runs-D2e4MXIM.js → automation-runs-DwwK7nJ3.js} +1 -1
- package/dist/client/assets/{automations-B4kujL15.js → automations-Dc36NZHt.js} +1 -1
- package/dist/client/assets/{badge-C-0ziPev.js → badge-BvHOfdxU.js} +1 -1
- package/dist/client/assets/{block-document-DWg9Jn1G.js → block-document-CGK32I9G.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-DhEK2mBx.js → blocks-preview-workspace-context-CN-ldvuU.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-pUzFXPTK.js → blocks-tab-states-DxLq1BL5.js} +1 -1
- package/dist/client/assets/{blog-preview-url-BOmxSryn.js → blog-preview-url-cX5z_9aO.js} +1 -1
- package/dist/client/assets/{blog-schema-CE1tBnsD.js → blog-schema-CTE9utzf.js} +1 -1
- package/dist/client/assets/{blog-source-gate-V0t8xMYW.js → blog-source-gate-DWHD3Df5.js} +1 -1
- package/dist/client/assets/{blog-view-gate-BO7XupIe.js → blog-view-gate-DT-8hHxE.js} +1 -1
- package/dist/client/assets/{buckets-D_a3q7Rp.js → buckets-DMt9Xchk.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BGzcibxZ.js → build-improve-prompt-doc-D0Nbi1s7.js} +1 -1
- package/dist/client/assets/{calendar-DXtndUQf.js → calendar-BUgmhSfk.js} +1 -1
- package/dist/client/assets/{capability-load-error-BYOGvrqt.js → capability-load-error-DCoklIp8.js} +1 -1
- package/dist/client/assets/{category-editor-j7sSG9YT.js → category-editor-B7D8BVkO.js} +1 -1
- package/dist/client/assets/{category-tree-CqfxuXDr.js → category-tree-BeXLYa5S.js} +1 -1
- package/dist/client/assets/{chart-CzbHqflS.js → chart-DfTUTOGH.js} +1 -1
- package/dist/client/assets/{chat-context-CzmbAHe8.js → chat-context-DG5tQFfU.js} +1 -1
- package/dist/client/assets/{chat-draft-CMZymjc1.js → chat-draft-Bv2iw9Fr.js} +1 -1
- package/dist/client/assets/{checkbox-CnO5GKzb.js → checkbox-DAnVkT6Q.js} +1 -1
- package/dist/client/assets/{choose-editor-DSLflE6y.js → choose-editor-DX9vd71s.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DW_MXZoK.js → cli-auth-success-CY4cK7Ok.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-VV8k-MFF.js → cms-settings-editor-Cj7WfazE.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-D_kzaiOk.js → cms-store-drafts-BDhAH5vV.js} +1 -1
- package/dist/client/assets/{collapsible-Czfx-LAp.js → collapsible-DifRD2Ww.js} +1 -1
- package/dist/client/assets/{collection-detail-2JRT-w_Q.js → collection-detail-Bq38QGfT.js} +1 -1
- package/dist/client/assets/{collection-display-button-DkpROg50.js → collection-display-button-nfEDIRuH.js} +1 -1
- package/dist/client/assets/{collection-search-fi8Jpdhv.js → collection-search-RWM-9f07.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-B8CD5YXs.js → collection-table-wrapper-DVjGjn7R.js} +1 -1
- package/dist/client/assets/{collection-tabs-C_tkgeK_.js → collection-tabs-BkmY1xp_.js} +1 -1
- package/dist/client/assets/{combobox-Q8ZHlgvG.js → combobox-D7DiHBHL.js} +1 -1
- package/dist/client/assets/{command-Bq8LzPoY.js → command-DHGFzOhP.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-ATwmtkbj.js → companion-mcps-section-D7d32LFm.js} +1 -1
- package/dist/client/assets/{config-CpgY06XK.js → config-dB-x76iz.js} +1 -1
- package/dist/client/assets/{connect-BEtqH7dw.js → connect-D-G-5Mck.js} +3 -3
- package/dist/client/assets/{connect-key-BIkvDwd3.js → connect-key-DYxzA5cq.js} +1 -1
- package/dist/client/assets/{connect-layout-B_lgJ90N.js → connect-layout-vX9TenPs.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-GkRu49Gr.js → connect-source-dialog-hJXgVRU-.js} +1 -1
- package/dist/client/assets/{connection-BGRWc-KI.js → connection-CeuJqjaI.js} +1 -1
- package/dist/client/assets/{connection-card-BuyifKDO.js → connection-card-bC9jkQR3.js} +1 -1
- package/dist/client/assets/{connection-detail-DWfh1vBP.js → connection-detail-BZxu1Il4.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DVl_sDCj.js → connection-form-helpers-BVK3iXej.js} +1 -1
- package/dist/client/assets/{connection-slug-BU-gcFLx.js → connection-slug-BofuMVWL.js} +1 -1
- package/dist/client/assets/{connections-CYCgeS9i.js → connections-_2oGT26C.js} +1 -1
- package/dist/client/assets/{content-tab-anxUFFKF.js → content-tab-B2YwxmJz.js} +3 -3
- package/dist/client/assets/{context-DMfn82WA.js → context-RVZVsnak.js} +1 -1
- package/dist/client/assets/{context-menu-lKQYrmaS.js → context-menu-BgKzmvfA.js} +1 -1
- package/dist/client/assets/{context-shell-DxJ2zBIa.js → context-shell-Bnnp_FlP.js} +5 -5
- package/dist/client/assets/{create-organization-dialog-CovUQJjl.js → create-organization-dialog-BeGGdtfc.js} +1 -1
- package/dist/client/assets/{daily-pulse-eYYXeJUB.js → daily-pulse-D8S4f077.js} +1 -1
- package/dist/client/assets/{delete-copy-bwY-nICG.js → delete-copy-C7-0DCkQ.js} +1 -1
- package/dist/client/assets/{device-hint-Eqj86kPk.js → device-hint-B6fw2qhI.js} +1 -1
- package/dist/client/assets/{discover-fbAn9icf.js → discover-BhyJuEKB.js} +1 -1
- package/dist/client/assets/{domain-settings-BFmlLB0B.js → domain-settings-DWaq5CPi.js} +1 -1
- package/dist/client/assets/{drawer-cS0px3h4.js → drawer-BXd80xtd.js} +1 -1
- package/dist/client/assets/{editor-DOCwgCVw.js → editor-DNZ-WgCS.js} +1 -1
- package/dist/client/assets/{editor-classes-ByZrgCwF.js → editor-classes-CzejjvgI.js} +1 -1
- package/dist/client/assets/{empty-message-BnLHUiLW.js → empty-message-DVICFi26.js} +2 -2
- package/dist/client/assets/{empty-state-BNznQ4un.js → empty-state-BK8GboWz.js} +1 -1
- package/dist/client/assets/{empty-state-haYeO0--.js → empty-state-LbEOn0Mj.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-gTPA_Mh1.js → experiments-tab-choice-DYGF6IS1.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DR98xre0.js → extract-connection-data-B1FMXoXK.js} +1 -1
- package/dist/client/assets/{feature-gate-v3Hw92O6.js → feature-gate-XyzkzO9l.js} +1 -1
- package/dist/client/assets/{feature-paywall-_CmjErfx.js → feature-paywall-DQF2iJDP.js} +1 -1
- package/dist/client/assets/{file-explorer-Dg2yjMkc.js → file-explorer-DbKxpql5.js} +1 -1
- package/dist/client/assets/{file-preview-DQmRHFMz.js → file-preview-A0GfMNED.js} +1 -1
- package/dist/client/assets/{file-share-button-5oty69zd.js → file-share-button-pVEpOvSY.js} +2 -2
- package/dist/client/assets/{file-type-icon-5ukaLDeF.js → file-type-icon-CSrE_noX.js} +1 -1
- package/dist/client/assets/{folder-icon-CKc3CbqF.js → folder-icon-CA298KqN.js} +1 -1
- package/dist/client/assets/{form-vgZJ8ykR.js → form-Cxhh0mxt.js} +1 -1
- package/dist/client/assets/{frame-navigation-uIOzC0fQ.js → frame-navigation--4kFXAAS.js} +1 -1
- package/dist/client/assets/{gateway-client-CEz2o7p6.js → gateway-client-PdaGLWBA.js} +1 -1
- package/dist/client/assets/{general-CcVyD7wz.js → general-CuKnI3HJ.js} +1 -1
- package/dist/client/assets/{github-icon-CNkm_QOq.js → github-icon-h_xg-qFR.js} +1 -1
- package/dist/client/assets/{held-block-view-DLTLVbz1.js → held-block-view-zi4CM-KX.js} +1 -1
- package/dist/client/assets/{home-overview-BJHC8k_H.js → home-overview-DrWyW-2I.js} +1 -1
- package/dist/client/assets/{home-DEyrMuE0.js → home-w1KhoL46.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-B7PmB0kg.js → hosted-reconcile-uX15ZUhb.js} +1 -1
- package/dist/client/assets/{icon-button-DAAwLc_Y.js → icon-button-DzpdeaSs.js} +1 -1
- package/dist/client/assets/{index-CKEvWalC.js → index-3e8V4Do_.js} +1 -1
- package/dist/client/assets/{index-G68rd1Q1.js → index-5KkkYmJi.js} +1 -1
- package/dist/client/assets/{index-BuFUNk86.js → index-BK93qS26.js} +1 -1
- package/dist/client/assets/index-BYaF8G7R.js +1 -0
- package/dist/client/assets/{index-DGJ99-Gb.js → index-Bld02Tnb.js} +1 -1
- package/dist/client/assets/{index-BMmbX0gD.js → index-BpNyzjaQ.js} +1 -1
- package/dist/client/assets/{index-BMPeWdJw.js → index-BuZqAz74.js} +10 -10
- package/dist/client/assets/{index-AJsDmYGI.js → index-BwBEUlXI.js} +1 -1
- package/dist/client/assets/{index-iNQuijBz.js → index-CZTrNcsP.js} +1 -1
- package/dist/client/assets/{index-Behj8iY8.js → index-C_n-5x2E.js} +1 -1
- package/dist/client/assets/{index-BDs-2B47.js → index-DNuvhcDO.js} +1 -1
- package/dist/client/assets/{index-uc8MAfE7.js → index-DUn-LHzT.js} +2 -2
- package/dist/client/assets/{index-CSLJLC25.js → index-DsWqYG3w.js} +1 -1
- package/dist/client/assets/{index-CCPTG3M6.js → index-SIZschZt.js} +1 -1
- package/dist/client/assets/{index-BXSfOUsr.js → index-SPj0mL-J.js} +1 -1
- package/dist/client/assets/index-_-faNWQZ.css +1 -0
- package/dist/client/assets/index-ba5Vf9vt.js +1 -0
- package/dist/client/assets/{index-redirect-CO9DsboT.js → index-redirect-DlIbuGOg.js} +1 -1
- package/dist/client/assets/{index-Cm1vOK0e.js → index-rt88hTRg.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BmYMm5wr.js → infiniteQueryObserver-CHN_AvWa.js} +1 -1
- package/dist/client/assets/{infra-billing-BWqkgHts.js → infra-billing-DHY4EnRE.js} +1 -1
- package/dist/client/assets/{input-Bp705GAE.js → input--XeG2v6T.js} +1 -1
- package/dist/client/assets/{input-BmsdW_BQ.js → input-c6Cx2liY.js} +4 -4
- package/dist/client/assets/{integration-icon-xMpRZNbX.js → integration-icon-D7fga3kk.js} +1 -1
- package/dist/client/assets/{item-actions-Bf8HZ-5j.js → item-actions-Dld5lBtQ.js} +1 -1
- package/dist/client/assets/{jira-icon-BMvTcIMX.js → jira-icon-_W0tffOR.js} +1 -1
- package/dist/client/assets/{label-CRK3U7ZP.js → label-Dm_T3WyF.js} +1 -1
- package/dist/client/assets/{layout-CHGNZWxg.js → layout-DhN3YXX3.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-DpejN_Uy.js → legacy-admin-welcome-dialog-C0w-pw6s.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-D1euSyKS.js → legacy-agents-deep-ab_jOs-e.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-B3en36R6.js → legacy-main-redirect-ByIcJoSw.js} +1 -1
- package/dist/client/assets/library-LpeL-fNK.js +1 -0
- package/dist/client/assets/{library-tab-DC3m8XDz.js → library-tab-Cui4e0pM.js} +1 -1
- package/dist/client/assets/{login-SeftNnF0.js → login-COwI3GAk.js} +1 -1
- package/dist/client/assets/{markdown-BWT_4WJH.js → markdown-CwYBGb1B.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-YjPzFqL6.js → mcp-app-renderer-CLuYD3rD.js} +2 -2
- package/dist/client/assets/{mcp-oauth-DUQJVV6B.js → mcp-oauth-DZ8B5A_7.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DIu8HkzC.js → mcp-oauth-i1ZYjV6U.js} +1 -1
- package/dist/client/assets/{members-CJTZpTtw.js → members-CvbIQPwh.js} +1 -1
- package/dist/client/assets/{memory-CLaxe2x0.js → memory-BhMXHewc.js} +2 -2
- package/dist/client/assets/{mock-board-BaGiiwoI.js → mock-board-DN7OLcTA.js} +3 -3
- package/dist/client/assets/{monaco-editor-BxMnwfXM.js → monaco-editor-CTONBla7.js} +1 -1
- package/dist/client/assets/{monitoring-GRSBuzQc.js → monitoring-DPSQDGbL.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BBOPc2qP.js → monitoring-stats-row-BUZplGDl.js} +1 -1
- package/dist/client/assets/{multi-select-DVZ3FnG7.js → multi-select-BSuPEET4.js} +1 -1
- package/dist/client/assets/{mustache-E-ICl6wm.js → mustache-C50JF2sQ.js} +1 -1
- package/dist/client/assets/{named-rule-step-ip9CKl8c.js → named-rule-step-D8j_NuRK.js} +1 -1
- package/dist/client/assets/{named-rule-view-BHX0uLb-.js → named-rule-view-D9U19iHq.js} +1 -1
- package/dist/client/assets/{new-project-dialog-IDVZ0s2M.js → new-project-dialog-Bq2YhVDS.js} +1 -1
- package/dist/client/assets/{new-project-store-DBh8m9Ki.js → new-project-store-C82itd6a.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-C3RLK51c.js → oauth-callback-ai-provider-Dph1UX9E.js} +1 -1
- package/dist/client/assets/{oauth-callback-DjYIh0u9.js → oauth-callback-xH1_0Q9p.js} +1 -1
- package/dist/client/assets/{oauth-consent-CECFMIBt.js → oauth-consent-BJ9Jn7G7.js} +1 -1
- package/dist/client/assets/{onboarding-DRz0hsnB.js → onboarding-tM_LYdg0.js} +1 -1
- package/dist/client/assets/{openai-conversation-Brbpa4hN.js → openai-conversation-DoQ_2Seq.js} +2 -2
- package/dist/client/assets/{optimistic-project-sidebar-views-Bc7ykqLS.js → optimistic-project-sidebar-views-TOzwQjCp.js} +1 -1
- package/dist/client/assets/{order-monitor-day-Bf9NXaQ2.js → order-monitor-day-BqegE0N0.js} +1 -1
- package/dist/client/assets/{organization-choice-a8tN-5b7.js → organization-choice-BzjQ0aL1.js} +1 -1
- package/dist/client/assets/{orgs-BH47tVjw.js → orgs-WruSV9A-.js} +1 -1
- package/dist/client/assets/{own-accounts-section-_AetYnrA.js → own-accounts-section-TMVLN8mQ.js} +1 -1
- package/dist/client/assets/{pair-Bonyggei.js → pair-BYbJa99U.js} +10 -10
- package/dist/client/assets/{parse-sections-B5CRYtt9.js → parse-sections-CVDx-uBN.js} +3 -3
- package/dist/client/assets/{plan-Cb1ij9Nx.js → plan-DDx2VxJ0.js} +1 -1
- package/dist/client/assets/{plan-ladder-B-wAiO1o.js → plan-ladder-Ce2vSjaL.js} +1 -1
- package/dist/client/assets/{plan-usage-card-BhaN2UzC.js → plan-usage-card-CvxOK5ad.js} +2 -2
- package/dist/client/assets/{popover-zwWAAqUd.js → popover-D6EIL5sL.js} +1 -1
- package/dist/client/assets/{post-calendar-B7jwyYDv.js → post-calendar-J6Cs6vQ8.js} +1 -1
- package/dist/client/assets/{post-editor-DaufIzXa.js → post-editor-v1jKXm9-.js} +2 -2
- package/dist/client/assets/{preview-content-AWMAtXmK.js → preview-content-9gQGJiFY.js} +1 -1
- package/dist/client/assets/{preview-dialog-BazGoe9K.js → preview-dialog-J4DJmy9P.js} +1 -1
- package/dist/client/assets/{preview-panel-BUZpP8s8.js → preview-panel-DLe0RaXg.js} +1 -1
- package/dist/client/assets/{preview-tab-BiDrtTyp.js → preview-tab-BxZksZBr.js} +5 -5
- package/dist/client/assets/{product-picker-dialog-Wj5snGI8.js → product-picker-dialog-DCC_2JmD.js} +1 -1
- package/dist/client/assets/{profile-D-82qdYz.js → profile-CU5pOHcx.js} +1 -1
- package/dist/client/assets/project-app-view-Chii7rIX.js +1 -0
- package/dist/client/assets/{project-apps-Ci9IlHkX.js → project-apps-Dezyz6_N.js} +1 -1
- package/dist/client/assets/{project-icon-DqFpEPg-.js → project-icon-BHn6Xq54.js} +1 -1
- package/dist/client/assets/{project-index-Dn3n52T-.js → project-index-5c8GGatg.js} +1 -1
- package/dist/client/assets/project-reports-BhJG82JT.js +1 -0
- package/dist/client/assets/project-tasks-AXDig_Zb.js +1 -0
- package/dist/client/assets/{projects-C-pel4ez.js → projects-C19Wu8MK.js} +1 -1
- package/dist/client/assets/{projects-empty-state-Bsnv3dFv.js → projects-empty-state-Dh0sHuPd.js} +1 -1
- package/dist/client/assets/{prompts-CWt1t3VZ.js → prompts-CYFmsiS6.js} +1 -1
- package/dist/client/assets/record-editor-D2NFDCNZ.js +1 -0
- package/dist/client/assets/{redirect-editor-B6HxpNko.js → redirect-editor-D9WJKRVv.js} +1 -1
- package/dist/client/assets/reports-C-kEainI.js +1 -0
- package/dist/client/assets/{reports-B66FRaYV.js → reports-Cj91Mylc.js} +2 -2
- package/dist/client/assets/reports-onboarding-gB4My80z.js +1 -0
- package/dist/client/assets/{reports-tab-C7wVFguJ.js → reports-tab-CsHbv07d.js} +2 -2
- package/dist/client/assets/{repositories-DvCEb4S4.js → repositories-C_7l-hzO.js} +1 -1
- package/dist/client/assets/repositories-L_Jm13il.js +1 -0
- package/dist/client/assets/{repository-binding-BCK2I6Mo.js → repository-binding-VVfcdUiy.js} +1 -1
- package/dist/client/assets/{repository-picker-DWJeQ4Uz.js → repository-picker-By75IHJa.js} +1 -1
- package/dist/client/assets/require-capability-DEShAaY8.js +1 -0
- package/dist/client/assets/{required-auth-layout-Bqqrer2s.js → required-auth-layout-GSSn-bTA.js} +1 -1
- package/dist/client/assets/{reset-password-DRVc-MEN.js → reset-password-eGGPXuZQ.js} +1 -1
- package/dist/client/assets/{resizable-D7hc5wCS.js → resizable-XeFzd9pk.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-B4dWqPe0.js → resolve-tab-icon-DQMxOocF.js} +1 -1
- package/dist/client/assets/{review-settings-B6B7lZ4t.js → review-settings-BOoUlwEx.js} +1 -1
- package/dist/client/assets/{role-color-kB6wk2oV.js → role-color-D-S7Ra1A.js} +1 -1
- package/dist/client/assets/{roles-zAYKO93B.js → roles-C8YQ1Aw2.js} +1 -1
- package/dist/client/assets/route-DjlZ9cbf.js +1 -0
- package/dist/client/assets/{route-DdMqAKeK.js → route-lr7i-nM3.js} +1 -1
- package/dist/client/assets/{route-B1_dDOSw.js → route-ojZJTNbW.js} +1 -1
- package/dist/client/assets/{route-page-header-DOKA0lPe.js → route-page-header-BqA32d57.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-MxAem5iH.js → sandbox-git-api-CkSQDoxX.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-DoYhWfFO.js → sandbox-lifecycle-context-BBz4IKVo.js} +1 -1
- package/dist/client/assets/{save-status-Bwv32UwA.js → save-status-CmYiPWXE.js} +1 -1
- package/dist/client/assets/{schema-CFHsTaYR.js → schema-B0biNpls.js} +1 -1
- package/dist/client/assets/{schema-Cg4pyiCI.js → schema-CCpL_LVZ.js} +1 -1
- package/dist/client/assets/{scroll-area-DAamBeOm.js → scroll-area-bkCFS0v8.js} +1 -1
- package/dist/client/assets/{search-input-_TDPMfaj.js → search-input-C4sd-kKh.js} +1 -1
- package/dist/client/assets/{search-toggle-BNJazxMF.js → search-toggle-rjC0c-Iy.js} +1 -1
- package/dist/client/assets/{secret-picker-45PWWThH.js → secret-picker-ujhqmuU6.js} +1 -1
- package/dist/client/assets/{secrets-BEHcZkxk.js → secrets-CUx_W408.js} +1 -1
- package/dist/client/assets/{section-array-field-DR10vlg7.js → section-array-field-DOngDm8U.js} +1 -1
- package/dist/client/assets/{sections-QNIIZ4TO.js → sections-DmtYqnPM.js} +1 -1
- package/dist/client/assets/{sections-editor-OhHN-8Oi.js → sections-editor-DsX6y72K.js} +1 -1
- package/dist/client/assets/{select-Cl-2whSq.js → select-BkYZ4NYA.js} +1 -1
- package/dist/client/assets/{select-model-D19LJE98.js → select-model-BNVZsPuq.js} +1 -1
- package/dist/client/assets/{seo-editor-C-sP3Z1-.js → seo-editor-D-DOTzeP.js} +1 -1
- package/dist/client/assets/{separator-DsDHvFvA.js → separator-DTKXzVmt.js} +1 -1
- package/dist/client/assets/{session-runtime-B3tpmEdV.js → session-runtime-HHtypsTM.js} +1 -1
- package/dist/client/assets/settings-tab-B50Sia1R.js +1 -0
- package/dist/client/assets/{sheet-3DsSjpPg.js → sheet-Lq2qXLx8.js} +1 -1
- package/dist/client/assets/{shell-layout-Cy4x2w2C.js → shell-layout-rYoN4RTk.js} +1 -1
- package/dist/client/assets/{site-draft-actions-ak2wuSnr.js → site-draft-actions-D72ZWrGI.js} +5 -5
- package/dist/client/assets/{site-draft-view-BQq0EpKh.js → site-draft-view-DdS4HrBp.js} +1 -1
- package/dist/client/assets/site-editor-B6Bvzk4_.js +1 -0
- package/dist/client/assets/{site-editor-toast-DyAj-yh9.js → site-editor-toast-aupfR4Aq.js} +1 -1
- package/dist/client/assets/{skills-CT_xGAxG.js → skills-Cyx-LBzb.js} +1 -1
- package/dist/client/assets/{slider-_egWZNfX.js → slider-B4bXP1H_.js} +1 -1
- package/dist/client/assets/{sortable.esm-DpTBwHPu.js → sortable.esm-n9zdQXyB.js} +1 -1
- package/dist/client/assets/{sso-B8Ml5ONn.js → sso-DIU8j1zk.js} +1 -1
- package/dist/client/assets/{suggestion-BUUDUW90.js → suggestion-Nntdxi5T.js} +2 -2
- package/dist/client/assets/{super-agent-icon-B_bgucC_.js → super-agent-icon-DHSnZQuw.js} +1 -1
- package/dist/client/assets/switch-COjzxQ39.js +1 -0
- package/dist/client/assets/synced-repos-s5ovH7Qr.js +1 -0
- package/dist/client/assets/{tab-icon-glyph-D-aUvxBU.js → tab-icon-glyph-CvvfUXQl.js} +1 -1
- package/dist/client/assets/{table-Dy0rd4qk.js → table-DQIAY6r-.js} +1 -1
- package/dist/client/assets/{tabs-LNTPmT4H.js → tabs-CbfCGlFS.js} +1 -1
- package/dist/client/assets/{task-board-CgkLyySX.js → task-board-DEUSGytR.js} +1 -1
- package/dist/client/assets/{task-key-PeB83qoV.js → task-key-DaPOId6s.js} +1 -1
- package/dist/client/assets/{task-route-D-8EO_RF.js → task-route-BJj40Yza.js} +1 -1
- package/dist/client/assets/{task-status-KvQJFF87.js → task-status-B6WfZxUN.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-BcLhNaje.js → taskboard-analytics-UnAzvxoh.js} +1 -1
- package/dist/client/assets/tasks-BtIOVSMQ.js +1 -0
- package/dist/client/assets/{tasks-CeETZIFY.js → tasks-vny6IFm0.js} +3 -3
- package/dist/client/assets/{textarea-i65d3zD6.js → textarea-CcO-rfag.js} +1 -1
- package/dist/client/assets/{thread-analytics-Cdiuqyfy.js → thread-analytics-BUAtXNjP.js} +1 -1
- package/dist/client/assets/{thread-button-Cv7guHMn.js → thread-button-DbVaWztE.js} +1 -1
- package/dist/client/assets/{thread-intent-LmIsiguS.js → thread-intent-CyH0Z8_7.js} +4 -4
- package/dist/client/assets/{thread-route-98-Pj7EV.js → thread-route-BjDCYf6b.js} +1 -1
- package/dist/client/assets/{thread-route-CSj65J5K.js → thread-route-Dw1cQjON.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-D3GUkLPi.js → thread-sheet-body-C6XCaB8H.js} +1 -1
- package/dist/client/assets/{time-range-picker-Css1Ovl_.js → time-range-picker-C45MZ0gR.js} +1 -1
- package/dist/client/assets/{toggle-group-B5Qv0TZp.js → toggle-group-DFyE84bx.js} +1 -1
- package/dist/client/assets/{tool-set-selector-DoHlrDig.js → tool-set-selector-BgHdncVU.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-vtvpzCZ_.js → toolbar-icon-button-BroRQfDx.js} +1 -1
- package/dist/client/assets/{tooltip-BBk4QO9B.js → tooltip-DnGqcvtu.js} +1 -1
- package/dist/client/assets/{tooltipContext-DuBQjN-C.js → tooltipContext-BVc6eTu_.js} +1 -1
- package/dist/client/assets/{track-ttGR8dxm.js → track-ENeykFhY.js} +1 -1
- package/dist/client/assets/{types-BRAj2PE2.js → types-B4ln4I1a.js} +6 -6
- package/dist/client/assets/{url-slug-DrOjUMxX.js → url-slug-BCxEu7m_.js} +1 -1
- package/dist/client/assets/{usage-stats-xir5IhsZ.js → usage-stats-C5Wj6kIy.js} +1 -1
- package/dist/client/assets/{use-ai-providers-B1MpfOF5.js → use-ai-providers-BG5EDM0R.js} +1 -1
- package/dist/client/assets/{use-api-keys-CiN7H9ts.js → use-api-keys-CjwRm6n8.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-Bzqut0Gd.js → use-apply-named-rule-BH9tV1RN.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-C6eCNqgR.js +1 -0
- package/dist/client/assets/{use-automations-DSG-bEnt.js → use-automations-D4bJmUmE.js} +1 -1
- package/dist/client/assets/{use-autosave-Cm2WfCL_.js → use-autosave-Dq8gUNzN.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-Dh0QtV4J.js +1 -0
- package/dist/client/assets/use-blog-view-w4rEUATy.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-Cobo43Bl.js → use-chat-layout-state-D38zRykR.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-ChEzMzUL.js → use-cms-publish-actions-Bf5Y1rJL.js} +5 -5
- package/dist/client/assets/{use-connect-companion-CJdSUXna.js → use-connect-companion-leNqQRzW.js} +1 -1
- package/dist/client/assets/{use-connection-VTUSBGTe.js → use-connection-C4G0ZMoe.js} +1 -1
- package/dist/client/assets/{use-content-sync-BXrJzR11.js → use-content-sync-CeYI53r8.js} +1 -1
- package/dist/client/assets/{use-copy-Dc7Mx1fC.js → use-copy-BFeXylk9.js} +1 -1
- package/dist/client/assets/{use-current-view-AGi0k_-I.js → use-current-view-swKX6Bc6.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-Bxj0YL2L.js → use-date-fns-locale-DX45EO9I.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BDRqjNGS.js → use-debounced-autosave-BVXsg1Of.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CTxCZD5A.js → use-debounced-value-CPl0Wyl6.js} +1 -1
- package/dist/client/assets/{use-deco-credits-B34VYEQw.js → use-deco-credits-C4mVYU5r.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DFiNdpMv.js → use-decopilot-events-SRdggwTs.js} +1 -1
- package/dist/client/assets/{use-delete-block-CTKK2Eq4.js → use-delete-block-CRyG6Do-.js} +1 -1
- package/dist/client/assets/{use-delete-connection-C1dHTb1J.js → use-delete-connection-C-kXdkQA.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BA_JLmwW.js → use-deployment-admin-Dwt-RYsg.js} +1 -1
- package/dist/client/assets/{use-entitlements-RVjfgn4l.js → use-entitlements-DgXhk8I6.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-kaqCW9_t.js → use-fast-preview-draft-url-DtikvUh-.js} +1 -1
- package/dist/client/assets/{use-file-configs-DJQqKxP9.js → use-file-configs-BlRaUlfc.js} +1 -1
- package/dist/client/assets/{use-id-selection-BzvH47dC.js → use-id-selection-CJdNm4ZY.js} +1 -1
- package/dist/client/assets/{use-in-settings-CavkWvLD.js → use-in-settings-cNZb_oio.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-CJ80ZK7C.js → use-inbox-feed-BKl_0o2v.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CBxCb09-.js → use-infinite-scroll-DgSz0aNh.js} +1 -1
- package/dist/client/assets/{use-join-requests-uMBvUkrQ.js → use-join-requests-pUhubFwu.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-CAwxHjj4.js → use-main-panel-tabs-B0lMlgyK.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-COkXOT5q.js → use-mcp-auth-status-BLLNsVrE.js} +1 -1
- package/dist/client/assets/{use-mcp-client-D6hvNNod.js → use-mcp-client-UWOU8UbZ.js} +2 -2
- package/dist/client/assets/{use-mcp-prompts-Dzcv5Qm_.js → use-mcp-prompts-CjwiiUTx.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CaA0WW-E.js → use-mcp-tools-C7Kg2Nto.js} +1 -1
- package/dist/client/assets/{use-mobile-DPeImGih.js → use-mobile-Cq1k3-Gk.js} +1 -1
- package/dist/client/assets/{use-move-blocks-B58hF-QF.js → use-move-blocks-DH3gSdil.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-D-LXOG-h.js → use-navigate-to-agent-vJOwimSb.js} +1 -1
- package/dist/client/assets/{use-never-published-AUwhcJk8.js → use-never-published-BB5kYeS3.js} +1 -1
- package/dist/client/assets/{use-org-fs-DMG6vhv9.js → use-org-fs-CAHuTLc_.js} +1 -1
- package/dist/client/assets/{use-org-notice-l577omxO.js → use-org-notice-D_lLzWXp.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-anMhrjcF.js → use-org-repo-syncs-BxGs1Gi_.js} +1 -1
- package/dist/client/assets/{use-org-sso-QDNvT__Q.js → use-org-sso-fZ2uDAIp.js} +1 -1
- package/dist/client/assets/{use-organization-settings-HyX5IrJ4.js → use-organization-settings-D8JbZGlQ.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-yNzK1oeQ.js → use-panel-navigate-B3thngCs.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-BkAnKN4Z.js → use-project-native-view-presence-BKZJ0lpX.js} +1 -1
- package/dist/client/assets/{use-project-scope-BYK0JAGP.js → use-project-scope-CD-cb4-V.js} +1 -1
- package/dist/client/assets/use-recent-apps-Co5DoIGT.js +1 -0
- package/dist/client/assets/{use-reports-diagnostic-BxX26Yaf.js → use-reports-diagnostic-lGxrsSfr.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-DFE5xC3q.js → use-sandbox-events-BcrE-YTF.js} +2 -2
- package/dist/client/assets/{use-secrets-C-F6GU50.js → use-secrets-yIZbpwIn.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DcUNPfko.js → use-section-preview-base-C2vE3o4z.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-Ciu2x6KY.js → use-sidebar-collapsed-Bo3tE9bK.js} +1 -1
- package/dist/client/assets/{use-tags-CLlJFBlp.js → use-tags-BQcMuDty.js} +1 -1
- package/dist/client/assets/use-task-board-analytics-CIahrWuX.js +1 -0
- package/dist/client/assets/{use-task-board-item-prs-C_eZiXGh.js → use-task-board-item-prs-W9kboyPg.js} +1 -1
- package/dist/client/assets/{use-task-board-items--v3zNW-2.js → use-task-board-items-DP6ZFnrN.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-BCHk1uCf.js → use-task-board-prompts-qQB1KZ8p.js} +1 -1
- package/dist/client/assets/{use-task-metadata-puiqvF0z.js → use-task-metadata-C2UpEUk-.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-vfKngax2.js → use-thread-outputs-A3ms5KEO.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-CK2Ws293.js → use-view-draft-kind-CXMOqIBD.js} +1 -1
- package/dist/client/assets/{use-voice-input-Bag2UQ5s.js → use-voice-input-poVZeRVs.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CNxlkxws.js +1 -0
- package/dist/client/assets/{useQueries-ClESU-gL.js → useQueries-DhONZGBj.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-FHN2hj19.js +1 -0
- package/dist/client/assets/{users--4MnD2Ni.js → users-B_cNHXhu.js} +1 -1
- package/dist/client/assets/{utils-GIRCtww_.js → utils-BdAsQahL.js} +1 -1
- package/dist/client/assets/{variant-calendar-DDAccAAH.js → variant-calendar-DkWaMyhm.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-B4viDDF4.js → variant-matcher-override-CxSxAvsY.js} +1 -1
- package/dist/client/assets/{view-header-BMcVMjG5.js → view-header-CZchRX7c.js} +1 -1
- package/dist/client/assets/{virtual-mcp-D70Jm3Cf.js → virtual-mcp-4VHtoaO4.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-C79C_cUh.js → watch-sse-pool-C7kLS2GY.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/server.js +114 -114
- package/package.json +1 -1
- package/dist/client/assets/agent-app-mFu4qfV_.js +0 -1
- package/dist/client/assets/agent-blog-oFjylmup.js +0 -2
- package/dist/client/assets/agent-deck-Bw2cZE6R.js +0 -1
- package/dist/client/assets/agent-experiments-DxbZHSvE.js +0 -1
- package/dist/client/assets/agent-file-B4IdGvOa.js +0 -1
- package/dist/client/assets/agent-library-1XqTmW3J.js +0 -1
- package/dist/client/assets/agent-library-file-BQTvQaVH.js +0 -1
- package/dist/client/assets/agent-overview-nv0B1Vtn.js +0 -1
- package/dist/client/assets/agent-releases-D-COO9bm.js +0 -2
- package/dist/client/assets/agent-settings-DmrVI6B5.js +0 -1
- package/dist/client/assets/agent-site-editor-code-CNRH9GQU.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BB_PWv5l.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-CN6P394O.js +0 -1
- package/dist/client/assets/agent-view-C_kbJ6jO.js +0 -1
- package/dist/client/assets/api-keys-D_uSLlKH.js +0 -1
- package/dist/client/assets/auth-entry-C_97myXT.js +0 -1
- package/dist/client/assets/index--QRH4qmO.css +0 -1
- package/dist/client/assets/index-Cl6eQZzh.js +0 -1
- package/dist/client/assets/index-DASViI_L.js +0 -1
- package/dist/client/assets/library-z4pMyMvK.js +0 -1
- package/dist/client/assets/project-app-view-BZ0asFCv.js +0 -1
- package/dist/client/assets/project-reports-CHFD_5_U.js +0 -1
- package/dist/client/assets/project-tasks-Dcp7unw7.js +0 -1
- package/dist/client/assets/record-editor-Ch7j2D2R.js +0 -1
- package/dist/client/assets/reports-XbkN5y4U.js +0 -1
- package/dist/client/assets/reports-onboarding-C_u0txdS.js +0 -1
- package/dist/client/assets/repositories-D6nxNt_H.js +0 -1
- package/dist/client/assets/require-capability-CeoHCJST.js +0 -1
- package/dist/client/assets/route-Kd6aOvVB.js +0 -1
- package/dist/client/assets/settings-tab-D2eW6VhQ.js +0 -1
- package/dist/client/assets/site-editor-BIurhts7.js +0 -1
- package/dist/client/assets/switch-pc6As7Lj.js +0 -1
- package/dist/client/assets/synced-repos-BCR2U4BU.js +0 -1
- package/dist/client/assets/tasks-BQIgrwi3.js +0 -1
- package/dist/client/assets/use-ask-in-chat-CKHbH0UO.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-B8tSOiQV.js +0 -1
- package/dist/client/assets/use-blog-view-CLaoWWXx.js +0 -1
- package/dist/client/assets/use-recent-apps-DbC0yZx7.js +0 -1
- package/dist/client/assets/use-task-board-analytics-CaZfe94R.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CkG5v2bH.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-D4hQd0qx.js +0 -1
package/dist/client/assets/{use-sidebar-collapsed-Ciu2x6KY.js → use-sidebar-collapsed-Bo3tE9bK.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as T,c as y,j as o,m as C,
|
|
1
|
+
import{r as T,c as y,j as o,m as C,bZ as $,b_ as z}from"./index-BuZqAz74.js";import{u as B}from"./use-mobile-Cq1k3-Gk.js";import{b as A,c as P,S as R,d as k,a as H}from"./sheet-Lq2qXLx8.js";import{b as V,a as W,T as L,c as F}from"./tooltip-DnGqcvtu.js";const Z="15rem",q="18rem",G="4.5rem",E=T.createContext(null);function D(){const l=T.useContext(E);if(!l)throw new Error("useSidebar must be used within a SidebarProvider.");return l}function ee(l){const e=y.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:i}=l,c=s===void 0?!1:s,r=B(),[n,S]=T.useState(c),[v,j]=T.useState(!1),p=a!==void 0,m=p?a:n;let g;e[0]!==p||e[1]!==i?(g=M=>{p||S(M),i?.(M)},e[0]=p,e[1]=i,e[2]=g):g=e[2];const d=g;let h;e[3]!==r||e[4]!==m||e[5]!==d?(h=()=>{r?j(J):d(!m)},e[3]=r,e[4]=m,e[5]=d,e[6]=h):h=e[6];const w=h,f=m?"expanded":"collapsed";let u;e[7]!==r||e[8]!==m||e[9]!==v||e[10]!==d||e[11]!==f||e[12]!==w?(u={state:f,open:m,setOpen:d,isMobile:r,openMobile:v,setOpenMobile:j,toggleSidebar:w},e[7]=r,e[8]=m,e[9]=v,e[10]=d,e[11]=f,e[12]=w,e[13]=u):u=e[13];const x=u;let b;e[14]!==t?(b=o.jsx(V,{delayDuration:0,children:t}),e[14]=t,e[15]=b):b=e[15];let N;return e[16]!==x||e[17]!==b?(N=o.jsx(E.Provider,{value:x,children:b}),e[16]=x,e[17]=b,e[18]=N):N=e[18],N}function J(l){return!l}function te(l){const e=y.c(14);let t,s,a,i;e[0]!==l?({className:s,style:i,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i):(t=e[1],s=e[2],a=e[3],i=e[4]);let c;e[5]!==i?(c={"--sidebar-width":Z,"--sidebar-width-icon":G,...i},e[5]=i,e[6]=c):c=e[6];const r=c;let n;e[7]!==s?(n=C("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=n):n=e[8];let S;return e[9]!==t||e[10]!==a||e[11]!==r||e[12]!==n?(S=o.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:n,...a,children:t}),e[9]=t,e[10]=a,e[11]=r,e[12]=n,e[13]=S):S=e[13],S}function ae(l){const e=y.c(36);let t,s,a,i,c;e[0]!==l?({side:i,variant:c,className:s,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=c):(t=e[1],s=e[2],a=e[3],i=e[4],c=e[5]);const r=i===void 0?"left":i,n=c===void 0?"sidebar":c,{isMobile:S,state:v,openMobile:j,setOpenMobile:p}=D();if(S){let N;e[6]===Symbol.for("react.memo_cache_sentinel")?(N={"--sidebar-width":q},e[6]=N):N=e[6];let M;e[7]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsxs(P,{className:"sr-only",children:[o.jsx(R,{children:"Sidebar"}),o.jsx(k,{children:"Displays the mobile sidebar."})]}),e[7]=M):M=e[7];let _;e[8]!==t?(_=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=_):_=e[9];let I;e[10]!==r||e[11]!==_?(I=o.jsxs(H,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:N,side:r,children:[M,_]}),e[10]=r,e[11]=_,e[12]=I):I=e[12];let O;return e[13]!==j||e[14]!==a||e[15]!==p||e[16]!==I?(O=o.jsx(A,{open:j,onOpenChange:p,...a,children:I}),e[13]=j,e[14]=a,e[15]=p,e[16]=I,e[17]=O):O=e[17],O}const m=v==="expanded",g=m?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let d;e[18]!==g?(d=C("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",g),e[18]=g,e[19]=d):d=e[19];const h=m?void 0:"icon",w=m?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let f;e[20]!==s||e[21]!==w?(f=C("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",w,s),e[20]=s,e[21]=w,e[22]=f):f=e[22];let u;e[23]!==t?(u=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=u):u=e[24];let x;e[25]!==a||e[26]!==f||e[27]!==u?(x=o.jsx("div",{"data-slot":"sidebar-container",className:f,...a,children:u}),e[25]=a,e[26]=f,e[27]=u,e[28]=x):x=e[28];let b;return e[29]!==r||e[30]!==v||e[31]!==d||e[32]!==h||e[33]!==x||e[34]!==n?(b=o.jsx("div",{className:d,"data-state":v,"data-collapsible":h,"data-variant":n,"data-side":r,"data-slot":"sidebar",children:x}),e[29]=r,e[30]=v,e[31]=d,e[32]=h,e[33]=x,e[34]=n,e[35]=b):b=e[35],b}function se(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=C("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ie(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=C("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function le(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=C("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ne(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=C("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function re(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=C("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}const K=z("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm focus-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg:not([class*='text-'])]:text-muted-foreground hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm group-data-[state=collapsed]/sidebar:size-8! group-data-[state=collapsed]/sidebar:rounded-full",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function oe(l){const e=y.c(28);let t,s,a,i,c,r,n;e[0]!==l?({asChild:a,isActive:i,variant:c,size:r,tooltip:n,className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=c,e[6]=r,e[7]=n):(t=e[1],s=e[2],a=e[3],i=e[4],c=e[5],r=e[6],n=e[7]);const S=a===void 0?!1:a,v=i===void 0?!1:i,j=c===void 0?"default":c,p=r===void 0?"default":r,m=S?$:"button",{isMobile:g}=D();let d;e[8]!==t||e[9]!==p||e[10]!==j?(d=C(K({variant:j,size:p}),t),e[8]=t,e[9]=p,e[10]=j,e[11]=d):d=e[11];let h;e[12]!==m||e[13]!==v||e[14]!==s||e[15]!==p||e[16]!==d?(h=o.jsx(m,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":p,"data-active":v,className:d,...s}),e[12]=m,e[13]=v,e[14]=s,e[15]=p,e[16]=d,e[17]=h):h=e[17];const w=h;if(!n)return w;if(typeof n=="string"){let b;e[18]!==n?(b={children:n},e[18]=n,e[19]=b):b=e[19],n=b}let f;e[20]!==w?(f=o.jsx(L,{asChild:!0,children:w}),e[20]=w,e[21]=f):f=e[21];let u;e[22]!==g||e[23]!==n?(u=o.jsx(W,{side:"right",align:"center",hidden:g,...n}),e[22]=g,e[23]=n,e[24]=u):u=e[24];let x;return e[25]!==f||e[26]!==u?(x=o.jsxs(F,{children:[f,u]}),e[25]=f,e[26]=u,e[27]=x):x=e[27],x}function de(){const{state:l,isMobile:e}=D();return l==="collapsed"&&!e}export{oe as S,ne as a,re as b,D as c,ie as d,le as e,ae as f,ee as g,te as h,se as i,de as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,
|
|
1
|
+
import{c as u,a6 as f,am as y,i as m,q as g,e as T,K as l,t as E}from"./index-BuZqAz74.js";function K(){const e=u.c(7),{locator:t}=f(),o=y();let n;e[0]!==t?(n=l.tags(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==o?(s=async()=>{const{tags:r}=await o.call("TAGS_LIST",{});return r},e[2]=o,e[3]=s):s=e[3];let a;return e[4]!==n||e[5]!==s?(a={queryKey:n,queryFn:s,staleTime:3e4},e[4]=n,e[5]=s,e[6]=a):a=e[6],m(a)}function p(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{tag:i}=await n.call("TAGS_CREATE",typeof c=="string"?{name:c}:c);return i},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:S},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function S(e){E.error(e instanceof Error?e.message:"Failed to create tag")}function C(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{await n.call("TAGS_DELETE",{tagId:c})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)}),t.invalidateQueries({queryKey:l.taskBoardItems(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:q},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function q(e){E.error(e instanceof Error?e.message:"Failed to delete tag")}function M(e){const t=u.c(10),{locator:o}=f(),n=y();let s;t[0]!==o||t[1]!==e?(s=l.memberTags(o,e),t[0]=o,t[1]=e,t[2]=s):s=t[2];let a;t[3]!==e||t[4]!==n?(a=async()=>{const{tags:i}=await n.call("MEMBER_TAGS_GET",{memberId:e});return i},t[3]=e,t[4]=n,t[5]=a):a=t[5];const r=!!e;let c;return t[6]!==s||t[7]!==a||t[8]!==r?(c={queryKey:s,queryFn:a,staleTime:3e4,enabled:r},t[6]=s,t[7]=a,t[8]=r,t[9]=c):c=t[9],m(c)}function A(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{memberId:i,tagIds:d}=c;return await n.call("MEMBER_TAGS_SET",{memberId:i,tagIds:d})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=(c,i)=>{t.invalidateQueries({queryKey:l.memberTags(o,i.memberId)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:_},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function _(e){E.error(e instanceof Error?e.message:"Failed to update member tags")}export{p as a,C as b,M as c,A as d,K as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as O,f,i as S,K as _,an as R,a6 as i,am as l}from"./index-BuZqAz74.js";const K=["TASK_BOARD_OPERATION","TASK_BOARD_REWORK","TASK_BOARD_DELIVERY","TASK_BOARD_SPRINTS","TASK_BOARD_STUCK","TASK_BOARD_COST","TASK_BOARD_ERRORS","TASK_BOARD_TENANTS"];function B(){const t=O.c(8),o=f({strict:!1}).org??"";let e;t[0]!==o?(e=_.taskBoardAdminOrgs(o),t[0]=o,t[1]=e):e=t[1];const s=!!o;let c;t[2]!==o?(c=()=>R(o,"TASK_BOARD_ADMIN_ORG_LIST",{}),t[2]=o,t[3]=c):c=t[3];let n;return t[4]!==e||t[5]!==s||t[6]!==c?(n={queryKey:e,enabled:s,queryFn:c,staleTime:3e5},t[4]=e,t[5]=s,t[6]=c,t[7]=n):n=t[7],S(n)}function y(t,o){const e=O.c(14),{locator:s}=i(),c=l();let n;e[0]!==s||e[1]!==o.from||e[2]!==o.org||e[3]!==o.project||e[4]!==o.to||e[5]!==t?(n=_.taskBoardAnalytics(s,t,o.org??"",o.project??"",o.from,o.to),e[0]=s,e[1]=o.from,e[2]=o.org,e[3]=o.project,e[4]=o.to,e[5]=t,e[6]=n):n=e[6];let T;e[7]!==o||e[8]!==c||e[9]!==t?(T=()=>c.call(t,o),e[7]=o,e[8]=c,e[9]=t,e[10]=T):T=e[10];let A;return e[11]!==n||e[12]!==T?(A={queryKey:n,queryFn:T},e[11]=n,e[12]=T,e[13]=A):A=e[13],S(A)}function D(t,o){const e=O.c(15),{locator:s}=i(),c=l();let n;e[0]!==o||e[1]!==s||e[2]!==t.from||e[3]!==t.org||e[4]!==t.project||e[5]!==t.to?(n=_.taskBoardOperationTasks(s,t.org??"",t.project??"",t.from,t.to,o??""),e[0]=o,e[1]=s,e[2]=t.from,e[3]=t.org,e[4]=t.project,e[5]=t.to,e[6]=n):n=e[6];const T=o!==null;let A;e[7]!==o||e[8]!==t||e[9]!==c?(A=()=>c.call("TASK_BOARD_OPERATION_TASKS",{...t,drill:o??""}),e[7]=o,e[8]=t,e[9]=c,e[10]=A):A=e[10];let u;return e[11]!==n||e[12]!==T||e[13]!==A?(u={queryKey:n,enabled:T,queryFn:A},e[11]=n,e[12]=T,e[13]=A,e[14]=u):u=e[14],S(u)}export{K as A,y as a,D as b,B as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as y,
|
|
1
|
+
import{r as y,av as w,c as h,a6 as R,am as T,q as k,i as O,K as A}from"./index-BuZqAz74.js";import{c as B}from"./watch-sse-pool-C7kLS2GY.js";const P=()=>0;function C(e){const{orgSlug:t,itemId:s,onPrs:r}=e,o=y.useRef(r);o.current=r;const l=y.useRef(null),a=y.useRef(""),i=`${t}:${s??""}`;(!l.current||a.current!==i)&&(a.current=i,l.current=u=>{if(!t||!s)return()=>{};const d=c=>{let n;try{n=JSON.parse(c.data)}catch{return}n.data?.id!==s||!Array.isArray(n.data.prs)||(o.current(n.data.prs),u())};return B.subscribe(t,d)}),y.useSyncExternalStore(l.current,P,P)}const E=1440*60*1e3,D=40;function g(e){try{const t=window.localStorage.getItem(w.taskBoardPrs(e));return t?JSON.parse(t):{}}catch{return{}}}function v(e){const t=Date.now(),s=Object.entries(e).filter(([,r])=>t-r.updatedAt<=E);for(s.sort(([,r],[,o])=>r.updatedAt-o.updatedAt);s.length>D;)s.shift();return Object.fromEntries(s)}function _(e,t){if(typeof window>"u")return null;const s=g(e)[t];return!s||Date.now()-s.updatedAt>E?null:s}function L(e,t,s){if(!(typeof window>"u"))try{const r=g(e);r[t]={data:s,updatedAt:Date.now()},window.localStorage.setItem(w.taskBoardPrs(e),JSON.stringify(v(r)))}catch{}}const b=6e4,K=2e3,N=e=>e.state===null;function j(e){const t=h.c(25),{org:s,locator:r}=R(),o=T(),l=k();let a;t[0]!==e||t[1]!==r||t[2]!==l?(a=S=>{l.setQueryData(A.taskBoardItemPrs(r,e??""),S)},t[0]=e,t[1]=r,t[2]=l,t[3]=a):a=t[3];let i;t[4]!==e||t[5]!==s.slug||t[6]!==a?(i={orgSlug:s.slug,itemId:e,onPrs:a},t[4]=e,t[5]=s.slug,t[6]=a,t[7]=i):i=t[7],C(i);let u;t[8]!==e||t[9]!==r?(u=A.taskBoardItemPrs(r,e??""),t[8]=e,t[9]=r,t[10]=u):u=t[10];const d=!!e;let c,n;t[11]!==e||t[12]!==r?(c=()=>e?_(r,e)?.data??void 0:void 0,n=()=>e?_(r,e)?.updatedAt:void 0,t[11]=e,t[12]=r,t[13]=c,t[14]=n):(c=t[13],n=t[14]);let f;t[15]!==e||t[16]!==r||t[17]!==o?(f=async()=>{const{prs:S}=await o.call("TASK_BOARD_ITEM_PRS_GET",{taskBoardItemId:e});return L(r,e,S),S},t[15]=e,t[16]=r,t[17]=o,t[18]=f):f=t[18];let p;return t[19]!==u||t[20]!==d||t[21]!==c||t[22]!==n||t[23]!==f?(p={queryKey:u,enabled:d,refetchInterval:M,initialData:c,initialDataUpdatedAt:n,queryFn:f},t[19]=u,t[20]=d,t[21]=c,t[22]=n,t[23]=f,t[24]=p):p=t[24],O(p)}function M(e){return e.state.data?.some(N)?K:b}export{j as u};
|
package/dist/client/assets/{use-task-board-items--v3zNW-2.js → use-task-board-items-DP6ZFnrN.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as
|
|
1
|
+
import{r as R,c as $,a6 as V,am as W,i as G,q as Y,K as k,b as H,e as O,E as X,t as N}from"./index-BuZqAz74.js";import{a as Z}from"./task-board-DEUSGytR.js";import{t as ee}from"./watch-sse-pool-C7kLS2GY.js";import{u as te}from"./use-decopilot-events-SRdggwTs.js";const J=()=>0;function se(e){const{orgSlug:u,enabled:o=!0,onUpdate:t,onDelete:s,onResync:a}=e,c=R.useRef(t);c.current=t;const i=R.useRef(s);i.current=s;const g=R.useRef(a);g.current=a;const r=R.useRef(null),m=R.useRef(o),I=R.useRef(u);(!r.current||m.current!==o||I.current!==u)&&(m.current=o,I.current=u,r.current=l=>{if(!o||!u)return()=>{};const d=T=>{let f;try{f=JSON.parse(T.data)}catch{return}f.data&&(T.type===Z?i.current?.(f.data.id):c.current(f.data)),l()};return ee.subscribe(u,d,()=>g.current?.())}),R.useSyncExternalStore(r.current,J,J)}function ae(e,u){return{queryKey:k.taskBoardItems(e),refetchInterval:6e4,queryFn:async()=>{const{items:o,demoFrozenItemIds:t}=await u.call("TASK_BOARD_ITEM_LIST",{});return{items:o,demoFrozenItemIds:t}}}}function re(){const e=$.c(21),{org:u,locator:o}=V(),t=Y();let s;e[0]!==o?(s=k.taskBoardItems(o),e[0]=o,e[1]=s):s=e[1];const a=s;let c;e[2]!==o||e[3]!==t||e[4]!==a?(c=y=>{t.cancelQueries({queryKey:a}),t.setQueryData(a,l=>l&&{...l,items:l.items.some(d=>d.id===y.id)?l.items.map(d=>d.id===y.id?y:d):[y,...l.items]}),t.invalidateQueries({queryKey:k.taskBoardActivity(o,y.id)}),t.invalidateQueries({queryKey:k.taskBoardComments(o,y.id)})},e[2]=o,e[3]=t,e[4]=a,e[5]=c):c=e[5];let i,g;e[6]!==t||e[7]!==a?(i=()=>{t.invalidateQueries({queryKey:a})},g=y=>{t.cancelQueries({queryKey:a}),t.setQueryData(a,l=>l&&{...l,items:l.items.filter(d=>d.id!==y)})},e[6]=t,e[7]=a,e[8]=i,e[9]=g):(i=e[8],g=e[9]);let r;e[10]!==u.slug||e[11]!==c||e[12]!==i||e[13]!==g?(r={orgSlug:u.slug,onUpdate:c,onResync:i,onDelete:g},e[10]=u.slug,e[11]=c,e[12]=i,e[13]=g,e[14]=r):r=e[14],se(r);let m;e[15]!==t||e[16]!==a?(m=y=>{const l=y.subject,d=y.data.status;t.cancelQueries({queryKey:a}),t.setQueryData(a,f=>f&&{...f,items:f.items.map(S=>S.threads.some(_=>_.threadId===l)?{...S,threads:S.threads.map(_=>_.threadId===l?{..._,status:d}:_)}:S)});const T=t.getQueryData(a)?.items.some(f=>f.threads.some(S=>S.threadId===l));d==="failed"&&T&&t.invalidateQueries({queryKey:a})},e[15]=t,e[16]=a,e[17]=m):m=e[17];let I;e[18]!==u.slug||e[19]!==m?(I={orgSlug:u.slug,onTaskStatus:m},e[18]=u.slug,e[19]=m,e[20]=I):I=e[20],te(I)}function ce(){const e=$.c(13),{locator:u}=V(),o=W();let t;e[0]!==u||e[1]!==o?(t=ae(u,o),e[0]=u,e[1]=o,e[2]=t):t=e[2];const s=G(t);re();let a;e[3]!==s.data?.items?(a=s.data?.items??[],e[3]=s.data?.items,e[4]=a):a=e[4];let c;e[5]!==s.data?.demoFrozenItemIds?(c=s.data?.demoFrozenItemIds??[],e[5]=s.data?.demoFrozenItemIds,e[6]=c):c=e[6];let i;return e[7]!==s.error||e[8]!==s.isFetching||e[9]!==s.isLoading||e[10]!==a||e[11]!==c?(i={items:a,demoFrozenItemIds:c,isLoading:s.isLoading,isFetching:s.isFetching,error:s.error},e[7]=s.error,e[8]=s.isFetching,e[9]=s.isLoading,e[10]=a,e[11]=c,e[12]=i):i=e[12],i}function de(){const e=$.c(70),{org:u,locator:o}=V(),t=W(),s=Y(),a=H();let c;e[0]!==o?(c=k.taskBoardItems(o),e[0]=o,e[1]=c):c=e[1];const i=c;let g;e[2]!==s||e[3]!==i?(g=()=>s.invalidateQueries({queryKey:i}),e[2]=s,e[3]=i,e[4]=g):g=e[4];const r=g;let m;e[5]!==t?(m=n=>t.call("TASK_BOARD_ITEM_CREATE",n),e[5]=t,e[6]=m):m=e[6];let I;e[7]!==r||e[8]!==m?(I={mutationFn:m,onSuccess:r},e[7]=r,e[8]=m,e[9]=I):I=e[9];const y=O(I);let l;e[10]!==t?(l=n=>t.call("TASK_BOARD_ITEM_UPDATE",n),e[10]=t,e[11]=l):l=e[11];let d;e[12]!==s||e[13]!==i?(d=async n=>{await s.cancelQueries({queryKey:i});const B=s.getQueryData(i);return s.setQueryData(i,E=>E&&{...E,items:E.items.map(z=>z.id===n.id?{...z,...n,...n.status!==void 0&&n.status!==z.status&&{statusSince:new Date().toISOString()}}:z)}),{previous:B}},e[12]=s,e[13]=i,e[14]=d):d=e[14];let T;e[15]!==u?(T=(n,B)=>{B.status==="done"&&X("task_marked_done",{organization_id:u.id,task_board_item_id:B.id})},e[15]=u,e[16]=T):T=e[16];let f;e[17]!==s||e[18]!==i?(f=(n,B,E)=>{E?.previous&&s.setQueryData(i,E.previous)},e[17]=s,e[18]=i,e[19]=f):f=e[19];let S;e[20]!==r||e[21]!==o||e[22]!==s?(S=(n,B,E)=>{r(),s.invalidateQueries({queryKey:k.taskBoardActivity(o,E.id)})},e[20]=r,e[21]=o,e[22]=s,e[23]=S):S=e[23];let _;e[24]!==l||e[25]!==d||e[26]!==T||e[27]!==f||e[28]!==S?(_={mutationFn:l,onMutate:d,onSuccess:T,onError:f,onSettled:S},e[24]=l,e[25]=d,e[26]=T,e[27]=f,e[28]=S,e[29]=_):_=e[29];const U=O(_);let D;e[30]!==t?(D=n=>t.call("TASK_BOARD_ITEM_DELETE",{id:n}),e[30]=t,e[31]=D):D=e[31];let A;e[32]!==r||e[33]!==a?(A=n=>{N.error(n instanceof Error&&n.message?n.message:a("taskBoard.taskBoard.deleteError")),r()},e[32]=r,e[33]=a,e[34]=A):A=e[34];let p;e[35]!==r||e[36]!==D||e[37]!==A?(p={mutationFn:D,onSuccess:r,onError:A},e[35]=r,e[36]=D,e[37]=A,e[38]=p):p=e[38];const w=O(p);let Q;e[39]!==t?(Q=async n=>{const B=await Promise.allSettled(n.map(E=>t.call("TASK_BOARD_ITEM_DELETE",{id:E})));return{total:n.length,failed:B.filter(oe).length}},e[39]=t,e[40]=Q):Q=e[40];let h,K;e[41]!==a?(h=n=>{const{total:B,failed:E}=n;E!==0&&N.error(a("taskBoard.taskBoard.deleteBulkError",{failed:String(E),total:String(B)}))},K=()=>N.error(a("taskBoard.taskBoard.deleteError")),e[41]=a,e[42]=h,e[43]=K):(h=e[42],K=e[43]);let M;e[44]!==r||e[45]!==Q||e[46]!==h||e[47]!==K?(M={mutationFn:Q,onSuccess:h,onError:K,onSettled:r},e[44]=r,e[45]=Q,e[46]=h,e[47]=K,e[48]=M):M=e[48];const x=O(M);let F;e[49]!==t?(F=n=>t.call("TASK_BOARD_ITEM_UPDATE",n),e[49]=t,e[50]=F):F=e[50];let v;e[51]!==r||e[52]!==F?(v={mutationFn:F,onSuccess:r},e[51]=r,e[52]=F,e[53]=v):v=e[53];const P=O(v);let b;e[54]!==t?(b=n=>t.call("TASK_BOARD_ITEM_RERUN",n),e[54]=t,e[55]=b):b=e[55];let q;e[56]!==r||e[57]!==o||e[58]!==s?(q=(n,B,E)=>{r(),s.invalidateQueries({queryKey:k.taskBoardActivity(o,E.id)})},e[56]=r,e[57]=o,e[58]=s,e[59]=q):q=e[59];let L;e[60]!==b||e[61]!==q?(L={mutationFn:b,onSettled:q},e[60]=b,e[61]=q,e[62]=L):L=e[62];const j=O(L);let C;return e[63]!==y||e[64]!==P||e[65]!==w||e[66]!==x||e[67]!==j||e[68]!==U?(C={create:y,update:U,remove:w,removeMany:x,link:P,rerun:j},e[63]=y,e[64]=P,e[65]=w,e[66]=x,e[67]=j,e[68]=U,e[69]=C):C=e[69],C}function oe(e){return e.status==="rejected"}export{ce as a,se as b,de as c,ae as t,re as u};
|
package/dist/client/assets/{use-task-board-prompts-BCHk1uCf.js → use-task-board-prompts-qQB1KZ8p.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as $,b as D,m as z,j as o,a4 as q,L as Z,as as ee,d as te,r as U,hg as se,B as ae,t as oe,ak as V,K as F,i as ne,q as Y,e as le}from"./index-BMPeWdJw.js";import{s as W}from"./Plus-NIlBePVH.js";import{s as re}from"./XClose-igHVZF4W.js";import{i as ie}from"./Zap-CZUa6DWb.js";import{B as K}from"./badge-C-0ziPev.js";import{f as ce,a as ue,c as de,C as me,e as fe,b as pe}from"./command-Bq8LzPoY.js";import{I as xe}from"./icon-button-DAAwLc_Y.js";import{c as ge,a as he,b as je,S as ke}from"./sheet-3DsSjpPg.js";import{j as ve}from"./use-org-fs-DMG6vhv9.js";import{a as Ne}from"./use-project-scope-BYK0JAGP.js";import{u as J,a as _e}from"./use-automations-DSG-bEnt.js";import{C as ye}from"./task-board-CgkLyySX.js";import{b as be}from"./watch-sse-pool-C79C_cUh.js";const Be={triage:"taskBoard.columnGuide.triage",todo:"taskBoard.columnGuide.todo",in_progress:"taskBoard.columnGuide.inProgress",in_review:"taskBoard.columnGuide.inReview",qa:"taskBoard.columnGuide.qa",customer_approval:"taskBoard.columnGuide.customerApproval",ready_for_deployment:"taskBoard.columnGuide.readyForDeployment",post_deploy_validation:"taskBoard.columnGuide.postDeployValidation",done:null,archived:null};function Se(t){const e=ye.find(a=>a===t);return e?Be[e]:null}function He(t){const e=$.c(7),{data:a}=J();let s;e[0]!==a?(s=a??[],e[0]=a,e[1]=s):s=e[1];let n;if(e[2]!==t||e[3]!==s){let l;e[5]!==t?(l=r=>r.board_triggers.some(c=>c.type==="board_column_transition"&&c.column_key===t),e[5]=t,e[6]=l):l=e[6],n=s.filter(l),e[2]=t,e[3]=s,e[4]=n}else n=e[4];return n}function Q(t){switch(t){case"board_column_transition":return 0;case"board_pr_ready":return 1;case"board_pr_merged":return 2;default:return t}}function Ce(t){switch(t){case"board_column_transition":return"taskBoard.columnRules.starter.board_column_transition";case"board_pr_ready":return"taskBoard.columnRules.starter.board_pr_ready";case"board_pr_merged":return"taskBoard.columnRules.starter.board_pr_merged";default:return t}}function Re(t){const e=$.c(5),{data:a}=J();let s;if(e[0]!==t||e[1]!==a){let n;e[3]!==t?(n=l=>{const r=l.board_triggers.find(c=>c.column_key===t);return r?[{automation:l,starter:r.type}]:[]},e[3]=t,e[4]=n):n=e[4],s=(a??[]).flatMap(n).sort(Ae),e[0]=t,e[1]=a,e[2]=s}else s=e[2];return s}function Ae(t,e){return Number(e.automation.active)-Number(t.automation.active)||Q(t.starter)-Q(e.starter)}function Ue(t){const e=$.c(37),{columnKey:a,label:s,icon:n,iconClassName:l,open:r,onOpenChange:c}=t,i=D(),{org:u}=q(),g=Se(a),d=Re(a);let h;e[0]!==c?(h=()=>c(!1),e[0]=c,e[1]=h):h=e[1];const x=h,R=je,_=he,O="w-full gap-0 sm:max-w-md",y=void 0,b=Te,B=ge,A="gap-1 pb-0";let m;e[2]!==n||e[3]!==l?(m=n&&o.jsx(n,{size:16,className:l}),e[2]=n,e[3]=l,e[4]=m):m=e[4];let j;e[5]!==s||e[6]!==m?(j=o.jsxs(ke,{className:"flex items-center gap-2",children:[m,s]}),e[5]=s,e[6]=m,e[7]=j):j=e[7];const T=g&&o.jsx("p",{className:"surface-inset mt-2 rounded-xl px-3.5 py-3 text-sm leading-relaxed text-foreground",children:i(g)});let k;e[8]!==B||e[9]!==j||e[10]!==T?(k=o.jsxs(B,{className:A,children:[j,T]}),e[8]=B,e[9]=j,e[10]=T,e[11]=k):k=e[11];let v;e[12]!==i?(v=i("taskBoard.columnRules.runsHere"),e[12]=i,e[13]=v):v=e[13];let S;e[14]!==v?(S=o.jsx("h3",{className:"text-meta",children:v}),e[14]=v,e[15]=S):S=e[15];let f;e[16]!==d||e[17]!==a||e[18]!==s||e[19]!==x||e[20]!==u||e[21]!==i?(f=d.length===0?o.jsx(we,{columnKey:a,label:s,onLeave:x}):o.jsx("div",{className:"surface divide-y divide-border",children:d.map(L=>{const{automation:N,starter:E}=L;return o.jsxs(Z,{to:"/$org/projects/$agentId/automations/$automationId",params:{org:u.slug,agentId:N.virtual_mcp_id,automationId:N.id},onClick:x,className:"group flex items-center gap-3 px-3 py-2.5 transition-colors hover:bg-accent/50",children:[o.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[o.jsx("span",{className:z("truncate text-sm",N.active?"text-foreground":"text-muted-foreground"),children:N.name}),o.jsx("span",{className:"text-meta",children:N.active?i(Ce(E)):i("taskBoard.columnRules.off")})]}),o.jsx(ee,{size:14,className:"shrink-0 text-muted-foreground transition-colors group-hover:text-foreground"})]},N.id)})}),e[16]=d,e[17]=a,e[18]=s,e[19]=x,e[20]=u,e[21]=i,e[22]=f):f=e[22];let w;e[23]!==S||e[24]!==f?(w=o.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto px-4 pt-6 pb-6",children:[S,f]}),e[23]=S,e[24]=f,e[25]=w):w=e[25];let I;e[26]!==_||e[27]!==w||e[28]!==y||e[29]!==b||e[30]!==k?(I=o.jsxs(_,{className:O,"aria-describedby":y,onOpenAutoFocus:b,children:[k,w]}),e[26]=_,e[27]=w,e[28]=y,e[29]=b,e[30]=k,e[31]=I):I=e[31];let C;return e[32]!==R||e[33]!==r||e[34]!==c||e[35]!==I?(C=o.jsx(R,{open:r,onOpenChange:c,children:I}),e[32]=R,e[33]=r,e[34]=c,e[35]=I,e[36]=C):C=e[36],C}function Te(t){return t.preventDefault()}function we({columnKey:t,label:e,onLeave:a}){const s=D(),{org:n}=q(),{project:l}=Ne(),r=te(),{create:c,triggerAdd:i}=_e(),[u,g]=U.useState(!1),d=l?.id??se(n.id),h=async()=>{g(!0);try{const x=await c.mutateAsync({name:s("taskBoard.columnRules.newAutomationName",{column:e}),messages:[],models:{tier:"smart"},active:!1,virtual_mcp_id:d});await i.mutateAsync({automation_id:x.id,type:"board_column_transition",column_key:t}),a(),r({to:"/$org/projects/$agentId/automations/$automationId",params:{org:n.slug,agentId:d,automationId:x.id}})}catch{oe.error(s("taskBoard.columnRules.newAutomationFailed"))}finally{g(!1)}};return o.jsxs("div",{className:"surface flex flex-col items-center gap-3 px-6 py-8 text-center",children:[o.jsx("span",{className:"flex size-9 items-center justify-center rounded-full bg-muted text-muted-foreground",children:o.jsx(ie,{size:16})}),o.jsx("p",{className:"text-sm font-medium text-foreground",children:s("taskBoard.columnRules.noAutomations")}),o.jsxs(ae,{variant:"outline",size:"sm",className:"gap-1.5",disabled:u,onClick:h,children:[o.jsx(W,{size:14}),s("taskBoard.columnRules.newAutomation")]})]})}const Ie=[];function Ve(t){const e=$.c(71),{value:a,onChange:s,inherited:n,fill:l}=t,r=n===void 0?Ie:n,c=l===void 0?!1:l,i=D(),u=ve();let g;e[0]!==u.data?(g=f=>u.data?.find(w=>w.id===f)?.name??f,e[0]=u.data,e[1]=g):g=e[1];const d=g;let h,x,R,_,O,y,b,B,A,m;if(e[2]!==u.data||e[3]!==c||e[4]!==r||e[5]!==d||e[6]!==s||e[7]!==i||e[8]!==a){let f;e[19]!==r||e[20]!==a?(f=p=>!p.disableModelInvocation&&!a.includes(p.id)&&!r.includes(p.id),e[19]=r,e[20]=a,e[21]=f):f=e[21];const w=(u.data??[]).filter(f);if(e[22]!==c||e[23]!==r||e[24]!==d||e[25]!==s||e[26]!==i||e[27]!==a){let p;e[30]!==r?(p=P=>!r.includes(P),e[30]=r,e[31]=p):p=e[31];const M=a.filter(p),G=c&&"min-h-0 flex-1";e[32]!==G?(m=z("flex flex-col gap-2",G),e[32]=G,e[33]=m):m=e[33],_=M.length>0&&o.jsx("div",{className:"flex flex-wrap gap-1.5",children:M.map(P=>o.jsxs(K,{variant:"outline",className:"py-0 pr-0 pl-2",children:[d(P),o.jsx(xe,{label:i("taskBoard.columnRules.removeSkill",{skill:d(P)}),onClick:()=>s(a.filter(X=>X!==P)),className:"size-5 text-muted-foreground",children:o.jsx(re,{size:12})})]},P))}),e[22]=c,e[23]=r,e[24]=d,e[25]=s,e[26]=i,e[27]=a,e[28]=_,e[29]=m}else _=e[28],m=e[29];R=ce;const I=c&&"min-h-0 flex-1";e[34]!==I?(B=z("h-auto border",I),e[34]=I,e[35]=B):B=e[35];let C;e[36]!==i?(C=i("taskBoard.columnRules.searchSkills"),e[36]=i,e[37]=C):C=e[37],e[38]!==C?(A=o.jsx(ue,{placeholder:C,className:"h-9"}),e[38]=C,e[39]=A):A=e[39],x=de;const L=c?"max-h-none flex-1":"max-h-56";e[40]!==L?(y=z(L),e[40]=L,e[41]=y):y=e[41];let N;e[42]!==i?(N=i("taskBoard.columnRules.noSkills"),e[42]=i,e[43]=N):N=e[43],e[44]!==N?(b=o.jsx(me,{children:N}),e[44]=N,e[45]=b):b=e[45],h=fe;let E;e[46]!==s||e[47]!==a?(E=p=>o.jsxs(pe,{value:`${p.name} ${p.id}`,onSelect:()=>s([...a,p.id]),children:[o.jsx(W,{size:14,className:"shrink-0 text-muted-foreground"}),o.jsxs("span",{className:"flex min-w-0 flex-col",children:[o.jsx("span",{className:"truncate text-sm",children:p.name}),p.description&&o.jsx("span",{className:"text-meta line-clamp-1",children:p.description})]})]},p.id),e[46]=s,e[47]=a,e[48]=E):E=e[48],O=w.map(E),e[2]=u.data,e[3]=c,e[4]=r,e[5]=d,e[6]=s,e[7]=i,e[8]=a,e[9]=h,e[10]=x,e[11]=R,e[12]=_,e[13]=O,e[14]=y,e[15]=b,e[16]=B,e[17]=A,e[18]=m}else h=e[9],x=e[10],R=e[11],_=e[12],O=e[13],y=e[14],b=e[15],B=e[16],A=e[17],m=e[18];let j;e[49]!==h||e[50]!==O?(j=o.jsx(h,{children:O}),e[49]=h,e[50]=O,e[51]=j):j=e[51];let T;e[52]!==x||e[53]!==j||e[54]!==y||e[55]!==b?(T=o.jsxs(x,{className:y,children:[b,j]}),e[52]=x,e[53]=j,e[54]=y,e[55]=b,e[56]=T):T=e[56];let k;e[57]!==R||e[58]!==T||e[59]!==B||e[60]!==A?(k=o.jsxs(R,{className:B,children:[A,T]}),e[57]=R,e[58]=T,e[59]=B,e[60]=A,e[61]=k):k=e[61];let v;e[62]!==r||e[63]!==d||e[64]!==i?(v=r.length>0&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-meta",children:i("taskBoard.columnRules.inheritedHint")}),o.jsx("div",{className:"flex flex-wrap gap-1.5",children:r.map(f=>o.jsx(K,{variant:"muted",children:d(f)},f))})]}),e[62]=r,e[63]=d,e[64]=i,e[65]=v):v=e[65];let S;return e[66]!==_||e[67]!==k||e[68]!==v||e[69]!==m?(S=o.jsxs("div",{className:m,children:[_,k,v]}),e[66]=_,e[67]=k,e[68]=v,e[69]=m,e[70]=S):S=e[70],S}function Ye(){const t=$.c(7),{org:e}=q(),a=V();let s;t[0]!==e.id?(s=F.taskBoardPrompts(e.id),t[0]=e.id,t[1]=s):s=t[1];let n;t[2]!==a?(n=async()=>(await a.call("TASK_BOARD_PROMPT_LIST",{})).prompts,t[2]=a,t[3]=n):n=t[3];let l;return t[4]!==s||t[5]!==n?(l={queryKey:s,staleTime:6e4,queryFn:n},t[4]=s,t[5]=n,t[6]=l):l=t[6],ne(l)}function We(){const t=$.c(8),{org:e}=q(),a=V(),s=Y();let n;t[0]!==a?(n=async c=>{const{columnKey:i,rules:u}=c;if(u){const g=u.prompt.trim();await(g||u.skills.length?a.call("TASK_BOARD_PROMPT_UPSERT",{columnKey:i,prompt:g,skills:u.skills}):a.call("TASK_BOARD_PROMPT_DELETE",{columnKey:i}))}},t[0]=a,t[1]=n):n=t[1];let l;t[2]!==e||t[3]!==s?(l=()=>s.invalidateQueries({queryKey:F.taskBoardPrompts(e.id)}),t[2]=e,t[3]=s,t[4]=l):l=t[4];let r;return t[5]!==n||t[6]!==l?(r={mutationFn:n,onSettled:l},t[5]=n,t[6]=l,t[7]=r):r=t[7],le(r)}const H=()=>0;function Je(){const t=$.c(6),{org:e}=q(),a=Y();let s;t[0]!==e.id||t[1]!==a?(s=()=>a.invalidateQueries({queryKey:F.taskBoardPrompts(e.id)}),t[0]=e.id,t[1]=a,t[2]=s):s=t[2];const n=s;let l;t[3]!==e.slug||t[4]!==n?(l=()=>be.subscribe(e.slug,n,n),t[3]=e.slug,t[4]=n,t[5]=l):l=t[5];const r=l;U.useSyncExternalStore(r,H,H)}export{Ue as C,Ve as S,He as a,Ye as b,Se as c,We as d,Je as u};
|
|
1
|
+
import{c as $,b as D,m as z,j as o,a6 as q,L as Z,au as ee,d as te,r as U,hi as se,B as ae,t as oe,am as V,K as F,i as ne,q as Y,e as le}from"./index-BuZqAz74.js";import{s as W}from"./Plus--DcN-eh1.js";import{s as re}from"./XClose-C4MsAn9v.js";import{i as ie}from"./Zap-DoxB0q6B.js";import{B as K}from"./badge-BvHOfdxU.js";import{f as ce,a as ue,c as de,C as me,e as fe,b as pe}from"./command-DHGFzOhP.js";import{I as xe}from"./icon-button-DzpdeaSs.js";import{c as ge,a as he,b as je,S as ve}from"./sheet-Lq2qXLx8.js";import{j as ke}from"./use-org-fs-CAHuTLc_.js";import{a as Ne}from"./use-project-scope-CD-cb4-V.js";import{u as J,a as _e}from"./use-automations-D4bJmUmE.js";import{C as ye}from"./task-board-DEUSGytR.js";import{b as be}from"./watch-sse-pool-C7kLS2GY.js";const Be={triage:"taskBoard.columnGuide.triage",todo:"taskBoard.columnGuide.todo",in_progress:"taskBoard.columnGuide.inProgress",in_review:"taskBoard.columnGuide.inReview",qa:"taskBoard.columnGuide.qa",customer_approval:"taskBoard.columnGuide.customerApproval",ready_for_deployment:"taskBoard.columnGuide.readyForDeployment",post_deploy_validation:"taskBoard.columnGuide.postDeployValidation",done:null,archived:null};function Se(t){const e=ye.find(a=>a===t);return e?Be[e]:null}function He(t){const e=$.c(7),{data:a}=J();let s;e[0]!==a?(s=a??[],e[0]=a,e[1]=s):s=e[1];let n;if(e[2]!==t||e[3]!==s){let l;e[5]!==t?(l=r=>r.board_triggers.some(c=>c.type==="board_column_transition"&&c.column_key===t),e[5]=t,e[6]=l):l=e[6],n=s.filter(l),e[2]=t,e[3]=s,e[4]=n}else n=e[4];return n}function Q(t){switch(t){case"board_column_transition":return 0;case"board_pr_ready":return 1;case"board_pr_merged":return 2;default:return t}}function Ce(t){switch(t){case"board_column_transition":return"taskBoard.columnRules.starter.board_column_transition";case"board_pr_ready":return"taskBoard.columnRules.starter.board_pr_ready";case"board_pr_merged":return"taskBoard.columnRules.starter.board_pr_merged";default:return t}}function Re(t){const e=$.c(5),{data:a}=J();let s;if(e[0]!==t||e[1]!==a){let n;e[3]!==t?(n=l=>{const r=l.board_triggers.find(c=>c.column_key===t);return r?[{automation:l,starter:r.type}]:[]},e[3]=t,e[4]=n):n=e[4],s=(a??[]).flatMap(n).sort(Ae),e[0]=t,e[1]=a,e[2]=s}else s=e[2];return s}function Ae(t,e){return Number(e.automation.active)-Number(t.automation.active)||Q(t.starter)-Q(e.starter)}function Ue(t){const e=$.c(37),{columnKey:a,label:s,icon:n,iconClassName:l,open:r,onOpenChange:c}=t,i=D(),{org:u}=q(),g=Se(a),d=Re(a);let h;e[0]!==c?(h=()=>c(!1),e[0]=c,e[1]=h):h=e[1];const x=h,R=je,_=he,O="w-full gap-0 sm:max-w-md",y=void 0,b=Te,B=ge,A="gap-1 pb-0";let m;e[2]!==n||e[3]!==l?(m=n&&o.jsx(n,{size:16,className:l}),e[2]=n,e[3]=l,e[4]=m):m=e[4];let j;e[5]!==s||e[6]!==m?(j=o.jsxs(ve,{className:"flex items-center gap-2",children:[m,s]}),e[5]=s,e[6]=m,e[7]=j):j=e[7];const T=g&&o.jsx("p",{className:"surface-inset mt-2 rounded-xl px-3.5 py-3 text-sm leading-relaxed text-foreground",children:i(g)});let v;e[8]!==B||e[9]!==j||e[10]!==T?(v=o.jsxs(B,{className:A,children:[j,T]}),e[8]=B,e[9]=j,e[10]=T,e[11]=v):v=e[11];let k;e[12]!==i?(k=i("taskBoard.columnRules.runsHere"),e[12]=i,e[13]=k):k=e[13];let S;e[14]!==k?(S=o.jsx("h3",{className:"text-meta",children:k}),e[14]=k,e[15]=S):S=e[15];let f;e[16]!==d||e[17]!==a||e[18]!==s||e[19]!==x||e[20]!==u||e[21]!==i?(f=d.length===0?o.jsx(we,{columnKey:a,label:s,onLeave:x}):o.jsx("div",{className:"surface divide-y divide-border",children:d.map(L=>{const{automation:N,starter:E}=L;return o.jsxs(Z,{to:"/$org/projects/$agentId/automations/$automationId",params:{org:u.slug,agentId:N.virtual_mcp_id,automationId:N.id},onClick:x,className:"group flex items-center gap-3 px-3 py-2.5 transition-colors hover:bg-accent/50",children:[o.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[o.jsx("span",{className:z("truncate text-sm",N.active?"text-foreground":"text-muted-foreground"),children:N.name}),o.jsx("span",{className:"text-meta",children:N.active?i(Ce(E)):i("taskBoard.columnRules.off")})]}),o.jsx(ee,{size:14,className:"shrink-0 text-muted-foreground transition-colors group-hover:text-foreground"})]},N.id)})}),e[16]=d,e[17]=a,e[18]=s,e[19]=x,e[20]=u,e[21]=i,e[22]=f):f=e[22];let w;e[23]!==S||e[24]!==f?(w=o.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto px-4 pt-6 pb-6",children:[S,f]}),e[23]=S,e[24]=f,e[25]=w):w=e[25];let I;e[26]!==_||e[27]!==w||e[28]!==y||e[29]!==b||e[30]!==v?(I=o.jsxs(_,{className:O,"aria-describedby":y,onOpenAutoFocus:b,children:[v,w]}),e[26]=_,e[27]=w,e[28]=y,e[29]=b,e[30]=v,e[31]=I):I=e[31];let C;return e[32]!==R||e[33]!==r||e[34]!==c||e[35]!==I?(C=o.jsx(R,{open:r,onOpenChange:c,children:I}),e[32]=R,e[33]=r,e[34]=c,e[35]=I,e[36]=C):C=e[36],C}function Te(t){return t.preventDefault()}function we({columnKey:t,label:e,onLeave:a}){const s=D(),{org:n}=q(),{project:l}=Ne(),r=te(),{create:c,triggerAdd:i}=_e(),[u,g]=U.useState(!1),d=l?.id??se(n.id),h=async()=>{g(!0);try{const x=await c.mutateAsync({name:s("taskBoard.columnRules.newAutomationName",{column:e}),messages:[],models:{tier:"smart"},active:!1,virtual_mcp_id:d});await i.mutateAsync({automation_id:x.id,type:"board_column_transition",column_key:t}),a(),r({to:"/$org/projects/$agentId/automations/$automationId",params:{org:n.slug,agentId:d,automationId:x.id}})}catch{oe.error(s("taskBoard.columnRules.newAutomationFailed"))}finally{g(!1)}};return o.jsxs("div",{className:"surface flex flex-col items-center gap-3 px-6 py-8 text-center",children:[o.jsx("span",{className:"flex size-9 items-center justify-center rounded-full bg-muted text-muted-foreground",children:o.jsx(ie,{size:16})}),o.jsx("p",{className:"text-sm font-medium text-foreground",children:s("taskBoard.columnRules.noAutomations")}),o.jsxs(ae,{variant:"outline",size:"sm",className:"gap-1.5",disabled:u,onClick:h,children:[o.jsx(W,{size:14}),s("taskBoard.columnRules.newAutomation")]})]})}const Ie=[];function Ve(t){const e=$.c(71),{value:a,onChange:s,inherited:n,fill:l}=t,r=n===void 0?Ie:n,c=l===void 0?!1:l,i=D(),u=ke();let g;e[0]!==u.data?(g=f=>u.data?.find(w=>w.id===f)?.name??f,e[0]=u.data,e[1]=g):g=e[1];const d=g;let h,x,R,_,O,y,b,B,A,m;if(e[2]!==u.data||e[3]!==c||e[4]!==r||e[5]!==d||e[6]!==s||e[7]!==i||e[8]!==a){let f;e[19]!==r||e[20]!==a?(f=p=>!p.disableModelInvocation&&!a.includes(p.id)&&!r.includes(p.id),e[19]=r,e[20]=a,e[21]=f):f=e[21];const w=(u.data??[]).filter(f);if(e[22]!==c||e[23]!==r||e[24]!==d||e[25]!==s||e[26]!==i||e[27]!==a){let p;e[30]!==r?(p=P=>!r.includes(P),e[30]=r,e[31]=p):p=e[31];const M=a.filter(p),G=c&&"min-h-0 flex-1";e[32]!==G?(m=z("flex flex-col gap-2",G),e[32]=G,e[33]=m):m=e[33],_=M.length>0&&o.jsx("div",{className:"flex flex-wrap gap-1.5",children:M.map(P=>o.jsxs(K,{variant:"outline",className:"py-0 pr-0 pl-2",children:[d(P),o.jsx(xe,{label:i("taskBoard.columnRules.removeSkill",{skill:d(P)}),onClick:()=>s(a.filter(X=>X!==P)),className:"size-5 text-muted-foreground",children:o.jsx(re,{size:12})})]},P))}),e[22]=c,e[23]=r,e[24]=d,e[25]=s,e[26]=i,e[27]=a,e[28]=_,e[29]=m}else _=e[28],m=e[29];R=ce;const I=c&&"min-h-0 flex-1";e[34]!==I?(B=z("h-auto border",I),e[34]=I,e[35]=B):B=e[35];let C;e[36]!==i?(C=i("taskBoard.columnRules.searchSkills"),e[36]=i,e[37]=C):C=e[37],e[38]!==C?(A=o.jsx(ue,{placeholder:C,className:"h-9"}),e[38]=C,e[39]=A):A=e[39],x=de;const L=c?"max-h-none flex-1":"max-h-56";e[40]!==L?(y=z(L),e[40]=L,e[41]=y):y=e[41];let N;e[42]!==i?(N=i("taskBoard.columnRules.noSkills"),e[42]=i,e[43]=N):N=e[43],e[44]!==N?(b=o.jsx(me,{children:N}),e[44]=N,e[45]=b):b=e[45],h=fe;let E;e[46]!==s||e[47]!==a?(E=p=>o.jsxs(pe,{value:`${p.name} ${p.id}`,onSelect:()=>s([...a,p.id]),children:[o.jsx(W,{size:14,className:"shrink-0 text-muted-foreground"}),o.jsxs("span",{className:"flex min-w-0 flex-col",children:[o.jsx("span",{className:"truncate text-sm",children:p.name}),p.description&&o.jsx("span",{className:"text-meta line-clamp-1",children:p.description})]})]},p.id),e[46]=s,e[47]=a,e[48]=E):E=e[48],O=w.map(E),e[2]=u.data,e[3]=c,e[4]=r,e[5]=d,e[6]=s,e[7]=i,e[8]=a,e[9]=h,e[10]=x,e[11]=R,e[12]=_,e[13]=O,e[14]=y,e[15]=b,e[16]=B,e[17]=A,e[18]=m}else h=e[9],x=e[10],R=e[11],_=e[12],O=e[13],y=e[14],b=e[15],B=e[16],A=e[17],m=e[18];let j;e[49]!==h||e[50]!==O?(j=o.jsx(h,{children:O}),e[49]=h,e[50]=O,e[51]=j):j=e[51];let T;e[52]!==x||e[53]!==j||e[54]!==y||e[55]!==b?(T=o.jsxs(x,{className:y,children:[b,j]}),e[52]=x,e[53]=j,e[54]=y,e[55]=b,e[56]=T):T=e[56];let v;e[57]!==R||e[58]!==T||e[59]!==B||e[60]!==A?(v=o.jsxs(R,{className:B,children:[A,T]}),e[57]=R,e[58]=T,e[59]=B,e[60]=A,e[61]=v):v=e[61];let k;e[62]!==r||e[63]!==d||e[64]!==i?(k=r.length>0&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-meta",children:i("taskBoard.columnRules.inheritedHint")}),o.jsx("div",{className:"flex flex-wrap gap-1.5",children:r.map(f=>o.jsx(K,{variant:"muted",children:d(f)},f))})]}),e[62]=r,e[63]=d,e[64]=i,e[65]=k):k=e[65];let S;return e[66]!==_||e[67]!==v||e[68]!==k||e[69]!==m?(S=o.jsxs("div",{className:m,children:[_,v,k]}),e[66]=_,e[67]=v,e[68]=k,e[69]=m,e[70]=S):S=e[70],S}function Ye(){const t=$.c(7),{org:e}=q(),a=V();let s;t[0]!==e.id?(s=F.taskBoardPrompts(e.id),t[0]=e.id,t[1]=s):s=t[1];let n;t[2]!==a?(n=async()=>(await a.call("TASK_BOARD_PROMPT_LIST",{})).prompts,t[2]=a,t[3]=n):n=t[3];let l;return t[4]!==s||t[5]!==n?(l={queryKey:s,staleTime:6e4,queryFn:n},t[4]=s,t[5]=n,t[6]=l):l=t[6],ne(l)}function We(){const t=$.c(8),{org:e}=q(),a=V(),s=Y();let n;t[0]!==a?(n=async c=>{const{columnKey:i,rules:u}=c;if(u){const g=u.prompt.trim();await(g||u.skills.length?a.call("TASK_BOARD_PROMPT_UPSERT",{columnKey:i,prompt:g,skills:u.skills}):a.call("TASK_BOARD_PROMPT_DELETE",{columnKey:i}))}},t[0]=a,t[1]=n):n=t[1];let l;t[2]!==e||t[3]!==s?(l=()=>s.invalidateQueries({queryKey:F.taskBoardPrompts(e.id)}),t[2]=e,t[3]=s,t[4]=l):l=t[4];let r;return t[5]!==n||t[6]!==l?(r={mutationFn:n,onSettled:l},t[5]=n,t[6]=l,t[7]=r):r=t[7],le(r)}const H=()=>0;function Je(){const t=$.c(6),{org:e}=q(),a=Y();let s;t[0]!==e.id||t[1]!==a?(s=()=>a.invalidateQueries({queryKey:F.taskBoardPrompts(e.id)}),t[0]=e.id,t[1]=a,t[2]=s):s=t[2];const n=s;let l;t[3]!==e.slug||t[4]!==n?(l=()=>be.subscribe(e.slug,n,n),t[3]=e.slug,t[4]=n,t[5]=l):l=t[5];const r=l;U.useSyncExternalStore(r,H,H)}export{Ue as C,Ve as S,He as a,Ye as b,Se as c,We as d,Je as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a6 as l,am as c,r as i,V as d,K as m}from"./index-BuZqAz74.js";import{c as T}from"./thread-intent-CyH0Z8_7.js";const p=[],S=()=>()=>{},h=()=>p;function f(t){const{org:s}=l(),r=c(),n=T(),o=i.useSyncExternalStore(n?.threads.subscribe??S,n?.threads.get??h),e=t===null?null:o.find(a=>a.id===t)??null,{data:u}=d({queryKey:m.ensureTask(s.id,t),queryFn:async()=>{if(t===null)return null;try{const{item:a}=await r.call("COLLECTION_THREADS_GET",{id:t});return a??null}catch{return null}},initialData:e&&!e.partial?e:void 0,select:a=>a?.metadata??null,staleTime:3e4});return e?.metadata??u??null}export{f as u};
|
package/dist/client/assets/{use-thread-outputs-vfKngax2.js → use-thread-outputs-A3ms5KEO.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,
|
|
1
|
+
import{c,a6 as i,i as l,K as p}from"./index-BuZqAz74.js";import{f}from"./chat-context-DG5tQFfU.js";async function m(e,s){const t=await fetch(`/api/${s}/threads/${encodeURIComponent(e)}/outputs`,{credentials:"include"});if(!t.ok)throw new Error(`Failed to fetch thread outputs: ${t.status}`);return(await t.json()).objects??[]}function $(){const e=c.c(2),s=f()?.messages??[];let t;return e[0]!==s?(t=s.some(y),e[0]=s,e[1]=t):t=e[1],t}function y(e){return e.parts?.some(b)}function b(e){const s=e;return(s.type==="tool-bash"||s.type==="tool-write")&&s.state==="output-available"}function g(e,s){const t=c.c(9),{org:u}=i();let o;t[0]!==e?(o=p.threadOutputs(e??""),t[0]=e,t[1]=o):o=t[1];let n;t[2]!==u||t[3]!==e?(n=()=>m(e??"",u.slug),t[2]=u,t[3]=e,t[4]=n):n=t[4];const r=!!e&&(s?.enabled??!0);let a;return t[5]!==o||t[6]!==n||t[7]!==r?(a={queryKey:o,queryFn:n,enabled:r,staleTime:0},t[5]=o,t[6]=n,t[7]=r,t[8]=a):a=t[8],l(a)}export{g as a,$ as u};
|
package/dist/client/assets/{use-view-draft-kind-CK2Ws293.js → use-view-draft-kind-CXMOqIBD.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{av as b,cK as g,c as p,cL as h,u as A}from"./index-BuZqAz74.js";import{u as y}from"./use-blog-view-w4rEUATy.js";import{e as f,i as o,g as d,t as S}from"./thread-intent-CyH0Z8_7.js";import{a as v,d as w}from"./session-runtime-HHtypsTM.js";const D=1e4,P="true",l=2;function c(t,e){return b.chatAutosend(t,e)}function T(t){return t==="pending"||t==="sending"}function E(t){if(!t)return null;let e;try{e=JSON.parse(t)}catch{return null}if(!e||typeof e!="object")return null;const n=e;let a=0;n.status==="sending"?a=n.retryAt===void 0?1:l:n.retryAt!==void 0&&(a=1);const r=n.attempt===void 0?a:n.attempt;return typeof n.createdAt!="number"||typeof n.message!="object"||!T(n.status)||n.retryAt!==void 0&&typeof n.retryAt!="number"||typeof r!="number"||!Number.isInteger(r)||r<0||r>l?null:{...e,attempt:r}}function U(t,e,n,a,r=Date.now()){const i={message:a,createdAt:r,status:"pending",attempt:0};return t.setItem(c(e,n),JSON.stringify(i)),i}function N(t,e,n){const a=c(e,n),r=E(t.getItem(a));return r||(t.removeItem(a),null)}function k(t,e,n,a=Date.now()){const r=c(e,n),i=N(t,e,n);if(!i||i.status!=="pending")return null;if(i.attempt>=l)return t.removeItem(r),null;const s=i.retryAt??i.createdAt;if(a-s>=D)return t.removeItem(r),null;const u={...i,status:"sending",attempt:i.attempt+1};return t.setItem(r,JSON.stringify(u)),{message:u.message,createdAt:u.createdAt,attempt:u.attempt}}function M(t,e,n){t.removeItem(c(e,n))}const x=new Set(["site-editor","content","code","calendar","experiments"]);function _(t,e,n){return n?t==="blog"||t==="blog-post"?"blog":t==="monitoring"?e==="experiments"?"site":null:t&&x.has(t)?"site":null:null}function m(t){return o(t)?"blog":"site"}function j(t,e,n){return e===null?[...t]:t.filter(a=>m(a.branch)===e||a.branch===n)}function F(t,e,n,a){const r=t.filter(i=>i.branch!==e&&(n===null||m(i.branch)===n));return r.find(i=>(i.runtime??a)!=="sandbox")??r[0]}function J(t){return o(t)?"thread.branchPicker.blogDraftName":"thread.branchPicker.defaultVersionName"}function K(t,e,n){return t==="blog"?o(e.branch)||v(e.metadata,n)==="sandbox":t==="site"?!o(e.branch):!0}function C(t,e,n){return!e.partial&&t==="blog"===o(e.branch)&&S(e,w(n))}function Y(t,e){const n=t||f(e);return o(n)?{branch:n}:{branch:n,runtime:"sandbox"}}function O(t,e,n){return K(t,e,n)?null:t==="blog"?"site-editor":"blog"}function G(t,e,n){return n&&o(t)?f(e):d(e)}function Q(t){const e=t.viewKind==="blog"||t.blogView&&o(t.branch)?f(t.userLabel):d(t.userLabel);return t.projectDefault==="cms"?{kind:"new-thread",runtime:"cms",branch:e}:{kind:"repoint",branch:e}}function L(t){if(!t)return null;const e=g(t);return e.kind==="blog"?"blog":e.kind==="site-editor"||e.kind==="agent-section"&&(e.section==="calendar"||e.section==="experiments")?"site":null}function W(t,e,n){return!t||!e||!n?t:O(L(t),e,void 0)??t}function X(){const t=p.c(5),e=h(),n=y();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},t[0]=a):a=t[0];const r=A(a),i="view"in r&&typeof r.view=="string"?r.view:void 0;let s;return t[1]!==n||t[2]!==e||t[3]!==i?(s=_(e,i,n),t[1]=n,t[2]=e,t[3]=i,t[4]=s):s=t[4],s}export{P as A,M as a,Y as b,k as c,J as d,j as e,m as f,Q as g,C as i,G as n,F as s,W as t,X as u,K as v,U as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as L,b as V,r as N,j as r,m as q,B as Z,aW as ee}from"./index-BMPeWdJw.js";import{a as te,d as re,r as se,p as ne}from"./session-runtime-B3tpmEdV.js";import{u as H,i as oe,d as le,j as ie,k as ce,m as ae}from"./chat-context-CzmbAHe8.js";import{b as ue}from"./repository-binding-BCK2I6Mo.js";import{a as Q,b as Y,P as G}from"./popover-zwWAAqUd.js";import{d as de,b as fe,a as me,D as he}from"./drawer-cS0px3h4.js";import{T as pe,a as xe,c as ge}from"./tooltip-BBk4QO9B.js";import{u as ve}from"./use-mobile-DPeImGih.js";import{g as ye,ab as be}from"./agent-icon-BJ2Wx2fE.js";import{t as Se}from"./ChevronDown-88QbtNjw.js";import{a as je}from"./UserCheck01-D14kK5BQ.js";import{t as Te}from"./Tool01-CRE8Zr1E.js";import{d as Re}from"./use-organization-settings-HyX5IrJ4.js";import{u as J,c as Me,d as ke}from"./use-ai-providers-B1MpfOF5.js";import{M as Ce,a as Ie}from"./index-DGJ99-Gb.js";import{d as we,e as Ne,b as _e}from"./use-entitlements-RVjfgn4l.js";function mt(t){const e=L.c(14),o=ue(t),b=H(),s=o?.metadata,a=b?.activeTask,n=a?.metadata?.runtime;let u;e[0]!==n?(u=ne(n),e[0]=n,e[1]=u):u=e[1];const x=u,S=!!a&&!a.partial,l=a?.metadata;let j;e[2]!==s||e[3]!==l?(j=te(l,s),e[2]=s,e[3]=l,e[4]=j):j=e[4];const g=!!x||S&&!!o;let f;e[5]!==s?(f=re(s),e[5]=s,e[6]=f):f=e[6];let i;e[7]!==s?(i=se(s),e[7]=s,e[8]=i):i=e[8];let v;return e[9]!==j||e[10]!==g||e[11]!==f||e[12]!==i?(v={runtime:j,resolved:g,projectDefault:f,previewServerUrl:i},e[9]=j,e[10]=g,e[11]=f,e[12]=i,e[13]=v):v=e[13],v}function Pe(t){return["openai-compatible","openrouter","deco"].includes(t)}function De(t,e){return Pe(t)&&$e(e)!==null}function $e(t){const e=t.replace(/^openai\//,"");return/^(gpt-\d|o[134](?:-|$))/.test(e)?e:null}const Ee={anthropic:/^claude-/,openrouter:/^anthropic\/claude-/,deco:/^anthropic\/claude-/};function Fe(t,e){return Ee[t]?.test(e)??!1}function Ae(t){return Me(t)&&Fe(t.providerId,t.modelId)}function ze(t,e){return t?{modelId:t.modelId,title:t.title??t.modelId,keyId:t.keyId,providerId:e,description:null,logo:null,capabilities:[],limits:null,costs:null}:null}const Le={fast:"chat.tierTrigger.tierFast",smart:"chat.tierTrigger.tierSmart",thinking:"chat.tierTrigger.tierThinking"};function Ue(t){const e=L.c(32),{tier:o,orgSlot:b,userSlot:s,autoSlot:a,filterModels:n,onPick:u,onReset:x,onClose:S}=t,l=V(),j=J(),g=new Set(j.map(Be)),f=oe([s,b,a],g),i=f?.keyId??null,[v,m]=N.useState(i??j[0]?.id??null),c=j.some(P=>P.id===v)?v:i??j[0]?.id??null,k=c?j.find(P=>P.id===c):null,M="flex h-[70vh] max-h-[460px] w-full flex-col",T=Le[o];let h;e[0]!==l||e[1]!==T?(h=l(T),e[0]=l,e[1]=T,e[2]=h):h=e[2];let p;e[3]!==h?(p=r.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:h}),e[3]=h,e[4]=p):p=e[4];let y;e[5]!==x||e[6]!==l||e[7]!==s?(y=s&&r.jsx("button",{type:"button",onClick:x,className:"text-xs text-muted-foreground hover:text-foreground px-2 py-1 rounded-lg hover:bg-accent cursor-pointer",children:l("chat.modelPreferences.reset")}),e[5]=x,e[6]=l,e[7]=s,e[8]=y):y=e[8];let R;e[9]!==p||e[10]!==y?(R=r.jsxs("div",{className:"flex items-center justify-between px-3 h-8 shrink-0",children:[p,y]}),e[9]=p,e[10]=y,e[11]=R):R=e[11];const d="flex-1 min-h-0",C=N.Suspense;let _;e[12]===Symbol.for("react.memo_cache_sentinel")?(_=r.jsx(Ie,{}),e[12]=_):_=e[12];const z=Ce,A=!0,E=ze(i?f:null,k?.providerId??"deco");let D;e[13]!==c||e[14]!==u||e[15]!==m?(D=P=>{const F=P.keyId??c??"";m(F),u({keyId:F,modelId:P.modelId,title:P.title})},e[13]=c,e[14]=u,e[15]=m,e[16]=D):D=e[16];let I;e[17]!==z||e[18]!==c||e[19]!==n||e[20]!==S||e[21]!==m||e[22]!==E||e[23]!==D?(I=r.jsx(z,{compact:A,filterModels:n,onClose:S,credentialId:c,onCredentialChange:m,selectedModel:E,onModelChange:D}),e[17]=z,e[18]=c,e[19]=n,e[20]=S,e[21]=m,e[22]=E,e[23]=D,e[24]=I):I=e[24];let w;e[25]!==C||e[26]!==I||e[27]!==_?(w=r.jsx("div",{className:d,children:r.jsx(C,{fallback:_,children:I})}),e[25]=C,e[26]=I,e[27]=_,e[28]=w):w=e[28];let $;return e[29]!==w||e[30]!==R?($=r.jsxs("div",{className:M,children:[R,w]}),e[29]=w,e[30]=R,e[31]=$):$=e[31],$}function Be(t){return t.id}const Ke=["fast","smart","thinking"];function X(t){return{fast:t("chat.tierTrigger.tierFast"),smart:t("chat.tierTrigger.tierSmart"),thinking:t("chat.tierTrigger.tierThinking")}}const O={fast:"chat.agentModels.quickerResponses",smart:"chat.agentModels.balancedQuality",thinking:"chat.agentModels.deeperReasoning"};function qe(t){const e=L.c(28),{tier:o,pillIcon:b,groups:s}=t,a=V();let n;e[0]!==a?(n=X(a),e[0]=a,e[1]=n):n=e[1];const u=n,[x,S]=N.useState(!1);let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=R=>{R.onSelect(),S(!1)},e[2]=l):l=e[2];const j=l,g=u[o];let f;e[3]===Symbol.for("react.memo_cache_sentinel")?(f=q("text-muted-foreground hover:text-foreground transition-[gap] duration-200 shrink min-w-0","gap-0 @[480px]/chat-bottom:gap-1.5"),e[3]=f):f=e[3];let i;e[4]===Symbol.for("react.memo_cache_sentinel")?(i=q("min-w-0 truncate transition-[max-width,opacity] duration-200 ease-out max-w-0 opacity-0","@[480px]/chat-bottom:max-w-24 @[480px]/chat-bottom:opacity-100"),e[4]=i):i=e[4];const v=u[o];let m;e[5]!==v?(m=r.jsx("span",{className:i,children:v}),e[5]=v,e[6]=m):m=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx(Se,{size:12,className:"opacity-60 hidden @[480px]/chat-bottom:inline-block"}),e[7]=c):c=e[7];let k;e[8]!==b||e[9]!==g||e[10]!==m?(k=r.jsx(pe,{asChild:!0,children:r.jsx("span",{className:"inline-flex min-w-0 shrink",children:r.jsx(Q,{asChild:!0,children:r.jsxs(Z,{type:"button",variant:"ghost",size:"default","aria-label":g,className:f,children:[b,m,c]})})})}),e[8]=b,e[9]=g,e[10]=m,e[11]=k):k=e[11];let M;e[12]!==g?(M=r.jsx(xe,{children:g}),e[12]=g,e[13]=M):M=e[13];let T;e[14]!==k||e[15]!==M?(T=r.jsxs(ge,{children:[k,M]}),e[14]=k,e[15]=M,e[16]=T):T=e[16];let h;if(e[17]!==s||e[18]!==a){let R;e[20]!==a?(R=d=>r.jsx("div",{className:"flex flex-col",children:d.rows.map(C=>r.jsxs("div",{className:"group/tier-row relative flex items-stretch rounded-lg hover:bg-accent",children:[r.jsxs("button",{type:"button",role:"menuitem","aria-label":C.title,onClick:()=>j(C),className:q("flex flex-1 min-w-0 items-start gap-2 px-2 py-1.5 text-left",C.modelOverride&&"pr-7 [@media(hover:hover)]:pr-2"),children:[C.icon&&r.jsx("span",{className:"shrink-0 text-muted-foreground mt-0.5",children:C.icon}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("div",{className:"text-sm",children:C.title}),C.subtitle&&r.jsx("div",{className:"text-xs text-muted-foreground",children:C.subtitle})]}),C.active&&r.jsx("span",{title:a("chat.tierTrigger.selected"),children:r.jsx(ee,{size:14,className:"text-foreground mt-0.5"})})]}),C.modelOverride&&r.jsx(Oe,{label:C.title,render:C.modelOverride})]},C.key))},d.key),e[20]=a,e[21]=R):R=e[21],h=s.map(R),e[17]=s,e[18]=a,e[19]=h}else h=e[19];let p;e[22]!==h?(p=r.jsx(Y,{align:"end",className:"p-1 w-64",onOpenAutoFocus:Ve,children:r.jsx("div",{role:"menu",className:"flex flex-col",children:h})}),e[22]=h,e[23]=p):p=e[23];let y;return e[24]!==x||e[25]!==T||e[26]!==p?(y=r.jsxs(G,{open:x,onOpenChange:S,children:[T,p]}),e[24]=x,e[25]=T,e[26]=p,e[27]=y):y=e[27],y}function Ve(t){return t.preventDefault()}function Oe(t){const e=L.c(38),{label:o,render:b}=t,s=V(),a=ve(),[n,u]=N.useState(!1);let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=()=>u(!1),e[0]=x):x=e[0];const S=x;let l;e[1]!==o||e[2]!==s?(l=s("chat.modelPreferences.customizeModel",{tier:o}),e[1]=o,e[2]=s,e[3]=l):l=e[3];const j=n&&"opacity-100";let g;e[4]!==j?(g=q("absolute right-1 top-1/2 -translate-y-1/2 flex items-center justify-center","size-6 rounded-lg bg-background shadow-edge","text-muted-foreground hover:text-foreground","opacity-100 [@media(hover:hover)]:opacity-0","[@media(hover:hover)]:group-hover/tier-row:opacity-100","[@media(hover:hover)]:group-focus-within/tier-row:opacity-100",j),e[4]=j,e[5]=g):g=e[5];let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=r.jsx(je,{size:14}),e[6]=f):f=e[6];let i;e[7]!==l||e[8]!==g?(i=r.jsx("button",{type:"button","aria-label":l,className:g,children:f}),e[7]=l,e[8]=g,e[9]=i):i=e[9];const v=i;if(a){let T;e[10]!==v?(T=r.jsx(de,{asChild:!0,children:v}),e[10]=v,e[11]=T):T=e[11];let h;e[12]!==o||e[13]!==s?(h=s("chat.modelPreferences.customizeModel",{tier:o}),e[12]=o,e[13]=s,e[14]=h):h=e[14];let p;e[15]!==h?(p=r.jsx(fe,{className:"sr-only",children:h}),e[15]=h,e[16]=p):p=e[16];let y;e[17]!==n||e[18]!==b?(y=n&&b(S),e[17]=n,e[18]=b,e[19]=y):y=e[19];let R;e[20]!==y||e[21]!==p?(R=r.jsxs(me,{className:"p-0 flex flex-col max-h-[95vh]",children:[p,y]}),e[20]=y,e[21]=p,e[22]=R):R=e[22];let d;return e[23]!==n||e[24]!==R||e[25]!==T?(d=r.jsxs(he,{open:n,onOpenChange:u,children:[T,R]}),e[23]=n,e[24]=R,e[25]=T,e[26]=d):d=e[26],d}let m;e[27]!==v?(m=r.jsx(Q,{asChild:!0,children:v}),e[27]=v,e[28]=m):m=e[28];let c;e[29]!==n||e[30]!==b?(c=n&&b(S),e[29]=n,e[30]=b,e[31]=c):c=e[31];let k;e[32]!==c?(k=r.jsx(Y,{side:"right",align:"start",collisionPadding:12,className:"w-[min(22rem,calc(100vw-2rem))] p-0 overflow-hidden",children:c}),e[32]=c,e[33]=k):k=e[33];let M;return e[34]!==n||e[35]!==m||e[36]!==k?(M=r.jsxs(G,{open:n,onOpenChange:u,children:[m,k]}),e[34]=n,e[35]=m,e[36]=k,e[37]=M):M=e[37],M}function W(t){return t==="fast"?r.jsx(ye,{size:16}):t==="thinking"?r.jsx(be,{size:16}):r.jsx(Te,{size:16})}function We(t){const e=L.c(13),o=ae();let b;e[0]!==t||e[1]!==o.tiers?(b=S=>{const l=o.tiers[S];return l?l.title??l.modelId:t.chat[S]?.title},e[0]=t,e[1]=o.tiers,e[2]=b):b=e[2];const s=b;let a;e[3]!==s?(a=s("fast"),e[3]=s,e[4]=a):a=e[4];let n;e[5]!==s?(n=s("smart"),e[5]=s,e[6]=n):n=e[6];let u;e[7]!==s?(u=s("thinking"),e[7]=s,e[8]=u):u=e[8];let x;return e[9]!==a||e[10]!==n||e[11]!==u?(x={fast:a,smart:n,thinking:u},e[9]=a,e[10]=n,e[11]=u,e[12]=x):x=e[12],x}function ht(){const t=L.c(25),e=V(),{simpleModeTier:o,setSimpleModeTier:b}=le(),s=Re(),a=J(),n=ke(a),u=We(n),{data:x,error:S}=ie();let l;t[0]!==x?(l=x===void 0?{tiers:{}}:x,t[0]=x,t[1]=l):l=t[1];const j=l,g=ce(),f=H()?.lockedHarness,i=f==="claude-code",v=we("model_choice"),m=Ne(),c=_e();if(!m||!v)return null;let k,M;if(t[2]!==n||t[3]!==c||t[4]!==i||t[5]!==f||t[6]!==s||t[7]!==b||t[8]!==e||t[9]!==o||t[10]!==u||t[11]!==g||t[12]!==j||t[13]!==S){const R=X(e);k="decopilot",M=Ke.map(d=>{const C=u[d],_=j.tiers[d];return{key:`decopilot-${d}`,icon:W(d),title:R[d],subtitle:c?C??e(O[d]):e(O[d]),active:o===d,onSelect:()=>b(d),modelOverride:c?z=>r.jsxs(r.Fragment,{children:[S&&r.jsx("div",{className:"text-xs text-destructive p-3 pb-0",children:e("chat.modelPreferences.loadFailed")}),r.jsx(Ue,{tier:d,orgSlot:s.tiers[d],userSlot:_,autoSlot:n.chat[d],filterModels:f==="codex"?He:i?Ae:void 0,onClose:z,onPick:A=>g.mutate({tier:d,slot:A}),onReset:()=>g.mutate({tier:d,slot:null})},`${d}:${_?.keyId??"org"}:${_?.modelId??""}`)]}):void 0}}),t[2]=n,t[3]=c,t[4]=i,t[5]=f,t[6]=s,t[7]=b,t[8]=e,t[9]=o,t[10]=u,t[11]=g,t[12]=j,t[13]=S,t[14]=k,t[15]=M}else k=t[14],M=t[15];let T;t[16]!==k||t[17]!==M?(T=[{key:k,rows:M}],t[16]=k,t[17]=M,t[18]=T):T=t[18];const h=T;let p;t[19]!==o?(p=W(o),t[19]=o,t[20]=p):p=t[20];let y;return t[21]!==h||t[22]!==p||t[23]!==o?(y=r.jsx(qe,{tier:o,pillIcon:p,groups:h}),t[21]=h,t[22]=p,t[23]=o,t[24]=y):y=t[24],y}function He(t){return De(t.providerId,t.modelId)}const B=48;function pt(){const t=L.c(12),[e,o]=N.useState("idle"),[b,s]=N.useState(""),[a,n]=N.useState(""),[u,x]=N.useState(Ge),S=N.useRef(null),l=N.useRef(null),j=N.useRef(null),g=N.useRef(null),f=N.useRef(0),i=N.useRef(!1),v=N.useRef(""),m=N.useRef(""),c=N.useRef(!1),k=typeof window<"u"&&!!(window.SpeechRecognition||window.webkitSpeechRecognition);let M;t[0]===Symbol.for("react.memo_cache_sentinel")?(M=()=>{f.current&&(cancelAnimationFrame(f.current),f.current=0),l.current?.close().catch(Ye),g.current?.getTracks().forEach(Qe),j.current=null,l.current=null,g.current=null},t[0]=M):M=t[0];const T=M;let h;t[1]===Symbol.for("react.memo_cache_sentinel")?(h=E=>{g.current=E;const D=new AudioContext;l.current=D;const I=D.createMediaStreamSource(E),w=D.createAnalyser();w.fftSize=128,w.smoothingTimeConstant=.8,I.connect(w),j.current=w;const $=new Uint8Array(w.frequencyBinCount),P=()=>{if(!j.current)return;j.current.getByteFrequencyData($);const F=[];for(let U=0;U<B;U++){const K=Math.floor(U/B*$.length);F.push(Math.max(.04,($[K]??0)/255))}x(F),f.current=requestAnimationFrame(P)};P()},t[1]=h):h=t[1];const p=h;let y;t[2]!==e?(y=async()=>{if(c.current||i.current)return e;c.current=!0;const E=window.SpeechRecognition||window.webkitSpeechRecognition;if(!E)return c.current=!1,o("unsupported"),"unsupported";let D;try{D=await navigator.mediaDevices.getUserMedia({audio:!0})}catch{return c.current=!1,o("permission-denied"),"permission-denied"}c.current=!1,s(""),n(""),m.current="",v.current="",i.current=!0,o("recording"),p(D);const I=new E;S.current=I,I.interimResults=!0,I.continuous=!0,I.lang=navigator.language||"en-US",I.onresult=w=>{if(S.current!==I)return;let $="",P="";for(let F=w.resultIndex;F<w.results.length;F++){const U=w.results[F],K=U?.[0]?.transcript??"";U?.isFinal?P=P+K:$=$+K}P&&(v.current=v.current+P,s(v.current)),m.current=$,n($)},I.onerror=w=>{S.current===I&&w.error!=="no-speech"&&(i.current=!1,S.current=null,T(),o(w.error==="not-allowed"?"permission-denied":"idle"))},I.onend=()=>{if(S.current===I&&i.current)try{I.start()}catch{}};try{I.start()}catch{return i.current=!1,S.current=null,T(),o("idle"),"idle"}return"recording"},t[2]=e,t[3]=y):y=t[3];const R=y;let d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{i.current=!1,S.current?.stop(),T(),o("idle"),x(Array(B).fill(.05)),n("");const E=(v.current+(m.current?" "+m.current:"")).trim();return s(""),v.current="",m.current="",E},t[4]=d):d=t[4];const C=d;let _;t[5]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{i.current=!1,S.current?.abort(),T(),o("idle"),s(""),n(""),x(Array(B).fill(.05)),v.current="",m.current=""},t[5]=_):_=t[5];const z=_;let A;return t[6]!==a||t[7]!==R||t[8]!==e||t[9]!==b||t[10]!==u?(A={status:e,transcript:b,interimTranscript:a,waveformData:u,isSupported:k,startRecording:R,stopRecording:C,cancelRecording:z},t[6]=a,t[7]=R,t[8]=e,t[9]=b,t[10]=u,t[11]=A):A=t[11],A}function Qe(t){return t.stop()}function Ye(){}function Ge(){return Array(B).fill(.05)}export{ht as T,pt as a,Pe as s,mt as u};
|
|
1
|
+
import{c as L,b as V,r as N,j as r,m as q,B as Z,aY as ee}from"./index-BuZqAz74.js";import{a as te,d as re,r as se,p as ne}from"./session-runtime-HHtypsTM.js";import{u as Y,i as oe,d as le,j as ie,k as ce,m as ae}from"./chat-context-DG5tQFfU.js";import{b as ue}from"./repository-binding-VVfcdUiy.js";import{a as H,b as Q,P as G}from"./popover-D6EIL5sL.js";import{d as de,b as fe,a as me,D as he}from"./drawer-BXd80xtd.js";import{T as pe,a as xe,c as ge}from"./tooltip-DnGqcvtu.js";import{u as ve}from"./use-mobile-Cq1k3-Gk.js";import{g as ye,ab as be}from"./agent-icon-DwJHakBB.js";import{t as Se}from"./ChevronDown-ClblfTVV.js";import{a as je}from"./UserCheck01-BMoOFYIZ.js";import{t as Te}from"./Tool01-BeDQSGiN.js";import{d as Re}from"./use-organization-settings-D8JbZGlQ.js";import{u as J,c as Me,d as ke}from"./use-ai-providers-BG5EDM0R.js";import{M as Ce,a as Ie}from"./index-Bld02Tnb.js";import{d as we,e as Ne,b as _e}from"./use-entitlements-DgXhk8I6.js";function mt(t){const e=L.c(14),o=ue(t),b=Y(),s=o?.metadata,a=b?.activeTask,n=a?.metadata?.runtime;let u;e[0]!==n?(u=ne(n),e[0]=n,e[1]=u):u=e[1];const x=u,S=!!a&&!a.partial,l=a?.metadata;let j;e[2]!==s||e[3]!==l?(j=te(l,s),e[2]=s,e[3]=l,e[4]=j):j=e[4];const g=!!x||S&&!!o;let f;e[5]!==s?(f=re(s),e[5]=s,e[6]=f):f=e[6];let i;e[7]!==s?(i=se(s),e[7]=s,e[8]=i):i=e[8];let v;return e[9]!==j||e[10]!==g||e[11]!==f||e[12]!==i?(v={runtime:j,resolved:g,projectDefault:f,previewServerUrl:i},e[9]=j,e[10]=g,e[11]=f,e[12]=i,e[13]=v):v=e[13],v}function Pe(t){return["openai-compatible","openrouter","deco"].includes(t)}function De(t,e){return Pe(t)&&$e(e)!==null}function $e(t){const e=t.replace(/^openai\//,"");return/^(gpt-\d|o[134](?:-|$))/.test(e)?e:null}const Ee={anthropic:/^claude-/,openrouter:/^anthropic\/claude-/,deco:/^anthropic\/claude-/};function Fe(t,e){return Ee[t]?.test(e)??!1}function Ae(t){return Me(t)&&Fe(t.providerId,t.modelId)}function ze(t,e){return t?{modelId:t.modelId,title:t.title??t.modelId,keyId:t.keyId,providerId:e,description:null,logo:null,capabilities:[],limits:null,costs:null}:null}const Le={fast:"chat.tierTrigger.tierFast",smart:"chat.tierTrigger.tierSmart",thinking:"chat.tierTrigger.tierThinking"};function Ue(t){const e=L.c(32),{tier:o,orgSlot:b,userSlot:s,autoSlot:a,filterModels:n,onPick:u,onReset:x,onClose:S}=t,l=V(),j=J(),g=new Set(j.map(Be)),f=oe([s,b,a],g),i=f?.keyId??null,[v,m]=N.useState(i??j[0]?.id??null),c=j.some(P=>P.id===v)?v:i??j[0]?.id??null,k=c?j.find(P=>P.id===c):null,M="flex h-[70vh] max-h-[460px] w-full flex-col",T=Le[o];let h;e[0]!==l||e[1]!==T?(h=l(T),e[0]=l,e[1]=T,e[2]=h):h=e[2];let p;e[3]!==h?(p=r.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:h}),e[3]=h,e[4]=p):p=e[4];let y;e[5]!==x||e[6]!==l||e[7]!==s?(y=s&&r.jsx("button",{type:"button",onClick:x,className:"text-xs text-muted-foreground hover:text-foreground px-2 py-1 rounded-lg hover:bg-accent cursor-pointer",children:l("chat.modelPreferences.reset")}),e[5]=x,e[6]=l,e[7]=s,e[8]=y):y=e[8];let R;e[9]!==p||e[10]!==y?(R=r.jsxs("div",{className:"flex items-center justify-between px-3 h-8 shrink-0",children:[p,y]}),e[9]=p,e[10]=y,e[11]=R):R=e[11];const d="flex-1 min-h-0",C=N.Suspense;let _;e[12]===Symbol.for("react.memo_cache_sentinel")?(_=r.jsx(Ie,{}),e[12]=_):_=e[12];const z=Ce,A=!0,E=ze(i?f:null,k?.providerId??"deco");let D;e[13]!==c||e[14]!==u||e[15]!==m?(D=P=>{const F=P.keyId??c??"";m(F),u({keyId:F,modelId:P.modelId,title:P.title})},e[13]=c,e[14]=u,e[15]=m,e[16]=D):D=e[16];let I;e[17]!==z||e[18]!==c||e[19]!==n||e[20]!==S||e[21]!==m||e[22]!==E||e[23]!==D?(I=r.jsx(z,{compact:A,filterModels:n,onClose:S,credentialId:c,onCredentialChange:m,selectedModel:E,onModelChange:D}),e[17]=z,e[18]=c,e[19]=n,e[20]=S,e[21]=m,e[22]=E,e[23]=D,e[24]=I):I=e[24];let w;e[25]!==C||e[26]!==I||e[27]!==_?(w=r.jsx("div",{className:d,children:r.jsx(C,{fallback:_,children:I})}),e[25]=C,e[26]=I,e[27]=_,e[28]=w):w=e[28];let $;return e[29]!==w||e[30]!==R?($=r.jsxs("div",{className:M,children:[R,w]}),e[29]=w,e[30]=R,e[31]=$):$=e[31],$}function Be(t){return t.id}const Ke=["fast","smart","thinking"];function X(t){return{fast:t("chat.tierTrigger.tierFast"),smart:t("chat.tierTrigger.tierSmart"),thinking:t("chat.tierTrigger.tierThinking")}}const O={fast:"chat.agentModels.quickerResponses",smart:"chat.agentModels.balancedQuality",thinking:"chat.agentModels.deeperReasoning"};function qe(t){const e=L.c(28),{tier:o,pillIcon:b,groups:s}=t,a=V();let n;e[0]!==a?(n=X(a),e[0]=a,e[1]=n):n=e[1];const u=n,[x,S]=N.useState(!1);let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=R=>{R.onSelect(),S(!1)},e[2]=l):l=e[2];const j=l,g=u[o];let f;e[3]===Symbol.for("react.memo_cache_sentinel")?(f=q("text-muted-foreground hover:text-foreground transition-[gap] duration-200 shrink min-w-0","gap-0 @[480px]/chat-bottom:gap-1.5"),e[3]=f):f=e[3];let i;e[4]===Symbol.for("react.memo_cache_sentinel")?(i=q("min-w-0 truncate transition-[max-width,opacity] duration-200 ease-out max-w-0 opacity-0","@[480px]/chat-bottom:max-w-24 @[480px]/chat-bottom:opacity-100"),e[4]=i):i=e[4];const v=u[o];let m;e[5]!==v?(m=r.jsx("span",{className:i,children:v}),e[5]=v,e[6]=m):m=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx(Se,{size:12,className:"opacity-60 hidden @[480px]/chat-bottom:inline-block"}),e[7]=c):c=e[7];let k;e[8]!==b||e[9]!==g||e[10]!==m?(k=r.jsx(pe,{asChild:!0,children:r.jsx("span",{className:"inline-flex min-w-0 shrink",children:r.jsx(H,{asChild:!0,children:r.jsxs(Z,{type:"button",variant:"ghost",size:"default","aria-label":g,className:f,children:[b,m,c]})})})}),e[8]=b,e[9]=g,e[10]=m,e[11]=k):k=e[11];let M;e[12]!==g?(M=r.jsx(xe,{children:g}),e[12]=g,e[13]=M):M=e[13];let T;e[14]!==k||e[15]!==M?(T=r.jsxs(ge,{children:[k,M]}),e[14]=k,e[15]=M,e[16]=T):T=e[16];let h;if(e[17]!==s||e[18]!==a){let R;e[20]!==a?(R=d=>r.jsx("div",{className:"flex flex-col",children:d.rows.map(C=>r.jsxs("div",{className:"group/tier-row relative flex items-stretch rounded-lg hover:bg-accent",children:[r.jsxs("button",{type:"button",role:"menuitem","aria-label":C.title,onClick:()=>j(C),className:q("flex flex-1 min-w-0 items-start gap-2 px-2 py-1.5 text-left",C.modelOverride&&"pr-7 [@media(hover:hover)]:pr-2"),children:[C.icon&&r.jsx("span",{className:"shrink-0 text-muted-foreground mt-0.5",children:C.icon}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("div",{className:"text-sm",children:C.title}),C.subtitle&&r.jsx("div",{className:"text-xs text-muted-foreground",children:C.subtitle})]}),C.active&&r.jsx("span",{title:a("chat.tierTrigger.selected"),children:r.jsx(ee,{size:14,className:"text-foreground mt-0.5"})})]}),C.modelOverride&&r.jsx(Oe,{label:C.title,render:C.modelOverride})]},C.key))},d.key),e[20]=a,e[21]=R):R=e[21],h=s.map(R),e[17]=s,e[18]=a,e[19]=h}else h=e[19];let p;e[22]!==h?(p=r.jsx(Q,{align:"end",className:"p-1 w-64",onOpenAutoFocus:Ve,children:r.jsx("div",{role:"menu",className:"flex flex-col",children:h})}),e[22]=h,e[23]=p):p=e[23];let y;return e[24]!==x||e[25]!==T||e[26]!==p?(y=r.jsxs(G,{open:x,onOpenChange:S,children:[T,p]}),e[24]=x,e[25]=T,e[26]=p,e[27]=y):y=e[27],y}function Ve(t){return t.preventDefault()}function Oe(t){const e=L.c(38),{label:o,render:b}=t,s=V(),a=ve(),[n,u]=N.useState(!1);let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=()=>u(!1),e[0]=x):x=e[0];const S=x;let l;e[1]!==o||e[2]!==s?(l=s("chat.modelPreferences.customizeModel",{tier:o}),e[1]=o,e[2]=s,e[3]=l):l=e[3];const j=n&&"opacity-100";let g;e[4]!==j?(g=q("absolute right-1 top-1/2 -translate-y-1/2 flex items-center justify-center","size-6 rounded-lg bg-background shadow-edge","text-muted-foreground hover:text-foreground","opacity-100 [@media(hover:hover)]:opacity-0","[@media(hover:hover)]:group-hover/tier-row:opacity-100","[@media(hover:hover)]:group-focus-within/tier-row:opacity-100",j),e[4]=j,e[5]=g):g=e[5];let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=r.jsx(je,{size:14}),e[6]=f):f=e[6];let i;e[7]!==l||e[8]!==g?(i=r.jsx("button",{type:"button","aria-label":l,className:g,children:f}),e[7]=l,e[8]=g,e[9]=i):i=e[9];const v=i;if(a){let T;e[10]!==v?(T=r.jsx(de,{asChild:!0,children:v}),e[10]=v,e[11]=T):T=e[11];let h;e[12]!==o||e[13]!==s?(h=s("chat.modelPreferences.customizeModel",{tier:o}),e[12]=o,e[13]=s,e[14]=h):h=e[14];let p;e[15]!==h?(p=r.jsx(fe,{className:"sr-only",children:h}),e[15]=h,e[16]=p):p=e[16];let y;e[17]!==n||e[18]!==b?(y=n&&b(S),e[17]=n,e[18]=b,e[19]=y):y=e[19];let R;e[20]!==y||e[21]!==p?(R=r.jsxs(me,{className:"p-0 flex flex-col max-h-[95vh]",children:[p,y]}),e[20]=y,e[21]=p,e[22]=R):R=e[22];let d;return e[23]!==n||e[24]!==R||e[25]!==T?(d=r.jsxs(he,{open:n,onOpenChange:u,children:[T,R]}),e[23]=n,e[24]=R,e[25]=T,e[26]=d):d=e[26],d}let m;e[27]!==v?(m=r.jsx(H,{asChild:!0,children:v}),e[27]=v,e[28]=m):m=e[28];let c;e[29]!==n||e[30]!==b?(c=n&&b(S),e[29]=n,e[30]=b,e[31]=c):c=e[31];let k;e[32]!==c?(k=r.jsx(Q,{side:"right",align:"start",collisionPadding:12,className:"w-[min(22rem,calc(100vw-2rem))] p-0 overflow-hidden",children:c}),e[32]=c,e[33]=k):k=e[33];let M;return e[34]!==n||e[35]!==m||e[36]!==k?(M=r.jsxs(G,{open:n,onOpenChange:u,children:[m,k]}),e[34]=n,e[35]=m,e[36]=k,e[37]=M):M=e[37],M}function W(t){return t==="fast"?r.jsx(ye,{size:16}):t==="thinking"?r.jsx(be,{size:16}):r.jsx(Te,{size:16})}function We(t){const e=L.c(13),o=ae();let b;e[0]!==t||e[1]!==o.tiers?(b=S=>{const l=o.tiers[S];return l?l.title??l.modelId:t.chat[S]?.title},e[0]=t,e[1]=o.tiers,e[2]=b):b=e[2];const s=b;let a;e[3]!==s?(a=s("fast"),e[3]=s,e[4]=a):a=e[4];let n;e[5]!==s?(n=s("smart"),e[5]=s,e[6]=n):n=e[6];let u;e[7]!==s?(u=s("thinking"),e[7]=s,e[8]=u):u=e[8];let x;return e[9]!==a||e[10]!==n||e[11]!==u?(x={fast:a,smart:n,thinking:u},e[9]=a,e[10]=n,e[11]=u,e[12]=x):x=e[12],x}function ht(){const t=L.c(25),e=V(),{simpleModeTier:o,setSimpleModeTier:b}=le(),s=Re(),a=J(),n=ke(a),u=We(n),{data:x,error:S}=ie();let l;t[0]!==x?(l=x===void 0?{tiers:{}}:x,t[0]=x,t[1]=l):l=t[1];const j=l,g=ce(),f=Y()?.lockedHarness,i=f==="claude-code",v=we("model_choice"),m=Ne(),c=_e();if(!m||!v)return null;let k,M;if(t[2]!==n||t[3]!==c||t[4]!==i||t[5]!==f||t[6]!==s||t[7]!==b||t[8]!==e||t[9]!==o||t[10]!==u||t[11]!==g||t[12]!==j||t[13]!==S){const R=X(e);k="decopilot",M=Ke.map(d=>{const C=u[d],_=j.tiers[d];return{key:`decopilot-${d}`,icon:W(d),title:R[d],subtitle:c?C??e(O[d]):e(O[d]),active:o===d,onSelect:()=>b(d),modelOverride:c?z=>r.jsxs(r.Fragment,{children:[S&&r.jsx("div",{className:"text-xs text-destructive p-3 pb-0",children:e("chat.modelPreferences.loadFailed")}),r.jsx(Ue,{tier:d,orgSlot:s.tiers[d],userSlot:_,autoSlot:n.chat[d],filterModels:f==="codex"?Ye:i?Ae:void 0,onClose:z,onPick:A=>g.mutate({tier:d,slot:A}),onReset:()=>g.mutate({tier:d,slot:null})},`${d}:${_?.keyId??"org"}:${_?.modelId??""}`)]}):void 0}}),t[2]=n,t[3]=c,t[4]=i,t[5]=f,t[6]=s,t[7]=b,t[8]=e,t[9]=o,t[10]=u,t[11]=g,t[12]=j,t[13]=S,t[14]=k,t[15]=M}else k=t[14],M=t[15];let T;t[16]!==k||t[17]!==M?(T=[{key:k,rows:M}],t[16]=k,t[17]=M,t[18]=T):T=t[18];const h=T;let p;t[19]!==o?(p=W(o),t[19]=o,t[20]=p):p=t[20];let y;return t[21]!==h||t[22]!==p||t[23]!==o?(y=r.jsx(qe,{tier:o,pillIcon:p,groups:h}),t[21]=h,t[22]=p,t[23]=o,t[24]=y):y=t[24],y}function Ye(t){return De(t.providerId,t.modelId)}const B=48;function pt(){const t=L.c(12),[e,o]=N.useState("idle"),[b,s]=N.useState(""),[a,n]=N.useState(""),[u,x]=N.useState(Ge),S=N.useRef(null),l=N.useRef(null),j=N.useRef(null),g=N.useRef(null),f=N.useRef(0),i=N.useRef(!1),v=N.useRef(""),m=N.useRef(""),c=N.useRef(!1),k=typeof window<"u"&&!!(window.SpeechRecognition||window.webkitSpeechRecognition);let M;t[0]===Symbol.for("react.memo_cache_sentinel")?(M=()=>{f.current&&(cancelAnimationFrame(f.current),f.current=0),l.current?.close().catch(Qe),g.current?.getTracks().forEach(He),j.current=null,l.current=null,g.current=null},t[0]=M):M=t[0];const T=M;let h;t[1]===Symbol.for("react.memo_cache_sentinel")?(h=E=>{g.current=E;const D=new AudioContext;l.current=D;const I=D.createMediaStreamSource(E),w=D.createAnalyser();w.fftSize=128,w.smoothingTimeConstant=.8,I.connect(w),j.current=w;const $=new Uint8Array(w.frequencyBinCount),P=()=>{if(!j.current)return;j.current.getByteFrequencyData($);const F=[];for(let U=0;U<B;U++){const K=Math.floor(U/B*$.length);F.push(Math.max(.04,($[K]??0)/255))}x(F),f.current=requestAnimationFrame(P)};P()},t[1]=h):h=t[1];const p=h;let y;t[2]!==e?(y=async()=>{if(c.current||i.current)return e;c.current=!0;const E=window.SpeechRecognition||window.webkitSpeechRecognition;if(!E)return c.current=!1,o("unsupported"),"unsupported";let D;try{D=await navigator.mediaDevices.getUserMedia({audio:!0})}catch{return c.current=!1,o("permission-denied"),"permission-denied"}c.current=!1,s(""),n(""),m.current="",v.current="",i.current=!0,o("recording"),p(D);const I=new E;S.current=I,I.interimResults=!0,I.continuous=!0,I.lang=navigator.language||"en-US",I.onresult=w=>{if(S.current!==I)return;let $="",P="";for(let F=w.resultIndex;F<w.results.length;F++){const U=w.results[F],K=U?.[0]?.transcript??"";U?.isFinal?P=P+K:$=$+K}P&&(v.current=v.current+P,s(v.current)),m.current=$,n($)},I.onerror=w=>{S.current===I&&w.error!=="no-speech"&&(i.current=!1,S.current=null,T(),o(w.error==="not-allowed"?"permission-denied":"idle"))},I.onend=()=>{if(S.current===I&&i.current)try{I.start()}catch{}};try{I.start()}catch{return i.current=!1,S.current=null,T(),o("idle"),"idle"}return"recording"},t[2]=e,t[3]=y):y=t[3];const R=y;let d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{i.current=!1,S.current?.stop(),T(),o("idle"),x(Array(B).fill(.05)),n("");const E=(v.current+(m.current?" "+m.current:"")).trim();return s(""),v.current="",m.current="",E},t[4]=d):d=t[4];const C=d;let _;t[5]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{i.current=!1,S.current?.abort(),T(),o("idle"),s(""),n(""),x(Array(B).fill(.05)),v.current="",m.current=""},t[5]=_):_=t[5];const z=_;let A;return t[6]!==a||t[7]!==R||t[8]!==e||t[9]!==b||t[10]!==u?(A={status:e,transcript:b,interimTranscript:a,waveformData:u,isSupported:k,startRecording:R,stopRecording:C,cancelRecording:z},t[6]=a,t[7]=R,t[8]=e,t[9]=b,t[10]=u,t[11]=A):A=t[11],A}function He(t){return t.stop()}function Qe(){}function Ge(){return Array(B).fill(.05)}export{ht as T,pt as a,Pe as s,mt as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./infiniteQueryObserver-CHN_AvWa.js";import{e3 as i}from"./index-BuZqAz74.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ed as Q,ee as y,ef as S,eg as w,e4 as C,q as k,eh as q,ei as x,r as p,ej as M,ek as H,el as L,em as P,en as O,eo as B,ep as A}from"./index-BuZqAz74.js";function R(r,e){const s=new Set(e);return r.filter(t=>!s.has(t))}function T(r,e,s){const t=r.slice(0);return t[e]=s,t}var j=class extends Q{#i;#e;#n;#r;#s;#t;#o;#u;#h;#a=[];constructor(r,e,s){super(),this.#i=r,this.#r=s,this.#n=[],this.#s=[],this.#e=[],this.setQueries(e)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(r=>{r.subscribe(e=>{this.#d(r,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(r=>{r.destroy()})}setQueries(r,e){this.#n=r,this.#r=e,y.batch(()=>{const s=this.#s,t=this.#f(this.#n);t.forEach(o=>o.observer.setOptions(o.defaultedQueryOptions));const i=t.map(o=>o.observer),n=i.map(o=>o.getCurrentResult()),u=s.length!==i.length,c=i.some((o,d)=>o!==s[d]),f=u||c,b=f?!0:n.some((o,d)=>{const g=this.#e[d];return!g||!S(o,g)});!f&&!b||(f&&(this.#a=t,this.#s=i),this.#e=n,this.hasListeners()&&(f&&(R(s,i).forEach(o=>{o.destroy()}),R(i,s).forEach(o=>{o.subscribe(d=>{this.#d(o,d)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(r=>r.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(r,e){const s=this.#f(r),t=s.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=s.map(n=>n.defaultedQueryOptions.queryHash);return[t,n=>this.#l(n??t,e,i),()=>this.#c(t,s)]}#c(r,e){return e.map((s,t)=>{const i=r[t];return s.defaultedQueryOptions.notifyOnChangeProps?i:s.observer.trackResult(i,n=>{e.forEach(u=>{u.observer.trackProp(n)})})})}#l(r,e,s){if(e){const t=this.#h,i=s!==void 0&&t!==void 0&&(t.length!==s.length||s.some((n,u)=>n!==t[u]));return(!this.#t||this.#e!==this.#u||i||e!==this.#o)&&(this.#o=e,this.#u=this.#e,s!==void 0&&(this.#h=s),this.#t=w(this.#t,e(r))),this.#t}return r}#b(){return this.#r?.combine!==void 0&&this.#s.some((r,e)=>r.options.suspense&&this.#e[e]?.data===void 0)}#f(r){const e=new Map;this.#s.forEach(t=>{const i=t.options.queryHash;if(!i)return;const n=e.get(i);n?n.push(t):e.set(i,[t])});const s=[];return r.forEach(t=>{const i=this.#i.defaultQueryOptions(t),u=e.get(i.queryHash)?.shift()??new C(this.#i,i);s.push({defaultedQueryOptions:i,observer:u})}),s}#d(r,e){const s=this.#s.indexOf(r);s!==-1&&(this.#e=T(this.#e,s,e),this.#p())}#p(){if(this.hasListeners()){const r=this.#c(this.#e,this.#a),e=this.#b(),s=this.#t,t=e?s:this.#l(r,this.#r?.combine);(e||s!==t)&&y.batch(()=>{this.listeners.forEach(i=>{i(this.#e)})})}}};function I({queries:r,...e},s){const t=k(s),i=q(),n=x(),u=p.useMemo(()=>r.map(h=>{const a=t.defaultQueryOptions(h);return a._optimisticResults=i?"isRestoring":"optimistic",a}),[r,t,i]);u.forEach(h=>{M(h);const a=t.getQueryCache().get(h.queryHash);H(h,n,a)}),L(n);const[c]=p.useState(()=>new j(t,u,e)),[f,b,o]=c.getOptimisticResult(u,e.combine),d=!i&&e.subscribed!==!1;p.useSyncExternalStore(p.useCallback(h=>d?c.subscribe(y.batchCalls(h)):P,[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setQueries(u,e)},[u,e,c]);const m=f.some((h,a)=>O(u[a],h))?f.flatMap((h,a)=>{const l=u[a];if(l&&O(l,h)){const E=new C(t,l);return B(l,E,n)}return[]}):[];if(m.length>0)throw Promise.all(m);const v=f.find((h,a)=>{const l=u[a];return l&&A({result:h,errorResetBoundary:n,throwOnError:l.throwOnError,query:t.getQueryCache().get(l.queryHash),suspense:l.suspense})});if(v?.error)throw v.error;return b(o())}export{I as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./infiniteQueryObserver-CHN_AvWa.js";import{e3 as u,eb as n}from"./index-BuZqAz74.js";function a(e,r){return u({...e,enabled:!0,suspense:!0,throwOnError:n},s,r)}export{a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as V,b as q,r as z,a as O,i as Y,e as $,j as t,n as L,K as J,t as Q,o as W,B as G,p as H}from"./index-
|
|
1
|
+
import{c as V,b as q,r as z,a as O,i as Y,e as $,j as t,n as L,K as J,t as Q,o as W,B as G,p as H}from"./index-BuZqAz74.js";import{C as X}from"./collection-table-wrapper-DVjGjn7R.js";import{E as D}from"./empty-state-BK8GboWz.js";import{S as Z}from"./search-input-C4sd-kKh.js";import{B as I}from"./badge-BvHOfdxU.js";import{u as ee}from"./use-debounced-value-CPl0Wyl6.js";import{a as K}from"./admin-fetch-BhTJlAsX.js";import"./table-DQIAY6r-.js";import"./ArrowUp-DJZ55cl-.js";import"./SearchMd-BwYuN52e.js";function pe(){const e=V.c(58),s=q(),[r,M]=z.useState("");let N;e[0]!==r?(N=r.trim(),e[0]=r,e[1]=N):N=e[1];const i=ee(N,300),{data:R}=O.useSession(),k=R?.user?.id;let n;e[2]!==i?(n=J.deploymentAdminUsers(i),e[2]=i,e[3]=n):n=e[3];let l;e[4]!==i?(l=()=>{const a=new URLSearchParams({limit:"100"});return i&&a.set("searchValue",i),K(`/api/_admin/users?${a}`)},e[4]=i,e[5]=l):l=e[5];let C;e[6]!==n||e[7]!==l?(C={queryKey:n,queryFn:l},e[6]=n,e[7]=l,e[8]=C):C=e[8];const{data:P,isLoading:_,isError:A}=Y(C);let w;e[9]===Symbol.for("react.memo_cache_sentinel")?(w=te,e[9]=w):w=e[9];let y;e[10]!==s?(y={mutationFn:ae,onSuccess:w,onError:a=>{Q.error(a instanceof Error?a.message:s("admin.users.failedToImpersonate"))}},e[10]=s,e[11]=y):y=e[11];const E=$(y);let b;e[12]!==P?.users?(b=P?.users??[],e[12]=P?.users,e[13]=b):b=e[13];const B=b;let o;e[14]!==s?(o=s("admin.users.columnUser"),e[14]=s,e[15]=o):o=e[15];let m;e[16]!==s?(m=a=>t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(W,{url:a.image??void 0,fallback:a.name??"?",shape:"circle",size:"sm"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:a.name||s("admin.users.unknown")}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:a.email})]})]}),e[16]=s,e[17]=m):m=e[17];let d;e[18]!==o||e[19]!==m?(d={id:"user",header:o,render:m,cellClassName:"flex-1 min-w-0"},e[18]=o,e[19]=m,e[20]=d):d=e[20];let c;e[21]!==s?(c=s("admin.users.columnEmail"),e[21]=s,e[22]=c):c=e[22];let u;e[23]!==s?(u=a=>a.emailVerified?t.jsx(I,{variant:"outline",className:"text-success border-success/20",children:s("admin.users.verified")}):t.jsx(I,{variant:"outline",className:"text-muted-foreground",children:s("admin.users.unverified")}),e[23]=s,e[24]=u):u=e[24];let f;e[25]!==c||e[26]!==u?(f={id:"verified",header:c,render:u,cellClassName:"w-28 shrink-0"},e[25]=c,e[26]=u,e[27]=f):f=e[27];let p;e[28]!==s?(p=s("admin.users.columnCreated"),e[28]=s,e[29]=p):p=e[29];let h;e[30]!==p?(h={id:"created",header:p,render:se,cellClassName:"w-48 shrink-0"},e[30]=p,e[31]=h):h=e[31];let x;e[32]!==k||e[33]!==E||e[34]!==s?(x={id:"actions",header:"",render:a=>t.jsx(G,{variant:"outline",size:"sm",disabled:a.id===k||E.isPending,onClick:()=>E.mutate(a.id),children:s("admin.users.impersonate")}),cellClassName:"w-32 shrink-0"},e[32]=k,e[33]=E,e[34]=s,e[35]=x):x=e[35];let T;e[36]!==f||e[37]!==h||e[38]!==x||e[39]!==d?(T=[d,f,h,x],e[36]=f,e[37]=h,e[38]=x,e[39]=d,e[40]=T):T=e[40];const F=T;let j;e[41]!==s?(j=s("admin.users.searchPlaceholder"),e[41]=s,e[42]=j):j=e[42];let g;e[43]!==r||e[44]!==j?(g=t.jsx(Z,{value:r,onChange:M,placeholder:j,className:"w-full md:w-[375px]"}),e[43]=r,e[44]=j,e[45]=g):g=e[45];let S;e[46]!==i||e[47]!==A||e[48]!==s?(S=A?t.jsx(D,{title:s("admin.users.failedToLoadTitle"),description:s("admin.users.failedToLoadDescription")}):t.jsx(D,{title:s("admin.users.noUsersFoundTitle"),description:i?s("admin.users.noUsersMatchSearch",{search:i}):s("admin.users.noUsersYet")}),e[46]=i,e[47]=A,e[48]=s,e[49]=S):S=e[49];let v;e[50]!==F||e[51]!==_||e[52]!==S||e[53]!==B?(v=t.jsx(X,{columns:F,data:B,isLoading:_,emptyState:S}),e[50]=F,e[51]=_,e[52]=S,e[53]=B,e[54]=v):v=e[54];let U;return e[55]!==g||e[56]!==v?(U=t.jsx(L,{children:t.jsx(L.Content,{children:t.jsx(L.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[g,v]})})})}),e[55]=g,e[56]=v,e[57]=U):U=e[57],U}function se(e){return t.jsx("span",{className:"text-sm text-foreground",children:H(e.createdAt)})}function te(){window.location.href="/"}function ae(e){return K("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{pe as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{as as W,at as E}from"./agent-icon-
|
|
1
|
+
import{as as W,at as E}from"./agent-icon-DwJHakBB.js";import{i as w}from"./File02-Cs751Kds.js";import{a as j}from"./Image01-CJL4B_rR.js";function I(e){if(!e||e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;try{const t=decodeURIComponent(e);return!!(t.includes("\\")||t.includes("..")||t.includes("\0"))}catch{return!0}}function L(e){if(I(e))throw new Error(`Invalid block key: ${e||"(empty)"}`)}function C(e){try{return decodeURIComponent(e)}catch{return e}}function P(e){return L(e),encodeURIComponent(e)}function v(e){return`.deco/blocks/${P(e)}.json`}const z=1e4,F=3;function y(e){return e.trim()?(e.startsWith("/")?e:`/${e}`).replace(/\/+/g,"/"):"/"}function x(e){return e.startsWith("/")?e.slice(1):e}function D(e){const t=x(e);return!t||t.includes("..")||t.includes("\\")?!1:t.startsWith(".deco/blocks/")||!t.startsWith("/")&&!t.includes("://")}function h(e){return e.trim()?e.startsWith("/")?e:`/${e}`:"/"}function $(e){const t=h(e);if(t==="/")return"/";const n=t.split("/").filter(Boolean);return n.pop(),n.length===0?"/":`/${n.join("/")}`}function _(e,t){const n=t.replace(/^\/+|\/+$/g,"");return h(n?`${e==="/"?"":e}/${n}`:e)}function M(e,t){return t==="directory"?e:$(e)}function S(e){const t=e.trim();return t?t.includes("/")||t.includes("\\")||t.includes("..")||t.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function B(e){const t=x(e);return t?t.split("/").filter(Boolean).length:0}function H(e,t,n,r=!1){return{files:[...new Set([...e,...n.files])],directories:[...new Set([...t,...n.directories??[]])],truncated:r||!!n.truncated}}function q(e,t){return B(e)>=F&&!t.has(e)}function U(e,t,n=[]){const r=x(e);if(t.includes(r)||n.includes(r))return!0;if(!r)return!1;const s=`${r}/`;return t.some(o=>o.startsWith(s))||n.some(o=>o.startsWith(s))}function A(e){const t=x(e),n=".deco/blocks/";if(!t.startsWith(n)||!t.endsWith(".json"))return null;const r=t.slice(n.length,-5);return C(r)}function X(e){if(!e)return"plaintext";const t=e.toLowerCase();return t.endsWith(".tsx")||t.endsWith(".ts")?"typescript":t.endsWith(".jsx")||t.endsWith(".js")||t.endsWith(".mjs")||t.endsWith(".cjs")?"javascript":t.endsWith(".json")?"json":t.endsWith(".md")||t.endsWith(".mdx")?"markdown":t.endsWith(".css")?"css":t.endsWith(".scss")?"scss":t.endsWith(".html")?"html":t.endsWith(".yaml")||t.endsWith(".yml")?"yaml":t.endsWith(".xml")||t.endsWith(".svg")?"xml":t.endsWith(".py")?"python":t.endsWith(".sql")?"sql":t.endsWith(".sh")?"shell":"plaintext"}const T="#94a3b8";function K(e){const t=e.toLowerCase();return t.endsWith(".tsx")||t.endsWith(".ts")?{Icon:W,color:"#3b82f6"}:t.endsWith(".jsx")||t.endsWith(".js")||t.endsWith(".mjs")||t.endsWith(".cjs")?{Icon:W,color:"#d9a441"}:t.endsWith(".json")?{Icon:E,color:"#cb9b3f"}:t.endsWith(".css")||t.endsWith(".scss")?{Icon:W,color:"#06b6d4"}:t.endsWith(".html")||t.endsWith(".xml")?{Icon:W,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(t)?{Icon:j,color:"#a855f7"}:t.endsWith(".md")||t.endsWith(".mdx")?{Icon:w,color:"#64748b"}:{Icon:w,color:T}}function V(e){const t=y(e).split("/").filter(Boolean),n=["/"];let r="";for(const s of t.slice(0,-1))r+=`/${s}`,n.push(r);return n}function J(e,t=[]){const n={path:"/",children:[]},r=new Map,s=a=>{let i=r.get(a.path);return i||(i=new Map,r.set(a.path,i)),i},o=a=>{const c=y(a).split("/").filter(Boolean);let l=n,m="";for(const f of c){m+=`/${f}`;const g=s(l);let d=g.get(f);d?d.kind==="file"&&(d.kind="directory"):(d={name:f,path:m,kind:"directory",children:[]},l.children.push(d),g.set(f,d)),l=d}};for(const a of e){const c=y(a).split("/").filter(Boolean);let l=n,m="";c.forEach((f,g)=>{m+=`/${f}`;const d=g===c.length-1,k=s(l);let p=k.get(f);p||(p={name:f,path:m,kind:d?"file":"directory",children:[]},l.children.push(p),k.set(f,p)),l=p})}for(const a of t)o(h(a));const u=a=>{a.sort((i,c)=>i.kind!==c.kind?i.kind==="directory"?-1:1:i.name.localeCompare(c.name));for(const i of a)i.children.length>0&&u(i.children)};return u(n.children),n.children}function N(e,t,n=0){const r=[];for(const s of e)if(s.name!==".gitkeep"&&(r.push({node:s,depth:n}),s.kind==="directory"&&s.children.length>0&&t.has(s.path)))for(const o of N(s.children,t,n+1))r.push(o);return r}function Q(e){const t=[];for(const n of e.split(`
|
|
2
2
|
`)){if(!n)continue;const r=n.indexOf(":");if(r<0)continue;const s=n.indexOf(":",r+1);if(s<0)continue;const o=Number.parseInt(n.slice(r+1,s),10);Number.isFinite(o)&&t.push({path:h(n.slice(0,r)),line:o,text:n.slice(s+1)})}return t}function Y(e,t,n){const r=t.trim().toLowerCase();if(!r)return[];const s=[];for(const o of e)if((o.split("/").pop()??o).toLowerCase().includes(r)&&(s.push(h(o)),s.length>=n))break;return s}const b=24;function Z(e,t){const n=e.replace(/^\s+/,""),r=t.trim().toLowerCase();if(!r)return{leadingEllipsis:!1,segments:[{text:n,match:!1}]};const s=n.toLowerCase().indexOf(r);if(s<0)return{leadingEllipsis:!1,segments:[{text:n,match:!1}]};const o=s>b,u=o?n.slice(s-b):n,a=u.toLowerCase(),i=[];let c=0;for(;;){const l=a.indexOf(r,c);if(l<0){c<u.length&&i.push({text:u.slice(c),match:!1});break}l>c&&i.push({text:u.slice(c,l),match:!1}),i.push({text:u.slice(l,l+r.length),match:!0}),c=l+r.length}return{leadingEllipsis:o,segments:i}}function tt(e){const t=[],n=new Map;for(const r of e){let s=n.get(r.path);s||(s={path:r.path,matches:[]},n.set(r.path,s),t.push(s)),s.matches.push(r)}return t}function et(e){return e.split(`
|
|
3
3
|
`).map(t=>t.replace(/^\d+\t/,"")).join(`
|
|
4
4
|
`)}export{F as E,C as a,L as b,z as c,v as d,J as e,N as f,X as g,tt as h,D as i,M as j,h as k,K as l,$ as m,V as n,Z as o,q as p,_ as q,U as r,et as s,x as t,Y as u,S as v,Q as w,A as x,H as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as K,b as X,r as Z,j as r,m as ne,B as ee,as as ue}from"./index-BMPeWdJw.js";import{j as xe}from"./agent-icon-BJ2Wx2fE.js";import{b as ge,n as le}from"./UserCheck01-D14kK5BQ.js";import{L as be}from"./label-CRK3U7ZP.js";import{S as ce}from"./scroll-area-DAamBeOm.js";import{S as ve}from"./switch-pc6As7Lj.js";import{T as ye,c as je,a as Te}from"./tooltip-BBk4QO9B.js";import{a as se,T as Ne}from"./toggle-group-B5Qv0TZp.js";import{M as de,b as me,c as _e,s as ke,p as Ee,a as U,W as Se}from"./date-utils-CrvIKg-s.js";import"./AlertCircle-rt5NTcOt.js";import"./Tool01-CRE8Zr1E.js";import"./ArrowUp-BX9rle-Z.js";import"./ArrowLeft-BtflI84P.js";import"./ArrowRight-DckDNEPN.js";import"./BookOpen01-Cdt9znE-.js";import"./Globe04-BGaPJwRM.js";import"./CheckCircle-DQ8gl2jA.js";import"./TrendUp01-CkF2n8Hn.js";import"./ChevronDown-88QbtNjw.js";import"./ChevronSelectorVertical-BfhN49CO.js";import"./ChevronUp-BwBBvXr-.js";import"./UserSquare-DAFK733H.js";import"./LinkBroken01-DWWxoD2s.js";import"./CreditCard01-CHpJYShR.js";import"./File02-CpMe0sR1.js";import"./MessageCircle01-pdZ3c0Ei.js";import"./SwitchHorizontal01-BCndh-XX.js";import"./Eye-C8bzWtOv.js";import"./Image01-CyjafdfK.js";import"./Key01-NBdT0O9W.js";import"./LayoutLeft-BI23EoSs.js";import"./Minus-ToHFKPwl.js";import"./Monitor01-DQ2oaJ_f.js";import"./Sun-CGayzxv4.js";import"./Play-Dgyu5PiH.js";import"./Plus-NIlBePVH.js";import"./SearchMd-BZFf7uAm.js";import"./ShoppingBag01-CA3tpOzv.js";import"./Trash01-C1sTtIQd.js";import"./Upload01-DF54M6Ph.js";import"./Users01-8BTVWXNl.js";import"./XClose-igHVZF4W.js";import"./Zap-CZUa6DWb.js";import"./index-BdQq_4o_.js";import"./index-BDs-2B47.js";import"./active-indicator-CCMhAsc_.js";const we=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),Ce=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Me=new Date(-864e13),Ae=new Date(864e13),$e=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,Le=/\/flags\/multivariate\.ts$/;function Re(t){let e=t;e.startsWith("pages-")&&(e=e.slice(6).replace(/-\d+$/,""));try{e=decodeURIComponent(e)}catch{}return e}function De(t){if(!t||typeof t!="object")return null;const{start:e,end:n}=t,s=typeof e=="string",o=typeof n=="string";if(!s&&!o)return null;const a=s?new Date(e):Me,i=o?new Date(n):Ae;return Number.isNaN(a.getTime())||Number.isNaN(i.getTime())||s&&o&&i.getTime()<=a.getTime()?null:{start:a,end:i,openStart:!s,openEnd:!o}}function fe(t,e){if(!t||typeof t!="object")return;const n=t.__resolveType;if(typeof n=="string"){if(we.has(n)){const s=De(t);s&&e.push(s);return}if(Ce.has(n)){const s=t.matchers;if(Array.isArray(s))for(const o of s)fe(o,e)}}}function Oe(t){if(!t||typeof t!="object")return!1;const e=t.__resolveType;if(typeof e!="string"||!$e.test(e))return!1;const n=t.variants;return Array.isArray(n)}function Pe(t){if(typeof t=="string"){const c=t.trim();if(c.length===0)return null;try{const d=new URL(c).pathname.split("/").filter(Boolean),m=d[d.length-1];if(m)return decodeURIComponent(m)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}if(!t||typeof t!="object")return null;const e=t,n=e.config,o=e.desktop?.media,a=[e.title,e.name,e.label,e.alt,n?.title,n?.name,n?.typeAlert?.message,o?.alt,Array.isArray(e.matcher)?e.matcher[0]:void 0];for(const c of a)if(typeof c=="string"&&c.trim().length>0)return c.trim();const i=e.__resolveType;if(typeof i=="string"){const l=(i.split("/").pop()??i).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Ie(t){const e=[];for(let n=0;n<t.length;n++){const s=t[n];typeof s=="number"?e.length>0?e[e.length-1]+=`[${s}]`:e.push(`[${s}]`):e.push(s)}return e.join(" · ")}function Q(t,e,n,s,o){if(Oe(t)){const a=t.variants,i=t.__resolveType,c=Le.test(i)?"":Ie(s);a.forEach((l,d)=>{if(!l||typeof l!="object")return;const m=l,u=[];if(fe(m.rule,u),u.length===0)return;const g=Pe(m.value)??(c||n);for(const h of u)o.push({blockKey:e,blockLabel:n,innerPath:c,variantIndex:d,start:h.start,end:h.end,openStart:h.openStart,openEnd:h.openEnd,label:g,flagResolveType:i})});for(let l=0;l<a.length;l++){const d=a[l];d&&typeof d=="object"&&Q(d.value,e,n,[...s,"variants",l,"value"],o)}return}if(Array.isArray(t)){for(let a=0;a<t.length;a++)Q(t[a],e,n,[...s,a],o);return}if(t&&typeof t=="object")for(const[a,i]of Object.entries(t))a!=="__resolveType"&&Q(i,e,n,[...s,a],o)}function Ve(t){if(!t)return[];const e=[];for(const[n,s]of Object.entries(t))Q(s,n,Re(n),[],e);return e.sort((n,s)=>n.start.getTime()-s.start.getTime())}function He(t){const e=[...new Set(t)].sort(),n=new Map;return e.forEach((s,o)=>{const a=o*137.508%360;n.set(s,{bg:`oklch(0.62 0.14 ${a})`,text:"white",border:`oklch(0.50 0.14 ${a})`})}),n}const Be={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function pe(t,e){return t.get(e)??Be}const re=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Fe(t,e){const n=t.openStart?e("sandbox.variantCalendar.always"):re.format(t.start),s=t.openEnd?e("sandbox.variantCalendar.ongoing"):re.format(t.end);return`${n} → ${s}`}function We(t){const e=K.c(18),{variant:n}=t,s=X();let o;e[0]!==n.blockLabel?(o=r.jsx("div",{className:"font-semibold",children:n.blockLabel}),e[0]=n.blockLabel,e[1]=o):o=e[1];let a;e[2]!==n.innerPath?(a=n.innerPath&&r.jsx("div",{className:"text-muted-foreground",children:n.innerPath}),e[2]=n.innerPath,e[3]=a):a=e[3];let i;e[4]!==n.blockLabel||e[5]!==n.innerPath||e[6]!==n.label?(i=n.label!==n.blockLabel&&n.label!==n.innerPath&&r.jsx("div",{className:"text-muted-foreground",children:n.label}),e[4]=n.blockLabel,e[5]=n.innerPath,e[6]=n.label,e[7]=i):i=e[7];let c;e[8]!==s||e[9]!==n?(c=Fe(n,s),e[8]=s,e[9]=n,e[10]=c):c=e[10];let l;e[11]!==c?(l=r.jsx("div",{className:"mt-1",children:c}),e[11]=c,e[12]=l):l=e[12];let d;return e[13]!==o||e[14]!==a||e[15]!==i||e[16]!==l?(d=r.jsx(Te,{children:r.jsxs("div",{className:"text-xs",children:[o,a,i,l]})}),e[13]=o,e[14]=a,e[15]=i,e[16]=l,e[17]=d):d=e[17],d}const ae=16;function ze(t,e){const n=t?"transparent":"#000 0",s=e?"transparent":"#000 100%";if(!(!t&&!e))return`linear-gradient(to right, ${n}, #000 ${ae}px, #000 calc(100% - ${ae}px), ${s})`}function he(t){const e=K.c(26),{variant:n,color:s,style:o,children:a,fadeStart:i,fadeEnd:c}=t,l=i===void 0?!1:i,d=c===void 0?!1:c;let m;e[0]!==d||e[1]!==l?(m=ze(l,d),e[0]=d,e[1]=l,e[2]=m):m=e[2];const u=m;let p;e[3]!==l?(p=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},e[3]=l,e[4]=p):p=e[4];let g;e[5]!==d?(g=d&&{borderTopRightRadius:0,borderBottomRightRadius:0},e[5]=d,e[6]=g):g=e[6];let h;e[7]!==u?(h=u&&{maskImage:u,WebkitMaskImage:u},e[7]=u,e[8]=h):h=e[8];let x;e[9]!==s.bg||e[10]!==s.text||e[11]!==o||e[12]!==p||e[13]!==g||e[14]!==h?(x={background:s.bg,color:s.text,borderRadius:4,...p,...g,...h,...o},e[9]=s.bg,e[10]=s.text,e[11]=o,e[12]=p,e[13]=g,e[14]=h,e[15]=x):x=e[15];let b;e[16]!==a?(b=r.jsx("span",{className:"truncate",children:a}),e[16]=a,e[17]=b):b=e[17];let S;e[18]!==x||e[19]!==b?(S=r.jsx(ye,{asChild:!0,children:r.jsx("div",{className:"absolute flex items-center px-2 text-2xs font-medium truncate cursor-default",style:x,children:b})}),e[18]=x,e[19]=b,e[20]=S):S=e[20];let T;e[21]!==n?(T=r.jsx(We,{variant:n}),e[21]=n,e[22]=T):T=e[22];let f;return e[23]!==T||e[24]!==S?(f=r.jsxs(je,{children:[S,T]}),e[23]=T,e[24]=S,e[25]=f):f=e[25],f}function Qt(t){const e=K.c(71),{decofile:n}=t,s=X(),[o,a]=Z.useState("calendar"),[i,c]=Z.useState(Ye),[l,d]=Z.useState(!1);let m,u,p;if(e[0]!==n||e[1]!==l){const M=Ve(n);m=M.filter(Ke).length,p=l?M:M.filter(Ue),u=He(p.map(Ge)),e[0]=n,e[1]=l,e[2]=m,e[3]=u,e[4]=p}else m=e[2],u=e[3],p=e[4];const g=u;let h;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=()=>c(me(new Date)),e[5]=h):h=e[5];const x=h;let b;e[6]!==o?(b=()=>c(M=>o==="calendar"?U(M,-1):U(M,-3)),e[6]=o,e[7]=b):b=e[7];const S=b;let T;e[8]!==o?(T=()=>c(M=>o==="calendar"?U(M,1):U(M,3)),e[8]=o,e[9]=T):T=e[9];const f=T;let v;e[10]!==s?(v=s("sandbox.variantCalendar.today"),e[10]=s,e[11]=v):v=e[11];let y;e[12]!==v?(y=r.jsx(ee,{variant:"outline",size:"sm",onClick:x,children:v}),e[12]=v,e[13]=y):y=e[13];let N;e[14]!==s?(N=s("sandbox.variantCalendar.previous"),e[14]=s,e[15]=N):N=e[15];let $;e[16]===Symbol.for("react.memo_cache_sentinel")?($=r.jsx(ge,{size:16}),e[16]=$):$=e[16];let _;e[17]!==S||e[18]!==N?(_=r.jsx(ee,{variant:"ghost",size:"icon",onClick:S,"aria-label":N,children:$}),e[17]=S,e[18]=N,e[19]=_):_=e[19];let k;e[20]!==s?(k=s("sandbox.variantCalendar.next"),e[20]=s,e[21]=k):k=e[21];let C;e[22]===Symbol.for("react.memo_cache_sentinel")?(C=r.jsx(ue,{size:16}),e[22]=C):C=e[22];let L;e[23]!==f||e[24]!==k?(L=r.jsx(ee,{variant:"ghost",size:"icon",onClick:f,"aria-label":k,children:C}),e[23]=f,e[24]=k,e[25]=L):L=e[25];const R=de[i.getMonth()];let A;e[26]!==i?(A=i.getFullYear(),e[26]=i,e[27]=A):A=e[27];let E;e[28]!==R||e[29]!==A?(E=r.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[R," ",A]}),e[28]=R,e[29]=A,e[30]=E):E=e[30];let j;e[31]!==L||e[32]!==E||e[33]!==y||e[34]!==_?(j=r.jsxs("div",{className:"flex items-center gap-2",children:[y,_,L,E]}),e[31]=L,e[32]=E,e[33]=y,e[34]=_,e[35]=j):j=e[35];let D;e[36]!==m||e[37]!==l||e[38]!==s?(D=m>0&&r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(ve,{id:"show-ongoing",checked:l,onCheckedChange:d}),r.jsx(be,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:s("sandbox.variantCalendar.showOngoing",{count:m})})]}),e[36]=m,e[37]=l,e[38]=s,e[39]=D):D=e[39];let H;e[40]===Symbol.for("react.memo_cache_sentinel")?(H=M=>{(M==="calendar"||M==="timeline")&&a(M)},e[40]=H):H=e[40];let F;e[41]===Symbol.for("react.memo_cache_sentinel")?(F=r.jsx(le,{}),e[41]=F):F=e[41];let w;e[42]!==s?(w=s("sandbox.variantCalendar.calendarMode"),e[42]=s,e[43]=w):w=e[43];let I;e[44]!==w?(I=r.jsxs(se,{value:"calendar",children:[F,w]}),e[44]=w,e[45]=I):I=e[45];let B;e[46]===Symbol.for("react.memo_cache_sentinel")?(B=r.jsx(xe,{}),e[46]=B):B=e[46];let O;e[47]!==s?(O=s("sandbox.variantCalendar.timelineMode"),e[47]=s,e[48]=O):O=e[48];let P;e[49]!==O?(P=r.jsxs(se,{value:"timeline",children:[B,O]}),e[49]=O,e[50]=P):P=e[50];let V;e[51]!==I||e[52]!==P||e[53]!==o?(V=r.jsxs(Ne,{type:"single",variant:"segmented",size:"sm",value:o,onValueChange:H,children:[I,P]}),e[51]=I,e[52]=P,e[53]=o,e[54]=V):V=e[54];let W;e[55]!==D||e[56]!==V?(W=r.jsxs("div",{className:"flex items-center gap-4",children:[D,V]}),e[55]=D,e[56]=V,e[57]=W):W=e[57];let z;e[58]!==j||e[59]!==W?(z=r.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,W]}),e[58]=j,e[59]=W,e[60]=z):z=e[60];let G;e[61]!==g||e[62]!==i||e[63]!==m||e[64]!==l||e[65]!==p||e[66]!==o?(G=p.length===0?r.jsx(qe,{hiddenOngoing:l?0:m}):o==="calendar"?r.jsx(Qe,{monthStart:i,variants:p,colorMap:g}):r.jsx(tt,{monthStart:i,variants:p,colorMap:g}),e[61]=g,e[62]=i,e[63]=m,e[64]=l,e[65]=p,e[66]=o,e[67]=G):G=e[67];let q;return e[68]!==z||e[69]!==G?(q=r.jsxs("div",{className:"flex h-full w-full flex-col",children:[z,G]}),e[68]=z,e[69]=G,e[70]=q):q=e[70],q}function Ge(t){return t.blockKey}function Ue(t){return!t.openEnd}function Ke(t){return t.openEnd}function Ye(){return me(new Date)}function qe(t){const e=K.c(4),{hiddenOngoing:n}=t,s=n===void 0?0:n,o=X();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsx(le,{size:24,className:"text-muted-foreground/60"}),e[0]=a):a=e[0];let i;return e[1]!==s||e[2]!==o?(i=r.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[a,s>0?r.jsxs(r.Fragment,{children:[r.jsx("div",{children:o("sandbox.variantCalendar.noDatedVariants")}),r.jsx("div",{className:"text-xs text-muted-foreground/80",children:o("sandbox.variantCalendar.hiddenOngoingVariants",{count:s})})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{children:o("sandbox.variantCalendar.noScheduledVariants")}),r.jsx("div",{className:"text-xs text-muted-foreground/80",children:o("sandbox.variantCalendar.dateMatcherInfo")})]})]}),e[1]=s,e[2]=o,e[3]=i):i=e[3],i}const te=20,oe=2,ie=28,Je=6;function Qe(t){const e=K.c(17),{monthStart:n,variants:s,colorMap:o}=t;let a,i,c,l,d;if(e[0]!==o||e[1]!==n||e[2]!==s){const p=_e(n),g=ke(new Date);a=ce,d="flex-1 min-h-0",i="min-w-[840px]",e[8]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:Se.map(Ze)}),e[8]=c):c=e[8],l=p.map((h,x)=>{const b=Ee(h,s),S=b.reduce(Xe,0),T=ie+S*(te+oe)+8;return r.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[h.map((f,v)=>{const y=f.getMonth()===n.getMonth(),N=f.getTime()===g.getTime();return r.jsx("div",{className:ne("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:r.jsx("span",{className:ne("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:f.getDate()})},v)}),b.map((f,v)=>{const y=pe(o,f.variant.blockKey),N=ie+f.lane*(te+oe),$=f.leftUnits/7*100,_=f.widthUnits/7*100,k=f.variant.openStart&&x===0,C=f.variant.openEnd&&x===p.length-1;return r.jsxs(he,{variant:f.variant,color:y,fadeStart:k,fadeEnd:C,style:{top:N,left:`calc(${$}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:Je,height:te},children:[f.variant.blockLabel,f.variant.label!==f.variant.blockLabel&&r.jsxs("span",{className:"opacity-70",children:[" · ",f.variant.label]})]},`${x}-${v}`)})]},x)}),e[0]=o,e[1]=n,e[2]=s,e[3]=a,e[4]=i,e[5]=c,e[6]=l,e[7]=d}else a=e[3],i=e[4],c=e[5],l=e[6],d=e[7];let m;e[9]!==i||e[10]!==c||e[11]!==l?(m=r.jsxs("div",{className:i,children:[c,l]}),e[9]=i,e[10]=c,e[11]=l,e[12]=m):m=e[12];let u;return e[13]!==a||e[14]!==d||e[15]!==m?(u=r.jsx(a,{className:d,children:m}),e[13]=a,e[14]=d,e[15]=m,e[16]=u):u=e[16],u}function Xe(t,e){return Math.max(t,e.lane+1)}function Ze(t){return r.jsx("div",{className:"px-2 py-2 text-center",children:t},t)}const J=4,et=32,Y=240;function tt(t){const e=K.c(23),{monthStart:n,variants:s,colorMap:o}=t,a=n,i=U(n,J),c=new Date,l=new Map;for(const E of s){const j=l.get(E.blockKey)??[];j.push(E),l.set(E.blockKey,j)}const d=Array.from(l.entries()).sort(rt),m=i.getTime()-a.getTime(),u=E=>(Math.max(a.getTime(),Math.min(i.getTime(),E.getTime()))-a.getTime())/m*100;let p;e[0]!==a?(p=(E,j)=>U(a,j),e[0]=a,e[1]=p):p=e[1];const g=Array.from({length:J},p),h=c.getTime()>=a.getTime()&&c.getTime()<=i.getTime()?u(c):null,x=X(),b=ce,S="flex-1 min-h-0",T="min-w-[900px] relative";let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f={width:Y},e[2]=f):f=e[2];let v;e[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),e[3]=x,e[4]=v):v=e[4];let y;e[5]!==v?(y=r.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold text-muted-foreground border-r",style:f,children:v}),e[5]=v,e[6]=y):y=e[6];let N;e[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},e[7]=N):N=e[7];const $=g.map(st);let _;e[8]!==$?(_=r.jsx("div",{className:"flex-1 grid",style:N,children:$}),e[8]=$,e[9]=_):_=e[9];let k;e[10]!==y||e[11]!==_?(k=r.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),e[10]=y,e[11]=_,e[12]=k):k=e[12];let C;e[13]!==x||e[14]!==h?(C=h!==null&&r.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${Y}px + (100% - ${Y}px) * ${h} / 100)`},children:r.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-2xs font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),e[13]=x,e[14]=h,e[15]=C):C=e[15];const L=d.map(E=>{const[j,D]=E,H=pe(o,j),F=D[0]?.blockLabel??j;return r.jsxs("div",{children:[r.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold text-muted-foreground",style:{height:28},children:r.jsx("div",{className:"px-3 truncate",style:{width:Y},children:F})}),D.map((w,I)=>r.jsxs("div",{className:"flex border-b items-center",style:{height:et},children:[r.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[r.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:H.bg}}),r.jsx("span",{className:"truncate text-foreground/80",children:w.label})]}),r.jsxs("div",{className:"relative flex-1 h-full",children:[r.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},children:g.map(nt)}),(()=>{const B=Math.max(w.start.getTime(),a.getTime()),O=Math.min(w.end.getTime(),i.getTime());if(O<=B)return null;const P=u(new Date(B)),V=u(new Date(O))-P;return r.jsx(he,{variant:w,color:H,fadeStart:w.openStart,fadeEnd:w.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${V}% - 2px)`,height:22},children:w.label})})()]})]},I))]},j)});let R;e[16]!==k||e[17]!==C||e[18]!==L?(R=r.jsxs("div",{className:T,children:[k,C,L]}),e[16]=k,e[17]=C,e[18]=L,e[19]=R):R=e[19];let A;return e[20]!==b||e[21]!==R?(A=r.jsx(b,{className:S,children:R}),e[20]=b,e[21]=R,e[22]=A):A=e[22],A}function nt(t,e){return r.jsx("div",{className:"border-r last:border-r-0 border-border/40"},e)}function st(t,e){return r.jsxs("div",{className:"px-2 py-2 text-xs text-muted-foreground border-r last:border-r-0",children:[de[t.getMonth()]?.slice(0,3)," ",t.getFullYear()]},e)}function rt(t,e){return t[0].localeCompare(e[0])}export{Qt as VariantCalendar};
|
|
1
|
+
import{c as K,b as X,r as Z,j as r,m as ne,B as ee,au as ue}from"./index-BuZqAz74.js";import{j as xe}from"./agent-icon-DwJHakBB.js";import{b as ge,n as le}from"./UserCheck01-BMoOFYIZ.js";import{L as be}from"./label-Dm_T3WyF.js";import{S as ce}from"./scroll-area-bkCFS0v8.js";import{S as ve}from"./switch-COjzxQ39.js";import{T as ye,c as je,a as Te}from"./tooltip-DnGqcvtu.js";import{a as se,T as Ne}from"./toggle-group-DFyE84bx.js";import{M as de,b as me,c as _e,s as ke,p as Ee,a as U,W as Se}from"./date-utils-CrvIKg-s.js";import"./AlertCircle-CGZfuvxJ.js";import"./Tool01-BeDQSGiN.js";import"./ArrowUp-DJZ55cl-.js";import"./ArrowLeft-XURGfwpG.js";import"./ArrowRight-ZoKxZa45.js";import"./BookOpen01-gO5hgFUK.js";import"./Globe04-DO1uUwfE.js";import"./CheckCircle-CmN8U1V5.js";import"./TrendUp01-_SFSHjzO.js";import"./ChevronDown-ClblfTVV.js";import"./ChevronSelectorVertical-YxAp9GGa.js";import"./ChevronUp-0ZCAxpBW.js";import"./UserSquare-Dn1UPzSD.js";import"./LinkBroken01-cq4srxHs.js";import"./CreditCard01-CcTQ1h3_.js";import"./File02-Cs751Kds.js";import"./MessageCircle01-Bf6dD94_.js";import"./SwitchHorizontal01-BQF84Li3.js";import"./Eye-D5j_svLn.js";import"./Image01-CJL4B_rR.js";import"./Key01-fuHivqLl.js";import"./LayoutLeft-CCeum9wV.js";import"./Minus-Cc21R1KY.js";import"./Monitor01-DGdgEYxG.js";import"./Sun-D9ql5ZlI.js";import"./Play-zYFs_vGL.js";import"./Plus--DcN-eh1.js";import"./SearchMd-BwYuN52e.js";import"./ShoppingBag01-D-gmqcz7.js";import"./Trash01-BmQrADz0.js";import"./Upload01-DOfZqxci.js";import"./Users01-B_yoWxPn.js";import"./XClose-C4MsAn9v.js";import"./Zap-DoxB0q6B.js";import"./index-BdQq_4o_.js";import"./index-DNuvhcDO.js";import"./active-indicator-CCMhAsc_.js";const we=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),Ce=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Me=new Date(-864e13),Ae=new Date(864e13),$e=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,Le=/\/flags\/multivariate\.ts$/;function Re(t){let e=t;e.startsWith("pages-")&&(e=e.slice(6).replace(/-\d+$/,""));try{e=decodeURIComponent(e)}catch{}return e}function De(t){if(!t||typeof t!="object")return null;const{start:e,end:n}=t,s=typeof e=="string",o=typeof n=="string";if(!s&&!o)return null;const a=s?new Date(e):Me,i=o?new Date(n):Ae;return Number.isNaN(a.getTime())||Number.isNaN(i.getTime())||s&&o&&i.getTime()<=a.getTime()?null:{start:a,end:i,openStart:!s,openEnd:!o}}function fe(t,e){if(!t||typeof t!="object")return;const n=t.__resolveType;if(typeof n=="string"){if(we.has(n)){const s=De(t);s&&e.push(s);return}if(Ce.has(n)){const s=t.matchers;if(Array.isArray(s))for(const o of s)fe(o,e)}}}function Oe(t){if(!t||typeof t!="object")return!1;const e=t.__resolveType;if(typeof e!="string"||!$e.test(e))return!1;const n=t.variants;return Array.isArray(n)}function Pe(t){if(typeof t=="string"){const c=t.trim();if(c.length===0)return null;try{const d=new URL(c).pathname.split("/").filter(Boolean),m=d[d.length-1];if(m)return decodeURIComponent(m)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}if(!t||typeof t!="object")return null;const e=t,n=e.config,o=e.desktop?.media,a=[e.title,e.name,e.label,e.alt,n?.title,n?.name,n?.typeAlert?.message,o?.alt,Array.isArray(e.matcher)?e.matcher[0]:void 0];for(const c of a)if(typeof c=="string"&&c.trim().length>0)return c.trim();const i=e.__resolveType;if(typeof i=="string"){const l=(i.split("/").pop()??i).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Ie(t){const e=[];for(let n=0;n<t.length;n++){const s=t[n];typeof s=="number"?e.length>0?e[e.length-1]+=`[${s}]`:e.push(`[${s}]`):e.push(s)}return e.join(" · ")}function Q(t,e,n,s,o){if(Oe(t)){const a=t.variants,i=t.__resolveType,c=Le.test(i)?"":Ie(s);a.forEach((l,d)=>{if(!l||typeof l!="object")return;const m=l,u=[];if(fe(m.rule,u),u.length===0)return;const g=Pe(m.value)??(c||n);for(const h of u)o.push({blockKey:e,blockLabel:n,innerPath:c,variantIndex:d,start:h.start,end:h.end,openStart:h.openStart,openEnd:h.openEnd,label:g,flagResolveType:i})});for(let l=0;l<a.length;l++){const d=a[l];d&&typeof d=="object"&&Q(d.value,e,n,[...s,"variants",l,"value"],o)}return}if(Array.isArray(t)){for(let a=0;a<t.length;a++)Q(t[a],e,n,[...s,a],o);return}if(t&&typeof t=="object")for(const[a,i]of Object.entries(t))a!=="__resolveType"&&Q(i,e,n,[...s,a],o)}function Ve(t){if(!t)return[];const e=[];for(const[n,s]of Object.entries(t))Q(s,n,Re(n),[],e);return e.sort((n,s)=>n.start.getTime()-s.start.getTime())}function He(t){const e=[...new Set(t)].sort(),n=new Map;return e.forEach((s,o)=>{const a=o*137.508%360;n.set(s,{bg:`oklch(0.62 0.14 ${a})`,text:"white",border:`oklch(0.50 0.14 ${a})`})}),n}const Be={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function pe(t,e){return t.get(e)??Be}const re=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Fe(t,e){const n=t.openStart?e("sandbox.variantCalendar.always"):re.format(t.start),s=t.openEnd?e("sandbox.variantCalendar.ongoing"):re.format(t.end);return`${n} → ${s}`}function We(t){const e=K.c(18),{variant:n}=t,s=X();let o;e[0]!==n.blockLabel?(o=r.jsx("div",{className:"font-semibold",children:n.blockLabel}),e[0]=n.blockLabel,e[1]=o):o=e[1];let a;e[2]!==n.innerPath?(a=n.innerPath&&r.jsx("div",{className:"text-muted-foreground",children:n.innerPath}),e[2]=n.innerPath,e[3]=a):a=e[3];let i;e[4]!==n.blockLabel||e[5]!==n.innerPath||e[6]!==n.label?(i=n.label!==n.blockLabel&&n.label!==n.innerPath&&r.jsx("div",{className:"text-muted-foreground",children:n.label}),e[4]=n.blockLabel,e[5]=n.innerPath,e[6]=n.label,e[7]=i):i=e[7];let c;e[8]!==s||e[9]!==n?(c=Fe(n,s),e[8]=s,e[9]=n,e[10]=c):c=e[10];let l;e[11]!==c?(l=r.jsx("div",{className:"mt-1",children:c}),e[11]=c,e[12]=l):l=e[12];let d;return e[13]!==o||e[14]!==a||e[15]!==i||e[16]!==l?(d=r.jsx(Te,{children:r.jsxs("div",{className:"text-xs",children:[o,a,i,l]})}),e[13]=o,e[14]=a,e[15]=i,e[16]=l,e[17]=d):d=e[17],d}const ae=16;function ze(t,e){const n=t?"transparent":"#000 0",s=e?"transparent":"#000 100%";if(!(!t&&!e))return`linear-gradient(to right, ${n}, #000 ${ae}px, #000 calc(100% - ${ae}px), ${s})`}function he(t){const e=K.c(26),{variant:n,color:s,style:o,children:a,fadeStart:i,fadeEnd:c}=t,l=i===void 0?!1:i,d=c===void 0?!1:c;let m;e[0]!==d||e[1]!==l?(m=ze(l,d),e[0]=d,e[1]=l,e[2]=m):m=e[2];const u=m;let p;e[3]!==l?(p=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},e[3]=l,e[4]=p):p=e[4];let g;e[5]!==d?(g=d&&{borderTopRightRadius:0,borderBottomRightRadius:0},e[5]=d,e[6]=g):g=e[6];let h;e[7]!==u?(h=u&&{maskImage:u,WebkitMaskImage:u},e[7]=u,e[8]=h):h=e[8];let x;e[9]!==s.bg||e[10]!==s.text||e[11]!==o||e[12]!==p||e[13]!==g||e[14]!==h?(x={background:s.bg,color:s.text,borderRadius:4,...p,...g,...h,...o},e[9]=s.bg,e[10]=s.text,e[11]=o,e[12]=p,e[13]=g,e[14]=h,e[15]=x):x=e[15];let b;e[16]!==a?(b=r.jsx("span",{className:"truncate",children:a}),e[16]=a,e[17]=b):b=e[17];let S;e[18]!==x||e[19]!==b?(S=r.jsx(ye,{asChild:!0,children:r.jsx("div",{className:"absolute flex items-center px-2 text-2xs font-medium truncate cursor-default",style:x,children:b})}),e[18]=x,e[19]=b,e[20]=S):S=e[20];let T;e[21]!==n?(T=r.jsx(We,{variant:n}),e[21]=n,e[22]=T):T=e[22];let f;return e[23]!==T||e[24]!==S?(f=r.jsxs(je,{children:[S,T]}),e[23]=T,e[24]=S,e[25]=f):f=e[25],f}function Qt(t){const e=K.c(71),{decofile:n}=t,s=X(),[o,a]=Z.useState("calendar"),[i,c]=Z.useState(Ye),[l,d]=Z.useState(!1);let m,u,p;if(e[0]!==n||e[1]!==l){const M=Ve(n);m=M.filter(Ke).length,p=l?M:M.filter(Ue),u=He(p.map(Ge)),e[0]=n,e[1]=l,e[2]=m,e[3]=u,e[4]=p}else m=e[2],u=e[3],p=e[4];const g=u;let h;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=()=>c(me(new Date)),e[5]=h):h=e[5];const x=h;let b;e[6]!==o?(b=()=>c(M=>o==="calendar"?U(M,-1):U(M,-3)),e[6]=o,e[7]=b):b=e[7];const S=b;let T;e[8]!==o?(T=()=>c(M=>o==="calendar"?U(M,1):U(M,3)),e[8]=o,e[9]=T):T=e[9];const f=T;let v;e[10]!==s?(v=s("sandbox.variantCalendar.today"),e[10]=s,e[11]=v):v=e[11];let y;e[12]!==v?(y=r.jsx(ee,{variant:"outline",size:"sm",onClick:x,children:v}),e[12]=v,e[13]=y):y=e[13];let N;e[14]!==s?(N=s("sandbox.variantCalendar.previous"),e[14]=s,e[15]=N):N=e[15];let $;e[16]===Symbol.for("react.memo_cache_sentinel")?($=r.jsx(ge,{size:16}),e[16]=$):$=e[16];let _;e[17]!==S||e[18]!==N?(_=r.jsx(ee,{variant:"ghost",size:"icon",onClick:S,"aria-label":N,children:$}),e[17]=S,e[18]=N,e[19]=_):_=e[19];let k;e[20]!==s?(k=s("sandbox.variantCalendar.next"),e[20]=s,e[21]=k):k=e[21];let C;e[22]===Symbol.for("react.memo_cache_sentinel")?(C=r.jsx(ue,{size:16}),e[22]=C):C=e[22];let L;e[23]!==f||e[24]!==k?(L=r.jsx(ee,{variant:"ghost",size:"icon",onClick:f,"aria-label":k,children:C}),e[23]=f,e[24]=k,e[25]=L):L=e[25];const R=de[i.getMonth()];let A;e[26]!==i?(A=i.getFullYear(),e[26]=i,e[27]=A):A=e[27];let E;e[28]!==R||e[29]!==A?(E=r.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[R," ",A]}),e[28]=R,e[29]=A,e[30]=E):E=e[30];let j;e[31]!==L||e[32]!==E||e[33]!==y||e[34]!==_?(j=r.jsxs("div",{className:"flex items-center gap-2",children:[y,_,L,E]}),e[31]=L,e[32]=E,e[33]=y,e[34]=_,e[35]=j):j=e[35];let D;e[36]!==m||e[37]!==l||e[38]!==s?(D=m>0&&r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(ve,{id:"show-ongoing",checked:l,onCheckedChange:d}),r.jsx(be,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:s("sandbox.variantCalendar.showOngoing",{count:m})})]}),e[36]=m,e[37]=l,e[38]=s,e[39]=D):D=e[39];let H;e[40]===Symbol.for("react.memo_cache_sentinel")?(H=M=>{(M==="calendar"||M==="timeline")&&a(M)},e[40]=H):H=e[40];let F;e[41]===Symbol.for("react.memo_cache_sentinel")?(F=r.jsx(le,{}),e[41]=F):F=e[41];let w;e[42]!==s?(w=s("sandbox.variantCalendar.calendarMode"),e[42]=s,e[43]=w):w=e[43];let I;e[44]!==w?(I=r.jsxs(se,{value:"calendar",children:[F,w]}),e[44]=w,e[45]=I):I=e[45];let B;e[46]===Symbol.for("react.memo_cache_sentinel")?(B=r.jsx(xe,{}),e[46]=B):B=e[46];let O;e[47]!==s?(O=s("sandbox.variantCalendar.timelineMode"),e[47]=s,e[48]=O):O=e[48];let P;e[49]!==O?(P=r.jsxs(se,{value:"timeline",children:[B,O]}),e[49]=O,e[50]=P):P=e[50];let V;e[51]!==I||e[52]!==P||e[53]!==o?(V=r.jsxs(Ne,{type:"single",variant:"segmented",size:"sm",value:o,onValueChange:H,children:[I,P]}),e[51]=I,e[52]=P,e[53]=o,e[54]=V):V=e[54];let W;e[55]!==D||e[56]!==V?(W=r.jsxs("div",{className:"flex items-center gap-4",children:[D,V]}),e[55]=D,e[56]=V,e[57]=W):W=e[57];let z;e[58]!==j||e[59]!==W?(z=r.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,W]}),e[58]=j,e[59]=W,e[60]=z):z=e[60];let G;e[61]!==g||e[62]!==i||e[63]!==m||e[64]!==l||e[65]!==p||e[66]!==o?(G=p.length===0?r.jsx(qe,{hiddenOngoing:l?0:m}):o==="calendar"?r.jsx(Qe,{monthStart:i,variants:p,colorMap:g}):r.jsx(tt,{monthStart:i,variants:p,colorMap:g}),e[61]=g,e[62]=i,e[63]=m,e[64]=l,e[65]=p,e[66]=o,e[67]=G):G=e[67];let q;return e[68]!==z||e[69]!==G?(q=r.jsxs("div",{className:"flex h-full w-full flex-col",children:[z,G]}),e[68]=z,e[69]=G,e[70]=q):q=e[70],q}function Ge(t){return t.blockKey}function Ue(t){return!t.openEnd}function Ke(t){return t.openEnd}function Ye(){return me(new Date)}function qe(t){const e=K.c(4),{hiddenOngoing:n}=t,s=n===void 0?0:n,o=X();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsx(le,{size:24,className:"text-muted-foreground/60"}),e[0]=a):a=e[0];let i;return e[1]!==s||e[2]!==o?(i=r.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[a,s>0?r.jsxs(r.Fragment,{children:[r.jsx("div",{children:o("sandbox.variantCalendar.noDatedVariants")}),r.jsx("div",{className:"text-xs text-muted-foreground/80",children:o("sandbox.variantCalendar.hiddenOngoingVariants",{count:s})})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{children:o("sandbox.variantCalendar.noScheduledVariants")}),r.jsx("div",{className:"text-xs text-muted-foreground/80",children:o("sandbox.variantCalendar.dateMatcherInfo")})]})]}),e[1]=s,e[2]=o,e[3]=i):i=e[3],i}const te=20,oe=2,ie=28,Je=6;function Qe(t){const e=K.c(17),{monthStart:n,variants:s,colorMap:o}=t;let a,i,c,l,d;if(e[0]!==o||e[1]!==n||e[2]!==s){const p=_e(n),g=ke(new Date);a=ce,d="flex-1 min-h-0",i="min-w-[840px]",e[8]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:Se.map(Ze)}),e[8]=c):c=e[8],l=p.map((h,x)=>{const b=Ee(h,s),S=b.reduce(Xe,0),T=ie+S*(te+oe)+8;return r.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[h.map((f,v)=>{const y=f.getMonth()===n.getMonth(),N=f.getTime()===g.getTime();return r.jsx("div",{className:ne("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:r.jsx("span",{className:ne("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:f.getDate()})},v)}),b.map((f,v)=>{const y=pe(o,f.variant.blockKey),N=ie+f.lane*(te+oe),$=f.leftUnits/7*100,_=f.widthUnits/7*100,k=f.variant.openStart&&x===0,C=f.variant.openEnd&&x===p.length-1;return r.jsxs(he,{variant:f.variant,color:y,fadeStart:k,fadeEnd:C,style:{top:N,left:`calc(${$}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:Je,height:te},children:[f.variant.blockLabel,f.variant.label!==f.variant.blockLabel&&r.jsxs("span",{className:"opacity-70",children:[" · ",f.variant.label]})]},`${x}-${v}`)})]},x)}),e[0]=o,e[1]=n,e[2]=s,e[3]=a,e[4]=i,e[5]=c,e[6]=l,e[7]=d}else a=e[3],i=e[4],c=e[5],l=e[6],d=e[7];let m;e[9]!==i||e[10]!==c||e[11]!==l?(m=r.jsxs("div",{className:i,children:[c,l]}),e[9]=i,e[10]=c,e[11]=l,e[12]=m):m=e[12];let u;return e[13]!==a||e[14]!==d||e[15]!==m?(u=r.jsx(a,{className:d,children:m}),e[13]=a,e[14]=d,e[15]=m,e[16]=u):u=e[16],u}function Xe(t,e){return Math.max(t,e.lane+1)}function Ze(t){return r.jsx("div",{className:"px-2 py-2 text-center",children:t},t)}const J=4,et=32,Y=240;function tt(t){const e=K.c(23),{monthStart:n,variants:s,colorMap:o}=t,a=n,i=U(n,J),c=new Date,l=new Map;for(const E of s){const j=l.get(E.blockKey)??[];j.push(E),l.set(E.blockKey,j)}const d=Array.from(l.entries()).sort(rt),m=i.getTime()-a.getTime(),u=E=>(Math.max(a.getTime(),Math.min(i.getTime(),E.getTime()))-a.getTime())/m*100;let p;e[0]!==a?(p=(E,j)=>U(a,j),e[0]=a,e[1]=p):p=e[1];const g=Array.from({length:J},p),h=c.getTime()>=a.getTime()&&c.getTime()<=i.getTime()?u(c):null,x=X(),b=ce,S="flex-1 min-h-0",T="min-w-[900px] relative";let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f={width:Y},e[2]=f):f=e[2];let v;e[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),e[3]=x,e[4]=v):v=e[4];let y;e[5]!==v?(y=r.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold text-muted-foreground border-r",style:f,children:v}),e[5]=v,e[6]=y):y=e[6];let N;e[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},e[7]=N):N=e[7];const $=g.map(st);let _;e[8]!==$?(_=r.jsx("div",{className:"flex-1 grid",style:N,children:$}),e[8]=$,e[9]=_):_=e[9];let k;e[10]!==y||e[11]!==_?(k=r.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),e[10]=y,e[11]=_,e[12]=k):k=e[12];let C;e[13]!==x||e[14]!==h?(C=h!==null&&r.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${Y}px + (100% - ${Y}px) * ${h} / 100)`},children:r.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-2xs font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),e[13]=x,e[14]=h,e[15]=C):C=e[15];const L=d.map(E=>{const[j,D]=E,H=pe(o,j),F=D[0]?.blockLabel??j;return r.jsxs("div",{children:[r.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold text-muted-foreground",style:{height:28},children:r.jsx("div",{className:"px-3 truncate",style:{width:Y},children:F})}),D.map((w,I)=>r.jsxs("div",{className:"flex border-b items-center",style:{height:et},children:[r.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[r.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:H.bg}}),r.jsx("span",{className:"truncate text-foreground/80",children:w.label})]}),r.jsxs("div",{className:"relative flex-1 h-full",children:[r.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},children:g.map(nt)}),(()=>{const B=Math.max(w.start.getTime(),a.getTime()),O=Math.min(w.end.getTime(),i.getTime());if(O<=B)return null;const P=u(new Date(B)),V=u(new Date(O))-P;return r.jsx(he,{variant:w,color:H,fadeStart:w.openStart,fadeEnd:w.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${V}% - 2px)`,height:22},children:w.label})})()]})]},I))]},j)});let R;e[16]!==k||e[17]!==C||e[18]!==L?(R=r.jsxs("div",{className:T,children:[k,C,L]}),e[16]=k,e[17]=C,e[18]=L,e[19]=R):R=e[19];let A;return e[20]!==b||e[21]!==R?(A=r.jsx(b,{className:S,children:R}),e[20]=b,e[21]=R,e[22]=A):A=e[22],A}function nt(t,e){return r.jsx("div",{className:"border-r last:border-r-0 border-border/40"},e)}function st(t,e){return r.jsxs("div",{className:"px-2 py-2 text-xs text-muted-foreground border-r last:border-r-0",children:[de[t.getMonth()]?.slice(0,3)," ",t.getFullYear()]},e)}function rt(t,e){return t[0].localeCompare(e[0])}export{Qt as VariantCalendar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as $,m as f}from"./section-array-field-
|
|
1
|
+
import{o as $,m as f}from"./section-array-field-DOngDm8U.js";const v="x-deco-matchers-override";function h({pageKey:n,prefix:r,variants:t,selectedIndex:a,decofile:i,meta:s}){if(!n||a<0||a>=t.length)return[];const o=[];for(let e=0;e<=a;e++){const u=t[e];if(!u)continue;const c=u.rule,l=e===a?"1":"0",d=($(c,i,s)?f(c,i,s):null)??`${n}@${r}.${e}.rule`;o.push(`${d}=${l}`)}return o}function p(n,r,t,a){return!r.multivariate||r.variants.length<=1?[]:h({pageKey:n,prefix:"sections.variants",variants:r.variants,selectedIndex:r.index,decofile:t,meta:a})}function x({pageKey:n,page:r,sectionIndex:t,sectionLazy:a,mvObj:i,selectedVariantIndex:s,decofile:o,meta:e}){if(t<0)return[];const c=`${r.multivariate?`sections.variants.${r.index}.value${r.lazyValues?".value":""}`:"sections"}.${t}${a?".section":""}.variants`,l=Array.isArray(i.variants)?i.variants:[];return h({pageKey:n,prefix:c,variants:l,selectedIndex:s,decofile:o,meta:e})}function y(n,r){const t=`${r}@`;return n.map(a=>a.startsWith(t)?`props.${a.slice(t.length)}`:a)}function B(n,r){if(r.length===0)return n;try{const t=new URL(n,"http://local");t.searchParams.delete(v);for(const a of r)t.searchParams.append(v,a);return n.startsWith("http")?t.toString():`${t.pathname}${t.search}${t.hash}`}catch{return n}}export{x as a,p as b,y as i,B as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,j as a,B as p}from"./index-
|
|
1
|
+
import{c as x,j as a,B as p}from"./index-BuZqAz74.js";import{i as h}from"./ArrowLeft-XURGfwpG.js";const b="p-4";function k(m){const e=x.c(14),{intro:d,back:t,actions:n}=m;let r;e[0]!==n?(r=n?a.jsx("div",{className:"flex shrink-0 items-center gap-2","data-slot":"view-actions",children:n}):null,e[0]=n,e[1]=r):r=e[1];const s=r;if(t){let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(h,{size:16}),e[2]=o):o=e[2];let l;e[3]!==t.label||e[4]!==t.onClick?(l=a.jsxs(p,{variant:"ghost",size:"sm",onClick:t.onClick,children:[o,t.label]}),e[3]=t.label,e[4]=t.onClick,e[5]=l):l=e[5];let f;return e[6]!==s||e[7]!==l?(f=a.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between gap-2 border-b px-4","data-testid":"site-draft-view-header",children:[l,s]}),e[6]=s,e[7]=l,e[8]=f):f=e[8],f}let i;e[9]!==d?(i=a.jsx("p",{className:"min-w-0 flex-1 text-sm text-muted-foreground",children:d}),e[9]=d,e[10]=i):i=e[10];let c;return e[11]!==s||e[12]!==i?(c=a.jsxs("div",{className:"flex shrink-0 flex-wrap items-center justify-between gap-x-4 gap-y-2 px-4 pt-4","data-testid":"site-draft-view-header",children:[i,s]}),e[11]=s,e[12]=i,e[13]=c):c=e[13],c}export{b as S,k as a};
|