decocms 4.513.8 → 4.514.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{ActiveShapeUtils-uKFYSg4Y.js → ActiveShapeUtils-VLdZwTWH.js} +1 -1
- package/dist/client/assets/{AlertCircle-Q16nTVAa.js → AlertCircle-Chv0zwfM.js} +1 -1
- package/dist/client/assets/{AreaChart-k5WqYBKX.js → AreaChart-xRBpMPmy.js} +1 -1
- package/dist/client/assets/{ArrowLeft-C_dTX_8N.js → ArrowLeft-P5MTc2kM.js} +1 -1
- package/dist/client/assets/{ArrowUp--4P0C-xl.js → ArrowUp-B9orjFiD.js} +1 -1
- package/dist/client/assets/{BarChart-VS3Ye-qY.js → BarChart-BLqplpUZ.js} +1 -1
- package/dist/client/assets/{Building02-Gub-pr-8.js → Building02-Bhj7SR-R.js} +1 -1
- package/dist/client/assets/{CartesianChart-BvH4QiKh.js → CartesianChart-BjPyBEv_.js} +1 -1
- package/dist/client/assets/{CategoricalChart-CTrV8dYV.js → CategoricalChart-sikMJnQl.js} +1 -1
- package/dist/client/assets/{CheckCircle-CQxu_pm9.js → CheckCircle-BOOTvtN7.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-GBLm8Zpl.js → ChevronSelectorVertical-CKvNz838.js} +1 -1
- package/dist/client/assets/{ChevronUp-DK-Gvyk8.js → ChevronUp-UOllpHWY.js} +1 -1
- package/dist/client/assets/{Copy01-EWitDFCf.js → Copy01-CsZzLh_E.js} +1 -1
- package/dist/client/assets/{CreditCard01-wx_z4Iiz.js → CreditCard01-Bji4icQZ.js} +1 -1
- package/dist/client/assets/{DotsVertical-DIT5hu2b.js → DotsVertical-BaN_NJ8K.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-C56oRnGq.js → ErrorBarContext-D_W32jld.js} +1 -1
- package/dist/client/assets/{Globe04-B45_cBRN.js → Globe04-BOt08kHg.js} +1 -1
- package/dist/client/assets/{Image01-BfGAREA7.js → Image01-Ffg_Ow_R.js} +1 -1
- package/dist/client/assets/{Key01-BV7tzZs6.js → Key01-BVuT8y7b.js} +1 -1
- package/dist/client/assets/{Link01-9civFIb9.js → Link01-Du3sgYhY.js} +1 -1
- package/dist/client/assets/{LinkBroken01-DmmKNgpp.js → LinkBroken01-D3nON0AT.js} +1 -1
- package/dist/client/assets/Minus-qI5XA_m8.js +1 -0
- package/dist/client/assets/{Monitor01-BoSs_8gg.js → Monitor01-DPFmNrHU.js} +1 -1
- package/dist/client/assets/{Play-CleWZLOG.js → Play-CKRH5LhK.js} +1 -1
- package/dist/client/assets/{Plus-DQf-jm_3.js → Plus-Dr-ysAIN.js} +1 -1
- package/dist/client/assets/{ReferenceLine-DtJF7ODu.js → ReferenceLine-DTjjPG4Y.js} +1 -1
- package/dist/client/assets/{SearchMd-D0zp0uee.js → SearchMd-D_t1juud.js} +1 -1
- package/dist/client/assets/{Sector-CWBWrJZQ.js → Sector-B0wid3BW.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-B7gta_qY.js → ShoppingBag01-CVVvTwrH.js} +1 -1
- package/dist/client/assets/{Sun-BfjJa3ru.js → Sun-Cgn1IQVJ.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BJyDDPw9.js → SwitchHorizontal01-CEx9qTgC.js} +1 -1
- package/dist/client/assets/Tool01-Dys7Z5ab.js +1 -0
- package/dist/client/assets/{Trash01-Dlk_Sh-H.js → Trash01--FklAmhG.js} +1 -1
- package/dist/client/assets/{Upload01-DlF9Jqso.js → Upload01-BeT7SqGm.js} +1 -1
- package/dist/client/assets/{User01-BcekHhAV.js → User01-C3IPjJ5l.js} +1 -1
- package/dist/client/assets/{UserSquare-cdWcOBLL.js → UserSquare-CaU54i61.js} +1 -1
- package/dist/client/assets/{Users01-BIP-PxGt.js → Users01-BZXT5qAC.js} +1 -1
- package/dist/client/assets/{XClose-L_GNViCD.js → XClose-Cjrx49Z1.js} +1 -1
- package/dist/client/assets/{ZoomOut-B3s5275g.js → ZoomOut-Bi4ExiY7.js} +1 -1
- package/dist/client/assets/{access-gate-CsHtyNGi.js → access-gate-DMrwc1hr.js} +1 -1
- package/dist/client/assets/active-indicator-CCMhAsc_.js +1 -0
- package/dist/client/assets/add-connection-dialog-CtRrIzJJ.js +1 -0
- package/dist/client/assets/agent-analytics-Bnwy_Gqw.js +2 -0
- package/dist/client/assets/agent-app-ZIqUjeyR.js +1 -0
- package/dist/client/assets/agent-assets-DwMNxzbi.js +1 -0
- package/dist/client/assets/agent-automation-02Z5hyQu.js +20 -0
- package/dist/client/assets/agent-automations-CFPQlvb2.js +1 -0
- package/dist/client/assets/agent-connect-sources-Iuxi1z0Z.js +1 -0
- package/dist/client/assets/agent-deck-BbRRpKSj.js +1 -0
- package/dist/client/assets/agent-e2e-CF9xjkgd.js +1 -0
- package/dist/client/assets/agent-experiments-CFFDp5bP.js +1 -0
- package/dist/client/assets/agent-file-BMs4cJrj.js +1 -0
- package/dist/client/assets/agent-hosting-BkhWgDEP.js +1 -0
- package/dist/client/assets/agent-icon-sWZwj0Es.js +1 -0
- package/dist/client/assets/agent-library-B-Wls_Sg.js +1 -0
- package/dist/client/assets/agent-library-file-wqWJ8B3w.js +1 -0
- package/dist/client/assets/agent-monitor-5rJ2SPuO.js +1 -0
- package/dist/client/assets/agent-overview-c6SNk0le.js +1 -0
- package/dist/client/assets/agent-releases-D570Q4Mh.js +2 -0
- package/dist/client/assets/agent-settings-B8J4yqzP.js +1 -0
- package/dist/client/assets/agent-site-editor-code-KKCPuRYa.js +2 -0
- package/dist/client/assets/agent-site-editor-content-lFAgfEzB.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-BtpIiq0Q.js +1 -0
- package/dist/client/assets/{agent-site-editor-DMCFUFgp.js → agent-site-editor-uS5XJ69l.js} +17 -17
- package/dist/client/assets/agent-view-DV9c8H6A.js +1 -0
- package/dist/client/assets/{agent-view-guard-AH_0N8JG.js → agent-view-guard-D6Xp5buw.js} +1 -1
- package/dist/client/assets/agents-list-DOombnHa.js +1 -0
- package/dist/client/assets/ai-providers-tmz_JP24.js +6 -0
- package/dist/client/assets/alert-VfejUnRf.js +1 -0
- package/dist/client/assets/alert-dialog-XdiY2J_y.js +7 -0
- package/dist/client/assets/analytics-sections-ji2C2qln.js +1 -0
- package/dist/client/assets/api-keys-DGmfxaaK.js +1 -0
- package/dist/client/assets/api-keys-wu5nx6nR.js +1 -0
- package/dist/client/assets/app-editor-Cu9bylSk.js +1 -0
- package/dist/client/assets/{asset-utils-Duz2qYol.js → asset-utils-CKM5FMXp.js} +1 -1
- package/dist/client/assets/{auth-BVkTFTOt.js → auth-CR47t1GM.js} +1 -1
- package/dist/client/assets/{auth-catchall-lx3pSppE.js → auth-catchall-B1w-i5RZ.js} +1 -1
- package/dist/client/assets/auth-entry-oRjY0cnq.js +1 -0
- package/dist/client/assets/{auth-split-layout-CFlGWfV0.js → auth-split-layout-CiycErWO.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-POYqGagt.js → authenticate-and-persist-oauth-D5GDklWs.js} +1 -1
- package/dist/client/assets/automation-list-row-CCxYnaw4.js +1 -0
- package/dist/client/assets/automation-runs-CbO3I7fA.js +1 -0
- package/dist/client/assets/automations-DFS7mz__.js +1 -0
- package/dist/client/assets/{autosend-CL2OZPvg.js → autosend-DnRIvL7O.js} +1 -1
- package/dist/client/assets/avatar-x6P8tYtf.js +1 -0
- package/dist/client/assets/badge-0pHsypn4.js +1 -0
- package/dist/client/assets/block-document-D_lHlXH9.js +3 -0
- package/dist/client/assets/{blocks-preview-workspace-context-DcqAhd0P.js → blocks-preview-workspace-context--l_lynd7.js} +1 -1
- package/dist/client/assets/blocks-tab-states-llhicB0-.js +20 -0
- package/dist/client/assets/blog-schema-XUQos-wQ.js +1 -0
- package/dist/client/assets/buckets-FE463cqq.js +1 -0
- package/dist/client/assets/{build-improve-prompt-doc-BJrt-jCW.js → build-improve-prompt-doc-R7g2gEoJ.js} +1 -1
- package/dist/client/assets/{calendar-sxNtZ9wG.js → calendar-Dt43s5dd.js} +1 -1
- package/dist/client/assets/{capability-load-error-CB4I7CRT.js → capability-load-error-BwHvNdC3.js} +1 -1
- package/dist/client/assets/category-editor-ChXNS4Vx.js +1 -0
- package/dist/client/assets/{chart-NRF3lK-V.js → chart-BtbkFiWd.js} +1 -1
- package/dist/client/assets/{chat-context-Dv2E4fnf.js → chat-context-DHXBy843.js} +6 -6
- package/dist/client/assets/{chat-draft-X1dGJc2x.js → chat-draft-DZ2UGoju.js} +1 -1
- package/dist/client/assets/checkbox-J7NM8Nxa.js +1 -0
- package/dist/client/assets/choose-editor-sfJnCc8D.js +1 -0
- package/dist/client/assets/{cli-auth-success-aITDjw-8.js → cli-auth-success-C3tfQ2C3.js} +1 -1
- package/dist/client/assets/{client-icons-DRk6JWY6.js → client-icons-Cv4YCEZF.js} +1 -1
- package/dist/client/assets/cms-settings-editor-DfS-CnoD.js +1 -0
- package/dist/client/assets/{collapsible-DHXUZre4.js → collapsible-C5IcK6_6.js} +1 -1
- package/dist/client/assets/collection-detail-CE3RN1bQ.js +1 -0
- package/dist/client/assets/collection-display-button-XyzcBi3s.js +1 -0
- package/dist/client/assets/{collection-search-Dcze6ySb.js → collection-search-EaUyhqe3.js} +1 -1
- package/dist/client/assets/collection-table-wrapper-AoIZEo7k.js +1 -0
- package/dist/client/assets/collection-tabs-CvrE77Fy.js +1 -0
- package/dist/client/assets/{column-rules-C_Hndp-C.js → column-rules-Uuv3kpod.js} +1 -1
- package/dist/client/assets/combobox-GJu0SOmd.js +1 -0
- package/dist/client/assets/{coming-soon-page-DsS1SnMg.js → coming-soon-page-C252kDGK.js} +1 -1
- package/dist/client/assets/command-CxL64Rh6.js +1 -0
- package/dist/client/assets/companion-mcps-section-dLU7TCqp.js +1 -0
- package/dist/client/assets/config-MIIbcSQe.js +1 -0
- package/dist/client/assets/connect-CPLWL7jD.js +9 -0
- package/dist/client/assets/connect-layout-DKbxeOaE.js +1 -0
- package/dist/client/assets/{connection-CEK3iDim.js → connection-Dwyi3srb.js} +1 -1
- package/dist/client/assets/{connection-card-Zhg6xn7V.js → connection-card-Fd6iPvoW.js} +1 -1
- package/dist/client/assets/connection-detail-2wc1W9tk.js +1 -0
- package/dist/client/assets/connection-form-helpers-Be0GZ2Fr.js +1 -0
- package/dist/client/assets/connections-CXtzZLwk.js +1 -0
- package/dist/client/assets/content-tab-C6Yd-gaA.js +22 -0
- package/dist/client/assets/context-CTmvExSC.js +1 -0
- package/dist/client/assets/{context-menu-BFA8rRfY.js → context-menu-Sl80TmNB.js} +1 -1
- package/dist/client/assets/context-shell-Luc3_ZNi.js +197 -0
- package/dist/client/assets/{core.esm-BO316fgf.js → core.esm-3Ntqpx6o.js} +2 -2
- package/dist/client/assets/{create-organization-dialog-Cb6YY9K7.js → create-organization-dialog-Y8ioappi.js} +1 -1
- package/dist/client/assets/{daily-pulse-C0-1QTxZ.js → daily-pulse-BokyOzAt.js} +1 -1
- package/dist/client/assets/discover-NdJwdhLd.js +1 -0
- package/dist/client/assets/{domain-settings-B_QSN-on.js → domain-settings-DjKwxNmK.js} +1 -1
- package/dist/client/assets/{drawer-DL0G-oy-.js → drawer-2qaZT3bV.js} +1 -1
- package/dist/client/assets/{editor-B62-XQRE.js → editor-D4klHvzy.js} +1 -1
- package/dist/client/assets/editor-classes-BBdx-JSY.js +1 -0
- package/dist/client/assets/{empty-state-JTI0oLk7.js → empty-state-CLeOp2iF.js} +1 -1
- package/dist/client/assets/empty-state-kKu94zqY.js +1 -0
- package/dist/client/assets/{extract-connection-data-BlmKelwb.js → extract-connection-data-BRxw-vDj.js} +1 -1
- package/dist/client/assets/{feature-gate-DQ2MNs-B.js → feature-gate-DtQbinUr.js} +1 -1
- package/dist/client/assets/{feature-paywall-BSXK-EmV.js → feature-paywall-BvbLf2vN.js} +1 -1
- package/dist/client/assets/file-explorer-CRhBeOh6.js +2 -0
- package/dist/client/assets/file-preview-sewMgnQS.js +1 -0
- package/dist/client/assets/file-share-button-CvBuOPBB.js +3 -0
- package/dist/client/assets/{file-type-icon-HF5UcaS2.js → file-type-icon-L81OHsVz.js} +1 -1
- package/dist/client/assets/folder-icon-yKBQ26US.js +2 -0
- package/dist/client/assets/{form-DNjk4sZI.js → form-oexeEAr5.js} +1 -1
- package/dist/client/assets/general-DjPGqCh1.js +1 -0
- package/dist/client/assets/home-x3m8wBSJ.js +1 -0
- package/dist/client/assets/{hosted-publish-feedback-DtU7FOId.js → hosted-publish-feedback-GSHWRd1_.js} +1 -1
- package/dist/client/assets/{icon-button-WP5IJTs8.js → icon-button-DfIZISrS.js} +1 -1
- package/dist/client/assets/{index-B9qNCJbx.js → index-5UrkGUsp.js} +1 -1
- package/dist/client/assets/index-B-ZICxtp.js +1 -0
- package/dist/client/assets/{index-BaQyqQF-.js → index-B50XV3gp.js} +1 -1
- package/dist/client/assets/{index-CVLOGr5B.js → index-BAK2VowX.js} +1 -1
- package/dist/client/assets/index-BNHeiq0Q.js +1 -0
- package/dist/client/assets/index-C0_wKyXa.js +4 -0
- package/dist/client/assets/index-CWfwo1z9.css +1 -0
- package/dist/client/assets/{index-D6gxSs-5.js → index-CYAP4xje.js} +1 -1
- package/dist/client/assets/index-CiDUJoU5.js +4 -0
- package/dist/client/assets/{index-DCOsLpC6.js → index-Cyd8Z3z7.js} +23 -23
- package/dist/client/assets/{index-DtysKpnb.js → index-DlkvGq_Y.js} +1 -1
- package/dist/client/assets/index-DlxFtSYK.js +2 -0
- package/dist/client/assets/{index-a-46Uqqs.js → index-DpopmD-d.js} +1 -1
- package/dist/client/assets/{index-DEQvnIsm.js → index-DwUSgMrk.js} +38 -38
- package/dist/client/assets/{index-C13QaLdF.js → index-no3MX84i.js} +2 -2
- package/dist/client/assets/index-rABmEORU.js +5 -0
- package/dist/client/assets/{index-redirect-dS_ROPu1.js → index-redirect-B1_VIFp-.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BnP8vr6V.js → infiniteQueryObserver-fD19WDlu.js} +1 -1
- package/dist/client/assets/infra-billing-DeTird2m.js +1 -0
- package/dist/client/assets/input-BcdjLg5X.js +17 -0
- package/dist/client/assets/input-YsL3Z14x.js +1 -0
- package/dist/client/assets/{integration-icon-Bysyldtc.js → integration-icon-CGlpUTQF.js} +1 -1
- package/dist/client/assets/{jira-icon-DJANnyLA.js → jira-icon-DpMHb8bf.js} +1 -1
- package/dist/client/assets/{label-Cf2Qy475.js → label-9iahSV8V.js} +1 -1
- package/dist/client/assets/{layout-CQ47j80U.js → layout-4cUTvlr5.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BdSVZFZL.js → legacy-agents-deep-CE1ZIf89.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-BaYQkGoI.js → legacy-main-redirect-BOOZ04G2.js} +1 -1
- package/dist/client/assets/library-BzLsSIpk.js +1 -0
- package/dist/client/assets/{location-BjlyegC2.js → location-V0VwTJTt.js} +1 -1
- package/dist/client/assets/{login-BCT_8F_z.js → login-Di_zn9Rr.js} +1 -1
- package/dist/client/assets/{markdown-DgDY2QmE.js → markdown-DQgkOB--.js} +3 -3
- package/dist/client/assets/{mcp-app-renderer-pDbHkuXF.js → mcp-app-renderer-E0Rb-X88.js} +2 -2
- package/dist/client/assets/{mcp-oauth-C_-ZUSLH.js → mcp-oauth-Bvn81zXq.js} +1 -1
- package/dist/client/assets/{mcp-oauth-aX1L4mRw.js → mcp-oauth-DQ15yEaL.js} +1 -1
- package/dist/client/assets/members-4brJt64W.js +1 -0
- package/dist/client/assets/{memory-CWT1ZdIC.js → memory-C7XTx0yg.js} +2 -2
- package/dist/client/assets/mini-report-page-Dd9QKBqa.js +1 -0
- package/dist/client/assets/mock-board-Ds2_Ixhv.js +81 -0
- package/dist/client/assets/{monaco-editor-DDuHJmyY.js → monaco-editor-pm8M8s-N.js} +2 -2
- package/dist/client/assets/monitoring-GFsyOhLD.js +1 -0
- package/dist/client/assets/monitoring-stats-row-DSg2pS6E.js +1 -0
- package/dist/client/assets/multi-select-uR1MVHE3.js +1 -0
- package/dist/client/assets/{mustache-DrIjKpei.js → mustache-Kcmg3c_A.js} +1 -1
- package/dist/client/assets/{new-project-dialog-DKeFr4C7.js → new-project-dialog-zI2HVFQT.js} +1 -1
- package/dist/client/assets/{oauth-callback-B1G7saOE.js → oauth-callback-B-8An67A.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-mNgeHhki.js → oauth-callback-ai-provider-C2GrwmUm.js} +1 -1
- package/dist/client/assets/onboarding-C5CJ17Jm.js +1 -0
- package/dist/client/assets/openai-conversation-B8Y0DM4W.js +3 -0
- package/dist/client/assets/{optimistic-project-sidebar-views-BaDUYmKF.js → optimistic-project-sidebar-views-DbcREcFy.js} +1 -1
- package/dist/client/assets/{order-monitor-day-C_yvKTz5.js → order-monitor-day-CkXiopdS.js} +1 -1
- package/dist/client/assets/organization-choice-BsHIbX2m.js +1 -0
- package/dist/client/assets/{orgs-BEJlYBbK.js → orgs-CYS6Kjbu.js} +1 -1
- package/dist/client/assets/{page-seo-form-N1KKSZaU.js → page-seo-form-DiFnoI3j.js} +1 -1
- package/dist/client/assets/pair-BVAQv2mv.js +48 -0
- package/dist/client/assets/plan-CFOdn8Gq.js +1 -0
- package/dist/client/assets/{plan-ladder-CFysCUYy.js → plan-ladder-hFJpqSg5.js} +1 -1
- package/dist/client/assets/popover-kKTDdvYS.js +1 -0
- package/dist/client/assets/post-calendar-fLDkPFOG.js +1 -0
- package/dist/client/assets/post-editor-kAgu7v4k.js +2 -0
- package/dist/client/assets/{preview-content-UW33EMCo.js → preview-content-BmpJoYAF.js} +1 -1
- package/dist/client/assets/{preview-dialog-DWW9xaMT.js → preview-dialog-1doPIjMd.js} +1 -1
- package/dist/client/assets/{preview-panel-C2ZH3x01.js → preview-panel-CD98bDar.js} +1 -1
- package/dist/client/assets/preview-tab-CNqKfb-E.js +551 -0
- package/dist/client/assets/product-picker-dialog-D5ZR-4jN.js +1 -0
- package/dist/client/assets/profile-Bx09OmQG.js +1 -0
- package/dist/client/assets/project-app-view-i9ZXlEA5.js +1 -0
- package/dist/client/assets/project-apps-DjY-pfpC.js +1 -0
- package/dist/client/assets/project-feed-AQtypsNP.js +1 -0
- package/dist/client/assets/project-icon-DzYy4wKu.js +1 -0
- package/dist/client/assets/project-reports-CkkyEEQq.js +1 -0
- package/dist/client/assets/project-tasks-C6uZ3VD_.js +1 -0
- package/dist/client/assets/projects-Bl4qWgcF.js +1 -0
- package/dist/client/assets/{projects-empty-state-SWDBQkN4.js → projects-empty-state-VSVQUIX3.js} +1 -1
- package/dist/client/assets/{prompts-oa8BoX1i.js → prompts-XJP0lHjx.js} +1 -1
- package/dist/client/assets/record-editor-DQnsC6va.js +1 -0
- package/dist/client/assets/redirect-editor-zBgb8pHu.js +1 -0
- package/dist/client/assets/{reports-BsyMPz_z.js → reports-BE9tpjsQ.js} +2 -2
- package/dist/client/assets/reports-BkHs6ceB.js +1 -0
- package/dist/client/assets/reports-onboarding-djvrypII.js +1 -0
- package/dist/client/assets/reports-tab-DTd-sN5F.js +2 -0
- package/dist/client/assets/repositories-jscn92Gx.js +1 -0
- package/dist/client/assets/repositories-lD386pbK.js +1 -0
- package/dist/client/assets/{repository-binding-DpSh0bkT.js → repository-binding-Ctv5jACU.js} +1 -1
- package/dist/client/assets/{repository-import-picker-CmGbASze.js → repository-import-picker-DXFAIhGC.js} +1 -1
- package/dist/client/assets/{repository-picker-C86kcY-U.js → repository-picker-C-87Ak81.js} +1 -1
- package/dist/client/assets/{require-capability-D4dR1lZc.js → require-capability-BOhrH32F.js} +1 -1
- package/dist/client/assets/{required-auth-layout-RW5dOh2c.js → required-auth-layout-BOZelCHP.js} +1 -1
- package/dist/client/assets/{reset-password-lP2OGZgV.js → reset-password-D_RSIa3W.js} +1 -1
- package/dist/client/assets/{resizable-DueLEUEm.js → resizable-CcGplCtq.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-B66mDW53.js → resolve-tab-icon-Dy1gZT8r.js} +1 -1
- package/dist/client/assets/review-settings-DJRBjChO.js +1 -0
- package/dist/client/assets/roles-IPKUXurs.js +1 -0
- package/dist/client/assets/route-CEyEwTNJ.js +1 -0
- package/dist/client/assets/route-DYdh0lyb.js +1 -0
- package/dist/client/assets/route-DkxQ33qF.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-BIf8-4ZY.js → sandbox-lifecycle-context-B_iyl6NM.js} +1 -1
- package/dist/client/assets/{schema-BzqS-kNt.js → schema-C9VtMeBM.js} +1 -1
- package/dist/client/assets/{schema-Bcb37BRV.js → schema-CIU-vy-M.js} +1 -1
- package/dist/client/assets/{scroll-area-CIRLWlOA.js → scroll-area-BgPjdFUv.js} +1 -1
- package/dist/client/assets/search-input-6roNTbiB.js +1 -0
- package/dist/client/assets/search-toggle-6uVgZqDd.js +1 -0
- package/dist/client/assets/{secret-ciphertext-6VBjcV3b.js → secret-ciphertext-DFilJK15.js} +1 -1
- package/dist/client/assets/{secret-picker-NhuvO0ke.js → secret-picker-DRod6Suz.js} +1 -1
- package/dist/client/assets/secrets-wckAePsp.js +1 -0
- package/dist/client/assets/sections-editor-DvRXHJYg.js +4 -0
- package/dist/client/assets/{sections-DzoS45qS.js → sections-ogB-svMV.js} +1 -1
- package/dist/client/assets/select-DSSug2fd.js +1 -0
- package/dist/client/assets/select-model-qiewDWcs.js +1 -0
- package/dist/client/assets/seo-editor-BTHpHgYq.js +1 -0
- package/dist/client/assets/{separator-5oK4b-Mi.js → separator-RD1Gkb6T.js} +1 -1
- package/dist/client/assets/settings-tab-_PnJc2CP.js +1 -0
- package/dist/client/assets/sheet-B-tTREXV.js +1 -0
- package/dist/client/assets/shell-layout-CCN75UAi.js +1 -0
- package/dist/client/assets/site-editor-59L0Aud8.js +1 -0
- package/dist/client/assets/{site-editor-toast-CmNIWnCw.js → site-editor-toast-CWvkPJE7.js} +1 -1
- package/dist/client/assets/skills-BTCtj4sL.js +1 -0
- package/dist/client/assets/slider-axq58KTi.js +1 -0
- package/dist/client/assets/{sortable.esm-BuCSUlOk.js → sortable.esm-DUpSK4fM.js} +1 -1
- package/dist/client/assets/{sso-DX8PZk1N.js → sso-DIJKG0Gf.js} +1 -1
- package/dist/client/assets/{suggestion-DRP05M3-.js → suggestion-Be-l0Vt9.js} +2 -2
- package/dist/client/assets/switch-CPLmKtep.js +1 -0
- package/dist/client/assets/{symbol-C1zrmwNF.js → symbol-Bevi1KjX.js} +1 -1
- package/dist/client/assets/synced-repos-CDGSA9__.js +1 -0
- package/dist/client/assets/{tab-icon-glyph-D6mZxF_9.js → tab-icon-glyph-DYfErhsy.js} +1 -1
- package/dist/client/assets/{table-CltsOK_0.js → table-B1WNxn6C.js} +1 -1
- package/dist/client/assets/tabs-CBoEFGVa.js +1 -0
- package/dist/client/assets/task-assignee-avatar-DNUvYoRs.js +1 -0
- package/dist/client/assets/{task-board-DUTGhEiC.js → task-board-CDUMGTb-.js} +1 -1
- package/dist/client/assets/{task-route-BpmTIbg4.js → task-route-BpUah0sB.js} +1 -1
- package/dist/client/assets/{task-status-C72thlpO.js → task-status-Bxq1hmIf.js} +1 -1
- package/dist/client/assets/taskboard-analytics-DiMdGRcj.js +1 -0
- package/dist/client/assets/tasks-C43XRe6P.js +4 -0
- package/dist/client/assets/tasks-D3vb1Iwc.js +1 -0
- package/dist/client/assets/textarea-CQ_TkrdE.js +1 -0
- package/dist/client/assets/thread-analytics-D_JGJCHX.js +1 -0
- package/dist/client/assets/{thread-intent-8kpZLcDE.js → thread-intent-DYNUY6FR.js} +1 -1
- package/dist/client/assets/{thread-route-DTbE-Col.js → thread-route-Cr8HKNDQ.js} +1 -1
- package/dist/client/assets/thread-route-xZCxiRJg.js +1 -0
- package/dist/client/assets/thread-sheet-body-CRJYPU36.js +1 -0
- package/dist/client/assets/{time-range-picker-BJ8aJbM7.js → time-range-picker-CsKO958P.js} +1 -1
- package/dist/client/assets/toggle-group-CaNHwi3W.js +1 -0
- package/dist/client/assets/{tool-namespace-CTeV292R.js → tool-namespace-D8-HQWQE.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BypH-a8F.js → toolbar-icon-button-pGWMZONn.js} +1 -1
- package/dist/client/assets/{tooltip-B6NbTX5P.js → tooltip-7xQKXZXx.js} +1 -1
- package/dist/client/assets/{tooltipContext-DNlXAkZZ.js → tooltipContext-BM_DUTQp.js} +1 -1
- package/dist/client/assets/{track-B0UUbkCz.js → track-5WqIg6Tn.js} +1 -1
- package/dist/client/assets/{types-m1Dsi5sG.js → types-DmsgcF8m.js} +6 -6
- package/dist/client/assets/{url-slug-CYvqbzge.js → url-slug-CMhgSj9A.js} +1 -1
- package/dist/client/assets/{usage-stats-BH4bqLoE.js → usage-stats-BKxLD2_l.js} +2 -2
- package/dist/client/assets/{use-ai-providers-W2Q5vYCk.js → use-ai-providers-Dp4Hkjtx.js} +1 -1
- package/dist/client/assets/{use-automations-Q-O37R-p.js → use-automations-J0jLeJwk.js} +1 -1
- package/dist/client/assets/{use-autosave-BWJWTtk0.js → use-autosave-DmDY7YGA.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-C-XHZ0Dd.js → use-chat-layout-state-DeeoSPAs.js} +1 -1
- package/dist/client/assets/{use-clock-tick-xpCK7CUB.js → use-clock-tick-C6h2MMIi.js} +1 -1
- package/dist/client/assets/use-connect-companion-hQGadPnV.js +1 -0
- package/dist/client/assets/{use-connection-Cqf7M1G6.js → use-connection-mXOC3Xuo.js} +1 -1
- package/dist/client/assets/{use-content-sync-D6XyiV7H.js → use-content-sync-mkwV3WFd.js} +1 -1
- package/dist/client/assets/{use-copy-Dkgb0DtI.js → use-copy-D9a2GtFe.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BZx-8s-I.js → use-create-virtual-mcp-DtlfKOSb.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-B1aPt2Gv.js → use-date-fns-locale-Dv1VJI3I.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Qji0VG0D.js → use-debounced-autosave-BZlwz5E9.js} +1 -1
- package/dist/client/assets/{use-debounced-value-vhgvmVq4.js → use-debounced-value-DJVnkGFg.js} +1 -1
- package/dist/client/assets/{use-deco-credits-k0aTLB-T.js → use-deco-credits-BCAKdpOu.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Czwn8ZVj.js → use-decopilot-events-DYkAp_m7.js} +1 -1
- package/dist/client/assets/use-delete-connection-C00H7ulN.js +1 -0
- package/dist/client/assets/{use-deployment-admin-BrGfiqwj.js → use-deployment-admin-ByxIcPI9.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-oDwhtnfP.js → use-fast-preview-draft-url-apL5qVv1.js} +1 -1
- package/dist/client/assets/{use-file-configs-BIHMmAjW.js → use-file-configs-DJCoczIU.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-SkFacTLx.js → use-inbox-feed-CgTcDvrj.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-B9sczgXI.js → use-infinite-scroll-AsnNIlBn.js} +1 -1
- package/dist/client/assets/{use-join-requests-DALj-BO-.js → use-join-requests-BJCQZeJg.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-Cv3Ydqwx.js → use-main-panel-tabs-CwksoiNK.js} +1 -1
- package/dist/client/assets/{use-main-schema-v8-Jzc_7tOC.js → use-main-schema-v8-Cys0il1A.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BKawZyTw.js → use-mcp-auth-status-mE5X1aBV.js} +1 -1
- package/dist/client/assets/use-mcp-client-CvE7itXw.js +10 -0
- package/dist/client/assets/{use-mcp-prompts-D1rnFTSb.js → use-mcp-prompts-B71f8Oap.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CPGj7A6a.js → use-mcp-tools-DT06t5rX.js} +1 -1
- package/dist/client/assets/{use-members-D-L919KG.js → use-members-CAjyx4dy.js} +1 -1
- package/dist/client/assets/{use-mobile-CSFJ-mhK.js → use-mobile-D6Ou0NEP.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-B-QlLf3R.js → use-navigate-to-agent-DqPVTZYN.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-DWsw6Alp.js → use-open-billing-url-NfOqGe8U.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-Co_fa5Pp.js → use-org-auth-client-D54JUqPS.js} +1 -1
- package/dist/client/assets/{use-org-fs-CAwgni1d.js → use-org-fs-CnHNkGa0.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Cxt6puu1.js → use-org-repo-syncs-B-iMqLC4.js} +1 -1
- package/dist/client/assets/{use-org-sso-BhMczCH6.js → use-org-sso-CWjER8s_.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DZJHfOlV.js → use-organization-roles-BaFyhF9z.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BtOReG0H.js → use-organization-settings-B4xXaxr4.js} +1 -1
- package/dist/client/assets/use-panel-navigate-CwRBX20z.js +1 -0
- package/dist/client/assets/{use-project-native-view-presence-D4pR1T7b.js → use-project-native-view-presence-fFpbo52Y.js} +1 -1
- package/dist/client/assets/{use-project-scope-Dn4doId4.js → use-project-scope-CwXHOags.js} +1 -1
- package/dist/client/assets/use-recent-apps-Bm3Mq1hd.js +1 -0
- package/dist/client/assets/{use-releases-DoIKvYCz.js → use-releases-COy4R50l.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-COAemppC.js → use-reports-diagnostic-Bf7x0h8K.js} +1 -1
- package/dist/client/assets/{use-secrets-CA-kSu-4.js → use-secrets-Db7kDjN7.js} +1 -1
- package/dist/client/assets/use-section-preview-base-yuSGDzoI.js +1 -0
- package/dist/client/assets/use-sidebar-collapsed-2XEtdu2i.js +1 -0
- package/dist/client/assets/{use-tags-CUZ9CIka.js → use-tags-BPUktrrg.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-34pQYq8w.js → use-task-board-analytics-Dt--SO4K.js} +1 -1
- package/dist/client/assets/{use-task-board-events-CmYlpSMI.js → use-task-board-events-DHmzNQpi.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-Cu4afbvW.js → use-task-board-item-prs-DpiWhUD6.js} +1 -1
- package/dist/client/assets/{use-task-metadata-C0A64pXU.js → use-task-metadata-DJlGx95B.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-DXbq3gl0.js → use-thread-analytics-RjdStU-G.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BUN4R0HD.js → use-thread-outputs-hOt5_FqT.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DLjfiCcz.js +1 -0
- package/dist/client/assets/{useQueries-DNx9dZks.js → useQueries-CTk9HeNu.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DJIJLbRA.js +1 -0
- package/dist/client/assets/users-DSisYmgQ.js +1 -0
- package/dist/client/assets/{utils-D-52h1Lf.js → utils-BtlQk18r.js} +1 -1
- package/dist/client/assets/variant-calendar-DM6JVe9j.js +1 -0
- package/dist/client/assets/{variant-draft-pointer-BY7yWri4.js → variant-draft-pointer-DGsbM6lw.js} +1 -1
- package/dist/client/assets/{virtual-mcp-CPoLjKOt.js → virtual-mcp-C-TlHAqf.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-C7xRCtu5.js → watch-sse-pool-wUe9D5Rq.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/server.js +484 -484
- package/package.json +1 -1
- package/dist/client/assets/Tool01-Bp-TbrXi.js +0 -1
- package/dist/client/assets/add-connection-dialog-DwDvS8Uw.js +0 -1
- package/dist/client/assets/agent-analytics-bhSR3DTp.js +0 -2
- package/dist/client/assets/agent-app-D3AENVQT.js +0 -1
- package/dist/client/assets/agent-assets-BwCvdqkQ.js +0 -1
- package/dist/client/assets/agent-automation-BB_6G_CX.js +0 -20
- package/dist/client/assets/agent-automations-1AEGAcHU.js +0 -1
- package/dist/client/assets/agent-connect-sources-Dh_ELrva.js +0 -1
- package/dist/client/assets/agent-deck-Cd8T_xPW.js +0 -1
- package/dist/client/assets/agent-e2e-Bz8yllNo.js +0 -1
- package/dist/client/assets/agent-experiments-BmvDtQNl.js +0 -1
- package/dist/client/assets/agent-file-BoVEwoJD.js +0 -1
- package/dist/client/assets/agent-hosting-DtDQtjNQ.js +0 -1
- package/dist/client/assets/agent-icon-D6wS7rd0.js +0 -1
- package/dist/client/assets/agent-library-BeoJetpR.js +0 -1
- package/dist/client/assets/agent-library-file-DCYJT22p.js +0 -1
- package/dist/client/assets/agent-monitor-DduGwwal.js +0 -1
- package/dist/client/assets/agent-overview-Bj_gDP1X.js +0 -1
- package/dist/client/assets/agent-releases-CAjd1_1N.js +0 -2
- package/dist/client/assets/agent-settings-CnK9fsFs.js +0 -1
- package/dist/client/assets/agent-site-editor-code-C20F9ay-.js +0 -2
- package/dist/client/assets/agent-site-editor-content-ChnnFjhK.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-BxDD-Aar.js +0 -1
- package/dist/client/assets/agent-view-3YMZSj3x.js +0 -1
- package/dist/client/assets/agents-list-ZmW8mXyl.js +0 -1
- package/dist/client/assets/ai-providers-CJqDCuAR.js +0 -6
- package/dist/client/assets/alert-PPdejvI2.js +0 -1
- package/dist/client/assets/alert-dialog-ygFmYcOa.js +0 -7
- package/dist/client/assets/analytics-sections-CveDF2n6.js +0 -1
- package/dist/client/assets/api-keys-BRV_KE0D.js +0 -1
- package/dist/client/assets/api-keys-CbBz_rxa.js +0 -1
- package/dist/client/assets/app-editor-Cio5Pq66.js +0 -1
- package/dist/client/assets/auth-entry-Dz_b1brR.js +0 -1
- package/dist/client/assets/automation-list-row-C69hu-tr.js +0 -1
- package/dist/client/assets/automation-runs-CefmsDTb.js +0 -1
- package/dist/client/assets/automations-C6R9dV-_.js +0 -1
- package/dist/client/assets/avatar-LfY3dprD.js +0 -1
- package/dist/client/assets/badge-CyDHDRPg.js +0 -1
- package/dist/client/assets/block-document-Di6OpT4O.js +0 -3
- package/dist/client/assets/blocks-tab-states-BjRnBrj4.js +0 -20
- package/dist/client/assets/blog-schema-C2heOfy2.js +0 -1
- package/dist/client/assets/board-analytics-fCGfPXJ7.js +0 -1
- package/dist/client/assets/buckets-j1BXX0Sb.js +0 -1
- package/dist/client/assets/category-editor-D_K2FWTB.js +0 -1
- package/dist/client/assets/checkbox-CaUezNgL.js +0 -1
- package/dist/client/assets/choose-editor-CDMfdVL-.js +0 -1
- package/dist/client/assets/cms-settings-editor-C_3APl39.js +0 -1
- package/dist/client/assets/collection-detail-BXabjop0.js +0 -1
- package/dist/client/assets/collection-display-button-Cdfgosxf.js +0 -1
- package/dist/client/assets/collection-table-wrapper-CWGTaBjx.js +0 -1
- package/dist/client/assets/collection-tabs-yg6VVFu9.js +0 -1
- package/dist/client/assets/combobox-B5xPQiKP.js +0 -1
- package/dist/client/assets/command-KXg0ZuU-.js +0 -1
- package/dist/client/assets/companion-mcps-section-Da_S5Z-R.js +0 -1
- package/dist/client/assets/config-UdFHLZs6.js +0 -1
- package/dist/client/assets/connect-CsG4Vqc-.js +0 -9
- package/dist/client/assets/connect-layout-DE_So4kH.js +0 -1
- package/dist/client/assets/connection-detail-lT3XwVgT.js +0 -1
- package/dist/client/assets/connection-form-helpers-DAFP702a.js +0 -1
- package/dist/client/assets/connections-Chwm450B.js +0 -1
- package/dist/client/assets/content-tab-DYpKep2J.js +0 -22
- package/dist/client/assets/context-Bfj5rpO_.js +0 -1
- package/dist/client/assets/context-shell-CUCiFtf6.js +0 -30
- package/dist/client/assets/discover-BqgmKYIf.js +0 -1
- package/dist/client/assets/editor-classes-BAKuqcj0.js +0 -1
- package/dist/client/assets/empty-state-lzzC-d42.js +0 -1
- package/dist/client/assets/file-explorer-CcePNy3q.js +0 -2
- package/dist/client/assets/file-preview-DFkUyLsr.js +0 -1
- package/dist/client/assets/file-share-button-CQ2Uf2PU.js +0 -3
- package/dist/client/assets/flat-project-B3HLdqxT.js +0 -1
- package/dist/client/assets/folder-icon-DaIPH_Nm.js +0 -2
- package/dist/client/assets/general-D2dbnN_J.js +0 -1
- package/dist/client/assets/get-initials-D-f_fDFw.js +0 -1
- package/dist/client/assets/home-CvMudobI.js +0 -1
- package/dist/client/assets/index-BdR6LNyh.js +0 -1
- package/dist/client/assets/index-ChfkzyhC.js +0 -81
- package/dist/client/assets/index-DAYXa7zL.js +0 -2
- package/dist/client/assets/index-DZLfyA8t.js +0 -4
- package/dist/client/assets/index-JvhyBpMR.js +0 -4
- package/dist/client/assets/index-mh7U_AKI.js +0 -1
- package/dist/client/assets/index-pFm7t22i.css +0 -1
- package/dist/client/assets/index-wkvFsHpn.js +0 -5
- package/dist/client/assets/infra-billing-BeLfFWAD.js +0 -1
- package/dist/client/assets/input-Brhdhig1.js +0 -17
- package/dist/client/assets/input-Bu2Qzwzh.js +0 -1
- package/dist/client/assets/library-DTps1LzJ.js +0 -1
- package/dist/client/assets/library-tab-C2aU1qmT.js +0 -168
- package/dist/client/assets/members-DNkbLBWU.js +0 -1
- package/dist/client/assets/mini-report-page-aWQFmVFz.js +0 -1
- package/dist/client/assets/mock-board-DWNU2n2-.js +0 -1
- package/dist/client/assets/monitoring-Cvbt9Za_.js +0 -1
- package/dist/client/assets/monitoring-stats-row-DyiPtUKv.js +0 -1
- package/dist/client/assets/multi-select-CfDYfsZ-.js +0 -1
- package/dist/client/assets/onboarding-kCa3Jkpy.js +0 -1
- package/dist/client/assets/openai-conversation-CLgg2Qod.js +0 -3
- package/dist/client/assets/organization-choice-BpI-_S8p.js +0 -1
- package/dist/client/assets/pair-ByV0vAAs.js +0 -48
- package/dist/client/assets/plan-BtuC_TCe.js +0 -1
- package/dist/client/assets/popover-CjfUWaC0.js +0 -1
- package/dist/client/assets/post-calendar-Bk6dx49G.js +0 -1
- package/dist/client/assets/post-editor-BUlsS3rc.js +0 -2
- package/dist/client/assets/preview-tab-DsWFy6nY.js +0 -551
- package/dist/client/assets/product-picker-dialog-ERcYwJUp.js +0 -1
- package/dist/client/assets/profile-BxA_I2_7.js +0 -1
- package/dist/client/assets/project-app-view-D-3K5nUJ.js +0 -1
- package/dist/client/assets/project-apps-D50B5nYg.js +0 -1
- package/dist/client/assets/project-feed-zQus1O7R.js +0 -1
- package/dist/client/assets/project-icon-ChTT5o1a.js +0 -1
- package/dist/client/assets/project-reports-B3JoeeH6.js +0 -1
- package/dist/client/assets/project-tasks-UglBCJxC.js +0 -1
- package/dist/client/assets/projects-CKCvSpxg.js +0 -1
- package/dist/client/assets/record-editor-C4fMBCCz.js +0 -1
- package/dist/client/assets/redirect-editor-vQorNOA7.js +0 -1
- package/dist/client/assets/reports-BTilnVW5.js +0 -1
- package/dist/client/assets/reports-onboarding-PNNHl11L.js +0 -1
- package/dist/client/assets/reports-tab-DA_8UL9O.js +0 -2
- package/dist/client/assets/repositories-BNK48Uq5.js +0 -1
- package/dist/client/assets/repositories-BpTNBXai.js +0 -1
- package/dist/client/assets/review-settings-JhWFefH3.js +0 -1
- package/dist/client/assets/roles-CT2aKtzc.js +0 -1
- package/dist/client/assets/route-C6Ybfjjx.js +0 -1
- package/dist/client/assets/route-CQTsC5_0.js +0 -1
- package/dist/client/assets/route-K-xr6t6Y.js +0 -1
- package/dist/client/assets/search-input-Br9i_Ft5.js +0 -1
- package/dist/client/assets/search-toggle-Dj92h38-.js +0 -1
- package/dist/client/assets/secrets-D4GRsD5W.js +0 -1
- package/dist/client/assets/sections-editor-C_iMM594.js +0 -4
- package/dist/client/assets/select-ChqJI0MI.js +0 -1
- package/dist/client/assets/select-model-CzvrFpf6.js +0 -1
- package/dist/client/assets/seo-editor-DUiWy8Gm.js +0 -1
- package/dist/client/assets/settings-tab-C1pr-l9r.js +0 -1
- package/dist/client/assets/sheet-CzJFx6b-.js +0 -1
- package/dist/client/assets/shell-layout-DKGS0yWx.js +0 -1
- package/dist/client/assets/site-editor-Bl1xnqtg.js +0 -1
- package/dist/client/assets/skills-DEb_PUzK.js +0 -1
- package/dist/client/assets/slider-BBmtNfbs.js +0 -1
- package/dist/client/assets/switch-CJc_fIEE.js +0 -1
- package/dist/client/assets/synced-repos-GT8waIWj.js +0 -1
- package/dist/client/assets/tabs-D0oiuUhC.js +0 -1
- package/dist/client/assets/task-assignee-avatar-BfUNDI59.js +0 -1
- package/dist/client/assets/taskboard-analytics-DG4Zz1H_.js +0 -1
- package/dist/client/assets/tasks-Cf4EZXG5.js +0 -4
- package/dist/client/assets/tasks-D-91kNhg.js +0 -1
- package/dist/client/assets/textarea-CWgoXXnV.js +0 -1
- package/dist/client/assets/thread-analytics-BjWUFe-q.js +0 -1
- package/dist/client/assets/thread-route-B_SMytnm.js +0 -1
- package/dist/client/assets/thread-sheet-body-OnJZloqZ.js +0 -1
- package/dist/client/assets/toggle-group-BWQRN38D.js +0 -1
- package/dist/client/assets/use-connect-companion-DJ8vj1p7.js +0 -1
- package/dist/client/assets/use-delete-connection-DbRA1FXb.js +0 -1
- package/dist/client/assets/use-ensure-project-folder-BvOs3JKp.js +0 -1
- package/dist/client/assets/use-mcp-client-CAdgJ_QT.js +0 -10
- package/dist/client/assets/use-panel-navigate-BwwjvhNB.js +0 -1
- package/dist/client/assets/use-recent-apps-B_BFFpi_.js +0 -1
- package/dist/client/assets/use-section-preview-base-DAksxTnD.js +0 -1
- package/dist/client/assets/use-sidebar-collapsed-Dv10z2iu.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Bo5dbMM_.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CcFcpWuM.js +0 -1
- package/dist/client/assets/users-DWxowv8y.js +0 -1
- package/dist/client/assets/variant-calendar-BQESjgmt.js +0 -1
- package/dist/client/assets/view-mode-toggle-Bgum-rnB.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as d,bw as st,bx as Ne,j as c,by as rt,bz as Ie,bA as L,bB as lt,bC as j,bD as P,bE as $,bF as at,b4 as Ee,bG as Re,bH as it,bI as ct,bJ as dt,bK as ut,bL as pt,bM as ft,bN as mt,bO as ht,bP as vt,bQ as gt,bR as xt,bS as St,c as ee,l as oe,af as wt}from"./index-DEQvnIsm.js";import{c as Pe}from"./index-BdQq_4o_.js";import{V as yt}from"./index-BaQyqQF-.js";import{t as je,n as Ct}from"./ChevronUp-DK-Gvyk8.js";var bt=[" ","Enter","ArrowUp","ArrowDown"],It=[" ","Enter"],J="Select",[de,ue,Tt]=it(J),[ne]=vt(J,[Tt,Re]),pe=Re(),[Nt,G]=ne(J),[Pt,_t]=ne(J),Me=s=>{const{__scopeSelect:e,children:t,open:o,defaultOpen:n,onOpenChange:a,value:r,defaultValue:l,onValueChange:i,dir:u,name:m,autoComplete:g,disabled:w,required:y,form:S}=s,p=pe(e),[v,C]=d.useState(null),[h,x]=d.useState(null),[F,M]=d.useState(!1),se=st(u),[_,O]=Ne({prop:o,defaultProp:n??!1,onChange:a,caller:J}),[U,q]=Ne({prop:r,defaultProp:l,onChange:i,caller:J}),k=d.useRef(null),B=v?S||!!v.closest("form"):!0,[W,V]=d.useState(new Set),H=Array.from(W).map(E=>E.props.value).join(";");return c.jsx(rt,{...p,children:c.jsxs(Nt,{required:y,scope:e,trigger:v,onTriggerChange:C,valueNode:h,onValueNodeChange:x,valueNodeHasChildren:F,onValueNodeHasChildrenChange:M,contentId:Ie(),value:U,onValueChange:q,open:_,onOpenChange:O,dir:se,triggerPointerDownPosRef:k,disabled:w,children:[c.jsx(de.Provider,{scope:e,children:c.jsx(Pt,{scope:s.__scopeSelect,onNativeOptionAdd:d.useCallback(E=>{V(D=>new Set(D).add(E))},[]),onNativeOptionRemove:d.useCallback(E=>{V(D=>{const z=new Set(D);return z.delete(E),z})},[]),children:t})}),B?c.jsxs(et,{"aria-hidden":!0,required:y,tabIndex:-1,name:m,autoComplete:g,value:U,onChange:E=>q(E.target.value),disabled:w,form:S,children:[U===void 0?c.jsx("option",{value:""}):null,Array.from(W)]},H):null]})})};Me.displayName=J;var Ae="SelectTrigger",Oe=d.forwardRef((s,e)=>{const{__scopeSelect:t,disabled:o=!1,...n}=s,a=pe(t),r=G(Ae,t),l=r.disabled||o,i=L(e,r.onTriggerChange),u=ue(t),m=d.useRef("touch"),[g,w,y]=ot(p=>{const v=u().filter(x=>!x.disabled),C=v.find(x=>x.value===r.value),h=nt(v,p,C);h!==void 0&&r.onValueChange(h.value)}),S=p=>{l||(r.onOpenChange(!0),y()),p&&(r.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return c.jsx(lt,{asChild:!0,...a,children:c.jsx(j.button,{type:"button",role:"combobox","aria-controls":r.contentId,"aria-expanded":r.open,"aria-required":r.required,"aria-autocomplete":"none",dir:r.dir,"data-state":r.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":tt(r.value)?"":void 0,...n,ref:i,onClick:P(n.onClick,p=>{p.currentTarget.focus(),m.current!=="mouse"&&S(p)}),onPointerDown:P(n.onPointerDown,p=>{m.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(S(p),p.preventDefault())}),onKeyDown:P(n.onKeyDown,p=>{const v=g.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&w(p.key),!(v&&p.key===" ")&&bt.includes(p.key)&&(S(),p.preventDefault())})})})});Oe.displayName=Ae;var De="SelectValue",Le=d.forwardRef((s,e)=>{const{__scopeSelect:t,className:o,style:n,children:a,placeholder:r="",...l}=s,i=G(De,t),{onValueNodeHasChildrenChange:u}=i,m=a!==void 0,g=L(e,i.onValueNodeChange);return $(()=>{u(m)},[u,m]),c.jsx(j.span,{...l,ref:g,style:{pointerEvents:"none"},children:tt(i.value)?c.jsx(c.Fragment,{children:r}):a})});Le.displayName=De;var Et="SelectIcon",ke=d.forwardRef((s,e)=>{const{__scopeSelect:t,children:o,...n}=s;return c.jsx(j.span,{"aria-hidden":!0,...n,ref:e,children:o||"▼"})});ke.displayName=Et;var Rt="SelectPortal",Be=s=>c.jsx(at,{asChild:!0,...s});Be.displayName=Rt;var Q="SelectContent",Ve=d.forwardRef((s,e)=>{const t=G(Q,s.__scopeSelect),[o,n]=d.useState();if($(()=>{n(new DocumentFragment)},[]),!t.open){const a=o;return a?Ee.createPortal(c.jsx(He,{scope:s.__scopeSelect,children:c.jsx(de.Slot,{scope:s.__scopeSelect,children:c.jsx("div",{children:s.children})})}),a):null}return c.jsx(ze,{...s,ref:e})});Ve.displayName=Q;var A=10,[He,Y]=ne(Q),jt="SelectContentImpl",Mt=gt("SelectContent.RemoveScroll"),ze=d.forwardRef((s,e)=>{const{__scopeSelect:t,position:o="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:a,onPointerDownOutside:r,side:l,sideOffset:i,align:u,alignOffset:m,arrowPadding:g,collisionBoundary:w,collisionPadding:y,sticky:S,hideWhenDetached:p,avoidCollisions:v,...C}=s,h=G(Q,t),[x,F]=d.useState(null),[M,se]=d.useState(null),_=L(e,f=>F(f)),[O,U]=d.useState(null),[q,k]=d.useState(null),B=ue(t),[W,V]=d.useState(!1),H=d.useRef(!1);d.useEffect(()=>{if(x)return ut(x)},[x]),pt();const E=d.useCallback(f=>{const[T,...R]=B().map(N=>N.ref.current),[b]=R.slice(-1),I=document.activeElement;for(const N of f)if(N===I||(N?.scrollIntoView({block:"nearest"}),N===T&&M&&(M.scrollTop=0),N===b&&M&&(M.scrollTop=M.scrollHeight),N?.focus(),document.activeElement!==I))return},[B,M]),D=d.useCallback(()=>E([O,x]),[E,O,x]);d.useEffect(()=>{W&&D()},[W,D]);const{onOpenChange:z,triggerPointerDownPosRef:K}=h;d.useEffect(()=>{if(x){let f={x:0,y:0};const T=b=>{f={x:Math.abs(Math.round(b.pageX)-(K.current?.x??0)),y:Math.abs(Math.round(b.pageY)-(K.current?.y??0))}},R=b=>{f.x<=10&&f.y<=10?b.preventDefault():x.contains(b.target)||z(!1),document.removeEventListener("pointermove",T),K.current=null};return K.current!==null&&(document.addEventListener("pointermove",T),document.addEventListener("pointerup",R,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",T),document.removeEventListener("pointerup",R,{capture:!0})}}},[x,z,K]),d.useEffect(()=>{const f=()=>z(!1);return window.addEventListener("blur",f),window.addEventListener("resize",f),()=>{window.removeEventListener("blur",f),window.removeEventListener("resize",f)}},[z]);const[fe,ae]=ot(f=>{const T=B().filter(I=>!I.disabled),R=T.find(I=>I.ref.current===document.activeElement),b=nt(T,f,R);b&&setTimeout(()=>b.ref.current.focus())}),me=d.useCallback((f,T,R)=>{const b=!H.current&&!R;(h.value!==void 0&&h.value===T||b)&&(U(f),b&&(H.current=!0))},[h.value]),he=d.useCallback(()=>x?.focus(),[x]),te=d.useCallback((f,T,R)=>{const b=!H.current&&!R;(h.value!==void 0&&h.value===T||b)&&k(f)},[h.value]),ie=o==="popper"?Se:Fe,re=ie===Se?{side:l,sideOffset:i,align:u,alignOffset:m,arrowPadding:g,collisionBoundary:w,collisionPadding:y,sticky:S,hideWhenDetached:p,avoidCollisions:v}:{};return c.jsx(He,{scope:t,content:x,viewport:M,onViewportChange:se,itemRefCallback:me,selectedItem:O,onItemLeave:he,itemTextRefCallback:te,focusSelectedItem:D,selectedItemText:q,position:o,isPositioned:W,searchRef:fe,children:c.jsx(ft,{as:Mt,allowPinchZoom:!0,children:c.jsx(mt,{asChild:!0,trapped:h.open,onMountAutoFocus:f=>{f.preventDefault()},onUnmountAutoFocus:P(n,f=>{h.trigger?.focus({preventScroll:!0}),f.preventDefault()}),children:c.jsx(ht,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:r,onFocusOutside:f=>f.preventDefault(),onDismiss:()=>h.onOpenChange(!1),children:c.jsx(ie,{role:"listbox",id:h.contentId,"data-state":h.open?"open":"closed",dir:h.dir,onContextMenu:f=>f.preventDefault(),...C,...re,onPlaced:()=>V(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:P(C.onKeyDown,f=>{const T=f.ctrlKey||f.altKey||f.metaKey;if(f.key==="Tab"&&f.preventDefault(),!T&&f.key.length===1&&ae(f.key),["ArrowUp","ArrowDown","Home","End"].includes(f.key)){let b=B().filter(I=>!I.disabled).map(I=>I.ref.current);if(["ArrowUp","End"].includes(f.key)&&(b=b.slice().reverse()),["ArrowUp","ArrowDown"].includes(f.key)){const I=f.target,N=b.indexOf(I);b=b.slice(N+1)}setTimeout(()=>E(b)),f.preventDefault()}})})})})})})});ze.displayName=jt;var At="SelectItemAlignedPosition",Fe=d.forwardRef((s,e)=>{const{__scopeSelect:t,onPlaced:o,...n}=s,a=G(Q,t),r=Y(Q,t),[l,i]=d.useState(null),[u,m]=d.useState(null),g=L(e,_=>m(_)),w=ue(t),y=d.useRef(!1),S=d.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:C,focusSelectedItem:h}=r,x=d.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&u&&p&&v&&C){const _=a.trigger.getBoundingClientRect(),O=u.getBoundingClientRect(),U=a.valueNode.getBoundingClientRect(),q=C.getBoundingClientRect();if(a.dir!=="rtl"){const I=q.left-O.left,N=U.left-I,X=_.left-N,Z=_.width+X,ve=Math.max(Z,O.width),ge=window.innerWidth-A,xe=Pe(N,[A,Math.max(A,ge-ve)]);l.style.minWidth=Z+"px",l.style.left=xe+"px"}else{const I=O.right-q.right,N=window.innerWidth-U.right-I,X=window.innerWidth-_.right-N,Z=_.width+X,ve=Math.max(Z,O.width),ge=window.innerWidth-A,xe=Pe(N,[A,Math.max(A,ge-ve)]);l.style.minWidth=Z+"px",l.style.right=xe+"px"}const k=w(),B=window.innerHeight-A*2,W=p.scrollHeight,V=window.getComputedStyle(u),H=parseInt(V.borderTopWidth,10),E=parseInt(V.paddingTop,10),D=parseInt(V.borderBottomWidth,10),z=parseInt(V.paddingBottom,10),K=H+E+W+z+D,fe=Math.min(v.offsetHeight*5,K),ae=window.getComputedStyle(p),me=parseInt(ae.paddingTop,10),he=parseInt(ae.paddingBottom,10),te=_.top+_.height/2-A,ie=B-te,re=v.offsetHeight/2,f=v.offsetTop+re,T=H+E+f,R=K-T;if(T<=te){const I=k.length>0&&v===k[k.length-1].ref.current;l.style.bottom="0px";const N=u.clientHeight-p.offsetTop-p.offsetHeight,X=Math.max(ie,re+(I?he:0)+N+D),Z=T+X;l.style.height=Z+"px"}else{const I=k.length>0&&v===k[0].ref.current;l.style.top="0px";const X=Math.max(te,H+p.offsetTop+(I?me:0)+re)+R;l.style.height=X+"px",p.scrollTop=T-te+p.offsetTop}l.style.margin=`${A}px 0`,l.style.minHeight=fe+"px",l.style.maxHeight=B+"px",o?.(),requestAnimationFrame(()=>y.current=!0)}},[w,a.trigger,a.valueNode,l,u,p,v,C,a.dir,o]);$(()=>x(),[x]);const[F,M]=d.useState();$(()=>{u&&M(window.getComputedStyle(u).zIndex)},[u]);const se=d.useCallback(_=>{_&&S.current===!0&&(x(),h?.(),S.current=!1)},[x,h]);return c.jsx(Dt,{scope:t,contentWrapper:l,shouldExpandOnScrollRef:y,onScrollButtonChange:se,children:c.jsx("div",{ref:i,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:F},children:c.jsx(j.div,{...n,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})});Fe.displayName=At;var Ot="SelectPopperPosition",Se=d.forwardRef((s,e)=>{const{__scopeSelect:t,align:o="start",collisionPadding:n=A,...a}=s,r=pe(t);return c.jsx(xt,{...r,...a,ref:e,align:o,collisionPadding:n,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Se.displayName=Ot;var[Dt,Te]=ne(Q,{}),we="SelectViewport",Ue=d.forwardRef((s,e)=>{const{__scopeSelect:t,nonce:o,...n}=s,a=Y(we,t),r=Te(we,t),l=L(e,a.onViewportChange),i=d.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),c.jsx(de.Slot,{scope:t,children:c.jsx(j.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:P(n.onScroll,u=>{const m=u.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:w}=r;if(w?.current&&g){const y=Math.abs(i.current-m.scrollTop);if(y>0){const S=window.innerHeight-A*2,p=parseFloat(g.style.minHeight),v=parseFloat(g.style.height),C=Math.max(p,v);if(C<S){const h=C+y,x=Math.min(S,h),F=h-x;g.style.height=x+"px",g.style.bottom==="0px"&&(m.scrollTop=F>0?F:0,g.style.justifyContent="flex-end")}}}i.current=m.scrollTop})})})]})});Ue.displayName=we;var We="SelectGroup",[Lt,kt]=ne(We),Bt=d.forwardRef((s,e)=>{const{__scopeSelect:t,...o}=s,n=Ie();return c.jsx(Lt,{scope:t,id:n,children:c.jsx(j.div,{role:"group","aria-labelledby":n,...o,ref:e})})});Bt.displayName=We;var Ke="SelectLabel",Vt=d.forwardRef((s,e)=>{const{__scopeSelect:t,...o}=s,n=kt(Ke,t);return c.jsx(j.div,{id:n.id,...o,ref:e})});Vt.displayName=Ke;var ce="SelectItem",[Ht,$e]=ne(ce),Ge=d.forwardRef((s,e)=>{const{__scopeSelect:t,value:o,disabled:n=!1,textValue:a,...r}=s,l=G(ce,t),i=Y(ce,t),u=l.value===o,[m,g]=d.useState(a??""),[w,y]=d.useState(!1),S=L(e,h=>i.itemRefCallback?.(h,o,n)),p=Ie(),v=d.useRef("touch"),C=()=>{n||(l.onValueChange(o),l.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(Ht,{scope:t,value:o,disabled:n,textId:p,isSelected:u,onItemTextChange:d.useCallback(h=>{g(x=>x||(h?.textContent??"").trim())},[]),children:c.jsx(de.ItemSlot,{scope:t,value:o,disabled:n,textValue:m,children:c.jsx(j.div,{role:"option","aria-labelledby":p,"data-highlighted":w?"":void 0,"aria-selected":u&&w,"data-state":u?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...r,ref:S,onFocus:P(r.onFocus,()=>y(!0)),onBlur:P(r.onBlur,()=>y(!1)),onClick:P(r.onClick,()=>{v.current!=="mouse"&&C()}),onPointerUp:P(r.onPointerUp,()=>{v.current==="mouse"&&C()}),onPointerDown:P(r.onPointerDown,h=>{v.current=h.pointerType}),onPointerMove:P(r.onPointerMove,h=>{v.current=h.pointerType,n?i.onItemLeave?.():v.current==="mouse"&&h.currentTarget.focus({preventScroll:!0})}),onPointerLeave:P(r.onPointerLeave,h=>{h.currentTarget===document.activeElement&&i.onItemLeave?.()}),onKeyDown:P(r.onKeyDown,h=>{i.searchRef?.current!==""&&h.key===" "||(It.includes(h.key)&&C(),h.key===" "&&h.preventDefault())})})})})});Ge.displayName=ce;var le="SelectItemText",Ye=d.forwardRef((s,e)=>{const{__scopeSelect:t,className:o,style:n,...a}=s,r=G(le,t),l=Y(le,t),i=$e(le,t),u=_t(le,t),[m,g]=d.useState(null),w=L(e,C=>g(C),i.onItemTextChange,C=>l.itemTextRefCallback?.(C,i.value,i.disabled)),y=m?.textContent,S=d.useMemo(()=>c.jsx("option",{value:i.value,disabled:i.disabled,children:y},i.value),[i.disabled,i.value,y]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=u;return $(()=>(p(S),()=>v(S)),[p,v,S]),c.jsxs(c.Fragment,{children:[c.jsx(j.span,{id:i.textId,...a,ref:w}),i.isSelected&&r.valueNode&&!r.valueNodeHasChildren?Ee.createPortal(a.children,r.valueNode):null]})});Ye.displayName=le;var qe="SelectItemIndicator",Xe=d.forwardRef((s,e)=>{const{__scopeSelect:t,...o}=s;return $e(qe,t).isSelected?c.jsx(j.span,{"aria-hidden":!0,...o,ref:e}):null});Xe.displayName=qe;var ye="SelectScrollUpButton",Ze=d.forwardRef((s,e)=>{const t=Y(ye,s.__scopeSelect),o=Te(ye,s.__scopeSelect),[n,a]=d.useState(!1),r=L(e,o.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let l=function(){const u=i.scrollTop>0;a(u)};const i=t.viewport;return l(),i.addEventListener("scroll",l),()=>i.removeEventListener("scroll",l)}},[t.viewport,t.isPositioned]),n?c.jsx(Qe,{...s,ref:r,onAutoScroll:()=>{const{viewport:l,selectedItem:i}=t;l&&i&&(l.scrollTop=l.scrollTop-i.offsetHeight)}}):null});Ze.displayName=ye;var Ce="SelectScrollDownButton",Je=d.forwardRef((s,e)=>{const t=Y(Ce,s.__scopeSelect),o=Te(Ce,s.__scopeSelect),[n,a]=d.useState(!1),r=L(e,o.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let l=function(){const u=i.scrollHeight-i.clientHeight,m=Math.ceil(i.scrollTop)<u;a(m)};const i=t.viewport;return l(),i.addEventListener("scroll",l),()=>i.removeEventListener("scroll",l)}},[t.viewport,t.isPositioned]),n?c.jsx(Qe,{...s,ref:r,onAutoScroll:()=>{const{viewport:l,selectedItem:i}=t;l&&i&&(l.scrollTop=l.scrollTop+i.offsetHeight)}}):null});Je.displayName=Ce;var Qe=d.forwardRef((s,e)=>{const{__scopeSelect:t,onAutoScroll:o,...n}=s,a=Y("SelectScrollButton",t),r=d.useRef(null),l=ue(t),i=d.useCallback(()=>{r.current!==null&&(window.clearInterval(r.current),r.current=null)},[]);return d.useEffect(()=>()=>i(),[i]),$(()=>{l().find(m=>m.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),c.jsx(j.div,{"aria-hidden":!0,...n,ref:e,style:{flexShrink:0,...n.style},onPointerDown:P(n.onPointerDown,()=>{r.current===null&&(r.current=window.setInterval(o,50))}),onPointerMove:P(n.onPointerMove,()=>{a.onItemLeave?.(),r.current===null&&(r.current=window.setInterval(o,50))}),onPointerLeave:P(n.onPointerLeave,()=>{i()})})}),zt="SelectSeparator",Ft=d.forwardRef((s,e)=>{const{__scopeSelect:t,...o}=s;return c.jsx(j.div,{"aria-hidden":!0,...o,ref:e})});Ft.displayName=zt;var be="SelectArrow",Ut=d.forwardRef((s,e)=>{const{__scopeSelect:t,...o}=s,n=pe(t),a=G(be,t),r=Y(be,t);return a.open&&r.position==="popper"?c.jsx(St,{...n,...o,ref:e}):null});Ut.displayName=be;var Wt="SelectBubbleInput",et=d.forwardRef(({__scopeSelect:s,value:e,...t},o)=>{const n=d.useRef(null),a=L(o,n),r=ct(e);return d.useEffect(()=>{const l=n.current;if(!l)return;const i=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(i,"value").set;if(r!==e&&m){const g=new Event("change",{bubbles:!0});m.call(l,e),l.dispatchEvent(g)}},[r,e]),c.jsx(j.select,{...t,style:{...yt,...t.style},ref:a,defaultValue:e})});et.displayName=Wt;function tt(s){return s===""||s===void 0}function ot(s){const e=dt(s),t=d.useRef(""),o=d.useRef(0),n=d.useCallback(r=>{const l=t.current+r;e(l),(function i(u){t.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>i(""),1e3))})(l)},[e]),a=d.useCallback(()=>{t.current="",window.clearTimeout(o.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(o.current),[]),[t,n,a]}function nt(s,e,t){const n=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,a=t?s.indexOf(t):-1;let r=Kt(s,Math.max(a,0));n.length===1&&(r=r.filter(u=>u!==t));const i=r.find(u=>u.textValue.toLowerCase().startsWith(n.toLowerCase()));return i!==t?i:void 0}function Kt(s,e){return s.map((t,o)=>s[(e+o)%s.length])}var $t=Me,Gt=Oe,Yt=Le,qt=ke,Xt=Be,Zt=Ve,Jt=Ue,Qt=Ge,_e=Ye,eo=Xe,to=Ze,oo=Je;function co(s){const e=ee.c(4);let t;e[0]!==s?({...t}=s,e[0]=s,e[1]=t):t=e[1];let o;return e[2]!==t?(o=c.jsx($t,{"data-slot":"select",...t}),e[2]=t,e[3]=o):o=e[3],o}function uo(s){const e=ee.c(4);let t;e[0]!==s?({...t}=s,e[0]=s,e[1]=t):t=e[1];let o;return e[2]!==t?(o=c.jsx(Yt,{"data-slot":"select-value",...t}),e[2]=t,e[3]=o):o=e[3],o}function po(s){const e=ee.c(13);let t,o,n,a;e[0]!==s?({className:o,size:a,children:t,...n}=s,e[0]=s,e[1]=t,e[2]=o,e[3]=n,e[4]=a):(t=e[1],o=e[2],n=e[3],a=e[4]);const r=a===void 0?"default":a;let l;e[5]!==o?(l=oe("data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]: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 hover:bg-[var(--studio-outline-hover-background)] hover:text-accent-foreground flex w-fit items-center justify-between gap-2 rounded-[var(--studio-control-radius,var(--radius-lg))] bg-[var(--studio-input-background)] px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[2px] card-shadow disabled:opacity-50 data-[size=default]:h-[var(--studio-control-height,2rem)] data-[size=sm]:h-7 data-[size=xs]:h-6 data-[size=xs]:px-2.5 data-[size=xs]:py-1.5 data-[size=xs]:rounded-[var(--studio-control-radius,var(--radius-lg))] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),e[5]=o,e[6]=l):l=e[6];let i;e[7]===Symbol.for("react.memo_cache_sentinel")?(i=c.jsx(qt,{asChild:!0,children:c.jsx(je,{className:"size-4 opacity-50"})}),e[7]=i):i=e[7];let u;return e[8]!==t||e[9]!==n||e[10]!==r||e[11]!==l?(u=c.jsxs(Gt,{"data-slot":"select-trigger","data-size":r,className:l,...n,children:[t,i]}),e[8]=t,e[9]=n,e[10]=r,e[11]=l,e[12]=u):u=e[12],u}function fo(s){const e=ee.c(25);let t,o,n,a,r;e[0]!==s?({className:o,children:t,position:a,hideScrollButtons:r,...n}=s,e[0]=s,e[1]=t,e[2]=o,e[3]=n,e[4]=a,e[5]=r):(t=e[1],o=e[2],n=e[3],a=e[4],r=e[5]);const l=a===void 0?"popper":a,i=r===void 0?!1:r,u=l==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1";let m;e[6]!==o||e[7]!==u?(m=oe("notranslate bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-[var(--studio-surface-radius,var(--radius-lg))] border shadow-md",u,o),e[6]=o,e[7]=u,e[8]=m):m=e[8];let g;e[9]!==i?(g=!i&&c.jsx(no,{}),e[9]=i,e[10]=g):g=e[10];const w=l==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1";let y;e[11]!==w?(y=oe("p-1",w),e[11]=w,e[12]=y):y=e[12];let S;e[13]!==t||e[14]!==y?(S=c.jsx(Jt,{className:y,children:t}),e[13]=t,e[14]=y,e[15]=S):S=e[15];let p;e[16]!==i?(p=!i&&c.jsx(so,{}),e[16]=i,e[17]=p):p=e[17];let v;return e[18]!==l||e[19]!==n||e[20]!==m||e[21]!==g||e[22]!==S||e[23]!==p?(v=c.jsx(Xt,{children:c.jsxs(Zt,{"data-slot":"select-content",translate:"no",className:m,position:l,...n,children:[g,S,p]})}),e[18]=l,e[19]=n,e[20]=m,e[21]=g,e[22]=S,e[23]=p,e[24]=v):v=e[24],v}function mo(s){const e=ee.c(19);let t,o,n,a,r;e[0]!==s?({className:o,children:t,description:n,hideCheck:r,...a}=s,e[0]=s,e[1]=t,e[2]=o,e[3]=n,e[4]=a,e[5]=r):(t=e[1],o=e[2],n=e[3],a=e[4],r=e[5]);const l=r===void 0?!1:r,i=n&&"items-start py-2";let u;e[6]!==o||e[7]!==i?(u=oe("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",i,o),e[6]=o,e[7]=i,e[8]=u):u=e[8];let m;e[9]!==l?(m=!l&&c.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:c.jsx(eo,{children:c.jsx(wt,{className:"size-4"})})}),e[9]=l,e[10]=m):m=e[10];let g;e[11]!==t||e[12]!==n?(g=n?c.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[c.jsx(_e,{children:t}),c.jsx("span",{className:"text-xs text-muted-foreground whitespace-normal",children:n})]}):c.jsx(_e,{children:t}),e[11]=t,e[12]=n,e[13]=g):g=e[13];let w;return e[14]!==a||e[15]!==u||e[16]!==m||e[17]!==g?(w=c.jsxs(Qt,{"data-slot":"select-item",className:u,...a,children:[m,g]}),e[14]=a,e[15]=u,e[16]=m,e[17]=g,e[18]=w):w=e[18],w}function no(s){const e=ee.c(9);let t,o;e[0]!==s?({className:t,...o}=s,e[0]=s,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let n;e[3]!==t?(n=oe("flex cursor-default items-center justify-center py-1",t),e[3]=t,e[4]=n):n=e[4];let a;e[5]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx(Ct,{className:"size-4"}),e[5]=a):a=e[5];let r;return e[6]!==o||e[7]!==n?(r=c.jsx(to,{"data-slot":"select-scroll-up-button",className:n,...o,children:a}),e[6]=o,e[7]=n,e[8]=r):r=e[8],r}function so(s){const e=ee.c(9);let t,o;e[0]!==s?({className:t,...o}=s,e[0]=s,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let n;e[3]!==t?(n=oe("flex cursor-default items-center justify-center py-1",t),e[3]=t,e[4]=n):n=e[4];let a;e[5]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx(je,{className:"size-4"}),e[5]=a):a=e[5];let r;return e[6]!==o||e[7]!==n?(r=c.jsx(oo,{"data-slot":"select-scroll-down-button",className:n,...o,children:a}),e[6]=o,e[7]=n,e[8]=r):r=e[8],r}export{co as S,uo as a,po as b,mo as c,fo as d};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as $,b as A,r as R,l as G,j as s,B as H,p as J,v as K,q as Q,D as U}from"./index-DEQvnIsm.js";import{c as V,b as W,a as X,D as Y}from"./drawer-DL0G-oy-.js";import{u as Z}from"./use-mobile-CSFJ-mhK.js";import{d as ee}from"./chat-context-Dv2E4fnf.js";import{S as q,a as se,M as le,c as te}from"./index-DZLfyA8t.js";function fe(L){const e=$.c(48),{variant:o,className:t,placeholder:n,model:l,isLoading:I,credentialId:P,onCredentialChange:k,onModelChange:b,filterModels:E}=L,z=o===void 0?"borderless":o,w=n===void 0?"Select model":n,r=A(),[a,S]=R.useState(!1),i=b!==void 0,F=Z(),O=z==="borderless"?"ghost":"outline",_=z==="borderless"&&"md:border-none";let d;e[0]!==t||e[1]!==_?(d=G("text-sm hover:bg-accent py-0.5 px-1 gap-1 shadow-none cursor-pointer border-0 group focus-visible:ring-0 focus-visible:ring-offset-0 min-w-0 shrink justify-start overflow-hidden",_,t),e[0]=t,e[1]=_,e[2]=d):d=e[2];let c;e[3]!==I||e[4]!==l||e[5]!==w||e[6]!==i?(c=i?s.jsx(q,{model:l??null,placeholder:w,isLoading:I}):s.jsx(ne,{placeholder:w}),e[3]=I,e[4]=l,e[5]=w,e[6]=i,e[7]=c):c=e[7];let D;e[8]!==O||e[9]!==d||e[10]!==c?(D=s.jsx(H,{variant:O,size:"sm",className:d,children:c}),e[8]=O,e[9]=d,e[10]=c,e[11]=D):D=e[11];const f=D;let y;e[12]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(se,{}),e[12]=y):y=e[12];let N;e[13]!==P||e[14]!==E||e[15]!==l||e[16]!==k||e[17]!==b||e[18]!==i?(N=s.jsx(R.Suspense,{fallback:y,children:i?s.jsx(le,{onClose:()=>S(!1),credentialId:P??null,onCredentialChange:k??oe,selectedModel:l??null,onModelChange:b,filterModels:E}):s.jsx(te,{onClose:()=>S(!1)})}),e[13]=P,e[14]=E,e[15]=l,e[16]=k,e[17]=b,e[18]=i,e[19]=N):N=e[19];const m=N;if(F){let g;e[20]!==f?(g=s.jsx(V,{asChild:!0,children:f}),e[20]=f,e[21]=g):g=e[21];let j;e[22]!==r?(j=r("chat.selectModel.selectModel"),e[22]=r,e[23]=j):j=e[23];let M;e[24]!==j?(M=s.jsx(W,{className:"sr-only",children:j}),e[24]=j,e[25]=M):M=e[25];let v;e[26]!==m?(v=s.jsx("div",{className:"flex-1 flex flex-col min-h-0 overflow-hidden",children:m}),e[26]=m,e[27]=v):v=e[27];let C;e[28]!==M||e[29]!==v?(C=s.jsxs(X,{className:"p-0 flex flex-col max-h-[95vh]",children:[M,v]}),e[28]=M,e[29]=v,e[30]=C):C=e[30];let T;return e[31]!==a||e[32]!==g||e[33]!==C?(T=s.jsxs(Y,{open:a,onOpenChange:S,children:[g,C]}),e[31]=a,e[32]=g,e[33]=C,e[34]=T):T=e[34],T}let h;e[35]!==f?(h=s.jsx(J,{asChild:!0,children:f}),e[35]=f,e[36]=h):h=e[36];let x;e[37]!==r?(x=r("chat.selectModel.selectModel"),e[37]=r,e[38]=x):x=e[38];let p;e[39]!==x?(p=s.jsx(K,{className:"sr-only",children:x}),e[39]=x,e[40]=p):p=e[40];let u;e[41]!==m||e[42]!==p?(u=s.jsxs(Q,{className:"p-0 gap-0 sm:max-w-fit overflow-hidden h-[100dvh] sm:h-auto max-h-[100dvh] sm:max-h-[85vh] w-full max-w-full sm:max-w-fit rounded-none sm:rounded-xl border-0 sm:border",closeButtonClassName:"top-3.5 right-3.5 z-20",children:[p,m]}),e[41]=m,e[42]=p,e[43]=u):u=e[43];let B;return e[44]!==a||e[45]!==h||e[46]!==u?(B=s.jsxs(U,{open:a,onOpenChange:S,children:[h,u]}),e[44]=a,e[45]=h,e[46]=u,e[47]=B):B=e[47],B}function oe(){}function ne(L){const e=$.c(4),{placeholder:o}=L,{selectedModel:t,isModelsLoading:n}=ee();let l;return e[0]!==n||e[1]!==t||e[2]!==o?(l=s.jsx(q,{model:t,placeholder:o,isLoading:n}),e[0]=n,e[1]=t,e[2]=o,e[3]=l):l=e[3],l}export{fe as M};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as T,b as be,j as o,r as te,av as Ne,B as we,h as _e}from"./index-DEQvnIsm.js";import{a5 as he}from"./agent-icon-D6wS7rd0.js";import{S as ve}from"./scroll-area-CIRLWlOA.js";import{O as ye,ai as Ee,q as Pe,s as Te,aj as Re,o as Ce,aJ as Fe}from"./blocks-tab-states-BjRnBrj4.js";import{x as Ke}from"./secret-ciphertext-6VBjcV3b.js";import{u as ze,a as De,P as $e}from"./page-seo-form-N1KKSZaU.js";import{a as je}from"./Image01-BfGAREA7.js";import{u as Be,K as Ie}from"./site-editor-toast-CmNIWnCw.js";import"./AlertCircle-Q16nTVAa.js";import"./Tool01-Bp-TbrXi.js";import"./ArrowUp--4P0C-xl.js";import"./ArrowLeft-C_dTX_8N.js";import"./LinkBroken01-DmmKNgpp.js";import"./ShoppingBag01-B7gta_qY.js";import"./ZoomOut-B3s5275g.js";import"./Building02-Gub-pr-8.js";import"./CheckCircle-CQxu_pm9.js";import"./ChevronUp-DK-Gvyk8.js";import"./ChevronSelectorVertical-GBLm8Zpl.js";import"./UserSquare-cdWcOBLL.js";import"./Copy01-EWitDFCf.js";import"./CreditCard01-wx_z4Iiz.js";import"./DotsVertical-DIT5hu2b.js";import"./Globe04-B45_cBRN.js";import"./SwitchHorizontal01-BJyDDPw9.js";import"./Key01-BV7tzZs6.js";import"./Link01-9civFIb9.js";import"./Monitor01-BoSs_8gg.js";import"./Sun-BfjJa3ru.js";import"./Play-CleWZLOG.js";import"./Plus-DQf-jm_3.js";import"./SearchMd-D0zp0uee.js";import"./Trash01-Dlk_Sh-H.js";import"./Upload01-DlF9Jqso.js";import"./User01-BcekHhAV.js";import"./Users01-BIP-PxGt.js";import"./XClose-L_GNViCD.js";import"./index-BdQq_4o_.js";import"./input-Brhdhig1.js";import"./usage-stats-BH4bqLoE.js";import"./tool-namespace-CTeV292R.js";import"./form-DNjk4sZI.js";import"./label-Cf2Qy475.js";import"./utils-CVEq3hMx.js";import"./markdown-DgDY2QmE.js";import"./use-copy-Dkgb0DtI.js";import"./location-BjlyegC2.js";import"./use-mobile-CSFJ-mhK.js";import"./use-panel-navigate-BwwjvhNB.js";import"./thread-route-DTbE-Col.js";import"./use-project-scope-Dn4doId4.js";import"./repository-binding-DpSh0bkT.js";import"./use-mcp-client-CAdgJ_QT.js";import"./auth-BVkTFTOt.js";import"./tooltip-B6NbTX5P.js";import"./index-BaQyqQF-.js";import"./format-time-Cq80KKvY.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-decopilot-events-Czwn8ZVj.js";import"./thread-intent-8kpZLcDE.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-C7xRCtu5.js";import"./task-board-DUTGhEiC.js";import"./schema-BzqS-kNt.js";import"./slugify-CEUa2lfQ.js";import"./chat-context-Dv2E4fnf.js";import"./autosend-CL2OZPvg.js";import"./use-ai-providers-W2Q5vYCk.js";import"./use-organization-settings-BtOReG0H.js";import"./icon-button-WP5IJTs8.js";import"./file-type-icon-HF5UcaS2.js";import"./shell-layout-DKGS0yWx.js";import"./avatar-LfY3dprD.js";import"./use-clock-tick-xpCK7CUB.js";import"./command-KXg0ZuU-.js";import"./index-B9qNCJbx.js";import"./integration-icon-Bysyldtc.js";import"./project-icon-ChTT5o1a.js";import"./new-project-dialog-DKeFr4C7.js";import"./repository-import-picker-CmGbASze.js";import"./use-navigate-to-agent-B-QlLf3R.js";import"./repository-picker-C86kcY-U.js";import"./useInfiniteQuery-Bo5dbMM_.js";import"./infiniteQueryObserver-BnP8vr6V.js";import"./collection-search-Dcze6ySb.js";import"./use-debounced-value-vhgvmVq4.js";import"./required-auth-layout-RW5dOh2c.js";import"./use-org-sso-BhMczCH6.js";import"./chat-draft-X1dGJc2x.js";import"./select-ChqJI0MI.js";import"./tabs-D0oiuUhC.js";import"./use-deco-credits-k0aTLB-T.js";import"./toggle-group-BWQRN38D.js";import"./use-open-billing-url-DWsw6Alp.js";import"./index-DZLfyA8t.js";import"./checkbox-CaUezNgL.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-CjfUWaC0.js";import"./drawer-DL0G-oy-.js";import"./input-Bu2Qzwzh.js";import"./suggestion-DRP05M3-.js";import"./use-mcp-prompts-D1rnFTSb.js";import"./use-org-fs-CAwgni1d.js";import"./question-004-sINsf4GQ.js";import"./use-members-D-L919KG.js";import"./use-org-auth-client-Co_fa5Pp.js";import"./feature-paywall-BSXK-EmV.js";import"./plan-ladder-CFysCUYy.js";import"./add-connection-dialog-DwDvS8Uw.js";import"./extract-connection-data-BlmKelwb.js";import"./metadata-D72DunRR.js";import"./connection-CEK3iDim.js";import"./url-slug-CYvqbzge.js";import"./connection-card-Zhg6xn7V.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-CWgoXXnV.js";import"./use-connection-Cqf7M1G6.js";import"./schema-Bcb37BRV.js";import"./connection-form-helpers-DAFP702a.js";import"./authenticate-and-persist-oauth-POYqGagt.js";import"./mcp-oauth-C_-ZUSLH.js";import"./mcp-oauth-aX1L4mRw.js";import"./collection-tabs-yg6VVFu9.js";import"./badge-CyDHDRPg.js";import"./use-infinite-scroll-B9sczgXI.js";import"./useSuspenseInfiniteQuery-CcFcpWuM.js";import"./use-task-board-events-CmYlpSMI.js";import"./use-chat-layout-state-C-XHZ0Dd.js";import"./utils-D-52h1Lf.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-ByV0vAAs.js";import"./collapsible-DHXUZre4.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-pDbHkuXF.js";import"./types-m1Dsi5sG.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./sheet-CzJFx6b-.js";import"./use-thread-outputs-BUN4R0HD.js";import"./switch-CJc_fIEE.js";import"./monaco-editor-DDuHJmyY.js";import"./editor-B62-XQRE.js";import"./calendar-sxNtZ9wG.js";import"./editor-classes-BAKuqcj0.js";import"./core.esm-BO316fgf.js";import"./sortable.esm-BuCSUlOk.js";import"./view-mode-toggle-Bgum-rnB.js";import"./combobox-B5xPQiKP.js";import"./alert-dialog-ygFmYcOa.js";import"./search-input-Br9i_Ft5.js";import"./use-file-configs-BIHMmAjW.js";import"./asset-utils-Duz2qYol.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./sandbox-git-api-CRxdlhrN.js";import"./sandbox-url-D3mC8qhT.js";import"./empty-state-JTI0oLk7.js";import"./alert-PPdejvI2.js";import"./use-main-schema-v8-Jzc_7tOC.js";import"./index-DAYXa7zL.js";function M(d){return typeof d=="string"&&d.trim()?d:void 0}function ge(d,e){if(d){if(e)try{const t=new URL(d,e).href;return ye(t)}catch{return}return ye(d)}}function Le(d){if(!d)return{};const e=M(d.title),t=M(d.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:M(d.description),image:M(d.image),favicon:M(d.favicon)}}function Oe(d){if(!d)return"example.com";try{return new URL(d).host}catch{return"example.com"}}const Ue=[{id:"google",labelKey:"sectionsEditor.seoPreview.platformGoogle",color:"#4285F4",layout:"search"},{id:"facebook",labelKey:"sectionsEditor.seoPreview.platformFacebook",color:"#1877F2",layout:"card"},{id:"twitter",labelKey:"sectionsEditor.seoPreview.platformTwitter",color:"#0f1419",layout:"card"},{id:"linkedin",labelKey:"sectionsEditor.seoPreview.platformLinkedin",color:"#0A66C2",layout:"card"},{id:"whatsapp",labelKey:"sectionsEditor.seoPreview.platformWhatsapp",color:"#25D366",layout:"chat"},{id:"telegram",labelKey:"sectionsEditor.seoPreview.platformTelegram",color:"#229ED9",layout:"chat"},{id:"slack",labelKey:"sectionsEditor.seoPreview.platformSlack",color:"#611f69",layout:"attachment"},{id:"discord",labelKey:"sectionsEditor.seoPreview.platformDiscord",color:"#5865F2",layout:"attachment"}];function ue(d){const e=T.c(10),{src:t,className:a,iconSize:y}=d,l=y===void 0?20:y;if(t){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let p;return e[1]!==a||e[2]!==t?(p=o.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:a,style:m}),e[1]=a,e[2]=t,e[3]=p):p=e[3],p}let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=s):s=e[4];let i;e[5]!==l?(i=o.jsx(je,{size:l}),e[5]=l,e[6]=i):i=e[6];let n;return e[7]!==a||e[8]!==i?(n=o.jsx("div",{className:a,style:s,children:i}),e[7]=a,e[8]=i,e[9]=n):n=e[9],n}function Ae(d){const e=T.c(33),{seo:t,host:a,path:y,t:l}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#fff",border:"1px solid #dadce0"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={background:"#f1f3f4"},e[1]=i):i=e[1];let n;e[2]!==t.favicon?(n=o.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:i,children:t.favicon?o.jsx("img",{src:t.favicon,alt:"",className:"size-full object-cover"}):o.jsx(je,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=n):n=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#202124"},e[4]=m):m=e[4];let p;e[5]!==a?(p=o.jsx("div",{className:"truncate text-[13px] leading-tight",style:m,children:a}),e[5]=a,e[6]=p):p=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#4d5156"},e[7]=f):f=e[7];let r;e[8]!==a||e[9]!==y?(r=o.jsxs("div",{className:"truncate text-[12px] leading-tight",style:f,children:[a,y]}),e[8]=a,e[9]=y,e[10]=r):r=e[10];let c;e[11]!==p||e[12]!==r?(c=o.jsxs("div",{className:"min-w-0",children:[p,r]}),e[11]=p,e[12]=r,e[13]=c):c=e[13];let x;e[14]!==n||e[15]!==c?(x=o.jsxs("div",{className:"flex items-center gap-2",children:[n,c]}),e[14]=n,e[15]=c,e[16]=x):x=e[16];let u;e[17]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#1a0dab"},e[17]=u):u=e[17];let h;e[18]!==t.title||e[19]!==l?(h=t.title??l("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=l,e[20]=h):h=e[20];let v;e[21]!==h?(v=o.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:u,children:h}),e[21]=h,e[22]=v):v=e[22];let b;e[23]===Symbol.for("react.memo_cache_sentinel")?(b={color:"#4d5156"},e[23]=b):b=e[23];let S;e[24]!==t.description||e[25]!==l?(S=t.description??l("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=l,e[26]=S):S=e[26];let j;e[27]!==S?(j=o.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:b,children:S}),e[27]=S,e[28]=j):j=e[28];let k;return e[29]!==v||e[30]!==j||e[31]!==x?(k=o.jsxs("div",{className:"rounded-lg p-3 text-left",style:s,children:[x,v,j]}),e[29]=v,e[30]=j,e[31]=x,e[32]=k):k=e[32],k}function Me(d){const e=T.c(26),{seo:t,host:a,t:y}=d;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={background:"#fff",border:"1px solid #e2e8f0"},e[0]=l):l=e[0];let s;e[1]!==t.image?(s=o.jsx(ue,{src:t.image,className:"h-40 w-full"}),e[1]=t.image,e[2]=s):s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i={borderTop:"1px solid #e2e8f0"},e[3]=i):i=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n={color:"#8a9099"},e[4]=n):n=e[4];let m;e[5]!==a?(m=o.jsx("div",{className:"truncate text-[11px]",style:n,children:a}),e[5]=a,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#1c2024"},e[7]=p):p=e[7];let f;e[8]!==t.title||e[9]!==y?(f=t.title??y("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=y,e[10]=f):f=e[10];let r;e[11]!==f?(r=o.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:p,children:f}),e[11]=f,e[12]=r):r=e[12];let c;e[13]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[13]=c):c=e[13];let x;e[14]!==t.description||e[15]!==y?(x=t.description??y("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=y,e[16]=x):x=e[16];let u;e[17]!==x?(u=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:x}),e[17]=x,e[18]=u):u=e[18];let h;e[19]!==u||e[20]!==m||e[21]!==r?(h=o.jsxs("div",{className:"px-3 py-2",style:i,children:[m,r,u]}),e[19]=u,e[20]=m,e[21]=r,e[22]=h):h=e[22];let v;return e[23]!==h||e[24]!==s?(v=o.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:l,children:[s,h]}),e[23]=h,e[24]=s,e[25]=v):v=e[25],v}function Ge(d){const e=T.c(36),{seo:t,host:a,accent:y,t:l}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f0f2f5"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={color:"#3b4045"},e[1]=i):i=e[1];let n;e[2]!==l?(n=l("sectionsEditor.seoPreview.chatCardHint"),e[2]=l,e[3]=n):n=e[3];let m;e[4]!==n?(m=o.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:i,children:n}),e[4]=n,e[5]=m):m=e[5];const p=`3px solid ${y}`;let f;e[6]!==p?(f={background:"#fff",borderLeft:p},e[6]=p,e[7]=f):f=e[7];let r;e[8]!==t.image?(r=o.jsx(ue,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=r):r=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#1c2024"},e[10]=c):c=e[10];let x;e[11]!==t.title||e[12]!==l?(x=t.title??l("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=l,e[13]=x):x=e[13];let u;e[14]!==x?(u=o.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:c,children:x}),e[14]=x,e[15]=u):u=e[15];let h;e[16]===Symbol.for("react.memo_cache_sentinel")?(h={color:"#60666c"},e[16]=h):h=e[16];let v;e[17]!==t.description||e[18]!==l?(v=t.description??l("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=l,e[19]=v):v=e[19];let b;e[20]!==v?(b=o.jsx("div",{className:"line-clamp-2 text-[11px]",style:h,children:v}),e[20]=v,e[21]=b):b=e[21];let S;e[22]===Symbol.for("react.memo_cache_sentinel")?(S={color:"#8a9099"},e[22]=S):S=e[22];let j;e[23]!==a?(j=o.jsx("div",{className:"mt-0.5 text-[10px]",style:S,children:a}),e[23]=a,e[24]=j):j=e[24];let k;e[25]!==u||e[26]!==b||e[27]!==j?(k=o.jsxs("div",{className:"px-2.5 py-1.5",children:[u,b,j]}),e[25]=u,e[26]=b,e[27]=j,e[28]=k):k=e[28];let g;e[29]!==k||e[30]!==f||e[31]!==r?(g=o.jsxs("div",{className:"overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-md))]",style:f,children:[r,k]}),e[29]=k,e[30]=f,e[31]=r,e[32]=g):g=e[32];let N;return e[33]!==g||e[34]!==m?(N=o.jsxs("div",{className:"rounded-lg p-2 text-left",style:s,children:[m,g]}),e[33]=g,e[34]=m,e[35]=N):N=e[35],N}function He(d){const e=T.c(39),{seo:t,host:a,accent:y,dark:l,t:s}=d,i=l?"#2b2d31":"#fff",n=l?"#00a8fc":"#1264a3",m=l?"#dbdee1":"#3b4045",p=l?"#949ba4":"#8a9099",f=l?"none":"1px solid #e2e8f0";let r;e[0]!==i||e[1]!==f?(r={background:i,border:f},e[0]=i,e[1]=f,e[2]=r):r=e[2];const c=`3px solid ${y}`;let x;e[3]!==c?(x={borderLeft:c,borderRadius:2},e[3]=c,e[4]=x):x=e[4];let u;e[5]!==p?(u={color:p},e[5]=p,e[6]=u):u=e[6];let h;e[7]!==a||e[8]!==u?(h=o.jsx("div",{className:"text-[10px]",style:u,children:a}),e[7]=a,e[8]=u,e[9]=h):h=e[9];let v;e[10]!==n?(v={color:n},e[10]=n,e[11]=v):v=e[11];let b;e[12]!==t.title||e[13]!==s?(b=t.title??s("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=s,e[14]=b):b=e[14];let S;e[15]!==v||e[16]!==b?(S=o.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:v,children:b}),e[15]=v,e[16]=b,e[17]=S):S=e[17];let j;e[18]!==m?(j={color:m},e[18]=m,e[19]=j):j=e[19];let k;e[20]!==t.description||e[21]!==s?(k=t.description??s("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=s,e[22]=k):k=e[22];let g;e[23]!==j||e[24]!==k?(g=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:j,children:k}),e[23]=j,e[24]=k,e[25]=g):g=e[25];let N;e[26]!==g||e[27]!==h||e[28]!==S?(N=o.jsxs("div",{className:"min-w-0 flex-1",children:[h,S,g]}),e[26]=g,e[27]=h,e[28]=S,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=o.jsx(ue,{src:t.image,className:"size-14 shrink-0 rounded-[var(--studio-control-radius,var(--radius))]",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let _;e[32]!==N||e[33]!==w||e[34]!==x?(_=o.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:x,children:[N,w]}),e[32]=N,e[33]=w,e[34]=x,e[35]=_):_=e[35];let E;return e[36]!==_||e[37]!==r?(E=o.jsx("div",{className:"rounded-lg p-2.5 text-left",style:r,children:_}),e[36]=_,e[37]=r,e[38]=E):E=e[38],E}function Ve(d){const e=T.c(21),{platform:t,seo:a,host:y,path:l,t:s}=d;let i;e[0]!==y||e[1]!==l||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==a||e[6]!==s?(i=t.layout==="search"?o.jsx(Ae,{seo:a,host:y,path:l,t:s}):t.layout==="card"?o.jsx(Me,{seo:a,host:y,path:l,t:s}):t.layout==="chat"?o.jsx(Ge,{seo:a,host:y,path:l,accent:t.color,t:s}):o.jsx(He,{seo:a,host:y,path:l,accent:t.color,dark:t.id==="discord",t:s}),e[0]=y,e[1]=l,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=a,e[6]=s,e[7]=i):i=e[7];const n=i;let m;e[8]!==t.color?(m=o.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=m):m=e[9];let p;e[10]!==t.labelKey||e[11]!==s?(p=s(t.labelKey),e[10]=t.labelKey,e[11]=s,e[12]=p):p=e[12];let f;e[13]!==p?(f=o.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:p}),e[13]=p,e[14]=f):f=e[14];let r;e[15]!==m||e[16]!==f?(r=o.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[m,f]}),e[15]=m,e[16]=f,e[17]=r):r=e[17];let c;return e[18]!==n||e[19]!==r?(c=o.jsxs("div",{children:[r,n]}),e[18]=n,e[19]=r,e[20]=c):c=e[20],c}function qe(d){const e=T.c(18),{seo:t,url:a,path:y}=d,l=y===void 0?"/":y,s=be();let i,n,m;if(e[0]!==t||e[1]!==a){const v=Le(t);i=v,n=ge(v.image,a),m=ge(v.favicon,a),e[0]=t,e[1]=a,e[2]=i,e[3]=n,e[4]=m}else i=e[2],n=e[3],m=e[4];let p;e[5]!==i||e[6]!==n||e[7]!==m?(p={...i,image:n,favicon:m},e[5]=i,e[6]=n,e[7]=m,e[8]=p):p=e[8];const f=p;let r;e[9]!==a?(r=Oe(a),e[9]=a,e[10]=r):r=e[10];const c=r,x=l==="/"?"":l;let u;e[11]!==x||e[12]!==c||e[13]!==s||e[14]!==f?(u=Ue.map(v=>o.jsx(Ve,{platform:v,seo:f,host:c,path:x,t:s},v.id)),e[11]=x,e[12]=c,e[13]=s,e[14]=f,e[15]=u):u=e[15];let h;return e[16]!==u?(h=o.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:u}),e[16]=u,e[17]=h):h=e[17],h}function Qi(d){const e=T.c(73),{orgSlug:t,virtualMcpId:a,branch:y,decofile:l,meta:s,target:i,previewBaseUrl:n,onSaved:m,onEditDefaultSeo:p,onBack:f}=d,r=be(),c=Ee(l,i,s),x=Be(a,y);let u;e[0]!==x?(u=Ie(x),e[0]=x,e[1]=u):u=e[1];const h=!u,v=c?.seoData,b=i.kind==="site"?"site":i.pageKey,[S,j]=te.useState(b),[k,g]=te.useState(null),[N,w]=te.useState(0),[_,E]=te.useState(void 0);S!==b&&(j(b),g(null),E(void 0),w(We));const{persistSeo:K,persistRawSeo:oe,flush:ie,isPending:se}=ze({orgSlug:t,virtualMcpId:a,branch:y,target:i,resolved:c,onSaved:m}),G=i.kind==="page",Se=G?c?.rawSeoData:void 0,A=_!==void 0?_:Se,ke=G?Pe(A)??void 0:void 0,P=k??ke??v??{},R=c?De(P,c):null,z=R&&(!G||Te(A))?Ke(R,s):null;let H;e[2]!==s?(H=Re(s),e[2]=s,e[3]=H):H=e[3];const re=H;let C,V;e[4]!==l||e[5]!==P||e[6]!==s||e[7]!==i.kind?(C=i.kind==="page"?Ce(l,s)?.seoData??{}:{},V=i.kind==="page"?Xe(C,P):P,e[4]=l,e[5]=P,e[6]=s,e[7]=i.kind,e[8]=C,e[9]=V):(C=e[8],V=e[9]);const le=V;let q;e[10]!==K||e[11]!==c||e[12]!==g?(q=F=>{if(!c)return;const xe=F;g(xe),K(xe)},e[10]=K,e[11]=c,e[12]=g,e[13]=q):q=e[13];const ae=q;let J;e[14]!==g?(J=()=>g(null),e[14]=g,e[15]=J):J=e[15];const ce=J;let W;e[16]!==w?(W=()=>w(Je),e[16]=w,e[17]=W):W=e[17];const ne=W;let Q;e[18]!==ie||e[19]!==f?(Q=()=>{ie(),f?.()},e[18]=ie,e[19]=f,e[20]=Q):Q=e[20];const me=Q,D=i.kind==="page"?i.path:"/";let X;e[21]!==D||e[22]!==n||e[23]!==i.kind?(X=i.kind==="page"&&n?Qe(D,n):n??null,e[21]=D,e[22]=n,e[23]=i.kind,e[24]=X):X=e[24];const de=X;let Y;e[25]!==c||e[26]!==r||e[27]!==i.kind?(Y=i.kind==="site"?r("sectionsEditor.seoEditor.noSiteSeoBlock"):r(c?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[25]=c,e[26]=r,e[27]=i.kind,e[28]=Y):Y=e[28];const pe=Y,Z=G&&c,fe=i.kind==="site"&&c&&z;let $;e[29]!==me||e[30]!==r||e[31]!==i.kind||e[32]!==i.pageName?($=i.kind==="page"?o.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[o.jsx("button",{type:"button",onClick:me,title:i.pageName,className:"min-w-0 truncate rounded-[var(--studio-control-radius,var(--radius-md))] px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:i.pageName}),o.jsx(Ne,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):o.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[o.jsx(he,{size:16,className:"shrink-0 text-muted-foreground"}),o.jsx("span",{className:"text-sm font-medium",children:r("sectionsEditor.seoEditor.defaultSeoLabel")}),o.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",r("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[29]=me,e[30]=r,e[31]=i.kind,e[32]=i.pageName,e[33]=$):$=e[33];let B;e[34]!==se?(B=se&&o.jsx(_e,{className:"size-3.5 text-muted-foreground"}),e[34]=se,e[35]=B):B=e[35];let I;e[36]!==p||e[37]!==r||e[38]!==i.kind?(I=i.kind==="page"&&p&&o.jsxs(we,{type:"button",variant:"outline",size:"sm",onClick:p,children:[o.jsx(he,{size:14}),r("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[36]=p,e[37]=r,e[38]=i.kind,e[39]=I):I=e[39];let L;e[40]!==B||e[41]!==I?(L=o.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[B,I]}),e[40]=B,e[41]=I,e[42]=L):L=e[42];let O;e[43]!==$||e[44]!==L?(O=o.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[$,L]}),e[43]=$,e[44]=L,e[45]=O):O=e[45];let U;e[46]!==R||e[47]!==h||e[48]!==ne||e[49]!==ce||e[50]!==re||e[51]!==A||e[52]!==P||e[53]!==pe||e[54]!==N||e[55]!==ae||e[56]!==D||e[57]!==oe||e[58]!==K||e[59]!==le||e[60]!==de||e[61]!==c||e[62]!==z||e[63]!==g||e[64]!==E||e[65]!==Z||e[66]!==fe||e[67]!==C||e[68]!==r?(U=!c||!Z&&!fe?o.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:pe}):o.jsxs("div",{className:"flex min-h-0 flex-1",children:[o.jsx(ve,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-5 py-4",children:Z?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:r("sectionsEditor.seoEditor.emptyFieldsHint")}),o.jsx($e,{rawSeo:A,innerSeo:P,defaultResolveType:re,seoSchema:z,activeResolveType:R,seoTypeOptions:c.seoTypeOptions,formResetKey:N,siteDefaultSeo:C,onPersistRaw:F=>{E(F),oe(F)},onInnerChange:F=>{g(F),K(F)},onClearForm:ce,onBumpFormKey:ne,asyncRenderAvailable:h})]}):z&&R&&o.jsx(Fe,{schema:z,resolveType:R,value:P,formResetKey:N,onChange:ae})})}),o.jsx(ve,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"@container px-5 py-4",children:o.jsx(qe,{seo:le,url:de,path:D})})})]}),e[46]=R,e[47]=h,e[48]=ne,e[49]=ce,e[50]=re,e[51]=A,e[52]=P,e[53]=pe,e[54]=N,e[55]=ae,e[56]=D,e[57]=oe,e[58]=K,e[59]=le,e[60]=de,e[61]=c,e[62]=z,e[63]=g,e[64]=E,e[65]=Z,e[66]=fe,e[67]=C,e[68]=r,e[69]=U):U=e[69];let ee;return e[70]!==O||e[71]!==U?(ee=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[O,U]}),e[70]=O,e[71]=U,e[72]=ee):ee=e[72],ee}function Je(d){return d+1}function We(d){return d+1}function Qe(d,e){try{return new URL(d,e).href}catch{return e}}function Xe(d,e){const t=e.__resolveType,a=d.__resolveType;if(typeof t=="string"&&typeof a=="string"&&t!==a)return{...e};const y={...d};for(const[l,s]of Object.entries(e))l!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(y[l]=s));return y}export{Qi as SeoEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,j as o}from"./index-DEQvnIsm.js";import{V as a}from"./index-JvhyBpMR.js";function p(s){const t=e.c(2),{virtualMcpId:r}=s;let i;return t[0]!==r?(i=o.jsx(a,{virtualMcpId:r}),t[0]=r,t[1]=i):i=t[1],i}export{p as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as n,l as f,j as i,dv as S,dj as $,aJ as w,dw as C,dk as z,dx as k,aX as R,dl as B}from"./index-DEQvnIsm.js";function P(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx($,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function D(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(z,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function E(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(B,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function T(o){const e=n.c(22);let t,s,a,l,p,u;e[0]!==o?({className:s,children:t,side:l,size:p,hideCloseButton:u,...a}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=p,e[6]=u):(t=e[1],s=e[2],a=e[3],l=e[4],p=e[5],u=e[6]);const r=l===void 0?"right":l,y=p===void 0?"sm":p,x=u===void 0?!1:u;let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(E,{}),e[7]=m):m=e[7];const g=r==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l",b=r==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r",j=(r==="left"||r==="right")&&(y==="lg"?"w-full sm:max-w-xl":"sm:max-w-sm"),N=r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",v=r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let d;e[8]!==s||e[9]!==g||e[10]!==b||e[11]!==j||e[12]!==N||e[13]!==v?(d=f("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",g,b,j,N,v,s),e[8]=s,e[9]=g,e[10]=b,e[11]=j,e[12]=N,e[13]=v,e[14]=d):d=e[14];let c;e[15]!==x?(c=!x&&i.jsxs(k,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none rounded-lg",children:[i.jsx(R,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[15]=x,e[16]=c):c=e[16];let h;return e[17]!==t||e[18]!==a||e[19]!==d||e[20]!==c?(h=i.jsxs(D,{children:[m,i.jsxs(w,{"data-slot":"sheet-content",className:d,...a,children:[t,c]})]}),e[17]=t,e[18]=a,e[19]=d,e[20]=c,e[21]=h):h=e[21],h}function _(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function F(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("mt-auto flex flex-col gap-2 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function H(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(S,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function J(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(C,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{H as S,T as a,P as b,_ as c,J as d,F as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as R,b as J,e as st,j as n,B as F,t as We,bX as fe,ad as Tt,a as Be,G as Vt,R as Nt,K as Ue,bY as Wt,bZ as Yt,aw as Ke,l as ht,aZ as Qt,x as gt,r as se,ab as Xt,ac as re,s as _t,v as Pt,q as At,D as Ct,d as Et,a2 as mt,J as Ot,m as He,y as ct,aL as It,b_ as Zt,aR as en,aW as pt,F as tn,b$ as nn,aM as sn,w as on,c0 as an,c1 as rn,c2 as ln,c3 as cn,c4 as dn,a3 as un,u as mn,a4 as fn,c5 as hn,c6 as gn,k as $t,c7 as rt,c8 as pn,c9 as yn,O as bn,_ as xn}from"./index-DEQvnIsm.js";import{A as it}from"./avatar-LfY3dprD.js";import{t as Lt}from"./Building02-Gub-pr-8.js";import{i as Sn,s as ae}from"./UserSquare-cdWcOBLL.js";import{aE as wn,aC as vn,H as lt,ac as jn,J as kn,aF as Tn,n as yt,g as Nn,p as _n,k as Pn,aG as An,l as Cn}from"./agent-icon-D6wS7rd0.js";import{s as En}from"./XClose-L_GNViCD.js";import{a as On,u as In}from"./use-project-scope-Dn4doId4.js";import{u as Dt,a as $n}from"./use-panel-navigate-BwwjvhNB.js";import{i as de}from"./CheckCircle-CQxu_pm9.js";import{i as bt}from"./Monitor01-BoSs_8gg.js";import{i as qe}from"./ZoomOut-B3s5275g.js";import{u as Ln}from"./use-clock-tick-xpCK7CUB.js";import{s as xt}from"./Plus-DQf-jm_3.js";import{a as Dn}from"./Tool01-Bp-TbrXi.js";import{b as le,a as Je,f as Rn,e as Fn,c as Mn,C as zn}from"./command-KXg0ZuU-.js";import{I as qn}from"./integration-icon-Bysyldtc.js";import{P as Kn}from"./project-icon-ChTT5o1a.js";import{a as Bn,m as Hn}from"./use-mcp-client-CAdgJ_QT.js";import{u as Un,a as Gn,n as Jn}from"./new-project-dialog-DKeFr4C7.js";import{S as Vn,u as Wn}from"./thread-intent-8kpZLcDE.js";import{R as Yn}from"./required-auth-layout-RW5dOh2c.js";import{A as Qn}from"./autosend-CL2OZPvg.js";import{u as Xn,a as Zn,b as es,c as ts}from"./thread-route-DTbE-Col.js";import{u as ns}from"./use-org-sso-BhMczCH6.js";function ss(t){const e=R.c(49),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=J();let c;e[0]!==r||e[1]!==i?(c=async()=>{const p=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),A=await p.json();if(!p.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=r,e[1]=i,e[2]=c):c=e[2];let m;e[3]!==r?(m=p=>{window.location.href=`/${p.slug??r}`},e[3]=r,e[4]=m):m=e[4];let h;e[5]!==i?(h=p=>{We.error(p instanceof Error?p.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=h):h=e[6];let w;e[7]!==c||e[8]!==m||e[9]!==h?(w={mutationFn:c,onSuccess:m,onError:h},e[7]=c,e[8]=m,e[9]=h,e[10]=w):w=e[10];const u=st(w),y=os;let l;e[11]!==s||e[12]!==o?(l=s?n.jsx(it,{url:s,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Lt,{className:"h-6 w-6 text-primary"})}),e[11]=s,e[12]=o,e[13]=l):l=e[13];let g;e[14]!==o||e[15]!==i?(g=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=g):g=e[16];let f;e[17]!==g?(f=n.jsx("h3",{className:"text-lg font-medium",children:g}),e[17]=g,e[18]=f):f=e[18];let d;e[19]!==a||e[20]!==i?(d=i("common.autoDomainJoinScreen.joinDescription",{domain:a}),e[19]=a,e[20]=i,e[21]=d):d=e[21];let x;e[22]!==d?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[22]=d,e[23]=x):x=e[23];let b;e[24]!==f||e[25]!==x?(b=n.jsxs("div",{className:"space-y-2",children:[f,x]}),e[24]=f,e[25]=x,e[26]=b):b=e[26];let S;e[27]!==u?(S=()=>u.mutate(),e[27]=u,e[28]=S):S=e[28];let j;e[29]!==u.isPending||e[30]!==o||e[31]!==i?(j=u.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=u.isPending,e[30]=o,e[31]=i,e[32]=j):j=e[32];let P;e[33]!==u.isPending||e[34]!==S||e[35]!==j?(P=n.jsx(F,{onClick:S,disabled:u.isPending,children:j}),e[33]=u.isPending,e[34]=S,e[35]=j,e[36]=P):P=e[36];const k=u.isPending;let v;e[37]!==i?(v=i("common.goHome"),e[37]=i,e[38]=v):v=e[38];let T;e[39]!==u.isPending||e[40]!==v?(T=n.jsx(F,{variant:"ghost",onClick:y,disabled:k,children:v}),e[39]=u.isPending,e[40]=v,e[41]=T):T=e[41];let N;e[42]!==P||e[43]!==T?(N=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[P,T]}),e[42]=P,e[43]=T,e[44]=N):N=e[44];let _;return e[45]!==b||e[46]!==N||e[47]!==l?(_=n.jsxs(fe,{children:[l,b,N]}),e[45]=b,e[46]=N,e[47]=l,e[48]=_):_=e[48],_}function os(){window.location.href="/"}function St(t){const e=R.c(25),{orgSlug:o,orgName:r,reason:s}=t,a=J(),i=is,c=s==="not-found",m=c?Sn:Tt;let h;e[0]!==c||e[1]!==a?(h=a(c?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=c,e[1]=a,e[2]=h):h=e[2];const w=h;let u;e[3]!==c||e[4]!==r||e[5]!==o||e[6]!==a?(u=c?n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:o}),"."]}):n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:r??o}),".",n.jsx("br",{}),a("common.noAccessScreen.askAdminToInvite")]}),e[3]=c,e[4]=r,e[5]=o,e[6]=a,e[7]=u):u=e[7];const y=u;let l;e[8]!==m?(l=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(m,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=m,e[9]=l):l=e[9];let g;e[10]!==w?(g=n.jsx("h3",{className:"text-lg font-medium",children:w}),e[10]=w,e[11]=g):g=e[11];let f;e[12]!==y?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[12]=y,e[13]=f):f=e[13];let d;e[14]!==g||e[15]!==f?(d=n.jsxs("div",{className:"space-y-2",children:[g,f]}),e[14]=g,e[15]=f,e[16]=d):d=e[16];let x;e[17]!==a?(x=a("common.goHome"),e[17]=a,e[18]=x):x=e[18];let b;e[19]!==x?(b=n.jsx(F,{onClick:i,children:x}),e[19]=x,e[20]=b):b=e[20];let S;return e[21]!==l||e[22]!==d||e[23]!==b?(S=n.jsxs(fe,{children:[l,d,b]}),e[21]=l,e[22]=d,e[23]=b,e[24]=S):S=e[24],S}function is(){window.location.href="/"}function as(t){const e=R.c(59),{invitationId:o,orgName:r,orgSlug:s,orgLogo:a}=t,i=J();let c;e[0]!==o?(c=async()=>{const C=await Be.organization.acceptInvitation({invitationId:o});if(C.error)throw new Error(C.error.message);return C.data},e[0]=o,e[1]=c):c=e[1];let m;e[2]!==s?(m=()=>{Vt(),window.location.href=`/${s}`},e[2]=s,e[3]=m):m=e[3];let h;e[4]!==i?(h=C=>{We.error(C instanceof Error?C.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=h):h=e[5];let w;e[6]!==c||e[7]!==m||e[8]!==h?(w={mutationFn:c,onSuccess:m,onError:h},e[6]=c,e[7]=m,e[8]=h,e[9]=w):w=e[9];const u=st(w);let y;e[10]!==o?(y=async()=>{const C=await Be.organization.rejectInvitation({invitationId:o});if(C.error)throw new Error(C.error.message);return C.data},e[10]=o,e[11]=y):y=e[11];let l,g;e[12]!==i?(l=()=>{We.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},g=C=>{We.error(C instanceof Error?C.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=l,e[14]=g):(l=e[13],g=e[14]);let f;e[15]!==y||e[16]!==l||e[17]!==g?(f={mutationFn:y,onSuccess:l,onError:g},e[15]=y,e[16]=l,e[17]=g,e[18]=f):f=e[18];const d=st(f),x=u.isPending||d.isPending;let b;e[19]!==a||e[20]!==r?(b=a?n.jsx(it,{url:a,fallback:r.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(wn,{className:"h-6 w-6 text-primary"})}),e[19]=a,e[20]=r,e[21]=b):b=e[21];let S;e[22]!==r||e[23]!==i?(S=i("common.pendingInviteScreen.invitedTo",{orgName:r}),e[22]=r,e[23]=i,e[24]=S):S=e[24];let j;e[25]!==S?(j=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[25]=S,e[26]=j):j=e[26];let P;e[27]!==i?(P=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=P):P=e[28];let k;e[29]!==P?(k=n.jsx("p",{className:"text-sm text-muted-foreground",children:P}),e[29]=P,e[30]=k):k=e[30];let v;e[31]!==j||e[32]!==k?(v=n.jsxs("div",{className:"space-y-2",children:[j,k]}),e[31]=j,e[32]=k,e[33]=v):v=e[33];let T;e[34]!==u?(T=()=>u.mutate(),e[34]=u,e[35]=T):T=e[35];let N;e[36]!==u.isPending||e[37]!==i?(N=u.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=u.isPending,e[37]=i,e[38]=N):N=e[38];let _;e[39]!==x||e[40]!==T||e[41]!==N?(_=n.jsx(F,{onClick:T,disabled:x,children:N}),e[39]=x,e[40]=T,e[41]=N,e[42]=_):_=e[42];let p;e[43]!==d?(p=()=>d.mutate(),e[43]=d,e[44]=p):p=e[44];let A;e[45]!==d.isPending||e[46]!==i?(A=d.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=d.isPending,e[46]=i,e[47]=A):A=e[47];let $;e[48]!==x||e[49]!==p||e[50]!==A?($=n.jsx(F,{variant:"ghost",onClick:p,disabled:x,children:A}),e[48]=x,e[49]=p,e[50]=A,e[51]=$):$=e[51];let I;e[52]!==_||e[53]!==$?(I=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,$]}),e[52]=_,e[53]=$,e[54]=I):I=e[54];let D;return e[55]!==v||e[56]!==I||e[57]!==b?(D=n.jsxs(fe,{children:[b,v,I]}),e[55]=v,e[56]=I,e[57]=b,e[58]=D):D=e[58],D}function rs(t){const e=R.c(23),{orgName:o,orgLogo:r}=t,s=J();let a;e[0]!==r||e[1]!==o?(a=r?n.jsx(it,{url:r,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(vn,{className:"h-6 w-6 text-primary"})}),e[0]=r,e[1]=o,e[2]=a):a=e[2];let i;e[3]!==s?(i=s("common.requestPendingScreen.title"),e[3]=s,e[4]=i):i=e[4];let c;e[5]!==i?(c=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=c):c=e[6];let m;e[7]!==o||e[8]!==s?(m=s("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=s,e[9]=m):m=e[9];let h;e[10]!==m?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=h):h=e[11];let w;e[12]!==c||e[13]!==h?(w=n.jsxs("div",{className:"space-y-2",children:[c,h]}),e[12]=c,e[13]=h,e[14]=w):w=e[14];let u;e[15]!==s?(u=s("common.goHome"),e[15]=s,e[16]=u):u=e[16];let y;e[17]!==u?(y=n.jsx(F,{variant:"ghost",onClick:ls,children:u}),e[17]=u,e[18]=y):y=e[18];let l;return e[19]!==a||e[20]!==w||e[21]!==y?(l=n.jsxs(fe,{children:[a,w,y]}),e[19]=a,e[20]=w,e[21]=y,e[22]=l):l=e[22],l}function ls(){window.location.href="/"}function cs(t){const e=R.c(45),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=J();let c;e[0]!==r?(c=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),p=await _.json();if(!_.ok||!p.success)throw new Error(p.error??"Failed to request access");return p},e[0]=r,e[1]=c):c=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=us,e[2]=m):m=e[2];let h;e[3]!==i?(h=_=>{We.error(_ instanceof Error?_.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=h):h=e[4];let w;e[5]!==c||e[6]!==h?(w={mutationFn:c,onSuccess:m,onError:h},e[5]=c,e[6]=h,e[7]=w):w=e[7];const u=st(w);let y;e[8]!==s||e[9]!==o?(y=s?n.jsx(it,{url:s,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Lt,{className:"h-6 w-6 text-primary"})}),e[8]=s,e[9]=o,e[10]=y):y=e[10];let l;e[11]!==o||e[12]!==i?(l=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=l):l=e[13];let g;e[14]!==l?(g=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[14]=l,e[15]=g):g=e[15];let f;e[16]!==a||e[17]!==i?(f=i("common.requestToJoinScreen.description",{domain:a}),e[16]=a,e[17]=i,e[18]=f):f=e[18];let d;e[19]!==f?(d=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[19]=f,e[20]=d):d=e[20];let x;e[21]!==g||e[22]!==d?(x=n.jsxs("div",{className:"space-y-2",children:[g,d]}),e[21]=g,e[22]=d,e[23]=x):x=e[23];let b;e[24]!==u?(b=()=>u.mutate(),e[24]=u,e[25]=b):b=e[25];let S;e[26]!==u.isPending||e[27]!==i?(S=u.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=u.isPending,e[27]=i,e[28]=S):S=e[28];let j;e[29]!==u.isPending||e[30]!==b||e[31]!==S?(j=n.jsx(F,{onClick:b,disabled:u.isPending,children:S}),e[29]=u.isPending,e[30]=b,e[31]=S,e[32]=j):j=e[32];const P=u.isPending;let k;e[33]!==i?(k=i("common.goHome"),e[33]=i,e[34]=k):k=e[34];let v;e[35]!==u.isPending||e[36]!==k?(v=n.jsx(F,{variant:"ghost",onClick:ds,disabled:P,children:k}),e[35]=u.isPending,e[36]=k,e[37]=v):v=e[37];let T;e[38]!==j||e[39]!==v?(T=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[j,v]}),e[38]=j,e[39]=v,e[40]=T):T=e[40];let N;return e[41]!==x||e[42]!==T||e[43]!==y?(N=n.jsxs(fe,{children:[y,x,T]}),e[41]=x,e[42]=T,e[43]=y,e[44]=N):N=e[44],N}function ds(){window.location.href="/"}function us(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ms(t){const e=R.c(7);let o;e[0]!==t?(o=Ue.orgAccessStatus(t),e[0]=t,e[1]=o):o=e[1];let r;e[2]!==t?(r=async()=>{const a=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!a.ok)throw new Error(`org-access-status failed (${a.status})`);return await a.json()},e[2]=t,e[3]=r):r=e[3];let s;return e[4]!==o||e[5]!==r?(s={queryKey:o,queryFn:r,refetchOnWindowFocus:!1},e[4]=o,e[5]=r,e[6]=s):s=e[6],Nt(s)}function fs({orgSlug:t}){const{data:e}=ms(t);if(e.status!=="member"){Wt()?.org===t&&Yt();const o=localStorage.getItem(Ke.lastOrgSlug())===t;if(o&&localStorage.removeItem(Ke.lastOrgSlug()),o&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(St,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(as,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ss,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(cs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(rs,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(St,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Rt(t){const e=R.c(42),{ariaLabel:o,dismissLabel:r,eyebrow:s,title:a,description:i,icon:c,children:m,footerLeading:h,actions:w,onDismiss:u,tone:y}=t,l=y===void 0?"neutral":y,g=h||w;let f;e[0]!==l?(f=l==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=l,e[1]=f):f=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(En,{size:14}),e[2]=d):d=e[2];let x;e[3]!==r||e[4]!==u?(x=n.jsx(F,{size:"icon-sm",variant:"ghost","aria-label":r,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:u,children:d}),e[3]=r,e[4]=u,e[5]=x):x=e[5];const b=c&&"flex items-start gap-3",S=m&&"pb-3";let j;e[6]!==b||e[7]!==S?(j=ht("p-4 pr-11",b,S),e[6]=b,e[7]=S,e[8]=j):j=e[8];let P;e[9]!==c?(P=c&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:c}),e[9]=c,e[10]=P):P=e[10];let k;e[11]!==s?(k=s&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[11]=s,e[12]=k):k=e[12];let v;e[13]!==a?(v=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:a}),e[13]=a,e[14]=v):v=e[14];let T;e[15]!==i?(T=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=T):T=e[16];let N;e[17]!==v||e[18]!==T||e[19]!==k?(N=n.jsxs("div",{children:[k,v,T]}),e[17]=v,e[18]=T,e[19]=k,e[20]=N):N=e[20];let _;e[21]!==m?(_=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=_):_=e[22];let p;e[23]!==N||e[24]!==_?(p=n.jsxs("div",{className:"min-w-0 flex-1",children:[N,_]}),e[23]=N,e[24]=_,e[25]=p):p=e[25];let A;e[26]!==p||e[27]!==j||e[28]!==P?(A=n.jsxs("div",{className:j,children:[P,p]}),e[26]=p,e[27]=j,e[28]=P,e[29]=A):A=e[29];let $;e[30]!==w||e[31]!==h||e[32]!==g||e[33]!==l?($=g&&n.jsxs("div",{className:ht("flex items-center justify-between gap-3 px-4 py-2.5",l==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:h}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:w})]}),e[30]=w,e[31]=h,e[32]=g,e[33]=l,e[34]=$):$=e[34];let I;return e[35]!==o||e[36]!==A||e[37]!==$||e[38]!==f||e[39]!==x||e[40]!==l?(I=n.jsxs("div",{role:"dialog","aria-label":o,"data-slot":"announcement-card","data-tone":l,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[f,x,A,$]}),e[35]=o,e[36]=A,e[37]=$,e[38]=f,e[39]=x,e[40]=l,e[41]=I):I=e[41],I}const hs={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function Ft(t){return`[data-tour="${hs[t]}"]`}const gs=[{scope:"shell",anchor:"switcher",titleKey:"layoutTour.switcher.title",descKey:"layoutTour.switcher.description",side:"right"},{scope:"shell",anchor:"nav",titleKey:"layoutTour.nav.title",descKey:"layoutTour.nav.description",side:"right"},{scope:"shell",anchor:"tasks",titleKey:"layoutTour.tasks.title",descKey:"layoutTour.tasks.description",side:"right"},{scope:"project",anchor:"siteEditor",titleKey:"layoutTour.siteEditor.title",descKey:"layoutTour.siteEditor.description",side:"right"},{scope:"project",anchor:"automations",titleKey:"layoutTour.automations.title",descKey:"layoutTour.automations.description",side:"right"},{scope:"shell",anchor:"settings",titleKey:"layoutTour.settings.title",descKey:"layoutTour.settings.description",side:"right"},{scope:"shell",anchor:"projects",titleKey:"layoutTour.projects.title",descKey:"layoutTour.projects.description",side:"right"},{scope:"shell",anchor:"account",titleKey:"layoutTour.account.title",descKey:"layoutTour.account.description",side:"right"},{scope:"siteEditor",anchor:"surfaceTabs",titleKey:"layoutTour.surfaceTabs.title",descKey:"layoutTour.surfaceTabs.description",side:"bottom"},{scope:"siteEditor",anchor:"branchPicker",titleKey:"layoutTour.branchPicker.title",descKey:"layoutTour.branchPicker.description",side:"bottom"},{scope:"orgHome",anchor:"recentActivity",titleKey:"layoutTour.recentActivity.title",descKey:"layoutTour.recentActivity.description",side:"top"}];function ps(t){return gs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function ys(t,e){return ps(e).map(o=>({element:Ft(o.anchor),popover:{title:t(o.titleKey),description:t(o.descKey),side:o.side,align:"center"}}))}const bs=Ft("switcher"),xs=30;function Mt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function Ss(t,e){return ys(t,e).filter(o=>typeof o.element=="string"&&Mt(o.element))}function ws(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(o,{driver:r})=>{if(o.footerButtons.querySelector(".layout-tour-skip"))return;const s=document.createElement("button");s.type="button",s.className="driver-popover-footer-btn layout-tour-skip",s.textContent=t("layoutTour.skip"),s.addEventListener("click",()=>r.destroy()),o.footerButtons.insertBefore(s,o.footerButtons.firstChild)},onDestroyed:()=>{Ve=!1},steps:e}}let Ve=!1;async function vs(){return(await Qt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function js(t,e){if(Ve)return;Ve=!0;let o=0;const r=()=>{if(!Mt(bs)&&o++<xs){requestAnimationFrame(r);return}const s=Ss(t,e);if(s.length===0){Ve=!1;return}vs().then(a=>{a(ws(t,s)).drive()}).catch(()=>{Ve=!1})};r()}function ks(t){return t!=="off"}function si(t){if(!t.hasSource)return[];const e=["site-editor"];return ks(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function zt(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function oi(t){return t.reportsOnly&&!t.onReportAgent&&zt(t.tabId)}const qt=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:bt,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:lt,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:jn,title:"Site editor redesigned",body:"Try the redesigned blocks editor from Profile & Preferences. Blocks share consistent actions, variants appear beside their block in the header, and section selection is searchable."}],cta:{label:"Take a tour",action:"start-tour"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:gt,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:ae,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:bt,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:ae,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:de,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:qe,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:ae,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:de,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:qe,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:de,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:ae,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:qe,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:ae,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:de,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:qe,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:ae,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:de,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:qe,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:ae,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:lt,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:de,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:gt,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:qe,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:de,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:ae,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:lt,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:ae,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:kn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],ot="studio.release-feed.v1",dt=new Set;let ue="",me={},ut=!1;function Ts(){if(ut)return ue||"{}";try{return localStorage.getItem(ot)??"{}"}catch{return ue||"{}"}}function Kt(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function wt(){const t=Ts();return t!==ue&&(ue=t,me=Kt(t)),me}function Ns(t){dt.add(t);const e=o=>{if(!(o.key!==ot&&o.key!==null)){try{const r=localStorage.getItem(ot)??"{}",a={...Kt(r),...me};me=a,ue=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{dt.delete(t),window.removeEventListener("storage",e)}}function _s(t){me=t,ue=JSON.stringify(t);try{localStorage.setItem(ot,ue),ut=!1}catch{ut=!0}dt.forEach(e=>e())}function Ps(){const t=R.c(7),e=se.useSyncExternalStore(Ns,wt,wt);let o;t[0]!==e?(o=m=>!!e[m],t[0]=e,t[1]=o):o=t[1];const r=o,s=As;let a;t[2]!==e?(a=qt.reduce((m,h)=>e[h.id]?m:m+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let c;return t[4]!==r||t[5]!==i?(c={isSeen:r,markSeen:s,unseenCount:i},t[4]=r,t[5]=i,t[6]=c):c=t[6],c}function As(t){me[t]||_s({...me,[t]:{seenAt:new Date().toISOString()}})}const Cs=720*60*60*1e3,Es=10080*60*1e3;function Os(t){const[e,o,r]=t.split("-").map(Number);return!e||!o||!r?new Date(t).getTime():new Date(e,o-1,r).getTime()}function Is(t){const e=qt[0];if(!e)return null;const o=Os(e.date),r=t-o;return r<0||r>Cs?null:e}function $s(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function Ls(t,e){const o=$s(t);return o===null?!1:e-o>=Es}function Ds(){const t=R.c(46),e=J(),o=On(),r=Xt(),s=Dt(),a=!!o,i=r===re.home&&!o;let c;t[0]!==s||t[1]!==a?(c=a&&!!s&&zt(s),t[0]=s,t[1]=a,t[2]=c):c=t[2];const m=c,{data:h}=Be.useSession(),{isSeen:w,markSeen:u}=Ps(),y=Ln(6e4);let l,g,f;if(t[3]!==w||t[4]!==y||t[5]!==h?.user?.createdAt){f=Symbol.for("react.early_return_sentinel");e:{if(l=Is(y),!l){f=null;break e}if(!Ls(h?.user?.createdAt,y)){f=null;break e}g=w(l.id)}t[3]=w,t[4]=y,t[5]=h?.user?.createdAt,t[6]=l,t[7]=g,t[8]=f}else l=t[6],g=t[7],f=t[8];if(f!==Symbol.for("react.early_return_sentinel"))return f;if(g)return null;let d;t[9]!==l.id||t[10]!==a||t[11]!==u||t[12]!==i||t[13]!==m||t[14]!==e?(d=()=>{u(l.id),js(e,{onOrgHome:i,inProject:a,onSiteEditor:m})},t[9]=l.id,t[10]=a,t[11]=u,t[12]=i,t[13]=m,t[14]=e,t[15]=d):d=t[15];const x=d;let b;t[16]!==e?(b=e("announcements.release.ariaLabel"),t[16]=e,t[17]=b):b=t[17];let S;t[18]!==e?(S=e("announcements.release.dismiss"),t[18]=e,t[19]=S):S=t[19];const j=l.eyebrow,P=l.title;let k;t[20]!==l.id||t[21]!==u?(k=()=>u(l.id),t[20]=l.id,t[21]=u,t[22]=k):k=t[22];let v;t[23]!==l.id||t[24]!==l.learnMoreHref||t[25]!==u||t[26]!==e?(v=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>u(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=l.id,t[24]=l.learnMoreHref,t[25]=u,t[26]=e,t[27]=v):v=t[27];let T;t[28]!==l.cta||t[29]!==l.id||t[30]!==u||t[31]!==x?(T=l.cta?"href"in l.cta?n.jsx(F,{asChild:!0,size:"sm",onClick:()=>u(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):n.jsx(F,{size:"sm",onClick:x,children:l.cta.label}):null,t[28]=l.cta,t[29]=l.id,t[30]=u,t[31]=x,t[32]=T):T=t[32];let N;t[33]!==l.bullets?(N=l.bullets.map(Rs),t[33]=l.bullets,t[34]=N):N=t[34];let _;t[35]!==N?(_=n.jsx("ul",{className:"flex flex-col gap-3",children:N}),t[35]=N,t[36]=_):_=t[36];let p;return t[37]!==l.eyebrow||t[38]!==l.title||t[39]!==T||t[40]!==_||t[41]!==b||t[42]!==S||t[43]!==k||t[44]!==v?(p=n.jsx(Rt,{ariaLabel:b,dismissLabel:S,eyebrow:j,title:P,onDismiss:k,footerLeading:v,actions:T,children:_}),t[37]=l.eyebrow,t[38]=l.title,t[39]=T,t[40]=_,t[41]=b,t[42]=S,t[43]=k,t[44]=v,t[45]=p):p=t[45],p}function Rs(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Bt=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),ce=Bt?"⌘":"Ctrl",G={commandPalette:{keys:[ce,"K"],description:"Command palette"},keyboardShortcuts:{keys:["?"],description:"Keyboard shortcuts"},back:{keys:[ce,"["],description:"Back to previous"},focusChatInput:{keys:[ce,"L"],description:"Focus chat input"},saveAndFormat:{keys:[ce,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[ce,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[ce,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",ce,"S"],description:"New task"},toggleDaemon:{keys:[ce,"D"],description:"Toggle daemon logs"}},Fs=[{label:"General",shortcuts:[G.commandPalette,G.keyboardShortcuts,G.back,G.newTask,G.toggleDaemon]},{label:"Editor",shortcuts:[G.saveAndFormat]},{label:"Chat",shortcuts:[G.focusChatInput,G.togglePlanMode,G.sendMessage,G.newLine]},{label:"Questions",shortcuts:[G.selectOption]},{label:"Monitoring",shortcuts:[G.applyFilter]}];function vt(t){return Bt?t.metaKey:t.ctrlKey}function Ms(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName;return e==="INPUT"||e==="TEXTAREA"||e==="SELECT"}function zs(t){const e=R.c(11),{open:o,onOpenChange:r}=t,s=J();let a;e[0]!==s?(a=s("common.keyboardShortcutsDialog.title"),e[0]=s,e[1]=a):a=e[1];let i;e[2]!==a?(i=n.jsx(_t,{children:n.jsx(Pt,{children:a})}),e[2]=a,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"flex flex-col gap-4",children:Fs.map(qs)}),e[4]=c):c=e[4];let m;e[5]!==i?(m=n.jsxs(At,{className:"sm:max-w-md",children:[i,c]}),e[5]=i,e[6]=m):m=e[6];let h;return e[7]!==r||e[8]!==o||e[9]!==m?(h=n.jsx(Ct,{open:o,onOpenChange:r,children:m}),e[7]=r,e[8]=o,e[9]=m,e[10]=h):h=e[10],h}function qs(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Ks)})]},t.label)}function Ks(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Bs)})]},t.description)}function Bs(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const jt=8;function Hs(t){const{org:e}=mt(),o=Bn({connectionId:Ot,orgId:e.id,orgSlug:e.slug}),{data:r}=He({queryKey:Ue.globalSearch(e.id,t,jt),enabled:!!o&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!o)return[];try{return(await o.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:jt}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function Us(t){const e=R.c(195),{open:o,onOpenChange:r}=t,s=J(),a=Et(),{org:i}=mt(),{projects:c,hasProjects:m}=In(),[h,w]=se.useState(""),u=se.useDeferredValue(h),y=Hs(u);let l;e[0]!==r?(l=()=>{r(!1),w("")},e[0]=r,e[1]=l):l=e[1];const g=l;let f;e[2]!==g?(f=(q,W)=>{ct("command_palette_used",{kind:W}),q(),g()},e[2]=g,e[3]=f):f=e[3];const d=f;let x;e[4]!==a||e[5]!==i.id||e[6]!==i.slug?(x=q=>{if(q.type==="connection"){if(!q.slug){a({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}a({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:q.slug}});return}if(q.type==="task"){a({to:re.tasks,params:{org:i.slug,taskKey:q.key??void 0}});return}const W=It(i.id).id;Zt(a,en({org:i.slug,agentId:q.virtual_mcp_id??W,superAgentId:W}),{search:()=>({thread:q.id}),replace:!1})},e[4]=a,e[5]=i.id,e[6]=i.slug,e[7]=x):x=e[7];const b=x;let S;e[8]!==h?(S=[h],e[8]=h,e[9]=S):S=e[9];const j=S;let P,k,v,T,N,_,p,A,$,I,D,C,M;if(e[10]!==g||e[11]!==d||e[12]!==m||e[13]!==y||e[14]!==a||e[15]!==r||e[16]!==o||e[17]!==b||e[18]!==i.slug||e[19]!==c||e[20]!==j||e[21]!==s||e[22]!==h){const q=y.filter(Js),W=y.filter(Gs);let Y;e[36]!==i.slug?(Y={org:i.slug},e[36]=i.slug,e[37]=Y):Y=e[37];const L=Y;let Q;e[38]!==s?(Q=s("sidebar.navDestinations.home"),e[38]=s,e[39]=Q):Q=e[39];let Ge;e[40]===Symbol.for("react.memo_cache_sentinel")?(Ge=n.jsx(Nn,{"aria-hidden":"true"}),e[40]=Ge):Ge=e[40];let oe;e[41]!==L||e[42]!==Q?(oe={key:"home",label:Q,icon:Ge,to:re.home,params:L},e[41]=L,e[42]=Q,e[43]=oe):oe=e[43];let B;e[44]!==s?(B=s("sidebar.navDestinations.reports"),e[44]=s,e[45]=B):B=e[45];let X;e[46]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(_n,{"aria-hidden":"true"}),e[46]=X):X=e[46];let Z;e[47]!==L||e[48]!==B?(Z={key:"reports",label:B,icon:X,to:re.reports,params:L},e[47]=L,e[48]=B,e[49]=Z):Z=e[49];let ee;e[50]!==s?(ee=s("sidebar.navDestinations.tasks"),e[50]=s,e[51]=ee):ee=e[51];let te;e[52]===Symbol.for("react.memo_cache_sentinel")?(te=n.jsx(yt,{"aria-hidden":"true"}),e[52]=te):te=e[52];let H;e[53]!==i.slug?(H={org:i.slug,taskKey:void 0},e[53]=i.slug,e[54]=H):H=e[54];let U;e[55]!==ee||e[56]!==H?(U={key:"tasks",label:ee,icon:te,to:re.tasks,params:H},e[55]=ee,e[56]=H,e[57]=U):U=e[57];let ne;e[58]!==s?(ne=s("sidebar.navDestinations.library"),e[58]=s,e[59]=ne):ne=e[59];let ie;e[60]===Symbol.for("react.memo_cache_sentinel")?(ie=n.jsx(Pn,{"aria-hidden":"true"}),e[60]=ie):ie=e[60];let E;e[61]!==L||e[62]!==ne?(E={key:"library",label:ne,icon:ie,to:re.library,params:L},e[61]=L,e[62]=ne,e[63]=E):E=e[63];let z;e[64]!==s?(z=s("sidebar.navDestinations.discover"),e[64]=s,e[65]=z):z=e[65];let Qe;e[66]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(An,{"aria-hidden":"true"}),e[66]=Qe):Qe=e[66];let he;e[67]!==L||e[68]!==z?(he={key:"discover",label:z,icon:Qe,to:re.discover,params:L},e[67]=L,e[68]=z,e[69]=he):he=e[69];let Xe;e[70]!==oe||e[71]!==Z||e[72]!==U||e[73]!==E||e[74]!==he?(Xe=[oe,Z,U,E,he],e[70]=oe,e[71]=Z,e[72]=U,e[73]=E,e[74]=he,e[75]=Xe):Xe=e[75];const at=Xe;k=Rn,T=o,e[76]!==g||e[77]!==r?(N=O=>O?r(!0):g(),e[76]=g,e[77]=r,e[78]=N):N=e[78],e[79]!==s?(_=s("commandPalette.title"),e[79]=s,e[80]=_):_=e[80],e[81]!==s?(p=s("commandPalette.description"),e[81]=s,e[82]=p):p=e[82];let ge;e[83]!==s?(ge=s("commandPalette.placeholder"),e[83]=s,e[84]=ge):ge=e[84];let pe;e[85]!==s?(pe=s("commandPalette.placeholder"),e[85]=s,e[86]=pe):pe=e[86],e[87]!==ge||e[88]!==pe||e[89]!==h?(A=n.jsx(Fn,{placeholder:ge,"aria-label":pe,value:h,onValueChange:w}),e[87]=ge,e[88]=pe,e[89]=h,e[90]=A):A=e[90],P=Mn;let ye;e[91]!==s?(ye=s("commandPalette.empty"),e[91]=s,e[92]=ye):ye=e[92],e[93]!==ye?($=n.jsx(zn,{children:ye}),e[93]=ye,e[94]=$):$=e[94];let be;e[95]!==s?(be=s("commandPalette.goTo"),e[95]=s,e[96]=be):be=e[96];let xe;e[97]!==at||e[98]!==d||e[99]!==a?(xe=at.map(O=>n.jsxs(le,{onSelect:()=>d(()=>a({to:O.to,params:O.params}),"destination"),children:[O.icon,n.jsx("span",{children:O.label})]},O.key)),e[97]=at,e[98]=d,e[99]=a,e[100]=xe):xe=e[100],e[101]!==be||e[102]!==xe?(I=n.jsx(Je,{heading:be,children:xe}),e[101]=be,e[102]=xe,e[103]=I):I=e[103],e[104]!==d||e[105]!==m||e[106]!==a||e[107]!==i.slug||e[108]!==c||e[109]!==s?(D=m&&n.jsx(Je,{heading:s("commandPalette.projects"),children:c.map(O=>n.jsxs(le,{value:`project ${O.title}`,onSelect:()=>d(()=>a({to:re.projects,params:{org:i.slug,agentId:O.id}}),"project"),children:[n.jsx(Kn,{icon:O.icon,name:O.title,"aria-hidden":"true"}),n.jsx("span",{children:O.title})]},O.id))}),e[104]=d,e[105]=m,e[106]=a,e[107]=i.slug,e[108]=c,e[109]=s,e[110]=D):D=e[110];let Se;e[111]!==s?(Se=s("commandPalette.actions"),e[111]=s,e[112]=Se):Se=e[112];let we;e[113]!==s?(we=s("commandPalette.newProject"),e[113]=s,e[114]=we):we=e[114];let ve;e[115]!==d||e[116]!==a||e[117]!==L?(ve=()=>d(()=>a({to:re.home,params:L}),"new_project"),e[115]=d,e[116]=a,e[117]=L,e[118]=ve):ve=e[118];let Ze;e[119]===Symbol.for("react.memo_cache_sentinel")?(Ze=n.jsx(xt,{"aria-hidden":"true"}),e[119]=Ze):Ze=e[119];let je;e[120]!==s?(je=s("commandPalette.newProject"),e[120]=s,e[121]=je):je=e[121];let ke;e[122]!==je?(ke=n.jsx("span",{children:je}),e[122]=je,e[123]=ke):ke=e[123];let Te;e[124]!==we||e[125]!==ve||e[126]!==ke?(Te=n.jsxs(le,{value:we,onSelect:ve,children:[Ze,ke]}),e[124]=we,e[125]=ve,e[126]=ke,e[127]=Te):Te=e[127];let Ne;e[128]!==s?(Ne=s("commandPalette.inviteTeammate"),e[128]=s,e[129]=Ne):Ne=e[129];let _e;e[130]!==d||e[131]!==a||e[132]!==L?(_e=()=>d(()=>a({to:"/$org/settings/members",params:L}),"invite"),e[130]=d,e[131]=a,e[132]=L,e[133]=_e):_e=e[133];let et;e[134]===Symbol.for("react.memo_cache_sentinel")?(et=n.jsx(Cn,{"aria-hidden":"true"}),e[134]=et):et=e[134];let Pe;e[135]!==s?(Pe=s("commandPalette.inviteTeammate"),e[135]=s,e[136]=Pe):Pe=e[136];let Ae;e[137]!==Pe?(Ae=n.jsx("span",{children:Pe}),e[137]=Pe,e[138]=Ae):Ae=e[138];let Ce;e[139]!==Ne||e[140]!==_e||e[141]!==Ae?(Ce=n.jsxs(le,{value:Ne,onSelect:_e,children:[et,Ae]}),e[139]=Ne,e[140]=_e,e[141]=Ae,e[142]=Ce):Ce=e[142];let Ee;e[143]!==s?(Ee=s("commandPalette.addConnection"),e[143]=s,e[144]=Ee):Ee=e[144];let Oe;e[145]!==d||e[146]!==a||e[147]!==L?(Oe=()=>d(()=>a({to:"/$org/settings/connections",params:L,search:{tab:"all"}}),"add_connection"),e[145]=d,e[146]=a,e[147]=L,e[148]=Oe):Oe=e[148];let tt;e[149]===Symbol.for("react.memo_cache_sentinel")?(tt=n.jsx(xt,{"aria-hidden":"true"}),e[149]=tt):tt=e[149];let Ie;e[150]!==s?(Ie=s("commandPalette.addConnection"),e[150]=s,e[151]=Ie):Ie=e[151];let $e;e[152]!==Ie?($e=n.jsx("span",{children:Ie}),e[152]=Ie,e[153]=$e):$e=e[153];let Le;e[154]!==Ee||e[155]!==Oe||e[156]!==$e?(Le=n.jsxs(le,{value:Ee,onSelect:Oe,children:[tt,$e]}),e[154]=Ee,e[155]=Oe,e[156]=$e,e[157]=Le):Le=e[157];let De;e[158]!==s?(De=s("commandPalette.settings"),e[158]=s,e[159]=De):De=e[159];let Re;e[160]!==d||e[161]!==a||e[162]!==L?(Re=()=>d(()=>a({to:"/$org/settings/general",params:L}),"settings"),e[160]=d,e[161]=a,e[162]=L,e[163]=Re):Re=e[163];let nt;e[164]===Symbol.for("react.memo_cache_sentinel")?(nt=n.jsx(Dn,{"aria-hidden":"true"}),e[164]=nt):nt=e[164];let Fe;e[165]!==s?(Fe=s("commandPalette.settings"),e[165]=s,e[166]=Fe):Fe=e[166];let Me;e[167]!==Fe?(Me=n.jsx("span",{children:Fe}),e[167]=Fe,e[168]=Me):Me=e[168];let ze;e[169]!==De||e[170]!==Re||e[171]!==Me?(ze=n.jsxs(le,{value:De,onSelect:Re,children:[nt,Me]}),e[169]=De,e[170]=Re,e[171]=Me,e[172]=ze):ze=e[172],e[173]!==Se||e[174]!==Te||e[175]!==Ce||e[176]!==Le||e[177]!==ze?(C=n.jsxs(Je,{heading:Se,children:[Te,Ce,Le,ze]}),e[173]=Se,e[174]=Te,e[175]=Ce,e[176]=Le,e[177]=ze,e[178]=C):C=e[178],M=q.length>0&&n.jsx(Je,{heading:s("commandPalette.connections"),children:q.map(O=>n.jsxs(le,{value:`${O.title} ${O.id}`,keywords:j,onSelect:()=>d(()=>b(O),"connection"),children:[n.jsx(qn,{icon:O.icon,name:O.title,size:"2xs","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:O.title})]},`connection:${O.id}`))}),v=W.length>0&&n.jsx(Je,{heading:s("commandPalette.results"),children:W.map(O=>n.jsxs(le,{value:`${O.title} ${O.id}`,keywords:j,onSelect:()=>d(()=>b(O),O.type),children:[O.type==="thread"?n.jsx(Tn,{"aria-hidden":"true"}):n.jsx(yt,{"aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:O.title}),O.type==="task"&&O.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:O.key})]},`${O.type}:${O.id}`))}),e[10]=g,e[11]=d,e[12]=m,e[13]=y,e[14]=a,e[15]=r,e[16]=o,e[17]=b,e[18]=i.slug,e[19]=c,e[20]=j,e[21]=s,e[22]=h,e[23]=P,e[24]=k,e[25]=v,e[26]=T,e[27]=N,e[28]=_,e[29]=p,e[30]=A,e[31]=$,e[32]=I,e[33]=D,e[34]=C,e[35]=M}else P=e[23],k=e[24],v=e[25],T=e[26],N=e[27],_=e[28],p=e[29],A=e[30],$=e[31],I=e[32],D=e[33],C=e[34],M=e[35];let K;e[179]!==P||e[180]!==v||e[181]!==$||e[182]!==I||e[183]!==D||e[184]!==C||e[185]!==M?(K=n.jsxs(P,{children:[$,I,D,C,M,v]}),e[179]=P,e[180]=v,e[181]=$,e[182]=I,e[183]=D,e[184]=C,e[185]=M,e[186]=K):K=e[186];let V;return e[187]!==k||e[188]!==T||e[189]!==N||e[190]!==_||e[191]!==p||e[192]!==A||e[193]!==K?(V=n.jsxs(k,{open:T,onOpenChange:N,title:_,description:p,children:[A,K]}),e[187]=k,e[188]=T,e[189]=N,e[190]=_,e[191]=p,e[192]=A,e[193]=K,e[194]=V):V=e[194],V}function Gs(t){return t.type!=="connection"}function Js(t){return t.type==="connection"}const Ye=new Vn(!1);function Vs(){Ye.set(!0)}function Ws(){Ye.set(!1)}function Ys(){const t=R.c(2),e=se.useSyncExternalStore(Ye.subscribe,Ye.get);let o;return t[0]!==e?(o=[e,Ye.set],t[0]=e,t[1]=o):o=t[1],o}const Qs=300*1e3,Xs=2;function Zs(t,e,o){return!e||e===o?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function eo(t,e){return t.count>=Xs&&t.version!==null&&t.version!==e}function to(){const t=R.c(31),e=J();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={queryKey:Ue.appVersionCheck(),queryFn:so,refetchInterval:Qs,refetchIntervalInBackground:!0,staleTime:0},t[0]=o):o=t[0];const{data:r,dataUpdatedAt:s}=He(o),[a,i]=se.useState(0);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={version:null,count:0},t[1]=c):c=t[1];const[m,h]=se.useState(c);s!==a&&(i(s),h(T=>Zs(T,r,"4.513.8")));const[w,u]=se.useState(null);if(!eo(m,w))return null;let y;t[2]!==e?(y=e("announcements.version.ariaLabel"),t[2]=e,t[3]=y):y=t[3];let l;t[4]!==e?(l=e("announcements.version.dismiss"),t[4]=e,t[5]=l):l=t[5];let g;t[6]!==e?(g=e("announcements.version.eyebrow"),t[6]=e,t[7]=g):g=t[7];let f;t[8]!==e?(f=e("announcements.version.title"),t[8]=e,t[9]=f):f=t[9];let d;t[10]!==e?(d=e("announcements.version.description"),t[10]=e,t[11]=d):d=t[11];let x;t[12]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(pt,{size:16}),t[12]=x):x=t[12];let b;t[13]!==m.version?(b=()=>u(m.version),t[13]=m.version,t[14]=b):b=t[14];let S;t[15]!==e?(S=e("announcements.version.currentSession",{version:"4.513.8"}),t[15]=e,t[16]=S):S=t[16];let j;t[17]!==e?(j=e("announcements.version.refresh"),t[17]=e,t[18]=j):j=t[18];let P;t[19]===Symbol.for("react.memo_cache_sentinel")?(P=n.jsx(pt,{size:14}),t[19]=P):P=t[19];let k;t[20]!==j?(k=n.jsxs(F,{size:"sm",onClick:no,children:[j,P]}),t[20]=j,t[21]=k):k=t[21];let v;return t[22]!==k||t[23]!==y||t[24]!==l||t[25]!==g||t[26]!==f||t[27]!==d||t[28]!==b||t[29]!==S?(v=n.jsx(Rt,{ariaLabel:y,dismissLabel:l,eyebrow:g,title:f,description:d,icon:x,tone:"system",onDismiss:b,footerLeading:S,actions:k}),t[22]=k,t[23]=y,t[24]=l,t[25]=g,t[26]=f,t[27]=d,t[28]=b,t[29]=S,t[30]=v):v=t[30],v}function no(){return window.location.reload()}async function so(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function oo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const io=Date.parse("2026-07-21T00:00:00Z"),kt=t=>oo(Ke.ptBrAnnouncementSeen(t));function ao(){const t=R.c(35),e=J(),[o,r]=tn(),{data:s,isPending:a}=Be.useSession(),i=s?.user,c=i?.id,m=i?.createdAt,h=m!=null&&new Date(m).getTime()<io,w=nn()==="pt-BR",u=!a&&!!c&&h&&w&&o.language==="en"&&!kt(c).has(),[y,l]=se.useState(!1),[g,f]=se.useState(!1);!y&&!a&&(l(!0),u&&c&&(kt(c).mark(),r(lo),f(!0),ct("pt_br_auto_switch_shown")));let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=V=>{ct("pt_br_auto_switch_closed",{action:V}),f(!1)},t[0]=d):d=t[0];const x=d;let b;t[1]!==r?(b=()=>{r(ro),x("switch-back")},t[1]=r,t[2]=b):b=t[2];const S=b;let j;t[3]===Symbol.for("react.memo_cache_sentinel")?(j=V=>!V&&x("dismiss"),t[3]=j):j=t[3];let P;t[4]===Symbol.for("react.memo_cache_sentinel")?(P=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=P):P=t[4];let k;t[5]!==e?(k=e("announcements.ptBr.title"),t[5]=e,t[6]=k):k=t[6];let v;t[7]!==k?(v=n.jsx(Pt,{children:k}),t[7]=k,t[8]=v):v=t[8];let T;t[9]!==e?(T=e("announcements.ptBr.description"),t[9]=e,t[10]=T):T=t[10];let N;t[11]!==T?(N=n.jsx(sn,{children:T}),t[11]=T,t[12]=N):N=t[12];let _;t[13]!==v||t[14]!==N?(_=n.jsxs(_t,{children:[v,N]}),t[13]=v,t[14]=N,t[15]=_):_=t[15];let p;t[16]!==e?(p=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=p):p=t[17];let A;t[18]!==S||t[19]!==p?(A=n.jsx(F,{variant:"outline",onClick:S,children:p}),t[18]=S,t[19]=p,t[20]=A):A=t[20];let $;t[21]===Symbol.for("react.memo_cache_sentinel")?($=()=>x("ok"),t[21]=$):$=t[21];let I;t[22]!==e?(I=e("announcements.ptBr.ok"),t[22]=e,t[23]=I):I=t[23];let D;t[24]!==I?(D=n.jsx(F,{onClick:$,children:I}),t[24]=I,t[25]=D):D=t[25];let C;t[26]!==A||t[27]!==D?(C=n.jsxs(on,{children:[A,D]}),t[26]=A,t[27]=D,t[28]=C):C=t[28];let M;t[29]!==C||t[30]!==_?(M=n.jsxs(At,{className:"sm:max-w-md",children:[P,_,C]}),t[29]=C,t[30]=_,t[31]=M):M=t[31];let K;return t[32]!==g||t[33]!==M?(K=n.jsx(Ct,{open:g,onOpenChange:j,children:M}),t[32]=g,t[33]=M,t[34]=K):K=t[34],K}function ro(t){return{...t,language:"en"}}function lo(t){return{...t,language:"pt-BR"}}function co(t){const e=an(t);return typeof e=="string"?e:void 0}function uo(){return co("experiment-pipeline-check"),null}function mo(t){const e=R.c(1),{activeOrg:o}=t;if(!o)return null;rn(o.id,{name:o.name??void 0,slug:o.slug??void 0}),ln();let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(uo,{}),e[0]=r):r=e[0],r}function fo(t){const{prev:e,virtualMcpId:o,decopilotId:r,savedLayout:s,opts:a,autosendValue:i}=t,c={mainpanel:void 0};o?c.virtualmcpid=o:e.virtualmcpid&&(c.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:r,w=(o??m)!==m;let u,y;return a?.panel?y=a.panel:a?.newThread&&!w&&cn(e.tabId)?(y=e.tabId,c.mainpanel=e.mainpanel,u=e.sidepanel):s?(y=s.tab,s.sidepanel!==void 0&&(u=s.sidepanel),s.mainpanel!==void 0&&(c.mainpanel=s.mainpanel)):!w&&e.tabId&&!dn(e.tabId)&&(y=e.tabId),u!==void 0&&(c.sidepanel=u),a?.autosend&&(c.autosend=i),{tabId:y,search:c}}const Ht="studio:thread-layout:v4",ho=50;function Ut(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function go(t,e,o,r=ho){const s=t.filter(([a])=>a!==e);for(s.push([e,Ut(o)]);s.length>r;)s.shift();return s}function ft(){try{const t=sessionStorage.getItem(Ht);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function Gt(t){try{sessionStorage.setItem(Ht,JSON.stringify(t))}catch{}}function po(t,e){t&&Gt(go(ft(),t,e))}function yo(t){if(!t)return null;const e=ft().find(([o])=>o===t);return e?Ut(e[1]):null}function ii(t){if(!t)return;const e=ft(),o=e.filter(([r])=>r!==t);o.length!==e.length&&Gt(o)}function Jt(t){return{queryKey:Ue.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function ai(t){const e=R.c(10);let o;e[0]!==t?(o=Jt(t),e[0]=t,e[1]=o):o=e[1];const r=He(o);let s;e[2]!==r.data?.prompts?(s=r.data?.prompts??[],e[2]=r.data?.prompts,e[3]=s):s=e[3];let a;e[4]!==r.data?.tiles?(a=r.data?.tiles??[],e[4]=r.data?.tiles,e[5]=a):a=e[5];let i;return e[6]!==r.isLoading||e[7]!==s||e[8]!==a?(i={isLoading:r.isLoading,prompts:s,tiles:a},e[6]=r.isLoading,e[7]=s,e[8]=a,e[9]=i):i=e[9],i}function bo(t){const e=R.c(31),{orgSlug:o,orgName:r,domain:s}=t,a=J();let i;e[0]!==o?(i=()=>{window.location.href=`/api/${encodeURIComponent(o)}/sso/authorize`},e[0]=o,e[1]=i):i=e[1];const c=i,m=xo;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(Tt,{className:"h-6 w-6 text-primary"})}),e[2]=h):h=e[2];let w;e[3]!==a?(w=a("common.ssoRequiredScreen.title"),e[3]=a,e[4]=w):w=e[4];let u;e[5]!==w?(u=n.jsx("h3",{className:"text-lg font-medium",children:w}),e[5]=w,e[6]=u):u=e[6];let y;e[7]!==s||e[8]!==r||e[9]!==a?(y=r?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:r})," ",a("common.ssoRequiredScreen.requiresSsoAuth"),s?` ${a("common.ssoRequiredScreen.via",{domain:s})}`:"","."]}):a("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=s,e[8]=r,e[9]=a,e[10]=y):y=e[10];let l;e[11]!==y?(l=n.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[11]=y,e[12]=l):l=e[12];let g;e[13]!==u||e[14]!==l?(g=n.jsxs("div",{className:"space-y-2",children:[u,l]}),e[13]=u,e[14]=l,e[15]=g):g=e[15];let f;e[16]!==a?(f=a("common.ssoRequiredScreen.signInWithSso"),e[16]=a,e[17]=f):f=e[17];let d;e[18]!==c||e[19]!==f?(d=n.jsx(F,{onClick:c,children:f}),e[18]=c,e[19]=f,e[20]=d):d=e[20];let x;e[21]!==a?(x=a("common.goBack"),e[21]=a,e[22]=x):x=e[22];let b;e[23]!==x?(b=n.jsx(F,{variant:"ghost",onClick:m,children:x}),e[23]=x,e[24]=b):b=e[24];let S;e[25]!==b||e[26]!==d?(S=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[d,b]}),e[25]=b,e[26]=d,e[27]=S):S=e[27];let j;return e[28]!==S||e[29]!==g?(j=n.jsxs(fe,{children:[h,g,S]}),e[28]=S,e[29]=g,e[30]=j):j=e[30],j}function xo(){window.location.href="/"}function So(t){const e=R.c(27),{notice:o,orgSlug:r}=t,s=J();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(un,{className:"h-6 w-6 text-destructive"})}),e[0]=a):a=e[0];let i;e[1]!==o.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:o.title}),e[1]=o.title,e[2]=i):i=e[2];let c;e[3]!==o.message?(c=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:o.message}),e[3]=o.message,e[4]=c):c=e[4];let m;e[5]!==i||e[6]!==c?(m=n.jsxs("div",{className:"space-y-2",children:[i,c]}),e[5]=i,e[6]=c,e[7]=m):m=e[7];let h;e[8]!==o.ctaLabel||e[9]!==o.ctaUrl?(h=o.ctaUrl&&o.ctaLabel?n.jsx(F,{asChild:!0,children:n.jsx("a",{href:o.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:o.ctaLabel})}):null,e[8]=o.ctaLabel,e[9]=o.ctaUrl,e[10]=h):h=e[10];const w=`/${encodeURIComponent(r)}/settings/infra-billing`;let u;e[11]!==s?(u=s("common.blockedOrgScreen.goToBilling"),e[11]=s,e[12]=u):u=e[12];let y;e[13]!==w||e[14]!==u?(y=n.jsx(F,{variant:"outline",asChild:!0,children:n.jsx("a",{href:w,children:u})}),e[13]=w,e[14]=u,e[15]=y):y=e[15];let l;e[16]!==s?(l=s("common.blockedOrgScreen.switchOrg"),e[16]=s,e[17]=l):l=e[17];let g;e[18]!==l?(g=n.jsx(F,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:l})}),e[18]=l,e[19]=g):g=e[19];let f;e[20]!==g||e[21]!==h||e[22]!==y?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,y,g]}),e[20]=g,e[21]=h,e[22]=y,e[23]=f):f=e[23];let d;return e[24]!==f||e[25]!==m?(d=n.jsxs(fe,{children:[a,m,f]}),e[24]=f,e[25]=m,e[26]=d):d=e[26],d}function wo(t){const e=R.c(8);let o;e[0]!==t?(o=Ue.orgNotice(t??""),e[0]=t,e[1]=o):o=e[1];let r;e[2]!==t?(r=async()=>{const i=await fetch(`/api/${t}/notice`,{credentials:"include"});return i.ok?(await i.json()).notice??null:null},e[2]=t,e[3]=r):r=e[3];const s=!!t;let a;return e[4]!==o||e[5]!==r||e[6]!==s?(a={queryKey:o,queryFn:r,enabled:s,staleTime:6e4},e[4]=o,e[5]=r,e[6]=s,e[7]=a):a=e[7],He(a)}const vo="/settings/infra-billing";function jo(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(vo)}function ko(t){const e=R.c(7),{org:o,children:r}=t;let s;e[0]!==o.id||e[1]!==o.name?(s={id:o.id,organizationId:o.id,slug:"_org",name:o.name,ui:null},e[0]=o.id,e[1]=o.name,e[2]=s):s=e[2];const a=s;let i;return e[3]!==r||e[4]!==o||e[5]!==a?(i=n.jsx(xn,{org:o,project:a,children:r}),e[3]=r,e[4]=o,e[5]=a,e[6]=i):i=e[6],i}function To(){const t=Et(),e=Wn(),{org:o}=mt(),r=mn({strict:!1}),s=Dt(),{openPanel:a,closePanel:i}=$n(),c=Xn(),m=Zn(),h=es(),w=ts(),u=(f,d=!0)=>t({to:".",search:f,replace:d}),y=()=>u(f=>({...f,sidepanel:!0})),l=(f,d,x)=>{const b=!!m&&m===f;m&&!b&&po(m,{tab:s,mainpanel:r.mainpanel,sidepanel:r.sidepanel});const S=b?null:yo(f),j=It(o.id).id,P=fo({prev:{virtualmcpid:c,tabId:s,mainpanel:r.mainpanel,sidepanel:r.sidepanel},virtualMcpId:d,decopilotId:j,savedLayout:S,opts:x,autosendValue:Qn});return w(f,()=>P.search,{virtualMcpId:d,view:{tabId:P.tabId}})};return{openSidePanel:y,setTaskId:l,createNewTask:async(f,d,x)=>{const b=crypto.randomUUID(),S=f??h;try{await e?.create({id:b,virtual_mcp_id:S,...d?{branch:d}:{}})}catch{}l(b,S,{...x,newThread:!0})},openTab:a,closeTab:i}}const No=new Set(["/$org/","/$org/home"]);function _o(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:Po},t[0]=e):e=t[0],$t(e)}function Po(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&No.has(e)}function Ao(){const t=R.c(63);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const r=fn(e)?.params.org,[s,a]=se.useState(!1),[i,c]=Ys(),[m,h]=Un(),w=hn(),u=_o(),y=r??"";let l;t[1]!==y?(l=Jt(y),t[1]=y,t[2]=l):l=t[2];const g=!!r&&u;let f;t[3]!==l||t[4]!==g?(f={...l,enabled:g},t[3]=l,t[4]=g,t[5]=f):f=t[5],He(f);const{data:d}=Be.useSession(),x=d?.user?.id;let b;t[6]!==r||t[7]!==x?(b=r&&x?gn(x,r):null,t[6]=r,t[7]=x,t[8]=b):b=t[8];const S=b;let j,P;t[9]!==w?(j=()=>{const E=z=>{if(vt(z)&&z.code==="KeyK"){z.preventDefault(),Vs();return}if(z.key==="?"&&!Ms(z.target)){z.preventDefault(),a(!0);return}vt(z)&&z.code==="BracketLeft"&&w.history.canGoBack()&&(z.preventDefault(),w.history.back())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},P=[w],t[9]=w,t[10]=j,t[11]=P):(j=t[10],P=t[11]),se.useEffect(j,P);let k;t[12]!==r?(k=Ue.activeOrganization(r),t[12]=r,t[13]=k):k=t[13];let v;t[14]!==r||t[15]!==x?(v=async()=>{if(!r)return null;performance.mark("mesh:active-org-fetch:start");const{data:E}=await Be.organization.getFullOrganization({query:{organizationSlug:r}}).finally(Eo),z=rt(E);return E&&!z&&localStorage.setItem(Ke.lastOrgSlug(),r),x&&E&&yn(x,r,E),E},t[14]=r,t[15]=x,t[16]=v):v=t[16];const T=S?S.data:void 0,N=S?.updatedAt;let _;t[17]!==T||t[18]!==N||t[19]!==k||t[20]!==v?(_={queryKey:k,queryFn:v,initialData:T,initialDataUpdatedAt:N,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=T,t[18]=N,t[19]=k,t[20]=v,t[21]=_):_=t[21];const{data:p}=Nt(_),A=p?.id,$=p?.slug,{data:I}=ns(A,$),D=!!I?.ssoRequired&&!I.authenticated,{data:C}=wo($);let M;t[22]===Symbol.for("react.memo_cache_sentinel")?(M={select:Co},t[22]=M):M=t[22];const K=$t(M),V=C?.severity==="block"&&!jo(K),q=A??"",W=$??"";let Y;t[23]!==q||t[24]!==W?(Y=Hn({connectionId:Ot,orgId:q,orgSlug:W}),t[23]=q,t[24]=W,t[25]=Y):Y=t[25];const L=!!A&&!!$;let Q;if(t[26]!==Y||t[27]!==L?(Q={...Y,enabled:L},t[26]=Y,t[27]=L,t[28]=Q):Q=t[28],He(Q),(!p||rt(p)||D||V)&&Ws(),!p){let E;return t[29]!==r?(E=n.jsx(fs,{orgSlug:r}),t[29]=r,t[30]=E):E=t[30],E}if(rt(p)){localStorage.getItem(Ke.lastOrgSlug())===r&&localStorage.removeItem(Ke.lastOrgSlug());let E;return t[31]!==p.name?(E=n.jsx(pn,{orgName:p.name}),t[31]=p.name,t[32]=E):E=t[32],E}if(V&&C){let E;return t[33]!==p.slug||t[34]!==C?(E=n.jsx(So,{notice:C,orgSlug:p.slug}),t[33]=p.slug,t[34]=C,t[35]=E):E=t[35],E}if(D){let E;return t[36]!==p.id||t[37]!==p.name||t[38]!==p.slug||t[39]!==I.domain?(E=n.jsx(bo,{orgId:p.id,orgSlug:p.slug,orgName:p.name,domain:I.domain}),t[36]=p.id,t[37]=p.name,t[38]=p.slug,t[39]=I.domain,t[40]=E):E=t[40],E}const oe=p.logo??null;let B;t[41]!==p||t[42]!==oe?(B={...p,logo:oe},t[41]=p,t[42]=oe,t[43]=B):B=t[43];let X;t[44]!==p?(X=n.jsx(mo,{activeOrg:p}),t[44]=p,t[45]=X):X=t[45];let Z;t[46]===Symbol.for("react.memo_cache_sentinel")?(Z=n.jsx(bn,{}),t[46]=Z):Z=t[46];let ee;t[47]===Symbol.for("react.memo_cache_sentinel")?(ee=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Ds,{}),n.jsx(to,{})]}),t[47]=ee):ee=t[47];let te;t[48]!==i||t[49]!==c?(te=i&&n.jsx(Us,{open:i,onOpenChange:c}),t[48]=i,t[49]=c,t[50]=te):te=t[50];let H;t[51]!==m||t[52]!==h?(H=m&&n.jsx(Gn,{open:!0,onOpenChange:h,source:Jn()}),t[51]=m,t[52]=h,t[53]=H):H=t[53];let U;t[54]!==s?(U=n.jsx(zs,{open:s,onOpenChange:a}),t[54]=s,t[55]=U):U=t[55];let ne;t[56]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(ao,{}),t[56]=ne):ne=t[56];let ie;return t[57]!==B||t[58]!==X||t[59]!==te||t[60]!==H||t[61]!==U?(ie=n.jsxs(ko,{org:B,children:[X,Z,ee,te,H,U,ne]}),t[57]=B,t[58]=X,t[59]=te,t[60]=H,t[61]=U,t[62]=ie):ie=t[62],ie}function Co(t){return t.location.pathname}function Eo(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Oo(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Yn,{children:n.jsx(Ao,{})}),t[0]=e):e=t[0],e}const ri=Object.freeze(Object.defineProperty({__proto__:null,default:Oo,usePanelActions:To},Symbol.toStringTag,{value:"Module"}));export{G as K,hs as L,To as a,vt as b,ks as c,Ms as d,ai as e,ii as f,ri as g,zt as i,Vs as o,si as r,oi as s,wo as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as u,r as g,j as n,F,Z as G,_ as H,a as E,k as P,b as O,n as y,L as M}from"./index-DEQvnIsm.js";import{C as V}from"./chat-context-Dv2E4fnf.js";import{C as x}from"./index-mh7U_AKI.js";import{L}from"./index-BdR6LNyh.js";import{B as K}from"./blocks-preview-workspace-context-DcqAhd0P.js";import{e as T,p as W,s as J,a as U,r as z,T as $,u as R,b as Z}from"./site-editor-toast-CmNIWnCw.js";import{u as q,L as B,P as Q,S as X}from"./preview-tab-DsWFy6nY.js";import{C as Y}from"./content-tab-DYpKep2J.js";import{T as tt}from"./tab-icon-glyph-D6mZxF_9.js";import{r as et}from"./resolve-tab-icon-B66mDW53.js";import ot from"./agent-site-editor-DMCFUFgp.js";import"./use-panel-navigate-BwwjvhNB.js";import"./thread-route-DTbE-Col.js";import"./use-project-scope-Dn4doId4.js";import"./repository-binding-DpSh0bkT.js";import"./use-mcp-client-CAdgJ_QT.js";import"./auth-BVkTFTOt.js";import"./autosend-CL2OZPvg.js";import"./thread-intent-8kpZLcDE.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-C7xRCtu5.js";import"./task-board-DUTGhEiC.js";import"./schema-BzqS-kNt.js";import"./slugify-CEUa2lfQ.js";import"./use-decopilot-events-Czwn8ZVj.js";import"./use-ai-providers-W2Q5vYCk.js";import"./location-BjlyegC2.js";import"./use-organization-settings-BtOReG0H.js";import"./use-mobile-CSFJ-mhK.js";import"./use-sidebar-collapsed-Dv10z2iu.js";import"./use-chat-layout-state-C-XHZ0Dd.js";import"./agent-icon-D6wS7rd0.js";import"./AlertCircle-Q16nTVAa.js";import"./Tool01-Bp-TbrXi.js";import"./ArrowUp--4P0C-xl.js";import"./ArrowLeft-C_dTX_8N.js";import"./LinkBroken01-DmmKNgpp.js";import"./ShoppingBag01-B7gta_qY.js";import"./ZoomOut-B3s5275g.js";import"./Building02-Gub-pr-8.js";import"./CheckCircle-CQxu_pm9.js";import"./ChevronUp-DK-Gvyk8.js";import"./ChevronSelectorVertical-GBLm8Zpl.js";import"./UserSquare-cdWcOBLL.js";import"./Copy01-EWitDFCf.js";import"./CreditCard01-wx_z4Iiz.js";import"./DotsVertical-DIT5hu2b.js";import"./Image01-BfGAREA7.js";import"./Globe04-B45_cBRN.js";import"./SwitchHorizontal01-BJyDDPw9.js";import"./Key01-BV7tzZs6.js";import"./Link01-9civFIb9.js";import"./Monitor01-BoSs_8gg.js";import"./Sun-BfjJa3ru.js";import"./Play-CleWZLOG.js";import"./Plus-DQf-jm_3.js";import"./SearchMd-D0zp0uee.js";import"./Trash01-Dlk_Sh-H.js";import"./Upload01-DlF9Jqso.js";import"./User01-BcekHhAV.js";import"./Users01-BIP-PxGt.js";import"./XClose-L_GNViCD.js";import"./tooltip-B6NbTX5P.js";import"./index-BaQyqQF-.js";import"./toolbar-icon-button-BypH-a8F.js";import"./shell-layout-DKGS0yWx.js";import"./avatar-LfY3dprD.js";import"./use-clock-tick-xpCK7CUB.js";import"./command-KXg0ZuU-.js";import"./index-B9qNCJbx.js";import"./integration-icon-Bysyldtc.js";import"./project-icon-ChTT5o1a.js";import"./new-project-dialog-DKeFr4C7.js";import"./label-Cf2Qy475.js";import"./repository-import-picker-CmGbASze.js";import"./use-navigate-to-agent-B-QlLf3R.js";import"./repository-picker-C86kcY-U.js";import"./useInfiniteQuery-Bo5dbMM_.js";import"./infiniteQueryObserver-BnP8vr6V.js";import"./collection-search-Dcze6ySb.js";import"./use-debounced-value-vhgvmVq4.js";import"./required-auth-layout-RW5dOh2c.js";import"./use-org-sso-BhMczCH6.js";import"./sheet-CzJFx6b-.js";import"./resizable-DueLEUEm.js";import"./core.esm-BO316fgf.js";import"./sortable.esm-BuCSUlOk.js";import"./context-menu-BFA8rRfY.js";import"./create-organization-dialog-Cb6YY9K7.js";import"./alert-dialog-ygFmYcOa.js";import"./form-DNjk4sZI.js";import"./project-apps-D50B5nYg.js";import"./use-project-native-view-presence-D4pR1T7b.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-BIHMmAjW.js";import"./use-main-schema-v8-Jzc_7tOC.js";import"./site-slug-DebpOoQq.js";import"./use-recent-apps-B_BFFpi_.js";import"./input-Brhdhig1.js";import"./usage-stats-BH4bqLoE.js";import"./tool-namespace-CTeV292R.js";import"./utils-CVEq3hMx.js";import"./markdown-DgDY2QmE.js";import"./use-copy-Dkgb0DtI.js";import"./format-time-Cq80KKvY.js";import"./differenceInSeconds-C3x8sHUj.js";import"./icon-button-WP5IJTs8.js";import"./file-type-icon-HF5UcaS2.js";import"./chat-draft-X1dGJc2x.js";import"./select-ChqJI0MI.js";import"./index-BdQq_4o_.js";import"./tabs-D0oiuUhC.js";import"./use-deco-credits-k0aTLB-T.js";import"./toggle-group-BWQRN38D.js";import"./use-open-billing-url-DWsw6Alp.js";import"./index-DZLfyA8t.js";import"./checkbox-CaUezNgL.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-CjfUWaC0.js";import"./drawer-DL0G-oy-.js";import"./input-Bu2Qzwzh.js";import"./suggestion-DRP05M3-.js";import"./use-mcp-prompts-D1rnFTSb.js";import"./use-org-fs-CAwgni1d.js";import"./question-004-sINsf4GQ.js";import"./use-members-D-L919KG.js";import"./use-org-auth-client-Co_fa5Pp.js";import"./feature-paywall-BSXK-EmV.js";import"./plan-ladder-CFysCUYy.js";import"./add-connection-dialog-DwDvS8Uw.js";import"./extract-connection-data-BlmKelwb.js";import"./metadata-D72DunRR.js";import"./connection-CEK3iDim.js";import"./url-slug-CYvqbzge.js";import"./connection-card-Zhg6xn7V.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-CWgoXXnV.js";import"./use-connection-Cqf7M1G6.js";import"./schema-Bcb37BRV.js";import"./connection-form-helpers-DAFP702a.js";import"./authenticate-and-persist-oauth-POYqGagt.js";import"./mcp-oauth-C_-ZUSLH.js";import"./mcp-oauth-aX1L4mRw.js";import"./collection-tabs-yg6VVFu9.js";import"./badge-CyDHDRPg.js";import"./use-infinite-scroll-B9sczgXI.js";import"./useSuspenseInfiniteQuery-CcFcpWuM.js";import"./use-task-board-events-CmYlpSMI.js";import"./sandbox-url-D3mC8qhT.js";import"./utils-D-52h1Lf.js";import"./index-DAYXa7zL.js";import"./pair-ByV0vAAs.js";import"./collapsible-DHXUZre4.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-pDbHkuXF.js";import"./types-m1Dsi5sG.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-thread-outputs-BUN4R0HD.js";import"./sandbox-git-api-CRxdlhrN.js";import"./blocks-tab-states-BjRnBrj4.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./secret-ciphertext-6VBjcV3b.js";import"./alert-PPdejvI2.js";import"./switch-CJc_fIEE.js";import"./scroll-area-CIRLWlOA.js";import"./monaco-editor-DDuHJmyY.js";import"./editor-B62-XQRE.js";import"./calendar-sxNtZ9wG.js";import"./editor-classes-BAKuqcj0.js";import"./view-mode-toggle-Bgum-rnB.js";import"./combobox-B5xPQiKP.js";import"./search-input-Br9i_Ft5.js";import"./asset-utils-Duz2qYol.js";import"./empty-state-JTI0oLk7.js";import"./sandbox-lifecycle-context-BIf8-4ZY.js";import"./variant-draft-pointer-BY7yWri4.js";import"./section-preview-url-7zfngvgW.js";import"./use-fast-preview-draft-url-oDwhtnfP.js";import"./useQueries-DNx9dZks.js";import"./device-hint-SeLRi17j.js";import"./virtual-mcp-CPoLjKOt.js";import"./preview-source-BsRLGWUP.js";import"./use-task-metadata-C0A64pXU.js";import"./mustache-DrIjKpei.js";import"./use-content-sync-D6XyiV7H.js";import"./empty-state-lzzC-d42.js";import"./separator-5oK4b-Mi.js";import"./use-releases-DoIKvYCz.js";import"./serial-task-queue-CGOeQgpr.js";import"./hosted-publish-feedback-DtU7FOId.js";import"./save-changes-debug-nBi-n9eV.js";function I(e){return e.kind==="unavailable"&&e.source==="local"&&(e.problem?.reason??"not-answering")==="not-answering"}const it=e=>e;function rt(e){const t=u.c(10),{candidates:o,invalidLink:c,shell:m,editor:i}=e,r=c===void 0?!1:c,s=m===void 0?it:m,[p,l]=g.useState(null);if(p){let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>l(null),t[0]=f):f=t[0];let h;return t[1]!==p||t[2]!==i?(h=i(p,f),t[1]=p,t[2]=i,t[3]=h):h=t[3],h}let a;t[4]!==o||t[5]!==r?(a=n.jsx(nt,{candidates:o,invalidLink:r,onConnect:l}),t[4]=o,t[5]=r,t[6]=a):a=t[6];let d;return t[7]!==s||t[8]!==a?(d=s(a),t[7]=s,t[8]=a,t[9]=d):d=t[9],d}function nt(e){const t=u.c(17),{candidates:o,invalidLink:c,onConnect:m}=e,i=c===void 0?!1:c,[r]=F(),{language:s}=r;let p;t[0]!==m?(p=D=>m({endpoint:D}),t[0]=m,t[1]=p):p=t[1];let l;t[2]!==o||t[3]!==p?(l={candidates:o,onFound:p},t[2]=o,t[3]=p,t[4]=l):l=t[4];const a=q(l),{state:d,access:f,needsGesture:h}=a;let k;t[5]!==o||t[6]!==s?(k=new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(o.map(T)),t[5]=o,t[6]=s,t[7]=k):k=t[7];const C=k;let j;t[8]!==f||t[9]!==a.start||t[10]!==h||t[11]!==d?(j=f==="denied"?{kind:"denied"}:h?{kind:"needs-gesture",onStart:a.start}:d.problem?{kind:"problem",problem:d.problem,host:T(d.problem.endpoint)}:{kind:"looking",paused:d.status==="paused"},t[8]=f,t[9]=a.start,t[10]=h,t[11]=d,t[12]=j):j=t[12];const _=j;let S;return t[13]!==C||t[14]!==i||t[15]!==_?(S=n.jsx(B,{wait:_,hosts:C,invalidLink:i}),t[13]=C,t[14]=i,t[15]=_,t[16]=S):S=t[16],S}const v="deco-serve",w="working-tree",st={id:"",slug:"",name:"",logo:null},mt={id:v,slug:v},pt={virtualMcpId:v,taskId:null,openTask:()=>{},createTask:()=>"",createTaskWithMessage:()=>{},activeTask:null,isThreadLocked:!1,lockedHarness:null,lockedBranch:null,currentBranch:w,setCurrentTaskBranch:()=>{}};function at(){const e=window.location.hash,t=new URLSearchParams(e.replace(/^#/,"")).has("endpoint"),o=t?W(e):null;return t&&window.history.replaceState(null,"",window.location.pathname+window.location.search),o&&J(o),{candidates:U(o,z()),invalidLink:t&&!o}}const ct=[{id:"site-editor",to:"/site-editor",label:"preview"},{id:"content",to:"/site-editor/content",label:"content"}];function lt(){const e=u.c(6),t=O();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={select:dt},e[0]=o):o=e[0];const c=P(o);let m;e[1]!==t||e[2]!==c?(m=ct.map(r=>n.jsx(y.Tab,{asChild:!0,active:c==="content"==(r.id==="content"),children:n.jsxs(M,{to:r.to,activeOptions:{exact:!0},children:[n.jsx("span",{"aria-hidden":"true",className:"flex size-4 shrink-0 items-center justify-center",children:n.jsx(tt,{icon:et({tabId:r.id,kind:"system",connections:[]})})}),t(`common.mainPanelTabs.${r.label}`)]})},r.id)),e[1]=t,e[2]=c,e[3]=m):m=e[3];let i;return e[4]!==m?(i=n.jsx(y.Tabs,{children:m}),e[4]=m,e[5]=i):i=e[5],i}function dt(e){return e.matches.at(-1)?.staticData.siteEditorView}function N(e){const t=u.c(14),{children:o}=e,c=O(),{connection:m}=Z(v),i=R(v,w);let r,s;if(t[0]!==i||t[1]!==o||t[2]!==m||t[3]!==c){s=Symbol.for("react.early_return_sentinel");t:{if(r=m?T(m.endpoint):"",i.kind==="protocol"){s=o;break t}if(i.kind!=="unavailable"||I(i)){s=n.jsx(X,{headingLevel:2,waiting:!0,title:c("decoServe.connect.reaching",{host:r})});break t}}t[0]=i,t[1]=o,t[2]=m,t[3]=c,t[4]=r,t[5]=s}else r=t[4],s=t[5];if(s!==Symbol.for("react.early_return_sentinel"))return s;let p;t[6]!==i.problem?(p=i.problem??{reason:"not-answering"},t[6]=i.problem,t[7]=p):p=t[7];let l;t[8]!==r||t[9]!==p?(l={kind:"problem",problem:p,host:r},t[8]=r,t[9]=p,t[10]=l):l=t[10];let a;return t[11]!==r||t[12]!==l?(a=n.jsx(B,{wait:l,hosts:r}),t[11]=r,t[12]=l,t[13]=a):a=t[13],a}function ut(e){const t=u.c(6),{onLost:o}=e,c=R(v,w);let m;t[0]!==c?(m=I(c),t[0]=c,t[1]=m):m=t[1];const i=m;let r,s;return t[2]!==i||t[3]!==o?(r=()=>{i&&o()},s=[i,o],t[2]=i,t[3]=o,t[4]=r,t[5]=s):(r=t[4],s=t[5]),g.useEffect(r,s),null}const A={threadOpen:!1,contentOpen:!0,threadVisibilityExplicit:!1,toggleThread:()=>{},toggleContent:()=>{}};function ft(){const e=u.c(11),{data:t}=E.useSession();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={select:ht},e[0]=o):o=e[0];const c=P(o),m=!!t?.user;let i;e[1]!==m?(i={rail:m},e[1]=m,e[2]=i):i=e[2];const r=c??"preview";let s,p,l;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(lt,{}),p=n.jsx(x.Thread,{children:null}),l=n.jsx(ot,{}),e[3]=s,e[4]=p,e[5]=l):(s=e[3],p=e[4],l=e[5]);let a;e[6]!==r?(a=n.jsx(L.Content,{children:n.jsxs(x,{...A,threadless:!0,contentKey:r,contentNavigation:s,children:[p,l]})}),e[6]=r,e[7]=a):a=e[7];let d;return e[8]!==i||e[9]!==a?(d=n.jsx(L,{outsideOrg:i,children:a}),e[8]=i,e[9]=a,e[10]=d):d=e[10],d}function ht(e){return e.matches.at(-1)?.staticData.siteEditorView}function vt(e){const t=u.c(8),{children:o}=e,{data:c}=E.useSession(),m=!!c?.user;let i;t[0]!==m?(i={rail:m},t[0]=m,t[1]=i):i=t[1];let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(x.Thread,{children:null}),t[2]=r):r=t[2];let s;t[3]!==o?(s=n.jsx(L.Content,{children:n.jsxs(x,{...A,threadless:!0,contentKey:"guide",children:[r,n.jsx(x.Content,{children:o})]})}),t[3]=o,t[4]=s):s=t[4];let p;return t[5]!==i||t[6]!==s?(p=n.jsx(L,{outsideOrg:i,children:s}),t[5]=i,t[6]=s,t[7]=p):p=t[7],p}const b=()=>{},xt={connection:null,set:b,clear:b};function Qi(){const e=u.c(3),[t]=g.useState(at);let o;return e[0]!==t.candidates||e[1]!==t.invalidLink?(o=n.jsx(G,{value:!0,children:n.jsx(H,{org:st,project:mt,children:n.jsx(rt,{candidates:t.candidates,invalidLink:t.invalidLink,shell:jt,editor:kt})})}),e[0]=t.candidates,e[1]=t.invalidLink,e[2]=o):o=e[2],o}function kt(e,t){return n.jsxs($.Provider,{value:{connection:e,set:b,clear:b},children:[n.jsx(ut,{onLost:t}),n.jsx(V,{value:pt,children:n.jsx(K,{children:n.jsx(ft,{})})})]})}function jt(e){return n.jsx($.Provider,{value:xt,children:n.jsx(vt,{children:e})})}function Xi(){const e=u.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(N,{children:n.jsx(Q,{virtualMcpId:v})}),e[0]=t):t=e[0],t}function Yi(){const e=u.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(N,{children:n.jsx(Y,{virtualMcpId:v})}),e[0]=t):t=e[0],t}export{Yi as SiteEditorContent,Xi as SiteEditorPreview,Qi as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as te,a2 as se,o as ae,r as T,aa as ce,j as t,B as U,n as $,b1 as de,a3 as me,t as C,az as ue,c as ie,l as pe,X as ge,T as fe,V as he,U as xe,K as Q,eW as je}from"./index-DEQvnIsm.js";import{i as ke}from"./DotsVertical-DIT5hu2b.js";import{i as le,a as ve}from"./ZoomOut-B3s5275g.js";import{s as ye}from"./Trash01-Dlk_Sh-H.js";import{i as Se}from"./Upload01-DlF9Jqso.js";import{S as be}from"./search-input-Br9i_Ft5.js";import{S as we}from"./search-toggle-Dj92h38-.js";import{f as Ne,e as Ce,b as De,A as Pe,a as Ae,d as Ee,c as Te,g as Me}from"./alert-dialog-ygFmYcOa.js";import{E as Y}from"./empty-state-JTI0oLk7.js";import{C as Oe}from"./collection-tabs-yg6VVFu9.js";import{p as Ie,S as ze,F as Fe}from"./folder-icon-DaIPH_Nm.js";import{p as Re,j as $e,r as _e}from"./use-org-fs-CAwgni1d.js";import{S as Le,H as J,d as Be}from"./location-BjlyegC2.js";import"./SearchMd-D0zp0uee.js";import"./icon-button-WP5IJTs8.js";import"./tooltip-B6NbTX5P.js";import"./index-BaQyqQF-.js";import"./badge-CyDHDRPg.js";import"./markdown-DgDY2QmE.js";import"./use-copy-Dkgb0DtI.js";import"./Copy01-EWitDFCf.js";import"./use-mobile-CSFJ-mhK.js";import"./use-panel-navigate-BwwjvhNB.js";import"./thread-route-DTbE-Col.js";import"./use-project-scope-Dn4doId4.js";import"./repository-binding-DpSh0bkT.js";import"./use-mcp-client-CAdgJ_QT.js";import"./auth-BVkTFTOt.js";import"./file-preview-DFkUyLsr.js";import"./utils-D-52h1Lf.js";import"./Image01-BfGAREA7.js";import"./editor-B62-XQRE.js";import"./file-type-icon-HF5UcaS2.js";import"./useInfiniteQuery-Bo5dbMM_.js";import"./infiniteQueryObserver-BnP8vr6V.js";const Z=200,Ke=new Set(["node_modules","__pycache__"]);function q(s){const[,...e]=s.webkitRelativePath.split("/");return e.length>0?e.join("/"):s.name}function He(s){return q(s).split("/").every(e=>!e.startsWith(".")&&!Ke.has(e))}function Qe(s){return s.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"skill"}function Ue(s,e){const l=new Map;for(const r of s){const c=q(r).split("/");c.pop();const a=["skills",e,...c].join("/");l.set(a,[...l.get(a)??[],r])}return l}async function qe(s,e){const r=(await Promise.allSettled([...s].map(([c,a])=>e({dir:c,files:a})))).find(c=>c.status==="rejected");if(r)throw r.reason}function Ge(s,e){const l=Ie(e),r=`skills/${s}`;return{id:`home/${r}`,name:l.name??s,description:l.description,disableModelInvocation:l.disableModelInvocation,source:"home",volume:J,path:r,sandboxPath:`${Le}/${J}/${r}`}}const L="*";function B(s){return s.volume==="home"}function re(s,e){const l=s.indexOf(":");return l===-1?{label:e,glyph:le}:{label:s.slice(l+1),glyph:s.startsWith("repo:")?ue:ve}}function We(s){const e=ie.c(48),{entry:l,pending:r,onOpen:c,onDelete:a}=s,o=te(),{org:m}=se();let S;e[0]!==l.source||e[1]!==m.name?(S=re(l.source,m.name),e[0]=l.source,e[1]=m.name,e[2]=S):S=e[2];const{label:M,glyph:O}=S;let I;e[3]!==l?(I=B(l),e[3]=l,e[4]=I):I=e[4];const F=I,z=r?"opacity-60":"hover:bg-muted/50";let u;e[5]!==z?(u=pe("relative transition-colors group overflow-hidden flex flex-col h-full",z),e[5]=z,e[6]=u):u=e[6];let f;e[7]!==l.name||e[8]!==c||e[9]!==r?(f=!r&&t.jsx("button",{type:"button",onClick:c,className:"absolute inset-0 z-0","aria-label":l.name}),e[7]=l.name,e[8]=c,e[9]=r,e[10]=f):f=e[10];const b=F?"default":"system",D=!F;let w;e[11]!==O||e[12]!==b||e[13]!==D?(w=t.jsx(Fe,{glyph:O,tone:b,readOnly:D,className:"size-8 shrink-0"}),e[11]=O,e[12]=b,e[13]=D,e[14]=w):w=e[14];let h;e[15]!==a||e[16]!==o?(h=a&&t.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:t.jsxs(ge,{children:[t.jsx(fe,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:t.jsx(ke,{size:16})})}),t.jsx(he,{align:"end",children:t.jsxs(xe,{variant:"destructive",onClick:K=>{K.stopPropagation(),a()},children:[t.jsx(ye,{size:16}),o("settings.skills.deleteButton")]})})]})}),e[15]=a,e[16]=o,e[17]=h):h=e[17];let x;e[18]!==w||e[19]!==h?(x=t.jsxs("div",{className:"flex items-start justify-between",children:[w,h]}),e[18]=w,e[19]=h,e[20]=x):x=e[20];let j;e[21]!==l.name?(j=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:l.name}),e[21]=l.name,e[22]=j):j=e[22];let N;e[23]!==l.description||e[24]!==o?(N=l.description||o("settings.skills.noDescription"),e[23]=l.description,e[24]=o,e[25]=N):N=e[25];let k;e[26]!==N?(k=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:N}),e[26]=N,e[27]=k):k=e[27];let d;e[28]!==j||e[29]!==k?(d=t.jsxs("div",{className:"flex flex-col gap-1",children:[j,k]}),e[28]=j,e[29]=k,e[30]=d):d=e[30];let v;e[31]!==x||e[32]!==d?(v=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[x,d]}),e[31]=x,e[32]=d,e[33]=v):v=e[33];let p;e[34]!==M||e[35]!==r||e[36]!==o?(p=r?o("settings.skills.importing"):M,e[34]=M,e[35]=r,e[36]=o,e[37]=p):p=e[37];let y;e[38]!==p?(y=t.jsx("div",{className:"border-t border-border mt-auto",children:t.jsx("div",{className:"h-10 flex items-center px-4.5",children:t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:p})})}),e[38]=p,e[39]=y):y=e[39];let g;e[40]!==v||e[41]!==y?(g=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[v,y]}),e[40]=v,e[41]=y,e[42]=g):g=e[42];let P;return e[43]!==r||e[44]!==g||e[45]!==u||e[46]!==f?(P=t.jsxs(je,{"aria-busy":r,className:u,children:[f,g]}),e[43]=r,e[44]=g,e[45]=u,e[46]=f,e[47]=P):P=e[47],P}function ee(s){const e=ie.c(2),{children:l}=s;let r;return e[0]!==l?(r=t.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:l}),e[0]=l,e[1]=r):r=e[1],r}function Et(){const s=te(),{org:e}=se(),l=Re(),{remove:r,upload:c}=$e("home"),a=ae(),o=T.useRef(null),[m,S]=T.useState(""),M=ce(),[O,I]=T.useState(L),[F,z]=T.useState(!1),[u,f]=T.useState(null),[b,D]=T.useState(null),[w,h]=T.useState(null),x=()=>{a.invalidateQueries({queryKey:Q.slashSkills(e.id)}),a.invalidateQueries({queryKey:Q.orgFsSkills(e.id)})},j=i=>a.setQueryData(Q.slashSkills(e.id),n=>i(n??[]));async function N(i){const n=[...i??[]];if(o.current&&(o.current.value=""),n.length===0)return;const A=n[0]?.webkitRelativePath??"";if(!A){C.error(s("settings.skills.importNeedsFolder"));return}const H=A.split("/")[0]??"",_=n.filter(He),W=_.find(E=>q(E)==="SKILL.md");if(!W){C.error(s("settings.skills.importMissingSkillMd"));return}if(_.length>Z){C.error(s("settings.skills.importTooManyFiles",{count:String(_.length),max:String(Z)}));return}const R=Qe(H),X=`skills/${R}`;let V=!1;z(!0);try{if(await _e(e.slug,"home",X)){C.error(s("settings.skills.importSlugTaken",{slug:R}));return}V=!0;const E=Ge(R,await W.text());j(oe=>[E,...oe]),h(E.id),await qe(Ue(_,R),c.mutateAsync),C.success(s("settings.skills.importSuccess",{name:R}))}catch(E){V&&await r.mutateAsync(X).catch(()=>{}),C.error(E instanceof Error?E.message:s("settings.skills.importError"))}finally{h(null),x(),z(!1)}}const k=m.toLowerCase(),d=(l.data??[]).filter(i=>i.name.toLowerCase().includes(k)||(i.description??"").toLowerCase().includes(k)).sort((i,n)=>Number(B(n))-Number(B(i))||i.name.localeCompare(n.name)),v=new Set((l.data??[]).map(i=>i.source)),p=new Map;for(const i of d)p.set(i.source,(p.get(i.source)??0)+1);const y=[{id:L,label:s("settings.skills.filterAll"),count:d.length},...[...v].map(i=>({id:i,label:re(i,e.name).label,count:p.get(i)??0}))],g=v.has(O)?O:L,P=g===L?d:d.filter(i=>i.source===g),K=i=>f(Be(i.volume,i.path)),ne=async()=>{if(!b)return;const{id:i,path:n}=b;D(null),j(A=>A.filter(H=>H.id!==i));try{await r.mutateAsync(n),C.success(s("settings.skills.deleteSuccess"))}catch(A){C.error(A instanceof Error?A.message:s("settings.skills.deleteError"))}finally{x()}},G=t.jsxs(U,{size:"sm",disabled:F,onClick:()=>o.current?.click(),children:[t.jsx(Se,{size:14}),s(F?"settings.skills.importing":"settings.skills.importButton")]});return t.jsxs($,{children:[t.jsx($.Content,{children:t.jsx($.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[M?t.jsx($.Actions,{secondary:t.jsx(we,{value:m,onChange:S,label:s("library.context.search"),placeholder:s("settings.skills.searchPlaceholder"),clearLabel:s("library.library.clearSearch")}),children:G}):t.jsx($.Title,{actions:G,children:s("settings.skills.pageTitle")}),t.jsx("div",{className:"flex flex-wrap items-center justify-between gap-3 empty:hidden",children:!M&&t.jsx(be,{value:m,onChange:S,placeholder:s("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:i=>{i.key==="Escape"&&(S(""),i.target.blur())}})}),t.jsx("input",{ref:o,type:"file",multiple:!0,webkitdirectory:"",className:"hidden",onChange:i=>{N(i.target.files)}}),y.length>2&&t.jsx(Oe,{placement:"page",tabs:y,activeTab:g,onTabChange:I}),l.isPending?t.jsx("div",{className:"@container",children:t.jsx(ee,{children:Array.from({length:8},(i,n)=>t.jsx(de,{className:"h-[168px] rounded-xl"},n))})}):l.isError?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(Y,{image:t.jsx(me,{size:48,className:"text-muted-foreground"}),title:s("settings.skills.errorTitle"),description:l.error instanceof Error?l.error.message:s("settings.skills.errorDescription"),actions:t.jsx(U,{size:"sm",variant:"outline",onClick:()=>{l.refetch()},children:s("settings.skills.retry")})})}):P.length===0?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(Y,{image:t.jsx(le,{size:48,className:"text-muted-foreground"}),title:s(m?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:m?s("settings.skills.noResultsDescription",{search:m}):s("settings.skills.emptyDescription"),actions:!1})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:P.map(i=>{const n=i.id===w;return t.jsx(We,{entry:i,pending:n,onOpen:()=>K(i),onDelete:B(i)&&!n?()=>D(i):void 0},i.id)})})})]})})}),u&&t.jsx(ze,{skillPath:u,onClose:()=>f(null)},u),t.jsx(Ne,{open:b!==null,onOpenChange:i=>!i&&D(null),children:t.jsxs(Ce,{children:[t.jsxs(De,{children:[t.jsx(Pe,{children:s("settings.skills.deleteDialogTitle")}),t.jsx(Ae,{children:s("settings.skills.deleteDialogDescription",{name:b?.name??""})})]}),t.jsxs(Ee,{children:[t.jsx(Te,{children:s("settings.skills.cancel")}),t.jsx(Me,{onClick:ne,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.skills.deleteButton")})]})]})})]})}export{Et as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as x,l as p,j as v}from"./index-DEQvnIsm.js";import{T as y,R as w,a as _,b as j}from"./index-DtysKpnb.js";function R(m){const e=x.c(26);let l,t,i,d,c,a;e[0]!==m?({className:l,defaultValue:t,value:a,min:d,max:c,...i}=m,e[0]=m,e[1]=l,e[2]=t,e[3]=i,e[4]=d,e[5]=c,e[6]=a):(l=e[1],t=e[2],i=e[3],d=e[4],c=e[5],a=e[6]);const o=d===void 0?0:d,r=c===void 0?100:c;let u;e[7]!==t||e[8]!==r||e[9]!==o||e[10]!==a?(u=Array.isArray(a)?a:Array.isArray(t)?t:[o,r],e[7]=t,e[8]=r,e[9]=o,e[10]=a,e[11]=u):u=e[11];const g=u;let n;e[12]!==l?(n=p("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",l),e[12]=l,e[13]=n):n=e[13];let f;e[14]===Symbol.for("react.memo_cache_sentinel")?(f=p("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),e[14]=f):f=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=v.jsx(y,{"data-slot":"slider-track",className:f,children:v.jsx(w,{"data-slot":"slider-range",className:p("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),e[15]=h):h=e[15];let s;e[16]!==g.length?(s=Array.from({length:g.length},k),e[16]=g.length,e[17]=s):s=e[17];let b;return e[18]!==t||e[19]!==r||e[20]!==o||e[21]!==i||e[22]!==n||e[23]!==s||e[24]!==a?(b=v.jsxs(_,{"data-slot":"slider",defaultValue:t,value:a,min:o,max:r,className:n,...i,children:[h,s]}),e[18]=t,e[19]=r,e[20]=o,e[21]=i,e[22]=n,e[23]=s,e[24]=a,e[25]=b):b=e[25],b}function k(m,e){return v.jsx(j,{"data-slot":"slider-thumb",className:"border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},e)}export{R as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as c,j as i,bC as C,bA as y,bx as B,bD as I,bI as M,bT as A,bP as H,c as z,l as g}from"./index-DEQvnIsm.js";var m="Switch",[U]=H(m),[q,D]=U(m),P=c.forwardRef((a,e)=>{const{__scopeSwitch:t,name:r,checked:s,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=a,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=B({prop:s,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(a.onClick,b=>{N(T=>!T),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:r,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});P.displayName=m;var E="SwitchThumb",R=c.forwardRef((a,e)=>{const{__scopeSwitch:t,...r}=a,s=D(E,t);return i.jsx(C.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:e})});R.displayName=E;var L="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:a,control:e,checked:t,bubbles:r=!0,...s},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=A(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:r});h.call(l,t),l.dispatchEvent(v)}},[u,t,r]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:d,style:{...s.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=L;function j(a){return a?"checked":"unchecked"}var O=P,$=R;function W(a){const e=z.c(9);let t,r;e[0]!==a?({className:t,...r}=a,e[0]=a,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let s;e[3]!==t?(s=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/20 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[2px] disabled:opacity-50",t),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx($,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==r||e[7]!==s?(o=i.jsx(O,{"data-slot":"switch",className:s,...r,children:n}),e[6]=r,e[7]=s,e[8]=o):o=e[8],o}export{W as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as se,j as s,g0 as he,b as ue,r as ae,B as te,az as ge,l as je,t as ce,b1 as be,v as Re,aM as ve,s as Se,I as De,w as Ne,q as _e,D as Ce}from"./index-DEQvnIsm.js";import{s as xe}from"./Plus-DQf-jm_3.js";import{A as Pe,a as Ae,b as ke,c as we,g as ze,d as Ee,e as Oe,f as Ie}from"./alert-dialog-ygFmYcOa.js";import{u as $e,a as Fe,R as Te}from"./repository-picker-C86kcY-U.js";import{u as qe,b as Be,c as Ge}from"./use-org-repo-syncs-Cxt6puu1.js";import{e as He}from"./format-time-Cq80KKvY.js";import{R as Le}from"./require-capability-D4dR1lZc.js";import"./ArrowLeft-C_dTX_8N.js";import"./tooltip-B6NbTX5P.js";import"./index-BaQyqQF-.js";import"./label-Cf2Qy475.js";import"./useInfiniteQuery-Bo5dbMM_.js";import"./infiniteQueryObserver-BnP8vr6V.js";import"./collection-search-Dcze6ySb.js";import"./SearchMd-D0zp0uee.js";import"./ShoppingBag01-B7gta_qY.js";import"./avatar-LfY3dprD.js";import"./User01-BcekHhAV.js";import"./use-debounced-value-vhgvmVq4.js";import"./use-organization-settings-BtOReG0H.js";import"./schema-BzqS-kNt.js";import"./task-board-DUTGhEiC.js";import"./differenceInSeconds-C3x8sHUj.js";import"./access-gate-CsHtyNGi.js";import"./capability-load-error-CB4I7CRT.js";function Me(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Ve(e,t){return e.lastSyncError?{label:e.lastSyncError,error:!0}:e.lastSyncedAt?{label:t("library.syncedRepos.syncedAgo",{ago:He(e.lastSyncedAt)}),error:!1}:{label:t("library.syncedRepos.waitingFirstSync"),error:!1}}function Je(e){const t=se.c(38),{config:i,onRemove:l}=e,o=ue();let u;t[0]!==i||t[1]!==o?(u=Ve(i,o),t[0]=i,t[1]=o,t[2]=u):u=t[2];const m=u,r=$e();let f;t[3]!==i.repositoryId||t[4]!==r.data?(f=r.data?.find(C=>C.id===i.repositoryId),t[3]=i.repositoryId,t[4]=r.data,t[5]=f):f=t[5];const n=f;let g;t[6]!==n?(g=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:n?s.jsx(Fe,{provider:n.provider,size:16,className:"text-muted-foreground"}):s.jsx(ge,{size:16,className:"text-muted-foreground"})}),t[6]=n,t[7]=g):g=t[7];const c=n?.path??`${i.repoOwner}/${i.repoName}`;let d;t[8]!==c?(d=s.jsx("span",{className:"font-medium text-sm truncate",children:c}),t[8]=c,t[9]=d):d=t[9];let p;t[10]!==i.ref?(p=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",i.ref]}),t[10]=i.ref,t[11]=p):p=t[11];let S;t[12]!==d||t[13]!==p?(S=s.jsxs("div",{className:"flex items-center gap-2",children:[d,p]}),t[12]=d,t[13]=p,t[14]=S):S=t[14];const _=m.error?"text-destructive":"text-muted-foreground";let D;t[15]!==_?(D=je("text-xs mt-0.5 truncate",_),t[15]=_,t[16]=D):D=t[16];let b;t[17]!==i.volume||t[18]!==o?(b=o("settings.syncedRepos.rowSubtitle",{volume:i.volume}),t[17]=i.volume,t[18]=o,t[19]=b):b=t[19];let R;t[20]!==m.label||t[21]!==b||t[22]!==D?(R=s.jsxs("p",{className:D,children:[b," ·"," ",m.label]}),t[20]=m.label,t[21]=b,t[22]=D,t[23]=R):R=t[23];let x;t[24]!==R||t[25]!==S?(x=s.jsxs("div",{className:"min-w-0",children:[S,R]}),t[24]=R,t[25]=S,t[26]=x):x=t[26];let y;t[27]!==x||t[28]!==g?(y=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[g,x]}),t[27]=x,t[28]=g,t[29]=y):y=t[29];let h;t[30]!==o?(h=o("settings.syncedRepos.remove"),t[30]=o,t[31]=h):h=t[31];let j;t[32]!==l||t[33]!==h?(j=s.jsx(te,{variant:"outline",size:"sm",onClick:l,children:h}),t[32]=l,t[33]=h,t[34]=j):j=t[34];let N;return t[35]!==y||t[36]!==j?(N=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[y,j]}),t[35]=y,t[36]=j,t[37]=N):N=t[37],N}function Ke(e){const t=se.c(21),{onAdd:i}=e,l=ue();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(ge,{size:20,className:"text-muted-foreground"})}),t[0]=o):o=t[0];let u;t[1]!==l?(u=l("settings.syncedRepos.emptyTitle"),t[1]=l,t[2]=u):u=t[2];let m;t[3]!==u?(m=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=m):m=t[4];let r;t[5]!==l?(r=l("settings.syncedRepos.emptyDescription"),t[5]=l,t[6]=r):r=t[6];let f;t[7]!==r?(f=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:r}),t[7]=r,t[8]=f):f=t[8];let n;t[9]!==m||t[10]!==f?(n=s.jsxs("div",{children:[m,f]}),t[9]=m,t[10]=f,t[11]=n):n=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(xe,{size:14}),t[12]=g):g=t[12];let c;t[13]!==l?(c=l("settings.syncedRepos.addRepo"),t[13]=l,t[14]=c):c=t[14];let d;t[15]!==i||t[16]!==c?(d=s.jsxs(te,{onClick:i,size:"sm",className:"mt-2",children:[g,c]}),t[15]=i,t[16]=c,t[17]=d):d=t[17];let p;return t[18]!==n||t[19]!==d?(p=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[o,n,d]}),t[18]=n,t[19]=d,t[20]=p):p=t[20],p}function Qe(){const e=se.c(107),t=ue(),i=qe(),l=Be(),o=Ge(),[u,m]=ae.useState(!1),[r,f]=ae.useState(null),[n,g]=ae.useState(""),[c,d]=ae.useState(null);let p;e[0]!==l||e[1]!==r||e[2]!==t||e[3]!==n?(p=function(){!r||!n.trim()||l.mutate({repositoryId:r.id,volume:n.trim()},{onSuccess:v=>{f(null),ce.success(t("settings.syncedRepos.created",{volume:v.volume}))},onError:v=>{ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed"))}})},e[0]=l,e[1]=r,e[2]=t,e[3]=n,e[4]=p):p=e[4];const S=p;let _;e[5]!==c||e[6]!==o||e[7]!==t?(_=function(){c&&o.mutate(c.id,{onSuccess:()=>ce.success(t("settings.syncedRepos.removed")),onError:v=>ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed")),onSettled:()=>d(null)})},e[5]=c,e[6]=o,e[7]=t,e[8]=_):_=e[8];const D=_;if(i.isPending){let a;return e[9]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(be,{className:"h-32 w-full"}),e[9]=a):a=e[9],a}let b;e[10]!==i.data?(b=i.data??[],e[10]=i.data,e[11]=b):b=e[11];const R=b;let x;e[12]!==t?(x=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=x):x=e[13];let y;e[14]!==x?(y=s.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[14]=x,e[15]=y):y=e[15];let h;e[16]!==R||e[17]!==t?(h=R.length===0?s.jsx(Ke,{onAdd:()=>m(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(te,{onClick:()=>m(!0),size:"sm",children:[s.jsx(xe,{size:14}),t("settings.syncedRepos.addRepo")]})}),s.jsx("section",{className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:R.map(a=>s.jsx(Je,{config:a,onRemove:()=>d(a)},a.id))})]}),e[16]=R,e[17]=t,e[18]=h):h=e[18];let j;e[19]!==t?(j=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=j):j=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=a=>{const{repository:v}=a;m(!1),f(v),g(Me(v.path.split("/").at(-1)??v.path))},e[21]=N):N=e[21];let C;e[22]!==u||e[23]!==j?(C=s.jsx(Te,{open:u,onOpenChange:m,title:j,onPicked:N}),e[22]=u,e[23]=j,e[24]=C):C=e[24];const de=r!==null;let le;e[25]===Symbol.for("react.memo_cache_sentinel")?(le=a=>{a||f(null)},e[25]=le):le=e[25];let P;e[26]!==t?(P=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=P):P=e[27];let A;e[28]!==P?(A=s.jsx(Re,{children:P}),e[28]=P,e[29]=A):A=e[29];const me=r?r.path:"";let k;e[30]!==t||e[31]!==me?(k=t("settings.syncedRepos.nameDialogDescription",{repo:me}),e[30]=t,e[31]=me,e[32]=k):k=e[32];let w;e[33]!==k?(w=s.jsx(ve,{children:k}),e[33]=k,e[34]=w):w=e[34];let z;e[35]!==A||e[36]!==w?(z=s.jsxs(Se,{children:[A,w]}),e[35]=A,e[36]=w,e[37]=z):z=e[37];let ie;e[38]===Symbol.for("react.memo_cache_sentinel")?(ie=a=>g(a.target.value),e[38]=ie):ie=e[38];let E;e[39]!==t?(E=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=E):E=e[40];let O;e[41]!==E||e[42]!==n?(O=s.jsx(De,{value:n,onChange:ie,placeholder:E,autoFocus:!0}),e[41]=E,e[42]=n,e[43]=O):O=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>f(null),e[44]=ne):ne=e[44];const ye=l.isPending;let I;e[45]!==t?(I=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=I):I=e[46];let $;e[47]!==l.isPending||e[48]!==I?($=s.jsx(te,{variant:"outline",onClick:ne,disabled:ye,children:I}),e[47]=l.isPending,e[48]=I,e[49]=$):$=e[49];let F;e[50]!==l.isPending||e[51]!==n?(F=!n.trim()||l.isPending,e[50]=l.isPending,e[51]=n,e[52]=F):F=e[52];let T;e[53]!==l.isPending||e[54]!==t?(T=l.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=l.isPending,e[54]=t,e[55]=T):T=e[55];let q;e[56]!==S||e[57]!==F||e[58]!==T?(q=s.jsx(te,{disabled:F,onClick:S,children:T}),e[56]=S,e[57]=F,e[58]=T,e[59]=q):q=e[59];let B;e[60]!==$||e[61]!==q?(B=s.jsxs(Ne,{children:[$,q]}),e[60]=$,e[61]=q,e[62]=B):B=e[62];let G;e[63]!==z||e[64]!==O||e[65]!==B?(G=s.jsxs(_e,{className:"sm:max-w-sm",children:[z,O,B]}),e[63]=z,e[64]=O,e[65]=B,e[66]=G):G=e[66];let H;e[67]!==G||e[68]!==de?(H=s.jsx(Ce,{open:de,onOpenChange:le,children:G}),e[67]=G,e[68]=de,e[69]=H):H=e[69];const fe=c!==null;let oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(oe=a=>{a||d(null)},e[70]=oe):oe=e[70];const pe=c?.volume??"";let L;e[71]!==t||e[72]!==pe?(L=t("settings.syncedRepos.removeTitle",{volume:pe}),e[71]=t,e[72]=pe,e[73]=L):L=e[73];let M;e[74]!==L?(M=s.jsx(Pe,{children:L}),e[74]=L,e[75]=M):M=e[75];let V;e[76]!==t?(V=t("settings.syncedRepos.removeDescription"),e[76]=t,e[77]=V):V=e[77];let J;e[78]!==V?(J=s.jsx(Ae,{children:V}),e[78]=V,e[79]=J):J=e[79];let K;e[80]!==M||e[81]!==J?(K=s.jsxs(ke,{children:[M,J]}),e[80]=M,e[81]=J,e[82]=K):K=e[82];let Q;e[83]!==t?(Q=t("settings.syncedRepos.cancel"),e[83]=t,e[84]=Q):Q=e[84];let U;e[85]!==Q?(U=s.jsx(we,{children:Q}),e[85]=Q,e[86]=U):U=e[86];let W;e[87]!==t?(W=t("settings.syncedRepos.remove"),e[87]=t,e[88]=W):W=e[88];let X;e[89]!==D||e[90]!==W?(X=s.jsx(ze,{onClick:D,children:W}),e[89]=D,e[90]=W,e[91]=X):X=e[91];let Y;e[92]!==U||e[93]!==X?(Y=s.jsxs(Ee,{children:[U,X]}),e[92]=U,e[93]=X,e[94]=Y):Y=e[94];let Z;e[95]!==K||e[96]!==Y?(Z=s.jsxs(Oe,{children:[K,Y]}),e[95]=K,e[96]=Y,e[97]=Z):Z=e[97];let ee;e[98]!==fe||e[99]!==Z?(ee=s.jsx(Ie,{open:fe,onOpenChange:oe,children:Z}),e[98]=fe,e[99]=Z,e[100]=ee):ee=e[100];let re;return e[101]!==H||e[102]!==y||e[103]!==ee||e[104]!==h||e[105]!==C?(re=s.jsxs(s.Fragment,{children:[y,h,C,H,ee]}),e[101]=H,e[102]=y,e[103]=ee,e[104]=h,e[105]=C,e[106]=re):re=e[106],re}function Ue(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(he,{group:"storage",children:s.jsx(Qe,{})}),e[0]=t):t=e[0],t}function Rt(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Le,{capability:"file-configs:manage",area:"files",children:s.jsx(Ue,{})}),e[0]=t):t=e[0],t}export{Rt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as v,j as d,er as P,bC as p,bD as T,es as k,dn as M,bw as S,bx as F,bz as V,et as y,bP as D,c as x,l as g}from"./index-DEQvnIsm.js";var m="Tabs",[G]=D(m,[y]),w=y(),[L,h]=G(m),C=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...f}=n,u=S(i),[c,b]=F({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:V(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(p.div,{dir:u,"data-orientation":o,...f,ref:e})})});C.displayName=m;var N="TabsList",j=v.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(N,a),o=w(a);return d.jsx(k,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(p.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=w(a),l=E(o.baseId,t),f=$(o.baseId,t),u=t===o.value;return d.jsx(P,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(p.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":f,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=E(i.baseId,t),f=$(i.baseId,t),u=t===i.value,c=v.useRef(u);return v.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(M,{present:r||u,children:({present:b})=>d.jsx(p.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:f,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,q=A;function O(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function J(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(q,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{Q as T,J as a,O as b,U as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as u,j as c,l as x}from"./index-DEQvnIsm.js";import{A as g}from"./avatar-LfY3dprD.js";import{S as A}from"./daily-pulse-C0-1QTxZ.js";import{g as E}from"./get-initials-D-f_fDFw.js";import"./core.esm-BO316fgf.js";import{S}from"./task-board-DUTGhEiC.js";function k(f){const s=u.c(10),{assigneeId:i,assignee:t,size:p,title:l,className:o}=f,m=p===void 0?20:p;if(!i)return null;let r;s[0]!==t||s[1]!==i||s[2]!==m?(r=i===S?c.jsx(A,{size:m}):t?c.jsx(g,{url:t.user?.image??void 0,fallback:E(t.user?.name),shape:"circle",size:"xs"}):null,s[0]=t,s[1]=i,s[2]=m,s[3]=r):r=s[3];const n=r;if(!n)return null;let e;s[4]!==o?(e=x("inline-flex shrink-0",o),s[4]=o,s[5]=e):e=s[5];let a;return s[6]!==n||s[7]!==e||s[8]!==l?(a=c.jsx("span",{className:e,title:l,children:n}),s[6]=n,s[7]=e,s[8]=l,s[9]=a):a=s[9],a}export{k as T};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as O,b as w,f as T,r as v,j as y}from"./index-DEQvnIsm.js";import{C as E}from"./index-mh7U_AKI.js";import{B as P}from"./board-analytics-fCGfPXJ7.js";import{f as R}from"./task-route-BpmTIbg4.js";import{u as $}from"./use-task-board-analytics-34pQYq8w.js";import{C as H}from"./combobox-B5xPQiKP.js";import"./use-mobile-CSFJ-mhK.js";import"./use-sidebar-collapsed-Dv10z2iu.js";import"./use-chat-layout-state-C-XHZ0Dd.js";import"./thread-route-DTbE-Col.js";import"./use-panel-navigate-BwwjvhNB.js";import"./use-project-scope-Dn4doId4.js";import"./repository-binding-DpSh0bkT.js";import"./use-mcp-client-CAdgJ_QT.js";import"./auth-BVkTFTOt.js";import"./thread-intent-8kpZLcDE.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-C7xRCtu5.js";import"./task-board-DUTGhEiC.js";import"./schema-BzqS-kNt.js";import"./slugify-CEUa2lfQ.js";import"./agent-icon-D6wS7rd0.js";import"./AlertCircle-Q16nTVAa.js";import"./Tool01-Bp-TbrXi.js";import"./ArrowUp--4P0C-xl.js";import"./ArrowLeft-C_dTX_8N.js";import"./LinkBroken01-DmmKNgpp.js";import"./ShoppingBag01-B7gta_qY.js";import"./ZoomOut-B3s5275g.js";import"./Building02-Gub-pr-8.js";import"./CheckCircle-CQxu_pm9.js";import"./ChevronUp-DK-Gvyk8.js";import"./ChevronSelectorVertical-GBLm8Zpl.js";import"./UserSquare-cdWcOBLL.js";import"./Copy01-EWitDFCf.js";import"./CreditCard01-wx_z4Iiz.js";import"./DotsVertical-DIT5hu2b.js";import"./Image01-BfGAREA7.js";import"./Globe04-B45_cBRN.js";import"./SwitchHorizontal01-BJyDDPw9.js";import"./Key01-BV7tzZs6.js";import"./Link01-9civFIb9.js";import"./Monitor01-BoSs_8gg.js";import"./Sun-BfjJa3ru.js";import"./Play-CleWZLOG.js";import"./Plus-DQf-jm_3.js";import"./SearchMd-D0zp0uee.js";import"./Trash01-Dlk_Sh-H.js";import"./Upload01-DlF9Jqso.js";import"./User01-BcekHhAV.js";import"./Users01-BIP-PxGt.js";import"./XClose-L_GNViCD.js";import"./tooltip-B6NbTX5P.js";import"./index-BaQyqQF-.js";import"./toolbar-icon-button-BypH-a8F.js";import"./shell-layout-DKGS0yWx.js";import"./avatar-LfY3dprD.js";import"./use-clock-tick-xpCK7CUB.js";import"./command-KXg0ZuU-.js";import"./index-B9qNCJbx.js";import"./integration-icon-Bysyldtc.js";import"./project-icon-ChTT5o1a.js";import"./new-project-dialog-DKeFr4C7.js";import"./label-Cf2Qy475.js";import"./repository-import-picker-CmGbASze.js";import"./use-navigate-to-agent-B-QlLf3R.js";import"./repository-picker-C86kcY-U.js";import"./useInfiniteQuery-Bo5dbMM_.js";import"./infiniteQueryObserver-BnP8vr6V.js";import"./collection-search-Dcze6ySb.js";import"./use-debounced-value-vhgvmVq4.js";import"./use-organization-settings-BtOReG0H.js";import"./required-auth-layout-RW5dOh2c.js";import"./autosend-CL2OZPvg.js";import"./use-org-sso-BhMczCH6.js";import"./sheet-CzJFx6b-.js";import"./resizable-DueLEUEm.js";import"./collection-tabs-yg6VVFu9.js";import"./badge-CyDHDRPg.js";import"./time-range-picker-BJ8aJbM7.js";import"./popover-CjfUWaC0.js";import"./scroll-area-CIRLWlOA.js";import"./index-BdQq_4o_.js";import"./calendar-sxNtZ9wG.js";import"./analytics-sections-CveDF2n6.js";import"./chart-NRF3lK-V.js";import"./index-CVLOGr5B.js";import"./symbol-C1zrmwNF.js";import"./CategoricalChart-CTrV8dYV.js";import"./table-CltsOK_0.js";import"./view-mode-toggle-Bgum-rnB.js";import"./format-time-Cq80KKvY.js";import"./differenceInSeconds-C3x8sHUj.js";import"./config-UdFHLZs6.js";import"./core.esm-BO316fgf.js";import"./BarChart-VS3Ye-qY.js";import"./tooltipContext-DNlXAkZZ.js";import"./ActiveShapeUtils-uKFYSg4Y.js";import"./Sector-CWBWrJZQ.js";import"./ErrorBarContext-C56oRnGq.js";import"./CartesianChart-BvH4QiKh.js";import"./AreaChart-k5WqYBKX.js";import"./task-key-BCHdFiOO.js";function $r(){const t=O.c(37),i=w();let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f={strict:!1},t[0]=f):f=t[0];const B=T(f),r=B.org??"",m=B.agentId,g=$(),[C,j]=v.useState(r),[o,S]=v.useState(r);r!==C&&(j(r),S(r));const p=!m&&(g.data?.isTaskBoardAdmin??!1);let e;t[1]!==i?(e=i("taskBoard.analytics.orgCurrent"),t[1]=i,t[2]=e):e=t[2];let a;t[3]!==r||t[4]!==e?(a={value:r,label:e},t[3]=r,t[4]=e,t[5]=a):a=t[5];let s;t[6]!==i?(s=i("taskBoard.analytics.orgAll"),t[6]=i,t[7]=s):s=t[7];let l;t[8]!==s?(l={value:"all",label:s},t[8]=s,t[9]=l):l=t[9];let u;if(t[10]!==g.data?.orgs||t[11]!==r||t[12]!==a||t[13]!==l){let d;t[15]!==r?(d=A=>A.slug!==r,t[15]=r,t[16]=d):d=t[16],u=[a,l,...(g.data?.orgs??[]).filter(d).map(I)],t[10]=g.data?.orgs,t[11]=r,t[12]=a,t[13]=l,t[14]=u}else u=t[14];const h=u;let k;t[17]!==o||t[18]!==r||t[19]!==m?(k=d=>R(r,{id:d,keySeq:null},m)+(o===r?"":`?boardOrg=${encodeURIComponent(o)}`),t[17]=o,t[18]=r,t[19]=m,t[20]=k):k=t[20];const b=o==="all"?void 0:k;let n;t[21]!==p||t[22]!==o||t[23]!==h||t[24]!==i?(n=p&&y.jsx(H,{options:h,value:o,onChange:S,width:"w-[220px]",searchPlaceholder:i("taskBoard.analytics.orgSearch"),emptyMessage:i("taskBoard.analytics.orgEmpty")}),t[21]=p,t[22]=o,t[23]=h,t[24]=i,t[25]=n):n=t[25];let c;t[26]!==o||t[27]!==r||t[28]!==i?(c=o!==r&&y.jsx("div",{className:"rounded-lg bg-warning/10 px-3 py-2 text-sm text-warning",children:o==="all"?i("taskBoard.analytics.bannerAll"):i("taskBoard.analytics.bannerOrg",{org:o})}),t[26]=o,t[27]=r,t[28]=i,t[29]=c):c=t[29];let x;return t[30]!==p||t[31]!==o||t[32]!==m||t[33]!==b||t[34]!==n||t[35]!==c?(x=y.jsx(E.Content,{children:y.jsx(P,{org:o,project:m,taskHref:b,showTenants:p,actions:n,notice:c},o)}),t[30]=p,t[31]=o,t[32]=m,t[33]=b,t[34]=n,t[35]=c,t[36]=x):x=t[36],x}function I(t){return{value:t.slug,label:`${t.slug} · ${t.name}`}}export{$r as default};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{c as L,b as E,r as U,j as i,b1 as re,B as V,t as J,ep as ne,eq as q,eo as fe,n as ie,fK as Re,a2 as oe,d as Ae,fu as ue,L as ge,I as le,z as xe,af as pe,l as $e}from"./index-DEQvnIsm.js";import{C as Te}from"./checkbox-CaUezNgL.js";import{T as je}from"./textarea-CWgoXXnV.js";import{i as Le}from"./ChevronSelectorVertical-GBLm8Zpl.js";import{i as Ke}from"./Play-CleWZLOG.js";import{s as Ee}from"./Plus-DQf-jm_3.js";import{C as De}from"./combobox-B5xPQiKP.js";import{M as ze}from"./multi-select-CfDYfsZ-.js";import{d as he,c as be,b as Se,a as ye,S as ve}from"./select-ChqJI0MI.js";import{S as ke}from"./switch-CJc_fIEE.js";import{A as Fe,a as Ue,b as Be,c as Je,g as Me,d as Oe,e as Ve,f as qe}from"./alert-dialog-ygFmYcOa.js";import{J as He,a as We,u as Ze,b as Ne,c as Ye,d as ce,e as Ge,f as de,g as Xe}from"./jira-icon-DJANnyLA.js";import{R as Qe,A as et}from"./review-settings-JhWFefH3.js";import{u as tt}from"./use-debounced-value-vhgvmVq4.js";import{u as Ce,a as st}from"./use-automations-Q-O37R-p.js";import{h as it}from"./task-board-DUTGhEiC.js";import{b as nt,c as lt,S as at}from"./column-rules-C_Hndp-C.js";import{R as rt}from"./require-capability-D4dR1lZc.js";import"./command-KXg0ZuU-.js";import"./index-B9qNCJbx.js";import"./SearchMd-D0zp0uee.js";import"./popover-CjfUWaC0.js";import"./badge-CyDHDRPg.js";import"./ChevronUp-DK-Gvyk8.js";import"./index-BdQq_4o_.js";import"./index-BaQyqQF-.js";import"./UserSquare-cdWcOBLL.js";import"./use-organization-settings-BtOReG0H.js";import"./schema-BzqS-kNt.js";import"./use-connection-Cqf7M1G6.js";import"./use-mcp-client-CAdgJ_QT.js";import"./auth-BVkTFTOt.js";import"./XClose-L_GNViCD.js";import"./icon-button-WP5IJTs8.js";import"./tooltip-B6NbTX5P.js";import"./sheet-CzJFx6b-.js";import"./use-org-fs-CAwgni1d.js";import"./useInfiniteQuery-Bo5dbMM_.js";import"./infiniteQueryObserver-BnP8vr6V.js";import"./watch-sse-pool-C7xRCtu5.js";import"./backoff-CrEUbyZT.js";import"./access-gate-CsHtyNGi.js";import"./capability-load-error-CB4I7CRT.js";const ot=/^([A-Za-z][A-Za-z0-9_]*-\d+)$/;function ct(t){const e=t.trim();if(e==="")return null;const s=/(?:\/(?:browse|issues)\/|[?&]selectedIssue=)([A-Za-z][A-Za-z0-9_]*-\d+)/.exec(e)?.[1]??e.split(/[?#]/)[0]??"",l=ot.exec(s);return l?.[1]?l[1].toUpperCase():null}function we(t){const e=[],a=[],s=new Set;for(const l of t.split(/[\n,;]+/)){const n=l.trim();if(n==="")continue;const c=ct(n);if(!c){a.push(n);continue}s.has(c)||(s.add(c),e.push(c))}return{keys:e,invalid:a}}function _e(t){const e=t.projectName?.replace(/\s+/g," ").trim(),a=t.name.trim();return e?{primary:e,secondary:[a,t.projectKey].filter(Boolean).join(" · ")}:{primary:a,secondary:t.projectKey??""}}function dt(t){const{primary:e,secondary:a}=_e(t);return[e,a,`#${t.id}`].filter(Boolean).join(" ")}function me(t){return t.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase()}function mt(t,e){const a=me(e).trim();if(!a)return 1;const s=me(t);return a.split(/\s+/).every(l=>s.includes(l))?1:0}function ft(){const t=L.c(17),e=E(),{data:a,isPending:s}=nt(),l=lt(),n=a?.find(ut),c=n?.prompt??"",o=n?.skills??[],[u,m]=U.useState({prompt:c,skills:o}),[f,r]=U.useState(n);f!==n&&(r(n),m({prompt:c,skills:o}));const d=u.prompt!==c||u.skills.join(`
|
|
2
|
-
`)!==o.join(`
|
|
3
|
-
`);let g;t[0]!==e?(g=e("settings.taskPrompt.title"),t[0]=e,t[1]=g):g=t[1];let j;t[2]!==e?(j=e("settings.taskPrompt.fieldLabel"),t[2]=e,t[3]=j):j=t[3];let x;t[4]!==d||t[5]!==u||t[6]!==s||t[7]!==l||t[8]!==m||t[9]!==e?(x=s?i.jsx(re,{className:"h-44 w-full"}):i.jsxs("div",{className:"flex flex-col items-start gap-3",children:[i.jsx(je,{value:u.prompt,rows:10,maxLength:it,placeholder:e("settings.taskPrompt.placeholder"),onChange:h=>m({...u,prompt:h.target.value})}),i.jsxs("div",{className:"flex w-full flex-col gap-2",children:[i.jsx("span",{className:"text-sm font-medium text-foreground",children:e("settings.taskPrompt.skillsLabel")}),i.jsx(at,{value:u.skills,onChange:h=>m({...u,skills:h})})]}),i.jsx(V,{size:"sm",disabled:!d||l.isPending,onClick:()=>l.mutate({columnKey:null,rules:u},{onSuccess:()=>J.success(e("settings.taskPrompt.saved")),onError:()=>J.error(e("settings.taskPrompt.failed"))}),children:e("settings.taskPrompt.save")})]}),t[4]=d,t[5]=u,t[6]=s,t[7]=l,t[8]=m,t[9]=e,t[10]=x):x=t[10];let p;t[11]!==j||t[12]!==x?(p=i.jsx(ne,{children:i.jsx(q,{title:j,children:x})}),t[11]=j,t[12]=x,t[13]=p):p=t[13];let b;return t[14]!==g||t[15]!==p?(b=i.jsx(fe,{title:g,children:p}),t[14]=g,t[15]=p,t[16]=b):b=t[16],b}function ut(t){return t.columnKey===null}function Q(t,e){return t instanceof Error?t.message:e}const gt="https://id.atlassian.com/manage-profile/security/api-tokens";function xt(t){const e=L.c(7),{stepKeys:a}=t,s=E();let l;if(e[0]!==a||e[1]!==s){let c;e[3]!==s?(c=o=>i.jsx("li",{children:s(o)},o),e[3]=s,e[4]=c):c=e[4],l=a.map(c),e[0]=a,e[1]=s,e[2]=l}else l=e[2];let n;return e[5]!==l?(n=i.jsx("ol",{className:"list-decimal pl-5 flex flex-col gap-1 text-xs text-muted-foreground",children:l}),e[5]=l,e[6]=n):n=e[6],n}function pt(){const t=L.c(69),e=E(),a=ce(),[s,l]=U.useState(""),[n,c]=U.useState(""),[o,u]=U.useState("");let m;t[0]!==o||t[1]!==n||t[2]!==s?(m=s.trim()!==""&&n.trim()!==""&&o.trim()!=="",t[0]=o,t[1]=n,t[2]=s,t[3]=m):m=t[3];const f=m;let r;t[4]!==e?(r=e("settings.jira.siteLabel"),t[4]=e,t[5]=r):r=t[5];let d;t[6]!==r?(d=i.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:r}),t[6]=r,t[7]=d):d=t[7];let g;t[8]===Symbol.for("react.memo_cache_sentinel")?(g=F=>l(F.target.value),t[8]=g):g=t[8];let j;t[9]!==e?(j=e("settings.jira.sitePlaceholder"),t[9]=e,t[10]=j):j=t[10];let x;t[11]!==s||t[12]!==j?(x=i.jsx(le,{value:s,onChange:g,placeholder:j,autoComplete:"off"}),t[11]=s,t[12]=j,t[13]=x):x=t[13];let p;t[14]!==d||t[15]!==x?(p=i.jsxs("div",{className:"flex flex-col gap-1.5",children:[d,x]}),t[14]=d,t[15]=x,t[16]=p):p=t[16];let b;t[17]!==e?(b=e("settings.jira.emailLabel"),t[17]=e,t[18]=b):b=t[18];let h;t[19]!==b?(h=i.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:b}),t[19]=b,t[20]=h):h=t[20];let S;t[21]===Symbol.for("react.memo_cache_sentinel")?(S=F=>c(F.target.value),t[21]=S):S=t[21];let v;t[22]!==e?(v=e("settings.jira.emailPlaceholder"),t[22]=e,t[23]=v):v=t[23];let k;t[24]!==n||t[25]!==v?(k=i.jsx(le,{value:n,onChange:S,placeholder:v,autoComplete:"off"}),t[24]=n,t[25]=v,t[26]=k):k=t[26];let N;t[27]!==k||t[28]!==h?(N=i.jsxs("div",{className:"flex flex-col gap-1.5",children:[h,k]}),t[27]=k,t[28]=h,t[29]=N):N=t[29];let C;t[30]!==e?(C=e("settings.jira.tokenLabel"),t[30]=e,t[31]=C):C=t[31];let y;t[32]!==C?(y=i.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:C}),t[32]=C,t[33]=y):y=t[33];let w;t[34]!==e?(w=e("settings.jira.createTokenLink"),t[34]=e,t[35]=w):w=t[35];let _;t[36]===Symbol.for("react.memo_cache_sentinel")?(_=i.jsx(xe,{size:12}),t[36]=_):_=t[36];let I;t[37]!==w?(I=i.jsxs("a",{href:gt,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 text-xs text-foreground hover:underline",children:[w,_]}),t[37]=w,t[38]=I):I=t[38];let R;t[39]!==y||t[40]!==I?(R=i.jsxs("div",{className:"flex items-center justify-between gap-2",children:[y,I]}),t[39]=y,t[40]=I,t[41]=R):R=t[41];let D;t[42]===Symbol.for("react.memo_cache_sentinel")?(D=F=>u(F.target.value),t[42]=D):D=t[42];let A;t[43]!==e?(A=e("settings.jira.tokenPlaceholder"),t[43]=e,t[44]=A):A=t[44];let $;t[45]!==o||t[46]!==A?($=i.jsx(le,{type:"password",value:o,onChange:D,placeholder:A,autoComplete:"off"}),t[45]=o,t[46]=A,t[47]=$):$=t[47];let K;t[48]!==R||t[49]!==$?(K=i.jsxs("div",{className:"flex flex-col gap-1.5",children:[R,$]}),t[48]=R,t[49]=$,t[50]=K):K=t[50];const z=!f||a.isPending;let T;t[51]!==o||t[52]!==n||t[53]!==s||t[54]!==e||t[55]!==a?(T=()=>a.mutate({siteUrl:s.trim(),email:n.trim(),apiToken:o.trim()},{onSuccess:()=>J.success(e("settings.jira.connected")),onError:F=>J.error(Q(F,e("settings.jira.connectFailed")))}),t[51]=o,t[52]=n,t[53]=s,t[54]=e,t[55]=a,t[56]=T):T=t[56];let P;t[57]!==e||t[58]!==a.isPending?(P=a.isPending?e("settings.jira.connecting"):e("settings.jira.connect"),t[57]=e,t[58]=a.isPending,t[59]=P):P=t[59];let B;t[60]!==z||t[61]!==T||t[62]!==P?(B=i.jsx(V,{size:"sm",className:"w-fit",disabled:z,onClick:T,children:P}),t[60]=z,t[61]=T,t[62]=P,t[63]=B):B=t[63];let M;return t[64]!==N||t[65]!==K||t[66]!==B||t[67]!==p?(M=i.jsxs("div",{className:"flex flex-col gap-4 mt-3 max-w-md",children:[p,N,K,B]}),t[64]=N,t[65]=K,t[66]=B,t[67]=p,t[68]=M):M=t[68],M}function jt(t){const e=L.c(44),{integration:a}=t,s=E(),l=Ge(),[n,c]=U.useState(!1),o=a.siteUrl,u=a.email;let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>c(!0),e[0]=m):m=e[0];let f;e[1]!==s?(f=s("settings.jira.disconnect"),e[1]=s,e[2]=f):f=e[2];let r;e[3]!==f?(r=i.jsx(V,{variant:"outline",size:"sm",onClick:m,children:f}),e[3]=f,e[4]=r):r=e[4];let d;e[5]!==a.email||e[6]!==a.siteUrl||e[7]!==r?(d=i.jsx(q,{title:o,description:u,action:r}),e[5]=a.email,e[6]=a.siteUrl,e[7]=r,e[8]=d):d=e[8];let g;e[9]!==s?(g=s("settings.jira.disconnectTitle"),e[9]=s,e[10]=g):g=e[10];let j;e[11]!==g?(j=i.jsx(Fe,{children:g}),e[11]=g,e[12]=j):j=e[12];let x;e[13]!==s?(x=s("settings.jira.disconnectDescription"),e[13]=s,e[14]=x):x=e[14];let p;e[15]!==x?(p=i.jsx(Ue,{children:x}),e[15]=x,e[16]=p):p=e[16];let b;e[17]!==p||e[18]!==j?(b=i.jsxs(Be,{children:[j,p]}),e[17]=p,e[18]=j,e[19]=b):b=e[19];let h;e[20]!==s?(h=s("settings.jira.cancel"),e[20]=s,e[21]=h):h=e[21];let S;e[22]!==h?(S=i.jsx(Je,{children:h}),e[22]=h,e[23]=S):S=e[23];let v;e[24]!==l||e[25]!==s?(v=()=>l.mutate(void 0,{onSuccess:()=>J.success(s("settings.jira.disconnected")),onError:I=>J.error(Q(I,s("settings.jira.saveFailed")))}),e[24]=l,e[25]=s,e[26]=v):v=e[26];let k;e[27]!==s?(k=s("settings.jira.disconnect"),e[27]=s,e[28]=k):k=e[28];let N;e[29]!==v||e[30]!==k?(N=i.jsx(Me,{onClick:v,children:k}),e[29]=v,e[30]=k,e[31]=N):N=e[31];let C;e[32]!==S||e[33]!==N?(C=i.jsxs(Oe,{children:[S,N]}),e[32]=S,e[33]=N,e[34]=C):C=e[34];let y;e[35]!==b||e[36]!==C?(y=i.jsxs(Ve,{children:[b,C]}),e[35]=b,e[36]=C,e[37]=y):y=e[37];let w;e[38]!==n||e[39]!==y?(w=i.jsx(qe,{open:n,onOpenChange:c,children:y}),e[38]=n,e[39]=y,e[40]=w):w=e[40];let _;return e[41]!==w||e[42]!==d?(_=i.jsxs(i.Fragment,{children:[d,w]}),e[41]=w,e[42]=d,e[43]=_):_=e[43],_}function ht(t){const e=L.c(40),{integration:a}=t,s=E(),l=ce(),n=de(!0),[c,o]=U.useState("");let u;e[0]!==c?(u=c.trim(),e[0]=c,e[1]=u):u=e[1];const m=tt(u,300),f=de(m!=="",m);let r;if(e[2]!==n.data||e[3]!==m||e[4]!==f){const y=n.data??[],w=new Set(y.map(yt)),_=m?(f.data??[]).filter(I=>!w.has(I.id)):[];r=[...y,..._].map(St),e[2]=n.data,e[3]=m,e[4]=f,e[5]=r}else r=e[5];const d=r,g=a.boardId?d.find(y=>y.value===a.boardId)?.primary??a.boardName??a.boardId:null;let j;e[6]!==s?(j=s("settings.jira.boardLabel"),e[6]=s,e[7]=j):j=e[7];let x;e[8]!==s?(x=s("settings.jira.boardDescription"),e[8]=s,e[9]=x):x=e[9];const p=a.boardId??"";let b;e[10]!==s?(b=s("settings.jira.boardPlaceholder"),e[10]=s,e[11]=b):b=e[11];let h;e[12]!==s?(h=s("settings.jira.boardSearchPlaceholder"),e[12]=s,e[13]=h):h=e[13];let S;e[14]!==n.isPending||e[15]!==m||e[16]!==c||e[17]!==f||e[18]!==s?(S=n.isPending||c.trim()!==m||m!==""&&f.isFetching?s("settings.jira.loadingBoards"):s("settings.jira.noBoardsMatch"),e[14]=n.isPending,e[15]=m,e[16]=c,e[17]=f,e[18]=s,e[19]=S):S=e[19];let v;e[20]!==g||e[21]!==s?(v=()=>i.jsxs(V,{variant:"outline",role:"combobox",className:"w-72 justify-between font-normal",children:[i.jsx("span",{className:"truncate",children:g??s("settings.jira.boardPlaceholder")}),i.jsx(Le,{className:"opacity-50 shrink-0"})]}),e[20]=g,e[21]=s,e[22]=v):v=e[22];let k;e[23]!==d||e[24]!==a.boardId||e[25]!==s||e[26]!==l?(k=y=>{!y||y===a.boardId||l.mutate({boardId:y,boardName:d.find(w=>w.value===y)?.primary??null},{onError:w=>J.error(Q(w,s("settings.jira.saveFailed")))})},e[23]=d,e[24]=a.boardId,e[25]=s,e[26]=l,e[27]=k):k=e[27];let N;e[28]!==d||e[29]!==k||e[30]!==p||e[31]!==b||e[32]!==h||e[33]!==S||e[34]!==v?(N=i.jsx(De,{options:d,value:p,width:"w-72",triggerClassName:"shrink-0",placeholder:b,searchPlaceholder:h,filter:mt,onSearchChange:o,emptyMessage:S,renderTrigger:v,renderItem:bt,onChange:k}),e[28]=d,e[29]=k,e[30]=p,e[31]=b,e[32]=h,e[33]=S,e[34]=v,e[35]=N):N=e[35];let C;return e[36]!==N||e[37]!==j||e[38]!==x?(C=i.jsx(q,{title:j,description:x,action:N}),e[36]=N,e[37]=j,e[38]=x,e[39]=C):C=e[39],C}function bt(t,e){return i.jsxs("div",{className:"flex items-start gap-2 min-w-0 w-full",children:[i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("p",{className:"truncate",children:t.primary}),i.jsx("p",{className:"text-xs text-muted-foreground truncate",children:t.secondary})]}),i.jsx(pe,{className:$e("mt-0.5 shrink-0",e?"opacity-100":"opacity-0")})]})}function St(t){const{primary:e,secondary:a}=_e(t);return{value:String(t.id),label:dt(t),primary:e,secondary:a}}function yt(t){return t.id}function vt(t){const e=L.c(28),{boardId:a}=t,s=E(),l=Ze(a),n=Ne();let c;if(l.isPending||n.isPending){let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(re,{className:"h-40 w-full"}),e[0]=r):r=e[0],c=r}else if(l.isError){let r;e[1]!==s?(r=s("settings.jira.columnsFailed"),e[1]=s,e[2]=r):r=e[2];let d;e[3]!==r?(d=i.jsx("p",{className:"text-xs text-muted-foreground",children:r}),e[3]=r,e[4]=d):d=e[4],c=d}else if((l.data??[]).length===0){let r;e[5]!==s?(r=s("settings.jira.noColumnsYet"),e[5]=s,e[6]=r):r=e[6];let d;e[7]!==r?(d=i.jsx("p",{className:"text-xs text-muted-foreground",children:r}),e[7]=r,e[8]=d):d=e[8],c=d}else{let r;if(e[9]!==n.data){r=new Map;for(const x of n.data??[])r.set(x.jiraStatus,[...r.get(x.jiraStatus)??[],x]);e[9]=n.data,e[10]=r}else r=e[10];let d,g;if(e[11]!==l.data||e[12]!==r){const x=(l.data??[]).flatMap(kt);d="flex w-full flex-col gap-3",g=(l.data??[]).flatMap(p=>p.statuses.map(b=>i.jsx(It,{columnName:p.name,status:b,showStatus:b!==p.name||p.statuses.length>1,rules:r.get(b)??[],otherStatuses:x.filter(h=>h!==b)},`${p.name}:${b}`))),e[11]=l.data,e[12]=r,e[13]=d,e[14]=g}else d=e[13],g=e[14];let j;e[15]!==d||e[16]!==g?(j=i.jsx("div",{className:d,children:g}),e[15]=d,e[16]=g,e[17]=j):j=e[17],c=j}let o;e[18]!==s?(o=s("settings.jira.automationsLabel"),e[18]=s,e[19]=o):o=e[19];let u;e[20]!==s?(u=s("settings.jira.automationsDescription"),e[20]=s,e[21]=u):u=e[21];let m;e[22]!==c?(m=i.jsx("div",{className:"mt-3",children:c}),e[22]=c,e[23]=m):m=e[23];let f;return e[24]!==o||e[25]!==u||e[26]!==m?(f=i.jsx(q,{title:o,description:u,children:m}),e[24]=o,e[25]=u,e[26]=m,e[27]=f):f=e[27],f}function kt(t){return t.statuses}function Nt(t){const e=L.c(16),{value:a,onChange:s,disabled:l,ariaLabel:n}=t,c=E();let o;if(e[0]!==n||e[1]!==l||e[2]!==s||e[3]!==c||e[4]!==a){const{keys:u,invalid:m}=we(a);let f;e[6]!==s?(f=g=>s(g.target.value),e[6]=s,e[7]=f):f=e[7];let r;e[8]!==c?(r=c("settings.jira.issueKeysPlaceholder"),e[8]=c,e[9]=r):r=e[9];let d;e[10]!==n||e[11]!==l||e[12]!==f||e[13]!==r||e[14]!==a?(d=i.jsx(je,{value:a,rows:3,disabled:l,onChange:f,placeholder:r,"aria-label":n,className:"font-mono text-xs",spellCheck:!1}),e[10]=n,e[11]=l,e[12]=f,e[13]=r,e[14]=a,e[15]=d):d=e[15],o=i.jsxs("div",{className:"flex w-full flex-col gap-1.5",children:[d,a.trim()!==""&&i.jsxs("p",{className:"text-xs text-muted-foreground",children:[c("settings.jira.issueKeysCount",{count:String(u.length)}),m.length>0&&i.jsxs("span",{className:"text-destructive",children:[" · ",c("settings.jira.issueKeysUnreadable",{items:m.slice(0,3).join(", ")})]})]})]}),e[0]=n,e[1]=l,e[2]=s,e[3]=c,e[4]=a,e[5]=o}else o=e[5];return o}function Ct(t){const e=L.c(8),{started:a,failed:s,startedLabel:l}=t;if(a.length===0&&s.length===0)return null;let n;e[0]!==a||e[1]!==l?(n=a.length>0&&i.jsxs("p",{children:[i.jsx(pe,{size:12,className:"mr-1 inline text-success"}),l,i.jsx("span",{className:"ml-1 font-mono",children:a.join(", ")})]}),e[0]=a,e[1]=l,e[2]=n):n=e[2];let c;e[3]!==s?(c=s.map(wt),e[3]=s,e[4]=c):c=e[4];let o;return e[5]!==n||e[6]!==c?(o=i.jsxs("div",{className:"flex flex-col gap-1 rounded-lg bg-muted/40 p-2.5 text-xs",children:[n,c]}),e[5]=n,e[6]=c,e[7]=o):o=e[7],o}function wt(t){return i.jsxs("p",{className:"text-destructive",children:[i.jsx("span",{className:"font-mono",children:t.issueKey})," — ",t.error]},t.issueKey)}function Ie(t){return t.kind!=="statuses"?t.kind:`statuses:${[...new Set(t.statuses.map(a=>a.trim().toLowerCase()))].sort().join(`
|
|
4
|
-
`)}`}function _t(t){const e=L.c(17),{from:a}=t,s=E();switch(a.kind){case"any":{let l;e[0]!==s?(l=s("settings.jira.fromAny"),e[0]=s,e[1]=l):l=e[1];let n;return e[2]!==l?(n=i.jsx(i.Fragment,{children:l}),e[2]=l,e[3]=n):n=e[3],n}case"earlier":{let l;e[4]!==s?(l=s("settings.jira.fromEarlier"),e[4]=s,e[5]=l):l=e[5];let n;return e[6]!==l?(n=i.jsx(i.Fragment,{children:l}),e[6]=l,e[7]=n):n=e[7],n}case"later":{let l;e[8]!==s?(l=s("settings.jira.fromLater"),e[8]=s,e[9]=l):l=e[9];let n;return e[10]!==l?(n=i.jsx(i.Fragment,{children:l}),e[10]=l,e[11]=n):n=e[11],n}case"statuses":{let l;e[12]!==a.statuses||e[13]!==s?(l=s("settings.jira.fromStatuses",{statuses:a.statuses.join(", ")}),e[12]=a.statuses,e[13]=s,e[14]=l):l=e[14];let n;return e[15]!==l?(n=i.jsx(i.Fragment,{children:l}),e[15]=l,e[16]=n):n=e[16],n}}}function It(t){const e=L.c(32),{columnName:a,status:s,showStatus:l,rules:n,otherStatuses:c}=t,o=E(),{org:u}=oe(),m=Ae(),f=Ye(),[r,d]=U.useState(!1);let g;e[0]!==f||e[1]!==m||e[2]!==u||e[3]!==s||e[4]!==o?(g=C=>f.mutate({jiraStatus:s,from:C},{onSuccess:y=>{d(!1),m({to:"/$org/projects/$agentId/automations/$automationId",params:{org:u.slug,agentId:ue(u.id),automationId:y.automationId}})},onError:y=>J.error(Q(y,o("settings.jira.saveFailed")))}),e[0]=f,e[1]=m,e[2]=u,e[3]=s,e[4]=o,e[5]=g):g=e[5];const j=g;let x;e[6]!==a?(x=i.jsx("span",{className:"truncate text-sm font-medium",children:a}),e[6]=a,e[7]=x):x=e[7];let p;e[8]!==l||e[9]!==s?(p=l&&i.jsx("span",{className:"truncate text-xs text-muted-foreground",children:s}),e[8]=l,e[9]=s,e[10]=p):p=e[10];let b;e[11]!==x||e[12]!==p?(b=i.jsxs("div",{className:"flex flex-col min-w-0",children:[x,p]}),e[11]=x,e[12]=p,e[13]=b):b=e[13];let h;e[14]!==r||e[15]!==o?(h=!r&&i.jsxs(V,{variant:"outline",size:"sm",className:"shrink-0",onClick:()=>d(!0),children:[i.jsx(Ee,{size:14}),o("settings.jira.addAutomation")]}),e[14]=r,e[15]=o,e[16]=h):h=e[16];let S;e[17]!==b||e[18]!==h?(S=i.jsxs("div",{className:"flex items-start justify-between gap-2",children:[b,h]}),e[17]=b,e[18]=h,e[19]=S):S=e[19];let v;e[20]!==r||e[21]!==j||e[22]!==f.isPending||e[23]!==c||e[24]!==n?(v=r&&i.jsx(At,{taken:new Set(n.map(Rt)),otherStatuses:c,pending:f.isPending,onCreate:j,onCancel:()=>d(!1)}),e[20]=r,e[21]=j,e[22]=f.isPending,e[23]=c,e[24]=n,e[25]=v):v=e[25];let k;e[26]!==n?(k=n.map(Pt),e[26]=n,e[27]=k):k=e[27];let N;return e[28]!==S||e[29]!==v||e[30]!==k?(N=i.jsxs("div",{className:"flex flex-col gap-3 rounded-xl border border-border p-3",children:[S,v,k]}),e[28]=S,e[29]=v,e[30]=k,e[31]=N):N=e[31],N}function Pt(t){return i.jsx(Tt,{rule:t},t.automationId)}function Rt(t){return Ie(t.from)}function At(t){const e=L.c(51),{taken:a,otherStatuses:s,pending:l,onCreate:n,onCancel:c}=t,o=E();let u;e[0]!==a?(u=["any","earlier","later","statuses"].filter(P=>P==="statuses"||!a.has(P)),e[0]=a,e[1]=u):u=e[1];const m=u,[f,r]=U.useState(m[0]??"statuses");let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=[],e[2]=d):d=e[2];const[g,j]=U.useState(d);let x,p;e[3]!==f||e[4]!==g||e[5]!==a?(x=f==="statuses"?{kind:f,statuses:g}:{kind:f},p=(f!=="statuses"||g.length>0)&&!a.has(Ie(x)),e[3]=f,e[4]=g,e[5]=a,e[6]=x,e[7]=p):(x=e[6],p=e[7]);const b=p;let h;e[8]!==o?(h=o("settings.jira.originLabel"),e[8]=o,e[9]=h):h=e[9];let S;e[10]!==h?(S=i.jsx("span",{className:"text-xs font-medium",children:h}),e[10]=h,e[11]=S):S=e[11];let v;e[12]===Symbol.for("react.memo_cache_sentinel")?(v=P=>r(P),e[12]=v):v=e[12];let k;e[13]===Symbol.for("react.memo_cache_sentinel")?(k=i.jsx(Se,{className:"h-8 w-fit min-w-56 text-xs",children:i.jsx(ye,{})}),e[13]=k):k=e[13];let N;e[14]!==m||e[15]!==o?(N=i.jsx(he,{children:m.map(P=>i.jsx(be,{value:P,className:"text-xs",children:P==="any"?o("settings.jira.fromAny"):P==="earlier"?o("settings.jira.fromEarlier"):P==="later"?o("settings.jira.fromLater"):o("settings.jira.fromStatuses",{statuses:"…"})},P))}),e[14]=m,e[15]=o,e[16]=N):N=e[16];let C;e[17]!==f||e[18]!==N?(C=i.jsxs(ve,{value:f,onValueChange:v,children:[k,N]}),e[17]=f,e[18]=N,e[19]=C):C=e[19];let y;e[20]!==f||e[21]!==s||e[22]!==o?(y=f==="statuses"&&i.jsx(ze,{options:s.map($t),onValueChange:j,placeholder:o("settings.jira.originStatusesPlaceholder"),className:"text-xs"}),e[20]=f,e[21]=s,e[22]=o,e[23]=y):y=e[23];let w;e[24]!==o?(w=o("settings.jira.originHelp"),e[24]=o,e[25]=w):w=e[25];let _;e[26]!==w?(_=i.jsx("p",{className:"text-xs text-muted-foreground",children:w}),e[26]=w,e[27]=_):_=e[27];let I;e[28]!==o?(I=o("settings.jira.cancelRule"),e[28]=o,e[29]=I):I=e[29];let R;e[30]!==c||e[31]!==I?(R=i.jsx(V,{variant:"ghost",size:"sm",onClick:c,children:I}),e[30]=c,e[31]=I,e[32]=R):R=e[32];const D=!b||l;let A;e[33]!==x||e[34]!==n?(A=()=>n(x),e[33]=x,e[34]=n,e[35]=A):A=e[35];let $;e[36]!==o?($=o("settings.jira.createRule"),e[36]=o,e[37]=$):$=e[37];let K;e[38]!==D||e[39]!==A||e[40]!==$?(K=i.jsx(V,{size:"sm",disabled:D,onClick:A,children:$}),e[38]=D,e[39]=A,e[40]=$,e[41]=K):K=e[41];let z;e[42]!==R||e[43]!==K?(z=i.jsxs("div",{className:"flex items-center justify-end gap-2",children:[R,K]}),e[42]=R,e[43]=K,e[44]=z):z=e[44];let T;return e[45]!==y||e[46]!==_||e[47]!==z||e[48]!==S||e[49]!==C?(T=i.jsxs("div",{className:"flex flex-col gap-2 rounded-lg border border-dashed border-border p-2.5",children:[S,C,y,_,z]}),e[45]=y,e[46]=_,e[47]=z,e[48]=S,e[49]=C,e[50]=T):T=e[50],T}function $t(t){return{label:t,value:t}}function Tt(t){const e=L.c(29),{rule:a}=t,s=E(),{org:l}=oe(),n=Ce().data?.find(S=>S.id===a.automationId),{update:c}=st(),o=n?.active??a.active,u=n?.name??a.jiraStatus;let m;e[0]!==n?.virtual_mcp_id||e[1]!==l.id?(m=n?.virtual_mcp_id??ue(l.id),e[0]=n?.virtual_mcp_id,e[1]=l.id,e[2]=m):m=e[2];let f;e[3]!==l.slug||e[4]!==a.automationId||e[5]!==m?(f={org:l.slug,agentId:m,automationId:a.automationId},e[3]=l.slug,e[4]=a.automationId,e[5]=m,e[6]=f):f=e[6];let r;e[7]!==u?(r=i.jsx("span",{className:"truncate text-sm text-foreground",children:u}),e[7]=u,e[8]=r):r=e[8];let d;e[9]!==a.from?(d=i.jsx("span",{className:"truncate text-xs text-muted-foreground",children:i.jsx(_t,{from:a.from})}),e[9]=a.from,e[10]=d):d=e[10];let g;e[11]!==f||e[12]!==r||e[13]!==d?(g=i.jsxs(ge,{to:"/$org/projects/$agentId/automations/$automationId",params:f,className:"flex min-w-0 flex-1 flex-col hover:underline",children:[r,d]}),e[11]=f,e[12]=r,e[13]=d,e[14]=g):g=e[14];const j=c.isPending;let x;e[15]!==a.automationId||e[16]!==c?(x=S=>c.mutate({id:a.automationId,active:S}),e[15]=a.automationId,e[16]=c,e[17]=x):x=e[17];let p;e[18]!==u||e[19]!==s?(p=s("settings.jira.toggleAutomation",{name:u}),e[18]=u,e[19]=s,e[20]=p):p=e[20];let b;e[21]!==o||e[22]!==x||e[23]!==p||e[24]!==c.isPending?(b=i.jsx(ke,{checked:o,disabled:j,onCheckedChange:x,"aria-label":p}),e[21]=o,e[22]=x,e[23]=p,e[24]=c.isPending,e[25]=b):b=e[25];let h;return e[26]!==g||e[27]!==b?(h=i.jsxs("div",{className:"flex items-center gap-3 rounded-lg bg-muted/40 px-2.5 py-2",children:[g,b]}),e[26]=g,e[27]=b,e[28]=h):h=e[28],h}function Lt(){const t=L.c(77),e=E(),{org:a}=oe(),s=Xe(),l=Ne(),[n,c]=U.useState(""),[o,u]=U.useState(null),[m,f]=U.useState(!1),[r,d]=U.useState(null),g=Ce().data;let j;t[0]!==l.data?(j=[...new Map((l.data??[]).map(Et)).values()],t[0]=l.data,t[1]=j):j=t[1];const x=j,p=o??x[0]?.automationId??null;let b;t[2]!==n?(b=we(n),t[2]=n,t[3]=b):b=t[3];const h=b,S=p!==null&&h.keys.length>0&&!s.isPending,v=m&&h.keys.length>1;let k;t[4]!==p||t[5]!==v||t[6]!==S||t[7]!==n||t[8]!==s||t[9]!==e?(k=()=>{!S||!p||(d(null),s.mutate({automationId:p,issueKey:n,...v?{together:!0}:{}},{onSuccess:O=>d({started:O.started.map(Kt),failed:O.failed,together:v}),onError:O=>J.error(Q(O,e("settings.jira.testRunFailed")))}))},t[4]=p,t[5]=v,t[6]=S,t[7]=n,t[8]=s,t[9]=e,t[10]=k):k=t[10];const N=k;let C;t[11]!==e?(C=e("settings.jira.testRunLabel"),t[11]=e,t[12]=C):C=t[12];let y;t[13]!==e?(y=e("settings.jira.testRunDescription"),t[13]=e,t[14]=y):y=t[14];const w=s.isPending;let _;t[15]!==e?(_=e("settings.jira.testRunIssueAriaLabel"),t[15]=e,t[16]=_):_=t[16];let I;t[17]!==n||t[18]!==s.isPending||t[19]!==_?(I=i.jsx(Nt,{value:n,onChange:c,disabled:w,ariaLabel:_}),t[17]=n,t[18]=s.isPending,t[19]=_,t[20]=I):I=t[20];let R;t[21]!==p||t[22]!==g||t[23]!==x||t[24]!==e?(R=x.length===0?i.jsx("p",{className:"text-xs text-muted-foreground",children:e("settings.jira.testRunNoAutomations")}):i.jsxs(ve,{value:p??void 0,onValueChange:u,children:[i.jsx(Se,{className:"h-8 w-fit min-w-56 text-xs","aria-label":e("settings.jira.testRunAutomation"),children:i.jsx(ye,{})}),i.jsx(he,{children:x.map(O=>i.jsx(be,{value:O.automationId,className:"text-xs",children:g?.find(Pe=>Pe.id===O.automationId)?.name??O.jiraStatus},O.automationId))})]}),t[21]=p,t[22]=g,t[23]=x,t[24]=e,t[25]=R):R=t[25];let D;t[26]!==h.keys.length||t[27]!==e||t[28]!==m?(D=h.keys.length>1&&i.jsxs("label",{className:"flex w-fit cursor-pointer items-center gap-2 text-xs",children:[i.jsx(Te,{checked:m,onCheckedChange:O=>f(O===!0)}),e("settings.jira.together")]}),t[26]=h.keys.length,t[27]=e,t[28]=m,t[29]=D):D=t[29];let A;t[30]!==e?(A=e("settings.jira.testRunHelp"),t[30]=e,t[31]=A):A=t[31];let $;t[32]!==A?($=i.jsx("p",{className:"text-xs text-muted-foreground",children:A}),t[32]=A,t[33]=$):$=t[33];const K=!S;let z;t[34]===Symbol.for("react.memo_cache_sentinel")?(z=i.jsx(Ke,{size:14}),t[34]=z):z=t[34];let T;t[35]!==h.keys.length||t[36]!==s.isPending||t[37]!==e?(T=s.isPending?e("settings.jira.testRunRunning"):e("settings.jira.testRun",{count:String(h.keys.length||"")}),t[35]=h.keys.length,t[36]=s.isPending,t[37]=e,t[38]=T):T=t[38];let P;t[39]!==N||t[40]!==K||t[41]!==T?(P=i.jsxs(V,{size:"sm",className:"shrink-0",disabled:K,onClick:N,children:[z,T]}),t[39]=N,t[40]=K,t[41]=T,t[42]=P):P=t[42];let B;t[43]!==$||t[44]!==P?(B=i.jsxs("div",{className:"flex items-center justify-between gap-2",children:[$,P]}),t[43]=$,t[44]=P,t[45]=B):B=t[45];let M;t[46]!==r?.started?(M=r?.started??[],t[46]=r?.started,t[47]=M):M=t[47];let F;t[48]!==r?.failed?(F=r?.failed??[],t[48]=r?.failed,t[49]=F):F=t[49];const ae=r?.together?"settings.jira.togetherStarted":"settings.jira.testRunStarted";let H;t[50]!==e||t[51]!==ae?(H=e(ae),t[50]=e,t[51]=ae,t[52]=H):H=t[52];let W;t[53]!==M||t[54]!==F||t[55]!==H?(W=i.jsx(Ct,{started:M,failed:F,startedLabel:H}),t[53]=M,t[54]=F,t[55]=H,t[56]=W):W=t[56];let Z;t[57]!==a.slug?(Z={org:a.slug},t[57]=a.slug,t[58]=Z):Z=t[58];let ee;t[59]===Symbol.for("react.memo_cache_sentinel")?(ee={tab:"threads"},t[59]=ee):ee=t[59];let Y;t[60]!==e?(Y=e("settings.jira.testRunWatch"),t[60]=e,t[61]=Y):Y=t[61];let te;t[62]===Symbol.for("react.memo_cache_sentinel")?(te=i.jsx(xe,{size:12}),t[62]=te):te=t[62];let G;t[63]!==Z||t[64]!==Y?(G=i.jsxs(ge,{to:"/$org/settings/monitor",params:Z,search:ee,className:"flex w-fit items-center gap-1 text-xs text-muted-foreground underline hover:text-foreground",children:[Y,te]}),t[63]=Z,t[64]=Y,t[65]=G):G=t[65];let X;t[66]!==B||t[67]!==W||t[68]!==G||t[69]!==I||t[70]!==R||t[71]!==D?(X=i.jsxs("div",{className:"mt-3 flex w-full flex-col gap-3",children:[I,R,D,B,W,G]}),t[66]=B,t[67]=W,t[68]=G,t[69]=I,t[70]=R,t[71]=D,t[72]=X):X=t[72];let se;return t[73]!==X||t[74]!==C||t[75]!==y?(se=i.jsx(q,{title:C,description:y,children:X}),t[73]=X,t[74]=C,t[75]=y,t[76]=se):se=t[76],se}function Kt(t){return t.issueKey}function Et(t){return[t.automationId,t]}function Dt(t){const e=L.c(16),{integration:a}=t,s=E(),l=ce();let n;e[0]!==s?(n=s("settings.jira.enabledLabel"),e[0]=s,e[1]=n):n=e[1];let c;e[2]!==s?(c=s("settings.jira.enabledDescription"),e[2]=s,e[3]=c):c=e[3];let o;e[4]!==a.boardId||e[5]!==s||e[6]!==l?(o=f=>{if(f&&!a.boardId){J.error(s("settings.jira.enableRequirements"));return}l.mutate({enabled:f},{onError:r=>J.error(Q(r,s("settings.jira.saveFailed")))})},e[4]=a.boardId,e[5]=s,e[6]=l,e[7]=o):o=e[7];let u;e[8]!==a.enabled||e[9]!==o||e[10]!==l.isPending?(u=i.jsx(ke,{checked:a.enabled,disabled:l.isPending,onCheckedChange:o}),e[8]=a.enabled,e[9]=o,e[10]=l.isPending,e[11]=u):u=e[11];let m;return e[12]!==n||e[13]!==c||e[14]!==u?(m=i.jsx(q,{title:n,description:c,action:u}),e[12]=n,e[13]=c,e[14]=u,e[15]=m):m=e[15],m}function zt(t){const e=L.c(24),{integration:a}=t,s=E(),l=`${window.location.origin}/api/_jira/webhook/${a.webhookSecret}`;let n;e[0]!==s?(n=s("settings.jira.webhookTitle"),e[0]=s,e[1]=n):n=e[1];let c;e[2]!==s?(c=s("settings.jira.webhookDescription"),e[2]=s,e[3]=c):c=e[3];let o;e[4]!==l?(o=i.jsx(le,{readOnly:!0,value:l,className:"font-mono text-xs"}),e[4]=l,e[5]=o):o=e[5];let u;e[6]!==s||e[7]!==l?(u=()=>{navigator.clipboard.writeText(l),J.success(s("settings.jira.webhookCopied"))},e[6]=s,e[7]=l,e[8]=u):u=e[8];let m;e[9]!==s?(m=s("settings.jira.webhookCopy"),e[9]=s,e[10]=m):m=e[10];let f;e[11]!==u||e[12]!==m?(f=i.jsx(V,{variant:"outline",size:"sm",className:"shrink-0",onClick:u,children:m}),e[11]=u,e[12]=m,e[13]=f):f=e[13];let r;e[14]!==o||e[15]!==f?(r=i.jsxs("div",{className:"flex items-center gap-2",children:[o,f]}),e[14]=o,e[15]=f,e[16]=r):r=e[16];let d;e[17]===Symbol.for("react.memo_cache_sentinel")?(d=i.jsx(xt,{stepKeys:["settings.jira.webhookStep1","settings.jira.webhookStep2","settings.jira.webhookStep3","settings.jira.webhookStep4","settings.jira.webhookStep5"]}),e[17]=d):d=e[17];let g;e[18]!==r?(g=i.jsxs("div",{className:"flex flex-col gap-3 mt-3",children:[r,d]}),e[18]=r,e[19]=g):g=e[19];let j;return e[20]!==n||e[21]!==c||e[22]!==g?(j=i.jsx(q,{title:n,description:c,children:g}),e[20]=n,e[21]=c,e[22]=g,e[23]=j):j=e[23],j}function Ft(){const t=L.c(24),e=E(),a=We();if(a.isPending){let r;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(ne,{children:i.jsx("div",{className:"p-4",children:i.jsx(re,{className:"h-40 w-full"})})}),t[0]=r):r=t[0],r}if(!a.data){let r;t[1]!==e?(r=e("settings.jira.connectTitle"),t[1]=e,t[2]=r):r=t[2];let d;t[3]!==e?(d=e("settings.jira.connectDescription"),t[3]=e,t[4]=d):d=t[4];let g;t[5]===Symbol.for("react.memo_cache_sentinel")?(g=i.jsx(pt,{}),t[5]=g):g=t[5];let j;return t[6]!==r||t[7]!==d?(j=i.jsx(ne,{children:i.jsx(q,{title:r,description:d,children:g})}),t[6]=r,t[7]=d,t[8]=j):j=t[8],j}const s=a.data;let l,n;t[9]!==s?(l=i.jsx(jt,{integration:s}),n=i.jsx(ht,{integration:s}),t[9]=s,t[10]=l,t[11]=n):(l=t[10],n=t[11]);let c;t[12]!==s.boardId?(c=s.boardId&&i.jsx(vt,{boardId:s.boardId}),t[12]=s.boardId,t[13]=c):c=t[13];let o;t[14]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx(Lt,{}),t[14]=o):o=t[14];let u,m;t[15]!==s?(u=i.jsx(Dt,{integration:s}),m=i.jsx(zt,{integration:s}),t[15]=s,t[16]=u,t[17]=m):(u=t[16],m=t[17]);let f;return t[18]!==l||t[19]!==n||t[20]!==c||t[21]!==u||t[22]!==m?(f=i.jsxs(ne,{children:[l,n,c,o,u,m]}),t[18]=l,t[19]=n,t[20]=c,t[21]=u,t[22]=m,t[23]=f):f=t[23],f}function Ut(){const t=L.c(18),e=E();let a;t[0]!==e?(a=e("settings.nav.tasks"),t[0]=e,t[1]=a):a=t[1];let s;t[2]!==a?(s=i.jsx(ie.Title,{children:a}),t[2]=a,t[3]=s):s=t[3];let l,n,c;t[4]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsx(Qe,{}),n=i.jsx(ft,{}),c=i.jsx(et,{}),t[4]=l,t[5]=n,t[6]=c):(l=t[4],n=t[5],c=t[6]);let o;t[7]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx(He,{size:18}),t[7]=o):o=t[7];let u;t[8]!==e?(u=e("settings.jira.sectionTitle"),t[8]=e,t[9]=u):u=t[9];let m;t[10]!==u?(m=i.jsxs("span",{className:"flex items-center gap-2",children:[o,u]}),t[10]=u,t[11]=m):m=t[11];let f;t[12]===Symbol.for("react.memo_cache_sentinel")?(f=i.jsx(Ft,{}),t[12]=f):f=t[12];let r;t[13]!==m?(r=i.jsx(fe,{title:m,children:f}),t[13]=m,t[14]=r):r=t[14];let d;return t[15]!==s||t[16]!==r?(d=i.jsx(ie,{children:i.jsx(ie.Content,{children:i.jsx(ie.Container,{children:i.jsxs(Re,{children:[s,l,n,c,r]})})})}),t[15]=s,t[16]=r,t[17]=d):d=t[17],d}function Rs(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(rt,{capability:"org:manage",area:"settings",children:i.jsx(Ut,{})}),t[0]=e):e=t[0],e}export{Rs as default};
|