/*
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 * as tslib_1 from "tslib";
import { ObservableCollection$1 } from "./ObservableCollection$1";
import { UIElement } from "./UIElement";
import { fromEn, fromEnum, markType } from "./type";
var UIElementCollection = /** @class */ (function (_super) {
    tslib_1.__extends(UIElementCollection, _super);
    function UIElementCollection(a) {
        var _this = _super.call(this, UIElement.$, 0) || this;
        _this.ae = null;
        _this.ae = a;
        return _this;
    }
    UIElementCollection.prototype.ac = function (a) {
        _super.prototype.ac.call(this, a);
        if (a.oldItems != null) {
            try {
                for (var _a = tslib_1.__values(fromEn(a.oldItems)), _b = _a.next(); !_b.done; _b = _a.next()) {
                    var b = _b.value;
                    b.x = null;
                }
            }
            catch (e_1_1) { e_1 = { error: e_1_1 }; }
            finally {
                try {
                    if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
                }
                finally { if (e_1) throw e_1.error; }
            }
        }
        if (a.newItems != null) {
            try {
                for (var _d = tslib_1.__values(fromEn(a.newItems)), _e = _d.next(); !_e.done; _e = _d.next()) {
                    var c = _e.value;
                    c.x = this.ae;
                }
            }
            catch (e_2_1) { e_2 = { error: e_2_1 }; }
            finally {
                try {
                    if (_e && !_e.done && (_f = _d.return)) _f.call(_d);
                }
                finally { if (e_2) throw e_2.error; }
            }
        }
        var e_1, _c, e_2, _f;
    };
    UIElementCollection.prototype.p = function () {
        try {
            for (var _a = tslib_1.__values(fromEnum(this)), _b = _a.next(); !_b.done; _b = _a.next()) {
                var a = _b.value;
                a.x = null;
            }
        }
        catch (e_3_1) { e_3 = { error: e_3_1 }; }
        finally {
            try {
                if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
            }
            finally { if (e_3) throw e_3.error; }
        }
        _super.prototype.p.call(this);
        var e_3, _c;
    };
    UIElementCollection.$t = markType(UIElementCollection, 'UIElementCollection', ObservableCollection$1.$.specialize(UIElement.$));
    return UIElementCollection;
}(ObservableCollection$1));
export { UIElementCollection };
//# sourceMappingURL=UIElementCollection.js.map