(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8510],{9570:function(e,t,n){"use strict";var a=n(87462),i=n(45987),r=n(67294),o=n(86010),s=n(14670),d=n(59693),c=n(93871),l=n(56608),u=r.forwardRef((function(e,t){var n=e.classes,s=e.className,d=e.color,u=void 0===d?"secondary":d,p=e.edge,m=void 0!==p&&p,g=e.size,h=void 0===g?"medium":g,f=(0,i.Z)(e,["classes","className","color","edge","size"]),x=r.createElement("span",{className:n.thumb});return r.createElement("span",{className:(0,o.Z)(n.root,s,{start:n.edgeStart,end:n.edgeEnd}[m],"small"===h&&n["size".concat((0,c.Z)(h))])},r.createElement(l.Z,(0,a.Z)({type:"checkbox",icon:x,checkedIcon:x,classes:{root:(0,o.Z)(n.switchBase,n["color".concat((0,c.Z)(u))]),input:n.input,checked:n.checked,disabled:n.disabled},ref:t},f)),r.createElement("span",{className:n.track}))}));t.Z=(0,s.Z)((function(e){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(20px)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,d.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,d.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4,"&$checked":{transform:"translateX(16px)"}}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})(u)},64566:function(e,t,n){"use strict";var a=n(64836),i=n(75263);t.Z=void 0;var r=i(n(67294)),o=(0,a(n(2108)).default)(r.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.Z=o},18362:function(e,t,n){"use strict";var a=n(64836),i=n(75263);t.Z=void 0;var r=i(n(67294)),o=(0,a(n(2108)).default)(r.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");t.Z=o},45432:function(e,t,n){"use strict";var a=n(64836),i=n(75263);t.Z=void 0;var r=i(n(67294)),o=(0,a(n(2108)).default)(r.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");t.Z=o},21727:function(e,t,n){"use strict";var a=n(64836),i=n(75263);t.Z=void 0;var r=i(n(67294)),o=(0,a(n(2108)).default)(r.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");t.Z=o},28818:function(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CLASS_LIST"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"path"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kaptestClassSearch"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"rest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"StringValue",value:"KaptestClassSearchPayload",block:!1}},{kind:"Argument",name:{kind:"Name",value:"path"},value:{kind:"Variable",name:{kind:"Name",value:"path"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kaptestClassSearch"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"type"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"KaptestClassSearch",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kaptestClassList"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"type"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"KaptestClassList",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessUnit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"promoInstallmentPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"listInstallmentPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"saleInstallmentPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shoppingCartURL"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"listPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"salePrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"programCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"eventType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"promoPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"notes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"examDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discountPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"listInstallmentPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"className"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"classId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"trialClassId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"liveOnlineClass"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"liveOnlineClass"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"classStartDateTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"classEndDateTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"classCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deliveryType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"testDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"teacherId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"daysOfWeek"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"firstSessionDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"closingDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"facility"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"type"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"Facility",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"zip"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"distance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address1"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"latitude"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"longitude"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dayTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"affirmEligible"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"affirm"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"COURSE_DETAIL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"path"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kaptestCourseDetailSearch"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"rest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"StringValue",value:"KaptestCourseDetailPayload",block:!1}},{kind:"Argument",name:{kind:"Name",value:"path"},value:{kind:"Variable",name:{kind:"Name",value:"path"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"notes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"classId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"classCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"className"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"noWeb"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"trialClassId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subscriptionProduct"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"salePrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"promoPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"listPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"promoInstallmentPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discountPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"listInstallmentPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"promo"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"liveOnlineClass"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dayTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shoppingCartURL"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"firstSessionDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"closingDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deliveryType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"eventType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"teacherId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"examDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"daysOfWeek"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"classStartDateTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"classEndDateTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dayTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"programCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"courseSessions"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"type"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"CourseSessions",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"facilityId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sessionName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sessionType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sessionId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"roomName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startDate"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"facility"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"type"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"Facility",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"zip"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"distance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address1"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"latitude"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"longitude"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dayTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"affirmEligible"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"affirm"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:2977}};t.loc.source={body:'query CLASS_LIST($path: String) {\n kaptestClassSearch @rest(type: "KaptestClassSearchPayload", path: $path) {\n kaptestClassSearch @type(name: "KaptestClassSearch") {\n kaptestClassList @type(name: "KaptestClassList") {\n businessUnit\n promoInstallmentPrice\n listInstallmentPrice\n saleInstallmentPrice\n shoppingCartURL\n listPrice\n salePrice\n programCode\n eventType\n promoPrice\n currency\n status\n notes\n examDate\n discountPrice\n listInstallmentPrice\n className\n classId\n trialClassId\n liveOnlineClass\n endDate\n liveOnlineClass\n classStartDateTime\n classEndDateTime\n productId\n classCode\n deliveryType\n startDate\n testDate\n teacherId\n daysOfWeek\n firstSessionDate\n closingDate\n facility @type(name: "Facility") {\n zip\n distance\n address2\n city\n address1\n latitude\n name\n id\n state\n longitude\n }\n dayTime\n affirmEligible\n affirm\n }\n }\n }\n}\n\nquery COURSE_DETAIL($path: String) {\n kaptestCourseDetailSearch @rest(type: "KaptestCourseDetailPayload", path: $path) {\n notes\n classId\n classCode\n className\n noWeb\n trialClassId\n subscriptionProduct\n salePrice\n promoPrice\n listPrice\n promoInstallmentPrice\n discountPrice\n listInstallmentPrice\n promo\n currency\n liveOnlineClass\n dayTime\n productId\n shoppingCartURL\n endDate\n status\n firstSessionDate\n closingDate\n deliveryType\n eventType\n teacherId\n examDate\n daysOfWeek\n startDate\n endDate\n classStartDateTime\n classEndDateTime\n dayTime\n programCode\n courseSessions @type(name: "CourseSessions") {\n facilityId\n sessionName\n sessionType\n startTime\n endTime\n sessionId\n roomName\n startDate\n }\n facility @type(name: "Facility") {\n zip\n distance\n address2\n city\n address1\n latitude\n name\n id\n state\n longitude\n }\n dayTime\n affirmEligible\n affirm\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&t.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var a={};function i(e,t){for(var n=0;n0;){var d=s;s=new Set,d.forEach((function(e){o.has(e)||(o.add(e),(a[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var a=i(e,t);a&&n.definitions.push(a)})),n}t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),a[e.name.value]=t}})),e.exports=t,e.exports.CLASS_LIST=r(t,"CLASS_LIST"),e.exports.COURSE_DETAIL=r(t,"COURSE_DETAIL")},75150:function(e,t,n){"use strict";n.d(t,{Z:function(){return D}});var a=n(80318),i=n(92809),r=n(67294),o=n(27361),s=n.n(o),d=n(86010),c=n(41609),l=n.n(c),u=n(58885),p=n(46409),m=n(69713),g=n(25838),h=n(68751),f=n(99956),x=n(41120),v=n(52663),b=n(17812),k=n(80366),y=n(60424),S=n(85893),Z=(0,x.Z)((function(e){return{root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]},helpIcon:{cursor:"pointer",marginLeft:e.spacing(.5)}}}));function j(e){var t=e.tip,n=Z(),i=r.useState(!1),o=(0,a.Z)(i,2),s=o[0],d=o[1],c=function(){d(!1)};return(0,S.jsxs)("span",{children:[(0,S.jsx)(y.Z,{onClick:function(){d(!0)},color:"primary",classes:{root:n.helpIcon}}),(0,S.jsxs)(v.Z,{onClose:c,"aria-labelledby":"customized-dialog-title",open:s,maxWidth:"md",children:[(0,S.jsx)(b.Z,{"aria-label":"close",className:n.closeButton,onClick:c,children:(0,S.jsx)(k.Z,{})}),t&&(0,S.jsx)(f.Z,{p:3,children:(0,S.jsx)(h.Z,{render:t})})]})]})}var C=n(42761),M=n(282),N=n(22318),P=n(13258),w=n(74619);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function F(e){for(var t=1;t div":{boxShadow:"".concat((0,r.Fq)(e.palette.form.focusColor,1)," inset 0 0 0 1px"),border:"1px solid"+e.palette.form.focusColor,borderRadius:4}},input:{fontSize:x()(e,"typography.form.input.fontSize"),lineHeight:x()(e,"typography.form.input.lineHeight"),borderRadius:4,position:"relative",backgroundColor:x()(e,"palette.form.inputBgColor","transparent"),border:"1px solid",width:"100%",padding:e.spacing(1.5),transition:e.transitions.create(["border-color","box-shadow"]),"&:focus":{boxShadow:"".concat((0,r.Fq)(e.palette.form.focusColor,1)," inset 0 0 0 1px"),border:"1px solid"+e.palette.form.focusColor,borderRadius:4}},error:{"& .MuiInput-input":{boxShadow:"".concat((0,r.Fq)(e.palette.error.main,1)," inset 0 0 0 1px"),border:"1px solid"+e.palette.error.main}}}}))(d.Z),S=(0,i.Z)((function(e){return{root:{padding:e.spacing(1.3),"&:focus":{boxShadow:"".concat((0,r.Fq)(e.palette.form.focusColor,1)," inset 0 0 0 1px"),border:"1px solid"+e.palette.form.focusColor,borderRadius:4,backgroundColor:x()(e,"palette.form.inputBgColor","transparent")}},select:{borderRadius:4,width:"100%"},icon:{color:e.palette.text.primary,marginRight:10,top:"calc(50% - 9px)"}}}))(c.Z),Z=function(){var e=(0,v.Z)();return{anchorOrigin:{vertical:"bottom",horizontal:"left"},getContentAnchorEl:null,transitionDuration:100,PaperProps:{style:{maxHeight:250,marginTop:-2,marginLeft:1,marginRight:0,borderBottomRightRadius:4,borderTopRightRadius:0,borderTopLeftRadius:0,borderBottomLeftRadius:4,boxShadow:"".concat(x()(e,"palette.form.focusColor")," inset 0 0px 0 2px")}}}},j=(0,i.Z)((function(e){return{popper:{position:"absolute",top:e.spacing(4.4),boxShadow:"none",zIndex:100,"& .MuiPaper-root":{marginRight:-2,borderBottomRightRadius:4,borderTopRightRadius:0,borderTopLeftRadius:0,borderBottomLeftRadius:4,boxShadow:"".concat((0,r.Fq)(e.palette.form.focusColor,1)," inset 0 0px 0 2px")}},noOptions:{color:e.palette.text.primary}}}))(h.ZP),C=(0,i.Z)((function(e){return{root:{margin:0,borderRadius:4,position:"relative",backgroundColor:x()(e,"palette.form.inputBgColor","transparent"),width:"100%",zIndex:1,"& .MuiInputBase-root":{"& input":{fontSize:x()(e,"typography.form.input.fontSize"),lineHeight:x()(e,"typography.form.input.lineHeight")},border:"1px solid",transition:e.transitions.create(["border-color","box-shadow"]),"&.Mui-focused":{boxShadow:"".concat((0,r.Fq)(e.palette.form.focusColor,1)," inset 0 0 0 1px"),border:"1px solid"+e.palette.form.focusColor},"&.Mui-error":{boxShadow:"".concat((0,r.Fq)(e.palette.error.main,1)," inset 0 0 0 1px"),border:"1px solid"+e.palette.error.main}},"&.placeholder":{"& .MuiInputBase-root":{"& .MuiInputBase-input":{opacity:.5}}},"& .MuiFormLabel-root":{"&.Mui-focused":{display:"none"},"&.MuiFormLabel-filled":{display:"none"}},'& .MuiAutocomplete-inputRoot[class*="MuiOutlinedInput-root"] .MuiAutocomplete-endAdornment':{top:0,right:2,"& button":{padding:e.spacing(1.5),color:e.palette.text.primary}}}}}))(l.Z),M=(0,i.Z)((function(){return{root:{display:"flex",flexDirection:"row","& .MuiRadio-root":{padding:0}}}}))(u.Z),N=(0,i.Z)((function(e){return{root:{margin:0,"& .Mui-checked ~ .MuiFormControlLabel-label":{border:"1px solid"+e.palette.form.focusColor,borderRight:0,backgroundColor:e.palette.form.focusColor,color:e.palette.text.secondary,fontFamily:e.masthead.highlightFontFamily},"&:first-child .MuiFormControlLabel-label":{borderTopLeftRadius:4,borderBottomLeftRadius:4},"&:last-child .MuiFormControlLabel-label":{borderTopRightRadius:4,borderBottomRightRadius:4,borderRight:"1px solid"},"&:last-child .Mui-checked ~ .MuiFormControlLabel-label":{borderRight:"1px solid"+e.palette.form.focusColor},"&.radioError .MuiFormControlLabel-label":{borderColor:"".concat((0,r.Fq)(e.palette.error.main,1)),color:"".concat((0,r.Fq)(e.palette.error.main,1))}},label:function(t){var n;return n={textAlign:"center",color:t.valid?e.palette.text.textGray:e.palette.text.main,padding:e.spacing(1)},(0,a.Z)(n,e.breakpoints.down("sm"),{padding:e.spacing(1,.5)}),(0,a.Z)(n,"border","1px solid"),(0,a.Z)(n,"backgroundColor","transparent"),(0,a.Z)(n,"transition","all .5s ease"),(0,a.Z)(n,"borderRight",0),(0,a.Z)(n,"&::before",{display:"block",content:'"'+t.label+'"',fontFamily:e.masthead.highlightFontFamily,height:0,overflow:"hidden",visibility:"hidden"}),n}}}))(p.Z),P=(0,i.Z)((function(e){return{root:{"&.error span":{color:e.palette.error.main}},label:function(t){var n={fontSize:x()(e,"typography.form.label.fontSize"),lineHeight:x()(e,"typography.form.label.lineHeight")};return t.formStyleOverride?{fontSize:x()(e,"typography.form.label.fontSize"),lineHeight:x()(e,"typography.form.label.lineHeight"),"& p":{fontSize:x()(e,"typography.form.label.fontSize"),marginBottom:"0"}}:n}}}))(p.Z),w=(0,i.Z)((function(e){return{root:{color:e.palette.form.focusColor}}}))(m.Z),I=(0,i.Z)((function(e){return{root:{width:e.spacing(4),height:e.spacing(2),padding:0,display:"flex"},switchBase:{padding:"3px 4px",borderRadius:"50%",color:e.palette.background.default,"&$checked":{transform:"translateX(14px)",color:e.palette.background.default,"& + $track":{opacity:1,backgroundColor:e.palette.form.focusColor,borderColor:e.palette.form.focusColor}}},thumb:{width:10,height:10,boxShadow:"none"},track:{borderRadius:e.spacing(2),opacity:1,backgroundColor:e.palette.background.mediumGray},checked:{}}}))(g.Z)},23128:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});n(67294);var a=n(37895),i=n(85639),r=n(64566),o=n(85893);function s(e){var t=e.options;return(0,o.jsx)("div",{style:{position:"relative"},children:t&&t.length>0?(0,o.jsxs)(a.Qr,{id:e.id,disabled:t.length<1||e.disabled,onKeyPress:function(e){"Enter"===e.key&&e.preventDefault()},value:e.value,input:(0,o.jsx)(a.Fy,{disableUnderline:!0}),onChange:e.onChange,MenuProps:(0,a.Zy)(),IconComponent:r.Z,children:[(0,o.jsx)(i.Z,{disabled:!0,value:"placeholder",children:e.placeholder},"placeholder"),t.map((function(e,t){return(0,o.jsx)(i.Z,{schooltype:e.schooltype,value:e.value,children:e.label},t)}))]}):(0,o.jsx)(a.Fy,{disabled:!0,disableUnderline:!0})})}},20167:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});n(67294);var a=n(41749),i=n(99956),r=n(282),o=n(22318),s=n(85893);function d(e){var t=e.setIncrement,n=e.increment,d=e.displayCount,c=e.setClassRowCount,l=e.kaptestClasses,u=e.label,p=e.classes,m=e.justifyContent,g=e.outOf,h=e.incrementCount,f=e.defaultClassRow,x=e.variant,v=e.color;return(0,s.jsx)(a.Z,{container:!0,alignItems:"center",justifyContent:"space-between",classes:{root:p.classFooter},children:(0,s.jsx)(a.Z,{item:!0,xs:12,children:(0,s.jsxs)(i.Z,{display:"flex",justifyContent:m,alignItems:"center",children:[(0,s.jsx)(r.Z,{variant:x,color:v,onClick:function(e){e.preventDefault(),t(n+=1),c(n1?"s":""]})})]})})})}},24216:function(e,t,n){"use strict";n.d(t,{eR:function(){return l},mc:function(){return u},v1:function(){return p},gb:function(){return m},vc:function(){return g},Ib:function(){return h},an:function(){return f},gl:function(){return x},Dz:function(){return v},ZG:function(){return b},C9:function(){return k},RR:function(){return y},Kh:function(){return S},cQ:function(){return Z},NN:function(){return j}});var a=n(30381),i=n.n(a),r=n(27361),o=n.n(r),s=(n(67294),n(22318)),d=n(99956),c=n(85893);function l(e){var t,n,a,r,s=e.daysOfWeek?e.daysOfWeek.split(",").map((function(e){return i()(e,"ddd").format("dddd")+"s "})):"";return t=g(e.startDate,"YYYY-MM-DD","MMMM D, YYYY"),n=g(e.endDate,"YYYY-MM-DD","MMMM D, YYYY"),{days:s,startDate:t,startDay:g(e.startDate,"YYYY-MM-DD","dddd"),endDate:n,dateRange:t+(n&&n!==t?" - "+n:""),timeRange:((a=o()(e,"courseSessions[0].startTime")?g(e.courseSessions[0].startTime,"kk:mm:ss","h:mm A"):g(o()(e,"startTime",""),"kk:mm:ss","h:mm A"))&&a)+((r=o()(e,"courseSessions[0].endTime")?g(e.courseSessions[0].endTime,"kk:mm:ss","h:mm A"):g(o()(e,"endTime",""),"kk:mm:ss","h:mm A"))&&" - "+r)}}function u(e,t){if(!e||!e.dayTime)return null;var n=o()(e,"liveOnlineClass",!1),a={},i={Sun:1,Mon:2,Tue:3,Wed:4,Thu:5,Fri:6,Sat:7};if(e.dayTime){if(Object.keys(e.dayTime).sort((function(e,t){return i[e]-i[t]})).forEach((function(t){return a[t]=e.dayTime[t]})),Object.keys(a).length<5){var r=e.deliveryType;return Object.keys(a).map((function(e,i){return(0,c.jsxs)("div",{children:[a[e]&&a[e][0]&&!a[e][0].timesVary&&(0,c.jsxs)("div",{children:[(0,c.jsxs)("span",{className:"dayOfWeek",children:[e,"kaptest"===t?":":" "]}),g(a[e][0].startTime,"h:mm","h:mm")," ",g(a[e][0].endTime,"h:mm","A")===g(a[e][0].startTime,"h:mm","A")?"":g(a[e][0].startTime,"h:mm","A")," ","- ",g(a[e][0].endTime,"h:mm","h:mm A")," ",r&&11===r||n?"ET":""]},i),a[e]&&a[e][0]&&a[e][0].timesVary&&(0,c.jsxs)("div",{children:[(0,c.jsx)("span",{className:"dayOfWeek",children:e})," Times vary"]},i)]},"01"+i)}))}var s,d="";return Object.keys(a).forEach((function(e){d+=e,a[e].length,s="Times vary"})),(0,c.jsxs)("div",{children:[(0,c.jsxs)("span",{className:"dayOfWeek",children:[d.substr(0,3)," - ",d.substr(d.length-3,d.length)]}),(0,c.jsx)("br",{}),s]})}}var p=function(e,t,n,a){var i=e&&g(e,n||"MMM-D-YYYY","D"),r=e&&g(e,n||"MMM-D-YYYY","MMM"),o=t&&g(t,n||"MMM-D-YYYY","D"),l=t&&g(t,n||"MMM-D-YYYY","MMM"),u=e&&g(e,n||"MMM-D-YYYY","YYYY"),p=t&&g(t,n||"MMM-D-YYYY","YYYY");return b(e,t,n)?(0,c.jsxs)(s.Z,{variant:"body1",component:"div",children:[r," ",i]}):void 0===a?(0,c.jsxs)(s.Z,{variant:"body1",component:"div",children:[r," ",i," - ",l," ",o]}):a?a?(0,c.jsxs)(s.Z,{variant:"body1",component:"div",children:[r," ",i," - ",l," ",o]}):void 0:(0,c.jsxs)(s.Z,{variant:"body1",component:"div",children:[(0,c.jsxs)(d.Z,{whiteSpace:"nowrap",children:[r," ",i," ",u," -"]}),(0,c.jsxs)(d.Z,{whiteSpace:"nowrap",children:[l," ",o," ",p]})]})};function m(e,t){return t?i()(e,t):i()(e)}function g(e,t,n){return i()(e,t||n).format(n)}function h(e,t){return i()(e).format(t)}function f(e,t,n){if(e){var a=e.substr(e.length-4).includes("5")?5:4;return t?i()(e,t).subtract(a,"h").format(n):i()(e).subtract(a,"h").format(n)}}function x(e,t){return i()(e).startOf(t)}function v(e,t,n){return i()(e).endOf(t).format(n)}function b(e,t,n){var a=n?i()(e,n):i()(e),r=n?i()(t,n):i()(t);return i()(a).isSame(r)}function k(e,t){var n=i()().startOf("day");return t?i()(e,t).endOf("day").isSameOrAfter(n):i()(e).endOf("day").isSameOrAfter(n)}function y(e,t,n){return i()(e).isBefore(t,n)}function S(e,t,n){return i()(e).isBetween(t,n)}function Z(){return i()()}function j(e){return i()(e)}},48510:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return qe}});var a=n(92809),i=n(67294),r=n(22318),o=n(43832),s=n(99956),d=n(282),c=n(58885),l=n(24216),u=n(82872),p=n(74619),m=n(30381),g=n.n(m),h=n(74831),f=n(20167),x=n(80366),v=n(52663),b=n(17812),k=n(18499),y=n(27361),S=n.n(y),Z=n(61327),j=n(56847),C=n(82302),M=n(83750),N=n(57394),P=n(88222),w=n(99613),I=n(41120),F=n(85893),T=(0,I.Z)((function(e){return{root:{marginLeft:"auto",marginRight:"auto",overflowX:"initial",border:"1px solid #a1a1a1","& .MuiTableRow-root":{"&:nth-child(even)":{backgroundColor:"#F3F3F3"}},"& .MuiTableCell-root":{borderBottom:"none"},"& .MuiTableCell-head":{borderBottom:"1px solid #a1a1a1"},"& .MuiTypography-h6":{lineHeight:"2.2rem"}},thead:{borderBottom:"1px solid #a1a1a1"},timeRange:{paddingLeft:e.spacing(2)}}}));function D(e){var t=e.courseSessions,n=e.deliveryType,a=T();return(0,F.jsx)(j.Z,{className:a.root,children:(0,F.jsxs)(C.Z,{"aria-label":"table",stickyHeader:!0,children:[(0,F.jsx)(M.Z,{children:(0,F.jsxs)(N.Z,{children:[(0,F.jsx)(P.Z,{size:"medium",children:(0,F.jsx)(r.Z,{variant:"h6",children:"DAY/TIME"})}),(0,F.jsx)(P.Z,{size:"medium",children:(0,F.jsx)(r.Z,{variant:"h6",children:"COURSE TOPIC"})})]})}),(0,F.jsx)(w.Z,{children:t&&t.map((function(e){var t=(0,l.eR)(e,!0);return(0,F.jsxs)(N.Z,{children:[(0,F.jsx)(P.Z,{size:"medium",children:(0,F.jsxs)(r.Z,{variant:"body2",children:[t.startDate," ",(0,F.jsxs)("span",{className:a.timeRange,children:[t.timeRange,11===n&&" ET"]})]})}),(0,F.jsx)(P.Z,{size:"medium",children:(0,F.jsx)(r.Z,{variant:"body2",children:e.sessionName})})]},e.sessionId)}))})]})})}var O=(0,n(5152).default)((function(){return Promise.all([n.e(9834),n.e(1769)]).then(n.bind(n,61769))}),{ssr:!1,loadableGenerated:{webpack:function(){return[61769]},modules:["../src/components/configurator/scheduler/ConfiguratorSchedulerDetailsDialog.js -> ../../faculty/FacultyAvatar"]}}),B=(0,I.Z)((function(e){var t,n;return{root:{"& .MuiIconButton-root":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"& .MuiSvgIcon-root":{width:"1.3em",height:"1.3em"}},closeButton:{position:"absolute",right:"10px",top:"10px",color:e.palette.text.primary},header:(t={padding:e.spacing(8)},(0,a.Z)(t,e.breakpoints.down("sm"),{padding:e.spacing(2)}),(0,a.Z)(t,"& h4",{paddingBottom:e.spacing(1)}),t),avatar:{"& .MuiBox-root":{justifyContent:"flex-start",flexDirection:"row","&:nth-of-type(2)":{paddingLeft:e.spacing(2)}},"& .facultyBox":{flexDirection:"row"}},showTime:(n={},(0,a.Z)(n,e.breakpoints.up("md"),{textAlign:"center"}),(0,a.Z)(n,e.breakpoints.up("lg"),{textAlign:"left"}),(0,a.Z)(n,"& .dayOfWeek",(0,a.Z)({display:"inline-block",minWidth:"45px"},e.breakpoints.down("xs"),{minWidth:"40px"})),n)}}));function R(e){var t=e.open,n=e.setOpen,a=e.classListClasses,i=isNaN(a.classId)?Z.GET_KE_COURSESDETAIL_BY_CLASSCODE:Z.GET_KE_COURSESDETAIL_BY_CLASSID,o=isNaN(a.classId)?a.classId:parseInt(a.classId),d=(0,k.aM)(i,{variables:{classToken:o},context:{ke:!0}}),c=d.loading,u=d.error,p=d.data,m=S()(p,"KapClass[0]",[]),g=S()(m,"Meeting",""),h=S()(m,"deliveryType",""),f=B();return u?"Error":c?null:(0,F.jsxs)(v.Z,{onClose:function(){return n(!1)},open:t,fullWidth:!0,maxWidth:"lg",className:f.root,children:[(0,F.jsx)(b.Z,{"aria-label":"close",onClick:function(){return n(!1)},className:f.closeButton,children:(0,F.jsx)(x.Z,{})}),(0,F.jsxs)(s.Z,{className:f.header,children:[(0,F.jsx)(s.Z,{pb:2,children:(0,F.jsxs)(r.Z,{variant:"body1",children:["Class Code: ",a.classCode]})}),(0,F.jsx)(r.Z,{variant:"h4",children:a.className}),(0,F.jsxs)(s.Z,{pb:3,className:f.showTime,children:[(0,F.jsx)("div",{children:(0,l.v1)(a.startDate,a.endDate,"MMM D, YYYY")}),(0,F.jsx)("div",{children:(0,l.mc)(a,"kaptest")})]}),(0,F.jsx)(s.Z,{className:f.avatar,children:(0,F.jsx)(O,{teacherId:a.teacherId,noLink:!0})}),(0,F.jsx)(D,{courseSessions:g,deliveryType:h})]})]})}var L=n(69713),z=n(41749),A=n(45432);function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function E(e){for(var t=1;t0?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(s.Z,{pt:3,children:(0,F.jsx)(ee,{header:b,dialogLink:m,scheduleModalMessage:x})}),(0,F.jsx)(s.Z,{className:be.btnContainer,children:A.map((function(e){return(0,F.jsxs)(d.Z,{className:"".concat(be.schedBtn," ").concat(se==="".concat(e.month," ").concat(e.year)?be.active:""),variant:"outlined",color:"primary",onClick:function(){return function(e,t){V(e),J(t),ne(h.NJ),ue(0),de("".concat(e," ").concat(t))}(e.month,e.year)},children:[e.month," ",e.year]},"".concat(e.month,", ").concat(e.year))}))}),(0,F.jsx)(ee,{header:"Select Date and Times"}),ae.slice(0,te).map((function(e){return(0,F.jsx)(W,{cls:e,setOpen:ve,setClassListClasses:ge,selectedSchedule:n,setSelectedSchedule:a,selectedItem:r,setSelectedItem:o,selectedProduct:t,hideConfigurationPrice:y},e.classId)}))]}):(0,F.jsx)(s.Z,{pt:5,children:(0,F.jsx)(ie,{msgType:"info",msg:v})}),xe&&me&&(0,F.jsx)(R,{open:xe,setOpen:ve,classListClasses:me}),ae&&te0&&o(L[0])}),[L&&L[0]]),(0,i.useEffect)((function(){""!==r&&a((0,l.v1)(r.startDate,r.endDate,"MMM D, YYYY"))}),[r]),N?(0,F.jsx)(H.default,{}):M?(0,F.jsx)(q.Z,{}):(0,F.jsxs)(s.Z,{className:ne.root,children:[L&&L.length>0?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(s.Z,{pt:3,children:(0,F.jsx)(ee,{header:x,dialogLink:d,scheduleModalMessage:u})}),L.slice(0,A).map((function(e){return(0,F.jsx)(W,{cls:e,setOpen:te,setClassListClasses:G,selectedSchedule:n,setSelectedSchedule:a,selectedItem:r,setSelectedItem:o,selectedProduct:t,hideConfigurationPrice:v},e.classId)}))]}):(0,F.jsx)(s.Z,{pt:5,children:(0,F.jsx)(ie,{msgType:"info",msg:m})}),Q&&K&&(0,F.jsx)(R,{open:Q,setOpen:te,classListClasses:K}),L&&A0?" ".concat(t.distance.toFixed(2)," Miles"):""})]})]}),(0,F.jsxs)(r.Z,{variant:"body2",component:"div",className:n.address,children:[t.address1?"".concat(t.address1,","):"Location to be announced,"," ",t.city&&"".concat(t.city,", "),t.state," ",t.zip," | ",(0,F.jsx)("a",{href:"//maps.google.com/?q=".concat(t.address1,",").concat(t.city,",").concat(t.state,",").concat(t.zip),target:"_blank",rel:"noopener noreferrer",children:"View On Map"})]})]})}var he=n(23128);function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function xe(e){for(var t=1;t0&&Pe.map((function(e){return e.classes[0]})),Ie=se&&se.map((function(e){return e.facility.zip})),Fe=(0,ce.Z)(new Set(Ie)),Te=(0,i.useState)(""),De=Te[0],Oe=Te[1],Be=(0,i.useState)(!1),Re=Be[0],Le=Be[1],ze=xe({},P),Ae=(0,ue.mN)();return(0,i.useEffect)((function(){J(U),te(V),re("".concat(U," ").concat(V))}),[Y]),(0,i.useEffect)((function(){y(Pe&&Pe.length>0)}),[Pe]),(0,i.useEffect)((function(){Pe&&Pe.length>0&&o(we[0])}),[Pe&&Pe.length>0&&we[0]]),(0,i.useEffect)((function(){a((0,l.v1)(r.startDate,r.endDate,"MMM D, YYYY"))}),[r]),A?(0,F.jsx)(H.default,{}):z?(0,F.jsx)(q.Z,{}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(s.Z,{pt:3,children:[(0,F.jsx)(ee,{header:"Enter Zip Code",dialogLink:x,distanceModalMessage:v}),(0,F.jsxs)(s.Z,{pb:6,display:"flex",alignItems:"center",children:[(0,F.jsx)(s.Z,{className:N.zipCode,children:(0,F.jsx)(le.Z,{zipRequired:!0,zipCode:w,onZipCodeChange:function(e){return function(e,t){if(!Object.keys(e).every((function(t){return ze[t]===e[t]}))){var n=t?{shallow:t}:void 0;ze=xe(xe({},ze),e),Ae.replaceRoute("page",ze,n)}}({zip:e})},isMobile:!1,classes:N})}),(0,F.jsx)(s.Z,{className:N.zipCode,ml:3,children:(0,F.jsx)(he.Z,{options:M,id:"distance",disableUnderline:!0,variant:"outlined",autoFocus:!0,value:D,onChange:function(e){return function(e){var t=e.target.value;t&&O(t)}(e)}})})]})]}),Re&&De&&(0,F.jsx)(R,{open:Re,setOpen:Le,classListClasses:De}),(0,F.jsx)(ee,{header:"Filter by Day of Week"}),(0,F.jsx)(s.Z,{pb:4,children:de.map((function(e){return(0,F.jsx)(d.Z,{className:"".concat(N.schedBtn," ").concat(me===e.label?N.active:""),onClick:function(){return fe(e.label)},variant:"outlined",color:"primary",children:e.label},e.label)}))}),Pe&&Pe.length>0?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ee,{header:b,dialogLink:p,scheduleModalMessage:m}),(0,F.jsx)(s.Z,{className:N.btnContainer,children:_.map((function(e){return(0,F.jsxs)(d.Z,{className:"".concat(N.schedBtn," ").concat(ae==="".concat(e.month," ").concat(e.year)?N.active:""),variant:"outlined",color:"primary",onClick:function(){return function(e,t){J(e),te(t),ye(h.AP),je(0),re("".concat(e," ").concat(t))}(e.month,e.year)},children:[e.month," ",e.year]},"".concat(e.month,", ").concat(e.year))}))}),Pe.slice(0,ke).map((function(e){return(0,F.jsxs)("div",{className:N.facilities,children:[(0,F.jsx)(s.Z,{pb:4,children:(0,F.jsx)(ge,{facility:e.facility})}),e.classes.map((function(e){return(0,F.jsx)(W,{cls:e,setOpen:Le,setClassListClasses:Oe,selectedSchedule:n,setSelectedSchedule:a,selectedItem:r,setSelectedItem:o,hideConfigurationPrice:Z},e.facility.id)})),(0,F.jsx)("hr",{})]},e.facility.id)}))]}):(0,F.jsx)(s.Z,{pb:4,children:(0,F.jsx)(ie,{msgType:"info",msg:g})}),Pe&&Pe.length>0&&Fe.length>0&&ke0&&se.map((function(e){return e.classes[0]})),pe=E&&E.map((function(e){return e.facility.zip})),me=(0,ce.Z)(new Set(pe)),fe=(0,i.useState)(""),xe=fe[0],ve=fe[1],be=(0,i.useState)(!1),ke=be[0],Ze=be[1],je=ye({},P),Ce=(0,ue.mN)();return(0,i.useEffect)((function(){b(se&&se.length>0)}),[se]),(0,i.useEffect)((function(){se&&se.length>0&&o(de[0])}),[se&&se.length>0&&de[0]]),(0,i.useEffect)((function(){""!==r&&a((0,l.v1)(r.startDate,r.endDate,"MMM D, YYYY"))}),[r]),A?(0,F.jsx)(H.default,{}):z?(0,F.jsx)(q.Z,{}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(s.Z,{pt:3,children:[(0,F.jsx)(ee,{header:"Enter Zip Code",dialogLink:x,distanceModalMessage:v}),(0,F.jsxs)(s.Z,{pb:6,display:"flex",alignItems:"center",children:[(0,F.jsx)(s.Z,{className:N.zipCode,children:(0,F.jsx)(le.Z,{zipRequired:!0,zipCode:w,onZipCodeChange:function(e){return function(e,t){if(!Object.keys(e).every((function(t){return je[t]===e[t]}))){var n=t?{shallow:t}:void 0;je=ye(ye({},je),e),Ce.replaceRoute("page",je,n)}}({zip:e})},isMobile:!1,classes:N})}),(0,F.jsx)(s.Z,{className:N.zipCode,ml:3,children:(0,F.jsx)(he.Z,{options:M,id:"distance",disableUnderline:!0,variant:"outlined",autoFocus:!0,value:D,onChange:function(e){return function(e){var t=e.target.value;t&&O(t)}(e)}})})]})]}),ke&&xe&&(0,F.jsx)(R,{open:ke,setOpen:Ze,classListClasses:xe}),(0,F.jsx)(ee,{header:y,dialogLink:p,scheduleModalMessage:m}),(0,F.jsx)(s.Z,{pb:4,children:_.map((function(e){return(0,F.jsx)(d.Z,{className:"".concat(N.schedBtn," ").concat(V===e.label?N.active:""),onClick:function(){return K(e.label)},variant:"outlined",color:"primary",children:e.label},e.label)}))}),se&&se.length>0?(0,F.jsx)(F.Fragment,{children:se.slice(0,J).map((function(e){return(0,F.jsxs)("div",{className:N.facilities,children:[(0,F.jsx)(s.Z,{pb:4,children:(0,F.jsx)(ge,{facility:e.facility})}),e.classes.map((function(e){return(0,F.jsx)(W,{cls:e,setOpen:Ze,setClassListClasses:ve,selectedSchedule:n,setSelectedSchedule:a,selectedItem:r,setSelectedItem:o,hideConfigurationPrice:Z},e.facility.id)})),(0,F.jsx)("hr",{})]},e.facility.id)}))}):(0,F.jsx)(s.Z,{pb:4,children:(0,F.jsx)(ie,{msgType:"info",msg:g})}),se&&se.length>0&&me.length>0&&J0?(0,F.jsx)(L.Z,{promoPrice:t.promoPrice,listPrice:t.listPrice}):"Free";if(t)return(0,F.jsx)(s.Z,{display:"flex",className:c.root,children:(0,F.jsx)(Ie.Z,{control:(0,F.jsx)(Fe.Z,{checked:i.indexOf(e)>-1,onChange:function(){return function(e){o((function(t){return t.indexOf(e)>-1?t.filter((function(t){return t!==e})):[e].concat((0,ce.Z)(t))}))}(e)},name:n||t.productName,color:"primary",checkedIcon:(0,F.jsx)("span",{className:(0,Te.Z)(c.icon,c.checkedIcon)}),icon:(0,F.jsx)("span",{className:c.icon})}),label:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(r.Z,{variant:"h5",children:a}),(0,F.jsx)(r.Z,{variant:"h6",children:d})]})})})}))]})})}var Be=(0,I.Z)((function(e){return{root:{"& .MuiPaper-rounded":{borderRadius:"10px"},"& .MuiPaper-root":{padding:e.spacing(3),textAlign:"center"}},notActive:{boxShadow:"inset 0px 0px 0px 1px"+e.palette.background.mediumGray,"&:hover":{boxShadow:"inset 0px 0px 0px 1px #000",cursor:"pointer"}},active:{boxShadow:"inset 0px 0px 0px 2px"+e.palette.secondary.main,"&:hover":{boxShadow:"inset 0px 0px 0px 2px"+e.palette.secondary.main,cursor:"pointer"}},none:{minHeight:function(e){return e.height+"px"},display:"flex",justifyContent:"center",alignItems:"center"},productName:{fontWeight:600,fontSize:"1.8rem"}}}));function Re(e){var t=e.LSACAddOnModal,n=e.LSACAddOnModalMessage,a=e.LSACAddOnProduct,o=e.selectedLSACItem,d=e.setSelectedLSACItem,c=null===a||void 0===a?void 0:a.catalog,l=S()("catalog.name[0].text",void 0),u=(0,p.dz)().width,m=(0,i.useState)(0),g=m[0],h=m[1],f=(0,i.useRef)(null),x=Be({selectedLSACItem:o,height:g});return(0,i.useEffect)((function(){f&&f.current&&h(f.current.clientHeight)}),[u]),(0,F.jsxs)(s.Z,{pb:6,children:[(0,F.jsx)(ee,{header:"Add LSAC",dialogLink:t,addOnModalMessage:n}),(0,F.jsxs)(z.Z,{container:!0,spacing:2,className:x.root,children:[(0,F.jsx)(z.Z,{item:!0,xs:6,onClick:function(){return d(c)},children:(0,F.jsxs)(je.Z,{ref:f,className:"".concat(o&&o.productId===c.productId?x.active:x.notActive),children:[(0,F.jsx)(r.Z,{variant:"body1",className:x.productName,gutterBottom:!0,children:l||(null===c||void 0===c?void 0:c.productName)}),(0,F.jsxs)(r.Z,{variant:"body1",children:[(null===c||void 0===c?void 0:c.salePrice)>0&&"+"," ",(0,F.jsx)(L.Z,{salePrice:null===c||void 0===c?void 0:c.salePrice,listPrice:null===c||void 0===c?void 0:c.listPrice})]})]})},null===c||void 0===c?void 0:c.productId),(0,F.jsx)(z.Z,{item:!0,xs:6,onClick:function(){o&&"string"!==typeof o&&d(o.productId)},children:(0,F.jsx)(je.Z,{className:"".concat(x.none," ").concat("string"===typeof o?x.active:x.notActive),children:(0,F.jsx)(r.Z,{variant:"body1",gutterBottom:!0,className:x.productName,children:"None"})})})]})]})}var Le=(0,I.Z)((function(e){return{root:{"& .MuiPaper-rounded":{borderRadius:"10px"},"& .MuiPaper-root":{padding:e.spacing(3),textAlign:"center"}},notActive:{boxShadow:"inset 0px 0px 0px 1px"+e.palette.background.mediumGray,"&:hover":{boxShadow:"inset 0px 0px 0px 1px #000",cursor:"pointer"}},active:{boxShadow:"inset 0px 0px 0px 2px"+e.palette.secondary.main,"&:hover":{boxShadow:"inset 0px 0px 0px 2px"+e.palette.secondary.main,cursor:"pointer"}},none:{minHeight:function(e){return e.height+"px"},display:"flex",justifyContent:"center",alignItems:"center"},productName:{fontWeight:600,fontSize:"1.8rem",textTransform:"capitalize"}}}));function ze(e){var t=e.tutoringModal,n=e.tutoringModalMessage,a=e.isSubProduct,o=e.fields,d=e.selectedTutoringItem,c=e.setSelectedTutoringItem,l=e.deliveryType,u=e.tutoringHeaderText,m=o&&o.length>0&&o.map((function(e){return S()(e,"catalog")})).sort((function(e,t){return e.tutoringHours-t.tutoringHours})),g=(0,i.useRef)(null),h=(0,p.dz)().width,f=(0,i.useState)(0),x=f[0],v=f[1],b=Le({selectedTutoringItem:d,height:x});return(0,i.useEffect)((function(){g&&g.current&&v(g.current.clientHeight)}),[h]),(0,F.jsxs)(s.Z,{pt:2===l?2:4,pb:6,children:[(0,F.jsx)(ee,{header:u,dialogLink:t,tutoringModalMessage:n}),(0,F.jsxs)(z.Z,{container:!0,spacing:2,className:b.root,children:[(0,F.jsx)(z.Z,{item:!0,xs:6,onClick:function(){d&&"string"!==typeof d&&c(d.productId)},children:(0,F.jsx)(je.Z,{className:"".concat(b.none," ").concat("string"===typeof d?b.active:b.notActive),children:(0,F.jsx)(r.Z,{variant:"body1",className:b.productName,gutterBottom:!0,children:"None"})})}),m&&m.map((function(e){var t;return t=o&&o.find((function(t){return t.catalog&&t.catalog.productId===e.productId})),(0,F.jsx)(z.Z,{item:!0,xs:6,onClick:function(){return c(e)},children:(0,F.jsxs)(je.Z,{ref:g,className:"".concat(d&&d.productId===e.productId?b.active:b.notActive),children:[(0,F.jsx)(r.Z,{variant:"body1",className:b.productName,gutterBottom:!0,children:t?"".concat(t.name[0].text):e.tutoringHours?"".concat(e.tutoringHours," Hours"):""}),(0,F.jsxs)(r.Z,{variant:"body1",children:[!a&&"+"," ",(0,F.jsx)(L.Z,{promoPrice:e.promoPrice,listPrice:e.listPrice})]})]})},e.productId)}))]})]})}var Ae=(0,I.Z)((function(e){return{root:{"& .MuiPaper-rounded":{borderRadius:"10px"},"& .MuiPaper-root":{padding:e.spacing(3),textAlign:"center"}},notActive:{boxShadow:"inset 0px 0px 0px 1px"+e.palette.background.mediumGray,"&:hover":{boxShadow:"inset 0px 0px 0px 1px #000",cursor:"pointer"}},active:{boxShadow:"inset 0px 0px 0px 2px"+e.palette.secondary.main,"&:hover":{boxShadow:"inset 0px 0px 0px 2px"+e.palette.secondary.main,cursor:"pointer"}},productName:{fontWeight:600,fontSize:"1.8rem",textTransform:"capitalize"}}}));function Ye(e){var t=e.fields,n=e.selectedDurationItem,a=e.setSelectedDurationItem,o=e.deliveryType,d=e.durationHeaderText,c=e.durationModal,l=e.durationModalMessage,u=t&&t.length>0&&t.map((function(e){return S()(e,"catalog")})).sort((function(e,t){return e.tutoringHours-t.tutoringHours})),m=(0,i.useRef)(null),g=(0,p.dz)().width,h=(0,i.useState)(0),f=h[0],x=h[1],v=Ae({selectedDurationItem:n,height:f});return(0,i.useEffect)((function(){2!==o&&11!==o&&u&&a(u[0])}),[u&&u[0]]),(0,i.useEffect)((function(){m&&m.current&&x(m.current.clientHeight)}),[g]),(0,F.jsxs)(s.Z,{pt:6,pb:4,children:[(0,F.jsx)(ee,{header:d,dialogLink:c,tutoringModalMessage:l}),(0,F.jsx)(z.Z,{container:!0,spacing:2,className:v.root,children:u&&u.map((function(e){var i;return i=t&&t.find((function(t){return t.catalog&&t.catalog.productId===e.productId})),(0,F.jsx)(z.Z,{item:!0,xs:6,sm:2===o||11===o?3:6,onClick:function(){return a(e)},children:(0,F.jsxs)(je.Z,{ref:m,className:"".concat(n&&n.productId===e.productId?v.active:v.notActive),children:[(0,F.jsx)(r.Z,{variant:"body1",className:v.productName,gutterBottom:!0,children:i?"".concat(i.name[0].text):e.tutoringHours?"".concat(e.tutoringHours," Hours"):""}),(0,F.jsx)(r.Z,{variant:"body1",children:(0,F.jsx)(L.Z,{promoPrice:e.promoPrice,listPrice:e.listPrice,flipped:!0})})]})},e.productId)}))})]})}var Ee=n(45258),_e=n(75150),We=(0,I.Z)((function(e){var t,n,i,r;return{root:(t={backgroundColor:"#f7f7f7",color:"#000",paddingTop:e.spacing(4),paddingBottom:e.spacing(4)},(0,a.Z)(t,e.breakpoints.down("sm"),{paddingTop:e.spacing(3),paddingBottom:e.spacing(3)}),(0,a.Z)(t,"top","auto"),(0,a.Z)(t,"bottom",0),t),container:(0,a.Z)({},e.breakpoints.up("md"),{display:"flex",justifyContent:"space-between"}),productName:{fontSize:"1.6rem",fontWeight:700,textTransform:"capitalize"},paddingRight:{paddingRight:e.spacing(2)},schedule:{"& .MuiTypography-body1":{fontSize:"1.4rem"},paddingBottom:e.spacing(1)},priceButtonContainer:(n={},(0,a.Z)(n,e.breakpoints.up("md"),{display:"flex",alignItems:"center"}),(0,a.Z)(n,e.breakpoints.down("sm"),{paddingTop:e.spacing(2)}),n),priceBtn:(i={borderRadius:"10px",minHeight:"48px"},(0,a.Z)(i,e.breakpoints.down("sm"),{paddingTop:e.spacing(2)}),(0,a.Z)(i,"& .MuiButton-root",(0,a.Z)({paddingTop:"16px",paddingBottom:"16px"},e.breakpoints.down("sm"),{minWidth:"180px"})),i),totalPriceContainer:(0,a.Z)({},e.breakpoints.up("md"),{paddingRight:e.spacing(2)}),total:(0,a.Z)({},e.breakpoints.up("md"),{textAlign:"right"}),totalPrice:(r={fontSize:"2.4rem",fontWeight:600},(0,a.Z)(r,e.breakpoints.up("md"),{textAlign:"right"}),(0,a.Z)(r,"paddingBottom",e.spacing(.5)),(0,a.Z)(r,"& del",{fontWeight:"normal",color:"#858585",fontSize:"2rem"}),r),productContainer:{display:"flex",alignItems:"flex-end"},productPrice:{fontSize:"1.6rem",fontWeight:"normal",paddingLeft:e.spacing(2),"& del":{color:"#858585",fontSize:"1.4rem"}},price:{fontSize:"1.4rem","& del":{color:"#858585",fontSize:"1.2rem"}}}}));function He(e){var t=e.selectedProduct,n=e.selectedSchedule,a=e.selectedTutoringItem,i=e.selectedAddOnItem,d=e.selectedItem,c=e.selectedLSACItem,l=e.isSubProduct,u=e.showRelatedIpProducts,p=e.selectedDurationItem,m=e.showRelatedDurationProducts,g=We(),h=l?S()(t,"name[0].text"):S()(t,"catalog.productName"),f=S()(t,"catalog.deliveryType"),x=11===f||2===f?S()(d,"listPrice",0):m?S()(p,"listPrice"):l&&""===p?0:S()(t,"catalog.listPrice",0),v=11===f||2===f?S()(d,"promoPrice",0):m?S()(p,"listPrice"):l&&""===p?0:S()(t,"catalog.promoPrice",0),b="string"===typeof a?0:S()(a,"tutoringHours",""),k="string"===typeof a?0:S()(a,"promoPrice"),y="string"===typeof a?0:S()(a,"listPrice"),Z="string"===typeof p?0:S()(p,"tutoringHours",""),j="string"===typeof p?0:S()(p,"promoPrice"),C="string"===typeof p?0:S()(p,"listPrice"),M=0===i.length?0:i.map((function(e){return e.catalog.promoPrice})).reduce((function(e,t){return e+t}),0),N=0===i.length?0:i.map((function(e){return e.catalog.promoPrice})).reduce((function(e,t){return e+t}),0),P=0===i.length&&0,w="undefined"===typeof c||"string"===typeof c?0:S()(c,"listPrice"),I="undefined"===typeof c||"string"===typeof c?0:S()(c,"promoPrice"),T=S()(c,"productName",""),D=S()(c,"classId",void 0),O=v+k+M+I,B=x+y+N+w,R=S()(t,"catalog",void 0),z=S()(a,"classId",""),A=S()(p,"classId",""),Y=l||11!==f&&2!==f?m?A:l?"":S()(t,"catalog.classId"):S()(d,"classId",""),E=0===i.length?0:i.map((function(e){return e.catalog.classId&&e.catalog.classId})),_=!(11===f||2===f)||"string"!==typeof d,W=""===Y||!u,H="".concat(Y||"").concat(Y&&z?",":"").concat(z||"").concat(E?","+E:"").concat(D?","+D:"");return(0,F.jsx)(Ee.Z,{position:"fixed",classes:{root:g.root},children:(0,F.jsx)(o.Z,{children:(0,F.jsxs)(s.Z,{className:g.container,children:[(0,F.jsxs)(s.Z,{children:[(0,F.jsx)(s.Z,{className:g.productContainer,children:(0,F.jsxs)(r.Z,{variant:"body1",className:g.productName,children:[h&&h,u&&_&&!l&&(0,F.jsx)("span",{className:g.productPrice,children:(0,F.jsx)(L.Z,{promoPrice:v,listPrice:x,flipped:!0,showStrikeThru:!0})})]})}),u&&(0,F.jsx)(s.Z,{className:g.schedule,children:n}),m&&(0,F.jsx)(F.Fragment,{children:Z&&0!==Z?(0,F.jsx)(s.Z,{className:g.productContainer,children:(0,F.jsxs)(r.Z,{variant:"body2",children:[(0,F.jsxs)("span",{className:g.paddingRight,children:[Z," Hours Tutoring"]}),C>0&&(0,F.jsx)("span",{className:g.price,children:(0,F.jsx)(L.Z,{promoPrice:j,listPrice:C,flipped:!0,showStrikeThru:!0})})]})}):"string"!==typeof p?(0,F.jsx)(s.Z,{className:g.productContainer,children:(0,F.jsxs)(r.Z,{variant:"body2",children:[(0,F.jsx)("span",{className:g.paddingRight,children:"".concat(p.productName)}),C>0&&(0,F.jsx)("span",{className:g.price,children:(0,F.jsx)(L.Z,{promoPrice:j,listPrice:C,flipped:!0,showStrikeThru:!0})})]})}):(0,F.jsx)(F.Fragment,{})}),u&&(0,F.jsx)(F.Fragment,{children:b&&0!==b?(0,F.jsx)(s.Z,{className:g.productContainer,children:(0,F.jsxs)(r.Z,{variant:"body2",children:[!l&&"+"," ",(0,F.jsxs)("span",{className:g.paddingRight,children:[b," Hours Tutoring"]}),y>0&&(0,F.jsx)("span",{className:g.price,children:(0,F.jsx)(L.Z,{promoPrice:k,listPrice:y,flipped:!0,showStrikeThru:!0})})]})}):"string"!==typeof a?(0,F.jsx)(s.Z,{className:g.productContainer,children:(0,F.jsxs)(r.Z,{variant:"body2",children:[!l&&"+"," ",(0,F.jsx)("span",{className:g.paddingRight,children:"".concat(a.productName)}),y>0&&(0,F.jsx)("span",{className:g.price,children:(0,F.jsx)(L.Z,{promoPrice:k,listPrice:y,flipped:!0,showStrikeThru:!0})})]})}):(0,F.jsx)(F.Fragment,{})}),u&&0!==P&&(0,F.jsx)(s.Z,{children:i.map((function(e){var t=S()(e,"name[0].text"),n=S()(e,"catalog.productName"),a=t||n;return(0,F.jsxs)(r.Z,{variant:"body2",children:[(0,F.jsxs)("span",{className:g.paddingRight,children:["+ ",a]}),(0,F.jsx)("span",{className:g.price,children:(0,F.jsx)(L.Z,{promoPrice:e.catalog.promoPrice,listPrice:e.catalog.listPrice,flipped:!0,showStrikeThru:!0})})]},e.productId)}))}),""!==T&&(0,F.jsx)(s.Z,{className:g.productContainer,children:(0,F.jsxs)(r.Z,{variant:"body2",children:[(0,F.jsxs)("span",{className:g.paddingRight,children:["+ ",T]}),(0,F.jsx)("span",{className:g.price,children:(0,F.jsx)(L.Z,{promoPrice:I,listPrice:w,flipped:!0,showStrikeThru:!0})})]})})]}),(0,F.jsxs)(s.Z,{className:g.priceButtonContainer,children:[(O>0||B>0)&&u&&(0,F.jsxs)(s.Z,{className:g.totalPriceContainer,children:[(0,F.jsx)(r.Z,{variant:"body2",className:g.total,children:"Total"}),(0,F.jsx)(r.Z,{variant:"body1",className:g.totalPrice,children:(0,F.jsx)(L.Z,{promoPrice:O,listPrice:B,flipped:!0})})]}),(0,F.jsx)(s.Z,{className:g.priceBtn,children:(0,F.jsx)(_e.Z,{includeBundles:"false",classId:Array.from(new Set(H.split(","))).toString(),label:"Check Out",isFree:!1,catalogData:R,variant:"contained",color:"primary",isDisabled:W})})]})]})})})}var $e=(0,I.Z)((function(e){var t;return{container:(t={marginBottom:e.spacing(33)},(0,a.Z)(t,e.breakpoints.down("sm"),{marginBottom:e.spacing(46)}),(0,a.Z)(t,e.breakpoints.down("xs"),{marginBottom:e.spacing(50)}),t)}}));function qe(e){var t=$e(),n=S()(e,"data.primary.base_product"),a=S()(e,"data.primary.upgrade_product"),s=S()(e,"data.primary.product_modal[0].text"),d=S()(e,"data.primary.product_modal_message"),c=S()(e,"data.primary.duration_modal[0].text"),l=S()(e,"data.primary.duration_modal_message"),u=S()(e,"data.primary.schedule_modal[0].text"),p=S()(e,"data.primary.schedule_modal_message"),m=S()(e,"data.primary.tutoring_modal[0].text"),g=S()(e,"data.primary.tutoring_modal_message"),h=S()(e,"data.primary.distance_modal[0].text"),f=S()(e,"data.primary.distance_modal_message"),x=S()(e,"data.primary.add_on_modal[0].text"),v=S()(e,"data.primary.add_on_modal_message"),b=S()(e,"data.primary.lsac_modal[0].text"),k=S()(e,"data.primary.lsac_modal_message"),y=S()(e,"data.primary.lsac_product"),Z=S()(e,"data.primary.headline_text"),j=S()(e,"data.primary.section_header_text"),C=S()(e,"data.primary.addon_header_text"),M=S()(e,"data.primary.tutoring_header_text"),N=S()(e,"data.primary.duration_header"),P=S()(e,"data.primary.show_month_filter"),w=S()(e,"data.fields"),I=(0,i.useState)(n),T=I[0],D=I[1],O=(0,i.useState)(""),B=O[0],R=O[1],L=(0,i.useState)(""),z=L[0],A=L[1],Y=(0,i.useState)(""),E=Y[0],_=Y[1],W=(0,i.useState)(""),H=W[0],$=W[1],q=(0,i.useState)(null===y||void 0===y?void 0:y.catalog),V=q[0],K=q[1],G=w.map((function(e){return e.add_on_product})).filter((function(e){return e})),J=G.length>0&&G.every((function(e){return null!==e})),X=null!==y,Q=w.map((function(e){return e.tutoring_product})).filter((function(e){return e})),ee=Q&&Q[0]&&Q[0].sub_product&&Q[0].sub_product.length>0&&Q[0].catalog&&Q[0].sub_product,te=T&&T.sub_product&&T.sub_product.length>0&&T.sub_product[0].catalog&&T.sub_product,ne=ee||Q,ae=ne&&ne.length>0&&ne.every((function(e){return null!==e})),ie=S()(T,"catalog.deliveryType"),re=(0,i.useState)(""),se=re[0],ce=re[1],le=!!(te&&te.length>0),ue=S()(e,"data.primary.upgrade_no_class_message",void 0),pe=S()(e,"data.primary.base_no_class_message",void 0),me=T===a,ge=T===n&&pe&&""!==pe[0].text?(0,F.jsx)(U.Z,{render:pe}):me&&ue&&""!==ue[0].text?(0,F.jsx)(U.Z,{render:ue}):(0,F.jsxs)(r.Z,{variant:"body1",children:["There are currently no ",2===ie&&"In Person"," classes scheduled matching your search criteria."]}),he=(0,i.useState)(!0),fe=he[0],xe=he[1],ve=2!==ie||fe,ke=!le||""!==E,ye=le&&""!==E,Se=S()(e,"data.primary.base_product.hideconfiguratorprice");return(0,i.useEffect)((function(){K(ve&&ke?null===y||void 0===y?void 0:y.catalog:"")}),[fe,ke]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(o.Z,{className:t.container,children:[n&&(0,F.jsx)(Ne,{productModal:s,productModalMessage:d,baseProduct:n,upgradeProduct:a,selectedProduct:T,setSelectedProduct:D,selectedItem:se,featuredProduct:n,isSubProduct:le,headlineText:Z}),a&&(0,F.jsx)(we,{upgradeProduct:a,selectedProduct:T,setSelectedProduct:D,baseProduct:n,selectedItem:se,featuredProduct:a,isSubProduct:le}),le&&(0,F.jsx)(Ye,{tutoringModal:m,tutoringModalMessage:g,fields:te,selectedDurationItem:E,setSelectedDurationItem:_,deliveryType:ie,durationHeaderText:N,durationModal:c,durationModalMessage:l}),11===ie&&ke&&(0,F.jsx)(F.Fragment,{children:P?(0,F.jsx)(oe,{selectedProduct:T,selectedSchedule:B,setSelectedSchedule:R,selectedItem:se,setSelectedItem:ce,scheduleModal:u,scheduleModalMessage:p,noClassesMsg:ge,sectionHeaderText:j,enableMonthFilter:P,hideConfigurationPrice:Se,durationSelected:ye,selectedDurationItem:E}):(0,F.jsx)(de,{selectedProduct:T,selectedSchedule:B,setSelectedSchedule:R,selectedItem:se,setSelectedItem:ce,scheduleModal:u,scheduleModalMessage:p,noClassesMsg:ge,sectionHeaderText:j,enableMonthFilter:P,hideConfigurationPrice:Se,durationSelected:ye,selectedDurationItem:E})}),2===ie&&ke&&(0,F.jsx)(F.Fragment,{children:P?(0,F.jsx)(be,{selectedProduct:T,selectedSchedule:B,setSelectedSchedule:R,selectedItem:se,setSelectedItem:ce,scheduleModal:u,scheduleModalMessage:p,noClassesMsg:ge,distanceModal:h,distanceModalMessage:f,sectionHeaderText:j,setInPersonClassesPresent:xe,hideConfigurationPrice:Se,durationSelected:ye,selectedDurationItem:E}):(0,F.jsx)(Ze,{selectedProduct:T,selectedSchedule:B,setSelectedSchedule:R,selectedItem:se,setSelectedItem:ce,scheduleModal:u,scheduleModalMessage:p,noClassesMsg:ge,distanceModal:h,distanceModalMessage:f,sectionHeaderText:j,setInPersonClassesPresent:xe,hideConfigurationPrice:Se,durationSelected:ye,selectedDurationItem:E})}),ae&&ve&&ke&&(0,F.jsx)(ze,{tutoringModal:m,tutoringModalMessage:g,isSubProduct:le,fields:ne,selectedTutoringItem:z,setSelectedTutoringItem:A,deliveryType:ie,tutoringHeaderText:M}),J&&ve&&ke&&(0,F.jsx)(Oe,{addOnModal:x,addOnModalMessage:v,fields:G,selectedAddOnItem:H,setSelectedAddOnItem:$,addonHeaderText:C}),X&&ve&&ke&&(0,F.jsx)(Re,{LSACAddOnModal:b,LSACAddOnModalMessage:k,LSACAddOnProduct:y,selectedLSACItem:V,setSelectedLSACItem:K})]}),(0,F.jsx)(He,{selectedProduct:T,selectedSchedule:B,selectedTutoringItem:z,selectedAddOnItem:H,selectedItem:se,selectedLSACItem:V,isSubProduct:le,showRelatedIpProducts:ve,selectedDurationItem:E,showRelatedDurationProducts:ye})]})}}}]);