"use strict";
var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ThemeMini = exports.FixedCompany = exports.Button = exports.Vertical = exports.Horizontal = void 0;
const react_1 = __importDefault(require("react"));
const BookingWizard_1 = __importDefault(require("../components/generic/BookingWizard/BookingWizard"));
const OfflineEngineDefaults_1 = require("../../tests/offline/entry/OfflineEngineDefaults");
exports.default = {
    title: 'generic/BookingWizard',
    component: BookingWizard_1.default,
    argTypes: {},
};
const globalProperties = OfflineEngineDefaults_1.rsCompany.hotels.reduce((map, hotel) => {
    var _a, _b, _c, _d;
    map[(_a = hotel.address) === null || _a === void 0 ? void 0 : _a.city] = map[(_b = hotel.address) === null || _b === void 0 ? void 0 : _b.city] || [];
    (_d = map[(_c = hotel.address) === null || _c === void 0 ? void 0 : _c.city]) === null || _d === void 0 ? void 0 : _d.push({ id: hotel.hotelID, name: hotel.name });
    return map;
}, {});
const Template = (_a) => {
    var { properties } = _a, args = __rest(_a, ["properties"]);
    return react_1.default.createElement(BookingWizard_1.default, Object.assign({ properties: properties }, args));
};
exports.Horizontal = Template.bind({});
exports.Horizontal.args = {
    layout: 'horizontal',
    properties: globalProperties,
};
exports.Vertical = Template.bind({});
exports.Vertical.args = {
    layout: 'vertical',
    properties: globalProperties,
};
exports.Button = Template.bind({});
exports.Button.args = {
    layout: 'button',
    properties: globalProperties,
};
const FixedCompany = (_a) => {
    var { properties } = _a, props = __rest(_a, ["properties"]);
    return react_1.default.createElement(BookingWizard_1.default, Object.assign({ properties: globalProperties }, props));
};
exports.FixedCompany = FixedCompany;
exports.ThemeMini = Template.bind({});
exports.ThemeMini.args = {
    layout: 'horizontal-condensed',
    // theme: EBookingWizardTheme.Specific,
    properties: globalProperties,
};
exports.ThemeMini.parameters = {
    backgrounds: {
        default: 'dark',
    },
};
//# sourceMappingURL=BookingWizard.stories.js.map