'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var tslib_es6 = require('./tslib.es6-725c4637.js');
var React = require('react');
var index = require('./index-366ce1c6.js');
var index$1 = require('./index-21f68464.js');
var healthToolsCardWrapper = require('./index-cea81f04.js');
var index$2 = require('./index-55a4e767.js');
require('./translationsContext-97a81b4f.js');
require('./constantsDomainLocales.js');
require('./Locale-a7d28fb5.js');
require('./constantsIsProduction.js');
require('@mantine/core');
require('@hhgtech/icons/core');
require('@hhgtech/icons/other');
require('./index-e157e748.js');
require('@mantine/hooks');
require('./index-b6868bb7.js');
require('./index-4f20b13e.js');
require('./utils-bab021dd.js');
require('@emotion/styled');
require('@mantine/carousel');
require('./index-09df9165.js');
require('./index-7ba9a85c.js');
require('dayjs');
require('./index-c4c60437.js');
require('@mantine/notifications');
require('./index-fdbb9e7c.js');
require('date-fns/locale');
require('./constantsSite.js');
require('./constantsRiskScreener.js');
require('./miscTheme.js');
require('./shared-ba5a4a75.js');
require('classnames');
require('uuid');
require('./useUniqueId-654b4339.js');
require('@emotion/react');
require('./index-943d5601.js');
require('@mantine/dates');
require('./index.styles-dcde8100.js');
require('./index-5b199312.js');
require('./context-62eb99bf.js');
require('react-hook-form');
require('./useHealthToolCache-e24f2e3e.js');
require('./miscGetDynamicHealthTool.js');
require('./normalizeLink-f26ab420.js');
require('./core-1795857a.js');
require('./constants-06859158.js');
require('./index-ded963fa.js');
require('react-keyed-flatten-children');
require('./ChevronDown-9a4594eb.js');
require('./index-d1b8fc8f.js');
require('./embeddedHeathToolCards_helpers.js');

function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefault(React);

const BMICardEmbed = (_a) => {
    var _b, _c, _d;
    var { bmiContent, bmiGenerated, bmiUnit, defaultUnitSystem, formProps } = _a, props = tslib_es6.__rest(_a, ["bmiContent", "bmiGenerated", "bmiUnit", "defaultUnitSystem", "formProps"]);
    const { t } = index.useTranslations();
    return (React__default["default"].createElement(healthToolsCardWrapper.HealthToolCardWrapper, Object.assign({}, props),
        React__default["default"].createElement(healthToolsCardWrapper.HealthToolCardWrapper.Banner, { isRevamp: true, icon: React__default["default"].createElement("img", { alt: "health-tool-icon", src: (bmiContent === null || bmiContent === void 0 ? void 0 : bmiContent.featured_image) ||
                    index$1.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["default"].createElement(healthToolsCardWrapper.HealthToolCardWrapper.Body, null,
            React__default["default"].createElement(index$2.BmiForm, Object.assign({ bmiGenerated: bmiGenerated, bmiUnit: bmiUnit, defaultUnitSystem: defaultUnitSystem }, formProps)))));
};

exports.BMICardEmbed = BMICardEmbed;
