1"use strict";(self.webpackChunkng_up=self.webpackChunkng_up||[]).push([["src_app_core_constants_BIGQUERY-CONSTANTS_NufStepConstants_ts-src_app_core_constants_BIGQUERY-08a6af","src_app_core_constants_BIGQUERY-CONSTANTS_NufStepConstants_ts-src_app_shared_epic-dot-loader_-0ca53c","src_app_shared_epic-dot-loader_epic-dot-loader_component_ts","src_app_shared_epic-dot-loader_epic-dot-loader_module_ts","src_app_core_constants_BIGQUERY-CONSTANTS_NufStepConstants_ts-src_app_core_constants_BIGQUERY-6075a7","src_app_core_constants_BIGQUERY-CONSTANTS_NufStepConstants_ts-src_app_core_constants_BIGQUERY-683d40","src_app_core_constants_BIGQUERY-CONSTANTS_NufStepConstants_ts-src_app_core_constants_BIGQUERY-931279","src_app_core_services_reading-level_service_ts","src_app_core_constants_BIGQUERY-CONSTANTS_SchoolPlusConstants_ts-src_app_core_services_age-ga-1d3a16","src_app_core_services_captcha_service_ts","src_app_core_constants_BIGQUERY-CONSTANTS_NufStepConstants_ts-src_app_core_constants_BIGQUERY-37c589"],{72426:(D,E,e)=>{e.d(E,{CS:()=>l,GJ:()=>h,JQ:()=>i,Ko:()=>r,Ku:()=>g,No:()=>c,Sq:()=>t,Zi:()=>n,f:()=>C,gE:()=>u,jf:()=>v,oM:()=>a,ol:()=>s});const a="fd_kid_modal_view",c="fd_kid_modal_adult_select",i="fd_kid_modal_child_select",n="fd_kids_experience_age_gate_view",l="fd_school_freetime_view",s="fd_school_select",g="fd_free_time_select",u="fd_school_grownup_select",C="fd_help_kid_login_view",v="fd_help_kid_login_class_select",h="fd_help_kid_login_family_select",r="fd_help_kid_login_signup_select",t="fd_help_kid_login_homepage_select"},16872:(D,E,e)=>{e.d(E,{Ac:()=>i,Bc:()=>d,Hq:()=>o,Kj:()=>h,OC:()=>t,Tg:()=>r,aD:()=>L,aw:()=>a,gV:()=>C,l4:()=>v,oe:()=>p,uy:()=>_});const a="nuf_complete",i="nuf_step_account_create",C="NUF_STEP_PROFILE_CREATE",v="nuf_step_profile_create_complete",h="nuf_step_edu_personal_info",r="nuf_step_account_create_google_sso_click",t="nuf_step_age_start",_="nuf_step_age_complete",o="nuf_step_welcome_start",d="nuf_step_find_school_address",p="nuf_step_edu_create_account_email_mismatch",L="nuf_step_edu_change_school"},9259:(D,E,e)=>{e.d(E,{DW:()=>s,Dy:()=>r,Iy:()=>i,KT:()=>v,Oe:()=>g,QN:()=>C,SZ:()=>c,_A:()=>a,cC:()=>u,pQ:()=>t,u2:()=>h,wM:()=>n});const a="sp_cta_clicked",c="sp_login_cta_clicked",i="sp_signup_school_selected",n="sp_login_school_selected",s="sp_login_auth_submitted",g="sp_signup_auth_submitted",u="sp_signup_email_verification_sent",C="sp_login_email_verification_sent",v="sp_signup_completed",h="sp_login_completed",r="sp_signup_age_verified",t={signup:"signup",signin:"signin"}},98444:(D,E,e)=>{e.d(E,{_:()=>c,p:()=>a});var a=(()=>{return(i=a||(a={})).NONE="none",i.COLLECTION="collection",i.BOOK="book",i.READ_TO_ME="read-to-me",i.VIDEO="video",i.AUDIOBOOK="audiobook",i.QUIZ="quiz",i.ARTICLE="article",i.CONTENT="content",i.SERIES="series",i.INTERACTIVE="interactive",a;var i})();const c={0:a.COLLECTION,1:a.BOOK,2:a.AUDIOBOOK,3:a.ARTICLE,4:a.VIDEO,5:a.QUIZ}},50736:(D,E,e)=>{e.d(E,{a:()=>c,j:()=>a});var a=(()=>{return(i=a||(a={})).ar="ar",i.lexile="lexile",i.dra="dra",i.fandp="fandp",i.gr="gr",i.undecided="undecided",a;var i})(),c=(()=>{return(i=c||(c={})).accelerated_level="accelerated_level",i.dra_level="dra_level",i.fandp_level="fandp_level",i.guided_reading_level="guided_reading_level",i.lexile_level="lexile_level",i.undecided="undecided",c;var i})()},25769:(D,E,e)=>{e.d(E,{_:()=>i,c:()=>n});var a=e(98444),c=e(36102),i=(()=>{return(l=i||(i={}))[l.NONE=-1]="NONE",l[l.STANDARD=1]="STANDARD",l[l.AUDIOBOOK=2]="AUDIOBOOK",l[l.ARTICLE=3]="ARTICLE",l[l.VIDEO=4]="VIDEO",l[l.QUIZ=5]="QUIZ",l[l.INTERACTIVE=6]="INTERACTIVE",i;var l})();class n{constructor(s){this.active=s.active,this.audio=s.audio,this.id=parseInt(s.modelId)||parseInt(s.id),this.title=s.title,this.timesCompleted=s.timesCompleted||0,this.type=s.type,this.progress="progress"in s?(null==s?void 0:s.progress)?s.progress:0:void 0,this.recommendation_uuid4=s.recommendation_uuid4||(0,c.Z)(),this.contentHash=s.contentHash,this.nextInSeries=s.nextInSeries,this.content_type=s.content_type,this.freemiumBookUnlockStatus=s.freemiumBookUnlockStatus,this.modelId=s.modelId,this.seriesCoverUrl=s.seriesCoverUrl,this.seriesId=s.seriesId,this.crrSeriesId=s.crrSeriesId,this.preview=s.preview,this.previewDaysRemaining=s.previewDaysRemaining,this.schoolAccessDaysRemaining=s.schoolAccessDaysRemaining,this.headingTag=s.headingTag,this.upNextBook=s.upNextBook,void 0!==s.isAllowedForSchool&&(this.isAllowedForSchool=s.isAllowedForSchool)}set freemiumBookUnlockStatus(s){this._freemiumBookUnlockStatus="boolean"==typeof s?s?n.BOOK_LOCK_STATUS.UNLOCKED:n.BOOK_LOCK_STATUS.PREMIUM:s}get freemiumBookUnlockStatus(){return this._freemiumBookUnlockStatus}isBook(){return this.type===i.STANDARD}isVideo(){return this.type===i.VIDEO}isAudiobook(){return this.type===i.AUDIOBOOK}isReadToMe(){return this.audio}isQuiz(){return this.type===i.QUIZ}static getContentTypeString(s){return this.contentTypeDict[s]}getContentTypeString(s){return this.type===i.STANDARD&&s&&this.audio?a.p.READ_TO_ME:n.getContentTypeString(this.t
1ype)}getThumbUrl(s){let u="cover";return s&&["small","large"].includes(s)&&(u=u+"_"+s),`${this.id.toString().slice(-1)}/${this.id}/${u}.jpg`}isContentPremium(){return this.freemiumBookUnlockStatus===n.BOOK_LOCK_STATUS.PREMIUM}isContentFreemium(){return this.freemiumBookUnlockStatus===n.BOOK_LOCK_STATUS.UNLOCKED}getContentRowItemDimensions(){return this.type===i.VIDEO?{width:286,height:170}:{width:165,height:203}}setBookProgress(s){this.progress=s}}n.BOOK_LOCK_STATUS={UNLOCKED:0,PREMIUM:1},n.contentTypeDict={[i.NONE]:a.p.NONE,[i.STANDARD]:a.p.BOOK,[i.AUDIOBOOK]:a.p.AUDIOBOOK,[i.ARTICLE]:a.p.ARTICLE,[i.VIDEO]:a.p.VIDEO,[i.QUIZ]:a.p.QUIZ,[i.INTERACTIVE]:a.p.INTERACTIVE},n.bookTypesWithReadingLevel=[i.STANDARD,i.AUDIOBOOK],n.bookTypesWithPages=[i.STANDARD]},11531:(D,E,e)=>{e.d(E,{f:()=>C});var a=e(34929),c=e(78611),i=e(44821),n=e(94660),l=e(3184),s=e(679),g=e(68893),u=e(32202);let C=(()=>{class v{constructor(r,t,_){this._accountCreateLoggingService=r,this._coreDialogService=t,this._schoolConnectLoggingService=_,this._ageGateError="We\u2019re sorry, we can\u2019t create your account at this time.",this._subs=[]}openAgeVerificationDialog(r,t=!1,_=!0,o){return(0,a.mG)(this,void 0,void 0,function*(){const d={panelClass:["epic-mat-dialog","epic-mat-dialog--age-verification"],closeOnNavigation:_,data:{title:r,errorMsg:this._ageGateError,interactionMethod:o},id:i.v0.AGE_VERIFICATION_DIALOG_OLD},p=Object.assign(Object.assign({panelClass:["epic-mat-dialog","epic-mat-dialog--age-verification"]},this._coreDialogService.fullScreenMobileDialogConfigNewSignup),{disableClose:!0,data:{title:r,errorMsg:this._ageGateError,showBackButton:t,interactionMethod:o},id:i.v0.AGE_VERIFICATION_DIALOG}),L=yield this._coreDialogService.loadComponentWithLazyLoadImports(n.E.AgeVerificationDialogComponent,t?p:d);this._subs.push((null==L?void 0:L.componentInstance).ageVerificationEventTriggered.subscribe(R=>{t?this._accountCreateLoggingService.logAccountAgeGate(R):this._accountCreateLoggingService.logAccountCreateAgeGateEvent(R),this._schoolConnectLoggingService.logFlAgeGateEvents(R)}));const A=yield(0,c.n)(L.afterClosed());return Boolean(null==A?void 0:A.ageVerified)})}}return v.\u0275fac=function(r){return new(r||v)(l.LFG(s.j0),l.LFG(g.CoreDialogService),l.LFG(u.SchoolConnectLoggingService))},v.\u0275prov=l.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},67139:(D,E,e)=>{e.d(E,{S:()=>i,n:()=>n});var a=e(3184),c=e(65925),i=(()=>{return(l=i||(i={}))[l.PAYMENT=1]="PAYMENT",l[l.PAYMENT_GIFT=2]="PAYMENT_GIFT",l[l.PAYMENT_UPDATE=3]="PAYMENT_UPDATE",l[l.ACCOUNT_CREATE=4]="ACCOUNT_CREATE",l[l.PAYMENT_UPGRADE=5]="PAYMENT_UPGRADE",l[l.CAPTCHA_SCHOOLPLUS_PRICING_REQUEST=5]="CAPTCHA_SCHOOLPLUS_PRICING_REQUEST",i;var l})();let n=(()=>{class l{constructor(g){this.data=g,this.siteKey="6LfgU4YUAAAAAOBzEV1NQw2mO77CAVBnrGB98ufs",this.CAPTCHA_PAYMENT=1,this.CAPTCHA_PAYMENT_GIFT=2,this.CAPTCHA_PAYMENT_UPDATE=3,this.CAPTCHA_ACCOUNT_CREATE=4,this.CAPTCHA_SCHOOLPLUS_PRICING_REQUEST=6,this.elements=[]}checkRequiresCaptcha(g){return g===i.PAYMENT_UPGRADE&&(g=i.PAYMENT_UPDATE),g===this.CAPTCHA_SCHOOLPLUS_PRICING_REQUEST&&(g=i.CAPTCHA_SCHOOLPLUS_PRICING_REQUEST),this.data.get("WebAccount","noAuthCheckRequiresCaptcha",{type:g}).then(u=>u&&u.result&&!0===u.result.required).catch(()=>null)}getToken(){return this.recaptcha&&this.recaptcha.getResponse()?this.recaptcha.getResponse():null}addOrResetCaptcha(g,u){this.elements.push({element:g,callback:u}),this.canRender(g)?(this.addCaptcha(),this.registerReCaptchaCallback()):this.resetCaptcha()}addCaptcha(){const g=document.createElement("script");g.src="https://www.google.com/recaptcha/api.js?onload=reCaptchaLoad&render=explicit",g.async=!0,g.defer=!0,document.body.appendChild(g)}registerReCaptchaCallback(){window.reCaptchaLoad=()=>{this.recaptcha=grecaptcha;const g=this.elements.pop(),u={sitekey:this.siteKey,"expired-callback":()=>{grecaptcha.reset()},callback:g.callback};grecaptcha.render(g.element,u)}}resetCaptcha(){!this.recaptcha||this.recaptcha.reset()}canRender(g){return g&&!g.children[0]}}return l.\u0275fac=function(g){return new(g||l)(a.LFG(c.D))},l.\u0275prov=a.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},25187:(D,E,e)=>{e.d(E,{FX:()=>c,F_:()=>g,Jc:()=>l,Qc:()=>u,Sy:()=>s,U2:()=>a,lh:()=>i,pt:()=>v});const a=(r,t,_)=>
1{const o=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce((d,p)=>null!=d?d[p]:d,r);return void 0===o||o===r?_:o},c=(r,t=[])=>{const _={};return Object.keys(r).forEach(o=>{"object"!=typeof r[o]||null===r[o]||t.includes(o)?_[o]=r[o]:Object.assign(_,c(r[o]))}),_},i=r=>r?1111*Number(r)+2:null,l=r=>r?Object.keys(r).map(t=>`${t}=${r[t]}`).join("&"):"",s=r=>{let t,_;for(let o=r.length-1;o>0;o--)t=Math.floor(Math.random()*(o+1)),_=r[o],r[o]=r[t],r[t]=_},g=r=>r[Math.floor(Math.random()*r.length)],u=r=>r.getTime()/1e3,v=r=>{if(r)return new Promise((t,_)=>{const o=new Image;o.onload=t,o.onerror=_,o.src=r})}},88582:(D,E,e)=>{e.d(E,{S:()=>v});var a=e(50253),c=e(76317),i=e(25769),n=e(50736),l=e(3184),s=e(65925),g=e(1146),u=e(64617),C=e(44687);let v=(()=>{class h{constructor(t,_,o,d){this.dataService=t,this.accountService=_,this.localStorageService=o,this.profileService=d,this.readingLevelSystemsData={[n.a.accelerated_level]:{label:"AR",fullLabel:"AR Level",key:n.j.ar,keyFull:n.a.accelerated_level},[n.a.dra_level]:{label:"DRA",fullLabel:"DRA Level",key:n.j.dra,keyFull:n.a.dra_level},[n.a.fandp_level]:{label:"F&P",fullLabel:"F&P Level",key:n.j.fandp,keyFull:n.a.fandp_level},[n.a.guided_reading_level]:{label:"GRL",fullLabel:"GR Level",key:n.j.gr,keyFull:n.a.guided_reading_level},[n.a.lexile_level]:{label:"Lexile",fullLabel:"Lexile \xae Measure",key:n.j.lexile,keyFull:n.a.lexile_level},[n.a.undecided]:{label:"None/Other",fullLabel:"",key:n.j.undecided,keyFull:n.a.undecided}},this.readingLevelSystemsList=[this.readingLevelSystemsData[n.a.accelerated_level],this.readingLevelSystemsData[n.a.dra_level],this.readingLevelSystemsData[n.a.fandp_level],this.readingLevelSystemsData[n.a.guided_reading_level],this.readingLevelSystemsData[n.a.lexile_level],this.readingLevelSystemsData[n.a.undecided]],this.readingLevelSystemKeyMap={[n.j.ar]:n.a.accelerated_level,[n.j.dra]:n.a.dra_level,[n.j.fandp]:n.a.fandp_level,[n.j.gr]:n.a.guided_reading_level,[n.j.lexile]:n.a.lexile_level,[n.j.undecided]:n.a.undecided},this.readingLevelSystemKeysFull=n.a,this.readingLevelKeys=n.j,this.readingLevel$=new a.x,this.accountReadingLevelSystem$=new c.X({actual:null,defaulted:null}),this.accountRlSystemLoaded=!1}setReadingLevelSystem(t){return t?this.dataService.get("WebReadingLevels","setReadingLevelPreferences",{args:JSON.stringify({accountId:this.accountService.id,type:t})}).then(_=>(_&&(_.error?console.error("ReadingLevelService: Did not set reading level"):(this.readingLevel$.next(),this.onSystemUpdated(t),this.localStorageService.remove(`ebf-rl-${this.profileService.currentProfile.id}`))),_)):Promise.resolve(null)}getReadingLevelSystem(t){return this.dataService.get("WebReadingLevels","getReadingLevelPreferences",{args:JSON.stringify({accountId:this.accountService.id})}).then(_=>{var o;return(null===(o=null==_?void 0:_.result)||void 0===o?void 0:o.type)?t&&"undecided"===_.result.type?n.a.accelerated_level:_.result.type:t?n.a.accelerated_level:null}).catch(()=>(console.log("Failed to get reading level system"),null))}getReadingLevelSystemObject(){return this.dataService.getWithErrorHandling("WebReadingLevels","getReadingLevelPreferences",{args:JSON.stringify({accountId:this.accountService.id})}).catch(t=>(console.log("Failed to get reading level system",t),null))}getReadingLevelKeyFromFullKey(t){return this.readingLevelSystemsData[t].key}getReadingLevelSystemLabel(t,_){return _?this.readingLevelSystemsData[t].fullLabel:this.readingLevelSystemsData[t].label}getReadingLevelSentences(){return this.dataService.get("WebReadingLevels","readingLevelSentences").then(t=>{if(console.log(t),t&&t.result)return t.result.forEach(_=>{_.readingAge=Number(_.readingAge)}),t.result})}getBookRlWithLabel(t,_,o){const d={label:"",getValue:()=>"",isConverted:!1,value:"",valueWithAsterisk:""},p=t.readingLevelData.isConverted||[];return(_=_||(o?this.getReadingLevelKeyFromFullKey(o):void 0))&&(d.isConverted=p&&p.includes(this.readingLevelSystemKeyMap[_])||!1,d.label=d.isConverted?"Level":this.getReadingLevelSystemLabel(this.readingLevelSystemKeyMap[_],!0),d.value=t.getBookRl(_),d.valueWithAsterisk=d.value+(d.isConverted?"*":""),d.getValue=()=>t.getBookRl(_)),d}getBookRlWithLabelByAccountReadingLevelSystem(t){return this.getReadingLevelSystem(!0).then(_=>{const o=this.getReadingLevelKeyFromFullKey(_);return this.getBookRlWithLabel(t,o)})}getAccountReadingLevelSystem(){return this.accountRlSystemLoaded||(this.accountRlSystemLoaded=!0,this.getReadingLevelSystemObject().then(t=>{var _;this.onSystemUpdated((null===(_=null==t?void 0:t.result)||void 0===_?void 0:_.type)||null)})),this.accountReadingLevelSystem$}getReadingLevelOrGradeForBook(t,_){return _&&t.type!==i._.VIDEO?"grade"!==_?{label:"Level",value:this.getBookRlWithLabel(t,void 0,_).valueWithAsterisk}:{label:"Grade",value:t.getGradeRangeFromAge()}:null}onSystemUpdated(t){this.accountReadingLevelSystem$.next({actual:t,defaulted:t&&t!==n.a.undecided?t:n.a.accelerated_level})}}
1return h.\u0275fac=function(t){return new(t||h)(l.LFG(s.D),l.LFG(g.B),l.LFG(u.n),l.LFG(C.ProfileService))},h.\u0275prov=l.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},32202:(D,E,e)=>{e.r(E),e.d(E,{FL_EVENT_KEYS:()=>u,SchoolConnectLoggingService:()=>C});var a=e(81339),c=e(83472),i=e(3184),n=e(98476),l=e(31503),s=e(64617),g=e(1146);const u={FL_LANDING_PAGE_VIEWED:"fl_landing_page_viewed",FL_LANDING_PAGE_CONTINUE_CLICKED:"fl_landing_page_continue_clicked",FL_PLANS_PAGE_VIEWED:"fl_plans_page_viewed",FL_PLANS_PAGE_CONTINUE_CLICKED:"fl_plans_page_continue_clicked",FL_START_READING_MODAL_VIEWED:"fl_start_reading_modal_viewed",FL_START_READING_MODAL_CLOSED:"fl_start_reading_modal_closed",FL_EMAIL_SSO_CLICK:"fl_email_sso_click",FL_LOGIN_PASSWORD_VIEWED:"fl_login_password_viewed",FL_LOGIN_FORGOT_PASSWORD_CLICKED:"fl_login_forgot_password_clicked",FL_LOGIN_PASSWORD_ENTERED:"fl_login_password_entered",FL_ACCOUNT_ALREADY_SUBSCRIBED:"fl_account_already_subscribed",FL_PASSWORD_VIEWED:"fl_password_viewed",FL_PASSWORD_SET:"fl_password_set",FL_SIGNUP_AGE_GATE_VIEWED:"fl_signup_age_gate_viewed",FL_SIGNUP_AGE_GATE_SUCCESS:"fl_signup_age_gate_success",FL_SIGNUP_AGE_GATE_FAILURE:"fl_signup_age_gate_failure",FL_DATA_PROTECTION_VIEWED:"fl_data_protection_viewed",FL_DATA_PROTECTION_AGREE_CLICKED:"fl_data_protection_agree_clicked",FL_PAYMENT_SUBSCRIBE_CLICKED:"fl_payment_subscribe_clicked",FL_PAYMENT_FAILED:"fl_payment_failed",FL_PAYMENT_SUCCESS:"fl_payment_success",FL_SUCCESS_SCREEN_VIEWED:"fl_success_screen_viewed"};let C=(()=>{class v{constructor(r,t,_,o,d){this.bigQueryService=r,this._routingService=t,this._schoolConnectService=_,this._localStorageService=o,this._accountService=d,this.grades=["Pre-K","K","1st Grade","2nd Grade","3rd Grade","4th Grade","5th Grade","6th Grade","7th Grade +"]}getSchoolId(){var r,t;return(null===(t=null===(r=this._schoolConnectService.flyerResponse)||void 0===r?void 0:r.result)||void 0===t?void 0:t.schoolId)||this._localStorageService.get(a.FLORIDA_CAMPAIGN_LS_KEYS.SCHOOL_ID)}logFlPaymentSuccessScreenView(r){this.logPaymentEvents(u.FL_SUCCESS_SCREEN_VIEWED,r)}logFlPaymentSubscribe(r){this.logPaymentEvents(u.FL_PAYMENT_SUBSCRIBE_CLICKED,r)}logFlPaymentSuccess(r){this.logPaymentEvents(u.FL_PAYMENT_SUCCESS,r)}logFlPaymentFail(r){this.logPaymentEvents(u.FL_PAYMENT_FAILED,r)}logPaymentEvents(r,{plan_selected:t,interim_selected:_,total_amount_in_cents:o}){var d,p,L,O;const A=this._schoolConnectService.getMappedFlyerDataProfiles();this.bigQueryService.log(r,{plan_selected:t,interim_selected:_,total_amount_in_cents:o,school_id:this.getSchoolId(),profiles_added:null===(d=null==A?void 0:A.map(P=>P.name))||void 0===d?void 0:d.length,city:null===(p=this.addressDetails)||void 0===p?void 0:p.city,state:null===(L=this.addressDetails)||void 0===L?void 0:L.state,zip_code:null===(O=this.addressDetails)||void 0===O?void 0:O.zipcode})}logPlansEvent(r,{plan_selected:t,interim_selected:_,total_amount_in_cents:o}){var d;const p=this._schoolConnectService.getMappedFlyerDataProfiles();this.bigQueryService.log(r,{plan_selected:t,interim_selected:_,total_amount_in_cents:o,school_id:this.getSchoolId(),profiles_added:null===(d=null==p?void 0:p.map(L=>L.name))||void 0===d?void 0:d.length})}logPlansContinueClick({plan_selected:r,interim_selected:t,total_amount_in_cents:_}){var o,d,p;const L=this._schoolConnectService.getMappedFlyerDataProfiles();this.bigQueryService.log(u.FL_PLANS_PAGE_CONTINUE_CLICKED,{plan_selected:r,interim_selected:t,total_amount_in_cents:_,school_id:this.getSchoolId(),profile_name:null===(o=null==L?void 0:L.map(O=>O.name))||void 0===o?void 0:o.toString(),profiles_added:null===(d=null==L?void 0:L.map(O=>O.name))||void 0===d?void 0:d.length,grade:null===(p=null==L?void 0:L.map(O=>this.grades[O.grade+1]))||void 0===p?void 0:p.toString()})}logPlansPageView(){var r;const t=this._schoolConnectService.getMappedFlyerDataProfiles();this.bigQueryService.log(u.FL_PLANS_PAGE_VIEWED,{profiles_added:null===(r=null==t?void 0:t.map(_=>_.name))||void 0===r?void 0:r.length,school_id:this.getSchoolId(),email:this._accountService.email,account_id:this._accountService.id})}logLandingPageContinueCta(){var r,t,_;const o=this._schoolConnectService.getMappedFlyerDataProfiles();this.bigQueryService.log(u.FL_LANDING_PAGE_CONTINUE_CLICKED,{profile_name:null===(r=null==o?void 0:o.map(d=>d.name))||void 0===r?void 0:r.toString(),profiles_added:null===(t=null==o?void 0:o.map(d=>d.name))||void 0===t?void 0:t.length,grade:null===(_=null==o?void 0:o.map(d=>this.grades[d.grade+1]))||void 0===_?void 0:_.toString(),school_id:this.getSchoolId()})}logLandingPageView(){this.bigQueryService.log(u.FL_LANDING_PAGE_VIEWED,{url:"/"+this._routingService.getCurRoute()[1],school_id:this.getSchoolId()})}logEmailSsoClick(r){this.logSignupEvents(u.FL_EMAIL_SSO_CLICK,{mode:r})}logStartReadingModalClose(){this.logSignupEvents(u.FL_START_READING_MODAL_CLOSED)}logStartReadingModalView(){this.logSignupEvents(u.FL_START_READING_MODAL_VIEWED)}logLoginPwdView(){this.logSignupEvents(u.FL_LOGIN_PASSWORD_VIEWED)}logLoginPwdEntered(){this.logSignupEvents(u.FL_LOGIN_PASSWORD_ENTERED)}logPwdSet(){this.logSignupEvents(u.FL_PASSWORD_SET)}logPwdView(){this.logSignupEvents(u.FL_PASSWORD_VIEWED)}logAccAlreadySubscribed(r){this.logSignupEvents(u.FL_ACCOUNT_ALREADY_SUBSCRIBED,{account_id:r})}logLoginForgotPwdClicked(){this.logSignupEvents(u.FL_LOGIN_FORGOT_PASSWORD_CLICKED)}logDataProtectionView(){this._schoolConnectService.isFloridaExperimentFlow&&this.logSignupEvents(u.FL_DATA_PROTECTION_VIEWED)}logDataProtectionClick(){this._schoolConnectService.isFloridaExperimentFlow&&this.logSignupEvents(u.FL_DATA_PROTECTION_AGREE_CLICKED)}logFlAgeGateEvents(r){if(this._schoolConnectService.isFloridaExperimentFlow&&r!==c.L.CLOSE&&r!==c.A.BACK){let t=u.FL_SIGNUP_AGE_GATE_VIEWED;switch(r){case c.L.SUCCESS:t=u.FL_SIGNUP_AGE_GATE_SUCCESS;break;case c.L.FAIL:t=u.FL_SIGNUP_AGE_GATE_FAILURE;break;default:t=u.FL_SIGNUP_AGE_GATE_VIEWED}this.logSignupEvents(t)}}logSignupEvents(r,t){var _;const o=this._schoolConnectService.getMappedFlyerDataProfiles();this.bigQueryService.log(r,Object.assign({profiles_added:null===(_=null==o?void 0:o.map(d=>d.name))||void 0===_?void 0:_.length,school_id:this.getSchoolId()},t))}}return v.\u0275fac=function(r){return new(r||v)(i.LFG(n.p),i.LFG(l.Zn),i.LFG(a.SchoolConnectService),i.LFG(s.n),i.LFG(g.B))},v.\u0275prov=i.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},81339:(D,E,e)=>{e.r(E),e.d(E,{FLORIDA_CAMPAIGN_LS_KEYS:()=>h,SchoolConnectService:()=>r});var a=e(34929),c=e(76317),i=e(50253),n=e(59346),l=e(78947),s=e(59295),g=e(3184),u=e(64617),C=e(65925);const h={IDENTITY:"florida_exp_id",SCHOOL_CONNECT_DATA:"school-connect-data",SC
1HOOL_ID:"school-id"};let r=(()=>{class t{constructor(o,d,p){this._localStorage=o,this._dataService=d,this._zone=p,this._flyerId="",this._flyerData={},this.schoolName$=new c.X(""),this.schoolAddress$=new c.X(""),this._studentProfiles$=new c.X([]),this.floridaCampaignPaymentScreenLoaded=new i.x,this.floridaCampaignPaymentScreenLoaded$=this.floridaCampaignPaymentScreenLoaded,this.isFloridaExperimentFlow=!1,this.invalidFlyer=!1}get flyerId(){return this._flyerId}set flyerId(o){this._flyerId=o}set flyerDataProfiles(o){if(this.flyerId)if(o&&o.length)try{this._flyerData[this.flyerId].profiles=o}catch(d){console.log("some issue in setting statefull flyerdataprofiles")}else this._flyerData[this.flyerId]={profiles:[]}}get flyerDataProfiles(){return this.flyerId?this._flyerData[this.flyerId].profiles:null}get flyerDataProfilesLength(){if(this._flyerData&&this._flyerId&&this.flyerDataProfiles)return this.flyerDataProfiles.length}getSchoolAddress(){return this.schoolAddress$.asObservable()}getSchoolName(){return this.schoolName$.asObservable()}getStudentProfiles(){return this._studentProfiles$.asObservable()}fetchFlyerIdDetails(){return(0,n.D)(this._dataService.getApiV2(`getFlyerDetails/${this.flyerId}`))}intializeFlyerDataProfiles(){this.flyerDataProfiles=[]}initFlyerData(){var o;return(0,a.mG)(this,void 0,void 0,function*(){const d=this.flyerResponse;if(null==d?void 0:d.result)try{d.result=Object.assign(Object.assign({},d.result),{grade:null===(o=d.result)||void 0===o?void 0:o.studentGrade}),this._initProcessForFlyerData(d.result)}catch(p){}})}setSchoolName(){var o,d,p;const L=null===(p=null===(d=null===(o=this.flyerResponse)||void 0===o?void 0:o.result)||void 0===d?void 0:d.schoolName)||void 0===p?void 0:p.toLowerCase();this.schoolName$.next(L)}setSchoolAddress(){var o,d;this.schoolAddress$.next(null===(d=null===(o=this.flyerResponse)||void 0===o?void 0:o.result)||void 0===d?void 0:d.schoolAddress)}_initProcessForFlyerData(o){this.flyerDataProfiles=[];const{studentName:d,grade:p,schoolId:L}=o;let A,O=[];d&&null!=p&&(A={studentName:d,grade:p,id:L,source:"server"},O.push(A));const P=this.getProfilesFromLocalStorage();P?(P.find(S=>"server"===S.source)&&(O=O.filter(S=>"server"!==S.source)),O=[...P],this.assignAndSetProfilesInfoInLocalStorage(O)):this.assignAndSetProfilesInfoInLocalStorage(O),this.emitStudentProfile(O)}emitStudentProfile(o){this._studentProfiles$.next(o)}assignAndSetProfilesInfoInLocalStorage(o){this.flyerDataProfiles=o,this.setProfilesInfoInLocalStorage()}getMappedFlyerDataProfiles(){if(this.flyerDataProfiles)return this.flyerDataProfiles.map(({studentName:o,grade:d})=>({name:o,grade:d}))}setProfilesInfoInLocalStorage(){this._zone.runOutsideAngular(()=>{(0,l.H)(100).pipe((0,s.q)(1)).subscribe(()=>{try{let o=this._localStorage.get(h.SCHOOL_CONNECT_DATA);o||(o={}),o[this._flyerId]={profiles:this.flyerDataProfiles},this._localStorage.set(h.SCHOOL_CONNECT_DATA,o)}catch(o){console.warn("error in setting localstorage")}})})}getProfilesFromLocalStorage(){try{const o=this._localStorage.get(h.SCHOOL_CONNECT_DATA);return(null==o?void 0:o[this.flyerId])?o[this.flyerId].profiles:null}catch(o){return console.warn("error in getting localstorage"),null}}floridaCampaignPaymentPageLoaded(){this.floridaCampaignPaymentScreenLoaded.next(!0)}getFlyerIDFromLocalStorage(){return this._localStorage.get(h.IDENTITY)}mapFlyerWithAccount(){const o={flyerId:this.getFlyerIDFromLocalStorage()};this._dataService.postApiV2("redeemSchoolFlyer",o)}removeLocalStorageValues(){let o=this._localStorage.get(h.SCHOOL_CONNECT_DATA);delete o[this._localStorage.get(h.IDENTITY)],this._localStorage.set(h.SCHOOL_CONNECT_DATA,o),this._localStorage.remove(h.IDENTITY),this._localStorage.remove(h.SCHOOL_ID)}geoLocationV2(){this._dataService.getApiV2("geoLocation")}}return t.\u0275fac=function(o){return new(o||t)(g.LFG(u.n),g.LFG(C.D),g.LFG(g.R0b))},t.\u0275prov=g.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},95263:(D,E,e)=>{e.d(E,{W:()=>l});var a=e(65758),c=e(3184),i=e(36362),n=e(78096);let l=(()=>{class s{constructor(u){this.location=u,this.arrowType=a.L.ARROW,this.buttonClasse
1s=["epic-icon--hover-dark-blue","btnSize"],this.ariaLabel="Back",this.disableChangeLocation=!1}handleClick(){this.historyBack()}historyBack(){this.disableChangeLocation||this.location.back()}}return s.\u0275fac=function(u){return new(u||s)(c.Y36(i.Ye))},s.\u0275cmp=c.Xpm({type:s,selectors:[["epic-back-button"]],inputs:{arrowType:"arrowType",buttonClasses:"buttonClasses",ariaLabel:"ariaLabel",disableChangeLocation:"disableChangeLocation"},decls:4,vars:5,consts:[["type","button",1,"back-button",3,"click"],[3,"icon","iconClasses"],[1,"sr-only"]],template:function(u,C){1&u&&(c.TgZ(0,"button",0),c.NdJ("click",function(){return C.handleClick()}),c._UZ(1,"epic-icon",1),c.TgZ(2,"span",2),c._uU(3),c.qZA()()),2&u&&(c.uIk("aria-label",C.ariaLabel)("title",C.ariaLabel),c.xp6(1),c.Q6J("icon",C.arrowType)("iconClasses",C.buttonClasses),c.xp6(2),c.Oqu(C.ariaLabel))},directives:[n.A],styles:[".back-button[_ngcontent-%COMP%]{background:none;border:none;padding:0;cursor:pointer;display:inline-flex;align-items:center;outline:none}.back-button[_ngcontent-%COMP%]:focus-visible{outline:2px solid #0055b8;outline-offset:2px}.back-button[_ngcontent-%COMP%]:focus:not(:focus-visible){outline:none}.sr-only[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}"]}),s})()},6083:(D,E,e)=>{e.d(E,{n:()=>n});var a=e(36362),c=e(59198),i=e(3184);let n=(()=>{class l{}return l.\u0275fac=function(g){return new(g||l)},l.\u0275mod=i.oAB({type:l}),l.\u0275inj=i.cJS({imports:[[a.ez,c.L]]}),l})()},24086:(D,E,e)=>{e.d(E,{b:()=>C});var a=e(36362),c=e(50056),i=e(90587),n=e(44770),l=e(40089),s=e(27224),g=e(45869),u=e(3184);let C=(()=>{class v{}return v.\u0275fac=function(r){return new(r||v)},v.\u0275mod=u.oAB({type:v}),v.\u0275inj=u.cJS({imports:[[a.ez,c.P,i.u5,i.UX,n.LD,s.o9,l.AV,g.I]]}),v})()},55617:(D,E,e)=>{e.d(E,{c:()=>n});var a=e(3184),c=e(36362);const i=function(l,s,g){return{"background-color":l,"width.px":s,"height.px":g}};let n=(()=>{class l{constructor(){this.dotWidth=18}ngOnInit(){this.color||(this.color="#ffffff")}}return l.\u0275fac=function(g){return new(g||l)},l.\u0275cmp=a.Xpm({type:l,selectors:[["epic-dot-loader"]],inputs:{color:"color",dotWidth:"dotWidth"},decls:4,vars:15,consts:[[1,"dot-loader"],[1,"bounce1",3,"ngStyle"],[1,"bounce2",3,"ngStyle"],[1,"bounce3",3,"ngStyle"]],template:function(g,u){1&g&&(a.TgZ(0,"div",0),a._UZ(1,"div",1)(2,"div",2)(3,"div",3),a.qZA()),2&g&&(a.xp6(1),a.Q6J("ngStyle",a.kEZ(3,i,u.color,u.dotWidth,u.dotWidth)),a.xp6(1),a.Q6J("ngStyle",a.kEZ(7,i,u.color,u.dotWidth,u.dotWidth)),a.xp6(1),a.Q6J("ngStyle",a.kEZ(11,i,u.color,u.dotWidth,u.dotWidth)))},directives:[c.PC],styles:["div.dot-loader[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}div.dot-loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{border-radius:50%;animation:bouncedelay 1.4s infinite ease-in-out;animation-fill-mode:both}div.dot-loader[_ngcontent-%COMP%] div.bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}div.dot-loader[_ngcontent-%COMP%] div.bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}div.dot-loader[_ngcontent-%COMP%] div.bounce3[_ngcontent-%COMP%]{animation-delay:0s}@keyframes bouncedelay{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),l})()},50056:(D,E,e)=>{e.d(E,{P:()=>i});var a=e(36362),c=e(3184);let i=(()=>{class n{}return n.\u0275fac=function(s){return new(s||n)},n.\u0275mod=c.oAB({type:n}),n.\u0275inj=c.cJS({imports:[[a.ez]]}),n})()},78096:(D,E,e)=>{e.d(E,{A:()=>i});var a=e(3184),c=e(65758);let i=(()=>{class n{constructor(s){this.iconService=s,this.iconClasses=[],this.iconPath="",this.iconClassesString=""}ngOnInit(){this.icon&&(this.iconPath=this.iconService.getIconPath(this.icon)),this.setIconClasses()}ngOnChanges(s){s.icon&&s.icon.currentValue!==s.icon.previousValue&&(this.iconPath=this.iconService.getIconPath(s.icon.currentValue)),s.iconClasses&&s.iconClasses.currentValue!==s.iconClasses.previousValue&&this.setIconClasses()}setIconClasses(){this.iconClasses=[...this.iconClasses],this.iconClasses.unshift("epic-icon"),this.iconClassesString=this.iconClasses.join(" ")}}return n.\u0275fac=function(s){return new(s||n)(a.Y36(c.C))},n.\u0275cmp=a.Xpm({type:n,selectors:[["epic-icon"]],inputs:{icon:"icon",iconClasses:"iconClasses"},features:[a.TTD],decls:2,vars:3,template:function(s,g){1&s&&(a.O4$(),a.TgZ(0,"svg"),a._UZ(1,"use"),a.qZA()),2&s&&(a.uIk("class",g.iconClassesString),a.xp6(1),a.uIk("href",g.iconPath)("href",g.iconPath,null,"xlink"))},styles:["[_nghost-%COMP%]{display:inline-block;line-height:0;vertical-align:middle}svg[_ngcontent-%COMP%]:not(:root){overflow:hidden}"]}),n})()},45869:(D,E,e)=>{e.d(E,{I:()=>i});var a=e(36362),c=e(3184);let i=(()=>{class n{}return n.\u0275fac=function(s){return new(s||n)},n.\u0275mod=c.oAB({type:n}),n.\u0275inj=c.cJS({imports:[[a.ez]]}),n})()},67704:(D,E,e)=>{e.d(E,{Y:()=>v});var a=e(97646),c=e(72426),i=e(73398),n=e(23489),l=e(3184),s=e(98476),g=e(77902),u=e(64617),C=e(2279);let v=(()=>{class h{constructor(t,_,o,d){this._bigQuery=t,this._sessionStorage=_,this._localStorageService=o,this._siteConstantsService=d}logSplitterView(){this._bigQuery.log(c.oM)}logSplitterUserTypeSelect(t){return this._bigQuery.log(t===a.$A.CHILD?c.JQ:c.No)}logKidsExperienceAgeGateView(t){this._bigQuery.log(c.Zi,{destination:t})}originCameFromKidsClassCode(){return Boolean(this._sessionStorage.getSessionStorageWithKey(this._sessionStorage.KEYS.FROM_KIDS_CLASS_CODE))}logKidsLandingPageViewed(){this._bigQuery.log(c.CS)}logSchoolSelect(){this._bigQuery.log(c.ol)}logFreetimeSelect(){this._bigQuery.log(c.Ku)}logSchoolGrownupSelect(){this._bigQuery.log(c.gE)}logHelpKidLoginView(){this._bigQuery.log(c.f)}logHelpKidLoginClassSelect(){this._bigQuery.log(c.jf)}logHelpKidLoginFamilySelect(){this._bigQuery.log(c.GJ)}logHelpKidLoginSignupSelect(){return this._bigQuery.log(c.Ko)}logHelpKidLoginHomepageSelect(){return this._bigQuery.log(c.Sq)}isGoogleBot(t){return new RegExp(this._siteConstantsService.GOOGLEBOT_USERAGENT_IDS.map(o=>o.source).join("|"),"i").test(t)}
1checkAndSetKidsSsoLocalStorageValues(){const t=this._sessionStorage.getSessionStorageWithKey(i.nt.KIDS_LOGIN_SSO_QUERY_PARAM_KEY);t&&(this._sessionStorage.removeSessionStorageKey(i.nt.KIDS_LOGIN_SSO_QUERY_PARAM_KEY),this._setLocalStorageValuesForKidsSsoLogin(t))}_setLocalStorageValuesForKidsSsoLogin(t){switch(t){case n.c.GOOGLE:this._localStorageService.set(i.nt.GOOGLE_SSO_LOGGED_IN,!0);break;case n.c.APPLE:this._localStorageService.set(i.nt.APPLE_SSO_LOGGED_IN,!0);break;case n.c.FACEBOOK:this._localStorageService.set(i.nt.FACEBOOK_SSO_LOGGED_IN,!0)}}}return h.\u0275fac=function(t){return new(t||h)(l.LFG(s.p),l.LFG(g.u),l.LFG(u.n),l.LFG(C.JF))},h.\u0275prov=l.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},39910:(D,E,e)=>{e.d(E,{Yg:()=>A,u3:()=>R,xu:()=>_});var a=e(3184),c=e(76484),i=e(50253),n=e(26562),l=e(59319),s=e(83336),g=e(59295),u=e(87260),C=e(71989),v=e(50635),h=e(44874),r=e(68951),t=e(14390);let _=(()=>{class S{}return S.\u0275fac=function(f){return new(f||S)},S.\u0275mod=a.oAB({type:S}),S.\u0275inj=a.cJS({}),S})();const o=new Set;let d,p=(()=>{class S{constructor(f){this._platform=f,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):O}matchMedia(f){return(this._platform.WEBKIT||this._platform.BLINK)&&function L(S){if(!o.has(S))try{d||(d=document.createElement("style"),d.setAttribute("type","text/css"),document.head.appendChild(d)),d.sheet&&(d.sheet.insertRule(`@media ${S} {body{ }}`,0),o.add(S))}catch(I){console.error(I)}}(f),this._matchMedia(f)}}return S.\u0275fac=function(f){return new(f||S)(a.LFG(t.t4))},S.\u0275prov=a.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})();function O(S){return{matches:"all"===S||""===S,media:S,addListener:()=>{},removeListener:()=>{}}}let A=(()=>{class S{constructor(f,m){this._mediaMatcher=f,this._zone=m,this._queries=new Map,this._destroySubject=new i.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(f){return P((0,c.Eq)(f)).some(F=>this._registerQuery(F).mql.matches)}observe(f){const F=P((0,c.Eq)(f)).map(T=>this._registerQuery(T).observable);let M=(0,n.a)(F);return M=(0,l.z)(M.pipe((0,g.q)(1)),M.pipe((0,u.T)(1),(0,C.b)(0))),M.pipe((0,v.U)(T=>{const y={matches:!1,breakpoints:{}};return T.forEach(({matches:U,query:N})=>{y.matches=y.matches||U,y.breakpoints[N]=U}),y}))}_registerQuery(f){if(this._queries.has(f))return this._queries.get(f);const m=this._mediaMatcher.matchMedia(f),M={observable:new s.y(T=>{const y=U=>this._zone.run(()=>T.next(U));return m.addListener(y),()=>{m.removeListener(y)}}).pipe((0,h.O)(m),(0,v.U)(({matches:T})=>({query:f,matches:T})),(0,r.R)(this._destroySubject)),mql:m};return this._queries.set(f,M),M}}return S.\u0275fac=function(f){return new(f||S)(a.LFG(p),a.LFG(a.R0b))},S.\u0275prov=a.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})();function P(S){return S.map(I=>I.split(",")).reduce((I,f)=>I.concat(f)).map(I=>I.trim())}const R={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}}}]);
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.