
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="be66e550-7994-5f0e-9769-01b75e23067f")}catch(e){}}();
import{j as e}from"./jsx-runtime-BjG_zV1W.js";import{c as o}from"./index-x2da_zcv.js";import{S as g,a as u}from"./CreateAction-DJseQcAV.js";import{T as t}from"./index-BdpAPpdN.js";import{d as p,L as n}from"./components-1fH5YjVo.js";import{u as f}from"./useTranslation-CfKJAmGY.js";import{F as y}from"./LockClosedIcon-BluoCUMI.js";const v=({title:l,message:c,cta:i,publication:a,theme:s,createActionType:x=u.GATED})=>{const{signupWidgetConfigs:d}=p("root"),{t:r}=f(),b=a.web_template.web_theme.color_background,m=a.web_template.web_theme.color_body;return e.jsxs("div",{className:o("mx-auto flex w-full flex-col items-center px-10",{"mb-10 bg-wt-text-on-background py-10 text-wt-background":s==="subscribe-gate"},{"max-w-xl bg-transparent":s==="subscribe-gate-bottom"},{"max-w-2xl":s!=="subscribe-gate-bottom"}),children:[a.private&&e.jsx(y,{className:"h-16 w-16"}),e.jsxs("div",{className:"flex flex-col space-y-2",children:[e.jsx(t,{as:"h2",type:"title",size:s==="subscribe-gate-bottom"?"2xl":"3xl",theme:s,className:"text-center text-3xl font-bold leading-tight tracking-normal",children:l}),e.jsx(t,{as:"p",type:"body",size:s==="subscribe-gate-bottom"?"md":"lg",theme:s,className:"text-center leading-tight tracking-normal",children:c})]}),e.jsx("div",{className:"w-full py-8",children:e.jsx(g,{signupStyles:{...d,buttonText:i,fontSize:s==="subscribe-gate-bottom"&&"sm",bodyTextColor:s==="subscribe-gate"?b:m},type:x,widgetId:"free-gated-content-recaptcha"})}),e.jsxs("div",{className:"pb-2",children:[e.jsxs(t,{as:"span",type:"body",theme:s,className:"flex items-center justify-center text-center text-sm",children:[r("login.already_a_subscriber"),e.jsxs(n,{to:"/login",className:"ml-1",children:[e.jsx("span",{className:o("underline underline-offset-1",{"text-wt-text-on-background":s!=="subscribe-gate"}),children:r("shared.cta.sign_in")}),"."]})]}),e.jsx(n,{to:"/",className:"cursor-pointer",children:e.jsx(t,{as:"span",type:"body",theme:s,className:"flex justify-center py-2 text-center text-sm sm:text-lg",children:e.jsx("span",{className:"text-sm underline underline-offset-1",children:r("login.not_now")})})})]})]})};export{v as F};
//# sourceMappingURL=FreeGatedContent-Bf5A9HrU.js.map

//# debugId=be66e550-7994-5f0e-9769-01b75e23067f
