import { __extends } from "tslib";
import { PDFArray, PDFName, PDFNumber } from "../..";
import { PDFTerminalField } from './index';
var PDFAcroChoice = /** @class */ (function (_super) {
    __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(PDFName.Opt, PDFArray);
    };
    PDFAcroChoice.prototype.TI = function () {
        return this.dict.lookupMaybe(PDFName.TI, PDFNumber);
    };
    PDFAcroChoice.prototype.I = function () {
        return this.dict.lookupMaybe(PDFName.I, 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;
}(PDFTerminalField));
export default PDFAcroChoice;
//# sourceMappingURL=PDFAcroChoice.js.map