1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e46647e1-59eb-4ad2-974c-7bcd751a6560",e._sentryDebugIdIdentifier="sentry-dbid-e46647e1-59eb-4ad2-974c-7bcd751a6560")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[349,2730],{36503:(e,t,r)=>{r.d(t,{S:()=>a});var i=r(15383),n=r(32449),s=r(66514);let a=({label:e,className:t,tabIndex:r,ref:a,...o})=>(0,i.jsx)(s.A,{label:e,control:(0,i.jsx)(n.A,{className:t,...o}),ref:a,tabIndex:r||void 0})},82730:(e,t,r)=>{r.r(t),r.d(t,{SubscriptionForm:()=>D});var i=r(15383),n=r(11528),s=r(67733),a=r(58655),o=r(83428),l=r(62329),c=r(47485),u=r(8533),d=r(91820),m=r(36503),h=r(14343),x=r(76839);let p=(0,h.forwardRef)(function({theme:e,...t},r){return(0,i.jsx)(s.A,{sx:{color:e?"navy.main":"white.main"},children:(0,i.jsx)(x.A,{ref:r,variant:"standard",fullWidth:!0,...t,sx:{".MuiInputLabel-root, .MuiInputLabel-root.Mui-focused":{color:e?"navy.main":"white.main"},".MuiInput-underline:before":{borderBottomColor:e?"primary":"coreGrey.lighter"},".MuiInput-underline:hover:not(.Mui-disabled):before":{borderBottomColor:e?"primary":"coreGrey.lighter"},".MuiInput-underline:after":{borderBottomColor:e?"primary":"coreGrey.lighter"},".MuiInputBase-input::placeholder":{color:e?"navy.main":"coreGrey.lighter"},".MuiInputBase-input":{color:e?"navy.main":"white.main"},...t.error&&!e&&{"& .MuiInputLabel-root, .MuiInputLabel-root.Mui-focused":{color:"blush.main"},"& .MuiInput-underline:before":{borderBottomColor:"blush.main"},"& .MuiInput-underline:hover:not(.Mui-disabled):before":{borderBottomColor:"blush.main"},"& .MuiInput-underline:after":{borderBottomColor:"blush.main"}}}})})}),f={color:"#96e682 !important",backgroundColor:"transparent !important",border:"2px solid #96e682 !important"},b=async e=>{try{let t={email:e.email,fields:[{key:"interests",value:e.interestList}],listId:"626eae8308e0cbe05e9a51a4c313f1b5"},r="https://email-api.main.reachout.com/subscription";if(!r)throw Error("API URL is not defined");if(!(await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).ok)return[!1,"There was an error please try again"];return[!0,"Subscribed"]}catch(e){return console.error(e),[!1,"There was an error please try again"]}};var g=r(60900),y=r(16781),j=r(10380),w=r(50117),v=r(94532),A=r(21921),I=r(58996),C=r(78682),M=r(71623);let S=A.Ik({email:A.Yj().min(1,{message:"Email address is a required field"}).check(A.Rp({message:"Email address must be a valid email"}))}),k=S.extend({interestList:A.YO(A.Yj()).min(1,"Please select at least one interest").nullable()}),L=S.extend({interestList:A.YO(A.Yj()).nullable()}),D=({title:e,description:t,subscriptionList:r,titleProps:x,descriptionProps:A,variant:S="vertical",lightTheme:D})=>{let _="horizontal"===S,{register:B,handleSubmit:E,formState:{errors:T,isSubmitting:N}}=(0,w.mN)({defaultValues:{email:"",interestList:[]},resolver:(0,v.u)(r.length>1?k:L)}),[R,Y]=(0,h.useState)({success:!1,message:""}),G=async e=>{Y({success:!1,message:""}),1===r.length&&(e.interestList=r);let[t,i]=await b(e);(0,I.n)({event:"interaction",product:"campaign_monitor",action:"subscribe",component:"626eae8308e0cbe05e9a51a4c313f1b5"}),Y({success:t,message:i})},O=D?{}:R.success?f:{};return(0,i.jsxs)(s.A,{sx:[{display:"flex",backgroundColor:D?"white.main":"rgba(26, 46, 75, 1)",color:D?"navy.main":"white.main",borderRadius:"16px 16px 40px 16px",flexDirection:"column",justifyContent:"center",alignItems:"center",p:{xs:4,md:7},gap:3},_&&{flexDirection:{md:"column",lg:"row"},justifyContent:{md:"center",lg:"flex-start"}}],component:"form",children:[(0,i.jsx)(s.A,{sx:[_&&{alignSelf:{lg:"flex-start"}}],children:(0,i.jsx)(g.A,{style:{height:"56px",width:"56px"}})}),(0,i.jsxs)(c.A,{spacing:3,sx:[{flex:1,flexDirection:"column",justifyContent:"center",alignSelf:"center",textAlign:"center",width:"100%"},_&&{alignSelf:{lg:"flex-start"},textAlign:{lg:"left"},width:"unset"}],children:[(0,i.jsx)(u.A,{variant:"h3",...x,sx:[{fontWeight:"600"},...Array.isArray(x?.sx)?x.sx:[x?.sx]],children:e}),(0,i.jsx)(u.A,{"data-testid":"subscription-description",component:"p",variant:"h4",...A,sx:[{fontWeight:400}
1,...A?.sx&&Array.isArray(A.sx)?A.sx:[A?.sx]],children:t}),(_&&!R.success||!_)&&(0,i.jsxs)(s.A,{sx:[_&&{maxWidth:{md:"100%",lg:"55%"}}],children:[(0,i.jsx)(p,{id:"email-id",label:"Email address",theme:D,error:!!T.email,placeholder:"Enter your email address*",autoComplete:"email",...B("email")}),(0,i.jsx)(u.A,{color:D?"error":"blush.main",sx:{textAlign:"left"},children:T.email?.message})]}),r.length>1&&(0,i.jsxs)(a.A,{component:"fieldset",required:!0,sx:{alignItems:"flex-start",textAlign:"left",color:D?"navy.main":"white.main"},children:[(0,i.jsx)(l.A,{sx:{color:D?"navy.main":"white.main","&.Mui-focused":{color:D?"navy.main":"white.main"}},component:"legend",children:"I'm interested in news about:"}),(0,i.jsx)(o.A,{children:r.map(e=>(0,i.jsx)(m.S,{label:e,sx:{"& .MuiFormControlLabel-root":{marginLeft:0,marginRight:0},marginLeft:0,marginRight:0,color:D?"navy.main":"white.main","& .MuiCheckbox-root":{color:D?"navy.main":"white.main"}},value:e,...B("interestList")},e))}),(0,i.jsx)(u.A,{color:D?"error":"blush.main",children:T.interestList?.message})]}),(0,i.jsxs)(s.A,{sx:[{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:3},_&&{justifyContent:{md:"space-between",lg:"space-between"},flexDirection:{lg:R.success?"row":"row-reverse"}}],children:[!R.success&&(0,i.jsx)(s.A,{sx:{display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center"},children:(0,i.jsx)(d.J,{variant:"primary",background:D?"light":"dark",id:"subscribe-submit",type:"submit",onClick:E(G),disabled:N,children:"Subscribe"})}),(0,i.jsxs)(u.A,{children:["To see how we use this information check out our"," ",(0,i.jsx)(C.s,{className:(0,M.$)("underline transition-colors hover:text-peri",D?"text-primary":"text-white"),href:"https://au.reachout.com/our-policies/privacy-policy",children:"Privacy policy"}),"."]})]}),R.message&&(0,i.jsx)(n.A,{severity:R.success?"success":"error",variant:"filled",sx:{...O,textAlign:"center",alignSelf:"center",justifyContent:"center",width:"100%",px:0},icon:R.success?(0,i.jsx)(y.A,{style:{fontSize:"inherit",opacity:1,alignSelf:"center",justifyContent:"center"}}):(0,i.jsx)(j.A,{style:{fontSize:"inherit",opacity:1,alignSelf:"center",justifyContent:"center"}}),children:R.message})]})]})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.