PageSourceSearch

https://www.rugby.com.au/_next/static/chunks/8176.aa7905dae4a5b67c.js

js rugby.com.au collected 2026-10-01 11:53:41 UTC 7,164 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8176],{68176:function(e,t,l){l.r(t),l.d(t,{ManageSubscriptionsForm:function(){return h}});var o=l(32744),i=l(2784),n=l(17473),a=l(50644),s=l(5632),r=l(63769),c=l(29283),u=l(81312),m=l(38718),d=l(79798),b=l(67292),v=l(93506),f=l(760);let g={"input[type=checkbox]":{msTransform:" scale(1.5)",MozTransform:" scale(1.5)",WebkitTransform:" scale(1.5)",OTransform:" scale(1.5)",transform:" scale(1.5)",padding:"10px"},'[data-comp="checkbox-label"]':{justifyContent:"flex-start",alignContent:"center",alignItems:"center"}},p={emailGlobalUnsubscribe:{"value-true":"You are unsubscribed from receiving Emails. If you wish to receive Emails from us, untick this box to resubscribe. Please note all accounts with the same email address will be resubscribed to receive emails.","value-false":"If you do not wish to receive any further Emails from any of the above entities, tick this box. Please note all accounts with the same email address will be unsubscribed from receiving emails."}},h=(0,i.forwardRef)((e,t)=>{var l,h,y,x,Z,S,k,U,T,F,B,G;let{subscriptionList:z,medataData:C}=e,[w,E]=(0,i.useState)({}),[W,D]=(0,i.useState)(!1),I=(0,i.useRef)(null),N=(0,s.useRouter)(),{colors:P,spacing:A,headings:R,mq:j,typography:O}=(0,m.useTheme)(),{executeRecaptcha:M}=(0,n.xX)();(0,i.useEffect)(()=>{var e;let t={};null==z||null===(e=z.subcriptions)||void 0===e||e.forEach(e=>{var l;null==e||null===(l=e.types)||void 0===l||l.forEach(e=>{(null==e?void 0:e.value)&&e.typeId&&(t[e.typeId]=!0)})}),(null==z?void 0:z.smsGlobalUnsubscribe)&&(t.smsGlobalUnsubscribe=null==z?void 0:z.smsGlobalUnsubscribe),(null==z?void 0:z.emailGlobalUnsubscribe)&&(t.emailGlobalUnsubscribe=null==z?void 0:z.emailGlobalUnsubscribe),E(t)},[z]);let[_,{data:q,loading:L}]=(0,a.D)(f.WW),H=null==q?void 0:null===(l=q.submitForm)||void 0===l?void 0:l.success;H&&setTimeout(()=>{(0,b.tx)(I)},500);let handleOnSubmit=async e=>{if(null==e||e.preventDefault(),D(!0),H)D(!1);else{var t;if(!M){console.error("Recaptcha Failed"),D(!1);return}let e=await M("formSubmit");(0,u.h4)("Button","Submit","Forms","Manage Subscriptions","");let l=[];
1Object.keys(w).forEach(e=>{"emailGlobalUnsubscribe"!==e&&e&&w[e]&&l.push(e)});let o={id:null==z?void 0:z.id,jobId:null==C?void 0:C.jobId,emailGlobalUnsubscribe:null!==(t=w.emailGlobalUnsubscribe)&&void 0!==t&&t,subscriptions:l,recaptcha:e};_({variables:{formData:JSON.stringify({...o}),type:"manage-subscriptions"}})}};if(N.asPath.includes("#")){let e=N.asPath.split("#")[1],t=document.getElementById(decodeURI(e));t&&t.scrollIntoView()}return(0,o.tZ)(d.Container,null,H?(0,o.tZ)(i.Fragment,null,(0,o.tZ)("div",{css:{marginLeft:"auto",marginRight:"auto",textAlign:"center",fontSize:O.fontSize.md,color:P.neutralDark,paddingTop:A["8xl"]},ref:I},(0,o.tZ)("h1",{css:{marginTop:A["4xl"],marginBottom:R[1].marginBottom,[j.md]:{fontSize:O.fontSize["5xl"]},fontSize:O.fontSize["2xl"],fontFamily:R[1].fontFamily,fontWeight:R[1].fontWeight,color:R[1].color}},"Thank you!"),(0,o.tZ)("p",{css:{marginBottom:A.xl,color:null==P?void 0:P.neutralDark}},null!==(G=null==q?void 0:null===(U=q.submitForm)||void 0===U?void 0:U.message)&&void 0!==G?G:"")),(0,o.tZ)("div",{css:{marginBottom:A.xl,textAlign:"center"}},(0,o.tZ)(c.g,{href:"/"},(0,o.tZ)(r.ButtonThemed,{appearance:"hero"},(0,o.tZ)("span",null,"Home"))))):(0,o.tZ)("div",{css:{a:{textDecoration:"underline",cursor:"pointer"}}},(0,o.tZ)("h1",{css:{marginTop:A["4xl"],marginBottom:R[1].marginBottom,fontSize:R[1].fontSize,fontFamily:R[1].fontFamily,fontWeight:R[1].fontWeight,color:R[1].color}},"Manage Email Preferences"),(0,o.tZ)("div",null,z&&(null==z?void 0:null===(h=z.subcriptions)||void 0===h?void 0:h.map((e,t)=>{var l,i,n;return(0,o.tZ)("div",{key:"".concat(null!==(n=null==e?void 0:e.id)&&void 0!==n?n:"","-").concat(t),css:{marginBottom:A["2xl"],borderBottom:"1px solid ".concat(null==P?void 0:P.neutralLight)}},(0,o.tZ)("h3",{css:{fontSize:R[3].fontSize,fontFamily:R[3].fontFamily,fontWeight:R[3].fontWeight,color:R[3].color,marginBottom:A.xl},id:"".concat(null==e?void 0:null===(l=e.orgName)||void 0===l?void 0:l.toLowerCase())},null==e?void 0:e.orgName),(0,o.tZ)("div",{css:{display:"grid",gridTemplateColumns:"1fr ",[j.md]:{gridTemplateColumns:"1fr 1fr"},gridGap:"1em",padding:"0 ".concat(A.xl)}},null==e?void 0:null===(i=e.types)||void 0===i?void 0:i.map(e=>{let t=null==e?void 0:e.name,l=null==e?void 0:e.typeId;return(0,o.tZ)("div",{key:null==e?void 0:e.id,css:[{width:"100%",gridColumn:"span 1",[j.md]:{gridColumn:"span 1"}},g]},(0,f.tm)({type:"checkbox",fieldData:{label:t,type:"checkbox",id:l,title:t,name:l,required:!1},isError:!1,error:"",value:w[l],onChange:e=>{E(t=>({...t,[l]:e}))}}))})))})),(0,o.tZ)("div",{css:{marginTop:A["4xl"]}},(0,o.tZ)("h3",{css:{fontSize:R[3].fontSize,fontFamily:R[3].fontFamily,fontWeight:R[3].fontWeight,color:R[3].color,marginBottom:A.xl,marginTop:null===(y=R[3])||void 0===y?void 0:y.marginBottom}},"Unsubscribe from all emails"),(0,o.tZ)("div",{css:{padding:"0 ".concat(A.xl),color:null==P?void 0:P.neutralDark}},(0,o.tZ)("div",{css:g},(0,f.tm)({type:"checkbox",fieldData:{label:null!==(F=null===(x=null==p?void 0:p.emailGlobalUnsubscribe)||void 0===x?void 0:x["value-".concat(null!==(T=null==z?void 0:z.emailGlobalUnsubscribe)&&void 0!==T?T:"false")])&&void 0!==F?F:"Unsubscribe me",type:"checkbox",id:"emailGlobalUnsubscribe",title:"Unsubscribe me",name:"emailGlobalUnsubscribe",required:!1},isError:!1,error:"",value:w.emailGlobalUnsubscribe,onChange:e=>{E(t=>({...t,emailGlobalUnsubscribe:e}))}}))),(0,o.tZ)("h3",{css:{fontSize:R[3].fontSize,fontFamily:R[3].fontFamily,fontWeight:R[3].fontWeight,color:R[3].color,marginBottom:A.xl,marginTop:null===(Z=R[3])||void 0===Z?void 0:Z.marginBottom}},"Contact Us"),(0,o.tZ)("div",{css:{padding:"0 ".concat(A.xl),color:null==P?void 0:P.neutralDark}},(0,o.tZ)("p",{css:{marginBottom:A.xl,color:null==P?void 0:P.neutralDark}},"For any further updates and/or enquiries regarding your subscription preferences, please contact ",(0,o.tZ)("a",{css:{color:P.primary},href:"mailto:[email protected]"},"[email protected]"),"."))),!H&&(null==q?void 0:null===(S=q.submitForm)||void 0===S?void 0:S.message)&&(0,o.tZ)("div",{className:"py-5 text-red text-center col-span-2"},null!==(B=null==q?void 0:null===(k=q.submitForm)||void 0===k?void 0:k.message)&&void 0!==B?B:"")),(0,o.tZ)("div",{css:{padding:"".concat(A.xl," 0")}},(0,o.tZ)("div",{css:{padding:"".concat(A.xl," 0"),textAlign:"center"}},(0,o.tZ)(r.ButtonThemed,{appearance:"hero",disabled:H||L||W,onClick:e=>{handleOnSubmit(e)},size:"large"},L&&(0,o.tZ)("span",{className:"absolute justify-center content-center text-center"},(0,o.tZ)(v.J,{size:"large",className:"animate-spin text-neutral-dark",type:"spinner"})),(0,o.tZ)("span",{css:{visibility:L?"hidden":"visible"}},"Submit"))),(0,o.tZ)("div",{css:{textAlign:"center",color:P.neutral}},(0,o.tZ)("span",null,"This site is protected by reCAPTCHA and the Google ",(0,o.tZ)(c.g,{href:"https://policies.google.com/privacy"},"Privacy Policy")," and ",(0,o.tZ)(c.g,{href:"https://policies.google.com/terms"},"Terms of Service")," apply. ")))))})}}]);

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.