"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5094,5832],{52084:function(e,t,r){r.d(t,{Z:function(){return p}});var n=r(92809),a=r(27361),i=r.n(a),c=r(43832),o=r(99956),s=r(41749),l=r(41120),u=(r(67294),r(47534)),d=r(85893),m=(0,l.Z)((function(e){return{root:function(t){var r;return r={minWidth:"25%"},(0,n.Z)(r,e.breakpoints.up("md"),{maxWidth:t.maxWidth?"25%":"none"}),(0,n.Z)(r,e.breakpoints.down("md"),{minWidth:"33%"}),r}}}));function p(e){var t=m(e),r=!!i()(e,"title[0][0].text",void 0)&&""!==i()(e,"title[0][0].text",void 0)&&i()(e,"title",""),n=!!e.rows;return(0,d.jsxs)(c.Z,{maxWidth:"xl",children:[r&&(0,d.jsx)(u.default,{data:{fields:r.map((function(e){return{text:e}}))},zeroB:!0,label:"center"}),(0,d.jsx)(o.Z,{pb:8,pt:8,children:(0,d.jsx)(s.Z,{container:!0,justifyContent:"center",alignItems:"stretch",spacing:n?0:2,children:e.children&&e.children.map((function(e,r){return(0,d.jsx)(s.Z,{item:!0,xs:12,md:!n,className:t.root,align:"center",children:e},r)}))})})]})}},52829:function(e,t,r){r.d(t,{Z:function(){return x}});var n=r(67294),a=r(69135),i=r(27361),c=r.n(i),o=r(40590),s=r(68751),l=r(58885),u=r(8920),d=r(10861),m=r(11163),p=r(96486),f=r(35942),h=r(85893);function x(e){var t=e.affirmColorTheme,r=e.affirmEligible,i=e.affirmPromoMessage,x=e.classes,j=e.pageType,g=e.Img,b=e.product,P=e.bundles,v=(0,l.Oc)(),y=v.config,w=v.query,Z=v.prismicConfig,k=v.country,S=(0,a.useAmp)(),D=(0,u.Z)(),C="dark"===c()(D,"palette.type"),M=c()(y,"affirm.logoPath")&&!S&&C?c()(y,"affirm.logoPath"):"DARK"===t?"/static/images/affirm_white_logo-solid_bg.svg":"/static/images/affirm_logo.svg",_="affirm logo",N=(0,m.useRouter)(),F=(0,d.Qc)(N.asPath,!0).path,T=function(e,t,r){return r||(r=c()(e,"affirm")),t&&t.classIds&&t.classIds.length>0&&(t=Object.values({key:{catalog:t}})),t&&t.length>0&&e&&r?(0,p.reduce)(t,(function(t,n){var a=n.catalog;if(!(a&&a.affirm&&a.affirm.ala&&a.affirm.link))return r;var i=e&&e.affirm&&parseInt((0,f.Zx)(e),10),c=a&&a.affirm&&parseInt((0,f.Zx)(a),10),o=i+c,s=a.affirm.ala.replace(c,o),l=a.affirm.link.replace(a.promoPrice,e.promoPrice+a.promoPrice);return i&&{ala:s,link:l}}),r):r}(b,P,i),I=T&&c()(T,"ala",void 0),O=T&&decodeURIComponent(c()(T,"link",void 0)),W=T&&O?O.indexOf("kaptest")>-1?O&&O.replace("https://www.kaptest.com","https://www.kaptest.com".concat(F)):O&&O.replace("https://www.manhattanprep.com","https://www.manhattanprep.com".concat(F)):void 0;return(0,n.useEffect)((function(){window&&window.affirm&&window.affirm.ui&&window.affirm.ui.ready()&&k&&"US"===k&&window.affirm.ui.refresh()})),(0,h.jsx)(h.Fragment,{children:k&&"US"===k&&(0,h.jsx)(h.Fragment,{children:w&&"1"===w.automation?(0,h.jsx)("span",{}):"product"===j||"landing"===j?r&&T&&(0,h.jsx)("span",{className:x,children:(0,h.jsx)("p",{children:(0,h.jsx)("a",{href:"".concat(W),children:I})})}):(0,h.jsx)("span",{className:x,children:(0,h.jsxs)("p",{children:[s.Z.asText(Z.affirm),(0,h.jsx)(o.$V,{noLazy:!0,src:{url:M,alt:_,dimensions:{width:50,height:20}},className:g,ariaLabel:_}),". ",(0,h.jsx)("a",{href:"/affirm",children:"Learn More"})]})})})})}},69713:function(e,t,r){r.d(t,{Z:function(){return o}});r(67294);var n=r(27361),a=r.n(n),i=r(58885),c=r(85893);function o(e){var t=e.classes,r=e.showStrikeThru,n=e.priceButton,o=(0,i.Oc)(),s=o.query,l=o.prismicConfig,u=a()(l,"no_price_call",""),d=e&&e.currency||"USD",m="USD"===d||"$"===d?"$":e&&e.currency+" $",p=a()(e,"priceUnit"),f=a()(e,"stacked",!1),h=a()(e,"leaded",!1),x=a()(e,"flipped",!1),j=a()(e,"priceMsg",""),g=a()(e,"showPrice",!0),b=function(e){return e.bundles?e.bundles.reduce((function(e,t){var r=t.catalog;if(!r)return e;var n=r.salePrice,a=r.promoPrice,i=r.listPrice;return{salePrice:e.salePrice+n,promoPrice:e.promoPrice+a,listPrice:e.listPrice+i}}),{salePrice:0,promoPrice:0,listPrice:0}):void 0}(e),P=j&&j.length>0&&a()(j,"[0].text"),v=p||(a()(e,"subscriptionProduct",!1)?"/month":""),y=b&&null!==a()(e,"salePrice")?a()(e,"salePrice")+b.salePrice:a()(e,"salePrice"),w=b&&null!==a()(e,"promoPrice")?a()(e,"promoPrice")+b.promoPrice:a()(e,"promoPrice"),Z=b&&null!==a()(e,"listPrice")?a()(e,"listPrice")+b.listPrice:a()(e,"listPrice");return s&&"1"===s.automation?(0,c.jsx)("span",{}):""===Z||null===Z?(0,c.jsx)("span",{children:u}):(0,c.jsxs)(c.Fragment,{children:[!h&&P&&""!==j&&(0,c.jsx)("span",{className:t?t.priceMsg:"",children:"".concat(P," ")}),(0,c.jsx)("meta",{itemProp:"priceCurrency",content:d}),g&&parseInt(y)=0?1:-1}))},o=function(e){return e&&e.affirm&&e.affirm.ala?e.affirm.ala.split("$").pop().split("/")[0]:0}},47534:function(e,t,r){r.r(t),r.d(t,{default:function(){return h}});var n=r(99956),a=r(43832),i=r(41749),c=r(22318),o=r(41120),s=(r(67294),r(68751)),l=r(27361),u=r.n(l),d=r(52084),m=r(71792),p=r(85893),f=(0,o.Z)((function(e){return{root:function(t){return{background:"dark_black"===t.bgColor?e.palette.background.dark:"gray"===t.bgColor?e.palette.background.gray:"transparent","& .highlight":{color:e.palette.secondary.main}}},contrastTextColor:{color:e.palette.text.contrastText,"& *":{color:e.palette.text.contrastText},"& a":{color:e.palette.primary.main,textDecoration:"none","&:hover":{color:e.palette.text.hover,textDecoration:"none"}}},orderedlistbullet:{color:e.palette.text.tertiary,fontSize:42,lineHeight:.7,marginTop:7}}}));function h(e){var t=e&&"SchedulerBodyGroup_text"===e.data.__typename,r=e.label?e.label:e.data&&e.data.label?e.data.label:"left",o=e.data&&e.data.fields,l=e.mini||e.minit||t?4:e.zeroT?0:8,h=e.mini||e.minib||t?4:e.zeroB?0:8,x=e.maxWidth?e.maxWidth:"left"===r||"index"===r||"center"===r&&1===o.length?"md":"xl",j=12/(r.match(/[2-3]/)||1),g=12===j?2:4,b=r.indexOf("center")>-1?"center":"left",P=u()(e,"data.primary.bg_color","white"),v="dark_black"===P,y=f({bgColor:P});return(0,p.jsx)("div",{className:"groupTextSlice",children:(0,p.jsx)(n.Z,{className:"".concat(y.root," ").concat(v&&y.contrastTextColor),children:"autogrid"===r?(0,p.jsx)(d.Z,{children:o&&o.map((function(e,t){return(0,p.jsx)("div",{children:(0,p.jsx)(s.Z,{render:e.text})},t)}))}):(0,p.jsx)(a.Z,{maxWidth:x,children:(0,p.jsx)(n.Z,{pt:l,pb:h,children:"index"===r?o&&o.map((function(e,t){return(0,p.jsxs)(i.Z,{container:!0,wrap:"nowrap",spacing:g,children:[(0,p.jsx)(i.Z,{item:!0,children:(0,p.jsx)(n.Z,{mt:1,mb:2,children:(0,p.jsx)(c.Z,{className:y.orderedlistbullet,children:t+1})})}),(0,p.jsx)(i.Z,{item:!0,xs:!0,children:(0,p.jsx)(n.Z,{mt:1,mb:2,children:(0,p.jsx)(s.Z,{render:e.text})})})]},t)})):"center"===r?(0,p.jsx)(i.Z,{container:!0,justifyContent:"center",children:o&&o.map((function(e,t){return(0,p.jsx)(i.Z,{item:!0,xs:12,sm:12,md:j,align:b,children:(0,p.jsx)(s.Z,{render:e.text})},t)}))}):(0,p.jsx)(i.Z,{container:!0,spacing:g,children:o&&o.map((function(e,t){return(0,p.jsx)(i.Z,{item:!0,xs:12,sm:12,md:j,align:b,children:(0,p.jsx)(s.Z,{render:e.text,htmlSerializer:m.y})},t)}))})})})})})}}}]);