Peach: Local-first video metadata scraper and media manager.
refactor(review): 将处理状态收进筛选浮窗
longmeidaoccc578de8c89
diff --git a/frontend/src/react/review/bulk-toolbar.tsx b/frontend/src/react/review/bulk-toolbar.tsxindex c2ab2a2af..7c8d8fed5 100644--- a/frontend/src/react/review/bulk-toolbar.tsx+++ b/frontend/src/react/review/bulk-toolbar.tsx@@ -8,11 +8,16 @@ import { RiCheckDoubleLine } from '@remixicon/react';import { Button } from '@/components/base/buttons/button';import { Select, SelectItem } from '../components/select';import { SelectionDock } from '../components/selection-dock';+import { PillTabList } from '../components/pill-tabs';+import { PillTab } from '../components/pill-tab';import type { DecisionStatus, ReviewGroup, ReviewGrouping, ReviewQueue, ReviewRow } from './review';-import { commonReviewSources } from './review';+import { commonReviewSources, REVIEW_QUEUES, REVIEW_QUEUE_LABELS } from './review';export interface BulkToolbarProps {queueView?: ReviewQueue;+ queueCounts?: Record<ReviewQueue, number>;+ onQueueChange(queue: ReviewQueue): void;+ locked: boolean;groupOptions: [ReviewGrouping, string][];groupBy: ReviewGrouping;onGroupBy(next: ReviewGrouping): void;@@ -38,6 +43,7 @@ export function BulkToolbar(props: BulkToolbarProps) {const {groupOptions, groupBy, onGroupBy, groups, filter, onFilter, pageKeys, selected, onSelected,selectedRows, metadata, approvable, busy, feedback, onUnifySource, onRun, queueView = 'pending',+ queueCounts, onQueueChange, locked,} = props;const shown = pageKeys.filter((key) => selected.has(key));const allShown = shown.length > 0 && shown.length === pageKeys.length;@@ -55,6 +61,17 @@ export function BulkToolbar(props: BulkToolbarProps) {<><div role="group" aria-label="复核筛选" data-review-filter data-glass-pane=""className="sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3">+ <PillTabList aria-label="复核状态" data-pill-nav=""+ className="flex max-w-full flex-nowrap gap-1 overflow-x-auto">+ {REVIEW_QUEUES.map(key => <PillTab key={key} variant="gray" isSelected={queueView === key}+ disabled={busy} onSelect={() => { if (key !== queueView) onQueueChange(key) }}>+ <span data-copy-key={`review.queue.${key}`}>{REVIEW_QUEUE_LABELS[key]}</span>{' '}+ <span className="tabular-nums text-caption-1-medium text-text-secondary">+ {queueCounts ? queueCounts[key].toLocaleString() : '…'}+ </span>+ </PillTab>)}+ </PillTabList>+ {pageKeys.length ? <><Select aria-label="筛选分组方式" size="sm" selectedKey={groupBy}onSelectionChange={(key) => { if (key !== null) onGroupBy(String(key) as ReviewGrouping) }}>{groupOptions.map(([key, name]) => <SelectItem key={key} id={key}>{name}</SelectItem>)}@@ -72,13 +89,14 @@ export function BulkToolbar(props: BulkToolbarProps) {))}</Select>) : null}- <Button variant="secondary" size="small" leadingIcon={RiCheckDoubleLine}+ {locked ? null : <Button variant="secondary" size="small" leadingIcon={RiCheckDoubleLine}aria-pressed={allShown} disabled={busy || !pageKeys.length} onClick={toggleAll}>{allShown ? '清空当前选择' : filter ? '全选当前分类' : '全选本页'}- </Button>+ </Button>}+ </> : null}</div>- <SelectionDock label="复核所选项目" visible={selected.size > 0} count={`已选 ${selected.size} 项`}>+ <SelectionDock label="复核所选项目" visible={!locked && selected.size > 0} count={`已选 ${selected.size} 项`}>{needsSource && queueView !== 'ignored' ? (<Select aria-label="统一选择来源" size="sm" selectedKey=""isDisabled={busy || !sources.length}diff --git a/frontend/src/react/review/review-page.tsx b/frontend/src/react/review/review-page.tsxindex b5d4ab929..f82bdb1d4 100644--- a/frontend/src/react/review/review-page.tsx+++ b/frontend/src/react/review/review-page.tsx@@ -22,8 +22,6 @@ import { EmptyState } from '../components/empty-state';import { Note } from '../components/note';import { Page } from '../components/page';import { PillAriaTabList } from '../components/pill-aria-tab-list';-import { PillTabList } from '../components/pill-tabs';-import { PillTab } from '../components/pill-tab';import { ExternalLink } from '../settings/section';import { BulkToolbar } from './bulk-toolbar';import { GenreTagList } from './candidate-form';@@ -102,6 +100,9 @@ export function ReviewPage(props: ReviewProps) {const data: ReviewData = review.data || { sections: {}, counts: {},queues: { later: { sections: {}, counts: {} }, ignored: { sections: {}, counts: {} } } };const snapshot = reviewQueueData(data, queueView);+ const queueCounts = review.data ? Object.fromEntries(REVIEW_QUEUES.map(key => [key,+ REVIEW_CATEGORIES.reduce((sum, category) =>+ sum + Number(reviewQueueData(data, key).counts[category] || 0), 0)])) as Record<ReviewQueue, number> : undefined;const queue = snapshot.sections[category] || [];const metadata = category === 'metadata_fields';const locked = readOnly;@@ -270,19 +271,6 @@ export function ReviewPage(props: ReviewProps) {) : null}<GenreTagList tags={genreTags} />- <PillTabList aria-label="复核状态" data-pill-nav=""- className="flex w-fit max-w-full flex-nowrap gap-1 overflow-x-auto">- {REVIEW_QUEUES.map(key => <PillTab key={key} variant="gray" isSelected={queueView === key}- disabled={decide.isPending || bulk.isPending}- onSelect={() => { if (key !== queueView) goQueue(key) }}>- <span data-copy-key={`review.queue.${key}`}>{REVIEW_QUEUE_LABELS[key]}</span>{' '}- <span className="tabular-nums text-caption-1-medium text-text-secondary">- {review.data ? REVIEW_CATEGORIES.reduce((sum, category) =>- sum + Number(reviewQueueData(data, key).counts[category] || 0), 0).toLocaleString() : '…'}- </span>- </PillTab>)}- </PillTabList>-{/* 分类目录位于正文左侧;窄屏使用正文上方的导航。 */}<Tabs orientation={narrow ? 'horizontal' : 'vertical'} selectedKey={category} onSelectionChange={(key) => {const next = String(key);@@ -311,8 +299,8 @@ export function ReviewPage(props: ReviewProps) {</div><TabPanel id={category} className="flex min-w-0 flex-1 flex-col gap-5">- {queue.length && !locked ? (- <BulkToolbar queueView={queueView} groupOptions={groupOptions} groupBy={activeGroupBy}+ <BulkToolbar queueView={queueView} queueCounts={queueCounts} onQueueChange={goQueue} locked={locked}+ groupOptions={groupOptions} groupBy={activeGroupBy}onGroupBy={(next) => { setGroupBy(next); setFilter(''); setPage(1) }}groups={groups} filter={activeFilter}onFilter={(next) => { setFilter(next); setPage(1) }}@@ -321,7 +309,6 @@ export function ReviewPage(props: ReviewProps) {approvable={selectedRows.every((row) => canApprove(category, row))}busy={bulk.isPending || decide.isPending} feedback={feedback}onUnifySource={unifySource} onRun={runBulk} />- ) : null}{win.rows.length ? pageGroups.map((group) => (<section key={group.key} className="flex flex-col gap-3">diff --git a/frontend/test/react/review.test.tsx b/frontend/test/react/review.test.tsxindex 7bbba5fa9..5adba6796 100644--- a/frontend/test/react/review.test.tsx+++ b/frontend/test/react/review.test.tsx@@ -322,6 +322,19 @@ it('已忽略通过链接打开,只提供恢复,跨状态清空选择', asynexpect(host.querySelector('[data-selection-dock]')).toBeNull();});+it('空分类仍可在筛选浮窗切换状态,只读时保留筛选并隐藏全选', async () => {+ const { host, props } = await open({ data: review({+ sections: { metadata_fields: [] }, counts: { metadata_fields: 0 },+ }) }, { readOnly: true });+ const filter = host.querySelector('[aria-label="复核筛选"]');+ expect(filter?.querySelector('[aria-label="复核状态"]')).toBeTruthy();+ expect(buttonIn(filter!, '全选本页')).toBeNull();+ await click(stateNamed(filter!, '已忽略'));+ expect(props.route).toHaveBeenLastCalledWith({ category: '', queue: 'ignored' });+ expect(host.textContent).toContain('此分类没有已忽略项目');+ expect(filter?.querySelector('[aria-label="复核状态"]')).toBeTruthy();+});+it('批量状态移动只采用成功项,失败行和其他类别保持不变', () => {queryClient.setQueryData(REVIEW_KEY, review());settleReviewRows('metadata_fields', ['row-1', 'row-2'], 'rejected');diff --git a/web/dist/peach-app.js b/web/dist/peach-app.jsindex eb21fa237..32081a374 100644--- a/web/dist/peach-app.js+++ b/web/dist/peach-app.js@@ -2,7 +2,7 @@(function() {try {var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "80067394-1ff7-46c5-9630-4ba7b43dd0ab", e._sentryDebugIdIdentifier = "sentry-dbid-80067394-1ff7-46c5-9630-4ba7b43dd0ab");+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "c50c47f5-d20a-4a69-a329-3205c0a6f223", e._sentryDebugIdIdentifier = "sentry-dbid-c50c47f5-d20a-4a69-a329-3205c0a6f223");} catch {}})();var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, n) => {@@ -75224,7 +75224,7 @@ async function v6(e, t) {if (r.status === "rejected") throw r.reason;if (n.status === "rejected") throw n.reason;}-var y6 = _6(() => import("./peach-app.jav-page-C5uPjDXP.js")), b6 = _6(() => import("./peach-app.stats-page-BD7bt_Ub.js")), x6 = _6(() => import("./peach-app.taste-page-TP-o8aAE.js")), S6 = _6(() => import("./peach-app.review-page-Bl5-DKpD.js")), C6 = _6(() => import("./peach-app.data-cleanup-page-Ctwipl6H.js")), w6 = _6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), T6 = _6(() => import("./peach-app.quality-goals-page-DwyqtX3v.js")), E6 = _6(() => import("./peach-app.scraping-page-Ddbx11Bn.js")), D6 = _6(async () => {+var y6 = _6(() => import("./peach-app.jav-page-C5uPjDXP.js")), b6 = _6(() => import("./peach-app.stats-page-BD7bt_Ub.js")), x6 = _6(() => import("./peach-app.taste-page-TP-o8aAE.js")), S6 = _6(() => import("./peach-app.review-page-i2-5ODRS.js")), C6 = _6(() => import("./peach-app.data-cleanup-page-Ctwipl6H.js")), w6 = _6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), T6 = _6(() => import("./peach-app.quality-goals-page-DwyqtX3v.js")), E6 = _6(() => import("./peach-app.scraping-page-Ddbx11Bn.js")), D6 = _6(async () => {let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-Bji43uG_.js"), import("./peach-app.diagnostics-page-CZQmu5mE.js")]);return {ConfigurationPage: e,@@ -80445,4 +80445,4 @@ if (!$9) throw Error("主界面宿主缺失");cFe($9);export { jI as $2ec61d1d4f780267$export$a8a3e93435678ff9, zI as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, nR as $542a13ca2fa5b484$export$5b6b19405a83ff9d, RT as $72abaeab4d80592f$export$78efe591171d7d45, JR as $76d00c5a4edb230a$export$76ccd210b9029917, GR as $76d00c5a4edb230a$export$816b5d811295e6bc, ZR as $76d00c5a4edb230a$export$b59bdbef9ce70de2, $R as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, WR as $76d00c5a4edb230a$export$f850895b287ef28e, yfe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, vfe as $b4f18e3395fe64d7$export$3e41faf802a29e71, hfe as $b4f18e3395fe64d7$export$b2539bed5023c21c, rz as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Sfe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, Tw as $ea3928288112382f$export$439d29a4e110a164, hR as $f2ff30fde7b014be$export$3ddf2d174ce01153, SR as $fe21c36db05242bb$export$a98f0dcb43a68a25, CR as $fe21c36db05242bb$export$d7b12c4107be0d61, ipe as $l, oA as ACCENTS, HTe as AMANE_BRIDGE_CHECK_URL, X$ as AMANE_BRIDGE_KEY, UTe as AMANE_BRIDGE_REBUILD_URL, Un as ApiError, MW as ArtSlot, q as Button, oI as ButtonLink, ppe as Bx, $t as CLOUD_LOCATIONS, X1 as CLOUD_PROXY_HELP, Or as COLUMN_SORT, c1 as CONFIGURATION_KEY, qY as CONFIGURATION_URL, WTe as COOKIE_TEXT_LIMIT, Y$ as COVER_JOB_KEY, ji as CREDENTIAL_STATE, G$ as CUSTOM_SOURCES_KEY, W$ as CUSTOM_SOURCES_URL, rV as Checkbox, nV as CheckboxGlyph, qB as ChevronSortDown, sZ as Chip, q2 as CloudDownloadDialog, KH as CollapseChevron, GH as CollapseRegion, f$ as CollectionSummary, xbe as DEFAULT_CATEGORY, qn as DEFAULT_SORT, jQ as DIAGNOSTICS_KEY, bxe as DIRECTORY_TEMPLATE_ERROR, j0 as DISCOVERY_SORTS, V2 as DOWNLOADS_KEY, B2 as DOWNLOADS_URL, pY as DUPLICATES_KEY, JJ as DataTableFooter, WJ as DataTableFrame, qJ as DataTableSort, QH as Disclosure, $Oe as DownloadsPanel, Yfe as E3, Sbe as ENTITY_REVIEW_KINDS, J1 as ENTRY_LINKS_HELP, Y1 as ENTRY_LINKS_HINT, spe as Ea, wpe as EmptyFocusButton, Fz as EmptyState, XH as ErrorText, oge as ExternalLink, Cr as FEEDS_KEY, tX as FEED_SCHEDULE_KEY, QAe as FLOW_LABEL_X, R3 as FLOW_VIEWBOX, xr as FOLLOW_CHECK_KEY, br as FOLLOW_CREDENTIALS_KEY, N8 as FOLLOW_INITIAL_RANGE_OPTIONS, yr as FOLLOW_MANAGE_KEY, FZ as FOLLOW_MANAGE_NAV, Sr as FOLLOW_RESOLVE_KEY, eX as FOLLOW_SCHEDULE_KEY, cge as Fact, sge as FactList, ZH as FieldLabel, L$ as Fieldset, I$ as FieldsetTitle, XF as FilterGlass, ZF as FilterGlassRows, YF as FilterIconButton, $F as FilterPill, age as Footer, yz as Gg, tI as GlassPill, YH as Help, Ez as HintText, WAe as IDLE_POLL_MS, ube as IDLE_REPAIR, WF as IconButton, jz as Input, Az as InputBase, TA as JAV_LAYOUTS, N0 as JAV_RECOMMENDATION_GRID, wX as JUNK_KEY, Z3 as JavHeader, ibe as KEEP_LABELS, Tr as LAYOUTS, q1 as LIBRARY_FOLDER_HELP, uH as LIBRARY_PROCESSING_KEY, zY as LINKS_KEY, BY as LINK_CHECK_KEY, Kbe as LINK_KINDS, VY as LINK_PRUNE_KEY, Rn as LOC, Tz as Label, B$ as LibraryProcessingCard, Qz as LibraryShortcuts, EH as LinkButton, BH as LoadingDots, Zfe as M6, Zbe as MEDIA_PROCESSING_KEY, rX as MEDIA_PROCESSING_URL, vY as MEDIA_REPAIR_KEY, _Y as MEDIA_REPAIR_URL, tr as MEDIA_SOURCES_KEY, Qo as MEDIA_SOURCE_ICONS, Zt as MEDIA_SOURCE_OPTIONS, ZB as MENU_ITEM, QB as MENU_ITEM_INTERACTIVE, XB as MENU_POPOVER_SURFACE, AH as MenuDialog, OG as MixCard, Mz as ModalFrame, my as MotionConfigContext, wz as NR, Pz as Note, bpe as OA, oX as ORGANIZE_KEY, lX as ORPHAN_RECORDS_KEY, vz as OV, dz as P7, iTe as PHASES, JY as PICK_FOLDER_URL, H$ as PLAYLISTS_KEY, WEe as POLICY_COLUMNS, KEe as POLICY_COVER_NOTE, GEe as POLICY_MATRIX, K1 as POLICY_SUMMARY, KJ as Pagination, z$ as PathLine, zle as PillTab, hF as PillTabList, HH as Progress, CY as QUALITY_GOALS_KEY, A$ as REPAIR_CARD_TEXT, yY as REPAIR_LIBRARIES_KEY, mX as RESOURCE_APPLY_KEY, pX as RESOURCE_SCAN_KEY, _Te as RESULT_PANEL, vTe as RESULT_SECTION, bbe as REVIEW_CATEGORIES, CX as REVIEW_COUNTS_KEY, Cbe as REVIEW_DECISION_LABELS, EY as REVIEW_KEY, DY as REVIEW_LABELS, kY as REVIEW_QUEUES, AY as REVIEW_QUEUE_LABELS, jW as RetryNote, ype as Rf, nge as Rows, BTe as SCRAPING_CHECK_URL, q$ as SCRAPING_COVER_URL, J$ as SCRAPING_KEY, zTe as SCRAPING_SETTINGS_URL, FU as SEGMENT, PU as SEGMENTED_TRACK, $Y as SETTINGS_KEY, YY as SETTINGS_URL, Jn as SORT_DEFAULT_DIR, Kn as SORT_OPTIONS, en as SOURCE_LABELS, l3 as STATS_KEY, tge as Section, ige as SectionSkeleton, NU as SegmentedRadioGroup, Qge as SegmentedTabList, lW as Segments, GJ as Select, EU as Select$1, f1 as SelectField, DU as SelectItem, tY as SelectionActions, Rk as SelectionDock, nY as SelectionPopover, qH as SettingsCard, ege as SettingsRow, JH as SettingsSectionLabel, fge as SiteLabel, BU as SortDirectionIcon, fW as SortKeys, mQ as SourceAvatar, nU as SourceLabel, $H as SourceMark, rge as Stack, R$ as StatusLabel, P2 as Switch, wF as TASKS_KEY, NAe as TASTE_REFRESH_KEY, PAe as TASTE_WINDOWS, nX as THUMBNAIL_JOBS_KEY, EX as TRASH_KEY, lue as TRIGGER_LABELS, FJ as Table, rY as TableColumnControls, iY as TableColumnResizer, oY as TableSelectionHeader, t$ as TagManager, UH as TaskProgress, Oz as TextField, Dz as TextFieldContext, _z as Un, g$ as WANTS_KEY, r4 as WantMagnets, gp as WithPromise, fz as Wt, gz as Xc, Cz as Xf, $fe as Xt, Xfe as _8, o as __commonJSMin, s as __exportAll, l as __toESM, vpe as aB, ci as addAlias, si as addSource, v$ as addWant, z as apiGet, B as apiSend, yA as appSettingsStore, zxe as applyConfirmText, SX as applyLeftovers, Rxe as applyPlanText, Vxe as applyText, CA as applyTheme, $g as asNumber, Dxe as attachOrphan, Wr as authorAvatar, Kr as authorGroups, Ur as authorInitial, Hr as authorName, Cq as autoResetPageIndex, Qa as avatarInner, h3 as bandRows, xxe as baseName, lbe as batchOperate, Uk as boundedPreference, obe as bulkCloudPreferences, zz as busyProps, _pe as cB, lke as cachedMagnetStates, op as calcGeneratorVelocity, Abe as canApprove, Af as cancelFrame, Mxe as candidateText, zH as cardClass, RA as cardRatio, hz as cc, Di as checkEvidenceGap, Ei as checkFailures, _i as checkFeeds, Xbe as checkLine, wi as checkReceipt, Ti as checkSummary, KTe as checkText, Oi as checkedText, eG as clickedBlank, Qye as cloudLocations, D0 as cloudProxySkeleton, Kx as clsx, upe as cn, mh as collectMotionValues, Uq as columnVisibilityFeature, AJ as column_getCanSort, EJ as column_getSortFn, Obe as commonReviewSources, sV as configurationSection, RAe as configureTasteBrowser, Hc as confirmModal, aq as copyInstancePropertiesWithoutMemos, Ga as coverUrl, Pq as createColumnHelper, NTe as createPlaylist, Mi as credentialDone, C0 as credentialsSkeleton, zbe as currentReviewRow, K as cx, xz as dZ, Ibe as decisionPayload, Lbe as decisionReceipt, Fbe as defaultChoice, FTe as deletePlaylist, x as diagnosticHeaders, G1 as diagnosticsSkeleton, fTe as discoveryArtwork, C$ as discoveryKey, gDe as discoveryScore, nbe as distinctName, Si as dropSources, gpe as du, sbe as duplicateVictims, jF as elapsedText, Za as entityFaceImg, gn as entityPath, Lr as errorHeadline, Gn as errorMessage, R as esc, Sq as expandRowModel, cz as f1, Ir as feedIntervalText, $$ as fetchAmaneBridge, ei as fetchCheckJob, l1 as fetchConfiguration, Q$ as fetchCoverJob, $r as fetchCredentials, K$ as fetchCustomSources, MQ as fetchDiagnostics, w$ as fetchDiscoveries, hY as fetchDuplicates, iue as fetchEarlier, exe as fetchFeedSchedule, mi as fetchFeeds, Qr as fetchFollow, $be as fetchFollowSchedule, OX as fetchJunkSummary, WY as fetchLinkCheck, GY as fetchLinkPrune, UY as fetchLinkStats, Qbe as fetchMediaProcessing, bY as fetchMediaRepair, nr as fetchMediaSources, sX as fetchOrganize, pxe as fetchOrganizeExample, uX as fetchOrphanRecords, pi as fetchPending, U$ as fetchPlaylists, wY as fetchQualityGoals, xY as fetchRepairLibraries, ti as fetchResolveJob, gX as fetchResourceApply, hX as fetchResourceScan, IY as fetchReview, DX as fetchReviewCounts, iX as fetchSettings, Z$ as fetchSources, u3 as fetchStats, ni as fetchSuggestions, EF as fetchTasks, F3 as fetchTaste, zAe as fetchTasteJob, txe as fetchThumbnailJobs, kX as fetchTrashSummary, _$ as fetchWants, Ebe as filterReviewRows, In as firstGrapheme, IK as flexRender, eje as flowGraph, tje as flowLabel, $ke as fmtCount, An as fmtDur, Mn as fmtSize, vue as foldRoutine, yi as followFeedByName, wr as followSuggestKey, bue as followupDetail, kf as frame, Bfe as g4, Kq as getDefaultPaginationState, LA as gridLayout, Gr as groupByAuthor, _ue as groupFollowups, NY as groupReviewRows, Ixe as hasChanges, _X as hasResourceRoots, OF as hasResultProblems, GAe as historySpan, lz as i2, UAe as importTasteExport, w0 as indexersSkeleton, Qf as interpolate, b$ as invalidateWants, AF as isActive, Fr as isBroken, kr as isLayout, zh as isMotionValue, OY as isReviewCategory, yue as isRoutine, T0 as javBrowserSkeleton, F0 as javContentSkeleton, AA as javLayout, P0 as javTagSkeleton, Kxe as junkBreakdown, ITe as keepPlaylist, Ae as keepPreviousData, Yr as keepSelected, d3 as known, Wfe as l7, gue as latestOfKind, dAe as lengthRows, ar as localTime, vi as lookupFeedActor, qfe as m7, bz as mM, ln as mapLimit, fi as markItem, g3 as max, lAe as mediumRows, aue as mergeFinished, _3 as min, Wbe as mirrorText, pbe as missingToolText, gY as mixedCloudPreferences, RF as momentText, sb as motion, gh as motionValue, Cxe as organizeOutcome, X0 as overlayHost, Ar as pageSizeOf, Jr as pageWindow, Zn as paginationRange, xi as patchSource, YV as peachHistory, YV as peachHistory$1, Pbe as pendingGenres, tAe as percentText, gxe as pickOrganizeFolder, Sxe as planSummary, f3 as playedFor, rAe as playedItemUrl, TF as pollInterval, As as popCount, MTe as posterUrl, XW as previewLibraryColor, hxe as previewOrganize, gbe as previewUrl, hue as problemDestination, MF as progressText, tU as providerIcon, Ybe as pruneText, yX as purgeCount, Oxe as purgeOrphan, Sz as pv, hpe as qE, V as queryClient, uz as r2, ZAe as radarRows, oAe as radialArc, sAe as radialBarSize, aAe as radialCeiling, iAe as radialSlices, rM as randomId, YAe as rankDetail, XAe as rankShares, m3 as reachedShare, NF as readableErrorHeadline, _De as recommendationScore, Bbe as recordGenre, Axe as recordsText, LTe as recreatePlaylist, ATe as refreshPlaylists, Sl as relayoutCovers, Ci as reloadFollowManage, Ube as reloadReview, YEe as rememberShape, vxe as rememberTemplates, li as removeAlias, gi as removeFeed, oi as removeSource, HAe as removeTasteSource, y$ as removeWants, ui as renameAliasGroup, PTe as renamePlaylist, pAe as replayRows, ie as require_jsx_runtime, A as require_react, te as require_react_dom, tq as require_with_selector, sTe as resetWants, Xn as resolveFollowSort, fp as resolveStartTime, jTe as resumeAssetId, Tbe as reviewGroupingOptions, MY as reviewQueueData, jY as reviewQueueOf, Gxe as reviewSummary, Dbe as reviewWindow, Mbe as rowEvidence, FY as rowFieldName, $q as rowPaginationFeature, bJ as rowSelectionFeature, NJ as rowSortingFeature, PY as rowSubject, Nbe as rowTags, jbe as rowTitle, Vfe as s5, di as saveCredential, Lxe as scanLine, oxe as schedulePollInterval, lTe as searchNote, kbe as selectReviewRange, Xr as selectionState, hi as setFeedEnabled, ai as setSourceEnabled, dV as settingsPath, Hbe as settleReviewRows, tbe as sharedNamePrefix, XV as shellNavigate, b8 as showToast, Sn as siteMarkUrl, pq as skipFirstRun, pF as sortCx, Mr as sortLabel, tn as sourceDefaultCost, Ai as sourceIconUrl, Bxe as sourceMeta, xs as spinnerHtml, Yf as spring, Lz as spriteGlyph, ri as startCheck, qbe as startLinkCheck, Jbe as startLinkPrune, _xe as startOrganize, ii as startResolve, Pxe as startResourceApply, Nxe as startResourceScan, VAe as startTasteRefresh, due as statusLabel, fbe as statusLine, Pr as statusText, zA as storeJavLayout, Rbe as submitDecision, BF as summaryItems, Fq as tableFeatures, mq as tableMemo, qr as tableRows, mue as taskIssues, I3 as tasteDate, qAe as tasteDimensions, KAe as tasteHours, P3 as tasteKey, IAe as tasteRefetchInterval, LAe as tasteTime, yF as textLang, ud as time, rpe as tl, Zr as toggleGroup, L3 as topScores, ope as uo, DH as useAction, AZ as useBackgroundJob, yU as useClientUpdates, Su as useConstant, qF as useHorizontalScroller, Cu as useIsomorphicLayoutEffect, QW as useLibraryTints, It as useMutation, iV as useOverlayScrollbar, Ft as useQuery, oe as useQueryClient, $y as useReducedMotion, axe as useRunSchedule, rxe as useSaveFollowSchedule, aX as useSaveSettings, sxe as useSaveThumbnailMode, PJ as useTable, ZJ as useTablePreferences, cbe as victimBytes, cTe as wantName, nAe as watchNote, p3 as watchedShare, lc as wireHorizontalScroller, yxe as withOrganizeJob };-//# debugId=80067394-1ff7-46c5-9630-4ba7b43dd0ab\ No newline at end of file+//# debugId=c50c47f5-d20a-4a69-a329-3205c0a6f223\ No newline at end of filediff --git a/web/dist/peach-app.review-page-Bl5-DKpD.js b/web/dist/peach-app.review-page-i2-5ODRS.jssimilarity index 56%rename from web/dist/peach-app.review-page-Bl5-DKpD.jsrename to web/dist/peach-app.review-page-i2-5ODRS.jsindex d20950443..55bcb7c28 100644--- a/web/dist/peach-app.review-page-Bl5-DKpD.js+++ b/web/dist/peach-app.review-page-i2-5ODRS.js@@ -1,37 +1,60 @@(function() {try {var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "4b0521d5-ac52-4070-85f4-af5c445c7d99", e._sentryDebugIdIdentifier = "sentry-dbid-4b0521d5-ac52-4070-85f4-af5c445c7d99");+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "b5865f49-d9fa-4fba-8cef-823a4056c0b4", e._sentryDebugIdIdentifier = "sentry-dbid-b5865f49-d9fa-4fba-8cef-823a4056c0b4");} catch {}})();-import { $b4f18e3395fe64d7$export$3d96ec278d3efce4 as e, $b4f18e3395fe64d7$export$3e41faf802a29e71 as t, $b4f18e3395fe64d7$export$b2539bed5023c21c as n, $ea3928288112382f$export$439d29a4e110a164 as r, $fe21c36db05242bb$export$a98f0dcb43a68a25 as i, $fe21c36db05242bb$export$d7b12c4107be0d61 as a, Button as o, ButtonLink as s, Checkbox as c, CheckboxGlyph as l, Chip as u, DEFAULT_CATEGORY as d, ENTITY_REVIEW_KINDS as f, Ea as ee, EmptyState as p, ExternalLink as m, Gg as te, InputBase as h, Note as g, PillTab as _, PillTabList as v, REVIEW_CATEGORIES as y, REVIEW_DECISION_LABELS as b, REVIEW_KEY as ne, REVIEW_LABELS as re, REVIEW_QUEUES as ie, REVIEW_QUEUE_LABELS as x, Select as S, SelectItem as C, SelectionActions as w, SelectionDock as T, TextField as E, Wt as D, __toESM as O, avatarInner as ae, busyProps as k, canApprove as oe, cardClass as A, commonReviewSources as j, currentReviewRow as se, decisionPayload as M, decisionReceipt as ce, defaultChoice as le, errorMessage as N, fetchReview as ue, filterReviewRows as de, groupReviewRows as fe, isReviewCategory as pe, l7 as me, m7 as he, mirrorText as ge, paginationRange as P, pendingGenres as _e, recordGenre as F, reloadReview as ve, require_jsx_runtime as I, require_react as ye, reviewGroupingOptions as be, reviewQueueData as xe, reviewQueueOf as Se, reviewWindow as Ce, rowEvidence as we, rowFieldName as Te, rowSubject as Ee, rowTags as De, rowTitle as Oe, selectReviewRange as ke, settleReviewRows as Ae, spinnerHtml as L, submitDecision as je, useMutation as Me, useOverlayScrollbar as R, useQuery as Ne } from "./peach-app.js";-import { Page as Pe } from "./peach-app.page-QAncjzM1.js";-import { LEGACY_AVATAR_IMG as z } from "./peach-app.legacy-avatar-NSITxLRS.js";-import { PillAriaTabList as Fe } from "./peach-app.pill-aria-tab-list-BMY1ZEv1.js";+import { $b4f18e3395fe64d7$export$3d96ec278d3efce4 as e, $b4f18e3395fe64d7$export$3e41faf802a29e71 as t, $b4f18e3395fe64d7$export$b2539bed5023c21c as n, $ea3928288112382f$export$439d29a4e110a164 as r, $fe21c36db05242bb$export$a98f0dcb43a68a25 as i, $fe21c36db05242bb$export$d7b12c4107be0d61 as a, Button as o, ButtonLink as s, Checkbox as c, CheckboxGlyph as l, Chip as u, DEFAULT_CATEGORY as d, ENTITY_REVIEW_KINDS as f, Ea as ee, EmptyState as p, ExternalLink as m, Gg as te, InputBase as h, Note as g, PillTab as _, PillTabList as v, REVIEW_CATEGORIES as y, REVIEW_DECISION_LABELS as b, REVIEW_KEY as ne, REVIEW_LABELS as x, REVIEW_QUEUES as S, REVIEW_QUEUE_LABELS as C, Select as w, SelectItem as T, SelectionActions as E, SelectionDock as D, TextField as O, Wt as k, __toESM as A, avatarInner as j, busyProps as M, canApprove as re, cardClass as N, commonReviewSources as P, currentReviewRow as ie, decisionPayload as F, decisionReceipt as ae, defaultChoice as oe, errorMessage as I, fetchReview as se, filterReviewRows as ce, groupReviewRows as le, isReviewCategory as ue, l7 as de, m7 as fe, mirrorText as pe, paginationRange as L, pendingGenres as me, recordGenre as R, reloadReview as he, require_jsx_runtime as ge, require_react as _e, reviewGroupingOptions as ve, reviewQueueData as ye, reviewQueueOf as be, reviewWindow as xe, rowEvidence as Se, rowFieldName as Ce, rowSubject as we, rowTags as z, rowTitle as B, selectReviewRange as Te, settleReviewRows as Ee, spinnerHtml as V, submitDecision as De, useMutation as Oe, useOverlayScrollbar as ke, useQuery as Ae } from "./peach-app.js";+import { Page as je } from "./peach-app.page-QAncjzM1.js";+import { LEGACY_AVATAR_IMG as H } from "./peach-app.legacy-avatar-NSITxLRS.js";+import { PillAriaTabList as Me } from "./peach-app.pill-aria-tab-list-BMY1ZEv1.js";// src/react/review/bulk-toolbar.tsx-var B = /* @__PURE__ */ O(ye(), 1), V = I();-function Ie(e) {- let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: s, pageKeys: c, selected: l, onSelected: u, selectedRows: d, metadata: f, approvable: ee, busy: p, feedback: m, onUnifySource: te, onRun: h, queueView: g = "pending" } = e, _ = c.filter((e) => l.has(e)), v = _.length > 0 && _.length === c.length, y = j(d), b = f && d.some((e) => (e.candidates?.length || 0) > 1), ne = y.length ? "统一选择来源" : "所选项目无共同来源";- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {+var U = /* @__PURE__ */ A(_e(), 1), W = ge();+function Ne(e) {+ let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: s, pageKeys: c, selected: l, onSelected: u, selectedRows: d, metadata: f, approvable: ee, busy: p, feedback: m, onUnifySource: te, onRun: h, queueView: g = "pending", queueCounts: y, onQueueChange: b, locked: ne } = e, x = c.filter((e) => l.has(e)), E = x.length > 0 && x.length === c.length, O = P(d), k = f && d.some((e) => (e.candidates?.length || 0) > 1), A = O.length ? "统一选择来源" : "所选项目无共同来源";+ return /* @__PURE__ */ (0, W.jsxs)(W.Fragment, { children: [/* @__PURE__ */ (0, W.jsxs)("div", {role: "group","aria-label": "复核筛选","data-review-filter": !0,"data-glass-pane": "",className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",- children: [- /* @__PURE__ */ (0, V.jsx)(S, {+ children: [/* @__PURE__ */ (0, W.jsx)(v, {+ "aria-label": "复核状态",+ "data-pill-nav": "",+ className: "flex max-w-full flex-nowrap gap-1 overflow-x-auto",+ children: S.map((e) => /* @__PURE__ */ (0, W.jsxs)(_, {+ variant: "gray",+ isSelected: g === e,+ disabled: p,+ onSelect: () => {+ e !== g && b(e);+ },+ children: [+ /* @__PURE__ */ (0, W.jsx)("span", {+ "data-copy-key": `review.queue.${e}`,+ children: C[e]+ }),+ " ",+ /* @__PURE__ */ (0, W.jsx)("span", {+ className: "tabular-nums text-caption-1-medium text-text-secondary",+ children: y ? y[e].toLocaleString() : "…"+ })+ ]+ }, e))+ }), c.length ? /* @__PURE__ */ (0, W.jsxs)(W.Fragment, { children: [+ /* @__PURE__ */ (0, W.jsx)(w, {"aria-label": "筛选分组方式",size: "sm",selectedKey: n,onSelectionChange: (e) => {e !== null && r(String(e));},- children: t.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(C, {+ children: t.map(([e, t]) => /* @__PURE__ */ (0, W.jsx)(T, {id: e,children: t}, e))}),- i.length > 1 ? /* @__PURE__ */ (0, V.jsxs)(S, {+ i.length > 1 ? /* @__PURE__ */ (0, W.jsxs)(w, {"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",size: "sm",prefix: "分类",@@ -39,84 +62,84 @@ function Ie(e) {onSelectionChange: (e) => {e !== null && s(String(e) === "*" ? "" : String(e));},- children: [/* @__PURE__ */ (0, V.jsx)(C, {+ children: [/* @__PURE__ */ (0, W.jsx)(T, {id: "*",children: "全部"- }), i.map((e) => /* @__PURE__ */ (0, V.jsx)(C, {+ }), i.map((e) => /* @__PURE__ */ (0, W.jsx)(T, {id: e.key,children: `${e.title} · ${e.rows.length}`}, e.key))]}) : null,- /* @__PURE__ */ (0, V.jsx)(o, {+ ne ? null : /* @__PURE__ */ (0, W.jsx)(o, {variant: "secondary",size: "small",- leadingIcon: me,- "aria-pressed": v,+ leadingIcon: de,+ "aria-pressed": E,disabled: p || !c.length,onClick: () => {let e = new Set(l);- for (let t of c) v ? e.delete(t) : e.add(t);+ for (let t of c) E ? e.delete(t) : e.add(t);u(e);},- children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"+ children: E ? "清空当前选择" : a ? "全选当前分类" : "全选本页"})- ]- }), /* @__PURE__ */ (0, V.jsxs)(T, {+ ] }) : null]+ }), /* @__PURE__ */ (0, W.jsxs)(D, {label: "复核所选项目",- visible: l.size > 0,+ visible: !ne && l.size > 0,count: `已选 ${l.size} 项`,children: [- b && g !== "ignored" ? /* @__PURE__ */ (0, V.jsxs)(S, {+ k && g !== "ignored" ? /* @__PURE__ */ (0, W.jsxs)(w, {"aria-label": "统一选择来源",size: "sm",selectedKey: "",- isDisabled: p || !y.length,+ isDisabled: p || !O.length,onSelectionChange: (e) => {e !== null && e !== "" && te(String(e));},- children: [/* @__PURE__ */ (0, V.jsx)(C, {+ children: [/* @__PURE__ */ (0, W.jsx)(T, {id: "",- children: ne- }), y.map((e) => /* @__PURE__ */ (0, V.jsx)(C, {+ children: A+ }), O.map((e) => /* @__PURE__ */ (0, W.jsx)(T, {id: e,children: e}, e))]}) : null,- g === "ignored" ? null : /* @__PURE__ */ (0, V.jsx)(o, {+ g === "ignored" ? null : /* @__PURE__ */ (0, W.jsx)(o, {variant: "ghost",size: "small",disabled: p || !l.size,onClick: () => h("rejected"),children: "忽略所选"}),- g === "pending" ? /* @__PURE__ */ (0, V.jsx)(o, {+ g === "pending" ? /* @__PURE__ */ (0, W.jsx)(o, {variant: "secondary",size: "small",disabled: p || !l.size,onClick: () => h("skipped"),children: "稍后处理所选"- }) : /* @__PURE__ */ (0, V.jsx)(o, {+ }) : /* @__PURE__ */ (0, W.jsx)(o, {variant: g === "ignored" ? "primary" : "secondary",size: "small",disabled: p || !l.size,onClick: () => h("restore"),children: "恢复所选"}),- g === "ignored" ? null : /* @__PURE__ */ (0, V.jsx)(o, {+ g === "ignored" ? null : /* @__PURE__ */ (0, W.jsx)(o, {variant: "primary",size: "small",disabled: p || !l.size || !ee,onClick: () => h("approved"),children: "通过所选"}),- /* @__PURE__ */ (0, V.jsx)(o, {+ /* @__PURE__ */ (0, W.jsx)(o, {variant: "ghost",size: "small",disabled: p,onClick: () => u(/* @__PURE__ */ new Set()),children: "取消选择"}),- m ? /* @__PURE__ */ (0, V.jsx)("p", {+ m ? /* @__PURE__ */ (0, W.jsx)("p", {role: "status",className: "w-full text-body-2-regular text-text-secondary",children: m@@ -125,7 +148,7 @@ function Ie(e) {})] });}// src/react/review/candidate-form.tsx-var H = {+var Pe = {title: "标题",original_title: "原标题",runtime: "来源时长",@@ -135,21 +158,21 @@ var H = {cover_url: "封面",screenshot_urls: "截图",trailer_url: "预告片"-}, U = "reviewgenretags";-function Le({ tags: e }) {- return e.length ? /* @__PURE__ */ (0, V.jsx)("datalist", {- id: U,- children: e.map((e) => /* @__PURE__ */ (0, V.jsx)("option", { value: e }, e))+}, G = "reviewgenretags";+function Fe({ tags: e }) {+ return e.length ? /* @__PURE__ */ (0, W.jsx)("datalist", {+ id: G,+ children: e.map((e) => /* @__PURE__ */ (0, W.jsx)("option", { value: e }, e))}) : null;}-function W({ candidate: e, selectable: t = !1 }) {+function Ie({ candidate: e, selectable: t = !1 }) {let n = Object.entries(e.catalog_evidence || {}).filter(([, e]) => e && e.display_value), r = e.content_id || e.provider_id;- return /* @__PURE__ */ (0, V.jsxs)("span", {+ return /* @__PURE__ */ (0, W.jsxs)("span", {className: "flex min-w-0 flex-1 flex-col",- children: [/* @__PURE__ */ (0, V.jsxs)("span", {+ children: [/* @__PURE__ */ (0, W.jsxs)("span", {className: "relative flex min-w-0 flex-col gap-0.5 px-4 py-3 group-hover:bg-background-primary-hover group-data-selected:bg-background-primary-hover",children: [- /* @__PURE__ */ (0, V.jsxs)("b", {+ /* @__PURE__ */ (0, W.jsxs)("b", {className: "text-body-2-medium text-text-secondary",children: [e.source,@@ -157,35 +180,35 @@ function W({ candidate: e, selectable: t = !1 }) {r ? ` · ID ${r}` : ""]}),- /* @__PURE__ */ (0, V.jsx)("span", {+ /* @__PURE__ */ (0, W.jsx)("span", {className: "text-body-medium break-words text-text-primary",children: e.display_value || ""}),- (e.warnings || []).map((e) => /* @__PURE__ */ (0, V.jsx)("i", {+ (e.warnings || []).map((e) => /* @__PURE__ */ (0, W.jsx)("i", {className: "text-body-2-regular text-status-yellow-text",children: e}, e)),- t ? /* @__PURE__ */ (0, V.jsx)("span", {+ t ? /* @__PURE__ */ (0, W.jsx)("span", {"aria-hidden": "true","data-candidate-choice": !0,className: "absolute top-4 right-4 inline-grid size-4 place-items-center rounded-full border border-border-checkbox-default bg-background-primary-default group-hover:border-border-checkbox-hover group-data-selected:border-border-focus-ring group-data-selected:bg-accent-600",- children: /* @__PURE__ */ (0, V.jsx)("span", { className: "size-1.5 rounded-full bg-text-white opacity-0 group-data-selected:opacity-100" })+ children: /* @__PURE__ */ (0, W.jsx)("span", { className: "size-1.5 rounded-full bg-text-white opacity-0 group-data-selected:opacity-100" })}) : null]- }), n.length ? /* @__PURE__ */ (0, V.jsx)("dl", {+ }), n.length ? /* @__PURE__ */ (0, W.jsx)("dl", {className: "flex flex-col gap-1 border-t border-separator-border bg-background-primary-default px-4 py-2.5",- children: n.map(([e, t]) => /* @__PURE__ */ (0, V.jsxs)("div", {+ children: n.map(([e, t]) => /* @__PURE__ */ (0, W.jsxs)("div", {className: "flex min-w-0 flex-wrap gap-x-2",children: [- /* @__PURE__ */ (0, V.jsx)("dt", {+ /* @__PURE__ */ (0, W.jsx)("dt", {className: "text-body-2-regular text-text-secondary",- children: H[e] || e+ children: Pe[e] || e}),- /* @__PURE__ */ (0, V.jsx)("dd", {+ /* @__PURE__ */ (0, W.jsx)("dd", {className: "min-w-0 text-body-2-regular break-words text-text-primary",children: t.display_value}),- (t.warnings || []).map((e) => /* @__PURE__ */ (0, V.jsx)("small", {+ (t.warnings || []).map((e) => /* @__PURE__ */ (0, W.jsx)("small", {className: "w-full text-caption-1-regular text-status-yellow-text",children: e}, e))@@ -194,56 +217,56 @@ function W({ candidate: e, selectable: t = !1 }) {}) : null]});}-function Re({ row: e, fieldName: t, value: n, onChange: r, locked: o }) {+function K({ row: e, fieldName: t, value: n, onChange: r, locked: o }) {let s = e.candidates || [];- return s.length ? s.length === 1 ? /* @__PURE__ */ (0, V.jsx)("div", {+ return s.length ? s.length === 1 ? /* @__PURE__ */ (0, W.jsx)("div", {className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",- children: /* @__PURE__ */ (0, V.jsx)(W, { candidate: s[0] })- }) : /* @__PURE__ */ (0, V.jsx)(i, {+ children: /* @__PURE__ */ (0, W.jsx)(Ie, { candidate: s[0] })+ }) : /* @__PURE__ */ (0, W.jsx)(i, {"aria-label": `${t || "资料"}的来源`,value: n,isDisabled: o,onChange: r,className: "flex flex-col gap-2",- children: s.map((e) => /* @__PURE__ */ (0, V.jsx)(a, {+ children: s.map((e) => /* @__PURE__ */ (0, W.jsx)(a, {value: e.candidate_key,className: "relative group flex cursor-pointer items-center gap-2 overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-button-active data-disabled:cursor-not-allowed",- children: /* @__PURE__ */ (0, V.jsx)(W, {+ children: /* @__PURE__ */ (0, W.jsx)(Ie, {candidate: e,selectable: !0})}, e.candidate_key))}) : null;}-function G({ genre: e, tags: t, locked: n, toast: r }) {- let [i, a] = (0, B.useState)(""), [s, c] = (0, B.useState)(""), l = Me({- mutationFn: (t) => F(e, t),+function Le({ genre: e, tags: t, locked: n, toast: r }) {+ let [i, a] = (0, U.useState)(""), [s, c] = (0, U.useState)(""), l = Oe({+ mutationFn: (t) => R(e, t),onSuccess: async (t, n) => {- t.ok ? (r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await ve()) : c(t.error || "服务端拒绝了这次收录");+ t.ok ? (r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await he()) : c(t.error || "服务端拒绝了这次收录");},- onError: (e) => c(N(e))+ onError: (e) => c(I(e))}), u = () => {let e = i.trim();e ? (c(""), l.mutate(e)) : c("先给它一个中文标签");};- return /* @__PURE__ */ (0, V.jsxs)("div", {+ return /* @__PURE__ */ (0, W.jsxs)("div", {className: "flex flex-wrap items-center gap-2",children: [- /* @__PURE__ */ (0, V.jsx)("b", {+ /* @__PURE__ */ (0, W.jsx)("b", {lang: "ja",className: "text-body-medium text-text-primary",children: e}),- /* @__PURE__ */ (0, V.jsx)(E, {+ /* @__PURE__ */ (0, W.jsx)(O, {"aria-label": `「${e}」收录成的中文标签`,value: i,onChange: a,maxLength: 40,isDisabled: n || l.isPending,className: "min-w-40 flex-1",- children: /* @__PURE__ */ (0, V.jsx)(h, {+ children: /* @__PURE__ */ (0, W.jsx)(h, {size: "small",- list: t.length ? U : void 0,+ list: t.length ? G : void 0,autoComplete: "off",placeholder: "中文标签",onKeyDown: (e) => {@@ -251,14 +274,14 @@ function G({ genre: e, tags: t, locked: n, toast: r }) {}})}),- /* @__PURE__ */ (0, V.jsx)(o, {+ /* @__PURE__ */ (0, W.jsx)(o, {variant: "secondary",size: "small",disabled: n || l.isPending,onClick: u,children: "收录"}),- /* @__PURE__ */ (0, V.jsx)(o, {+ /* @__PURE__ */ (0, W.jsx)(o, {variant: "secondary",size: "small",disabled: n || l.isPending,@@ -267,7 +290,7 @@ function G({ genre: e, tags: t, locked: n, toast: r }) {},children: "不是内容"}),- s ? /* @__PURE__ */ (0, V.jsx)("p", {+ s ? /* @__PURE__ */ (0, W.jsx)("p", {role: "status",className: "w-full text-body-2-regular text-text-error-primary",children: s@@ -275,22 +298,22 @@ function G({ genre: e, tags: t, locked: n, toast: r }) {]});}-function ze({ row: e, tags: t, locked: n, toast: r }) {- let i = _e(e);- return i.length ? /* @__PURE__ */ (0, V.jsxs)("div", {+function Re({ row: e, tags: t, locked: n, toast: r }) {+ let i = me(e);+ return i.length ? /* @__PURE__ */ (0, W.jsxs)("div", {role: "group","aria-label": "未收录 genre",className: "flex flex-col gap-2 rounded-surface border border-separator-border bg-background-primary-default px-4 py-3",- children: [/* @__PURE__ */ (0, V.jsx)("h5", {+ children: [/* @__PURE__ */ (0, W.jsx)("h5", {className: "text-body-2-medium text-text-secondary",children: `未收录 genre · ${i.length}`- }), /* @__PURE__ */ (0, V.jsx)("div", {+ }), /* @__PURE__ */ (0, W.jsx)("div", {role: "list",className: "flex flex-col",- children: i.map((e, i) => /* @__PURE__ */ (0, V.jsx)("div", {+ children: i.map((e, i) => /* @__PURE__ */ (0, W.jsx)("div", {role: "listitem",className: `py-3 first:pt-0 last:pb-0 ${i ? "border-t border-separator-border" : ""}`,- children: /* @__PURE__ */ (0, V.jsx)(G, {+ children: /* @__PURE__ */ (0, W.jsx)(Le, {genre: e,tags: t,locked: n,@@ -301,24 +324,24 @@ function ze({ row: e, tags: t, locked: n, toast: r }) {}) : null;}// src/react/review/review-evidence.tsx-var Be = (e = "") => /^https?:\/\//i.test(e) ? e : "", K = (e = "") => Be(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");-function q({ url: e }) {- let t = K(e || "");- return /* @__PURE__ */ (0, V.jsx)(Ve, { source: t }, t);+var q = (e = "") => /^https?:\/\//i.test(e) ? e : "", ze = (e = "") => q(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");+function Be({ url: e }) {+ let t = ze(e || "");+ return /* @__PURE__ */ (0, W.jsx)(Ve, { source: t }, t);}function Ve({ source: e }) {- let [t, n] = (0, B.useState)("idle");- return (0, B.useEffect)(() => {+ let [t, n] = (0, U.useState)("idle");+ return (0, U.useEffect)(() => {if (t !== "loading") return;let e = setTimeout(() => n("failed"), 3e4);return () => clearTimeout(e);- }, [t]), /* @__PURE__ */ (0, V.jsxs)("div", {+ }, [t]), /* @__PURE__ */ (0, W.jsxs)("div", {className: "relative flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",- children: [t === "loading" ? /* @__PURE__ */ (0, V.jsxs)("span", {+ children: [t === "loading" ? /* @__PURE__ */ (0, W.jsxs)("span", {role: "status",className: "absolute flex items-center gap-2 text-body-2-regular text-text-secondary",- children: [/* @__PURE__ */ (0, V.jsx)("span", { dangerouslySetInnerHTML: { __html: L("正在加载图片") } }), "正在加载图片"]- }) : null, e && (t === "loading" || t === "ready") ? /* @__PURE__ */ (0, V.jsx)("img", {+ children: [/* @__PURE__ */ (0, W.jsx)("span", { dangerouslySetInnerHTML: { __html: V("正在加载图片") } }), "正在加载图片"]+ }) : null, e && (t === "loading" || t === "ready") ? /* @__PURE__ */ (0, W.jsx)("img", {src: e,alt: "来源提供的备选图片",referrerPolicy: "no-referrer",@@ -326,48 +349,48 @@ function Ve({ source: e }) {className: `size-full object-contain ${t === "loading" ? "invisible" : ""}`,onLoad: () => n("ready"),onError: () => n("failed")- }) : e ? /* @__PURE__ */ (0, V.jsxs)("div", {+ }) : e ? /* @__PURE__ */ (0, W.jsxs)("div", {className: "flex flex-col items-center gap-2",- children: [t === "failed" ? /* @__PURE__ */ (0, V.jsx)("span", {+ children: [t === "failed" ? /* @__PURE__ */ (0, W.jsx)("span", {className: "text-body-2-regular text-text-secondary",children: "未取得来源图片"- }) : null, /* @__PURE__ */ (0, V.jsx)(o, {+ }) : null, /* @__PURE__ */ (0, W.jsx)(o, {variant: "secondary",size: "small","aria-label": t === "failed" ? "立即重试加载来源图片" : void 0,onClick: () => n("loading"),children: t === "failed" ? "立即重试" : "查看来源图片"})]- }) : /* @__PURE__ */ (0, V.jsx)("span", {+ }) : /* @__PURE__ */ (0, W.jsx)("span", {className: "text-body-2-regular text-text-secondary",children: "未取得来源图片"})]});}-function He({ asset: e, openItem: t }) {+function J({ asset: e, openItem: t }) {let n = e.name || "";- return /* @__PURE__ */ (0, V.jsxs)("div", {+ return /* @__PURE__ */ (0, W.jsxs)("div", {className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",- children: [/* @__PURE__ */ (0, V.jsxs)("button", {+ children: [/* @__PURE__ */ (0, W.jsxs)("button", {type: "button",onClick: () => t(e.id),className: "flex aspect-card-cover w-review-cover-narrow shrink-0 review-tight:w-review-cover cursor-pointer items-center justify-center overflow-hidden rounded-2lg bg-background-tertiary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",- children: [e.preview_url ? /* @__PURE__ */ (0, V.jsx)("img", {+ children: [e.preview_url ? /* @__PURE__ */ (0, W.jsx)("img", {src: e.preview_url,alt: "",loading: "lazy",className: "size-full object-cover"- }) : /* @__PURE__ */ (0, V.jsx)("span", {+ }) : /* @__PURE__ */ (0, W.jsx)("span", {className: "text-caption-1-regular text-text-secondary",children: "无封面"- }), /* @__PURE__ */ (0, V.jsx)(r, { children: `打开原视频 ${n}` })]- }), /* @__PURE__ */ (0, V.jsxs)("div", {+ }), /* @__PURE__ */ (0, W.jsx)(r, { children: `打开原视频 ${n}` })]+ }), /* @__PURE__ */ (0, W.jsxs)("div", {className: "flex min-w-0 flex-col items-start gap-1",- children: [/* @__PURE__ */ (0, V.jsx)("b", {+ children: [/* @__PURE__ */ (0, W.jsx)("b", {title: n,className: "w-full truncate text-body-medium text-text-primary",children: e.code || n || "原视频"- }), /* @__PURE__ */ (0, V.jsx)(o, {+ }), /* @__PURE__ */ (0, W.jsx)(o, {variant: "secondary",size: "small",leadingIcon: te,@@ -377,91 +400,91 @@ function He({ asset: e, openItem: t }) {})]});}-function J({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {- return /* @__PURE__ */ (0, V.jsxs)("div", {+function Y({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {+ return /* @__PURE__ */ (0, W.jsxs)("div", {className: "flex min-w-0 items-center gap-3",- children: [/* @__PURE__ */ (0, V.jsx)("button", {+ children: [/* @__PURE__ */ (0, W.jsx)("button", {type: "button","aria-label": `打开创作者页:${t}`,onClick: () => i(e, t),- className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${z}`,+ className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${H}`,dangerouslySetInnerHTML: { __html: r }- }), /* @__PURE__ */ (0, V.jsxs)("div", {+ }), /* @__PURE__ */ (0, W.jsxs)("div", {className: "flex min-w-0 flex-col items-start",- children: [/* @__PURE__ */ (0, V.jsx)("button", {+ children: [/* @__PURE__ */ (0, W.jsx)("button", {type: "button",onClick: () => i(e, t),className: "max-w-full cursor-pointer truncate text-body-medium text-text-primary underline-offset-2 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-border-focus-ring",children: t- }), n ? /* @__PURE__ */ (0, V.jsx)("small", {+ }), n ? /* @__PURE__ */ (0, W.jsx)("small", {className: "tabular-nums text-body-2-regular text-text-secondary",children: `${n.toLocaleString()} 部作品`}) : null]})]});}-function Y({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {- let c = Be(e.profile_url || ""), l = (e.preview_assets || []).slice(0, 6), u = Math.max(0, Number(e.video_count || e.videos || 0));- return /* @__PURE__ */ (0, V.jsxs)("section", {+function He({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {+ let c = q(e.profile_url || ""), l = (e.preview_assets || []).slice(0, 6), u = Math.max(0, Number(e.video_count || e.videos || 0));+ return /* @__PURE__ */ (0, W.jsxs)("section", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, V.jsx)("h5", {+ /* @__PURE__ */ (0, W.jsx)("h5", {className: "text-body-medium text-text-primary",children: `待确认人物:${e.babepedia_name || "未标注"}`}),- /* @__PURE__ */ (0, V.jsxs)("div", {+ /* @__PURE__ */ (0, W.jsxs)("div", {className: "flex flex-wrap items-center gap-2",- children: [c ? /* @__PURE__ */ (0, V.jsx)(s, {+ children: [c ? /* @__PURE__ */ (0, W.jsx)(s, {variant: "secondary",size: "small",- trailingIcon: D,+ trailingIcon: k,href: c,target: "_blank",rel: "noopener noreferrer",children: "来源资料"- }) : null, /* @__PURE__ */ (0, V.jsx)(o, {+ }) : null, /* @__PURE__ */ (0, W.jsx)(o, {variant: "secondary",size: "small",onClick: () => n("creator", e.creator || ""),children: `查看全部 ${u.toLocaleString()} 部作品`})]}),- /* @__PURE__ */ (0, V.jsx)(q, { url: e.preview_url }),- /* @__PURE__ */ (0, V.jsx)("p", {+ /* @__PURE__ */ (0, W.jsx)(Be, { url: e.preview_url }),+ /* @__PURE__ */ (0, W.jsx)("p", {className: "text-body-2-regular text-text-secondary",children: "通过后记录身份判断。"}),- l.length ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("h5", {+ l.length ? /* @__PURE__ */ (0, W.jsxs)(W.Fragment, { children: [/* @__PURE__ */ (0, W.jsx)("h5", {className: "text-body-medium text-text-primary",children: "本地作品样本"- }), /* @__PURE__ */ (0, V.jsx)("ul", {+ }), /* @__PURE__ */ (0, W.jsx)("ul", {className: "flex flex-col gap-1",- children: l.map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {+ children: l.map((e) => /* @__PURE__ */ (0, W.jsxs)("li", {className: "flex min-w-0 items-center gap-2",- children: [/* @__PURE__ */ (0, V.jsx)(o, {+ children: [/* @__PURE__ */ (0, W.jsx)(o, {variant: "ghost",size: "small",className: "min-w-0",onClick: () => t(e.id),- children: /* @__PURE__ */ (0, V.jsx)("span", {+ children: /* @__PURE__ */ (0, W.jsx)("span", {title: e.name,className: "block max-w-full truncate",children: e.name})- }), /* @__PURE__ */ (0, V.jsx)(o, {+ }), /* @__PURE__ */ (0, W.jsx)(o, {variant: "ghost",size: "small","aria-label": `打开 ${e.name} 的文件位置`,- ...k(i === e.id),+ ...M(i === e.id),onClick: () => r(e.id),children: "文件位置"})]}, e.id))- })] }) : /* @__PURE__ */ (0, V.jsx)("p", {+ })] }) : /* @__PURE__ */ (0, W.jsx)("p", {className: "text-body-2-regular text-text-secondary",children: "暂无本地作品样本,打开全部作品核对。"}),- a ? /* @__PURE__ */ (0, V.jsx)("p", {+ a ? /* @__PURE__ */ (0, W.jsx)("p", {role: "status",className: "text-body-2-regular text-text-error-primary",children: a@@ -470,7 +493,7 @@ function Y({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note});}function Ue({ assets: e, picked: t, onPicked: n, locked: i }) {- let [a, o] = (0, B.useState)(null), s = new Set(t), c = (t, r) => {+ let [a, o] = (0, U.useState)(null), s = new Set(t), c = (t, r) => {if (i) return;let c = new Set(s);if (r && a !== null) {@@ -482,10 +505,10 @@ function Ue({ assets: e, picked: t, onPicked: n, locked: i }) {}o(t), n(e.filter((e) => c.has(e.id)).map((e) => e.id));};- return /* @__PURE__ */ (0, V.jsxs)("div", {+ return /* @__PURE__ */ (0, W.jsxs)("div", {className: "flex flex-col gap-2",- children: [/* @__PURE__ */ (0, V.jsx)(w, {- prefix: /* @__PURE__ */ (0, V.jsx)("span", {+ children: [/* @__PURE__ */ (0, W.jsx)(E, {+ prefix: /* @__PURE__ */ (0, W.jsx)("span", {className: "tabular-nums text-body-2-regular text-text-secondary",children: `已选 ${s.size} / ${e.length}`}),@@ -498,26 +521,26 @@ function Ue({ assets: e, picked: t, onPicked: n, locked: i }) {disabled: i,onPress: () => n([])}]- }), /* @__PURE__ */ (0, V.jsx)("div", {+ }), /* @__PURE__ */ (0, W.jsx)("div", {className: "review-asset-grid gap-1.5",children: e.map((e, t) => {let n = s.has(e.id);- return /* @__PURE__ */ (0, V.jsxs)("button", {+ return /* @__PURE__ */ (0, W.jsxs)("button", {type: "button","aria-pressed": n,title: e.name,onClick: (e) => c(t, e.shiftKey),className: `relative aspect-card-cover cursor-pointer overflow-hidden rounded-surface bg-background-tertiary-default outline-none transition-opacity focus-visible:ring-2 focus-visible:ring-border-focus-ring ${n ? "opacity-100 ring-2 ring-border-button-active ring-inset" : "opacity-50"}`,children: [- /* @__PURE__ */ (0, V.jsx)("img", {+ /* @__PURE__ */ (0, W.jsx)("img", {src: `/poster?id=${e.id}&c=4`,alt: "",loading: "lazy",className: "size-full object-cover"}),- /* @__PURE__ */ (0, V.jsx)("span", {+ /* @__PURE__ */ (0, W.jsx)("span", {className: "absolute top-1 right-1",- children: /* @__PURE__ */ (0, V.jsx)(l, {+ children: /* @__PURE__ */ (0, W.jsx)(l, {size: "sm",state: {isSelected: n,@@ -528,7 +551,7 @@ function Ue({ assets: e, picked: t, onPicked: n, locked: i }) {}})}),- /* @__PURE__ */ (0, V.jsx)(r, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })+ /* @__PURE__ */ (0, W.jsx)(r, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })]}, e.id);})@@ -536,100 +559,100 @@ function Ue({ assets: e, picked: t, onPicked: n, locked: i }) {});}// src/react/review/review-card.tsx-var We = A({+var We = N({variant: "outlined",padding: "none",className: "flex flex-col gap-4 px-5 pt-4"-}), X = "flex min-h-6 min-w-0 items-center", Z = 2, Ge = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";-function Ke(e) {- let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: s, locked: l, busy: d, problem: m, genreTags: te, onDecide: h, handlers: g, queueView: _ = "pending" } = e, v = (0, B.useRef)(!1), y = R(), ne = R(), re = t === "metadata_fields", ie = f[t] || "", x = String(n.creator || "").trim(), S = !!ie && !!x, C = Oe(t, n), w = Te(t, n), T = Ee(t, n), E = we(n), D = De(n), O = oe(t, n), A = n.comparison_assets || [], j = n.preview_assets || [], se = b[n.decision || ""], M = A.length > 1 ? /* @__PURE__ */ (0, V.jsxs)("div", {+}), X = "flex min-h-6 min-w-0 items-center", Z = 2, Q = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";+function Ge(e) {+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: s, locked: l, busy: d, problem: m, genreTags: te, onDecide: h, handlers: g, queueView: _ = "pending" } = e, v = (0, U.useRef)(!1), y = ke(), ne = ke(), x = t === "metadata_fields", S = f[t] || "", C = String(n.creator || "").trim(), w = !!S && !!C, T = B(t, n), E = Ce(t, n), D = we(t, n), O = Se(n), k = z(n), A = re(t, n), N = n.comparison_assets || [], P = n.preview_assets || [], ie = b[n.decision || ""], F = N.length > 1 ? /* @__PURE__ */ (0, W.jsxs)("div", {className: "flex flex-col gap-3",- children: [A.slice(0, Z).map((e) => /* @__PURE__ */ (0, V.jsx)(He, {+ children: [N.slice(0, Z).map((e) => /* @__PURE__ */ (0, W.jsx)(J, {asset: e,openItem: g.openItem- }, e.id)), A.length > Z ? /* @__PURE__ */ (0, V.jsx)("p", {+ }, e.id)), N.length > Z ? /* @__PURE__ */ (0, W.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: `另有 ${(A.length - Z).toLocaleString()} 部对照作品`+ children: `另有 ${(N.length - Z).toLocaleString()} 部对照作品`}) : null]- }) : S ? /* @__PURE__ */ (0, V.jsx)(J, {- kind: ie,- name: x,+ }) : w ? /* @__PURE__ */ (0, W.jsx)(Y, {+ kind: S,+ name: C,works: Number(n.video_count || n.videos || 0),openEntity: g.openEntity,- avatar: ae(x, n.entity_id ? {+ avatar: j(C, n.entity_id ? {id: n.entity_id,has_image: !!n.has_image,image_version: n.image_version,avatar_focus: n.avatar_focus- } : null, null, ie)- }) : n.asset_id ? /* @__PURE__ */ (0, V.jsx)(He, {+ } : null, null, S)+ }) : n.asset_id ? /* @__PURE__ */ (0, W.jsx)(J, {openItem: g.openItem,asset: {id: n.asset_id,name: n.asset_name,preview_url: n.asset_preview_url}- }) : null, ce = re ? /* @__PURE__ */ (0, V.jsx)(Re, {+ }) : null, ae = x ? /* @__PURE__ */ (0, W.jsx)(K, {row: n,- fieldName: w,+ fieldName: E,value: r.candidateKey,onChange: (e) => i({...r,candidateKey: e}),locked: l- }) : t === "creator_tags" ? j.length ? /* @__PURE__ */ (0, V.jsx)(Ue, {- assets: j,+ }) : t === "creator_tags" ? P.length ? /* @__PURE__ */ (0, W.jsx)(Ue, {+ assets: P,picked: r.assets,locked: l,onPicked: (e) => i({...r,assets: e})- }) : /* @__PURE__ */ (0, V.jsx)(p, {+ }) : /* @__PURE__ */ (0, W.jsx)(p, {size: "compact",icon: ee,title: "这批作品尚未抽帧",children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按所选资料写入标签。`- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, V.jsx)(Y, {+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, W.jsx)(He, {row: n,openItem: g.openItem,openEntity: g.openEntity,onReveal: g.onReveal,revealing: g.revealing,note: g.revealNote- }) : /* @__PURE__ */ (0, V.jsx)(q, { url: n.preview_url }), le = S ? M : w ? /* @__PURE__ */ (0, V.jsxs)("h4", {+ }) : /* @__PURE__ */ (0, W.jsx)(Be, { url: n.preview_url }), oe = w ? F : E ? /* @__PURE__ */ (0, W.jsxs)("h4", {className: `${X} flex-wrap gap-2`,- children: [/* @__PURE__ */ (0, V.jsx)("span", {- title: w,+ children: [/* @__PURE__ */ (0, W.jsx)("span", {+ title: E,className: "flex max-w-full min-w-0 overflow-hidden rounded-md",- children: /* @__PURE__ */ (0, V.jsx)(u, {+ children: /* @__PURE__ */ (0, W.jsx)(u, {variant: "caption",color: "blue",- children: w+ children: E})- }), /* @__PURE__ */ (0, V.jsx)("span", {- title: T,+ }), /* @__PURE__ */ (0, W.jsx)("span", {+ title: D,className: "min-w-0 truncate text-body-medium text-text-primary",- children: T+ children: D})]- }) : /* @__PURE__ */ (0, V.jsx)("h4", {+ }) : /* @__PURE__ */ (0, W.jsx)("h4", {className: X,- children: /* @__PURE__ */ (0, V.jsx)("span", {- title: C,+ children: /* @__PURE__ */ (0, W.jsx)("span", {+ title: T,className: "min-w-0 truncate text-body-medium text-text-primary",- children: C+ children: T})});- return /* @__PURE__ */ (0, V.jsxs)("section", {- "aria-label": C,+ return /* @__PURE__ */ (0, W.jsxs)("section", {+ "aria-label": T,"data-review-key": n.item_key,- className: `${We} ${Ge(t)} overflow-hidden`,+ className: `${We} ${Q(t)} overflow-hidden`,children: [- /* @__PURE__ */ (0, V.jsxs)("header", {+ /* @__PURE__ */ (0, W.jsxs)("header", {className: "flex min-w-0 shrink-0 items-start gap-2",children: [- l ? null : /* @__PURE__ */ (0, V.jsx)("span", {+ l ? null : /* @__PURE__ */ (0, W.jsx)("span", {className: `${X} shrink-0`,onPointerDownCapture: (e) => {v.current = e.shiftKey;@@ -637,109 +660,109 @@ function Ke(e) {onKeyDownCapture: (e) => {v.current = e.shiftKey;},- children: /* @__PURE__ */ (0, V.jsx)(c, {+ children: /* @__PURE__ */ (0, W.jsx)(c, {isSelected: a,- "aria-label": `选择 ${C}`,+ "aria-label": `选择 ${T}`,onChange: (e) => s(v.current, e)})}),- /* @__PURE__ */ (0, V.jsx)("div", {+ /* @__PURE__ */ (0, W.jsx)("div", {className: "min-w-0 flex-1",- children: le+ children: oe}),- se ? /* @__PURE__ */ (0, V.jsx)(u, {+ ie ? /* @__PURE__ */ (0, W.jsx)(u, {variant: "caption",color: "neutral",- children: se+ children: ie}) : null]}),- /* @__PURE__ */ (0, V.jsx)("div", {+ /* @__PURE__ */ (0, W.jsx)("div", {className: "relative flex min-w-0 min-h-0 flex-1 flex-col",- children: /* @__PURE__ */ (0, V.jsxs)("div", {+ children: /* @__PURE__ */ (0, W.jsxs)("div", {ref: y,className: "flex min-w-0 min-h-0 flex-1 flex-col gap-3 overflow-y-auto",children: [- n.source_name ? /* @__PURE__ */ (0, V.jsx)("p", {+ n.source_name ? /* @__PURE__ */ (0, W.jsx)("p", {className: "text-body-2-regular text-text-secondary",children: `来源写法:${n.source_name}`}) : null,- !S && (n.board || n.assets) ? /* @__PURE__ */ (0, V.jsx)("p", {+ !w && (n.board || n.assets) ? /* @__PURE__ */ (0, W.jsx)("p", {className: "text-body-2-regular text-text-secondary",children: `对照文件:${Number(n.video_count || n.assets || 0).toLocaleString()}`}) : null,- !S && M ? M : null,- D.length || t === "creator_tags" ? /* @__PURE__ */ (0, V.jsx)("div", {+ !w && F ? F : null,+ k.length || t === "creator_tags" ? /* @__PURE__ */ (0, W.jsx)("div", {className: "flex flex-wrap gap-1",- children: D.length ? D.map((e) => /* @__PURE__ */ (0, V.jsx)(u, {+ children: k.length ? k.map((e) => /* @__PURE__ */ (0, W.jsx)(u, {variant: "caption",color: "soft",children: e- }, e)) : /* @__PURE__ */ (0, V.jsx)("small", {+ }, e)) : /* @__PURE__ */ (0, W.jsx)("small", {className: "text-body-2-regular text-text-secondary",children: "暂无待确认标签"})}) : null,- ce,- /* @__PURE__ */ (0, V.jsx)(ze, {+ ae,+ /* @__PURE__ */ (0, W.jsx)(Re, {row: n,tags: te,locked: l,toast: g.toast}),- !re && E ? /* @__PURE__ */ (0, V.jsx)("p", {+ !x && O ? /* @__PURE__ */ (0, W.jsx)("p", {className: "text-body-2-regular text-text-secondary wrap-anywhere",- children: E+ children: O}) : null]})}),- re && E ? /* @__PURE__ */ (0, V.jsx)("div", {+ x && O ? /* @__PURE__ */ (0, W.jsx)("div", {className: "relative -mx-5 -mb-4 shrink-0",- children: /* @__PURE__ */ (0, V.jsx)("p", {+ children: /* @__PURE__ */ (0, W.jsx)("p", {ref: ne,role: "region","aria-label": "当前信息",className: "max-h-22 overflow-y-auto border-t border-separator-border px-5 py-2.5 text-body-2-regular text-text-secondary wrap-anywhere",- children: E+ children: O})}) : null,- /* @__PURE__ */ (0, V.jsxs)("footer", {+ /* @__PURE__ */ (0, W.jsxs)("footer", {className: "-mx-5 flex min-h-14 shrink-0 flex-wrap items-center justify-end gap-2 rounded-b-surface border-t border-separator-border bg-background-secondary-default py-3 pr-3 pl-5",children: [- _ === "ignored" ? null : /* @__PURE__ */ (0, V.jsx)(o, {+ _ === "ignored" ? null : /* @__PURE__ */ (0, W.jsx)(o, {variant: "ghost",size: "small",disabled: l,- ...k(d),+ ...M(d),onClick: () => h("rejected"),children: "忽略"}),- _ === "pending" ? /* @__PURE__ */ (0, V.jsx)(o, {+ _ === "pending" ? /* @__PURE__ */ (0, W.jsx)(o, {variant: "secondary",size: "small",disabled: l,- ...k(d),+ ...M(d),onClick: () => h("skipped"),children: "稍后处理"- }) : /* @__PURE__ */ (0, V.jsx)(o, {+ }) : /* @__PURE__ */ (0, W.jsx)(o, {variant: _ === "ignored" ? "primary" : "secondary",size: "small",disabled: l,- ...k(d),+ ...M(d),onClick: () => h("restore"),children: "恢复待处理"}),- _ === "ignored" ? null : /* @__PURE__ */ (0, V.jsx)(o, {+ _ === "ignored" ? null : /* @__PURE__ */ (0, W.jsx)(o, {variant: "primary",size: "small",- disabled: l || !O,- ...k(d),- title: O ? void 0 : "没有可采用的资料,可先保留或忽略",+ disabled: l || !A,+ ...M(d),+ title: A ? void 0 : "没有可采用的资料,可先保留或忽略",onClick: () => h("approved"),- children: O ? "通过" : "不可通过"+ children: A ? "通过" : "不可通过"}),- m ? /* @__PURE__ */ (0, V.jsx)("p", {+ m ? /* @__PURE__ */ (0, W.jsx)("p", {role: "status",className: "w-full text-body-2-regular text-text-error-primary",children: m@@ -750,27 +773,27 @@ function Ke(e) {});}// src/react/review/review-page.tsx-var qe = "flex cursor-pointer items-center justify-between gap-2";-function Je({ page: e, pages: t, onPage: n }) {- return t <= 1 ? null : /* @__PURE__ */ (0, V.jsxs)("nav", {+var Ke = "flex cursor-pointer items-center justify-between gap-2";+function qe({ page: e, pages: t, onPage: n }) {+ return t <= 1 ? null : /* @__PURE__ */ (0, W.jsxs)("nav", {"aria-label": "复核分页","data-pagination-layout": "",className: "inline-grid w-full min-w-0 items-center gap-2",children: [- /* @__PURE__ */ (0, V.jsx)(o, {+ /* @__PURE__ */ (0, W.jsx)(o, {variant: "secondary",size: "small",disabled: e <= 1,onClick: () => n(e - 1),children: "上一页"}),- /* @__PURE__ */ (0, V.jsx)("ul", {+ /* @__PURE__ */ (0, W.jsx)("ul", {className: "flex min-w-0 flex-wrap items-center justify-center gap-1",- children: P(e, t).map((t, r) => /* @__PURE__ */ (0, V.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, V.jsx)("span", {+ children: L(e, t).map((t, r) => /* @__PURE__ */ (0, W.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, W.jsx)("span", {"aria-hidden": !0,className: "px-1 text-body-2-regular text-text-tertiary",children: "…"- }) : /* @__PURE__ */ (0, V.jsx)(o, {+ }) : /* @__PURE__ */ (0, W.jsx)(o, {variant: t === e ? "secondary" : "ghost",size: "small","aria-label": `第 ${t} 页`,@@ -779,7 +802,7 @@ function Je({ page: e, pages: t, onPage: n }) {children: t}) }, t === "…" ? `dots-${r}` : t))}),- /* @__PURE__ */ (0, V.jsx)(o, {+ /* @__PURE__ */ (0, W.jsx)(o, {variant: "secondary",size: "small",disabled: e >= t,@@ -789,20 +812,20 @@ function Je({ page: e, pages: t, onPage: n }) {]});}-function Q(r) {- let [i, a] = (0, B.useState)(() => matchMedia("(max-width:900px)").matches);- (0, B.useEffect)(() => {+function $(r) {+ let [i, a] = (0, U.useState)(() => matchMedia("(max-width:900px)").matches);+ (0, U.useEffect)(() => {let e = matchMedia("(max-width:900px)"), t = () => a(e.matches);return e.addEventListener("change", t), () => e.removeEventListener("change", t);}, []);- let { route: s, openItem: c, openEntity: l, revealSource: u, toast: f, readOnly: ee, readOnlyMessage: te, writerUrl: h } = r, [b, S] = (0, B.useState)(pe(r.category) ? r.category : d), [C, w] = (0, B.useState)(() => Se(r.queue)), [T, E] = (0, B.useState)("candidates"), [D, O] = (0, B.useState)(""), [ae, k] = (0, B.useState)(1), [A, j] = (0, B.useState)(/* @__PURE__ */ new Set()), [me, P] = (0, B.useState)(/* @__PURE__ */ new Map()), [_e, F] = (0, B.useState)(/* @__PURE__ */ new Map()), [ve, I] = (0, B.useState)(""), ye = (0, B.useRef)(null), [we, Te] = (0, B.useState)(0), [Ee, De] = (0, B.useState)(""), Oe = (0, B.useRef)(!0);- (0, B.useEffect)(() => () => {- Oe.current = !1;+ let { route: s, openItem: c, openEntity: l, revealSource: u, toast: f, readOnly: ee, readOnlyMessage: te, writerUrl: h } = r, [_, v] = (0, U.useState)(ue(r.category) ? r.category : d), [b, w] = (0, U.useState)(() => be(r.queue)), [T, E] = (0, U.useState)("candidates"), [D, O] = (0, U.useState)(""), [k, A] = (0, U.useState)(1), [j, M] = (0, U.useState)(/* @__PURE__ */ new Set()), [N, P] = (0, U.useState)(/* @__PURE__ */ new Map()), [de, L] = (0, U.useState)(/* @__PURE__ */ new Map()), [me, R] = (0, U.useState)(""), he = (0, U.useRef)(null), [ge, _e] = (0, U.useState)(0), [Se, Ce] = (0, U.useState)(""), we = (0, U.useRef)(!0);+ (0, U.useEffect)(() => () => {+ we.current = !1;}, []);- let L = Ne({+ let z = Ae({queryKey: ne,- queryFn: ({ signal: e }) => ue(e)- }), R = L.data || {+ queryFn: ({ signal: e }) => se(e)+ }), B = z.data || {sections: {},counts: {},queues: {@@ -815,56 +838,56 @@ function Q(r) {counts: {}}}- }, z = xe(R, C), H = z.sections[b] || [], U = b === "metadata_fields", W = ee;- (0, B.useEffect)(() => {+ }, V = ye(B, b), ke = z.data ? Object.fromEntries(S.map((e) => [e, y.reduce((t, n) => t + Number(ye(B, e).counts[n] || 0), 0)])) : void 0, H = V.sections[_] || [], Pe = _ === "metadata_fields", G = ee;+ (0, U.useEffect)(() => {let e = new Set(H.map((e) => e.item_key));- j((t) => {+ M((t) => {let n = [...t].filter((t) => e.has(t));return n.length === t.size ? t : new Set(n);}), P((t) => {let n = [...t].filter(([t]) => e.has(t));return n.length === t.size ? t : new Map(n);- }), F((t) => {+ }), L((t) => {let n = [...t].filter(([t]) => e.has(t));return n.length === t.size ? t : new Map(n);});}, [H]);- let Re = be(H, U), G = Re.some(([e]) => e === T) ? T : "candidates", ze = fe(H, G), Be = ze.some((e) => e.key === D) ? D : "", K = Ce(de(H, G, Be), ae), q = K.rows.map((e) => e.item_key), Ve = new Set(q), He = ze.map((e) => ({+ let Ie = ve(H, Pe), K = Ie.some(([e]) => e === T) ? T : "candidates", Le = le(H, K), Re = Le.some((e) => e.key === D) ? D : "", q = xe(ce(H, K, Re), k), ze = q.rows.map((e) => e.item_key), Be = new Set(ze), Ve = Le.map((e) => ({...e,- rows: e.rows.filter((e) => Ve.has(e.item_key))- })).filter((e) => e.rows.length), J = (e) => me.get(e.item_key) || le(e), Y = H.filter((e) => A.has(e.item_key)), Ue = (e) => {+ rows: e.rows.filter((e) => Be.has(e.item_key))+ })).filter((e) => e.rows.length), J = (e) => N.get(e.item_key) || oe(e), Y = H.filter((e) => j.has(e.item_key)), He = (e) => {let t = new Set(e);- j((e) => new Set([...e].filter((e) => !t.has(e)))), P((e) => new Map([...e].filter(([e]) => !t.has(e)))), F((e) => new Map([...e].filter(([e]) => !t.has(e))));- }, We = (e, t) => F((n) => new Map(n).set(e, t)), X = () => {- E("candidates"), O(""), k(1), j(/* @__PURE__ */ new Set()), P(/* @__PURE__ */ new Map()), F(/* @__PURE__ */ new Map()), I(""), ye.current = null;- }, Z = (e) => {- S(e), X(), s({+ M((e) => new Set([...e].filter((e) => !t.has(e)))), P((e) => new Map([...e].filter(([e]) => !t.has(e)))), L((e) => new Map([...e].filter(([e]) => !t.has(e))));+ }, Ue = (e, t) => L((n) => new Map(n).set(e, t)), We = () => {+ E("candidates"), O(""), A(1), M(/* @__PURE__ */ new Set()), P(/* @__PURE__ */ new Map()), L(/* @__PURE__ */ new Map()), R(""), he.current = null;+ }, X = (e) => {+ v(e), We(), s({category: e === "metadata_fields" ? "" : e,- queue: C === "pending" ? "" : C+ queue: b === "pending" ? "" : b});- }, Ge = (e) => {- w(e), X(), s({- category: b === "metadata_fields" ? "" : b,+ }, Z = (e) => {+ w(e), We(), s({+ category: _ === "metadata_fields" ? "" : _,queue: e === "pending" ? "" : e});- }, Q = Me({- mutationFn: ({ row: e, status: t, category: n }) => je(M(n, se(n, e), t, J(e))),+ }, Q = Oe({+ mutationFn: ({ row: e, status: t, category: n }) => De(F(n, ie(n, e), t, J(e))),onSuccess: (e, { row: t, status: n, category: r }) => {- e.ok ? (Ae(r, [t.item_key], n), Ue([t.item_key]), f(ce(n))) : We(t.item_key, e.error || "服务端拒绝了这次判定");+ e.ok ? (Ee(r, [t.item_key], n), He([t.item_key]), f(ae(n))) : Ue(t.item_key, e.error || "服务端拒绝了这次判定");},- onError: (e, { row: t }) => We(t.item_key, N(e))- }), $ = Me({+ onError: (e, { row: t }) => Ue(t.item_key, I(e))+ }), $ = Oe({mutationFn: async ({ status: e, category: t, rows: n }) => {let r = [], i = [];for (let [a, o] of n.entries()) {- if (!Oe.current) break;- I(`正在处理 ${a} / ${n.length}`);+ if (!we.current) break;+ R(`正在处理 ${a} / ${n.length}`);try {- let n = await je(M(t, se(t, o), e, J(o)));+ let n = await De(F(t, ie(t, o), e, J(o)));if (!n.ok) throw Error(n.error || "服务端未采用该项");r.push(o.item_key);} catch (e) {- i.push([o.item_key, N(e)]);+ i.push([o.item_key, I(e)]);}}return {@@ -875,7 +898,7 @@ function Q(r) {};},onSuccess: ({ status: e, category: t, done: n, failures: r }) => {- Ae(t, n, e), Ue(n), r.forEach(([e, t]) => We(e, t)), I("");+ Ee(t, n, e), He(n), r.forEach(([e, t]) => Ue(e, t)), R("");let i = {approved: "通过",rejected: "忽略",@@ -885,15 +908,15 @@ function Q(r) {f(`已${i} ${n.length} 项` + (r.length ? `,${r.length} 项未完成` : ""));},onError: (e) => {- I(N(e));+ R(I(e));}- }), Ye = (e) => {- !$.isPending && Y.length && (e === "approved" && U && Y.some((e) => !J(e).candidateKey) ? I("请先为所选资料选择要采用的来源。") : (I(""), $.mutate({+ }), Je = (e) => {+ !$.isPending && Y.length && (e === "approved" && Pe && Y.some((e) => !J(e).candidateKey) ? R("请先为所选资料选择要采用的来源。") : (R(""), $.mutate({status: e,- category: b,+ category: _,rows: Y})));- }, Xe = (e) => {+ }, Ye = (e) => {P((t) => {let n = new Map(t);for (let t of Y) {@@ -904,193 +927,172 @@ function Q(r) {});}return n;- }), I(`已选择 ${e},点击通过所选采用。`);- }, Ze = async (e) => {- if (we) return;- Te(e), De("");+ }), R(`已选择 ${e},点击通过所选采用。`);+ }, Xe = async (e) => {+ if (ge) return;+ _e(e), Ce("");let t = await u(e);- Oe.current && (Te(0), De(t));- }, Qe = ge(R.mirror, te), $e = R.genre_tags || [], et = {+ we.current && (_e(0), Ce(t));+ }, Ze = pe(B.mirror, te), Qe = B.genre_tags || [], $e = {openItem: c,openEntity: l,- onReveal: Ze,- revealing: we,- revealNote: Ee,+ onReveal: Xe,+ revealing: ge,+ revealNote: Se,toast: f};- return /* @__PURE__ */ (0, V.jsx)(Pe, { children: /* @__PURE__ */ (0, V.jsxs)("div", {+ return /* @__PURE__ */ (0, W.jsx)(je, { children: /* @__PURE__ */ (0, W.jsxs)("div", {className: "flex flex-col gap-5 pb-10",children: [- W ? /* @__PURE__ */ (0, V.jsx)(g, {+ G ? /* @__PURE__ */ (0, W.jsx)(g, {tone: "warning",title: "本机只能浏览",- extra: h ? /* @__PURE__ */ (0, V.jsx)("p", {+ extra: h ? /* @__PURE__ */ (0, W.jsx)("p", {className: "text-body-2-regular",- children: /* @__PURE__ */ (0, V.jsx)(m, {+ children: /* @__PURE__ */ (0, W.jsx)(m, {href: h,children: "前往写入端复核"})}) : void 0,- children: Qe+ children: Ze}) : null,- /* @__PURE__ */ (0, V.jsx)(Le, { tags: $e }),- /* @__PURE__ */ (0, V.jsx)(v, {- "aria-label": "复核状态",- "data-pill-nav": "",- className: "flex w-fit max-w-full flex-nowrap gap-1 overflow-x-auto",- children: ie.map((e) => /* @__PURE__ */ (0, V.jsxs)(_, {- variant: "gray",- isSelected: C === e,- disabled: Q.isPending || $.isPending,- onSelect: () => {- e !== C && Ge(e);- },- children: [- /* @__PURE__ */ (0, V.jsx)("span", {- "data-copy-key": `review.queue.${e}`,- children: x[e]- }),- " ",- /* @__PURE__ */ (0, V.jsx)("span", {- className: "tabular-nums text-caption-1-medium text-text-secondary",- children: L.data ? y.reduce((t, n) => t + Number(xe(R, e).counts[n] || 0), 0).toLocaleString() : "…"- })- ]- }, e))- }),- /* @__PURE__ */ (0, V.jsxs)(n, {+ /* @__PURE__ */ (0, W.jsx)(Fe, { tags: Qe }),+ /* @__PURE__ */ (0, W.jsxs)(n, {orientation: i ? "horizontal" : "vertical",- selectedKey: b,+ selectedKey: _,onSelectionChange: (e) => {let t = String(e);- pe(t) && Z(t);+ ue(t) && X(t);},className: "flex flex-col gap-5 review-split:flex-row review-split:items-start review-split:gap-6",- children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ children: [/* @__PURE__ */ (0, W.jsxs)("div", {"data-section-nav": !0,className: "w-full min-w-0 review-split:sticky review-split:top-topbar review-split:w-review-tabs review-split:shrink-0",- children: [/* @__PURE__ */ (0, V.jsx)("h2", {+ children: [/* @__PURE__ */ (0, W.jsx)("h2", {id: "reviewcategories",children: "复核分类"- }), /* @__PURE__ */ (0, V.jsx)(Fe, {+ }), /* @__PURE__ */ (0, W.jsx)(Me, {scrollable: i,"aria-labelledby": "reviewcategories","data-section-items": !0,className: "flex review-split:flex-col review-split:items-stretch",children: y.map((e) => {- let n = Number(z.counts[e] || 0);- return /* @__PURE__ */ (0, V.jsxs)(t, {+ let n = Number(V.counts[e] || 0);+ return /* @__PURE__ */ (0, W.jsxs)(t, {id: e,- className: qe,+ className: Ke,isDisabled: Q.isPending || $.isPending,- "data-pill-selected": b === e ? "" : void 0,+ "data-pill-selected": _ === e ? "" : void 0,"data-pill-variant": "gray",- children: [re[e], n ? /* @__PURE__ */ (0, V.jsx)("span", {+ children: [x[e], n ? /* @__PURE__ */ (0, W.jsx)("span", {className: "tabular-nums text-caption-1-medium text-text-secondary",children: n.toLocaleString()}) : null]}, e);})})]- }), /* @__PURE__ */ (0, V.jsxs)(e, {- id: b,+ }), /* @__PURE__ */ (0, W.jsxs)(e, {+ id: _,className: "flex min-w-0 flex-1 flex-col gap-5",children: [- H.length && !W ? /* @__PURE__ */ (0, V.jsx)(Ie, {- queueView: C,- groupOptions: Re,- groupBy: G,+ /* @__PURE__ */ (0, W.jsx)(Ne, {+ queueView: b,+ queueCounts: ke,+ onQueueChange: Z,+ locked: G,+ groupOptions: Ie,+ groupBy: K,onGroupBy: (e) => {- E(e), O(""), k(1);+ E(e), O(""), A(1);},- groups: ze,- filter: Be,+ groups: Le,+ filter: Re,onFilter: (e) => {- O(e), k(1);+ O(e), A(1);},- pageKeys: q,- selected: A,- onSelected: j,+ pageKeys: ze,+ selected: j,+ onSelected: M,selectedRows: Y,- metadata: U,- approvable: Y.every((e) => oe(b, e)),+ metadata: Pe,+ approvable: Y.every((e) => re(_, e)),busy: $.isPending || Q.isPending,- feedback: ve,- onUnifySource: Xe,- onRun: Ye- }) : null,- K.rows.length ? He.map((e) => /* @__PURE__ */ (0, V.jsxs)("section", {+ feedback: me,+ onUnifySource: Ye,+ onRun: Je+ }),+ q.rows.length ? Ve.map((e) => /* @__PURE__ */ (0, W.jsxs)("section", {className: "flex flex-col gap-3",- children: [He.length > 1 || G !== "candidates" ? /* @__PURE__ */ (0, V.jsxs)("div", {+ children: [Ve.length > 1 || K !== "candidates" ? /* @__PURE__ */ (0, W.jsxs)("div", {className: "flex flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, V.jsx)("h3", {+ children: [/* @__PURE__ */ (0, W.jsx)("h3", {className: "text-body-medium text-text-primary",children: `${e.title} · ${e.rows.length}`- }), W ? null : /* @__PURE__ */ (0, V.jsx)(o, {+ }), G ? null : /* @__PURE__ */ (0, W.jsx)(o, {variant: "ghost",size: "small",onClick: () => {- let t = e.rows.map((e) => e.item_key), n = t.every((e) => A.has(e)), r = new Set(A);+ let t = e.rows.map((e) => e.item_key), n = t.every((e) => j.has(e)), r = new Set(j);for (let e of t) n ? r.delete(e) : r.add(e);- j(r);+ M(r);},- children: e.rows.every((e) => A.has(e.item_key)) ? "清空本组" : "全选本组"+ children: e.rows.every((e) => j.has(e.item_key)) ? "清空本组" : "全选本组"})]- }) : null, /* @__PURE__ */ (0, V.jsx)("div", {+ }) : null, /* @__PURE__ */ (0, W.jsx)("div", {className: "review-grid gap-5",- children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(Ke, {- category: b,+ children: e.rows.map((e) => /* @__PURE__ */ (0, W.jsx)(Ge, {+ category: _,row: e,- queueView: C,+ queueView: b,choice: J(e),onChoice: (t) => P((n) => new Map(n).set(e.item_key, t)),- selected: A.has(e.item_key),- onSelect: (t, n) => j((r) => {+ selected: j.has(e.item_key),+ onSelect: (t, n) => M((r) => {let i = new Set(r);- return ye.current = ke(i, q, ye.current, e.item_key, t, n), i;+ return he.current = Te(i, ze, he.current, e.item_key, t, n), i;}),- locked: W,+ locked: G,busy: $.isPending || Q.isPending && Q.variables?.row.item_key === e.item_key,- problem: _e.get(e.item_key) || "",- genreTags: $e,+ problem: de.get(e.item_key) || "",+ genreTags: Qe,onDecide: (t) => {- Q.isPending || $.isPending || (F((t) => new Map([...t].filter(([t]) => t !== e.item_key))), Q.mutate({+ Q.isPending || $.isPending || (L((t) => new Map([...t].filter(([t]) => t !== e.item_key))), Q.mutate({row: e,status: t,- category: b+ category: _}));},- handlers: et+ handlers: $e}, e.item_key))})]- }, e.key)) : L.isError && !L.data ? /* @__PURE__ */ (0, V.jsx)(g, {+ }, e.key)) : z.isError && !z.data ? /* @__PURE__ */ (0, W.jsx)(g, {tone: "error",title: "复核队列读取失败",- action: /* @__PURE__ */ (0, V.jsx)(o, {+ action: /* @__PURE__ */ (0, W.jsx)(o, {variant: "secondary",size: "small",- disabled: L.isFetching,- onClick: () => void L.refetch(),+ disabled: z.isFetching,+ onClick: () => void z.refetch(),children: "立即重试"}),- children: N(L.error)- }) : /* @__PURE__ */ (0, V.jsx)(p, {- icon: he,- title: `此分类没有${x[C]}项目`,- actions: y.some((e) => e !== b && Number(z.counts[e] || 0) > 0) ? /* @__PURE__ */ (0, V.jsx)(o, {+ children: I(z.error)+ }) : /* @__PURE__ */ (0, W.jsx)(p, {+ icon: fe,+ title: `此分类没有${C[b]}项目`,+ actions: y.some((e) => e !== _ && Number(V.counts[e] || 0) > 0) ? /* @__PURE__ */ (0, W.jsx)(o, {size: "small",onClick: () => {- let e = y.find((e) => e !== b && Number(z.counts[e] || 0) > 0);- e && Z(e);+ let e = y.find((e) => e !== _ && Number(V.counts[e] || 0) > 0);+ e && X(e);},children: "查看其他分类"}) : void 0,- children: C === "pending" ? "可切换分类查看其他待确认资料。" : `${x[C]}的资料会保留在这里,可恢复到待处理。`+ children: b === "pending" ? "可切换分类查看其他待确认资料。" : `${C[b]}的资料会保留在这里,可恢复到待处理。`}),- /* @__PURE__ */ (0, V.jsx)(Je, {- page: K.page,- pages: K.pages,- onPage: k+ /* @__PURE__ */ (0, W.jsx)(qe, {+ page: q.page,+ pages: q.pages,+ onPage: A})]})]@@ -1098,6 +1100,6 @@ function Q(r) {]}) });}-export { Q as ReviewPage };+export { $ as ReviewPage };-//# debugId=4b0521d5-ac52-4070-85f4-af5c445c7d99\ No newline at end of file+//# debugId=b5865f49-d9fa-4fba-8cef-823a4056c0b4\ No newline at end of file