1"use strict";(self.webpackChunkng_up=self.webpackChunkng_up||[]).push([["default-src_app_website_components_epic-account-type-selector_epic-account-type-selector_module_ts"],{14275:(S,O,c)=>{c.d(O,{T:()=>U});var e=c(34929),m=c(95758),h=c(44821),_=c(94660),C=c(17714),P=c(65018),y=c(3839),t=c(3184),d=c(98476),f=c(68893),i=c(12379),l=c(679),o=c(31503),s=c(36362),g=c(55617),u=c(76154);function x(a,M){if(1&a){const n=t.EpF();t.TgZ(0,"div",3),t.NdJ("click",function(){return t.CHM(n),t.oxw().close()}),t.qZA()}}function T(a,M){1&a&&(t.TgZ(0,"div",4),t._UZ(1,"epic-dot-loader",5),t.qZA())}function D(a,M){if(1&a){const n=t.EpF();t.TgZ(0,"div",11)(1,"epic-image",12),t.NdJ("click",function(){t.CHM(n);const r=t.oxw(2);return r.selectOption(r.OPTIONS.PARENT)}),t.qZA(),t.TgZ(2,"h2",13),t._uU(3),t.qZA(),t.TgZ(4,"div"),t._uU(5,"Unlock thousands of the best books, videos and\xa0more!"),t.qZA(),t.TgZ(6,"button",14),t.NdJ("click",function(){t.CHM(n);const r=t.oxw(2);return r.selectOption(r.OPTIONS.PARENT)}),t._uU(7),t.qZA()()}if(2&a){const n=t.oxw(2);t.xp6(1),t.Q6J("data",n.pageData.parentImageSource),t.xp6(2),t.hij(" ",n.pageData.parentTypeOptionHeader," "),t.xp6(3),t.ekj("epic-btn--secondary",n.pageData.useAlternateColorScheme),t.xp6(1),t.hij(" ",n.pageData.parentCtaText," ")}}function I(a,M){if(1&a){const n=t.EpF();t.TgZ(0,"div",11)(1,"epic-image",12),t.NdJ("click",function(){t.CHM(n);const r=t.oxw(2);return r.selectOption(r.OPTIONS.EDUCATOR)}),t.qZA(),t.TgZ(2,"h2",13),t._uU(3),t.qZA(),t.TgZ(4,"div"),t._uU(5,"Free classroom access for"),t._UZ(6,"br"),t._uU(7,"all\xa0educators!"),t.qZA(),t.TgZ(8,"button",14),t.NdJ("click",function(){t.CHM(n);const r=t.oxw(2);return r.selectOption(r.OPTIONS.EDUCATOR)}),t._uU(9),t.qZA()()}if(2&a){const n=t.oxw(2);t.xp6(1),t.Q6J("data",n.pageData.educatorImageSource),t.xp6(2),t.hij(" ",n.pageData.educatorTypeOptionHeader," "),t.xp6(5),t.ekj("epic-btn--secondary",n.pageData.useAlternateColorScheme),t.xp6(1),t.hij(" ",n.pageData.educatorCtaText," ")}}function A(a,M){if(1&a&&(t.TgZ(0,"div",6)(1,"div",7)(2,"h1",8),t._uU(3),t.qZA()(),t.TgZ(4,"div",9),t.YNc(5,D,8,5,"div",10),t.YNc(6,I,10,5,"div",10),t.qZA()()),2&a){const n=t.oxw();t.ekj("modal-presentation",!(null==n.data||!n.data.pageData))("white-option-text",!(null!=n.data&&n.data.pageData)&&n.pageData.useAlternateColorScheme),t.xp6(3),t.hij(" ",n.pageData.headerText," "),t.xp6(2),t.Q6J("ngIf",!n.optionsToHide.includes(n.OPTIONS.PARENT)),t.xp6(1),t.Q6J("ngIf",!n.optionsToHide.includes(n.OPTIONS.EDUCATOR))}}let U=(()=>{class a{constructor(n,p,r,v,R,N,E){this._bigQueryService=n,this._router=p,this._coreDialogService=r,this._accountCreateLoggingService=v,this._dialogRef=R,this._routingService=N,this.data=E,this.OPTIONS={PARENT:"parent",EDUCATOR:"educator",STUDENT:"student"},this.optionsToHide=[],this._subs=new C.w0,E&&(E.optionsToHide&&(this.optionsToHide=E.optionsToHide),E.pageData&&(this.pageData=E.pageData))}ngOnInit(){var n;null===(n=this._dialogRef)||void 0===n||n.afterOpened().subscribe(p=>{this.logBigQueryEvents("Parent_educator_splitter_viewed")})}_openNewSignUpFlow(n){return(0,e.mG)(this,void 0,void 0,function*(){const p=this._router.url.split("?")[0]||"/",r="undefined"!=typeof window&&window.location?window.location.origin+p:p,v=n===this.OPTIONS.PARENT?"account_type_selector_parent":n===this.OPTIONS.EDUCATOR?"account_type_selector_educator":"account_type_selector";this.getStartedDialogRef=yield this._coreDialogService.loadComponentWithLazyLoadImports(_.E.EpicNewSignupFormComponent,Object.assign(Object.assign({},this._coreDialogService.fullScreenMobileDialogConfigNewSignup),{disableClose:!0,autoFocus:!0,stayOpenedOnBrowserBackClick:!0,closeOnNavigation:!1,data:{hideBackArrow:!1,ageGateRequired:!0,registrationPage:r,registrationButton:v},id:h.v0.NEW_SIGNUP_GET_STARTED_DIALOG}))})}selectOption(n){return(0,e.mG)(this,void 0,void 0,function*(){switch(n){case this.OPTIONS.PARENT:this._accountCreateLoggingService.logAccountCreateStart(),yield this._openNewSignUpFlow(this.OPTIONS.PARENT);break;case this.OPTIONS.EDUCATOR:this._routingService.goToWebsiteRoute({route:P.EB.EDU_SIGN_UP});break;case this.OPTIONS.STUDENT:this._router.navigate(["/students"],{queryParams:{bqSource:"promo_account_type_selector"}})}this._bigQueryService.log(y.ku,{type:n}),this.close()})}close(){var n;null===(n=this._dialogRef)||void 0===n||n.close()}logBigQueryEvents(n){this._bigQueryService.log(n,{URL:this._router.url})}ngOnDestroy(){var n;null===(n=this._subs)||void 0===n||n.unsubscribe()}}return a.\u0275fac=function(n){return new(n||a)(t.Y36(d.p),t.Y36(i.F0),t.Y36(f.CoreDialogService),t.Y36(l.j0),t.Y36(m.so,8),t.Y36(o.Zn),t.Y36(m.WI))}
1,a.\u0275cmp=t.Xpm({type:a,selectors:[["epic-account-type-selector"]],inputs:{optionsToHide:"optionsToHide",pageData:"pageData"},decls:4,vars:3,consts:[["class","mat-dialog-close",3,"click",4,"ngIf"],["loading",""],["class","account-type-selector-container",3,"modal-presentation","white-option-text",4,"ngIf","ngIfElse"],[1,"mat-dialog-close",3,"click"],[1,"dot-loader-container"],["color","#0a96e6"],[1,"account-type-selector-container"],[1,"header-container"],[1,"fontFamily-primary"],[1,"heros-and-ctas"],["class","account-type-option",4,"ngIf"],[1,"account-type-option"],[3,"data","click"],[1,"account-type-option-header","fontFamily-primary"],[1,"epic-btn",3,"click"]],template:function(n,p){if(1&n&&(t.YNc(0,x,1,0,"div",0),t.YNc(1,T,2,0,"ng-template",null,1,t.W1O),t.YNc(3,A,7,7,"div",2)),2&n){const r=t.MAs(2);t.Q6J("ngIf",null==p.data?null:p.data.pageData),t.xp6(3),t.Q6J("ngIf",p.pageData)("ngIfElse",r)}},directives:[s.O5,g.c,u.U],styles:["div.dot-loader-container[_ngcontent-%COMP%]{height:385px}.account-type-selector-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:18px 0 40px}.account-type-selector-container.modal-presentation[_ngcontent-%COMP%]{padding:46px 16px 32px}@media screen and (min-width: 480px){.account-type-selector-container.modal-presentation[_ngcontent-%COMP%]{padding:46px 24px 32px}}@media screen and (min-width: 600px){.account-type-selector-container.modal-presentation[_ngcontent-%COMP%]{padding:46px 36px 32px}.account-type-selector-container.modal-presentation[_ngcontent-%COMP%] .account-type-option[_ngcontent-%COMP%]:first-child{margin-right:0}}.account-type-selector-container.modal-presentation[_ngcontent-%COMP%] .account-type-option[_ngcontent-%COMP%]:first-of-type button[_ngcontent-%COMP%]{margin-bottom:32px}@media screen and (min-width: 800px){.account-type-selector-container.modal-presentation[_ngcontent-%COMP%] .account-type-option[_ngcontent-%COMP%]:first-child{margin-right:30px}.account-type-selector-container.modal-presentation[_ngcontent-%COMP%] .account-type-option[_ngcontent-%COMP%]:first-of-type button[_ngcontent-%COMP%]{margin-bottom:0}}@media screen and (min-width: 960px){.account-type-selector-container.modal-presentation[_ngcontent-%COMP%]{padding:50px 130px 56px}}.account-type-selector-container.modal-presentation[_ngcontent-%COMP%] .header-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{padding-top:0;margin:0}.account-type-selector-container.modal-presentation[_ngcontent-%COMP%] .account-type-option[_ngcontent-%COMP%] h2.account-type-option-header[_ngcontent-%COMP%] ~ div[_ngcontent-%COMP%]{font-size:16px;line-height:24px}.account-type-selector-container.modal-presentation[_ngcontent-%COMP%] .account-type-option[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-height:40px;width:auto;height:auto;white-space:pre-wrap}@media screen and (min-width: 480px){.account-type-selector-container.modal-presentation[_ngcontent-%COMP%] .account-type-option[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:56px;width:100%;white-space:nowrap}}.account-type-selector-container.modal-presentation[_ngcontent-%COMP%] .heros-and-ctas[_ngcontent-%COMP%]{justify-content:center;flex-direction:column;align-items:center}@media screen and (min-width: 800px){.account-type-selector-container.modal-presentation[_ngcontent-%COMP%] .heros-and-ctas[_ngcontent-%COMP%]{flex-direction:row;justify-content:center;align-items:flex-end}}.account-type-selector-container.modal-presentation[_ngcontent-%COMP%] .heros-and-ctas[_ngcontent-%COMP%] .epic-btn[_ngcontent-%COMP%]{font-size:16px;line-height:22px}@media screen and (min-width: 480px){.account-type-selector-container.modal-presentation[_ngcontent-%COMP%] .heros-and-ctas[_ngcontent-%COMP%] .epic-btn[_ngcontent-%COMP%]{font-size:20px;line-height:26px}}.account-type-selector-container[_ngcontent-%COMP%] .header-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .account-type-selector-container[_ngcontent-%COMP%] .account-type-option[_ngcontent-%COMP%] h2.account-type-option-header[_ngcontent-%COMP%]{padding:0;margin:0;font-size:32px;line-height:40px}.account-type-selector-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .account-type-selector-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:700}.account-type-selector-container[_ngcontent-%COMP%] .heros-and-ctas[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:column;align-items:center;margin-top:24px}.account-type-selector-container[_ngcontent-%COMP%] .heros-and-ctas[_ngcontent-%COMP%] .epic-btn[_ngcontent-%COMP%]{font-size:20px;line-height:26px}@media screen and (min-width: 600px){.account-type-selector-container[_ngcontent-%COMP%] .heros-and-ctas[_ngcontent-%COMP%]{flex-direction:row;justify-content:center;align-items:flex-end}}.account-type-selector-container.white-option-text[_ngcontent-%COMP%], .account-type-selector-container.white-option-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .account-type-selector-container.white-option-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .account-type-selector-container.white-option-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fff}.account-type-selector-container[_ngcontent-%COMP%] .account-type-option[_ngcontent-%COMP%]{font-size:17px;width:100%;max-width:274px}.account-type-selector-container[_ngcontent-%COMP%] .account-type-option[_ngcontent-%COMP%] h2.account-type-option-header[_ngcontent-%COMP%]{margin:12px 17px 8px}.account-type-selector-container[_ngcontent-%COMP%] .account-type-option[_ngcontent-%COMP%] h2.account-type-option-header[_ngcontent-%COMP%] ~ div[_ngcontent-%COMP%]{margin:0 17px}.account-type-selector-container[_ngcontent-%COMP%] .account-type-option[_ngcontent-%COMP%] epic-image[_ngcontent-%COMP%]{margin:0 13px;width:auto;cursor:pointer}.account-type-selector-container[_ngcontent-%COMP%] .account-type-option[_ngcontent-%COMP%] epic-image[_ngcontent-%COMP%] img{width:auto;max-width:192px}@media screen and (min-width: 800px){.account-type-selector-container[_ngcontent-%COMP%] .account-type-option[_ngcontent-%COMP%] epic-image[_ngcontent-%COMP%] img{max-width:none}}.account-type-selector-container[_ngcontent-%COMP%] .account-type-option[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-top:23px;min-width:204px;width:100%;height:56px}.account-type-selector-container[_ngcontent-%COMP%] .account-type-option[_ngcontent-%COMP%]:first-of-type button[_ngcontent-%COMP%]{margin-bottom:32px}@media screen and (min-width: 600px){.account-type-selector-container[_ngcontent-%COMP%]{padding-top:32px}.account-type-selector-container[_ngcontent-%COMP%] .header-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:44px;line-height:52px}.account-type-selector-container[_ngcontent-%COMP%] .account-type-option[_ngcontent-%COMP%]:first-child{margin-right:30px}.account-type-selector-container[_ngcontent-%COMP%] .account-type-option[_ngcontent-%COMP%]:first-of-type button[_ngcontent-%COMP%]{margin-bottom:0}}@media screen and (min-width: 960px){.account-type-selector-container[_ngcontent-%COMP%] .account-type-option[_ngcontent-%COMP%]:first-child{margin-right:54px}}"]}),a})()},14644:(S,O,c)=>{c.r(O),c.d(O,{EpicAccountTypeSelectorModule:()=>t});var e=c(36362),m=c(27224),h=c(14275),_=c(12379),C=c(50056),P=c(3446),y=c(3184);let t=(()=>{class d{static getComponent(){return h.T}}return d.\u0275fac=function(i){return new(i||d)},d.\u0275mod=y.oAB({type:d}),d.\u0275inj=y.cJS({imports:[[e.ez,m.o9,_.Bz,C.P,P.a]]}),d})()},76154:(S,O,c)=>{c.d(O,{U:()=>f});var e=c(3184),m=c(36362);function h(i,l){if(1&i&&e._UZ(0,"source",6),2&i){const o=e.oxw(2);e.Q6J("srcset",o.mobileSrcSet,e.LSH)("type",o.imageType)}}function _(i,l){if(1&i&&e._UZ(0,"source",7),2&i){const o=e.oxw(2);e.Q6J("srcset",o.tabletSrcSet,e.LSH)("type",o.imageType)}}function C(i,l){if(1&i&&e._UZ(0,"source",8),2&i){const o=e.oxw(2);e.Q6J("srcset",o.desktopSrcSet,e.LSH)("type",o.imageType)}}function P(i,l){if(1&i&&e._UZ(0,"img",9),2&i){const o=e.oxw(2);e.Q6J("src",o.default,e.LSH)("srcset",o.defaultSrcSet,e.LSH)("alt",o.data.alt?o.data.alt:"")("title",o.data.alt?o.data.alt:""),e.uIk("width",o.data.width)("height",o.data.height)}}function y(i,l){if(1&i&&(e.TgZ(0,"picture"),e.YNc(1,h,1,2,"source",2),e.YNc(2,_,1,2,"source",3),e.YNc(3,C,1,2,"source",4),e.YNc(4,P,1,6,"img",5),e.qZA()),2&i){const o=e.oxw();e.xp6(1),e.Q6J("ngIf",o.mobileSrcSet),e.xp6(1),e.Q6J("ngIf",o.tabletSrcSet),e.xp6(1),e.Q6J("ngIf",o.desktopSrcSet),e.xp6(1),e.Q6J("ngIf",o.default)}}function t(i,l){if(1&i&&e._UZ(0,"img",9),2&i){const o=e.oxw(2);e.Q6J("src",o.default,e.LSH)("srcset",o.defaultSrcSet,e.LSH)("alt",o.data.alt?o.data.alt:"")("title",o.data.alt?o.data.alt:""),e.uIk("width",o.data.width)("height",o.data.height)}}function d(i,l){if(1&i&&e.YNc(0,t,1,6,"img",5),2&i){const o=e.oxw();e.Q6J("ngIf",o.default)}}let f=(()=>{class i{constructor(){var o;this.data={default:[],alt:"",imageType:"image/webp",width:void 0,height:void 0},this.default="",this.defaultSrcSet="",this.mobileSrcSet="",this.tabletSrcSet="",this.desktopSrcSet="",this.imageType=null!==(o=this.data.imageType)&&void 0!==o?o:"image/webp"}srcSet(o,s=!1){return o.filter((g,u)=>!(s&&0===u)).map((g,u)=>g+(0!==u?` ${u+(s?2:1)}x`:"")).join(", ")}ngOnInit(){var o,s,g,u,x,T;this.default=(null===(o=this.data)||void 0===o?void 0:o.default.length)?null===(s=this.data)||void 0===s?void 0:s.default[0]:"",(null===(g=this.data)||void 0===g?void 0:g.default.length)>=1&&(this.defaultSrcSet=this.srcSet(this.data.default,!0)),this.mobileSrcSet=(null===(u=this.data)||void 0===u?void 0:u.mobile)?this.srcSet(this.data.mobile):"",this.tabletSrcSet=(null===(x=this.data)||void 0===x?void 0:x.tablet)?this.srcSet(this.data.tablet):"",this.desktopSrcSet=(null===(T=this.data)||void 0===T?void 0:T.desktop)?this.srcSet(this.data.desktop):""}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["epic-image"]],inputs:{data:"data"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["justImg",""],["media","(max-width: 599.99px)",3,"srcset","type",4,"ngIf"],["media","(max-width: 959.99px)",3,"srcset","type",4,"ngIf"],[3,"srcset","type",4,"ngIf"],["class","image-responsive","loading","lazy",3,"src","srcset","alt","title",4,"ngIf"],["media","(max-width: 599.99px)",3,"srcset","type"],["media","(max-width: 959.99px)",3,"srcset","type"],[3,"srcset","type"],["loading","lazy",1,"image-responsive",3,"src","srcset","alt","title"]],template:function(o,s){if(1&o&&(e.YNc(0,y,5,4,"picture",0),e.YNc(1,d,1,1,"ng-template",null,1,e.W1O)),2&o){const g=e.MAs(2);e.Q6J("ngIf",s.mobileSrcSet||s.tabletSrcSet||s.desktopSrcSet)("ngIfElse",g)}},directives:[m.O5],encapsulation:2,changeDetection:0}),i})()},3446:(S,O,c)=>{c.d(O,{a:()=>h});var e=c(36362),m=c(3184);let h=(()=>{class _{}return _.\u0275fac=function(P){return new(P||_)},_.\u0275mod=m.oAB({type:_}),_.\u0275inj=m.cJS({imports:[[e.ez]]}),_})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.