decocms 4.518.0 → 4.518.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/{ActiveShapeUtils-DC4ySNWR.js → ActiveShapeUtils-Bis8M8cE.js} +1 -1
- package/dist/client/assets/{AlertCircle-DgnxHqxe.js → AlertCircle-CF7oV00-.js} +1 -1
- package/dist/client/assets/{AreaChart-Ccsbdjec.js → AreaChart-rRgwbDdY.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BJ1448l4.js → ArrowLeft-BYRX2oWU.js} +1 -1
- package/dist/client/assets/{ArrowUp-723TVuFG.js → ArrowUp-C-Wi5Wp-.js} +1 -1
- package/dist/client/assets/{BarChart-BdOKvWnK.js → BarChart-B-Yzzi8V.js} +1 -1
- package/dist/client/assets/{Building02-DU823ZCw.js → Building02-BTo5ALb8.js} +1 -1
- package/dist/client/assets/{CartesianChart-3-g5kX2i.js → CartesianChart-D4q-R38l.js} +1 -1
- package/dist/client/assets/{CategoricalChart-CinaMpxG.js → CategoricalChart-DTvqZVLo.js} +1 -1
- package/dist/client/assets/{CheckCircle-C7csYE-y.js → CheckCircle-B7DLXg5D.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-B0Z7parR.js → ChevronSelectorVertical-ByVW2vd8.js} +1 -1
- package/dist/client/assets/{ChevronUp-DiTVmUiH.js → ChevronUp-i4o2LTaN.js} +1 -1
- package/dist/client/assets/{Copy01-DRNuKy-h.js → Copy01-Ck9G4OUr.js} +1 -1
- package/dist/client/assets/{CreditCard01-C3f2i_qY.js → CreditCard01-DBL8NXSk.js} +1 -1
- package/dist/client/assets/{DotsVertical-eX97dPc6.js → DotsVertical-DGS_x5nz.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-CCb5UZ88.js → ErrorBarContext-ClwVJba6.js} +1 -1
- package/dist/client/assets/{Globe04-ByvV2bPX.js → Globe04-lKXBAfc3.js} +1 -1
- package/dist/client/assets/{Image01-QuVxFosz.js → Image01-Cwrowq3c.js} +1 -1
- package/dist/client/assets/{Key01-C-QXsN23.js → Key01-CEbPGYnm.js} +1 -1
- package/dist/client/assets/{Link01-CbpFxbNY.js → Link01-DXqb71Uu.js} +1 -1
- package/dist/client/assets/{LinkBroken01-DDgMbBWJ.js → LinkBroken01-DhWTb9MO.js} +1 -1
- package/dist/client/assets/{Minus-DnJ8wbLv.js → Minus-C9yYSfDR.js} +1 -1
- package/dist/client/assets/{Monitor01-DD5_JCl8.js → Monitor01-BL3DAm_1.js} +1 -1
- package/dist/client/assets/{Play-BgEaB30r.js → Play-CZ7QKkqf.js} +1 -1
- package/dist/client/assets/{Plus-BnqPSlPj.js → Plus-BRxUqR_F.js} +1 -1
- package/dist/client/assets/{ReferenceLine-PgVE-Dmr.js → ReferenceLine-D1hjyX4I.js} +1 -1
- package/dist/client/assets/{SearchMd-GQAKwnQD.js → SearchMd-DiO3q0AT.js} +1 -1
- package/dist/client/assets/{Sector-DG1U_Qdd.js → Sector-XuiRQ9ct.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-DVHnZchK.js → ShoppingBag01-B4aQ0-ny.js} +1 -1
- package/dist/client/assets/{Sun-Ct5gftPt.js → Sun-DqiY7Z2B.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-_kdH1ete.js → SwitchHorizontal01-BbdJtypW.js} +1 -1
- package/dist/client/assets/{Tool01-rTZNmFct.js → Tool01-C0vFHYhV.js} +1 -1
- package/dist/client/assets/{Trash01-TPK4gSsp.js → Trash01-bhcUMroB.js} +1 -1
- package/dist/client/assets/{Upload01-D6tRQTgc.js → Upload01-BwEuXdMa.js} +1 -1
- package/dist/client/assets/{User01-1q78INo2.js → User01-DSs11bSF.js} +1 -1
- package/dist/client/assets/{UserSquare-B_yRFcN6.js → UserSquare-DXYtKMfd.js} +1 -1
- package/dist/client/assets/{Users01-D5MhP5r0.js → Users01-CTqd0ZAH.js} +1 -1
- package/dist/client/assets/{XClose-DOXmYMF_.js → XClose-CxYwKo3k.js} +1 -1
- package/dist/client/assets/{ZoomOut-DLICjI1h.js → ZoomOut-D-Ww048N.js} +1 -1
- package/dist/client/assets/{access-gate-p2OBWc28.js → access-gate-Bq22oyfg.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BluC5xOJ.js → add-connection-dialog-CQYwaYCv.js} +1 -1
- package/dist/client/assets/agent-analytics-B-zaohtV.js +1 -0
- package/dist/client/assets/agent-app-BbV2xIu_.js +1 -0
- package/dist/client/assets/{agent-assets-CsYWD2CR.js → agent-assets-4YMODB__.js} +1 -1
- package/dist/client/assets/{agent-automation-J7szToQ3.js → agent-automation-CmK6_mc6.js} +1 -1
- package/dist/client/assets/{agent-automations-tGwSufFx.js → agent-automations-BCX_o1aB.js} +1 -1
- package/dist/client/assets/agent-calendar-Ddf3r2JM.js +1 -0
- package/dist/client/assets/{agent-connect-sources-Bf7YpJtB.js → agent-connect-sources-Bxy4Jo7k.js} +1 -1
- package/dist/client/assets/agent-deck-UP8oQtvT.js +1 -0
- package/dist/client/assets/{agent-e2e-B01kqUsN.js → agent-e2e-BdqM7Rx1.js} +1 -1
- package/dist/client/assets/agent-experiments-CrVBOIKR.js +1 -0
- package/dist/client/assets/{agent-file-_hkGq1Y2.js → agent-file-Cb4leotK.js} +1 -1
- package/dist/client/assets/{agent-hosting-8jYjdLhJ.js → agent-hosting-yUCKeG5I.js} +1 -1
- package/dist/client/assets/{agent-icon-g2PIrjzs.js → agent-icon-CCDPFoN-.js} +1 -1
- package/dist/client/assets/agent-library-DMqKWgMi.js +1 -0
- package/dist/client/assets/agent-library-file-DOe-l166.js +1 -0
- package/dist/client/assets/{agent-monitor-Dtdyok8Z.js → agent-monitor-DpSfxETg.js} +1 -1
- package/dist/client/assets/{agent-overview-uVNzU6d3.js → agent-overview-D27q04-k.js} +1 -1
- package/dist/client/assets/{agent-releases-DVFEJ-Ad.js → agent-releases-DhOHbzAx.js} +1 -1
- package/dist/client/assets/agent-settings-D_kjSJft.js +1 -0
- package/dist/client/assets/{agent-site-editor-DI9lfD7X.js → agent-site-editor-CoubOLH6.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-CdfJCg4-.js +2 -0
- package/dist/client/assets/agent-site-editor-content-C-o-blM5.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-D1F79zUW.js +1 -0
- package/dist/client/assets/agent-view-PuW3-X6q.js +1 -0
- package/dist/client/assets/{agent-view-guard-Bhzmxyux.js → agent-view-guard-BIS7z4mW.js} +1 -1
- package/dist/client/assets/{agents-list-CbFcTa4A.js → agents-list-CpVGk57l.js} +1 -1
- package/dist/client/assets/{ai-providers-Da7yjmwG.js → ai-providers-C8dIcjWL.js} +1 -1
- package/dist/client/assets/{alert-kpgdNVxk.js → alert-CmByshZi.js} +1 -1
- package/dist/client/assets/{alert-dialog-KKnJELoX.js → alert-dialog-BcRtAren.js} +1 -1
- package/dist/client/assets/{analytics-sections-DlComRmC.js → analytics-sections-CTEkK2Tf.js} +1 -1
- package/dist/client/assets/{analytics-tab-B_HbOlqF.js → analytics-tab-DPVT4KOA.js} +1 -1
- package/dist/client/assets/api-keys-CNy2dZat.js +1 -0
- package/dist/client/assets/{api-keys-DNrkQCkt.js → api-keys-DYTxKYWP.js} +1 -1
- package/dist/client/assets/{app-editor-CKdeak5r.js → app-editor-C1ZA1u8T.js} +1 -1
- package/dist/client/assets/{asset-utils-CYyNDrFK.js → asset-utils-DIN0M3zp.js} +1 -1
- package/dist/client/assets/{auth-catchall-BS8FAipd.js → auth-catchall-vhsgYqnn.js} +1 -1
- package/dist/client/assets/{auth-entry-34SQAdx9.js → auth-entry-C6zNerIy.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DF-Z-sUB.js → auth-split-layout-DKwsje6s.js} +1 -1
- package/dist/client/assets/{auth-DHZfBLZ5.js → auth-vu0NBiVX.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CbgraxNg.js → authenticate-and-persist-oauth-Dj1wDkpb.js} +1 -1
- package/dist/client/assets/{automation-list-row-DtCSZcdc.js → automation-list-row-DucKF7kG.js} +1 -1
- package/dist/client/assets/{automation-runs-Lelpmww0.js → automation-runs-Ui7o3JfN.js} +1 -1
- package/dist/client/assets/{automations-CV4vMVkc.js → automations-CmK0evd4.js} +1 -1
- package/dist/client/assets/{autosend-Cwww7_9j.js → autosend-ClHP6mj3.js} +1 -1
- package/dist/client/assets/{avatar-BRRGslVN.js → avatar-BfW8_V1B.js} +1 -1
- package/dist/client/assets/{badge-DmeqGssZ.js → badge-CqxA0I5-.js} +1 -1
- package/dist/client/assets/{block-document-DtA_3M8z.js → block-document-l9rZniOP.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context--o78Y3yp.js → blocks-preview-workspace-context-DIzgwExA.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-Dps89GrH.js → blocks-tab-states-D014yZyw.js} +1 -1
- package/dist/client/assets/{blog-schema-CEYO8j-N.js → blog-schema-p025Q_3k.js} +1 -1
- package/dist/client/assets/{buckets-CXMlDLcD.js → buckets-C4799eWK.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-C7S9lWPM.js → build-improve-prompt-doc-C9nuC795.js} +1 -1
- package/dist/client/assets/{calendar-B6BpOXfC.js → calendar-C7UsyFmW.js} +1 -1
- package/dist/client/assets/{campaigns-view-DtQvcOC6.js → campaigns-view-Cz4ACJMm.js} +1 -1
- package/dist/client/assets/{capability-load-error-CDC4LjDf.js → capability-load-error-rgxsCr8U.js} +1 -1
- package/dist/client/assets/{category-editor-BvoAtPRs.js → category-editor-CldKargp.js} +1 -1
- package/dist/client/assets/{chart-CTinHp-8.js → chart-7lusH4mk.js} +1 -1
- package/dist/client/assets/{chat-context-DLezfYEa.js → chat-context-DaG-xhpe.js} +1 -1
- package/dist/client/assets/{chat-draft-BlRnwK9v.js → chat-draft-B4qXFQ20.js} +1 -1
- package/dist/client/assets/{checkbox-BlB_jfat.js → checkbox-k3S7hbYo.js} +1 -1
- package/dist/client/assets/{choose-editor-DHZGPvHu.js → choose-editor-DhoxAjmj.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DFaLHvgO.js → cli-auth-success-9cwHK6DP.js} +1 -1
- package/dist/client/assets/{client-icons-CpqRIiQr.js → client-icons-XJM50Gvn.js} +1 -1
- package/dist/client/assets/cms-settings-editor-VytgeION.js +1 -0
- package/dist/client/assets/{collapsible-DZTt-UAc.js → collapsible-CCUbGddy.js} +1 -1
- package/dist/client/assets/{collection-detail-BjUkXIkv.js → collection-detail-BQphYH0i.js} +1 -1
- package/dist/client/assets/{collection-display-button-Dmr1DpXh.js → collection-display-button-DtypHbWr.js} +1 -1
- package/dist/client/assets/{collection-search-DcBOG84t.js → collection-search-DFZiZHgj.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CBLUEZ5z.js → collection-table-wrapper-D5vvhE9_.js} +1 -1
- package/dist/client/assets/{collection-tabs-D5lfCRgo.js → collection-tabs-5oBppmJp.js} +1 -1
- package/dist/client/assets/{column-rules-B3eVnEiY.js → column-rules-DikbPDpl.js} +1 -1
- package/dist/client/assets/{combobox-CVTULN6N.js → combobox--wUI1bJn.js} +1 -1
- package/dist/client/assets/{command-R1e1yMQ9.js → command-A6J0_nSj.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-hGQWfzwk.js → companion-mcps-section-DHW4_WEu.js} +1 -1
- package/dist/client/assets/{config-BWrcU7H3.js → config-0cyLL49J.js} +1 -1
- package/dist/client/assets/{connect-CNN0l2XT.js → connect-Bi8fTNRc.js} +1 -1
- package/dist/client/assets/{connect-layout-DiWD8YTg.js → connect-layout-BXupI1uo.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-xgaD8LgG.js → connect-source-dialog-DUESoily.js} +1 -1
- package/dist/client/assets/{connection-WJRbuDz1.js → connection-DP0Tkqpu.js} +1 -1
- package/dist/client/assets/{connection-card-DnICQFn9.js → connection-card-SGeLl-3V.js} +1 -1
- package/dist/client/assets/{connection-detail-C0OJOuef.js → connection-detail-8iT2pzkA.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CBYCAzPl.js → connection-form-helpers-5dAreg1i.js} +1 -1
- package/dist/client/assets/{connections-DjwbhWNZ.js → connections-Ba0FzDee.js} +1 -1
- package/dist/client/assets/{content-tab-CAJ559-P.js → content-tab-Co7UZ0ue.js} +3 -3
- package/dist/client/assets/{context-BkZJrbqd.js → context-DSH71GyO.js} +1 -1
- package/dist/client/assets/{context-menu-B7wqDsW2.js → context-menu-m7JMy9Ts.js} +1 -1
- package/dist/client/assets/{context-shell-DkaK_BOn.js → context-shell-CHo3-a1U.js} +3 -3
- package/dist/client/assets/{core.esm-DHAYYfZu.js → core.esm-BT3eS5hh.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-u0Ud2kaY.js → create-organization-dialog-t8CuAC-D.js} +1 -1
- package/dist/client/assets/{daily-pulse-DRJB1hcS.js → daily-pulse-EoXIBNAG.js} +1 -1
- package/dist/client/assets/{discover-gZu3Sfan.js → discover-r5fXEWQj.js} +1 -1
- package/dist/client/assets/{domain-settings-USbT8NUs.js → domain-settings-Zd079_oe.js} +1 -1
- package/dist/client/assets/{drawer-C9bfrQZ2.js → drawer-BfInv3z-.js} +1 -1
- package/dist/client/assets/{editor-4LyrkCqm.js → editor-CpWj2GSL.js} +1 -1
- package/dist/client/assets/{editor-classes-_dczAbCq.js → editor-classes-5vsxGGPA.js} +1 -1
- package/dist/client/assets/{empty-state-4Hlytpdt.js → empty-state-BThdzdI0.js} +1 -1
- package/dist/client/assets/{empty-state-_a1QMwjl.js → empty-state-C97rGNTx.js} +1 -1
- package/dist/client/assets/{experiments-tab-DdHl8yk7.js → experiments-tab-BQyQ_6Nt.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-C9wWsYd4.js → experiments-tab-choice-CJxPrnzq.js} +1 -1
- package/dist/client/assets/{extract-connection-data-mbA-zNaE.js → extract-connection-data-BJcueAXf.js} +1 -1
- package/dist/client/assets/{feature-gate-iJnsMeBr.js → feature-gate-DOUh8nVg.js} +1 -1
- package/dist/client/assets/{feature-paywall-DcguOiJA.js → feature-paywall-skggPdmN.js} +1 -1
- package/dist/client/assets/{file-explorer-B_iKC9bp.js → file-explorer-BB5wuYW2.js} +1 -1
- package/dist/client/assets/{file-preview-Dy07kmgf.js → file-preview-DYLPzEi6.js} +1 -1
- package/dist/client/assets/{file-share-button-DOM1SplI.js → file-share-button-B1svbxuR.js} +1 -1
- package/dist/client/assets/{file-type-icon-CP6Bm0Pm.js → file-type-icon-Dh-YpP4t.js} +1 -1
- package/dist/client/assets/{folder-icon-D_8O1LWU.js → folder-icon-CPXfYDTX.js} +1 -1
- package/dist/client/assets/{form-B2fhil9l.js → form-Diz2j79C.js} +1 -1
- package/dist/client/assets/{general-BE0anzP1.js → general-5pQPx87d.js} +1 -1
- package/dist/client/assets/{home-Bb5YZQHS.js → home-Dnlsm-wz.js} +1 -1
- package/dist/client/assets/{icon-button-BQwa115u.js → icon-button-DuuXKRCk.js} +1 -1
- package/dist/client/assets/{index-Ccma-e_l.js → index-5O453B2L.js} +1 -1
- package/dist/client/assets/index-BMri_gPt.js +1 -0
- package/dist/client/assets/{index-B4yeJC5N.js → index-Bpjyo8cb.js} +1 -1
- package/dist/client/assets/{index-DXMlJvYf.js → index-BvwkkTca.js} +8 -8
- package/dist/client/assets/{index-Cs4qaYPX.js → index-Bw7ZdG0V.js} +1 -1
- package/dist/client/assets/{index-R_qB4INp.js → index-CH_rHFJ7.js} +1 -1
- package/dist/client/assets/{index-CeLGzS5y.js → index-CjCEGRSu.js} +1 -1
- package/dist/client/assets/{index-rKWXOhdZ.js → index-CtJ5bSic.js} +1 -1
- package/dist/client/assets/{index-CYHGIatu.js → index-D2_QRuAQ.js} +1 -1
- package/dist/client/assets/{index-CXWqnDP7.js → index-DPyR1fyZ.js} +1 -1
- package/dist/client/assets/{index-D2MFYEzD.js → index-DY9jv8u5.js} +37 -37
- package/dist/client/assets/{index-DiVZA6vr.js → index-fElQwNzQ.js} +1 -1
- package/dist/client/assets/{index-BWgOKGMR.js → index-hWaEVFzi.js} +1 -1
- package/dist/client/assets/{index-redirect-D2LQ3n9D.js → index-redirect-BF2Ze6CX.js} +1 -1
- package/dist/client/assets/{index-DU8BFhZD.js → index-u06bTyUt.js} +1 -1
- package/dist/client/assets/{index-CK40JGB6.js → index-vOiCoekF.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CaSjeDsE.js → infiniteQueryObserver-Glyohd4p.js} +1 -1
- package/dist/client/assets/{infra-billing-_cCsUnUO.js → infra-billing-Bd2bFoZ5.js} +1 -1
- package/dist/client/assets/{input-D43D11gI.js → input-Ca18CK1P.js} +1 -1
- package/dist/client/assets/{input-D9iDAvwy.js → input-F0XP3M77.js} +3 -3
- package/dist/client/assets/{integration-icon-CqbOWyvX.js → integration-icon-BZ0SYBCb.js} +1 -1
- package/dist/client/assets/{jira-icon-Y_2uACKb.js → jira-icon-66RPgyoE.js} +1 -1
- package/dist/client/assets/{label-3hTmrxoy.js → label-CUbZuKc3.js} +1 -1
- package/dist/client/assets/{layout-EYuYXIPk.js → layout-Cedqx0JP.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-Y0g29rl5.js → legacy-agents-deep-D41zNkt6.js} +1 -1
- package/dist/client/assets/legacy-main-redirect-B7bd3WDG.js +1 -0
- package/dist/client/assets/library-D71H_oBI.js +1 -0
- package/dist/client/assets/{login-DTF43M9h.js → login-BEUSAD5h.js} +1 -1
- package/dist/client/assets/{markdown-BeKN4MPt.js → markdown-CQTrkEJG.js} +3 -3
- package/dist/client/assets/{mcp-app-renderer-DcbWj_cd.js → mcp-app-renderer-CfeFa2D0.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BVLnM3ir.js → mcp-oauth-DqI-dLnK.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DQ__DCEs.js → mcp-oauth-dZFQnVjg.js} +1 -1
- package/dist/client/assets/{members-DdYed_-G.js → members-D8letp2p.js} +1 -1
- package/dist/client/assets/{memory-CbDGJpdj.js → memory-C9mu7Zkb.js} +1 -1
- package/dist/client/assets/{mini-report-page-I5w2A9ue.js → mini-report-page-JqpGP2GL.js} +1 -1
- package/dist/client/assets/{mock-board-D64wFJ9x.js → mock-board-BGHy2qG4.js} +3 -3
- package/dist/client/assets/{monaco-editor-DEU78sxw.js → monaco-editor-nJc5wgpu.js} +1 -1
- package/dist/client/assets/{monitoring-Bklr39Mh.js → monitoring-BtZh6NEX.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BLFmMtG4.js → monitoring-stats-row-BAFX8tUf.js} +1 -1
- package/dist/client/assets/{multi-select-DxNv8sxt.js → multi-select-DpaHzZAz.js} +1 -1
- package/dist/client/assets/{mustache-Cm6mC1mo.js → mustache-CewpKCP1.js} +1 -1
- package/dist/client/assets/{named-rule-uses-BBN_5zyZ.js → named-rule-uses-939Puzgt.js} +1 -1
- package/dist/client/assets/{named-rule-view-Dgj56LCZ.js → named-rule-view-CML2JnRp.js} +1 -1
- package/dist/client/assets/{new-project-dialog-qMTAvOP0.js → new-project-dialog-BDUYA1Q9.js} +1 -1
- package/dist/client/assets/{oauth-callback-DzKW1jLM.js → oauth-callback-ClogQ-NW.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BhTg9J9_.js → oauth-callback-ai-provider-aAWOChDT.js} +1 -1
- package/dist/client/assets/{onboarding-CcHHvf_v.js → onboarding-DkM2lBLt.js} +1 -1
- package/dist/client/assets/{openai-conversation-X6iReX5A.js → openai-conversation-CnNyoZHy.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-Wa4vMG32.js → optimistic-project-sidebar-views-Dd9HCPLE.js} +1 -1
- package/dist/client/assets/{order-monitor-day-d8yh4cv8.js → order-monitor-day-D7yGjq7b.js} +1 -1
- package/dist/client/assets/{organization-choice-DKOeafiU.js → organization-choice-CVq2K-mi.js} +1 -1
- package/dist/client/assets/{orgs-CReR2HvS.js → orgs-riRdPSVS.js} +1 -1
- package/dist/client/assets/{page-seo-form-BTZBPUqn.js → page-seo-form-DHiOVvvv.js} +1 -1
- package/dist/client/assets/{pair-DSps2zoM.js → pair-BiwOJOFx.js} +1 -1
- package/dist/client/assets/{parse-sections-Bc_lvOtq.js → parse-sections-Ce8e3CyM.js} +1 -1
- package/dist/client/assets/{plan-CxnMa3En.js → plan-Cpl6bs6l.js} +1 -1
- package/dist/client/assets/{plan-ladder-7wUcVwfI.js → plan-ladder-DJwAssQD.js} +1 -1
- package/dist/client/assets/{popover-Dm_x8CV9.js → popover-B1ABR0kS.js} +1 -1
- package/dist/client/assets/{post-calendar-BtFE-61n.js → post-calendar-CtSEncUE.js} +1 -1
- package/dist/client/assets/{post-editor-QChnOq6Y.js → post-editor-Cxxxfb0r.js} +1 -1
- package/dist/client/assets/{preview-content-BUlAqj-X.js → preview-content-ULOD_UZt.js} +1 -1
- package/dist/client/assets/{preview-dialog-39V6ZO2Y.js → preview-dialog-CZYisvNu.js} +1 -1
- package/dist/client/assets/{preview-panel-BvoYfTNF.js → preview-panel-ItJi6Jc0.js} +1 -1
- package/dist/client/assets/{preview-tab-jmFSMM-R.js → preview-tab-B6Q-8P-_.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-iaXbdjia.js → product-picker-dialog-BHrHoQQK.js} +1 -1
- package/dist/client/assets/{profile-IgWNvITK.js → profile-B6Cd5Dxw.js} +1 -1
- package/dist/client/assets/{project-app-view-Bc-wof7y.js → project-app-view-B1-HxYgX.js} +1 -1
- package/dist/client/assets/{project-apps-DVzn0z1g.js → project-apps-Dler5z99.js} +1 -1
- package/dist/client/assets/{project-feed-BIwmxSQY.js → project-feed-BwWFdPBj.js} +1 -1
- package/dist/client/assets/{project-icon-CJmvnLdz.js → project-icon-BtGD--7Z.js} +1 -1
- package/dist/client/assets/project-reports-DigBj5UN.js +1 -0
- package/dist/client/assets/project-tasks-ckZ9YIhp.js +1 -0
- package/dist/client/assets/{projects-D8Cbhxnj.js → projects-BbyUgZdk.js} +1 -1
- package/dist/client/assets/{projects-empty-state-CmtOjsbv.js → projects-empty-state-cl5VGT1T.js} +1 -1
- package/dist/client/assets/{prompts-BFb-SeSC.js → prompts-C7IgVGhQ.js} +1 -1
- package/dist/client/assets/record-editor-DulCdbwX.js +1 -0
- package/dist/client/assets/{redirect-editor-XmMaGVJV.js → redirect-editor-DGmg8IhI.js} +1 -1
- package/dist/client/assets/{releases-api-AYZ93qlv.js → releases-api-CS8wgmr5.js} +1 -1
- package/dist/client/assets/reports-ChrL-50F.js +1 -0
- package/dist/client/assets/{reports-AyOb4hhI.js → reports-J6WeamZr.js} +1 -1
- package/dist/client/assets/{reports-onboarding-BDPMVaDo.js → reports-onboarding-BskSIDus.js} +1 -1
- package/dist/client/assets/{reports-tab-D2iADtiN.js → reports-tab-a3KJftGt.js} +2 -2
- package/dist/client/assets/repositories-BS-pBlSH.js +1 -0
- package/dist/client/assets/{repositories-BNDNB0vE.js → repositories-BZocQhoR.js} +1 -1
- package/dist/client/assets/{repository-binding-4nTgXz1S.js → repository-binding-DEE5HjOP.js} +1 -1
- package/dist/client/assets/{repository-import-picker-De4sf2Gs.js → repository-import-picker-WAot3Ghn.js} +1 -1
- package/dist/client/assets/{repository-picker-HOHNvmaE.js → repository-picker-DKd6y_Vd.js} +1 -1
- package/dist/client/assets/{require-capability-ChTCz2WH.js → require-capability-BdR5kRbu.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BZllo6Io.js → required-auth-layout-CXS5DXAp.js} +1 -1
- package/dist/client/assets/{reset-password-Ui3G6CJw.js → reset-password-Br9V0wHS.js} +1 -1
- package/dist/client/assets/{resizable-DAXTAODq.js → resizable-CkWJ6g0G.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-CAixh6_W.js → resolve-tab-icon-BXRYZg2i.js} +1 -1
- package/dist/client/assets/{review-settings-BDP4bMe5.js → review-settings-CfpCP4zo.js} +1 -1
- package/dist/client/assets/{roles-Clx4HYW_.js → roles-D-ySNiDm.js} +1 -1
- package/dist/client/assets/{route-CaI6hSyT.js → route-Bor9ph6H.js} +1 -1
- package/dist/client/assets/{route-B9jYymiu.js → route-DIJ9is23.js} +1 -1
- package/dist/client/assets/route-DTfdE-p1.js +1 -0
- package/dist/client/assets/{runnable-block-editor-LQjhwiX1.js → runnable-block-editor-D1duQp0J.js} +3 -3
- package/dist/client/assets/{sandbox-lifecycle-context-CJodiAqU.js → sandbox-lifecycle-context-DJrMSxNE.js} +1 -1
- package/dist/client/assets/{schema-DrNvzI26.js → schema-BXxpoJF8.js} +1 -1
- package/dist/client/assets/{schema-xPkTs0YZ.js → schema-BiVd-UM7.js} +1 -1
- package/dist/client/assets/{scroll-area-BBBDJLpH.js → scroll-area-DdvxCYsk.js} +1 -1
- package/dist/client/assets/{search-input-DSx8LWNe.js → search-input-UGzUEySU.js} +1 -1
- package/dist/client/assets/{search-toggle-B9X5GBEJ.js → search-toggle-09QkRcdu.js} +1 -1
- package/dist/client/assets/{secret-ciphertext-qv17emf3.js → secret-ciphertext-D7Z8GkTt.js} +1 -1
- package/dist/client/assets/{secret-picker-DBs-gr5P.js → secret-picker-jW2RoOXq.js} +1 -1
- package/dist/client/assets/{secrets-5nLK_pSH.js → secrets--oDOIL-g.js} +1 -1
- package/dist/client/assets/{sections-ALAbnAYY.js → sections-Cktygxsr.js} +1 -1
- package/dist/client/assets/{sections-editor-DVqxZTWF.js → sections-editor-Ykrd9ksj.js} +1 -1
- package/dist/client/assets/{select-C9_0SSgH.js → select-C48ly-p-.js} +1 -1
- package/dist/client/assets/{select-model-BaxH4IRV.js → select-model-qC-ddNWu.js} +1 -1
- package/dist/client/assets/{seo-editor-Cd-ANp55.js → seo-editor-vkCR941s.js} +1 -1
- package/dist/client/assets/{separator-DXuISWBW.js → separator-CfwhkXab.js} +1 -1
- package/dist/client/assets/settings-tab-BR68FSDQ.js +1 -0
- package/dist/client/assets/{sheet-BQCLSAhw.js → sheet-C78dW_OW.js} +1 -1
- package/dist/client/assets/{shell-layout-CnXya3zZ.js → shell-layout-7jtYUd9L.js} +1 -1
- package/dist/client/assets/{site-draft-actions-BG_Fzxj9.js → site-draft-actions-DyZ1f4ik.js} +1 -1
- package/dist/client/assets/site-draft-view-BRWWuiN5.js +2 -0
- package/dist/client/assets/site-editor-JG7QILYD.js +1 -0
- package/dist/client/assets/{site-editor-toast-BKVRfpA8.js → site-editor-toast-C_UZBEd9.js} +1 -1
- package/dist/client/assets/{skills-mFhfnuy4.js → skills-CHltBKqG.js} +1 -1
- package/dist/client/assets/{slider-DTKLr6aL.js → slider-DueO9EFe.js} +1 -1
- package/dist/client/assets/{sortable.esm-D2---7Ab.js → sortable.esm-D411R8sQ.js} +1 -1
- package/dist/client/assets/{sso-DrhiuaNt.js → sso-C7rH2Jsc.js} +1 -1
- package/dist/client/assets/{suggestion-B0A7rwRG.js → suggestion-_sJX1Xs_.js} +1 -1
- package/dist/client/assets/{switch-CESJ2RZK.js → switch-Wb17Bg4i.js} +1 -1
- package/dist/client/assets/{symbol-CYXY7_SE.js → symbol-CN-EQDYU.js} +1 -1
- package/dist/client/assets/{synced-repos--pWS_C_z.js → synced-repos-BRIUeky9.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-Cjt9sANI.js → tab-icon-glyph-BeHT1AU_.js} +1 -1
- package/dist/client/assets/{table-BkZK8rXZ.js → table-ChqbkXkJ.js} +1 -1
- package/dist/client/assets/{tabs-B6EQUSl_.js → tabs-D-bShRzz.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-Dodx9W4w.js → task-assignee-avatar-Db7T5j33.js} +1 -1
- package/dist/client/assets/{task-board-6nf7vbPi.js → task-board-NNGstnYy.js} +1 -1
- package/dist/client/assets/{task-route-BvbHuTGP.js → task-route-BYz8Txhc.js} +1 -1
- package/dist/client/assets/{task-status-GUWtXwyC.js → task-status-BtnjgBne.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-BXSTC1m2.js → taskboard-analytics-BiCEJijC.js} +1 -1
- package/dist/client/assets/tasks-CtzEjcDR.js +1 -0
- package/dist/client/assets/{tasks-DEvPbHif.js → tasks-DscpmhWw.js} +1 -1
- package/dist/client/assets/{textarea-DG3FcnmS.js → textarea-DXNX9E30.js} +1 -1
- package/dist/client/assets/{thread-analytics-BUqostwA.js → thread-analytics-BxM1u9ID.js} +1 -1
- package/dist/client/assets/{thread-intent-Ds79TVrW.js → thread-intent-BYXYhdV9.js} +1 -1
- package/dist/client/assets/{thread-route-UuA5SD5X.js → thread-route--lOZYDN5.js} +1 -1
- package/dist/client/assets/{thread-route-Cf5GTfDW.js → thread-route-EPwO0Tp5.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-p9veuPgz.js → thread-sheet-body-Doh4mgo7.js} +1 -1
- package/dist/client/assets/{time-range-picker-Bo0eqMw9.js → time-range-picker-bYUcsgps.js} +1 -1
- package/dist/client/assets/{toggle-group-C7NFln-0.js → toggle-group-C__89QW8.js} +1 -1
- package/dist/client/assets/{tool-namespace-CMW8ZB5L.js → tool-namespace-CjWGrg1d.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BiR5ntfC.js → toolbar-icon-button-Bn0QMDhj.js} +1 -1
- package/dist/client/assets/{tooltip-bQVm_Ope.js → tooltip-CjIqGzku.js} +1 -1
- package/dist/client/assets/{tooltipContext-CMDZ9J9X.js → tooltipContext-BlJpYj2n.js} +1 -1
- package/dist/client/assets/{track-COIlf0dl.js → track-DiwbUXrF.js} +1 -1
- package/dist/client/assets/{types-DLna4BAB.js → types-2FdJQAcI.js} +1 -1
- package/dist/client/assets/{url-slug-BWq-dgp6.js → url-slug-SgUmhnUm.js} +1 -1
- package/dist/client/assets/{usage-stats-CvT3PVJT.js → usage-stats-mjbSmunu.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CzmKfSB9.js → use-ai-providers-Ui8zDguo.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-BLEqLp1R.js → use-apply-named-rule-DqZvErCE.js} +1 -1
- package/dist/client/assets/{use-automations-DHA5_uZh.js → use-automations-C1_nM6XA.js} +1 -1
- package/dist/client/assets/{use-autosave-BlShc4A-.js → use-autosave-DUE5eTHe.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-BV7ldzPe.js → use-chat-layout-state-Civkwlwx.js} +1 -1
- package/dist/client/assets/{use-clock-tick-C61VlTs_.js → use-clock-tick-BglfF91b.js} +1 -1
- package/dist/client/assets/{use-connect-companion-DxCCqNf4.js → use-connect-companion-DXE20Cit.js} +1 -1
- package/dist/client/assets/{use-connection-DTSe3r1K.js → use-connection-DjG9Ar0-.js} +1 -1
- package/dist/client/assets/{use-content-sync-Dj6rb1LD.js → use-content-sync-UBduiNPN.js} +1 -1
- package/dist/client/assets/{use-copy-Bc8JMSws.js → use-copy-D-ZUZJVe.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Dpe8iA_9.js → use-create-virtual-mcp-zb51VTao.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-BGkTB4Mm.js → use-date-fns-locale-DDB69sAw.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BhCHbQGN.js → use-debounced-autosave-sMVb1_hn.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Cm7nwcam.js → use-debounced-value-0e-te_rl.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BgLGkCcl.js → use-deco-credits-zw0Jw-tt.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-C_BQo06W.js → use-decopilot-events-BQLXDAAl.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BEv8pmzy.js → use-delete-connection-CcIoRjhU.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-Ck9xx8zz.js → use-deployment-admin-s7tGTRS4.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-B7ECUHMP.js → use-fast-preview-draft-url-B9Iu3h_6.js} +1 -1
- package/dist/client/assets/{use-file-configs-C7kUU5_U.js → use-file-configs-CDeU2xvZ.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-U2BOY_0m.js → use-inbox-feed-CFSuERBJ.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CpvqXWve.js → use-infinite-scroll-BopUCEp4.js} +1 -1
- package/dist/client/assets/{use-join-requests-ldwvbhU3.js → use-join-requests-D2jJesnC.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-BvDesOKd.js → use-main-panel-tabs--2YvNIZr.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-D6FLEMEz.js → use-mcp-auth-status-DEXNa6Oz.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Cby5XqT6.js → use-mcp-client-owuI-9F9.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DpGHOlEI.js → use-mcp-prompts-8FxF45h0.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-7EpnWJvB.js → use-mcp-tools-qNpUlzik.js} +1 -1
- package/dist/client/assets/{use-members-oF45MDF1.js → use-members-VmpszULL.js} +1 -1
- package/dist/client/assets/{use-mobile-h4hHhZkm.js → use-mobile-CqyBz8Dx.js} +1 -1
- package/dist/client/assets/{use-move-blocks-DFQHiQ1n.js → use-move-blocks-Cnva5RwQ.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DwJfjSMG.js → use-navigate-to-agent-DdSspEm5.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-CjWCFQM1.js → use-open-billing-url-CO2ZloNb.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BFDehTsp.js → use-org-auth-client-BQ7kloKy.js} +1 -1
- package/dist/client/assets/{use-org-fs-CyxFz8rw.js → use-org-fs-CvYQh_B2.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BsUWjWH7.js → use-org-repo-syncs-BtFmt_qd.js} +1 -1
- package/dist/client/assets/{use-org-sso-D5M4Sxwu.js → use-org-sso-B9p-4KH7.js} +1 -1
- package/dist/client/assets/{use-organization-roles-t12r77qZ.js → use-organization-roles-Cu4J92yA.js} +1 -1
- package/dist/client/assets/{use-organization-settings-NOur1Lvu.js → use-organization-settings-BcSo4teS.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-DxGjTjIo.js → use-panel-navigate-Co0XZmSD.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-USh7_bNt.js → use-project-native-view-presence-BRsKjCEJ.js} +1 -1
- package/dist/client/assets/{use-project-scope-CBw0FSEz.js → use-project-scope-BL3NRFI4.js} +1 -1
- package/dist/client/assets/{use-recent-apps-B2LVD6z4.js → use-recent-apps-RjVee3Pq.js} +1 -1
- package/dist/client/assets/{use-releases-x9nrIfuE.js → use-releases-vjl0fUb-.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-qSw4HttT.js → use-reports-diagnostic-B0L8y4wc.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-D98uWMd_.js → use-sandbox-events-Bjcn7PU6.js} +1 -1
- package/dist/client/assets/{use-secrets-CvBGDTuP.js → use-secrets-D9Bq6nE_.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DmjOJ885.js → use-section-preview-base-Vjigvtig.js} +1 -1
- package/dist/client/assets/{use-session-runtime-BrkTaSa6.js → use-session-runtime-C-ErRuug.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-Bijbdhqq.js → use-sidebar-collapsed-oSws9nsi.js} +1 -1
- package/dist/client/assets/{use-tags-BMQZw2TW.js → use-tags-pfCDbF9Z.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DdtvZ4ju.js → use-task-board-analytics-CopE-4zr.js} +1 -1
- package/dist/client/assets/{use-task-board-events-B5yNhg5i.js → use-task-board-events-C280-Zim.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-D9gfgNig.js → use-task-board-item-prs-x7ZAMu8t.js} +1 -1
- package/dist/client/assets/{use-task-metadata-DuF2rBuH.js → use-task-metadata-CDV-25sQ.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-B03W7aQi.js → use-thread-analytics-RcDxA37Q.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-D_k8NizM.js → use-thread-outputs-orGxjs9L.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-C3FB4QSd.js +1 -0
- package/dist/client/assets/{useQueries-BSehCBUp.js → useQueries-M-H4-oNf.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-zAujesU3.js +1 -0
- package/dist/client/assets/{users-Cej3U7P5.js → users-Yugcw0oy.js} +1 -1
- package/dist/client/assets/{utils-CkwBhBMS.js → utils-Cwt2fdOd.js} +1 -1
- package/dist/client/assets/{variant-calendar-kJB8Qi3I.js → variant-calendar-r5D0JiAM.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-XY7K79P5.js → variant-matcher-override-Dcw_0UNB.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BzmRbmfQ.js → virtual-mcp-D9lu2UG3.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CmsmQLFo.js → watch-sse-pool-BEBGvoea.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +417 -417
- package/package.json +1 -1
- package/dist/client/assets/agent-analytics-D7PovqhV.js +0 -1
- package/dist/client/assets/agent-app-DEsjnzHy.js +0 -1
- package/dist/client/assets/agent-calendar-Co4HNR_x.js +0 -1
- package/dist/client/assets/agent-deck-Bra-oqcr.js +0 -1
- package/dist/client/assets/agent-experiments-W5vP2PHw.js +0 -1
- package/dist/client/assets/agent-library-BTKjZMW2.js +0 -1
- package/dist/client/assets/agent-library-file-ClGbfS7a.js +0 -1
- package/dist/client/assets/agent-settings-DQDpgZ05.js +0 -1
- package/dist/client/assets/agent-site-editor-code-CiWALb3j.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BrDlLQPy.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-Da7g0LlC.js +0 -1
- package/dist/client/assets/agent-view-l1LYqbmp.js +0 -1
- package/dist/client/assets/api-keys-kxUaur7Y.js +0 -1
- package/dist/client/assets/cms-settings-editor-Dh-qBReE.js +0 -1
- package/dist/client/assets/index-CO7uP6ut.js +0 -1
- package/dist/client/assets/legacy-main-redirect-Pt1vRyf-.js +0 -1
- package/dist/client/assets/library-DJ51ehEw.js +0 -1
- package/dist/client/assets/project-reports-DnaQ9nW_.js +0 -1
- package/dist/client/assets/project-tasks-cwxXGcyN.js +0 -1
- package/dist/client/assets/record-editor-hWJJMGCG.js +0 -1
- package/dist/client/assets/reports-BQij5juA.js +0 -1
- package/dist/client/assets/repositories-BiNU-Xfn.js +0 -1
- package/dist/client/assets/route-BjK3qzB4.js +0 -1
- package/dist/client/assets/settings-tab-D_D1vl9t.js +0 -1
- package/dist/client/assets/site-draft-view-BYdCjysm.js +0 -2
- package/dist/client/assets/site-editor-B7kc0tIQ.js +0 -1
- package/dist/client/assets/tasks-Cd3DKWnU.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Dobhsojg.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CqyfVE9R.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as N,a2 as F,b4 as k,m as q,K as L}from"./index-
|
|
1
|
+
import{c as N,a2 as F,b4 as k,m as q,K as L}from"./index-DY9jv8u5.js";import{m as Q}from"./match-site-slug-config-D3fUJ6vX.js";import{u as Y}from"./use-file-configs-CDeU2xvZ.js";import{e as z}from"./use-organization-settings-BcSo4teS.js";import{u as G,e as J,d as H}from"./experiments-tab-choice-CJxPrnzq.js";import{r as X,a as Z}from"./site-slug-DebpOoQq.js";const P=["overview","reports","board","site-editor","assets","releases","hosting","e2e","analytics","cdn","automations","experiments","calendar"],M=["overview","reports","board","site-editor"],ee=1,U=["experiments","calendar"];function ue(t,e){if(!e)return[];const n=new Set(t??[]);return U.filter(s=>!n.has(s))}function me(t,e){if(!e)return t===null?null:t&&[...t];const n=new Set([...t??[],...U]);return P.filter(s=>n.has(s))}const te=["assets","releases","hosting","e2e","analytics","cdn","experiments","calendar"];function Pe(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 Se(t){return t?.sidebarViews!==void 0?t.sidebarViews:t?.ui?.layout?.sidebarViews}function $(t,e,n=[]){const s=new Set(t??[]);if(e!==ee)for(const r of M)s.add(r);for(const r of n)s.add(r);return P.filter(r=>s.has(r))}function se(t){return P.some(e=>e===t)}function ne(t){return te.some(e=>e===t)}function re(t,e){return{overview:t,reports:t,board:t,"site-editor":t,assets:e.assets,releases:t&&e.releases,hosting:e.hosting,e2e:e.e2e,analytics:e.analytics,cdn:e.cdn,experiments:t&&e.experiments,calendar:t&&e.calendar,automations:!0}}function pe(t,e,n){const s=re(e,n);return t?s:{...s,overview:!0,reports:!0,board:!0}}function Ve(t,e,n,s=[]){const r=new Set($(t,n,s));return P.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 P.filter(e=>t[e])}function ie(t,e,n){return!se(t)||e[t]?!1:ne(t)?t==="releases"?!n.releases:t==="calendar"?!n.calendar:!(t==="assets"?n.assets:n.siteAccess):!0}function we(t,e,n,s,r){return ie(t==="preview"||t==="content"||t==="code"?"site-editor":t,e,n)||t==="content"&&!s.includes("content")||t==="code"&&r&&!s.includes("code")}function Ee(t,e,n,s){const r=new Set($(t,s));return n?r.add(e):r.delete(e),P.filter(o=>r.has(o))}function ye(t){const e=N.c(35),{org:n}=F(),s=k(),r=z(),o=Y(),i=G(t?.id),p=i==="v8";let V;e[0]!==t?(V=X(t),e[0]=t,e[1]=V):V=e[1];const a=V,b=s.hostingEnabled===!0,S=s.monitorEnabled===!0||s.auth.localMode===!0,B=(b||S)&&!!a,O=K(n.slug,a,B);let g;e[2]!==t?(g=Z(t),e[2]=t,e[3]=g):g=e[3];const y=g,A=S&&!!y&&y!==a,W=K(n.slug,y,A),c=O.data?.owned===!0,x=A?W.data?.owned===!0:c;let l;e[4]!==o.data?.configs?(l=o.data?.configs??[],e[4]=o.data?.configs,e[5]=l):l=e[5];let w;e[6]!==a||e[7]!==l?(w=Q(l,a),e[6]=a,e[7]=l,e[8]=w):w=e[8];const _=!!w,h=p&&!!t?.metadata?.siteSlug,I=b&&c&&r.hosting,R=b&&c&&r.e2e,j=b&&c&&r.analytics;let d;e[9]!==r.monitor||e[10]!==i||e[11]!==S||e[12]!==x||e[13]!==c?(d=S&&(J(i)?c:x)&&r.monitor,e[9]=r.monitor,e[10]=i,e[11]=S,e[12]=x,e[13]=c,e[14]=d):d=e[14];let f;e[15]!==r.experiments||e[16]!==i?(f=H(r.experiments,i),e[15]=r.experiments,e[16]=i,e[17]=f):f=e[17];let u;e[18]!==i?(u=J(i),e[18]=i,e[19]=u):u=e[19];let m;e[20]!==f||e[21]!==u||e[22]!==_||e[23]!==h||e[24]!==I||e[25]!==R||e[26]!==j||e[27]!==d?(m={assets:_,releases:h,hosting:I,e2e:R,analytics:j,cdn:d,experiments:f,calendar:u},e[20]=f,e[21]=u,e[22]=_,e[23]=h,e[24]=I,e[25]=R,e[26]=j,e[27]=d,e[28]=m):m=e[28];const D=!!a&&o.isPending,v=!!t?.metadata?.siteSlug&&(i==="loading"||i==="error"),C=!!t&&i==="loading",T=B&&O.isPending||A&&W.isPending;let E;return e[29]!==m||e[30]!==D||e[31]!==v||e[32]!==C||e[33]!==T?(E={presence:m,assetsPending:D,releasesPending:v,calendarPending:C,siteAccessPending:T},e[29]=m,e[30]=D,e[31]=v,e[32]=C,e[33]=T,e[34]=E):E=e[34],E}function K(t,e,n){const s=N.c(10);let r;s[0]!==t||s[1]!==e?(r=L.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 p=await fetch(`/api/${t}/hosting/${encodeURIComponent(e??"")}/access`);return p.ok?await p.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],q(i)}export{te as P,ee as a,Pe as b,pe as c,we as d,$ as e,ie as f,ge as g,me as h,be as i,ue as o,re as p,Se as r,Ve as s,Ee as t,ye as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,f as P,u as y,d as T,ai as N,d8 as R,d7 as E,ac as _}from"./index-
|
|
1
|
+
import{c as b,f as P,u as y,d as T,ai as N,d8 as R,d7 as E,ac as _}from"./index-DY9jv8u5.js";import{e as k,c as C,p as O}from"./repository-binding-DEE5HjOP.js";const M=1;function I(e){return(e??[]).filter(R)}function V(){const e=b.c(4);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const n=P(o);let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c={strict:!1},e[1]=c):c=e[1];const t=y(c);if(n.agentId)return n.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=b.c(16),o=T();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const c=P(n),t=N(),a=k(),i=I(a),s=V(),j=i.find(r=>r.id===s)??null;let l;e[1]!==a||e[2]!==s?(l=s&&a.length>0&&!a.some(r=>r.id===s)?s:null,e[1]=a,e[2]=s,e[3]=l):l=e[3];const h=C(l),u=j??I(h?[h]:[])[0]??null;let m;e[4]!==t||e[5]!==o||e[6]!==c||e[7]!==s?(m=r=>{if(r===s&&t!==void 0)return;const v=c.org??"",S=w;if(r){E(o,{org:v,agentId:r,tabId:t==="board"||t==="reports"?t:"overview",search:S,replace:!1});return}if(t==="board"){o({to:_.tasks,params:{org:v,taskKey:void 0},search:S});return}o({to:_.home,params:{org:v},search:S})},e[4]=t,e[5]=o,e[6]=c,e[7]=s,e[8]=m):m=e[8];const f=m,d=O(u),g=i.length>=M;let p;return e[9]!==u||e[10]!==i||e[11]!==s||e[12]!==f||e[13]!==d||e[14]!==g?(p={scopeId:s,project:u,repo:d,projects:i,hasProjects:g,setScope:f},e[9]=u,e[10]=i,e[11]=s,e[12]=f,e[13]=d,e[14]=g,e[15]=p):p=e[15],p}function w(e){return{...e,virtualmcpid:void 0,thread:void 0,mainpanel:void 0}}export{V as a,I as s,B as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as m,c as f,k as I,au as A,aw as j,aj as y}from"./index-
|
|
1
|
+
import{r as m,c as f,k as I,au as A,aw as j,aj as y}from"./index-DY9jv8u5.js";import{P as N}from"./project-apps-Dler5z99.js";import{c as b}from"./repository-binding-DEE5HjOP.js";function C(n,t){const e=new Set(t);return e.size===0?n:n.filter(c=>e.has(c.connectionId))}function E(n){const t=n.metadata?.ui;return Array.isArray(t?.pinnedViews)?t.pinnedViews.filter(e=>!!e&&typeof e=="object"&&typeof e.connectionId=="string"&&typeof e.toolName=="string"&&["undefined","string"].includes(typeof e.label)&&(e.icon==null||typeof e.icon=="string")):[]}const P=4;function d(n,t){return n.app===t.app&&n.projectId===t.projectId}function R(n,t,e=P){return[t,...n.filter(c=>!d(c,t))].slice(0,e)}function w(n,t){return n.filter(e=>!d(e,t))}function h(n,t,e){const c=n.findLast(l=>l.staticData.mainView);if(!c)return null;const{mainView:r,siteEditorView:s,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:e(o.connectionId,o.toolName),projectId:a,connection:{id:o.connectionId,toolName:o.toolName}};const p=s?"site-editor":r;return t(p)?a?{app:p,projectId:a}:i?{app:p,projectId:null}:null:null}const u=[];function V(n){const t=f.c(9);let e;t[0]!==n?(e=j.recentApps(n),t[0]=n,t[1]=e):e=t[1];const[c,r]=A(e,u),s=Array.isArray(c)?c:u;let i,o;t[2]!==r?(i=p=>r(l=>R(Array.isArray(l)?l:[],p)),o=p=>r(l=>w(Array.isArray(l)?l:[],p)),t[2]=r,t[3]=i,t[4]=o):(i=t[3],o=t[4]);let a;return t[5]!==s||t[6]!==i||t[7]!==o?(a={recent:s,remember:i,forget:o},t[5]=s,t[6]=i,t[7]=o,t[8]=a):a=t[8],a}function O(){const n=f.c(1);let t;return n[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:S,structuralSharing:!0},n[0]=t):t=n[0],I(t)}function S(n){return h(n.matches,T,y)}function T(n){return n in N}function g(n){const{remember:t}=V(n),e=O(),c=b(e?.projectId),r=e?.projectId&&c?.id===e.projectId?c.title:null,s=e?.connection&&c?E(c).find(o=>o.connectionId===e.connection?.id&&o.toolName===e.connection.toolName):void 0,i=e?.connection&&{id:e.connection.id,toolName:e.connection.toolName,label:s?.label||e.connection.toolName,icon:s?.icon};m.useEffect(()=>{!e?.projectId||!r||t({app:e.app,projectId:e.projectId,projectTitle:r,...i&&{connection:i}})},[n,e?.app,e?.projectId,r,i?.label,i?.icon])}export{O as a,V as b,C as k,E as p,g as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Q,a2 as _,o as k}from"./index-
|
|
1
|
+
import{c as Q,a2 as _,o as k}from"./index-DY9jv8u5.js";import{a as E,d as P}from"./repository-binding-DEE5HjOP.js";import{r as z}from"./serial-task-queue-CGOeQgpr.js";function O(t){return(t??"").normalize("NFKD").replace(/[̀-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"user"}function F(t){return t?.name||t?.email?.split("@")[0]||void 0}function K(t){const e=O(t),s=Date.now().toString(36).split("").reverse().join("");return`${e}-${s}`}function T(t,e){return t.some(s=>s.branch===e.branch)?t:[...t,e]}function V(t,e){return t.filter(s=>s.branch!==e)}function j(t,e,s){return t.map(r=>r.branch===e?{...r,name:s}:r)}const w=["orange","violet","blue","pink","amber","teal"];function W(t){return w[t%w.length]}function G(t,e){const s=`${e} `,r=t.reduce((c,m)=>{if(!m.name.startsWith(s))return c;const n=Number(m.name.slice(s.length));return Number.isInteger(n)&&n>c?n:c},0);return`${e} ${r+1}`}const v={orange:"bg-orange-500",violet:"bg-violet-500",blue:"bg-blue-500",pink:"bg-pink-500",amber:"bg-amber-500",teal:"bg-teal-500"};function H(t){return t&&v[t]||"bg-muted-foreground"}function J(t){const e=Q.c(27),s=E(t);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={silent:!0},e[0]=r):r=e[0];const c=P(r),{org:m}=_(),n=k();let b;e[1]!==s?.metadata?.releases?(b=s?.metadata?.releases??[],e[1]=s?.metadata?.releases,e[2]=b):b=e[2];const f=b;let d;e[3]!==m||e[4]!==t?(d=a=>a[1]===m.id&&a[3]==="collection"&&a[4]==="VIRTUAL_MCP"&&a[5]===t,e[3]=m,e[4]=t,e[5]=d):d=e[5];const u=d;let p;e[6]!==u||e[7]!==n||e[8]!==f?(p=()=>{for(const[,a]of n.getQueriesData({predicate:o=>u(o.queryKey)}))if(a?.item)return a.item.metadata?.releases??[];return f},e[6]=u,e[7]=n,e[8]=f,e[9]=p):p=e[9];const $=p;let h;e[10]!==c||e[11]!==u||e[12]!==n||e[13]!==$||e[14]!==t?(h=a=>z(`vm-releases:${t}`,async()=>{const o=$(),g=a(o);if(g!==o){n.setQueriesData({predicate:l=>u(l.queryKey)},l=>l?.item?{item:{...l.item,metadata:{...l.item.metadata,releases:g}}}:l);try{await c.update.mutateAsync({id:t,data:{metadata:{releases:g}}})}catch(l){const A=l;throw n.invalidateQueries({predicate:N=>u(N.queryKey)}),A}}}),e[10]=c,e[11]=u,e[12]=n,e[13]=$,e[14]=t,e[15]=h):h=e[15];const i=h;let R;e[16]!==i?(R=a=>i(o=>T(o,a)),e[16]=i,e[17]=R):R=e[17];const D=R;let C;e[18]!==i?(C=(a,o)=>i(g=>j(g,a,o)),e[18]=i,e[19]=C):C=e[19];const S=C;let x;e[20]!==i?(x=a=>i(o=>V(o,a)),e[20]=i,e[21]=x):x=e[21];const L=x;let y;return e[22]!==D||e[23]!==L||e[24]!==f||e[25]!==S?(y={releases:f,createRelease:D,renameRelease:S,deleteRelease:L},e[22]=D,e[23]=L,e[24]=f,e[25]=S,e[26]=y):y=e[26],y}export{G as a,F as b,K as g,W as n,H as r,J as u};
|
package/dist/client/assets/{use-reports-diagnostic-qSw4HttT.js → use-reports-diagnostic-B0L8y4wc.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as N,a2 as Q,W as F,J as A,m as f,K as T,fg as L,Y as K,M}from"./index-
|
|
1
|
+
import{c as N,a2 as Q,W as F,J as A,m as f,K as T,fg as L,Y as K,M}from"./index-DY9jv8u5.js";import{m as O}from"./use-mcp-client-owuI-9F9.js";import{u as h}from"./companions-core-DzyeM-yJ.js";function D(n){return n?n.scanned_at?"ready":n.run_in_progress?"generating":"none":"none"}function U(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 Y(){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:T.reportsConnection(e.id,t),enabled:!!p,retry:!1,staleTime:6e4,queryFn:async()=>{if(!p)throw new Error("selfClient not ready");const R=await p.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:t}});return h(R)}}),m=u.data?.item??null,{data:s,isError:y}=f({...O({connectionId:t,orgId:e.id,orgSlug:e.slug}),enabled:!!m}),C=T.reportsDiagnostic(e.id,t),E=!!s;let i;n[3]!==s?(i=async()=>{if(!s)throw new Error("cdClient not ready");const R=await s.callTool({name:L,arguments:{}});return h(R).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,I=!!m;let a;n[9]!==y||n[10]!==u.isPending||n[11]!==r.isPending||n[12]!==I?(a=U({connectionQueryPending:u.isPending,hasConnection:I,cdClientFailed:y,diagnosticQueryPending:r.isPending}),n[9]=y,n[10]=u.isPending,n[11]=r.isPending,n[12]=I,n[13]=a):a=n[13];const S=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??null;let g;return n[16]!==t||n[17]!==r.isSuccess||n[18]!==c||n[19]!==_||n[20]!==P||n[21]!==a||n[22]!==S?(g={diagnostic:P,isSuccess:w,isLoading:a,siteUrl:S,host:c,connectionId:t,cdClient:_},n[16]=t,n[17]=r.isSuccess,n[18]=c,n[19]=_,n[20]=P,n[21]=a,n[22]=S,n[23]=g):g=n[23],g}function v(n){return n.state.status!=="error"&&D(n.state.data)==="generating"?b:!1}function j(n,e){return{to:K.app,params:{org:n.slug,agentId:M(n.id),connectionId:e,toolName:L},search:{}}}export{D as d,j as r,Y as u};
|
package/dist/client/assets/{use-sandbox-events-D98uWMd_.js → use-sandbox-events-Bjcn7PU6.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a2 as fe,o as de,r as s,j as he,K as k,db as G}from"./index-
|
|
1
|
+
import{a2 as fe,o as de,r as s,j as he,K as k,db as G}from"./index-DY9jv8u5.js";import{u as Ee}from"./chat-context-DaG-xhpe.js";import{b as pe}from"./sandbox-url-D3mC8qhT.js";import{a as ve}from"./repository-binding-DEE5HjOP.js";import{e as ge}from"./backoff-CrEUbyZT.js";function H(t){return t==="installing"||t==="install-failed"||t==="starting"||t==="start-failed"||t==="running"||t==="crashed"}const ye={phase:null,lifecycle:{phase:"idle"},status:{state:"running"},branch:{kind:"unknown"},notFound:!1,scripts:[],activeProcesses:[],getBuffer:()=>"",hasData:()=>!1,subscribeChunks:()=>()=>{},subscribeReload:()=>()=>{}},X=s.createContext(ye),J=16384;class Se{data="";append(r){this.data+=r,this.data.length>J&&(this.data=this.data.slice(this.data.length-J))}get(){return this.data}clear(){this.data=""}}const me=1e3,be=3e4,De=3e3,W=["lifecycle","status","tasks","scripts","branch","reload","file-changed"],z="log";function Re(t){if(!t)return null;try{return new URL("/_sandbox/events",t).href}catch{return null}}function Te(t){return t===404}async function ke(t){try{const r=await fetch(t,{headers:{Accept:"text/event-stream"},cache:"no-store",signal:AbortSignal.timeout(De)});return await r.body?.cancel().catch(()=>{}),Te(r.status)}catch{return!1}}function Pe({virtualMcpId:t,branch:r,previewUrl:h=null,enabled:C=!0,children:x}){const{org:i}=fe(),l=de(),U=Ee()?.taskId??null,[I,L]=s.useState(null),[ee,_]=s.useState({phase:"idle"}),[te,w]=s.useState({state:"running"}),[ne,P]=s.useState({kind:"unknown"}),[se,N]=s.useState(!1),[re,O]=s.useState([]),[ae,B]=s.useState([]),[,ce]=s.useState(0),E=s.useRef(new Map),A=s.useRef(new Set),b=s.useRef(new Set),K=s.useRef(null),D=Re(h),M=ve(t)?.metadata?.runtime?.selected==="deno",oe=o=>{let u=E.current.get(o);return u||(u=new Se,E.current.set(o,u)),u};s.useEffect(()=>{if(L(null),_({phase:"idle"}),w({state:"running"}),P({kind:"unknown"}),K.current=null,N(!1),O([]),B([]),E.current.clear(),!t||!r||!C)return;const o=pe({orgSlug:i.slug,virtualMcpId:t,branch:r,threadId:U??null},"events");let u=!1,p=0,R=null,v=null,g=null,d=null,f=null,T=null;const ie=e=>{try{const n=JSON.parse(e.data);L(n),n.kind!=="failed"&&(N(!1),p=0),n.kind==="ready"&&Y()}catch(n){console.warn("[vm-events] bad phase payload",n)}},q=()=>{N(!0),L(null),_({phase:"idle"}),w({state:"running"}),P({kind:"unknown"}),O([]),B([]),E.current.clear()},V=e=>{try{const n=JSON.parse(e.data);if(typeof n.data!="string")return;p=0;const c=n.data.replace(/\r?\n/g,`\r
|
|
2
2
|
`);oe(n.source).append(c);for(const a of A.current)try{a(n.source,c)}catch{}ce(a=>a+1)}catch{}},$=e=>{const n=e.type;try{const c=JSON.parse(e.data);switch(p=0,n){case"lifecycle":{const a=c;_(a.state);const y=`${i.slug}/${t}/${r}`;if(H(a.state.phase)&&!(T&&H(T))){G(l,i.id);const m=k.decofile(y);l.getQueryData(m)===void 0&&l.invalidateQueries({queryKey:m})}a.state.phase==="running"&&T!=="running"&&(G(l,i.id),l.invalidateQueries({queryKey:k.decofile(y)}),l.invalidateQueries({queryKey:k.liveMeta(i.slug,t,r)})),T=a.state.phase;const S=a.state.phase==="running"?a.state.port:null,Q=K.current;if(K.current=S,Q!==null&&S!==null&&Q!==S)for(const m of b.current)try{m()}catch{}return}case"status":w(c);return;case"tasks":{const y=c.active.map(S=>S.logName??"").filter(Boolean);B(y);return}case"scripts":O(c.scripts);return;case"branch":{const a=c.meta;P(a);return}case"reload":for(const a of b.current)try{a()}catch{}return;case"file-changed":{const{path:a}=c,y=`${i.slug}/${t}/${r}`;if(a.startsWith(".deco/")||a.includes("/.deco/")){if(!(T==="running"))return;g&&clearTimeout(g),g=setTimeout(()=>{if(g=null,l.invalidateQueries({queryKey:k.decofile(y)}),M)for(const m of b.current)try{m()}catch{}},500)}else v&&clearTimeout(v),v=setTimeout(()=>{v=null,l.invalidateQueries({queryKey:k.liveMeta(i.slug,t,r)})},1e3);return}}}catch{}};function F(){if(u)return;const e=new EventSource(o);d=e,e.onopen=()=>{},e.onerror=()=>{d===e&&e.readyState===EventSource.CLOSED&&j("studio")},e.addEventListener("phase",ie),e.addEventListener("gone",q),e.addEventListener(z,V);for(const n of W)e.addEventListener(n,$)}function Y(){if(u||!D||f)return;const e=new EventSource(D);f=e;let n=!1;e.onopen=()=>{if(u||f!==e)return;n=!0,p=0;const c=d;d=null,c?.close()},e.onerror=()=>{f===e&&e.readyState===EventSource.CLOSED&&le(e,n)},e.addEventListener(z,V);for(const c of W)e.addEventListener(c,$)}async function le(e,n){const c=D?await ke(D):!1;if(!(u||f!==e)){if(e.close(),f=null,c){q(),d||F();return}n&&j("direct")}}function j(e){if(u||R)return;const n=ge(be,me,p,2,0);p++,R=setTimeout(()=>{if(R=null,!u){if(e==="direct"){f?.close(),f=null,Y();return}d?.close(),d=null,F()}},n)}return F(),()=>{u=!0,d?.close(),f?.close(),R&&clearTimeout(R),v&&clearTimeout(v),g&&clearTimeout(g)}},[t,r,i.slug,i.id,C,U,D,l,M]);const ue={phase:I,lifecycle:ee,status:te,branch:ne,notFound:se,scripts:re,activeProcesses:ae,getBuffer:o=>E.current.get(o)?.get()??"",hasData:o=>(E.current.get(o)?.get().length??0)>0,subscribeChunks:o=>(A.current.add(o),()=>{A.current.delete(o)}),subscribeReload:o=>(b.current.add(o),()=>{b.current.delete(o)})};return he.jsx(X,{value:ue,children:x})}function Z(){return s.use(X)}function Ne(t){const{subscribeChunks:r}=Z(),h=s.useRef(t);h.current=t,s.useEffect(()=>r((i,l)=>{h.current?.(i,l)}),[r])}function Oe(t){const{subscribeReload:r}=Z(),h=s.useRef(t);h.current=t,s.useEffect(()=>r(()=>{h.current?.()}),[r])}export{Pe as S,Ne as a,Oe as b,H as i,Z as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,a2 as c,an as r,K as l,R as d,o as f,e as S}from"./index-
|
|
1
|
+
import{c as u,a2 as c,an as r,K as l,R as d,o as f,e as S}from"./index-DY9jv8u5.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{c as M,b as ee,r as b,j as i,l as te,D as re,q as se,v as oe,I as ie,s as le}from"./index-
|
|
1
|
+
import{c as M,b as ee,r as b,j as i,l as te,D as re,q as se,v as oe,I as ie,s as le}from"./index-DY9jv8u5.js";import{a as W,e as H}from"./UserSquare-DXYtKMfd.js";import{b as ne}from"./agent-icon-CCDPFoN-.js";import{i as ce}from"./SearchMd-DiO3q0AT.js";import{F as Y,G as ae,H as V}from"./runnable-block-editor-D1duQp0J.js";import{b0 as fe,ac as ue,m as de,b1 as me,G as ve}from"./parse-sections-Ce8e3CyM.js";import{d as K,r as pe}from"./section-preview-url-7zfngvgW.js";import{i as he}from"./thread-intent-BYXYhdV9.js";import{u as xe}from"./use-session-runtime-C-ErRuug.js";import{c as ge,u as we,m as Se}from"./site-editor-toast-C_UZBEd9.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 n=s.allOf.find(l=>typeof l.$ref=="string")?.$ref;if(typeof n=="string"){const l=t[n.replace("#/definitions/","")];l&&o.push(l)}}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 ze(r,e){if(!e)return;const t=fe(r,he(e));if(!t)return;const s=je(t.resolveType,e);if(!s)return;const o=ae(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,G=new Set,F=new Set;function Re(){for(const r of F)r()}function Pe(r){return G.has(r)?!0:G.size>=Ne?!1:(G.add(r),!0)}function Q(r){G.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),n=b.useRef(null),l=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(l.current=a,n.current&&(n.current.disconnect(),n.current=null),u(),!a){t.current&&(Q(e),t.current=!1,o(!1));return}queueMicrotask(()=>{if(l.current!==a)return;const w=new IntersectionObserver(m=>{if(m[0]?.isIntersecting??!1){!d()&&!f.current&&(f.current=Ie(()=>{l.current===a&&d()}));return}u(),t.current&&(Q(e),t.current=!1,o(!1))},{root:c.current.current,rootMargin:"160px 0px"});w.observe(a),n.current=w})}});return{ref:p,iframeActive:s}}function Ce(r){const e=M.c(9),{previewUrl:t,title:s,scrollRootRef:o,slotId:n}=r,{ref:l,iframeActive:f}=Te(o,n),[c,p]=b.useState(!1),u=V()?H:W;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]!==l||e[7]!==d?(a=i.jsx("div",{ref:l,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:d}),e[6]=l,e[7]=d,e[8]=a):a=e[8],a}function Ue(r){const e=M.c(3),{image:t}=r,s=V()?H:W;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 Be(r){const e=M.c(28),{entry:t,previewUrl:s,image:o,scrollRootRef:n,onSelect:l}=r,c=V()?t.isSavedBlock?ne:H:W,p=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let u;e[0]!==p?(u=te("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]!==n?(d=s?i.jsx(Ce,{previewUrl:s,title:t.title,scrollRootRef:n,slotId:t.resolveType}):i.jsx(Ue,{image:o}),e[2]=t.resolveType,e[3]=t.title,e[4]=o,e[5]=s,e[6]=n,e[7]=d):d=e[7];let a;e[8]!==t.isSavedBlock?(a=t.isSavedBlock?{color:ve}: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 h;e[15]!==t.description?(h=t.description&&i.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.description}),e[15]=t.description,e[16]=h):h=e[16];let x;e[17]!==m||e[18]!==h?(x=i.jsxs("div",{className:"min-w-0 flex-1",children:[m,h]}),e[17]=m,e[18]=h,e[19]=x):x=e[19];let g;e[20]!==w||e[21]!==x?(g=i.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[w,x]}),e[20]=w,e[21]=x,e[22]=g):g=e[22];let S;return e[23]!==l||e[24]!==u||e[25]!==d||e[26]!==g?(S=i.jsxs("button",{type:"button",onClick:l,className:u,children:[d,g]}),e[23]=l,e[24]=u,e[25]=d,e[26]=g,e[27]=S):S=e[27],S}function Fe(r){const e=M.c(51),{open:t,onOpenChange:s,meta:o,decofile:n,previewBaseUrl:l,onSelect:f}=r,c=ee(),[p,u]=b.useState(""),[d,a]=b.useState(t),w=b.useRef(null);t!==d&&(a(t),t&&u(""));let m,h,x,g,S,y,N,R,j,P,I;if(e[0]!==n||e[1]!==o||e[2]!==s||e[3]!==f||e[4]!==t||e[5]!==l||e[6]!==p||e[7]!==c){const q=t&&o&&n?ue(o,n):[],z=o?de(o):"",_=n?me(n):void 0,X=new Map;if(t&&z&&l)for(const v of q)X.set(v.resolveType,K(l,z,v.previewBlock,_));const E=p.trim().toLowerCase(),J=E?q.filter(v=>v.title.toLowerCase().includes(E)||v.resolveType.toLowerCase().includes(E)||v.description?.toLowerCase().includes(E)):q;h=re,P=t,I=s,m=se,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 B;e[19]!==c?(B=c("sectionsEditor.addSectionModal.title"),e[19]=c,e[20]=B):B=e[20];let k;e[21]!==B?(k=i.jsx(oe,{children:B}),e[21]=B,e[22]=k):k=e[22];let $;e[23]===Symbol.for("react.memo_cache_sentinel")?($=i.jsx(ce,{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(ie,{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]!==k||e[31]!==L?(j=i.jsxs(le,{className:"shrink-0 border-b px-4 py-3 text-left",children:[k,L]}),e[30]=k,e[31]=L,e[32]=j):j=e[32],S=w,y="min-h-0 flex-1 overflow-y-auto",x="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(Be,{entry:v,scrollRootRef:w,previewUrl:l?X.get(v.resolveType)??K(l,z,v.previewBlock,_):null,image:l||!o?void 0:ye(v.resolveType,o),onSelect:()=>f(v)},v.resolveType))}),e[0]=n,e[1]=o,e[2]=s,e[3]=f,e[4]=t,e[5]=l,e[6]=p,e[7]=c,e[8]=m,e[9]=h,e[10]=x,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],h=e[9],x=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]!==x||e[34]!==g?(T=i.jsx("div",{className:x,children:g}),e[33]=x,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 O;return e[46]!==h||e[47]!==U||e[48]!==P||e[49]!==I?(O=i.jsx(h,{open:P,onOpenChange:I,children:U}),e[46]=h,e[47]=U,e[48]=P,e[49]=I,e[50]=O):O=e[50],O}function We(r){const e=M.c(4),{previewServerUrl:t,runtime:s}=xe(r.virtualMcpId),{url:o}=ge(r.virtualMcpId),n=we(r.virtualMcpId,r.branch),l=s==="cms";if(Se(n))return null;if(o)return o;let f;return e[0]!==l||e[1]!==r.sandboxUrl||e[2]!==t?(f=pe({sandboxUrl:r.sandboxUrl,previewServerUrl:t,fastPreviewActive:l}),e[0]=l,e[1]=r.sandboxUrl,e[2]=t,e[3]=f):f=e[3],f}export{Fe as A,ze as g,Z as s,We as u};
|
package/dist/client/assets/{use-session-runtime-BrkTaSa6.js → use-session-runtime-C-ErRuug.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h}from"./index-
|
|
1
|
+
import{c as h}from"./index-DY9jv8u5.js";import{l as R,d as T,r as k,p as S}from"./thread-intent-BYXYhdV9.js";import{u as j}from"./chat-context-DaG-xhpe.js";import{a as w}from"./repository-binding-DEE5HjOP.js";function D(d){const t=h.c(14),u=w(d),p=j(),e=u?.metadata,o=p?.activeTask,l=o?.metadata?.runtime;let i;t[0]!==l?(i=S(l),t[0]=l,t[1]=i):i=t[1];const f=i,v=!!o&&!o.partial,m=o?.metadata;let a;t[2]!==e||t[3]!==m?(a=R(m,e),t[2]=e,t[3]=m,t[4]=a):a=t[4];const c=!!f||v&&!!u;let r;t[5]!==e?(r=T(e),t[5]=e,t[6]=r):r=t[6];let s;t[7]!==e?(s=k(e),t[7]=e,t[8]=s):s=t[8];let n;return t[9]!==a||t[10]!==c||t[11]!==r||t[12]!==s?(n={runtime:a,resolved:c,projectDefault:r,previewServerUrl:s},t[9]=a,t[10]=c,t[11]=r,t[12]=s,t[13]=n):n=t[13],n}export{D as u};
|
package/dist/client/assets/{use-sidebar-collapsed-Bijbdhqq.js → use-sidebar-collapsed-oSws9nsi.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as y,c as j,j as o,l as C,bu as A,bs as R,a4 as H,b2 as L,b as V,d as W,a2 as F}from"./index-D2MFYEzD.js";import{m as q}from"./use-chat-layout-state-BV7ldzPe.js";import{O as G}from"./agent-icon-g2PIrjzs.js";import{b as J,a as E,T as P,c as z}from"./tooltip-bQVm_Ope.js";import{T as K}from"./toolbar-icon-button-BiR5ntfC.js";import{a as Q}from"./shell-layout-CnXya3zZ.js";import{u as U}from"./use-mobile-h4hHhZkm.js";import{b as X,c as Y,S as Z,d as ee,a as te}from"./sheet-BQCLSAhw.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=U(),[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(J,{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(X,{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(G,{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(K,{"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}=Q();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,l as C,bu as A,bs as R,a4 as H,b2 as L,b as V,d as W,a2 as F}from"./index-DY9jv8u5.js";import{m as q}from"./use-chat-layout-state-Civkwlwx.js";import{O as G}from"./agent-icon-CCDPFoN-.js";import{b as J,a as E,T as P,c as z}from"./tooltip-CjIqGzku.js";import{T as K}from"./toolbar-icon-button-Bn0QMDhj.js";import{a as Q}from"./shell-layout-7jtYUd9L.js";import{u as U}from"./use-mobile-CqyBz8Dx.js";import{b as X,c as Y,S as Z,d as ee,a as te}from"./sheet-C78dW_OW.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=U(),[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(J,{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(X,{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(G,{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(K,{"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}=Q();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,a2 as f,an as y,m,o as g,e as T,K as l,t as E}from"./index-
|
|
1
|
+
import{c as u,a2 as f,an as y,m,o as g,e as T,K as l,t as E}from"./index-DY9jv8u5.js";function K(){const e=u.c(7),{locator:t}=f(),o=y();let n;e[0]!==t?(n=l.tags(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==o?(s=async()=>{const{tags:r}=await o.call("TAGS_LIST",{});return r},e[2]=o,e[3]=s):s=e[3];let a;return e[4]!==n||e[5]!==s?(a={queryKey:n,queryFn:s,staleTime:3e4},e[4]=n,e[5]=s,e[6]=a):a=e[6],m(a)}function p(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{tag:i}=await n.call("TAGS_CREATE",typeof c=="string"?{name:c}:c);return i},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:S},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function S(e){E.error(e instanceof Error?e.message:"Failed to create tag")}function C(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{await n.call("TAGS_DELETE",{tagId:c})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)}),t.invalidateQueries({queryKey:l.taskBoardItems(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:q},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function q(e){E.error(e instanceof Error?e.message:"Failed to delete tag")}function M(e){const t=u.c(10),{locator:o}=f(),n=y();let s;t[0]!==o||t[1]!==e?(s=l.memberTags(o,e),t[0]=o,t[1]=e,t[2]=s):s=t[2];let a;t[3]!==e||t[4]!==n?(a=async()=>{const{tags:i}=await n.call("MEMBER_TAGS_GET",{memberId:e});return i},t[3]=e,t[4]=n,t[5]=a):a=t[5];const r=!!e;let c;return t[6]!==s||t[7]!==a||t[8]!==r?(c={queryKey:s,queryFn:a,staleTime:3e4,enabled:r},t[6]=s,t[7]=a,t[8]=r,t[9]=c):c=t[9],m(c)}function A(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{memberId:i,tagIds:d}=c;return await n.call("MEMBER_TAGS_SET",{memberId:i,tagIds:d})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=(c,i)=>{t.invalidateQueries({queryKey:l.memberTags(o,i.memberId)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:_},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function _(e){E.error(e instanceof Error?e.message:"Failed to update member tags")}export{p as a,C as b,M as c,A as d,K as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as O,f,m as S,K as _,ap as R,a2 as i,an as l}from"./index-
|
|
1
|
+
import{c as O,f,m as S,K as _,ap as R,a2 as i,an as l}from"./index-DY9jv8u5.js";const K=["TASK_BOARD_OPERATION","TASK_BOARD_REWORK","TASK_BOARD_DELIVERY","TASK_BOARD_SPRINTS","TASK_BOARD_STUCK","TASK_BOARD_COST","TASK_BOARD_ERRORS","TASK_BOARD_TENANTS"];function B(){const t=O.c(8),o=f({strict:!1}).org??"";let e;t[0]!==o?(e=_.taskBoardAdminOrgs(o),t[0]=o,t[1]=e):e=t[1];const s=!!o;let c;t[2]!==o?(c=()=>R(o,"TASK_BOARD_ADMIN_ORG_LIST",{}),t[2]=o,t[3]=c):c=t[3];let n;return t[4]!==e||t[5]!==s||t[6]!==c?(n={queryKey:e,enabled:s,queryFn:c,staleTime:3e5},t[4]=e,t[5]=s,t[6]=c,t[7]=n):n=t[7],S(n)}function y(t,o){const e=O.c(14),{locator:s}=i(),c=l();let n;e[0]!==s||e[1]!==o.from||e[2]!==o.org||e[3]!==o.project||e[4]!==o.to||e[5]!==t?(n=_.taskBoardAnalytics(s,t,o.org??"",o.project??"",o.from,o.to),e[0]=s,e[1]=o.from,e[2]=o.org,e[3]=o.project,e[4]=o.to,e[5]=t,e[6]=n):n=e[6];let T;e[7]!==o||e[8]!==c||e[9]!==t?(T=()=>c.call(t,o),e[7]=o,e[8]=c,e[9]=t,e[10]=T):T=e[10];let A;return e[11]!==n||e[12]!==T?(A={queryKey:n,queryFn:T},e[11]=n,e[12]=T,e[13]=A):A=e[13],S(A)}function D(t,o){const e=O.c(15),{locator:s}=i(),c=l();let n;e[0]!==o||e[1]!==s||e[2]!==t.from||e[3]!==t.org||e[4]!==t.project||e[5]!==t.to?(n=_.taskBoardOperationTasks(s,t.org??"",t.project??"",t.from,t.to,o??""),e[0]=o,e[1]=s,e[2]=t.from,e[3]=t.org,e[4]=t.project,e[5]=t.to,e[6]=n):n=e[6];const T=o!==null;let A;e[7]!==o||e[8]!==t||e[9]!==c?(A=()=>c.call("TASK_BOARD_OPERATION_TASKS",{...t,drill:o??""}),e[7]=o,e[8]=t,e[9]=c,e[10]=A):A=e[10];let u;return e[11]!==n||e[12]!==T||e[13]!==A?(u={queryKey:n,enabled:T,queryFn:A},e[11]=n,e[12]=T,e[13]=A,e[14]=u):u=e[14],S(u)}export{K as A,y as a,D as b,B as u};
|
package/dist/client/assets/{use-task-board-events-B5yNhg5i.js → use-task-board-events-C280-Zim.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"./task-board-
|
|
1
|
+
import{a as m}from"./task-board-NNGstnYy.js";import{r as e}from"./index-DY9jv8u5.js";import{t as g}from"./watch-sse-pool-BEBGvoea.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,aw as _,c as h,a2 as R,an as T,o as k,m as O,K as A}from"./index-
|
|
1
|
+
import{r as y,aw as _,c as h,a2 as R,an as T,o as k,m as O,K as A}from"./index-DY9jv8u5.js";import{e as B}from"./watch-sse-pool-BEBGvoea.js";const w=()=>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,w,w)}const E=1440*60*1e3,D=40;function g(e){try{const t=window.localStorage.getItem(_.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 P(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(_.taskBoardPrs(e),JSON.stringify(L(r)))}catch{}}const v=6e4,K=2e3,N=e=>e.state===null;function q(e){const t=h.c(25),{org:s,locator:r}=R(),o=T(),l=k();let a;t[0]!==e||t[1]!==r||t[2]!==l?(a=S=>{l.setQueryData(A.taskBoardItemPrs(r,e??""),S)},t[0]=e,t[1]=r,t[2]=l,t[3]=a):a=t[3];let i;t[4]!==e||t[5]!==s.slug||t[6]!==a?(i={orgSlug:s.slug,itemId:e,onPrs:a},t[4]=e,t[5]=s.slug,t[6]=a,t[7]=i):i=t[7],C(i);let u;t[8]!==e||t[9]!==r?(u=A.taskBoardItemPrs(r,e??""),t[8]=e,t[9]=r,t[10]=u):u=t[10];const d=!!e;let c,n;t[11]!==e||t[12]!==r?(c=()=>e?P(r,e)?.data??void 0:void 0,n=()=>e?P(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{q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a2 as l,an as c,r as i,R as d,K as T}from"./index-
|
|
1
|
+
import{a2 as l,an as c,r as i,R as d,K as T}from"./index-DY9jv8u5.js";import{u as m}from"./thread-intent-BYXYhdV9.js";const p=[],S=()=>()=>{},h=()=>p;function f(t){const{org:s}=l(),r=c(),n=m(),o=i.useSyncExternalStore(n?.threads.subscribe??S,n?.threads.get??h),e=t===null?null:o.find(a=>a.id===t)??null,{data:u}=d({queryKey:T.ensureTask(s.id,t),queryFn:async()=>{if(t===null)return null;try{const{item:a}=await r.call("COLLECTION_THREADS_GET",{id:t});return a??null}catch{return null}},initialData:e&&!e.partial?e:void 0,select:a=>a?.metadata??null,staleTime:3e4});return e?.metadata??u??null}export{f as u};
|
package/dist/client/assets/{use-thread-analytics-B03W7aQi.js → use-thread-analytics-RcDxA37Q.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,m as o,f as d,r as A,K as T,ap as y,ae as E}from"./index-
|
|
1
|
+
import{c as u,m as o,f as d,r as A,K as T,ap as y,ae as E}from"./index-DY9jv8u5.js";import{a as O}from"./watch-sse-pool-BEBGvoea.js";function b(){return d({strict:!1}).org??""}function p(){const t=u.c(8),r=b();let e;t[0]!==r?(e=T.threadAnalyticsOrgs(r),t[0]=r,t[1]=e):e=t[1];const s=!!r;let n;t[2]!==r?(n=()=>y(r,"THREAD_ANALYTICS_ORG_LIST",{}),t[2]=r,t[3]=n):n=t[3];let c;return t[4]!==e||t[5]!==s||t[6]!==n?(c={queryKey:e,enabled:s,queryFn:n,staleTime:3e5},t[4]=e,t[5]=s,t[6]=n,t[7]=c):c=t[7],o(c)}const m=3e3,f=new Map,h=new Map;function _(t){let r=h.get(t);return r||(r=e=>{let s=null;const n=()=>{s||(s=setTimeout(()=>{s=null,f.set(t,(f.get(t)??0)+1),e()},m))},c=O.subscribe(t,n,n);return()=>{s&&clearTimeout(s),c()}},h.set(t,r)),r}function q(t,r){const e=u.c(5);let s;e[0]!==r||e[1]!==t?(s=_(t),e[0]=r,e[1]=t,e[2]=s):s=e[2];let n;return e[3]!==t?(n=()=>f.get(t)??0,e[3]=t,e[4]=n):n=e[4],A.useSyncExternalStore(s,n)}function F(t,r){const e=u.c(11),s=b(),n=q(s,r);let c;e[0]!==t||e[1]!==s||e[2]!==n?(c=T.threadAnalytics(s,"live",t,n),e[0]=t,e[1]=s,e[2]=n,e[3]=c):c=e[3];const i=!!s;let a;e[4]!==t||e[5]!==s?(a=()=>y(s,"THREAD_ANALYTICS_LIVE",t),e[4]=t,e[5]=s,e[6]=a):a=e[6];let l;return e[7]!==c||e[8]!==i||e[9]!==a?(l={queryKey:c,enabled:i,queryFn:a,placeholderData:E},e[7]=c,e[8]=i,e[9]=a,e[10]=l):l=e[10],o(l)}function K(t,r){const e=u.c(12),s=b();let n;e[0]!==r||e[1]!==s||e[2]!==t?(n=T.threadAnalytics(s,t,r,0),e[0]=r,e[1]=s,e[2]=t,e[3]=n):n=e[3];const c=!!s;let i;e[4]!==r||e[5]!==s||e[6]!==t?(i=()=>y(s,t,r),e[4]=r,e[5]=s,e[6]=t,e[7]=i):i=e[7];let a;return e[8]!==n||e[9]!==c||e[10]!==i?(a={queryKey:n,enabled:c,queryFn:i},e[8]=n,e[9]=c,e[10]=i,e[11]=a):a=e[11],o(a)}export{F as a,K as b,p as u};
|
package/dist/client/assets/{use-thread-outputs-D_k8NizM.js → use-thread-outputs-orGxjs9L.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,a2 as i,m as l,K as p}from"./index-
|
|
1
|
+
import{c,a2 as i,m as l,K as p}from"./index-DY9jv8u5.js";import{f}from"./chat-context-DaG-xhpe.js";async function m(e,s){const t=await fetch(`/api/${s}/threads/${encodeURIComponent(e)}/outputs`,{credentials:"include"});if(!t.ok)throw new Error(`Failed to fetch thread outputs: ${t.status}`);return(await t.json()).objects??[]}function $(){const e=c.c(2),s=f()?.messages??[];let t;return e[0]!==s?(t=s.some(y),e[0]=s,e[1]=t):t=e[1],t}function y(e){return e.parts?.some(b)}function b(e){const s=e;return(s.type==="tool-bash"||s.type==="tool-write")&&s.state==="output-available"}function g(e,s){const t=c.c(9),{org:u}=i();let o;t[0]!==e?(o=p.threadOutputs(e??""),t[0]=e,t[1]=o):o=t[1];let n;t[2]!==u||t[3]!==e?(n=()=>m(e??"",u.slug),t[2]=u,t[3]=e,t[4]=n):n=t[4];const r=!!e&&(s?.enabled??!0);let a;return t[5]!==o||t[6]!==n||t[7]!==r?(a={queryKey:o,queryFn:n,enabled:r,staleTime:0},t[5]=o,t[6]=n,t[7]=r,t[8]=a):a=t[8],l(a)}export{g as a,$ as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./infiniteQueryObserver-Glyohd4p.js";import{dr as i}from"./index-DY9jv8u5.js";function t(r,e){return i(r,u,e)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dF as E,dG as y,dH as S,dI as w,ds as Q,o as k,dJ as M,dK as x,r as p,dL as q,dM as H,dN as L,dO as P,dP as R,dQ as B,dR as A}from"./index-
|
|
1
|
+
import{dF as E,dG as y,dH as S,dI as w,ds as Q,o as k,dJ as M,dK as x,r as p,dL as q,dM as H,dN as L,dO as P,dP as R,dQ as B,dR as A}from"./index-DY9jv8u5.js";function v(r,s){const e=new Set(s);return r.filter(t=>!e.has(t))}function I(r,s,e){const t=r.slice(0);return t[s]=e,t}var T=class extends E{#i;#s;#n;#r;#e;#t;#o;#u;#h;#a=[];constructor(r,s,e){super(),this.#i=r,this.#r=e,this.#n=[],this.#e=[],this.#s=[],this.setQueries(s)}onSubscribe(){this.listeners.size===1&&this.#e.forEach(r=>{r.subscribe(s=>{this.#f(r,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#e.forEach(r=>{r.destroy()})}setQueries(r,s){this.#n=r,this.#r=s,y.batch(()=>{const e=this.#e,t=this.#d(this.#n);t.forEach(o=>o.observer.setOptions(o.defaultedQueryOptions));const i=t.map(o=>o.observer),n=i.map(o=>o.getCurrentResult()),u=e.length!==i.length,c=i.some((o,f)=>o!==e[f]),d=u||c,b=d?!0:n.some((o,f)=>{const g=this.#s[f];return!g||!S(o,g)});!d&&!b||(d&&(this.#a=t,this.#e=i),this.#s=n,this.hasListeners()&&(d&&(v(e,i).forEach(o=>{o.destroy()}),v(i,e).forEach(o=>{o.subscribe(f=>{this.#f(o,f)})})),this.#p()))})}getCurrentResult(){return this.#s}getQueries(){return this.#e.map(r=>r.getCurrentQuery())}getObservers(){return this.#e}getOptimisticResult(r,s){const e=this.#d(r),t=e.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=e.map(n=>n.defaultedQueryOptions.queryHash);return[t,n=>this.#l(n??t,s,i),()=>this.#c(t,e)]}#c(r,s){return s.map((e,t)=>{const i=r[t];return e.defaultedQueryOptions.notifyOnChangeProps?i:e.observer.trackResult(i,n=>{s.forEach(u=>{u.observer.trackProp(n)})})})}#l(r,s,e){if(s){const t=this.#h,i=e!==void 0&&t!==void 0&&(t.length!==e.length||e.some((n,u)=>n!==t[u]));return(!this.#t||this.#s!==this.#u||i||s!==this.#o)&&(this.#o=s,this.#u=this.#s,e!==void 0&&(this.#h=e),this.#t=w(this.#t,s(r))),this.#t}return r}#b(){return this.#r?.combine!==void 0&&this.#e.some((r,s)=>r.options.suspense&&this.#s[s]?.data===void 0)}#d(r){const s=new Map;this.#e.forEach(t=>{const i=t.options.queryHash;if(!i)return;const n=s.get(i);n?n.push(t):s.set(i,[t])});const e=[];return r.forEach(t=>{const i=this.#i.defaultQueryOptions(t),u=s.get(i.queryHash)?.shift()??new Q(this.#i,i);e.push({defaultedQueryOptions:i,observer:u})}),e}#f(r,s){const e=this.#e.indexOf(r);e!==-1&&(this.#s=I(this.#s,e,s),this.#p())}#p(){if(this.hasListeners()){const r=this.#c(this.#s,this.#a),s=this.#b(),e=this.#t,t=s?e:this.#l(r,this.#r?.combine);(s||e!==t)&&y.batch(()=>{this.listeners.forEach(i=>{i(this.#s)})})}}};function U({queries:r,...s},e){const t=k(e),i=M(),n=x(),u=p.useMemo(()=>r.map(h=>{const a=t.defaultQueryOptions(h);return a._optimisticResults=i?"isRestoring":"optimistic",a}),[r,t,i]);u.forEach(h=>{q(h);const a=t.getQueryCache().get(h.queryHash);H(h,n,a)}),L(n);const[c]=p.useState(()=>new T(t,u,s)),[d,b,o]=c.getOptimisticResult(u,s.combine),f=!i&&s.subscribed!==!1;p.useSyncExternalStore(p.useCallback(h=>f?c.subscribe(y.batchCalls(h)):P,[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setQueries(u,s)},[u,s,c]);const m=d.some((h,a)=>R(u[a],h))?d.flatMap((h,a)=>{const l=u[a];if(l&&R(l,h)){const C=new Q(t,l);return B(l,C,n)}return[]}):[];if(m.length>0)throw Promise.all(m);const O=d.find((h,a)=>{const l=u[a];return l&&A({result:h,errorResetBoundary:n,throwOnError:l.throwOnError,query:t.getQueryCache().get(l.queryHash),suspense:l.suspense})});if(O?.error)throw O.error;return b(o())}export{U as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./infiniteQueryObserver-Glyohd4p.js";import{dr as u,dE as n}from"./index-DY9jv8u5.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as V,b as q,r as z,a as O,m as Y,e as $,j as t,n as L,K as J,t as Q,B as W}from"./index-
|
|
1
|
+
import{c as V,b as q,r as z,a as O,m as Y,e as $,j as t,n as L,K as J,t as Q,B as W}from"./index-DY9jv8u5.js";import{C as G}from"./collection-table-wrapper-D5vvhE9_.js";import{E as D}from"./empty-state-C97rGNTx.js";import{S as H}from"./search-input-UGzUEySU.js";import{A as X}from"./avatar-BfW8_V1B.js";import{B as I}from"./badge-CqxA0I5-.js";import{u as Z}from"./use-debounced-value-0e-te_rl.js";import{a as K}from"./admin-fetch-BhTJlAsX.js";import{f as ee}from"./format-time-Cq80KKvY.js";import"./table-ChqbkXkJ.js";import"./ArrowUp-C-Wi5Wp-.js";import"./SearchMd-DiO3q0AT.js";import"./User01-DSs11bSF.js";import"./differenceInSeconds-C3x8sHUj.js";function ge(){const e=V.c(58),s=q(),[r,M]=z.useState("");let N;e[0]!==r?(N=r.trim(),e[0]=r,e[1]=N):N=e[1];const i=Z(N,300),{data:R}=O.useSession(),k=R?.user?.id;let n;e[2]!==i?(n=J.deploymentAdminUsers(i),e[2]=i,e[3]=n):n=e[3];let l;e[4]!==i?(l=()=>{const a=new URLSearchParams({limit:"100"});return i&&a.set("searchValue",i),K(`/api/_admin/users?${a}`)},e[4]=i,e[5]=l):l=e[5];let C;e[6]!==n||e[7]!==l?(C={queryKey:n,queryFn:l},e[6]=n,e[7]=l,e[8]=C):C=e[8];const{data:P,isLoading:_,isError:A}=Y(C);let w;e[9]===Symbol.for("react.memo_cache_sentinel")?(w=te,e[9]=w):w=e[9];let y;e[10]!==s?(y={mutationFn:ae,onSuccess:w,onError:a=>{Q.error(a instanceof Error?a.message:s("admin.users.failedToImpersonate"))}},e[10]=s,e[11]=y):y=e[11];const E=$(y);let b;e[12]!==P?.users?(b=P?.users??[],e[12]=P?.users,e[13]=b):b=e[13];const B=b;let o;e[14]!==s?(o=s("admin.users.columnUser"),e[14]=s,e[15]=o):o=e[15];let m;e[16]!==s?(m=a=>t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(X,{url:a.image??void 0,fallback:a.name??"?",shape:"circle",size:"sm"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:a.name||s("admin.users.unknown")}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:a.email})]})]}),e[16]=s,e[17]=m):m=e[17];let d;e[18]!==o||e[19]!==m?(d={id:"user",header:o,render:m,cellClassName:"flex-1 min-w-0"},e[18]=o,e[19]=m,e[20]=d):d=e[20];let c;e[21]!==s?(c=s("admin.users.columnEmail"),e[21]=s,e[22]=c):c=e[22];let u;e[23]!==s?(u=a=>a.emailVerified?t.jsx(I,{variant:"outline",className:"text-success border-success/20",children:s("admin.users.verified")}):t.jsx(I,{variant:"outline",className:"text-muted-foreground",children:s("admin.users.unverified")}),e[23]=s,e[24]=u):u=e[24];let f;e[25]!==c||e[26]!==u?(f={id:"verified",header:c,render:u,cellClassName:"w-28 shrink-0"},e[25]=c,e[26]=u,e[27]=f):f=e[27];let p;e[28]!==s?(p=s("admin.users.columnCreated"),e[28]=s,e[29]=p):p=e[29];let h;e[30]!==p?(h={id:"created",header:p,render:se,cellClassName:"w-48 shrink-0"},e[30]=p,e[31]=h):h=e[31];let x;e[32]!==k||e[33]!==E||e[34]!==s?(x={id:"actions",header:"",render:a=>t.jsx(W,{variant:"outline",size:"sm",disabled:a.id===k||E.isPending,onClick:()=>E.mutate(a.id),children:s("admin.users.impersonate")}),cellClassName:"w-32 shrink-0"},e[32]=k,e[33]=E,e[34]=s,e[35]=x):x=e[35];let T;e[36]!==f||e[37]!==h||e[38]!==x||e[39]!==d?(T=[d,f,h,x],e[36]=f,e[37]=h,e[38]=x,e[39]=d,e[40]=T):T=e[40];const F=T;let j;e[41]!==s?(j=s("admin.users.searchPlaceholder"),e[41]=s,e[42]=j):j=e[42];let g;e[43]!==r||e[44]!==j?(g=t.jsx(H,{value:r,onChange:M,placeholder:j,className:"w-full md:w-[375px]"}),e[43]=r,e[44]=j,e[45]=g):g=e[45];let S;e[46]!==i||e[47]!==A||e[48]!==s?(S=A?t.jsx(D,{title:s("admin.users.failedToLoadTitle"),description:s("admin.users.failedToLoadDescription")}):t.jsx(D,{title:s("admin.users.noUsersFoundTitle"),description:i?s("admin.users.noUsersMatchSearch",{search:i}):s("admin.users.noUsersYet")}),e[46]=i,e[47]=A,e[48]=s,e[49]=S):S=e[49];let v;e[50]!==F||e[51]!==_||e[52]!==S||e[53]!==B?(v=t.jsx(G,{columns:F,data:B,isLoading:_,emptyState:S}),e[50]=F,e[51]=_,e[52]=S,e[53]=B,e[54]=v):v=e[54];let U;return e[55]!==g||e[56]!==v?(U=t.jsx(L,{children:t.jsx(L.Content,{children:t.jsx(L.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[g,v]})})})}),e[55]=g,e[56]=v,e[57]=U):U=e[57],U}function se(e){return t.jsx("span",{className:"text-sm text-foreground",children:ee(e.createdAt)})}function te(){window.location.href="/"}function ae(e){return K("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{ge as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as W,s as E,b as k}from"./ZoomOut-
|
|
1
|
+
import{c as W,s as E,b as k}from"./ZoomOut-D-Ww048N.js";import{a as j}from"./Image01-Cwrowq3c.js";function I(e){if(!e||e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;try{const t=decodeURIComponent(e);return!!(t.includes("\\")||t.includes("..")||t.includes("\0"))}catch{return!0}}function L(e){if(I(e))throw new Error(`Invalid block key: ${e||"(empty)"}`)}function C(e){try{return decodeURIComponent(e)}catch{return e}}function P(e){return L(e),encodeURIComponent(e)}function G(e){return`.deco/blocks/${P(e)}.json`}const v=1e4,F=3;function y(e){return e.trim()?(e.startsWith("/")?e:`/${e}`).replace(/\/+/g,"/"):"/"}function x(e){return e.startsWith("/")?e.slice(1):e}function z(e){const t=x(e);return!t||t.includes("..")||t.includes("\\")?!1:t.startsWith(".deco/blocks/")||!t.startsWith("/")&&!t.includes("://")}function h(e){return e.trim()?e.startsWith("/")?e:`/${e}`:"/"}function $(e){const t=h(e);if(t==="/")return"/";const n=t.split("/").filter(Boolean);return n.pop(),n.length===0?"/":`/${n.join("/")}`}function D(e,t){const n=t.replace(/^\/+|\/+$/g,"");return h(n?`${e==="/"?"":e}/${n}`:e)}function _(e,t){return t==="directory"?e:$(e)}function M(e){const t=e.trim();return t?t.includes("/")||t.includes("\\")||t.includes("..")||t.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function B(e){const t=x(e);return t?t.split("/").filter(Boolean).length:0}function S(e,t,n,r=!1){return{files:[...new Set([...e,...n.files])],directories:[...new Set([...t,...n.directories??[]])],truncated:r||!!n.truncated}}function H(e,t){return B(e)>=F&&!t.has(e)}function q(e,t,n=[]){const r=x(e);if(t.includes(r)||n.includes(r))return!0;if(!r)return!1;const s=`${r}/`;return t.some(o=>o.startsWith(s))||n.some(o=>o.startsWith(s))}function U(e){const t=x(e),n=".deco/blocks/";if(!t.startsWith(n)||!t.endsWith(".json"))return null;const r=t.slice(n.length,-5);return C(r)}function A(e){if(!e)return"plaintext";const t=e.toLowerCase();return t.endsWith(".tsx")||t.endsWith(".ts")?"typescript":t.endsWith(".jsx")||t.endsWith(".js")||t.endsWith(".mjs")||t.endsWith(".cjs")?"javascript":t.endsWith(".json")?"json":t.endsWith(".md")||t.endsWith(".mdx")?"markdown":t.endsWith(".css")?"css":t.endsWith(".scss")?"scss":t.endsWith(".html")?"html":t.endsWith(".yaml")||t.endsWith(".yml")?"yaml":t.endsWith(".xml")||t.endsWith(".svg")?"xml":t.endsWith(".py")?"python":t.endsWith(".sql")?"sql":t.endsWith(".sh")?"shell":"plaintext"}const T="#94a3b8";function X(e){const t=e.toLowerCase();return t.endsWith(".tsx")||t.endsWith(".ts")?{Icon:W,color:"#3b82f6"}:t.endsWith(".jsx")||t.endsWith(".js")||t.endsWith(".mjs")||t.endsWith(".cjs")?{Icon:W,color:"#d9a441"}:t.endsWith(".json")?{Icon:E,color:"#cb9b3f"}:t.endsWith(".css")||t.endsWith(".scss")?{Icon:W,color:"#06b6d4"}:t.endsWith(".html")||t.endsWith(".xml")?{Icon:W,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(t)?{Icon:j,color:"#a855f7"}:t.endsWith(".md")||t.endsWith(".mdx")?{Icon:k,color:"#64748b"}:{Icon:k,color:T}}function K(e){const t=y(e).split("/").filter(Boolean),n=["/"];let r="";for(const s of t.slice(0,-1))r+=`/${s}`,n.push(r);return n}function V(e,t=[]){const n={path:"/",children:[]},r=new Map,s=a=>{let i=r.get(a.path);return i||(i=new Map,r.set(a.path,i)),i},o=a=>{const c=y(a).split("/").filter(Boolean);let l=n,m="";for(const f of c){m+=`/${f}`;const g=s(l);let d=g.get(f);d?d.kind==="file"&&(d.kind="directory"):(d={name:f,path:m,kind:"directory",children:[]},l.children.push(d),g.set(f,d)),l=d}};for(const a of e){const c=y(a).split("/").filter(Boolean);let l=n,m="";c.forEach((f,g)=>{m+=`/${f}`;const d=g===c.length-1,b=s(l);let p=b.get(f);p||(p={name:f,path:m,kind:d?"file":"directory",children:[]},l.children.push(p),b.set(f,p)),l=p})}for(const a of t)o(h(a));const u=a=>{a.sort((i,c)=>i.kind!==c.kind?i.kind==="directory"?-1:1:i.name.localeCompare(c.name));for(const i of a)i.children.length>0&&u(i.children)};return u(n.children),n.children}function N(e,t,n=0){const r=[];for(const s of e)if(s.name!==".gitkeep"&&(r.push({node:s,depth:n}),s.kind==="directory"&&s.children.length>0&&t.has(s.path)))for(const o of N(s.children,t,n+1))r.push(o);return r}function J(e){const t=[];for(const n of e.split(`
|
|
2
2
|
`)){if(!n)continue;const r=n.indexOf(":");if(r<0)continue;const s=n.indexOf(":",r+1);if(s<0)continue;const o=Number.parseInt(n.slice(r+1,s),10);Number.isFinite(o)&&t.push({path:h(n.slice(0,r)),line:o,text:n.slice(s+1)})}return t}function Q(e,t,n){const r=t.trim().toLowerCase();if(!r)return[];const s=[];for(const o of e)if((o.split("/").pop()??o).toLowerCase().includes(r)&&(s.push(h(o)),s.length>=n))break;return s}const w=24;function Y(e,t){const n=e.replace(/^\s+/,""),r=t.trim().toLowerCase();if(!r)return{leadingEllipsis:!1,segments:[{text:n,match:!1}]};const s=n.toLowerCase().indexOf(r);if(s<0)return{leadingEllipsis:!1,segments:[{text:n,match:!1}]};const o=s>w,u=o?n.slice(s-w):n,a=u.toLowerCase(),i=[];let c=0;for(;;){const l=a.indexOf(r,c);if(l<0){c<u.length&&i.push({text:u.slice(c),match:!1});break}l>c&&i.push({text:u.slice(c,l),match:!1}),i.push({text:u.slice(l,l+r.length),match:!0}),c=l+r.length}return{leadingEllipsis:o,segments:i}}function Z(e){const t=[],n=new Map;for(const r of e){let s=n.get(r.path);s||(s={path:r.path,matches:[]},n.set(r.path,s),t.push(s)),s.matches.push(r)}return t}function tt(e){return e.split(`
|
|
3
3
|
`).map(t=>t.replace(/^\d+\t/,"")).join(`
|
|
4
4
|
`)}export{F as E,L as a,C as b,v as c,G as d,V as e,N as f,A as g,Z as h,z as i,_ as j,h as k,X as l,$ as m,K as n,Y as o,H as p,D as q,q as r,tt as s,x as t,Q as u,M as v,J as w,U as x,S as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as K,b as X,r as Z,j as r,l as ne,B as ee,av as ue}from"./index-D2MFYEzD.js";import{H as xe,r as ie,j as ge}from"./agent-icon-g2PIrjzs.js";import{L as be}from"./label-3hTmrxoy.js";import{S as ce}from"./scroll-area-BBBDJLpH.js";import{S as ve}from"./switch-CESJ2RZK.js";import{T as ye,c as je,a as Te}from"./tooltip-bQVm_Ope.js";import{T as se,a as Ne}from"./toggle-group-C7NFln-0.js";import{M as de,b as me,c as _e,s as ke,p as Ee,a as U,W as Se}from"./date-utils-CrvIKg-s.js";import"./AlertCircle-DgnxHqxe.js";import"./Tool01-rTZNmFct.js";import"./ArrowUp-723TVuFG.js";import"./ArrowLeft-BJ1448l4.js";import"./LinkBroken01-DDgMbBWJ.js";import"./ShoppingBag01-DVHnZchK.js";import"./ZoomOut-DLICjI1h.js";import"./Building02-DU823ZCw.js";import"./CheckCircle-C7csYE-y.js";import"./ChevronUp-DiTVmUiH.js";import"./ChevronSelectorVertical-B0Z7parR.js";import"./UserSquare-B_yRFcN6.js";import"./Copy01-DRNuKy-h.js";import"./CreditCard01-C3f2i_qY.js";import"./DotsVertical-eX97dPc6.js";import"./Image01-QuVxFosz.js";import"./Globe04-ByvV2bPX.js";import"./SwitchHorizontal01-_kdH1ete.js";import"./Key01-C-QXsN23.js";import"./Link01-CbpFxbNY.js";import"./Minus-DnJ8wbLv.js";import"./Monitor01-DD5_JCl8.js";import"./Sun-Ct5gftPt.js";import"./Play-BgEaB30r.js";import"./Plus-BnqPSlPj.js";import"./SearchMd-GQAKwnQD.js";import"./Trash01-TPK4gSsp.js";import"./Upload01-D6tRQTgc.js";import"./User01-1q78INo2.js";import"./Users01-D5MhP5r0.js";import"./XClose-DOXmYMF_.js";import"./index-BdQq_4o_.js";import"./index-CXWqnDP7.js";import"./active-indicator-CCMhAsc_.js";const we=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),Ce=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Me=new Date(-864e13),Ae=new Date(864e13),$e=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,Le=/\/flags\/multivariate\.ts$/;function Re(t){let e=t;e.startsWith("pages-")&&(e=e.slice(6).replace(/-\d+$/,""));try{e=decodeURIComponent(e)}catch{}return e}function De(t){if(!t||typeof t!="object")return null;const{start:e,end:n}=t,s=typeof e=="string",o=typeof n=="string";if(!s&&!o)return null;const a=s?new Date(e):Me,l=o?new Date(n):Ae;return Number.isNaN(a.getTime())||Number.isNaN(l.getTime())||s&&o&&l.getTime()<=a.getTime()?null:{start:a,end:l,openStart:!s,openEnd:!o}}function fe(t,e){if(!t||typeof t!="object")return;const n=t.__resolveType;if(typeof n=="string"){if(we.has(n)){const s=De(t);s&&e.push(s);return}if(Ce.has(n)){const s=t.matchers;if(Array.isArray(s))for(const o of s)fe(o,e)}}}function Oe(t){if(!t||typeof t!="object")return!1;const e=t.__resolveType;if(typeof e!="string"||!$e.test(e))return!1;const n=t.variants;return Array.isArray(n)}function Pe(t){if(typeof t=="string"){const c=t.trim();if(c.length===0)return null;try{const d=new URL(c).pathname.split("/").filter(Boolean),m=d[d.length-1];if(m)return decodeURIComponent(m)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}if(!t||typeof t!="object")return null;const e=t,n=e.config,o=e.desktop?.media,a=[e.title,e.name,e.label,e.alt,n?.title,n?.name,n?.typeAlert?.message,o?.alt,Array.isArray(e.matcher)?e.matcher[0]:void 0];for(const c of a)if(typeof c=="string"&&c.trim().length>0)return c.trim();const l=e.__resolveType;if(typeof l=="string"){const i=(l.split("/").pop()??l).replace(/\.(tsx?|jsx?)$/i,"");if(i.length>0)return i}return null}function Ie(t){const e=[];for(let n=0;n<t.length;n++){const s=t[n];typeof s=="number"?e.length>0?e[e.length-1]+=`[${s}]`:e.push(`[${s}]`):e.push(s)}return e.join(" · ")}function Q(t,e,n,s,o){if(Oe(t)){const a=t.variants,l=t.__resolveType,c=Le.test(l)?"":Ie(s);a.forEach((i,d)=>{if(!i||typeof i!="object")return;const m=i,u=[];if(fe(m.rule,u),u.length===0)return;const g=Pe(m.value)??(c||n);for(const h of u)o.push({blockKey:e,blockLabel:n,innerPath:c,variantIndex:d,start:h.start,end:h.end,openStart:h.openStart,openEnd:h.openEnd,label:g,flagResolveType:l})});for(let i=0;i<a.length;i++){const d=a[i];d&&typeof d=="object"&&Q(d.value,e,n,[...s,"variants",i,"value"],o)}return}if(Array.isArray(t)){for(let a=0;a<t.length;a++)Q(t[a],e,n,[...s,a],o);return}if(t&&typeof t=="object")for(const[a,l]of Object.entries(t))a!=="__resolveType"&&Q(l,e,n,[...s,a],o)}function He(t){if(!t)return[];const e=[];for(const[n,s]of Object.entries(t))Q(s,n,Re(n),[],e);return e.sort((n,s)=>n.start.getTime()-s.start.getTime())}function Ve(t){const e=[...new Set(t)].sort(),n=new Map;return e.forEach((s,o)=>{const a=o*137.508%360;n.set(s,{bg:`oklch(0.62 0.14 ${a})`,text:"white",border:`oklch(0.50 0.14 ${a})`})}),n}const Be={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function pe(t,e){return t.get(e)??Be}const re=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Fe(t,e){const n=t.openStart?e("sandbox.variantCalendar.always"):re.format(t.start),s=t.openEnd?e("sandbox.variantCalendar.ongoing"):re.format(t.end);return`${n} → ${s}`}function We(t){const e=K.c(18),{variant:n}=t,s=X();let o;e[0]!==n.blockLabel?(o=r.jsx("div",{className:"font-semibold",children:n.blockLabel}),e[0]=n.blockLabel,e[1]=o):o=e[1];let a;e[2]!==n.innerPath?(a=n.innerPath&&r.jsx("div",{className:"text-muted-foreground",children:n.innerPath}),e[2]=n.innerPath,e[3]=a):a=e[3];let l;e[4]!==n.blockLabel||e[5]!==n.innerPath||e[6]!==n.label?(l=n.label!==n.blockLabel&&n.label!==n.innerPath&&r.jsx("div",{className:"text-muted-foreground",children:n.label}),e[4]=n.blockLabel,e[5]=n.innerPath,e[6]=n.label,e[7]=l):l=e[7];let c;e[8]!==s||e[9]!==n?(c=Fe(n,s),e[8]=s,e[9]=n,e[10]=c):c=e[10];let i;e[11]!==c?(i=r.jsx("div",{className:"mt-1",children:c}),e[11]=c,e[12]=i):i=e[12];let d;return e[13]!==o||e[14]!==a||e[15]!==l||e[16]!==i?(d=r.jsx(Te,{children:r.jsxs("div",{className:"text-xs",children:[o,a,l,i]})}),e[13]=o,e[14]=a,e[15]=l,e[16]=i,e[17]=d):d=e[17],d}const ae=16;function ze(t,e){const n=t?"transparent":"#000 0",s=e?"transparent":"#000 100%";if(!(!t&&!e))return`linear-gradient(to right, ${n}, #000 ${ae}px, #000 calc(100% - ${ae}px), ${s})`}function he(t){const e=K.c(26),{variant:n,color:s,style:o,children:a,fadeStart:l,fadeEnd:c}=t,i=l===void 0?!1:l,d=c===void 0?!1:c;let m;e[0]!==d||e[1]!==i?(m=ze(i,d),e[0]=d,e[1]=i,e[2]=m):m=e[2];const u=m;let p;e[3]!==i?(p=i&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},e[3]=i,e[4]=p):p=e[4];let g;e[5]!==d?(g=d&&{borderTopRightRadius:0,borderBottomRightRadius:0},e[5]=d,e[6]=g):g=e[6];let h;e[7]!==u?(h=u&&{maskImage:u,WebkitMaskImage:u},e[7]=u,e[8]=h):h=e[8];let x;e[9]!==s.bg||e[10]!==s.text||e[11]!==o||e[12]!==p||e[13]!==g||e[14]!==h?(x={background:s.bg,color:s.text,borderRadius:4,...p,...g,...h,...o},e[9]=s.bg,e[10]=s.text,e[11]=o,e[12]=p,e[13]=g,e[14]=h,e[15]=x):x=e[15];let b;e[16]!==a?(b=r.jsx("span",{className:"truncate",children:a}),e[16]=a,e[17]=b):b=e[17];let S;e[18]!==x||e[19]!==b?(S=r.jsx(ye,{asChild:!0,children:r.jsx("div",{className:"absolute flex items-center px-2 text-2xs font-medium truncate cursor-default",style:x,children:b})}),e[18]=x,e[19]=b,e[20]=S):S=e[20];let T;e[21]!==n?(T=r.jsx(We,{variant:n}),e[21]=n,e[22]=T):T=e[22];let f;return e[23]!==T||e[24]!==S?(f=r.jsxs(je,{children:[S,T]}),e[23]=T,e[24]=S,e[25]=f):f=e[25],f}function Kt(t){const e=K.c(71),{decofile:n}=t,s=X(),[o,a]=Z.useState("calendar"),[l,c]=Z.useState(Ye),[i,d]=Z.useState(!1);let m,u,p;if(e[0]!==n||e[1]!==i){const M=He(n);m=M.filter(Ke).length,p=i?M:M.filter(Ue),u=Ve(p.map(Ge)),e[0]=n,e[1]=i,e[2]=m,e[3]=u,e[4]=p}else m=e[2],u=e[3],p=e[4];const g=u;let h;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=()=>c(me(new Date)),e[5]=h):h=e[5];const x=h;let b;e[6]!==o?(b=()=>c(M=>o==="calendar"?U(M,-1):U(M,-3)),e[6]=o,e[7]=b):b=e[7];const S=b;let T;e[8]!==o?(T=()=>c(M=>o==="calendar"?U(M,1):U(M,3)),e[8]=o,e[9]=T):T=e[9];const f=T;let v;e[10]!==s?(v=s("sandbox.variantCalendar.today"),e[10]=s,e[11]=v):v=e[11];let y;e[12]!==v?(y=r.jsx(ee,{variant:"outline",size:"sm",onClick:x,children:v}),e[12]=v,e[13]=y):y=e[13];let N;e[14]!==s?(N=s("sandbox.variantCalendar.previous"),e[14]=s,e[15]=N):N=e[15];let $;e[16]===Symbol.for("react.memo_cache_sentinel")?($=r.jsx(xe,{size:16}),e[16]=$):$=e[16];let _;e[17]!==S||e[18]!==N?(_=r.jsx(ee,{variant:"ghost",size:"icon",onClick:S,"aria-label":N,children:$}),e[17]=S,e[18]=N,e[19]=_):_=e[19];let k;e[20]!==s?(k=s("sandbox.variantCalendar.next"),e[20]=s,e[21]=k):k=e[21];let C;e[22]===Symbol.for("react.memo_cache_sentinel")?(C=r.jsx(ue,{size:16}),e[22]=C):C=e[22];let L;e[23]!==f||e[24]!==k?(L=r.jsx(ee,{variant:"ghost",size:"icon",onClick:f,"aria-label":k,children:C}),e[23]=f,e[24]=k,e[25]=L):L=e[25];const R=de[l.getMonth()];let A;e[26]!==l?(A=l.getFullYear(),e[26]=l,e[27]=A):A=e[27];let E;e[28]!==R||e[29]!==A?(E=r.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[R," ",A]}),e[28]=R,e[29]=A,e[30]=E):E=e[30];let j;e[31]!==L||e[32]!==E||e[33]!==y||e[34]!==_?(j=r.jsxs("div",{className:"flex items-center gap-2",children:[y,_,L,E]}),e[31]=L,e[32]=E,e[33]=y,e[34]=_,e[35]=j):j=e[35];let D;e[36]!==m||e[37]!==i||e[38]!==s?(D=m>0&&r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(ve,{id:"show-ongoing",checked:i,onCheckedChange:d}),r.jsx(be,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:s("sandbox.variantCalendar.showOngoing",{count:m})})]}),e[36]=m,e[37]=i,e[38]=s,e[39]=D):D=e[39];let V;e[40]===Symbol.for("react.memo_cache_sentinel")?(V=M=>{(M==="calendar"||M==="timeline")&&a(M)},e[40]=V):V=e[40];let F;e[41]===Symbol.for("react.memo_cache_sentinel")?(F=r.jsx(ie,{}),e[41]=F):F=e[41];let w;e[42]!==s?(w=s("sandbox.variantCalendar.calendarMode"),e[42]=s,e[43]=w):w=e[43];let I;e[44]!==w?(I=r.jsxs(se,{value:"calendar",children:[F,w]}),e[44]=w,e[45]=I):I=e[45];let B;e[46]===Symbol.for("react.memo_cache_sentinel")?(B=r.jsx(ge,{}),e[46]=B):B=e[46];let O;e[47]!==s?(O=s("sandbox.variantCalendar.timelineMode"),e[47]=s,e[48]=O):O=e[48];let P;e[49]!==O?(P=r.jsxs(se,{value:"timeline",children:[B,O]}),e[49]=O,e[50]=P):P=e[50];let H;e[51]!==I||e[52]!==P||e[53]!==o?(H=r.jsxs(Ne,{type:"single",variant:"segmented",size:"sm",value:o,onValueChange:V,children:[I,P]}),e[51]=I,e[52]=P,e[53]=o,e[54]=H):H=e[54];let W;e[55]!==D||e[56]!==H?(W=r.jsxs("div",{className:"flex items-center gap-4",children:[D,H]}),e[55]=D,e[56]=H,e[57]=W):W=e[57];let z;e[58]!==j||e[59]!==W?(z=r.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,W]}),e[58]=j,e[59]=W,e[60]=z):z=e[60];let G;e[61]!==g||e[62]!==l||e[63]!==m||e[64]!==i||e[65]!==p||e[66]!==o?(G=p.length===0?r.jsx(qe,{hiddenOngoing:i?0:m}):o==="calendar"?r.jsx(Qe,{monthStart:l,variants:p,colorMap:g}):r.jsx(tt,{monthStart:l,variants:p,colorMap:g}),e[61]=g,e[62]=l,e[63]=m,e[64]=i,e[65]=p,e[66]=o,e[67]=G):G=e[67];let q;return e[68]!==z||e[69]!==G?(q=r.jsxs("div",{className:"flex h-full w-full flex-col",children:[z,G]}),e[68]=z,e[69]=G,e[70]=q):q=e[70],q}function Ge(t){return t.blockKey}function Ue(t){return!t.openEnd}function Ke(t){return t.openEnd}function Ye(){return me(new Date)}function qe(t){const e=K.c(4),{hiddenOngoing:n}=t,s=n===void 0?0:n,o=X();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsx(ie,{size:24,className:"text-muted-foreground/60"}),e[0]=a):a=e[0];let l;return e[1]!==s||e[2]!==o?(l=r.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[a,s>0?r.jsxs(r.Fragment,{children:[r.jsx("div",{children:o("sandbox.variantCalendar.noDatedVariants")}),r.jsx("div",{className:"text-xs text-muted-foreground/80",children:o("sandbox.variantCalendar.hiddenOngoingVariants",{count:s})})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{children:o("sandbox.variantCalendar.noScheduledVariants")}),r.jsx("div",{className:"text-xs text-muted-foreground/80",children:o("sandbox.variantCalendar.dateMatcherInfo")})]})]}),e[1]=s,e[2]=o,e[3]=l):l=e[3],l}const te=20,oe=2,le=28,Je=6;function Qe(t){const e=K.c(17),{monthStart:n,variants:s,colorMap:o}=t;let a,l,c,i,d;if(e[0]!==o||e[1]!==n||e[2]!==s){const p=_e(n),g=ke(new Date);a=ce,d="flex-1 min-h-0",l="min-w-[840px]",e[8]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:Se.map(Ze)}),e[8]=c):c=e[8],i=p.map((h,x)=>{const b=Ee(h,s),S=b.reduce(Xe,0),T=le+S*(te+oe)+8;return r.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[h.map((f,v)=>{const y=f.getMonth()===n.getMonth(),N=f.getTime()===g.getTime();return r.jsx("div",{className:ne("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:r.jsx("span",{className:ne("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:f.getDate()})},v)}),b.map((f,v)=>{const y=pe(o,f.variant.blockKey),N=le+f.lane*(te+oe),$=f.leftUnits/7*100,_=f.widthUnits/7*100,k=f.variant.openStart&&x===0,C=f.variant.openEnd&&x===p.length-1;return r.jsxs(he,{variant:f.variant,color:y,fadeStart:k,fadeEnd:C,style:{top:N,left:`calc(${$}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:Je,height:te},children:[f.variant.blockLabel,f.variant.label!==f.variant.blockLabel&&r.jsxs("span",{className:"opacity-70",children:[" · ",f.variant.label]})]},`${x}-${v}`)})]},x)}),e[0]=o,e[1]=n,e[2]=s,e[3]=a,e[4]=l,e[5]=c,e[6]=i,e[7]=d}else a=e[3],l=e[4],c=e[5],i=e[6],d=e[7];let m;e[9]!==l||e[10]!==c||e[11]!==i?(m=r.jsxs("div",{className:l,children:[c,i]}),e[9]=l,e[10]=c,e[11]=i,e[12]=m):m=e[12];let u;return e[13]!==a||e[14]!==d||e[15]!==m?(u=r.jsx(a,{className:d,children:m}),e[13]=a,e[14]=d,e[15]=m,e[16]=u):u=e[16],u}function Xe(t,e){return Math.max(t,e.lane+1)}function Ze(t){return r.jsx("div",{className:"px-2 py-2 text-center",children:t},t)}const J=4,et=32,Y=240;function tt(t){const e=K.c(23),{monthStart:n,variants:s,colorMap:o}=t,a=n,l=U(n,J),c=new Date,i=new Map;for(const E of s){const j=i.get(E.blockKey)??[];j.push(E),i.set(E.blockKey,j)}const d=Array.from(i.entries()).sort(rt),m=l.getTime()-a.getTime(),u=E=>(Math.max(a.getTime(),Math.min(l.getTime(),E.getTime()))-a.getTime())/m*100;let p;e[0]!==a?(p=(E,j)=>U(a,j),e[0]=a,e[1]=p):p=e[1];const g=Array.from({length:J},p),h=c.getTime()>=a.getTime()&&c.getTime()<=l.getTime()?u(c):null,x=X(),b=ce,S="flex-1 min-h-0",T="min-w-[900px] relative";let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f={width:Y},e[2]=f):f=e[2];let v;e[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),e[3]=x,e[4]=v):v=e[4];let y;e[5]!==v?(y=r.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold text-muted-foreground border-r",style:f,children:v}),e[5]=v,e[6]=y):y=e[6];let N;e[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},e[7]=N):N=e[7];const $=g.map(st);let _;e[8]!==$?(_=r.jsx("div",{className:"flex-1 grid",style:N,children:$}),e[8]=$,e[9]=_):_=e[9];let k;e[10]!==y||e[11]!==_?(k=r.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),e[10]=y,e[11]=_,e[12]=k):k=e[12];let C;e[13]!==x||e[14]!==h?(C=h!==null&&r.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${Y}px + (100% - ${Y}px) * ${h} / 100)`},children:r.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-2xs font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),e[13]=x,e[14]=h,e[15]=C):C=e[15];const L=d.map(E=>{const[j,D]=E,V=pe(o,j),F=D[0]?.blockLabel??j;return r.jsxs("div",{children:[r.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold text-muted-foreground",style:{height:28},children:r.jsx("div",{className:"px-3 truncate",style:{width:Y},children:F})}),D.map((w,I)=>r.jsxs("div",{className:"flex border-b items-center",style:{height:et},children:[r.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[r.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:V.bg}}),r.jsx("span",{className:"truncate text-foreground/80",children:w.label})]}),r.jsxs("div",{className:"relative flex-1 h-full",children:[r.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},children:g.map(nt)}),(()=>{const B=Math.max(w.start.getTime(),a.getTime()),O=Math.min(w.end.getTime(),l.getTime());if(O<=B)return null;const P=u(new Date(B)),H=u(new Date(O))-P;return r.jsx(he,{variant:w,color:V,fadeStart:w.openStart,fadeEnd:w.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${H}% - 2px)`,height:22},children:w.label})})()]})]},I))]},j)});let R;e[16]!==k||e[17]!==C||e[18]!==L?(R=r.jsxs("div",{className:T,children:[k,C,L]}),e[16]=k,e[17]=C,e[18]=L,e[19]=R):R=e[19];let A;return e[20]!==b||e[21]!==R?(A=r.jsx(b,{className:S,children:R}),e[20]=b,e[21]=R,e[22]=A):A=e[22],A}function nt(t,e){return r.jsx("div",{className:"border-r last:border-r-0 border-border/40"},e)}function st(t,e){return r.jsxs("div",{className:"px-2 py-2 text-xs text-muted-foreground border-r last:border-r-0",children:[de[t.getMonth()]?.slice(0,3)," ",t.getFullYear()]},e)}function rt(t,e){return t[0].localeCompare(e[0])}export{Kt as VariantCalendar};
|
|
1
|
+
import{c as K,b as X,r as Z,j as r,l as ne,B as ee,av as ue}from"./index-DY9jv8u5.js";import{H as xe,r as ie,j as ge}from"./agent-icon-CCDPFoN-.js";import{L as be}from"./label-CUbZuKc3.js";import{S as ce}from"./scroll-area-DdvxCYsk.js";import{S as ve}from"./switch-Wb17Bg4i.js";import{T as ye,c as je,a as Te}from"./tooltip-CjIqGzku.js";import{T as se,a as Ne}from"./toggle-group-C__89QW8.js";import{M as de,b as me,c as _e,s as ke,p as Ee,a as U,W as Se}from"./date-utils-CrvIKg-s.js";import"./AlertCircle-CF7oV00-.js";import"./Tool01-C0vFHYhV.js";import"./ArrowUp-C-Wi5Wp-.js";import"./ArrowLeft-BYRX2oWU.js";import"./LinkBroken01-DhWTb9MO.js";import"./ShoppingBag01-B4aQ0-ny.js";import"./ZoomOut-D-Ww048N.js";import"./Building02-BTo5ALb8.js";import"./CheckCircle-B7DLXg5D.js";import"./ChevronUp-i4o2LTaN.js";import"./ChevronSelectorVertical-ByVW2vd8.js";import"./UserSquare-DXYtKMfd.js";import"./Copy01-Ck9G4OUr.js";import"./CreditCard01-DBL8NXSk.js";import"./DotsVertical-DGS_x5nz.js";import"./Image01-Cwrowq3c.js";import"./Globe04-lKXBAfc3.js";import"./SwitchHorizontal01-BbdJtypW.js";import"./Key01-CEbPGYnm.js";import"./Link01-DXqb71Uu.js";import"./Minus-C9yYSfDR.js";import"./Monitor01-BL3DAm_1.js";import"./Sun-DqiY7Z2B.js";import"./Play-CZ7QKkqf.js";import"./Plus-BRxUqR_F.js";import"./SearchMd-DiO3q0AT.js";import"./Trash01-bhcUMroB.js";import"./Upload01-BwEuXdMa.js";import"./User01-DSs11bSF.js";import"./Users01-CTqd0ZAH.js";import"./XClose-CxYwKo3k.js";import"./index-BdQq_4o_.js";import"./index-DPyR1fyZ.js";import"./active-indicator-CCMhAsc_.js";const we=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),Ce=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Me=new Date(-864e13),Ae=new Date(864e13),$e=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,Le=/\/flags\/multivariate\.ts$/;function Re(t){let e=t;e.startsWith("pages-")&&(e=e.slice(6).replace(/-\d+$/,""));try{e=decodeURIComponent(e)}catch{}return e}function De(t){if(!t||typeof t!="object")return null;const{start:e,end:n}=t,s=typeof e=="string",o=typeof n=="string";if(!s&&!o)return null;const a=s?new Date(e):Me,l=o?new Date(n):Ae;return Number.isNaN(a.getTime())||Number.isNaN(l.getTime())||s&&o&&l.getTime()<=a.getTime()?null:{start:a,end:l,openStart:!s,openEnd:!o}}function fe(t,e){if(!t||typeof t!="object")return;const n=t.__resolveType;if(typeof n=="string"){if(we.has(n)){const s=De(t);s&&e.push(s);return}if(Ce.has(n)){const s=t.matchers;if(Array.isArray(s))for(const o of s)fe(o,e)}}}function Oe(t){if(!t||typeof t!="object")return!1;const e=t.__resolveType;if(typeof e!="string"||!$e.test(e))return!1;const n=t.variants;return Array.isArray(n)}function Pe(t){if(typeof t=="string"){const c=t.trim();if(c.length===0)return null;try{const d=new URL(c).pathname.split("/").filter(Boolean),m=d[d.length-1];if(m)return decodeURIComponent(m)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}if(!t||typeof t!="object")return null;const e=t,n=e.config,o=e.desktop?.media,a=[e.title,e.name,e.label,e.alt,n?.title,n?.name,n?.typeAlert?.message,o?.alt,Array.isArray(e.matcher)?e.matcher[0]:void 0];for(const c of a)if(typeof c=="string"&&c.trim().length>0)return c.trim();const l=e.__resolveType;if(typeof l=="string"){const i=(l.split("/").pop()??l).replace(/\.(tsx?|jsx?)$/i,"");if(i.length>0)return i}return null}function Ie(t){const e=[];for(let n=0;n<t.length;n++){const s=t[n];typeof s=="number"?e.length>0?e[e.length-1]+=`[${s}]`:e.push(`[${s}]`):e.push(s)}return e.join(" · ")}function Q(t,e,n,s,o){if(Oe(t)){const a=t.variants,l=t.__resolveType,c=Le.test(l)?"":Ie(s);a.forEach((i,d)=>{if(!i||typeof i!="object")return;const m=i,u=[];if(fe(m.rule,u),u.length===0)return;const g=Pe(m.value)??(c||n);for(const h of u)o.push({blockKey:e,blockLabel:n,innerPath:c,variantIndex:d,start:h.start,end:h.end,openStart:h.openStart,openEnd:h.openEnd,label:g,flagResolveType:l})});for(let i=0;i<a.length;i++){const d=a[i];d&&typeof d=="object"&&Q(d.value,e,n,[...s,"variants",i,"value"],o)}return}if(Array.isArray(t)){for(let a=0;a<t.length;a++)Q(t[a],e,n,[...s,a],o);return}if(t&&typeof t=="object")for(const[a,l]of Object.entries(t))a!=="__resolveType"&&Q(l,e,n,[...s,a],o)}function He(t){if(!t)return[];const e=[];for(const[n,s]of Object.entries(t))Q(s,n,Re(n),[],e);return e.sort((n,s)=>n.start.getTime()-s.start.getTime())}function Ve(t){const e=[...new Set(t)].sort(),n=new Map;return e.forEach((s,o)=>{const a=o*137.508%360;n.set(s,{bg:`oklch(0.62 0.14 ${a})`,text:"white",border:`oklch(0.50 0.14 ${a})`})}),n}const Be={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function pe(t,e){return t.get(e)??Be}const re=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Fe(t,e){const n=t.openStart?e("sandbox.variantCalendar.always"):re.format(t.start),s=t.openEnd?e("sandbox.variantCalendar.ongoing"):re.format(t.end);return`${n} → ${s}`}function We(t){const e=K.c(18),{variant:n}=t,s=X();let o;e[0]!==n.blockLabel?(o=r.jsx("div",{className:"font-semibold",children:n.blockLabel}),e[0]=n.blockLabel,e[1]=o):o=e[1];let a;e[2]!==n.innerPath?(a=n.innerPath&&r.jsx("div",{className:"text-muted-foreground",children:n.innerPath}),e[2]=n.innerPath,e[3]=a):a=e[3];let l;e[4]!==n.blockLabel||e[5]!==n.innerPath||e[6]!==n.label?(l=n.label!==n.blockLabel&&n.label!==n.innerPath&&r.jsx("div",{className:"text-muted-foreground",children:n.label}),e[4]=n.blockLabel,e[5]=n.innerPath,e[6]=n.label,e[7]=l):l=e[7];let c;e[8]!==s||e[9]!==n?(c=Fe(n,s),e[8]=s,e[9]=n,e[10]=c):c=e[10];let i;e[11]!==c?(i=r.jsx("div",{className:"mt-1",children:c}),e[11]=c,e[12]=i):i=e[12];let d;return e[13]!==o||e[14]!==a||e[15]!==l||e[16]!==i?(d=r.jsx(Te,{children:r.jsxs("div",{className:"text-xs",children:[o,a,l,i]})}),e[13]=o,e[14]=a,e[15]=l,e[16]=i,e[17]=d):d=e[17],d}const ae=16;function ze(t,e){const n=t?"transparent":"#000 0",s=e?"transparent":"#000 100%";if(!(!t&&!e))return`linear-gradient(to right, ${n}, #000 ${ae}px, #000 calc(100% - ${ae}px), ${s})`}function he(t){const e=K.c(26),{variant:n,color:s,style:o,children:a,fadeStart:l,fadeEnd:c}=t,i=l===void 0?!1:l,d=c===void 0?!1:c;let m;e[0]!==d||e[1]!==i?(m=ze(i,d),e[0]=d,e[1]=i,e[2]=m):m=e[2];const u=m;let p;e[3]!==i?(p=i&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},e[3]=i,e[4]=p):p=e[4];let g;e[5]!==d?(g=d&&{borderTopRightRadius:0,borderBottomRightRadius:0},e[5]=d,e[6]=g):g=e[6];let h;e[7]!==u?(h=u&&{maskImage:u,WebkitMaskImage:u},e[7]=u,e[8]=h):h=e[8];let x;e[9]!==s.bg||e[10]!==s.text||e[11]!==o||e[12]!==p||e[13]!==g||e[14]!==h?(x={background:s.bg,color:s.text,borderRadius:4,...p,...g,...h,...o},e[9]=s.bg,e[10]=s.text,e[11]=o,e[12]=p,e[13]=g,e[14]=h,e[15]=x):x=e[15];let b;e[16]!==a?(b=r.jsx("span",{className:"truncate",children:a}),e[16]=a,e[17]=b):b=e[17];let S;e[18]!==x||e[19]!==b?(S=r.jsx(ye,{asChild:!0,children:r.jsx("div",{className:"absolute flex items-center px-2 text-2xs font-medium truncate cursor-default",style:x,children:b})}),e[18]=x,e[19]=b,e[20]=S):S=e[20];let T;e[21]!==n?(T=r.jsx(We,{variant:n}),e[21]=n,e[22]=T):T=e[22];let f;return e[23]!==T||e[24]!==S?(f=r.jsxs(je,{children:[S,T]}),e[23]=T,e[24]=S,e[25]=f):f=e[25],f}function Kt(t){const e=K.c(71),{decofile:n}=t,s=X(),[o,a]=Z.useState("calendar"),[l,c]=Z.useState(Ye),[i,d]=Z.useState(!1);let m,u,p;if(e[0]!==n||e[1]!==i){const M=He(n);m=M.filter(Ke).length,p=i?M:M.filter(Ue),u=Ve(p.map(Ge)),e[0]=n,e[1]=i,e[2]=m,e[3]=u,e[4]=p}else m=e[2],u=e[3],p=e[4];const g=u;let h;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=()=>c(me(new Date)),e[5]=h):h=e[5];const x=h;let b;e[6]!==o?(b=()=>c(M=>o==="calendar"?U(M,-1):U(M,-3)),e[6]=o,e[7]=b):b=e[7];const S=b;let T;e[8]!==o?(T=()=>c(M=>o==="calendar"?U(M,1):U(M,3)),e[8]=o,e[9]=T):T=e[9];const f=T;let v;e[10]!==s?(v=s("sandbox.variantCalendar.today"),e[10]=s,e[11]=v):v=e[11];let y;e[12]!==v?(y=r.jsx(ee,{variant:"outline",size:"sm",onClick:x,children:v}),e[12]=v,e[13]=y):y=e[13];let N;e[14]!==s?(N=s("sandbox.variantCalendar.previous"),e[14]=s,e[15]=N):N=e[15];let $;e[16]===Symbol.for("react.memo_cache_sentinel")?($=r.jsx(xe,{size:16}),e[16]=$):$=e[16];let _;e[17]!==S||e[18]!==N?(_=r.jsx(ee,{variant:"ghost",size:"icon",onClick:S,"aria-label":N,children:$}),e[17]=S,e[18]=N,e[19]=_):_=e[19];let k;e[20]!==s?(k=s("sandbox.variantCalendar.next"),e[20]=s,e[21]=k):k=e[21];let C;e[22]===Symbol.for("react.memo_cache_sentinel")?(C=r.jsx(ue,{size:16}),e[22]=C):C=e[22];let L;e[23]!==f||e[24]!==k?(L=r.jsx(ee,{variant:"ghost",size:"icon",onClick:f,"aria-label":k,children:C}),e[23]=f,e[24]=k,e[25]=L):L=e[25];const R=de[l.getMonth()];let A;e[26]!==l?(A=l.getFullYear(),e[26]=l,e[27]=A):A=e[27];let E;e[28]!==R||e[29]!==A?(E=r.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[R," ",A]}),e[28]=R,e[29]=A,e[30]=E):E=e[30];let j;e[31]!==L||e[32]!==E||e[33]!==y||e[34]!==_?(j=r.jsxs("div",{className:"flex items-center gap-2",children:[y,_,L,E]}),e[31]=L,e[32]=E,e[33]=y,e[34]=_,e[35]=j):j=e[35];let D;e[36]!==m||e[37]!==i||e[38]!==s?(D=m>0&&r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(ve,{id:"show-ongoing",checked:i,onCheckedChange:d}),r.jsx(be,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:s("sandbox.variantCalendar.showOngoing",{count:m})})]}),e[36]=m,e[37]=i,e[38]=s,e[39]=D):D=e[39];let V;e[40]===Symbol.for("react.memo_cache_sentinel")?(V=M=>{(M==="calendar"||M==="timeline")&&a(M)},e[40]=V):V=e[40];let F;e[41]===Symbol.for("react.memo_cache_sentinel")?(F=r.jsx(ie,{}),e[41]=F):F=e[41];let w;e[42]!==s?(w=s("sandbox.variantCalendar.calendarMode"),e[42]=s,e[43]=w):w=e[43];let I;e[44]!==w?(I=r.jsxs(se,{value:"calendar",children:[F,w]}),e[44]=w,e[45]=I):I=e[45];let B;e[46]===Symbol.for("react.memo_cache_sentinel")?(B=r.jsx(ge,{}),e[46]=B):B=e[46];let O;e[47]!==s?(O=s("sandbox.variantCalendar.timelineMode"),e[47]=s,e[48]=O):O=e[48];let P;e[49]!==O?(P=r.jsxs(se,{value:"timeline",children:[B,O]}),e[49]=O,e[50]=P):P=e[50];let H;e[51]!==I||e[52]!==P||e[53]!==o?(H=r.jsxs(Ne,{type:"single",variant:"segmented",size:"sm",value:o,onValueChange:V,children:[I,P]}),e[51]=I,e[52]=P,e[53]=o,e[54]=H):H=e[54];let W;e[55]!==D||e[56]!==H?(W=r.jsxs("div",{className:"flex items-center gap-4",children:[D,H]}),e[55]=D,e[56]=H,e[57]=W):W=e[57];let z;e[58]!==j||e[59]!==W?(z=r.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,W]}),e[58]=j,e[59]=W,e[60]=z):z=e[60];let G;e[61]!==g||e[62]!==l||e[63]!==m||e[64]!==i||e[65]!==p||e[66]!==o?(G=p.length===0?r.jsx(qe,{hiddenOngoing:i?0:m}):o==="calendar"?r.jsx(Qe,{monthStart:l,variants:p,colorMap:g}):r.jsx(tt,{monthStart:l,variants:p,colorMap:g}),e[61]=g,e[62]=l,e[63]=m,e[64]=i,e[65]=p,e[66]=o,e[67]=G):G=e[67];let q;return e[68]!==z||e[69]!==G?(q=r.jsxs("div",{className:"flex h-full w-full flex-col",children:[z,G]}),e[68]=z,e[69]=G,e[70]=q):q=e[70],q}function Ge(t){return t.blockKey}function Ue(t){return!t.openEnd}function Ke(t){return t.openEnd}function Ye(){return me(new Date)}function qe(t){const e=K.c(4),{hiddenOngoing:n}=t,s=n===void 0?0:n,o=X();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsx(ie,{size:24,className:"text-muted-foreground/60"}),e[0]=a):a=e[0];let l;return e[1]!==s||e[2]!==o?(l=r.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[a,s>0?r.jsxs(r.Fragment,{children:[r.jsx("div",{children:o("sandbox.variantCalendar.noDatedVariants")}),r.jsx("div",{className:"text-xs text-muted-foreground/80",children:o("sandbox.variantCalendar.hiddenOngoingVariants",{count:s})})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{children:o("sandbox.variantCalendar.noScheduledVariants")}),r.jsx("div",{className:"text-xs text-muted-foreground/80",children:o("sandbox.variantCalendar.dateMatcherInfo")})]})]}),e[1]=s,e[2]=o,e[3]=l):l=e[3],l}const te=20,oe=2,le=28,Je=6;function Qe(t){const e=K.c(17),{monthStart:n,variants:s,colorMap:o}=t;let a,l,c,i,d;if(e[0]!==o||e[1]!==n||e[2]!==s){const p=_e(n),g=ke(new Date);a=ce,d="flex-1 min-h-0",l="min-w-[840px]",e[8]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:Se.map(Ze)}),e[8]=c):c=e[8],i=p.map((h,x)=>{const b=Ee(h,s),S=b.reduce(Xe,0),T=le+S*(te+oe)+8;return r.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[h.map((f,v)=>{const y=f.getMonth()===n.getMonth(),N=f.getTime()===g.getTime();return r.jsx("div",{className:ne("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:r.jsx("span",{className:ne("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:f.getDate()})},v)}),b.map((f,v)=>{const y=pe(o,f.variant.blockKey),N=le+f.lane*(te+oe),$=f.leftUnits/7*100,_=f.widthUnits/7*100,k=f.variant.openStart&&x===0,C=f.variant.openEnd&&x===p.length-1;return r.jsxs(he,{variant:f.variant,color:y,fadeStart:k,fadeEnd:C,style:{top:N,left:`calc(${$}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:Je,height:te},children:[f.variant.blockLabel,f.variant.label!==f.variant.blockLabel&&r.jsxs("span",{className:"opacity-70",children:[" · ",f.variant.label]})]},`${x}-${v}`)})]},x)}),e[0]=o,e[1]=n,e[2]=s,e[3]=a,e[4]=l,e[5]=c,e[6]=i,e[7]=d}else a=e[3],l=e[4],c=e[5],i=e[6],d=e[7];let m;e[9]!==l||e[10]!==c||e[11]!==i?(m=r.jsxs("div",{className:l,children:[c,i]}),e[9]=l,e[10]=c,e[11]=i,e[12]=m):m=e[12];let u;return e[13]!==a||e[14]!==d||e[15]!==m?(u=r.jsx(a,{className:d,children:m}),e[13]=a,e[14]=d,e[15]=m,e[16]=u):u=e[16],u}function Xe(t,e){return Math.max(t,e.lane+1)}function Ze(t){return r.jsx("div",{className:"px-2 py-2 text-center",children:t},t)}const J=4,et=32,Y=240;function tt(t){const e=K.c(23),{monthStart:n,variants:s,colorMap:o}=t,a=n,l=U(n,J),c=new Date,i=new Map;for(const E of s){const j=i.get(E.blockKey)??[];j.push(E),i.set(E.blockKey,j)}const d=Array.from(i.entries()).sort(rt),m=l.getTime()-a.getTime(),u=E=>(Math.max(a.getTime(),Math.min(l.getTime(),E.getTime()))-a.getTime())/m*100;let p;e[0]!==a?(p=(E,j)=>U(a,j),e[0]=a,e[1]=p):p=e[1];const g=Array.from({length:J},p),h=c.getTime()>=a.getTime()&&c.getTime()<=l.getTime()?u(c):null,x=X(),b=ce,S="flex-1 min-h-0",T="min-w-[900px] relative";let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f={width:Y},e[2]=f):f=e[2];let v;e[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),e[3]=x,e[4]=v):v=e[4];let y;e[5]!==v?(y=r.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold text-muted-foreground border-r",style:f,children:v}),e[5]=v,e[6]=y):y=e[6];let N;e[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},e[7]=N):N=e[7];const $=g.map(st);let _;e[8]!==$?(_=r.jsx("div",{className:"flex-1 grid",style:N,children:$}),e[8]=$,e[9]=_):_=e[9];let k;e[10]!==y||e[11]!==_?(k=r.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),e[10]=y,e[11]=_,e[12]=k):k=e[12];let C;e[13]!==x||e[14]!==h?(C=h!==null&&r.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${Y}px + (100% - ${Y}px) * ${h} / 100)`},children:r.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-2xs font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),e[13]=x,e[14]=h,e[15]=C):C=e[15];const L=d.map(E=>{const[j,D]=E,V=pe(o,j),F=D[0]?.blockLabel??j;return r.jsxs("div",{children:[r.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold text-muted-foreground",style:{height:28},children:r.jsx("div",{className:"px-3 truncate",style:{width:Y},children:F})}),D.map((w,I)=>r.jsxs("div",{className:"flex border-b items-center",style:{height:et},children:[r.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[r.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:V.bg}}),r.jsx("span",{className:"truncate text-foreground/80",children:w.label})]}),r.jsxs("div",{className:"relative flex-1 h-full",children:[r.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},children:g.map(nt)}),(()=>{const B=Math.max(w.start.getTime(),a.getTime()),O=Math.min(w.end.getTime(),l.getTime());if(O<=B)return null;const P=u(new Date(B)),H=u(new Date(O))-P;return r.jsx(he,{variant:w,color:V,fadeStart:w.openStart,fadeEnd:w.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${H}% - 2px)`,height:22},children:w.label})})()]})]},I))]},j)});let R;e[16]!==k||e[17]!==C||e[18]!==L?(R=r.jsxs("div",{className:T,children:[k,C,L]}),e[16]=k,e[17]=C,e[18]=L,e[19]=R):R=e[19];let A;return e[20]!==b||e[21]!==R?(A=r.jsx(b,{className:S,children:R}),e[20]=b,e[21]=R,e[22]=A):A=e[22],A}function nt(t,e){return r.jsx("div",{className:"border-r last:border-r-0 border-border/40"},e)}function st(t,e){return r.jsxs("div",{className:"px-2 py-2 text-xs text-muted-foreground border-r last:border-r-0",children:[de[t.getMonth()]?.slice(0,3)," ",t.getFullYear()]},e)}function rt(t,e){return t[0].localeCompare(e[0])}export{Kt as VariantCalendar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{al as $,ai as f}from"./parse-sections-
|
|
1
|
+
import{al as $,ai as f}from"./parse-sections-Ce8e3CyM.js";const v="x-deco-matchers-override";function h({pageKey:n,prefix:r,variants:t,selectedIndex:a,decofile:i,meta:s}){if(!n||a<0||a>=t.length)return[];const o=[];for(let e=0;e<=a;e++){const u=t[e];if(!u)continue;const c=u.rule,l=e===a?"1":"0",d=($(c,i,s)?f(c,i,s):null)??`${n}@${r}.${e}.rule`;o.push(`${d}=${l}`)}return o}function p(n,r,t,a){return!r.multivariate||r.variants.length<=1?[]:h({pageKey:n,prefix:"sections.variants",variants:r.variants,selectedIndex:r.index,decofile:t,meta:a})}function x({pageKey:n,page:r,sectionIndex:t,sectionLazy:a,mvObj:i,selectedVariantIndex:s,decofile:o,meta:e}){if(t<0)return[];const c=`${r.multivariate?`sections.variants.${r.index}.value${r.lazyValues?".value":""}`:"sections"}.${t}${a?".section":""}.variants`,l=Array.isArray(i.variants)?i.variants:[];return h({pageKey:n,prefix:c,variants:l,selectedIndex:s,decofile:o,meta:e})}function y(n,r){const t=`${r}@`;return n.map(a=>a.startsWith(t)?`props.${a.slice(t.length)}`:a)}function B(n,r){if(r.length===0)return n;try{const t=new URL(n,"http://local");t.searchParams.delete(v);for(const a of r)t.searchParams.append(v,a);return n.startsWith("http")?t.toString():`${t.pathname}${t.search}${t.hash}`}catch{return n}}export{x as a,p as b,y as i,B as w};
|