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