@hhgtech/hhg-components
Version:
Hello Health Group common components
63 lines (60 loc) • 3.02 kB
JavaScript
import { _ as __rest } from './tslib.es6-00ab44b2.js';
import React__default from 'react';
import { B as BabyGrowthForm } from './index-cd8d64cb.js';
import { C as CommonGAssets } from './index-7adf994c.js';
import { H as HealthToolCardWrapper } from './index-76c27a99.js';
import '@mantine/core';
import '@mantine/form';
import './index-bd44bcb2.js';
import '@hhgtech/icons/other';
import '@mantine/hooks';
import './index-17c85f76.js';
import './index-50aea2c8.js';
import './utils-538169b3.js';
import '@emotion/styled';
import '@mantine/carousel';
import './index-0b67696c.js';
import './index-3f09210d.js';
import 'dayjs';
import './index-fe4471f4.js';
import './Locale-dc1237b9.js';
import '@mantine/notifications';
import './index-8c40504a.js';
import 'date-fns/locale';
import './constantsSite.js';
import './constantsDomainLocales.js';
import './constantsRiskScreener.js';
import './constantsIsProduction.js';
import './miscTheme.js';
import './shared-b07d1eb2.js';
import 'classnames';
import 'uuid';
import './useUniqueId-38cdf062.js';
import '@emotion/react';
import '@hhgtech/icons/core';
import './index-2d25b0f0.js';
import './index-0861b084.js';
import '@mantine/dates';
import './index.styles-3adef5f6.js';
import './index-09d9e570.js';
import './translationsContext-18f7b7e0.js';
import './index-04505e35.js';
import './context-41a96757.js';
import './constants-34703dc5.js';
import './index-c6190f14.js';
import 'react-keyed-flatten-children';
import './index-a002ff96.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 };