(this["webpackJsonpactivity-request"]=this["webpackJsonpactivity-request"]||[]).push([[0],{129:function(e,t,a){},188:function(e,t){},189:function(e,t){},213:function(e,t,a){"use strict";a.r(t);var r=a(0),i=a.n(r),n=a(16),o=a.n(n),c=(a(129),a(15)),s=a(3),l=a(7),d=a(12),p=a(35),u=a(256),g=a(258),m=a(214),b=a(268),j=a(275),h=a(261),x=a(270),f=a(269),y=a(253),O=Object(y.a)((function(e){var t,a;return{inputLabel:{maxWidth:"400px"},otherTextBox:{maxWidth:"500px","& .MuiTypography-body1":{margin:"15px 6px 10px 0",fontFamily:"Montserrat",fontSize:"14px",fontWeight:"300",fontStretch:"normal",fontStyle:"normal",lineHeight:"normal",letterSpacing:"normal",textAlign:"left",color:"#b2b2b4"},"& .MuiOutlinedInput-multiline":{height:"65px",margin:"10px 39px 20px 0",borderRadius:"5px",width:"100%",padding:"10px"},"& .MuiFormControl-root":{width:"100%"},"& .MuiOutlinedInput-inputMultiline":{height:"100%"}},autoComplete:{"& .MuiAutocomplete-inputRoot":{flexWrap:"nowrap !important"}},icon:{"& .Mui-checked":{color:"".concat(e.palette.primary.dark," !important")},"& .MuiCheckbox-root":{color:"#dddde2"}},selectInput:{"& .MuiMenu-paper":{maxHeight:400},"& .MuiInputBase-root":{width:"100%"}},formWrapper:(t={fontFamily:"Montserrat",paddingLeft:"0px",paddingRight:"0px"},Object(s.a)(t,e.breakpoints.down("sm"),{paddingLeft:"0px",paddingRight:"0px"}),Object(s.a)(t,"& .MuiTypography-h6",{fontSize:"18px",fontStretch:"normal",fontStyle:"normal",lineHeight:"normal",letterSpacing:"normal",textAlign:"left",color:"#282828"}),t),radioBtn:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(240px, 1fr))"},helperText:{color:e.palette.error.dark,marginLeft:0},programTime:{"& .Mui-checked":{color:"".concat(e.palette.primary.dark," !important")},"& .MuiRadio-root":{color:"rgb(0,0,0,0.3)"}},required:{color:"red"},formHeader:{padding:"20px 0px","& .MuiTypography-h3":{maxWidth:"435px",fontFamily:"Montserrat",fontSize:"30px",fontWeight:"bold",fontStretch:"normal",fontStyle:"normal",lineHeight:"normal",letterSpacing:"normal",textAlign:"left",color:"#282828"},"& .MuiTypography-body1":{fontSize:"18px",fontWeight:"300",fontStretch:"normal",fontStyle:"normal",lineHeight:"normal",letterSpacing:"normal",textAlign:"left",color:"#494949"}},schoolInfo:{"& h6":{fontFamily:"Montserrat",padding:"20px 0px"},"& .MuiOutlinedInput-inputMarginDense":{padding:"4.5px 14px"},"& .MuiFormControl-root":{marginTop:"15px !important"},"& .MuiOutlinedInput-root":{maxWidth:"400px",height:"29px"}},contactInfo:{"& .MuiFormControl-root":{marginTop:"15px !important"},"& .MuiOutlinedInput-inputMarginDense":{padding:"4.5px 14px"},"& .MuiOutlinedInput-root":{maxWidth:"400px",height:"29px"}},header:(a={display:"flex",alignItems:"center",gap:"10px",marginTop:"10px"},Object(s.a)(a,e.breakpoints.down("xs"),{paddingLeft:"15px"}),Object(s.a)(a,"& h4",Object(s.a)({},e.breakpoints.down("xs"),{fontSize:"16px",marginBottom:"-10px"})),Object(s.a)(a,"& span",Object(s.a)({fontSize:"11px"},e.breakpoints.down("xs"),{fontSize:"7px"})),a),bottomField:{padding:"25px 0px","& .PrivateNotchedOutline-root-34":{border:"solid 1px #dddde2"}},textArea:{width:"100%","& .MuiInputBase-root":{maxWidth:"600px",height:"85px"}},preference:{"& .MuiTypography-caption":{fontSize:"13px !important",color:"rgb(0,0,0,0.3) !important"},padding:"30px 0px","& h6":{padding:"20px 0px"},"& ul":{paddingLeft:"0px",display:"flex",flexWrap:"wrap"},"& li":{cursor:"pointer",fontSize:"13px"}},demographics:{padding:"30px 0px","& h6":{padding:"20px 0px"},"& ul":{paddingLeft:"0px",display:"flex",flexWrap:"wrap"},"& li":{fontSize:"13px",cursor:"pointer"}},selectedEl:{backgroundColor:"#fff !important",border:"1px solid ".concat(e.palette.primary.dark," !important"),boxShadow:"0 3px 10px rgb(0 0 0 / 20%)"},list:{display:"flex",listStyle:"none",userSelect:"none","& li":{margin:"3px 10px 3px 0px",border:"1px solid #fff",background:"rgb(0,0,0,0.1)",padding:"5px",borderRadius:"5px",fontSize:"14px",fontWeight:"300",fontStretch:"normal",fontStyle:"normal",lineHeight:"normal",letterSpacing:"normal",textAlign:"center",color:"#282828"}},prevContent:{cursor:"pointer",display:"flex",alignItems:"center","& p":{fontSize:"smaller",marginLeft:"3px"}},chipsWrapper:Object(s.a)({overflowY:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar ":{width:"0px",background:"transparent"}},e.breakpoints.down("sm"),{minHeight:"60px"}),chips:{textAlign:"center",display:"flex",flexWrap:"wrap",justifyContent:"center",margin:"0px 12px",marginTop:"10px","& button":{backgroundColor:e.palette.primary.dark,paddingRight:"8px",fontWeight:"600",color:"white",margin:"5px","&:hover":{backgroundColor:e.palette.primary.dark,"& .close":{visibility:"visible"}}},"& .close":Object(s.a)({visibility:"hidden"},e.breakpoints.down("sm"),{visibility:"visible"})},chipContent:{display:"flex",gap:"11px"},sideContentHeader:{height:"calc(100% - 227px)",display:"flex",flexDirection:"column",gap:"10px","& .MuiButton-outlined":{border:"1px solid ".concat(e.palette.primary.dark)},"& .add-more":{color:e.palette.primary.dark},"& .MuiTypography-h6":{fontSize:"18px",fontStretch:"normal",fontStyle:"normal",lineHeight:"normal",letterSpacing:"normal",textAlign:"center",color:"#282828",fontFamily:"Montserrat"},"& button":{marginTop:"5px"}},mainImage:{"& img":Object(s.a)({height:"40px"},e.breakpoints.down("xs"),{height:"20px"})},lineBreak:{border:"1px solid ".concat(e.palette.primary.light)},sideContent:Object(s.a)({position:"sticky",top:"64px",backgroundColor:"#cddbcf",display:"flex",height:"calc(100vh - 64px)"},e.breakpoints.down("xs"),{height:"calc(100% - 64px)"}),innerContent:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},closeButton:{width:"100%",justifyContent:"end","& span":{justifyContent:"end"},"& svg":{top:"0px",position:"absolute",right:"-19px",fontSize:"29px"},"& .MuiButton-root":{"&:hover":{backgroundColor:"transparent"}}},sideTitle:{textAlign:"center"},submitBtn:{textAlign:"center",marginBottom:"15px","& button":{fontFamily:"Montserrat-bold",width:"100%",backgroundColor:"#fff",color:e.palette.primary.dark,lineHeight:"33px"},"& .MuiDivider-light":{backgroundColor:"#fff"},"& p":{padding:"28px 0px",fontSize:"16px",fontWeight:"300",fontStretch:"normal",fontStyle:"normal",lineHeight:"normal",letterSpacing:"normal",textAlign:"center",color:"#282828"}}}})),v=a(262),C=a(273),S=a(263),k=a(31),w=a.n(k),N=a(113),I=a(112),T=new(a.n(I).a)({apiKey:"key8T1AOTvpOdbmug"}).base("appIwH1mQpXjiUQnV"),M=Object(N.a)((function(e,t){return{activeIndex:0,activeCategory:{},errorMessage:"",selected:[],success:!1,selectedOptions:[],allSubCategories:[],inputErrorState:{schoolNameErrorState:!1,numberOfStudentsErrorState:!1,schoolStateErrorState:!1,schoolCityErrorState:!1,nameErrorState:!1,phoneNumberErrorState:!1,emailErrorState:!1,studentsServedErrorState:!1},inputDetails:{studentsServed:"",schoolName:"",numberOfStudents:"",schoolState:"",schoolCity:"",name:"",phoneNumber:"",email:"",additionalComment:"",permission:!1,radioButtonValue:""},activityTags:[],activityTypes:[],activityStates:[],setActiveIndex:function(t){return e({activeIndex:t})},setAllSubCategories:function(t){return e({allSubCategories:t})},setSelectedOptions:function(t){return e({selectedOptions:t})},setInputErrorState:function(t){return e({inputErrorState:t})},setInputDetails:function(t){return e({inputDetails:t})},setSelected:function(t){return e({selected:t})},setActiveCategory:function(t){e({activeCategory:t})},handleSelectDelete:function(a){var r=t().selected,i=r.findIndex((function(e){return e.id===a}));e({selected:[].concat(Object(d.a)(r.slice(0,i)),Object(d.a)(r.slice(i+1)))})},handleFormDataSubmit:function(t){T("Staff Activity Requests").create(t).then((function(t){e({success:!0})})).catch((function(t){e({errorMessage:t.message})}))},getActivityTypes:function(){var t=[],a=[],r=[];T("Activity Tags").select().eachPage((function(a){a.forEach((function(e){t.push({fields:e.fields,id:e.id})})),e({activityTags:t})})),T("Activity Types").select().eachPage((function(t,r){t.forEach((function(e){a.push({name:e.fields.Name,id:e.id})})),e({activityTypes:a}),r()})),T("States").select().eachPage((function(t){t.forEach((function(e){r.push({name:e.fields.Name,id:e.id})})),e({activityStates:r})}))}}})),A=a(274),F=a(271),P=a(2),W=[{id:1,title:"Grades",required:!0,options:["Pre-K","Kindergarten","1st","2nd","3rd","4th","5th","6th","7th","8th","9th","10th","11th","12th"]},{id:2,title:"Gender Restrictions",required:!1,options:["Girls Only","Boys Only"],isSingleSelect:!0},{id:3,title:"Service Types",textBoxOptions:[{optionIndex:6,optionText:"Other Service Types"}],OtherOptionText:"Other Service Types",required:!0,options:["Camps","Classes","Curriculum","Events","Workshops","Mentoring","Other"]},{id:4,title:"Timing",required:!0,options:["Before-school","After-school","During-school","Evenings","Weekends","Overnight"]},{id:5,title:"What days of the week do you want programs for?",required:!0,options:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]},{id:6,title:"Pricing Options",required:!0,options:["Free to parents","Scholarships available","Parents pay for programs"]},{id:7,title:"Special Factors",required:!1,textBoxOptions:[{optionIndex:2,optionText:"Other Special Factors"}],OtherOptionText:"Other Special Factors",options:["Virtual Programs","COVID Protections","Other"]},{id:8,title:"Does your school have a budget for after-school programs?",required:!0,options:["Yes","No","I'm not sure"],isSingleSelect:!0},{id:9,title:"How have parents and students registered for extracurricular activities at your school?",required:!0,textBoxOptions:[{optionIndex:4,optionText:"Other ways parents or students registered for extracurricular activities at your school?"},{optionIndex:1,optionText:"What software has been used to take registrations online?"}],OtherOptionText:"Other ways parents or students registered for extracurricular activities at your school? ",options:["Paper registration forms","Online registration system","Emailing a teacher or staff member","Calling the school","Other"]},{id:10,title:"What are some challenges that make it hard for students to participate in programs",required:!0,textBoxOptions:[{optionIndex:6,optionText:"Other challenges that make it hard for students to participate in programs"}],OtherOptionText:"Other challenges that make it hard for students to participate in programs",options:["Too hard to register","No easy way to know what programs are available","Submission deadlines are missed","Programs aren't affordable","Lack of transportation","Lack of interest","Other"]},{id:11,title:"Would an online directory of activities and enabling online registration increase the likelihood of students participating in enrichment programs?",required:!0,options:["Yes","No","Possibly"],isSingleSelect:!0}],B=function(){var e=O(),t=Object(c.f)(),a=M(),i=a.errorMessage,n=a.selected,o=a.selectedOptions,y=a.setSelectedOptions,k=a.inputErrorState,N=a.setInputErrorState,I=a.inputDetails,T=a.setInputDetails,B=a.handleFormDataSubmit,z=a.getActivityTypes,E=a.activityStates,H=a.success,D=a.allSubCategories,R=a.setAllSubCategories,q=a.setActiveIndex,L=a.setSelected,X=Object(r.useState)(!0),Y=Object(p.a)(X,2),G=Y[0],V=Y[1],K=Object(r.useState)({}),U=Object(p.a)(K,2),J=U[0],Q=U[1],Z=Object(r.useState)(!!i),_=Object(p.a)(Z,2),$=_[0],ee=_[1],te=E.sort((function(e,t){return e.name>t.name?1:-1}));Object(r.useEffect)((function(){var e=function(){var e=Object.keys(k).map((function(e){return k[e]})).some((function(e){return!0===e})),t=Object(l.a)({},I);delete t.additionalComment,delete t.phoneNumber;var a=Object.keys(t).map((function(e){return!!t[e]})).includes(!1);return e||a}(),t=function(){var e=W.filter((function(e){return!0===e.required})).map((function(e){return e.id})),t=o.filter((function(e){return 0!==e.optionId.length})).map((function(e){return e.formId}));return e.map((function(e){return t.includes(e)})).every((function(e){return!0===e}))}();V(!t||e)})),Object(r.useEffect)((function(){z()}),[]),Object(r.useEffect)((function(){H&&t.push("/success"),""!==i&&ee(!!i)}),[H,i]);var ae=function(e,t){var a,r=null===(a=o.find((function(t){return t.formId===e})))||void 0===a?void 0:a.optionId;return!!r&&r.includes(t)},re=function(e,t){return function(){var a=o.findIndex((function(t){return t.formId===e}));if(a>-1){var r=W.find((function(t){return t.id===e})),i=o[a],n=o.filter((function(t){return t.formId!==e}));if(r.isSingleSelect){if(r.required)y([].concat(Object(d.a)(n),[{formId:e,optionId:[t]}]));else{var c=o.find((function(t){return t.formId===e}));(null===c||void 0===c?void 0:c.optionId[0])===t?y([].concat(Object(d.a)(n),[{formId:e,optionId:[]}])):y([].concat(Object(d.a)(n),[{formId:e,optionId:[t]}]))}return}if(i.optionId.findIndex((function(e){return e===t}))>-1&&i.optionId.length>0){var s=i.optionId.filter((function(e){return e!==t}));return void y([].concat(Object(d.a)(n),[{formId:e,optionId:Object(d.a)(s)}]))}var l={formId:e,optionId:[].concat(Object(d.a)(i.optionId),[t])};y([].concat(Object(d.a)(n),[l]))}else{var p={formId:e,optionId:[t]};y([].concat(Object(d.a)(o),[p]))}}},ie=function(e){var t=e.target,a=t.name,r=t.value;switch(T(Object(l.a)(Object(l.a)({},I),{},Object(s.a)({},a,r))),"schoolName"===a&&N(Object(l.a)(Object(l.a)({},k),{},{schoolNameErrorState:!1})),a){case"schoolName":return N(Object(l.a)(Object(l.a)({},k),{},{schoolNameErrorState:!1}));case"numberOfStudents":return N(Object(l.a)(Object(l.a)({},k),{},{numberOfStudentsErrorState:!1}));case"schoolState":return N(Object(l.a)(Object(l.a)({},k),{},{schoolStateErrorState:!1}));case"schoolCity":return N(Object(l.a)(Object(l.a)({},k),{},{schoolCityErrorState:!1}));case"name":return N(Object(l.a)(Object(l.a)({},k),{},{nameErrorState:!1}));case"phoneNumber":var i=/\(?\d{3}\)?-? *\d{3}-? *-?\d{4}/.test(r);return N(Object(l.a)(Object(l.a)({},k),{},{phoneNumberErrorState:!i}));case"email":var n=/[a-zA-Z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}/.test(r);return N(Object(l.a)(Object(l.a)({},k),{},{emailErrorState:!n}));case"studentsServed":return N(Object(l.a)(Object(l.a)({},k),{},{studentsServedErrorState:!1}));default:N(Object(l.a)({},k))}},ne=function(e){var t=e.target,a=t.name,r=t.value;"schoolName"===a&&(""!==r&&N(Object(l.a)(Object(l.a)({},k),{},{schoolNameErrorState:!1})),""===r&&N(Object(l.a)(Object(l.a)({},k),{},{schoolNameErrorState:!0}))),"numberOfStudents"===a&&(""!==r&&N(Object(l.a)(Object(l.a)({},k),{},{numberOfStudentsErrorState:!1})),""===r&&N(Object(l.a)(Object(l.a)({},k),{},{numberOfStudentsErrorState:!0}))),"schoolState"===a&&(""!==r&&N(Object(l.a)(Object(l.a)({},k),{},{schoolStateErrorState:!1})),""===r&&N(Object(l.a)(Object(l.a)({},k),{},{schoolStateErrorState:!0}))),"schoolCity"===a&&(""!==r&&N(Object(l.a)(Object(l.a)({},k),{},{schoolCityErrorState:!1})),""===r&&N(Object(l.a)(Object(l.a)({},k),{},{schoolCityErrorState:!0}))),"name"===a&&(""!==r&&N(Object(l.a)(Object(l.a)({},k),{},{nameErrorState:!1})),""===r&&N(Object(l.a)(Object(l.a)({},k),{},{nameErrorState:!0}))),"phoneNumber"===a&&(""!==r&&N(Object(l.a)(Object(l.a)({},k),{},{phoneNumberErrorState:!1})),""===r&&N(Object(l.a)(Object(l.a)({},k),{},{phoneNumberErrorState:!1}))),"email"===a&&(""!==r&&N(Object(l.a)(Object(l.a)({},k),{},{emailErrorState:!1})),""===r&&N(Object(l.a)(Object(l.a)({},k),{},{emailErrorState:!0}))),"studentsServed"===a&&(""!==r&&N(Object(l.a)(Object(l.a)({},k),{},{studentsServedErrorState:!1})),""===r&&N(Object(l.a)(Object(l.a)({},k),{},{studentsServedErrorState:!0})))},oe=function(e,t){return function(){var a=n.find((function(t){return t.id===e.id})),r=a.subCategories||[],i=r.findIndex((function(e){return e.id===t.id}));if(-1!==i){var o=Object(d.a)(r);o.splice(i,1),a.subCategories=o}else a.subCategories=[].concat(Object(d.a)(r),[t]);var c=n.flatMap((function(e){return e.subCategories}));R(Object(d.a)(c));var s=n.findIndex((function(t){return t.id===e.id})),l=Object(d.a)(n);l[s]=a,L(l)}},ce=function(e){var t=e.target,a=t.name,r=t.value;Q(Object(l.a)(Object(l.a)({},J),{},Object(s.a)({},a,r)))};return Object(P.jsx)(u.a,{className:e.formWrapper,maxWidth:"xl",children:Object(P.jsxs)(g.a,{container:!0,children:[Object(P.jsx)(g.a,{xs:12,sm:12,md:10,lg:9,item:!0,children:Object(P.jsxs)(u.a,{maxWidth:"md",children:[Object(P.jsxs)("div",{onClick:function(){return t.push("/")},className:e.prevContent,children:["\u2039",Object(P.jsx)("p",{children:"Return to All Categories"})]}),Object(P.jsxs)("div",{className:e.formHeader,children:[Object(P.jsx)(m.a,{variant:"h3",children:"Program Preferences"}),Object(P.jsx)(m.a,{variant:"body1",children:"If you'd like to specify parameters for programs or providers to meet."}),Object(P.jsx)(m.a,{variant:"body1",children:"please select them below."})]}),Object(P.jsxs)("div",{className:e.schoolInfo,children:[Object(P.jsx)(m.a,{variant:"h6",children:"School Information"}),Object(P.jsxs)(g.a,{container:!0,spacing:3,children:[Object(P.jsxs)(g.a,{item:!0,xs:12,sm:12,md:6,lg:6,xl:6,children:[Object(P.jsxs)("div",{className:e.inputLabel,children:["School Name ",Object(P.jsx)("span",{className:e.required,children:"*"})]}),Object(P.jsx)(b.a,{value:I.schoolName,onChange:ie,onBlur:ne,helperText:k.schoolNameErrorState?"Please enter the school name":"",size:"small",fullWidth:!0,name:"schoolName",variant:"outlined",FormHelperTextProps:{className:e.helperText}})]}),Object(P.jsxs)(g.a,{item:!0,xs:12,sm:12,md:6,xl:6,lg:6,children:[Object(P.jsxs)("div",{className:e.inputLabel,children:["How many students are at your school ?",Object(P.jsx)("span",{className:e.required,children:"*"})]}),Object(P.jsx)(b.a,{type:"number",value:I.numberOfStudents,onChange:ie,onBlur:ne,helperText:k.numberOfStudentsErrorState?"Please enter the number of students":"",size:"small",fullWidth:!0,name:"numberOfStudents",variant:"outlined",FormHelperTextProps:{className:e.helperText}})]}),Object(P.jsxs)(g.a,{item:!0,xs:12,sm:12,md:6,xl:6,lg:6,children:[Object(P.jsxs)("div",{className:e.inputLabel,children:["School State ",Object(P.jsx)("span",{className:e.required,children:"*"})]}),Object(P.jsx)(f.a,{className:e.autoComplete,id:"schoolState",name:"schoolState",fullWidth:!0,options:te,getOptionSelected:function(e,t){return e.name===t.name},getOptionLabel:function(e){return e.name||""},style:{width:"100%"},onChange:function(e,t){if(t){var a=e.target.id.split("-")[0],r=t.id;T(Object(l.a)(Object(l.a)({},I),{},Object(s.a)({},a,r))),"schoolState"===a&&N(Object(l.a)(Object(l.a)({},k),{},{schoolStateErrorState:!1}))}},renderInput:function(t){return Object(P.jsx)(b.a,Object(l.a)(Object(l.a)({},t),{},{name:"schoolState",onBlur:ne,helperText:k.schoolStateErrorState?"Please enter the state":"",FormHelperTextProps:{className:e.helperText},label:"",variant:"outlined"}))}})]}),Object(P.jsxs)(g.a,{item:!0,xs:12,sm:12,md:6,xl:6,lg:6,children:[Object(P.jsxs)("div",{className:e.inputLabel,children:["School City ",Object(P.jsx)("span",{className:e.required,children:"*"})]}),Object(P.jsx)(b.a,{value:I.schoolCity,onChange:ie,onBlur:ne,helperText:k.schoolCityErrorState?"Please enter the school state":"",size:"small",fullWidth:!0,name:"schoolCity",variant:"outlined",FormHelperTextProps:{className:e.helperText}})]}),Object(P.jsxs)(g.a,{item:!0,xs:12,sm:12,md:6,lg:6,xl:6,children:[Object(P.jsxs)("div",{className:e.inputLabel,children:["How many students do you want to serve with after-school programs?"," ",Object(P.jsx)("span",{className:e.required,children:"*"})]}),Object(P.jsx)(b.a,{type:"number",value:I.studentsServed,onChange:ie,onBlur:ne,helperText:k.studentsServedErrorState?"Please enter this field":"",size:"small",fullWidth:!0,name:"studentsServed",variant:"outlined",FormHelperTextProps:{className:e.helperText}})]})]})]}),Object(P.jsxs)("div",{className:e.contactInfo,children:["\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0",Object(P.jsx)(m.a,{variant:"h6",children:"Contact Information"}),Object(P.jsxs)(g.a,{container:!0,spacing:3,children:[Object(P.jsxs)(g.a,{item:!0,xs:12,sm:12,md:6,lg:6,xl:6,children:["\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0",Object(P.jsxs)("div",{children:["Your Name ",Object(P.jsx)("span",{className:e.required,children:"*"})]}),Object(P.jsx)(b.a,{value:I.name,onChange:ie,onBlur:ne,helperText:k.nameErrorState?"Please enter the name":"",size:"small",fullWidth:!0,name:"name",variant:"outlined",FormHelperTextProps:{className:e.helperText}})]}),Object(P.jsxs)(g.a,{item:!0,xs:12,sm:12,md:6,lg:6,xl:6,children:["\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0",Object(P.jsx)("div",{children:"Phone Number"}),Object(P.jsx)(b.a,{value:I.phoneNumber,onChange:ie,onBlur:ne,helperText:k.phoneNumberErrorState?"Please enter correct phone number":"",size:"small",fullWidth:!0,name:"phoneNumber",variant:"outlined",FormHelperTextProps:{className:e.helperText}})]}),Object(P.jsxs)(g.a,{item:!0,xs:12,sm:12,md:6,lg:6,xl:6,children:["\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0",Object(P.jsxs)("div",{children:["Email Address ",Object(P.jsx)("span",{className:e.required,children:"*"})]}),Object(P.jsx)(b.a,{value:I.email,onChange:ie,onBlur:ne,helperText:k.emailErrorState?"Please enter correct email":"",size:"small",fullWidth:!0,name:"email",variant:"outlined",FormHelperTextProps:{className:e.helperText}})]})]})]}),Object(P.jsxs)("div",{className:e.programTime,children:["\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0",Object(P.jsxs)(m.a,{variant:"h6",children:["When do you plan to implement these programs ? ",Object(P.jsx)("span",{className:e.required,children:"*"})]}),Object(P.jsxs)(j.a,{className:e.radioBtn,row:!0,name:"program-intervals",value:I.radioButtonValue,onChange:function(e){return T(Object(l.a)(Object(l.a)({},I),{},{radioButtonValue:e.target.value}))},children:[Object(P.jsx)(h.a,{value:"ASAP",control:Object(P.jsx)(x.a,{}),label:"ASAP"}),Object(P.jsx)(h.a,{value:"Summer",control:Object(P.jsx)(x.a,{}),label:"Summer"}),Object(P.jsx)(h.a,{value:"Next Semester",control:Object(P.jsx)(x.a,{}),label:"Next Semester"}),Object(P.jsx)(h.a,{value:"Next School Year",control:Object(P.jsx)(x.a,{}),label:"Next School Year"})]})]}),Object(P.jsxs)("div",{className:e.demographics,children:[Object(P.jsx)(m.a,{variant:"h6",children:"Demographics"})," ",W.slice(0,2).map((function(t,a){return Object(P.jsxs)("div",{children:[Object(P.jsxs)(m.a,{variant:"body1",children:[t.title," ",t.required&&Object(P.jsx)("span",{className:e.required,children:"*"})," "]}),Object(P.jsx)("ul",{className:e.list,children:t.options.map((function(a,r){return Object(P.jsx)("li",{className:w()(Object(s.a)({},e.selectedEl,ae(t.id,r))),onClick:re(t.id,r),children:a},r)}))})]},a)}))]}),Object(P.jsx)(v.a,{}),Object(P.jsxs)("div",{className:e.preference,children:[Object(P.jsx)(m.a,{variant:"h6",children:" Additional Preference"}),W.slice(2,W.length).map((function(t,a){var r;return Object(P.jsxs)("div",{children:[Object(P.jsxs)(m.a,{variant:"body1",children:[t.title," ",t.required&&Object(P.jsx)("span",{className:e.required,children:"*"})," "]}),(null===t||void 0===t?void 0:t.caption)&&Object(P.jsx)(m.a,{variant:"caption",children:null===t||void 0===t?void 0:t.caption}),Object(P.jsx)("ul",{className:e.list,children:t.options.map((function(a,r){return Object(P.jsx)("li",{className:w()(Object(s.a)({},e.selectedEl,ae(t.id,r))),onClick:re(t.id,r),children:a},r)}))}),null===t||void 0===t||null===(r=t.textBoxOptions)||void 0===r?void 0:r.map((function(a,r){return function(e,t,a,r){var i,n;return!!(null===(i=o.find((function(t){return t.formId===e})))||void 0===i||null===(n=i.optionId)||void 0===n?void 0:n.includes(a))||(delete J[r],!1)}(t.id,0,a.optionIndex,a.optionText)&&Object(P.jsxs)("div",{className:e.otherTextBox,children:[Object(P.jsxs)(m.a,{variant:"body1",children:[" ",null===a||void 0===a?void 0:a.optionText," ",Object(P.jsx)("span",{className:e.required,children:"*"})," "]}),Object(P.jsx)(b.a,{onChange:ce,value:J[null===a||void 0===a?void 0:a.optionText],id:"outlined-multiline-static",multiline:!0,rows:4,name:null===a||void 0===a?void 0:a.optionText,variant:"outlined"})]},r)}))]},a)}))]}),Object(P.jsx)(v.a,{}),Object(P.jsxs)("div",{className:e.bottomField,children:[Object(P.jsx)(m.a,{variant:"body1",children:" Additional Comments and/or Request "}),Object(P.jsx)(b.a,{className:e.textArea,onChange:ie,value:I.additionalComment,id:"outlined-multiline-static",multiline:!0,rows:4,name:"additionalComment",variant:"outlined"}),Object(P.jsx)(h.a,{name:"permission",classes:{root:e.icon},onChange:function(){return T(Object(l.a)(Object(l.a)({},I),{},{permission:!I.permission}))},value:I.permission,control:Object(P.jsx)(C.a,{color:"primary"}),label:Object(P.jsxs)("p",{children:["I want AfterSchool HQ to search for programs on my organization\u2019s behalf"," ",Object(P.jsx)("span",{className:e.required,children:"*"})," "]}),labelPlacement:"end"})]})]})}),Object(P.jsx)(g.a,{className:e.sideContent,xs:12,sm:12,lg:3,md:12,item:!0,children:Object(P.jsx)(u.a,{children:Object(P.jsxs)(g.a,{className:e.innerContent,container:!0,children:[Object(P.jsxs)(g.a,{className:e.sideContentHeader,item:!0,children:[Object(P.jsx)("br",{}),Object(P.jsx)(m.a,{className:e.sideTitle,variant:"h6",children:"Here's what's on your wishlist."}),Object(P.jsx)("div",{className:e.chipsWrapper,children:Object(P.jsx)("div",{className:e.chips,children:n.map((function(t){return t.subCategories.map((function(a,r){return Object(P.jsx)(S.a,{variant:"contained",children:Object(P.jsxs)("div",{onClick:oe(t,a),className:e.chipContent,children:[Object(P.jsx)("div",{children:a.category}),Object(P.jsx)("div",{className:"close",children:"\u2a2f"})]})},r)}))}))})}),Object(P.jsx)(S.a,{className:"add-more",onClick:function(){q(0),t.push("/")},variant:"outlined",children:"+ Add More Programs"})]}),Object(P.jsxs)(g.a,{className:e.submitBtn,item:!0,children:[Object(P.jsx)(v.a,{light:!0}),Object(P.jsx)(m.a,{variant:"body1",children:"When you press Submit, our specialized team will begin curating a list of providers that we think will be a perfect match for your school."}),Object(P.jsx)(S.a,{disabled:G,onClick:function(){var e={},t=D.map((function(e){return e.id})),a=Object(d.a)(new Set(t));o.forEach((function(t){var a=t.formId,r=t.optionId,i=W.find((function(e){return e.id===a})),n=i.title,o=i.options,c=i.isSingleSelect,s=void 0!==c&&c;e[n]=s?o[r]:r.map((function(e){return o[e]}))}));var r=Object(l.a)(Object(l.a)({"Programs Desired":a,"Organization Name":I.schoolName,"Organization City":I.schoolCity,"Organization State":[I.schoolState],"Number of Students Served":+I.numberOfStudents,"Contact Name":I.name,"Contact Phone":I.phoneNumber,"Contact Email":I.email,"When do you plan to implement these programs":I.radioButtonValue,"How many students do you want to serve with after-school programs":+I.studentsServed,Notes:I.additionalComment},J),e);B(r)},variant:"contained",children:"Submit"}),Object(P.jsx)(A.a,{open:$,color:"error",autoHideDuration:3e3,onClose:function(e,t){"clickaway"!==t&&ee(!1)},children:Object(P.jsx)(F.a,{color:"error",severity:"error",children:i})})]})]})})})]})})},z=a.p+"static/media/softwareIcon.c4e98b2a.svg",E=a.p+"static/media/programsIcon.1b289514.svg",H=a.p+"static/media/fundingIcon.51666ac8.svg",D=Object(y.a)((function(e){var t,a,r;return{wrapper:{paddingLeft:"0px",paddingRight:"0px"},cards:{marginBottom:"48px"},activities:(t={justifyContent:"center"},Object(s.a)(t,e.breakpoints.down("xs"),{marginBottom:"15px"}),Object(s.a)(t,"& h5",{marginBottom:"40px",fontSize:"15px"}),Object(s.a)(t,"& h6",{fontSize:"15px",marginBottom:"10px"}),Object(s.a)(t,"& p",{fontSize:"14px"}),Object(s.a)(t,"& button",{height:"35px",width:"198px",fontWeight:"600",color:"#fff"}),Object(s.a)(t,"& a",{textDecoration:"none",color:"#fff"}),t),whatsNext:Object(s.a)({"& .MuiTypography-body1":{fontFamily:"Montserrat-italic"},marginBottom:"40px",width:"576px",textAlign:"center"},e.breakpoints.down("xs"),{width:"-webkit-fill-available"}),card:{justifyContent:"center",textAlign:"center","& img":{height:"75px",marginBottom:"10px"}},thankYou:(a={paddingTop:"30px",paddingBottom:"25px",backgroundColor:"#cddbcf",marginBottom:"35px",marginTop:"-9px"},Object(s.a)(a,e.breakpoints.down("sm"),{marginTop:"0px"}),Object(s.a)(a,"& h4",Object(s.a)({fontFamily:"Montserrat-bold",fontSize:"24px"},e.breakpoints.down("xs"),{textAlign:"center",fontSize:"19px"})),a),cardHeader:{margin:"30px"},lineBreak:{border:"1px solid ".concat(e.palette.primary.light)},mainImage:{"& img":Object(s.a)({height:"40px"},e.breakpoints.down("xs"),{height:"20px"})},header:(r={display:"flex",alignItems:"center",gap:"10px",marginTop:"10px"},Object(s.a)(r,e.breakpoints.down("xs"),{paddingLeft:"15px"}),Object(s.a)(r,"& h4",Object(s.a)({},e.breakpoints.down("xs"),{fontSize:"16px",marginBottom:"-10px"})),Object(s.a)(r,"& span",Object(s.a)({fontSize:"11px"},e.breakpoints.down("xs"),{fontSize:"7px"})),r)}})),R=[{id:1,image:z,title:"Software",detail:"We streamline scheduling, registration, payment, and communication."},{id:2,image:E,title:"Programs",detail:"We curate vetted program providers that fit the needs and aspirations of your students."},{id:3,image:H,title:"Funding",detail:"We make programs more accessible through grants, scholarships, and sponsorships."}],q=function(){var e=Object(c.f)(),t=D(),a=M().success;return Object(r.useEffect)((function(){a||e.push("/")}),[a]),Object(P.jsxs)(u.a,{className:t.wrapper,maxWidth:"xl",children:[Object(P.jsx)(g.a,{justifyContent:"center",className:t.thankYou,container:!0,children:Object(P.jsx)(m.a,{variant:"h4",children:"Thank you for submitting your request!"})}),Object(P.jsxs)(u.a,{className:t.whatsNext,children:[Object(P.jsx)(m.a,{variant:"body1",children:"What's next?"}),Object(P.jsx)(m.a,{variant:"body2",children:"Our team of dedicated education consultants will be searching our program database to find programs that match your request. We will be in touch within five business days."})]}),Object(P.jsx)(u.a,{maxWidth:"md",children:Object(P.jsxs)(g.a,{container:!0,className:t.activities,children:[Object(P.jsx)(m.a,{color:"primary",variant:"h5",children:"Need to manage existing activities?"}),Object(P.jsx)(g.a,{spacing:3,className:t.cards,container:!0,children:R.map((function(e,a){return Object(P.jsxs)(g.a,{sm:4,lg:4,xl:4,md:4,className:t.card,item:!0,children:[Object(P.jsx)("img",{src:e.image,alt:e.title}),Object(P.jsx)(m.a,{variant:"h6",children:e.title}),Object(P.jsx)(m.a,{variant:"body1",children:e.detail})]},a)}))}),Object(P.jsx)("a",{href:"https://afterschoolhq.com/signup/Welcome",children:Object(P.jsx)(S.a,{variant:"contained",color:"primary",children:"Create an Account"})})]})})]})},L=Object(y.a)((function(e){var t,a,r,i,n,o,c,l,d,p,u;return{categoriesContainer:Object(s.a)({},e.breakpoints.down("sm"),{height:"calc(100% + 100px)"}),categoriesSection:{marginBottom:"0px"},activityWrapper:Object(s.a)({fontFamily:"Montserrat",paddingLeft:"0px",paddingRight:"0px"},e.breakpoints.down("sm"),{paddingLeft:"0px",paddingRight:"0px"}),counter:Object(s.a)({display:"none"},e.breakpoints.down("sm"),{top:"5px",right:"15px",position:"absolute",backgroundColor:"#00C5A3",color:"#fff",fontSize:"16px",fontWeight:"600",width:"30px",height:"30px",borderRadius:"5px",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"1px 1px 15px 4px rgb(74 74 74 / 30%)"}),sideContainer:Object(s.a)({paddingLeft:"0px",paddingRight:"0px"},e.breakpoints.down("sm"),{width:"100vw"}),sideContantHeder:Object(s.a)({},e.breakpoints.up("sm"),{display:"none !important"}),prevContent:{color:"#b2b2b4",cursor:"pointer",display:"flex",alignItems:"center","& p":{marginLeft:"3px",fontSize:"12px",fontWeight:"300",fontStretch:"normal",fontStyle:"normal",lineHeight:"normal",letterSpacing:"normal",textAlign:"center",color:"#b2b2b4"}},mainWrapper:Object(s.a)({},e.breakpoints.down("sm"),{paddingLeft:"0px",paddingRight:"0px"}),selectedText:Object(s.a)({marginLeft:"3px"},e.breakpoints.down("sm"),{display:"none"}),checkBox2:(t={"& svg":{"& path":{fill:"#fff"}}},Object(s.a)(t,e.breakpoints.down("sm"),{width:"15px",height:"15px"}),Object(s.a)(t,"& .MuiSvgIcon-root",Object(s.a)({},e.breakpoints.down("sm"),{width:"15px",height:"15px"})),Object(s.a)(t,"backgroundColor","#fff"),Object(s.a)(t,"border","2px solid ".concat(e.palette.primary.dark)),Object(s.a)(t,"borderRadius","50%"),Object(s.a)(t,"cursor","pointer"),Object(s.a)(t,"height","23px"),Object(s.a)(t,"left","0"),Object(s.a)(t,"top","0"),Object(s.a)(t,"width","23px"),Object(s.a)(t,"&:after",{border:"2px solid #fff",borderTop:"none",borderRight:"none",content:'" "',height:"6px",left:"7px",opacity:"0",top:"8px",transform:"rotate(-45deg)",width:"12px"}),Object(s.a)(t,"& path",{color:"#fff"}),t),checkBox:(r={},Object(s.a)(r,e.breakpoints.down("sm"),{width:"15px",height:"15px"}),Object(s.a)(r,"& svg",(a={"& path":{fill:"#fff"}},Object(s.a)(a,e.breakpoints.down("sm"),{width:"15px",height:"15px"}),Object(s.a)(a,"backgroundColor",e.palette.primary.dark),Object(s.a)(a,"borderRadius","50%"),a)),Object(s.a)(r,"backgroundColor",e.palette.primary.dark),Object(s.a)(r,"border","2px solid ".concat(e.palette.primary.dark)),Object(s.a)(r,"borderRadius","50%"),Object(s.a)(r,"cursor","pointer"),Object(s.a)(r,"height","23px"),Object(s.a)(r,"left","0"),Object(s.a)(r,"top","0"),Object(s.a)(r,"width","23px"),Object(s.a)(r,"&:after",{border:"2px solid #fff",borderTop:"none",borderRight:"none",content:'" "',height:"6px",left:"7px",opacity:"0",top:"8px",transform:"rotate(-45deg)",width:"12px"}),Object(s.a)(r,"& path",{color:"#fff"}),r),chipContent:{display:"flex",gap:"5px"},chipsWrapper:(i={overflowY:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar ":{width:"0px",background:"transparent"}},Object(s.a)(i,e.breakpoints.up("sm"),{height:"calc(100% - 94px)"}),Object(s.a)(i,e.breakpoints.down("sm"),{height:"calc(100% - 61px)"}),i),chips:{textAlign:"center",display:"flex",flexWrap:"wrap",justifyContent:"center",margin:"0px 12px",marginTop:"10px","& button":{backgroundColor:e.palette.primary.dark,paddingRight:"8px",fontWeight:"600",color:"white",margin:"5px","&:hover":{backgroundColor:e.palette.primary.dark,"& .close":{visibility:"visible"}}},"& .close":Object(s.a)({visibility:"hidden"},e.breakpoints.down("sm"),{visibility:"visible"})},selected:(n={backgroundColor:e.palette.primary.dark,padding:"0px 15px",borderRadius:"5px"},Object(s.a)(n,e.breakpoints.down("sm"),{padding:"0px 10px"}),Object(s.a)(n,"& .MuiTypography-button",{fontWeight:"600"}),n),imgWraper:{position:"relative",border:"3px solid #fff"},imgBorder:{borderRadius:"8px",border:"3px solid ".concat(e.palette.primary.dark)},overlay:{borderRadius:"5px",position:"absolute",width:"100%",height:"100%",top:0,left:0,background:"rgba(0,0,0,0.7)"},active:(o={},Object(s.a)(o,e.breakpoints.down("sm"),{top:"-6px",left:"6px"}),Object(s.a)(o,"zIndex","1"),Object(s.a)(o,"position","absolute"),Object(s.a)(o,"width","100%"),Object(s.a)(o,"display","flex"),Object(s.a)(o,"justifyContent","space-between"),Object(s.a)(o,"left","10px"),Object(s.a)(o,"top","-10px"),Object(s.a)(o,"& .MuiCheckbox-root",{color:e.palette.primary.dark}),o),active2:(c={},Object(s.a)(c,e.breakpoints.down("sm"),{top:"-6px",left:"6px"}),Object(s.a)(c,"zIndex","1"),Object(s.a)(c,"position","absolute"),Object(s.a)(c,"width","100%"),Object(s.a)(c,"display","flex"),Object(s.a)(c,"justifyContent","end"),Object(s.a)(c,"left","8px"),Object(s.a)(c,"top","-11px"),Object(s.a)(c,"-webkit-justify-content","flex-end"),Object(s.a)(c,"alignItems","flex-end"),Object(s.a)(c,"-webkit-align-items","flex-end"),Object(s.a)(c,"& .MuiCheckbox-root",{color:e.palette.primary.dark}),c),cardContent:{position:"relative","& .view-sub":Object(s.a)({position:"absolute",bottom:"0",left:"calc(50% - 59px)",color:"white"},e.breakpoints.down("sm"),{fontSize:"10px",width:"117px",textAlign:"center"})},mainContentWrapper:{"& .MuiGrid-spacing-xs-3":{margin:"10px !important"}},cardHeader:(l={fontFamily:"Montserrat",margin:"30px",maxWidth:"606px"},Object(s.a)(l,e.breakpoints.down("sm"),{textAlign:"left",padding:"0px 17px",margin:"30px 0px","& h4":{fontSize:"17px",fontFamily:"Montserrat"},"& .MuiTypography-caption":{fontFamily:"Montserrat"},"& span":{fontFamily:"Montserrat",lineHeight:"1",fontWeight:"600",color:"rgb(0,0,0,0.3)"}}),Object(s.a)(l,"& .MuiTypography-h4",{fontFamily:"Montserrat",fontSize:"25px",fontWeight:"bold",fontStretch:"normal",fontStyle:"normal",lineHeight:"normal",letterSpacing:"normal",textAlign:"left",color:"#282828",marginBottom:"15px"}),Object(s.a)(l,"& .MuiTypography-caption",{fontSize:"16px",fontWeight:"normal",fontStretch:"normal",fontStyle:"normal",lineHeight:"normal",letterSpacing:"normal",textAlign:"left",color:"#494949"}),l),cardActionArea:{"& .MuiCardContent-root":{padding:"0px"}},overlayTitle:Object(s.a)({top:"50%",position:"absolute",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center",width:"fit-content",fontSize:"20px",fontWeight:"600",fontStretch:"normal",fontStyle:"normal",lineHeight:"normal",letterSpacing:"normal",color:"#fff"},e.breakpoints.down("sm"),{top:"50%",fontSize:"13px",width:"auto"}),cards:(d={background:"rgba(0,0,0,0.7)",maxHeight:"205px",borderRadius:"5px"},Object(s.a)(d,e.breakpoints.down("sm"),{height:"109px"}),Object(s.a)(d,e.breakpoints.up("md"),{height:"205px"}),d),"@keyframes slideInFromTop":{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0)"}},"@keyframes slideInFromBottom":{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0)"}},mobileBottomContent:Object(s.a)({},e.breakpoints.down("sm"),{height:"calc(100vh - 157px) !important"}),sideContent:(p={backgroundColor:"#cddbcf",display:"flex",height:"calc(100vh - 64px)"},Object(s.a)(p,e.breakpoints.up("md"),{position:"sticky",top:"64px",backgroundColor:"#cddbcf"}),Object(s.a)(p,e.breakpoints.down("sm"),{zIndex:"10",position:"fixed",bottom:"0",height:"75px"}),p),innerContent:Object(s.a)({display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},e.breakpoints.down("sm"),{height:"100%"}),preferenceBtn:Object(s.a)({textAlign:"center",marginBottom:"15px",padding:"0px 12px","& .MuiButton-label":{fontFamily:"Montserrat-semi-bold"},"& button":{width:"100%",backgroundColor:"#fff",color:e.palette.primary.dark,lineHeight:"33px"}},e.breakpoints.down("sm"),{marginTop:"15px"}),sideContentHeaderShow:Object(s.a)({},e.breakpoints.down("sm"),{display:"block !important"}),sideContentHeader:(u={height:"calc(100% - 94px)"},Object(s.a)(u,e.breakpoints.down("sm"),{display:"none"}),Object(s.a)(u,"& h6",Object(s.a)({},e.breakpoints.down("sm"),{marginTop:"20px"})),u),sideTitle:{textAlign:"center",padding:"0px 12px",fontFamily:"Montserrat"},imgBorder2:Object(s.a)({borderRadius:"7px",border:"3px solid ".concat(e.palette.primary.dark)},e.breakpoints.down("sm"),{borderRadius:"8px"}),isChecked2:{backgroundColor:"".concat(e.palette.primary.dark," !important"),"& svg":{backgroundColor:e.palette.primary.dark,borderRadius:"50%","& path":{fill:"#fff"}}},cardContent2:{position:"relative"}}})),X=a(264),Y=a(265),G=a(85),V=a.n(G),K=a(266),U=a.p+"static/media/any-government-community.1b7cfc9f.jpg",J=a.p+"static/media/any-music-program.6e5a1b8d.jpg",Q=a.p+"static/media/any-performing-arts.7543ba48.jpg",Z=a.p+"static/media/any-religious.0dcc063e.jpg",_=a.p+"static/media/any-sports-recreation.ecb299af.jpg",$=a.p+"static/media/any-technology-media.1eeb20a2.jpg",ee=a.p+"static/media/any-science-and-engineering.6830c7af.jpg",te=a.p+"static/media/any-business-finance.7dcb26ce.jpg",ae=a.p+"static/media/any-arts-crafts.e674db0a.jpg",re=a.p+"static/media/any-stem.442fe7e9.jpg",ie=a.p+"static/media/any-culture-advocacy.884e1dca.jpg",ne=a.p+"static/media/any-academic-program.136c0423.jpg",oe=a.p+"static/media/any-language-arts.1315e014.jpg",ce=(a.p,a.p+"static/media/junior-rotc.4355ec5a.jpg"),se=a.p+"static/media/law.c06012e6.jpg",le=a.p+"static/media/politics.d91015f7.jpg",de=a.p+"static/media/student-council.0bdc7fda.jpg",pe=a.p+"static/media/volunteering.266de046.jpg",ue=a.p+"static/media/band.cd42611d.jpg",ge=a.p+"static/media/choir.fe1fb2df.jpg",me=a.p+"static/media/jazz-band.d0451f6c.jpg",be=a.p+"static/media/music-production.29f4f460.jpg",je=a.p+"static/media/orchestra.e4900762.jpg",he=a.p+"static/media/song-writing.c8f65e9c.jpg",xe=a.p+"static/media/acting.771e3ad2.jpg",fe=a.p+"static/media/comedy.b7220ac5.jpg",ye=a.p+"static/media/dance.f5ca731c.jpg",Oe=a.p+"static/media/hip-hop-rap.0942c617.jpg",ve=a.p+"static/media/spoken-word.d7281998.jpg",Ce=a.p+"static/media/theatre.ab4e89e0.jpg",Se=a.p+"static/media/astrology.b1659c3c.jpg",ke=a.p+"static/media/atheism.a123f5c6.jpg",we=a.p+"static/media/buddhism.7467b958.jpg",Ne=a.p+"static/media/christianity.fc892f32.jpg",Ie=a.p+"static/media/ethics.77cc1be4.jpg",Te=a.p+"static/media/hinduism.95770bd8.jpg",Me=a.p+"static/media/islam.3f89d953.jpg",Ae=a.p+"static/media/judaism.f0706081.jpg",Fe=a.p+"static/media/philosophy.0000e197.jpg",Pe=a.p+"static/media/baseball.ffcf5f2f.jpg",We=a.p+"static/media/basketball.b1ce4cc9.jpg",Be=a.p+"static/media/bowling.02208f81.jpg",ze=a.p+"static/media/boxing.f32f0989.jpg",Ee=a.p+"static/media/cheerleading.22bf955c.jpg",He=a.p+"static/media/cross-country.5612e0a8.jpg",De=a.p+"static/media/crossfit.61b3378f.jpg",Re=a.p+"static/media/dance-team.d61ea28b.jpg",qe=a.p+"static/media/diving.7fb0f95a.jpg",Le=a.p+"static/media/football.8c456db5.jpg",Xe=a.p+"static/media/golf.1136b9ac.jpg",Ye=a.p+"static/media/gymnastics.69b6943b.jpg",Ge=a.p+"static/media/lacrosse.33b0a15d.jpg",Ve=a.p+"static/media/martial-arts.7917a7cd.jpg",Ke=a.p+"static/media/skateboarding.fa96120a.jpg",Ue=a.p+"static/media/soccer.38a71f9e.jpg",Je=a.p+"static/media/swimming.a5c5b02e.jpg",Qe=a.p+"static/media/table-tennis.24baa7dd.jpg",Ze=a.p+"static/media/track-and-field.60cf9a06.jpg",_e=a.p+"static/media/volleyball.b8e5448d.jpg",$e=a.p+"static/media/weightlifting.f07f5782.jpg",et=a.p+"static/media/wrestling.8cd8a580.jpg",tt=a.p+"static/media/architecture.c2b58bf1.jpg",at=a.p+"static/media/astronomy.40effa45.jpg",rt=a.p+"static/media/astrophysics.0a4bb132.jpg",it=a.p+"static/media/biology.81d0fdf2.jpg",nt=a.p+"static/media/chemistry.7abf7835.jpg",ot=a.p+"static/media/engineering.4b32f852.jpg",ct=a.p+"static/media/mathmatics.22cf7e60.jpg",st=a.p+"static/media/physics.7faba680.jpg",lt=a.p+"static/media/robotics-hardware-engineering.204f233d.jpg",dt=a.p+"static/media/african-cultures.43729416.jpg",pt=a.p+"static/media/asian-cultures.74f875f8.jpg",ut=a.p+"static/media/black-american-cultures.d4309bb5.jpg",gt=a.p+"static/media/diversity-and-inclusion.d5c80425.jpg",mt=a.p+"static/media/european-culture.2df2cfd0.jpg",bt=a.p+"static/media/latinx-cultures.df21e5b0.jpg",jt=a.p+"static/media/lgbtq.84a2c311.jpg",ht=a.p+"static/media/racial-equity.298a80f9.jpg",xt=a.p+"static/media/accounting.b7c50bee.jpg",ft=a.p+"static/media/business.197b8d65.jpg",yt=a.p+"static/media/economics.fb546eb4.jpg",Ot=a.p+"static/media/entrepreneurship.fd55acaa.jpg",vt=a.p+"static/media/financial-literacy.8ed5fa1a.jpg",Ct=a.p+"static/media/leadership.009445e2.jpg",St=a.p+"static/media/management.9572e79f.jpg",kt=a.p+"static/media/ceramics.d123a496.jpg",wt=a.p+"static/media/creative-writing.e5c142ae.jpg",Nt=a.p+"static/media/digital-arts-graphic-design.738a7d37.jpg",It=a.p+"static/media/fashion.3bb469b2.jpg",Tt=a.p+"static/media/film-video-production.7aec6552.jpg",Mt=a.p+"static/media/jewelry-making.585b2209.jpg",At=a.p+"static/media/painting.e11f9c47.jpg",Ft=a.p+"static/media/photography.e3d51a15.jpg",Pt=a.p+"static/media/poetry.1cd9e188.jpg",Wt=a.p+"static/media/script-writing.628728b5.jpg",Bt=a.p+"static/media/sculpting.fb6c0d4a.jpg",zt=a.p+"static/media/sewing-knirtting.38754f3e.jpg",Et=a.p+"static/media/woodworking.bacf1bed.jpg",Ht=a.p+"static/media/debate.f62f554b.jpg",Dt=a.p+"static/media/national-honor-society.18766327.jpg",Rt=a.p+"static/media/pentathalon.9e5aa3c2.jpg",qt=a.p+"static/media/speech.0309df9b.jpg",Lt=a.p+"static/media/spell-quiz-bowl.a362e83f.jpg",Xt=a.p+"static/media/tutoring.12769e14.jpg",Yt=a.p+"static/media/journalism.914b4ef5.jpg",Gt=a.p+"static/media/reading.af174e64.jpg",Vt=a.p+"static/media/any-career-and-character.b815d288.jpg",Kt=a.p+"static/media/collaboration.04b3e3ff.jpg",Ut=a.p+"static/media/communication.af8609c5.jpg",Jt=a.p+"static/media/creativity.ed5695a1.jpg",Qt=a.p+"static/media/critical-thinking.e3a51da8.jpg",Zt=a.p+"static/media/flexibility-and-resiliance.2db0ba27.jpg",_t=a.p+"static/media/initiative.fae56fc8.jpg",$t=a.p+"static/media/productivity.2de5b119.jpg",ea=a.p+"static/media/social-skills.2699129d.jpg",ta=a.p+"static/media/social-media.fb4a4f9a.jpg",aa=a.p+"static/media/ui-ux-design.5c8c2400.jpg",ra=a.p+"static/media/website-design-development.b376790d.jpg",ia=[{id:"recxmU223fDuymyU2",category:"Government & Community Programs",url:U,subCategories:[{id:"recxmU223fDuymyU2",category:"Any Government & Community Program",url:U},{id:"recQBpysQEQMDkBv8",category:"Junior ROTC",url:ce},{id:"recCboXghREBXdXe7",category:"Law",url:se},{id:"reccwmoZwPqYxmEcp",category:"Politics",url:le},{id:"recjLTt5AlFLEvE3d",category:"Student Council",url:de},{id:"recNX60VCAaU7sICM",category:"Volunteering",url:pe}]},{id:"recXCFyXTMgRIWjAj",category:"Music",url:J,subCategories:[{id:"recXCFyXTMgRIWjAj",category:"Any Music Program",url:J},{id:"reccYp3Ss4jmhkUPC",category:"Band",url:ue},{id:"recTUN1FHyNbsqaCU",category:"Choir",url:ge},{id:"rectaXCWD6trG7BmY",category:"Jazz Band",url:me},{id:"reci4anB0OYb7nFPU",category:"Music Production",url:be},{id:"rec02K4HK6yI7VeX0",category:"Orchestra",url:je},{id:"recP05jQIApez2hwB",category:"Song Writing",url:he}]},{id:"recKTuRfFxcENfj30",category:"Performing Arts",url:Q,subCategories:[{id:"recKTuRfFxcENfj30",category:"Any Performing Arts Program",url:Q},{id:"reccYp3Ss4jmhkUPC",category:"Band",url:ue},{id:"recTUN1FHyNbsqaCU",category:"Choir",url:ge},{id:"rectaXCWD6trG7BmY",category:"Jazz Band",url:me},{id:"recpM19X5fVFwswAv",category:"Acting",url:xe},{id:"rec02K4HK6yI7VeX0",category:"Orchestra",url:je},{id:"rec7yfsQ4stFkoOzj",category:"Comedy",url:fe},{id:"recQsOZWB31OA3Ibm",category:"Dance",url:ye},{id:"reci66852xkOMGcq4",category:"Hip Hop / Rap",url:Oe},{id:"reclcSZIHnGGtghoi",category:"Spoken Word",url:ve},{id:"recoNX3PFXaBDc6YF",category:"Theater",url:Ce}]},{id:"recpLoX5FqH4PCmlY",category:"Religious & Spiritual Programs",url:Z,subCategories:[{id:"recpLoX5FqH4PCmlY",category:"Any Religious And Spiritual Program",url:Z},{id:"recaXMELap4uYsNet",category:"Astrology",url:Se},{id:"recwYlvTwHtK77D58",category:"Atheism",url:ke},{id:"recPsoEHzldhXeiDW",category:"Buddhism",url:we},{id:"rec5dGVETNeRPa3zS",category:"Christianity",url:Ne},{id:"recS8M9ZC1K7QODoz",category:"Ethics",url:Ie},{id:"rectG18DJvFRaPT2k",category:"Hinduism",url:Te},{id:"recvOay1W2C43f9dU",category:"Islam",url:Me},{id:"rec5ebbD1ywPt6IaQ",category:"Judaism",url:Ae},{id:"recOvswi5H4tF4zak",category:"Philosophy",url:Fe}]},{id:"recl108dOlGi8XnLt",category:"Sports & Recreation Programs",url:_,subCategories:[{id:"recl108dOlGi8XnLt",category:"Any Sports & Recreation Program",url:_},{id:"recG3Tq3IHbQlNUOu",category:"Baseball",url:Pe},{id:"recDge66mRhOY3FoX",category:"Basketball",url:We},{id:"rec2hZ0EPx9jdWVbG",category:"Bowling",url:Be},{id:"recKzOe4Kp3uZ3sfd",category:"Boxing",url:ze},{id:"recCPL1D5xAlLRWXm",category:"Cheerleading",url:Ee},{id:"reclmGg257VqqoyrH",category:"Cross Country",url:He},{id:"recLE3QTANZkALuCR",category:"Crossfit",url:De},{id:"recvQKVmbbw58wWnf",category:"Dance Team",url:Re},{id:"recq6MLyx9F8nmMsn",category:"Diving",url:qe},{id:"rec4SYYF16Kokjjgs",category:"Football",url:Le},{id:"recquXP0HnvXDDoN2",category:"Golf",url:Xe},{id:"recff8BdidKuyZId8",category:"Gymnastics",url:Ye},{id:"recG9wIDsCLiKdwr6",category:"Lacrosse",url:Ge},{id:"recsYaTtmUSvImtY7",category:"Martial Arts",url:Ve},{id:"recuK612HRIajPdTP",category:"Skateboarding",url:Ke},{id:"recCr7Kcty5wgEH4P",category:"Soccer",url:Ue},{id:"reccMAmkeCpED83vb",category:"Swimming",url:Je},{id:"rec1fgIF1bCfQp48B",category:"Table Tennis",url:Qe},{id:"rec4TVJIX74Jh2vlQ",category:"Track & Field",url:Ze},{id:"rec0AX5jOEGdT0vz3",category:"Volleyball",url:_e},{id:"recZb81Yubh35Tmy7",category:"Weightlifting",url:$e},{id:"recPMD6W0LnxYtOv4",category:"Wrestling",url:et}]},{id:"recm4sOq6jbnX0Kzv",category:"Technology & Media",url:$,subCategories:[{id:"recm4sOq6jbnX0Kzv",category:"Any Technology & Media Program",url:$},{id:"recMRntsbiJfN9zkG",category:"Film & Video Production",url:Tt},{id:"recAJLoVGQzzmcJlD",category:"Robotics & Hardware Engineering",url:lt},{id:"recN2mKgQQVjFuq7O",category:"Social Media",url:ta},{id:"recxpukGMWKKgnyVz",category:"UX/UI Design",url:aa},{id:"recIiNWsU0wAeFurL",category:"Website Design & Development",url:ra}]},{id:"rec9c7KPaHxrXYUVq",category:"Science & Engineering",url:ee,subCategories:[{id:"rec9c7KPaHxrXYUVq",category:"Any Science & Engineering Program",url:ee},{id:"recjgNw14A10CeKYX",category:"Architecture",url:tt},{id:"reczrUW0ezuRuwdMz",category:"Astronomy",url:at},{id:"recRcdJDmYBDCR0mz",category:"Astrophysics",url:rt},{id:"recYVGWRqU7IrtVk0",category:"Biology",url:it},{id:"recbXzVYyezfKHdlw",category:"Chemistry",url:nt},{id:"recav9uNHwA6jS8SC",category:"Engineering",url:ot},{id:"recHoamI5Hbk4xqUW",category:"Mathematics",url:ct},{id:"recIpkY860PLFDDlq",category:"Physics",url:st},{id:"recAJLoVGQzzmcJlD",category:"Robotics & Hardware Engineering",url:lt}]},{id:"recqfw3pz5bcVv3Sz",category:"Cultural & Advocacy Programs",url:ie,subCategories:[{id:"recqfw3pz5bcVv3Sz",category:"Any Cultural & Advocacy Program",url:ie},{id:"rec4YCztP1YgGkFdR",category:"African Cultures",url:dt},{id:"recVhDE1JTM5vu9ef",category:"Asian Cultures",url:pt},{id:"recSsfkjBChVEc338",category:"Black American Cultures",url:ut},{id:"rec7D3Xxm7l7Ii6j7",category:"Diversity & Inclusion",url:gt},{id:"rec3W9SZbbK3a11sC",category:"European Cultures",url:mt},{id:"rec4GHBYnG5yUH5ND",category:"Latinx Cultures",url:bt},{id:"recOufPcd2MFKjgP2",category:"LGBTQ+",url:jt},{id:"rec4wk87YHBeyRyhT",category:"Racial Equity",url:ht}]},{id:"recrUYyZMlXWXhSDz",category:"Business & Finance Programs",url:te,subCategories:[{id:"recrUYyZMlXWXhSDz",category:"Any Business & Finance Program",url:te},{id:"recd5Or4itVIY4jE8",category:"Accounting",url:xt},{id:"rec5qFPwc670JbEuj",category:"Business",url:ft},{id:"rec6PaJ1kh6P243UE",category:"Entrepreneurship",url:Ot},{id:"rec8xzxRuWOSIaLlD",category:"Economics",url:yt},{id:"recp5f2oUcSZDCSHo",category:"Financial Literacy",url:vt},{id:"recC4n3Nw6jhsCTFN",category:"Leadership",url:Ct},{id:"recc6eE3xNwdTCDzB",category:"Management",url:St}]},{id:"recYXhfy9nxvxESi1",category:"Arts Programs",url:ae,subCategories:[{id:"recXKTMCMHVGtq28P",category:"Any Arts & Crafts Program",url:ae},{id:"recuWK1tSltrCWFsq",category:"Ceramics",url:kt},{id:"recttM12xBN54ei9N",category:"Creative Writing",url:wt},{id:"recmXXJdQGtcKt0PS",category:"Digital Art & Graphic Design",url:Nt},{id:"recVRtTc9bIS0vELX",category:"Fashion",url:It},{id:"recMRntsbiJfN9zkG",category:"Film & Video Production",url:Tt},{id:"recMV3p7rNjhanFdM",category:"Crafts & Jewelry Making",url:Mt},{id:"recQYgbmUjlOn8ccx",category:"Painting",url:At},{id:"recWwquSBjzSUO3oR",category:"photography",url:Ft},{id:"recggzr93g8R1jIsF",category:"Poetry",url:Pt},{id:"recTMLiOqDr99DcBx",category:"Script Writing",url:Wt},{id:"recFGgA9OJFNKCPpH",category:"Sculpting",url:Bt},{id:"recDPmdH8q3ks5VyM",category:"Sewing & Knirtting",url:zt},{id:"reccYp3Ss4jmhkUPC",category:"Band",url:ue},{id:"recTUN1FHyNbsqaCU",category:"Choir",url:ge},{id:"rectaXCWD6trG7BmY",category:"Jazz Band",url:me},{id:"reci4anB0OYb7nFPU",category:"Music Production",url:be},{id:"rec02K4HK6yI7VeX0",category:"Orchestra",url:je},{id:"recH1NYF4fEe8iPR3",category:"Woodworking",url:Et},{id:"recpM19X5fVFwswAv",category:"Acting",url:xe},{id:"rec7yfsQ4stFkoOzj",category:"Comedy",url:fe},{id:"recQsOZWB31OA3Ibm",category:"Dance",url:ye},{id:"reci66852xkOMGcq4",category:"Hip Hop / Rap",url:Oe},{id:"reclcSZIHnGGtghoi",category:"Spoken Word",url:ve},{id:"recoNX3PFXaBDc6YF",category:"Theater",url:Ce}]},{id:"rec06bCrJgBEJaAC7",category:"STEM",url:re,subCategories:[{id:"rec06bCrJgBEJaAC7",category:"Any STEM Program",url:re},{id:"recRcdJDmYBDCR0mz",category:"Astrophysics",url:rt},{id:"reczrUW0ezuRuwdMz",category:"Astronomy",url:at},{id:"recYVGWRqU7IrtVk0",category:"Biology",url:it},{id:"recbXzVYyezfKHdlw",category:"Chemistry",url:nt},{id:"recav9uNHwA6jS8SC",category:"Engineering",url:ot},{id:"recMRntsbiJfN9zkG",category:"Film & Video Production",url:Tt},{id:"recp5f2oUcSZDCSHo",category:"Financial Literacy",url:vt},{id:"recHoamI5Hbk4xqUW",category:"Mathematics",url:ct},{id:"recIpkY860PLFDDlq",category:"Physics",url:st},{id:"recAJLoVGQzzmcJlD",category:"Robotics & Hardware Engineering",url:lt},{id:"recxpukGMWKKgnyVz",category:"UI/UX Design",url:aa},{id:"recIiNWsU0wAeFurL",category:"Website Design & Development",url:ra}]},{id:"rec3GzZazLMXl55vJ",category:"Academic Programs",url:ne,subCategories:[{id:"rec3GzZazLMXl55vJ",category:"Any Academic Program",url:ne},{id:"recmfeigYIuTcJi57",category:"Debate",url:Ht},{id:"recJnQdPpjZuPEleT",category:"National Honor Society",url:Dt},{id:"recohycODFGqsBWdO",category:"Pentathalon",url:Rt},{id:"recje2DiXbvfUH8tM",category:"Speech",url:qt},{id:"rec2wXi7NmPkiJjBC",category:"Tutoring",url:Xt},{id:"recS8M9ZC1K7QODoz",category:"Ethics",url:Ie},{id:"reciXYPt5y7OL41zy",category:"Spell & Quiz Bowls",url:Lt},{id:"recOvswi5H4tF4zak",category:"Philosophy",url:Fe}]},{id:"recx8l6NmwVxvuB5n",category:"Language Arts",url:oe,subCategories:[{id:"recx8l6NmwVxvuB5n",category:"Any Language Arts Program",url:oe},{id:"recggzr93g8R1jIsF",category:"Poetry",url:Pt},{id:"recP05jQIApez2hwB",category:"Song Writing",url:he},{id:"recttM12xBN54ei9N",category:"Creative Writing",url:wt},{id:"recTMLiOqDr99DcBx",category:"Script Writing",url:Wt},{id:"reclC5puPfFtp8tyJ",category:"Journalism",url:Yt},{id:"rec6R1IfiPLHkkqHb",category:"Reading",url:Gt}]},{id:"recXKTMCMHVGtq28P",category:"Arts & Crafts",url:ae,subCategories:[{id:"recXKTMCMHVGtq28P",category:"Any Arts & Crafts Program",url:ae},{id:"recbLn8Pd2siFQeL5",category:"Blacksmithing",url:a.p+"static/media/blacksmithing.2ecb8337.jpg"},{id:"recuWK1tSltrCWFsq",category:"Ceramics",url:kt},{id:"recmXXJdQGtcKt0PS",category:"Digital Art & Graphic Design",url:Nt},{id:"recVRtTc9bIS0vELX",category:"Fashion",url:It},{id:"recWwquSBjzSUO3oR",category:"Photography",url:Ft},{id:"recQYgbmUjlOn8ccx",category:"Painting",url:At},{id:"recFGgA9OJFNKCPpH",category:"Sculpting",url:Bt},{id:"recDPmdH8q3ks5VyM",category:"Sewing & Knitting",url:zt},{id:"recxpukGMWKKgnyVz",category:"UI/UX Design",url:aa},{id:"recH1NYF4fEe8iPR3",category:"Woodworking",url:Et}]},{id:"recYih6TraD86fqi7",category:"Career & Character",url:Vt,subCategories:[{id:"recYih6TraD86fqi7",category:"Any Career & Character Program",url:Vt},{id:"recMoxaVYwypIWmzE",category:"Collaboration",url:Kt},{id:"rec7XDP0ehOP5taJP",category:"Communication",url:Ut},{id:"recjRW6oLORWXecCY",category:"Creativity",url:Jt},{id:"recYtD53TfBCCGW8M",category:"Critical Thinking",url:Qt},{id:"recrZMtTjYvmjRGf1",category:"Flexibility & Resiliance",url:Zt},{id:"recMsrgLihr4rIRXk",category:"Initiative",url:_t},{id:"recBYR9MLgaX4LCsS",category:"Productivity",url:$t},{id:"rec7jhL11R72bjmIw",category:"Social Skills",url:ea},{id:"recC4n3Nw6jhsCTFN",category:"Leadership",url:Ct}]}],na=a.p+"static/media/IconlyCurvedArrowLeft.a0576bb2.svg",oa=a(272),ca=function(e){var t,a=e.selected,i=e.activeCategory,n=e.handleSelection,o=M(),b=o.setAllSubCategories,j=o.setSelected,h=o.activeIndex,x=o.setActiveIndex,f=Object(r.useState)(!1),y=Object(p.a)(f,2),O=y[0],v=y[1],C=L(),k=Object(c.f)(),N=function(e){if(0===h)return!!a.find((function(t){return t.id===e}));var t=a.find((function(e){return e.id===(null===i||void 0===i?void 0:i.id)}));return!!t&&!!(t.subCategories||[]).find((function(t){return t.id===e}))},I=function(e,t){return function(){var r=a.find((function(t){return t.id===e.id})),i=r.subCategories||[],n=i.findIndex((function(e){return e.id===t.id}));if(-1!==n){var o=Object(d.a)(i);o.splice(n,1),r.subCategories=o}else r.subCategories=[].concat(Object(d.a)(i),[t]);var c=a.flatMap((function(e){return e.subCategories}));b(Object(d.a)(c));var s=a.findIndex((function(t){return t.id===e.id})),l=Object(d.a)(a);l[s]=r,j(l)}},T=a.flatMap((function(e){return e.subCategories})).length;return Object(P.jsx)(u.a,{className:C.activityWrapper,maxWidth:"xl",children:Object(P.jsxs)(g.a,{container:!0,children:[Object(P.jsx)(g.a,{md:10,item:!0,children:Object(P.jsxs)(g.a,{className:C.upperContainerMobile,container:!0,children:[0!==T&&Object(P.jsx)("div",{onClick:function(){return v(!O)},className:C.counter,children:T}),Object(P.jsxs)(g.a,{container:!0,children:[0===h&&Object(P.jsxs)(g.a,{item:!0,className:C.cardHeader,children:[Object(P.jsx)(m.a,{variant:"h4",children:"Request local programs for your school."}),Object(P.jsx)(m.a,{variant:"caption",children:"Click on a category to see additional options - we'll keep track of your list for you in the sidebar."})]}),1===h&&Object(P.jsxs)(g.a,{item:!0,className:C.cardHeader,children:[Object(P.jsxs)("div",{onClick:function(){return x(0)},className:C.prevContent,children:[Object(P.jsx)("img",{alt:"arrow",src:na}),Object(P.jsx)("p",{children:"Return to All Categories"})]}),Object(P.jsx)(m.a,{variant:"h4",children:i.category}),Object(P.jsx)(m.a,{variant:"caption",children:"Select as many sub-categories as you'd like."})]})]}),Object(P.jsx)(g.a,{item:!0,children:Object(P.jsxs)(u.a,{className:C.categoriesContainer,maxWidth:"xl",children:[0===h&&Object(P.jsx)(oa.a,{in:0===h,children:Object(P.jsx)(g.a,{className:C.categoriesSection,spacing:3,container:!0,children:ia.map((function(e,t){return Object(P.jsx)(g.a,{onClick:n(e),className:C.cardActionArea,xs:6,md:4,item:!0,children:Object(P.jsx)(X.a,{children:Object(P.jsxs)(Y.a,{className:C.cardContent,children:[N(e.id)&&0!==a.find((function(t){return t.id===e.id})).subCategories.length&&Object(P.jsxs)("div",{className:C.active,children:[Object(P.jsx)("div",{}),Object(P.jsx)("div",{className:C.selected,children:Object(P.jsxs)(m.a,{style:{color:"#fff"},variant:"button",children:[a.find((function(t){return t.id===e.id})).subCategories.length," ",Object(P.jsx)("span",{className:C.selectedText,children:"Selected"})]})}),Object(P.jsx)("div",{onClick:function(t){return function(e,t){if(t.stopPropagation(),0===h){var r=a.findIndex((function(t){return t.id===e.id}));if(-1!==r){var i=Object(d.a)(a);i.splice(r,1),j(Object(d.a)(i)),x(0);var n=i.flatMap((function(e){return e.subCategories}));b(Object(d.a)(n))}else j([].concat(Object(d.a)(a),[Object(l.a)(Object(l.a)({},e),{},{subCategories:[]})])),x(0)}}(e,t)},className:C.checkBox,children:Object(P.jsx)(V.a,{})})]}),Object(P.jsxs)("div",{className:w()(C.imgWraper,Object(s.a)({},C.imgBorder,N(e.id)&&0!==a.find((function(t){return t.id===e.id})).subCategories.length)),children:[Object(P.jsx)("div",{className:C.overlay}),Object(P.jsx)(K.a,{className:C.cards,component:"img",alt:"image",image:e.url}),Object(P.jsx)(m.a,{className:C.overlayTitle,gutterBottom:!0,variant:"h6",component:"h2",children:e.category})]})]})})},t)}))})}),1===h&&Object(P.jsx)(oa.a,{in:1===h,children:Object(P.jsx)(g.a,{className:C.categoriesSection,spacing:3,container:!0,children:null===i||void 0===i||null===(t=i.subCategories)||void 0===t?void 0:t.map((function(e,t){return Object(P.jsx)(g.a,{onClick:n(e),className:C.cardActionArea,xs:6,md:4,item:!0,children:Object(P.jsx)(X.a,{children:Object(P.jsxs)(Y.a,{className:C.cardContent2,children:[Object(P.jsx)("div",{className:C.active2,children:Object(P.jsx)("div",{children:Object(P.jsx)("div",{className:w()(C.checkBox2,Object(s.a)({},C.isChecked2,N(e.id))),children:Object(P.jsx)(V.a,{})})})}),Object(P.jsxs)("div",{className:w()(C.imgWraper,Object(s.a)({},C.imgBorder2,N(e.id))),children:[Object(P.jsx)("div",{className:C.overlay}),Object(P.jsx)(K.a,{className:C.cards,component:"img",alt:"image",image:e.url}),Object(P.jsx)(m.a,{className:C.overlayTitle,gutterBottom:!0,variant:"h6",component:"h2",children:e.category})]})]})})},t)}))})})]})})]})}),Object(P.jsx)(g.a,{className:w()(C.sideContent,Object(s.a)({},C.mobileBottomContent,O)),xs:12,sm:12,md:2,item:!0,children:Object(P.jsx)(u.a,{className:C.sideContainer,children:Object(P.jsxs)(g.a,{className:C.innerContent,container:!0,children:[Object(P.jsxs)(g.a,{className:w()(C.sideContentHeader,Object(s.a)({},C.sideContentHeaderShow,O)),item:!0,children:[Object(P.jsx)("br",{}),Object(P.jsx)(m.a,{className:C.sideTitle,variant:"h6",children:"Find the perfect activities for your students"}),Object(P.jsx)("div",{className:C.chipsWrapper,children:Object(P.jsx)("div",{className:C.chips,children:a.map((function(e){return e.subCategories.map((function(t,a){return Object(P.jsx)(S.a,{variant:"contained",children:Object(P.jsxs)("div",{onClick:I(e,t),className:C.chipContent,children:[Object(P.jsx)("div",{children:t.category}),Object(P.jsx)("div",{className:"close",children:"\u2a2f"})]})},a)}))}))})})]}),Object(P.jsx)(g.a,{className:C.preferenceBtn,item:!0,children:Object(P.jsx)(S.a,{onClick:function(){return k.push("/program-form")},variant:"contained",children:"Continue to Preferences"})})]})})})]})})},sa=function(){var e=M(),t=e.selected,a=e.setSelected,r=e.setAllSubCategories,i=e.activeCategory,n=e.setActiveCategory,o=e.activeIndex,c=e.setActiveIndex;return Object(P.jsx)(ca,{selected:t,activeCategory:i,activeIndex:o,setActiveIndex:c,handleSelection:function(e){var s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(){if(0!==o||s){var p=t.find((function(e){return e.id===i.id})),u=p.subCategories||[],g=u.findIndex((function(t){return t.id===e.id}));if(-1!==g){var m=Object(d.a)(u);m.splice(g,1),p.subCategories=m}else p.subCategories=[].concat(Object(d.a)(u),[e]);var b=t.flatMap((function(e){return e.subCategories}));r(Object(d.a)(b));var j=t.findIndex((function(e){return e.id===i.id})),h=Object(d.a)(t);h[j]=p,a(h)}else{var x;if(0===(null===(x=e.subCategories)||void 0===x?void 0:x.length))return;var f=t.findIndex((function(t){return t.id===e.id}));if(-1!==f&&s){var y=Object(d.a)(t);y.splice(f,1),a(Object(d.a)(y)),c(0);var O=y.flatMap((function(e){return e.subCategories}));r(Object(d.a)(O))}else a([].concat(Object(d.a)(t),[Object(l.a)(Object(l.a)({},e),{},{subCategories:[]})])),n(e),c(1)}}}})},la=Object(y.a)((function(e){var t,a;return{headerWrapper:(t={},Object(s.a)(t,e.breakpoints.up("md"),{position:"sticky",top:"0",background:"#fff",width:"100%",zIndex:"999",paddingLeft:"0px",paddingRight:"0px"}),Object(s.a)(t,e.breakpoints.down("sm"),{paddingLeft:"0px",paddingRight:"0px"}),t),mainImage:{"& img":Object(s.a)({height:"44px",marginLeft:"22px"},e.breakpoints.down("sm"),{marginLeft:"0px",height:"22px"})},header:(a={display:"flex",alignItems:"center",gap:"10px",paddingTop:"10px",paddingBottom:"4px"},Object(s.a)(a,e.breakpoints.down("sm"),{paddingLeft:"15px",paddingBottom:"5px"}),Object(s.a)(a,"& h4",Object(s.a)({},e.breakpoints.down("sm"),{fontSize:"16px",marginBottom:"-10px"})),Object(s.a)(a,"& span",Object(s.a)({fontSize:"11px"},e.breakpoints.down("sm"),{fontSize:"7px"})),a),lineBreak:{margin:"0",border:"1px solid ".concat(e.palette.primary.light)}}})),da=function(){var e=la();return Object(P.jsx)(u.a,{className:e.headerWrapper,maxWidth:"xl",children:Object(P.jsxs)("div",{children:[Object(P.jsx)(g.a,{container:!0,justifyContent:"flex-start",className:e.header,children:Object(P.jsx)("div",{className:e.mainImage,children:Object(P.jsx)("img",{alt:"afterSchool logo",src:"/ahq-logo-2.png"})})}),Object(P.jsx)("hr",{className:e.lineBreak})]})})},pa=function(e){var t=e.Component;return Object(P.jsxs)(P.Fragment,{children:[Object(P.jsx)(da,{}),Object(P.jsx)(t,{})]})},ua=function(){var e=function(e){return function(){return Object(P.jsx)(pa,{Component:e})}};return Object(P.jsx)(P.Fragment,{children:Object(P.jsxs)(c.c,{children:[Object(P.jsx)(c.a,{path:"/",exact:!0,component:e(sa)}),Object(P.jsx)(c.a,{path:"/program-form",exact:!0,component:e(B)}),Object(P.jsx)(c.a,{path:"/success",exact:!0,component:e(q)})]})})},ga=function(e){e&&e instanceof Function&&a.e(3).then(a.bind(null,276)).then((function(t){var a=t.getCLS,r=t.getFID,i=t.getFCP,n=t.getLCP,o=t.getTTFB;a(e),r(e),i(e),n(e),o(e)}))},ma=a(60),ba=a(267),ja=a(115),ha=Object(ja.a)({palette:{primary:{light:"#C3EAE0",main:"#00AE85",dark:"#00C5A3"},secondary:{main:"#00517C"},error:{light:"#FFC6C6",main:"#FF9797",dark:"#FF7070"},warning:{light:"#FEEAD2",main:"#FFCB8B",dark:"#FFAD49"},info:{light:"#B5E5FF",main:"#60C8FF",dark:"#06A6FB"},success:{light:"#82E3D2",main:"#00C5A3",dark:"#00C5A3"},text:{primary:"#282828",secondary:"#494949",hint:"#B2B2B4",disabled:"#F2F2F5"}},typography:{fontFamily:"Montserrat",h1:{fontFamily:"Montserrat",fontWeight:700,fontSize:44,lineHeight:1.3},h2:{fontFamily:"Montserrat",fontWeight:700,fontSize:36,lineHeight:1.3},h3:{fontFamily:"Montserrat",fontWeight:700,fontSize:28,lineHeight:1.3},h4:{fontFamily:"Montserrat",fontWeight:700,fontSize:24,lineHeight:1.3},h5:{fontFamily:"Montserrat",fontWeight:700,fontSize:20,lineHeight:1.3},h6:{fontFamily:"Montserrat",fontWeight:700,fontSize:16,lineHeight:1.3},subtitle1:{fontFamily:"Montserrat",fontSize:22,lineHeight:1.5},body1:{fontFamily:"Montserrat"},body2:{fontFamily:"Montserrat"},button:{textTransform:"none"}}});o.a.render(Object(P.jsx)(ba.a,{theme:ha,children:Object(P.jsx)(ma.a,{children:Object(P.jsx)(i.a.StrictMode,{children:Object(P.jsx)(ua,{})})})}),document.getElementById("root")),ga()}},[[213,1,2]]]); //# sourceMappingURL=main.b1958c66.chunk.js.map