"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../../Class/Functional");
const _ids_1 = require("../../../../_ids");
class DeepHasKey extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['obj', 'path', 'key'],
            o: ['has'],
        }, {
            input: {
                obj: {
                    ref: true,
                },
            },
            output: {},
        }, system, _ids_1.ID_DEEP_GET_0);
    }
    async f({ obj, path }, done, fail) {
        let has;
        try {
            has = await obj.deepHas(path);
        }
        catch (err) {
            fail(err.message);
            return;
        }
        done({
            has,
        });
    }
}
exports.default = DeepHasKey;
//# sourceMappingURL=index.js.map