{"version":3,"file":"NativeAnimationWrapper.mjs","sources":["../../../src/animation/NativeAnimationWrapper.ts"],"sourcesContent":["import { NativeAnimation } from \"./NativeAnimation\"\nimport { AnyResolvedKeyframe } from \"./types\"\nimport { notifyAnimationStart } from \"./utils/notify-inspector\"\n\nexport class NativeAnimationWrapper<\n T extends AnyResolvedKeyframe\n> extends NativeAnimation {\n constructor(animation: Animation) {\n super()\n\n this.animation = animation\n animation.onfinish = () => {\n this.finishedTime = this.time\n this.notifyFinished()\n }\n\n /**\n * The optionless super() returns before NativeAnimation's own\n * notify, so wrapped animations (view transition cross-fades)\n * report here, after the wrapped WAAPI animation is attached.\n */\n notifyAnimationStart(this, {})\n }\n}\n"],"names":[],"mappings":";;;AAIM,MAAO,sBAEX,SAAQ,eAAkB,CAAA;AACxB,IAAA,WAAA,CAAY,SAAoB,EAAA;AAC5B,QAAA,KAAK,EAAE;AAEP,QAAA,IAAI,CAAC,SAAS,GAAG,SAAS;AAC1B,QAAA,SAAS,CAAC,QAAQ,GAAG,MAAK;AACtB,YAAA,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,IAAI;YAC7B,IAAI,CAAC,cAAc,EAAE;AACzB,QAAA,CAAC;AAED;;;;AAIG;AACH,QAAA,oBAAoB,CAAC,IAAI,EAAE,EAAE,CAAC;IAClC;AACH;;;;"}