"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = require("@storybook/react");
var storybook_react_router_1 = __importDefault(require("storybook-react-router"));
var React = __importStar(require("react"));
var web3_providers_http_1 = __importDefault(require("web3-providers-http"));
var apollo_storybook_react_1 = __importDefault(require("apollo-storybook-react"));
var TokensAccountSignup_1 = require("./TokensAccountSignup");
var TokensAccountVerify_1 = require("./TokensAccountVerify");
var TokensAccountBuy_1 = require("./TokensAccountBuy");
var context_1 = require("../context");
var web3_1 = __importDefault(require("web3"));
var web3Provider = new web3_providers_http_1.default("http://localhost:8045");
var web3 = new web3_1.default(web3Provider);
var civilContext = context_1.buildCivilContext({ web3: web3, featureFlags: ["uniswap"], config: { DEFAULT_ETHEREUM_NETWORK: 4 } });
var onClickFunc = function () {
    console.log("clicked!");
};
var typeDefs = "\n  type Query {\n    storefrontEthPrice: Float\n    storefrontCvlPrice: Float\n    storefrontCvlQuoteUsd(usdToSpend: Float!): Float\n  }\n\n  schema {\n    query: Query\n  }\n";
var mocks = {
    Query: function () {
        return {
            storefrontEthPrice: function () {
                return 102.98;
            },
            storefrontCvlPrice: function () {
                return 0.2;
            },
            storefrontCvlQuoteUsd: function () {
                return 500.48635;
            },
        };
    },
};
react_1.storiesOf("Storefront / User Token Account", module)
    .addDecorator(apollo_storybook_react_1.default({
    typeDefs: typeDefs,
    mocks: mocks,
}))
    .addDecorator(storybook_react_router_1.default())
    .add("Signup Section", function () {
    return (React.createElement(context_1.CivilContext.Provider, { value: civilContext },
        React.createElement(TokensAccountSignup_1.UserTokenAccountSignup, { step: "active", user: {}, signupPath: "/auth/signup", addWalletPath: "/auth/wallet" })));
})
    .add("Tutorial Verify", function () {
    return (React.createElement(context_1.CivilContext.Provider, { value: civilContext },
        React.createElement(TokensAccountVerify_1.UserTokenAccountVerify, { step: "active", open: false, handleClose: onClickFunc, handleOpen: onClickFunc })));
})
    .add("Buy Section", function () {
    return (React.createElement(context_1.CivilContext.Provider, { value: civilContext },
        React.createElement(TokensAccountBuy_1.UserTokenAccountBuy, { step: "active", network: "4", foundationAddress: "0x..." })));
});
//# sourceMappingURL=TokensAccount.stories.js.map