import { _ as __rest } from './tslib.es6-ab63fd84.js';
import React__default from 'react';
import { u as useTranslations } from './index-960c3169.js';
import { C as CommonGAssets } from './index-43584299.js';
import { H as HealthToolCardWrapper } from './index-789049e6.js';
import { B as BmiForm } from './index-5dd44171.js';
import './translationsContext-4de1415e.js';
import './constantsDomainLocales.js';
import './Locale-87b46912.js';
import './constantsIsProduction.js';
import '@mantine/core';
import '@hhgtech/icons/core';
import '@hhgtech/icons/other';
import './index-c3177e04.js';
import '@mantine/hooks';
import './index-38e03570.js';
import './index-74fcf0aa.js';
import './utils-32d7d5af.js';
import '@emotion/styled';
import '@mantine/carousel';
import './index-d0a1200e.js';
import './index-4e6b8a2b.js';
import 'dayjs';
import './index-91c6a49c.js';
import '@mantine/notifications';
import './index-a8162282.js';
import 'date-fns/locale';
import './constantsSite.js';
import './constantsRiskScreener.js';
import './miscTheme.js';
import './shared-3674950a.js';
import 'classnames';
import 'uuid';
import './useUniqueId-6d89c40a.js';
import '@emotion/react';
import './index-f71a880f.js';
import '@mantine/dates';
import './index.styles-3ba274d2.js';
import './index-f21110d2.js';
import './context-e9fa0aef.js';
import 'react-hook-form';
import './useHealthToolCache-872bf831.js';
import './miscGetDynamicHealthTool.js';
import './normalizeLink-0bc93fbf.js';
import './core-0cf3a3a7.js';
import './constants-67be5c94.js';
import './index-70e81356.js';
import 'react-keyed-flatten-children';
import './ChevronDown-8ce63f9a.js';
import './index-f3c67a5d.js';
import './embeddedHeathToolCards_helpers.js';

const BMRCardEmbed = (_a) => {
    var _b, _c, _d;
    var { bmrContent, bmiGenerated, bmiUnit, formProps } = _a, props = __rest(_a, ["bmrContent", "bmiGenerated", "bmiUnit", "formProps"]);
    const { t } = useTranslations();
    return (React__default.createElement(HealthToolCardWrapper, Object.assign({}, props),
        React__default.createElement(HealthToolCardWrapper.Banner, { icon: React__default.createElement("img", { alt: "health-tool-icon", src: (bmrContent === null || bmrContent === void 0 ? void 0 : bmrContent.featured_image) ||
                    CommonGAssets.getAssetPath('health-tools/bmr.svg'), loading: "lazy" }), heading: (bmrContent === null || bmrContent === void 0 ? void 0 : bmrContent.title) || t('bmr.heading'), medicalReview: {
                link: (_b = bmrContent === null || bmrContent === void 0 ? void 0 : bmrContent.reviewBy) === null || _b === void 0 ? void 0 : _b.link,
                reviewer: (_c = bmrContent === null || bmrContent === void 0 ? void 0 : bmrContent.reviewBy) === null || _c === void 0 ? void 0 : _c.reviewer,
                date: (_d = bmrContent === null || bmrContent === void 0 ? void 0 : bmrContent.reviewBy) === null || _d === void 0 ? void 0 : _d.date,
            } }),
        React__default.createElement(HealthToolCardWrapper.Body, null,
            React__default.createElement(BmiForm, Object.assign({ bmiGenerated: bmiGenerated, bmiUnit: bmiUnit, enableUnitPicker: true }, formProps, { submitProps: Object.assign(Object.assign({}, formProps === null || formProps === void 0 ? void 0 : formProps.submitProps), { dataEventAction: 'BMR' }) })))));
};

export { BMRCardEmbed };
