"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(82872),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,y=(0,l.Oc)(),v=y.config,Z=y.query,w=y.prismicConfig,k=y.country,S=(0,a.useAmp)(),D=(0,u.Z)(),N="dark"===c()(D,"palette.type"),M=c()(v,"affirm.logoPath")&&!S&&N?c()(v,"affirm.logoPath"):"DARK"===t?"/static/images/affirm_white_logo-solid_bg.svg":"/static/images/affirm_logo.svg",C="affirm logo",_=(0,m.useRouter)(),F=(0,d.Qc)(_.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:Z&&"1"===Z.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})})}):"product-detail"===j?r&&T&&(0,h.jsx)("span",{className:x,children:(0,h.jsxs)("p",{children:[(0,h.jsxs)("a",{href:"".concat(W),children:[I," with "]}),(0,h.jsx)(o.$V,{noLazy:!0,src:{url:M,alt:C,dimensions:{width:50,height:20}},className:g,ariaLabel:C}),". ",(0,h.jsx)("a",{href:"/affirm",children:"Learn more"})]})}):(0,h.jsx)("span",{className:x,children:(0,h.jsxs)("p",{children:[s.Z.asText(w.affirm),(0,h.jsx)(o.$V,{noLazy:!0,src:{url:M,alt:C,dimensions:{width:50,height:20}},className:g,ariaLabel:C}),". ",(0,h.jsx)("a",{href:"/affirm",children:"Learn More"})]})})})})}},69713:function(e,t,r){r.d(t,{Z:function(){return s}});r(67294);var n=r(27361),a=r.n(n),i=r(68751),c=r(58885),o=r(85893);function s(e){var t=e.classes,r=e.showStrikeThru,n=e.priceButton,s=(0,c.Oc)(),l=s.query,u=s.prismicConfig,d=a()(u,"no_price_call",""),m=e&&e.currency||"USD",p="USD"===m||"$"===m?"$":e&&e.currency+" $",f=a()(e,"priceUnit"),h=a()(e,"stacked",!1),x=a()(e,"leaded",!1),j=a()(e,"flipped",!1),g=a()(e,"priceMsg",""),b=a()(e,"billingMsg",""),P=a()(e,"showPrice",!0),y=function(e){return e.bundles?e.bundles.reduce((function(e,t){var r=t.catalog;if(!r)return e;var n=r.promoPrice,a=r.listPrice;return{salePrice:e.promoPrice+n,promoPrice:e.promoPrice+n,listPrice:e.listPrice+a}}),{salePrice:0,promoPrice:0,listPrice:0}):void 0}(e),v=g&&g.length>0&&(0,o.jsx)(i.Z,{render:g}),Z=f||(a()(e,"subscriptionProduct",!1)?"/month":""),w=y&&null!==a()(e,"promoPrice")?a()(e,"promoPrice")+y.promoPrice:a()(e,"promoPrice"),k=y&&null!==a()(e,"promoPrice")?a()(e,"promoPrice")+y.promoPrice:a()(e,"promoPrice"),S=y&&null!==a()(e,"listPrice")?a()(e,"listPrice")+y.listPrice:a()(e,"listPrice");return l&&"1"===l.automation?(0,o.jsx)("span",{}):""===S||null===S?(0,o.jsx)("span",{children:d}):(0,o.jsxs)(o.Fragment,{children:[!x&&v&&g&&""!==g&&(0,o.jsx)(o.Fragment,{children:P?(0,o.jsx)("span",{className:t&&t.priceMsg,children:i.Z.asText(g)}):(0,o.jsx)(i.Z,{render:g})}),(0,o.jsx)("meta",{itemProp:"priceCurrency",content:m}),P&&parseInt(w)=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 j}});var n=r(99956),a=r(43832),i=r(41749),c=r(22318),o=r(41120),s=r(8920),l=(r(67294),r(68751)),u=r(27361),d=r.n(u),m=r(52084),p=r(71792),f=r(63457),h=r(85893),x=(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},col2:{backgroundColor:function(t){return"column-2-related"===t.label&&d()(e,"palette.background.gray")}}}}));function j(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,u=e.mini||e.minit||t?4:e.zeroT?0:8,j=e.mini||e.minib||t?4:e.zeroB?0:8,g=e.maxWidth?e.maxWidth:"left"===r||"index"===r||"center"===r&&1===o.length?"md":"xl",b=12/(r.match(/[2-3]/)||1),P=(0,s.Z)(),y=(0,f.Z)(P.breakpoints.down("sm")),v=12===b?2:"column-2-related"!==r||y?4:6,Z=r.indexOf("center")>-1?"center":"left",w=d()(e,"data.primary.bg_color","white"),k="dark_black"===w,S=x({bgColor:w,label:r});return(0,h.jsx)("div",{className:"groupTextSlice",children:(0,h.jsx)(n.Z,{className:"".concat(S.root," ").concat(k&&S.contrastTextColor),children:"autogrid"===r?(0,h.jsx)(m.Z,{children:o&&o.map((function(e,t){return(0,h.jsx)("div",{children:(0,h.jsx)(l.Z,{render:e.text})},t)}))}):(0,h.jsx)(a.Z,{maxWidth:g,children:(0,h.jsx)(n.Z,{pt:u,pb:j,children:"index"===r?o&&o.map((function(e,t){return(0,h.jsxs)(i.Z,{container:!0,wrap:"nowrap",spacing:v,children:[(0,h.jsx)(i.Z,{item:!0,children:(0,h.jsx)(n.Z,{mt:1,mb:2,children:(0,h.jsx)(c.Z,{className:S.orderedlistbullet,children:t+1})})}),(0,h.jsx)(i.Z,{item:!0,xs:!0,children:(0,h.jsx)(n.Z,{mt:1,mb:2,children:(0,h.jsx)(l.Z,{render:e.text})})})]},t)})):"center"===r?(0,h.jsx)(i.Z,{container:!0,justifyContent:"center",children:o&&o.map((function(e,t){return(0,h.jsx)(i.Z,{item:!0,xs:12,sm:12,md:b,align:Z,children:(0,h.jsx)(l.Z,{render:e.text})},t)}))}):(0,h.jsx)(i.Z,{container:!0,spacing:v,children:o&&o.map((function(e,t){return(0,h.jsx)(i.Z,{item:!0,xs:12,sm:12,md:b,align:Z,className:1===t&&S.col2,children:(0,h.jsx)(l.Z,{render:e.text,htmlSerializer:p.y})},t)}))})})})})})}}}]);