1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opens = _____WB$wombat$assign$function_____("opens"); 10(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{"/Nrg":function(t,e,r){"use strict";r.d(e,"a",(function(){return O}));var n,o,a,i=r("KD1n"),c=r("ERkP"),u=r("KYvd"),s=r("DQj2"),l=r("DG7P"),f=r("dmrr"),d=r("7asP"),h=r("6QEl"),p=r("135/"),g=r("jiAW"),b=c.createElement,v=h.c.h1(n||(n=Object(i.a)(["\n ","\n margin-top: 0;\n margin-bottom: ",";\n ","\n"])),Object(p.a)("large1","alternate"),Object(g.h)(3),Object(u.b)()),y=h.c.h2(o||(o=Object(i.a)(["\n ","\n margin-top: ",";\n"])),Object(p.a)("medium1","alternate"),Object(g.h)(4)),m=Object(h.c)(s.a)(a||(a=Object(i.a)(["\n margin-bottom: ",";\n"])),Object(g.h)(4)),O=function(t){var e=c.createRef(),r=c.createRef(),n=c.useContext(l.b);return c.useEffect((function(){null!==e&&null!==e.current&&window.scrollTo(e.current.offsetTop,0)}),[]),c.useEffect((function(){n.drawFocusElement("badToken",r)}),[]),b("div",{ref:e},b(v,{"data-testid":"".concat(t.testContext,"-reset-message-title"),ref:r},t.text.heading),b(f.a,{type:"success",text:t.text.platformMessage,subText:t.dynamicText}),b(y,null,t.text.subHeading),b(m,{content:t.text.safeHtml}),b(d.a,{emphasis:"low",sizing:"regular","data-testid":"".concat(t.testContext,"-not-received-button"),onClick:t.ctaHandler},t.text.cta))}},"11/B":function(t,e,r){"use strict";r.r(e),r.d(e,"LoginContext",(function(){return le}));var n,o,a,i,c,u,s,l,f,d,h,p,g,b=r("QsI/"),v=r("zjfJ"),y=r("KD1n"),m=r("ERkP"),O=r("ysqo"),w=r.n(O),j=r("LWxk"),x=r("CqS1"),E=r("dNoy"),L=r("xRQW"),T=r("mv33"),k=r("kbkf"),P=r("5wVl"),S=r("n8KH"),_=r("czI7"),I=r("p6kL"),A=r("6QEl"),R=r("zygG"),C=r("fYnN"),N=r("qdM3"),D=r("hKR2"),G=r("5lgO"),U=r("eDQd"),F=r("BiMg"),M=r("xY3a"),B=r("v8K/"),K=r("UvP8"),q=r("yUWx"),H=r("135/"),W=r("jiAW"),X=r("dcTo"),V=r("e8Z3"),z=m.createElement,Y=A.c.h2(n||(n=Object(y.a)(["\n ","\n margin-bottom: ",";\n"])),Object(H.a)("large1","alternate"),Object(W.h)(3)),Q=Object(A.c)(X.a)(o||(o=Object(y.a)(["\n margin-top: ",";\n"])),Object(W.h)(2)),$=A.c.h2(a||(a=Object(y.a)(["\n ","\n"])),Object(H.a)("large1","alternate")),J=A.c.p(i||(i=Object(y.a)(["\n ","\n margin-bottom: ",";\n"])),Object(H.a)("bodyText","default"),Object(W.h)(4)),Z=Object(A.c)(M.a)(c||(c=Object(y.a)(["\n padding: ",";\n"])),Object(W.h)(4)),tt=Object(A.c)(B.a)(u||(u=Object(y.a)(["\n margin-top: ",";\n margin-bottom: ",";\n"])),(function(t){return t.reversed?Object(W.h)(2):Object(W.h)(5)}),(function(t){return t.reversed?Object(W.h)(5):Object(W.h)(2)})),et=Object(A.c)(F.a)(s||(s=Object(y.a)(["\n width: 100%;\n"]))),rt=function(t){var e="invertRegister"===t.reverseGuestCheckoutLayout,r=Object(N.d)(),n=m.useState(null),o=Object(R.a)(n,2),a=o[0],i=o[1],c=m.useState(!1),u=Object(R.a)(c,2),s=u[0],l=u[1],f={loginGuestCheckoutTitle:Object(x.a)("account.login.guestcheckout.title"),loginGuestCheckoutEmptyBasket:Object(x.a)("account.login.guestcheckout.emptybasket.text"),loginNewCustomerTitle:Object(x.a)("account.login.newcustomers.title"),loginNewCustomerText:Object(x.a)("account.login.newcustomers.text"),loginWhyRegisterMessage:Object(x.a)("account.login.whyregister.message"),loginButtonRegister:Object(x.a)("account.login.button.register.text"),loginButtonGuestCheckoutRegisterText:Object(x.a)("account.login.button.guestcheckout.register.text"),accountRegistrationUnavailableWarning:Object(x.a)("account.register.unavailable.error")},d=t.returnTo?"".concat(L.b.Register,"?returnTo=").concat(decodeURI(t.returnTo)):L.b.Register,h=function(t,e){return z(D.a,{"aria-live":t,message:e})},p=Object(E.b)().basketCookieKey;m.useEffect((function(){l("undefined"===typeof C.get(p))}),[]);var g=z("div",{"data-testid":"guest-checkout-container"},z($,{"data-testid":"guest-checkout-title",id:"guest-checkout-title"},f.loginGuestCheckoutTitle||"Continue as a guest"),z(Q,{message:s?f.loginGuestCheckoutEmptyBasket:a,type:s?"info":"error",flashMessageId:"guest checkout",renderAnnouncer:h}),!s&&z(V.a,{containsSubscriptionProduct:t.containsSubscriptionProduct,internalServerErrorCallback:i}));return z(m.Fragment,null,z(k.b,{features:[P.SUPPORTED_FEATURES.REGISTRATION_HIDDEN_ON_LOGIN_PAGE],renderCondition:function(t){return!t.includes(P.SUPPORTED_FEATURES.REGISTRATION_HIDDEN_ON_LOGIN_PAGE)},renderAlternative:z(m.Fragment,null,t.showGuestCheckout&&z(k.b,{features:[P.SUPPORTED_FEATURES.GUEST_CHECKOUT]},z(Z,{"aria-labelledby":"guest-checkout-title"},z(K.Box,{width:1},g))))},z(Z,{"aria-labelledby":"guest-journey-title"},z(q.a,{order:e?[1,0]:[0,1]},!r.includes(U.p.RegistrationUnavailable)&&z(K.Box,{width:1},z(Y,{id:"guest-journey-title","data-testid":"guest-journey-title"},f.loginNewCustomerTitle),z(J,{"data-testid":"guest-journey-message"},f.loginNewCustomerText,f.loginWhyRegisterMessage),z(G.a,{href:d},z(et,{renderedAs:"a",emphasis:"high",sizing:"regular","data-testid":"guest-journey-button"},s?f.loginButtonRegister:f.loginButtonGuestCheckoutRegisterText))),r.includes(U.p.RegistrationUnavailable)&&z(K.Box,{width:1},z(Y,{id:"guest-journey-title","data-testid":"guest-journey-title"},f.loginNewCustomerTitle),z(Q,{message:f.accountRegistrationUnavailableWarning,type:"info",flashMessageId:"registration_unavailable",renderAnnouncer:h})),t.showGuestCheckout&&z(k.b,{features:[P.SUPPORTED_FEATURES.GUEST_CHECKOUT]},z(q.a,{order:e?[1,0]:[0,1]},z(tt,{reversed:e}),g))))))},nt=r("DG7P"),ot=r("7xIC"),at=r.n(ot),it=r("H5qd"),ct=r.n(it),ut=r("1U1M"),st=r("WzCI"),lt=r("U+w7"),ft=r("KYvd"),dt=r("DQj2"),ht=r("EI6B"),pt=r("c4N8"),gt=r("7asP"),bt=r("pE1c"),vt=r("GouS"),yt=m.createElement,mt=function(t){var e=t.onSubmitHandler,r=t.forgottenPasswordH
10andler,n=t.onFieldInput,o=t.style,a=t.className,i=t.i18nText,c=t.renderLiveMessage,u=t.renderAnnouncer,s=t.inputScrollOffset,l=void 0===s?0:s,f=t.csrf;return yt(bt.a,Object(ht.a)({},o,{csrf:f,className:a||"",onSubmit:e,renderAnnouncer:u,fields:[{fieldName:"emailAddress",renderField:function(t,e){return yt(K.Box,{width:1,key:e},yt(vt.a,{bindref:t,offset:l},yt(pt.a,{label:i.emailAddressLabel||"Email Address",required:!0,type:"email",onInput:function(t){return n&&n.email(t)},autocomplete:"off",renderLiveMessage:c,i18nText:i})))}},{fieldName:"password",renderField:function(t,e){return yt(K.Box,{width:1,mb:5,key:e},yt(vt.a,{bindref:t,offset:l},yt(pt.a,{label:i.passwordLabel||"Password",required:!0,type:"password",onInput:function(t){return n&&n.password(t)},autocomplete:"off",renderLiveMessage:c,i18nText:i})))}}]}),yt(K.Box,{width:1,mt:4},yt(gt.a,{emphasis:"low",onClick:r,"aria-label":i.forgotPasswordAriaLabel||"Reset your forgotten password","data-testid":"button-forgot-password",_dangerouslyPreventDefaultOnMouseDown:!0},i.forgotPasswordLabel||"Forgotten your password?")),yt(K.Box,{width:1,mt:3},yt(gt.a,{type:"submit",emphasis:"high","aria-label":i.loginButtonAriaLabel||"Sign in to your account","data-testid":"button-submit-login",style:{width:"100%"}},i.loginButtonText||"Sign In")))},Ot=r("jt0n"),wt=r("aA9e"),jt=r("j2PL"),xt=r("7ESh"),Et=r("LXPo"),Lt=r("iLh1"),Tt=r("NAqK"),kt=r("p/+h"),Pt=m.createElement,St=A.c.h2(l||(l=Object(y.a)(["\n ","\n margin-bottom: ",";\n margin-top: ","; ;\n"])),Object(H.a)("bodyText","default"),Object(W.h)(3),Object(W.h)(4)),_t=ct()(f||(f=Object(y.a)(["\n query loginPageSocialProviders {\n socialLoginProviders @client {\n name\n code\n loginUrl\n iconUrl\n }\n }\n"]))),It=function(t){var e=Object(ut.d)(_t),r=e.data,n=e.loading;return Pt(m.Fragment,null,Pt(St,null,Object(x.a)("account.sociallogin.facebook.header.text.login")),!n&&r&&Pt(kt.a,{providers:r.socialLoginProviders,originUrl:t.originUrl,returnToUrl:t.returnToUrl}))},At=m.createElement;function Rt(){Rt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new _(n||[]);return o(i,"_invoke",{value:T(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",h="suspendedYield",p="executing",g="completed",b={};function v(){}function y(){}function m(){}var O={};s(O,i,(function(){return this}));var w=Object.getPrototypeOf,j=w&&w(w(I([])));j&&j!==r&&n.call(j,i)&&(O=j);var x=m.prototype=v.prototype=Object.create(O);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(l).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function T(e,r,n){var o=d;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===g){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?g:h,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=g,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&
vendor: 4,584 bytes, line 10
10(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,b;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=m,o(x,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:y,configurable:!0}),y.displayName=s(m,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(L.prototype),s(L.prototype,c,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new L(l(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),s(x,u,"Generator"),s(x,i,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,b):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function Ct(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Nt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
10e%2?Ct(Object(r),!0).forEach((function(e){Object(v.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ct(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Dt,Gt,Ut=A.c.h1(d||(d=Object(y.a)(["\n ","\n margin-bottom: ",";\n "," {\n margin-bottom: ",";\n }\n ","\n"])),Object(H.a)("large1","alternate"),Object(W.h)(3),(function(t){return Object(Ot.d)(t.theme.breakpointUtils.map,"sm")}),Object(W.h)(3),Object(ft.b)()),Ft=Object(A.c)(dt.a)(h||(h=Object(y.a)(["\n margin-bottom: ",";\n"])),Object(W.h)(3)),Mt=Object(A.c)(X.a)(p||(p=Object(y.a)(["\n margin-bottom: ",";\n"])),Object(W.h)(2)),Bt=ct()(g||(g=Object(y.a)(["\n mutation login($input: LoginInput!, $alternateAuth: Boolean!) {\n login(input: $input, alternateAuth: $alternateAuth) @client {\n error\n passwordResetToken\n }\n }\n"]))),Kt=function(t,e){return At(D.a,{"aria-live":t,message:e})},qt=function(t){var e=Object(jt.b)(),r=Object(xt.a)(),n=Object(st.a)(),o=Object(E.g)().originUrl,a=Object(N.e)(),i=Object(E.d)().userAgent,c=Object(E.c)(U.o.AlternateAuth),u=m.useState(null),s=Object(R.a)(u,2),l=s[0],f=s[1],d=m.useRef(null),h=Object(x.a)("account.login.loginform.subtitle.text"),p=m.useContext(nt.b),g=Object(ut.c)(Bt),v=Object(R.a)(g,1)[0],y={FAILED_LOGIN:Object(x.a)("account.login.error.failed_login"),ACCOUNT_LOCKED:Object(x.a)("account.login.accountlocked.message"),ACCOUNT_VERIFICATION:Object(x.a)("account.login.error.account_verification"),PENDING_ACTION:Object(x.a)("account.login.error.pending_action"),INVALID_DATA:Object(x.a)("account.login.error.invalid_data"),ACCOUNT_NOT_FOUND:Object(x.a)("general.error.generic.text"),INVALID_PASSWORD:Object(x.a)("account.login.error.incorrect_password"),EMAIL_VERIFICATION_SENT:Object(x.a)("account.login.error.email_verification"),GENERAL:Object(x.a)("general.error.generic.text"),EXPIRED_TOKEN:Object(x.a)("account.login.passwordreset.badtoken.expired.title"),INVALID_TOKEN:Object(x.a)("verificationtokenerror.invalid.text.text"),ALREADY_USED_TOKEN:Object(x.a)("account.login.passwordreset.badtoken.inactive.subtext")},O={emailValidationError:Object(x.a)("general.form.input.validation.email"),requiredError:Object(x.a)("general.form.input.validation.required"),minLengthError:Object(x.a)("general.form.input.validation.minlength"),maxLengthError:Object(x.a)("general.form.input.validation.maxlength"),patternError:Object(x.a)("general.form.input.validation.pattern")};m.useEffect((function(){p.drawFocusElement("login",d)}),[]);var w=Object(Et.b)({bucket:Et.a.LOGIN}),j=function(){var t=Object(b.a)(Rt().mark((function t(o,a){var i,u,s,l,d,h,p;return Rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=Lt.a.generate(),r.info("Attempting login request",{reqId:i,"X-Captcha-Type":w.type,"X-Captcha-Response":a}),t.prev=2,t.next=5,v({variables:{alternateAuth:c,input:{password:o.password,username:o.emailAddress}},context:{headers:{"X-Captcha-Type":w.type,"X-Captcha-Response":a}}});case 5:if(d=t.sent,h=d.data,e({type:"login.existing_customer",payload:n({eventData:{type:"login",subtype:"existing_customer"},experiments:null===(u=h.login.extensions)||void 0===u?void 0:u.experiments,rays:[null===(s=h.login.extensions)||void 0===s?void 0:s.ray],requestData:Nt(Nt({},null===(l=h.login.extensions)||void 0===l?void 0:l.LoggerLinkData),{},{url:window.location.href}),errors:h.login.error?[h.login.error]:[]})}),!h.login.error){t.next=16;break}if(f(y[h.login.error]),r.warn("Login failed with error: ".concat(h.login.error),Nt(Nt({},null===(p=h.login.extensions)||void 0===p?void 0:p.LoggerLinkData),{},{reqId:i,url:window.location.href,"X-Captcha-Type":w.type,"X-Captcha-Response":a})),"OK_REQUIRES_PASSWORD_RESET"!==h.login.error){t.next=14;break}return t.next=14,at.a.push({pathname:L.b.PasswordReset,query:{resetToken:h.login.passwordResetToken,email:o.emailAddress}});case 14:t.next=18;break;case 16:Object(lt.a)({key:"visitorLoginMethod",value:"Login"}),window.location.href.includes(L.b.AccountLink.replace("/",""))&&!1===window.location.href.includes("redirect_behaviour")?window.location.replace("".concat(window.location.href,"&redirect_behaviour=normal")):at.a.reload();case 18:t.next=25;break;case 20:t.prev=20,t.t0=t.catch(2),r.debug(t.t0.message,{reqId:i,"X-Captcha-Type":w.type,"X-Captcha-Response":a}),t.t0.networkError||0!==t.t0.graphQLErrors.length||r.error(t.t0.message),f(y.GENERAL);case 25:case"end":return t.stop()}}),t,null,[[2,20]])})));return function(e,r){return t.apply(this,arguments)}}(),T=function(){var t=Object(b.a)(Rt().mark((function t(e){return Rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:f(null),w.submit((function(t){j(e,t)}));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),k=m.useContext(le),P=k.pageMessage,S=k.returnToUrl,_=P.messageKey&&Object(x.a)(P.messageKey),I=Object(E.d)().csrf,A=m.useState(!0),C=Object(R.a)(A,2),D=C[0],G=C[1];return At(nt.d,null,At(Ut,{"data-testid":"login-title",ref:d},Object(x.a)("account.login.existingcustomers.title")),h&&At(Ft,{content:h}),At(Mt,{message:function(t,e){return l||((null===t||void 0===t?void 0:t.includes("addReview.account"))?Object(x.a)("account.login.to.write.review")||"Please login to submit a review":(null===t||void 0===t?void 0:t.includes("helpfulReview.account"))||(null===t||void 0===t?void 0:t.includes("reviewAction"))&&(null===t||void 0===t?void 0:t.includes("POSITIVE"))||(null===t||void 0===t?void 0:t.includes("reviewAction"))&&(null===t||void 0===t?void 0:t.includes("NEGATIVE"))?Object(x.a)("account.login.to.vote.review")||"Please login to vote for a review":(null===t||void 0===t?void 0:t.includes("reportReview.account"))||(null===t||void 0===t?void 0:t.includes("reviewAction"))&&(null===t||void 0===t?void 0:t.includes("REPORT"))?Object(x.a)("account.login.to.report.review")||"Please login to report a review":(null===t||void 0===t?void 0:t.includes("performAccountLink.account"))?Object(x.a)("account.login.linkingaccounts.message")||"Please sign in to your account, or create one in order to link your account credits.":e&&Ob
10ject(wt.a)(e)?Object(x.a)("account.useragent.nottrusted.text"):null)}(S,i),type:l?"error":"info",flashMessageId:"login",renderAnnouncer:Kt,urlParams:{messageType:P.messageType,messageId:P.messageId,messageText:_}}),D&&w.captcha,At(mt,{csrf:I,onSubmitHandler:T,forgottenPasswordHandler:function(){G(!1),p.next("login")},onFieldInput:{email:function(t){p.dispatch({contextId:"login",type:"add",data:{key:"email",value:t.nativeEvent.target&&t.nativeEvent.target.value}})},password:function(){}},renderAnnouncer:Kt,i18nText:Nt({emailAddressLabel:Object(x.a)("form.fieldname.email"),passwordLabel:Object(x.a)("form.fieldname.password"),forgotPasswordLabel:Object(x.a)("account.login.forgotten-your-password.text"),forgotPasswordAriaLabel:Object(x.a)("account.login.forgotten-your-password.text.arialabel"),loginButtonText:Object(x.a)("account.login.existingcustomers.login.button.text"),loginButtonAriaLabel:Object(x.a)("account.login.existingcustomers.login.button.text.arialabel"),showLabel:Object(x.a)("input.password.show"),showAriaLabel:Object(x.a)("input.password.show.arialabel"),hideLabel:Object(x.a)("input.password.hide"),hideAriaLabel:Object(x.a)("input.password.hide.arialabel"),clearAriaLabel:Object(x.a)("input.clear.arialabel"),showAnnouncementText:Object(x.a)("general.form.input.password.show.announcement"),hideAnnouncementText:Object(x.a)("general.form.input.password.hide.announcement"),clearAnnouncementText:Object(x.a)("general.form.input.clear.announcement")},O),renderLiveMessage:function(t,e){return At(Tt.a,{ariaLive:t,message:e})},inputScrollOffset:a}),At(It,{originUrl:o,returnToUrl:S}))},Ht=r("4Yc/"),Wt=r("h/pp"),Xt=m.createElement;function Vt(){Vt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new _(n||[]);return o(i,"_invoke",{value:T(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",h="suspendedYield",p="executing",g="completed",b={};function v(){}function y(){}function m(){}var O={};s(O,i,(function(){return this}));var w=Object.getPrototypeOf,j=w&&w(w(I([])));j&&j!==r&&n.call(j,i)&&(O=j);var x=m.prototype=v.prototype=Object.create(O);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(l).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function T(e,r,n){var o=d;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===g){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?g:h,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=g,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,b;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[i];if(r)return r.call(e);
10if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=m,o(x,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:y,configurable:!0}),y.displayName=s(m,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(L.prototype),s(L.prototype,c,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new L(l(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),s(x,u,"Generator"),s(x,i,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,b):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}var zt,Yt,Qt=Object(A.c)(Wt.a)(Dt||(Dt=Object(y.a)(["\n margin-top: ",";\n margin-bottom: ",";\n"])),Object(W.h)(2),Object(W.h)(4)),$t=ct()(Gt||(Gt=Object(y.a)(["\n mutation forgottenPassword($input: ForgottenPasswordInput) {\n forgottenPassword(input: $input) @client {\n success\n }\n }\n"]))),Jt=function(t){var e=Object(xt.a)(),r=Object(N.e)(),n=Object(Et.b)({bucket:Et.a.FORGOTTEN_PASSWORD}),o=m.useContext(nt.b),a=m.useState(null),i=Object(R.a)(a,2),c=i[0],u=i[1],s=Object(x.a)("account.login.forgottenpassword.error.text"),l=Object(ut.c)($t),f=Object(R.a)(l,1)[0],d=function(){var r=Object(b.a)(Vt().mark((function r(o,a){var i;return Vt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=Lt.a.generate(),e.info("Attempting forgotten password request",{reqId:i,"X-Captcha-Type":n.type,"X-Captcha-Response":a}),r.prev=2,r.next=5,f({variables:{input:{username:o.emailAddress}},context:{headers:{"X-Captcha-Type":n.type,"X-Captcha-Response":a}}});case 5:t.onSuccess("login"),r.next=13;break;case 8:r.prev=8,r.t0=r.catch(2),e.debug(r.t0.message,{reqId:i,"X-Captcha-Type":n.type,"X-Captcha-Response":a}),r.t0.networkError||0!==r.t0.graphQLErrors.length||e.error(r.t0.message,r.t0),u(s);case 13:case"end":return r.stop()}}),r,null,[[2,8]])})));return function(t,e){return r.apply(this,arguments)}}(),h=function(){var t=Object(b.a)(Vt().mark((function t(e){return Vt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:u(null),n.submit((function(t){return d(e,t)}));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),p=Object(E.d)().csrf;return Xt(m.Fragment,null,null!==c&&Xt(Qt,{error:c}),t.showCaptcha&&n.captcha,Xt(bt.a,{csrf:p,onSubmit:h,renderAnnouncer:t.renderAnnouncer,validateOnRender:"undefined"!==typeof o.getState("login").email&&""!==o.getState("login").email,fields:[{fieldName:"emailAddress",renderField:function(t,e){return Xt(K.Box,{width:1,mb:4,mt:3,key:e},Xt(Ht.a,{bindref:t,offset:r},Xt(pt.a,{label:Object(x.a)("form.fieldname.email"),"data-testid":"forgot-password-form-email-address",required:!0,type:"email",value:o.getState("login").email,i18nText:{requiredError:Object(x.a)("general.form.input.validation.required"),emailValidationError:Object(x.a)("general.form.input.validation.email")},onInput:function(t){o.dispatch({contextId:"login",type:"add",data:{key:"email",value:t.target&&t.target.value}})}})))}}]},Xt(K.Box,{width:[1]},Xt(gt.a,{type:"submit",emphasis:"high","data-testid":"button-submit-forgotpassword",style:{width:"100%"}},Object(x.a)("account.login.forgottenpassword.button.submit.text")))))},Zt=m.createElement,te=A.c.h1(zt||(zt=Object(y.a)(["\n ","\n margin: 0 auto "," auto;\n "," {\n margin-bottom: ",";\n }\n ","\n"])),Object(H.a)("large1","alternate"),Object(W.h)(3),(function(t){return Object(Ot.d)(t.theme.breakpointUtils.map,"sm")}),Object(W.h)(3),Object(ft.b)()),ee=function(){var t=m.useContext(nt.b),e=m.createRef(),r=m.createRef();m.useEffect((function(){null!==e&&null!==e.current&&window.scrollTo(e.current.offsetTop,0)}),[]),m.useEffect((function(){t.drawFocusElement("login",r)}),[]);var n=t.next,o=m.useState(!0),a=Object(R.a)(o,2),i=a[0],c=a[1];return Zt("div",{ref:e},Zt(te,{"data-testid":"forgot-password-title",ref:r},Object(x.a)("account.login.forgottenpassword.emailaddress.label.text")),Zt(dt.a,{content:Object(x.a)("account.login.forgottenpassword.instructions.text")}),Zt(Jt,{showCaptcha:i,onSuccess:n,onEmailInput:function(e){t.dispatch({contextId:"login",type:"add",data:{key:"email",value:e.nativeEvent.target&&e.nativeEvent.target.value}})},renderAnnouncer:function(t,e){return Zt(D.a,{"aria-live":t,message:e})}}),Zt(K.Box,{width:1,mt:2},Zt(gt.a,{emphasis:"low","data-testid":"forgot-password-cancel-button",onClick:function(){c(!1),t.dispatch({contextId:"login",type:"add",data:{key:"email",value:""}}),t.prev("login")}},Object(x.a)("account.login.forgottenpassword.button.cancel")||"Cancel")))}
vendor: 5,333 bytes, line 10
10,re=r("/Nrg"),ne=m.createElement,oe=function(t){var e=m.useContext(nt.b),r={heading:Object(x.a)("account.login.passwordreset.success.title"),platformMessage:Object(x.a)("account.login.passwordreset.success.summary"),subHeading:Object(x.a)("account.login.passwordreset.notreceived.title"),safeHtml:Object(x.a)("account.login.passwordreset.notreceived.bullets"),cta:Object(x.a)("account.login.passwordreset.notreceived.cta")};return ne(nt.a,{style:{padding:Object(W.h)(4)},contextId:"login"},ne(nt.d,null,ne(qt,null)),ne(nt.d,null,ne(ee,null)),ne(nt.d,null,ne(re.a,{text:r,dynamicText:e.getState("login").email,testContext:"password-reset",ctaHandler:function(){e.dispatch({contextId:"login",type:"add",data:{key:"email",value:""}}),e.prev("login")}})))},ae=m.createElement;function ie(){ie=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new _(n||[]);return o(i,"_invoke",{value:T(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",h="suspendedYield",p="executing",g="completed",b={};function v(){}function y(){}function m(){}var O={};s(O,i,(function(){return this}));var w=Object.getPrototypeOf,j=w&&w(w(I([])));j&&j!==r&&n.call(j,i)&&(O=j);var x=m.prototype=v.prototype=Object.create(O);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(l).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function T(e,r,n){var o=d;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===g){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?g:h,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=g,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,b;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=m,o(x,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:y,configurable:!0}),y.displayName=s(m,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(L.prototype),s(L.prototype,c,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new L(l(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),s(x,u,"Generator"),s(x,i,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
10h(S),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,b):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function ce(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ue(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ce(Object(r),!0).forEach((function(e){Object(v.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var se=Object(A.c)(j.a)(Yt||(Yt=Object(y.a)(["\n height: fit-content;\n"]))),le=m.createContext({pageMessage:{messageKey:"",messageType:"",messageId:""},returnToUrl:""}),fe=function(t){var e=Object(x.a)("titles.end.text"),r={metaTagTitle:Object(x.a)("general.page.title.login.text"),metaTagDescription:Object(x.a)("general.page.meta.description.login.text")},n=Object(E.f)().useGuestCheckoutLayout,o=Object(E.g)().domain;return ae(m.Fragment,null,ae(le.Provider,{value:{pageMessage:ue({},t.pageMessage),returnToUrl:t.returnToUrl}},ae(w.a,null,ae("title",null,r.metaTagTitle," ",e),ae("meta",{name:"description",content:r.metaTagDescription}),ae("link",{rel:"canonical",key:"canonical",href:"https://".concat(o).concat(L.b.Login)})),ae(T.a,{responsiveMargin:!0,sendPageVisit:!0},ae(k.b,{features:[P.SUPPORTED_FEATURES.REGISTRATION_HIDDEN_ON_LOGIN_PAGE],renderCondition:function(t){return!t.includes(P.SUPPORTED_FEATURES.REGISTRATION_HIDDEN_ON_LOGIN_PAGE)},renderAlternative:ae(se,{colStart:[1,3,2,3],colSpan:[12,8,5,4],rowStart:[1,1,1,1]},ae(oe,null))},ae(se,{colStart:[1,3,2,3],colSpan:[12,8,5,4],rowStart:[1,1,1,1]},ae(oe,null)),ae(se,{colStart:[1,3,7,7],colSpan:[12,8,5,4],rowStart:[2,2,1,1]},ae(rt,{showGuestCheckout:t.showGuestCheckout,containsSubscriptionProduct:t.containsSubscriptionProduct,reverseGuestCheckoutLayout:n,returnTo:t.returnToUrl}))))))},de=function(t){var e={messageKey:"",messageType:"",messageId:""};if(t.req){var r=Object(S.b)(t.req,"*");e.messageKey=r.messageKey,e.messageType=r.messageType,e.messageId=r.messageId}return ue({},e)};fe.getInitialProps=function(){var t=Object(b.a)(ie().mark((function t(e){var r,n,o,a,i,c,u,s,l;return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Object(_.a)(e),n=de(e),o=e.req,a=e.asPath,i=ue({pageMessage:n},r),o?(c=Object(S.b)(o,"returnTo"),u=c.returnTo,Object.assign(i,{returnToUrl:u})):(s=Object(S.a)(a||window.location.search,"returnTo"),l=s.returnTo,Object.assign(i,{returnToUrl:decodeURI(l||"")})),t.abrupt("return",i);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),fe.Layout=I.a;e.default=fe},"5lgO":function(t,e,r){"use strict";r.d(e,"a",(function(){return h}));var n=r("cxan"),o=r("zjfJ"),a=r("zygG"),i=r("HbGN"),c=r("ERkP"),u=r("jvFD"),s=r.n(u),l=["isExternal","href","children"],f=c.createElement;function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var h=function(t){var e=t.isExternal,r=t.href,u=t.children,h=Object(i.a)(t,l),p=c.useState(!0),g=Object(a.a)(p,2),b=g[0],v=g[1];
10return c.useEffect((function(){r&&function(t,e){try{var r=new URL(t);return""!==r.host&&r.host!==e}catch(n){return!1}}(r,window.location.host)&&v(!1)}),[]),!1===b?c.cloneElement(u,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){Object(o.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({href:r,rel:"noopener noreferrer"},h)):f(s.a,Object(n.a)({},h,{href:decodeURI(r),passHref:!0,prefetch:!e&&void 0}),u)};h.defaultProps={isExternal:!1}},DG7P:function(t,e,r){"use strict";r.d(e,"b",(function(){return E})),r.d(e,"d",(function(){return L})),r.d(e,"c",(function(){return T})),r.d(e,"a",(function(){return k}));var n,o,a,i=r("cxan"),c=r("HbGN"),u=r("zjfJ"),s=r("zygG"),l=r("KD1n"),f=r("ERkP"),d=r("2F2M"),h=r("zWxw"),p=r("jiAW"),g=r("Oj2O"),b=r("LWxk"),v=r("KD7D"),y=["children","style"],m=f.createElement;function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function w(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?O(Object(r),!0).forEach((function(e){Object(u.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var j=Object(p.i)(Object(v.c)(b.a))(n||(n=Object(l.a)(["\n ",";\n position: relative;\n background: ",";\n overflow: hidden;\n transition: height 0.4s ease-out;\n"])),(function(t){return t.theme.elevation.elevationActive&&Object(g.a)(1)}),(function(t){return t.theme.surface.style.backgroundColor})),x=Object(p.i)(v.b)(o||(o=Object(l.a)(["\n top: 0;\n position: relative;\n width: 100%;\n"]))),E=f.createContext({order:{},direction:{},focusRef:{},next:function(){},prev:function(){},reset:function(){},set:function(t,e){console.info(t,e)},getState:function(){return{}},dispatch:function(){},drawFocusElement:function(){},drawFocus:function(){}}),L=p.i.div(a||(a=Object(l.a)([""]))),T=function(t){var e=t.children,r=f.useState({}),n=Object(s.a)(r,2),o=n[0],a=n[1],i=f.useState({}),c=Object(s.a)(i,2),l=c[0],d=c[1],h=f.useState({}),p=Object(s.a)(h,2),g=p[0],b=p[1],v=f.useState(!0),y=Object(s.a)(v,2),O=y[0],j=y[1],x=Object(f.useReducer)((function(t,e){switch(e.type){case"add":t[e.contextId]=Object(u.a)({},e.data.key,e.data.value)}return t}),{}),L=x[0],T=x[1];return m(E.Provider,{value:{order:o,direction:l,focusRef:g,next:function(t){d((function(e){return w(w({},e),{},Object(u.a)({},t,1))})),a((function(e){return w(w({},e),{},Object(u.a)({},t,(e[t]||0)+1))}))},prev:function(t){d((function(e){return w(w({},e),{},Object(u.a)({},t,-1))})),a((function(e){return w(w({},e),{},Object(u.a)({},t,e[t]-1))}))},reset:function(t){d((function(e){return w(w({},e),{},Object(u.a)({},t,-1))})),a((function(e){return w(w({},e),{},Object(u.a)({},t,0))})),d((function(e){return w(w({},e),{},Object(u.a)({},t,1))}))},set:function(t,e){d((function(r){return w(w({},r),{},Object(u.a)({},t,e>o[t]?1:-1))})),a((function(r){return w(w({},r),{},Object(u.a)({},t,e))}))},getState:function(t){return L[t]||{}},dispatch:T,drawFocusElement:function(t,e){b((function(r){return w(w({},r),{},Object(u.a)({},t,e.current))}))},drawFocus:function(t){if(O)j(!1);else if(g[t]){var e,r;g[t].tabIndex=-1,null===(e=g[t])||void 0===e||e.addEventListener("blur",(function(){var e;return null===(e=g[t])||void 0===e?void 0:e.removeAttribute("tabindex")})),null===(r=g[t])||void 0===r||r.focus()}}}},e)},k=function(t){var e=t.children,r=t.style,n=Object(c.a)(t,y),o=f.useState("100%"),a=Object(s.a)(o,2),u=a[0],l=a[1],p=f.useContext(E),g=f.Children.toArray(e),b=f.useRef(null),O=Object(d.d)(),w=f.useState(0),L=Object(s.a)(w,2),T=L[0],k=L[1];f.useEffect((function(){p.order[t.contextId]>=g.length&&p.reset(t.contextId)}),[p.order]),f.useEffect((function(){var t;(null===b||void 0===b?void 0:b.current)&&k(null===(t=b.current)||void 0===t?void 0:t.clientWidth)}),[]);var P=function(){return f.isValidElement(g[p.order[t.contextId]])?p.order[t.contextId]:0},S={enter:function(t){return O?{opacity:0}
10:{x:t>0?T:-T,opacity:0}},center:O?{opacity:1}:{x:0,opacity:1},exit:function(t){return O?{opacity:0}:{x:t<0?T:-T,opacity:0}}};return m(j,Object(i.a)({as:"section"},n,{style:{height:"string"===typeof u?u:u+(r?2*parseInt(r.padding,10):0)}}),m(v.a,{initial:!1,custom:p.direction[t.contextId]},m(x,{key:"".concat(P()),variants:S,initial:"enter",animate:"center",exit:"exit",custom:p.direction[t.contextId],transition:{duration:.4,ease:[.64,.04,.35,1]},style:r,onAnimationStart:function(){return(null===b||void 0===b?void 0:b.current)&&"number"===typeof u&&(b.current.style.position="absolute")},onAnimationComplete:function(){var e;p.drawFocus(t.contextId),(null===b||void 0===b?void 0:b.current)&&k(null===(e=b.current)||void 0===e?void 0:e.clientWidth)},ref:b},g[P()],m(h.a,{handleHeight:!0,onResize:function(t,e){return l(e)}}))))}},KeDb:function(t,e,r){"use strict";var n=r("zQIG"),o=r("8mBC"),a=r("I/kN"),i=r("cMav"),c=r("pSQP");function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=c(t);if(e){var o=c(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return i(this,r)}}var s=r("Y3ZS"),l=r("pONU");e.__esModule=!0,e.default=void 0;var f,d=l(r("ERkP")),h=r("cRaD"),p=r("fvxO"),g=s(r("7xIC")),b=r("L9lV");function v(t){return t&&"object"===typeof t?(0,p.formatWithValidation)(t):t}var y=new Map,m=window.IntersectionObserver,O={};function w(){return f||(m?f=new m((function(t){t.forEach((function(t){if(y.has(t.target)){var e=y.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&(f.unobserve(t.target),y.delete(t.target),e())}}))}),{rootMargin:"200px"}):void 0)}var j=function(t){a(r,t);var e=u(r);function r(t){var o;return n(this,r),(o=e.call(this,t)).p=void 0,o.cleanUpListeners=function(){},o.formatUrls=function(t){var e=null,r=null,n=null;return function(o,a){if(n&&o===e&&a===r)return n;var i=t(o,a);return e=o,r=a,n=i,i}}((function(t,e){return{href:(0,b.addBasePath)(v(t)),as:e?(0,b.addBasePath)(v(e)):e}})),o.linkClicked=function(t){var e=t.currentTarget,r=e.nodeName,n=e.target;if("A"!==r||!(n&&"_self"!==n||t.metaKey||t.ctrlKey||t.shiftKey||t.nativeEvent&&2===t.nativeEvent.which)){var a=o.formatUrls(o.props.href,o.props.as),i=a.href,c=a.as;if(function(t){var e=(0,h.parse)(t,!1,!0),r=(0,h.parse)((0,p.getLocationOrigin)(),!1,!0);return!e.host||e.protocol===r.protocol&&e.host===r.host}(i)){var u=window.location.pathname;i=(0,h.resolve)(u,i),c=c?(0,h.resolve)(u,c):i,t.preventDefault();var s=o.props.scroll;null==s&&(s=c.indexOf("#")<0),g.default[o.props.replace?"replace":"push"](i,c,{shallow:o.props.shallow}).then((function(t){t&&s&&(window.scrollTo(0,0),document.body.focus())}))}}},o.p=!1!==t.prefetch,o}return o(r,[{key:"componentWillUnmount",value:function(){this.cleanUpListeners()}},{key:"getPaths",value:function(){var t=window.location.pathname,e=this.formatUrls(this.props.href,this.props.as),r=e.href,n=e.as,o=(0,h.resolve)(t,r);return[o,n?(0,h.resolve)(t,n):o]}},{key:"handleRef",value:function(t){var e=this;this.p&&m&&t&&t.tagName&&(this.cleanUpListeners(),O[this.getPaths().join("%")]||(this.cleanUpListeners=function(t,e){var r=w();return r?(r.observe(t),y.set(t,e),function(){try{r.unobserve(t)}catch(e){console.error(e)}y.delete(t)}):function(){}}(t,(function(){e.prefetch()}))))}},{key:"prefetch",value:function(t){if(this.p){var e=this.getPaths();g.default.prefetch(e[0],e[1],t).catch((function(t){0})),O[e.join("%")]=!0}}},{key:"render",value:function(){var t=this,e=this.props.children,r=this.formatUrls(this.props.href,this.props.as),n=r.href,o=r.as;"string"===typeof e&&(e=d.default.createElement("a",null,e));var a=d.Children.only(e),i={ref:function(e){t.handleRef(e),a&&"object"===typeof a&&a.ref&&("function"===typeof a.ref?a.ref(e):"object"===typeof a.ref&&(a.ref.current=e))},onMouseEnter:function(e){a.props&&"function"===typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),t.prefetch({priority:!0})},onClick:function(e){a.props&&"function"===typeof a.props.onClick&&a.props.onClick(e),e.defaultPrevented||t.linkCl
10icked(e)}};return!this.props.passHref&&("a"!==a.type||"href"in a.props)||(i.href=o||n),d.default.cloneElement(a,i)}}]),r}(d.Component);e.default=j},jvFD:function(t,e,r){t.exports=r("KeDb")}}]); 11}
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.