1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e946d752-849e-4260-a4b7-ee0b66ddd4e5",e._sentryDebugIdIdentifier="sentry-dbid-e946d752-849e-4260-a4b7-ee0b66ddd4e5")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9314],{41891:function(e,t,n){n(2784);var r=n(6620),o=n(52322);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12.545,10.239v3.821h5.445c-0.712,2.315-2.647,3.972-5.445,3.972c-3.332,0-6.033-2.701-6.033-6.032s2.701-6.032,6.033-6.032c1.498,0,2.866,0.549,3.921,1.453l2.814-2.814C17.503,2.988,15.139,2,12.545,2C7.021,2,2.543,6.477,2.543,12s4.478,10,10.002,10c8.396,0,10.249-7.85,9.426-11.748L12.545,10.239z"}),"Google")},80812:function(e,t,n){n.d(t,{W:function(){return z}});var r=n(52322),o=n(2784),i=n(35199),a=n(62197),s=n(56961),l=n(41075),d=n(69692),c=n(65992),u=n(41664),m=n.n(u),p=n(93776),h=n(53671),f=n(24511);let x=(0,f.Ry)({email:(0,f.Z_)().required("Email is required").email("Please enter a valid email."),inst_email:(0,f.Z_)().email("Please enter a valid email.").optional(),firstName:(0,f.Z_)().min(2,"First name must be at least 2 characters").max(50,"First name must not exceed 50 characters"),lastName:(0,f.Z_)().min(2,"Last name must be at least 2 characters").max(50,"Last name must not exceed 50 characters"),phoneNumber:(0,f.Z_)().optional(),password:(0,f.Z_)().required("Password is required").min(8,"Your password must be at least 8 characters long"),confirmPassword:(0,f.Z_)().oneOf([(0,f.iH)("password"),null],"Passwords must match").required("Please retype your password"),promoCode:(0,f.Z_)().optional()});var g=n(11462),v=n(11163),y=n(18451),b=n(86531),j=n(84307),Z=n(31256),w=n(13037),k=n(82729),C=n(81548),S=n(33379);function P(){let e=(0,k._)(["\n mutation SignUp($input: SignUpInput!) {\n signUp(input: $input)\n}\n "]);return P=function(){return e},e}let I={},L=(0,C.Ps)(P());var _=n(23848),R=n(6824),q=n(75200),F=n(47004);let A={email:"",inst_email:"",firstName:"",lastName:"",phoneNumber:"",password:"",promoCode:"",confirmPassword:""};function z(){var e;let t=(0,v.useRouter)(),[n,{error:c,data:u}]=function(e){let t={...I};return S.D(L,t)}(),{enqueueSnackbar:f}=(0,R.Ds)(),{referredFrom:g,referrerPath:k,anon_link_id:C}=(0,q.Z)(),[P,z]=(0,o.useState)(!1),[U,W]=(0,F.Z)(["jomi-promocode-key","jomi-promocode"]),[N,D]=(0,o.useState)("");(0,o.useEffect)(()=>{if(t.isReady&&t.isReady){let e="",n=t.query.from||void 0;if(n){let t=new URLSearchParams(decodeURIComponent(n).split("?")[1]).get("code");t&&(e=t)}let r="string"==typeof t.query.code?t.query.code:"";D(e||r||U["jomi-promocode"]||"")}},[t.isReady,t.query.code,t.query.from,U]);let B=(0,o.useMemo)(()=>({...A,promoCode:N}),[N]),T=async e=>{let{confirmPassword:r,...o}=e;z(!0),n({variables:{input:{email:o.email,inst_email:o.inst_email,firstName:o.firstName,lastName:o.lastName,phoneNumber:o.phoneNumber,password:o.password,referredFrom:g,referrerPath:k,anon_link_id:C}},onCompleted:async e=>{var n,r;let i=null!==(r=null==t?void 0:null===(n=t.query)||void 0===n?void 0:n.from)&&void 0!==r?r:"/",a=Array.isArray(i)?"/":i,s=(0,Z.fz)({email:o.email,password:o.password,callbackUrl:decodeURIComponent(a)});W("jomi-promocode-key",o.promoCode,{path:"/"}),await (0,_.signIn)("credentials",s),await (0,Z._v)(600),f("Account Created. We sent you an email at ".concat(o.email),{variant:"success"}),z(!1)},onError:async e=>{z(!1),f(e.message,{variant:"error"})}})};return(0,r.jsxs)(i.Z,{children:[(0,r.jsx)(a.Z,{color:"textPrimary",align:"center",gutterBottom:!0,variant:"h4",children:"Create an Account"}),(0,r.jsx)(s.Z,{sx:{my:2},component:"span"}),(0,r.jsxs)(l.ZP,{spacing:1,container:!0,children:[(0,r.jsx)(l.ZP,{item:!0,xs:12,md:6,children:(0,r.jsx)(y.$m,{children:" with Google"})}),(0,r.jsx)(l.ZP,{item:!0,xs:12,md:6,children:(0,r.jsx)(y.kw,{children:"with Facebook"})}),(0,r.jsx)(l.ZP,{item:!0,xs:12,md:6,children:(0,r.jsx)(y.Ks,{children:"with LinkedIn"})}),(0,r.jsx)(l.ZP,{item:!0,xs:12,md:6,children:(0,r.jsx)(y.Ei,{children:"with Apple"})}),(0,r.jsx)(l.ZP,{item:!0,xs:12,md:6,children:(0,r.jsx)(y.Sb,{children:" with SAML / OpenAthens "})})]}),(0,r.jsx)(j.Z,{my:3,color:"text.secondary",fontSize:14,component:"div",children:"or"}),c&&(0,r.jsxs)("div",{role:"alert",children:[(0,r.jsx)(a.Z,{color:"error",align:"center",variant:"body1",children:"Sorry we could not create an account."}),(0,r.jsx)(a.Z,{color:"error",align:"center",gutterBottom:!0,variant:"body1",children:(null===(e=c.networkError)||void 0===e?void 0:e.message)?"Network Error.":c.message})]}),(0,r.jsx)(p.J9,{validationSchema:x,initialValues:B,onSubmit:T,enableReinitialize:!0,children:(0,r.jsx)(p.l0,{children:(0,r.jsxs)(i.Z,{spacing:1,children:[(0,r.jsx)(h.Z,{fullWidth:!0,label:"Email",type:"email",variant:"outlined",size:"small",name:"email",autoComplete:"email",helperText:"Please use your personal email",inputProps:{"data-testid":"signup-email-input"}}),(0,r.jsx)(h.Z,{fullWidth:!0,label:"Institutional Email (Optional)",type:"email",variant:"outlined",size:"small",name:"inst_email",autoComplete:"work email",helperText:"Optional. If you are affiliated with an institution please state your institutional email address here.",required:!1}),(0,r.jsx)(h.Z,{fullWidth:!0,label:"Password",variant:"outlined",size:"small",type:"password",name:"password",autoComplete:"new-password",helperText:"Passwords must be atleast 8 characters",inputProps:{"data-testid":"signup-password-input"}}),(0,r.jsx)(h.Z,{fullWidth:!0,label:"Retype Password",variant:"outlined",size:"small",type:"password",name:"confirmPassword",autoComplete:"new-password",inputProps:{"data-testid":"signup-confirm-password-input"}}),(0,r.jsx)(h.Z,{fullWidth:!0,label:"Code (Optional)",type:"text",variant:"outlined",size:"small",name:"promoCode",autoComplete:"off",helperText:"If you have a code, please enter it here. It will be automatically applied during account creation, if eligible.",required:!1}),(0,r.jsxs)(d.Z,{my:2,children:[(0,r.jsxs)(a.Z,{color:"textSecondary",align:"left",fontSize:12,pt:2,children:["If you think others at your institution would find JOMI useful email us at"," ",(0,r.jsx)(w.s,{sx:{color:"info"},href:"mailto:[email protected]",children:"[email protected]"})," ","and we can work to get you on board!"]}),(0,r.jsxs)(a.Z,{my:2,align:"left",color:"textSecondary",fontSize:12,children:['By clicking "Sign Up", you agree to our ',(0,r.jsx)(m(),{href:"/terms-of-service",passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(w.s,{children:"Terms of Service"})})]}),(0,r.jsx)(a.Z,{fontWeight:700,my:2,align:"left",color:"textSecondary",fontSize:12,children:"Individual subscriptions can be purchased after you have created an account. Promo Codes can be entered here or after you have created an account."})]}),(0,r.jsxs)(i.Z,{my:1,spacing:2,direction:{md:"row",xs:"column"},justifyContent:"flex-start",children:[(0,r.jsx)(b.M,{disabled:P,loading:P,variant:"contained",type:"submit","data-event":"Sign Up Form - Sign Up Button","data-testid":"signup-submit-button",sx:{width:{xs:"100%",md:150}},children:"Sign Up"}),(0,r.jsx)(m(),{href:{pathname:"/login",query:t.query},passHref:!0,legacyBehavior:!0,children:(0,r.jsxs)(E,{variant:"outlined",sx:{width:{xs:"100%",md:250}},color:"linkblue","data-event":"Sign Up Form - Login Button",children:[" ","Already have an account?"]})})]})]})})})]})}let E=(0,c.ZP)(g.Z)({borderRadius:4,height:40,textTransform:"none"})},86531:function(e,t,n){n.d(t,{M:function(){return i}});var r=n(65992),o=n(11462);let i=(0,r.ZP)(o.Z)({background:"linear-gradient(0deg, #4F46E5 0%, #60A5FA 100%)",color:"white",borderRadius:4,height:40,textTransform:"none",":hover":{background:"linear-gradient(358.52deg, #4F46E5 50%, #60A5FA 98.74%)"}})},18451:function(e,t,n){n.d(t,{Ei:function(){return w},kw:function(){return j},$m:function(){return b},Ks:function(){return Z},aA:function(){return C},Sb:function(){return k}});var r=n(52322),o=n(41891),i=(0,n(6620).Z)((0,r.jsx)("path",{d:"M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 4.84 3.44 8.87 8 9.8V15H8v-3h2V9.5C10 7.57 11.57 6 13.5 6H16v3h-2c-.55 0-1 .45-1 1v2h3v3h-3v6.95c5.05-.5 9-4.76 9-9.95z"}),"FacebookOutlined"),a=n(25355),s=n(15825),l=n(8204),d=n(5007),c=n(66570),u=n(90658),m=n(23848),p=n(11163);n(2784);var h=n(41664),f=n.n(h),x=n(6824),g=n(85393);let v=u._n,y=e=>{let{children:t,sx:n,provider:o,sso:i,...a}=e,s=(0,p.useRouter)(),{enqueueSnackbar:d}=(0,x.Ds)(),u=(()=>{var e;let t=s.query.from?decodeURIComponent(null===(e=s.query)||void 0===e?void 0:e.from):v;return s.pathname.startsWith("/signup")?t:"/login"!==s.pathname?s.asPath:t})();return(0,r.jsx)(l.Z,{onClick:e=>{c.c.trackClick(e),(0,m.signIn)(o,{callbackUrl:u,...i,redirect:!1}
1).catch(e=>{d("Error during social login. Please try again.",{variant:"error"}),console.error("Error during social login:",e)})},sx:{border:"none",borderRadius:1,textTransform:"none",fontSize:15,py:.5,pl:3,justifyContent:{xs:"center",md:"flex-start"},whiteSpace:"nowrap",gap:1,...n},variant:"contained",...a,children:t})},b=e=>{let{children:t}=e;return(0,r.jsx)(y,{startIcon:(0,r.jsx)(o.Z,{}),color:"google",provider:"google",fullWidth:!0,"data-event":"Login Form - Login via Google Button",children:t})},j=e=>{let{children:t}=e;return(0,r.jsx)(y,{startIcon:(0,r.jsx)(i,{}),color:"facebook",provider:"facebook",fullWidth:!0,"data-event":"Login Form - Login via Facebook Button",children:t})},Z=e=>{let{children:t}=e;return(0,r.jsx)(y,{startIcon:(0,r.jsx)(a.Z,{}),color:"linkedin",fullWidth:!0,provider:"linkedin","data-event":"Login Form - Login via Linkedin Button",children:t})},w=e=>{let{children:t}=e;return(0,r.jsx)(y,{startIcon:(0,r.jsx)(s.Z,{}),color:"apple",fullWidth:!0,provider:"apple","data-event":"Login Form - Login via Apple Button",children:t})},k=e=>{let{children:t}=e,n=(0,p.useRouter)(),o=(()=>{var e,t;let r=(null===(e=n.query)||void 0===e?void 0:e.from)?encodeURIComponent(null===(t=n.query)||void 0===t?void 0:t.from):encodeURIComponent(v);return n.pathname.startsWith("/signup"),r})();return(0,r.jsxs)(l.Z,{"data-event":"Login Form - Login via SAML",LinkComponent:f(),href:"/saml?from=".concat(o),sx:{border:"none",borderRadius:1,textTransform:"none",fontSize:15,py:.5,pl:3,justifyContent:{xs:"center",md:"flex-start"},gap:2},variant:"contained",color:"neutral",fullWidth:!0,children:[(0,r.jsx)(d.Z,{component:g.Z,fontSize:"small"}),t]})},C=e=>{let{institutionId:t,children:n,disabled:o}=e;return(0,r.jsxs)(y,{provider:"saml-jackson","data-event":"Login Form - Login via SAML","aria-label":"Log in via SAML",sso:{tenant:t,product:"openAthens-".concat(t)},color:"neutral",disabled:o,children:[(0,r.jsx)(d.Z,{component:g.Z,fontSize:"small"}),n]})}},13037:function(e,t,n){n.d(t,{s:function(){return o}});var r=n(23119);let o=(0,n(65992).ZP)(r.Z)(e=>{let{theme:t}=e;return{color:t.palette.linkblue.main,textDecoration:"none",":hover":{textDecoration:"underline",color:t.palette.linkblue.dark}}})},84307:function(e,t,n){var r=n(52322),o=n(69692),i=n(56961);n(2784),t.Z=e=>{let{children:t,sx:n,...a}=e;return(0,r.jsxs)(o.Z,{sx:{position:"relative",backgroundColor:"white",...n},...a,children:[(0,r.jsx)(i.Z,{}),(0,r.jsx)(o.Z,{px:2,sx:{position:"absolute",left:"50%",transform:"translate3d(-50%,-50%, 0)",backgroundColor:"inherit"},children:t})]})}},85610:function(e,t,n){var r=n(52322),o=n(69692),i=n(86617),a=n(15674),s=n(39935),l=n(2784),d=n(85038),c=n(8634),u=n(80343),m=n(35608);t.Z=(0,l.memo)(function(e){let{children:t,noBackground:n,noContainer:p,enableGutters:h,noFooter:f}=e,[x,g]=(0,l.useState)(25),v=(0,l.createRef)(),y=(0,r.jsx)(o.Z,{sx:{display:"flex",flexDirection:"column",flexGrow:1},component:"main",id:"main-content",tabIndex:-1,children:t});return(0,l.useEffect)(()=>{var e,t;(null===(e=v.current)||void 0===e?void 0:e.clientHeight)&&g(null===(t=v.current)||void 0===t?void 0:t.clientHeight)},[g,x,v]),(0,r.jsxs)(o.Z,{height:"100%",minHeight:"100vh",width:"100%",display:"flex",flexDirection:"column",justifyContent:"flex-start",sx:{backgroundColor:n?null:"background.default"},children:[(0,r.jsx)(d.Z,{}),(0,r.jsx)(u.Z,{}),(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(c.Z,{ref:v}),p?y:(0,r.jsx)(i.Z,{maxWidth:"lg",component:"div",sx:{px:{xs:0,sm:0,md:h?2:0},mb:{md:6}},children:y}),!f&&(0,r.jsx)(a.Z,{theme:s.D4,children:(0,r.jsx)(m.Z,{})})]})]})})}}]);
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.