"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../render/utils/resolve-dynamic-variants.mjs.js"),t=require("./visual-element-target.mjs.js"),a=require("./visual-element-variant.mjs.js");exports.animateVisualElement=function(i,r){let n,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(i.notify("AnimationStart",r),Array.isArray(r)){const e=r.map((e=>a.animateVariant(i,e,s)));n=Promise.all(e)}else if("string"==typeof r)n=a.animateVariant(i,r,s);else{const a="function"==typeof r?e.resolveVariant(i,r,s.custom):r;n=Promise.all(t.animateTarget(i,a,s))}return n.then((()=>{i.notify("AnimationComplete",r)}))};
//# sourceMappingURL=visual-element.mjs.js.map
