"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../Class/Functional");
const clone_1 = require("../../../../util/clone");
const object_1 = require("../../../../util/object");
const _ids_1 = require("../../../_ids");
class DeepDelete extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['obj', 'path'],
            o: ['obj'],
        }, {
            input: {},
        }, system, _ids_1.ID_DEEP_DELETE);
    }
    async f({ obj, path }, done) {
        let obj_ = (0, clone_1.clone)(obj);
        (0, object_1.deepDelete)(obj_, path);
        done({
            obj: obj_,
        });
    }
}
exports.default = DeepDelete;
//# sourceMappingURL=index.js.map