"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../../../../utils/cn/cn.cjs.js"),n=require("../../../../src/modules/HSModal/components/MailchimpModal/mailchimpModal.module.css"),k=require("../../../../types/analytics/analytics.cjs.js"),l=require("../../../../components/Typography/Typography.cjs.js"),q=require("../Newsletter/Newsletter.cjs.js"),v="https://hook.us2.make.com/1pdxfhs8945s62ritw768u66p2weqoq6",N=({title:s,description:a,buttonText:o,image:i,layout:c="plain-column",colorScheme:t="light",onCloseCallback:p,onClickCallback:d,cancelButtonText:u="no, thanks",tags:h,placeholder:m,trackingEvent:y,trackingLocation:g})=>{const x=j=>{j.stopPropagation()};return e.jsxs("div",{className:r.cn(n.contentWrapper,n[t]),"data-image-position":c,onClick:x,children:[e.jsxs("div",{className:r.cn(n.content,n[t]),children:[(s||a)&&e.jsxs("div",{className:n.text,children:[s&&e.jsx(l.Typography,{defaultVariant:"headingLg",children:s}),a&&e.jsx(l.Typography,{defaultVariant:"bodySm",children:a})]}),e.jsx(q.Newsletter,{buttonText:o,cancelButtonText:u,colorScheme:t,onCloseCallback:p,onClickCallback:d,tags:h,placeholder:m,trackingEvent:y||k.EAnalyticsEvent.mailchimpSubmitClicked,trackingLocation:g,webhookUrl:v})]}),i&&c!=="plain-column"&&e.jsx("div",{className:n.imageWrapper,children:e.jsx("div",{style:{backgroundImage:`url(${i})`},className:n.image})})]})};exports.MailchimpModal=N;
