decocms 4.514.3 → 4.514.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{ActiveShapeUtils-CdZfMwxg.js → ActiveShapeUtils-CDpScllU.js} +1 -1
- package/dist/client/assets/{AlertCircle-Xw5avZbK.js → AlertCircle-xI8XX-bi.js} +1 -1
- package/dist/client/assets/{AreaChart-CLWCrMYY.js → AreaChart-Du66qHXY.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CRtiTyx5.js → ArrowLeft-BKYzlDQY.js} +1 -1
- package/dist/client/assets/{ArrowUp-ZBTt_tRr.js → ArrowUp-Cq3iZIwL.js} +1 -1
- package/dist/client/assets/{BarChart-D55TXq6X.js → BarChart-BXz-bUtC.js} +1 -1
- package/dist/client/assets/{Building02-D3HlsVKC.js → Building02-C9KWPxlH.js} +1 -1
- package/dist/client/assets/{CartesianChart-D756EFp0.js → CartesianChart-BZmgsxge.js} +1 -1
- package/dist/client/assets/{CategoricalChart-B8XMBa4H.js → CategoricalChart-DkwWvFDx.js} +1 -1
- package/dist/client/assets/{CheckCircle-C9KkL-ha.js → CheckCircle-D30wPP6A.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-Dn4fuoEm.js → ChevronSelectorVertical-CknWVrzo.js} +1 -1
- package/dist/client/assets/{ChevronUp-DrJ4ZMnj.js → ChevronUp-CFN68hLk.js} +1 -1
- package/dist/client/assets/{Copy01-pBwpFr5E.js → Copy01-C73PJJxr.js} +1 -1
- package/dist/client/assets/{CreditCard01-BqcZfibd.js → CreditCard01-C8DlQ7Ge.js} +1 -1
- package/dist/client/assets/{DotsVertical-F1dsSUur.js → DotsVertical-BvyfZIer.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-kB-oacQg.js → ErrorBarContext-Bhpq3Y0r.js} +1 -1
- package/dist/client/assets/{Globe04-xGJ8qaSX.js → Globe04-CVLAzwjm.js} +1 -1
- package/dist/client/assets/{Image01-Gj57XenJ.js → Image01-DowwsvYG.js} +1 -1
- package/dist/client/assets/{Key01-CQzFU9Dd.js → Key01-rbnGMz2E.js} +1 -1
- package/dist/client/assets/{Link01-aU3GjxmN.js → Link01-DRsKyIm5.js} +1 -1
- package/dist/client/assets/{LinkBroken01-BLwPVvDX.js → LinkBroken01-ZRquEJUl.js} +1 -1
- package/dist/client/assets/{Minus-zPVCXAO3.js → Minus-DPDq6KAA.js} +1 -1
- package/dist/client/assets/{Monitor01-ByAAH3lz.js → Monitor01-DMME8GIo.js} +1 -1
- package/dist/client/assets/{Play-Bx8RMer5.js → Play-c6bc1b3-.js} +1 -1
- package/dist/client/assets/{Plus-B9TUkipI.js → Plus-xabrshQG.js} +1 -1
- package/dist/client/assets/{ReferenceLine-B1r94G-b.js → ReferenceLine-BPq2MnBR.js} +1 -1
- package/dist/client/assets/{SearchMd-Ck1yegxo.js → SearchMd-BODiv7c9.js} +1 -1
- package/dist/client/assets/{Sector-r77J6cjI.js → Sector-BraX9V6h.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-Cg2jvTDh.js → ShoppingBag01-DAjyOiiw.js} +1 -1
- package/dist/client/assets/{Sun-BMOc0yID.js → Sun-BqmeoxcG.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CO62ORXj.js → SwitchHorizontal01-CESO3nxl.js} +1 -1
- package/dist/client/assets/{Tool01-Dt8T1J90.js → Tool01-BGL2Qt57.js} +1 -1
- package/dist/client/assets/{Trash01-B3jlnF7f.js → Trash01-Cf6bGuCZ.js} +1 -1
- package/dist/client/assets/{Upload01-C28VogbT.js → Upload01-ZLE7vfB9.js} +1 -1
- package/dist/client/assets/{User01-iHpAscCV.js → User01-Cfg0yVvz.js} +1 -1
- package/dist/client/assets/{UserSquare-C9OWQv6V.js → UserSquare-DJngEPjS.js} +1 -1
- package/dist/client/assets/{Users01-CdNcgmGk.js → Users01-vn3EOu8A.js} +1 -1
- package/dist/client/assets/{XClose-CyMpkfM0.js → XClose-CdzjyNb0.js} +1 -1
- package/dist/client/assets/{ZoomOut-BLFKARu6.js → ZoomOut-B55seUHX.js} +1 -1
- package/dist/client/assets/{access-gate-ONVQlUZQ.js → access-gate-CgSSvGG3.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-C21EMYEq.js → add-connection-dialog-O4xCe9BP.js} +1 -1
- package/dist/client/assets/{agent-analytics-BTDTho6I.js → agent-analytics-Biob4Jvo.js} +1 -1
- package/dist/client/assets/agent-app-DTwyyqho.js +1 -0
- package/dist/client/assets/{agent-assets-4trDm0V9.js → agent-assets-DpuZ7qUq.js} +1 -1
- package/dist/client/assets/{agent-automation-Dja9Xowr.js → agent-automation-DBMflQw2.js} +1 -1
- package/dist/client/assets/{agent-automations-z0VGGanW.js → agent-automations-CHJpber1.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-4z2Phf_7.js → agent-connect-sources-CX6V3W-l.js} +1 -1
- package/dist/client/assets/agent-deck-DRCJIHES.js +1 -0
- package/dist/client/assets/{agent-e2e-BC3cW7KY.js → agent-e2e-rlzvrptO.js} +1 -1
- package/dist/client/assets/{agent-experiments-EtHiIUkw.js → agent-experiments-BzSUejrS.js} +1 -1
- package/dist/client/assets/{agent-file-Bs6dCKJk.js → agent-file-pM3fkLSV.js} +1 -1
- package/dist/client/assets/{agent-hosting-FbdebsND.js → agent-hosting-CIblOaW0.js} +1 -1
- package/dist/client/assets/{agent-icon-xbJdvE2q.js → agent-icon-c0hRUHIU.js} +1 -1
- package/dist/client/assets/agent-library-BF5T38g7.js +1 -0
- package/dist/client/assets/agent-library-file-BTDXrKvZ.js +1 -0
- package/dist/client/assets/{agent-monitor-BDAqlG_O.js → agent-monitor-CMU4bHqc.js} +1 -1
- package/dist/client/assets/{agent-overview-C4eNQE5C.js → agent-overview-C0WObUrB.js} +1 -1
- package/dist/client/assets/{agent-releases-DKUqaG24.js → agent-releases-CEAPMdCY.js} +1 -1
- package/dist/client/assets/agent-settings-9voN143W.js +1 -0
- package/dist/client/assets/{agent-site-editor-xMS-R2aU.js → agent-site-editor-WHTbnkdB.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-DxTJ31bR.js +2 -0
- package/dist/client/assets/agent-site-editor-content-B8OXp1G1.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-Bu7A4U4r.js +1 -0
- package/dist/client/assets/agent-view-DW3bjKRU.js +1 -0
- package/dist/client/assets/{agent-view-guard-3MeZ4aTa.js → agent-view-guard-CY0RZ3mz.js} +1 -1
- package/dist/client/assets/{agents-list-D4fToZPl.js → agents-list-lrkIUH1p.js} +1 -1
- package/dist/client/assets/{ai-providers-Bv6h-cB1.js → ai-providers-BJRpwnf3.js} +1 -1
- package/dist/client/assets/{alert-DudHXsvn.js → alert-J8Wo4iMe.js} +1 -1
- package/dist/client/assets/{alert-dialog-CIQ4s-Lz.js → alert-dialog-M8Y0zqSA.js} +1 -1
- package/dist/client/assets/{analytics-sections-BNTSghIV.js → analytics-sections-Crtm-SOa.js} +1 -1
- package/dist/client/assets/{api-keys-WRhPMB3h.js → api-keys-BuJhmHVr.js} +1 -1
- package/dist/client/assets/api-keys-DPclIgvr.js +1 -0
- package/dist/client/assets/{app-editor-BSPpTZE1.js → app-editor-CWO6RLKf.js} +1 -1
- package/dist/client/assets/{asset-utils-qR6LoJ_h.js → asset-utils-D4ZYWTsd.js} +1 -1
- package/dist/client/assets/{auth-SJ5HA4qu.js → auth-CJCUdDnK.js} +1 -1
- package/dist/client/assets/{auth-catchall-DIVLakgR.js → auth-catchall-PMDrOrh4.js} +1 -1
- package/dist/client/assets/{auth-entry-BUpOhkkF.js → auth-entry-D45yK4lP.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DWmkPlv8.js → auth-split-layout-BeoAmW98.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DcGS7xvq.js → authenticate-and-persist-oauth-D7W1mkzH.js} +1 -1
- package/dist/client/assets/{automation-list-row-C6wkVVM2.js → automation-list-row-CO-7cr0O.js} +1 -1
- package/dist/client/assets/{automation-runs-DK7hF2re.js → automation-runs-7CDwsw1m.js} +1 -1
- package/dist/client/assets/{automations-CWsbggve.js → automations-DpOWGNx_.js} +1 -1
- package/dist/client/assets/{autosend-Bdq4AAOA.js → autosend-BiXCzDoT.js} +1 -1
- package/dist/client/assets/{avatar-DKhkCIxl.js → avatar-CVrfZDpI.js} +1 -1
- package/dist/client/assets/{badge-BaNfmuO8.js → badge-ByzdbptS.js} +1 -1
- package/dist/client/assets/{block-document-tHFQej1Z.js → block-document-EFEgqy7V.js} +2 -2
- package/dist/client/assets/{blocks-preview-workspace-context-amn8EPjX.js → blocks-preview-workspace-context-FfAtB7Mh.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-WwOFnER9.js → blocks-tab-states-diUqUrAK.js} +3 -3
- package/dist/client/assets/{blog-schema-BTTXhi7Z.js → blog-schema-pXyj_uKN.js} +1 -1
- package/dist/client/assets/{buckets-BJR6Poi_.js → buckets-EuucCx-Z.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-XpCWiano.js → build-improve-prompt-doc-0HVt3TgE.js} +1 -1
- package/dist/client/assets/{calendar-CmVMlvDW.js → calendar-B3WUDV6V.js} +1 -1
- package/dist/client/assets/{capability-load-error-DLrFY0pE.js → capability-load-error-CaA022rx.js} +1 -1
- package/dist/client/assets/{category-editor-H1K5WyX9.js → category-editor-16fFMZmU.js} +1 -1
- package/dist/client/assets/{chart-svR9320_.js → chart-B6d33H1D.js} +1 -1
- package/dist/client/assets/{chat-context-BD0enLRD.js → chat-context-BnuwMOfj.js} +1 -1
- package/dist/client/assets/{chat-draft-DLtm127P.js → chat-draft-D3EwPWFD.js} +1 -1
- package/dist/client/assets/{checkbox-BkGN5Ij7.js → checkbox-Dla8kRWj.js} +1 -1
- package/dist/client/assets/{choose-editor-Ce-r724F.js → choose-editor-CFsJlwqs.js} +1 -1
- package/dist/client/assets/{cli-auth-success-B270ikNy.js → cli-auth-success-DADJ0ld_.js} +1 -1
- package/dist/client/assets/{client-icons-X70m8FwJ.js → client-icons-M2KssD4J.js} +1 -1
- package/dist/client/assets/cms-settings-editor-Cowvog2q.js +1 -0
- package/dist/client/assets/{collapsible-Cb8CG7AM.js → collapsible-BWjY8cOG.js} +1 -1
- package/dist/client/assets/{collection-detail-CtM9F6Yi.js → collection-detail-BVMX_w00.js} +1 -1
- package/dist/client/assets/{collection-display-button-CDOjaURj.js → collection-display-button-DcSGVqBT.js} +1 -1
- package/dist/client/assets/{collection-search-BHoJUV7e.js → collection-search-C0nHL4Zi.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-geIi8_Sw.js → collection-table-wrapper-BqLbzGMr.js} +1 -1
- package/dist/client/assets/{collection-tabs-hk_1iOu3.js → collection-tabs-DJst1PBn.js} +1 -1
- package/dist/client/assets/{column-rules-Cjr0B0gK.js → column-rules-C6rmmvcZ.js} +1 -1
- package/dist/client/assets/{combobox-BO9v7_al.js → combobox-DJtWtG8e.js} +1 -1
- package/dist/client/assets/{coming-soon-page-DnY9s-rA.js → coming-soon-page-CycWyIEs.js} +1 -1
- package/dist/client/assets/{command-B5YgVfYV.js → command-DQxPvzO0.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-VfZSt4c3.js → companion-mcps-section-BaIOrb8k.js} +1 -1
- package/dist/client/assets/{config-CpP-SJmf.js → config-0dQr8OOs.js} +1 -1
- package/dist/client/assets/{connect-Dy8DjT_3.js → connect-AQ7wxQDD.js} +1 -1
- package/dist/client/assets/{connect-layout-CZtnL3s3.js → connect-layout-CsBnyYo4.js} +1 -1
- package/dist/client/assets/connection-B5x-rxzp.js +1 -0
- package/dist/client/assets/{connection-card-CYXWmIpu.js → connection-card-CFqu0_G8.js} +1 -1
- package/dist/client/assets/{connection-detail-Cv9EiI-S.js → connection-detail-B_xaSLIN.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-v7Gk9RBI.js → connection-form-helpers-CouK82td.js} +1 -1
- package/dist/client/assets/{connections-C-m4e4hC.js → connections-CrdtyJFL.js} +1 -1
- package/dist/client/assets/{content-tab-D8CDOZFu.js → content-tab-CTbbT9Kp.js} +3 -3
- package/dist/client/assets/{context-BKHuX3rA.js → context-DwXA-O6V.js} +1 -1
- package/dist/client/assets/{context-menu-B99sLoxc.js → context-menu-CI-AryjZ.js} +1 -1
- package/dist/client/assets/{context-shell-kEzbpVXI.js → context-shell-BsFUt-ob.js} +3 -3
- package/dist/client/assets/{core.esm-B-vvH6U_.js → core.esm-DOdwJCI5.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CYcyvXNd.js → create-organization-dialog-CDMsJ1wq.js} +1 -1
- package/dist/client/assets/{daily-pulse-DTK39nco.js → daily-pulse-A6lEoniM.js} +1 -1
- package/dist/client/assets/{discover-4L6P_izP.js → discover-JQgSyvWz.js} +1 -1
- package/dist/client/assets/{domain-settings-CwFmMnsp.js → domain-settings-CNG0968P.js} +1 -1
- package/dist/client/assets/{drawer-C8YZqwNU.js → drawer-CEiS53oX.js} +1 -1
- package/dist/client/assets/{editor-BmGrPmWd.js → editor-DWhRi1_f.js} +1 -1
- package/dist/client/assets/{editor-classes-DwAeqyV1.js → editor-classes-CZOMDDcn.js} +1 -1
- package/dist/client/assets/{empty-state-Cms3wOkC.js → empty-state-B1xpK558.js} +1 -1
- package/dist/client/assets/{empty-state-ZbW7XOFD.js → empty-state-BoFIIv2e.js} +1 -1
- package/dist/client/assets/{extract-connection-data-IYfrzLhg.js → extract-connection-data-CUvLfXNU.js} +1 -1
- package/dist/client/assets/{feature-gate-CG2VwwWi.js → feature-gate-B9a4dBc0.js} +1 -1
- package/dist/client/assets/{feature-paywall-BpYhCDhe.js → feature-paywall-DINMFUUx.js} +1 -1
- package/dist/client/assets/{file-explorer-CLqD64AT.js → file-explorer-2Z0Qhvp_.js} +1 -1
- package/dist/client/assets/{file-preview-CN6BZe9N.js → file-preview-BFXgyqHl.js} +1 -1
- package/dist/client/assets/{file-share-button-B_aulUCG.js → file-share-button-BIOHr9Xv.js} +1 -1
- package/dist/client/assets/{file-type-icon-BT_upOOQ.js → file-type-icon-Ez8-DRHg.js} +1 -1
- package/dist/client/assets/{folder-icon-Ce9JjNkO.js → folder-icon-JgTmBbpC.js} +1 -1
- package/dist/client/assets/{form-0zQfcME1.js → form-Bdh0vUeg.js} +1 -1
- package/dist/client/assets/{general-DJ2dQIWU.js → general-Dvy5SU0P.js} +1 -1
- package/dist/client/assets/{home-CZ3TorTS.js → home-UtAOwZ_a.js} +1 -1
- package/dist/client/assets/{hosted-publish-feedback-BhmPHGC1.js → hosted-publish-feedback-NabikYNC.js} +1 -1
- package/dist/client/assets/{icon-button-Ceb9s98X.js → icon-button-Dg2jSe-y.js} +1 -1
- package/dist/client/assets/{index-Gzzgsd4v.js → index-1XeDvVO_.js} +1 -1
- package/dist/client/assets/{index-BSNUKIdY.js → index-6B342dVL.js} +1 -1
- package/dist/client/assets/{index-D1ExhSbK.js → index-7svLQYvL.js} +1 -1
- package/dist/client/assets/index-BqS2UmN9.css +1 -0
- package/dist/client/assets/{index-DMeWvlKI.js → index-CXeJCI0G.js} +1 -1
- package/dist/client/assets/{index-BaYevbIv.js → index-CrgWXxvo.js} +1 -1
- package/dist/client/assets/{index-6aoTvD2k.js → index-CxtzBp5_.js} +1 -1
- package/dist/client/assets/{index-BRDOglYB.js → index-DKOhwHAG.js} +1 -1
- package/dist/client/assets/{index-lR3XPtRX.js → index-DYLyKNcw.js} +1 -1
- package/dist/client/assets/{index-DZmvRzpa.js → index-DcU2uHG-.js} +6 -6
- package/dist/client/assets/{index-DQn7IKTD.js → index-De44zW_k.js} +1 -1
- package/dist/client/assets/{index-CKjmmN2q.js → index-DincrG3Y.js} +2 -2
- package/dist/client/assets/{index-DhP0NfMa.js → index-DxbCP5B6.js} +1 -1
- package/dist/client/assets/{index-c7CAL2jv.js → index-ILRCn1qM.js} +1 -1
- package/dist/client/assets/{index-BOzfWC0j.js → index-WjQsIrkp.js} +1 -1
- package/dist/client/assets/{index-D01CNSUp.js → index-_y92DzgS.js} +1 -1
- package/dist/client/assets/{index-redirect-Beb39sMw.js → index-redirect-BHJ13xlS.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DyhoCK-t.js → infiniteQueryObserver-P7ZNg4ZF.js} +1 -1
- package/dist/client/assets/{infra-billing-DaF_KQcU.js → infra-billing-kRHrP-RL.js} +1 -1
- package/dist/client/assets/{input-BSIw0LEH.js → input-HXHaYrka.js} +1 -1
- package/dist/client/assets/{input-DWCczbBZ.js → input-pg_Munw1.js} +7 -7
- package/dist/client/assets/{integration-icon-p-7TYx5K.js → integration-icon-aeIvRSnw.js} +1 -1
- package/dist/client/assets/{jira-icon-Cqq8p3Nl.js → jira-icon-CZLCmGol.js} +1 -1
- package/dist/client/assets/{label-Cg6deWT_.js → label-DDPD5LQh.js} +1 -1
- package/dist/client/assets/{layout-BJTmQ-qV.js → layout-DGYUOV2D.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-CLWnuZog.js → legacy-agents-deep-B3GKD6WQ.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-M0crlGVV.js → legacy-main-redirect-BdnJuiDi.js} +1 -1
- package/dist/client/assets/library-DYD_N6_K.js +1 -0
- package/dist/client/assets/{login-CUA-boqW.js → login-syjpZA32.js} +1 -1
- package/dist/client/assets/{markdown-D8gxQimb.js → markdown-1PeXOKNt.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DDd6FX5B.js → mcp-app-renderer-DTPlWHGT.js} +1 -1
- package/dist/client/assets/{mcp-oauth-sYREX0g8.js → mcp-oauth-DP6VNnFQ.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DKeK8Nk2.js → mcp-oauth-xBzZujQ_.js} +1 -1
- package/dist/client/assets/{members-CXVbCVJK.js → members-uR8n9Rms.js} +1 -1
- package/dist/client/assets/{memory-DDKoHpnD.js → memory-BYqDBVHV.js} +1 -1
- package/dist/client/assets/{mini-report-page-ClYSQn2n.js → mini-report-page-D7tpDtif.js} +1 -1
- package/dist/client/assets/{mock-board-CxTbnv1o.js → mock-board-BOSDq94-.js} +3 -3
- package/dist/client/assets/{monaco-editor-B2bJ-Eqz.js → monaco-editor-e80GuCNv.js} +1 -1
- package/dist/client/assets/monitoring-CgqK6OeU.js +1 -0
- package/dist/client/assets/{monitoring-stats-row-Bx_bnBJ1.js → monitoring-stats-row-94Mta4Nq.js} +1 -1
- package/dist/client/assets/{multi-select-CB82ag4Z.js → multi-select-CmbGOwtN.js} +1 -1
- package/dist/client/assets/{mustache-CkrthWSN.js → mustache-Aw4qvxEW.js} +1 -1
- package/dist/client/assets/{new-project-dialog-fuA-Gj0h.js → new-project-dialog-ShudNZIG.js} +1 -1
- package/dist/client/assets/{oauth-callback-95jl0IsS.js → oauth-callback-CuZCWVkp.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DBEH1iyi.js → oauth-callback-ai-provider-DQtTsT-Q.js} +1 -1
- package/dist/client/assets/{onboarding-DwULcBev.js → onboarding-BYvWDC_s.js} +1 -1
- package/dist/client/assets/{openai-conversation-B_SeMqvD.js → openai-conversation-DgaJVito.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-DGpZf5v4.js → optimistic-project-sidebar-views-CKzSSiC-.js} +1 -1
- package/dist/client/assets/order-monitor-day-CIHUt3pK.js +1 -0
- package/dist/client/assets/{organization-choice-RIT0XAjx.js → organization-choice-D_5aYbIz.js} +1 -1
- package/dist/client/assets/{orgs-CBjKEvcF.js → orgs-CN3Yh6bp.js} +1 -1
- package/dist/client/assets/{page-seo-form-BqdVX8F8.js → page-seo-form-CnjlIIXj.js} +1 -1
- package/dist/client/assets/{pair-DIXfGUQ-.js → pair-Cn70Tm81.js} +1 -1
- package/dist/client/assets/plan-ByMMI8KU.js +1 -0
- package/dist/client/assets/{plan-ladder-C3H9TnAW.js → plan-ladder-D5aCNSRy.js} +1 -1
- package/dist/client/assets/{popover-BhaAeUe3.js → popover-CVCbWisj.js} +1 -1
- package/dist/client/assets/{post-calendar-YA1vs0N_.js → post-calendar-Dq_uFQwi.js} +1 -1
- package/dist/client/assets/{post-editor-BFIdHYHF.js → post-editor-DPLEIDHY.js} +1 -1
- package/dist/client/assets/{preview-content-CSLaGBsw.js → preview-content-Bin2hNFJ.js} +1 -1
- package/dist/client/assets/{preview-dialog-npZjjezH.js → preview-dialog-Fls4giAH.js} +1 -1
- package/dist/client/assets/{preview-panel-BAK1_114.js → preview-panel-BPPH_1cI.js} +1 -1
- package/dist/client/assets/{preview-tab-BmJ5lvy5.js → preview-tab-BHT_7Qja.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-Bp49rZcw.js → product-picker-dialog-p0Ic9l9I.js} +1 -1
- package/dist/client/assets/{profile-BhTd8xPX.js → profile-BZA6I0p4.js} +1 -1
- package/dist/client/assets/{project-app-view-CvfGpj95.js → project-app-view-B2uzp3zO.js} +1 -1
- package/dist/client/assets/{project-apps-BK3RvEKs.js → project-apps-v-sauknl.js} +1 -1
- package/dist/client/assets/{project-feed-dwhzKucL.js → project-feed-CxXgvjMu.js} +1 -1
- package/dist/client/assets/{project-icon-CObMLd6k.js → project-icon-Dy5ndHVf.js} +1 -1
- package/dist/client/assets/project-reports-CZJuTnYB.js +1 -0
- package/dist/client/assets/project-tasks-CGicoIeY.js +1 -0
- package/dist/client/assets/{projects-C6VPqvOv.js → projects-6tFWscR3.js} +1 -1
- package/dist/client/assets/{projects-empty-state-DoNhKpfX.js → projects-empty-state-B25sfM8y.js} +1 -1
- package/dist/client/assets/{prompts-BzUN-oHO.js → prompts-C8y9cYvX.js} +1 -1
- package/dist/client/assets/record-editor-Bh04Pm0_.js +1 -0
- package/dist/client/assets/{redirect-editor-COLLYslO.js → redirect-editor-DQhKbdsA.js} +1 -1
- package/dist/client/assets/reports-BupQ5Xhd.js +1 -0
- package/dist/client/assets/{reports--qeckjzQ.js → reports-DZf5GwgJ.js} +1 -1
- package/dist/client/assets/{reports-onboarding-DWE6GRTZ.js → reports-onboarding-Ba6c9nYx.js} +1 -1
- package/dist/client/assets/{reports-tab-DHTxCBPK.js → reports-tab-aEhqa7te.js} +2 -2
- package/dist/client/assets/repositories-CEC-SgTJ.js +1 -0
- package/dist/client/assets/{repositories-BIX1oEp0.js → repositories-D_HBag21.js} +1 -1
- package/dist/client/assets/{repository-binding-Crzce39j.js → repository-binding-B-JblZ3B.js} +1 -1
- package/dist/client/assets/{repository-import-picker-Dc-C4u06.js → repository-import-picker-Aq7ItYog.js} +1 -1
- package/dist/client/assets/{repository-picker-CcfzDGVl.js → repository-picker-CigkRPj6.js} +1 -1
- package/dist/client/assets/{require-capability-52b9Xp2K.js → require-capability-fF33BjRE.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Cv2nEUpp.js → required-auth-layout-n4GqwjUS.js} +1 -1
- package/dist/client/assets/{reset-password-Dfa47yF2.js → reset-password-FYcr_EOZ.js} +1 -1
- package/dist/client/assets/{resizable-CD7h3nN-.js → resizable-B1jyEV0m.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-CqojFXag.js → resolve-tab-icon-DtNff2Yq.js} +1 -1
- package/dist/client/assets/{review-settings-BUPBoruP.js → review-settings-w0gSi3zN.js} +1 -1
- package/dist/client/assets/{roles-Bf4orU_d.js → roles-CD7KBus5.js} +1 -1
- package/dist/client/assets/route-Co7AkL50.js +1 -0
- package/dist/client/assets/{route-Cb_75el1.js → route-D9eWdPea.js} +1 -1
- package/dist/client/assets/{route-BDPeidxF.js → route-P4X0mipC.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-5lhGd7lA.js → sandbox-lifecycle-context-Cyz-VR-q.js} +1 -1
- package/dist/client/assets/{schema-DQCQDgpQ.js → schema-DTqdooJM.js} +1 -1
- package/dist/client/assets/{schema-DdmMHuHI.js → schema-Jt-SHSRj.js} +1 -1
- package/dist/client/assets/{scroll-area-BeyMzs7n.js → scroll-area-DowOzl5a.js} +1 -1
- package/dist/client/assets/{search-input-XUsx69AG.js → search-input-C77c23a_.js} +1 -1
- package/dist/client/assets/{search-toggle-BOhPhSK9.js → search-toggle-BqUvwbnO.js} +1 -1
- package/dist/client/assets/{secret-ciphertext-BNqU9z9-.js → secret-ciphertext-CI3Fu2ro.js} +1 -1
- package/dist/client/assets/{secret-picker-BvSb3jCA.js → secret-picker-D6q2PbZG.js} +1 -1
- package/dist/client/assets/{secrets-Cy-u6BJs.js → secrets-C6FiSzJz.js} +1 -1
- package/dist/client/assets/{sections-editor-BW17NeNz.js → sections-editor-BgMrH8fq.js} +1 -1
- package/dist/client/assets/{sections-BTgfE_FY.js → sections-uFSvOb1s.js} +1 -1
- package/dist/client/assets/{select-Cbu3qvFl.js → select-B47VUguS.js} +1 -1
- package/dist/client/assets/{select-model-VJ9lYH--.js → select-model-B0eE99E3.js} +1 -1
- package/dist/client/assets/{seo-editor-BbRE4kYu.js → seo-editor-C-YMij5b.js} +1 -1
- package/dist/client/assets/{separator-NxpCq_fX.js → separator-tMi_6w_o.js} +1 -1
- package/dist/client/assets/settings-tab-Cp5pryb2.js +1 -0
- package/dist/client/assets/{sheet-Bfbvz7qf.js → sheet-R9Pr50Sb.js} +1 -1
- package/dist/client/assets/{shell-layout-DIpfnUmp.js → shell-layout-DNfiem0_.js} +1 -1
- package/dist/client/assets/site-editor-Dsm_SPF7.js +1 -0
- package/dist/client/assets/{site-editor-toast-DHoj9EWm.js → site-editor-toast-L4A-Cxh7.js} +1 -1
- package/dist/client/assets/{skills-AvplbaRb.js → skills-DTPuV4HK.js} +1 -1
- package/dist/client/assets/{slider-zXHlVo80.js → slider-B9iKqweT.js} +1 -1
- package/dist/client/assets/{sortable.esm-B4CgDU9u.js → sortable.esm-7lfZBBX2.js} +1 -1
- package/dist/client/assets/{sso-CQl3dHdZ.js → sso-lvoln_ad.js} +1 -1
- package/dist/client/assets/{suggestion-CYymZPPs.js → suggestion-D_Z3LuMt.js} +1 -1
- package/dist/client/assets/{switch-rXR8XB2Q.js → switch-BQFbXMA-.js} +1 -1
- package/dist/client/assets/{symbol-CH4Xarnb.js → symbol-CIh5AfyD.js} +1 -1
- package/dist/client/assets/{synced-repos-BgwXL9VR.js → synced-repos-DQxi8k5O.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-O6qURAza.js → tab-icon-glyph-B2rDBqdy.js} +1 -1
- package/dist/client/assets/{table-sMkWni7I.js → table-DuCeyVXY.js} +1 -1
- package/dist/client/assets/{tabs-DfHCEpge.js → tabs-CJ70csAp.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-CucOmObw.js → task-assignee-avatar-vyXzgPAK.js} +1 -1
- package/dist/client/assets/{task-board-CaPpwq32.js → task-board-CSpxMIw7.js} +1 -1
- package/dist/client/assets/{task-route-gczEEfKl.js → task-route-CeJ19bNy.js} +1 -1
- package/dist/client/assets/{task-status-Cr_5dDMU.js → task-status-CFz3dyVR.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-CKXys2LI.js → taskboard-analytics-CfseXo9_.js} +1 -1
- package/dist/client/assets/{tasks-BvctT5rM.js → tasks-C3liOhO2.js} +1 -1
- package/dist/client/assets/tasks-DrfrXIxf.js +1 -0
- package/dist/client/assets/{textarea-CZJdW3O-.js → textarea-BDWvYouR.js} +1 -1
- package/dist/client/assets/{thread-analytics-CLfrgGOI.js → thread-analytics-Bp5Zz9ej.js} +1 -1
- package/dist/client/assets/{thread-intent-DSMNbywp.js → thread-intent-DlbBEzNn.js} +1 -1
- package/dist/client/assets/{thread-route-DRHV3UDV.js → thread-route-DsRsjMOv.js} +1 -1
- package/dist/client/assets/{thread-route-Raqfujtn.js → thread-route-glK7AgQo.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-BfUatXJK.js → thread-sheet-body-BW8H1wdb.js} +1 -1
- package/dist/client/assets/{time-range-picker-DTgCqMGh.js → time-range-picker-Dm5YljWh.js} +1 -1
- package/dist/client/assets/{toggle-group-UTtWLTMA.js → toggle-group-CtPF-F41.js} +1 -1
- package/dist/client/assets/{tool-namespace-7T90cyyj.js → tool-namespace-FeAXQzXg.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-COCtKkJg.js → toolbar-icon-button-CTGjpqPD.js} +1 -1
- package/dist/client/assets/{tooltip-DqIKeyvv.js → tooltip-BqHx2R4U.js} +1 -1
- package/dist/client/assets/{tooltipContext-ByzabvwH.js → tooltipContext-DFq6ns9J.js} +1 -1
- package/dist/client/assets/{track-CE4a6gFB.js → track-vnmuUrPF.js} +1 -1
- package/dist/client/assets/{types-B6GvJCve.js → types-Cj3BjtjJ.js} +1 -1
- package/dist/client/assets/{url-slug-BEfEZS0k.js → url-slug-DfovzTSP.js} +1 -1
- package/dist/client/assets/{usage-stats-DMw1RiCl.js → usage-stats-DcyLnEOC.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Cz7SdI5U.js → use-ai-providers-DugUJNG4.js} +1 -1
- package/dist/client/assets/{use-automations-CaTMVisV.js → use-automations-Dhy5bAQi.js} +1 -1
- package/dist/client/assets/{use-autosave-Bp_9QeDf.js → use-autosave-BKifxWxQ.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-D7IRwgFk.js → use-chat-layout-state-CqPKeLYn.js} +1 -1
- package/dist/client/assets/{use-clock-tick-8d4UupB9.js → use-clock-tick-CbuQEbGd.js} +1 -1
- package/dist/client/assets/{use-connect-companion-DbE19_P8.js → use-connect-companion-BBUs22Yl.js} +1 -1
- package/dist/client/assets/{use-connection-DYi1EUeB.js → use-connection-Dj54skEw.js} +1 -1
- package/dist/client/assets/{use-content-sync-BtAVm9GD.js → use-content-sync-D4PHTEJr.js} +1 -1
- package/dist/client/assets/{use-copy-VmXJT7AS.js → use-copy-K9rQ1PJH.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CpPYY-2s.js → use-create-virtual-mcp-C4gtrY2f.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-BWpdNWSN.js → use-date-fns-locale-CEVf4Ifn.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C0gIW8oG.js → use-debounced-autosave-D0TGgFvB.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BHvh2vK1.js → use-debounced-value-CDunmz6Z.js} +1 -1
- package/dist/client/assets/{use-deco-credits-tDSuXDrd.js → use-deco-credits-orVqTX6I.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CsYT9a26.js → use-decopilot-events-TumByBkr.js} +1 -1
- package/dist/client/assets/use-delete-connection-BllZSjRL.js +1 -0
- package/dist/client/assets/{use-deployment-admin-DcCc-te9.js → use-deployment-admin-BBVz6SL_.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-D3EgtvLk.js → use-fast-preview-draft-url-6p2QJIdt.js} +1 -1
- package/dist/client/assets/{use-file-configs-CjjzAc6B.js → use-file-configs-BFq_wpSt.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-CyRYIVb_.js → use-inbox-feed--WBiu__i.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-D9DYWBy4.js → use-infinite-scroll-7dT9x3fg.js} +1 -1
- package/dist/client/assets/{use-join-requests-D5UEE0T2.js → use-join-requests-ilYuD6XT.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-lUwy-ryz.js → use-main-panel-tabs-kHysLFoZ.js} +1 -1
- package/dist/client/assets/{use-main-schema-v8-Cujn1YMI.js → use-main-schema-v8-Dcb6Yskn.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CS41_0JG.js → use-mcp-auth-status-2A9iou5g.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BT4RuJFS.js → use-mcp-client-ZokR8_74.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BdL0ZvlI.js → use-mcp-prompts-JJb6q8dH.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Dg2LSBdw.js → use-mcp-tools-BwuN38Gh.js} +1 -1
- package/dist/client/assets/{use-members-DU66LWQg.js → use-members-CzSQTDAS.js} +1 -1
- package/dist/client/assets/{use-mobile-DOnhL90v.js → use-mobile-BfmJV4wy.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DWedzlZm.js → use-navigate-to-agent-D05JNc-L.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-RxIqk0aK.js → use-open-billing-url-pmLoKOyH.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-13UwIiVz.js → use-org-auth-client-fPRUht_a.js} +1 -1
- package/dist/client/assets/{use-org-fs-BsQu1cMm.js → use-org-fs-D82Vx4hB.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BpBt_M8G.js → use-org-repo-syncs-CD8TZnkH.js} +1 -1
- package/dist/client/assets/{use-org-sso-CKiaLvrd.js → use-org-sso-ClJ8vn5f.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DLFJYhmJ.js → use-organization-roles-iaQivkLI.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DNarTI0R.js → use-organization-settings-DFkNTsS0.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-hoQ73K0X.js → use-panel-navigate-K8ACrPML.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-C1cVhpX7.js → use-project-native-view-presence-DJiBua9F.js} +1 -1
- package/dist/client/assets/{use-project-scope-CKTzlmUI.js → use-project-scope-CGMALc0e.js} +1 -1
- package/dist/client/assets/{use-recent-apps-C71yvJNb.js → use-recent-apps-C1945uiL.js} +1 -1
- package/dist/client/assets/{use-releases-D-YqCPLg.js → use-releases-D15mHXXN.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-mzZhX--E.js → use-reports-diagnostic-BdbGTuns.js} +1 -1
- package/dist/client/assets/{use-secrets-G2i0J5bI.js → use-secrets-DbkATagb.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BWDQ6AFY.js → use-section-preview-base-De54Y3vh.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-Dt98A6hq.js → use-sidebar-collapsed-BqLmDXCH.js} +1 -1
- package/dist/client/assets/{use-tags-lwxgkjaZ.js → use-tags-Cn5U7HDa.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-CwZtEcQw.js → use-task-board-analytics-CftsNPjL.js} +1 -1
- package/dist/client/assets/{use-task-board-events-B4enp-5b.js → use-task-board-events-BDk-u9KA.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-DKfeK7Am.js → use-task-board-item-prs-CNMGpOwt.js} +1 -1
- package/dist/client/assets/{use-task-metadata-B8quLJSv.js → use-task-metadata-0ueqwOxI.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-BLKE5cCp.js → use-thread-analytics-CgQGRl3S.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DJNF1vc_.js → use-thread-outputs-DLitie4Q.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-B7za82zu.js +1 -0
- package/dist/client/assets/{useQueries-CJc3gcf_.js → useQueries-BfkCTicr.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B0JY_wMj.js +1 -0
- package/dist/client/assets/{users-DvesIcit.js → users-BIkPJzOg.js} +1 -1
- package/dist/client/assets/{utils-B__FoBpC.js → utils-Bp3fKbm9.js} +1 -1
- package/dist/client/assets/{variant-calendar-CA5ytzTw.js → variant-calendar-BIblXEHb.js} +1 -1
- package/dist/client/assets/{variant-draft-pointer-CGDOT8ZU.js → variant-draft-pointer-fs9iIwvq.js} +1 -1
- package/dist/client/assets/{virtual-mcp-CAxNVU8y.js → virtual-mcp-CeCtCq_o.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-Oks0hjJI.js → watch-sse-pool-CrLAsZHh.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/server.js +534 -534
- package/package.json +1 -1
- package/dist/client/assets/agent-app-BBkRMUvi.js +0 -1
- package/dist/client/assets/agent-deck-aEVb2JEC.js +0 -1
- package/dist/client/assets/agent-library-file-BIMCM77C.js +0 -1
- package/dist/client/assets/agent-library-gEIQPKYq.js +0 -1
- package/dist/client/assets/agent-settings-DpYov89t.js +0 -1
- package/dist/client/assets/agent-site-editor-code-BO8MC7Sk.js +0 -2
- package/dist/client/assets/agent-site-editor-content-ClWYw6Ft.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-CURf68b-.js +0 -1
- package/dist/client/assets/agent-view-CCa9vpy_.js +0 -1
- package/dist/client/assets/api-keys-Dvlc_2u1.js +0 -1
- package/dist/client/assets/cms-settings-editor-LMTrsj8K.js +0 -1
- package/dist/client/assets/connection-lL9WNaUM.js +0 -1
- package/dist/client/assets/index-CWfwo1z9.css +0 -1
- package/dist/client/assets/library-OCCCr__1.js +0 -1
- package/dist/client/assets/monitoring-MHNn-843.js +0 -1
- package/dist/client/assets/order-monitor-day-DM9FR-AU.js +0 -1
- package/dist/client/assets/plan-CCu9ePN6.js +0 -1
- package/dist/client/assets/project-reports-sSfzGGlD.js +0 -1
- package/dist/client/assets/project-tasks-CGkytLn4.js +0 -1
- package/dist/client/assets/record-editor-BPBZWeWy.js +0 -1
- package/dist/client/assets/reports-C9lGG9vM.js +0 -1
- package/dist/client/assets/repositories-CC0Tya9B.js +0 -1
- package/dist/client/assets/route-C9CXeVDD.js +0 -1
- package/dist/client/assets/settings-tab-B6bx84Wa.js +0 -1
- package/dist/client/assets/site-editor-CZkd2V57.js +0 -1
- package/dist/client/assets/tasks-BmTLaa9O.js +0 -1
- package/dist/client/assets/use-delete-connection-C-ab1vbn.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CGMAVpzD.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-D7PzoPOt.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as $,a1 as Ne,r as b,e as ae,y as W,j as t,l as x,B as X,I as G,c as Ie,b as Ce,h as Ue}from"./index-DZmvRzpa.js";import{e as qe}from"./backoff-CrEUbyZT.js";import{d as De}from"./delay-CnY5UFtP.js";class Pe extends Error{constructor(e,o){super(`Retrying exceeded the maxAttempts (${o}).`),this.name="RetryError",this.cause=e}}async function ze(i,e){const{multiplier:o=2,maxTimeout:l=6e4,maxAttempts:w=5,minTimeout:g=1e3,jitter:r=1,isRetriable:u=()=>!0,signal:d}=e??{};if(!Number.isInteger(w)||w<1)throw new RangeError(`Cannot retry as 'maxAttempts' must be a positive integer: current value is ${w}`);if(!Number.isFinite(o)||o<1)throw new RangeError(`Cannot retry as 'multiplier' must be a finite number >= 1: current value is ${o}`);if(Number.isNaN(l)||l<=0)throw new RangeError(`Cannot retry as 'maxTimeout' must be a positive number: current value is ${l}`);if(Number.isNaN(g)||g<0)throw new RangeError(`Cannot retry as 'minTimeout' must be >= 0: current value is ${g}`);if(g>l)throw new RangeError(`Cannot retry as 'minTimeout' must be <= 'maxTimeout': current values 'minTimeout=${g}', 'maxTimeout=${l}'`);if(Number.isNaN(r)||r<0||r>1)throw new RangeError(`Cannot retry as 'jitter' must be between 0 and 1: current value is ${r}`);let P=0;for(;;){d?.throwIfAborted();try{return await i()}catch(A){if(!u(A))throw A;if(P+1>=w)throw new Pe(A,w);const O=qe(l,g,P,o,r);await De(O,d?{signal:d}:void 0)}P++}}const Ae={submitEmailPassword:({mode:i,email:e,password:o,name:l})=>i==="sign_up"?$.signUp.email({email:e,password:o,name:l||""}):$.signIn.email({email:e,password:o}),requestPasswordReset:({email:i,redirectTo:e})=>$.requestPasswordReset({email:i,redirectTo:e}),sendOtp:({email:i})=>$.emailOtp.sendVerificationOtp({email:i,type:"sign-in"}),submitOtp:({email:i,otp:e})=>$.signIn.emailOtp({email:i,otp:e}),socialSignIn:({provider:i,callbackURL:e})=>$.signIn.social({provider:i,callbackURL:e}),ssoSignIn:({providerId:i,callbackURL:e})=>$.signIn.sso({providerId:i,callbackURL:e}),onAuthenticated:i=>{window.location.href=i}},ie="font-medium text-[#8CAA25] hover:underline disabled:opacity-50",Be={signUpFailed:"Sign up failed",signInFailed:"Sign in failed",authenticationFailed:"Authentication failed",resetEmailFailed:"Failed to send reset email",otpSendFailed:"Failed to send code",invalidCode:"Invalid code",invalidEmail:"Invalid email address",invalidEmailOrPassword:"Invalid email or password. Please try again.",accountExists:"An account with this email already exists. Try signing in instead.",networkError:"Network error. Please check your connection and try again.",tooManyAttempts:"Too many attempts. Please wait a moment and try again.",invalidOrExpiredCode:"Invalid or expired code. Please try again.",genericError:"An error occurred. Please try again.",resetPasswordTitle:"Reset your password",verificationCodeTitle:"Enter verification code",welcomeTitle:"Welcome to deco",resetPasswordSubtitle:"We'll send you a reset link",codeSentTo:i=>`Code sent to ${i}`,defaultSubtitle:"Sign in or create a new account",resetEmailSent:"Check your email for a password reset link.",continueWith:i=>`Continue with ${i}`,divider:"or",emailLabel:"Email",emailPlaceholder:"Email address",sending:"Sending...",sendCode:"Send code",verificationCodeLabel:"Verification code",enterCodePlaceholder:"Enter code",verifying:"Verifying...",verify:"Verify",useDifferentEmail:"Use a different email",sendResetLink:"Send reset link",nameLabel:"Name",namePlaceholder:"Your name",passwordLabel:"Password",forgotPassword:"Forgot password?",creatingAccount:"Creating account...",signingIn:"Signing in...",continue:"Continue",backToSignIn:"Back to sign in",signInWithPassword:"Sign in with password instead",alreadyHaveAccount:"Already have an account? ",dontHaveAccount:"Don't have an account? ",signIn:"Sign in",signUp:"Sign up",signInWithEmailCode:"Sign in with email code"};function Ve({redirectUrl:i,callbackUrl:e="/",title:o,subtitle:l,brand:w,copy:g,variant:r="default",allowedSocialProviders:u,allowPassword:d=!0,onAuthEvent:P,actions:A}){const{emailAndPassword:O,resetPassword:S,emailOtp:E,socialProviders:F}=Ne(),j={...Ae,...A},h=s=>{try{P?.(s)}catch{}},p=r==="compact",Z=u?F.providers.filter(s=>u.includes(s.name)):F.providers,ee=F.enabled&&Z.length>0,ne=O.enabled&&(d||!E.enabled&&!ee),te=F.enabled&&F.providers.length>0&&!ee&&!E.enabled&&!ne?F.providers:Z,I=F.enabled&&te.length>0,C=O.enabled&&(d||!E.enabled&&!I),[c,N]=b.useState(""),[_,f]=b.useState(""),[re,ge]=b.useState(""),[oe,le]=b.useState(""),[M,de]=b.useState(!1),[ce,_e]=b.useState(()=>E.enabled?"emailOtp":globalThis.localStorage?.getItem("hasLoggedIn")!=="true"?"signUp":"signIn"),[y,U]=b.useState(""),[he,pe]=b.useState(!1),[ke,me]=b.useState(null),a={...Be,...g},Y=b.useId(),q=`${Y}-email`,D=`${Y}-email-error`,fe=`${Y}-name`,xe=`${Y}-password`,be=`${Y}-otp`,v=ce==="signUp",R=ce==="forgotPassword",k=ce==="emailOtp",J=ae({mutationFn:async({email:s,password:n,name:L})=>{try{const H=await j.submitEmailPassword({mode:v?"sign_up":"sign_in",email:s,password:n,name:L});if(H.error)throw new Error(H.error.message||(v?a.signUpFailed:a.signInFailed));return H}catch(H){throw H instanceof Error?H:new Error(a.authenticationFailed)}},onMutate:()=>{h({type:"started",method:"email_password",mode:v?"sign_up":"sign_in"})},onSuccess:()=>{h({type:"succeeded",method:"email_password",mode:v?"sign_up":"sign_in"}),globalThis.localStorage?.setItem("hasLoggedIn","true"),j.onAuthenticated(i??e)},onError:s=>{h({type:"failed",method:"email_password",mode:v?"sign_up":"sign_in",stage:"authenticate",error:s instanceof Error?s.message:String(s)}),W(v?"user_signup_failed":"user_signin_failed",{error:s instanceof Error?s.message:String(s)})}}),K=ae({mutationFn:async({email:s})=>{const n=await j.requestPasswordReset({email:s,redirectTo:"/reset-password"});if(n.error)throw new Error(n.error.message||a.resetEmailFailed);return n},onSuccess:()=>{W("password_reset_requested"),pe(!0)},onError:s=>{W("password_reset_request_failed",{error:s instanceof Error?s.message:String(s)})}}),z=ae({mutationFn:async({email:s})=>{const n=await j.sendOtp({email:s});if(n.error)throw new Error(n.error.message||a.otpSendFailed);return n},onMutate:()=>{h({type:"started",method:"email_otp"})},onSuccess:()=>{h({type:"otp_sent",method:"email_otp"}),W("email_otp_sent"),de(!0)},onError:s=>{h({type:"failed",method:"email_otp",stage:"send_otp",error:s instanceof Error?s.message:String(s)}),W("email_otp_send_failed",{error:s instanceof Error?s.message:String(s)})}}),B=ae({mutationFn:async({email:s,otp:n})=>{const L=await j.submitOtp({email:s,otp:n});if(L.error)throw new Error(L.error.message||a.invalidCode);return L},onMutate:()=>{h({type:"otp_submitted",method:"email_otp"})},onSuccess:()=>{h({type:"succeeded",method:"email_otp"}),globalThis.localStorage?.setItem("hasLoggedIn","true"),j.onAuthenticated(i??e)},onError:s=>{h({type:"failed",method:"email_otp",stage:"verify_otp",error:s instanceof Error?s.message:String(s)}),W("email_otp_verify_failed",{error:s instanceof Error?s.message:String(s)})}}),se=s=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s),ue=()=>{c.trim()&&!se(c)&&U(a.invalidEmail)},Le=s=>{if(s.preventDefault(),!se(c)){U(a.invalidEmail),h({type:"failed",method:"email_password",mode:v?"sign_up":"sign_in",stage:"validation",error:"invalid_email"});return}J.mutate({email:c,password:_,name:re})},Oe=s=>{if(s.preventDefault(),!se(c)){U(a.invalidEmail);return}K.mutate({email:c})},Re=s=>{if(s.preventDefault(),!se(c)){U(a.invalidEmail),h({type:"failed",method:"email_otp",stage:"validation",error:"invalid_email"});return}z.mutate({email:c})},Te=s=>{s.preventDefault(),B.mutate({email:c,otp:oe})},V=s=>n=>{s(n.target.value),we&&J.reset(),ve&&K.reset(),ye&&(z.reset(),B.reset()),s===N&&y&&U("")},Q=s=>{_e(s),ge(""),le(""),de(!1),U(""),pe(!1),me(null),J.reset(),K.reset(),z.reset(),B.reset()},m=J.isPending||K.isPending||z.isPending||B.isPending,we=J.error,ve=K.error,ye=z.error||B.error,T=v?c.trim()&&_.trim()&&re.trim():R?c.trim():k?M?oe.trim():c.trim():c.trim()&&_.trim(),$e=s=>{if(!s)return null;const n=s.message.toLowerCase();return n.includes("unauthorized")||n.includes("401")?a.invalidEmailOrPassword:n.includes("already exists")||n.includes("409")?a.accountExists:n.includes("network")||n.includes("fetch")?a.networkError:n.includes("rate limit")||n.includes("429")?a.tooManyAttempts:n.includes("invalid")&&n.includes("otp")?a.invalidOrExpiredCode:s.message||a.genericError},Ee=we||ve||ye||ke,We=async s=>{h({type:"started",method:"social",provider:s}),me(null);try{const n=await j.socialSignIn({provider:s,callbackURL:i??e});if(n.error)throw new Error(n.error.message||a.authenticationFailed)}catch(n){const L=n instanceof Error?n.message:String(n);h({type:"failed",method:"social",provider:s,stage:"redirect",error:L}),W("social_signin_failed",{provider:s,error:L}),me(n instanceof Error?n:new Error(L))}},Me=R?a.resetPasswordTitle:k&&M?a.verificationCodeTitle:o??a.welcomeTitle,Se=R?a.resetPasswordSubtitle:k&&M?a.codeSentTo(c):l===void 0?a.defaultSubtitle:l;return t.jsxs("div",{className:x("grid w-full",p?"gap-5":"gap-10"),children:[w??t.jsxs("div",{children:[t.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12 dark:hidden"}),t.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"h-12 w-12 hidden dark:block"})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h1",{className:x("font-medium",p?"text-xl leading-7":"text-2xl leading-8"),children:Me}),Se&&t.jsx("p",{className:x("text-muted-foreground",p?"text-sm leading-5":"text-base leading-6"),children:Se})]}),Ee&&t.jsx("div",{role:"alert",className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:$e(Ee)}),he&&t.jsx("div",{role:"status",className:"rounded-xl bg-success/10 p-3 text-sm text-success text-center",children:a.resetEmailSent}),!R&&!(k&&M)&&I&&t.jsx("div",{className:"grid gap-2",children:te.map(s=>t.jsxs(X,{type:"button",variant:"outline",size:p?"lg":"xl",disabled:m,onClick:()=>{We(s.name)},className:"w-full gap-3",children:[s.icon&&t.jsx("img",{src:s.icon,alt:"",className:x("h-5 w-5",s.name==="github"&&"dark:invert"),"aria-hidden":"true"}),a.continueWith(s.name.charAt(0).toUpperCase()+s.name.slice(1))]},s.name))}),!R&&!(k&&M)&&I&&(C||E.enabled)&&t.jsxs("div",{className:x("flex items-center gap-2.5",p?"my-0":"-my-4"),children:[t.jsx("div",{className:"h-px flex-1 bg-border"}),t.jsx("span",{className:x("text-muted-foreground",p?"text-sm":"text-base"),children:a.divider}),t.jsx("div",{className:"h-px flex-1 bg-border"})]}),k&&E.enabled&&t.jsx(t.Fragment,{children:M?t.jsxs("form",{onSubmit:Te,className:x("grid gap-2",p&&"sm:grid-cols-[minmax(0,1fr)_auto] sm:items-start"),children:[t.jsxs("div",{className:"grid gap-2",children:[t.jsx("label",{htmlFor:be,className:x("text-sm font-medium text-foreground",p&&"sr-only"),children:a.verificationCodeLabel}),t.jsx(G,{id:be,type:"text",placeholder:a.enterCodePlaceholder,value:oe,onChange:V(le),required:!0,disabled:m,autoFocus:!0,inputMode:"numeric",autoComplete:"one-time-code",className:"h-11"})]}),t.jsx(X,{type:"submit",size:p?"lg":"xl",disabled:m||!T,className:x(p?"sm:w-auto":"w-full"),children:m?a.verifying:a.verify}),t.jsx("button",{type:"button",onClick:()=>{de(!1),le(""),z.reset(),B.reset()},disabled:m,className:x("mt-1 text-sm text-muted-foreground transition-colors hover:text-foreground",p&&"sm:col-span-2"),children:a.useDifferentEmail})]}):t.jsxs("form",{onSubmit:Re,className:x("grid gap-2",p&&"sm:grid-cols-[minmax(0,1fr)_auto] sm:items-start"),children:[t.jsxs("div",{className:"grid gap-2",children:[t.jsx("label",{htmlFor:q,className:x("text-sm font-medium text-foreground",p&&"sr-only"),children:a.emailLabel}),t.jsx(G,{id:q,type:"email",placeholder:a.emailPlaceholder,value:c,onChange:V(N),onBlur:ue,required:!0,disabled:m,autoComplete:"email","aria-invalid":!!y,"aria-describedby":y?D:void 0,className:"h-11"}),y&&t.jsx("p",{id:D,role:"alert",className:"text-xs text-destructive",children:y})]}),t.jsx(X,{type:"submit",size:p?"lg":"xl",disabled:m||!T,className:x(p?"sm:w-auto":"w-full"),children:m?a.sending:a.sendCode})]})}),R&&C&&!he&&t.jsxs("form",{onSubmit:Oe,className:"grid gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{htmlFor:q,className:"block text-sm font-medium text-foreground mb-2",children:a.emailLabel}),t.jsx(G,{id:q,type:"email",placeholder:"you@example.com",value:c,onChange:V(N),onBlur:ue,required:!0,disabled:m,autoComplete:"email","aria-invalid":!!y,"aria-describedby":y?D:void 0,className:"h-11"}),y&&t.jsx("p",{id:D,role:"alert",className:"text-xs text-destructive mt-1.5",children:y})]}),t.jsx(X,{type:"submit",disabled:m||!T,className:"w-full font-semibold",size:"xl",children:m?a.sending:a.sendResetLink})]}),!R&&!k&&C&&t.jsxs("form",{onSubmit:Le,className:"grid gap-5",children:[v&&t.jsxs("div",{children:[t.jsx("label",{htmlFor:fe,className:"block text-sm font-medium text-foreground mb-2",children:a.nameLabel}),t.jsx(G,{id:fe,type:"text",placeholder:a.namePlaceholder,value:re,onChange:V(ge),required:!0,disabled:m,autoComplete:"name",className:"h-11"})]}),t.jsxs("div",{children:[t.jsx("label",{htmlFor:q,className:"block text-sm font-medium text-foreground mb-2",children:a.emailLabel}),t.jsx(G,{id:q,type:"email",placeholder:"you@example.com",value:c,onChange:V(N),onBlur:ue,required:!0,disabled:m,autoComplete:"email","aria-invalid":!!y,"aria-describedby":y?D:void 0,className:"h-11"}),y&&t.jsx("p",{id:D,role:"alert",className:"text-xs text-destructive mt-1.5",children:y})]}),t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between mb-2",children:[t.jsx("label",{htmlFor:xe,className:"block text-sm font-medium text-foreground",children:a.passwordLabel}),!v&&S.enabled&&t.jsx("button",{type:"button",onClick:()=>Q("forgotPassword"),className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:a.forgotPassword})]}),t.jsx(G,{id:xe,type:"password",placeholder:"••••••••",value:_,onChange:V(f),required:!0,disabled:m,autoComplete:v?"new-password":"current-password",className:"h-11"})]}),t.jsx("div",{className:x("overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.075,0.82,0.165,1)]",T?"max-h-[100px] opacity-100 translate-y-0":"max-h-0 opacity-0 -translate-y-2"),children:t.jsx("div",{className:x("p-1",!T&&"pointer-events-none"),children:t.jsx(X,{type:"submit",disabled:m||!T,className:x("w-full font-semibold"),size:"xl","aria-hidden":!T,children:m?v?a.creatingAccount:a.signingIn:a.continue})})})]}),t.jsx("div",{className:"text-sm text-muted-foreground",children:R?t.jsx("button",{type:"button",onClick:()=>Q("signIn"),disabled:m,className:ie,children:a.backToSignIn}):k&&C?t.jsx("button",{type:"button",onClick:()=>Q("signIn"),disabled:m,className:ie,children:a.signInWithPassword}):!k&&C?t.jsxs(t.Fragment,{children:[v?a.alreadyHaveAccount:a.dontHaveAccount,t.jsx("button",{type:"button",onClick:()=>Q(v?"signIn":"signUp"),disabled:m,className:ie,children:v?a.signIn:a.signUp}),E.enabled&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"mx-2",children:"·"}),t.jsx("button",{type:"button",onClick:()=>Q("emailOtp"),disabled:m,className:ie,children:a.signInWithEmailCode})]})]}):null})]})}class je{constructor(e){this.response=e}response}function He(i){return i.startsWith("/")&&!i.startsWith("//")&&!i.startsWith("/\\")?i:"/"}function Ge({redirectTo:i,onAuthEvent:e}){const o=Ce(),[l,w]=b.useState(null),g=b.useEffectEvent(r=>{try{e?.(r)}catch{}});return b.useEffect(()=>{let r=!1;return(async()=>{g({type:"started",method:"local"});try{let u;try{u=await ze(async()=>{const d=await fetch("/api/auth/custom/local-session",{method:"POST",credentials:"include"});if(d.status>=500)throw new je(d);return d},{maxAttempts:5,minTimeout:1e3,maxTimeout:1e4,multiplier:2,jitter:0})}catch(d){if(d instanceof Pe&&d.cause instanceof je)u=d.cause.response;else throw d}if(!u.ok){const d=await u.json().catch(()=>({}));throw new Error(d?.error||o("common.authEntry.autoLoginFailed"))}r||(g({type:"succeeded",method:"local"}),window.location.href=He(i))}catch(u){r||(g({type:"failed",method:"local",stage:"authenticate",error:u instanceof Error?u.message:String(u)}),w(u instanceof Error?u.message:o("common.authEntry.autoLoginFailed")))}})(),()=>{r=!0}},[i]),l?t.jsx("div",{className:"flex min-h-screen items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx("p",{className:"text-destructive mb-2",children:o("common.authEntry.autoLoginFailedWithError",{error:l})}),t.jsx("p",{className:"text-muted-foreground text-sm",children:o("common.authEntry.tryRestartingServer")})]})}):t.jsx(Fe,{})}function Fe(){const i=Ie.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex min-h-screen items-center justify-center",children:t.jsx(Ue,{size:"lg",label:"Signing in"})}),i[0]=e):e=i[0],e}function Ye({callbackURL:i,providerId:e,ssoSignIn:o,onAuthEvent:l}){const w=b.useEffectEvent(r=>{try{l?.(r)}catch{}}),g=b.useEffectEvent(o);return b.useEffect(()=>{(async()=>{w({type:"started",method:"sso",provider:e});try{const r=await g({providerId:e,callbackURL:i});if(r.error)throw new Error(r.error.message||"SSO redirect failed")}catch(r){w({type:"failed",method:"sso",provider:e,stage:"redirect",error:r instanceof Error?r.message:String(r)})}})()},[e,i]),t.jsx(Fe,{})}function Xe(i){const e=Ie.c(25),{callbackUrl:o,redirectUrl:l,allowAutoLogin:w,title:g,subtitle:r,brand:u,copy:d,variant:P,allowedSocialProviders:A,allowPassword:O,onAuthEvent:S,onAuthenticated:E}=i,F=w===void 0?!0:w,j=Ce(),{sso:h,emailAndPassword:p,magicLink:Z,emailOtp:ee,socialProviders:ne,localMode:te}=Ne(),I=l||o;let C;e[0]!==E?(C=E?{onAuthenticated:E}:void 0,e[0]=E,e[1]=C):C=e[1];const c=C;if(te&&F){let f;return e[2]!==S||e[3]!==I?(f=t.jsx(Ge,{redirectTo:I,onAuthEvent:S}),e[2]=S,e[3]=I,e[4]=f):f=e[4],f}if(h.enabled){let f;return e[5]!==S||e[6]!==I||e[7]!==h.providerId?(f=t.jsx(Ye,{callbackURL:I,providerId:h.providerId,ssoSignIn:Ae.ssoSignIn,onAuthEvent:S}),e[5]=S,e[6]=I,e[7]=h.providerId,e[8]=f):f=e[8],f}if(p.enabled||Z.enabled||ee.enabled||ne.enabled){let f;return e[9]!==O||e[10]!==A||e[11]!==u||e[12]!==o||e[13]!==c||e[14]!==d||e[15]!==S||e[16]!==l||e[17]!==r||e[18]!==g||e[19]!==P?(f=t.jsx(Ve,{redirectUrl:l,callbackUrl:o,title:g,subtitle:r,brand:u,copy:d,variant:P,allowedSocialProviders:A,allowPassword:O,onAuthEvent:S,actions:c}),e[9]=O,e[10]=A,e[11]=u,e[12]=o,e[13]=c,e[14]=d,e[15]=S,e[16]=l,e[17]=r,e[18]=g,e[19]=P,e[20]=f):f=e[20],f}let N;e[21]!==j?(N=j("common.authEntry.noLoginOptions"),e[21]=j,e[22]=N):N=e[22];let _;return e[23]!==N?(_=t.jsx("div",{children:N}),e[23]=N,e[24]=_):_=e[24],_}export{Fe as A,Xe as a};
|
|
1
|
+
import{a as $,a1 as Ne,r as b,e as ae,y as W,j as t,l as x,B as X,I as G,c as Ie,b as Ce,h as Ue}from"./index-DcU2uHG-.js";import{e as qe}from"./backoff-CrEUbyZT.js";import{d as De}from"./delay-CnY5UFtP.js";class Pe extends Error{constructor(e,o){super(`Retrying exceeded the maxAttempts (${o}).`),this.name="RetryError",this.cause=e}}async function ze(i,e){const{multiplier:o=2,maxTimeout:l=6e4,maxAttempts:w=5,minTimeout:g=1e3,jitter:r=1,isRetriable:u=()=>!0,signal:d}=e??{};if(!Number.isInteger(w)||w<1)throw new RangeError(`Cannot retry as 'maxAttempts' must be a positive integer: current value is ${w}`);if(!Number.isFinite(o)||o<1)throw new RangeError(`Cannot retry as 'multiplier' must be a finite number >= 1: current value is ${o}`);if(Number.isNaN(l)||l<=0)throw new RangeError(`Cannot retry as 'maxTimeout' must be a positive number: current value is ${l}`);if(Number.isNaN(g)||g<0)throw new RangeError(`Cannot retry as 'minTimeout' must be >= 0: current value is ${g}`);if(g>l)throw new RangeError(`Cannot retry as 'minTimeout' must be <= 'maxTimeout': current values 'minTimeout=${g}', 'maxTimeout=${l}'`);if(Number.isNaN(r)||r<0||r>1)throw new RangeError(`Cannot retry as 'jitter' must be between 0 and 1: current value is ${r}`);let P=0;for(;;){d?.throwIfAborted();try{return await i()}catch(A){if(!u(A))throw A;if(P+1>=w)throw new Pe(A,w);const O=qe(l,g,P,o,r);await De(O,d?{signal:d}:void 0)}P++}}const Ae={submitEmailPassword:({mode:i,email:e,password:o,name:l})=>i==="sign_up"?$.signUp.email({email:e,password:o,name:l||""}):$.signIn.email({email:e,password:o}),requestPasswordReset:({email:i,redirectTo:e})=>$.requestPasswordReset({email:i,redirectTo:e}),sendOtp:({email:i})=>$.emailOtp.sendVerificationOtp({email:i,type:"sign-in"}),submitOtp:({email:i,otp:e})=>$.signIn.emailOtp({email:i,otp:e}),socialSignIn:({provider:i,callbackURL:e})=>$.signIn.social({provider:i,callbackURL:e}),ssoSignIn:({providerId:i,callbackURL:e})=>$.signIn.sso({providerId:i,callbackURL:e}),onAuthenticated:i=>{window.location.href=i}},ie="font-medium text-[#8CAA25] hover:underline disabled:opacity-50",Be={signUpFailed:"Sign up failed",signInFailed:"Sign in failed",authenticationFailed:"Authentication failed",resetEmailFailed:"Failed to send reset email",otpSendFailed:"Failed to send code",invalidCode:"Invalid code",invalidEmail:"Invalid email address",invalidEmailOrPassword:"Invalid email or password. Please try again.",accountExists:"An account with this email already exists. Try signing in instead.",networkError:"Network error. Please check your connection and try again.",tooManyAttempts:"Too many attempts. Please wait a moment and try again.",invalidOrExpiredCode:"Invalid or expired code. Please try again.",genericError:"An error occurred. Please try again.",resetPasswordTitle:"Reset your password",verificationCodeTitle:"Enter verification code",welcomeTitle:"Welcome to deco",resetPasswordSubtitle:"We'll send you a reset link",codeSentTo:i=>`Code sent to ${i}`,defaultSubtitle:"Sign in or create a new account",resetEmailSent:"Check your email for a password reset link.",continueWith:i=>`Continue with ${i}`,divider:"or",emailLabel:"Email",emailPlaceholder:"Email address",sending:"Sending...",sendCode:"Send code",verificationCodeLabel:"Verification code",enterCodePlaceholder:"Enter code",verifying:"Verifying...",verify:"Verify",useDifferentEmail:"Use a different email",sendResetLink:"Send reset link",nameLabel:"Name",namePlaceholder:"Your name",passwordLabel:"Password",forgotPassword:"Forgot password?",creatingAccount:"Creating account...",signingIn:"Signing in...",continue:"Continue",backToSignIn:"Back to sign in",signInWithPassword:"Sign in with password instead",alreadyHaveAccount:"Already have an account? ",dontHaveAccount:"Don't have an account? ",signIn:"Sign in",signUp:"Sign up",signInWithEmailCode:"Sign in with email code"};function Ve({redirectUrl:i,callbackUrl:e="/",title:o,subtitle:l,brand:w,copy:g,variant:r="default",allowedSocialProviders:u,allowPassword:d=!0,onAuthEvent:P,actions:A}){const{emailAndPassword:O,resetPassword:S,emailOtp:E,socialProviders:F}=Ne(),j={...Ae,...A},h=s=>{try{P?.(s)}catch{}},p=r==="compact",Z=u?F.providers.filter(s=>u.includes(s.name)):F.providers,ee=F.enabled&&Z.length>0,ne=O.enabled&&(d||!E.enabled&&!ee),te=F.enabled&&F.providers.length>0&&!ee&&!E.enabled&&!ne?F.providers:Z,I=F.enabled&&te.length>0,C=O.enabled&&(d||!E.enabled&&!I),[c,N]=b.useState(""),[_,f]=b.useState(""),[re,ge]=b.useState(""),[oe,le]=b.useState(""),[M,de]=b.useState(!1),[ce,_e]=b.useState(()=>E.enabled?"emailOtp":globalThis.localStorage?.getItem("hasLoggedIn")!=="true"?"signUp":"signIn"),[y,U]=b.useState(""),[he,pe]=b.useState(!1),[ke,me]=b.useState(null),a={...Be,...g},Y=b.useId(),q=`${Y}-email`,D=`${Y}-email-error`,fe=`${Y}-name`,xe=`${Y}-password`,be=`${Y}-otp`,v=ce==="signUp",R=ce==="forgotPassword",k=ce==="emailOtp",J=ae({mutationFn:async({email:s,password:n,name:L})=>{try{const H=await j.submitEmailPassword({mode:v?"sign_up":"sign_in",email:s,password:n,name:L});if(H.error)throw new Error(H.error.message||(v?a.signUpFailed:a.signInFailed));return H}catch(H){throw H instanceof Error?H:new Error(a.authenticationFailed)}},onMutate:()=>{h({type:"started",method:"email_password",mode:v?"sign_up":"sign_in"})},onSuccess:()=>{h({type:"succeeded",method:"email_password",mode:v?"sign_up":"sign_in"}),globalThis.localStorage?.setItem("hasLoggedIn","true"),j.onAuthenticated(i??e)},onError:s=>{h({type:"failed",method:"email_password",mode:v?"sign_up":"sign_in",stage:"authenticate",error:s instanceof Error?s.message:String(s)}),W(v?"user_signup_failed":"user_signin_failed",{error:s instanceof Error?s.message:String(s)})}}),K=ae({mutationFn:async({email:s})=>{const n=await j.requestPasswordReset({email:s,redirectTo:"/reset-password"});if(n.error)throw new Error(n.error.message||a.resetEmailFailed);return n},onSuccess:()=>{W("password_reset_requested"),pe(!0)},onError:s=>{W("password_reset_request_failed",{error:s instanceof Error?s.message:String(s)})}}),z=ae({mutationFn:async({email:s})=>{const n=await j.sendOtp({email:s});if(n.error)throw new Error(n.error.message||a.otpSendFailed);return n},onMutate:()=>{h({type:"started",method:"email_otp"})},onSuccess:()=>{h({type:"otp_sent",method:"email_otp"}),W("email_otp_sent"),de(!0)},onError:s=>{h({type:"failed",method:"email_otp",stage:"send_otp",error:s instanceof Error?s.message:String(s)}),W("email_otp_send_failed",{error:s instanceof Error?s.message:String(s)})}}),B=ae({mutationFn:async({email:s,otp:n})=>{const L=await j.submitOtp({email:s,otp:n});if(L.error)throw new Error(L.error.message||a.invalidCode);return L},onMutate:()=>{h({type:"otp_submitted",method:"email_otp"})},onSuccess:()=>{h({type:"succeeded",method:"email_otp"}),globalThis.localStorage?.setItem("hasLoggedIn","true"),j.onAuthenticated(i??e)},onError:s=>{h({type:"failed",method:"email_otp",stage:"verify_otp",error:s instanceof Error?s.message:String(s)}),W("email_otp_verify_failed",{error:s instanceof Error?s.message:String(s)})}}),se=s=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s),ue=()=>{c.trim()&&!se(c)&&U(a.invalidEmail)},Le=s=>{if(s.preventDefault(),!se(c)){U(a.invalidEmail),h({type:"failed",method:"email_password",mode:v?"sign_up":"sign_in",stage:"validation",error:"invalid_email"});return}J.mutate({email:c,password:_,name:re})},Oe=s=>{if(s.preventDefault(),!se(c)){U(a.invalidEmail);return}K.mutate({email:c})},Re=s=>{if(s.preventDefault(),!se(c)){U(a.invalidEmail),h({type:"failed",method:"email_otp",stage:"validation",error:"invalid_email"});return}z.mutate({email:c})},Te=s=>{s.preventDefault(),B.mutate({email:c,otp:oe})},V=s=>n=>{s(n.target.value),we&&J.reset(),ve&&K.reset(),ye&&(z.reset(),B.reset()),s===N&&y&&U("")},Q=s=>{_e(s),ge(""),le(""),de(!1),U(""),pe(!1),me(null),J.reset(),K.reset(),z.reset(),B.reset()},m=J.isPending||K.isPending||z.isPending||B.isPending,we=J.error,ve=K.error,ye=z.error||B.error,T=v?c.trim()&&_.trim()&&re.trim():R?c.trim():k?M?oe.trim():c.trim():c.trim()&&_.trim(),$e=s=>{if(!s)return null;const n=s.message.toLowerCase();return n.includes("unauthorized")||n.includes("401")?a.invalidEmailOrPassword:n.includes("already exists")||n.includes("409")?a.accountExists:n.includes("network")||n.includes("fetch")?a.networkError:n.includes("rate limit")||n.includes("429")?a.tooManyAttempts:n.includes("invalid")&&n.includes("otp")?a.invalidOrExpiredCode:s.message||a.genericError},Ee=we||ve||ye||ke,We=async s=>{h({type:"started",method:"social",provider:s}),me(null);try{const n=await j.socialSignIn({provider:s,callbackURL:i??e});if(n.error)throw new Error(n.error.message||a.authenticationFailed)}catch(n){const L=n instanceof Error?n.message:String(n);h({type:"failed",method:"social",provider:s,stage:"redirect",error:L}),W("social_signin_failed",{provider:s,error:L}),me(n instanceof Error?n:new Error(L))}},Me=R?a.resetPasswordTitle:k&&M?a.verificationCodeTitle:o??a.welcomeTitle,Se=R?a.resetPasswordSubtitle:k&&M?a.codeSentTo(c):l===void 0?a.defaultSubtitle:l;return t.jsxs("div",{className:x("grid w-full",p?"gap-5":"gap-10"),children:[w??t.jsxs("div",{children:[t.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12 dark:hidden"}),t.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"h-12 w-12 hidden dark:block"})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h1",{className:x("font-medium",p?"text-xl leading-7":"text-2xl leading-8"),children:Me}),Se&&t.jsx("p",{className:x("text-muted-foreground",p?"text-sm leading-5":"text-base leading-6"),children:Se})]}),Ee&&t.jsx("div",{role:"alert",className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:$e(Ee)}),he&&t.jsx("div",{role:"status",className:"rounded-xl bg-success/10 p-3 text-sm text-success text-center",children:a.resetEmailSent}),!R&&!(k&&M)&&I&&t.jsx("div",{className:"grid gap-2",children:te.map(s=>t.jsxs(X,{type:"button",variant:"outline",size:p?"lg":"xl",disabled:m,onClick:()=>{We(s.name)},className:"w-full gap-3",children:[s.icon&&t.jsx("img",{src:s.icon,alt:"",className:x("h-5 w-5",s.name==="github"&&"dark:invert"),"aria-hidden":"true"}),a.continueWith(s.name.charAt(0).toUpperCase()+s.name.slice(1))]},s.name))}),!R&&!(k&&M)&&I&&(C||E.enabled)&&t.jsxs("div",{className:x("flex items-center gap-2.5",p?"my-0":"-my-4"),children:[t.jsx("div",{className:"h-px flex-1 bg-border"}),t.jsx("span",{className:x("text-muted-foreground",p?"text-sm":"text-base"),children:a.divider}),t.jsx("div",{className:"h-px flex-1 bg-border"})]}),k&&E.enabled&&t.jsx(t.Fragment,{children:M?t.jsxs("form",{onSubmit:Te,className:x("grid gap-2",p&&"sm:grid-cols-[minmax(0,1fr)_auto] sm:items-start"),children:[t.jsxs("div",{className:"grid gap-2",children:[t.jsx("label",{htmlFor:be,className:x("text-sm font-medium text-foreground",p&&"sr-only"),children:a.verificationCodeLabel}),t.jsx(G,{id:be,type:"text",placeholder:a.enterCodePlaceholder,value:oe,onChange:V(le),required:!0,disabled:m,autoFocus:!0,inputMode:"numeric",autoComplete:"one-time-code",className:"h-11"})]}),t.jsx(X,{type:"submit",size:p?"lg":"xl",disabled:m||!T,className:x(p?"sm:w-auto":"w-full"),children:m?a.verifying:a.verify}),t.jsx("button",{type:"button",onClick:()=>{de(!1),le(""),z.reset(),B.reset()},disabled:m,className:x("mt-1 text-sm text-muted-foreground transition-colors hover:text-foreground",p&&"sm:col-span-2"),children:a.useDifferentEmail})]}):t.jsxs("form",{onSubmit:Re,className:x("grid gap-2",p&&"sm:grid-cols-[minmax(0,1fr)_auto] sm:items-start"),children:[t.jsxs("div",{className:"grid gap-2",children:[t.jsx("label",{htmlFor:q,className:x("text-sm font-medium text-foreground",p&&"sr-only"),children:a.emailLabel}),t.jsx(G,{id:q,type:"email",placeholder:a.emailPlaceholder,value:c,onChange:V(N),onBlur:ue,required:!0,disabled:m,autoComplete:"email","aria-invalid":!!y,"aria-describedby":y?D:void 0,className:"h-11"}),y&&t.jsx("p",{id:D,role:"alert",className:"text-xs text-destructive",children:y})]}),t.jsx(X,{type:"submit",size:p?"lg":"xl",disabled:m||!T,className:x(p?"sm:w-auto":"w-full"),children:m?a.sending:a.sendCode})]})}),R&&C&&!he&&t.jsxs("form",{onSubmit:Oe,className:"grid gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{htmlFor:q,className:"block text-sm font-medium text-foreground mb-2",children:a.emailLabel}),t.jsx(G,{id:q,type:"email",placeholder:"you@example.com",value:c,onChange:V(N),onBlur:ue,required:!0,disabled:m,autoComplete:"email","aria-invalid":!!y,"aria-describedby":y?D:void 0,className:"h-11"}),y&&t.jsx("p",{id:D,role:"alert",className:"text-xs text-destructive mt-1.5",children:y})]}),t.jsx(X,{type:"submit",disabled:m||!T,className:"w-full font-semibold",size:"xl",children:m?a.sending:a.sendResetLink})]}),!R&&!k&&C&&t.jsxs("form",{onSubmit:Le,className:"grid gap-5",children:[v&&t.jsxs("div",{children:[t.jsx("label",{htmlFor:fe,className:"block text-sm font-medium text-foreground mb-2",children:a.nameLabel}),t.jsx(G,{id:fe,type:"text",placeholder:a.namePlaceholder,value:re,onChange:V(ge),required:!0,disabled:m,autoComplete:"name",className:"h-11"})]}),t.jsxs("div",{children:[t.jsx("label",{htmlFor:q,className:"block text-sm font-medium text-foreground mb-2",children:a.emailLabel}),t.jsx(G,{id:q,type:"email",placeholder:"you@example.com",value:c,onChange:V(N),onBlur:ue,required:!0,disabled:m,autoComplete:"email","aria-invalid":!!y,"aria-describedby":y?D:void 0,className:"h-11"}),y&&t.jsx("p",{id:D,role:"alert",className:"text-xs text-destructive mt-1.5",children:y})]}),t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between mb-2",children:[t.jsx("label",{htmlFor:xe,className:"block text-sm font-medium text-foreground",children:a.passwordLabel}),!v&&S.enabled&&t.jsx("button",{type:"button",onClick:()=>Q("forgotPassword"),className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:a.forgotPassword})]}),t.jsx(G,{id:xe,type:"password",placeholder:"••••••••",value:_,onChange:V(f),required:!0,disabled:m,autoComplete:v?"new-password":"current-password",className:"h-11"})]}),t.jsx("div",{className:x("overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.075,0.82,0.165,1)]",T?"max-h-[100px] opacity-100 translate-y-0":"max-h-0 opacity-0 -translate-y-2"),children:t.jsx("div",{className:x("p-1",!T&&"pointer-events-none"),children:t.jsx(X,{type:"submit",disabled:m||!T,className:x("w-full font-semibold"),size:"xl","aria-hidden":!T,children:m?v?a.creatingAccount:a.signingIn:a.continue})})})]}),t.jsx("div",{className:"text-sm text-muted-foreground",children:R?t.jsx("button",{type:"button",onClick:()=>Q("signIn"),disabled:m,className:ie,children:a.backToSignIn}):k&&C?t.jsx("button",{type:"button",onClick:()=>Q("signIn"),disabled:m,className:ie,children:a.signInWithPassword}):!k&&C?t.jsxs(t.Fragment,{children:[v?a.alreadyHaveAccount:a.dontHaveAccount,t.jsx("button",{type:"button",onClick:()=>Q(v?"signIn":"signUp"),disabled:m,className:ie,children:v?a.signIn:a.signUp}),E.enabled&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"mx-2",children:"·"}),t.jsx("button",{type:"button",onClick:()=>Q("emailOtp"),disabled:m,className:ie,children:a.signInWithEmailCode})]})]}):null})]})}class je{constructor(e){this.response=e}response}function He(i){return i.startsWith("/")&&!i.startsWith("//")&&!i.startsWith("/\\")?i:"/"}function Ge({redirectTo:i,onAuthEvent:e}){const o=Ce(),[l,w]=b.useState(null),g=b.useEffectEvent(r=>{try{e?.(r)}catch{}});return b.useEffect(()=>{let r=!1;return(async()=>{g({type:"started",method:"local"});try{let u;try{u=await ze(async()=>{const d=await fetch("/api/auth/custom/local-session",{method:"POST",credentials:"include"});if(d.status>=500)throw new je(d);return d},{maxAttempts:5,minTimeout:1e3,maxTimeout:1e4,multiplier:2,jitter:0})}catch(d){if(d instanceof Pe&&d.cause instanceof je)u=d.cause.response;else throw d}if(!u.ok){const d=await u.json().catch(()=>({}));throw new Error(d?.error||o("common.authEntry.autoLoginFailed"))}r||(g({type:"succeeded",method:"local"}),window.location.href=He(i))}catch(u){r||(g({type:"failed",method:"local",stage:"authenticate",error:u instanceof Error?u.message:String(u)}),w(u instanceof Error?u.message:o("common.authEntry.autoLoginFailed")))}})(),()=>{r=!0}},[i]),l?t.jsx("div",{className:"flex min-h-screen items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx("p",{className:"text-destructive mb-2",children:o("common.authEntry.autoLoginFailedWithError",{error:l})}),t.jsx("p",{className:"text-muted-foreground text-sm",children:o("common.authEntry.tryRestartingServer")})]})}):t.jsx(Fe,{})}function Fe(){const i=Ie.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex min-h-screen items-center justify-center",children:t.jsx(Ue,{size:"lg",label:"Signing in"})}),i[0]=e):e=i[0],e}function Ye({callbackURL:i,providerId:e,ssoSignIn:o,onAuthEvent:l}){const w=b.useEffectEvent(r=>{try{l?.(r)}catch{}}),g=b.useEffectEvent(o);return b.useEffect(()=>{(async()=>{w({type:"started",method:"sso",provider:e});try{const r=await g({providerId:e,callbackURL:i});if(r.error)throw new Error(r.error.message||"SSO redirect failed")}catch(r){w({type:"failed",method:"sso",provider:e,stage:"redirect",error:r instanceof Error?r.message:String(r)})}})()},[e,i]),t.jsx(Fe,{})}function Xe(i){const e=Ie.c(25),{callbackUrl:o,redirectUrl:l,allowAutoLogin:w,title:g,subtitle:r,brand:u,copy:d,variant:P,allowedSocialProviders:A,allowPassword:O,onAuthEvent:S,onAuthenticated:E}=i,F=w===void 0?!0:w,j=Ce(),{sso:h,emailAndPassword:p,magicLink:Z,emailOtp:ee,socialProviders:ne,localMode:te}=Ne(),I=l||o;let C;e[0]!==E?(C=E?{onAuthenticated:E}:void 0,e[0]=E,e[1]=C):C=e[1];const c=C;if(te&&F){let f;return e[2]!==S||e[3]!==I?(f=t.jsx(Ge,{redirectTo:I,onAuthEvent:S}),e[2]=S,e[3]=I,e[4]=f):f=e[4],f}if(h.enabled){let f;return e[5]!==S||e[6]!==I||e[7]!==h.providerId?(f=t.jsx(Ye,{callbackURL:I,providerId:h.providerId,ssoSignIn:Ae.ssoSignIn,onAuthEvent:S}),e[5]=S,e[6]=I,e[7]=h.providerId,e[8]=f):f=e[8],f}if(p.enabled||Z.enabled||ee.enabled||ne.enabled){let f;return e[9]!==O||e[10]!==A||e[11]!==u||e[12]!==o||e[13]!==c||e[14]!==d||e[15]!==S||e[16]!==l||e[17]!==r||e[18]!==g||e[19]!==P?(f=t.jsx(Ve,{redirectUrl:l,callbackUrl:o,title:g,subtitle:r,brand:u,copy:d,variant:P,allowedSocialProviders:A,allowPassword:O,onAuthEvent:S,actions:c}),e[9]=O,e[10]=A,e[11]=u,e[12]=o,e[13]=c,e[14]=d,e[15]=S,e[16]=l,e[17]=r,e[18]=g,e[19]=P,e[20]=f):f=e[20],f}let N;e[21]!==j?(N=j("common.authEntry.noLoginOptions"),e[21]=j,e[22]=N):N=e[22];let _;return e[23]!==N?(_=t.jsx("div",{children:N}),e[23]=N,e[24]=_):_=e[24],_}export{Fe as A,Xe as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as g,l as p,j as f}from"./index-
|
|
1
|
+
import{c as g,l as p,j as f}from"./index-DcU2uHG-.js";function w(b){const e=g.c(20),{children:m,visual:r,align:j}=b,d=(j===void 0?"center":j)==="fill",x=d?"min-h-[100dvh] md:min-h-screen":"min-h-screen";let l;e[0]!==x?(l=p("flex w-full",x),e[0]=x,e[1]=l):l=e[1];const h=d?"h-[100dvh] justify-start pt-4 pb-8 md:h-auto":"justify-center py-6";let t;e[2]!==h?(t=p("flex flex-1 flex-col items-center bg-sidebar px-6 md:justify-center md:px-10 md:py-10",h),e[2]=h,e[3]=t):t=e[3];const u=d&&"flex min-h-0 flex-1 flex-col md:block md:flex-none";let s;e[4]!==u?(s=p("w-full max-w-[440px]",u),e[4]=u,e[5]=s):s=e[5];let i;e[6]!==m||e[7]!==s?(i=f.jsx("div",{className:s,children:m}),e[6]=m,e[7]=s,e[8]=i):i=e[8];let n;e[9]!==t||e[10]!==i?(n=f.jsx("section",{className:t,children:i}),e[9]=t,e[10]=i,e[11]=n):n=e[11];let c;e[12]!==r?(c=r??f.jsx("img",{src:"/onboarding-placeholder.png",alt:"",className:"absolute inset-0 h-full w-full object-cover"}),e[12]=r,e[13]=c):c=e[13];let a;e[14]!==c?(a=f.jsx("aside",{className:"relative hidden flex-1 overflow-hidden bg-muted md:flex",children:c}),e[14]=c,e[15]=a):a=e[15];let o;return e[16]!==a||e[17]!==l||e[18]!==n?(o=f.jsxs("main",{className:l,children:[n,a]}),e[16]=a,e[17]=l,e[18]=n,e[19]=o):o=e[19],o}export{w as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u}from"./mcp-oauth-
|
|
1
|
+
import{a as u}from"./mcp-oauth-xBzZujQ_.js";import{i as p}from"./mcp-oauth-DP6VNnFQ.js";async function k({connectionId:n,orgId:s,orgSlug:o,persistFallback:r}){const c=new URL(`/api/${o}/mcp/${n}`,window.location.origin),i=await p({url:c.href,token:null,orgId:s});if(!i.supportsOAuth||i.isAuthenticated)return{ran:!1,ok:!0,error:null};const{token:t,tokenInfo:e,error:a}=await u({connectionId:n,orgSlug:o,scope:"offline_access"});if(a||!t)return{ran:!0,ok:!1,error:a??"no token received"};if(e)try{(await fetch(`/api/${o}/connections/${n}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:e.accessToken,refreshToken:e.refreshToken,expiresIn:e.expiresIn,scope:e.scope,clientId:e.clientId,clientSecret:e.clientSecret,tokenEndpoint:e.tokenEndpoint})})).ok||await r(t)}catch{await r(t)}else await r(t);return{ran:!0,ok:!0,error:null}}export{k as a};
|
package/dist/client/assets/{automation-list-row-C6wkVVM2.js → automation-list-row-CO-7cr0O.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as W,b as Y,r as ee,l as Q,j as t,T as te,B as se,X as ie,V as ne,U as ae}from"./index-
|
|
1
|
+
import{c as W,b as Y,r as ee,l as Q,j as t,T as te,B as se,X as ie,V as ne,U as ae}from"./index-DcU2uHG-.js";import{B as oe}from"./badge-ByzdbptS.js";import{A as le,a as re,b as ce,c as me,g as ue,d as de,e as fe,f as ge}from"./alert-dialog-M8Y0zqSA.js";import{A as xe,aC as pe}from"./agent-icon-c0hRUHIU.js";import{i as he}from"./DotsVertical-BvyfZIer.js";import{s as je}from"./Trash01-Cf6bGuCZ.js";import{i as we}from"./ZoomOut-B55seUHX.js";import{c as _e}from"./repository-binding-B-JblZ3B.js";import{a as ve}from"./use-automations-Dhy5bAQi.js";function Be(c){const e=W.c(89),{automation:s,showAgent:o,onClick:n}=c,i=Y(),{remove:a}=ve(),[r,H]=ee.useState(!1),l=_e(o?s.virtual_mcp_id:void 0);let F;e[0]!==s.id||e[1]!==a?(F=()=>{a.mutate(s.id),H(!1)},e[0]=s.id,e[1]=a,e[2]=F):F=e[2];const U=F;let O;e[3]!==n?(O=m=>{m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),n())},e[3]=n,e[4]=O):O=e[4];const X=O,q=s.active&&s.trigger_count>0?"bg-success":"bg-muted-foreground/40";let u;e[5]!==q?(u=Q("inline-block size-2 rounded-full shrink-0",q),e[5]=q,e[6]=u):u=e[6];const G=s.active&&s.trigger_count>0?"automations.automationListRow.ariaActive":s.active?"automations.automationListRow.ariaNoTriggers":"automations.automationListRow.ariaPaused";let d;e[7]!==i||e[8]!==G?(d=i(G),e[7]=i,e[8]=G,e[9]=d):d=e[9];let f;e[10]!==u||e[11]!==d?(f=t.jsx("span",{className:u,"aria-label":d}),e[10]=u,e[11]=d,e[12]=f):f=e[12];let g;e[13]!==l?.icon||e[14]!==l?.title||e[15]!==s.name||e[16]!==o?(g=o&&t.jsx(xe,{icon:l?.icon??null,name:l?.title??s.name,size:"xs",className:"shrink-0"}),e[13]=l?.icon,e[14]=l?.title,e[15]=s.name,e[16]=o,e[17]=g):g=e[17];let x;e[18]!==s.name?(x=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:s.name}),e[18]=s.name,e[19]=x):x=e[19];let p;e[20]!==s.system_key||e[21]!==i?(p=s.system_key&&t.jsx(oe,{variant:"muted",children:i("automations.builtin.badge")}),e[20]=s.system_key,e[21]=i,e[22]=p):p=e[22];let h;e[23]!==l||e[24]!==o?(h=o&&l&&t.jsxs("span",{className:"text-xs text-muted-foreground truncate",children:["· ",l.title]}),e[23]=l,e[24]=o,e[25]=h):h=e[25];let j;e[26]!==p||e[27]!==h||e[28]!==x?(j=t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[x,p,h]}),e[26]=p,e[27]=h,e[28]=x,e[29]=j):j=e[29];let w;e[30]!==s.nearest_next_run_at||e[31]!==s.trigger_count?(w=t.jsx(De,{triggerCount:s.trigger_count,nextRunAt:s.nearest_next_run_at}),e[30]=s.nearest_next_run_at,e[31]=s.trigger_count,e[32]=w):w=e[32];let _;e[33]!==j||e[34]!==w?(_=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-0.5",children:[j,w]}),e[33]=j,e[34]=w,e[35]=_):_=e[35];const J=s.system_key&&"invisible";let v;e[36]!==J?(v=Q("shrink-0",J),e[36]=J,e[37]=v):v=e[37];let $;e[38]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(te,{asChild:!0,children:t.jsx(se,{variant:"ghost",size:"icon",className:"opacity-0 group-hover:opacity-100 data-[state=open]:opacity-100 transition-opacity",children:t.jsx(he,{size:16})})}),e[38]=$):$=e[38];let K,I;e[39]===Symbol.for("react.memo_cache_sentinel")?(K=m=>{m.stopPropagation(),H(!0)},I=t.jsx(je,{size:16}),e[39]=K,e[40]=I):(K=e[39],I=e[40]);let y;e[41]!==i?(y=i("automations.automationListRow.delete"),e[41]=i,e[42]=y):y=e[42];let A;e[43]!==y?(A=t.jsxs(ie,{children:[$,t.jsx(ne,{align:"end",children:t.jsxs(ae,{variant:"destructive",onClick:K,children:[I,y]})})]}),e[43]=y,e[44]=A):A=e[44];let D;e[45]!==v||e[46]!==A?(D=t.jsx("div",{onClick:Ae,onKeyDown:ye,role:"presentation",className:v,children:A}),e[45]=v,e[46]=A,e[47]=D):D=e[47];let R;e[48]!==X||e[49]!==n||e[50]!==_||e[51]!==D||e[52]!==f||e[53]!==g?(R=t.jsxs("div",{role:"button",tabIndex:0,onClick:n,onKeyDown:X,className:"group w-full flex items-center gap-3 px-4 py-3 text-left hover:bg-accent transition-colors cursor-pointer focus-ring",children:[f,g,_,D]}),e[48]=X,e[49]=n,e[50]=_,e[51]=D,e[52]=f,e[53]=g,e[54]=R):R=e[54];let k;e[55]!==i?(k=i("automations.automationListRow.deleteTitle"),e[55]=i,e[56]=k):k=e[56];let N;e[57]!==k?(N=t.jsx(le,{children:k}),e[57]=k,e[58]=N):N=e[58];let b;e[59]!==s.name||e[60]!==i?(b=i("automations.automationListRow.deleteDescription",{name:s.name}),e[59]=s.name,e[60]=i,e[61]=b):b=e[61];let C;e[62]!==b?(C=t.jsx(re,{children:b}),e[62]=b,e[63]=C):C=e[63];let L;e[64]!==N||e[65]!==C?(L=t.jsxs(ce,{children:[N,C]}),e[64]=N,e[65]=C,e[66]=L):L=e[66];let T;e[67]!==i?(T=i("automations.automationListRow.cancel"),e[67]=i,e[68]=T):T=e[68];let P;e[69]!==T?(P=t.jsx(me,{children:T}),e[69]=T,e[70]=P):P=e[70];const Z=a.isPending;let z;e[71]!==i?(z=i("automations.automationListRow.deleteButton"),e[71]=i,e[72]=z):z=e[72];let B;e[73]!==U||e[74]!==a.isPending||e[75]!==z?(B=t.jsx(ue,{onClick:U,disabled:Z,variant:"destructive",children:z}),e[73]=U,e[74]=a.isPending,e[75]=z,e[76]=B):B=e[76];let M;e[77]!==P||e[78]!==B?(M=t.jsxs(de,{children:[P,B]}),e[77]=P,e[78]=B,e[79]=M):M=e[79];let S;e[80]!==L||e[81]!==M?(S=t.jsxs(fe,{children:[L,M]}),e[80]=L,e[81]=M,e[82]=S):S=e[82];let E;e[83]!==r||e[84]!==S?(E=t.jsx(ge,{open:r,onOpenChange:H,children:S}),e[83]=r,e[84]=S,e[85]=E):E=e[85];let V;return e[86]!==R||e[87]!==E?(V=t.jsxs(t.Fragment,{children:[R,E]}),e[86]=R,e[87]=E,e[88]=V):V=e[88],V}function ye(c){return c.stopPropagation()}function Ae(c){return c.stopPropagation()}function De(c){const e=W.c(8),{triggerCount:s,nextRunAt:o}=c,n=Y();if(s===0){let a;e[0]!==n?(a=n("automations.automationListRow.noTriggers"),e[0]=n,e[1]=a):a=e[1];let r;return e[2]!==a?(r=t.jsx("span",{className:"text-xs text-muted-foreground",children:a}),e[2]=a,e[3]=r):r=e[3],r}let i;return e[4]!==o||e[5]!==n||e[6]!==s?(i=t.jsx("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground min-w-0",children:o?t.jsxs(t.Fragment,{children:[t.jsx(pe,{size:12,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:n("automations.automationListRow.nextRun",{date:new Date(o).toLocaleString()})})]}):t.jsxs(t.Fragment,{children:[t.jsx(we,{size:12,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:s===1?n("automations.automationListRow.triggersOne"):n("automations.automationListRow.triggers",{count:s})})]})}),e[4]=o,e[5]=n,e[6]=s,e[7]=i):i=e[7],i}export{Be as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as V,r as ot,b as X,a2 as it,J as rt,an as ct,K as tt,j as s,l as ut,m as mt,eZ as dt}from"./index-DZmvRzpa.js";import{u as ft}from"./useInfiniteQuery-CGMAVpzD.js";import{u as xt}from"./use-connection-DYi1EUeB.js";import{u as pt}from"./use-mcp-client-BT4RuJFS.js";import{b as gt}from"./repository-binding-Crzce39j.js";import{b as ht,a as Rt}from"./sheet-Bfbvz7qf.js";import{e as jt,a as Nt,b as st,T as G,d as bt,c as Q}from"./table-sMkWni7I.js";import{E as et}from"./empty-state-Cms3wOkC.js";import{u as Tt}from"./use-infinite-scroll-D9DYWBy4.js";import{u as St}from"./use-members-DU66LWQg.js";import{g as vt}from"./task-status-Cr_5dDMU.js";import{e as Ct}from"./use-automations-CaTMVisV.js";import{T as It,f as at,a as nt}from"./thread-sheet-body-BfUatXJK.js";function wt(c){const t=V.c(15),[i,r]=ot.useState(null);let e;t[0]!==c||t[1]!==i?(e=i!==null?c.findIndex(u=>u.id===i):-1,t[0]=c,t[1]=i,t[2]=e):e=t[2];const a=e,l=a!==-1?c[a]:null,n=l!==null;let o,C;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=u=>r(u),C=()=>r(null),t[3]=o,t[4]=C):(o=t[3],C=t[4]);let f,x;t[5]!==a||t[6]!==c?(f=()=>{const u=c[a-1];a>0&&u&&r(u.id)},x=()=>{const u=c[a+1];a!==-1&&u&&r(u.id)},t[5]=a,t[6]=c,t[7]=f,t[8]=x):(f=t[7],x=t[8]);let d;return t[9]!==a||t[10]!==l||t[11]!==n||t[12]!==f||t[13]!==x?(d={selected:l,index:a,isOpen:n,select:o,close:C,prev:f,next:x},t[9]=a,t[10]=l,t[11]=n,t[12]=f,t[13]=x,t[14]=d):d=t[14],d}const W=50;function z(c){const t=V.c(10),{title:i,value:r,subtitle:e}=c;let a;t[0]!==i?(a=s.jsx("span",{className:"text-sm text-foreground/70",children:i}),t[0]=i,t[1]=a):a=t[1];let l;t[2]!==r?(l=s.jsx("span",{className:"text-3xl font-normal tabular-nums",children:r}),t[2]=r,t[3]=l):l=t[3];let n;t[4]!==e?(n=e&&s.jsx("span",{className:"text-xs text-muted-foreground",children:e}),t[4]=e,t[5]=n):n=t[5];let o;return t[6]!==a||t[7]!==l||t[8]!==n?(o=s.jsxs(dt,{className:"pt-4 px-4 pb-5 gap-1",children:[a,l,n]}),t[6]=a,t[7]=l,t[8]=n,t[9]=o):o=t[9],o}function yt(c){const t=V.c(45),{automationId:i,range:r}=c,e=X(),{data:a,isLoading:l}=Ct(i,r),n=a?.runs,o=a?.usage;let C;t[0]!==n?(C=n&&n.total>0?`${Math.round(n.completed/n.total*100)}%`:"—",t[0]=n,t[1]=C):C=t[1];const f=C;let x;t[2]!==e||t[3]!==o?(x=o&&o.truncated?e("automations.automationRuns.lastRunsSubtitle",{count:o.sampledRuns}):void 0,t[2]=e,t[3]=o,t[4]=x):x=t[4];const d=x;let u;t[5]!==e?(u=e("automations.automationRuns.runsTitle"),t[5]=e,t[6]=u):u=t[6];let g;t[7]!==l||t[8]!==n?.total?(g=l?"…":n?.total.toLocaleString()??"0",t[7]=l,t[8]=n?.total,t[9]=g):g=t[9];let h;t[10]!==n||t[11]!==e?(h=n?`${n.completed} ${e("automations.automationRuns.ok")} · ${n.failed} ${e("automations.automationRuns.failed")}${n.inProgress>0?` · ${n.inProgress} ${e("automations.automationRuns.running")}`:""}`:void 0,t[10]=n,t[11]=e,t[12]=h):h=t[12];let R;t[13]!==u||t[14]!==g||t[15]!==h?(R=s.jsx(z,{title:u,value:g,subtitle:h}),t[13]=u,t[14]=g,t[15]=h,t[16]=R):R=t[16];let T;t[17]!==e?(T=e("automations.automationRuns.successRateTitle"),t[17]=e,t[18]=T):T=t[18];const y=l?"…":f;let I;t[19]!==T||t[20]!==y?(I=s.jsx(z,{title:T,value:y}),t[19]=T,t[20]=y,t[21]=I):I=t[21];let S;t[22]!==e?(S=e("automations.automationRuns.tokensTitle"),t[22]=e,t[23]=S):S=t[23];let p;t[24]!==l||t[25]!==o?.totalTokens?(p=l?"…":at(o?.totalTokens??0),t[24]=l,t[25]=o?.totalTokens,t[26]=p):p=t[26];let w;t[27]!==S||t[28]!==p||t[29]!==d?(w=s.jsx(z,{title:S,value:p,subtitle:d}),t[27]=S,t[28]=p,t[29]=d,t[30]=w):w=t[30];let m;t[31]!==e?(m=e("automations.automationRuns.costTitle"),t[31]=e,t[32]=m):m=t[32];let j;t[33]!==l||t[34]!==o?(j=l?"…":o&&o.costUsd>0?nt(o.costUsd):"—",t[33]=l,t[34]=o,t[35]=j):j=t[35];let v;t[36]!==m||t[37]!==j||t[38]!==d?(v=s.jsx(z,{title:m,value:j,subtitle:d}),t[36]=m,t[37]=j,t[38]=d,t[39]=v):v=t[39];let N;return t[40]!==w||t[41]!==v||t[42]!==R||t[43]!==I?(N=s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[R,I,w,v]}),t[40]=w,t[41]=v,t[42]=R,t[43]=I,t[44]=N):N=t[44],N}function _t(c){const t=V.c(57),{run:i,usage:r,onClick:e,lastRowRef:a}=c,l=X();let n,o;if(t[0]!==i.created_at){const k=new Date(i.created_at);n=k.toLocaleDateString("en-US",{month:"short",day:"numeric"}),o=k.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),t[0]=i.created_at,t[1]=n,t[2]=o}else n=t[1],o=t[2];const C=o;let f,x,d,u,g,h,R,T,y,I,S;if(t[3]!==a||t[4]!==e||t[5]!==i.status||t[6]!==i.title||t[7]!==l){const k=vt(i.status),U=k.icon;x=st,y=a,I="h-14 cursor-pointer hover:bg-accent transition-colors border-b-0",S=e,t[19]!==i.title?(d=s.jsx(Q,{className:"min-w-0 pr-2 pl-4 md:pr-4",children:s.jsx("div",{className:"font-medium text-foreground truncate",children:i.title})}),t[19]=i.title,t[20]=d):d=t[20],f=Q,T="w-28 px-3",h="flex items-center gap-1.5",R=s.jsx(U,{size:14,className:k.iconClassName}),u=ut("text-sm",k.labelColor),g=l(k.labelKey),t[3]=a,t[4]=e,t[5]=i.status,t[6]=i.title,t[7]=l,t[8]=f,t[9]=x,t[10]=d,t[11]=u,t[12]=g,t[13]=h,t[14]=R,t[15]=T,t[16]=y,t[17]=I,t[18]=S}else f=t[8],x=t[9],d=t[10],u=t[11],g=t[12],h=t[13],R=t[14],T=t[15],y=t[16],I=t[17],S=t[18];let p;t[21]!==u||t[22]!==g?(p=s.jsx("span",{className:u,children:g}),t[21]=u,t[22]=g,t[23]=p):p=t[23];let w;t[24]!==p||t[25]!==h||t[26]!==R?(w=s.jsxs("div",{className:h,children:[R,p]}),t[24]=p,t[25]=h,t[26]=R,t[27]=w):w=t[27];let m;t[28]!==f||t[29]!==w||t[30]!==T?(m=s.jsx(f,{className:T,children:w}),t[28]=f,t[29]=w,t[30]=T,t[31]=m):m=t[31];let j;t[32]!==r?(j=r?at(r.totalTokens):"—",t[32]=r,t[33]=j):j=t[33];let v;t[34]!==j?(v=s.jsx(Q,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:j}),t[34]=j,t[35]=v):v=t[35];let N;t[36]!==r?(N=r&&r.costUsd>0?nt(r.costUsd):"—",t[36]=r,t[37]=N):N=t[37];let _;t[38]!==N?(_=s.jsx(Q,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:N}),t[38]=N,t[39]=_):_=t[39];let D;t[40]!==n?(D=s.jsx("div",{children:n}),t[40]=n,t[41]=D):D=t[41];let P;t[42]!==C?(P=s.jsx("div",{className:"text-xs text-muted-foreground/60",children:C}),t[42]=C,t[43]=P):P=t[43];let E;t[44]!==D||t[45]!==P?(E=s.jsxs(Q,{className:"w-32 px-3 pr-5 text-muted-foreground",children:[D,P]}),t[44]=D,t[45]=P,t[46]=E):E=t[46];let $;return t[47]!==x||t[48]!==d||t[49]!==m||t[50]!==v||t[51]!==_||t[52]!==E||t[53]!==y||t[54]!==I||t[55]!==S?($=s.jsxs(x,{ref:y,className:I,onClick:S,children:[d,m,v,_,E]}),t[47]=x,t[48]=d,t[49]=m,t[50]=v,t[51]=_,t[52]=E,t[53]=y,t[54]=I,t[55]=S,t[56]=$):$=t[56],$}function Bt(c){const t=V.c(73),{automationId:i,triggerIds:r,range:e}=c,a=X(),{org:l,locator:n}=it();let o;t[0]!==l.id||t[1]!==l.slug?(o={connectionId:rt,orgId:l.id,orgSlug:l.slug},t[0]=l.id,t[1]=l.slug,t[2]=o):o=t[2];const C=pt(o),f=ct(),x=xt(),d=gt(),{data:u}=St(),g=r.length>0;let h;t[3]!==i||t[4]!==l.id||t[5]!==r?(h=tt.automationRuns(l.id,i,r),t[3]=i,t[4]=l.id,t[5]=r,t[6]=h):h=t[6];let R;t[7]!==f||t[8]!==r?(R=async M=>{const{pageParam:Z}=M,lt=Z===void 0?0:Z;return await f.call("COLLECTION_THREADS_LIST",{limit:W,offset:lt,where:{trigger_ids:r}})},t[7]=f,t[8]=r,t[9]=R):R=t[9];let T;t[10]!==g||t[11]!==h||t[12]!==R?(T={queryKey:h,queryFn:R,initialPageParam:0,getNextPageParam:Et,enabled:g,staleTime:3e4},t[10]=g,t[11]=h,t[12]=R,t[13]=T):T=t[13];const{data:y,fetchNextPage:I,hasNextPage:S,isFetchingNextPage:p,isLoading:w}=ft(T);let m,j,v,N;t[14]!==y?.pages||t[15]!==n||t[16]!==e?(m=(y?.pages??[]).flatMap(Dt),N=m.map(kt),v=mt,j=tt.monitoringThreadUsage(n,JSON.stringify({ids:N,...e})),t[14]=y?.pages,t[15]=n,t[16]=e,t[17]=m,t[18]=j,t[19]=v,t[20]=N):(m=t[17],j=t[18],v=t[19],N=t[20]);let _;t[21]!==e||t[22]!==f||t[23]!==N?(_=async()=>await f.call("MONITORING_THREAD_USAGE",{threadIds:N,...e.startDate?{startDate:e.startDate}:{},...e.endDate?{endDate:e.endDate}:{}}),t[21]=e,t[22]=f,t[23]=N,t[24]=_):_=t[24];const D=N.length>0;let P;t[25]!==j||t[26]!==_||t[27]!==D?(P={queryKey:j,queryFn:_,enabled:D,staleTime:3e4},t[25]=j,t[26]=_,t[27]=D,t[28]=P):P=t[28];const{data:E}=v(P);let $;t[29]!==E?.items?($=new Map((E?.items??[]).map(Pt)),t[29]=E?.items,t[30]=$):$=t[30];const k=$;let U;t[31]!==I||t[32]!==S||t[33]!==p?(U=()=>{S&&!p&&I()},t[31]=I,t[32]=S,t[33]=p,t[34]=U):U=t[34];const Y=Tt(U,S??!1,p),b=wt(m),B=b.selected;let L;t[35]!==i||t[36]!==e?(L=s.jsx(yt,{automationId:i,range:e}),t[35]=i,t[36]=e,t[37]=L):L=t[37];let O;t[38]!==g||t[39]!==w||t[40]!==Y||t[41]!==m||t[42]!==b||t[43]!==a||t[44]!==k?(O=g?w?s.jsx("div",{className:"py-16 text-center text-sm text-muted-foreground",children:a("automations.automationRuns.loadingRuns")}):m.length===0?s.jsx("div",{className:"py-16",children:s.jsx(et,{title:a("automations.automationRuns.noRunsTitle"),description:a("automations.automationRuns.noRunsDescription")})}):s.jsxs(jt,{className:"w-full border-collapse",children:[s.jsx(Nt,{className:"border-b-0",children:s.jsxs(st,{className:"h-9 hover:bg-transparent border-b border-border",children:[s.jsx(G,{className:"pl-4 font-normal text-meta",children:a("automations.automationRuns.runHeader")}),s.jsx(G,{className:"w-28 px-3 font-normal text-meta",children:a("automations.automationRuns.statusHeader")}),s.jsx(G,{className:"w-24 px-3 font-normal text-meta text-right",children:a("automations.automationRuns.tokensHeader")}),s.jsx(G,{className:"w-24 px-3 font-normal text-meta text-right",children:a("automations.automationRuns.costHeader")}),s.jsx(G,{className:"w-32 px-3 pr-5 font-normal text-meta",children:a("automations.automationRuns.startedHeader")})]})}),s.jsx(bt,{children:m.map((M,Z)=>s.jsx(_t,{run:M,usage:k.get(M.id),onClick:()=>b.select(M.id),lastRowRef:Z===m.length-1?Y:void 0},M.id))})]}):s.jsx("div",{className:"py-16",children:s.jsx(et,{title:a("automations.automationRuns.noStartersTitle"),description:a("automations.automationRuns.noStartersDescription")})}),t[38]=g,t[39]=w,t[40]=Y,t[41]=m,t[42]=b,t[43]=a,t[44]=k,t[45]=O):O=t[45];let A;t[46]!==p||t[47]!==a?(A=p&&s.jsx("div",{className:"py-4 text-center text-sm text-muted-foreground",children:a("automations.automationRuns.loadingMore")}),t[46]=p,t[47]=a,t[48]=A):A=t[48];let H;t[49]!==b?(H=M=>{M||b.close()},t[49]=b,t[50]=H):H=t[50];let K;t[51]!==x||t[52]!==d||t[53]!==C||t[54]!==n||t[55]!==u||t[56]!==m||t[57]!==B||t[58]!==b.index||t[59]!==b.next||t[60]!==b.prev?(K=B&&s.jsx(It,{thread:B,client:C,locator:n,connections:x,virtualMcps:d,members:u,nav:{index:b.index,total:m.length,onPrev:b.prev,onNext:b.next}}),t[51]=x,t[52]=d,t[53]=C,t[54]=n,t[55]=u,t[56]=m,t[57]=B,t[58]=b.index,t[59]=b.next,t[60]=b.prev,t[61]=K):K=t[61];let q;t[62]!==K?(q=s.jsx(Rt,{className:"sm:max-w-2xl flex flex-col p-0 gap-0",children:K}),t[62]=K,t[63]=q):q=t[63];let F;t[64]!==b.isOpen||t[65]!==H||t[66]!==q?(F=s.jsx(ht,{open:b.isOpen,onOpenChange:H,children:q}),t[64]=b.isOpen,t[65]=H,t[66]=q,t[67]=F):F=t[67];let J;return t[68]!==L||t[69]!==O||t[70]!==A||t[71]!==F?(J=s.jsxs("div",{className:"flex flex-col gap-5",children:[L,O,A,F]}),t[68]=L,t[69]=O,t[70]=A,t[71]=F,t[72]=J):J=t[72],J}function Pt(c){return[c.threadId,{calls:c.calls,inputTokens:c.inputTokens,outputTokens:c.outputTokens,totalTokens:c.totalTokens,costUsd:c.costUsd}]}function kt(c){return c.id}function Dt(c){return c.items??[]}function Et(c,t){const i=c,r=t;if(!((i?.items?.length??0)<W))return r.length*W}export{Bt as A,wt as u};
|
|
1
|
+
import{c as V,r as ot,b as X,a2 as it,J as rt,an as ct,K as tt,j as s,l as ut,m as mt,eZ as dt}from"./index-DcU2uHG-.js";import{u as ft}from"./useInfiniteQuery-B7za82zu.js";import{u as xt}from"./use-connection-Dj54skEw.js";import{u as pt}from"./use-mcp-client-ZokR8_74.js";import{b as gt}from"./repository-binding-B-JblZ3B.js";import{b as ht,a as Rt}from"./sheet-R9Pr50Sb.js";import{e as jt,a as Nt,b as st,T as G,d as bt,c as Q}from"./table-DuCeyVXY.js";import{E as et}from"./empty-state-B1xpK558.js";import{u as Tt}from"./use-infinite-scroll-7dT9x3fg.js";import{u as St}from"./use-members-CzSQTDAS.js";import{g as vt}from"./task-status-CFz3dyVR.js";import{e as Ct}from"./use-automations-Dhy5bAQi.js";import{T as It,f as at,a as nt}from"./thread-sheet-body-BW8H1wdb.js";function wt(c){const t=V.c(15),[i,r]=ot.useState(null);let e;t[0]!==c||t[1]!==i?(e=i!==null?c.findIndex(u=>u.id===i):-1,t[0]=c,t[1]=i,t[2]=e):e=t[2];const a=e,l=a!==-1?c[a]:null,n=l!==null;let o,C;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=u=>r(u),C=()=>r(null),t[3]=o,t[4]=C):(o=t[3],C=t[4]);let f,x;t[5]!==a||t[6]!==c?(f=()=>{const u=c[a-1];a>0&&u&&r(u.id)},x=()=>{const u=c[a+1];a!==-1&&u&&r(u.id)},t[5]=a,t[6]=c,t[7]=f,t[8]=x):(f=t[7],x=t[8]);let d;return t[9]!==a||t[10]!==l||t[11]!==n||t[12]!==f||t[13]!==x?(d={selected:l,index:a,isOpen:n,select:o,close:C,prev:f,next:x},t[9]=a,t[10]=l,t[11]=n,t[12]=f,t[13]=x,t[14]=d):d=t[14],d}const W=50;function z(c){const t=V.c(10),{title:i,value:r,subtitle:e}=c;let a;t[0]!==i?(a=s.jsx("span",{className:"text-sm text-foreground/70",children:i}),t[0]=i,t[1]=a):a=t[1];let l;t[2]!==r?(l=s.jsx("span",{className:"text-3xl font-normal tabular-nums",children:r}),t[2]=r,t[3]=l):l=t[3];let n;t[4]!==e?(n=e&&s.jsx("span",{className:"text-xs text-muted-foreground",children:e}),t[4]=e,t[5]=n):n=t[5];let o;return t[6]!==a||t[7]!==l||t[8]!==n?(o=s.jsxs(dt,{className:"pt-4 px-4 pb-5 gap-1",children:[a,l,n]}),t[6]=a,t[7]=l,t[8]=n,t[9]=o):o=t[9],o}function yt(c){const t=V.c(45),{automationId:i,range:r}=c,e=X(),{data:a,isLoading:l}=Ct(i,r),n=a?.runs,o=a?.usage;let C;t[0]!==n?(C=n&&n.total>0?`${Math.round(n.completed/n.total*100)}%`:"—",t[0]=n,t[1]=C):C=t[1];const f=C;let x;t[2]!==e||t[3]!==o?(x=o&&o.truncated?e("automations.automationRuns.lastRunsSubtitle",{count:o.sampledRuns}):void 0,t[2]=e,t[3]=o,t[4]=x):x=t[4];const d=x;let u;t[5]!==e?(u=e("automations.automationRuns.runsTitle"),t[5]=e,t[6]=u):u=t[6];let g;t[7]!==l||t[8]!==n?.total?(g=l?"…":n?.total.toLocaleString()??"0",t[7]=l,t[8]=n?.total,t[9]=g):g=t[9];let h;t[10]!==n||t[11]!==e?(h=n?`${n.completed} ${e("automations.automationRuns.ok")} · ${n.failed} ${e("automations.automationRuns.failed")}${n.inProgress>0?` · ${n.inProgress} ${e("automations.automationRuns.running")}`:""}`:void 0,t[10]=n,t[11]=e,t[12]=h):h=t[12];let R;t[13]!==u||t[14]!==g||t[15]!==h?(R=s.jsx(z,{title:u,value:g,subtitle:h}),t[13]=u,t[14]=g,t[15]=h,t[16]=R):R=t[16];let T;t[17]!==e?(T=e("automations.automationRuns.successRateTitle"),t[17]=e,t[18]=T):T=t[18];const y=l?"…":f;let I;t[19]!==T||t[20]!==y?(I=s.jsx(z,{title:T,value:y}),t[19]=T,t[20]=y,t[21]=I):I=t[21];let S;t[22]!==e?(S=e("automations.automationRuns.tokensTitle"),t[22]=e,t[23]=S):S=t[23];let p;t[24]!==l||t[25]!==o?.totalTokens?(p=l?"…":at(o?.totalTokens??0),t[24]=l,t[25]=o?.totalTokens,t[26]=p):p=t[26];let w;t[27]!==S||t[28]!==p||t[29]!==d?(w=s.jsx(z,{title:S,value:p,subtitle:d}),t[27]=S,t[28]=p,t[29]=d,t[30]=w):w=t[30];let m;t[31]!==e?(m=e("automations.automationRuns.costTitle"),t[31]=e,t[32]=m):m=t[32];let j;t[33]!==l||t[34]!==o?(j=l?"…":o&&o.costUsd>0?nt(o.costUsd):"—",t[33]=l,t[34]=o,t[35]=j):j=t[35];let v;t[36]!==m||t[37]!==j||t[38]!==d?(v=s.jsx(z,{title:m,value:j,subtitle:d}),t[36]=m,t[37]=j,t[38]=d,t[39]=v):v=t[39];let N;return t[40]!==w||t[41]!==v||t[42]!==R||t[43]!==I?(N=s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[R,I,w,v]}),t[40]=w,t[41]=v,t[42]=R,t[43]=I,t[44]=N):N=t[44],N}function _t(c){const t=V.c(57),{run:i,usage:r,onClick:e,lastRowRef:a}=c,l=X();let n,o;if(t[0]!==i.created_at){const k=new Date(i.created_at);n=k.toLocaleDateString("en-US",{month:"short",day:"numeric"}),o=k.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),t[0]=i.created_at,t[1]=n,t[2]=o}else n=t[1],o=t[2];const C=o;let f,x,d,u,g,h,R,T,y,I,S;if(t[3]!==a||t[4]!==e||t[5]!==i.status||t[6]!==i.title||t[7]!==l){const k=vt(i.status),U=k.icon;x=st,y=a,I="h-14 cursor-pointer hover:bg-accent transition-colors border-b-0",S=e,t[19]!==i.title?(d=s.jsx(Q,{className:"min-w-0 pr-2 pl-4 md:pr-4",children:s.jsx("div",{className:"font-medium text-foreground truncate",children:i.title})}),t[19]=i.title,t[20]=d):d=t[20],f=Q,T="w-28 px-3",h="flex items-center gap-1.5",R=s.jsx(U,{size:14,className:k.iconClassName}),u=ut("text-sm",k.labelColor),g=l(k.labelKey),t[3]=a,t[4]=e,t[5]=i.status,t[6]=i.title,t[7]=l,t[8]=f,t[9]=x,t[10]=d,t[11]=u,t[12]=g,t[13]=h,t[14]=R,t[15]=T,t[16]=y,t[17]=I,t[18]=S}else f=t[8],x=t[9],d=t[10],u=t[11],g=t[12],h=t[13],R=t[14],T=t[15],y=t[16],I=t[17],S=t[18];let p;t[21]!==u||t[22]!==g?(p=s.jsx("span",{className:u,children:g}),t[21]=u,t[22]=g,t[23]=p):p=t[23];let w;t[24]!==p||t[25]!==h||t[26]!==R?(w=s.jsxs("div",{className:h,children:[R,p]}),t[24]=p,t[25]=h,t[26]=R,t[27]=w):w=t[27];let m;t[28]!==f||t[29]!==w||t[30]!==T?(m=s.jsx(f,{className:T,children:w}),t[28]=f,t[29]=w,t[30]=T,t[31]=m):m=t[31];let j;t[32]!==r?(j=r?at(r.totalTokens):"—",t[32]=r,t[33]=j):j=t[33];let v;t[34]!==j?(v=s.jsx(Q,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:j}),t[34]=j,t[35]=v):v=t[35];let N;t[36]!==r?(N=r&&r.costUsd>0?nt(r.costUsd):"—",t[36]=r,t[37]=N):N=t[37];let _;t[38]!==N?(_=s.jsx(Q,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:N}),t[38]=N,t[39]=_):_=t[39];let D;t[40]!==n?(D=s.jsx("div",{children:n}),t[40]=n,t[41]=D):D=t[41];let P;t[42]!==C?(P=s.jsx("div",{className:"text-xs text-muted-foreground/60",children:C}),t[42]=C,t[43]=P):P=t[43];let E;t[44]!==D||t[45]!==P?(E=s.jsxs(Q,{className:"w-32 px-3 pr-5 text-muted-foreground",children:[D,P]}),t[44]=D,t[45]=P,t[46]=E):E=t[46];let $;return t[47]!==x||t[48]!==d||t[49]!==m||t[50]!==v||t[51]!==_||t[52]!==E||t[53]!==y||t[54]!==I||t[55]!==S?($=s.jsxs(x,{ref:y,className:I,onClick:S,children:[d,m,v,_,E]}),t[47]=x,t[48]=d,t[49]=m,t[50]=v,t[51]=_,t[52]=E,t[53]=y,t[54]=I,t[55]=S,t[56]=$):$=t[56],$}function Bt(c){const t=V.c(73),{automationId:i,triggerIds:r,range:e}=c,a=X(),{org:l,locator:n}=it();let o;t[0]!==l.id||t[1]!==l.slug?(o={connectionId:rt,orgId:l.id,orgSlug:l.slug},t[0]=l.id,t[1]=l.slug,t[2]=o):o=t[2];const C=pt(o),f=ct(),x=xt(),d=gt(),{data:u}=St(),g=r.length>0;let h;t[3]!==i||t[4]!==l.id||t[5]!==r?(h=tt.automationRuns(l.id,i,r),t[3]=i,t[4]=l.id,t[5]=r,t[6]=h):h=t[6];let R;t[7]!==f||t[8]!==r?(R=async M=>{const{pageParam:Z}=M,lt=Z===void 0?0:Z;return await f.call("COLLECTION_THREADS_LIST",{limit:W,offset:lt,where:{trigger_ids:r}})},t[7]=f,t[8]=r,t[9]=R):R=t[9];let T;t[10]!==g||t[11]!==h||t[12]!==R?(T={queryKey:h,queryFn:R,initialPageParam:0,getNextPageParam:Et,enabled:g,staleTime:3e4},t[10]=g,t[11]=h,t[12]=R,t[13]=T):T=t[13];const{data:y,fetchNextPage:I,hasNextPage:S,isFetchingNextPage:p,isLoading:w}=ft(T);let m,j,v,N;t[14]!==y?.pages||t[15]!==n||t[16]!==e?(m=(y?.pages??[]).flatMap(Dt),N=m.map(kt),v=mt,j=tt.monitoringThreadUsage(n,JSON.stringify({ids:N,...e})),t[14]=y?.pages,t[15]=n,t[16]=e,t[17]=m,t[18]=j,t[19]=v,t[20]=N):(m=t[17],j=t[18],v=t[19],N=t[20]);let _;t[21]!==e||t[22]!==f||t[23]!==N?(_=async()=>await f.call("MONITORING_THREAD_USAGE",{threadIds:N,...e.startDate?{startDate:e.startDate}:{},...e.endDate?{endDate:e.endDate}:{}}),t[21]=e,t[22]=f,t[23]=N,t[24]=_):_=t[24];const D=N.length>0;let P;t[25]!==j||t[26]!==_||t[27]!==D?(P={queryKey:j,queryFn:_,enabled:D,staleTime:3e4},t[25]=j,t[26]=_,t[27]=D,t[28]=P):P=t[28];const{data:E}=v(P);let $;t[29]!==E?.items?($=new Map((E?.items??[]).map(Pt)),t[29]=E?.items,t[30]=$):$=t[30];const k=$;let U;t[31]!==I||t[32]!==S||t[33]!==p?(U=()=>{S&&!p&&I()},t[31]=I,t[32]=S,t[33]=p,t[34]=U):U=t[34];const Y=Tt(U,S??!1,p),b=wt(m),B=b.selected;let L;t[35]!==i||t[36]!==e?(L=s.jsx(yt,{automationId:i,range:e}),t[35]=i,t[36]=e,t[37]=L):L=t[37];let O;t[38]!==g||t[39]!==w||t[40]!==Y||t[41]!==m||t[42]!==b||t[43]!==a||t[44]!==k?(O=g?w?s.jsx("div",{className:"py-16 text-center text-sm text-muted-foreground",children:a("automations.automationRuns.loadingRuns")}):m.length===0?s.jsx("div",{className:"py-16",children:s.jsx(et,{title:a("automations.automationRuns.noRunsTitle"),description:a("automations.automationRuns.noRunsDescription")})}):s.jsxs(jt,{className:"w-full border-collapse",children:[s.jsx(Nt,{className:"border-b-0",children:s.jsxs(st,{className:"h-9 hover:bg-transparent border-b border-border",children:[s.jsx(G,{className:"pl-4 font-normal text-meta",children:a("automations.automationRuns.runHeader")}),s.jsx(G,{className:"w-28 px-3 font-normal text-meta",children:a("automations.automationRuns.statusHeader")}),s.jsx(G,{className:"w-24 px-3 font-normal text-meta text-right",children:a("automations.automationRuns.tokensHeader")}),s.jsx(G,{className:"w-24 px-3 font-normal text-meta text-right",children:a("automations.automationRuns.costHeader")}),s.jsx(G,{className:"w-32 px-3 pr-5 font-normal text-meta",children:a("automations.automationRuns.startedHeader")})]})}),s.jsx(bt,{children:m.map((M,Z)=>s.jsx(_t,{run:M,usage:k.get(M.id),onClick:()=>b.select(M.id),lastRowRef:Z===m.length-1?Y:void 0},M.id))})]}):s.jsx("div",{className:"py-16",children:s.jsx(et,{title:a("automations.automationRuns.noStartersTitle"),description:a("automations.automationRuns.noStartersDescription")})}),t[38]=g,t[39]=w,t[40]=Y,t[41]=m,t[42]=b,t[43]=a,t[44]=k,t[45]=O):O=t[45];let A;t[46]!==p||t[47]!==a?(A=p&&s.jsx("div",{className:"py-4 text-center text-sm text-muted-foreground",children:a("automations.automationRuns.loadingMore")}),t[46]=p,t[47]=a,t[48]=A):A=t[48];let H;t[49]!==b?(H=M=>{M||b.close()},t[49]=b,t[50]=H):H=t[50];let K;t[51]!==x||t[52]!==d||t[53]!==C||t[54]!==n||t[55]!==u||t[56]!==m||t[57]!==B||t[58]!==b.index||t[59]!==b.next||t[60]!==b.prev?(K=B&&s.jsx(It,{thread:B,client:C,locator:n,connections:x,virtualMcps:d,members:u,nav:{index:b.index,total:m.length,onPrev:b.prev,onNext:b.next}}),t[51]=x,t[52]=d,t[53]=C,t[54]=n,t[55]=u,t[56]=m,t[57]=B,t[58]=b.index,t[59]=b.next,t[60]=b.prev,t[61]=K):K=t[61];let q;t[62]!==K?(q=s.jsx(Rt,{className:"sm:max-w-2xl flex flex-col p-0 gap-0",children:K}),t[62]=K,t[63]=q):q=t[63];let F;t[64]!==b.isOpen||t[65]!==H||t[66]!==q?(F=s.jsx(ht,{open:b.isOpen,onOpenChange:H,children:q}),t[64]=b.isOpen,t[65]=H,t[66]=q,t[67]=F):F=t[67];let J;return t[68]!==L||t[69]!==O||t[70]!==A||t[71]!==F?(J=s.jsxs("div",{className:"flex flex-col gap-5",children:[L,O,A,F]}),t[68]=L,t[69]=O,t[70]=A,t[71]=F,t[72]=J):J=t[72],J}function Pt(c){return[c.threadId,{calls:c.calls,inputTokens:c.inputTokens,outputTokens:c.outputTokens,totalTokens:c.totalTokens,costUsd:c.costUsd}]}function kt(c){return c.id}function Dt(c){return c.items??[]}function Et(c,t){const i=c,r=t;if(!((i?.items?.length??0)<W))return r.length*W}export{Bt as A,wt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,j as e,b as $,a2 as D,d as M,r as q,n as d,B as V,fx as F,y as R}from"./index-
|
|
1
|
+
import{c as k,j as e,b as $,a2 as D,d as M,r as q,n as d,B as V,fx as F,y as R}from"./index-DcU2uHG-.js";import{s as G}from"./Plus-xabrshQG.js";import{i as S}from"./ZoomOut-B55seUHX.js";import{S as H}from"./search-input-C77c23a_.js";import{E as T}from"./empty-state-B1xpK558.js";import{u as J}from"./use-automations-Dhy5bAQi.js";import{u as K}from"./use-navigate-to-agent-D05JNc-L.js";import{A as O}from"./automation-list-row-CO-7cr0O.js";import{b as Q}from"./repository-binding-B-JblZ3B.js";import{R as U}from"./require-capability-fF33BjRE.js";import"./SearchMd-BODiv7c9.js";import"./use-mcp-client-ZokR8_74.js";import"./auth-CJCUdDnK.js";import"./thread-intent-DlbBEzNn.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CrLAsZHh.js";import"./task-board-CSpxMIw7.js";import"./schema-DTqdooJM.js";import"./slugify-CEUa2lfQ.js";import"./badge-ByzdbptS.js";import"./alert-dialog-M8Y0zqSA.js";import"./agent-icon-c0hRUHIU.js";import"./AlertCircle-xI8XX-bi.js";import"./Tool01-BGL2Qt57.js";import"./ArrowUp-Cq3iZIwL.js";import"./ArrowLeft-BKYzlDQY.js";import"./LinkBroken01-ZRquEJUl.js";import"./ShoppingBag01-DAjyOiiw.js";import"./Building02-C9KWPxlH.js";import"./CheckCircle-D30wPP6A.js";import"./ChevronUp-CFN68hLk.js";import"./ChevronSelectorVertical-CknWVrzo.js";import"./UserSquare-DJngEPjS.js";import"./Copy01-C73PJJxr.js";import"./CreditCard01-C8DlQ7Ge.js";import"./DotsVertical-BvyfZIer.js";import"./Image01-DowwsvYG.js";import"./Globe04-CVLAzwjm.js";import"./SwitchHorizontal01-CESO3nxl.js";import"./Key01-rbnGMz2E.js";import"./Link01-DRsKyIm5.js";import"./Minus-DPDq6KAA.js";import"./Monitor01-DMME8GIo.js";import"./Sun-BqmeoxcG.js";import"./Play-c6bc1b3-.js";import"./Trash01-Cf6bGuCZ.js";import"./Upload01-ZLE7vfB9.js";import"./User01-Cfg0yVvz.js";import"./Users01-vn3EOu8A.js";import"./XClose-CdzjyNb0.js";import"./access-gate-CgSSvGG3.js";import"./capability-load-error-CaA022rx.js";function W(){const t=k.c(20),o=$(),{org:c}=D(),{data:y}=J(void 0),g=y===void 0?[]:y,E=Q(),P=K(),f=M(),[x,z]=q.useState(""),h=x.toLowerCase(),A=new Map(E.map(X)),b=g.filter(i=>{if(!h||i.name.toLowerCase().includes(h))return!0;if(i.virtual_mcp_id){const l=A.get(i.virtual_mcp_id);if(l&&l.title.toLowerCase().includes(h))return!0}return!1}),B=(i,l)=>{const N=l&&A.has(l)?l:F(c.id);R("automations_list_row_clicked",{automation_id:i,agent_id:N,source:"settings_automations"}),P(N,{panel:`automation:${i}`})};let p;t[0]!==f||t[1]!==c.slug?(p=()=>{R("automations_empty_state_browse_agents_clicked"),f({to:"/$org/settings/projects",params:{org:c.slug}})},t[0]=f,t[1]=c.slug,t[2]=p):p=t[2];const L=p,j=d,v=d,w=d;let s;t[3]!==o?(s=o("settings.automations.pageTitle"),t[3]=o,t[4]=s):s=t[4];let r;t[5]!==s?(r=e.jsx(d.Title,{children:s}),t[5]=s,t[6]=r):r=t[6];const C=g.length>0&&e.jsx(H,{value:x,onChange:z,placeholder:o("settings.automations.searchPlaceholder"),className:"w-full md:w-[375px]"});let n;t[7]!==r||t[8]!==C?(n=e.jsxs("div",{className:"flex flex-col gap-6",children:[r,C]}),t[7]=r,t[8]=C,t[9]=n):n=t[9];const _=g.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(T,{image:e.jsx(S,{size:48,className:"text-muted-foreground"}),title:o("settings.automations.emptyTitle"),description:o("settings.automations.emptyDescription"),actions:e.jsxs(V,{size:"sm",onClick:L,children:[e.jsx(G,{size:14}),o("settings.automations.browseAgentsButton")]})})}):b.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(T,{image:e.jsx(S,{size:48,className:"text-muted-foreground"}),title:o("settings.automations.noResultsTitle"),description:o("settings.automations.noResultsDescription",{search:x})})}):e.jsx("div",{className:"mt-6 flex flex-col divide-y divide-border overflow-hidden rounded-xl bg-card shadow-edge",children:b.map(i=>e.jsx(O,{automation:i,showAgent:!0,onClick:()=>B(i.id,i.virtual_mcp_id)},i.id))});let a;t[10]!==w.Container||t[11]!==n||t[12]!==_?(a=e.jsxs(w.Container,{children:[n,_]}),t[10]=w.Container,t[11]=n,t[12]=_,t[13]=a):a=t[13];let m;t[14]!==v.Content||t[15]!==a?(m=e.jsx(v.Content,{children:a}),t[14]=v.Content,t[15]=a,t[16]=m):m=t[16];let u;return t[17]!==j||t[18]!==m?(u=e.jsx(j,{children:m}),t[17]=j,t[18]=m,t[19]=u):u=t[19],u}function X(t){return[t.id,t]}function Xt(){const t=k.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(U,{capability:"automations:manage",area:"automations",children:e.jsx(W,{})}),t[0]=o):o=t[0],o}export{Xt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aw as d}from"./index-
|
|
1
|
+
import{aw as d}from"./index-DcU2uHG-.js";const m=1e4,y="true",i=2;function a(t,n){return d.chatAutosend(t,n)}function l(t){return t==="pending"||t==="sending"}function f(t){if(!t)return null;let n;try{n=JSON.parse(t)}catch{return null}if(!n||typeof n!="object")return null;const e=n;let o=0;e.status==="sending"?o=e.retryAt===void 0?1:i:e.retryAt!==void 0&&(o=1);const r=e.attempt===void 0?o:e.attempt;return typeof e.createdAt!="number"||typeof e.message!="object"||!l(e.status)||e.retryAt!==void 0&&typeof e.retryAt!="number"||typeof r!="number"||!Number.isInteger(r)||r<0||r>i?null:{...n,attempt:r}}function S(t,n,e,o,r=Date.now()){const s={message:o,createdAt:r,status:"pending",attempt:0};return t.setItem(a(n,e),JSON.stringify(s)),s}function p(t,n,e){const o=a(n,e),r=f(t.getItem(o));return r||(t.removeItem(o),null)}function g(t,n,e,o=Date.now()){const r=a(n,e),s=p(t,n,e);if(!s||s.status!=="pending")return null;if(s.attempt>=i)return t.removeItem(r),null;const c=s.retryAt??s.createdAt;if(o-c>=m)return t.removeItem(r),null;const u={...s,status:"sending",attempt:s.attempt+1};return t.setItem(r,JSON.stringify(u)),{message:u.message,createdAt:u.createdAt,attempt:u.attempt}}function T(t,n,e){t.removeItem(a(n,e))}export{y as A,T as a,g as c,S as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as o,j as n,c as i,bv as g,bw as h,aU as c,bx as z}from"./index-
|
|
1
|
+
import{l as o,j as n,c as i,bv as g,bw as h,aU as c,bx as z}from"./index-DcU2uHG-.js";import{s as v}from"./User01-Cfg0yVvz.js";function j(r){const e=i.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let a;e[3]!==s?(a=o("relative flex size-8 shrink-0 overflow-hidden rounded-full",s),e[3]=s,e[4]=a):a=e[4];let l;return e[5]!==t||e[6]!==a?(l=n.jsx(g,{"data-slot":"avatar",className:a,...t}),e[5]=t,e[6]=a,e[7]=l):l=e[7],l}function k(r){const e=i.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let a;e[3]!==s?(a=o("aspect-square size-full",s),e[3]=s,e[4]=a):a=e[4];let l;return e[5]!==t||e[6]!==a?(l=n.jsx(h,{"data-slot":"avatar-image",className:a,...t}),e[5]=t,e[6]=a,e[7]=l):l=e[7],l}function q(r){const e=i.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let a;e[3]!==s?(a=o("bg-muted flex size-full items-center justify-center rounded-full",s),e[3]=s,e[4]=a):a=e[4];let l;return e[5]!==t||e[6]!==a?(l=n.jsx(z,{"data-slot":"avatar-fallback",className:a,...t}),e[5]=t,e[6]=a,e[7]=l):l=e[7],l}const A={tint:["bg-brand-lime-tint text-brand-green-dark dark:bg-brand/20 dark:text-brand","bg-brand-purple-tint text-brand-purple-dark dark:bg-brand-purple/20 dark:text-brand-purple","bg-brand-yellow-tint text-brand-yellow-dark dark:bg-brand-yellow/20 dark:text-brand-yellow","bg-brand-blue-tint text-brand-blue-dark dark:bg-brand-blue/20 dark:text-brand-blue"],solid:["bg-brand text-brand-green-dark","bg-brand-purple text-brand-purple-dark","bg-brand-yellow text-brand-yellow-dark","bg-brand-blue text-brand-blue-dark"]},y="bg-muted text-muted-foreground";function N(r,e){let s=0;for(let a=0;a<r.length;a++)s=r.charCodeAt(a)+((s<<5)-s);const t=A[e];return t[Math.abs(s)%t.length]}function w(r){const e=r.trim().split(/\s+/).filter(Boolean),s=e[0]?.charAt(0)??"",t=e.length>1?e.at(-1)?.charAt(0)??"":"";return(s+t).toUpperCase()||"?"}const u=c("font-medium",{variants:{shape:{circle:"rounded-full",square:""},size:{"3xs":"size-3 text-[0.4375rem]","2xs":"size-4 text-[0.5625rem]",xs:"size-6 text-[0.625rem]",sm:"size-8 text-xs",md:"size-9 text-sm",base:"size-10 text-sm",lg:"size-12 text-lg",xl:"size-16 text-2xl","2xl":"size-20 text-3xl","3xl":"size-32 text-5xl"}},compoundVariants:[{shape:"square",size:"3xs",class:"rounded-[0.1875rem]"},{shape:"square",size:"2xs",class:"rounded-sm"},{shape:"square",size:"xs",class:"rounded-lg"},{shape:"square",size:"sm",class:"rounded-[0.625rem]"},{shape:"square",size:"md",class:"rounded-[0.6875rem]"},{shape:"square",size:"base",class:"rounded-xl"},{shape:"square",size:"lg",class:"rounded-[0.875rem]"},{shape:"square",size:"xl",class:"rounded-[1.125rem]"},{shape:"square",size:"2xl",class:"rounded-[1.375rem]"},{shape:"square",size:"3xl",class:"rounded-[2.25rem]"}],defaultVariants:{shape:"square",size:"base"}}),R=c("",{variants:{objectFit:{contain:"object-contain",cover:"object-cover"}},defaultVariants:{objectFit:"cover"}}),C={"3xs":8,"2xs":8,xs:12,sm:16,md:18,base:20,lg:24,xl:32,"2xl":40,"3xl":64};function F({shape:r="square",size:e="base",url:s,fallback:t,objectFit:a="cover",className:l,muted:x=!1,tone:b=r==="circle"?"solid":"tint",selected:m=!1,...f}){const p=x?y:N(typeof t=="string"?t:"",b),d=o("flex size-full items-center justify-center",p);return n.jsx(j,{className:o(u({shape:r,size:e}),s&&"outline-1 -outline-offset-1 outline-hairline",m&&"outline-2 outline-offset-0 outline-foreground",l),...f,children:s?.startsWith("icon://")?n.jsx("div",{className:d,children:n.jsx(v,{size:C[e??"base"]})}):n.jsxs(n.Fragment,{children:[s&&n.jsx(k,{src:s,loading:"lazy",alt:"Avatar",className:R({objectFit:a})}),n.jsx(q,{className:o(d,"rounded-none"),delayMs:s?600:0,children:typeof t=="string"?w(t):t})]})})}F.Skeleton=function({shape:e="square",size:s="base",className:t}){return n.jsx("div",{className:o(u({shape:e,size:s}),"bg-muted animate-pulse",t)})};export{F as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,l,j as u,by as c,aU as p}from"./index-
|
|
1
|
+
import{c as b,l,j as u,by as c,aU as p}from"./index-DcU2uHG-.js";const v=p("inline-flex items-center justify-center rounded-full text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1.5 [&>svg]:pointer-events-none focus-ring transition-[color,background-color] overflow-hidden",{variants:{variant:{default:"bg-muted text-foreground [a&]:hover:bg-secondary-hover",neutral:"bg-muted text-foreground [a&]:hover:bg-secondary-hover",secondary:"bg-muted text-foreground [a&]:hover:bg-secondary-hover",success:"bg-success/10 text-success [a&]:hover:bg-success/15",warning:"bg-warning/10 text-warning [a&]:hover:bg-warning/15",destructive:"bg-destructive/10 text-destructive [a&]:hover:bg-destructive/15",agent:"bg-brand-purple-tint text-brand-purple-dark dark:bg-brand-purple/20 dark:text-brand-purple",lime:"bg-brand-lime-tint text-brand-green-dark dark:bg-brand/20 dark:text-brand",info:"bg-brand-blue-tint text-brand-blue-dark dark:bg-brand-blue/20 dark:text-brand-blue",outline:"bg-card shadow-edge text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",muted:"bg-muted text-muted-foreground [a&]:hover:bg-secondary-hover",brand:"bg-brand/30 text-foreground [a&]:hover:bg-brand/40 [button&]:hover:bg-brand/40"},size:{sm:"h-4 gap-1 px-1.5 text-[0.6875rem]",default:"h-5 px-2",lg:"h-6 px-2.5 text-sm [&>svg]:size-3.5",control:"h-7 gap-1.5 pr-3 pl-1.5",icon:"size-5",segmented:"h-7 gap-0 rounded-lg bg-card p-0 shadow-edge"}},defaultVariants:{variant:"default",size:"default"}});function f(g){const e=b.c(14);let t,r,a,s,n;e[0]!==g?({className:t,variant:n,size:a,asChild:s,...r}=g,e[0]=g,e[1]=t,e[2]=r,e[3]=a,e[4]=s,e[5]=n):(t=e[1],r=e[2],a=e[3],s=e[4],n=e[5]);const i=(s===void 0?!1:s)?c:"span";let d;e[6]!==t||e[7]!==a||e[8]!==n?(d=l(v({variant:n,size:a}),t),e[6]=t,e[7]=a,e[8]=n,e[9]=d):d=e[9];let o;return e[10]!==i||e[11]!==r||e[12]!==d?(o=u.jsx(i,{"data-slot":"badge",className:d,...r}),e[10]=i,e[11]=r,e[12]=d,e[13]=o):o=e[13],o}export{f as B};
|