UNPKG

@hhgtech/hhg-components

Version:
61 lines (58 loc) 2.98 kB
import { _ as __rest } from './tslib.es6-107c23d7.js'; import React__default from 'react'; import { B as BabyGrowthForm } from './index-a3514fcc.js'; import { C as CommonGAssets } from './index-461f72c9.js'; import { H as HealthToolCardWrapper } from './index-cf0a3778.js'; import '@mantine/core'; import '@mantine/form'; import './index-2a289da8.js'; import '@hhgtech/icons/other'; import '@mantine/hooks'; import './index-f880dc21.js'; import './utils-50ee2849.js'; import '@emotion/styled'; import '@mantine/carousel'; import './index-a5768260.js'; import './text-48aef61b.js'; import './index-6ae951d5.js'; import 'dayjs'; import './index-6482e49b.js'; import './Locale-f790f969.js'; import '@mantine/notifications'; import './index-e053201b.js'; import 'date-fns/locale'; import './constantsSite.js'; import './constantsDomainLocales.js'; import './constantsRiskScreener.js'; import './constantsIsProduction.js'; import './miscTheme.js'; import './shared-887e5430.js'; import 'classnames'; import './useUniqueId-17d236b9.js'; import '@hhgtech/icons/core'; import './index-92ed0334.js'; import './index-ee39db81.js'; import '@mantine/dates'; import './index.styles-05fc133d.js'; import './index-1215bc9f.js'; import './translationsContext-40d5537d.js'; import './index-7f1ed00b.js'; import './constants-a1998f96.js'; import './index-2cbb6421.js'; import 'react-keyed-flatten-children'; import './index-ade3e4b4.js'; import './miscDefaultClassWrapper.js'; const BabyGrowthCardEmbed = (_a) => { var _b, _c, _d; var { babyGrowthContent, formProps } = _a, props = __rest(_a, ["babyGrowthContent", "formProps"]); return (React__default.createElement(HealthToolCardWrapper, Object.assign({}, props), React__default.createElement(HealthToolCardWrapper.Banner, { icon: React__default.createElement("img", { className: "embedded-icon", alt: "health-tool-icon", src: (babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.featuredImage) || 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.createElement(HealthToolCardWrapper.Body, null, React__default.createElement(BabyGrowthForm, Object.assign({}, formProps))))); }; export { BabyGrowthCardEmbed };