import * as tslib_1 from "tslib";
import { IgCollection } from "igniteui-webcomponents-core";
import { SyncableObservableCollection$2 } from "igniteui-webcomponents-core";
import { Base } from "igniteui-webcomponents-core";
var IgcGridSelectedItemsCollection = /** @class */ /*@__PURE__*/ (function (_super) {
    tslib_1.__extends(IgcGridSelectedItemsCollection, _super);
    function IgcGridSelectedItemsCollection(list) {
        var _this = _super.call(this) || this;
        if (list) {
            for (var i = 0; i < list.length; i++) {
                _this.add(list[i]);
            }
        }
        return _this;
    }
    IgcGridSelectedItemsCollection.prototype._createInnerColl = function () {
        var coll = new SyncableObservableCollection$2(Base.$type, Base.$type, 0);
        coll.compare = function (ext, int) {
            var comp = ext;
            if (comp.equals) {
                return comp.equals(int);
            }
            return comp === int;
        };
        coll.createTo = function (ext) {
            return ext;
        };
        coll.createFrom = function (int) {
            return int;
        };
        return coll;
    };
    return IgcGridSelectedItemsCollection;
}(IgCollection));
export { IgcGridSelectedItemsCollection };
//# sourceMappingURL=igc-grid-selected-items-collection.js.map
