"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var core_1 = require("../..");
var index_1 = require("./index");
var PDFAcroText = /** @class */ (function (_super) {
    tslib_1.__extends(PDFAcroText, _super);
    function PDFAcroText() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    PDFAcroText.fromDict = function (dict) {
        return new PDFAcroText(dict);
    };
    PDFAcroText.prototype.RV = function () {
        return this.dict.lookup(core_1.PDFName.RV);
    };
    PDFAcroText.prototype.MaxLen = function () {
        return this.dict.lookupMaybe(core_1.PDFName.MaxLen, core_1.PDFNumber);
    };
    PDFAcroText.prototype.isMultiLine = function () {
        return !!(this.getFlags() & (1 << 12));
    };
    PDFAcroText.prototype.isPassword = function () {
        return !!(this.getFlags() & (1 << 13));
    };
    PDFAcroText.prototype.isFileSelect = function () {
        return !!(this.getFlags() & (1 << 20));
    };
    PDFAcroText.prototype.isSpellChecked = function () {
        return !(this.getFlags() & (1 << 22));
    };
    PDFAcroText.prototype.isScrollable = function () {
        return !(this.getFlags() & (1 << 23));
    };
    PDFAcroText.prototype.isCombed = function () {
        return !!(this.getFlags() & (1 << 24));
    };
    PDFAcroText.prototype.isRichText = function () {
        return !!(this.getFlags() & (1 << 25));
    };
    return PDFAcroText;
}(index_1.PDFTerminalField));
exports.default = PDFAcroText;
//# sourceMappingURL=PDFAcroText.js.map