decocms 4.248.2 → 4.248.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-DYa65h7M.js → AlertCircle-D4T32nh1.js} +1 -1
- package/dist/client/assets/{AreaChart-Z7000aGF.js → AreaChart-BMcsC7B4.js} +1 -1
- package/dist/client/assets/{ArrowLeft-D0sSJGyh.js → ArrowLeft-BSKzeNBq.js} +1 -1
- package/dist/client/assets/{ArrowUp-DaPuMC6J.js → ArrowUp-DrRQuPGQ.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Dv9QvAW5.js → ArrowUpRight-BSQlyUKS.js} +1 -1
- package/dist/client/assets/{Check-ErA_74IV.js → Check-DBuakj7k.js} +1 -1
- package/dist/client/assets/{CheckCircle-CiRCtOI3.js → CheckCircle-Cpa0eGA9.js} +1 -1
- package/dist/client/assets/{ChevronDown-Dgga4a4Q.js → ChevronDown-DWtVeGOh.js} +1 -1
- package/dist/client/assets/{ChevronRight-Cf-ty0tK.js → ChevronRight-BBOI7Ss9.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-BS9Eaphx.js → ChevronSelectorVertical-B-OI9NAM.js} +1 -1
- package/dist/client/assets/{ChevronUp-DOEAI0tE.js → ChevronUp-DjwSDn9m.js} +1 -1
- package/dist/client/assets/{Copy01-C8DEngph.js → Copy01-D4rVL35O.js} +1 -1
- package/dist/client/assets/{CreditCard01-LLnESWWX.js → CreditCard01-n0aiiAya.js} +1 -1
- package/dist/client/assets/{DotsVertical-B9Mg1LjT.js → DotsVertical-Dt688OKL.js} +1 -1
- package/dist/client/assets/{Download01-CKTo0VS3.js → Download01-jYnsDg5e.js} +1 -1
- package/dist/client/assets/{Eye-C-IIbq0b.js → Eye-CpQDrlSJ.js} +1 -1
- package/dist/client/assets/{FilterLines-BmuWDJhh.js → FilterLines-_pRuhQCw.js} +1 -1
- package/dist/client/assets/{Globe01-AGteY5p8.js → Globe01-D8sOi5zP.js} +1 -1
- package/dist/client/assets/{Globe04-B6IxAzhj.js → Globe04-XndkH3ck.js} +1 -1
- package/dist/client/assets/{HardDrive-Bxx1_cqg.js → HardDrive-Dg5qH8-Z.js} +1 -1
- package/dist/client/assets/{Key01-Du0R52Fs.js → Key01-BOgtb0rG.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BKrrf1xY.js → LayoutLeft-D3cMXNIA.js} +1 -1
- package/dist/client/assets/{LinkExternal01-lwDudDKU.js → LinkExternal01-DNaWVi6_.js} +1 -1
- package/dist/client/assets/{LockUnlocked01-ChTbbG9p.js → LockUnlocked01-CH6x5p58.js} +1 -1
- package/dist/client/assets/{LogOut01-VHtvJ8Vp.js → LogOut01-jBeyWZBo.js} +1 -1
- package/dist/client/assets/{Monitor01-DA25Iq0R.js → Monitor01-DfjCBknP.js} +1 -1
- package/dist/client/assets/{Palette-yngNVQ4n.js → Palette-hZy7hNse.js} +1 -1
- package/dist/client/assets/{Play-CsQhzYUI.js → Play-LB6itaJQ.js} +1 -1
- package/dist/client/assets/{Plus-Cf4b1bNp.js → Plus-BtQgfz9k.js} +1 -1
- package/dist/client/assets/{SearchLg-CIhGyLjl.js → SearchLg-f1uSbVOg.js} +1 -1
- package/dist/client/assets/{SearchMd-B1dsuEY7.js → SearchMd-mO3LNgT6.js} +1 -1
- package/dist/client/assets/{Settings02-zoYBf2Q9.js → Settings02-6EvhAm0Z.js} +1 -1
- package/dist/client/assets/{Share07-KO4nWaTW.js → Share07-CTkgIlDR.js} +1 -1
- package/dist/client/assets/{Shield01-EKP5VJCL.js → Shield01-DhLJB0pw.js} +1 -1
- package/dist/client/assets/{Stars01-BgC1nyVS.js → Stars01-Dmu1MH_L.js} +1 -1
- package/dist/client/assets/{Stars02-D7QMgn6_.js → Stars02-D2UTe8Ls.js} +1 -1
- package/dist/client/assets/{Sun-CH0lCvO4.js → Sun-CSggtNF4.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-ByrC3JZW.js → SwitchHorizontal01-Dlm-0KRS.js} +1 -1
- package/dist/client/assets/{Tool01-BjJidQ3c.js → Tool01-CZRCn8cl.js} +1 -1
- package/dist/client/assets/{Tool02-Bs7nBBx_.js → Tool02-Bu0EuDW2.js} +1 -1
- package/dist/client/assets/{Trash01-C4UDDTjr.js → Trash01-DuZYyBOX.js} +1 -1
- package/dist/client/assets/{TrendUp01-BQO_JaWi.js → TrendUp01-CkQRyFqR.js} +1 -1
- package/dist/client/assets/{Upload01-k3Mh0fZU.js → Upload01-CT3iaHSz.js} +1 -1
- package/dist/client/assets/{User01-m6vclzYC.js → User01-BglZeniX.js} +1 -1
- package/dist/client/assets/{UserSquare-1p4hY8NI.js → UserSquare-DL3KTpBL.js} +1 -1
- package/dist/client/assets/{Users01-CWeSTta9.js → Users01-Buun0zNp.js} +1 -1
- package/dist/client/assets/{Users03-a8f_wZmP.js → Users03-DgmaEyq8.js} +1 -1
- package/dist/client/assets/{X-IBBjQPfk.js → X-DJfLQFHU.js} +1 -1
- package/dist/client/assets/{XCircle-3TmYYaVT.js → XCircle-DNZo1wMC.js} +1 -1
- package/dist/client/assets/{XClose-BO1_8YHD.js → XClose-DAnWPDLK.js} +1 -1
- package/dist/client/assets/{YAxis-DrM-OWWa.js → YAxis-BtJ5-e7i.js} +1 -1
- package/dist/client/assets/{Zap-BUA1_Jut.js → Zap-DK7Z5ibk.js} +1 -1
- package/dist/client/assets/{ZapSquare-8U0SgWLp.js → ZapSquare-C42T2ldz.js} +1 -1
- package/dist/client/assets/{access-gate-D3zAqPzH.js → access-gate-CCvD5q4j.js} +1 -1
- package/dist/client/assets/{agent-icon-vjhOL9u6.js → agent-icon-Q66Zrljx.js} +1 -1
- package/dist/client/assets/{agents-list-DJeAJ_3a.js → agents-list-C3A0UlbD.js} +1 -1
- package/dist/client/assets/{ai-providers-DmqZvdDR.js → ai-providers-BjNnUkCo.js} +1 -1
- package/dist/client/assets/{alert-DSZ984JY.js → alert-cJwP97Bh.js} +1 -1
- package/dist/client/assets/{alert-dialog-BBUALe3i.js → alert-dialog-CCptnlV9.js} +1 -1
- package/dist/client/assets/{api-keys-DEdlM0o6.js → api-keys-DCnprPO4.js} +1 -1
- package/dist/client/assets/{app-editor-DGG6hIQW.js → app-editor-DdlKDiXt.js} +1 -1
- package/dist/client/assets/{auth-CS2cT5wl.js → auth-CCl-LBmC.js} +1 -1
- package/dist/client/assets/{auth-catchall-Bs5rDKB8.js → auth-catchall-CZ9X1JGT.js} +1 -1
- package/dist/client/assets/{auth-entry-B7mR5g8T.js → auth-entry-_FFohrbS.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CxqUA4_R.js → auth-split-layout-0Z8ldOYx.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CB658Lpc.js → authenticate-and-persist-oauth-DUDs0rEz.js} +1 -1
- package/dist/client/assets/{automation-list-row-DqAvOKpL.js → automation-list-row-DHxLdqTv.js} +1 -1
- package/dist/client/assets/{automation-runs-C7VPpqIt.js → automation-runs-medyJgNZ.js} +1 -1
- package/dist/client/assets/automations-BeIdwGF9.js +1 -0
- package/dist/client/assets/{avatar-md-XNPuR.js → avatar-hgOVW8B7.js} +1 -1
- package/dist/client/assets/{badge-BR2WgVsV.js → badge-BiCnTE6z.js} +1 -1
- package/dist/client/assets/{block-document-yl-Al_kf.js → block-document-DUuvpTvC.js} +1 -1
- package/dist/client/assets/{buckets-D7AznYZl.js → buckets-ubmP3aFG.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-Aw08g8MP.js → bulk-category-panel-DyZd6EHV.js} +1 -1
- package/dist/client/assets/{capability-load-error-BornUXv-.js → capability-load-error-FwRqvbIP.js} +1 -1
- package/dist/client/assets/{card-IdHCmi8B.js → card-C8XfEmnr.js} +1 -1
- package/dist/client/assets/{cards-B5pz2XNy.js → cards-CYCJ_n9p.js} +1 -1
- package/dist/client/assets/{category-editor-BLU7MJ_a.js → category-editor-ChoGejDE.js} +1 -1
- package/dist/client/assets/{chart-Dw43HBj2.js → chart-422gnRQD.js} +1 -1
- package/dist/client/assets/{chat-context-Df1gS1sI.js → chat-context-Dg0-jXVx.js} +1 -1
- package/dist/client/assets/{checkbox-CNnFytxt.js → checkbox-Cs53SznW.js} +1 -1
- package/dist/client/assets/{choose-editor-BGNNx0rr.js → choose-editor-DgVbr8LY.js} +1 -1
- package/dist/client/assets/{cli-auth-success-B37XVEcm.js → cli-auth-success-CxjaBTGg.js} +1 -1
- package/dist/client/assets/{collection-detail-CdVhmMD8.js → collection-detail-C3EB4ss2.js} +1 -1
- package/dist/client/assets/{collection-display-button-DpaZ3d0j.js → collection-display-button-q3taetFZ.js} +1 -1
- package/dist/client/assets/{collection-search-BQLruUQ4.js → collection-search-Ykt_3loj.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-C12GS9C3.js → collection-table-wrapper-D1Z9eDPb.js} +1 -1
- package/dist/client/assets/{collection-tabs-Dfa_vQOq.js → collection-tabs-CzKAlBmA.js} +1 -1
- package/dist/client/assets/{command-CXX8Roxa.js → command-BMi7yiXc.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-BOD-_HLG.js → commerce-onboarding-Cp0dRKJS.js} +1 -1
- package/dist/client/assets/{connect-VrBLOQz7.js → connect-D8AK-jwE.js} +1 -1
- package/dist/client/assets/{connection-D6NWrsFQ.js → connection-2vnli2Gx.js} +1 -1
- package/dist/client/assets/{connection-card-2s-BDhzN.js → connection-card-Bws5SFPb.js} +1 -1
- package/dist/client/assets/{connection-detail-rH7mQov2.js → connection-detail-BDwKlBLY.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BahPv0zc.js → connection-form-helpers-C1jXEbta.js} +1 -1
- package/dist/client/assets/{connections-X1ffPxSi.js → connections-CjS2RH-i.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-BbcmZgTF.js → decopilot-sse-pool-CwQeTGKx.js} +1 -1
- package/dist/client/assets/{dialog-B0pGkX2q.js → dialog-D3rc6x5M.js} +1 -1
- package/dist/client/assets/{domain-settings-CBmnQIJo.js → domain-settings-Bf73VhTN.js} +1 -1
- package/dist/client/assets/{drawer-9chetton.js → drawer-RSL7VAiK.js} +1 -1
- package/dist/client/assets/{dropdown-menu-Dhjx8BUz.js → dropdown-menu-DQNCZNoM.js} +1 -1
- package/dist/client/assets/{empty-state-BHXPcV6D.js → empty-state-BqxTD27D.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DyM1tiNg.js → extract-connection-data-DCpKJJzM.js} +1 -1
- package/dist/client/assets/{file-explorer-CGdZE7j0.js → file-explorer-CkbhIbn3.js} +1 -1
- package/dist/client/assets/{file-type-icon-jL53noJP.js → file-type-icon-C7f0Hpyn.js} +1 -1
- package/dist/client/assets/{form-Cb2ftegM.js → form-DQ2RIPDB.js} +1 -1
- package/dist/client/assets/{general-DdO_16ZO.js → general-BWcaa6qO.js} +1 -1
- package/dist/client/assets/{github-repo-picker-B0itW_sn.js → github-repo-picker-CDXiX2FC.js} +1 -1
- package/dist/client/assets/{hooks-BasSX9U3.js → hooks-AiAKCTIq.js} +1 -1
- package/dist/client/assets/{index-BnYSClvU.js → index-B2HVnv-f.js} +35 -35
- package/dist/client/assets/{index-mAaX9S9j.js → index-BOYXOUKl.js} +1 -1
- package/dist/client/assets/{index-BGLk9CX0.js → index-BzT1azSp.js} +1 -1
- package/dist/client/assets/{index-DBsyf30G.js → index-D0aYeBhw.js} +1 -1
- package/dist/client/assets/{index-BVEEZvKv.js → index-D2Jaajad.js} +1 -1
- package/dist/client/assets/{index-ZiQvvnOE.js → index-D4FLgBQm.js} +1 -1
- package/dist/client/assets/{index-CJWr9N0v.js → index-DPi3gRLL.js} +1 -1
- package/dist/client/assets/{index-CkEYKazi.js → index-Y5VLkqrI.js} +1 -1
- package/dist/client/assets/{index-DTCr2n-a.js → index-e-HlArl7.js} +3 -3
- package/dist/client/assets/{index-redirect-D24SfTyt.js → index-redirect-CTAwTP3i.js} +1 -1
- package/dist/client/assets/{index-BHhk6DR8.js → index-wrQOPqpA.js} +1 -1
- package/dist/client/assets/{infra-billing-DCiyfS8M.js → infra-billing-D1ZkqHL4.js} +1 -1
- package/dist/client/assets/{input-7l72-E74.js → input-EUwdmss6.js} +1 -1
- package/dist/client/assets/{integration-icon-9hdQMmio.js → integration-icon-D0aDMtN1.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-CEZXV_r9.js → invite-member-dialog-bnVOmPt7.js} +1 -1
- package/dist/client/assets/{label-Di7XD03t.js → label-CvaF3xfn.js} +1 -1
- package/dist/client/assets/{layout-HxxUtI_4.js → layout-CUhrhTNj.js} +1 -1
- package/dist/client/assets/{login-B01_8Sdh.js → login-SyaeIEBR.js} +1 -1
- package/dist/client/assets/{mcp-oauth-_naDcGdv.js → mcp-oauth-DuJ3tDwD.js} +1 -1
- package/dist/client/assets/{members-C7m7k6Aj.js → members-0ZlwM_mA.js} +1 -1
- package/dist/client/assets/{monaco-editor-DgD9evL7.js → monaco-editor-e2l0CUs1.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B0BLM1my.js → monitoring-stats-row-CKNbDhHb.js} +1 -1
- package/dist/client/assets/{multi-select-BLNYHoGy.js → multi-select-BCF61elV.js} +1 -1
- package/dist/client/assets/{oauth-callback-BqBCpIME.js → oauth-callback-DvbOBLpS.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DA5Wl5SM.js → oauth-callback-ai-provider-Uno77qFY.js} +1 -1
- package/dist/client/assets/{onboarding-px_II1bW.js → onboarding-B0_WNiV9.js} +1 -1
- package/dist/client/assets/{org-layout-DFED5zNf.js → org-layout-DdpAju9C.js} +1 -1
- package/dist/client/assets/{organization-choice-IrwqMfm_.js → organization-choice-DgzBxRtQ.js} +1 -1
- package/dist/client/assets/{orgs-Ba0nF6qS.js → orgs-BjL0FBi3.js} +1 -1
- package/dist/client/assets/{page-seo-form-Cm5Qv5ak.js → page-seo-form-BzvTf5QE.js} +1 -1
- package/dist/client/assets/{popover-CfGL7saO.js → popover-ynfCVN7o.js} +1 -1
- package/dist/client/assets/{post-editor-yBvya3yr.js → post-editor-BQEQVp8S.js} +1 -1
- package/dist/client/assets/{primitives-DIc8lbRG.js → primitives-DvXoTET4.js} +1 -1
- package/dist/client/assets/{profile-ZEjk6oqp.js → profile-COZj0MDc.js} +1 -1
- package/dist/client/assets/{project-app-view-Ba53vvVz.js → project-app-view-DhFK02YB.js} +1 -1
- package/dist/client/assets/record-editor-B_HRfqn-.js +1 -0
- package/dist/client/assets/{redirect-editor-C-iqitv1.js → redirect-editor-BF-oiS9Q.js} +1 -1
- package/dist/client/assets/registry-CjFKH4sF.js +2 -0
- package/dist/client/assets/{registry-layout-t9OiEUok.js → registry-layout-2CaMmLet.js} +1 -1
- package/dist/client/assets/{reports-B-JkBTXv.js → reports-BG5AaOz2.js} +1 -1
- package/dist/client/assets/{require-capability-BganaMDA.js → require-capability-CpVfL7om.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DgjkQLI6.js → required-auth-layout-DuIAhJyt.js} +1 -1
- package/dist/client/assets/{reset-password-C_dZ8Eqo.js → reset-password-C5pDLds0.js} +1 -1
- package/dist/client/assets/{roles-CPT4_Zim.js → roles-BuVAGkyB.js} +1 -1
- package/dist/client/assets/{search-input-DsWKOK9t.js → search-input-DqigQLDm.js} +1 -1
- package/dist/client/assets/{secrets-Cm0Tre0I.js → secrets-u4_ktuly.js} +1 -1
- package/dist/client/assets/{sections-editor-hTI5vt6I.js → sections-editor-Vgr2Ws7L.js} +1 -1
- package/dist/client/assets/{select-BRuvjhJw.js → select-D3LJ50sD.js} +1 -1
- package/dist/client/assets/{select-model-Dqz5FPx4.js → select-model-B87iLybE.js} +1 -1
- package/dist/client/assets/{self-tool-result-mEKHKLZ8.js → self-tool-result-BObH2up4.js} +1 -1
- package/dist/client/assets/{seo-editor-DaIHsMkg.js → seo-editor-CkI-dhll.js} +1 -1
- package/dist/client/assets/{settings-layout-Hxpekzl7.js → settings-layout-BR0H5wp9.js} +1 -1
- package/dist/client/assets/{settings-section-BS9eoASN.js → settings-section-DG8vrKk4.js} +1 -1
- package/dist/client/assets/{settings-subnav-D-pYtn7v.js → settings-subnav-Cwpr4nZ-.js} +1 -1
- package/dist/client/assets/{shell-controls-BhWnmqdm.js → shell-controls-CMet-TtV.js} +1 -1
- package/dist/client/assets/{shell-layout-B7KEX529.js → shell-layout-B6_9KOEu.js} +1 -1
- package/dist/client/assets/{sidebar-Z1Ar8Iq1.js → sidebar-D50ZOM1t.js} +1 -1
- package/dist/client/assets/{skeleton-BvZK-LJN.js → skeleton-B_pbEkMV.js} +1 -1
- package/dist/client/assets/{spinner-glqojFDA.js → spinner-DBUIbXt6.js} +1 -1
- package/dist/client/assets/{sso-CZzvOl_H.js → sso-B8dufb-T.js} +1 -1
- package/dist/client/assets/{store-4VNI89Jx.js → store-Bi8zTrpu.js} +1 -1
- package/dist/client/assets/store-registry-CCvwKA9F.js +2 -0
- package/dist/client/assets/{studio-tools-BBCHIrbu.js → studio-tools-C5uGY8In.js} +1 -1
- package/dist/client/assets/{switch-BAlslK2J.js → switch-C54XjcZ1.js} +1 -1
- package/dist/client/assets/{synced-repos-BYuo6K5k.js → synced-repos-DpVTmUyk.js} +1 -1
- package/dist/client/assets/{tab-id-CYxMrTRp.js → tab-id-DvoE2hSJ.js} +1 -1
- package/dist/client/assets/{table-_DZMZF7n.js → table-yjMOIj3E.js} +1 -1
- package/dist/client/assets/{tabs-DeNiwmVV.js → tabs-8Xa6m8T2.js} +1 -1
- package/dist/client/assets/{tasks-BohHzFrx.js → tasks-BAS9CkjE.js} +1 -1
- package/dist/client/assets/{textarea-DkNj8yms.js → textarea-ClyfUE4B.js} +1 -1
- package/dist/client/assets/{toggle-group-Do3gb8uy.js → toggle-group-S5k5iiiZ.js} +1 -1
- package/dist/client/assets/{toolbar-DEkBOfzd.js → toolbar-Bamzaxg7.js} +1 -1
- package/dist/client/assets/{tooltip-Dt_WUeQs.js → tooltip-CFKYGAPq.js} +1 -1
- package/dist/client/assets/{track-C3SQxOl4.js → track-CJ5IF5B4.js} +1 -1
- package/dist/client/assets/{types-Dh-L4V2P.js → types-Dd2Eu9QR.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DwZngUHl.js → use-ai-providers-vcANgpkk.js} +1 -1
- package/dist/client/assets/{use-api-keys-DrlFtOsW.js → use-api-keys-CMh0SJr5.js} +1 -1
- package/dist/client/assets/{use-automations-BqX_0zG2.js → use-automations-O0ITCOBe.js} +1 -1
- package/dist/client/assets/{use-autosave-P4ije4un.js → use-autosave-ClZDDUm4.js} +1 -1
- package/dist/client/assets/{use-capability-U_kO9pjO.js → use-capability-C4vk_pXM.js} +1 -1
- package/dist/client/assets/{use-clock-tick-yZZNkqhy.js → use-clock-tick-B5Ph9zJd.js} +1 -1
- package/dist/client/assets/{use-commerce-diagnostic-DL4B4X1w.js → use-commerce-diagnostic-ByoTOnEj.js} +1 -1
- package/dist/client/assets/{use-connection-D7--TeDa.js → use-connection-zK3sWE4j.js} +1 -1
- package/dist/client/assets/{use-copy-BGwAE5Xe.js → use-copy-B-tJtQfq.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B5mSvVFn.js → use-create-virtual-mcp-BaYPWZBh.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BDvfPMkV.js → use-debounced-autosave-8-tumWjn.js} +1 -1
- package/dist/client/assets/{use-debounced-value-UZPGD-zb.js → use-debounced-value-BiarEox3.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-8dmobXlE.js → use-decopilot-events-DxrRVM7U.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CP8NWsvL.js → use-delete-connection-zuTOnKxP.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-tOuWllrn.js → use-deployment-admin-qJZu-ZY3.js} +1 -1
- package/dist/client/assets/{use-file-configs-CgH1G4FU.js → use-file-configs-CEwQLw7U.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Dzm35RNS.js → use-infinite-scroll-DqNTnTvl.js} +1 -1
- package/dist/client/assets/{use-join-requests-CW8P-2hM.js → use-join-requests-BhMk_Ufo.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DFoPNyXR.js → use-mcp-client-DJ8yAWFp.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-ByMlhxuh.js → use-mcp-tools-CXy-P5Tl.js} +1 -1
- package/dist/client/assets/{use-members-DpAa0K8W.js → use-members-q85b6z-N.js} +1 -1
- package/dist/client/assets/{use-mobile-DxjazlC8.js → use-mobile-kh6sDIhF.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CX93JJ-W.js → use-navigate-to-agent-xJOEaw4i.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CiGZ-xlx.js → use-org-auth-client-CyZZpyd8.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CugnYvLM.js → use-org-repo-syncs-BuAvAZbY.js} +1 -1
- package/dist/client/assets/{use-org-sso-CHwTj_pK.js → use-org-sso-Xxp0pXfX.js} +1 -1
- package/dist/client/assets/{use-organization-roles-ChU_RgEA.js → use-organization-roles-BUCzDp9i.js} +1 -1
- package/dist/client/assets/{use-organization-settings-kcm-WdX5.js → use-organization-settings-CHYbFssK.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BvzfOtMr.js → use-registry-connections-DEUwKXSV.js} +1 -1
- package/dist/client/assets/{use-secrets-CAbcEA8g.js → use-secrets-tLzw-DHj.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CYcMtPj5.js → use-section-preview-base-8RN3bKU2.js} +1 -1
- package/dist/client/assets/{use-settings-tabs-qdqtthwY.js → use-settings-tabs-BP2gZ4Qq.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BWK3t0nt.js → use-status-sounds-pbzb315Z.js} +1 -1
- package/dist/client/assets/{use-tags-Bcd_6z1e.js → use-tags-c6H-VSmZ.js} +1 -1
- package/dist/client/assets/{use-view-mode-cgBHRzHt.js → use-view-mode-2L5HxsTs.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BbdjNQ1e.js → use-virtual-mcp-CUPkaNrs.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BPdBB-yk.js +1 -0
- package/dist/client/assets/{useRouterState-B0WmwZ8z.js → useRouterState-BNHzg-pS.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DmcwFSet.js +1 -0
- package/dist/client/assets/{users-CAr233Ns.js → users-C18cwU7q.js} +1 -1
- package/dist/client/assets/{variant-calendar--Tz37I5S.js → variant-calendar-9pI6khYW.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-ChvR0gk0.js → view-mode-toggle-Cf5fMedV.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/automations-QJpsEj6l.js +0 -1
- package/dist/client/assets/record-editor-B2rcuwQk.js +0 -1
- package/dist/client/assets/registry-BShVgR7c.js +0 -2
- package/dist/client/assets/store-registry-5DQx43Zm.js +0 -2
- package/dist/client/assets/useInfiniteQuery-CMi-ILZI.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Cw5NEgMj.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as i,aG as C,aK as y,aJ as B,aM as T,bI as M,bH as H,aI as z,c as A,m as g}from"./index-
|
|
1
|
+
import{r as c,j as i,aG as C,aK as y,aJ as B,aM as T,bI as M,bH as H,aI as z,c as A,m as g}from"./index-e-HlArl7.js";var m="Switch",[U]=z(m),[q,L]=U(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:s,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[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:a,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:T(r.onClick,b=>{N(I=>!I),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:s,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...s}=r,a=L(P,t);return i.jsx(C.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:s=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(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:s});h.call(l,t),l.dispatchEvent(v)}},[u,t,s]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:d,style:{...a.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(r){return r?"checked":"unchecked"}var $=E,D=R;function G(r){const e=A.c(9);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=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]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(D,{"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]!==s||e[7]!==a?(o=i.jsx($,{"data-slot":"switch",className:a,...s,children:n}),e[6]=s,e[7]=a,e[8]=o):o=e[8],o}export{G as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as te,j as s,b as ge,r as ce,B as ee,m as je,t as ae}from"./index-DTCr2n-a.js";import{s as xe}from"./Plus-Cf4b1bNp.js";import{c as be,d as Re,b as Se,f as ve,g as Ne,e as De,a as _e,A as Ce}from"./alert-dialog-BBUALe3i.js";import{b as Pe,h as Ae,a as ke,c as we,d as Oe,e as ze}from"./dialog-B0pGkX2q.js";import{I as Ee}from"./input-7l72-E74.js";import{S as Ie}from"./skeleton-BvZK-LJN.js";import{P as ue}from"./index-mAaX9S9j.js";import{c as $e}from"./settings-section-BS9eoASN.js";import{G as he,a as Fe}from"./github-repo-picker-B0itW_sn.js";import{u as Te,b as He,c as Be}from"./use-org-repo-syncs-CugnYvLM.js";import{t as Ge}from"./cards-B5pz2XNy.js";import{S as qe}from"./settings-subnav-D-pYtn7v.js";import{R as Le}from"./require-capability-BganaMDA.js";import"./X-IBBjQPfk.js";import"./sidebar-Z1Ar8Iq1.js";import"./LayoutLeft-BKrrf1xY.js";import"./use-mobile-DxjazlC8.js";import"./tooltip-Dt_WUeQs.js";import"./card-IdHCmi8B.js";import"./ArrowUpRight-Dv9QvAW5.js";import"./collection-search-BQLruUQ4.js";import"./SearchMd-B1dsuEY7.js";import"./use-debounced-value-UZPGD-zb.js";import"./use-connection-D7--TeDa.js";import"./use-mcp-client-DFoPNyXR.js";import"./constants-BSYv1IkQ.js";import"./auth-CS2cT5wl.js";import"./authenticate-and-persist-oauth-CB658Lpc.js";import"./mcp-oauth-_naDcGdv.js";import"./ArrowLeft-D0sSJGyh.js";import"./LinkExternal01-lwDudDKU.js";import"./LockUnlocked01-ChTbbG9p.js";import"./use-mcp-tools-ByMlhxuh.js";import"./extract-connection-data-DyM1tiNg.js";import"./metadata-dUsYcpuu.js";import"./use-navigate-to-agent-CX93JJ-W.js";import"./use-virtual-mcp-BbdjNQ1e.js";import"./hooks-BasSX9U3.js";import"./decopilot-sse-pool-BbcmZgTF.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./reusable-new-chat-CouMjkYR.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./studio-tools-BBCHIrbu.js";import"./DotsVertical-B9Mg1LjT.js";import"./Download01-CKTo0VS3.js";import"./Share07-KO4nWaTW.js";import"./Globe01-AGteY5p8.js";import"./Key01-Du0R52Fs.js";import"./Palette-yngNVQ4n.js";import"./Trash01-C4UDDTjr.js";import"./Zap-BUA1_Jut.js";import"./dropdown-menu-Dhjx8BUz.js";import"./Check-ErA_74IV.js";import"./ChevronRight-Cf-ty0tK.js";import"./file-type-icon-jL53noJP.js";import"./Eye-C-IIbq0b.js";import"./useRouterState-B0WmwZ8z.js";import"./use-settings-tabs-qdqtthwY.js";import"./use-capability-U_kO9pjO.js";import"./access-gate-D3zAqPzH.js";import"./capability-load-error-BornUXv-.js";function Ve(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Je(e,t){return e.lastSyncError?{label:e.lastSyncError,error:!0}:e.lastSyncedAt?{label:t("library.syncedRepos.syncedAgo",{ago:Ge(e.lastSyncedAt)}),error:!1}:{label:t("library.syncedRepos.waitingFirstSync"),error:!1}}function Ke(e){const t=te.c(32),{config:l,onRemove:i}=e,c=ge();let u;t[0]!==l||t[1]!==c?(u=Je(l,c),t[0]=l,t[1]=c,t[2]=u):u=t[2];const p=u;let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(he,{size:16,className:"text-muted-foreground"})}),t[3]=o):o=t[3];let a;t[4]!==l.repoName||t[5]!==l.repoOwner?(a=s.jsxs("span",{className:"font-medium text-sm truncate",children:[l.repoOwner,"/",l.repoName]}),t[4]=l.repoName,t[5]=l.repoOwner,t[6]=a):a=t[6];let n;t[7]!==l.ref?(n=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",l.ref]}),t[7]=l.ref,t[8]=n):n=t[8];let g;t[9]!==a||t[10]!==n?(g=s.jsxs("div",{className:"flex items-center gap-2",children:[a,n]}),t[9]=a,t[10]=n,t[11]=g):g=t[11];const m=p.error?"text-destructive":"text-muted-foreground";let d;t[12]!==m?(d=je("text-xs mt-0.5 truncate",m),t[12]=m,t[13]=d):d=t[13];let f;t[14]!==l.volume||t[15]!==c?(f=c("settings.syncedRepos.rowSubtitle",{volume:l.volume}),t[14]=l.volume,t[15]=c,t[16]=f):f=t[16];let y;t[17]!==p.label||t[18]!==d||t[19]!==f?(y=s.jsxs("p",{className:d,children:[f," ·"," ",p.label]}),t[17]=p.label,t[18]=d,t[19]=f,t[20]=y):y=t[20];let x;t[21]!==g||t[22]!==y?(x=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[o,s.jsxs("div",{className:"min-w-0",children:[g,y]})]}),t[21]=g,t[22]=y,t[23]=x):x=t[23];let j;t[24]!==c?(j=c("settings.syncedRepos.remove"),t[24]=c,t[25]=j):j=t[25];let h;t[26]!==i||t[27]!==j?(h=s.jsx(ee,{variant:"outline",size:"sm",onClick:i,children:j}),t[26]=i,t[27]=j,t[28]=h):h=t[28];let b;return t[29]!==x||t[30]!==h?(b=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[x,h]}),t[29]=x,t[30]=h,t[31]=b):b=t[31],b}function Me(e){const t=te.c(21),{onAdd:l}=e,i=ge();let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(he,{size:20,className:"text-muted-foreground"})}),t[0]=c):c=t[0];let u;t[1]!==i?(u=i("settings.syncedRepos.emptyTitle"),t[1]=i,t[2]=u):u=t[2];let p;t[3]!==u?(p=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=p):p=t[4];let o;t[5]!==i?(o=i("settings.syncedRepos.emptyDescription"),t[5]=i,t[6]=o):o=t[6];let a;t[7]!==o?(a=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:o}),t[7]=o,t[8]=a):a=t[8];let n;t[9]!==p||t[10]!==a?(n=s.jsxs("div",{children:[p,a]}),t[9]=p,t[10]=a,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 m;t[13]!==i?(m=i("settings.syncedRepos.addRepo"),t[13]=i,t[14]=m):m=t[14];let d;t[15]!==l||t[16]!==m?(d=s.jsxs(ee,{onClick:l,size:"sm",className:"mt-2",children:[g,m]}),t[15]=l,t[16]=m,t[17]=d):d=t[17];let f;return t[18]!==n||t[19]!==d?(f=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:[c,n,d]}),t[18]=n,t[19]=d,t[20]=f):f=t[20],f}function Qe(){const e=te.c(107),t=ge(),l=Te(),i=He(),c=Be(),[u,p]=ce.useState(!1),[o,a]=ce.useState(null),[n,g]=ce.useState(""),[m,d]=ce.useState(null);let f;e[0]!==i||e[1]!==o||e[2]!==t||e[3]!==n?(f=function(){!o||!n.trim()||i.mutate({connectionId:o.connectionId,volume:n.trim()},{onSuccess:R=>{a(null),ae.success(t("settings.syncedRepos.created",{volume:R.volume}))},onError:R=>{ae.error(R instanceof Error?R.message:t("settings.syncedRepos.failed"))}})},e[0]=i,e[1]=o,e[2]=t,e[3]=n,e[4]=f):f=e[4];const y=f;let x;e[5]!==m||e[6]!==c||e[7]!==t?(x=function(){m&&c.mutate(m.id,{onSuccess:()=>ae.success(t("settings.syncedRepos.removed")),onError:R=>ae.error(R instanceof Error?R.message:t("settings.syncedRepos.failed")),onSettled:()=>d(null)})},e[5]=m,e[6]=c,e[7]=t,e[8]=x):x=e[8];const j=x;if(l.isPending){let r;return e[9]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ie,{className:"h-32 w-full"}),e[9]=r):r=e[9],r}let h;e[10]!==l.data?(h=l.data??[],e[10]=l.data,e[11]=h):h=e[11];const b=h;let S;e[12]!==t?(S=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=S):S=e[13];let v;e[14]!==S?(v=s.jsx("p",{className:"text-sm text-muted-foreground",children:S}),e[14]=S,e[15]=v):v=e[15];let N;e[16]!==b||e[17]!==t?(N=b.length===0?s.jsx(Me,{onAdd:()=>p(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(ee,{onClick:()=>p(!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:b.map(r=>s.jsx(Ke,{config:r,onRemove:()=>d(r)},r.id))})]}),e[16]=b,e[17]=t,e[18]=N):N=e[18];let D;e[19]!==t?(D=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=D):D=e[20];let se;e[21]===Symbol.for("react.memo_cache_sentinel")?(se=r=>{p(!1),a(r),g(Ve(r.repo.name))},e[21]=se):se=e[21];let _;e[22]!==u||e[23]!==D?(_=s.jsx(Fe,{mode:"connection",open:u,onOpenChange:p,title:D,onImportComplete:se}),e[22]=u,e[23]=D,e[24]=_):_=e[24];const me=o!==null;let ie;e[25]===Symbol.for("react.memo_cache_sentinel")?(ie=r=>{r||a(null)},e[25]=ie):ie=e[25];let C;e[26]!==t?(C=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=C):C=e[27];let P;e[28]!==C?(P=s.jsx(Pe,{children:C}),e[28]=C,e[29]=P):P=e[29];const de=o?`${o.repo.owner}/${o.repo.name}`:"";let A;e[30]!==t||e[31]!==de?(A=t("settings.syncedRepos.nameDialogDescription",{repo:de}),e[30]=t,e[31]=de,e[32]=A):A=e[32];let k;e[33]!==A?(k=s.jsx(Ae,{children:A}),e[33]=A,e[34]=k):k=e[34];let w;e[35]!==P||e[36]!==k?(w=s.jsxs(ke,{children:[P,k]}),e[35]=P,e[36]=k,e[37]=w):w=e[37];let le;e[38]===Symbol.for("react.memo_cache_sentinel")?(le=r=>g(r.target.value),e[38]=le):le=e[38];let O;e[39]!==t?(O=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=O):O=e[40];let z;e[41]!==O||e[42]!==n?(z=s.jsx(Ee,{value:n,onChange:le,placeholder:O,autoFocus:!0}),e[41]=O,e[42]=n,e[43]=z):z=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>a(null),e[44]=ne):ne=e[44];const ye=i.isPending;let E;e[45]!==t?(E=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=E):E=e[46];let I;e[47]!==i.isPending||e[48]!==E?(I=s.jsx(ee,{variant:"outline",onClick:ne,disabled:ye,children:E}),e[47]=i.isPending,e[48]=E,e[49]=I):I=e[49];let $;e[50]!==i.isPending||e[51]!==n?($=!n.trim()||i.isPending,e[50]=i.isPending,e[51]=n,e[52]=$):$=e[52];let F;e[53]!==i.isPending||e[54]!==t?(F=i.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=i.isPending,e[54]=t,e[55]=F):F=e[55];let T;e[56]!==y||e[57]!==$||e[58]!==F?(T=s.jsx(ee,{disabled:$,onClick:y,children:F}),e[56]=y,e[57]=$,e[58]=F,e[59]=T):T=e[59];let H;e[60]!==I||e[61]!==T?(H=s.jsxs(we,{children:[I,T]}),e[60]=I,e[61]=T,e[62]=H):H=e[62];let B;e[63]!==w||e[64]!==z||e[65]!==H?(B=s.jsxs(Oe,{className:"sm:max-w-sm",children:[w,z,H]}),e[63]=w,e[64]=z,e[65]=H,e[66]=B):B=e[66];let G;e[67]!==B||e[68]!==me?(G=s.jsx(ze,{open:me,onOpenChange:ie,children:B}),e[67]=B,e[68]=me,e[69]=G):G=e[69];const pe=m!==null;let oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(oe=r=>{r||d(null)},e[70]=oe):oe=e[70];const fe=m?.volume??"";let q;e[71]!==t||e[72]!==fe?(q=t("settings.syncedRepos.removeTitle",{volume:fe}),e[71]=t,e[72]=fe,e[73]=q):q=e[73];let L;e[74]!==q?(L=s.jsx(be,{children:q}),e[74]=q,e[75]=L):L=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(Re,{children:V}),e[78]=V,e[79]=J):J=e[79];let K;e[80]!==L||e[81]!==J?(K=s.jsxs(Se,{children:[L,J]}),e[80]=L,e[81]=J,e[82]=K):K=e[82];let M;e[83]!==t?(M=t("settings.syncedRepos.cancel"),e[83]=t,e[84]=M):M=e[84];let Q;e[85]!==M?(Q=s.jsx(ve,{children:M}),e[85]=M,e[86]=Q):Q=e[86];let U;e[87]!==t?(U=t("settings.syncedRepos.remove"),e[87]=t,e[88]=U):U=e[88];let W;e[89]!==j||e[90]!==U?(W=s.jsx(Ne,{onClick:j,children:U}),e[89]=j,e[90]=U,e[91]=W):W=e[91];let X;e[92]!==Q||e[93]!==W?(X=s.jsxs(De,{children:[Q,W]}),e[92]=Q,e[93]=W,e[94]=X):X=e[94];let Y;e[95]!==K||e[96]!==X?(Y=s.jsxs(_e,{children:[K,X]}),e[95]=K,e[96]=X,e[97]=Y):Y=e[97];let Z;e[98]!==pe||e[99]!==Y?(Z=s.jsx(Ce,{open:pe,onOpenChange:oe,children:Y}),e[98]=pe,e[99]=Y,e[100]=Z):Z=e[100];let re;return e[101]!==G||e[102]!==v||e[103]!==Z||e[104]!==N||e[105]!==_?(re=s.jsxs(s.Fragment,{children:[v,N,_,G,Z]}),e[101]=G,e[102]=v,e[103]=Z,e[104]=N,e[105]=_,e[106]=re):re=e[106],re}function Ue(){const e=te.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ue,{children:s.jsx(ue.Content,{children:s.jsx(ue.Body,{children:s.jsxs($e,{children:[s.jsx(qe,{group:"storage"}),s.jsx(Qe,{})]})})})}),e[0]=t):t=e[0],t}function ls(){const e=te.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{ls as default};
|
|
1
|
+
import{c as te,j as s,b as ge,r as ce,B as ee,m as je,t as ae}from"./index-e-HlArl7.js";import{s as xe}from"./Plus-BtQgfz9k.js";import{c as be,d as Re,b as Se,f as ve,g as Ne,e as De,a as _e,A as Ce}from"./alert-dialog-CCptnlV9.js";import{b as Pe,h as Ae,a as ke,c as we,d as Oe,e as ze}from"./dialog-D3rc6x5M.js";import{I as Ee}from"./input-EUwdmss6.js";import{S as Ie}from"./skeleton-B_pbEkMV.js";import{P as ue}from"./index-BOYXOUKl.js";import{c as $e}from"./settings-section-DG8vrKk4.js";import{G as he,a as Fe}from"./github-repo-picker-CDXiX2FC.js";import{u as Te,b as He,c as Be}from"./use-org-repo-syncs-BuAvAZbY.js";import{t as Ge}from"./cards-CYCJ_n9p.js";import{S as qe}from"./settings-subnav-Cwpr4nZ-.js";import{R as Le}from"./require-capability-CpVfL7om.js";import"./X-DJfLQFHU.js";import"./sidebar-D50ZOM1t.js";import"./LayoutLeft-D3cMXNIA.js";import"./use-mobile-kh6sDIhF.js";import"./tooltip-CFKYGAPq.js";import"./card-C8XfEmnr.js";import"./ArrowUpRight-BSQlyUKS.js";import"./collection-search-Ykt_3loj.js";import"./SearchMd-mO3LNgT6.js";import"./use-debounced-value-BiarEox3.js";import"./use-connection-zK3sWE4j.js";import"./use-mcp-client-DJ8yAWFp.js";import"./constants-BSYv1IkQ.js";import"./auth-CCl-LBmC.js";import"./authenticate-and-persist-oauth-DUDs0rEz.js";import"./mcp-oauth-DuJ3tDwD.js";import"./ArrowLeft-BSKzeNBq.js";import"./LinkExternal01-DNaWVi6_.js";import"./LockUnlocked01-CH6x5p58.js";import"./use-mcp-tools-CXy-P5Tl.js";import"./extract-connection-data-DCpKJJzM.js";import"./metadata-dUsYcpuu.js";import"./use-navigate-to-agent-xJOEaw4i.js";import"./use-virtual-mcp-CUPkaNrs.js";import"./hooks-AiAKCTIq.js";import"./decopilot-sse-pool-CwQeTGKx.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./reusable-new-chat-CouMjkYR.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./studio-tools-C5uGY8In.js";import"./DotsVertical-Dt688OKL.js";import"./Download01-jYnsDg5e.js";import"./Share07-CTkgIlDR.js";import"./Globe01-D8sOi5zP.js";import"./Key01-BOgtb0rG.js";import"./Palette-hZy7hNse.js";import"./Trash01-DuZYyBOX.js";import"./Zap-DK7Z5ibk.js";import"./dropdown-menu-DQNCZNoM.js";import"./Check-DBuakj7k.js";import"./ChevronRight-BBOI7Ss9.js";import"./file-type-icon-C7f0Hpyn.js";import"./Eye-CpQDrlSJ.js";import"./useRouterState-BNHzg-pS.js";import"./use-settings-tabs-BP2gZ4Qq.js";import"./use-capability-C4vk_pXM.js";import"./access-gate-CCvD5q4j.js";import"./capability-load-error-FwRqvbIP.js";function Ve(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Je(e,t){return e.lastSyncError?{label:e.lastSyncError,error:!0}:e.lastSyncedAt?{label:t("library.syncedRepos.syncedAgo",{ago:Ge(e.lastSyncedAt)}),error:!1}:{label:t("library.syncedRepos.waitingFirstSync"),error:!1}}function Ke(e){const t=te.c(32),{config:l,onRemove:i}=e,c=ge();let u;t[0]!==l||t[1]!==c?(u=Je(l,c),t[0]=l,t[1]=c,t[2]=u):u=t[2];const p=u;let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(he,{size:16,className:"text-muted-foreground"})}),t[3]=o):o=t[3];let a;t[4]!==l.repoName||t[5]!==l.repoOwner?(a=s.jsxs("span",{className:"font-medium text-sm truncate",children:[l.repoOwner,"/",l.repoName]}),t[4]=l.repoName,t[5]=l.repoOwner,t[6]=a):a=t[6];let n;t[7]!==l.ref?(n=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",l.ref]}),t[7]=l.ref,t[8]=n):n=t[8];let g;t[9]!==a||t[10]!==n?(g=s.jsxs("div",{className:"flex items-center gap-2",children:[a,n]}),t[9]=a,t[10]=n,t[11]=g):g=t[11];const m=p.error?"text-destructive":"text-muted-foreground";let d;t[12]!==m?(d=je("text-xs mt-0.5 truncate",m),t[12]=m,t[13]=d):d=t[13];let f;t[14]!==l.volume||t[15]!==c?(f=c("settings.syncedRepos.rowSubtitle",{volume:l.volume}),t[14]=l.volume,t[15]=c,t[16]=f):f=t[16];let y;t[17]!==p.label||t[18]!==d||t[19]!==f?(y=s.jsxs("p",{className:d,children:[f," ·"," ",p.label]}),t[17]=p.label,t[18]=d,t[19]=f,t[20]=y):y=t[20];let x;t[21]!==g||t[22]!==y?(x=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[o,s.jsxs("div",{className:"min-w-0",children:[g,y]})]}),t[21]=g,t[22]=y,t[23]=x):x=t[23];let j;t[24]!==c?(j=c("settings.syncedRepos.remove"),t[24]=c,t[25]=j):j=t[25];let h;t[26]!==i||t[27]!==j?(h=s.jsx(ee,{variant:"outline",size:"sm",onClick:i,children:j}),t[26]=i,t[27]=j,t[28]=h):h=t[28];let b;return t[29]!==x||t[30]!==h?(b=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[x,h]}),t[29]=x,t[30]=h,t[31]=b):b=t[31],b}function Me(e){const t=te.c(21),{onAdd:l}=e,i=ge();let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(he,{size:20,className:"text-muted-foreground"})}),t[0]=c):c=t[0];let u;t[1]!==i?(u=i("settings.syncedRepos.emptyTitle"),t[1]=i,t[2]=u):u=t[2];let p;t[3]!==u?(p=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=p):p=t[4];let o;t[5]!==i?(o=i("settings.syncedRepos.emptyDescription"),t[5]=i,t[6]=o):o=t[6];let a;t[7]!==o?(a=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:o}),t[7]=o,t[8]=a):a=t[8];let n;t[9]!==p||t[10]!==a?(n=s.jsxs("div",{children:[p,a]}),t[9]=p,t[10]=a,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 m;t[13]!==i?(m=i("settings.syncedRepos.addRepo"),t[13]=i,t[14]=m):m=t[14];let d;t[15]!==l||t[16]!==m?(d=s.jsxs(ee,{onClick:l,size:"sm",className:"mt-2",children:[g,m]}),t[15]=l,t[16]=m,t[17]=d):d=t[17];let f;return t[18]!==n||t[19]!==d?(f=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:[c,n,d]}),t[18]=n,t[19]=d,t[20]=f):f=t[20],f}function Qe(){const e=te.c(107),t=ge(),l=Te(),i=He(),c=Be(),[u,p]=ce.useState(!1),[o,a]=ce.useState(null),[n,g]=ce.useState(""),[m,d]=ce.useState(null);let f;e[0]!==i||e[1]!==o||e[2]!==t||e[3]!==n?(f=function(){!o||!n.trim()||i.mutate({connectionId:o.connectionId,volume:n.trim()},{onSuccess:R=>{a(null),ae.success(t("settings.syncedRepos.created",{volume:R.volume}))},onError:R=>{ae.error(R instanceof Error?R.message:t("settings.syncedRepos.failed"))}})},e[0]=i,e[1]=o,e[2]=t,e[3]=n,e[4]=f):f=e[4];const y=f;let x;e[5]!==m||e[6]!==c||e[7]!==t?(x=function(){m&&c.mutate(m.id,{onSuccess:()=>ae.success(t("settings.syncedRepos.removed")),onError:R=>ae.error(R instanceof Error?R.message:t("settings.syncedRepos.failed")),onSettled:()=>d(null)})},e[5]=m,e[6]=c,e[7]=t,e[8]=x):x=e[8];const j=x;if(l.isPending){let r;return e[9]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ie,{className:"h-32 w-full"}),e[9]=r):r=e[9],r}let h;e[10]!==l.data?(h=l.data??[],e[10]=l.data,e[11]=h):h=e[11];const b=h;let S;e[12]!==t?(S=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=S):S=e[13];let v;e[14]!==S?(v=s.jsx("p",{className:"text-sm text-muted-foreground",children:S}),e[14]=S,e[15]=v):v=e[15];let N;e[16]!==b||e[17]!==t?(N=b.length===0?s.jsx(Me,{onAdd:()=>p(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(ee,{onClick:()=>p(!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:b.map(r=>s.jsx(Ke,{config:r,onRemove:()=>d(r)},r.id))})]}),e[16]=b,e[17]=t,e[18]=N):N=e[18];let D;e[19]!==t?(D=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=D):D=e[20];let se;e[21]===Symbol.for("react.memo_cache_sentinel")?(se=r=>{p(!1),a(r),g(Ve(r.repo.name))},e[21]=se):se=e[21];let _;e[22]!==u||e[23]!==D?(_=s.jsx(Fe,{mode:"connection",open:u,onOpenChange:p,title:D,onImportComplete:se}),e[22]=u,e[23]=D,e[24]=_):_=e[24];const me=o!==null;let ie;e[25]===Symbol.for("react.memo_cache_sentinel")?(ie=r=>{r||a(null)},e[25]=ie):ie=e[25];let C;e[26]!==t?(C=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=C):C=e[27];let P;e[28]!==C?(P=s.jsx(Pe,{children:C}),e[28]=C,e[29]=P):P=e[29];const de=o?`${o.repo.owner}/${o.repo.name}`:"";let A;e[30]!==t||e[31]!==de?(A=t("settings.syncedRepos.nameDialogDescription",{repo:de}),e[30]=t,e[31]=de,e[32]=A):A=e[32];let k;e[33]!==A?(k=s.jsx(Ae,{children:A}),e[33]=A,e[34]=k):k=e[34];let w;e[35]!==P||e[36]!==k?(w=s.jsxs(ke,{children:[P,k]}),e[35]=P,e[36]=k,e[37]=w):w=e[37];let le;e[38]===Symbol.for("react.memo_cache_sentinel")?(le=r=>g(r.target.value),e[38]=le):le=e[38];let O;e[39]!==t?(O=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=O):O=e[40];let z;e[41]!==O||e[42]!==n?(z=s.jsx(Ee,{value:n,onChange:le,placeholder:O,autoFocus:!0}),e[41]=O,e[42]=n,e[43]=z):z=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>a(null),e[44]=ne):ne=e[44];const ye=i.isPending;let E;e[45]!==t?(E=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=E):E=e[46];let I;e[47]!==i.isPending||e[48]!==E?(I=s.jsx(ee,{variant:"outline",onClick:ne,disabled:ye,children:E}),e[47]=i.isPending,e[48]=E,e[49]=I):I=e[49];let $;e[50]!==i.isPending||e[51]!==n?($=!n.trim()||i.isPending,e[50]=i.isPending,e[51]=n,e[52]=$):$=e[52];let F;e[53]!==i.isPending||e[54]!==t?(F=i.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=i.isPending,e[54]=t,e[55]=F):F=e[55];let T;e[56]!==y||e[57]!==$||e[58]!==F?(T=s.jsx(ee,{disabled:$,onClick:y,children:F}),e[56]=y,e[57]=$,e[58]=F,e[59]=T):T=e[59];let H;e[60]!==I||e[61]!==T?(H=s.jsxs(we,{children:[I,T]}),e[60]=I,e[61]=T,e[62]=H):H=e[62];let B;e[63]!==w||e[64]!==z||e[65]!==H?(B=s.jsxs(Oe,{className:"sm:max-w-sm",children:[w,z,H]}),e[63]=w,e[64]=z,e[65]=H,e[66]=B):B=e[66];let G;e[67]!==B||e[68]!==me?(G=s.jsx(ze,{open:me,onOpenChange:ie,children:B}),e[67]=B,e[68]=me,e[69]=G):G=e[69];const pe=m!==null;let oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(oe=r=>{r||d(null)},e[70]=oe):oe=e[70];const fe=m?.volume??"";let q;e[71]!==t||e[72]!==fe?(q=t("settings.syncedRepos.removeTitle",{volume:fe}),e[71]=t,e[72]=fe,e[73]=q):q=e[73];let L;e[74]!==q?(L=s.jsx(be,{children:q}),e[74]=q,e[75]=L):L=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(Re,{children:V}),e[78]=V,e[79]=J):J=e[79];let K;e[80]!==L||e[81]!==J?(K=s.jsxs(Se,{children:[L,J]}),e[80]=L,e[81]=J,e[82]=K):K=e[82];let M;e[83]!==t?(M=t("settings.syncedRepos.cancel"),e[83]=t,e[84]=M):M=e[84];let Q;e[85]!==M?(Q=s.jsx(ve,{children:M}),e[85]=M,e[86]=Q):Q=e[86];let U;e[87]!==t?(U=t("settings.syncedRepos.remove"),e[87]=t,e[88]=U):U=e[88];let W;e[89]!==j||e[90]!==U?(W=s.jsx(Ne,{onClick:j,children:U}),e[89]=j,e[90]=U,e[91]=W):W=e[91];let X;e[92]!==Q||e[93]!==W?(X=s.jsxs(De,{children:[Q,W]}),e[92]=Q,e[93]=W,e[94]=X):X=e[94];let Y;e[95]!==K||e[96]!==X?(Y=s.jsxs(_e,{children:[K,X]}),e[95]=K,e[96]=X,e[97]=Y):Y=e[97];let Z;e[98]!==pe||e[99]!==Y?(Z=s.jsx(Ce,{open:pe,onOpenChange:oe,children:Y}),e[98]=pe,e[99]=Y,e[100]=Z):Z=e[100];let re;return e[101]!==G||e[102]!==v||e[103]!==Z||e[104]!==N||e[105]!==_?(re=s.jsxs(s.Fragment,{children:[v,N,_,G,Z]}),e[101]=G,e[102]=v,e[103]=Z,e[104]=N,e[105]=_,e[106]=re):re=e[106],re}function Ue(){const e=te.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ue,{children:s.jsx(ue.Content,{children:s.jsx(ue.Body,{children:s.jsxs($e,{children:[s.jsx(qe,{group:"storage"}),s.jsx(Qe,{})]})})})}),e[0]=t):t=e[0],t}function ls(){const e=te.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{ls as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as w,b as S,j as l,B as C,r as I,G as E}from"./index-
|
|
1
|
+
import{c as w,b as S,j as l,B as C,r as I,G as E}from"./index-e-HlArl7.js";import{b as L,h as N,a as O,d as k,e as R}from"./dialog-D3rc6x5M.js";import{i as U}from"./Check-DBuakj7k.js";import{a as $}from"./Copy01-D4rVL35O.js";import{n as W}from"./Download01-jYnsDg5e.js";const M="https://github.com/decocms/studio/releases";function F(){return`curl -fsSL ${window.location.origin}/install.sh | sh`}function P(e){return`https://github.com/decocms/studio/releases/download/native-v${e}/deco-${e}-linux-x86_64.AppImage`}function le(){return typeof navigator<"u"&&/Mac/.test(navigator.platform)&&!("ontouchend"in document)}function B(){return typeof navigator<"u"&&/Linux/.test(navigator.platform)&&!/Android/.test(navigator.userAgent)&&!("ontouchend"in document)}async function V(e,t){if(!e)return!1;try{return await e.writeText(t),!0}catch{return!1}}function D(e){const t=w.c(12),{copiedLabel:n}=e,r=S(),[s,i]=I.useState(!1);let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=F(),t[0]=c):c=t[0];const o=c;let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx("code",{className:"block rounded-md border bg-muted px-3 py-2.5 font-mono text-xs leading-relaxed break-all whitespace-pre-wrap select-all",children:o}),t[1]=a):a=t[1];let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{V(navigator.clipboard,o).then(p=>{p&&(i(!0),setTimeout(()=>i(!1),2e3))})},t[2]=u):u=t[2];let d;t[3]!==s?(d=s?l.jsx(U,{size:16}):l.jsx($,{size:16}),t[3]=s,t[4]=d):d=t[4];let f;t[5]!==s||t[6]!==n||t[7]!==r?(f=s?n:r("downloadApp.copyLabel"),t[5]=s,t[6]=n,t[7]=r,t[8]=f):f=t[8];let m;return t[9]!==d||t[10]!==f?(m=l.jsxs("div",{className:"flex flex-col gap-3",children:[a,l.jsxs(C,{type:"button",className:"w-full gap-2",onClick:u,children:[d,f]})]}),t[9]=d,t[10]=f,t[11]=m):m=t[11],m}function Y(){const e=w.c(18),t=S();let n;e[0]!==t?(n=t("downloadApp.copiedLabel"),e[0]=t,e[1]=n):n=e[1];let r;e[2]!==n?(r=l.jsx(D,{copiedLabel:n}),e[2]=n,e[3]=r):r=e[3];let s;e[4]!==t?(s=t("downloadApp.terminalHint"),e[4]=t,e[5]=s):s=e[5];let i;e[6]!==s?(i=l.jsx("p",{children:s}),e[6]=s,e[7]=i):i=e[7];let c;e[8]!==t?(c=t("downloadApp.appleSiliconNote"),e[8]=t,e[9]=c):c=e[9];let o;e[10]!==c?(o=l.jsx("p",{children:c}),e[10]=c,e[11]=o):o=e[11];let a;e[12]!==i||e[13]!==o?(a=l.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[i,o]}),e[12]=i,e[13]=o,e[14]=a):a=e[14];let u;return e[15]!==r||e[16]!==a?(u=l.jsxs(l.Fragment,{children:[r,a]}),e[15]=r,e[16]=a,e[17]=u):u=e[17],u}function H(){const e=w.c(42),t=S();let n;e[0]!==t?(n=t("downloadApp.copiedLabelLinux"),e[0]=t,e[1]=n):n=e[1];let r;e[2]!==n?(r=l.jsx(D,{copiedLabel:n}),e[2]=n,e[3]=r):r=e[3];let s;e[4]!==t?(s=t("downloadApp.linuxInstallerHint"),e[4]=t,e[5]=s):s=e[5];let i;e[6]!==s?(i=l.jsx("p",{children:s}),e[6]=s,e[7]=i):i=e[7];let c;e[8]!==t?(c=t("downloadApp.linuxArchNote"),e[8]=t,e[9]=c):c=e[9];let o;e[10]!==c?(o=l.jsx("p",{children:c}),e[10]=c,e[11]=o):o=e[11];let a;e[12]!==i||e[13]!==o?(a=l.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[i,o]}),e[12]=i,e[13]=o,e[14]=a):a=e[14];let u;e[15]!==t?(u=t("downloadApp.linuxDirectDownloadHint"),e[15]=t,e[16]=u):u=e[16];let d;e[17]!==u?(d=l.jsx("p",{children:u}),e[17]=u,e[18]=d):d=e[18];let f;e[19]===Symbol.for("react.memo_cache_sentinel")?(f=P("4.248.3"),e[19]=f):f=e[19];let m;e[20]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx(W,{size:14}),e[20]=m):m=e[20];let p;e[21]!==t?(p=t("downloadApp.downloadAppImage"),e[21]=t,e[22]=p):p=e[22];let h;e[23]!==p?(h=l.jsx(C,{asChild:!0,variant:"outline",size:"sm",className:"gap-2",children:l.jsxs("a",{href:f,rel:"noreferrer",children:[m,p]})}),e[23]=p,e[24]=h):h=e[24];let g;e[25]!==t?(g=t("downloadApp.linuxChmodHint"),e[25]=t,e[26]=g):g=e[26];let x;e[27]!==g?(x=l.jsx("p",{children:g}),e[27]=g,e[28]=x):x=e[28];let A;e[29]!==t?(A=t("downloadApp.allReleases"),e[29]=t,e[30]=A):A=e[30];let y;e[31]!==A?(y=l.jsx("a",{href:M,target:"_blank",rel:"noreferrer",className:"underline-offset-2 hover:text-foreground hover:underline",children:A}),e[31]=A,e[32]=y):y=e[32];let T;e[33]!==h||e[34]!==x||e[35]!==y||e[36]!==d?(T=l.jsxs("div",{className:"flex flex-col items-start gap-2 border-t pt-4 text-xs text-muted-foreground",children:[d,h,x,y]}),e[33]=h,e[34]=x,e[35]=y,e[36]=d,e[37]=T):T=e[37];let b;return e[38]!==r||e[39]!==T||e[40]!==a?(b=l.jsxs(l.Fragment,{children:[r,a,T]}),e[38]=r,e[39]=T,e[40]=a,e[41]=b):b=e[41],b}function oe(e){const t=w.c(19),{open:n,onOpenChange:r}=e,s=S();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=B(),t[0]=i):i=t[0];const c=i;let o;t[1]!==s?(o=s("downloadApp.title"),t[1]=s,t[2]=o):o=t[2];let a;t[3]!==o?(a=l.jsx(L,{children:o}),t[3]=o,t[4]=a):a=t[4];let u;t[5]!==s?(u=s(c?"downloadApp.linuxDescription":"downloadApp.description"),t[5]=s,t[6]=u):u=t[6];let d;t[7]!==u?(d=l.jsx(N,{children:u}),t[7]=u,t[8]=d):d=t[8];let f;t[9]!==a||t[10]!==d?(f=l.jsxs(O,{children:[a,d]}),t[9]=a,t[10]=d,t[11]=f):f=t[11];let m;t[12]===Symbol.for("react.memo_cache_sentinel")?(m=c?l.jsx(H,{}):l.jsx(Y,{}),t[12]=m):m=t[12];let p;t[13]!==f?(p=l.jsxs(k,{className:"sm:max-w-md",children:[f,m]}),t[13]=f,t[14]=p):p=t[14];let h;return t[15]!==r||t[16]!==n||t[17]!==p?(h=l.jsx(R,{open:n,onOpenChange:r,children:p}),t[15]=r,t[16]=n,t[17]=p,t[18]=h):h=t[18],h}const z=1e4,ae="true",j=2;function v(e,t){return E.chatAutosend(e,t)}function G(e){return e==="pending"||e==="sending"}function J(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}if(!t||typeof t!="object")return null;const n=t;let r=0;n.status==="sending"?r=n.retryAt===void 0?1:j:n.retryAt!==void 0&&(r=1);const s=n.attempt===void 0?r:n.attempt;return typeof n.createdAt!="number"||typeof n.message!="object"||!G(n.status)||n.retryAt!==void 0&&typeof n.retryAt!="number"||typeof s!="number"||!Number.isInteger(s)||s<0||s>j?null:{...t,attempt:s}}function ce(e,t,n,r,s=Date.now()){const i={message:r,createdAt:s,status:"pending",attempt:0};return e.setItem(v(t,n),JSON.stringify(i)),i}function X(e,t,n){const r=v(t,n),s=J(e.getItem(r));return s||(e.removeItem(r),null)}function ue(e,t,n,r=Date.now()){const s=v(t,n),i=X(e,t,n);if(!i||i.status!=="pending")return null;if(i.attempt>=j)return e.removeItem(s),null;const c=i.retryAt??i.createdAt;if(r-c>=z)return e.removeItem(s),null;const o={...i,status:"sending",attempt:i.attempt+1};return e.setItem(s,JSON.stringify(o)),{message:o.message,createdAt:o.createdAt,attempt:o.attempt}}function de(e,t,n){e.removeItem(v(t,n))}function K(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function q(e,t){return`app:${e}:${t}`}function fe(e){if(!e||!e.startsWith("app:"))return null;const t=e.slice(4),n=t.indexOf(":");if(n<=0)return null;const r=t.slice(0,n),s=t.slice(n+1);return!r||!s?null:{connectionId:r,toolName:s}}function pe(e){return`deck:${encodeURIComponent(e)}`}function me(e){if(!e||!e.startsWith("deck:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function he(e){return`file:${encodeURIComponent(e)}`}function ge(e){if(!e||!e.startsWith("file:"))return null;const t=e.slice(5);if(!t)return null;try{return{key:decodeURIComponent(t)}}catch{return null}}function xe(e){return`library-file:${encodeURIComponent(e)}`}function Ae(e){if(!e||!e.startsWith("library-file:"))return null;const t=e.slice(13);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function ye(e){return`code:${encodeURIComponent(e)}`}function Te(e){if(!e)return null;if(e==="code")return{path:null};if(!e.startsWith("code:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}const Q=["overview","settings","automations","preview","code","content","assets","git"],Z=new Set(Q),be=new Set(["board","files","connect-sources"]);function we(e){return e.startsWith("app:")||e.startsWith("automation:")||e.startsWith("file:")||e.startsWith("deck:")||e.startsWith("library-file:")||e.startsWith("code:")}const _=new Set(["instructions","connections","layout","settings"]);function Se(e){return!!e&&_.has(e)}function ee(e){const t=e?.defaultMainView??null;if(!t||_.has(t.type))return"settings";if(Z.has(t.type))return t.type;if(t.type==="ext-app"||t.type==="ext-apps"){if(t.id&&t.toolName)return q(t.id,t.toolName);const n=e?.tabs?.map(r=>r.id)??[];return t.id&&n.includes(t.id)?t.id:n[0]??"settings"}return e?.tabs?.[0]?.id??"settings"}function ve(e){const t=e.mainParam===0?"0":e.mainParam,n=ee(e.metadata);if(t==="0")return{mainOpen:!1,activeTab:n};if(t===void 0){const r=e.metadata?.defaultMainView??null;return{mainOpen:!(r==null||r.type==="chat"),activeTab:n}}return _.has(t)?{mainOpen:!0,activeTab:"settings"}:{mainOpen:!0,activeTab:t}}function je(e){return e.mainOpen&&e.clickedId===e.activeTab?0:e.clickedId}function _e(e){return e.mainOpen?e.activeTab==="automations"?!0:K(e.activeTab)!==null:!1}function Ce(e){return e.mainOpen&&e.activeTab==="automations"?0:"automations"}export{ae as A,oe as D,Q as F,be as O,B as a,ve as b,ge as c,me as d,Ae as e,q as f,je as g,ye as h,le as i,xe as j,Se as k,Te as l,fe as m,_e as n,Ce as o,K as p,pe as q,ee as r,he as s,we as t,ue as u,de as v,ce as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,m as i,j as r}from"./index-
|
|
1
|
+
import{c,m as i,j as r}from"./index-e-HlArl7.js";function d(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-card rounded-xl card-shadow overflow-hidden",children:r.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-card",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function x(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{x as T,m as a,b,d as c,p as d,f as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as v,j as d,bJ as $,aG as p,bM as k,bL as y,bK as P,aM as T,aI as S,aL as F,aJ as V,aN as D,c as x,m as g}from"./index-
|
|
1
|
+
import{r as v,j as d,bJ as $,aG as p,bM as k,bL as y,bK as P,aM as T,aI as S,aL as F,aJ as V,aN as D,c as x,m as g}from"./index-e-HlArl7.js";var m="Tabs",[G]=S(m,[y]),N=y(),[L,h]=G(m),w=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...f}=n,u=F(i),[c,b]=V({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:D(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(p.div,{dir:u,"data-orientation":o,...f,ref:e})})});w.displayName=m;var C="TabsList",I=v.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(C,a),o=N(a);return d.jsx($,{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})})});I.displayName=C;var j="TabsTrigger",_=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(j,a),i=N(a),l=E(o.baseId,t),f=M(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=j;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=M(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(k,{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 M(n,e){return`${n}-content-${e}`}var K=w,z=I,B=_,J=A;function H(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(K,{"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 O(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(z,{"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(J,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{U as T,H as a,Q as b,O as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as S,r as V,j as a,m as X,B as U,b as R,t as T,F as G,K as Q,n as ie,o as le,e as ne}from"./index-DTCr2n-a.js";import{I as Z}from"./input-7l72-E74.js";import{i as pe}from"./ArrowUpRight-Dv9QvAW5.js";import{i as de}from"./Check-ErA_74IV.js";import{i as fe}from"./ChevronSelectorVertical-BS9Eaphx.js";import{C as je,a as xe,b as he,c as ye,d as be,e as ve}from"./command-CXX8Roxa.js";import{a as Se,P as we,b as _e}from"./popover-CfGL7saO.js";import{S as me}from"./skeleton-BvZK-LJN.js";import{S as ae}from"./switch-BAlslK2J.js";import{c as Ne,d as Ce,b as ke,f as Te,g as Pe,e as Ie,a as Ae,A as Re}from"./alert-dialog-BBUALe3i.js";import{S as De,a as Ee,b as Fe,c as $e,d as oe}from"./select-BRuvjhJw.js";import{P as ee}from"./index-mAaX9S9j.js";import{t as Ke,b as Me,a as qe,i as Be,c as Oe}from"./UserSquare-1p4hY8NI.js";import{a as te,S as ue,b as J,c as Le}from"./settings-section-BS9eoASN.js";import{u as ze,j as Je}from"./use-organization-settings-kcm-WdX5.js";import{u as H}from"./studio-tools-BBCHIrbu.js";import{t as Ue}from"./cards-B5pz2XNy.js";import{R as Ve}from"./require-capability-BganaMDA.js";import"./index-CJWr9N0v.js";import"./dialog-B0pGkX2q.js";import"./X-IBBjQPfk.js";import"./SearchMd-B1dsuEY7.js";import"./tooltip-Dt_WUeQs.js";import"./ChevronDown-Dgga4a4Q.js";import"./ChevronUp-DOEAI0tE.js";import"./sidebar-Z1Ar8Iq1.js";import"./LayoutLeft-BKrrf1xY.js";import"./use-mobile-DxjazlC8.js";import"./card-IdHCmi8B.js";import"./constants-BSYv1IkQ.js";import"./DotsVertical-B9Mg1LjT.js";import"./Download01-CKTo0VS3.js";import"./Share07-KO4nWaTW.js";import"./Globe01-AGteY5p8.js";import"./Key01-Du0R52Fs.js";import"./Palette-yngNVQ4n.js";import"./Trash01-C4UDDTjr.js";import"./Zap-BUA1_Jut.js";import"./dropdown-menu-Dhjx8BUz.js";import"./ChevronRight-Cf-ty0tK.js";import"./file-type-icon-jL53noJP.js";import"./Eye-C-IIbq0b.js";import"./use-capability-U_kO9pjO.js";import"./access-gate-D3zAqPzH.js";import"./capability-load-error-BornUXv-.js";function Ge(t){const e=S.c(41),{options:l,value:s,onChange:n,placeholder:i,triggerClassName:r,contentClassName:o,width:g,renderTrigger:c,renderItem:f,emptyMessage:m,searchPlaceholder:d,filter:u}=t,p=i===void 0?"Select...":i,j=g===void 0?"w-[200px]":g,x=m===void 0?"No results found.":m,y=d===void 0?"Search...":d;let h;e[0]!==s?(h=O=>O.value===s,e[0]=s,e[1]=h):h=e[1];const b=l.find(h),[v,w]=V.useState(!1),_=we,N=Se,P=!0,C=c?a.jsx("div",{className:X("cursor-pointer",r),children:c(b)}):a.jsxs(U,{variant:"outline",role:"combobox",className:X("justify-between",j,r),children:[b?b.label:p,a.jsx(fe,{className:"opacity-50"})]});let k;e[2]!==N||e[3]!==C?(k=a.jsx(N,{asChild:P,children:C}),e[2]=N,e[3]=C,e[4]=k):k=e[4];let I;e[5]!==o?(I=X("p-0",o),e[5]=o,e[6]=I):I=e[6];let M;e[7]===Symbol.for("react.memo_cache_sentinel")?(M={width:"var(--radix-popover-trigger-width)"},e[7]=M):M=e[7];let q;e[8]!==y?(q=a.jsx(je,{placeholder:y,className:"h-9"}),e[8]=y,e[9]=q):q=e[9];let D;e[10]!==x?(D=a.jsx(xe,{children:x}),e[10]=x,e[11]=D):D=e[11];let E;if(e[12]!==n||e[13]!==l||e[14]!==f||e[15]!==w||e[16]!==s){let O;e[18]!==n||e[19]!==f||e[20]!==w||e[21]!==s?(O=A=>{const re=s===A.value;return a.jsx(he,{value:A.label,onSelect:()=>{n(A.value===s?"":A.value),w(!1)},children:f?f(A,re):a.jsxs(a.Fragment,{children:[A.label,a.jsx(de,{className:X("ml-auto",re?"opacity-100":"opacity-0")})]})},A.value)},e[18]=n,e[19]=f,e[20]=w,e[21]=s,e[22]=O):O=e[22],E=l.map(O),e[12]=n,e[13]=l,e[14]=f,e[15]=w,e[16]=s,e[17]=E}else E=e[17];let F;e[23]!==E?(F=a.jsx(ye,{children:E}),e[23]=E,e[24]=F):F=e[24];let L;e[25]!==D||e[26]!==F?(L=a.jsxs(be,{children:[D,F]}),e[25]=D,e[26]=F,e[27]=L):L=e[27];let $;e[28]!==u||e[29]!==q||e[30]!==L?($=a.jsxs(ve,{filter:u,children:[q,L]}),e[28]=u,e[29]=q,e[30]=L,e[31]=$):$=e[31];let K;e[32]!==$||e[33]!==I?(K=a.jsx(_e,{className:I,style:M,children:$}),e[32]=$,e[33]=I,e[34]=K):K=e[34];let B;return e[35]!==_||e[36]!==v||e[37]!==w||e[38]!==K||e[39]!==k?(B=a.jsxs(_,{open:v,onOpenChange:w,children:[k,K]}),e[35]=_,e[36]=v,e[37]=w,e[38]=K,e[39]=k,e[40]=B):B=e[40],B}function Qe(t){const e=S.c(4),{size:l,className:s}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx("path",{d:"M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0z"}),e[0]=n):n=e[0];let i;return e[1]!==s||e[2]!==l?(i=a.jsx("svg",{width:l,height:l,viewBox:"0 0 24 24",fill:"#2684FF","aria-hidden":"true",className:s,children:n}),e[1]=s,e[2]=l,e[3]=i):i=e[3],i}function He(){const t=S.c(12),e=R();let l;t[0]!==e?(l=e("settings.review.title"),t[0]=e,t[1]=l):l=t[1];let s;t[2]!==e?(s=e("settings.review.description"),t[2]=e,t[3]=s):s=t[3];let n;t[4]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(W,{flag:"qa_agent_enabled",icon:a.jsx(Ke,{size:16}),titleKey:"settings.review.qaAgentTitle",descriptionKey:"settings.review.qaAgentDescription"}),t[4]=n):n=t[4];let i;t[5]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(W,{flag:"code_reviewer_enabled",icon:a.jsx(Me,{size:16}),titleKey:"settings.review.codeReviewerTitle",descriptionKey:"settings.review.codeReviewerDescription"}),t[5]=i):i=t[5];let r;t[6]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(W,{flag:"cheap_reviewer_model",icon:a.jsx(qe,{size:16}),titleKey:"settings.review.cheapReviewerModelTitle",descriptionKey:"settings.review.cheapReviewerModelDescription"}),t[6]=r):r=t[6];let o;t[7]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(W,{flag:"auto_merge",icon:a.jsx(Be,{size:16}),titleKey:"settings.review.autoMergeTitle",descriptionKey:"settings.review.autoMergeDescription"}),t[7]=o):o=t[7];let g;t[8]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsxs(te,{children:[n,i,r,o,a.jsx(W,{flag:"auto_assign_report_tasks_to_super_agent",icon:a.jsx(Oe,{size:16}),titleKey:"settings.review.autoAssignReportTasksTitle",descriptionKey:"settings.review.autoAssignReportTasksDescription"})]}),t[8]=g):g=t[8];let c;return t[9]!==l||t[10]!==s?(c=a.jsx(ue,{title:l,description:s,children:g}),t[9]=l,t[10]=s,t[11]=c):c=t[11],c}function W(t){const e=S.c(23),{flag:l,icon:s,titleKey:n,descriptionKey:i}=t,r=R(),o=ze(l),g=Je();let c;e[0]!==r||e[1]!==n?(c=r(n),e[0]=r,e[1]=n,e[2]=c):c=e[2];let f;e[3]!==i||e[4]!==r?(f=r(i),e[3]=i,e[4]=r,e[5]=f):f=e[5];const m=g.isPending;let d;e[6]!==r||e[7]!==n?(d=r(n),e[6]=r,e[7]=n,e[8]=d):d=e[8];let u;e[9]!==l||e[10]!==g||e[11]!==r?(u=x=>g.mutate(l,x,{onError:()=>T.error(r("settings.review.updateError"))}),e[9]=l,e[10]=g,e[11]=r,e[12]=u):u=e[12];let p;e[13]!==o||e[14]!==g.isPending||e[15]!==d||e[16]!==u?(p=a.jsx(ae,{checked:o,disabled:m,"aria-label":d,onCheckedChange:u}),e[13]=o,e[14]=g.isPending,e[15]=d,e[16]=u,e[17]=p):p=e[17];let j;return e[18]!==s||e[19]!==c||e[20]!==f||e[21]!==p?(j=a.jsx(J,{icon:s,title:c,description:f,action:p}),e[18]=s,e[19]=c,e[20]=f,e[21]=p,e[22]=j):j=e[22],j}function ge(t){const e=t.projectName?.replace(/\s+/g," ").trim(),l=t.name.trim();return e?{primary:e,secondary:[l,t.projectKey].filter(Boolean).join(" · ")}:{primary:l,secondary:t.projectKey??""}}function Ye(t){const{primary:e,secondary:l}=ge(t);return[e,l,`#${t.id}`].filter(Boolean).join(" ")}function ce(t){return t.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase()}function We(t,e){const l=ce(e).trim();if(!l)return 1;const s=ce(t);return l.split(/\s+/).every(n=>s.includes(n))?1:0}function Xe(){const t=S.c(7),{org:e}=G(),l=H();let s;t[0]!==e.id?(s=Q.jiraIntegration(e.id),t[0]=e.id,t[1]=s):s=t[1];let n;t[2]!==l?(n=async()=>(await l.call("JIRA_INTEGRATION_GET",{})).integration,t[2]=l,t[3]=n):n=t[3];let i;return t[4]!==s||t[5]!==n?(i={queryKey:s,queryFn:n},t[4]=s,t[5]=n,t[6]=i):i=t[6],ie(i)}function Y(){const t=S.c(8),{org:e}=G(),l=H(),s=le();let n;t[0]!==l?(n=async o=>(await l.call("JIRA_INTEGRATION_UPSERT",o)).integration,t[0]=l,t[1]=n):n=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==n||t[6]!==i?(r={mutationFn:n,onSettled:i},t[5]=n,t[6]=i,t[7]=r):r=t[7],ne(r)}function Ze(){const t=S.c(8),{org:e}=G(),l=H(),s=le();let n;t[0]!==l?(n=()=>l.call("JIRA_INTEGRATION_DELETE",{}),t[0]=l,t[1]=n):n=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==n||t[6]!==i?(r={mutationFn:n,onSettled:i},t[5]=n,t[6]=i,t[7]=r):r=t[7],ne(r)}function et(t){const e=S.c(8),{org:l}=G(),s=H();let n;e[0]!==l.id?(n=Q.jiraBoards(l.id),e[0]=l.id,e[1]=n):n=e[1];let i;e[2]!==s?(i=async()=>(await s.call("JIRA_BOARDS_LIST",{})).boards,e[2]=s,e[3]=i):i=e[3];let r;return e[4]!==t||e[5]!==n||e[6]!==i?(r={queryKey:n,enabled:t,staleTime:6e4,queryFn:i},e[4]=t,e[5]=n,e[6]=i,e[7]=r):r=e[7],ie(r)}function tt(t){const e=S.c(10),{org:l}=G(),s=H();let n;e[0]!==t||e[1]!==l.id?(n=Q.jiraBoardColumns(l.id,t??""),e[0]=t,e[1]=l.id,e[2]=n):n=e[2];const i=t!==null;let r;e[3]!==t||e[4]!==s?(r=async()=>(await s.call("JIRA_BOARD_COLUMNS_LIST",{boardId:t??""})).columns,e[3]=t,e[4]=s,e[5]=r):r=e[5];let o;return e[6]!==n||e[7]!==i||e[8]!==r?(o={queryKey:n,enabled:i,staleTime:6e4,queryFn:r},e[6]=n,e[7]=i,e[8]=r,e[9]=o):o=e[9],ie(o)}function st(){const t=S.c(8),{org:e}=G(),l=H(),s=le();let n;t[0]!==l?(n=async()=>(await l.call("JIRA_SYNC_RUN",{})).result,t[0]=l,t[1]=n):n=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==n||t[6]!==i?(r={mutationFn:n,onSettled:i},t[5]=n,t[6]=i,t[7]=r):r=t[7],ne(r)}const it=[{value:"triage",labelKey:"taskBoard.config.statusBacklog"},{value:"todo",labelKey:"taskBoard.config.statusTodo"},{value:"in_progress",labelKey:"taskBoard.config.statusInProgress"},{value:"in_review",labelKey:"taskBoard.config.statusInReview"},{value:"done",labelKey:"taskBoard.config.statusDone"},{value:"archived",labelKey:"taskBoard.config.statusArchived"}],se="__dont_sync__";function z(t,e){return t instanceof Error?t.message:e}const lt="https://id.atlassian.com/manage-profile/security/api-tokens";function nt(t){const e=S.c(7),{stepKeys:l}=t,s=R();let n;if(e[0]!==l||e[1]!==s){let r;e[3]!==s?(r=o=>a.jsx("li",{children:s(o)},o),e[3]=s,e[4]=r):r=e[4],n=l.map(r),e[0]=l,e[1]=s,e[2]=n}else n=e[2];let i;return e[5]!==n?(i=a.jsx("ol",{className:"list-decimal pl-5 flex flex-col gap-1 text-xs text-muted-foreground",children:n}),e[5]=n,e[6]=i):i=e[6],i}function at(){const t=S.c(69),e=R(),l=Y(),[s,n]=V.useState(""),[i,r]=V.useState(""),[o,g]=V.useState("");let c;t[0]!==o||t[1]!==i||t[2]!==s?(c=s.trim()!==""&&i.trim()!==""&&o.trim()!=="",t[0]=o,t[1]=i,t[2]=s,t[3]=c):c=t[3];const f=c;let m;t[4]!==e?(m=e("settings.jira.siteLabel"),t[4]=e,t[5]=m):m=t[5];let d;t[6]!==m?(d=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:m}),t[6]=m,t[7]=d):d=t[7];let u;t[8]===Symbol.for("react.memo_cache_sentinel")?(u=A=>n(A.target.value),t[8]=u):u=t[8];let p;t[9]!==e?(p=e("settings.jira.sitePlaceholder"),t[9]=e,t[10]=p):p=t[10];let j;t[11]!==s||t[12]!==p?(j=a.jsx(Z,{value:s,onChange:u,placeholder:p,autoComplete:"off"}),t[11]=s,t[12]=p,t[13]=j):j=t[13];let x;t[14]!==d||t[15]!==j?(x=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[d,j]}),t[14]=d,t[15]=j,t[16]=x):x=t[16];let y;t[17]!==e?(y=e("settings.jira.emailLabel"),t[17]=e,t[18]=y):y=t[18];let h;t[19]!==y?(h=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:y}),t[19]=y,t[20]=h):h=t[20];let b;t[21]===Symbol.for("react.memo_cache_sentinel")?(b=A=>r(A.target.value),t[21]=b):b=t[21];let v;t[22]!==e?(v=e("settings.jira.emailPlaceholder"),t[22]=e,t[23]=v):v=t[23];let w;t[24]!==i||t[25]!==v?(w=a.jsx(Z,{value:i,onChange:b,placeholder:v,autoComplete:"off"}),t[24]=i,t[25]=v,t[26]=w):w=t[26];let _;t[27]!==w||t[28]!==h?(_=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[h,w]}),t[27]=w,t[28]=h,t[29]=_):_=t[29];let N;t[30]!==e?(N=e("settings.jira.tokenLabel"),t[30]=e,t[31]=N):N=t[31];let P;t[32]!==N?(P=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:N}),t[32]=N,t[33]=P):P=t[33];let C;t[34]!==e?(C=e("settings.jira.createTokenLink"),t[34]=e,t[35]=C):C=t[35];let k;t[36]===Symbol.for("react.memo_cache_sentinel")?(k=a.jsx(pe,{size:12}),t[36]=k):k=t[36];let I;t[37]!==C?(I=a.jsxs("a",{href:lt,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 text-xs text-foreground hover:underline",children:[C,k]}),t[37]=C,t[38]=I):I=t[38];let M;t[39]!==P||t[40]!==I?(M=a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[P,I]}),t[39]=P,t[40]=I,t[41]=M):M=t[41];let q;t[42]===Symbol.for("react.memo_cache_sentinel")?(q=A=>g(A.target.value),t[42]=q):q=t[42];let D;t[43]!==e?(D=e("settings.jira.tokenPlaceholder"),t[43]=e,t[44]=D):D=t[44];let E;t[45]!==o||t[46]!==D?(E=a.jsx(Z,{type:"password",value:o,onChange:q,placeholder:D,autoComplete:"off"}),t[45]=o,t[46]=D,t[47]=E):E=t[47];let F;t[48]!==M||t[49]!==E?(F=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[M,E]}),t[48]=M,t[49]=E,t[50]=F):F=t[50];const L=!f||l.isPending;let $;t[51]!==o||t[52]!==i||t[53]!==s||t[54]!==e||t[55]!==l?($=()=>l.mutate({siteUrl:s.trim(),email:i.trim(),apiToken:o.trim()},{onSuccess:()=>T.success(e("settings.jira.connected")),onError:A=>T.error(z(A,e("settings.jira.connectFailed")))}),t[51]=o,t[52]=i,t[53]=s,t[54]=e,t[55]=l,t[56]=$):$=t[56];let K;t[57]!==e||t[58]!==l.isPending?(K=l.isPending?e("settings.jira.connecting"):e("settings.jira.connect"),t[57]=e,t[58]=l.isPending,t[59]=K):K=t[59];let B;t[60]!==L||t[61]!==$||t[62]!==K?(B=a.jsx(U,{size:"sm",className:"w-fit",disabled:L,onClick:$,children:K}),t[60]=L,t[61]=$,t[62]=K,t[63]=B):B=t[63];let O;return t[64]!==_||t[65]!==F||t[66]!==B||t[67]!==x?(O=a.jsxs("div",{className:"flex flex-col gap-4 mt-3 max-w-md",children:[x,_,F,B]}),t[64]=_,t[65]=F,t[66]=B,t[67]=x,t[68]=O):O=t[68],O}function rt(t){const e=S.c(7),{integration:l}=t,s=R();if(l.lastSyncError){let r;return e[0]!==l.lastSyncError?(r=a.jsx("p",{className:"text-xs text-destructive truncate",children:l.lastSyncError}),e[0]=l.lastSyncError,e[1]=r):r=e[1],r}let n;e[2]!==l.lastSyncedAt||e[3]!==s?(n=l.lastSyncedAt?s("settings.jira.lastSynced",{ago:Ue(l.lastSyncedAt)}):s("settings.jira.waitingFirstSync"),e[2]=l.lastSyncedAt,e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==n?(i=a.jsx("p",{className:"text-xs text-muted-foreground",children:n}),e[5]=n,e[6]=i):i=e[6],i}function ot(t){const e=S.c(23),{integration:l}=t,s=R(),n=Y(),i=tt(l.boardId);if(i.isPending){let m;return e[0]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsx(me,{className:"h-24 w-full mt-3"}),e[0]=m):m=e[0],m}if(i.isError){let m;e[1]!==i.error||e[2]!==s?(m=z(i.error,s("settings.jira.columnsFailed")),e[1]=i.error,e[2]=s,e[3]=m):m=e[3];let d;return e[4]!==m?(d=a.jsx("p",{className:"text-xs text-destructive mt-3",children:m}),e[4]=m,e[5]=d):d=e[5],d}let r;e[6]!==l.statusMapping||e[7]!==s||e[8]!==n?(r=function(d,u){const p={...l.statusMapping};for(const j of d)u===se?delete p[j]:p[j]=u;n.mutate({statusMapping:p},{onError:j=>T.error(z(j,s("settings.jira.saveFailed")))})},e[6]=l.statusMapping,e[7]=s,e[8]=n,e[9]=r):r=e[9];const o=r;let g;e[10]!==i.data?(g=i.data??[],e[10]=i.data,e[11]=g):g=e[11];let c;if(e[12]!==l.statusMapping||e[13]!==o||e[14]!==s||e[15]!==g){let m;e[17]!==l.statusMapping||e[18]!==o||e[19]!==s?(m=d=>a.jsxs("div",{className:"flex items-center justify-between gap-4 py-2.5 border-b border-border/60 last:border-b-0",children:[a.jsxs("div",{className:"min-w-0",children:[a.jsx("span",{className:"text-sm truncate",children:d.name}),(d.statuses.length>1||d.statuses[0]!==d.name)&&a.jsx("p",{className:"text-xs text-muted-foreground truncate",children:d.statuses.join(", ")})]}),a.jsxs(De,{value:(d.statuses[0]&&l.statusMapping[d.statuses[0]])??se,onValueChange:u=>o(d.statuses,u),children:[a.jsx(Ee,{className:"w-44 shrink-0",children:a.jsx(Fe,{})}),a.jsxs($e,{children:[a.jsx(oe,{value:se,children:s("settings.jira.dontSync")}),it.map(u=>a.jsx(oe,{value:u.value,children:s(u.labelKey)},u.value))]})]})]},d.name),e[17]=l.statusMapping,e[18]=o,e[19]=s,e[20]=m):m=e[20],c=g.map(m),e[12]=l.statusMapping,e[13]=o,e[14]=s,e[15]=g,e[16]=c}else c=e[16];let f;return e[21]!==c?(f=a.jsx("div",{className:"flex flex-col mt-3",children:c}),e[21]=c,e[22]=f):f=e[22],f}function ct(t){const e=S.c(44),{integration:l}=t,s=R(),n=Ze(),[i,r]=V.useState(!1),o=l.siteUrl,g=l.email;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=()=>r(!0),e[0]=c):c=e[0];let f;e[1]!==s?(f=s("settings.jira.disconnect"),e[1]=s,e[2]=f):f=e[2];let m;e[3]!==f?(m=a.jsx(U,{variant:"outline",size:"sm",onClick:c,children:f}),e[3]=f,e[4]=m):m=e[4];let d;e[5]!==l.email||e[6]!==l.siteUrl||e[7]!==m?(d=a.jsx(J,{title:o,description:g,action:m}),e[5]=l.email,e[6]=l.siteUrl,e[7]=m,e[8]=d):d=e[8];let u;e[9]!==s?(u=s("settings.jira.disconnectTitle"),e[9]=s,e[10]=u):u=e[10];let p;e[11]!==u?(p=a.jsx(Ne,{children:u}),e[11]=u,e[12]=p):p=e[12];let j;e[13]!==s?(j=s("settings.jira.disconnectDescription"),e[13]=s,e[14]=j):j=e[14];let x;e[15]!==j?(x=a.jsx(Ce,{children:j}),e[15]=j,e[16]=x):x=e[16];let y;e[17]!==x||e[18]!==p?(y=a.jsxs(ke,{children:[p,x]}),e[17]=x,e[18]=p,e[19]=y):y=e[19];let h;e[20]!==s?(h=s("settings.jira.cancel"),e[20]=s,e[21]=h):h=e[21];let b;e[22]!==h?(b=a.jsx(Te,{children:h}),e[22]=h,e[23]=b):b=e[23];let v;e[24]!==n||e[25]!==s?(v=()=>n.mutate(void 0,{onSuccess:()=>T.success(s("settings.jira.disconnected")),onError:I=>T.error(z(I,s("settings.jira.saveFailed")))}),e[24]=n,e[25]=s,e[26]=v):v=e[26];let w;e[27]!==s?(w=s("settings.jira.disconnect"),e[27]=s,e[28]=w):w=e[28];let _;e[29]!==v||e[30]!==w?(_=a.jsx(Pe,{onClick:v,children:w}),e[29]=v,e[30]=w,e[31]=_):_=e[31];let N;e[32]!==b||e[33]!==_?(N=a.jsxs(Ie,{children:[b,_]}),e[32]=b,e[33]=_,e[34]=N):N=e[34];let P;e[35]!==y||e[36]!==N?(P=a.jsxs(Ae,{children:[y,N]}),e[35]=y,e[36]=N,e[37]=P):P=e[37];let C;e[38]!==i||e[39]!==P?(C=a.jsx(Re,{open:i,onOpenChange:r,children:P}),e[38]=i,e[39]=P,e[40]=C):C=e[40];let k;return e[41]!==C||e[42]!==d?(k=a.jsxs(a.Fragment,{children:[d,C]}),e[41]=C,e[42]=d,e[43]=k):k=e[43],k}function dt(t){const e=S.c(36),{integration:l}=t,s=R(),n=Y(),i=et(!0);let r,o;e[0]!==i.data||e[1]!==l.boardId||e[2]!==l.boardName?(r=(i.data??[]).map(mt),o=l.boardId?r.find(b=>b.value===l.boardId)?.primary??l.boardName??l.boardId:null,e[0]=i.data,e[1]=l.boardId,e[2]=l.boardName,e[3]=r,e[4]=o):(r=e[3],o=e[4]);const g=o;let c;e[5]!==s?(c=s("settings.jira.boardLabel"),e[5]=s,e[6]=c):c=e[6];let f;e[7]!==s?(f=s("settings.jira.boardDescription"),e[7]=s,e[8]=f):f=e[8];const m=l.boardId??"";let d;e[9]!==s?(d=s("settings.jira.boardPlaceholder"),e[9]=s,e[10]=d):d=e[10];let u;e[11]!==s?(u=s("settings.jira.boardSearchPlaceholder"),e[11]=s,e[12]=u):u=e[12];let p;e[13]!==i.isPending||e[14]!==s?(p=i.isPending?s("settings.jira.loadingBoards"):s("settings.jira.noBoardsMatch"),e[13]=i.isPending,e[14]=s,e[15]=p):p=e[15];let j;e[16]!==g||e[17]!==s?(j=()=>a.jsxs(U,{variant:"outline",role:"combobox",className:"w-72 justify-between font-normal",children:[a.jsx("span",{className:"truncate",children:g??s("settings.jira.boardPlaceholder")}),a.jsx(fe,{className:"opacity-50 shrink-0"})]}),e[16]=g,e[17]=s,e[18]=j):j=e[18];let x;e[19]!==r||e[20]!==l.boardId||e[21]!==s||e[22]!==n?(x=b=>{!b||b===l.boardId||n.mutate({boardId:b,boardName:r.find(v=>v.value===b)?.primary??null,statusMapping:{},enabled:!1},{onError:v=>T.error(z(v,s("settings.jira.saveFailed")))})},e[19]=r,e[20]=l.boardId,e[21]=s,e[22]=n,e[23]=x):x=e[23];let y;e[24]!==r||e[25]!==m||e[26]!==d||e[27]!==u||e[28]!==p||e[29]!==j||e[30]!==x?(y=a.jsx(Ge,{options:r,value:m,width:"w-72",triggerClassName:"shrink-0",placeholder:d,searchPlaceholder:u,filter:We,emptyMessage:p,renderTrigger:j,renderItem:ft,onChange:x}),e[24]=r,e[25]=m,e[26]=d,e[27]=u,e[28]=p,e[29]=j,e[30]=x,e[31]=y):y=e[31];let h;return e[32]!==y||e[33]!==c||e[34]!==f?(h=a.jsx(J,{title:c,description:f,action:y}),e[32]=y,e[33]=c,e[34]=f,e[35]=h):h=e[35],h}function ft(t,e){return a.jsxs("div",{className:"flex items-start gap-2 min-w-0 w-full",children:[a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("p",{className:"truncate",children:t.primary}),a.jsx("p",{className:"text-xs text-muted-foreground truncate",children:t.secondary})]}),a.jsx(de,{className:X("mt-0.5 shrink-0",e?"opacity-100":"opacity-0")})]})}function mt(t){const{primary:e,secondary:l}=ge(t);return{value:String(t.id),label:Ye(t),primary:e,secondary:l}}function ut(t){const e=S.c(10),{integration:l}=t,s=R();let n;e[0]!==s?(n=s("settings.jira.mappingLabel"),e[0]=s,e[1]=n):n=e[1];let i;e[2]!==s?(i=s("settings.jira.mappingDescription"),e[2]=s,e[3]=i):i=e[3];let r;e[4]!==l?(r=a.jsx(ot,{integration:l}),e[4]=l,e[5]=r):r=e[5];let o;return e[6]!==n||e[7]!==i||e[8]!==r?(o=a.jsx(J,{title:n,description:i,children:r}),e[6]=n,e[7]=i,e[8]=r,e[9]=o):o=e[9],o}function gt(t){const e=S.c(29),{integration:l}=t,s=R(),n=Y(),[i,r]=V.useState(l.jqlFilter??"");let o;e[0]!==i?(o=i.trim(),e[0]=i,e[1]=o):o=e[1];const g=o!==(l.jqlFilter??"");let c;e[2]!==s?(c=s("settings.jira.jqlLabel"),e[2]=s,e[3]=c):c=e[3];let f;e[4]!==s?(f=s("settings.jira.jqlDescription"),e[4]=s,e[5]=f):f=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=v=>r(v.target.value),e[6]=m):m=e[6];let d;e[7]!==s?(d=s("settings.jira.jqlPlaceholder"),e[7]=s,e[8]=d):d=e[8];let u;e[9]!==d||e[10]!==i?(u=a.jsx(Z,{value:i,onChange:m,placeholder:d,className:"font-mono text-xs"}),e[9]=d,e[10]=i,e[11]=u):u=e[11];const p=!g||n.isPending;let j;e[12]!==s||e[13]!==n||e[14]!==i?(j=()=>n.mutate({jqlFilter:i.trim()===""?null:i.trim()},{onSuccess:()=>T.success(s("settings.jira.jqlSaved")),onError:v=>T.error(z(v,s("settings.jira.saveFailed")))}),e[12]=s,e[13]=n,e[14]=i,e[15]=j):j=e[15];let x;e[16]!==s?(x=s("settings.jira.jqlSave"),e[16]=s,e[17]=x):x=e[17];let y;e[18]!==p||e[19]!==j||e[20]!==x?(y=a.jsx(U,{variant:"outline",size:"sm",className:"shrink-0",disabled:p,onClick:j,children:x}),e[18]=p,e[19]=j,e[20]=x,e[21]=y):y=e[21];let h;e[22]!==y||e[23]!==u?(h=a.jsxs("div",{className:"flex items-center gap-2 mt-3",children:[u,y]}),e[22]=y,e[23]=u,e[24]=h):h=e[24];let b;return e[25]!==h||e[26]!==c||e[27]!==f?(b=a.jsx(J,{title:c,description:f,children:h}),e[25]=h,e[26]=c,e[27]=f,e[28]=b):b=e[28],b}function pt(t){const e=S.c(15),{integration:l}=t,s=R(),n=Y();let i;e[0]!==s?(i=s("settings.jira.autoDelegateLabel"),e[0]=s,e[1]=i):i=e[1];let r;e[2]!==s?(r=s("settings.jira.autoDelegateDescription"),e[2]=s,e[3]=r):r=e[3];let o;e[4]!==s||e[5]!==n?(o=f=>n.mutate({autoDelegate:f},{onError:m=>T.error(z(m,s("settings.jira.saveFailed")))}),e[4]=s,e[5]=n,e[6]=o):o=e[6];let g;e[7]!==l.autoDelegate||e[8]!==o||e[9]!==n.isPending?(g=a.jsx(ae,{checked:l.autoDelegate,disabled:n.isPending,onCheckedChange:o}),e[7]=l.autoDelegate,e[8]=o,e[9]=n.isPending,e[10]=g):g=e[10];let c;return e[11]!==i||e[12]!==r||e[13]!==g?(c=a.jsx(J,{title:i,description:r,action:g}),e[11]=i,e[12]=r,e[13]=g,e[14]=c):c=e[14],c}function jt(t){const e=S.c(32),{integration:l}=t,s=R(),n=Y(),i=st();let r;e[0]!==l.statusMapping?(r=Object.keys(l.statusMapping),e[0]=l.statusMapping,e[1]=r):r=e[1];const o=r.length>0;let g;e[2]!==s?(g=s("settings.jira.enableLabel"),e[2]=s,e[3]=g):g=e[3];let c;e[4]!==l?(c=a.jsx(rt,{integration:l}),e[4]=l,e[5]=c):c=e[5];const f=!l.enabled||i.isPending;let m;e[6]!==i||e[7]!==s?(m=()=>i.mutate(void 0,{onSuccess:h=>{"error"in h?T.error(h.error):T.success(s("settings.jira.syncDone",{created:String(h.created),updated:String(h.updated)}))},onError:h=>T.error(z(h,s("settings.jira.syncFailed")))}),e[6]=i,e[7]=s,e[8]=m):m=e[8];let d;e[9]!==i.isPending||e[10]!==s?(d=i.isPending?s("settings.jira.syncing"):s("settings.jira.syncNow"),e[9]=i.isPending,e[10]=s,e[11]=d):d=e[11];let u;e[12]!==f||e[13]!==m||e[14]!==d?(u=a.jsx(U,{variant:"outline",size:"sm",disabled:f,onClick:m,children:d}),e[12]=f,e[13]=m,e[14]=d,e[15]=u):u=e[15];let p;e[16]!==o||e[17]!==l.boardId||e[18]!==s||e[19]!==n?(p=h=>{if(h&&(!l.boardId||!o)){T.error(s("settings.jira.enableRequirements"));return}n.mutate({enabled:h},{onError:b=>T.error(z(b,s("settings.jira.saveFailed")))})},e[16]=o,e[17]=l.boardId,e[18]=s,e[19]=n,e[20]=p):p=e[20];let j;e[21]!==l.enabled||e[22]!==p||e[23]!==n.isPending?(j=a.jsx(ae,{checked:l.enabled,disabled:n.isPending,onCheckedChange:p}),e[21]=l.enabled,e[22]=p,e[23]=n.isPending,e[24]=j):j=e[24];let x;e[25]!==u||e[26]!==j?(x=a.jsxs("div",{className:"flex items-center gap-3",children:[u,j]}),e[25]=u,e[26]=j,e[27]=x):x=e[27];let y;return e[28]!==x||e[29]!==g||e[30]!==c?(y=a.jsx(J,{title:g,description:c,action:x}),e[28]=x,e[29]=g,e[30]=c,e[31]=y):y=e[31],y}function xt(t){const e=S.c(24),{integration:l}=t,s=R(),n=`${window.location.origin}/api/_jira/webhook/${l.webhookSecret}`;let i;e[0]!==s?(i=s("settings.jira.webhookTitle"),e[0]=s,e[1]=i):i=e[1];let r;e[2]!==s?(r=s("settings.jira.webhookDescription"),e[2]=s,e[3]=r):r=e[3];let o;e[4]!==n?(o=a.jsx(Z,{readOnly:!0,value:n,className:"font-mono text-xs"}),e[4]=n,e[5]=o):o=e[5];let g;e[6]!==s||e[7]!==n?(g=()=>{navigator.clipboard.writeText(n),T.success(s("settings.jira.webhookCopied"))},e[6]=s,e[7]=n,e[8]=g):g=e[8];let c;e[9]!==s?(c=s("settings.jira.webhookCopy"),e[9]=s,e[10]=c):c=e[10];let f;e[11]!==g||e[12]!==c?(f=a.jsx(U,{variant:"outline",size:"sm",className:"shrink-0",onClick:g,children:c}),e[11]=g,e[12]=c,e[13]=f):f=e[13];let m;e[14]!==o||e[15]!==f?(m=a.jsxs("div",{className:"flex items-center gap-2",children:[o,f]}),e[14]=o,e[15]=f,e[16]=m):m=e[16];let d;e[17]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(nt,{stepKeys:["settings.jira.webhookStep1","settings.jira.webhookStep2","settings.jira.webhookStep3","settings.jira.webhookStep4","settings.jira.webhookStep5"]}),e[17]=d):d=e[17];let u;e[18]!==m?(u=a.jsxs("div",{className:"flex flex-col gap-3 mt-3",children:[m,d]}),e[18]=m,e[19]=u):u=e[19];let p;return e[20]!==i||e[21]!==r||e[22]!==u?(p=a.jsx(J,{title:i,description:r,children:u}),e[20]=i,e[21]=r,e[22]=u,e[23]=p):p=e[23],p}function ht(){const t=S.c(28),e=R(),l=Xe();if(l.isPending){let d;return t[0]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(te,{children:a.jsx("div",{className:"p-4",children:a.jsx(me,{className:"h-40 w-full"})})}),t[0]=d):d=t[0],d}if(!l.data){let d;t[1]!==e?(d=e("settings.jira.connectTitle"),t[1]=e,t[2]=d):d=t[2];let u;t[3]!==e?(u=e("settings.jira.connectDescription"),t[3]=e,t[4]=u):u=t[4];let p;t[5]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(at,{}),t[5]=p):p=t[5];let j;return t[6]!==d||t[7]!==u?(j=a.jsx(te,{children:a.jsx(J,{title:d,description:u,children:p})}),t[6]=d,t[7]=u,t[8]=j):j=t[8],j}const s=l.data;let n,i,r;t[9]!==s?(n=a.jsx(ct,{integration:s}),i=a.jsx(dt,{integration:s}),r=s.boardId&&a.jsx(ut,{integration:s}),t[9]=s,t[10]=n,t[11]=i,t[12]=r):(n=t[10],i=t[11],r=t[12]);let o;t[13]!==s?(o=s.boardId&&a.jsx(gt,{integration:s}),t[13]=s,t[14]=o):o=t[14];let g;t[15]!==s?(g=s.boardId&&a.jsx(pt,{integration:s}),t[15]=s,t[16]=g):g=t[16];let c,f;t[17]!==s?(c=a.jsx(jt,{integration:s}),f=a.jsx(xt,{integration:s}),t[17]=s,t[18]=c,t[19]=f):(c=t[18],f=t[19]);let m;return t[20]!==n||t[21]!==i||t[22]!==r||t[23]!==o||t[24]!==g||t[25]!==c||t[26]!==f?(m=a.jsxs(te,{children:[n,i,r,o,g,c,f]}),t[20]=n,t[21]=i,t[22]=r,t[23]=o,t[24]=g,t[25]=c,t[26]=f,t[27]=m):m=t[27],m}function yt(){const t=S.c(16),e=R();let l;t[0]!==e?(l=e("settings.nav.tasks"),t[0]=e,t[1]=l):l=t[1];let s;t[2]!==l?(s=a.jsx(ee.Title,{children:l}),t[2]=l,t[3]=s):s=t[3];let n;t[4]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(He,{}),t[4]=n):n=t[4];let i;t[5]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(Qe,{size:18}),t[5]=i):i=t[5];let r;t[6]!==e?(r=e("settings.jira.sectionTitle"),t[6]=e,t[7]=r):r=t[7];let o;t[8]!==r?(o=a.jsxs("span",{className:"flex items-center gap-2",children:[i,r]}),t[8]=r,t[9]=o):o=t[9];let g;t[10]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(ht,{}),t[10]=g):g=t[10];let c;t[11]!==o?(c=a.jsx(ue,{title:o,children:g}),t[11]=o,t[12]=c):c=t[12];let f;return t[13]!==s||t[14]!==c?(f=a.jsx(ee,{children:a.jsx(ee.Content,{children:a.jsx(ee.Body,{children:a.jsxs(Le,{children:[s,n,c]})})})}),t[13]=s,t[14]=c,t[15]=f):f=t[15],f}function fs(){const t=S.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(Ve,{capability:"org:manage",area:"settings",children:a.jsx(yt,{})}),t[0]=e):e=t[0],e}export{fs as default};
|
|
1
|
+
import{c as S,r as V,j as a,m as X,B as U,b as R,t as T,F as G,K as Q,n as ie,o as le,e as ne}from"./index-e-HlArl7.js";import{I as Z}from"./input-EUwdmss6.js";import{i as pe}from"./ArrowUpRight-BSQlyUKS.js";import{i as de}from"./Check-DBuakj7k.js";import{i as fe}from"./ChevronSelectorVertical-B-OI9NAM.js";import{C as je,a as xe,b as he,c as ye,d as be,e as ve}from"./command-BMi7yiXc.js";import{a as Se,P as we,b as _e}from"./popover-ynfCVN7o.js";import{S as me}from"./skeleton-B_pbEkMV.js";import{S as ae}from"./switch-C54XjcZ1.js";import{c as Ne,d as Ce,b as ke,f as Te,g as Pe,e as Ie,a as Ae,A as Re}from"./alert-dialog-CCptnlV9.js";import{S as De,a as Ee,b as Fe,c as $e,d as oe}from"./select-D3LJ50sD.js";import{P as ee}from"./index-BOYXOUKl.js";import{t as Ke,b as Me,a as qe,i as Be,c as Oe}from"./UserSquare-DL3KTpBL.js";import{a as te,S as ue,b as J,c as Le}from"./settings-section-DG8vrKk4.js";import{u as ze,j as Je}from"./use-organization-settings-CHYbFssK.js";import{u as H}from"./studio-tools-C5uGY8In.js";import{t as Ue}from"./cards-CYCJ_n9p.js";import{R as Ve}from"./require-capability-CpVfL7om.js";import"./index-DPi3gRLL.js";import"./dialog-D3rc6x5M.js";import"./X-DJfLQFHU.js";import"./SearchMd-mO3LNgT6.js";import"./tooltip-CFKYGAPq.js";import"./ChevronDown-DWtVeGOh.js";import"./ChevronUp-DjwSDn9m.js";import"./sidebar-D50ZOM1t.js";import"./LayoutLeft-D3cMXNIA.js";import"./use-mobile-kh6sDIhF.js";import"./card-C8XfEmnr.js";import"./constants-BSYv1IkQ.js";import"./DotsVertical-Dt688OKL.js";import"./Download01-jYnsDg5e.js";import"./Share07-CTkgIlDR.js";import"./Globe01-D8sOi5zP.js";import"./Key01-BOgtb0rG.js";import"./Palette-hZy7hNse.js";import"./Trash01-DuZYyBOX.js";import"./Zap-DK7Z5ibk.js";import"./dropdown-menu-DQNCZNoM.js";import"./ChevronRight-BBOI7Ss9.js";import"./file-type-icon-C7f0Hpyn.js";import"./Eye-CpQDrlSJ.js";import"./use-capability-C4vk_pXM.js";import"./access-gate-CCvD5q4j.js";import"./capability-load-error-FwRqvbIP.js";function Ge(t){const e=S.c(41),{options:l,value:s,onChange:n,placeholder:i,triggerClassName:r,contentClassName:o,width:g,renderTrigger:c,renderItem:f,emptyMessage:m,searchPlaceholder:d,filter:u}=t,p=i===void 0?"Select...":i,j=g===void 0?"w-[200px]":g,x=m===void 0?"No results found.":m,y=d===void 0?"Search...":d;let h;e[0]!==s?(h=O=>O.value===s,e[0]=s,e[1]=h):h=e[1];const b=l.find(h),[v,w]=V.useState(!1),_=we,N=Se,P=!0,C=c?a.jsx("div",{className:X("cursor-pointer",r),children:c(b)}):a.jsxs(U,{variant:"outline",role:"combobox",className:X("justify-between",j,r),children:[b?b.label:p,a.jsx(fe,{className:"opacity-50"})]});let k;e[2]!==N||e[3]!==C?(k=a.jsx(N,{asChild:P,children:C}),e[2]=N,e[3]=C,e[4]=k):k=e[4];let I;e[5]!==o?(I=X("p-0",o),e[5]=o,e[6]=I):I=e[6];let M;e[7]===Symbol.for("react.memo_cache_sentinel")?(M={width:"var(--radix-popover-trigger-width)"},e[7]=M):M=e[7];let q;e[8]!==y?(q=a.jsx(je,{placeholder:y,className:"h-9"}),e[8]=y,e[9]=q):q=e[9];let D;e[10]!==x?(D=a.jsx(xe,{children:x}),e[10]=x,e[11]=D):D=e[11];let E;if(e[12]!==n||e[13]!==l||e[14]!==f||e[15]!==w||e[16]!==s){let O;e[18]!==n||e[19]!==f||e[20]!==w||e[21]!==s?(O=A=>{const re=s===A.value;return a.jsx(he,{value:A.label,onSelect:()=>{n(A.value===s?"":A.value),w(!1)},children:f?f(A,re):a.jsxs(a.Fragment,{children:[A.label,a.jsx(de,{className:X("ml-auto",re?"opacity-100":"opacity-0")})]})},A.value)},e[18]=n,e[19]=f,e[20]=w,e[21]=s,e[22]=O):O=e[22],E=l.map(O),e[12]=n,e[13]=l,e[14]=f,e[15]=w,e[16]=s,e[17]=E}else E=e[17];let F;e[23]!==E?(F=a.jsx(ye,{children:E}),e[23]=E,e[24]=F):F=e[24];let L;e[25]!==D||e[26]!==F?(L=a.jsxs(be,{children:[D,F]}),e[25]=D,e[26]=F,e[27]=L):L=e[27];let $;e[28]!==u||e[29]!==q||e[30]!==L?($=a.jsxs(ve,{filter:u,children:[q,L]}),e[28]=u,e[29]=q,e[30]=L,e[31]=$):$=e[31];let K;e[32]!==$||e[33]!==I?(K=a.jsx(_e,{className:I,style:M,children:$}),e[32]=$,e[33]=I,e[34]=K):K=e[34];let B;return e[35]!==_||e[36]!==v||e[37]!==w||e[38]!==K||e[39]!==k?(B=a.jsxs(_,{open:v,onOpenChange:w,children:[k,K]}),e[35]=_,e[36]=v,e[37]=w,e[38]=K,e[39]=k,e[40]=B):B=e[40],B}function Qe(t){const e=S.c(4),{size:l,className:s}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx("path",{d:"M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0z"}),e[0]=n):n=e[0];let i;return e[1]!==s||e[2]!==l?(i=a.jsx("svg",{width:l,height:l,viewBox:"0 0 24 24",fill:"#2684FF","aria-hidden":"true",className:s,children:n}),e[1]=s,e[2]=l,e[3]=i):i=e[3],i}function He(){const t=S.c(12),e=R();let l;t[0]!==e?(l=e("settings.review.title"),t[0]=e,t[1]=l):l=t[1];let s;t[2]!==e?(s=e("settings.review.description"),t[2]=e,t[3]=s):s=t[3];let n;t[4]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(W,{flag:"qa_agent_enabled",icon:a.jsx(Ke,{size:16}),titleKey:"settings.review.qaAgentTitle",descriptionKey:"settings.review.qaAgentDescription"}),t[4]=n):n=t[4];let i;t[5]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(W,{flag:"code_reviewer_enabled",icon:a.jsx(Me,{size:16}),titleKey:"settings.review.codeReviewerTitle",descriptionKey:"settings.review.codeReviewerDescription"}),t[5]=i):i=t[5];let r;t[6]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(W,{flag:"cheap_reviewer_model",icon:a.jsx(qe,{size:16}),titleKey:"settings.review.cheapReviewerModelTitle",descriptionKey:"settings.review.cheapReviewerModelDescription"}),t[6]=r):r=t[6];let o;t[7]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(W,{flag:"auto_merge",icon:a.jsx(Be,{size:16}),titleKey:"settings.review.autoMergeTitle",descriptionKey:"settings.review.autoMergeDescription"}),t[7]=o):o=t[7];let g;t[8]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsxs(te,{children:[n,i,r,o,a.jsx(W,{flag:"auto_assign_report_tasks_to_super_agent",icon:a.jsx(Oe,{size:16}),titleKey:"settings.review.autoAssignReportTasksTitle",descriptionKey:"settings.review.autoAssignReportTasksDescription"})]}),t[8]=g):g=t[8];let c;return t[9]!==l||t[10]!==s?(c=a.jsx(ue,{title:l,description:s,children:g}),t[9]=l,t[10]=s,t[11]=c):c=t[11],c}function W(t){const e=S.c(23),{flag:l,icon:s,titleKey:n,descriptionKey:i}=t,r=R(),o=ze(l),g=Je();let c;e[0]!==r||e[1]!==n?(c=r(n),e[0]=r,e[1]=n,e[2]=c):c=e[2];let f;e[3]!==i||e[4]!==r?(f=r(i),e[3]=i,e[4]=r,e[5]=f):f=e[5];const m=g.isPending;let d;e[6]!==r||e[7]!==n?(d=r(n),e[6]=r,e[7]=n,e[8]=d):d=e[8];let u;e[9]!==l||e[10]!==g||e[11]!==r?(u=x=>g.mutate(l,x,{onError:()=>T.error(r("settings.review.updateError"))}),e[9]=l,e[10]=g,e[11]=r,e[12]=u):u=e[12];let p;e[13]!==o||e[14]!==g.isPending||e[15]!==d||e[16]!==u?(p=a.jsx(ae,{checked:o,disabled:m,"aria-label":d,onCheckedChange:u}),e[13]=o,e[14]=g.isPending,e[15]=d,e[16]=u,e[17]=p):p=e[17];let j;return e[18]!==s||e[19]!==c||e[20]!==f||e[21]!==p?(j=a.jsx(J,{icon:s,title:c,description:f,action:p}),e[18]=s,e[19]=c,e[20]=f,e[21]=p,e[22]=j):j=e[22],j}function ge(t){const e=t.projectName?.replace(/\s+/g," ").trim(),l=t.name.trim();return e?{primary:e,secondary:[l,t.projectKey].filter(Boolean).join(" · ")}:{primary:l,secondary:t.projectKey??""}}function Ye(t){const{primary:e,secondary:l}=ge(t);return[e,l,`#${t.id}`].filter(Boolean).join(" ")}function ce(t){return t.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase()}function We(t,e){const l=ce(e).trim();if(!l)return 1;const s=ce(t);return l.split(/\s+/).every(n=>s.includes(n))?1:0}function Xe(){const t=S.c(7),{org:e}=G(),l=H();let s;t[0]!==e.id?(s=Q.jiraIntegration(e.id),t[0]=e.id,t[1]=s):s=t[1];let n;t[2]!==l?(n=async()=>(await l.call("JIRA_INTEGRATION_GET",{})).integration,t[2]=l,t[3]=n):n=t[3];let i;return t[4]!==s||t[5]!==n?(i={queryKey:s,queryFn:n},t[4]=s,t[5]=n,t[6]=i):i=t[6],ie(i)}function Y(){const t=S.c(8),{org:e}=G(),l=H(),s=le();let n;t[0]!==l?(n=async o=>(await l.call("JIRA_INTEGRATION_UPSERT",o)).integration,t[0]=l,t[1]=n):n=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==n||t[6]!==i?(r={mutationFn:n,onSettled:i},t[5]=n,t[6]=i,t[7]=r):r=t[7],ne(r)}function Ze(){const t=S.c(8),{org:e}=G(),l=H(),s=le();let n;t[0]!==l?(n=()=>l.call("JIRA_INTEGRATION_DELETE",{}),t[0]=l,t[1]=n):n=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==n||t[6]!==i?(r={mutationFn:n,onSettled:i},t[5]=n,t[6]=i,t[7]=r):r=t[7],ne(r)}function et(t){const e=S.c(8),{org:l}=G(),s=H();let n;e[0]!==l.id?(n=Q.jiraBoards(l.id),e[0]=l.id,e[1]=n):n=e[1];let i;e[2]!==s?(i=async()=>(await s.call("JIRA_BOARDS_LIST",{})).boards,e[2]=s,e[3]=i):i=e[3];let r;return e[4]!==t||e[5]!==n||e[6]!==i?(r={queryKey:n,enabled:t,staleTime:6e4,queryFn:i},e[4]=t,e[5]=n,e[6]=i,e[7]=r):r=e[7],ie(r)}function tt(t){const e=S.c(10),{org:l}=G(),s=H();let n;e[0]!==t||e[1]!==l.id?(n=Q.jiraBoardColumns(l.id,t??""),e[0]=t,e[1]=l.id,e[2]=n):n=e[2];const i=t!==null;let r;e[3]!==t||e[4]!==s?(r=async()=>(await s.call("JIRA_BOARD_COLUMNS_LIST",{boardId:t??""})).columns,e[3]=t,e[4]=s,e[5]=r):r=e[5];let o;return e[6]!==n||e[7]!==i||e[8]!==r?(o={queryKey:n,enabled:i,staleTime:6e4,queryFn:r},e[6]=n,e[7]=i,e[8]=r,e[9]=o):o=e[9],ie(o)}function st(){const t=S.c(8),{org:e}=G(),l=H(),s=le();let n;t[0]!==l?(n=async()=>(await l.call("JIRA_SYNC_RUN",{})).result,t[0]=l,t[1]=n):n=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==n||t[6]!==i?(r={mutationFn:n,onSettled:i},t[5]=n,t[6]=i,t[7]=r):r=t[7],ne(r)}const it=[{value:"triage",labelKey:"taskBoard.config.statusBacklog"},{value:"todo",labelKey:"taskBoard.config.statusTodo"},{value:"in_progress",labelKey:"taskBoard.config.statusInProgress"},{value:"in_review",labelKey:"taskBoard.config.statusInReview"},{value:"done",labelKey:"taskBoard.config.statusDone"},{value:"archived",labelKey:"taskBoard.config.statusArchived"}],se="__dont_sync__";function z(t,e){return t instanceof Error?t.message:e}const lt="https://id.atlassian.com/manage-profile/security/api-tokens";function nt(t){const e=S.c(7),{stepKeys:l}=t,s=R();let n;if(e[0]!==l||e[1]!==s){let r;e[3]!==s?(r=o=>a.jsx("li",{children:s(o)},o),e[3]=s,e[4]=r):r=e[4],n=l.map(r),e[0]=l,e[1]=s,e[2]=n}else n=e[2];let i;return e[5]!==n?(i=a.jsx("ol",{className:"list-decimal pl-5 flex flex-col gap-1 text-xs text-muted-foreground",children:n}),e[5]=n,e[6]=i):i=e[6],i}function at(){const t=S.c(69),e=R(),l=Y(),[s,n]=V.useState(""),[i,r]=V.useState(""),[o,g]=V.useState("");let c;t[0]!==o||t[1]!==i||t[2]!==s?(c=s.trim()!==""&&i.trim()!==""&&o.trim()!=="",t[0]=o,t[1]=i,t[2]=s,t[3]=c):c=t[3];const f=c;let m;t[4]!==e?(m=e("settings.jira.siteLabel"),t[4]=e,t[5]=m):m=t[5];let d;t[6]!==m?(d=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:m}),t[6]=m,t[7]=d):d=t[7];let u;t[8]===Symbol.for("react.memo_cache_sentinel")?(u=A=>n(A.target.value),t[8]=u):u=t[8];let p;t[9]!==e?(p=e("settings.jira.sitePlaceholder"),t[9]=e,t[10]=p):p=t[10];let j;t[11]!==s||t[12]!==p?(j=a.jsx(Z,{value:s,onChange:u,placeholder:p,autoComplete:"off"}),t[11]=s,t[12]=p,t[13]=j):j=t[13];let x;t[14]!==d||t[15]!==j?(x=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[d,j]}),t[14]=d,t[15]=j,t[16]=x):x=t[16];let y;t[17]!==e?(y=e("settings.jira.emailLabel"),t[17]=e,t[18]=y):y=t[18];let h;t[19]!==y?(h=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:y}),t[19]=y,t[20]=h):h=t[20];let b;t[21]===Symbol.for("react.memo_cache_sentinel")?(b=A=>r(A.target.value),t[21]=b):b=t[21];let v;t[22]!==e?(v=e("settings.jira.emailPlaceholder"),t[22]=e,t[23]=v):v=t[23];let w;t[24]!==i||t[25]!==v?(w=a.jsx(Z,{value:i,onChange:b,placeholder:v,autoComplete:"off"}),t[24]=i,t[25]=v,t[26]=w):w=t[26];let _;t[27]!==w||t[28]!==h?(_=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[h,w]}),t[27]=w,t[28]=h,t[29]=_):_=t[29];let N;t[30]!==e?(N=e("settings.jira.tokenLabel"),t[30]=e,t[31]=N):N=t[31];let P;t[32]!==N?(P=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:N}),t[32]=N,t[33]=P):P=t[33];let C;t[34]!==e?(C=e("settings.jira.createTokenLink"),t[34]=e,t[35]=C):C=t[35];let k;t[36]===Symbol.for("react.memo_cache_sentinel")?(k=a.jsx(pe,{size:12}),t[36]=k):k=t[36];let I;t[37]!==C?(I=a.jsxs("a",{href:lt,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 text-xs text-foreground hover:underline",children:[C,k]}),t[37]=C,t[38]=I):I=t[38];let M;t[39]!==P||t[40]!==I?(M=a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[P,I]}),t[39]=P,t[40]=I,t[41]=M):M=t[41];let q;t[42]===Symbol.for("react.memo_cache_sentinel")?(q=A=>g(A.target.value),t[42]=q):q=t[42];let D;t[43]!==e?(D=e("settings.jira.tokenPlaceholder"),t[43]=e,t[44]=D):D=t[44];let E;t[45]!==o||t[46]!==D?(E=a.jsx(Z,{type:"password",value:o,onChange:q,placeholder:D,autoComplete:"off"}),t[45]=o,t[46]=D,t[47]=E):E=t[47];let F;t[48]!==M||t[49]!==E?(F=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[M,E]}),t[48]=M,t[49]=E,t[50]=F):F=t[50];const L=!f||l.isPending;let $;t[51]!==o||t[52]!==i||t[53]!==s||t[54]!==e||t[55]!==l?($=()=>l.mutate({siteUrl:s.trim(),email:i.trim(),apiToken:o.trim()},{onSuccess:()=>T.success(e("settings.jira.connected")),onError:A=>T.error(z(A,e("settings.jira.connectFailed")))}),t[51]=o,t[52]=i,t[53]=s,t[54]=e,t[55]=l,t[56]=$):$=t[56];let K;t[57]!==e||t[58]!==l.isPending?(K=l.isPending?e("settings.jira.connecting"):e("settings.jira.connect"),t[57]=e,t[58]=l.isPending,t[59]=K):K=t[59];let B;t[60]!==L||t[61]!==$||t[62]!==K?(B=a.jsx(U,{size:"sm",className:"w-fit",disabled:L,onClick:$,children:K}),t[60]=L,t[61]=$,t[62]=K,t[63]=B):B=t[63];let O;return t[64]!==_||t[65]!==F||t[66]!==B||t[67]!==x?(O=a.jsxs("div",{className:"flex flex-col gap-4 mt-3 max-w-md",children:[x,_,F,B]}),t[64]=_,t[65]=F,t[66]=B,t[67]=x,t[68]=O):O=t[68],O}function rt(t){const e=S.c(7),{integration:l}=t,s=R();if(l.lastSyncError){let r;return e[0]!==l.lastSyncError?(r=a.jsx("p",{className:"text-xs text-destructive truncate",children:l.lastSyncError}),e[0]=l.lastSyncError,e[1]=r):r=e[1],r}let n;e[2]!==l.lastSyncedAt||e[3]!==s?(n=l.lastSyncedAt?s("settings.jira.lastSynced",{ago:Ue(l.lastSyncedAt)}):s("settings.jira.waitingFirstSync"),e[2]=l.lastSyncedAt,e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==n?(i=a.jsx("p",{className:"text-xs text-muted-foreground",children:n}),e[5]=n,e[6]=i):i=e[6],i}function ot(t){const e=S.c(23),{integration:l}=t,s=R(),n=Y(),i=tt(l.boardId);if(i.isPending){let m;return e[0]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsx(me,{className:"h-24 w-full mt-3"}),e[0]=m):m=e[0],m}if(i.isError){let m;e[1]!==i.error||e[2]!==s?(m=z(i.error,s("settings.jira.columnsFailed")),e[1]=i.error,e[2]=s,e[3]=m):m=e[3];let d;return e[4]!==m?(d=a.jsx("p",{className:"text-xs text-destructive mt-3",children:m}),e[4]=m,e[5]=d):d=e[5],d}let r;e[6]!==l.statusMapping||e[7]!==s||e[8]!==n?(r=function(d,u){const p={...l.statusMapping};for(const j of d)u===se?delete p[j]:p[j]=u;n.mutate({statusMapping:p},{onError:j=>T.error(z(j,s("settings.jira.saveFailed")))})},e[6]=l.statusMapping,e[7]=s,e[8]=n,e[9]=r):r=e[9];const o=r;let g;e[10]!==i.data?(g=i.data??[],e[10]=i.data,e[11]=g):g=e[11];let c;if(e[12]!==l.statusMapping||e[13]!==o||e[14]!==s||e[15]!==g){let m;e[17]!==l.statusMapping||e[18]!==o||e[19]!==s?(m=d=>a.jsxs("div",{className:"flex items-center justify-between gap-4 py-2.5 border-b border-border/60 last:border-b-0",children:[a.jsxs("div",{className:"min-w-0",children:[a.jsx("span",{className:"text-sm truncate",children:d.name}),(d.statuses.length>1||d.statuses[0]!==d.name)&&a.jsx("p",{className:"text-xs text-muted-foreground truncate",children:d.statuses.join(", ")})]}),a.jsxs(De,{value:(d.statuses[0]&&l.statusMapping[d.statuses[0]])??se,onValueChange:u=>o(d.statuses,u),children:[a.jsx(Ee,{className:"w-44 shrink-0",children:a.jsx(Fe,{})}),a.jsxs($e,{children:[a.jsx(oe,{value:se,children:s("settings.jira.dontSync")}),it.map(u=>a.jsx(oe,{value:u.value,children:s(u.labelKey)},u.value))]})]})]},d.name),e[17]=l.statusMapping,e[18]=o,e[19]=s,e[20]=m):m=e[20],c=g.map(m),e[12]=l.statusMapping,e[13]=o,e[14]=s,e[15]=g,e[16]=c}else c=e[16];let f;return e[21]!==c?(f=a.jsx("div",{className:"flex flex-col mt-3",children:c}),e[21]=c,e[22]=f):f=e[22],f}function ct(t){const e=S.c(44),{integration:l}=t,s=R(),n=Ze(),[i,r]=V.useState(!1),o=l.siteUrl,g=l.email;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=()=>r(!0),e[0]=c):c=e[0];let f;e[1]!==s?(f=s("settings.jira.disconnect"),e[1]=s,e[2]=f):f=e[2];let m;e[3]!==f?(m=a.jsx(U,{variant:"outline",size:"sm",onClick:c,children:f}),e[3]=f,e[4]=m):m=e[4];let d;e[5]!==l.email||e[6]!==l.siteUrl||e[7]!==m?(d=a.jsx(J,{title:o,description:g,action:m}),e[5]=l.email,e[6]=l.siteUrl,e[7]=m,e[8]=d):d=e[8];let u;e[9]!==s?(u=s("settings.jira.disconnectTitle"),e[9]=s,e[10]=u):u=e[10];let p;e[11]!==u?(p=a.jsx(Ne,{children:u}),e[11]=u,e[12]=p):p=e[12];let j;e[13]!==s?(j=s("settings.jira.disconnectDescription"),e[13]=s,e[14]=j):j=e[14];let x;e[15]!==j?(x=a.jsx(Ce,{children:j}),e[15]=j,e[16]=x):x=e[16];let y;e[17]!==x||e[18]!==p?(y=a.jsxs(ke,{children:[p,x]}),e[17]=x,e[18]=p,e[19]=y):y=e[19];let h;e[20]!==s?(h=s("settings.jira.cancel"),e[20]=s,e[21]=h):h=e[21];let b;e[22]!==h?(b=a.jsx(Te,{children:h}),e[22]=h,e[23]=b):b=e[23];let v;e[24]!==n||e[25]!==s?(v=()=>n.mutate(void 0,{onSuccess:()=>T.success(s("settings.jira.disconnected")),onError:I=>T.error(z(I,s("settings.jira.saveFailed")))}),e[24]=n,e[25]=s,e[26]=v):v=e[26];let w;e[27]!==s?(w=s("settings.jira.disconnect"),e[27]=s,e[28]=w):w=e[28];let _;e[29]!==v||e[30]!==w?(_=a.jsx(Pe,{onClick:v,children:w}),e[29]=v,e[30]=w,e[31]=_):_=e[31];let N;e[32]!==b||e[33]!==_?(N=a.jsxs(Ie,{children:[b,_]}),e[32]=b,e[33]=_,e[34]=N):N=e[34];let P;e[35]!==y||e[36]!==N?(P=a.jsxs(Ae,{children:[y,N]}),e[35]=y,e[36]=N,e[37]=P):P=e[37];let C;e[38]!==i||e[39]!==P?(C=a.jsx(Re,{open:i,onOpenChange:r,children:P}),e[38]=i,e[39]=P,e[40]=C):C=e[40];let k;return e[41]!==C||e[42]!==d?(k=a.jsxs(a.Fragment,{children:[d,C]}),e[41]=C,e[42]=d,e[43]=k):k=e[43],k}function dt(t){const e=S.c(36),{integration:l}=t,s=R(),n=Y(),i=et(!0);let r,o;e[0]!==i.data||e[1]!==l.boardId||e[2]!==l.boardName?(r=(i.data??[]).map(mt),o=l.boardId?r.find(b=>b.value===l.boardId)?.primary??l.boardName??l.boardId:null,e[0]=i.data,e[1]=l.boardId,e[2]=l.boardName,e[3]=r,e[4]=o):(r=e[3],o=e[4]);const g=o;let c;e[5]!==s?(c=s("settings.jira.boardLabel"),e[5]=s,e[6]=c):c=e[6];let f;e[7]!==s?(f=s("settings.jira.boardDescription"),e[7]=s,e[8]=f):f=e[8];const m=l.boardId??"";let d;e[9]!==s?(d=s("settings.jira.boardPlaceholder"),e[9]=s,e[10]=d):d=e[10];let u;e[11]!==s?(u=s("settings.jira.boardSearchPlaceholder"),e[11]=s,e[12]=u):u=e[12];let p;e[13]!==i.isPending||e[14]!==s?(p=i.isPending?s("settings.jira.loadingBoards"):s("settings.jira.noBoardsMatch"),e[13]=i.isPending,e[14]=s,e[15]=p):p=e[15];let j;e[16]!==g||e[17]!==s?(j=()=>a.jsxs(U,{variant:"outline",role:"combobox",className:"w-72 justify-between font-normal",children:[a.jsx("span",{className:"truncate",children:g??s("settings.jira.boardPlaceholder")}),a.jsx(fe,{className:"opacity-50 shrink-0"})]}),e[16]=g,e[17]=s,e[18]=j):j=e[18];let x;e[19]!==r||e[20]!==l.boardId||e[21]!==s||e[22]!==n?(x=b=>{!b||b===l.boardId||n.mutate({boardId:b,boardName:r.find(v=>v.value===b)?.primary??null,statusMapping:{},enabled:!1},{onError:v=>T.error(z(v,s("settings.jira.saveFailed")))})},e[19]=r,e[20]=l.boardId,e[21]=s,e[22]=n,e[23]=x):x=e[23];let y;e[24]!==r||e[25]!==m||e[26]!==d||e[27]!==u||e[28]!==p||e[29]!==j||e[30]!==x?(y=a.jsx(Ge,{options:r,value:m,width:"w-72",triggerClassName:"shrink-0",placeholder:d,searchPlaceholder:u,filter:We,emptyMessage:p,renderTrigger:j,renderItem:ft,onChange:x}),e[24]=r,e[25]=m,e[26]=d,e[27]=u,e[28]=p,e[29]=j,e[30]=x,e[31]=y):y=e[31];let h;return e[32]!==y||e[33]!==c||e[34]!==f?(h=a.jsx(J,{title:c,description:f,action:y}),e[32]=y,e[33]=c,e[34]=f,e[35]=h):h=e[35],h}function ft(t,e){return a.jsxs("div",{className:"flex items-start gap-2 min-w-0 w-full",children:[a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("p",{className:"truncate",children:t.primary}),a.jsx("p",{className:"text-xs text-muted-foreground truncate",children:t.secondary})]}),a.jsx(de,{className:X("mt-0.5 shrink-0",e?"opacity-100":"opacity-0")})]})}function mt(t){const{primary:e,secondary:l}=ge(t);return{value:String(t.id),label:Ye(t),primary:e,secondary:l}}function ut(t){const e=S.c(10),{integration:l}=t,s=R();let n;e[0]!==s?(n=s("settings.jira.mappingLabel"),e[0]=s,e[1]=n):n=e[1];let i;e[2]!==s?(i=s("settings.jira.mappingDescription"),e[2]=s,e[3]=i):i=e[3];let r;e[4]!==l?(r=a.jsx(ot,{integration:l}),e[4]=l,e[5]=r):r=e[5];let o;return e[6]!==n||e[7]!==i||e[8]!==r?(o=a.jsx(J,{title:n,description:i,children:r}),e[6]=n,e[7]=i,e[8]=r,e[9]=o):o=e[9],o}function gt(t){const e=S.c(29),{integration:l}=t,s=R(),n=Y(),[i,r]=V.useState(l.jqlFilter??"");let o;e[0]!==i?(o=i.trim(),e[0]=i,e[1]=o):o=e[1];const g=o!==(l.jqlFilter??"");let c;e[2]!==s?(c=s("settings.jira.jqlLabel"),e[2]=s,e[3]=c):c=e[3];let f;e[4]!==s?(f=s("settings.jira.jqlDescription"),e[4]=s,e[5]=f):f=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=v=>r(v.target.value),e[6]=m):m=e[6];let d;e[7]!==s?(d=s("settings.jira.jqlPlaceholder"),e[7]=s,e[8]=d):d=e[8];let u;e[9]!==d||e[10]!==i?(u=a.jsx(Z,{value:i,onChange:m,placeholder:d,className:"font-mono text-xs"}),e[9]=d,e[10]=i,e[11]=u):u=e[11];const p=!g||n.isPending;let j;e[12]!==s||e[13]!==n||e[14]!==i?(j=()=>n.mutate({jqlFilter:i.trim()===""?null:i.trim()},{onSuccess:()=>T.success(s("settings.jira.jqlSaved")),onError:v=>T.error(z(v,s("settings.jira.saveFailed")))}),e[12]=s,e[13]=n,e[14]=i,e[15]=j):j=e[15];let x;e[16]!==s?(x=s("settings.jira.jqlSave"),e[16]=s,e[17]=x):x=e[17];let y;e[18]!==p||e[19]!==j||e[20]!==x?(y=a.jsx(U,{variant:"outline",size:"sm",className:"shrink-0",disabled:p,onClick:j,children:x}),e[18]=p,e[19]=j,e[20]=x,e[21]=y):y=e[21];let h;e[22]!==y||e[23]!==u?(h=a.jsxs("div",{className:"flex items-center gap-2 mt-3",children:[u,y]}),e[22]=y,e[23]=u,e[24]=h):h=e[24];let b;return e[25]!==h||e[26]!==c||e[27]!==f?(b=a.jsx(J,{title:c,description:f,children:h}),e[25]=h,e[26]=c,e[27]=f,e[28]=b):b=e[28],b}function pt(t){const e=S.c(15),{integration:l}=t,s=R(),n=Y();let i;e[0]!==s?(i=s("settings.jira.autoDelegateLabel"),e[0]=s,e[1]=i):i=e[1];let r;e[2]!==s?(r=s("settings.jira.autoDelegateDescription"),e[2]=s,e[3]=r):r=e[3];let o;e[4]!==s||e[5]!==n?(o=f=>n.mutate({autoDelegate:f},{onError:m=>T.error(z(m,s("settings.jira.saveFailed")))}),e[4]=s,e[5]=n,e[6]=o):o=e[6];let g;e[7]!==l.autoDelegate||e[8]!==o||e[9]!==n.isPending?(g=a.jsx(ae,{checked:l.autoDelegate,disabled:n.isPending,onCheckedChange:o}),e[7]=l.autoDelegate,e[8]=o,e[9]=n.isPending,e[10]=g):g=e[10];let c;return e[11]!==i||e[12]!==r||e[13]!==g?(c=a.jsx(J,{title:i,description:r,action:g}),e[11]=i,e[12]=r,e[13]=g,e[14]=c):c=e[14],c}function jt(t){const e=S.c(32),{integration:l}=t,s=R(),n=Y(),i=st();let r;e[0]!==l.statusMapping?(r=Object.keys(l.statusMapping),e[0]=l.statusMapping,e[1]=r):r=e[1];const o=r.length>0;let g;e[2]!==s?(g=s("settings.jira.enableLabel"),e[2]=s,e[3]=g):g=e[3];let c;e[4]!==l?(c=a.jsx(rt,{integration:l}),e[4]=l,e[5]=c):c=e[5];const f=!l.enabled||i.isPending;let m;e[6]!==i||e[7]!==s?(m=()=>i.mutate(void 0,{onSuccess:h=>{"error"in h?T.error(h.error):T.success(s("settings.jira.syncDone",{created:String(h.created),updated:String(h.updated)}))},onError:h=>T.error(z(h,s("settings.jira.syncFailed")))}),e[6]=i,e[7]=s,e[8]=m):m=e[8];let d;e[9]!==i.isPending||e[10]!==s?(d=i.isPending?s("settings.jira.syncing"):s("settings.jira.syncNow"),e[9]=i.isPending,e[10]=s,e[11]=d):d=e[11];let u;e[12]!==f||e[13]!==m||e[14]!==d?(u=a.jsx(U,{variant:"outline",size:"sm",disabled:f,onClick:m,children:d}),e[12]=f,e[13]=m,e[14]=d,e[15]=u):u=e[15];let p;e[16]!==o||e[17]!==l.boardId||e[18]!==s||e[19]!==n?(p=h=>{if(h&&(!l.boardId||!o)){T.error(s("settings.jira.enableRequirements"));return}n.mutate({enabled:h},{onError:b=>T.error(z(b,s("settings.jira.saveFailed")))})},e[16]=o,e[17]=l.boardId,e[18]=s,e[19]=n,e[20]=p):p=e[20];let j;e[21]!==l.enabled||e[22]!==p||e[23]!==n.isPending?(j=a.jsx(ae,{checked:l.enabled,disabled:n.isPending,onCheckedChange:p}),e[21]=l.enabled,e[22]=p,e[23]=n.isPending,e[24]=j):j=e[24];let x;e[25]!==u||e[26]!==j?(x=a.jsxs("div",{className:"flex items-center gap-3",children:[u,j]}),e[25]=u,e[26]=j,e[27]=x):x=e[27];let y;return e[28]!==x||e[29]!==g||e[30]!==c?(y=a.jsx(J,{title:g,description:c,action:x}),e[28]=x,e[29]=g,e[30]=c,e[31]=y):y=e[31],y}function xt(t){const e=S.c(24),{integration:l}=t,s=R(),n=`${window.location.origin}/api/_jira/webhook/${l.webhookSecret}`;let i;e[0]!==s?(i=s("settings.jira.webhookTitle"),e[0]=s,e[1]=i):i=e[1];let r;e[2]!==s?(r=s("settings.jira.webhookDescription"),e[2]=s,e[3]=r):r=e[3];let o;e[4]!==n?(o=a.jsx(Z,{readOnly:!0,value:n,className:"font-mono text-xs"}),e[4]=n,e[5]=o):o=e[5];let g;e[6]!==s||e[7]!==n?(g=()=>{navigator.clipboard.writeText(n),T.success(s("settings.jira.webhookCopied"))},e[6]=s,e[7]=n,e[8]=g):g=e[8];let c;e[9]!==s?(c=s("settings.jira.webhookCopy"),e[9]=s,e[10]=c):c=e[10];let f;e[11]!==g||e[12]!==c?(f=a.jsx(U,{variant:"outline",size:"sm",className:"shrink-0",onClick:g,children:c}),e[11]=g,e[12]=c,e[13]=f):f=e[13];let m;e[14]!==o||e[15]!==f?(m=a.jsxs("div",{className:"flex items-center gap-2",children:[o,f]}),e[14]=o,e[15]=f,e[16]=m):m=e[16];let d;e[17]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(nt,{stepKeys:["settings.jira.webhookStep1","settings.jira.webhookStep2","settings.jira.webhookStep3","settings.jira.webhookStep4","settings.jira.webhookStep5"]}),e[17]=d):d=e[17];let u;e[18]!==m?(u=a.jsxs("div",{className:"flex flex-col gap-3 mt-3",children:[m,d]}),e[18]=m,e[19]=u):u=e[19];let p;return e[20]!==i||e[21]!==r||e[22]!==u?(p=a.jsx(J,{title:i,description:r,children:u}),e[20]=i,e[21]=r,e[22]=u,e[23]=p):p=e[23],p}function ht(){const t=S.c(28),e=R(),l=Xe();if(l.isPending){let d;return t[0]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(te,{children:a.jsx("div",{className:"p-4",children:a.jsx(me,{className:"h-40 w-full"})})}),t[0]=d):d=t[0],d}if(!l.data){let d;t[1]!==e?(d=e("settings.jira.connectTitle"),t[1]=e,t[2]=d):d=t[2];let u;t[3]!==e?(u=e("settings.jira.connectDescription"),t[3]=e,t[4]=u):u=t[4];let p;t[5]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(at,{}),t[5]=p):p=t[5];let j;return t[6]!==d||t[7]!==u?(j=a.jsx(te,{children:a.jsx(J,{title:d,description:u,children:p})}),t[6]=d,t[7]=u,t[8]=j):j=t[8],j}const s=l.data;let n,i,r;t[9]!==s?(n=a.jsx(ct,{integration:s}),i=a.jsx(dt,{integration:s}),r=s.boardId&&a.jsx(ut,{integration:s}),t[9]=s,t[10]=n,t[11]=i,t[12]=r):(n=t[10],i=t[11],r=t[12]);let o;t[13]!==s?(o=s.boardId&&a.jsx(gt,{integration:s}),t[13]=s,t[14]=o):o=t[14];let g;t[15]!==s?(g=s.boardId&&a.jsx(pt,{integration:s}),t[15]=s,t[16]=g):g=t[16];let c,f;t[17]!==s?(c=a.jsx(jt,{integration:s}),f=a.jsx(xt,{integration:s}),t[17]=s,t[18]=c,t[19]=f):(c=t[18],f=t[19]);let m;return t[20]!==n||t[21]!==i||t[22]!==r||t[23]!==o||t[24]!==g||t[25]!==c||t[26]!==f?(m=a.jsxs(te,{children:[n,i,r,o,g,c,f]}),t[20]=n,t[21]=i,t[22]=r,t[23]=o,t[24]=g,t[25]=c,t[26]=f,t[27]=m):m=t[27],m}function yt(){const t=S.c(16),e=R();let l;t[0]!==e?(l=e("settings.nav.tasks"),t[0]=e,t[1]=l):l=t[1];let s;t[2]!==l?(s=a.jsx(ee.Title,{children:l}),t[2]=l,t[3]=s):s=t[3];let n;t[4]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(He,{}),t[4]=n):n=t[4];let i;t[5]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(Qe,{size:18}),t[5]=i):i=t[5];let r;t[6]!==e?(r=e("settings.jira.sectionTitle"),t[6]=e,t[7]=r):r=t[7];let o;t[8]!==r?(o=a.jsxs("span",{className:"flex items-center gap-2",children:[i,r]}),t[8]=r,t[9]=o):o=t[9];let g;t[10]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(ht,{}),t[10]=g):g=t[10];let c;t[11]!==o?(c=a.jsx(ue,{title:o,children:g}),t[11]=o,t[12]=c):c=t[12];let f;return t[13]!==s||t[14]!==c?(f=a.jsx(ee,{children:a.jsx(ee.Content,{children:a.jsx(ee.Body,{children:a.jsxs(Le,{children:[s,n,c]})})})}),t[13]=s,t[14]=c,t[15]=f):f=t[15],f}function fs(){const t=S.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(Ve,{capability:"org:manage",area:"settings",children:a.jsx(yt,{})}),t[0]=e):e=t[0],e}export{fs as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as o,m as l,j as n}from"./index-
|
|
1
|
+
import{c as o,m as l,j as n}from"./index-e-HlArl7.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=l("placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-xl bg-background dark:bg-input/30 px-3 py-2 text-sm transition-[color,box-shadow] outline-none focus-visible:ring-[2px] card-shadow disabled:cursor-not-allowed disabled:opacity-50",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as x,aJ as b,j as c,aG as m,aM as k,au as p,bK as M,bL as T,aL as S,bJ as A,aI as F,aR as $,c as P,m as C}from"./index-
|
|
1
|
+
import{r as x,aJ as b,j as c,aG as m,aM as k,au as p,bK as M,bL as T,aL as S,bJ as A,aI as F,aR as $,c as P,m as C}from"./index-e-HlArl7.js";var j="Toggle",_=x.forwardRef((a,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...r}=a,[t,o]=b({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":a.disabled?"":void 0,...r,ref:e,onClick:k(a.onClick,()=>{a.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[I]=F(v,[T]),w=T(),h=p.forwardRef((a,e)=>{const{type:l,...s}=a;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(L,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});h.displayName=v;var[z,R]=I(v),D=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=b({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:a.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(y,{...r,ref:e})})}),L=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=b({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:a.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(y,{...r,ref:e})})});h.displayName=v;var[B,J]=I(v),y=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:r,dir:t,loop:o=!0,...i}=a,d=w(l),u=S(t),g={role:"group",dir:u,...i};return c.jsx(B,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(A,{asChild:!0,...d,orientation:r,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((a,e)=>{const l=R(f,a.__scopeToggleGroup),s=J(f,a.__scopeToggleGroup),n=w(a.__scopeToggleGroup),r=l.value.includes(a.value),t=s.disabled||a.disabled,o={...a,pressed:r,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:r,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,value:s,...n}=a,r=R(f,l),t={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},o=r.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?r.onItemActivate(s):r.onItemDeactivate(s)}})}),O=h,H=N;const K=$("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function q(a){const e=P.c(20);let l,s,n,r,t;e[0]!==a?({className:s,variant:t,size:r,children:l,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==r||e[9]!==t?(i={variant:t,size:r},e[8]=r,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==r||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(O,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:o,...n,children:d}),e[14]=n,e[15]=r,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Q(a){const e=P.c(18);let l,s,n,r,t;e[0]!==a?({className:s,children:l,variant:t,size:r,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||r;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==r||e[10]!==t?(u=C(K({variant:o.variant||t,size:o.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=r,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(H,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{q as T,Q as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,m as T,j as i,r as g,b as j,f as k,ac as p,L as N,aP as y,b6 as L}from"./index-
|
|
1
|
+
import{c as u,m as T,j as i,r as g,b as j,f as k,ac as p,L as N,aP as y,b6 as L}from"./index-e-HlArl7.js";function B(t){const e=u.c(14);let l,s,o,n,r;e[0]!==t?({active:l,className:s,ref:n,type:r,...o}=t,e[0]=t,e[1]=l,e[2]=s,e[3]=o,e[4]=n,e[5]=r):(l=e[1],s=e[2],o=e[3],n=e[4],r=e[5]);const c=r===void 0?"button":r,a=l?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground";let f;e[6]!==s||e[7]!==a?(f=T("relative flex size-10 md:size-7 shrink-0 items-center justify-center rounded-md transition-colors","max-md:[&_svg]:size-5","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",a,s),e[6]=s,e[7]=a,e[8]=f):f=e[8];let b;return e[9]!==o||e[10]!==n||e[11]!==f||e[12]!==c?(b=i.jsx("button",{ref:n,type:c,className:f,...o}),e[9]=o,e[10]=n,e[11]=f,e[12]=c,e[13]=b):b=e[13],b}const S=g.createContext(null);function x(){const t=g.use(S);if(!t)throw new Error("Toolbar.* must be used inside <Toolbar>");return t}function v(t){const e=u.c(8),{children:l}=t,[s,o]=g.useState(null),[n,r]=g.useState(null),[c,a]=g.useState(null),[f,b]=g.useState(null);let d;e[0]!==c||e[1]!==f||e[2]!==n||e[3]!==s?(d={togglesEl:s,setTogglesEl:o,tabsEl:n,setTabsEl:r,centerEl:c,setCenterEl:a,rightEl:f,setRightEl:b},e[0]=c,e[1]=f,e[2]=n,e[3]=s,e[4]=d):d=e[4];let h;return e[5]!==l||e[6]!==d?(h=i.jsx(S,{value:d,children:l}),e[5]=l,e[6]=d,e[7]=h):h=e[7],h}function m(t){const e=u.c(2),{children:l}=t;let s;return e[0]!==l?(s=i.jsx(v,{children:i.jsx("div",{className:"flex flex-col h-full min-h-0",children:l})}),e[0]=l,e[1]=s):s=e[1],s}function $(t){const e=u.c(10);let l,s,o;e[0]!==t?({children:l,className:s,...o}=t,e[0]=t,e[1]=l,e[2]=s,e[3]=o):(l=e[1],s=e[2],o=e[3]);let n;e[4]!==s?(n=T("relative z-10 shrink-0 grid grid-cols-3 items-center pl-1 pr-2 h-12 bg-sidebar",s),e[4]=s,e[5]=n):n=e[5];let r;return e[6]!==l||e[7]!==o||e[8]!==n?(r=i.jsx("div",{className:n,...o,children:l}),e[6]=l,e[7]=o,e[8]=n,e[9]=r):r=e[9],r}function C(t){const e=u.c(2),{children:l}=t;let s;return e[0]!==l?(s=i.jsx("div",{className:"flex items-center gap-0.5 min-w-0 justify-self-start",children:l}),e[0]=l,e[1]=s):s=e[1],s}function R(t){const e=u.c(2),{children:l}=t;let s;return e[0]!==l?(s=i.jsx("div",{className:"flex items-center justify-end gap-0.5 min-w-0 justify-self-end",children:l}),e[0]=l,e[1]=s):s=e[1],s}function _(){const t=u.c(13),e=j(),s=y().logo??L,o=typeof s=="string"?s:s.light,n=typeof s=="string"?s:s.dark;let r;t[0]!==e?(r=e("agentShellLayout.toolbar.logo"),t[0]=e,t[1]=r):r=t[1];let c;t[2]!==o||t[3]!==r?(c=i.jsx("img",{src:o,alt:r,className:"size-6 object-contain dark:hidden"}),t[2]=o,t[3]=r,t[4]=c):c=t[4];let a;t[5]!==e?(a=e("agentShellLayout.toolbar.logo"),t[5]=e,t[6]=a):a=t[6];let f;t[7]!==n||t[8]!==a?(f=i.jsx("img",{src:n,alt:a,className:"size-6 object-contain hidden dark:block"}),t[7]=n,t[8]=a,t[9]=f):f=t[9];let b;return t[10]!==c||t[11]!==f?(b=i.jsxs("span",{className:"flex items-center shrink-0 px-2",children:[c,f]}),t[10]=c,t[11]=f,t[12]=b):b=t[12],b}function E(){const t=u.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(g.Suspense,{fallback:i.jsx("span",{className:"shrink-0 size-6 mx-2"}),children:i.jsx(_,{})}),t[0]=e):e=t[0],e}function z(){const t=u.c(12),e=j();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/shell/$org"},t[0]=l):l=t[0];const{org:s}=k(l);let o;t[1]!==s?(o={org:s},t[1]=s,t[2]=o):o=t[2];let n;t[3]!==e?(n=e("agentShellLayout.toolbar.backToHome"),t[3]=e,t[4]=n):n=t[4];let r;t[5]!==e?(r=e("agentShellLayout.toolbar.backToHome"),t[5]=e,t[6]=r):r=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(E,{}),t[7]=c):c=t[7];let a;return t[8]!==o||t[9]!==n||t[10]!==r?(a=i.jsx(N,{to:"/$org",params:o,"aria-label":n,title:r,className:"flex items-center shrink-0 cursor-pointer pl-1",children:c}),t[8]=o,t[9]=n,t[10]=r,t[11]=a):a=t[11],a}function P(){const t=u.c(2),{setCenterEl:e}=x();let l;return t[0]!==e?(l=i.jsx("div",{ref:e,className:"min-w-0 flex items-center justify-center gap-2"}),t[0]=e,t[1]=l):l=t[1],l}function w(t){const e=u.c(3),{children:l}=t,{centerEl:s}=x();if(!s)return null;let o;return e[0]!==s||e[1]!==l?(o=p.createPortal(l,s),e[0]=s,e[1]=l,e[2]=o):o=e[2],o}function H(t){const e=u.c(5),{className:l}=t,{setTabsEl:s}=x();let o;e[0]!==l?(o=T("shrink-0 flex items-center",l),e[0]=l,e[1]=o):o=e[1];let n;return e[2]!==s||e[3]!==o?(n=i.jsx("div",{ref:s,className:o}),e[2]=s,e[3]=o,e[4]=n):n=e[4],n}function I(t){const e=u.c(3),{children:l}=t,{tabsEl:s}=x();if(!s)return null;let o;return e[0]!==l||e[1]!==s?(o=p.createPortal(l,s),e[0]=l,e[1]=s,e[2]=o):o=e[2],o}function D(t){const e=u.c(5),{className:l}=t,{setTogglesEl:s}=x();let o;e[0]!==l?(o=T("contents",l),e[0]=l,e[1]=o):o=e[1];let n;return e[2]!==s||e[3]!==o?(n=i.jsx("div",{ref:s,className:o}),e[2]=s,e[3]=o,e[4]=n):n=e[4],n}function O(){const t=u.c(2),{setRightEl:e}=x();let l;return t[0]!==e?(l=i.jsx("div",{ref:e,className:"flex items-center justify-end gap-0.5 shrink-0"}),t[0]=e,t[1]=l):l=t[1],l}m.Provider=v;m.Header=$;m.LeftColumn=C;m.RightColumn=R;m.Logo=E;m.LogoLink=z;m.CenterSlot=P;m.Center=w;m.TabsSlot=H;m.Tabs=I;m.TogglesSlot=D;m.RightSlot=O;export{B as T,m as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,j as c,aG as S,aN as J,aJ as Q,c$ as Z,aK as H,d0 as ee,aM as C,bM as $,d1 as te,d2 as G,d3 as oe,d4 as re,aI as ne,d5 as se,d6 as ae,c as j,m as ie}from"./index-
|
|
1
|
+
import{r as a,j as c,aG as S,aN as J,aJ as Q,c$ as Z,aK as H,d0 as ee,aM as C,bM as $,d1 as te,d2 as G,d3 as oe,d4 as re,aI as ne,d5 as se,d6 as ae,c as j,m as ie}from"./index-e-HlArl7.js";var le=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ce="VisuallyHidden",V=a.forwardRef((o,e)=>c.jsx(S.span,{...o,ref:e,style:{...le,...o.style}}));V.displayName=ce;var ue=V,[O]=ne("Tooltip",[G]),D=G(),z="TooltipProvider",de=700,L="tooltip.open",[pe,k]=O(z),F=o=>{const{__scopeTooltip:e,delayDuration:t=de,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=a.useRef(!0),d=a.useRef(!1),i=a.useRef(0);return a.useEffect(()=>{const p=i.current;return()=>window.clearTimeout(p)},[]),c.jsx(pe,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:a.useCallback(()=>{window.clearTimeout(i.current),l.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:a.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};F.displayName=z;var R="Tooltip",[fe,_]=O(R),Y=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,i=k(R,o.__scopeTooltip),p=D(e),[u,v]=a.useState(null),x=J(),f=a.useRef(0),h=l??i.disableHoverableContent,T=d??i.delayDuration,g=a.useRef(!1),[y,m]=Q({prop:r,defaultProp:n??!1,onChange:I=>{I?(i.onOpen(),document.dispatchEvent(new CustomEvent(L))):i.onClose(),s?.(I)},caller:R}),w=a.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),E=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,m(!0)},[m]),P=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m(!1)},[m]),M=a.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,m(!0),f.current=0},T)},[T,m]);return a.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(Z,{...p,children:c.jsx(fe,{scope:e,contentId:x,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:a.useCallback(()=>{i.isOpenDelayedRef.current?M():E()},[i.isOpenDelayedRef,M,E]),onTriggerLeave:a.useCallback(()=>{h?P():(window.clearTimeout(f.current),f.current=0)},[P,h]),onOpen:E,onClose:P,disableHoverableContent:h,children:t})})};Y.displayName=R;var A="TooltipTrigger",B=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(A,t),s=k(A,t),l=D(t),d=a.useRef(null),i=H(e,d,n.onTriggerChange),p=a.useRef(!1),u=a.useRef(!1),v=a.useCallback(()=>p.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(ee,{asChild:!0,...l,children:c.jsx(S.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:i,onPointerMove:C(o.onPointerMove,x=>{x.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:C(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:C(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:C(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:C(o.onBlur,n.onClose),onClick:C(o.onClick,n.onClose)})})});B.displayName=A;var N="TooltipPortal",[ve,xe]=O(N,{forceMount:void 0}),U=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(N,e);return c.jsx(ve,{scope:e,forceMount:t,children:c.jsx($,{present:t||s.open,children:c.jsx(te,{asChild:!0,container:n,children:r})})})};U.displayName=N;var b="TooltipContent",q=a.forwardRef((o,e)=>{const t=xe(b,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(b,o.__scopeTooltip);return c.jsx($,{present:r||l.open,children:l.disableHoverableContent?c.jsx(K,{side:n,...s,ref:e}):c.jsx(he,{side:n,...s,ref:e})})}),he=a.forwardRef((o,e)=>{const t=_(b,o.__scopeTooltip),r=k(b,o.__scopeTooltip),n=a.useRef(null),s=H(e,n),[l,d]=a.useState(null),{trigger:i,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,x=a.useCallback(()=>{d(null),v(!1)},[v]),f=a.useCallback((h,T)=>{const g=h.currentTarget,y={x:h.clientX,y:h.clientY},m=ye(y,g.getBoundingClientRect()),w=Ce(y,m),E=be(T.getBoundingClientRect()),P=Ee([...w,...E]);d(P),v(!0)},[v]);return a.useEffect(()=>()=>x(),[x]),a.useEffect(()=>{if(i&&u){const h=g=>f(g,u),T=g=>f(g,i);return i.addEventListener("pointerleave",h),u.addEventListener("pointerleave",T),()=>{i.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",T)}}},[i,u,f,x]),a.useEffect(()=>{if(l){const h=T=>{const g=T.target,y={x:T.clientX,y:T.clientY},m=i?.contains(g)||u?.contains(g),w=!we(y,l);m?x():w&&(x(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[i,u,l,p,x]),c.jsx(K,{...o,ref:s})}),[ge,Te]=O(R,{isInside:!1}),me=se("TooltipContent"),K=a.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,i=_(b,t),p=D(t),{onClose:u}=i;return a.useEffect(()=>(document.addEventListener(L,u),()=>document.removeEventListener(L,u)),[u]),a.useEffect(()=>{if(i.trigger){const v=x=>{x.target?.contains(i.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[i.trigger,u]),c.jsx(oe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(re,{"data-state":i.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(me,{children:r}),c.jsx(ge,{scope:t,isInside:!0,children:c.jsx(ue,{id:i.contentId,role:"tooltip",children:n||r})})]})})});q.displayName=b;var W="TooltipArrow",X=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return Te(W,t).isInside?null:c.jsx(ae,{...n,...r,ref:e})});X.displayName=W;function ye(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ce(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function be(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function we(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const d=e[s],i=e[l],p=d.x,u=d.y,v=i.x,x=i.y;u>r!=x>r&&t<(v-p)*(r-u)/(x-u)+p&&(n=!n)}return n}function Ee(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),Pe(e)}function Pe(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var Re=F,_e=Y,je=B,Oe=U,De=q,Le=X;function Ae(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(Re,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Ne(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Ae,{children:c.jsx(_e,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function Me(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(je,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Ie(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let d;e[5]!==r?(d=ie("notranslate bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let i;e[7]===Symbol.for("react.memo_cache_sentinel")?(i=c.jsx(Le,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=i):i=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==d?(p=c.jsx(Oe,{children:c.jsxs(De,{"data-slot":"tooltip-content",sideOffset:l,translate:"no",className:d,...n,children:[t,i]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=d,e[12]=p):p=e[12],p}export{Me as T,le as V,Ie as a,Ae as b,Ne as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{q as _,T as l}from"./index-
|
|
1
|
+
import{q as _,T as l}from"./index-e-HlArl7.js";let s=!1;const p="report:auth-attempt:",f=3600*1e3;function h(e){const t=new URLSearchParams(e),n=t.get("share_id")||void 0,o=t.get("email_run_id")||void 0,r=t.get("utm_source")||void 0,u=t.get("utm_medium")||void 0,a=t.get("utm_campaign")||void 0;return{entrypoint:n||r==="share"?"share":o||t.has("d")||r==="email"?"email":r?"campaign":"direct",...n?{share_id:n}:{},...o?{email_run_id:o}:{},...r?{utm_source:r}:{},...u?{utm_medium:u}:{},...a?{utm_campaign:a}:{}}}function c(){return h(typeof window>"u"?"":window.location.search)}function i(e){return`${p}${e}`}function g(){try{return globalThis.crypto.randomUUID()}catch{return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}}function d(e){try{const t=window.sessionStorage.getItem(i(e));if(!t)return null;const n=JSON.parse(t);return n.domain!==e||typeof n.attempt_id!="string"||typeof n.gate_shown_at!="number"||Date.now()-n.gate_shown_at>f?(window.sessionStorage.removeItem(i(e)),null):n}catch{return null}}function m(e){try{window.sessionStorage.setItem(i(e.domain),JSON.stringify(e))}catch{}}function w(e){const t=d(e);if(t)return t;const n={attempt_id:g(),domain:e,gate_shown_at:Date.now(),...c()};return m(n),n}function y(e,t){const n={...w(e),...t};return m(n),n}function T(e){return{auth_attempt_id:e.attempt_id,entrypoint:e.entrypoint,...e.share_id?{share_id:e.share_id}:{},...e.email_run_id?{email_run_id:e.email_run_id}:{},...e.utm_source?{utm_source:e.utm_source}:{},...e.utm_medium?{utm_medium:e.utm_medium}:{},...e.utm_campaign?{utm_campaign:e.utm_campaign}:{}}}function R(e){const t=d(e);if(!t)return null;try{window.sessionStorage.removeItem(i(e))}catch{}return t}function S(e){const t=e.toLowerCase();return t==="invalid_email"?"invalid_email":t.includes("429")||t.includes("rate limit")?"rate_limited":t.includes("otp")||t.includes("verification code")||t.includes("invalid code")||t.includes("expired code")||t.includes("código")||t.includes("codigo")?"invalid_or_expired_code":t.includes("401")||t.includes("unauthorized")?"invalid_credentials":t.includes("409")||t.includes("already exists")?"account_exists":t.includes("network")||t.includes("fetch")?"network":t.includes("cancel")||t.includes("closed")?"cancelled":"unknown"}function I(e){s=e}function M(e,t,n){if(_())try{l.capture(e,{...c(),...t,...s?{report_preview:"reviewer"}:{}},n)}catch{}}export{S as a,w as b,M as c,T as d,R as e,h as r,I as s,y as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bj as p,bk as t,a1 as v,Z as a,c6 as q,X as s,a2 as g,Y as u,aO as h,b8 as x,bh as O,c7 as fe,c8 as be,c9 as B,ca as j,cb as ye,cc as ve,cd as $,ce as _e,cf as He,cg as Me,ch as ke,ci as Pe,cj as qe,ck as Te,cl as Ie,bw as Ee,cm as Le,cn as ze,co as Ae,cp as De,cq as Ue,cr as Ne,cs as Oe,bu as je,r as oe,c as V,j as y,ct as Be,cu as $e,p as Ve,v as Fe,m as se}from"./index-
|
|
1
|
+
import{bj as p,bk as t,a1 as v,Z as a,c6 as q,X as s,a2 as g,Y as u,aO as h,b8 as x,bh as O,c7 as fe,c8 as be,c9 as B,ca as j,cb as ye,cc as ve,cd as $,ce as _e,cf as He,cg as Me,ch as ke,ci as Pe,cj as qe,ck as Te,cl as Ie,bw as Ee,cm as Le,cn as ze,co as Ae,cp as De,cq as Ue,cr as Ne,cs as Oe,bu as je,r as oe,c as V,j as y,ct as Be,cu as $e,p as Ve,v as Fe,m as se}from"./index-e-HlArl7.js";import{P as We}from"./use-mcp-client-DJ8yAWFp.js";const ce=["default-src 'none'","script-src 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval'","style-src 'unsafe-inline'","img-src * data: blob:","media-src * data: blob:","font-src data:","connect-src 'none'","frame-src 'none'","worker-src blob:","form-action 'none'","base-uri 'none'"].join("; ");function Ke(r,e={}){const i=`<meta http-equiv="Content-Security-Policy" content="${Je(e)}">`,n=/<head(\s[^>]*)?>|<HEAD(\s[^>]*)?>/i,l=r.match(n);if(l){const f=(l.index??0)+l[0].length;return r.slice(0,f)+`
|
|
2
2
|
`+i+r.slice(f)}const c=/<html(\s[^>]*)?>|<HTML(\s[^>]*)?>/i,d=r.match(c);if(d){const f=(d.index??0)+d[0].length;return r.slice(0,f)+`
|
|
3
3
|
<head>
|
|
4
4
|
`+i+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,F as m,K as h,n as y,x as R}from"./index-
|
|
1
|
+
import{c as p,F as m,K as h,n as y,x as R}from"./index-e-HlArl7.js";import{u as S,c as D}from"./studio-tools-C5uGY8In.js";const P=["deco","anthropic","openrouter","llmapi","google","openai-compatible"],M=new Set(P);function O(o){return M.has(o)}const A={anthropic:["claude-haiku-4-5","claude-haiku"],openrouter:["qwen/qwen3.5-flash","anthropic/claude-haiku-4.5","anthropic/claude-haiku","google/gemini-3-flash"],deco:["qwen/qwen3.5-flash","anthropic/claude-haiku"],llmapi:["claude-haiku-4-5","claude-haiku","gpt-4o-mini"],google:["gemini-2.5-flash","gemini-3-flash"]},v={anthropic:["claude-sonnet-5","claude-sonnet"],openrouter:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude-opus-4.8","google/gemini-3-pro"],deco:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude"],llmapi:["claude-sonnet-4-6","claude-sonnet"],google:["gemini-3-pro","gemini-3-flash"]},L={anthropic:["claude-opus-4-8","claude-sonnet-5","claude-sonnet","claude-fable-5"],openrouter:["anthropic/claude-opus-4.8:extended","anthropic/claude-opus-4.8","anthropic/claude-sonnet-5:extended","anthropic/claude-sonnet-5","google/gemini-3-pro","anthropic/claude-fable-5"],deco:["anthropic/claude-opus","anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude-fable"],llmapi:["claude-opus-4-8","claude-opus","claude-sonnet-4-6"],google:["gemini-3-pro"]},T={openrouter:["openai/gpt-image-1","google/gemini-2.0-flash-image"],deco:["openai/gpt-image-1","google/gemini-2.0-flash-image"],llmapi:["gemini-2.5-flash-image","gpt-image-1"],google:["gemini-2.0-flash-image"]},x={openrouter:["perplexity/sonar","perplexity/sonar-pro"],deco:["perplexity/sonar","perplexity/sonar-pro"]},K={openrouter:["perplexity/deep-research","perplexity/sonar-pro"],deco:["perplexity/deep-research","perplexity/sonar-pro"]};function _(o){return o.toLowerCase().replace(/[^a-z0-9]/g,"")}function w(o){return _(o).includes("deepresearch")}const q=["sonar","searchpreview","online"];function I(o){const e=_(o);return e.includes("deepresearch")?!1:q.some(t=>e.includes(t))}function C(o){return o.asyncResearch!==!0&&I(o.modelId)}function F(o){return o.asyncResearch===!0||w(o.modelId)||I(o.modelId)}function u(o,e,t,n){for(const i of t){const s=o.find(a=>a.modelId===i);if(s)return{keyId:e,modelId:s.modelId,title:s.title}}for(const i of t){const s=o.find(a=>a.modelId.includes(i));if(s)return{keyId:e,modelId:s.modelId,title:s.title}}if(n){const i=o.find(n);if(i)return{keyId:e,modelId:i.modelId,title:i.title}}return null}function b(o,e){const t={chat:{fast:null,smart:null,thinking:null},image:null,webSearch:null,deepResearch:null};for(const n of o){const i=e[n.id]??[],s=n.providerId;t.chat.fast||(t.chat.fast=u(i,n.id,A[s]??[])),t.chat.smart||(t.chat.smart=u(i,n.id,v[s]??[])),t.chat.thinking||(t.chat.thinking=u(i,n.id,L[s]??[])),t.image||(t.image=u(i,n.id,T[s]??[],a=>a.capabilities?.includes("image")===!0)),t.webSearch||(t.webSearch=u(i,n.id,x[s]??[],C)),t.deepResearch||(t.deepResearch=u(i,n.id,K[s]??[],F))}return t}function H(o,e){return{queryKey:h.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>await D(o,"AI_PROVIDER_KEY_LIST",{})}}function z(){const o=p.c(7),{org:e}=m(),t=S();let n;o[0]!==e.id?(n=h.aiProviders(e.id),o[0]=e.id,o[1]=n):n=o[1];let i;o[2]!==t?(i=async()=>await t.call("AI_PROVIDERS_LIST",{}),o[2]=t,o[3]=i):i=o[3];let s;o[4]!==n||o[5]!==i?(s={queryKey:n,staleTime:1/0,queryFn:i},o[4]=n,o[5]=i,o[6]=s):s=o[6];const{data:a}=R(s);return a}function N(){const o=p.c(5),{org:e}=m();let t;o[0]!==e.id||o[1]!==e.slug?(t=H(e.slug,e.id),o[0]=e.id,o[1]=e.slug,o[2]=t):t=o[2];const{data:n}=R(t);let i;return o[3]!==n?.keys?(i=n?.keys??[],o[3]=n?.keys,o[4]=i):i=o[4],i}function B(){const o=p.c(2),e=N();let t;return o[0]!==e?(t=e.filter(Q),o[0]=e,o[1]=t):t=o[1],t}function Q(o){return O(o.providerId)}function E(o){const e=p.c(15),{org:t}=m(),n=S();let i;e[0]!==o||e[1]!==t.id?(i=h.aiProviderModels(t.id,o??""),e[0]=o,e[1]=t.id,e[2]=i):i=e[2];const s=!!o;let a;e[3]!==o||e[4]!==n?(a=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o??""}),e[3]=o,e[4]=n,e[5]=a):a=e[5];let r;e[6]!==i||e[7]!==s||e[8]!==a?(r={queryKey:i,enabled:s,staleTime:6e4,queryFn:a},e[6]=i,e[7]=s,e[8]=a,e[9]=r):r=e[9];const{data:l,isLoading:c}=y(r);let d;e[10]!==l?.models?(d=l?.models??[],e[10]=l?.models,e[11]=d):d=e[11];const g=!!o&&c;let f;return e[12]!==d||e[13]!==g?(f={models:d,isLoading:g},e[12]=d,e[13]=g,e[14]=f):f=e[14],f}function G(o){const e=p.c(8),t=o[0],n=o[1],i=o[2],{models:s}=E(t?.id),{models:a}=E(n?.id),{models:r}=E(i?.id);let l;if(e[0]!==t||e[1]!==n||e[2]!==i||e[3]!==o||e[4]!==s||e[5]!==a||e[6]!==r){const c={};t?.id&&(c[t.id]=s),n?.id&&(c[n.id]=a),i?.id&&(c[i.id]=r),l=b(o,c),e[0]=t,e[1]=n,e[2]=i,e[3]=o,e[4]=s,e[5]=a,e[6]=r,e[7]=l}else l=e[7];return l}function Y(o){const e=p.c(11),{org:t}=m(),n=S();let i;e[0]!==o||e[1]!==t.id?(i=h.aiProviderModels(t.id,o),e[0]=o,e[1]=t.id,e[2]=i):i=e[2];let s;e[3]!==o||e[4]!==n?(s=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o}),e[3]=o,e[4]=n,e[5]=s):s=e[5];let a;e[6]!==i||e[7]!==s?(a={queryKey:i,staleTime:6e4,queryFn:s},e[6]=i,e[7]=s,e[8]=a):a=e[8];const{data:r}=R(a);let l;return e[9]!==r?.models?(l=r?.models??[],e[9]=r?.models,e[10]=l):l=e[10],l}export{G as a,E as b,F as c,N as d,O as e,z as f,Y as g,C as i,b as p,B as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,F as d,o as I,e as p,K as g,n as E}from"./index-
|
|
1
|
+
import{c,F as d,o as I,e as p,K as g,n as E}from"./index-e-HlArl7.js";import{u as y}from"./use-mcp-client-DJ8yAWFp.js";import{S as m}from"./constants-BSYv1IkQ.js";function f(e,t){if(e?.isError)throw new Error(e.content?.[0]?.text??t);if(!e.structuredContent)throw new Error(t);return e.structuredContent}function S(){const e=c.c(10),{org:t}=d();let n;e[0]!==t.id||e[1]!==t.slug?(n={connectionId:m,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=n):n=e[2];const r=y(n);let o;e[3]!==t.id?(o=g.apiKeysList(t.id),e[3]=t.id,e[4]=o):o=e[4];let s;e[5]!==r?(s=async()=>{const l=await r.callTool({name:"API_KEY_LIST",arguments:{}});return f(l,"Failed to list API keys").items},e[5]=r,e[6]=s):s=e[6];let i;return e[7]!==o||e[8]!==s?(i={queryKey:o,queryFn:s,staleTime:3e4},e[7]=o,e[8]=s,e[9]=i):i=e[9],E(i)}function P(){const e=c.c(11),{org:t}=d();let n;e[0]!==t.id||e[1]!==t.slug?(n={connectionId:m,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=n):n=e[2];const r=y(n),o=I();let s;e[3]!==r?(s=async u=>{const a=await r.callTool({name:"API_KEY_CREATE",arguments:{name:u.name,permissions:u.permissions??{"*":["*"]}}});return f(a,"Failed to create API key")},e[3]=r,e[4]=s):s=e[4];let i;e[5]!==t.id||e[6]!==o?(i=()=>{o.invalidateQueries({queryKey:g.apiKeysList(t.id)})},e[5]=t.id,e[6]=o,e[7]=i):i=e[7];let l;return e[8]!==s||e[9]!==i?(l={mutationFn:s,onSuccess:i},e[8]=s,e[9]=i,e[10]=l):l=e[10],p(l)}function _(){const e=c.c(11),{org:t}=d();let n;e[0]!==t.id||e[1]!==t.slug?(n={connectionId:m,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=n):n=e[2];const r=y(n),o=I();let s;e[3]!==r?(s=async u=>{const a=await r.callTool({name:"API_KEY_DELETE",arguments:{keyId:u}});return f(a,"Failed to delete API key")},e[3]=r,e[4]=s):s=e[4];let i;e[5]!==t.id||e[6]!==o?(i=()=>{o.invalidateQueries({queryKey:g.apiKeysList(t.id)})},e[5]=t.id,e[6]=o,e[7]=i):i=e[7];let l;return e[8]!==s||e[9]!==i?(l={mutationFn:s,onSuccess:i},e[8]=s,e[9]=i,e[10]=l):l=e[10],p(l)}export{S as a,_ as b,P as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as U,F as q,K as T,n as I,o as x,e as y,t as m}from"./index-
|
|
1
|
+
import{c as U,F as q,K as T,n as I,o as x,e as y,t as m}from"./index-e-HlArl7.js";import{u as z}from"./use-mcp-client-DJ8yAWFp.js";import{S as J}from"./constants-BSYv1IkQ.js";import{u as Q}from"./studio-tools-C5uGY8In.js";function V(t){if(t.paramsSchema&&typeof t.paramsSchema=="object")return t;const e={};if(Array.isArray(t.params))for(const s of t.params)e[s.name]={type:s.type,description:s.description,enum:s.enum};else t.params&&typeof t.params=="object"&&Object.assign(e,t.params);return{type:t.type,description:t.description,paramsSchema:e}}function it(t){const e=U.c(12),{org:s}=q(),l=t??J;let a;e[0]!==s.id||e[1]!==s.slug||e[2]!==l?(a={connectionId:l,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=l,e[3]=a):a=e[3];const i=z(a);let n;e[4]!==t?(n=T.toolCall(t??"","TRIGGER_LIST",""),e[4]=t,e[5]=n):n=e[5];let o;e[6]!==i?(o=async()=>{const d=await i.callTool({name:"TRIGGER_LIST",arguments:{}});return(d.structuredContent??d).triggers.map(V)},e[6]=i,e[7]=o):o=e[7];const r=!!t;let c;return e[8]!==n||e[9]!==o||e[10]!==r?(c={queryKey:n,queryFn:o,enabled:r,staleTime:3e4},e[8]=n,e[9]=o,e[10]=r,e[11]=c):c=e[11],I(c)}function ot(t){const e=U.c(9),{org:s}=q(),l=Q();let a;e[0]!==s.id||e[1]!==t?(a=T.automations(s.id,t),e[0]=s.id,e[1]=t,e[2]=a):a=e[2];let i;e[3]!==l||e[4]!==t?(i=async()=>(await l.call("AUTOMATION_LIST",t!=null?{virtual_mcp_id:t}:{})).automations,e[3]=l,e[4]=t,e[5]=i):i=e[5];let n;return e[6]!==a||e[7]!==i?(n={queryKey:a,queryFn:i,staleTime:1e4},e[6]=a,e[7]=i,e[8]=n):n=e[8],I(n)}function at(t){const e=U.c(10),{org:s}=q(),l=Q();let a;e[0]!==t||e[1]!==s.id?(a=T.automation(s.id,t),e[0]=t,e[1]=s.id,e[2]=a):a=e[2];let i;e[3]!==t||e[4]!==l?(i=async()=>(await l.call("AUTOMATION_GET",{id:t})).automation,e[3]=t,e[4]=l,e[5]=i):i=e[5];const n=!!t;let o;return e[6]!==a||e[7]!==i||e[8]!==n?(o={queryKey:a,queryFn:i,enabled:n,staleTime:1e4},e[6]=a,e[7]=i,e[8]=n,e[9]=o):o=e[9],I(o)}function nt(t,e){const s=U.c(12),{org:l}=q(),a=Q();let i;s[0]!==t||s[1]!==l.id||s[2]!==e?(i=T.automationRunStats(l.id,t,JSON.stringify(e??{})),s[0]=t,s[1]=l.id,s[2]=e,s[3]=i):i=s[3];let n;s[4]!==t||s[5]!==e||s[6]!==a?(n=async()=>await a.call("AUTOMATION_RUN_STATS",{automation_id:t,...e?.startDate?{startDate:e.startDate}:{},...e?.endDate?{endDate:e.endDate}:{}}),s[4]=t,s[5]=e,s[6]=a,s[7]=n):n=s[7];const o=!!t;let r;return s[8]!==i||s[9]!==n||s[10]!==o?(r={queryKey:i,queryFn:n,enabled:o,staleTime:3e4},s[8]=i,s[9]=n,s[10]=o,s[11]=r):r=s[11],I(r)}function lt(t){return{name:"New Automation",messages:[],models:{tier:"smart"},temperature:.5,active:!0,virtual_mcp_id:t}}function ut(){const t=U.c(64),{org:e}=q(),s=Q(),l=x();let a;t[0]!==e||t[1]!==l?(a=()=>l.invalidateQueries({queryKey:T.automationsAll(e.id)}),t[0]=e,t[1]=l,t[2]=a):a=t[2];const i=a;let n;t[3]!==e||t[4]!==l?(n=u=>l.invalidateQueries({queryKey:T.automation(e.id,u)}),t[3]=e,t[4]=l,t[5]=n):n=t[5];const o=n;let r;t[6]!==s?(r=async u=>await s.call("AUTOMATION_CREATE",u),t[6]=s,t[7]=r):r=t[7];let c;t[8]!==i?(c=()=>{i(),m.success("Automation created successfully")},t[8]=i,t[9]=c):c=t[9];let d;t[10]!==r||t[11]!==c?(d={mutationFn:r,onSuccess:c,onError:X},t[10]=r,t[11]=c,t[12]=d):d=t[12];const D=y(d);let p;t[13]!==s?(p=async u=>await s.call("AUTOMATION_UPDATE",u),t[13]=s,t[14]=p):p=t[14];let A;t[15]!==i||t[16]!==o?(A=(u,f)=>{i(),typeof f.id=="string"&&o(f.id),m.success("Automation updated successfully")},t[15]=i,t[16]=o,t[17]=A):A=t[17];let G;t[18]!==p||t[19]!==A?(G={mutationFn:p,onSuccess:A,onError:W},t[18]=p,t[19]=A,t[20]=G):G=t[20];const j=y(G);let g;t[21]!==s?(g=async u=>await s.call("AUTOMATION_DELETE",{id:u}),t[21]=s,t[22]=g):g=t[22];let _;t[23]!==i||t[24]!==e||t[25]!==l?(_=(u,f)=>{l.removeQueries({queryKey:T.automation(e.id,f)}),i(),m.success("Automation deleted successfully")},t[23]=i,t[24]=e,t[25]=l,t[26]=_):_=t[26];let $;t[27]!==g||t[28]!==_?($={mutationFn:g,onSuccess:_,onError:H},t[27]=g,t[28]=_,t[29]=$):$=t[29];const k=y($);let S;t[30]!==s?(S=async u=>await s.call("AUTOMATION_TRIGGER_ADD",u),t[30]=s,t[31]=S):S=t[31];let E;t[32]!==i||t[33]!==o?(E=u=>{i(),o(u.automation_id)},t[32]=i,t[33]=o,t[34]=E):E=t[34];let K;t[35]!==S||t[36]!==E?(K={mutationFn:S,onSuccess:E},t[35]=S,t[36]=E,t[37]=K):K=t[37];const P=y(K);let O;t[38]!==s?(O=async u=>await s.call("AUTOMATION_TRIGGER_ROTATE_TOKEN",{trigger_id:u.trigger_id}),t[38]=s,t[39]=O):O=t[39];let R;t[40]!==i||t[41]!==o?(R=(u,f)=>{i(),o(f.automation_id)},t[40]=i,t[41]=o,t[42]=R):R=t[42];let C;t[43]!==O||t[44]!==R?(C={mutationFn:O,onSuccess:R},t[43]=O,t[44]=R,t[45]=C):C=t[45];const h=y(C);let F;t[46]!==s?(F=async u=>await s.call("AUTOMATION_TRIGGER_REMOVE",{trigger_id:u.trigger_id}),t[46]=s,t[47]=F):F=t[47];let N;t[48]!==i||t[49]!==o?(N=(u,f)=>{i(),o(f.automation_id)},t[48]=i,t[49]=o,t[50]=N):N=t[50];let b;t[51]!==F||t[52]!==N?(b={mutationFn:F,onSuccess:N},t[51]=F,t[52]=N,t[53]=b):b=t[53];const v=y(b);let L;t[54]!==s?(L={mutationFn:async u=>await s.call("AUTOMATION_RUN",{id:u}),onSuccess:B,onError:Y},t[54]=s,t[55]=L):L=t[55];const w=y(L);let M;return t[56]!==D||t[57]!==k||t[58]!==w||t[59]!==P||t[60]!==v||t[61]!==h||t[62]!==j?(M={create:D,update:j,remove:k,triggerAdd:P,triggerRemove:v,triggerRotateToken:h,run:w},t[56]=D,t[57]=k,t[58]=w,t[59]=P,t[60]=v,t[61]=h,t[62]=j,t[63]=M):M=t[63],M}function Y(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to run automation: ${e}`)}function B(t){t.skipped?m.info(`Automation skipped: ${t.skipped}`):t.error?m.error(`Automation failed: ${t.error}`):m.success("Automation triggered")}function H(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to delete automation: ${e}`)}function W(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to update automation: ${e}`)}function X(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to create automation: ${e}`)}export{it as a,at as b,ot as c,lt as d,nt as e,ut as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as T,r as o}from"./index-
|
|
1
|
+
import{c as T,r as o}from"./index-e-HlArl7.js";const y=700;function x(r,l,_){const e=T.c(7),f=y,[a,m]=o.useState(r),[i,S]=o.useState(r),[A,d]=o.useState(!1),t=o.useRef(null);r!==i&&(S(r),A||m(r));let s;e[0]!==f||e[1]!==l?(s=u=>{m(u),d(!0),t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{t.current=null,d(!1),l(u)},f)},e[0]=f,e[1]=l,e[2]=s):s=e[2];const p=s;let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=u=>{m(u),t.current&&clearTimeout(t.current),t.current=null,d(!1)},e[3]=c):c=e[3];const E=c;let n;return e[4]!==a||e[5]!==p?(n=[a,p,E],e[4]=a,e[5]=p,e[6]=n):n=e[6],n}export{x as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,F as m,n as g,K as p}from"./index-
|
|
1
|
+
import{c as u,F as m,n as g,K as p}from"./index-e-HlArl7.js";const b=new Set(["owner","admin"]);function d(){const e=u.c(11),{org:r,locator:c}=m();let o;e[0]!==c?(o=p.myCapabilities(c),e[0]=c,e[1]=o):o=e[1];let a;e[2]!==r?(a=async()=>{const f=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(r.slug)}`,{credentials:"include"});if(!f.ok)throw new Error(`my-capabilities request failed: ${f.status}`);return await f.json()},e[2]=r,e[3]=a):a=e[3];let i;e[4]!==o||e[5]!==a?(i={queryKey:o,queryFn:a,staleTime:3e4,retry:2},e[4]=o,e[5]=a,e[6]=i):i=e[6];const{data:s,isLoading:l,isError:n}=g(i);let t;return e[7]!==s||e[8]!==n||e[9]!==l?(t={data:s,loading:l,error:n},e[7]=s,e[8]=n,e[9]=l,e[10]=t):t=e[10],t}function _(e){const r=u.c(8),{data:c,loading:o,error:a}=d();if(o){let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!0,error:!1,reason:"loading"},r[0]=t):t=r[0],t}if(a){let t;return r[1]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!1,error:!0,reason:"error"},r[1]=t):t=r[1],t}const i=c?.role??null;if(!i){let t;return r[2]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!1,error:!1,reason:"denied"},r[2]=t):t=r[2],t}if(i==="owner"){let t;return r[3]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!0,loading:!1,error:!1,reason:"owner"},r[3]=t):t=r[3],t}if(i==="admin"){let t;return r[4]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!0,loading:!1,error:!1,reason:"admin"},r[4]=t):t=r[4],t}const s=c?.capabilities?.[e]===!0,l=s?"role":"denied";let n;return r[5]!==s||r[6]!==l?(n={granted:s,loading:!1,error:!1,reason:l},r[5]=s,r[6]=l,r[7]=n):n=r[7],n}function S(){const e=u.c(10),{data:r,loading:c,error:o}=d(),a=r?.role??void 0;let i;e[0]!==a?(i=a?b.has(a):!1,e[0]=a,e[1]=i):i=e[1];const s=i;let l;e[2]!==r?.capabilities?(l=r?.capabilities??{},e[2]=r?.capabilities,e[3]=l):l=e[3];const n=l;let t;return e[4]!==o||e[5]!==s||e[6]!==c||e[7]!==a||e[8]!==n?(t={capabilities:n,loading:c,error:o,isPrivileged:s,roleSlug:a},e[4]=o,e[5]=s,e[6]=c,e[7]=a,e[8]=n,e[9]=t):t=e[9],t}export{S as a,_ as u};
|