/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { Base, markType } from "./type";
import { List$1 } from "./List$1";
import { IKeyFrameAnimation_$type } from "./IKeyFrameAnimation";
/**
 * @hidden
 */
export let PopupAnimation = /*@__PURE__*/ (() => {
    class PopupAnimation extends Base {
        constructor() {
            super();
            this.b = 0;
            this.a = null;
            this.a = new List$1(IKeyFrameAnimation_$type, 0);
        }
        d(a) {
            this.b = 0;
            for (let b = 0; b < this.a.count; b++) {
                this.a._inner[b].play();
                this.a._inner[b].finished.f((c) => {
                    this.b++;
                    if (this.b == this.a.count && a != null) {
                        a();
                    }
                });
            }
        }
        c() {
            for (let a = 0; a < this.a.count; a++) {
                this.a._inner[a].commitStyles();
            }
        }
    }
    PopupAnimation.$t = markType(PopupAnimation, 'PopupAnimation');
    return PopupAnimation;
})();
