"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
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 styled_components_1 = __importDefault(require("styled-components"));
var ListingHistoryEvent_1 = require("./ListingHistoryEvent");
var ApplicationEvent_1 = require("./ApplicationEvent");
var ChallengeEvent_1 = require("./ChallengeEvent");
var ChallengeFailedEvent_1 = require("./ChallengeFailedEvent");
var ChallengeSucceededEvent_1 = require("./ChallengeSucceededEvent");
var RejectedEvent_1 = require("./RejectedEvent");
var WhitelistedEvent_1 = require("./WhitelistedEvent");
var StyledDiv = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  width: 600px;\n"], ["\n  width: 600px;\n"])));
var Container = function (_a) {
    var children = _a.children;
    return React.createElement(StyledDiv, null, children);
};
react_1.storiesOf("Registry / Listing / Listing History Event", module)
    .addDecorator(storybook_react_router_1.default())
    .add("Default", function () {
    var props = {
        timestamp: new Date().valueOf() / 1000,
        title: "A Default Event",
    };
    return (React.createElement(Container, null, process.env.NODE_ENV !== "test" && (React.createElement(React.Fragment, null,
        React.createElement(ListingHistoryEvent_1.ListingHistoryEvent, __assign({}, props))))));
})
    .add("History Events Timelime", function () {
    var timestamp = new Date().valueOf() / 1000;
    var deposit = "100.00 CVL";
    var challengeID = "1";
    var challenger = "0x8c722b8ac728add7780a66017e8dadba530ee261";
    return (React.createElement(Container, null, process.env.NODE_ENV !== "test" && (React.createElement(React.Fragment, null,
        React.createElement(RejectedEvent_1.RejectedEvent, { timestamp: timestamp }),
        React.createElement(ChallengeSucceededEvent_1.ChallengeSucceededEvent, { timestamp: timestamp, totalVotes: "100.00 CVL", votesFor: "80.00 CVL", votesAgainst: "20.00 CVL", percentFor: "20", percentAgainst: "80", didChallengeSucceed: true }),
        React.createElement(ChallengeFailedEvent_1.ChallengeFailedEvent, { timestamp: timestamp, totalVotes: "100.00 CVL", votesFor: "20.00 CVL", votesAgainst: "80.00 CVL", percentFor: "20", percentAgainst: "80", didChallengeSucceed: false }),
        React.createElement(ChallengeEvent_1.ChallengeEvent, { timestamp: timestamp, challenger: challenger, challengeID: challengeID, challengeURI: "/challenge/1" }),
        React.createElement(WhitelistedEvent_1.WhitelistedEvent, { timestamp: timestamp }),
        React.createElement(ApplicationEvent_1.ApplicationEvent, { timestamp: timestamp, deposit: deposit })))));
});
var templateObject_1;
//# sourceMappingURL=ListingHistoryEvent.stories.js.map