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