"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
const moment_1 = __importDefault(require("moment"));
const range_1 = __importDefault(require("lodash/range"));
const react_2 = require("@storybook/react");
const addon_info_1 = require("@storybook/addon-info");
const index_1 = __importDefault(require("./index"));
const startDay = '2018-06-10T00:00:00';
const endDay = '2018-06-16T00:00:00';
const project = {
    data: {
        id: '1',
        name: 'Sample Project',
    },
};
const customer = {
    data: {
        id: '1',
        name: 'Sample Customer',
    },
};
const service = {
    data: {
        id: '1',
        name: 'Sample Service',
    },
};
const entries = {
    data: range_1.default(0, 6).map(index => ({
        duration: Math.floor(Math.random() * 9 + 1),
        date: moment_1.default(startDay)
            .add(index, 'days')
            .format(),
    })),
};
react_2.storiesOf('TimehsheetRowDisplay', module).add('Default', addon_info_1.withInfo('Default')(() => (react_1.default.createElement("div", null,
    react_1.default.createElement("div", { style: { margin: 10 } },
        react_1.default.createElement(index_1.default, { project: project, startWeekDay: startDay, endWeekDay: endDay, service: service, timeSheetEntries: entries }),
        react_1.default.createElement(index_1.default, { hideDaysLabel: true, customer: customer, startWeekDay: startDay, endWeekDay: endDay, service: service, timeSheetEntries: entries }))))));
//# sourceMappingURL=index.story.js.map