decocms 4.581.1 → 4.582.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-D1QqLKFH.js → AlertCircle-DT2ZDuIl.js} +1 -1
- package/dist/client/assets/{AreaChart-C-sK2ItE.js → AreaChart-DcNurrpT.js} +1 -1
- package/dist/client/assets/{ArrowLeft-B_zuPCk3.js → ArrowLeft-DR_MRxUB.js} +1 -1
- package/dist/client/assets/{ArrowUp-BVEp2Brj.js → ArrowUp-BdtMKnAz.js} +1 -1
- package/dist/client/assets/{BookOpen01-DU_gf3Q9.js → BookOpen01-DejCO54_.js} +1 -1
- package/dist/client/assets/{CartesianChart-BR9Be1vV.js → CartesianChart-43C3tGyF.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DhUmp4Jo.js → CategoricalChart-GawOpO41.js} +1 -1
- package/dist/client/assets/{CheckCircle-r_uvA104.js → CheckCircle-CM--cqi0.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-Cnj6Mtq0.js → ChevronSelectorVertical-BJDM_s_Z.js} +1 -1
- package/dist/client/assets/{ChevronUp-fKdis79A.js → ChevronUp-DM7pn8nV.js} +1 -1
- package/dist/client/assets/{CreditCard01-2UGmTwp0.js → CreditCard01-BKZ9QJb-.js} +1 -1
- package/dist/client/assets/{Globe04-BIxVPRI2.js → Globe04-BZJYx7x5.js} +1 -1
- package/dist/client/assets/{Key01-B-uaWiXd.js → Key01-CC_tghZO.js} +1 -1
- package/dist/client/assets/{LinkBroken01-ChDYryt0.js → LinkBroken01-4l2zZef9.js} +1 -1
- package/dist/client/assets/{Minus-eMZySqLh.js → Minus-Bj5yI5D8.js} +1 -1
- package/dist/client/assets/{Monitor01-CzcVShIo.js → Monitor01-DeK03po-.js} +1 -1
- package/dist/client/assets/{Play-DK3U1VA7.js → Play-kYcUI1An.js} +1 -1
- package/dist/client/assets/{Plus-BNdH4tYy.js → Plus-DEeR8qC2.js} +1 -1
- package/dist/client/assets/ReferenceLine-DbQts9AQ.js +1 -0
- package/dist/client/assets/{SearchMd-DWnwnZQO.js → SearchMd-DVpGBR2l.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BrAbYbaG.js → ShoppingBag01-BV5nZGeU.js} +1 -1
- package/dist/client/assets/{Sun-wrM9Jol_.js → Sun-Ba2OXmDv.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-D7pFOqnZ.js → SwitchHorizontal01-Cp1oX99F.js} +1 -1
- package/dist/client/assets/{Tool01-AMJ0J7Ld.js → Tool01-BlUlKjGy.js} +1 -1
- package/dist/client/assets/{Tooltip-CZ7doa0d.js → Tooltip-DNR0eew9.js} +1 -1
- package/dist/client/assets/{Trash01-Chu35sQ_.js → Trash01-CgZrkZ3U.js} +1 -1
- package/dist/client/assets/{Upload01-CGdoFUP8.js → Upload01-DDoiK0tv.js} +1 -1
- package/dist/client/assets/{UserSquare-DUXP0rwX.js → UserSquare-DEjJtCDR.js} +1 -1
- package/dist/client/assets/{Users01-BnTqMUrr.js → Users01-DVMhWmct.js} +1 -1
- package/dist/client/assets/{XClose-BAfH6Ebz.js → XClose-xYIhBL8b.js} +1 -1
- package/dist/client/assets/{Zap-YDxTdktJ.js → Zap-BsuEhLd3.js} +1 -1
- package/dist/client/assets/{access-gate-DDMODilC.js → access-gate-BYQd4796.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-B8fK5SPo.js → add-connection-dialog-C86xZwTt.js} +1 -1
- package/dist/client/assets/agent-app-qCE6mpox.js +1 -0
- package/dist/client/assets/agent-assets-BERkZgBg.js +1 -0
- package/dist/client/assets/{agent-automation-DNgt345_.js → agent-automation-B3znFoJv.js} +3 -3
- package/dist/client/assets/{agent-automations-mWv09YVd.js → agent-automations-BI5n1DEk.js} +1 -1
- package/dist/client/assets/agent-blog-DFA4iTY2.js +2 -0
- package/dist/client/assets/{agent-blog-post-D5O_ItNv.js → agent-blog-post-CJzR6SRp.js} +2 -2
- package/dist/client/assets/{agent-calendar-DFwq2V3Y.js → agent-calendar-DCBRCsam.js} +1 -1
- package/dist/client/assets/{agent-capabilities-DSfvUGIA.js → agent-capabilities-B40k722B.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-BaY-1hUg.js → agent-connect-sources-BvH_YwiD.js} +1 -1
- package/dist/client/assets/agent-deck-C_9xRnWL.js +1 -0
- package/dist/client/assets/{agent-e2e-BzjDB0Mp.js → agent-e2e-B2FpHDAG.js} +1 -1
- package/dist/client/assets/agent-experiments-BDFLMLOM.js +1 -0
- package/dist/client/assets/{agent-file-G_Q7_eCe.js → agent-file-CAkn0Q5x.js} +1 -1
- package/dist/client/assets/{agent-hosting-DPI1YzdW.js → agent-hosting-D0d8gHPR.js} +1 -1
- package/dist/client/assets/{agent-icon-DFd8L1O_.js → agent-icon-CpMz1pSC.js} +1 -1
- package/dist/client/assets/agent-library-Cs6jlCDK.js +1 -0
- package/dist/client/assets/agent-library-file-DV2qsJC9.js +1 -0
- package/dist/client/assets/agent-overview-IBMGymrh.js +1 -0
- package/dist/client/assets/{agent-releases-DJ49AvX3.js → agent-releases-k0DaB9LQ.js} +2 -2
- package/dist/client/assets/agent-settings-DF71XJZP.js +1 -0
- package/dist/client/assets/{agent-site-editor-CqHVUUAC.js → agent-site-editor-CS9MMMbk.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-gfgfb7xF.js +2 -0
- package/dist/client/assets/agent-site-editor-content-C07hh63_.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-CFg2FnqN.js +1 -0
- package/dist/client/assets/agent-view-CzQtfKwQ.js +1 -0
- package/dist/client/assets/{agent-view-guard-D4yaqKiq.js → agent-view-guard-XdI97YrW.js} +1 -1
- package/dist/client/assets/{ai-providers-CovrDI_x.js → ai-providers-DoacYpUR.js} +1 -1
- package/dist/client/assets/{alert-BA8nDu40.js → alert-DFQMLwuf.js} +1 -1
- package/dist/client/assets/{analytics-sections-C7dFg_aE.js → analytics-sections-DNjeT1Pf.js} +1 -1
- package/dist/client/assets/{api-keys-BrhrD9eO.js → api-keys-Bbyyi1IV.js} +1 -1
- package/dist/client/assets/api-keys-CLzhmgUv.js +1 -0
- package/dist/client/assets/{app-editor-tnp3-UhR.js → app-editor-Cd7oWsvo.js} +1 -1
- package/dist/client/assets/{asset-utils-BSepCiAa.js → asset-utils-DxQXeDgB.js} +1 -1
- package/dist/client/assets/{auth-DiKlrdGP.js → auth-Br21RAsk.js} +1 -1
- package/dist/client/assets/{auth-catchall-tnYz6mdY.js → auth-catchall-ChHXwieU.js} +1 -1
- package/dist/client/assets/{auth-entry-SgfwAEXQ.js → auth-entry-BUy5eNSm.js} +1 -1
- package/dist/client/assets/{auth-split-layout-D_rznvbe.js → auth-split-layout-DXcvh-93.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-osQ4PKuX.js → authenticate-and-persist-oauth-CTJV9ez5.js} +1 -1
- package/dist/client/assets/{automation-list-row-FS-zfRjW.js → automation-list-row-COaiktOt.js} +1 -1
- package/dist/client/assets/{automation-runs-DLYz6YWQ.js → automation-runs-BluUkmKT.js} +1 -1
- package/dist/client/assets/{automations-rbGBA3mS.js → automations-BvZ8wxJr.js} +1 -1
- package/dist/client/assets/{badge-BpUJoM3p.js → badge-C2zO_tAX.js} +1 -1
- package/dist/client/assets/{block-document-yqfgnbbt.js → block-document-DTM21O-Q.js} +3 -3
- package/dist/client/assets/{blocks-preview-workspace-context-CzI6HAkj.js → blocks-preview-workspace-context-0qX3i0Hw.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-Uq85dLE5.js → blocks-tab-states-BZoxOO-H.js} +1 -1
- package/dist/client/assets/{blog-preview-url-BUDrdqoz.js → blog-preview-url-Bcn3MddY.js} +1 -1
- package/dist/client/assets/{blog-schema-Cqi3HnFC.js → blog-schema-PWQlG4FM.js} +1 -1
- package/dist/client/assets/{blog-source-gate-BWofeMwB.js → blog-source-gate-DcD3mNPu.js} +1 -1
- package/dist/client/assets/{blog-view-gate-BjGoFrlO.js → blog-view-gate-BpiHsFQi.js} +1 -1
- package/dist/client/assets/{buckets-QdgXdcXC.js → buckets-r-Vn310N.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-Yt1kTpo8.js → build-improve-prompt-doc-BYTmOiJ8.js} +1 -1
- package/dist/client/assets/{calendar-RX4MUBCU.js → calendar-DkvAGmxG.js} +1 -1
- package/dist/client/assets/{capability-load-error-Dco-wYs-.js → capability-load-error-CHW06qRY.js} +1 -1
- package/dist/client/assets/{category-editor-DMitV3My.js → category-editor-D53-0-dG.js} +1 -1
- package/dist/client/assets/{category-tree-CYPMeaO5.js → category-tree-EQNjX_vh.js} +1 -1
- package/dist/client/assets/{chart-Q-cSHjjY.js → chart-DP-afdSL.js} +1 -1
- package/dist/client/assets/{chat-context-BVOzxL7y.js → chat-context-Na_9rQo_.js} +1 -1
- package/dist/client/assets/{chat-draft-DCJJT_1i.js → chat-draft-BnT_bTVf.js} +1 -1
- package/dist/client/assets/{checkbox-x2IxTucq.js → checkbox-Dn6r2X61.js} +1 -1
- package/dist/client/assets/{choose-editor-CMLPeKz2.js → choose-editor-DFYfaLQ4.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DupR1ypd.js → cli-auth-success-BWjEoABt.js} +1 -1
- package/dist/client/assets/{client-icons-BXUuRiJU.js → client-icons-B7ckFhTB.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-BPeg7XT1.js → cms-settings-editor-BLtwrg_Q.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-DDyrwrmA.js → cms-store-drafts-DC7_MPeX.js} +1 -1
- package/dist/client/assets/{collapsible-CmQt_iZ0.js → collapsible-waKUBV3F.js} +1 -1
- package/dist/client/assets/collection-detail-BdQUzwBw.js +1 -0
- package/dist/client/assets/{collection-display-button-Q31iiQyG.js → collection-display-button-CpOX39FE.js} +1 -1
- package/dist/client/assets/{collection-search-kFWWyWV8.js → collection-search-CKJ8zcS9.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-lwnrgmvl.js → collection-table-wrapper-DX64SyX5.js} +1 -1
- package/dist/client/assets/{collection-tabs-ZWO3GiY3.js → collection-tabs-DL3FYMaD.js} +1 -1
- package/dist/client/assets/{combobox-B7xBLEqp.js → combobox-CZTRaybI.js} +1 -1
- package/dist/client/assets/{command-C00hDMwB.js → command-B0-oLV0k.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DqGiryze.js → companion-mcps-section-CAkQdc3e.js} +1 -1
- package/dist/client/assets/{config-1WcD3pf5.js → config-DhSdzr_l.js} +1 -1
- package/dist/client/assets/{connect-CPk_XjVi.js → connect-DwtFEmWa.js} +2 -2
- package/dist/client/assets/{connect-layout-Cki4va2J.js → connect-layout-By1LwNsY.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-OGa93hL5.js → connect-source-dialog-Clx35W2U.js} +1 -1
- package/dist/client/assets/{connection-CLrwGffq.js → connection-CwOP2DkA.js} +1 -1
- package/dist/client/assets/{connection-card-CG85F9R4.js → connection-card-DxEnheWw.js} +1 -1
- package/dist/client/assets/{connection-detail-B8RNsYKm.js → connection-detail-Bm5pNgz3.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Du6e-sDu.js → connection-form-helpers-DsiTws_r.js} +1 -1
- package/dist/client/assets/{connection-slug-BC6vEqea.js → connection-slug-CqKJM07D.js} +1 -1
- package/dist/client/assets/{connections-DTZU4hmT.js → connections-8N6-U8BU.js} +1 -1
- package/dist/client/assets/{content-tab-xOpBPR9g.js → content-tab-D3gTzU_j.js} +3 -3
- package/dist/client/assets/{context-DZfW90rI.js → context-CdMMXT5s.js} +1 -1
- package/dist/client/assets/{context-menu-dgkpoBmD.js → context-menu-BAywIeQG.js} +1 -1
- package/dist/client/assets/{context-shell-Dlkux8ZE.js → context-shell-C8ZPCYjw.js} +3 -3
- package/dist/client/assets/{core.esm-DUcC46mO.js → core.esm-YEEWezEY.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CG0hKl_H.js → create-organization-dialog-BpL43B76.js} +1 -1
- package/dist/client/assets/{delete-copy-BLgf78Hs.js → delete-copy-UjfjjP4_.js} +1 -1
- package/dist/client/assets/{device-hint-CmMhxStN.js → device-hint-AWxEadtg.js} +1 -1
- package/dist/client/assets/discover-DhvRjqxh.js +1 -0
- package/dist/client/assets/{domain-settings-ClKI_rRO.js → domain-settings-BCvvef40.js} +1 -1
- package/dist/client/assets/{drawer-OboTDl5r.js → drawer-CfOCKnhq.js} +1 -1
- package/dist/client/assets/{editor-ChiPsACh.js → editor-COFIs9XE.js} +2 -2
- package/dist/client/assets/{editor-classes-De5o_8lB.js → editor-classes-aqVUSPbm.js} +1 -1
- package/dist/client/assets/{empty-message-D92Pb6fP.js → empty-message-CirmMDhM.js} +1 -1
- package/dist/client/assets/{empty-state-BcZKaOw-.js → empty-state-C7Sg1bax.js} +1 -1
- package/dist/client/assets/{empty-state-CxI5dssp.js → empty-state-CFvQY7HR.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-DdEGbuLK.js → experiments-tab-choice-Ch-KXcUZ.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DwWq6VY0.js → extract-connection-data-CFxfI9gN.js} +1 -1
- package/dist/client/assets/{feature-gate-qgzTBO3A.js → feature-gate-BsIQ70jm.js} +1 -1
- package/dist/client/assets/{feature-paywall-ljVyCUfx.js → feature-paywall-AtUr_EOu.js} +1 -1
- package/dist/client/assets/{file-explorer-fgWC9Rob.js → file-explorer-DpEdUCiL.js} +1 -1
- package/dist/client/assets/{file-preview-C1UH8fjg.js → file-preview-PSKf9fIz.js} +1 -1
- package/dist/client/assets/{file-share-button-Bm5Af9aY.js → file-share-button-D9sAYI1R.js} +1 -1
- package/dist/client/assets/{file-type-icon-Dnh_2HcY.js → file-type-icon-3Zm8W435.js} +1 -1
- package/dist/client/assets/{folder-icon-BZSobjd4.js → folder-icon-D4-RUOt8.js} +1 -1
- package/dist/client/assets/{form-CuAETLLt.js → form-BZ7xdssd.js} +1 -1
- package/dist/client/assets/{frame-navigation-D2IzuXnb.js → frame-navigation-8oPGH7NY.js} +1 -1
- package/dist/client/assets/{general-CThohMer.js → general-Bt-teqGz.js} +1 -1
- package/dist/client/assets/{github-icon-D0vbU4b9.js → github-icon-DH5Sm3NR.js} +1 -1
- package/dist/client/assets/held-block-view-BR-UYX4S.js +3 -0
- package/dist/client/assets/{home-DrAlxwLg.js → home-CIpHO2ej.js} +1 -1
- package/dist/client/assets/{home-overview-DPAQZtaE.js → home-overview-9H7C1hoB.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-C2j-K6SC.js → hosted-reconcile-C5UVxzTP.js} +1 -1
- package/dist/client/assets/{icon-button-D8OdW1Ng.js → icon-button-BfibpDoO.js} +1 -1
- package/dist/client/assets/{index-DDDWDv4s.js → index-BP527m3V.js} +6 -6
- package/dist/client/assets/{index-CNMZKaZ4.js → index-BXpXjiyK.js} +1 -1
- package/dist/client/assets/{index-CldZuS5S.js → index-BpLEscAk.js} +1 -1
- package/dist/client/assets/index-BqWale_V.css +1 -0
- package/dist/client/assets/{index-BTxnnO3z.js → index-CQ7e2YEj.js} +1 -1
- package/dist/client/assets/{index-Ch7SvmMC.js → index-CmzG_GaM.js} +1 -1
- package/dist/client/assets/{index-C_OpZGYh.js → index-DCl7HPjQ.js} +1 -1
- package/dist/client/assets/{index-D1w7KFj7.js → index-DF1Gszum.js} +1 -1
- package/dist/client/assets/{index-BATsrbDm.js → index-DN9fxTzN.js} +1 -1
- package/dist/client/assets/{index-54RE0ioE.js → index-DZi8I8ot.js} +1 -1
- package/dist/client/assets/{index-wTvZKrHA.js → index-Db96seLi.js} +1 -1
- package/dist/client/assets/{index-DAjFmo5j.js → index-DoH06YKc.js} +1 -1
- package/dist/client/assets/{index-DxWwCAMV.js → index-Ds3fsbcX.js} +1 -1
- package/dist/client/assets/{index-CY0csw6V.js → index-DuYneP0E.js} +1 -1
- package/dist/client/assets/{index-D3ue61h8.js → index-dsAQGF7D.js} +1 -1
- package/dist/client/assets/{index-CBYIpf8n.js → index-jQ2gY_fm.js} +1 -1
- package/dist/client/assets/{index-ByeVWJ7k.js → index-n1AjR0vt.js} +1 -1
- package/dist/client/assets/{index-redirect-CYDCVRJ_.js → index-redirect-QRKsjVCi.js} +1 -1
- package/dist/client/assets/index-tLhNg31B.js +4 -0
- package/dist/client/assets/{infiniteQueryObserver-ktArfc_t.js → infiniteQueryObserver-BFZQsptZ.js} +1 -1
- package/dist/client/assets/{infra-billing-C-QVvoRz.js → infra-billing-C3ShZZOT.js} +1 -1
- package/dist/client/assets/{input-CBsHXM-K.js → input-C1HwcZTs.js} +1 -1
- package/dist/client/assets/{input-CFiVVIga.js → input-GqBshPf5.js} +4 -4
- package/dist/client/assets/{integration-icon-D5RK2sEk.js → integration-icon-XUOEUOb8.js} +1 -1
- package/dist/client/assets/item-actions-BfBBT1Qz.js +1 -0
- package/dist/client/assets/{jira-icon-CmDZL_wM.js → jira-icon-B48lqxRs.js} +1 -1
- package/dist/client/assets/{label-EESrxoYH.js → label-DSlWCd9e.js} +1 -1
- package/dist/client/assets/{layout-Byi_jW8h.js → layout-QjOyVmz4.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-DAEkCShw.js → legacy-admin-welcome-dialog-DWeHIzCA.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-CQX5HShD.js → legacy-agents-deep-COHFWDWb.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-PkEZIvXO.js → legacy-main-redirect-h5ds91_H.js} +1 -1
- package/dist/client/assets/library-BMXElwFo.js +1 -0
- package/dist/client/assets/{library-tab-BLBQDXJU.js → library-tab-DI2mHZkf.js} +1 -1
- package/dist/client/assets/{login-BQoCsEsr.js → login-DgKeSKz2.js} +1 -1
- package/dist/client/assets/{markdown-D5a0osui.js → markdown-BTKw4nl8.js} +1 -1
- package/dist/client/assets/match-site-slug-config-B47_xZCi.js +1 -0
- package/dist/client/assets/{mcp-app-renderer-BgUWGow9.js → mcp-app-renderer-BT9_tzyT.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CU691SiC.js → mcp-oauth-1Tp9szFm.js} +1 -1
- package/dist/client/assets/{mcp-oauth-COyT3l0E.js → mcp-oauth-BQRDLkqA.js} +1 -1
- package/dist/client/assets/{members-n8Lstn8K.js → members-DQZtkBei.js} +1 -1
- package/dist/client/assets/{memory-BgMa5u8j.js → memory-B82F2Q7k.js} +2 -2
- package/dist/client/assets/{mock-board-CSrbkqG4.js → mock-board-B7BOXAS7.js} +4 -4
- package/dist/client/assets/{monaco-editor-CwGsSUX8.js → monaco-editor-DTLNzmeB.js} +1 -1
- package/dist/client/assets/{monitoring-s0QSQdK5.js → monitoring-CRmBvi8F.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BsFnLxNy.js → monitoring-stats-row-G2RBze7B.js} +1 -1
- package/dist/client/assets/{multi-select-C5VqbVMP.js → multi-select-ykLyfeEh.js} +1 -1
- package/dist/client/assets/{mustache-BVD8gEp8.js → mustache-p2j_fCOZ.js} +1 -1
- package/dist/client/assets/{named-rule-step-BTqgnNQ5.js → named-rule-step-BJ5LyK07.js} +1 -1
- package/dist/client/assets/{named-rule-view-Bd8STvPD.js → named-rule-view-BBEm0z_K.js} +1 -1
- package/dist/client/assets/{new-project-dialog-BiqAeUrE.js → new-project-dialog-C3JFSI1q.js} +1 -1
- package/dist/client/assets/{oauth-callback-B5GC_Yyx.js → oauth-callback-Cg1KjIf_.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Cn-Tp4BP.js → oauth-callback-ai-provider-hOquTBPU.js} +1 -1
- package/dist/client/assets/{oauth-consent-BVAt6oz1.js → oauth-consent-CzhJum4d.js} +1 -1
- package/dist/client/assets/{onboarding-fUXPiATA.js → onboarding-FLu6ztJj.js} +1 -1
- package/dist/client/assets/{openai-conversation-9mnOj04I.js → openai-conversation-DhsFXaEr.js} +2 -2
- package/dist/client/assets/{optimistic-project-sidebar-views-CyYUwQmb.js → optimistic-project-sidebar-views-D6axz004.js} +1 -1
- package/dist/client/assets/{order-monitor-day-DONFE4J2.js → order-monitor-day-CQJg9ymu.js} +1 -1
- package/dist/client/assets/{organization-choice-BHlAXEW9.js → organization-choice-dV-mJr-d.js} +1 -1
- package/dist/client/assets/{orgs-BAGB65GL.js → orgs-DafOcWKJ.js} +1 -1
- package/dist/client/assets/{own-accounts-section-BCe3XCOA.js → own-accounts-section-BitxRWkd.js} +1 -1
- package/dist/client/assets/{pair-Fhnk8ar3.js → pair-Dsc6GXhQ.js} +1 -1
- package/dist/client/assets/{parse-sections-yZQqTgrz.js → parse-sections-Cy8SKsEh.js} +3 -3
- package/dist/client/assets/{plan-D1utRlpJ.js → plan-5t2sCqh-.js} +1 -1
- package/dist/client/assets/{plan-ladder-CM-HcM-s.js → plan-ladder-xVKcSuhD.js} +1 -1
- package/dist/client/assets/{plan-usage-card-CMfNWBwg.js → plan-usage-card-Cxjcl-tF.js} +2 -2
- package/dist/client/assets/{popover-B_j0y2h7.js → popover-CelLmvH8.js} +1 -1
- package/dist/client/assets/post-calendar-DkUmj6jK.js +1 -0
- package/dist/client/assets/post-editor-DkdXE0U4.js +2 -0
- package/dist/client/assets/{preview-content-DvqZaSqe.js → preview-content-Di9jV9fD.js} +1 -1
- package/dist/client/assets/{preview-dialog-CEbSM9Y6.js → preview-dialog-BTVSDgVC.js} +1 -1
- package/dist/client/assets/{preview-panel-jbh-mjn6.js → preview-panel-COaKD6oK.js} +1 -1
- package/dist/client/assets/preview-tab-BFi8NHe-.js +557 -0
- package/dist/client/assets/{product-picker-dialog-V4AhQCT6.js → product-picker-dialog-tqTphLK7.js} +1 -1
- package/dist/client/assets/{profile-BUCYaJ8H.js → profile-ItK6hTrx.js} +1 -1
- package/dist/client/assets/project-app-view-CMAf9Mlz.js +1 -0
- package/dist/client/assets/{project-apps-CY9tfRYe.js → project-apps-ByyLejju.js} +1 -1
- package/dist/client/assets/{project-icon-DNEfBFoN.js → project-icon-TEwy-duh.js} +1 -1
- package/dist/client/assets/{project-index--AWJOyZB.js → project-index-DqRiC0zN.js} +1 -1
- package/dist/client/assets/project-reports-CPvLPQcs.js +1 -0
- package/dist/client/assets/project-tasks-B88cPPXW.js +1 -0
- package/dist/client/assets/{projects-CJc-98C_.js → projects-FY3sblQl.js} +1 -1
- package/dist/client/assets/{projects-empty-state-CbOIGuob.js → projects-empty-state-OMTDG8SV.js} +1 -1
- package/dist/client/assets/{prompts-CEf1e1i5.js → prompts-TP7YCuz6.js} +1 -1
- package/dist/client/assets/{record-editor-hYaeLcuc.js → record-editor-IJLTcCdR.js} +1 -1
- package/dist/client/assets/{redirect-editor-3TvH_UFo.js → redirect-editor-B2-M7doi.js} +1 -1
- package/dist/client/assets/{reports-D10gkSrT.js → reports-CvxegUiQ.js} +1 -1
- package/dist/client/assets/reports-ODcJFAP-.js +1 -0
- package/dist/client/assets/{reports-onboarding-RhfCcqej.js → reports-onboarding-BicRsxJF.js} +1 -1
- package/dist/client/assets/{reports-tab-CtVgyXhu.js → reports-tab-CCY5hBR2.js} +2 -2
- package/dist/client/assets/repositories-C0edGPcS.js +1 -0
- package/dist/client/assets/{repositories-CJnEkuZk.js → repositories-V6vmPwSM.js} +1 -1
- package/dist/client/assets/{repository-binding-DAYbvLYj.js → repository-binding-DGc5VhVW.js} +1 -1
- package/dist/client/assets/{repository-picker-BO6sLOq7.js → repository-picker-DO5Hy-o-.js} +1 -1
- package/dist/client/assets/{require-capability-DQWSlcjo.js → require-capability-CCGZ96D-.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Dg5kgnfG.js → required-auth-layout-DoMwdVaZ.js} +1 -1
- package/dist/client/assets/{reset-password-B8UgVD_T.js → reset-password-B672rI1V.js} +1 -1
- package/dist/client/assets/{resizable-CaTV7JDr.js → resizable-DrLaW_Jl.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DEOb6228.js → resolve-tab-icon-CfRdrLF-.js} +1 -1
- package/dist/client/assets/{review-settings-i1b4oJDO.js → review-settings-B8FCs2a_.js} +1 -1
- package/dist/client/assets/{role-color-BE5BDDIE.js → role-color-CPDxseg4.js} +1 -1
- package/dist/client/assets/{roles-BgQMqKxE.js → roles-BYqU9-We.js} +1 -1
- package/dist/client/assets/{route-BmXq3cGb.js → route-BXYvPulM.js} +1 -1
- package/dist/client/assets/route-Bh9fCZXT.js +1 -0
- package/dist/client/assets/{route-B8-5mDhW.js → route-a1KQq-lz.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-DJ1Zj_fI.js → sandbox-git-api-3zULVhcU.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-DAW3x9U4.js → sandbox-lifecycle-context-BEzUu66E.js} +1 -1
- package/dist/client/assets/save-status-Cx3aKwGu.js +1 -0
- package/dist/client/assets/{schema-B5L6XabR.js → schema-BtzAS_P2.js} +1 -1
- package/dist/client/assets/{schema-CPDsJI-V.js → schema-DIJe3qA1.js} +1 -1
- package/dist/client/assets/{scroll-area-BIbpYC_e.js → scroll-area-mVo2jhxQ.js} +1 -1
- package/dist/client/assets/{search-input-CTHDb7Fb.js → search-input-ChnwrZA6.js} +1 -1
- package/dist/client/assets/{search-toggle--RSSxY_n.js → search-toggle-CC4Rs40x.js} +1 -1
- package/dist/client/assets/{secret-picker-B1Qdwzz-.js → secret-picker-CWGbJrCR.js} +1 -1
- package/dist/client/assets/{secrets-CpTgKWI_.js → secrets-DE59ARp-.js} +1 -1
- package/dist/client/assets/{section-array-field-B-W5rSAO.js → section-array-field-4mOiVd7b.js} +1 -1
- package/dist/client/assets/{sections-HCoksWSk.js → sections-B1sv3rvB.js} +1 -1
- package/dist/client/assets/sections-editor-sTEVWcAy.js +1 -0
- package/dist/client/assets/{select-CCUqWhU2.js → select-BNoZ1cwH.js} +1 -1
- package/dist/client/assets/{select-model-fLHQEf93.js → select-model-BqTl5eD-.js} +1 -1
- package/dist/client/assets/{seo-editor-BSBriMlp.js → seo-editor-iaqzR9NS.js} +1 -1
- package/dist/client/assets/{separator-W-jiHDRf.js → separator-CwN-gidC.js} +1 -1
- package/dist/client/assets/settings-tab-H1Nf96Yz.js +1 -0
- package/dist/client/assets/{sheet-CJ8R5cz8.js → sheet-1BLiVjE3.js} +1 -1
- package/dist/client/assets/{shell-layout-DHcyl3tS.js → shell-layout-BHtZVBED.js} +1 -1
- package/dist/client/assets/{site-draft-actions-DvTjz5UN.js → site-draft-actions-GLib44bU.js} +5 -5
- package/dist/client/assets/{site-draft-view-DKi9gDFG.js → site-draft-view-CKK7PKoH.js} +1 -1
- package/dist/client/assets/site-editor-Bl3uFRW-.js +1 -0
- package/dist/client/assets/{site-editor-toast-DCLSfuYN.js → site-editor-toast-BXRGIPuY.js} +1 -1
- package/dist/client/assets/{skills-61y8fOuN.js → skills-Q6l6j9x7.js} +1 -1
- package/dist/client/assets/{slider-DGrjjZbc.js → slider-BKrw7nqs.js} +1 -1
- package/dist/client/assets/{sortable.esm-CFU3AjR2.js → sortable.esm-CA_k0RaZ.js} +1 -1
- package/dist/client/assets/{sso-Bc4JROTr.js → sso-C4bCFgaT.js} +1 -1
- package/dist/client/assets/{suggestion-C25G9PiT.js → suggestion-BdOz28RC.js} +1 -1
- package/dist/client/assets/{super-agent-icon-BOjAbgwW.js → super-agent-icon-DExAOD4i.js} +1 -1
- package/dist/client/assets/{switch-C6GSkMRa.js → switch-B60LgmjA.js} +1 -1
- package/dist/client/assets/{synced-repos-MVTThVIT.js → synced-repos-DfFbkdSN.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-X8r_SUyr.js → tab-icon-glyph-MzzsG5oc.js} +1 -1
- package/dist/client/assets/{table-CGK_amHI.js → table-KEskYvtS.js} +1 -1
- package/dist/client/assets/{tabs-DSwAq5ok.js → tabs-DXm_rA9S.js} +1 -1
- package/dist/client/assets/{task-board-DGEnY-WP.js → task-board-CdhOR9bl.js} +1 -1
- package/dist/client/assets/{task-route-kuDxMB7g.js → task-route-DeSbQRkP.js} +1 -1
- package/dist/client/assets/{task-status-DwyseT36.js → task-status-Bn4DeOrT.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-Bc5gvPec.js → taskboard-analytics-CRI_d1NW.js} +1 -1
- package/dist/client/assets/tasks-DGRURa32.js +1 -0
- package/dist/client/assets/{tasks-CwTnwmgS.js → tasks-fWq-fqoJ.js} +3 -3
- package/dist/client/assets/{textarea-bQEpPrrj.js → textarea-CRgCAK3p.js} +1 -1
- package/dist/client/assets/{thread-analytics-DrA1-9Im.js → thread-analytics-aoAc3KR6.js} +1 -1
- package/dist/client/assets/{thread-intent-SBN04Rtw.js → thread-intent-DrRX6nG0.js} +1 -1
- package/dist/client/assets/{thread-route-D0a5VvFp.js → thread-route-D404Xl1w.js} +1 -1
- package/dist/client/assets/{thread-route-hd8uqVKt.js → thread-route-L_F2dRjs.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-DldXKcG5.js → thread-sheet-body-D3DOFB6A.js} +1 -1
- package/dist/client/assets/{time-range-picker-DkQtJ9_-.js → time-range-picker-DouTd8PJ.js} +1 -1
- package/dist/client/assets/{toggle-group-D7egmHqH.js → toggle-group-JYZ1PCaE.js} +1 -1
- package/dist/client/assets/{tool-namespace-DqMAELKh.js → tool-namespace-BBpCD9sF.js} +1 -1
- package/dist/client/assets/{tool-set-selector-CRdnTdII.js → tool-set-selector-DTAr1xzz.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-Cf4mp3st.js → toolbar-icon-button-B0M5XFng.js} +1 -1
- package/dist/client/assets/{tooltip-7WjUlVHN.js → tooltip-D9qNlq6S.js} +1 -1
- package/dist/client/assets/{tooltipContext-BM-E9VBq.js → tooltipContext-B94TDN-Q.js} +1 -1
- package/dist/client/assets/{track-Dc3qAx4h.js → track-DJVHN5Lv.js} +1 -1
- package/dist/client/assets/{types-DcXrDLzi.js → types-BfPC7vnd.js} +5 -5
- package/dist/client/assets/{url-slug-DGizFeaX.js → url-slug-Bts08KOo.js} +1 -1
- package/dist/client/assets/{usage-stats-DyA2nNO3.js → usage-stats-CK4hgSt6.js} +1 -1
- package/dist/client/assets/{use-ai-providers-C9vcyTaN.js → use-ai-providers-CxZCPqVC.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-2JoZ8nxT.js → use-apply-named-rule-h1W6SPpC.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-D4gRql_N.js +1 -0
- package/dist/client/assets/{use-automations-BHeTrxpI.js → use-automations-B7d02VWl.js} +1 -1
- package/dist/client/assets/{use-autosave-BZAqhdxE.js → use-autosave-DOc72aWE.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-BLLvbZl2.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-mgFqTgen.js → use-chat-layout-state-DQhX2zdi.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-JTIsBKu7.js → use-cms-publish-actions-DimSJzWP.js} +1 -1
- package/dist/client/assets/{use-connect-companion-DOyeAK5f.js → use-connect-companion-CqTyzSlz.js} +1 -1
- package/dist/client/assets/{use-connection-C4wZIedX.js → use-connection-CFmR-X06.js} +1 -1
- package/dist/client/assets/{use-content-sync-DX9AICcw.js → use-content-sync-BEqIA-0g.js} +1 -1
- package/dist/client/assets/{use-copy-C87hppcx.js → use-copy-PziytufC.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CdwoumPu.js → use-date-fns-locale-BVsHKqDt.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BGT68o5u.js → use-debounced-autosave-CU3dUlJX.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CPkVN80B.js → use-debounced-value-DJ5YZsat.js} +1 -1
- package/dist/client/assets/{use-deco-credits-B_yRwpIs.js → use-deco-credits-_9aC49vI.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DYaMckqi.js → use-decopilot-events-B84nN_Z6.js} +1 -1
- package/dist/client/assets/{use-delete-block-Bl87-vdk.js → use-delete-block-BbJuByhU.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DfHAqmGL.js → use-delete-connection-Bp9D22pQ.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-C8Pxnc-A.js → use-deployment-admin-D8TSoW7b.js} +1 -1
- package/dist/client/assets/{use-entitlements-B129mOCR.js → use-entitlements-Chh3D10H.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-C1985-Ir.js → use-fast-preview-draft-url-DRtzWCS3.js} +1 -1
- package/dist/client/assets/{use-file-configs-Dee9WDV4.js → use-file-configs-8VTVKs7P.js} +1 -1
- package/dist/client/assets/{use-id-selection-HxPtQK4g.js → use-id-selection-LGL3_97F.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-CE46iYvK.js → use-inbox-feed-DjVLN02v.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CRqa_9m8.js → use-infinite-scroll-BBVWbqWO.js} +1 -1
- package/dist/client/assets/{use-join-requests-CIJW_zlt.js → use-join-requests-4dddz-2V.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-qfCNgDSO.js → use-main-panel-tabs-Bq834oWY.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CoQg2kYd.js → use-mcp-auth-status-ewp8JzH8.js} +1 -1
- package/dist/client/assets/{use-mcp-client-b044lJnb.js → use-mcp-client-CaYmuD4l.js} +2 -2
- package/dist/client/assets/{use-mcp-prompts-Dlq8VH38.js → use-mcp-prompts-lHtFGIni.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DS8wEzPs.js → use-mcp-tools-COoBOTb8.js} +1 -1
- package/dist/client/assets/{use-mobile-CEHdcOx8.js → use-mobile-B0YlxBUo.js} +1 -1
- package/dist/client/assets/{use-move-blocks-BroyCilU.js → use-move-blocks-CRsMTnFT.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Kz2oOKmA.js → use-navigate-to-agent-D9u86crS.js} +1 -1
- package/dist/client/assets/use-never-published-BRSQAhRd.js +1 -0
- package/dist/client/assets/{use-org-fs-CLPhRw3y.js → use-org-fs-Cv09aZqm.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BoVbI9tW.js → use-org-repo-syncs-CKUvsIrW.js} +1 -1
- package/dist/client/assets/{use-org-sso-DRrVlfwY.js → use-org-sso-CBrdU305.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CdJMCbcP.js → use-organization-settings-BWLJTTpw.js} +1 -1
- package/dist/client/assets/use-project-native-view-presence-D5R7YysD.js +1 -0
- package/dist/client/assets/{use-project-scope-dsKJBAry.js → use-project-scope-Dzg0nsjs.js} +1 -1
- package/dist/client/assets/{use-recent-apps-CmtYzKJF.js → use-recent-apps-BKAftwoT.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-DFRAKqsS.js → use-reports-diagnostic-CgjecoRR.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-9oqLSRsO.js → use-sandbox-events-BtXLDGZr.js} +2 -2
- package/dist/client/assets/{use-secrets-NEOz5brl.js → use-secrets-D46GKExN.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-dFGv18ks.js → use-section-preview-base-BO578O9L.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-BpkHLNx1.js → use-sidebar-collapsed-x7SsKYNl.js} +1 -1
- package/dist/client/assets/{use-tags-CWDFKR0B.js → use-tags-LwHF4ikl.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-YY743rvT.js → use-task-board-analytics-TZTLLgky.js} +1 -1
- package/dist/client/assets/{use-task-board-events-De0Ql0Pn.js → use-task-board-events-U_kvLTo1.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-CjIgw8Jt.js → use-task-board-item-prs-BW_n16vt.js} +1 -1
- package/dist/client/assets/{use-task-board-items-DNUZNAh_.js → use-task-board-items-B66t-aAy.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-B1rpgS5r.js → use-task-board-prompts-CHIblyN4.js} +1 -1
- package/dist/client/assets/{use-task-metadata-BOYPl3PT.js → use-task-metadata-DdKhuIQ3.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-WMuzypnI.js → use-thread-outputs-DsjZa1n5.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-BG2f-NWf.js → use-view-draft-kind-BtHf66Jj.js} +1 -1
- package/dist/client/assets/{use-voice-input-Br5vij9C.js → use-voice-input-Li611DFd.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CN2uIy97.js +1 -0
- package/dist/client/assets/{useQueries-BN4ZsbwM.js → useQueries-B8jtB-RW.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-ECHIzp7d.js +1 -0
- package/dist/client/assets/{users-BGI0PgLT.js → users-zlgoDQuW.js} +1 -1
- package/dist/client/assets/{utils-B_l1jy6k.js → utils-DONok1LX.js} +1 -1
- package/dist/client/assets/{variant-calendar-bWZKkiCF.js → variant-calendar-CjAgTw5u.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CEpfOStd.js → variant-matcher-override-BKIrGg8S.js} +1 -1
- package/dist/client/assets/{view-header-CX8g-yAR.js → view-header-OfKMmhb0.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BFUo5OwK.js → virtual-mcp-BKUZFB3-.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CkVyQC5r.js → watch-sse-pool-B39Ow5tK.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/server.js +3 -3
- package/package.json +1 -1
- package/dist/client/assets/ReferenceLine-DAphe5so.js +0 -1
- package/dist/client/assets/agent-app-CTOrbTVN.js +0 -1
- package/dist/client/assets/agent-assets-BnRemq1c.js +0 -1
- package/dist/client/assets/agent-blog-qw7eDyTJ.js +0 -2
- package/dist/client/assets/agent-deck-DAVpyFYS.js +0 -1
- package/dist/client/assets/agent-experiments-BbI7pAh_.js +0 -1
- package/dist/client/assets/agent-library-CF4cgtSY.js +0 -1
- package/dist/client/assets/agent-library-file-D0_5aahe.js +0 -1
- package/dist/client/assets/agent-overview-DGOr-pbZ.js +0 -1
- package/dist/client/assets/agent-settings-Dm19cEBP.js +0 -1
- package/dist/client/assets/agent-site-editor-code-Cdro8saM.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BkBXLnyf.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-OMqwm4vD.js +0 -1
- package/dist/client/assets/agent-view-D6Nsllob.js +0 -1
- package/dist/client/assets/api-keys-s9GXv_s3.js +0 -1
- package/dist/client/assets/collection-detail-D7GPiaeW.js +0 -1
- package/dist/client/assets/discover-CI_r8-3h.js +0 -1
- package/dist/client/assets/held-block-view-Clis5U4a.js +0 -3
- package/dist/client/assets/index-CxjuNZbg.js +0 -4
- package/dist/client/assets/index-DYPWHH-M.css +0 -1
- package/dist/client/assets/item-actions-DjxeOUUN.js +0 -1
- package/dist/client/assets/library-DuCkVtdF.js +0 -1
- package/dist/client/assets/match-site-slug-config-D3fUJ6vX.js +0 -1
- package/dist/client/assets/post-calendar-JMOv3xNE.js +0 -1
- package/dist/client/assets/post-editor-DQrYTE_3.js +0 -2
- package/dist/client/assets/preview-tab-Cm6SZitV.js +0 -557
- package/dist/client/assets/project-app-view-C1zig9vg.js +0 -1
- package/dist/client/assets/project-reports-DTqtwUEL.js +0 -1
- package/dist/client/assets/project-tasks-C14eJRtf.js +0 -1
- package/dist/client/assets/reports-Dqx3LdYF.js +0 -1
- package/dist/client/assets/repositories-CDGzat4Q.js +0 -1
- package/dist/client/assets/route-CDNrV6ea.js +0 -1
- package/dist/client/assets/save-status-BvsiA7U3.js +0 -1
- package/dist/client/assets/sections-editor-3egytFfS.js +0 -1
- package/dist/client/assets/settings-tab-DtZ2USkZ.js +0 -1
- package/dist/client/assets/site-editor-C1i1Yk8D.js +0 -1
- package/dist/client/assets/tasks-DmaKkQjL.js +0 -1
- package/dist/client/assets/use-ask-in-chat-BtGzAvHO.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-Byep-1Pa.js +0 -1
- package/dist/client/assets/use-never-published-CT51G1NV.js +0 -1
- package/dist/client/assets/use-project-native-view-presence-CL3n89is.js +0 -1
- package/dist/client/assets/useInfiniteQuery-o37Jr6S0.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BhOGXRBX.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{q as T,b as q,e as B,K as C,
|
|
1
|
+
import{q as T,b as q,e as B,K as C,fK as j}from"./index-BP527m3V.js";import{u as H}from"./use-voice-input-Li611DFd.js";import{x as J,c as S,u as U,v as F,an as N,aE as R,Z as W,X as z,Y as A,ax as L,ay as Y,az as g,aB as G,aM as X,aJ as Z,aI as _,y as b,$ as D}from"./site-editor-toast-BXRGIPuY.js";import{s as $}from"./sandbox-git-api-3zULVhcU.js";import{u as V}from"./chat-context-Na_9rQo_.js";import{i as M,H as I}from"./hosted-reconcile-C5UVxzTP.js";import{b as E}from"./sandbox-url-D3mC8qhT.js";import{d as O}from"./utils-DONok1LX.js";function ue({orgSlug:i,virtualMcpId:t,branch:o}){const s=T(),y=V()?.taskId??null,P=J(t),Q=H(t).runtime==="cms",{url:v}=S(t),d=U(t,o),f=d.kind==="protocol"?d:null,l=F({orgSlug:i,virtualMcpId:t,branch:o}),h=C.decofile(l),K=q(),x=async(r,c)=>{if(v)return{ok:!0};if(Q){const a=await Z({orgSlug:i,virtualMcpId:t,branch:o},{set:r,delete:c});return _(s,{orgSlug:i,virtualMcpId:t,branch:o},a),await s.invalidateQueries({queryKey:$({orgSlug:i,virtualMcpId:t,branch:o,threadId:y})}),a}const u={orgSlug:i,virtualMcpId:t,branch:o,threadId:y};for(const[a,n]of Object.entries(r)){const e=await fetch(E(u,"write"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:b(P,O(a)),content:JSON.stringify(n,null,2)})});if(!e.ok)return D(e,"Write")}for(const a of c){const n=await fetch(E(u,"unlink"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:b(P,O(a))})});if(!n.ok)return D(n,"Delete")}return{ok:!0}},p=B({mutationKey:A(i,t,o),scope:z(i,t,o),mutationFn:async({writes:r,deletes:c,copies:u,shown:a})=>{if(d.kind==="pending"||d.kind==="unavailable")throw N("CMS storage");const n=f?.source==="github"?r:j(r);return f?.source==="github"?M({queryClient:s,backend:f,params:{orgSlug:i,virtualMcpId:t,branch:o},cacheKey:l},{writes:n,deletes:c.filter(e=>!(e in n))},u,a?.()):f?R(s,f,{orgSlug:i,virtualMcpId:t,branch:o},l,{set:n,delete:c.filter(e=>!(e in n))}):W({queryClient:s,orgSlug:i,virtualMcpId:t,branch:o,backend:d,cacheKey:l},{kind:"edit",write:()=>x(n,c)})},onSuccess:()=>{f?.source!=="github"&&s.invalidateQueries({queryKey:C.liveMeta(i,t,o)})}});return{move:async(r,c)=>{const u=[...Object.keys(r.writes),...r.deletes],a=s.getQueryData(h),n=new Map;for(const e of u)a&&e in a&&n.set(e,a[e]);s.setQueryData(h,e=>ee(e,r)),s.cancelQueries({queryKey:h});try{return await p.mutateAsync({...r,copies:a,shown:c?.shown})}catch(e){throw e instanceof I?(L(K,e.deleted,e.deleted&&r.deletes.length>0&&r.deletes.every(m=>Y(s,l,m))),e):(g(K,e),f?.source==="github"&&(G(e)||e instanceof X)||s.setQueryData(h,m=>{if(!m)return m;const w={...m};for(const k of u)n.has(k)?w[k]=n.get(k):delete w[k];return w}),e)}},isPending:p.isPending,isError:p.isError}}function ee(i,{writes:t,deletes:o}){const s={...i??{},...t};for(const y of o)y in t||delete s[y];return s}export{ee as a,ue as u};
|
package/dist/client/assets/{use-navigate-to-agent-Kz2oOKmA.js → use-navigate-to-agent-D9u86crS.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as m,ar as F,at as
|
|
1
|
+
import{c as m,ar as F,at as $,i as E,al as _,K as y,dN as K,a4 as N,d as M,a as G,cI as H,cJ as v}from"./index-BP527m3V.js";import{h as R,r as A,g as D,e as Q,d as x}from"./repository-binding-DGc5VhVW.js";import{t as B,i as W,u as Y,w as J}from"./thread-intent-DrRX6nG0.js";const p=[],z=4;function V(t,e){return[e,...t.filter(n=>n!==e)].slice(0,z)}function X(t){const e=m.c(9);let n;e[0]!==t?(n=$.recentProjects(t),e[0]=t,e[1]=n):n=e[1];const[a,o]=F(n,p),r=Array.isArray(a)?a:p;let s,c;e[2]!==o?(s=l=>o(u=>V(Array.isArray(u)?u:p,l)),c=l=>o(u=>(Array.isArray(u)?u:p).filter(h=>h!==l)),e[2]=o,e[3]=s,e[4]=c):(s=e[3],c=e[4]);let i;return e[5]!==r||e[6]!==s||e[7]!==c?(i={recent:r,remember:s,forget:c},e[5]=r,e[6]=s,e[7]=c,e[8]=i):i=e[8],i}function C(t,e,n,a,o){let r=null;for(const s of t)s.virtual_mcp_id===e&&s.created_by===n&&(s.hidden||B(s,a)&&(o&&s.branch===o||(!r||s.updated_at>r.updated_at)&&(r=s)));return r}function be(t,e,n,a,o){const r=o?.blogDrafts??!1;return t.find(s=>!s.hidden&&s.virtual_mcp_id===e&&s.created_by===n&&s.title==="New chat"&&!s.harness_id&&W(s.branch)===r&&B(s,a))}function Z(t,e,n,a,o,r){if(!o)return C(t,e,n,a)??void 0;const s=a==="cms"?new Set((r?.releases??[]).filter(i=>i.runtime==="sandbox").map(i=>i.branch)):null,c=s?.size?t.filter(i=>!i.branch||!s.has(i.branch)):t;return C(c,e,n,a,r?.baseBranch)??void 0}const S=6e4,ee=5*6e4,I=3e4;function T(t,e){const n=K(t.error);return n===null?0:Math.max(0,t.errorUpdatedAt+n-e)}const P={refetchOnWindowFocus:t=>T(t.state,Date.now())===0,refetchOnMount:t=>T(t.state,Date.now())===0};function L(t){return{number:t.number,title:t.title,body:t.body,state:t.state==="open"?"open":"closed",merged:t.state==="merged",mergedAt:t.mergedAt,base:t.base,head:t.head,headSha:t.headSha,headRepoFullName:t.headRepoPath,htmlUrl:t.url,author:t.author,changedFiles:t.changedFiles}}function te(t){return{id:t.id,name:t.name,status:t.state==="running"?"in_progress":t.state,conclusion:t.conclusion,htmlUrl:t.url??"",durationMs:t.durationMs}}function ne(t,e){const n=T(t,e);return n>0?Math.max(n,S):t.data===void 0||t.data.changeRequest?.state==="open"?S:ee}function k(t){const{orgSlug:e,target:n,owner:a,repo:o,branch:r}=t;return{queryKey:y.githubPrState(e,A(n),a,o,r),queryFn:()=>_(e,"CHANGE_REQUEST_STATE",{...n,branch:r}),enabled:!!r&&R(n)&&!!a&&!!o,...P,refetchInterval:s=>ne(s.state,Date.now()),refetchIntervalInBackground:!1,staleTime:I}}function ae(t){const e=m.c(4);let n;e[0]!==t?(n=k(t),e[0]=t,e[1]=n):n=e[1];let a;return e[2]!==n?(a={...n,select:se},e[2]=n,e[3]=a):a=e[3],E(a)}function se(t){return t.changeRequest?L(t.changeRequest):null}function pe(t){const e=m.c(4);let n;e[0]!==t?(n=k(t),e[0]=t,e[1]=n):n=e[1];let a;return e[2]!==n?(a={...n,select:re},e[2]=n,e[3]=a):a=e[3],E(a)}function re(t){return t.changeRequest?.state==="open"?t.changeRequest.checkRuns.map(te):[]}const oe=5*6e4;function Ee(t){const e=m.c(20),{orgSlug:n,target:a,owner:o,repo:r,base:s}=t;let c;e[0]!==s||e[1]!==n||e[2]!==o||e[3]!==r||e[4]!==a?(c=y.githubLastPublishedPr(n,A(a),o,r,s),e[0]=s,e[1]=n,e[2]=o,e[3]=r,e[4]=a,e[5]=c):c=e[5];let i;e[6]!==s||e[7]!==n||e[8]!==a?(i=()=>_(n,"CHANGE_REQUEST_LAST_MERGED",{...a,base:s}),e[6]=s,e[7]=n,e[8]=a,e[9]=i):i=e[9];let l;e[10]!==t.enabled||e[11]!==s||e[12]!==o||e[13]!==r||e[14]!==a?(l=(t.enabled??!0)&&!!s&&R(a)&&!!o&&!!r,e[10]=t.enabled,e[11]=s,e[12]=o,e[13]=r,e[14]=a,e[15]=l):l=e[15];let u;return e[16]!==c||e[17]!==i||e[18]!==l?(u={queryKey:c,queryFn:i,enabled:l,...P,staleTime:oe,select:ie},e[16]=c,e[17]=i,e[18]=l,e[19]=u):u=e[19],E(u)}function ie(t){return t.changeRequest?L(t.changeRequest):null}const ce=50;function Se(t){const e=m.c(17),{orgSlug:n,target:a,owner:o,repo:r}=t;let s;e[0]!==n||e[1]!==o||e[2]!==r||e[3]!==a?(s=y.githubOpenPrs(n,A(a),o,r),e[0]=n,e[1]=o,e[2]=r,e[3]=a,e[4]=s):s=e[4];let c;e[5]!==n||e[6]!==a?(c=()=>_(n,"CHANGE_REQUEST_LIST_OPEN",{...a,limit:ce}),e[5]=n,e[6]=a,e[7]=c):c=e[7];let i;e[8]!==t.enabled||e[9]!==o||e[10]!==r||e[11]!==a?(i=(t.enabled??!0)&&R(a)&&!!o&&!!r,e[8]=t.enabled,e[9]=o,e[10]=r,e[11]=a,e[12]=i):i=e[12];let l;return e[13]!==s||e[14]!==c||e[15]!==i?(l={queryKey:s,queryFn:c,enabled:i,...P,staleTime:I,select:le},e[13]=s,e[14]=c,e[15]=i,e[16]=l):l=e[16],E(l)}function le(t){return t.changeRequests.map(L)}function ue(t,e){const{org:n}=N(),a=D(t);return ae({orgId:n.id,orgSlug:n.slug,target:Q(a),owner:a?.owner??"",repo:a?.name??"",branch:e??null}).data?.base??"main"}const de=[];function Te(){const t=m.c(13),e=M(),{org:n,locator:a}=N(),o=x(),{data:r}=G.useSession(),s=Y(),c=ue(void 0,null),{remember:i}=X(n.slug);let l;t[0]!==c||t[1]!==o||t[2]!==a||t[3]!==s?.threads||t[4]!==e||t[5]!==n.slug||t[6]!==r?.user?.id?(l=(d,g,f)=>{if(H(g).kind==="org-destination"){v(e,{tabId:g,org:n.slug,agentId:d,replace:!1});return}const w=(o??[]).find(j=>j.id===d),U=!!(w&&D(w)),O=!f,q=O?void 0:Z(s?.threads.get()??de,d,r?.user?.id,f,U,{baseBranch:c}),b=O?void 0:q?.id??crypto.randomUUID();b&&!q&&f&&J(sessionStorage,a,b,{runtime:f}),v(e,{tabId:g,org:n.slug,agentId:d,search:()=>b?{thread:b}:{},replace:!1})},t[0]=c,t[1]=o,t[2]=a,t[3]=s?.threads,t[4]=e,t[5]=n.slug,t[6]=r?.user?.id,t[7]=l):l=t[7];const u=l;let h;return t[8]!==u||t[9]!==e||t[10]!==n.slug||t[11]!==i?(h=(d,g)=>{const f=g?.panel;if(!f){i(d),e(fe(n.slug,d));return}u(d,f,g?.runtime)},t[8]=u,t[9]=e,t[10]=n.slug,t[11]=i,t[12]=h):h=t[12],h}function fe(t,e){return{to:"/$org/projects/$agentId",params:{org:t,agentId:e},search:n=>({...n,project:void 0,virtualmcpid:void 0,thread:void 0,mainpanel:void 0})}}export{X as a,ue as b,Z as c,Se as d,ae as e,be as f,Ee as g,pe as h,k as p,Te as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{fJ as U,q as xe,b as Q,r as L,e as Ae,K as V,fK as oe,eb as Ee,fL as Me,fM as le,fN as ae,fO as Oe,fP as Fe,fQ as ze,fR as Le,fS as He,fT as Re,c as H,j as o,x as Ue,aT as $e,w as Be,dZ as Ie,R as Qe,v as Ve,D as qe,m as Ge,B as ve,h as _e,t as ke,X as Ye,bv as ce,Y as ee,a7 as We,Z as Je,_ as Ze}from"./index-BP527m3V.js";import{u as Xe}from"./use-voice-input-Li611DFd.js";import{x as Ke,c as et,u as Se,v as tt,ax as it,ay as je,az as rt,aA as _,aB as X,an as nt,aC as st,aD as fe,aE as te,aF as ue,Z as ot,X as lt,Y as at,aG as ct,aH as de,af as ft,aI as ut,y as dt,$ as mt,aJ as ht,aK as pt,aL as gt,a1 as yt}from"./site-editor-toast-BXRGIPuY.js";import{b as xt,h as vt,a as kt,d as me,e as he,f as St,c as jt,g as wt}from"./hosted-reconcile-C5UVxzTP.js";import{z as bt,y as Pt}from"./blocks-tab-states-BZoxOO-H.js";import{s as Ct}from"./sandbox-git-api-3zULVhcU.js";import{u as Nt}from"./chat-context-Na_9rQo_.js";import{b as Dt}from"./sandbox-url-D3mC8qhT.js";import{d as Tt}from"./utils-DONok1LX.js";import{d as At}from"./delay-CnY5UFtP.js";import{i as Et}from"./AlertCircle-DT2ZDuIl.js";import{P as Mt,e as Ot}from"./agent-icon-CpMz1pSC.js";import{a as Ft}from"./SwitchHorizontal01-Cp1oX99F.js";import{b as K}from"./Tool01-BlUlKjGy.js";import{i as we}from"./Upload01-DDoiK0tv.js";import{S as zt}from"./search-input-ChnwrZA6.js";import{T as Lt,a as Ht,c as Rt,b as Ut}from"./tabs-DXm_rA9S.js";import{u as $t}from"./use-debounced-value-DJ5YZsat.js";import{a as Bt}from"./use-file-configs-8VTVKs7P.js";import{a as It,u as Qt,i as be,e as Vt,b as pe,f as qt}from"./asset-utils-DxQXeDgB.js";import{f as q,M as Gt,c as _t,g as Z}from"./usage-stats-CK4hgSt6.js";function Yt(t,e,i,n={}){return Pe("",t,e,i,n)}function Pe(t,e,i,n,r){if(Y(i,n)||Y(e,n))return i;if(Y(e,i))return n;if(ie(i)&&ie(n)){const s=ie(e)?e:{},c={},f=[...Object.keys(i),...Object.keys(n).filter(p=>!(p in i))];for(const p of f){const h=Pe(`${t}/${Wt(p)}`,s[p],i[p],n[p],r);h!==void 0&&(c[p]=h)}return c}if(Array.isArray(e)&&Array.isArray(i)&&Array.isArray(n)&&i.length===e.length&&n.length===e.length){const s=[];for(const[c,f]of e.entries()){const p=!Y(f,i[c]),h=!Y(f,n[c]);if(p&&h&&!Y(i[c],n[c]))return ge(t,i,n,r);s.push(p?i[c]:n[c])}return s}return ge(t,i,n,r)}function ge(t,e,i,n){return n.conflicts?.push(t),n.prefer==="theirs"?i:e}function Wt(t){return t.replaceAll("~","~0").replaceAll("/","~1")}function Y(t,e){return U(t)===U(e)}function ie(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}function Jt(t){return t?1e3:700}function re(t){return!!t&&typeof t=="object"&&t.keptTheirs===!0}const W=new Map,Zt=20,Xt=200,Kt=1500;function Ce(t){const e=W.get(t);W.delete(t);const i=e??[];if(W.set(t,i),W.size>Xt){const n=W.keys().next().value;n!==void 0&&W.delete(n)}return i}function ei(t,e){const i=Ce(t);i.push(U(e)),i.length>Zt&&i.shift()}function ti(t,e){return Ce(t).includes(U(e))}async function ii(t,e){if(e){if(e.value===void 0)return{[t]:null};try{return{[t]:await Re(e.value)}}catch{return}}}function ri({orgSlug:t,virtualMcpId:e,branch:i},n){const r=xe(),s=Nt()?.taskId??null,c=Ke(e),f=Xe(e).runtime==="cms",{url:p}=et(e),h=Se(e,i),v=h.kind==="protocol"?h:null,u=tt({orgSlug:t,virtualMcpId:e,branch:i}),k=Q(),j=v?.source==="github",[w]=L.useState(()=>n?.holdsCopy?new wt(()=>gt(r,u)):null);w?.settle();const m=j?w:null,g=async(l,a,d,S)=>{if(p)return{blockKey:l,data:a};if(f){const x=async($,O)=>{const B=await ii(l,O);return ht({orgSlug:t,virtualMcpId:e,branch:i},{set:{[l]:$},...B?{expect:B}:{}})},C=`${u}:${l}`,D=($,O=[])=>new _($,O.length>0?k("sectionsEditor.sectionsEditor.blockFieldsChangedElsewhere",{fields:He(O)}):k("sectionsEditor.sectionsEditor.blockChangedElsewhere"),O),A=async $=>{await r.invalidateQueries({queryKey:V.decofile(u)});const O=r.getQueryData(V.decofile(u))?.[l];if(d&&ti(C,O)&&U(O)!==U(d.value))return await At(Kt),{draft:await x(a,d),written:a};const B=[],G=S&&d?.fromCache?Yt(d.value,a,O,{prefer:"theirs",conflicts:B}):void 0;if(G===void 0||B.length>0)throw D($.blocks,B);const I=oe(G);return{draft:await x(I,{value:O}),written:I}};let R=a,z;try{z=await x(a,d)}catch($){if(!($ instanceof _))throw $;try{({draft:z,written:R}=await A($))}catch(O){throw!(O instanceof _)||O.fields.length>0?O:(await r.invalidateQueries({queryKey:V.decofile(u)}),D(O.blocks))}}return ei(C,R),ut(r,{orgSlug:t,virtualMcpId:e,branch:i},z),await r.invalidateQueries({queryKey:Ct({orgSlug:t,virtualMcpId:e,branch:i,threadId:s})}),{...z,written:R}}const y=dt(c,Tt(l)),T=JSON.stringify(a,null,2),E=await fetch(Dt({orgSlug:t,virtualMcpId:e,branch:i,threadId:s},"write"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:y,content:T})});return E.ok?E.json():mt(E,"Write")},b=async(l,a,d,S,y,T)=>{const E=v,x={queryClient:r,backend:E,params:l,cacheKey:u};let C=d,D=y?void 0:T?T.value:S?.value,A=y?{[a]:null}:T?{[a]:await vt(T,Me(r,u,a))}:await kt(x,[a],S?{[a]:S.value}:void 0);for(let R=0;;R++)try{return{...await te(r,E,l,u,{set:{[a]:C}},A),written:C}}catch(z){if(!X(z))throw z;const $=await ue(r,E,l,u,a,z),O=r.getQueryData(V.decofile(u))?.[a],B=de(r,u,a,E),G=C;if(R+1>=me||!le()||B===void 0||!J(G)||O!==void 0&&!J(O))throw new _([a],R+1>=me?k("siteEditor.save.keptChanging"):k("siteEditor.save.conflict"),[],$);if(A={[a]:B},!J(O)){if(!J(D))continue;if(await ae({kind:"theyDeleted",label:he(a,D,G)})==="theirs")return{keptTheirs:!0,deleted:!0};D=void 0;continue}const I=Oe({ancestor:J(D)?D:{},mine:G,theirs:O}),se=I.pointers.length===0?{}:await Fe(I,ze(I,P(l,O),!0),{block:bt(a,O),author:{draft:l,blockKey:a}});if(C=I.pointers.length===0?I.merged:Le(I,se),St(se)&&U(C)===U(O))return{keptTheirs:!0,deleted:!1};D=O}},P=(l,a)=>{const d=a.__resolveType,S=r.getQueryData(ft(l,v));if(typeof d!="string"||!S?.manifest)return null;try{return Pt(d,S)}catch{return null}},N=async(l,a,d,S,y)=>{const T=v,E=r.getQueryData(V.decofile(u));if(E&&Object.hasOwn(E,a)||!le()||!J(d))return;if(await ae({kind:"theyDeleted",label:he(a,y?.value,d)})==="theirs")return{keptTheirs:!0,deleted:!0};const C=de(r,u,a,T);if(C===void 0)return;const D=await te(r,T,l,u,{set:{[a]:d}},{[a]:C});return S.onApplied?.(D.versions),{...D,written:d}},M=Ae({mutationKey:at(t,e,i),scope:lt(t,e,i),mutationFn:async({blockKey:l,data:a,base:d,rebaseOnConflict:S=!0,guard:y,create:T=!1,edit:E})=>{if(h.kind==="pending"||h.kind==="unavailable")throw nt("CMS storage");if(v?.source!=="github"&&(a=oe(a)),v){const x={orgSlug:t,virtualMcpId:e,branch:i},C=A=>{!m||re(A)||U(A.written)===U(a)&&A.versions[l]&&m.saved(l,a)};if(j&&!y){const A=await b(x,l,a,d,T,T?void 0:m?.guardOf(l,E));return C(A),A}if(j&&y&&!y.reloadOnConflict){const A=await y.ifMatch(l),R=T||!!A&&A[l]===null;try{const z=await b(x,l,a,d,R,R?void 0:m?.guardOf(l,E));return C(z),y.onApplied?.(re(z)?{}:z.versions),z}catch(z){throw y.onRejected?.(z),z}}let D=await y?.ifMatch(l);if(y&&!D&&j&&(await st(r,v,x,u).catch(()=>{throw new fe}),D=await y.ifMatch(l),!D))throw new fe;try{const A=await te(r,v,x,u,{set:{[l]:a}},D);return D&&y?.onApplied?.(A.versions),A}catch(A){if(D&&y?.onRejected?.(A),D&&y?.reloadOnConflict&&X(A)){const R=await ue(r,v,x,u,l,A);if(j)try{const z=await N(x,l,a,y,d);if(z)return z}catch(z){if(!X(z))throw z}throw new _([l],k("sectionsEditor.sectionsEditor.blockChangedElsewhere"),[],R)}throw A}}return ot({queryClient:r,orgSlug:t,virtualMcpId:e,branch:i,backend:h,cacheKey:u},{kind:"edit",write:()=>g(l,a,d,S)})},onMutate:async({blockKey:l,data:a})=>{const d=V.decofile(u);await r.cancelQueries({queryKey:d});const S=r.getQueryData(d),y=!!S&&l in S,T=S?.[l];return r.setQueryData(d,E=>({...E??{},[l]:a})),{queryKey:d,blockKey:l,hadKey:y,previousValue:T}},onError:(l,a,d)=>{rt(k,l),!(!d||l instanceof _)&&(X(l)&&r.invalidateQueries({queryKey:d.queryKey}),r.setQueryData(d.queryKey,S=>{if(!S)return S;if(!d.hadKey){const{[d.blockKey]:y,...T}=S;return T}return{...S,[d.blockKey]:d.previousValue}}))},onSuccess:(l,{blockKey:a,data:d})=>{const S=()=>{if(!m)return;const T=jt({orgSlug:t,virtualMcpId:e,branch:i});Ee.schedule(()=>xt(T,a))};if(re(l)){it(k,l.deleted,l.deleted&&je(r,u,a)),S();return}const y=l&&typeof l=="object"&&"written"in l?l.written:d;r.setQueryData(V.decofile(u),T=>({...T??{},[a]:y})),U(y)!==U(d)&&S()}}),F=l=>{if(l.base)return l;const a=r.getQueryData(V.decofile(u));return a?{...l,base:{value:a[l.blockKey],fromCache:!0}}:l};return{...M,v8:h.kind!=="legacy",mutate:(l,a)=>M.mutate(F(l),a),mutateAsync:(l,a)=>M.mutateAsync(F(l),a),reportError:l=>ct(k,l,v?.source??null),hold:l=>w?.hold(l),holdsCopy:m!==null,autosaveDelay:Jt(v!==null),edited:l=>m?.edited(l),shown:l=>m?.get(l)}}function tr(t,e){const i=H.c(29),n=e?.holdsCopy;let r;i[0]!==n?(r={holdsCopy:n},i[0]=n,i[1]=r):r=i[1];const s=ri(t,r);let c;i[2]===Symbol.for("react.memo_cache_sentinel")?(c=new Map,i[2]=c):c=i[2];const f=L.useRef(c);let p;i[3]===Symbol.for("react.memo_cache_sentinel")?(p=new Map,i[3]=p):p=i[3];const h=L.useRef(p);let v;i[4]===Symbol.for("react.memo_cache_sentinel")?(v=new Map,i[4]=v):v=i[4];const u=L.useRef(v);let k;i[5]===Symbol.for("react.memo_cache_sentinel")?(k=new Set,i[5]=k):k=i[5];const j=L.useRef(k);let w;i[6]===Symbol.for("react.memo_cache_sentinel")?(w=new Set,i[6]=w):w=i[6];const m=L.useRef(w);let g,b;i[7]!==e||i[8]!==s?(g=x=>{if(j.current.has(x)){m.current.add(x);return}const C=f.current.get(x);if(!C)return;const D=typeof C=="function"?C():C;f.current.delete(x);const A=h.current.get(x);h.current.delete(x),D&&(j.current.add(x),s.mutateAsync({blockKey:x,data:D,guard:e?.guard,edit:A}).then(()=>e?.onSaved?.(),s.reportError).finally(()=>{j.current.delete(x),m.current.delete(x)&&g(x)}))},b=()=>{for(const x of u.current.values())clearTimeout(x);u.current.clear();for(const x of[...f.current.keys()])g(x)},i[7]=e,i[8]=s,i[9]=g,i[10]=b):(g=i[9],b=i[10]);const P=b;let N;i[11]===Symbol.for("react.memo_cache_sentinel")?(N=x=>{for(const C of x){const D=u.current.get(C);D&&clearTimeout(D),u.current.delete(C),f.current.delete(C),h.current.delete(C),m.current.delete(C)}},i[11]=N):N=i[11],pt(t.orgSlug,t.virtualMcpId,N);let M,F;i[12]===Symbol.for("react.memo_cache_sentinel")?(F=()=>{const x=C=>{(f.current.size>0||j.current.size>0)&&C.preventDefault()};return window.addEventListener("beforeunload",x),()=>window.removeEventListener("beforeunload",x)},M=[],i[12]=M,i[13]=F):(M=i[12],F=i[13]),L.useEffect(F,M);let l;i[14]!==P||i[15]!==s.holdsCopy?(l=()=>(s.holdsCopy&&P(),s.holdsCopy),i[14]=P,i[15]=s.holdsCopy,i[16]=l):l=i[16];const a=L.useEffectEvent(l);let d;i[17]!==a?(d=()=>{const x=u.current;return()=>{if(!a())for(const C of x.values())clearTimeout(C)}},i[17]=a,i[18]=d):d=i[18];let S;i[19]===Symbol.for("react.memo_cache_sentinel")?(S=[],i[19]=S):S=i[19],L.useEffect(d,S);let y;i[20]!==g||i[21]!==s?(y=(x,C)=>{if(!h.current.has(x)){const A=s.edited(x);A&&h.current.set(x,A)}f.current.set(x,C);const D=u.current.get(x);D&&clearTimeout(D),u.current.set(x,setTimeout(()=>{u.current.delete(x),g(x)},s.autosaveDelay))},i[20]=g,i[21]=s,i[22]=y):y=i[22];const T=y;let E;return i[23]!==P||i[24]!==T||i[25]!==s.hold||i[26]!==s.isPending||i[27]!==s.v8?(E={save:T,flush:P,isPending:s.isPending,hold:s.hold,v8:s.v8},i[23]=P,i[24]=T,i[25]=s.hold,i[26]=s.isPending,i[27]=s.v8,i[28]=E):E=i[28],E}function J(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}const Ne="file-picker:last-config-id";function ir(t){const e=H.c(31),i=Q(),n=t.open,r=t.onOpenChange;let s;e[0]!==t.mode||e[1]!==i?(s=t.mode==="image"?i("filePicker.filePickerDialog.pickAnImage"):i("filePicker.filePickerDialog.pickAFile"),e[0]=t.mode,e[1]=i,e[2]=s):s=e[2];let c;e[3]!==s?(c=o.jsx(Ue,{children:s}),e[3]=s,e[4]=c):c=e[4];let f;e[5]!==i?(f=i("filePicker.filePickerDialog.description"),e[5]=i,e[6]=f):f=e[6];let p;e[7]!==f?(p=o.jsx($e,{children:f}),e[7]=f,e[8]=p):p=e[8];let h;e[9]!==c||e[10]!==p?(h=o.jsxs(Be,{children:[c,p]}),e[9]=c,e[10]=p,e[11]=h):h=e[11];let v;e[12]!==i?(v=b=>{const{error:P}=b;return o.jsx(ni,{error:P??new Error(i("filePicker.filePickerDialog.failedToLoadBuckets"))})},e[12]=i,e[13]=v):v=e[13];let u;e[14]===Symbol.for("react.memo_cache_sentinel")?(u=o.jsx(Ie,{className:"h-64 w-full"}),e[14]=u):u=e[14];let k;e[15]!==t?(k=b=>{t.onSelect(b),t.onOpenChange(!1)},e[15]=t,e[16]=k):k=e[16];let j;e[17]!==t.lockedConfigId||e[18]!==t.mode||e[19]!==k?(j=o.jsx(L.Suspense,{fallback:u,children:o.jsx(si,{mode:t.mode,lockedConfigId:t.lockedConfigId,onSelect:k})}),e[17]=t.lockedConfigId,e[18]=t.mode,e[19]=k,e[20]=j):j=e[20];let w;e[21]!==j||e[22]!==v?(w=o.jsx(Qe,{fallback:v,children:j}),e[21]=j,e[22]=v,e[23]=w):w=e[23];let m;e[24]!==w||e[25]!==h?(m=o.jsxs(Ve,{className:"sm:max-w-3xl max-h-[85vh] overflow-hidden flex flex-col",children:[h,w]}),e[24]=w,e[25]=h,e[26]=m):m=e[26];let g;return e[27]!==t.onOpenChange||e[28]!==t.open||e[29]!==m?(g=o.jsx(qe,{open:n,onOpenChange:r,children:m}),e[27]=t.onOpenChange,e[28]=t.open,e[29]=m,e[30]=g):g=e[30],g}function ni(t){const e=H.c(3),{error:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(Et,{size:16}),e[0]=n):n=e[0];let r;return e[1]!==i.message?(r=o.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[n,o.jsx("span",{className:"text-sm font-medium",children:i.message})]}),e[1]=i.message,e[2]=r):r=e[2],r}function si(t){const e=H.c(36),{mode:i,lockedConfigId:n,onSelect:r}=t,s=Bt(),c=Q();if(s.length===0){let m;return e[0]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(ai,{}),e[0]=m):m=e[0],m}if(n){let m;if(e[1]!==s||e[2]!==n){let N;e[4]!==n?(N=M=>M.id===n,e[4]=n,e[5]=N):N=e[5],m=s.find(N),e[1]=s,e[2]=n,e[3]=m}else m=e[3];const g=m;if(g){let N;return e[6]!==g||e[7]!==i||e[8]!==r?(N=o.jsx(ne,{config:g,mode:i,onSelect:r}),e[6]=g,e[7]=i,e[8]=r,e[9]=N):N=e[9],N}let b;e[10]!==c?(b=c("virtualMcp.settings.assetStorage.missing"),e[10]=c,e[11]=b):b=e[11];let P;return e[12]!==b?(P=o.jsx("p",{className:"p-6 text-sm text-muted-foreground",children:b}),e[12]=b,e[13]=P):P=e[13],P}if(s.length===1){const m=s[0];let g;return e[14]!==m||e[15]!==i||e[16]!==r?(g=o.jsx(ne,{config:m,mode:i,onSelect:r}),e[14]=m,e[15]=i,e[16]=r,e[17]=g):g=e[17],g}let f;e[18]===Symbol.for("react.memo_cache_sentinel")?(f=typeof window<"u"?window.localStorage.getItem(Ne):null,e[18]=f):f=e[18];const p=f;let h;e[19]!==s?(h=s.find(m=>m.id===p)?.id??s[0].id,e[19]=s,e[20]=h):h=e[20];const v=h;let u;e[21]!==s?(u=s.map(oi),e[21]=s,e[22]=u):u=e[22];let k;e[23]!==u?(k=o.jsx(Ht,{className:"self-start",children:u}),e[23]=u,e[24]=k):k=e[24];let j;if(e[25]!==s||e[26]!==i||e[27]!==r){let m;e[29]!==i||e[30]!==r?(m=g=>o.jsx(Rt,{value:g.id,className:"min-h-0 flex-1 overflow-hidden flex flex-col",children:o.jsx(ne,{config:g,mode:i,onSelect:r})},g.id),e[29]=i,e[30]=r,e[31]=m):m=e[31],j=s.map(m),e[25]=s,e[26]=i,e[27]=r,e[28]=j}else j=e[28];let w;return e[32]!==v||e[33]!==k||e[34]!==j?(w=o.jsxs(Ut,{defaultValue:v,onValueChange:li,className:"min-h-0 flex-1 flex flex-col",children:[k,j]}),e[32]=v,e[33]=k,e[34]=j,e[35]=w):w=e[35],w}function oi(t){return o.jsx(Lt,{value:t.id,children:t.name},t.id)}function li(t){typeof window<"u"&&window.localStorage.setItem(Ne,t)}function ai(){const t=H.c(12),e=Q();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:o.jsx(we,{size:20,className:"text-muted-foreground"})}),t[0]=i):i=t[0];let n;t[1]!==e?(n=e("filePicker.filePickerDialog.noBucketConfigured"),t[1]=e,t[2]=n):n=t[2];let r;t[3]!==n?(r=o.jsx("p",{className:"font-medium text-sm",children:n}),t[3]=n,t[4]=r):r=t[4];let s;t[5]!==e?(s=e("filePicker.filePickerDialog.noBucketDescription"),t[5]=e,t[6]=s):s=t[6];let c;t[7]!==s?(c=o.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:s}),t[7]=s,t[8]=c):c=t[8];let f;return t[9]!==r||t[10]!==c?(f=o.jsxs("div",{className:"rounded-xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[i,o.jsxs("div",{children:[r,c]})]}),t[9]=r,t[10]=c,t[11]=f):f=t[11],f}function ne({config:t,mode:e,onSelect:i}){const n=Q(),[r,s]=L.useState(""),c=$t(r,300),f=It({configId:t.id,search:c,imageOnly:e==="image"}),p=Qt(),[h,v]=L.useState(!1),u=L.useRef(null),k=e==="image"?"image/*":void 0;async function j(a){if(!a)return;const d=Array.from(a);if(d.length===0)return;let S=null;const y=[];for(const T of d)try{const E=await p.mutateAsync({configId:t.id,file:T});S??=E.publicUrl}catch(E){y.push(`${T.name} (${E instanceof Error?E.message:"upload failed"})`)}await f.refetch(),y.length>0&&ke.error(y.length===d.length?n("filePicker.filePickerDialog.uploadFailedAll",{errors:y.join("; ")}):n("filePicker.filePickerDialog.uploadFailedSome",{errors:y.join("; ")})),S&&i(S)}function w(a){a.preventDefault(),v(!0)}function m(){v(!1)}function g(a){a.preventDefault(),a.stopPropagation(),v(!1),j(a.dataTransfer.files)}const P=(f.data?.pages??[]).flatMap(a=>a.items),N=P.filter(a=>e==="image"?be(a.key):!0),M=c.trim(),F=P.length>0||r.trim().length>0,l=r!==c||f.isFetching&&!f.isFetchingNextPage;return o.jsxs("div",{className:"flex flex-col gap-3 min-h-0 flex-1",children:[o.jsxs("button",{type:"button",onClick:()=>u.current?.click(),onDragOver:w,onDragLeave:m,onDrop:g,className:Ge("rounded-xl border border-dashed border-border/60 p-6 flex flex-col items-center justify-center gap-2 text-center transition-colors",h&&"border-primary bg-primary/5",p.isPending&&"opacity-60 pointer-events-none"),children:[o.jsx(we,{size:18,className:"text-muted-foreground"}),o.jsx("p",{className:"text-sm font-medium",children:p.isPending?n("filePicker.filePickerDialog.uploading"):n("filePicker.filePickerDialog.dropFilesOrClick")}),o.jsxs("p",{className:"text-xs text-muted-foreground",children:[n("filePicker.filePickerDialog.uploadSizeLimit")," ",n(e==="image"?"filePicker.filePickerDialog.imagesOnlyTypes":"filePicker.filePickerDialog.commonMediaTypes")]}),o.jsx("input",{ref:u,type:"file",accept:k,multiple:!0,className:"hidden",onChange:a=>{const d=Array.from(a.target.files??[]);a.target.value="",j(d)}})]}),F?o.jsx(zt,{value:r,onChange:s,isSearching:l,placeholder:n(e==="image"?"filePicker.filePickerDialog.searchImagesPlaceholder":"filePicker.filePickerDialog.searchFilesPlaceholder"),className:"shrink-0"}):null,o.jsxs("div",{className:"min-h-0 flex-1 overflow-y-auto pr-1",children:[N.length===0?M?o.jsx(ui,{query:M}):e==="image"&&P.length>0?o.jsx(fi,{}):o.jsx(ci,{}):e==="image"?o.jsx(di,{items:N,onSelect:i}):o.jsx(mi,{items:N,onSelect:i}),f.hasNextPage&&o.jsx("div",{className:"flex justify-center py-4",children:o.jsx(ve,{type:"button",variant:"outline",size:"sm",disabled:f.isFetchingNextPage,onClick:()=>f.fetchNextPage(),children:f.isFetchingNextPage?o.jsxs(o.Fragment,{children:[o.jsx(_e,{className:"size-3.5"}),n("filePicker.filePickerDialog.loading")]}):n("filePicker.filePickerDialog.loadMore")})})]})]})}function ci(){const t=H.c(12),e=Q();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"flex size-10 items-center justify-center rounded-full bg-muted",children:o.jsx(K,{size:18,className:"text-muted-foreground"})}),t[0]=i):i=t[0];let n;t[1]!==e?(n=e("filePicker.filePickerDialog.noFilesYet"),t[1]=e,t[2]=n):n=t[2];let r;t[3]!==n?(r=o.jsx("p",{className:"text-sm font-medium",children:n}),t[3]=n,t[4]=r):r=t[4];let s;t[5]!==e?(s=e("filePicker.filePickerDialog.dropFileToGetStarted"),t[5]=e,t[6]=s):s=t[6];let c;t[7]!==s?(c=o.jsx("p",{className:"text-xs text-muted-foreground",children:s}),t[7]=s,t[8]=c):c=t[8];let f;return t[9]!==r||t[10]!==c?(f=o.jsxs("div",{className:"flex h-full min-h-40 flex-col items-center justify-center gap-2 py-8 text-center",children:[i,r,c]}),t[9]=r,t[10]=c,t[11]=f):f=t[11],f}function fi(){const t=H.c(12),e=Q();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"flex size-10 items-center justify-center rounded-full bg-muted",children:o.jsx(K,{size:18,className:"text-muted-foreground"})}),t[0]=i):i=t[0];let n;t[1]!==e?(n=e("filePicker.filePickerDialog.noImagesYet"),t[1]=e,t[2]=n):n=t[2];let r;t[3]!==n?(r=o.jsx("p",{className:"text-sm font-medium",children:n}),t[3]=n,t[4]=r):r=t[4];let s;t[5]!==e?(s=e("filePicker.filePickerDialog.noImagesFormatDesc"),t[5]=e,t[6]=s):s=t[6];let c;t[7]!==s?(c=o.jsx("p",{className:"text-xs text-muted-foreground",children:s}),t[7]=s,t[8]=c):c=t[8];let f;return t[9]!==r||t[10]!==c?(f=o.jsxs("div",{className:"flex h-full min-h-40 flex-col items-center justify-center gap-2 py-8 text-center",children:[i,r,c]}),t[9]=r,t[10]=c,t[11]=f):f=t[11],f}function ui(t){const e=H.c(13),{query:i}=t,n=Q();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("div",{className:"flex size-10 items-center justify-center rounded-full bg-muted",children:o.jsx(K,{size:18,className:"text-muted-foreground"})}),e[0]=r):r=e[0];let s;e[1]!==i||e[2]!==n?(s=n("filePicker.filePickerDialog.noMatches",{query:i}),e[1]=i,e[2]=n,e[3]=s):s=e[3];let c;e[4]!==s?(c=o.jsx("p",{className:"text-sm font-medium",children:s}),e[4]=s,e[5]=c):c=e[5];let f;e[6]!==n?(f=n("filePicker.filePickerDialog.tryDifferentSearchOrLoadMore"),e[6]=n,e[7]=f):f=e[7];let p;e[8]!==f?(p=o.jsx("p",{className:"text-xs text-muted-foreground",children:f}),e[8]=f,e[9]=p):p=e[9];let h;return e[10]!==c||e[11]!==p?(h=o.jsxs("div",{className:"flex h-full min-h-40 flex-col items-center justify-center gap-2 py-8 text-center",children:[r,c,p]}),e[10]=c,e[11]=p,e[12]=h):h=e[12],h}function di(t){const e=H.c(7),{items:i,onSelect:n}=t;let r;if(e[0]!==i||e[1]!==n){let c;e[3]!==n?(c=f=>o.jsx(De,{item:f,variant:"image",onSelect:n},f.key),e[3]=n,e[4]=c):c=e[4],r=i.map(c),e[0]=i,e[1]=n,e[2]=r}else r=e[2];let s;return e[5]!==r?(s=o.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-3",children:r}),e[5]=r,e[6]=s):s=e[6],s}function mi(t){const e=H.c(7),{items:i,onSelect:n}=t;let r;if(e[0]!==i||e[1]!==n){let c;e[3]!==n?(c=f=>o.jsx("li",{children:o.jsx(De,{item:f,variant:"row",onSelect:n})},f.key),e[3]=n,e[4]=c):c=e[4],r=i.map(c),e[0]=i,e[1]=n,e[2]=r}else r=e[2];let s;return e[5]!==r?(s=o.jsx("ul",{className:"divide-y divide-border/60 rounded-lg border border-border/60",children:r}),e[5]=r,e[6]=s):s=e[6],s}function De(t){const e=H.c(58),{item:i,variant:n,onSelect:r}=t;let s;e[0]!==i.key?(s=Vt(i.key),e[0]=i.key,e[1]=s):s=e[1];const c=s;if(n==="image"){let N;e[2]!==i.publicUrl||e[3]!==r?(N=()=>r(i.publicUrl),e[2]=i.publicUrl,e[3]=r,e[4]=N):N=e[4];let M;e[5]!==i.key||e[6]!==i.publicUrl?(M=o.jsx("img",{src:i.publicUrl,alt:i.key,loading:"lazy",className:"h-full w-full object-cover",onError:hi}),e[5]=i.key,e[6]=i.publicUrl,e[7]=M):M=e[7];let F;e[8]!==i.key||e[9]!==N||e[10]!==M?(F=o.jsx("button",{type:"button",onClick:N,className:"block h-full w-full transition hover:ring-2 hover:ring-primary",title:i.key,children:M}),e[8]=i.key,e[9]=N,e[10]=M,e[11]=F):F=e[11];let l;e[12]!==c?(l=o.jsx("span",{className:"pointer-events-none absolute left-1.5 top-1.5 rounded bg-background/80 px-1.5 py-0.5 text-2xs font-medium uppercase text-foreground opacity-0 backdrop-blur-sm transition-opacity group-hover:opacity-100",children:c}),e[12]=c,e[13]=l):l=e[13];let a;e[14]!==i||e[15]!==r?(a=o.jsx("div",{className:"absolute right-1.5 top-1.5 opacity-0 transition-opacity group-hover:opacity-100",children:o.jsx(ye,{item:i,onSelect:r})}),e[14]=i,e[15]=r,e[16]=a):a=e[16];let d;e[17]!==i.key?(d=pe(i.key),e[17]=i.key,e[18]=d):d=e[18];let S;e[19]!==d?(S=o.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/70 to-transparent p-2 opacity-0 transition-opacity group-hover:opacity-100",children:o.jsx("p",{className:"truncate text-xs text-white",children:d})}),e[19]=d,e[20]=S):S=e[20];let y;return e[21]!==F||e[22]!==l||e[23]!==a||e[24]!==S?(y=o.jsxs("div",{className:"group relative aspect-square overflow-hidden rounded-lg border border-border/60 bg-muted",children:[F,l,a,S]}),e[21]=F,e[22]=l,e[23]=a,e[24]=S,e[25]=y):y=e[25],y}let f;e[26]!==i.publicUrl||e[27]!==r?(f=()=>r(i.publicUrl),e[26]=i.publicUrl,e[27]=r,e[28]=f):f=e[28];let p;e[29]!==i.key?(p=o.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-md bg-muted",children:be(i.key)?o.jsx(K,{size:16,className:"text-muted-foreground"}):o.jsx(Mt,{size:16,className:"text-muted-foreground"})}),e[29]=i.key,e[30]=p):p=e[30];let h;e[31]!==i.key?(h=pe(i.key),e[31]=i.key,e[32]=h):h=e[32];let v;e[33]!==h?(v=o.jsx("p",{className:"truncate text-sm font-medium",children:h}),e[33]=h,e[34]=v):v=e[34];let u;e[35]!==i.key?(u=o.jsx("p",{className:"truncate font-mono text-xs text-muted-foreground",children:i.key}),e[35]=i.key,e[36]=u):u=e[36];let k;e[37]!==v||e[38]!==u?(k=o.jsxs("div",{className:"min-w-0 flex-1",children:[v,u]}),e[37]=v,e[38]=u,e[39]=k):k=e[39];let j;e[40]!==c?(j=o.jsx("span",{className:"shrink-0 rounded bg-muted px-1.5 py-0.5 text-2xs font-medium uppercase text-muted-foreground",children:c}),e[40]=c,e[41]=j):j=e[41];let w;e[42]!==i.size?(w=qt(i.size),e[42]=i.size,e[43]=w):w=e[43];let m;e[44]!==w?(m=o.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:w}),e[44]=w,e[45]=m):m=e[45];let g;e[46]!==m||e[47]!==f||e[48]!==p||e[49]!==k||e[50]!==j?(g=o.jsxs("button",{type:"button",onClick:f,className:"flex min-w-0 flex-1 items-center gap-3 text-left",children:[p,k,j,m]}),e[46]=m,e[47]=f,e[48]=p,e[49]=k,e[50]=j,e[51]=g):g=e[51];let b;e[52]!==i||e[53]!==r?(b=o.jsx(ye,{item:i,onSelect:r}),e[52]=i,e[53]=r,e[54]=b):b=e[54];let P;return e[55]!==g||e[56]!==b?(P=o.jsxs("div",{className:"group flex items-center gap-3 px-3 py-2 transition hover:bg-accent",children:[g,b]}),e[55]=g,e[56]=b,e[57]=P):P=e[57],P}function hi(t){t.target.style.display="none"}function ye(t){const e=H.c(39),{item:i,onSelect:n}=t,r=Q(),[s,c]=L.useState(!1);let f;e[0]!==i.publicUrl||e[1]!==r?(f=async function(y){y.preventDefault(),y.stopPropagation();try{await navigator.clipboard.writeText(i.publicUrl),c(!0),window.setTimeout(()=>c(!1),1500)}catch{ke.error(r("filePicker.filePickerDialog.failedToCopyUrl"))}},e[0]=i.publicUrl,e[1]=r,e[2]=f):f=e[2];const p=f;let h;e[3]!==r?(h=r("filePicker.filePickerDialog.assetActions"),e[3]=r,e[4]=h):h=e[4];let v;e[5]===Symbol.for("react.memo_cache_sentinel")?(v=o.jsx(Ft,{size:14}),e[5]=v):v=e[5];let u;e[6]!==h?(u=o.jsx(Ye,{asChild:!0,children:o.jsx(ve,{type:"button",variant:"ghost",size:"icon-sm",className:"bg-background/80 backdrop-blur-sm",onClick:yi,"aria-label":h,children:v})}),e[6]=h,e[7]=u):u=e[7];let k;e[8]!==i.publicUrl||e[9]!==n?(k=()=>n(i.publicUrl),e[8]=i.publicUrl,e[9]=n,e[10]=k):k=e[10];let j;e[11]===Symbol.for("react.memo_cache_sentinel")?(j=o.jsx(ce,{size:14}),e[11]=j):j=e[11];let w;e[12]!==r?(w=r("filePicker.filePickerDialog.useThis"),e[12]=r,e[13]=w):w=e[13];let m;e[14]!==k||e[15]!==w?(m=o.jsxs(ee,{onClick:k,children:[j,w]}),e[14]=k,e[15]=w,e[16]=m):m=e[16];let g;e[17]!==s?(g=s?o.jsx(ce,{size:14}):o.jsx(Ot,{size:14}),e[17]=s,e[18]=g):g=e[18];let b;e[19]!==s||e[20]!==r?(b=r(s?"filePicker.filePickerDialog.copied":"filePicker.filePickerDialog.copyUrl"),e[19]=s,e[20]=r,e[21]=b):b=e[21];let P;e[22]!==p||e[23]!==b||e[24]!==g?(P=o.jsxs(ee,{onClick:p,children:[g,b]}),e[22]=p,e[23]=b,e[24]=g,e[25]=P):P=e[25];const N=i.publicUrl;let M;e[26]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsx(We,{size:14}),e[26]=M):M=e[26];let F;e[27]!==r?(F=r("filePicker.filePickerDialog.openInNewTab"),e[27]=r,e[28]=F):F=e[28];let l;e[29]!==i.publicUrl||e[30]!==F?(l=o.jsx(ee,{asChild:!0,children:o.jsxs("a",{href:N,target:"_blank",rel:"noreferrer",onClick:pi,children:[M,F]})}),e[29]=i.publicUrl,e[30]=F,e[31]=l):l=e[31];let a;e[32]!==P||e[33]!==l||e[34]!==m?(a=o.jsxs(Je,{align:"end",onClick:gi,children:[m,P,l]}),e[32]=P,e[33]=l,e[34]=m,e[35]=a):a=e[35];let d;return e[36]!==a||e[37]!==u?(d=o.jsxs(Ze,{children:[u,a]}),e[36]=a,e[37]=u,e[38]=d):d=e[38],d}function pi(t){return t.stopPropagation()}function gi(t){return t.stopPropagation()}function yi(t){return t.stopPropagation()}function rr(t,e,i){return e||(t.length===1?t[0].id:t.length===0?null:t.some(n=>n.id===i)?i:null)}const xi=new Set(["http:","https:"]),vi=/[\u0000-\u001F\u007F]/g;function ki(t){return t.replace(vi,"").trim()}const Si=/^[a-zA-Z][a-zA-Z0-9+.-]*:/;function nr(t){return ji(t)!==""}function ji(t){const e=ki(t);if(!e)return"";if(!Si.test(e))try{return encodeURI(e)}catch{return""}try{const i=new URL(e);return xi.has(i.protocol)||i.protocol==="data:"&&/^data:image\//i.test(i.href)?i.href:""}catch{return""}}const wi=q.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>{const e=t.style.textAlign;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:t=>t.textAlign?{style:`text-align: ${t.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(i=>e.updateAttributes(i,{textAlign:t})).some(i=>i):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).some(e=>e),toggleTextAlign:t=>({editor:e,commands:i})=>this.options.alignments.includes(t)?e.isActive({textAlign:t})?i.unsetTextAlign():i.setTextAlign(t):!1}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}});var sr=wi;const bi=20,Te=(t,e=0)=>{const i=[];return!t.children.length||e>bi||Array.from(t.children).forEach(n=>{n.tagName==="SPAN"?i.push(n):n.children.length&&i.push(...Te(n,e+1))}),i},Pi=t=>{if(!t.children.length)return;const e=Te(t);e&&e.forEach(i=>{var n;const r=i.getAttribute("style"),s=(n=i.parentElement)===null||n===void 0||(n=n.closest("span"))===null||n===void 0?void 0:n.getAttribute("style");i.setAttribute("style",`${s};${r}`)})},Ci=Gt.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{},mergeNestedSpanStyles:!0}},parseHTML(){return[{tag:"span",consuming:!1,getAttrs:t=>t.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&Pi(t),{}):!1}]},renderHTML({HTMLAttributes:t}){return["span",_t(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleTextStyle:t=>({commands:e})=>e.toggleMark(this.name,t),removeEmptyTextStyle:()=>({tr:t})=>{const{selection:e}=t;return t.doc.nodesBetween(e.from,e.to,(i,n)=>{if(!i.isInline)return!0;i.marks.filter(r=>r.type===this.type).some(r=>Object.values(r.attrs).some(s=>!!s))||t.removeMark(n,n+i.nodeSize,this.type)}),!0}}}}),Ni=q.create({name:"backgroundColor",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{backgroundColor:{default:null,parseHTML:t=>{var e;const i=(e=Z(t,"background-color"))!==null&&e!==void 0?e:t.style.backgroundColor;return i?.replace(/['"]+/g,"")},renderHTML:t=>t.backgroundColor?{style:`background-color: ${t.backgroundColor}`}:{}}}}]},addCommands(){return{setBackgroundColor:t=>({chain:e})=>e().setMark("textStyle",{backgroundColor:t}).run(),unsetBackgroundColor:()=>({chain:t})=>t().setMark("textStyle",{backgroundColor:null}).removeEmptyTextStyle().run()}}}),Di=q.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:t=>{var e;const i=(e=Z(t,"color"))!==null&&e!==void 0?e:t.style.color;return i?.replace(/['"]+/g,"")},renderHTML:t=>t.color?{style:`color: ${t.color}`}:{}}}}]},addCommands(){return{setColor:t=>({chain:e})=>e().setMark("textStyle",{color:t}).run(),unsetColor:()=>({chain:t})=>t().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),Ti=q.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>{var e;return(e=Z(t,"font-family"))!==null&&e!==void 0?e:t.style.fontFamily},renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}}),Ai=q.create({name:"fontSize",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:t=>{var e;return(e=Z(t,"font-size"))!==null&&e!==void 0?e:t.style.fontSize},renderHTML:t=>t.fontSize?{style:`font-size: ${t.fontSize}`}:{}}}}]},addCommands(){return{setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}}),Ei=q.create({name:"lineHeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:null,parseHTML:t=>{var e;return(e=Z(t,"line-height"))!==null&&e!==void 0?e:t.style.lineHeight},renderHTML:t=>t.lineHeight?{style:`line-height: ${t.lineHeight}`}:{}}}}]},addCommands(){return{setLineHeight:t=>({chain:e})=>e().setMark("textStyle",{lineHeight:t}).run(),unsetLineHeight:()=>({chain:t})=>t().setMark("textStyle",{lineHeight:null}).removeEmptyTextStyle().run()}}});q.create({name:"textStyleKit",addExtensions(){const t=[];return this.options.backgroundColor!==!1&&t.push(Ni.configure(this.options.backgroundColor)),this.options.color!==!1&&t.push(Di.configure(this.options.color)),this.options.fontFamily!==!1&&t.push(Ti.configure(this.options.fontFamily)),this.options.fontSize!==!1&&t.push(Ai.configure(this.options.fontSize)),this.options.lineHeight!==!1&&t.push(Ei.configure(this.options.lineHeight)),this.options.textStyle!==!1&&t.push(Ci.configure(this.options.textStyle)),t}});function or(t){const e=H.c(6),i=xe(),n=Se(t.virtualMcpId,t.branch);if(n.kind!=="protocol"||n.source!=="github")return Mi;let r;e[0]!==n||e[1]!==t?(r=yt(t,n),e[0]=n,e[1]=t,e[2]=r):r=e[2];const s=r;let c;return e[3]!==s||e[4]!==i?(c=f=>je(i,s,f),e[3]=s,e[4]=i,e[5]=c):c=e[5],c}function Mi(){return!1}export{Di as C,ir as F,Ne as L,Ci as T,or as a,tr as b,Ai as c,sr as d,Jt as e,nr as i,re as k,rr as r,ji as s,ri as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as F,a4 as w,K as y,i as $,q as k,e as P}from"./index-DDDWDv4s.js";import{u as x}from"./useInfiniteQuery-o37Jr6S0.js";function G(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function p(n,e,t,s){const i=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${i?`?${i}`:""}`}async function h(n,e,t){const s=await fetch(n,e);if(s.ok||t?.allow404&&s.status===404)return s;let i="";try{i=(await s.json()).error??""}catch{}throw new Error(i||`HTTP ${s.status}`)}async function E(n,e,t){return(await(await h(p(n,e,"list",{path:t}))).json()).entries.toSorted((r,a)=>r.kind!==a.kind?r.kind==="dir"?-1:1:r.path.localeCompare(a.path))}function Z(n,e,t){const s=F.c(16),{org:i}=w(),r=t?.enabled??!0;let a;s[0]!==i.id||s[1]!==e||s[2]!==n?(a=y.orgFsList(i.id,n,e),s[0]=i.id,s[1]=e,s[2]=n,s[3]=a):a=s[3];let o;s[4]!==i.id||s[5]!==n?(o=(f,u)=>u?.queryKey[1]===i.id&&u.queryKey[2]===n?f:void 0,s[4]=i.id,s[5]=n,s[6]=o):o=s[6];let c;s[7]!==i.slug||s[8]!==e||s[9]!==n?(c=()=>E(i.slug,n,e),s[7]=i.slug,s[8]=e,s[9]=n,s[10]=c):c=s[10];let l;return s[11]!==r||s[12]!==a||s[13]!==o||s[14]!==c?(l={enabled:r,queryKey:a,placeholderData:o,queryFn:c},s[11]=r,s[12]=a,s[13]=o,s[14]=c,s[15]=l):l=s[15],$(l)}async function _(n,e,t){const s=await h(p(n,e,"stat",{path:t}),void 0,{allow404:!0});return s.status===404?null:(await s.json()).entry}function v(n,e,t){const s=F.c(16),{org:i}=w();let r;s[0]!==i.id||s[1]!==e||s[2]!==n?(r=y.orgFsStat(i.id,n??"",e),s[0]=i.id,s[1]=e,s[2]=n,s[3]=r):r=s[3];const a=n!==null,o=t?.staleTime;let c;s[4]!==t?(c=t?.refetchIntervalWhenAbsent?u=>u.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=c):c=s[5];let l;s[6]!==i.slug||s[7]!==e||s[8]!==n?(l=()=>_(i.slug,n??"",e),s[6]=i.slug,s[7]=e,s[8]=n,s[9]=l):l=s[9];let f;return s[10]!==r||s[11]!==a||s[12]!==o||s[13]!==c||s[14]!==l?(f={queryKey:r,enabled:a,staleTime:o,refetchInterval:c,queryFn:l},s[10]=r,s[11]=a,s[12]=o,s[13]=c,s[14]=l,s[15]=f):f=s[15],$(f)}function ee(n,e){const t=F.c(9),s=n===void 0?60:n,{org:i}=w();let r;t[0]!==i.id?(r=y.orgFsRecent(i.id),t[0]=i.id,t[1]=r):r=t[1];const a=e?.enabled;let o;t[2]!==s||t[3]!==i.slug?(o=async()=>(await(await h(`/api/${encodeURIComponent(i.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=i.slug,t[4]=o):o=t[4];let c;return t[5]!==r||t[6]!==a||t[7]!==o?(c={queryKey:r,enabled:a,queryFn:o},t[5]=r,t[6]=a,t[7]=o,t[8]=c):c=t[8],$(c)}const R=200;function te(n){const e=F.c(9),{org:t}=w();let s;e[0]!==t.id||e[1]!==n?(s=y.orgFsVolumeFiles(t.id,n),e[0]=t.id,e[1]=n,e[2]=s):s=e[2];let i;e[3]!==t.slug||e[4]!==n?(i=async a=>{const{pageParam:o}=a,c=new URLSearchParams({limit:String(R)});return o&&c.set("before",o),await(await h(`/api/${encodeURIComponent(t.slug)}/fs/${encodeURIComponent(n)}/files?${c}`)).json()},e[3]=t.slug,e[4]=n,e[5]=i):i=e[5];let r;return e[6]!==s||e[7]!==i?(r={queryKey:s,initialPageParam:null,queryFn:i,getNextPageParam:C},e[6]=s,e[7]=i,e[8]=r):r=e[8],x(r)}function C(n){return n.next??void 0}const U=50;function se(n,e){const t=F.c(16),{org:s}=w();let i;t[0]!==s.id||t[1]!==n||t[2]!==e?.prefix||t[3]!==e?.volume?(i=y.orgFsSearch(s.id,n,e?.volume??"",e?.prefix??""),t[0]=s.id,t[1]=n,t[2]=e?.prefix,t[3]=e?.volume,t[4]=i):i=t[4];const r=n.length>0;let a;t[5]!==s.id?(a=(l,f)=>f?.queryKey[1]===s.id?l:void 0,t[5]=s.id,t[6]=a):a=t[6];let o;t[7]!==s.slug||t[8]!==n||t[9]!==e?(o=async()=>{const l=new URLSearchParams({q:n,limit:String(U)});return e&&(l.set("volume",e.volume),e.prefix&&l.set("prefix",e.prefix)),(await(await h(`/api/${encodeURIComponent(s.slug)}/fs/search?${l}`)).json()).entries},t[7]=s.slug,t[8]=n,t[9]=e,t[10]=o):o=t[10];let c;return t[11]!==i||t[12]!==r||t[13]!==a||t[14]!==o?(c={queryKey:i,enabled:r,placeholderData:a,queryFn:o},t[11]=i,t[12]=r,t[13]=a,t[14]=o,t[15]=c):c=t[15],$(c)}function ne(n){const e=F.c(8),{org:t}=w();let s;e[0]!==t.id?(s=y.orgFsSkills(t.id),e[0]=t.id,e[1]=s):s=e[1];const i=n?.enabled;let r;e[2]!==t.slug?(r=async()=>{const o=await h(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:c}=await o.json();return c.map(j)},e[2]=t.slug,e[3]=r):r=e[3];let a;return e[4]!==s||e[5]!==i||e[6]!==r?(a={queryKey:s,enabled:i,queryFn:r},e[4]=s,e[5]=i,e[6]=r,e[7]=a):a=e[7],$(a)}function j(n){return{volume:n.volume,path:n.path}}async function Q(n){const e=await h(`/api/${encodeURIComponent(n)}/fs/skills`),{skills:t}=await e.json();return t}function ie(){const n=F.c(7),{org:e}=w();let t;n[0]!==e.id?(t=y.slashSkills(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=()=>Q(e.slug),n[2]=e.slug,n[3]=s):s=n[3];let i;return n[4]!==t||n[5]!==s?(i={queryKey:t,queryFn:s,staleTime:6e4},n[4]=t,n[5]=s,n[6]=i):i=n[6],$(i)}async function M(n,e,t){return(await h(p(n,e,"read",{path:t}))).text()}function re(n,e){const t=F.c(8);let s;t[0]!==n?(s=y.fileText(n),t[0]=n,t[1]=s):s=t[1];const i=e?.enabled!==!1&&n!=="";let r;t[2]!==n?(r=async()=>{const o=await fetch(n,{credentials:"include"});return o.ok?await o.text():null},t[2]=n,t[3]=r):r=t[3];let a;return t[4]!==s||t[5]!==i||t[6]!==r?(a={queryKey:s,enabled:i,staleTime:6e4,retry:!1,queryFn:r},t[4]=s,t[5]=i,t[6]=r,t[7]=a):a=t[7],$(a)}const A=new Set(["md","mdx","markdown","txt","text"]),D=25,N=64*1024,H=256*1024,V=4;function W(n){const e=n.lastIndexOf(".");return e===-1?!1:A.has(n.slice(e+1).toLowerCase())}async function ae(n,e,t){const s=t?`${t}/`:"",i=u=>u.startsWith(s)?u.slice(s.length):u,r=[],a=[],o=[{path:t,depth:0}];for(;o.length>0;){const u=o.shift();if(!u)break;let g;try{g=(await(await h(p(n,e,"list",{path:u.path}))).json()).entries}catch{continue}for(const d of[...g].sort((b,m)=>b.path.localeCompare(m.path))){if(d.kind==="dir"){u.depth<V&&o.push({path:d.path,depth:u.depth+1});continue}W(d.path)&&d.size<=N&&r.length<D?r.push(d.path):a.push(i(d.path))}}const c=await Promise.all(r.map(u=>M(n,e,u).catch(()=>null))),l=[];let f=0;return r.forEach((u,g)=>{const d=c[g];if(d==null||f+d.length>H){a.push(i(u));return}f+=d.length,l.push({relPath:i(u),content:d})}),l.sort((u,g)=>u.relPath==="SKILL.md"?-1:g.relPath==="SKILL.md"?1:u.relPath.localeCompare(g.relPath)),a.sort(),{files:l,omittedPaths:a}}function oe(){const n=F.c(7),{org:e}=w();let t;n[0]!==e.id?(t=y.orgFsPublicSets(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=async()=>(await(await h(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,n[2]=e.slug,n[3]=s):s=n[3];let i;return n[4]!==t||n[5]!==s?(i={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=i):i=n[6],$(i)}function le(n){const e=F.c(3),{org:t}=w();let s;return e[0]!==t.slug||e[1]!==n?(s=i=>p(t.slug,n,"read",{path:i}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function ce(){const n=F.c(2),{org:e}=w();let t;return n[0]!==e.slug?(t=(s,i)=>p(e.slug,s,"read",{path:i}),n[0]=e.slug,n[1]=t):t=n[1],t}function ue(n){const e=F.c(3),{org:t}=w();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async i=>(await(await h(p(t.slug,n,"file",{path:i.path}),{method:"PUT",headers:{"content-type":i.contentType??"text/html; charset=utf-8"},body:i.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],P(s)}async function fe(n,e,t,s,i,r="text/markdown; charset=utf-8"){const a={"content-type":r};i&&"absent"in i?a["if-none-match"]="*":i&&(a["if-match"]=`"${i.contentHash}"`);const o=await fetch(p(n,e,"file",{path:t}),{method:"PUT",headers:a,body:s});if(o.status===412)return{ok:!1,reason:"conflict"};if(o.status===403)return{ok:!1,reason:"forbidden"};if(!o.ok)throw new Error(`HTTP ${o.status}`);return{ok:!0,entry:(await o.json()).entry}}function de(n){const e=F.c(18),{org:t}=w(),s=k();let i;e[0]!==t||e[1]!==n?(i=async l=>(await(await h(p(t.slug,n,"public",{path:l.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:l.mode,password:l.password})})).json()).entry,e[0]=t,e[1]=n,e[2]=i):i=e[2];let r;e[3]!==t||e[4]!==s||e[5]!==n?(r=async l=>{const f=y.orgFsStat(t.id,n,l.path);await s.cancelQueries({queryKey:f});const u=s.getQueryData(f),g=l.mode!=="private";return s.setQueryData(f,d=>d&&{...d,readPublic:g,effectivePublic:g,shareMode:l.mode}),{key:f,previous:u}},e[3]=t,e[4]=s,e[5]=n,e[6]=r):r=e[6];let a;e[7]!==s?(a=(l,f,u)=>{u&&s.setQueryData(u.key,u.previous)},e[7]=s,e[8]=a):a=e[8];let o;e[9]!==t||e[10]!==s||e[11]!==n?(o=(l,f,u)=>{s.invalidateQueries({queryKey:y.orgFsStat(t.id,n,u.path)}),s.invalidateQueries({queryKey:y.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:y.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:y.orgFsSearchRoot(t.id)})},e[9]=t,e[10]=s,e[11]=n,e[12]=o):o=e[12];let c;return e[13]!==i||e[14]!==r||e[15]!==a||e[16]!==o?(c={mutationFn:i,onMutate:r,onError:a,onSettled:o},e[13]=i,e[14]=r,e[15]=a,e[16]=o,e[17]=c):c=e[17],P(c)}function X(n,e,t){n.invalidateQueries({queryKey:y.orgFsVolume(e,t)}),n.invalidateQueries({queryKey:y.orgFsRecent(e)}),n.invalidateQueries({queryKey:y.orgFsSearchRoot(e)})}function ge(n){const e=F.c(33),{org:t}=w(),s=k();let i;e[0]!==t||e[1]!==s||e[2]!==n?(i=()=>X(s,t.id,n),e[0]=t,e[1]=s,e[2]=n,e[3]=i):i=e[3];const r=i;let a;e[4]!==t||e[5]!==n?(a=async S=>{const T=(await Promise.allSettled(S.files.map(L=>{const q=S.dir?`${S.dir}/${L.name}`:L.name;return h(p(t.slug,n,"file",{path:q}),{method:"PUT",headers:{"content-type":L.type||"application/octet-stream"},body:L})}))).find(Y);if(T)throw T.reason},e[4]=t,e[5]=n,e[6]=a):a=e[6];let o;e[7]!==r||e[8]!==a?(o={mutationFn:a,onSettled:r},e[7]=r,e[8]=a,e[9]=o):o=e[9];const c=P(o);let l;e[10]!==t||e[11]!==n?(l=async S=>{await h(p(t.slug,n,"dir",{path:S}),{method:"POST"})},e[10]=t,e[11]=n,e[12]=l):l=e[12];let f;e[13]!==r||e[14]!==l?(f={mutationFn:l,onSuccess:r},e[13]=r,e[14]=l,e[15]=f):f=e[15];const u=P(f);let g;e[16]!==t||e[17]!==n?(g=async S=>{await h(p(t.slug,n,"file",{path:S}),{method:"DELETE"})},e[16]=t,e[17]=n,e[18]=g):g=e[18];let d;e[19]!==r||e[20]!==g?(d={mutationFn:g,onSuccess:r},e[19]=r,e[20]=g,e[21]=d):d=e[21];const b=P(d);let m;e[22]!==t||e[23]!==n?(m=async S=>{await h(p(t.slug,n,"move"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(S)})},e[22]=t,e[23]=n,e[24]=m):m=e[24];let I;e[25]!==r||e[26]!==m?(I={mutationFn:m,onSuccess:r},e[25]=r,e[26]=m,e[27]=I):I=e[27];const O=P(I);let K;return e[28]!==u||e[29]!==O||e[30]!==b||e[31]!==c?(K={upload:c,mkdir:u,remove:b,move:O},e[28]=u,e[29]=O,e[30]=b,e[31]=c,e[32]=K):K=e[32],K}function Y(n){return n.status==="rejected"}export{le as a,Q as b,v as c,ue as d,G as e,ae as f,de as g,re as h,E as i,ie as j,ge as k,ce as l,X as m,_ as n,M as o,ee as p,ne as q,oe as r,se as s,te as t,Z as u,fe as w};
|
|
1
|
+
import{c as F,a4 as w,K as y,i as $,q as k,e as P}from"./index-BP527m3V.js";import{u as x}from"./useInfiniteQuery-CN2uIy97.js";function G(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function p(n,e,t,s){const i=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${i?`?${i}`:""}`}async function h(n,e,t){const s=await fetch(n,e);if(s.ok||t?.allow404&&s.status===404)return s;let i="";try{i=(await s.json()).error??""}catch{}throw new Error(i||`HTTP ${s.status}`)}async function E(n,e,t){return(await(await h(p(n,e,"list",{path:t}))).json()).entries.toSorted((r,a)=>r.kind!==a.kind?r.kind==="dir"?-1:1:r.path.localeCompare(a.path))}function Z(n,e,t){const s=F.c(16),{org:i}=w(),r=t?.enabled??!0;let a;s[0]!==i.id||s[1]!==e||s[2]!==n?(a=y.orgFsList(i.id,n,e),s[0]=i.id,s[1]=e,s[2]=n,s[3]=a):a=s[3];let o;s[4]!==i.id||s[5]!==n?(o=(f,u)=>u?.queryKey[1]===i.id&&u.queryKey[2]===n?f:void 0,s[4]=i.id,s[5]=n,s[6]=o):o=s[6];let c;s[7]!==i.slug||s[8]!==e||s[9]!==n?(c=()=>E(i.slug,n,e),s[7]=i.slug,s[8]=e,s[9]=n,s[10]=c):c=s[10];let l;return s[11]!==r||s[12]!==a||s[13]!==o||s[14]!==c?(l={enabled:r,queryKey:a,placeholderData:o,queryFn:c},s[11]=r,s[12]=a,s[13]=o,s[14]=c,s[15]=l):l=s[15],$(l)}async function _(n,e,t){const s=await h(p(n,e,"stat",{path:t}),void 0,{allow404:!0});return s.status===404?null:(await s.json()).entry}function v(n,e,t){const s=F.c(16),{org:i}=w();let r;s[0]!==i.id||s[1]!==e||s[2]!==n?(r=y.orgFsStat(i.id,n??"",e),s[0]=i.id,s[1]=e,s[2]=n,s[3]=r):r=s[3];const a=n!==null,o=t?.staleTime;let c;s[4]!==t?(c=t?.refetchIntervalWhenAbsent?u=>u.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=c):c=s[5];let l;s[6]!==i.slug||s[7]!==e||s[8]!==n?(l=()=>_(i.slug,n??"",e),s[6]=i.slug,s[7]=e,s[8]=n,s[9]=l):l=s[9];let f;return s[10]!==r||s[11]!==a||s[12]!==o||s[13]!==c||s[14]!==l?(f={queryKey:r,enabled:a,staleTime:o,refetchInterval:c,queryFn:l},s[10]=r,s[11]=a,s[12]=o,s[13]=c,s[14]=l,s[15]=f):f=s[15],$(f)}function ee(n,e){const t=F.c(9),s=n===void 0?60:n,{org:i}=w();let r;t[0]!==i.id?(r=y.orgFsRecent(i.id),t[0]=i.id,t[1]=r):r=t[1];const a=e?.enabled;let o;t[2]!==s||t[3]!==i.slug?(o=async()=>(await(await h(`/api/${encodeURIComponent(i.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=i.slug,t[4]=o):o=t[4];let c;return t[5]!==r||t[6]!==a||t[7]!==o?(c={queryKey:r,enabled:a,queryFn:o},t[5]=r,t[6]=a,t[7]=o,t[8]=c):c=t[8],$(c)}const R=200;function te(n){const e=F.c(9),{org:t}=w();let s;e[0]!==t.id||e[1]!==n?(s=y.orgFsVolumeFiles(t.id,n),e[0]=t.id,e[1]=n,e[2]=s):s=e[2];let i;e[3]!==t.slug||e[4]!==n?(i=async a=>{const{pageParam:o}=a,c=new URLSearchParams({limit:String(R)});return o&&c.set("before",o),await(await h(`/api/${encodeURIComponent(t.slug)}/fs/${encodeURIComponent(n)}/files?${c}`)).json()},e[3]=t.slug,e[4]=n,e[5]=i):i=e[5];let r;return e[6]!==s||e[7]!==i?(r={queryKey:s,initialPageParam:null,queryFn:i,getNextPageParam:C},e[6]=s,e[7]=i,e[8]=r):r=e[8],x(r)}function C(n){return n.next??void 0}const U=50;function se(n,e){const t=F.c(16),{org:s}=w();let i;t[0]!==s.id||t[1]!==n||t[2]!==e?.prefix||t[3]!==e?.volume?(i=y.orgFsSearch(s.id,n,e?.volume??"",e?.prefix??""),t[0]=s.id,t[1]=n,t[2]=e?.prefix,t[3]=e?.volume,t[4]=i):i=t[4];const r=n.length>0;let a;t[5]!==s.id?(a=(l,f)=>f?.queryKey[1]===s.id?l:void 0,t[5]=s.id,t[6]=a):a=t[6];let o;t[7]!==s.slug||t[8]!==n||t[9]!==e?(o=async()=>{const l=new URLSearchParams({q:n,limit:String(U)});return e&&(l.set("volume",e.volume),e.prefix&&l.set("prefix",e.prefix)),(await(await h(`/api/${encodeURIComponent(s.slug)}/fs/search?${l}`)).json()).entries},t[7]=s.slug,t[8]=n,t[9]=e,t[10]=o):o=t[10];let c;return t[11]!==i||t[12]!==r||t[13]!==a||t[14]!==o?(c={queryKey:i,enabled:r,placeholderData:a,queryFn:o},t[11]=i,t[12]=r,t[13]=a,t[14]=o,t[15]=c):c=t[15],$(c)}function ne(n){const e=F.c(8),{org:t}=w();let s;e[0]!==t.id?(s=y.orgFsSkills(t.id),e[0]=t.id,e[1]=s):s=e[1];const i=n?.enabled;let r;e[2]!==t.slug?(r=async()=>{const o=await h(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:c}=await o.json();return c.map(j)},e[2]=t.slug,e[3]=r):r=e[3];let a;return e[4]!==s||e[5]!==i||e[6]!==r?(a={queryKey:s,enabled:i,queryFn:r},e[4]=s,e[5]=i,e[6]=r,e[7]=a):a=e[7],$(a)}function j(n){return{volume:n.volume,path:n.path}}async function Q(n){const e=await h(`/api/${encodeURIComponent(n)}/fs/skills`),{skills:t}=await e.json();return t}function ie(){const n=F.c(7),{org:e}=w();let t;n[0]!==e.id?(t=y.slashSkills(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=()=>Q(e.slug),n[2]=e.slug,n[3]=s):s=n[3];let i;return n[4]!==t||n[5]!==s?(i={queryKey:t,queryFn:s,staleTime:6e4},n[4]=t,n[5]=s,n[6]=i):i=n[6],$(i)}async function M(n,e,t){return(await h(p(n,e,"read",{path:t}))).text()}function re(n,e){const t=F.c(8);let s;t[0]!==n?(s=y.fileText(n),t[0]=n,t[1]=s):s=t[1];const i=e?.enabled!==!1&&n!=="";let r;t[2]!==n?(r=async()=>{const o=await fetch(n,{credentials:"include"});return o.ok?await o.text():null},t[2]=n,t[3]=r):r=t[3];let a;return t[4]!==s||t[5]!==i||t[6]!==r?(a={queryKey:s,enabled:i,staleTime:6e4,retry:!1,queryFn:r},t[4]=s,t[5]=i,t[6]=r,t[7]=a):a=t[7],$(a)}const A=new Set(["md","mdx","markdown","txt","text"]),D=25,N=64*1024,H=256*1024,V=4;function W(n){const e=n.lastIndexOf(".");return e===-1?!1:A.has(n.slice(e+1).toLowerCase())}async function ae(n,e,t){const s=t?`${t}/`:"",i=u=>u.startsWith(s)?u.slice(s.length):u,r=[],a=[],o=[{path:t,depth:0}];for(;o.length>0;){const u=o.shift();if(!u)break;let g;try{g=(await(await h(p(n,e,"list",{path:u.path}))).json()).entries}catch{continue}for(const d of[...g].sort((b,m)=>b.path.localeCompare(m.path))){if(d.kind==="dir"){u.depth<V&&o.push({path:d.path,depth:u.depth+1});continue}W(d.path)&&d.size<=N&&r.length<D?r.push(d.path):a.push(i(d.path))}}const c=await Promise.all(r.map(u=>M(n,e,u).catch(()=>null))),l=[];let f=0;return r.forEach((u,g)=>{const d=c[g];if(d==null||f+d.length>H){a.push(i(u));return}f+=d.length,l.push({relPath:i(u),content:d})}),l.sort((u,g)=>u.relPath==="SKILL.md"?-1:g.relPath==="SKILL.md"?1:u.relPath.localeCompare(g.relPath)),a.sort(),{files:l,omittedPaths:a}}function oe(){const n=F.c(7),{org:e}=w();let t;n[0]!==e.id?(t=y.orgFsPublicSets(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=async()=>(await(await h(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,n[2]=e.slug,n[3]=s):s=n[3];let i;return n[4]!==t||n[5]!==s?(i={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=i):i=n[6],$(i)}function le(n){const e=F.c(3),{org:t}=w();let s;return e[0]!==t.slug||e[1]!==n?(s=i=>p(t.slug,n,"read",{path:i}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function ce(){const n=F.c(2),{org:e}=w();let t;return n[0]!==e.slug?(t=(s,i)=>p(e.slug,s,"read",{path:i}),n[0]=e.slug,n[1]=t):t=n[1],t}function ue(n){const e=F.c(3),{org:t}=w();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async i=>(await(await h(p(t.slug,n,"file",{path:i.path}),{method:"PUT",headers:{"content-type":i.contentType??"text/html; charset=utf-8"},body:i.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],P(s)}async function fe(n,e,t,s,i,r="text/markdown; charset=utf-8"){const a={"content-type":r};i&&"absent"in i?a["if-none-match"]="*":i&&(a["if-match"]=`"${i.contentHash}"`);const o=await fetch(p(n,e,"file",{path:t}),{method:"PUT",headers:a,body:s});if(o.status===412)return{ok:!1,reason:"conflict"};if(o.status===403)return{ok:!1,reason:"forbidden"};if(!o.ok)throw new Error(`HTTP ${o.status}`);return{ok:!0,entry:(await o.json()).entry}}function de(n){const e=F.c(18),{org:t}=w(),s=k();let i;e[0]!==t||e[1]!==n?(i=async l=>(await(await h(p(t.slug,n,"public",{path:l.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:l.mode,password:l.password})})).json()).entry,e[0]=t,e[1]=n,e[2]=i):i=e[2];let r;e[3]!==t||e[4]!==s||e[5]!==n?(r=async l=>{const f=y.orgFsStat(t.id,n,l.path);await s.cancelQueries({queryKey:f});const u=s.getQueryData(f),g=l.mode!=="private";return s.setQueryData(f,d=>d&&{...d,readPublic:g,effectivePublic:g,shareMode:l.mode}),{key:f,previous:u}},e[3]=t,e[4]=s,e[5]=n,e[6]=r):r=e[6];let a;e[7]!==s?(a=(l,f,u)=>{u&&s.setQueryData(u.key,u.previous)},e[7]=s,e[8]=a):a=e[8];let o;e[9]!==t||e[10]!==s||e[11]!==n?(o=(l,f,u)=>{s.invalidateQueries({queryKey:y.orgFsStat(t.id,n,u.path)}),s.invalidateQueries({queryKey:y.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:y.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:y.orgFsSearchRoot(t.id)})},e[9]=t,e[10]=s,e[11]=n,e[12]=o):o=e[12];let c;return e[13]!==i||e[14]!==r||e[15]!==a||e[16]!==o?(c={mutationFn:i,onMutate:r,onError:a,onSettled:o},e[13]=i,e[14]=r,e[15]=a,e[16]=o,e[17]=c):c=e[17],P(c)}function X(n,e,t){n.invalidateQueries({queryKey:y.orgFsVolume(e,t)}),n.invalidateQueries({queryKey:y.orgFsRecent(e)}),n.invalidateQueries({queryKey:y.orgFsSearchRoot(e)})}function ge(n){const e=F.c(33),{org:t}=w(),s=k();let i;e[0]!==t||e[1]!==s||e[2]!==n?(i=()=>X(s,t.id,n),e[0]=t,e[1]=s,e[2]=n,e[3]=i):i=e[3];const r=i;let a;e[4]!==t||e[5]!==n?(a=async S=>{const T=(await Promise.allSettled(S.files.map(L=>{const q=S.dir?`${S.dir}/${L.name}`:L.name;return h(p(t.slug,n,"file",{path:q}),{method:"PUT",headers:{"content-type":L.type||"application/octet-stream"},body:L})}))).find(Y);if(T)throw T.reason},e[4]=t,e[5]=n,e[6]=a):a=e[6];let o;e[7]!==r||e[8]!==a?(o={mutationFn:a,onSettled:r},e[7]=r,e[8]=a,e[9]=o):o=e[9];const c=P(o);let l;e[10]!==t||e[11]!==n?(l=async S=>{await h(p(t.slug,n,"dir",{path:S}),{method:"POST"})},e[10]=t,e[11]=n,e[12]=l):l=e[12];let f;e[13]!==r||e[14]!==l?(f={mutationFn:l,onSuccess:r},e[13]=r,e[14]=l,e[15]=f):f=e[15];const u=P(f);let g;e[16]!==t||e[17]!==n?(g=async S=>{await h(p(t.slug,n,"file",{path:S}),{method:"DELETE"})},e[16]=t,e[17]=n,e[18]=g):g=e[18];let d;e[19]!==r||e[20]!==g?(d={mutationFn:g,onSuccess:r},e[19]=r,e[20]=g,e[21]=d):d=e[21];const b=P(d);let m;e[22]!==t||e[23]!==n?(m=async S=>{await h(p(t.slug,n,"move"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(S)})},e[22]=t,e[23]=n,e[24]=m):m=e[24];let I;e[25]!==r||e[26]!==m?(I={mutationFn:m,onSuccess:r},e[25]=r,e[26]=m,e[27]=I):I=e[27];const O=P(I);let K;return e[28]!==u||e[29]!==O||e[30]!==b||e[31]!==c?(K={upload:c,mkdir:u,remove:b,move:O},e[28]=u,e[29]=O,e[30]=b,e[31]=c,e[32]=K):K=e[32],K}function Y(n){return n.status==="rejected"}export{le as a,Q as b,v as c,ue as d,G as e,ae as f,de as g,re as h,E as i,ie as j,ge as k,ce as l,X as m,_ as n,M as o,ee as p,ne as q,oe as r,se as s,te as t,Z as u,fe as w};
|
package/dist/client/assets/{use-org-repo-syncs-BoVbI9tW.js → use-org-repo-syncs-CKUvsIrW.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,a4 as f,ak as y,K as S,i as _,q as d,e as R}from"./index-
|
|
1
|
+
import{c as r,a4 as f,ak as y,K as S,i as _,q as d,e as R}from"./index-BP527m3V.js";const p=5e3;function m(e){return(e??[]).some(n=>!n.lastSyncedAt&&!n.lastSyncError)}function g(){const e=r.c(7),{org:n}=f(),t=y();let i;e[0]!==n.id?(i=S.orgRepoSyncs(n.id),e[0]=n.id,e[1]=i):i=e[1];let s;e[2]!==t?(s=async()=>(await t.call("ORG_REPO_SYNC_LIST",{})).configs,e[2]=t,e[3]=s):s=e[3];let o;return e[4]!==i||e[5]!==s?(o={queryKey:i,staleTime:6e4,refetchInterval:E,queryFn:s},e[4]=i,e[5]=s,e[6]=o):o=e[6],_(o)}function E(e){return m(e.state.data)?p:!1}function P(){const e=r.c(2),n=g();let t;return e[0]!==n.data?(t=new Set((n.data??[]).map(O)),e[0]=n.data,e[1]=t):t=e[1],t}function O(e){return e.volume}function q(){const e=r.c(12),{org:n}=f(),t=y(),i=d();let s;e[0]!==n||e[1]!==i?(s=()=>i.invalidateQueries({queryKey:S.orgRepoSyncs(n.id)}),e[0]=n,e[1]=i,e[2]=s):s=e[2];const o=s;let c;e[3]!==t?(c=async u=>(await t.call("ORG_REPO_SYNC_CREATE",u)).config,e[3]=t,e[4]=c):c=e[4];let a;e[5]!==o||e[6]!==t?(a=u=>{t.call("ORG_REPO_SYNC_RUN",{id:u.id}).catch(C).then(o)},e[5]=o,e[6]=t,e[7]=a):a=e[7];let l;return e[8]!==o||e[9]!==c||e[10]!==a?(l={mutationFn:c,onSuccess:a,onSettled:o},e[8]=o,e[9]=c,e[10]=a,e[11]=l):l=e[11],R(l)}function C(){return null}function T(){const e=r.c(8),{org:n}=f(),t=y(),i=d();let s;e[0]!==t?(s=a=>t.call("ORG_REPO_SYNC_DELETE",{id:a}),e[0]=t,e[1]=s):s=e[1];let o;e[2]!==n||e[3]!==i?(o=()=>i.invalidateQueries({queryKey:S.orgRepoSyncs(n.id)}),e[2]=n,e[3]=i,e[4]=o):o=e[4];let c;return e[5]!==s||e[6]!==o?(c={mutationFn:s,onSettled:o},e[5]=s,e[6]=o,e[7]=c):c=e[7],R(c)}export{P as a,q as b,T as c,g as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,i as S,q as r,e as y,K as c}from"./index-
|
|
1
|
+
import{c as u,i as S,q as r,e as y,K as c}from"./index-BP527m3V.js";async function f(i,a,e){const s=await fetch(i,a);if(!s.ok){const t=await s.json().catch(()=>null);throw new Error(t?.error||e)}return s.json()}function q(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoStatus(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/status`,void 0,"Failed to check SSO status"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function C(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoConfig(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/config`,void 0,"Failed to fetch SSO config"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function O(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)},"Failed to save SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function m(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=()=>f(`/api/${a}/sso/config`,{method:"DELETE"},"Failed to delete SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function h(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config/enforce`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enforced:l})},"Failed to toggle SSO enforcement"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}export{C as a,O as b,m as c,h as d,q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,a as w,
|
|
1
|
+
import{c as u,a as w,dT as b,a4 as E,i as F,al as M,K as y,ak as T,q as A,e as O}from"./index-BP527m3V.js";import{D as C,o as G,a as $}from"./schema-BtzAS_P2.js";import{r as z}from"./task-board-CdhOR9bl.js";const I={organizationId:"",sidebar_items:null,coding_agent_mcp_excluded:null,simple_mode:null,default_home_agents:null,flags:null,submodule_credentials:null},x={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function P(t,e){return{queryKey:y.organizationSettings(e),queryFn:async()=>{try{return await M(t,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...I,organizationId:e}}},staleTime:6e4}}function c(t){const e=u.c(7),{org:n}=E();let s;e[0]!==n.id||e[1]!==n.slug?(s=P(n.slug,n.id),e[0]=n.id,e[1]=n.slug,e[2]=s):s=e[2];const o=t,a=!!n.id;let i;return e[3]!==s||e[4]!==o||e[5]!==a?(i={...s,select:o,enabled:a},e[3]=s,e[4]=o,e[5]=a,e[6]=i):i=e[6],F(i)}function _(){const t=u.c(9),{org:e}=E(),n=T(),s=A();let o;t[0]!==e||t[1]!==n?(o=async l=>{const r=await n.call("ORGANIZATION_SETTINGS_UPDATE",{organizationId:e.id,...l});if(!r)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return r},t[0]=e,t[1]=n,t[2]=o):o=t[2];let a;t[3]!==e||t[4]!==s?(a=l=>{s.setQueryData(y.organizationSettings(e.id),r=>({...r??I,...l}))},t[3]=e,t[4]=s,t[5]=a):a=t[5];let i;return t[6]!==o||t[7]!==a?(i={mutationFn:o,onSuccess:a},t[6]=o,t[7]=a,t[8]=i):i=t[8],O(i)}function R(t){return t?.tiers?{tiers:{fast:t.tiers.fast??null,smart:t.tiers.smart??null,thinking:t.tiers.thinking??null,image:t.tiers.image??null,web_search:t.tiers.web_search??null,deep_research:t.tiers.deep_research??null}}:x}function Y(){const{data:t}=c(D);return t??x}function D(t){return R(t.simple_mode)}function j(){const t=u.c(7),e=_();let n,s;t[0]!==e?(n=(a,i)=>e.mutate({simple_mode:a},i),s=(a,i)=>e.mutateAsync({simple_mode:a},i),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function B(){return d("reports_only")}function d(t){const e=u.c(5);let n;e[0]!==t?(n=a=>G(a.flags,t),e[0]=t,e[1]=n):n=e[1];const{data:s}=c(n);let o;return e[2]!==s||e[3]!==t?(o=s??C.has(t),e[2]=s,e[3]=t,e[4]=o):o=e[4],o}function V(t){const e=u.c(6);let n;e[0]!==t?(n=i=>G(i.flags,t),e[0]=t,e[1]=n):n=e[1];const{data:s,isError:o}=c(n);let a;return e[2]!==s||e[3]!==t||e[4]!==o?(a=s??(o?C.has(t):void 0),e[2]=s,e[3]=t,e[4]=o,e[5]=a):a=e[5],a}function W(){const t=d("chat_harness_sandbox_only");return b().runtime.agentSandbox&&t}function H(){const t=u.c(8),{org:e}=E(),n=T(),s=A();let o;t[0]!==n?(o=l=>n.call("ORGANIZATION_BLOCKS_EDITOR_SET",{enabled:l}),t[0]=n,t[1]=o):o=t[1];let a;t[2]!==e||t[3]!==s?(a=l=>{const{enabled:r}=l;s.setQueryData(y.organizationSettings(e.id),m=>m&&{...m,flags:{...m.flags,new_blocks_editor:r}})},t[2]=e,t[3]=s,t[4]=a):a=t[4];let i;return t[5]!==o||t[6]!==a?(i={mutationFn:o,onSuccess:a},t[5]=o,t[6]=a,t[7]=i):i=t[7],O(i)}function k(t){return!!t&&t.trim().toLowerCase().endsWith("@deco.cx")}function J(){const t=u.c(8),{data:e}=w.useSession(),n=b();let s;t[0]!==n.auth.localMode||t[1]!==e?.user?.email?(s=n.auth.localMode===!0||k(e?.user?.email),t[0]=n.auth.localMode,t[1]=e?.user?.email,t[2]=s):s=t[2];const o=s,a=n.hostingControlPlaneGa===!0,i=n.monitorGa===!0,l=d("hosting_enabled"),r=d("e2e_enabled"),m=d("monitor_enabled"),N=d("experiments_enabled"),g=o||a||l,S=o||a||r,p=o||i||m,h=o||a||N;let f;return t[3]!==g||t[4]!==S||t[5]!==p||t[6]!==h?(f={hosting:g,e2e:S,monitor:p,experiments:h},t[3]=g,t[4]=S,t[5]=p,t[6]=h,t[7]=f):f=t[7],f}function X(){const{data:t}=c(L);return t??!1}function L(t){return $(t.flags)}function tt(){const{data:t}=c(q);return t??!0}function q(t){return z(t.flags)}function et(){const t=u.c(7),e=_();let n,s;t[0]!==e?(n=(a,i,l)=>e.mutate({flags:{[a]:i}},l),s=(a,i,l)=>e.mutateAsync({flags:{[a]:i}},l),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function nt(){const t=u.c(2),{data:e}=c(Q);let n;return t[0]!==e?(n=e??[],t[0]=e,t[1]=n):n=t[1],n}function Q(t){return t.coding_agent_mcp_excluded}function st(){const t=u.c(5),e=_();let n;t[0]!==e?(n=(o,a)=>e.mutate({coding_agent_mcp_excluded:o},a),t[0]=e,t[1]=n):n=t[1];let s;return t[2]!==e||t[3]!==n?(s={...e,mutate:n},t[2]=e,t[3]=n,t[4]=s):s=t[4],s}function ot(){const t=u.c(2),{data:e}=c(U);let n;return t[0]!==e?(n=e??[],t[0]=e,t[1]=n):n=t[1],n}function U(t){return t.submodule_credentials}function at(){const t=u.c(5),e=_();let n;t[0]!==e?(n=(o,a)=>e.mutateAsync({submodule_credentials:o},a),t[0]=e,t[1]=n):n=t[1];let s;return t[2]!==e||t[3]!==n?(s={...e,mutateAsync:n},t[2]=e,t[3]=n,t[4]=s):s=t[4],s}export{d as a,W as b,V as c,Y as d,J as e,tt as f,H as g,X as h,et as i,nt as j,st as k,j as l,ot as m,at as n,B as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as T,a4 as W,dT as y,bq as B,i as N,K as F}from"./index-BP527m3V.js";import{m as J}from"./match-site-slug-config-B47_xZCi.js";import{u as K}from"./use-file-configs-8VTVKs7P.js";import{f as U}from"./use-view-draft-kind-BtHf66Jj.js";import{e as $}from"./use-organization-settings-BWLJTTpw.js";import{b as k}from"./use-blocks-v8-project-BLLvbZl2.js";const u=["overview","context","monitor","plan","reports","board","site-editor","calendar","experiments","blog","assets","releases","hosting","e2e","automations"],q=["overview","reports","board","site-editor","blog"],O=1,D=["overview","context","monitor","plan","board"],L=["blog"],Q=["calendar","experiments"],H=["hosting"],Y={calendar:!1,hosting:!1,"site-editor":!1,blog:!1};function C(t){return[...D,...t.calendar?Q:[],...t.hosting&&t["site-editor"]?H:[],...t.blog?L:[]]}function z(t,e){const n=new Set(t??[]);return C(e).filter(s=>!n.has(s))}function le(t,e,n){const s=new Set([...t??[],...C({...e,"site-editor":e["site-editor"]&&n.includes("site-editor")})]);return u.filter(r=>s.has(r))}function fe(t,e){if(!t&&e===void 0)return new Set(D);const n=new Set(e!==void 0?V(e,O):V(X(t),t?.sidebarViewsVersion,z(t?.sidebarViewsSeen,Y)));return new Set(D.filter(s=>n.has(s)))}const G=["calendar","experiments","assets","releases","hosting","e2e"];function ue(t,e,n){if(!t)return{project:n??null,resolvedScopeId:null};const s=e?.id===t?e:n?.id===t?n:null;return{project:s,resolvedScopeId:s?t:null}}function X(t){return t?.sidebarViews!==void 0?t.sidebarViews:t?.ui?.layout?.sidebarViews}function V(t,e,n=[]){const s=new Set(t??[]);if(e!==O)for(const r of q)s.add(r);for(const r of n)r==="hosting"&&!s.has("site-editor")||s.add(r);return u.filter(r=>s.has(r))}function Z(t){return u.some(e=>e===t)}function M(t){return G.some(e=>e===t)}function ee(t,e){return{overview:t,context:!0,monitor:!0,plan:!0,reports:t,board:t,"site-editor":t,blog:t&&e.blog===!0,assets:e.assets,releases:t&&e.releases,hosting:e.hosting,e2e:e.e2e,calendar:t&&e.calendar,experiments:t&&e.experiments,automations:!0}}function de(t,e,n){const s=ee(e,n);return t?s:{...s,overview:!0,reports:!0,board:!0}}function Se(t,e,n,s=[]){const r=new Set(V(t,n,s));return u.filter(o=>e[o]&&r.has(o))}function be(t,e,n){return n||!t?t:(t.type==="preview"||t.type==="content"||t.type==="code"?"site-editor":t.type)===e?{type:"settings"}:t}function ge(t){return u.filter(e=>t[e])}function te(t,e,n){return!Z(t)||e[t]?!1:t==="blog"?n.blog!==!0:!M(t)||t==="releases"||t==="calendar"||t==="experiments"?!0:!(t==="assets"?n.assets:n.siteAccess)}function Ve(t,e,n,s,r){return te(t==="preview"||t==="content"||t==="code"?"site-editor":t,e,n)||t==="content"&&!s.includes("content")||t==="code"&&r&&!s.includes("code")}function we(t,e,n,s){const r=new Set(V(t,s));return n?r.add(e):r.delete(e),u.filter(o=>r.has(o))}function Pe(t){const e=T.c(22),{org:n}=W(),s=y(),r=$(),o=U(),i=K();let c;e[0]!==t?(c=k(t),e[0]=t,e[1]=c):c=e[1];const d=c;let S;e[2]!==t?(S=B(t),e[2]=t,e[3]=S):S=e[3];const a=S,w=s.hostingEnabled===!0,R=w&&!!a,j=se(n.slug,a,R),v=j.data?.owned===!0;let l;e[4]!==i.data?.configs?(l=i.data?.configs??[],e[4]=i.data?.configs,e[5]=l):l=e[5];const P=t?.metadata?.assetStorageConfigId;let b;e[6]!==a||e[7]!==l||e[8]!==P?(b=J(l,a,P),e[6]=a,e[7]=l,e[8]=P,e[9]=b):b=e[9];const E=!!b,m=d&&!!t?.metadata?.siteSlug,_=w&&v&&r.hosting,p=w&&v&&r.e2e,I=o===!0;let f;e[10]!==E||e[11]!==m||e[12]!==_||e[13]!==p||e[14]!==I||e[15]!==d?(f={assets:E,releases:m,hosting:_,e2e:p,calendar:d,experiments:d,blog:I},e[10]=E,e[11]=m,e[12]=_,e[13]=p,e[14]=I,e[15]=d,e[16]=f):f=e[16];const A=!!(a||t?.metadata?.assetStorageConfigId)&&i.isPending,h=R&&j.isPending,x=o===void 0;let g;return e[17]!==f||e[18]!==A||e[19]!==h||e[20]!==x?(g={presence:f,assetsPending:A,siteAccessPending:h,blogPending:x},e[17]=f,e[18]=A,e[19]=h,e[20]=x,e[21]=g):g=e[21],g}function se(t,e,n){const s=T.c(10);let r;s[0]!==t||s[1]!==e?(r=F.hostingAccess(t,e??""),s[0]=t,s[1]=e,s[2]=r):r=s[2];let o;s[3]!==t||s[4]!==e?(o=async()=>{const c=await fetch(`/api/${t}/hosting/${encodeURIComponent(e??"")}/access`);return c.ok?await c.json():{owned:!1,canWrite:!1}},s[3]=t,s[4]=e,s[5]=o):o=s[5];let i;return s[6]!==n||s[7]!==r||s[8]!==o?(i={queryKey:r,queryFn:o,enabled:n,staleTime:6e4},s[6]=n,s[7]=r,s[8]=o,s[9]=i):i=s[9],N(i)}export{u as P,Se as a,O as b,ue as c,de as d,Ve as e,te as f,V as g,ge as h,M as i,D as j,le as k,be as l,z as o,ee as p,X as r,fe as s,we as t,Pe as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as
|
|
1
|
+
import{c as I,f as P,u as T,d as N,cL as R,dJ as E,cJ as k,ae as l}from"./index-BP527m3V.js";import{d as C,b as O,p as w}from"./repository-binding-DGc5VhVW.js";const x=1;function _(e){return(e??[]).filter(E)}function J(){const e=I.c(4);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const r=P(o);let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[1]=n):n=e[1];const t=T(n);if(r.agentId)return r.agentId;let a;return e[2]!==t?(a="virtualmcpid"in t&&typeof t.virtualmcpid=="string"?t.virtualmcpid.trim():void 0,e[2]=t,e[3]=a):a=e[3],a||null}function B(){const e=I.c(16),o=N();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const n=P(r),t=R(),a=C(),i=_(a),s=J(),y=i.find(c=>c.id===s)??null;let p;e[1]!==a||e[2]!==s?(p=s&&a.length>0&&!a.some(c=>c.id===s)?s:null,e[1]=a,e[2]=s,e[3]=p):p=e[3];const b=O(p),u=y??_(b?[b]:[])[0]??null;let m;e[4]!==t||e[5]!==o||e[6]!==n||e[7]!==s?(m=c=>{if(c===s&&t!==void 0)return;const h=n.org??"",S=M;if(c){k(o,{org:h,agentId:c,tabId:t==="board"||t==="reports"?t:"overview",search:S,replace:!1});return}if(t==="board"){o({to:l.tasks,params:{org:h,taskKey:void 0},search:S});return}const j=t==="files"?l.library:t==="monitoring"?l.monitoring:t==="plan"?l.plan:l.home;o({to:j,params:{org:h},search:S})},e[4]=t,e[5]=o,e[6]=n,e[7]=s,e[8]=m):m=e[8];const f=m,v=w(u),g=i.length>=x;let d;return e[9]!==u||e[10]!==i||e[11]!==s||e[12]!==f||e[13]!==v||e[14]!==g?(d={scopeId:s,project:u,repo:v,projects:i,hasProjects:g,setScope:f},e[9]=u,e[10]=i,e[11]=s,e[12]=f,e[13]=v,e[14]=g,e[15]=d):d=e[15],d}function M(e){return{...e,virtualmcpid:void 0,thread:void 0,mainpanel:void 0,path:void 0,preview:void 0,expanded:void 0}}export{B as a,_ as s,J as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as A,c as m,l as j,ar as b,at as y,ag as N}from"./index-
|
|
1
|
+
import{r as A,c as m,l as j,ar as b,at as y,ag as N}from"./index-BP527m3V.js";import{e as w}from"./use-view-draft-kind-BtHf66Jj.js";import{P as E}from"./project-apps-ByyLejju.js";import{b as P}from"./repository-binding-DGc5VhVW.js";function D(n,e){const t=new Set(e);return t.size===0?n:n.filter(c=>t.has(c.connectionId))}function R(n){const e=n.metadata?.ui;return Array.isArray(e?.pinnedViews)?e.pinnedViews.filter(t=>!!t&&typeof t=="object"&&typeof t.connectionId=="string"&&typeof t.toolName=="string"&&["undefined","string"].includes(typeof t.label)&&(t.icon==null||typeof t.icon=="string")):[]}const V=4;function I(n,e){return n.app===e.app&&n.projectId===e.projectId}function h(n,e,t=V){return[e,...n.filter(c=>!I(c,e))].slice(0,t)}function _(n,e){return n.filter(t=>!I(t,e))}function g(n,e,t){const c=n.findLast(l=>l.staticData.mainView);if(!c)return null;const{mainView:r,siteEditorView:p,local:i}=c.staticData;if(!r)return null;const o=c.params,a=o?.agentId;if(a&&r==="app"&&o.connectionId&&o.toolName)return{app:t(o.connectionId,o.toolName),projectId:a,connection:{id:o.connectionId,toolName:o.toolName}};const s=p?"site-editor":r;return e(s)?a?{app:s,projectId:a}:i?{app:s,projectId:null}:null:null}const d=[];function O(n){const e=m.c(12);let t;e[0]!==n?(t=y.recentApps(n),e[0]=n,e[1]=t):t=e[1];const[c,r]=b(t,d),p=w(),i=Array.isArray(c)?c:d;let o;e[2]!==p||e[3]!==i?(o=p?i:i.filter(S),e[2]=p,e[3]=i,e[4]=o):o=e[4];let a,s;e[5]!==r?(a=f=>r(u=>h(Array.isArray(u)?u:[],f)),s=f=>r(u=>_(Array.isArray(u)?u:[],f)),e[5]=r,e[6]=a,e[7]=s):(a=e[6],s=e[7]);let l;return e[8]!==o||e[9]!==a||e[10]!==s?(l={recent:o,remember:a,forget:s},e[8]=o,e[9]=a,e[10]=s,e[11]=l):l=e[11],l}function S(n){return n.app!=="blog"}function T(){const n=m.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:L,structuralSharing:!0},n[0]=e):e=n[0],j(e)}function L(n){return g(n.matches,C,N)}function C(n){return n in E}function Y(n){const{remember:e}=O(n),t=T(),c=P(t?.projectId),r=t?.projectId&&c?.id===t.projectId?c.title:null,p=t?.connection&&c?R(c).find(o=>o.connectionId===t.connection?.id&&o.toolName===t.connection.toolName):void 0,i=t?.connection&&{id:t.connection.id,toolName:t.connection.toolName,label:p?.label||t.connection.toolName,icon:p?.icon};A.useEffect(()=>{!t?.projectId||!r||e({app:t.app,projectId:t.projectId,projectTitle:r,...i&&{connection:i}})},[n,t?.app,t?.projectId,r,i?.label,i?.icon])}export{T as a,O as b,D as k,R as p,Y as u};
|
package/dist/client/assets/{use-reports-diagnostic-DFRAKqsS.js → use-reports-diagnostic-CgjecoRR.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as N,a4 as Q,W as F,T as A,i as f,K as R,g_ as L,$ as K,U}from"./index-
|
|
1
|
+
import{c as N,a4 as Q,W as F,T as A,i as f,K as R,g_ as L,$ as K,U}from"./index-BP527m3V.js";import{m as O}from"./use-mcp-client-CaYmuD4l.js";import{u as h}from"./companions-core-DhUD88pR.js";function D(n){return n?n.scanned_at?"ready":n.run_in_progress?"generating":"none":"none"}function M(n){return n.connectionQueryPending?!0:!n.hasConnection||n.cdClientFailed?!1:n.diagnosticQueryPending}const b=2e4;function q(n){if(typeof n!="string"||!n)return null;try{return new URL(n).hostname||null}catch{return null}}function j(){const n=N.c(24),{org:e}=Q(),t=F.REPORTS(e.id);let l;n[0]!==e.id||n[1]!==e.slug?(l=O({connectionId:A,orgId:e.id,orgSlug:e.slug}),n[0]=e.id,n[1]=e.slug,n[2]=l):l=n[2];const{data:p}=f(l),u=f({queryKey:R.reportsConnection(e.id,t),enabled:!!p,retry:!1,staleTime:6e4,queryFn:async()=>{if(!p)throw new Error("selfClient not ready");const T=await p.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:t}});return h(T)}}),m=u.data?.item??null,{data:s,isError:y}=f({...O({connectionId:t,orgId:e.id,orgSlug:e.slug}),enabled:!!m}),C=R.reportsDiagnostic(e.id,t),E=!!s;let i;n[3]!==s?(i=async()=>{if(!s)throw new Error("cdClient not ready");const T=await s.callTool({name:L,arguments:{}});return h(T).diagnostic??null},n[3]=s,n[4]=i):i=n[4];let d;n[5]!==C||n[6]!==E||n[7]!==i?(d={queryKey:C,enabled:E,retry:1,refetchInterval:v,queryFn:i},n[5]=C,n[6]=E,n[7]=i,n[8]=d):d=n[8];const r=f(d),o=m?.metadata?.siteUrl,P=r.data??null,w=r.isSuccess,_=!!m;let a;n[9]!==y||n[10]!==u.isPending||n[11]!==r.isPending||n[12]!==_?(a=M({connectionQueryPending:u.isPending,hasConnection:_,cdClientFailed:y,diagnosticQueryPending:r.isPending}),n[9]=y,n[10]=u.isPending,n[11]=r.isPending,n[12]=_,n[13]=a):a=n[13];const I=typeof o=="string"&&o?o:null;let c;n[14]!==o?(c=q(o),n[14]=o,n[15]=c):c=n[15];const S=s??null;let g;return n[16]!==t||n[17]!==r.isSuccess||n[18]!==c||n[19]!==S||n[20]!==P||n[21]!==a||n[22]!==I?(g={diagnostic:P,isSuccess:w,isLoading:a,siteUrl:I,host:c,connectionId:t,cdClient:S},n[16]=t,n[17]=r.isSuccess,n[18]=c,n[19]=S,n[20]=P,n[21]=a,n[22]=I,n[23]=g):g=n[23],g}function v(n){return n.state.status!=="error"&&D(n.state.data)==="generating"?b:!1}function B(n,e){return{to:K.app,params:{org:n.slug,agentId:U(n.id),connectionId:e,toolName:L},search:{}}}export{D as d,B as r,j as u};
|
package/dist/client/assets/{use-sandbox-events-9oqLSRsO.js → use-sandbox-events-BtXLDGZr.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as he,j as
|
|
2
|
-
`);le(s.source).append(u);for(const r of K.current)try{r(s.source,u)}catch{}ie(r=>r+1)}catch{}},q=n=>{const s=n.type;try{const u=JSON.parse(n.data);switch(S=0,s){case"lifecycle":{const r=u;_(r.state);const b=`${c.slug}/${t}/${e}`;if(W(r.state.phase)&&!(x&&W(x))){J(o,c.id);const D=C.decofile(b);o.getQueryData(D)===void 0&&o.invalidateQueries({queryKey:D})}r.state.phase==="running"&&x!=="running"&&(J(o,c.id),o.invalidateQueries({queryKey:C.decofile(b)}),F()),x=r.state.phase;const p=r.state.phase==="running"?r.state.port:null,U=A.current;if(A.current=p,U!==null&&p!==null&&U!==p)for(const D of k.current)try{D()}catch{}return}case"status":w(u);return;case"tasks":{const r=u;V=r.active.some(p=>Le(p.command));const b=r.active.map(p=>p.logName??"").filter(Boolean);B(b);return}case"scripts":N(u.scripts);return;case"branch":{const r=u.meta;P(r);return}case"reload":for(const r of k.current)try{r()}catch{}return;case"file-changed":{const{path:r}=u,b=`${c.slug}/${t}/${e}`;if(r.startsWith(".deco/")||r.includes("/.deco/")){if(!(x==="running"))return;r.endsWith(".deco/meta.gen.json")&&F(),y&&clearTimeout(y),y=setTimeout(()=>{if(y=null,o.invalidateQueries({queryKey:C.decofile(b)}),Q||V)for(const D of k.current)try{D()}catch{}},500)}else F();return}}}catch{}};function M(){if(d)return;const n=new EventSource(l);v=n,n.onopen=()=>{},n.onerror=()=>{v===n&&n.readyState===EventSource.CLOSED&&
|
|
1
|
+
import{c as he,j as Y,r as a,a4 as Ee,q as ve,K as C,cG as J}from"./index-BP527m3V.js";import{h as pe,u as me}from"./chat-context-Na_9rQo_.js";import{b as Se}from"./sandbox-url-D3mC8qhT.js";import{u as ge}from"./repository-binding-DGc5VhVW.js";import{e as ye}from"./backoff-CrEUbyZT.js";function W(t){return t==="installing"||t==="install-failed"||t==="starting"||t==="start-failed"||t==="running"||t==="crashed"}const be={phase:null,lifecycle:{phase:"idle"},status:{state:"running"},branch:{kind:"unknown"},notFound:!1,scripts:[],activeProcesses:[],getBuffer:()=>"",hasData:()=>!1,subscribeChunks:()=>()=>{},subscribeReload:()=>()=>{}},Z=a.createContext(be),z=16384;class De{data="";append(e){this.data+=e,this.data.length>z&&(this.data=this.data.slice(this.data.length-z))}get(){return this.data}clear(){this.data=""}}const ke=1e3,Re=3e4,Te=3e3,X=["lifecycle","status","tasks","scripts","branch","reload","file-changed"],I="log";function xe(t){if(!t)return null;try{return new URL("/_sandbox/events",t).href}catch{return null}}function Ce(t){return t===404}function Le(t){return/(?:^|[\s;&|(])deno\s+task\b/.test(t)}async function _e(t){try{const e=await fetch(t,{headers:{Accept:"text/event-stream"},cache:"no-store",signal:AbortSignal.timeout(Te)});return await e.body?.cancel().catch(()=>{}),Ce(e.status)}catch{return!1}}const ee=pe(Z);function Me(t){const e=he.c(10);let i,f,c;e[0]!==t?({resetKey:c,children:i,...f}=t,e[0]=t,e[1]=i,e[2]=f,e[3]=c):(i=e[1],f=e[2],c=e[3]);let o;e[4]!==f||e[5]!==c?(o=Y.jsx(we,{...f},c),e[4]=f,e[5]=c,e[6]=o):o=e[6];let h;return e[7]!==i||e[8]!==o?(h=Y.jsx(ee.Host,{source:o,children:i}),e[7]=i,e[8]=o,e[9]=h):h=e[9],h}function we(t){return ee.usePublish(Pe(t)),null}function Pe({virtualMcpId:t,branch:e,previewUrl:i=null,enabled:f=!0}){const{org:c}=Ee(),o=ve(),h=me()?.taskId??null,[ne,L]=a.useState(null),[se,_]=a.useState({phase:"idle"}),[re,w]=a.useState({state:"running"}),[ae,P]=a.useState({kind:"unknown"}),[ce,O]=a.useState(!1),[oe,N]=a.useState([]),[ue,B]=a.useState([]),[,ie]=a.useState(0),m=a.useRef(new Map),K=a.useRef(new Set),k=a.useRef(new Set),A=a.useRef(null),R=xe(i),Q=ge(t)?.metadata?.runtime?.selected==="deno",le=l=>{let d=m.current.get(l);return d||(d=new De,m.current.set(l,d)),d};return a.useEffect(()=>{if(L(null),_({phase:"idle"}),w({state:"running"}),P({kind:"unknown"}),A.current=null,O(!1),N([]),B([]),m.current.clear(),!t||!e||!f)return;const l=Se({orgSlug:c.slug,virtualMcpId:t,branch:e,threadId:h??null},"events");let d=!1,S=0,T=null,g=null,y=null,v=null,E=null,x=null,V=!1;const F=()=>{g&&clearTimeout(g),g=setTimeout(()=>{g=null,o.invalidateQueries({queryKey:C.liveMeta(c.slug,t,e)})},1e3)},de=n=>{try{const s=JSON.parse(n.data);L(s),s.kind!=="failed"&&(O(!1),S=0),s.kind==="ready"&&G()}catch(s){console.warn("[vm-events] bad phase payload",s)}},$=()=>{O(!0),L(null),_({phase:"idle"}),w({state:"running"}),P({kind:"unknown"}),N([]),B([]),m.current.clear()},j=n=>{try{const s=JSON.parse(n.data);if(typeof s.data!="string")return;S=0;const u=s.data.replace(/\r?\n/g,`\r
|
|
2
|
+
`);le(s.source).append(u);for(const r of K.current)try{r(s.source,u)}catch{}ie(r=>r+1)}catch{}},q=n=>{const s=n.type;try{const u=JSON.parse(n.data);switch(S=0,s){case"lifecycle":{const r=u;_(r.state);const b=`${c.slug}/${t}/${e}`;if(W(r.state.phase)&&!(x&&W(x))){J(o,c.id);const D=C.decofile(b);o.getQueryData(D)===void 0&&o.invalidateQueries({queryKey:D})}r.state.phase==="running"&&x!=="running"&&(J(o,c.id),o.invalidateQueries({queryKey:C.decofile(b)}),F()),x=r.state.phase;const p=r.state.phase==="running"?r.state.port:null,U=A.current;if(A.current=p,U!==null&&p!==null&&U!==p)for(const D of k.current)try{D()}catch{}return}case"status":w(u);return;case"tasks":{const r=u;V=r.active.some(p=>Le(p.command));const b=r.active.map(p=>p.logName??"").filter(Boolean);B(b);return}case"scripts":N(u.scripts);return;case"branch":{const r=u.meta;P(r);return}case"reload":for(const r of k.current)try{r()}catch{}return;case"file-changed":{const{path:r}=u,b=`${c.slug}/${t}/${e}`;if(r.startsWith(".deco/")||r.includes("/.deco/")){if(!(x==="running"))return;r.endsWith(".deco/meta.gen.json")&&F(),y&&clearTimeout(y),y=setTimeout(()=>{if(y=null,o.invalidateQueries({queryKey:C.decofile(b)}),Q||V)for(const D of k.current)try{D()}catch{}},500)}else F();return}}}catch{}};function M(){if(d)return;const n=new EventSource(l);v=n,n.onopen=()=>{},n.onerror=()=>{v===n&&n.readyState===EventSource.CLOSED&&H("studio")},n.addEventListener("phase",de),n.addEventListener("gone",$),n.addEventListener(I,j);for(const s of X)n.addEventListener(s,q)}function G(){if(d||!R||E)return;const n=new EventSource(R);E=n;let s=!1;n.onopen=()=>{if(d||E!==n)return;s=!0,S=0;const u=v;v=null,u?.close()},n.onerror=()=>{E===n&&n.readyState===EventSource.CLOSED&&fe(n,s)},n.addEventListener(I,j);for(const u of X)n.addEventListener(u,q)}async function fe(n,s){const u=R?await _e(R):!1;if(!(d||E!==n)){if(n.close(),E=null,u){$(),v||M();return}s&&H("direct")}}function H(n){if(d||T)return;const s=ye(Re,ke,S,2,0);S++,T=setTimeout(()=>{if(T=null,!d){if(n==="direct"){E?.close(),E=null,G();return}v?.close(),v=null,M()}},s)}return M(),()=>{d=!0,v?.close(),E?.close(),T&&clearTimeout(T),g&&clearTimeout(g),y&&clearTimeout(y)}},[t,e,c.slug,c.id,f,h,R,o,Q]),{phase:ne,lifecycle:se,status:re,branch:ae,notFound:ce,scripts:oe,activeProcesses:ue,getBuffer:l=>m.current.get(l)?.get()??"",hasData:l=>(m.current.get(l)?.get().length??0)>0,subscribeChunks:l=>(K.current.add(l),()=>{K.current.delete(l)}),subscribeReload:l=>(k.current.add(l),()=>{k.current.delete(l)})}}function te(){return a.use(Z)}function Ue(t){const{subscribeChunks:e}=te(),i=a.useRef(t);i.current=t,a.useEffect(()=>e((o,h)=>{i.current?.(o,h)}),[e])}function Qe(t){const{subscribeReload:e}=te(),i=a.useRef(t);i.current=t,a.useEffect(()=>e(()=>{i.current?.()}),[e])}export{Me as S,Ue as a,Qe as b,W as i,te as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,a4 as c,ak as r,K as l,V as d,q as f,e as S}from"./index-
|
|
1
|
+
import{c as u,a4 as c,ak as r,K as l,V as d,q as f,e as S}from"./index-BP527m3V.js";function C(){const e=u.c(7),{org:i}=c(),n=r();let a;e[0]!==i.id?(a=l.secrets(i.id),e[0]=i.id,e[1]=a):a=e[1];let t;e[2]!==n?(t=async()=>await n.call("SECRET_LIST",{}),e[2]=n,e[3]=t):t=e[3];let s;e[4]!==a||e[5]!==t?(s={queryKey:a,staleTime:6e4,queryFn:t},e[4]=a,e[5]=t,e[6]=s):s=e[6];const{data:o}=d(s);return o.secrets}function m(){const e=u.c(8),{org:i}=c(),n=r(),a=f();let t;e[0]!==n?(t=async y=>await n.call("SECRET_CREATE",{...y}),e[0]=n,e[1]=t):t=e[1];let s;e[2]!==i||e[3]!==a?(s=()=>{a.invalidateQueries({queryKey:l.secrets(i.id)})},e[2]=i,e[3]=a,e[4]=s):s=e[4];let o;return e[5]!==t||e[6]!==s?(o={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=o):o=e[7],S(o)}export{m as a,C as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i8 as ee,bn as te,c as M,b as re,r as b,j as i,m as se,bm as oe,D as ie,v as ne,x as le,I as ce,w as ae}from"./index-
|
|
1
|
+
import{i8 as ee,bn as te,c as M,b as re,r as b,j as i,m as se,bm as oe,D as ie,v as ne,x as le,I as ce,w as ae}from"./index-BP527m3V.js";import{a as G,e as V}from"./UserSquare-DEjJtCDR.js";import{b as fe}from"./agent-icon-CpMz1pSC.js";import{i as ue}from"./SearchMd-DVpGBR2l.js";import{a as _}from"./save-status-Cx3aKwGu.js";import{ac as de,k as me,an as ve}from"./blocks-tab-states-BZoxOO-H.js";import{a$ as K,c as pe,u as xe,i as he,E as ge}from"./site-editor-toast-BXRGIPuY.js";import{d as Y,r as we}from"./held-block-view-BR-UYX4S.js";import{u as Se}from"./use-voice-input-Li611DFd.js";function be(r){return r.schema?.definitions??r.schema?.$defs??{}}function Z(r,e){const t=be(e),s=t[btoa(r)];if(!s)return[];const o=[s];if(Array.isArray(s.allOf)){const l=s.allOf.find(n=>typeof n.$ref=="string")?.$ref;if(typeof l=="string"){const n=t[l.replace("#/definitions/","")];n&&o.push(n)}}return o}function je(r,e){for(const t of Z(r,e)){const s=typeof t.image=="string"?t.image:void 0;if(s?.includes("{{{"))return s}}function We(r,e){if(!e)return;const t=ee(r,te(e));if(!t)return;const s=je(t.resolveType,e);if(!s)return;const o=we(s,t.data);if(o)return Y(o)}function ye(r,e){for(const t of Z(r,e)){const s=typeof t.image=="string"?t.image:void 0;if(s&&!s.includes("{{"))return Y(s)}}const Ne=12,z=new Set,F=new Set;function Re(){for(const r of F)r()}function Pe(r){return z.has(r)?!0:z.size>=Ne?!1:(z.add(r),!0)}function Q(r){z.delete(r)&&Re()}function Ie(r){return F.add(r),()=>{F.delete(r)}}function Te(r,e){const t=b.useRef(!1),[s,o]=b.useState(!1),l=b.useRef(null),n=b.useRef(null),f=b.useRef(null),c=b.useRef(r);c.current=r;const[p]=b.useState(()=>{const u=()=>{f.current?.(),f.current=null},d=()=>t.current?!0:Pe(e)?(t.current=!0,o(!0),u(),!0):!1;return a=>{if(n.current=a,l.current&&(l.current.disconnect(),l.current=null),u(),!a){t.current&&(Q(e),t.current=!1,o(!1));return}queueMicrotask(()=>{if(n.current!==a)return;const w=new IntersectionObserver(m=>{if(m[0]?.isIntersecting??!1){!d()&&!f.current&&(f.current=Ie(()=>{n.current===a&&d()}));return}u(),t.current&&(Q(e),t.current=!1,o(!1))},{root:c.current.current,rootMargin:"160px 0px"});w.observe(a),l.current=w})}});return{ref:p,iframeActive:s}}function Ce(r){const e=M.c(9),{previewUrl:t,title:s,scrollRootRef:o,slotId:l}=r,{ref:n,iframeActive:f}=Te(o,l),[c,p]=b.useState(!1),u=_()?V:G;let d;e[0]!==u||e[1]!==f||e[2]!==c||e[3]!==t||e[4]!==s?(d=f?i.jsxs(i.Fragment,{children:[!c&&i.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:i.jsx(u,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),i.jsx("iframe",{src:t,title:`Preview ${s}`,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:()=>p(!0)})]}):i.jsx("div",{className:"flex h-full items-center justify-center",children:i.jsx(u,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=u,e[1]=f,e[2]=c,e[3]=t,e[4]=s,e[5]=d):d=e[5];let a;return e[6]!==n||e[7]!==d?(a=i.jsx("div",{ref:n,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:d}),e[6]=n,e[7]=d,e[8]=a):a=e[8],a}function Ue(r){const e=M.c(3),{image:t}=r,s=_()?V:G;let o;return e[0]!==s||e[1]!==t?(o=i.jsx("div",{className:"relative flex aspect-[16/10] w-full items-center justify-center overflow-hidden bg-muted/40",children:t?i.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:"h-full w-full object-cover"}):i.jsx(s,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=s,e[1]=t,e[2]=o):o=e[2],o}function ke(r){const e=M.c(28),{entry:t,previewUrl:s,image:o,scrollRootRef:l,onSelect:n}=r,c=_()?t.isSavedBlock?fe:V:G,p=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let u;e[0]!==p?(u=se("group flex flex-col overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-lg))] border bg-card text-left transition-colors shadow-edge","hover:border-primary/40 hover:bg-accent",p),e[0]=p,e[1]=u):u=e[1];let d;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==o||e[5]!==s||e[6]!==l?(d=s?i.jsx(Ce,{previewUrl:s,title:t.title,scrollRootRef:l,slotId:t.resolveType}):i.jsx(Ue,{image:o}),e[2]=t.resolveType,e[3]=t.title,e[4]=o,e[5]=s,e[6]=l,e[7]=d):d=e[7];let a;e[8]!==t.isSavedBlock?(a=t.isSavedBlock?{color:oe}:void 0,e[8]=t.isSavedBlock,e[9]=a):a=e[9];let w;e[10]!==c||e[11]!==a?(w=i.jsx(c,{className:"h-4 w-4 shrink-0",style:a}),e[10]=c,e[11]=a,e[12]=w):w=e[12];let m;e[13]!==t.title?(m=i.jsx("p",{className:"truncate text-sm font-medium",children:t.title}),e[13]=t.title,e[14]=m):m=e[14];let x;e[15]!==t.description?(x=t.description&&i.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.description}),e[15]=t.description,e[16]=x):x=e[16];let h;e[17]!==m||e[18]!==x?(h=i.jsxs("div",{className:"min-w-0 flex-1",children:[m,x]}),e[17]=m,e[18]=x,e[19]=h):h=e[19];let g;e[20]!==w||e[21]!==h?(g=i.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[w,h]}),e[20]=w,e[21]=h,e[22]=g):g=e[22];let S;return e[23]!==n||e[24]!==u||e[25]!==d||e[26]!==g?(S=i.jsxs("button",{type:"button",onClick:n,className:u,children:[d,g]}),e[23]=n,e[24]=u,e[25]=d,e[26]=g,e[27]=S):S=e[27],S}function qe(r){const e=M.c(51),{open:t,onOpenChange:s,meta:o,decofile:l,previewBaseUrl:n,onSelect:f}=r,c=re(),[p,u]=b.useState(""),[d,a]=b.useState(t),w=b.useRef(null);t!==d&&(a(t),t&&u(""));let m,x,h,g,S,y,N,R,j,P,I;if(e[0]!==l||e[1]!==o||e[2]!==s||e[3]!==f||e[4]!==t||e[5]!==n||e[6]!==p||e[7]!==c){const W=t&&o&&l?de(o,l):[],q=o?me(o):"",H=l?ve(l):void 0,X=new Map;if(t&&q&&n)for(const v of W)X.set(v.resolveType,K(n,q,v.previewBlock,H));const O=p.trim().toLowerCase(),J=O?W.filter(v=>v.title.toLowerCase().includes(O)||v.resolveType.toLowerCase().includes(O)||v.description?.toLowerCase().includes(O)):W;x=ie,P=t,I=s,m=ne,N="top-3 right-3",R="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let k;e[19]!==c?(k=c("sectionsEditor.addSectionModal.title"),e[19]=c,e[20]=k):k=e[20];let B;e[21]!==k?(B=i.jsx(le,{children:k}),e[21]=k,e[22]=B):B=e[22];let $;e[23]===Symbol.for("react.memo_cache_sentinel")?($=i.jsx(ue,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[23]=$):$=e[23];let D;e[24]===Symbol.for("react.memo_cache_sentinel")?(D=v=>u(v.target.value),e[24]=D):D=e[24];let A;e[25]!==c?(A=c("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=c,e[26]=A):A=e[26];let L;e[27]!==p||e[28]!==A?(L=i.jsxs("div",{className:"relative pt-2",children:[$,i.jsx(ce,{value:p,onChange:D,placeholder:A,className:"h-9 pl-8"})]}),e[27]=p,e[28]=A,e[29]=L):L=e[29],e[30]!==B||e[31]!==L?(j=i.jsxs(ae,{className:"shrink-0 border-b px-4 py-3 text-left",children:[B,L]}),e[30]=B,e[31]=L,e[32]=j):j=e[32],S=w,y="min-h-0 flex-1 overflow-y-auto",h="p-4",g=J.length===0?i.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:c("sectionsEditor.addSectionModal.noSectionsFound")}):i.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:J.map(v=>i.jsx(ke,{entry:v,scrollRootRef:w,previewUrl:n?X.get(v.resolveType)??K(n,q,v.previewBlock,H):null,image:n||!o?void 0:ye(v.resolveType,o),onSelect:()=>f(v)},v.resolveType))}),e[0]=l,e[1]=o,e[2]=s,e[3]=f,e[4]=t,e[5]=n,e[6]=p,e[7]=c,e[8]=m,e[9]=x,e[10]=h,e[11]=g,e[12]=S,e[13]=y,e[14]=N,e[15]=R,e[16]=j,e[17]=P,e[18]=I}else m=e[8],x=e[9],h=e[10],g=e[11],S=e[12],y=e[13],N=e[14],R=e[15],j=e[16],P=e[17],I=e[18];let T;e[33]!==h||e[34]!==g?(T=i.jsx("div",{className:h,children:g}),e[33]=h,e[34]=g,e[35]=T):T=e[35];let C;e[36]!==T||e[37]!==S||e[38]!==y?(C=i.jsx("div",{ref:S,className:y,children:T}),e[36]=T,e[37]=S,e[38]=y,e[39]=C):C=e[39];let U;e[40]!==m||e[41]!==C||e[42]!==N||e[43]!==R||e[44]!==j?(U=i.jsxs(m,{closeButtonClassName:N,className:R,children:[j,C]}),e[40]=m,e[41]=C,e[42]=N,e[43]=R,e[44]=j,e[45]=U):U=e[45];let E;return e[46]!==x||e[47]!==U||e[48]!==P||e[49]!==I?(E=i.jsx(x,{open:P,onOpenChange:I,children:U}),e[46]=x,e[47]=U,e[48]=P,e[49]=I,e[50]=E):E=e[50],E}function Fe(r){const e=M.c(4),{previewServerUrl:t,runtime:s}=Se(r.virtualMcpId),{url:o}=pe(r.virtualMcpId),l=xe(r.virtualMcpId,r.branch),n=s==="cms";if(he(l))return null;if(o)return o;let f;return e[0]!==n||e[1]!==r.sandboxUrl||e[2]!==t?(f=ge({sandboxUrl:r.sandboxUrl,previewServerUrl:t,fastPreviewActive:n}),e[0]=n,e[1]=r.sandboxUrl,e[2]=t,e[3]=f):f=e[3],f}export{qe as A,We as g,Z as s,Fe as u};
|
package/dist/client/assets/{use-sidebar-collapsed-BpkHLNx1.js → use-sidebar-collapsed-x7SsKYNl.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as y,c as j,j as o,m as C,bW as A,bX as R,a6 as H,c7 as W,b as L,d as V,a4 as F}from"./index-DDDWDv4s.js";import{m as q}from"./use-chat-layout-state-mgFqTgen.js";import{M as X}from"./agent-icon-DFd8L1O_.js";import{b as G,a as E,T as P,c as z}from"./tooltip-7WjUlVHN.js";import{T as J}from"./toolbar-icon-button-Cf4mp3st.js";import{g as K}from"./shell-layout-DHcyl3tS.js";import{u as Q}from"./use-mobile-CEHdcOx8.js";import{b as U,c as Y,S as Z,d as ee,a as te}from"./sheet-CJ8R5cz8.js";const se="15rem",ae="18rem",ie="4.5rem",D=y.createContext(null);function I(){const s=y.useContext(D);if(!s)throw new Error("useSidebar must be used within a SidebarProvider.");return s}function ge(s){const e=j.c(19),{children:t,defaultOpen:a,open:i,onOpenChange:n}=s,d=a===void 0?!1:a,r=Q(),[l,c]=y.useState(d),[p,v]=y.useState(!1),u=i!==void 0,f=u?i:l;let h;e[0]!==u||e[1]!==n?(h=M=>{u||c(M),n?.(M)},e[0]=u,e[1]=n,e[2]=h):h=e[2];const b=h;let w;e[3]!==r||e[4]!==f||e[5]!==b?(w=()=>{r?v(ne):b(!f)},e[3]=r,e[4]=f,e[5]=b,e[6]=w):w=e[6];const N=w,x=f?"expanded":"collapsed";let m;e[7]!==r||e[8]!==f||e[9]!==p||e[10]!==b||e[11]!==x||e[12]!==N?(m={state:x,open:f,setOpen:b,isMobile:r,openMobile:p,setOpenMobile:v,toggleSidebar:N},e[7]=r,e[8]=f,e[9]=p,e[10]=b,e[11]=x,e[12]=N,e[13]=m):m=e[13];const S=m;let g;e[14]!==t?(g=o.jsx(G,{delayDuration:0,children:t}),e[14]=t,e[15]=g):g=e[15];let T;return e[16]!==S||e[17]!==g?(T=o.jsx(D.Provider,{value:S,children:g}),e[16]=S,e[17]=g,e[18]=T):T=e[18],T}function ne(s){return!s}function ve(s){const e=j.c(14);let t,a,i,n;e[0]!==s?({className:a,style:n,children:t,...i}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n):(t=e[1],a=e[2],i=e[3],n=e[4]);let d;e[5]!==n?(d={"--sidebar-width":se,"--sidebar-width-icon":ie,...n},e[5]=n,e[6]=d):d=e[6];const r=d;let l;e[7]!==a?(l=C("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",a),e[7]=a,e[8]=l):l=e[8];let c;return e[9]!==t||e[10]!==i||e[11]!==r||e[12]!==l?(c=o.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:l,...i,children:t}),e[9]=t,e[10]=i,e[11]=r,e[12]=l,e[13]=c):c=e[13],c}function Se(s){const e=j.c(36);let t,a,i,n,d;e[0]!==s?({side:n,variant:d,className:a,children:t,...i}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n,e[5]=d):(t=e[1],a=e[2],i=e[3],n=e[4],d=e[5]);const r=n===void 0?"left":n,l=d===void 0?"sidebar":d,{isMobile:c,state:p,openMobile:v,setOpenMobile:u}=I();if(c){let T;e[6]===Symbol.for("react.memo_cache_sentinel")?(T={"--sidebar-width":ae},e[6]=T):T=e[6];let M;e[7]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsxs(Y,{className:"sr-only",children:[o.jsx(Z,{children:"Sidebar"}),o.jsx(ee,{children:"Displays the mobile sidebar."})]}),e[7]=M):M=e[7];let $;e[8]!==t?($=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=$):$=e[9];let _;e[10]!==r||e[11]!==$?(_=o.jsxs(te,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:T,side:r,children:[M,$]}),e[10]=r,e[11]=$,e[12]=_):_=e[12];let B;return e[13]!==v||e[14]!==i||e[15]!==u||e[16]!==_?(B=o.jsx(U,{open:v,onOpenChange:u,...i,children:_}),e[13]=v,e[14]=i,e[15]=u,e[16]=_,e[17]=B):B=e[17],B}const f=p==="expanded",h=f?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let b;e[18]!==h?(b=C("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",h),e[18]=h,e[19]=b):b=e[19];const w=f?void 0:"icon",N=f?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let x;e[20]!==a||e[21]!==N?(x=C("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",N,a),e[20]=a,e[21]=N,e[22]=x):x=e[22];let m;e[23]!==t?(m=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=m):m=e[24];let S;e[25]!==i||e[26]!==x||e[27]!==m?(S=o.jsx("div",{"data-slot":"sidebar-container",className:x,...i,children:m}),e[25]=i,e[26]=x,e[27]=m,e[28]=S):S=e[28];let g;return e[29]!==r||e[30]!==p||e[31]!==b||e[32]!==w||e[33]!==S||e[34]!==l?(g=o.jsx("div",{className:b,"data-state":p,"data-collapsible":w,"data-variant":l,"data-side":r,"data-slot":"sidebar",children:S}),e[29]=r,e[30]=p,e[31]=b,e[32]=w,e[33]=S,e[34]=l,e[35]=g):g=e[35],g}function je(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("main",{"data-slot":"sidebar-inset",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function we(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Ne(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Te(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Ce(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}const le=R("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm focus-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg:not([class*='text-'])]:text-muted-foreground hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm group-data-[state=collapsed]/sidebar:size-8! group-data-[state=collapsed]/sidebar:rounded-full",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function ye(s){const e=j.c(28);let t,a,i,n,d,r,l;e[0]!==s?({asChild:i,isActive:n,variant:d,size:r,tooltip:l,className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n,e[5]=d,e[6]=r,e[7]=l):(t=e[1],a=e[2],i=e[3],n=e[4],d=e[5],r=e[6],l=e[7]);const c=i===void 0?!1:i,p=n===void 0?!1:n,v=d===void 0?"default":d,u=r===void 0?"default":r,f=c?A:"button",{isMobile:h}=I();let b;e[8]!==t||e[9]!==u||e[10]!==v?(b=C(le({variant:v,size:u}),t),e[8]=t,e[9]=u,e[10]=v,e[11]=b):b=e[11];let w;e[12]!==f||e[13]!==p||e[14]!==a||e[15]!==u||e[16]!==b?(w=o.jsx(f,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":u,"data-active":p,className:b,...a}),e[12]=f,e[13]=p,e[14]=a,e[15]=u,e[16]=b,e[17]=w):w=e[17];const N=w;if(!l)return N;if(typeof l=="string"){let g;e[18]!==l?(g={children:l},e[18]=l,e[19]=g):g=e[19],l=g}let x;e[20]!==N?(x=o.jsx(P,{asChild:!0,children:N}),e[20]=N,e[21]=x):x=e[21];let m;e[22]!==h||e[23]!==l?(m=o.jsx(E,{side:"right",align:"center",hidden:h,...l}),e[22]=h,e[23]=l,e[24]=m):m=e[24];let S;return e[25]!==x||e[26]!==m?(S=o.jsxs(z,{children:[x,m]}),e[25]=x,e[26]=m,e[27]=S):S=e[27],S}function re(){const s=j.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings",shouldThrow:!1},s[0]=e):e=s[0],!!H(e)}const O=y.createContext(null);function Me(s){const e=j.c(5),{children:t}=s,[a,i]=y.useState(null);let n;e[0]!==a?(n={target:a,setTarget:i},e[0]=a,e[1]=n):n=e[1];let d;return e[2]!==t||e[3]!==n?(d=o.jsx(O,{value:n,children:t}),e[2]=t,e[3]=n,e[4]=d):d=e[4],d}function oe(){const s=y.use(O);if(!s)throw new Error("Sidebar thread controls require a Layout");return s}function k(s){const e=j.c(17),{open:t,onToggle:a}=s,i=L(),{isMobile:n,setOpenMobile:d}=I(),r=t?"page.closeThread":"page.openThread";let l;e[0]!==i||e[1]!==r?(l=i(r),e[0]=i,e[1]=r,e[2]=l):l=e[2];const c=l;let p;e[3]!==n||e[4]!==a||e[5]!==d?(p=()=>{a(),n&&d(!1)},e[3]=n,e[4]=a,e[5]=d,e[6]=p):p=e[6];let v;e[7]===Symbol.for("react.memo_cache_sentinel")?(v=o.jsx(X,{size:16}),e[7]=v):v=e[7];let u;e[8]!==c||e[9]!==t||e[10]!==p?(u=o.jsx(P,{asChild:!0,children:o.jsx(J,{"aria-label":c,"aria-pressed":t,active:t,className:"size-7 shrink-0 group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:size-8",onClick:p,children:v})}),e[8]=c,e[9]=t,e[10]=p,e[11]=u):u=e[11];let f;e[12]!==c?(f=o.jsx(E,{side:"right",children:c}),e[12]=c,e[13]=f):f=e[13];let h;return e[14]!==u||e[15]!==f?(h=o.jsxs(z,{children:[u,f]}),e[14]=u,e[15]=f,e[16]=h):h=e[16],h}function $e(s){const e=j.c(3),t=y.use(O);let a;return e[0]!==s||e[1]!==t?(a=t?.target?W.createPortal(o.jsx(k,{...s}),t.target):null,e[0]=s,e[1]=t,e[2]=a):a=e[2],a}function _e(){const s=j.c(11),{setTarget:e}=oe(),t=re(),{isMobile:a}=I(),i=V(),{org:n}=F(),{openSidePanel:d}=K();let r;s[0]!==e?(r=o.jsx("div",{ref:e,className:"peer/thread-button contents empty:hidden"}),s[0]=e,s[1]=r):r=s[1];let l;s[2]!==t||s[3]!==a||s[4]!==i||s[5]!==d||s[6]!==n?(l=o.jsx("div",{className:"hidden peer-empty/thread-button:contents",children:o.jsx(k,{open:!1,onToggle:()=>{t?i({to:"/$org/home",params:{org:n.slug},search:{sidepanel:!0,mainpanel:!a}}):a?i({to:".",search:de,replace:!0}):d()}})}),s[2]=t,s[3]=a,s[4]=i,s[5]=d,s[6]=n,s[7]=l):l=s[7];let c;return s[8]!==r||s[9]!==l?(c=o.jsxs(o.Fragment,{children:[r,l]}),s[8]=r,s[9]=l,s[10]=c):c=s[10],c}function de(s){return{...s,...q("chat")}}function Ie(){const{state:s,isMobile:e}=I();return s==="collapsed"&&!e}export{ye as S,Te as a,Ce as b,I as c,we as d,_e as e,Ne as f,Se as g,re as h,ge as i,ve as j,Me as k,je as l,$e as m,Ie as u};
|
|
1
|
+
import{r as y,c as j,j as o,m as C,bX as A,bY as R,a6 as H,c8 as L,b as V,d as W,a4 as F}from"./index-BP527m3V.js";import{m as q}from"./use-chat-layout-state-DQhX2zdi.js";import{M as X}from"./agent-icon-CpMz1pSC.js";import{b as Y,a as E,T as P,c as z}from"./tooltip-D9qNlq6S.js";import{T as G}from"./toolbar-icon-button-B0M5XFng.js";import{g as J}from"./shell-layout-BHtZVBED.js";import{u as K}from"./use-mobile-B0YlxBUo.js";import{b as Q,c as U,S as Z,d as ee,a as te}from"./sheet-1BLiVjE3.js";const se="15rem",ae="18rem",ie="4.5rem",D=y.createContext(null);function I(){const s=y.useContext(D);if(!s)throw new Error("useSidebar must be used within a SidebarProvider.");return s}function ge(s){const e=j.c(19),{children:t,defaultOpen:a,open:i,onOpenChange:n}=s,d=a===void 0?!1:a,r=K(),[l,c]=y.useState(d),[p,v]=y.useState(!1),u=i!==void 0,f=u?i:l;let h;e[0]!==u||e[1]!==n?(h=M=>{u||c(M),n?.(M)},e[0]=u,e[1]=n,e[2]=h):h=e[2];const b=h;let w;e[3]!==r||e[4]!==f||e[5]!==b?(w=()=>{r?v(ne):b(!f)},e[3]=r,e[4]=f,e[5]=b,e[6]=w):w=e[6];const N=w,x=f?"expanded":"collapsed";let m;e[7]!==r||e[8]!==f||e[9]!==p||e[10]!==b||e[11]!==x||e[12]!==N?(m={state:x,open:f,setOpen:b,isMobile:r,openMobile:p,setOpenMobile:v,toggleSidebar:N},e[7]=r,e[8]=f,e[9]=p,e[10]=b,e[11]=x,e[12]=N,e[13]=m):m=e[13];const S=m;let g;e[14]!==t?(g=o.jsx(Y,{delayDuration:0,children:t}),e[14]=t,e[15]=g):g=e[15];let T;return e[16]!==S||e[17]!==g?(T=o.jsx(D.Provider,{value:S,children:g}),e[16]=S,e[17]=g,e[18]=T):T=e[18],T}function ne(s){return!s}function ve(s){const e=j.c(14);let t,a,i,n;e[0]!==s?({className:a,style:n,children:t,...i}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n):(t=e[1],a=e[2],i=e[3],n=e[4]);let d;e[5]!==n?(d={"--sidebar-width":se,"--sidebar-width-icon":ie,...n},e[5]=n,e[6]=d):d=e[6];const r=d;let l;e[7]!==a?(l=C("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",a),e[7]=a,e[8]=l):l=e[8];let c;return e[9]!==t||e[10]!==i||e[11]!==r||e[12]!==l?(c=o.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:l,...i,children:t}),e[9]=t,e[10]=i,e[11]=r,e[12]=l,e[13]=c):c=e[13],c}function Se(s){const e=j.c(36);let t,a,i,n,d;e[0]!==s?({side:n,variant:d,className:a,children:t,...i}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n,e[5]=d):(t=e[1],a=e[2],i=e[3],n=e[4],d=e[5]);const r=n===void 0?"left":n,l=d===void 0?"sidebar":d,{isMobile:c,state:p,openMobile:v,setOpenMobile:u}=I();if(c){let T;e[6]===Symbol.for("react.memo_cache_sentinel")?(T={"--sidebar-width":ae},e[6]=T):T=e[6];let M;e[7]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsxs(U,{className:"sr-only",children:[o.jsx(Z,{children:"Sidebar"}),o.jsx(ee,{children:"Displays the mobile sidebar."})]}),e[7]=M):M=e[7];let $;e[8]!==t?($=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=$):$=e[9];let _;e[10]!==r||e[11]!==$?(_=o.jsxs(te,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:T,side:r,children:[M,$]}),e[10]=r,e[11]=$,e[12]=_):_=e[12];let B;return e[13]!==v||e[14]!==i||e[15]!==u||e[16]!==_?(B=o.jsx(Q,{open:v,onOpenChange:u,...i,children:_}),e[13]=v,e[14]=i,e[15]=u,e[16]=_,e[17]=B):B=e[17],B}const f=p==="expanded",h=f?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let b;e[18]!==h?(b=C("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",h),e[18]=h,e[19]=b):b=e[19];const w=f?void 0:"icon",N=f?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let x;e[20]!==a||e[21]!==N?(x=C("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",N,a),e[20]=a,e[21]=N,e[22]=x):x=e[22];let m;e[23]!==t?(m=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=m):m=e[24];let S;e[25]!==i||e[26]!==x||e[27]!==m?(S=o.jsx("div",{"data-slot":"sidebar-container",className:x,...i,children:m}),e[25]=i,e[26]=x,e[27]=m,e[28]=S):S=e[28];let g;return e[29]!==r||e[30]!==p||e[31]!==b||e[32]!==w||e[33]!==S||e[34]!==l?(g=o.jsx("div",{className:b,"data-state":p,"data-collapsible":w,"data-variant":l,"data-side":r,"data-slot":"sidebar",children:S}),e[29]=r,e[30]=p,e[31]=b,e[32]=w,e[33]=S,e[34]=l,e[35]=g):g=e[35],g}function je(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("main",{"data-slot":"sidebar-inset",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function we(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Ne(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Te(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Ce(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}const le=R("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm focus-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg:not([class*='text-'])]:text-muted-foreground hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm group-data-[state=collapsed]/sidebar:size-8! group-data-[state=collapsed]/sidebar:rounded-full",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function ye(s){const e=j.c(28);let t,a,i,n,d,r,l;e[0]!==s?({asChild:i,isActive:n,variant:d,size:r,tooltip:l,className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n,e[5]=d,e[6]=r,e[7]=l):(t=e[1],a=e[2],i=e[3],n=e[4],d=e[5],r=e[6],l=e[7]);const c=i===void 0?!1:i,p=n===void 0?!1:n,v=d===void 0?"default":d,u=r===void 0?"default":r,f=c?A:"button",{isMobile:h}=I();let b;e[8]!==t||e[9]!==u||e[10]!==v?(b=C(le({variant:v,size:u}),t),e[8]=t,e[9]=u,e[10]=v,e[11]=b):b=e[11];let w;e[12]!==f||e[13]!==p||e[14]!==a||e[15]!==u||e[16]!==b?(w=o.jsx(f,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":u,"data-active":p,className:b,...a}),e[12]=f,e[13]=p,e[14]=a,e[15]=u,e[16]=b,e[17]=w):w=e[17];const N=w;if(!l)return N;if(typeof l=="string"){let g;e[18]!==l?(g={children:l},e[18]=l,e[19]=g):g=e[19],l=g}let x;e[20]!==N?(x=o.jsx(P,{asChild:!0,children:N}),e[20]=N,e[21]=x):x=e[21];let m;e[22]!==h||e[23]!==l?(m=o.jsx(E,{side:"right",align:"center",hidden:h,...l}),e[22]=h,e[23]=l,e[24]=m):m=e[24];let S;return e[25]!==x||e[26]!==m?(S=o.jsxs(z,{children:[x,m]}),e[25]=x,e[26]=m,e[27]=S):S=e[27],S}function re(){const s=j.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings",shouldThrow:!1},s[0]=e):e=s[0],!!H(e)}const O=y.createContext(null);function Me(s){const e=j.c(5),{children:t}=s,[a,i]=y.useState(null);let n;e[0]!==a?(n={target:a,setTarget:i},e[0]=a,e[1]=n):n=e[1];let d;return e[2]!==t||e[3]!==n?(d=o.jsx(O,{value:n,children:t}),e[2]=t,e[3]=n,e[4]=d):d=e[4],d}function oe(){const s=y.use(O);if(!s)throw new Error("Sidebar thread controls require a Layout");return s}function k(s){const e=j.c(17),{open:t,onToggle:a}=s,i=V(),{isMobile:n,setOpenMobile:d}=I(),r=t?"page.closeThread":"page.openThread";let l;e[0]!==i||e[1]!==r?(l=i(r),e[0]=i,e[1]=r,e[2]=l):l=e[2];const c=l;let p;e[3]!==n||e[4]!==a||e[5]!==d?(p=()=>{a(),n&&d(!1)},e[3]=n,e[4]=a,e[5]=d,e[6]=p):p=e[6];let v;e[7]===Symbol.for("react.memo_cache_sentinel")?(v=o.jsx(X,{size:16}),e[7]=v):v=e[7];let u;e[8]!==c||e[9]!==t||e[10]!==p?(u=o.jsx(P,{asChild:!0,children:o.jsx(G,{"aria-label":c,"aria-pressed":t,active:t,className:"size-7 shrink-0 group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:size-8",onClick:p,children:v})}),e[8]=c,e[9]=t,e[10]=p,e[11]=u):u=e[11];let f;e[12]!==c?(f=o.jsx(E,{side:"right",children:c}),e[12]=c,e[13]=f):f=e[13];let h;return e[14]!==u||e[15]!==f?(h=o.jsxs(z,{children:[u,f]}),e[14]=u,e[15]=f,e[16]=h):h=e[16],h}function $e(s){const e=j.c(3),t=y.use(O);let a;return e[0]!==s||e[1]!==t?(a=t?.target?L.createPortal(o.jsx(k,{...s}),t.target):null,e[0]=s,e[1]=t,e[2]=a):a=e[2],a}function _e(){const s=j.c(11),{setTarget:e}=oe(),t=re(),{isMobile:a}=I(),i=W(),{org:n}=F(),{openSidePanel:d}=J();let r;s[0]!==e?(r=o.jsx("div",{ref:e,className:"peer/thread-button contents empty:hidden"}),s[0]=e,s[1]=r):r=s[1];let l;s[2]!==t||s[3]!==a||s[4]!==i||s[5]!==d||s[6]!==n?(l=o.jsx("div",{className:"hidden peer-empty/thread-button:contents",children:o.jsx(k,{open:!1,onToggle:()=>{t?i({to:"/$org/home",params:{org:n.slug},search:{sidepanel:!0,mainpanel:!a}}):a?i({to:".",search:de,replace:!0}):d()}})}),s[2]=t,s[3]=a,s[4]=i,s[5]=d,s[6]=n,s[7]=l):l=s[7];let c;return s[8]!==r||s[9]!==l?(c=o.jsxs(o.Fragment,{children:[r,l]}),s[8]=r,s[9]=l,s[10]=c):c=s[10],c}function de(s){return{...s,...q("chat")}}function Ie(){const{state:s,isMobile:e}=I();return s==="collapsed"&&!e}export{ye as S,Te as a,Ce as b,I as c,we as d,_e as e,Ne as f,Se as g,re as h,ge as i,ve as j,Me as k,je as l,$e as m,Ie as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,a4 as f,ak as y,i as m,q as g,e as T,K as l,t as E}from"./index-
|
|
1
|
+
import{c as u,a4 as f,ak as y,i as m,q as g,e as T,K as l,t as E}from"./index-BP527m3V.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,i as S,K as _,al as R,a4 as i,ak as l}from"./index-
|
|
1
|
+
import{c as O,f,i as S,K as _,al as R,a4 as i,ak as l}from"./index-BP527m3V.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-De0Ql0Pn.js → use-task-board-events-U_kvLTo1.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"./task-board-
|
|
1
|
+
import{a as m}from"./task-board-CdhOR9bl.js";import{r as e}from"./index-BP527m3V.js";import{t as g}from"./watch-sse-pool-B39Ow5tK.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,at as w,c as h,a4 as R,ak as k,q as T,i as O,K as A}from"./index-
|
|
1
|
+
import{r as y,at as w,c as h,a4 as R,ak as k,q as T,i as O,K as A}from"./index-BP527m3V.js";import{c as B}from"./watch-sse-pool-B39Ow5tK.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=k(),l=T();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-DNUZNAh_.js → use-task-board-items-B66t-aAy.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as j,b as Y}from"./config-
|
|
1
|
+
import{i as j,b as Y}from"./config-DhSdzr_l.js";import{c as P,a4 as U,q as W,K as E,ak as G,i as V,b as X,e as R,E as Z,t as H}from"./index-BP527m3V.js";import{u as tt}from"./use-task-board-events-U_kvLTo1.js";import{u as et}from"./use-decopilot-events-B84nN_Z6.js";const st=new Set(["post_deploy_validation","done"]),at=new Set(["done","archived"]);function J(t){if(!st.has(t.status)||!t.updatedAt)return null;const r=Date.parse(t.updatedAt);return Number.isNaN(r)?null:r}function ft(t,r){return t.filter(s=>(J(s)??-1/0)>=r).length}function mt(t,r){return t.filter(s=>at.has(s.status)?!1:r&&s.assigneeId===r?!0:j(s)||Y(s)).sort((s,e)=>(s.updatedAt??"").localeCompare(e.updatedAt??""))}function yt(t){return j(t)?"answer":Y(t)?"review":"assigned"}function ht(t){const r=[];for(const s of t)for(const e of s.threads)e.status==="in_progress"&&r.push({threadId:e.threadId,taskId:s.id,taskTitle:s.title,runTitle:e.title,startedAt:e.createdAt});return r.sort((s,e)=>e.startedAt.localeCompare(s.startedAt))}const gt=14;function At(t,r,s=Date.now()){const e=new Array(r).fill(0);for(const a of t){const n=J(a);if(n===null)continue;const i=r-1-Math.floor(Math.max(0,s-n)/864e5);i>=0&&i<r&&(e[i]+=1)}return e}function It(t,r,s=Date.now()){const e=new Array(r).fill(0);for(const a of t)for(const n of a.threads){const i=Date.parse(n.lastActiveAt);if(Number.isNaN(i))continue;const o=r-1-Math.floor(Math.max(0,s-i)/864e5);o>=0&&o<r&&(e[o]+=1)}return e}function rt(t){const r=new Date(t);r.setDate(1),r.setHours(0,0,0,0);const s=r.getTime();return{since:s,days:Math.floor((t-s)/864e5)+1}}function St(t,r=Date.now()){const{since:s,days:e}=rt(r),a=new Array(e).fill(0);for(const n of t)for(const i of n.threads){const o=Date.parse(i.lastActiveAt);if(Number.isNaN(o)||o<s||o>r)continue;const m=Math.floor((o-s)/864e5);m>=0&&m<e&&(a[m]+=i.costUsd??0)}return a}function Tt(t){return t<=0?"$0":t>=1e3?`$${(t/1e3).toFixed(1)}k`:t>=10?`$${Math.round(t)}`:`$${t.toFixed(2)}`}function nt(t,r){return{queryKey:E.taskBoardItems(t),refetchInterval:6e4,queryFn:async()=>{const{items:s,demoFrozenItemIds:e}=await r.call("TASK_BOARD_ITEM_LIST",{});return{items:s,demoFrozenItemIds:e}}}}function ot(){const t=P.c(21),{org:r,locator:s}=U(),e=W();let a;t[0]!==s?(a=E.taskBoardItems(s),t[0]=s,t[1]=a):a=t[1];const n=a;let i;t[2]!==s||t[3]!==e||t[4]!==n?(i=y=>{e.cancelQueries({queryKey:n}),e.setQueryData(n,d=>d&&{...d,items:d.items.some(c=>c.id===y.id)?d.items.map(c=>c.id===y.id?y:c):[y,...d.items]}),e.invalidateQueries({queryKey:E.taskBoardActivity(s,y.id)}),e.invalidateQueries({queryKey:E.taskBoardComments(s,y.id)})},t[2]=s,t[3]=e,t[4]=n,t[5]=i):i=t[5];let o,m;t[6]!==e||t[7]!==n?(o=()=>{e.invalidateQueries({queryKey:n})},m=y=>{e.cancelQueries({queryKey:n}),e.setQueryData(n,d=>d&&{...d,items:d.items.filter(c=>c.id!==y)})},t[6]=e,t[7]=n,t[8]=o,t[9]=m):(o=t[8],m=t[9]);let u;t[10]!==r.slug||t[11]!==i||t[12]!==o||t[13]!==m?(u={orgSlug:r.slug,onUpdate:i,onResync:o,onDelete:m},t[10]=r.slug,t[11]=i,t[12]=o,t[13]=m,t[14]=u):u=t[14],tt(u);let h;t[15]!==e||t[16]!==n?(h=y=>{const d=y.subject,c=y.data.status;e.cancelQueries({queryKey:n}),e.setQueryData(n,g=>g&&{...g,items:g.items.map(A=>A.threads.some(S=>S.threadId===d)?{...A,threads:A.threads.map(S=>S.threadId===d?{...S,status:c}:S)}:A)});const D=e.getQueryData(n)?.items.some(g=>g.threads.some(A=>A.threadId===d));c==="failed"&&D&&e.invalidateQueries({queryKey:n})},t[15]=e,t[16]=n,t[17]=h):h=t[17];let T;t[18]!==r.slug||t[19]!==h?(T={orgSlug:r.slug,onTaskStatus:h},t[18]=r.slug,t[19]=h,t[20]=T):T=t[20],et(T)}function Dt(){const t=P.c(13),{locator:r}=U(),s=G();let e;t[0]!==r||t[1]!==s?(e=nt(r,s),t[0]=r,t[1]=s,t[2]=e):e=t[2];const a=V(e);ot();let n;t[3]!==a.data?.items?(n=a.data?.items??[],t[3]=a.data?.items,t[4]=n):n=t[4];let i;t[5]!==a.data?.demoFrozenItemIds?(i=a.data?.demoFrozenItemIds??[],t[5]=a.data?.demoFrozenItemIds,t[6]=i):i=t[6];let o;return t[7]!==a.error||t[8]!==a.isFetching||t[9]!==a.isLoading||t[10]!==n||t[11]!==i?(o={items:n,demoFrozenItemIds:i,isLoading:a.isLoading,isFetching:a.isFetching,error:a.error},t[7]=a.error,t[8]=a.isFetching,t[9]=a.isLoading,t[10]=n,t[11]=i,t[12]=o):o=t[12],o}function Et(){const t=P.c(70),{org:r,locator:s}=U(),e=G(),a=W(),n=X();let i;t[0]!==s?(i=E.taskBoardItems(s),t[0]=s,t[1]=i):i=t[1];const o=i;let m;t[2]!==a||t[3]!==o?(m=()=>a.invalidateQueries({queryKey:o}),t[2]=a,t[3]=o,t[4]=m):m=t[4];const u=m;let h;t[5]!==e?(h=l=>e.call("TASK_BOARD_ITEM_CREATE",l),t[5]=e,t[6]=h):h=t[6];let T;t[7]!==u||t[8]!==h?(T={mutationFn:h,onSuccess:u},t[7]=u,t[8]=h,t[9]=T):T=t[9];const y=R(T);let d;t[10]!==e?(d=l=>e.call("TASK_BOARD_ITEM_UPDATE",l),t[10]=e,t[11]=d):d=t[11];let c;t[12]!==a||t[13]!==o?(c=async l=>{await a.cancelQueries({queryKey:o});const I=a.getQueryData(o);return a.setQueryData(o,f=>f&&{...f,items:f.items.map(O=>O.id===l.id?{...O,...l,...l.status!==void 0&&l.status!==O.status&&{statusSince:new Date().toISOString()}}:O)}),{previous:I}},t[12]=a,t[13]=o,t[14]=c):c=t[14];let D;t[15]!==r?(D=(l,I)=>{I.status==="done"&&Z("task_marked_done",{organization_id:r.id,task_board_item_id:I.id})},t[15]=r,t[16]=D):D=t[16];let g;t[17]!==a||t[18]!==o?(g=(l,I,f)=>{f?.previous&&a.setQueryData(o,f.previous)},t[17]=a,t[18]=o,t[19]=g):g=t[19];let A;t[20]!==u||t[21]!==s||t[22]!==a?(A=(l,I,f)=>{u(),a.invalidateQueries({queryKey:E.taskBoardActivity(s,f.id)})},t[20]=u,t[21]=s,t[22]=a,t[23]=A):A=t[23];let S;t[24]!==d||t[25]!==c||t[26]!==D||t[27]!==g||t[28]!==A?(S={mutationFn:d,onMutate:c,onSuccess:D,onError:g,onSettled:A},t[24]=d,t[25]=c,t[26]=D,t[27]=g,t[28]=A,t[29]=S):S=t[29];const $=R(S);let k;t[30]!==e?(k=l=>e.call("TASK_BOARD_ITEM_DELETE",{id:l}),t[30]=e,t[31]=k):k=t[31];let _;t[32]!==u||t[33]!==n?(_=l=>{H.error(l instanceof Error&&l.message?l.message:n("taskBoard.taskBoard.deleteError")),u()},t[32]=u,t[33]=n,t[34]=_):_=t[34];let w;t[35]!==u||t[36]!==k||t[37]!==_?(w={mutationFn:k,onSuccess:u,onError:_},t[35]=u,t[36]=k,t[37]=_,t[38]=w):w=t[38];const x=R(w);let B;t[39]!==e?(B=async l=>{const I=await Promise.allSettled(l.map(f=>e.call("TASK_BOARD_ITEM_DELETE",{id:f})));return{total:l.length,failed:I.filter(it).length}},t[39]=e,t[40]=B):B=t[40];let p,Q;t[41]!==n?(p=l=>{const{total:I,failed:f}=l;f!==0&&H.error(n("taskBoard.taskBoard.deleteBulkError",{failed:String(f),total:String(I)}))},Q=()=>H.error(n("taskBoard.taskBoard.deleteError")),t[41]=n,t[42]=p,t[43]=Q):(p=t[42],Q=t[43]);let q;t[44]!==u||t[45]!==B||t[46]!==p||t[47]!==Q?(q={mutationFn:B,onSuccess:p,onError:Q,onSettled:u},t[44]=u,t[45]=B,t[46]=p,t[47]=Q,t[48]=q):q=t[48];const L=R(q);let M;t[49]!==e?(M=l=>e.call("TASK_BOARD_ITEM_UPDATE",l),t[49]=e,t[50]=M):M=t[50];let v;t[51]!==u||t[52]!==M?(v={mutationFn:M,onSuccess:u},t[51]=u,t[52]=M,t[53]=v):v=t[53];const b=R(v);let F;t[54]!==e?(F=l=>e.call("TASK_BOARD_ITEM_RERUN",l),t[54]=e,t[55]=F):F=t[55];let K;t[56]!==u||t[57]!==s||t[58]!==a?(K=(l,I,f)=>{u(),a.invalidateQueries({queryKey:E.taskBoardActivity(s,f.id)})},t[56]=u,t[57]=s,t[58]=a,t[59]=K):K=t[59];let N;t[60]!==F||t[61]!==K?(N={mutationFn:F,onSettled:K},t[60]=F,t[61]=K,t[62]=N):N=t[62];const z=R(N);let C;return t[63]!==y||t[64]!==b||t[65]!==x||t[66]!==L||t[67]!==z||t[68]!==$?(C={create:y,update:$,remove:x,removeMany:L,link:b,rerun:z},t[63]=y,t[64]=b,t[65]=x,t[66]=L,t[67]=z,t[68]=$,t[69]=C):C=t[69],C}function it(t){return t.status==="rejected"}export{gt as R,nt as a,yt as b,At as c,It as d,St as e,Tt as f,Dt as g,Et as h,ht as r,ft as s,mt as t,ot as u};
|