import { __awaiter } from '../node_modules/.pnpm/@rollup_plugin-typescript@12.1.4_rollup@4.46.2_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.mjs';
import { jsx, jsxs } from 'react/jsx-runtime';
import { getTranslations } from 'next-intl/server';
import { GradientButton } from '../fuma/mdx/gradient-button.mjs';
import { cn } from '@windrun-huaiin/lib/utils';
import { richText } from './rich-text-expert.mjs';
import { responsiveSection } from './section-layout.mjs';

function CTA(_a) {
    return __awaiter(this, arguments, void 0, function* ({ locale, sectionClassName }) {
        const t = yield getTranslations({ locale, namespace: 'cta' });
        const data = {
            title: t('title'),
            eyesOn: t('eyesOn'),
            description1: richText(t, 'description1'),
            description2: t('description2'),
            button: t('button'),
            url: t('url')
        };
        return (jsx("section", { id: "cta", className: cn(responsiveSection, sectionClassName), children: jsxs("div", { className: "\n        py-3 sm:py-6 md:8\n        bg-linear-to-r from-[#f7f8fa] via-[#e0c3fc] to-[#b2fefa]\n        dark:bg-linear-to-r dark:from-[#2d0b4e] dark:via-[#6a3fa0] dark:to-[#3a185a]\n        rounded-2xl text-center\n        bg-size[200%_auto] animate-cta-gradient-wave\n        ", children: [jsxs("h2", { className: "text-3xl md:text-4xl font-bold mb-6", children: [data.title, " ", jsx("span", { className: "text-purple-400", children: data.eyesOn }), "?"] }), jsxs("p", { className: "text-base sm:text-xl mx-auto mb-8 max-w-3xl", children: [data.description1, jsx("br", {}), jsx("span", { className: "text-purple-400 text-xl sm:text-2xl", children: data.description2 })] }), jsx(GradientButton, { title: data.button, href: data.url, align: "center" })] }) }));
    });
}

export { CTA };
