PageSourceSearch

https://www.getepic.com/src_app_web-app_routes_explore_explore_module_ts.cc4649437b338217.js

js getepic.com collected 2026-09-24 08:41:45 UTC 151,823 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkng_up=self.webpackChunkng_up||[]).push([["src_app_web-app_routes_explore_explore_module_ts"],{18898:(de,G,a)=>{a.d(G,{Gr:()=>h,KC:()=>t,NO:()=>f,Wd:()=>B,fC:()=>O,nv:()=>m,ux:()=>y,x1:()=>U});var h=(()=>{return(v=h||(h={})).LAND="landing_originals",v.BACK_ARROW_CLICK="originals_back_arrow_click",h;var v})(),m=(()=>{return(v=m||(m={})).CAME_FROM="clicked_on",v.EO_TITLE="eo_title",v.SERIES_IDS="seriesmodel_ids",v.WIDGET_CTA_ACTION="cta_button",m;var v})(),f=(()=>{return(v=f||(f={})).EPIC_ORIGINALS_ROW="epic_originals_row",v.FRONT_OF_BOOK="front_of_book",v.END_OF_BOOK="end_of_book",v.BANNER="banner",f;var v})();const y="epic_originals_landing_page";var t=(()=>((t||(t={})).CTA_CLICK="originals_read_cta_click",t))(),U=(()=>{return(v=U||(U={})).EO_TITLE="eo_title",v.BOOK_TITLE="book_title",v.BOOK_ID="book_id",v.WIDGET_CTA_ACTION="cta_button",v.PAGES_REMAINING="num_pages_remaining",v.PROGRESS="read_progress",U;var v})(),B=(()=>{return(v=B||(B={})).START="start_reading",v.CONTINUE="continue_reading",v.READ_AGAIN="read_again",B;var v})(),O=(()=>{return(v=O||(O={})).EO_TITLE="eo_title",v.ROW_TITLE="row_title",v.ROW_POSITION="row_position",v.BOOK_POSITION="book_position",O;var v})()},77198:(de,G,a)=>{a.d(G,{d:()=>Z});var h=a(15527),m=a(18898),f=a(69636),y=a(3184),t=a(52220),U=a(5485),B=a(41752),O=a(84449),v=a(43445),_=a(31503),S=a(36362);const E=function(D,z,b){return{section_swap_variant:D,image_scale_center:z,unset_width:b}};let Z=(()=>{class D extends f.C{constructor(b,w,P,k,oe,J){super(b,w,P),this.assetService=k,this.routingService=oe,this._envService=J,this.collectionThumbnails={},this.section_swap_variant=!1,this.searchSection=!1,this.viewListType=!1}ngOnInit(){this._initThumbnails()}showOriginalsCollection(b){var w;let P=this.onClick(b,(null===(w=this.collection)||void 0===w?void 0:w.recommendation_uuid4)||"");this.collection&&this.routingService.goToWebAppRoute({route:h.Pm.CONTENT_TITLE,pathParams:[this.collection.modelId],extras:{state:{clickUuid4:P[0],cameFromSource:m.NO.EPIC_ORIGINALS_ROW}}})}onKeyDown(b){if("Enter"===b.key||" "===b.key){b.preventDefault();const P=b.target.getBoundingClientRect();this.showOriginalsCollection({clientX:P.left+P.width/2,clientY:P.top+P.height/2})}}getAriaLabel(){var b;return(null===(b=this.collection)||void 0===b?void 0:b.title)||"Originals collection"}getItemRecommendationUuid(){var b;return(null===(b=this.collection)||void 0===b?void 0:b.recommendation_uuid4)||""}_initThumbnails(){var b,w,P,k;let J={url:this.section_swap_variant?null===(b=this.collection)||void 0===b?void 0:b.cardImageUrl:(null===(w=this.collection)||void 0===w?void 0:w.cardImageExtraSmallUrl)?this.collection.cardImageExtraSmallUrl:(null===(P=this.collection)||void 0===P?void 0:P.cardImageUrl)?this.collection.cardImageUrl:`${this._envService.cdnBase}${null===(k=this.collection)||void 0===k?void 0:k.cardImageExtraSmall}.png`};const ge=this.section_swap_variant?250:420;this.searchSection||(J=Object.assign(Object.assign({},J),{width:ge})),this.collectionThumbnails=this.assetService.getImageVersions(J,["png","webp"])}}return D.\u0275fac=function(b){return new(b||D)(y.Y36(t.Z),y.Y36(O.f),y.Y36(v.W),y.Y36(U.d),y.Y36(_.Zn),y.Y36(B.DJ))},D.\u0275cmp=y.Xpm({type:D,selectors:[["new-epic-originals-collection-item"]],inputs:{collection:"collection",section_swap_variant:"section_swap_variant",searchSection:"searchSection",viewListType:"viewListType"},features:[y.qOj],decls:5,vars:11,consts:[["tabindex","0","role","button",1,"epic-original-container",3,"click","keydown"],["type","image/webp",3,"srcset"],[1,"epic-originals-collection-image","pointer",2,"border-radius","7px","height","100%",3,"ngClass","src","title","alt"],["_elementForImpressionLogging",""]],template:function(b,w){1&b&&(y.TgZ(0,"div",0),y.NdJ("click",function(k){return w.showOriginalsCollection(k)})("keydown",function(k){return w.onKeyDown(k)}),y.TgZ(1,"picture"),y._UZ(2,"source",1)(3,"img",2,3),y.qZA()()),2&b&&(y.uIk("aria-label",w.getAriaLabel()),y.xp6(2),y.Q6J("srcset",w.collectionThumbnails.webp,y.LSH),y.xp6(1),y.Q6J("ngClass",y.kEZ(7,E,w.section_swap_variant,w.searchSection,w.viewListType))("src",w.collectionThumbnails.png,y.LSH)("title",(null==w.
1collection?null:w.collection.title)||"")("alt",(null==w.collection?null:w.collection.title)||"Originals collection image"),y.uIk("r-id",null==w.collection?null:w.collection.recommendation_uuid4))},directives:[S.mk],styles:[".epic-original-container[_ngcontent-%COMP%]{position:relative;display:inline-block;width:100%;height:auto;margin:0;outline:none}.epic-original-container[_ngcontent-%COMP%]:focus-visible{outline:3px solid #0a96e6;outline-offset:2px;border-radius:7px;z-index:10}.epic-original-container[_ngcontent-%COMP%]:focus:not(:focus-visible){outline:none}img.epic-originals-collection-image[_ngcontent-%COMP%]{transform-origin:center left;transition:transform .25s;max-height:249px;margin:0 -10px;filter:drop-shadow(0px 2px 14px rgba(44,59,86,.2))}img.epic-originals-collection-image.image_scale_center[_ngcontent-%COMP%]{transform-origin:center center;width:100%}img.epic-originals-collection-image.unset_width[_ngcontent-%COMP%]{width:355px}img.epic-originals-collection-image[_ngcontent-%COMP%]:hover{transform:scale(1.1)}img.section_swap_variant[_ngcontent-%COMP%]{width:186px;margin:0;max-height:none}"]}),D})()},70603:(de,G,a)=>{a.r(G),a.d(G,{ExploreModule:()=>pn});var h=a(36362),m=a(12379),f=a(34929),y=a(28784),t=a(3184),U=a(11877),B=a(78947),O=a(26562),v=a(23280),_=a(28653),S=a(36646),E=a(31652),Z=a(71939),D=a(390),z=a(75634),b=a(95758),w=a(1146),P=a(98476),k=a(88582);function oe(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(n){const s=t.CHM(e).$implicit;return t.oxw().selectReadingSystem(n,s)}),t._uU(1),t.qZA()}if(2&o){const e=l.$implicit;t.xp6(1),t.hij(" ",e[0]," ")}}let ge=(()=>{class o{constructor(e,i,n,r){this.dialogRef=e,this.accountService=i,this.bigQueryService=n,this.readingLevelService=r,this.readingSystems=[["AR","accelerated_level"],["DRA","dra_level"],["F&P","fandp_level"],["GRL","guided_reading_level"],["Lexile","lexile_level"],["None/Other","undecided"]],this.btnDisabled=!0,this.accountService.updateAccountData(),this.accountId=this.accountService.id}ngOnInit(){}selectReadingSystem(e,i){const n=i[1],r=document.querySelector(".selected");r&&r.classList.remove("selected"),this.selectedSystem=n,e.target.classList.add("selected"),this.btnDisabled=!1}updateReadingSystem(){this.readingLevelService.setReadingLevelSystem(this.selectedSystem).then(()=>{this.close();const e={};e.reading_level=this.selectedSystem,this.bigQueryService.log("explore_select_rl_selected",e)})}close(){this.dialogRef.close()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(b.so),t.Y36(w.B),t.Y36(P.p),t.Y36(k.S))},o.\u0275cmp=t.Xpm({type:o,selectors:[["epic-reading-system-select-dialog"]],decls:8,vars:2,consts:[[1,"mat-dialog-close",3,"click"],["mat-dialog-title",""],["mat-dialog-content","","fxLayout","column","fxLayoutAlign","center center",1,"reading-system-select-container"],["fxLayout","row","fxLayoutAlign","center center",1,"system-buttons"],["class","epic-btn epic-btn--s epic-btn--secondary fontSize-s",3,"click",4,"ngFor","ngForOf"],[1,"epic-btn",3,"disabled","click"],[1,"epic-btn","epic-btn--s","epic-btn--secondary","fontSize-s",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.NdJ("click",function(){return i.close()}),t.qZA(),t.TgZ(1,"h2",1),t._uU(2,"Explore by Reading Level"),t.qZA(),t.TgZ(3,"div",2)(4,"div",3),t.YNc(5,oe,2,1,"button",4),t.qZA(),t.TgZ(6,"button",5),t.NdJ("click",function(){return i.updateReadingSystem()}),t._uU(7," Apply "),t.qZA()()),2&e&&(t.xp6(5),t.Q6J("ngForOf",i.readingSystems),t.xp6(1),t.Q6J("disabled",i.btnDisabled))},directives:[h.sg],styles:["div.reading-system-select-container[_ngcontent-%COMP%]{padding:0 40px 40px}div.reading-system-select-container[_ngcontent-%COMP%]   div.system-buttons[_ngcontent-%COMP%]{padding:16px 0 24px;flex-wrap:wrap}div.reading-system-select-container[_ngcontent-%COMP%]   div.system-buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:40px;margin:8px;border-color:#afbbca;color:#afbbca;min-width:150px}div.reading-system-select-container[_ngcontent-%COMP%]   div.system-buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{background-color:#0a96e6!important;color:#fff!important;border-color:#0a96e6!important}div.reading-system-select-container[_ngcontent-%COMP%]   div.system-buttons[_ngcontent-%COMP%]   button.selected[_ngcontent-%COMP%]{background-color:#0a96e6;color:#fff}div.reading-system-select-container[_ngcontent-%COMP%]   button.epic-btn[_ngcontent-%COMP%]{padding:8px}"]}),o})();var Y=a(82356),ue=a(93395),ye=a(55069),Q=a(75651),Oe=a(46599),L=a(73398),Qe=a(59295),He=a(9156),xe=a(73),$e=a(61125),re=a(41683),ze=a(98091),K=a(34592),H=a(15527),nt=a(10350),ot=a(16447),Pe=a(68893),rt=a(65925),pe=a(41752),he=a(11105),X=a(64617),st=a(54592),ve=a(44687),at=a(18107),lt=a(75811),M=a(15015),Ee=a(42948),se=a(47735),q=a(97646),Ce=a(17963);const Me="previous_experience",Fe="new_experience",gt=["audioElem"];function ut(o,l){if(1&o&&t._UZ(0,"img",7),2&o){const e=t.oxw();t.Q6J("src",e.headerImgUrl,t.LSH)("ngClass",e.imgClass)}}const pt=function(o){return{"audio-playing":o}};function ht(o,l){if(1&o){const e=t.EpF();t.ynx(0),t._UZ(1,"audio",8,9),t.TgZ(3,"div",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().toggleAudio()}),t.qZA(),t.BQk()}if(2&o){const e=t.oxw();
1t.xp6(1),t.s9C("src",e.audioSrcUrl,t.LSH),t.xp6(2),t.Q6J("ngClass",t.VKq(2,pt,e.isPlaying))}}let vt=(()=>{class o{constructor(e,i,n){this._bqService=e,this._dialogRef=i,this._localStorageService=n,this.dialogTitle="",this.text="",this.buttonText="",this.grownUpText="I\u2019m a grown up",this.headerImgUrl="",this.imgClass="",this.audioSrcUrl=""}get isPlaying(){return!!this.audioElem&&!this.audioElem.nativeElement.paused}ngOnInit(){this._localStorageService.remove(L.UE)}onButtonClicked(){this._bqService.log("experience_switch_dialog_done_clicked"),this._closeDialog()}toggleAudio(){if(!this.audioElem)return;const e=this.audioElem.nativeElement;this.isPlaying?e.pause():e.play()}_closeDialog(){this._dialogRef.close()}_addBQPrevNewExperienceParams(e,i,n){e[Me]=i,e[Fe]=n}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(P.p),t.Y36(b.so),t.Y36(X.n))},o.\u0275cmp=t.Xpm({type:o,selectors:[["epic-experience-dialog"]],viewQuery:function(e,i){if(1&e&&t.Gf(gt,5),2&e){let n;t.iGM(n=t.CRH())&&(i.audioElem=n.first)}},decls:9,vars:5,consts:[[1,"content-container"],[1,"dialog-header"],["class","dialog-image",3,"src","ngClass",4,"ngIf"],[1,"dialog-title"],[1,"text",3,"innerHTML"],[1,"epic-btn","epic-btn--l",3,"click"],[4,"ngIf"],[1,"dialog-image",3,"src","ngClass"],[3,"src"],["audioElem",""],[1,"audio-btn",3,"ngClass","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,ut,1,2,"img",2),t.qZA(),t.TgZ(3,"h2",3),t._uU(4),t.qZA(),t._UZ(5,"p",4),t.TgZ(6,"button",5),t.NdJ("click",function(){return i.onButtonClicked()}),t._uU(7),t.qZA()(),t.YNc(8,ht,4,4,"ng-container",6)),2&e&&(t.xp6(2),t.Q6J("ngIf",i.headerImgUrl),t.xp6(2),t.Oqu(i.dialogTitle),t.xp6(1),t.Q6J("innerHTML",i.text,t.oJD),t.xp6(2),t.hij(" ",i.buttonText," "),t.xp6(1),t.Q6J("ngIf",i.audioSrcUrl))},directives:[h.O5,h.mk],styles:["[_nghost-%COMP%]{color:#3c4b62;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;width:600px;min-height:450px;border-radius:16px;padding:0;background-image:url(/assets/freemium/freemium-header-solid-blue.svg);background-repeat:no-repeat}[_nghost-%COMP%]   .content-container[_ngcontent-%COMP%]{width:100%;padding:0 50px}[_nghost-%COMP%]   .mat-dialog-close[_ngcontent-%COMP%]{height:25px;width:25px;margin-right:15px;margin-top:15px;margin-left:auto}[_nghost-%COMP%]   .dialog-header[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:-15px auto 50px}[_nghost-%COMP%]   .dialog-header[_ngcontent-%COMP%]   .dialog-image[_ngcontent-%COMP%]{border-radius:16px}[_nghost-%COMP%]   .dialog-header[_ngcontent-%COMP%]   .dialog-image.logo[_ngcontent-%COMP%]{margin-bottom:20px}[_nghost-%COMP%]   .dialog-header[_ngcontent-%COMP%]   .dialog-image.logo-after-school[_ngcontent-%COMP%]{border-radius:0;width:196.65px}[_nghost-%COMP%]   .dialog-header[_ngcontent-%COMP%]   .dialog-image.logo-only[_ngcontent-%COMP%]{border-radius:0;width:196.65px;margin-top:25px}[_nghost-%COMP%]   .dialog-header[_ngcontent-%COMP%]   .description-container[_ngcontent-%COMP%]{margin:25px 0 auto 20px;max-width:400px;text-align:left;color:#fff}[_nghost-%COMP%]   .dialog-header[_ngcontent-%COMP%]   .description-container[_ngcontent-%COMP%]   .content-description[_ngcontent-%COMP%]{width:250px}[_nghost-%COMP%]   .dialog-header[_ngcontent-%COMP%]   .description-title[_ngcontent-%COMP%]{font-weight:700;margin-bottom:30px}[_nghost-%COMP%]   .dialog-title[_ngcontent-%COMP%]{margin:20px}[_nghost-%COMP%]   .epic-btn[_ngcontent-%COMP%]{margin:25px 15px 15px}[_nghost-%COMP%]   .text[_ngcontent-%COMP%]{font-size:18px}[_nghost-%COMP%]   .audio-btn[_ngcontent-%COMP%]{align-self:start;margin-left:15px;margin-bottom:-25px;cursor:pointer;height:35px;width:35px;background-repeat:no-repeat;background-size:contain;background-image:url(/assets/icons/icon-audio-muted.svg)}[_nghost-%COMP%]   .audio-btn.audio-playing[_ngcontent-%COMP%]{background-image:url(/assets/icons/icon-audio.svg)}"]}),o})();
1var Ct=a(65018),_t=a(42873),mt=a(26555),De=a(33949),ft=a(35520),ee=a(31503);let bt=(()=>{class o{constructor(e,i,n,r,s,c,d,g,p,C,u){this._accountService=e,this._bqService=i,this._dialog=n,this._emailVerifyConsumerService=r,this._experienceService=s,this._experienceDialogService=c,this._eduOnboardingService=d,this._localStorageService=g,this._profileService=p,this._redirectService=C,this._routingService=u}openExperienceSwitchDialog(e){if(e&&e!==q.ue.NO_SWITCH)return this._dialog.open(vt,{disableClose:!0,panelClass:"epic-mat-dialog--freemium-simple-dialog",data:{type:e}})}handleAutoSwitchingExperiences(e){this._experienceDialogService.resetDialogs();const i=this._experienceService.isSchoolHours();if(!this._isAllowedToAutomagicSwitch(e,i))return Promise.resolve(this._createSwitchExperienceResponse(!1));!(e instanceof se.V)&&e.hasOwnProperty("userAccountLink")&&(e=new se.V(e));const r=e instanceof se.V&&e.linkAndTransferData.getConnectedLink(),s=!!(e instanceof se.V&&e.linkAndTransferData.getIncompleteAccountLink()),c=i&&this._accountService.isArchivedClass();return!i&&!r&&!this._eduOnboardingService.studentsSetupBannerData.isStudentExploreMode||c?this._handleUnlinked(e,s):Promise.resolve(this._createSwitchExperienceResponse(!1))}_isAllowedToAutomagicSwitch(e,i){let n=!0;return this._accountService.isAuthed()||(n=!1),(this._experienceService.isTeacher()||this._eduOnboardingService.studentsSetupBannerData.isStudentExploreMode)&&(n=!1),i&&this._accountService.isEducator()&&!this._accountService.isArchivedClass()&&(n=!1),!i&&!this._accountService.isEducator()&&(n=!1),n}_handleUnlinked(e,i){return this._blockAfterHours(e)}_blockAfterHours(e){return this._emailVerifyConsumerService.getEmailVerificationStatus(e.id||e.userId).then(n=>{if(!n)return console.log("ExpSwitch: _handleUnlinked: getting email verification failed."),Promise.resolve(this._createSwitchExperienceResponse(!1));let s,r=L.rP.AFTER_HOURS;if(n.success){const c=n.result;switch(c.emailVerificationStatus){case Ce.n5.NO_STATUS:r=L.rP.AFTER_HOURS,s=q.ue.AFTER_HOURS_BLOCK;break;case Ce.n5.NOT_VERIFIED:r=L.rP.EMAIL_VERIFICATION,s=q.ue.EMAIL_VERIFY_BLOCK,this._emailVerifyConsumerService.setEmailVerifyDialogInfo(c.email||"");break;case Ce.n5.VERIFIED:r=L.rP.NO_DIALOG,this._redirectService.goToLogIn(!0)}r===L.rP.AFTER_HOURS&&this._experienceDialogService.setShowBlockingDialog(r)}return Promise.resolve(this._createSwitchExperienceResponse(!1,s))})}_bqLogExperienceSwitch(e,i){const n={};n[Me]=e,n[Fe]=i;let r=this._bqService.log("epic_experience_switch",n);return r||(r=Promise.resolve()),r}_createSwitchExperienceResponse(e,i){return e&&this._localStorageService.set(L.UE,i),{hasSwitchedExperience:e}}_sendUserToApp(){this._routingService.goToWebApp()}_sendUserToEnterClasscode(){this._accountService.logout(!0),this._routingService.goToWebsiteRoute({route:Ct.EB.STUDENTS})}}return o.\u0275fac=function(e){return new(e||o)(t.LFG(w.B),t.LFG(P.p),t.LFG(b.uw),t.LFG(mt.l),t.LFG(he.DT),t.LFG(De.U),t.LFG(ft.J0),t.LFG(X.n),t.LFG(ve.ProfileService),t.LFG(_t.V),t.LFG(ee.Zn))},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();var St=a(21618),_e=a(48146),W=a(26966),te=a(62410),Le=a(77902),Te=a(84762);let wt=(()=>{class o{constructor(e,i,n,r,s){this._localStorageService=e,this._freemiumService=i,this._sessionStorageService=n,this._accountFlagsService=r,this._accountService=s,this.BUDDY_RECOMMENDED_ACCOUNT_AGE_WEEKS_LIMIT=2,this.BUDDY_RECOMMENDED_COUNT_LIMIT=10,this.BUDDY_RECOMMENDED_COUNT_LIMIT_SESSION=2}buddyCanRecommendBook(){return(0,f.mG)(this,void 0,void 0,function*(){if((0,W._2)(W.a_.WEEKS,!0,this._accountService.dateCreated)>=this.BUDDY_RECOMMENDED_ACCOUNT_AGE_WEEKS_LIMIT||this.getBuddyRecommendedSessionStorageCount()>=this.BUDDY_RECOMMENDED_COUNT_LIMIT_SESSION)return-1;const s=this._localStorageService.get(L.ZR);if(Boolean(s)||(yield this._freemiumService.fetchDailyBookId()))return-1;const c=yield this.getBuddyRecommendedCount();return c>=this.BUDDY_RECOMMENDED_COUNT_LIMIT?(this._localStorageService.set(L.ZR,1),-1):c})}getBuddyRecommendedCount(){return(0,f.mG)(this,void 0,void 0,function*(){return Number(yield this._accountFlagsService.get(te.y.BUD
1DY_RECOMMENDED_BOOK_COUNT,0))})}incrementBuddyRecommendedCount(){return(0,f.mG)(this,void 0,void 0,function*(){const e=yield this.getBuddyRecommendedCount();yield this._accountFlagsService.set(te.y.BUDDY_RECOMMENDED_BOOK_COUNT,e+1)})}getBuddyRecommendedSessionStorageCount(){const{KEYS:e}=this._sessionStorageService,i=Number(this._sessionStorageService.getSessionStorageWithKey(e.BUDDY_RECOMMENDED_COUNT));return isNaN(i)?(this._sessionStorageService.setSessionStorageWithKey(e.BUDDY_RECOMMENDED_COUNT,0),0):i}incrementBuddyRecommendedSessionStorageCount(){const e=this.getBuddyRecommendedSessionStorageCount(),{KEYS:i}=this._sessionStorageService;this._sessionStorageService.setSessionStorageWithKey(i.BUDDY_RECOMMENDED_COUNT,e+1)}}return o.\u0275fac=function(e){return new(e||o)(t.LFG(X.n),t.LFG(_e.h),t.LFG(Le.u),t.LFG(Te.T),t.LFG(w.B))},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();var yt=a(89243),Ot=a(93450),ae=a(18325),Re=a(31170),Et=a(57966);let Mt=(()=>{class o{constructor(e,i,n,r,s,c,d,g,p){this._mailboxService=e,this._experienceService=i,this._accountFlagsService=n,this._envService=r,this._readingBuddyService=s,this._freemiumService=c,this._localStorageService=d,this._sessionStorage=g,this._profileService=p,this.twelveDaysEventBackgroundMap={[q.FW.FREEMIUM]:`${this._envService.cdnBase}kudos/holiday12days_basic.png?v=2`,[q.FW.PREMIUM]:`${this._envService.cdnBase}kudos/holiday12days_unlimited.png?v=2`},this.WINTER_BEANIE_ID_PROD=81,this.WINTER_BEANIE_ID_DEV=57,this.agesZeroToFiveBooks=[77789,77650,77513,67508,66987,9180,73458,66996,46839,14067,13972,9875],this.agesSixToEightBooks=[77789,72655,67508,76391,76358,76240,75950,73843,69058,47334,78136,10778],this.agesNineToTwelveBooks=[77789,67508,77983,73882,72654,37720,13958,13929,10881,10778,59571,22526],this.twelveDaysEventStartDate=new Date(2021,11,18),this.twelveDaysEventEndDate=new Date(2021,11,30),this.messageTemplate={api:"sharedContent",avatarId:21,content:{},contentId:0,contentType:"kudos",dateCreated:null,dateExpired:null,dateModified:null,from:"Epic!",isAssignment:0,message:null,modelId:"180529034",new:1,popupType:2,properties:{backgroundImageUrl:null,backgroundIndex:8,buttonTitle:"Done",from:"Epic!",title:"A surprise message from"},shareeId:null,sharerId:0,source:"",status:0,unviewedImageUrl:`${this._envService.cdnBase}mailbox/icons/envelope_unopened.svg?v=3`,viewed:0,viewedImageUrl:`${this._envService.cdnBase}mailbox/icons/catninjathon.svg?v=3`},this.recommendAccessorySeenAndUnequipped=!1,this.initialized=!1,this.isIn12DaysTest=!1,this._envService.prodMode||(window.resetData=this.resetData.bind(this))}resetData(){this._accountFlagsService.set(te.y.HOLIDAY_12_DAYS_DATA,0),this._localStorageService.set(this._localStorageService.DEV_TOOLS_LOCAL_STORAGE_KEY.BUDDY_GET_APP_OVERRIDE,1),this._sessionStorage.removeSessionStorageKey(this._sessionStorage.KEYS.HAS_SEEN_BUDDY_APP_DOWNLOAD_MESSAGE)}get buddyHolidayItemId(){const{devMode:e}=this._envService;return e?this.WINTER_BEANIE_ID_DEV:this.WINTER_BEANIE_ID_PROD}equipHolidayBuddyItem(){var e;return(0,f.mG)(this,void 0,void 0,function*(){if(!this._readingBuddyService.currentReadingBuddy.isHatched()||this.holidayBuddyItemIsEquipped())return;const n=null===(e=this._readingBuddyService.currentReadingBuddy.equippedItem)||void 0===e?void 0:e.id;n&&this._localStorageService.set(L.AA,n),yield this._readingBuddyService.equipBuddyWithAccessory(this.buddyHolidayItemId),yield this._readingBuddyService.getCurrentReadingBuddy()})}unequipHolidayBuddyItem(){return(0,f.mG)(this,void 0,void 0,function*(){const e=this._localStorageService.get(L.AA);e?yield this._readingBuddyService.equipBuddyWithAccessory(e):yield this._readingBuddyService.unequipBuddyAccessory(),this.recommendAccessorySeenAndUnequipped=!0,this._localStorageService.remove(L.AA)})}restorePreHolidayBuddy(){return(0,f.mG)(this,void 0,void 0,function*(){this.recommendAccessorySeenAndUnequipped||(yield this.unequipHolidayBuddyItem()),yield this._readingBuddyService.getCurrentReadingBuddy()})}holidayBuddyItemIsEquipped(){var e;const{currentReadingBuddy:i}=this._readingBuddyService;return(null===(e=i.equippedItem)||void 0===e?void 0:e.id)===this.buddyHolidayItemId}userWillSeeTwelveDays(e=this._profileService.currentProfile.id){return(0,f.mG)(this,void 0,void 0,function*(){const i=yield this.shouldSeeTwelveDaysKudos(e),n=yield this.shouldSeeTwelveDaysRecommend(e);return i||n})}shouldSeeTwelveDaysKudos(e=this._profileService.currentProfile.id){var i;return(0,f.mG)(this,void 0,void 0,function*(){const n=this._profileService.childProfiles.find(s=>s.id===e);return!(!n||!(null===(i=n.readingBuddy)||void 0===i?void 0:i.hatched)||this._experienceService.isFFAFree()&&(yield this._freemiumService.fetchDailyBookId(),this._freemiumService.hasDailyBook))&&(yield this.isTwelveDaysEventActive())&&!this.hasUserSeenTwelveDayKudos(e)})}shouldSeeTwelveDaysRecommend(e=this._profileService.currentProfile.id){return(0,f.mG)(this,void 0,void 0,function*(){return!(!(yield this.isTwelveDaysEventActive())||!this.hasUserSeenTwelveDayKudos(e)||this.hasUserSeenRecommendToday(e))})}hasUserSeenTwelveDayKudos(e){return!(!this.twelveDaysUserBooksSeen||!this.twelveDaysUserBooksSeen[e])&&Boolean(this.twelveDaysUserBooksSeen[e])}hasUserSeenRecommendToday(e){if(!this.twelveDaysUserBooksSeen||!this.twelveDaysUserBooksSeen[e])return!1;const i=this.getEventDaysTotal(),n=this.getEventDaysRemaining();return Boolean(this.twelveDaysUserBooksSeen[e][i-n])}setUserSeenTwelveDaysKudos(e){this.twelveDaysUserBooksSeen||(this.twelveDaysUserBooksSeen={}),this.twelveDaysUserBooksSeen[e]=[];const i=JSON.stringify(this.twelveDaysUserBooksSeen);this._accountFlagsService.set(te.y.HOLIDAY_12_DAYS_DATA,i)}setUserSeenTwelveDaysBuddyRecommend(e,i){const{twelveDaysUserBooksSeen:n}=this;if(!n||!n[e])return;n[e][this.getEventDaysTotal()-this.getEventDaysRemaining()]=i;const g=JSON.stringify(n);this._accountFlagsService.set(te.y.HOLIDAY_12_DAYS_DATA,g)}isTwelveDaysEventActive(){return(0,f.mG)(this,void 0,void 0,function*(){const e=this._experienceService.isPremiumExperience();if(!this._experienceService.isFFAFree()&&!e)return!1;const n=this.isIn12DaysTest,r=new Date;return!(function xt(o,l){(0,Re.Z)(2,arguments);var e=(0,ae.Z)(o),i=(0,ae.Z)(l);return e.getTime()<i.getTime()}(r,this.twelveDaysEventStartDate)||function Pt(o,l){(0,Re.Z)(2,arguments);var e=(0,ae.Z)(o),i=(0,ae.Z)(l);return e.getTime()>i.getTime()}(r,this.twelveDaysEventEndDate)||!n)})}getTwelveDaysMessageForDay(e,i=!1){return(0,f.mG)(this,void 0,void 0,function*(){if(!(yield this.shouldSeeTwelveDaysKudos(e))&&!i)return;
1const r=this.getEventMessage(),s=this.twelveDaysEventBackgroundMap[this._experienceService.getCurrentExperience()],c=Object.assign(Object.assign({},this.messageTemplate),{dateCreated:(new Date).valueOf(),dateExpired:new Date((new Date).valueOf()+99999999),dateModified:(new Date).valueOf(),properties:Object.assign(Object.assign({},this.messageTemplate.properties),{backgroundImageUrl:s}),message:r,shareeId:e});return this._mailboxService.getMailboxMessageObject(c)})}getEventBookForUser(e,i){if(!this.twelveDaysUserBooksSeen||!this.twelveDaysUserBooksSeen[e])return;const n=this.getEventBooksForAge(i),r=this.twelveDaysUserBooksSeen[e];return n.filter(c=>!r.includes(c))[0]}getEventBooksForAge(e){return e>=9?this.agesNineToTwelveBooks:e>=6?this.agesSixToEightBooks:this.agesZeroToFiveBooks}getEventDaysRemaining(){return(0,W.j1)(this.twelveDaysEventEndDate,new Date,W.a_.DAYS,!0)}getEventDaysTotal(){return(0,W.j1)(this.twelveDaysEventEndDate,this.twelveDaysEventStartDate,W.a_.DAYS)}getEventMessage(){const e=this.getEventDaysRemaining();return e<2?"Read today to unlock a special badge.":`Read everyday for the next ${e} days to unlock a special badge.`}}return o.\u0275fac=function(e){return new(e||o)(t.LFG(Et.e),t.LFG(he.DT),t.LFG(Te.T),t.LFG(pe.DJ),t.LFG(Q.Kj),t.LFG(_e.h),t.LFG(X.n),t.LFG(Le.u),t.LFG(ve.ProfileService))},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();var Ft=a(72045),Dt=a(78693),Lt=a(32975),Tt=a(54886),Ie=a(16552),Rt=a(18898),le=a(39388),ke=a(50253),me=a(52220),It=a(38835),kt=a(76750),Bt=a(54924),fe=a(35079),At=a(43669);const Nt=["slickCarousel"],Zt=["componentContainer"];function Ut(o,l){if(1&o&&(t.TgZ(0,"div",8),t._UZ(1,"img",9),t.qZA()),2&o){const e=l.$implicit,i=l.index;t.uIk("r-id",e.recommendation_uuid4)("banner-key",e.title+"-"+e.modelId)("banner-index",i),t.xp6(1),t.Q6J("src",e.imageFullUrl,t.LSH)}}function Gt(o,l){if(1&o&&(t.TgZ(0,"ngx-slick-carousel",5,6),t.YNc(2,Ut,2,4,"div",7),t.qZA()),2&o){const e=t.oxw();t.Q6J("config",e.carouselConfig),t.xp6(2),t.Q6J("ngForOf",e.featuredBannersList)("ngForTrackBy",e.bannerTrackByFn)}}let Yt=(()=>{class o{constructor(e,i,n,r,s,c,d,g){this._bigQueryService=e,this._collectionService=i,this._featuredBannersService=n,this._impressionsLoggerService=r,this._routingService=s,this.document=c,this._serverCheckService=d,this._scriptService=g,this.featuredBannersList=[],this.carouselConfig={slidesToShow:1,centerMode:!0,arrows:!1,infinite:!0,variableWidth:!0,speed:400,centerPadding:0,autoplay:!0,autoplaySpeed:3e3},this.isShowingCarousel=!1,this.destroy$=new ke.x,this._subs=[],this._timeouts=[],this.dependencyScriptsLoaded=!1}ngOnInit(){return(0,f.mG)(this,void 0,void 0,function*(){if(this._serverCheckService.isBrowser())try{yield this._scriptService.load("jQuery"),yield this._scriptService.load("slick-carousel"),this.dependencyScriptsLoaded=!0}catch(e){console.error("Error loading jQuery:",e)}this._subs.push(this._featuredBannersService.featuredBanners$.subscribe(e=>{this._setBannersList(e)}))})}ngOnDestroy(){this._subs.forEach(e=>e.unsubscribe()),this._timeouts.forEach(e=>clearTimeout(e)),this.destroy$.next(),this.destroy$.complete()}bannerTrackByFn(e){return e.modelId}goToPrevSlide(){var e;null===(e=this.carouselComponent)||void 0===e||e.slickPrev()}goToNextSlide(){var e;null===(e=this.carouselComponent)||void 0===e||e.slickNext()}onCarouselClick(e){var i;const n=null===(i=e.target)||void 0===i?void 0:i.closest(".featured-carousel-slide"),r=null==n?void 0:n.getAttribute("banner-index");if(null==r)return;const s=this.featuredBannersList[parseInt(r,10)];s&&this.onBannerClick(s,e)}onBannerClick(e,i){var n;let r=this.sendClickLog(e,i);switch(e.type){case le.v.FEATURED_PANEL_TYPE_ORIGINALS:let s=null===(n=e.contentTitle)||void 0===n?void 0:n.modelId;s&&this._routingService.goToWebAppRoute({route:H.Pm.CONTENT_TITLE,pathParams:[s],extras:{state:{clickUuid4:r.clickUuid4,cameFromSource:Rt.NO.BANNER}}});break;case le.v.FEATURED_PANEL_TYPE_USER_GENERATED_CONTENT:this._collectionService.goToCollection({id:e.playlistId},r.clickUuid4);break;case le.v.FEATURED_PANEL_TYPE_PENGUIN_LANDING_PAGE:this._routingService.goToWebApp
1Route({route:H.Pm.PENGUIN_LANDING_PAGE})}}sendClickLog(e,i){return this._bigQueryService.log(Oe.YD,{model_id:e.modelId,title:e.title,panel_type:e.type}),this._impressionsLoggerService.genClickIdAndAddClickLogToSendQueue(i,e.recommendation_uuid4)}_setBannersList(e){this.isShowingCarousel=!1,this.featuredBannersList=e,setTimeout(()=>{this.isShowingCarousel=!0}),this._timeouts.push(setTimeout(()=>{const i=this.document.getElementsByClassName("slick-slide");i&&Array.from(i).forEach((n,r)=>{n.setAttribute("impressions-parent-element-id",`browse-banner-${r}`),this._impressionsLoggerService.createObserverReference(this,n)})},500))}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(P.p),t.Y36(It.a),t.Y36(le.U),t.Y36(me.Z),t.Y36(ee.Zn),t.Y36(h.K0),t.Y36(kt.T),t.Y36(Bt.Y))},o.\u0275cmp=t.Xpm({type:o,selectors:[["epic-featured-carousel"]],viewQuery:function(e,i){if(1&e&&(t.Gf(Nt,5),t.Gf(Zt,5)),2&e){let n;t.iGM(n=t.CRH())&&(i.carouselComponent=n.first),t.iGM(n=t.CRH())&&(i.containerElement=n.first)}},decls:7,vars:1,consts:[[1,"featured-carousel-container",3,"click"],["componentContainer",""],["class","featured-slick-carousel",3,"config",4,"ngIf"],[1,"epic-row-button","epic-row-button--left",3,"click"],[1,"epic-row-button","epic-row-button--right",3,"click"],[1,"featured-slick-carousel",3,"config"],["slickCarousel",""],["ngxSlickItem","","class","featured-carousel-slide impressions-item",4,"ngFor","ngForOf","ngForTrackBy"],["ngxSlickItem","",1,"featured-carousel-slide","impressions-item"],[3,"src"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0,1),t.NdJ("click",function(r){return i.onCarouselClick(r)}),t.YNc(2,Gt,3,3,"ngx-slick-carousel",2),t.TgZ(3,"div",3),t.NdJ("click",function(){return i.goToPrevSlide()}),t._UZ(4,"epic-row-button"),t.qZA(),t.TgZ(5,"div",4),t.NdJ("click",function(){return i.goToNextSlide()}),t._UZ(6,"epic-row-button"),t.qZA()()),2&e&&(t.xp6(2),t.Q6J("ngIf",i.dependencyScriptsLoaded&&i.isShowingCarousel))},directives:[h.O5,fe.vE,h.sg,fe.Xg,At.U],styles:[".featured-carousel-container[_ngcontent-%COMP%]{position:relative;min-height:266px;overflow:hidden}.featured-carousel-container[_ngcontent-%COMP%]   .epic-row-button[_ngcontent-%COMP%]{z-index:19}.featured-carousel-container[_ngcontent-%COMP%]:hover   .epic-row-button.epic-row-button--left[_ngcontent-%COMP%], .featured-carousel-container[_ngcontent-%COMP%]:hover   .epic-row-button.epic-row-button--right[_ngcontent-%COMP%]{transform:translate(0)}.featured-carousel-slide[_ngcontent-%COMP%]{height:266px;width:738px!important;padding:8px 12px}.featured-carousel-slide[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;border-radius:16px;box-shadow:0 1px 3px #2b476826;cursor:pointer}  ngx-slick-carousel.featured-slick-carousel{z-index:18}"],data:{animation:[Ie.z,Ie.Rk]}}),o})();var ce=a(31543);let Jt=(()=>{class o{constructor(e,i){this.dialogRef=e,this.data=i}closeDialog(e){this.dialogRef.close(),e&&e.target&&(void 0!==this.blurTimeoutId&&clearTimeout(this.blurTimeoutId),this.blurTimeoutId=window.setTimeout(()=>{var i;null===(i=e.target)||void 0===i||i.blur(),this.blurTimeoutId=void 0},0))}onLetsGoClick(){this.dialogRef.close()}ngOnDestroy(){void 0!==this.blurTimeoutId&&(clearTimeout(this.blurTimeoutId),this.blurTimeoutId=void 0)}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(b.so),t.Y36(b.WI))},o.\u0275cmp=t.Xpm({type:o,selectors:[["epic-reading-goal-dialog"]],decls:75,vars:0,consts:[["role","dialog","aria-labelledby","dialog-title","aria-describedby","dialog-description","aria-modal","true",1,"reading-goal-dialog"],["aria-label","Close Reading Challenge details dialog","type","button",1,"dialog-close",3,"click","keydown.enter","keydown.space"],["width","40","height","40","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg","aria-hidden","true"],["d","M15 5L5 15M5 5L15 15","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"dialog-content"],[1,"title-section"],[1,"badge-container"],[1,"upgradeable-badge"],["xmlns","http://www.w3.org/2000/svg","width","167","height","163","viewBox","0 0 167 163","fill","none","aria-hidden","true"],["d","M98.2053 139.479C98.1953 139.587 98.2153 139.728 98.1703 139.796C97.8976 140.224 97.42 140.231 97.0648 139.779C96.9998 139.695 97.0323 139.287 97.1073 139.223C97.5425 138.869 98.0252 139.007 98.2053 139.479Z","fill","#94D0D2"],["d","M91.3301 140.282C91.305 140.383 91.3001 140.538 91.2525 140.568C91.1925 140.605 91.0675 140.582 91.0199 140.518C90.8449 140.275 90.8924 140.1 91.135 140.083C91.1975 140.079 91.265 140.211 91.3301 140.282Z","fill","#94D0D2"],["d","M46.2543 16.8745C46.4363 16.9059 46.6339 16.885 46.8003 16.9722C48.9452 18.1102 51.15 17.6703 53.3391 17.4051C54.4363 17.2724 55.5335 17.07 56.6177 16.8152C57.4262 16.6232 58.214 16.0996 59.0148 16.0821C59.8156 16.0647 60.6138 16.6057 61.4276 16.7035C62.2465 16.8012 63.0837 16.7 63.9079 16.6057C65.3743 16.4347 66.8354 16.2043 68.2992 15.9844C68.3772 15.9739 68.4448 15.8518 68.5176 15.7785C68.3408 14.9966 68.385 14.7313 68.6866 14.6964C69.8748 14.5603 71.063 14.3962 72.2537 14.281C72.3863 14.267 72.6125 14.48 72.6489 14.644C72.6801 14.7906 72.5319 15.0664 72.4123 15.1886C72.2173 15.3875 71.9781 15.5062 71.7233 15.6842C72.2641 16.2462 72.8231 16.0123 73.3431 16.0472
1C75.2723 16.1729 77.2118 16.0472 79.1176 16.6406C80.0224 16.9199 80.9557 16.8082 81.8657 16.5778C82.7965 16.3439 83.6987 16.3684 84.5749 16.885C85.4354 17.3946 86.348 17.5098 87.2736 17.5656C88.0094 17.611 88.7452 17.6843 89.4757 17.796C90.0347 17.8833 90.5781 17.8798 91.1059 17.604C91.6493 17.3213 92.1953 17.3597 92.7231 17.6389C93.7708 18.1904 94.8628 18.351 95.9782 18.337C97.2782 18.3196 98.5521 18.5569 99.8053 19.0037C101.058 19.4505 102.325 19.7368 103.625 19.7368C105.018 19.7402 106.36 20.1277 107.694 20.6722C109.633 21.4681 111.599 22.1383 113.655 22.0999C114.401 22.0859 115.122 22.3093 115.805 22.7002C116.752 23.2413 117.737 23.5031 118.764 23.4891C120.069 23.4751 121.32 23.8486 122.56 24.3652C123.704 24.8434 124.864 25.2379 126.018 25.6672C129.395 26.9168 132.609 28.7668 135.846 30.5365C136.784 31.0497 137.692 31.671 138.734 31.7129L138.716 31.7373C139.304 31.2207 139.943 31.116 140.552 31.5628C141.683 32.39 142.782 33.2941 143.893 34.1737C143.971 34.2365 144.036 34.3308 144.098 34.4215C144.626 35.1895 144.691 36.5228 145.809 36.5752C146.695 36.6171 147.085 37.9365 147.834 38.4077C148.162 38.6102 148.541 38.8336 148.882 38.7917C150.101 38.6451 151.035 39.3991 151.867 40.4113C153.505 42.4044 155.122 44.4359 156.713 46.4954C159.253 49.7835 161.247 53.6405 163.088 57.6512C163.376 58.283 163.681 58.9043 163.969 59.5396C166.567 65.2606 167.552 71.404 166.702 78.0465C166.405 80.3608 166.216 82.7064 165.854 84.9997C165.607 86.5635 165.222 88.1063 164.765 89.5828C163.449 93.8343 161.658 97.7228 159.633 101.426C158.483 103.528 157.204 105.458 155.837 107.311C153.629 110.306 151.305 113.116 148.926 115.853C148.507 116.334 148.052 116.764 147.616 117.218C144.046 120.952 140.182 124.087 136.327 127.249C135.453 127.965 134.522 128.492 133.493 128.632C133.124 128.681 132.7 128.681 132.492 129.124C131.925 130.328 131.036 130.457 130.11 130.681C128.753 131.009 127.404 131.445 126.08 131.962C124.981 132.391 123.912 132.562 122.833 131.993C121.068 131.065 119.398 131.504 117.696 132.573C117.516 133.086 117.342 133.655 117.124 134.189C116.882 134.779 116.286 134.719 116.032 134.094C115.987 133.99 115.969 133.861 115.954 133.742C115.873 133.169 115.592 132.911 115.184 132.883C113.853 132.785 112.61 133.089 111.58 134.339L111.601 134.304C111.157 134.405 110.673 134.391 110.585 135.239C110.548 135.588 110.434 135.948 110.296 136.252C110.034 136.817 109.474 136.848 109.139 136.346C109.079 136.255 109.043 136.136 108.999 136.025C108.799 135.515 108.468 135.288 108.094 135.543C107.408 136.004 106.724 136.182 105.957 135.997C105.008 135.77 104.113 136.046 103.349 136.866C102.434 137.847 101.329 138.014 100.237 138.252C99.8573 138.332 99.5141 138.245 99.1787 137.979C97.8424 136.922 96.3578 136.978 94.8862 137.023C94.1505 137.047 93.4173 137.184 92.6815 137.229C92.4085 137.246 92.1433 137.117 91.9873 136.761C91.8625 136.478 92.3175 135.962 92.7517 135.889C92.8427 135.875 92.9337 135.847 93.0247 135.829C93.1157 135.815 93.2092 135.791 93.3002 135.798C95.999 136 98.6068 135.093 101.253 134.653C103.726 134.244 106.165 133.665 108.609 133.037C110.148 132.639 111.669 132.244 113.177 131.644C115.031 130.904 116.944 130.44 118.834 129.86C119.284 129.721 119.768 129.696 120.181 129.459C122.979 127.843 125.95 126.845 128.701 125.075C129.45 124.593 130.23 124.206 130.989 123.759C131.665 123.3
161 132.357 123.001 133.001 122.527C136.727 119.794 140.435 117.019 143.773 113.455C144.42 112.764 145.021 111.992 145.645 111.259C146.544 110.198 147.431 109.116 148.346 108.083C149.264 107.05 150.216 106.065 151.152 105.056C151.367 104.823 151.594 104.603 151.781 104.33C155.046 99.5902 158.145 94.6965 160.142 88.7206C161.096 85.8654 161.718 82.9089 161.936 79.7988C162.006 78.8144 162.071 77.8231 162.191 76.8492C162.506 74.2662 162.664 71.6867 162.35 69.0863C162.305 68.7197 162.246 68.3358 162.29 67.9797C162.534 66.0111 161.98 64.3112 161.297 62.6811C158.694 56.4819 155.595 50.8655 151.263 46.5617C148.138 43.4586 144.904 40.6103 141.482 38.1739C139.288 36.6101 136.984 35.3011 134.678 34.0445C130.222 31.6186 125.605 29.8873 120.904 28.5504C120.363 28.3968 119.825 28.2188 119.287 28.0373C114.63 26.4735 109.906 25.3775 105.172 24.3303C101.256 23.4612 97.3094 22.9481 93.3757 22.2849C92.1875 22.0824 90.9629 22.236 89.7903 21.9568C86.6912 21.2202 83.5245 21.5169 80.428 20.7734C79.8872 20.6443 79.323 20.6583 78.7718 20.6583C73.1429 20.6618 67.514 20.6792 61.8851 20.6932C61.516 20.6932 61.1416 20.6687 60.7802 20.749C57.954 21.3843 55.0681 21.1644 52.2498 21.866C51.7974 21.9777 51.3346 22.037 50.8744 22.0545C47.4399 22.1871 44.1068 23.1889 40.7684 24.1314C39.5958 24.463 38.4415 24.9133 37.2715 25.2798C33.928 26.3304 30.7638 28.0303 27.6933 30.0618C26.2035 31.0462 24.7008 32.0061 23.2578 33.1091C20.7645 35.0149 18.4349 37.2768 16.355 39.9157C14.6104 42.1287 13.1466 44.7361 12.2003 47.7345C10.3621 53.5533 8.69813 59.4593 7.45536 65.5678C6.84437 68.5697 6.392 71.5925 6.3946 74.7165C6.3946 75.3344 6.39457 75.9627 6.33217 76.5735C6.00198 79.8093 6.33478 82.9926 6.73257 86.1725C6.80797 86.7834 6.93536 87.3907 6.95096 88.0051C7.01595 90.4938 7.87395 92.5114 9.01012 94.3544C10.5441 96.8397 11.7453 99.6286 13.0556 102.316C13.2064 102.627 13.4066 102.931 13.4716 103.276C13.9084 105.625 15.237 106.934 16.5526 108.338C17.5535 109.406 18.7807 110.139 19.4983 111.661C19.5373 111.744 19.5321 111.915 19.4957 112.01C19.4593 112.1 19.3501 112.219 19.2877 112.205C18.4453 112.041 17.7459 111.43 17.0413 110.844C16.8074 110.648 16.6019 110.393 16.3836 110.163C14.2906 107.94 12.1405 105.835 10.5155 102.889C9.76152 101.524 8.65133 100.512 7.70755 99.3319C7.37216 98.9131 6.99517 98.5221 6.73517 98.0265C4.63442 94.0507 2.91846 89.8551 2.48427 84.8915C2.18268 81.4498 2.02669 78.0011 2.00069 74.5385C1.98769 73.0271 2.15408 71.5785 2.93666 70.3673C3.52425 69.4632 3.58924 68.3497 3.51904 67.2118C3.49565 66.8418 3.45665 66.4718 3.39165 66.1123C3.03026 64.0529 3.40204 62.1365 4.16643 60.3983C5.4456 57.4871 6.30359 54.3666 6.93797 51.1273C7.79336 46.7606 9.32993 42.8338 11.1083 39.057C11.5971 38.0203 12.208 37.0709 12.8346 36.1668C13.7134 34.8962 14.6572 33.7095 15.575 32.4878C16.1106 31.7757 16.732 31.2661 17.4677 31.0147L17.4495 30.9903H18.0527L18.0345 31.0147C20.3563 30.0618 22.4128 28.4492 24.329 26.477C24.6982 26.0965 24.6332 25.6393 24.1132 25.0424L24.1314 25.0668C24.8204 24.2535 25.6264 23.7823 26.5337 23.6287C27.2435 23.51 27.9507 23.3739 28.5617 22.8154L28.5409 22.8433C28.8243 22.6025 29.1493 22.4175 29.3781 22.1034C29.7681 21.5693 30.2413 21.4122 30.756 21.3459L30.7404 21.325C31.1252 21.7368 31.51 21.7299 31.8974 21.325L31.8662 21.3564C34.9394 20.7944 37.9527 19.817 40.9894 19.0003C41.8838 18.7594 42.7574 18.5569 43.6908 18.6372C44.4915 18.707 45.3105 18.4243 46.12
117 18.2707C46.5871 18.1835 46.6261 17.8449 46.2881 16.8605L46.2543 16.8745ZM21.9058 30.2608L21.8824 30.2294L21.9058 30.2608ZM145.364 117.197L145.385 117.225C145.198 117.476 145.01 117.727 144.826 117.978C144.103 118.136 143.547 118.621 143.165 119.465C142.452 119.643 141.888 120.115 141.503 120.952C140.773 121.089 140.227 121.591 139.852 122.439C139.483 122.687 139.114 122.935 138.745 123.183C138.375 123.431 138.006 123.679 137.637 123.926C137.268 124.171 136.896 124.419 136.524 124.663L136.503 124.635C136.875 124.391 137.247 124.143 137.616 123.898C137.985 123.651 138.355 123.403 138.724 123.155L139.834 122.415C140.531 122.209 141.095 121.745 141.482 120.925C142.187 120.733 142.751 120.261 143.141 119.434C143.856 119.27 144.407 118.767 144.805 117.954C144.99 117.699 145.177 117.448 145.364 117.197ZM20.2445 31.7478C20.1691 31.8176 20.0963 31.8874 20.0209 31.9572L20.2211 31.7163L20.2445 31.7478Z","fill","#94D0D2"],["d","M73.9099 19.4235C73.8167 19.5198 73.6872 19.5808 73.6322 19.7151C72.9299 21.4557 71.378 21.9741 69.9254 22.6241C69.1975 22.9502 68.4337 23.2211 67.6506 23.4455C67.0656 23.6114 66.3221 23.5073 65.8318 23.8079C65.3415 24.1085 65.1408 24.8491 64.7021 25.2458C64.2603 25.6445 63.7049 25.8933 63.1609 26.1425C62.1914 26.5832 61.1943 26.9749 60.2011 27.376C60.1489 27.3984 60.0452 27.3284 59.9637 27.2992C59.6666 26.6124 59.5032 26.4203 59.304 26.5111C58.5196 26.8701 57.7209 27.2071 56.9458 27.5837C56.8589 27.6247 56.8327 27.8816 56.8955 28.0255C56.9523 28.1535 57.1837 28.313 57.3186 28.3625C57.5384 28.4431 57.7434 28.4429 57.9883 28.4834C57.9532 29.1394 57.4965 29.1743 57.202 29.406C56.1074 30.2626 54.8768 30.9249 54.0375 32.1417C53.6377 32.7174 53.0191 32.9957 52.3534 33.1711C51.6733 33.3518 51.1437 33.7254 50.8835 34.4773C50.6291 35.2175 50.1401 35.6668 49.6126 36.0743C49.1937 36.399 48.7893 36.7458 48.4078 37.1208C48.1169 37.4092 47.7885 37.6198 47.329 37.6093C46.8566 37.5994 46.5483 37.844 46.3751 38.2718C46.0298 39.1186 45.4563 39.6741 44.7787 40.101C43.9884 40.5976 43.3451 41.2852 42.8224 42.13C42.2997 42.9748 41.6863 43.698 40.905 44.2084C40.0692 44.7583 39.4627 45.5909 38.9419 46.5446C38.1867 47.9345 37.351 49.2354 36.0952 50.0125C35.6395 50.2944 35.3219 50.7536 35.1125 51.3307C34.8228 52.1295 34.3656 52.7231 33.7412 53.1153C32.9495 53.6167 32.3905 54.4026 31.9116 55.2974C31.4707 56.1242 30.9772 56.8909 30.5048 57.6831C29.1195 59.9958 28.1423 62.7183 27.1097 65.3865C26.8102 66.1602 26.5853 67.007 25.9803 67.4494L26.0038 67.4616C25.3842 67.2844 24.9458 67.4528 24.8106 68.0444C24.5575 69.1417 24.3629 70.2873 24.1493 71.4177C24.1348 71.498 24.1444 71.5979 24.1537 71.6941C24.2326 72.5076 24.8813 73.586 24.2363 74.0663C23.7251 74.4474 24.1713 75.6424 23.9643 76.3084C23.8718 76.5969 23.7589 76.9223 23.5326 77.023C22.7241 77.386 22.552 78.3478 22.5741 79.4737C22.6176 81.6905 22.6935 83.9295 22.7994 86.1804C22.9687 89.774 23.7597 93.6024 24.722 97.4919C24.8744 98.1041 25.0121 98.7141 25.1663 99.329C26.5561 104.866 29.1326 110.104 33.0698 115.015C34.4417 116.726 35.7656 118.503 37.1657 120.172C38.1208 121.31 39.1478 122.377 40.1844 123.363C43.168 126.204 46.2504 128.571 49.378 130.7C51.1525 131.908 52.917 132.93 54.6949 133.856C57.5664 135.354 60.4127 136.66 63.2541 137.887C63.7541 138.103 64.2491 138.264 64.7456 138.45C68.8176 139.998 72.7565 140.956 76.7051 141.939C77.5992 142.161 78.4305 142.212 79.1213 141.918C79.3684 141.812 79.6231 141.645 79.9768 141.914C80.9386 142.642 81.5396 142.395 82.2112 142.208C83.1961 141.934 84.2322 141.749 85.294 141.637C86.1765 141.544 86.9069 141.26 87.262 140.387C87.8441 138.961 89.0742 138.653 90.6486 138.827C91.0211 139.162 91.4193 139.543 91.826 139.879C92.2756 140.25 92.6028 139.969 92.4337 139.376C92.4063 139.276 92.3506 139.166 92.2987 139.067C92.0519 138.583 92.0874 138.269 92.3184 138.086C93.068 137.487 93.9716 137.238 95.235 137.821L95.2045 137.802C95.5239 137.707 95.8073 137.506 96.298 138.141C96.4999 138.402 96.7541 138.641 96.9935 138.827C97.443 139.17 97.7952 138.976 97.7375 138.447C97.7267 138.352 97.6874 138.244 97.6563 138.139C97.5138 137.658 97.5952 137.349 97.9516 137.403C98.6018 137.497 99.1046 137.369 99.4702 136.922C99.9235 136.37 100.603 136.237 101.486 136.585C102.542 137 103.292 136.698 104.071 136.457C104.341 136.371 104.502 136.168 104.567 135.826C104.824 134.467 105.745 133.928 106.653 133.386C107.108 133.116 107.619 132.936 108.085 132.683C108.258 132.589 108.35 132.383 108.261 132.041C108.19 131.769 107.65 131.539 107.351 131.652C107.289 131.677 107.22 131.69 107.156 131.712C107.094 131.737 107.026 131.755 106.975 131.796C105.457 133.015 103.421 133.323 101.604 134.014C99.9071 134.663 98.1425 135.163 96.3495 135.626C95.2192 135.916 94.1016 136.202 92.8856 136.32C91.3897 136.464 90.0002 136.848 88.5652 137.133C88.2229 137.199 87.9197 137.37 87.5488 137.345C85.0338 137.167 82.7327 137.545 80.1666 137.228C79.4681 137.142 78.7995 137.142 78.1127 137.087C77.5012 137.039 76.9001 137.026 76.2677 136.905C72.6187 136.209 68.959 135.474 65.1144 133.971C64.3688 133.679 63.6099 133.306 62.8568 132.972C61.7688 132.487 60.6778 131.981 59.5948 131.524C58.5103 131.069 57.4306 130.665 56.3477 130.236C56.0974 130.136 55.848 130.052 55.5951 129.91C51.1874 127.449 46.8005 124.802 42.5181 120.868C40.4719 118.988 38.5734 116.897 36.838 114.527C36.2881 113.778 35.7377 113.02 35.1635 112.298C33.6421 110.382 32.2162 108.408 31.064 106.231C30.9015 105.924 30.7394 105.598 30.5292 105.334C29.3669 103.875 28.8229 102.316 28.3931 100.76C26.7597 94.8435 25.7255 89.1921 26.1089 84.0932C26.3867 80.416 26.8614 76.8971 27.6612 73.63C28.1735 71.5337 28.8828 69.5957 29.6207 67.6981C31.0478 64.0329 32.93 60.853 35.0657 57.9518C35.3115 57.6182 35.5432 57.2663 35.773 56.9117C37.7651 53.8487 40.0391 51.1285 42.3446 48.4428C44.2496 46.2192 46.357 44.2645 48.3792 42.1964C48.9889 41.57 49.8042 41.2105 50.3649 40.5296C51.8477 38.7313 53.904 37.7222 55.3816 35.9194C55.64 35.6051 55.9863 35.3946 56.3176 35.1782C59.7025 32.971 63.0947 30.7747 66.485 28.5757C66.7069 28.4308 66.9193 28.2645 67.1779 28.186C69.2042 27.578 70.8253 26.2713 72.8811 25.7187C73.2106 25.6293 73.5194 25.4945 73.8049 25.3276C75.9376 24.0838 78.4576 23.5662 80.9502 22.9996C81.826 22.8011 82.7521 22.7034 83.6443 22.5334C86.1958 22.0503 88.9743 22.1502 91.8677 22.5487C93.2708 22.741 94.6691 22.9089 96.1053 23.2133C98.5869 23.7392 101.154 24.6105 103.765 25.8775C105.955 26.94 108.18 28.4241 110.295 30.42C114.401 34.2928 118.448 38.3028 122.345 42.6381C124.261 44.7685 126.092 46.9777 127.702 49.4454C128.02 49.9332 128.345 50.4293 128.697 50.8872C130.565 53.3124 132.007 55.9567 133.408 58.6237C133.677 59.1356 133.914 59.6652 134.222 60.1564C135.466 62.147 135.991 64.0769 136.259 65.9783C136.619 68.5429 137.335 71.2166 137.934 73.8533C138.004 74.1578 138.04 74.4762 138.179 74.7746C139.129 76.801 139.005 78.3561 138.938 79.9806C138.888 81.217 138.528 82.2776 138.882 83.761C138.902 83.8424 138.993 83.9754 139.063 84.0356C139.132 84.0929 139.259 84.1438 139.289 84.1083C139.711 83.648 139.816 82.8911 139.937 82.1514C139.977 81.9052 139.969 81.6233 139.981 81.3557C140.092 78.7783 140.299 76.2722 
1139.756 73.308C139.505 71.9343 139.651 70.6992 139.609 69.3971C139.595 68.9347 139.62 68.4779 139.52 67.9845C138.732 64.0205 137.599 60.0339 135.3 55.9442C133.706 53.1083 132.021 50.324 130.251 47.5797C129.479 46.3812 128.632 45.3027 127.537 44.6536C126.717 44.1705 126.104 43.3168 125.559 42.3907C125.382 42.0894 125.215 41.782 125.069 41.4725C124.223 39.7045 123.012 38.3374 121.656 37.265C119.385 35.4686 117.26 33.3415 115.208 31.0329C112.441 27.9208 109.492 25.4235 106.475 23.1396C105.647 22.5129 104.79 22.0031 103.947 21.5353C102.764 20.8771 101.584 20.3106 100.402 19.7063C99.7133 19.3543 99.0769 19.1959 98.5051 19.2863L98.5034 19.2599L98.1409 19.4967L98.1644 19.5089C96.2775 19.668 94.2096 19.2021 92.0407 18.3972C91.6225 18.2418 91.4258 17.8552 91.4304 17.1798L91.4321 17.2062C90.5985 16.8345 89.871 16.7789 89.2464 17.0139C88.7586 17.1989 88.2634 17.369 87.6081 17.1679L87.635 17.1818C87.3404 17.1029 87.0496 17.0844 86.7501 16.9262C86.2402 16.6576 85.8748 16.7194 85.5312 16.8692L85.5298 16.8465C85.511 17.3228 85.2761 17.4684 84.8344 17.3008L84.8693 17.3133C82.7324 18.0761 80.4172 18.4875 78.1707 19.0349C77.509 19.1959 76.8795 19.379 76.3599 19.8089C75.9146 20.1784 75.2766 20.2767 74.7098 20.4739C74.3851 20.5877 74.187 20.3357 73.8824 19.4258L73.9099 19.4235ZM95.4487 20.4335L95.4466 20.3995L95.4487 20.4335ZM66.0881 137.55L66.09 137.58C66.3321 137.705 66.5743 137.83 66.8148 137.956C67.3303 137.796 67.9149 137.961 68.5804 138.478C69.1003 138.339 69.6825 138.489 70.3459 139C70.8552 138.82 71.4426 139.003 72.1051 139.525C72.4548 139.576 72.8046 139.627 73.1543 139.678C73.504 139.728 73.8538 139.779 74.2035 139.83C74.5514 139.878 74.9027 139.928 75.2522 139.974L75.2503 139.944C74.9008 139.897 74.5495 139.848 74.2016 139.8C73.8519 139.749 73.5021 139.698 73.1524 139.647L72.1035 139.499C71.5784 139.61 70.9999 139.465 70.344 138.969C69.8215 139.094 69.2393 138.944 68.5782 138.444C68.0639 138.595 67.4733 138.414 66.8147 137.928C66.5724 137.8 66.3302 137.675 66.0881 137.55ZM97.2143 20.9553C97.2956 20.9808 97.3753 21.0074 97.4567 21.0329L97.2121 20.9213L97.2143 20.9553Z","fill","#3F1E56"],["d","M78.4448 137.847C75.8762 138.272 73.9504 138.238 71.812 137.854C71.1968 137.742 70.564 137.517 69.9788 137.847C69.1584 138.312 68.4731 138.093 67.7178 137.544C65.597 135.996 63.266 135.291 60.9251 134.627C58.9242 134.06 57.0084 133.184 55.4328 131.312C55.3903 131.262 55.3903 131.08 55.4253 130.999C55.4603 130.918 55.5729 130.823 55.6329 130.844C55.888 130.925 56.1506 131.005 56.3857 131.157C58.3815 132.472 60.5174 133.265 62.6158 134.205C63.3686 134.543 64.1489 134.806 64.9342 134.961C66.7725 135.321 68.5907 135.733 70.394 136.37C71.4869 136.755 72.6724 136.724 73.8204 136.751C75.411 136.782 76.9491 137.176 78.4448 137.847Z","fill","#94D0D2"],["d","M87.551 137.867C87.2684 138.265 86.8907 138.187 86.5481 138.184C85.5777 138.174 84.6073 138.123 83.6369 138.069C83.5869 138.066 83.4943 137.884 83.5093 137.816C83.5268 137.722 83.6194 137.594 83.6919 137.58C84.9249 137.328 86.1629 137.307 87.3959 137.591C87.4559 137.604 87.4985 137.773 87.551 137.867Z","fill","#94D0D2"],["d","M29.3296 116.816C29.2796 116.897 29.232 117.046 29.1795 117.049C28.6368 117.083 28.2166 116.695 27.8115 116.274C27.7539 116.216 27.7039 116.071 27.7139 115.98C27.7489 115.714 27.899 115.619 28.0966 115.744C28.4768 115.987 28.8519 116.247 29.2196 116.52C29.2821 116.564 29.2971 116.715 29.3296 116.816Z","fill","#94D0D2"],["d","M82.2313 20.269C82.1863 20.2016 82.1363 20.124 82.0837 20.0431C82.1488 19.979 82.2113 19.8745 82.2813 19.8644C82.5289 19.8239 82.614 19.9655 82.4939 20.2117C82.4614 20.2724 82.3338 20.2488 82.2313 20.269Z","fill","#94D0D2"],["d","M112.686 134.613C112.841 134.63 113.001 134.637 113.154 134.667C113.229 134.681 113.352 134.721 113.362 134.779C113.407 135.015 113.294 135.082 113.091 134.934C112.954 134.833 112.834 134.698 112.704 134.576L112.686 134.613Z","fill","#94D0D2"],["d","M49.8706 21.1155C49.7881 21.0919 49.708 21.0649 49.6255 21.0413C49.7005 21.0784 49.7756 21.1121 49.8506 21.1492C49.8481 21.1458 49.8706 21.1155 49.8706 21.1155Z","fill","#94D0D2"],["d","M36.0173 24.7368C36.0773 24.666 36.1398 24.5986 36.1999 24.5278C36.1298 24.5851 3
16.0598 24.6458 35.9897 24.7031L36.0173 24.7368Z","fill","#94D0D2"],["d","M35.9898 24.703C35.9923 24.9559 35.9948 25.2054 35.9973 25.4583L36.0273 25.4279C35.6572 25.4279 35.287 25.4279 34.9169 25.4279C34.9169 25.4279 34.9344 25.4481 34.9319 25.4481C35.2945 25.2087 35.6546 24.9727 36.0173 24.7333L35.9898 24.703Z","fill","#94D0D2"],["d","M22.6944 108.006C22.6093 107.979 22.4667 107.979 22.4492 107.918C22.3967 107.726 22.4943 107.753 22.6743 108.029L22.6944 108.006Z","fill","#94D0D2"],["d","M25.8906 110.878C25.8106 110.851 25.7305 110.824 25.6505 110.798C25.723 110.831 25.7981 110.868 25.8706 110.902L25.8906 110.878Z","fill","#94D0D2"],["d","M25.3612 31.9132L25.3455 31.8887L25.3612 31.9132Z","fill","#94D0D2"],["d","M147.323 30.4759L147.338 30.4487L147.323 30.4759Z","fill","#94D0D2"],["d","M147.341 30.4487C147.151 30.4487 146.963 30.4487 146.773 30.4487L146.793 30.479C146.97 30.479 147.148 30.479 147.323 30.4757L147.341 30.4487Z","fill","#94D0D2"],["d","M20.5644 107.291L20.546 107.315L20.5644 107.291Z","fill","#94D0D2"],["d","M28.5417 29.0192L28.5601 29.0438L28.5417 29.0192Z","fill","#94D0D2"],["d","M20.546 107.315L20.5644 107.291L20.546 107.315Z","fill","#94D0D2"],["d","M32.8214 26.868L32.801 26.8952L32.8214 26.868Z","fill","#94D0D2"],["d","M16.3023 107.291L16.2866 107.312L16.3023 107.291Z","fill","#94D0D2"],["d","M23.217 108.755L23.2327 108.734L23.217 108.755Z","fill","#94D0D2"],["d","M131.332 97.2632L131.354 97.2326L131.332 97.2632Z","fill","#94D0D2"],["d","M25.8732 110.906L25.8915 110.882L25.8732 110.906Z","fill","#94D0D2"],["d","M16.2866 107.312L16.3023 107.291L16.2866 107.312Z","fill","#94D0D2"],["d","M23.232 108.734C23.0519 108.491 22.8719 108.249 22.6943 108.006L22.6768 108.029L23.217 108.754L23.232 108.734Z","fill","#94D0D2"],["d","M46.6492 82.9061L46.6675 82.8816L46.6492 82.9061Z","fill","#94D0D2"],["d","M46.6675 82.8783L46.6492 82.9028L46.6675 82.8783Z","fill","#94D0D2"],["d","M22.1491 34.7885C22.3317 34.7885 22.5117 34.7885 22.6943 34.7885L22.7118 34.7683H22.1316L22.1491 34.7885Z","fill","#94D0D2"],["d","M25.3455 31.8919L25.3638 31.9164L25.3455 31.8919Z","fill","#94D0D2"],[1,"badge-image"],[1,"header"],[1,"sparkles-left"],["xmlns","http://www.w3.org/2000/svg","width","43","height","56","viewBox","0 0 43 56","fill","none","aria-hidden","true"],["d","M29.6996 24.6805C29.6996 15.4194 26.6126 12.3402 17.3594 12.3402C26.6204 12.3402 29.6996 9.25321 29.6996 0C29.6996 9.26106 32.7866 12.3402 42.0398 12.3402C32.7788 12.3402 29.6996 15.4272 29.6996 24.6805Z","fill","#E8559A"],["d","M12.7644 16.1186C14.2828 16.1186 15.5136 14.8877 15.5136 13.3693C15.5136 11.851 14.2828 10.6201 12.7644 10.6201C11.246 10.6201 10.0151 11.851 10.0151 13.3693C10.0151 14.8877 11.246 16.1186 12.7644 16.1186Z","fill","#0A8CF0"],["d","M36.3679 28.6003C37.8863 28.6003 39.1172 27.3695 39.1172 25.8511C39.1172 24.3327 37.8863 23.1018 36.3679 23.1018C34.8495 23.1018 33.6187 24.3327 33.6187 25.8511C33.6187 27.3695 34.8495 28.6003 36.3679 28.6003Z","fill","#0A8CF0"],["d","M20.6665 56C20.6665 40.5021 15.4979 35.3335 0 35.3335C15.4979 35.3335 20.6665 30.1649 20.6665 14.6669C20.6665 30.1649 25.8351 35.3335 41.3331 35.3335C25.8351 35.3335 20.6665 40.5021 20.6665 56Z","fill","#136027"],[1,"header-text"],[1,"month"],["id","dialog-title",1,"title"],[1,"sparkles-right"],["xmlns","http://www.w3.org/2000/svg","width","55","height","56","viewBox","0 0 55 56","fill","none","aria-hidden","true"],["d","M12.3839 33.1863C12.3839 23.8924 9.28599 20.8023 0 20.8023C9.29387 20.8023 12.3839 17.7044 12.3839 8.41838C12.3839 17.7123 15.4819 20.8023 24.7679 20.8023C15.474 20.8023 12.3839 23.9003 12.3839 33.1863Z","fill","#136027"],["d","M41.8739 24.7679C41.8739 15.474 38.7759 12.3839 29.4899 12.3839C38.7838 12.3839 41.8739 9.28599 41.8739 0C41.8739 9.29387 44.9718 12.3839 54.2578 12.3839C44.9639 12.3839 41.8739 15.4819 41.8739 24.7679Z","fill","#E8559A"],["d","M22.0797 15.5285C23.6034 15.5285 24.8387 14.2933 24.8387 12.7696C24.8387 11.2458 23.6034 10.0106 22.0797 10.0106C20.5559 10.0106 19.3207 11.2458 19.3207 12.7696C19.3207 14.2933 20.5559 15.5285 22.0797 15.5285Z","fill","#0A8CF0"],["d","M13.5655 48.5102C15.0892 48.5102 16.3244 47.275 16.3244 45.7512C16.3244 44.2275 15.0892 42.9922 13.5655 42.9922C12.0417 42.9922 10.8065 44.2275 10.8065 45.7512C10.8065 47.27
15 12.0417 48.5102 13.5655 48.5102Z","fill","#0A8CF0"],["d","M32.422 56C32.422 40.5102 27.2588 35.347 11.769 35.347C27.2588 35.347 32.422 30.1837 32.422 14.6939C32.422 30.1837 37.5853 35.347 53.0751 35.347C37.5853 35.347 32.422 40.5102 32.422 56Z","fill","#136027"],["id","dialog-description","tabindex","0",1,"description"],[1,"dialog-content-white"],[1,"how-it-works"],[1,"how-it-works-title"],["tabindex","0","role","region","aria-label","How the Reading Challenge works",1,"how-it-works-content"],[1,"cta-section"],["aria-label","Start Reading Challenge","type","button",1,"lets-go-btn",3,"click","keydown.enter","keydown.space"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"button",1),t.NdJ("click",function(r){return i.closeDialog(r)})("keydown.enter",function(){return i.closeDialog()})("keydown.space",function(){return i.closeDialog()}),t.O4$(),t.TgZ(2,"svg",2),t._UZ(3,"path",3),t.qZA()(),t.kcU(),t.TgZ(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7),t.O4$(),t.TgZ(8,"svg",8),t._UZ(9,"path",9)(10,"path",10)(11,"path",11)(12,"path",12)(13,"path",13)(14,"path",14)(15,"path",15)(16,"path",16)(17,"path",17)(18,"path",18)(19,"path",19)(20,"path",20)(21,"path",21)(22,"path",22)(23,"path",23)(24,"path",24)(25,"path",25)(26,"path",26)(27,"path",27)(28,"path",28)(29,"path",29)(30,"path",30)(31,"path",31)(32,"path",32)(33,"path",33)(34,"path",34)(35,"path",35)(36,"path",36)(37,"path",37)(38,"path",38)(39,"path",39),t.qZA(),t.kcU(),t._UZ(40,"div",40),t.qZA()(),t.TgZ(41,"div",41)(42,"div",42),t.O4$(),t.TgZ(43,"svg",43),t._UZ(44,"path",44)(45,"path",45)(46,"path",46)(47,"path",47),t.qZA()(),t.kcU(),t.TgZ(48,"div",48)(49,"p",49),t._uU(50,"January"),t.qZA(),t.TgZ(51,"h1",50),t._uU(52,"Reading Challenge"),t.qZA()(),t.TgZ(53,"div",51),t.O4$(),t.TgZ(54,"svg",52),t._UZ(55,"path",53)(56,"path",54)(57,"path",55)(58,"path",56)(59,"path",57),t.qZA()()(),t.kcU(),t.TgZ(60,"p",58),t._uU(61," Read for 20 days in January and earn an awesome badge! "),t.qZA()(),t.TgZ(62,"div",59)(63,"div",60)(64,"h2",61),t._uU(65,"How It Works"),t.qZA(),t.TgZ(66,"div",62),t._uU(67," Read for 20 minutes a day on any 20 days in January."),t._UZ(68,"br"),t._uU(69," Miss a day? Don't worry! Keep going and you can still reach 20 days."),t._UZ(70,"br"),t._uU(71," The sooner you start, the better your chances! "),t.qZA()(),t.TgZ(72,"div",63)(73,"button",64),t.NdJ("click",function(){return i.onLetsGoClick()})("keydown.enter",function(){return i.onLetsGoClick()})("keydown.space",function(){return i.onLetsGoClick()}),t._uU(74," Let's Go! "),t.qZA()()()()())},styles:['@charset "UTF-8";.reading-goal-dialog[_ngcontent-%COMP%]{position:relative;width:600px;background:transparent;border-radius:16px;overflow:hidden}.reading-goal-dialog[_ngcontent-%COMP%]   .dialog-close[_ngcontent-%COMP%]{position:absolute;top:20px;right:20px;width:40px;height:40px;cursor:pointer;z-index:10;color:#fff;display:flex;align-items:center;justify-content:center;background:transparent;border:none;padding:0;outline:none}.reading-goal-dialog[_ngcontent-%COMP%]   .dialog-close[_ngcontent-%COMP%]:hover{opacity:.8}.reading-goal-dialog[_ngcontent-%COMP%]   .dialog-close[_ngcontent-%COMP%]:focus{outline:none}.reading-goal-dialog[_ngcontent-%COMP%]   .dialog-close[_ngcontent-%COMP%]:focus:not(:focus-visible){outline:none}.reading-goal-dialog[_ngcontent-%COMP%]   .dialog-close[_ngcontent-%COMP%]:focus-visible{outline:2px solid #0a96e6;outline-offset:2px;border-radius:4px}.reading-goal-dialog[_ngcontent-%COMP%]   .dialog-content[_ngcontent-%COMP%]{position:relative;z-index:1;padding:0;display:flex;flex-direction:column;align-items:center}.reading-goal-dialog[_ngcontent-%COMP%]   .dialog-content-white[_ngcontent-%COMP%]{position:relative;z-index:1;width:100%;background:white;padding:0 16px 40px;display:flex;flex-direction:column;align-items:center;border-radius:0 0 16px 16px}.reading-goal-dialog[_ngcontent-%COMP%]   .title-section[_ngcontent-%COMP%]{position:relative;width:100%;height:312px;display:flex;flex-direction:column;align-items:center;background:url(/assets/reading-goal/dialog-bg-1.png) top/contain no-repeat;padding:16px 16px 0}.reading-goal-dialog[_ngcontent-%COMP%]   .title-section[_ngcontent-%COMP%]   .badge-container[_ngcontent-%COMP%]   .upgradeable-badge[_ngcontent-%COMP%]{position:relative}.reading-goal-dialog[_ngcontent-%COMP%]   .title-section[_ngcontent-%COMP%]   .badge-container[_ngcontent-%COMP%]   .upgradeable-badge[_ngcontent-%COMP%]   .badge-image[_ngcontent-%COMP%]{position:absolute;top:29px;left:31px;width:104px;
1height:104px;background:url(/assets/reading-goal/badge.png) top/contain no-repeat}.reading-goal-dialog[_ngcontent-%COMP%]   .title-section[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{display:flex;align-items:flex-end;justify-content:center;gap:16px;margin-top:-12px}.reading-goal-dialog[_ngcontent-%COMP%]   .title-section[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .sparkles-left[_ngcontent-%COMP%], .reading-goal-dialog[_ngcontent-%COMP%]   .title-section[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .sparkles-right[_ngcontent-%COMP%]{flex-shrink:0}.reading-goal-dialog[_ngcontent-%COMP%]   .title-section[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center}.reading-goal-dialog[_ngcontent-%COMP%]   .title-section[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]   .month[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-weight:700;font-size:18px;line-height:18px;color:#e6d02c;text-transform:uppercase;letter-spacing:2px;margin:0}.reading-goal-dialog[_ngcontent-%COMP%]   .title-section[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-family:Mikado,sans-serif;font-weight:700;font-size:40px;line-height:48px;color:#fff;margin:0;letter-spacing:.25px}.reading-goal-dialog[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-weight:700;font-size:18px;line-height:24px;color:#fff;outline:none;text-align:center;max-width:284px;white-space:pre-wrap;margin-top:24px}.reading-goal-dialog[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]:focus{outline:2px solid #0a96e6;outline-offset:4px;border-radius:4px}.reading-goal-dialog[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]:focus:not(:focus-visible){outline:none}.reading-goal-dialog[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]:focus-visible{outline:2px solid #0a96e6;outline-offset:4px;border-radius:4px}.reading-goal-dialog[_ngcontent-%COMP%]   .how-it-works[_ngcontent-%COMP%]{max-width:565px;text-align:center;margin-top:32px;margin-bottom:40px}.reading-goal-dialog[_ngcontent-%COMP%]   .how-it-works[_ngcontent-%COMP%]   .how-it-works-title[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-weight:700;font-size:18px;line-height:24px;color:#3c4b62;margin:0}.reading-goal-dialog[_ngcontent-%COMP%]   .how-it-works[_ngcontent-%COMP%]   .how-it-works-text[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-weight:400;font-size:18px;line-height:24px;color:#3c4b62;margin:0 0 16px}.reading-goal-dialog[_ngcontent-%COMP%]   .how-it-works[_ngcontent-%COMP%]   .how-it-works-text[_ngcontent-%COMP%]:last-child{margin-bottom:0}.reading-goal-dialog[_ngcontent-%COMP%]   .how-it-works[_ngcontent-%COMP%]   .how-it-works-content[_ngcontent-%COMP%]{color:#3c4b62;font-family:Roboto,sans-serif;font-size:18px;font-style:normal;font-weight:400;line-height:36px;letter-spacing:.25px;outline:none}.reading-goal-dialog[_ngcontent-%COMP%]   .how-it-works[_ngcontent-%COMP%]   .how-it-works-content[_ngcontent-%COMP%]:focus{outline:2px solid #0a96e6;outline-offset:4px;border-radius:4px}.reading-goal-dialog[_ngcontent-%COMP%]   .how-it-works[_ngcontent-%COMP%]   .how-it-works-content[_ngcontent-%COMP%]:focus:not(:focus-visible){outline:none}.reading-goal-dialog[_ngcontent-%COMP%]   .how-it-works[_ngcontent-%COMP%]   .how-it-works-content[_ngcontent-%COMP%]:focus-visible{outline:2px solid #0a96e6;outline-offset:4px;border-radius:4px}.reading-goal-dialog[_ngcontent-%COMP%]   .cta-section[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:auto}.reading-goal-dialog[_ngcontent-%COMP%]   .cta-section[_ngcontent-%COMP%]   .lets-go-btn[_ngcontent-%COMP%]{min-width:320px;min-height:56px;padding:16px;background:#0a96e6;border:none;outline:none;border-radius:9999px;font-family:Mikado,sans-serif;font-weight:700;font-size:20px;line-height:24px;color:#fff;cursor:pointer;transition:background-color .3s ease}.reading-goal-dialog[_ngcontent-%COMP%]   .cta-section[_ngcontent-%COMP%]   .lets-go-btn[_ngcontent-%COMP%]:focus:not(:focus-visible){outline:none}.reading-goal-dialog[_ngcontent-%COMP%]   .cta-section[_ngcontent-%COMP%]   .lets-go-btn[_ngcontent-%COMP%]:focus-visible{outline:2px solid #0a96e6;outline-offset:2px;box-shadow:0 0 0 4px #0a96e633}.reading-goal-dialog[_ngcontent-%COMP%]   .cta-section[_ngcontent-%COMP%]   .lets-go-btn[_ngcontent-%COMP%]:hover{background:#0885cc}.reading-goal-dialog[_ngcontent-%COMP%]   .cta-section[_ngcontent-%COMP%]   .lets-go-btn[_ngcontent-%COMP%]:active{background:#0674b3}.reading-goal-dialog[_ngcontent-%COMP%]   .cta-section[_ngcontent-%COMP%]   .lets-go-btn[_ngcontent-%COMP%]:focus{outline:none}  .reading-goal-dialog-container .mat-dialog-container{padding:0;overflow:hidden;border-radius:16px!important;background:transparent!important}']}),o})();
1function Qt(o,l){if(1&o&&t._UZ(0,"div",25),2&o){const e=l.$implicit;t.Udp("left",e.startPos)("width",e.width),t.Q6J("ngClass","segment-"+e.type)}}function Ht(o,l){if(1&o&&t._UZ(0,"div",30),2&o){const e=t.oxw().$implicit,i=t.oxw();t.Q6J("ngClass",i.getBadgeClass(e.value,e.isActive,e.isNextBadge)),t.uIk("aria-label","Badge "+e.value+(e.isActive?" active":" inactive"))}}function $t(o,l){if(1&o&&t._UZ(0,"div",31),2&o){const e=t.oxw().$implicit;t.ekj("hidden",!e.shouldShow||e.isCurrentDay)}}function zt(o,l){1&o&&t._UZ(0,"div",32)}function Kt(o,l){if(1&o&&(t.TgZ(0,"div",26),t.YNc(1,Ht,1,2,"div",27),t.YNc(2,$t,1,2,"div",28),t.YNc(3,zt,1,0,"div",29),t.qZA()),2&o){const e=l.$implicit;t.Udp("left",e.position),t.ekj("active",e.isActive&&!e.isBadge)("badge",e.isBadge)("node",!e.isBadge),t.xp6(1),t.Q6J("ngIf",e.isBadge),t.xp6(1),t.Q6J("ngIf",!e.isBadge),t.xp6(1),t.Q6J("ngIf",!e.isBadge&&e.isCurrentDay)}}let Wt=(()=>{class o{constructor(e){this.coreDialogService=e,this.read_days=0,this.badges=[2,5,10,20],this.nodes=[],this.segments=[],this.progressSegments=[],this.previousActiveElement=null}getBadgePosition(e){const i=this.badges.indexOf(e);return-1===i?0:i/(this.badges.length-1)*100}getNodePositionInSegment(e,i){const n=this.segments[i];if(!n)return"0%";const r=n.startBadge,c=n.endBadge-r,d=e-r;return`calc(${this.getBadgePosition(r)}% + ${d} * (100% - 168px) / ${3*c} + 28px)`}ngOnInit(){this.generateSegments(),this.generateNodes(),this.updateProgressSegments()}ngOnChanges(){this.generateSegments(),this.generateNodes(),this.updateProgressSegments()}getBadgeClass(e,i,n){const r=i?"active":"inactive",s=n?"next":"";return s?`badge-${e}-${r}-${s}`:`badge-${e}-${r}`}isCurrentDayNode(e){return e.isCurrentDay}shouldShowBadge(e){var i;return(null!==(i=this.read_days)&&void 0!==i?i:0)>=e}generateSegments(){var e;const i=null!==(e=this.read_days)&&void 0!==e?e:0;this.segments=[];const n=[{start:0,end:2},{start:2,end:5},{start:5,end:10},{start:10,end:20}];for(let r=0;r<n.length;r++){const s=n[r],c=s.end-s.start-1;let d=0,g=!1,p=!1;i>=s.end?(g=!0,d=100):i>s.start&&i<s.end?(p=!0,d=c>0?(i-s.start-1)/c*100:0):d=0,this.segments.push({startBadge:s.start,endBadge:s.end,progressPercent:d,isCompleted:g,isActive:p,widthPercent:100/(this.badges.length-1)})}}generateNodes(){var e;const i=null!==(e=this.read_days)&&void 0!==e?e:0;this.nodes=[];let n=null;if(i<20)for(const r of this.badges)if(i<r){n=r;break}for(let r=0;r<this.badges.length;r++){const s=this.badges[r],c=r>0?this.badges[r-1]:0,d=r,g=r;if(r>0){const R=s-c-1;for(let F=1;F<=R;F++){const I=c+F,A=I===i&&i>0,$=i<=0||I>i,T=this.getNodePositionInSegment(I,g);this.nodes.push({value:I,isActive:i>=I,isNextBadge:!1,isBadge:!1,shouldShow:$&&!A,isCurrentDay:A,segmentIndex:g,position:T})}}const p=s===i&&i>0,C=this.shouldShowBadge(s),u=null!==n&&s===n,x=this.getBadgePosition(s)+"%";this.nodes.push({value:s,isActive:C,isNextBadge:u,isBadge:!0,shouldShow:!0,isCurrentDay:p,segmentIndex:d,position:x})}}getProgressWidthForCurrentNode(){var e;const i=null!==(e=this.read_days)&&void 0!==e?e:0;if(i<=0)return"0%";for(let n=0;n<this.segments.length;n++){const r=this.segments[n];if(i>r.startBadge&&i<r.endBadge)return this.getNodePositionInSegment(i,n);if(i===r.endBadge)return this.getBadgePosition(r.endBadge)+"%"}return"0%"}updateProgressSegments(){var e;const i=[],n=null!==(e=this.read_days)&&void 0!==e?e:0;for(let r=0;r<this.segments.length;r++){const s=this.segments[r];let c="inactive";if(s.isCompleted)c="completed";else if(s.isActive){const p=this.badges.includes(n),C=this.nodes.some(u=>u.value===n&&!u.isBadge);c=p||C?"gradient":"inactive"}else c="inactive";const d=this.getBadgePosition(s.startBadge)+"%";let g="0";"gradient"===c&&n>s.startBadge&&n<s.endBadge?g=`calc(${this.getNodePositionInSegment(n,r)}
1 - ${d})`:"completed"===c&&(g=`calc(${this.getBadgePosition(s.endBadge)+"%"} - ${d})`),i.push({type:c,startPos:d,width:g})}this.progressSegments=i}openDialog(){this.dialogSubscription&&this.dialogSubscription.unsubscribe(),void 0!==this.focusRestoreTimeoutId&&(clearTimeout(this.focusRestoreTimeoutId),this.focusRestoreTimeoutId=void 0),this.previousActiveElement=document.activeElement,this.previousActiveElement&&this.previousActiveElement.blur();const i=this.coreDialogService.openDialog(Jt,{panelClass:"reading-goal-dialog-container",width:"600px",maxWidth:"90vw",disableClose:!1,autoFocus:!0,restoreFocus:!1});this.dialogSubscription=i.afterClosed().subscribe(()=>{void 0!==this.focusRestoreTimeoutId&&clearTimeout(this.focusRestoreTimeoutId),this.focusRestoreTimeoutId=window.setTimeout(()=>{if(this.previousActiveElement&&this.previousActiveElement!==document.body&&this.previousActiveElement!==document.documentElement&&document.body.contains(this.previousActiveElement)&&"function"==typeof this.previousActiveElement.focus)try{this.previousActiveElement.focus()}catch(n){}this.previousActiveElement=null,this.focusRestoreTimeoutId=void 0},0)})}ngOnDestroy(){this.dialogSubscription&&this.dialogSubscription.unsubscribe(),void 0!==this.focusRestoreTimeoutId&&(clearTimeout(this.focusRestoreTimeoutId),this.focusRestoreTimeoutId=void 0)}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(Pe.CoreDialogService))},o.\u0275cmp=t.Xpm({type:o,selectors:[["epic-reading-goal-bar"]],inputs:{read_days:"read_days"},features:[t.TTD],decls:28,vars:8,consts:[[1,"reading-goal-bar"],["tabindex","0",1,"reading-goal-bar-content",3,"click","keydown.enter","keydown.space"],[1,"reading-goal-bar-content-left"],["aria-hidden","true",1,"bg-left-item"],["xmlns","http://www.w3.org/2000/svg","width","21","height","28","viewBox","0 0 21 28","fill","none","aria-hidden","true"],["d","M14.6529 12.1766C14.6529 7.60745 13.1298 6.08829 8.56458 6.08829C13.1337 6.08829 14.6529 4.56525 14.6529 0C14.6529 4.56912 16.1759 6.08829 20.7411 6.08829C16.172 6.08829 14.6529 7.61133 14.6529 12.1766Z","fill","#E8559A"],["d","M6.29756 7.95242C7.04668 7.95242 7.65396 7.34514 7.65396 6.59602C7.65396 5.8469 7.04668 5.23962 6.29756 5.23962C5.54844 5.23962 4.94116 5.8469 4.94116 6.59602C4.94116 7.34514 5.54844 7.95242 6.29756 7.95242Z","fill","#0A8CF0"],["d","M17.9428 14.1105C18.6919 14.1105 19.2992 13.5032 19.2992 12.7541C19.2992 12.005 18.6919 11.3977 17.9428 11.3977C17.1937 11.3977 16.5864 12.005 16.5864 12.7541C16.5864 13.5032 17.1937 14.1105 17.9428 14.1105Z","fill","#0A8CF0"],["d","M10.1962 27.6287C10.1962 19.9825 7.64621 17.4324 0 17.4324C7.64621 17.4324 10.1962 14.8824 10.1962 7.23621C10.1962 14.8824 12.7463 17.4324 20.3925 17.4324C12.7463 17.4324 10.1962 19.9825 10.1962 27.6287Z","fill","#136027"],[1,"middle-item"],[1,"month"],[1,"title"],["aria-label","View Reading Challenge details","type","button",1,"btn",3,"click","keydown.enter","keydown.space"],[1,"bg-right-item"],["xmlns","http://www.w3.org/2000/svg","width","25","height","25","viewBox","0 0 25 25","fill","none"],["d","M5.51779 14.7865C5.51779 10.6455 4.13747 9.26871 0 9.26871C4.14098 9.26871 5.51779 7.88838 5.51779 3.75092C5.51779 7.8919 6.89812 9.26871 11.0356 9.26871C6.89461 9.26871 5.51779 10.649 5.51779 14.7865Z","fill","#136027"],["d","M18.6573 11.0356C18.6573 6.89461 17.277 5.5178 13.1395 5.5178C17.2805 5.5178 18.6573 4.13747 18.6573 0C18.6573 4.14098 20.0376 5.5178 24.1751 5.5178C20.0341 5.5178 18.6573 6.89812 18.6573 11.0356Z","fill","#E8559A"],["d","M9.83782 6.91892C10.5167 6.91892 11.0671 6.36855 11.0671 5.68963C11.0671 5.0107 10.5167 4.46033 9.83782 4.46033C9.1589 4.46033 8.60852 5.0107 8.60852 5.68963C8.60852 6.36855 9.1589 6.91892 9.83782 6.91892Z","fill","#0A8CF0"],["d","M6.0443 21.6142C6.72322 21.6142 7.2736 21.0639 7.2736 20.3849C7.2736 19.706 6.72322 19.1556 6.0443 19.1556C5.36538 19.1556 4.815 19.706 4.815 20.3849C4.815 21.0639 5.36538 21.6142 6.0443 21.6142Z","fill","#0A8CF0"],["d","M14.446 24.9514C14.446 18.0498 12.1454 15.7492 5.24377 15.7492C12.1454 15.7492 14.446 13.4487 14.446 6.54706C14.446 13.4487 16.7465 15.7492 23.6481 15.7492C16.7465 15.7492 14.446 18.0498 14.446 24.9514Z","fill","#136027"],[1,"reading-goal-bar-content-right"],["tabindex","0","role","progressbar",1,"badge-progress-container"],["aria-hidden","true",1,"badge-nodes-overlay"],["class","progress-segment",3,"ngClass","left","width",4,"ngFor","ngForOf"],["class","badge-node",3,"active","badge","node","left",4,"ngFor","ngForOf"],[1,"progress-segment",3,"ngClass"],[1,"badge-node"],["class","badge-icon",3,"ngClass",4,"ngIf"],["class","node-dot",3,"hidden",4,"ngIf"],["class","flame-icon",4,"ngIf"],[1,"badge-icon",3,"ngClass"],[1,"n
1ode-dot"],[1,"flame-icon"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t.NdJ("click",function(){return i.openDialog()})("keydown.enter",function(){return i.openDialog()})("keydown.space",function(r){return i.openDialog(),r.preventDefault()}),t.TgZ(2,"div",2)(3,"div",3),t.O4$(),t.TgZ(4,"svg",4),t._UZ(5,"path",5)(6,"path",6)(7,"path",7)(8,"path",8),t.qZA()(),t.kcU(),t.TgZ(9,"div",9)(10,"div",10),t._uU(11,"January"),t.qZA(),t.TgZ(12,"div",11),t._uU(13,"Reading Challenge"),t.qZA(),t.TgZ(14,"button",12),t.NdJ("click",function(r){return i.openDialog(),r.stopPropagation()})("keydown.enter",function(r){return i.openDialog(),r.stopPropagation()})("keydown.space",function(r){return i.openDialog(),r.preventDefault(),r.stopPropagation()}),t._uU(15," Details "),t.qZA()(),t.TgZ(16,"div",13),t.O4$(),t.TgZ(17,"svg",14),t._UZ(18,"path",15)(19,"path",16)(20,"path",17)(21,"path",18)(22,"path",19),t.qZA()()(),t.kcU(),t.TgZ(23,"div",20)(24,"div",21)(25,"div",22),t.YNc(26,Qt,1,5,"div",23),t.YNc(27,Kt,4,11,"div",24),t.qZA()()()()()),2&e&&(t.xp6(1),t.uIk("aria-label","Reading Challenge progress: "+(i.read_days||0)+" days read out of 20 days. Click to view details."),t.xp6(23),t.uIk("aria-valuenow",i.read_days||0)("aria-valuemin",0)("aria-valuemax",20)("aria-label","Reading progress: "+(i.read_days||0)+" out of 20 days completed")("title","Reading progress: "+(i.read_days||0)+" out of 20 days completed"),t.xp6(2),t.Q6J("ngForOf",i.progressSegments),t.xp6(1),t.Q6J("ngForOf",i.nodes))},directives:[h.sg,h.mk,h.O5],styles:['@charset "UTF-8";.reading-goal-bar[_ngcontent-%COMP%]{width:100%;padding:16px 0 0;display:flex;justify-content:center;align-items:center}.reading-goal-bar-content[_ngcontent-%COMP%]{width:63%;min-width:860px;margin:0 auto;padding:12px 24px;text-align:center;border-radius:16px;background-color:#4d235b;display:flex;justify-content:space-between;align-items:center;cursor:pointer}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-left[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:7px;margin-right:30px}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-left[_ngcontent-%COMP%]   .middle-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-left[_ngcontent-%COMP%]   .middle-item[_ngcontent-%COMP%]   .month[_ngcontent-%COMP%]{color:#e6d02c;text-align:center;
1font-family:Font-Family-Roboto,Roboto;font-size:12px;font-style:normal;font-weight:700;line-height:14px}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-left[_ngcontent-%COMP%]   .middle-item[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:#fff;text-align:center;font-family:Font-Family-Mikado,Mikado;font-size:18px;font-style:normal;font-weight:700;line-height:22px}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-left[_ngcontent-%COMP%]   .middle-item[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{margin-top:4px;display:flex;width:98px;padding:2px 4px;justify-content:center;align-items:center;gap:8px;border-radius:9999px;background:#673279;color:#f4d3ff;text-align:center;font-family:Font-Family-Roboto,Roboto;font-size:10px;font-style:normal;font-weight:700;line-height:14px;border:none;cursor:pointer;outline:none}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-left[_ngcontent-%COMP%]   .middle-item[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:focus{outline:none}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-left[_ngcontent-%COMP%]   .middle-item[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:focus:not(:focus-visible){outline:none}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-left[_ngcontent-%COMP%]   .middle-item[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:focus-visible{outline:2px solid #0a96e6;outline-offset:2px}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]{flex:1;display:flex;justify-content:center;align-items:center;padding-left:8px;padding-right:24px}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;width:100%;justify-content:space-between;border-radius:9999px;background:#dde5f0;height:16px;overflow:visible}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-nodes-overlay[_ngcontent-%COMP%]{position:relative;z-index:1;width:100%;height:100%}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-nodes-overlay[_ngcontent-%COMP%]   .progress-segment[_ngcontent-%COMP%]{height:100%;position:absolute;top:0;border-radius:9999px;z-index:0}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-nodes-overlay[_ngcontent-%COMP%]   .progress-segment.segment-inactive[_ngcontent-%COMP%]{display:none}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-nodes-overlay[_ngcontent-%COMP%]   .progress-segment.segment-completed[_ngcontent-%COMP%]{background:#e9559b}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-nodes-overlay[_ngcontent-%COMP%]   .progress-segment.segment-gradient[_ngcontent-%COMP%]{background:linear-gradient(90deg,#e9559b 0%,#e9559b 22.12%,#d93f5e 44.71%,#f4bf13 100%)}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-node[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-node.badge[_ngcontent-%COMP%]   .badge-icon[_ngcontent-%COMP%]{width:56px;height:56px;display:flex;align-items:center;justify-content:center;background-size:contain;background-repeat:no-repeat;background-position:center}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-node.badge[_ngcontent-%COMP%]   .badge-icon.badge-2-active[_ngcontent-%COMP%]{background-image:url(/assets/reading-goal/badge-2-active.png)}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-node.badge[_ngcontent-%COMP%]   .badge-icon.badge-2-inactive[_ngcontent-%COMP%]{background-image:url(/assets/reading-goal/badge-2-inactive.png)}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-node.badge[_ngcontent-%COMP%]   .badge-icon.badge-2-inactive-next[_ngcontent-%COMP%]{background-image:url(/assets/reading-goal/badge-2-next-inactive.png)}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-node.badge[_ngcontent-%COMP%]   .badge-icon.badge-5-active[_ngcontent-%COMP%]{background-image:url(/assets/reading-goal/badge-5-active.png)}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-node.badge[_ngcontent-%COMP%]   .badge-icon.badge-5-inactive[_ngcontent-%COMP%]{background-image:url(/assets/reading-goal/badge-5-inactive.png)}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-node.badge[_ngcontent-%COMP%]   .badge-icon.badge-5-inactive-next[_ngcontent-%COMP%]{background-image:url(/assets/reading-goal/badge-5-next-inactive.png)}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-node.badge[_ngcontent-%COMP%]   .badge-icon.badge-10-active[_ngcontent-%COMP%]{background-image:url(/assets/reading-goal/badge-10-active.png)}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-node.badge[_ngcontent-%COMP%]   .badge-icon.badge-10-inactive[_ngcontent-%COMP%]{background-image:url(/assets/reading-goal/badge-10-inactive.png)}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-node.badge[_ngcontent-%COMP%]   .badge-icon.badge-10-inactive-next[_ngcontent-%COMP%]{background-image:url(/assets/reading-goal/badge-10-next-inactive.png)}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-node.badge[_ngcontent-%COMP%]   .badge-icon.badge-20-active[_ngcontent-%COMP%]{background-image:url(/assets/reading-goal/badge-20-active.png)}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-node.badge[_ngcontent-%COMP%]   .badge-icon.badge-20-inactive[_ngcontent-%COMP%]{background-image:url(/assets/reading-goal/badge-20-inactive.png)}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-node.badge[_ngcontent-%COMP%]   .badge-icon.badge-20-inactive-next[_ngcontent-%COMP%]{background-image:url(/assets/reading-goal/badge-20-next-inactive.png)}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-node.node[_ngcontent-%COMP%]{min-width:6px;min-height:6px}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-node.node[_ngcontent-%COMP%]   .node-dot[_ng
1content-%COMP%]{width:6px;height:6px;border-radius:50%;background-color:#afbbca;transition:background-color .3s ease;display:block}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-node.node.active[_ngcontent-%COMP%]   .node-dot[_ngcontent-%COMP%], .reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-node.node[_ngcontent-%COMP%]   .node-dot.hidden[_ngcontent-%COMP%]{visibility:hidden}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-node.node[_ngcontent-%COMP%]   .flame-icon[_ngcontent-%COMP%]{width:34px;height:24px;background-image:url(/assets/reading-goal/fire.png);background-size:contain;background-repeat:no-repeat;background-position:center;position:absolute;z-index:3;display:block;top:50%;right:0;transform:translateY(-50%);pointer-events:none}.reading-goal-bar-content[_ngcontent-%COMP%]   .reading-goal-bar-content-right[_ngcontent-%COMP%]   .badge-progress-container[_ngcontent-%COMP%]   .badge-node.active.badge[_ngcontent-%COMP%]   .badge-icon[_ngcontent-%COMP%]{transform:scale(1.1);transition:transform .3s ease}']}),o})();var j=a(50857),jt=a(2279),Be=a(78494);function Vt(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"epic-filter-dropdown",1),t.NdJ("filterSelected",function(n){return t.CHM(e),t.oxw().onFilterSelectGrade(n.filter)}),t.qZA()}if(2&o){const e=t.oxw();t.Q6J("filter",e.gradeFilter)}}function Xt(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"epic-filter-dropdown",1),t.NdJ("filterSelected",function(n){return t.CHM(e),t.oxw().onFilterSelectReadingLevel(n.filter)}),t.qZA()}if(2&o){const e=t.oxw();t.Q6J("filter",e.readingLevelFilter)}}let qt=(()=>{class o{constructor(e){this.siteConstantsService=e,this.onGradeFilterSelected=new t.vpe,this.onReadingLevelFilterSelected=new t.vpe,this.gradeFilter=new j.FX({label:"Grade",description:"Grade",model:null,options:[],canClear:!1,labelShowFilterName:!1}),this.readingLevelFilter=new j.FX({label:"",description:"",model:null,options:[],canClear:!1})}ngOnChanges(e){var i;(null===(i=e.readingLevelFilterData)||void 0===i?void 0:i.currentValue)&&this.initReadingLevelFilter(e.readingLevelFilterData.currentValue),e.initialGrade&&this.initGradeModel(e.initialGrade.currentValue)}ngOnInit(){this.siteConstantsService.gradeList.forEach(e=>{this.gradeFilter.options.push({label:this.siteConstantsService.gradeLabelMap[e],key:e})}),this.initGradeModel(this.initialGrade)}onFilterSelectGrade(e){e.model&&this.onGradeFilterSelected.emit(e.model)}onFilterSelectReadingLevel(e){var i,n,r;e.model&&(null===(i=this.readingLevelFilterData)||void 0===i?void 0:i.model)&&this.onReadingLevelFilterSelected.emit({readingLevelSystemKey:null===(n=this.readingLevelFilterData)||void 0===n?void 0:n.model,selectedOptionId:e.model,selectedOptionName:(null===(r=this.readingLevelFilterData.values.find(s=>s.id===e.model))||void 0===r?void 0:r.name)||""})}getFilterByLabel(){return this.readingLevelFilterData?"Reading Level":"Grade"}initGradeModel(e){void 0!==e&&(this.gradeFilter.model=e)}initReadingLevelFilter(e){var i;this.readingLevelFilter.label=e.name||"",this.readingLevelFilter.description=e.name||"";let n=[];e.values.forEach(r=>{n.push({label:r.name,key:r.id})}),this.readingLevelFilter.options=n,this.readingLevelFilter.model=this.initialReadingLevel&&this.initialReadingLevel[0]===(null===(i=this.readingLevelFilterData)||void 0===i?void 0:i.model)?this.initialReadingLevel[1]:e.default}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(jt.JF))},o.\u0275cmp=t.Xpm({type:o,selectors:[["epic-reading-level-filter"]],inputs:{readingLevelFilterData:"readingLevelFilterData",initialGrade:"initialGrade",initialReadingLevel:"initialReadingLevel"},outputs:{onGradeFilterSelected:"onGradeFilterSelected",onReadingLevelFilterSelected:"onReadingLevelFilterSelected"},features:[t.TTD],decls:4,vars:3,consts:[[3,"filter","filterSelected",4,"ngIf"],[3,"filter","filterSelected"]],template:function(e,i){1&e&&(t.TgZ(0,"h4"),t._uU(1),t.qZA(),t.YNc(2,Vt,1,1,"epic-filter-dropdown",0),t.YNc(3,Xt,1,1,"epic-filter-dropdown",0)),2&e&&(t.xp6(1),t.hij("Explore by ",i.getFilterByLabel(),":"),t.xp6(1),t.Q6J("ngIf",!i.readingLevelFilterData),t.xp6(1),t.Q6J("ngIf",i.readingLevelFilterData))},directives:[h.O5,Be.c],styles:["[_nghost-%COMP%]{display:flex;align-items:center}epic-filter-dropdown[_ngcontent-%COMP%]{margin-left:8px}"]}),o})();var ei=a(50736),ie=a(12477),ti=a(71989);const ii=["exploreFilters"],ni=function(o){return{"hidden-filter":o}};function oi(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"epic-filter-dropdown",4,5),t.NdJ("filterSelected",function(n){return t.CHM(e).$implicit.onFilterChange(n.filter,n.emitEvent,n.changedOption,n.isSelected)})("click",function(){const r=t.CHM(e).$implicit;return t.oxw().onFilterClick(r.filterObject.filterId)}),t.qZA()}if(2&o){const e=l.$implicit,i=l.index,n=t.oxw();
1t.Q6J("ngClass",t.VKq(4,ni,n.collapsedFilters.isCollapsed&&i>=3))("filter",e.filterObject)("isDisabled",e.isQuizFilter&&n.disableQuizFilter)("showParentLabelWhenChildFilterNotSelected",e.isReadingLevelFilter)}}function ri(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"a",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().toggleSeeMoreFilters()})("keydown.enter",function(n){return t.CHM(e),t.oxw().toggleSeeMoreFilters(),n.preventDefault()})("keydown.space",function(n){return t.CHM(e),t.oxw().toggleSeeMoreFilters(),n.preventDefault()}),t._uU(1),t.qZA()}if(2&o){const e=t.oxw();t.uIk("aria-label",e.collapsedFilters.isCollapsed?"See More Filters":"See Fewer Filters"),t.xp6(1),t.hij(" ",e.collapsedFilters.isCollapsed?"See More Filters":"See Fewer Filters","\n")}}let si=(()=>{class o{constructor(e,i,n,r,s){this.browseService=e,this.collectionsMakerService=i,this.element=n,this.changeDetectorRef=r,this.bigQueryService=s,this.disableReadingLevelFilter=!1,this.canClearReadingLevelFilter=!0,this.disableQuizFilter=!1,this.filterChanged=new t.vpe,this.filtersList=[],this.hasAppliedFilters=!1,this.initialReadingLevelDefaultValue=[],this.collapsedFilters={shouldShow:!1,isCollapsed:!1},this.hasInitializedReadingLevelFilter=!1,this.hasInitializedGradeFilter=!1,this.filterChangedDebouncer=new ke.x,this.subs=[]}onResize(){this.checkShouldCollapseFilters()}ngOnInit(){this.subs.push(this.browseService.getExploreFilterData().subscribe(e=>{this.createFilters(e)})),this.subs.push(this.filterChangedDebouncer.pipe((0,ti.b)(500)).subscribe(()=>{this.browseService.isClearFiltersLinkPendingRemoval=!1,this.filterChanged.emit()})),this.subs.push(this.collectionsMakerService.openedObservable.subscribe(e=>{setTimeout(()=>{this.checkShouldCollapseFilters()},0)}))}ngAfterViewInit(){this.checkShouldCollapseFilters(),this.changeDetectorRef.detectChanges()}ngOnDestroy(){this.subs.forEach(e=>e.unsubscribe())}createFilters(e){let n,i=["non_fiction","level_type"];e.forEach(r=>{let s=this.createEpicFilter(r);s&&(n={exploreFilterData:r,filterObject:s,onFilterChange:(c,d,g,p)=>{let C=c.model,u=c.filterId;const x=this.getReadingLevelFilter();x&&u===M.Sf.READING_LEVEL_FILTER_KEY?this.clearReadingLevelSubFilters(x):x&&this.isReadingLevelSubFilter(x,u)&&this.clearReadingLevelSubFilters(x,u),Array.isArray(C)||i.includes(u)?this.appliedFilters.setFilterInModel(u,C):this.appliedFilters.setFilterInModel(u,C?[C]:[]),g&&this.bigQueryService.log(p?"explore_filter_selected":"explore_filter_deselected",{filter:u,value:g.label}),d&&this.onFilterChange()}},"level_type"===r.model&&(n.isReadingLevelFilter=!0),"quizzes"===r.model&&(n.isQuizFilter=!0),this.filtersList.push(n))}),this.hasAppliedFilters=this.appliedFilters.hasAppliedFilters()}createEpicFilter(e){let i=this.appliedFilters.getModel()[e.model],n={filterId:e.model,label:e.name,description:e.description,model:Array.isArray(i)&&0===i.length||void 0===i?null:i,options:e.values.map(s=>{var c;let d={label:s.name,key:s.id};return s.model&&(d.subFilter=this.createEpicFilter(s),(null===(c=d.subFilter)||void 0===c?void 0:c.filterId)===this.accountsDefaultRlSystem&&(this.defaultRlSystemFilterOption=d)),d}),labelShowFilterName:e.titleContainsFilterName,closeMenuOnClick:!1,canClear:this.canClearReadingLevelFilter&&!!e.resetText,clearFilterText:e.resetText};switch(function r(s){return s&&s.id}(e)&&(n.description=e.name),e.inputType){case ie.k.RADIO:return new j.FX(n);case ie.k.TOGGLE:return n.onOption={label:e.values[0].activeName,key:e.values[0].id},n.offOption={label:e.values[0].inactiveName,key:null},n.options=[],new j.$n(n);case ie.k.CHECKBOX:return new j.lt(n);case ie.k.LIST:return new j.Hk(n)}}clearFilters(){var e;this.browseService.isClearFiltersLinkPendingRemoval=!0;const i=this.appliedFilters.getAppliedFiltersDetail(),n=this.getReadingLevelFilter(),r=!this.canClearReadingLevelFilter;this.updateReadingLevelCanClear(this.canClearReadingLevelFilter),null===(e=this.exploreFilterComponentRefs)||void 0===e||e.forEach(s=>{const c=s.filter.filterId;if(r&&n&&c&&(c===M.Sf.READING_LEVEL_FILTER_KEY||this.isReadingLevelSubFilter(n,c)))return this.clearReadingLevelSubFilters(n),s.filter=n,void s.ngOnInit();s.clearFilter(void 0,!0),s.filter.filterId===M.Sf.READING_LEVEL_FILTER_KEY&&(this.clearReadingLevelSubFilters(s.filter),this.defaultRlSystemFilterOption&&s.onFilterSelect(this.defaultRlSystemFilterOption))}),this.onFilterChange(),this.bigQueryService.log("explore_filter_clear",i)}onFilterChange(){var e;this.emitFilterChange(),this.hasAppliedFilters=null===(e=this.appliedFilters)||void 0===e?void 0:e.hasAppliedFilters()}emitFilterChange(){this.filterChangedDebouncer.next()}toggleSeeMoreFilters(){this.collapsedFilters.isCollapsed=!this.collapsedFilters.isCollapsed}checkShouldCollapseFilters(){var e;if((null===(e=this.element)||void 0===e?void 0:e.nativeElement.offsetWidth)&&this.element.nativeElement.offsetWidth<948)return this.collapsedFilters.shouldShow=!0,void(this.collapsedFilters.isCollapsed=!0);this.collapsedFilters.shouldShow=!1,this.collapsedFilters.isCollapsed=!1}initReadingLevelFilter(e){var i,n,r,s,c,d,g;const p=this.filtersList.find(C=>C.exploreFilterData.model===M.Sf.READING_LEVEL_FILTER_KEY);if(p){this.updateReadingLevelCanClear(!1,p);const C=p.filterObject,x=(Array.isArray(null===(i=null==e?void 0:e.active)||void 0===i?void 0:i[0])?e.active:[null==e?void 0:e.active]).find(T=>(null==T?void 0:T[0])===M.Sf.READING_LEVEL_FILTER_KEY),R=null!==(r=null!==(n=null==x?void 0:x[1])&&void 0!==n?n:null==e?void 0:e[M.Sf.READING_LEVEL_FILTER_KEY])&&void 0!==r?r:null==e?void 0:e.selectedFilter,F=C.options.find(T=>{var N;return`${T.key}`==`${R}`||(null===(N=T.subFilter)||void 0===N?void 0:N.filterId)===R}),I=null!=F?F:R?void 0:C.options.find(T=>{var N;return(null===(N=T.subFilter)||void 0===N?void 0:N.filterId)===(null==e?void 0:e.model)}
1);if(I){const T=null!==(s=this.appliedFilters.getModel()[M.Sf.READING_LEVEL_FILTER_KEY])&&void 0!==s?s:C.model;if(this.hasInitializedReadingLevelFilter&&`${T}`==`${I.key}`)return;this.appliedFilters.clearRlFilters(),this.clearReadingLevelSubFilters(C,null===(c=I.subFilter)||void 0===c?void 0:c.filterId),C.selectFilterByKey(I.key),this.appliedFilters.setFilterInModel(M.Sf.READING_LEVEL_FILTER_KEY,I.key)}const A=null===(d=C.selectedOption)||void 0===d?void 0:d.subFilter;this.initialReadingLevelDefaultValue=[null==e?void 0:e.default],A&&(A.model=this.initialReadingLevelDefaultValue,this.appliedFilters.setFilterInModel(A.filterId,this.initialReadingLevelDefaultValue));const $=null===(g=this.exploreFilterComponentRefs)||void 0===g?void 0:g.find(T=>{const N=T.filter.filterId;return N===M.Sf.READING_LEVEL_FILTER_KEY||C.options.some(we=>{var ne;return(null===(ne=we.subFilter)||void 0===ne?void 0:ne.filterId)===N})});$&&($.filter=p.filterObject,$.ngOnInit()),this.hasAppliedFilters=this.appliedFilters.hasAppliedFilters(),this.hasInitializedReadingLevelFilter=!0}}initGradeFilter(e){var i,n,r,s;const c=this.filtersList.find(d=>d.exploreFilterData.model===M.Sf.READING_LEVEL_FILTER_KEY);if(c){this.updateReadingLevelCanClear(!0,c);const d=c.filterObject,g=d.options.find(u=>{var x;return"grade"===(null===(x=u.subFilter)||void 0===x?void 0:x.filterId)});if(g){const u=null!==(i=this.appliedFilters.getModel()[M.Sf.READING_LEVEL_FILTER_KEY])&&void 0!==i?i:d.model;if(this.hasInitializedGradeFilter&&`${u}`==`${g.key}`)return;this.appliedFilters.clearRlFilters(),this.clearReadingLevelSubFilters(d,null===(n=g.subFilter)||void 0===n?void 0:n.filterId),d.selectFilterByKey(g.key),this.appliedFilters.setFilterInModel(M.Sf.READING_LEVEL_FILTER_KEY,g.key)}const p=null===(r=d.selectedOption)||void 0===r?void 0:r.subFilter;if(p){const u=void 0!==e?[e]:[];p.model=u,this.appliedFilters.setFilterInModel(p.filterId,u)}const C=null===(s=this.exploreFilterComponentRefs)||void 0===s?void 0:s.find(u=>{const x=u.filter.filterId;return x===M.Sf.READING_LEVEL_FILTER_KEY||d.options.some(R=>{var F;return(null===(F=R.subFilter)||void 0===F?void 0:F.filterId)===x})});C&&(C.filter=c.filterObject,C.ngOnInit()),this.hasAppliedFilters=this.appliedFilters.hasAppliedFilters(),this.hasInitializedGradeFilter=!0}}getReadingLevelFilter(){var e;return null===(e=this.filtersList.find(i=>i.exploreFilterData.model===M.Sf.READING_LEVEL_FILTER_KEY))||void 0===e?void 0:e.filterObject}isReadingLevelSubFilter(e,i){return e.options.some(n=>{var r;return(null===(r=n.subFilter)||void 0===r?void 0:r.filterId)===i})}clearReadingLevelSubFilters(e,i){e.options.forEach(n=>{var r;(null===(r=n.subFilter)||void 0===r?void 0:r.filterId)&&n.subFilter.filterId!==i&&(n.subFilter.clearFilter(),this.appliedFilters.setFilterInModel(n.subFilter.filterId,n.subFilter.model))})}updateReadingLevelCanClear(e,i=this.filtersList.find(n=>n.exploreFilterData.model===M.Sf.READING_LEVEL_FILTER_KEY)){!i||this.updateFilterCanClear(i.filterObject,i.exploreFilterData,e)}updateFilterCanClear(e,i,n){e.canClear=n&&!!i.resetText,e.options.forEach((r,s)=>{const c=i.values[s];r.subFilter&&c&&this.updateFilterCanClear(r.subFilter,c,n)})}onFilterClick(e){const i=this.appliedFilters.getAppliedFiltersDetail();let n={filter:e||"",value:i[e||""]||""};e===M.Sf.READING_LEVEL_FILTER_KEY&&[...Object.keys(ei.a),"grade"].forEach(s=>{if(void 0!==i[s]){const c=s||"",d=i[s||""]||"";n=Object.assign(Object.assign({},n),{sub_filter:c,sub_filter_value:d})}}),this.bigQueryService.log("explore_filter_open",n)}applyQuizFilter(){const e=this.filtersList.find(n=>n.exploreFilterData.model===M.Sf.QUIZ_FILTER_KEY);if(!e)return;const i=e.filterObject;i.type===ie.k.TOGGLE&&i.selectFilterByKey(i.onOption.key),e.onFilterChange(i,!1),this.hasAppliedFilters=this.appliedFilters.hasAppliedFilters()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(M.Iz),t.Y36(Ee.f),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(P.p))},o.\u0275cmp=t.Xpm({type:o,selectors:[["epic-explore-filters"]],viewQuery:function(e,i){if(1&e&&t.Gf(ii,5),2&e){let n;t.iGM(n=t.CRH())&&(i.exploreFilterComponentRefs=n)}},hostBindings:function(e,i){1&e&&t.NdJ("resize",function(r){return i.onResize(r)},!1,t.Jf7)},inputs:{readingLevelFilterData:"readingLevelFilterData",initialGrade:"initialGrade",initialReadingLevel:"initialReadingLevel",appliedFilters:"appliedFilters",disableReadingLevelFilter:"disableReadingLevelFilter",canClearReadingLevelFilter:"canClearReadingLevelFilter",disableQuizFilter:"disableQuizFilter"},outputs:{filterChanged:"filterChanged"},decls:6,vars:3,consts:[[1,"explore-filters-heading"],[3,"ngClass","filter","isDisabled","showParentLabelWhenChildFilterNotSelected","filterSelected","click",4,"ngFor","ngForOf"],["role","button","tabindex","0","class","epic-body-text--s marginRight-xs accessible-link",3,"click","keydown.enter","keydown.space",4,"ngIf"],["role","button","tabindex","0","aria-label","Clear Filters",1,"epic-body-text--s","accessible-link",3,"hidden","click","keydown.enter","keydown.space"],[3,"ngClass","filter","isDisabled","showParentLabelWhenChildFilterNotSelected","filterSelected","click"],["exploreFilters",""],["role","button","tabindex","0",1,"epic-body-text--s","marginRight-xs","accessible-link",3,"click","keydown.enter","keydown.space"]],template:function(e,i){1&e&&(t.TgZ(0,"h4",0),t._uU(1,"Explore by:"),t.qZA(),t.YNc(2,oi,2,6,"epic-filter-dropdown",1),t.YNc(3,ri,2,2,"a",2),t.TgZ(4,"a",3),t.
1NdJ("click",function(){return i.clearFilters()})("keydown.enter",function(r){return i.clearFilters(),r.preventDefault()})("keydown.space",function(r){return i.clearFilters(),r.preventDefault()}),t._uU(5,"Clear Filters"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngForOf",i.filtersList),t.xp6(1),t.Q6J("ngIf",i.collapsedFilters.shouldShow),t.xp6(1),t.Q6J("hidden",!i.hasAppliedFilters))},directives:[h.sg,Be.c,h.mk,h.O5],styles:["[_nghost-%COMP%]{display:inline-block;width:100%}.explore-filters-heading[_ngcontent-%COMP%]{display:inline-block}epic-filter-dropdown[_ngcontent-%COMP%]:first-of-type{margin-left:8px}epic-filter-dropdown[_ngcontent-%COMP%]:not(:last-child){margin-right:8px;padding:4px 0}epic-filter-dropdown[_ngcontent-%COMP%]:not(:last-child).hidden-filter{display:none}.accessible-link[_ngcontent-%COMP%]:focus:not(:focus-visible){outline:none}.accessible-link[_ngcontent-%COMP%]:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:2px}"]}),o})();var ai=a(22756),be=a(44805),li=a(77198);const ci=function(o,l){return{index:o,rowIndex:l}};function di(o,l){if(1&o&&(t.TgZ(0,"div",2),t._UZ(1,"new-epic-originals-collection-item",3),t.qZA()),2&o){const e=l.$implicit,i=l.index,n=t.oxw();t.xp6(1),t.Q6J("collection",e)("shouldLogImpression",n.shouldLogImpression)("sourceData",t.WLB(5,ci,i,n.rowIndex))("rowUuid4",n.rowUuid4)("section_swap_variant",!0)}}let gi=(()=>{class o{constructor(e){this.cdf=e,this.contentList=[],this.rowName="",this.shouldLogImpression=!1,this.rowCategory="",this.enableBookRowScrollPosition=!1,this.displayedContentList=[]}onDisplayedContentListChanged(e){this.displayedContentList=e}trackOriginalsFn(e,i){return i.id}onRowUuid4Generated(e){this.rowUuid4=e,this.cdf.detectChanges()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(t.sBO))},o.\u0275cmp=t.Xpm({type:o,selectors:[["new-epic-originals-row"]],inputs:{contentList:"contentList",rowName:"rowName",rowIndex:"rowIndex",shouldLogImpression:"shouldLogImpression",rowCategory:"rowCategory",enableBookRowScrollPosition:"enableBookRowScrollPosition"},decls:2,vars:8,consts:[[3,"rowName","contentList","contentRowClass","shouldLogImpression","rowCategory","enableBookRowScrollPosition","displayedContentListChanged","rowUuid4Generated"],["class","row-item-wrapper",4,"ngFor","ngForOf","ngForTrackBy"],[1,"row-item-wrapper"],[3,"collection","shouldLogImpression","sourceData","rowUuid4","section_swap_variant"]],template:function(e,i){1&e&&(t.TgZ(0,"epic-content-row",0),t.NdJ("displayedContentListChanged",function(r){return i.onDisplayedContentListChanged(r)})("rowUuid4Generated",function(r){return i.onRowUuid4Generated(r)}),t.YNc(1,di,2,8,"div",1),t.qZA()),2&e&&(t.Q6J("rowName",i.rowName)("contentList",i.contentList)("contentRowClass","epic-content-row-originals")("shouldLogImpression",i.shouldLogImpression)("rowCategory",i.rowCategory)("enableBookRowScrollPosition",i.enableBookRowScrollPosition),t.xp6(1),t.Q6J("ngForOf",i.displayedContentList)("ngForTrackBy",i.trackOriginalsFn))},directives:[be.R,h.sg,li.d],styles:[""]}),o})();var Ae=a(69636),ui=a(5485),Ne=a(84449),Ze=a(43445);let pi=(()=>{class o extends Ae.C{constructor(e,i,n,r,s,c){super(e,i,n),this._assetService=r,this.envService=s,this._routingService=c,this.featuredCollectionThumbnails={}}ngOnInit(){this._initThumbnails()}showCollection(e){let n={clickUuid4:this.onClick(e,this.featuredCollection.recommendation_uuid4||"")[0]},r=H.Pm.COLLECTION,s=this.featuredCollection.modelId;this.featuredCollection.rcmd_slot_type&&this.featuredCollection.rcmd_slot_book_id?(r={1:H.Pm.USER_COLLECTION}[this.featuredCollection.rcmd_slot_type],s=String(this.featuredCollection.rcmd_slot_book_id)):this.featuredCollection.contentTitleId?(r=H.Pm.CONTENT_TITLE,s=String(this.featuredCollection.contentTitleId)):n.featuredCollection=this.featuredCollection,this._routingService.goToWebAppRoute({route:r,pathParams:[s],extras:{state:n}})}getItemRecommendationUuid(){return this.featuredCollection.recommendation_uuid4||""}_initThumbnails(){this.featuredCollectionThumbnails=this._assetService.getImageVersions({url:`${this.envService.cdnBase}${this.featuredCollection.artURL}.png`,width:250},["png","webp"])}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(me.Z),t.Y36(Ne.f),t.Y36(Ze.W),t.Y36(ui.d),t.Y36(pe.DJ),t.Y36(ee.Zn))},o.\u0275cmp=t.Xpm({type:o,selectors:[["new-epic-featured-collection-item"]],inputs:{featuredCollection:"featuredCollection"},features:[t.qOj],decls:4,vars:3,consts:[["type","image/webp",3,"srcset"],[1,"featured-collections-image","pointer",3,"src","click"],["_elementForImpressionLogging",""]],template:function(e,i){1&e&&(t.TgZ(0,"picture"),t._UZ(1,"source",0),t.TgZ(2,"img",1,2),t.NdJ("click",function(r){return i.showCollection(r)}),t.qZA()()),2&e&&(t.xp6(1),t.Q6J("srcset",i.featuredCollectionThumbnails.webp,t.LSH),t.xp6(1),t.Q6J("src",i.featuredCollectionThumbnails.png,t.LSH),t.uIk("r-id",i.featuredCollection.recommendation_uuid4))},styles:["[_nghost-%COMP%]{width:210px}@media screen and (max-width: 600px){[_nghost-%COMP%]{width:175px}}[_nghost-%COMP%]   img.featured-collections-image[_ngcontent-%COMP%]{height:130px;width:auto;max-width:100%;object-fit:contain;border-radius:16px;box-shadow:0 2px 14px #2c3b5633;transform-origin:center left;transition:transform .25s}[_nghost-%COMP%]   img.featured-collections-image[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]}),o})();const hi=function(o,l){return{index:o,rowIndex:l}};function vi(o,l){if(1&o&&(t.TgZ(0,"div",2),t._UZ(1,"new-epic-featured-collection-item",3),t.qZA()),2&o){const e=l.$implicit,i=l.index,n=t.oxw();
1t.xp6(1),t.Q6J("featuredCollection",e)("shouldLogImpression",n.shouldLogImpression)("sourceData",t.WLB(4,hi,i,n.rowIndex))("rowUuid4",n.rowUuid4)}}let Ci=(()=>{class o{constructor(e){this.cdf=e,this.contentList=[],this.rowName="",this.shouldLogImpression=!1,this.enableBookRowScrollPosition=!1,this.displayedContentList=[]}onDisplayedContentListChanged(e){this.displayedContentList=e}trackCollectionFn(e,i){return i.modelId}onRowUuid4Generated(e){this.rowUuid4=e,this.cdf.detectChanges()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(t.sBO))},o.\u0275cmp=t.Xpm({type:o,selectors:[["new-epic-featured-row"]],inputs:{contentList:"contentList",rowName:"rowName",rowIndex:"rowIndex",shouldLogImpression:"shouldLogImpression",enableBookRowScrollPosition:"enableBookRowScrollPosition"},decls:2,vars:7,consts:[[3,"rowName","contentList","contentRowClass","shouldLogImpression","enableBookRowScrollPosition","displayedContentListChanged","rowUuid4Generated"],["class","row-item-wrapper",4,"ngFor","ngForOf","ngForTrackBy"],[1,"row-item-wrapper"],[3,"featuredCollection","shouldLogImpression","sourceData","rowUuid4"]],template:function(e,i){1&e&&(t.TgZ(0,"epic-content-row",0),t.NdJ("displayedContentListChanged",function(r){return i.onDisplayedContentListChanged(r)})("rowUuid4Generated",function(r){return i.onRowUuid4Generated(r)}),t.YNc(1,vi,2,7,"div",1),t.qZA()),2&e&&(t.Q6J("rowName",i.rowName)("contentList",i.contentList)("contentRowClass","epic-content-row-featured-collection")("shouldLogImpression",i.shouldLogImpression)("enableBookRowScrollPosition",i.enableBookRowScrollPosition),t.xp6(1),t.Q6J("ngForOf",i.displayedContentList)("ngForTrackBy",i.trackCollectionFn))},directives:[be.R,h.sg,pi],styles:[""]}),o})();var Ue=a(31950),V=a(14239),_i=a(53415);let mi=(()=>{class o extends Ae.C{constructor(e,i,n){super(e,i,n)}onClickImpressionEl(e){var i,n;if(!(null===(i=this.topicData)||void 0===i?void 0:i.recommendation_uuid4))return;let r=this.onClick(e,null===(n=this.topicData)||void 0===n?void 0:n.recommendation_uuid4);!this.onClickContent||this.onClickContent(this.topicData,this.topicIndex,r[0])}getItemRecommendationUuid(){var e;return(null===(e=this.topicData)||void 0===e?void 0:e.recommendation_uuid4)||""}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(me.Z),t.Y36(Ne.f),t.Y36(Ze.W))},o.\u0275cmp=t.Xpm({type:o,selectors:[["epic-topic-card-item"]],inputs:{topicData:"topicData",topicIndex:"topicIndex",onClickContent:"onClickContent"},features:[t.qOj],decls:5,vars:3,consts:[[1,"topic-card",3,"click"],["_elementForImpressionLogging",""],["alt","topicData.displayName",3,"src","srcset"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0,1),t.NdJ("click",function(r){return i.onClickImpressionEl(r)}),t._UZ(2,"img",2),t.TgZ(3,"p"),t._uU(4),t.qZA()()),2&e&&(t.uIk("r-id",null==i.topicData?null:i.topicData.recommendation_uuid4),t.xp6(2),t.Q6J("src",i.topicData.iconImageURL,t.LSH),t.xp6(2),t.Oqu(i.topicData.displayName))},styles:["div.topic-card[_ngcontent-%COMP%]{width:160px;height:160px;position:relative;transition:transform .2s ease-in-out;transform-origin:center left;display:flex;justify-content:center;align-items:center}div.topic-card[_ngcontent-%COMP%]:hover{transform:scale(1.1)}div.topic-card[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:transform 1.6s ease-in-out}div.topic-card[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]:hover{z-index:0;transform:translate(-50%,-50%) rotate(15deg)}div.topic-card[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center;font-family:Mikado,sans-serif;color:#fff;position:relative;z-index:0;margin:0;white-space:normal}"]}),o})();var Ge=a(10578);const fi=function(o,l){return{index:o,rowIndex:l}};function bi(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"section",2)(1,"epic-topic-card-item",3),t.NdJ("visibilityChange",function(n){const r=t.CHM(e),s=r.$implicit,c=r.index;return t.oxw().onCardView(n,s,c)}),t.qZA()()}if(2&o){const e=l.$implicit,i=l.index,n=t.oxw();t.xp6(1),t.Q6J("intersectionDebounce",50)("onClickContent",n.onClickContent)("topicData",e)("topicIndex",i)("shouldLogImpression",n.shouldLogImpression)("sourceData",t.WLB(7,fi,i,n.rowIndex))("rowUuid4",n.rowUuid4)}}let Si=(()=>{class o{constructor(e,i,n,r){this._cdf=e,this._searchService=i,this._bigQueryService=n,this._routingService=r,this.shouldLogImpression=!1,this.enableBookRowScrollPosition=!1,this.onClickContent=(s,c,d)=>{this.logEvent(V.xc.TOPIC_BLOB_CLICK,s,c);let g,p,C={clickUuid4:d};s.rcmd_slot_type&&s.rcmd_slot_book_id?(g={1:H.Pm.USER_COLLECTION}[s.rcmd_slot_type],g?(p=String(s.rcmd_slot_book_id),this._routingService.goToWebApp
1Route({route:g,pathParams:p?[p]:void 0,extras:{state:C}})):this.searchMaker(s.displayName,s.modelId,Ue.I2.DYNAMIC_TOPICS,d)):this.searchMaker(s.displayName,s.modelId,Ue.I2.DYNAMIC_TOPICS,d)}}onRowUuid4Generated(e){this.rowUuid4=e,this._cdf.detectChanges()}onCardView(e,i,n){e===E.K.Visible&&this.logEvent(V.xc.TOPIC_BLOB_VIEW,i,n)}logEvent(e,i,n){this._bigQueryService.log(e,{[V.oL.TOPIC_BLOB_ID]:i.modelId,[V.oL.TOPIC_BLOB_NAME]:i.displayName,[V.oL.TOPIC_BLOB_ROW_NUM]:this.rowIndex,[V.oL.TOPIC_BLOB_ITEM_NUM]:n})}searchMaker(e,i,n,r){this._searchService.lastNodeSearch={term:e,termModelId:i},this._searchService.runSearchByUser({term:e,termModelId:e},n,void 0,r)}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(t.sBO),t.Y36(_i.oD),t.Y36(P.p),t.Y36(ee.Zn))},o.\u0275cmp=t.Xpm({type:o,selectors:[["epic-dynamic-topics-row"]],inputs:{dynamicTopics:"dynamicTopics",rowName:"rowName",rowIndex:"rowIndex",shouldLogImpression:"shouldLogImpression",enableBookRowScrollPosition:"enableBookRowScrollPosition"},decls:2,vars:6,consts:[[3,"rowName","contentList","contentRowClass","shouldLogImpression","enableBookRowScrollPosition","rowUuid4Generated"],["class","row-item-wrapper",4,"ngFor","ngForOf"],[1,"row-item-wrapper"],["componentVisibilityObserver","",3,"intersectionDebounce","onClickContent","topicData","topicIndex","shouldLogImpression","sourceData","rowUuid4","visibilityChange"]],template:function(e,i){1&e&&(t.TgZ(0,"epic-content-row",0),t.NdJ("rowUuid4Generated",function(r){return i.onRowUuid4Generated(r)}),t.YNc(1,bi,2,10,"section",1),t.qZA()),2&e&&(t.Q6J("rowName",i.rowName)("contentList",i.dynamicTopics)("contentRowClass","epic-dynamic-topics-row")("shouldLogImpression",i.shouldLogImpression)("enableBookRowScrollPosition",i.enableBookRowScrollPosition),t.xp6(1),t.Q6J("ngForOf",i.dynamicTopics))},directives:[be.R,h.sg,mi,Ge.Z],styles:[""]}),o})();var wi=a(55617),yi=a(17439),Oi=a(21327);const xi=["scrollBlock"],Pi=["exploreFilters"],Ei=["exploreTabs"];function Mi(o,l){if(1&o&&(t._UZ(0,"img",20),t._uU(1)),2&o){const e=t.oxw(),i=e.$implicit,n=e.index,r=t.oxw();t.Q6J("src",r.getTabThumbnail(i),t.LSH),t.xp6(1),t.hij(" ",r.getTabName(n,i.name)," ")}}function Fi(o,l){1&o&&(t.TgZ(0,"mat-tab"),t.YNc(1,Mi,2,2,"ng-template",19),t.qZA())}function Di(o,l){if(1&o&&t._UZ(0,"epic-reading-goal-bar",21),2&o){const e=t.oxw();t.Q6J("read_days",e.read_days)}}function Li(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"epic-reading-level-filter",22),t.NdJ("onGradeFilterSelected",function(n){return t.CHM(e),t.oxw().onGradeFilterSelected(n)})("onReadingLevelFilterSelected",function(n){return t.CHM(e),t.oxw().onReadingLevelFilterSelected(n)}),t.qZA()}if(2&o){const e=t.oxw();t.Q6J("readingLevelFilterData",e.readingLevelFilterData)("initialGrade",e.initialGradeForFilter)("initialReadingLevel",e.initialRlForFilter)}}function Ti(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"epic-explore-filters",23,24),t.NdJ("filterChanged",function(){return t.CHM(e),t.oxw().onFilterChange()}),t.qZA()}if(2&o){const e=t.oxw();t.Q6J("readingLevelFilterData",e.readingLevelFilterData)("initialGrade",e.initialGradeForFilter)("initialReadingLevel",e.initialRlForFilter)("disableReadingLevelFilter",e.browseService.isViewingVideoTab())("canClearReadingLevelFilter",!e.browseService.isViewingReadingLevelTab())("disableQuizFilter",e.browseService.isViewingQuizTab())("appliedFilters",e.browseService.curExploreAppliedFilters)}}function Ri(o,l){if(1&o&&t._UZ(0,"epic-book-row",30),2&o){const e=t.oxw(),i=e.$implicit,n=e.index,r=t.oxw();t.Q6J("rowName",i.name)("contentList",i.bookData)("shouldLogImpression",!0)("rowIndex",n)("loggingSource",r.browseRowSource)("enableBookPreview",r.enableBookPreview)("enableBookRowScrollPosition",!0)}}function Ii(o,l){if(1&o&&t._UZ(0,"new-epic-originals-row",31),2&o){const e=t.oxw(),i=e.$implicit,n=e.index;t.Q6J("rowName",i.name)("rowCategory",i.object)("contentList",i.contentTitles)("shouldLogImpression",!0)("rowIndex",n)("enableBookRowScrollPosition",!0)}}function ki(o,l){if(1&o&&t._UZ(0,"new-epic-featured-row",32),2&o){const e=t.oxw(),i=e.$implicit,n=e.index;t.Q6J("contentList",i.featuredCollections)("rowName",i.title)("shouldLogImpression",!0)("rowIndex",n)("enableBookRowScrollPosition",!0)}}function Bi(o,l){if(1&o&&t._UZ(0,"epic-dynamic-topics-row",33),2&o){const e=t.oxw(),i=e.$implicit,n=e.index;t.Q6J("dynamicTopics",i.topicsData)("rowName",i.title)("shouldLogImpression",!0)("rowIndex",n)("enableBookRowScrollPosition",!0)}}function Ai(o,l){if(1&o&&(t.TgZ(0,"div",25),t.YNc(1,Ri,1,7,"epic-book-row",26),t.YNc(2,Ii,1,6,"new-epic-originals-row",27),t.YNc(3,ki,1,5,"new-epic-featured-row",28),t.YNc(4,Bi,1,5,"epic-dynamic-topics-row",29),t.qZA()),2&o){const e=l.$implicit,i=t.oxw();
1t.xp6(1),t.Q6J("ngIf",e.object===i.BROWSE_GROUP_TYPE.USER_CATEGORY&&e.bookData.length>0),t.xp6(1),t.Q6J("ngIf",e.object===i.BROWSE_GROUP_TYPE.EPIC_ORIGINALS_CATEGORY&&e.contentTitles.length>0),t.xp6(1),t.Q6J("ngIf",e.object===i.BROWSE_GROUP_TYPE.FEATURED_COLLECTION_CATEGORY&&e.featuredCollections.length>0),t.xp6(1),t.Q6J("ngIf",e.object===i.BROWSE_GROUP_TYPE.TOPICS_CATEGORY&&e.topicsData.length>0)}}function Ni(o,l){1&o&&(t.TgZ(0,"div",34),t._UZ(1,"epic-dot-loader",35),t.qZA())}function Zi(o,l){1&o&&(t.TgZ(0,"div",36),t._uU(1," We're having trouble loading this content. Please try refreshing the page. "),t.qZA())}function Ui(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"li")(1,"a",2),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).clearFilters()}),t._uU(2,"Clear your explore filters."),t.qZA()()}}function Gi(o,l){if(1&o&&t._UZ(0,"epic-book-row",30),2&o){const e=t.oxw(),i=e.$implicit,n=e.index,r=t.oxw(2);t.Q6J("rowName",i.name)("contentList",i.bookData)("shouldLogImpression",!0)("rowIndex",n)("loggingSource",r.browseRowSource)("enableBookPreview",r.enableBookPreview)("enableBookRowScrollPosition",!0)}}function Yi(o,l){if(1&o&&(t.TgZ(0,"div",25),t.YNc(1,Gi,1,7,"epic-book-row",26),t.qZA()),2&o){const e=l.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.object===i.BROWSE_GROUP_TYPE.USER_CATEGORY&&e.bookData.length>0)}}function Ji(o,l){if(1&o&&(t.TgZ(0,"div")(1,"div",37),t._UZ(2,"img",38),t.TgZ(3,"div")(4,"h3"),t._uU(5,"Oh no! We couldn\u2019t find an exact match."),t.qZA(),t.TgZ(6,"div")(7,"ul",39),t.YNc(8,Ui,3,0,"li",16),t.qZA(),t._UZ(9,"br"),t.TgZ(10,"h3"),t._uU(11,"OR"),t.qZA(),t.TgZ(12,"ul",39)(13,"li"),t._uU(14," Try one of the books below\u2014readers like you enjoyed these! "),t.qZA()()()()(),t.TgZ(15,"div",40),t.YNc(16,Yi,2,1,"div",13),t.qZA()()),2&o){const e=t.oxw();
1t.xp6(8),t.Q6J("ngIf",(null==e.exploreFiltersComponentRef?null:e.exploreFiltersComponentRef.hasAppliedFilters)||e.browseService.isClearFiltersLinkPendingRemoval),t.xp6(8),t.Q6J("ngForOf",e.browseService.browseData.fallbackRows)("ngForTrackBy",e.trackRows)}}function Qi(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"div",41),t.NdJ("visibilityChange",function(n){return t.CHM(e),t.oxw().onLoadMoreRowsVisibilityChanged(n)}),t.qZA()}2&o&&t.Q6J("intersectionDebounce",100)("checkForVisibleOnlyOnce",!1)}function Hi(o,l){1&o&&t._UZ(0,"epic-collections-sidebar")}function $i(o,l){if(1&o&&t._UZ(0,"epic-grace-period-banner",42),2&o){const e=t.oxw();t.Q6J("gracePeriodDate",e.gracePeriodDate)("gracePeriodYMDdate",e.gracePeriodYMDdate)("userType",null==e.profileService||null==e.profileService.currentProfile?null:e.profileService.currentProfile.userType)}}const zi=function(o){return{"epic-collections-sidebar-active":o}},Ki=[{path:"",component:(()=>{class o{constructor(e,i,n,r,s,c,d,g,p,C,u,x,R,F,I,A,$,T,N,we,ne,hn,vn,Cn,_n,mn,fn,bn,Sn,wn,yn,On,xn,Pn,En){this.accountService=e,this._analyticsCommonValuesService=i,this.bigQuery=n,this._bookPreviewService=r,this._bookService=s,this.browseService=c,this.collectionsMakerService=d,this.coreDialogService=g,this.dataService=p,this.envService=C,this.experienceService=u,this.experienceSwitchingService=x,this.experienceDialogService=R,this.favoriteService=F,this.freemiumService=I,this.localStorageService=A,this.logsly=$,this.profileService=T,this.readingBuddyPopOverService=N,this._readingBuddyRecommendService=we,this._recommendService=ne,this._readContentService=hn,this._route=vn,this._router=Cn,this._errorLoggingService=_n,this._holidayEventService=mn,this._obstructionService=fn,this._limitedTimeOfferPromoService=bn,this._afterHoursDialogService=Sn,this.document=wn,this.window=yn,this._autoClearStorageService=On,this._gracePeriodService=xn,this._routingService=Pn,this._http=En,this.BROWSE_GROUP_TYPE=Z.t,this.isCollectionsSidebarOpen=!1,this.filtersChanged=new t.vpe,this.browseRowSource=[D.vh.APP,D.av.BROWSE,D.Z8.ROW],this.enableBookPreview=!1,this.read_days=0,this.is_end=1,this.appElement=null,this.subs=[],this.scopeListeners=[],this.timers=[],this.sectionNameQueryParam="",this.exploreHasInit=!1,this.showGracePeriodBanner=!1,this.gracePeriodYMDdate=""}ngOnInit(){return(0,f.mG)(this,void 0,void 0,function*(){this.browseService.exploreComponentInitComplete||this._initBrowseData(),this._gracePeriodService.userProfileGracePeriod(),this._subscribeUserProfileGracePeriod(),this._subscribeGracePeriodUpdate(),this.bigQuery.log($e.$9),yield this._getPlanInfoPopupFlag(),this.logsly.updateDeviceInfo(),this.favoriteService.getFavorites(),this.appElement=this.document.getElementById("epic-web-app"),this._route.queryParams.subscribe(e=>{this.sectionNameQueryParam=e.section,this.exploreHasInit&&this.goToSectionFromQueryParam()}),this.subs.push(this.collectionsMakerService.openedObservable.subscribe(e=>{this.isCollectionsSidebarOpen=e,setTimeout(()=>{this.window.dispatchEvent(new Event("resize"))})})),this.subs.push(this.profileService.currentProfileObservable.subscribe(()=>(0,f.mG)(this,void 0,void 0,function*(){yield this.reloadIfUserChanged(),this.isStudentOrChildAccount()&&this._fetchReadingGoal()}))),this.subs.push(this.browseService.triggerSectionChange$.subscribe(e=>{this.goToSection(e)})),this.subs.push(this.browseService.beforeLoadRowsForSection$.subscribe(()=>{var e,i;this.resetLoadMoreErrorState(),this.browseService.isViewingReadingLevelTab()?null===(e=this.exploreFiltersComponentRef)||void 0===e||e.initReadingLevelFilter(this.readingLevelFilterData):null===(i=this.exploreFiltersComponentRef)||void 0===i||i.initGradeFilter(this.getGradeFilterKey(this.browseService.selectedFilters.grade))})),this.freemiumService.animateFreemiumStatusHeader(),this.experienceService.isFFAFree()&&this._readingBuddyRecommendService.buddyCanRecommendBook().then(e=>{e>=0&&this.initBuddyRecommendedBook(e)}),this.subs.push(this._bookPreviewService.shouldShowBookPreview$.subscribe(e=>{this.enableBookPreview=e}))})}goToSectionFromQueryParam(){if(this.sectionNameQueryParam){let e=this.browseService.getSectionDataByName(this.sectionNameQueryParam);e&&this.goToSection(e)}else this.browseService.browseData.section.modelId&&this.browseService.browseData.section.modelId!==this.browseService.browseData.sectionData[this.browseService.getDefaultTabId()].section.modelId&&this.browseService.resetSection(),this.browseService.currentQueryParamsIndexBeforeDestroy&&this.accountService.isEducator()&&this.goToSection(this.browseService.browseData.sections[this.browseService.currentQueryParamsIndexBeforeDestroy])}_initBrowseData(){(()=>(0,f.mG)(this,void 0,void 0,function*(){if(this.showExperienceDialogs(),this.browseService.sectionContentHasBeenCleared||0===this.browseService.browseData.rows.length&&!this.browseService.isLoading)return this.browseService.sectionContentHasBeenCleared=!1,this.browseService.initBrowseData()}))().then(()=>{this.reloadIfUserChanged().then(()=>{this.goToSectionFromQueryParam(),this.initReadingLevelSection(Number(this.browseService.browseData.curSectionId)),this.exploreTabs&&this.exploreTabs.forEac
1h(i=>{i.realignInkBar()}),this.exploreHasInit=!0,this.browseService.exploreComponentInitComplete=!0})})}_subscribeUserProfileGracePeriod(){const e=this._gracePeriodService.gracePeriodResponse$.subscribe(i=>{this.gracePeriodDate=null==i?void 0:i.gracePeriodDate,this.gracePeriodYMDdate=null==i?void 0:i.gracePeriodYMDdate,this._gracePeriodService.gracePeriodDate=this.gracePeriodDate,this._gracePeriodService.gracePeriodYMDdate=this.gracePeriodYMDdate,i.userOnGracePeriod&&this._gracePeriodService.logBigQueryEvents(ze.ES)});this.subs.push(e)}_subscribeGracePeriodUpdate(){const e=this._autoClearStorageService.checkForUserGracePeriodUpdate$.subscribe(i=>{i&&this._gracePeriodService.userProfileGracePeriod()});this.subs.push(e)}ngOnDestroy(){this.subs.forEach(e=>{e.unsubscribe()}),this.readingGoalSubscription&&(this.readingGoalSubscription.unsubscribe(),this.readingGoalSubscription=void 0),this.scopeListeners.forEach(e=>{e&&e()}),this.timers.forEach(e=>clearTimeout(e)),this.hidePopOvers(),this.accountService.isEducator()&&(0,B.H)(100).pipe((0,Qe.q)(1)).subscribe(()=>{this._routingService.getCurSubroute()!==H.Pm.READ&&(this.browseService.resetSection(),this.browseService.exploreComponentInitComplete=!1)})}handleTwelveDaysEvent(){return(0,f.mG)(this,void 0,void 0,function*(){const e=this.profileService.currentProfile;(yield this._holidayEventService.isTwelveDaysEventActive())&&((yield this._holidayEventService.shouldSeeTwelveDaysKudos(e.id))?yield this.checkTwelveDaysKudos():(yield this._holidayEventService.shouldSeeTwelveDaysRecommend(e.id))&&(this._limitedTimeOfferPromoService.shouldSeeLimitedTimeOfferPromo&&this._limitedTimeOfferPromoService.removeLimitedTimeOfferPromoModal(),this.recommendTwelveDaysBook(e.id,e.age)))})}checkTwelveDaysKudos(){return(0,f.mG)(this,void 0,void 0,function*(){const e=this.profileService.currentProfile,i=yield this._holidayEventService.getTwelveDaysMessageForDay(e.id);if(!i)return;yield this._holidayEventService.equipHolidayBuddyItem();const n=this.localStorageService;n.set(L.rg,n.DIALOG_NAMES.HOLIDAY_EVENT_12_DAYS),this._obstructionService.addObstruction(ue.m.BUDDY_OVERLAY);const r=i.openMessage();r.afterOpened().subscribe(()=>{this._holidayEventService.setUserSeenTwelveDaysKudos(e.id)}),r.afterClosed().subscribe(()=>{n.remove(L.rg),this._obstructionService.removeObstruction(ue.m.BUDDY_OVERLAY),this.recommendTwelveDaysBook(e.id,e.age)})})}recommendTwelveDaysBook(e,i){return(0,f.mG)(this,void 0,void 0,function*(){const n=this._holidayEventService.getEventBookForUser(e,i);if(!n)return;yield this._holidayEventService.equipHolidayBuddyItem(),this._holidayEventService.setUserSeenTwelveDaysBuddyRecommend(e,n);let r=!1;const s={active:0,dialogs:[["For the 12 Days of Reading, here\u2019s the perfect pick for you."]],defaultAction:Y.kD.CLOSE,bubbleImage:this._bookService.getThumbPath(n),hasBubbleClose:!0,clickHandler:()=>{this._holidayEventService.restorePreHolidayBuddy().then(()=>{r=!0,this.readingBuddyPopOverService.killEggbertOnClose(),this._readContentService.openBook({book:{id:n,active:!0},source:"buddy_popup | 12 days of reading",snapshotSource:[D.vh.APP,D.av.BUDDY,D.Z8.RECOMMENDED]})})}};this.readingBuddyPopOverService.showCustomBuddyPopover({states:{[Q.uj.GREY]:Object.assign({},s),[Q.uj.UNHATCHED]:Object.assign({},s),[Q.uj.HATCHED]:Object.assign({},s)},eventData:{name:{[Y.Mo.CLICK]:re.M,[Y.Mo.VIEW]:re.UL},getMessage:()=>Y.Hg.READ_POPULAR_ONE}},()=>{r||this._holidayEventService.restorePreHolidayBuddy().then(()=>{this.readingBuddyPopOverService.killEggbertOnClose()})}),this._holidayEventService.unequipHolidayBuddyItem()})}initBuddyRecommendedBook(e){var i;return(0,f.mG)(this,void 0,void 0,function*(){null===(i=this.readingBuddyPopOverService.popoverCloseListener$)||void 0===i||i.unsubscribe();const c={buddyTimer:void 0,init:void 0,unsubscribe(){var u;null===(u=this.buddyTimer)||void 0===u||u.unsubscribe()}};this.subs.push(c),yield new Promise(u=>{const x=(0,O.a)([this.readingBuddyPopOverService.buddyPopoverControl$,this.readingBuddyPopOverService.eggbertDomVisibility$]).subscribe(([F,I]
1)=>{var A;F!==ye.Xu.HIDDEN&&I?c.unsubscribe():null===(A=c.init)||void 0===A||A.call(c)});this.subs.push(x);let R=2e4;c.init=function(F){R=F||R,this.unsubscribe(),this.buddyTimer=(0,B.H)(R).subscribe(()=>{null==x||x.unsubscribe(),u(!0)})},this.envService.prodMode||(window.buddyRecommendTimer=c.init.bind(c)),c.init()});const d=(0,v.R)(document,"click"),g=(0,v.R)(this.appElement,"scroll").pipe((0,He.P)(u=>(0,_.F)(500))),C=(0,S.T)(d.pipe((0,xe.h)("click")),g.pipe((0,xe.h)("scroll"))).subscribe(()=>{var u;null===(u=c.init)||void 0===u||u.call(c)});this.subs.push(C),c.init=()=>{c.unsubscribe(),c.buddyTimer=(0,B.H)(3e3).subscribe(()=>{C.unsubscribe(),this.experienceService.isFFAFree()||this.presentBuddyRecommendedBook(e)})},c.init()})}presentBuddyRecommendedBook(e){return(0,f.mG)(this,void 0,void 0,function*(){const{currentProfile:i}=this.profileService;let n=yield this._recommendService.getTopRecommendedOnboardingBooks(this._analyticsCommonValuesService.getDeviceId(),i.age,i.id,20);if(!n||0===n.length)return;const r=this.localStorageService.get(L.HJ),s={};(()=>{if(!r)return;let p;try{p=JSON.parse(r)}catch(C){const u=C;u.message=`[Failed to parse '${r}'] ${u.message}`,this._errorLoggingService.log(u),p=[],this.localStorageService.remove(L.HJ)}0!==p.length&&p.reduce((C,u)=>(C[u]=!0,C),s)})(),n=n.slice(e,n.length);const c=n.find(p=>!s[p.id]);if(!c)return void console.warn("No book found for buddy to recommend",`recommendIndex: ${e}, `);let d=!1;const g={active:0,dialogs:[["Not sure what to read?","Try this popular one."]],defaultAction:Y.kD.CLOSE,bubbleImage:this._bookService.getThumbPath(c.id),hasBubbleClose:!0,clickHandler:()=>{d=!0,this.readingBuddyPopOverService.killEggbertOnClose(),this._readContentService.openBook({book:c,snapshotSource:[D.vh.APP,D.av.BUDDY,D.Z8.RECOMMENDED]})}};this.readingBuddyPopOverService.showCustomBuddyPopover({states:{[Q.uj.GREY]:Object.assign({},g),[Q.uj.UNHATCHED]:Object.assign({},g),[Q.uj.HATCHED]:Object.assign({},g)},eventData:{name:{[Y.Mo.CLICK]:re.M,[Y.Mo.VIEW]:re.UL},getMessage:()=>Y.Hg.READ_POPULAR_ONE}},()=>{d||this.readingBuddyPopOverService.killEggbertOnClose()}),this._readingBuddyRecommendService.incrementBuddyRecommendedCount(),this._readingBuddyRecommendService.incrementBuddyRecommendedSessionStorageCount()})}getTabThumbnail(e){return e.thumbnail&&this.envService.cdnBase+e.thumbnail+".svg"||this.envService.cdnBase+e.icon+".png"}getTabName(e,i){return 0===e&&this.profileService.isTeacher()?"Recommended":i}onLoadMoreRowsVisibilityChanged(e){if(e===E.K.Visible){if(this.hidePopOvers("scroll"),this.errorLoadingRows)return;this.browseService.loadMoreRowsForSection().then(i=>{i||(this.errorLoadingRows=!0)}).catch(i=>{this.errorLoadingRows=!0})}}resetLoadMoreErrorState(){this.errorLoadingRows=!1}onTabChange(e){const i=this.browseService.browseData.sections[e.index];this.browseService.currentQueryParamsIndexBeforeDestroy=e.index,this.goToSection(i)}getCurrentTabIndex(){return this.browseService.curTabIndex}trackRows(e,i){return i?i.modelId:null}isShowingReadingLevelFilters(){return(this.readingLevelFilterData||this.experienceService.isTeacher())&&!this.isShowingExploreFilters()}isShowingExploreFilters(){return this.browseService.isShowingExploreFilters()}isStudentOrChildAccount(){return this.experienceService.isStudent()||this.experienceService.isChildConsumer()}shouldShowReadingGoalBar(){return this.isStudentOrChildAccount()&&0===this.is_end}_getBaseUrl(){return this.envService.prodMode?"https://go-api.getepic.com/api":this.envService.stagingMode?"https://go-api.getepic.dev/api":"https://go-api-qa.getepic.dev/api"}_fetchReadingGoal(){const e=this.profileService.currentProfile.id;if(!e)return this.readingGoalSubscription&&(this.readingGoalSubscription.unsubscribe(),this.readingGoalSubscription=void 0),this.readingGoalRequestId=void 0,this.is_end=1,void(this.read_days=0);this.readingGoalSubscription&&(this.readingGoalSubscription.unsubscribe(),this.readingGoalSubscription=void 0);const i=Date.now()+Math.random();this.readingGoalRequestId=i;const n=this.accountService.getAccessToken(),r={"Content-Type":"application/json"};n&&(r.Authorization=`Bearer ${n}`);const s=new y.WM(r),c=`${this._getBaseUrl()}/reading_goal`,d=e;
1this.readingGoalSubscription=this._http.post(c,{user_id:e,trace_id:`${Date.now()}-${Math.random().toString(16).slice(2,10)}`},{headers:s,withCredentials:!0}).subscribe({next:g=>{var p;this.readingGoalRequestId===i&&this.profileService.currentProfile.id===d&&(null==g?void 0:g.data)&&(this.read_days=g.data.read_days,this.is_end=null!==(p=g.data.is_end)&&void 0!==p?p:1)},error:g=>{this.readingGoalRequestId===i&&(console.warn("Failed to fetch reading goal:",g),this.is_end=1,this.read_days=0)}})}onGradeFilterSelected(e){e!==this.browseService.selectedFilters.grade&&(this.browseService.selectedFilters.grade=e,this.browseService.setAgePreferenceFromGrade(e).then(()=>{this.browseService.clearSectionContent(),this.resetLoadMoreErrorState(),this.browseService.loadRowsForSection().then(()=>{this.bigQuery.log("explore_by_grade_change",{tabs:this.browseService.browseData.section.name,grade:e})})}))}onReadingLevelFilterSelected(e){let i=this.browseService.selectedFilters.readingLevel;(!i||i&&(i[0]!==e.readingLevelSystemKey||i[1]!==e.selectedOptionId))&&(this.browseService.selectedFilters.readingLevel=[e.readingLevelSystemKey,e.selectedOptionId],this.browseService.clearSectionContent(),this.resetLoadMoreErrorState(),this.browseService.loadRowsForSection().then(()=>{var n;this.bigQuery.log("explore_by_rl_change",{tab:this.browseService.browseData.section.name,reading_level_system:null===(n=this.readingLevelFilterData)||void 0===n?void 0:n.name,selected_range:e.selectedOptionName})}))}hidePopOvers(e=""){this.readingBuddyPopOverService.closeAllPopOvers(e)}goToSection(e){var i,n;if(!e)return;this.scrollViewToTop();let r=null===(i=e.params)||void 0===i?void 0:i.sectionId;if(this.browseService.browseData.curSectionId!==r&&!this.browseService.isLoading&&this.browseService.browseData.curSectionId!==r){this.logCategoryChange(e.name),r===this.browseService.quizSectionId&&(null===(n=this.exploreFiltersComponentRef)||void 0===n||n.applyQuizFilter()),this.initReadingLevelSection(r),this.browseService.setCurrentSection(r);let s=this.browseService.getCurSection();(null==s?void 0:s.name)&&this._router.navigate([],{relativeTo:this._route,queryParams:{section:this.browseService.getQueryParamSectionString(s.name)}})}}sendLogForReadingLevelSection(e){var i,n;if(e==this.browseService.readingLevelSectionId){let r={},s=this.browseService.selectedFilters.readingLevel;s&&(r.reading_level_system=s[0],r.selected_range=null===(n=null===(i=this.readingLevelFilterData)||void 0===i?void 0:i.values.find(d=>s&&d.id===s[1]))||void 0===n?void 0:n.name),this.bigQuery.log("tab_reading_level_view",r);let c=()=>{this.dataService.get("WebReadingLevels","getReadingLevelPreferences",{args:JSON.stringify({accountId:this.accountService.id})}).then(d=>{var g=this.localStorageService.get(`rls-prompt-${this.accountService.id}`)?this.localStorageService.get(`rls-prompt-${this.accountService.id}`):{shouldBePrompted:!0};(!d.result||!d.result.type||"undecided"===d.result.type&&g.shouldBePrompted)&&(this.coreDialogService.openDialog(ge),this.localStorageService.set(`rls-prompt-${this.accountService.id}`,{shouldBePrompted:!1}),this.bigQuery.log("explore_select_rl_view",{}))})};this.browseService.isShowingExploreFilters()||c()}}scrollViewToTop(){var e,i;(null===(e=this.scrollBlock)||void 0===e?void 0:e.nativeElement.getBoundingClientRect().top)<0&&(null===(i=this.scrollBlock)||void 0===i||i.nativeElement.scrollIntoView({behavior:"instant",block:"start",inline:"nearest"}))}logCategoryChange(e){this.bigQuery.log(Oe.JW,{category:e||this.browseService.browseData.section.name})}reloadIfUserChanged(){return(0,f.mG)(this,void 0,void 0,function*(){if(this.browseService.browseData.hasOwnProperty("currentUserId")&&this.profileService.currentProfile.id!==this.browseService.browseData.currentUserId)return this.profileService.currentProfile.isParent||(yield this._getPlanInfoPopupFlag()),this.browseService.initBrowseData(null,!1,!1,!0)})}showExperienceDialogs(){return(0,f.mG)(this,void 0,void 0,function*(){let e=this.localStorageService.get(L.UE);e?this.experienceSwitchingService.openExperienceSwitchDialog(e):yield this.experienceDialogService.showCurDialog()})}_getPlanInfoPopupFlag(){var e;return(0,f.mG)(this,void 0,void 0,function*(){const i=yield this.dataService.get("WebAccount","getAccountFlag");(null===(e=null==i?void 0:i.result)||void 0===e?void 0:e.show_price_hike_banner)&&(yield this._openGetNewsPopup())})}setReadingLevelFilterData(e){var i,n;if(e===this.browseService.readingLevelSectionId){let r=this.browseService.getReadingLevelSectionData();if(r)return this.readingLevelFilterData=r.readingLevels,void(null===(i=this.exploreFiltersComponentRef)||void 0===i||i.initReadingLevelFilter(this.readingLevelFilterData))}else null===(n=this.exploreFiltersComponentRef)||void 0===n||n.initGradeFilter(this.getGradeFilterKey(this.browseService.selectedFilters.grade));this.readingLevelFilterData=void 0}getGradeFilterKey(e){if(null!=e)return`${e+2}`}initReadingLevelSection(e){this.initialGradeForFilter=this.browseService.selectedFilters.grade,this.initialRlForFilter=this.browseService.selectedFilters.readingLevel,this.setReadingLevelFilterData(e),this.sendLogForReadingLevelSection(e)}_openGetNewsPopup(){return(0,f.mG)(this,void 0,void 0,function*(){this.bigQuery.log(K.Ty);const e={dialogTitle:"Ask a Grownup for Help",bodyText:"We have some important news about your Epic subscription.",buttonText:"Get the News",disableClose:!1,onCTAClicked:()=>{this.bigQuery.log(K.JC),this._openPlanInfoPopup()},onLoginClicked:()=>{},onCloseClicked:i=>{this._closeDialog(i||"cross")}};this._dialogRef=yield this._afterHoursDialogService.openGetNewsPopup(e,!0),this._dialogRef.backdropClick().subscribe(()=>{this.bigQuery.log(K.iV)})})}_openPlanInfoPopup(){var e;null===(e=this._dialogRef)||void 0===e||e.close(),this.bigQuery.log(K.gn),this._dialogRef=this.coreDialogService.openDialog(z.c,{disableClose:!0,panelClass:"epic-mat-dialog--freemium-simple-dialog",data:{dialogConfig:{disableClose:!1,onCloseClicked:()=>{this._closeDialog("news_cross")}}}})}_closeDialog(e){var i;null===(i=this._dialogRef)||void 0===i||i.close(),this._logEventsforCloseEvent(e)}_logEventsforCloseEvent(e){switch(e){case"cross":this.bigQuery.log(K.lv);break;case"news_cross":this.bigQuery.log(K.JJ)}}onFilterChange(){this.browseService.isClearFiltersLinkPendingRemoval=!1,this.filtersChanged.emit();const e=this.browseService.curExploreAppliedFilters.hasAppliedFilters()||!1;this.browseService.clearSectionContent(!0),this.resetLoadMoreErrorState(),this.browseService.loadRowsForSection().then(()=>{this.bigQuery.log("explore_by_filter_change",{tab:this.browseService.browseData.section.name,show_fallback_results:0===this.browseService.browseData.rows.length&&this.browseService.browseData.fallbackRows.length>0?1:0,filters_used:e?1:0,filters_detail:JSON.stringify(this.browseService.curExploreAppliedFilters.getAppliedFiltersDetail())})})}clearFilters(){var e;this.browseService.isClearFiltersLinkPendingRemoval=!0,null===(e=this.exploreFiltersComponentRef)||void 0===e||e.clearFilters()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(w.B),t.Y36(nt.EF),t.Y36(P.p),t.Y36(lt.y),t.Y36(ot.Z),t.Y36(M.Iz),t.Y36(Ee.f),t.Y36(Pe.CoreDialogService),t.Y36(rt.D),t.Y36(pe.DJ),t.Y36(he.DT),t.Y36(bt),t.Y36(De.U),t.Y36(St.e),t.Y36(_e.h),t.Y36(X.n),t.Y36(st.z),t.Y36(ve.ProfileService),t.Y36(ye.kB),t.Y36(wt),t.Y36(yt.JZ),t.Y36(Ot.jn),t.Y36(m.gz),t.Y36(m.F0),t.Y36(at.I),t.Y36(Mt),t.Y36(ue.x),t.Y36(Ft.X),t.Y36(Dt.h),t.Y36(h.K0),t.Y36(U.m9),t.Y36(Lt.N),t.Y36(Tt.n),t.Y36(ee.Zn),t.Y36(y.eN))},o.\u0275cmp=t.Xpm({type:o,selectors:[["epic-explore"]],viewQuery:function(e,i){if(1&e&&(t.Gf(xi,5),t.Gf(Pi,5),t.Gf(Ei,5)),2&e){let n;t.iGM(n=t.CRH())&&(i.scrollBlock=n.first),t.iGM(n=t.CRH())&&(i.exploreFiltersComponentRef=n.first),t.iGM(n=t.CRH())&&(i.exploreTabs=n)}},outputs:{filtersChanged:"filtersChanged"},decls:20,vars:19,consts:[[1,"explore-container",3,"ngClass"],[1,"explore-carousel"],[3,"click"],[1,"explore"],[1,"epic-mat-tabs","epic-mat-tabs--category-tabs","explore-tabs",3,"selectedIndex","disableRipple","animationDuration","selectedTabChange"],["exploreTabs",""],[4,"ngFor","ngForOf"],[1,"scroll-offset-block"],["scrollBlock",""],[3,"read_days",4,"ngIf"],["class","explore-filters",3,"readingLevelFilterData","initialGrade","initialReadingLevel","onGradeFilterSelected","onReadingLevelFilterSelected",4,"ngIf"],["class","explore-filters",3,"readingLevelFilterData","initialGrade","initialReadingLevel","disableReadingLevelFilter","canClearReadingLevelFilter","disableQuizFilter","appliedFilters","filterChanged",4,"ngIf"],[1,"explore-content-rows-container"],["class","explore-row",4,"ngFor","ngForOf","ngForTrackBy"],["class","paddingTop-xl paddingBottom-xl",4,"ngIf"],["class","color-grey textAlign-center",4,"ngIf"],[4,"ngIf"],["componentVisibilityObserver","","class","load-more-rows-trigger",3,"intersectionDebounce","checkForVisibleOnlyOnce","visibilityChange",4,"ngIf"],[3,"gracePeriodDate","gracePeriodYMDdate","userType",4,"ngIf"],["mat-tab-label",""],[1,"tab-icon",3,"src"],[3,"read_days"],[1,"explore-filters",3,"readingLevelFilterData","initialGrade","initialReadingLevel","onGradeFilterSelected","onReadingLevelFilterSelected"],[1,"explore-filters",3,"readingLevelFilterData","initialGrade","initialReadingLevel","disableReadingLevelFilter","canClearReadingLevelFilter","disableQuizFilter","appliedFilters","filterChanged"],["exploreFilters",""],[1,"explore-row"],[3,"rowName","contentList","shouldLogImpression","rowIndex","loggingSource","enableBookPreview","enableBookRowScrollPosition",4,"ngIf"],[3,"rowName","rowCategory","contentList","shouldLogImpression","rowIndex","enableBookRowScrollPosition",4,"ngIf"],[3,"contentList","rowName","shouldLogImpression","rowIndex","enableBookRowScrollPosition",4,"ngIf"],[3,"dynamicTopics","rowName","shouldLogImpression","rowIndex","enableBookRowScrollPosition",4,"ngIf"],[3,"rowName","contentList","shouldLogImpression","rowIndex","loggingSource","enableBookPreview","enableBookRowScrollPosition"],[3,"rowName","rowCategory","contentList","shouldLogImpression","rowIndex","enableBookRowScrollPosition"],[3,"contentList","rowName","shouldLogImpression","rowIndex","enableBookRowScrollPosition"],[3,"dynamicTopics","rowName","shouldLogImpression","rowIndex","enableBookRowScrollPosition"],[1,"paddingTop-xl","paddingBottom-xl"],["color","#0d9ce7"],[1,"color-grey","textAlign-center"],[1,"no-results-main"],["src","/assets/app/search/cat-ninja-stuck.png","srcset","/assets/app/search/[email protected] 2x","alt","No search results",1,"no-results-monster"],[1,""],[1,"explore-content-rows-container-fallback"],["componentVisibilityObserver","",1,"load-more-rows-trigger",3,"intersectionDebounce","checkForVisibleOnlyOnce","visibilityChange"],[3,"gracePeriodDate","gracePeriodYMDdate","userType"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"section",1)(2,"epic-featured-carousel",2),t.NdJ("click",function(){return i.hidePopOvers("carousel-click")}),t.qZA()(),t.TgZ(3,"section",3)(4,"mat-tab-group",4,5),t.NdJ("selectedTabChange",function(r){return i.onTabChange(r)}),t.YNc(6,Fi,2,0,"mat-tab",6),t.qZA(),t._UZ(7,"div",7,8),t.YNc(9,Di,1,1,"epic-reading-goal-bar",9),t.YNc(10,Li,1,3,"epic-reading-level-filter",10),t.YNc(11,Ti,2,7,"epic-explore-filters",11),t.TgZ(12,"div",12),t.YNc(13,Ai,5,4,"div",13),t.qZA(),t.YNc(14,Ni,2,0,"div",14),t.YNc(15,Zi,2,0,"div",15),t.YNc(16,Ji,17,3,"div",16),t.YNc(17,Qi,1,2,"div",17),t.qZA()(),t.YNc(18,Hi,1,0,"epic-collections-sidebar",16),t.YNc(19,$i,1,3,"epic-grace-period-banner",18)),2&e&&(t.Q6J("ngClass",t.VKq(17,zi,i.isCollectionsSidebarOpen)),t.xp6(4),t.Q6J("@.disabled",!0)("selectedIndex",i.getCurrentTabIndex())("disableRipple",!0)("animationDuration",500),t.xp6(2),t.Q6J("ngForOf",i.browseService.browseData.sections),t.xp6(3),t.Q6J("ngIf",i.shouldShowReadingGoalBar()),t.xp6(1),t.Q6J("ngIf",i.isShowingReadingLevelFilters()),t.xp6(1),t.Q6J("ngIf",i.isShowingExploreFilters()),t.xp6(2),t.Q6J("ngForOf",i.browseService.browseData.rows)("ngForTrackBy",i.trackRows),t.xp6(1),t.Q6J("ngIf",i.browseService.isLoading||!i.browseService.browseData),t.xp6(1),t.Q6J("ngIf",i.browseService.browseData&&!i.browseService.isLoading&&(i.browseService.showError||i.browseService.showFallback&&!i.browseService.isShowingExploreFilters())),t.xp6(1),t.Q6J("ngIf",i.browseService.browseData&&!i.browseService.isLoading&&!i.browseService.showError&&i.browseService.showFallback&&i.browseService.isShowingExploreFilters()),t.xp6(1),t.Q6J("ngIf",!i.browseService.isLoading),t.xp6(1),t.Q6J("ngIf",i.isCollectionsSidebarOpen),t.xp6(1),t.Q6J("ngIf",i.gracePeriodDate))},directives:[h.mk,Yt,ce.SP,h.sg,ce.uX,ce.uD,h.O5,Wt,qt,si,ai.m,gi,Ci,Si,wi.c,Ge.Z,yi.W,Oi.e],styles:[".explore-container[_ngcontent-%COMP%]{position:relative;background-color:#f9fafd;min-height:100%}section.explore[_ngcontent-%COMP%]{position:relative;min-height:100%}section.explore[_ngcontent-%COMP%]   .explore-tabs[_ngcontent-%COMP%]{position:sticky;top:0;z-index:11;background:#ffffff}section.explore[_ngcontent-%COMP%]   .scroll-offset-block[_ngcontent-%COMP%]{position:absolute;height:64px;top:0}section.explore[_ngcontent-%COMP%]   div.load-more-rows-trigger[_ngcontent-%COMP%]{position:absolute;height:80px;height:20px;width:100%;bottom:0}section.explore[_ngcontent-%COMP%]   .explore-filters[_ngcontent-%COMP%]{padding-left:32px;padding-top:16px}section.explore[_ngcontent-%COMP%]   epic-reading-goal-bar[_ngcontent-%COMP%] ~ .explore-filters[_ngcontent-%COMP%]{padding-top:0}section.explore[_ngcontent-%COMP%]   .explore-content-rows-container[_ngcontent-%COMP%]{padding-bottom:24px}section.explore[_ngcontent-%COMP%]   .explore-content-rows-container[_ngcontent-%COMP%]   .explore-row[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]    > {display:block;min-height:220px}section.explore[_ngcontent-%COMP%]   .explore-content-rows-container[_ngcontent-%COMP%]   .explore-row[_ngcontent-%COMP%]:first-child{margin-top:40px}section.explore[_ngcontent-%COMP%]   .explore-content-rows-container[_ngcontent-%COMP%]   .explore-row[_ngcontent-%COMP%]:not(:last-child){margin-bottom:24px}section.explore[_ngcontent-%COMP%]   epic-reading-goal-bar[_ngcontent-%COMP%] ~ .explore-content-rows-container[_ngcontent-%COMP%]   .explore-row[_ngcontent-%COMP%]:first-child{margin-top:16px}section.explore[_ngcontent-%COMP%]   .no-results-main[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:center;margin:48px 0}section.explore[_ngcontent-%COMP%]   .no-results-main[_ngcontent-%COMP%]   img.no-results-monster[_ngcontent-%COMP%]{max-width:411px;margin-right:50px;width:100%}section.explore[_ngcontent-%COMP%]   .no-results-main[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:0 0 20px}section.explore[_ngcontent-%COMP%]   .no-results-main[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin:0;padding-inline-start:24px}section.explore[_ngcontent-%COMP%]   .no-results-main[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{list-style-image:url(/assets/app/search/search-star.svg)}"]}),o})()}];let Wi=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)}
1,o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[m.Bz.forChild(Ki)],m.Bz]}),o})();var ji=a(50056),Vi=a(1933),Se=a(21457);let Xi=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[h.ez,Vi.s,Se.n]]}),o})(),qi=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[h.ez]]}),o})(),en=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[h.ez,qi,Se.n]]}),o})();var Ye=a(72747),tn=a(36470),Je=a(79366);let nn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[h.ez,Je.n]]}),o})(),on=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[h.ez]]}),o})();var rn=a(93644);let sn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[h.ez,fe.Sv,rn.Z]]}),o})();var an=a(46017),ln=a(98541);let cn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[h.ez,ln.N]]}),o})(),dn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[h.ez,cn,Se.n,Ye.U]]}),o})();var gn=a(81736);let un=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[h.ez,Je.n]]}),o})(),pn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[Wi,ji.P,h.ez,ce.Nh,Ye.U,tn.a,Xi,en,nn,un,on,sn,an.U,dn,gn.I]]}),o})()},35079:(de,G,a)=>{a.d(G,{Sv:()=>B,Xg:()=>U,vE:()=>t});var h=a(36362),m=a(3184),f=a(90587);const y=["*"];let t=(()=>{class O{constructor(_,S,E){this.el=_,this.zone=S,this.platformId=E,this.afterChange=new m.vpe,this.beforeChange=new m.vpe,this.breakpoint=new m.vpe,this.destroy=new m.vpe,this.init=new m.vpe,this.currentIndex=0,this.slides=[],this.initialized=!1,this._removedSlides=[],this._addedSlides=[]}ngOnDestroy(){this.unslick()}ngAfterViewInit(){this.ngAfterViewChecked()}ngAfterViewChecked(){if(!(0,h.PM)(this.platformId)&&(this._addedSlides.length>0||this._removedSlides.length>0)){const _=this.slides.length-this._removedSlides.length+this._addedSlides.length;this.initialized?0===_?this.unslick():(this._addedSlides.forEach(S=>{this.slides.push(S),this.zone.runOutsideAngular(()=>{this.$instance.slick("slickAdd",S.el.nativeElement)})}),this._addedSlides=[],this._removedSlides.forEach(S=>{const E=this.slides.indexOf(S);this.slides=this.slides.filter(Z=>Z!==S),this.zone.runOutsideAngular(()=>{this.$instance.slick("slickRemove",E)})}),this._removedSlides=[]):_>0&&this.initSlick()}}initSlick(){this.slides=this._addedSlides,this._addedSlides=[],this._removedSlides=[],this.zone.runOutsideAngular(()=>{this.$instance=jQuery(this.el.nativeElement),this.$instance.on("init",(_,S)=>{this.zone.run(()=>{this.init.emit({event:_,slick:S})})}),this.$instance.slick(this.config),this.zone.run(()=>{var _;this.initialized=!0,this.currentIndex=(null===(_=this.config)||void 0===_?void 0:_.initialSlide)||0}),this.$instance.on("afterChange",(_,S,E)=>{this.zone.run(()=>{this.afterChange.emit({event:_,slick:S,currentSlide:E,first:0===E,last:S.$slides.length===E+S.options.slidesToScroll}),this.currentIndex=E})}),this.$instance.on("beforeChange",(_,S,E,Z)=>{this.zone.run(()=>{this.beforeChange.emit({event:_,slick:S,currentSlide:E,nextSlide:Z}),this.currentIndex=Z})}),this.$instance.on("breakpoint",(_,S,E)=>{this.zone.run(()=>{this.breakpoint.emit({event:_,slick:S,breakpoint:E})})}),this.$instance.on("destroy",(_,S)=>{this.zone.run(()=>{this.destroy.emit({event:_,slick:S}),this.initialized=!1})})})}addSlide(_){this._addedSlides.push(_)}removeSlide(_){this._removedSlides.push(_)}slickGoTo(_){this.zone.runOutsideAngular(()=>{this.$instance.slick("slickGoTo",_)})}slickNext(){this.zone.runOutsideAngular(()=>{this.$instance.slick("slickNext")})}slickPrev(){this.zone.runOutsideAngular(()=>{this.$instance.slick("slickPrev")})}
1slickPause(){this.zone.runOutsideAngular(()=>{this.$instance.slick("slickPause")})}slickPlay(){this.zone.runOutsideAngular(()=>{this.$instance.slick("slickPlay")})}unslick(){this.$instance&&(this.zone.runOutsideAngular(()=>{this.$instance.slick("unslick")}),this.$instance=void 0),this.initialized=!1}ngOnChanges(_){if(this.initialized){const S=_.config;if(S.previousValue!==S.currentValue&&void 0!==S.currentValue){const E=S.currentValue.refresh,Z=Object.assign({},S.currentValue);delete Z.refresh,this.zone.runOutsideAngular(()=>{this.$instance.slick("slickSetOption",Z,E)})}}}}return O.\u0275fac=function(_){return new(_||O)(m.Y36(m.SBq),m.Y36(m.R0b),m.Y36(m.Lbi))},O.\u0275cmp=m.Xpm({type:O,selectors:[["ngx-slick-carousel"]],inputs:{config:"config"},outputs:{afterChange:"afterChange",beforeChange:"beforeChange",breakpoint:"breakpoint",destroy:"destroy",init:"init"},exportAs:["slick-carousel"],features:[m._Bn([{provide:f.JU,useExisting:(0,m.Gpc)(()=>O),multi:!0}]),m.TTD],ngContentSelectors:y,decls:1,vars:0,template:function(_,S){1&_&&(m.F$t(),m.Hsn(0))},encapsulation:2}),O})(),U=(()=>{class O{constructor(_,S,E){this.el=_,this.platformId=S,this.carousel=E}ngOnInit(){(0,h.NF)(this.platformId)&&this.carousel.addSlide(this)}ngOnDestroy(){(0,h.NF)(this.platformId)&&this.carousel.removeSlide(this)}}return O.\u0275fac=function(_){return new(_||O)(m.Y36(m.SBq),m.Y36(m.Lbi),m.Y36(t,1))},O.\u0275dir=m.lG2({type:O,selectors:[["","ngxSlickItem",""]]}),O})(),B=(()=>{class O{}return O.\u0275fac=function(_){return new(_||O)},O.\u0275mod=m.oAB({type:O}),O.\u0275inj=m.cJS({imports:[[h.ez]]}),O})()}}]);

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.