UNPKG

@hhgtech/hhg-components

Version:
69 lines (62 loc) 3.41 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var tslib_es6 = require('./tslib.es6-5033cbef.js'); var React = require('react'); var index$1 = require('./index-84832bc4.js'); var index = require('./index-034cefcd.js'); var healthToolsCardWrapper = require('./index-adb92a94.js'); require('@mantine/core'); require('@mantine/form'); require('./index-d62fced9.js'); require('@hhgtech/icons/other'); require('@mantine/hooks'); require('./index-68615221.js'); require('./utils-8e23afe2.js'); require('@emotion/styled'); require('@mantine/carousel'); require('./index-e5454498.js'); require('./text-af5ab4c9.js'); require('./index-6d3687b7.js'); require('dayjs'); require('./index-6c909f71.js'); require('./Locale-ad67764b.js'); require('@mantine/notifications'); require('./index-02a489d8.js'); require('date-fns/locale'); require('./constantsSite.js'); require('./constantsDomainLocales.js'); require('./constantsRiskScreener.js'); require('./constantsIsProduction.js'); require('./miscTheme.js'); require('./shared-a2f1ce7d.js'); require('classnames'); require('./useUniqueId-d1da65c9.js'); require('@hhgtech/icons/core'); require('./index-f3a410ea.js'); require('./index-c7f729c9.js'); require('@mantine/dates'); require('./index.styles-90997e57.js'); require('./index-e9201988.js'); require('./translationsContext-a73ceb20.js'); require('./index-e09c89e1.js'); require('./constants-9dfd8e58.js'); require('./index-a4d319f4.js'); require('react-keyed-flatten-children'); require('./index-d75145b9.js'); require('./miscDefaultClassWrapper.js'); function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; } var React__default = /*#__PURE__*/_interopDefault(React); const BabyGrowthCardEmbed = (_a) => { var _b, _c, _d; var { babyGrowthContent, formProps } = _a, props = tslib_es6.__rest(_a, ["babyGrowthContent", "formProps"]); return (React__default["default"].createElement(healthToolsCardWrapper.HealthToolCardWrapper, Object.assign({}, props), React__default["default"].createElement(healthToolsCardWrapper.HealthToolCardWrapper.Banner, { icon: React__default["default"].createElement("img", { className: "embedded-icon", alt: "health-tool-icon", src: (babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.featuredImage) || index.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["default"].createElement(healthToolsCardWrapper.HealthToolCardWrapper.Body, null, React__default["default"].createElement(index$1.BabyGrowthForm, Object.assign({}, formProps))))); }; exports.BabyGrowthCardEmbed = BabyGrowthCardEmbed;