"use strict";
var index_1 = require("../index");
var shop_1 = require("./shop");
var Founder;
(function (Founder) {
    Founder.setName = index_1.action("SET_NAME", function (shop, name) { return index_1.amend(shop, { name: name }); });
    Founder.shop = index_1.reference({
        type: "SHELVES",
        reducer: shop_1.Shop.reduce,
        get: function (founder) { return founder.shop; },
        set: function (founder, shop) { return index_1.amend(founder, { shop: shop }); }
    });
    Founder.empty = {
        name: "",
        shop: shop_1.Shop.empty
    };
    Founder.reduce = index_1.reducer(Founder.empty)
        .action(Founder.setName)
        .action(Founder.shop);
})(Founder = exports.Founder || (exports.Founder = {}));
//# sourceMappingURL=founder.js.map