decocms 4.309.2 → 4.309.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-DUXp6ZMI.js → AlertCircle-DHh1PfjG.js} +1 -1
- package/dist/client/assets/{AreaChart-CKr2KLFf.js → AreaChart-B-TQnetO.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BpTtU-lw.js → ArrowLeft-CIx-iUY8.js} +1 -1
- package/dist/client/assets/{ArrowUp-BI2hNB58.js → ArrowUp-D8eBlYFE.js} +1 -1
- package/dist/client/assets/{Check-Dcg2FKZV.js → Check-wBaW66G-.js} +1 -1
- package/dist/client/assets/{CheckCircle-D7xEvCuX.js → CheckCircle-IsvkJ4bm.js} +1 -1
- package/dist/client/assets/{ChevronDown-Dzxlhy5S.js → ChevronDown-BgL_uS0k.js} +1 -1
- package/dist/client/assets/{ChevronRight-DtCFByai.js → ChevronRight-BlkCcJKu.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-Dl7DRzo6.js → ChevronSelectorVertical-CNJYSndt.js} +1 -1
- package/dist/client/assets/{ChevronUp-J_HzECQ0.js → ChevronUp-CH3Gpcfa.js} +1 -1
- package/dist/client/assets/{Copy01-DRX7vwaN.js → Copy01-rA4Dpk36.js} +1 -1
- package/dist/client/assets/{CreditCard01-DOs7rGmX.js → CreditCard01-D_VUaJaW.js} +1 -1
- package/dist/client/assets/{DotsVertical-Cjtyl1Nc.js → DotsVertical-PJAwR6yV.js} +1 -1
- package/dist/client/assets/{Download01-COm4e46o.js → Download01-Dq_Unryt.js} +1 -1
- package/dist/client/assets/{Eye-DAXRRime.js → Eye-BtvpunKY.js} +1 -1
- package/dist/client/assets/{FilterLines-DYcHJRiK.js → FilterLines-D1RVdliT.js} +1 -1
- package/dist/client/assets/{GitBranch01-CV57oF57.js → GitBranch01-Gl4XOf-O.js} +1 -1
- package/dist/client/assets/{Globe01-e3tQI5zA.js → Globe01-TkTVNTBx.js} +1 -1
- package/dist/client/assets/{Globe04-DKpets_8.js → Globe04-0hM_DQ8g.js} +1 -1
- package/dist/client/assets/{HardDrive-B_fEfwQe.js → HardDrive-O56FWvWN.js} +1 -1
- package/dist/client/assets/{Image01-CeeitiQC.js → Image01-CagTyvEA.js} +1 -1
- package/dist/client/assets/{Key01-C7xn3HO2.js → Key01-UDx6YjlZ.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Fj9Xk8C2.js → LinkExternal01-iKTo0TYB.js} +1 -1
- package/dist/client/assets/{LockUnlocked01-CPDkuo12.js → LockUnlocked01-C8h1olc3.js} +1 -1
- package/dist/client/assets/{LogOut01-DwrGBGow.js → LogOut01-C0_NcZm2.js} +1 -1
- package/dist/client/assets/{Monitor01-CRDfAqoc.js → Monitor01-Im6C3EOU.js} +1 -1
- package/dist/client/assets/{Package-CWUc_BWm.js → Package-BiqlaFT1.js} +1 -1
- package/dist/client/assets/{Palette-CCa4wgW5.js → Palette-DkAHxVri.js} +1 -1
- package/dist/client/assets/{Play-JH5sUoNr.js → Play-D8uG1obb.js} +1 -1
- package/dist/client/assets/{Plus-B-KC54Ke.js → Plus-D5klvHCU.js} +1 -1
- package/dist/client/assets/{SearchLg-CYxHOyW5.js → SearchLg-JbtaWgUZ.js} +1 -1
- package/dist/client/assets/{SearchMd-BnF1xexB.js → SearchMd-DjyJfMpl.js} +1 -1
- package/dist/client/assets/{Settings02-BX6byd4x.js → Settings02-BJy9P2Ps.js} +1 -1
- package/dist/client/assets/{Share07-9gnUhPo3.js → Share07-DJSE5SFv.js} +1 -1
- package/dist/client/assets/{Shield01-CB_tKxbK.js → Shield01-takhSBBv.js} +1 -1
- package/dist/client/assets/{Stars01-B7tSGkXd.js → Stars01-BBJe-YJ4.js} +1 -1
- package/dist/client/assets/{Stars02-DYvNEYKF.js → Stars02-B_QqeAkn.js} +1 -1
- package/dist/client/assets/{Sun-DD0sDukS.js → Sun-BIlGaePu.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DZP-FVeT.js → SwitchHorizontal01-C3_vFYWS.js} +1 -1
- package/dist/client/assets/{Tool01-C8OhVbOl.js → Tool01-Dq3mWzGY.js} +1 -1
- package/dist/client/assets/{Tool02-CxqUclEH.js → Tool02-BCNi_5kK.js} +1 -1
- package/dist/client/assets/{Trash01-BQfgf4-j.js → Trash01-B00Q74ug.js} +1 -1
- package/dist/client/assets/{TrendUp01-BtOC9Cyo.js → TrendUp01-NXHcc4HH.js} +1 -1
- package/dist/client/assets/{Upload01-X6dB-Mu0.js → Upload01-DvesXgzF.js} +1 -1
- package/dist/client/assets/{User01-C2Huc2aD.js → User01-B8N9S7_u.js} +1 -1
- package/dist/client/assets/{UserSquare-C8JBs3lE.js → UserSquare-BnqWtXra.js} +1 -1
- package/dist/client/assets/{Users01-svSqLjTh.js → Users01-j7p_t3Gy.js} +1 -1
- package/dist/client/assets/{Users03-CEaQsARW.js → Users03-CrKzevO2.js} +1 -1
- package/dist/client/assets/{XCircle-eDx4N14q.js → XCircle-BHxSAU3k.js} +1 -1
- package/dist/client/assets/{XClose-zzbrIbsI.js → XClose-w0cYZrF9.js} +1 -1
- package/dist/client/assets/{YAxis-Bk2tfL_D.js → YAxis-D6KgfLbY.js} +1 -1
- package/dist/client/assets/{Zap-CiC8bBNg.js → Zap-Bht2IlJK.js} +1 -1
- package/dist/client/assets/{ZapSquare-JRrYILk7.js → ZapSquare-BwQELxKq.js} +1 -1
- package/dist/client/assets/{ZoomOut-DKhQ4EDw.js → ZoomOut-DdBGhheB.js} +1 -1
- package/dist/client/assets/{access-gate-DWxHER1x.js → access-gate-BfcBgt43.js} +1 -1
- package/dist/client/assets/{agent-icon-Btoh9yTx.js → agent-icon-BM_KwXAG.js} +1 -1
- package/dist/client/assets/{agents-list-jMY-UpZ-.js → agents-list-5BLQUXiA.js} +1 -1
- package/dist/client/assets/{ai-providers-DnQmgIdG.js → ai-providers-CpASU3YI.js} +1 -1
- package/dist/client/assets/{alert-DNRKbJfb.js → alert-A3K1CLvR.js} +1 -1
- package/dist/client/assets/{alert-dialog-d8uD9a8_.js → alert-dialog-ClFGnSbS.js} +1 -1
- package/dist/client/assets/{api-keys-DL2iylID.js → api-keys-Coad-Yp1.js} +1 -1
- package/dist/client/assets/{app-editor-DBaOqGqA.js → app-editor-Ikptz3sX.js} +1 -1
- package/dist/client/assets/{auth-B8GGst-A.js → auth-BgIsu1_r.js} +1 -1
- package/dist/client/assets/{auth-catchall-CVzHTgOZ.js → auth-catchall-CVgTyUS1.js} +1 -1
- package/dist/client/assets/{auth-entry-DRPIQu3e.js → auth-entry-BJyPrfC7.js} +1 -1
- package/dist/client/assets/{auth-split-layout-19POX7n-.js → auth-split-layout-Bb-G5hU2.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CJO2aJZ4.js → authenticate-and-persist-oauth-DHyo0WS-.js} +1 -1
- package/dist/client/assets/{automation-list-row-CTlFVBO6.js → automation-list-row-D9F76HD3.js} +1 -1
- package/dist/client/assets/{automation-runs-i3dQC1KO.js → automation-runs-CS9qihpW.js} +1 -1
- package/dist/client/assets/{automations-CM9202KN.js → automations-D7JPCpli.js} +1 -1
- package/dist/client/assets/{avatar-BwSpLmCf.js → avatar-CqApqQ82.js} +1 -1
- package/dist/client/assets/{badge-DtvPToKp.js → badge-SPHUmAm8.js} +1 -1
- package/dist/client/assets/{block-document-C_k0OpsP.js → block-document-JYNShNP_.js} +1 -1
- package/dist/client/assets/{breadcrumb-C9YJ0GsD.js → breadcrumb-DcWvihG3.js} +1 -1
- package/dist/client/assets/{buckets-CSgc_0Og.js → buckets-BJTjS9bw.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BiAJLcbW.js → bulk-category-panel-CNaOxppS.js} +1 -1
- package/dist/client/assets/{capability-load-error-DVn80nh-.js → capability-load-error-Cn9thnjX.js} +1 -1
- package/dist/client/assets/{cards-BYos1pq1.js → cards-CQvmEd1A.js} +1 -1
- package/dist/client/assets/{category-editor-CMz3xkH-.js → category-editor-TDn0GCtR.js} +1 -1
- package/dist/client/assets/{chart-f1njdgVT.js → chart-B-9nfVkT.js} +1 -1
- package/dist/client/assets/{chat-context-D812TEpe.js → chat-context-DtBrJHtH.js} +1 -1
- package/dist/client/assets/{checkbox-B6L_RZ-J.js → checkbox-DOE7YchQ.js} +1 -1
- package/dist/client/assets/{choose-editor-CljNd5tC.js → choose-editor-Bc-So136.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BdsU5vCv.js → cli-auth-success-DnYF8i71.js} +1 -1
- package/dist/client/assets/{collection-detail-Dfa_LjY7.js → collection-detail-BB5Bfahx.js} +1 -1
- package/dist/client/assets/{collection-display-button-B6--GOQL.js → collection-display-button-YZZg-EtC.js} +1 -1
- package/dist/client/assets/{collection-search-B6NiQgOk.js → collection-search-DhQXOJ9h.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DGAKtmw1.js → collection-table-wrapper-h0h2OYzF.js} +1 -1
- package/dist/client/assets/{collection-tabs-BKUWzcBj.js → collection-tabs-uw6aJbMR.js} +1 -1
- package/dist/client/assets/{command-CKTLQGRC.js → command-imFFxkWB.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-Bl4-rI-Y.js → commerce-onboarding-Cs8uOt_x.js} +1 -1
- package/dist/client/assets/{config-0RV5jbqa.js → config-B1OTMfz_.js} +1 -1
- package/dist/client/assets/{connect-DvCpyGDA.js → connect-D-cwxvKT.js} +1 -1
- package/dist/client/assets/{connection-D7pHeTKi.js → connection-BD3dwV34.js} +1 -1
- package/dist/client/assets/{connection-card-9w2LppLa.js → connection-card-CyaD8Y8R.js} +1 -1
- package/dist/client/assets/{connection-detail-tokkyh2A.js → connection-detail-Wjgl09rO.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DzdnNyjw.js → connection-form-helpers-BNk8NgtD.js} +1 -1
- package/dist/client/assets/{connections-CfcpxYBh.js → connections-QfItfV0p.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-D-_xDWUE.js → decopilot-sse-pool-DjmIqnOP.js} +1 -1
- package/dist/client/assets/{dialog-DxvzvL8Y.js → dialog-CuFyb00o.js} +1 -1
- package/dist/client/assets/{domain-settings-JhZmexlv.js → domain-settings-D-7xInwU.js} +1 -1
- package/dist/client/assets/{drawer-BWsKRwHe.js → drawer-B55srsns.js} +1 -1
- package/dist/client/assets/{dropdown-menu-6895rlRy.js → dropdown-menu-Bc2xCCCn.js} +1 -1
- package/dist/client/assets/{editor-BUdjrZy0.js → editor-DOzsQM6_.js} +1 -1
- package/dist/client/assets/{empty-state-CzR3djr1.js → empty-state-DupgNgIZ.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CBBMYUB4.js → extract-connection-data-M-kxONh2.js} +1 -1
- package/dist/client/assets/{file-explorer-DN6oDzzf.js → file-explorer-CRnJiL4C.js} +1 -1
- package/dist/client/assets/{file-type-icon-CnssEJDf.js → file-type-icon-Ct79HPTc.js} +1 -1
- package/dist/client/assets/{folder-icon-BWZYzLM4.js → folder-icon-DIUadLc3.js} +1 -1
- package/dist/client/assets/{form-DSLfSlJs.js → form-aFuRXTmr.js} +1 -1
- package/dist/client/assets/{general-DRQjsGcd.js → general-CvL0EyVS.js} +1 -1
- package/dist/client/assets/{github-repo-picker-DfJrR9SO.js → github-repo-picker-r8LvfODU.js} +1 -1
- package/dist/client/assets/{hooks-Cys9esQi.js → hooks-wtXM5FHT.js} +1 -1
- package/dist/client/assets/{index-gzx1baim.js → index-BPcqhwgX.js} +1 -1
- package/dist/client/assets/{index-C5P4UzI3.js → index-Badkm65z.js} +1 -1
- package/dist/client/assets/{index-Dvo-d2xk.js → index-BksYgRWT.js} +6 -6
- package/dist/client/assets/{index-CzK0itGl.js → index-BoOh4esQ.js} +1 -1
- package/dist/client/assets/{index-dDwrLVht.js → index-C6JeKvEX.js} +1 -1
- package/dist/client/assets/{index-BNg6Tr9g.js → index-CRLBtg3d.js} +1 -1
- package/dist/client/assets/{index-BupQW6h3.js → index-CqYwCEJB.js} +3 -3
- package/dist/client/assets/{index-r-SdXu0Y.js → index-TkyVcUUR.js} +1 -1
- package/dist/client/assets/{index-BQHg_sD8.js → index-YGc6gMVZ.js} +1 -1
- package/dist/client/assets/{index-redirect-CyqulO8b.js → index-redirect-DlNB7OB4.js} +1 -1
- package/dist/client/assets/{infra-billing-fm13cpBL.js → infra-billing-CO46k-hC.js} +1 -1
- package/dist/client/assets/{input-CvyH6VMl.js → input-OX6HIlPh.js} +1 -1
- package/dist/client/assets/{integration-icon-CGtm6Fto.js → integration-icon-B45IavMk.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-oka7nT3Z.js → invite-member-dialog-DUO4GE2S.js} +1 -1
- package/dist/client/assets/{label-DFw3VcA2.js → label-C-y8YfKM.js} +1 -1
- package/dist/client/assets/{layout-B1JuCIJ2.js → layout-C9E8MIPl.js} +1 -1
- package/dist/client/assets/{login-EB-T7XIA.js → login-BsC0fcTs.js} +1 -1
- package/dist/client/assets/{markdown-CXtbmt47.js → markdown-DR-Dd2P4.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DFXmjWpn.js → mcp-oauth-BYjNrGhH.js} +1 -1
- package/dist/client/assets/{members-D43Px23p.js → members-ZCjPENmp.js} +1 -1
- package/dist/client/assets/{monaco-editor-DRpzKGkh.js → monaco-editor-CccIDhBb.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CyG8qemr.js → monitoring-stats-row-DPlylYw8.js} +1 -1
- package/dist/client/assets/{multi-select-QggbYmEM.js → multi-select-CnONER0R.js} +1 -1
- package/dist/client/assets/{oauth-callback-DlXZlUim.js → oauth-callback-DG7a0Ds1.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Bm4nnikq.js → oauth-callback-ai-provider-BMxdaCD6.js} +1 -1
- package/dist/client/assets/{onboarding-DTDowFwi.js → onboarding-BRwDixp2.js} +1 -1
- package/dist/client/assets/{org-layout-DmBDpUpC.js → org-layout-CwyRNglV.js} +1 -1
- package/dist/client/assets/{organization-choice-C3GkCuur.js → organization-choice-CH5_ibJ8.js} +1 -1
- package/dist/client/assets/{orgs-BkdEgrGg.js → orgs-CUeUBKZH.js} +1 -1
- package/dist/client/assets/{page-seo-form-BWmv1i_l.js → page-seo-form-jTU8Qt8Z.js} +1 -1
- package/dist/client/assets/{popover-Cu9UEV_u.js → popover-CijbqDWJ.js} +1 -1
- package/dist/client/assets/{post-calendar-CeWbpcff.js → post-calendar-CsHz5OQ6.js} +1 -1
- package/dist/client/assets/{post-editor-CZdRmZrr.js → post-editor-HDNWiRZ8.js} +1 -1
- package/dist/client/assets/{primitives-Bgl8Sx6-.js → primitives-CiU-hK8h.js} +1 -1
- package/dist/client/assets/{profile-BJUqqLqi.js → profile-Bz5UHnnw.js} +1 -1
- package/dist/client/assets/{project-app-view-DuGQIW1d.js → project-app-view-BBwC_0zD.js} +1 -1
- package/dist/client/assets/{prompts--Ql4R4ND.js → prompts-Buo9nlRd.js} +1 -1
- package/dist/client/assets/record-editor-BI6LBH0X.js +1 -0
- package/dist/client/assets/redirect-editor-mmfzKodo.js +1 -0
- package/dist/client/assets/registry-B6zHWJAa.js +2 -0
- package/dist/client/assets/{registry-layout-HSWG7TVn.js → registry-layout-BfQIr26T.js} +1 -1
- package/dist/client/assets/{reports-C__DtOKv.js → reports-Ci7FOUWs.js} +1 -1
- package/dist/client/assets/{require-capability-C0h4ri-I.js → require-capability-CSKYYmMe.js} +1 -1
- package/dist/client/assets/{required-auth-layout-wP_ZcOt3.js → required-auth-layout-CurkztN4.js} +1 -1
- package/dist/client/assets/{reset-password-qbAVOmE6.js → reset-password-CTA4xur6.js} +1 -1
- package/dist/client/assets/{review-settings-lUv5PAv-.js → review-settings-BSmwSVuN.js} +1 -1
- package/dist/client/assets/{roles-BhVGWgGf.js → roles-Ck1ssVmX.js} +1 -1
- package/dist/client/assets/{scroll-area-GBxskZOi.js → scroll-area-DBxrHjA2.js} +1 -1
- package/dist/client/assets/{search-input-DolyDQ0D.js → search-input-B4M6QQ-e.js} +1 -1
- package/dist/client/assets/{secrets-DO2zmTXn.js → secrets-Dj74Zwyy.js} +1 -1
- package/dist/client/assets/{sections-editor-Dg21t3nm.js → sections-editor-u2NQRmmK.js} +1 -1
- package/dist/client/assets/{select-CEqpOR4I.js → select-D-wxupiY.js} +1 -1
- package/dist/client/assets/{select-model-BXuBl9lt.js → select-model-BKl85W0F.js} +1 -1
- package/dist/client/assets/{self-tool-result-56FC9pG-.js → self-tool-result-95aF9r_U.js} +1 -1
- package/dist/client/assets/{seo-editor-DDoReEYM.js → seo-editor-B3cfw4bZ.js} +1 -1
- package/dist/client/assets/{settings-layout-D3C9flZ0.js → settings-layout-BUiEugGi.js} +1 -1
- package/dist/client/assets/{shell-controls-DMBMkUAT.js → shell-controls-CSjLwT2x.js} +1 -1
- package/dist/client/assets/{shell-layout-B9H3_Uq2.js → shell-layout-o9uMw6a8.js} +1 -1
- package/dist/client/assets/{skill-preview-BgMu1Tuf.js → skill-preview-B-3LEd0T.js} +1 -1
- package/dist/client/assets/{skills-D0VUOhbn.js → skills-DVyNbdu9.js} +1 -1
- package/dist/client/assets/{spinner-C63G_xBe.js → spinner-COT1qXpp.js} +1 -1
- package/dist/client/assets/{sso-CqNppQ8u.js → sso-Cu03cIuK.js} +1 -1
- package/dist/client/assets/{store-8XvDmNAn.js → store-Bn78XKb1.js} +1 -1
- package/dist/client/assets/store-registry-8s6xkx8w.js +2 -0
- package/dist/client/assets/{super-agent-icon-CbMOIvw1.js → super-agent-icon-B1OGtqpe.js} +1 -1
- package/dist/client/assets/{switch-wt-phqIC.js → switch-BK6h8In2.js} +1 -1
- package/dist/client/assets/{synced-repos-B0pETF8q.js → synced-repos-CCzTbvRo.js} +1 -1
- package/dist/client/assets/{table-PyJPW36j.js → table-DzNi3uyR.js} +1 -1
- package/dist/client/assets/{tabs-0uvGPxJL.js → tabs-xEpYCDCP.js} +1 -1
- package/dist/client/assets/{task-board-BgpuHsyE.js → task-board-C-6MJsSG.js} +1 -1
- package/dist/client/assets/{tasks-B1kQKYe2.js → tasks-hZJro9Fa.js} +1 -1
- package/dist/client/assets/{textarea-CXBQGZQw.js → textarea-kgYtgQ0v.js} +1 -1
- package/dist/client/assets/{thread-route-BTrJGxmM.js → thread-route-B1kq5Ea6.js} +1 -1
- package/dist/client/assets/{toggle-group-CXb9sVzx.js → toggle-group-CE79fO6c.js} +1 -1
- package/dist/client/assets/{toolbar-DVxN-f4K.js → toolbar-D0ov_NfD.js} +1 -1
- package/dist/client/assets/{track-B1Q7t6-q.js → track-C_WpJaUq.js} +1 -1
- package/dist/client/assets/{types-CXMAZw5l.js → types-CZPi5BXR.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DKxx94oU.js → use-ai-providers-ZmMLVjtr.js} +1 -1
- package/dist/client/assets/{use-api-keys-Co5QkEI_.js → use-api-keys-JoE_50wu.js} +1 -1
- package/dist/client/assets/{use-automations-BhYq_ZhL.js → use-automations-BuSDFURb.js} +1 -1
- package/dist/client/assets/{use-autosave-CnPrJ-aD.js → use-autosave-DLZ51LsW.js} +1 -1
- package/dist/client/assets/{use-connection-C_t9YYLe.js → use-connection-tbXxawZA.js} +1 -1
- package/dist/client/assets/{use-copy-CoqHh5Xc.js → use-copy-PT1zl44p.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CmLOzAPc.js → use-create-virtual-mcp-ut4kupkD.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-m5uwODsp.js → use-debounced-autosave-6Grvh1pI.js} +1 -1
- package/dist/client/assets/{use-debounced-value-plVEHnvY.js → use-debounced-value-BoEqPWPF.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CiP4Kh5i.js → use-decopilot-events-rOBqAfwv.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BF_53DAx.js → use-delete-connection-Xc8zxGSC.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-0sYpTIs0.js → use-deployment-admin-CTq0785m.js} +1 -1
- package/dist/client/assets/{use-destination-route-BLgMOjQj.js → use-destination-route-CrQXgoeu.js} +1 -1
- package/dist/client/assets/{use-file-configs-DEG0sJ4l.js → use-file-configs-fYdc2Rom.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Ck5qMX6D.js → use-infinite-scroll-DiChJfzU.js} +1 -1
- package/dist/client/assets/{use-join-requests-CO-AFuV2.js → use-join-requests-Dcn5HQUV.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CrmFBt1y.js → use-mcp-auth-status-KOsfoyNu.js} +1 -1
- package/dist/client/assets/{use-mcp-client-D1Hj9q1-.js → use-mcp-client-DTpSd0OR.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-21EElaWf.js → use-mcp-tools-WLR3PyE6.js} +1 -1
- package/dist/client/assets/{use-members-DBYCt9me.js → use-members-BcWAZV4n.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DcZF3Km-.js → use-navigate-to-agent-C3g5As_j.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-uvIpL-iD.js → use-org-auth-client-D9rh2iIs.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-B8PGp5aL.js → use-org-repo-syncs-BxcwxkRp.js} +1 -1
- package/dist/client/assets/{use-org-sso-_q0FeCdL.js → use-org-sso-WwZcClLF.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DKFU3TtV.js → use-organization-roles-0eWwR0pD.js} +1 -1
- package/dist/client/assets/{use-organization-settings-D7mxY1tr.js → use-organization-settings-BxtjKykU.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-CbzayEZt.js → use-panel-navigate-Bd26MwHY.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Cz8LRmvZ.js → use-registry-connections-CY_xGRCK.js} +1 -1
- package/dist/client/assets/{use-secrets-BioJrB-P.js → use-secrets-HKJT1Mvt.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-Kqf02pj4.js → use-section-preview-base-DuldcBXI.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CPW4hPXk.js → use-status-sounds-DI2Ze1w0.js} +1 -1
- package/dist/client/assets/{use-tags-CgniUDH0.js → use-tags-CxQklM88.js} +1 -1
- package/dist/client/assets/{use-view-mode-QWWpr2Kn.js → use-view-mode-Afim3f0F.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CHntC9VD.js → use-virtual-mcp-DkF-epgM.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CoUzFjOk.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-lt3jMZMQ.js +1 -0
- package/dist/client/assets/{users-DiLsLCWV.js → users-CgDDyM7Q.js} +1 -1
- package/dist/client/assets/{variant-calendar-DZRMSYas.js → variant-calendar-BhjNvPHt.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DGGqBHms.js → view-mode-toggle-SzenoYly.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/record-editor-Cir4yC2S.js +0 -1
- package/dist/client/assets/redirect-editor-CiOgn58z.js +0 -1
- package/dist/client/assets/registry-gbaQmZgZ.js +0 -2
- package/dist/client/assets/store-registry-BAMkeFSw.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BYOaE20O.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BWtDDS_d.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as R,r as U,j as a,n as H,B as Y,H as z,ac as Q,K as V,o as oe,p as X,e as Z,b as q,P as te,dx as Te,du as Re,dw as G,dv as le,Y as ce,s as Ae,t as L}from"./index-BupQW6h3.js";import{h as Ie,y as Pe}from"./config-0RV5jbqa.js";import{I as ie}from"./input-CvyH6VMl.js";import{i as me}from"./Check-Dcg2FKZV.js";import{i as ue}from"./ChevronSelectorVertical-Dl7DRzo6.js";import{C as Ee,a as Oe,b as Be,c as De,d as Ke,e as Fe}from"./command-CKTLQGRC.js";import{a as $e,P as Me,b as Le}from"./popover-Cu9UEV_u.js";import{S as qe}from"./switch-wt-phqIC.js";import{c as ge,d as pe,b as je,f as xe,g as he,e as ye,a as be,A as ve}from"./alert-dialog-d8uD9a8_.js";import{S as Se,a as Ne,b as Ce,c as we,d as W}from"./select-CEqpOR4I.js";import{R as Je,A as Ue}from"./review-settings-lUv5PAv-.js";import{t as ze}from"./cards-BYos1pq1.js";import{u as _e}from"./use-organization-settings-D7mxY1tr.js";import{R as Qe}from"./require-capability-C0h4ri-I.js";import"./task-board-BgpuHsyE.js";import"./decopilot-sse-pool-D-_xDWUE.js";import"./backoff-CrEUbyZT.js";import"./use-decopilot-events-CiP4Kh5i.js";import"./AlertCircle-DUXp6ZMI.js";import"./UserSquare-C8JBs3lE.js";import"./CheckCircle-D7xEvCuX.js";import"./DotsVertical-Cjtyl1Nc.js";import"./Eye-DAXRRime.js";import"./Shield01-CB_tKxbK.js";import"./index-dDwrLVht.js";import"./dialog-DxvzvL8Y.js";import"./SearchMd-BnF1xexB.js";import"./ChevronDown-Dzxlhy5S.js";import"./ChevronUp-J_HzECQ0.js";import"./GitBranch01-CV57oF57.js";import"./folder-icon-BWZYzLM4.js";import"./Download01-COm4e46o.js";import"./Share07-9gnUhPo3.js";import"./Globe01-e3tQI5zA.js";import"./Key01-C7xn3HO2.js";import"./Palette-CCa4wgW5.js";import"./Trash01-BQfgf4-j.js";import"./Zap-CiC8bBNg.js";import"./dropdown-menu-6895rlRy.js";import"./ChevronRight-DtCFByai.js";import"./file-type-icon-CnssEJDf.js";import"./constants-dLUUoWH7.js";import"./access-gate-DWxHER1x.js";import"./capability-load-error-DVn80nh-.js";function Ve(t){const e=R.c(41),{options:n,value:s,onChange:l,placeholder:i,triggerClassName:r,contentClassName:o,width:d,renderTrigger:g,renderItem:c,emptyMessage:m,searchPlaceholder:p,filter:j}=t,x=i===void 0?"Select...":i,b=d===void 0?"w-[200px]":d,y=m===void 0?"No results found.":m,v=p===void 0?"Search...":p;let f;e[0]!==s?(f=M=>M.value===s,e[0]=s,e[1]=f):f=e[1];const u=n.find(f),[h,S]=U.useState(!1),C=Me,N=$e,_=!0,k=g?a.jsx("div",{className:H("cursor-pointer",r),children:g(u)}):a.jsxs(Y,{variant:"outline",role:"combobox",className:H("justify-between",b,r),children:[u?u.label:x,a.jsx(ue,{className:"opacity-50"})]});let T;e[2]!==N||e[3]!==k?(T=a.jsx(N,{asChild:_,children:k}),e[2]=N,e[3]=k,e[4]=T):T=e[4];let A;e[5]!==o?(A=H("p-0",o),e[5]=o,e[6]=A):A=e[6];let B;e[7]===Symbol.for("react.memo_cache_sentinel")?(B={width:"var(--radix-popover-trigger-width)"},e[7]=B):B=e[7];let D;e[8]!==v?(D=a.jsx(Ee,{placeholder:v,className:"h-9"}),e[8]=v,e[9]=D):D=e[9];let F;e[10]!==y?(F=a.jsx(Oe,{children:y}),e[10]=y,e[11]=F):F=e[11];let I;if(e[12]!==l||e[13]!==n||e[14]!==c||e[15]!==S||e[16]!==s){let M;e[18]!==l||e[19]!==c||e[20]!==S||e[21]!==s?(M=w=>{const ee=s===w.value;return a.jsx(Be,{value:w.label,onSelect:()=>{l(w.value===s?"":w.value),S(!1)},children:c?c(w,ee):a.jsxs(a.Fragment,{children:[w.label,a.jsx(me,{className:H("ml-auto",ee?"opacity-100":"opacity-0")})]})},w.value)},e[18]=l,e[19]=c,e[20]=S,e[21]=s,e[22]=M):M=e[22],I=n.map(M),e[12]=l,e[13]=n,e[14]=c,e[15]=S,e[16]=s,e[17]=I}else I=e[17];let P;e[23]!==I?(P=a.jsx(De,{children:I}),e[23]=I,e[24]=P):P=e[24];let $;e[25]!==F||e[26]!==P?($=a.jsxs(Ke,{children:[F,P]}),e[25]=F,e[26]=P,e[27]=$):$=e[27];let E;e[28]!==j||e[29]!==D||e[30]!==$?(E=a.jsxs(Fe,{filter:j,children:[D,$]}),e[28]=j,e[29]=D,e[30]=$,e[31]=E):E=e[31];let O;e[32]!==E||e[33]!==A?(O=a.jsx(Le,{className:A,style:B,children:E}),e[32]=E,e[33]=A,e[34]=O):O=e[34];let K;return e[35]!==C||e[36]!==h||e[37]!==S||e[38]!==O||e[39]!==T?(K=a.jsxs(C,{open:h,onOpenChange:S,children:[T,O]}),e[35]=C,e[36]=h,e[37]=S,e[38]=O,e[39]=T,e[40]=K):K=e[40],K}function Ye(t){const e=R.c(4),{size:n,className:s}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx("path",{d:"M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0z"}),e[0]=l):l=e[0];let i;return e[1]!==s||e[2]!==n?(i=a.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"#2684FF","aria-hidden":"true",className:s,children:l}),e[1]=s,e[2]=n,e[3]=i):i=e[3],i}function ke(t){const e=t.projectName?.replace(/\s+/g," ").trim(),n=t.name.trim();return e?{primary:e,secondary:[n,t.projectKey].filter(Boolean).join(" · ")}:{primary:n,secondary:t.projectKey??""}}function Ge(t){const{primary:e,secondary:n}=ke(t);return[e,n,`#${t.id}`].filter(Boolean).join(" ")}function de(t){return t.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase()}function He(t,e){const n=de(e).trim();if(!n)return 1;const s=de(t);return n.split(/\s+/).every(l=>s.includes(l))?1:0}function We(){const t=R.c(7),{org:e}=z(),n=Q();let s;t[0]!==e.id?(s=V.jiraIntegration(e.id),t[0]=e.id,t[1]=s):s=t[1];let l;t[2]!==n?(l=async()=>(await n.call("JIRA_INTEGRATION_GET",{})).integration,t[2]=n,t[3]=l):l=t[3];let i;return t[4]!==s||t[5]!==l?(i={queryKey:s,queryFn:l},t[4]=s,t[5]=l,t[6]=i):i=t[6],oe(i)}function ne(){const t=R.c(8),{org:e}=z(),n=Q(),s=X();let l;t[0]!==n?(l=async o=>(await n.call("JIRA_INTEGRATION_UPSERT",o)).integration,t[0]=n,t[1]=l):l=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:V.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==l||t[6]!==i?(r={mutationFn:l,onSettled:i},t[5]=l,t[6]=i,t[7]=r):r=t[7],Z(r)}function Xe(){const t=R.c(8),{org:e}=z(),n=Q(),s=X();let l;t[0]!==n?(l=()=>n.call("JIRA_INTEGRATION_DELETE",{}),t[0]=n,t[1]=l):l=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:V.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==l||t[6]!==i?(r={mutationFn:l,onSettled:i},t[5]=l,t[6]=i,t[7]=r):r=t[7],Z(r)}function Ze(t){const e=R.c(8),{org:n}=z(),s=Q();let l;e[0]!==n.id?(l=V.jiraBoards(n.id),e[0]=n.id,e[1]=l):l=e[1];let i;e[2]!==s?(i=async()=>(await s.call("JIRA_BOARDS_LIST",{})).boards,e[2]=s,e[3]=i):i=e[3];let r;return e[4]!==t||e[5]!==l||e[6]!==i?(r={queryKey:l,enabled:t,staleTime:6e4,queryFn:i},e[4]=t,e[5]=l,e[6]=i,e[7]=r):r=e[7],oe(r)}function et(t){const e=R.c(10),{org:n}=z(),s=Q();let l;e[0]!==t||e[1]!==n.id?(l=V.jiraBoardColumns(n.id,t??""),e[0]=t,e[1]=n.id,e[2]=l):l=e[2];const i=t!==null;let r;e[3]!==t||e[4]!==s?(r=async()=>(await s.call("JIRA_BOARD_COLUMNS_LIST",{boardId:t??""})).columns,e[3]=t,e[4]=s,e[5]=r):r=e[5];let o;return e[6]!==l||e[7]!==i||e[8]!==r?(o={queryKey:l,enabled:i,staleTime:6e4,queryFn:r},e[6]=l,e[7]=i,e[8]=r,e[9]=o):o=e[9],oe(o)}function tt(){const t=R.c(8),{org:e}=z(),n=Q(),s=X();let l;t[0]!==n?(l=async()=>(await n.call("JIRA_SYNC_RUN",{})).result,t[0]=n,t[1]=l):l=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:V.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==l||t[6]!==i?(r={mutationFn:l,onSettled:i},t[5]=l,t[6]=i,t[7]=r):r=t[7],Z(r)}function st(){const t=R.c(8),{org:e}=z(),n=Q(),s=X();let l;t[0]!==n?(l=async()=>await n.call("JIRA_RESYNC_REQUEST",{}),t[0]=n,t[1]=l):l=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:V.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==l||t[6]!==i?(r={mutationFn:l,onSettled:i},t[5]=l,t[6]=i,t[7]=r):r=t[7],Z(r)}function it(){const t=R.c(8),{locator:e}=z(),n=Q(),s=X();let l;t[0]!==n?(l=async o=>await n.call("TASK_BOARD_COLUMN_ROLE_SET",{columnKey:o.columnKey,role:o.role}),t[0]=n,t[1]=l):l=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:V.taskBoardItems(e)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==l||t[6]!==i?(r={mutationFn:l,onSettled:i},t[5]=l,t[6]=i,t[7]=r):r=t[7],Z(r)}function se(t,e){const n=e.statuses[0];if(n)return Object.entries(t).find(([,s])=>s.includes(n))?.[0]}const fe=[{value:"triage",labelKey:"taskBoard.config.statusBacklog"},{value:"todo",labelKey:"taskBoard.config.statusTodo"},{value:"in_progress",labelKey:"taskBoard.config.statusInProgress"},{value:"in_review",labelKey:"taskBoard.config.statusInReview"},{value:"approved",labelKey:"taskBoard.config.statusApproved"},{value:"merged",labelKey:"taskBoard.config.statusMerged"},{value:"post_deploy_validation",labelKey:"taskBoard.config.statusPostDeployValidation"},{value:"done",labelKey:"taskBoard.config.statusDone"},{value:"archived",labelKey:"taskBoard.config.statusArchived"}];function nt(t,e){return t?fe:fe.filter(n=>!Pe(n.value)||n.value===e)}const ae="__dont_sync__";function J(t,e){return t instanceof Error?t.message:e}const lt="https://id.atlassian.com/manage-profile/security/api-tokens";function at(t){const e=R.c(7),{stepKeys:n}=t,s=q();let l;if(e[0]!==n||e[1]!==s){let r;e[3]!==s?(r=o=>a.jsx("li",{children:s(o)},o),e[3]=s,e[4]=r):r=e[4],l=n.map(r),e[0]=n,e[1]=s,e[2]=l}else l=e[2];let i;return e[5]!==l?(i=a.jsx("ol",{className:"list-decimal pl-5 flex flex-col gap-1 text-xs text-muted-foreground",children:l}),e[5]=l,e[6]=i):i=e[6],i}function rt(){const t=R.c(69),e=q(),n=ne(),[s,l]=U.useState(""),[i,r]=U.useState(""),[o,d]=U.useState("");let g;t[0]!==o||t[1]!==i||t[2]!==s?(g=s.trim()!==""&&i.trim()!==""&&o.trim()!=="",t[0]=o,t[1]=i,t[2]=s,t[3]=g):g=t[3];const c=g;let m;t[4]!==e?(m=e("settings.jira.siteLabel"),t[4]=e,t[5]=m):m=t[5];let p;t[6]!==m?(p=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:m}),t[6]=m,t[7]=p):p=t[7];let j;t[8]===Symbol.for("react.memo_cache_sentinel")?(j=w=>l(w.target.value),t[8]=j):j=t[8];let x;t[9]!==e?(x=e("settings.jira.sitePlaceholder"),t[9]=e,t[10]=x):x=t[10];let b;t[11]!==s||t[12]!==x?(b=a.jsx(ie,{value:s,onChange:j,placeholder:x,autoComplete:"off"}),t[11]=s,t[12]=x,t[13]=b):b=t[13];let y;t[14]!==p||t[15]!==b?(y=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[p,b]}),t[14]=p,t[15]=b,t[16]=y):y=t[16];let v;t[17]!==e?(v=e("settings.jira.emailLabel"),t[17]=e,t[18]=v):v=t[18];let f;t[19]!==v?(f=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:v}),t[19]=v,t[20]=f):f=t[20];let u;t[21]===Symbol.for("react.memo_cache_sentinel")?(u=w=>r(w.target.value),t[21]=u):u=t[21];let h;t[22]!==e?(h=e("settings.jira.emailPlaceholder"),t[22]=e,t[23]=h):h=t[23];let S;t[24]!==i||t[25]!==h?(S=a.jsx(ie,{value:i,onChange:u,placeholder:h,autoComplete:"off"}),t[24]=i,t[25]=h,t[26]=S):S=t[26];let C;t[27]!==S||t[28]!==f?(C=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[f,S]}),t[27]=S,t[28]=f,t[29]=C):C=t[29];let N;t[30]!==e?(N=e("settings.jira.tokenLabel"),t[30]=e,t[31]=N):N=t[31];let _;t[32]!==N?(_=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:N}),t[32]=N,t[33]=_):_=t[33];let k;t[34]!==e?(k=e("settings.jira.createTokenLink"),t[34]=e,t[35]=k):k=t[35];let T;t[36]===Symbol.for("react.memo_cache_sentinel")?(T=a.jsx(Ae,{size:12}),t[36]=T):T=t[36];let A;t[37]!==k?(A=a.jsxs("a",{href:lt,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 text-xs text-foreground hover:underline",children:[k,T]}),t[37]=k,t[38]=A):A=t[38];let B;t[39]!==_||t[40]!==A?(B=a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[_,A]}),t[39]=_,t[40]=A,t[41]=B):B=t[41];let D;t[42]===Symbol.for("react.memo_cache_sentinel")?(D=w=>d(w.target.value),t[42]=D):D=t[42];let F;t[43]!==e?(F=e("settings.jira.tokenPlaceholder"),t[43]=e,t[44]=F):F=t[44];let I;t[45]!==o||t[46]!==F?(I=a.jsx(ie,{type:"password",value:o,onChange:D,placeholder:F,autoComplete:"off"}),t[45]=o,t[46]=F,t[47]=I):I=t[47];let P;t[48]!==B||t[49]!==I?(P=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[B,I]}),t[48]=B,t[49]=I,t[50]=P):P=t[50];const $=!c||n.isPending;let E;t[51]!==o||t[52]!==i||t[53]!==s||t[54]!==e||t[55]!==n?(E=()=>n.mutate({siteUrl:s.trim(),email:i.trim(),apiToken:o.trim()},{onSuccess:()=>L.success(e("settings.jira.connected")),onError:w=>L.error(J(w,e("settings.jira.connectFailed")))}),t[51]=o,t[52]=i,t[53]=s,t[54]=e,t[55]=n,t[56]=E):E=t[56];let O;t[57]!==e||t[58]!==n.isPending?(O=n.isPending?e("settings.jira.connecting"):e("settings.jira.connect"),t[57]=e,t[58]=n.isPending,t[59]=O):O=t[59];let K;t[60]!==$||t[61]!==E||t[62]!==O?(K=a.jsx(Y,{size:"sm",className:"w-fit",disabled:$,onClick:E,children:O}),t[60]=$,t[61]=E,t[62]=O,t[63]=K):K=t[63];let M;return t[64]!==C||t[65]!==P||t[66]!==K||t[67]!==y?(M=a.jsxs("div",{className:"flex flex-col gap-4 mt-3 max-w-md",children:[y,C,P,K]}),t[64]=C,t[65]=P,t[66]=K,t[67]=y,t[68]=M):M=t[68],M}function ot(t){const e=R.c(7),{integration:n}=t,s=q();if(n.lastSyncError){let r;return e[0]!==n.lastSyncError?(r=a.jsx("p",{className:"text-xs text-destructive truncate",children:n.lastSyncError}),e[0]=n.lastSyncError,e[1]=r):r=e[1],r}let l;e[2]!==n.lastSyncedAt||e[3]!==s?(l=n.lastSyncedAt?s("settings.jira.lastSynced",{ago:ze(n.lastSyncedAt)}):s("settings.jira.waitingFirstSync"),e[2]=n.lastSyncedAt,e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==l?(i=a.jsx("p",{className:"text-xs text-muted-foreground",children:l}),e[5]=l,e[6]=i):i=e[6],i}const re="__none__";function ct(){const t=R.c(14),e=q(),{columns:n,isLoading:s}=Ie(),l=it();if(s){let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(ce,{className:"h-24 w-full mt-3"}),t[0]=o):o=t[0],o}if(n.length===0){let o;t[1]!==e?(o=e("settings.jira.noColumnsYet"),t[1]=e,t[2]=o):o=t[2];let d;return t[3]!==o?(d=a.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:o}),t[3]=o,t[4]=d):d=t[4],d}let i;if(t[5]!==n||t[6]!==l||t[7]!==e){let o;t[9]!==l||t[10]!==e?(o=d=>a.jsxs("div",{className:"flex items-center justify-between gap-4 py-2.5 border-b border-border/60 last:border-b-0",children:[a.jsx("span",{className:"min-w-0 truncate text-sm",children:d.title}),a.jsxs(Se,{value:d.role??re,onValueChange:g=>l.mutate({columnKey:d.key,role:g===re?null:g},{onError:c=>L.error(J(c,e("settings.jira.saveFailed")))}),children:[a.jsx(Ne,{className:"w-44 shrink-0",children:a.jsx(Ce,{})}),a.jsxs(we,{children:[a.jsx(W,{value:re,children:e("settings.jira.roleNone")}),a.jsx(W,{value:"in_review",children:e("settings.jira.roleInReview")}),a.jsx(W,{value:"archived",children:e("settings.jira.roleArchived")})]})]})]},d.key),t[9]=l,t[10]=e,t[11]=o):o=t[11],i=n.map(o),t[5]=n,t[6]=l,t[7]=e,t[8]=i}else i=t[8];let r;return t[12]!==i?(r=a.jsx("div",{className:"flex flex-col mt-3",children:i}),t[12]=i,t[13]=r):r=t[13],r}function dt(t){const e=R.c(35),{integration:n}=t,s=q(),l=ne(),i=et(n.boardId),r=_e("delivery_lanes_enabled"),[o,d]=U.useState(n.statusMapping),[g,c]=U.useState(n);if(g!==n&&(c(n),d(n.statusMapping)),i.isPending){let f;return e[0]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsx(ce,{className:"h-24 w-full mt-3"}),e[0]=f):f=e[0],f}if(i.isError){let f;e[1]!==i.error||e[2]!==s?(f=J(i.error,s("settings.jira.columnsFailed")),e[1]=i.error,e[2]=s,e[3]=f):f=e[3];let u;return e[4]!==f?(u=a.jsx("p",{className:"text-xs text-destructive mt-3",children:f}),e[4]=f,e[5]=u):u=e[5],u}let m;e[6]!==i.data||e[7]!==o||e[8]!==s||e[9]!==l?(m=function(u,h){const S=o,C={};for(const N of i.data??[]){const _=N.name===u.name?h===ae?void 0:h:se(o,N);_&&(C[_]=[...C[_]??[],...N.statuses])}d(C),l.mutate({statusMapping:C},{onError:N=>{d(S),L.error(J(N,s("settings.jira.saveFailed")))}})},e[6]=i.data,e[7]=o,e[8]=s,e[9]=l,e[10]=m):m=e[10];const p=m;let j,x;if(e[11]!==i.data||e[12]!==o||e[13]!==s){let f;e[16]!==o?(f=h=>!se(o,h),e[16]=o,e[17]=f):f=e[17];const u=(i.data??[]).filter(f);j="flex flex-col mt-3",x=u.length>0&&a.jsx("p",{className:"mb-2 rounded-md bg-warning/10 px-3 py-2 text-xs text-warning",children:s("settings.jira.unmappedWarning",{columns:u.map(ft).join(", ")})}),e[11]=i.data,e[12]=o,e[13]=s,e[14]=j,e[15]=x}else j=e[14],x=e[15];let b;e[18]!==i.data?(b=i.data??[],e[18]=i.data,e[19]=b):b=e[19];let y;if(e[20]!==r||e[21]!==o||e[22]!==p||e[23]!==s||e[24]!==b){let f;e[26]!==r||e[27]!==o||e[28]!==p||e[29]!==s?(f=u=>a.jsxs("div",{className:"flex items-center justify-between gap-4 py-2.5 border-b border-border/60 last:border-b-0",children:[a.jsxs("div",{className:"min-w-0",children:[a.jsx("span",{className:"text-sm truncate",children:u.name}),(u.statuses.length>1||u.statuses[0]!==u.name)&&a.jsx("p",{className:"text-xs text-muted-foreground truncate",children:u.statuses.join(", ")})]}),a.jsxs(Se,{value:se(o,u)??ae,onValueChange:h=>p(u,h),children:[a.jsx(Ne,{className:"w-44 shrink-0",children:a.jsx(Ce,{})}),a.jsxs(we,{children:[a.jsx(W,{value:ae,children:s("settings.jira.dontSync")}),nt(r,se(o,u)).map(h=>a.jsx(W,{value:h.value,children:s(h.labelKey)},h.value))]})]})]},u.name),e[26]=r,e[27]=o,e[28]=p,e[29]=s,e[30]=f):f=e[30],y=b.map(f),e[20]=r,e[21]=o,e[22]=p,e[23]=s,e[24]=b,e[25]=y}else y=e[25];let v;return e[31]!==j||e[32]!==x||e[33]!==y?(v=a.jsxs("div",{className:j,children:[x,y]}),e[31]=j,e[32]=x,e[33]=y,e[34]=v):v=e[34],v}function ft(t){return t.name}function mt(t){const e=R.c(44),{integration:n}=t,s=q(),l=Xe(),[i,r]=U.useState(!1),o=n.siteUrl,d=n.email;let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=()=>r(!0),e[0]=g):g=e[0];let c;e[1]!==s?(c=s("settings.jira.disconnect"),e[1]=s,e[2]=c):c=e[2];let m;e[3]!==c?(m=a.jsx(Y,{variant:"outline",size:"sm",onClick:g,children:c}),e[3]=c,e[4]=m):m=e[4];let p;e[5]!==n.email||e[6]!==n.siteUrl||e[7]!==m?(p=a.jsx(G,{title:o,description:d,action:m}),e[5]=n.email,e[6]=n.siteUrl,e[7]=m,e[8]=p):p=e[8];let j;e[9]!==s?(j=s("settings.jira.disconnectTitle"),e[9]=s,e[10]=j):j=e[10];let x;e[11]!==j?(x=a.jsx(ge,{children:j}),e[11]=j,e[12]=x):x=e[12];let b;e[13]!==s?(b=s("settings.jira.disconnectDescription"),e[13]=s,e[14]=b):b=e[14];let y;e[15]!==b?(y=a.jsx(pe,{children:b}),e[15]=b,e[16]=y):y=e[16];let v;e[17]!==y||e[18]!==x?(v=a.jsxs(je,{children:[x,y]}),e[17]=y,e[18]=x,e[19]=v):v=e[19];let f;e[20]!==s?(f=s("settings.jira.cancel"),e[20]=s,e[21]=f):f=e[21];let u;e[22]!==f?(u=a.jsx(xe,{children:f}),e[22]=f,e[23]=u):u=e[23];let h;e[24]!==l||e[25]!==s?(h=()=>l.mutate(void 0,{onSuccess:()=>L.success(s("settings.jira.disconnected")),onError:A=>L.error(J(A,s("settings.jira.saveFailed")))}),e[24]=l,e[25]=s,e[26]=h):h=e[26];let S;e[27]!==s?(S=s("settings.jira.disconnect"),e[27]=s,e[28]=S):S=e[28];let C;e[29]!==h||e[30]!==S?(C=a.jsx(he,{onClick:h,children:S}),e[29]=h,e[30]=S,e[31]=C):C=e[31];let N;e[32]!==u||e[33]!==C?(N=a.jsxs(ye,{children:[u,C]}),e[32]=u,e[33]=C,e[34]=N):N=e[34];let _;e[35]!==v||e[36]!==N?(_=a.jsxs(be,{children:[v,N]}),e[35]=v,e[36]=N,e[37]=_):_=e[37];let k;e[38]!==i||e[39]!==_?(k=a.jsx(ve,{open:i,onOpenChange:r,children:_}),e[38]=i,e[39]=_,e[40]=k):k=e[40];let T;return e[41]!==k||e[42]!==p?(T=a.jsxs(a.Fragment,{children:[p,k]}),e[41]=k,e[42]=p,e[43]=T):T=e[43],T}function ut(t){const e=R.c(36),{integration:n}=t,s=q(),l=ne(),i=Ze(!0);let r,o;e[0]!==i.data||e[1]!==n.boardId||e[2]!==n.boardName?(r=(i.data??[]).map(pt),o=n.boardId?r.find(u=>u.value===n.boardId)?.primary??n.boardName??n.boardId:null,e[0]=i.data,e[1]=n.boardId,e[2]=n.boardName,e[3]=r,e[4]=o):(r=e[3],o=e[4]);const d=o;let g;e[5]!==s?(g=s("settings.jira.boardLabel"),e[5]=s,e[6]=g):g=e[6];let c;e[7]!==s?(c=s("settings.jira.boardDescription"),e[7]=s,e[8]=c):c=e[8];const m=n.boardId??"";let p;e[9]!==s?(p=s("settings.jira.boardPlaceholder"),e[9]=s,e[10]=p):p=e[10];let j;e[11]!==s?(j=s("settings.jira.boardSearchPlaceholder"),e[11]=s,e[12]=j):j=e[12];let x;e[13]!==i.isPending||e[14]!==s?(x=i.isPending?s("settings.jira.loadingBoards"):s("settings.jira.noBoardsMatch"),e[13]=i.isPending,e[14]=s,e[15]=x):x=e[15];let b;e[16]!==d||e[17]!==s?(b=()=>a.jsxs(Y,{variant:"outline",role:"combobox",className:"w-72 justify-between font-normal",children:[a.jsx("span",{className:"truncate",children:d??s("settings.jira.boardPlaceholder")}),a.jsx(ue,{className:"opacity-50 shrink-0"})]}),e[16]=d,e[17]=s,e[18]=b):b=e[18];let y;e[19]!==r||e[20]!==n.boardId||e[21]!==s||e[22]!==l?(y=u=>{!u||u===n.boardId||l.mutate({boardId:u,boardName:r.find(h=>h.value===u)?.primary??null,statusMapping:{},enabled:!1},{onError:h=>L.error(J(h,s("settings.jira.saveFailed")))})},e[19]=r,e[20]=n.boardId,e[21]=s,e[22]=l,e[23]=y):y=e[23];let v;e[24]!==r||e[25]!==m||e[26]!==p||e[27]!==j||e[28]!==x||e[29]!==b||e[30]!==y?(v=a.jsx(Ve,{options:r,value:m,width:"w-72",triggerClassName:"shrink-0",placeholder:p,searchPlaceholder:j,filter:He,emptyMessage:x,renderTrigger:b,renderItem:gt,onChange:y}),e[24]=r,e[25]=m,e[26]=p,e[27]=j,e[28]=x,e[29]=b,e[30]=y,e[31]=v):v=e[31];let f;return e[32]!==v||e[33]!==g||e[34]!==c?(f=a.jsx(G,{title:g,description:c,action:v}),e[32]=v,e[33]=g,e[34]=c,e[35]=f):f=e[35],f}function gt(t,e){return a.jsxs("div",{className:"flex items-start gap-2 min-w-0 w-full",children:[a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("p",{className:"truncate",children:t.primary}),a.jsx("p",{className:"text-xs text-muted-foreground truncate",children:t.secondary})]}),a.jsx(me,{className:H("mt-0.5 shrink-0",e?"opacity-100":"opacity-0")})]})}function pt(t){const{primary:e,secondary:n}=ke(t);return{value:String(t.id),label:Ge(t),primary:e,secondary:n}}function jt(t){const e=R.c(13),{integration:n}=t,s=q(),l=_e("org_board_columns");let i;e[0]!==l||e[1]!==s?(i=s(l?"settings.jira.rolesLabel":"settings.jira.mappingLabel"),e[0]=l,e[1]=s,e[2]=i):i=e[2];let r;e[3]!==l||e[4]!==s?(r=s(l?"settings.jira.rolesDescription":"settings.jira.mappingDescription"),e[3]=l,e[4]=s,e[5]=r):r=e[5];let o;e[6]!==n||e[7]!==l?(o=l?a.jsx(ct,{}):a.jsx(dt,{integration:n}),e[6]=n,e[7]=l,e[8]=o):o=e[8];let d;return e[9]!==i||e[10]!==r||e[11]!==o?(d=a.jsx(G,{title:i,description:r,children:o}),e[9]=i,e[10]=r,e[11]=o,e[12]=d):d=e[12],d}function xt(t){const e=R.c(72),{integration:n}=t,s=q(),l=ne(),i=tt(),r=st(),[o,d]=U.useState(!1);let g;e[0]!==n.statusMapping?(g=Object.keys(n.statusMapping),e[0]=n.statusMapping,e[1]=g):g=e[1];const c=g.length>0;let m;e[2]!==s?(m=s("settings.jira.enableLabel"),e[2]=s,e[3]=m):m=e[3];let p;e[4]!==n?(p=a.jsx(ot,{integration:n}),e[4]=n,e[5]=p):p=e[5];const j=!n.enabled||i.isPending||r.isPending;let x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=()=>d(!0),e[6]=x):x=e[6];let b;e[7]!==s?(b=s("settings.jira.resyncAll"),e[7]=s,e[8]=b):b=e[8];let y;e[9]!==j||e[10]!==b?(y=a.jsx(Y,{variant:"outline",size:"sm",disabled:j,onClick:x,children:b}),e[9]=j,e[10]=b,e[11]=y):y=e[11];let v;e[12]!==s?(v=s("settings.jira.resyncAllTitle"),e[12]=s,e[13]=v):v=e[13];let f;e[14]!==v?(f=a.jsx(ge,{children:v}),e[14]=v,e[15]=f):f=e[15];let u;e[16]!==s?(u=s("settings.jira.resyncAllDescription"),e[16]=s,e[17]=u):u=e[17];let h;e[18]!==u?(h=a.jsx(pe,{children:u}),e[18]=u,e[19]=h):h=e[19];let S;e[20]!==h||e[21]!==f?(S=a.jsxs(je,{children:[f,h]}),e[20]=h,e[21]=f,e[22]=S):S=e[22];let C;e[23]!==s?(C=s("settings.jira.cancel"),e[23]=s,e[24]=C):C=e[24];let N;e[25]!==C?(N=a.jsx(xe,{children:C}),e[25]=C,e[26]=N):N=e[26];let _;e[27]!==r||e[28]!==s?(_=()=>r.mutate(void 0,{onSuccess:()=>L.success(s("settings.jira.resyncAllQueued")),onError:w=>L.error(J(w,s("settings.jira.syncFailed")))}),e[27]=r,e[28]=s,e[29]=_):_=e[29];let k;e[30]!==s?(k=s("settings.jira.resyncAll"),e[30]=s,e[31]=k):k=e[31];let T;e[32]!==_||e[33]!==k?(T=a.jsx(he,{onClick:_,children:k}),e[32]=_,e[33]=k,e[34]=T):T=e[34];let A;e[35]!==N||e[36]!==T?(A=a.jsxs(ye,{children:[N,T]}),e[35]=N,e[36]=T,e[37]=A):A=e[37];let B;e[38]!==S||e[39]!==A?(B=a.jsxs(be,{children:[S,A]}),e[38]=S,e[39]=A,e[40]=B):B=e[40];let D;e[41]!==o||e[42]!==B||e[43]!==y?(D=a.jsxs(ve,{open:o,onOpenChange:d,children:[y,B]}),e[41]=o,e[42]=B,e[43]=y,e[44]=D):D=e[44];const F=!n.enabled||i.isPending;let I;e[45]!==i||e[46]!==s?(I=()=>i.mutate(void 0,{onSuccess:w=>{"error"in w?L.error(w.error):L.success(s("settings.jira.syncDone",{created:String(w.created),updated:String(w.updated),archived:String(w.archived)}))},onError:w=>L.error(J(w,s("settings.jira.syncFailed")))}),e[45]=i,e[46]=s,e[47]=I):I=e[47];let P;e[48]!==i.isPending||e[49]!==s?(P=i.isPending?s("settings.jira.syncing"):s("settings.jira.syncNow"),e[48]=i.isPending,e[49]=s,e[50]=P):P=e[50];let $;e[51]!==F||e[52]!==I||e[53]!==P?($=a.jsx(Y,{variant:"outline",size:"sm",disabled:F,onClick:I,children:P}),e[51]=F,e[52]=I,e[53]=P,e[54]=$):$=e[54];let E;e[55]!==c||e[56]!==n.boardId||e[57]!==s||e[58]!==l?(E=w=>{if(w&&(!n.boardId||!c)){L.error(s("settings.jira.enableRequirements"));return}l.mutate({enabled:w},{onError:ee=>L.error(J(ee,s("settings.jira.saveFailed")))})},e[55]=c,e[56]=n.boardId,e[57]=s,e[58]=l,e[59]=E):E=e[59];let O;e[60]!==n.enabled||e[61]!==E||e[62]!==l.isPending?(O=a.jsx(qe,{checked:n.enabled,disabled:l.isPending,onCheckedChange:E}),e[60]=n.enabled,e[61]=E,e[62]=l.isPending,e[63]=O):O=e[63];let K;e[64]!==D||e[65]!==$||e[66]!==O?(K=a.jsxs("div",{className:"flex items-center gap-3",children:[D,$,O]}),e[64]=D,e[65]=$,e[66]=O,e[67]=K):K=e[67];let M;return e[68]!==m||e[69]!==K||e[70]!==p?(M=a.jsx(G,{title:m,description:p,action:K}),e[68]=m,e[69]=K,e[70]=p,e[71]=M):M=e[71],M}function ht(t){const e=R.c(24),{integration:n}=t,s=q(),l=`${window.location.origin}/api/_jira/webhook/${n.webhookSecret}`;let i;e[0]!==s?(i=s("settings.jira.webhookTitle"),e[0]=s,e[1]=i):i=e[1];let r;e[2]!==s?(r=s("settings.jira.webhookDescription"),e[2]=s,e[3]=r):r=e[3];let o;e[4]!==l?(o=a.jsx(ie,{readOnly:!0,value:l,className:"font-mono text-xs"}),e[4]=l,e[5]=o):o=e[5];let d;e[6]!==s||e[7]!==l?(d=()=>{navigator.clipboard.writeText(l),L.success(s("settings.jira.webhookCopied"))},e[6]=s,e[7]=l,e[8]=d):d=e[8];let g;e[9]!==s?(g=s("settings.jira.webhookCopy"),e[9]=s,e[10]=g):g=e[10];let c;e[11]!==d||e[12]!==g?(c=a.jsx(Y,{variant:"outline",size:"sm",className:"shrink-0",onClick:d,children:g}),e[11]=d,e[12]=g,e[13]=c):c=e[13];let m;e[14]!==o||e[15]!==c?(m=a.jsxs("div",{className:"flex items-center gap-2",children:[o,c]}),e[14]=o,e[15]=c,e[16]=m):m=e[16];let p;e[17]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(at,{stepKeys:["settings.jira.webhookStep1","settings.jira.webhookStep2","settings.jira.webhookStep3","settings.jira.webhookStep4","settings.jira.webhookStep5"]}),e[17]=p):p=e[17];let j;e[18]!==m?(j=a.jsxs("div",{className:"flex flex-col gap-3 mt-3",children:[m,p]}),e[18]=m,e[19]=j):j=e[19];let x;return e[20]!==i||e[21]!==r||e[22]!==j?(x=a.jsx(G,{title:i,description:r,children:j}),e[20]=i,e[21]=r,e[22]=j,e[23]=x):x=e[23],x}function yt(){const t=R.c(22),e=q(),n=We();if(n.isPending){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(le,{children:a.jsx("div",{className:"p-4",children:a.jsx(ce,{className:"h-40 w-full"})})}),t[0]=c):c=t[0],c}if(!n.data){let c;t[1]!==e?(c=e("settings.jira.connectTitle"),t[1]=e,t[2]=c):c=t[2];let m;t[3]!==e?(m=e("settings.jira.connectDescription"),t[3]=e,t[4]=m):m=t[4];let p;t[5]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(rt,{}),t[5]=p):p=t[5];let j;return t[6]!==c||t[7]!==m?(j=a.jsx(le,{children:a.jsx(G,{title:c,description:m,children:p})}),t[6]=c,t[7]=m,t[8]=j):j=t[8],j}const s=n.data;let l,i,r;t[9]!==s?(l=a.jsx(mt,{integration:s}),i=a.jsx(ut,{integration:s}),r=s.boardId&&a.jsx(jt,{integration:s}),t[9]=s,t[10]=l,t[11]=i,t[12]=r):(l=t[10],i=t[11],r=t[12]);let o,d;t[13]!==s?(o=a.jsx(xt,{integration:s}),d=a.jsx(ht,{integration:s}),t[13]=s,t[14]=o,t[15]=d):(o=t[14],d=t[15]);let g;return t[16]!==l||t[17]!==i||t[18]!==r||t[19]!==o||t[20]!==d?(g=a.jsxs(le,{children:[l,i,r,o,d]}),t[16]=l,t[17]=i,t[18]=r,t[19]=o,t[20]=d,t[21]=g):g=t[21],g}function bt(){const t=R.c(17),e=q();let n;t[0]!==e?(n=e("settings.nav.tasks"),t[0]=e,t[1]=n):n=t[1];let s;t[2]!==n?(s=a.jsx(te.Title,{children:n}),t[2]=n,t[3]=s):s=t[3];let l,i;t[4]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(Je,{}),i=a.jsx(Ue,{}),t[4]=l,t[5]=i):(l=t[4],i=t[5]);let r;t[6]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Ye,{size:18}),t[6]=r):r=t[6];let o;t[7]!==e?(o=e("settings.jira.sectionTitle"),t[7]=e,t[8]=o):o=t[8];let d;t[9]!==o?(d=a.jsxs("span",{className:"flex items-center gap-2",children:[r,o]}),t[9]=o,t[10]=d):d=t[10];let g;t[11]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(yt,{}),t[11]=g):g=t[11];let c;t[12]!==d?(c=a.jsx(Re,{title:d,children:g}),t[12]=d,t[13]=c):c=t[13];let m;return t[14]!==s||t[15]!==c?(m=a.jsx(te,{children:a.jsx(te.Content,{children:a.jsx(te.Body,{children:a.jsxs(Te,{children:[s,l,i,c]})})})}),t[14]=s,t[15]=c,t[16]=m):m=t[16],m}function fs(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(Qe,{capability:"org:manage",area:"settings",children:a.jsx(bt,{})}),t[0]=e):e=t[0],e}export{fs as default};
|
|
1
|
+
import{c as R,r as U,j as a,n as H,B as Y,H as z,ac as Q,K as V,o as oe,p as X,e as Z,b as q,P as te,dx as Te,du as Re,dw as G,dv as le,Y as ce,s as Ae,t as L}from"./index-CqYwCEJB.js";import{h as Ie,y as Pe}from"./config-B1OTMfz_.js";import{I as ie}from"./input-OX6HIlPh.js";import{i as me}from"./Check-wBaW66G-.js";import{i as ue}from"./ChevronSelectorVertical-CNJYSndt.js";import{C as Ee,a as Oe,b as Be,c as De,d as Ke,e as Fe}from"./command-imFFxkWB.js";import{a as $e,P as Me,b as Le}from"./popover-CijbqDWJ.js";import{S as qe}from"./switch-BK6h8In2.js";import{c as ge,d as pe,b as je,f as xe,g as he,e as ye,a as be,A as ve}from"./alert-dialog-ClFGnSbS.js";import{S as Se,a as Ne,b as Ce,c as we,d as W}from"./select-D-wxupiY.js";import{R as Je,A as Ue}from"./review-settings-BSmwSVuN.js";import{t as ze}from"./cards-CQvmEd1A.js";import{u as _e}from"./use-organization-settings-BxtjKykU.js";import{R as Qe}from"./require-capability-CSKYYmMe.js";import"./task-board-C-6MJsSG.js";import"./decopilot-sse-pool-DjmIqnOP.js";import"./backoff-CrEUbyZT.js";import"./use-decopilot-events-rOBqAfwv.js";import"./AlertCircle-DHh1PfjG.js";import"./UserSquare-BnqWtXra.js";import"./CheckCircle-IsvkJ4bm.js";import"./DotsVertical-PJAwR6yV.js";import"./Eye-BtvpunKY.js";import"./Shield01-takhSBBv.js";import"./index-C6JeKvEX.js";import"./dialog-CuFyb00o.js";import"./SearchMd-DjyJfMpl.js";import"./ChevronDown-BgL_uS0k.js";import"./ChevronUp-CH3Gpcfa.js";import"./GitBranch01-Gl4XOf-O.js";import"./folder-icon-DIUadLc3.js";import"./Download01-Dq_Unryt.js";import"./Share07-DJSE5SFv.js";import"./Globe01-TkTVNTBx.js";import"./Key01-UDx6YjlZ.js";import"./Palette-DkAHxVri.js";import"./Trash01-B00Q74ug.js";import"./Zap-Bht2IlJK.js";import"./dropdown-menu-Bc2xCCCn.js";import"./ChevronRight-BlkCcJKu.js";import"./file-type-icon-Ct79HPTc.js";import"./constants-dLUUoWH7.js";import"./access-gate-BfcBgt43.js";import"./capability-load-error-Cn9thnjX.js";function Ve(t){const e=R.c(41),{options:n,value:s,onChange:l,placeholder:i,triggerClassName:r,contentClassName:o,width:d,renderTrigger:g,renderItem:c,emptyMessage:m,searchPlaceholder:p,filter:j}=t,x=i===void 0?"Select...":i,b=d===void 0?"w-[200px]":d,y=m===void 0?"No results found.":m,v=p===void 0?"Search...":p;let f;e[0]!==s?(f=M=>M.value===s,e[0]=s,e[1]=f):f=e[1];const u=n.find(f),[h,S]=U.useState(!1),C=Me,N=$e,_=!0,k=g?a.jsx("div",{className:H("cursor-pointer",r),children:g(u)}):a.jsxs(Y,{variant:"outline",role:"combobox",className:H("justify-between",b,r),children:[u?u.label:x,a.jsx(ue,{className:"opacity-50"})]});let T;e[2]!==N||e[3]!==k?(T=a.jsx(N,{asChild:_,children:k}),e[2]=N,e[3]=k,e[4]=T):T=e[4];let A;e[5]!==o?(A=H("p-0",o),e[5]=o,e[6]=A):A=e[6];let B;e[7]===Symbol.for("react.memo_cache_sentinel")?(B={width:"var(--radix-popover-trigger-width)"},e[7]=B):B=e[7];let D;e[8]!==v?(D=a.jsx(Ee,{placeholder:v,className:"h-9"}),e[8]=v,e[9]=D):D=e[9];let F;e[10]!==y?(F=a.jsx(Oe,{children:y}),e[10]=y,e[11]=F):F=e[11];let I;if(e[12]!==l||e[13]!==n||e[14]!==c||e[15]!==S||e[16]!==s){let M;e[18]!==l||e[19]!==c||e[20]!==S||e[21]!==s?(M=w=>{const ee=s===w.value;return a.jsx(Be,{value:w.label,onSelect:()=>{l(w.value===s?"":w.value),S(!1)},children:c?c(w,ee):a.jsxs(a.Fragment,{children:[w.label,a.jsx(me,{className:H("ml-auto",ee?"opacity-100":"opacity-0")})]})},w.value)},e[18]=l,e[19]=c,e[20]=S,e[21]=s,e[22]=M):M=e[22],I=n.map(M),e[12]=l,e[13]=n,e[14]=c,e[15]=S,e[16]=s,e[17]=I}else I=e[17];let P;e[23]!==I?(P=a.jsx(De,{children:I}),e[23]=I,e[24]=P):P=e[24];let $;e[25]!==F||e[26]!==P?($=a.jsxs(Ke,{children:[F,P]}),e[25]=F,e[26]=P,e[27]=$):$=e[27];let E;e[28]!==j||e[29]!==D||e[30]!==$?(E=a.jsxs(Fe,{filter:j,children:[D,$]}),e[28]=j,e[29]=D,e[30]=$,e[31]=E):E=e[31];let O;e[32]!==E||e[33]!==A?(O=a.jsx(Le,{className:A,style:B,children:E}),e[32]=E,e[33]=A,e[34]=O):O=e[34];let K;return e[35]!==C||e[36]!==h||e[37]!==S||e[38]!==O||e[39]!==T?(K=a.jsxs(C,{open:h,onOpenChange:S,children:[T,O]}),e[35]=C,e[36]=h,e[37]=S,e[38]=O,e[39]=T,e[40]=K):K=e[40],K}function Ye(t){const e=R.c(4),{size:n,className:s}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx("path",{d:"M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0z"}),e[0]=l):l=e[0];let i;return e[1]!==s||e[2]!==n?(i=a.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"#2684FF","aria-hidden":"true",className:s,children:l}),e[1]=s,e[2]=n,e[3]=i):i=e[3],i}function ke(t){const e=t.projectName?.replace(/\s+/g," ").trim(),n=t.name.trim();return e?{primary:e,secondary:[n,t.projectKey].filter(Boolean).join(" · ")}:{primary:n,secondary:t.projectKey??""}}function Ge(t){const{primary:e,secondary:n}=ke(t);return[e,n,`#${t.id}`].filter(Boolean).join(" ")}function de(t){return t.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase()}function He(t,e){const n=de(e).trim();if(!n)return 1;const s=de(t);return n.split(/\s+/).every(l=>s.includes(l))?1:0}function We(){const t=R.c(7),{org:e}=z(),n=Q();let s;t[0]!==e.id?(s=V.jiraIntegration(e.id),t[0]=e.id,t[1]=s):s=t[1];let l;t[2]!==n?(l=async()=>(await n.call("JIRA_INTEGRATION_GET",{})).integration,t[2]=n,t[3]=l):l=t[3];let i;return t[4]!==s||t[5]!==l?(i={queryKey:s,queryFn:l},t[4]=s,t[5]=l,t[6]=i):i=t[6],oe(i)}function ne(){const t=R.c(8),{org:e}=z(),n=Q(),s=X();let l;t[0]!==n?(l=async o=>(await n.call("JIRA_INTEGRATION_UPSERT",o)).integration,t[0]=n,t[1]=l):l=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:V.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==l||t[6]!==i?(r={mutationFn:l,onSettled:i},t[5]=l,t[6]=i,t[7]=r):r=t[7],Z(r)}function Xe(){const t=R.c(8),{org:e}=z(),n=Q(),s=X();let l;t[0]!==n?(l=()=>n.call("JIRA_INTEGRATION_DELETE",{}),t[0]=n,t[1]=l):l=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:V.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==l||t[6]!==i?(r={mutationFn:l,onSettled:i},t[5]=l,t[6]=i,t[7]=r):r=t[7],Z(r)}function Ze(t){const e=R.c(8),{org:n}=z(),s=Q();let l;e[0]!==n.id?(l=V.jiraBoards(n.id),e[0]=n.id,e[1]=l):l=e[1];let i;e[2]!==s?(i=async()=>(await s.call("JIRA_BOARDS_LIST",{})).boards,e[2]=s,e[3]=i):i=e[3];let r;return e[4]!==t||e[5]!==l||e[6]!==i?(r={queryKey:l,enabled:t,staleTime:6e4,queryFn:i},e[4]=t,e[5]=l,e[6]=i,e[7]=r):r=e[7],oe(r)}function et(t){const e=R.c(10),{org:n}=z(),s=Q();let l;e[0]!==t||e[1]!==n.id?(l=V.jiraBoardColumns(n.id,t??""),e[0]=t,e[1]=n.id,e[2]=l):l=e[2];const i=t!==null;let r;e[3]!==t||e[4]!==s?(r=async()=>(await s.call("JIRA_BOARD_COLUMNS_LIST",{boardId:t??""})).columns,e[3]=t,e[4]=s,e[5]=r):r=e[5];let o;return e[6]!==l||e[7]!==i||e[8]!==r?(o={queryKey:l,enabled:i,staleTime:6e4,queryFn:r},e[6]=l,e[7]=i,e[8]=r,e[9]=o):o=e[9],oe(o)}function tt(){const t=R.c(8),{org:e}=z(),n=Q(),s=X();let l;t[0]!==n?(l=async()=>(await n.call("JIRA_SYNC_RUN",{})).result,t[0]=n,t[1]=l):l=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:V.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==l||t[6]!==i?(r={mutationFn:l,onSettled:i},t[5]=l,t[6]=i,t[7]=r):r=t[7],Z(r)}function st(){const t=R.c(8),{org:e}=z(),n=Q(),s=X();let l;t[0]!==n?(l=async()=>await n.call("JIRA_RESYNC_REQUEST",{}),t[0]=n,t[1]=l):l=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:V.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==l||t[6]!==i?(r={mutationFn:l,onSettled:i},t[5]=l,t[6]=i,t[7]=r):r=t[7],Z(r)}function it(){const t=R.c(8),{locator:e}=z(),n=Q(),s=X();let l;t[0]!==n?(l=async o=>await n.call("TASK_BOARD_COLUMN_ROLE_SET",{columnKey:o.columnKey,role:o.role}),t[0]=n,t[1]=l):l=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:V.taskBoardItems(e)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==l||t[6]!==i?(r={mutationFn:l,onSettled:i},t[5]=l,t[6]=i,t[7]=r):r=t[7],Z(r)}function se(t,e){const n=e.statuses[0];if(n)return Object.entries(t).find(([,s])=>s.includes(n))?.[0]}const fe=[{value:"triage",labelKey:"taskBoard.config.statusBacklog"},{value:"todo",labelKey:"taskBoard.config.statusTodo"},{value:"in_progress",labelKey:"taskBoard.config.statusInProgress"},{value:"in_review",labelKey:"taskBoard.config.statusInReview"},{value:"approved",labelKey:"taskBoard.config.statusApproved"},{value:"merged",labelKey:"taskBoard.config.statusMerged"},{value:"post_deploy_validation",labelKey:"taskBoard.config.statusPostDeployValidation"},{value:"done",labelKey:"taskBoard.config.statusDone"},{value:"archived",labelKey:"taskBoard.config.statusArchived"}];function nt(t,e){return t?fe:fe.filter(n=>!Pe(n.value)||n.value===e)}const ae="__dont_sync__";function J(t,e){return t instanceof Error?t.message:e}const lt="https://id.atlassian.com/manage-profile/security/api-tokens";function at(t){const e=R.c(7),{stepKeys:n}=t,s=q();let l;if(e[0]!==n||e[1]!==s){let r;e[3]!==s?(r=o=>a.jsx("li",{children:s(o)},o),e[3]=s,e[4]=r):r=e[4],l=n.map(r),e[0]=n,e[1]=s,e[2]=l}else l=e[2];let i;return e[5]!==l?(i=a.jsx("ol",{className:"list-decimal pl-5 flex flex-col gap-1 text-xs text-muted-foreground",children:l}),e[5]=l,e[6]=i):i=e[6],i}function rt(){const t=R.c(69),e=q(),n=ne(),[s,l]=U.useState(""),[i,r]=U.useState(""),[o,d]=U.useState("");let g;t[0]!==o||t[1]!==i||t[2]!==s?(g=s.trim()!==""&&i.trim()!==""&&o.trim()!=="",t[0]=o,t[1]=i,t[2]=s,t[3]=g):g=t[3];const c=g;let m;t[4]!==e?(m=e("settings.jira.siteLabel"),t[4]=e,t[5]=m):m=t[5];let p;t[6]!==m?(p=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:m}),t[6]=m,t[7]=p):p=t[7];let j;t[8]===Symbol.for("react.memo_cache_sentinel")?(j=w=>l(w.target.value),t[8]=j):j=t[8];let x;t[9]!==e?(x=e("settings.jira.sitePlaceholder"),t[9]=e,t[10]=x):x=t[10];let b;t[11]!==s||t[12]!==x?(b=a.jsx(ie,{value:s,onChange:j,placeholder:x,autoComplete:"off"}),t[11]=s,t[12]=x,t[13]=b):b=t[13];let y;t[14]!==p||t[15]!==b?(y=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[p,b]}),t[14]=p,t[15]=b,t[16]=y):y=t[16];let v;t[17]!==e?(v=e("settings.jira.emailLabel"),t[17]=e,t[18]=v):v=t[18];let f;t[19]!==v?(f=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:v}),t[19]=v,t[20]=f):f=t[20];let u;t[21]===Symbol.for("react.memo_cache_sentinel")?(u=w=>r(w.target.value),t[21]=u):u=t[21];let h;t[22]!==e?(h=e("settings.jira.emailPlaceholder"),t[22]=e,t[23]=h):h=t[23];let S;t[24]!==i||t[25]!==h?(S=a.jsx(ie,{value:i,onChange:u,placeholder:h,autoComplete:"off"}),t[24]=i,t[25]=h,t[26]=S):S=t[26];let C;t[27]!==S||t[28]!==f?(C=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[f,S]}),t[27]=S,t[28]=f,t[29]=C):C=t[29];let N;t[30]!==e?(N=e("settings.jira.tokenLabel"),t[30]=e,t[31]=N):N=t[31];let _;t[32]!==N?(_=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:N}),t[32]=N,t[33]=_):_=t[33];let k;t[34]!==e?(k=e("settings.jira.createTokenLink"),t[34]=e,t[35]=k):k=t[35];let T;t[36]===Symbol.for("react.memo_cache_sentinel")?(T=a.jsx(Ae,{size:12}),t[36]=T):T=t[36];let A;t[37]!==k?(A=a.jsxs("a",{href:lt,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 text-xs text-foreground hover:underline",children:[k,T]}),t[37]=k,t[38]=A):A=t[38];let B;t[39]!==_||t[40]!==A?(B=a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[_,A]}),t[39]=_,t[40]=A,t[41]=B):B=t[41];let D;t[42]===Symbol.for("react.memo_cache_sentinel")?(D=w=>d(w.target.value),t[42]=D):D=t[42];let F;t[43]!==e?(F=e("settings.jira.tokenPlaceholder"),t[43]=e,t[44]=F):F=t[44];let I;t[45]!==o||t[46]!==F?(I=a.jsx(ie,{type:"password",value:o,onChange:D,placeholder:F,autoComplete:"off"}),t[45]=o,t[46]=F,t[47]=I):I=t[47];let P;t[48]!==B||t[49]!==I?(P=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[B,I]}),t[48]=B,t[49]=I,t[50]=P):P=t[50];const $=!c||n.isPending;let E;t[51]!==o||t[52]!==i||t[53]!==s||t[54]!==e||t[55]!==n?(E=()=>n.mutate({siteUrl:s.trim(),email:i.trim(),apiToken:o.trim()},{onSuccess:()=>L.success(e("settings.jira.connected")),onError:w=>L.error(J(w,e("settings.jira.connectFailed")))}),t[51]=o,t[52]=i,t[53]=s,t[54]=e,t[55]=n,t[56]=E):E=t[56];let O;t[57]!==e||t[58]!==n.isPending?(O=n.isPending?e("settings.jira.connecting"):e("settings.jira.connect"),t[57]=e,t[58]=n.isPending,t[59]=O):O=t[59];let K;t[60]!==$||t[61]!==E||t[62]!==O?(K=a.jsx(Y,{size:"sm",className:"w-fit",disabled:$,onClick:E,children:O}),t[60]=$,t[61]=E,t[62]=O,t[63]=K):K=t[63];let M;return t[64]!==C||t[65]!==P||t[66]!==K||t[67]!==y?(M=a.jsxs("div",{className:"flex flex-col gap-4 mt-3 max-w-md",children:[y,C,P,K]}),t[64]=C,t[65]=P,t[66]=K,t[67]=y,t[68]=M):M=t[68],M}function ot(t){const e=R.c(7),{integration:n}=t,s=q();if(n.lastSyncError){let r;return e[0]!==n.lastSyncError?(r=a.jsx("p",{className:"text-xs text-destructive truncate",children:n.lastSyncError}),e[0]=n.lastSyncError,e[1]=r):r=e[1],r}let l;e[2]!==n.lastSyncedAt||e[3]!==s?(l=n.lastSyncedAt?s("settings.jira.lastSynced",{ago:ze(n.lastSyncedAt)}):s("settings.jira.waitingFirstSync"),e[2]=n.lastSyncedAt,e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==l?(i=a.jsx("p",{className:"text-xs text-muted-foreground",children:l}),e[5]=l,e[6]=i):i=e[6],i}const re="__none__";function ct(){const t=R.c(14),e=q(),{columns:n,isLoading:s}=Ie(),l=it();if(s){let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(ce,{className:"h-24 w-full mt-3"}),t[0]=o):o=t[0],o}if(n.length===0){let o;t[1]!==e?(o=e("settings.jira.noColumnsYet"),t[1]=e,t[2]=o):o=t[2];let d;return t[3]!==o?(d=a.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:o}),t[3]=o,t[4]=d):d=t[4],d}let i;if(t[5]!==n||t[6]!==l||t[7]!==e){let o;t[9]!==l||t[10]!==e?(o=d=>a.jsxs("div",{className:"flex items-center justify-between gap-4 py-2.5 border-b border-border/60 last:border-b-0",children:[a.jsx("span",{className:"min-w-0 truncate text-sm",children:d.title}),a.jsxs(Se,{value:d.role??re,onValueChange:g=>l.mutate({columnKey:d.key,role:g===re?null:g},{onError:c=>L.error(J(c,e("settings.jira.saveFailed")))}),children:[a.jsx(Ne,{className:"w-44 shrink-0",children:a.jsx(Ce,{})}),a.jsxs(we,{children:[a.jsx(W,{value:re,children:e("settings.jira.roleNone")}),a.jsx(W,{value:"in_review",children:e("settings.jira.roleInReview")}),a.jsx(W,{value:"archived",children:e("settings.jira.roleArchived")})]})]})]},d.key),t[9]=l,t[10]=e,t[11]=o):o=t[11],i=n.map(o),t[5]=n,t[6]=l,t[7]=e,t[8]=i}else i=t[8];let r;return t[12]!==i?(r=a.jsx("div",{className:"flex flex-col mt-3",children:i}),t[12]=i,t[13]=r):r=t[13],r}function dt(t){const e=R.c(35),{integration:n}=t,s=q(),l=ne(),i=et(n.boardId),r=_e("delivery_lanes_enabled"),[o,d]=U.useState(n.statusMapping),[g,c]=U.useState(n);if(g!==n&&(c(n),d(n.statusMapping)),i.isPending){let f;return e[0]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsx(ce,{className:"h-24 w-full mt-3"}),e[0]=f):f=e[0],f}if(i.isError){let f;e[1]!==i.error||e[2]!==s?(f=J(i.error,s("settings.jira.columnsFailed")),e[1]=i.error,e[2]=s,e[3]=f):f=e[3];let u;return e[4]!==f?(u=a.jsx("p",{className:"text-xs text-destructive mt-3",children:f}),e[4]=f,e[5]=u):u=e[5],u}let m;e[6]!==i.data||e[7]!==o||e[8]!==s||e[9]!==l?(m=function(u,h){const S=o,C={};for(const N of i.data??[]){const _=N.name===u.name?h===ae?void 0:h:se(o,N);_&&(C[_]=[...C[_]??[],...N.statuses])}d(C),l.mutate({statusMapping:C},{onError:N=>{d(S),L.error(J(N,s("settings.jira.saveFailed")))}})},e[6]=i.data,e[7]=o,e[8]=s,e[9]=l,e[10]=m):m=e[10];const p=m;let j,x;if(e[11]!==i.data||e[12]!==o||e[13]!==s){let f;e[16]!==o?(f=h=>!se(o,h),e[16]=o,e[17]=f):f=e[17];const u=(i.data??[]).filter(f);j="flex flex-col mt-3",x=u.length>0&&a.jsx("p",{className:"mb-2 rounded-md bg-warning/10 px-3 py-2 text-xs text-warning",children:s("settings.jira.unmappedWarning",{columns:u.map(ft).join(", ")})}),e[11]=i.data,e[12]=o,e[13]=s,e[14]=j,e[15]=x}else j=e[14],x=e[15];let b;e[18]!==i.data?(b=i.data??[],e[18]=i.data,e[19]=b):b=e[19];let y;if(e[20]!==r||e[21]!==o||e[22]!==p||e[23]!==s||e[24]!==b){let f;e[26]!==r||e[27]!==o||e[28]!==p||e[29]!==s?(f=u=>a.jsxs("div",{className:"flex items-center justify-between gap-4 py-2.5 border-b border-border/60 last:border-b-0",children:[a.jsxs("div",{className:"min-w-0",children:[a.jsx("span",{className:"text-sm truncate",children:u.name}),(u.statuses.length>1||u.statuses[0]!==u.name)&&a.jsx("p",{className:"text-xs text-muted-foreground truncate",children:u.statuses.join(", ")})]}),a.jsxs(Se,{value:se(o,u)??ae,onValueChange:h=>p(u,h),children:[a.jsx(Ne,{className:"w-44 shrink-0",children:a.jsx(Ce,{})}),a.jsxs(we,{children:[a.jsx(W,{value:ae,children:s("settings.jira.dontSync")}),nt(r,se(o,u)).map(h=>a.jsx(W,{value:h.value,children:s(h.labelKey)},h.value))]})]})]},u.name),e[26]=r,e[27]=o,e[28]=p,e[29]=s,e[30]=f):f=e[30],y=b.map(f),e[20]=r,e[21]=o,e[22]=p,e[23]=s,e[24]=b,e[25]=y}else y=e[25];let v;return e[31]!==j||e[32]!==x||e[33]!==y?(v=a.jsxs("div",{className:j,children:[x,y]}),e[31]=j,e[32]=x,e[33]=y,e[34]=v):v=e[34],v}function ft(t){return t.name}function mt(t){const e=R.c(44),{integration:n}=t,s=q(),l=Xe(),[i,r]=U.useState(!1),o=n.siteUrl,d=n.email;let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=()=>r(!0),e[0]=g):g=e[0];let c;e[1]!==s?(c=s("settings.jira.disconnect"),e[1]=s,e[2]=c):c=e[2];let m;e[3]!==c?(m=a.jsx(Y,{variant:"outline",size:"sm",onClick:g,children:c}),e[3]=c,e[4]=m):m=e[4];let p;e[5]!==n.email||e[6]!==n.siteUrl||e[7]!==m?(p=a.jsx(G,{title:o,description:d,action:m}),e[5]=n.email,e[6]=n.siteUrl,e[7]=m,e[8]=p):p=e[8];let j;e[9]!==s?(j=s("settings.jira.disconnectTitle"),e[9]=s,e[10]=j):j=e[10];let x;e[11]!==j?(x=a.jsx(ge,{children:j}),e[11]=j,e[12]=x):x=e[12];let b;e[13]!==s?(b=s("settings.jira.disconnectDescription"),e[13]=s,e[14]=b):b=e[14];let y;e[15]!==b?(y=a.jsx(pe,{children:b}),e[15]=b,e[16]=y):y=e[16];let v;e[17]!==y||e[18]!==x?(v=a.jsxs(je,{children:[x,y]}),e[17]=y,e[18]=x,e[19]=v):v=e[19];let f;e[20]!==s?(f=s("settings.jira.cancel"),e[20]=s,e[21]=f):f=e[21];let u;e[22]!==f?(u=a.jsx(xe,{children:f}),e[22]=f,e[23]=u):u=e[23];let h;e[24]!==l||e[25]!==s?(h=()=>l.mutate(void 0,{onSuccess:()=>L.success(s("settings.jira.disconnected")),onError:A=>L.error(J(A,s("settings.jira.saveFailed")))}),e[24]=l,e[25]=s,e[26]=h):h=e[26];let S;e[27]!==s?(S=s("settings.jira.disconnect"),e[27]=s,e[28]=S):S=e[28];let C;e[29]!==h||e[30]!==S?(C=a.jsx(he,{onClick:h,children:S}),e[29]=h,e[30]=S,e[31]=C):C=e[31];let N;e[32]!==u||e[33]!==C?(N=a.jsxs(ye,{children:[u,C]}),e[32]=u,e[33]=C,e[34]=N):N=e[34];let _;e[35]!==v||e[36]!==N?(_=a.jsxs(be,{children:[v,N]}),e[35]=v,e[36]=N,e[37]=_):_=e[37];let k;e[38]!==i||e[39]!==_?(k=a.jsx(ve,{open:i,onOpenChange:r,children:_}),e[38]=i,e[39]=_,e[40]=k):k=e[40];let T;return e[41]!==k||e[42]!==p?(T=a.jsxs(a.Fragment,{children:[p,k]}),e[41]=k,e[42]=p,e[43]=T):T=e[43],T}function ut(t){const e=R.c(36),{integration:n}=t,s=q(),l=ne(),i=Ze(!0);let r,o;e[0]!==i.data||e[1]!==n.boardId||e[2]!==n.boardName?(r=(i.data??[]).map(pt),o=n.boardId?r.find(u=>u.value===n.boardId)?.primary??n.boardName??n.boardId:null,e[0]=i.data,e[1]=n.boardId,e[2]=n.boardName,e[3]=r,e[4]=o):(r=e[3],o=e[4]);const d=o;let g;e[5]!==s?(g=s("settings.jira.boardLabel"),e[5]=s,e[6]=g):g=e[6];let c;e[7]!==s?(c=s("settings.jira.boardDescription"),e[7]=s,e[8]=c):c=e[8];const m=n.boardId??"";let p;e[9]!==s?(p=s("settings.jira.boardPlaceholder"),e[9]=s,e[10]=p):p=e[10];let j;e[11]!==s?(j=s("settings.jira.boardSearchPlaceholder"),e[11]=s,e[12]=j):j=e[12];let x;e[13]!==i.isPending||e[14]!==s?(x=i.isPending?s("settings.jira.loadingBoards"):s("settings.jira.noBoardsMatch"),e[13]=i.isPending,e[14]=s,e[15]=x):x=e[15];let b;e[16]!==d||e[17]!==s?(b=()=>a.jsxs(Y,{variant:"outline",role:"combobox",className:"w-72 justify-between font-normal",children:[a.jsx("span",{className:"truncate",children:d??s("settings.jira.boardPlaceholder")}),a.jsx(ue,{className:"opacity-50 shrink-0"})]}),e[16]=d,e[17]=s,e[18]=b):b=e[18];let y;e[19]!==r||e[20]!==n.boardId||e[21]!==s||e[22]!==l?(y=u=>{!u||u===n.boardId||l.mutate({boardId:u,boardName:r.find(h=>h.value===u)?.primary??null,statusMapping:{},enabled:!1},{onError:h=>L.error(J(h,s("settings.jira.saveFailed")))})},e[19]=r,e[20]=n.boardId,e[21]=s,e[22]=l,e[23]=y):y=e[23];let v;e[24]!==r||e[25]!==m||e[26]!==p||e[27]!==j||e[28]!==x||e[29]!==b||e[30]!==y?(v=a.jsx(Ve,{options:r,value:m,width:"w-72",triggerClassName:"shrink-0",placeholder:p,searchPlaceholder:j,filter:He,emptyMessage:x,renderTrigger:b,renderItem:gt,onChange:y}),e[24]=r,e[25]=m,e[26]=p,e[27]=j,e[28]=x,e[29]=b,e[30]=y,e[31]=v):v=e[31];let f;return e[32]!==v||e[33]!==g||e[34]!==c?(f=a.jsx(G,{title:g,description:c,action:v}),e[32]=v,e[33]=g,e[34]=c,e[35]=f):f=e[35],f}function gt(t,e){return a.jsxs("div",{className:"flex items-start gap-2 min-w-0 w-full",children:[a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("p",{className:"truncate",children:t.primary}),a.jsx("p",{className:"text-xs text-muted-foreground truncate",children:t.secondary})]}),a.jsx(me,{className:H("mt-0.5 shrink-0",e?"opacity-100":"opacity-0")})]})}function pt(t){const{primary:e,secondary:n}=ke(t);return{value:String(t.id),label:Ge(t),primary:e,secondary:n}}function jt(t){const e=R.c(13),{integration:n}=t,s=q(),l=_e("org_board_columns");let i;e[0]!==l||e[1]!==s?(i=s(l?"settings.jira.rolesLabel":"settings.jira.mappingLabel"),e[0]=l,e[1]=s,e[2]=i):i=e[2];let r;e[3]!==l||e[4]!==s?(r=s(l?"settings.jira.rolesDescription":"settings.jira.mappingDescription"),e[3]=l,e[4]=s,e[5]=r):r=e[5];let o;e[6]!==n||e[7]!==l?(o=l?a.jsx(ct,{}):a.jsx(dt,{integration:n}),e[6]=n,e[7]=l,e[8]=o):o=e[8];let d;return e[9]!==i||e[10]!==r||e[11]!==o?(d=a.jsx(G,{title:i,description:r,children:o}),e[9]=i,e[10]=r,e[11]=o,e[12]=d):d=e[12],d}function xt(t){const e=R.c(72),{integration:n}=t,s=q(),l=ne(),i=tt(),r=st(),[o,d]=U.useState(!1);let g;e[0]!==n.statusMapping?(g=Object.keys(n.statusMapping),e[0]=n.statusMapping,e[1]=g):g=e[1];const c=g.length>0;let m;e[2]!==s?(m=s("settings.jira.enableLabel"),e[2]=s,e[3]=m):m=e[3];let p;e[4]!==n?(p=a.jsx(ot,{integration:n}),e[4]=n,e[5]=p):p=e[5];const j=!n.enabled||i.isPending||r.isPending;let x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=()=>d(!0),e[6]=x):x=e[6];let b;e[7]!==s?(b=s("settings.jira.resyncAll"),e[7]=s,e[8]=b):b=e[8];let y;e[9]!==j||e[10]!==b?(y=a.jsx(Y,{variant:"outline",size:"sm",disabled:j,onClick:x,children:b}),e[9]=j,e[10]=b,e[11]=y):y=e[11];let v;e[12]!==s?(v=s("settings.jira.resyncAllTitle"),e[12]=s,e[13]=v):v=e[13];let f;e[14]!==v?(f=a.jsx(ge,{children:v}),e[14]=v,e[15]=f):f=e[15];let u;e[16]!==s?(u=s("settings.jira.resyncAllDescription"),e[16]=s,e[17]=u):u=e[17];let h;e[18]!==u?(h=a.jsx(pe,{children:u}),e[18]=u,e[19]=h):h=e[19];let S;e[20]!==h||e[21]!==f?(S=a.jsxs(je,{children:[f,h]}),e[20]=h,e[21]=f,e[22]=S):S=e[22];let C;e[23]!==s?(C=s("settings.jira.cancel"),e[23]=s,e[24]=C):C=e[24];let N;e[25]!==C?(N=a.jsx(xe,{children:C}),e[25]=C,e[26]=N):N=e[26];let _;e[27]!==r||e[28]!==s?(_=()=>r.mutate(void 0,{onSuccess:()=>L.success(s("settings.jira.resyncAllQueued")),onError:w=>L.error(J(w,s("settings.jira.syncFailed")))}),e[27]=r,e[28]=s,e[29]=_):_=e[29];let k;e[30]!==s?(k=s("settings.jira.resyncAll"),e[30]=s,e[31]=k):k=e[31];let T;e[32]!==_||e[33]!==k?(T=a.jsx(he,{onClick:_,children:k}),e[32]=_,e[33]=k,e[34]=T):T=e[34];let A;e[35]!==N||e[36]!==T?(A=a.jsxs(ye,{children:[N,T]}),e[35]=N,e[36]=T,e[37]=A):A=e[37];let B;e[38]!==S||e[39]!==A?(B=a.jsxs(be,{children:[S,A]}),e[38]=S,e[39]=A,e[40]=B):B=e[40];let D;e[41]!==o||e[42]!==B||e[43]!==y?(D=a.jsxs(ve,{open:o,onOpenChange:d,children:[y,B]}),e[41]=o,e[42]=B,e[43]=y,e[44]=D):D=e[44];const F=!n.enabled||i.isPending;let I;e[45]!==i||e[46]!==s?(I=()=>i.mutate(void 0,{onSuccess:w=>{"error"in w?L.error(w.error):L.success(s("settings.jira.syncDone",{created:String(w.created),updated:String(w.updated),archived:String(w.archived)}))},onError:w=>L.error(J(w,s("settings.jira.syncFailed")))}),e[45]=i,e[46]=s,e[47]=I):I=e[47];let P;e[48]!==i.isPending||e[49]!==s?(P=i.isPending?s("settings.jira.syncing"):s("settings.jira.syncNow"),e[48]=i.isPending,e[49]=s,e[50]=P):P=e[50];let $;e[51]!==F||e[52]!==I||e[53]!==P?($=a.jsx(Y,{variant:"outline",size:"sm",disabled:F,onClick:I,children:P}),e[51]=F,e[52]=I,e[53]=P,e[54]=$):$=e[54];let E;e[55]!==c||e[56]!==n.boardId||e[57]!==s||e[58]!==l?(E=w=>{if(w&&(!n.boardId||!c)){L.error(s("settings.jira.enableRequirements"));return}l.mutate({enabled:w},{onError:ee=>L.error(J(ee,s("settings.jira.saveFailed")))})},e[55]=c,e[56]=n.boardId,e[57]=s,e[58]=l,e[59]=E):E=e[59];let O;e[60]!==n.enabled||e[61]!==E||e[62]!==l.isPending?(O=a.jsx(qe,{checked:n.enabled,disabled:l.isPending,onCheckedChange:E}),e[60]=n.enabled,e[61]=E,e[62]=l.isPending,e[63]=O):O=e[63];let K;e[64]!==D||e[65]!==$||e[66]!==O?(K=a.jsxs("div",{className:"flex items-center gap-3",children:[D,$,O]}),e[64]=D,e[65]=$,e[66]=O,e[67]=K):K=e[67];let M;return e[68]!==m||e[69]!==K||e[70]!==p?(M=a.jsx(G,{title:m,description:p,action:K}),e[68]=m,e[69]=K,e[70]=p,e[71]=M):M=e[71],M}function ht(t){const e=R.c(24),{integration:n}=t,s=q(),l=`${window.location.origin}/api/_jira/webhook/${n.webhookSecret}`;let i;e[0]!==s?(i=s("settings.jira.webhookTitle"),e[0]=s,e[1]=i):i=e[1];let r;e[2]!==s?(r=s("settings.jira.webhookDescription"),e[2]=s,e[3]=r):r=e[3];let o;e[4]!==l?(o=a.jsx(ie,{readOnly:!0,value:l,className:"font-mono text-xs"}),e[4]=l,e[5]=o):o=e[5];let d;e[6]!==s||e[7]!==l?(d=()=>{navigator.clipboard.writeText(l),L.success(s("settings.jira.webhookCopied"))},e[6]=s,e[7]=l,e[8]=d):d=e[8];let g;e[9]!==s?(g=s("settings.jira.webhookCopy"),e[9]=s,e[10]=g):g=e[10];let c;e[11]!==d||e[12]!==g?(c=a.jsx(Y,{variant:"outline",size:"sm",className:"shrink-0",onClick:d,children:g}),e[11]=d,e[12]=g,e[13]=c):c=e[13];let m;e[14]!==o||e[15]!==c?(m=a.jsxs("div",{className:"flex items-center gap-2",children:[o,c]}),e[14]=o,e[15]=c,e[16]=m):m=e[16];let p;e[17]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(at,{stepKeys:["settings.jira.webhookStep1","settings.jira.webhookStep2","settings.jira.webhookStep3","settings.jira.webhookStep4","settings.jira.webhookStep5"]}),e[17]=p):p=e[17];let j;e[18]!==m?(j=a.jsxs("div",{className:"flex flex-col gap-3 mt-3",children:[m,p]}),e[18]=m,e[19]=j):j=e[19];let x;return e[20]!==i||e[21]!==r||e[22]!==j?(x=a.jsx(G,{title:i,description:r,children:j}),e[20]=i,e[21]=r,e[22]=j,e[23]=x):x=e[23],x}function yt(){const t=R.c(22),e=q(),n=We();if(n.isPending){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(le,{children:a.jsx("div",{className:"p-4",children:a.jsx(ce,{className:"h-40 w-full"})})}),t[0]=c):c=t[0],c}if(!n.data){let c;t[1]!==e?(c=e("settings.jira.connectTitle"),t[1]=e,t[2]=c):c=t[2];let m;t[3]!==e?(m=e("settings.jira.connectDescription"),t[3]=e,t[4]=m):m=t[4];let p;t[5]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(rt,{}),t[5]=p):p=t[5];let j;return t[6]!==c||t[7]!==m?(j=a.jsx(le,{children:a.jsx(G,{title:c,description:m,children:p})}),t[6]=c,t[7]=m,t[8]=j):j=t[8],j}const s=n.data;let l,i,r;t[9]!==s?(l=a.jsx(mt,{integration:s}),i=a.jsx(ut,{integration:s}),r=s.boardId&&a.jsx(jt,{integration:s}),t[9]=s,t[10]=l,t[11]=i,t[12]=r):(l=t[10],i=t[11],r=t[12]);let o,d;t[13]!==s?(o=a.jsx(xt,{integration:s}),d=a.jsx(ht,{integration:s}),t[13]=s,t[14]=o,t[15]=d):(o=t[14],d=t[15]);let g;return t[16]!==l||t[17]!==i||t[18]!==r||t[19]!==o||t[20]!==d?(g=a.jsxs(le,{children:[l,i,r,o,d]}),t[16]=l,t[17]=i,t[18]=r,t[19]=o,t[20]=d,t[21]=g):g=t[21],g}function bt(){const t=R.c(17),e=q();let n;t[0]!==e?(n=e("settings.nav.tasks"),t[0]=e,t[1]=n):n=t[1];let s;t[2]!==n?(s=a.jsx(te.Title,{children:n}),t[2]=n,t[3]=s):s=t[3];let l,i;t[4]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(Je,{}),i=a.jsx(Ue,{}),t[4]=l,t[5]=i):(l=t[4],i=t[5]);let r;t[6]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Ye,{size:18}),t[6]=r):r=t[6];let o;t[7]!==e?(o=e("settings.jira.sectionTitle"),t[7]=e,t[8]=o):o=t[8];let d;t[9]!==o?(d=a.jsxs("span",{className:"flex items-center gap-2",children:[r,o]}),t[9]=o,t[10]=d):d=t[10];let g;t[11]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(yt,{}),t[11]=g):g=t[11];let c;t[12]!==d?(c=a.jsx(Re,{title:d,children:g}),t[12]=d,t[13]=c):c=t[13];let m;return t[14]!==s||t[15]!==c?(m=a.jsx(te,{children:a.jsx(te.Content,{children:a.jsx(te.Body,{children:a.jsxs(Te,{children:[s,l,i,c]})})})}),t[14]=s,t[15]=c,t[16]=m):m=t[16],m}function fs(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(Qe,{capability:"org:manage",area:"settings",children:a.jsx(bt,{})}),t[0]=e):e=t[0],e}export{fs as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as o,n,j as l}from"./index-
|
|
1
|
+
import{c as o,n,j as l}from"./index-CqYwCEJB.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=n("placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-xl bg-background dark:bg-input/30 px-3 py-2 text-sm transition-[color,box-shadow] outline-none focus-visible:ring-[2px] card-shadow disabled:cursor-not-allowed disabled:opacity-50",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=l.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as A,b as _,j as l,B as L,r as O,I as U,u as R,f as b,H as M,d as V,a4 as H,bM as z,dF as B,dG as F}from"./index-BupQW6h3.js";import{b as G,h as J,a as K,d as Y,e as Q}from"./dialog-DxvzvL8Y.js";import{i as W}from"./Check-Dcg2FKZV.js";import{a as X}from"./Copy01-DRX7vwaN.js";import{n as q}from"./Download01-COm4e46o.js";import{u as Z,D as k}from"./use-destination-route-BLgMOjQj.js";import{a as E}from"./constants-dLUUoWH7.js";const ee="https://github.com/decocms/studio/releases";function te(){return`curl -fsSL ${window.location.origin}/install.sh | sh`}function re(e){return`https://github.com/decocms/studio/releases/download/native-v${e}/deco-${e}-linux-x86_64.AppImage`}function De(){return typeof navigator<"u"&&/Mac/.test(navigator.platform)&&!("ontouchend"in document)}function ne(){return typeof navigator<"u"&&/Linux/.test(navigator.platform)&&!/Android/.test(navigator.userAgent)&&!("ontouchend"in document)}async function oe(e,t){if(!e)return!1;try{return await e.writeText(t),!0}catch{return!1}}function P(e){const t=A.c(12),{copiedLabel:r}=e,n=_(),[o,s]=O.useState(!1);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=te(),t[0]=i):i=t[0];const a=i;let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c=l.jsx("code",{className:"block rounded-md border bg-muted px-3 py-2.5 font-mono text-xs leading-relaxed break-all whitespace-pre-wrap select-all",children:a}),t[1]=c):c=t[1];let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{oe(navigator.clipboard,a).then(m=>{m&&(s(!0),setTimeout(()=>s(!1),2e3))})},t[2]=d):d=t[2];let u;t[3]!==o?(u=o?l.jsx(W,{size:16}):l.jsx(X,{size:16}),t[3]=o,t[4]=u):u=t[4];let f;t[5]!==o||t[6]!==r||t[7]!==n?(f=o?r:n("downloadApp.copyLabel"),t[5]=o,t[6]=r,t[7]=n,t[8]=f):f=t[8];let p;return t[9]!==u||t[10]!==f?(p=l.jsxs("div",{className:"flex flex-col gap-3",children:[c,l.jsxs(L,{type:"button",className:"w-full gap-2",onClick:d,children:[u,f]})]}),t[9]=u,t[10]=f,t[11]=p):p=t[11],p}function se(){const e=A.c(18),t=_();let r;e[0]!==t?(r=t("downloadApp.copiedLabel"),e[0]=t,e[1]=r):r=e[1];let n;e[2]!==r?(n=l.jsx(P,{copiedLabel:r}),e[2]=r,e[3]=n):n=e[3];let o;e[4]!==t?(o=t("downloadApp.terminalHint"),e[4]=t,e[5]=o):o=e[5];let s;e[6]!==o?(s=l.jsx("p",{children:o}),e[6]=o,e[7]=s):s=e[7];let i;e[8]!==t?(i=t("downloadApp.appleSiliconNote"),e[8]=t,e[9]=i):i=e[9];let a;e[10]!==i?(a=l.jsx("p",{children:i}),e[10]=i,e[11]=a):a=e[11];let c;e[12]!==s||e[13]!==a?(c=l.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[s,a]}),e[12]=s,e[13]=a,e[14]=c):c=e[14];let d;return e[15]!==n||e[16]!==c?(d=l.jsxs(l.Fragment,{children:[n,c]}),e[15]=n,e[16]=c,e[17]=d):d=e[17],d}function ae(){const e=A.c(42),t=_();let r;e[0]!==t?(r=t("downloadApp.copiedLabelLinux"),e[0]=t,e[1]=r):r=e[1];let n;e[2]!==r?(n=l.jsx(P,{copiedLabel:r}),e[2]=r,e[3]=n):n=e[3];let o;e[4]!==t?(o=t("downloadApp.linuxInstallerHint"),e[4]=t,e[5]=o):o=e[5];let s;e[6]!==o?(s=l.jsx("p",{children:o}),e[6]=o,e[7]=s):s=e[7];let i;e[8]!==t?(i=t("downloadApp.linuxArchNote"),e[8]=t,e[9]=i):i=e[9];let a;e[10]!==i?(a=l.jsx("p",{children:i}),e[10]=i,e[11]=a):a=e[11];let c;e[12]!==s||e[13]!==a?(c=l.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[s,a]}),e[12]=s,e[13]=a,e[14]=c):c=e[14];let d;e[15]!==t?(d=t("downloadApp.linuxDirectDownloadHint"),e[15]=t,e[16]=d):d=e[16];let u;e[17]!==d?(u=l.jsx("p",{children:d}),e[17]=d,e[18]=u):u=e[18];let f;e[19]===Symbol.for("react.memo_cache_sentinel")?(f=re("4.309.2"),e[19]=f):f=e[19];let p;e[20]===Symbol.for("react.memo_cache_sentinel")?(p=l.jsx(q,{size:14}),e[20]=p):p=e[20];let m;e[21]!==t?(m=t("downloadApp.downloadAppImage"),e[21]=t,e[22]=m):m=e[22];let h;e[23]!==m?(h=l.jsx(L,{asChild:!0,variant:"outline",size:"sm",className:"gap-2",children:l.jsxs("a",{href:f,rel:"noreferrer",children:[p,m]})}),e[23]=m,e[24]=h):h=e[24];let v;e[25]!==t?(v=t("downloadApp.linuxChmodHint"),e[25]=t,e[26]=v):v=e[26];let g;e[27]!==v?(g=l.jsx("p",{children:v}),e[27]=v,e[28]=g):g=e[28];let I;e[29]!==t?(I=t("downloadApp.allReleases"),e[29]=t,e[30]=I):I=e[30];let S;e[31]!==I?(S=l.jsx("a",{href:ee,target:"_blank",rel:"noreferrer",className:"underline-offset-2 hover:text-foreground hover:underline",children:I}),e[31]=I,e[32]=S):S=e[32];let x;e[33]!==h||e[34]!==g||e[35]!==S||e[36]!==u?(x=l.jsxs("div",{className:"flex flex-col items-start gap-2 border-t pt-4 text-xs text-muted-foreground",children:[u,h,g,S]}),e[33]=h,e[34]=g,e[35]=S,e[36]=u,e[37]=x):x=e[37];let j;return e[38]!==n||e[39]!==x||e[40]!==c?(j=l.jsxs(l.Fragment,{children:[n,c,x]}),e[38]=n,e[39]=x,e[40]=c,e[41]=j):j=e[41],j}function Ne(e){const t=A.c(19),{open:r,onOpenChange:n}=e,o=_();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=ne(),t[0]=s):s=t[0];const i=s;let a;t[1]!==o?(a=o("downloadApp.title"),t[1]=o,t[2]=a):a=t[2];let c;t[3]!==a?(c=l.jsx(G,{children:a}),t[3]=a,t[4]=c):c=t[4];let d;t[5]!==o?(d=o(i?"downloadApp.linuxDescription":"downloadApp.description"),t[5]=o,t[6]=d):d=t[6];let u;t[7]!==d?(u=l.jsx(J,{children:d}),t[7]=d,t[8]=u):u=t[8];let f;t[9]!==c||t[10]!==u?(f=l.jsxs(K,{children:[c,u]}),t[9]=c,t[10]=u,t[11]=f):f=t[11];let p;t[12]===Symbol.for("react.memo_cache_sentinel")?(p=i?l.jsx(ae,{}):l.jsx(se,{}),t[12]=p):p=t[12];let m;t[13]!==f?(m=l.jsxs(Y,{className:"sm:max-w-md",children:[f,p]}),t[13]=f,t[14]=m):m=t[14];let h;return t[15]!==n||t[16]!==r||t[17]!==m?(h=l.jsx(Q,{open:r,onOpenChange:n,children:m}),t[15]=n,t[16]=r,t[17]=m,t[18]=h):h=t[18],h}const le=1e4,ke="true",T=2;function w(e,t){return U.chatAutosend(e,t)}function ce(e){return e==="pending"||e==="sending"}function ie(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}if(!t||typeof t!="object")return null;const r=t;let n=0;r.status==="sending"?n=r.retryAt===void 0?1:T:r.retryAt!==void 0&&(n=1);const o=r.attempt===void 0?n:r.attempt;return typeof r.createdAt!="number"||typeof r.message!="object"||!ce(r.status)||r.retryAt!==void 0&&typeof r.retryAt!="number"||typeof o!="number"||!Number.isInteger(o)||o<0||o>T?null:{...t,attempt:o}}function Le(e,t,r,n,o=Date.now()){const s={message:n,createdAt:o,status:"pending",attempt:0};return e.setItem(w(t,r),JSON.stringify(s)),s}function de(e,t,r){const n=w(t,r),o=ie(e.getItem(n));return o||(e.removeItem(n),null)}function Re(e,t,r,n=Date.now()){const o=w(t,r),s=de(e,t,r);if(!s||s.status!=="pending")return null;if(s.attempt>=T)return e.removeItem(o),null;const i=s.retryAt??s.createdAt;if(n-i>=le)return e.removeItem(o),null;const a={...s,status:"sending",attempt:s.attempt+1};return e.setItem(o,JSON.stringify(a)),{message:a.message,createdAt:a.createdAt,attempt:a.attempt}}function Me(e,t,r){e.removeItem(w(t,r))}const ue="/shell/$org/org-shell/agent-shell";function fe(e){return e.threadInSearch||!e.threadId?{to:"."}:{to:"/$org/$taskId",params:{org:e.orgSlug,taskId:e.threadId}}}function me(e){return e.taskIdParam??e.threadSearch??null}function Ee(){const e=A.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const r=b(t);let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[1]=n):n=e[1];const o=R(n);let s;return e[2]!==r.taskId||e[3]!==o.thread?(s=me({taskIdParam:r.taskId,threadSearch:o.thread}),e[2]=r.taskId,e[3]=o.thread,e[4]=s):s=e[4],s}function pe(e){return e.projectParam?e.projectParam:e.legacyRoute?e.virtualMcpIdSearch:void 0}function $(){const e=A.c(4);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const r=b(t);let n;return e[1]!==r.panel||e[2]!==r.project?(n=z({project:r.project,panel:r.panel}),e[1]=r.panel,e[2]=r.project,e[3]=n):n=e[3],n}function he(){return $().project}function ge(){const e=A.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0],b(t).taskId!==void 0}function xe(){const e=A.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const r=R(t),n=he(),o=ge();let s;return e[1]!==o||e[2]!==n||e[3]!==r.virtualmcpid?(s=pe({projectParam:n,virtualMcpIdSearch:r.virtualmcpid,legacyRoute:o}),e[1]=o,e[2]=n,e[3]=r.virtualmcpid,e[4]=s):s=e[4],s}function Pe(){const e=A.c(3),{org:t}=M(),r=xe();let n;return e[0]!==t||e[1]!==r?(n=r??E(t.id).id,e[0]=t,e[1]=r,e[2]=n):n=e[2],n}function Ae(e){const t={...e.prev,...e.changes,thread:e.threadId};return delete t.virtualmcpid,t}function $e(e){return e.routeAgentId??e.threadVirtualMcpId??null}function Ie(e){if(e.targetVirtualMcpId===void 0)return{kind:"stay",project:e.currentProject};const t=e.targetVirtualMcpId===e.decopilotId?void 0:e.targetVirtualMcpId;return t!==void 0&&e.currentProject===void 0?{kind:"relocate",project:t}:{kind:"stay",project:t}}function Se(){const e=A.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const r=b(t);let n;return e[1]===Symbol.for("react.memo_cache_sentinel")?(n={from:ue,shouldThrow:!1},e[1]=n):n=e[1],!!H(n)&&r.taskId===void 0}function Ce(){const e=A.c(12),t=V();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const n=b(r),o=Se(),{org:s}=M(),i=n.org??"",{project:a,panel:c}=$(),d=a!==void 0,u=Z()===k.agents;let f;e[1]!==s.id?(f=E(s.id),e[1]=s.id,e[2]=f):f=e[2];const p=f.id;let m;return e[3]!==c||e[4]!==a||e[5]!==p||e[6]!==t||e[7]!==u||e[8]!==i||e[9]!==d||e[10]!==o?(m=(h,v,g)=>{const I=fe({threadInSearch:o,orgSlug:i,threadId:h}),S=g?.replace??!1;if(I.to==="/$org/$taskId")return t({to:I.to,params:I.params,search:v,replace:S});const x=Ie({currentProject:a,targetVirtualMcpId:g?.virtualMcpId,decopilotId:p}),j=g?.view&&g.view.tabId!==void 0?B(g.view.tabId):g?.view?{panel:void 0,payload:F()}:null,C=x.kind==="relocate"&&!u,D=y=>Ae({prev:C?{sidepanel:y.sidepanel}:y,changes:{...v(y),...j?.payload??{}},threadId:h});return x.kind==="relocate"?t({to:k.agents,params:{org:i,project:x.project,panel:j?j.panel:c},search:D,replace:S}):t({to:".",params:y=>{const N=d?{...y,project:x.project}:y;return j?{...N,panel:j.panel}:N},search:D,replace:S})},e[3]=c,e[4]=a,e[5]=p,e[6]=t,e[7]=u,e[8]=i,e[9]=d,e[10]=o,e[11]=m):m=e[11],m}export{ke as A,Ne as D,ne as a,Ee as b,Ce as c,xe as d,Pe as e,Re as f,Me as g,De as i,$e as r,he as u,Le as w};
|
|
1
|
+
import{c as A,b as _,j as l,B as L,r as O,I as U,u as R,f as b,H as M,d as V,a4 as H,bM as z,dF as B,dG as F}from"./index-CqYwCEJB.js";import{b as G,h as J,a as K,d as Y,e as Q}from"./dialog-CuFyb00o.js";import{i as W}from"./Check-wBaW66G-.js";import{a as X}from"./Copy01-rA4Dpk36.js";import{n as q}from"./Download01-Dq_Unryt.js";import{u as Z,D as k}from"./use-destination-route-CrQXgoeu.js";import{a as E}from"./constants-dLUUoWH7.js";const ee="https://github.com/decocms/studio/releases";function te(){return`curl -fsSL ${window.location.origin}/install.sh | sh`}function re(e){return`https://github.com/decocms/studio/releases/download/native-v${e}/deco-${e}-linux-x86_64.AppImage`}function De(){return typeof navigator<"u"&&/Mac/.test(navigator.platform)&&!("ontouchend"in document)}function ne(){return typeof navigator<"u"&&/Linux/.test(navigator.platform)&&!/Android/.test(navigator.userAgent)&&!("ontouchend"in document)}async function oe(e,t){if(!e)return!1;try{return await e.writeText(t),!0}catch{return!1}}function P(e){const t=A.c(12),{copiedLabel:r}=e,n=_(),[o,s]=O.useState(!1);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=te(),t[0]=i):i=t[0];const a=i;let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c=l.jsx("code",{className:"block rounded-md border bg-muted px-3 py-2.5 font-mono text-xs leading-relaxed break-all whitespace-pre-wrap select-all",children:a}),t[1]=c):c=t[1];let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{oe(navigator.clipboard,a).then(m=>{m&&(s(!0),setTimeout(()=>s(!1),2e3))})},t[2]=d):d=t[2];let u;t[3]!==o?(u=o?l.jsx(W,{size:16}):l.jsx(X,{size:16}),t[3]=o,t[4]=u):u=t[4];let f;t[5]!==o||t[6]!==r||t[7]!==n?(f=o?r:n("downloadApp.copyLabel"),t[5]=o,t[6]=r,t[7]=n,t[8]=f):f=t[8];let p;return t[9]!==u||t[10]!==f?(p=l.jsxs("div",{className:"flex flex-col gap-3",children:[c,l.jsxs(L,{type:"button",className:"w-full gap-2",onClick:d,children:[u,f]})]}),t[9]=u,t[10]=f,t[11]=p):p=t[11],p}function se(){const e=A.c(18),t=_();let r;e[0]!==t?(r=t("downloadApp.copiedLabel"),e[0]=t,e[1]=r):r=e[1];let n;e[2]!==r?(n=l.jsx(P,{copiedLabel:r}),e[2]=r,e[3]=n):n=e[3];let o;e[4]!==t?(o=t("downloadApp.terminalHint"),e[4]=t,e[5]=o):o=e[5];let s;e[6]!==o?(s=l.jsx("p",{children:o}),e[6]=o,e[7]=s):s=e[7];let i;e[8]!==t?(i=t("downloadApp.appleSiliconNote"),e[8]=t,e[9]=i):i=e[9];let a;e[10]!==i?(a=l.jsx("p",{children:i}),e[10]=i,e[11]=a):a=e[11];let c;e[12]!==s||e[13]!==a?(c=l.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[s,a]}),e[12]=s,e[13]=a,e[14]=c):c=e[14];let d;return e[15]!==n||e[16]!==c?(d=l.jsxs(l.Fragment,{children:[n,c]}),e[15]=n,e[16]=c,e[17]=d):d=e[17],d}function ae(){const e=A.c(42),t=_();let r;e[0]!==t?(r=t("downloadApp.copiedLabelLinux"),e[0]=t,e[1]=r):r=e[1];let n;e[2]!==r?(n=l.jsx(P,{copiedLabel:r}),e[2]=r,e[3]=n):n=e[3];let o;e[4]!==t?(o=t("downloadApp.linuxInstallerHint"),e[4]=t,e[5]=o):o=e[5];let s;e[6]!==o?(s=l.jsx("p",{children:o}),e[6]=o,e[7]=s):s=e[7];let i;e[8]!==t?(i=t("downloadApp.linuxArchNote"),e[8]=t,e[9]=i):i=e[9];let a;e[10]!==i?(a=l.jsx("p",{children:i}),e[10]=i,e[11]=a):a=e[11];let c;e[12]!==s||e[13]!==a?(c=l.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[s,a]}),e[12]=s,e[13]=a,e[14]=c):c=e[14];let d;e[15]!==t?(d=t("downloadApp.linuxDirectDownloadHint"),e[15]=t,e[16]=d):d=e[16];let u;e[17]!==d?(u=l.jsx("p",{children:d}),e[17]=d,e[18]=u):u=e[18];let f;e[19]===Symbol.for("react.memo_cache_sentinel")?(f=re("4.309.3"),e[19]=f):f=e[19];let p;e[20]===Symbol.for("react.memo_cache_sentinel")?(p=l.jsx(q,{size:14}),e[20]=p):p=e[20];let m;e[21]!==t?(m=t("downloadApp.downloadAppImage"),e[21]=t,e[22]=m):m=e[22];let h;e[23]!==m?(h=l.jsx(L,{asChild:!0,variant:"outline",size:"sm",className:"gap-2",children:l.jsxs("a",{href:f,rel:"noreferrer",children:[p,m]})}),e[23]=m,e[24]=h):h=e[24];let v;e[25]!==t?(v=t("downloadApp.linuxChmodHint"),e[25]=t,e[26]=v):v=e[26];let g;e[27]!==v?(g=l.jsx("p",{children:v}),e[27]=v,e[28]=g):g=e[28];let I;e[29]!==t?(I=t("downloadApp.allReleases"),e[29]=t,e[30]=I):I=e[30];let S;e[31]!==I?(S=l.jsx("a",{href:ee,target:"_blank",rel:"noreferrer",className:"underline-offset-2 hover:text-foreground hover:underline",children:I}),e[31]=I,e[32]=S):S=e[32];let x;e[33]!==h||e[34]!==g||e[35]!==S||e[36]!==u?(x=l.jsxs("div",{className:"flex flex-col items-start gap-2 border-t pt-4 text-xs text-muted-foreground",children:[u,h,g,S]}),e[33]=h,e[34]=g,e[35]=S,e[36]=u,e[37]=x):x=e[37];let j;return e[38]!==n||e[39]!==x||e[40]!==c?(j=l.jsxs(l.Fragment,{children:[n,c,x]}),e[38]=n,e[39]=x,e[40]=c,e[41]=j):j=e[41],j}function Ne(e){const t=A.c(19),{open:r,onOpenChange:n}=e,o=_();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=ne(),t[0]=s):s=t[0];const i=s;let a;t[1]!==o?(a=o("downloadApp.title"),t[1]=o,t[2]=a):a=t[2];let c;t[3]!==a?(c=l.jsx(G,{children:a}),t[3]=a,t[4]=c):c=t[4];let d;t[5]!==o?(d=o(i?"downloadApp.linuxDescription":"downloadApp.description"),t[5]=o,t[6]=d):d=t[6];let u;t[7]!==d?(u=l.jsx(J,{children:d}),t[7]=d,t[8]=u):u=t[8];let f;t[9]!==c||t[10]!==u?(f=l.jsxs(K,{children:[c,u]}),t[9]=c,t[10]=u,t[11]=f):f=t[11];let p;t[12]===Symbol.for("react.memo_cache_sentinel")?(p=i?l.jsx(ae,{}):l.jsx(se,{}),t[12]=p):p=t[12];let m;t[13]!==f?(m=l.jsxs(Y,{className:"sm:max-w-md",children:[f,p]}),t[13]=f,t[14]=m):m=t[14];let h;return t[15]!==n||t[16]!==r||t[17]!==m?(h=l.jsx(Q,{open:r,onOpenChange:n,children:m}),t[15]=n,t[16]=r,t[17]=m,t[18]=h):h=t[18],h}const le=1e4,ke="true",T=2;function w(e,t){return U.chatAutosend(e,t)}function ce(e){return e==="pending"||e==="sending"}function ie(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}if(!t||typeof t!="object")return null;const r=t;let n=0;r.status==="sending"?n=r.retryAt===void 0?1:T:r.retryAt!==void 0&&(n=1);const o=r.attempt===void 0?n:r.attempt;return typeof r.createdAt!="number"||typeof r.message!="object"||!ce(r.status)||r.retryAt!==void 0&&typeof r.retryAt!="number"||typeof o!="number"||!Number.isInteger(o)||o<0||o>T?null:{...t,attempt:o}}function Le(e,t,r,n,o=Date.now()){const s={message:n,createdAt:o,status:"pending",attempt:0};return e.setItem(w(t,r),JSON.stringify(s)),s}function de(e,t,r){const n=w(t,r),o=ie(e.getItem(n));return o||(e.removeItem(n),null)}function Re(e,t,r,n=Date.now()){const o=w(t,r),s=de(e,t,r);if(!s||s.status!=="pending")return null;if(s.attempt>=T)return e.removeItem(o),null;const i=s.retryAt??s.createdAt;if(n-i>=le)return e.removeItem(o),null;const a={...s,status:"sending",attempt:s.attempt+1};return e.setItem(o,JSON.stringify(a)),{message:a.message,createdAt:a.createdAt,attempt:a.attempt}}function Me(e,t,r){e.removeItem(w(t,r))}const ue="/shell/$org/org-shell/agent-shell";function fe(e){return e.threadInSearch||!e.threadId?{to:"."}:{to:"/$org/$taskId",params:{org:e.orgSlug,taskId:e.threadId}}}function me(e){return e.taskIdParam??e.threadSearch??null}function Ee(){const e=A.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const r=b(t);let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[1]=n):n=e[1];const o=R(n);let s;return e[2]!==r.taskId||e[3]!==o.thread?(s=me({taskIdParam:r.taskId,threadSearch:o.thread}),e[2]=r.taskId,e[3]=o.thread,e[4]=s):s=e[4],s}function pe(e){return e.projectParam?e.projectParam:e.legacyRoute?e.virtualMcpIdSearch:void 0}function $(){const e=A.c(4);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const r=b(t);let n;return e[1]!==r.panel||e[2]!==r.project?(n=z({project:r.project,panel:r.panel}),e[1]=r.panel,e[2]=r.project,e[3]=n):n=e[3],n}function he(){return $().project}function ge(){const e=A.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0],b(t).taskId!==void 0}function xe(){const e=A.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const r=R(t),n=he(),o=ge();let s;return e[1]!==o||e[2]!==n||e[3]!==r.virtualmcpid?(s=pe({projectParam:n,virtualMcpIdSearch:r.virtualmcpid,legacyRoute:o}),e[1]=o,e[2]=n,e[3]=r.virtualmcpid,e[4]=s):s=e[4],s}function Pe(){const e=A.c(3),{org:t}=M(),r=xe();let n;return e[0]!==t||e[1]!==r?(n=r??E(t.id).id,e[0]=t,e[1]=r,e[2]=n):n=e[2],n}function Ae(e){const t={...e.prev,...e.changes,thread:e.threadId};return delete t.virtualmcpid,t}function $e(e){return e.routeAgentId??e.threadVirtualMcpId??null}function Ie(e){if(e.targetVirtualMcpId===void 0)return{kind:"stay",project:e.currentProject};const t=e.targetVirtualMcpId===e.decopilotId?void 0:e.targetVirtualMcpId;return t!==void 0&&e.currentProject===void 0?{kind:"relocate",project:t}:{kind:"stay",project:t}}function Se(){const e=A.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const r=b(t);let n;return e[1]===Symbol.for("react.memo_cache_sentinel")?(n={from:ue,shouldThrow:!1},e[1]=n):n=e[1],!!H(n)&&r.taskId===void 0}function Ce(){const e=A.c(12),t=V();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const n=b(r),o=Se(),{org:s}=M(),i=n.org??"",{project:a,panel:c}=$(),d=a!==void 0,u=Z()===k.agents;let f;e[1]!==s.id?(f=E(s.id),e[1]=s.id,e[2]=f):f=e[2];const p=f.id;let m;return e[3]!==c||e[4]!==a||e[5]!==p||e[6]!==t||e[7]!==u||e[8]!==i||e[9]!==d||e[10]!==o?(m=(h,v,g)=>{const I=fe({threadInSearch:o,orgSlug:i,threadId:h}),S=g?.replace??!1;if(I.to==="/$org/$taskId")return t({to:I.to,params:I.params,search:v,replace:S});const x=Ie({currentProject:a,targetVirtualMcpId:g?.virtualMcpId,decopilotId:p}),j=g?.view&&g.view.tabId!==void 0?B(g.view.tabId):g?.view?{panel:void 0,payload:F()}:null,C=x.kind==="relocate"&&!u,D=y=>Ae({prev:C?{sidepanel:y.sidepanel}:y,changes:{...v(y),...j?.payload??{}},threadId:h});return x.kind==="relocate"?t({to:k.agents,params:{org:i,project:x.project,panel:j?j.panel:c},search:D,replace:S}):t({to:".",params:y=>{const N=d?{...y,project:x.project}:y;return j?{...N,panel:j.panel}:N},search:D,replace:S})},e[3]=c,e[4]=a,e[5]=p,e[6]=t,e[7]=u,e[8]=i,e[9]=d,e[10]=o,e[11]=m):m=e[11],m}export{ke as A,Ne as D,ne as a,Ee as b,Ce as c,xe as d,Pe as e,Re as f,Me as g,De as i,$e as r,he as u,Le as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as x,bu as b,j as c,br as m,bx as k,bc as p,dz as A,dA as T,bw as M,dB as S,bt as F,bJ as $,c as P,n as C}from"./index-
|
|
1
|
+
import{r as x,bu as b,j as c,br as m,bx as k,bc as p,dz as A,dA as T,bw as M,dB as S,bt as F,bJ as $,c as P,n as C}from"./index-CqYwCEJB.js";var j="Toggle",_=x.forwardRef((r,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...a}=r,[t,o]=b({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":r.disabled?"":void 0,...a,ref:e,onClick:k(r.onClick,()=>{r.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=F(v,[T]),z=T(),h=p.forwardRef((r,e)=>{const{type:l,...s}=r;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});h.displayName=v;var[I,y]=w(v),D=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=b({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(I,{scope:r.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...a,ref:e})})}),B=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=b({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(I,{scope:r.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...a,ref:e})})});h.displayName=v;var[O,H]=w(v),R=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:a,dir:t,loop:o=!0,...i}=r,d=z(l),u=M(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(S,{asChild:!0,...d,orientation:a,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((r,e)=>{const l=y(f,r.__scopeToggleGroup),s=H(f,r.__scopeToggleGroup),n=z(r.__scopeToggleGroup),a=l.value.includes(r.value),t=s.disabled||r.disabled,o={...r,pressed:a,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(A,{asChild:!0,...n,focusable:!t,active:a,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,value:s,...n}=r,a=y(f,l),t={role:"radio","aria-checked":r.pressed,"aria-pressed":void 0},o=a.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?a.onItemActivate(s):a.onItemDeactivate(s)}})}),J=h,L=N;const U=$("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function K(r){const e=P.c(20);let l,s,n,a,t;e[0]!==r?({className:s,variant:t,size:a,children:l,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==a||e[9]!==t?(i={variant:t,size:a},e[8]=a,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==a||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(J,{"data-slot":"toggle-group","data-variant":t,"data-size":a,className:o,...n,children:d}),e[14]=n,e[15]=a,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Q(r){const e=P.c(18);let l,s,n,a,t;e[0]!==r?({className:s,children:l,variant:t,size:a,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||a;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==a||e[10]!==t?(u=C(U({variant:o.variant||t,size:o.size||a}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=a,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(L,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{K as T,Q as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,n as T,j as i,r as g,b as j,f as k,aH as p,L as N,bz as y,c5 as L}from"./index-
|
|
1
|
+
import{c as u,n as T,j as i,r as g,b as j,f as k,aH as p,L as N,bz as y,c5 as L}from"./index-CqYwCEJB.js";function B(t){const e=u.c(14);let l,s,o,n,r;e[0]!==t?({active:l,className:s,ref:n,type:r,...o}=t,e[0]=t,e[1]=l,e[2]=s,e[3]=o,e[4]=n,e[5]=r):(l=e[1],s=e[2],o=e[3],n=e[4],r=e[5]);const c=r===void 0?"button":r,a=l?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground";let f;e[6]!==s||e[7]!==a?(f=T("relative flex size-10 md:size-7 shrink-0 items-center justify-center rounded-md transition-colors","max-md:[&_svg]:size-5","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",a,s),e[6]=s,e[7]=a,e[8]=f):f=e[8];let b;return e[9]!==o||e[10]!==n||e[11]!==f||e[12]!==c?(b=i.jsx("button",{ref:n,type:c,className:f,...o}),e[9]=o,e[10]=n,e[11]=f,e[12]=c,e[13]=b):b=e[13],b}const S=g.createContext(null);function x(){const t=g.use(S);if(!t)throw new Error("Toolbar.* must be used inside <Toolbar>");return t}function v(t){const e=u.c(8),{children:l}=t,[s,o]=g.useState(null),[n,r]=g.useState(null),[c,a]=g.useState(null),[f,b]=g.useState(null);let d;e[0]!==c||e[1]!==f||e[2]!==n||e[3]!==s?(d={togglesEl:s,setTogglesEl:o,tabsEl:n,setTabsEl:r,centerEl:c,setCenterEl:a,rightEl:f,setRightEl:b},e[0]=c,e[1]=f,e[2]=n,e[3]=s,e[4]=d):d=e[4];let h;return e[5]!==l||e[6]!==d?(h=i.jsx(S,{value:d,children:l}),e[5]=l,e[6]=d,e[7]=h):h=e[7],h}function m(t){const e=u.c(2),{children:l}=t;let s;return e[0]!==l?(s=i.jsx(v,{children:i.jsx("div",{className:"flex flex-col h-full min-h-0",children:l})}),e[0]=l,e[1]=s):s=e[1],s}function $(t){const e=u.c(10);let l,s,o;e[0]!==t?({children:l,className:s,...o}=t,e[0]=t,e[1]=l,e[2]=s,e[3]=o):(l=e[1],s=e[2],o=e[3]);let n;e[4]!==s?(n=T("relative z-10 shrink-0 grid grid-cols-3 items-center pl-1 pr-2 h-12 bg-sidebar",s),e[4]=s,e[5]=n):n=e[5];let r;return e[6]!==l||e[7]!==o||e[8]!==n?(r=i.jsx("div",{className:n,...o,children:l}),e[6]=l,e[7]=o,e[8]=n,e[9]=r):r=e[9],r}function C(t){const e=u.c(2),{children:l}=t;let s;return e[0]!==l?(s=i.jsx("div",{className:"flex items-center gap-0.5 min-w-0 justify-self-start",children:l}),e[0]=l,e[1]=s):s=e[1],s}function z(t){const e=u.c(2),{children:l}=t;let s;return e[0]!==l?(s=i.jsx("div",{className:"flex items-center justify-end gap-0.5 min-w-0 justify-self-end",children:l}),e[0]=l,e[1]=s):s=e[1],s}function R(){const t=u.c(13),e=j(),s=y().logo??L,o=typeof s=="string"?s:s.light,n=typeof s=="string"?s:s.dark;let r;t[0]!==e?(r=e("agentShellLayout.toolbar.logo"),t[0]=e,t[1]=r):r=t[1];let c;t[2]!==o||t[3]!==r?(c=i.jsx("img",{src:o,alt:r,className:"size-6 object-contain dark:hidden"}),t[2]=o,t[3]=r,t[4]=c):c=t[4];let a;t[5]!==e?(a=e("agentShellLayout.toolbar.logo"),t[5]=e,t[6]=a):a=t[6];let f;t[7]!==n||t[8]!==a?(f=i.jsx("img",{src:n,alt:a,className:"size-6 object-contain hidden dark:block"}),t[7]=n,t[8]=a,t[9]=f):f=t[9];let b;return t[10]!==c||t[11]!==f?(b=i.jsxs("span",{className:"flex items-center shrink-0 px-2",children:[c,f]}),t[10]=c,t[11]=f,t[12]=b):b=t[12],b}function E(){const t=u.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(g.Suspense,{fallback:i.jsx("span",{className:"shrink-0 size-6 mx-2"}),children:i.jsx(R,{})}),t[0]=e):e=t[0],e}function _(){const t=u.c(12),e=j();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/shell/$org"},t[0]=l):l=t[0];const{org:s}=k(l);let o;t[1]!==s?(o={org:s},t[1]=s,t[2]=o):o=t[2];let n;t[3]!==e?(n=e("agentShellLayout.toolbar.backToHome"),t[3]=e,t[4]=n):n=t[4];let r;t[5]!==e?(r=e("agentShellLayout.toolbar.backToHome"),t[5]=e,t[6]=r):r=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(E,{}),t[7]=c):c=t[7];let a;return t[8]!==o||t[9]!==n||t[10]!==r?(a=i.jsx(N,{to:"/$org",params:o,"aria-label":n,title:r,className:"flex items-center shrink-0 cursor-pointer pl-1",children:c}),t[8]=o,t[9]=n,t[10]=r,t[11]=a):a=t[11],a}function P(){const t=u.c(2),{setCenterEl:e}=x();let l;return t[0]!==e?(l=i.jsx("div",{ref:e,className:"min-w-0 flex items-center justify-center gap-2"}),t[0]=e,t[1]=l):l=t[1],l}function w(t){const e=u.c(3),{children:l}=t,{centerEl:s}=x();if(!s)return null;let o;return e[0]!==s||e[1]!==l?(o=p.createPortal(l,s),e[0]=s,e[1]=l,e[2]=o):o=e[2],o}function H(t){const e=u.c(5),{className:l}=t,{setTabsEl:s}=x();let o;e[0]!==l?(o=T("shrink-0 flex items-center",l),e[0]=l,e[1]=o):o=e[1];let n;return e[2]!==s||e[3]!==o?(n=i.jsx("div",{ref:s,className:o}),e[2]=s,e[3]=o,e[4]=n):n=e[4],n}function I(t){const e=u.c(3),{children:l}=t,{tabsEl:s}=x();if(!s)return null;let o;return e[0]!==l||e[1]!==s?(o=p.createPortal(l,s),e[0]=l,e[1]=s,e[2]=o):o=e[2],o}function D(t){const e=u.c(5),{className:l}=t,{setTogglesEl:s}=x();let o;e[0]!==l?(o=T("contents",l),e[0]=l,e[1]=o):o=e[1];let n;return e[2]!==s||e[3]!==o?(n=i.jsx("div",{ref:s,className:o}),e[2]=s,e[3]=o,e[4]=n):n=e[4],n}function O(){const t=u.c(2),{setRightEl:e}=x();let l;return t[0]!==e?(l=i.jsx("div",{ref:e,className:"flex items-center justify-end gap-0.5 shrink-0"}),t[0]=e,t[1]=l):l=t[1],l}m.Provider=v;m.Header=$;m.LeftColumn=C;m.RightColumn=z;m.Logo=E;m.LogoLink=_;m.CenterSlot=P;m.Center=w;m.TabsSlot=H;m.Tabs=I;m.TogglesSlot=D;m.RightSlot=O;export{B as T,m as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as _,T as l}from"./index-
|
|
1
|
+
import{v as _,T as l}from"./index-CqYwCEJB.js";let s=!1;const p="report:auth-attempt:",f=3600*1e3;function h(e){const t=new URLSearchParams(e),n=t.get("share_id")||void 0,o=t.get("email_run_id")||void 0,r=t.get("utm_source")||void 0,u=t.get("utm_medium")||void 0,a=t.get("utm_campaign")||void 0;return{entrypoint:n||r==="share"?"share":o||t.has("d")||r==="email"?"email":r?"campaign":"direct",...n?{share_id:n}:{},...o?{email_run_id:o}:{},...r?{utm_source:r}:{},...u?{utm_medium:u}:{},...a?{utm_campaign:a}:{}}}function c(){return h(typeof window>"u"?"":window.location.search)}function i(e){return`${p}${e}`}function g(){try{return globalThis.crypto.randomUUID()}catch{return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}}function d(e){try{const t=window.sessionStorage.getItem(i(e));if(!t)return null;const n=JSON.parse(t);return n.domain!==e||typeof n.attempt_id!="string"||typeof n.gate_shown_at!="number"||Date.now()-n.gate_shown_at>f?(window.sessionStorage.removeItem(i(e)),null):n}catch{return null}}function m(e){try{window.sessionStorage.setItem(i(e.domain),JSON.stringify(e))}catch{}}function w(e){const t=d(e);if(t)return t;const n={attempt_id:g(),domain:e,gate_shown_at:Date.now(),...c()};return m(n),n}function y(e,t){const n={...w(e),...t};return m(n),n}function T(e){return{auth_attempt_id:e.attempt_id,entrypoint:e.entrypoint,...e.share_id?{share_id:e.share_id}:{},...e.email_run_id?{email_run_id:e.email_run_id}:{},...e.utm_source?{utm_source:e.utm_source}:{},...e.utm_medium?{utm_medium:e.utm_medium}:{},...e.utm_campaign?{utm_campaign:e.utm_campaign}:{}}}function R(e){const t=d(e);if(!t)return null;try{window.sessionStorage.removeItem(i(e))}catch{}return t}function S(e){const t=e.toLowerCase();return t==="invalid_email"?"invalid_email":t.includes("429")||t.includes("rate limit")?"rate_limited":t.includes("otp")||t.includes("verification code")||t.includes("invalid code")||t.includes("expired code")||t.includes("código")||t.includes("codigo")?"invalid_or_expired_code":t.includes("401")||t.includes("unauthorized")?"invalid_credentials":t.includes("409")||t.includes("already exists")?"account_exists":t.includes("network")||t.includes("fetch")?"network":t.includes("cancel")||t.includes("closed")?"cancelled":"unknown"}function I(e){s=e}function M(e,t,n){if(_())try{l.capture(e,{...c(),...t,...s?{report_preview:"reviewer"}:{}},n)}catch{}}export{S as a,w as b,M as c,T as d,R as e,h as r,I as s,y as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ci as p,at as t,ap as v,an as a,d4 as q,ak as s,am as g,al as u,ar as h,au as x,cg as O,d5 as fe,d6 as be,d7 as B,d8 as j,d9 as ye,da as ve,db as $,dc as _e,dd as He,de as Me,df as ke,dg as Pe,dh as qe,di as Te,dj as Ie,cu as Ee,dk as Le,dl as ze,dm as Ae,dn as De,dp as Ue,dq as Ne,dr as Oe,cs as je,r as oe,c as V,j as y,ds as Be,dt as $e,q as Ve,x as Fe,n as se}from"./index-
|
|
1
|
+
import{ci as p,at as t,ap as v,an as a,d4 as q,ak as s,am as g,al as u,ar as h,au as x,cg as O,d5 as fe,d6 as be,d7 as B,d8 as j,d9 as ye,da as ve,db as $,dc as _e,dd as He,de as Me,df as ke,dg as Pe,dh as qe,di as Te,dj as Ie,cu as Ee,dk as Le,dl as ze,dm as Ae,dn as De,dp as Ue,dq as Ne,dr as Oe,cs as je,r as oe,c as V,j as y,ds as Be,dt as $e,q as Ve,x as Fe,n as se}from"./index-CqYwCEJB.js";import{P as We}from"./use-mcp-client-DTpSd0OR.js";const ce=["default-src 'none'","script-src 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval'","style-src 'unsafe-inline'","img-src * data: blob:","media-src * data: blob:","font-src data:","connect-src 'none'","frame-src 'none'","worker-src blob:","form-action 'none'","base-uri 'none'"].join("; ");function Ke(r,e={}){const i=`<meta http-equiv="Content-Security-Policy" content="${Je(e)}">`,n=/<head(\s[^>]*)?>|<HEAD(\s[^>]*)?>/i,l=r.match(n);if(l){const f=(l.index??0)+l[0].length;return r.slice(0,f)+`
|
|
2
2
|
`+i+r.slice(f)}const c=/<html(\s[^>]*)?>|<HTML(\s[^>]*)?>/i,d=r.match(c);if(d){const f=(d.index??0)+d[0].length;return r.slice(0,f)+`
|
|
3
3
|
<head>
|
|
4
4
|
`+i+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,H as h,ac as R,K as m,o as y,z as S,aY as D}from"./index-
|
|
1
|
+
import{c as p,H as h,ac as R,K as m,o as y,z as S,aY as D}from"./index-CqYwCEJB.js";const P=["deco","anthropic","openrouter","llmapi","google","openai-compatible"],M=new Set(P);function O(o){return M.has(o)}const A={anthropic:["claude-haiku-4-5","claude-haiku"],openrouter:["qwen/qwen3.5-flash","anthropic/claude-haiku-4.5","anthropic/claude-haiku","google/gemini-3-flash"],deco:["qwen/qwen3.5-flash","anthropic/claude-haiku"],llmapi:["claude-haiku-4-5","claude-haiku","gpt-4o-mini"],google:["gemini-2.5-flash","gemini-3-flash"]},v={anthropic:["claude-sonnet-5","claude-sonnet"],openrouter:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude-opus-4.8","google/gemini-3-pro"],deco:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude"],llmapi:["claude-sonnet-4-6","claude-sonnet"],google:["gemini-3-pro","gemini-3-flash"]},L={anthropic:["claude-opus-4-8","claude-sonnet-5","claude-sonnet","claude-fable-5"],openrouter:["anthropic/claude-opus-4.8:extended","anthropic/claude-opus-4.8","anthropic/claude-sonnet-5:extended","anthropic/claude-sonnet-5","google/gemini-3-pro","anthropic/claude-fable-5"],deco:["anthropic/claude-opus","anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude-fable"],llmapi:["claude-opus-4-8","claude-opus","claude-sonnet-4-6"],google:["gemini-3-pro"]},T={openrouter:["openai/gpt-image-1","google/gemini-2.0-flash-image"],deco:["openai/gpt-image-1","google/gemini-2.0-flash-image"],llmapi:["gemini-2.5-flash-image","gpt-image-1"],google:["gemini-2.0-flash-image"]},K={openrouter:["perplexity/sonar","perplexity/sonar-pro"],deco:["perplexity/sonar","perplexity/sonar-pro"]},w={openrouter:["perplexity/deep-research","perplexity/sonar-pro"],deco:["perplexity/deep-research","perplexity/sonar-pro"]};function _(o){return o.toLowerCase().replace(/[^a-z0-9]/g,"")}function x(o){return _(o).includes("deepresearch")}const q=["sonar","searchpreview","online"];function I(o){const e=_(o);return e.includes("deepresearch")?!1:q.some(t=>e.includes(t))}function C(o){return o.asyncResearch!==!0&&I(o.modelId)}function F(o){return o.asyncResearch===!0||x(o.modelId)||I(o.modelId)}function u(o,e,t,n){for(const i of t){const s=o.find(a=>a.modelId===i);if(s)return{keyId:e,modelId:s.modelId,title:s.title}}for(const i of t){const s=o.find(a=>a.modelId.includes(i));if(s)return{keyId:e,modelId:s.modelId,title:s.title}}if(n){const i=o.find(n);if(i)return{keyId:e,modelId:i.modelId,title:i.title}}return null}function b(o,e){const t={chat:{fast:null,smart:null,thinking:null},image:null,webSearch:null,deepResearch:null};for(const n of o){const i=e[n.id]??[],s=n.providerId;t.chat.fast||(t.chat.fast=u(i,n.id,A[s]??[])),t.chat.smart||(t.chat.smart=u(i,n.id,v[s]??[])),t.chat.thinking||(t.chat.thinking=u(i,n.id,L[s]??[])),t.image||(t.image=u(i,n.id,T[s]??[],a=>a.capabilities?.includes("image")===!0)),t.webSearch||(t.webSearch=u(i,n.id,K[s]??[],C)),t.deepResearch||(t.deepResearch=u(i,n.id,w[s]??[],F))}return t}function H(o,e){return{queryKey:m.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>await D(o,"AI_PROVIDER_KEY_LIST",{})}}function $(){const o=p.c(7),{org:e}=h(),t=R();let n;o[0]!==e.id?(n=m.aiProviders(e.id),o[0]=e.id,o[1]=n):n=o[1];let i;o[2]!==t?(i=async()=>await t.call("AI_PROVIDERS_LIST",{}),o[2]=t,o[3]=i):i=o[3];let s;o[4]!==n||o[5]!==i?(s={queryKey:n,staleTime:1/0,queryFn:i},o[4]=n,o[5]=i,o[6]=s):s=o[6];const{data:a}=S(s);return a}function N(){const o=p.c(5),{org:e}=h();let t;o[0]!==e.id||o[1]!==e.slug?(t=H(e.slug,e.id),o[0]=e.id,o[1]=e.slug,o[2]=t):t=o[2];const{data:n}=S(t);let i;return o[3]!==n?.keys?(i=n?.keys??[],o[3]=n?.keys,o[4]=i):i=o[4],i}function z(){const o=p.c(2),e=N();let t;return o[0]!==e?(t=e.filter(Q),o[0]=e,o[1]=t):t=o[1],t}function Q(o){return O(o.providerId)}function E(o){const e=p.c(15),{org:t}=h(),n=R();let i;e[0]!==o||e[1]!==t.id?(i=m.aiProviderModels(t.id,o??""),e[0]=o,e[1]=t.id,e[2]=i):i=e[2];const s=!!o;let a;e[3]!==o||e[4]!==n?(a=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o??""}),e[3]=o,e[4]=n,e[5]=a):a=e[5];let r;e[6]!==i||e[7]!==s||e[8]!==a?(r={queryKey:i,enabled:s,staleTime:6e4,queryFn:a},e[6]=i,e[7]=s,e[8]=a,e[9]=r):r=e[9];const{data:l,isLoading:c}=y(r);let d;e[10]!==l?.models?(d=l?.models??[],e[10]=l?.models,e[11]=d):d=e[11];const g=!!o&&c;let f;return e[12]!==d||e[13]!==g?(f={models:d,isLoading:g},e[12]=d,e[13]=g,e[14]=f):f=e[14],f}function Y(o){const e=p.c(8),t=o[0],n=o[1],i=o[2],{models:s}=E(t?.id),{models:a}=E(n?.id),{models:r}=E(i?.id);let l;if(e[0]!==t||e[1]!==n||e[2]!==i||e[3]!==o||e[4]!==s||e[5]!==a||e[6]!==r){const c={};t?.id&&(c[t.id]=s),n?.id&&(c[n.id]=a),i?.id&&(c[i.id]=r),l=b(o,c),e[0]=t,e[1]=n,e[2]=i,e[3]=o,e[4]=s,e[5]=a,e[6]=r,e[7]=l}else l=e[7];return l}function B(o){const e=p.c(11),{org:t}=h(),n=R();let i;e[0]!==o||e[1]!==t.id?(i=m.aiProviderModels(t.id,o),e[0]=o,e[1]=t.id,e[2]=i):i=e[2];let s;e[3]!==o||e[4]!==n?(s=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o}),e[3]=o,e[4]=n,e[5]=s):s=e[5];let a;e[6]!==i||e[7]!==s?(a={queryKey:i,staleTime:6e4,queryFn:s},e[6]=i,e[7]=s,e[8]=a):a=e[8];const{data:r}=S(a);let l;return e[9]!==r?.models?(l=r?.models??[],e[9]=r?.models,e[10]=l):l=e[10],l}export{Y as a,E as b,F as c,N as d,O as e,$ as f,B as g,C as i,b as p,z as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,H as d,p,e as I,K as g,o as E}from"./index-
|
|
1
|
+
import{c,H as d,p,e as I,K as g,o as E}from"./index-CqYwCEJB.js";import{u as y}from"./use-mcp-client-DTpSd0OR.js";import{S as m}from"./constants-dLUUoWH7.js";function f(e,t){if(e?.isError)throw new Error(e.content?.[0]?.text??t);if(!e.structuredContent)throw new Error(t);return e.structuredContent}function S(){const e=c.c(10),{org:t}=d();let n;e[0]!==t.id||e[1]!==t.slug?(n={connectionId:m,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=n):n=e[2];const r=y(n);let o;e[3]!==t.id?(o=g.apiKeysList(t.id),e[3]=t.id,e[4]=o):o=e[4];let s;e[5]!==r?(s=async()=>{const l=await r.callTool({name:"API_KEY_LIST",arguments:{}});return f(l,"Failed to list API keys").items},e[5]=r,e[6]=s):s=e[6];let i;return e[7]!==o||e[8]!==s?(i={queryKey:o,queryFn:s,staleTime:3e4},e[7]=o,e[8]=s,e[9]=i):i=e[9],E(i)}function P(){const e=c.c(11),{org:t}=d();let n;e[0]!==t.id||e[1]!==t.slug?(n={connectionId:m,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=n):n=e[2];const r=y(n),o=p();let s;e[3]!==r?(s=async u=>{const a=await r.callTool({name:"API_KEY_CREATE",arguments:{name:u.name,permissions:u.permissions??{"*":["*"]}}});return f(a,"Failed to create API key")},e[3]=r,e[4]=s):s=e[4];let i;e[5]!==t.id||e[6]!==o?(i=()=>{o.invalidateQueries({queryKey:g.apiKeysList(t.id)})},e[5]=t.id,e[6]=o,e[7]=i):i=e[7];let l;return e[8]!==s||e[9]!==i?(l={mutationFn:s,onSuccess:i},e[8]=s,e[9]=i,e[10]=l):l=e[10],I(l)}function _(){const e=c.c(11),{org:t}=d();let n;e[0]!==t.id||e[1]!==t.slug?(n={connectionId:m,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=n):n=e[2];const r=y(n),o=p();let s;e[3]!==r?(s=async u=>{const a=await r.callTool({name:"API_KEY_DELETE",arguments:{keyId:u}});return f(a,"Failed to delete API key")},e[3]=r,e[4]=s):s=e[4];let i;e[5]!==t.id||e[6]!==o?(i=()=>{o.invalidateQueries({queryKey:g.apiKeysList(t.id)})},e[5]=t.id,e[6]=o,e[7]=i):i=e[7];let l;return e[8]!==s||e[9]!==i?(l={mutationFn:s,onSuccess:i},e[8]=s,e[9]=i,e[10]=l):l=e[10],I(l)}export{S as a,_ as b,P as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as U,H as q,ac as I,K as T,o as Q,p as x,e as y,t as m}from"./index-
|
|
1
|
+
import{c as U,H as q,ac as I,K as T,o as Q,p as x,e as y,t as m}from"./index-CqYwCEJB.js";import{u as z}from"./use-mcp-client-DTpSd0OR.js";import{S as H}from"./constants-dLUUoWH7.js";function J(t){if(t.paramsSchema&&typeof t.paramsSchema=="object")return t;const e={};if(Array.isArray(t.params))for(const s of t.params)e[s.name]={type:s.type,description:s.description,enum:s.enum};else t.params&&typeof t.params=="object"&&Object.assign(e,t.params);return{type:t.type,description:t.description,paramsSchema:e}}function st(t){const e=U.c(12),{org:s}=q(),l=t??H;let a;e[0]!==s.id||e[1]!==s.slug||e[2]!==l?(a={connectionId:l,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=l,e[3]=a):a=e[3];const i=z(a);let n;e[4]!==t?(n=T.toolCall(t??"","TRIGGER_LIST",""),e[4]=t,e[5]=n):n=e[5];let o;e[6]!==i?(o=async()=>{const d=await i.callTool({name:"TRIGGER_LIST",arguments:{}});return(d.structuredContent??d).triggers.map(J)},e[6]=i,e[7]=o):o=e[7];const c=!!t;let r;return e[8]!==n||e[9]!==o||e[10]!==c?(r={queryKey:n,queryFn:o,enabled:c,staleTime:3e4},e[8]=n,e[9]=o,e[10]=c,e[11]=r):r=e[11],Q(r)}function it(t){const e=U.c(9),{org:s}=q(),l=I();let a;e[0]!==s.id||e[1]!==t?(a=T.automations(s.id,t),e[0]=s.id,e[1]=t,e[2]=a):a=e[2];let i;e[3]!==l||e[4]!==t?(i=async()=>(await l.call("AUTOMATION_LIST",t!=null?{virtual_mcp_id:t}:{})).automations,e[3]=l,e[4]=t,e[5]=i):i=e[5];let n;return e[6]!==a||e[7]!==i?(n={queryKey:a,queryFn:i,staleTime:1e4},e[6]=a,e[7]=i,e[8]=n):n=e[8],Q(n)}function ot(t){const e=U.c(10),{org:s}=q(),l=I();let a;e[0]!==t||e[1]!==s.id?(a=T.automation(s.id,t),e[0]=t,e[1]=s.id,e[2]=a):a=e[2];let i;e[3]!==t||e[4]!==l?(i=async()=>(await l.call("AUTOMATION_GET",{id:t})).automation,e[3]=t,e[4]=l,e[5]=i):i=e[5];const n=!!t;let o;return e[6]!==a||e[7]!==i||e[8]!==n?(o={queryKey:a,queryFn:i,enabled:n,staleTime:1e4},e[6]=a,e[7]=i,e[8]=n,e[9]=o):o=e[9],Q(o)}function at(t,e){const s=U.c(12),{org:l}=q(),a=I();let i;s[0]!==t||s[1]!==l.id||s[2]!==e?(i=T.automationRunStats(l.id,t,JSON.stringify(e??{})),s[0]=t,s[1]=l.id,s[2]=e,s[3]=i):i=s[3];let n;s[4]!==t||s[5]!==e||s[6]!==a?(n=async()=>await a.call("AUTOMATION_RUN_STATS",{automation_id:t,...e?.startDate?{startDate:e.startDate}:{},...e?.endDate?{endDate:e.endDate}:{}}),s[4]=t,s[5]=e,s[6]=a,s[7]=n):n=s[7];const o=!!t;let c;return s[8]!==i||s[9]!==n||s[10]!==o?(c={queryKey:i,queryFn:n,enabled:o,staleTime:3e4},s[8]=i,s[9]=n,s[10]=o,s[11]=c):c=s[11],Q(c)}function nt(t){return{name:"New Automation",messages:[],models:{tier:"smart"},temperature:.5,active:!0,virtual_mcp_id:t}}function lt(){const t=U.c(64),{org:e}=q(),s=I(),l=x();let a;t[0]!==e||t[1]!==l?(a=()=>l.invalidateQueries({queryKey:T.automationsAll(e.id)}),t[0]=e,t[1]=l,t[2]=a):a=t[2];const i=a;let n;t[3]!==e||t[4]!==l?(n=u=>l.invalidateQueries({queryKey:T.automation(e.id,u)}),t[3]=e,t[4]=l,t[5]=n):n=t[5];const o=n;let c;t[6]!==s?(c=async u=>await s.call("AUTOMATION_CREATE",u),t[6]=s,t[7]=c):c=t[7];let r;t[8]!==i?(r=()=>{i(),m.success("Automation created successfully")},t[8]=i,t[9]=r):r=t[9];let d;t[10]!==c||t[11]!==r?(d={mutationFn:c,onSuccess:r,onError:X},t[10]=c,t[11]=r,t[12]=d):d=t[12];const D=y(d);let p;t[13]!==s?(p=async u=>await s.call("AUTOMATION_UPDATE",u),t[13]=s,t[14]=p):p=t[14];let A;t[15]!==i||t[16]!==o?(A=(u,f)=>{i(),typeof f.id=="string"&&o(f.id),m.success("Automation updated successfully")},t[15]=i,t[16]=o,t[17]=A):A=t[17];let G;t[18]!==p||t[19]!==A?(G={mutationFn:p,onSuccess:A,onError:W},t[18]=p,t[19]=A,t[20]=G):G=t[20];const j=y(G);let g;t[21]!==s?(g=async u=>await s.call("AUTOMATION_DELETE",{id:u}),t[21]=s,t[22]=g):g=t[22];let _;t[23]!==i||t[24]!==e||t[25]!==l?(_=(u,f)=>{l.removeQueries({queryKey:T.automation(e.id,f)}),i(),m.success("Automation deleted successfully")},t[23]=i,t[24]=e,t[25]=l,t[26]=_):_=t[26];let $;t[27]!==g||t[28]!==_?($={mutationFn:g,onSuccess:_,onError:B},t[27]=g,t[28]=_,t[29]=$):$=t[29];const k=y($);let S;t[30]!==s?(S=async u=>await s.call("AUTOMATION_TRIGGER_ADD",u),t[30]=s,t[31]=S):S=t[31];let E;t[32]!==i||t[33]!==o?(E=u=>{i(),o(u.automation_id)},t[32]=i,t[33]=o,t[34]=E):E=t[34];let K;t[35]!==S||t[36]!==E?(K={mutationFn:S,onSuccess:E},t[35]=S,t[36]=E,t[37]=K):K=t[37];const P=y(K);let O;t[38]!==s?(O=async u=>await s.call("AUTOMATION_TRIGGER_ROTATE_TOKEN",{trigger_id:u.trigger_id}),t[38]=s,t[39]=O):O=t[39];let R;t[40]!==i||t[41]!==o?(R=(u,f)=>{i(),o(f.automation_id)},t[40]=i,t[41]=o,t[42]=R):R=t[42];let C;t[43]!==O||t[44]!==R?(C={mutationFn:O,onSuccess:R},t[43]=O,t[44]=R,t[45]=C):C=t[45];const h=y(C);let F;t[46]!==s?(F=async u=>await s.call("AUTOMATION_TRIGGER_REMOVE",{trigger_id:u.trigger_id}),t[46]=s,t[47]=F):F=t[47];let N;t[48]!==i||t[49]!==o?(N=(u,f)=>{i(),o(f.automation_id)},t[48]=i,t[49]=o,t[50]=N):N=t[50];let b;t[51]!==F||t[52]!==N?(b={mutationFn:F,onSuccess:N},t[51]=F,t[52]=N,t[53]=b):b=t[53];const v=y(b);let L;t[54]!==s?(L={mutationFn:async u=>await s.call("AUTOMATION_RUN",{id:u}),onSuccess:Y,onError:V},t[54]=s,t[55]=L):L=t[55];const w=y(L);let M;return t[56]!==D||t[57]!==k||t[58]!==w||t[59]!==P||t[60]!==v||t[61]!==h||t[62]!==j?(M={create:D,update:j,remove:k,triggerAdd:P,triggerRemove:v,triggerRotateToken:h,run:w},t[56]=D,t[57]=k,t[58]=w,t[59]=P,t[60]=v,t[61]=h,t[62]=j,t[63]=M):M=t[63],M}function V(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to run automation: ${e}`)}function Y(t){t.skipped?m.info(`Automation skipped: ${t.skipped}`):t.error?m.error(`Automation failed: ${t.error}`):m.success("Automation triggered")}function B(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to delete automation: ${e}`)}function W(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to update automation: ${e}`)}function X(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to create automation: ${e}`)}export{st as a,ot as b,it as c,nt as d,at as e,lt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as T,r as o}from"./index-
|
|
1
|
+
import{c as T,r as o}from"./index-CqYwCEJB.js";const y=700;function x(r,l,_){const e=T.c(7),f=y,[a,m]=o.useState(r),[i,S]=o.useState(r),[A,d]=o.useState(!1),t=o.useRef(null);r!==i&&(S(r),A||m(r));let s;e[0]!==f||e[1]!==l?(s=u=>{m(u),d(!0),t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{t.current=null,d(!1),l(u)},f)},e[0]=f,e[1]=l,e[2]=s):s=e[2];const p=s;let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=u=>{m(u),t.current&&clearTimeout(t.current),t.current=null,d(!1)},e[3]=c):c=e[3];const E=c;let n;return e[4]!==a||e[5]!==p?(n=[a,p,E],e[4]=a,e[5]=p,e[6]=n):n=e[6],n}export{x as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,H as C,cc as N,fe as O,cb as S}from"./index-
|
|
1
|
+
import{c as f,H as C,cc as N,fe as O,cb as S}from"./index-CqYwCEJB.js";import{u as I}from"./use-mcp-client-DTpSd0OR.js";import{S as m}from"./constants-dLUUoWH7.js";function E(t){const o=f.c(20);let i;o[0]!==t?(i=t===void 0?{}:t,o[0]=t,o[1]=i):i=o[1];const n=i;let l,s,c,d;o[2]!==n?({binding:l,includeVirtual:c,slug:d,...s}=n,o[2]=n,o[3]=l,o[4]=s,o[5]=c,o[6]=d):(l=o[3],s=o[4],c=o[5],d=o[6]);let e;o[7]!==l||o[8]!==s.additionalToolArgs||o[9]!==c||o[10]!==d?(e={...s.additionalToolArgs},l!==void 0&&(e.binding=l),c!==void 0&&(e.include_virtual=c),d!==void 0&&(e.slug=d),o[7]=l,o[8]=s.additionalToolArgs,o[9]=c,o[10]=d,o[11]=e):e=o[11];let r;o[12]!==e?(r=Object.keys(e).length>0?e:void 0,o[12]=e,o[13]=r):r=o[13];let g;o[14]!==s||o[15]!==r?(g={...s,additionalToolArgs:r},o[14]=s,o[15]=r,o[16]=g):g=o[16];const p=g,{org:u}=C();let a;o[17]!==u.id||o[18]!==u.slug?(a={connectionId:m,orgId:u.id,orgSlug:u.slug},o[17]=u.id,o[18]=u.slug,o[19]=a):a=o[19];const A=I(a);return O(u.id,"CONNECTIONS",A,p)}function _(t){const o=f.c(3),{org:i}=C();let n;o[0]!==i.id||o[1]!==i.slug?(n={connectionId:m,orgId:i.id,orgSlug:i.slug},o[0]=i.id,o[1]=i.slug,o[2]=n):n=o[2];const l=I(n);return S(i.id,"CONNECTIONS",t,l)}function x(){const t=f.c(3),{org:o}=C();let i;t[0]!==o.id||t[1]!==o.slug?(i={connectionId:m,orgId:o.id,orgSlug:o.slug},t[0]=o.id,t[1]=o.slug,t[2]=i):i=t[2];const n=I(i);return N(o.id,"CONNECTIONS",n)}export{_ as a,x as b,E as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as i,r as n}from"./index-
|
|
1
|
+
import{c as i,r as n}from"./index-CqYwCEJB.js";function p(){const e=i.c(3),[s,a]=n.useState(!1);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=async c=>{await navigator.clipboard.writeText(c),a(!0),setTimeout(()=>a(!1),2e3)},e[0]=t):t=e[0];const r=t;let o;return e[1]!==s?(o={handleCopy:r,copied:s},e[1]=s,e[2]=o):o=e[2],o}export{p as u};
|
package/dist/client/assets/{use-create-virtual-mcp-CmLOzAPc.js → use-create-virtual-mcp-ut4kupkD.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as g}from"./index-
|
|
1
|
+
import{c as g}from"./index-CqYwCEJB.js";import{b as p}from"./use-virtual-mcp-DkF-epgM.js";import{c as f}from"./use-navigate-to-agent-C3g5As_j.js";function A(i){const e=g.c(9);let n;e[0]!==i?(n=i===void 0?{}:i,e[0]=i,e[1]=n):n=e[1];const u=n,{navigateOnCreate:d}=u,c=d===void 0?!1:d,t=p(),o=f();let s;e[2]!==t.create||e[3]!==c||e[4]!==o?(s=async()=>{const l=await t.create.mutateAsync({title:"New Agent",description:"AI-driven assistant designed to handle specific tasks",status:"active",connections:[],pinned:!1});return c&&o(l.id,{panel:"settings"}),{id:l.id,virtualMcp:l}},e[2]=t.create,e[3]=c,e[4]=o,e[5]=s):s=e[5];const r=s;let a;return e[6]!==t.create.isPending||e[7]!==r?(a={createVirtualMCP:r,isCreating:t.create.isPending},e[6]=t.create.isPending,e[7]=r,e[8]=a):a=e[8],a}export{A as u};
|
package/dist/client/assets/{use-debounced-autosave-m5uwODsp.js → use-debounced-autosave-6Grvh1pI.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as u}from"./index-
|
|
1
|
+
import{r as u}from"./index-CqYwCEJB.js";function l({save:t,delayMs:n=1e3}){const e=u.useRef(t);e.current=t;const r=u.useRef(null),c=()=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{r.current=null,e.current()},n)},o=()=>(r.current&&(clearTimeout(r.current),r.current=null),e.current());return u.useEffect(()=>()=>{r.current&&(clearTimeout(r.current),r.current=null,e.current())},[]),{schedule:c,flush:o}}export{l as u};
|
package/dist/client/assets/{use-debounced-value-plVEHnvY.js → use-debounced-value-BoEqPWPF.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as m,r as n}from"./index-
|
|
1
|
+
import{c as m,r as n}from"./index-CqYwCEJB.js";function p(e,o){const t=m.c(4),[s,u]=n.useState(e);let c,r;return t[0]!==o||t[1]!==e?(c=()=>{const i=setTimeout(()=>u(e),o);return()=>clearTimeout(i)},r=[e,o],t[0]=o,t[1]=e,t[2]=c,t[3]=r):(c=t[2],r=t[3]),n.useEffect(c,r),s}export{p as u};
|
package/dist/client/assets/{use-decopilot-events-CiP4Kh5i.js → use-decopilot-events-rOBqAfwv.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s}from"./index-
|
|
1
|
+
import{r as s}from"./index-CqYwCEJB.js";import{d as R,D as u}from"./decopilot-sse-pool-DjmIqnOP.js";const f=()=>0;function g(E){const{orgSlug:t,taskId:a,enabled:n=!0,onStep:o,onFinish:S,onTaskStatus:i}=E,l=s.useRef({taskId:a,onStep:o,onFinish:S,onTaskStatus:i});l.current={taskId:a,onStep:o,onFinish:S,onTaskStatus:i};const c=s.useRef(null),p=s.useRef(n),b=s.useRef(t);(!c.current||p.current!==n||b.current!==t)&&(p.current=n,b.current=t,c.current=d=>{if(!n||!t)return()=>{};const k=T=>{let e;try{e=JSON.parse(T.data)}catch{return}const r=l.current;if(!(r.taskId&&e.subject!==r.taskId)){switch(e.type){case u.STEP:r.onStep?.(e);break;case u.FINISH:r.onFinish?.(e);break;case u.THREAD_STATUS:r.onTaskStatus?.(e);break}d()}};return R.subscribe(t,k)}),s.useSyncExternalStore(c.current,f,f)}export{g as u};
|
package/dist/client/assets/{use-delete-connection-BF_53DAx.js → use-delete-connection-Xc8zxGSC.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as oe,b as le,j as n,H as se,p as ie,ac as ce,r as re,t as Y,c9 as ae,ca as de}from"./index-
|
|
1
|
+
import{c as oe,b as le,j as n,H as se,p as ie,ac as ce,r as re,t as Y,c9 as ae,ca as de}from"./index-CqYwCEJB.js";import{c as z,d as G,b as V,f as X,g as Z,e as ee,a as te,A as ne}from"./alert-dialog-ClFGnSbS.js";function ge(B){const e=oe.c(86),{deleteState:s,cancelDelete:a,confirmDelete:d,confirmForceDelete:c}=B,t=le(),k=s.mode==="deleting";let m;e[0]!==a?(m=W=>{W||a()},e[0]=a,e[1]=m):m=e[1];let u;e[2]!==t?(u=t("common.deleteConnectionDialogs.title"),e[2]=t,e[3]=u):u=e[3];let D;e[4]!==u?(D=n.jsx(z,{children:u}),e[4]=u,e[5]=D):D=e[5];let C;e[6]!==t?(C=t("common.deleteConnectionDialogs.description"),e[6]=t,e[7]=C):C=e[7];const w=s.mode==="deleting"&&s.connection.title;let o;e[8]!==w?(o=n.jsx("span",{className:"font-medium text-foreground",children:w}),e[8]=w,e[9]=o):o=e[9];let l;e[10]!==C||e[11]!==o?(l=n.jsxs(G,{children:[C," ",o,"."]}),e[10]=C,e[11]=o,e[12]=l):l=e[12];let i;e[13]!==D||e[14]!==l?(i=n.jsxs(V,{children:[D,l]}),e[13]=D,e[14]=l,e[15]=i):i=e[15];let f;e[16]!==t?(f=t("common.deleteConnectionDialogs.cancel"),e[16]=t,e[17]=f):f=e[17];let r;e[18]!==f?(r=n.jsx(X,{children:f}),e[18]=f,e[19]=r):r=e[19];let g;e[20]!==t?(g=t("common.deleteConnectionDialogs.delete"),e[20]=t,e[21]=g):g=e[21];let x;e[22]!==d||e[23]!==g?(x=n.jsx(Z,{onClick:d,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:g}),e[22]=d,e[23]=g,e[24]=x):x=e[24];let h;e[25]!==r||e[26]!==x?(h=n.jsxs(ee,{children:[r,x]}),e[25]=r,e[26]=x,e[27]=h):h=e[27];let j;e[28]!==h||e[29]!==i?(j=n.jsxs(te,{children:[i,h]}),e[28]=h,e[29]=i,e[30]=j):j=e[30];let p;e[31]!==k||e[32]!==j||e[33]!==m?(p=n.jsx(ne,{open:k,onOpenChange:m,children:j}),e[31]=k,e[32]=j,e[33]=m,e[34]=p):p=e[34];const J=s.mode==="force-deleting";let N;e[35]!==a?(N=W=>{W||a()},e[35]=a,e[36]=N):N=e[36];let E;e[37]!==t?(E=t("common.deleteConnectionDialogs.forceDeleteTitle"),e[37]=t,e[38]=E):E=e[38];let y;e[39]!==E?(y=n.jsx(z,{children:E}),e[39]=E,e[40]=y):y=e[40];let O;e[41]!==t?(O=t("common.deleteConnectionDialogs.forceDeleteDescription"),e[41]=t,e[42]=O):O=e[42];const M=s.mode==="force-deleting"&&s.connection.title;let v;e[43]!==M?(v=n.jsx("span",{className:"font-medium text-foreground",children:M}),e[43]=M,e[44]=v):v=e[44];let S;e[45]!==t?(S=t("common.deleteConnectionDialogs.isUsedByAgents"),e[45]=t,e[46]=S):S=e[46];const P=s.mode==="force-deleting"&&s.agentNames;let T;e[47]!==P?(T=n.jsx("span",{className:"font-medium text-foreground",children:P}),e[47]=P,e[48]=T):T=e[48];let A;e[49]!==O||e[50]!==v||e[51]!==S||e[52]!==T?(A=n.jsxs("p",{children:[O," ",v," ",S," ",T,"."]}),e[49]=O,e[50]=v,e[51]=S,e[52]=T,e[53]=A):A=e[53];let _;e[54]!==t?(_=t("common.deleteConnectionDialogs.forceDeleteWarning"),e[54]=t,e[55]=_):_=e[55];let F;e[56]!==_?(F=n.jsx("p",{className:"mt-2",children:_}),e[56]=_,e[57]=F):F=e[57];let I;e[58]!==A||e[59]!==F?(I=n.jsx(G,{asChild:!0,children:n.jsxs("div",{children:[A,F]})}),e[58]=A,e[59]=F,e[60]=I):I=e[60];let L;e[61]!==y||e[62]!==I?(L=n.jsxs(V,{children:[y,I]}),e[61]=y,e[62]=I,e[63]=L):L=e[63];let b;e[64]!==t?(b=t("common.deleteConnectionDialogs.cancel"),e[64]=t,e[65]=b):b=e[65];let R;e[66]!==b?(R=n.jsx(X,{children:b}),e[66]=b,e[67]=R):R=e[67];let q;e[68]!==t?(q=t("common.deleteConnectionDialogs.deleteAnyway"),e[68]=t,e[69]=q):q=e[69];let U;e[70]!==c||e[71]!==q?(U=n.jsx(Z,{onClick:c,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:q}),e[70]=c,e[71]=q,e[72]=U):U=e[72];let H;e[73]!==R||e[74]!==U?(H=n.jsxs(ee,{children:[R,U]}),e[73]=R,e[74]=U,e[75]=H):H=e[75];let K;e[76]!==L||e[77]!==H?(K=n.jsxs(te,{children:[L,H]}),e[76]=L,e[77]=H,e[78]=K):K=e[78];let $;e[79]!==J||e[80]!==N||e[81]!==K?($=n.jsx(ne,{open:J,onOpenChange:N,children:K}),e[79]=J,e[80]=N,e[81]=K,e[82]=$):$=e[82];let Q;return e[83]!==p||e[84]!==$?(Q=n.jsxs(n.Fragment,{children:[p,$]}),e[83]=p,e[84]=$,e[85]=Q):Q=e[85],Q}function ue({onSuccess:B}={}){const{org:e}=se(),s=ie(),a=ce(),[d,c]=re.useState({mode:"idle"}),t=()=>{s.invalidateQueries({predicate:o=>{const l=o.queryKey;return l[1]===e.id&&l[3]==="collection"&&l[4]==="CONNECTIONS"}})},k=o=>{ae(o),s.invalidateQueries({predicate:l=>l.queryKey[1]===de&&l.queryKey[3]===o})},m=o=>{t(),k(o),Y.success("Connection deleted successfully"),c({mode:"idle"}),B?.()};return{deleteState:d,requestDelete:o=>{c({mode:"deleting",connection:o})},cancelDelete:()=>{c({mode:"idle"})},confirmDelete:async()=>{if(d.mode!=="deleting")return;const o=d.connection;c({mode:"idle"});try{await a.call("COLLECTION_CONNECTIONS_DELETE",{id:o.id}),m(o.id)}catch(l){const i=l instanceof Error?l.message:String(l),f=i.replace(/^Error:\s*/,"");try{const r=JSON.parse(f);if(r.code==="CONNECTION_IN_USE"&&r.agentNames){c({mode:"force-deleting",connection:o,agentNames:r.agentNames.map(g=>`"${g}"`).join(", ")});return}}catch{}Y.error(`Failed to delete connection: ${i}`)}},confirmForceDelete:async()=>{if(d.mode!=="force-deleting")return;const o=d.connection.id;c({mode:"idle"});try{await a.call("COLLECTION_CONNECTIONS_DELETE",{id:o,force:!0}),m(o)}catch(l){const i=l instanceof Error?l.message:String(l);Y.error(`Failed to delete connection: ${i}`)}}}}export{ge as D,ue as u};
|
package/dist/client/assets/{use-deployment-admin-0sYpTIs0.js → use-deployment-admin-CTq0785m.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as s,o as m,K as c}from"./index-
|
|
1
|
+
import{c as s,o as m,K as c}from"./index-CqYwCEJB.js";function l(){const e=s.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={queryKey:c.deploymentAdminMe(),queryFn:d,staleTime:1/0,retry:2},e[0]=t):t=e[0];const{data:a,isLoading:i}=m(t),r=a==="admin",o=a==="unverified";let n;return e[1]!==i||e[2]!==r||e[3]!==o?(n={isAdmin:r,loading:i,needsEmailVerification:o},e[1]=i,e[2]=r,e[3]=o,e[4]=n):n=e[4],n}async function d(){const e=await fetch("/api/_admin/me",{credentials:"include"});if(e.status>=500)throw new Error(`admin/me request failed: ${e.status}`);return e.ok?"admin":(await e.json().catch(u)).error==="email_not_verified"?"unverified":"denied"}function u(){return{}}export{l as u};
|
package/dist/client/assets/{use-destination-route-BLgMOjQj.js → use-destination-route-CrQXgoeu.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,m as o}from"./index-
|
|
1
|
+
import{c as r,m as o}from"./index-CqYwCEJB.js";const n={home:"/$org/home",agents:"/$org/agents/{-$project}/{-$panel}",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",orgIndex:"/$org/"};function c(){const e=r.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:s},e[0]=t):t=e[0],o(t)}function s(e){return e.matches.at(-1)?.fullPath??""}export{n as D,c as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,H as c,ac as r,K as a,o as y,z as F,p as C,e as d}from"./index-
|
|
1
|
+
import{c as u,H as c,ac as r,K as a,o as y,z as F,p as C,e as d}from"./index-CqYwCEJB.js";function E(){const e=u.c(7),{org:n}=c(),o=r();let i;e[0]!==n.id?(i=a.fileConfigs(n.id),e[0]=n.id,e[1]=i):i=e[1];let t;e[2]!==o?(t=()=>o.call("FILE_CONFIG_LIST",{}),e[2]=o,e[3]=t):t=e[3];let s;e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6];const{data:l}=F(s);return l.configs}function I(){const e=u.c(7),{org:n}=c(),o=r();let i;e[0]!==n.id?(i=a.fileConfigs(n.id),e[0]=n.id,e[1]=i):i=e[1];let t;e[2]!==o?(t=()=>o.call("FILE_CONFIG_LIST",{}),e[2]=o,e[3]=t):t=e[3];let s;return e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6],y(s)}function m(){const e=u.c(8),{org:n}=c(),o=r(),i=C();let t;e[0]!==o?(t=f=>o.call("FILE_CONFIG_CREATE",{...f}),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==n||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:a.fileConfigs(n.id)})},e[2]=n,e[3]=i,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=l):l=e[7],d(l)}function q(){const e=u.c(8),{org:n}=c(),o=r(),i=C();let t;e[0]!==o?(t=f=>o.call("FILE_CONFIG_DELETE",{id:f}),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==n||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:a.fileConfigs(n.id)})},e[2]=n,e[3]=i,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=l):l=e[7],d(l)}export{E as a,m as b,q as c,I as u};
|
package/dist/client/assets/{use-infinite-scroll-Ck5qMX6D.js → use-infinite-scroll-DiChJfzU.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bR as l,fg as d,fh as v,r as i}from"./index-
|
|
1
|
+
import{bR as l,fg as d,fh as v,r as i}from"./index-CqYwCEJB.js";var b=class extends l{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:n}=e,u=super.createResult(e,t),{isFetching:r,isRefetching:h,isError:a,isRefetchError:g}=u,s=n.fetchMeta?.fetchMore?.direction,o=a&&s==="forward",P=r&&s==="forward",c=a&&s==="backward",f=r&&s==="backward";return{...u,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:v(t,n.data),hasPreviousPage:d(t,n.data),isFetchNextPageError:o,isFetchingNextPage:P,isFetchPreviousPageError:c,isFetchingPreviousPage:f,isRefetchError:g&&!o&&!c,isRefetching:h&&!P&&!f}}};function p(e,t,n=!1,u){const r=i.useRef(null),h=i.useRef(null),a=i.useRef(e),g=i.useRef(t),s=i.useRef(n),o=i.useRef(u);a.current=e,g.current=t,s.current=n,o.current=u;const[P]=i.useState(()=>c=>{h.current=c,r.current&&(r.current.disconnect(),r.current=null),c&&queueMicrotask(()=>{if(h.current!==c)return;const f=new IntersectionObserver(R=>{R[0]?.isIntersecting&&g.current&&!s.current&&a.current()},{root:o.current?.current??null,rootMargin:"0px 0px 200px 0px"});f.observe(c),r.current=f})});return P}export{b as I,p as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as O,H as T,ac as A,c1 as _,K as I,o as v,p as J,b as Q,e as N,t as p}from"./index-
|
|
1
|
+
import{c as O,H as T,ac as A,c1 as _,K as I,o as v,p as J,b as Q,e as N,t as p}from"./index-CqYwCEJB.js";function j(){const e=O.c(10),{org:u}=T(),d=A(),{capabilities:c,isPrivileged:f}=_(),s=f||!!c["members:manage"];let i;e[0]!==u.id?(i=I.organizationJoinRequests(u.id),e[0]=u.id,e[1]=i):i=e[1];let t;e[2]!==d?(t=()=>d.call("ORGANIZATION_JOIN_REQUEST_LIST",{}),e[2]=d,e[3]=t):t=e[3];const o=!!u.id&&s;let n;e[4]!==i||e[5]!==t||e[6]!==o?(n={queryKey:i,queryFn:t,enabled:o},e[4]=i,e[5]=t,e[6]=o,e[7]=n):n=e[7];const{data:a}=v(n);let l;return e[8]!==a?.requests?(l=a?.requests??[],e[8]=a?.requests,e[9]=l):l=e[9],l}function F(){const e=O.c(29),{org:u,locator:d}=T(),c=A(),f=J(),s=Q();let i;e[0]!==d||e[1]!==u||e[2]!==f?(i=()=>{f.invalidateQueries({queryKey:I.organizationJoinRequests(u.id)}),f.invalidateQueries({queryKey:I.members(d)})},e[0]=d,e[1]=u,e[2]=f,e[3]=i):i=e[3];const t=i;let o;e[4]!==c?(o=r=>c.call("ORGANIZATION_JOIN_REQUEST_APPROVE",{requestId:r}),e[4]=c,e[5]=o):o=e[5];let n;e[6]!==t||e[7]!==s?(n=()=>{t(),p.success(s("settings.joinRequestsSection.approved"))},e[6]=t,e[7]=s,e[8]=n):n=e[8];let a;e[9]!==s?(a=r=>p.error(r instanceof Error?r.message:s("settings.joinRequestsSection.approveFailed")),e[9]=s,e[10]=a):a=e[10];let l;e[11]!==o||e[12]!==n||e[13]!==a?(l={mutationFn:o,onSuccess:n,onError:a},e[11]=o,e[12]=n,e[13]=a,e[14]=l):l=e[14];const y=N(l);let q;e[15]!==c?(q=r=>c.call("ORGANIZATION_JOIN_REQUEST_DENY",{requestId:r}),e[15]=c,e[16]=q):q=e[16];let R;e[17]!==t||e[18]!==s?(R=()=>{t(),p.success(s("settings.joinRequestsSection.denied"))},e[17]=t,e[18]=s,e[19]=R):R=e[19];let g;e[20]!==s?(g=r=>p.error(r instanceof Error?r.message:s("settings.joinRequestsSection.denyFailed")),e[20]=s,e[21]=g):g=e[21];let E;e[22]!==q||e[23]!==R||e[24]!==g?(E={mutationFn:q,onSuccess:R,onError:g},e[22]=q,e[23]=R,e[24]=g,e[25]=E):E=e[25];const S=N(E);let m;return e[26]!==y||e[27]!==S?(m={approve:y,deny:S},e[26]=y,e[27]=S,e[28]=m):m=e[28],m}export{F as a,j as u};
|
package/dist/client/assets/{use-mcp-auth-status-CrmFBt1y.js → use-mcp-auth-status-KOsfoyNu.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as I,b as k,D as L,bb as N,j as o,ab as g,a8 as v,a9 as b,aa as S,H as $,K as A,z as H}from"./index-
|
|
1
|
+
import{c as I,b as k,D as L,bb as N,j as o,ab as g,a8 as v,a9 as b,aa as S,H as $,K as A,z as H}from"./index-CqYwCEJB.js";import{B as T}from"./badge-SPHUmAm8.js";import{g as _}from"./types-CZPi5BXR.js";import{s as P}from"./Eye-BtvpunKY.js";import{s as U,aL as w}from"./agent-icon-BM_KwXAG.js";import{i as O}from"./mcp-oauth-BYjNrGhH.js";const R=[{key:"readOnlyHint",labelKey:"tools.toolsList.readOnly",Icon:P,variant:"secondary"},{key:"destructiveHint",labelKey:"tools.toolsList.destructive",Icon:L,variant:"destructive"},{key:"idempotentHint",labelKey:"tools.toolsList.idempotent",Icon:N,variant:"secondary"},{key:"openWorldHint",labelKey:"tools.toolsList.openWorld",Icon:U,variant:"outline"}];function D(y){const e=I.c(22),{annotations:c,_meta:r}=y,t=k();let l;e[0]!==r?(l=_(r),e[0]=r,e[1]=l):l=e[1];const n=!!l;let s,i,a,u,d;if(e[2]!==c||e[3]!==n||e[4]!==t){d=Symbol.for("react.early_return_sentinel");e:{const x=c?R.filter(h=>c[h.key]===!0):[];if(x.length===0&&!n){d=null;break e}s=S,i="flex gap-1 flex-nowrap",e[10]!==n||e[11]!==t?(a=n&&o.jsxs(g,{children:[o.jsx(v,{asChild:!0,children:o.jsx(T,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:o.jsx(w,{})})}),o.jsx(b,{children:t("tools.toolsList.interactive")})]}),e[10]=n,e[11]=t,e[12]=a):a=e[12];let m;e[13]!==t?(m=h=>{const{labelKey:j,Icon:C,variant:K}=h;return o.jsxs(g,{children:[o.jsx(v,{asChild:!0,children:o.jsx(T,{asChild:!0,variant:K,className:"size-6 p-1",children:o.jsx(C,{})})}),o.jsx(b,{children:t(j)})]},j)},e[13]=t,e[14]=m):m=e[14],u=x.map(m)}e[2]=c,e[3]=n,e[4]=t,e[5]=s,e[6]=i,e[7]=a,e[8]=u,e[9]=d}else s=e[5],i=e[6],a=e[7],u=e[8],d=e[9];if(d!==Symbol.for("react.early_return_sentinel"))return d;let p;e[15]!==i||e[16]!==a||e[17]!==u?(p=o.jsxs("div",{className:i,children:[a,u]}),e[15]=i,e[16]=a,e[17]=u,e[18]=p):p=e[18];let f;return e[19]!==s||e[20]!==p?(f=o.jsx(s,{children:p}),e[19]=s,e[20]=p,e[21]=f):f=e[21],f}function F(y){const e=I.c(11),{connectionId:c}=y,{org:r}=$();let t,l,n;e[0]!==c||e[1]!==r.slug?(t=new URL(`/api/${r.slug}/mcp/${c}`,window.location.origin),n=H,l=A.isMCPAuthenticated(t.href,null),e[0]=c,e[1]=r.slug,e[2]=t,e[3]=l,e[4]=n):(t=e[2],l=e[3],n=e[4]);let s;e[5]!==t||e[6]!==r.id?(s=()=>O({url:t.href,token:null,orgId:r.id}),e[5]=t,e[6]=r.id,e[7]=s):s=e[7];let i;e[8]!==l||e[9]!==s?(i={queryKey:l,queryFn:s},e[8]=l,e[9]=s,e[10]=i):i=e[10];const{data:a}=n(i);return a}export{D as T,F as u};
|