'use strict';

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

var tslib_es6 = require('./tslib.es6-2c2ed574.js');
var React = require('react');
var index = require('./index-3643ff1b.js');
var index$1 = require('./index-b0ce6f8f.js');
var healthToolsCardWrapper = require('./index-95e46080.js');
var index$2 = require('./index-f602c136.js');
require('./translationsContext-78113889.js');
require('./constantsDomainLocales.js');
require('./Locale-fbe01177.js');
require('./constantsIsProduction.js');
require('@mantine/core');
require('@hhgtech/icons/core');
require('@hhgtech/icons/other');
require('./index-1e5e2223.js');
require('@mantine/hooks');
require('./index-59a9827e.js');
require('./index-af9c3c64.js');
require('./utils-b92a8b1c.js');
require('@emotion/styled');
require('@mantine/carousel');
require('./index-a31ed3e1.js');
require('./index-024542ed.js');
require('dayjs');
require('./index-da3b86cd.js');
require('@mantine/notifications');
require('./index-6ce6e395.js');
require('date-fns/locale');
require('./constantsSite.js');
require('./constantsRiskScreener.js');
require('./miscTheme.js');
require('./shared-60ad3e5a.js');
require('classnames');
require('uuid');
require('./useUniqueId-18ea5b53.js');
require('@emotion/react');
require('./index-3d563586.js');
require('@mantine/dates');
require('./index.styles-691de58f.js');
require('./index-eba09ec0.js');
require('./context-f7fe7a26.js');
require('react-hook-form');
require('./useHealthToolCache-d6ee00f6.js');
require('./miscGetDynamicHealthTool.js');
require('./normalizeLink-20e290e8.js');
require('./core-d07a5649.js');
require('./constants-762249c4.js');
require('./index-8df498d5.js');
require('react-keyed-flatten-children');
require('./ChevronDown-8067b030.js');
require('./index-d11d2b22.js');
require('./embeddedHeathToolCards_helpers.js');

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

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

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

exports.BMRCardEmbed = BMRCardEmbed;
