decocms 4.491.2 → 4.491.3
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/{ActiveShapeUtils-O3KzxQKu.js → ActiveShapeUtils-CO9ka_yi.js} +1 -1
- package/dist/client/assets/{AlertCircle-DxGlheNv.js → AlertCircle-C3fpFT5I.js} +1 -1
- package/dist/client/assets/{AreaChart-DAZPqqE4.js → AreaChart-BvjH9pmK.js} +1 -1
- package/dist/client/assets/{ArrowLeft-C5TDkvfy.js → ArrowLeft-C1IFj0Ic.js} +1 -1
- package/dist/client/assets/{ArrowUp-B_1yzk0u.js → ArrowUp-DR-Jhbl1.js} +1 -1
- package/dist/client/assets/{BarChart-BQ3lemjs.js → BarChart-CJ_IiQ71.js} +1 -1
- package/dist/client/assets/{Building02-aupVb9bk.js → Building02-uHT4KVtK.js} +1 -1
- package/dist/client/assets/{CategoricalChart-Cbg52QF6.js → CategoricalChart-zte0bRec.js} +1 -1
- package/dist/client/assets/{CheckCircle-Ck2nYEsD.js → CheckCircle-BKHstO_Q.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-vEYxYM2o.js → ChevronSelectorVertical-DAO6R1Op.js} +1 -1
- package/dist/client/assets/{ChevronUp-CiQJnmx3.js → ChevronUp-CceLPRrE.js} +1 -1
- package/dist/client/assets/{Copy01-CSQiL-8m.js → Copy01-Dx3ZT0bA.js} +1 -1
- package/dist/client/assets/{CreditCard01-Dbsq9vqA.js → CreditCard01-Dko0T335.js} +1 -1
- package/dist/client/assets/{DotsVertical-D5VxjRuG.js → DotsVertical-aHYBPlin.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-C93DPBOn.js → ErrorBarContext-B8QqSSmC.js} +1 -1
- package/dist/client/assets/{Globe04-BYAnRXKE.js → Globe04-BDe-0jS0.js} +1 -1
- package/dist/client/assets/{Image01-CRH49dh2.js → Image01-Cxa392ef.js} +1 -1
- package/dist/client/assets/{Key01-DlUQl2kb.js → Key01-BHiUNW_5.js} +1 -1
- package/dist/client/assets/{Link01-CZ9mTgFL.js → Link01-BRZRc4wX.js} +1 -1
- package/dist/client/assets/{LinkBroken01-aiXtOyEy.js → LinkBroken01-kK_na_OL.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BNOHDQ-X.js → LinkExternal01-CILXo-bC.js} +1 -1
- package/dist/client/assets/{Monitor01-Dibe2H0E.js → Monitor01-Cl4JLYVa.js} +1 -1
- package/dist/client/assets/{Play-JhD_8p9T.js → Play-CzTcIQz_.js} +1 -1
- package/dist/client/assets/{Plus-B-VohzJ4.js → Plus-nldAzVeQ.js} +1 -1
- package/dist/client/assets/{SearchMd-B4A8PIUy.js → SearchMd-BiZNveM1.js} +1 -1
- package/dist/client/assets/{Sector-07CUaZqh.js → Sector-DOgIwKt7.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-CZ0mlBHZ.js → ShoppingBag01-o0DdjJD9.js} +1 -1
- package/dist/client/assets/{Sun-aaILGBFQ.js → Sun-BYGxydmh.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CUO4Tr7k.js → SwitchHorizontal01-Bx3d-jDI.js} +1 -1
- package/dist/client/assets/{Tool01-B-ugA2BM.js → Tool01-Blw6F5iV.js} +1 -1
- package/dist/client/assets/{Trash01--ZO2TG0s.js → Trash01-DAoFHSpp.js} +1 -1
- package/dist/client/assets/{Upload01-CNXMP8gQ.js → Upload01-CtKBhqsv.js} +1 -1
- package/dist/client/assets/{User01-DqG0FbTZ.js → User01-Awky2MVQ.js} +1 -1
- package/dist/client/assets/{UserSquare-Dbdn52Lc.js → UserSquare-BMOlWqCu.js} +1 -1
- package/dist/client/assets/{Users01-Co0Q_ns9.js → Users01-D7ZFKC4W.js} +1 -1
- package/dist/client/assets/{X-CGpWJ0hX.js → X-DzPShgV5.js} +1 -1
- package/dist/client/assets/{XAxis-CjFRctRT.js → XAxis-BLZT-vtl.js} +1 -1
- package/dist/client/assets/{XClose-BHLC9coi.js → XClose-DBJ7sD1T.js} +1 -1
- package/dist/client/assets/{ZoomOut-DtT7NZBX.js → ZoomOut-CQckFmS9.js} +1 -1
- package/dist/client/assets/{access-gate-ChYKF6hW.js → access-gate-DEyXiK2N.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-Bs6jGGvh.js → add-connection-dialog-Eph5CbUo.js} +1 -1
- package/dist/client/assets/{agent-analytics-BnLptKbu.js → agent-analytics-DSdixv-f.js} +1 -1
- package/dist/client/assets/agent-app-CT6U3s2r.js +1 -0
- package/dist/client/assets/{agent-assets-CRarjbts.js → agent-assets-G93-pOM9.js} +1 -1
- package/dist/client/assets/{agent-automation-33aqaKe4.js → agent-automation-DP6Bv0AB.js} +1 -1
- package/dist/client/assets/{agent-automations-CQKB-t_S.js → agent-automations-YDqRnDcc.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-COzXkalQ.js → agent-connect-sources-CSrFX52j.js} +1 -1
- package/dist/client/assets/agent-deck-D9Bphszm.js +1 -0
- package/dist/client/assets/{agent-e2e-Chyzilo0.js → agent-e2e-k9wCqssu.js} +1 -1
- package/dist/client/assets/{agent-experiments-DHKzrPTl.js → agent-experiments-CPSBbmYr.js} +1 -1
- package/dist/client/assets/{agent-file-rvuSnAm8.js → agent-file-BAkSJWMw.js} +1 -1
- package/dist/client/assets/{agent-hosting-D8LVdRAw.js → agent-hosting-B1Ag0zD8.js} +1 -1
- package/dist/client/assets/{agent-icon-CqZASRJE.js → agent-icon-CnnNyirr.js} +1 -1
- package/dist/client/assets/agent-library-Ch3sHhuh.js +1 -0
- package/dist/client/assets/agent-library-file-Bq6m6SHP.js +1 -0
- package/dist/client/assets/{agent-monitor-BzlCINOe.js → agent-monitor-DyddEd79.js} +1 -1
- package/dist/client/assets/{agent-overview-DUFMWxEU.js → agent-overview-BlP2a40h.js} +1 -1
- package/dist/client/assets/agent-settings-CaxlA04S.js +1 -0
- package/dist/client/assets/{agent-site-editor-Cgd_VIhY.js → agent-site-editor-Dv8qh0xB.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-D0j_GVVh.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-hTgzjtkp.js → agent-site-editor-content-EotWUMUT.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-yX5vZUh0.js → agent-site-editor-preview-DaqE_qX4.js} +3 -3
- package/dist/client/assets/agent-view-UQmbv7nk.js +1 -0
- package/dist/client/assets/{agent-view-guard-WwLdd03P.js → agent-view-guard-Bf5Bn5K4.js} +1 -1
- package/dist/client/assets/{agents-list-Dd_HwOB5.js → agents-list-CJcm3Kq8.js} +1 -1
- package/dist/client/assets/{ai-providers-CJqVOOjj.js → ai-providers-VCM02Z-N.js} +1 -1
- package/dist/client/assets/{alert-C7GKQkEa.js → alert-CGA3Ty0D.js} +1 -1
- package/dist/client/assets/{alert-dialog-D_aRnY2J.js → alert-dialog-kjq4dW3k.js} +1 -1
- package/dist/client/assets/{analytics-sections-B_0ylm-F.js → analytics-sections-Cjkr8Muu.js} +1 -1
- package/dist/client/assets/{api-keys-CTrR4NLT.js → api-keys-BjTJSB_i.js} +1 -1
- package/dist/client/assets/api-keys-BrfzhtIS.js +1 -0
- package/dist/client/assets/app-editor-CJudcxBz.js +1 -0
- package/dist/client/assets/{asset-utils-DPFCQacY.js → asset-utils-Cdgz7yau.js} +1 -1
- package/dist/client/assets/{auth-DK9f1ZTH.js → auth-Cps-90jQ.js} +1 -1
- package/dist/client/assets/{auth-catchall-ymAvaIfq.js → auth-catchall-Batt4Wp1.js} +1 -1
- package/dist/client/assets/{auth-entry-Bipf-3As.js → auth-entry-BUqhj_6T.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BIJktSXr.js → auth-split-layout-lt03dL19.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-JHbhZWlI.js → authenticate-and-persist-oauth-eDHShxj5.js} +1 -1
- package/dist/client/assets/{automation-list-row-DEJdl0i5.js → automation-list-row-C9YrfX3o.js} +1 -1
- package/dist/client/assets/{automation-runs-BvXAH6Zy.js → automation-runs-BZA4OsIt.js} +1 -1
- package/dist/client/assets/{automations-CqeboptP.js → automations-DpWIQ3oV.js} +1 -1
- package/dist/client/assets/{autosend-BV2PsimL.js → autosend-BQ3F90GX.js} +1 -1
- package/dist/client/assets/{avatar-CYsgyDk8.js → avatar-TL9HUab0.js} +1 -1
- package/dist/client/assets/{badge-80v1nRPK.js → badge-CKM84j2S.js} +1 -1
- package/dist/client/assets/{block-document-Cz2P_vpn.js → block-document-w2kAyl6z.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-BtM79Kvx.js → blocks-preview-workspace-context-PwUYRK7b.js} +1 -1
- package/dist/client/assets/{blog-schema-STc-KePE.js → blog-schema-Cx6xDQRb.js} +1 -1
- package/dist/client/assets/{board-analytics-Kq5_7Oyo.js → board-analytics-DT3f2AVB.js} +1 -1
- package/dist/client/assets/{buckets-CjScpz_6.js → buckets-AVx7AXso.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CbyMBFhr.js → build-improve-prompt-doc-R0amEUpn.js} +1 -1
- package/dist/client/assets/{calendar-7itqlUGW.js → calendar-DaaBbvOH.js} +1 -1
- package/dist/client/assets/{capability-load-error-BwUoLzKX.js → capability-load-error-BVlvKXjS.js} +1 -1
- package/dist/client/assets/{category-editor-Cad32exX.js → category-editor-B-jccGXu.js} +1 -1
- package/dist/client/assets/{chart-ohHxB0r5.js → chart-DZbYggl3.js} +1 -1
- package/dist/client/assets/{chat-context-BEKkV-Ll.js → chat-context-UMp8QwjT.js} +1 -1
- package/dist/client/assets/{chat-draft-B0NTSRWz.js → chat-draft-CYy-Qv-a.js} +1 -1
- package/dist/client/assets/{checkbox-CvWHs1zK.js → checkbox-B2kVXKBD.js} +1 -1
- package/dist/client/assets/{choose-editor-BwfUJgeg.js → choose-editor-BDo9cuNm.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-BL3WW58c.js → claim-phase-copy-DG8E1-gc.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CYBiu7ru.js → cli-auth-success-DtMJnqjK.js} +1 -1
- package/dist/client/assets/{client-icons-5hQaeIu1.js → client-icons-D3ZaOjXM.js} +1 -1
- package/dist/client/assets/{collapsible-jaPP2OhC.js → collapsible-vN3Y9B-p.js} +1 -1
- package/dist/client/assets/{collection-detail-BBvtaNRJ.js → collection-detail-CBqQPzi0.js} +1 -1
- package/dist/client/assets/{collection-display-button-DVNQgzNC.js → collection-display-button-XaptFv9u.js} +1 -1
- package/dist/client/assets/{collection-search-BMeq1F4t.js → collection-search-BoB9COGX.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-B_m86D_K.js → collection-table-wrapper-CxJ6Bp-f.js} +1 -1
- package/dist/client/assets/{collection-tabs-Ba1MLgdh.js → collection-tabs-Cw7XLgNG.js} +1 -1
- package/dist/client/assets/{column-rules-DqbtcnMo.js → column-rules-Bq3eiowV.js} +1 -1
- package/dist/client/assets/{combobox-AP2SQ_RO.js → combobox-PSOtDaya.js} +1 -1
- package/dist/client/assets/{command-Bvxnety0.js → command-Doiz3O29.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-BJx9eTFU.js → companion-mcps-section-gXkjR-XD.js} +1 -1
- package/dist/client/assets/{config-JsgNFdSm.js → config-B01oZvpJ.js} +1 -1
- package/dist/client/assets/{connect-Cw4wL4Mo.js → connect-Dn2pI97X.js} +1 -1
- package/dist/client/assets/{connect-layout-C8etZ06x.js → connect-layout-CoxrwG6t.js} +1 -1
- package/dist/client/assets/{connection-CeKZpSJo.js → connection-FKmTBjan.js} +1 -1
- package/dist/client/assets/{connection-card-BBsdybH0.js → connection-card-Cvk5T5vt.js} +1 -1
- package/dist/client/assets/{connection-detail-Zij0KKeD.js → connection-detail-BRdQkO7d.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DTld_nTJ.js → connection-form-helpers-D4Q7rLyt.js} +1 -1
- package/dist/client/assets/{connections-C78U2QWF.js → connections-C8qSBDCe.js} +1 -1
- package/dist/client/assets/{context-D4huQsCX.js → context-Bt7kDQzj.js} +1 -1
- package/dist/client/assets/{context-menu-C5PIf9Ud.js → context-menu-BLhcVqO0.js} +1 -1
- package/dist/client/assets/{core.esm-CFyPPg_k.js → core.esm-DbclD67Y.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-BfiRTIkh.js → create-organization-dialog-D-t_ZE2o.js} +1 -1
- package/dist/client/assets/{daily-pulse-CCzRbH3i.js → daily-pulse-DYPs4tl1.js} +1 -1
- package/dist/client/assets/{device-hint-CTUpl3CG.js → device-hint-CbxzMdRC.js} +1 -1
- package/dist/client/assets/{dialog-CaizaKQW.js → dialog-DRpbbWU1.js} +1 -1
- package/dist/client/assets/{discover-BZ1M_pJS.js → discover-3ATGdKP8.js} +1 -1
- package/dist/client/assets/{domain-settings-TcnTgsTU.js → domain-settings-C4-yAgIW.js} +1 -1
- package/dist/client/assets/{drawer-Cn362UbS.js → drawer-CXs6iEYK.js} +1 -1
- package/dist/client/assets/{editor-B-nIGllj.js → editor-CPkkN1Zr.js} +1 -1
- package/dist/client/assets/{empty-state-DfNAbSXk.js → empty-state-D45gZaZ-.js} +1 -1
- package/dist/client/assets/{empty-state-C3-ZBqZ7.js → empty-state-DnQ_qEjI.js} +1 -1
- package/dist/client/assets/{extract-connection-data-WKz3D__i.js → extract-connection-data-Q_j_fmQx.js} +1 -1
- package/dist/client/assets/{feature-gate-CQMKDgiz.js → feature-gate-CFL9eB8c.js} +1 -1
- package/dist/client/assets/{feature-paywall-DnC43PTT.js → feature-paywall-0RYA-1Op.js} +1 -1
- package/dist/client/assets/{file-explorer-BEX4Rc_N.js → file-explorer-Cyg7RguR.js} +1 -1
- package/dist/client/assets/{file-preview-kacuDdK5.js → file-preview-DT-0IR-r.js} +1 -1
- package/dist/client/assets/{file-share-button-BWY-7IZa.js → file-share-button-C8ZBUx_e.js} +1 -1
- package/dist/client/assets/{file-type-icon-CDG1qAi8.js → file-type-icon-Du5QihE_.js} +1 -1
- package/dist/client/assets/flat-project-BpQGs-gN.js +1 -0
- package/dist/client/assets/{folder-icon-Dt1GSdhj.js → folder-icon-DXEgDwxo.js} +1 -1
- package/dist/client/assets/{form-CpErFrQ1.js → form-BBtB5neb.js} +1 -1
- package/dist/client/assets/{general-DfGmywaK.js → general-B3jgLFML.js} +1 -1
- package/dist/client/assets/{home-CND3Dkfc.js → home-DYCk_i5V.js} +1 -1
- package/dist/client/assets/{icon-button-BZdEBEfj.js → icon-button-BiR7Hy07.js} +1 -1
- package/dist/client/assets/{index-BYizWVl-.js → index-BvwJHqHQ.js} +1 -1
- package/dist/client/assets/{index-ikDsOzpt.js → index-C-3lNbMm.js} +1 -1
- package/dist/client/assets/{index-D1cfaJ2t.js → index-CeMEs5dC.js} +1 -1
- package/dist/client/assets/{index-BygP9YwT.js → index-CmC6v99h.js} +3 -3
- package/dist/client/assets/{index-BCgTVQy6.js → index-CoDuotD7.js} +1 -1
- package/dist/client/assets/{index-ClRj6-3N.js → index-Cx0uPPmh.js} +1 -1
- package/dist/client/assets/{index-QSc3eGTu.js → index-D1CuHcEn.js} +1 -1
- package/dist/client/assets/{index-BfjkKzIS.js → index-D8mID9PZ.js} +1 -1
- package/dist/client/assets/{index-W5Uv1gFu.js → index-DWUcsrDk.js} +1 -1
- package/dist/client/assets/{index-D6ZKj0d3.js → index-D_7jfHk6.js} +2 -2
- package/dist/client/assets/{index-CnLkSXZ0.js → index-DltLvtZg.js} +1 -1
- package/dist/client/assets/{index-dB_1XyGB.js → index-KqttCHw1.js} +1 -1
- package/dist/client/assets/{index-CiUGtn_W.js → index-qeM6EfxB.js} +1 -1
- package/dist/client/assets/{index-redirect-BikVIQHZ.js → index-redirect-_9q4bmDQ.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-kLjXQrHB.js → infiniteQueryObserver-DG8sBe4B.js} +1 -1
- package/dist/client/assets/{infra-billing-UCBSl2oy.js → infra-billing-BFh6IlFL.js} +1 -1
- package/dist/client/assets/{input-BR2ZOmYv.js → input-B0doV0os.js} +1 -1
- package/dist/client/assets/{input-CEMJ7uPy.js → input-BQ74PHN6.js} +1 -1
- package/dist/client/assets/{input-DWfiFAhX.js → input-DQp1LVsq.js} +3 -3
- package/dist/client/assets/{integration-icon-BXBLtmJk.js → integration-icon-BM3EOzpn.js} +1 -1
- package/dist/client/assets/{jira-icon-BHqtDmCA.js → jira-icon-C1bLqdEg.js} +1 -1
- package/dist/client/assets/{label-SS4h69R5.js → label-DxOPcXJe.js} +1 -1
- package/dist/client/assets/{layout-C4L4n6Lc.js → layout-bHPl4zx9.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-C7aZ6oEJ.js → legacy-agents-deep-BBjNU_wv.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-hF1zoiVf.js → legacy-main-redirect-z5zSFE1g.js} +1 -1
- package/dist/client/assets/library-CVuXHyjV.js +1 -0
- package/dist/client/assets/{library-tab-l_VVRZXX.js → library-tab-Z6y7ewdW.js} +1 -1
- package/dist/client/assets/{login-CKMvHvtg.js → login-DNhk4MX6.js} +1 -1
- package/dist/client/assets/{markdown-29HM3kkf.js → markdown-6zdu9t3J.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DXGnetCy.js → mcp-app-renderer-D5zA7BfR.js} +1 -1
- package/dist/client/assets/{mcp-oauth-3A9tYRyL.js → mcp-oauth-C5T-IVs8.js} +1 -1
- package/dist/client/assets/{members-BcUrZyS-.js → members-BftWOm2t.js} +1 -1
- package/dist/client/assets/{memory-CGswqj8y.js → memory-C67vpugN.js} +1 -1
- package/dist/client/assets/{mini-report-page-Da7eznro.js → mini-report-page-jD0aWOQw.js} +1 -1
- package/dist/client/assets/{mock-board-DXthXijU.js → mock-board-DX11vRZx.js} +1 -1
- package/dist/client/assets/{monaco-editor-DvydENcY.js → monaco-editor-BfKI4VlA.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-C3CaqX-m.js → monitoring-stats-row-DB55KTTw.js} +1 -1
- package/dist/client/assets/{multi-select-DwlQIhXq.js → multi-select-DVylmGoB.js} +1 -1
- package/dist/client/assets/{mustache-Brnm_dXD.js → mustache-D-VzFUJG.js} +1 -1
- package/dist/client/assets/{new-project-dialog-pM62WBis.js → new-project-dialog-CXEwhrv6.js} +1 -1
- package/dist/client/assets/{oauth-callback-BMrgEZxm.js → oauth-callback-Cqdj0zbM.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CspcIUB4.js → oauth-callback-ai-provider-Cwy6YGO7.js} +1 -1
- package/dist/client/assets/{onboarding-iQ3xdqhh.js → onboarding-BisuojYF.js} +1 -1
- package/dist/client/assets/{openai-conversation-Bo92iq4Z.js → openai-conversation-BICNFmxp.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-Bui3Aln1.js → optimistic-project-sidebar-views-BINKTU3_.js} +1 -1
- package/dist/client/assets/{organization-choice-CHmTDpwe.js → organization-choice-CG-C6xsW.js} +1 -1
- package/dist/client/assets/{orgs-DccGLnZP.js → orgs-DCjydoUZ.js} +1 -1
- package/dist/client/assets/{page-seo-form-CVheom0z.js → page-seo-form-C6V8K2um.js} +1 -1
- package/dist/client/assets/{pair-H2ebpVnC.js → pair-knnOGTuF.js} +1 -1
- package/dist/client/assets/{plan-ladder-D3lWJLFO.js → plan-ladder-DlpzxobM.js} +1 -1
- package/dist/client/assets/{popover-B69wnZ0x.js → popover-C2vJrXky.js} +1 -1
- package/dist/client/assets/{post-calendar-BmLvpLiq.js → post-calendar-3X9xGSKe.js} +1 -1
- package/dist/client/assets/{post-editor-C2IWsxcW.js → post-editor-BS-N2LHp.js} +1 -1
- package/dist/client/assets/{preview-content-dlihu8Yt.js → preview-content-CWMTMNmp.js} +1 -1
- package/dist/client/assets/{preview-dialog-WrHsjHqZ.js → preview-dialog-CmtjgV1o.js} +1 -1
- package/dist/client/assets/{preview-panel-C2DKjThP.js → preview-panel-CaQ4Pbpr.js} +1 -1
- package/dist/client/assets/{product-picker-dialog-CvuFuDIB.js → product-picker-dialog-904WCGJu.js} +1 -1
- package/dist/client/assets/{profile-CkXUOnP1.js → profile-aIUaVWtC.js} +1 -1
- package/dist/client/assets/{project-app-view-4F1NzKg3.js → project-app-view-ChZmhZ13.js} +1 -1
- package/dist/client/assets/{project-feed-Cno5cSVS.js → project-feed-t8IHFF-d.js} +1 -1
- package/dist/client/assets/{project-icon-C0Nw8mPG.js → project-icon-DU1uywdD.js} +1 -1
- package/dist/client/assets/project-reports-BF24m5b-.js +1 -0
- package/dist/client/assets/project-tasks-Wmmy6hRq.js +1 -0
- package/dist/client/assets/{projects-DQhNR69M.js → projects-CxEhyr52.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BpTZWKkI.js → projects-empty-state-BsW_dfGL.js} +1 -1
- package/dist/client/assets/{prompts-CigibTM9.js → prompts-Cad3gM_K.js} +1 -1
- package/dist/client/assets/record-editor-Cu0LbDVm.js +1 -0
- package/dist/client/assets/redirect-editor-B65ggNrM.js +1 -0
- package/dist/client/assets/reports-B3_ASbsZ.js +1 -0
- package/dist/client/assets/{reports-B5U9tB3f.js → reports-CMClJ0_S.js} +1 -1
- package/dist/client/assets/{reports-onboarding-CTVsl5Md.js → reports-onboarding-DzC8BMPj.js} +1 -1
- package/dist/client/assets/{reports-tab-M9rEzg5O.js → reports-tab-flC8aPMq.js} +2 -2
- package/dist/client/assets/{repositories-rhEkEXbS.js → repositories-BRVHvY5X.js} +1 -1
- package/dist/client/assets/{repository-binding-DU5xCC2f.js → repository-binding-DpX8yLri.js} +1 -1
- package/dist/client/assets/{repository-import-picker-DbT-KPfC.js → repository-import-picker-CO5nKRxA.js} +1 -1
- package/dist/client/assets/{repository-picker-CbM65WpS.js → repository-picker-C2HnHK1A.js} +1 -1
- package/dist/client/assets/{require-capability-Dn-PxZ0M.js → require-capability-Do1773Hs.js} +1 -1
- package/dist/client/assets/{required-auth-layout-UMnYz1o3.js → required-auth-layout-CDif9NZC.js} +1 -1
- package/dist/client/assets/{reset-password-Db0Wagvh.js → reset-password-Dh0gWEkU.js} +1 -1
- package/dist/client/assets/{resizable-CMUQk1zK.js → resizable-CIqqPf7O.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-sUoI4LWt.js → resolve-tab-icon-S311kwwr.js} +1 -1
- package/dist/client/assets/{review-settings-CyyTBWak.js → review-settings-C9jJxNAv.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-BloybQa2.js → rich-text-link-control-CMeXviAY.js} +1 -1
- package/dist/client/assets/{roles-BI264iFV.js → roles-BOnFVbcr.js} +1 -1
- package/dist/client/assets/{route-DRK1Yrag.js → route-Bvv7axF1.js} +1 -1
- package/dist/client/assets/{route-6SYGGrOe.js → route-DNZvy3kt.js} +1 -1
- package/dist/client/assets/route-DdkXah7z.js +1 -0
- package/dist/client/assets/{runnable-block-editor-aiNmn7uQ.js → runnable-block-editor-BWSWYcJ-.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-KvsIkNFN.js → sandbox-lifecycle-context-BJE24h7z.js} +1 -1
- package/dist/client/assets/{schema-DBi1obJz.js → schema-D1veJPjJ.js} +1 -1
- package/dist/client/assets/{scroll-area-DrC4kFvC.js → scroll-area-Ce9NeF1s.js} +1 -1
- package/dist/client/assets/{search-input-IgJHEtUf.js → search-input-DpJBHwWo.js} +1 -1
- package/dist/client/assets/{search-toggle-CQpL269o.js → search-toggle-Br3rmrbk.js} +1 -1
- package/dist/client/assets/{secret-picker-1felyUvp.js → secret-picker-B_ADx-sY.js} +1 -1
- package/dist/client/assets/{secrets-B-VUMA_J.js → secrets-t0Aczfol.js} +1 -1
- package/dist/client/assets/{sections-editor-BHfMW6Ts.js → sections-editor-CEBB7XW8.js} +1 -1
- package/dist/client/assets/{select-BimoKSOp.js → select-CZdnCwuC.js} +1 -1
- package/dist/client/assets/{select-model-DuC12JIh.js → select-model-ER05JMp8.js} +1 -1
- package/dist/client/assets/{seo-editor-DmSwADHy.js → seo-editor-DHXJaGsL.js} +1 -1
- package/dist/client/assets/{separator-BDE3I0fn.js → separator-BtrJ5AFz.js} +1 -1
- package/dist/client/assets/{settings-tab-BbBuUb6A.js → settings-tab-CTiWw7bm.js} +1 -1
- package/dist/client/assets/{sheet-BF6gLW4J.js → sheet-Gpaizien.js} +1 -1
- package/dist/client/assets/{shell-layout-_Pn7cxIp.js → shell-layout-B0-NcUCt.js} +1 -1
- package/dist/client/assets/{skills-Cdwff9-N.js → skills-BHEjjAUu.js} +1 -1
- package/dist/client/assets/{slider-FhNC3fVS.js → slider-BpZoep6A.js} +1 -1
- package/dist/client/assets/{sortable.esm-BW2r2TQ5.js → sortable.esm-DyjKGVzh.js} +1 -1
- package/dist/client/assets/{sso-BwV31EHP.js → sso-Dgg4nP6H.js} +1 -1
- package/dist/client/assets/{suggestion-CO1eCyUL.js → suggestion-DmBBrXFD.js} +1 -1
- package/dist/client/assets/{switch-DbiylKGt.js → switch-hSsSQMgC.js} +1 -1
- package/dist/client/assets/{symbol-jxhImUCd.js → symbol-CkeqKRPe.js} +1 -1
- package/dist/client/assets/{synced-repos-BC8M1bWl.js → synced-repos-B1QJsQos.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-CASAQt8G.js → tab-icon-glyph-BRREqFJ3.js} +1 -1
- package/dist/client/assets/{table-D0TLPmnq.js → table-Dfov51xE.js} +1 -1
- package/dist/client/assets/{tabs-BwctFHZr.js → tabs-Df848FrP.js} +1 -1
- package/dist/client/assets/{task-board-DFP-fne3.js → task-board-ChFrokIN.js} +1 -1
- package/dist/client/assets/{task-route-BierUG4Q.js → task-route-4t67EvVC.js} +1 -1
- package/dist/client/assets/{task-status-cNdQKcCz.js → task-status-cI-KMHji.js} +1 -1
- package/dist/client/assets/taskboard-analytics-C5y5DQZh.js +1 -0
- package/dist/client/assets/tasks-B6PT7ia3.js +1 -0
- package/dist/client/assets/{tasks-CEP9Drl2.js → tasks-Dcje4OJR.js} +1 -1
- package/dist/client/assets/{textarea-DncV9TJN.js → textarea-DaHaRA0Z.js} +1 -1
- package/dist/client/assets/{thread-analytics-BSQZhWFS.js → thread-analytics-5o8rlytc.js} +1 -1
- package/dist/client/assets/{thread-button-3YyJ_qZE.js → thread-button-DwjwmudD.js} +1 -1
- package/dist/client/assets/{thread-intent-o4o-MA3S.js → thread-intent-Cxso0qKW.js} +1 -1
- package/dist/client/assets/{thread-route-BasyELse.js → thread-route-BcAw7-v0.js} +1 -1
- package/dist/client/assets/{thread-route-CaKdVoOw.js → thread-route-CW2be8Kx.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-C6mBvsIL.js → thread-sheet-body-B6geJ00B.js} +1 -1
- package/dist/client/assets/{time-range-picker-C3YgWELe.js → time-range-picker-Bu58tMJr.js} +1 -1
- package/dist/client/assets/{toggle-group-Be2zaRQe.js → toggle-group-BFX-9eHs.js} +1 -1
- package/dist/client/assets/{tool-namespace-BaO4I7fR.js → tool-namespace-BHB8Go32.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DnfVpnpi.js → toolbar-icon-button-D9aCXzS4.js} +1 -1
- package/dist/client/assets/{tooltip-ud1E4lWe.js → tooltip-BULKkf4A.js} +1 -1
- package/dist/client/assets/{tooltipContext-Bn73mb9f.js → tooltipContext-1NNpJuJd.js} +1 -1
- package/dist/client/assets/{track-D9xSFomP.js → track-CpjpKs1v.js} +1 -1
- package/dist/client/assets/{types-C52Y_JT0.js → types-Blm6OQRg.js} +1 -1
- package/dist/client/assets/{url-slug-DA14zDBr.js → url-slug-d-Er1jOR.js} +1 -1
- package/dist/client/assets/{usage-stats-qYCfmoBc.js → usage-stats-Dqycj-p-.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BLkItyxK.js → use-ai-providers-C1bb7SnA.js} +1 -1
- package/dist/client/assets/{use-automations-wOelP2bP.js → use-automations-zlAoF9SL.js} +1 -1
- package/dist/client/assets/{use-autosave-DwWGqeny.js → use-autosave-DBCPQM6l.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-BXUQI_Uj.js → use-chat-layout-state-DDDFQN6Y.js} +1 -1
- package/dist/client/assets/{use-chat-navigation-0CERUZel.js → use-chat-navigation-BF9opsK8.js} +1 -1
- package/dist/client/assets/{use-clock-tick-Byjn6Ipz.js → use-clock-tick-DGTQe72H.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CJUuykr1.js → use-connect-companion-DcLSyBxl.js} +1 -1
- package/dist/client/assets/{use-connection-BLNfspiw.js → use-connection-5LUEsGlJ.js} +1 -1
- package/dist/client/assets/{use-copy-Dg2-hZvb.js → use-copy-CRIUfo35.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DaSHuVdx.js → use-create-virtual-mcp-DzmQH3J8.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-yEAg4rlf.js → use-date-fns-locale-DIokBBqe.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BbQxm-LP.js → use-debounced-autosave-BRSYFOGW.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DkB41yRZ.js → use-debounced-value-DCB8Le0h.js} +1 -1
- package/dist/client/assets/{use-deco-credits-ODPDFKit.js → use-deco-credits-BgPf-IIH.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-C_UyGftl.js → use-decopilot-events-uItZ_pJe.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DtNaJnIN.js → use-delete-connection-BLZ4VLoa.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-LfJmve5n.js → use-deployment-admin-BSf-NdBG.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-i0uoPVJF.js → use-ensure-project-folder-BUpbRP81.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-DfCPo5oA.js → use-fast-preview-draft-url-8LcTSnsj.js} +1 -1
- package/dist/client/assets/{use-file-configs-CGY_ert6.js → use-file-configs-By7UB_YZ.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-979kKqgG.js → use-infinite-scroll-B02yfFGd.js} +1 -1
- package/dist/client/assets/{use-join-requests-BVEasBlK.js → use-join-requests-Cb1ihQM1.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-H7fQ4i6B.js → use-main-panel-tabs-xXeWrfnF.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-D2S8OUYy.js → use-mcp-auth-status-B-gyzfqG.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BhAo2QDs.js → use-mcp-client-MUIIizLf.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DPLwYnKg.js → use-mcp-prompts-C3siW74f.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Bv_07i-f.js → use-mcp-tools-CPLGkZB5.js} +1 -1
- package/dist/client/assets/{use-members-BA82esMl.js → use-members-vjX9lJhj.js} +1 -1
- package/dist/client/assets/{use-mobile-DsXG93j_.js → use-mobile-DF1FX6Xv.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-_Fy5-uKx.js → use-navigate-to-agent-p65xWFDF.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-DZnaAqkX.js +1 -0
- package/dist/client/assets/{use-open-billing-url-CUDSWbJf.js → use-open-billing-url-CqJ0vDkP.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-hM9___IR.js → use-org-auth-client-CuZ7oLTb.js} +1 -1
- package/dist/client/assets/{use-org-fs-Df2-ebn-.js → use-org-fs-DPxqVRhB.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-RpIgueH5.js → use-org-repo-syncs-BG16MD5Q.js} +1 -1
- package/dist/client/assets/{use-org-sso-IZ5t5non.js → use-org-sso-BEGhJLya.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CHRytV-b.js → use-organization-roles-DOROP0yS.js} +1 -1
- package/dist/client/assets/{use-organization-settings-XOD9ESkO.js → use-organization-settings-CB0-LYjl.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-vbXDgGYl.js → use-panel-navigate-C4UE8Qkr.js} +1 -1
- package/dist/client/assets/{use-project-scope-KzlP3xju.js → use-project-scope-BMVXwaQ4.js} +1 -1
- package/dist/client/assets/{use-releases-DMtt37HC.js → use-releases-DO5M1M4y.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-B2l9rZ7n.js → use-reports-diagnostic-C3LmmHKo.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-nw0-bXbS.js → use-sandbox-events-E2bKOQlM.js} +1 -1
- package/dist/client/assets/{use-secrets-DcZKciGM.js → use-secrets-C2sdbGJM.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BSDyoSl7.js → use-section-preview-base-26sYGS0B.js} +1 -1
- package/dist/client/assets/{use-tags-fdcoiGJW.js → use-tags-CFN9IU6i.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DNKYjvsI.js → use-task-board-analytics-BmwRnCgb.js} +1 -1
- package/dist/client/assets/{use-task-board-events-Bsmaoj96.js → use-task-board-events-BDjHMnwS.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-h7cdMLQu.js → use-task-board-item-prs-DY1JtBFR.js} +1 -1
- package/dist/client/assets/{use-task-board-items-D9AUaVNI.js → use-task-board-items-DUgOnZAe.js} +1 -1
- package/dist/client/assets/{use-task-metadata-BhK_QNSv.js → use-task-metadata-BCqsxDXx.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-BNWVClHo.js → use-thread-analytics-DJQ2zz_B.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-714c96C6.js → use-thread-outputs-DfIiLAuO.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-eYXaZ_bo.js +1 -0
- package/dist/client/assets/{useQueries-BAV2VQJS.js → useQueries-DKVO6hGe.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-i_drPWHc.js +1 -0
- package/dist/client/assets/{users-D6p7l9Qo.js → users-DbpeSClG.js} +1 -1
- package/dist/client/assets/{utils-Cp3D7BS-.js → utils-Cxy1EsFU.js} +1 -1
- package/dist/client/assets/{variant-calendar-ClgUoajU.js → variant-calendar-BR3Tvz7m.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-BPr4phd8.js → variant-matcher-override-BD9nzwGm.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-rvdqWR_F.js → view-mode-toggle-CVVPadaN.js} +1 -1
- package/dist/client/assets/{virtual-mcp-y87s1o4x.js → virtual-mcp-CYDFCAA6.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-HwFSe36n.js → watch-sse-pool-BXtoXPGx.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +537 -537
- package/package.json +1 -1
- package/dist/client/assets/agent-app-QHYDv9wm.js +0 -1
- package/dist/client/assets/agent-deck-CFpEgiHW.js +0 -1
- package/dist/client/assets/agent-library-D4uAz-Gm.js +0 -1
- package/dist/client/assets/agent-library-file-Cm-5j5_Q.js +0 -1
- package/dist/client/assets/agent-settings-DHaR6tV_.js +0 -1
- package/dist/client/assets/agent-site-editor-code-BOVBRJg8.js +0 -2
- package/dist/client/assets/agent-view-DhvgMtwi.js +0 -1
- package/dist/client/assets/api-keys-BQyxoF0G.js +0 -1
- package/dist/client/assets/app-editor-CdpSejbG.js +0 -1
- package/dist/client/assets/flat-project-BJHdKc4J.js +0 -1
- package/dist/client/assets/library-BilS1-Q5.js +0 -1
- package/dist/client/assets/project-reports-hao_xuVG.js +0 -1
- package/dist/client/assets/project-tasks-0iRMtR_B.js +0 -1
- package/dist/client/assets/record-editor-D01ICPr8.js +0 -1
- package/dist/client/assets/redirect-editor-BptL49e1.js +0 -1
- package/dist/client/assets/reports-CTOZc-B3.js +0 -1
- package/dist/client/assets/route-Dqvws1eb.js +0 -1
- package/dist/client/assets/taskboard-analytics-yjyawLTO.js +0 -1
- package/dist/client/assets/tasks-C5vDjoxa.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-BEuQmWCf.js +0 -1
- package/dist/client/assets/useInfiniteQuery-jncr8EKF.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-rmy_OGLk.js +0 -1
package/dist/client/assets/{use-sandbox-events-nw0-bXbS.js → use-sandbox-events-E2bKOQlM.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as F,X,az as Oe,l as z,j as n,E as Me,r as T,b as Z,t as ie,h as ce,d as be,q as ue,B as ye,o as Ae,K as J,aW as de}from"./index-D6ZKj0d3.js";import{n as $e}from"./ArrowUp-B_1yzk0u.js";import{c as Ie,a as ve,e as Fe,u as Se,T as ze,A as He,g as Ke,b as qe,h as Ge,i as Ue}from"./chat-context-BEKkV-Ll.js";import{s as Qe,g as je,d as Ve}from"./tool-namespace-BaO4I7fR.js";import{c as se,T as Ye,a as We,b as Je}from"./tooltip-ud1E4lWe.js";import{c as Ee,d as we,b as Ne,D as Ce,h as Xe}from"./dialog-CaizaKQW.js";import{d as Ze,b as et,a as tt,D as st}from"./drawer-Cn362UbS.js";import{C as nt}from"./collection-search-BMeq1F4t.js";import{u as rt}from"./use-mobile-DsXG93j_.js";import{u as at}from"./use-mcp-client-BhAo2QDs.js";import{u as ot,g as lt}from"./use-mcp-prompts-DPLwYnKg.js";import{c as it,P as ct}from"./usage-stats-qYCfmoBc.js";import{T as ut,d as dt,c as ft,e as mt,H as pt}from"./input-DWfiFAhX.js";import{u as ht,a as gt,S as xt,M as fe}from"./pair-H2ebpVnC.js";import{a as bt}from"./use-panel-navigate-vbXDgGYl.js";import{u as yt}from"./thread-intent-o4o-MA3S.js";import{N as vt}from"./index-BYizWVl-.js";import{i as St}from"./LinkBroken01-aiXtOyEy.js";import{g as Te}from"./agent-icon-CqZASRJE.js";import{e as jt}from"./use-decopilot-events-C_UyGftl.js";import{u as Et}from"./use-deco-credits-ODPDFKit.js";import{F as wt}from"./feature-paywall-DnC43PTT.js";import{i as Nt}from"./AlertCircle-DxGlheNv.js";import{b as Ct}from"./sandbox-url-D3mC8qhT.js";import{a as Tt}from"./repository-binding-DU5xCC2f.js";import{e as kt}from"./backoff-CrEUbyZT.js";const me=3,ke="inline-flex items-center gap-2 px-5 py-2.5 rounded-full bg-muted text-muted-foreground text-sm font-medium transition-colors cursor-pointer",Pt="flex flex-col gap-1.5 p-4 rounded-xl bg-accent/40 text-sm leading-snug transition-colors cursor-pointer text-left";function Pe(t){const e=F.c(46),{item:r,onSelect:o,isLoading:s,isDisabled:a,variant:l}=t,i=l===void 0?"pill":l,{prompt:c}=r;let d;if(e[0]!==c._meta||e[1]!==c.name||e[2]!==c.title){const C=je(c._meta);d=c.title??Ve(c.name,C),e[0]=c._meta,e[1]=c.name,e[2]=c.title,e[3]=d}else d=e[3];const u=d,f=c.description||null;if(i==="card"){let C;e[4]!==o||e[5]!==c?(C=()=>o(c),e[4]=o,e[5]=c,e[6]=C):C=e[6];const O=a||s,B=s&&"bg-accent/40",L=(a||s)&&"cursor-not-allowed opacity-50";let _;e[7]!==B||e[8]!==L?(_=z(Pt,"hover:bg-accent/60 text-foreground",B,L),e[7]=B,e[8]=L,e[9]=_):_=e[9];let p;e[10]!==u?(p=n.jsx("span",{className:"font-medium truncate capitalize",children:u}),e[10]=u,e[11]=p):p=e[11];let w;e[12]!==s?(w=s&&n.jsx(ce,{size:"xs"}),e[12]=s,e[13]=w):w=e[13];let h;e[14]!==p||e[15]!==w?(h=n.jsxs("div",{className:"flex items-center justify-between gap-2",children:[p,w]}),e[14]=p,e[15]=w,e[16]=h):h=e[16];let b;e[17]!==f?(b=f&&n.jsx("span",{className:"text-xs text-muted-foreground line-clamp-2",children:f}),e[17]=f,e[18]=b):b=e[18];let N;return e[19]!==h||e[20]!==b||e[21]!==C||e[22]!==O||e[23]!==_?(N=n.jsxs("button",{type:"button",onClick:C,disabled:O,className:_,children:[h,b]}),e[19]=h,e[20]=b,e[21]=C,e[22]=O,e[23]=_,e[24]=N):N=e[24],N}let m;e[25]!==o||e[26]!==c?(m=()=>o(c),e[25]=o,e[26]=c,e[27]=m):m=e[27];const S=a||s,E=s&&"bg-muted/50",v=(a||s)&&"cursor-not-allowed opacity-50";let g;e[28]!==E||e[29]!==v?(g=z(ke,"hover:bg-muted/70 hover:text-foreground",E,v),e[28]=E,e[29]=v,e[30]=g):g=e[30];let y;e[31]!==u?(y=n.jsx("span",{className:"capitalize",children:u}),e[31]=u,e[32]=y):y=e[32];let x;e[33]!==s?(x=s&&n.jsx(ce,{size:"xs"}),e[33]=s,e[34]=x):x=e[34];let j;e[35]!==m||e[36]!==S||e[37]!==g||e[38]!==y||e[39]!==x?(j=n.jsx(Ye,{asChild:!0,children:n.jsxs("button",{type:"button",onClick:m,disabled:S,className:g,children:[y,x]})}),e[35]=m,e[36]=S,e[37]=g,e[38]=y,e[39]=x,e[40]=j):j=e[40];const D=f??u;let k;e[41]!==D?(k=n.jsx(We,{side:"top",className:"max-w-xs",children:n.jsx("p",{className:"text-xs",children:D})}),e[41]=D,e[42]=k):k=e[42];let R;return e[43]!==j||e[44]!==k?(R=n.jsxs(Je,{delayDuration:400,children:[j,k]}),e[43]=j,e[44]=k,e[45]=R):R=e[45],R}function Dt(t){const e=F.c(61),{items:r,open:o,onOpenChange:s,onSelect:a,loadingPrompt:l}=t,i=Z(),[c,d]=T.useState(""),u=!!l;let f;e[0]!==r||e[1]!==c?(f=c.trim()?r.filter(p=>{const w=c.toLowerCase();return p.prompt.name.toLowerCase().includes(w)||(p.prompt.title??"").toLowerCase().includes(w)||(p.prompt.description??"").toLowerCase().includes(w)}):r,e[0]=r,e[1]=c,e[2]=f):f=e[2];const m=f,S=rt();let E;e[3]!==m.length||e[4]!==c||e[5]!==i?(E=m.length===0&&n.jsx("p",{className:"col-span-4 text-sm text-muted-foreground text-center py-8",children:i("chat.iceBreakers.noPromptsMatch",{search:c})}),e[3]=m.length,e[4]=c,e[5]=i,e[6]=E):E=e[6];let v;if(e[7]!==m||e[8]!==u||e[9]!==l?.name||e[10]!==s||e[11]!==a){let p;e[13]!==u||e[14]!==l?.name||e[15]!==s||e[16]!==a?(p=w=>n.jsx(Pe,{item:w,variant:"card",onSelect:h=>{s(!1),a(h)},isLoading:l?.name===w.prompt.name,isDisabled:u&&l?.name!==w.prompt.name},w.prompt.name),e[13]=u,e[14]=l?.name,e[15]=s,e[16]=a,e[17]=p):p=e[17],v=m.map(p),e[7]=m,e[8]=u,e[9]=l?.name,e[10]=s,e[11]=a,e[12]=v}else v=e[12];let g;e[18]!==E||e[19]!==v?(g=n.jsx("div",{className:"flex-1 overflow-y-auto [scrollbar-gutter:stable]",children:n.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3 p-5",children:[E,v]})}),e[18]=E,e[19]=v,e[20]=g):g=e[20];const y=g;let x;e[21]!==i?(x=i("chat.iceBreakers.searchPromptsPlaceholder"),e[21]=i,e[22]=x):x=e[22];let j;e[23]===Symbol.for("react.memo_cache_sentinel")?(j=p=>{p.key==="Escape"&&d("")},e[23]=j):j=e[23];let D;e[24]!==c||e[25]!==x?(D=n.jsx(nt,{value:c,onChange:d,placeholder:x,onKeyDown:j}),e[24]=c,e[25]=x,e[26]=D):D=e[26];const k=D;if(S){let p;e[27]!==i?(p=i("chat.iceBreakers.allPromptsTitle"),e[27]=i,e[28]=p):p=e[28];let w;e[29]!==p?(w=n.jsx(Ze,{className:"sr-only",children:n.jsx(et,{children:p})}),e[29]=p,e[30]=w):w=e[30];let h;e[31]!==i?(h=i("chat.iceBreakers.promptsLabel"),e[31]=i,e[32]=h):h=e[32];let b;e[33]!==h?(b=n.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 shrink-0",children:n.jsx("span",{className:"text-sm font-medium text-foreground",children:h})}),e[33]=h,e[34]=b):b=e[34];let N;e[35]!==y||e[36]!==k||e[37]!==b||e[38]!==w?(N=n.jsxs(tt,{className:"h-[85vh] flex flex-col p-0 gap-0",children:[w,b,k,y]}),e[35]=y,e[36]=k,e[37]=b,e[38]=w,e[39]=N):N=e[39];let I;return e[40]!==s||e[41]!==o||e[42]!==N?(I=n.jsx(se,{delayDuration:400,children:n.jsx(st,{open:o,onOpenChange:s,children:N})}),e[40]=s,e[41]=o,e[42]=N,e[43]=I):I=e[43],I}let R;e[44]!==i?(R=i("chat.iceBreakers.allPromptsTitle"),e[44]=i,e[45]=R):R=e[45];let C;e[46]!==R?(C=n.jsx(Ee,{className:"sr-only",children:n.jsx(we,{children:R})}),e[46]=R,e[47]=C):C=e[47];let O;e[48]!==i?(O=i("chat.iceBreakers.promptsLabel"),e[48]=i,e[49]=O):O=e[49];let B;e[50]!==O?(B=n.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 shrink-0",children:n.jsx("span",{className:"text-sm font-medium text-foreground",children:O})}),e[50]=O,e[51]=B):B=e[51];let L;e[52]!==y||e[53]!==k||e[54]!==B||e[55]!==C?(L=n.jsxs(Ne,{className:"sm:max-w-[1100px] h-[680px] p-0 gap-0 overflow-hidden flex flex-col",children:[C,B,k,y]}),e[52]=y,e[53]=k,e[54]=B,e[55]=C,e[56]=L):L=e[56];let _;return e[57]!==s||e[58]!==o||e[59]!==L?(_=n.jsx(se,{delayDuration:400,children:n.jsx(Ce,{open:o,onOpenChange:s,children:L})}),e[57]=s,e[58]=o,e[59]=L,e[60]=_):_=e[60],_}function Rt(t){const e=F.c(30),{items:r,onSelect:o,loadingPrompt:s,className:a}=t,l=Z(),[i,c]=T.useState(!1);if(r.length===0)return null;let d,u,f,m,S;if(e[0]!==a||e[1]!==r||e[2]!==s||e[3]!==o||e[4]!==l){const y=r.slice(0,me),x=r.slice(me),j=!!s;let D;e[10]!==j||e[11]!==s?.name||e[12]!==o?(D=R=>n.jsx(Pe,{item:R,onSelect:o,isLoading:s?.name===R.prompt.name,isDisabled:j&&s?.name!==R.prompt.name},R.prompt.name),e[10]=j,e[11]=s?.name,e[12]=o,e[13]=D):D=e[13];const k=y.map(D);d=se,S=400,e[14]!==a?(u=z("w-full flex flex-wrap gap-2 justify-center",a),e[14]=a,e[15]=u):u=e[15],f=k,m=x.length>0&&n.jsx("button",{type:"button",disabled:j,onClick:()=>c(!0),className:z(ke,"hover:bg-muted/70 hover:text-foreground",j&&"opacity-50 cursor-not-allowed"),children:l("chat.iceBreakers.moreButton",{count:x.length})}),e[0]=a,e[1]=r,e[2]=s,e[3]=o,e[4]=l,e[5]=d,e[6]=u,e[7]=f,e[8]=m,e[9]=S}else d=e[5],u=e[6],f=e[7],m=e[8],S=e[9];let E;e[16]!==u||e[17]!==f||e[18]!==m?(E=n.jsxs("div",{className:u,children:[f,m]}),e[16]=u,e[17]=f,e[18]=m,e[19]=E):E=e[19];let v;e[20]!==r||e[21]!==s||e[22]!==i||e[23]!==o?(v=n.jsx(Dt,{items:r,open:i,onOpenChange:c,onSelect:o,loadingPrompt:s}),e[20]=r,e[21]=s,e[22]=i,e[23]=o,e[24]=v):v=e[24];let g;return e[25]!==d||e[26]!==S||e[27]!==E||e[28]!==v?(g=n.jsxs(d,{delayDuration:S,children:[E,v]}),e[25]=d,e[26]=S,e[27]=E,e[28]=v,e[29]=g):g=e[29],g}function _t(){return null}function Lt(t,e){switch(e.type){case"SELECT_PROMPT":return!e.prompt.arguments||e.prompt.arguments.length===0?{stage:"loading",prompt:e.prompt}:{stage:"idle"};case"START_LOADING":return{stage:"loading",prompt:e.prompt,arguments:e.arguments};case"RESET":return{stage:"idle"};default:return t}}function Bt(t){const e=F.c(31),{connectionId:r}=t,o=Z(),{sendMessage:s}=ve(),{org:a}=X();let l;e[0]!==r||e[1]!==a.id||e[2]!==a.slug?(l={connectionId:r,orgId:a.id,orgSlug:a.slug},e[0]=r,e[1]=a.id,e[2]=a.slug,e[3]=l):l=e[3];const i=at(l);let c;e[4]!==i?(c={client:i,staleTime:6e4},e[4]=i,e[5]=c):c=e[5];const{data:d}=ot(c);let u;e[6]!==d?.prompts?(u=d?.prompts??[],e[6]=d?.prompts,e[7]=u):u=e[7];const f=u;let m;e[8]!==f?(m=f.map(Ot),e[8]=f,e[9]=m):m=e[9];const S=m;let E;e[10]===Symbol.for("react.memo_cache_sentinel")?(E={stage:"idle"},e[10]=E):E=e[10];const[v,g]=T.useReducer(Lt,E),[y,x]=T.useState(null);let j;e[11]!==i||e[12]!==s||e[13]!==o?(j=async(h,b)=>{if(!i){ie.error(o("chat.iceBreakers.mcpClientNotAvailable")),g({type:"RESET"});return}try{const N=await lt(i,h.name,b);g({type:"RESET"});const I={type:"doc",content:[{type:"paragraph",content:[it({id:h.name,name:Qe(h.name,je(h._meta)),metadata:N.messages,char:"/",kind:"prompt",args:b}),{type:"text",text:" "}]}]};await s(I)}catch(N){console.error("[ice-breakers] Failed to fetch prompt:",N),ie.error(o("chat.iceBreakers.failedToLoadPrompt")),g({type:"RESET"})}},e[11]=i,e[12]=s,e[13]=o,e[14]=j):j=e[14];const D=j;let k;e[15]!==D?(k=async h=>{if(h.arguments&&h.arguments.length>0){g({type:"SELECT_PROMPT",prompt:h}),x(h);return}g({type:"START_LOADING",prompt:h}),await D(h)},e[15]=D,e[16]=k):k=e[16];const R=k;let C;e[17]!==y||e[18]!==D?(C=async h=>{y&&(g({type:"START_LOADING",prompt:y,arguments:h}),x(null),await D(y,h))},e[17]=y,e[18]=D,e[19]=C):C=e[19];const O=C;if(S.length===0)return null;const B=v.stage==="loading"?v.prompt:null;let L;e[20]!==R||e[21]!==S||e[22]!==B?(L=n.jsx(Rt,{items:S,onSelect:R,loadingPrompt:B}),e[20]=R,e[21]=S,e[22]=B,e[23]=L):L=e[23];let _;e[24]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{x(null),g({type:"RESET"})},e[24]=_):_=e[24];let p;e[25]!==y||e[26]!==O?(p=n.jsx(ct,{prompt:y,setPrompt:_,onSubmit:O}),e[25]=y,e[26]=O,e[27]=p):p=e[27];let w;return e[28]!==L||e[29]!==p?(w=n.jsxs(n.Fragment,{children:[L,p]}),e[28]=L,e[29]=p,e[30]=w):w=e[30],w}function Ot(t){return{prompt:t}}function Mt(t){const e=F.c(13),{className:r}=t,{selectedVirtualMcp:o}=Ie(),{org:s}=X();let a;e[0]!==s.id?(a=Oe(s.id),e[0]=s.id,e[1]=a):a=e[1];const l=a.id,i=o?.id??l;let c;e[2]!==r?(c=z("w-full @container",r),e[2]=r,e[3]=c):c=e[3];const d=i??"default";let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(_t,{}),e[4]=u):u=e[4];let f;e[5]!==i?(f=n.jsx(Bt,{connectionId:i}),e[5]=i,e[6]=f):f=e[6];let m;e[7]!==d||e[8]!==f?(m=n.jsx(Me,{fallback:null,children:n.jsx(T.Suspense,{fallback:u,children:f},d)}),e[7]=d,e[8]=f,e[9]=m):m=e[9];let S;return e[10]!==c||e[11]!==m?(S=n.jsx("div",{className:c,children:m}),e[10]=c,e[11]=m,e[12]=S):S=e[12],S}function At(t){let e=0;for(const r of t)for(const o of r.parts??[]){const s=o;s.type==="tool-load_repo"&&s.state==="output-available"&&s.output?.success===!0&&e++}return e}function $t(){const t=F.c(8),{openPanel:e}=bt(),r=yt(),o=Fe()?.messages??[],s=Se()?.taskId??null;let a;t[0]!==o?(a=At(o),t[0]=o,t[1]=a):a=t[1];const l=a,i=T.useRef(null),c=T.useRef(null);let d,u;t[2]!==l||t[3]!==r||t[4]!==e||t[5]!==s?(d=()=>{if(!l||!s)return;const f=`${s}:${l}`;c.current!==f&&(c.current=f,r?.refreshThreadMetadata(s)),i.current!==s&&(i.current=s,e("site-editor"))},u=[l,s,e,r],t[2]=l,t[3]=r,t[4]=e,t[5]=s,t[6]=d,t[7]=u):(d=t[6],u=t[7]),T.useEffect(d,u)}function De(t){return`deco-credits-empty-dismissed:${t}`}function Ps(t){try{return localStorage.getItem(De(t))==="1"}catch{return!1}}function It(){const t=F.c(56),e=Z(),{org:r}=X(),o=jt("credits"),s=be(),{decoKeyId:a}=Et(),[l,i]=T.useState(!0);let c;t[0]!==r.id?(c=()=>{ue("credits_empty_state_dismissed",{organization_id:r.id}),i(!1);try{localStorage.setItem(De(r.id),"1")}catch{}},t[0]=r.id,t[1]=c):c=t[1];const d=c;let u,f;if(t[2]!==l||t[3]!==r.id?(u=()=>{l&&ue("credits_empty_state_shown",{organization_id:r.id})},f=[l,r.id],t[2]=l,t[3]=r.id,t[4]=u,t[5]=f):(u=t[4],f=t[5]),T.useEffect(u,f),!l)return null;if(!o){let h;t[6]!==e?(h=e("chat.input.allowanceExhaustedTitle"),t[6]=e,t[7]=h):h=t[7];let b;t[8]!==h?(b={title:h},t[8]=h,t[9]=b):b=t[9];let N;return t[10]!==d||t[11]!==b?(N=n.jsx(wt,{feature:"chat",copy:b,onDismiss:d}),t[10]=d,t[11]=b,t[12]=N):N=t[12],N}let m;t[13]!==d?(m=h=>!h&&d(),t[13]=d,t[14]=m):m=t[14];let S;t[15]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx("div",{className:"absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-warning/8 to-transparent pointer-events-none rounded-t-lg"}),t[15]=S):S=t[15];let E;t[16]===Symbol.for("react.memo_cache_sentinel")?(E=n.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:n.jsx(Te,{size:20,className:"text-warning"})}),t[16]=E):E=t[16];let v;t[17]!==e?(v=e("chat.creditsEmptyState.title"),t[17]=e,t[18]=v):v=t[18];let g;t[19]!==v?(g=n.jsx(we,{className:"text-lg font-semibold",children:v}),t[19]=v,t[20]=g):g=t[20];let y;t[21]!==e?(y=e("chat.creditsEmptyState.description"),t[21]=e,t[22]=y):y=t[22];let x;t[23]!==y?(x=n.jsx(Xe,{className:"mt-2 text-[13px] leading-relaxed max-w-[320px] mx-auto",children:y}),t[23]=y,t[24]=x):x=t[24];let j;t[25]!==g||t[26]!==x?(j=n.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[S,n.jsxs(Ee,{className:"relative gap-3",children:[E,n.jsxs("div",{className:"text-center",children:[g,x]})]})]}),t[25]=g,t[26]=x,t[27]=j):j=t[27];let D;t[28]!==a||t[29]!==d?(D=a&&n.jsx("div",{className:"px-6 pb-5",children:n.jsx(ut,{source:"empty_state",onDone:d})}),t[28]=a,t[29]=d,t[30]=D):D=t[30];let k;t[31]!==d||t[32]!==s||t[33]!==r.slug?(k=()=>{s({to:"/$org/settings/ai-providers",params:{org:r.slug}}),d()},t[31]=d,t[32]=s,t[33]=r.slug,t[34]=k):k=t[34];let R;t[35]!==e?(R=e("chat.creditsEmptyState.useYourOwnProvider"),t[35]=e,t[36]=R):R=t[36];let C;t[37]===Symbol.for("react.memo_cache_sentinel")?(C=n.jsx(St,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),t[37]=C):C=t[37];let O;t[38]!==k||t[39]!==R?(O=n.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:k,children:[R,C]}),t[38]=k,t[39]=R,t[40]=O):O=t[40];let B;t[41]!==e?(B=e("chat.creditsEmptyState.skipForNow"),t[41]=e,t[42]=B):B=t[42];let L;t[43]!==d||t[44]!==B?(L=n.jsx(ye,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:d,children:B}),t[43]=d,t[44]=B,t[45]=L):L=t[45];let _;t[46]!==O||t[47]!==L?(_=n.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[O,L]}),t[46]=O,t[47]=L,t[48]=_):_=t[48];let p;t[49]!==j||t[50]!==D||t[51]!==_?(p=n.jsxs(Ne,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ft,children:[j,D,_]}),t[49]=j,t[50]=D,t[51]=_,t[52]=p):p=t[52];let w;return t[53]!==p||t[54]!==m?(w=n.jsx(Ce,{open:!0,onOpenChange:m,children:p}),t[53]=p,t[54]=m,t[55]=w):w=t[55],w}function Ft(t){return t.preventDefault()}function zt(t){const e=F.c(6),{balanceDollars:r}=t;let o;e[0]!==r?(o=r.toFixed(2),e[0]=r,e[1]=o):o=e[1];const s=o;let a,l;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=z("inline-flex items-center gap-1.5 px-3 py-1 rounded-full","bg-success/10 border border-success/20","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),l=n.jsx(Te,{size:13,className:"text-success"}),e[2]=a,e[3]=l):(a=e[2],l=e[3]);let i;return e[4]!==s?(i=n.jsxs("div",{className:a,children:[l,n.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",s," in credits to get started"]})]}),e[4]=s,e[5]=i):i=e[5],i}function Ht(){const t=F.c(8),{org:e}=X(),r=be();let o;t[0]!==r||t[1]!==e.slug?(o=()=>r({to:"/$org/settings/ai-providers",params:{org:e.slug}}),t[0]=r,t[1]=e.slug,t[2]=o):o=t[2];let s,a,l;t[3]===Symbol.for("react.memo_cache_sentinel")?(s=z("inline-flex items-center gap-1.5 px-3 py-1 rounded-lg cursor-pointer","bg-warning/10 border border-warning/20","hover:bg-warning/15","transition-colors duration-150","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),a=n.jsx(Nt,{size:13,className:"text-warning"}),l=n.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),t[3]=s,t[4]=a,t[5]=l):(s=t[3],a=t[4],l=t[5]);let i;return t[6]!==o?(i=n.jsxs("button",{type:"button",onClick:o,className:s,children:[a,l]}),t[6]=o,t[7]=i):i=t[7],i}function Kt(t){const e=F.c(7),{scrollRef:r,sentinelRef:o,hasMoreOlder:s,isFetchingOlder:a,fetchOlderMessages:l}=t;let i,c;e[0]!==l||e[1]!==s||e[2]!==a||e[3]!==r||e[4]!==o?(i=()=>{const d=o.current,u=r.current;if(!d||!u||!s)return;const f=new IntersectionObserver(async m=>{if(!m[0]?.isIntersecting||a||!s)return;const E=u.scrollHeight,v=u.scrollTop;await l(),requestAnimationFrame(()=>{const g=u.scrollHeight;u.scrollTop=v+(g-E)})},{root:u,rootMargin:"200px 0px 0px 0px"});return f.observe(d),()=>f.disconnect()},c=[r,o,s,a,l],e[0]=l,e[1]=s,e[2]=a,e[3]=r,e[4]=o,e[5]=i,e[6]=c):(i=e[5],c=e[6]),T.useEffect(i,c)}function qt(t){const e=F.c(5),{className:r,children:o}=t;let s;e[0]!==r?(s=z("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",r),e[0]=r,e[1]=s):s=e[1];let a;return e[2]!==o||e[3]!==s?(a=n.jsx("div",{className:s,children:o}),e[2]=o,e[3]=s,e[4]=a):a=e[4],a}function Gt(t){const e=F.c(5),{children:r,className:o}=t;let s;e[0]!==o?(s=z("flex-1 min-h-0 overflow-y-auto isolate",o),e[0]=o,e[1]=s):s=e[1];let a;return e[2]!==r||e[3]!==s?(a=n.jsx("div",{className:s,children:r}),e[2]=r,e[3]=s,e[4]=a):a=e[4],a}function Ut(t){const e=F.c(2),{children:r}=t;let o;return e[0]!==r?(o=n.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:r}),e[0]=r,e[1]=o):o=e[1],o}function Qt(){const t=Z(),{messages:e,status:r,hasMoreOlder:o,isFetchingOlder:s,fetchOlderMessages:a}=ve(),{taskId:l}=qe();$t();const i=Ge(l??""),c=Ue(i),d=c.size===0?e:e.filter(x=>!c.has(x.id)),u=ht(d),f=u.at(-1),S=mt()*pt+16,E=T.useRef(null),v=T.useRef(null);Kt({scrollRef:E,sentinelRef:v,hasMoreOlder:o,isFetchingOlder:s,fetchOlderMessages:a});const g=gt({initial:!1}),y=x=>{E.current=x,g.scrollRef(x)};return n.jsx(xt,{messages:e,children:n.jsxs("div",{className:"relative h-full w-full min-w-0",children:[n.jsx("div",{ref:y,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:S},children:n.jsxs("div",{ref:g.contentRef,className:"overflow-x-clip",children:[n.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[n.jsx("div",{ref:v,"aria-hidden":!0,className:"h-px"}),s&&n.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:t("chat.chat.loadingOlderMessages")}),u.slice(0,-1).map((x,j)=>n.jsx(fe,{pair:x,isLastPair:!1,status:j===u.length-1?r:void 0},`pair-${x.user?.id??x.assistant?.id}`))]}),f&&n.jsx("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:n.jsx(fe,{pair:f,isLastPair:!0,status:r},`pair-${f.user?.id??f.assistant?.id}`)})]})}),!g.isAtBottom&&n.jsx(ye,{type:"button",variant:"outline",size:"icon-sm","aria-label":t("chat.chat.jumpToLatest"),className:"absolute left-1/2 z-50 -translate-x-1/2 shadow-md animate-in fade-in duration-200 dark:bg-background dark:hover:bg-accent",style:{bottom:S+8},onClick:()=>{g.scrollToBottom()},children:n.jsx($e,{size:14})})]})})}function Vt(t){const e=F.c(5),{children:r,className:o}=t;let s;e[0]!==o?(s=z("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",o),e[0]=o,e[1]=s):s=e[1];let a;return e[2]!==r||e[3]!==s?(a=n.jsx("div",{className:s,children:r}),e[2]=r,e[3]=s,e[4]=a):a=e[4],a}const Ds=Object.assign(qt,{Main:Gt,Messages:Qt,EmptyState:Ut,Footer:Vt,Input:ft,Provider:Ke,ActiveTaskProvider:He,ThreadlessProvider:ze,IceBreakers:Mt,NoAiProviderEmptyState:vt,CreditsEmptyState:It,CreditsEyebrow:zt,NoCreditsEyebrow:Ht,CreditsExhaustedBanner:dt});function pe(t){return t==="installing"||t==="install-failed"||t==="starting"||t==="start-failed"||t==="running"||t==="crashed"}const Yt={phase:null,lifecycle:{phase:"idle"},status:{state:"running"},branch:{kind:"unknown"},notFound:!1,scripts:[],activeProcesses:[],getBuffer:()=>"",hasData:()=>!1,subscribeChunks:()=>()=>{},subscribeReload:()=>()=>{}},Re=T.createContext(Yt),he=16384;class Wt{data="";append(e){this.data+=e,this.data.length>he&&(this.data=this.data.slice(this.data.length-he))}get(){return this.data}clear(){this.data=""}}const Jt=1e3,Xt=3e4,Zt=3e3,ge=["lifecycle","status","tasks","scripts","branch","reload","file-changed"],xe="log";function es(t){if(!t)return null;try{return new URL("/_sandbox/events",t).href}catch{return null}}function ts(t){return t===404}async function ss(t){try{const e=await fetch(t,{headers:{Accept:"text/event-stream"},cache:"no-store",signal:AbortSignal.timeout(Zt)});return await e.body?.cancel().catch(()=>{}),ts(e.status)}catch{return!1}}function Rs({virtualMcpId:t,branch:e,previewUrl:r=null,enabled:o=!0,children:s}){const{org:a}=X(),l=Ae(),i=Se()?.taskId??null,[c,d]=T.useState(null),[u,f]=T.useState({phase:"idle"}),[m,S]=T.useState({state:"running"}),[E,v]=T.useState({kind:"unknown"}),[g,y]=T.useState(!1),[x,j]=T.useState([]),[D,k]=T.useState([]),[,R]=T.useState(0),C=T.useRef(new Map),O=T.useRef(new Set),B=T.useRef(new Set),L=T.useRef(null),_=es(r),p=Tt(t)?.metadata?.runtime?.selected==="deno",w=b=>{let N=C.current.get(b);return N||(N=new Wt,C.current.set(b,N)),N};T.useEffect(()=>{if(d(null),f({phase:"idle"}),S({state:"running"}),v({kind:"unknown"}),L.current=null,y(!1),j([]),k([]),C.current.clear(),!t||!e||!o)return;const b=Ct({orgSlug:a.slug,virtualMcpId:t,branch:e,threadId:i??null},"events");let N=!1,I=0,Y=null,q=null,G=null,K=null,H=null,W=null;const Le=P=>{try{const M=JSON.parse(P.data);d(M),M.kind!=="failed"&&(y(!1),I=0),M.kind==="ready"&&oe()}catch(M){console.warn("[vm-events] bad phase payload",M)}},ne=()=>{y(!0),d(null),f({phase:"idle"}),S({state:"running"}),v({kind:"unknown"}),j([]),k([]),C.current.clear()},re=P=>{try{const M=JSON.parse(P.data);if(typeof M.data!="string")return;I=0;const $=M.data.replace(/\r?\n/g,`\r
|
|
1
|
+
import{c as F,X,az as Oe,l as z,j as n,E as Me,r as T,b as Z,t as ie,h as ce,d as be,q as ue,B as ye,o as Ae,K as J,aW as de}from"./index-D_7jfHk6.js";import{n as $e}from"./ArrowUp-DR-Jhbl1.js";import{c as Ie,a as ve,e as Fe,u as Se,T as ze,A as He,g as Ke,b as qe,h as Ge,i as Ue}from"./chat-context-UMp8QwjT.js";import{s as Qe,g as je,d as Ve}from"./tool-namespace-BHB8Go32.js";import{c as se,T as Ye,a as We,b as Je}from"./tooltip-BULKkf4A.js";import{c as Ee,d as we,b as Ne,D as Ce,h as Xe}from"./dialog-DRpbbWU1.js";import{d as Ze,b as et,a as tt,D as st}from"./drawer-CXs6iEYK.js";import{C as nt}from"./collection-search-BoB9COGX.js";import{u as rt}from"./use-mobile-DF1FX6Xv.js";import{u as at}from"./use-mcp-client-MUIIizLf.js";import{u as ot,g as lt}from"./use-mcp-prompts-C3siW74f.js";import{c as it,P as ct}from"./usage-stats-Dqycj-p-.js";import{T as ut,d as dt,c as ft,e as mt,H as pt}from"./input-DQp1LVsq.js";import{u as ht,a as gt,S as xt,M as fe}from"./pair-knnOGTuF.js";import{a as bt}from"./use-panel-navigate-C4UE8Qkr.js";import{u as yt}from"./thread-intent-Cxso0qKW.js";import{N as vt}from"./index-BvwJHqHQ.js";import{i as St}from"./LinkBroken01-kK_na_OL.js";import{g as Te}from"./agent-icon-CnnNyirr.js";import{e as jt}from"./use-decopilot-events-uItZ_pJe.js";import{u as Et}from"./use-deco-credits-BgPf-IIH.js";import{F as wt}from"./feature-paywall-0RYA-1Op.js";import{i as Nt}from"./AlertCircle-C3fpFT5I.js";import{b as Ct}from"./sandbox-url-D3mC8qhT.js";import{a as Tt}from"./repository-binding-DpX8yLri.js";import{e as kt}from"./backoff-CrEUbyZT.js";const me=3,ke="inline-flex items-center gap-2 px-5 py-2.5 rounded-full bg-muted text-muted-foreground text-sm font-medium transition-colors cursor-pointer",Pt="flex flex-col gap-1.5 p-4 rounded-xl bg-accent/40 text-sm leading-snug transition-colors cursor-pointer text-left";function Pe(t){const e=F.c(46),{item:r,onSelect:o,isLoading:s,isDisabled:a,variant:l}=t,i=l===void 0?"pill":l,{prompt:c}=r;let d;if(e[0]!==c._meta||e[1]!==c.name||e[2]!==c.title){const C=je(c._meta);d=c.title??Ve(c.name,C),e[0]=c._meta,e[1]=c.name,e[2]=c.title,e[3]=d}else d=e[3];const u=d,f=c.description||null;if(i==="card"){let C;e[4]!==o||e[5]!==c?(C=()=>o(c),e[4]=o,e[5]=c,e[6]=C):C=e[6];const O=a||s,B=s&&"bg-accent/40",L=(a||s)&&"cursor-not-allowed opacity-50";let _;e[7]!==B||e[8]!==L?(_=z(Pt,"hover:bg-accent/60 text-foreground",B,L),e[7]=B,e[8]=L,e[9]=_):_=e[9];let p;e[10]!==u?(p=n.jsx("span",{className:"font-medium truncate capitalize",children:u}),e[10]=u,e[11]=p):p=e[11];let w;e[12]!==s?(w=s&&n.jsx(ce,{size:"xs"}),e[12]=s,e[13]=w):w=e[13];let h;e[14]!==p||e[15]!==w?(h=n.jsxs("div",{className:"flex items-center justify-between gap-2",children:[p,w]}),e[14]=p,e[15]=w,e[16]=h):h=e[16];let b;e[17]!==f?(b=f&&n.jsx("span",{className:"text-xs text-muted-foreground line-clamp-2",children:f}),e[17]=f,e[18]=b):b=e[18];let N;return e[19]!==h||e[20]!==b||e[21]!==C||e[22]!==O||e[23]!==_?(N=n.jsxs("button",{type:"button",onClick:C,disabled:O,className:_,children:[h,b]}),e[19]=h,e[20]=b,e[21]=C,e[22]=O,e[23]=_,e[24]=N):N=e[24],N}let m;e[25]!==o||e[26]!==c?(m=()=>o(c),e[25]=o,e[26]=c,e[27]=m):m=e[27];const S=a||s,E=s&&"bg-muted/50",v=(a||s)&&"cursor-not-allowed opacity-50";let g;e[28]!==E||e[29]!==v?(g=z(ke,"hover:bg-muted/70 hover:text-foreground",E,v),e[28]=E,e[29]=v,e[30]=g):g=e[30];let y;e[31]!==u?(y=n.jsx("span",{className:"capitalize",children:u}),e[31]=u,e[32]=y):y=e[32];let x;e[33]!==s?(x=s&&n.jsx(ce,{size:"xs"}),e[33]=s,e[34]=x):x=e[34];let j;e[35]!==m||e[36]!==S||e[37]!==g||e[38]!==y||e[39]!==x?(j=n.jsx(Ye,{asChild:!0,children:n.jsxs("button",{type:"button",onClick:m,disabled:S,className:g,children:[y,x]})}),e[35]=m,e[36]=S,e[37]=g,e[38]=y,e[39]=x,e[40]=j):j=e[40];const D=f??u;let k;e[41]!==D?(k=n.jsx(We,{side:"top",className:"max-w-xs",children:n.jsx("p",{className:"text-xs",children:D})}),e[41]=D,e[42]=k):k=e[42];let R;return e[43]!==j||e[44]!==k?(R=n.jsxs(Je,{delayDuration:400,children:[j,k]}),e[43]=j,e[44]=k,e[45]=R):R=e[45],R}function Dt(t){const e=F.c(61),{items:r,open:o,onOpenChange:s,onSelect:a,loadingPrompt:l}=t,i=Z(),[c,d]=T.useState(""),u=!!l;let f;e[0]!==r||e[1]!==c?(f=c.trim()?r.filter(p=>{const w=c.toLowerCase();return p.prompt.name.toLowerCase().includes(w)||(p.prompt.title??"").toLowerCase().includes(w)||(p.prompt.description??"").toLowerCase().includes(w)}):r,e[0]=r,e[1]=c,e[2]=f):f=e[2];const m=f,S=rt();let E;e[3]!==m.length||e[4]!==c||e[5]!==i?(E=m.length===0&&n.jsx("p",{className:"col-span-4 text-sm text-muted-foreground text-center py-8",children:i("chat.iceBreakers.noPromptsMatch",{search:c})}),e[3]=m.length,e[4]=c,e[5]=i,e[6]=E):E=e[6];let v;if(e[7]!==m||e[8]!==u||e[9]!==l?.name||e[10]!==s||e[11]!==a){let p;e[13]!==u||e[14]!==l?.name||e[15]!==s||e[16]!==a?(p=w=>n.jsx(Pe,{item:w,variant:"card",onSelect:h=>{s(!1),a(h)},isLoading:l?.name===w.prompt.name,isDisabled:u&&l?.name!==w.prompt.name},w.prompt.name),e[13]=u,e[14]=l?.name,e[15]=s,e[16]=a,e[17]=p):p=e[17],v=m.map(p),e[7]=m,e[8]=u,e[9]=l?.name,e[10]=s,e[11]=a,e[12]=v}else v=e[12];let g;e[18]!==E||e[19]!==v?(g=n.jsx("div",{className:"flex-1 overflow-y-auto [scrollbar-gutter:stable]",children:n.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3 p-5",children:[E,v]})}),e[18]=E,e[19]=v,e[20]=g):g=e[20];const y=g;let x;e[21]!==i?(x=i("chat.iceBreakers.searchPromptsPlaceholder"),e[21]=i,e[22]=x):x=e[22];let j;e[23]===Symbol.for("react.memo_cache_sentinel")?(j=p=>{p.key==="Escape"&&d("")},e[23]=j):j=e[23];let D;e[24]!==c||e[25]!==x?(D=n.jsx(nt,{value:c,onChange:d,placeholder:x,onKeyDown:j}),e[24]=c,e[25]=x,e[26]=D):D=e[26];const k=D;if(S){let p;e[27]!==i?(p=i("chat.iceBreakers.allPromptsTitle"),e[27]=i,e[28]=p):p=e[28];let w;e[29]!==p?(w=n.jsx(Ze,{className:"sr-only",children:n.jsx(et,{children:p})}),e[29]=p,e[30]=w):w=e[30];let h;e[31]!==i?(h=i("chat.iceBreakers.promptsLabel"),e[31]=i,e[32]=h):h=e[32];let b;e[33]!==h?(b=n.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 shrink-0",children:n.jsx("span",{className:"text-sm font-medium text-foreground",children:h})}),e[33]=h,e[34]=b):b=e[34];let N;e[35]!==y||e[36]!==k||e[37]!==b||e[38]!==w?(N=n.jsxs(tt,{className:"h-[85vh] flex flex-col p-0 gap-0",children:[w,b,k,y]}),e[35]=y,e[36]=k,e[37]=b,e[38]=w,e[39]=N):N=e[39];let I;return e[40]!==s||e[41]!==o||e[42]!==N?(I=n.jsx(se,{delayDuration:400,children:n.jsx(st,{open:o,onOpenChange:s,children:N})}),e[40]=s,e[41]=o,e[42]=N,e[43]=I):I=e[43],I}let R;e[44]!==i?(R=i("chat.iceBreakers.allPromptsTitle"),e[44]=i,e[45]=R):R=e[45];let C;e[46]!==R?(C=n.jsx(Ee,{className:"sr-only",children:n.jsx(we,{children:R})}),e[46]=R,e[47]=C):C=e[47];let O;e[48]!==i?(O=i("chat.iceBreakers.promptsLabel"),e[48]=i,e[49]=O):O=e[49];let B;e[50]!==O?(B=n.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 shrink-0",children:n.jsx("span",{className:"text-sm font-medium text-foreground",children:O})}),e[50]=O,e[51]=B):B=e[51];let L;e[52]!==y||e[53]!==k||e[54]!==B||e[55]!==C?(L=n.jsxs(Ne,{className:"sm:max-w-[1100px] h-[680px] p-0 gap-0 overflow-hidden flex flex-col",children:[C,B,k,y]}),e[52]=y,e[53]=k,e[54]=B,e[55]=C,e[56]=L):L=e[56];let _;return e[57]!==s||e[58]!==o||e[59]!==L?(_=n.jsx(se,{delayDuration:400,children:n.jsx(Ce,{open:o,onOpenChange:s,children:L})}),e[57]=s,e[58]=o,e[59]=L,e[60]=_):_=e[60],_}function Rt(t){const e=F.c(30),{items:r,onSelect:o,loadingPrompt:s,className:a}=t,l=Z(),[i,c]=T.useState(!1);if(r.length===0)return null;let d,u,f,m,S;if(e[0]!==a||e[1]!==r||e[2]!==s||e[3]!==o||e[4]!==l){const y=r.slice(0,me),x=r.slice(me),j=!!s;let D;e[10]!==j||e[11]!==s?.name||e[12]!==o?(D=R=>n.jsx(Pe,{item:R,onSelect:o,isLoading:s?.name===R.prompt.name,isDisabled:j&&s?.name!==R.prompt.name},R.prompt.name),e[10]=j,e[11]=s?.name,e[12]=o,e[13]=D):D=e[13];const k=y.map(D);d=se,S=400,e[14]!==a?(u=z("w-full flex flex-wrap gap-2 justify-center",a),e[14]=a,e[15]=u):u=e[15],f=k,m=x.length>0&&n.jsx("button",{type:"button",disabled:j,onClick:()=>c(!0),className:z(ke,"hover:bg-muted/70 hover:text-foreground",j&&"opacity-50 cursor-not-allowed"),children:l("chat.iceBreakers.moreButton",{count:x.length})}),e[0]=a,e[1]=r,e[2]=s,e[3]=o,e[4]=l,e[5]=d,e[6]=u,e[7]=f,e[8]=m,e[9]=S}else d=e[5],u=e[6],f=e[7],m=e[8],S=e[9];let E;e[16]!==u||e[17]!==f||e[18]!==m?(E=n.jsxs("div",{className:u,children:[f,m]}),e[16]=u,e[17]=f,e[18]=m,e[19]=E):E=e[19];let v;e[20]!==r||e[21]!==s||e[22]!==i||e[23]!==o?(v=n.jsx(Dt,{items:r,open:i,onOpenChange:c,onSelect:o,loadingPrompt:s}),e[20]=r,e[21]=s,e[22]=i,e[23]=o,e[24]=v):v=e[24];let g;return e[25]!==d||e[26]!==S||e[27]!==E||e[28]!==v?(g=n.jsxs(d,{delayDuration:S,children:[E,v]}),e[25]=d,e[26]=S,e[27]=E,e[28]=v,e[29]=g):g=e[29],g}function _t(){return null}function Lt(t,e){switch(e.type){case"SELECT_PROMPT":return!e.prompt.arguments||e.prompt.arguments.length===0?{stage:"loading",prompt:e.prompt}:{stage:"idle"};case"START_LOADING":return{stage:"loading",prompt:e.prompt,arguments:e.arguments};case"RESET":return{stage:"idle"};default:return t}}function Bt(t){const e=F.c(31),{connectionId:r}=t,o=Z(),{sendMessage:s}=ve(),{org:a}=X();let l;e[0]!==r||e[1]!==a.id||e[2]!==a.slug?(l={connectionId:r,orgId:a.id,orgSlug:a.slug},e[0]=r,e[1]=a.id,e[2]=a.slug,e[3]=l):l=e[3];const i=at(l);let c;e[4]!==i?(c={client:i,staleTime:6e4},e[4]=i,e[5]=c):c=e[5];const{data:d}=ot(c);let u;e[6]!==d?.prompts?(u=d?.prompts??[],e[6]=d?.prompts,e[7]=u):u=e[7];const f=u;let m;e[8]!==f?(m=f.map(Ot),e[8]=f,e[9]=m):m=e[9];const S=m;let E;e[10]===Symbol.for("react.memo_cache_sentinel")?(E={stage:"idle"},e[10]=E):E=e[10];const[v,g]=T.useReducer(Lt,E),[y,x]=T.useState(null);let j;e[11]!==i||e[12]!==s||e[13]!==o?(j=async(h,b)=>{if(!i){ie.error(o("chat.iceBreakers.mcpClientNotAvailable")),g({type:"RESET"});return}try{const N=await lt(i,h.name,b);g({type:"RESET"});const I={type:"doc",content:[{type:"paragraph",content:[it({id:h.name,name:Qe(h.name,je(h._meta)),metadata:N.messages,char:"/",kind:"prompt",args:b}),{type:"text",text:" "}]}]};await s(I)}catch(N){console.error("[ice-breakers] Failed to fetch prompt:",N),ie.error(o("chat.iceBreakers.failedToLoadPrompt")),g({type:"RESET"})}},e[11]=i,e[12]=s,e[13]=o,e[14]=j):j=e[14];const D=j;let k;e[15]!==D?(k=async h=>{if(h.arguments&&h.arguments.length>0){g({type:"SELECT_PROMPT",prompt:h}),x(h);return}g({type:"START_LOADING",prompt:h}),await D(h)},e[15]=D,e[16]=k):k=e[16];const R=k;let C;e[17]!==y||e[18]!==D?(C=async h=>{y&&(g({type:"START_LOADING",prompt:y,arguments:h}),x(null),await D(y,h))},e[17]=y,e[18]=D,e[19]=C):C=e[19];const O=C;if(S.length===0)return null;const B=v.stage==="loading"?v.prompt:null;let L;e[20]!==R||e[21]!==S||e[22]!==B?(L=n.jsx(Rt,{items:S,onSelect:R,loadingPrompt:B}),e[20]=R,e[21]=S,e[22]=B,e[23]=L):L=e[23];let _;e[24]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{x(null),g({type:"RESET"})},e[24]=_):_=e[24];let p;e[25]!==y||e[26]!==O?(p=n.jsx(ct,{prompt:y,setPrompt:_,onSubmit:O}),e[25]=y,e[26]=O,e[27]=p):p=e[27];let w;return e[28]!==L||e[29]!==p?(w=n.jsxs(n.Fragment,{children:[L,p]}),e[28]=L,e[29]=p,e[30]=w):w=e[30],w}function Ot(t){return{prompt:t}}function Mt(t){const e=F.c(13),{className:r}=t,{selectedVirtualMcp:o}=Ie(),{org:s}=X();let a;e[0]!==s.id?(a=Oe(s.id),e[0]=s.id,e[1]=a):a=e[1];const l=a.id,i=o?.id??l;let c;e[2]!==r?(c=z("w-full @container",r),e[2]=r,e[3]=c):c=e[3];const d=i??"default";let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(_t,{}),e[4]=u):u=e[4];let f;e[5]!==i?(f=n.jsx(Bt,{connectionId:i}),e[5]=i,e[6]=f):f=e[6];let m;e[7]!==d||e[8]!==f?(m=n.jsx(Me,{fallback:null,children:n.jsx(T.Suspense,{fallback:u,children:f},d)}),e[7]=d,e[8]=f,e[9]=m):m=e[9];let S;return e[10]!==c||e[11]!==m?(S=n.jsx("div",{className:c,children:m}),e[10]=c,e[11]=m,e[12]=S):S=e[12],S}function At(t){let e=0;for(const r of t)for(const o of r.parts??[]){const s=o;s.type==="tool-load_repo"&&s.state==="output-available"&&s.output?.success===!0&&e++}return e}function $t(){const t=F.c(8),{openPanel:e}=bt(),r=yt(),o=Fe()?.messages??[],s=Se()?.taskId??null;let a;t[0]!==o?(a=At(o),t[0]=o,t[1]=a):a=t[1];const l=a,i=T.useRef(null),c=T.useRef(null);let d,u;t[2]!==l||t[3]!==r||t[4]!==e||t[5]!==s?(d=()=>{if(!l||!s)return;const f=`${s}:${l}`;c.current!==f&&(c.current=f,r?.refreshThreadMetadata(s)),i.current!==s&&(i.current=s,e("site-editor"))},u=[l,s,e,r],t[2]=l,t[3]=r,t[4]=e,t[5]=s,t[6]=d,t[7]=u):(d=t[6],u=t[7]),T.useEffect(d,u)}function De(t){return`deco-credits-empty-dismissed:${t}`}function Ps(t){try{return localStorage.getItem(De(t))==="1"}catch{return!1}}function It(){const t=F.c(56),e=Z(),{org:r}=X(),o=jt("credits"),s=be(),{decoKeyId:a}=Et(),[l,i]=T.useState(!0);let c;t[0]!==r.id?(c=()=>{ue("credits_empty_state_dismissed",{organization_id:r.id}),i(!1);try{localStorage.setItem(De(r.id),"1")}catch{}},t[0]=r.id,t[1]=c):c=t[1];const d=c;let u,f;if(t[2]!==l||t[3]!==r.id?(u=()=>{l&&ue("credits_empty_state_shown",{organization_id:r.id})},f=[l,r.id],t[2]=l,t[3]=r.id,t[4]=u,t[5]=f):(u=t[4],f=t[5]),T.useEffect(u,f),!l)return null;if(!o){let h;t[6]!==e?(h=e("chat.input.allowanceExhaustedTitle"),t[6]=e,t[7]=h):h=t[7];let b;t[8]!==h?(b={title:h},t[8]=h,t[9]=b):b=t[9];let N;return t[10]!==d||t[11]!==b?(N=n.jsx(wt,{feature:"chat",copy:b,onDismiss:d}),t[10]=d,t[11]=b,t[12]=N):N=t[12],N}let m;t[13]!==d?(m=h=>!h&&d(),t[13]=d,t[14]=m):m=t[14];let S;t[15]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx("div",{className:"absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-warning/8 to-transparent pointer-events-none rounded-t-lg"}),t[15]=S):S=t[15];let E;t[16]===Symbol.for("react.memo_cache_sentinel")?(E=n.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:n.jsx(Te,{size:20,className:"text-warning"})}),t[16]=E):E=t[16];let v;t[17]!==e?(v=e("chat.creditsEmptyState.title"),t[17]=e,t[18]=v):v=t[18];let g;t[19]!==v?(g=n.jsx(we,{className:"text-lg font-semibold",children:v}),t[19]=v,t[20]=g):g=t[20];let y;t[21]!==e?(y=e("chat.creditsEmptyState.description"),t[21]=e,t[22]=y):y=t[22];let x;t[23]!==y?(x=n.jsx(Xe,{className:"mt-2 text-[13px] leading-relaxed max-w-[320px] mx-auto",children:y}),t[23]=y,t[24]=x):x=t[24];let j;t[25]!==g||t[26]!==x?(j=n.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[S,n.jsxs(Ee,{className:"relative gap-3",children:[E,n.jsxs("div",{className:"text-center",children:[g,x]})]})]}),t[25]=g,t[26]=x,t[27]=j):j=t[27];let D;t[28]!==a||t[29]!==d?(D=a&&n.jsx("div",{className:"px-6 pb-5",children:n.jsx(ut,{source:"empty_state",onDone:d})}),t[28]=a,t[29]=d,t[30]=D):D=t[30];let k;t[31]!==d||t[32]!==s||t[33]!==r.slug?(k=()=>{s({to:"/$org/settings/ai-providers",params:{org:r.slug}}),d()},t[31]=d,t[32]=s,t[33]=r.slug,t[34]=k):k=t[34];let R;t[35]!==e?(R=e("chat.creditsEmptyState.useYourOwnProvider"),t[35]=e,t[36]=R):R=t[36];let C;t[37]===Symbol.for("react.memo_cache_sentinel")?(C=n.jsx(St,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),t[37]=C):C=t[37];let O;t[38]!==k||t[39]!==R?(O=n.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:k,children:[R,C]}),t[38]=k,t[39]=R,t[40]=O):O=t[40];let B;t[41]!==e?(B=e("chat.creditsEmptyState.skipForNow"),t[41]=e,t[42]=B):B=t[42];let L;t[43]!==d||t[44]!==B?(L=n.jsx(ye,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:d,children:B}),t[43]=d,t[44]=B,t[45]=L):L=t[45];let _;t[46]!==O||t[47]!==L?(_=n.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[O,L]}),t[46]=O,t[47]=L,t[48]=_):_=t[48];let p;t[49]!==j||t[50]!==D||t[51]!==_?(p=n.jsxs(Ne,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ft,children:[j,D,_]}),t[49]=j,t[50]=D,t[51]=_,t[52]=p):p=t[52];let w;return t[53]!==p||t[54]!==m?(w=n.jsx(Ce,{open:!0,onOpenChange:m,children:p}),t[53]=p,t[54]=m,t[55]=w):w=t[55],w}function Ft(t){return t.preventDefault()}function zt(t){const e=F.c(6),{balanceDollars:r}=t;let o;e[0]!==r?(o=r.toFixed(2),e[0]=r,e[1]=o):o=e[1];const s=o;let a,l;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=z("inline-flex items-center gap-1.5 px-3 py-1 rounded-full","bg-success/10 border border-success/20","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),l=n.jsx(Te,{size:13,className:"text-success"}),e[2]=a,e[3]=l):(a=e[2],l=e[3]);let i;return e[4]!==s?(i=n.jsxs("div",{className:a,children:[l,n.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",s," in credits to get started"]})]}),e[4]=s,e[5]=i):i=e[5],i}function Ht(){const t=F.c(8),{org:e}=X(),r=be();let o;t[0]!==r||t[1]!==e.slug?(o=()=>r({to:"/$org/settings/ai-providers",params:{org:e.slug}}),t[0]=r,t[1]=e.slug,t[2]=o):o=t[2];let s,a,l;t[3]===Symbol.for("react.memo_cache_sentinel")?(s=z("inline-flex items-center gap-1.5 px-3 py-1 rounded-lg cursor-pointer","bg-warning/10 border border-warning/20","hover:bg-warning/15","transition-colors duration-150","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),a=n.jsx(Nt,{size:13,className:"text-warning"}),l=n.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),t[3]=s,t[4]=a,t[5]=l):(s=t[3],a=t[4],l=t[5]);let i;return t[6]!==o?(i=n.jsxs("button",{type:"button",onClick:o,className:s,children:[a,l]}),t[6]=o,t[7]=i):i=t[7],i}function Kt(t){const e=F.c(7),{scrollRef:r,sentinelRef:o,hasMoreOlder:s,isFetchingOlder:a,fetchOlderMessages:l}=t;let i,c;e[0]!==l||e[1]!==s||e[2]!==a||e[3]!==r||e[4]!==o?(i=()=>{const d=o.current,u=r.current;if(!d||!u||!s)return;const f=new IntersectionObserver(async m=>{if(!m[0]?.isIntersecting||a||!s)return;const E=u.scrollHeight,v=u.scrollTop;await l(),requestAnimationFrame(()=>{const g=u.scrollHeight;u.scrollTop=v+(g-E)})},{root:u,rootMargin:"200px 0px 0px 0px"});return f.observe(d),()=>f.disconnect()},c=[r,o,s,a,l],e[0]=l,e[1]=s,e[2]=a,e[3]=r,e[4]=o,e[5]=i,e[6]=c):(i=e[5],c=e[6]),T.useEffect(i,c)}function qt(t){const e=F.c(5),{className:r,children:o}=t;let s;e[0]!==r?(s=z("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",r),e[0]=r,e[1]=s):s=e[1];let a;return e[2]!==o||e[3]!==s?(a=n.jsx("div",{className:s,children:o}),e[2]=o,e[3]=s,e[4]=a):a=e[4],a}function Gt(t){const e=F.c(5),{children:r,className:o}=t;let s;e[0]!==o?(s=z("flex-1 min-h-0 overflow-y-auto isolate",o),e[0]=o,e[1]=s):s=e[1];let a;return e[2]!==r||e[3]!==s?(a=n.jsx("div",{className:s,children:r}),e[2]=r,e[3]=s,e[4]=a):a=e[4],a}function Ut(t){const e=F.c(2),{children:r}=t;let o;return e[0]!==r?(o=n.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:r}),e[0]=r,e[1]=o):o=e[1],o}function Qt(){const t=Z(),{messages:e,status:r,hasMoreOlder:o,isFetchingOlder:s,fetchOlderMessages:a}=ve(),{taskId:l}=qe();$t();const i=Ge(l??""),c=Ue(i),d=c.size===0?e:e.filter(x=>!c.has(x.id)),u=ht(d),f=u.at(-1),S=mt()*pt+16,E=T.useRef(null),v=T.useRef(null);Kt({scrollRef:E,sentinelRef:v,hasMoreOlder:o,isFetchingOlder:s,fetchOlderMessages:a});const g=gt({initial:!1}),y=x=>{E.current=x,g.scrollRef(x)};return n.jsx(xt,{messages:e,children:n.jsxs("div",{className:"relative h-full w-full min-w-0",children:[n.jsx("div",{ref:y,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:S},children:n.jsxs("div",{ref:g.contentRef,className:"overflow-x-clip",children:[n.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[n.jsx("div",{ref:v,"aria-hidden":!0,className:"h-px"}),s&&n.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:t("chat.chat.loadingOlderMessages")}),u.slice(0,-1).map((x,j)=>n.jsx(fe,{pair:x,isLastPair:!1,status:j===u.length-1?r:void 0},`pair-${x.user?.id??x.assistant?.id}`))]}),f&&n.jsx("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:n.jsx(fe,{pair:f,isLastPair:!0,status:r},`pair-${f.user?.id??f.assistant?.id}`)})]})}),!g.isAtBottom&&n.jsx(ye,{type:"button",variant:"outline",size:"icon-sm","aria-label":t("chat.chat.jumpToLatest"),className:"absolute left-1/2 z-50 -translate-x-1/2 shadow-md animate-in fade-in duration-200 dark:bg-background dark:hover:bg-accent",style:{bottom:S+8},onClick:()=>{g.scrollToBottom()},children:n.jsx($e,{size:14})})]})})}function Vt(t){const e=F.c(5),{children:r,className:o}=t;let s;e[0]!==o?(s=z("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",o),e[0]=o,e[1]=s):s=e[1];let a;return e[2]!==r||e[3]!==s?(a=n.jsx("div",{className:s,children:r}),e[2]=r,e[3]=s,e[4]=a):a=e[4],a}const Ds=Object.assign(qt,{Main:Gt,Messages:Qt,EmptyState:Ut,Footer:Vt,Input:ft,Provider:Ke,ActiveTaskProvider:He,ThreadlessProvider:ze,IceBreakers:Mt,NoAiProviderEmptyState:vt,CreditsEmptyState:It,CreditsEyebrow:zt,NoCreditsEyebrow:Ht,CreditsExhaustedBanner:dt});function pe(t){return t==="installing"||t==="install-failed"||t==="starting"||t==="start-failed"||t==="running"||t==="crashed"}const Yt={phase:null,lifecycle:{phase:"idle"},status:{state:"running"},branch:{kind:"unknown"},notFound:!1,scripts:[],activeProcesses:[],getBuffer:()=>"",hasData:()=>!1,subscribeChunks:()=>()=>{},subscribeReload:()=>()=>{}},Re=T.createContext(Yt),he=16384;class Wt{data="";append(e){this.data+=e,this.data.length>he&&(this.data=this.data.slice(this.data.length-he))}get(){return this.data}clear(){this.data=""}}const Jt=1e3,Xt=3e4,Zt=3e3,ge=["lifecycle","status","tasks","scripts","branch","reload","file-changed"],xe="log";function es(t){if(!t)return null;try{return new URL("/_sandbox/events",t).href}catch{return null}}function ts(t){return t===404}async function ss(t){try{const e=await fetch(t,{headers:{Accept:"text/event-stream"},cache:"no-store",signal:AbortSignal.timeout(Zt)});return await e.body?.cancel().catch(()=>{}),ts(e.status)}catch{return!1}}function Rs({virtualMcpId:t,branch:e,previewUrl:r=null,enabled:o=!0,children:s}){const{org:a}=X(),l=Ae(),i=Se()?.taskId??null,[c,d]=T.useState(null),[u,f]=T.useState({phase:"idle"}),[m,S]=T.useState({state:"running"}),[E,v]=T.useState({kind:"unknown"}),[g,y]=T.useState(!1),[x,j]=T.useState([]),[D,k]=T.useState([]),[,R]=T.useState(0),C=T.useRef(new Map),O=T.useRef(new Set),B=T.useRef(new Set),L=T.useRef(null),_=es(r),p=Tt(t)?.metadata?.runtime?.selected==="deno",w=b=>{let N=C.current.get(b);return N||(N=new Wt,C.current.set(b,N)),N};T.useEffect(()=>{if(d(null),f({phase:"idle"}),S({state:"running"}),v({kind:"unknown"}),L.current=null,y(!1),j([]),k([]),C.current.clear(),!t||!e||!o)return;const b=Ct({orgSlug:a.slug,virtualMcpId:t,branch:e,threadId:i??null},"events");let N=!1,I=0,Y=null,q=null,G=null,K=null,H=null,W=null;const Le=P=>{try{const M=JSON.parse(P.data);d(M),M.kind!=="failed"&&(y(!1),I=0),M.kind==="ready"&&oe()}catch(M){console.warn("[vm-events] bad phase payload",M)}},ne=()=>{y(!0),d(null),f({phase:"idle"}),S({state:"running"}),v({kind:"unknown"}),j([]),k([]),C.current.clear()},re=P=>{try{const M=JSON.parse(P.data);if(typeof M.data!="string")return;I=0;const $=M.data.replace(/\r?\n/g,`\r
|
|
2
2
|
`);w(M.source).append($);for(const A of O.current)try{A(M.source,$)}catch{}R(A=>A+1)}catch{}},ae=P=>{const M=P.type;try{const $=JSON.parse(P.data);switch(I=0,M){case"lifecycle":{const A=$;f(A.state);const U=`${a.slug}/${t}/${e}`;if(pe(A.state.phase)&&!(W&&pe(W))){de(l,a.id);const V=J.decofile(U);l.getQueryData(V)===void 0&&l.invalidateQueries({queryKey:V})}A.state.phase==="running"&&W!=="running"&&(de(l,a.id),l.invalidateQueries({queryKey:J.decofile(U)}),l.invalidateQueries({queryKey:J.liveMeta(a.slug,t,e)})),W=A.state.phase;const Q=A.state.phase==="running"?A.state.port:null,te=L.current;if(L.current=Q,te!==null&&Q!==null&&te!==Q)for(const V of B.current)try{V()}catch{}return}case"status":S($);return;case"tasks":{const U=$.active.map(Q=>Q.logName??"").filter(Boolean);k(U);return}case"scripts":j($.scripts);return;case"branch":{const A=$.meta;v(A);return}case"reload":for(const A of B.current)try{A()}catch{}return;case"file-changed":{const{path:A}=$,U=`${a.slug}/${t}/${e}`;if(A.startsWith(".deco/")||A.includes("/.deco/")){if(!(W==="running"))return;G&&clearTimeout(G),G=setTimeout(()=>{if(G=null,l.invalidateQueries({queryKey:J.decofile(U)}),p)for(const V of B.current)try{V()}catch{}},500)}else q&&clearTimeout(q),q=setTimeout(()=>{q=null,l.invalidateQueries({queryKey:J.liveMeta(a.slug,t,e)})},1e3);return}}}catch{}};function ee(){if(N)return;const P=new EventSource(b);K=P,P.onopen=()=>{},P.onerror=()=>{K===P&&P.readyState===EventSource.CLOSED&&le("studio")},P.addEventListener("phase",Le),P.addEventListener("gone",ne),P.addEventListener(xe,re);for(const M of ge)P.addEventListener(M,ae)}function oe(){if(N||!_||H)return;const P=new EventSource(_);H=P;let M=!1;P.onopen=()=>{if(N||H!==P)return;M=!0,I=0;const $=K;K=null,$?.close()},P.onerror=()=>{H===P&&P.readyState===EventSource.CLOSED&&Be(P,M)},P.addEventListener(xe,re);for(const $ of ge)P.addEventListener($,ae)}async function Be(P,M){const $=_?await ss(_):!1;if(!(N||H!==P)){if(P.close(),H=null,$){ne(),K||ee();return}M&&le("direct")}}function le(P){if(N||Y)return;const M=kt(Xt,Jt,I,2,0);I++,Y=setTimeout(()=>{if(Y=null,!N){if(P==="direct"){H?.close(),H=null,oe();return}K?.close(),K=null,ee()}},M)}return ee(),()=>{N=!0,K?.close(),H?.close(),Y&&clearTimeout(Y),q&&clearTimeout(q),G&&clearTimeout(G)}},[t,e,a.slug,a.id,o,i,_,l,p]);const h={phase:c,lifecycle:u,status:m,branch:E,notFound:g,scripts:x,activeProcesses:D,getBuffer:b=>C.current.get(b)?.get()??"",hasData:b=>(C.current.get(b)?.get().length??0)>0,subscribeChunks:b=>(O.current.add(b),()=>{O.current.delete(b)}),subscribeReload:b=>(B.current.add(b),()=>{B.current.delete(b)})};return n.jsx(Re,{value:h,children:s})}function _e(){return T.use(Re)}function _s(t){const{subscribeChunks:e}=_e(),r=T.useRef(t);r.current=t,T.useEffect(()=>e((a,l)=>{r.current?.(a,l)}),[e])}function Ls(t){const{subscribeReload:e}=_e(),r=T.useRef(t);r.current=t,T.useEffect(()=>e(()=>{r.current?.()}),[e])}export{Ds as C,Rs as S,_s as a,Ls as b,_e as u,Ps as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,X as c,a2 as r,K as l,D as d,o as f,e as S}from"./index-
|
|
1
|
+
import{c as u,X as c,a2 as r,K as l,D as d,o as f,e as S}from"./index-D_7jfHk6.js";function C(){const e=u.c(7),{org:o}=c(),a=r();let i;e[0]!==o.id?(i=l.secrets(o.id),e[0]=o.id,e[1]=i):i=e[1];let t;e[2]!==a?(t=async()=>await a.call("SECRET_LIST",{}),e[2]=a,e[3]=t):t=e[3];let s;e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6];const{data:n}=d(s);return n.secrets}function m(){const e=u.c(8),{org:o}=c(),a=r(),i=f();let t;e[0]!==a?(t=async y=>await a.call("SECRET_CREATE",{...y}),e[0]=a,e[1]=t):t=e[1];let s;e[2]!==o||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:l.secrets(o.id)})},e[2]=o,e[3]=i,e[4]=s):s=e[4];let n;return e[5]!==t||e[6]!==s?(n={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=n):n=e[7],S(n)}export{m as a,C as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as z,b as Y,r as S,j as r,l as Z}from"./index-
|
|
1
|
+
import{c as z,b as Y,r as S,j as r,l as Z}from"./index-D_7jfHk6.js";import{a as J,e as K}from"./UserSquare-BMOlWqCu.js";import{d as ee}from"./agent-icon-CnnNyirr.js";import{i as te}from"./SearchMd-BiZNveM1.js";import{D as re,b as se,d as le,c as oe}from"./dialog-DRpbbWU1.js";import{I as ie}from"./input-B0doV0os.js";import{u as Q}from"./use-new-blocks-editor-DZnaAqkX.js";import{ac as ne,o as ce,aO as ae,G as fe,u as de}from"./claim-phase-copy-DG8E1-gc.js";import{d as V,r as ue}from"./section-preview-url-7zfngvgW.js";import{a as me}from"./input-DQp1LVsq.js";const ve=12,D=new Set,q=new Set;function pe(){for(const s of q)s()}function xe(s){return D.has(s)?!0:D.size>=ve?!1:(D.add(s),!0)}function X(s){D.delete(s)&&pe()}function he(s){return q.add(s),()=>{q.delete(s)}}function we(s,e){const t=S.useRef(!1),[m,i]=S.useState(!1),l=S.useRef(null),c=S.useRef(null),u=S.useRef(null),o=S.useRef(s);o.current=s;const[d]=S.useState(()=>{const a=()=>{u.current?.(),u.current=null},f=()=>t.current?!0:xe(e)?(t.current=!0,i(!0),a(),!0):!1;return n=>{if(c.current=n,l.current&&(l.current.disconnect(),l.current=null),a(),!n){t.current&&(X(e),t.current=!1,i(!1));return}queueMicrotask(()=>{if(c.current!==n)return;const w=new IntersectionObserver(v=>{if(v[0]?.isIntersecting??!1){!f()&&!u.current&&(u.current=he(()=>{c.current===n&&f()}));return}a(),t.current&&(X(e),t.current=!1,i(!1))},{root:o.current.current,rootMargin:"160px 0px"});w.observe(n),l.current=w})}});return{ref:d,iframeActive:m}}function ge(s){const e=z.c(9),{previewUrl:t,title:m,scrollRootRef:i,slotId:l}=s,{ref:c,iframeActive:u}=we(i,l),[o,d]=S.useState(!1),a=Q()?K:J;let f;e[0]!==a||e[1]!==u||e[2]!==o||e[3]!==t||e[4]!==m?(f=u?r.jsxs(r.Fragment,{children:[!o&&r.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:r.jsx(a,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),r.jsx("iframe",{src:t,title:`Preview ${m}`,sandbox:"allow-scripts allow-same-origin",referrerPolicy:"no-referrer",className:"pointer-events-none h-[200%] w-[200%] origin-top-left scale-50 border-0 bg-white",tabIndex:-1,onLoad:()=>d(!0)})]}):r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(a,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=a,e[1]=u,e[2]=o,e[3]=t,e[4]=m,e[5]=f):f=e[5];let n;return e[6]!==c||e[7]!==f?(n=r.jsx("div",{ref:c,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:f}),e[6]=c,e[7]=f,e[8]=n):n=e[8],n}function Se(s){const e=z.c(27),{entry:t,previewUrl:m,scrollRootRef:i,onSelect:l}=s,u=Q()?t.isSavedBlock?ee:K:J,o=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let d;e[0]!==o?(d=Z("group flex flex-col overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-lg))] border bg-card text-left transition-colors card-shadow","hover:border-primary/40 hover:bg-accent/30",o),e[0]=o,e[1]=d):d=e[1];let a;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==m||e[5]!==i?(a=r.jsx(ge,{previewUrl:m,title:t.title,scrollRootRef:i,slotId:t.resolveType}),e[2]=t.resolveType,e[3]=t.title,e[4]=m,e[5]=i,e[6]=a):a=e[6];let f;e[7]!==t.isSavedBlock?(f=t.isSavedBlock?{color:fe}:void 0,e[7]=t.isSavedBlock,e[8]=f):f=e[8];let n;e[9]!==u||e[10]!==f?(n=r.jsx(u,{className:"h-4 w-4 shrink-0",style:f}),e[9]=u,e[10]=f,e[11]=n):n=e[11];let w;e[12]!==t.title?(w=r.jsx("p",{className:"truncate text-sm font-medium",children:t.title}),e[12]=t.title,e[13]=w):w=e[13];let v;e[14]!==t.description?(v=t.description&&r.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.description}),e[14]=t.description,e[15]=v):v=e[15];let p;e[16]!==w||e[17]!==v?(p=r.jsxs("div",{className:"min-w-0 flex-1",children:[w,v]}),e[16]=w,e[17]=v,e[18]=p):p=e[18];let h;e[19]!==n||e[20]!==p?(h=r.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[n,p]}),e[19]=n,e[20]=p,e[21]=h):h=e[21];let g;return e[22]!==l||e[23]!==d||e[24]!==a||e[25]!==h?(g=r.jsxs("button",{type:"button",onClick:l,className:d,children:[a,h]}),e[22]=l,e[23]=d,e[24]=a,e[25]=h,e[26]=g):g=e[26],g}function Be(s){const e=z.c(51),{open:t,onOpenChange:m,meta:i,decofile:l,previewBaseUrl:c,onSelect:u}=s,o=Y(),[d,a]=S.useState(""),[f,n]=S.useState(t),w=S.useRef(null);t!==f&&(n(t),t&&a(""));let v,p,h,g,j,N,R,y,b,P,C;if(e[0]!==l||e[1]!==i||e[2]!==m||e[3]!==u||e[4]!==t||e[5]!==c||e[6]!==d||e[7]!==o){const W=t&&i&&l?ne(i,l):[],_=i?ce(i):"",F=l?ae(l):void 0,G=new Map;if(t&&_)for(const x of W)G.set(x.resolveType,V(c,_,x.previewBlock,F));const M=d.trim().toLowerCase(),H=M?W.filter(x=>x.title.toLowerCase().includes(M)||x.resolveType.toLowerCase().includes(M)||x.description?.toLowerCase().includes(M)):W;p=re,P=t,C=m,v=se,R="top-3 right-3",y="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let B;e[19]!==o?(B=o("sectionsEditor.addSectionModal.title"),e[19]=o,e[20]=B):B=e[20];let L;e[21]!==B?(L=r.jsx(le,{children:B}),e[21]=B,e[22]=L):L=e[22];let O;e[23]===Symbol.for("react.memo_cache_sentinel")?(O=r.jsx(te,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[23]=O):O=e[23];let $;e[24]===Symbol.for("react.memo_cache_sentinel")?($=x=>a(x.target.value),e[24]=$):$=e[24];let k;e[25]!==o?(k=o("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=o,e[26]=k):k=e[26];let A;e[27]!==d||e[28]!==k?(A=r.jsxs("div",{className:"relative pt-2",children:[O,r.jsx(ie,{value:d,onChange:$,placeholder:k,className:"h-9 pl-8"})]}),e[27]=d,e[28]=k,e[29]=A):A=e[29],e[30]!==L||e[31]!==A?(b=r.jsxs(oe,{className:"shrink-0 border-b px-4 py-3 text-left",children:[L,A]}),e[30]=L,e[31]=A,e[32]=b):b=e[32],j=w,N="min-h-0 flex-1 overflow-y-auto",h="p-4",g=H.length===0?r.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:o("sectionsEditor.addSectionModal.noSectionsFound")}):r.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:H.map(x=>r.jsx(Se,{entry:x,scrollRootRef:w,previewUrl:G.get(x.resolveType)??V(c,_,x.previewBlock,F),onSelect:()=>u(x)},x.resolveType))}),e[0]=l,e[1]=i,e[2]=m,e[3]=u,e[4]=t,e[5]=c,e[6]=d,e[7]=o,e[8]=v,e[9]=p,e[10]=h,e[11]=g,e[12]=j,e[13]=N,e[14]=R,e[15]=y,e[16]=b,e[17]=P,e[18]=C}else v=e[8],p=e[9],h=e[10],g=e[11],j=e[12],N=e[13],R=e[14],y=e[15],b=e[16],P=e[17],C=e[18];let I;e[33]!==h||e[34]!==g?(I=r.jsx("div",{className:h,children:g}),e[33]=h,e[34]=g,e[35]=I):I=e[35];let T;e[36]!==I||e[37]!==j||e[38]!==N?(T=r.jsx("div",{ref:j,className:N,children:I}),e[36]=I,e[37]=j,e[38]=N,e[39]=T):T=e[39];let U;e[40]!==v||e[41]!==T||e[42]!==R||e[43]!==y||e[44]!==b?(U=r.jsxs(v,{closeButtonClassName:R,className:y,children:[b,T]}),e[40]=v,e[41]=T,e[42]=R,e[43]=y,e[44]=b,e[45]=U):U=e[45];let E;return e[46]!==p||e[47]!==U||e[48]!==P||e[49]!==C?(E=r.jsx(p,{open:P,onOpenChange:C,children:U}),e[46]=p,e[47]=U,e[48]=P,e[49]=C,e[50]=E):E=e[50],E}function Le(s){const e=z.c(4),{previewServerUrl:t,runtime:m}=me(s.virtualMcpId),{url:i}=de(s.virtualMcpId),l=m==="cms";if(i)return i;let c;return e[0]!==l||e[1]!==s.sandboxUrl||e[2]!==t?(c=ue({sandboxUrl:s.sandboxUrl,previewServerUrl:t,fastPreviewActive:l}),e[0]=l,e[1]=s.sandboxUrl,e[2]=t,e[3]=c):c=e[3],c}export{Be as A,Le as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,X as f,a2 as y,m,o as g,e as T,K as l,t as E}from"./index-
|
|
1
|
+
import{c as u,X as f,a2 as y,m,o as g,e as T,K as l,t as E}from"./index-D_7jfHk6.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as O,f,m as S,K as _,ag as R,X as i,a2 as l}from"./index-
|
|
1
|
+
import{c as O,f,m as S,K as _,ag as R,X as i,a2 as l}from"./index-D_7jfHk6.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 n;t[2]!==o?(n=()=>R(o,"TASK_BOARD_ADMIN_ORG_LIST",{}),t[2]=o,t[3]=n):n=t[3];let c;return t[4]!==e||t[5]!==s||t[6]!==n?(c={queryKey:e,enabled:s,queryFn:n,staleTime:3e5},t[4]=e,t[5]=s,t[6]=n,t[7]=c):c=t[7],S(c)}function y(t,o){const e=O.c(14),{locator:s}=i(),n=l();let c;e[0]!==s||e[1]!==o.from||e[2]!==o.org||e[3]!==o.project||e[4]!==o.to||e[5]!==t?(c=_.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]=c):c=e[6];let T;e[7]!==o||e[8]!==n||e[9]!==t?(T=()=>n.call(t,o),e[7]=o,e[8]=n,e[9]=t,e[10]=T):T=e[10];let A;return e[11]!==c||e[12]!==T?(A={queryKey:c,queryFn:T},e[11]=c,e[12]=T,e[13]=A):A=e[13],S(A)}function D(t,o){const e=O.c(15),{locator:s}=i(),n=l();let c;e[0]!==o||e[1]!==s||e[2]!==t.from||e[3]!==t.org||e[4]!==t.project||e[5]!==t.to?(c=_.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]=c):c=e[6];const T=o!==null;let A;e[7]!==o||e[8]!==t||e[9]!==n?(A=()=>n.call("TASK_BOARD_OPERATION_TASKS",{...t,drill:o??""}),e[7]=o,e[8]=t,e[9]=n,e[10]=A):A=e[10];let u;return e[11]!==c||e[12]!==T||e[13]!==A?(u={queryKey:c,enabled:T,queryFn:A},e[11]=c,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};
|
package/dist/client/assets/{use-task-board-events-Bsmaoj96.js → use-task-board-events-BDjHMnwS.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"./task-board-
|
|
1
|
+
import{a as m}from"./task-board-ChFrokIN.js";import{r as e}from"./index-D_7jfHk6.js";import{t as g}from"./watch-sse-pool-BXtoXPGx.js";const p=()=>0;function v(E){const{orgSlug:r,enabled:t=!0,onUpdate:u,onDelete:c,onResync:o}=E,a=e.useRef(u);a.current=u;const f=e.useRef(c);f.current=c;const d=e.useRef(o);d.current=o;const s=e.useRef(null),R=e.useRef(t),i=e.useRef(r);(!s.current||R.current!==t||i.current!==r)&&(R.current=t,i.current=r,s.current=b=>{if(!t||!r)return()=>{};const S=l=>{let n;try{n=JSON.parse(l.data)}catch{return}n.data&&(l.type===m?f.current?.(n.data.id):a.current(n.data)),b()};return g.subscribe(r,S,()=>d.current?.())}),e.useSyncExternalStore(s.current,p,p)}export{v as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as y,V as w,c as h,X as R,a2 as T,o as k,m as O,K as A}from"./index-
|
|
1
|
+
import{r as y,V as w,c as h,X as R,a2 as T,o as k,m as O,K as A}from"./index-D_7jfHk6.js";import{e as B}from"./watch-sse-pool-BXtoXPGx.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 L(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 b(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(L(r)))}catch{}}const v=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 b(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:v}export{j as u};
|
package/dist/client/assets/{use-task-board-items-D9AUaVNI.js → use-task-board-items-DUgOnZAe.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,l as Y,j as H,dX as J,X as z,o as X,K as M,a2 as G,m as V,b as W,e as q,q as Z,t as $}from"./index-
|
|
1
|
+
import{c as C,l as Y,j as H,dX as J,X as z,o as X,K as M,a2 as G,m as V,b as W,e as q,q as Z,t as $}from"./index-D_7jfHk6.js";import{u as ee}from"./use-task-board-events-BDjHMnwS.js";import{b as te}from"./use-decopilot-events-uItZ_pJe.js";function ne(e){const o=C.c(8),{size:l,className:t}=e,s=l===void 0?16:l;let a;o[0]!==s?(a={width:s,height:s},o[0]=s,o[1]=a):a=o[1];let n;o[2]!==t?(n=Y("shrink-0 rounded-full object-cover",t),o[2]=t,o[3]=n):n=o[3];let u;return o[4]!==s||o[5]!==a||o[6]!==n?(u=H.jsx("img",{src:J,alt:"Super Agent",width:s,height:s,style:a,className:n}),o[4]=s,o[5]=a,o[6]=n,o[7]=u):u=o[7],u}function se(e,o){return{queryKey:M.taskBoardItems(e),refetchInterval:6e4,queryFn:async()=>{const{items:l}=await o.call("TASK_BOARD_ITEM_LIST",{});return{items:l}}}}function ae(){const e=C.c(21),{org:o,locator:l}=z(),t=X();let s;e[0]!==l?(s=M.taskBoardItems(l),e[0]=l,e[1]=s):s=e[1];const a=s;let n;e[2]!==l||e[3]!==t||e[4]!==a?(n=m=>{t.cancelQueries({queryKey:a}),t.setQueryData(a,c=>c&&{...c,items:c.items.some(f=>f.id===m.id)?c.items.map(f=>f.id===m.id?m:f):[m,...c.items]}),t.invalidateQueries({queryKey:M.taskBoardActivity(l,m.id)})},e[2]=l,e[3]=t,e[4]=a,e[5]=n):n=e[5];let u,S;e[6]!==t||e[7]!==a?(u=()=>{t.invalidateQueries({queryKey:a})},S=m=>{t.cancelQueries({queryKey:a}),t.setQueryData(a,c=>c&&{...c,items:c.items.filter(f=>f.id!==m)})},e[6]=t,e[7]=a,e[8]=u,e[9]=S):(u=e[8],S=e[9]);let r;e[10]!==o.slug||e[11]!==n||e[12]!==u||e[13]!==S?(r={orgSlug:o.slug,onUpdate:n,onResync:u,onDelete:S},e[10]=o.slug,e[11]=n,e[12]=u,e[13]=S,e[14]=r):r=e[14],ee(r);let y;e[15]!==t||e[16]!==a?(y=m=>{const c=m.subject,f=m.data.status;t.cancelQueries({queryKey:a}),t.setQueryData(a,g=>g&&{...g,items:g.items.map(T=>T.threads.some(E=>E.threadId===c)?{...T,threads:T.threads.map(E=>E.threadId===c?{...E,status:f}:E)}:T)})},e[15]=t,e[16]=a,e[17]=y):y=e[17];let k;e[18]!==o.slug||e[19]!==y?(k={orgSlug:o.slug,onTaskStatus:y},e[18]=o.slug,e[19]=y,e[20]=k):k=e[20],te(k)}function ue(){const e=C.c(9),{locator:o}=z(),l=G();let t;e[0]!==o||e[1]!==l?(t=se(o,l),e[0]=o,e[1]=l,e[2]=t):t=e[2];const s=V(t);ae();let a;e[3]!==s.data?.items?(a=s.data?.items??[],e[3]=s.data?.items,e[4]=a):a=e[4];let n;return e[5]!==s.error||e[6]!==s.isLoading||e[7]!==a?(n={items:a,isLoading:s.isLoading,error:s.error},e[5]=s.error,e[6]=s.isLoading,e[7]=a,e[8]=n):n=e[8],n}function ce(){const e=C.c(70),{org:o,locator:l}=z(),t=G(),s=X(),a=W();let n;e[0]!==l?(n=M.taskBoardItems(l),e[0]=l,e[1]=n):n=e[1];const u=n;let S;e[2]!==s||e[3]!==u?(S=()=>s.invalidateQueries({queryKey:u}),e[2]=s,e[3]=u,e[4]=S):S=e[4];const r=S;let y;e[5]!==t?(y=i=>t.call("TASK_BOARD_ITEM_CREATE",i),e[5]=t,e[6]=y):y=e[6];let k;e[7]!==r||e[8]!==y?(k={mutationFn:y,onSuccess:r},e[7]=r,e[8]=y,e[9]=k):k=e[9];const m=q(k);let c;e[10]!==t?(c=i=>t.call("TASK_BOARD_ITEM_UPDATE",i),e[10]=t,e[11]=c):c=e[11];let f;e[12]!==s||e[13]!==u?(f=async i=>{await s.cancelQueries({queryKey:u});const _=s.getQueryData(u);return s.setQueryData(u,d=>d&&{...d,items:d.items.map(w=>w.id===i.id?{...w,...i,...i.status!==void 0&&i.status!==w.status&&{statusSince:new Date().toISOString()}}:w)}),{previous:_}},e[12]=s,e[13]=u,e[14]=f):f=e[14];let g;e[15]!==o?(g=(i,_)=>{_.status==="done"&&Z("task_marked_done",{organization_id:o.id,task_board_item_id:_.id})},e[15]=o,e[16]=g):g=e[16];let T;e[17]!==s||e[18]!==u?(T=(i,_,d)=>{d?.previous&&s.setQueryData(u,d.previous)},e[17]=s,e[18]=u,e[19]=T):T=e[19];let E;e[20]!==r||e[21]!==l||e[22]!==s?(E=(i,_,d)=>{r(),s.invalidateQueries({queryKey:M.taskBoardActivity(l,d.id)})},e[20]=r,e[21]=l,e[22]=s,e[23]=E):E=e[23];let O;e[24]!==c||e[25]!==f||e[26]!==g||e[27]!==T||e[28]!==E?(O={mutationFn:c,onMutate:f,onSuccess:g,onError:T,onSettled:E},e[24]=c,e[25]=f,e[26]=g,e[27]=T,e[28]=E,e[29]=O):O=e[29];const U=q(O);let B;e[30]!==t?(B=i=>t.call("TASK_BOARD_ITEM_DELETE",{id:i}),e[30]=t,e[31]=B):B=e[31];let A;e[32]!==r||e[33]!==a?(A=i=>{$.error(i instanceof Error&&i.message?i.message:a("taskBoard.taskBoard.deleteError")),r()},e[32]=r,e[33]=a,e[34]=A):A=e[34];let L;e[35]!==r||e[36]!==B||e[37]!==A?(L={mutationFn:B,onSuccess:r,onError:A},e[35]=r,e[36]=B,e[37]=A,e[38]=L):L=e[38];const p=q(L);let I;e[39]!==t?(I=async i=>{const _=await Promise.allSettled(i.map(d=>t.call("TASK_BOARD_ITEM_DELETE",{id:d})));return{total:i.length,failed:_.filter(oe).length}},e[39]=t,e[40]=I):I=e[40];let D,Q;e[41]!==a?(D=i=>{const{total:_,failed:d}=i;d!==0&&$.error(a("taskBoard.taskBoard.deleteBulkError",{failed:String(d),total:String(_)}))},Q=()=>$.error(a("taskBoard.taskBoard.deleteError")),e[41]=a,e[42]=D,e[43]=Q):(D=e[42],Q=e[43]);let j;e[44]!==r||e[45]!==I||e[46]!==D||e[47]!==Q?(j={mutationFn:I,onSuccess:D,onError:Q,onSettled:r},e[44]=r,e[45]=I,e[46]=D,e[47]=Q,e[48]=j):j=e[48];const x=q(j);let h;e[49]!==t?(h=i=>t.call("TASK_BOARD_ITEM_UPDATE",i),e[49]=t,e[50]=h):h=e[50];let F;e[51]!==r||e[52]!==h?(F={mutationFn:h,onSuccess:r},e[51]=r,e[52]=h,e[53]=F):F=e[53];const N=q(F);let K;e[54]!==t?(K=i=>t.call("TASK_BOARD_ITEM_RERUN",i),e[54]=t,e[55]=K):K=e[55];let R;e[56]!==r||e[57]!==l||e[58]!==s?(R=(i,_,d)=>{r(),s.invalidateQueries({queryKey:M.taskBoardActivity(l,d.id)})},e[56]=r,e[57]=l,e[58]=s,e[59]=R):R=e[59];let b;e[60]!==K||e[61]!==R?(b={mutationFn:K,onSettled:R},e[60]=K,e[61]=R,e[62]=b):b=e[62];const P=q(b);let v;return e[63]!==m||e[64]!==N||e[65]!==p||e[66]!==x||e[67]!==P||e[68]!==U?(v={create:m,update:U,remove:p,removeMany:x,link:N,rerun:P},e[63]=m,e[64]=N,e[65]=p,e[66]=x,e[67]=P,e[68]=U,e[69]=v):v=e[69],v}function oe(e){return e.status==="rejected"}export{ne as S,ce as a,ue as b,se as t,ae as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{X as o,a2 as i,r as c,D as d,K as m}from"./index-
|
|
1
|
+
import{X as o,a2 as i,r as c,D as d,K as m}from"./index-D_7jfHk6.js";import{a as T}from"./thread-intent-Cxso0qKW.js";function h(e){const{org:r}=o(),s=i(),n=T(),u=c.useSyncExternalStore(n.threads.subscribe,n.threads.get),a=e===null?null:u.find(t=>t.id===e)??null,{data:l}=d({queryKey:m.ensureTask(r.id,e),queryFn:async()=>{if(e===null)return null;try{const{item:t}=await s.call("COLLECTION_THREADS_GET",{id:e});return t??null}catch{return null}},initialData:a&&!a.partial?a:void 0,select:t=>t?.metadata??null,staleTime:3e4});return a?.metadata??l??null}export{h as u};
|
package/dist/client/assets/{use-thread-analytics-BNWVClHo.js → use-thread-analytics-DJQ2zz_B.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,m as o,f as d,r as A,K as T,ag as y,a8 as E}from"./index-
|
|
1
|
+
import{c as u,m as o,f as d,r as A,K as T,ag as y,a8 as E}from"./index-D_7jfHk6.js";import{a as O}from"./watch-sse-pool-BXtoXPGx.js";function b(){return d({strict:!1}).org??""}function F(){const t=u.c(8),r=b();let e;t[0]!==r?(e=T.threadAnalyticsOrgs(r),t[0]=r,t[1]=e):e=t[1];const s=!!r;let n;t[2]!==r?(n=()=>y(r,"THREAD_ANALYTICS_ORG_LIST",{}),t[2]=r,t[3]=n):n=t[3];let c;return t[4]!==e||t[5]!==s||t[6]!==n?(c={queryKey:e,enabled:s,queryFn:n,staleTime:3e5},t[4]=e,t[5]=s,t[6]=n,t[7]=c):c=t[7],o(c)}const m=3e3,f=new Map,h=new Map;function _(t){let r=h.get(t);return r||(r=e=>{let s=null;const n=()=>{s||(s=setTimeout(()=>{s=null,f.set(t,(f.get(t)??0)+1),e()},m))},c=O.subscribe(t,n,n);return()=>{s&&clearTimeout(s),c()}},h.set(t,r)),r}function q(t,r){const e=u.c(5);let s;e[0]!==r||e[1]!==t?(s=_(t),e[0]=r,e[1]=t,e[2]=s):s=e[2];let n;return e[3]!==t?(n=()=>f.get(t)??0,e[3]=t,e[4]=n):n=e[4],A.useSyncExternalStore(s,n)}function K(t,r){const e=u.c(11),s=b(),n=q(s,r);let c;e[0]!==t||e[1]!==s||e[2]!==n?(c=T.threadAnalytics(s,"live",t,n),e[0]=t,e[1]=s,e[2]=n,e[3]=c):c=e[3];const i=!!s;let a;e[4]!==t||e[5]!==s?(a=()=>y(s,"THREAD_ANALYTICS_LIVE",t),e[4]=t,e[5]=s,e[6]=a):a=e[6];let l;return e[7]!==c||e[8]!==i||e[9]!==a?(l={queryKey:c,enabled:i,queryFn:a,placeholderData:E},e[7]=c,e[8]=i,e[9]=a,e[10]=l):l=e[10],o(l)}function k(t,r){const e=u.c(12),s=b();let n;e[0]!==r||e[1]!==s||e[2]!==t?(n=T.threadAnalytics(s,t,r,0),e[0]=r,e[1]=s,e[2]=t,e[3]=n):n=e[3];const c=!!s;let i;e[4]!==r||e[5]!==s||e[6]!==t?(i=()=>y(s,t,r),e[4]=r,e[5]=s,e[6]=t,e[7]=i):i=e[7];let a;return e[8]!==n||e[9]!==c||e[10]!==i?(a={queryKey:n,enabled:c,queryFn:i},e[8]=n,e[9]=c,e[10]=i,e[11]=a):a=e[11],o(a)}export{K as a,k as b,F as u};
|
package/dist/client/assets/{use-thread-outputs-714c96C6.js → use-thread-outputs-DfIiLAuO.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,X as i,m as l,K as p}from"./index-
|
|
1
|
+
import{c,X as i,m as l,K as p}from"./index-D_7jfHk6.js";import{e as m}from"./chat-context-UMp8QwjT.js";async function f(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=m()?.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=()=>f(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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./infiniteQueryObserver-DG8sBe4B.js";import{df as i}from"./index-D_7jfHk6.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dr as Q,aV as y,ds as w,aU as S,dg as C,o as k,dt as x,du as M,r as p,dv as q,dw as H,dx as B,dy as L,dz as O,dA as P,dB as A}from"./index-
|
|
1
|
+
import{dr as Q,aV as y,ds as w,aU as S,dg as C,o as k,dt as x,du as M,r as p,dv as q,dw as H,dx as B,dy as L,dz as O,dA as P,dB as A}from"./index-D_7jfHk6.js";function R(r,s){const e=new Set(s);return r.filter(t=>!e.has(t))}function z(r,s,e){const t=r.slice(0);return t[s]=e,t}var T=class extends Q{#i;#s;#n;#r;#e;#t;#o;#u;#h;#a=[];constructor(r,s,e){super(),this.#i=r,this.#r=e,this.#n=[],this.#e=[],this.#s=[],this.setQueries(s)}onSubscribe(){this.listeners.size===1&&this.#e.forEach(r=>{r.subscribe(s=>{this.#f(r,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#e.forEach(r=>{r.destroy()})}setQueries(r,s){this.#n=r,this.#r=s,y.batch(()=>{const e=this.#e,t=this.#d(this.#n);t.forEach(o=>o.observer.setOptions(o.defaultedQueryOptions));const i=t.map(o=>o.observer),n=i.map(o=>o.getCurrentResult()),u=e.length!==i.length,c=i.some((o,f)=>o!==e[f]),d=u||c,b=d?!0:n.some((o,f)=>{const g=this.#s[f];return!g||!w(o,g)});!d&&!b||(d&&(this.#a=t,this.#e=i),this.#s=n,this.hasListeners()&&(d&&(R(e,i).forEach(o=>{o.destroy()}),R(i,e).forEach(o=>{o.subscribe(f=>{this.#f(o,f)})})),this.#p()))})}getCurrentResult(){return this.#s}getQueries(){return this.#e.map(r=>r.getCurrentQuery())}getObservers(){return this.#e}getOptimisticResult(r,s){const e=this.#d(r),t=e.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=e.map(n=>n.defaultedQueryOptions.queryHash);return[t,n=>this.#l(n??t,s,i),()=>this.#c(t,e)]}#c(r,s){return s.map((e,t)=>{const i=r[t];return e.defaultedQueryOptions.notifyOnChangeProps?i:e.observer.trackResult(i,n=>{s.forEach(u=>{u.observer.trackProp(n)})})})}#l(r,s,e){if(s){const t=this.#h,i=e!==void 0&&t!==void 0&&(t.length!==e.length||e.some((n,u)=>n!==t[u]));return(!this.#t||this.#s!==this.#u||i||s!==this.#o)&&(this.#o=s,this.#u=this.#s,e!==void 0&&(this.#h=e),this.#t=S(this.#t,s(r))),this.#t}return r}#b(){return this.#r?.combine!==void 0&&this.#e.some((r,s)=>r.options.suspense&&this.#s[s]?.data===void 0)}#d(r){const s=new Map;this.#e.forEach(t=>{const i=t.options.queryHash;if(!i)return;const n=s.get(i);n?n.push(t):s.set(i,[t])});const e=[];return r.forEach(t=>{const i=this.#i.defaultQueryOptions(t),u=s.get(i.queryHash)?.shift()??new C(this.#i,i);e.push({defaultedQueryOptions:i,observer:u})}),e}#f(r,s){const e=this.#e.indexOf(r);e!==-1&&(this.#s=z(this.#s,e,s),this.#p())}#p(){if(this.hasListeners()){const r=this.#c(this.#s,this.#a),s=this.#b(),e=this.#t,t=s?e:this.#l(r,this.#r?.combine);(s||e!==t)&&y.batch(()=>{this.listeners.forEach(i=>{i(this.#s)})})}}};function I({queries:r,...s},e){const t=k(e),i=x(),n=M(),u=p.useMemo(()=>r.map(h=>{const a=t.defaultQueryOptions(h);return a._optimisticResults=i?"isRestoring":"optimistic",a}),[r,t,i]);u.forEach(h=>{q(h);const a=t.getQueryCache().get(h.queryHash);H(h,n,a)}),B(n);const[c]=p.useState(()=>new T(t,u,s)),[d,b,o]=c.getOptimisticResult(u,s.combine),f=!i&&s.subscribed!==!1;p.useSyncExternalStore(p.useCallback(h=>f?c.subscribe(y.batchCalls(h)):L,[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setQueries(u,s)},[u,s,c]);const m=d.some((h,a)=>O(u[a],h))?d.flatMap((h,a)=>{const l=u[a];if(l&&O(l,h)){const E=new C(t,l);return P(l,E,n)}return[]}):[];if(m.length>0)throw Promise.all(m);const v=d.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-DG8sBe4B.js";import{df as u,dq as n}from"./index-D_7jfHk6.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as V,b as q,r as z,a as O,m as Y,e as $,j as t,n as I,K as J,t as Q,B as W}from"./index-
|
|
1
|
+
import{c as V,b as q,r as z,a as O,m as Y,e as $,j as t,n as I,K as J,t as Q,B as W}from"./index-D_7jfHk6.js";import{C as G}from"./collection-table-wrapper-CxJ6Bp-f.js";import{E as L}from"./empty-state-DnQ_qEjI.js";import{S as H}from"./search-input-DpJBHwWo.js";import{A as X}from"./avatar-TL9HUab0.js";import{B as D}from"./badge-CKM84j2S.js";import{u as Z}from"./use-debounced-value-DCB8Le0h.js";import{a as K}from"./admin-fetch-BhTJlAsX.js";import{f as ee}from"./format-time-CjIPQhCN.js";import{g as se}from"./get-initials-D-f_fDFw.js";import"./table-Dfov51xE.js";import"./ArrowUp-DR-Jhbl1.js";import"./SearchMd-BiZNveM1.js";import"./User01-Awky2MVQ.js";import"./differenceInSeconds-C3x8sHUj.js";function ve(){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 a=Z(N,300),{data:R}=O.useSession(),k=R?.user?.id;let n;e[2]!==a?(n=J.deploymentAdminUsers(a),e[2]=a,e[3]=n):n=e[3];let l;e[4]!==a?(l=()=>{const i=new URLSearchParams({limit:"100"});return a&&i.set("searchValue",a),K(`/api/_admin/users?${i}`)},e[4]=a,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=ie,e[9]=w):w=e[9];let y;e[10]!==s?(y={mutationFn:ae,onSuccess:w,onError:i=>{Q.error(i instanceof Error?i.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=i=>t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(X,{url:i.image??void 0,fallback:se(i.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:i.name||s("admin.users.unknown")}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:i.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=i=>i.emailVerified?t.jsx(D,{variant:"outline",className:"text-success border-success/20",children:s("admin.users.verified")}):t.jsx(D,{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:te,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:i=>t.jsx(W,{variant:"outline",size:"sm",disabled:i.id===k||E.isPending,onClick:()=>E.mutate(i.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(H,{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]!==a||e[47]!==A||e[48]!==s?(S=A?t.jsx(L,{title:s("admin.users.failedToLoadTitle"),description:s("admin.users.failedToLoadDescription")}):t.jsx(L,{title:s("admin.users.noUsersFoundTitle"),description:a?s("admin.users.noUsersMatchSearch",{search:a}):s("admin.users.noUsersYet")}),e[46]=a,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(G,{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(I,{children:t.jsx(I.Content,{children:t.jsx(I.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 te(e){return t.jsx("span",{className:"text-sm text-foreground",children:ee(e.createdAt)})}function ie(){window.location.href="/"}function ae(e){return K("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{ve as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as W,s as E,b as k}from"./ZoomOut-
|
|
1
|
+
import{c as W,s as E,b as k}from"./ZoomOut-CQckFmS9.js";import{a as j}from"./Image01-Cxa392ef.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 G(e){return`.deco/blocks/${P(e)}.json`}const v=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 z(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 D(e,t){const n=t.replace(/^\/+|\/+$/g,"");return h(n?`${e==="/"?"":e}/${n}`:e)}function _(e,t){return t==="directory"?e:$(e)}function M(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 S(e,t,n,r=!1){return{files:[...new Set([...e,...n.files])],directories:[...new Set([...t,...n.directories??[]])],truncated:r||!!n.truncated}}function H(e,t){return B(e)>=F&&!t.has(e)}function q(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 U(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 A(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 X(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:k,color:"#64748b"}:{Icon:k,color:T}}function K(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 V(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,b=s(l);let p=b.get(f);p||(p={name:f,path:m,kind:d?"file":"directory",children:[]},l.children.push(p),b.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 J(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 Q(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 w=24;function Y(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>w,u=o?n.slice(s-w):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 Z(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 tt(e){return e.split(`
|
|
3
3
|
`).map(t=>t.replace(/^\d+\t/,"")).join(`
|
|
4
4
|
`)}export{F as E,G as a,L as b,v as c,C as d,V as e,N as f,A as g,Z as h,z as i,_ as j,h as k,X as l,$ as m,K as n,Y as o,H as p,D as q,q as r,tt as s,x as t,Q as u,M as v,J as w,U as x,S as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as K,b as X,r as Z,j as i,l as rt,B as tt,al as ut}from"./index-D6ZKj0d3.js";import{C as ht,a0 as at,F as xt}from"./agent-icon-CqZASRJE.js";import{L as gt}from"./label-SS4h69R5.js";import{S as lt}from"./scroll-area-DrC4kFvC.js";import{S as bt}from"./switch-DbiylKGt.js";import{T as vt,b as yt,a as jt}from"./tooltip-ud1E4lWe.js";import{V as Tt}from"./view-mode-toggle-rvdqWR_F.js";import{ay as ct,az as mt,aA as Nt,aB as _t,aC as kt,aD as U,aE as wt}from"./agent-site-editor-content-hTgzjtkp.js";import"./AlertCircle-DxGlheNv.js";import"./Tool01-B-ugA2BM.js";import"./ArrowUp-B_1yzk0u.js";import"./ArrowLeft-C5TDkvfy.js";import"./LinkBroken01-aiXtOyEy.js";import"./ShoppingBag01-CZ0mlBHZ.js";import"./ZoomOut-DtT7NZBX.js";import"./Building02-aupVb9bk.js";import"./CheckCircle-Ck2nYEsD.js";import"./ChevronUp-CiQJnmx3.js";import"./ChevronSelectorVertical-vEYxYM2o.js";import"./UserSquare-Dbdn52Lc.js";import"./Copy01-CSQiL-8m.js";import"./CreditCard01-Dbsq9vqA.js";import"./DotsVertical-D5VxjRuG.js";import"./Image01-CRH49dh2.js";import"./Globe04-BYAnRXKE.js";import"./SwitchHorizontal01-CUO4Tr7k.js";import"./Key01-DlUQl2kb.js";import"./Link01-CZ9mTgFL.js";import"./LinkExternal01-BNOHDQ-X.js";import"./Monitor01-Dibe2H0E.js";import"./Sun-aaILGBFQ.js";import"./Play-JhD_8p9T.js";import"./Plus-B-VohzJ4.js";import"./SearchMd-B4A8PIUy.js";import"./Trash01--ZO2TG0s.js";import"./Upload01-CNXMP8gQ.js";import"./User01-DqG0FbTZ.js";import"./Users01-Co0Q_ns9.js";import"./XClose-BHLC9coi.js";import"./X-CGpWJ0hX.js";import"./index-BdQq_4o_.js";import"./index-QSc3eGTu.js";import"./agent-view-guard-WwLdd03P.js";import"./use-main-panel-tabs-H7fQ4i6B.js";import"./use-chat-layout-state-BXUQI_Uj.js";import"./use-file-configs-CGY_ert6.js";import"./use-organization-settings-XOD9ESkO.js";import"./schema-DBi1obJz.js";import"./task-board-DFP-fne3.js";import"./site-slug-DebpOoQq.js";import"./repository-binding-DU5xCC2f.js";import"./use-mcp-client-BhAo2QDs.js";import"./auth-DK9f1ZTH.js";import"./thread-route-CaKdVoOw.js";import"./use-panel-navigate-vbXDgGYl.js";import"./use-project-scope-KzlP3xju.js";import"./thread-intent-o4o-MA3S.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-HwFSe36n.js";import"./slugify-CEUa2lfQ.js";import"./use-connection-BLNfspiw.js";import"./use-mcp-tools-Bv_07i-f.js";import"./types-C52Y_JT0.js";import"./utils-CVEq3hMx.js";import"./use-sandbox-events-nw0-bXbS.js";import"./chat-context-BEKkV-Ll.js";import"./autosend-BV2PsimL.js";import"./use-decopilot-events-C_UyGftl.js";import"./use-ai-providers-BLkItyxK.js";import"./use-chat-navigation-0CERUZel.js";import"./location-BjlyegC2.js";import"./tool-namespace-BaO4I7fR.js";import"./dialog-CaizaKQW.js";import"./drawer-Cn362UbS.js";import"./collection-search-BMeq1F4t.js";import"./use-mobile-DsXG93j_.js";import"./use-mcp-prompts-DPLwYnKg.js";import"./usage-stats-qYCfmoBc.js";import"./form-CpErFrQ1.js";import"./input-BR2ZOmYv.js";import"./markdown-29HM3kkf.js";import"./use-copy-Dg2-hZvb.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./input-DWfiFAhX.js";import"./icon-button-BZdEBEfj.js";import"./file-type-icon-CDG1qAi8.js";import"./shell-layout-_Pn7cxIp.js";import"./avatar-CYsgyDk8.js";import"./use-clock-tick-Byjn6Ipz.js";import"./command-Bvxnety0.js";import"./index-CnLkSXZ0.js";import"./integration-icon-BXBLtmJk.js";import"./project-icon-C0Nw8mPG.js";import"./new-project-dialog-pM62WBis.js";import"./repository-import-picker-DbT-KPfC.js";import"./use-navigate-to-agent-_Fy5-uKx.js";import"./repository-picker-CbM65WpS.js";import"./useInfiniteQuery-jncr8EKF.js";import"./infiniteQueryObserver-kLjXQrHB.js";import"./use-debounced-value-DkB41yRZ.js";import"./required-auth-layout-UMnYz1o3.js";import"./use-org-sso-IZ5t5non.js";import"./chat-draft-B0NTSRWz.js";import"./select-BimoKSOp.js";import"./tabs-BwctFHZr.js";import"./use-deco-credits-ODPDFKit.js";import"./toggle-group-Be2zaRQe.js";import"./use-open-billing-url-CUDSWbJf.js";import"./index-BYizWVl-.js";import"./checkbox-CvWHs1zK.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-B69wnZ0x.js";import"./input-CEMJ7uPy.js";import"./suggestion-CO1eCyUL.js";import"./use-org-fs-Df2-ebn-.js";import"./question-004-sINsf4GQ.js";import"./use-members-BA82esMl.js";import"./use-org-auth-client-hM9___IR.js";import"./feature-paywall-DnC43PTT.js";import"./plan-ladder-D3lWJLFO.js";import"./add-connection-dialog-Bs6jGGvh.js";import"./extract-connection-data-WKz3D__i.js";import"./metadata-D72DunRR.js";import"./connection-CeKZpSJo.js";import"./url-slug-DA14zDBr.js";import"./connection-card-BBsdybH0.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-DncV9TJN.js";import"./connection-form-helpers-DTld_nTJ.js";import"./authenticate-and-persist-oauth-JHbhZWlI.js";import"./mcp-oauth-3A9tYRyL.js";import"./collection-tabs-Ba1MLgdh.js";import"./badge-80v1nRPK.js";import"./use-infinite-scroll-979kKqgG.js";import"./useSuspenseInfiniteQuery-rmy_OGLk.js";import"./use-task-board-events-Bsmaoj96.js";import"./pair-H2ebpVnC.js";import"./collapsible-jaPP2OhC.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DXGnetCy.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./sheet-BF6gLW4J.js";import"./use-thread-outputs-714c96C6.js";import"./sandbox-url-D3mC8qhT.js";import"./resolve-tab-icon-sUoI4LWt.js";import"./use-task-metadata-BhK_QNSv.js";import"./virtual-mcp-y87s1o4x.js";import"./feature-gate-CQMKDgiz.js";import"./alert-dialog-D_aRnY2J.js";import"./runnable-block-editor-aiNmn7uQ.js";import"./claim-phase-copy-BL3WW58c.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./utils-Cp3D7BS-.js";import"./monaco-editor-DvydENcY.js";import"./editor-B-nIGllj.js";import"./calendar-7itqlUGW.js";import"./use-new-blocks-editor-BEuQmWCf.js";import"./rich-text-link-control-BloybQa2.js";import"./core.esm-CFyPPg_k.js";import"./sortable.esm-BW2r2TQ5.js";import"./combobox-AP2SQ_RO.js";import"./search-input-IgJHEtUf.js";import"./asset-utils-DPFCQacY.js";import"./sandbox-git-api-C7JbVL7R.js";import"./mustache-Brnm_dXD.js";import"./sandbox-lifecycle-context-KvsIkNFN.js";import"./empty-state-DfNAbSXk.js";import"./empty-state-C3-ZBqZ7.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Ct=new Date(-864e13),Mt=new Date(864e13),At=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,$t=/\/flags\/multivariate\.ts$/;function Lt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function Rt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e,o=typeof t=="string",s=typeof r=="string";if(!o&&!s)return null;const n=o?new Date(t):Ct,a=s?new Date(r):Mt;return Number.isNaN(n.getTime())||Number.isNaN(a.getTime())||o&&s&&a.getTime()<=n.getTime()?null:{start:n,end:a,openStart:!o,openEnd:!s}}function pt(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(Et.has(r)){const o=Rt(e);o&&t.push(o);return}if(St.has(r)){const o=e.matchers;if(Array.isArray(o))for(const s of o)pt(s,t)}}}function Dt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!At.test(t))return!1;const r=e.variants;return Array.isArray(r)}function Ot(e){if(typeof e=="string"){const c=e.trim();if(c.length===0)return null;try{const m=new URL(c).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}if(!e||typeof e!="object")return null;const t=e,r=t.config,s=t.desktop?.media,n=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,s?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const c of n)if(typeof c=="string"&&c.trim().length>0)return c.trim();const a=t.__resolveType;if(typeof a=="string"){const l=(a.split("/").pop()??a).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Pt(e){const t=[];for(let r=0;r<e.length;r++){const o=e[r];typeof o=="number"?t.length>0?t[t.length-1]+=`[${o}]`:t.push(`[${o}]`):t.push(o)}return t.join(" · ")}function Q(e,t,r,o,s){if(Dt(e)){const n=e.variants,a=e.__resolveType,c=$t.test(a)?"":Pt(o);n.forEach((l,m)=>{if(!l||typeof l!="object")return;const p=l,h=[];if(pt(p.rule,h),h.length===0)return;const g=Ot(p.value)??(c||r);for(const u of h)s.push({blockKey:t,blockLabel:r,innerPath:c,variantIndex:m,start:u.start,end:u.end,openStart:u.openStart,openEnd:u.openEnd,label:g,flagResolveType:a})});for(let l=0;l<n.length;l++){const m=n[l];m&&typeof m=="object"&&Q(m.value,t,r,[...o,"variants",l,"value"],s)}return}if(Array.isArray(e)){for(let n=0;n<e.length;n++)Q(e[n],t,r,[...o,n],s);return}if(e&&typeof e=="object")for(const[n,a]of Object.entries(e))n!=="__resolveType"&&Q(a,t,r,[...o,n],s)}function It(e){if(!e)return[];const t=[];for(const[r,o]of Object.entries(e))Q(o,r,Lt(r),[],t);return t.sort((r,o)=>r.start.getTime()-o.start.getTime())}function Vt(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((o,s)=>{const n=s*137.508%360;r.set(o,{bg:`oklch(0.62 0.14 ${n})`,text:"white",border:`oklch(0.50 0.14 ${n})`})}),r}const Bt={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function dt(e,t){return e.get(t)??Bt}const ot=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Ht(e,t){const r=e.openStart?t("sandbox.variantCalendar.always"):ot.format(e.start),o=e.openEnd?t("sandbox.variantCalendar.ongoing"):ot.format(e.end);return`${r} → ${o}`}function Ft(e){const t=K.c(18),{variant:r}=e,o=X();let s;t[0]!==r.blockLabel?(s=i.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=s):s=t[1];let n;t[2]!==r.innerPath?(n=r.innerPath&&i.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=n):n=t[3];let a;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(a=r.label!==r.blockLabel&&r.label!==r.innerPath&&i.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=a):a=t[7];let c;t[8]!==o||t[9]!==r?(c=Ht(r,o),t[8]=o,t[9]=r,t[10]=c):c=t[10];let l;t[11]!==c?(l=i.jsx("div",{className:"mt-1",children:c}),t[11]=c,t[12]=l):l=t[12];let m;return t[13]!==s||t[14]!==n||t[15]!==a||t[16]!==l?(m=i.jsx(jt,{children:i.jsxs("div",{className:"text-xs",children:[s,n,a,l]})}),t[13]=s,t[14]=n,t[15]=a,t[16]=l,t[17]=m):m=t[17],m}const it=16;function zt(e,t){const r=e?"transparent":"#000 0",o=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${r}, #000 ${it}px, #000 calc(100% - ${it}px), ${o})`}function ft(e){const t=K.c(26),{variant:r,color:o,style:s,children:n,fadeStart:a,fadeEnd:c}=e,l=a===void 0?!1:a,m=c===void 0?!1:c;let p;t[0]!==m||t[1]!==l?(p=zt(l,m),t[0]=m,t[1]=l,t[2]=p):p=t[2];const h=p;let f;t[3]!==l?(f=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=l,t[4]=f):f=t[4];let g;t[5]!==m?(g=m&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=m,t[6]=g):g=t[6];let u;t[7]!==h?(u=h&&{maskImage:h,WebkitMaskImage:h},t[7]=h,t[8]=u):u=t[8];let x;t[9]!==o.bg||t[10]!==o.text||t[11]!==s||t[12]!==f||t[13]!==g||t[14]!==u?(x={background:o.bg,color:o.text,borderRadius:4,...f,...g,...u,...s},t[9]=o.bg,t[10]=o.text,t[11]=s,t[12]=f,t[13]=g,t[14]=u,t[15]=x):x=t[15];let b;t[16]!==n?(b=i.jsx("span",{className:"truncate",children:n}),t[16]=n,t[17]=b):b=t[17];let E;t[18]!==x||t[19]!==b?(E=i.jsx(vt,{asChild:!0,children:i.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:x,children:b})}),t[18]=x,t[19]=b,t[20]=E):E=t[20];let T;t[21]!==r?(T=i.jsx(Ft,{variant:r}),t[21]=r,t[22]=T):T=t[22];let d;return t[23]!==T||t[24]!==E?(d=i.jsxs(yt,{children:[E,T]}),t[23]=T,t[24]=E,t[25]=d):d=t[25],d}function fi(e){const t=K.c(72),{decofile:r}=e,o=X(),[s,n]=Z.useState("calendar"),[a,c]=Z.useState(Kt),[l,m]=Z.useState(!1);let p,h,f;if(t[0]!==r||t[1]!==l){const I=It(r);p=I.filter(Ut).length,f=l?I:I.filter(Gt),h=Vt(f.map(Wt)),t[0]=r,t[1]=l,t[2]=p,t[3]=h,t[4]=f}else p=t[2],h=t[3],f=t[4];const g=h;let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=()=>c(mt(new Date)),t[5]=u):u=t[5];const x=u;let b;t[6]!==s?(b=()=>c(I=>s==="calendar"?U(I,-1):U(I,-3)),t[6]=s,t[7]=b):b=t[7];const E=b;let T;t[8]!==s?(T=()=>c(I=>s==="calendar"?U(I,1):U(I,3)),t[8]=s,t[9]=T):T=t[9];const d=T;let v;t[10]!==o?(v=o("sandbox.variantCalendar.today"),t[10]=o,t[11]=v):v=t[11];let y;t[12]!==v?(y=i.jsx(tt,{variant:"outline",size:"sm",onClick:x,children:v}),t[12]=v,t[13]=y):y=t[13];let N;t[14]!==o?(N=o("sandbox.variantCalendar.previous"),t[14]=o,t[15]=N):N=t[15];let A;t[16]===Symbol.for("react.memo_cache_sentinel")?(A=i.jsx(ht,{size:16}),t[16]=A):A=t[16];let _;t[17]!==E||t[18]!==N?(_=i.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:E,"aria-label":N,children:A}),t[17]=E,t[18]=N,t[19]=_):_=t[19];let k;t[20]!==o?(k=o("sandbox.variantCalendar.next"),t[20]=o,t[21]=k):k=t[21];let C;t[22]===Symbol.for("react.memo_cache_sentinel")?(C=i.jsx(ut,{size:16}),t[22]=C):C=t[22];let $;t[23]!==d||t[24]!==k?($=i.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:d,"aria-label":k,children:C}),t[23]=d,t[24]=k,t[25]=$):$=t[25];const L=ct[a.getMonth()];let M;t[26]!==a?(M=a.getFullYear(),t[26]=a,t[27]=M):M=t[27];let w;t[28]!==L||t[29]!==M?(w=i.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[L," ",M]}),t[28]=L,t[29]=M,t[30]=w):w=t[30];let j;t[31]!==$||t[32]!==w||t[33]!==y||t[34]!==_?(j=i.jsxs("div",{className:"flex items-center gap-2",children:[y,_,$,w]}),t[31]=$,t[32]=w,t[33]=y,t[34]=_,t[35]=j):j=t[35];let R;t[36]!==p||t[37]!==l||t[38]!==o?(R=p>0&&i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(bt,{id:"show-ongoing",checked:l,onCheckedChange:m}),i.jsx(gt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:o("sandbox.variantCalendar.showOngoing",{count:p})})]}),t[36]=p,t[37]=l,t[38]=o,t[39]=R):R=t[39];let H;t[40]===Symbol.for("react.memo_cache_sentinel")?(H=i.jsx(at,{}),t[40]=H):H=t[40];let V;t[41]!==o?(V=o("sandbox.variantCalendar.calendarMode"),t[41]=o,t[42]=V):V=t[42];let S;t[43]!==V?(S={value:"calendar",icon:H,label:V},t[43]=V,t[44]=S):S=t[44];let F;t[45]===Symbol.for("react.memo_cache_sentinel")?(F=i.jsx(xt,{}),t[45]=F):F=t[45];let D;t[46]!==o?(D=o("sandbox.variantCalendar.timelineMode"),t[46]=o,t[47]=D):D=t[47];let O;t[48]!==D?(O={value:"timeline",icon:F,label:D},t[48]=D,t[49]=O):O=t[49];let P;t[50]!==S||t[51]!==O?(P=[S,O],t[50]=S,t[51]=O,t[52]=P):P=t[52];let B;t[53]!==P||t[54]!==s?(B=i.jsx(Tt,{value:s,onValueChange:n,options:P}),t[53]=P,t[54]=s,t[55]=B):B=t[55];let z;t[56]!==R||t[57]!==B?(z=i.jsxs("div",{className:"flex items-center gap-4",children:[R,B]}),t[56]=R,t[57]=B,t[58]=z):z=t[58];let W;t[59]!==j||t[60]!==z?(W=i.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,z]}),t[59]=j,t[60]=z,t[61]=W):W=t[61];let G;t[62]!==g||t[63]!==a||t[64]!==p||t[65]!==l||t[66]!==f||t[67]!==s?(G=f.length===0?i.jsx(Yt,{hiddenOngoing:l?0:p}):s==="calendar"?i.jsx(Jt,{monthStart:a,variants:f,colorMap:g}):i.jsx(te,{monthStart:a,variants:f,colorMap:g}),t[62]=g,t[63]=a,t[64]=p,t[65]=l,t[66]=f,t[67]=s,t[68]=G):G=t[68];let q;return t[69]!==W||t[70]!==G?(q=i.jsxs("div",{className:"flex h-full w-full flex-col",children:[W,G]}),t[69]=W,t[70]=G,t[71]=q):q=t[71],q}function Wt(e){return e.blockKey}function Gt(e){return!e.openEnd}function Ut(e){return e.openEnd}function Kt(){return mt(new Date)}function Yt(e){const t=K.c(4),{hiddenOngoing:r}=e,o=r===void 0?0:r,s=X();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(at,{size:24,className:"text-muted-foreground/60"}),t[0]=n):n=t[0];let a;return t[1]!==o||t[2]!==s?(a=i.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[n,o>0?i.jsxs(i.Fragment,{children:[i.jsx("div",{children:s("sandbox.variantCalendar.noDatedVariants")}),i.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.hiddenOngoingVariants",{count:o})})]}):i.jsxs(i.Fragment,{children:[i.jsx("div",{children:s("sandbox.variantCalendar.noScheduledVariants")}),i.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.dateMatcherInfo")})]})]}),t[1]=o,t[2]=s,t[3]=a):a=t[3],a}const et=20,nt=2,st=28,qt=6;function Jt(e){const t=K.c(17),{monthStart:r,variants:o,colorMap:s}=e;let n,a,c,l,m;if(t[0]!==s||t[1]!==r||t[2]!==o){const f=Nt(r),g=_t(new Date);n=lt,m="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:wt.map(Xt)}),t[8]=c):c=t[8],l=f.map((u,x)=>{const b=kt(u,o),E=b.reduce(Qt,0),T=st+E*(et+nt)+8;return i.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[u.map((d,v)=>{const y=d.getMonth()===r.getMonth(),N=d.getTime()===g.getTime();return i.jsx("div",{className:rt("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:i.jsx("span",{className:rt("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:d.getDate()})},v)}),b.map((d,v)=>{const y=dt(s,d.variant.blockKey),N=st+d.lane*(et+nt),A=d.leftUnits/7*100,_=d.widthUnits/7*100,k=d.variant.openStart&&x===0,C=d.variant.openEnd&&x===f.length-1;return i.jsxs(ft,{variant:d.variant,color:y,fadeStart:k,fadeEnd:C,style:{top:N,left:`calc(${A}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:qt,height:et},children:[d.variant.blockLabel,d.variant.label!==d.variant.blockLabel&&i.jsxs("span",{className:"opacity-70",children:[" · ",d.variant.label]})]},`${x}-${v}`)})]},x)}),t[0]=s,t[1]=r,t[2]=o,t[3]=n,t[4]=a,t[5]=c,t[6]=l,t[7]=m}else n=t[3],a=t[4],c=t[5],l=t[6],m=t[7];let p;t[9]!==a||t[10]!==c||t[11]!==l?(p=i.jsxs("div",{className:a,children:[c,l]}),t[9]=a,t[10]=c,t[11]=l,t[12]=p):p=t[12];let h;return t[13]!==n||t[14]!==m||t[15]!==p?(h=i.jsx(n,{className:m,children:p}),t[13]=n,t[14]=m,t[15]=p,t[16]=h):h=t[16],h}function Qt(e,t){return Math.max(e,t.lane+1)}function Xt(e){return i.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const J=4,Zt=32,Y=240;function te(e){const t=K.c(23),{monthStart:r,variants:o,colorMap:s}=e,n=r,a=U(r,J),c=new Date,l=new Map;for(const w of o){const j=l.get(w.blockKey)??[];j.push(w),l.set(w.blockKey,j)}const m=Array.from(l.entries()).sort(oe),p=a.getTime()-n.getTime(),h=w=>(Math.max(n.getTime(),Math.min(a.getTime(),w.getTime()))-n.getTime())/p*100;let f;t[0]!==n?(f=(w,j)=>U(n,j),t[0]=n,t[1]=f):f=t[1];const g=Array.from({length:J},f),u=c.getTime()>=n.getTime()&&c.getTime()<=a.getTime()?h(c):null,x=X(),b=lt,E="flex-1 min-h-0",T="min-w-[900px] relative";let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d={width:Y},t[2]=d):d=t[2];let v;t[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),t[3]=x,t[4]=v):v=t[4];let y;t[5]!==v?(y=i.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:d,children:v}),t[5]=v,t[6]=y):y=t[6];let N;t[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},t[7]=N):N=t[7];const A=g.map(re);let _;t[8]!==A?(_=i.jsx("div",{className:"flex-1 grid",style:N,children:A}),t[8]=A,t[9]=_):_=t[9];let k;t[10]!==y||t[11]!==_?(k=i.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),t[10]=y,t[11]=_,t[12]=k):k=t[12];let C;t[13]!==x||t[14]!==u?(C=u!==null&&i.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) * ${u} / 100)`},children:i.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),t[13]=x,t[14]=u,t[15]=C):C=t[15];const $=m.map(w=>{const[j,R]=w,H=dt(s,j),V=R[0]?.blockLabel??j;return i.jsxs("div",{children:[i.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:i.jsx("div",{className:"px-3 truncate",style:{width:Y},children:V})}),R.map((S,F)=>i.jsxs("div",{className:"flex border-b items-center",style:{height:Zt},children:[i.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[i.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:H.bg}}),i.jsx("span",{className:"truncate text-foreground/80",children:S.label})]}),i.jsxs("div",{className:"relative flex-1 h-full",children:[i.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},children:g.map(ee)}),(()=>{const D=Math.max(S.start.getTime(),n.getTime()),O=Math.min(S.end.getTime(),a.getTime());if(O<=D)return null;const P=h(new Date(D)),B=h(new Date(O))-P;return i.jsx(ft,{variant:S,color:H,fadeStart:S.openStart,fadeEnd:S.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${B}% - 2px)`,height:22},children:S.label})})()]})]},F))]},j)});let L;t[16]!==k||t[17]!==C||t[18]!==$?(L=i.jsxs("div",{className:T,children:[k,C,$]}),t[16]=k,t[17]=C,t[18]=$,t[19]=L):L=t[19];let M;return t[20]!==b||t[21]!==L?(M=i.jsx(b,{className:E,children:L}),t[20]=b,t[21]=L,t[22]=M):M=t[22],M}function ee(e,t){return i.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function re(e,t){return i.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ct[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function oe(e,t){return e[0].localeCompare(t[0])}export{fi as VariantCalendar};
|
|
1
|
+
import{c as K,b as X,r as Z,j as i,l as rt,B as tt,al as ut}from"./index-D_7jfHk6.js";import{C as ht,a0 as at,F as xt}from"./agent-icon-CnnNyirr.js";import{L as gt}from"./label-DxOPcXJe.js";import{S as lt}from"./scroll-area-Ce9NeF1s.js";import{S as bt}from"./switch-hSsSQMgC.js";import{T as vt,b as yt,a as jt}from"./tooltip-BULKkf4A.js";import{V as Tt}from"./view-mode-toggle-CVVPadaN.js";import{ay as ct,az as mt,aA as Nt,aB as _t,aC as kt,aD as U,aE as wt}from"./agent-site-editor-content-EotWUMUT.js";import"./AlertCircle-C3fpFT5I.js";import"./Tool01-Blw6F5iV.js";import"./ArrowUp-DR-Jhbl1.js";import"./ArrowLeft-C1IFj0Ic.js";import"./LinkBroken01-kK_na_OL.js";import"./ShoppingBag01-o0DdjJD9.js";import"./ZoomOut-CQckFmS9.js";import"./Building02-uHT4KVtK.js";import"./CheckCircle-BKHstO_Q.js";import"./ChevronUp-CceLPRrE.js";import"./ChevronSelectorVertical-DAO6R1Op.js";import"./UserSquare-BMOlWqCu.js";import"./Copy01-Dx3ZT0bA.js";import"./CreditCard01-Dko0T335.js";import"./DotsVertical-aHYBPlin.js";import"./Image01-Cxa392ef.js";import"./Globe04-BDe-0jS0.js";import"./SwitchHorizontal01-Bx3d-jDI.js";import"./Key01-BHiUNW_5.js";import"./Link01-BRZRc4wX.js";import"./LinkExternal01-CILXo-bC.js";import"./Monitor01-Cl4JLYVa.js";import"./Sun-BYGxydmh.js";import"./Play-CzTcIQz_.js";import"./Plus-nldAzVeQ.js";import"./SearchMd-BiZNveM1.js";import"./Trash01-DAoFHSpp.js";import"./Upload01-CtKBhqsv.js";import"./User01-Awky2MVQ.js";import"./Users01-D7ZFKC4W.js";import"./XClose-DBJ7sD1T.js";import"./X-DzPShgV5.js";import"./index-BdQq_4o_.js";import"./index-D1CuHcEn.js";import"./agent-view-guard-Bf5Bn5K4.js";import"./use-main-panel-tabs-xXeWrfnF.js";import"./use-chat-layout-state-DDDFQN6Y.js";import"./use-file-configs-By7UB_YZ.js";import"./use-organization-settings-CB0-LYjl.js";import"./schema-D1veJPjJ.js";import"./task-board-ChFrokIN.js";import"./site-slug-DebpOoQq.js";import"./repository-binding-DpX8yLri.js";import"./use-mcp-client-MUIIizLf.js";import"./auth-Cps-90jQ.js";import"./thread-route-CW2be8Kx.js";import"./use-panel-navigate-C4UE8Qkr.js";import"./use-project-scope-BMVXwaQ4.js";import"./thread-intent-Cxso0qKW.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BXtoXPGx.js";import"./slugify-CEUa2lfQ.js";import"./use-connection-5LUEsGlJ.js";import"./use-mcp-tools-CPLGkZB5.js";import"./types-Blm6OQRg.js";import"./utils-CVEq3hMx.js";import"./use-sandbox-events-E2bKOQlM.js";import"./chat-context-UMp8QwjT.js";import"./autosend-BQ3F90GX.js";import"./use-decopilot-events-uItZ_pJe.js";import"./use-ai-providers-C1bb7SnA.js";import"./use-chat-navigation-BF9opsK8.js";import"./location-BjlyegC2.js";import"./tool-namespace-BHB8Go32.js";import"./dialog-DRpbbWU1.js";import"./drawer-CXs6iEYK.js";import"./collection-search-BoB9COGX.js";import"./use-mobile-DF1FX6Xv.js";import"./use-mcp-prompts-C3siW74f.js";import"./usage-stats-Dqycj-p-.js";import"./form-BBtB5neb.js";import"./input-B0doV0os.js";import"./markdown-6zdu9t3J.js";import"./use-copy-CRIUfo35.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./input-DQp1LVsq.js";import"./icon-button-BiR7Hy07.js";import"./file-type-icon-Du5QihE_.js";import"./shell-layout-B0-NcUCt.js";import"./avatar-TL9HUab0.js";import"./use-clock-tick-DGTQe72H.js";import"./command-Doiz3O29.js";import"./index-DltLvtZg.js";import"./integration-icon-BM3EOzpn.js";import"./project-icon-DU1uywdD.js";import"./new-project-dialog-CXEwhrv6.js";import"./repository-import-picker-CO5nKRxA.js";import"./use-navigate-to-agent-p65xWFDF.js";import"./repository-picker-C2HnHK1A.js";import"./useInfiniteQuery-eYXaZ_bo.js";import"./infiniteQueryObserver-DG8sBe4B.js";import"./use-debounced-value-DCB8Le0h.js";import"./required-auth-layout-CDif9NZC.js";import"./use-org-sso-BEGhJLya.js";import"./chat-draft-CYy-Qv-a.js";import"./select-CZdnCwuC.js";import"./tabs-Df848FrP.js";import"./use-deco-credits-BgPf-IIH.js";import"./toggle-group-BFX-9eHs.js";import"./use-open-billing-url-CqJ0vDkP.js";import"./index-BvwJHqHQ.js";import"./checkbox-B2kVXKBD.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-C2vJrXky.js";import"./input-BQ74PHN6.js";import"./suggestion-DmBBrXFD.js";import"./use-org-fs-DPxqVRhB.js";import"./question-004-sINsf4GQ.js";import"./use-members-vjX9lJhj.js";import"./use-org-auth-client-CuZ7oLTb.js";import"./feature-paywall-0RYA-1Op.js";import"./plan-ladder-DlpzxobM.js";import"./add-connection-dialog-Eph5CbUo.js";import"./extract-connection-data-Q_j_fmQx.js";import"./metadata-D72DunRR.js";import"./connection-FKmTBjan.js";import"./url-slug-d-Er1jOR.js";import"./connection-card-Cvk5T5vt.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-DaHaRA0Z.js";import"./connection-form-helpers-D4Q7rLyt.js";import"./authenticate-and-persist-oauth-eDHShxj5.js";import"./mcp-oauth-C5T-IVs8.js";import"./collection-tabs-Cw7XLgNG.js";import"./badge-CKM84j2S.js";import"./use-infinite-scroll-B02yfFGd.js";import"./useSuspenseInfiniteQuery-i_drPWHc.js";import"./use-task-board-events-BDjHMnwS.js";import"./pair-knnOGTuF.js";import"./collapsible-vN3Y9B-p.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-D5zA7BfR.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./sheet-Gpaizien.js";import"./use-thread-outputs-DfIiLAuO.js";import"./sandbox-url-D3mC8qhT.js";import"./resolve-tab-icon-S311kwwr.js";import"./use-task-metadata-BCqsxDXx.js";import"./virtual-mcp-CYDFCAA6.js";import"./feature-gate-CFL9eB8c.js";import"./alert-dialog-kjq4dW3k.js";import"./runnable-block-editor-BWSWYcJ-.js";import"./claim-phase-copy-DG8E1-gc.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./utils-Cxy1EsFU.js";import"./monaco-editor-BfKI4VlA.js";import"./editor-CPkkN1Zr.js";import"./calendar-DaaBbvOH.js";import"./use-new-blocks-editor-DZnaAqkX.js";import"./rich-text-link-control-CMeXviAY.js";import"./core.esm-DbclD67Y.js";import"./sortable.esm-DyjKGVzh.js";import"./combobox-PSOtDaya.js";import"./search-input-DpJBHwWo.js";import"./asset-utils-Cdgz7yau.js";import"./sandbox-git-api-C7JbVL7R.js";import"./mustache-D-VzFUJG.js";import"./sandbox-lifecycle-context-BJE24h7z.js";import"./empty-state-D45gZaZ-.js";import"./empty-state-DnQ_qEjI.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Ct=new Date(-864e13),Mt=new Date(864e13),At=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,$t=/\/flags\/multivariate\.ts$/;function Lt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function Rt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e,o=typeof t=="string",s=typeof r=="string";if(!o&&!s)return null;const n=o?new Date(t):Ct,a=s?new Date(r):Mt;return Number.isNaN(n.getTime())||Number.isNaN(a.getTime())||o&&s&&a.getTime()<=n.getTime()?null:{start:n,end:a,openStart:!o,openEnd:!s}}function pt(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(Et.has(r)){const o=Rt(e);o&&t.push(o);return}if(St.has(r)){const o=e.matchers;if(Array.isArray(o))for(const s of o)pt(s,t)}}}function Dt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!At.test(t))return!1;const r=e.variants;return Array.isArray(r)}function Ot(e){if(typeof e=="string"){const c=e.trim();if(c.length===0)return null;try{const m=new URL(c).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}if(!e||typeof e!="object")return null;const t=e,r=t.config,s=t.desktop?.media,n=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,s?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const c of n)if(typeof c=="string"&&c.trim().length>0)return c.trim();const a=t.__resolveType;if(typeof a=="string"){const l=(a.split("/").pop()??a).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Pt(e){const t=[];for(let r=0;r<e.length;r++){const o=e[r];typeof o=="number"?t.length>0?t[t.length-1]+=`[${o}]`:t.push(`[${o}]`):t.push(o)}return t.join(" · ")}function Q(e,t,r,o,s){if(Dt(e)){const n=e.variants,a=e.__resolveType,c=$t.test(a)?"":Pt(o);n.forEach((l,m)=>{if(!l||typeof l!="object")return;const p=l,h=[];if(pt(p.rule,h),h.length===0)return;const g=Ot(p.value)??(c||r);for(const u of h)s.push({blockKey:t,blockLabel:r,innerPath:c,variantIndex:m,start:u.start,end:u.end,openStart:u.openStart,openEnd:u.openEnd,label:g,flagResolveType:a})});for(let l=0;l<n.length;l++){const m=n[l];m&&typeof m=="object"&&Q(m.value,t,r,[...o,"variants",l,"value"],s)}return}if(Array.isArray(e)){for(let n=0;n<e.length;n++)Q(e[n],t,r,[...o,n],s);return}if(e&&typeof e=="object")for(const[n,a]of Object.entries(e))n!=="__resolveType"&&Q(a,t,r,[...o,n],s)}function It(e){if(!e)return[];const t=[];for(const[r,o]of Object.entries(e))Q(o,r,Lt(r),[],t);return t.sort((r,o)=>r.start.getTime()-o.start.getTime())}function Vt(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((o,s)=>{const n=s*137.508%360;r.set(o,{bg:`oklch(0.62 0.14 ${n})`,text:"white",border:`oklch(0.50 0.14 ${n})`})}),r}const Bt={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function dt(e,t){return e.get(t)??Bt}const ot=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Ht(e,t){const r=e.openStart?t("sandbox.variantCalendar.always"):ot.format(e.start),o=e.openEnd?t("sandbox.variantCalendar.ongoing"):ot.format(e.end);return`${r} → ${o}`}function Ft(e){const t=K.c(18),{variant:r}=e,o=X();let s;t[0]!==r.blockLabel?(s=i.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=s):s=t[1];let n;t[2]!==r.innerPath?(n=r.innerPath&&i.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=n):n=t[3];let a;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(a=r.label!==r.blockLabel&&r.label!==r.innerPath&&i.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=a):a=t[7];let c;t[8]!==o||t[9]!==r?(c=Ht(r,o),t[8]=o,t[9]=r,t[10]=c):c=t[10];let l;t[11]!==c?(l=i.jsx("div",{className:"mt-1",children:c}),t[11]=c,t[12]=l):l=t[12];let m;return t[13]!==s||t[14]!==n||t[15]!==a||t[16]!==l?(m=i.jsx(jt,{children:i.jsxs("div",{className:"text-xs",children:[s,n,a,l]})}),t[13]=s,t[14]=n,t[15]=a,t[16]=l,t[17]=m):m=t[17],m}const it=16;function zt(e,t){const r=e?"transparent":"#000 0",o=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${r}, #000 ${it}px, #000 calc(100% - ${it}px), ${o})`}function ft(e){const t=K.c(26),{variant:r,color:o,style:s,children:n,fadeStart:a,fadeEnd:c}=e,l=a===void 0?!1:a,m=c===void 0?!1:c;let p;t[0]!==m||t[1]!==l?(p=zt(l,m),t[0]=m,t[1]=l,t[2]=p):p=t[2];const h=p;let f;t[3]!==l?(f=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=l,t[4]=f):f=t[4];let g;t[5]!==m?(g=m&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=m,t[6]=g):g=t[6];let u;t[7]!==h?(u=h&&{maskImage:h,WebkitMaskImage:h},t[7]=h,t[8]=u):u=t[8];let x;t[9]!==o.bg||t[10]!==o.text||t[11]!==s||t[12]!==f||t[13]!==g||t[14]!==u?(x={background:o.bg,color:o.text,borderRadius:4,...f,...g,...u,...s},t[9]=o.bg,t[10]=o.text,t[11]=s,t[12]=f,t[13]=g,t[14]=u,t[15]=x):x=t[15];let b;t[16]!==n?(b=i.jsx("span",{className:"truncate",children:n}),t[16]=n,t[17]=b):b=t[17];let E;t[18]!==x||t[19]!==b?(E=i.jsx(vt,{asChild:!0,children:i.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:x,children:b})}),t[18]=x,t[19]=b,t[20]=E):E=t[20];let T;t[21]!==r?(T=i.jsx(Ft,{variant:r}),t[21]=r,t[22]=T):T=t[22];let d;return t[23]!==T||t[24]!==E?(d=i.jsxs(yt,{children:[E,T]}),t[23]=T,t[24]=E,t[25]=d):d=t[25],d}function fi(e){const t=K.c(72),{decofile:r}=e,o=X(),[s,n]=Z.useState("calendar"),[a,c]=Z.useState(Kt),[l,m]=Z.useState(!1);let p,h,f;if(t[0]!==r||t[1]!==l){const I=It(r);p=I.filter(Ut).length,f=l?I:I.filter(Gt),h=Vt(f.map(Wt)),t[0]=r,t[1]=l,t[2]=p,t[3]=h,t[4]=f}else p=t[2],h=t[3],f=t[4];const g=h;let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=()=>c(mt(new Date)),t[5]=u):u=t[5];const x=u;let b;t[6]!==s?(b=()=>c(I=>s==="calendar"?U(I,-1):U(I,-3)),t[6]=s,t[7]=b):b=t[7];const E=b;let T;t[8]!==s?(T=()=>c(I=>s==="calendar"?U(I,1):U(I,3)),t[8]=s,t[9]=T):T=t[9];const d=T;let v;t[10]!==o?(v=o("sandbox.variantCalendar.today"),t[10]=o,t[11]=v):v=t[11];let y;t[12]!==v?(y=i.jsx(tt,{variant:"outline",size:"sm",onClick:x,children:v}),t[12]=v,t[13]=y):y=t[13];let N;t[14]!==o?(N=o("sandbox.variantCalendar.previous"),t[14]=o,t[15]=N):N=t[15];let A;t[16]===Symbol.for("react.memo_cache_sentinel")?(A=i.jsx(ht,{size:16}),t[16]=A):A=t[16];let _;t[17]!==E||t[18]!==N?(_=i.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:E,"aria-label":N,children:A}),t[17]=E,t[18]=N,t[19]=_):_=t[19];let k;t[20]!==o?(k=o("sandbox.variantCalendar.next"),t[20]=o,t[21]=k):k=t[21];let C;t[22]===Symbol.for("react.memo_cache_sentinel")?(C=i.jsx(ut,{size:16}),t[22]=C):C=t[22];let $;t[23]!==d||t[24]!==k?($=i.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:d,"aria-label":k,children:C}),t[23]=d,t[24]=k,t[25]=$):$=t[25];const L=ct[a.getMonth()];let M;t[26]!==a?(M=a.getFullYear(),t[26]=a,t[27]=M):M=t[27];let w;t[28]!==L||t[29]!==M?(w=i.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[L," ",M]}),t[28]=L,t[29]=M,t[30]=w):w=t[30];let j;t[31]!==$||t[32]!==w||t[33]!==y||t[34]!==_?(j=i.jsxs("div",{className:"flex items-center gap-2",children:[y,_,$,w]}),t[31]=$,t[32]=w,t[33]=y,t[34]=_,t[35]=j):j=t[35];let R;t[36]!==p||t[37]!==l||t[38]!==o?(R=p>0&&i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(bt,{id:"show-ongoing",checked:l,onCheckedChange:m}),i.jsx(gt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:o("sandbox.variantCalendar.showOngoing",{count:p})})]}),t[36]=p,t[37]=l,t[38]=o,t[39]=R):R=t[39];let H;t[40]===Symbol.for("react.memo_cache_sentinel")?(H=i.jsx(at,{}),t[40]=H):H=t[40];let V;t[41]!==o?(V=o("sandbox.variantCalendar.calendarMode"),t[41]=o,t[42]=V):V=t[42];let S;t[43]!==V?(S={value:"calendar",icon:H,label:V},t[43]=V,t[44]=S):S=t[44];let F;t[45]===Symbol.for("react.memo_cache_sentinel")?(F=i.jsx(xt,{}),t[45]=F):F=t[45];let D;t[46]!==o?(D=o("sandbox.variantCalendar.timelineMode"),t[46]=o,t[47]=D):D=t[47];let O;t[48]!==D?(O={value:"timeline",icon:F,label:D},t[48]=D,t[49]=O):O=t[49];let P;t[50]!==S||t[51]!==O?(P=[S,O],t[50]=S,t[51]=O,t[52]=P):P=t[52];let B;t[53]!==P||t[54]!==s?(B=i.jsx(Tt,{value:s,onValueChange:n,options:P}),t[53]=P,t[54]=s,t[55]=B):B=t[55];let z;t[56]!==R||t[57]!==B?(z=i.jsxs("div",{className:"flex items-center gap-4",children:[R,B]}),t[56]=R,t[57]=B,t[58]=z):z=t[58];let W;t[59]!==j||t[60]!==z?(W=i.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,z]}),t[59]=j,t[60]=z,t[61]=W):W=t[61];let G;t[62]!==g||t[63]!==a||t[64]!==p||t[65]!==l||t[66]!==f||t[67]!==s?(G=f.length===0?i.jsx(Yt,{hiddenOngoing:l?0:p}):s==="calendar"?i.jsx(Jt,{monthStart:a,variants:f,colorMap:g}):i.jsx(te,{monthStart:a,variants:f,colorMap:g}),t[62]=g,t[63]=a,t[64]=p,t[65]=l,t[66]=f,t[67]=s,t[68]=G):G=t[68];let q;return t[69]!==W||t[70]!==G?(q=i.jsxs("div",{className:"flex h-full w-full flex-col",children:[W,G]}),t[69]=W,t[70]=G,t[71]=q):q=t[71],q}function Wt(e){return e.blockKey}function Gt(e){return!e.openEnd}function Ut(e){return e.openEnd}function Kt(){return mt(new Date)}function Yt(e){const t=K.c(4),{hiddenOngoing:r}=e,o=r===void 0?0:r,s=X();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(at,{size:24,className:"text-muted-foreground/60"}),t[0]=n):n=t[0];let a;return t[1]!==o||t[2]!==s?(a=i.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[n,o>0?i.jsxs(i.Fragment,{children:[i.jsx("div",{children:s("sandbox.variantCalendar.noDatedVariants")}),i.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.hiddenOngoingVariants",{count:o})})]}):i.jsxs(i.Fragment,{children:[i.jsx("div",{children:s("sandbox.variantCalendar.noScheduledVariants")}),i.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.dateMatcherInfo")})]})]}),t[1]=o,t[2]=s,t[3]=a):a=t[3],a}const et=20,nt=2,st=28,qt=6;function Jt(e){const t=K.c(17),{monthStart:r,variants:o,colorMap:s}=e;let n,a,c,l,m;if(t[0]!==s||t[1]!==r||t[2]!==o){const f=Nt(r),g=_t(new Date);n=lt,m="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:wt.map(Xt)}),t[8]=c):c=t[8],l=f.map((u,x)=>{const b=kt(u,o),E=b.reduce(Qt,0),T=st+E*(et+nt)+8;return i.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[u.map((d,v)=>{const y=d.getMonth()===r.getMonth(),N=d.getTime()===g.getTime();return i.jsx("div",{className:rt("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:i.jsx("span",{className:rt("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:d.getDate()})},v)}),b.map((d,v)=>{const y=dt(s,d.variant.blockKey),N=st+d.lane*(et+nt),A=d.leftUnits/7*100,_=d.widthUnits/7*100,k=d.variant.openStart&&x===0,C=d.variant.openEnd&&x===f.length-1;return i.jsxs(ft,{variant:d.variant,color:y,fadeStart:k,fadeEnd:C,style:{top:N,left:`calc(${A}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:qt,height:et},children:[d.variant.blockLabel,d.variant.label!==d.variant.blockLabel&&i.jsxs("span",{className:"opacity-70",children:[" · ",d.variant.label]})]},`${x}-${v}`)})]},x)}),t[0]=s,t[1]=r,t[2]=o,t[3]=n,t[4]=a,t[5]=c,t[6]=l,t[7]=m}else n=t[3],a=t[4],c=t[5],l=t[6],m=t[7];let p;t[9]!==a||t[10]!==c||t[11]!==l?(p=i.jsxs("div",{className:a,children:[c,l]}),t[9]=a,t[10]=c,t[11]=l,t[12]=p):p=t[12];let h;return t[13]!==n||t[14]!==m||t[15]!==p?(h=i.jsx(n,{className:m,children:p}),t[13]=n,t[14]=m,t[15]=p,t[16]=h):h=t[16],h}function Qt(e,t){return Math.max(e,t.lane+1)}function Xt(e){return i.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const J=4,Zt=32,Y=240;function te(e){const t=K.c(23),{monthStart:r,variants:o,colorMap:s}=e,n=r,a=U(r,J),c=new Date,l=new Map;for(const w of o){const j=l.get(w.blockKey)??[];j.push(w),l.set(w.blockKey,j)}const m=Array.from(l.entries()).sort(oe),p=a.getTime()-n.getTime(),h=w=>(Math.max(n.getTime(),Math.min(a.getTime(),w.getTime()))-n.getTime())/p*100;let f;t[0]!==n?(f=(w,j)=>U(n,j),t[0]=n,t[1]=f):f=t[1];const g=Array.from({length:J},f),u=c.getTime()>=n.getTime()&&c.getTime()<=a.getTime()?h(c):null,x=X(),b=lt,E="flex-1 min-h-0",T="min-w-[900px] relative";let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d={width:Y},t[2]=d):d=t[2];let v;t[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),t[3]=x,t[4]=v):v=t[4];let y;t[5]!==v?(y=i.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:d,children:v}),t[5]=v,t[6]=y):y=t[6];let N;t[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},t[7]=N):N=t[7];const A=g.map(re);let _;t[8]!==A?(_=i.jsx("div",{className:"flex-1 grid",style:N,children:A}),t[8]=A,t[9]=_):_=t[9];let k;t[10]!==y||t[11]!==_?(k=i.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),t[10]=y,t[11]=_,t[12]=k):k=t[12];let C;t[13]!==x||t[14]!==u?(C=u!==null&&i.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) * ${u} / 100)`},children:i.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),t[13]=x,t[14]=u,t[15]=C):C=t[15];const $=m.map(w=>{const[j,R]=w,H=dt(s,j),V=R[0]?.blockLabel??j;return i.jsxs("div",{children:[i.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:i.jsx("div",{className:"px-3 truncate",style:{width:Y},children:V})}),R.map((S,F)=>i.jsxs("div",{className:"flex border-b items-center",style:{height:Zt},children:[i.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[i.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:H.bg}}),i.jsx("span",{className:"truncate text-foreground/80",children:S.label})]}),i.jsxs("div",{className:"relative flex-1 h-full",children:[i.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},children:g.map(ee)}),(()=>{const D=Math.max(S.start.getTime(),n.getTime()),O=Math.min(S.end.getTime(),a.getTime());if(O<=D)return null;const P=h(new Date(D)),B=h(new Date(O))-P;return i.jsx(ft,{variant:S,color:H,fadeStart:S.openStart,fadeEnd:S.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${B}% - 2px)`,height:22},children:S.label})})()]})]},F))]},j)});let L;t[16]!==k||t[17]!==C||t[18]!==$?(L=i.jsxs("div",{className:T,children:[k,C,$]}),t[16]=k,t[17]=C,t[18]=$,t[19]=L):L=t[19];let M;return t[20]!==b||t[21]!==L?(M=i.jsx(b,{className:E,children:L}),t[20]=b,t[21]=L,t[22]=M):M=t[22],M}function ee(e,t){return i.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function re(e,t){return i.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ct[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function oe(e,t){return e[0].localeCompare(t[0])}export{fi as VariantCalendar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ai as f,ag as $}from"./claim-phase-copy-
|
|
1
|
+
import{ai as f,ag as $}from"./claim-phase-copy-DG8E1-gc.js";const v="x-deco-matchers-override";function h({pageKey:n,prefix:r,variants:t,selectedIndex:a,decofile:e,meta:s}){if(!n||a<0||a>=t.length)return[];const o=[];for(let i=0;i<=a;i++){const u=t[i];if(!u)continue;const c=u.rule,l=i===a?"1":"0",d=(f(c,e,s)?$(c,e,s):null)??`${n}@${r}.${i}.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:e,selectedVariantIndex:s,decofile:o,meta:i}){if(t<0)return[];const c=`${r.multivariate?`sections.variants.${r.index}.value`:"sections"}.${t}${a?".section":""}.variants`,l=Array.isArray(e.variants)?e.variants:[];return h({pageKey:n,prefix:c,variants:l,selectedIndex:s,decofile:o,meta:i})}function B(n,r){const t=`${r}@`;return n.map(a=>a.startsWith(t)?`props.${a.slice(t.length)}`:a)}function y(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,B as i,y as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as $,r as T,l as f,j as i}from"./index-
|
|
1
|
+
import{c as $,r as T,l as f,j as i}from"./index-D_7jfHk6.js";import{b as k,T as I,a as P}from"./tooltip-BULKkf4A.js";const M={sm:{button:"size-7",buttonWithLabel:"h-7",icon:"size-4"},md:{button:"size-9",buttonWithLabel:"h-9",icon:"size-5"},lg:{button:"size-12",buttonWithLabel:"h-12",icon:"size-6"}};function B(E){const t=$.c(27),{value:s,onValueChange:y,options:l,size:C,fullWidth:L,className:z}=E,_=C===void 0?"sm":C,m=L===void 0?!1:L;let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],t[0]=h):h=t[0];const R=T.useRef(h);let x;t[1]===Symbol.for("react.memo_cache_sentinel")?(x={left:0,width:0,opacity:0},t[1]=x):x=t[1];const[d,S]=T.useState(x);let g,p;t[2]!==l||t[3]!==s?(g=()=>{const e=l.findIndex(j=>j.value===s),b=R.current[e];b&&S({left:b.offsetLeft,width:b.offsetWidth,opacity:1})},p=[s,l],t[2]=l,t[3]=s,t[4]=g,t[5]=p):(g=t[4],p=t[5]),T.useEffect(g,p);const o=M[_];let n;t[6]!==z?(n=f("relative flex gap-0 bg-muted rounded-full",z),t[6]=z,t[7]=n):n=t[7];let a;t[8]!==o||t[9]!==m||t[10]!==y||t[11]!==l||t[12]!==s?(a=l.map((e,b)=>{const j=i.jsxs("button",{ref:V=>{R.current[b]=V},type:"button",onClick:()=>y(e.value),"aria-label":e.label??e.tooltip,className:f("relative z-10 flex items-center justify-center gap-2 rounded-full transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",m?"flex-1 h-12 px-4":e.label?f(o.buttonWithLabel,"px-3"):o.button),children:[e.icon&&i.jsx("span",{className:f("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",o.icon,s===e.value?"text-foreground":"text-muted-foreground"),children:e.icon}),e.label&&i.jsx("span",{className:f("text-xs transition-colors ease-out duration-200 whitespace-nowrap",s===e.value?"text-foreground":"text-muted-foreground"),children:e.label})]},e.value);return e.tooltip?i.jsxs(k,{children:[i.jsx(I,{asChild:!0,children:j}),i.jsx(P,{side:"bottom",children:e.tooltip})]},e.value):j}),t[8]=o,t[9]=m,t[10]=y,t[11]=l,t[12]=s,t[13]=a):a=t[13];const w=m?"h-12":o.button;let r;t[14]!==w?(r=f("absolute z-0 bg-background rounded-full border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),t[14]=w,t[15]=r):r=t[15];const W=`${d.left}px`,N=`${d.width}px`;let c;t[16]!==d.opacity||t[17]!==W||t[18]!==N?(c={left:W,width:N,opacity:d.opacity},t[16]=d.opacity,t[17]=W,t[18]=N,t[19]=c):c=t[19];let u;t[20]!==r||t[21]!==c?(u=i.jsx("div",{className:r,style:c}),t[20]=r,t[21]=c,t[22]=u):u=t[22];let v;return t[23]!==u||t[24]!==n||t[25]!==a?(v=i.jsxs("div",{className:n,children:[a,u]}),t[23]=u,t[24]=n,t[25]=a,t[26]=v):v=t[26],v}export{B as V};
|