'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-4dad7b3d.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('@mantine/form');
require('./index-a11c6c43.js');
require('./index-8df498d5.js');
require('react-keyed-flatten-children');
require('./index-d11d2b22.js');

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

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

const BabyVaccineCardEmbed = (_a) => {
    var _b, _c, _d;
    var { babyVaccineContent, formProps } = _a, props = tslib_es6.__rest(_a, ["babyVaccineContent", "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: (babyVaccineContent === null || babyVaccineContent === void 0 ? void 0 : babyVaccineContent.featuredImage) ||
                    index$1.CommonGAssets.getAssetPath('health-tools/baby-vaccine-icon.svg'), loading: "lazy" }), heading: (babyVaccineContent === null || babyVaccineContent === void 0 ? void 0 : babyVaccineContent.title) || t('babyVaccineTool.heading'), medicalReview: {
                link: ((_b = babyVaccineContent === null || babyVaccineContent === void 0 ? void 0 : babyVaccineContent.reviewBy) === null || _b === void 0 ? void 0 : _b.link) || '',
                reviewer: ((_c = babyVaccineContent === null || babyVaccineContent === void 0 ? void 0 : babyVaccineContent.reviewBy) === null || _c === void 0 ? void 0 : _c.reviewer) || '',
                date: ((_d = babyVaccineContent === null || babyVaccineContent === void 0 ? void 0 : babyVaccineContent.reviewBy) === null || _d === void 0 ? void 0 : _d.date) || '',
            } }),
        React__default["default"].createElement(healthToolsCardWrapper.HealthToolCardWrapper.Body, null,
            React__default["default"].createElement(index$2.BabyVaccineForm, Object.assign({}, formProps)))));
};

exports.BabyVaccineCardEmbed = BabyVaccineCardEmbed;
