import { _ as __rest } from './tslib.es6-ab63fd84.js';
import React__default from 'react';
import { u as useTranslations } from './index-960c3169.js';
import { C as CommonGAssets } from './index-43584299.js';
import { H as HealthToolCardWrapper } from './index-789049e6.js';
import { O as OvulationForm } from './index-3e2acbf5.js';
import './translationsContext-4de1415e.js';
import './constantsDomainLocales.js';
import './Locale-87b46912.js';
import './constantsIsProduction.js';
import '@mantine/core';
import '@hhgtech/icons/core';
import '@hhgtech/icons/other';
import './index-c3177e04.js';
import '@mantine/hooks';
import './index-38e03570.js';
import './index-74fcf0aa.js';
import './utils-32d7d5af.js';
import '@emotion/styled';
import '@mantine/carousel';
import './index-d0a1200e.js';
import './index-4e6b8a2b.js';
import 'dayjs';
import './index-91c6a49c.js';
import '@mantine/notifications';
import './index-a8162282.js';
import 'date-fns/locale';
import './constantsSite.js';
import './constantsRiskScreener.js';
import './miscTheme.js';
import './shared-3674950a.js';
import 'classnames';
import 'uuid';
import './useUniqueId-6d89c40a.js';
import '@emotion/react';
import './index-f71a880f.js';
import '@mantine/dates';
import './index.styles-3ba274d2.js';
import './index-f21110d2.js';
import './context-e9fa0aef.js';
import '@mantine/form';
import './LastPeriod-c84be22b.js';
import './index-122829d2.js';
import './index-70e81356.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 };
