UNPKG

@hhgtech/hhg-components

Version:
61 lines (58 loc) 2.91 kB
import { _ as __rest } from './tslib.es6-107c23d7.js'; import React__default from 'react'; import { u as useTranslations } from './index-1215bc9f.js'; import { C as CommonGAssets } from './index-461f72c9.js'; import { H as HealthToolCardWrapper } from './index-cf0a3778.js'; import { O as OvulationForm } from './index-ef13fcdb.js'; import './translationsContext-40d5537d.js'; import './constantsDomainLocales.js'; import './Locale-f790f969.js'; import './constantsIsProduction.js'; import '@mantine/core'; import '@hhgtech/icons/other'; import './index-2a289da8.js'; import '@mantine/hooks'; import './index-f880dc21.js'; import './utils-50ee2849.js'; import '@emotion/styled'; import '@mantine/carousel'; import './index-a5768260.js'; import './text-48aef61b.js'; import './index-6ae951d5.js'; import 'dayjs'; import './index-6482e49b.js'; import '@mantine/notifications'; import './index-e053201b.js'; import 'date-fns/locale'; import './constantsSite.js'; import './constantsRiskScreener.js'; import './miscTheme.js'; import './shared-887e5430.js'; import 'classnames'; import './useUniqueId-17d236b9.js'; import '@hhgtech/icons/core'; import './index-92ed0334.js'; import '@mantine/dates'; import './index.styles-05fc133d.js'; import './index-7f1ed00b.js'; import './miscDefaultClassWrapper.js'; import '@mantine/form'; import './LastPeriod-ecf2b009.js'; import './index-ee39db81.js'; import './index-2cbb6421.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 };