{"version":3,"file":"has_image_snapshot_action.mjs","names":[],"sources":["../../../src/client/actions/has_image_snapshot_action.ts"],"sourcesContent":["import type { HasImageSnapshotCommand, ImageSnapshotNextIndexCommand } from '../../shared/commands.types.ts'\nimport type { ImageSnapshotKeyOptions } from '../../shared/types.ts'\n\nexport function hasImageSnapshotAction(\n\tcommands: ImageSnapshotNextIndexCommand & HasImageSnapshotCommand,\n\ttaskId: string,\n\toptions?: ImageSnapshotKeyOptions | undefined,\n) {\n\tif (options?.snapshotKey?.includes('-')) {\n\t\tthrow new Error('Snapshot key cannot contain dash')\n\t}\n\n\treturn commands.hasImageSnapshot(taskId, options?.snapshotKey)\n}\n"],"mappings":";AAGA,SAAgB,uBACf,UACA,QACA,SACC;AACD,KAAI,SAAS,aAAa,SAAS,IAAI,CACtC,OAAM,IAAI,MAAM,mCAAmC;AAGpD,QAAO,SAAS,iBAAiB,QAAQ,SAAS,YAAY"}