(t0)
| 355 | } |
| 356 | } |
| 357 | function ErrorsTabContent(t0) { |
| 358 | const $ = _c(26); |
| 359 | const { |
| 360 | setViewState, |
| 361 | setActiveTab, |
| 362 | markPluginsChanged |
| 363 | } = t0; |
| 364 | const errors = useAppState(_temp2); |
| 365 | const installationStatus = useAppState(_temp3); |
| 366 | const setAppState = useSetAppState(); |
| 367 | const [selectedIndex, setSelectedIndex] = useState(0); |
| 368 | const [actionMessage, setActionMessage] = useState(null); |
| 369 | let t1; |
| 370 | if ($[0] === Symbol.for("react.memo_cache_sentinel")) { |
| 371 | t1 = []; |
| 372 | $[0] = t1; |
| 373 | } else { |
| 374 | t1 = $[0]; |
| 375 | } |
| 376 | const [marketplaceLoadFailures, setMarketplaceLoadFailures] = useState(t1); |
| 377 | let t2; |
| 378 | let t3; |
| 379 | if ($[1] === Symbol.for("react.memo_cache_sentinel")) { |
| 380 | t2 = () => { |
| 381 | (async () => { |
| 382 | try { |
| 383 | const config = await loadKnownMarketplacesConfig(); |
| 384 | const { |
| 385 | failures |
| 386 | } = await loadMarketplacesWithGracefulDegradation(config); |
| 387 | setMarketplaceLoadFailures(failures); |
| 388 | } catch {} |
| 389 | })(); |
| 390 | }; |
| 391 | t3 = []; |
| 392 | $[1] = t2; |
| 393 | $[2] = t3; |
| 394 | } else { |
| 395 | t2 = $[1]; |
| 396 | t3 = $[2]; |
| 397 | } |
| 398 | useEffect(t2, t3); |
| 399 | const failedMarketplaces = installationStatus.marketplaces.filter(_temp4); |
| 400 | const failedMarketplaceNames = new Set(failedMarketplaces.map(_temp5)); |
| 401 | const transientErrors = errors.filter(isTransientError); |
| 402 | const extraMarketplaceErrors = errors.filter(e => (e.type === "marketplace-not-found" || e.type === "marketplace-load-failed" || e.type === "marketplace-blocked-by-policy") && !failedMarketplaceNames.has(e.marketplace)); |
| 403 | const pluginLoadingErrors = errors.filter(_temp6); |
| 404 | const otherErrors = errors.filter(_temp7); |
| 405 | const pluginScopes = getPluginEditableScopes(); |
| 406 | const rows = buildErrorRows(failedMarketplaces, extraMarketplaceErrors, pluginLoadingErrors, otherErrors, marketplaceLoadFailures, transientErrors, pluginScopes); |
| 407 | let t4; |
| 408 | if ($[3] !== setViewState) { |
| 409 | t4 = () => { |
| 410 | setViewState({ |
| 411 | type: "menu" |
| 412 | }); |
| 413 | }; |
| 414 | $[3] = setViewState; |
nothing calls this directly
no test coverage detected