"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Default = void 0;
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const utils_1 = require("../../.storybook/utils.js");
const PageConstructor_1 = require("../containers/PageConstructor/index.js");
const extensions_1 = require("../gravity-blocks/extensions/index.js");
const data_json_1 = tslib_1.__importDefault(require("../blocks/CardLayout/__stories__/data.json"));
const data_json_2 = tslib_1.__importDefault(require("../blocks/ExtendedFeatures/__stories__/data.json"));
const data_json_3 = tslib_1.__importDefault(require("../blocks/HeaderSlider/__stories__/data.json"));
const data_json_4 = tslib_1.__importDefault(require("../blocks/PromoFeaturesBlock/__stories__/data.json"));
const data_json_5 = tslib_1.__importDefault(require("../blocks/Slider/__stories__/data.json"));
const data_json_6 = tslib_1.__importDefault(require("../gravity-blocks/navigation/__stories__/data.json"));
exports.default = {
    title: 'Lab/Tokenization/Blocks/FeaturesAndCards',
    component: PageConstructor_1.PageConstructor,
};
const Template = ({ navigation, custom = {}, }) => ((0, jsx_runtime_1.jsx)(PageConstructor_1.PageConstructorProvider, { children: (0, jsx_runtime_1.jsx)(PageConstructor_1.PageConstructor, { extensions: (0, extensions_1.gravityBlocksExtension)({
            globalDefaults: {
                navigation,
            },
        }), custom: custom, content: {
            blocks: [
                // promo-features-block: default theme
                (0, utils_1.blockTransform)({
                    ...data_json_4.default.common,
                    ...data_json_4.default.defaultTheme.content,
                }),
                // promo-features-block: grey theme
                (0, utils_1.blockTransform)({
                    ...data_json_4.default.common,
                    ...data_json_4.default.greyTheme.content,
                }),
                // extended-features-block: default (3 cols)
                (0, utils_1.blockTransform)(data_json_2.default.default.content),
                // extended-features-block: with labels
                (0, utils_1.blockTransform)({
                    type: 'extended-features-block',
                    ...data_json_2.default.withLabel.content,
                }),
                // extended-features-block: 2 per row
                (0, utils_1.blockTransform)({
                    type: 'extended-features-block',
                    ...data_json_2.default.colSizes.two,
                }),
                // extended-features-block: 4 per row
                (0, utils_1.blockTransform)({
                    type: 'extended-features-block',
                    ...data_json_2.default.colSizes.four,
                }),
                // card-layout-block: basic cards
                {
                    ...data_json_1.default.default.content,
                    children: [
                        (0, utils_1.blockTransform)(data_json_1.default.cards.basicCard),
                        (0, utils_1.blockTransform)(data_json_1.default.cards.basicCard),
                        (0, utils_1.blockTransform)(data_json_1.default.cards.basicCard),
                    ],
                },
                // card-layout-block: layout items with images
                {
                    type: 'card-layout-block',
                    title: 'Card layout with layout items',
                    children: [
                        (0, utils_1.blockTransform)(data_json_1.default.cards.layoutItem),
                        (0, utils_1.blockTransform)(data_json_1.default.cards.layoutItem),
                        (0, utils_1.blockTransform)(data_json_1.default.cards.layoutItem),
                    ],
                },
                // card-layout-block: background cards
                {
                    type: 'card-layout-block',
                    title: 'Card layout with background cards',
                    children: [
                        (0, utils_1.blockTransform)(data_json_1.default.cards.backgroundCard),
                        (0, utils_1.blockTransform)(data_json_1.default.cards.backgroundCard),
                        (0, utils_1.blockTransform)(data_json_1.default.cards.backgroundCard),
                    ],
                },
                // card-layout-block: price cards
                {
                    type: 'card-layout-block',
                    title: 'Card layout with price cards',
                    children: [
                        (0, utils_1.blockTransform)(data_json_1.default.cards.priceCard),
                        (0, utils_1.blockTransform)(data_json_1.default.cards.priceCard),
                        (0, utils_1.blockTransform)(data_json_1.default.cards.priceCard),
                    ],
                },
                // slider-block: basic cards
                (0, utils_1.blockTransform)(data_json_5.default.default.content),
                // slider-block: quote cards
                (0, utils_1.blockTransform)(data_json_5.default.quoteCards.content),
                // slider-block: banner cards (subtitle already HTML — no blockTransform)
                data_json_5.default.banners.content,
                // header-slider-block: default
                (0, utils_1.blockTransform)({
                    type: 'header-slider-block',
                    ...data_json_3.default.default,
                }),
                // header-slider-block: with different slide themes
                (0, utils_1.blockTransform)({
                    type: 'header-slider-block',
                    ...data_json_3.default.withDifferentSlidesTheme,
                }),
            ],
        } }) }));
exports.Default = Template.bind({});
exports.Default.args = {
    navigation: {
        ...data_json_6.default.navigation,
        header: {
            ...data_json_6.default.navigation.header,
            withBorder: true,
            withBorderOnScroll: true,
        },
    },
};
//# sourceMappingURL=FeaturesAndCards.stories.js.map
