@hhgtech/hhg-components
Version:
Hello Health Group common components
68 lines (61 loc) • 3.4 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var tslib_es6 = require('./tslib.es6-92cccef3.js');
var React = require('react');
var index$1 = require('./index-9010eac7.js');
var index = require('./index-db44e8cb.js');
var healthToolsCardWrapper = require('./index-b75b5cc4.js');
require('@mantine/core');
require('@mantine/form');
require('./index-ae1a5588.js');
require('@hhgtech/icons/other');
require('@mantine/hooks');
require('./useScreenSize-30f50b76.js');
require('@emotion/styled');
require('./utils-7ba0038a.js');
require('@mantine/carousel');
require('./index-25f2e7a5.js');
require('./other-eb0ff2f6.js');
require('./index-ad7155cf.js');
require('./Locale-59ccf941.js');
require('./miscTheme.js');
require('./useMantineLocale-e946ce4a.js');
require('@mantine/notifications');
require('./index-1ee4ebb8.js');
require('date-fns/locale');
require('./constantsSite.js');
require('./constantsDomainLocales.js');
require('./constantsRiskScreener.js');
require('./constantsIsProduction.js');
require('dayjs');
require('./index-86fd931c.js');
require('classnames');
require('./useUniqueId-6e2f8c19.js');
require('@hhgtech/icons/core');
require('./index-7cc3b1ef.js');
require('@mantine/dates');
require('./index.styles-6dd86c20.js');
require('./index-c2c283f8.js');
require('./translationsContext-d63b6d32.js');
require('./index-9012f1d1.js');
require('./constants-ccbebd73.js');
require('./index-e2b3d37e.js');
require('react-keyed-flatten-children');
require('./index-1e1b5037.js');
require('./miscDefaultClassWrapper.js');
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefault(React);
const BabyGrowthCardEmbed = (_a) => {
var _b, _c, _d;
var { babyGrowthContent, formProps } = _a, props = tslib_es6.__rest(_a, ["babyGrowthContent", "formProps"]);
return (React__default["default"].createElement(healthToolsCardWrapper.HealthToolCardWrapper, Object.assign({}, props),
React__default["default"].createElement(healthToolsCardWrapper.HealthToolCardWrapper.Banner, { icon: React__default["default"].createElement("img", { className: "embedded-icon", alt: "health-tool-icon", src: (babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.featuredImage) ||
index.CommonGAssets.getAssetPath('health-tools/toolsIconBabyGrowth.svg'), loading: "lazy" }), heading: (babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.title) || '', medicalReview: {
link: (_b = babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.reviewBy) === null || _b === void 0 ? void 0 : _b.link,
reviewer: (_c = babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.reviewBy) === null || _c === void 0 ? void 0 : _c.reviewer.trim(),
date: (_d = babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.reviewBy) === null || _d === void 0 ? void 0 : _d.date,
} }),
React__default["default"].createElement(healthToolsCardWrapper.HealthToolCardWrapper.Body, null,
React__default["default"].createElement(index$1.BabyGrowthForm, Object.assign({}, formProps)))));
};
exports.BabyGrowthCardEmbed = BabyGrowthCardEmbed;