import { __extends } from "tslib";
import { PDFDict } from "../../../index";
import { PDFAcroField } from './index';
var PDFNonTerminalField = /** @class */ (function (_super) {
    __extends(PDFNonTerminalField, _super);
    function PDFNonTerminalField(dict) {
        return _super.call(this, dict) || this;
    }
    PDFNonTerminalField.fromDict = function (dict) {
        return new PDFNonTerminalField(dict);
    };
    PDFNonTerminalField.prototype.getKids = function () {
        var _a, _b;
        var kidDicts = (_a = this.Kids()) === null || _a === void 0 ? void 0 : _a.lookupElements(PDFDict);
        return (_b = kidDicts) === null || _b === void 0 ? void 0 : _b.map(function (childDict) { return PDFAcroField.fromDict(childDict); });
    };
    return PDFNonTerminalField;
}(PDFAcroField));
export default PDFNonTerminalField;
//# sourceMappingURL=PDFNonTerminalField.js.map