1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4384],{16780:(e,n,o)=>{"use strict";o.d(n,{A:()=>f});var r=o(37876);o(14232);var a=o(10600),i=o(82365),t=o(41187),s=o(66703),l=o(15758),c=o(35883),d=o(81210),p=o(58103),u=o.n(p),g=o(28993),m=o(15584),h=o.n(m);let x=(0,g.n9)()(e=>e.custom?{headerWrapper:{backgroundColor:e.custom.HeaderBackgroundColor,padding:"0",boxShadow:"1px 0 10px rgba(0,0,0, 0.2)",color:"inherit","& .menuIcon, .closeIcon":{color:e.custom.colors.navIconColor,fill:e.custom.colors.navIconColor,fontSize:24,height:24,width:24,cursor:"pointer","& .headerAccountWrapper":{marginLeft:"auto"}},"& .headerLogo":{height:26},"&.is-mobile":{background:e.custom.AsideBackgroundColor,boxShadow:"none",borderBottom:"1px solid ".concat(h()(e.custom.AsideBackgroundColor).lighten(.2).rgb().string()),"& .headerLogo":{height:22}}},open:{backgroundColor:e.custom.AsideBackgroundColor},toolBarWrapper:{padding:"12px 24px",[e.breakpoints.up("lg")]:{paddingRight:50},[e.breakpoints.only("xs")]:{padding:24}},logo:{marginRight:15,[e.breakpoints.up("lg")]:{...e.mixins.verticalCenter,left:25,marginRight:"unset"}}}:{},{name:"Header"}),f=e=>{let{classes:n}=x(),{children:o,logo:p,logoHeight:g=26,centered:m=!1,className:h}=e,f={xs:12},w=(0,s.A)(),b=(0,t.A)(w.breakpoints.only("xs"));return m&&(f={...f,sm:10,md:8,lg:7}),(0,r.jsx)(a.A,{color:"default",position:"fixed",className:u()(n.headerWrapper,h),children:(0,r.jsx)(i.A,{className:u()(n.toolBarWrapper),children:(0,r.jsx)(c.A,{justifyContent:"center",alignItems:"center",children:(0,r.jsxs)(l.A,{...f,container:!0,alignItems:"center",children:[p&&(0,r.jsx)(d.A,{...p,height:b?22:g,className:u()(n.logo,"headerLogo")}),o]})})})})}},20944:(e,n,o)=>{"use strict";o.d(n,{A:()=>a});var r=o(37876);o(14232);let a=e=>{let{height:n=16,width:o=16}=e;return(0,r.jsx)("svg",{height:"".concat(n,"px"),viewBox:"0 0 ".concat(o," ").concat(n),width:"".concat(o,"px"),children:(0,r.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.814.164l-.707 5.073c-.051.354-.472.523-.759.303L3.973 3.754c-.135-.101-.304.067-.202.202l1.786 2.376c.22.287.05.708-.32.759l-5.073.707c-.219.034-.219.354 0 .388l5.073.708c.354.05.522.472.32.758l-1.803 2.376c-.101.135.067.303.202.202l2.376-1.787c.286-.22.708-.05.758.32l.708 5.073c.033.219.354.219.388 0l.707-5.073c.051-.354.472-.523.759-.32l2.376 1.787c.135.101.303-.067.202-.202l-1.787-2.376c-.219-.286-.05-.708.32-.758l5.073-.708c.219-.017.219-.354 0-.388l-5.073-.707c-.354-.051-.523-.472-.32-.759l1.787-2.376c.101-.135-.068-.303-.202-.202L9.65 5.557c-.286.219-.707.05-.758-.304L8.202.164C8.185.054 8.096 0 8.008 0c-.089 0-.177.055-.194.164z"})})}},27201:(e,n,o)=>{"use strict";o.d(n,{A:()=>l});var r=o(37876);o(14232);var a=o(95062),i=o.n(a);let t=(0,o(28993).n9)({name:"TwoCol"})(e=>({wrapper:{display:"flex",justifyContent:"flex-start",alignItems:"flex-start",width:"100%",flexDirection:"column",[e.breakpoints.up("md")]:{flexDirection:"row"}},aside:{backgroundColor:"#e9eaf0",position:"relative",padding:"5px 10px",height:"auto",width:"100%",[e.breakpoints.up("md")]:{padding:"15px 20px",height:"100vh",overflowY:"auto",width:"37%",minWidth:200},"& *":{color:"inherit"}},main:{padding:"5px 10px",backgroundColor:"#fff",width:"100%",minHeight:0,[e.breakpoints.up("md")]:{minHeight:"100vh",padding:"15px 20px",flex:1,width:"63%"}}})),s=e=>{let{classes:n,cx:o}=t(),{className:a,leftClassName:i,rightClassName:s,aside:l=null,main:c=null}=e,d=l.backgroundColor?{backgroundColor:l.backgroundColor}:{};l.style&&(d=l.style);let p=c.backgroundColor?{backgroundColor:c.backgroundColor}:{};return(0,r.jsxs)("div",{className:o(n.wrapper,a),children:[(0,r.jsx)("div",{className:o(n.aside,i),style:d,children:l.view}),(0,r.jsx)("div",{className:o(n.main,s),style:p,children:c.view})]})};s.propTypes={aside:i().shape({width:i().string,view:i().object.isRequired}).isRequired,main:i().shape({width:i().string,view:i().object.isRequired}).isRequired};let l=s},33210:(e,n,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/login",function(){return o(57871)}])},36508:(e,n,o)=>{"use strict";o.d(n,{A:()=>t});var r=o(37876);o(14232);var a=o(14924);let i=(0,o(28993).n9)({name:"Panel"})(e=>({root:{padding:32,borderRadius:3,boxShadow:"0 2px 6px 0 rgba(0, 0, 0, 0.1)",backgroundColor:"#fff"}})),t=e=>{let{className:n,children:o}=e,{classes:t,cx:s}=i();return(0,r.jsx)(a.A,{classes:{root:s("panel",n,t.root)},...e,children:o})}},57871:(e,n,o)=>{"use strict";o.r(n),o.d(n,{default:()=>T});
1var r=o(37876),a=o(14232),i=o(40435),t=o(73963),s=o(41177),l=o(86299),c=o(16773),d=o(50156),p=o(89099),u=o(58103),g=o.n(u),m=o(95062),h=o.n(m),x=o(45182),f=o(42569),w=o(15758),b=o(35883),y=o(36508),j=o(20944),v=o(27201),k=o(397),N=o(77858),A=o(66703),C=o(12163),W=o(16780);let I=(0,o(28993).n9)({name:"LoginViewStyles"})(e=>({loginWrapper:{maxWidth:900,"& .panel":{marginTop:12},[e.breakpoints.up("md")]:{margin:"75px 40px 0"},[e.breakpoints.up("lg")]:{margin:"75px auto 0"},[e.breakpoints.down("md")]:{padding:24}},loginWrapperDos:{maxWidth:"unset","& .intro":{marginBottom:24},backgroundColor:e.custom.colors.etherLight,outline:"3000px solid ".concat(e.custom.colors.etherLight),[e.breakpoints.up("md")]:{margin:"75px 0"},[e.breakpoints.up("lg")]:{margin:"75px 0"}},instruction:{[e.breakpoints.down("sm")]:{marginTop:15}},ssoPanel:{maxWidth:550},ssoInstruction:{marginBottom:40},appBarSpacer:{minHeight:67},formWrapper:{"& .flexLabelWrapper":{justifyContent:"space-between"},"& [data-field=submit], & .btnWrapper, .primary":{width:"100%!important"},"& [data-field=error] p":{fontWeight:"bold",color:"red"}},formWrapperDos:{padding:40,backgroundColor:"#fff",borderRadius:3},dosMessaging:{"& p":{fontSize:16,lineHeight:"1.25em"}},dosTitle:{fontSize:36,lineHeight:"1.17em",fontWeight:"bold"},createAccount:{marginTop:24,letterSpacing:"-0.46px",marginBottom:0},legalRow:{marginTop:40,display:"flex",justifyContent:"flex-start",alignItems:"center","& > div":{marginBottom:0}},legalLink:{color:"inherit","&:first-of-type":{marginLeft:"auto"}},welcome:{fontSize:36,lineHeight:"43px",letterSpacing:"-0.15px",color:e.custom.colors.welcomeText,[e.breakpoints.down("sm")]:{marginTop:15,marginBottom:15},[e.breakpoints.up("md")]:{marginTop:75}},dash:{display:"none",[e.breakpoints.up("md")]:{display:"inline-block",margin:"0 3px",visibility:"hidden"}},leftAsideInnerWrapper:{display:"flex",flexDirection:"column",justifyContent:"space-between",minHeight:"90%",padding:"0 50px",overflowX:"hidden",overflowY:"auto"},volunteer:{marginBottom:40,"& svg":{transform:"translateY(3px)"}}})),S=e=>{var n;let o,{t:i}=(0,c.useTranslation)(["common"]),l=(0,A.A)(),{spType:d,companyName:u,portalLink:m,loginLogoHeight:h,logoHeight:S}=(0,a.useContext)(t.A),[R,T]=(0,a.useState)(null),{context:_,forgotPasswordRoute:L,signUpRoute:z,dayOfService:P,registrationOrganizationName:H,forceLogin:O,signedOut:B,disableSignup:q=!1}=e;console.log("Signed Out: ".concat(B));let E=(0,p.useRouter)(),{classes:U}=I(),D=()=>L?(0,r.jsx)(f.N_,{href:L,children:i("forgotPassord","Forgot Password?")}):"",M=x.object().shape({username:x.string().ensure().trim().email().required().label(i("email-address","Email Address")),password:x.string().ensure().trim().required().label(i("password","Password"))}),Y=[{name:"username",type:"text",autocomplete:"username",label:i("email-address","Email Address"),placeholder:i("enter-your-dash-email","Enter your Dashboard email address")},{name:"password",type:"password",autocomplete:"current-password",label:i("password","Password"),afterLabel:()=>(0,r.jsx)(D,{}),placeholder:i("passwordPlaceholder","Enter password")},{type:"note",name:"error",note:R,hide:()=>!R},{type:"submit",name:"submit",label:i("signIn","Sign in"),size:"mondo",fullWidth:!0}],F=async(e,n)=>{let{setSubmitting:o}=n;try{o(!0),_&&_.authorizeUser&&await _.authorizeUser(e)}catch(e){T(e.message)}finally{o(!1)}},X=async()=>{try{let e=await s.Ay.Auth.getRedirectUrlToIdpLogin("/",d);E.push(e)}catch(e){T(e.message)}};(0,a.useEffect)(()=>{O&&!B&&X()},[O,B]);let V={validationSchema:M,data:Y,onSubmit:F,initialValues:{},className:g()(U.formWrapper,(P||H)&&U.formWrapperDos),t:i},G={spacing:0,direction:"row"};(P||H)&&(G.justifyContent="center",G.alignItems="center");let J=(0,r.jsx)(f.P,{className:U.createAccount,children:(0,r.jsxs)("strong",{children:[i("no-account-question","Don't have an account yet?")," ",(0,r.jsx)(f.N_,{href:z,children:i("create-an-account","Create an account")}
1)]})}),$=(0,r.jsxs)(f.P,{className:U.volunteer,children:[i("are-you-volunteer","Are you a volunteer?")," ",(0,r.jsxs)(f.N_,{href:m,children:[i("sign-in-here","Sign in here")," ",(0,r.jsx)(j.A,{})]})]});return o=P?(0,r.jsxs)("div",{className:g()(U.loginWrapper,P&&U.loginWrapperDos),children:[(0,r.jsx)(b.A,{className:"intro",spacing:3,direction:"row",justifyContent:"center",alignItems:"center",children:(0,r.jsx)(w.A,{xs:"12",md:"8",lg:"6",children:(0,r.jsxs)("div",{className:U.dosMessaging,children:[(0,r.jsxs)(f.H1,{className:U.dosTitle,children:[i("dosWelcomeHeader","Welcome! Start contributing to"),":",(0,r.jsx)("br",{}),P.name]}),(0,r.jsx)(f.P,{children:i("dosLoginInstructions","Get involved with {{organization}}'s Day of Service through {{companyName}}. Simply register, post your opportunities, and enjoy automated scheduling and tracking.",{organization:P.organization.name,companyName:u})}),J]})})}),(0,r.jsx)(b.A,{spacing:3,direction:"row",justifyContent:"center",alignItems:"center",children:(0,r.jsxs)(w.A,{xs:"12",md:"8",lg:"6",children:[(0,r.jsx)(N.default,{...V}),(0,r.jsxs)("div",{className:U.legalRow,children:[(0,r.jsx)(k.A,{className:U.poweredBy}),(0,r.jsx)(f.N_,{newTab:!0,href:"https://www.goldenvolunteer.com/terms-of-service",className:U.legalLink,children:i("terms","Terms")}),"\xa0&\xa0",(0,r.jsx)(f.N_,{href:"https://www.goldenvolunteer.com/privacy-policy",className:U.legalLink,newTab:!0,children:i("privacy","Privacy")}),"\xa0\xa9\xa01 Inc."]})]})})]}):H?(0,r.jsxs)("div",{className:g()(U.loginWrapper,U.loginWrapperDos),children:[(0,r.jsx)(b.A,{className:"intro",spacing:3,direction:"row",justifyContent:"center",alignItems:"center",children:(0,r.jsx)(w.A,{xs:"12",md:"8",lg:"6",children:(0,r.jsxs)("div",{className:U.dosMessaging,children:[(0,r.jsx)(f.H1,{className:U.dosTitle,children:i("claim-registration-login-welcome","Welcome! Claim your reservation from {{name}}",{name:H})}),J]})})}),(0,r.jsx)(b.A,{spacing:3,direction:"row",justifyContent:"center",alignItems:"center",children:(0,r.jsxs)(w.A,{xs:"12",md:"8",lg:"6",children:[(0,r.jsx)(N.default,{...V}),(0,r.jsxs)("div",{className:U.legalRow,children:[(0,r.jsx)(k.A,{className:U.poweredBy}),(0,r.jsx)(f.N_,{newTab:!0,href:"https://www.goldenvolunteer.com/terms-of-service",className:U.legalLink,children:i("terms","Terms")}),"\xa0&\xa0",(0,r.jsx)(f.N_,{href:"https://www.goldenvolunteer.com/privacy-policy",className:U.legalLink,newTab:!0,children:i("privacy","Privacy")}),"\xa0\xa9\xa01 Inc."]})]})})]}):O&&B?(0,r.jsx)(v.A,{aside:{backgroundColor:l.palette.tertiary.main,view:(0,r.jsx)("div",{className:U.leftAsideInnerWrapper,children:(0,r.jsx)(f.H1,{className:U.welcome,children:i("welcome-back","Welcome back!")})})},main:{view:(0,r.jsxs)("div",{className:U.loginWrapper,children:[(0,r.jsx)(f.H2,{className:U.instruction,children:i("login-instructions","Sign in to your Organizer dashboard")}),(0,r.jsxs)(y.A,{className:U.ssoPanel,children:[(0,r.jsx)(f.H3,{className:U.ssoInstruction,children:i("sso-instructions","Your organization uses single sign on for login. Click the sign in button below to initiate your sign in process.")}),(0,r.jsx)(f.$n,{fullWidth:!0,size:"mondo",variant:"primary",onClick:X,children:i("signIn","Sign in")})]})]}),backgroundColor:l.custom.colors.background}}):O?(0,r.jsx)(C.A,{}):(0,r.jsx)(v.A,{aside:{backgroundColor:l.palette.tertiary.main,view:(0,r.jsx)("div",{className:U.leftAsideInnerWrapper,children:(0,r.jsx)(f.H1,{className:U.welcome,children:i("welcome-back","Welcome back!")})})},main:{view:(0,r.jsxs)("div",{className:U.loginWrapper,children:[(0,r.jsx)(f.H2,{className:U.instruction,children:i("login-instructions","Sign in to your Organizer dashboard")}),!q&&m&&$,(0,r.jsx)(y.A,{children:(0,r.jsx)(N.default,{...V})}),!q&&J]}),backgroundColor:l.custom.colors.background}}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(W.A,{logo:{topHeaderLogo:!0},logoHeight:null!=(n=null!=h?h:S)?n:26,dashboard:!0}),(0,r.jsx)("div",{className:U.appBarSpacer}),o]})};S.propTypes={forgotPasswordRoute:h().string,Link:h().func,signUpRoute:h().string,t:h().func,context:h().object,dayOfService:h().object},S.defaultProps={Link:null,signUpRoute:"/auth/sign-up",context:null,dayOfService:null},S.getInitialProps=async()=>({namespacesRequired:["common"]});let R=()=>{var e,n,o;let p,u,{t:g}=(0,c.useTranslation)("common"),m=(0,d.rd)(),h=decodeURIComponent((null==m||null==(e=m.query)?void 0:e.origin)||""),{forceLogin:x,companyName:f,whitelabel:w,hideSignup:b}=(0,a.useContext)(t.A);(0,d.HU)(g("page-name-signin","{{companyName}} - Sign In",{companyName:f}));let y=/accept_organization_invitation/.test(h),j=/dos\/.*\/submit/.test(h);p=(null==m||null==(n=m.query)?void 0:n.dos)&&(null==m||null==(o=m.query)?void 0:o.dos)!=="true"?m.query.dos:j?h.replace(/^\/?dos\//,"").replace(/\/submit(_inner)?\/?/,""):void 0;try{h=(u=JSON.parse(sessionStorage.goldenDayOfService))?"/dos/".concat(u.id,"/submit_inner"):decodeURIComponent(h||"")}catch(e){}let[v,k]=(0,a.useState)(u);if((0,a.useEffect)(()=>
1{!v&&p&&s.Ay.publicClient().call({url:"day_of_service/".concat(p)}).then(e=>{k(e)})},[]),p&&!v)return(0,r.jsx)(i.A,{});let N=m.query.registrationOrganizationName,A=m.query.signedOut,C=0===decodeURIComponent(h||"").indexOf("/"),W=C&&"?origin=".concat(encodeURIComponent(decodeURIComponent(h)))||"",I="/auth/sign-up".concat(W);return y?I="/auth/sign-up-user".concat(W):p?C?I+="&dos=".concat(p):I+="?dos=".concat(p):N&&(I="/auth/sign-up-user".concat(W),C&&(I+="®istrationOrganizationName=".concat(N),I+="&defaultOrganizationType=company",I+="&defaultOrganizationName=".concat(m.query.defaultOrganizationName))),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(S,{t:g,context:{authorizeUser:async e=>{let{username:n,password:o}=e,r=await s.Ay.Auth.login(n,o,w);(0,l.A)(r),C?m.push(h):m.push("/",{replace:!0})}},registrationOrganizationName:N,dayOfService:v,forgotPasswordRoute:"/auth/reset-password".concat(W),signUpRoute:I,disableSignup:b,forceLogin:x,signedOut:A})})};R.getInitialProps=e=>({namespacesRequired:["common"],dos:e.query.dos}),R.isPublic=!0;let T=R},86299:(e,n,o)=>{"use strict";o.d(n,{A:()=>t});var r=o(44878),a=o(33191),i=o.n(a);let t=e=>{if(!e)throw Error("no user data received",e);let{accessToken:n}=e;if(!n)throw Error("did not receive tokens",e);i().set(r.w8,n)}}},e=>{var n=n=>e(e.s=n);e.O(0,[1316,4877,636,6593,8792],()=>(n(3821),n(33210))),_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.