PageSourceSearch

http://canterburybrass.com/js/1641.a73f0f2883676391.js

js canterburybrass.com collected 2026-09-25 02:21:46 UTC 24,637 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1641],{10291:function(e,n,t){"use strict";t.d(n,{m:function(){return E}});var i,o,r=t(95235),l=t(2784),a=t(660),u=t(18412),c=t(41857),d=t(58406),s=t(28316),m=t(3176),g=t(52322),v=l.forwardRef(function(e,n){var t,i,o,r;return"undefined"!=typeof document&&document.body?s.createPortal((i=e.onVerify,o=e.siteKey,r=e.size,(0,g.jsx)(m.Z,{ref:n,size:r,onChange:i,sitekey:o})),null!==(t=e.containerRef)&&void 0!==t&&t.current?e.containerRef.current:document.body):null}),p=t(72370),f=((i=f||{}).LIST_ATTACK_STRATEGY_RECAPTCHA_VISIBLE="VISIBLE-RECAPTCHA",i.LIST_ATTACK_STRATEGY_RECAPTCHA_INVISIBLE="INVISIBLE-RECAPTCHA",i.LIST_ATTACK_STRATEGY_HCAPTCHA="HCAPTCHA",i.LIST_ATTACK_STRATEGY_TURNSTILE="TURNSTILE",i),T=(o={},(0,r.Z)(o,f.LIST_ATTACK_STRATEGY_RECAPTCHA_VISIBLE,p.QZ.RECAPTCHA_BYPASS_TYPE_VISIBLE),(0,r.Z)(o,f.LIST_ATTACK_STRATEGY_RECAPTCHA_INVISIBLE,p.QZ.RECAPTCHA_BYPASS_TYPE_INVISIBLE),(0,r.Z)(o,f.LIST_ATTACK_STRATEGY_HCAPTCHA,p.QZ.HCAPTCHA_BYPASS_TYPE),(0,r.Z)(o,f.LIST_ATTACK_STRATEGY_TURNSTILE,p.QZ.TURNSTILE_BYPASS_TYPE),o),E=function(e){var n=(0,d.Mu)(),t=(0,c.ND)(),i=l.useRef(null),o=l.useRef(null),r=l.useRef(),s=t.enableRecaptchaNet,m=t.invisibleReCaptchaSharedSiteKey,E=l.useCallback(function(e){e&&r.current&&r.current(e)},[]);return l.useEffect(function(){s&&(window.recaptchaOptions={useRecaptchaNet:!0})},[]),l.useEffect(function(){var n={count:0,maxRetries:5,interval:200};e.onLoad&&function t(){if(null!==(o=e.containerRef)&&void 0!==o&&o.current)try{var i,o,r,l=new MutationObserver(function(n){n.forEach(function(n){if("childList"===n.type){var t,i;(null===(t=e.containerRef)||void 0===t||null===(t=t.current)||void 0===t?void 0:t.querySelector("iframe"))&&(null===(i=e.onLoad)||void 0===i||i.call(e),l.disconnect())}})});return l.observe(e.containerRef.current,{childList:!0,subtree:!0}),function(){return l.disconnect()}}catch(n){null===(r=e.onError)||void 0===r||r.call(e,n)}else n.count<n.maxRetries?(n.count=n.count+1,setTimeout(t,n.interval)):null===(i=e.onError)||void 0===i||i.call(e,Error("Container ref not found after ".concat(n.maxRetries," attempts")))}()},[e.containerRef,e.onLoad]),l.useMemo(function(){var l,c,d=null==n||null===(l=n.rateLimitersFiring)||void 0===l?void 0:l.find(function(n){return n.rateLimitingBucket===e.bucket.toString()}),s=d&&t.listAttackStrategy?null==d||null===(c=d.captchaBypassAvailable)||void 0===c?void 0:c.find(function(e){return e.type===T[t.listAttackStrategy]}):t.listAttackStrategy===f.LIST_ATTACK_STRATEGY_RECAPTCHA_INVISIBLE&&m?{siteKey:m,type:T[t.listAttackStrategy]}:void 0;return{captcha:(null==s?void 0:s.type)===f.LIST_ATTACK_STRATEGY_TURNSTILE?(0,g.jsx)(u.Nc,{siteKey:s.siteKey,ref:o,options:{refreshExpired:"manual",retry:"auto"},tabIndex:0,onSuccess:E,onError:function(){var e;return null==o||null===(e=o.current)||void 0===e?void 0:e.reset()},onExpire:function(){var e;return null==o||null===(e=o.current)||void 0===e?void 0:e.reset()}}):(null==s?void 0:s.type)===f.LIST_ATTACK_STRATEGY_HCAPTCHA?(0,g.jsx)(a.Z,{sitekey:s.siteKey,size:"invisible",sentry:!1,reCaptchaCompat:!1,tabIndex:0,ref:i,onVerify:E}):null!=s&&s.type?(0,g.jsx)(v,{containerRef:e.containerRef,size:s.type===p.QZ.RECAPTCHA_BYPASS_TYPE_INVISIBLE?p.hw.INVISIBLE:void 0,siteKey:s.siteKey,onVerify:E,ref:i}):null,turnstileRef:o,type:null==s?void 0:s.type,submit:function(e){var n,t;if(!(null!=s&&s.type)||(null==s?void 0:s.type)===p.QZ.RECAPTCHA_BYPASS_TYPE_VISIBLE){e();return}if((null==s?void 0:s.type)===p.QZ.TURNSTILE_BYPASS_TYPE){var l,a=null==o||null===(l=o.current)||void 0===l?void 0:l.getResponse();if(a){e(a);return}}r.current=e,(null==i||null===(n=i.current)||void 0===n?void 0:n.reset)&&i.current.reset(),(null==i||null===(t=i.current)||void 0===t?void 0:t.execute)&&i.current.execute()}}},[null==n?void 0:n.rateLimitersFiring,e.bucket,t.listAttackStrategy,i,r])}},72370:function(e,n,t){"use strict";t.d(n,{QZ:function(){return a},ej:function(){return l},hw:function(){return u}});var i,o,r,l=((i={}).LOGIN="LOGIN",i.REGISTER="REGISTRATION",i.FORGOTTEN_PASSWORD="FORGOT_PASSWORD",i.RESET_PASSWORD="RESET_PASSWORD",i.MARKETING_MATERIAL_SIGN_UP="MARKETING_MATERIAL_SIGN_UP",i.ADD_REVIEW="ADD_REVIEW",i.WAIT
1LIST="WAITLIST",i.REFERRAL_EMAIL="REFERRAL_EMAIL",i.DISCUSSION_CREATION="DISCUSSION_CREATION",i),a=((o={}).RECAPTCHA_BYPASS_TYPE_VISIBLE="V2_VISIBLE",o.RECAPTCHA_BYPASS_TYPE_INVISIBLE="V2_INVISIBLE",o.HCAPTCHA_BYPASS_TYPE="HCAPTCHA",o.TURNSTILE_BYPASS_TYPE="TURNSTILE",o),u=((r={}).COMPACT="compact",r.NORMAL="normal",r.INVISIBLE="invisible",r)},71641:function(e,n,t){"use strict";t.r(n),t.d(n,{EmailEngagementModalRenderer:function(){return ej}});var i,o,r,l,a,u,c,d,s,m,g,v,p,f,T,E,h,y,x,S,b,A=t(95235),I=t(8529),_=t(2784),w=t(52034),C=t(41857),k=t(58406),R=t(28885),L=t(11006),P=t(77316),M=t(81754),j={continueButtonHandler:function(){return(0,M.y_)({type:"elysiumEvent",eventData:{eventAction:"Clicked",eventCategory:"email re-engagement Modal",eventLabel:"Continue Modal Button",eventLabelValue:void 0}})},closeButtonHandler:function(){return(0,M.y_)({type:"elysiumEvent",eventData:{eventAction:"Clicked",eventCategory:"email re-engagement Modal",eventLabel:"Close Modal Button",eventLabelValue:void 0}})},showModal:function(){return(0,M.y_)({type:"elysiumEvent",eventData:{eventAction:"Shown",eventCategory:"reEngagement Tooltip Modal",eventLabel:"reEngagement Modal Message",eventLabelValue:void 0}})}},O=t(7328),N=t(53055),U=t(25237),D=t.n(U),B=t(80131),H=t(28160),Z=t(10291),F=t(72370),Y=t(67971),V=t(93421),z=t(1761),G=t(16015),K=t(12786),W=t(48840),q=t(54329),Q=t(95732),X=t(9371),J=t(37941),$=t(87330),ee=t(81292),en=t(60299),et=t(51339),ei=t(50556),eo=t(21377),er=D()(function(){return Promise.resolve().then(t.bind(t,51130))},{loadableGenerated:{webpack:function(){return[51130]}}}),el=L.zo.h1(o||(o=(0,O.Z)(["\n  ",";\n\n  "," {\n    margin: 0 0 ",";\n  }\n  color: ",";\n  text-align: ",";\n"])),function(e){var n,t;return(0,$.xv)((null===(n=e.theme.widget.emailEngagementModal)||void 0===n||null===(n=n.title)||void 0===n||null===(n=n.font)||void 0===n?void 0:n.entry)||"large1",(null===(t=e.theme.widget.emailEngagementModal)||void 0===t||null===(t=t.title)||void 0===t||null===(t=t.font)||void 0===t?void 0:t.style)||"alternate")},function(e){return(0,ee.mq)(e.theme.breakpointUtils.map,"sm")},(0,W.W0)(3),function(e){var n;return null===(n=e.theme.widget)||void 0===n||null===(n=n.emailEngagementModal)||void 0===n||null===(n=n.title)||void 0===n||null===(n=n.font)||void 0===n?void 0:n.textColor},function(e){var n;return null===(n=e.theme.widget)||void 0===n||null===(n=n.emailEngagementModal)||void 0===n||null===(n=n.title)||void 0===n?void 0:n.textAlign}),ea=L.zo.li(r||(r=(0,O.Z)(["\n  ",";\n  list-style: none;\n  ","\n\n  ","\n\n  ","\n\n  color: ",";\n\n  "," {\n    &:last-child {\n      margin-bottom: 0;\n    }\n  }\n"])),(0,$.xv)("bodyText","default"),function(e){var n;return(null===(n=e.theme.widget.emailEngagementModal)||void 0===n||null===(n=n.listItems)||void 0===n||null===(n=n.textStyle)||void 0===n?void 0:n.margin)&&(0,en.e)(e.theme.widget.emailEngagementModal.listItems.textStyle.margin)},function(e){var n;return 0===e.index&&(null===(n=e.theme.widget)||void 0===n||null===(n=n.emailEngagementModal)||void 0===n||null===(n=n.listItems)||void 0===n||null===(n=n.textStyle)||void 0===n?void 0:n.bulletOne)&&(0,$.xv)(e.theme.widget.emailEngagementModal.listItems.textStyle.bulletOne.entry,e.theme.widget.emailEngagementModal.listItems.textStyle.bulletOne.style)},function(e){var n;return(1===e.index||2===e.index)&&(null===(n=e.theme.widget)||void 0===n||null===(n=n.emailEngagementModal)||void 0===n||null===(n=n.listItems)||void 0===n||null===(n=n.textStyle)||void 0===n?void 0:n.bulletTwo)&&(0,$.xv)(e.theme.widget.emailEngagementModal.listItems.textStyle.bulletTwo.entry,e.theme.widget.emailEngagementModal.listItems.textStyle.bulletTwo.style)},function(e){var n;return null===(n=e.theme.widget)||void 0===n||null===(n=n.emailEngagementModal)||void 0===n||null===(n=n.title)||void 0===n||null===(n=n.font)||void 0===n?void 0:n.textColor},function(e){return(0,ee.mq)(e.theme.breakpointUtils.map,"sm")});(0,L.zo)(er)(l||(l=(0,O.Z)(["\n  margin-right: ",";\n  stroke: ",";\n"])),(0,W.W0)(1),function(e){return e.theme.colors.palette.greys.darker});var eu=(0,L.zo)(eo.t)(a||(a=(0,O.Z)(["\n  height: 150px;\n  width: 100%;\n  aspect-ratio: auto 3 / 4;\n  object-fit: cover;\n\n  "," {\n    width: 286px;\n    height: 100%;\n  }\n"])),function(e){return(0,ee.mq)(e.theme.breakpointUtils.map,"sm")}),ec=L.zo.div(u||(u=(0,O.Z)(["\n  overflow: auto;\n  overscroll-behavior: contain;\n\n  "," {\n    padding: 0 0 ",";\n  }\n"])),function(e){return(0,ee.mq)(e.theme.breakpointUtils.map,"sm")},(0,W.W0)(3)),ed=L.zo.ul(c||(c=(0,O.Z)(["\n  display: ",";\n  flex-direction: ",";\n  align-items: ",";\n"])),function(e){var n;return null===(n=e.theme.widget)||void 0===n||null===(n=n.emailEngagementModal)||void 0===n||null===(n=n.listItems)||void 0===n||null===(n=n.alignments)||void 0===n?void 0:n.display},function(e){var n;return null===(n=e.theme.widget)||void 0===n||null===(n=n.emailEngagementModal)||void 0===n||null===(n=n.listItems)||void 0===n||null===(n=n.alignments)||void 0===n?void 0:n.flexDirection},function(e){var n;return null===(n=e.theme.widget)||void 0===n||null===(n=n.emailEngagementModal)||void 0===n||null===(n=n.listItems)||void 0===n||null===(n=n.alignments)||void 0===n?void 0:n.alignItems}
1),es=L.zo.div(d||(d=(0,O.Z)(["\n  overflow: hidden;\n  object-fit: cover;\n  min-width: 260px;\n  min-height: 112px;\n\n  "," {\n    picture {\n      display: block;\n      height: 100%;\n    }\n  }\n"])),function(e){return(0,ee.mq)(e.theme.breakpointUtils.map,"sm")}),em=L.zo.div(s||(s=(0,O.Z)(["\n  display: flex;\n  flex-direction: column;\n\n  "," {\n    flex-direction: row;\n    height: auto;\n  }\n  background: ",";\n"])),function(e){return(0,ee.mq)(e.theme.breakpointUtils.map,"sm")},function(e){var n;return null===(n=e.theme.widget)||void 0===n||null===(n=n.emailEngagementModal)||void 0===n||null===(n=n.formContainer)||void 0===n?void 0:n.background}),eg=L.zo.h1(m||(m=(0,O.Z)(["\n  ",";\n  text-align: center;\n  margin-top: ",";\n"])),(0,$.xv)("medium1","alternate"),(0,W.W0)(4)),ev=L.zo.h1(g||(g=(0,O.Z)(["\n  ",";\n  text-align: center;\n  margin-top: ",";\n"])),(0,$.xv)("small","default"),(0,W.W0)(4)),ep=(0,L.zo)(et.zx)(v||(v=(0,O.Z)(["\n  min-width: 100%;\n  margin-top: ",";\n"])),(0,W.W0)(4));(0,L.zo)(er)(p||(p=(0,O.Z)(["\n  width: 35px;\n  height: 35px;\n  stroke: ",";\n  display: block;\n  margin: auto;\n"])),function(e){return e.theme.colors.palette.brand.base});var ef=(0,L.zo)(et.zx)(f||(f=(0,O.Z)(["\n  width: 100%;\n  margin-top: ",";\n"])),(0,W.W0)(2)),eT=(0,L.zo)(ei.T)(T||(T=(0,O.Z)(["\n  ",";\n  width: 100%;\n  margin-top: ",";\n  a {\n    ",";\n    ",";\n  }\n  ",";\n"])),(0,$.xv)("small","default"),(0,W.W0)(2),(0,$.xv)("small","alternate"),function(e){var n,t;return(null===(n=e.theme.widget)||void 0===n||null===(n=n.emailEngagementModal)||void 0===n||null===(n=n.description)||void 0===n?void 0:n.textColor)&&"color : ".concat(null===(t=e.theme.widget)||void 0===t||null===(t=t.emailEngagementModal)||void 0===t||null===(t=t.description)||void 0===t?void 0:t.textColor)},function(e){var n,t;return(null===(n=e.theme.widget)||void 0===n||null===(n=n.emailEngagementModal)||void 0===n||null===(n=n.description)||void 0===n?void 0:n.textColor)&&"color : ".concat(null===(t=e.theme.widget)||void 0===t||null===(t=t.emailEngagementModal)||void 0===t||null===(t=t.description)||void 0===t?void 0:t.textColor)}),eE=(0,L.zo)(et.zx)(E||(E=(0,O.Z)(["\n  width: 100%;\n  margin-top: ",";\n\n  &:hover {\n    width: 100%;\n    ",";\n  }\n\n  &:focus {\n    width: 100%;\n  }\n\n  ",";\n"])),(0,W.W0)(1),function(e){var n,t;return(null===(n=e.theme.widget)||void 0===n||null===(n=n.emailEngagementModal)||void 0===n||null===(n=n.privacyPolicyText)||void 0===n?void 0:n.hoverColor)&&"color : ".concat(null===(t=e.theme.widget)||void 0===t?void 0:t.emailEngagementModal.privacyPolicyText.hoverColor)},function(e){var n,t;return(null===(n=e.theme.widget)||void 0===n||null===(n=n.emailEngagementModal)||void 0===n||null===(n=n.privacyPolicyText)||void 0===n?void 0:n.color)&&"color : ".concat(null===(t=e.theme.widget)||void 0===t?void 0:t.emailEngagementModal.privacyPolicyText.color)}),eh=L.zo.div(h||(h=(0,O.Z)(["\n  display: flex;\n  flex: 1;\n  margin: ",";\n  flex-direction: column;\n\n  "," {\n    margin: "," "," ",";\n    justify-content: center;\n  }\n"])),(0,W.W0)(3),function(e){return(0,ee.mq)(e.theme.breakpointUtils.map,"sm")},(0,W.W0)(8),(0,W.W0)(4),(0,W.W0)(4)),ey=L.zo.div(y||(y=(0,O.Z)(["\n  margin: auto;\n  padding-top: ",";\n\n  "," {\n    padding-top: 0;\n  }\n"])),(0,W.W0)(3),function(e){return(0,ee.mq)(e.theme.breakpointUtils.map,"sm")}),ex=t(52322);function eS(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function eb(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?eS(Object(t),!0).forEach(function(n){(0,A.Z)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):eS(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var eA=D()(function(){return Promise.resolve().then(t.bind(t,51130))},{ssr:!0,loading:function(){return(0,ex.jsx)("div",{style:{width:"22px",height:"14px",display:"inline-block"}})},loadableGenerated:{webpack:function(){return[51130]}}}),eI=(0,L.zo)(eA)(x||(x=(0,O.Z)(["\n  margin-right: ",";\n  stroke: ",";\n  display: ",";\n  width: 14px;\n  height: 14px;\n"])),(0,W.W0)(1),function(e){return e.theme.colors.palette.greys.darker},function(e){var n;return(null===(n=e.theme.widget)||void 0===n||null===(n=n.emailEngagementModal)||void 0===n||null===(n=n.listItems)||void 0===n||null===(n=n.tickIcon)||void 0===n?void 0:n.display)||"inline-block"}),e_=(0,L.zo)(eA)(S||(S=(0,O.Z)(["\n  width: 35px;\n  height: 35px;\n  stroke: ",";\n  display: block;\n  margin: auto;\n"])),function(e){return e.theme.colors.palette.brand.base}),ew=L.zo.div(b||(b=(0,O.Z)(["\n  margin-bottom: ",";\n  justify-content: ",";\n\n  display: ",";\n\n  img {\n    height: ",";\n  }\n"])),(0,W.W0)(2),function(e){var n;return null===(n=e.theme.widget)||void 0===n||null===(n=n.emailEngagementModal)||void 0===n||null===(n=n.logo)||void 0===n?void 0:n.alignment},function(e){var n;return null!==(n=e.theme.widget)&&void 0!==n&&null!==(n=n.emailEngagementModal)&&void 0!==n&&null!==(n=n.logo)&&void 0!==n&&n.display?e.theme.widget.emailEngagementModal.logo.display:"none"},function(e){var n;return null===(n=e.theme.widget)||void 0===n||null===(n=n.emailEngagementModal)||void 0===n||null===(n=n.logo)||void 0===n?void 0:n.height}),eC=function(e){var n,t=(0,H.w)(),i=(0,C.bW)().csrf,o=(0,Z.m)({bucket:F.ej.MARKETING_MATERIAL_SIGN_UP}),r=(0,Y.S)(),l=_.useContext(V.L),a=(0,C.Dx)(),u={defaultLocale:a.defaultLocale,subsite:a.subsite,siteId:a.siteId,channel:a.channel,customerLocation:l.currentLocation},c=(0,z.V)(),d=(0,N.Db)(J._),s=(0,I.Z)(d,1)[0],m=(0,C.ND)(),g=m.showTermsConditionTextOnEmailEngagement,v=m.showEmailReengagementModalImage,p=m.allowAlternateTermsAndConditions,f=e.bulletText.map(function(e,n){return e&&(0,ex.jsxs)(ea,{index:n,children:[(0,ex.jsx)(eI,{}),e]},n)}),T=function(e){return{type:"newsletter_signup",payload:c(eb({requestData:{start_timestamp:Date.now(),duration_ms:0,url:window.location.href},eventData:{type:"newsletter_signup",subtype:"email_sign_up_modal"}},e&&{errors:e.map(function(e){return{label:(null==e?void 0:e.message)||"no message",type:"newsletter_signup_error"}})}))}},E=function(n,i){try{s({variables:{input:{type:K.Kl.Email,contactDetails:n.emailAddress,auditData:{messageShown:e.bulletText.join("\r\n"),formIdentifier:"MARKETING_MATERIAL_SIGN_UP",formLocation:"EmailEngagementModal"}}},context:{headers:{"X-Captcha-Type":o.type,"X-Captcha-Response":i}}}).then(function(n){var l,a=n.data,u=n.errors;!a.signUpForMarketing||a.signUpForMarketing.errors||u?(t.error("signupForMarketing error in Email Engagement Modal",{data:a,errors:u,"X-Captcha-Type":o.type,"X-Captcha-Response":i}),e.statusHandler(eL.FAILURE),r(T((null==a||null===(l=a.signUpForMarketing)||void 0===l?void 0:l.errors)||[{message:"no error data"}]))):((0,M.y_)({type:"customEvent",eventData:{eventCategory:"newsletter",eventAction:"successful sign-up",eventLabel:"",eventPage:""}}
1),r(T()),e.statusHandler(eL.SUCCESSFUL))})}catch(n){n instanceof Error&&t.debug(n.message,{reqId:"Email Engagment Modal","X-Captcha-Type":o.type,"X-Captcha-Response":i}),e.statusHandler(eL.FAILURE)}},h=!1,y=function(){h||(h=!0,r({type:"columbo",payload:(0,G.K)({propertyArgs:u,argumentsObj:{0:"Accessibility",1:"Focused",2:"EmailEngagementModalInput"},requestArgs:{client_timestamp:Math.round(Date.now()/1e3),url:window.location.href},eventData:{type:"focus",subtype:"internationalOverlay",contents:[]},nonce:l.metricNonce})}))},x=function(e){return p?(0,R.ag)("account.newaccount.createaccountform.alternatetermsandconditions.".concat(e)):(0,R.ag)("account.newaccount.createaccountform.termsandconditions.".concat(e))},S={additionalLink1:x("link.additional.pt1"),additionalLink2:x("link.additional.pt2"),pt6Text:x("text.pt6"),pt8Text:x("text.pt8")},b=S.pt6Text&&S.additionalLink1?'<a href="'.concat(S.additionalLink1,'" target="_blank" rel="noopener noreferrer">').concat(S.pt6Text,"</a>"):"",A=S.pt8Text&&S.additionalLink2?'<a href="'.concat(S.additionalLink2,'" target="_blank" rel="noopener noreferrer">').concat(S.pt8Text,"</a>"):"",w=(0,B.vsprintf)('%s <a href="/%s" target=”_blank” rel=”noopener noreferrer”>%s</a> %s <a href="/%s" target=”_blank” rel=”noopener noreferrer”>%s</a> %s %s %s %s',[x("text.pt1"),x("link.terms"),x("text.pt2"),x("text.pt3"),x("link.privacy"),x("text.pt4"),x("text.pt5"),b,x("text.pt7"),A]);return(0,ex.jsxs)(em,{children:[v&&(0,ex.jsx)(es,{children:(0,ex.jsx)(eu,eb(eb({},e.picture),{},{fetchPriority:"high"}))}),e.status===eL.UNSUBMITTED?(0,ex.jsxs)(eh,{children:[(0,ex.jsxs)(ec,{children:[(0,ex.jsx)(ew,{children:(0,ex.jsx)("img",{src:e.theme.logo.logoUri,alt:"brand_logo"})}),(0,ex.jsx)(el,{children:e.modalTitle}),(0,ex.jsx)(ed,{children:f})]}),(0,ex.jsxs)(_.Fragment,{children:[(0,ex.jsxs)(X.F,{csrf:i,onSubmit:function(e){o.submit(function(n){return E(e,n)})},"data-testid":"form-guest-checkout",fields:[{fieldName:"emailAddress",renderField:function(n,t){return(0,ex.jsx)(q.x,{bindref:n,disableSpacing:!0,children:(0,ex.jsx)(Q.I,{triggeredByEmailEngagementModal:!0,label:e.i18nText.inputLabel,required:!0,type:"email",autocomplete:"email",onFocus:y})},t)}}],children:[o.captcha,(0,ex.jsx)(ef,{type:"submit",emphasis:null===(n=e.theme.widget.emailEngagementModal)||void 0===n||null===(n=n.submitButton)||void 0===n?void 0:n.emphasis,"data-testid":"button-submit-newletter-signup",children:e.i18nText.submitButton})]}),g?(0,ex.jsx)(eT,{content:w}):(0,ex.jsx)(eE,{emphasis:"low",renderedAs:"a",href:"/".concat(e.i18nText.privacyPolicyLink),children:e.i18nText.privacyPolicyText})]})]}):e.status===eL.SUCCESSFUL?(0,ex.jsx)(eh,{children:(0,ex.jsxs)(ey,{children:[(0,ex.jsx)(e_,{viewBox:"0 0 14 14"}),(0,ex.jsx)(eg,{children:e.i18nText.successTitle}),(0,ex.jsx)(ev,{children:e.i18nText.successText}),(0,ex.jsx)(ep,{onClick:function(){e.closeHandler(),j.continueButtonHandler()},"data-testid":"continue-button-newsletter",children:e.i18nText.continueButton})]})}):(0,ex.jsx)(eh,{children:(0,ex.jsxs)(ey,{children:[(0,ex.jsx)(eg,{children:e.i18nText.errorTitle}),(0,ex.jsx)(ev,{children:e.i18nText.errorText}),(0,ex.jsx)(ep,{emphasis:"low",onClick:function(){e.statusHandler(eL.UNSUBMITTED)},"data-testid":"retry-button-newsletter",children:e.i18nText.tryAgainButton})]})})]})};function ek(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function eR(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ek(Object(t),!0).forEach(function(n){(0,A.Z)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ek(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var eL=((i={}).UNSUBMITTED="UNSUBMITTED",i.REJECTED="REJECTED",i.FAILURE="FAILURE",i.SUCCESSFUL="SUCCESSFUL",i),eP=(0,L.Zz)(function(e){var n=(0,k.to)(),t=(0,C.ND)().allowAlternateTermsAndConditions;_.useEffect(function(){e.open&&j.showModal()},[]);var i={closeAriaLabel:(0,R.ag)("general.modal.close.button.arialabel"),closeLabel:(0,R.ag)("general.modal.close.button.arialabel"),inputLabel:(0,R.ag)("form.fieldname.email"),submitButton:(0,R.ag)("general.signup.text"),successTitle:(0,R.ag)("emailengagement.success.title"),successText:(0,R.ag)("emailengagement.success.text"),continueButton:(0,R.ag)("general.continueshopping.label"),tryAgainButton:(0,R.ag)("emailengagement.retry.button.text"),privacyPolicyText:t?(0,R.ag)("account.newaccount.createaccountform.alternatetermsandconditions.text.pt4"):(0,R.ag)("account.newaccount.createaccountform.termsandconditions.text.pt4"),privacyPolicyLink:t?(0,R.ag)("account.newaccount.createaccountform.alternatetermsandconditions.link.privacy"):(0,R.ag)("account.newaccount.createaccountform.termsandconditions.link.privacy"),errorTitle:(0,R.ag)("verificationtokenerror.invali
1d.title.text"),errorText:(0,R.ag)("emailengagement.retry.text")};return(0,ex.jsx)(P.u_,{open:e.open,gridColSpan:[12,12,8,6],gridRowSpan:[12,10,10,12],i18nText:i,contentPadding:"0 0 0",headerOffset:n,verticalAlignment:"center",onClose:function(){e.status===eL.UNSUBMITTED&&e.statusHandler(eL.REJECTED),e.closeHandler(),j.closeButtonHandler()},showHeader:[!0,!1,!1,!1],clickOutsideDeactivates:!0,shouldRemoveScrollLock:!1,"data-testid":"engagement-modal",children:(0,ex.jsx)(eC,eR(eR({},e),{},{i18nText:i}))})});function eM(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}J._,J._,J._;var ej=function(e){var n=(0,C.ND)().delayEmailReengagementModal,t=_.useState(eL.UNSUBMITTED),i=(0,I.Z)(t,2),o=i[0],r=i[1],l=_.useState(!1),a=(0,I.Z)(l,2),u=a[0],c=a[1],d=null!=n?n:0;_.useEffect(function(){if(!(void 0!==w.get("emailEngagementCookie"))){if(d&&d>0){var e=setTimeout(function(){c(!0)},d);return function(){return clearTimeout(e)}}c(!0)}},[d]),_.useEffect(function(){switch(o){case eL.SUCCESSFUL:w.set("emailEngagementCookie","newsletter-accepted",{expires:365});break;case eL.REJECTED:w.set("emailEngagementCookie","newsletter-rejected",{expires:365});break;case eL.FAILURE:w.set("emailEngagementCookie","newsletter-failure",{expires:365})}},[o]);var s={picture:e.picture,modalTitle:e.emailReEngagementTitleText||"",bulletText:[e.emailReEngagementBulletText1||"",e.emailReEngagementBulletText2||"",e.emailReEngagementBulletText3||""],status:o,open:u,statusHandler:function(e){return r(e)},closeHandler:function(){return c(!1)}};return(0,ex.jsx)(eP,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?eM(Object(t),!0).forEach(function(n){(0,A.Z)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):eM(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}({},s))}},37941:function(e){e.exports._={kind:"Document",operationName:"SignUpForMarketing",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SignUpForMarketing"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SignUpForMarketingInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"signUpForMarketing"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"client"},arguments:[]}]}]}}],loc:{source:"\nmutation SignUpForMarketing($input: SignUpForMarketingInput!) {\n  signUpForMarketing(input: $input) @client\n}\n"}}}}]);
2//# sourceMappingURL=1641.a73f0f2883676391.js.map

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.