mario-core 2.0.125-release → 2.0.126-release
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Dashboard-DghZp-DY.mjs +206 -0
- package/dist/Dashboard-DlYSjl_v.js +1 -0
- package/dist/EmailTemplateDetail-CTm45E9v.mjs +443 -0
- package/dist/EmailTemplateDetail-gEFgDpUL.js +1 -0
- package/dist/EmailTemplateList-BMUfPdlS.mjs +170 -0
- package/dist/EmailTemplateList-ONLWbg1A.js +1 -0
- package/dist/GalleryList-4orsP-Hj.js +1 -0
- package/dist/GalleryList-DUjEqWiL.mjs +329 -0
- package/dist/Login-DYY40AhH.mjs +1699 -0
- package/dist/Login-mv6rU86S.js +1 -0
- package/dist/NotificationList-B8QA__0a.mjs +3658 -0
- package/dist/NotificationList-BNkeEQdH.js +2 -0
- package/dist/SkillList-CU_1-Iaz.js +1 -0
- package/dist/SkillList-_CGxFVan.mjs +386 -0
- package/dist/TeacherSelector-C9HSJpwB.js +1 -0
- package/dist/TeacherSelector-CeQStIjC.mjs +30 -0
- package/dist/TheContent-CRdTKAO2.js +1 -0
- package/dist/TheContent-DhAC2Pag.mjs +38 -0
- package/dist/UserContainer-BG88LrHG.js +5 -0
- package/dist/UserContainer-CZnWnIxe.mjs +2696 -0
- package/dist/UserDetail-8VoY0zAK.mjs +912 -0
- package/dist/UserDetail-XxeFBQb0.js +1 -0
- package/dist/UserList-drpkL0az.js +7 -0
- package/dist/UserList-tJN8p4bW.mjs +1512 -0
- package/dist/constants-DMGfBpO6.js +1 -0
- package/dist/constants-KowNPaKI.mjs +241 -0
- package/dist/index-B0KHEYvr.js +15 -0
- package/dist/index-BpI8f2Tq.mjs +19607 -0
- package/dist/index.js +1 -1
- package/dist/index.modern.js +150 -147
- package/dist/mailCategoryService-CleISU3d.mjs +11 -0
- package/dist/mailCategoryService-LdvLPQRm.js +1 -0
- package/dist/shared/gradeYear/index.d.ts +1 -0
- package/dist/shared/gradeYear/tierLabel.d.ts +3 -0
- package/dist/userService-Ce6Rl3kx.js +1 -0
- package/dist/userService-CkO5JV9X.mjs +47 -0
- package/package.json +113 -113
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),o=require("react"),g=require("reactstrap"),te=require("react-router-dom"),e=require("./index-B0KHEYvr.js"),Q=require("react-redux"),ue=require("formik"),qe=require("yup"),le=require("react-google-recaptcha-v3"),Ie=require("@react-oauth/google"),se=require("./types-CTFcZUFS.js"),ve=require("./constants-DMGfBpO6.js"),ne=require("@azure/msal-browser"),Ve=require("@amplitude/analytics-browser");function Te(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const l=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,l.get?l:{enumerable:!0,get:()=>t[n]})}}return r.default=t,Object.freeze(r)}const M=Te(qe),re=Te(Ve),We={backgroundColor:"#f7f9fc",borderRadius:"4px",marginBottom:"5px",position:"relative"},Ke={backgroundColor:"#ffffff",paddingRight:"50px",color:"#333333",caretColor:"#333333"},Ye={fontSize:"20px",position:"absolute",right:"10px",color:"#316CD9"},Je=t=>t.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(r,n)=>n.toUpperCase()),ie=({isShowPassword:t,togglePasswordVisible:r,onChange:n,placeholder:l})=>s.jsxs("div",{className:"d-flex align-items-center w-100",style:We,children:[s.jsx(g.Input,{className:"border password-input",style:Ke,type:t?"text":"password",name:"password",onChange:n,placeholder:l||"Password",autocomplete:l?Je(l):"password",required:!0}),s.jsx("i",{className:`far ${t?"fa-eye-slash":"fa-eye"} mx-2 cursor-pointer`,style:Ye,onClick:()=>r(),title:t?"Hide":"Show"})]}),Ze=({open:t,onConfirm:r,onClose:n,clickHandler:l})=>{const{getLabel:m,system:h}=e.useGradeLabel(),[p,y]=o.useState(ve.GRADE_DEFAULT[0].value);return s.jsxs(g.Modal,{isOpen:t,className:`${e.styles["teacher-code"]}`,style:{zIndex:1201},centered:!0,autoFocus:!1,returnFocusAfterClose:!1,children:[s.jsxs("div",{className:`${e.styles["header-teacher-code"]}`,children:[s.jsx("div",{style:{padding:"16px 24px",margin:0,fontWeight:500,fontSize:"1.25rem"},children:h==="UK"?"Select Year":"Select Grade"}),s.jsx("div",{hidden:!n,children:s.jsx(e.MdClose,{onClick:()=>n?.(),className:`${e.styles["close-icon"]}`,size:24,style:{color:"rgba(0, 0, 0, 0.54)"}})})]}),s.jsxs(g.ModalBody,{style:{padding:"20px 24px"},children:[s.jsx("p",{className:`${e.styles["teacher-code-label"]}`,style:{margin:0,marginBottom:"16px",color:"rgba(0, 0, 0, 0.6)"},children:h==="UK"?"You are logging in as a student, please select your year":"You are logging in as a student, please select your grade"}),s.jsxs("div",{className:"form-floating",style:{marginTop:"16px",marginBottom:"8px"},children:[s.jsx(g.Input,{type:"select",id:"floatingSelectGrade",value:p,onChange:x=>y(x.target.value),children:ve.GRADE_DEFAULT.map(x=>s.jsx("option",{value:x.value,children:m(x.value)||x.label},x.value))}),s.jsx("label",{htmlFor:"floatingSelectGrade",children:h==="UK"?"Select year":"Select grade"})]})]}),s.jsx(g.ModalFooter,{style:{borderTop:"none",padding:"8px 24px"},children:s.jsx(g.Button,{disabled:!p,style:{borderRadius:20,background:"#316cd9",border:"none",opacity:p?1:.65},color:"primary",onClick:()=>r(p,l),children:"Confirm"})})]})};function Qe(t,r){return JSON.stringify(t)===JSON.stringify(r)}const Xe=o.memo(Ze,Qe),es=M.object({email:M.string().email("Email is invalid").required("Email is required"),password:M.string().required("Password is required"),rememberMe:M.boolean()}),ss=({onSuccess:t,onError:r})=>{const n=Ie.useGoogleLogin({onSuccess:async l=>{try{const m=await fetch("https://www.googleapis.com/oauth2/v3/userinfo",{headers:{Authorization:`Bearer ${l.access_token}`}}).then(p=>p.json()),h={accessToken:l.access_token,googleId:m.sub,profileObj:{email:m.email,familyName:m.family_name,givenName:m.given_name,imageUrl:m.picture,name:m.name}};t(h)}catch(m){r(m)}},onError:l=>r(l)});return s.jsxs("div",{className:e.styles["btn-login-with-sso"],onClick:()=>n(),children:[s.jsxs("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"24px",height:"24px",style:{marginRight:"8px"},children:[s.jsx("path",{fill:"#EA4335",d:"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"}),s.jsx("path",{fill:"#4285F4",d:"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"}),s.jsx("path",{fill:"#FBBC05",d:"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"}),s.jsx("path",{fill:"#34A853",d:"M24 48c6.48 0 12.38-2.12 16.66-5.73l-7.73-6c-2.15 1.45-4.92 2.3-8.93 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"}),s.jsx("path",{fill:"none",d:"M0 0h48v48H0z"})]}),s.jsx("p",{children:"GOOGLE"})]})},ts=({defaultInfo:t,userLogin:r,school:n,isShowPassword:l,setIsShowPassword:m,fnIsCheckLogin:h,googleClientId:p,fnLoginSSO:y,extensionEmail:x,onLoginWidthClever:C,openModalSelectGrade:b,handleRegisterUser:S,onToggleModelGrade:k})=>{const N=()=>m(!l),D=Q.useDispatch(),{executeRecaptcha:P}=le.useGoogleReCaptcha(),v=o.useCallback(async()=>{if(!P){console.log("execute recaptcha undefined");return}return await P("login")},[P]),A=async E=>{try{await e.AccountSSOLogApi(E)}catch(L){console.error(L)}},H=async E=>{if(E?.accessToken){let{email:L,familyName:q,givenName:j,imageUrl:I,name:_}=E.profileObj,F=E.accessToken,Y=E.googleId;const J=window.location.hostname.split(".marioforme.com")?.[0],W=L.split("@")?.[1],he=x?.split(",")?.map(U=>U.trim())?.filter(U=>U).some(U=>W.includes(U));if(!W.includes(J)&&!he){alert("The email address you used does not match the login information in the database. Please check that you are using your school assigned email address to log into MARIO for Me. If you have further trouble please notify your school site administrator"),await A([`${W} is incorrect`]);return}const ce={firstName:j,lastName:q,imageUrl:I,fullName:_,email:L,accessToken:F,googleId:Y};D(e.setInforUserGoogle(ce)),h(se.TypeLogin.Google,ce,F,v)}};return s.jsxs(o.Fragment,{children:[s.jsx(ue.Formik,{initialValues:t,validationSchema:es,onSubmit:async E=>{try{const L=await v();if(!L)return;E.captcha=L,E.loginType=se.LoginType.Default,r(E)}catch(L){console.error(L)}},children:E=>{const{handleBlur:L,handleSubmit:q,values:j,touched:I,errors:_,setFieldValue:F}=E,Y=I.email&&_.email,ae=I.password&&_.password;return s.jsx("div",{className:`${e.styles["box-login"]} w-100`,children:s.jsx(g.Form,{className:`${e.styles["block-login"]}`,onSubmit:q,children:s.jsxs("div",{className:`${e.styles["block-form"]}`,children:[s.jsxs("div",{className:"d-flex align-items-center mb-4",children:[s.jsx("img",{hidden:!n?.schoolLogo,src:n?.schoolLogo,className:`${e.styles["school-icon"]} mr-3`}),s.jsx("p",{className:`${e.styles["school-name"]} mb-0`,children:n.schoolName})]}),s.jsx("p",{className:`${e.styles["title-login"]}`,children:"Welcome Back!"}),s.jsx("p",{className:`${e.styles["login-description"]} mb-5`,children:"Please enter your MARIO Education account details"}),s.jsxs(g.FormGroup,{className:`${e.styles["form-user-name"]}`,children:[s.jsx(g.Input,{type:"text",name:"email",placeholder:"Email",value:j.email,onChange:J=>F("email",J.target?.value?.trim()||""),autocomplete:"email",onBlur:L("email"),required:!0}),Y&&s.jsx(e.ErrorHandler,{text:_.email})]}),s.jsxs(g.FormGroup,{children:[s.jsx(ie,{isShowPassword:l,togglePasswordVisible:N,onChange:J=>F("password",J.target?.value?.trim()||"")}),ae&&s.jsx(e.ErrorHandler,{text:_.password})]}),s.jsx(g.FormGroup,{}),s.jsxs("div",{className:"d-flex justify-content-between",children:[s.jsxs("div",{className:"d-flex align-items-center",style:{gap:"8px"},children:[s.jsx("input",{type:"checkbox",checked:!j.isSessionUserBrowser,className:`${e.styles["checkbox-keep-login"]}`,onChange:()=>F("isSessionUserBrowser",!j.isSessionUserBrowser)}),s.jsx("p",{className:`${e.styles["label-keep-login"]} mb-0 ml-2`,children:"Keep me logged in"})]}),s.jsx(te.Link,{to:"/forgot-password",className:`${e.styles["link-to-login"]}`,children:"Forgot password?"})]}),s.jsx("button",{className:`${e.styles["btn-login"]} mt-5`,type:"submit",children:"LOG IN"}),s.jsx("p",{className:`${e.styles["option-text"]} my-3 text-center`,children:"OR"}),s.jsxs(g.Row,{className:"mb-4",children:[s.jsx(g.Col,{lg:6,md:6,xs:12,className:"pr-md-3",children:!!p&&s.jsx(Ie.GoogleOAuthProvider,{clientId:p,children:s.jsx(ss,{onSuccess:H,onError:()=>console.log("Google login failed")})})}),n.schoolId&&s.jsx(g.Col,{lg:6,md:6,xs:12,className:`${e.styles["btn-login-sso"]} pl-md-2`,hidden:!n?.schoolId,children:s.jsxs("div",{className:e.styles["btn-login-with-sso"],onClick:()=>y(v),children:[s.jsx("img",{src:"images/microsoft-logo.png"}),s.jsx("p",{children:"MICROSOFT"})]})})]}),s.jsx("div",{className:`${e.styles["btn-login-sso"]}`,children:s.jsxs("div",{className:e.styles["btn-login-with-sso"],onClick:()=>window.open("https://launchpad.classlink.com/login"),children:[s.jsx("img",{src:"images/class-link-icon.png"}),s.jsx("p",{children:"SIGN IN WITH CLASSLINK"})]})}),s.jsx("div",{className:`${e.styles["btn-login-sso"]} mt-4`,children:s.jsxs("div",{className:e.styles["btn-login-with-sso"],onClick:()=>C(),children:[s.jsx("img",{src:"images/clever-icon.png"}),s.jsx("p",{children:"SIGN IN WITH CLEVER"})]})})]})})})}}),s.jsx(Xe,{open:b,onConfirm:S,clickHandler:v,onClose:k})]})},as={email:"",captcha:""},os="/",Ee="/login",rs="Log in",Ae=()=>{const t=new URLSearchParams(te.useLocation().search),r=t.get("token"),n=t.get("key")??"",l=Q.useDispatch(),m=te.useNavigate(),[h,p]=o.useState(!1),y=o.useCallback(()=>{p(!h)},[h]),[x,C]=o.useState(!1),[b,S]=o.useState(!1),[k,N]=o.useState({token:"",password:"",reEnterPassword:"",email:"",userId:""}),[D,P]=o.useState(!0),{executeRecaptcha:v}=le.useGoogleReCaptcha();o.useEffect(()=>{document.title=rs,e.getAccessToken()&&m(os)},[]);const A=o.useCallback(async j=>{l(e.setLoading(!0));try{await e.forgotPassword(j),m(Ee),l(e.setAlert({type:"success",message:"A mail to reset password was sent"}))}catch(I){l(e.setAlert({type:"danger",message:I.response?.data?.title||I.message||"Error occured"})),localStorage.removeItem(e.ACCESS_TOKEN),sessionStorage.removeItem(e.ACCESS_TOKEN)}l(e.setLoading(!1))},[]),H=o.useCallback(async(j,I)=>{l(e.setLoading(!0));try{const _=await e.checkResetToken(j,I);_.data?N({...k,token:j,email:_.data}):P(!1)}catch{P(!1)}l(e.setLoading(!1))},[]),E=o.useCallback(async j=>{l(e.setLoading(!0));try{await e.resetPassword({...j,key:n}),m(Ee),l(e.setAlert({type:"success",message:"Reset password sucessfully"}))}catch(I){l(e.setAlert({type:"danger",message:I.response?.data?.title||I.message||"Error occured"})),localStorage.removeItem(e.ACCESS_TOKEN),sessionStorage.removeItem(e.ACCESS_TOKEN)}l(e.setLoading(!1))},[]),L=o.useCallback(async()=>{if(!v){console.log("execute recaptcha undefined");return}return await v("forgetPass")},[v]),q=o.useCallback(()=>{},[]);return o.useEffect(()=>{r&&n&&H(r,n)},[r,n]),{defaultInfo:as,forgotPasswordRequest:A,checkResetTokenRequest:H,validLink:D,resetPasswordRequest:E,openLogin:h,toggle:y,isShowNewPassword:x,setIsShowNewPassword:C,isShowReTypePassword:b,setIsShowReTypePassword:S,clickHandler:L,handleVerify:q,initialValues:k}},ns={email:"",captcha:""},is=M.object({email:M.string().email("Email is invalid").required("Email is required")}),ls=({school:t})=>{const{forgotPasswordRequest:r,clickHandler:n,handleVerify:l}=Ae();return s.jsx(ue.Formik,{initialValues:ns,enableReinitialize:!0,validationSchema:is,onSubmit:async m=>{const h=await n();h&&(m.captcha=h,r(m))},children:m=>{const{handleChange:h,handleSubmit:p,values:y,touched:x,errors:C}=m;return s.jsx("div",{className:`${e.styles["box-login"]}`,children:s.jsx("div",{className:`${e.styles["block-login"]}`,children:s.jsxs("div",{className:`${e.styles["block-form"]}`,children:[s.jsxs("div",{className:"d-flex align-items-center mb-4",children:[s.jsx("img",{src:t.schoolLogo,className:`${e.styles["school-icon"]} mr-3`}),s.jsx("p",{className:`${e.styles["school-name"]} mb-0`,children:t.schoolName})]}),s.jsx("p",{className:`${e.styles["title-login"]} `,children:"Forgot password"}),s.jsx("p",{className:`${e.styles["recover-account"]} mb-5`,children:"Enter email to recover your account"}),s.jsxs("div",{className:"w-100",children:[s.jsx(g.Input,{type:"text",name:"email",id:"email",placeholder:"Input email",onChange:h,value:y.email}),x.email&&C.email&&s.jsx(e.ErrorHandler,{text:C.email})]}),s.jsx(te.Link,{to:"/login",className:`${e.styles["link-to-login"]} mt-2`,children:"Return to login"}),s.jsx(le.GoogleReCaptcha,{action:"forgetPass",onVerify:l}),s.jsx(g.Col,{className:"p-0",children:s.jsx("button",{className:`${e.styles["btn-login"]} mt-5`,onClick:()=>p(),children:"Continue"})})]})})})}})},cs=M.object({password:M.string().required("New password is required"),reEnterPassword:M.string().required("Please re-enter new password").test("matching","Passwords do not match",function(){return this.parent.password===this.parent.reEnterPassword})}),ds=()=>{const{validLink:t,resetPasswordRequest:r,isShowNewPassword:n,setIsShowNewPassword:l,isShowReTypePassword:m,setIsShowReTypePassword:h,initialValues:p}=Ae();return s.jsx(ue.Formik,{initialValues:p,enableReinitialize:!0,validationSchema:cs,onSubmit:y=>{r(y)},children:y=>{const{setFieldValue:x,handleSubmit:C,touched:b,errors:S,values:k}=y;return s.jsx(g.Row,{className:`${e.styles["box-login"]}`,children:s.jsx(g.Col,{className:"p-0",children:s.jsx("div",{className:`${e.styles["block-login"]}`,children:s.jsxs("div",{className:`${e.styles["block-form"]}`,children:[s.jsx("img",{src:`${e.getStaticFileUrl("/images/horizontal-logo-blue.svg")}`,className:`${e.styles["img-login-rectangle"]}`}),s.jsx("p",{className:`${e.styles["title-login"]}`,children:"Reset Password"}),s.jsx("div",{className:"w-100",children:t?s.jsxs(o.Fragment,{children:[s.jsx(g.FormGroup,{className:`${e.styles["form-user-name"]}`,children:s.jsx(g.Input,{disabled:!0,type:"text",name:"email",placeholder:"Email",value:k.email,autocomplete:"email",required:!0,className:`${e.styles.input}`})}),s.jsxs("div",{className:`${e.styles["form-user-name"]}`,children:[s.jsx(ie,{isShowPassword:n,togglePasswordVisible:()=>l(!n),onChange:N=>x("password",N.target.value)}),b.password&&S.password&&s.jsx(e.ErrorHandler,{text:S.password})]}),s.jsxs("div",{className:`${e.styles["form-user-name"]}`,children:[s.jsx(ie,{placeholder:"Confirm Password",isShowPassword:m,togglePasswordVisible:()=>h(!m),onChange:N=>x("reEnterPassword",N.target.value)}),b.reEnterPassword&&S.reEnterPassword&&s.jsx(e.ErrorHandler,{text:S.reEnterPassword})]})]}):s.jsxs(o.Fragment,{children:[s.jsx("p",{className:`${e.styles["recover-account"]} mb-5`,children:"Invalid reset password link"}),s.jsx("p",{className:"w-100",children:"It may have been accessed before or expired or you have just tried to reset another account's password"})]})}),t&&s.jsx(g.Col,{className:"p-0",children:s.jsx("button",{className:`${e.styles["btn-login"]} ${e.styles["btn-rounder"]} mt-4`,onClick:()=>C(),children:"SET A NEW PASSWORD"})})]})})})})}})},Pe=`${e.BASE_URL}/api/school`,ms=()=>e.api.get(`${Pe}/settings`),gs=()=>e.api.get(`${Pe}/info`),us={auth:{clientId:e.isLocalhost?"a27f8ac9-e039-4bbd-a9e1-3096e52a77bb":"90c6897c-f17b-475e-a7a8-9a19651e0060",authority:"https://login.microsoftonline.com/common",redirectUri:"https://sso.marioforme.com/microsoft-login.html"},cache:{cacheLocation:"sessionStorage",storeAuthStateInCookie:!1},system:{loggerOptions:{loggerCallback:(t,r,n)=>{if(!n)switch(t){case ne.LogLevel.Error:console.error(r);return;case ne.LogLevel.Info:console.info(r);return;case ne.LogLevel.Verbose:console.debug(r);return;case ne.LogLevel.Warning:console.warn(r);return;default:return}}}}},hs={email:"",password:"",captcha:"",rememberMe:!1,isSessionUserBrowser:!!sessionStorage.getItem(e.IS_USER_SESSION_BROWSER)},ps="/home",Le="/home",fs="/admin/home",xs="/parent",Ss="/admin/schools",ws="/list-student",ys="Log in",Ns=()=>{const t=Q.useDispatch(),r=te.useNavigate(),[n,l]=o.useState(!1),m=Q.useSelector(a=>a.common.isLoginGoogle),[h,p]=o.useState(""),[y,x]=o.useState(""),[C,b]=o.useState(""),[S,k]=o.useState(!1),N=Q.useSelector(a=>a.common.inforUserGoogle),D=Q.useSelector(a=>a.common.environment),P=new URLSearchParams(location.search),v=P.get("type")==="classlink",A=P.get("token"),H=P.get("isAdminUser"),[E]=o.useState(!1),[L,q]=o.useState({schoolName:"",schoolLogo:"",schoolId:0}),[j,I]=o.useState(null),_=o.useCallback(()=>{l(!n)},[n]),[F,Y]=o.useState(!1),[ae,J]=o.useState(!1),[W,he]=o.useState({firstName:"",lastName:"",fullName:"",imageUrl:"",email:"",accessToken:"",googleId:""});o.useEffect(()=>{document.title=ys;const a=e.getCookieValue("auth-token");if(a){const c=window.location.hostname;if(localStorage.setItem(e.ACCESS_TOKEN,a),document.cookie=`auth-token=;domain=${c.includes("localhost")?c:".marioforme.com"}; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`,document.cookie="redirect-uri=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/",H)return r("/admin/home");Se(a);return}e.getAccessToken()&&r("/"),Me()},[H,Se,r]);const ce=()=>{localStorage.removeItem(e.ACCESS_TOKEN),sessionStorage.removeItem(e.ACCESS_TOKEN),localStorage.removeItem("USER_EMAIL")};o.useEffect(()=>{v&&A!=""&&Re()},[]);const U=()=>{J(!ae)},_e=()=>{if(e.isLocalhost){const a="https://clever.com/oauth/instant-login?client_id=44f4bbf55cd873d3f7e5&district_id=6620cba31f1ddde7bd689dc5";window.location.href=a}else{const a=`https://clever.com/oauth/authorize?response_type=code&redirect_uri=${encodeURIComponent("https://classlink.marioforme.com/api/clever/clever-login")}&client_id=c3da6c669d239c70d48e`;window.location.href=a}},Re=async()=>{t(e.setLoading(!0));try{const a={tokenClassLink:A},i=await e.apiInforUserClassLink(a),{email:c,token:f}=i.data;await Z({email:c,rememberMe:!1,password:"default",accessToken:f})}catch(a){t(e.setAlert({type:"danger",message:a.response?.data?.title||a.message}))}t(e.setLoading(!1))},pe=window.location.host.includes("-district"),$e=o.useCallback(async()=>{t(e.setLoading(!0));try{const a=await gs(),i=a.data.schoolLogo??"";a.data&&q({schoolName:a.data.schoolName,schoolLogo:i?e.getFileUrl(i):e.getStaticFileUrl("/images/logo_header_blue.png"),schoolId:a.data.schoolId})}catch(a){t(e.setAlert({type:"danger",message:a.response?.data?.title||a.message}))}t(e.setLoading(!1))},[]),[Oe,de]=o.useState(!1),[X,fe]=o.useState(null),oe=o.useCallback((a,i,c,f,d,B,$,z,V,T)=>{const O=T?.isSessionUserBrowser??!1;O?(sessionStorage.setItem(e.ACCESS_TOKEN,a),sessionStorage.setItem(e.IS_USER_SESSION_BROWSER,String(O))):(sessionStorage.removeItem(e.IS_USER_SESSION_BROWSER),localStorage.setItem(e.ACCESS_TOKEN,a)),localStorage.removeItem(e.NOTIFICATION_ALERT_KEY),sessionStorage.removeItem("ACTIVE_ROLE"),t(e.setUser({id:i,firstName:c,lastName:f,roles:d,email:B,profileImageFileName:$}));let w=localStorage.getItem("ROLES")||"";if(!w){if(d.includes("Admin"))w="Admin";else{const R=((i?localStorage.getItem(`PREFERRED_ROLE_${i}`):null)||"").split(",").map(ge=>ge.trim()).filter(Boolean);R.length>0&&R.every(ge=>d.includes(ge))?R.length>1?w=R.every(Ce=>Ce==="Teacher"||Ce==="Assistant")?"Teacher,Assistant":R[0]:w=R[0]:d.includes("Teacher")?w=d.includes("Assistant")?"Teacher,Assistant":"Teacher":d.includes("Assistant")?w="Assistant":d.includes("Counselor")?w="Counselor":d.includes("SecondaryTeacher")?w="SecondaryTeacher":d.includes("EduTeacher")?w="EduTeacher":d.includes("Student")?w="Student":d.includes("Parent")?w="Parent":d.length>0&&(w=d[0])}w&&(localStorage.setItem("ROLES",w),sessionStorage.setItem("ACTIVE_ROLE",w))}if(T?.email&&!d.includes("Admin")){re.init(e.isLocalhost?e.INIT_AMPLITUDE_KEY_STAGE:e.INIT_AMPLITUDE_KEY_PROD,T.email,{defaultTracking:!1});const K=window.location.hostname,R=new re.Identify;R.set("domain",K),re.identify(R),re.track("general: session start",{user_id:T.email,domain:K,roles:d?.toString()}),localStorage.setItem("USER_EMAIL",T.email),z&&re.track("general: first login",{user_id:T.email,domain:K,roles:d?.toString()})}const De=(String(T?.preferredAppType||"").split(",").map(K=>K.trim().toUpperCase()).filter(Boolean)[0]||"")==="HS"?"HS":"MS";e.isCombineMsHs()||localStorage.setItem("ACTIVE_TIER",De);const ee=K=>{const R=e.navigateBySchoolLevel(K,V);window.location.pathname.startsWith("/es")?V==="es"?r(R):window.location.href=R:V==="es"?window.location.href=R:r(R)},G=w.split(",")[0]||"";pe?ee(Ss):d.includes("Admin")||G==="Admin"?ee(fs):G==="Teacher"||G==="Assistant"||G==="Counselor"||G==="SecondaryTeacher"||!G&&(d.includes("Teacher")||d.includes("Assistant")||d.includes("Counselor")||d.includes("SecondaryTeacher"))?ee(ps):G==="Student"||!G&&d.includes("Student")?ee(Le):G==="Parent"||!G&&d.includes("Parent")?ee(xs):(G==="EduTeacher"||!G&&d.includes("EduTeacher"))&&ee(ws),t(e.setLoading(!1))},[t,r,pe]),me=o.useCallback((a,i,c)=>S&&a?.includes("Student")&&(i==="es"||c==="ES")?(t(e.setAlert({type:"danger",message:"Unable to sign in with SSO. Please contact your admin or teacher."})),localStorage.removeItem(e.ACCESS_TOKEN),sessionStorage.removeItem(e.ACCESS_TOKEN),t(e.setLoading(!1)),!0):!1,[S,t]),xe=o.useCallback(a=>S&&a&&e.ES_GRADES.includes(a.trim())?(t(e.setAlert({type:"danger",message:"Unable to sign in with SSO. Please contact your admin or teacher."})),t(e.setLoading(!1)),!0):!1,[S,t]);async function Se(a){t(e.setLoading(!0));try{const i=await e.getInfo();let{id:c,firstName:f,lastName:d,roles:B,email:$,profileImageFileName:z,isLoginFirst:V,schoolLevel:T,appType:O,preferredAppType:w,needsAppTypeChoice:je}=i.data;if(je){fe({email:$}),de(!0),t(e.setLoading(!1));return}T||(O==="ES"||O==="ES, MS"&&w==="ES")&&(T="es"),oe(a,c,f,d,B,$,z,V,T,{email:$,...i.data})}catch(i){t(e.setAlert({type:"danger",message:i.response?.data?.title||i.message||"Login failed"})),t(e.setLoading(!1))}}const Ge=o.useCallback(async a=>{if(de(!1),!X)return;t(e.setLoading(!0));const i=a==="es"?"ES":a==="ms"?"MS":"ES, MS";try{const c=await e.logIn({...X,email:X?.email?.trim(),password:X?.password?.trim(),preferredAppType:i});let{token:f,id:d,firstName:B,lastName:$,roles:z,email:V,profileImageFileName:T,isLoginFirst:O,schoolLevel:w}=c.data;if(!w&&a==="es"&&(w="es"),me(z,w,c.data.appType))return;oe(f,d,B,$,z,V,T,O,w,{...X,...c.data})}catch(c){t(e.setAlert({type:"danger",message:c.response?.data?.title||c.message||"Login failed"})),t(e.setLoading(!1))}},[X,oe,me,t]),Z=o.useCallback(async a=>{t(e.setLoading(!0));try{const i=await e.logIn({...a,email:a?.email?.trim(),password:a?.password?.trim()});let{token:c,id:f,firstName:d,lastName:B,roles:$,email:z,profileImageFileName:V,isLoginFirst:T,schoolLevel:O}=i.data;if(i.data.needsAppTypeChoice){fe(a),de(!0),t(e.setLoading(!1));return}if(O||(i.data.appType==="ES"||i.data.appType==="ES, MS"&&i.data.preferredAppType==="ES")&&(O="es"),me($,O,i.data.appType))return;oe(c,f,d,B,$,z,V,T,O,{...a,...i.data})}catch(i){t(e.setAlert({type:"danger",message:i.response?.data?.title||i.message||"Login failed"})),localStorage.removeItem(e.ACCESS_TOKEN),sessionStorage.removeItem(e.ACCESS_TOKEN),t(e.setLoading(!1))}},[oe,me,t]),Me=async()=>{try{const a=await e.getGoogleClientId();p(a.data.googleClientId),x(a.data.googleCaptchaId),b(a.data.extensionEmail),k(a.data.isRestrictedLogin)}catch(a){t(e.setAlert({type:"danger",message:a.response?.data?.title||a.message||"Login failed"}))}},we=o.useCallback(async(a,i,c,f)=>{t(e.setLoading(!0));try{if((await e.checkUserGoogle(a,i)).data){const $={email:i.email,isLoginGoogle:!0,rememberMe:!1,password:"default",accessToken:c,captcha:"",loginType:se.LoginType.Google};if(f!=null){const z=await f();$.captcha=z}await Z($),t(e.setIsLoginGoogle(!1))}else he({...i,token:c}),U()}catch(d){t(e.setAlert({type:"danger",message:d.response?.data?.title||d.message||"Login failed"}))}t(e.setLoading(!1))},[Z,t,U]),Ue=o.useCallback(async(a,i)=>{t(e.setLoading(!0));try{if(xe(a))return;if((await e.registerUserStudent({...W,gradeLevel:a}))?.data){const f={email:W.email,isLoginGoogle:!0,rememberMe:!1,password:"default",accessToken:W.accessToken,captcha:"",loginType:se.LoginType.Google};if(i!=null){const d=await i();f.captcha=d}await Z(f),U()}}catch(c){t(e.setAlert({type:"danger",message:c.response?.data?.title||c.message||"Login failed"}))}t(e.setLoading(!1))},[xe,W,Z,U,t]),Fe=async(a,i)=>{t(e.setLoading(!0));try{const c={firstName:N.firstName,lastName:N.lastName,imageUrl:N.imageUrl,fullName:N.fullName,email:N.email,accessToken:N.accessToken,teacherId:a};if((await e.registerUserStudent(c)).data){const d=await i(),B={email:N.email,captcha:d,isLoginGoogle:!0,rememberMe:!1,password:"default",accessToken:N.accessToken,loginType:se.LoginType.Google};t(e.setIsLoginGoogle(!1)),await Z(B),r(Le)}}catch(c){t(e.setAlert({type:"danger",message:c.response?.data?.title||c.message||"Login failed"}))}t(e.setIsLoginGoogle(!1)),t(e.setLoading(!1))},Be=async()=>{try{const a=await ms();t(e.setSandboxMode(a.data.isSandboxMode)),e.applyCombineFlag(!!a.data.isCombineMsHs)}catch(a){console.error(a)}},ye=async a=>{j.handleRedirectPromise().then(async i=>{if(L?.schoolId)if(i){let c=i.account;await Ne(c,a)}else{const c=j.getAllAccounts();if(c.length===0){const f=D==="PreProduction"?"https://mario1.marioforme.com":e.isLocalhost?"https://brightsoft.marioforme.com":"https://sso.marioforme.com";window.location.href=(window.location.hostname==="localhost"?window.location.origin:f)+`/microsoft-login.html?redirect-uri=${window.location.origin}&schoolId=${L.schoolId}`}else{let f=c[0];await Ne(f,a)}}}).catch(i=>{console.error(i)})},Ne=async(a,i)=>{let c=a.name,f={firstName:c.split(" ").slice(0,-1).join(" "),lastName:c.split(" ").slice(-1).join(" "),fullName:c,imageUrl:"",email:a.username,accessToken:a.idTokenClaims.aio,googleId:a.tenantId};t(e.setInforUserGoogle(f)),await we(se.TypeLogin.MicrosoftSSO,f,a.idTokenClaims.aio,i)},ze=async()=>{const a=new ne.PublicClientApplication(us);await a.initialize(),I(a)};return o.useEffect(()=>{let a=window.location.href;j&&a.includes("code")&&a.includes("client_info")&&ye()},[JSON.stringify(j)]),o.useEffect(()=>{Be(),ze(),$e()},[]),{defaultInfo:hs,userLogin:Z,openLogin:n,toggle:_,isShowPassword:F,setIsShowPassword:Y,fnIsCheckLogin:we,isLoginGoogle:m,infoUser:N,submitLogin:Fe,googleClientId:h,googleRecaptchaId:y,handleCancelModelAssign:ce,openModelAssign:E,fnLoginSSO:ye,school:L,extensionEmail:C,handleLoginWidthClever:_e,openModalSelectGrade:ae,handleRegisterUser:Ue,handleToggleModelGrade:U,openModalSelectTier:Oe,handleSelectTier:Ge,setOpenModalSelectTier:de}},be="/",js="/login",ke="Log in",Cs=()=>{const t=Q.useDispatch(),r=te.useNavigate(),n=location.search,m=new URLSearchParams(n).get("userId"),[h,p]=o.useState(!1),[y,x]=o.useState(!1),[C,b]=o.useState({password:"",reEnterPassword:"",email:"",userId:m??"",token:""}),{executeRecaptcha:S}=le.useGoogleReCaptcha(),k=o.useCallback(async v=>{t(e.setLoading(!0));try{const A=await e.getUserNewPassword(v);b({...C,email:A.data})}catch(A){t(e.setAlert({type:"danger",message:A.message}))}t(e.setLoading(!1))},[]),N=o.useCallback(async v=>{t(e.setLoading(!0));try{await e.createPassword(v),r(js),t(e.setAlert({type:"success",message:"Create password sucessfully"}))}catch(A){t(e.setAlert({type:"danger",message:A.response?.data?.title||A.message||"Error occured"})),localStorage.removeItem(e.ACCESS_TOKEN),sessionStorage.removeItem(e.ACCESS_TOKEN)}t(e.setLoading(!1))},[]),D=o.useCallback(async()=>{if(!S){console.log("execute recaptcha undefined");return}return await S("forgetPass")},[S]),P=o.useCallback(()=>{},[]);return o.useEffect(()=>{document.title=ke,e.getAccessToken()&&r(be),m&&k(m)},[m]),o.useEffect(()=>{document.title=ke,e.getAccessToken()&&r(be)},[]),{createPasswordRequest:N,isShowNewPassword:h,setIsShowNewPassword:p,isShowReTypePassword:y,setIsShowReTypePassword:x,clickHandler:D,handleVerify:P,initialValues:C}},vs=M.object({password:M.string().required("Password is required"),reEnterPassword:M.string().required("Please re-enter Password").test("matching","Passwords do not match",function(){return this.parent.password===this.parent.reEnterPassword})}),Es=()=>{const{createPasswordRequest:t,isShowNewPassword:r,setIsShowNewPassword:n,isShowReTypePassword:l,setIsShowReTypePassword:m,initialValues:h}=Cs();return s.jsx(ue.Formik,{initialValues:h,enableReinitialize:!0,validationSchema:vs,onSubmit:p=>{t(p)},children:p=>{const{setFieldValue:y,handleSubmit:x,touched:C,errors:b,values:S}=p;return s.jsx(g.Row,{className:`${e.styles["box-login"]}`,children:s.jsxs(g.Col,{className:"p-0",children:[s.jsx("div",{hidden:!S.email,className:`${e.styles["block-login"]}`,children:s.jsxs("div",{className:`${e.styles["block-form"]}`,children:[s.jsx("img",{src:`${e.getStaticFileUrl("/images/horizontal-logo-blue.svg")}`,className:`${e.styles["img-login-rectangle"]}`}),s.jsx("p",{className:`${e.styles["title-login"]}`,children:"Create Your Password"}),s.jsx("div",{className:"w-100",children:s.jsxs(o.Fragment,{children:[s.jsx(g.FormGroup,{className:`${e.styles["form-user-name"]}`,children:s.jsx(g.Input,{disabled:!0,type:"text",name:"email",placeholder:"Email",value:S.email,autocomplete:"email",required:!0,className:`${e.styles.input}`})}),s.jsxs("div",{className:`${e.styles["form-user-name"]}`,children:[s.jsx(ie,{isShowPassword:r,togglePasswordVisible:()=>n(!r),onChange:k=>y("password",k.target.value)}),C.password&&b.password&&s.jsx(e.ErrorHandler,{text:b.password})]}),s.jsxs("div",{className:`${e.styles["form-user-name"]}`,children:[s.jsx(ie,{placeholder:"Confirm Password",isShowPassword:l,togglePasswordVisible:()=>m(!l),onChange:k=>y("reEnterPassword",k.target.value)}),C.reEnterPassword&&b.reEnterPassword&&s.jsx(e.ErrorHandler,{text:b.reEnterPassword})]})]})}),s.jsx("button",{className:`${e.styles["btn-login"]} ${e.styles["btn-rounder"]} mt-4`,onClick:()=>x(),children:"CREATE YOUR PASSWORD"})]})}),s.jsx("div",{hidden:!!S.email,className:`${e.styles["block-login"]}`,children:s.jsxs("div",{className:`${e.styles["block-form"]}`,children:[s.jsx("img",{src:`${e.getStaticFileUrl("/images/horizontal-logo-blue.svg")}`,className:`${e.styles["img-login-rectangle"]}`}),s.jsx("p",{className:`${e.styles["title-login"]}`,children:"You cannot regenerate the password"})]})})]})})}})},Ls="_modalContent_1pxxz_1",bs="_closeButton_1pxxz_6",ks="_modalBody_1pxxz_17",Is="_iconWrapper_1pxxz_22",Ts="_title_1pxxz_38",As="_subtitle_1pxxz_45",Ps="_tierCard_1pxxz_51",_s="_es_1pxxz_60",Rs="_tierTitle_1pxxz_71",$s="_tierDesc_1pxxz_76",Os="_arrow_1pxxz_81",Gs="_ms_1pxxz_85",Ms="_both_1pxxz_110",Us="_cardLeft_1pxxz_134",Fs="_cardText_1pxxz_138",u={modalContent:Ls,closeButton:bs,modalBody:ks,iconWrapper:Is,title:Ts,subtitle:As,tierCard:Ps,es:_s,tierTitle:Rs,tierDesc:$s,arrow:Os,ms:Gs,both:Ms,cardLeft:Us,cardText:Fs},Bs=({open:t,onSelectTier:r,onClose:n})=>s.jsxs(g.Modal,{isOpen:t,style:{zIndex:1201,maxWidth:450},centered:!0,autoFocus:!1,returnFocusAfterClose:!1,contentClassName:u.modalContent,children:[s.jsx("div",{className:u.closeButton,children:n&&s.jsx(e.MdClose,{onClick:()=>n(),size:24})}),s.jsxs(g.ModalBody,{className:u.modalBody,children:[s.jsx("div",{className:u.iconWrapper,children:s.jsx("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})}),s.jsx("h4",{className:u.title,children:"Select Grade Level"}),s.jsx("p",{className:u.subtitle,children:"Select the grade levels you support"}),s.jsxs("div",{onClick:()=>r("es"),className:`${u.tierCard} ${u.es}`,children:[s.jsxs("div",{className:u.cardLeft,children:[s.jsx("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"})}),s.jsxs("div",{className:u.cardText,children:[s.jsx("div",{className:u.tierTitle,children:"Elementary / Primary"}),s.jsx("div",{className:u.tierDesc,children:"Grades 2-5 / Years 3-6"})]})]}),s.jsx("div",{className:u.arrow,children:">"})]}),s.jsxs("div",{onClick:()=>r("ms"),className:`${u.tierCard} ${u.ms}`,children:[s.jsxs("div",{className:u.cardLeft,children:[s.jsx("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"})}),s.jsxs("div",{className:u.cardText,children:[s.jsx("div",{className:u.tierTitle,children:"Middle & High / Secondary"}),s.jsx("div",{className:u.tierDesc,children:"Grades 6-12 / Years 7-13"})]})]}),s.jsx("div",{className:u.arrow,children:">"})]}),s.jsxs("div",{onClick:()=>r("both"),className:`${u.tierCard} ${u.both}`,children:[s.jsxs("div",{className:u.cardLeft,children:[s.jsx("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M17 14v6m-3-3h6M6 10h2a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v2a2 2 0 002 2zm10 0h2a2 2 0 002-2V6a2 2 0 00-2-2h-2a2 2 0 00-2 2v2a2 2 0 002 2zM6 20h2a2 2 0 002-2v-2a2 2 0 00-2-2H6a2 2 0 00-2 2v2a2 2 0 002 2z"})}),s.jsxs("div",{className:u.cardText,children:[s.jsx("div",{className:u.tierTitle,children:"Both Tiers"}),s.jsx("div",{className:u.tierDesc,children:"Access all grade levels"})]})]}),s.jsx("div",{className:u.arrow,children:">"})]})]})]}),zs=o.memo(Bs),Ds="Log in",Hs="Forgot password",qs="Reset password",Vs=t=>{const{isLogin:r,isForgotPassword:n,isResetPassword:l,isCreatePassword:m}=t,{defaultInfo:h,userLogin:p,googleRecaptchaId:y,handleCancelModelAssign:x,school:C,openModelAssign:b,setIsShowPassword:S,fnIsCheckLogin:k,isLoginGoogle:N,submitLogin:D,infoUser:P,googleClientId:v,isShowPassword:A,fnLoginSSO:H,extensionEmail:E,handleLoginWidthClever:L,openModalSelectGrade:q,handleRegisterUser:j,handleToggleModelGrade:I,openModalSelectTier:_,handleSelectTier:F,setOpenModalSelectTier:Y}=Ns();return o.useEffect(()=>{r&&(document.title=Ds),n&&(document.title=Hs),l&&(document.title=qs)},[r,n,l]),s.jsxs("div",{className:`${e.styles.login} container-fluid font-family-lato`,children:[s.jsxs(g.Row,{className:"h-100",children:[s.jsxs(g.Col,{lg:8,md:12,xs:12,className:"d-flex justify-content-center h-100 align-items-center p-3 flex-column",children:[!!y&&s.jsxs(le.GoogleReCaptchaProvider,{useRecaptchaNet:!0,reCaptchaKey:y,scriptProps:{async:!0,defer:!0,appendTo:"body"},children:[r&&s.jsx(ts,{userLogin:p,defaultInfo:h,onCancelModelAssign:x,openModelAssign:b,school:C,fnIsCheckLogin:k,googleClientId:v,infoUser:P,isLoginGoogle:N,isShowPassword:A,setIsShowPassword:S,submitLogin:D,fnLoginSSO:H,extensionEmail:E,onLoginWidthClever:L,openModalSelectGrade:q,handleRegisterUser:j,onToggleModelGrade:I}),n&&s.jsx(ls,{school:C})]}),l&&s.jsx(ds,{}),m&&s.jsx(Es,{}),s.jsx("a",{href:"/privacy-policy/",target:"blank",className:`${e.styles["privacy-policy"]}`,children:"Privacy Policy"})]}),s.jsx(g.Col,{className:"p-3 mh-100 d-flex justify-content-end",lg:4,md:12,xs:12,children:s.jsx("img",{src:`${e.getStaticFileUrl(window.innerWidth>992?"/images/img-login.png":"/images/img-login-tablet.png")}`,className:`${e.styles["img-login"]}`})})]}),s.jsx(zs,{open:_,onSelectTier:F,onClose:()=>Y(!1)})]})};exports.default=Vs;
|