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