@hhgtech/hhg-components
Version:
Hello Health Group common components
63 lines (60 loc) • 3.02 kB
JavaScript
import { _ as __rest } from './tslib.es6-ab63fd84.js';
import React__default from 'react';
import { B as BabyGrowthForm } from './index-40133f69.js';
import { C as CommonGAssets } from './index-43584299.js';
import { H as HealthToolCardWrapper } from './index-789049e6.js';
import '@mantine/core';
import '@mantine/form';
import './index-c3177e04.js';
import '@hhgtech/icons/other';
import '@mantine/hooks';
import './index-38e03570.js';
import './index-74fcf0aa.js';
import './utils-32d7d5af.js';
import '@emotion/styled';
import '@mantine/carousel';
import './index-d0a1200e.js';
import './index-4e6b8a2b.js';
import 'dayjs';
import './index-91c6a49c.js';
import './Locale-87b46912.js';
import '@mantine/notifications';
import './index-a8162282.js';
import 'date-fns/locale';
import './constantsSite.js';
import './constantsDomainLocales.js';
import './constantsRiskScreener.js';
import './constantsIsProduction.js';
import './miscTheme.js';
import './shared-3674950a.js';
import 'classnames';
import 'uuid';
import './useUniqueId-6d89c40a.js';
import '@emotion/react';
import '@hhgtech/icons/core';
import './index-f71a880f.js';
import './index-122829d2.js';
import '@mantine/dates';
import './index.styles-3ba274d2.js';
import './index-960c3169.js';
import './translationsContext-4de1415e.js';
import './index-f21110d2.js';
import './context-e9fa0aef.js';
import './constants-2f2c9886.js';
import './index-70e81356.js';
import 'react-keyed-flatten-children';
import './index-f3c67a5d.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 };