decocms 4.592.2 → 4.593.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-D5KUH9aP.js → AlertCircle-BPb6lfDc.js} +1 -1
- package/dist/client/assets/{AreaChart-DAGS5k5t.js → AreaChart-Yh5pBNgF.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BqxEWJRJ.js → ArrowLeft-D_px05Ip.js} +1 -1
- package/dist/client/assets/{ArrowRight-DjWuVnw_.js → ArrowRight-DYc-7xj5.js} +1 -1
- package/dist/client/assets/{ArrowUp-BVV7udcb.js → ArrowUp-bsUZSt57.js} +1 -1
- package/dist/client/assets/{BookOpen01-CoK1OERh.js → BookOpen01-CKzuPfPT.js} +1 -1
- package/dist/client/assets/{CartesianChart-CPqTQdcQ.js → CartesianChart-8sA8UDc5.js} +1 -1
- package/dist/client/assets/{CategoricalChart-FaY7Tr84.js → CategoricalChart-D0wEIkFu.js} +1 -1
- package/dist/client/assets/{CheckCircle-SEWTiMAU.js → CheckCircle-Dvda272I.js} +1 -1
- package/dist/client/assets/{ChevronDown-LxeNvpXL.js → ChevronDown-C0zFtKr8.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-ZD3Xf8FS.js → ChevronSelectorVertical-BtbkxpS7.js} +1 -1
- package/dist/client/assets/{ChevronUp-CILhidIn.js → ChevronUp-CHkdbh-i.js} +1 -1
- package/dist/client/assets/{CreditCard01-DLH3nD2I.js → CreditCard01-BnEtKIxX.js} +1 -1
- package/dist/client/assets/{Eye-Cwc2L5bD.js → Eye-CE9bd3Ra.js} +1 -1
- package/dist/client/assets/{File02-Dhl2OuYi.js → File02-OGn6eCfs.js} +1 -1
- package/dist/client/assets/{Fingerprint04-CcJxtehj.js → Fingerprint04-ZnmHU3Kp.js} +1 -1
- package/dist/client/assets/{Globe04-cwFPCyAd.js → Globe04-BK5-p2nj.js} +1 -1
- package/dist/client/assets/{Image01-CJ09Qnh4.js → Image01-Do_f-fPi.js} +1 -1
- package/dist/client/assets/{Key01-DZQnbai-.js → Key01-C2Ozqf6q.js} +1 -1
- package/dist/client/assets/{LayoutLeft-Cr0-AZjy.js → LayoutLeft-tXOkIxzs.js} +1 -1
- package/dist/client/assets/{LinkBroken01-cdrBDwfG.js → LinkBroken01-sFiApfPs.js} +1 -1
- package/dist/client/assets/{MessageCircle01-Kkl25Jfx.js → MessageCircle01-LN8Gr1lL.js} +1 -1
- package/dist/client/assets/{Minus-3rD0shdq.js → Minus-vz8sJtmc.js} +1 -1
- package/dist/client/assets/{Monitor01-_Bu4OJZN.js → Monitor01-Ctq4Y9xp.js} +1 -1
- package/dist/client/assets/{Play-_Pdc3kM3.js → Play-B5OMs0GO.js} +1 -1
- package/dist/client/assets/{Plus-BBQdiVJ5.js → Plus-KLH-MPJh.js} +1 -1
- package/dist/client/assets/{ReferenceLine-C0NjVUhC.js → ReferenceLine-Hl32My8w.js} +1 -1
- package/dist/client/assets/{SearchMd-BedQ2o1n.js → SearchMd-1p8IP99o.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-CPxgeD0F.js → ShoppingBag01-BZ5p5Jaw.js} +1 -1
- package/dist/client/assets/{Sun-znGwN2L9.js → Sun-8QBdDNyc.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DPWXsWlS.js → SwitchHorizontal01-BRSeU65r.js} +1 -1
- package/dist/client/assets/{Tool01-fK7BhgkG.js → Tool01-CIkfFpNs.js} +1 -1
- package/dist/client/assets/{Tooltip-CTchlMRL.js → Tooltip-B9ptxG-X.js} +1 -1
- package/dist/client/assets/{Trash01-BeuUHphn.js → Trash01-1e348d5z.js} +1 -1
- package/dist/client/assets/{TrendUp01-cpRZOv8f.js → TrendUp01-Sag3n7qI.js} +1 -1
- package/dist/client/assets/{Upload01-D4ZiwOqG.js → Upload01-DQiq1N5L.js} +1 -1
- package/dist/client/assets/{UserCheck01-9S8_72tt.js → UserCheck01-Dq2vpnim.js} +1 -1
- package/dist/client/assets/{UserSquare-BMWZSzB5.js → UserSquare-BAlzvt_y.js} +1 -1
- package/dist/client/assets/{Users01-DdW-kz9j.js → Users01-CJNRoJXK.js} +1 -1
- package/dist/client/assets/{XClose-CAGAFiZF.js → XClose-CQjSvos9.js} +1 -1
- package/dist/client/assets/{Zap-Cdlyv0L3.js → Zap-BbT-W69e.js} +1 -1
- package/dist/client/assets/{access-gate-DS2C6Xm9.js → access-gate-BwaSQQ2b.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BBtIrteq.js → add-connection-dialog-b9bCaaJ-.js} +1 -1
- package/dist/client/assets/agent-app-qi4Zg0Ko.js +1 -0
- package/dist/client/assets/{agent-assets-CalTJh9N.js → agent-assets-epUkCzig.js} +1 -1
- package/dist/client/assets/{agent-automation-C2qWl_FD.js → agent-automation-DN5QlWy_.js} +1 -1
- package/dist/client/assets/{agent-automations-potq4gky.js → agent-automations-DeGcvAoe.js} +1 -1
- package/dist/client/assets/{agent-blog-DKClcbTx.js → agent-blog-C-T8yJPu.js} +2 -2
- package/dist/client/assets/{agent-blog-post-CuruDt5o.js → agent-blog-post-spGtFEpJ.js} +2 -2
- package/dist/client/assets/{agent-calendar-u7ayVNwH.js → agent-calendar-EBTKBv82.js} +1 -1
- package/dist/client/assets/{agent-capabilities-B4Lld0oU.js → agent-capabilities-Dsy9OzBC.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-CJy6lRiJ.js → agent-connect-sources-B2TM-6qo.js} +1 -1
- package/dist/client/assets/agent-deck-8F4Y3xtF.js +1 -0
- package/dist/client/assets/{agent-e2e-DVLgpwM3.js → agent-e2e-DMK6Z36v.js} +1 -1
- package/dist/client/assets/agent-experiments-CxOy1OMh.js +1 -0
- package/dist/client/assets/agent-file-BHPXEsLM.js +1 -0
- package/dist/client/assets/{agent-hosting-CgFCTT3F.js → agent-hosting-DOLRQkiF.js} +1 -1
- package/dist/client/assets/{agent-icon-CbqZaGjI.js → agent-icon-CFsULo4q.js} +1 -1
- package/dist/client/assets/agent-library-BDMtzZv5.js +1 -0
- package/dist/client/assets/agent-library-file-BU6GZbp1.js +1 -0
- package/dist/client/assets/agent-overview-BpZl9px0.js +1 -0
- package/dist/client/assets/{agent-releases-D6j70hAT.js → agent-releases-BojH--RB.js} +1 -1
- package/dist/client/assets/agent-settings-CmejIfdg.js +1 -0
- package/dist/client/assets/{agent-site-editor-D0YJwaQg.js → agent-site-editor-BiguEz5z.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-CsUpsDOZ.js +2 -0
- package/dist/client/assets/agent-site-editor-content-DcDYGjSi.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-DoYr2JdT.js +1 -0
- package/dist/client/assets/agent-view-5HH2xFah.js +1 -0
- package/dist/client/assets/{agent-view-guard-pWe6uesQ.js → agent-view-guard-BRen2fDa.js} +1 -1
- package/dist/client/assets/{ai-providers-B-M5hh76.js → ai-providers-X4uIftAC.js} +1 -1
- package/dist/client/assets/{alert-5bEEtsfN.js → alert-D6c8UL8s.js} +1 -1
- package/dist/client/assets/{analytics-sections-D0x_r2oW.js → analytics-sections-BeagNbn2.js} +1 -1
- package/dist/client/assets/{api-keys-CAhgp9vb.js → api-keys-Bhaq6l4m.js} +1 -1
- package/dist/client/assets/api-keys-tTCGO1A5.js +1 -0
- package/dist/client/assets/{app-editor-DuZCVVnI.js → app-editor-BDvMcyIq.js} +1 -1
- package/dist/client/assets/{asset-utils-Dv5ttPvc.js → asset-utils-DedHJB9N.js} +1 -1
- package/dist/client/assets/{auth-D2yumac2.js → auth-WUI0GELm.js} +1 -1
- package/dist/client/assets/{auth-catchall-BV9XtGhp.js → auth-catchall-36sTseza.js} +1 -1
- package/dist/client/assets/{auth-entry-DMLnrHNU.js → auth-entry-BtvDZBee.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DalaOB1a.js → auth-split-layout-DbgIe7Q7.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-8dpJUMSW.js → authenticate-and-persist-oauth-D7yFnk3v.js} +1 -1
- package/dist/client/assets/{automation-list-row-C8Iqltui.js → automation-list-row-B-bTXdxL.js} +1 -1
- package/dist/client/assets/{automation-runs-Ck0ZzqBQ.js → automation-runs-DTOCdqSY.js} +1 -1
- package/dist/client/assets/{automations-CBbPPFJx.js → automations-BXXmJoq9.js} +1 -1
- package/dist/client/assets/{badge-AJbQpgjT.js → badge-xkOOGTR2.js} +1 -1
- package/dist/client/assets/{block-document-GQbbXcII.js → block-document-ClS1Gx3q.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-DKVfDYSC.js → blocks-preview-workspace-context-BOiyLqjl.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-C_4eq-6V.js → blocks-tab-states-Dgkd6bcn.js} +1 -1
- package/dist/client/assets/{blog-preview-url-CQOZ13uY.js → blog-preview-url-CQF91dum.js} +1 -1
- package/dist/client/assets/{blog-schema-CfZz70TF.js → blog-schema-B993jmPJ.js} +1 -1
- package/dist/client/assets/{blog-source-gate-ut-SC3ut.js → blog-source-gate-B40koNXU.js} +1 -1
- package/dist/client/assets/{blog-view-gate-I0paVCHY.js → blog-view-gate-DYONh8sE.js} +1 -1
- package/dist/client/assets/{buckets-DKJFdCz-.js → buckets-W8OuOQja.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-Do8PESol.js → build-improve-prompt-doc-7R1He4iw.js} +1 -1
- package/dist/client/assets/{calendar-R2KUvbfB.js → calendar-CCy2brqO.js} +1 -1
- package/dist/client/assets/{capability-load-error-DiEnCl11.js → capability-load-error-74rIpav9.js} +1 -1
- package/dist/client/assets/{category-editor-BWDMEDOg.js → category-editor-DrOqNXNY.js} +1 -1
- package/dist/client/assets/{category-tree-CGnWD8bR.js → category-tree-B08EozIk.js} +1 -1
- package/dist/client/assets/{chart-Dwn3tCNg.js → chart-DVwx0iDS.js} +1 -1
- package/dist/client/assets/{chat-context-Br0_Nahk.js → chat-context-Dk_Ebz6D.js} +1 -1
- package/dist/client/assets/{chat-draft-iO3_6Jx0.js → chat-draft-x-F0ZPWu.js} +1 -1
- package/dist/client/assets/{checkbox-DvJCCHFO.js → checkbox-DR00CmJr.js} +1 -1
- package/dist/client/assets/{choose-editor-CwBWy6BQ.js → choose-editor-3geZkU-m.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DCqbc6LY.js → cli-auth-success-CX_XFx5r.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-DQjC5wc_.js → cms-settings-editor-DMhLCkuK.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-DyXiX6He.js → cms-store-drafts-BdqXOATK.js} +1 -1
- package/dist/client/assets/{collapsible-Bx9_Qs2D.js → collapsible-C5AFdLwb.js} +1 -1
- package/dist/client/assets/{collection-detail-BtRChlul.js → collection-detail-DJYxfZho.js} +1 -1
- package/dist/client/assets/{collection-display-button-BGYKpwje.js → collection-display-button-BS2sbab3.js} +1 -1
- package/dist/client/assets/{collection-search-EjJQzLhT.js → collection-search-ugxEd4a5.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Bi0vtXds.js → collection-table-wrapper-omwG60bs.js} +1 -1
- package/dist/client/assets/{collection-tabs-BpC7onx1.js → collection-tabs-BsiuG_yk.js} +1 -1
- package/dist/client/assets/{combobox-ChQuD_kP.js → combobox-BYBZebi0.js} +1 -1
- package/dist/client/assets/{command-Drs7AH9E.js → command-CRJnywSm.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DCBNp3xu.js → companion-mcps-section-C5X6hxKV.js} +1 -1
- package/dist/client/assets/{config-DiNwrg2p.js → config-Br1Io2is.js} +1 -1
- package/dist/client/assets/{connect-CWVEU9mW.js → connect-BvcW8HFx.js} +1 -1
- package/dist/client/assets/{connect-key-yfxIO9H6.js → connect-key-Bng8UgOW.js} +1 -1
- package/dist/client/assets/{connect-layout-By3PVtw3.js → connect-layout-BK-aWbrg.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-BhZgbctF.js → connect-source-dialog-D8TZSkBE.js} +1 -1
- package/dist/client/assets/{connection-HKlWUwCA.js → connection-C7PBWSJ2.js} +1 -1
- package/dist/client/assets/{connection-card-C2xvu4hL.js → connection-card-DbjUpBUS.js} +1 -1
- package/dist/client/assets/{connection-detail-C9tCIvVb.js → connection-detail-FZzRV6Ym.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BNURlrF-.js → connection-form-helpers-tAcDvyB7.js} +1 -1
- package/dist/client/assets/{connection-slug-DJeRgCeN.js → connection-slug-xMtStNjP.js} +1 -1
- package/dist/client/assets/{connections-Bcc0rRUz.js → connections-IQMsafFW.js} +1 -1
- package/dist/client/assets/{content-tab-BBTecs8G.js → content-tab-Dby-qF-f.js} +3 -3
- package/dist/client/assets/{context-CLjo3rK5.js → context-jsYDuqDI.js} +1 -1
- package/dist/client/assets/{context-menu-BX1yiQCC.js → context-menu-Cvn-dR-4.js} +1 -1
- package/dist/client/assets/{context-shell-CgvwVHRz.js → context-shell-Bm22btDj.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-DyV2VOWM.js → create-organization-dialog-CXfqVYbt.js} +1 -1
- package/dist/client/assets/{daily-pulse-CpFr4HQv.js → daily-pulse-CxBxkzGT.js} +1 -1
- package/dist/client/assets/{delete-copy-BD-re7ed.js → delete-copy-tGyXeEYr.js} +1 -1
- package/dist/client/assets/{device-hint-YFnfB9d5.js → device-hint-D3KIwRP_.js} +1 -1
- package/dist/client/assets/{discover-Snv3L9z9.js → discover-UPogBeQB.js} +1 -1
- package/dist/client/assets/{domain-settings-0TFRceL6.js → domain-settings-DarbfYc3.js} +1 -1
- package/dist/client/assets/{drawer-CZIwKDEe.js → drawer-CQosC7Hh.js} +1 -1
- package/dist/client/assets/{editor-R-mfj3HC.js → editor-DnZdk2c2.js} +1 -1
- package/dist/client/assets/{editor-classes-BR1dEuJg.js → editor-classes-CiUorYg6.js} +1 -1
- package/dist/client/assets/{empty-message-AFlBvFjm.js → empty-message-CG0mkpBx.js} +1 -1
- package/dist/client/assets/{empty-state-D1sFvo-t.js → empty-state-B5kfNSn2.js} +1 -1
- package/dist/client/assets/{empty-state-Cvmj0nvN.js → empty-state-D4GKvYHp.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-BVBOAbKE.js → experiments-tab-choice-BNwFp10h.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Ci57d_Cg.js → extract-connection-data-BwsA-RYq.js} +1 -1
- package/dist/client/assets/{feature-gate-CnMCUaqr.js → feature-gate-WGXGW3TJ.js} +1 -1
- package/dist/client/assets/{feature-paywall-tOP99fEf.js → feature-paywall-CXj-cCjT.js} +1 -1
- package/dist/client/assets/{file-explorer-CjZv4WOb.js → file-explorer-CQ0OZXxU.js} +1 -1
- package/dist/client/assets/{file-preview-BKDOcv5u.js → file-preview-CimYREH1.js} +1 -1
- package/dist/client/assets/{file-share-button-6AyWQ3fL.js → file-share-button-BAqDjZ0D.js} +1 -1
- package/dist/client/assets/{file-type-icon-CUAIqb0z.js → file-type-icon-Cst2WgHg.js} +1 -1
- package/dist/client/assets/{folder-icon-Ct0_Hjyy.js → folder-icon-h8_LtFFJ.js} +1 -1
- package/dist/client/assets/{form-BCjNPu_G.js → form-Bmlz7qRb.js} +1 -1
- package/dist/client/assets/{frame-navigation-CCxIxzQx.js → frame-navigation-DiMr25uz.js} +1 -1
- package/dist/client/assets/{gateway-client-T4tRI1DZ.js → gateway-client-Dcj5rv8f.js} +1 -1
- package/dist/client/assets/{general-B4QcysMt.js → general-BTp6LTq7.js} +1 -1
- package/dist/client/assets/{github-icon-Bj6aB_74.js → github-icon-HoxHOYky.js} +1 -1
- package/dist/client/assets/{held-block-view-CVoaYcbW.js → held-block-view-CB9_UtVc.js} +1 -1
- package/dist/client/assets/{home-BotwssFa.js → home-CTP0vpaw.js} +1 -1
- package/dist/client/assets/{home-overview-BCItKCzm.js → home-overview-oJuOP6Jj.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-Bt7kG5pY.js → hosted-reconcile-DipRdTAf.js} +1 -1
- package/dist/client/assets/{icon-button-Bh_KxqdI.js → icon-button-CkP-MdlY.js} +1 -1
- package/dist/client/assets/{index-vFqlr0Vd.js → index-B7BDvGS9.js} +1 -1
- package/dist/client/assets/{index-MO7rMyL2.js → index-BGvfgBXQ.js} +3 -3
- package/dist/client/assets/{index-BhxvEgY7.js → index-C4-rqYj_.js} +1 -1
- package/dist/client/assets/{index-BVWw-y7S.js → index-C5wldXHS.js} +1 -1
- package/dist/client/assets/{index-DiXT9WgV.js → index-CpqnzQ6X.js} +1 -1
- package/dist/client/assets/{index-CidJHkwh.js → index-CrMNCOay.js} +1 -1
- package/dist/client/assets/{index-CGg95L06.js → index-CtgoU6en.js} +1 -1
- package/dist/client/assets/{index-BDVBi3tK.js → index-Cy5OtK8P.js} +1 -1
- package/dist/client/assets/{index-D3dVYZav.js → index-D4nZeJZF.js} +1 -1
- package/dist/client/assets/{index-ITNJaG_b.js → index-DCNDjBOm.js} +1 -1
- package/dist/client/assets/{index-BF35jF2Y.js → index-DFEtjxfd.js} +1 -1
- package/dist/client/assets/{index-BnBpDCQP.js → index-DGcnGUGR.js} +1 -1
- package/dist/client/assets/{index-D92f4v43.js → index-Dj_uCaww.js} +1 -1
- package/dist/client/assets/{index-BH6HGbCE.js → index-fjBXVTkP.js} +1 -1
- package/dist/client/assets/{index-Dw1YtAkf.js → index-jEofb67j.js} +1 -1
- package/dist/client/assets/{index-DbDnBcLD.js → index-oZBvLpfd.js} +1 -1
- package/dist/client/assets/{index-redirect-DG7-rRdr.js → index-redirect-DTMlUMlL.js} +1 -1
- package/dist/client/assets/{index-C8GbHpGQ.js → index-ztFBZP-a.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BxwhD4H0.js → infiniteQueryObserver-CjHha6VI.js} +1 -1
- package/dist/client/assets/{infra-billing-DZecAEYq.js → infra-billing-R5GG28fc.js} +1 -1
- package/dist/client/assets/{input-BIybT1jg.js → input-CIXcgL8B.js} +3 -3
- package/dist/client/assets/{input-D4iUcgN8.js → input-CWx7kP2y.js} +1 -1
- package/dist/client/assets/{integration-icon-ldo7fQV8.js → integration-icon-nO6TvSsO.js} +1 -1
- package/dist/client/assets/{item-actions-BNp43MXE.js → item-actions-DHBqlB8t.js} +1 -1
- package/dist/client/assets/{jira-icon-D6ku9u_m.js → jira-icon-DX-tTt4z.js} +1 -1
- package/dist/client/assets/{label-DW08pOC1.js → label-2ri5y0AT.js} +1 -1
- package/dist/client/assets/{layout-BjEs-Cxz.js → layout-m0ghuzGv.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-DRhpjAg-.js → legacy-admin-welcome-dialog-dJnURvJJ.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BF0nmLmC.js → legacy-agents-deep-JluLJXF7.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-DJ8wT7wl.js → legacy-main-redirect-COiP2ETV.js} +1 -1
- package/dist/client/assets/library-Wi-0o3Yx.js +1 -0
- package/dist/client/assets/{library-tab-BDzhyi40.js → library-tab-CAU7uiMF.js} +1 -1
- package/dist/client/assets/{login-1wF7gB3H.js → login-DgFE1SmG.js} +1 -1
- package/dist/client/assets/{markdown-B18jmWme.js → markdown-Du_1i_DV.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-CBA75Abd.js → mcp-app-renderer-CHuh8eBE.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DezDML-a.js → mcp-oauth-Be_pa5Ik.js} +1 -1
- package/dist/client/assets/{mcp-oauth-ClVkIX7P.js → mcp-oauth-Bppcz_3X.js} +1 -1
- package/dist/client/assets/{members-CiuKfwLy.js → members-CS-oK1Zf.js} +1 -1
- package/dist/client/assets/{memory-Bc7Mb2-z.js → memory-Bl0VJnb1.js} +1 -1
- package/dist/client/assets/{mock-board-C1WLn6nl.js → mock-board-BQeILTVh.js} +3 -3
- package/dist/client/assets/{monaco-editor-PpyawAp-.js → monaco-editor-DCzjvWW2.js} +1 -1
- package/dist/client/assets/{monitoring-L0i3EmVI.js → monitoring-B4nvDMf7.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-D8Uq6b4K.js → monitoring-stats-row-BK9I1n3g.js} +1 -1
- package/dist/client/assets/{multi-select-BD20VJsB.js → multi-select-DLpc9WGW.js} +1 -1
- package/dist/client/assets/{mustache-bLafuh-c.js → mustache-fgm1GoLm.js} +1 -1
- package/dist/client/assets/{named-rule-step-DO2fBBkb.js → named-rule-step-ikHUM8J-.js} +1 -1
- package/dist/client/assets/{named-rule-view-DIU9gKAr.js → named-rule-view-BJLF9MVt.js} +1 -1
- package/dist/client/assets/{new-project-dialog-CkizuZx2.js → new-project-dialog-BfJtWdgg.js} +1 -1
- package/dist/client/assets/{new-project-store-CC3LFRfZ.js → new-project-store-CUIYzGdu.js} +1 -1
- package/dist/client/assets/{oauth-callback-DRhPPvAM.js → oauth-callback-DAF-HNU5.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DyOTyj1-.js → oauth-callback-ai-provider-BlZK1cl5.js} +1 -1
- package/dist/client/assets/{oauth-consent-Dw8JNL1P.js → oauth-consent-BjKAsSxp.js} +1 -1
- package/dist/client/assets/{onboarding-IpDXA5ym.js → onboarding-CStDT_bk.js} +1 -1
- package/dist/client/assets/{openai-conversation-BrWjBBxt.js → openai-conversation-DJ7Npc2v.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-BI3C8vFz.js → optimistic-project-sidebar-views-CaqEFCbi.js} +1 -1
- package/dist/client/assets/{order-monitor-day-wAiTeHpY.js → order-monitor-day-B3sADUCG.js} +1 -1
- package/dist/client/assets/{organization-choice-BaDb7Qrw.js → organization-choice-vaH8PRN7.js} +1 -1
- package/dist/client/assets/{orgs-QAu31jAb.js → orgs-C-TKQP3D.js} +1 -1
- package/dist/client/assets/{own-accounts-section-BKlM4B9o.js → own-accounts-section-BpgBL9aq.js} +1 -1
- package/dist/client/assets/{pair-Bb7qWgd-.js → pair-M_Ks4KYr.js} +1 -1
- package/dist/client/assets/{parse-sections-BV83Vbwc.js → parse-sections-BuUvGGsv.js} +2 -2
- package/dist/client/assets/{plan-CvGF0eDu.js → plan-D-khZ7ZC.js} +1 -1
- package/dist/client/assets/{plan-ladder-Chs7pQTg.js → plan-ladder-De9sRz_u.js} +1 -1
- package/dist/client/assets/{plan-usage-card-C3hLgJUo.js → plan-usage-card-8gBO_kT7.js} +1 -1
- package/dist/client/assets/{popover-4TIGONM7.js → popover-BdGhwX6j.js} +1 -1
- package/dist/client/assets/{post-calendar-Du2Rttxs.js → post-calendar-CYarN2j3.js} +1 -1
- package/dist/client/assets/{post-editor-BQwZfa_7.js → post-editor-mxtEx2vX.js} +1 -1
- package/dist/client/assets/{preview-content-DdbjwBwE.js → preview-content-Dxe4XKdO.js} +1 -1
- package/dist/client/assets/{preview-dialog-NKP5ZUCh.js → preview-dialog--RYpR3-k.js} +1 -1
- package/dist/client/assets/{preview-panel-BjXSmIdw.js → preview-panel-Bk5cvms4.js} +1 -1
- package/dist/client/assets/{preview-tab-C0mJhOzI.js → preview-tab-BRY7e3Ww.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-Clw0P8Yx.js → product-picker-dialog-CIU4p36P.js} +1 -1
- package/dist/client/assets/{profile-hj49kZVw.js → profile-CA2wDqLs.js} +1 -1
- package/dist/client/assets/{project-app-view-Bo8mUYDh.js → project-app-view-CsobOn93.js} +1 -1
- package/dist/client/assets/{project-apps-C7dyZBXn.js → project-apps-CzXp3RuA.js} +1 -1
- package/dist/client/assets/{project-icon-b7CePoH1.js → project-icon-BUl2sFaB.js} +1 -1
- package/dist/client/assets/{project-index-CLIoU-OZ.js → project-index-D3eqGaeY.js} +1 -1
- package/dist/client/assets/project-reports-DUszwxkV.js +1 -0
- package/dist/client/assets/project-tasks-C9wh-MvK.js +1 -0
- package/dist/client/assets/{projects-OUiTUq8Q.js → projects-DSjvBTqn.js} +1 -1
- package/dist/client/assets/{projects-empty-state-Bzoq2Mv2.js → projects-empty-state-C_4sZ19U.js} +1 -1
- package/dist/client/assets/{prompts-D7lkwEUX.js → prompts-JIqJQ8rm.js} +1 -1
- package/dist/client/assets/record-editor-5hDNYEyc.js +1 -0
- package/dist/client/assets/{redirect-editor-BRPOap1O.js → redirect-editor-CIkflDxt.js} +1 -1
- package/dist/client/assets/reports-BQo9TgIr.js +1 -0
- package/dist/client/assets/{reports-DL0ZkHBi.js → reports-DJZwSZy6.js} +1 -1
- package/dist/client/assets/{reports-onboarding-MjksICLx.js → reports-onboarding-CSkswBMH.js} +1 -1
- package/dist/client/assets/{reports-tab-Dd5PTmQ9.js → reports-tab-6fV3Jvgl.js} +2 -2
- package/dist/client/assets/repositories-BT4LP6yW.js +1 -0
- package/dist/client/assets/{repositories-Dx7vF_BM.js → repositories-BTuTm0L2.js} +1 -1
- package/dist/client/assets/{repository-binding-Do7vBuPV.js → repository-binding-DrxBu24C.js} +1 -1
- package/dist/client/assets/{repository-picker-Dcd9aiW_.js → repository-picker-Darc81nL.js} +1 -1
- package/dist/client/assets/{require-capability-ce-nWmch.js → require-capability-C51SGps0.js} +1 -1
- package/dist/client/assets/{required-auth-layout--ZtxYuuh.js → required-auth-layout-pSTI6t_x.js} +1 -1
- package/dist/client/assets/{reset-password-uqeb2CFP.js → reset-password-BnNzHLPz.js} +1 -1
- package/dist/client/assets/{resizable-6fE_yPv-.js → resizable-BU7UxgwC.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-Dixq_4VG.js → resolve-tab-icon-Bd3WwXB0.js} +1 -1
- package/dist/client/assets/{review-settings-DWdakUtn.js → review-settings-D31XkFbq.js} +1 -1
- package/dist/client/assets/{role-color-B47ji0o4.js → role-color-CJIemPpG.js} +1 -1
- package/dist/client/assets/roles-C7hVcM54.js +1 -0
- package/dist/client/assets/{route-DyhPu8FN.js → route-1boDLy4Y.js} +1 -1
- package/dist/client/assets/route-FPh-7Znc.js +1 -0
- package/dist/client/assets/{route-VSkXLjkl.js → route-ajk3Lz1i.js} +1 -1
- package/dist/client/assets/{route-page-header-BSRlBC43.js → route-page-header-D3RVWIBC.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-CHSdnBz0.js → sandbox-git-api-lqhbN6-M.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-CjFtqtNp.js → sandbox-lifecycle-context-QpFv1h24.js} +1 -1
- package/dist/client/assets/{save-status-CGNNeIuG.js → save-status-96Apsuux.js} +1 -1
- package/dist/client/assets/{schema-BCxhVOYA.js → schema-DIQ-2mII.js} +1 -1
- package/dist/client/assets/{schema-DBMHcQDz.js → schema-DklwT0XH.js} +1 -1
- package/dist/client/assets/{scroll-area-B7ZZjDkc.js → scroll-area-CLaLCTf7.js} +1 -1
- package/dist/client/assets/{search-input-C9wyGnCr.js → search-input-BytjnRYd.js} +1 -1
- package/dist/client/assets/{search-toggle-BvbWTdJj.js → search-toggle-BEH-S2im.js} +1 -1
- package/dist/client/assets/{secret-picker-CAwnMokm.js → secret-picker-k0C3uZq8.js} +1 -1
- package/dist/client/assets/{secrets-C5FAVhBs.js → secrets-1-DGosfc.js} +1 -1
- package/dist/client/assets/{section-array-field-CfZgMt03.js → section-array-field-08gf_aaJ.js} +1 -1
- package/dist/client/assets/{sections-B-LBjmeO.js → sections-DfnSEAao.js} +1 -1
- package/dist/client/assets/{sections-editor-BZjoWIti.js → sections-editor-Cm1IpUw4.js} +1 -1
- package/dist/client/assets/{select-C4o1sG3W.js → select-BH6i4t87.js} +1 -1
- package/dist/client/assets/{select-model-xM3aJpLx.js → select-model-DuodXwbD.js} +1 -1
- package/dist/client/assets/{seo-editor-BLdyA31m.js → seo-editor-vJ_3bHov.js} +1 -1
- package/dist/client/assets/{separator-DeMz2sFE.js → separator-DE4QJAwp.js} +1 -1
- package/dist/client/assets/{session-runtime-Q41itFhJ.js → session-runtime-CnePJMYk.js} +1 -1
- package/dist/client/assets/settings-tab-C97802nQ.js +1 -0
- package/dist/client/assets/{sheet-B2Xi2TGp.js → sheet-CX86ajAE.js} +1 -1
- package/dist/client/assets/{shell-layout-DshbXzec.js → shell-layout-MrR8EGxZ.js} +1 -1
- package/dist/client/assets/{site-draft-actions-Cf-NDME5.js → site-draft-actions-CCPyXgQA.js} +1 -1
- package/dist/client/assets/{site-draft-view-DBgDu-9P.js → site-draft-view-B3wpg14y.js} +1 -1
- package/dist/client/assets/site-editor-BiU8V7py.js +1 -0
- package/dist/client/assets/{site-editor-toast-BgT6nY-u.js → site-editor-toast-DjTYO8yl.js} +1 -1
- package/dist/client/assets/{skills-m5y5TgO3.js → skills-CwoSapY8.js} +1 -1
- package/dist/client/assets/{slider-sWzF4lrQ.js → slider-B1Q72VZH.js} +1 -1
- package/dist/client/assets/{sortable.esm-Bx0ENsgK.js → sortable.esm-CXd3MFy1.js} +1 -1
- package/dist/client/assets/{sso-Dl6996xP.js → sso-DieJGjil.js} +1 -1
- package/dist/client/assets/{suggestion-ClAIVT6i.js → suggestion-Cpa996zU.js} +1 -1
- package/dist/client/assets/{super-agent-icon-n6HwyJOZ.js → super-agent-icon-Db04o97L.js} +1 -1
- package/dist/client/assets/{switch-CG01olp-.js → switch-B7uarNO5.js} +1 -1
- package/dist/client/assets/{synced-repos-BH_hufzQ.js → synced-repos-aIXgLnBB.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-BwPNaoGm.js → tab-icon-glyph-D_VxeQZE.js} +1 -1
- package/dist/client/assets/{table-lwVk270r.js → table-Bta2Y1CD.js} +1 -1
- package/dist/client/assets/{tabs-D9KXSh61.js → tabs-s8CSecQV.js} +1 -1
- package/dist/client/assets/{task-board-DQJM0wWR.js → task-board-DshmncwN.js} +1 -1
- package/dist/client/assets/{task-key-CR5-_7lO.js → task-key-PomUyZRb.js} +1 -1
- package/dist/client/assets/{task-route-D-EgXwEt.js → task-route-DIKoinWO.js} +1 -1
- package/dist/client/assets/{task-status-nm2Pjyoo.js → task-status-LX7lBTjN.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-ilfurRWj.js → taskboard-analytics-DfkqsYeI.js} +1 -1
- package/dist/client/assets/tasks-B2acfxpH.js +1 -0
- package/dist/client/assets/{tasks-_zK3rmyO.js → tasks-BGD-BUHo.js} +1 -1
- package/dist/client/assets/{textarea-zmClYlgL.js → textarea-C_mtz3Kv.js} +1 -1
- package/dist/client/assets/{thread-analytics-B53v30Ds.js → thread-analytics-aGwSdxKv.js} +1 -1
- package/dist/client/assets/{thread-button-Cphg_Vss.js → thread-button-Bc5fnhGX.js} +1 -1
- package/dist/client/assets/{thread-intent-DMRL6sDz.js → thread-intent-DJ2isQQx.js} +1 -1
- package/dist/client/assets/{thread-route-D3VYHnhZ.js → thread-route-C13LdFpr.js} +1 -1
- package/dist/client/assets/{thread-route-CNQzB90t.js → thread-route-DI1GCHqT.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-DqzcXsgN.js → thread-sheet-body-CnbjjV-I.js} +1 -1
- package/dist/client/assets/{time-range-picker-D3MJNAHC.js → time-range-picker-A0UZNhWR.js} +1 -1
- package/dist/client/assets/{toggle-group-DrvndZVz.js → toggle-group-BjeGXB13.js} +1 -1
- package/dist/client/assets/{tool-set-selector-BGOHH-GT.js → tool-set-selector-rXUFKU4u.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DvBHbQbV.js → toolbar-icon-button-BmCu83-X.js} +1 -1
- package/dist/client/assets/{tooltip-DIwuDukB.js → tooltip-D0-ybZJ-.js} +1 -1
- package/dist/client/assets/{tooltipContext-BxWueym6.js → tooltipContext-Dm5XB4Pa.js} +1 -1
- package/dist/client/assets/{track-ZlOhRNyi.js → track-BI5WxsF3.js} +1 -1
- package/dist/client/assets/{types-C4hQwBRx.js → types-DeHdmC2C.js} +1 -1
- package/dist/client/assets/{url-slug-rSp3Rda9.js → url-slug-Bt323BC1.js} +1 -1
- package/dist/client/assets/{usage-stats-D2u99sYi.js → usage-stats-4TwUkhM4.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Dcr5Indu.js → use-ai-providers-Cykm4Omp.js} +1 -1
- package/dist/client/assets/{use-api-keys-CBCDgkKV.js → use-api-keys-QqkV0EMu.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-B1FW5m4W.js → use-apply-named-rule-B0v5Nv1Q.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-CJn-8DXz.js +1 -0
- package/dist/client/assets/{use-automations-DTmAVrPC.js → use-automations-CIfofZgd.js} +1 -1
- package/dist/client/assets/{use-autosave-l_3xEFKv.js → use-autosave-phCMBUyD.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-BUDjuC95.js +1 -0
- package/dist/client/assets/use-blog-view-CZ2egr0r.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-D7adBsgR.js → use-chat-layout-state-BWjgOEMc.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-DS9kHtE_.js → use-cms-publish-actions-CPyM3m5I.js} +1 -1
- package/dist/client/assets/{use-connect-companion-l_KgsSoJ.js → use-connect-companion-eWYXL_LA.js} +1 -1
- package/dist/client/assets/{use-connection-Bw7j7Uwd.js → use-connection-dER7f5j5.js} +1 -1
- package/dist/client/assets/{use-content-sync-ClXRYRNb.js → use-content-sync-BSudZND-.js} +1 -1
- package/dist/client/assets/{use-copy-DecCkxBe.js → use-copy-CzwPMJY2.js} +1 -1
- package/dist/client/assets/{use-current-view-DeCDJ81c.js → use-current-view-BhCzT_on.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-Co0jsQuK.js → use-date-fns-locale-DbDI1yRa.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-iYhBcTY7.js → use-debounced-autosave-BUqTz9gI.js} +1 -1
- package/dist/client/assets/{use-debounced-value-xGNEv6Rk.js → use-debounced-value-DNV71VAt.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BdqVGt-j.js → use-deco-credits-D1eTXz3B.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DVtCMdHA.js → use-decopilot-events-DwV1bANi.js} +1 -1
- package/dist/client/assets/{use-delete-block-eo7flyi6.js → use-delete-block-B3Q8p71v.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DLz_7_n6.js → use-delete-connection-KjVy0n0M.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-0d1N4eUD.js → use-deployment-admin-U97at0FL.js} +1 -1
- package/dist/client/assets/{use-entitlements-BP3notV9.js → use-entitlements-BnUu4797.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-CHhkdxMk.js → use-fast-preview-draft-url-Cyb7nHOV.js} +1 -1
- package/dist/client/assets/{use-file-configs-CnK8u3WE.js → use-file-configs-D-0GlBYS.js} +1 -1
- package/dist/client/assets/{use-id-selection-Dz64XHXo.js → use-id-selection-lO2dafiF.js} +1 -1
- package/dist/client/assets/{use-in-settings-D3fSUwr2.js → use-in-settings-BZ-N_1GQ.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-DSNCooi-.js → use-inbox-feed-adObXP9V.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BxVWwF1L.js → use-infinite-scroll-DuNc__Oo.js} +1 -1
- package/dist/client/assets/{use-join-requests-LDOpP8IH.js → use-join-requests-CGnr0fzd.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DrUKY01x.js → use-main-panel-tabs-C_KJU7HA.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-B3JqhPwz.js → use-mcp-auth-status-CIA9x3GT.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BxwZtaCq.js → use-mcp-client-CsG2AAiF.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DVXJBMOH.js → use-mcp-prompts-DJkMWAp0.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CyWP89hJ.js → use-mcp-tools-C4sfkkEQ.js} +1 -1
- package/dist/client/assets/{use-mobile-YIF3Wusc.js → use-mobile-B4kazYmP.js} +1 -1
- package/dist/client/assets/{use-move-blocks-DHGQIgCD.js → use-move-blocks-CQpVSPWP.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-C0eDqGuW.js → use-navigate-to-agent-CYt8D-re.js} +1 -1
- package/dist/client/assets/{use-never-published-9pO2qpHO.js → use-never-published-Dhj1oB8k.js} +1 -1
- package/dist/client/assets/{use-org-fs-WMr7hZgB.js → use-org-fs-BQ1-EjeH.js} +1 -1
- package/dist/client/assets/{use-org-notice-DkCurK_B.js → use-org-notice-FqFlDSJV.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Hix-DZXq.js → use-org-repo-syncs-DZJLO1tr.js} +1 -1
- package/dist/client/assets/{use-org-sso-C39RdLGk.js → use-org-sso-CCCXGXRa.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Ldg561lS.js → use-organization-settings-CcEgBKiR.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-DPe8y1uz.js → use-panel-navigate-BEVdshk4.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-6XiSd44o.js → use-project-native-view-presence-BWWCr0OJ.js} +1 -1
- package/dist/client/assets/{use-project-scope-CKUt7-UZ.js → use-project-scope-DaSiwM20.js} +1 -1
- package/dist/client/assets/{use-recent-apps-DZ42CAmX.js → use-recent-apps-DJU0pj25.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-BSetGIYZ.js → use-reports-diagnostic-BBFJaws_.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-CdG3bEqD.js → use-sandbox-events-Bh6eTl2p.js} +1 -1
- package/dist/client/assets/{use-secrets-T3rIHPQl.js → use-secrets-DRWI9snD.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BLgw64oy.js → use-section-preview-base-DgxMYdVR.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-CL0AbvKK.js → use-sidebar-collapsed-Cb1DkW28.js} +1 -1
- package/dist/client/assets/{use-tags-BmZS3xsX.js → use-tags-CY161EKU.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DThcUdyP.js → use-task-board-analytics-DstP91hQ.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-DelfLxTq.js → use-task-board-item-prs-DENiL_-n.js} +1 -1
- package/dist/client/assets/{use-task-board-items-B_wcv2Id.js → use-task-board-items-BOf8g772.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-B-XI61PC.js → use-task-board-prompts-Cy7ux4ZM.js} +1 -1
- package/dist/client/assets/{use-task-metadata-D9gPWnv4.js → use-task-metadata-CLvpp-M5.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-Cjc56_eq.js → use-thread-outputs-CBGDKGBc.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-DBwGQmUk.js → use-view-draft-kind-Bm-Nz5rU.js} +1 -1
- package/dist/client/assets/{use-voice-input-CeHYUQqN.js → use-voice-input-l3y10Zzf.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Comohppg.js +1 -0
- package/dist/client/assets/{useQueries-BixFwFDx.js → useQueries-BADhFyMC.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-XSNjcYue.js +1 -0
- package/dist/client/assets/{users-BgaIxOqD.js → users-BlAutU5k.js} +1 -1
- package/dist/client/assets/{utils-CKGqSxtG.js → utils-D3hrWqhu.js} +1 -1
- package/dist/client/assets/{variant-calendar-CXzE5veG.js → variant-calendar-Cf89P2oq.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-BNlpJ0aZ.js → variant-matcher-override-cabGpziX.js} +1 -1
- package/dist/client/assets/{view-header-Kc9IDiyA.js → view-header-CqefLZ8T.js} +1 -1
- package/dist/client/assets/{virtual-mcp-DY3Y2rTl.js → virtual-mcp-BfLRvmz0.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-BYl9msHw.js → watch-sse-pool-mz6vVQb7.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +785 -785
- package/package.json +1 -1
- package/dist/client/assets/agent-app-sC7aUU2F.js +0 -1
- package/dist/client/assets/agent-deck-CNXeZ5xE.js +0 -1
- package/dist/client/assets/agent-experiments-Yp-hZhwD.js +0 -1
- package/dist/client/assets/agent-file-BgaMMtPk.js +0 -1
- package/dist/client/assets/agent-library-DeuL6cH9.js +0 -1
- package/dist/client/assets/agent-library-file-BDKjvutG.js +0 -1
- package/dist/client/assets/agent-overview-D-xkdTrX.js +0 -1
- package/dist/client/assets/agent-settings-ufwlUCGm.js +0 -1
- package/dist/client/assets/agent-site-editor-code-ZxxASUZt.js +0 -2
- package/dist/client/assets/agent-site-editor-content-DTJB0TOB.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-RGx3NYHj.js +0 -1
- package/dist/client/assets/agent-view-CwxSJIuS.js +0 -1
- package/dist/client/assets/api-keys-DVWa8Scs.js +0 -1
- package/dist/client/assets/library-CUYJEilu.js +0 -1
- package/dist/client/assets/project-reports-lk3p006i.js +0 -1
- package/dist/client/assets/project-tasks-CDbHy_xE.js +0 -1
- package/dist/client/assets/record-editor-6X7DPBcJ.js +0 -1
- package/dist/client/assets/reports-BlFykJew.js +0 -1
- package/dist/client/assets/repositories-CzAV4OYB.js +0 -1
- package/dist/client/assets/roles-DPhEU4gx.js +0 -1
- package/dist/client/assets/route-Cp8tx-e9.js +0 -1
- package/dist/client/assets/settings-tab-DU2igppN.js +0 -1
- package/dist/client/assets/site-editor-B8NrksrD.js +0 -1
- package/dist/client/assets/tasks-7XjKLCiZ.js +0 -1
- package/dist/client/assets/use-ask-in-chat-BFnj7bhm.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-C7KCNatE.js +0 -1
- package/dist/client/assets/use-blog-view-BLEcKYhI.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CC5aas3W.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-J27pEun4.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as ue,r as xe,d as ns,a6 as ht,b as Pe,j as t,B as je,t as dt,aY as Yt,am as as,K as bt,i as Et,a7 as As,m as ot,gG as _s,o as cs,h as Ks,e0 as Us,ad as Vs,L as qs,u as Hs,n as _t,E as Wt,R as Bs,dW as Js,hf as Gs,T as Qs,W as Ys,I as Xt}from"./index-
|
|
1
|
+
import{c as ue,r as xe,d as ns,a6 as ht,b as Pe,j as t,B as je,t as dt,aY as Yt,am as as,K as bt,i as Et,a7 as As,m as ot,gG as _s,o as cs,h as Ks,e0 as Us,ad as Vs,L as qs,u as Hs,n as _t,E as Wt,R as Bs,dW as Js,hf as Gs,T as Qs,W as Ys,I as Xt}from"./index-BGvfgBXQ.js";import{S as Ws}from"./search-input-BytjnRYd.js";import{E as Ht}from"./empty-state-B5kfNSn2.js";import{R as Xs}from"./require-capability-C51SGps0.js";import{f as js}from"./pair-M_Ks4KYr.js";import{b as ts}from"./use-connection-dER7f5j5.js";import{g as Ps}from"./connection-slug-xMtStNjP.js";import{B as Lt}from"./badge-xkOOGTR2.js";import{P as ds,a as ms,b as us}from"./popover-BdGhwX6j.js";import{c as Pt,T as Dt,a as Rt,b as Zs}from"./tooltip-D0-ybZJ-.js";import{z as fs,e as Ut,bw as el,av as Ns,K as tl}from"./agent-icon-CFsULo4q.js";import{i as sl}from"./Key01-C2Ozqf6q.js";import{i as ll}from"./Play-B5OMs0GO.js";import{MonacoCodeEditor as bs}from"./monaco-editor-DCzjvWW2.js";import{u as rl}from"./use-mcp-client-CsG2AAiF.js";import{u as il}from"./repository-binding-DrxBu24C.js";import{n as Ot}from"./LinkBroken01-sFiApfPs.js";import{c as ol}from"./SwitchHorizontal01-BRSeU65r.js";import{s as nl}from"./Plus-KLH-MPJh.js";import{s as al}from"./Trash01-1e348d5z.js";import{M as zt}from"./multi-select-DLpc9WGW.js";import{b as yt,a as wt,c as ze,d as St,S as Ct}from"./select-BH6i4t87.js";import{e as ys,T as cl}from"./time-range-picker-A0UZNhWR.js";import{T as dl}from"./textarea-C_mtz3Kv.js";import{C as Ds}from"./collection-tabs-BsiuG_yk.js";import{S as ml}from"./switch-B7uarNO5.js";import{L as ul}from"./label-2ri5y0AT.js";import{I as It}from"./integration-icon-nO6TvSsO.js";import{A as fl,a as xl,b as pl}from"./alert-D6c8UL8s.js";import{K as gt}from"./monitoring-stats-row-BK9I1n3g.js";import{b as Bt}from"./use-entitlements-BnUu4797.js";import{g as gl,b as ws,f as Nt,c as Zt,d as hl,e as Ss,a as xs,h as vl,i as ps,T as jl,j as Nl,r as bl,k as yl}from"./thread-sheet-body-CnbjjV-I.js";import{u as wl}from"./useSuspenseInfiniteQuery-XSNjcYue.js";import{c as Sl,S as Cl,b as Rs,a as Ls}from"./sheet-CX86ajAE.js";import{c as _e,b as vt,d as Jt,e as Gt,T as ge,a as Qt}from"./table-Bta2Y1CD.js";import{t as ss}from"./ChevronDown-C0zFtKr8.js";import{n as ls}from"./ChevronUp-CHkdbh-i.js";import{u as Os}from"./use-id-selection-lO2dafiF.js";import{u as Fs}from"./use-infinite-scroll-DuNc__Oo.js";import{u as Il}from"./useInfiniteQuery-Comohppg.js";import{g as Tl}from"./task-status-LX7lBTjN.js";import{u as kl,d as Ml}from"./use-automations-CIfofZgd.js";import{A as _l}from"./automation-runs-DTOCdqSY.js";import{i as Pl}from"./ArrowLeft-D_px05Ip.js";import{E as Cs}from"./empty-state-D4GKvYHp.js";import{O as $s}from"./watch-sse-pool-mz6vVQb7.js";import{t as Dl}from"./task-key-PomUyZRb.js";import{b as Rl,r as Ll,O as Ol,e as Fl}from"./order-monitor-day-B3sADUCG.js";import{F as $l}from"./feature-gate-WGXGW3TJ.js";import"./SearchMd-1p8IP99o.js";import"./access-gate-BwaSQQ2b.js";import"./capability-load-error-74rIpav9.js";import"./Tool01-CIkfFpNs.js";import"./ArrowRight-DYc-7xj5.js";import"./collapsible-C5AFdLwb.js";import"./use-copy-CzwPMJY2.js";import"./usage-stats-4TwUkhM4.js";import"./utils-CVEq3hMx.js";import"./markdown-Du_1i_DV.js";import"./chat-context-Dk_Ebz6D.js";import"./use-panel-navigate-BEVdshk4.js";import"./thread-route-DI1GCHqT.js";import"./use-project-scope-DaSiwM20.js";import"./use-view-draft-kind-Bm-Nz5rU.js";import"./use-blog-view-CZ2egr0r.js";import"./use-organization-settings-CcEgBKiR.js";import"./schema-DIQ-2mII.js";import"./task-board-DshmncwN.js";import"./thread-intent-DJ2isQQx.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./session-runtime-CnePJMYk.js";import"./use-ai-providers-Cykm4Omp.js";import"./use-current-view-BhCzT_on.js";import"./use-in-settings-BZ-N_1GQ.js";import"./use-decopilot-events-DwV1bANi.js";import"./use-mobile-B4kazYmP.js";import"./File02-OGn6eCfs.js";import"./gateway-client-Dcj5rv8f.js";import"./form-Bmlz7qRb.js";import"./UserCheck01-Dq2vpnim.js";import"./use-task-board-items-BOf8g772.js";import"./config-Br1Io2is.js";import"./AlertCircle-BPb6lfDc.js";import"./CheckCircle-Dvda272I.js";import"./Eye-CE9bd3Ra.js";import"./task-route-DIKoinWO.js";import"./project-index-D3eqGaeY.js";import"./TrendUp01-Sag3n7qI.js";import"./shell-layout-MrR8EGxZ.js";import"./Globe04-BK5-p2nj.js";import"./UserSquare-BAlzvt_y.js";import"./use-deployment-admin-U97at0FL.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-CQjSvos9.js";import"./use-org-notice-FqFlDSJV.js";import"./Monitor01-Ctq4Y9xp.js";import"./Zap-BbT-W69e.js";import"./command-CRJnywSm.js";import"./index-B7BDvGS9.js";import"./project-icon-BUl2sFaB.js";import"./use-navigate-to-agent-CYt8D-re.js";import"./use-debounced-value-DNV71VAt.js";import"./new-project-dialog-BfJtWdgg.js";import"./repository-picker-Darc81nL.js";import"./github-icon-HoxHOYky.js";import"./collection-search-ugxEd4a5.js";import"./BookOpen01-CKzuPfPT.js";import"./ShoppingBag01-BZ5p5Jaw.js";import"./new-project-store-CUIYzGdu.js";import"./legacy-admin-welcome-dialog-dJnURvJJ.js";import"./drawer-CQosC7Hh.js";import"./required-auth-layout-pSTI6t_x.js";import"./use-org-sso-CCCXGXRa.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CHuh8eBE.js";import"./types-DeHdmC2C.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./Image01-Do_f-fPi.js";import"./use-mcp-prompts-DJkMWAp0.js";import"./use-thread-outputs-CBGDKGBc.js";import"./file-type-icon-Cst2WgHg.js";import"./index-CpqnzQ6X.js";import"./ArrowUp-bsUZSt57.js";import"./ChevronSelectorVertical-BtbkxpS7.js";import"./CreditCard01-BnEtKIxX.js";import"./MessageCircle01-LN8Gr1lL.js";import"./Fingerprint04-ZnmHU3Kp.js";import"./LayoutLeft-tXOkIxzs.js";import"./Minus-vz8sJtmc.js";import"./Sun-8QBdDNyc.js";import"./Upload01-DQiq1N5L.js";import"./Users01-CJNRoJXK.js";import"./editor-DnZdk2c2.js";import"./auth-WUI0GELm.js";import"./checkbox-DR00CmJr.js";import"./index-BdQq_4o_.js";import"./scroll-area-CLaLCTf7.js";import"./calendar-CCy2brqO.js";import"./chart-DVwx0iDS.js";import"./CategoricalChart-D0wEIkFu.js";import"./index-CrMNCOay.js";import"./tooltipContext-Dm5XB4Pa.js";import"./CartesianChart-8sA8UDc5.js";import"./AreaChart-Yh5pBNgF.js";import"./infiniteQueryObserver-CjHha6VI.js";import"./useQueries-BADhFyMC.js";import"./ReferenceLine-Hl32My8w.js";import"./feature-paywall-CXj-cCjT.js";import"./plan-ladder-De9sRz_u.js";const rs={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3},zl=["eq","contains","exists","in"];function El(s){return zl.includes(s)}function jt(s){return s.filter(e=>e.key.trim()).map(e=>{const l=encodeURIComponent(e.key.trim()),i=encodeURIComponent(e.value||"");return`${l}:${e.operator}:${i}`}).join(",")}function Al(s){return!s||typeof s!="string"?[]:s.split(",").map(e=>{if(!e)return;const[l,i,...m]=e.split(":"),n=l?decodeURIComponent(l):"";if(n.trim())return{key:n,operator:i&&El(i)?i:"eq",value:decodeURIComponent(m.join(":")||"")}}).filter(e=>e!==void 0)}function Vt(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
|
|
2
2
|
`)}function Is(s){return s.trim()?s.split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[l,...i]=e.split("=");return{key:l||"",operator:"eq",value:i.join("=")}}if(e.includes("~")){const[l,...i]=e.split("~");return{key:l||"",operator:"contains",value:i.join("~")}}if(e.includes("@")){const[l,...i]=e.split("@");return{key:l||"",operator:"in",value:i.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function Kl(s){const e={},l={},i=[],m={};for(const n of s)if(n.key.trim())switch(n.operator){case"eq":n.value&&(e[n.key]=n.value);break;case"contains":n.value&&(l[n.key]=`%${n.value}%`);break;case"exists":i.push(n.key);break;case"in":n.value&&(m[n.key]=n.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(l).length>0?l:void 0,propertyKeys:i.length>0?i:void 0,propertyInValues:Object.keys(m).length>0?m:void 0}}function Ts(s){if(!s)return{content:"null",isTruncated:!1,originalSize:4};const e=s._decocms_truncated;if(typeof e=="string"&&e.length>0)return{content:e,isTruncated:!0,originalSize:e.length};let l;try{l=JSON.stringify(s,null,2)}catch{return{content:"[Unable to serialize JSON]",isTruncated:!1,originalSize:0}}const i=l.length;return i<=rs.maxJsonRenderSize?{content:l,isTruncated:!1,originalSize:i}:{content:l.slice(0,rs.maxJsonRenderSize)+`
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,j as t,c6 as o}from"./index-
|
|
1
|
+
import{r as i,j as t,c6 as o}from"./index-BGvfgBXQ.js";var s=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),d="VisuallyHidden",e=i.forwardRef((r,a)=>t.jsx(o.span,{...r,ref:a,style:{...s,...r.style}}));e.displayName=d;var n=e;export{n as R,s as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d5 as _}from"./index-
|
|
1
|
+
import{d5 as _}from"./index-BGvfgBXQ.js";var S={exports:{}},r={};var $;function I(){if($)return r;$=1;var m=Symbol.for("react.element"),y=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function t(e){if(typeof e=="object"&&e!==null){var d=e.$$typeof;switch(d){case m:switch(e=e.type,e){case o:case s:case n:case i:case l:return e;default:switch(e=e&&e.$$typeof,e){case x:case f:case u:case p:case a:case c:return e;default:return d}}case y:return d}}}return r.ContextConsumer=f,r.ContextProvider=c,r.Element=m,r.ForwardRef=u,r.Fragment=o,r.Lazy=p,r.Memo=a,r.Portal=y,r.Profiler=s,r.StrictMode=n,r.Suspense=i,r.SuspenseList=l,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return t(e)===f},r.isContextProvider=function(e){return t(e)===c},r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===m},r.isForwardRef=function(e){return t(e)===u},r.isFragment=function(e){return t(e)===o},r.isLazy=function(e){return t(e)===p},r.isMemo=function(e){return t(e)===a},r.isPortal=function(e){return t(e)===y},r.isProfiler=function(e){return t(e)===s},r.isStrictMode=function(e){return t(e)===n},r.isSuspense=function(e){return t(e)===i},r.isSuspenseList=function(e){return t(e)===l},r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o||e===s||e===n||e===i||e===l||e===R||typeof e=="object"&&e!==null&&(e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===u||e.$$typeof===b||e.getModuleId!==void 0)},r.typeOf=t,r}var v;function C(){return v||(v=1,S.exports=I()),S.exports}var g=C();const h=_(g);export{h as R,g as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,a6 as z,K as W,i as Y,m as $,j as l,b as M,B,L as V,r as w,d as K,E as L,x as X,aU as Z,w as J,v as ee,D as te}from"./index-MO7rMyL2.js";import{n as se}from"./ArrowUp-BVV7udcb.js";import{u as H,f as G,T as ne,A as ae,n as re,o as ie,b as oe,c as le,p as ce,q as ue,t as de,L as fe}from"./chat-context-Br0_Nahk.js";import{T as me,c as ge,b as xe,d as pe,H as he}from"./input-BIybT1jg.js";import{u as je,a as ve,S as be,M as A}from"./pair-Bb7qWgd-.js";import{A as ye,f as Q}from"./agent-icon-CbqZaGjI.js";import{n as Ne}from"./use-sandbox-events-CdG3bEqD.js";import{a as Ce}from"./agent-capabilities-B4Lld0oU.js";import{a as we}from"./repository-binding-Do7vBuPV.js";import{c as Se,i as ke}from"./thread-intent-DMRL6sDz.js";import{a as Te}from"./use-panel-navigate-DPe8y1uz.js";import{N as $e}from"./index-C8GbHpGQ.js";import{i as Ee}from"./ArrowRight-DjWuVnw_.js";import{d as De}from"./use-entitlements-BP3notV9.js";import{u as Pe}from"./use-deco-credits-BdqVGt-j.js";import{F as _e}from"./feature-paywall-tOP99fEf.js";import{i as Ie}from"./AlertCircle-D5KUH9aP.js";const Oe=15e3;function Me(e,t,n){const s=v.c(20),r=n===void 0?{}:n,{org:a}=z(),i=we(e);let c;s[0]!==t||s[1]!==i?.metadata||s[2]!==e?(c=!!e&&!!t&&Ce(i?.metadata),s[0]=t,s[1]=i?.metadata,s[2]=e,s[3]=c):c=s[3];const u=c;let o;s[4]!==t||s[5]!==a.slug||s[6]!==e?(o=W.chatDraftChanges(a.slug,e??"",t??""),s[4]=t,s[5]=a.slug,s[6]=e,s[7]=o):o=s[7];let d;s[8]!==t||s[9]!==a.slug||s[10]!==e?(d=()=>Ne(a.slug,e,t),s[8]=t,s[9]=a.slug,s[10]=e,s[11]=d):d=s[11];const p=r.poll===!1?!1:Oe;let g;s[12]!==u||s[13]!==o||s[14]!==d||s[15]!==p?(g={queryKey:o,queryFn:d,enabled:u,refetchInterval:p,retry:!1},s[12]=u,s[13]=o,s[14]=d,s[15]=p,s[16]=g):g=s[16];const{data:m}=Y(g),f=m===void 0?0:m,x=u?i:null;let h;return s[17]!==f||s[18]!==x?(h={project:x,changeCount:f},s[17]=f,s[18]=x,s[19]=h):h=s[19],h}function Fe(){const e=v.c(7),t=H(),n=G(),s=t?.virtualMcpId??null,r=t?.currentBranch??null,{project:a,changeCount:i}=Me(s,r);if(!a||!s||!r||i===0)return null;const c=a.icon??null,u=!!n&&(n.isRunInProgress||n.status==="streaming"||n.status==="submitted");let o;return e[0]!==r||e[1]!==i||e[2]!==a.title||e[3]!==c||e[4]!==u||e[5]!==s?(o={virtualMcpId:s,projectTitle:a.title,projectIcon:c,branch:r,changeCount:i,editing:u},e[0]=r,e[1]=i,e[2]=a.title,e[3]=c,e[4]=u,e[5]=s,e[6]=o):o=e[6],o}function Re(e){const t=v.c(24),{icon:n,title:s,subtitle:r,status:a,detail:i,action:c,className:u}=e;let o;t[0]!==u?(o=$("rounded-xl border border-border bg-card p-3",u),t[0]=u,t[1]=o):o=t[1];let d;t[2]!==n?(d=l.jsx("div",{className:"shrink-0",children:n}),t[2]=n,t[3]=d):d=t[3];let p;t[4]!==s?(p=l.jsx("p",{className:"truncate text-sm font-medium text-foreground",children:s}),t[4]=s,t[5]=p):p=t[5];let g;t[6]!==r?(g=r&&l.jsx("p",{className:"truncate text-xs text-muted-foreground",children:r}),t[6]=r,t[7]=g):g=t[7];let m;t[8]!==p||t[9]!==g?(m=l.jsxs("div",{className:"min-w-0 flex-1",children:[p,g]}),t[8]=p,t[9]=g,t[10]=m):m=t[10];let f;t[11]!==a?(f=a&&l.jsx("span",{className:"flex shrink-0 items-center gap-1.5 text-sm text-muted-foreground",children:a}),t[11]=a,t[12]=f):f=t[12];let x;t[13]!==d||t[14]!==m||t[15]!==f?(x=l.jsxs("div",{className:"flex items-center gap-2.5",children:[d,m,f]}),t[13]=d,t[14]=m,t[15]=f,t[16]=x):x=t[16];let h;t[17]!==c||t[18]!==i?(h=(i||c)&&l.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:i}),c]}),t[17]=c,t[18]=i,t[19]=h):h=t[19];let b;return t[20]!==o||t[21]!==x||t[22]!==h?(b=l.jsxs("div",{className:o,children:[x,h]}),t[20]=o,t[21]=x,t[22]=h,t[23]=b):b=t[23],b}function ze(e){const t=v.c(10),{draft:n}=e,s=M(),r=n.editing?"animate-pulse bg-warning":"bg-success";let a;t[0]!==r?(a=$("size-1.5 rounded-full",r),t[0]=r,t[1]=a):a=t[1];let i;t[2]!==a?(i=l.jsx("span",{"aria-hidden":!0,className:a}),t[2]=a,t[3]=i):i=t[3];const c=n.editing?"chat.draft.editing":"chat.draft.ready";let u;t[4]!==s||t[5]!==c?(u=s(c),t[4]=s,t[5]=c,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==u?(o=l.jsxs(l.Fragment,{children:[i,u]}),t[7]=i,t[8]=u,t[9]=o):o=t[9],o}function Be(e){const t=v.c(11),{draft:n}=e,s=M(),{org:r}=z(),a=H()?.taskId??null;let i;t[0]!==n.virtualMcpId||t[1]!==r.slug?(i={org:r.slug,agentId:n.virtualMcpId},t[0]=n.virtualMcpId,t[1]=r.slug,t[2]=i):i=t[2];let c;t[3]!==a?(c=a?{thread:a}:{},t[3]=a,t[4]=c):c=t[4];let u;t[5]!==s?(u=s("chat.draft.open"),t[5]=s,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==c||t[9]!==u?(o=l.jsx(B,{variant:"outline",size:"sm",asChild:!0,children:l.jsx(V,{to:"/$org/projects/$agentId/site-editor",params:i,search:c,children:u})}),t[7]=i,t[8]=c,t[9]=u,t[10]=o):o=t[10],o}function q(){const e=v.c(20),t=M(),n=Fe();if(!n)return null;let s;e[0]!==n.projectIcon||e[1]!==n.projectTitle?(s=l.jsx(ye,{icon:n.projectIcon,name:n.projectTitle,size:"sm"}),e[0]=n.projectIcon,e[1]=n.projectTitle,e[2]=s):s=e[2];const r=n.projectTitle;let a;e[3]!==n.branch?(a=l.jsx("span",{className:"font-mono",children:n.branch}),e[3]=n.branch,e[4]=a):a=e[4];let i;e[5]!==n?(i=l.jsx(ze,{draft:n}),e[5]=n,e[6]=i):i=e[6];const c=n.changeCount===1?"chat.draft.change":"chat.draft.changes";let u;e[7]!==n.changeCount||e[8]!==t||e[9]!==c?(u=t(c,{count:n.changeCount}),e[7]=n.changeCount,e[8]=t,e[9]=c,e[10]=u):u=e[10];let o;e[11]!==n?(o=l.jsx(Be,{draft:n}),e[11]=n,e[12]=o):o=e[12];let d;return e[13]!==n.projectTitle||e[14]!==s||e[15]!==a||e[16]!==i||e[17]!==u||e[18]!==o?(d=l.jsx(Re,{className:"mx-2.5 mb-6",icon:s,title:r,subtitle:a,status:i,detail:u,action:o}),e[13]=n.projectTitle,e[14]=s,e[15]=a,e[16]=i,e[17]=u,e[18]=o,e[19]=d):d=e[19],d}function He(e){return e.parts.some(t=>t.type==="dynamic-tool"||t.type.startsWith("tool-"))}function Le(e){let t=0;for(const n of e)for(const s of n.parts??[]){const r=s;r.type==="tool-load_repo"&&r.state==="output-available"&&r.output?.success===!0&&t++}return t}function Ae(){const e=v.c(11),{openPanel:t}=Te(),n=Se(),s=G()?.messages??[],r=H(),a=r?.taskId??null,i=r?.currentBranch;let c;e[0]!==i?(c=ke(i),e[0]=i,e[1]=c):c=e[1];const u=c;let o;e[2]!==s?(o=Le(s),e[2]=s,e[3]=o):o=e[3];const d=o,p=w.useRef(null),g=w.useRef(null);let m,f;e[4]!==u||e[5]!==d||e[6]!==n||e[7]!==t||e[8]!==a?(m=()=>{if(!d||!a)return;const x=`${a}:${d}`;g.current!==x&&(g.current=x,n?.refreshThreadMetadata(a)),p.current!==a&&(p.current=a,u||t("site-editor"))},f=[d,a,t,n,u],e[4]=u,e[5]=d,e[6]=n,e[7]=t,e[8]=a,e[9]=m,e[10]=f):(m=e[9],f=e[10]),w.useEffect(m,f)}function U(e){return`deco-credits-empty-dismissed:${e}`}function pt(e){try{return localStorage.getItem(U(e))==="1"}catch{return!1}}function qe(){const e=v.c(56),t=M(),{org:n}=z(),s=De("credits"),r=K(),{decoKeyId:a}=Pe(),[i,c]=w.useState(!0);let u;e[0]!==n.id?(u=()=>{L("credits_empty_state_dismissed",{organization_id:n.id}),c(!1);try{localStorage.setItem(U(n.id),"1")}catch{}},e[0]=n.id,e[1]=u):u=e[1];const o=u;let d,p;if(e[2]!==i||e[3]!==n.id?(d=()=>{i&&L("credits_empty_state_shown",{organization_id:n.id})},p=[i,n.id],e[2]=i,e[3]=n.id,e[4]=d,e[5]=p):(d=e[4],p=e[5]),w.useEffect(d,p),!i)return null;if(!s){let k;e[6]!==t?(k=t("chat.input.allowanceExhaustedTitle"),e[6]=t,e[7]=k):k=e[7];let O;e[8]!==k?(O={title:k},e[8]=k,e[9]=O):O=e[9];let R;return e[10]!==o||e[11]!==O?(R=l.jsx(_e,{feature:"chat",copy:O,onDismiss:o}),e[10]=o,e[11]=O,e[12]=R):R=e[12],R}let g;e[13]!==o?(g=k=>!k&&o(),e[13]=o,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx("div",{className:"absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-warning/8 to-transparent pointer-events-none rounded-t-lg"}),e[15]=m):m=e[15];let f;e[16]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:l.jsx(Q,{size:20,className:"text-warning"})}),e[16]=f):f=e[16];let x;e[17]!==t?(x=t("chat.creditsEmptyState.title"),e[17]=t,e[18]=x):x=e[18];let h;e[19]!==x?(h=l.jsx(X,{className:"text-lg font-semibold",children:x}),e[19]=x,e[20]=h):h=e[20];let b;e[21]!==t?(b=t("chat.creditsEmptyState.description"),e[21]=t,e[22]=b):b=e[22];let N;e[23]!==b?(N=l.jsx(Z,{className:"mt-2 text-sm leading-relaxed max-w-[320px] mx-auto",children:b}),e[23]=b,e[24]=N):N=e[24];let C;e[25]!==h||e[26]!==N?(C=l.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[m,l.jsxs(J,{className:"relative gap-3",children:[f,l.jsxs("div",{className:"text-center",children:[h,N]})]})]}),e[25]=h,e[26]=N,e[27]=C):C=e[27];let y;e[28]!==a||e[29]!==o?(y=a&&l.jsx("div",{className:"px-6 pb-5",children:l.jsx(me,{source:"empty_state",onDone:o})}),e[28]=a,e[29]=o,e[30]=y):y=e[30];let S;e[31]!==o||e[32]!==r||e[33]!==n.slug?(S=()=>{r({to:"/$org/settings/ai-providers",params:{org:n.slug}}),o()},e[31]=o,e[32]=r,e[33]=n.slug,e[34]=S):S=e[34];let j;e[35]!==t?(j=t("chat.creditsEmptyState.useYourOwnProvider"),e[35]=t,e[36]=j):j=e[36];let T;e[37]===Symbol.for("react.memo_cache_sentinel")?(T=l.jsx(Ee,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),e[37]=T):T=e[37];let E;e[38]!==S||e[39]!==j?(E=l.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:S,children:[j,T]}),e[38]=S,e[39]=j,e[40]=E):E=e[40];let D;e[41]!==t?(D=t("chat.creditsEmptyState.skipForNow"),e[41]=t,e[42]=D):D=e[42];let P;e[43]!==o||e[44]!==D?(P=l.jsx(B,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:o,children:D}),e[43]=o,e[44]=D,e[45]=P):P=e[45];let _;e[46]!==E||e[47]!==P?(_=l.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[E,P]}),e[46]=E,e[47]=P,e[48]=_):_=e[48];let I;e[49]!==C||e[50]!==y||e[51]!==_?(I=l.jsxs(ee,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ke,children:[C,y,_]}),e[49]=C,e[50]=y,e[51]=_,e[52]=I):I=e[52];let F;return e[53]!==I||e[54]!==g?(F=l.jsx(te,{open:!0,onOpenChange:g,children:I}),e[53]=I,e[54]=g,e[55]=F):F=e[55],F}function Ke(e){return e.preventDefault()}function Ge(e){const t=v.c(6),{balanceDollars:n}=e;let s;t[0]!==n?(s=n.toFixed(2),t[0]=n,t[1]=s):s=t[1];const r=s;let a,i;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=$("inline-flex items-center gap-1.5 px-3 py-1 rounded-full","bg-success/10 border border-success/20","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),i=l.jsx(Q,{size:13,className:"text-success"}),t[2]=a,t[3]=i):(a=t[2],i=t[3]);let c;return t[4]!==r?(c=l.jsxs("div",{className:a,children:[i,l.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",r," in credits to get started"]})]}),t[4]=r,t[5]=c):c=t[5],c}function Qe(){const e=v.c(8),{org:t}=z(),n=K();let s;e[0]!==n||e[1]!==t.slug?(s=()=>n({to:"/$org/settings/ai-providers",params:{org:t.slug}}),e[0]=n,e[1]=t.slug,e[2]=s):s=e[2];let r,a,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=$("inline-flex items-center gap-1.5 px-3 py-1 rounded-lg cursor-pointer","bg-warning/10 border border-warning/20","hover:bg-warning/15","transition-colors duration-150","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),a=l.jsx(Ie,{size:13,className:"text-warning"}),i=l.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),e[3]=r,e[4]=a,e[5]=i):(r=e[3],a=e[4],i=e[5]);let c;return e[6]!==s?(c=l.jsxs("button",{type:"button",onClick:s,className:r,children:[a,i]}),e[6]=s,e[7]=c):c=e[7],c}function Ue(e){const t=v.c(7),{scrollRef:n,sentinelRef:s,hasMoreOlder:r,isFetchingOlder:a,fetchOlderMessages:i}=e;let c,u;t[0]!==i||t[1]!==r||t[2]!==a||t[3]!==n||t[4]!==s?(c=()=>{const o=s.current,d=n.current;if(!o||!d||!r)return;const p=new IntersectionObserver(async g=>{if(!g[0]?.isIntersecting||a||!r)return;const f=d.scrollHeight,x=d.scrollTop;await i(),requestAnimationFrame(()=>{const h=d.scrollHeight;d.scrollTop=x+(h-f)})},{root:d,rootMargin:"200px 0px 0px 0px"});return p.observe(o),()=>p.disconnect()},u=[n,s,r,a,i],t[0]=i,t[1]=r,t[2]=a,t[3]=n,t[4]=s,t[5]=c,t[6]=u):(c=t[5],u=t[6]),w.useEffect(c,u)}function We(e){const t=v.c(5),{className:n,children:s}=e;let r;t[0]!==n?(r=$("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",n),t[0]=n,t[1]=r):r=t[1];let a;return t[2]!==s||t[3]!==r?(a=l.jsx("div",{className:r,children:s}),t[2]=s,t[3]=r,t[4]=a):a=t[4],a}function Ye(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-1 min-h-0 overflow-y-auto isolate",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}function Ve(e){const t=v.c(2),{children:n}=e;let s;return t[0]!==n?(s=l.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:n}),t[0]=n,t[1]=s):s=t[1],s}function Xe(){const e=M(),{messages:t,status:n,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a,isRunInProgress:i}=oe(),{taskId:c}=le();Ae();const u=ce(c??""),o=ue(u),d=o.size===0?t:t.filter(j=>!o.has(j.id)),p=de(d,n==="submitted"||n==="streaming"||i),g=p.visible,m=je(g),f=m.at(-1),x=m.findIndex(j=>!!j.assistant&&He(j.assistant)),b=pe()*he+16,N=w.useRef(null),C=w.useRef(null);Ue({scrollRef:N,sentinelRef:C,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a});const y=ve({initial:!1}),S=j=>{N.current=j,y.scrollRef(j)};return l.jsx(fe.Provider,{value:p,children:l.jsx(be,{messages:t,children:l.jsxs("div",{className:"relative h-full w-full min-w-0",children:[l.jsx("div",{ref:S,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:b},children:l.jsxs("div",{ref:y.contentRef,className:"overflow-x-clip",children:[l.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx("div",{ref:C,"aria-hidden":!0,className:"h-px"}),r&&l.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:e("chat.chat.loadingOlderMessages")}),m.slice(0,-1).map((j,T)=>l.jsxs(w.Fragment,{children:[l.jsx(A,{pair:j,isLastPair:!1,status:T===m.length-1?n:void 0}),T===x&&l.jsx(q,{})]},`pair-${j.user?.id??j.assistant?.id}`))]}),f&&l.jsxs("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx(A,{pair:f,isLastPair:!0,status:n},`pair-${f.user?.id??f.assistant?.id}`),x===m.length-1&&l.jsx(q,{})]})]})}),!y.isAtBottom&&l.jsx(B,{type:"button",variant:"outline",size:"icon-sm","aria-label":e("chat.chat.jumpToLatest"),className:"absolute left-1/2 z-50 -translate-x-1/2 shadow-soft animate-in fade-in duration-200 dark:bg-background dark:hover:bg-accent",style:{bottom:b+8},onClick:()=>{y.scrollToBottom()},children:l.jsx(se,{size:14})})]})})})}function Ze(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}const ht=Object.assign(We,{Main:Ye,Messages:Xe,EmptyState:Ve,Footer:Ze,Input:xe,Provider:ie,StreamHost:re,ActiveTaskStreamSource:ae,ThreadlessStreamSource:ne,NoAiProviderEmptyState:$e,CreditsEmptyState:qe,CreditsEyebrow:Ge,NoCreditsEyebrow:Qe,CreditsExhaustedBanner:ge});export{ht as C,Me as u,pt as w};
|
|
1
|
+
import{c as v,a6 as z,K as W,i as Y,m as $,j as l,b as M,B,L as V,r as w,d as K,E as L,x as X,aU as Z,w as J,v as ee,D as te}from"./index-BGvfgBXQ.js";import{n as se}from"./ArrowUp-bsUZSt57.js";import{u as H,f as G,T as ne,A as ae,n as re,o as ie,b as oe,c as le,p as ce,q as ue,t as de,L as fe}from"./chat-context-Dk_Ebz6D.js";import{T as me,c as ge,b as xe,d as pe,H as he}from"./input-CIXcgL8B.js";import{u as je,a as ve,S as be,M as A}from"./pair-M_Ks4KYr.js";import{A as ye,f as Q}from"./agent-icon-CFsULo4q.js";import{n as Ne}from"./use-sandbox-events-Bh6eTl2p.js";import{a as Ce}from"./agent-capabilities-Dsy9OzBC.js";import{a as we}from"./repository-binding-DrxBu24C.js";import{c as Se,i as ke}from"./thread-intent-DJ2isQQx.js";import{a as Te}from"./use-panel-navigate-BEVdshk4.js";import{N as $e}from"./index-ztFBZP-a.js";import{i as Ee}from"./ArrowRight-DYc-7xj5.js";import{d as De}from"./use-entitlements-BnUu4797.js";import{u as Pe}from"./use-deco-credits-D1eTXz3B.js";import{F as _e}from"./feature-paywall-CXj-cCjT.js";import{i as Ie}from"./AlertCircle-BPb6lfDc.js";const Oe=15e3;function Me(e,t,n){const s=v.c(20),r=n===void 0?{}:n,{org:a}=z(),i=we(e);let c;s[0]!==t||s[1]!==i?.metadata||s[2]!==e?(c=!!e&&!!t&&Ce(i?.metadata),s[0]=t,s[1]=i?.metadata,s[2]=e,s[3]=c):c=s[3];const u=c;let o;s[4]!==t||s[5]!==a.slug||s[6]!==e?(o=W.chatDraftChanges(a.slug,e??"",t??""),s[4]=t,s[5]=a.slug,s[6]=e,s[7]=o):o=s[7];let d;s[8]!==t||s[9]!==a.slug||s[10]!==e?(d=()=>Ne(a.slug,e,t),s[8]=t,s[9]=a.slug,s[10]=e,s[11]=d):d=s[11];const p=r.poll===!1?!1:Oe;let g;s[12]!==u||s[13]!==o||s[14]!==d||s[15]!==p?(g={queryKey:o,queryFn:d,enabled:u,refetchInterval:p,retry:!1},s[12]=u,s[13]=o,s[14]=d,s[15]=p,s[16]=g):g=s[16];const{data:m}=Y(g),f=m===void 0?0:m,x=u?i:null;let h;return s[17]!==f||s[18]!==x?(h={project:x,changeCount:f},s[17]=f,s[18]=x,s[19]=h):h=s[19],h}function Fe(){const e=v.c(7),t=H(),n=G(),s=t?.virtualMcpId??null,r=t?.currentBranch??null,{project:a,changeCount:i}=Me(s,r);if(!a||!s||!r||i===0)return null;const c=a.icon??null,u=!!n&&(n.isRunInProgress||n.status==="streaming"||n.status==="submitted");let o;return e[0]!==r||e[1]!==i||e[2]!==a.title||e[3]!==c||e[4]!==u||e[5]!==s?(o={virtualMcpId:s,projectTitle:a.title,projectIcon:c,branch:r,changeCount:i,editing:u},e[0]=r,e[1]=i,e[2]=a.title,e[3]=c,e[4]=u,e[5]=s,e[6]=o):o=e[6],o}function Re(e){const t=v.c(24),{icon:n,title:s,subtitle:r,status:a,detail:i,action:c,className:u}=e;let o;t[0]!==u?(o=$("rounded-xl border border-border bg-card p-3",u),t[0]=u,t[1]=o):o=t[1];let d;t[2]!==n?(d=l.jsx("div",{className:"shrink-0",children:n}),t[2]=n,t[3]=d):d=t[3];let p;t[4]!==s?(p=l.jsx("p",{className:"truncate text-sm font-medium text-foreground",children:s}),t[4]=s,t[5]=p):p=t[5];let g;t[6]!==r?(g=r&&l.jsx("p",{className:"truncate text-xs text-muted-foreground",children:r}),t[6]=r,t[7]=g):g=t[7];let m;t[8]!==p||t[9]!==g?(m=l.jsxs("div",{className:"min-w-0 flex-1",children:[p,g]}),t[8]=p,t[9]=g,t[10]=m):m=t[10];let f;t[11]!==a?(f=a&&l.jsx("span",{className:"flex shrink-0 items-center gap-1.5 text-sm text-muted-foreground",children:a}),t[11]=a,t[12]=f):f=t[12];let x;t[13]!==d||t[14]!==m||t[15]!==f?(x=l.jsxs("div",{className:"flex items-center gap-2.5",children:[d,m,f]}),t[13]=d,t[14]=m,t[15]=f,t[16]=x):x=t[16];let h;t[17]!==c||t[18]!==i?(h=(i||c)&&l.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:i}),c]}),t[17]=c,t[18]=i,t[19]=h):h=t[19];let b;return t[20]!==o||t[21]!==x||t[22]!==h?(b=l.jsxs("div",{className:o,children:[x,h]}),t[20]=o,t[21]=x,t[22]=h,t[23]=b):b=t[23],b}function ze(e){const t=v.c(10),{draft:n}=e,s=M(),r=n.editing?"animate-pulse bg-warning":"bg-success";let a;t[0]!==r?(a=$("size-1.5 rounded-full",r),t[0]=r,t[1]=a):a=t[1];let i;t[2]!==a?(i=l.jsx("span",{"aria-hidden":!0,className:a}),t[2]=a,t[3]=i):i=t[3];const c=n.editing?"chat.draft.editing":"chat.draft.ready";let u;t[4]!==s||t[5]!==c?(u=s(c),t[4]=s,t[5]=c,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==u?(o=l.jsxs(l.Fragment,{children:[i,u]}),t[7]=i,t[8]=u,t[9]=o):o=t[9],o}function Be(e){const t=v.c(11),{draft:n}=e,s=M(),{org:r}=z(),a=H()?.taskId??null;let i;t[0]!==n.virtualMcpId||t[1]!==r.slug?(i={org:r.slug,agentId:n.virtualMcpId},t[0]=n.virtualMcpId,t[1]=r.slug,t[2]=i):i=t[2];let c;t[3]!==a?(c=a?{thread:a}:{},t[3]=a,t[4]=c):c=t[4];let u;t[5]!==s?(u=s("chat.draft.open"),t[5]=s,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==c||t[9]!==u?(o=l.jsx(B,{variant:"outline",size:"sm",asChild:!0,children:l.jsx(V,{to:"/$org/projects/$agentId/site-editor",params:i,search:c,children:u})}),t[7]=i,t[8]=c,t[9]=u,t[10]=o):o=t[10],o}function q(){const e=v.c(20),t=M(),n=Fe();if(!n)return null;let s;e[0]!==n.projectIcon||e[1]!==n.projectTitle?(s=l.jsx(ye,{icon:n.projectIcon,name:n.projectTitle,size:"sm"}),e[0]=n.projectIcon,e[1]=n.projectTitle,e[2]=s):s=e[2];const r=n.projectTitle;let a;e[3]!==n.branch?(a=l.jsx("span",{className:"font-mono",children:n.branch}),e[3]=n.branch,e[4]=a):a=e[4];let i;e[5]!==n?(i=l.jsx(ze,{draft:n}),e[5]=n,e[6]=i):i=e[6];const c=n.changeCount===1?"chat.draft.change":"chat.draft.changes";let u;e[7]!==n.changeCount||e[8]!==t||e[9]!==c?(u=t(c,{count:n.changeCount}),e[7]=n.changeCount,e[8]=t,e[9]=c,e[10]=u):u=e[10];let o;e[11]!==n?(o=l.jsx(Be,{draft:n}),e[11]=n,e[12]=o):o=e[12];let d;return e[13]!==n.projectTitle||e[14]!==s||e[15]!==a||e[16]!==i||e[17]!==u||e[18]!==o?(d=l.jsx(Re,{className:"mx-2.5 mb-6",icon:s,title:r,subtitle:a,status:i,detail:u,action:o}),e[13]=n.projectTitle,e[14]=s,e[15]=a,e[16]=i,e[17]=u,e[18]=o,e[19]=d):d=e[19],d}function He(e){return e.parts.some(t=>t.type==="dynamic-tool"||t.type.startsWith("tool-"))}function Le(e){let t=0;for(const n of e)for(const s of n.parts??[]){const r=s;r.type==="tool-load_repo"&&r.state==="output-available"&&r.output?.success===!0&&t++}return t}function Ae(){const e=v.c(11),{openPanel:t}=Te(),n=Se(),s=G()?.messages??[],r=H(),a=r?.taskId??null,i=r?.currentBranch;let c;e[0]!==i?(c=ke(i),e[0]=i,e[1]=c):c=e[1];const u=c;let o;e[2]!==s?(o=Le(s),e[2]=s,e[3]=o):o=e[3];const d=o,p=w.useRef(null),g=w.useRef(null);let m,f;e[4]!==u||e[5]!==d||e[6]!==n||e[7]!==t||e[8]!==a?(m=()=>{if(!d||!a)return;const x=`${a}:${d}`;g.current!==x&&(g.current=x,n?.refreshThreadMetadata(a)),p.current!==a&&(p.current=a,u||t("site-editor"))},f=[d,a,t,n,u],e[4]=u,e[5]=d,e[6]=n,e[7]=t,e[8]=a,e[9]=m,e[10]=f):(m=e[9],f=e[10]),w.useEffect(m,f)}function U(e){return`deco-credits-empty-dismissed:${e}`}function pt(e){try{return localStorage.getItem(U(e))==="1"}catch{return!1}}function qe(){const e=v.c(56),t=M(),{org:n}=z(),s=De("credits"),r=K(),{decoKeyId:a}=Pe(),[i,c]=w.useState(!0);let u;e[0]!==n.id?(u=()=>{L("credits_empty_state_dismissed",{organization_id:n.id}),c(!1);try{localStorage.setItem(U(n.id),"1")}catch{}},e[0]=n.id,e[1]=u):u=e[1];const o=u;let d,p;if(e[2]!==i||e[3]!==n.id?(d=()=>{i&&L("credits_empty_state_shown",{organization_id:n.id})},p=[i,n.id],e[2]=i,e[3]=n.id,e[4]=d,e[5]=p):(d=e[4],p=e[5]),w.useEffect(d,p),!i)return null;if(!s){let k;e[6]!==t?(k=t("chat.input.allowanceExhaustedTitle"),e[6]=t,e[7]=k):k=e[7];let O;e[8]!==k?(O={title:k},e[8]=k,e[9]=O):O=e[9];let R;return e[10]!==o||e[11]!==O?(R=l.jsx(_e,{feature:"chat",copy:O,onDismiss:o}),e[10]=o,e[11]=O,e[12]=R):R=e[12],R}let g;e[13]!==o?(g=k=>!k&&o(),e[13]=o,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx("div",{className:"absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-warning/8 to-transparent pointer-events-none rounded-t-lg"}),e[15]=m):m=e[15];let f;e[16]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:l.jsx(Q,{size:20,className:"text-warning"})}),e[16]=f):f=e[16];let x;e[17]!==t?(x=t("chat.creditsEmptyState.title"),e[17]=t,e[18]=x):x=e[18];let h;e[19]!==x?(h=l.jsx(X,{className:"text-lg font-semibold",children:x}),e[19]=x,e[20]=h):h=e[20];let b;e[21]!==t?(b=t("chat.creditsEmptyState.description"),e[21]=t,e[22]=b):b=e[22];let N;e[23]!==b?(N=l.jsx(Z,{className:"mt-2 text-sm leading-relaxed max-w-[320px] mx-auto",children:b}),e[23]=b,e[24]=N):N=e[24];let C;e[25]!==h||e[26]!==N?(C=l.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[m,l.jsxs(J,{className:"relative gap-3",children:[f,l.jsxs("div",{className:"text-center",children:[h,N]})]})]}),e[25]=h,e[26]=N,e[27]=C):C=e[27];let y;e[28]!==a||e[29]!==o?(y=a&&l.jsx("div",{className:"px-6 pb-5",children:l.jsx(me,{source:"empty_state",onDone:o})}),e[28]=a,e[29]=o,e[30]=y):y=e[30];let S;e[31]!==o||e[32]!==r||e[33]!==n.slug?(S=()=>{r({to:"/$org/settings/ai-providers",params:{org:n.slug}}),o()},e[31]=o,e[32]=r,e[33]=n.slug,e[34]=S):S=e[34];let j;e[35]!==t?(j=t("chat.creditsEmptyState.useYourOwnProvider"),e[35]=t,e[36]=j):j=e[36];let T;e[37]===Symbol.for("react.memo_cache_sentinel")?(T=l.jsx(Ee,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),e[37]=T):T=e[37];let E;e[38]!==S||e[39]!==j?(E=l.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:S,children:[j,T]}),e[38]=S,e[39]=j,e[40]=E):E=e[40];let D;e[41]!==t?(D=t("chat.creditsEmptyState.skipForNow"),e[41]=t,e[42]=D):D=e[42];let P;e[43]!==o||e[44]!==D?(P=l.jsx(B,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:o,children:D}),e[43]=o,e[44]=D,e[45]=P):P=e[45];let _;e[46]!==E||e[47]!==P?(_=l.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[E,P]}),e[46]=E,e[47]=P,e[48]=_):_=e[48];let I;e[49]!==C||e[50]!==y||e[51]!==_?(I=l.jsxs(ee,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ke,children:[C,y,_]}),e[49]=C,e[50]=y,e[51]=_,e[52]=I):I=e[52];let F;return e[53]!==I||e[54]!==g?(F=l.jsx(te,{open:!0,onOpenChange:g,children:I}),e[53]=I,e[54]=g,e[55]=F):F=e[55],F}function Ke(e){return e.preventDefault()}function Ge(e){const t=v.c(6),{balanceDollars:n}=e;let s;t[0]!==n?(s=n.toFixed(2),t[0]=n,t[1]=s):s=t[1];const r=s;let a,i;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=$("inline-flex items-center gap-1.5 px-3 py-1 rounded-full","bg-success/10 border border-success/20","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),i=l.jsx(Q,{size:13,className:"text-success"}),t[2]=a,t[3]=i):(a=t[2],i=t[3]);let c;return t[4]!==r?(c=l.jsxs("div",{className:a,children:[i,l.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",r," in credits to get started"]})]}),t[4]=r,t[5]=c):c=t[5],c}function Qe(){const e=v.c(8),{org:t}=z(),n=K();let s;e[0]!==n||e[1]!==t.slug?(s=()=>n({to:"/$org/settings/ai-providers",params:{org:t.slug}}),e[0]=n,e[1]=t.slug,e[2]=s):s=e[2];let r,a,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=$("inline-flex items-center gap-1.5 px-3 py-1 rounded-lg cursor-pointer","bg-warning/10 border border-warning/20","hover:bg-warning/15","transition-colors duration-150","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),a=l.jsx(Ie,{size:13,className:"text-warning"}),i=l.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),e[3]=r,e[4]=a,e[5]=i):(r=e[3],a=e[4],i=e[5]);let c;return e[6]!==s?(c=l.jsxs("button",{type:"button",onClick:s,className:r,children:[a,i]}),e[6]=s,e[7]=c):c=e[7],c}function Ue(e){const t=v.c(7),{scrollRef:n,sentinelRef:s,hasMoreOlder:r,isFetchingOlder:a,fetchOlderMessages:i}=e;let c,u;t[0]!==i||t[1]!==r||t[2]!==a||t[3]!==n||t[4]!==s?(c=()=>{const o=s.current,d=n.current;if(!o||!d||!r)return;const p=new IntersectionObserver(async g=>{if(!g[0]?.isIntersecting||a||!r)return;const f=d.scrollHeight,x=d.scrollTop;await i(),requestAnimationFrame(()=>{const h=d.scrollHeight;d.scrollTop=x+(h-f)})},{root:d,rootMargin:"200px 0px 0px 0px"});return p.observe(o),()=>p.disconnect()},u=[n,s,r,a,i],t[0]=i,t[1]=r,t[2]=a,t[3]=n,t[4]=s,t[5]=c,t[6]=u):(c=t[5],u=t[6]),w.useEffect(c,u)}function We(e){const t=v.c(5),{className:n,children:s}=e;let r;t[0]!==n?(r=$("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",n),t[0]=n,t[1]=r):r=t[1];let a;return t[2]!==s||t[3]!==r?(a=l.jsx("div",{className:r,children:s}),t[2]=s,t[3]=r,t[4]=a):a=t[4],a}function Ye(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-1 min-h-0 overflow-y-auto isolate",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}function Ve(e){const t=v.c(2),{children:n}=e;let s;return t[0]!==n?(s=l.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:n}),t[0]=n,t[1]=s):s=t[1],s}function Xe(){const e=M(),{messages:t,status:n,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a,isRunInProgress:i}=oe(),{taskId:c}=le();Ae();const u=ce(c??""),o=ue(u),d=o.size===0?t:t.filter(j=>!o.has(j.id)),p=de(d,n==="submitted"||n==="streaming"||i),g=p.visible,m=je(g),f=m.at(-1),x=m.findIndex(j=>!!j.assistant&&He(j.assistant)),b=pe()*he+16,N=w.useRef(null),C=w.useRef(null);Ue({scrollRef:N,sentinelRef:C,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a});const y=ve({initial:!1}),S=j=>{N.current=j,y.scrollRef(j)};return l.jsx(fe.Provider,{value:p,children:l.jsx(be,{messages:t,children:l.jsxs("div",{className:"relative h-full w-full min-w-0",children:[l.jsx("div",{ref:S,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:b},children:l.jsxs("div",{ref:y.contentRef,className:"overflow-x-clip",children:[l.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx("div",{ref:C,"aria-hidden":!0,className:"h-px"}),r&&l.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:e("chat.chat.loadingOlderMessages")}),m.slice(0,-1).map((j,T)=>l.jsxs(w.Fragment,{children:[l.jsx(A,{pair:j,isLastPair:!1,status:T===m.length-1?n:void 0}),T===x&&l.jsx(q,{})]},`pair-${j.user?.id??j.assistant?.id}`))]}),f&&l.jsxs("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx(A,{pair:f,isLastPair:!0,status:n},`pair-${f.user?.id??f.assistant?.id}`),x===m.length-1&&l.jsx(q,{})]})]})}),!y.isAtBottom&&l.jsx(B,{type:"button",variant:"outline",size:"icon-sm","aria-label":e("chat.chat.jumpToLatest"),className:"absolute left-1/2 z-50 -translate-x-1/2 shadow-soft animate-in fade-in duration-200 dark:bg-background dark:hover:bg-accent",style:{bottom:b+8},onClick:()=>{y.scrollToBottom()},children:l.jsx(se,{size:14})})]})})})}function Ze(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}const ht=Object.assign(We,{Main:Ye,Messages:Xe,EmptyState:Ve,Footer:Ze,Input:xe,Provider:ie,StreamHost:re,ActiveTaskStreamSource:ae,ThreadlessStreamSource:ne,NoAiProviderEmptyState:$e,CreditsEmptyState:qe,CreditsEyebrow:Ge,NoCreditsEyebrow:Qe,CreditsExhaustedBanner:ge});export{ht as C,Me as u,pt as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c0 as L,c1 as B,j as c,g0 as q,c6 as y,c4 as b,f$ as K,c7 as E,g1 as _,e1 as T,ck as k,cd as U,co as V}from"./index-
|
|
1
|
+
import{r as s,c0 as L,c1 as B,j as c,g0 as q,c6 as y,c4 as b,f$ as K,c7 as E,g1 as _,e1 as T,ck as k,cd as U,co as V}from"./index-BGvfgBXQ.js";var I="Radio",[z,w]=k(I),[H,W]=z(I),P=s.forwardRef((t,d)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:a,value:l="on",onCheck:f,form:R,...v}=t,[p,m]=s.useState(null),i=b(d,x=>m(x)),u=s.useRef(!1),h=p?R||!!p.closest("form"):!0;return c.jsxs(H,{scope:o,checked:e,disabled:a,children:[c.jsx(y.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":a?"":void 0,disabled:a,value:l,...v,ref:i,onClick:E(t.onClick,x=>{e||f?.(),h&&(u.current=x.isPropagationStopped(),u.current||x.stopPropagation())})}),h&&c.jsx(S,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:a,form:R,style:{transform:"translateX(-100%)"}})]})});P.displayName=I;var g="RadioIndicator",G=s.forwardRef((t,d)=>{const{__scopeRadio:o,forceMount:n,...e}=t,r=W(g,o);return c.jsx(T,{present:n||r.checked,children:c.jsx(y.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:d})})});G.displayName=g;var X="RadioBubbleInput",S=s.forwardRef(({__scopeRadio:t,control:d,checked:o,bubbles:n=!0,...e},r)=>{const a=s.useRef(null),l=b(a,r),f=U(o),R=V(d);return s.useEffect(()=>{const v=a.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),c.jsx(y.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=X;function A(t){return t?"checked":"unchecked"}var Y=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],C="RadioGroup",[$]=k(C,[_,w]),j=_(),N=w(),[J,Q]=$(C),D=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:a=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=t,i=j(o),u=L(R),[h,x]=B({prop:r,defaultProp:e??null,onChange:p,caller:C});return c.jsx(J,{scope:o,name:n,required:a,disabled:l,value:h,onValueChange:x,children:c.jsx(q,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:c.jsx(y.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:d})})})});D.displayName=C;var M="RadioGroupItem",O=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,disabled:n,...e}=t,r=Q(M,o),a=r.disabled||n,l=j(o),f=N(o),R=s.useRef(null),v=b(d,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=h=>{Y.includes(h.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),c.jsx(K,{asChild:!0,...l,focusable:!a,active:p,children:c.jsx(P,{disabled:a,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:E(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:E(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var Z="RadioGroupIndicator",F=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,...n}=t,e=N(o);return c.jsx(G,{...e,...n,ref:d})});F.displayName=Z;var oe=D,re=O,te=F;export{re as I,oe as R,te as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as H,t as U,a9 as S,C as Z,aa as X,f as R,ab as J,ac as Q,o as z}from"./usage-stats-D2u99sYi.js";import{gA as C,hk as M,gz as P,hl as x,hm as L,hn as V,ho as K,hp as _,gC as A,eT as N,r as p,ca as $}from"./index-MO7rMyL2.js";import{C as k}from"./index-DbDnBcLD.js";function tt(t,e){const i=Math.min(t.top,e.top),s=Math.max(t.bottom,e.bottom),l=Math.min(t.left,e.left),r=Math.max(t.right,e.right)-l,n=s-i;return new DOMRect(l,i,r,n)}var et=class{get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(C(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(M(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}get virtualElement(){var t,e;const{selection:i}=this.editor.state,s=(t=this.getReferencedVirtualElement)===null||t===void 0?void 0:t.call(this);if(s)return s;if(!(!((e=this.view)===null||e===void 0||(e=e.dom)===null||e===void 0)&&e.parentNode))return;const l=S(this.view,i.from,i.to);let r={getBoundingClientRect:()=>l,getClientRects:()=>[l]};if(i instanceof Z){let n=this.view.nodeDOM(i.from);const d=n.dataset.nodeViewWrapper?n:n.querySelector("[data-node-view-wrapper]");d&&(n=d),n&&(r={getBoundingClientRect:()=>n.getBoundingClientRect(),getClientRects:()=>[n.getBoundingClientRect()]})}if(i instanceof k){const{$anchorCell:n,$headCell:d}=i,g=n?n.pos:d.pos,f=d?d.pos:n.pos,u=this.view.nodeDOM(g),o=this.view.nodeDOM(f);if(!u||!o)return;const a=u===o?u.getBoundingClientRect():tt(u.getBoundingClientRect(),o.getBoundingClientRect());r={getBoundingClientRect:()=>a,getClientRects:()=>[a]}}return r}constructor({editor:t,element:e,view:i,pluginKey:s="bubbleMenu",updateDelay:l=250,resizeDelay:r=60,shouldShow:n,appendTo:d,getReferencedVirtualElement:g,options:f}){var u;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:"absolute",placement:"top",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:o,state:a,from:h,to:c})=>{const{doc:m,selection:y}=a,{empty:O}=y,b=!m.textBetween(h,c).length&&X(a.selection),v=this.element.contains(document.activeElement);return!(!(o.hasFocus()||v)||O||b||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:o})=>{var a;if(this.editor.isDestroyed){this.destroy();return}if(this.preventHide){this.preventHide=!1;return}o?.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(o.relatedTarget))||o?.relatedTarget!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(o,a)=>{const h=!a?.selection.eq(o.state.selection),c=!a?.doc.eq(o.state.doc);!h&&!c||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(o,h,c,a)},this.updateDelay))},this.updateHandler=(o,a,h,c)=>{const{composing:m}=o;if(!(m||!a&&!h)){if(!this.getShouldShow(c)){this.hide();return}this.show(),this.updatePosition()}},this.transactionHandler=({transaction:o})=>{const a=o.getMeta(this.pluginKey);a==="updatePosition"?this.updatePosition():a&&typeof a=="object"&&a.type==="updateOptions"?this.updateOptions(a.options):a==="hide"?this.hide():a==="show"&&(this.updatePosition(),this.show())},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(u=f?.scrollTarget)!==null&&u!==void 0?u:window,this.getReferencedVirtualElement=g,this.floatingUIOptions={...this.floatingUIOptions,...f},this.element.tabIndex=0,n&&(this.shouldShow=n),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}updatePosition(){if(!this.isVisible)return;const t=this.virtualElement;t&&A(t,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:i,strategy:s,middlewareData:l})=>{var r,n;if(!(!this.isVisible||this.editor.isDestroyed||!this.element.isConnected)){if(!((r=l.hide)===null||r===void 0)&&r.referenceHidden||!((n=l.hide)===null||n===void 0)&&n.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=s,this.element.style.left=`${e}px`,this.element.style.top=`${i}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()}})}update(t,e){const{state:i}=t,s=i.selection.from!==i.selection.to;if(this.updateDelay>0&&s){this.handleDebouncedUpdate(t,e);return}const l=!e?.selection.eq(t.state.selection),r=!e?.doc.eq(t.state.doc);this.updateHandler(t,l,r,e)}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return((e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,element:this.element,view:this.view,state:i,oldState:t,from:r,to:n}))||!1}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.getReferencedVirtualElement!==void 0&&(this.getReferencedVirtualElement=t.getReferencedVirtualElement),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const B=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new et({view:e,...t})});R.create({name:"bubbleMenu",addOptions(){return{element:null,pluginKey:"bubbleMenu",updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[B({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}});var it=class{getTextContent(t){return J(t,{textSerializers:Q(this.editor.schema)})}get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(C(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(M(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}constructor({editor:t,element:e,view:i,pluginKey:s="floatingMenu",updateDelay:l=250,resizeDelay:r=60,options:n,appendTo:d,shouldShow:g}){var f;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=({view:u,state:o})=>{const{selection:a}=o,{$anchor:h,empty:c}=a,m=h.depth===1,y=h.parent.isTextblock&&!h.parent.type.spec.code&&!h.parent.textContent&&h.parent.childCount===0&&!this.getTextContent(h.parent);return!(!u.hasFocus()||!c||!m||!y||!this.editor.isEditable)},this.floatingUIOptions={strategy:"absolute",placement:"right",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(u,o,a,h)=>{const{composing:c}=u;if(!(c||!o&&!a)){if(!this.getShouldShow(h)){this.hide();return}this.updatePosition(),this.show()}},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:u})=>{var o;if(this.preventHide){this.preventHide=!1;return}u?.relatedTarget&&(!((o=this.element.parentNode)===null||o===void 0)&&o.contains(u.relatedTarget))||u?.relatedTarget!==this.editor.view.dom&&this.hide()},this.transactionHandler=({transaction:u})=>{const o=u.getMeta(this.pluginKey);o==="updatePosition"?this.updatePosition():o&&typeof o=="object"&&o.type==="updateOptions"?this.updateOptions(o.options):o==="hide"?this.hide():o==="show"&&(this.updatePosition(),this.show())},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(f=n?.scrollTarget)!==null&&f!==void 0?f:window,this.floatingUIOptions={...this.floatingUIOptions,...n},this.element.tabIndex=0,g&&(this.shouldShow=g),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return(e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,view:this.view,state:i,oldState:t,from:r,to:n})}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}updatePosition(){var t;if(!(!((t=this.view)===null||t===void 0||(t=t.dom)===null||t===void 0)&&t.parentNode))return;const{selection:e}=this.editor.state,i=S(this.view,e.from,e.to);A({getBoundingClientRect:()=>i,getClientRects:()=>[i]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:s,y:l,strategy:r,middlewareData:n})=>{var d,g;if(!((d=n.hide)===null||d===void 0)&&d.referenceHidden||!((g=n.hide)===null||g===void 0)&&g.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=r,this.element.style.left=`${s}px`,this.element.style.top=`${l}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()})}update(t,e){const i=!e?.selection.eq(t.state.selection),s=!e?.doc.eq(t.state.doc);this.updateHandler(t,i,s,e)}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const F=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new it({view:e,...t})});R.create({name:"floatingMenu",addOptions(){return{element:null,options:{},pluginKey:"floatingMenu",updateDelay:void 0,resizeDelay:void 0,appendTo:void 0,shouldShow:null}},addCommands(){return{updateFloatingMenuPosition:()=>({tr:t,dispatch:e})=>(e&&t.setMeta(this.options.pluginKey,"updatePosition"),!0)}},addProseMirrorPlugins(){return this.options.element?[F({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,resizeDelay:this.options.resizeDelay,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}});function W(t,e){return t??new U(e)}const st=typeof window<"u"?p.useLayoutEffect:p.useEffect,j=new Set(["left","opacity","position","top","visibility","width"]),nt=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","columns","fillOpacity","flex","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","lineHeight","opacity","order","orphans","scale","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),ot=new Set(["children","className","style"]),rt=new Set(["tabIndex"]),lt=new Set(["accessKey","autoCapitalize","contentEditable","contextMenu","dir","draggable","enterKeyHint","hidden","id","lang","nonce","role","slot","spellCheck","tabIndex","title","translate"]),at={Blur:"focusout",DoubleClick:"dblclick",Focus:"focusin",MouseEnter:"mouseenter",MouseLeave:"mouseleave"};function T(t,e){return/^on[A-Z]/.test(t)&&typeof e=="function"}function dt(t){return t.startsWith("aria-")||t.startsWith("data-"),t}function ut(t){return t.startsWith("aria-")||t.startsWith("data-")||lt.has(t)}function q(t){return t.startsWith("--")?t:t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function ht(t){var e;const i=t.endsWith("Capture"),s=(i?t.slice(0,-7):t).slice(2);return{eventName:(e=at[s])!==null&&e!==void 0?e:s.toLowerCase(),options:i?{capture:!0}:void 0}}function ct(t,e){let i=e.defaultPrevented,s=!1;const l=Object.create(e);return Object.defineProperties(l,{nativeEvent:{value:e},currentTarget:{value:t},target:{value:e.target},persist:{value:()=>{}},isDefaultPrevented:{value:()=>i},isPropagationStopped:{value:()=>s},preventDefault:{value:()=>{i=!0,e.preventDefault()}},stopPropagation:{value:()=>{s=!0,e.stopPropagation()}}}),l}function E(t){return rt.has(t)}function D(t,e,i){if(e==="tabIndex"){t.tabIndex=Number(i);return}t[e]=i}function ft(t,e){if(e==="tabIndex"){t.removeAttribute("tabindex");return}const i=t[e];if(typeof i=="boolean"){t[e]=!1;return}if(typeof i=="number"){t[e]=0;return}t[e]=""}function pt(t,e){return typeof e!="number"||e===0||t.startsWith("--")||nt.has(t)?String(e):`${e}px`}function gt(t,e){j.has(e)||t.style.removeProperty(q(e))}function mt(t,e,i){j.has(e)||t.style.setProperty(q(e),pt(e,i))}function vt(t,e,i){new Set([...Object.keys(e),...Object.keys(i)]).forEach(s=>{if(ot.has(s)||!ut(s)||T(s,e[s])||T(s,i[s]))return;const l=e[s],r=i[s];if(l===r)return;const n=dt(s);if(r==null||r===!1){E(s)&&ft(t,s),t.removeAttribute(n);return}if(r===!0){E(s)&&D(t,s,!0),t.setAttribute(n,"");return}if(E(s)){D(t,s,r);return}t.setAttribute(n,String(r))})}function yt(t,e,i){if(e!==i){if(i){t.className=i;return}t.removeAttribute("class")}}function bt(t,e,i){const s=e??{},l=i??{};new Set([...Object.keys(s),...Object.keys(l)]).forEach(r=>{const n=s[r],d=l[r];if(n!==d){if(d==null){gt(t,r);return}mt(t,r,d)}})}function wt(t,e,i){e.forEach(({eventName:l,listener:r,options:n})=>{t.removeEventListener(l,r,n)});const s=[];return Object.entries(i).forEach(([l,r])=>{if(!T(l,r))return;const{eventName:n,options:d}=ht(l),g=f=>{r(ct(t,f))};t.addEventListener(n,g,d),s.push({eventName:n,listener:g,options:d})}),s}function Y(t,e){const i=p.useRef({}),s=p.useRef([]);st(()=>{const l=i.current;return yt(t,l.className,e.className),bt(t,l.style,e.style),vt(t,l,e),s.current=wt(t,s.current,e),i.current=e,()=>{s.current.forEach(({eventName:r,listener:n,options:d})=>{t.removeEventListener(r,n,d)}),s.current=[]}},[t,e])}const Tt=N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,getReferencedVirtualElement:n,options:d,children:g,...f},u)=>{const o=p.useRef(document.createElement("div")),a=p.useRef(W(t,"bubbleMenu")).current;Y(o.current,f),typeof u=="function"?u(o.current):u&&(u.current=o.current);const{editor:h}=z(),c=e||h,m={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:a,shouldShow:r,getReferencedVirtualElement:n,options:d},y=p.useRef(m);y.current=m;const[O,b]=p.useState(!1),v=p.useRef(!0);return p.useEffect(()=>{if(c?.isDestroyed)return;if(!c){console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");return}const w=o.current;w.style.visibility="hidden",w.style.position="absolute";const I=B({...y.current,editor:c,element:w});c.registerPlugin(I);const G=y.current.pluginKey;return v.current=!0,b(!0),()=>{b(!1),c.unregisterPlugin(G),window.requestAnimationFrame(()=>{w.parentNode&&w.parentNode.removeChild(w)})}},[c]),p.useEffect(()=>{if(!(!O||!c||c.isDestroyed)){if(v.current){v.current=!1;return}c.view.dispatch(c.state.tr.setMeta(a,{type:"updateOptions",options:y.current}))}},[O,c,i,s,r,d,l,n,a]),$.createPortal(g,o.current)});N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,options:n,children:d,...g},f)=>{const u=p.useRef(document.createElement("div")),o=p.useRef(W(t,"floatingMenu")).current;Y(u.current,g),typeof f=="function"?f(u.current):f&&(f.current=u.current);const{editor:a}=z(),h=e||a,c={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:o,shouldShow:r,options:n},m=p.useRef(c);m.current=c;const[y,O]=p.useState(!1),b=p.useRef(!0);return p.useEffect(()=>{if(h?.isDestroyed)return;if(!h){console.warn("FloatingMenu component is not rendered inside of an editor component or does not have editor prop.");return}const v=u.current;v.style.visibility="hidden",v.style.position="absolute";const w=F({...m.current,editor:h,element:v});h.registerPlugin(w);const I=m.current.pluginKey;return b.current=!0,O(!0),()=>{O(!1),h.unregisterPlugin(I),window.requestAnimationFrame(()=>{v.parentNode&&v.parentNode.removeChild(v)})}},[h]),p.useEffect(()=>{if(!(!y||!h||h.isDestroyed)){if(b.current){b.current=!1;return}h.view.dispatch(h.state.tr.setMeta(o,{type:"updateOptions",options:m.current}))}},[y,h,i,s,r,n,l,o]),$.createPortal(d,u.current)});export{Tt as B};
|
|
1
|
+
import{A as H,t as U,a9 as S,C as Z,aa as X,f as R,ab as J,ac as Q,o as z}from"./usage-stats-4TwUkhM4.js";import{gA as C,hk as M,gz as P,hl as x,hm as L,hn as V,ho as K,hp as _,gC as A,eT as N,r as p,ca as $}from"./index-BGvfgBXQ.js";import{C as k}from"./index-oZBvLpfd.js";function tt(t,e){const i=Math.min(t.top,e.top),s=Math.max(t.bottom,e.bottom),l=Math.min(t.left,e.left),r=Math.max(t.right,e.right)-l,n=s-i;return new DOMRect(l,i,r,n)}var et=class{get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(C(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(M(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}get virtualElement(){var t,e;const{selection:i}=this.editor.state,s=(t=this.getReferencedVirtualElement)===null||t===void 0?void 0:t.call(this);if(s)return s;if(!(!((e=this.view)===null||e===void 0||(e=e.dom)===null||e===void 0)&&e.parentNode))return;const l=S(this.view,i.from,i.to);let r={getBoundingClientRect:()=>l,getClientRects:()=>[l]};if(i instanceof Z){let n=this.view.nodeDOM(i.from);const d=n.dataset.nodeViewWrapper?n:n.querySelector("[data-node-view-wrapper]");d&&(n=d),n&&(r={getBoundingClientRect:()=>n.getBoundingClientRect(),getClientRects:()=>[n.getBoundingClientRect()]})}if(i instanceof k){const{$anchorCell:n,$headCell:d}=i,g=n?n.pos:d.pos,f=d?d.pos:n.pos,u=this.view.nodeDOM(g),o=this.view.nodeDOM(f);if(!u||!o)return;const a=u===o?u.getBoundingClientRect():tt(u.getBoundingClientRect(),o.getBoundingClientRect());r={getBoundingClientRect:()=>a,getClientRects:()=>[a]}}return r}constructor({editor:t,element:e,view:i,pluginKey:s="bubbleMenu",updateDelay:l=250,resizeDelay:r=60,shouldShow:n,appendTo:d,getReferencedVirtualElement:g,options:f}){var u;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:"absolute",placement:"top",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:o,state:a,from:h,to:c})=>{const{doc:m,selection:y}=a,{empty:O}=y,b=!m.textBetween(h,c).length&&X(a.selection),v=this.element.contains(document.activeElement);return!(!(o.hasFocus()||v)||O||b||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:o})=>{var a;if(this.editor.isDestroyed){this.destroy();return}if(this.preventHide){this.preventHide=!1;return}o?.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(o.relatedTarget))||o?.relatedTarget!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(o,a)=>{const h=!a?.selection.eq(o.state.selection),c=!a?.doc.eq(o.state.doc);!h&&!c||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(o,h,c,a)},this.updateDelay))},this.updateHandler=(o,a,h,c)=>{const{composing:m}=o;if(!(m||!a&&!h)){if(!this.getShouldShow(c)){this.hide();return}this.show(),this.updatePosition()}},this.transactionHandler=({transaction:o})=>{const a=o.getMeta(this.pluginKey);a==="updatePosition"?this.updatePosition():a&&typeof a=="object"&&a.type==="updateOptions"?this.updateOptions(a.options):a==="hide"?this.hide():a==="show"&&(this.updatePosition(),this.show())},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(u=f?.scrollTarget)!==null&&u!==void 0?u:window,this.getReferencedVirtualElement=g,this.floatingUIOptions={...this.floatingUIOptions,...f},this.element.tabIndex=0,n&&(this.shouldShow=n),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}updatePosition(){if(!this.isVisible)return;const t=this.virtualElement;t&&A(t,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:i,strategy:s,middlewareData:l})=>{var r,n;if(!(!this.isVisible||this.editor.isDestroyed||!this.element.isConnected)){if(!((r=l.hide)===null||r===void 0)&&r.referenceHidden||!((n=l.hide)===null||n===void 0)&&n.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=s,this.element.style.left=`${e}px`,this.element.style.top=`${i}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()}})}update(t,e){const{state:i}=t,s=i.selection.from!==i.selection.to;if(this.updateDelay>0&&s){this.handleDebouncedUpdate(t,e);return}const l=!e?.selection.eq(t.state.selection),r=!e?.doc.eq(t.state.doc);this.updateHandler(t,l,r,e)}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return((e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,element:this.element,view:this.view,state:i,oldState:t,from:r,to:n}))||!1}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.getReferencedVirtualElement!==void 0&&(this.getReferencedVirtualElement=t.getReferencedVirtualElement),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const B=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new et({view:e,...t})});R.create({name:"bubbleMenu",addOptions(){return{element:null,pluginKey:"bubbleMenu",updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[B({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}});var it=class{getTextContent(t){return J(t,{textSerializers:Q(this.editor.schema)})}get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(C(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(M(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}constructor({editor:t,element:e,view:i,pluginKey:s="floatingMenu",updateDelay:l=250,resizeDelay:r=60,options:n,appendTo:d,shouldShow:g}){var f;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=({view:u,state:o})=>{const{selection:a}=o,{$anchor:h,empty:c}=a,m=h.depth===1,y=h.parent.isTextblock&&!h.parent.type.spec.code&&!h.parent.textContent&&h.parent.childCount===0&&!this.getTextContent(h.parent);return!(!u.hasFocus()||!c||!m||!y||!this.editor.isEditable)},this.floatingUIOptions={strategy:"absolute",placement:"right",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(u,o,a,h)=>{const{composing:c}=u;if(!(c||!o&&!a)){if(!this.getShouldShow(h)){this.hide();return}this.updatePosition(),this.show()}},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:u})=>{var o;if(this.preventHide){this.preventHide=!1;return}u?.relatedTarget&&(!((o=this.element.parentNode)===null||o===void 0)&&o.contains(u.relatedTarget))||u?.relatedTarget!==this.editor.view.dom&&this.hide()},this.transactionHandler=({transaction:u})=>{const o=u.getMeta(this.pluginKey);o==="updatePosition"?this.updatePosition():o&&typeof o=="object"&&o.type==="updateOptions"?this.updateOptions(o.options):o==="hide"?this.hide():o==="show"&&(this.updatePosition(),this.show())},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(f=n?.scrollTarget)!==null&&f!==void 0?f:window,this.floatingUIOptions={...this.floatingUIOptions,...n},this.element.tabIndex=0,g&&(this.shouldShow=g),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return(e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,view:this.view,state:i,oldState:t,from:r,to:n})}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}updatePosition(){var t;if(!(!((t=this.view)===null||t===void 0||(t=t.dom)===null||t===void 0)&&t.parentNode))return;const{selection:e}=this.editor.state,i=S(this.view,e.from,e.to);A({getBoundingClientRect:()=>i,getClientRects:()=>[i]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:s,y:l,strategy:r,middlewareData:n})=>{var d,g;if(!((d=n.hide)===null||d===void 0)&&d.referenceHidden||!((g=n.hide)===null||g===void 0)&&g.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=r,this.element.style.left=`${s}px`,this.element.style.top=`${l}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()})}update(t,e){const i=!e?.selection.eq(t.state.selection),s=!e?.doc.eq(t.state.doc);this.updateHandler(t,i,s,e)}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const F=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new it({view:e,...t})});R.create({name:"floatingMenu",addOptions(){return{element:null,options:{},pluginKey:"floatingMenu",updateDelay:void 0,resizeDelay:void 0,appendTo:void 0,shouldShow:null}},addCommands(){return{updateFloatingMenuPosition:()=>({tr:t,dispatch:e})=>(e&&t.setMeta(this.options.pluginKey,"updatePosition"),!0)}},addProseMirrorPlugins(){return this.options.element?[F({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,resizeDelay:this.options.resizeDelay,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}});function W(t,e){return t??new U(e)}const st=typeof window<"u"?p.useLayoutEffect:p.useEffect,j=new Set(["left","opacity","position","top","visibility","width"]),nt=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","columns","fillOpacity","flex","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","lineHeight","opacity","order","orphans","scale","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),ot=new Set(["children","className","style"]),rt=new Set(["tabIndex"]),lt=new Set(["accessKey","autoCapitalize","contentEditable","contextMenu","dir","draggable","enterKeyHint","hidden","id","lang","nonce","role","slot","spellCheck","tabIndex","title","translate"]),at={Blur:"focusout",DoubleClick:"dblclick",Focus:"focusin",MouseEnter:"mouseenter",MouseLeave:"mouseleave"};function T(t,e){return/^on[A-Z]/.test(t)&&typeof e=="function"}function dt(t){return t.startsWith("aria-")||t.startsWith("data-"),t}function ut(t){return t.startsWith("aria-")||t.startsWith("data-")||lt.has(t)}function q(t){return t.startsWith("--")?t:t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function ht(t){var e;const i=t.endsWith("Capture"),s=(i?t.slice(0,-7):t).slice(2);return{eventName:(e=at[s])!==null&&e!==void 0?e:s.toLowerCase(),options:i?{capture:!0}:void 0}}function ct(t,e){let i=e.defaultPrevented,s=!1;const l=Object.create(e);return Object.defineProperties(l,{nativeEvent:{value:e},currentTarget:{value:t},target:{value:e.target},persist:{value:()=>{}},isDefaultPrevented:{value:()=>i},isPropagationStopped:{value:()=>s},preventDefault:{value:()=>{i=!0,e.preventDefault()}},stopPropagation:{value:()=>{s=!0,e.stopPropagation()}}}),l}function E(t){return rt.has(t)}function D(t,e,i){if(e==="tabIndex"){t.tabIndex=Number(i);return}t[e]=i}function ft(t,e){if(e==="tabIndex"){t.removeAttribute("tabindex");return}const i=t[e];if(typeof i=="boolean"){t[e]=!1;return}if(typeof i=="number"){t[e]=0;return}t[e]=""}function pt(t,e){return typeof e!="number"||e===0||t.startsWith("--")||nt.has(t)?String(e):`${e}px`}function gt(t,e){j.has(e)||t.style.removeProperty(q(e))}function mt(t,e,i){j.has(e)||t.style.setProperty(q(e),pt(e,i))}function vt(t,e,i){new Set([...Object.keys(e),...Object.keys(i)]).forEach(s=>{if(ot.has(s)||!ut(s)||T(s,e[s])||T(s,i[s]))return;const l=e[s],r=i[s];if(l===r)return;const n=dt(s);if(r==null||r===!1){E(s)&&ft(t,s),t.removeAttribute(n);return}if(r===!0){E(s)&&D(t,s,!0),t.setAttribute(n,"");return}if(E(s)){D(t,s,r);return}t.setAttribute(n,String(r))})}function yt(t,e,i){if(e!==i){if(i){t.className=i;return}t.removeAttribute("class")}}function bt(t,e,i){const s=e??{},l=i??{};new Set([...Object.keys(s),...Object.keys(l)]).forEach(r=>{const n=s[r],d=l[r];if(n!==d){if(d==null){gt(t,r);return}mt(t,r,d)}})}function wt(t,e,i){e.forEach(({eventName:l,listener:r,options:n})=>{t.removeEventListener(l,r,n)});const s=[];return Object.entries(i).forEach(([l,r])=>{if(!T(l,r))return;const{eventName:n,options:d}=ht(l),g=f=>{r(ct(t,f))};t.addEventListener(n,g,d),s.push({eventName:n,listener:g,options:d})}),s}function Y(t,e){const i=p.useRef({}),s=p.useRef([]);st(()=>{const l=i.current;return yt(t,l.className,e.className),bt(t,l.style,e.style),vt(t,l,e),s.current=wt(t,s.current,e),i.current=e,()=>{s.current.forEach(({eventName:r,listener:n,options:d})=>{t.removeEventListener(r,n,d)}),s.current=[]}},[t,e])}const Tt=N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,getReferencedVirtualElement:n,options:d,children:g,...f},u)=>{const o=p.useRef(document.createElement("div")),a=p.useRef(W(t,"bubbleMenu")).current;Y(o.current,f),typeof u=="function"?u(o.current):u&&(u.current=o.current);const{editor:h}=z(),c=e||h,m={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:a,shouldShow:r,getReferencedVirtualElement:n,options:d},y=p.useRef(m);y.current=m;const[O,b]=p.useState(!1),v=p.useRef(!0);return p.useEffect(()=>{if(c?.isDestroyed)return;if(!c){console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");return}const w=o.current;w.style.visibility="hidden",w.style.position="absolute";const I=B({...y.current,editor:c,element:w});c.registerPlugin(I);const G=y.current.pluginKey;return v.current=!0,b(!0),()=>{b(!1),c.unregisterPlugin(G),window.requestAnimationFrame(()=>{w.parentNode&&w.parentNode.removeChild(w)})}},[c]),p.useEffect(()=>{if(!(!O||!c||c.isDestroyed)){if(v.current){v.current=!1;return}c.view.dispatch(c.state.tr.setMeta(a,{type:"updateOptions",options:y.current}))}},[O,c,i,s,r,d,l,n,a]),$.createPortal(g,o.current)});N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,options:n,children:d,...g},f)=>{const u=p.useRef(document.createElement("div")),o=p.useRef(W(t,"floatingMenu")).current;Y(u.current,g),typeof f=="function"?f(u.current):f&&(f.current=u.current);const{editor:a}=z(),h=e||a,c={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:o,shouldShow:r,options:n},m=p.useRef(c);m.current=c;const[y,O]=p.useState(!1),b=p.useRef(!0);return p.useEffect(()=>{if(h?.isDestroyed)return;if(!h){console.warn("FloatingMenu component is not rendered inside of an editor component or does not have editor prop.");return}const v=u.current;v.style.visibility="hidden",v.style.position="absolute";const w=F({...m.current,editor:h,element:v});h.registerPlugin(w);const I=m.current.pluginKey;return b.current=!0,O(!0),()=>{O(!1),h.unregisterPlugin(I),window.requestAnimationFrame(()=>{v.parentNode&&v.parentNode.removeChild(v)})}},[h]),p.useEffect(()=>{if(!(!y||!h||h.isDestroyed)){if(b.current){b.current=!1;return}h.view.dispatch(h.state.tr.setMeta(o,{type:"updateOptions",options:m.current}))}},[y,h,i,s,r,n,l,o]),$.createPortal(d,u.current)});export{Tt as B};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,c1 as ce,j as p,c7 as _,c6 as T,c4 as C,cc as le,c0 as de,co as ue,ck as fe,cd as me}from"./index-
|
|
1
|
+
import{r as l,c1 as ce,j as p,c7 as _,c6 as T,c4 as C,cc as le,c0 as de,co as ue,ck as fe,cd as me}from"./index-BGvfgBXQ.js";import{c as Y}from"./index-BdQq_4o_.js";var $=["PageUp","PageDown"],X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],G={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},M="Slider",[H,Se,pe]=le(M),[W]=fe(M,[pe]),[he,V]=W(M),q=l.forwardRef((e,t)=>{const{name:o,min:n=0,max:s=100,step:c=1,orientation:r="horizontal",disabled:a=!1,minStepsBetweenThumbs:u=0,defaultValue:w=[n],value:h,onValueChange:i=()=>{},onValueCommit:d=()=>{},inverted:v=!1,form:R,...g}=e,m=l.useRef(new Set),f=l.useRef(0),x=r==="horizontal"?ge:ve,[S=[],K]=ce({prop:h,defaultProp:w,onChange:b=>{[...m.current][f.current]?.focus(),i(b)}}),j=l.useRef(S);function B(b){const y=ye(S,b);I(b,y)}function se(b){I(b,f.current)}function ae(){const b=j.current[f.current];S[f.current]!==b&&d(S)}function I(b,y,{commit:k}={commit:!1}){const U=_e(c),z=Ce(Math.round((b-n)/c)*c+n,U),A=Y(z,[n,s]);K((E=[])=>{const P=be(E,A,y);if(Ee(P,u*c)){f.current=P.indexOf(A);const F=String(P)!==String(E);return F&&k&&d(P),F?P:E}else return E})}return p.jsx(he,{scope:e.__scopeSlider,name:o,disabled:a,min:n,max:s,valueIndexToChangeRef:f,thumbs:m.current,values:S,orientation:r,form:R,children:p.jsx(H.Provider,{scope:e.__scopeSlider,children:p.jsx(H.Slot,{scope:e.__scopeSlider,children:p.jsx(x,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:_(g.onPointerDown,()=>{a||(j.current=S)}),min:n,max:s,inverted:v,onSlideStart:a?void 0:B,onSlideMove:a?void 0:se,onSlideEnd:a?void 0:ae,onHomeKeyDown:()=>!a&&I(n,0,{commit:!0}),onEndKeyDown:()=>!a&&I(s,S.length-1,{commit:!0}),onStepKeyDown:({event:b,direction:y})=>{if(!a){const z=$.includes(b.key)||b.shiftKey&&X.includes(b.key)?10:1,A=f.current,E=S[A],P=c*z*y;I(E+P,A,{commit:!0})}}})})})})});q.displayName=M;var[J,Q]=W(M,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:o,max:n,dir:s,inverted:c,onSlideStart:r,onSlideMove:a,onSlideEnd:u,onStepKeyDown:w,...h}=e,[i,d]=l.useState(null),v=C(t,x=>d(x)),R=l.useRef(void 0),g=de(s),m=g==="ltr",f=m&&!c||!m&&c;function D(x){const S=R.current||i.getBoundingClientRect(),K=[0,S.width],B=O(K,f?[o,n]:[n,o]);return R.current=S,B(x-S.left)}return p.jsx(J,{scope:e.__scopeSlider,startEdge:f?"left":"right",endEdge:f?"right":"left",direction:f?1:-1,size:"width",children:p.jsx(Z,{dir:g,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const S=D(x.clientX);r?.(S)},onSlideMove:x=>{const S=D(x.clientX);a?.(S)},onSlideEnd:()=>{R.current=void 0,u?.()},onStepKeyDown:x=>{const K=G[f?"from-left":"from-right"].includes(x.key);w?.({event:x,direction:K?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:o,max:n,inverted:s,onSlideStart:c,onSlideMove:r,onSlideEnd:a,onStepKeyDown:u,...w}=e,h=l.useRef(null),i=C(t,h),d=l.useRef(void 0),v=!s;function R(g){const m=d.current||h.current.getBoundingClientRect(),f=[0,m.height],x=O(f,v?[n,o]:[o,n]);return d.current=m,x(g-m.top)}return p.jsx(J,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:p.jsx(Z,{"data-orientation":"vertical",...w,ref:i,style:{...w.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const m=R(g.clientY);c?.(m)},onSlideMove:g=>{const m=R(g.clientY);r?.(m)},onSlideEnd:()=>{d.current=void 0,a?.()},onStepKeyDown:g=>{const f=G[v?"from-bottom":"from-top"].includes(g.key);u?.({event:g,direction:f?-1:1})}})})}),Z=l.forwardRef((e,t)=>{const{__scopeSlider:o,onSlideStart:n,onSlideMove:s,onSlideEnd:c,onHomeKeyDown:r,onEndKeyDown:a,onStepKeyDown:u,...w}=e,h=V(M,o);return p.jsx(T.span,{...w,ref:t,onKeyDown:_(e.onKeyDown,i=>{i.key==="Home"?(r(i),i.preventDefault()):i.key==="End"?(a(i),i.preventDefault()):$.concat(X).includes(i.key)&&(u(i),i.preventDefault())}),onPointerDown:_(e.onPointerDown,i=>{const d=i.target;d.setPointerCapture(i.pointerId),i.preventDefault(),h.thumbs.has(d)?d.focus():n(i)}),onPointerMove:_(e.onPointerMove,i=>{i.target.hasPointerCapture(i.pointerId)&&s(i)}),onPointerUp:_(e.onPointerUp,i=>{const d=i.target;d.hasPointerCapture(i.pointerId)&&(d.releasePointerCapture(i.pointerId),c(i))})})}),ee="SliderTrack",te=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(ee,o);return p.jsx(T.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...n,ref:t})});te.displayName=ee;var N="SliderRange",ne=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(N,o),c=Q(N,o),r=l.useRef(null),a=C(t,r),u=s.values.length,w=s.values.map(d=>ie(d,s.min,s.max)),h=u>1?Math.min(...w):0,i=100-Math.max(...w);return p.jsx(T.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...n,ref:a,style:{...e.style,[c.startEdge]:h+"%",[c.endEdge]:i+"%"}})});ne.displayName=N;var L="SliderThumb",oe=l.forwardRef((e,t)=>{const o=Se(e.__scopeSlider),[n,s]=l.useState(null),c=C(t,a=>s(a)),r=l.useMemo(()=>n?o().findIndex(a=>a.ref.current===n):-1,[o,n]);return p.jsx(we,{...e,ref:c,index:r})}),we=l.forwardRef((e,t)=>{const{__scopeSlider:o,index:n,name:s,...c}=e,r=V(L,o),a=Q(L,o),[u,w]=l.useState(null),h=C(t,D=>w(D)),i=u?r.form||!!u.closest("form"):!0,d=ue(u),v=r.values[n],R=v===void 0?0:ie(v,r.min,r.max),g=Re(n,r.values.length),m=d?.[a.size],f=m?Pe(m,R,a.direction):0;return l.useEffect(()=>{if(u)return r.thumbs.add(u),()=>{r.thumbs.delete(u)}},[u,r.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${R}% + ${f}px)`},children:[p.jsx(H.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(T.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":r.min,"aria-valuenow":v,"aria-valuemax":r.max,"aria-orientation":r.orientation,"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,tabIndex:r.disabled?void 0:0,...c,ref:h,style:v===void 0?{display:"none"}:e.style,onFocus:_(e.onFocus,()=>{r.valueIndexToChangeRef.current=n})})}),i&&p.jsx(re,{name:s??(r.name?r.name+(r.values.length>1?"[]":""):void 0),form:r.form,value:v},n)]})});oe.displayName=L;var xe="RadioBubbleInput",re=l.forwardRef(({__scopeSlider:e,value:t,...o},n)=>{const s=l.useRef(null),c=C(s,n),r=me(t);return l.useEffect(()=>{const a=s.current;if(!a)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(r!==t&&h){const i=new Event("input",{bubbles:!0});h.call(a,t),a.dispatchEvent(i)}},[r,t]),p.jsx(T.input,{style:{display:"none"},...o,ref:c,defaultValue:t})});re.displayName=xe;function be(e=[],t,o){const n=[...e];return n[o]=t,n.sort((s,c)=>s-c)}function ie(e,t,o){const c=100/(o-t)*(e-t);return Y(c,[0,100])}function Re(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const o=e.map(s=>Math.abs(s-t)),n=Math.min(...o);return o.indexOf(n)}function Pe(e,t,o){const n=e/2,c=O([0,50],[0,n]);return(n-c(t)*o)*o}function De(e){return e.slice(0,-1).map((t,o)=>e[o+1]-t)}function Ee(e,t){if(t>0){const o=De(e);return Math.min(...o)>=t}return!0}function O(e,t){return o=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(o-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const o=Math.pow(10,t);return Math.round(e*o)/o}var Ie=q,Ae=te,Te=ne,Ve=oe;export{Te as R,Ae as T,Ie as a,Ve as b};
|