PageSourceSearch

https://www.bendigoadvertiser.com.au/assets/_next/static/chunks/1419.80f768002794b8e1.js

js bendigoadvertiser.com.au collected 2026-10-02 05:04:17 UTC 26,431 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1419],{6285:(e,t,n)=>{n.d(t,{A:()=>i});var s=n(60143);function i(e){var t=e.icon,n=e.onClick,i=e.text;return(0,s.jsxs)("button",{className:"relative rounded border border-gray-700 px-3 py-2.5 text-center font-inter text-sm leading-5 text-gray-800 shadow-sm hover:border-gray-300",onClick:n,type:"button",children:[(0,s.jsx)("div",{className:"absolute left-6 top-1/2 -translate-y-1/2",children:t}),i]})}n(45159)},81419:(e,t,n)=>{n.r(t),n.d(t,{default:()=>G});var s,i=n(76367),a=n(91167),r=n(60143),o=n(45159),l=n(12225),c=n(62715),u=n(5049),d=n(80293),m=n(59533),h=n(79755),g=n(64095),f=n(63233),x=n(29722),p=n(6285),y=n(68919),b=n(65019),v=n(54504);function w(e){var t=e.clearErrors,n=e.email,s=e.enterpriseLogins,i=e.errors,a=e.loading,l=e.onGetEmail,u=e.onLoginApple,d=e.onLoginFacebook,m=e.onLoginGoogle,h=e.setEmail,w=(0,c.GV)(function(e){return e.features.piano}),j=(0,c.GV)(function(e){return e.settings.staticUrl}),_=(0,c.GV)(function(e){return e.features.piano.enabled&&e.features.piano.data.registrationOnly}),k=(0,o.useRef)(null),N=(0,o.useRef)(null),S=i.filter(function(e){return e.field===g.dO.EMAIL});(0,v.V5)(N,{offset:20});var C=(0,o.useCallback)(function(){(0,f.qE)({action:"login_screen",label:"subscribe_link_click",trigger:"signup_flow"})},[]),L=(0,o.useCallback)(function(){(0,f.qE)({action:"login_screen",label:"register_link_click",trigger:"signup_flow"})},[]);if((0,o.useEffect)(function(){var e;null==(e=k.current)||e.focus()},[]),!w.enabled)return null;var E=w.data,A=E.supportLoginApple,O=E.supportLoginFacebook,P=E.supportLoginGoogle;return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"w-full pt-11 text-center text-2xl font-medium leading-9",children:"Log in"}),(0,r.jsxs)("form",{onSubmit:function(e){e.preventDefault(),(0,f.qE)({action:"login_screen",label:"continue_button_click",trigger:"signup_flow"}),l()},children:[(0,r.jsx)("div",{className:"mt-12 text-sm font-semibold",children:"Email Address"}),(0,r.jsxs)("div",{className:"relative mt-2",children:[(0,r.jsx)("input",{className:(0,x.A)("w-full text-ellipsis rounded border py-3 pl-5 text-sm leading-4 placeholder:leading-4 placeholder:text-gray-500",S.length>0?"border-red-500 pr-12":"border-gray-900 pr-5"),name:"email",onChange:function(e){return h(e.target.value)},onFocus:function(){return t(g.dO.EMAIL)},placeholder:"Enter your email address",ref:k,type:"email",value:n}),S.length>0&&(0,r.jsx)("div",{className:"absolute right-4 top-1/2 -translate-y-1/2",children:(0,r.jsx)("svg",{fill:"none",height:"24",width:"24",children:(0,r.jsx)("path",{clipRule:"evenodd",d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2ZM13 13V7h-2v6h2Zm0 4v-2h-2v2h2Zm-9-5c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8-8 3.58-8 8Z",fill:"#DC2626",fillRule:"evenodd"})})})]}),S.length>0&&(0,r.jsx)("div",{className:"mt-2 flex flex-col gap-y-2 text-sm font-medium text-red-600",children:S.map(function(e){return(0,r.jsxs)("div",{children:[e.message.slice(0,1).toUpperCase(),e.message.slice(1)]},e.message)})}),(0,r.jsx)(y.A,{bgColor:"bg-red-600 disabled:bg-gray-300",buttonClassName:"lg:w-full",className:"mt-4",disabled:a,fontSize:"text-sm",height:"h-10.5 md:h-10.5 lg:h-10.5",hoverColor:"hover:bg-red-700 disabled:hover:bg-gray-300",mobileFullWidth:!0,ref:N,text:"Continue",textColor:"text-white",type:"submit"})]}),(A||O||P||s.length>0)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"mt-7 flex flex-row items-center",children:[(0,r.jsx)("div",{className:"h-px grow border-t border-gray-400"}),(0,r.jsx)("div",{className:"grow-0 px-2.5 text-xs font-medium",children:"or"}),(0,r.jsx)("div",{className:"h-px grow border-t border-gray-400"})]}),(0,r.jsxs)("div",{className:"mt-5 flex flex-col gap-y-4",children:[P&&(0,r.jsx)(p.A,{icon:(0,r.jsx)("img",{alt:"Google",height:"21",src:"".concat(j,"images/auth/google.png"),width:"19"}),onClick:m,text:"Continue with Google"}),A&&(0,r.jsx)(p.A,{icon:(0,r.jsx)("img",{alt:"Apple",height:"21",src:"".concat(j,"images/auth/apple.png"),width:"17"}),onClick:u,text:"Continue with Apple"}),O&&(0,r.jsx)(p.A,{icon:(0,r.jsx)("img",{alt:"Facebook",height:"19",src:"".concat(j,"images/auth/facebook.png"),width:"19"}),onClick:d,text:"Continue with Facebook"}),s.map(function(e){return(0,r.jsx)(p.A,{icon:(0,r.jsx)("img",{alt:e.name,height:"21",src:(0,g.N6)(e),width:"19"}),onClick:e.onClick,text:(0,g.FT)(e)},e.name)})]})]}),(0,r.jsx)("div",{className:"flex flex-col justify-center text-center text-sm font-medium",children:(0,r.jsxs)("div",{className:"mt-12",children:["No account?"," ",_?(0,r.jsx)(b.A,{hideVisited:!0,href:"/register/",onClick:L,children:"Register"}):(0,r.jsx)(b.A,{channel:"host_page_subs_clicks",hideVisited:!0,href:"/subscribe/",onClick:C,children:"Subscribe"})]})})]})}var j=n(70011);function _(e){var t=e.email,n=e.onReturn,s=(0,a._)((0,o.useState)(t),1)[0],i=(0,o.useCallback)(function(){(0,f.qE)({action:"forgotten_password",label:"need_help_link_click",trigger:"signup_flow"})},[]);return(0,r.jsxs)("div",{className:"pt-11 text-center",children:[(0,r.jsxs)("div",{className:"relative h-9",children:[(0,r.jsx)("button",{"aria-label":"Back",className:"absolute left-0 top-1/2 flex size-9 -translate-y-1/2 items-center justify-center",onClick:n,type:"button",children:(0,r.jsx)("svg",{fill:"none",height:"24",width:"24",children:(0,r.jsx)("path",{d:"m15 19-7-7 7-7",stroke:"#111827",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}),(0,r.jsx)("div",{className:"text-2xl font-semibold leading-9",children:"Check your email"})]}),(0,r.jsxs)("div",{className:"mx-auto max-w-xs",children:[(0,r.jsxs)("div",{className:"mt-16",children:["We have just sent you a reset password link to"," ",(0,r.jsx)("span",{className:"break-all font-semibold",children:s}),". Please check your email inbox."]}),(0,r.jsx)("div",{className:"mt-8",children:"If you have not received the email after 2 minutes, please ensure that the email address above is correct and check your spam folder as well."})]}),(0,r.jsx)(j.A,{className:"mt-12 inline-block text-center text-sm font-medium",hideVisited:!0,onClick:i,children:"Need help?"})]})}var k=n(92584),N=n(54166);function S(e){var t=e.clearErrors,n=e.email,s=e.errors,i=e.isLoading,l=e.isSocialConfirmLogin,c=e.onForgottenPassword,u=e.onLogin,d=e.onReturn,m=e.password,h=e.setPassword,p=e.socialType,w=(0,a._)((0,o.useState)(n),1)[0],j=(0,a._)((0,o.useState)(l),2),_=j[0],S=j[1],C=(0,o.useRef)(null),L=(0,a._)((0,o.useState)(!1),2),E=L[0],A=L[1],O=s.filter(function(e){return e.field===g.dO.PASSWORD}),P=(0,o.useRef)(null);(0,v.V5)(P,{offset:20}),(0,o.useEffect)(function(){var e;null==(e=C.current)||e.focus()},[]);var I=(0,o.useCallback)(function(){(0,f.qE)({action:"email_password",label:"forgot_password_link_click",trigger:"signup_flow"}),c()},[c]),R=(0,o.useCallback)(function(){S(!1)},[]);return(0,r.jsxs)("div",{className:"pt-11",children:[(0,r.jsxs)("div",{className:"relative h-9 text-center",children:[(0,r.jsx)("button",{"aria-label":"Back",className:"absolute left-0 top-1/2 flex size-9 -translate-y-1/2 items-center justify-center",onClick:function(){return d()},type:"button",children:(0,r.jsx)("svg",{fill:"none",height:"24",width:"24",children:(0,r.jsx)("path",{d:"m15 19-7-7 7-7",stroke:"#111827",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}),(0,r.jsx)("div",{className:"text-2xl font-medium leading-9",children:l?"Hi there":"Log in"})]}),_&&(0,r.jsxs)("div",{className:"mt-4 flex rounded-md bg-blue-50 px-4 py-6 text-center",children:[(0,r.jsx)("span",{children:(0,r.jsx)(N.y,{className:"text-base text-blue-400",icon:k.mEO})}),(0,r.jsx)("div",{className:"px-5 text-left",children:(0,r.jsxs)("p",{className:"text-sm font-medium text-blue-800",children:["You already have an existing account, please login to connect your account with ",(0,g.t1)(p)]})}),(0,r.jsx)("button",{"aria-label":"Close",className:"h-8",onClick:R,type:"button",children:(0,r.jsx)(N.y,{className:"text-xl text-blue-400",icon:k.Jyw})})]}),(0,r.jsxs)("form",{onSubmit:function(e){e.preventDefault(),u()},children:[(0,r.jsx)("div",{className:"mt-8 text-sm font-semibold",children:"Email Address"}),(0,r.jsxs)("button",{className:"relative mt-2 w-full",onClick:function(){return d(!0)},type:"button",children:[(0,r.jsx)("input",{className:"pointer-events-none w-full text-ellipsis rounded border border-gray-900 py-3 pl-5 pr-12 text-sm leading-4 placeholder:leading-4 placeholder:text-gray-500 disabled:opacity-50",disabled:!0,name:"email",type:"email",value:w}),(0,r.jsx)("div",{className:"pointer-events-none absolute right-4 top-1/2 -translate-y-1/2 text-sm font-medium text-blue-600",children:"Edit"})]}),(0,r.jsx)("div",{className:"mt-4.5 text-sm font-semibold",children:"Password"}),(0,r.jsxs)("div",{className:"relative mt-2",children:[(0,r.jsx)("input",{className:(0,x.A)("w-full rounded border py-3 pl-5 pr-16 text-sm leading-4",O.length>0?"border-red-500":"border-gray-900"),name:"password",onChange:function(e){return h(e.target.value)},onFocus:function(){return t(g.dO.PASSWORD)},onKeyDown:function(e){"Enter"===e.key&&u()},ref:C,type:E?"text":"password",value:m}),0===O.length&&(0,r.jsx)("button",{className:"absolute right-4 top-1/2 -translate-y-1/2 text-sm font-medium",onClick:function(){return A(function(e){return!e})},type:"button",children:E?"Hide":"Show"}),O.length>0&&(0,r.jsx)("div",{className:"absolute right-4 top-1/2 -translate-y-1/2",children:(0,r.jsx)("svg",{fill:"none",height:"24",width:"24",children:(0,r.jsx)("path",{clipRule:"evenodd",d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2ZM13 13V7h-2v6h2Zm0 4v-2h-2v2h2Zm-9-5c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8-8 3.58-8 8Z",fill:"#DC2626",fillRule:"evenodd"})})})]}),O.length>0&&(0,r.jsx)("div",{className:"mt-2 flex flex-col gap-y-2 text-sm font-medium text-red-600",children:O.map(function(e){return(0,r.jsxs)("div",{children:[e.message.slice(0,1).toUpperCase(),e.message.slice(1)]},e.message)})}),(0,r.jsx)(y.A,{bgColor:"bg-red-600 disabled:bg-gray-300",buttonClassName:"lg:w-full py-px",className:"mt-4",disabled:i,fontSize:"text-sm",height:"h-10.5 md:h-10.5 lg:h-10.5",hoverColor:"hover:bg-red-700 disabled:hover:bg-gray-300",mobileFullWidth:!0,ref:P,text:"Log In",textColor:"text-white",type:"submit"})]}),(0,r.jsx)(b.A,{className:"mt-4 inline-block cursor-pointer text-sm",hideVisited:!0,href:"#",onClick:I,children:"Forgot Password?"})]})}function C(e){var t=e.email,n=e.onReturn,s=(0,a._)((0,o.useState)(t),1)[0],i=(0,o.useCallback)(function(){(0,f.qE)({action:"passwordless",label:"need_help_link_click",trigger:"signup_flow"})},[]);return(0,r.jsxs)("div",{className:"pt-11 text-center",children:[(0,r.jsxs)("div",{className:"relative h-9",children:[(0,r.jsx)("button",{"aria-label":"Back",className:"absolute left-0 top-1/2 flex size-9 -translate-y-1/2 items-center justify-center",onClick:n,type:"button",children:(0,r.jsx)("svg",{fill:"none",height:"24",width:"24",children:(0,r.jsx)("path",{d:"m15 19-7-7 7-7",stroke:"#111827",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}),(0,r.jsx)("div",{className:"text-2xl font-semibold leading-9",children:"Check your email"})]}),(0,r.jsxs)("div",{className:"mx-auto max-w-xs",children:[(0,r.jsxs)("div",{className:"mt-16",children:["We have just sent you a temporary login link to"," ",(0,r.jsx)("span",{className:"break-all font-semibold",children:s}),". Please check your email inbox."]}),(0,r.jsx)("div",{className:"mt-8",children:"If you have not received the email after 2 minutes, please ensure that the email address above is correct and check your spam folder as well."})]}),(0,r.jsx)(j.A,{className:"mt-12 inline-block text-center text-sm font-medium",hideVisited:!0,onClick:i,children:"Need help?"})]})}var L=n(14606);function E(e){var t=e.children,n=e.show;return(0,r.jsx)(L.e,{appear:!0,as:"div",className:"w-full max-w-375 px-4",enter:"absolute delay-300 transition-opacity ease-linear duration-300 -translate-x-1/2 left-1/2 top-0",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"absolute transition-opacity ease-linear duration-300 left-1/2 top-0 -translate-x-1/2",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:n,unmount:!0,children:t})}function A(){var e=(0,o.useCallback)(function(){(0,f.qE)({action:"social",label:"loading_issue_link_here",trigger:"signup_flow"})},[]);return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mt-40",children:(0,r.jsxs)("svg",{height:"200",preserveAspectRatio:"xMidYMid",style:{animationDelay:"0s",animationPlayState:"running",display:"block",margin:"auto",shapeRendering:"auto"},viewBox:"0 0 100 100",width:"200",children:[(0,r.jsx)("rect",{fill:"#868384",height:"8",rx:".56",ry:".56",style:{animationDelay:"0s",animationPlayState:"running"},width:"2",x:"49",y:"35",children:(0,r.jsx)("animate",{attributeName:"opacity",begin:"-0.935374149659864s",dur:"1.0204081632653061s",keyTimes:"0;
11",repeatCount:"indefinite",values:"1;0"})}),(0,r.jsx)("rect",{fill:"#868384",height:"8",rx:".56",ry:".56",style:{animationDelay:"0s",animationPlayState:"running"},transform:"rotate(30 50 50)",width:"2",x:"49",y:"35",children:(0,r.jsx)("animate",{attributeName:"opacity",begin:"-0.8503401360544218s",dur:"1.0204081632653061s",keyTimes:"0;1",repeatCount:"indefinite",values:"1;0"})}),(0,r.jsx)("rect",{fill:"#868384",height:"8",rx:".56",ry:".56",style:{animationDelay:"0s",animationPlayState:"running"},transform:"rotate(60 50 50)",width:"2",x:"49",y:"35",children:(0,r.jsx)("animate",{attributeName:"opacity",begin:"-0.7653061224489796s",dur:"1.0204081632653061s",keyTimes:"0;1",repeatCount:"indefinite",values:"1;0"})}),(0,r.jsx)("rect",{fill:"#868384",height:"8",rx:".56",ry:".56",style:{animationDelay:"0s",animationPlayState:"running"},transform:"rotate(90 50 50)",width:"2",x:"49",y:"35",children:(0,r.jsx)("animate",{attributeName:"opacity",begin:"-0.6802721088435374s",dur:"1.0204081632653061s",keyTimes:"0;1",repeatCount:"indefinite",values:"1;0"})}),(0,r.jsx)("rect",{fill:"#868384",height:"8",rx:".56",ry:".56",style:{animationDelay:"0s",animationPlayState:"running"},transform:"rotate(120 50 50)",width:"2",x:"49",y:"35",children:(0,r.jsx)("animate",{attributeName:"opacity",begin:"-0.5952380952380952s",dur:"1.0204081632653061s",keyTimes:"0;1",repeatCount:"indefinite",values:"1;0"})}),(0,r.jsx)("rect",{fill:"#868384",height:"8",rx:".56",ry:".56",style:{animationDelay:"0s",animationPlayState:"running"},transform:"rotate(150 50 50)",width:"2",x:"49",y:"35",children:(0,r.jsx)("animate",{attributeName:"opacity",begin:"-0.5102040816326531s",dur:"1.0204081632653061s",keyTimes:"0;1",repeatCount:"indefinite",values:"1;0"})}),(0,r.jsx)("rect",{fill:"#868384",height:"8",rx:".56",ry:".56",style:{animationDelay:"0s",animationPlayState:"running"},transform:"rotate(180 50 50)",width:"2",x:"49",y:"35",children:(0,r.jsx)("animate",{attributeName:"opacity",begin:"-0.4251700680272109s",dur:"1.0204081632653061s",keyTimes:"0;1",repeatCount:"indefinite",values:"1;0"})}),(0,r.jsx)("rect",{fill:"#868384",height:"8",rx:".56",ry:".56",style:{animationDelay:"0s",animationPlayState:"running"},transform:"rotate(210 50 50)",width:"2",x:"49",y:"35",children:(0,r.jsx)("animate",{attributeName:"opacity",begin:"-0.3401360544217687s",dur:"1.0204081632653061s",keyTimes:"0;1",repeatCount:"indefinite",values:"1;0"})}),(0,r.jsx)("rect",{fill:"#868384",height:"8",rx:".56",ry:".56",style:{animationDelay:"0s",animationPlayState:"running"},transform:"rotate(240 50 50)",width:"2",x:"49",y:"35",children:(0,r.jsx)("animate",{attributeName:"opacity",begin:"-0.25510204081632654s",dur:"1.0204081632653061s",keyTimes:"0;1",repeatCount:"indefinite",values:"1;0"})}),(0,r.jsx)("rect",{fill:"#868384",height:"8",rx:".56",ry:".56",style:{animationDelay:"0s",animationPlayState:"running"},transform:"rotate(270 50 50)",width:"2",x:"49",y:"35",children:(0,r.jsx)("animate",{attributeName:"opacity",begin:"-0.17006802721088435s",dur:"1.0204081632653061s",keyTimes:"0;1",repeatCount:"indefinite",values:"1;0"})}),(0,r.jsx)("rect",{fill:"#868384",height:"8",rx:".56",ry:".56",style:{animationDelay:"0s",animationPlayState:"running"},transform:"rotate(300 50 50)",width:"2",x:"49",y:"35",children:(0,r.jsx)("animate",{attributeName:"opacity",begin:"-0.08503401360544217s",dur:"1.0204081632653061s",keyTimes:"0;1",repeatCount:"indefinite",values:"1;0"})}),(0,r.jsx)("rect",{fill:"#868384",height:"8",rx:".56",ry:".56",style:{animationDelay:"0s",animationPlayState:"running"},transform:"rotate(330 50 50)",width:"2",x:"49",y:"35",children:(0,r.jsx)("animate",{attributeName:"opacity",begin:"0s",dur:"1.0204081632653061s",keyTimes:"0;1",repeatCount:"indefinite",values:"1;0"})})]})}),(0,r.jsxs)("div",{className:"mx-auto mt-12 w-full max-w-[216px] text-center text-sm",children:["Logging you in, please wait a few seconds. If you are having any issue, please ",(0,r.jsx)(j.A,{onClick:e,children:"click here"})]})]})}var O=n(85406),P=n(49303),I=n(95345),R=((s={})[s.NONE=0]="NONE",s[s.EMAIL=1]="EMAIL",s[s.FORGOTTEN_PASSWORD=2]="FORGOTTEN_PASSWORD",s[s.LOGIN_PASSWORD=3]="LOGIN_PASSWORD",s[s.LOGIN_MAGIC_LINK=4]="LOGIN_MAGIC_LINK",s[s.LOGIN_SOCIAL=5]="LOGIN_SOCIAL",s[s.LOGIN_SOCIAL_CONFIRM=6]="LOGIN_SOCIAL_CONFIRM",s);function G(){var e=(0,c.GV)(function(e){return e.features.piano}),t=(0,c.GV)(function(e){return e.piano.user}),n=(0,a._)((0,o.useState)(!1),2),s=n[0],x=n[1],p=(0,a._)((0,o.useState)(R.EMAIL),2),y=p[0],b=p[1],v=(0,a._)((0,o.useState)(!1),2),j=v[0],k=v[1],N=(0,a._)((0,o.useState)(h.$O.APPLE),2),L=N[0],G=N[1],T=(0,a._)((0,o.useState)(void 0),2),F=T[0],D=T[1],U=(0,a._)((0,o.useState)([]),2),M=U[0],H=U[1],W=(0,a._)((0,o.useState)(!1),2),V=W[0],q=W[1],$=(0,a._)((0,o.useState)(""),2),B=$[0],Y=$[1],Z=(0,a._)((0,o.useState)(""),2),z=Z[0],K=Z[1],J=(0,a._)((0,o.useState)(!1),2),X=J[0],Q=J[1],ee=(0,a._)((0,o.useState)(!1),2),et=ee[0],en=ee[1],es=(0,a._)((0,o.useState)(!1),2),ei=es[0],ea=es[1];(0,o.useEffect)(function(){t&&(0,g.zy)(s?{additionalParams:{msg:"login"}}:{})},[t,s,j]);var er=(0,o.useCallback)(function(e){window.scrollTo({behavior:"smooth",top:0}),b(e)},[b]);(0,o.useEffect)(function(){var e,t,n,s,i,a,r,o;t=(e={setAttemptedLogin:x,setEmail:Y,setFormState:er,setIsSocialConfirmLogin:k,setLinkingState:D,setSocialType:G}).setAttemptedLogin,n=e.setEmail,s=e.setFormState,i=e.setIsSocialConfirmLogin,a=e.setLinkingState,r=e.setSocialType,null!==(o=new URLSearchParams(window.location.search).get("response_id"))&&(s(5),(0,I.s7)(function(){(0,O._)(function(){var e;return(0,P.YH)(this,function(l){switch(l.label){case 0:return[4,(0,g.J3)({responseId:o})];case 1:if(!(e=l.sent()).success)return(0,g.Gd)("There was an issue logging you in"),[2];return[4,function(e){return(0,O._)(function(e){var t,n,s,i,a,r,o,l,c,u;return(0,P.YH)(this,function(d){switch(d.label){case 0:switch(t=e.data,n=e.setAttemptedLogin,s=e.setEmail,i=e.setFormState,a=e.setIsSocialConfirmLogin,r=e.setLinkingState,o=e.setSocialType,t.status){case h.UJ.OK:return[3,1];case h.UJ.CONFIRM:return[3,3];case h.UJ.PASSWORDLESS:return[3,4]}return[3,5];case 1:if(!t.accessToken)return(0,g.Gd)("There was an issue logging you in"),(0,f.qE)({action:"Access token was blank",label:"login_error",trigger:"signup_flow"}),i(1),[2];return n(!0),[4,(0,g._2)(t.accessToken,t.registration)];case 2:d.sent(),l="Unknown";try{l=null!=(c=new URL(t.redirectUri).searchParams.get("source"))?c:"Unknown"}catch(e){console.error(e)}return t.registration?(0,f.CI)({event:"nav_user_newaccount_created_event",method:l}):(0,f.CI)({event:"nav_user_login_success_event",method:l}),[3,6];case 3:return i(3),s(t.email),o(t.socialType),a(!0),r(t.linkingState),[3,6];case 4:return i(4),s(t.email),o(t.socialType),a(!0),(u=(0,g.wx)())&&window.sessionStorage.setItem("magicLinkReturnUrl",u),t.linkingState&&window.sessionStorage.setItem("linking_state_".concat(t.email),t.linkingState),[3,6];case 5:console.log("Unknown status: ".concat(t.status)),(0,f.qE)({action:"Unknown status: ".concat(t.status),label:"login_error",trigger:"signup_flow"}),d.label=6;case 6:return[2]}})}).apply(this,arguments)}({data:e.data,setAttemptedLogin:t,setEmail:n,setFormState:s,setIsSocialConfirmLogin:i,setLinkingState:a,setSocialType:r})];case 2:return l.sent(),[2]}})})().catch(function(e){console.error(e),(0,g.Gd)("There was an issue logging you in")})}
1))},[er]);var eo=(0,o.useCallback)(function(e){H(function(t){return t.filter(function(t){return t.field!==e})})},[H]),el=(0,o.useCallback)(function(e){e.forEach(function(e){(0,f.qE)({action:"login_screen",label:"login_error:".concat(e.message),trigger:"signup_flow"}),(0,f.CI)({error_msg:e.message,event:l.H$.Login,status:l.fb.Failed})}),H(e)},[H]),ec=(0,o.useCallback)(function(){var e,t,n;t=(e={email:B,setErrors:el}).email,n=e.setErrors,(t?!t.includes("@")&&(n([{field:g.dO.EMAIL,message:"Email must include an @ symbol"}]),1):(n([{field:g.dO.EMAIL,message:"Email can not be empty"}]),1))||(q(!0),(function(e){return(0,O._)(function(e){var t,n,s,i,a,r,o;return(0,P.YH)(this,function(c){switch(c.label){case 0:return t=e.email,n=e.setErrors,s=e.setFormState,[4,(0,g.wz)({email:t})];case 1:if(!(i=c.sent()).success)return(0,g.ug)({errors:i.errors,event:l.H$.Login,setErrors:n,status:l.fb.Failed}),[2];if(!i.data.exists)return n([{field:g.dO.EMAIL,message:"Email is not recognised"}]),[2];switch(n([]),i.data.passwordStatus){case h.jH.HAS_PASSWORD:return[3,2];case h.jH.PASSWORDLESS_NON_USABLE:return[3,3];case h.jH.EXPIRED_NON_USABLE:return[3,5]}return[3,7];case 2:return s(3),[3,8];case 3:return[4,(0,g.Y_)({email:t})];case 4:if(!(a=c.sent()).success)return(0,g.ug)({errors:a.errors,event:l.H$.Login,setErrors:n,status:l.fb.Failed}),[2];return s(4),(r=(0,g.wx)())&&window.sessionStorage.setItem("magicLinkReturnUrl",r),(0,f.CI)({event:"nav_user_login_success_event",method:"Email"}),[3,8];case 5:return[4,(0,g.xw)({email:t})];case 6:if(!(o=c.sent()).success)return(0,g.ug)({errors:o.errors,event:l.H$.ResetPasswordFail,setErrors:n}),[2];return s(2),[3,8];case 7:console.error("Unknown password status: ".concat(i.data.passwordStatus)),(0,g.Gd)("There was an issue logging you in"),c.label=8;case 8:return[2]}})}).apply(this,arguments)})({email:B,setErrors:el,setFormState:er,setIsLoading:q}).catch(function(e){console.error(e),(0,g.Gd)("Unable to connect to authentication server")}).finally(function(){q(!1)}))},[B,el,q,er]);(0,o.useEffect)(function(){if(!X){Q(!0);var e=new URLSearchParams(window.location.search).get("email");e&&(Y(e),en(!0))}},[Y,X,Q]),(0,o.useEffect)(function(){X&&!ei&&(ea(!0),B&&ec())},[X,ei,ea,B,ec]);var eu=(0,o.useCallback)(function(){q(!0),(function(e){return(0,O._)(function(e){var t,n,s,i,a,r;return(0,P.YH)(this,function(o){switch(o.label){case 0:return t=e.email,n=e.linkingState,s=e.password,i=e.setAttemptedLogin,a=e.setErrors,[4,(0,g.iD)({email:t,linkingState:n,password:s})];case 1:if(!(r=o.sent()).success)return(0,g.ug)({errors:r.errors,event:l.H$.Login,setErrors:a,status:l.fb.Failed}),[2,!1];if(!r.data.accessToken)return(0,g.Gd)("There was an issue logging you in"),(0,f.qE)({action:"Access token was blank (Password)",label:"login_error",trigger:"signup_flow"}),[2,!1];return a([]),i(!0),[4,(0,g._2)(r.data.accessToken)];case 2:return o.sent(),(0,f.CI)({event:"nav_user_login_success_event",method:"Email"}),(0,f.CI)({event:l.H$.Login,status:l.fb.Successful}),[2,!0]}})}).apply(this,arguments)})({email:B,linkingState:F,password:z,setAttemptedLogin:x,setErrors:el}).then(function(e){e||q(!1)}).catch(function(e){console.error(e),(0,g.Gd)("Unable to connect to authentication server"),q(!1)})},[el,B,F,z,q]),ed=(0,o.useCallback)(function(){q(!0),(function(e){return(0,O._)(function(e){var t,n,s;return(0,P.YH)(this,function(i){switch(i.label){case 0:return t=e.email,n=e.setErrors,[4,(0,g.xw)({email:t})];case 1:if(!(s=i.sent()).success)return(0,g.ug)({errors:s.errors,event:l.H$.ResetPasswordFail,setErrors:n}),[2,!1];return[2,!0]}})}).apply(this,arguments)})({email:B,setErrors:el}).then(function(e){e&&er(R.FORGOTTEN_PASSWORD)}).catch(function(e){console.error(e),(0,g.Gd)("Unable to connect to authentication server")}).finally(function(){q(!1)})},[B,el,q,er]),em=(0,g.Om)(h.$O.APPLE,{sendGtmProps:(0,o.useRef)({action:"login_screen",label:"continue_apple_click",trigger:"signup_flow"}),setErrors:el}),eh=(0,g.Om)(h.$O.FACEBOOK,{sendGtmProps:(0,o.useRef)({action:"login_screen",label:"continue_facebook_click",trigger:"signup_flow"}),setErrors:el}),eg=(0,g.Om)(h.$O.GOOGLE,{sendGtmProps:(0,o.useRef)({action:"login_screen",label:"continue_google_click",trigger:"signup_flow"}),setErrors:el}),ef=(0,g.xE)({sendGtmProps:(0,o.useCallback)(function(e){return{action:"login_screen",label:"continue_".concat(e,"_click"),trigger:"signup_flow"}},[]),setErrors:el}),ex=(0,o.useCallback)(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(et)e=(0,g.wx)(),t=new URLSearchParams((0,i._)({},e&&{return:e})).toString(),window.location.replace("/register/".concat(t?"?":"").concat(t));else{er(R.EMAIL),k(!1),D(void 0),n||Y("");var s=new URL(window.location.href).searchParams.get("return"),a=new URLSearchParams((0,i._)({},s&&{return:s})),r=window.location.href.split("?")[0]+(s?"?".concat(a.toString()):"");window.history.replaceState("",document.title,r)}},[er,Y,et]);return e.enabled?(0,r.jsx)(d.A,{footer:null,free:!0,hideSmartBanner:!0,nav:(0,r.jsx)(m.A,{showContact:!1,showHelp:!1,showLogin:!1,showPageName:!1,sticky:!1}),showGutterAd:!1,showNavigationAd:!1,showOutages:!1,showReCaptchaBadge:!0,children:(0,r.jsxs)("div",{className:"flex min-h-[calc(100vh-64px)] flex-col justify-between",children:[(0,r.jsx)("div",{className:"flex justify-center px-4",children:(0,r.jsxs)("div",{className:"relative w-full max-w-375 font-inter text-gray-900",children:[(0,r.jsx)(E,{show:y===R.EMAIL&&!et,children:(0,r.jsx)(w,{clearErrors:eo,email:B,enterpriseLogins:ef,errors:M,loading:V,onGetEmail:ec,onLoginApple:em,onLoginFacebook:eh,onLoginGoogle:eg,setEmail:Y})}),(0,r.jsx)(E,{show:y===R.FORGOTTEN_PASSWORD,children:(0,r.jsx)(_,{email:B,onReturn:ex}
1)}),(0,r.jsx)(E,{show:y===R.LOGIN_MAGIC_LINK,children:(0,r.jsx)(C,{email:B,onReturn:ex})}),(0,r.jsx)(E,{show:y===R.LOGIN_PASSWORD,children:(0,r.jsx)(S,{clearErrors:eo,email:B,errors:M,isLoading:V,isSocialConfirmLogin:j,onForgottenPassword:ed,onLogin:eu,onReturn:ex,password:z,setPassword:K,socialType:L})}),(0,r.jsx)(E,{show:y===R.LOGIN_SOCIAL,children:(0,r.jsx)(A,{})})]})}),(0,r.jsx)(u.A,{})]})}):null}}}]);

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.