PageSourceSearch

https://pro.foodsafesystem.com/static/js/7634.086f02e6.chunk.js

js foodsafesystem.com collected 2026-09-30 16:51:57 UTC 14,499 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkfss=globalThis.webpackChunkfss||[]).push([[7634],{43207(e,r,s){s.r(r),s.d(r,{default:()=>U});var t=s(76455),o=s(72091),i=(s(83884),s(19584),s(9950)),a=s(60666),n=s(27168),d=s(59051),l=s.n(d),c=s(9449),m=s(26473),u=s(28429),g=s(42074),h=s(59254),p=s(14857),x=s(46639),v=s(27081),w=s(62962),A=s(19808),f=s(93230),b=s(82053),j=s(65429),y=s(46483),k=s(57073),q=s(36080),P=s(74745),S=s(18216),G=s(28095),C=s(56761),V=s(17395),Y=s(90260),I=s(33507),T=s(66075),z=s(95468),L=s(6457),N=s(44414);const W=(0,h.Ay)("div")(()=>({maxWidth:360,justifyContent:"center",flexDirection:"column"}));function E(){const{register:e,googleLogin:r}=(0,I.A)(),s=(0,u.Zp)(),t=(0,p.A)(),o=(0,v.d4)(e=>{let{loading:r}=e;return r.loading1}),d=(0,v.wA)(),[h,E]=(0,i.useState)(!1),R=(0,i.useRef)(null),U=l().tz.guess().toLowerCase().includes("australia")?"https://www.foodsafesystem.com.au/":"https://www.foodsafesystem.com/",_=a.Ik().shape({email:a.Yj().email("Email Address must be a valid email").required("Email Address is required").max(50,"Email should not exceed 50"),password:a.Yj().required("Password is required").matches(/^(?=.*[@$!%*#?&]).{6,}$/,"Password must contain 6 characters including one special character").max(30,"Password length should not exceed 30")}),B=(0,c.mN)({resolver:(0,m.t)(_),defaultValues:{password:"",email:""}}),{handleSubmit:F,formState:{errors:$,isSubmitting:D}}=B,O=(0,n.mg)({onSuccess:async e=>{d((0,C.kr)());try{const t=await r(e);t&&t.status&&(d((0,C.tY)()),t.data.access_token?(d((0,V.rG)({message:"User Successfully Logged In",variant:"success"})),s(Y.nB.dashboard)):d((0,V.rG)({message:"Please login with username and password",variant:"error"}))),t&&t.error?t&&t.error.message&&d((0,V.rG)({message:t.error.message,variant:"error"})):!t.status&&t.message&&d((0,V.rG)({message:t.message,variant:"error"})),d((0,C.tY)())}catch(t){d((0,C.tY)()),t&&t.message&&d((0,V.rG)({message:t.message,variant:"error"}))}},onError:()=>{d((0,V.rG)({message:"Google Login Failed",variant:"error"}))}});return(0,N.jsx)(z.Ay,{methods:B,onSubmit:F(async r=>{try{const l=R.current.getValue();if(l){var t;const c=await d((0,L.RU)({token:l}));if(null!==c&&void 0!==c&&null!==(t=c.payload)&&void 0!==t&&t.status){const t=await e(r.email,r.password);R.current.reset(),t.status&&(d((0,V.rG)({message:`The Otp has been sent to ${r.email}`,variant:"success"})),s(Y.pi.verifyotp)),t.error?t.error.message&&d((0,V.rG)({message:t.error.message,variant:"error"})):!t.status&&t.message&&d((0,V.rG)({message:t.message,variant:"error"}))}else{var o,i,a,n;null!==c&&void 0!==c&&null!==(o=c.payload)&&void 0!==o&&o.error.message?d((0,V.rG)({message:null===c||void 0===c||null===(i=c.payload)||void 0===i?void 0:i.message,variant:"error"})):(null===c||void 0===c||null===(a=c.payload)||void 0===a?void 0:a.message)&&d((0,V.rG)({message:null===c||void 0===c||null===(n=c.payload)||void 0===n?void 0:n.message,variant:"error"}))}}else d((0,V.rG)({message:"Please tick the reCAPTCHA",variant:"error"}))}catch(l){l.message&&d((0,V.rG)({message:l.message,variant:"error"}))}}),children:(0,N.jsx)(A.A,{maxWidth:"sm",children:(0,N.jsxs)(W,{children:[(0,N.jsx)(f.A,{alignItems:"center",sx:{mt:-10,mb:2},children:(0,N.jsx)(b.A,{component:"a",href:U,target:"_blank",rel:"noopener noreferrer",sx:{fontSize:15,fontWeight:600,textDecoration:"none",color:"rgb(49,171,86)",position:"relative",transition:"all 0.3s ease","&:hover":{color:"#1e8f45"},"&:after":{content:'""',position:"absolute",width:"0%",height:"2px",bottom:-2,left:0,backgroundColor:"rgb(49,171,86)",transition:"width 0.3s ease"},"&:hover:after":{width:"100%"}},children:"\ud83c\udf10 Website"})}),(0,N.jsx)(b.A,{variant:"h3",textAlign:"center",sx:{color:"rgb(49,171,86)",ml:{xs:0,md:2},mb:1},children:"Sign Up"}),(0,N.jsxs)(f.A,{spacing:2.5,sx:{mt:0,mb:-2},children:[!!$.afterSubmit&&(0,N.jsx)(j.A,{severity:"error",children:$.afterSubmit.message}),(0,N.jsx)(z.o3,{name:"email",label:"Email address *",InputProps:{startAdornment:(0,N.jsx)(y.A,{position:"start",children:(0,N.jsx)(T.A,{color:"rgb(49,171,86)",icon:"material-symbols:mail"})})}}),(0,N.jsx)(z.o3,{name:"password",label:"Password *",type:h?"text":"password",InputProps:{startAdornment:(0,N.jsx)(y.A,{position:"start",children:(0,N.jsx)(T.A,{color:"rgb(49,171,86)",icon:"mdi:password"})}),endAdornment:(0,N.jsx)(y.A,{position:"end",children:(0,N.jsx)(k.A,{onClick:()=>E(!h),edge:"end",children:(0,N.jsx)(T.A,{color:"rgb(49,171,86)",icon:h?"eva:eye-fill":"eva:eye-off-fill"})})})},error:Boolean($.password),helperText:$.password?$.password.message:"Password must be 6+ chars, with a special character."}),(0,N.jsx)(f.A,{direction:"row",alignItems:"center",justifyContent:"center",sx:{my:2},children:(0,N.jsx)(w.A,{sitekey:"6LetcYclAAAAAKCnsXi0PqkxtBvkLvukJTMssa3t",ref:R})}),(0,N.jsx)(G.A,{fullWidth:!0,size:"large",type:"submit",variant:"contained",loading:D,children:"Create account"}),(0,N.jsxs)(f.A,{direction:"row",spacing:.5,sx:{ml:18},children:[(0,N.jsx)(b.A,{variant:"body2",children:" Already have an account? "}),(0,N.jsx)(q.A,{to:Y.pi.login,component:g.N_,variant:"subtitle2",children:"Sign in"})]}),(0,N.jsx)(P.A,{sx:{my:.5,typography:"overline",color:"text.disabled","&::before, ::after":{borderTopStyle:"dashed"}},children:"OR"}),(0,N.jsx)(f.A,{direction:"row",spacing:2,sx:{mt:0},children:(0,N.jsxs)(S.A,{color:"info",variant:"outlined",onClick:()=>O(),disabled:o,sx:{width:"1000px"},fullWidth:!0,size:"large",children:[(0,N.jsx)(T.A,{icon:"flat-color-icons:google",width:"58px",height:"24px",color:t.palette.info.main,ml:"-10"}
1),"Sign Up with Google"," ",(0,N.jsxs)("div",{style:{marginLeft:"20px"},children:[" ",o&&(0,N.jsx)(x.A,{size:14,color:"warning"})]})]})})]})]})})})}s(9261),s(29471),s(28747);var R=s(61188);s(33949);s.p,s.p,s.p,s.p;(0,h.Ay)("div")(e=>{let{theme:r}=e;return{position:"relative",width:"105.3%",height:"100vh",left:"0rem",right:"0rem",overflow:"hidden",[r.breakpoints.down("sm")]:{width:"113.5%"}}}),(0,h.Ay)("img")({position:"absolute",top:0,left:0,right:0,width:"100%",height:"100%",objectFit:"cover",zIndex:0}),(0,h.Ay)("video")({position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover",zIndex:0}),(0,h.Ay)(f.A)(e=>{let{theme:r}=e;return{position:"absolute",top:20,left:40,flexDirection:"row",alignItems:"center",gap:"12px",[r.breakpoints.down("sm")]:{left:"10px"}}}),(0,h.Ay)("img")(e=>{let{theme:r}=e;return{width:"90px",height:"50px",marginLeft:"45px",[r.breakpoints.down("sm")]:{width:"70px",height:"40px",marginLeft:"20px"}}}),(0,h.Ay)(b.A)({marginTop:"25px",color:"white"}),(0,h.Ay)("img")({width:"95px",height:"30px",marginTop:"25px"}),(0,h.Ay)(S.A)(e=>{let{theme:r}=e;return{position:"absolute",top:"calc(55.5vh - 50px)",left:"50%",transform:"translateX(-50%)",backgroundColor:"white",color:"rgb(50, 150, 80)",zIndex:2,[r.breakpoints.down("sm")]:{top:"calc(50.5vh - 50px)",width:"50px",height:"50px"},[r.breakpoints.between("sm","md")]:{top:"calc(50vh - 50px)"},[r.breakpoints.between("md","lg")]:{top:"calc(53vh - 50px)"},[r.breakpoints.up("lg")]:{top:"calc(60vh - 50px)"}}}),(0,h.Ay)(f.A)(e=>{let{theme:r}=e;return{position:"absolute",left:"50%",transform:"translateX(-50%)",width:"70%",zIndex:2,alignItems:"center",color:"white",[r.breakpoints.down("sm")]:{top:"calc(49vh + 250px)",width:"75%"},[r.breakpoints.between("sm","md")]:{top:"calc(50vh + 250px)"},[r.breakpoints.between("md","lg")]:{top:"calc(50vh + 250px)"},[r.breakpoints.up("lg")]:{top:"calc(59vh + 250px)"}}}),(0,h.Ay)(R.Ay)(e=>{let{theme:r}=e;return{width:"100%",color:"white",[r.breakpoints.down("sm")]:{width:"95%"}}});(0,h.Ay)(f.A)(e=>{let{theme:r}=e;return{alignItems:"center",position:"relative",marginTop:"50.5vh",[r.breakpoints.down("sm")]:{marginTop:"51vh"},[r.breakpoints.between("sm","md")]:{marginTop:"50vh"},[r.breakpoints.between("md","lg")]:{marginTop:"53vh"},[r.breakpoints.up("lg")]:{marginTop:"60vh"}}});function U(){return(0,N.jsx)(N.Fragment,{children:(0,N.jsxs)(o.A,{children:[(0,N.jsx)(t.mg,{children:(0,N.jsx)("title",{children:" Register | FSS"})}),(0,N.jsx)(E,{})]})})}},19584(e,r,s){s.d(r,{A:()=>f});var t=s(9950),o=s(60666),i=s(28429),a=s(9449),n=s(26473),d=s(93230),l=s(24516),c=s(46483),m=s(57073),u=s(28095),g=s(27081),h=s(90260),p=s(17395),x=s(66075),v=s(95468),w=s(33507),A=s(44414);function f(){const e=(0,i.Zp)(),r=(0,g.wA)(),{verifyForgotOtp:s}=(0,w.A)(),f=(0,g.d4)(e=>{let{sign:r}=e;return r.token}),b=(0,g.d4)(e=>{let{sign:r}=e;return r.uuid}),[j,y]=(0,t.useState)(!1),k=o.Ik().shape({code1:o.Yj().required("Verification code is required"),code2:o.Yj().required("Verification code is required"),code3:o.Yj().required("Verification code is required"),code4:o.Yj().required("Verification code is required"),code5:o.Yj().required("Verification code is required"),code6:o.Yj().required("Verification code is required"),newPassword:o.Yj().required(" New Password is required").matches(/^(?=.*[@$!%*#?&]).{6,}$/," New Password must be 6+ characters, with a special character").max(30,"New Password length should not exceed 30")}),q={code1:"",code2:"",code3:"",code4:"",code5:"",code6:"",newPassword:"",session_token:f,session_uuid:b},P=(0,a.mN)({mode:"onChange",resolver:(0,n.t)(k),defaultValues:q}),{handleSubmit:S,formState:{isSubmitting:G,errors:C}}=P;return(0,A.jsx)(v.Ay,{methods:P,onSubmit:S(async t=>{const o=t.code1+t.code2+t.code3+t.code4+t.code5+t.code6,i=t.newPassword;try{const t=await s(o,i);t.status&&(r((0,p.rG)({message:"Password Changed Successfully",variant:"success"})),e(h.pi.login),window.location.reload()),t.error?t.error.message&&r((0,p.rG)({message:t.error.message,variant:"error"})):!t.status&&t.message&&r((0,p.rG)({message:t.message,variant:"error"}))}catch(a){a.message&&r((0,p.rG)({message:a.message,variant:"error"}))}}),children:(0,A.jsxs)(d.A,{spacing:3,children:[(0,A.jsx)(v.tD,{keyName:"code",input
1s:["code1","code2","code3","code4","code5","code6"]}),(!!C.code1||!!C.code2||!!C.code3||!!C.code4||!!C.code5||!!C.code6)&&(0,A.jsx)(l.A,{error:!0,sx:{px:2},children:"Verification code is required"}),(0,A.jsx)(v.o3,{name:"newPassword",label:"New Password",type:j?"text":"password",InputProps:{startAdornment:(0,A.jsx)(c.A,{position:"start",children:(0,A.jsx)(x.A,{color:"rgb(49,171,86)",icon:"mdi:password"})}),endAdornment:(0,A.jsx)(c.A,{position:"end",children:(0,A.jsx)(m.A,{onClick:()=>y(!j),edge:"end",children:(0,A.jsx)(x.A,{icon:j?"eva:eye-fill":"eva:eye-off-fill",color:"rgb(49,171,86)"})})})},error:Boolean(C.newPassword),helperText:C.newPassword?C.newPassword.message:"Password must be 6+ chars, with a special character."}),(0,A.jsx)(u.A,{fullWidth:!0,size:"large",type:"submit",variant:"contained",loading:G,sx:{mt:3},children:"Update Password"})]})})}},9261(e,r,s){s.d(r,{A:()=>f});var t=s(60666),o=s(9950),i=s(28429),a=s(26473),n=s(9449),d=s(46483),l=s(93230),c=s(28095),m=s(27081),u=s(62962),g=s(90260),h=s(95468),p=s(66075),x=s(33507),v=s(17395),w=s(6457),A=s(44414);function f(){const e=(0,i.Zp)(),r=(0,m.wA)(),{forgotPassword:s}=(0,x.A)(),f=(0,o.useRef)(null),b=t.Ik().shape({email:t.Yj().email("Email Address must be a valid email").required("Email Address is required")}),j=(0,n.mN)({resolver:(0,a.t)(b),defaultValues:{email:""}}),{handleSubmit:y,formState:{isSubmitting:k}}=j;return(0,A.jsxs)(h.Ay,{methods:j,onSubmit:y(async t=>{try{const l=f.current.getValue();if(l){var o;const c=await r((0,w.RU)({token:l}));if(null!==c&&void 0!==c&&null!==(o=c.payload)&&void 0!==o&&o.status){const o=await s(t);f.current.reset(),o.status&&(r((0,v.rG)({message:`The Otp has been sent to ${t.email}`,variant:"success"})),e(g.pi.newPassword)),o.error?o.error.message&&r((0,v.rG)({message:o.error.message,variant:"error"})):!o.status&&o.message&&r((0,v.rG)({message:o.message,variant:"error"}))}else{var i,a,n,d;null!==c&&void 0!==c&&null!==(i=c.payload)&&void 0!==i&&i.error.message?r((0,v.rG)({message:null===c||void 0===c||null===(a=c.payload)||void 0===a?void 0:a.message,variant:"error"})):(null===c||void 0===c||null===(n=c.payload)||void 0===n?void 0:n.message)&&r((0,v.rG)({message:null===c||void 0===c||null===(d=c.payload)||void 0===d?void 0:d.message,variant:"error"}))}}else r((0,v.rG)({message:"Please tick the reCAPTCHA",variant:"error"}))}catch(l){l.message&&r((0,v.rG)({message:l.message,variant:"error"}))}}),children:[(0,A.jsx)(h.o3,{name:"email",label:"Email address *",InputProps:{startAdornment:(0,A.jsx)(d.A,{position:"start",children:(0,A.jsx)(p.A,{color:"rgb(49,171,86)",icon:"material-symbols:mail"})})}}),(0,A.jsx)(l.A,{direction:"row",alignItems:"center",justifyContent:"center",sx:{my:3},children:(0,A.jsx)(u.A,{sitekey:"6LetcYclAAAAAKCnsXi0PqkxtBvkLvukJTMssa3t",ref:f})}),(0,A.jsx)(c.A,{fullWidth:!0,size:"large",type:"submit",variant:"contained",loading:k,sx:{mt:1},children:"Send Request"})]})}},29471(e,r,s){s.d(r,{A:()=>x});var t=s(60666),o=s(28429),i=s(9449),a=s(26473),n=s(93230),d=s(24516),l=s(28095),c=s(27081),m=s(90260),u=s(17395),g=s(95468),h=s(33507),p=s(44414);function x(){const{verifyOtp:e}=(0,h.A)(),r=(0,o.Zp)(),s=(0,c.wA)(),x=(0,c.d4)(e=>{let{sign:r}=e;return r.token}),v=(0,c.d4)(e=>{let{sign:r}=e;return r.uuid}),w=t.Ik().shape({code1:t.Yj().required("Verification code is required"),code2:t.Yj().required("Verification code is required"),code3:t.Yj().required("Verification code is required"),code4:t.Yj().required("Verification code is required"),code5:t.Yj().required("Verification code is required"),code6:t.Yj().required("Verification code is required")}),A={code1:"",code2:"",code3:"",code4:"",code5:"",code6:"",session_token:x,session_uuid:v},f=(0,i.mN)({mode:"onChange",resolver:(0,a.t)(w),defaultValues:A}),{handleSubmit:b,formState:{isSubmitting:j,errors:y}}=f;return(0,p.jsx)(g.Ay,{methods:f,onSubmit:b(async t=>{const o=t.code1+t.code2+t.code3+t.code4+t.code5+t.code6;try{const t=await e(o);t.status&&(s((0,u.rG)({message:" User Created !",variant:"success"})),r(m.nB.dashboard)),t.error?t.error.message&&s((0,u.rG)({message:t.error.message,variant:"error"})):!t.status&&t.message&&s((0,u.rG)({message:t.message,variant:"error"}))}catch(i){i.message&&s((0,u.rG)({message:i.message,variant:"error"}))}}),children:(0,p.jsxs)(n.A,{spacing:3,children:[(0,p.jsx)(g.tD,{keyName:"code",input
1s:["code1","code2","code3","code4","code5","code6"]}),(!!y.code1||!!y.code2||!!y.code3||!!y.code4||!!y.code5||!!y.code6)&&(0,p.jsx)(d.A,{error:!0,sx:{px:2},children:"Verification code is required"}),(0,p.jsx)(l.A,{fullWidth:!0,size:"large",type:"submit",variant:"contained",loading:j,sx:{mt:3},children:"Verify"})]})})}}}]);

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.