'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 dataTransform = require('./dataTransform-a2855b2e.js');
var healthToolsCardWrapper = require('./index-95e46080.js');
var index$2 = require('./index-ce74fe39.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('./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('./constants-6d0b5b59.js');

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

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

const PWGCardEmbed = (_a) => {
    var _b;
    var { pwgContent, formProps } = _a, props = tslib_es6.__rest(_a, ["pwgContent", "formProps"]);
    const { t } = index.useTranslations();
    return (React__default["default"].createElement(healthToolsCardWrapper.HealthToolCardWrapper, Object.assign({ isPregTool: true }, props),
        React__default["default"].createElement(healthToolsCardWrapper.HealthToolCardWrapper.Banner, { icon: React__default["default"].createElement("img", { alt: "health-tool-icon", src: (pwgContent === null || pwgContent === void 0 ? void 0 : pwgContent.featuredImage) ||
                    index$1.CommonGAssets.getAssetPath('health-tools/pwg-icon.svg'), loading: "lazy" }), heading: (pwgContent === null || pwgContent === void 0 ? void 0 : pwgContent.title) || t('pregnancyWeightGain.heading'), medicalReview: {
                link: dataTransform.formatUserProfileUrl(pwgContent === null || pwgContent === void 0 ? void 0 : pwgContent.reviewedBy),
                reviewer: (_b = pwgContent === null || pwgContent === void 0 ? void 0 : pwgContent.reviewedBy) === null || _b === void 0 ? void 0 : _b.display_name,
                date: pwgContent === null || pwgContent === void 0 ? void 0 : pwgContent.reviewedDate,
            } }),
        React__default["default"].createElement(healthToolsCardWrapper.HealthToolCardWrapper.Body, null,
            React__default["default"].createElement(index$2.PWGForm, Object.assign({}, formProps)))));
};

exports.PWGCardEmbed = PWGCardEmbed;
