import{j as s,ab as d,e5 as v,c8 as z,r as g,t as H,bA as J,T as u,bx as R,b5 as X,dn as Q,cc as S,dp as V}from"./index-CNnTZTc7.js";import{u as F}from"./useWindowSize-CksQ0guy.js";import{G as E}from"./getTrustedformCertURL-D1EGlseA.js";const U="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='17.521'%20height='13.104'%20viewBox='0%200%2017.521%2013.104'%3e%3cg%20id='Group_1674'%20data-name='Group%201674'%20transform='translate(0%200.76)'%3e%3cg%20id='arrow'%20transform='matrix(0,%201,%20-1,%200,%2016,%200)'%3e%3cpath%20id='Path_1137'%20data-name='Path%201137'%20d='M0,5.641,5.792,0l5.792,5.641'%20fill='none'%20stroke='%231157ee'%20stroke-width='2.18'/%3e%3c/g%3e%3cline%20id='Line_647'%20data-name='Line%20647'%20x2='16'%20transform='translate(0%205.792)'%20fill='none'%20stroke='%231157ee'%20stroke-width='2'/%3e%3c/g%3e%3c/svg%3e",O="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='17.521'%20height='13.104'%20viewBox='0%200%2017.521%2013.104'%20%3e%3cg%20id='Group_1674'%20data-name='Group%201674'%20transform='translate(0%200.76)'%3e%3cg%20id='arrow'%20transform='matrix(0,%201,%20-1,%200,%2016,%200)'%3e%3cpath%20id='Path_1137'%20data-name='Path%201137'%20d='M0,5.641,5.792,0l5.792,5.641'%20fill='none'%20stroke='%234c5060'%20stroke-width='2.18'%20/%3e%3c/g%3e%3cline%20id='Line_647'%20data-name='Line%20647'%20x2='16'%20transform='translate(0%205.792)'%20fill='none'%20stroke='%234c5060'%20stroke-width='2'%20/%3e%3c/g%3e%3c/svg%3e",f="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='17.521'%20height='13.104'%20viewBox='0%200%2017.521%2013.104'%3e%3cg%20id='Group_1674'%20data-name='Group%201674'%20transform='translate(0%200.76)'%3e%3cg%20id='arrow'%20transform='matrix(0,%201,%20-1,%200,%2016,%200)'%3e%3cpath%20id='Path_1137'%20data-name='Path%201137'%20d='M0,5.641,5.792,0l5.792,5.641'%20fill='none'%20stroke='%23fff'%20stroke-width='2.18'/%3e%3c/g%3e%3cline%20id='Line_647'%20data-name='Line%20647'%20x2='16'%20transform='translate(0%205.792)'%20fill='none'%20stroke='%23fff'%20stroke-width='2'/%3e%3c/g%3e%3c/svg%3e",K="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='17.521'%20height='13.104'%20viewBox='0%200%2017.521%2013.104'%3e%3cg%20id='Group_1674'%20data-name='Group%201674'%20transform='translate(0%200.76)'%3e%3cline%20id='Line_647'%20data-name='Line%20647'%20x2='16'%20transform='translate(0%205.792)'%20fill='none'%20stroke='%231157ee'%20stroke-width='2.05'/%3e%3c/g%3e%3c/svg%3e",$="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='17.521'%20height='13.104'%20viewBox='0%200%2017.521%2013.104'%3e%3cg%20id='Group_1674'%20data-name='Group%201674'%20transform='translate(0%200.76)'%3e%3cline%20id='Line_647'%20data-name='Line%20647'%20x2='16'%20transform='translate(0%205.792)'%20fill='none'%20stroke='%23fff'%20stroke-width='2.05'/%3e%3c/g%3e%3c/svg%3e",q="_arrowForward_n7c9n_88",ii="_arrowButton_n7c9n_98",Ii="_arrow_n7c9n_88",si="_buttonIcon_n7c9n_147",ei="_line_n7c9n_153",ti="_disabled_n7c9n_178",n={arrowForward:q,arrowButton:ii,arrow:Ii,buttonIcon:si,line:ei,disabled:ti},W=({backgroundColor:i="blue",className:o,disabled:c,onClick:e=()=>{},text:t,type:a})=>{const b=[o,c?n.disabled:"",n.arrowButton].join(" "),w=c?O:i==="blue"?f:U;return s.jsxs("button",{className:b,disabled:c,id:typeof t=="string"?`${t==null?void 0:t.replaceAll(" ","_")}Button`:"",onClick:e,type:a,children:[t," ",i==="blue"&&s.jsxs("div",{className:n.buttonIcon,children:[s.jsx(d,{className:n.line,id:"lineIcon",image:$}),s.jsx(d,{className:n.arrowForward,id:"arrowIcon",image:w})]}),i==="white"&&s.jsxs("div",{className:n.buttonIcon,children:[s.jsx(d,{className:n.line,id:"lineIcon",image:K}),s.jsx(d,{className:n.arrowForward,id:"arrowIcon",image:w})]})]})},ci="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTI4IiBoZWlnaHQ9Ijk2IiB2aWV3Qm94PSIwIDAgMTI4IDk2Ij4KICA8ZGVmcz4KICAgIDxjbGlwUGF0aCBpZD0iY2xpcC1wYXRoIj4KICAgICAgPHJlY3QgaWQ9Im1hc2siIHdpZHRoPSIxMjgiIGhlaWdodD0iOTYiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDMyOCA2MjQpIiBmaWxsPSJyZWQiLz4KICAgIDwvY2xpcFBhdGg+CiAgICA8ZmlsdGVyIGlkPSJiZyIgeD0iLTU2IiB5PSItNDYuNjg5IiB3aWR0aD0iMjIxLjU2NSIgaGVpZ2h0PSIxNzguNTExIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8ZmVPZmZzZXQgZHk9IjMiIGlucHV0PSJTb3VyY2VBbHBoYSIvPgogICAgICA8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIzIiByZXN1bHQ9ImJsdXIiLz4KICAgICAgPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMC4xNjEiLz4KICAgICAgPGZlQ29tcG9zaXRlIG9wZXJhdG9yPSJpbiIgaW4yPSJibHVyIi8+CiAgICAgIDxmZUNvbXBvc2l0ZSBpbj0iU291cmNlR3JhcGhpYyIvPgogICAgPC9maWx0ZXI+CiAgPC9kZWZzPgogIDxnIGlkPSJHcm91cF84IiBkYXRhLW5hbWU9Ikdyb3VwIDgiIHRyYW5zZm9yb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b2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxIi8+CiAgICAgICAgICA8cGF0aCBpZD0iUGF0aF8yMDk3NSIgZGF0YS1uYW1lPSJQYXRoIDIwOTc1IiBkPSJNNC4zMTIsNC44OTJhNC4zOTIsNC4zOTIsMCwxLDEsOC43ODMsMFY4LjMwNyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEuODcyIC0wLjUpIiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxIi8+CiAgICAgICAgICA8cGF0aCBpZD0iUGF0aF8yMDk3NiIgZGF0YS1uYW1lPSJQYXRoIDIwOTc2IiBkPSJNMTEuOTI1LDE3LjcxMWExLjcxNSwxLjcxNSwwLDEsMC0yLjcwNywxLjRMOC43MjgsMjJoMi45NjRMMTEuMiwxOS4xMDdBMS43MSwxLjcxLDAsMCwwLDExLjkyNSwxNy43MTFaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMy4zNzggLTYuMDc5KSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMSIvPgogICAgICAgIDwvZz4KICAgICAgPC9nPgogICAgPC9nPgogIDwvZz4KPC9zdmc+Cg==",ni=`${z}/Subscribe`,oi=async(i,o,c,e,t=!1)=>{const a={email:i,trustedformUrl:o,subscriptionTo:c,...e&&{contentUrl:e},...t&&{agentPurlDetails:t}};return await v({url:ni,body:a})},gi="_banner__container_cc0tp_88",mi="_textInput_cc0tp_93",li="_buttonWithArrowAnimated_cc0tp_103",ri="_body2ClassName_cc0tp_107",di="_getAccessButton_cc0tp_111",bi="_subscribe_container_cc0tp_117",wi="_slide1_cc0tp_130",Ci="_slide2_cc0tp_135",ui="_slide3_cc0tp_140",Ni="_slide4_cc0tp_145",Ai="_slide5_cc0tp_150",Mi="_slide6_cc0tp_155",Li="_premiumIcon_cc0tp_160",Zi="_doNotMissTitle_cc0tp_167",ji="_getNewsTitle_cc0tp_201",xi="_input_container_cc0tp_246",yi="_labelClassName_cc0tp_265",Di="_emailContainer_cc0tp_274",hi="_isHomeBanner_cc0tp_289",I={banner__container:gi,textInput:mi,buttonWithArrowAnimated:li,body2ClassName:ri,getAccessButton:di,subscribe_container:bi,slide1:wi,slide2:Ci,slide3:ui,slide4:Ni,slide5:Ai,slide6:Mi,premiumIcon:Li,doNotMissTitle:Zi,getNewsTitle:ji,input_container:xi,labelClassName:yi,emailContainer:Di,isHomeBanner:hi},N={description:"Get the latest news and updates emailed directly to you.",event:"“news_and_update_email_optin",hidePremiumBanner:!0,newsLetter:!0,slideClassName:"slide0",title:"Stay In The Know",thankYouDescription:"Check your email for updates and news."},Pi=({slideData:i=N,onUpdateStatus:o,initialSubscribeStatus:c=!1,swiperRef:e})=>{const{width:t}=F(),[a,b]=g.useState(c);g.useEffect(()=>{b(c)},[c]);const{formState:{errors:L},handleSubmit:w,register:G,setError:p,clearErrors:Z,watch:j}=H(),[A,M]=g.useState(!1),{purlAgentData:P}=g.useContext(J);g.useEffect(()=>{const l=j(()=>{var r,C;Z("emailAddress"),M(!1),(C=(r=e==null?void 0:e.current)==null?void 0:r.autoplay)==null||C.stop()});return()=>l.unsubscribe()},[j,Z,e]);const Y=async l=>{var D,h;M(!0),S(N==null?void 0:N.event);const{emailAddress:r}=l,C=(i==null?void 0:i.slug)||window.location.href,m=await V(r);if(((D=m==null?void 0:m.email)==null?void 0:D.status)==="invalid"&&p("emailAddress",{type:"pattern"}),((h=m==null?void 0:m.email)==null?void 0:h.status)!=="invalid"){const T=E();await oi(r,T,"NewsLetter",C,P)==="Email added to subscription"&&(b(!0),M(!1),o==null||o(!0),S("news_and_update_email_optin"))}},x=g.useCallback(()=>{window.open(i.slug)},[i==null?void 0:i.slug]),B=g.useMemo(()=>s.jsxs(s.Fragment,{children:[s.jsx(u,{className:`${I.doNotMissTitle} ${I[i.slideClassName]}`,text:"Thank You",id:"thankYou"}),s.jsx(u,{className:`${I.getNewsTitle} ${I[i.slideClassName]}`,text:i.thankYouDescription,id:"thankYouDescription"}),i.slug?s.jsx(W,{className:`${I.buttonWithArrowAnimated} ${I.getAccessButton} ${I[i.slideClassName]}`,disabled:A,onClick:x,text:"Get Access",type:"submit",backgroundColor:i.buttonBackgroundColor}):null]}),[i,A,x]),k={backgroundImage:a?`url(${i.thankYouBannerImage})`:`url(${i.bannerImage})`},_={backgroundImage:a?`url(${i.thankYouBannerMobileImage})`:`url(${i.bannerMobileImage})`},y=i.slideClassName!=="slide0";return s.jsxs("div",{className:`${I.subscribe_container} ${I[i.slideClassName]} ${y?I.isHomeBanner:""}`,style:y?t<750?_:k:null,children:[s.jsx(d,{image:a?ai:ci,className:I.premiumIcon,id:`${a?"premiumUnlocked":"premiumLocked"}`}),a?B:s.jsxs(R.Fragment,{children:[s.jsx(u,{className:`${I.doNotMissTitle} ${I[i.slideClassName]}`,text:i.title,id:"title"}),s.jsx(u,{className:`${I.getNewsTitle} ${I[i.slideClassName]}`,text:i.description,id:"description"}),s.jsx(X,{}),s.jsxs("form",{className:I.input_container,onSubmit:w(l=>Y(l)),children:[s.jsx(Q,{body2ClassName:I.body2ClassName,error:L.emailAddress,fieldClassName:I.textInput,id:"emailAddress",placeholder:"Your e-mail",register:G,swiperRef:e,className:I.emailContainer,labelClassName:I.labelClassName}),s.jsx(W,{className:`${I.buttonWithArrowAnimated} ${I[i.slideClassName]}`,disabled:A,text:"Submit",type:"submit",backgroundColor:i.buttonBackgroundColor})]})]})]})};export{Pi as S,oi as c}; //# sourceMappingURL=index-BrThWtiY.js.map