import { IgcShapefileRecord } from "./igc-shapefile-record";
import { ShapeFilterRecordEventArgs as ShapeFilterRecordEventArgs_internal } from "./ShapeFilterRecordEventArgs";
import { ensureBool } from "./componentUtil";
var IgcShapeFilterRecordEventArgs = /** @class */ /*@__PURE__*/ (function () {
    function IgcShapeFilterRecordEventArgs() {
        this._implementation = this.createImplementation();
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    }
    IgcShapeFilterRecordEventArgs.prototype.createImplementation = function () {
        return new ShapeFilterRecordEventArgs_internal();
    };
    Object.defineProperty(IgcShapeFilterRecordEventArgs.prototype, "i", {
        /**
         * @hidden
         */
        get: function () {
            return this._implementation;
        },
        enumerable: true,
        configurable: true
    });
    IgcShapeFilterRecordEventArgs.prototype.onImplementationCreated = function () {
    };
    IgcShapeFilterRecordEventArgs.prototype._provideImplementation = function (i) {
        this._implementation = i;
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    };
    Object.defineProperty(IgcShapeFilterRecordEventArgs.prototype, "record", {
        get: function () {
            if (this.i.a == null) {
                return null;
            }
            if (!this.i.a.externalObject) {
                var e = new IgcShapefileRecord();
                e._implementation = this.i.a;
                this.i.a.externalObject = e;
            }
            return this.i.a.externalObject;
        },
        set: function (v) {
            v == null ? this.i.a = null : this.i.a = v.i;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgcShapeFilterRecordEventArgs.prototype, "shouldInclude", {
        get: function () {
            return this.i.b;
        },
        set: function (v) {
            this.i.b = ensureBool(v);
        },
        enumerable: true,
        configurable: true
    });
    return IgcShapeFilterRecordEventArgs;
}());
export { IgcShapeFilterRecordEventArgs };
