"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1745],{7684:function(e,t,r){r.d(t,{Z:function(){return g}});var a=r(92809),n=(r(67294),r(86010)),o=r(27361),i=r.n(o),l=r(52829),s=r(69713),c=r(8709),d=r(41120),p=r(99956),u=r(85893);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function b(e){for(var t=1;t div",{background:"#fefefe"}),(0,a.Z)(t,"& .MuiInputLabel-outlined",{transform:"translate(24px, 15px) scale(1)",color:h()(e,"palette.text.primary"),fontSize:"1.6rem"}),(0,a.Z)(t,"& .MuiAutocomplete-popupIndicator",{color:h()(e,"palette.text.primary")}),t),inputRoot:{'&[class*="MuiOutlinedInput-root"] .MuiAutocomplete-input:first-child':{paddingLeft:e.spacing(2)}},noOptions:{color:h()(e,"palette.text.primary"),paddingLeft:e.spacing(3)}}}));var k=function(e){var t=(0,n.useState)(!1),r=t[0],a=t[1],o=e.result,i=e.searchValue,l=e.setSearchValue,s=e.setSelectedOption,c=e.error,b=e.setError,h=e.handleKeyPress,x=f();return(0,g.jsx)(d.ZP,{classes:x,autoHighlight:!0,options:o,filterOptions:function(e){return e.slice(0,5)},getOptionLabel:function(e){return e.item.title},renderOption:function(e){return(0,g.jsx)(p.Z,{style:{width:"100%"},href:e.item.url,children:(0,g.jsx)(u.Z,{dangerouslySetInnerHTML:{__html:e.item.title.replace(/\xae/g,"\xae")}})})},onHighlightChange:function(e,t){s(t),b(!1)},getOptionSelected:function(e,t){return e.item.url===t.item.url},onChange:function(e,t){"Enter"===e.key&&window.open(t.item.url,"_self")},onKeyPress:function(e){"Enter"===e.key&&h()},renderInput:function(e){return(0,g.jsx)(m.Z,y(y({},e),{},{label:""===i?"Enter test name":"",error:c,helperText:c&&"Please enter a valid option",InputLabelProps:{shrink:!1},variant:"outlined",onChange:function(e){e.preventDefault,l(e.target.value)}}))},open:r,onInputChange:function(){return a(!0)},onClose:function(){return a(!1)}})},v=r(74221),_=r(87821),j=r(96486),Z=r(58885),w=(0,c.Z)((function(e){var t;return{autoComplete:{"& input":{width:e.spacing(44),height:e.spacing(6.5),marginRight:e.spacing(3)}},button:(t={verticalAlign:"top",height:"51.25px"},(0,a.Z)(t,e.breakpoints.down("md"),{margin:"10px 0 0 0",width:"350px"}),(0,a.Z)(t,"backgroundColor",(function(t){var r=t.searchButtonStyle,a=void 0===r?"primary":r;return"promo"===a?"#05cdfe":"primary"===a?h()(e,"palette.secondary.main"):h()(e,"palette.background.default")})),(0,a.Z)(t,"color",(function(t){var r=t.searchButtonStyle,a=void 0===r?"primary":r;return"promo"===a?h()(e,"palette.promo.text"):"primary"===a?h()(e,"palette.text.secondary"):h()(e,"palette.text.primary")})),(0,a.Z)(t,"&:hover",{backgroundColor:function(e){return"promo"===e.searchButtonStyle&&"#00A5CD"}}),t)}}));function C(e){var t=e.searchNavigation,r=e.searchButtonStyle,a=(0,Z.Oc)().config,n=h()(a,"ampFormDomain"),o=w({searchButtonStyle:r});return(0,g.jsx)("div",{className:o.autoComplete,children:(0,g.jsxs)("form",{className:"sample-form",method:"post",target:"_top","action-xhr":"https://amp.dev/documentation/examples/api/echo",children:[(0,g.jsxs)("amp-autocomplete",{filter:"none","min-characters":"2","submit-on-enter":!0,on:"select:AMP.navigateTo(url=event.value)",src:"".concat(n,"/rest/mocha/search"),query:"term",prefetch:!0,children:[(0,g.jsx)("input",{type:"search",name:"title"}),(0,g.jsx)("template",{type:"amp-mustache",id:"amp-template-custom",children:(0,g.jsx)("div",{className:"slug-item","data-value":"{{url}}",children:(0,g.jsx)("span",{style:{color:"#000"},className:"autocomplete-link",children:"{{ title }}"})})})]}),(0,g.jsx)(s.Z,{variant:"contained",className:o.button,children:t?"community home page"===t?"Find Your Prep":"Take a Free Practice Test":"Find Your Test"})]})})}var B=(0,c.Z)((function(e){var t;return{searchContainer:function(e){return{height:"100px",display:"flex",alignItems:"center",justifyContent:"practice test page"===e.searchNavigation&&"center"}},searchContent:function(t){return(0,a.Z)({display:"flex",justifyContent:"community home page"===t.searchNavigation?"flex-start":"center",margin:t.searchNavigation&&0,padding:t.searchNavigation&&0},e.breakpoints.down("md"),{flexDirection:"column",alignItems:function(e){return e.isHome?"flex-start":"center"}})},button:(t={fontFamily:"Open Sans Bold, sans-serif",marginLeft:e.spacing(1),height:"51.25px"},(0,a.Z)(t,e.breakpoints.down("md"),{margin:"10px 0 0 0",width:"350px"}),(0,a.Z)(t,"borderRadius",e.spacing(.5)),(0,a.Z)(t,"backgroundColor",(function(t){var r=t.searchButtonStyle,a=void 0===r?"primary":r;return"promo"===a?"#05cdfe":"primary"===a?(0,j.get)(e,"palette.secondary.main"):(0,j.get)(e,"palette.background.default")})),(0,a.Z)(t,"color",(function(t){var r=t.searchButtonStyle,a=void 0===r?"primary":r;return"promo"===a?(0,j.get)(e,"palette.promo.text"):"primary"===a?(0,j.get)(e,"palette.text.secondary"):(0,j.get)(e,"palette.text.primary")})),(0,a.Z)(t,"&:hover",{backgroundColor:function(e){return"promo"===e.searchButtonStyle&&"#00A5CD"}}),t)}}));var S=function(e){var t,r=e.testsArray,a=e.searchNavigation,c=e.searchButtonStyle,d=e.isHome,p=B({searchNavigation:a,searchButtonStyle:c,isHome:d}),u=(0,n.useState)(""),m=u[0],b=u[1],h=(0,n.useState)(""),x=h[0],y=h[1],f=(0,n.useState)(!1),j=f[0],Z=f[1],w=[],S=[],O=(0,o.useAmp)();r.length>0&&r.map((function(e){t=a&&"practice test page"===a;var r=e.test_name&&e.test_name[0].text,n=e.fuzzy_terms&&e.fuzzy_terms[0].text.split(","),o=t?e.practice_page_links&&(0,_._)(e.practice_page_links):e.home_page_links&&(0,_._)(e.home_page_links);t&&o?S.push({title:r,tags:n,url:o}):o&&w.push({title:r,tags:n,url:o})}));var N=new v.Z(t?S:w,{caseSensitive:!1,shouldSort:!0,threshold:.3,location:0,distance:10,maxPatternLength:32,minMatchCharLength:1,keys:[{name:"title",weight:.7},{name:"tags",weight:.3}]}).search(m),T=function(){x?(window.open(x.item.url,"_self"),Z(!1)):Z(!0)};return(0,g.jsx)(i.Z,{position:"relative",className:p.searchContainer,children:(0,g.jsx)(l.Z,{maxWidth:"md",className:p.searchContent,children:O?(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(C,{searchNavigation:a,searchButtonStyle:c})}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(k,{result:N,searchValue:m,setSearchValue:b,setSelectedOption:y,error:j,setError:Z,handleKeyPress:T}),(0,g.jsx)(s.Z,{className:p.button,variant:"contained",onClick:T,children:a?"community home page"===a?"Find Your Prep":"Take a Free Practice Test":"Find Your Test"})]})})})}},87821:function(e,t,r){r.d(t,{_:function(){return u}});var a=r(92809),n=(r(67294),r(18463)),o=r(22318),i=r(30115),l=r(46409),s=r(74619),c=r(75833),d=r(85893),p=(0,i.Z)((function(e){var t;return{title:{fontFamily:"Open Sans Bold, sans-serif"},card:(t={boxShadow:"0 2px 4px 0 #e0e0e0, inset 0 0 0 2px #e0e0e0",borderRadius:"4px",transition:"box-shadow .3s ease,border .3s ease",fontSize:"16px",fontWeight:700,color:"#000",width:"calc(100% / 6)",height:"4.6em",float:"left",margin:"20px 40px 20px 0",padding:"0 10px",lineHeight:"1.6em"},(0,a.Z)(t,e.breakpoints.down("md"),{width:"calc(100% / 4)"}),(0,a.Z)(t,e.breakpoints.down("sm"),{margin:"10px",width:"calc(50% - 20px)"}),(0,a.Z)(t,"&:hover",{boxShadow:"0 4px 4px 0 #e0e0e0, inset 0 0 0 3px #e0e0e0",transition:"box-shadow .3s ease,border .3s ease"}),t),cardLink:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",borderBottom:0,"&:hover":{borderBottom:0}}}})),u=function(e){return e&&e.url?e.url:e&&"https://www.kaptest.com/".concat(e._meta&&(0,s.JU)(e._meta.uid))};t.Z=function(e){var t=e.test,r=p(),a=c.RichText.asText(t.test_name);return(0,d.jsx)(n.Z,{className:r.card,children:(0,d.jsx)(l.Z,{href:u(t&&t.home_page_links),target:"_self",className:r.cardLink,children:(0,d.jsx)(o.Z,{className:r.title,dangerouslySetInnerHTML:{__html:a.replace(/\xae/g,"\xae")}})})})}},29475:function(e,t,r){r.d(t,{Z:function(){return l}});var a=r(27361),n=r.n(a),o=r(68751),i=r(58885);function l(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"billboard",a=(0,i.Oc)(),l=a.config,s=a.prismicConfig,c="billboard"===r?"btn_link.":"",d=n()(s,"see_schedules",""),p=n()(s,"add_to_cart",""),u=n()(s,"product_detail_page",""),m=n()(s,"details",""),b=n()(s,"free_product",""),h=n()(s,"view_options",""),g=""!==n()(t,c+"sub_product[0].name[0].text",""),x=[n()(t,c+"catalog.classId")],y={link:"/",param:null,label:"",isExternal:!1,style:n()(t,"btn_style")?n()(t,"btn_style"):"primary",classIds:void 0};switch(e){case"add to cart":x=n()(t,c+"bundles")?n()(t,c+"bundles").reduce((function(e,t){var r=t.catalog;return r?(e.push(r.classId),e):e}),x):x,y.classIds=x.join(","),y.link=n()(t,c+"catalog.classId")?l.storefront.shoppingcart+x.join(","):"/",y.label=n()(t,"btn_label")?o.Z.asText(t.btn_label):g?h:p;break;case"add free trial to cart":y.link=n()(t,c+"catalog.trialClassId")?l.storefront.shoppingcart+n()(t,c+"catalog.trialClassId"):"/",y.label=n()(t,"btn_label")?o.Z.asText(t.btn_label):p,y.classIds=n()(t,c+"catalog.trialClassId");break;case"scheduler":case"see scheduler":y.param=n()(t,"scheduler_param",void 0)?o.Z.asText(n()(t,"scheduler_param")):"","billboard"===r?(y.link=n()(t,"btn_link",void 0),y.label=n()(t,"btn_label",void 0)?o.Z.asText(t.btn_label):d):(y.link=n()(t,"scheduler_link",void 0),y.label=n()(t,"scheduler_label",void 0)?o.Z.asText(t.scheduler_label):d);break;case"product detail":y.link=n()(t,"pdp_link",void 0),y.label=n()(t,"pdp_label",void 0)?o.Z.asText(t.pdp_label):u;break;case"simple sign up":y.link=n()(t,c+"catalog.classId")?n()(l,"storefront.signupLink","#")+n()(t,c+"catalog.classId"):void 0,y.label=n()(t,"btn_label")?o.Z.asText(t.btn_label):b,y.classIds=n()(t,c+"catalog.classId");break;case"show navigator dialog":y.link=n()(t,"btn_link",void 0)?"/"+n()(t,"btn_link._meta.uid",void 0)+"?showBackdropNavigator=true":void 0,y.label=n()(t,"btn_label")?o.Z.asText(t.btn_label):"";break;case"external purchase":y.link=n()(t,"external.url"),y.label=""!==n()(t,"external_label[0].text","")?o.Z.asText(t.external_label):"Buy",y.isExternal=!0;break;case"no label":y.link="_externallink"===n()(t,"btn_link.__typename","internallink").toLowerCase()?n()(t,"btn_link.url"):n()(t,"btn_link");break;case"internal-button":y.link="_externallink"===n()(t,"cta_btn_link.__typename","internallink").toLowerCase()?n()(t,"cta_btn_link.url"):n()(t,"cta_btn_link"),y.isExternal="_externallink"===n()(t,"cta_btn_link.__typename","internallink").toLowerCase(),y.label=n()(t,"cta_btn_label",void 0)?o.Z.asText(t.cta_btn_label):m,y.param="";break;case"internal-link":y.link="_externallink"===n()(t,"cta_text_link.__typename","internallink").toLowerCase()?n()(t,"cta_text_link.url"):n()(t,"cta_text_link"),y.isExternal="_externallink"===n()(t,"cta_text_link.__typename","internallink").toLowerCase(),y.label=n()(t,"cta_text_link",void 0)?o.Z.asText(t.cta_btn_label):m,y.param="";break;default:y.link="_externallink"===n()(t,"btn_link.__typename","internallink").toLowerCase()?n()(t,"btn_link.url"):n()(t,"btn_link"),y.isExternal="_externallink"===n()(t,"btn_link.__typename","internallink").toLowerCase(),y.param=n()(t,"scheduler_param",void 0)?o.Z.asText(n()(t,"scheduler_param")):"",y.label=n()(t,"btn_label",void 0)?o.Z.asText(t.btn_label):m}return y}},21745:function(e,t,r){r.r(t),r.d(t,{default:function(){return L},BasicBillboard:function(){return A}});var a=r(92809),n=r(67294),o=r(86010),i=r(27361),l=r.n(i),s=r(69135),c=r(5152),d=r(12918),p=r(18499),u=r(40590),m=r(52161),b=r(74619),h=r(29475),g=r(46409),x=r(68751),y=r(7684),f=r(32931),k=r(58885),v=r(41120),_=r(99956),j=r(43832),Z=r(41749),w=r(282),C=r(22318),B=r(25282),S=r(48122),O=r(41421),N=r(85893);function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function P(e){for(var t=1;t ../components/StateDropdown"]}}),D=(0,c.default)((function(){return r.e(8551).then(r.bind(r,8551))}),{ssr:!1,loadableGenerated:{webpack:function(){return[8551]},modules:["../src/slices/Billboard.js -> ../../src/components/BillboardVideo"]}}),H=(0,v.Z)((function(e){return{billboardContainer:function(t){return{width:"100%",minHeight:"auto",position:"relative",overflow:"hidden",backgroundImage:"url(".concat(l()(t,"bg_image",void 0),")"),backgroundColor:l()(t,"data.primary.bg_color",void 0)?"white"===t.data.primary.bg_color?"transparent":(0,b.Uh)(t.data.primary.bg_color,"dark"===l()(e,"palette.type")):(0,b.TN)(t.background,e),backgroundSize:"cover",backgroundRepeat:"no-repeat","& .MuiButton-root":{borderRadius:"10px"},"& .MuiButton-containedPrimary":{color:t.isAmp&&e.palette.text.secondary,backgroundColor:t.isAmp&&l()(e,"palette.secondary.main"),"&.primary-dark":{"&:hover":{backgroundColor:e.palette.billboard.darkGray,borderRadius:"10px"}}},"& .MuiButton-containedSecondary":{color:e.palette.secondary.main,backgroundColor:"transparent",boxShadow:"inset 0 0 0 2px "+l()(e,"palette.secondary.main"),"&.secondary":{"&:hover":{color:e.palette.secondary.dark,boxShadow:"inset 0 0 0 2px "+e.palette.secondary.dark,borderRadius:"10px"}}},"& .primary-dark":{backgroundColor:e.palette.black,color:e.palette.background.default},"& .secondary-dark":{backgroundColor:"transparent",color:e.palette.black,boxShadow:"inset 0 0 0 2px "+e.palette.black,"&:hover":{color:e.palette.billboard.darkGray,boxShadow:"inset 0 0 0 2px "+e.palette.billboard.darkGray,borderRadius:"10px"}},"& .secondary":{"& > div a":{background:"transparent","&:hover":{color:e.palette.secondary.dark,boxShadow:"inset 0 0 0 2px "+e.palette.secondary.dark,borderRadius:"10px"}}},"& .secondary-white":{"& > div a":{color:e.palette.background.default,background:"transparent",boxShadow:"inset 0 0 0 2px "+e.palette.primary.contrastText,"&:hover":{color:e.palette.billboard.lightGray,boxShadow:"inset 0 0 0 2px "+e.palette.billboard.lightGray,borderRadius:"10px"}}},"& .secondary-black":{"& > div a":{color:e.palette.text.primary,background:"transparent",boxShadow:"inset 0 0 0 2px "+e.palette.black,"&:hover":{color:e.palette.billboard.darkGray,boxShadow:"inset 0 0 0 2px "+e.palette.billboard.darkGray,borderRadius:"10px"}}},"& .primary-black":{"& > div a":{color:e.palette.text.primary,background:e.palette.background.default,"&:hover":{backgroundColor:e.palette.billboard.lightGray,borderRadius:"10px"}}},"& .primary-white":{"& > div a":{color:e.palette.background.default,background:e.palette.text.primary,"&:hover":{backgroundColor:e.palette.billboard.darkGray,borderRadius:"10px"}}}}},billboardImg:(0,a.Z)({},e.breakpoints.up("md"),{minHeight:"500px"}),stacked:function(t){return(0,a.Z)({},e.breakpoints.down("sm"),{backgroundPosition:"center bottom",alignItems:"flex-start",minHeight:l()(t,"data.primary.bg_image.small.dimensions.height")>640?"600px":"auto",backgroundSize:"cover"})},billboardContainerHalf:{minHeight:"250px",display:"flex",alignItems:"center"},billboardContent:function(t){var r;return r={width:"100%",position:"relative",zIndex:999},(0,a.Z)(r,e.breakpoints.down("sm"),{paddingBottom:l()(t,"data.primary.teacher")?e.spacing(5):l()(t,"data.primary.bg_image.small.dimensions.height")>640&&e.spacing(12),paddingTop:l()(t,"data.primary.bg_image.small.dimensions.height")>640&&e.spacing(8)}),(0,a.Z)(r,e.breakpoints.up("sm"),{textAlign:""===t.label||null===t.label?"center":t.label}),r},bannertext:function(t){return{color:l()(t,"data.primary.title_color","inherit"),alignItems:"center","& h1":(0,a.Z)({},e.breakpoints.down("sm"),{lineHeight:t.displaySearch||t.isHome?"2.6rem":"6rem"}),"& p, h1, h2, h3, h4, h5, h6":{color:l()(t,"data.primary.title_color","inherit"),"& a":{color:"inherit",textDecoration:"none",borderBottom:"1px dotted","&:hover":{borderBottom:"1px solid",color:l()(t,"data.primary.title_color","inherit")}}},"& :last-child":{marginBottom:0}}},summarytext:function(t){return{color:l()(t,"data.primary.text_color","inherit"),"& p, h1, h2, h3, h4, h5, h6":{color:l()(t,"data.primary.text_color","inherit"),"& a":{"&:hover":{color:l()(t,"data.primary.text_color","inherit")}}},"& img":{margin:e.spacing(1)},"& p:first-child":{marginBottom:0}}},basicBannertext:{color:l()(e,"palette.booksonline.bannerTextColor","inherit"),alignItems:"center","& p, h1, h2, h3, h4, h5, h6":{color:l()(e,"palette.booksonline.bannerTextColor","inherit"),"& a":{color:"inherit",textDecoration:"none",borderBottom:"1px dotted","&:hover":{borderBottom:"1px solid",color:l()(e,"palette.booksonline.bannerTextColor","inherit")}}},"& :last-child":{marginBottom:0}},basicSummarytext:{color:l()(e,"palette.booksonline.bannerTextColor","inherit"),"& p, h1, h2, h3, h4, h5, h6":{color:l()(e,"palette.booksonline.bannerTextColor","inherit"),"& a":{"&:hover":{color:l()(e,"palette.booksonline.bannerTextColor","inherit")}}},"& img":{margin:e.spacing(1)}},teacherName:function(t){return(0,a.Z)({color:l()(t,"data.primary.text_color","inherit"),"& p, h1, h2, h3, h4, h5, h6":{color:l()(t,"data.primary.text_color","inherit"),marginBottom:0,alignItems:"flex-end","& a":{"&:hover":{color:l()(t,"data.primary.text_color","inherit")}}},marginTop:e.spacing(4),flexDirection:"column",textAlign:"right",display:"flex",alignItems:"flex-end",justifyContent:"flex-end"},e.breakpoints.down("sm"),{marginTop:260,textAlign:"left",alignItems:"flex-start"})},icon:{maxWidth:"100%"},bbButton:(0,a.Z)({padding:e.spacing(1.375,3),borderRadius:e.spacing(.5),margin:function(t){return"right"===t.label?e.spacing(2,0,0,2):e.spacing(2,2,0,0)},whiteSpace:"nowrap",maxWidth:"100%",width:l()(e,"overrides.MuiButton.root.buttonSize",210),minWidth:"fit-content"},e.breakpoints.down("md"),{width:function(e){return e.isHome&&"350px"}}),topButton:{margin:e.spacing(2,0,0,0),"& > div > a":{width:l()(e,"overrides.MuiButton.root.buttonSize",210)},"&:last-child a":{marginRight:function(e){return"right"===e.label&&0}}},priceContainer:{"& div:first-child":{opacity:1},"& p":{marginTop:0}},promoButton:{height:e.spacing(6.25),borderRadius:e.spacing(.5),backgroundColor:"#05cdfe",color:l()(e,"palette.promo.text"),"&:hover":{backgroundColor:"#00A5CD"}}}}));function L(e){var t,r=(0,s.useAmp)(),i=(0,S.mN)(),c=(0,k.Oc)().query,v=l()(e,"data.primary.video_id[0].text",void 0),T=l()(e,"data.primary.icon",void 0),L=l()(e,"data.primary.bar_state","NO"),A=l()(e,"label","center"),E=e.data&&e.data.fields,R=l()(e,"data.primary.billboard_style","FULL"),M=!(!E||!E[0]||null!==E[0].btn_link),F="yes"===l()(e,"data.primary.display_search","no"),z=l()(e,"data.primary.search_navigation",void 0),G=l()(e,"data.primary.search_button_style","primary"),W=e.isHome;if(F){var V=(0,p.aM)(O.CS),Y=V.loading,Q=V.error,J=V.data;if(t=l()(J,"allHomepages.edges[0].node.all_test",void 0),Q)return(0,N.jsx)(d.default,{});if(Y)return(0,N.jsx)(m.Z,{})}var K=l()(e,"data.primary.title[0].text",void 0)?(0,N.jsx)(x.Z,{render:l()(e,"data.primary.title",void 0)}):void 0,U=l()(e,"data.primary.summary",void 0)?(0,N.jsx)(x.Z,{render:l()(e,"data.primary.summary",void 0)}):e.summary,q=l()(e,"data.primary.teacher",void 0)?(0,N.jsx)(x.Z,{render:l()(e,"data.primary.teacher",void 0)}):void 0,X=l()(e,"data.primary.description",void 0)?(0,N.jsx)(x.Z,{render:l()(e,"data.primary.description",void 0)}):e.description,$=l()(e,"data.primary.product.catalog",void 0),ee=l()(e,"data.primary.primary_product_style","primary"),te=l()(e,"data.primary.product",void 0),re=l()(e,"data.primary.secondary_product_style","secondary"),ae=l()(e,"data.primary.secondary_product",void 0),ne=l()(e,"data.primary.product.price_msg",void 0),oe=!1!==l()(e,"data.primary.show_price.product"),ie=H(P(P({},e),{},{isAmp:r,displaySearch:F,isHome:W,label:A})),le=function(e){return function(t){t.preventDefault(),e&&i.pushRoute("page",P(P({},c),{},{csjId:e}))}};return(0,N.jsx)("div",{className:"billboardSlice",children:(0,N.jsx)("div",{className:(0,o.Z)(ie.billboardContainer,(0,a.Z)({},ie.billboardContainerHalf,"HALF"===R)),children:(0,N.jsxs)(u.Xd,{noLazy:!0,src:e.data&&e.data.primary&&e.data.primary.bg_image,cover:!0,className:"".concat(ie.billboardImg," ").concat(ie.stacked),children:[v&&(0,N.jsx)(D,{videoId:v}),"BANNER"===R?(0,N.jsx)(_.Z,{className:ie.billboardContent,py:3,children:(0,N.jsx)(j.Z,{maxWidth:"xl",children:(0,N.jsxs)(Z.Z,{container:!0,direction:"row",children:[(0,N.jsxs)(Z.Z,{item:!0,sm:12,md:8,className:ie.bannertext,children:[K,X]}),M?null:(0,N.jsx)(Z.Z,{item:!0,sm:12,md:8,lg:4,children:(0,N.jsx)(Z.Z,{container:!0,justifyContent:{lg:"flex-end"},children:E&&E.map((function(e,t){var r=(0,h.Z)(e.navigation,e);return(0,N.jsx)(Z.Z,{item:!0,children:r.link&&(0,N.jsx)(w.Z,{component:g.Z,href:r.link,param:r.param,passHref:!0,naked:!0,variant:"contained",color:(0,b.QZ)(r.style),className:(0,o.Z)(ie.bbButton,r.style),children:r.label})},t)}))})})]})})}):(0,N.jsx)(_.Z,{className:ie.billboardContent,pt:F&&"community home page"===z?23:"HALF"===R?5:15,pb:"HALF"===R||q?5:15,children:(0,N.jsxs)(j.Z,{maxWidth:"flush-left"===A||!0===F?"xl":"md",children:[(0,N.jsx)(Z.Z,{container:!0,direction:"row",justifyContent:"flush-left"===A||"left"===A?"flex-start":"center",children:(0,N.jsxs)(Z.Z,{item:!0,xs:12,md:"flush-left"===A?8:12,className:ie.bannertext,children:[T&&(0,N.jsx)(u.ZP,{src:T,className:ie.icon}),!K&&$&&(0,N.jsx)(C.Z,{variant:"h4",component:"h1",gutterBottom:!0,children:$.productName}),K,(0,N.jsxs)("span",{className:ie.summarytext,children:[U,X]}),$&&(0,N.jsx)(_.Z,{mt:2,className:ie.priceContainer,children:(0,N.jsx)(y.Z,{promoColor:ee,catalog:$,showPrice:oe,priceMsg:ne,classes:ie})}),F&&(0,N.jsx)(N.Fragment,{children:(0,N.jsx)(f.Z,{testsArray:t,searchNavigation:z,searchButtonStyle:G,isHome:W})}),$&&oe&&(0,N.jsxs)(_.Z,{children:[(0,N.jsx)(_.Z,{display:"inline-block",className:(0,o.Z)(ee,ie.topButton),children:(0,N.jsx)(B.NavigationActionButton,{color:(0,b.QZ)(ee),product:te,onCrossSellJourneyStart:le})}),ae&&(0,N.jsx)(_.Z,{display:"inline-block",className:(0,o.Z)(re,ie.topButton),children:(0,N.jsx)(B.NavigationActionButton,{color:(0,b.QZ)(re),product:ae,onCrossSellJourneyStart:le})})]}),"YES"===L&&(0,N.jsx)(I,{type:"bar",showButton:!0}),l()(E,"[0].btn_link")&&(0,N.jsx)(_.Z,{mt:2,children:E.map((function(e,t){var r=(0,h.Z)(e.navigation,e);return(0,N.jsx)(n.Fragment,{children:r.link&&(0,N.jsx)(w.Z,{component:g.Z,href:"string"===typeof r.link?r.link.replace(/--/g,"/"):r.link,param:r.param,passHref:!0,naked:!0,isExternal:r.isExternal,variant:"contained",color:(0,b.QZ)(r.style),className:(0,o.Z)(ie.bbButton,r.style,(0,a.Z)({},ie.promoButton,"promo"===r.style)),children:r.label},t)},t)}))})]})}),q&&(0,N.jsx)(Z.Z,{container:!0,justifyContent:"space-around",children:(0,N.jsx)(Z.Z,{item:!0,xs:10,md:6,lg:8,className:ie.teacherName,children:q})})]})})]})})})}function A(e){var t=H(e),r=e.title,a=e.summary,n=e.description;return(0,N.jsx)("div",{className:t.billboardContainer,children:(0,N.jsx)(_.Z,{className:t.billboardContent,py:9,children:(0,N.jsx)(j.Z,{maxWidth:"xl",children:(0,N.jsx)(Z.Z,{container:!0,direction:"row",justifyContent:"center",children:(0,N.jsxs)(Z.Z,{item:!0,sm:12,className:t.basicBannertext,children:[r,(0,N.jsxs)("span",{className:t.basicSummarytext,children:[a,n]})]})})})})})}}}]);