UNPKG

@hhgtech/hhg-components

Version:
63 lines (60 loc) 2.95 kB
import { _ as __rest } from './tslib.es6-00ab44b2.js'; import React__default from 'react'; import { u as useTranslations } from './index-09d9e570.js'; import { C as CommonGAssets } from './index-7adf994c.js'; import { H as HealthToolCardWrapper } from './index-76c27a99.js'; import { O as OvulationForm } from './index-1c497502.js'; import './translationsContext-18f7b7e0.js'; import './constantsDomainLocales.js'; import './Locale-dc1237b9.js'; import './constantsIsProduction.js'; import '@mantine/core'; import '@hhgtech/icons/core'; import '@hhgtech/icons/other'; import './index-bd44bcb2.js'; 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 '@mantine/notifications'; import './index-8c40504a.js'; import 'date-fns/locale'; import './constantsSite.js'; import './constantsRiskScreener.js'; import './miscTheme.js'; import './shared-b07d1eb2.js'; import 'classnames'; import 'uuid'; import './useUniqueId-38cdf062.js'; import '@emotion/react'; import './index-2d25b0f0.js'; import '@mantine/dates'; import './index.styles-3adef5f6.js'; import './index-04505e35.js'; import './context-41a96757.js'; import '@mantine/form'; import './LastPeriod-e51d0bd1.js'; import './index-0861b084.js'; import './index-c6190f14.js'; import 'react-keyed-flatten-children'; const OvulationCardEmbed = (_a) => { var _b; var { ovulationPageInfo, expertUrl, formProps, isMobile } = _a, props = __rest(_a, ["ovulationPageInfo", "expertUrl", "formProps", "isMobile"]); const { t } = useTranslations(); return (React__default.createElement(HealthToolCardWrapper, Object.assign({ isPregTool: true }, props), React__default.createElement(HealthToolCardWrapper.Banner, { icon: React__default.createElement("img", { alt: "health-tool-icon", src: (ovulationPageInfo === null || ovulationPageInfo === void 0 ? void 0 : ovulationPageInfo.featured_image) || CommonGAssets.getAssetPath('health-tools/ovulation-icon.svg'), loading: "lazy" }), heading: (ovulationPageInfo === null || ovulationPageInfo === void 0 ? void 0 : ovulationPageInfo.title) || t('healthTools.ovulationCalculator'), medicalReview: { link: expertUrl, reviewer: (_b = ovulationPageInfo === null || ovulationPageInfo === void 0 ? void 0 : ovulationPageInfo.reviewed_by) === null || _b === void 0 ? void 0 : _b.display_name, date: ovulationPageInfo === null || ovulationPageInfo === void 0 ? void 0 : ovulationPageInfo.reviewed_date, } }), React__default.createElement(HealthToolCardWrapper.Body, null, React__default.createElement(OvulationForm, Object.assign({ isMobile: isMobile }, formProps))))); }; export { OvulationCardEmbed };