(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6063],{28818:function(e){var i={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:"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:2951}};i.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 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,i){if("FragmentSpread"===e.kind)i.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&i.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,i)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,i)})),e.definitions&&e.definitions.forEach((function(e){n(e,i)}))}var a={};function t(e,i){for(var n=0;n0;){var d=l;l=new Set,d.forEach((function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach((function(e){l.add(e)})))}))}return r.forEach((function(i){var a=t(e,i);a&&n.definitions.push(a)})),n}i.definitions.forEach((function(e){if(e.name){var i=new Set;n(e,i),a[e.name.value]=i}})),e.exports=i,e.exports.CLASS_LIST=s(i,"CLASS_LIST"),e.exports.COURSE_DETAIL=s(i,"COURSE_DETAIL")},90173:function(e,i,n){"use strict";n.d(i,{ZP:function(){return M},WO:function(){return _},Fz:function(){return w}});var a=n(40066),t=n(10219),s=n(92809),r=n(67294),l=n(5152),d=n(27361),c=n.n(d),o=n(86010),m=n(41120),u=n(41749),p=n(99956),g=n(22318),v=n(282),k=n(24216),f=n(48122),h=n(68751),x=n(58885),y=n(75150),j=n(52829),b=n(69713),Z=n(46409),N=n(14290),S=n(74619),D=n(85893),F=["listPrice","salePrice","affirm"];function C(e,i){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);i&&(a=a.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),n.push.apply(n,a)}return n}function T(e){for(var i=1;i ../faculty/FacultyAvatar"]}}),I=(0,l.default)((function(){return Promise.resolve().then(n.bind(n,14290))}),{ssr:!1,loadableGenerated:{webpack:function(){return[14290]},modules:["../src/components/scheduler/DisplayClass.js -> ./ClassCapacityAvailability"]}}),O=(0,m.Z)((function(e){var i,n;return{root:(0,s.Z)({borderTopColor:"#f1f1f1",borderTop:"2px solid","&:hover":{background:e.palette.background.gray}},e.breakpoints.down("md"),{height:"auto",minHeight:"130px",paddingLeft:"10px",paddingRight:"10px"}),item:{paddingTop:e.spacing(1),paddingBottom:e.spacing(2)},className:(0,s.Z)({paddingTop:e.spacing(1),paddingLeft:e.spacing(2)},e.breakpoints.down("md"),{paddingLeft:0}),classDetails:(i={textAlign:"center"},(0,s.Z)(i,e.breakpoints.down("md"),{textAlign:"left"}),(0,s.Z)(i,"& a",{textDecoration:"underline"}),(0,s.Z)(i,"& .cdBox",(0,s.Z)({},e.breakpoints.down("md"),{minHeight:"auto"})),(0,s.Z)(i,"& .cdLink",{marginTop:"auto"}),i),price:{paddingTop:e.spacing(1),paddingBottom:e.spacing(2),textAlign:"center","& div":(0,s.Z)({},e.breakpoints.down("md"),{minHeight:"auto"})},dateDisplay:(0,s.Z)({paddingLeft:e.spacing(2)},e.breakpoints.down("md"),{paddingLeft:0}),teacher:{"& a":{textDecoration:"underline"}},faculty:{display:"inline-flex",borderRadius:"50%"},coaching:{display:"inline"},icon:{paddingTop:"5px"},buttonLH:{lineHeight:"1.65rem"},enroll:(n={},(0,s.Z)(n,e.breakpoints.up("sm"),{textAlign:"right",paddingRight:e.spacing(2)}),(0,s.Z)(n,e.breakpoints.down("sm"),{textAlign:"left"}),n),root2:(0,s.Z)({padding:e.spacing(3,1),"&:hover":{background:e.palette.background.gray}},e.breakpoints.down("sm"),{display:"block",paddingLeft:"2em"}),button:{minWidth:"auto"},eventDate:(0,s.Z)({},e.breakpoints.up("md"),{maxWidth:"18%"}),eventMobile:(0,s.Z)({},e.breakpoints.down("sm"),{justifyContent:"flex-start",padding:e.spacing(1)}),schedulerAffirmMsg:{"& a":{textDecoration:"underline","&:hover":{textDecoration:"none"}}},affirmMsg:{"& p":{fontSize:"12px",margin:"0.5em 0 0"}}}}));function M(e){var i=e.cls,n=i.listPrice,a=i.salePrice,s=i.affirm,l=(0,t.Z)(i,F),d=e.includeBundles,m=O(),g=l.addonIncludedText,v=l.addonText,C=l.addonTip,M=l.affirmEligible,_=l.bundlePrice,w=l.bundles,A=l.catalog,E=l.classId,L=l.className,z=l.closingDate,B=l.cross_sale_Id,Y=l.currency,W=l.firstSessionDate,R=l.freeSessionText,H=l.isFreeTrial,U=l.teacherId,V=l.trialClassId,K=l.startDate&&(0,k.gb)(l.startDate,"MMM D, YYYY"),G=l.endDate&&(0,k.gb)(l.endDate,"MMM D, YYYY"),q=K&&(0,k.vc)(K,"","DD"),$=K&&(0,k.vc)(K,"","MMM"),X=G&&(0,k.vc)(G,"","DD"),Q=G&&(0,k.vc)(G,"","MMM"),J=(0,x.Oc)(),ee=J.config,ie=J.prismicConfig,ne=ee.leadTenant,ae=(0,S.zh)(A,ee),te=c()(ie,"free_trial",""),se=(0,r.useState)(!1),re=se[0],le=se[1],de=(0,r.useState)(!1),ce=de[0],oe=de[1];return _&&w&&w.classIds&&w.classIds.length>0&&w.salePrice&&w.listPrice&&(n+=w.listPrice,a+=w.salePrice),(0,D.jsxs)(u.Z,{container:!0,className:m.root,alignItems:"flex-start",justifyContent:"center",children:[(0,D.jsx)(u.Z,{item:!0,xs:12,children:(0,D.jsx)(p.Z,{fontSize:"h5.fontSize",fontWeight:"fontWeightBold",className:m.className,children:L})}),(0,D.jsx)(u.Z,{item:!0,xs:6,lg:2,classes:{item:m.item},children:(0,D.jsxs)("div",{className:m.dateDisplay,children:[(0,k.ZG)(K,G)?(0,D.jsxs)(p.Z,{fontSize:"body2.fontSize",fontWeight:"regular",children:[$," ",q]}):(0,D.jsxs)(p.Z,{fontSize:"body2.fontSize",fontWeight:"regular",children:[$," ",q," - ",Q," ",X]}),(0,D.jsx)(p.Z,{fontSize:"button.fontSize",lineHeight:"2rem",children:(0,k.mc)(l)})]})}),(0,D.jsx)(u.Z,{item:!0,xs:6,lg:2,className:(0,o.Z)(m.item,m.teacher),children:(0,D.jsx)(P,{teacherId:U})}),(0,D.jsx)(u.Z,{item:!0,xs:6,lg:2,classes:{item:m.item},className:m.classDetails,children:(0,D.jsxs)(p.Z,{fontSize:"button.fontSize",lineHeight:"2rem",display:"flex",justifyContent:"space-between",flexDirection:"column",minHeight:72,className:"cdBox",children:[(0,D.jsx)(I,{classId:E,trialClassId:V,firstSessionDate:W,closingDate:z,setDisabled:oe}),ne&&"fiu"!==ne&&(0,D.jsx)(p.Z,{className:"cdLink",children:(0,D.jsx)(Z.Z,T(T({},(0,f.Xv)({__typename:"_InternalLink",routeNameOrUrl:"classdetail"},"true"===d||re?{classId:E,includeBundles:"true"}:{classId:E})),{},{children:"View Class Details"}))})]})}),(0,D.jsx)(u.Z,{item:!0,xs:6,lg:3,classes:{item:m.price},children:(0,D.jsxs)(p.Z,{display:"flex",justifyContent:"space-between",flexDirection:"column",minHeight:72,children:[(0,D.jsxs)(p.Z,{fontSize:"h6.fontSize",lineHeight:"2rem",fontWeight:"fontWeightBold",children:[(0,D.jsx)(b.Z,{currency:Y,salePrice:a,listPrice:n,hidePromo:!0,bundles:re?[{catalog:w}]:void 0}),(0,D.jsx)(j.Z,{affirmEligible:M,classes:m.schedulerAffirmMsg,pageType:"product",affirmPromoMessage:s,bundles:re?[{catalog:w}]:_&&w?w:void 0,product:A})]}),H&&0!==V&&(0,D.jsx)(p.Z,{fontSize:"button.fontSize",lineHeight:"2rem",children:(0,D.jsx)(N.FreeTrialLink,{cartLink:ae,trialClassId:V,labelText:""!==c()(R,"[0].text","")?h.Z.asText(R):te})})]})}),(0,D.jsx)(u.Z,{item:!0,xs:12,lg:3,className:(0,o.Z)(m.item,m.enroll),children:(0,D.jsx)(y.Z,{label:"Enroll",classId:E.toString(),bundles:w,addOnText:d?g:v,addOnTip:C,includeBundles:d,cross_sale_Id:B,handCheckBoxClick:function(e){le(e)},isDisabled:ce,catalogData:A,theme:"mprep"})})]})}function _(e){var i=(0,a.Z)({},e),n=O(i),t=(0,x.Oc)(),s=t.config,r=t.prismicConfig,l=c()(r,"paid_product",""),d=c()(i,"label","free"),o=c()(i,"startDate","")?(0,k.vc)(i.startDate,"MMM-DD-YYYY","MMM DD"):"",m=c()(i,"className",""),h=c()(i,"facility.name","Online"),y=l,N=c()(i,"classId",""),S=c()(i,"classCode",""),F=c()(i,"teacherId",""),C=c()(i,"simple_signup",!1),I=c()(i,"lead_source",!1),M=c()(i,"affirmEligible","");return(0,D.jsxs)(u.Z,{container:!0,alignItems:"center",className:n.root2,children:[(0,D.jsx)(u.Z,{item:!0,xs:!0,container:!0,justifyContent:"center",className:n.eventMobile,children:(0,D.jsx)(g.Z,{variant:"body2",align:"center",className:n.eventDate,children:o})}),(0,D.jsxs)(u.Z,{item:!0,md:3,lg:4,className:n.eventMobile,children:[(0,D.jsx)(g.Z,{variant:"body2",children:(0,D.jsx)(Z.Z,T(T({},(0,f.Xv)({__typename:"_InternalLink",routeNameOrUrl:"classdetail"},{classId:S})),{},{passHref:!0,naked:!0,children:m}))}),(0,D.jsx)(g.Z,{variant:"body2",children:i&&i.dayTime&&function(e){if(!e.dayTime)return null;var i={},n={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,i){return n[e]-n[i]})).forEach((function(n){return i[n]=e.dayTime[n]})),Object.keys(i).length<5){var a=e.deliveryType;return Object.keys(i).map((function(e,n){return(0,D.jsxs)("div",{children:[i[e]&&i[e][0]&&!i[e][0].timesVary&&(0,D.jsxs)("div",{children:[(0,D.jsxs)("span",{className:"dayOfWeek",children:[e,": "]}),(0,k.vc)(i[e][0].startTime,"h:mm","h:mm")," ",(0,k.vc)(i[e][0].endTime,"h:mm","A")===(0,k.vc)(i[e][0].startTime,"h:mm","A")?"":(0,k.vc)(i[e][0].startTime,"h:mm","A")," ","- ",(0,k.vc)(i[e][0].endTime,"h:mm","h:mm A")," ",a&&11===a?"ET":""]},n),i[e]&&i[e][0]&&i[e][0].timesVary&&(0,D.jsxs)("div",{children:[(0,D.jsx)("span",{className:"dayOfWeek",children:e})," Times vary"]},n)]},"01"+n)}))}var t,s="";return Object.keys(i).forEach((function(e){s+=e,i[e].length,t="Times vary"})),(0,D.jsxs)("div",{children:[(0,D.jsxs)("span",{className:"dayOfWeek",children:[s.substr(0,3)," - ",s.substr(s.length-3,s.length)]}),(0,D.jsx)("br",{}),t]})}}(i)}),(0,D.jsx)(g.Z,{variant:"body2",children:h})]}),(0,D.jsx)(u.Z,{item:!0,xs:!0,container:!0,justifyContent:"center",className:n.eventMobile,children:(0,D.jsx)(p.Z,{textAlign:"center",fontSize:"button.fontSize",lineHeight:"2rem",children:(0,D.jsx)(P,{teacherId:F})})}),(0,D.jsx)(u.Z,{item:!0,md:2,lg:3,container:!0,justifyContent:"center",className:n.eventMobile,children:(0,D.jsx)(p.Z,{textAlign:{xs:"left",lg:"center"},children:"paid"===d?(0,D.jsxs)("div",{children:[(0,D.jsx)(b.Z,T({},i)),(0,D.jsx)(j.Z,{affirmEligible:M,classes:n.affirmMsg,pageType:"product",affirmPromoMessage:c()(i,"affirm","")})]}):(0,D.jsx)(b.Z,{hidePromo:!0,salePrice:0,listPrice:"free"})})}),(0,D.jsx)(u.Z,{item:!0,xs:!0,container:!0,justifyContent:"center",className:n.eventMobile,children:(0,D.jsx)(Z.Z,{onClick:function(){return I&&sessionStorage&&sessionStorage.setItem("freeEvent_leadSource_"+N,I)},href:(C?c()(s,"storefront.signupLink"):c()(s,"storefront.shoppingcart"))+N+"&lead_source="+I,passHref:!0,naked:!0,children:(0,D.jsx)(v.Z,{className:n.button,variant:"contained",size:"large",color:"primary",children:y})})})]})}function w(e){var i,n=(0,a.Z)({},e),t=O(n),s=(0,x.Oc)(),r=s.config,l=s.prismicConfig,d=c()(l,"paid_product",""),o=c()(l,"free_product",""),m=c()(n,"label","free"),h=c()(n,"startDate","")?(0,k.vc)(n.startDate,"YYYY-MM-DD","MMM DD"):"",y=c()(n,"name",""),N=c()(n,"Facility.name","Online"),S=c()(n,"simple_signup",!1),F=S?o:d,C=c()(n,"id",""),I=c()(n,"Meeting[0].SessionFacilitator[0].teacher.id",""),M=c()(n,"lead_source",!1),_=n.deliveryType||11===n.deliveryType?"ET":"",w=c()(n,"affirmEligible","");return(0,D.jsxs)(u.Z,{container:!0,alignItems:"center",className:t.root2,children:[(0,D.jsx)(u.Z,{item:!0,xs:!0,container:!0,justifyContent:"center",className:t.eventMobile,children:(0,D.jsx)(g.Z,{variant:"body2",align:"center",className:t.eventDate,children:h})}),(0,D.jsxs)(u.Z,{item:!0,md:3,lg:4,className:t.eventMobile,children:[(0,D.jsx)(g.Z,{variant:"body2",children:(0,D.jsx)(Z.Z,T(T({},(0,f.Xv)({__typename:"_InternalLink",routeNameOrUrl:"classdetail"},{classId:C})),{},{passHref:!0,naked:!0,children:y}))}),(0,D.jsx)(g.Z,{variant:"body2",children:n&&n.dayTime&&(i=n,Object.keys(i.dayTime).map((function(e,n){return(0,D.jsx)("span",{children:i.dayTime[e]&&i.dayTime[e][0]&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)("span",{children:[(0,k.vc)(e,"dd","dddd")," "]}),(0,D.jsxs)("span",{children:[(0,k.vc)(i.dayTime[e][0].startTime,"h:mm","h:mm A")," -"," ",(0,k.vc)(i.dayTime[e][0].endTime,"h:mm","h:mm A")," ",_]})]})},n)}))[0])}),(0,D.jsx)(g.Z,{variant:"body2",children:N})]}),(0,D.jsx)(u.Z,{item:!0,xs:!0,container:!0,justifyContent:"center",className:t.eventMobile,children:(0,D.jsx)(p.Z,{textAlign:"center",fontSize:"button.fontSize",lineHeight:"2rem",children:(0,D.jsx)(P,{teacherId:I})})}),(0,D.jsx)(u.Z,{item:!0,md:2,lg:3,container:!0,justifyContent:"center",className:t.eventMobile,children:(0,D.jsx)(p.Z,{textAlign:{xs:"left",lg:"center"},children:"paid"===m?(0,D.jsxs)("div",{children:[(0,D.jsx)(b.Z,T({},n)),(0,D.jsx)(j.Z,{affirmEligible:w,classes:t.affirmMsg,pageType:"product",affirmPromoMessage:c()(n,"affirm","")})]}):(0,D.jsx)(b.Z,{hidePromo:!0,salePrice:0,listPrice:"free"})})}),(0,D.jsx)(u.Z,{item:!0,xs:!0,container:!0,justifyContent:"center",className:t.eventMobile,children:(0,D.jsx)(v.Z,{component:Z.Z,onClick:function(){return M&&sessionStorage.setItem("freeEvent_leadSource_"+C,M)},href:(S?c()(r,"storefront.signupLink"):"storefront.shoppingcart")+C+"&lead_source="+M,passHref:!0,naked:!0,className:t.button,variant:"contained",size:"large",color:"primary",children:F})})]})}},45118:function(e,i,n){"use strict";n.d(i,{i2:function(){return te},py:function(){return se},ZP:function(){return ae}});var a=n(40066),t=n(92809),s=n(67294),r=n(86010),l=n(27361),d=n.n(l),c=n(5152),o=n(24216),m=n(25838),u=n(58885),p=n(75150),g=n(46409),v=n(69713),k=n(80318),f=n(83789),h=n(18499),x=n(28818),y=n(61327),j=n(61606),b=n(8709),Z=n(74831),N=n(9989),S=n(42761),D=n(61769),F=n(46685),C=n(68751),T=n(71792),P=n(41120),I=n(8920),O=n(52663),M=n(17812),_=n(99956),w=n(22318),A=n(282),E=n(41749),L=n(80366),z=n(63457),B=n(60508),Y=n(52829),W=n(85893);function R(e,i){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);i&&(a=a.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),n.push.apply(n,a)}return n}function H(e){for(var i=1;i0&&(0,f.Z)(new Set(ge.map((function(e){return e.SessionFacilitator&&e.SessionFacilitator.length>0?e.SessionFacilitator&&e.SessionFacilitator[0]&&e.SessionFacilitator[0].facilitatorStatus&&"Teacher"===e.SessionFacilitator[0].facilitatorStatus&&e.SessionFacilitator[0].teacher&&e.SessionFacilitator[0].teacher.id:[]})))),ke=ve&&ve.length>1,fe=ke?Z.at:d()(ne,"OpClass[0].primaryTeacherId",0),he=re&&(6===re||7===re),xe=re&&2===re;oe.name=d()(te,"Facility.name","");var ye=d()(te,"Product.id",0),je="/product/".concat(ye),be=(0,h.aM)(j.Is,{skip:!ye,variables:{path:je},context:{local:!0},ssr:!1}).data,Ze=d()(be,"Product[0].catalog.affirmEligible",!1),Ne=d()(be,"Product[0].catalog.affirm",{}),Se=d()(be,"Product[0].catalog",{}),De=d()(be,"Product[0].catalog.listPrice",""),Fe=d()(be,"Product[0].catalog.promoPrice",""),Ce=d()(Se,"promo",void 0),Te=(0,h.aM)(j.F,{skip:!ne||!ne.kaptestCourseDetailSearch||!ne.kaptestCourseDetailSearch.productId,variables:{search:ne&&ne.kaptestCourseDetailSearch?ne.kaptestCourseDetailSearch.productId+"":""}}),Pe=U(),Ie=(0,I.Z)(),Oe=s.useState(!0),Me=(0,k.Z)(Oe,1)[0],_e=s.useState("xl"),we=(0,k.Z)(_e,1)[0],Ae=(0,z.Z)(Ie.breakpoints.down("sm")),Ee=s.useState(!1),Le=(0,k.Z)(Ee,2),ze=Le[0],Be=Le[1],Ye=d()(Te,"data.allProducts.edges[0].node",""),We=""!==d()(Ye,"product_description.class_description[0].title[0].text")?d()(Ye,"product_description.class_description"):d()(Ye,"product_description.description"),Re=!pe&&oe&&oe.address1&&null!==oe.address1,He=fe&&fe>0;return ie?"Error":ee?null:(0,W.jsxs)(O.Z,{onClose:function(){i()},"aria-labelledby":"course-details",open:n,fullWidth:Me,maxWidth:we,fullScreen:Ae,PaperProps:{square:!0},className:Pe.dialog,"data-slice-name":K,"data-class-id":q,children:[(0,W.jsx)(M.Z,{"aria-label":"close",className:Pe.closeButton,onClick:i,children:(0,W.jsx)(L.Z,{})}),(0,W.jsxs)(_.Z,{p:4,children:[(0,W.jsx)(B.Z,{pName:le,startDate:me,endDate:ue,facility:oe,daysOfWeek:undefined,liveOnlineClass:pe,status:ce,deliveryType:re,catalogData:R}),"no_price"!==$&&(0,W.jsxs)(W.Fragment,{children:[De>0&&(0,W.jsxs)(_.Z,{textAlign:"center",my:2,children:[(0,W.jsx)(w.Z,{variant:"body1",className:Pe.price,children:(0,W.jsx)(v.Z,{currency:"$",salePrice:Fe,listPrice:De})}),(0,W.jsx)(Y.Z,{affirmEligible:Ze,classes:Pe.affirmMsg,pageType:"landing",affirmPromoMessage:Ne})]}),Ce&&(0,W.jsx)(_.Z,{textAlign:"center",mb:2,className:Pe.promo,children:(0,W.jsx)(b.Z,H(H({},Ce),{},{showBold:!0}))}),t?(0,W.jsx)(_.Z,{textAlign:"center",mt:3,mb:4,children:(0,W.jsx)(A.Z,{component:g.Z,onClick:function(e){e.preventDefault(),Be(!0)},href:"#",naked:!0,variant:"contained",children:"Enroll"})}):"multiselect_event"!==$&&(0,W.jsx)(_.Z,{textAlign:"center",mt:3,mb:4,children:(0,W.jsx)(p.Z,{classId:a.toString(),bundles:r,addOnText:m?o:l,addOnTip:c,includeBundles:m,isFree:u,label:$,leadSource:P,catalogData:R,variant:"contained",color:"primary"})})]}),ze&&t&&(0,W.jsx)(S.Z,{open:ze,onClose:function(){Be(!1),i()},catalog:R,crossSaleProductDocument:t,classId:a.toString()}),(0,W.jsxs)(E.Z,{container:!0,spacing:2,children:[(0,W.jsxs)(E.Z,{item:!0,xs:12,children:[(0,W.jsx)(_.Z,{textAlign:"left",fontSize:"h6.fontSize",pb:1,children:"Classes subject to change or cancellation."}),(0,W.jsx)("br",{}),(he||u)&&se&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(w.Z,{variant:"h5",children:[he?"Event":"Class"," Description"]}),(0,W.jsx)(_.Z,{fontSize:"h5.fontSize",children:se})]}),(0,W.jsx)("br",{})]}),(0,W.jsxs)(E.Z,{item:!0,xs:12,md:9,children:[ge&&ge.length>0&&(0,W.jsx)(F.Z,{courseSessions:ge,modifyDate:!1,isOnsite:xe,isMultipleTeachers:ke}),We&&We.length>0&&(d()(We,"[0].title")||d()(We,"[0].summary"))&&(0,W.jsxs)(E.Z,{container:!0,spacing:4,className:Pe.description,children:[(0,W.jsx)(E.Z,{item:!0,xs:12,children:(0,W.jsx)(w.Z,{variant:"h4",children:"Class description"})}),We.map((function(e,i){return(0,W.jsx)(E.Z,{item:!0,xs:12,children:(0,W.jsxs)(_.Z,{fontSize:"h5.fontSize",children:[e.title&&(0,W.jsx)(C.Z,{render:e.title,htmlSerializer:T.x}),(0,W.jsx)(C.Z,{render:e.summary})]})},i)}))]}),(0,W.jsx)(_.Z,{mt:3,mb:3,fontSize:"h6.fontSize",children:"".concat(he?"Event":"Class"," Code: ").concat(de)})]}),(0,W.jsxs)(E.Z,{item:!0,xs:12,md:3,children:[Re&&(0,W.jsx)(N.P9,{facility:oe}),He&&(0,W.jsx)(D.FacultyCourseDetails,{teacherId:fe})]})]})]})]})}function K(e){var i=e.classId,n=e.cross_sale_Id,a=e.linkText,t=e.isFree,r=e.leadSource,l=e.catalogData,d=e.label,c=e.classType,o=s.useState(!1),u=(0,k.Z)(o,2),p=u[0],v=u[1];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(g.Z,{onClick:function(e){e.preventDefault(),window._etmc=window._etmc||[],window._etmc.push(["setOrgId","7209580"]),window._etmc.push(["trackPageView",{item:i}]),(0,m.YW)("Scheduler","Course Details Dialog",window.location.href),v(!0)},href:"#",noNext:!0,children:[c," ",a||"Course Details"]}),p&&(0,W.jsx)(V,{open:p,onClose:function(){v(!1)},classId:i,cross_sale_Id:n,isFree:t,leadSource:r,catalogData:l,dataSliceName:"class-detail-dialog",dataClassId:i,label:d})]})}var G=n(13258),q=n(69135),$=n(3646),X=n(1942),Q=n(37895);function J(e,i){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);i&&(a=a.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),n.push.apply(n,a)}return n}function ee(e){for(var i=1;i ../faculty/FacultyAvatar"]}}),ne=(0,P.Z)((function(e){var i,n,a,s,r,l,c;return{root:(n={borderTop:"2px solid "+e.palette.background.outline,paddingTop:e.spacing(2),paddingBottom:e.spacing(2),"&:hover":{background:e.palette.background.gray}},(0,t.Z)(n,e.breakpoints.down("md"),{height:"auto",minHeight:"130px",paddingLeft:e.spacing(1),paddingRight:e.spacing(1),alignItems:"start"}),(0,t.Z)(n,"& .MuiGrid-item",(i={},(0,t.Z)(i,e.breakpoints.down("md"),{paddingBottom:e.spacing(1)}),(0,t.Z)(i,"& .MuiTypography-body1",(0,t.Z)({},e.breakpoints.up("lg"),{fontSize:"1.6rem"})),i)),n),eventsBox:(0,t.Z)({border:"1px solid "+e.palette.background.outline},e.breakpoints.up("lg"),{paddingRight:e.spacing(4)}),dateDisplay:(0,t.Z)({paddingLeft:e.spacing(3),paddingRight:e.spacing(3)},e.breakpoints.down("md"),{paddingLeft:0,paddingRight:0,"& .MuiFormControlLabel-root":{marginRight:e.spacing(1)}}),displayDate:{"& div":{fontWeight:600}},showTime:(a={},(0,t.Z)(a,e.breakpoints.down("xs"),{display:"flex",justifyContent:"center"}),(0,t.Z)(a,e.breakpoints.up("sm"),{textAlign:"center"}),(0,t.Z)(a,e.breakpoints.up("lg"),{textAlign:"left"}),(0,t.Z)(a,"& .dayOfWeek",(0,t.Z)({display:"inline-block",minWidth:"45px"},e.breakpoints.down("xs"),{minWidth:"40px"})),a),classDetails:(s={},(0,t.Z)(s,e.breakpoints.down("lg"),{paddingTop:e.spacing(1)}),(0,t.Z)(s,"& a",{color:d()(e,"palette.class.linkColor")||e.palette.secondary.main}),s),facultyDetails:(0,t.Z)({alignSelf:"flex-end"},e.breakpoints.down("xs"),{display:"flex",justifyContent:"center"}),enrollBox:(r={display:"flex"},(0,t.Z)(r,e.breakpoints.up("lg"),{justifyContent:"flex-end"}),(0,t.Z)(r,e.breakpoints.down("md"),{marginRight:"auto"}),r),price:{alignSelf:"center"},button:{minWidth:"auto"},spevent:{"& a":{color:d()(e,"palette.class.linkColor")||e.palette.secondary.main}},affirmMsg:{"& p":{fontSize:"12px",margin:"0.5em 0 0","& a":{color:e.palette.text.primary}}},mobileBtn:(l={},(0,t.Z)(l,e.breakpoints.down("md"),{marginTop:e.spacing(3.5)}),(0,t.Z)(l,e.breakpoints.up("sm"),{display:"flex"}),(0,t.Z)(l,"& .MuiButton-root",{padding:e.spacing(1.375,2.25)}),(0,t.Z)(l,"& .MuiButton-label",{justifyContent:function(e){var i=e.listPrice;return""!==i||null!==i?"space-between":"center"}}),l),hideLgUp:(0,t.Z)({},e.breakpoints.up("lg"),{display:"none"}),hideMdDown:(0,t.Z)({},e.breakpoints.down("md"),{display:"none"}),discountPrice:(c={color:d()(e,"palette.text.textGray"),"& del":{color:d()(e,"palette.text.textGray")}},(0,t.Z)(c,e.breakpoints.up("xs"),{display:"flex",paddingRight:e.spacing(2)}),(0,t.Z)(c,e.breakpoints.down("sm"),{paddingBottom:e.spacing(2)}),c),checkbox:{paddingLeft:e.spacing(2),"&:hover":{backgroundColor:"transparent"},"&.MuiCheckbox-colorPrimary":{"&.Mui-checked":{"&:hover":{backgroundColor:"transparent"}}}}}}));function ae(e){var i=(0,a.Z)({},e.cls),n=e.includeBundles,t=e.handleClick,s=e.classType,r=e.showFacility,l=(0,u.Oc)(),c=l.config,g=l.query,k=c.theme,f=i.startDate,h=i.endDate,x=i.classId,y=i.teacherId,j=i.bundles,b=i.addonText,Z=i.addonTip,N=i.addonIncludedText,S=i.scheduler_cross_sell,D=parseInt(d()(i,"salePrice")),F=parseInt(d()(i,"listPrice")),C=D