{"version":3,"file":"match_page_image_snapshot_action.mjs","names":[],"sources":["../../../src/client/actions/match_page_image_snapshot_action.ts"],"sourcesContent":["import type { BrowserCommands } from 'vitest/browser'\nimport { assertSnapshotKeyWithoutDash } from '../../shared/asserts.ts'\nimport type {\n\tImageSnapshotNextIndexCommand,\n\tPrepareImageSnapshotComparisonCommand,\n} from '../../shared/commands.types.ts'\nimport type { ToMatchImageSnapshotOptions } from '../../shared/types.ts'\nimport { compareImageSnapshot } from '../snapshot/compare_image_snapshot.ts'\n\nexport async function matchPageImageSnapshotAction(\n\tcommands: BrowserCommands & PrepareImageSnapshotComparisonCommand & ImageSnapshotNextIndexCommand,\n\ttaskId: string,\n\toptions?: ToMatchImageSnapshotOptions<any>,\n) {\n\tassertSnapshotKeyWithoutDash(options?.snapshotKey)\n\n\tconst info = await commands.preparePageImageSnapshotComparison(taskId, options)\n\n\tif (!info) return\n\n\treturn compareImageSnapshot(commands, taskId, info, options)\n}\n"],"mappings":";;;;AASA,eAAsB,6BACrB,UACA,QACA,SACC;AACD,8BAA6B,SAAS,YAAY;CAElD,MAAM,OAAO,MAAM,SAAS,mCAAmC,QAAQ,QAAQ;AAE/E,KAAI,CAAC,KAAM;AAEX,QAAO,qBAAqB,UAAU,QAAQ,MAAM,QAAQ"}