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