@hhgtech/hhg-components
Version:
Hello Health Group common components
63 lines (60 loc) • 3.02 kB
JavaScript
import { _ as __rest } from './tslib.es6-7984ef17.js';
import React__default from 'react';
import { B as BabyGrowthForm } from './index-9118210e.js';
import { C as CommonGAssets } from './index-b36b2caa.js';
import { H as HealthToolCardWrapper } from './index-34089895.js';
import '@mantine/core';
import '@mantine/form';
import './index-cafbd842.js';
import '@hhgtech/icons/other';
import '@mantine/hooks';
import './text-908bab85.js';
import './index-2558182c.js';
import './utils-7cb7f4d8.js';
import '@emotion/styled';
import '@mantine/carousel';
import './index-f28ed80d.js';
import './index-87c5a102.js';
import 'dayjs';
import './index-539ab53a.js';
import './Locale-d401e4f0.js';
import '@mantine/notifications';
import './index-18cb16b6.js';
import 'date-fns/locale';
import './constantsSite.js';
import './constantsDomainLocales.js';
import './constantsRiskScreener.js';
import './constantsIsProduction.js';
import './miscTheme.js';
import './shared-41a6c7dc.js';
import 'classnames';
import 'uuid';
import './useUniqueId-30dd6f86.js';
import '@emotion/react';
import '@hhgtech/icons/core';
import './index-141afb90.js';
import './index-d98c209b.js';
import '@mantine/dates';
import './index.styles-50872c8c.js';
import './index-47a94d34.js';
import './translationsContext-573d0b98.js';
import './index-36cc3053.js';
import './constants-821560f5.js';
import './index-acefdf85.js';
import 'react-keyed-flatten-children';
import './index-dd2821c2.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 };