@p4code/cli 0.8.18 → 0.8.19
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/bin.mjs +1 -1
- package/dist/{binCli-usgrWcNe.mjs → binCli-BfqWHczJ.mjs} +573 -448
- package/dist/client/.vite/manifest.json +2221 -2169
- package/dist/client/assets/AlertDialogRoot-D5I6scXr.js +2 -0
- package/dist/client/assets/{AnimatedHeight-CO3_zEQw.js → AnimatedHeight-Bt23tBJu.js} +2 -2
- package/dist/client/assets/{AuthSurfaceShell-BBPbK1uA.js → AuthSurfaceShell-CScpeyCZ.js} +2 -2
- package/dist/client/assets/{CSPContext-D8znCJtI.js → CSPContext-CCVdxObl.js} +2 -2
- package/dist/client/assets/{ChatGptUsageButton-Bda8Ir5S.js → ChatGptUsageButton-yYHsmy4T.js} +2 -2
- package/dist/client/assets/{ChatMarkdown-BS1t8pnS.js → ChatMarkdown-B0DVA2sH.js} +13 -13
- package/dist/client/assets/{CheckboxIndicator-D-KUEtIm.js → CheckboxIndicator-wz_7NgXC.js} +2 -2
- package/dist/client/assets/CodexSetupSection.logic-BtAckihn.js +2 -0
- package/dist/client/assets/{CollapsiblePanel-84e9KCIs.js → CollapsiblePanel-lE29H_pe.js} +2 -2
- package/dist/client/assets/{ComboboxClear-FsZ2LcVw.js → ComboboxClear-DNFG72Hd.js} +2 -2
- package/dist/client/assets/ComboboxGroupLabel-B_bH_C6n.js +2 -0
- package/dist/client/assets/CommandBlock-VGf7qjr7.js +2 -0
- package/dist/client/assets/{ComposerPromptEditor-BGcYrFoa.js → ComposerPromptEditor-CVko-EBm.js} +13 -13
- package/dist/client/assets/{CompositeRoot-fbPbFqqK.js → CompositeRoot-BaL7J4TF.js} +2 -2
- package/dist/client/assets/{ConnectionStatusDot-t_vHmaco.js → ConnectionStatusDot-IvAZUpIh.js} +2 -2
- package/dist/client/assets/DevicePanel-fh1omTPb.js +2 -0
- package/dist/client/assets/DeviceSetup-wfV02sXR.js +2 -0
- package/dist/client/assets/{DialogTitle-DnR18OB7.js → DialogTitle-CJosg0_K.js} +2 -2
- package/dist/client/assets/{DiffCommentAnnotation-Br9sOo_6.js → DiffCommentAnnotation-C4ODeTG1.js} +2 -2
- package/dist/client/assets/DiffFileTree-Cm5AwI-L.js +2 -0
- package/dist/client/assets/DiffPanel-DW_sAhx0.js +2 -0
- package/dist/client/assets/{DiffWorkerPoolProvider-DydpPFgM.js → DiffWorkerPoolProvider-CXn9pnyS.js} +3 -3
- package/dist/client/assets/EmbeddedDesign-QMT8odFI.js +19 -0
- package/dist/client/assets/{EmbeddedDesign-BsHZJ1Ch.css → EmbeddedDesign-nRjXWU5Y.css} +1 -1
- package/dist/client/assets/{EnvironmentMachineIcon-BMWCDR69.js → EnvironmentMachineIcon-Cs4BoaOB.js} +2 -2
- package/dist/client/assets/{ExpandableText-B6Dvgn62.js → ExpandableText-DUYIICsi.js} +2 -2
- package/dist/client/assets/{FieldControl-CVOjReHh.js → FieldControl-CSR5qaN6.js} +2 -2
- package/dist/client/assets/{FileDiff-Dhyt7ZAJ.js → FileDiff-DfokdNMp.js} +2 -2
- package/dist/client/assets/FilePreviewPanel-BiO1c4ia.js +34 -0
- package/dist/client/assets/{FoldedSettingsSection-Clo0JgyS.js → FoldedSettingsSection-CqteSm77.js} +2 -2
- package/dist/client/assets/{FormContext--axmNCbu.js → FormContext-D3Ve_Lza.js} +2 -2
- package/dist/client/assets/{Icons-BYSK3arN.js → Icons-Bfx5fXpN.js} +2 -2
- package/dist/client/assets/Input-DyKzFpW0.js +2 -0
- package/dist/client/assets/{KeybindingsSettings.logic-30fwcukL.js → KeybindingsSettings.logic-0P2hWpBG.js} +2 -2
- package/dist/client/assets/NoProjectsHero-GWvfTakA.js +2 -0
- package/dist/client/assets/{PanelLayoutControls-DL7sleZ-.js → PanelLayoutControls-yA-MhIU3.js} +10 -10
- package/dist/client/assets/{PierreEntryIcon-DKHnMJOl.js → PierreEntryIcon-x_cG473l.js} +2 -2
- package/dist/client/assets/{PopoverHandle-C-e81PS3.js → PopoverHandle-CY2mrZwB.js} +2 -2
- package/dist/client/assets/PreviewPanel-Dh9n6Ys-.js +2 -0
- package/dist/client/assets/ProjectDefaultsSettings-DS-3kgM0.js +2 -0
- package/dist/client/assets/ProjectFavicon-Bdl7Tzds.js +3 -0
- package/dist/client/assets/{ProjectIconPickerDialog-Bxa9i4w_.js → ProjectIconPickerDialog-BaajvQh5.js} +2 -2
- package/dist/client/assets/{ProjectMonogram-CYD6eMbI.js → ProjectMonogram-TlvVxVmS.js} +2 -2
- package/dist/client/assets/{ProviderAuthTerminal-Cm88QElc.js → ProviderAuthTerminal-UECuLZ2G.js} +2 -2
- package/dist/client/assets/ProviderModelPicker-De9mZUTr.js +2 -0
- package/dist/client/assets/{ProviderSettingsForm-CLYzJJII.js → ProviderSettingsForm-Ck0g4BIu.js} +2 -2
- package/dist/client/assets/PullRequestCodeTab-Ba54Mifj.js +6 -0
- package/dist/client/assets/{ReadOnlySourcePreview-D2Vkrzyc.js → ReadOnlySourcePreview-CVocraam.js} +2 -2
- package/dist/client/assets/RenderErrorBoundary-DKs56Rs9.js +2 -0
- package/dist/client/assets/ScheduledTasksSettings-d4dmI9oH.js +4 -0
- package/dist/client/assets/{ScopedSwitch-BrJEJr8I.js → ScopedSwitch-Z6zp5sHo.js} +2 -2
- package/dist/client/assets/{ScrollAreaCorner-BYUnXNwJ.js → ScrollAreaCorner-B-Z3OJHa.js} +2 -2
- package/dist/client/assets/{SecretInput-CIbdWrQZ.js → SecretInput-DeAPhcuN.js} +2 -2
- package/dist/client/assets/{SelectScrollUpArrow-Cr4PrE_F.js → SelectScrollUpArrow-DfDNBpqc.js} +2 -2
- package/dist/client/assets/{SettingsPanels-B8q4OSW7.js → SettingsPanels-CWgjxAiG.js} +8 -8
- package/dist/client/assets/{SettingsPanels.logic-C5FkY28P.js → SettingsPanels.logic-D3iQ5aZy.js} +2 -2
- package/dist/client/assets/SettingsScopeNotice-BfjZTvSz.js +2 -0
- package/dist/client/assets/{T3ConnectAccountPages-DDSM7QWS.js → T3ConnectAccountPages-CsFviIjD.js} +2 -2
- package/dist/client/assets/{T3ConnectSidebarSignIn-GnkVas23.js → T3ConnectSidebarSignIn-3MsegucL.js} +2 -2
- package/dist/client/assets/ThemeEditorPanel-Bj9nHohX.js +5 -0
- package/dist/client/assets/{ThreadTerminalDrawer-4huAp-uS.js → ThreadTerminalDrawer-Cks3C8wv.js} +4 -4
- package/dist/client/assets/TooltipViewport-WRCNCy-2.js +2 -0
- package/dist/client/assets/{Virtualizer-DjBOkz4F.js → Virtualizer-D6VpBTPc.js} +2 -2
- package/dist/client/assets/{WorkspaceBreadcrumb-ClxInGsT.js → WorkspaceBreadcrumb-CR_Yk7Ph.js} +2 -2
- package/dist/client/assets/{WorkspacePageContainer-DwN_ETF0.js → WorkspacePageContainer-D3M3Ncv4.js} +2 -2
- package/dist/client/assets/{WorkspacePageHeader-BvKCy7v2.js → WorkspacePageHeader-xuSJTTO0.js} +2 -2
- package/dist/client/assets/_chat-DkCa6MKZ.js +45 -0
- package/dist/client/assets/_chat.index-B5-xqP_5.js +2 -0
- package/dist/client/assets/_chat.new-DxPEFJcT.js +4 -0
- package/dist/client/assets/_chat.pull-requests-BBVWbXyN.js +2 -0
- package/dist/client/assets/{abnfDiagram-VCTEODGH-Cv0dw1u8.js → abnfDiagram-VCTEODGH-CxxMo560.js} +2 -2
- package/dist/client/assets/{alert-DYmkyE3l.js → alert-BXnCHOJp.js} +2 -2
- package/dist/client/assets/architecture-7GRP2DOG-CrDVVAg3.js +1 -0
- package/dist/client/assets/{architectureDiagram-5GKGNRK7-BvQMjhmC.js → architectureDiagram-5GKGNRK7-DJiRjS82.js} +2 -2
- package/dist/client/assets/{assets-COg7jyyX.js → assets-B5H7ruRK.js} +2 -2
- package/dist/client/assets/{blockDiagram-I7D4REHJ-DR7f58YJ.js → blockDiagram-I7D4REHJ-kDnwtgKo.js} +2 -2
- package/dist/client/assets/browserHistoryStore-o7hGV5zZ.js +2 -0
- package/dist/client/assets/{browserLinkTarget-Bp-zUm0R.js → browserLinkTarget-hn6UyJXl.js} +2 -2
- package/dist/client/assets/{c4Diagram-7LVT6UL2-zgFjNACn.js → c4Diagram-7LVT6UL2-D1fm-1EX.js} +2 -2
- package/dist/client/assets/channel-CzmVRCkd.js +2 -0
- package/dist/client/assets/{checkbox-brLYzznm.js → checkbox-tOWU_Z9Y.js} +2 -2
- package/dist/client/assets/{chunk-4HAMMTFA-Q6ZY3Aj6.js → chunk-4HAMMTFA-BLYTHhED.js} +2 -2
- package/dist/client/assets/{chunk-75Z2AOVW-Dv4NtCmQ.js → chunk-75Z2AOVW-DT7Umtgk.js} +2 -2
- package/dist/client/assets/{chunk-DU6HZSFF-D-pyRDMG.js → chunk-DU6HZSFF-D0K-8X_H.js} +2 -2
- package/dist/client/assets/{chunk-F27PBJKO-BOXrNdwG.js → chunk-F27PBJKO-5P4LORWK.js} +2 -2
- package/dist/client/assets/{chunk-GMAD6QVW-uYd_Q5lX.js → chunk-GMAD6QVW-DO-mb18X.js} +2 -2
- package/dist/client/assets/{chunk-GVQU2GXP-C3aAR6o_.js → chunk-GVQU2GXP-CxauyvGQ.js} +2 -2
- package/dist/client/assets/{chunk-IMKFNOWR-CbCHd80E.js → chunk-IMKFNOWR-QGonsH_m.js} +2 -2
- package/dist/client/assets/{chunk-L3NEJ4N5-B5jDlsms.js → chunk-L3NEJ4N5-DxKhJ2tE.js} +2 -2
- package/dist/client/assets/{chunk-OSK3NFVY-DgNZQb8q.js → chunk-OSK3NFVY-BlR0vtv9.js} +2 -2
- package/dist/client/assets/{chunk-P2QGCYS3-ptp4LKHi.js → chunk-P2QGCYS3-BIit_gMZ.js} +2 -2
- package/dist/client/assets/{chunk-POPQ4Y6H-CRBmOW8B.js → chunk-POPQ4Y6H-Ojuitc4K.js} +2 -2
- package/dist/client/assets/{chunk-PWAF6VOD-DHkc8IcS.js → chunk-PWAF6VOD-B6Uc75KF.js} +2 -2
- package/dist/client/assets/{chunk-SHT3W25Y-B5XMb9ST.js → chunk-SHT3W25Y-DSzF0_aF.js} +2 -2
- package/dist/client/assets/{chunk-SVP7TREG-Lt0ZENIq.js → chunk-SVP7TREG-BbxrRzvm.js} +2 -2
- package/dist/client/assets/{chunk-TICWLB2K-BhZt3DVX.js → chunk-TICWLB2K-qxbKtZBK.js} +2 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-Ce7tu2gJ.js +2 -0
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-Ce7tu2gJ.js +2 -0
- package/dist/client/assets/{color-picker-D7d1go0g.js → color-picker-C_20-4RB.js} +2 -2
- package/dist/client/assets/{combobox-DSVavlIH.js → combobox-NsYaIiJL.js} +2 -2
- package/dist/client/assets/command-DJR9ebnx.js +2 -0
- package/dist/client/assets/composer-logic-CkuMSzLW.js +6 -0
- package/dist/client/assets/composerDraftUploads-D0K1HfK_.js +2 -0
- package/dist/client/assets/{connect-C39BhZ-c.js → connect-BSmdC-l-.js} +2 -2
- package/dist/client/assets/{connect-agent-Dj_Cfdx6.js → connect-agent-BNeGfFIv.js} +2 -2
- package/dist/client/assets/{cynefin-OW5HDTMX-CNKdS-0M.js → cynefin-OW5HDTMX-BRoWQ1nZ.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-CoFxzJSW.js → cynefinDiagram-5FMLGOSQ-BPoK_fdY.js} +2 -2
- package/dist/client/assets/{dagre-GXQ25YYZ-q0omC4bc.js → dagre-GXQ25YYZ-B6n9u2fx.js} +2 -2
- package/dist/client/assets/{device-CWgOLpbF.js → device-V5bbUMMx.js} +2 -2
- package/dist/client/assets/{diagram-S7CK7UJ4-CdFkGs_B.js → diagram-S7CK7UJ4-B4H5MfDU.js} +2 -2
- package/dist/client/assets/{diagram-UQ7AKVKN-B0KtokqT.js → diagram-UQ7AKVKN-BN9pt82T.js} +2 -2
- package/dist/client/assets/{diagram-VSXAHHWV-DjtTeImL.js → diagram-VSXAHHWV-C69gO9TK.js} +2 -2
- package/dist/client/assets/{diagram-VX7I27RA-DRYLlkkf.js → diagram-VX7I27RA-qliQCn2I.js} +2 -2
- package/dist/client/assets/{diagram-Z3DM3KII-C-x2EfL6.js → diagram-Z3DM3KII-JnCXFjMD.js} +2 -2
- package/dist/client/assets/{dialog-DYFQxVoN.js → dialog-C4UzQSL1.js} +2 -2
- package/dist/client/assets/{diffRendering-6DuM2rGF.js → diffRendering-Cuv7q0nc.js} +2 -2
- package/dist/client/assets/{discovery-list-BvblDG7m.js → discovery-list-ppl7-G1K.js} +2 -2
- package/dist/client/assets/{dist-CkgAUeqn.js → dist-CnDtgaa3.js} +3 -3
- package/dist/client/assets/{draft-input-27erQjx_.js → draft-input-DUB7VaUv.js} +2 -2
- package/dist/client/assets/{duoViewer-CBnLVCTt.js → duoViewer-Bi-KrG5F.js} +2 -2
- package/dist/client/assets/{dynamic-Cjr9H8t4.js → dynamic-mqe80fw7.js} +3 -3
- package/dist/client/assets/{ebnfDiagram-PWID7BFC-UISo4OT-.js → ebnfDiagram-PWID7BFC-jdXVhqCj.js} +2 -2
- package/dist/client/assets/{embeddedScripts-Dr-tOtuJ.js → embeddedScripts-Qhl8LxE1.js} +2 -2
- package/dist/client/assets/{empty-2jxBvPLn.js → empty-GrsNgo1m.js} +2 -2
- package/dist/client/assets/{entities-DCbEYTvn.js → entities-D6pHmUcl.js} +2 -2
- package/dist/client/assets/{erDiagram-RLTQ6QDP-CeWlUdOf.js → erDiagram-RLTQ6QDP-DdgQriY9.js} +2 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-C45g87dF.js +1 -0
- package/dist/client/assets/{fileLinks-5NSgRKPU.js → fileLinks-DKkO_IJu.js} +2 -2
- package/dist/client/assets/{fileTreeExpansion-CA6c4E3-.js → fileTreeExpansion-C1UNNqSC.js} +2 -2
- package/dist/client/assets/flowDiagram-HODETNUW-CxTQXeBP.js +1 -0
- package/dist/client/assets/{ganttDiagram-EL5Y4UJY-KPPMvqNL.js → ganttDiagram-EL5Y4UJY-DFCwukfW.js} +2 -2
- package/dist/client/assets/{getDiffFileInput-CuM1lgsL.js → getDiffFileInput-phPjSTY8.js} +2 -2
- package/dist/client/assets/git-compare-DW_c6fci.js +2 -0
- package/dist/client/assets/{gitGraph-4MIJSDKK-BGSFaZro.js → gitGraph-4MIJSDKK-B-iBBweB.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-CwYf9r63.js → gitGraphDiagram-WWUBYQGX-w7enwZUZ.js} +2 -2
- package/dist/client/assets/{guideRunStore-B3Y6e_nf.js → guideRunStore-C-LauQUS.js} +2 -2
- package/dist/client/assets/{htmlRender-BaqdfJ6m.js → htmlRender-DVq1i7PZ.js} +2 -2
- package/dist/client/assets/{index-DmPPPGJb.js → index-CW8ApI1G.js} +3 -3
- package/dist/client/assets/{info-A6RAGUB7-C831OtOR.js → info-A6RAGUB7-zYd5-_tB.js} +1 -1
- package/dist/client/assets/{infoDiagram-27XIBGKW-DVstIW76.js → infoDiagram-27XIBGKW-BlWLgzyt.js} +2 -2
- package/dist/client/assets/{input-83N8btBC.js → input-DpZhQSV2.js} +2 -2
- package/dist/client/assets/{input-group-Q757vhrD.js → input-group-BjfPTIWt.js} +2 -2
- package/dist/client/assets/{ishikawaDiagram-5VMMS53U-CJq0N-AL.js → ishikawaDiagram-5VMMS53U-oNq825oe.js} +2 -2
- package/dist/client/assets/{journeyDiagram-3NMN7TZE-D76KCD6f.js → journeyDiagram-3NMN7TZE-BQqGB1_d.js} +2 -2
- package/dist/client/assets/{kanban-definition-UXKFOSKX-D1kzRMIP.js → kanban-definition-UXKFOSKX-CDCYjq7t.js} +2 -2
- package/dist/client/assets/{kbd-D8UfTN0o.js → kbd-BfsP5lvQ.js} +2 -2
- package/dist/client/assets/{keybindings-DLDyoB30.js → keybindings-BD3cM3Jm.js} +2 -2
- package/dist/client/assets/{lazyRouteComponent-BCGAjyjO.js → lazyRouteComponent-DebYKx4q.js} +2 -2
- package/dist/client/assets/{line-QHGhF6Vm.js → line-Dr_Yg9S8.js} +2 -2
- package/dist/client/assets/{link-Bgj44djS.js → link-wJO6kwX4.js} +2 -2
- package/dist/client/assets/{linkedPrompt-D1aW6nV5.js → linkedPrompt-Dx_WF0Gk.js} +2 -2
- package/dist/client/assets/main-DklPMTd5.css +2 -0
- package/dist/client/assets/main-DqlnVz2C.js +26 -0
- package/dist/client/assets/{mediaReference-CQtke4j3.js → mediaReference-DEdeypAC.js} +2 -2
- package/dist/client/assets/{mediaSource-CI2bKK3n.js → mediaSource-DTry5UU8.js} +2 -2
- package/dist/client/assets/{mermaid-parser.core-Brqe55KM.js → mermaid-parser.core-EKu4BBvw.js} +4 -4
- package/dist/client/assets/{mermaid.core-Cdl6aiT5.js → mermaid.core-C-FRLnEk.js} +5 -5
- package/dist/client/assets/{mindmap-definition-YA3MSWOX-CcdCCRbd.js → mindmap-definition-YA3MSWOX-Bo-8FCl-.js} +2 -2
- package/dist/client/assets/{number-field-DQIrEOoj.js → number-field-B0OyTTUs.js} +2 -2
- package/dist/client/assets/{observeResize-BaPAtI3Q.js → observeResize-CBAzjAMz.js} +2 -2
- package/dist/client/assets/{onboarding-ObMsA9VF.js → onboarding-EecLmYJ0.js} +2 -2
- package/dist/client/assets/{openFileInPreview-CdBR5kuZ.js → openFileInPreview-MgwNsNCM.js} +2 -2
- package/dist/client/assets/{p4ProjectFile--u7SOSK5.js → p4ProjectFile-DZ6HGjaI.js} +2 -2
- package/dist/client/assets/{packet-AYTQ26CC-BSuHbq7S.js → packet-AYTQ26CC-DD_SFe63.js} +1 -1
- package/dist/client/assets/{pair-C11lrlzi.js → pair-BzsQ1gz0.js} +2 -2
- package/dist/client/assets/{pegDiagram-XKGWAZYB-Iy9neoGN.js → pegDiagram-XKGWAZYB-Bbw22YYs.js} +2 -2
- package/dist/client/assets/{phoneViewer-iqsNqM8D.js → phoneViewer-DZyuQ-is.js} +2 -2
- package/dist/client/assets/{pie-WAS4IAKB-BlC5Ctcv.js → pie-WAS4IAKB-CNHjs-Ma.js} +1 -1
- package/dist/client/assets/{pieDiagram-E7YTZNPT-CtVgATJF.js → pieDiagram-E7YTZNPT-_ZbKy7eA.js} +2 -2
- package/dist/client/assets/{pierre-icons-fSsw9aa-.js → pierre-icons-BubjdUjD.js} +2 -2
- package/dist/client/assets/{popover-B1MF5i1c.js → popover-BuuvISBT.js} +2 -2
- package/dist/client/assets/{preview-DwLWkMZG.js → preview-BlW45a9H.js} +2 -2
- package/dist/client/assets/{preview-ITad1JAy.js → preview-CwzKOKVG.js} +2 -2
- package/dist/client/assets/{previewMiniPlayerStore-DN-AYBed.js → previewMiniPlayerStore-CGiA2h59.js} +2 -2
- package/dist/client/assets/{primary-8A8hvHFL.js → primary-3GB-obcz.js} +2 -2
- package/dist/client/assets/primaryCloudLinkState-DYmepSfi.js +2 -0
- package/dist/client/assets/{projectFilesQueryState-CGllQp_V.js → projectFilesQueryState-D2rMhOEA.js} +2 -2
- package/dist/client/assets/{projectScriptEditor-DwqFzld2.js → projectScriptEditor-BxnriUVv.js} +2 -2
- package/dist/client/assets/providerSkills-C_OG7yP0.js +2 -0
- package/dist/client/assets/{pullRequestDetail.logic-CkxKh0fV.js → pullRequestDetail.logic-BhGUhCGd.js} +2 -2
- package/dist/client/assets/{pullRequestIcons-CSZus-cz.js → pullRequestIcons-DsTinQ4q.js} +2 -2
- package/dist/client/assets/{pullRequestReviewStore-78f71w6J.js → pullRequestReviewStore-BKYNixhZ.js} +2 -2
- package/dist/client/assets/pullRequests-CQ2Zte1o.js +2 -0
- package/dist/client/assets/{quadrantDiagram-AXDQQJYC-kq18RP_F.js → quadrantDiagram-AXDQQJYC-Bnl3w7OY.js} +2 -2
- package/dist/client/assets/{queries-DCKH7ltg.js → queries-_Qf89qTX.js} +2 -2
- package/dist/client/assets/{query-B1uAr_ii.js → query-CRlRG7rf.js} +2 -2
- package/dist/client/assets/{radar-RG4KPBEZ-Cbkq33o2.js → radar-RG4KPBEZ-DweWJU_g.js} +1 -1
- package/dist/client/assets/{radio-group-CFJMQH66.js → radio-group-iJUHzvZC.js} +2 -2
- package/dist/client/assets/{railroad-74A4TZTK-Ba3TZ4Wg.js → railroad-74A4TZTK-DmxX8fKE.js} +1 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-CSGCBDLE.js +1 -0
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-qkcBzemM.js +1 -0
- package/dist/client/assets/railroad-peg-WCYAUIDC-B-rmMXQT.js +1 -0
- package/dist/client/assets/{railroadDiagram-O6MQD6OU-BfOnyiaT.js → railroadDiagram-O6MQD6OU-D94VfvdV.js} +2 -2
- package/dist/client/assets/{renderScheduler-CcWhS7Yq.js → renderScheduler-DIWSOdLy.js} +2 -2
- package/dist/client/assets/{requirementDiagram-BXWQKSXE-DFzAGiJp.js → requirementDiagram-BXWQKSXE-4Sss1rRH.js} +2 -2
- package/dist/client/assets/{rightPanelStore-DfMWWfvR.js → rightPanelStore-C3FvIXSq.js} +2 -2
- package/dist/client/assets/{runtime-B9IDNXDU.js → runtime-CJNEsw6U.js} +3 -3
- package/dist/client/assets/runtime-ets76j-h.js +2 -0
- package/dist/client/assets/{runtimeModeConfig-C3TbI2qR.js → runtimeModeConfig-DNgZlBoC.js} +2 -2
- package/dist/client/assets/{sankeyDiagram-P5KCCOFB-D9gFGibV.js → sankeyDiagram-P5KCCOFB-CFV5CXMi.js} +2 -2
- package/dist/client/assets/{scheduledTasksSettings.logic-DVbZRIYJ.js → scheduledTasksSettings.logic-CGYf8FQi.js} +2 -2
- package/dist/client/assets/{scroll-area-DGS0jgnh.js → scroll-area-By1ARHPp.js} +2 -2
- package/dist/client/assets/{select-Dsx46akG.js → select-DqGlaY40.js} +2 -2
- package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-C9pRaNT5.js → sequenceDiagram-WJ2MYXX4-Cln2JnVw.js} +2 -2
- package/dist/client/assets/{server-CoH7V4JL.js → server-DpLkyQ0R.js} +2 -2
- package/dist/client/assets/{session-Bo2ZSprC.js → session-Cau_XThy.js} +2 -2
- package/dist/client/assets/{session-logic-C4wGF3_E.js → session-logic-CRwcdrNw.js} +2 -2
- package/dist/client/assets/settings-B4aWX2xy.js +2 -0
- package/dist/client/assets/{settings.appearance-6ktu9wdJ.js → settings.appearance-C__igzME.js} +2 -2
- package/dist/client/assets/settings.archived-Bs-jKZBo.js +2 -0
- package/dist/client/assets/{settings.computer-use-C24sO93u.js → settings.computer-use-SngXUHmk.js} +2 -2
- package/dist/client/assets/settings.connections-Bw61DbEx.js +2 -0
- package/dist/client/assets/settings.data-controls-DbqXwsIJ.js +2 -0
- package/dist/client/assets/{settings.decisions-kar2kv7T.js → settings.decisions-Bw-dFoGZ.js} +2 -2
- package/dist/client/assets/settings.diagnostics-D5dG-CTq.js +2 -0
- package/dist/client/assets/{settings.general-C1zsJgwK.js → settings.general-DVafi8E5.js} +2 -2
- package/dist/client/assets/settings.integrations-C4t8diIu.js +2 -0
- package/dist/client/assets/{settings.keybindings-CYcsJ6DQ.js → settings.keybindings-B1dMCy_G.js} +2 -2
- package/dist/client/assets/{settings.open-source-licenses-DnBHlZE2.js → settings.open-source-licenses-kgRl8SYE.js} +2 -2
- package/dist/client/assets/settings.plugins-HtKh3bu8.js +5 -0
- package/dist/client/assets/settings.projects-CtKhtmR8.js +4 -0
- package/dist/client/assets/settings.providers-Bd0702hD.js +3 -0
- package/dist/client/assets/{settings.scheduled-tasks-Bf37L1OK.js → settings.scheduled-tasks-Tpcp-BCI.js} +2 -2
- package/dist/client/assets/settings.snap-shot-BngynTBI.js +2 -0
- package/dist/client/assets/settings.source-control-DmQkMruN.js +2 -0
- package/dist/client/assets/{settings.storage-DmbTXujz.js → settings.storage-CUeYkScx.js} +2 -2
- package/dist/client/assets/settingsLayout-Du5mjDQU.js +3 -0
- package/dist/client/assets/sidebar-Dxq8kloB.js +2 -0
- package/dist/client/assets/{sidebarProjectGrouping-DrnsFA8t.js → sidebarProjectGrouping-BfZ705hQ.js} +2 -2
- package/dist/client/assets/{skeleton-0mC3wMw1.js → skeleton--M5AJWoC.js} +2 -2
- package/dist/client/assets/{sourceControl-D6TEHNpa.js → sourceControl-Cmvk57z0.js} +2 -2
- package/dist/client/assets/sourceControlClients-C0IkCWsN.js +2 -0
- package/dist/client/assets/{spinner-DHOdl-gn.js → spinner-cHzhZrgb.js} +2 -2
- package/dist/client/assets/{standalone-page-Dx8vGwaJ.js → standalone-page-BaVFigS5.js} +2 -2
- package/dist/client/assets/{stateDiagram-D77RDMKH-D8n56CID.js → stateDiagram-D77RDMKH-CZ_bsdqp.js} +2 -2
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-93FSJgV8.js +2 -0
- package/dist/client/assets/{swimlanes-42K2YHIH-DZZct2ih.js → swimlanes-42K2YHIH-My4j-GD7.js} +2 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-1FS1ow3r.js +9 -0
- package/dist/client/assets/{terminal-links-Di9Ijg8X.js → terminal-links-BSEOjQCo.js} +2 -2
- package/dist/client/assets/{terminalSessions-B8EDcX8b.js → terminalSessions-BpuHxk1q.js} +2 -2
- package/dist/client/assets/{textarea-BvPoR1cI.js → textarea-XR9lgl40.js} +2 -2
- package/dist/client/assets/{themePalette-zFOiBKDi.js → themePalette-CONAHv4I.js} +2 -2
- package/dist/client/assets/threadSort-Bd2rijEy.js +2 -0
- package/dist/client/assets/{timeline-definition-24CTP7MA-BGfuRztb.js → timeline-definition-24CTP7MA-Q9JBFJBF.js} +2 -2
- package/dist/client/assets/toast-CwJ-bjHi.js +2 -0
- package/dist/client/assets/{toggle-DeCGfzT2.js → toggle-FqX4CVcC.js} +2 -2
- package/dist/client/assets/{toggle-group-DekLc0Ax.js → toggle-group-JCVlIQ5i.js} +2 -2
- package/dist/client/assets/tooltip-CtZ6PJJw.js +2 -0
- package/dist/client/assets/{treeView-Q6P3EWNA-BPM2x-ME.js → treeView-Q6P3EWNA-3qBVWI88.js} +1 -1
- package/dist/client/assets/{treemap-WGGIJYW6-sku0fChI.js → treemap-WGGIJYW6-O3_0iynh.js} +1 -1
- package/dist/client/assets/uiStateStore-CcTtH1Jz.js +6 -0
- package/dist/client/assets/usage-DWATWAhJ.js +2 -0
- package/dist/client/assets/{usageAccess-BGb3m0YV.js → usageAccess-Cpk_Aec9.js} +2 -2
- package/dist/client/assets/{usageFormat-H-RgZ0fy.js → usageFormat-B23xwSbG.js} +2 -2
- package/dist/client/assets/{usageShortcuts-C320W17X.js → usageShortcuts-BMHWlKT1.js} +2 -2
- package/dist/client/assets/{use-atom-command-GpCw1tWF.js → use-atom-command-3Z4EZbCj.js} +2 -2
- package/dist/client/assets/{useAriaLabelledBy-C8nSWyQ9.js → useAriaLabelledBy-CMSGO3cd.js} +2 -2
- package/dist/client/assets/{useHandleNewThread-FJLPEfoH.js → useHandleNewThread-B9RCcbnw.js} +2 -2
- package/dist/client/assets/{useLocation-Ccsih1eo.js → useLocation-BTH6wjAt.js} +2 -2
- package/dist/client/assets/useNavigate-BS8hIoQr.js +2 -0
- package/dist/client/assets/{useNavigateBack-PnWVFtkU.js → useNavigateBack-DskLvJ9n.js} +2 -2
- package/dist/client/assets/{useParams-CoeDewwU.js → useParams-DhNu716j.js} +2 -2
- package/dist/client/assets/{usePermissionStatus-mBtsOu9K.js → usePermissionStatus-DaOsrYgE.js} +2 -2
- package/dist/client/assets/usePullRequestActions-3vXHUgiG.js +3 -0
- package/dist/client/assets/{useRegisterFieldControl-9rSmWR2W.js → useRegisterFieldControl-BX1EsUxP.js} +2 -2
- package/dist/client/assets/useScopedModelAvailability-BcYNdaQr.js +2 -0
- package/dist/client/assets/useSettings-D_OJJgNE.js +3 -0
- package/dist/client/assets/{useT3ConnectAuthPrompt-ZyPZIXm7.js → useT3ConnectAuthPrompt-BcMgBGvL.js} +2 -2
- package/dist/client/assets/utils-DqIvhFCT.js +37 -0
- package/dist/client/assets/{vcsRefInvalidation-DfCz0cGO.js → vcsRefInvalidation-Dj5BpmJA.js} +2 -2
- package/dist/client/assets/{vennDiagram-4TSXK5OY-CjhblZp4.js → vennDiagram-4TSXK5OY-CGJ_vzL4.js} +2 -2
- package/dist/client/assets/{wardley-WFR3VGLG-Cuf_pn9-.js → wardley-WFR3VGLG-dLKWDrdG.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-VM6X3IG4-CMQ-_cYv.js → wardleyDiagram-VM6X3IG4-CZY3cfuL.js} +2 -2
- package/dist/client/assets/welcome-BSKechyt.js +2 -0
- package/dist/client/assets/{xychartDiagram-S5SC5T6Z-BlCqmJgA.js → xychartDiagram-S5SC5T6Z-H2sll7xl.js} +2 -2
- package/dist/client/index.html +1 -1
- package/dist/{renderer-7OJ6c0Me.mjs → renderer-CCVomMFP.mjs} +2 -2
- package/dist/{runtime-BHqdsO3Y.mjs → runtime-DKclsP_7.mjs} +51 -3
- package/package.json +1 -1
- package/dist/client/assets/AlertDialogRoot-D6ed6zQR.js +0 -2
- package/dist/client/assets/CodexSetupSection.logic-Ed9SDkqP.js +0 -2
- package/dist/client/assets/CommandBlock-C7ASE_F_.js +0 -2
- package/dist/client/assets/DevicePanel-CS1FTu-C.js +0 -2
- package/dist/client/assets/DeviceSetup-DZAK0_tm.js +0 -2
- package/dist/client/assets/DiffFileTree-DkLJXYZf.js +0 -2
- package/dist/client/assets/DiffPanel-CGV12wM6.js +0 -2
- package/dist/client/assets/EmbeddedDesign--Xz14U92.js +0 -19
- package/dist/client/assets/FilePreviewPanel-8tUtMikb.js +0 -34
- package/dist/client/assets/Input-CVwvVqbx.js +0 -2
- package/dist/client/assets/NoProjectsHero-Lsb9cuvO.js +0 -2
- package/dist/client/assets/PreviewPanel-DmaoFTEA.js +0 -2
- package/dist/client/assets/ProjectDefaultsSettings-CrKY01_P.js +0 -2
- package/dist/client/assets/ProjectFavicon-B5C6TpKj.js +0 -3
- package/dist/client/assets/ProviderModelPicker-CeB11O3P.js +0 -2
- package/dist/client/assets/PullRequestCodeTab-BqH4glgo.js +0 -6
- package/dist/client/assets/RenderErrorBoundary-BgOA8qma.js +0 -2
- package/dist/client/assets/ScheduledTasksSettings-BMQ-_Rms.js +0 -4
- package/dist/client/assets/SettingsScopeNotice-_WSLtOW4.js +0 -2
- package/dist/client/assets/ThemeEditorPanel-DB8D5_6u.js +0 -5
- package/dist/client/assets/TooltipViewport-kqulS2nz.js +0 -2
- package/dist/client/assets/_chat-C2VZmKVT.js +0 -45
- package/dist/client/assets/_chat.index-CQSbFMBa.js +0 -2
- package/dist/client/assets/_chat.new-BxObe9FX.js +0 -4
- package/dist/client/assets/_chat.pull-requests-JS9EZDI7.js +0 -2
- package/dist/client/assets/architecture-7GRP2DOG-Dd1d-ckm.js +0 -1
- package/dist/client/assets/browserHistoryStore-_SurQa0e.js +0 -2
- package/dist/client/assets/channel-Dsne2IjR.js +0 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-Dazl0CLN.js +0 -2
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-Dazl0CLN.js +0 -2
- package/dist/client/assets/command-DsE3Ju6m.js +0 -2
- package/dist/client/assets/environments-iW64jjyO.js +0 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-B5z8GPGl.js +0 -1
- package/dist/client/assets/flowDiagram-HODETNUW-CEpweBDE.js +0 -1
- package/dist/client/assets/git-compare-CCnx9obs.js +0 -2
- package/dist/client/assets/main-ChIB1-3M.css +0 -2
- package/dist/client/assets/main-lV-t-UZx.js +0 -30
- package/dist/client/assets/primaryCloudLinkState-BP-HZzf2.js +0 -2
- package/dist/client/assets/providerSkills-O72EMm0V.js +0 -2
- package/dist/client/assets/pullRequests-7IQc0VIk.js +0 -2
- package/dist/client/assets/railroad-abnf-HS5TGJTU-l3gFfdc2.js +0 -1
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-eiWL8AW4.js +0 -1
- package/dist/client/assets/railroad-peg-WCYAUIDC-UK0E-Txe.js +0 -1
- package/dist/client/assets/runtime-B5cKWtKn.js +0 -2
- package/dist/client/assets/settings-mrxLMm57.js +0 -2
- package/dist/client/assets/settings.archived-Hl4HyrFx.js +0 -2
- package/dist/client/assets/settings.connections-CgaYGg_W.js +0 -2
- package/dist/client/assets/settings.data-controls-DNY0fL9E.js +0 -2
- package/dist/client/assets/settings.diagnostics-BHSEPjF8.js +0 -2
- package/dist/client/assets/settings.integrations-DykwmCf7.js +0 -2
- package/dist/client/assets/settings.plugins-B7Nlb85S.js +0 -5
- package/dist/client/assets/settings.projects-Ob8jKbIh.js +0 -4
- package/dist/client/assets/settings.providers-BIm-8j9C.js +0 -3
- package/dist/client/assets/settings.snap-shot-D37zM8an.js +0 -2
- package/dist/client/assets/settings.source-control-DmRUgcsk.js +0 -2
- package/dist/client/assets/settingsLayout-CqGfrbmD.js +0 -3
- package/dist/client/assets/sidebar-C_I_pq_E.js +0 -2
- package/dist/client/assets/sortable.esm-DuAaqmgD.js +0 -6
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-DqXgq-FS.js +0 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-DAX63YhZ.js +0 -9
- package/dist/client/assets/threadSort-Cn23YHH2.js +0 -2
- package/dist/client/assets/toast-CN7Jd-pG.js +0 -2
- package/dist/client/assets/tooltip-DaSC-3cL.js +0 -2
- package/dist/client/assets/usage-CKRSqJso.js +0 -2
- package/dist/client/assets/useNavigate-Dhy_1-Mg.js +0 -2
- package/dist/client/assets/usePullRequestActions-_K7fD4Ny.js +0 -3
- package/dist/client/assets/useScopedModelAvailability-DE1E_lbg.js +0 -2
- package/dist/client/assets/useSettings-CKA-LDDj.js +0 -3
- package/dist/client/assets/utils-BAPnqm16.js +0 -37
- package/dist/client/assets/welcome-nE6tva7L.js +0 -2
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Gs as n,NE as r,Pp as i,Rf as a,lE as o,sr as s}from"./utils-BAPnqm16.js";import{o as c,w as l}from"./runtime-B9IDNXDU.js";import{C as u,d,k as f,v as p}from"./entities-DCbEYTvn.js";import{N as m}from"./runtime-B5cKWtKn.js";import{t as h}from"./link-Bgj44djS.js";import{a as g}from"./useParams-CoeDewwU.js";import{a as _}from"./environments-iW64jjyO.js";import{t as v}from"./env-wK1YYxA8.js";import{o as y}from"./sidebar-C_I_pq_E.js";import{i as b,o as x,r as S,t as C}from"./empty-2jxBvPLn.js";import{D as w,n as T}from"./useHandleNewThread-FJLPEfoH.js";import{a as E,qa as D}from"./main-lV-t-UZx.js";import{t as O}from"./WorkspacePageHeader-BvKCy7v2.js";import{t as k}from"./NoProjectsHero-Lsb9cuvO.js";var A=r(),j=e(t()),M=e(o());function N(){let e=(0,A.c)(2),{authGateState:t}=E.useRouteContext(),{environments:n,isReady:r}=_();if(t.status===`hosted-static`){if(!r)return null;if(n.length===0){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,M.jsx)(z,{}),e[0]=t):t=e[0],t}}let i;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,M.jsx)(P,{}),e[1]=i):i=e[1],i}function P(){let e=(0,A.c)(18),t=u(),r=f(),i=p(),a=T(),o=g(),s;e[0]===o.state.location.pathname?s=e[1]:(s=()=>o.state.location.pathname===`/`,e[0]=o.state.location.pathname,e[1]=s);let c=(0,j.useEffectEvent)(s),l=(0,j.useRef)(!1),m;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(m={failed:!1,retryRequest:0},e[2]=m):m=e[2];let[h,_]=(0,j.useState)(m),v;e[3]!==i||e[4]!==t||e[5]!==r?(v=i?w(t,r,`updated_at`)[0]??null:null,e[3]=i,e[4]=t,e[5]=r,e[6]=v):v=e[6];let y=v,b;e[7]!==a||e[8]!==c||e[9]!==y?(b=()=>{if(y===null||l.current||!c())return;let e=n(y.environmentId,y.id);d(e)!==null&&(l.current=!0,a(e,{replace:!0}).then(e=>{e===null&&(l.current=!1,_(L))}).catch(()=>{l.current=!1,_(I)}))},e[7]=a,e[8]=c,e[9]=y,e[10]=b):b=e[10];let x;if(e[11]!==a||e[12]!==y||e[13]!==h.retryRequest?(x=[a,y,h.retryRequest],e[11]=a,e[12]=y,e[13]=h.retryRequest,e[14]=x):x=e[14],(0,j.useEffect)(b,x),!i)return null;if(y!==null){let t;return e[15]===h.failed?t=e[16]:(t=h.failed?(0,M.jsx)(R,{onRetry:()=>{_(F)}}):null,e[15]=h.failed,e[16]=t),t}let S;return e[17]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,M.jsx)(k,{}),e[17]=S):S=e[17],S}function F(e){return{failed:!1,retryRequest:e.retryRequest+1}}function I(e){return{...e,failed:!0}}function L(e){return{...e,retryRequest:e.retryRequest+1}}function R(e){let t=(0,A.c)(6),{onRetry:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=v?(0,M.jsx)(O,{electron:!0}):null,t[0]=r):r=t[0];let i,a;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,M.jsx)(x,{children:`Couldn’t start a new thread`}),a=(0,M.jsx)(S,{children:`The project is still available. Try opening the draft again.`}),t[1]=i,t[2]=a):(i=t[1],a=t[2]);let o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,M.jsx)(D,{size:`md`}),t[3]=o):o=t[3];let c;return t[4]===n?c=t[5]:(c=(0,M.jsxs)(y,{className:`h-dvh min-h-0 overflow-hidden overscroll-y-none`,children:[r,(0,M.jsx)(C,{className:`flex-1`,children:(0,M.jsxs)(b,{className:`max-w-md`,children:[i,a,(0,M.jsx)(`div`,{className:`mt-5 flex justify-center`,children:(0,M.jsxs)(s,{size:`sm`,onClick:n,children:[o,`Try again`]})})]})})]}),t[4]=n,t[5]=c),c}function z(){let e=(0,A.c)(7),t=c(),n=l()?`The local environment is turned off. Connect a remote environment, or turn the local environment back on in Connections.`:t?`Enable P4 Connect on that machine, then open Connections here to sign in with the same account. You can also add the machine using a pairing link.`:`Open Connections and add that machine using its pairing link. This app must be able to reach it.`,r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,M.jsx)(O,{electron:v,className:`border-b border-border`,children:(0,M.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,M.jsx)(`span`,{className:`text-sm font-medium text-foreground md:text-muted-foreground/60`,children:m})})}),e[0]=r):r=e[0];let o,u,d,f;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,M.jsx)(`div`,{className:`mx-auto mb-5 flex size-11 items-center justify-center rounded-xl border border-border/70 bg-background/70 text-muted-foreground`,children:(0,M.jsx)(a,{className:`size-5`})}),u=(0,M.jsx)(x,{children:`Connect to a computer running P4 Code`}),d=(0,M.jsx)(S,{children:`This app connects to P4 Code running on your computer or a server. Start the P4 Code desktop app or command-line server on that machine and keep it running.`}),f=(0,M.jsx)(S,{children:n}),e[1]=o,e[2]=u,e[3]=d,e[4]=f):(o=e[1],u=e[2],d=e[3],f=e[4]);let p;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,M.jsx)(h,{to:`/settings/connections`}),e[5]=p):p=e[5];let g;return e[6]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,M.jsx)(y,{className:`h-dvh min-h-0 overflow-hidden overscroll-y-none`,children:(0,M.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden bg-background`,children:[r,(0,M.jsx)(C,{className:`flex-1`,children:(0,M.jsx)(`div`,{className:`w-full max-w-xl rounded-3xl border border-border/55 bg-card/20 px-8 py-12 shadow-sm/5`,children:(0,M.jsxs)(b,{className:`max-w-none`,children:[o,u,d,f,(0,M.jsx)(`div`,{className:`mt-6 flex justify-center`,children:(0,M.jsxs)(s,{render:p,size:`sm`,children:[(0,M.jsx)(i,{className:`size-4`}),`Open Connections`]})})]})})})]})}),e[6]=g):g=e[6],g}export{N as component};
|
|
2
|
-
//# sourceMappingURL=_chat.index-CQSbFMBa.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{D as n,Gs as r,Jg as i,Ks as a,NE as o,Vs as s,Yo as c,lE as l,o as u,sr as d}from"./utils-BAPnqm16.js";import{R as f,W as p}from"./runtime-B9IDNXDU.js";import{C as m,G as h,N as g,k as ee}from"./entities-DCbEYTvn.js";import{on as _,rn as v,sn as y}from"./runtime-B5cKWtKn.js";import{t as b}from"./useNavigate-Dhy_1-Mg.js";import{t as x}from"./useLocation-Ccsih1eo.js";import{i as S}from"./toast-CN7Jd-pG.js";import{a as C,s as te}from"./environments-iW64jjyO.js";import{t as ne}from"./use-atom-command-GpCw1tWF.js";import{n as re}from"./toastHelpers-Dsph6LwL.js";import{t as w}from"./env-wK1YYxA8.js";import{o as T}from"./sidebar-C_I_pq_E.js";import{i as E,o as D,r as O,t as k}from"./empty-2jxBvPLn.js";import{t as ie}from"./sourceControl-D6TEHNpa.js";import{D as ae,n as oe}from"./useHandleNewThread-FJLPEfoH.js";import{Cn as se,Mn as A,Pn as ce,Rn as le}from"./main-lV-t-UZx.js";import{t as j}from"./WorkspacePageHeader-BvKCy7v2.js";import{i as M}from"./usePullRequestActions-_K7fD4Ny.js";import{n as N,t as ue}from"./linkedPrompt-D1aW6nV5.js";var P=o(),F=e=>`github.com/${e.owner}/${e.name}`.toLowerCase();function de(e,t){let n=F(t);return e.find(e=>e.repositoryIdentity!=null&&i(e.repositoryIdentity).toLowerCase()===n)}function fe(e,t){let n=v({host:`github.com`,repository:`${t.owner}/${t.name}`,number:t.number}),r;for(let t of e)r!==void 0&&t.updatedAt<=r.updatedAt||y(_(t)).some(e=>v(e)===n)&&(r=t);return r}var I={claude:`claudeagent`};function pe(e,t){let n=I[t.provider]??t.provider,r=e.filter(e=>e.driver.toLowerCase()===n&&e.enabled&&e.availability!==`unavailable`),i=r.find(e=>e.status===`ready`)??r.find(e=>e.status===`warning`);if(i===void 0)return null;let a=t.model===null?null:s(i.driver,t.model,i.models),o=a??(i.models.find(e=>e.isDefault)??i.models[0])?.slug;return o===void 0?null:{selection:{instanceId:i.instanceId,model:o},exact:t.model===null||a!==null}}var L=e(t(),1),R=e(l(),1),z=new Set;function B(e){let t=(0,P.c)(62),{link:i}=e,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={select:_e},t[0]=o):o=t[0];let s=x(o),l=b(),_=c(h),v=m(),y=ee(),{environments:w}=C(),T=te(),E=oe(),{scratchEnvironmentId:D,openScratchProject:O}=se(),k;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(k={reportFailure:!1},t[1]=k):k=t[1];let A=ne(ie.startProjectClone,k),j;t[2]===s?j=t[3]:(j=()=>z.has(s)?{status:`opened`}:{status:`opening`},t[2]=s,t[3]=j);let[M,N]=(0,L.useState)(j),F=(0,L.useRef)(!1),I;t[4]!==v||t[5]!==y?(I=()=>ae(v.filter(ge),y,`updated_at`),t[4]=v,t[5]=y,t[6]=I):I=t[6];let B=I,H;t[7]!==T||t[8]!==y?(H=()=>{let e;for(let t of y)(e===void 0||t.updatedAt>e.updatedAt)&&(e=t);return e?.environmentId??T},t[7]=T,t[8]=y,t[9]=H):H=t[9];let U=H,W;t[10]!==w||t[11]!==E||t[12]!==i?(W=async(e,t)=>{let a=await E(r(e.environmentId,e.id),{replace:!0}).catch(he);if(a===null){N({status:`failed`,message:`P4 Code could not open a new thread.`});return}N({status:`opened`});let o=[];if(i.kind===`new`&&i.provider!==null){let t=pe(w.find(t=>t.environmentId===e.environmentId)?.serverConfig?.providers??[],{provider:i.provider,model:i.model});t!==null&&n.getState().setModelSelection(a.draftId,t.selection,{explicit:!0,replaceOptions:!0}),(t===null||!t.exact)&&o.push(t===null?`The link asked for ${i.provider}, which is not set up here, so your default model is used.`:`The link asked for ${i.model}, which ${i.provider} does not offer here, so its default model is used.`)}let s=[i.prompt?.text,t].filter(Boolean).join(`
|
|
2
|
-
|
|
3
|
-
`);s.length!==0&&ue(a.draftId,{text:s,hiddenCharacters:i.prompt?.hiddenCharacters??0},o)},t[10]=w,t[11]=E,t[12]=i,t[13]=W):W=t[13];let G=W,K;t[14]!==U||t[15]!==i||t[16]!==G||t[17]!==O||t[18]!==D?(K=async()=>{N({status:`opening`});let e=D(U())??D(null),t=e===null?null:await O(e);if(t===null){N({status:`failed`,message:`None of your machines can start a thread without a project right now.`});return}await G(t,i.kind===`pull-request`?ce(i.pullRequest):void 0)},t[14]=U,t[15]=i,t[16]=G,t[17]=O,t[18]=D,t[19]=K):K=t[19];let q=K,J;t[20]!==w||t[21]!==U||t[22]!==i||t[23]!==G||t[24]!==A?(J=async e=>{let t=U(),n=w.find(e=>e.environmentId===t),a=n?.serverConfig?.newProjectsRoot??null;if(t===null||a===null||n?.serverConfig?.environment.capabilities.projectCloneTracking!==!0){N({status:`failed`,message:`This machine cannot clone from a link. Update P4 Code on it, or clone the repository from the command palette.`});return}N({status:`opening`});let o=u(),s=await A({environmentId:t,input:{projectId:o,title:e.name,createdAt:new Date().toISOString(),remoteUrl:`https://github.com/${e.owner}/${e.name}.git`,destinationPath:le(a,e.name)}});if(s._tag===`Failure`){if(!f(s)){let e=p(s);S.add(re({type:`error`,title:`Clone failed`,description:e instanceof Error?e.message:`An error occurred.`}))}N({status:`missing-repository`,repository:e});return}let c=await g(r(t,o),5e3).catch(me);if(c===null){N({status:`failed`,message:`The clone started, but its project did not appear.`});return}if(i.kind===`pull-request`){N({status:`failed`,title:`Cloning ${e.owner}/${e.name}`,message:`Open this link again when the clone finishes.`});return}await G(c)},t[20]=w,t[21]=U,t[22]=i,t[23]=G,t[24]=A,t[25]=J):J=t[25];let Y=J,X;t[26]!==i||t[27]!==s||t[28]!==l||t[29]!==G||t[30]!==q||t[31]!==B||t[32]!==y?(X=()=>{if(F.current)return;if(F.current=!0,z.add(s),i.kind===`pull-request`){let e=fe(y,i.pullRequest);if(e!==void 0){N({status:`opened`});let t=a(e.environmentId,e.id);i.prompt!==null&&ue(t,i.prompt),l({to:`/$environmentId/$threadId`,params:{environmentId:e.environmentId,threadId:e.id},replace:!0});return}}let e=i.kind===`new`?i.repository:i.pullRequest;if(e===null){q();return}let t=de(B(),e);if(t===void 0){N({status:`missing-repository`,repository:e});return}if(i.kind===`pull-request`){N({status:`pull-request-checkout`,project:t});return}G(t)},t[26]=i,t[27]=s,t[28]=l,t[29]=G,t[30]=q,t[31]=B,t[32]=y,t[33]=X):X=t[33];let Z=(0,L.useEffectEvent)(X),Q;t[34]!==_||t[35]!==Z||t[36]!==M.status?(Q=()=>{_&&M.status===`opening`&&Z()},t[34]=_,t[35]=Z,t[36]=M.status,t[37]=Q):Q=t[37];let $;switch(t[38]!==_||t[39]!==M.status?($=[_,M.status],t[38]=_,t[39]=M.status,t[40]=$):$=t[40],(0,L.useEffect)(Q,$),M.status){case`opening`:{let e;return t[41]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,R.jsx)(V,{title:`Opening the link...`}),t[41]=e):e=t[41],e}case`opened`:{let e;return t[42]===s?e=t[43]:(e=(0,R.jsx)(V,{title:`This link is open`,children:(0,R.jsx)(d,{size:`sm`,variant:`outline`,onClick:()=>{z.delete(s),F.current=!1,N({status:`opening`})},children:`Open it again`})}),t[42]=s,t[43]=e),e}case`failed`:{let e=M.title??`Could not open the link`,n;return t[44]!==M.message||t[45]!==e?(n=(0,R.jsx)(V,{title:e,description:M.message}),t[44]=M.message,t[45]=e,t[46]=n):n=t[46],n}case`missing-repository`:{let e=`${M.repository.owner}/${M.repository.name}`,n=`You don't have ${e}`,r;t[47]!==Y||t[48]!==M.repository?(r=()=>void Y(M.repository),t[47]=Y,t[48]=M.repository,t[49]=r):r=t[49];let i;t[50]!==e||t[51]!==r?(i=(0,R.jsxs)(d,{size:`sm`,onClick:r,children:[`Clone `,e]}),t[50]=e,t[51]=r,t[52]=i):i=t[52];let a;t[53]===q?a=t[54]:(a=(0,R.jsx)(d,{size:`sm`,variant:`outline`,onClick:()=>void q(),children:`Use without project`}),t[53]=q,t[54]=a);let o;return t[55]!==n||t[56]!==i||t[57]!==a?(o=(0,R.jsxs)(V,{title:n,description:`Clone it to work on it here, or start without a project.`,children:[i,a]}),t[55]=n,t[56]=i,t[57]=a,t[58]=o):o=t[58],o}case`pull-request-checkout`:{let e;return t[59]!==i||t[60]!==M.project?(e=i.kind===`pull-request`?(0,R.jsx)(ve,{link:i,project:M.project}):null,t[59]=i,t[60]=M.project,t[61]=e):e=t[61],e}}}function me(){return null}function he(){return null}function ge(e){return e.isScratch!==!0}function _e(e){return e.state.__TSR_key??``}function ve(e){let t=(0,P.c)(22),{link:n,project:r}=e,i=r.environmentId,a=r.id,o=r.workspaceRoot,s;t[0]===n.pullRequest?s=t[1]:(s=ce(n.pullRequest),t[0]=n.pullRequest,t[1]=s);let c;t[2]!==r.id||t[3]!==r.workspaceRoot||t[4]!==s?(c={projectId:a,workspaceRoot:o,url:s},t[2]=r.id,t[3]=r.workspaceRoot,t[4]=s,t[5]=c):c=t[5];let l;t[6]!==r.environmentId||t[7]!==c?(l={environmentId:i,detail:c},t[6]=r.environmentId,t[7]=c,t[8]=l):l=t[8];let{handoff:u,startHandoff:f}=M(l),p=(0,L.useRef)(!1),m,h;t[9]===n.prompt?(m=t[10],h=t[11]):(m=()=>{p.current||n.prompt===null||(p.current=!0,N(n.prompt))},h=[n.prompt],t[9]=n.prompt,t[10]=m,t[11]=h),(0,L.useEffect)(m,h);let{owner:g,name:ee,number:_}=n.pullRequest,v=`Check out ${g}/${ee}#${_}?`,y=u!==null,b;t[12]!==n.prompt||t[13]!==f?(b=()=>void f(`prompt-link`,n.prompt===null?null:{prompt:n.prompt.text}),t[12]=n.prompt,t[13]=f,t[14]=b):b=t[14];let x=u===null?`Check out`:`Checking out...`,S;t[15]!==y||t[16]!==b||t[17]!==x?(S=(0,R.jsx)(d,{size:`sm`,disabled:y,onClick:b,children:x}),t[15]=y,t[16]=b,t[17]=x,t[18]=S):S=t[18];let C;return t[19]!==S||t[20]!==v?(C=(0,R.jsx)(V,{title:v,description:`This puts the pull request's code in a new worktree and runs your project's setup script on it.`,children:S}),t[19]=S,t[20]=v,t[21]=C):C=t[21],C}function V(e){let t=(0,P.c)(11),{title:n,description:r,children:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=w?(0,R.jsx)(j,{electron:!0}):null,t[0]=a):a=t[0];let o;t[1]===n?o=t[2]:(o=(0,R.jsx)(D,{children:n}),t[1]=n,t[2]=o);let s;t[3]===r?s=t[4]:(s=r?(0,R.jsx)(O,{children:r}):null,t[3]=r,t[4]=s);let c;t[5]===i?c=t[6]:(c=i?(0,R.jsx)(`div`,{className:`mt-5 flex justify-center gap-2`,children:i}):null,t[5]=i,t[6]=c);let l;return t[7]!==o||t[8]!==s||t[9]!==c?(l=(0,R.jsxs)(T,{className:`h-dvh min-h-0 overflow-hidden overscroll-y-none`,children:[a,(0,R.jsx)(k,{className:`flex-1`,children:(0,R.jsxs)(E,{className:`max-w-md`,children:[o,s,c]})})]}),t[7]=o,t[8]=s,t[9]=c,t[10]=l):l=t[10],l}function H(){let e=(0,P.c)(9),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:U},e[0]=t):t=e[0];let n=x(t),r;e[1]===n?r=e[2]:(r=A(n),e[1]=n,e[2]=r);let i=r;if(!i.ok){let t;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,R.jsx)(D,{children:`Could not open the link`}),e[3]=t):t=e[3];let n;return e[4]===i.error?n=e[5]:(n=(0,R.jsx)(T,{className:`h-dvh min-h-0 overflow-hidden overscroll-y-none`,children:(0,R.jsx)(k,{className:`flex-1`,children:(0,R.jsxs)(E,{className:`max-w-md`,children:[t,(0,R.jsx)(O,{children:i.error})]})})}),e[4]=i.error,e[5]=n),n}let a;return e[6]!==i.value||e[7]!==n?(a=(0,R.jsx)(B,{link:i.value},n),e[6]=i.value,e[7]=n,e[8]=a):a=e[8],a}function U(e){return e.searchStr}export{H as component};
|
|
4
|
-
//# sourceMappingURL=_chat.new-BxObe9FX.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$n as n,Ad as r,Bf as i,Ed as a,Ff as o,Fm as s,Gn as c,Gu as l,Jd as u,Jh as d,Jn as f,Jp as p,Kn as m,Lm as h,Mp as g,NE as _,Pp as v,Qn as y,Td as b,Tp as x,Yn as S,Yo as C,Zn as w,ar as T,er as E,gd as D,gn as O,hm as k,ir as A,kd as j,lE as M,or as N,qd as P,qn as F,rr as I,sf as L,sr as R,t as z,tr as B,yl as ee}from"./utils-BAPnqm16.js";import{C as V,k as te,v as ne}from"./entities-DCbEYTvn.js";import{t as H}from"./spinner-DHOdl-gn.js";import{t as re}from"./useNavigate-Dhy_1-Mg.js";import{t as ie}from"./useNavigateBack-PnWVFtkU.js";import{i as ae,m as oe}from"./toast-CN7Jd-pG.js";import{a as se,n as U,t as W}from"./tooltip-DaSC-3cL.js";import{a as ce,r as G,s as le}from"./environments-iW64jjyO.js";import{s as ue}from"./server-CoH7V4JL.js";import{t as de}from"./use-atom-command-GpCw1tWF.js";import{a as fe,c as pe,l as K,o as me,r as he,t as ge}from"./rightPanelStore-DfMWWfvR.js";import{s as _e}from"./useSettings-CKA-LDDj.js";import{r as ve}from"./queries-DCKH7ltg.js";import{S as ye,_ as be,a as xe,b as Se,c as Ce,d as we,f as q,h as Te,i as Ee,l as De,m as Oe,n as ke,o as Ae,p as je,r as Me,t as Ne,u as Pe,v as Fe,x as Ie,y as Le}from"./PanelLayoutControls-DL7sleZ-.js";import{t as Re}from"./env-wK1YYxA8.js";import{o as ze}from"./sidebar-C_I_pq_E.js";import{i as Be,n as Ve,o as He,r as Ue,t as We}from"./empty-2jxBvPLn.js";import{_ as Ge,y as Ke}from"./keybindings-DLDyoB30.js";import{l as qe,n as Je,o as Ye,s as J}from"./RenderErrorBoundary-BgOA8qma.js";import{c as Xe}from"./threadSort-Cn23YHH2.js";import{n as Ze}from"./pullRequestIcons-CSZus-cz.js";import{A as Qe,B as $e,C as et,D as tt,E as nt,F as rt,H as it,I as at,L as ot,M as st,N as ct,O as lt,P as ut,R as dt,S as ft,T as pt,U as mt,V as ht,_ as gt,b as _t,d as vt,f as yt,g as bt,h as xt,j as St,l as Ct,m as wt,o as Tt,p as Et,r as Dt,s as Ot,v as kt,w as At,x as jt,y as Mt,z as Nt}from"./pullRequests-7IQc0VIk.js";import{t as Pt}from"./ProjectFavicon-B5C6TpKj.js";import{n as Ft,r as It,t as Lt}from"./input-group-Q757vhrD.js";import{a as Rt,d as zt,l as Bt,o as Vt,p as Y}from"./guideRunStore-B3Y6e_nf.js";import{_ as Ht,b as X,g as Ut,v as Wt}from"./sortable.esm-DuAaqmgD.js";import{d as Gt,f as Kt,p as qt}from"./p4ProjectFile--u7SOSK5.js";import{r as Jt}from"./sidebarProjectGrouping-DrnsFA8t.js";import{O as Yt,b as Xt,h as Zt}from"./useHandleNewThread-FJLPEfoH.js";import{r as Qt}from"./EnvironmentMachineIcon-BMWCDR69.js";import{t as $t}from"./WorkspacePageContainer-DwN_ETF0.js";import{Br as en,Jr as tn,Vr as nn,n as rn,qa as an,qr as on,t as sn,vn as cn}from"./main-lV-t-UZx.js";import{t as ln}from"./WorkspacePageHeader-BvKCy7v2.js";import{n as un}from"./usePullRequestActions-_K7fD4Ny.js";import{n as dn,r as fn,t as pn}from"./WorkspaceBreadcrumb-ClxInGsT.js";var Z=_(),Q=e(t(),1),mn=class{props;static activators=[{eventName:`onPointerDown`,handler:({nativeEvent:e})=>e.isPrimary&&e.button===0}];autoScrollEnabled=!0;phase=`pending`;pointer;document;window;constructor(e){this.props=e,this.pointer=e.event,this.document=Ut(this.pointer.target),this.window=Ht(this.pointer.target),this.document.addEventListener(`pointermove`,this.move,{passive:!1,capture:!0}),this.document.addEventListener(`pointerup`,this.end,{capture:!0}),this.document.addEventListener(`pointercancel`,this.pointerCancel,{capture:!0}),this.document.addEventListener(`keydown`,this.keydown,{capture:!0}),this.document.addEventListener(`visibilitychange`,this.visibilityChange),this.window.addEventListener(`blur`,this.cancel),this.window.addEventListener(`pagehide`,this.cancel),this.window.addEventListener(`resize`,this.cancel),this.document.addEventListener(`dragstart`,this.preventDefault),this.document.addEventListener(`contextmenu`,this.preventDefault),e.options.onAttach(this),e.onPending(e.active,{distance:e.options.distance},this.coordinates())}coordinates=()=>({x:this.pointer.clientX,y:this.pointer.clientY});preventDefault=e=>e.preventDefault();clearClickSuppression=()=>{this.document.removeEventListener(`click`,this.suppressClick,{capture:!0}),this.document.removeEventListener(`pointerdown`,this.clearClickSuppression,{capture:!0})};suppressClick=e=>{e.stopPropagation(),this.clearClickSuppression()};clearSelection=()=>this.document.getSelection()?.removeAllRanges();move=e=>{if(this.phase===`finished`||e.pointerId!==this.pointer.pointerId)return;let t={x:e.clientX,y:e.clientY};if(!(e.buttons&1))return this.phase===`dragging`&&this.props.options.onDrop?.(t),this.cancel();if(this.phase===`pending`){let t={x:e.clientX-this.pointer.clientX,y:e.clientY-this.pointer.clientY};if(Math.hypot(t.x,t.y)<=this.props.options.distance){this.props.onPending(this.props.active,{distance:this.props.options.distance},this.coordinates(),t);return}this.phase=`dragging`,this.document.addEventListener(`click`,this.suppressClick,{capture:!0}),this.document.addEventListener(`selectionchange`,this.clearSelection),this.clearSelection(),this.props.onStart(this.coordinates())}if(this.phase===`dragging`){if(e.cancelable&&e.preventDefault(),this.props.options.onMove?.(t)===!0)return;this.props.onMove(t)}};end=e=>{if(e.pointerId!==this.pointer.pointerId)return;let t=this.phase===`dragging`&&this.props.options.onDrop?.({x:e.clientX,y:e.clientY})===!0;this.finish(t)};pointerCancel=e=>{e.pointerId===this.pointer.pointerId&&this.cancel()};keydown=e=>{e.code===`Escape`&&this.cancel()};visibilityChange=()=>{this.document.hidden&&this.cancel()};cancel=()=>this.finish(!0);finish(e){if(this.phase===`finished`)return;let t=this.phase===`pending`;this.phase=`finished`,this.document.removeEventListener(`pointermove`,this.move,{capture:!0}),this.document.removeEventListener(`pointerup`,this.end,{capture:!0}),this.document.removeEventListener(`pointercancel`,this.pointerCancel,{capture:!0}),this.document.removeEventListener(`keydown`,this.keydown,{capture:!0}),this.document.removeEventListener(`visibilitychange`,this.visibilityChange),this.window.removeEventListener(`blur`,this.cancel),this.window.removeEventListener(`pagehide`,this.cancel),this.window.removeEventListener(`resize`,this.cancel),this.document.removeEventListener(`dragstart`,this.preventDefault),this.document.removeEventListener(`contextmenu`,this.preventDefault),this.document.removeEventListener(`selectionchange`,this.clearSelection),(!t||e)&&(this.document.addEventListener(`click`,this.suppressClick,{capture:!0}),this.document.addEventListener(`pointerdown`,this.clearClickSuppression,{capture:!0}));try{this.props.options.onFinish(!t)}finally{t&&this.props.onAbort(this.props.active),e?this.props.onCancel():this.props.onEnd()}}};function hn(e,t){let n=new Map;for(let t of e)n.set(t.title,(n.get(t.title)??0)+1);return e.map(e=>(n.get(e.title)??0)>1?{...e,title:`${e.title} · ${t(e)}`}:e)}function gn(e,t,n){let r=new Map;for(let t of e){let e=t.repositoryIdentity?.canonicalKey?.toLowerCase(),i=JSON.stringify([t.environmentId,e?[`repository`,e]:[`project`,t.id]]),a=t.id===n?.id&&t.environmentId===n.environmentId;(!r.has(i)||a)&&r.set(i,t)}return hn(hn(hn(hn([...r.values()],e=>t.get(e.environmentId)??e.environmentId),e=>e.workspaceRoot),e=>e.environmentId),e=>e.id).toSorted((e,t)=>e.title.localeCompare(t.title))}var $=e(M(),1);function _n(e){let t=(0,Z.c)(3),{option:n}=e,r;return t[0]!==n.Icon||t[1]!==n.project?(r=n.project?(0,$.jsx)(Pt,{project:n.project,className:`size-3.5`}):(0,$.jsx)(n.Icon,{"aria-hidden":!0,className:`size-3.5`}),t[0]=n.Icon,t[1]=n.project,t[2]=r):r=t[2],r}function vn(e,t){return e.filter(e=>e.kind===t.kind).length>1?t.host:cn(t.kind).providerName}function yn(e){let t=(0,Z.c)(14),{value:n,busy:r,onChange:i}=e,[a,o]=(0,Q.useState)(null),s;t[0]===r?s=t[1]:(s=(0,$.jsx)(Ft,{children:r?(0,$.jsx)(H,{"aria-hidden":!0}):(0,$.jsx)(p,{"aria-hidden":!0})}),t[0]=r,t[1]=s);let c=a??n,l;t[2]===n?l=t[3]:(l=()=>o(n),t[2]=n,t[3]=l);let u;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>o(null),t[4]=u):u=t[4];let d;t[5]===i?d=t[6]:(d=e=>{o(e.currentTarget.value),i(e.currentTarget.value)},t[5]=i,t[6]=d);let f;t[7]!==c||t[8]!==l||t[9]!==d?(f=(0,$.jsx)(It,{type:`search`,value:c,onFocus:l,onBlur:u,onChange:d,placeholder:`Search pull requests, or label:bug`,"aria-label":`Search pull requests`}),t[7]=c,t[8]=l,t[9]=d,t[10]=f):f=t[10];let m;return t[11]!==s||t[12]!==f?(m=(0,$.jsxs)(Lt,{className:`min-w-0 flex-1 **:[input]:h-9 sm:**:[input]:h-8`,children:[s,f]}),t[11]=s,t[12]=f,t[13]=m):m=t[13],m}var bn=`all`,xn=``,Sn=``,Cn=`all`,wn=e=>JSON.stringify([e.environmentId,e.id]),Tn=[{value:Cn,label:`All`,Icon:o},{value:`only`,label:`Drafts only`,Icon:Ze.draft},{value:`hide`,label:`Hide drafts`,Icon:u}],En=[{value:Cn,label:`All`,Icon:o},{value:`approved`,label:`Approved`,Icon:b},{value:`changes-requested`,label:`Changes requested`,Icon:r},{value:`review-required`,label:`Review required`,Icon:a},{value:`none`,label:`No reviews`,Icon:j}],Dn=[{value:Cn,label:`All`,Icon:o},{value:`passing`,label:`Passing`,Icon:b},{value:`failing`,label:`Failing`,Icon:r}];function On(e){let t=(0,Z.c)(12),{label:n,value:r,options:i,onChange:a}=e,o;t[0]!==a||t[1]!==r?(o=e=>{e!==r&&a(e)},t[0]=a,t[1]=r,t[2]=o):o=t[2];let s;t[3]===n?s=t[4]:(s=(0,$.jsx)(f,{children:n}),t[3]=n,t[4]=s);let c;t[5]===i?c=t[6]:(c=i.map(kn),t[5]=i,t[6]=c);let l;return t[7]!==o||t[8]!==s||t[9]!==c||t[10]!==r?(l=(0,$.jsxs)(y,{value:r,onValueChange:o,children:[s,c]}),t[7]=o,t[8]=s,t[9]=c,t[10]=r,t[11]=l):l=t[11],l}function kn(e){let t=(0,$.jsx)(n,{value:e.value,className:e.unavailable?`data-disabled:pointer-events-auto`:void 0,disabled:e.unavailable!==void 0,children:(0,$.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,$.jsx)(_n,{option:e}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label}),e.unavailable?(0,$.jsx)(`span`,{className:`shrink-0`,children:`· Unavailable`}):null,(0,$.jsx)(E,{})]})},e.value);return e.unavailable?(0,$.jsxs)(W,{children:[(0,$.jsx)(se,{render:t}),(0,$.jsx)(U,{side:`top`,children:e.unavailable})]},e.value):t}function An(e){let t=(0,Z.c)(21),{label:n,value:r,options:i,onChange:a}=e,o;t[0]!==i||t[1]!==r?(o=i.find(e=>e.value===r)??i[0],t[0]=i,t[1]=r,t[2]=o):o=t[2];let s=o;if(!s)return null;let c;t[3]===s?c=t[4]:(c=(0,$.jsx)(_n,{option:s}),t[3]=s,t[4]=c);let l;t[5]===n?l=t[6]:(l=(0,$.jsx)(`span`,{className:`flex-1`,children:n}),t[5]=n,t[6]=l);let u;t[7]===s.label?u=t[8]:(u=(0,$.jsx)(`span`,{className:`min-w-0 max-w-32 truncate text-xs text-muted-foreground`,children:s.label}),t[7]=s.label,t[8]=u);let d;t[9]!==c||t[10]!==l||t[11]!==u?(d=(0,$.jsxs)(T,{children:[c,l,u]}),t[9]=c,t[10]=l,t[11]=u,t[12]=d):d=t[12];let f;t[13]!==n||t[14]!==a||t[15]!==i||t[16]!==r?(f=(0,$.jsx)(A,{children:(0,$.jsx)(On,{label:n,value:r,options:i,onChange:a})}),t[13]=n,t[14]=a,t[15]=i,t[16]=r,t[17]=f):f=t[17];let p;return t[18]!==d||t[19]!==f?(p=(0,$.jsxs)(I,{children:[d,f]}),t[18]=d,t[19]=f,t[20]=p):p=t[20],p}function jn(e){let t=(0,Z.c)(47),{value:r,options:i,onChange:a}=e,[c,l]=(0,Q.useState)(``),u,d,f,m,h,g,_,v,b,x;if(t[0]!==a||t[1]!==i||t[2]!==c||t[3]!==r){let e=c.trim().toLowerCase(),S;t[14]===r?S=t[15]:(S=r?.toLowerCase()??``,t[14]=r,t[15]=S);let C=S,w;t[16]===C?w=t[17]:(w=e=>e.actor.login.toLowerCase()===C,t[16]=C,t[17]=w);let E=i.find(w);x=[...E?[E]:[],...i.filter(t=>t!==E&&(e.length===0||t.actor.login.toLowerCase().includes(e)||t.actor.name?.toLowerCase().includes(e)))].slice(0,10);let D;t[18]!==C||t[19]!==a?(D=e=>e.toLowerCase()!==C&&a(e||void 0),t[18]=C,t[19]=a,t[20]=D):D=t[20];let O=D;f=I;let k,j;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,$.jsx)(s,{"aria-hidden":!0,className:`size-3.5`}),j=(0,$.jsx)(`span`,{className:`flex-1`,children:`Author`}),t[21]=k,t[22]=j):(k=t[21],j=t[22]);let M=r??`Anyone`;t[23]===M?b=t[24]:(b=(0,$.jsxs)(T,{children:[k,j,(0,$.jsx)(`span`,{className:`min-w-0 max-w-32 truncate text-xs text-muted-foreground`,children:M})]}),t[23]=M,t[24]=b),d=A;let N;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,$.jsx)(Ft,{children:(0,$.jsx)(p,{"aria-hidden":!0})}),t[25]=N):N=t[25];let P;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(P=e=>l(e.currentTarget.value),t[26]=P):P=t[26],t[27]===c?v=t[28]:(v=(0,$.jsx)(`div`,{className:`p-1 pb-2`,children:(0,$.jsxs)(Lt,{children:[N,(0,$.jsx)(It,{autoFocus:!0,size:`compact`,value:c,onChange:P,onKeyDown:Nn,placeholder:`Search authors`,"aria-label":`Search authors`})]})}),t[27]=c,t[28]=v),u=y,m=E?.actor.login??r??``,h=O,t[29]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(n,{value:``,children:(0,$.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,$.jsx)(o,{"aria-hidden":!0,className:`size-3.5`}),`Anyone`]})}),t[29]=g):g=t[29],_=x.map(Mn),t[0]=a,t[1]=i,t[2]=c,t[3]=r,t[4]=u,t[5]=d,t[6]=f,t[7]=m,t[8]=h,t[9]=g,t[10]=_,t[11]=v,t[12]=b,t[13]=x}else u=t[4],d=t[5],f=t[6],m=t[7],h=t[8],g=t[9],_=t[10],v=t[11],b=t[12],x=t[13];let C;t[30]===x.length?C=t[31]:(C=x.length===0?(0,$.jsx)(S,{disabled:!0,children:`No authors found`}):null,t[30]=x.length,t[31]=C);let w;t[32]!==u||t[33]!==m||t[34]!==h||t[35]!==g||t[36]!==_||t[37]!==C?(w=(0,$.jsxs)(u,{value:m,onValueChange:h,children:[g,_,C]}),t[32]=u,t[33]=m,t[34]=h,t[35]=g,t[36]=_,t[37]=C,t[38]=w):w=t[38];let E;t[39]!==d||t[40]!==v||t[41]!==w?(E=(0,$.jsxs)(d,{children:[v,w]}),t[39]=d,t[40]=v,t[41]=w,t[42]=E):E=t[42];let D;return t[43]!==f||t[44]!==b||t[45]!==E?(D=(0,$.jsxs)(f,{children:[b,E]}),t[43]=f,t[44]=b,t[45]=E,t[46]=D):D=t[46],D}function Mn(e){return(0,$.jsx)(n,{value:e.actor.login,children:(0,$.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,$.jsx)(Je,{actor:e.actor}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.actor.login}),(0,$.jsxs)(`span`,{className:`shrink-0 text-xs text-muted-foreground tabular-nums`,children:[e.mergedCount,` merges loaded`]})]})},e.actor.login.toLowerCase())}function Nn(e){e.key!==`ArrowDown`&&e.key!==`Escape`&&e.stopPropagation()}function Pn(e){let t=(0,Z.c)(21),{value:n,options:r,onChange:i}=e,a;t[0]===n?a=t[1]:(a=new Set(n.map(In)),t[0]=n,t[1]=a);let o=a,s,c,l,u;if(t[2]!==i||t[3]!==r||t[4]!==o||t[5]!==n){let e=[...n.filter(e=>!r.some(t=>t.name.toLowerCase()===e.toLowerCase())).map(Fn),...r];c=I;let a,d;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(k,{"aria-hidden":!0,className:`size-3.5`}),d=(0,$.jsx)(`span`,{className:`flex-1`,children:`Labels`}),t[10]=a,t[11]=d):(a=t[10],d=t[11]);let f=n.length===0?`Any`:`${n.length} selected`;t[12]===f?u=t[13]:(u=(0,$.jsxs)(T,{children:[a,d,(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:f})]}),t[12]=f,t[13]=u),s=A,l=e.length===0?(0,$.jsx)(S,{disabled:!0,children:`No labels in this view`}):e.map(e=>{let t=e.name.toLowerCase(),r=o.has(t),a=tt(e.color);return(0,$.jsx)(m,{checked:r,onCheckedChange:t=>i(t?[...n,e.name]:n.filter(t=>t.toLowerCase()!==e.name.toLowerCase())),children:(0,$.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,$.jsx)(`span`,{"aria-hidden":!0,className:`size-2.5 shrink-0 rounded-full bg-muted-foreground`,...a?{style:{backgroundColor:a}}:{}}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.name}),(0,$.jsx)(`span`,{className:`shrink-0 text-xs text-muted-foreground tabular-nums`,children:e.count})]})},t)}),t[2]=i,t[3]=r,t[4]=o,t[5]=n,t[6]=s,t[7]=c,t[8]=l,t[9]=u}else s=t[6],c=t[7],l=t[8],u=t[9];let d;t[14]!==s||t[15]!==l?(d=(0,$.jsx)(s,{children:l}),t[14]=s,t[15]=l,t[16]=d):d=t[16];let f;return t[17]!==c||t[18]!==u||t[19]!==d?(f=(0,$.jsxs)(c,{children:[u,d]}),t[17]=c,t[18]=u,t[19]=d,t[20]=f):f=t[20],f}function Fn(e){return{name:e,color:null,count:0}}function In(e){return e.toLowerCase()}function Ln(e){let t=(0,Z.c)(107),{onOpenChange:n,state:r,stateOptions:a,onState:s,involvement:l,involvementOptions:u,onInvolvement:d,filters:f,onFilters:p,authorOptions:m,labelOptions:h,host:g,hostOptions:_,onHost:v,server:y,serverOptions:b,onServer:x,projects:S,projectId:C,projectEnvironmentId:T,unavailable:E,onProject:D}=e,O;t[0]===m?O=t[1]:(O=m===void 0?[]:m,t[0]=m,t[1]=O);let k=O,A;t[2]===h?A=t[3]:(A=h===void 0?[]:h,t[2]=h,t[3]=A);let j=A,M,P;t[4]!==f.author||t[5]!==f.checks||t[6]!==f.draft||t[7]!==f.labels||t[8]!==f.review||t[9]!==g||t[10]!==l||t[11]!==C||t[12]!==y||t[13]!==r?(M=(f.labels??[]).flatMap(Bn),P=[r!==`open`,l!==`all`,g,y,C,f.draft,f.review,f.checks,f.author,...M].filter(Boolean),t[4]=f.author,t[5]=f.checks,t[6]=f.draft,t[7]=f.labels,t[8]=f.review,t[9]=g,t[10]=l,t[11]=C,t[12]=y,t[13]=r,t[14]=M,t[15]=P):(M=t[14],P=t[15]);let F=P.length,I;t[16]!==f||t[17]!==p?(I=e=>p(Object.fromEntries(Object.entries({...f,...e}).filter(zn))),t[16]=f,t[17]=p,t[18]=I):I=t[18];let z=I,ee;t[19]===z?ee=t[20]:(ee=(e,t)=>z({[e]:t===Cn?void 0:t}),t[19]=z,t[20]=ee);let V=ee,te;t[21]!==T||t[22]!==C?(te=C===void 0||T===void 0?bn:wn({id:C,environmentId:T}),t[21]=T,t[22]=C,t[23]=te):te=t[23];let ne=te,H;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(H={value:bn,label:`All projects`,Icon:o},t[24]=H):H=t[24];let re;if(t[25]!==S||t[26]!==E){let e;t[28]===E?e=t[29]:(e=(e,t)=>Number(E.has(wn(e)))-Number(E.has(wn(t))),t[28]=E,t[29]=e);let n;t[30]===E?n=t[31]:(n=e=>({value:wn(e),label:e.title,Icon:L,project:e,...E.has(wn(e))?{unavailable:E.get(wn(e))}:{}}),t[30]=E,t[31]=n),re=[H,...S.toSorted(e).map(n)],t[25]=S,t[26]=E,t[27]=re}else re=t[27];let ie=re,ae,oe,se;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(ae=(0,$.jsx)(R,{variant:`outline`}),oe=(0,$.jsx)(i,{className:`size-4`}),se=(0,$.jsx)(`span`,{children:`Filters`}),t[32]=ae,t[33]=oe,t[34]=se):(ae=t[32],oe=t[33],se=t[34]);let U;t[35]===F?U=t[36]:(U=F>0?(0,$.jsx)(`span`,{className:`rounded-full bg-muted px-1.5 text-xs text-muted-foreground tabular-nums`,children:F}):null,t[35]=F,t[36]=U);let W;t[37]===U?W=t[38]:(W=(0,$.jsxs)(N,{render:ae,children:[oe,se,U]}),t[37]=U,t[38]=W);let ce;t[39]!==s||t[40]!==r||t[41]!==a?(ce=(0,$.jsx)(An,{label:`State`,value:r,options:a,onChange:s}),t[39]=s,t[40]=r,t[41]=a,t[42]=ce):ce=t[42];let G;t[43]!==l||t[44]!==u||t[45]!==d?(G=(0,$.jsx)(An,{label:`Involvement`,value:l,options:u,onChange:d}),t[43]=l,t[44]=u,t[45]=d,t[46]=G):G=t[46];let le;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,$.jsx)(B,{}),t[47]=le):le=t[47];let ue;t[48]===z?ue=t[49]:(ue=e=>z({author:e}),t[48]=z,t[49]=ue);let de;t[50]!==k||t[51]!==f.author||t[52]!==ue?(de=(0,$.jsx)(jn,{value:f.author,options:k,onChange:ue}),t[50]=k,t[51]=f.author,t[52]=ue,t[53]=de):de=t[53];let fe;t[54]===z?fe=t[55]:(fe=e=>z({labels:e.length===0?void 0:e.slice(0,10).map(Rn)}),t[54]=z,t[55]=fe);let pe;t[56]!==j||t[57]!==M||t[58]!==fe?(pe=(0,$.jsx)(Pn,{value:M,options:j,onChange:fe}),t[56]=j,t[57]=M,t[58]=fe,t[59]=pe):pe=t[59];let K=f.draft??Cn,me;t[60]===V?me=t[61]:(me=e=>V(`draft`,e),t[60]=V,t[61]=me);let he;t[62]!==K||t[63]!==me?(he=(0,$.jsx)(An,{label:`Draft`,value:K,options:Tn,onChange:me}),t[62]=K,t[63]=me,t[64]=he):he=t[64];let ge=f.review??Cn,_e;t[65]===V?_e=t[66]:(_e=e=>V(`review`,e),t[65]=V,t[66]=_e);let ve;t[67]!==ge||t[68]!==_e?(ve=(0,$.jsx)(An,{label:`Review`,value:ge,options:En,onChange:_e}),t[67]=ge,t[68]=_e,t[69]=ve):ve=t[69];let ye=f.checks??Cn,be;t[70]===V?be=t[71]:(be=e=>V(`checks`,e),t[70]=V,t[71]=be);let xe;t[72]!==ye||t[73]!==be?(xe=(0,$.jsx)(An,{label:`Checks`,value:ye,options:Dn,onChange:be}),t[72]=ye,t[73]=be,t[74]=xe):xe=t[74];let Se;t[75]!==g||t[76]!==_||t[77]!==v?(Se=_.length>2?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(B,{}),(0,$.jsx)(An,{label:`Host`,value:g??xn,options:_,onChange:e=>v(e===xn?void 0:e)})]}):null,t[75]=g,t[76]=_,t[77]=v,t[78]=Se):Se=t[78];let Ce;t[79]!==x||t[80]!==y||t[81]!==b?(Ce=b.length>2?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(B,{}),(0,$.jsx)(An,{label:`Server`,value:y??Sn,options:b,onChange:e=>x(e===Sn?void 0:e)})]}):null,t[79]=x,t[80]=y,t[81]=b,t[82]=Ce):Ce=t[82];let we;t[83]===Symbol.for(`react.memo_cache_sentinel`)?(we=(0,$.jsx)(B,{}),t[83]=we):we=t[83];let q;t[84]!==D||t[85]!==C||t[86]!==S?(q=e=>{let t=S.find(t=>wn(t)===e);t?D(t.id,t.environmentId):C!==void 0&&D(void 0,void 0)},t[84]=D,t[85]=C,t[86]=S,t[87]=q):q=t[87];let Te;t[88]!==ie||t[89]!==ne||t[90]!==q?(Te=(0,$.jsx)(An,{label:`Project`,value:ne,options:ie,onChange:q}),t[88]=ie,t[89]=ne,t[90]=q,t[91]=Te):Te=t[91];let Ee;t[92]!==ce||t[93]!==G||t[94]!==de||t[95]!==pe||t[96]!==he||t[97]!==ve||t[98]!==xe||t[99]!==Se||t[100]!==Ce||t[101]!==Te?(Ee=(0,$.jsxs)(w,{align:`end`,side:`bottom`,children:[ce,G,le,de,pe,he,ve,xe,Se,Ce,we,Te]}),t[92]=ce,t[93]=G,t[94]=de,t[95]=pe,t[96]=he,t[97]=ve,t[98]=xe,t[99]=Se,t[100]=Ce,t[101]=Te,t[102]=Ee):Ee=t[102];let De;return t[103]!==n||t[104]!==W||t[105]!==Ee?(De=(0,$.jsxs)(c,{onOpenChange:n,children:[W,Ee]}),t[103]=n,t[104]=W,t[105]=Ee,t[106]=De):De=t[106],De}function Rn(e){return[e]}function zn(e){let[,t]=e;return t!==void 0}function Bn(e){return e}function Vn(e){let t=(0,Z.c)(12),{joined:n}=e,r,i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsx)(`path`,{d:`M10 58h100`,className:`text-muted-foreground/30`,stroke:`currentColor`}),i=(0,$.jsx)(`circle`,{cx:`10`,cy:`58`,r:`5`,fill:`currentColor`,fillOpacity:.25}),a=(0,$.jsx)(`circle`,{cx:`110`,cy:`58`,r:`5`,fill:`currentColor`,fillOpacity:.25}),t[0]=r,t[1]=i,t[2]=a):(r=t[0],i=t[1],a=t[2]);let o;t[3]===n?o=t[4]:(o=n?(0,$.jsx)(`path`,{d:`M30 58c0-18 8-26 24-26h12c16 0 24 8 24 26`}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`path`,{d:`M30 58c0-18 8-26 24-26h4`}),(0,$.jsx)(`path`,{d:`M90 58c0-18-8-26-24-26h-4`,strokeDasharray:`2 7`,className:`text-muted-foreground/50`})]}),t[3]=n,t[4]=o);let s=n?5:4,c=n?`currentColor`:`none`,l=n?void 0:`text-muted-foreground/45`,u;t[5]!==s||t[6]!==c||t[7]!==l?(u=(0,$.jsx)(`circle`,{cx:`60`,cy:`32`,r:s,fill:c,fillOpacity:.25,className:l}),t[5]=s,t[6]=c,t[7]=l,t[8]=u):u=t[8];let d;return t[9]!==o||t[10]!==u?(d=(0,$.jsxs)(`svg`,{"aria-hidden":!0,viewBox:`0 0 120 72`,className:`h-20 w-32 text-muted-foreground/60`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,children:[r,i,a,o,u]}),t[9]=o,t[10]=u,t[11]=d):d=t[11],d}function Hn(e){let t=(0,Z.c)(56),{query:n,filtered:r,searching:i,hasProjects:a,canLoadMore:o,loadingMore:s,refreshing:c,onClearQuery:l,onLoadMore:u,onRefresh:d}=e;if(!a){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Vn,{joined:!1}),t[0]=e):e=t[0];let n;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsxs)(Be,{children:[(0,$.jsx)(He,{children:`No projects in this workspace`}),(0,$.jsx)(Ue,{children:`Add a project, and the pull requests from its repository appear here.`})]}),t[1]=n):n=t[1];let r;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsxs)(We,{children:[e,n,(0,$.jsx)(Ve,{children:(0,$.jsxs)(R,{size:`sm`,onClick:Un,children:[(0,$.jsx)(v,{className:`size-3.5`}),`Add project`]})})]}),t[2]=r):r=t[2],r}if(i){let e;t[3]===n?e=t[4]:(e=n.length>48?`${n.slice(0,48)}…`:n,t[3]=n,t[4]=e);let r=`Searching every host for “${e}”`,i;return t[5]===r?i=t[6]:(i=(0,$.jsx)(be,{rows:5,caption:r}),t[5]=r,t[6]=i),i}if(n.length>0){let e;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Vn,{joined:!1}),t[7]=e):e=t[7];let r;t[8]===n?r=t[9]:(r=n.length>48?`${n.slice(0,48)}…`:n,t[8]=n,t[9]=r);let i;t[10]===r?i=t[11]:(i=(0,$.jsxs)(He,{children:[`Nothing matches “`,r,`”`]}),t[10]=r,t[11]=i);let a;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(Ue,{children:`The hosts were searched for it. Try fewer words, or search by number, author or branch.`}),t[12]=a):a=t[12];let o;t[13]===i?o=t[14]:(o=(0,$.jsxs)(Be,{children:[i,a]}),t[13]=i,t[14]=o);let s;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,$.jsx)(p,{className:`size-3.5`}),t[15]=s):s=t[15];let u;t[16]===l?u=t[17]:(u=(0,$.jsxs)(R,{size:`sm`,variant:`outline`,onClick:l,children:[s,`Clear search`]}),t[16]=l,t[17]=u);let f;t[18]===c?f=t[19]:(f=(0,$.jsx)(an,{size:`sm`,refreshing:c}),t[18]=c,t[19]=f);let m=c?`Checking...`:`Check again`,h;t[20]!==d||t[21]!==c||t[22]!==f||t[23]!==m?(h=(0,$.jsxs)(R,{size:`sm`,variant:`outline`,disabled:c,onClick:d,children:[f,m]}),t[20]=d,t[21]=c,t[22]=f,t[23]=m,t[24]=h):h=t[24];let g;t[25]!==h||t[26]!==u?(g=(0,$.jsxs)(`div`,{className:`flex flex-wrap justify-center gap-2`,children:[u,h]}),t[25]=h,t[26]=u,t[27]=g):g=t[27];let _;return t[28]!==g||t[29]!==o?(_=(0,$.jsxs)(We,{children:[e,o,g]}),t[28]=g,t[29]=o,t[30]=_):_=t[30],_}let f;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,$.jsx)(Vn,{joined:!1}),t[31]=f):f=t[31];let m=r?`Nothing under these filters`:`No pull requests`,h;t[32]===m?h=t[33]:(h=(0,$.jsx)(He,{children:m}),t[32]=m,t[33]=h);let g=r?`Widen the state, involvement or project filter to see more.`:`Pull requests from every project in this workspace appear here.`,_;t[34]===g?_=t[35]:(_=(0,$.jsx)(Ue,{children:g}),t[34]=g,t[35]=_);let y;t[36]!==h||t[37]!==_?(y=(0,$.jsxs)(Be,{children:[h,_]}),t[36]=h,t[37]=_,t[38]=y):y=t[38];let b;t[39]!==o||t[40]!==s||t[41]!==u?(b=o?(0,$.jsx)(R,{size:`sm`,variant:`outline`,disabled:s,onClick:u,children:s?`Loading...`:`Load more pull requests`}):null,t[39]=o,t[40]=s,t[41]=u,t[42]=b):b=t[42];let x;t[43]===c?x=t[44]:(x=(0,$.jsx)(an,{size:`sm`,refreshing:c}),t[43]=c,t[44]=x);let S=c?`Checking...`:`Check again`,C;t[45]!==d||t[46]!==c||t[47]!==x||t[48]!==S?(C=(0,$.jsxs)(R,{size:`sm`,variant:`outline`,disabled:c,onClick:d,children:[x,S]}),t[45]=d,t[46]=c,t[47]=x,t[48]=S,t[49]=C):C=t[49];let w;t[50]!==C||t[51]!==b?(w=(0,$.jsxs)(`div`,{className:`flex flex-wrap justify-center gap-2`,children:[b,C]}),t[50]=C,t[51]=b,t[52]=w):w=t[52];let T;return t[53]!==w||t[54]!==y?(T=(0,$.jsxs)(We,{children:[f,y,w]}),t[53]=w,t[54]=y,t[55]=T):T=t[55],T}function Un(){return tn({open:`add-project`})}function Wn(e){let t=(0,Z.c)(22),{environmentId:n,reference:r,onSelect:i,stackNumber:a}=e,o=Ie(n,r);if(o.data!==null){let e=!!o.error,n;t[0]!==o.data.number||t[1]!==o.notice||t[2]!==e?(n=(0,$.jsx)(Fe,{number:o.data.number,notice:o.notice,stale:e}),t[0]=o.data.number,t[1]=o.notice,t[2]=e,t[3]=n):n=t[3];let a;t[4]!==o.error||t[5]!==o.refresh?(a=o.error?(0,$.jsx)(S,{onClick:o.refresh,children:`Retry stack refresh`}):null,t[4]=o.error,t[5]=o.refresh,t[6]=a):a=t[6];let s;t[7]!==i||t[8]!==o.data||t[9]!==r?(s=(0,$.jsx)(Le,{stack:o.data,reference:r,onSelect:i}),t[7]=i,t[8]=o.data,t[9]=r,t[10]=s):s=t[10];let c;return t[11]!==n||t[12]!==a||t[13]!==s?(c=(0,$.jsxs)($.Fragment,{children:[n,a,s]}),t[11]=n,t[12]=a,t[13]=s,t[14]=c):c=t[14],c}let s;t[15]===a?s=t[16]:(s=(0,$.jsx)(Fe,{number:a}),t[15]=a,t[16]=s);let c=o.error??(o.isPending?`Loading stack…`:`This pull request is no longer in a stack.`),l;t[17]===c?l=t[18]:(l=(0,$.jsx)(f,{children:c}),t[17]=c,t[18]=l);let u;return t[19]!==s||t[20]!==l?(u=(0,$.jsxs)($.Fragment,{children:[s,l]}),t[19]=s,t[20]=l,t[21]=u):u=t[21],u}function Gn(e){let t=(0,Z.c)(25),{environmentId:n,reference:r,membership:i,onSelect:a}=e,[o,s]=(0,Q.useState)(!1),l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,$.jsx)(`span`,{role:`button`,tabIndex:0,className:`inline-flex shrink-0 cursor-pointer items-center gap-1 text-xs font-normal text-muted-foreground`}),t[0]=l):l=t[0];let u=`Stack ${i.number}, layer ${i.position} of ${i.size}`,d;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,$.jsx)(Ze.stack,{"aria-hidden":!0,className:`size-3`}),t[1]=d):d=t[1];let f;t[2]!==i.position||t[3]!==i.size||t[4]!==u?(f=(0,$.jsx)(se,{render:(0,$.jsxs)(N,{nativeButton:!1,render:l,"aria-label":u,onClick:Yn,onKeyDown:Jn,children:[d,i.position,`/`,i.size]})}),t[2]=i.position,t[3]=i.size,t[4]=u,t[5]=f):f=t[5];let p;t[6]!==i.number||t[7]!==i.position||t[8]!==i.size?(p=(0,$.jsxs)(U,{children:[`View stack #`,i.number,`, layer `,i.position,` of `,i.size]}),t[6]=i.number,t[7]=i.position,t[8]=i.size,t[9]=p):p=t[9];let m;t[10]!==f||t[11]!==p?(m=(0,$.jsxs)(W,{children:[f,p]}),t[10]=f,t[11]=p,t[12]=m):m=t[12];let h;t[13]!==n||t[14]!==i.number||t[15]!==a||t[16]!==o||t[17]!==r?(h=o?(0,$.jsx)(Wn,{environmentId:n,reference:r,stackNumber:i.number,onSelect:e=>{s(!1),a(e)}}):null,t[13]=n,t[14]=i.number,t[15]=a,t[16]=o,t[17]=r,t[18]=h):h=t[18];let g;t[19]===h?g=t[20]:(g=(0,$.jsx)(w,{align:`start`,onClick:qn,onKeyDown:Kn,children:(0,$.jsx)(F,{children:h})}),t[19]=h,t[20]=g);let _;return t[21]!==o||t[22]!==m||t[23]!==g?(_=(0,$.jsxs)(c,{open:o,onOpenChange:s,children:[m,g]}),t[21]=o,t[22]=m,t[23]=g,t[24]=_):_=t[24],_}function Kn(e){return e.stopPropagation()}function qn(e){return e.stopPropagation()}function Jn(e){return e.stopPropagation()}function Yn(e){return e.stopPropagation()}var Xn=[{overflow:`@xl/pr-row-meta:hidden`},{overflow:`@3xl/pr-row-meta:hidden`},{overflow:``}];function Zn(e){let t=(0,Z.c)(4),{labels:n}=e;if(n.length===0)return null;let r;t[0]===n?r=t[1]:(r=Xn.map((e,t)=>{let r=n[t];if(!r)return null;let i=n.length-t-1;return(0,$.jsx)(J,{label:r,className:t===0?``:t===1?`hidden @xl/pr-row-meta:inline-flex`:`hidden @3xl/pr-row-meta:inline-flex`,children:i>0?(0,$.jsxs)(`span`,{className:z(`shrink-0`,e.overflow),children:[`+`,i]}):null},r.name)}),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,$.jsx)(`span`,{className:`flex min-w-0 items-center gap-1`,children:r}),t[2]=r,t[3]=i),i}var Qn=`px-3 py-2.5`;function $n(e){let t=(0,Z.c)(92),{entry:n,selected:r,showProjectTitle:i,showProvider:a,environmentLabel:o,matchedElsewhere:s,statsKey:c,statsRef:l,onSelect:u,speedMode:d,hostActions:f,onActed:m,closing:h,sweeping:g,onCloseSweepStart:_}=e,v=h!==void 0&&h,y=g!==void 0&&g,b;t[0]===n.provider?b=t[1]:(b=cn(n.provider),t[0]=n.provider,t[1]=b);let{Icon:x,providerName:S}=b,C=r?`bg-accent`:`hover:bg-accent/60`,w;t[2]===C?w=t[3]:(w=z(`flex items-center rounded-md [content-visibility:auto] [contain-intrinsic-block-size:56.5px]`,C),t[2]=C,t[3]=w);let T=r?`true`:void 0,E;t[4]!==n||t[5]!==u?(E=()=>u(n),t[4]=n,t[5]=u,t[6]=E):E=t[6];let D;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(D=z(Ee,Qn,`min-w-0 flex-1 cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ring`),t[7]=D):D=t[7];let O;t[8]!==n.baseBranch||t[9]!==n.isDraft||t[10]!==n.mergeability||t[11]!==n.state?(O=(0,$.jsx)(Ce,{state:n.state,isDraft:n.isDraft,mergeability:n.mergeability,baseBranch:n.baseBranch,className:`mt-0.75 self-start`}),t[8]=n.baseBranch,t[9]=n.isDraft,t[10]=n.mergeability,t[11]=n.state,t[12]=O):O=t[12];let k;t[13]!==n.provider||t[14]!==n.url?(k=e=>{e.preventDefault(),e.stopPropagation(),Oe({url:n.url,openLabel:je(Xe.get(n.provider)),position:{x:e.clientX,y:e.clientY}})},t[13]=n.provider,t[14]=n.url,t[15]=k):k=t[15];let A;t[16]!==n.number||t[17]!==k?(A=(0,$.jsxs)(`span`,{className:xe,onContextMenu:k,children:[`#`,n.number]}),t[16]=n.number,t[17]=k,t[18]=A):A=t[18];let j;t[19]!==n.checksState||t[20]!==n.environmentId||t[21]!==n.number||t[22]!==n.projectId||t[23]!==n.repository?(j=n.checksState===void 0?null:(0,$.jsx)(q,{checksState:n.checksState,environmentId:n.environmentId,reference:{projectId:n.projectId,repository:n.repository,number:n.number}}),t[19]=n.checksState,t[20]=n.environmentId,t[21]=n.number,t[22]=n.projectId,t[23]=n.repository,t[24]=j):j=t[24];let M;t[25]===n.reviewDecision?M=t[26]:(M=n.reviewDecision===void 0?null:(0,$.jsx)(qe,{decision:n.reviewDecision}),t[25]=n.reviewDecision,t[26]=M);let N;t[27]!==j||t[28]!==M?(N=(0,$.jsxs)($.Fragment,{children:[j,M]}),t[27]=j,t[28]=M,t[29]=N):N=t[29];let P;t[30]!==n.environmentId||t[31]!==n.host||t[32]!==n.number||t[33]!==n.projectId||t[34]!==n.repository||t[35]!==n.stack||t[36]!==u?(P=n.stack?(0,$.jsx)(Gn,{environmentId:n.environmentId,reference:{projectId:n.projectId,host:n.host,repository:n.repository,number:n.number},membership:n.stack,onSelect:e=>u({...e,host:n.host,environmentId:n.environmentId})}):null,t[30]=n.environmentId,t[31]=n.host,t[32]=n.number,t[33]=n.projectId,t[34]=n.repository,t[35]=n.stack,t[36]=u,t[37]=P):P=t[37];let F;t[38]!==n.additions||t[39]!==n.deletions?(F=(0,$.jsx)(Ye,{additions:n.additions,deletions:n.deletions,className:`font-mono`}),t[38]=n.additions,t[39]=n.deletions,t[40]=F):F=t[40];let I;t[41]!==P||t[42]!==F?(I=(0,$.jsxs)($.Fragment,{children:[P,F]}),t[41]=P,t[42]=F,t[43]=I):I=t[43];let L;t[44]===s?L=t[45]:(L=s?(0,$.jsxs)(W,{children:[(0,$.jsxs)(se,{render:(0,$.jsx)(`span`,{className:`flex min-w-6 items-center gap-1 overflow-hidden rounded-full border border-border/60 px-1 text-3xs`}),children:[(0,$.jsx)(`span`,{className:`sr-only`,children:`matched in the description`}),(0,$.jsx)(p,{"aria-hidden":!0,className:`size-3 shrink-0`}),(0,$.jsx)(`span`,{"aria-hidden":!0,className:`hidden truncate @xs/pr-row-meta:block`,children:`matched in the description`})]}),(0,$.jsx)(U,{side:`top`,children:`Matched in the description`})]}):null,t[44]=s,t[45]=L);let R;t[46]!==x||t[47]!==S||t[48]!==a?(R=a?(0,$.jsxs)(W,{children:[(0,$.jsx)(se,{render:(0,$.jsx)(`span`,{className:`inline-flex shrink-0`}),children:(0,$.jsx)(x,{"aria-label":S,className:`size-3`})}),(0,$.jsx)(U,{children:S})]}):null,t[46]=x,t[47]=S,t[48]=a,t[49]=R):R=t[49];let B;t[50]===n.author?B=t[51]:(B=(0,$.jsx)(Ae,{actor:n.author,className:`min-w-3.5 max-w-40`,labelClassName:`sr-only @xs/pr-row-meta:not-sr-only @xs/pr-row-meta:truncate`}),t[50]=n.author,t[51]=B);let ee;t[52]!==n.repository||t[53]!==i?(ee=i?(0,$.jsx)(`span`,{className:`truncate`,children:n.repository}):null,t[52]=n.repository,t[53]=i,t[54]=ee):ee=t[54];let V;t[55]===o?V=t[56]:(V=o?(0,$.jsx)(`span`,{className:`min-w-0 max-w-32 truncate`,children:o}):null,t[55]=o,t[56]=V);let te;t[57]===n.labels?te=t[58]:(te=n.labels.length>0?(0,$.jsx)(Zn,{labels:n.labels}):null,t[57]=n.labels,t[58]=te);let ne;t[59]!==L||t[60]!==R||t[61]!==B||t[62]!==ee||t[63]!==V||t[64]!==te?(ne=(0,$.jsxs)($.Fragment,{children:[L,R,B,ee,V,te]}),t[59]=L,t[60]=R,t[61]=B,t[62]=ee,t[63]=V,t[64]=te,t[65]=ne):ne=t[65];let H;t[66]!==n.title||t[67]!==n.updatedAt||t[68]!==A||t[69]!==N||t[70]!==I||t[71]!==ne?(H=(0,$.jsx)(De,{number:A,title:n.title,signals:N,status:I,metaClassName:`@container/pr-row-meta`,meta:ne,updatedAt:n.updatedAt}),t[66]=n.title,t[67]=n.updatedAt,t[68]=A,t[69]=N,t[70]=I,t[71]=ne,t[72]=H):H=t[72];let re;t[73]!==H||t[74]!==T||t[75]!==E||t[76]!==O?(re=(0,$.jsxs)(`button`,{type:`button`,"aria-current":T,onClick:E,className:D,children:[O,H]}),t[73]=H,t[74]=T,t[75]=E,t[76]=O,t[77]=re):re=t[77];let ie;t[78]!==v||t[79]!==n||t[80]!==f||t[81]!==m||t[82]!==_||t[83]!==d||t[84]!==y?(ie=f.size>0?(0,$.jsx)(Pe,{entry:n,hostActions:f,visible:d,onActed:m,closing:v,sweeping:y,..._?{onCloseSweepStart:_}:{}}):null,t[78]=v,t[79]=n,t[80]=f,t[81]=m,t[82]=_,t[83]=d,t[84]=y,t[85]=ie):ie=t[85];let ae;return t[86]!==c||t[87]!==l||t[88]!==re||t[89]!==ie||t[90]!==w?(ae=(0,$.jsxs)(`div`,{ref:l,"data-pull-request-stats-key":c,"data-pull-request-key":c,className:w,children:[re,ie]}),t[86]=c,t[87]=l,t[88]=re,t[89]=ie,t[90]=w,t[91]=ae):ae=t[91],ae}var er=(0,Q.memo)($n);function tr(){let e=(0,Z.c)(14),t=V(),n=te(),r=X(ar),i=_e(ir),a=_e(Kt),o=G(),s=le(),c;e[0]!==r||e[1]!==t?(c=Zt({items:t,preferredIds:r,getId:Gt,getPreferenceIds:rr}),e[0]=r,e[1]=t,e[2]=c):c=e[2];let l=c,u;if(e[3]!==o||e[4]!==a||e[5]!==l||e[6]!==s||e[7]!==t||e[8]!==i){let n=new Map(o.map(nr));u=Jt({projects:i===`manual`?l:t,groupScratchProjects:!0,settings:a,primaryEnvironmentId:s,resolveEnvironmentLabel:e=>n.get(e)??null}),e[3]=o,e[4]=a,e[5]=l,e[6]=s,e[7]=t,e[8]=i,e[9]=u}else u=e[9];let d=u,f;return e[10]!==i||e[11]!==n||e[12]!==d?(f=Yt(d,n,i),e[10]=i,e[11]=n,e[12]=d,e[13]=f):f=e[13],f}function nr(e){return[e.environmentId,e.label]}function rr(e){return[Gt(e),Wt(e.workspaceRoot)]}function ir(e){return e.sidebarProjectSortOrder}function ar(e){return e.projectOrder}function or(){return{terminalFocus:Y(),terminalOpen:!1,previewFocus:!1,previewOpen:!1,modelPickerOpen:!1,isWeb:!Re,isDesktop:Re}}var sr={authored:x,reviewRequested:P,others:h};function cr(e){let t=(0,Z.c)(11),{group:n}=e,r=sr[n.key]??o,i;t[0]===r?i=t[1]:(i=(0,$.jsx)(r,{"aria-hidden":!0,className:`size-3.5 shrink-0`}),t[0]=r,t[1]=i);let a;t[2]===n.label?a=t[3]:(a=(0,$.jsx)(`h2`,{className:`shrink-0`,children:n.label}),t[2]=n.label,t[3]=a);let s;t[4]===n.entries.length?s=t[5]:(s=(0,$.jsx)(`span`,{className:`shrink-0 tabular-nums text-muted-foreground/50`,children:n.entries.length}),t[4]=n.entries.length,t[5]=s);let c;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,$.jsx)(O,{className:`min-w-2 flex-1`}),t[6]=c):c=t[6];let l;return t[7]!==i||t[8]!==a||t[9]!==s?(l=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 px-3 pb-1 text-xs font-medium text-muted-foreground/70`,children:[i,a,s,c]}),t[7]=i,t[8]=a,t[9]=s,t[10]=l):l=t[10],l}var lr=[{value:`all`,label:`All`,Icon:o},{value:`reviewing`,label:`Reviewing`,Icon:P},{value:`authored`,label:`Authored`,Icon:x}],ur=[{value:`all`,label:`All`,Icon:o},{value:`open`,label:`Open`,Icon:Ze.pullRequest},{value:`closed`,label:`Closed`,Icon:Ze.closed},{value:`merged`,label:`Merged`,Icon:Ze.merged}],dr=250,fr=10,pr=99,mr=500,hr={},gr=[],_r={},vr={},yr=new Map,br=new Set,xr=e=>he({...e,repository:e.repository.toLowerCase()});function Sr(){ie();let e=Vt(!0),t=e.shiftKey&&!e.metaKey&&!e.ctrlKey&&!e.altKey,n=sn.useSearch(),r=n.sort??`ready`,i=r===`ready`||r===`largest`||r===`smallest`?`eager`:`visible`,a=re({from:sn.fullPath}),s=C(ue),{environments:c}=ce(),u=(0,Q.useMemo)(()=>c.filter(e=>e.serverConfig?.environment.capabilities.pullRequests===!0).toSorted((e,t)=>e.environmentId.localeCompare(t.environmentId)),[c]),f=u.find(e=>e.environmentId===n.environmentId)?.environmentId??null,p=(0,Q.useMemo)(()=>new Set(c.map(e=>e.environmentId)),[c]),m=(0,Q.useMemo)(()=>u.filter(e=>f===null||e.environmentId===f).map(e=>e.environmentId),[u,f]),h=(0,Q.useMemo)(()=>pt(m),[m]),_=c.some(e=>e.serverConfig!==null),v=m.length>0,y=V(),b=ne(),x=(0,Q.useMemo)(()=>y.filter(e=>!e.isScratch&&m.includes(e.environmentId)),[y,m]),S=(0,Q.useMemo)(()=>new Map(c.map(e=>[e.environmentId,e.label])),[c]),w=(0,Q.useMemo)(()=>ut(n.projectId,x,b),[x,b,n.projectId]),T=(0,Q.useMemo)(()=>wt(x,f,w),[x,f,w]),E=(0,Q.useMemo)(()=>gn(x,S,T),[S,x,T]),D=n.selectedHost??n.host,O=(0,Q.useMemo)(()=>{let e=n.repository?.toLowerCase();if(e!==void 0)return x.find(t=>t.repositoryIdentity?.owner&&t.repositoryIdentity.name&&`${t.repositoryIdentity.owner}/${t.repositoryIdentity.name}`.toLowerCase()===e&&(D===void 0||d(t.repositoryIdentity,t.repositoryIdentity.provider)===D.toLowerCase()))?.id},[x,D,n.repository]),k=(0,Q.useMemo)(()=>ut(n.selectedProjectId,x,b),[x,b,n.selectedProjectId])??O??w,A=at(n.selectedEnvironmentId,p,f),j=(0,Q.useMemo)(()=>wt(x,A,k),[x,A,k]),M=u.length===0?null:ge,N=Rt(M),P=K(e=>pe(e.byThreadKey,M)),F=K(e=>me(e.byThreadKey,M)),I=F?.kind===`pull-request`?F:null,L=P.isOpen?I:null,{active:B,durationMs:te}=Bt(),se=(0,Q.useMemo)(()=>({activeSurface:I,surfaces:P.surfaces}),[P.surfaces,I]),U=zt(P.isOpen&&I!==null,se,B,M?.threadId??null,te),W=U.present,G=U.value?.activeSurface??null,le=U.value?.surfaces??[],_e=G?.environmentId??j?.environmentId??null,xe=(0,Q.useCallback)(e=>void a({search:t=>{let n={...t,...e};return{involvement:n.involvement??t.involvement,state:n.state??t.state,...n.sort&&n.sort!==`ready`?{sort:n.sort}:{},...n.repository?{repository:n.repository}:{},...n.number?{number:n.number}:{},...n.projectId?{projectId:n.projectId}:{},...n.environmentId?{environmentId:n.environmentId}:{},...n.host?{host:n.host}:{},...n.selectedHost?{selectedHost:n.selectedHost}:{},...n.selectedProjectId?{selectedProjectId:n.selectedProjectId}:{},...n.selectedEnvironmentId?{selectedEnvironmentId:n.selectedEnvironmentId}:{},...n.q?{q:n.q}:{},...n.draft?{draft:n.draft}:{},...n.review?{review:n.review}:{},...n.checks?{checks:n.checks}:{},...n.author?{author:n.author}:{},...n.labels&&n.labels.length>0?{labels:n.labels}:{}}},replace:!0}),[a]),Ce={repository:void 0,number:void 0,selectedProjectId:void 0,selectedEnvironmentId:void 0,selectedHost:void 0},q=e=>{let t=en({...n,...e,involvement:e.involvement??n.involvement,state:e.state??n.state});nn(t),xe(e)},Ee=(n.q??``).trim(),[De,Oe]=(0,Q.useState)(!1),Ae=ve(Ee,dr),je=Ee===Ae,Pe=(0,Q.useMemo)(()=>_t(Ee),[Ee]),Fe=(0,Q.useMemo)(()=>_t(Ae),[Ae]),Ie=(0,Q.useMemo)(()=>({...n.draft?{draft:n.draft}:{},...n.review?{review:n.review}:{},...n.checks?{checks:n.checks}:{},...n.author?{author:n.author}:{},...n.labels?{labels:n.labels.map(e=>[e])}:{}}),[n.author,n.checks,n.draft,n.labels,n.review]),Le=Object.keys(Ie).length>0,Re=(0,Q.useMemo)(()=>({...Ie,...Fe.filters}),[Ie,Fe.filters]),Be=Object.keys(Re).length>0,Ve=(0,Q.useMemo)(()=>({...Ie,...Pe.filters}),[Ie,Pe.filters]),He=Object.keys(Ve).length>0,Ue=(0,Q.useMemo)(()=>rt(m,x,T,w,b),[m,x,b,T,w]),We=(0,Q.useMemo)(()=>{let e=Ue.map(e=>({environmentId:e}));if(!b||w!==void 0)return e;let t=ye(x,Ue,Ue[0]),n=new Map;for(let e of x)n.set(e.environmentId,(n.get(e.environmentId)??0)+1);return Ue.flatMap(e=>{let r=t.get(e);return r===void 0?[]:r.length===(n.get(e)??0)?[{environmentId:e}]:[{environmentId:e,projectIds:r}]})},[x,b,Ue,w]),qe=(0,Q.useMemo)(()=>We.map(({environmentId:e,projectIds:t})=>`${e}#${t?.join(`+`)??`*`}`).join(`|`),[We]),Je=Ct(We.map(({environmentId:e})=>e)).map(([e,t])=>`${e}:${t}`).join(`|`),Ye=`${h}:${qe}:${n.state}:${n.involvement}:${w??``}:${n.host??``}:${n.draft??``}:${n.review??``}:${n.checks??``}:${n.author??``}:${n.labels?.join(`\0`)??``}`,J=`${Ye}:${Ae}`,Xe=(0,Q.useRef)({key:J,policy:i});Xe.current={key:J,policy:i};let[Ze,tt]=(0,Q.useState)({key:J,size:pr,cursors:null,regrown:[]}),Pt=Ze.key===J?Ze.size:pr,Ft=Ze.key===J?Ze.cursors:null,It=Ze.key===J?Ze.regrown:[];(0,Q.useEffect)(()=>{tt({key:J,size:pr,cursors:null,regrown:[]})},[J]);let Lt=(0,Q.useMemo)(()=>We.flatMap(({environmentId:e,projectIds:t})=>{let r=Ft?.[e];return Ft!==null&&r===void 0&&!It.includes(e)?[]:[{environmentId:e,input:{state:n.state,involvement:n.involvement,limit:Pt,...w?{projectId:w}:{},...t?{projectIds:t}:{},...n.host?{host:n.host}:{},...Be?{filters:Re}:{},...Fe.text?{query:Fe.text}:{},...r===void 0?{}:{cursors:r}}}]}),[Re,Be,Pt,We,w,n.host,n.involvement,n.state,Ft,It,Fe.text]),Y=Tt(Lt),Ht=(0,Q.useMemo)(()=>We.map(({environmentId:e,projectIds:t})=>({environmentId:e,input:{state:n.state,involvement:n.involvement,limit:pr,...w?{projectId:w}:{},...t?{projectIds:t}:{},...n.host?{host:n.host}:{},...Le?{filters:Ie}:{}}})),[Le,Ie,We,w,n.host,n.involvement,n.state]),X=Tt(Ht),Ut=X.data?.entries.length===0&&X.data.errors.length===0&&!X.isPending&&X.error===null,Wt=(0,Q.useMemo)(()=>De?We.map(({environmentId:e,projectIds:t})=>({environmentId:e,input:{state:`all`,involvement:n.involvement,limit:pr,...w?{projectId:w}:{},...t?{projectIds:t}:{},...n.host?{host:n.host}:{}}})):gr,[We,De,w,n.host,n.involvement]),Gt=Tt(Wt),Kt=n.involvement===`all`&&Ee.length===0,qt=(0,Q.useMemo)(()=>{if(!Kt||X.data===null||X.data.entries.length===0)return{authored:gr,reviewing:gr};let e=e=>We.map(({environmentId:t,projectIds:r})=>({environmentId:t,input:{state:n.state,involvement:e,limit:pr,...w?{projectId:w}:{},...r?{projectIds:r}:{},...n.host?{host:n.host}:{},...Le?{filters:Ie}:{}}}));return{authored:e(`authored`),reviewing:e(`reviewing`)}},[Le,Ie,Kt,X.data,We,w,n.host,n.state]),Jt=Tt(qt.authored),Yt=Tt(qt.reviewing),Zt=de(Dt.invalidate,{reportFailure:!1}),[$t,tn]=(0,Q.useState)(0),[an,ln]=(0,Q.useState)(!1),dn=(e=Xe.current,t)=>{Gn(!0,t);let n=ir.current,r=Qe({requestedScope:e,currentScope:Xe.current,entriesByKey:rr.current,candidateKeys:n.key===e.key?n.values:new Set,statsByRow:Sr.current});r!==null&&(Er({key:e.key,batches:r}),Fr.refresh(r.filter(({environmentId:e})=>t===void 0||e===t).map(({environmentId:e,input:t})=>({environmentId:e,input:t}))))},fn=async()=>{let e=Xe.current;ln(!0);try{await Promise.all(Ue.map(e=>Zt({environmentId:e,input:{}})))}finally{ln(!1)}dn(e),tn(e=>e+1)},pn=an||Y.isPending,[Z,hn]=(0,Q.useState)(null),[_n,bn]=(0,Q.useState)(null),[xn,Sn]=(0,Q.useState)(()=>new Map),Cn=(0,Q.useRef)(0),Tn=(e,t)=>{let n=++Cn.current,r=lt(e,t,new Date,n);return r===null?null:(Sn(t=>new Map(t).set(et(e),r)),n)},En=(e,t)=>{t!==null&&Sn(n=>{if(n.get(e)?.token!==t)return n;let r=new Map(n);return r.delete(e),r})},Dn=(0,Q.useRef)(new Map),On=(0,Q.useRef)(()=>{});On.current=({entry:e,action:t})=>{t!==`merge`&&Tn(e,t)};let kn=(0,Q.useCallback)(e=>{On.current(e)},[]),An=(0,Q.useCallback)(e=>{On.current({entry:e,action:`close`})},[]),{close:jn,closingKeys:Mn}=un(An);(0,Q.useEffect)(()=>{h.length!==0&&hn(e=>{if(e!==null&&e.environmentKey===h)return e;let t=ct(typeof window>`u`?void 0:window.localStorage,h);return t===null?null:{environmentKey:h,scope:t.scope,query:``,data:t.data,...t.partitions===void 0?{}:{partitions:t.partitions}}})},[h]),(0,Q.useEffect)(()=>{if(!Y.data||Y.isPending)return;let e=Y.data;hn(t=>{let n=Kt&&Ut?{authored:[],reviewing:[]}:Kt&&Jt.data!==null&&Yt.data!==null?{authored:Jt.data.entries,reviewing:Yt.data.entries}:t!==null&&t.environmentKey===h&&t.scope===Ye?t.partitions:void 0;if(h.length>0&&Ae.length===0){let t=_n?.key===J?_n.entries:e.entries;mt(typeof window>`u`?void 0:window.localStorage,h,{scope:Ye,data:{...e,entries:t,viewers:X.data?.viewers??e.viewers,providers:X.data?.providers??e.providers},...n===void 0?{}:{partitions:n}})}return{environmentKey:h,scope:Ye,query:Ae,data:{...e,entries:_n?.key===J?_n.entries:e.entries},...n===void 0?{}:{partitions:n}}})},[h,Ye,Ae,Y.data,Y.isPending,Ut,Kt,Jt.data,Yt.data,_n,J,X.data]);let Nn=(0,Q.useMemo)(()=>{if(Z===null||Z.environmentKey!==h||Z.scope===Ye)return null;let e=Mt(Z.data.entries,{state:n.state,projectId:w,host:n.host});return e.length===0?null:{...Z.data,entries:e}},[h,Z,Ye,w,n.host,n.state]),Pn=(Ae.length===0&&Ft===null&&Pt===pr?X.data:Y.data)??(Z?.scope===Ye&&Z.query===Ae?Z.data:null),Fn=(Ae.length===0?X.data:void 0)??(Z?.scope===Ye?Z.data:null)??Nn,In=Pn??Fn,Ln=Pn===null&&Fn!==null,Rn=Y.isPending&&In!==null,zn=Y.isPending&&In===null;(0,Q.useEffect)(()=>{!Pn||Y.isPending||Y.error&&Y.data===null||(bn(e=>{if(e===null||e.key!==J)return{key:J,entries:st(Pn.entries,Fe.text)};if(Ft!==null){let t=new Set(e.entries.map(et)),n=Pn.entries.filter(e=>!t.has(et(e))),r=st(n.toSorted((e,t)=>t.updatedAt.localeCompare(e.updatedAt)),Fe.text);return{key:J,entries:[...e.entries,...r]}}return{key:J,entries:dt(e.entries,st(Pn.entries,Fe.text),et)}}),Sn(e=>$e(e,Pn.entries,et,Date.now())))},[Pn,J,Ft,Fe.text,Y.isPending,Y.error,Y.data]);let Bn=Pn?.nextCursors??{},Vn=(Pn?.truncatedEnvironments??[]).filter(e=>Bn[e]===void 0),Un=!Ln&&Object.keys(Bn).length>0,Wn=()=>{if(Un){tt({key:J,size:Vn.length===0?Pt:Math.min(Pt+pr,mr),cursors:Bn,regrown:Vn});return}tt({key:J,size:Math.min(Pt+pr,mr),cursors:null,regrown:[]})},Gn=(e=!1,t)=>{let n=(e?[...Ht,...Wt,...qt.authored,...qt.reviewing]:[]).filter(({environmentId:e})=>t===void 0||e===t);if(Ft===null){Y.refresh([...Lt.filter(({environmentId:e})=>t===void 0||e===t),...n]);return}n.length>0&&Y.refresh(n);let r=_n?.key===J?_n.entries.length:Pt;tt({key:J,regrown:[],size:Math.min(Math.max(Pt,Math.ceil(r/pr)*pr),mr),cursors:null})},Kn=(0,Q.useRef)(``),qn=(0,Q.useEffectEvent)(()=>{Ft!==null&&Gn()});(0,Q.useEffect)(()=>{Je.length!==0&&Kn.current!==Je&&(Kn.current=Je,qn())},[Je]),Se(()=>{Gn(!0)},{enabled:v});let Jn=X.data?.viewers??In?.viewers??hr,Yn=X.data?.errors??In?.errors??[],Xn=(0,Q.useMemo)(()=>yt([...Gt.data?.entries??[],...X.data?.entries??In?.entries??[]],n.state),[X.data?.entries,Gt.data?.entries,In?.entries,n.state]),Zn=(0,Q.useMemo)(()=>new Set((X.data?.providers??In?.providers??[]).flatMap(e=>e.searchesOnHost?[e.host]:[])),[X.data?.providers,In?.providers]),Qn=(0,Q.useMemo)(()=>{let e=_n?.key===J?_n.entries:In?.entries??[],t=Et(e,Jn,n.involvement),r=He?t.filter(e=>bt(e,Ve,At(e,Jn))):t;if(Pe.text.length===0)return r.toSorted((e,t)=>t.updatedAt.localeCompare(e.updatedAt));let i=je&&!Ln;return r.filter(e=>i&&Zn.has(e.host)||gt(e,Pe.text))},[J,He,Ve,In,_n,je,n.involvement,Zn,Ln,Pe.text,Jn]),$n=(0,Q.useMemo)(()=>Object.fromEntries(Qn.map(e=>[he(e),{state:e.state,isDraft:e.isDraft}])),[Qn]),tr=(0,Q.useRef)(null),nr=(0,Q.useMemo)(()=>{if(n.involvement!==`all`)return[{key:`others`,label:``,entries:Qn}];if(Ut)return xt(Qn,Jn);let e=Z!==null&&Z.environmentKey===h&&Z.scope===Ye?Z.partitions:void 0,t=e=>e===void 0||!He?e:e.filter(e=>bt(e,Ve,At(e,Jn))),r=t(Kt?Jt.data?.entries??e?.authored:void 0),i=t(Kt?Yt.data?.entries??e?.reviewing:void 0);return r===void 0||i===void 0?xt(Qn,Jn):jt(Qn,r,i)},[He,Ut,Ve,Jt.data?.entries,Qn,h,Z,Kt,Yt.data?.entries,Ye,n.involvement,Jn]),rr=(0,Q.useRef)(new Map);rr.current=new Map(nr.flatMap(e=>e.entries.map(e=>[et(e),e])));let ir=(0,Q.useRef)({key:J,values:new Set}),[ar,sr]=(0,Q.useState)(()=>new Map),Sr=(0,Q.useRef)(ar);Sr.current=ar;let[Tr,Er]=(0,Q.useState)({key:J,batches:[]}),Or=Tr.key===J?Tr.batches:[],kr=(0,Q.useMemo)(()=>Or.map(({environmentId:e,input:t})=>({environmentId:e,input:t})),[Or]),Ar=(0,Q.useRef)(null),jr=(0,Q.useRef)(new Set),Mr=(0,Q.useRef)(!0),Nr=(0,Q.useRef)(i);Nr.current=i;let Pr=(0,Q.useCallback)(e=>{if(e!==null&&typeof IntersectionObserver<`u`)return jr.current.add(e),Ar.current?.observe(e),()=>{jr.current.delete(e),Ar.current?.unobserve(e);let t=e.dataset.pullRequestStatsKey,n=ir.current;Nr.current===`visible`&&t!==void 0&&n.values.delete(t)&&!Mr.current&&Er(e=>{if(e.key!==n.key)return e;let t=ot(e.batches,n.values);return t.length===e.batches.length?e:{key:e.key,batches:t}})}},[]);(0,Q.useEffect)(()=>{i===`eager`&&Er(e=>{let t=e.key===J?e.batches:[],n=St({entriesByKey:rr.current,candidateKeys:ir.current.values,policy:i,activeBatches:t,statsByRow:Sr.current});return n.length===0&&e.key===J?e:{key:J,batches:[...t,...n]}})},[J,nr,i]),(0,Q.useEffect)(()=>{if(i!==`visible`||typeof IntersectionObserver>`u`)return;ir.current={key:J,values:new Set};let e=new IntersectionObserver(e=>{let t=ir.current;if(t.key!==J)return;let n=!1,r=new Set;for(let i of e){let e=i.target.dataset.pullRequestStatsKey;if(e===void 0)continue;let a=t.values.has(e);i.isIntersecting&&rr.current.has(e)?(t.values.add(e),a||r.add(e)):t.values.delete(e),n||=a!==t.values.has(e)}n&&Er(e=>{let n=e.key===J?e.batches:[],a=Mr.current?n:ot(n,t.values),o=St({entriesByKey:rr.current,candidateKeys:r,policy:i,activeBatches:n,statsByRow:Sr.current});return o.length===0&&a.length===n.length?e:{key:J,batches:[...a,...o]}})},{root:tr.current,rootMargin:`480px`});Ar.current=e;for(let t of jr.current)e.observe(t);return()=>{e.disconnect(),Ar.current===e&&(Ar.current=null)}},[J,i]);let Fr=Ot(kr);Mr.current=Fr.isPending,(0,Q.useEffect)(()=>{if(i!==`visible`||Fr.isPending)return;let e=ir.current;Er(t=>{if(t.key!==J||e.key!==J)return t;let n=ot(t.batches,e.values);return n.length===t.batches.length?t:{key:t.key,batches:n}})},[J,i,Fr.isPending]),(0,Q.useEffect)(()=>{let e=Fr.stats;e!==null&&sr(t=>kt(t,e))},[Fr.stats]);let Ir=(0,Q.useMemo)(()=>{let e=nr.map(e=>{let t=vt(e.entries.map(e=>it(e,ar)),xn,et,n.state);return{...e,entries:He&&xn.size>0?t.filter(e=>!xn.has(et(e))||bt(e,Ve,At(e,Jn))):t}});return ht(e,r,Pe.text,e=>e.additions+e.deletions>0||ar.has(ft(e)),n.involvement)},[nr,He,Ve,xn,n.involvement,n.state,r,ar,Pe.text,Jn]),Lr=Ir.reduce((e,t)=>e+t.entries.length,0),[Rr,zr]=(0,Q.useState)([]);(0,Q.useEffect)(()=>{Pn!==null&&zr(e=>n.host===void 0||e.length===0?Pn.providers:e)},[Pn,n.host]);let Br=Rr.length>1,Vr=(0,Q.useMemo)(()=>nt(Rr),[Rr]),[Hr,Ur]=(0,Q.useState)(()=>new Set),Wr=(0,Q.useRef)(null),Gr=(0,Q.useMemo)(()=>new Map(Ir.flatMap(e=>e.entries.map(t=>[et(t),{entry:t,groupKey:e.key}]))),[Ir]),Kr=(0,Q.useRef)({displayGroups:Ir,closeSweepRows:Gr,closingKeys:Mn,closeBatch:jn,hostActionsOf:Vr});Kr.current={displayGroups:Ir,closeSweepRows:Gr,closingKeys:Mn,closeBatch:jn,hostActionsOf:Vr},(0,Q.useEffect)(()=>()=>Wr.current?.cancel(),[J,n.q,r]),(0,Q.useEffect)(()=>{let e=e=>{e.key===`Escape`&&Wr.current!==null&&(e.preventDefault(),Wr.current.cancel())};return document.addEventListener(`keydown`,e,!0),()=>document.removeEventListener(`keydown`,e,!0)},[]);let qr=(0,Q.useCallback)((e,t)=>{Wr.current?.cancel();let n=et(e),r=Kr.current.displayGroups.find(e=>e.entries.some(e=>et(e)===n));if(!r||Kr.current.closingKeys.has(n))return;let i=Kr.current.displayGroups.flatMap(e=>e.entries.map(et)),a=e=>{let t=Kr.current.closeSweepRows.get(e);return t?.groupKey===r.key&&t.entry.state===`open`&&Kr.current.hostActionsOf(t.entry).has(`close`)&&!Kr.current.closingKeys.has(e)&&!tr.current?.querySelector(`[data-pull-request-key="${CSS.escape(e)}"] [data-pull-request-action-pending="true"]`)},o=[],s=null,c=e=>{e!==s&&(s=e,o=Xt(i,n,e,a),Ur(new Set(o)))};Wr.current=new mn({active:n,event:t,options:{distance:6,onAttach:()=>{},onFinish:()=>{Wr.current=null,Ur(new Set)}},onPending:()=>{},onStart:()=>c(n),onMove:({y:e})=>{let t=tr.current;if(!t)return;let n=t.getBoundingClientRect(),r=Math.min(Math.max(e,n.top),n.bottom-1),i=null;for(let e of t.querySelectorAll(`[data-pull-request-key]`)){if(i!==null&&e.getBoundingClientRect().top>r)break;i=e.dataset.pullRequestKey??null}i!==null&&c(i)},onEnd:()=>{let e=o.filter(a).flatMap(e=>{let t=Kr.current.closeSweepRows.get(e);return t?[t.entry]:[]});Kr.current.closeBatch(e)},onCancel:()=>{},onAbort:()=>{}})},[]),Jr=(0,Q.useMemo)(()=>new Map(nr.flatMap(e=>e.entries.map(e=>[xr(e),e]))),[nr]),Yr=(0,Q.useMemo)(()=>new Map(Ir.flatMap(e=>e.entries.map(e=>[xr(e),e]))),[Ir]),Xr=(0,Q.useMemo)(()=>n.repository&&n.number&&j?{environmentId:j.environmentId,repository:n.repository,number:n.number,projectId:j.id,...D?{host:D}:{}}:null,[n.number,n.repository,j,D]),Zr=I!==null,[Qr,$r]=(0,Q.useState)(!1),ei=P.isOpen&&Qr;!P.isOpen&&Qr&&$r(!1);let ti=()=>{P.isOpen&&$r(e=>!e)},ni=(0,Q.useCallback)(()=>$r(!0),[]);(0,Q.useEffect)(()=>{v&&M!==null&&Xr!==null&&K.getState().openPullRequest(M,Xr)},[Xr,v,M]);let ri=P.isOpen&&L!==null?{environmentId:L.environmentId,repository:L.repository,number:L.number,projectId:L.projectId,host:L.host??(j?.repositoryIdentity?d(j.repositoryIdentity,j.repositoryIdentity.provider):void 0)}:null,ii=e=>xe(e===null?Ce:{repository:e.repository,number:e.number,selectedProjectId:e.projectId,selectedHost:e.host,...e.environmentId===void 0?{}:{selectedEnvironmentId:e.environmentId}}),ai=()=>{if(M!==null){if(P.isOpen){K.getState().close(M),xe(Ce);return}I!==null&&(K.getState().show(M),ii(I))}},oi=(0,Q.useMemo)(()=>{let e=new Map;for(let t of x){let n=t.repositoryIdentity?.provider;if(n===void 0)continue;let r=d(t.repositoryIdentity,n);e.has(r)||e.set(r,{host:r,kind:n})}return[...e.values()]},[x]),si=(0,Q.useMemo)(()=>new Map(Yn.map(e=>[wn({id:e.projectId,environmentId:e.environmentId}),e.message])),[Yn]),ci=(0,Q.useCallback)(e=>{M!==null&&(K.getState().openPullRequest(M,e),xe({repository:e.repository,number:e.number,selectedProjectId:e.projectId,selectedEnvironmentId:e.environmentId,selectedHost:e.host}))},[M,xe]),li=(0,$.jsx)(yn,{value:n.q??``,busy:Ee.length>0&&(!je||Ln),onChange:e=>q({q:e||void 0})}),ui=(0,$.jsx)(Ne,{showTerminalControl:!1,showThreadPanelControl:!1,terminalAvailable:!1,terminalOpen:!1,terminalShortcutLabel:null,threadPanelOpen:!1,threadPanelPresentation:`inline`,threadPanelShortcutLabel:null,onToggleThreadPanel:()=>void 0,rightPanelAvailable:Zr,rightPanelOpen:P.isOpen,rightPanelShortcutLabel:Ke(s,`rightPanel.toggle`),rightPanelUnavailableLabel:`Select a pull request first`,rightPanelTabCount:P.surfaces.length,onToggleTerminal:()=>void 0,onToggleRightPanel:ai}),di=(0,$.jsxs)(`div`,{className:`absolute top-[var(--workspace-controls-top)] right-[var(--workspace-controls-right)] z-50 mr-px flex h-[var(--workspace-topbar-height)] items-center gap-1 [-webkit-app-region:no-drag]`,"data-workspace-titlebar-controls":!0,children:[P.isOpen?(0,$.jsx)(ke,{maximized:ei,onToggle:ti}):null,ui]}),fi=Ln&&Y.isPending&&Lr===0&&Ee.length===0,pi=(0,$.jsxs)($.Fragment,{children:[_?v?zn?(0,$.jsx)(be,{rows:7}):Y.error&&Lr===0?(0,$.jsx)(Te,{error:Y.error,refreshing:Y.isPending,onRetry:()=>Y.refresh()}):fi?(0,$.jsx)(be,{rows:7}):Lr===0?(0,$.jsx)(Hn,{hasProjects:!b||x.length>0,refreshing:pn,onRefresh:()=>void fn(),query:Ee,filtered:Le||n.state!==`open`||n.involvement!==`all`||w!==void 0||n.host!==void 0,searching:Ee.length>0&&(!je||Ln),canLoadMore:In?.truncated===!0&&(Un||Pt<mr),loadingMore:Rn,onClearQuery:()=>q({q:void 0}),onLoadMore:Wn}):(0,$.jsx)(`div`,{className:z(`space-y-3`,Hr.size>0&&`**:pointer-events-none`),children:Ir.map(e=>(0,$.jsxs)(`div`,{className:`space-y-0.5`,children:[e.label?(0,$.jsx)(cr,{group:e}):null,e.entries.map(e=>{let n=et(e);return(0,$.jsx)(er,{statsKey:n,statsRef:Pr,entry:e,showProjectTitle:!0,showProvider:Br,...u.length>1&&S.get(e.environmentId)!==void 0?{environmentLabel:S.get(e.environmentId)}:{},matchedElsewhere:Pe.text.length>0&&Nt(e,Pe.text)<=fr,selected:ri?.environmentId===e.environmentId&&ri.repository===e.repository&&ri.host?.toLowerCase()===e.host.toLowerCase()&&ri.number===e.number,onSelect:ci,speedMode:t,hostActions:Vr(e),onActed:kn,closing:Mn.has(n),sweeping:Hr.has(n),onCloseSweepStart:qr},n)})]},e.key))}):(0,$.jsx)(Te,{title:`Pull requests unavailable`,error:`Update your P4 Code servers to browse pull requests.`}):(0,$.jsx)(be,{rows:7}),Y.error&&Lr>0?(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-lg border border-warning/30 bg-warning-surface px-3 py-2 text-xs`,children:[(0,$.jsxs)(`span`,{children:[Y.error,` Showing the last pull requests loaded.`]}),(0,$.jsx)(R,{size:`xs`,variant:`outline`,onClick:()=>Y.refresh(),children:`Retry`})]}):null,In?.truncated&&Qn.length>0?(0,$.jsx)(`div`,{className:`flex justify-center py-3 text-xs text-muted-foreground`,children:Rn?(0,$.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(H,{"aria-hidden":!0,size:`sm`}),Ft===null?`Updating pull requests`:`Loading more`]}):Un||Pt<mr?(0,$.jsx)(R,{size:`sm`,variant:`outline`,onClick:Wn,disabled:Y.isPending||Ln,children:`Load more pull requests`}):(0,$.jsx)(`span`,{children:`Narrow your search to find more pull requests.`})}):null]}),mi=Rr.length>0?Rr:oi,hi=[{value:``,label:`All`,Icon:g},...mi.map(e=>{let t=Rr.find(t=>t.host===e.host);return{value:e.host,label:vn(mi,e),Icon:cn(e.kind).Icon,...t===void 0||t.configured?{}:{unavailable:t.detail??`This host could not be read.`}}})],gi=[{value:``,label:`All servers`,Icon:o},...u.map(e=>({value:e.environmentId,label:e.label,Icon:Qt(ee(e.serverConfig))}))],_i=(0,$.jsx)(wr,{label:`Sort pull requests`,triggerIcon:(0,$.jsx)(l,{"aria-hidden":!0,className:`size-4`}),triggerLabel:`Sort`,outlined:!0,value:r,options:rn,onChange:e=>q({sort:e})}),vi=(0,$.jsx)(Cr,{onOpenChange:Oe,state:n.state,stateOptions:ur,onState:e=>q({state:e}),involvement:n.involvement,involvementOptions:lr,onInvolvement:e=>q({involvement:e}),filters:Ie,onFilters:e=>q({draft:e.draft,review:e.review,checks:e.checks,author:e.author,labels:e.labels?.flatMap(e=>e)}),authorOptions:Xn.authors,labelOptions:Xn.labels,host:n.host,hostOptions:hi,onHost:e=>q({host:e}),server:f??void 0,serverOptions:gi,onServer:e=>q({environmentId:e,projectId:void 0}),projects:E,projectId:w,projectEnvironmentId:T?.environmentId,unavailable:si,onProject:(e,t)=>q(t===void 0?{projectId:e}:{projectId:e,environmentId:t})}),yi={refreshing:pn,onRefresh:()=>void fn(),searchValue:n.q??``,involvement:n.involvement,state:n.state,host:n.host,hostMenuOptions:hi,onInvolvement:e=>q({involvement:e}),onState:e=>q({state:e}),onHost:e=>q({host:e}),searchInput:li,sortMenu:_i,filtersMenu:vi,rightPanelControl:v?(0,$.jsx)(`span`,{"aria-hidden":!0,className:z(`shrink-0`,P.isOpen?`-ml-3 w-0`:`w-7 sm:w-5`,B&&`transition-[width,margin] ease-out`),style:B?{transitionDuration:`${te}ms`}:void 0}):null,titlebarControls:v?W?(0,$.jsx)(`span`,{"aria-hidden":!0,className:`pointer-events-none absolute inset-y-0 left-full w-7 [-webkit-app-region:no-drag]`}):di:null,rightPanelOpen:P.isOpen,maximizedAway:ei,listBody:pi,scrollRef:tr},bi=e=>{M!==null&&(K.getState().activateSurface(M,e.id),ii(e))},xi=e=>{if(M===null)return;K.getState().closeSurface(M,e.id);let t=fe(K.getState().byThreadKey,M);ii(t?.kind===`pull-request`?t:null)},Si=e=>{M!==null&&(K.getState().closeOtherSurfaces(M,e.id),ii(e))},Ci=e=>{if(M===null)return;K.getState().closeSurfacesToRight(M,e.id);let t=fe(K.getState().byThreadKey,M);ii(t?.kind===`pull-request`?t:null)},wi=()=>{M!==null&&(K.getState().closeAllSurfaces(M),ii(null))},Ti=(0,Q.useEffectEvent)(e=>{if(!N||(e.preventDefault(),e.stopPropagation(),e.repeat))return;let t=N;oe(t,`pull request link`).then(e=>{e&&ae.add({type:`success`,title:`PR link copied`,description:t})},e=>{ae.add({type:`error`,title:`Failed to copy PR link`,description:e instanceof Error?e.message:`An error occurred.`})})}),Ei=(0,Q.useEffectEvent)(e=>{L!==null&&(e.preventDefault(),e.stopPropagation(),e.repeat||xi(L))}),Di=(0,Q.useEffectEvent)(e=>{Zr&&(e.preventDefault(),e.stopPropagation(),e.repeat||ai())}),Oi=(0,Q.useEffectEvent)(e=>{P.isOpen&&(e.preventDefault(),e.stopPropagation(),e.repeat||ti())});return(0,Q.useEffect)(()=>{let e=e=>{if(e.defaultPrevented||on())return;let t=Ge(e,s,{context:or()});t===`rightPanel.close`&&Ei(e),t===`rightPanel.toggle`&&Di(e),t===`rightPanel.toggleMaximized`&&Oi(e),t===`thread.copyReference`&&Ti(e)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[s]),(0,$.jsx)(ze,{className:`h-dvh min-h-0 overflow-hidden overscroll-y-none`,children:(0,$.jsxs)(`div`,{className:`relative flex min-h-0 flex-1`,children:[v&&W?di:null,(0,$.jsx)(Dr,{...yi}),W&&G&&_e!==null?(0,$.jsx)(Me,{mode:`inline`,open:P.isOpen,maximized:ei,keybindings:s,getShortcutContext:or,widthStorageKey:`t3code:pull-request-panel-width`,defaultWidth:typeof window>`u`?640:Math.floor(window.innerWidth/2),surfaces:le,environmentId:_e,activeSurfaceId:G.id,pendingSurfaceIds:br,previewSessions:_r,desktopByTabId:vr,terminalLabelsById:yr,onActivate:e=>{e.kind===`pull-request`&&bi(e)},onCloseSurface:e=>{e.kind===`pull-request`&&xi(e)},onCloseOtherSurfaces:e=>{e.kind===`pull-request`&&Si(e)},onCloseSurfacesToRight:e=>{e.kind===`pull-request`&&Ci(e)},onCloseAllSurfaces:wi,onMoveSurface:(e,t)=>{M!==null&&K.getState().moveSurface(M,e,t)},onCopyFilePath:()=>void 0,onAddBrowser:()=>void 0,onAddBrowserInProfile:()=>void 0,onAddTerminal:()=>void 0,onAddDiff:()=>void 0,onAddFiles:()=>void 0,onAddPullRequest:()=>void 0,onAddPullRequests:()=>void 0,onAddDevice:()=>void 0,browserAvailable:!1,terminalAvailable:!1,diffAvailable:!1,filesAvailable:!1,pullRequestAvailable:!1,pullRequestsAvailable:!1,deviceAvailable:!1,pullRequestStatusSeeds:$n,children:(0,$.jsx)(we,{getShortcutContext:or,shortcutsEnabled:L?.id===G.id,environmentId:_e,onGuideShown:ni,onSelectPullRequest:e=>{M!==null&&(K.getState().openPullRequest(M,{projectId:e.projectId,repository:e.repository,number:e.number,...e.host?{host:e.host}:{},environmentId:_e}),xe({repository:e.repository,number:e.number,selectedHost:e.host,selectedProjectId:e.projectId,selectedEnvironmentId:_e}))},reference:{projectId:G.projectId,repository:G.repository,number:G.number,...G.host?{host:G.host}:{}},listEntry:Yr.get(xr(G))??null,refreshToken:$t,onActed:(e,t=`done`)=>{let n=Jr.get(xr(G));if(e!==void 0&&n!==void 0&<(n,e,new Date,0)!==null){let r=et(n);t===`sent`&&e!==`merge`&&Dn.current.set(r,Tn(n,e)),t===`failed`&&e!==`merge`&&En(r,Dn.current.get(r)??null),t!==`sent`&&Dn.current.delete(r),t===`done`&&e===`merge`&&(Tn(n,e),dn(void 0,_e));return}t===`done`&&dn(void 0,_e)}},G.id)}):null]})})}function Cr(e){let t=(0,Z.c)(6),n=tr(),r;t[0]!==e.projects||t[1]!==n?(r=qt(e.projects,n),t[0]=e.projects,t[1]=n,t[2]=r):r=t[2];let i=r,a;return t[3]!==i||t[4]!==e?(a=(0,$.jsx)(Ln,{...e,projects:i}),t[3]=i,t[4]=e,t[5]=a):a=t[5],a}function wr(e){let t=(0,Z.c)(30),{label:n,triggerIcon:r,triggerLabel:i,outlined:a,iconOnly:o,value:s,options:l,onChange:u,className:d}=e,f=a!==void 0&&a,p=o!==void 0&&o,m;t[0]!==l||t[1]!==s?(m=l.find(e=>e.value===s)??l[0],t[0]=l,t[1]=s,t[2]=m):m=t[2];let h=m;if(!h)return null;let g=i||p?`${n}: ${h.label}`:n,_=p?`${n}: ${h.label}`:void 0,v;t[3]!==p||t[4]!==f?(v=f?(0,$.jsx)(R,{variant:`outline`,size:p?`icon`:`default`}):(0,$.jsx)(R,{variant:`ghost-muted`,size:`sm`}),t[3]=p,t[4]=f,t[5]=v):v=t[5];let b;t[6]===d?b=t[7]:(b=z(`min-w-0`,d),t[6]=d,t[7]=b);let x;t[8]!==h||t[9]!==p||t[10]!==r||t[11]!==i?(x=p?(0,$.jsx)(h.Icon,{"aria-hidden":!0,className:`size-4`}):i?(0,$.jsxs)($.Fragment,{children:[r,(0,$.jsx)(`span`,{children:i})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{className:`truncate`,children:h.label}),(0,$.jsx)(D,{"aria-hidden":!0,className:`size-3 shrink-0 text-muted-foreground/70`})]}),t[8]=h,t[9]=p,t[10]=r,t[11]=i,t[12]=x):x=t[12];let S;t[13]!==g||t[14]!==_||t[15]!==v||t[16]!==b||t[17]!==x?(S=(0,$.jsx)(N,{"aria-label":g,title:_,render:v,className:b,children:x}),t[13]=g,t[14]=_,t[15]=v,t[16]=b,t[17]=x,t[18]=S):S=t[18];let C;t[19]===u?C=t[20]:(C=e=>u(e),t[19]=u,t[20]=C);let T;t[21]===l?T=t[22]:(T=l.map(Tr),t[21]=l,t[22]=T);let E;t[23]!==C||t[24]!==T||t[25]!==s?(E=(0,$.jsx)(w,{align:`start`,side:`bottom`,children:(0,$.jsx)(y,{value:s,onValueChange:C,children:T})}),t[23]=C,t[24]=T,t[25]=s,t[26]=E):E=t[26];let O;return t[27]!==E||t[28]!==S?(O=(0,$.jsxs)(c,{children:[S,E]}),t[27]=E,t[28]=S,t[29]=O):O=t[29],O}function Tr(e){let t=(0,$.jsx)(n,{value:e.value,disabled:e.unavailable!==void 0,className:`data-disabled:pointer-events-auto`,children:(0,$.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,$.jsx)(_n,{option:e}),e.label]})},e.value);return e.unavailable===void 0?t:(0,$.jsxs)(W,{children:[(0,$.jsx)(se,{render:t}),(0,$.jsx)(U,{side:`right`,children:e.unavailable})]},e.value)}function Er(e){let t=(0,Z.c)(21),{searchInput:n,searchValue:r,open:i,onOpenChange:a,focusToken:o,onFocusWithin:s}=e,c=(0,Q.useRef)(null),l,u;t[0]===i?(l=t[1],u=t[2]):(l=()=>{i&&c.current?.querySelector(`input`)?.focus()},u=[i],t[0]=i,t[1]=l,t[2]=u),(0,Q.useEffect)(l,u);let d=(0,Q.useRef)(o),f,m;if(t[3]===o?(f=t[4],m=t[5]):(f=()=>{if(d.current===o)return;d.current=o;let e=c.current?.querySelector(`input`);e?.focus(),e?.select()},m=[o],t[3]=o,t[4]=f,t[5]=m),(0,Q.useEffect)(f,m),i||r.length>0){let e;t[6]===s?e=t[7]:(e=()=>s?.(!0),t[6]=s,t[7]=e);let i;t[8]!==s||t[9]!==a||t[10]!==r.length?(i=()=>{s?.(!1),r.length===0&&a(!1)},t[8]=s,t[9]=a,t[10]=r.length,t[11]=i):i=t[11];let o;return t[12]!==n||t[13]!==e||t[14]!==i?(o=(0,$.jsx)(`div`,{ref:c,className:`w-56 min-w-24 shrink`,onFocus:e,onBlur:i,children:n}),t[12]=n,t[13]=e,t[14]=i,t[15]=o):o=t[15],o}let h;t[16]===a?h=t[17]:(h=()=>a(!0),t[16]=a,t[17]=h);let g;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(p,{className:`size-4`}),t[18]=g):g=t[18];let _;return t[19]===h?_=t[20]:(_=(0,$.jsx)(R,{size:`icon-sm`,variant:`ghost`,"aria-label":`Search pull requests`,onClick:h,children:g}),t[19]=h,t[20]=_),_}function Dr(e){let t=(0,Z.c)(69),{refreshing:n,onRefresh:r,searchValue:i,involvement:a,state:o,host:s,hostMenuOptions:c,onInvolvement:l,onState:u,onHost:d,searchInput:f,sortMenu:p,filtersMenu:m,rightPanelControl:h,titlebarControls:_,rightPanelOpen:v,maximizedAway:y,listBody:b,scrollRef:x}=e,S=(0,Q.useRef)(null),[C,w]=(0,Q.useState)(!1),T;t[0]===x?T=t[1]:(T=()=>{let e=S.current;if(!e)return;let t=new IntersectionObserver(e=>{let[t]=e;return w(t?!t.isIntersecting:!1)},{root:x.current});return t.observe(e),()=>t.disconnect()},t[0]=x,t[1]=T);let E;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(E=[],t[2]=E):E=t[2],(0,Q.useEffect)(T,E);let D=(0,Q.useRef)(!1),O=(0,Q.useRef)(null),[k,A]=(0,Q.useState)(!1),[j,M]=(0,Q.useState)(0),N=k||i.length>0,P,F;t[3]===C?(P=t[4],F=t[5]):(P=()=>{let e=e=>{if(e.defaultPrevented||e.key.toLowerCase()!==`f`||!(e.metaKey||e.ctrlKey)||e.altKey||e.shiftKey)return;if(e.preventDefault(),C){A(!0),M(Or);return}let t=O.current?.querySelector(`input`);t?.focus(),t?.select()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},F=[C],t[3]=C,t[4]=P,t[5]=F),(0,Q.useEffect)(P,F);let I,L;t[6]===C?(I=t[7],L=t[8]):(I=()=>{if(C||(A(!1),!D.current))return;D.current=!1;let e=O.current?.querySelector(`input`);e&&(e.focus(),e.setSelectionRange(e.value.length,e.value.length))},L=[C],t[6]=C,t[7]=I,t[8]=L),(0,Q.useEffect)(I,L);let R=y?`w-0 flex-none`:`flex-1`,B;t[9]===R?B=t[10]:(B=z(`@container/pr-list flex min-h-0 min-w-0 flex-col overflow-x-hidden bg-background`,R),t[9]=R,t[10]=B);let ee=!v,V;t[11]!==C||t[12]!==s||t[13]!==c||t[14]!==a||t[15]!==d||t[16]!==l||t[17]!==u||t[18]!==N||t[19]!==o?(V=C?(0,$.jsxs)(pn,{ariaLabel:`Pull request scope`,className:`overflow-hidden`,children:[(0,$.jsx)(dn,{current:!0,className:z(N&&`sr-only`),children:(0,$.jsx)(`h1`,{className:`truncate`,children:`Pull Requests`})}),N?null:(0,$.jsx)(fn,{}),(0,$.jsxs)(dn,{className:`shrink gap-1.5`,children:[(0,$.jsx)(wr,{label:`Filter by state`,value:o,options:ur,onChange:u,className:`shrink-0`}),(0,$.jsx)(wr,{label:`Filter by involvement`,value:a,options:lr,onChange:l}),c.length>2?(0,$.jsx)(wr,{label:`Filter by host`,value:s??``,options:c,onChange:e=>d(e===``?void 0:e)}):null]})]}):(0,$.jsx)(pn,{ariaLabel:`Pull requests breadcrumb`,children:(0,$.jsx)(dn,{current:!0,children:(0,$.jsx)(`h1`,{className:`truncate`,children:`Pull Requests`})})}),t[11]=C,t[12]=s,t[13]=c,t[14]=a,t[15]=d,t[16]=l,t[17]=u,t[18]=N,t[19]=o,t[20]=V):V=t[20];let te;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,$.jsx)(`div`,{className:`min-w-0 flex-1`}),t[21]=te):te=t[21];let ne;t[22]!==C||t[23]!==r||t[24]!==n||t[25]!==j||t[26]!==f||t[27]!==k||t[28]!==i?(ne=C?(0,$.jsxs)(`div`,{className:`flex shrink items-center gap-1.5`,children:[(0,$.jsx)(Er,{searchInput:f,searchValue:i,open:k,onOpenChange:A,focusToken:j,onFocusWithin:e=>{D.current=e}}),(0,$.jsx)(kr,{compact:!0,refreshing:n,onRefresh:r})]}):null,t[22]=C,t[23]=r,t[24]=n,t[25]=j,t[26]=f,t[27]=k,t[28]=i,t[29]=ne):ne=t[29];let H;t[30]!==h||t[31]!==V||t[32]!==ne||t[33]!==ee||t[34]!==_?(H=(0,$.jsxs)(ln,{electron:Re,reserveNativeControls:ee,className:`relative bg-background`,children:[_,V,te,ne,h]}),t[30]=h,t[31]=V,t[32]=ne,t[33]=ee,t[34]=_,t[35]=H):H=t[35];let re;t[36]===f?re=t[37]:(re=(0,$.jsx)(`div`,{className:`min-w-0 basis-full @lg/pr-list:basis-0 @lg/pr-list:flex-1`,children:f}),t[36]=f,t[37]=re);let ie=s!==void 0,ae;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(ae=(0,$.jsx)(g,{"aria-hidden":!0,className:`size-4`}),t[38]=ae):ae=t[38];let oe=s??``,se;t[39]===d?se=t[40]:(se=e=>d(e===``?void 0:e),t[39]=d,t[40]=se);let U;t[41]!==c||t[42]!==ie||t[43]!==oe||t[44]!==se?(U=(0,$.jsx)(wr,{label:`Filter by provider`,outlined:!0,iconOnly:ie,triggerIcon:ae,triggerLabel:`All`,value:oe,options:c,onChange:se}),t[41]=c,t[42]=ie,t[43]=oe,t[44]=se,t[45]=U):U=t[45];let W;t[46]!==C||t[47]!==r||t[48]!==n?(W=C?null:(0,$.jsx)(kr,{refreshing:n,onRefresh:r}),t[46]=C,t[47]=r,t[48]=n,t[49]=W):W=t[49];let ce;t[50]!==m||t[51]!==p||t[52]!==re||t[53]!==U||t[54]!==W?(ce=(0,$.jsxs)(`div`,{ref:O,className:`flex flex-wrap items-center gap-2`,children:[re,p,m,U,W]}),t[50]=m,t[51]=p,t[52]=re,t[53]=U,t[54]=W,t[55]=ce):ce=t[55];let G;t[56]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,$.jsx)(`div`,{ref:S,"aria-hidden":!0,className:`-mt-3 h-px w-full`}),t[56]=G):G=t[56];let le;t[57]===ce?le=t[58]:(le=(0,$.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[ce,G]}),t[57]=ce,t[58]=le);let ue;t[59]!==b||t[60]!==le?(ue=(0,$.jsxs)($t,{width:`expanded`,className:`min-h-full gap-4`,children:[le,b]}),t[59]=b,t[60]=le,t[61]=ue):ue=t[61];let de;t[62]!==x||t[63]!==ue?(de=(0,$.jsx)(`div`,{ref:x,className:`topbar-scroll-fade scrollbar-gutter-both min-h-0 flex-1 overflow-y-auto`,children:ue}),t[62]=x,t[63]=ue,t[64]=de):de=t[64];let fe;return t[65]!==H||t[66]!==de||t[67]!==B?(fe=(0,$.jsxs)(`div`,{className:B,children:[H,de]}),t[65]=H,t[66]=de,t[67]=B,t[68]=fe):fe=t[68],fe}function Or(e){return e+1}function kr(e){let t=(0,Z.c)(8),{compact:n,refreshing:r,onRefresh:i}=e,a=n!==void 0&&n,o=a?`icon-sm`:`icon`,s=a?`ghost`:`outline`,c;t[0]===r?c=t[1]:(c=(0,$.jsx)(an,{size:`md`,refreshing:r}),t[0]=r,t[1]=c);let l;return t[2]!==i||t[3]!==r||t[4]!==o||t[5]!==s||t[6]!==c?(l=(0,$.jsx)(R,{size:o,variant:s,"aria-label":`Refresh pull requests`,onClick:i,disabled:r,children:c}),t[2]=i,t[3]=r,t[4]=o,t[5]=s,t[6]=c,t[7]=l):l=t[7],l}export{Sr as component};
|
|
2
|
-
//# sourceMappingURL=_chat.pull-requests-JS9EZDI7.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-DzxwRta7.js";import{M as e}from"./mermaid-parser.core-Brqe55KM.js";export{e as createArchitectureServices};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{B as e,Fo as t,Go as n,H as r,Js as i,NE as a,R as o,U as s,W as c,Yo as l,bg as u,dg as d,fg as f}from"./utils-BAPnqm16.js";import{Ft as p,It as m,Rt as h}from"./runtime-B9IDNXDU.js";import{a as g,b as ee}from"./entities-DCbEYTvn.js";import{_ as te}from"./runtime-B5cKWtKn.js";import{m as _}from"./server-CoH7V4JL.js";import{r as v}from"./session-Bo2ZSprC.js";import{n as ne,r as re,s as ie}from"./useSettings-CKA-LDDj.js";import{t as y}from"./env-wK1YYxA8.js";import{n as b,t as ae}from"./preview-ITad1JAy.js";var x=a();function S(e){if(g(e)&&!(t()&&e!==n.get(_)))return`server`}function oe(e,n,r,i){return!i||!r||!t()||e===n?null:i.runtime===`server`?`desktop`:`server`}function se(e){return t()||g(e)}function C(e){let n=(0,x.c)(2),r=ee(e),i;return n[0]===r?i=n[1]:(i=t()||r,n[0]=r,n[1]=i),i}function w(e,t,n){return y&&n?.runtime===`server`&&t!==null&&e===t}function T(e,t){let n=(0,x.c)(4),r=l(_),i;return n[0]!==e||n[1]!==t||n[2]!==r?(i=w(e,r,t),n[0]=e,n[1]=t,n[2]=r,n[3]=i):i=n[3],i}var E=e=>e._tag===`fill`?`fill`:`${e._tag}:${e.width}:${e.height}:${e._tag===`preset`?e.presetId:``}`,D=e=>Number.isFinite(e)&&e>0?e:1;function ce(e,t,n=1){if(e._tag!==`fill`)return e;let r=D(n);return t?{_tag:`freeform`,width:Math.max(1,Math.round(t.width/t.scale/r)),height:Math.max(1,Math.round(t.height/t.scale/r))}:{_tag:`freeform`,width:1280,height:800}}function O(e){return{width:Math.max(1,e.width-20),height:Math.max(1,e.height-38-10)}}function k(e,t,n=1){let r=Math.max(1,Math.round(e.width)),i=Math.max(1,Math.round(e.height));if(t._tag===`fill`)return{canvasWidth:r,canvasHeight:i,viewportX:0,viewportY:0,viewportWidth:r,viewportHeight:i,viewportScale:1,fillsPanel:!0};let a=D(n),o=t.width*a,s=t.height*a,c=Math.min(1,r/o,i/s),l=o*c,u=s*c;return{canvasWidth:r,canvasHeight:i,viewportX:Math.max(0,Math.round((r-l)/2)),viewportY:Math.max(0,Math.round((i-u)/2)),viewportWidth:l,viewportHeight:u,viewportScale:c,fillsPanel:!1}}function le(e,t,n=1){let r=k(O(e),t,n);return{...r,canvasWidth:Math.max(1,Math.round(e.width)),canvasHeight:Math.max(1,Math.round(e.height)),viewportX:r.viewportX+10,viewportY:r.viewportY+38}}var A=e=>Math.min(f,Math.max(240,e)),ue=e=>e!==void 0&&Number.isFinite(e)&&e>0;function j(e,t,n){if(n===`width`){let n=Math.ceil(Math.max(240,240*t)),r=Math.floor(Math.min(f,f*t,Math.sqrt(d*t))),i=Math.min(r,Math.max(n,Math.round(e))),a=Math.round(i/t);for(;i*a>8294400&&i>n;)--i,a=Math.round(i/t);return{width:i,height:a}}let r=Math.ceil(Math.max(240,240/t)),i=Math.floor(Math.min(f,f/t,Math.sqrt(d/t))),a=Math.min(i,Math.max(r,Math.round(e))),o=Math.round(a*t);for(;o*a>8294400&&a>r;)--a,o=Math.round(a*t);return{width:o,height:a}}function M(e,t,n=1,r=`southeast`,i){let a=D(n),o=r.includes(`east`)?t.x:r.includes(`west`)?-t.x:0,s=r.includes(`south`)?t.y:r.includes(`north`)?-t.y:0,c=e.width+o/a,l=e.height+s/a;if(ue(i)){let t=o!==0||r===`east`||r===`west`,n=s!==0||r===`north`||r===`south`,a=t&&!n?`width`:n&&!t?`height`:Math.abs(c-e.width)/e.width>=Math.abs(l-e.height)/e.height?`width`:`height`;return j(a===`width`?c:l,i,a)}let u=A(Math.round(c)),f=A(Math.round(l));return u*f<=8294400||(Math.abs(o)>=Math.abs(s)?u=Math.max(240,Math.floor(d/f)):f=Math.max(240,Math.floor(d/u))),{width:u,height:f}}var N=(e,t,n)=>{let r=(e<n?(n+e)/2:e)+t;return r<=n?r*2-n:r},P=(e,t,n)=>{if(e>n){let r=e-n;return t<=r?e-t:n-(t-r)*2}let r=(n-e)/2+t;return r>=0?n-r*2:n-r};function F(e,t,n,r=1,i=`southeast`,a){let o=D(r),s=e.width*o,c=e.height*o,l=i.includes(`east`)?N(s,t.x,n.width):i.includes(`west`)?P(s,t.x,n.width):s,u=i.includes(`south`)?N(c,t.y,n.height):i.includes(`north`)?P(c,t.y,n.height):c,d=l-s,f=u-c;return M(e,{x:i.includes(`west`)?-d:d,y:i.includes(`north`)?-f:f},o,i,a)}function I(e,t=1){let n=O(e),r=D(t);return M({width:n.width/r,height:n.height/r},{x:0,y:0})}var L=e=>{let t=u(e.browserProfiles);return{viewport:e.browserDefaultViewport,zoomFactor:e.browserDefaultZoomFactor,appearance:e.browserDefaultAppearance,autoShowFloatingPreview:e.browserAutoShowFloatingPreview,profiles:t,profileId:t.find(t=>t.id===e.browserDefaultProfileId&&t.kind!==`incognito`)?.id??`default`}};function R(){return L(re())}async function z(){return await ne(),R()}function B(){return ie(L)}function V(e=R()){return{zoomFactor:e.zoomFactor,colorScheme:e.appearance}}function H(e=R()){return e.viewport}function U(e=R()){return e.profileId}var de={width:1024,height:768};function fe(e){let t=e.defaults??R();return t.viewport._tag===`fill`?{_tag:`freeform`,...e.panelRect?I(e.panelRect,e.zoomFactor):de}:t.viewport}var pe=e=>{let t=v(e);if(!t)throw Error(`Environment ${e} is not connected.`);return new URL(t.httpBaseUrl)},me=(e,t,n,r,i)=>{if(!m(n.hostname))throw Error(`This environment port needs the planned authenticated preview gateway; its server address is not directly private-network reachable.`);let a=t.protocol??`http`,o=t.path?.startsWith(`/`)?t.path:`/${t.path??``}`,s=n.hostname.replace(/^\[|\]$/g,``),c=p(s)?`localhost`:s.includes(`:`)?`[${s}]`:s,l=i?new URL(i):new URL(o,`${a}://${c}:${t.port}`);return i&&(l.hostname=c,l.port=String(t.port)),{requestedUrl:r??`${a}://localhost:${t.port}${o}`,resolvedUrl:l.toString(),resolutionKind:p(s)?`direct`:`direct-private-network`,environmentId:e}},he=e=>y&&(e._tag===`PrimaryConnectionTarget`||te(e));function W(e,t){try{let n=b(t),r=new URL(n);if(!ae(r.hostname))return n;let i=v(e)?.target;return i&&he(i)?n:me(e,{kind:`environment-port`,port:Number(r.port||(r.protocol===`https:`?443:80)),protocol:r.protocol===`https:`?`https`:`http`,path:`${r.pathname}${r.search}${r.hash}`},pe(e),t,r).resolvedUrl}catch{return t}}var ge=2048,_e=864e13;function G(e){return typeof e==`number`&&Number.isFinite(e)&&Math.abs(e)<=_e}function K(e){let t;try{t=new URL(b(e))}catch{return null}return t.username=t.password=``,t.href.length>ge?null:t.href}function q(e,t){let n=new URL(J(e,t));return n.pathname!==`/`&&n.pathname.endsWith(`/`)&&(n.pathname=n.pathname.slice(0,-1)),n.href}function J(e,t){let n=new URL(e),r=h(n.hostname),i=t&&h(t);return(p(r)||r===`0.0.0.0`||r===i)&&(n.hostname=`local`),n.href}function Y(e){let t=h(new URL(e).hostname);return p(t)||t===`0.0.0.0`}function ve(e,t,n,r){let i=J(t,r?.environmentHostname),a=e.find(e=>J(e.url,r?.environmentHostname)===i),o=e.filter(e=>J(e.url,r?.environmentHostname)!==i),s=r?.insertOrdered&&a&&a.lastVisitedAt>n?a.lastVisitedAt:n,c=a&&(Y(a.url)||!Y(t))?a.url:t,l=a?{...a,url:c,lastVisitedAt:s}:{url:t,lastVisitedAt:s};if(!r?.insertOrdered)return[l,...o].slice(0,50);let u=o.findIndex(e=>e.lastVisitedAt<l.lastVisitedAt);return(u===-1?[...o,l]:o.toSpliced(u,0,l)).slice(0,50)}function X(e){let t=Object.keys(e);if(t.length<=20)return e;let n=t.toSorted((t,n)=>(e[n]?.[0]?.lastVisitedAt??0)-(e[t]?.[0]?.lastVisitedAt??0)).slice(0,20);return Object.fromEntries(n.map(t=>[t,e[t]??[]]))}function Z(e){if(!e||typeof e!=`object`)return{byProjectKey:{}};let t=e.byProjectKey;if(!t||typeof t!=`object`||Array.isArray(t))return{byProjectKey:{}};let n={};for(let[e,r]of Object.entries(t)){if(!Array.isArray(r))continue;let t=new Set,i=r.flatMap(e=>{if(!e||typeof e!=`object`)return[];let{url:t,lastVisitedAt:n,title:r}=e;if(typeof t!=`string`)return[];let i=K(t);return!i||!G(n)?[]:[{url:i,lastVisitedAt:n,...typeof r==`string`&&r.length>0?{title:r.slice(0,512)}:{}}]}).toSorted((e,t)=>t.lastVisitedAt-e.lastVisitedAt).filter(e=>{let n=J(e.url);return!t.has(n)&&(t.add(n),!0)}).slice(0,50);i.length>0&&(n[e]=i)}return{byProjectKey:X(n)}}var ye=`t3code:browser-history:v1`,be=20;function Q(e,t,n){let r=e[t]??[],i={...e};i[t]=[...r,n].slice(-10);let a=Object.keys(i);if(a.length>be){let e=a[0];e!==void 0&&e!==t&&delete i[e]}return i}var $=c()(s((e,t)=>({byProjectKey:{},projectKeyByThreadKey:{},pendingVisitsByThreadKey:{},pendingTitlesByThreadKey:{},recordVisit:(t,n,r,i)=>{let a=K(n);a&&e(e=>({byProjectKey:X({...e.byProjectKey,[t]:ve(e.byProjectKey[t]??[],a,r,i)})}))},setTitleForUrl:(n,r,i,a)=>{let o=K(r),s=t(),c=s.byProjectKey[n],l=i.trim().slice(0,512);if(!o||!c||l.length===0)return;let u=q(o,a),d=c.findIndex(e=>q(e.url,a)===u);d!==-1&&c[d]?.title!==l&&e({byProjectKey:{...s.byProjectKey,[n]:c.map((e,t)=>t===d?{...e,title:l}:e)}})},removeUrl:(n,r)=>{let i=K(r),a=t(),o=a.byProjectKey[n];if(!i||!o)return;let s=o.filter(e=>e.url!==i);if(s.length!==o.length){if(s.length===0){let{[n]:t,...r}=a.byProjectKey;e({byProjectKey:r});return}e({byProjectKey:{...a.byProjectKey,[n]:s}})}},registerThreadProject:(n,r)=>{let a=i(n),o=t(),s=o.pendingVisitsByThreadKey[a],c=o.pendingTitlesByThreadKey[a];if(o.projectKeyByThreadKey[a]===r&&!s&&!c)return;let l={...o.pendingVisitsByThreadKey},u={...o.pendingTitlesByThreadKey};delete l[a],delete u[a],e({projectKeyByThreadKey:{...o.projectKeyByThreadKey,[a]:r},pendingVisitsByThreadKey:l,pendingTitlesByThreadKey:u});for(let e of s??[])t().recordVisit(r,e.url,e.at,{insertOrdered:!0,environmentHostname:e.environmentHostname});for(let e of c??[])t().setTitleForUrl(r,e.url,e.title,e.environmentHostname)}}),{name:ye,version:1,storage:r(()=>o(typeof window<`u`?window.localStorage:void 0)),partialize:e=>({byProjectKey:e.byProjectKey,projectKeyByThreadKey:e.projectKeyByThreadKey}),migrate:Z,merge:xe}));function xe(e,t){let n=Z(e);return{...t,...n,projectKeyByThreadKey:Se(e,n.byProjectKey),pendingVisitsByThreadKey:{},pendingTitlesByThreadKey:{}}}function Se(e,t){if(!e||typeof e!=`object`)return{};let n=e.projectKeyByThreadKey;return!n||typeof n!=`object`||Array.isArray(n)?{}:Object.fromEntries(Object.entries(n).filter(e=>typeof e[1]==`string`&&e[1]in t).slice(-100))}function Ce(e,t,n){let r=i(e),a=$.getState(),o=a.projectKeyByThreadKey[r],s=n??Date.now(),c=v(e.environmentId),l=c?new URL(c.httpBaseUrl).hostname:null;if(!o){$.setState({pendingVisitsByThreadKey:Q(a.pendingVisitsByThreadKey,r,{url:t,at:s,environmentHostname:l})});return}a.recordVisit(o,t,s,{environmentHostname:l})}function we(e,t,n,r){let a=i(e),o=$.getState(),s=o.projectKeyByThreadKey[a];if(!s){$.setState({pendingTitlesByThreadKey:Q(o.pendingTitlesByThreadKey,a,{url:t,title:n,environmentHostname:r})});return}o.setTitleForUrl(s,t,n,r)}function Te(e,t){let n=$.getState(),r=n.projectKeyByThreadKey[i(e)];r&&n.removeUrl(r,t)}var Ee=[];function De(t,n){let r=(0,x.c)(3),a;return r[0]!==n||r[1]!==t?(a=e=>{let r=e.projectKeyByThreadKey[i(t)],a=r?e.byProjectKey[r]:void 0;return a&&a.length>0?a.slice(0,n):Ee},r[0]=n,r[1]=t,r[2]=a):a=r[2],$(e(a))}export{w as C,S,T,le as _,De as a,oe as b,H as c,z as d,B as f,O as g,M as h,we as i,V as l,F as m,Ce as n,W as o,E as p,Te as r,U as s,G as t,fe as u,k as v,C as w,se as x,ce as y};
|
|
2
|
-
//# sourceMappingURL=browserHistoryStore-_SurQa0e.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-oBChb5qS.js";import"./chunk-DU6HZSFF-D-pyRDMG.js";import"./chunk-75Z2AOVW-Dv4NtCmQ.js";import"./chunk-PWAF6VOD-DHkc8IcS.js";import"./chunk-GMAD6QVW-uYd_Q5lX.js";import"./chunk-P2QGCYS3-ptp4LKHi.js";import"./chunk-4HAMMTFA-Q6ZY3Aj6.js";import"./chunk-GVQU2GXP-C3aAR6o_.js";import"./chunk-OSK3NFVY-DgNZQb8q.js";import"./chunk-F27PBJKO-BOXrNdwG.js";import"./chunk-XXDRQBXY-BvKO0v-W.js";import"./chunk-POPQ4Y6H-CRBmOW8B.js";import"./chunk-L3NEJ4N5-B5jDlsms.js";import{i as t,n,r,t as i}from"./chunk-TICWLB2K-BhZt3DVX.js";import"./mermaid.core-Cdl6aiT5.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
2
|
-
//# sourceMappingURL=classDiagram-ZZMXUADV-Dazl0CLN.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-oBChb5qS.js";import"./chunk-DU6HZSFF-D-pyRDMG.js";import"./chunk-75Z2AOVW-Dv4NtCmQ.js";import"./chunk-PWAF6VOD-DHkc8IcS.js";import"./chunk-GMAD6QVW-uYd_Q5lX.js";import"./chunk-P2QGCYS3-ptp4LKHi.js";import"./chunk-4HAMMTFA-Q6ZY3Aj6.js";import"./chunk-GVQU2GXP-C3aAR6o_.js";import"./chunk-OSK3NFVY-DgNZQb8q.js";import"./chunk-F27PBJKO-BOXrNdwG.js";import"./chunk-XXDRQBXY-BvKO0v-W.js";import"./chunk-POPQ4Y6H-CRBmOW8B.js";import"./chunk-L3NEJ4N5-B5jDlsms.js";import{i as t,n,r,t as i}from"./chunk-TICWLB2K-BhZt3DVX.js";import"./mermaid.core-Cdl6aiT5.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
2
|
-
//# sourceMappingURL=classDiagram-v2-VYDZK3BY-Dazl0CLN.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Eo as n,Fa as r,Jp as i,NE as a,Ta as o,Tn as s,Um as c,lE as l,sr as u,t as d,vo as f,xd as p}from"./utils-BAPnqm16.js";import{a as m,d as h,f as g,g as _,i as v,l as y,m as b,n as x,o as S,p as C,r as w,s as T,t as E,u as D}from"./ComboboxClear-FsZ2LcVw.js";import{t as O}from"./input-83N8btBC.js";import{t as k}from"./scroll-area-DGS0jgnh.js";import{n as A,o as j,r as M,s as ee,u as te}from"./DialogTitle-DnR18OB7.js";import{f as ne,u as N}from"./dialog-DYFQxVoN.js";var P=e(t()),F=P.createContext(void 0);function I(){let e=P.useContext(F);if(e===void 0)throw Error(n(18));return e}var L=e(l()),R=P.forwardRef(function(e,t){let{render:n,className:r,style:i,items:a,...o}=e,[s,c]=P.useState(),l=P.useMemo(()=>({labelId:s,setLabelId:c,items:a}),[s,c,a]),u=f(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":s},o]}),d=(0,L.jsx)(F.Provider,{value:l,children:u});return a?(0,L.jsx)(h,{items:a,children:d}):d}),z=P.forwardRef(function(e,t){let{render:n,className:i,style:a,id:s,...c}=e,{setLabelId:l}=I(),u=o(s);return r(()=>(l(u),()=>{l(void 0)}),[u,l]),f(`div`,e,{ref:t,props:[{id:u},c]})});function B(e){let{openOnInputClick:t=!1,value:n,defaultValue:r,onValueChange:i,mode:a=`list`,itemToStringValue:o,...c}=e,l=a===`inline`||a===`both`,u=a===`inline`||a===`none`,d=n!==void 0,[f,p]=P.useState(r??``),[m,h]=P.useState(``);P.useEffect(()=>{d&&h(``)},[n,d]);let g;g=l&&m!==``?m:d?n??``:f;let v=_(),y=P.useMemo(()=>c.filter===void 0?v.contains:c.filter,[c.filter,v]),x=String(d?n:f).trim(),S=P.useMemo(()=>a===`both`?y===null?null:(e,t,n)=>y(e,x,n):u?null:y,[y,a,x,u]);function C(e,t){h(``),d||p(e),i?.(e,t)}function w(t,n){e.onItemHighlighted?.(t,n),n.reason!==`pointer`&&h(l?t==null?``:s(t,o):``)}return(0,L.jsx)(b,{...c,itemToStringLabel:o,openOnInputClick:t,selectionMode:`none`,fillInputOnItemPress:!0,filter:S,autoComplete:a,inputValue:g,defaultInputValue:r,onInputValueChange:C,onItemHighlighted:w})}var V=g,H=w,U=a(),W=B;function G(e){let t=(0,U.c)(30),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({className:n,showTrigger:o,showClear:s,startAddon:a,size:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let l=o!==void 0&&o,u=s!==void 0&&s,f=i??`default`,m;t[7]===a?m=t[8]:(m=a&&(0,L.jsx)(`div`,{"aria-hidden":`true`,className:`[&_svg]:-mx-0.5 pointer-events-none has-[button]:pointer-events-auto absolute inset-y-0 start-px z-10 flex items-center ps-[calc(--spacing(3)-1px)] opacity-80 has-[+[data-size=sm]]:ps-[calc(--spacing(2.5)-1px)] [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4`,"data-slot":`autocomplete-start-addon`,children:a}),t[7]=a,t[8]=m);let h=a&&`data-[size=sm]:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(7.5)-1px)] *:data-[slot=autocomplete-input]:ps-[calc(--spacing(8.5)-1px)] sm:data-[size=sm]:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(7)-1px)] sm:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(8)-1px)]`,g=f===`sm`?`has-[+[data-slot=autocomplete-trigger],+[data-slot=autocomplete-clear]]:*:data-[slot=autocomplete-input]:pe-6.5`:`has-[+[data-slot=autocomplete-trigger],+[data-slot=autocomplete-clear]]:*:data-[slot=autocomplete-input]:pe-7`,_;t[9]!==n||t[10]!==h||t[11]!==g?(_=d(h,g,n),t[9]=n,t[10]=h,t[11]=g,t[12]=_):_=t[12];let y;t[13]===f?y=t[14]:(y=(0,L.jsx)(O,{nativeInput:!0,size:f}),t[13]=f,t[14]=y);let b;t[15]!==r||t[16]!==_||t[17]!==y?(b=(0,L.jsx)(C,{className:_,"data-slot":`autocomplete-input`,render:y,...r}),t[15]=r,t[16]=_,t[17]=y,t[18]=b):b=t[18];let x;t[19]!==l||t[20]!==f?(x=l&&(0,L.jsx)(se,{className:d(`-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-colors pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 has-[+[data-slot=autocomplete-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,f===`sm`?`end-0`:`end-0.5`),children:(0,L.jsx)(v,{"data-slot":`autocomplete-icon`,children:(0,L.jsx)(p,{})})}),t[19]=l,t[20]=f,t[21]=x):x=t[21];let S;t[22]!==u||t[23]!==f?(S=u&&(0,L.jsx)(ae,{className:d(`-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-colors pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 has-[+[data-slot=autocomplete-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,f===`sm`?`end-0`:`end-0.5`),children:(0,L.jsx)(c,{})}),t[22]=u,t[23]=f,t[24]=S):S=t[24];let w;return t[25]!==S||t[26]!==m||t[27]!==b||t[28]!==x?(w=(0,L.jsxs)(`div`,{className:`relative not-has-[>*.w-full]:w-fit w-full text-foreground has-disabled:opacity-64`,children:[m,b,x,S]}),t[25]=S,t[26]=m,t[27]=b,t[28]=x,t[29]=w):w=t[29],w}function K(e){let t=(0,U.c)(24),n,r,i,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8]):({className:a,children:i,side:s,sideOffset:c,alignOffset:n,align:l,anchor:r,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l);let u=s===void 0?`bottom`:s,f=c===void 0?4:c,p=l===void 0?`start`:l,h;t[9]===a?h=t[10]:(h=d(`relative flex max-h-full min-w-(--anchor-width) max-w-(--available-width) origin-(--transform-origin) rounded-lg border bg-popover not-dark:bg-clip-padding shadow-lg/5 transition-[scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)]`,a),t[9]=a,t[10]=h);let g;t[11]!==i||t[12]!==o?(g=(0,L.jsx)(m,{className:`flex max-h-[min(var(--available-height),23rem)] flex-1 flex-col text-foreground`,"data-slot":`autocomplete-popup`,...o,children:i}),t[11]=i,t[12]=o,t[13]=g):g=t[13];let _;t[14]!==h||t[15]!==g?(_=(0,L.jsx)(`span`,{className:h,children:g}),t[14]=h,t[15]=g,t[16]=_):_=t[16];let v;return t[17]!==p||t[18]!==n||t[19]!==r||t[20]!==u||t[21]!==f||t[22]!==_?(v=(0,L.jsx)(T,{children:(0,L.jsx)(S,{align:p,alignOffset:n,anchor:r,className:`z-[130] select-none`,"data-slot":`autocomplete-positioner`,side:u,sideOffset:f,children:_})}),t[17]=p,t[18]=n,t[19]=r,t[20]=u,t[21]=f,t[22]=_,t[23]=v):v=t[23],v}function q(e){let t=(0,U.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=d(`flex min-h-8 cursor-default select-none items-center gap-2 rounded-sm px-2 py-1 text-base outline-none hover:bg-accent data-disabled:pointer-events-none data-selected:bg-accent/50 data-selected:text-foreground data-highlighted:bg-accent data-highlighted:text-accent-foreground [&[data-highlighted][data-selected]]:bg-accent [&[data-highlighted][data-selected]]:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='text-'])]:text-muted-foreground`,r),t[4]=r,t[5]=a);let o;return t[6]!==n||t[7]!==i||t[8]!==a?(o=(0,L.jsx)(H,{className:a,"data-slot":`autocomplete-item`,...i,children:n}),t[6]=n,t[7]=i,t[8]=a,t[9]=o):o=t[9],o}function J(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`[[role=group]+&]:mt-1.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(R,{className:i,"data-slot":`autocomplete-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Y=`px-2 py-1.5 font-medium text-muted-foreground text-xs`;function X(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(Y,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(z,{className:i,"data-slot":`autocomplete-group-label`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Z(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(Y,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(`div`,{className:i,"data-slot":`autocomplete-group-label`,role:`presentation`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function re(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`size-full min-w-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(y,{className:i,"data-slot":`autocomplete-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ie(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`not-empty:p-2 text-center text-base text-muted-foreground sm:text-sm`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(x,{className:i,"data-slot":`autocomplete-empty`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Q(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`not-empty:scroll-py-1 not-empty:p-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(k,{scrollbarGutter:!0,scrollFade:!0,children:(0,L.jsx)(y,{className:i,"data-slot":`autocomplete-list`,...r})}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ae(e){let t=(0,U.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`-translate-y-1/2 absolute end-0.5 top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-[color,background-color,box-shadow,opacity] pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,L.jsx)(c,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,L.jsx)(E,{className:i,"data-slot":`autocomplete-clear`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function oe(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,L.jsx)(D,{"data-slot":`autocomplete-collection`,...n}),t[2]=n,t[3]=r),r}function se(e){let t=(0,U.c)(8),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;return t[4]!==n||t[5]!==r||t[6]!==i?(a=(0,L.jsx)(V,{className:r,"data-slot":`autocomplete-trigger`,...i,children:n}),t[4]=n,t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var ce=M,le=j;function ue(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(N,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(te,{className:i,"data-slot":`command-dialog-backdrop`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function de(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`pointer-events-none fixed inset-0 z-50 flex flex-col items-center px-4 py-[max(--spacing(4),4vh)] sm:py-[10vh]`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(A,{className:i,"data-slot":`command-dialog-viewport`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function fe(e){let t=(0,U.c)(16),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,children:n,onBackdropPointerDown:i,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o;t[5]===i?o=t[6]:(o=(0,L.jsx)(ue,{onPointerDown:i}),t[5]=i,t[6]=o);let s;t[7]===r?s=t[8]:(s=d(ne,`pointer-events-auto max-h-105 max-w-xl text-foreground`,r),t[7]=r,t[8]=s);let c;t[9]!==n||t[10]!==a||t[11]!==s?(c=(0,L.jsx)(de,{children:(0,L.jsx)(ee,{className:s,"data-slot":`command-dialog-popup`,...a,children:n})}),t[9]=n,t[10]=a,t[11]=s,t[12]=c):c=t[12];let l;return t[13]!==o||t[14]!==c?(l=(0,L.jsxs)(le,{children:[o,c]}),t[13]=o,t[14]=c,t[15]=l):l=t[15],l}function pe(e){let t=(0,U.c)(8),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({autoHighlight:r,keepHighlight:i,...n}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=r===void 0?`always`:r,o=i===void 0||i,s;return t[4]!==a||t[5]!==o||t[6]!==n?(s=(0,L.jsx)(W,{autoHighlight:a,inline:!0,keepHighlight:o,open:!0,...n}),t[4]=a,t[5]=o,t[6]=n,t[7]=s):s=t[7],s}function $(e){let t=(0,U.c)(11),n,r,a;t[0]===e?(n=t[1],r=t[2],a=t[3]):({className:n,placeholder:r,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a);let o;t[4]===n?o=t[5]:(o=d(`border-transparent! bg-transparent! shadow-none before:hidden has-focus-visible:ring-0 placeholder:text-placeholder *:data-[slot=autocomplete-input]:ps-9! sm:*:data-[slot=autocomplete-input]:ps-[calc(var(--command-shell-inset)+1.5rem)]!`,n),t[4]=n,t[5]=o);let s;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,L.jsx)(i,{className:`translate-x-0.5 text-icon-muted`}),t[6]=s):s=t[6];let c;return t[7]!==r||t[8]!==a||t[9]!==o?(c=(0,L.jsx)(`div`,{className:`px-[var(--command-shell-inset)] py-1.5 [&_[data-slot=autocomplete-start-addon]]:ps-[calc(var(--command-shell-inset)+0.0625rem)]`,children:(0,L.jsx)(G,{autoFocus:!0,className:o,placeholder:r,size:`lg`,startAddon:s,...a})}),t[7]=r,t[8]=a,t[9]=o,t[10]=c):c=t[10],c}function me(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`not-empty:scroll-py-2 not-empty:p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(Q,{className:i,"data-slot":`command-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function he(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`flex max-h-[inherit] flex-col`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(re,{className:i,"data-slot":`command-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ge(e){let t=(0,U.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=(0,L.jsx)(Z,{className:n,"data-slot":`command-group-label`,...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function _e(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`relative min-h-0 overflow-hidden rounded-t-xl not-has-[+[data-slot=command-footer]]:rounded-b-2xl bg-transparent **:data-[slot=scroll-area-scrollbar]:mt-2 [touch-action:pan-y]`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(`div`,{className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ve(e){let t=(0,U.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=(0,L.jsx)(J,{className:n,"data-slot":`command-group`,...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ye(e){let t=(0,U.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=(0,L.jsx)(X,{className:n,"data-slot":`command-group-label`,...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function be(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,L.jsx)(oe,{"data-slot":`command-collection`,...n}),t[2]=n,t[3]=r),r}function xe(e){let t=(0,U.c)(12),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,active:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=n!==void 0&&`cursor-pointer hover:bg-transparent hover:text-inherit data-highlighted:bg-transparent data-highlighted:text-inherit data-selected:bg-transparent data-selected:text-inherit [&[data-highlighted][data-selected]]:bg-transparent [&[data-highlighted][data-selected]]:text-inherit`,o=n&&`bg-accent! text-accent-foreground!`,s;t[4]!==r||t[5]!==a||t[6]!==o?(s=d(`py-1.5 data-selected:bg-foreground/[0.06] data-highlighted:bg-foreground/[0.09] data-highlighted:text-foreground [&[data-highlighted][data-selected]]:bg-foreground/[0.09] [&[data-highlighted][data-selected]]:text-foreground`,a,o,r),t[4]=r,t[5]=a,t[6]=o,t[7]=s):s=t[7];let c=n||void 0,l;return t[8]!==i||t[9]!==s||t[10]!==c?(l=(0,L.jsx)(q,{className:s,"data-active":c,"data-slot":`command-item`,...i}),t[8]=i,t[9]=s,t[10]=c,t[11]=l):l=t[11],l}function Se(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`ms-auto font-medium font-sans text-secondary-label text-xs tracking-widest`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(`kbd`,{className:i,"data-slot":`command-shortcut`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ce(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`relative flex items-center justify-between gap-2 rounded-b-[calc(var(--radius-2xl)-1px)] bg-foreground/[0.025] px-[var(--command-content-inset)] py-2.5 font-medium text-sm text-muted-foreground [&_[data-slot=kbd-group]]:font-sans [&_[data-slot=kbd]]:bg-foreground/[0.08] [&_[data-slot=kbd]]:text-foreground [&_[data-slot=kbd]]:ring-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(`div`,{className:i,"data-slot":`command-footer`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function we(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`h-auto px-2 text-xs hover:bg-transparent`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,L.jsx)(u,{...r,variant:`ghost-muted`,size:`xs`,className:i}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{ie as _,Ce as a,Q as b,ye as c,me as d,ge as f,W as g,Se as h,fe as i,$ as l,_e as m,be as n,we as o,he as p,ce as r,ve as s,pe as t,xe as u,G as v,K as x,q as y};
|
|
2
|
-
//# sourceMappingURL=command-DsE3Ju6m.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$o as e,$x as t,LT as n,MT as r,NE as i,NT as a,Ox as o,P_ as s,Ss as c,Yo as l,Zo as u,kv as d,ss as f,yl as p}from"./utils-BAPnqm16.js";import{At as m,E as h,I as g,Sn as _,T as v}from"./runtime-B9IDNXDU.js";import{Ct as y,t as b,yt as x}from"./runtime-B5cKWtKn.js";import{f as S,h as C,m as w}from"./server-CoH7V4JL.js";import{s as T}from"./session-Bo2ZSprC.js";var E=i();function D(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e)if(t.get(n)!==r)return!1;return!0}function O(t){let n=u(n=>e(e=>{let i=e(t.catalogValueAtom).entries.get(n);if(i===void 0)return null;let a=r(c(e(t.stateAtom(n))),()=>_);return{entry:i,connection:i.unsupportedReason===void 0?y(a):{phase:`unsupported`,error:i.unsupportedReason,traceId:null},serverConfig:e(t.serverConfigValueAtom(n))}}).pipe(f(`environment-presentation:${n}`))),i=new Map;return{presentationAtom:n,presentationsAtom:e(e=>{let r=new Map;for(let i of e(t.catalogValueAtom).entries.keys()){let t=e(n(i));t!==null&&r.set(i,t)}return D(i,r)||(i=r),i}).pipe(f(`environment-presentations`))}}function k(e,t){return{environmentId:e,environmentLabel:t.entry.target.label,displayUrl:x(t.entry)??``,isRelayManaged:m(t.entry),isEnabled:t.entry.enabled,connectionState:t.connection.phase,connectionError:t.connection.error,connectionErrorTraceId:t.connection.traceId}}function A(t){let n=e(e=>{let n=[...e(t.catalogValueAtom).entries.keys()],r=a(e.self());return r!==null&&r.length===n.length&&n.every((e,t)=>e===r[t])?r:n}),r=e(e=>{let n=[...e(t.catalogValueAtom).entries].map(([e,t])=>({environmentId:e,label:t.target.label})),r=a(e.self());return r!==null&&r.length===n.length&&n.every((e,t)=>e.environmentId===r[t]?.environmentId&&e.label===r[t]?.label)?r:n}),i=u(n=>e(e=>{let r=e(t.presentationAtom(n));if(r===null)return null;let i=k(n,r),o=a(e.self());return o!==null&&o.environmentId===i.environmentId&&o.environmentLabel===i.environmentLabel&&o.displayUrl===i.displayUrl&&o.isRelayManaged===i.isRelayManaged&&o.isEnabled===i.isEnabled&&o.connectionState===i.connectionState&&o.connectionError===i.connectionError&&o.connectionErrorTraceId===i.connectionErrorTraceId?o:i})),o=e(e=>{let n=[];for(let r of e(t.catalogValueAtom).entries.keys()){let t=e(i(r));t!==null&&n.push(t)}let r=a(e.self());return r!==null&&r.length===n.length&&n.every((e,t)=>e===r[t])?r:n}).pipe(f(`environment-connection-summaries`));return{environmentIdsAtom:n,connectedEnvironmentIdsAtom:e(e=>{let t=e(n).filter(t=>e(i(t))?.connectionState===`connected`),r=a(e.self());return r!==null&&r.length===t.length&&t.every((e,t)=>e===r[t])?r:t}),identitiesAtom:r,environmentsAtom:o,machineByIdAtom:e(e=>{let r=new Map(e(n).map(n=>[n,p(e(t.presentationAtom(n))?.serverConfig??null)])),i=a(e.self());return i!==null&&D(i,r)?i:r}),pullRequestsSupportedAtom:e(e=>e(n).some(n=>e(t.presentationAtom(n))?.serverConfig?.environment.capabilities.pullRequests===!0))}}var j=O({catalogValueAtom:C.catalogValueAtom,stateAtom:C.stateAtom,serverConfigValueAtom:S.configValueAtom}),M=A({catalogValueAtom:C.catalogValueAtom,presentationAtom:j.presentationAtom}),N=e(null).pipe(f(`web-environment-presentation:empty`));function P(e){let t=(0,E.c)(5),n=l(C.catalogValueAtom),r;t[0]===e?r=t[1]:(r=e===null?N:j.presentationAtom(e),t[0]=e,t[1]=r);let i=l(r),a;return t[2]!==n.isReady||t[3]!==i?(a={isReady:n.isReady,presentation:i},t[2]=n.isReady,t[3]=i,t[4]=a):a=t[4],a}function F(n){let i=n.atom(d(h.pipe(t(e=>s(e.state)))),{initialValue:v});return{stateAtom:i,stateValueAtom:e(e=>r(c(e(i)),()=>v)).pipe(f(`relay-environment-discovery-value`)),refresh:g(n,{label:`relay-environment-discovery:refresh`,concurrency:{mode:`singleFlight`,key:()=>`refresh`},execute:e=>h.pipe(o(e=>e.refresh))})}}var I=F(b);function L(e,t){return{...t,environmentId:e,label:t.entry.target.label,displayUrl:x(t.entry),relayManaged:m(t.entry)}}function R(){let e=(0,E.c)(7),t=l(C.catalogValueAtom),n=l(C.networkStatusValueAtom),r=l(j.presentationsAtom),i;e[0]===r?i=e[1]:(i=[...r.entries()].map(z),e[0]=r,e[1]=i);let a=i,o;return e[2]!==t.isReady||e[3]!==a||e[4]!==n||e[5]!==r?(o={isReady:t.isReady,networkStatus:n,environments:a,presentationById:r},e[2]=t.isReady,e[3]=a,e[4]=n,e[5]=r,e[6]=o):o=e[6],o}function z(e){let[t,n]=e;return L(t,n)}function B(){return l(w)}function V(e){let t=(0,E.c)(3),{presentation:n}=P(e),r;return t[0]!==e||t[1]!==n?(r=e===null||n===null?null:L(e,n),t[0]=e,t[1]=n,t[2]=r):r=t[2],r}function H(){return V(B())}function U(e){let t=(0,E.c)(2),r=T(e),i;return t[0]===r?i=t[1]:(i=n(r)?r.value.httpBaseUrl:null,t[0]=r,t[1]=i),i}function W(){return l(I.stateValueAtom)}function G(){return l(M.environmentIdsAtom)}function K(){return l(M.identitiesAtom)}function q(){return l(M.pullRequestsSupportedAtom)}export{R as a,q as c,j as d,P as f,G as i,W as l,U as n,H as o,K as r,B as s,V as t,I as u};
|
|
2
|
-
//# sourceMappingURL=environments-iW64jjyO.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-DzxwRta7.js";import{O as e}from"./mermaid-parser.core-Brqe55KM.js";export{e as createEventModelingServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./src-oBChb5qS.js";import"./chunk-DU6HZSFF-D-pyRDMG.js";import"./chunk-75Z2AOVW-Dv4NtCmQ.js";import"./chunk-PWAF6VOD-DHkc8IcS.js";import"./chunk-GMAD6QVW-uYd_Q5lX.js";import"./chunk-P2QGCYS3-ptp4LKHi.js";import"./chunk-4HAMMTFA-Q6ZY3Aj6.js";import"./chunk-GVQU2GXP-C3aAR6o_.js";import"./chunk-OSK3NFVY-DgNZQb8q.js";import"./chunk-F27PBJKO-BOXrNdwG.js";import"./chunk-XXDRQBXY-BvKO0v-W.js";import"./chunk-POPQ4Y6H-CRBmOW8B.js";import"./chunk-L3NEJ4N5-B5jDlsms.js";import{n as e}from"./chunk-SHT3W25Y-B5XMb9ST.js";import"./mermaid.core-Cdl6aiT5.js";export{e as diagram};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-CacG5mZC.js";var t=[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`,key:`1yeb86`}],[`path`,{d:`M11 18H8a2 2 0 0 1-2-2V9`,key:`19pyzm`}]],n=e(`git-compare`,t);export{t as __iconNode,n as default};
|
|
2
|
-
//# sourceMappingURL=git-compare-CCnx9obs.js.map
|