import{r as c,bU as H,bV as z,bX as D,e4 as O,c1 as J,c3 as V,bK as K,bS as A,e5 as $,j as i,bW as _,c5 as E,e6 as q,ab as Z,e7 as ss,c7 as es,t as is,bA as os,T as Y,bx as ts,b5 as ns,dm as as,cb as F,dn as rs}from"./index-BbiZcFRx.js";import{C as cs}from"./ExpandMore-DzP0_5R5.js";import{u as ls}from"./useWindowSize-C66I80Fn.js";import{G as ds}from"./getTrustedformCertURL-D1EGlseA.js";const U=c.createContext({});function Is(s){return z("MuiAccordion",s)}const R=H("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),ms=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],gs=s=>{const{classes:e,square:o,expanded:t,disabled:a,disableGutters:r}=s;return E({root:["root",!o&&"rounded",t&&"expanded",a&&"disabled",!r&&"gutters"],region:["region"]},Is,e)},us=D(O,{name:"MuiAccordion",slot:"Root",overridesResolver:(s,e)=>{const{ownerState:o}=s;return[{[`& .${R.region}`]:e.region},e.root,!o.square&&e.rounded,!o.disableGutters&&e.gutters]}})(({theme:s})=>{const e={duration:s.transitions.duration.shortest};return{position:"relative",transition:s.transitions.create(["margin"],e),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(s.vars||s).palette.divider,transition:s.transitions.create(["opacity","background-color"],e)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${R.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${R.disabled}`]:{backgroundColor:(s.vars||s).palette.action.disabledBackground}}},({theme:s})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(s.vars||s).shape.borderRadius,borderTopRightRadius:(s.vars||s).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(s.vars||s).shape.borderRadius,borderBottomRightRadius:(s.vars||s).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${R.expanded}`]:{margin:"16px 0"}}}]})),de=c.forwardRef(function(e,o){const t=J({props:e,name:"MuiAccordion"}),{children:a,className:r,defaultExpanded:l=!1,disabled:m=!1,disableGutters:I=!1,expanded:j,onChange:g,square:N=!1,slots:x={},slotProps:u={},TransitionComponent:y,TransitionProps:b}=t,p=V(t,ms),[d,W]=K({controlled:j,default:l,name:"Accordion",state:"expanded"}),G=c.useCallback(X=>{W(!d),g&&g(X,!d)},[d,g,W]),[S,...P]=c.Children.toArray(a),M=c.useMemo(()=>({expanded:d,disabled:m,disableGutters:I,toggle:G}),[d,m,I,G]),h=A({},t,{square:N,disabled:m,disableGutters:I,expanded:d}),k=gs(h),C=A({transition:y},x),B=A({transition:b},u),[v,f]=$("transition",{elementType:cs,externalForwardedProps:{slots:C,slotProps:B},ownerState:h});return i.jsxs(us,A({className:_(k.root,r),ref:o,ownerState:h,square:N},p,{children:[i.jsx(U.Provider,{value:M,children:S}),i.jsx(v,A({in:d,timeout:"auto"},f,{children:i.jsx("div",{"aria-labelledby":S.props.id,id:S.props["aria-controls"],role:"region",className:k.region,children:P})}))]}))});function bs(s){return z("MuiAccordionDetails",s)}H("MuiAccordionDetails",["root"]);const ps=["className"],Cs=s=>{const{classes:e}=s;return E({root:["root"]},bs,e)},ws=D("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(s,e)=>e.root})(({theme:s})=>({padding:s.spacing(1,2,2)})),Ie=c.forwardRef(function(e,o){const t=J({props:e,name:"MuiAccordionDetails"}),{className:a}=t,r=V(t,ps),l=t,m=Cs(l);return i.jsx(ws,A({className:_(m.root,a),ref:o,ownerState:l},r))});function As(s){return z("MuiAccordionSummary",s)}const L=H("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Ns=["children","className","expandIcon","focusVisibleClassName","onClick"],xs=s=>{const{classes:e,expanded:o,disabled:t,disableGutters:a}=s;return E({root:["root",o&&"expanded",t&&"disabled",!a&&"gutters"],focusVisible:["focusVisible"],content:["content",o&&"expanded",!a&&"contentGutters"],expandIconWrapper:["expandIconWrapper",o&&"expanded"]},As,e)},ys=D(q,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(s,e)=>e.root})(({theme:s})=>{const e={duration:s.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:s.spacing(0,2),transition:s.transitions.create(["min-height","background-color"],e),[`&.${L.focusVisible}`]:{backgroundColor:(s.vars||s).palette.action.focus},[`&.${L.disabled}`]:{opacity:(s.vars||s).palette.action.disabledOpacity},[`&:hover:not(.${L.disabled})`]:{cursor:"pointer"},variants:[{props:o=>!o.disableGutters,style:{[`&.${L.expanded}`]:{minHeight:64}}}]}}),Ms=D("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(s,e)=>e.content})(({theme:s})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:s.transitions.create(["margin"],{duration:s.transitions.duration.shortest}),[`&.${L.expanded}`]:{margin:"20px 0"}}}]})),hs=D("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(s,e)=>e.expandIconWrapper})(({theme:s})=>({display:"flex",color:(s.vars||s).palette.action.active,transform:"rotate(0deg)",transition:s.transitions.create("transform",{duration:s.transitions.duration.shortest}),[`&.${L.expanded}`]:{transform:"rotate(180deg)"}})),me=c.forwardRef(function(e,o){const t=J({props:e,name:"MuiAccordionSummary"}),{children:a,className:r,expandIcon:l,focusVisibleClassName:m,onClick:I}=t,j=V(t,Ns),{disabled:g=!1,disableGutters:N,expanded:x,toggle:u}=c.useContext(U),y=d=>{u&&u(d),I&&I(d)},b=A({},t,{expanded:x,disabled:g,disableGutters:N}),p=xs(b);return i.jsxs(ys,A({focusRipple:!1,disableRipple:!0,disabled:g,component:"div","aria-expanded":x,className:_(p.root,r),focusVisibleClassName:_(p.focusVisible,m),onClick:y,ref:o,ownerState:b},j,{children:[i.jsx(Ms,{className:p.content,ownerState:b,children:a}),l&&i.jsx(hs,{className:p.expandIconWrapper,ownerState:b,children:l})]}))}),Ls="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",js="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",Ss="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",Zs="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",Ds="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",Ws="_arrowForward_n7c9n_88",Gs="_arrowButton_n7c9n_98",Ps="_arrow_n7c9n_88",ks="_buttonIcon_n7c9n_147",Bs="_line_n7c9n_153",vs="_disabled_n7c9n_178",w={arrowForward:Ws,arrowButton:Gs,arrow:Ps,buttonIcon:ks,line:Bs,disabled:vs},Q=({backgroundColor:s="blue",className:e,disabled:o,onClick:t=()=>{},text:a,type:r})=>{const l=[e,o?w.disabled:"",w.arrowButton].join(" "),I=o?js:s==="blue"?Ss:Ls;return i.jsxs("button",{className:l,disabled:o,id:typeof a=="string"?`${a==null?void 0:a.replaceAll(" ","_")}Button`:"",onClick:t,type:r,children:[a," ",s==="blue"&&i.jsxs("div",{className:w.buttonIcon,children:[i.jsx(Z,{className:w.line,id:"lineIcon",image:Ds}),i.jsx(Z,{className:w.arrowForward,id:"arrowIcon",image:I})]}),s==="white"&&i.jsxs("div",{className:w.buttonIcon,children:[i.jsx(Z,{className:w.line,id:"lineIcon",image:Zs}),i.jsx(Z,{className:w.arrowForward,id:"arrowIcon",image:I})]})]})},Ys="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTI4IiBoZWlnaHQ9Ijk2IiB2aWV3Qm94PSIwIDAgMTI4IDk2Ij4KICA8ZGVmcz4KICAgIDxjbGlwUGF0aCBpZD0iY2xpcC1wYXRoIj4KICAgICAgPHJlY3QgaWQ9Im1hc2siIHdpZHRoPSIxMjgiIGhlaWdodD0iOTYiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDMyOCA2MjQpIiBmaWxsPSJyZWQiLz4KICAgIDwvY2xpcFBhdGg+CiAgICA8ZmlsdGVyIGlkPSJiZyIgeD0iLTU2IiB5PSItNDYuNjg5IiB3aWR0aD0iMjIxLjU2NSIgaGVpZ2h0PSIxNzguNTExIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8ZmVPZmZzZXQgZHk9IjMiIGlucHV0PSJTb3VyY2VBbHBoYSIvPgogICAgICA8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIzIiByZXN1bHQ9ImJsdXIiLz4KICAgICAgPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMC4xNjEiLz4KICAgICAgPGZlQ29tcG9zaXRlIG9wZXJhdG9yPSJpbiIgaW4yPSJibHVyIi8+CiAgICAgIDxmZUNvbXBvc2l0ZSBpbj0iU291cmNlR3JhcGhpYyIvPgogICAgPC9maWx0ZXI+CiAgPC9kZWZzPgogIDxnIGlkPSJHcm91cF84IiBkYXRhLW5hbWU9Ikdyb3VwIDgiIHRyYW5z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gc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxIi8+CiAgICAgICAgICA8cGF0aCBpZD0iUGF0aF8yMDk3NSIgZGF0YS1uYW1lPSJQYXRoIDIwOTc1IiBkPSJNNC4zMTIsNC44OTJhNC4zOTIsNC4zOTIsMCwxLDEsOC43ODMsMFY4LjMwNyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEuODcyIC0wLjUpIiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxIi8+CiAgICAgICAgICA8cGF0aCBpZD0iUGF0aF8yMDk3NiIgZGF0YS1uYW1lPSJQYXRoIDIwOTc2IiBkPSJNMTEuOTI1LDE3LjcxMWExLjcxNSwxLjcxNSwwLDEsMC0yLjcwNywxLjRMOC43MjgsMjJoMi45NjRMMTEuMiwxOS4xMDdBMS43MSwxLjcxLDAsMCwwLDExLjkyNSwxNy43MTFaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMy4zNzggLTYuMDc5KSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMSIvPgogICAgICAgIDwvZz4KICAgICAgPC9nPgogICAgPC9nPgogIDwvZz4KPC9zdmc+Cg==",Ts=`${es}/Subscribe`,_s=async(s,e,o,t,a=!1)=>{const r={email:s,trustedformUrl:e,subscriptionTo:o,...t&&{contentUrl:t},...a&&{agentPurlDetails:a}};return await ss({url:Ts,body:r})},fs="_banner__container_bnpeh_88",Hs="_textInput_bnpeh_93",zs="_buttonWithArrowAnimated_bnpeh_103",Js="_body2ClassName_bnpeh_107",Vs="_getAccessButton_bnpeh_111",Es="_subscribe_container_bnpeh_117",Xs="_slide1_bnpeh_130",Fs="_slide2_bnpeh_135",Qs="_slide3_bnpeh_140",Us="_slide4_bnpeh_145",Os="_slide5_bnpeh_150",Ks="_slide6_bnpeh_155",$s="_premiumIcon_bnpeh_160",qs="_doNotMissTitle_bnpeh_167",se="_getNewsTitle_bnpeh_201",ee="_input_container_bnpeh_246",ie="_labelClassName_bnpeh_256",oe="_formContainer_bnpeh_260",te="_emailContainer_bnpeh_289",ne="_isHomeBanner_bnpeh_304",n={banner__container:fs,textInput:Hs,buttonWithArrowAnimated:zs,body2ClassName:Js,getAccessButton:Vs,subscribe_container:Es,slide1:Xs,slide2:Fs,slide3:Qs,slide4:Us,slide5:Os,slide6:Ks,premiumIcon:$s,doNotMissTitle:qs,getNewsTitle:se,input_container:ee,labelClassName:ie,formContainer:oe,emailContainer:te,isHomeBanner:ne},T={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."},ge=({slideData:s=T,onUpdateStatus:e,initialSubscribeStatus:o=!1,swiperRef:t})=>{const{width:a}=ls(),[r,l]=c.useState(o);c.useEffect(()=>{l(o)},[o]);const{formState:{errors:m},handleSubmit:I,register:j,setError:g,clearErrors:N,watch:x}=is(),[u,y]=c.useState(!1),{purlAgentData:b}=c.useContext(os);c.useEffect(()=>{const M=x(()=>{N("emailAddress"),y(!1)});return()=>M.unsubscribe()},[x,N,t]);const p=async M=>{var B,v;y(!0),F(T==null?void 0:T.event);const{emailAddress:h}=M,k=(s==null?void 0:s.slug)||window.location.href,C=await rs(h);if(((B=C==null?void 0:C.email)==null?void 0:B.status)==="invalid"&&g("emailAddress",{type:"pattern"}),((v=C==null?void 0:C.email)==null?void 0:v.status)!=="invalid"){const f=ds();await _s(h,f,"NewsLetter",k,b)==="Email added to subscription"&&(l(!0),y(!1),e==null||e(!0),F("news_and_update_email_optin"))}},d=c.useCallback(()=>{window.open(s.slug)},[s==null?void 0:s.slug]),W=c.useMemo(()=>i.jsxs(i.Fragment,{children:[i.jsx(Y,{className:`${n.doNotMissTitle} ${n[s.slideClassName]}`,text:"Thank You",id:"thankYou"}),i.jsx(Y,{className:`${n.getNewsTitle} ${n[s.slideClassName]}`,text:s.thankYouDescription,id:"thankYouDescription"}),s.slug?i.jsx(Q,{className:`${n.buttonWithArrowAnimated} ${n.getAccessButton} ${n[s.slideClassName]}`,disabled:u,onClick:d,text:"Get Access",type:"submit",backgroundColor:s.buttonBackgroundColor}):null]}),[s,u,d]),G={backgroundImage:r?`url(${s.thankYouBannerImage})`:`url(${s.bannerImage})`},S={backgroundImage:r?`url(${s.thankYouBannerMobileImage})`:`url(${s.bannerMobileImage})`},P=s.slideClassName!=="slide0";return i.jsxs("div",{className:`${n.subscribe_container} ${n[s.slideClassName]} ${P?n.isHomeBanner:""}`,style:P?a<750?S:G:null,children:[i.jsx(Z,{image:r?Rs:Ys,className:n.premiumIcon,id:`${r?"premiumUnlocked":"premiumLocked"}`}),r?W:i.jsxs(ts.Fragment,{children:[i.jsx(Y,{className:`${n.doNotMissTitle} ${n[s.slideClassName]}`,text:s.title,id:"title"}),i.jsx(Y,{className:`${n.getNewsTitle} ${n[s.slideClassName]}`,text:s.description,id:"description"}),i.jsx(ns,{}),i.jsx("form",{className:n.input_container,onSubmit:I(M=>p(M)),children:i.jsxs("div",{className:n.formContainer,children:[i.jsx(as,{body2ClassName:n.body2ClassName,error:m.emailAddress,fieldClassName:n.textInput,id:"emailAddress",placeholder:"Your e-mail",register:j,swiperRef:t,className:n.emailContainer,labelClassName:n.labelClassName}),i.jsx(Q,{className:`${n.buttonWithArrowAnimated} ${n[s.slideClassName]}`,disabled:u,text:"Submit",type:"submit",backgroundColor:s.buttonBackgroundColor})]})})]})]})};export{de as A,ge as S,me as a,Ie as b,_s as c};
//# sourceMappingURL=index-DQIndfFo.js.map