"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var core_1 = require("../..");
var index_1 = require("./index");
var PDFAcroChoice = /** @class */ (function (_super) {
    tslib_1.__extends(PDFAcroChoice, _super);
    function PDFAcroChoice() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    PDFAcroChoice.fromDict = function (dict) {
        return new PDFAcroChoice(dict);
    };
    PDFAcroChoice.prototype.Opt = function () {
        return this.dict.lookupMaybe(core_1.PDFName.Opt, core_1.PDFArray);
    };
    PDFAcroChoice.prototype.TI = function () {
        return this.dict.lookupMaybe(core_1.PDFName.TI, core_1.PDFNumber);
    };
    PDFAcroChoice.prototype.I = function () {
        return this.dict.lookupMaybe(core_1.PDFName.I, core_1.PDFArray);
    };
    PDFAcroChoice.prototype.isCombo = function () {
        return !!(this.getFlags() & (1 << 17));
    };
    PDFAcroChoice.prototype.isEditable = function () {
        return !!(this.getFlags() & (1 << 18));
    };
    PDFAcroChoice.prototype.isSorted = function () {
        return !!(this.getFlags() & (1 << 19));
    };
    PDFAcroChoice.prototype.isMultiSelect = function () {
        return !!(this.getFlags() & (1 << 21));
    };
    PDFAcroChoice.prototype.isSpellChecked = function () {
        return !(this.getFlags() & (1 << 22));
    };
    PDFAcroChoice.prototype.isCommittedOnSelChange = function () {
        return !!(this.getFlags() & (1 << 26));
    };
    return PDFAcroChoice;
}(index_1.PDFTerminalField));
exports.default = PDFAcroChoice;
//# sourceMappingURL=PDFAcroChoice.js.map