UNPKG

@hhgtech/hhg-components

Version:
60 lines (57 loc) 2.97 kB
import { _ as __rest } from './tslib.es6-ea4dfe68.js'; import React__default from 'react'; import { B as BabyGrowthForm } from './index-6aafb9e8.js'; import { C as CommonGAssets } from './index-ebe66e27.js'; import { H as HealthToolCardWrapper } from './index-f6bb4380.js'; import '@mantine/core'; import '@mantine/form'; import './index-5d405c0d.js'; import '@hhgtech/icons/other'; import '@mantine/hooks'; import './useScreenSize-981e5b51.js'; import '@emotion/styled'; import './utils-cb7242c7.js'; import '@mantine/carousel'; import './index-9f5659e8.js'; import './other-4ccb5568.js'; import './index-90813715.js'; import './Locale-f270bd9d.js'; import './miscTheme.js'; import './useMantineLocale-0c6bea99.js'; import '@mantine/notifications'; import './index-5e947517.js'; import 'date-fns/locale'; import './constantsSite.js'; import './constantsDomainLocales.js'; import './constantsRiskScreener.js'; import './constantsIsProduction.js'; import 'dayjs'; import './index-c68a0fa7.js'; import 'classnames'; import './useUniqueId-4305c9aa.js'; import '@hhgtech/icons/core'; import './index-afb403a9.js'; import '@mantine/dates'; import './index.styles-770020ac.js'; import './index-9d21b711.js'; import './translationsContext-3a9e3453.js'; import './index-c2190f6e.js'; import './constants-1cff32f1.js'; import './index-8a080703.js'; import 'react-keyed-flatten-children'; import './index-f931f6b2.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 };