import { _ as __rest } from './tslib.es6-708e7260.js';
import React__default from 'react';
import { u as useTranslations } from './index-8cd8aef7.js';
import { C as CommonGAssets } from './index-c21070e4.js';
import { H as HealthToolCardWrapper } from './index-859ec744.js';
import { B as BmiForm } from './index-56fe35d8.js';
import './translationsContext-cc698d60.js';
import './constantsDomainLocales.js';
import './Locale-3534825c.js';
import './constantsIsProduction.js';
import '@mantine/core';
import '@hhgtech/icons/core';
import '@hhgtech/icons/other';
import './index-3d035e54.js';
import '@mantine/hooks';
import './index-5282fcb5.js';
import './index-8daef9a0.js';
import './utils-3346ba5f.js';
import '@emotion/styled';
import '@mantine/carousel';
import './index-cb974729.js';
import './index-fdb7afd2.js';
import 'dayjs';
import './index-b3165fed.js';
import '@mantine/notifications';
import './index-7a01bd3b.js';
import 'date-fns/locale';
import './constantsSite.js';
import './constantsRiskScreener.js';
import './miscTheme.js';
import './shared-d9474794.js';
import 'classnames';
import 'uuid';
import './useUniqueId-2333b152.js';
import '@emotion/react';
import './index-4ecade52.js';
import '@mantine/dates';
import './index.styles-0c85f1b9.js';
import './index-d5862078.js';
import './context-7b6e777a.js';
import 'react-hook-form';
import './useHealthToolCache-2580e678.js';
import './miscGetDynamicHealthTool.js';
import './normalizeLink-762be037.js';
import './core-8c61d4bb.js';
import './constants-2a4290ce.js';
import './index-57ad0c12.js';
import 'react-keyed-flatten-children';
import './ChevronDown-d96d5d35.js';
import './index-105ae47c.js';
import './embeddedHeathToolCards_helpers.js';

const BMICardEmbed = (_a) => {
    var _b, _c, _d;
    var { bmiContent, bmiGenerated, bmiUnit, defaultUnitSystem, formProps } = _a, props = __rest(_a, ["bmiContent", "bmiGenerated", "bmiUnit", "defaultUnitSystem", "formProps"]);
    const { t } = useTranslations();
    return (React__default.createElement(HealthToolCardWrapper, Object.assign({}, props),
        React__default.createElement(HealthToolCardWrapper.Banner, { isRevamp: true, icon: React__default.createElement("img", { alt: "health-tool-icon", src: (bmiContent === null || bmiContent === void 0 ? void 0 : bmiContent.featured_image) ||
                    CommonGAssets.getAssetPath('health-tools/bmi.svg'), loading: "lazy" }), heading: (bmiContent === null || bmiContent === void 0 ? void 0 : bmiContent.title) || t('bmi.heading'), medicalReview: {
                link: (_b = bmiContent === null || bmiContent === void 0 ? void 0 : bmiContent.reviewBy) === null || _b === void 0 ? void 0 : _b.link,
                reviewer: (_c = bmiContent === null || bmiContent === void 0 ? void 0 : bmiContent.reviewBy) === null || _c === void 0 ? void 0 : _c.reviewer,
                date: (_d = bmiContent === null || bmiContent === void 0 ? void 0 : bmiContent.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, defaultUnitSystem: defaultUnitSystem }, formProps)))));
};

export { BMICardEmbed };
