import { _ as __rest } from './tslib.es6-708e7260.js';
import React__default from 'react';
import { u as useTranslations } from './index-8cd8aef7.js';
import { C as CommonGAssets } from './index-c21070e4.js';
import { H as HealthToolCardWrapper } from './index-859ec744.js';
import { O as OvulationForm } from './index-56d1e623.js';
import './translationsContext-cc698d60.js';
import './constantsDomainLocales.js';
import './Locale-3534825c.js';
import './constantsIsProduction.js';
import '@mantine/core';
import '@hhgtech/icons/core';
import '@hhgtech/icons/other';
import './index-3d035e54.js';
import '@mantine/hooks';
import './index-5282fcb5.js';
import './index-8daef9a0.js';
import './utils-3346ba5f.js';
import '@emotion/styled';
import '@mantine/carousel';
import './index-cb974729.js';
import './index-fdb7afd2.js';
import 'dayjs';
import './index-b3165fed.js';
import '@mantine/notifications';
import './index-7a01bd3b.js';
import 'date-fns/locale';
import './constantsSite.js';
import './constantsRiskScreener.js';
import './miscTheme.js';
import './shared-d9474794.js';
import 'classnames';
import 'uuid';
import './useUniqueId-2333b152.js';
import '@emotion/react';
import './index-4ecade52.js';
import '@mantine/dates';
import './index.styles-0c85f1b9.js';
import './index-d5862078.js';
import './context-7b6e777a.js';
import '@mantine/form';
import './LastPeriod-000adffc.js';
import './index-ea305c8c.js';
import './index-57ad0c12.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 };
