"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const React = tslib_1.__importStar(require("react"));
const models_1 = require("../../models/index.js");
const CombinedPriceDetailed_1 = tslib_1.__importDefault(require("./CombinedPriceDetailed/CombinedPriceDetailed.js"));
const PriceDescription_1 = tslib_1.__importDefault(require("./PriceDescription/PriceDescription.js"));
const PriceDetails_1 = tslib_1.__importDefault(require("./PriceDetails/PriceDetails.js"));
const SeparatePriceDetailed_1 = tslib_1.__importDefault(require("./SeparatePriceDetailed/SeparatePriceDetailed.js"));
// eslint-disable-next-line valid-jsdoc
/** @deprecated */
const PriceDetailed = (props) => {
    const { priceType = models_1.PriceDetailsType.SETTINGS, items = [], numberGroupItems = 1, description, details, foldable, labelsDefaultText, isCombined = false, useMixedView = false, border, } = props;
    const { titleSize: descriptionTitleSize = 'l', descriptionSize = 'm', titleColor: descriptionTitleColor = 'cornflower', } = description || {};
    const { titleSize: detailsTitleSize = 's', descriptionSize: detailsDescriptionSize = 'm' } = details || {};
    const getDescriptionComponent = (priceDescription) => {
        return ((0, jsx_runtime_1.jsx)(PriceDescription_1.default, { ...priceDescription, titleSize: descriptionTitleSize, descriptionSize: descriptionSize, colorTitle: descriptionTitleColor, labelsDefaultText: labelsDefaultText }));
    };
    const getDetailsComponent = (priceDetails) => {
        return ((0, jsx_runtime_1.jsx)(PriceDetails_1.default, { items: priceDetails, type: priceType, foldable: foldable, titleSize: detailsTitleSize, descriptionSize: detailsDescriptionSize, useMixedView: useMixedView }));
    };
    return ((0, jsx_runtime_1.jsx)(React.Fragment, { children: isCombined ? ((0, jsx_runtime_1.jsx)(CombinedPriceDetailed_1.default, { items: items, numberGroupItems: numberGroupItems, border: border, useMixedView: useMixedView, getDescriptionComponent: getDescriptionComponent, getDetailsComponent: getDetailsComponent })) : ((0, jsx_runtime_1.jsx)(SeparatePriceDetailed_1.default, { items: items, border: border, getDescriptionComponent: getDescriptionComponent, getDetailsComponent: getDetailsComponent })) }));
};
exports.default = PriceDetailed;
//# sourceMappingURL=PriceDetailed.js.map
