PageSourceSearch

https://lfafirstresponse.com.au/_next/static/chunks/app/auth/login/page-0ead3f168a8a9b55.js

js lfafirstresponse.com.au collected 2026-10-04 22:17:04 UTC 14,653 bytes, 1 lines download raw bytes

1try{!function(){var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="893c121a-4e3b-4781-af6a-3390fb538293",e._sentryDebugIdIdentifier="sentry-dbid-893c121a-4e3b-4781-af6a-3390fb538293")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4859],{8206:(e,s,t)=>{"use strict";t.d(s,{j:()=>n});var a=t(95155);t(12115);var l=t(29004),r=t(13216);let n=({checked:e=!1,disabled:s,className:t,...n})=>(0,a.jsx)("div",{className:(0,l.cn)("inline-flex items-center",t),"data-cy":`switch, switch is ${e?"checked":"not checked"}`,children:(0,a.jsxs)(r.J,{className:(0,l.cn)("relative inline-flex cursor-pointer items-center",s&&"pointer-events-none cursor-not-allowed"),children:[(0,a.jsx)("input",{type:"checkbox",checked:e,disabled:s,className:(0,l.cn)("sr-only",t),...n}),(0,a.jsx)("div",{className:(0,l.cn)("flex h-5 w-10 items-center rounded-full transition-colors duration-300",{"bg-primary-700":e&&!s,"bg-primary-200":e&&s,"bg-grey-100":!e&&s,"bg-grey-200":!e&&!s}),children:(0,a.jsx)("div",{className:(0,l.cn)("h-4 w-4 transform rounded-full bg-white shadow-inner transition-transform duration-300",e?"translate-x-[22px]":"translate-x-0.5")})})]})})},11165:(e,s,t)=>{"use strict";t.d(s,{h:()=>c});var a=t(95155),l=t(97446),r=t(29004),n=t(39247),i=t(75454);function c({height:e=64,width:s=90,className:t,withTagline:c=!1,src:o}){return(0,a.jsx)("figure",{className:(0,r.cn)("logo w-fit shrink-0",t),children:(0,a.jsx)(l.N,{href:i.bw.HOME,linktype:"no-style",children:(0,a.jsx)(n.CustomImage,{src:c?o??"/assets/logos/lfa-logo-with-tagline.svg":"/assets/logos/lfa-logo.svg",alt:`LFA ${c?"logo with tagline":"logo"} - Leading Food and Agriculture`,height:e,width:s,quality:100,loading:"eager",fallbackSrc:"/assets/logos/lfa-logo-with-tagline.svg",className:`!max-h-[${e}px] !max-w-[${s}px] object-contain`})})})}},23020:(e,s,t)=>{"use strict";t.d(s,{m:()=>r});var a=t(95155),l=t(29004);function r({className:e,children:s,...t}){return(0,a.jsx)("div",{className:(0,l.cn)("container",e),...t,children:s})}t(12115)},26199:(e,s,t)=>{"use strict";t.d(s,{e:()=>x});var a=t(95155),l=t(89549),r=t(23757),n=t(12115),i=t(29004),c=t(97446),o=t(61985);function d({text:e,size:s,className:t,disabled:l,...r}
1){let[d,m]=(0,n.useState)(!1),x=async()=>{navigator.clipboard.writeText(e),m(!0),setTimeout(()=>m(!1),2e3)};return(0,a.jsxs)("button",{type:"button",disabled:l,"data-cy":"Copy text to clipboard","aria-label":"Copy text to clipboard",className:(0,i.cn)((0,c.b)({size:s,disabled:l}),"focus:text-blue-600",t),...r,onClick:x,children:[d?"Code Copied!":e,(0,a.jsx)(o.A,{size:"md",icon:"bold-copy",fill:"#0284C7"})]})}var m=t(33385);function x({qrValue:e,fallbackKey:s,handleQRCode:t,error:n,isDisabled:i=!1}){return(0,a.jsxs)("section",{className:"scan-qr-code space-y-10",children:[(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("h3",{className:"font-bricolage text-3xl font-bold text-grey-950",children:"Scan QR Code"}),(0,a.jsx)("p",{className:"text-base font-normal text-grey-800",children:"Open your authenticator apps to scan the following QR code."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-y-7",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-8",children:[(0,a.jsx)(l.Ay,{size:180,style:{height:"auto"},value:e,viewBox:"0 0 180 180"}),(0,a.jsxs)("div",{className:"flex flex-col items-center space-y-2",children:[(0,a.jsx)("p",{className:"font-lato text-base font-normal leading-6 text-grey-500",children:"Trouble scanning code? Enter this key in your app instead"}),(0,a.jsx)(d,{text:s})]})]}),(0,a.jsx)(m.F,{}),(0,a.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,a.jsx)("p",{className:"text-xs font-semibold text-grey-700",children:"Enter 6 digit Code"}),(0,a.jsx)(r.Y,{onSuccess:t,error:n,isDisabled:i})]})]})]})}},30017:(e,s,t)=>{"use strict";t.d(s,{Lm:()=>d,MI:()=>o,X5:()=>i,f_:()=>m});var a=t(6423),l=t(43252),r=t(75907),n=t(18156);let i=a.Ik({email:a.Yj().min(1,{message:l.U.EMAIL.REQUIRED}).email({message:l.U.EMAIL.INVALID}).trim(),password:a.Yj().trim().min(1,{message:l.U.PASSWORD.REQUIRED}),rememberMe:a.zM()});a.Ik({data:a.Ik({})});let c=a.Ik({verification_token:a.Yj(),role:a.Yj(),mfa_available_types:a.YO(r._j)}),o=(0,n.Wg)(c),d=a.rI(),m=a.Ik({message:a.Yj()})},34151:(e,s,t)=>{"use strict";t.d(s,{s:()=>l});var a=t(45169);function l(){let{trackCart:e,trackBeginCheckout:s,trackPurchase:t,trackItem:l,trackWishlist:r,trackShippingInfo:n,trackPaymentInfo:i,trackRefund:c,trackPromotion:o,trackLogin:d,trackSignUp:m}=(0,a.s)();return{trackCart:e,trackBeginCheckout:s,trackPurchase:t,trackItem:l,trackWishlist:r,trackShippingInfo:n,trackPaymentInfo:i,trackRefund:c,trackPromotion:o,trackLogin:d,trackSignUp:m}}},61186:(e,s,t)=>{"use strict";t.d(s,{default:()=>K});var a=t(95155),l=t(9792),r=t(75907),n=t(23666),i=t(39247),c=t(95519),o=t(68567),d=t(5493),m=t(29004);let x=()=>{let{userInfo:e}=(0,d.A)(),s=!e?.mfa_available_types.includes(r._j.Enum.SMS);return(0,a.jsxs)("div",{className:"space-y-8 md:w-[550px]",children:[(0,a.jsxs)("div",{className:"space-y-1.5 md:space-y-3",children:[(0,a.jsx)("h3",{children:"Select Your 2FA Method"}),(0,a.jsx)("p",{className:"text-sm font-normal text-grey-800 md:text-base",children:"To protect your account, activation of Two-Factor Authentication (2FA) is required."})]}),(0,a.jsx)("div",{className:"flex flex-col gap-y-3",children:c.m1.map(e=>(0,a.jsx)(h,{method:e,isDisabled:e.key===r._j.Enum.SMS&&s},e.key))})]})},h=({method:{key:e,img:s,title:t,description:l},isDisabled:r})=>{let{isPending:n,select2FAMethod:c}=(0,o.Sd)();return(0,a.jsxs)("div",{onClick:()=>{n||r||c(e)},className:(0,m.cn)("flex cursor-pointer gap-x-3 rounded border border-grey-100 bg-grey-50 px-2 py-3 transition-colors duration-300 hover:bg-primary-50 md:px-4 md:py-6",(n||r)&&"pointer-events-none cursor-not-allowed opacity-50"),children:[(0,a.jsx)(i.CustomImage,{src:s,width:64,height:64,alt:`${t} image`}),(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("h6",{children:t}),(0,a.jsx)("p",{className:"text-sm font-normal text-grey-800 md:text-base",children:l})]})]})};var u=t(23757),f=t(55614),g=t(69696),p=t(86556),j=t(97446);let y=()=>{let{userInfo:e}=(0,d.A)(),{error:s,handleOTP:t,isSubmitting:l}=(0,o.Kr)(),n=s&&(0,f.h)(s),{isPending:x,select2FAMethod:h}=(0,o.Sd)(),y=(0,g.ee)(c.YN.EMAIL.description,(0,g.vA)(e?.email||""));return(0,a.jsxs)("div",{className:"flex flex-col gap-y-4 md:gap-y-8",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center gap-3 text-center",children:[(0,a.jsx)("figure",{children:(0,a.jsx)(i.CustomImage,{src:"/assets/graphics/2fa_successfully_enabled.svg",alt:"Email verification",className:"size-40",width:208,he
1ight:208})}),(0,a.jsx)("h3",{className:"font-bricolage text-grey-950",children:c.YN.EMAIL.title}),(0,a.jsx)("p",{className:"text-base font-normal leading-6 text-grey-800",dangerouslySetInnerHTML:{__html:y}})]}),(0,a.jsx)(u.Y,{onSuccess:e=>t({...e,type:r._j.Enum.EMAIL}),isDisabled:l,error:n?.message||""}),(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center gap-x-1 gap-y-3 md:flex-row",children:[(0,a.jsx)("span",{className:"inline-flex flex-col justify-center gap-2 text-center text-base font-semibold leading-6 text-grey-700 xs:flex-row",children:"Didn’t get the code on your email?"}),(0,a.jsx)("button",{className:(0,m.cn)((0,j.b)({})),onClick:()=>h(r._j.Enum.EMAIL,!0),disabled:x,children:"Resend Code"})]}),(0,a.jsx)(p.A,{current:r._j.Enum.EMAIL})]})};var b=t(26199);let N=()=>{let{error:e,handleOTP:s,isSubmitting:t}=(0,o.Kr)(),{totpData:n}=(0,l.A)(),i=e&&(0,f.h)(e);return n?(0,a.jsx)("div",{children:(0,a.jsx)(b.e,{qrValue:n.qr_code_url,fallbackKey:n.secret,handleQRCode:e=>s({...e,type:r._j.Enum.TOTP}),error:i?.message||"",isDisabled:t})}):null},v=()=>{let{error:e,handleOTP:s,isSubmitting:t}=(0,o.Kr)(),l=e&&(0,f.h)(e);return(0,a.jsxs)("div",{className:"flex flex-col gap-y-4 md:gap-y-8",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center gap-3 text-center",children:[(0,a.jsx)("figure",{children:(0,a.jsx)(i.CustomImage,{src:"/assets/graphics/sms_verification.svg",alt:"Email verification",className:"size-40",width:208,he
1ight:208})}),(0,a.jsx)("h3",{className:"font-bricolage text-grey-950",children:c.YN.TOPT.title}),(0,a.jsx)("p",{className:"text-base font-normal leading-6 text-grey-800",dangerouslySetInnerHTML:{__html:c.YN.TOPT.description}})]}),(0,a.jsx)(u.Y,{onSuccess:e=>s({...e,type:r._j.Enum.TOTP}),isDisabled:t,error:l?.message||""}),(0,a.jsx)(p.A,{current:r._j.Enum.TOTP})]})};var E=t(12115),w=t(73321);let T=()=>{let{step:e,changeStep:s}=(0,l.A)(),t=(0,w.usePathname)();return(0,E.useEffect)(()=>{e!==r.N3.Enum.SELECT_METHOD&&s(r.N3.Enum.SELECT_METHOD)},[t]),({[r.N3.Enum.SELECT_METHOD]:(0,a.jsx)(x,{}),[r.N3.Enum.EMAIL]:(0,a.jsx)(y,{}),[r.N3.Enum.SETUP_TOTP]:(0,a.jsx)(N,{}),[r.N3.Enum.TOTP]:(0,a.jsx)(v,{}),[r.N3.Enum.SMS]:(0,a.jsx)(n.A,{})})[e]};var S=t(32271),_=t(84819),I=t(62574),M=t(23020);let A=function(){let{changeStep:e,userInfo:s}=(0,d.A)(),{step:t,changeStep:n}=(0,l.A)();return s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(I.a,{}),(0,a.jsx)("section",{className:"verify-mfa",children:(0,a.jsx)(M.m,{className:"flex items-center justify-center md:min-h-[calc(100vh-101px)]",children:(0,a.jsxs)("div",{className:"my-10 w-full space-y-8 xs:w-[434px] md:my-14",children:[(0,a.jsx)(_.o,{onClick:()=>t&&t!==r.N3.Enum.SELECT_METHOD?n(r.N3.Enum.SELECT_METHOD):e(S.M.LOGIN)}),(0,a.jsx)(T,{})]})})})]}):(e(S.M.LOGIN),null)};var O=t(33546),k=t(99003);let C=JSON.parse('{"Sl":"/assets/images/pharmacy.png","DD":"Sign In To Your Account","N4":"Don\'t have an account yet?","SU":"Create new account"}');var L=t(13216),D=t(76279),P=t(11165),F=t(90290),H=t(55607),R=t(75454),Y=t(30017),U=t(61985),G=t(8206),z=t(43252),q=t(38559),W=t(34151);function J(){let{setUserInfo:e,changeStep:s}=(0,d.A)(),{mutate:t,isPending:l}=(0,D.k)(),{trackLogin:r}=(0,W.s)(),n=(0,k.mN)({mode:"all",resolver:(0,O.u)(Y.X5),defaultValues:{email:"",password:"",rememberMe:!1}}),{handleSubmit:c,setValue:o,control:x,setError:h,formState:{isSubmitting:u}}=n,g=(0,k.FH)({name:"rememberMe",control:x});return(0,a.jsxs)("section",{className:"sign-in-section",children:[(0,a.jsxs)("div",{className:(0,m.cn)("relative bottom-0 left-0 top-0","hidden h-full min-h-[400px] w-full items-end p-10 lg:fixed lg:flex lg:min-h-screen lg:max-w-[558px]",'before:absolute before:bottom-0 before:left-0 before:right-0 before:top-0 before:z-10 before:bg-custom-gradient before:content-[""]'),children:[(0,a.jsx)(i.CustomImage,{src:C.Sl,alt:"register image",fill:!0,className:"object-cover"}),(0,a.jsx)("div",{className:"relative z-20 w-full",children:(0,a.jsx)("p",{className:"w-full text-center text-base font-semibold leading-6 text-blue-50",children:"\xa9 LFA First Response - Life Happens. Be Prepared"})})]}),(0,a.jsx)(M.m,{children:(0,a.jsx)("div",{className:"ml-auto flex w-full items-center justify-start py-16 sm:py-28 lg:min-h-screen lg:max-w-[calc(100%_-_558px)]",children:(0,a.jsxs)("div",{className:"mx-auto w-full space-y-8 sm:max-w-[434px]",children:[(0,a.jsx)(P.h,{}),(0,a.jsx)("h3",{className:"mb-8 mt-5",children:C.DD}),(0,a.jsx)(k.Op,{...n,children:(0,a.jsxs)("form",{onSubmit:c(a=>{t(a,{onSuccess:t=>{e({...t.data,email:a.email,rememberMe:a.rememberMe}),s(S.M.TWOFA),r({method:"Email",customParams:{email:a.email}})},onError:e=>{h("password",{type:"manual",message:(0,f.h)(e).message||z.U.SOMETHING_WENT_WRONG})}})}),className:"flex flex-col gap-y-8",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-y-4",children:[(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)(L.J,{htmlFor:"email",children:"Email address"}),(0,a.jsx)(H.p,{type:"email",name:"email",placeholder:"Enter your email"})]}),(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)(L.J,{htmlFor:"password",children:"Password"}),(0,a.jsx)(q.y,{name:"password",placeholder:"Enter your password",showPasswordTooltip:!1})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{className:"inline-flex items-center justify-center gap-x-2",children:[(0,a.jsx)(G.j,{checked:g,onChange:e=>o("rememberMe",e.target.checked)}),(0,a.jsx)(L.J,{htmlFor:"rememberMe",children:"Remember Me"})]}),(0,a.jsx)(j.N,{href:R.bw.AUTH.FORGET_PASSWORD,children:"Forgot Password"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,a.jsx)(F.$,{type:"submit",disabled:u||l,children:l?"Signing In...":"Sign In"}),(0,a.jsx)("span",{className:"text-center text-base font-normal leading-6 text-grey-800",children:"or"}),(0,a.jsxs)(F.$,{intent:"outline",variant:"primary",type:"button",onClick:()=>{(0,w.redirect)(R.bw.AUTH.MAGIC_LINK,w.RedirectType.push)}
1,children:[(0,a.jsx)(U.A,{icon:"reg-shooting-star",fill:"currentColor",size:"md"}),"Sign In With Magic Link"]})]})]})}),(0,a.jsxs)("div",{className:"mt-4 flex flex-col items-center justify-center gap-x-0.5 md:flex-row",children:[(0,a.jsx)("span",{className:"text-center text-base font-normal leading-6 text-grey-700",children:C.N4}),(0,a.jsx)(j.N,{href:R.bw.AUTH.REGISTER,children:C.SU})]})]})})})]})}var $=t(81532);let K=function(){let{step:e,changeStep:s}=(0,d.A)(),t=(0,$.n)(e=>e.remove),l=(0,w.usePathname)();return(0,E.useEffect)(()=>{e!==S.M.LOGIN&&(s(S.M.LOGIN),t())},[l]),({[S.M.LOGIN]:(0,a.jsx)(J,{}),[S.M.TWOFA]:(0,a.jsx)(A,{})})[e]}},62574:(e,s,t)=>{"use strict";t.d(s,{a:()=>o});var a=t(95155),l=t(97446),r=t(11165),n=t(23020),i=t(75454),c=t(61985);let o=()=>(0,a.jsx)("header",{className:"sticky left-0 top-0 z-10 w-full border-b border-b-grey-100 bg-white py-4 shadow-sm md:py-6",children:(0,a.jsxs)(n.m,{className:"flex items-center justify-between",children:[(0,a.jsx)(r.h,{height:52,width:73}),(0,a.jsxs)(l.N,{href:i.bw.CONTACT,className:"rounded px-3 py-2 text-grey-600 active:text-grey-600",children:[(0,a.jsx)(c.A,{icon:"filled-question",fill:"#656565",size:"md"}),"Help and Support"]})]})})},76279:(e,s,t)=>{"use strict";t.d(s,{k:()=>d,h:()=>m});var a=t(48934),l=t(32271),r=t(10351),n=t(30017),i=t(55614);let c=(0,i.F)({type:"public",path:l.H.LOGIN,method:r.PJ.POST,requestSchema:n.X5,responseSchema:n.MI}),o=(0,i.F)({path:l.H.LOGOUT,method:r.PJ.POST,requestSchema:n.Lm,responseSchema:n.f_}),d=()=>(0,a.useMutation)({mutationFn:e=>c(e)}),m=()=>(0,a.useMutation)({mutationFn:()=>o()})},80614:(e,s,t)=>{Promise.resolve().then(t.bind(t,61186))}},e=>{e.O(0,[2308,6084,8500,2959,5772,5925,3546,7226,5169,1247,2360,2813,9549,9261,1892,5040,3027,8198,8441,6517,7358],()=>e(e.s=80614)),_N_E=e.O()}]);

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.