PageSourceSearch

https://app.thefast800.com/5137.f4e429cb04d33a98.js

js thefast800.com collected 2026-10-02 11:13:00 UTC 102,735 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5137],{27644:(F,T,s)=>{s.d(T,{l:()=>A});var v=s(97582),a=s(5e3),y=s(99231),u=s(2693),b=s(90603),M=s(69808),C=s(4794),w=s(43839),e=s(22535),f=s(21355),_=s(2427);function l(P,E){if(1&P){const d=a.EpF();a.TgZ(0,"app-mark-as-done-button",10),a.NdJ("changeDone$",function(W){return a.CHM(d),a.oxw().markAsDoneTodayFeaturedDocument(W)}),a.qZA()}if(2&P){const d=a.oxw();a.Q6J("isDone",d.isComplete)}}function p(P,E){if(1&P&&a._UZ(0,"img",23),2&P){const d=a.oxw(2);a.Q6J("src",null==d.exploreDocument?null:d.exploreDocument.image_url,a.LSH)}}function h(P,E){if(1&P&&a._UZ(0,"app-video-player",24),2&P){const d=a.oxw(2);a.Q6J("videoUrl",null==d.exploreDocument?null:d.exploreDocument.video_url)}}function O(P,E){if(1&P){const d=a.EpF();a.TgZ(0,"article",11)(1,"div",12)(2,"div",13)(3,"h1"),a._uU(4),a.TgZ(5,"app-favourite",14),a.NdJ("favouriteChanged",function(W){return a.CHM(d),a.oxw().favouriteChange(W)}),a.qZA()(),a.TgZ(6,"div",15)(7,"span",16)(8,"span",17),a._uU(9),a.qZA()(),a.TgZ(10,"span",16)(11,"span",17),a._uU(12),a.ALo(13,"appArticleDate"),a.qZA()()()(),a.TgZ(14,"div",18),a.YNc(15,p,1,1,"img",19),a.YNc(16,h,1,1,"app-video-player",20),a.TgZ(17,"div",21),a._UZ(18,"div",22),a.qZA()()()()}if(2&P){const d=a.oxw();a.xp6(4),a.hij(" ",null==d.exploreDocument?null:d.exploreDocument.title," "),a.xp6(1),a.Q6J("favourite",null==d.exploreDocument?null:d.exploreDocument.is_favourite)("id",null==d.exploreDocument?null:d.exploreDocument.id)("favouriteId",null==d.exploreDocument||null==d.exploreDocument.favourite?null:d.exploreDocument.favourite.id),a.xp6(4),a.Oqu(null==d.exploreDocument?null:d.exploreDocument.author),a.xp6(3),a.Oqu(a.lcZ(13,9,null==d.exploreDocument?null:d.exploreDocument.created_at)),a.xp6(3),a.Q6J("ngIf",!(null!=d.exploreDocument&&d.exploreDocument.video_url)),a.xp6(1),a.Q6J("ngIf",null==d.exploreDocument?null:d.exploreDocument.video_url),a.xp6(2),a.Q6J("innerHTML",null==d.exploreDocument?null:d.exploreDocument.content,a.oJD)}}let A=(()=>{class P{constructor(d,Z){this.documentsSvc=d,this.weeklyGoalsSvc=Z,this.closeEventEmitter=new a.vpe,this.isDoneChange=new a.vpe,this.exploreDocumentNotFound=new a.vpe,this.favouriteChanged=new a.vpe}ngOnInit(){return(0,v.mG)(this,void 0,void 0,function*(){this.exploreDocument=yield this.documentsSvc.getDocument(this.id),this.exploreDocument||this.exploreDocumentNotFound.emit()})}markAsDoneTodayFeaturedDocument(d){return(0,v.mG)(this,void 0,void 0,function*(){(yield this.documentsSvc.markAsDoneTodayFeaturedDocument(this.weekNumber,this.dayNumber))&&(this.weeklyGoalsSvc.fetchWeeklyGoals(),this.isComplete=d,this.isDoneChange.emit(this.isComplete))})}dismiss(){this.closeEventEmitter.emit(this.isComplete),this.isDoneChange.emit(this.isComplete)}favouriteChange(d){this.favouriteChanged.emit(d)}}return P.\u0275fac=function(d){return new(d||P)(a.Y36(y.S),a.Y36(u._))},P.\u0275cmp=a.Xpm({type:P,selectors:[["app-explore-document-popup"]],inputs:{id:"id",weekNumber:"weekNumber",dayNumber:"dayNumber",isComplete:"isComplete",showDone:"showDone",todayFeaturedDocumentDone:"todayFeaturedDocumentDone"},outputs:{closeEventEmitter:"closeEventEmitter",isDoneChange:"isDoneChange",exploreDocumentNotFound:"exploreDocumentNotFound",favouriteChanged:"favouriteChanged"},decls:11,vars:2,consts:[[1,"popup"],[1,"popup__wrapper"],["collapse","fade",1,"popup__header","ion-no-padding"],["mode","ios"],["slot","start"],[3,"isDone","changeDone$",4,"ngIf"],["slot","end"],["type","button","id","close-button","tappable","",1,"button","button_icon","popup__close",3,"click"],["src","assets/images/icons/cross.svg","alt",""],["class","popup__article",4,"ngIf"],[3,"isDone","changeDone$"],[1,"popup__article"],[1,"popup__outer"],[1,"page-header"],["type","Document",3,"favourite","id","favouriteId","favouriteChanged"],[1,"page-header__meta"],[1,"page-header__meta-item"],[1,"text-smaller"],[1,"content-box","content-box_overflow","my-5"],["id","document-image","class","w-100","alt","",3,"src",4,"ngIf"],[3,"videoUrl",4,"ngIf"],[1,"add-symbols-list"],["appLinkText","",3,"innerHTML"],["
1id","document-image","alt","",1,"w-100",3,"src"],[3,"videoUrl"]],template:function(d,Z){1&d&&(a.TgZ(0,"section",0)(1,"div",1)(2,"ion-header",2)(3,"ion-toolbar",3)(4,"ion-buttons",4),a.YNc(5,l,1,1,"app-mark-as-done-button",5),a.qZA(),a.TgZ(6,"ion-buttons",6)(7,"button",7),a.NdJ("click",function(){return Z.dismiss()}),a._UZ(8,"img",8),a.qZA()()()(),a.TgZ(9,"ion-content"),a.YNc(10,O,19,11,"article",9),a.qZA()()()),2&d&&(a.xp6(5),a.Q6J("ngIf",Z.exploreDocument&&Z.showDone),a.xp6(5),a.Q6J("ngIf",Z.exploreDocument))},directives:[b.Gu,b.sr,b.Sm,M.O5,C.P,b.W2,w.I,e.p,f.v],pipes:[_.f],styles:["[_nghost-%COMP%]   h1[_ngcontent-%COMP%]{display:flex;justify-content:space-between}[_nghost-%COMP%]   h1[_ngcontent-%COMP%]   app-favourite[_ngcontent-%COMP%]{margin-top:4px}.page-header[_ngcontent-%COMP%]{display:block}"]}),P})()},35137:(F,T,s)=>{s.r(T),s.d(T,{HomePageModule:()=>nn});var v=s(69808),a=s(52382),y=s(83691),u=s(90603),b=s(65441),M=s(99485),C=s(95998),w=s(97582),e=s(5e3),f=s(44987),_=s(38076),l=s(15439),p=s(77579),h=s(54968),O=s(39300),A=s(54004),P=s(50590),E=s(39841),d=s(60515),Z=s(34049),W=s(97272),H=s(95698),j=s(54482),q=s(25403),V=s(25032),B=s(95577);function L(n,o){return o?t=>(0,W.z)(o.pipe((0,H.q)(1),function G(){return(0,j.e)((n,o)=>{n.subscribe((0,q.x)(o,V.Z))})}()),t.pipe(L(n))):(0,B.z)((t,i)=>n(t,i).pipe((0,H.q)(1),function K(n){return(0,A.U)(()=>n)}(t)))}var $=s(5963);function R(n,o=Z.z){const t=(0,$.H)(n,o);return L(()=>t)}var c=s(18505),m=s(70262),x=s(63900),k=s(28746),D=s(89931),U=s(9145),I=s(25720),N=s(26997),Q=s(11991),X=s(39193),z=s(68429);const ne=["onboardingSwiper"];function oe(n,o){if(1&n&&(e.TgZ(0,"div",21)(1,"ion-text",22),e._uU(2,"Scan QR Code"),e.qZA(),e._UZ(3,"ion-img",23),e.qZA()),2&n){const t=e.oxw(2).$implicit;e.xp6(3),e.Q6J("src",t.appQRImagePath)}}function ie(n,o){if(1&n&&(e.TgZ(0,"div",24)(1,"a",25),e._UZ(2,"img",26),e.qZA(),e.TgZ(3,"a",25),e._UZ(4,"img",27),e.qZA()()),2&n){const t=e.oxw(2).$implicit;e.xp6(1),e.Q6J("href",t.playStoreURL,e.LSH),e.xp6(1),e.Q6J("src",t.playStoreBadge,e.LSH),e.xp6(1),e.Q6J("href",t.appStoreURL,e.LSH),e.xp6(1),e.Q6J("src",t.appStoreBadge,e.LSH)}}function re(n,o){if(1&n&&(e.TgZ(0,"div",12)(1,"div",13),e._UZ(2,"img",14),e.qZA(),e.TgZ(3,"div",15)(4,"div",16)(5,"ion-text",17),e._uU(6),e.qZA(),e.YNc(7,oe,4,1,"div",18),e.qZA(),e.TgZ(8,"ion-text",19),e._uU(9),e.qZA(),e.YNc(10,ie,5,4,"div",20),e.qZA()()),2&n){const t=e.oxw().$implicit;e.xp6(2),e.Q6J("src",t.imagePath,e.LSH),e.xp6(4),e.Oqu(t.title),e.xp6(1),e.Q6J("ngIf",!!t.appQRImagePath),e.xp6(2),e.Oqu(t.content),e.xp6(1),e.Q6J("ngIf",t.playStoreBadge&&t.appStoreBadge)}}function se(n,o){1&n&&e.YNc(0,re,11,5,"ng-template",11)}function ae(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"swiper",8,9),e.NdJ("slideChange",function(r){return e.CHM(t),e.oxw().onSlideChange(r)}),e.YNc(2,se,1,0,null,10),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("config",t.swiperOptions)("allowTouchMove",t.allowTouchMove),e.xp6(2),e.Q6J("ngForOf",t.slides)}}function le(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",33),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).previousSlide()}),e._uU(1," Back "),e.qZA()}}function ce(n,o){if(1&n&&e._UZ(0,"span",34),2&n){const t=o.index,i=e.oxw(2);e.ekj("swiper-pagination-bullet-active",i.activeIndex===t)}}function pe(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",33),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).nextSlide()}),e._uU(1," Next "),e.qZA()}}function de(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",33),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).close()}),e._uU(1," Finish "),e.qZA()}}function ge(n,o){if(1&n&&(e.TgZ(0,"ion-toolbar",28)(1,"ion-buttons",29),e.YNc(2,le,2,0,"button",30),e.qZA(),e.TgZ(3,"div",31),e.YNc(4,ce,1,2,"span",32),e.qZA(),e.TgZ(5,"ion-buttons",2),e.YNc(6,pe,2,0,"button",30),e.YNc(7,de,2,0,"button",30),e.qZA()()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",!t.isBeginning),e.xp6(2),e.Q6J("ngForOf",t.slides),e.xp6(2),e.Q6J("ngIf",!t.isEnd),e.xp6(1),e.Q6J("ngIf",t.isEnd)}}let ue=(()=>{class n{constructor(t,i,r){this.modalCtrl=t,this.platform=i,this.cdr=r,this.activeIndex=0,this.allowTouchMove=!0,this.swiperOptions={pagination:!1},this.platform.is("desktop")&&(this.allowTouchMove=!1)}
1get isBeginning(){var t,i;return null===(i=null===(t=this.onboardingSwiper)||void 0===t?void 0:t.swiperRef)||void 0===i?void 0:i.isBeginning}get isEnd(){var t,i;return null===(i=null===(t=this.onboardingSwiper)||void 0===t?void 0:t.swiperRef)||void 0===i?void 0:i.isEnd}previousSlide(){this.onboardingSwiper.swiperRef.slidePrev(500)}nextSlide(){this.onboardingSwiper.swiperRef.slideNext(500)}close(){return this.modalCtrl.dismiss(null,"close")}onSlideChange(t){const[i]=t;this.activeIndex=i.activeIndex,this.cdr.detectChanges()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(u.IN),e.Y36(u.t4),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-onboarding-slides"]],viewQuery:function(t,i){if(1&t&&e.Gf(ne,5),2&t){let r;e.iGM(r=e.CRH())&&(i.onboardingSwiper=r.first)}},inputs:{slides:"slides"},decls:9,vars:2,consts:[[1,"ion-no-border"],[1,"ion-no-padding"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],["scroll-y","false",1,"ion-padding","f8-onboarding-content"],["class","f8-swiper",3,"config","allowTouchMove","slideChange",4,"ngIf"],["class","ion-no-padding f8-swiper-controls",4,"ngIf"],[1,"f8-swiper",3,"config","allowTouchMove","slideChange"],["onboardingSwiper",""],[4,"ngFor","ngForOf"],["swiperSlide",""],[1,"slide"],[1,"slide__image"],["alt","",3,"src"],[1,"slide__content"],[1,"header-container"],[1,"ion-text-center","ion-text-md-left","slide__title"],["class","qr-code-container",4,"ngIf"],[1,"ion-text-center","ion-text-md-left","slide__text"],["class","download-buttons",4,"ngIf"],[1,"qr-code-container"],[1,"ion-text-center","slide__text__qr"],[3,"src"],[1,"download-buttons"],["target","_blank",3,"href"],["alt","Download on Google Play",3,"src"],["alt","Download on the App Store",3,"src"],[1,"ion-no-padding","f8-swiper-controls"],["slot","start"],["class","button button_fill button_fill-dark-green button_small",3,"click",4,"ngIf"],[1,"f8-swiper-pagination","swiper-pagination","swiper-pagination-bullets","swiper-pagination-horizontal"],["class","swiper-pagination-bullet",3,"swiper-pagination-bullet-active",4,"ngFor","ngForOf"],[1,"button","button_fill","button_fill-dark-green","button_small",3,"click"],[1,"swiper-pagination-bullet"]],template:function(t,i){1&t&&(e.TgZ(0,"ion-header",0)(1,"ion-toolbar",1)(2,"ion-buttons",2)(3,"ion-button",3),e.NdJ("click",function(){return i.close()}),e._UZ(4,"ion-icon",4),e.qZA()()()(),e.TgZ(5,"ion-content",5),e.YNc(6,ae,3,3,"swiper",6),e.qZA(),e.TgZ(7,"ion-footer",0),e.YNc(8,ge,8,4,"ion-toolbar",7),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",null==i.slides?null:i.slides.length),e.xp6(2),e.Q6J("ngIf",null==i.onboardingSwiper?null:i.onboardingSwiper.swiperRef))},directives:[u.Gu,u.sr,u.Sm,u.YG,u.gu,u.W2,v.O5,M.nF,v.sg,M.YC,u.yW,u.Xz,u.fr],styles:['@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMk
1pFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA);font-weight:400;font-style:normal}[_ngcontent-%COMP%]:root{--swiper-theme-color:#007aff}.swiper[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-vertical[_ngcontent-%COMP%] > .swiper-wrapper[_ngcontent-%COMP%]{flex-direction:column}.swiper-wrapper[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.swiper-android[_ngcontent-%COMP%]   .swiper-slide[_ngcontent-%COMP%], .swiper-wrapper[_ngcontent-%COMP%]{transform:translate(0)}.swiper-pointer-events[_ngcontent-%COMP%]{touch-action:pan-y}.swiper-pointer-events.swiper-vertical[_ngcontent-%COMP%]{touch-action:pan-x}.swiper-slide[_ngcontent-%COMP%]{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.swiper-slide-invisible-blank[_ngcontent-%COMP%]{visibility:hidden}.swiper-autoheight[_ngcontent-%COMP%], .swiper-autoheight[_ngcontent-%COMP%]   .swiper-slide[_ngcontent-%COMP%]{height:auto}.swiper-autoheight[_ngcontent-%COMP%]   .swiper-wrapper[_ngcontent-%COMP%]{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden[_ngcontent-%COMP%]   .swiper-slide[_ngcontent-%COMP%]{transform:translateZ(0);backface-visibility:hidden}.swiper-3d[_ngcontent-%COMP%], .swiper-3d.swiper-css-mode[_ngcontent-%COMP%]   .swiper-wrapper[_ngcontent-%COMP%]{perspective:1200px}.swiper-3d[_ngcontent-%COMP%]   .swiper-cube-shadow[_ngcontent-%COMP%], .swiper-3d[_ngcontent-%COMP%]   .swiper-slide[_ngcontent-%COMP%], .swiper-3d[_ngcontent-%COMP%]   .swiper-slide-shadow[_ngcontent-%COMP%], .swiper-3d[_ngcontent-%COMP%]   .swiper-slide-shadow-bottom[_ngcontent-%COMP%], .swiper-3d[_ngcontent-%COMP%]   .swiper-slide-shadow-left[_ngcontent-%COMP%], .swiper-3d[_ngcontent-%COMP%]   .swiper-slide-shadow-right[_ngcontent-%COMP%], .swiper-3d[_ngcontent-%COMP%]   .swiper-slide-shadow-top[_ngcontent-%COMP%], .swiper-3d[_ngcontent-%COMP%]   .swiper-wrapper[_ngcontent-%COMP%]{transform-style:preserve-3d}.swiper-3d[_ngcontent-%COMP%]   .swiper-slide-shadow[_ngcontent-%COMP%], .swiper-3d[_ngcontent-%COMP%]   .swiper-slide-shadow-bottom[_ngcontent-%COMP%], .swiper-3d[_ngcontent-%COMP%]   .swiper-slide-shadow-left[_ngcontent-%COMP%], .swiper-3d[_ngcontent-%COMP%]   .swiper-slide-shadow-right[_ngcontent-%COMP%], .swiper-3d[_ngcontent-%COMP%]   .swiper-slide-shadow-top[_ngcontent-%COMP%]{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d[_ngcontent-%COMP%]   .swiper-slide-shadow[_ngcontent-%COMP%]{background:rgba(0,0,0,.15)}.swiper-3d[_ngcontent-%COMP%]   .swiper-slide-shadow-left[_ngcontent-%COMP%]{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d[_ngcontent-%COMP%]   .swiper-slide-shadow-right[_ngcontent-%COMP%]{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d[_ngcontent-%COMP%]   .swiper-slide-shadow-top[_ngcontent-%COMP%]{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d[_ngcontent-%COMP%]   .swiper-slide-shadow-bottom[_ngcontent-%COMP%]{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-css-mode[_ngcontent-%COMP%] > .swiper-wrapper[_ngcontent-%COMP%]{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode[_ngcontent-%COMP%] > .swiper-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.swiper-css-mode[_ngcontent-%COMP%] > .swiper-wrapper[_ngcontent-%COMP%] > .swiper-slide[_ngcontent-%COMP%]{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode[_ngcontent-%COMP%] > .swiper-wrapper[_ngcontent-%COMP%]{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode[_ngcontent-%COMP%] > .swiper-wrapper[_ngcontent-%COMP%]{scroll-snap-type:y mandatory}.swiper-centered[_ngcontent-%COMP%] > .swiper-wrapper[_ngcontent-%COMP%]:before{content:"";flex-shrink:0;order:9999}.swiper-centered.swiper-horizontal[_ngcontent-%COMP%] > .swiper-wrapper[_ngcontent-%COMP%] > .swiper-slide[_ngcontent-%COMP%]:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal[_ngcontent-%COMP%] > .swiper-wrapper[_ngcontent-%COMP%]:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical[_ngcontent-%COMP%] > .swiper-wrapper[_ngcontent-%COMP%] > .swiper-slide[_ngcontent-%COMP%]:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical[_ngcontent-%COMP%] > .swiper-wrapper[_ngcontent-%COMP%]:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-centered[_ngcontent-%COMP%] > .swiper-wrapper[_ngcontent-%COMP%] > .swiper-slide[_ngcontent-%COMP%]{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-pagination[_ngcontent-%COMP%]{position:absolute;text-align:center;transition:.3s opacity;transform:translate(0);z-index:10}.swiper-pagination.swiper-pagination-hidden[_ngcontent-%COMP%]{opacity:0}
1.swiper-pagination-disabled[_ngcontent-%COMP%] > .swiper-pagination[_ngcontent-%COMP%], .swiper-pagination.swiper-pagination-disabled[_ngcontent-%COMP%]{display:none!important}.swiper-horizontal[_ngcontent-%COMP%] > .swiper-pagination-bullets[_ngcontent-%COMP%], .swiper-pagination-bullets.swiper-pagination-horizontal[_ngcontent-%COMP%], .swiper-pagination-custom[_ngcontent-%COMP%], .swiper-pagination-fraction[_ngcontent-%COMP%]{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic[_ngcontent-%COMP%]{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic[_ngcontent-%COMP%]   .swiper-pagination-bullet[_ngcontent-%COMP%]{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic[_ngcontent-%COMP%]   .swiper-pagination-bullet-active[_ngcontent-%COMP%], .swiper-pagination-bullets-dynamic[_ngcontent-%COMP%]   .swiper-pagination-bullet-active-main[_ngcontent-%COMP%]{transform:scale(1)}.swiper-pagination-bullets-dynamic[_ngcontent-%COMP%]   .swiper-pagination-bullet-active-prev[_ngcontent-%COMP%]{transform:scale(.66)}.swiper-pagination-bullets-dynamic[_ngcontent-%COMP%]   .swiper-pagination-bullet-active-prev-prev[_ngcontent-%COMP%]{transform:scale(.33)}.swiper-pagination-bullets-dynamic[_ngcontent-%COMP%]   .swiper-pagination-bullet-active-next[_ngcontent-%COMP%]{transform:scale(.66)}.swiper-pagination-bullets-dynamic[_ngcontent-%COMP%]   .swiper-pagination-bullet-active-next-next[_ngcontent-%COMP%]{transform:scale(.33)}.swiper-pagination-bullet[_ngcontent-%COMP%]{width:8px;width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:8px;height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:50%;background:#000;background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:.2;opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet[_ngcontent-%COMP%]{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable[_ngcontent-%COMP%]   .swiper-pagination-bullet[_ngcontent-%COMP%]{cursor:pointer}.swiper-pagination-bullet[_ngcontent-%COMP%]:only-child{display:none!important}.swiper-pagination-bullet-active[_ngcontent-%COMP%]{opacity:1;opacity:var(--swiper-pagination-bullet-opacity, 1);background:#007aff;background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets[_ngcontent-%COMP%], .swiper-vertical[_ngcontent-%COMP%] > .swiper-pagination-bullets[_ngcontent-%COMP%]{right:10px;top:50%;transform:translateY(-50%)}.swiper-pagination-vertical.swiper-pagination-bullets[_ngcontent-%COMP%]   .swiper-pagination-bullet[_ngcontent-%COMP%], .swiper-vertical[_ngcontent-%COMP%] > .swiper-pagination-bullets[_ngcontent-%COMP%]   .swiper-pagination-bullet[_ngcontent-%COMP%]{margin:6px 0;margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic[_ngcontent-%COMP%], .swiper-vertical[_ngcontent-%COMP%] > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic[_ngcontent-%COMP%]{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic[_ngcontent-%COMP%]   .swiper-pagination-bullet[_ngcontent-%COMP%], .swiper-vertical[_ngcontent-%COMP%] > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic[_ngcontent-%COMP%]   .swiper-pagination-bullet[_ngcontent-%COMP%]{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal[_ngcontent-%COMP%] > .swiper-pagination-bullets[_ngcontent-%COMP%]   .swiper-pagination-bullet[_ngcontent-%COMP%], .swiper-pagination-horizontal.swiper-pagination-bullets[_ngcontent-%COMP%]   .swiper-pagination-bullet[_ngcontent-%COMP%]{margin:0 4px;margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal[_ngcontent-%COMP%] > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic[_ngcontent-%COMP%], .swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-horizontal[_ngcontent-%COMP%] > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic[_ngcontent-%COMP%]   .swiper-pagination-bullet[_ngcontent-%COMP%], .swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic[_ngcontent-%COMP%]   .swiper-pagination-bullet[_ngcontent-%COMP%]{transition:.2s transform,.2s left}
1.swiper-horizontal.swiper-rtl[_ngcontent-%COMP%] > .swiper-pagination-bullets-dynamic[_ngcontent-%COMP%]   .swiper-pagination-bullet[_ngcontent-%COMP%]{transition:.2s transform,.2s right}.swiper-pagination-progressbar[_ngcontent-%COMP%]{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar[_ngcontent-%COMP%]   .swiper-pagination-progressbar-fill[_ngcontent-%COMP%]{background:#007aff;background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl[_ngcontent-%COMP%]   .swiper-pagination-progressbar[_ngcontent-%COMP%]   .swiper-pagination-progressbar-fill[_ngcontent-%COMP%]{transform-origin:right top}.swiper-horizontal[_ngcontent-%COMP%] > .swiper-pagination-progressbar[_ngcontent-%COMP%], .swiper-pagination-progressbar.swiper-pagination-horizontal[_ngcontent-%COMP%], .swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite[_ngcontent-%COMP%], .swiper-vertical[_ngcontent-%COMP%] > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite[_ngcontent-%COMP%]{width:100%;height:4px;left:0;top:0}.swiper-horizontal[_ngcontent-%COMP%] > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite[_ngcontent-%COMP%], .swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite[_ngcontent-%COMP%], .swiper-pagination-progressbar.swiper-pagination-vertical[_ngcontent-%COMP%], .swiper-vertical[_ngcontent-%COMP%] > .swiper-pagination-progressbar[_ngcontent-%COMP%]{width:4px;height:100%;left:0;top:0}.swiper-pagination-lock[_ngcontent-%COMP%]{display:none}  .f8-swiper{width:100%;height:100%}  .f8-swiper .swiper-slide{height:100%}[_nghost-%COMP%]   ion-header[_ngcontent-%COMP%]{flex:0 1 44px}[_nghost-%COMP%]   ion-header[_ngcontent-%COMP%]   ion-toolbar[_ngcontent-%COMP%]{--ion-safe-area-right: 0;--background: white}[_nghost-%COMP%]   ion-header[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{color:var(--color-dark-green);font-size:32px}[_nghost-%COMP%]   ion-header[_ngcontent-%COMP%]   ion-buttons[_ngcontent-%COMP%]{position:absolute;top:0;right:0;margin:0}[_nghost-%COMP%]   ion-header[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{height:38px;width:38px;margin:0;padding:0;--padding-start: 0;--padding-end: 0}[_nghost-%COMP%]   ion-content[_ngcontent-%COMP%]{flex:auto}[_nghost-%COMP%]   ion-footer[_ngcontent-%COMP%]{height:unset;flex:0 1 84px}[_nghost-%COMP%]   ion-footer[_ngcontent-%COMP%]   ion-toolbar[_ngcontent-%COMP%]{--background: white;padding:0 40px 48px;height:100%;display:flex;align-items:center}[_nghost-%COMP%]   ion-footer[_ngcontent-%COMP%]   ion-toolbar[_ngcontent-%COMP%]   ion-buttons[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%]   ion-footer[_ngcontent-%COMP%]   ion-toolbar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-size:16px;height:36px}  ion-modal.f8-onboarding-slides-modal{--background: white}  ion-modal.f8-onboarding-slides-modal ion-content.f8-onboarding-content{--padding-top: 0;--padding-start: 40px;--padding-end: 40px;--padding-bottom: 0;--background: white !important}  div.f8-swiper-pagination.swiper-pagination-bullets{bottom:4px!important;height:36px;display:flex;align-items:center;justify-content:center}  div.f8-swiper-pagination.swiper-pagination-bullets .swiper-pagination-bullet{height:10px;width:10px;margin:0 4px;opacity:1;background-color:#fff;border:1px solid var(--color-dark-green)}  div.f8-swiper-pagination.swiper-pagination-bullets .swiper-pagination-bullet-active{background-color:var(--color-dark-green)}.slide[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;flex-direction:column}.slide__content[_ngcontent-%COMP%]{height:100%}.slide__content[_ngcontent-%COMP%]   .qr-code-container[_ngcontent-%COMP%]{display:none}.slide__content[_ngcontent-%COMP%]   .download-buttons[_ngcontent-%COMP%]{display:flex;width:100%;margin-top:16px;justify-content:space-between;align-items:center}.slide__content[_ngcontent-%COMP%]   .download-buttons[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:50px;-o-object-fit:contain;object-fit:contain}.slide__title[_ngcontent-%COMP%]{font-size:36px;line-height:40px;color:var(--color-gray-700);display:block;font-weight:700;margin-bottom:20px}.slide__text[_ngcontent-%COMP%]{display:block;font-size:16px;line-height:20px;color:var(--color-gray-700)}.slide__text__qr[_ngcontent-%COMP%]{font-size:12px;line-height:24px}.slide__image[_ngcontent-%COMP%]{margin-top:-8px}@media only screen and (max-width: 375px){.slide__image[_ngcontent-%COMP%]{max-width:144px}}@media only screen and (max-width: 325px){.slide__image[_ngcontent-%COMP%]{max-width:128px}}@media only screen and (min-width: 768px){[_nghost-%COMP%]   ion-header[_ngcontent-%COMP%]{height:60px;flex:0 1 60px}[_nghost-%COMP%]   ion-footer[_ngcontent-%COMP%]{height:96px;flex:0 1 96px}[_nghost-%COMP%]   ion-footer[_ngcontent-%COMP%]   ion-toolbar[_ngcontent-%COMP%]{padding:0 40px 40px;height:100%;display:flex;align-items:center}  ion-modal.f8-onboarding-slides-modal{--height: 388px;--width: 700px;--background: white;--border-radius: 10px}  ion-modal.f8-onboarding-slides-modal ion-content.f8-onboarding-content{--padding-top: 0;--padding-start: 40px;--padding-end: 40px;--padding-bottom: 0;--background: white !important}.slide[_ngcontent-%COMP%]{height:100%;display:flex;align-items:flex-start;flex-direction:initial}.slide__content[_ngcontent-%COMP%]{flex:2;margin-left:20px}.slide__content[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%]{display:flex;width:100%;flex-direction:row}.slide__content[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%]   .qr-code-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;margin-left:20px}.slide__content[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%]   .qr-code-container[_ngcontent-%COMP%]   ion-img[_ngcontent-%COMP%]{width:87 px;aspect-ratio:1}.slide__content[_ngcontent-%COMP%]   .slide__text[_ngcontent-%COMP%]{margin-right:20px}.slide__content[_ngcontent-%COMP%]   .download-buttons[_ngcontent-%COMP%]{display:flex;justify-content:start}.slide__content[_ngcontent-%COMP%]   .download-buttons[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-right:40px}.slide__content[_ngcontent-%COMP%]   .download-buttons[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:40px;-o-object-fit:contain;object-fit:contain}.slide__image[_ngcontent-%COMP%]{max-width:232px}}'],changeDetection:0}),n})();var _e=s(85399),me=s(89985),he=s(55305),fe=s(99231);const Y=(0,s(47423).fo)("PushNotifications",{});let ve=(()=>{class n{constructor(){this.sendTokenToServer=t=>(0,w.mG)(this,void 0,void 0,function*(){})}register(){return(0,w.mG)(this,void 0,void 0,function*(){try{let t=yield Y.checkPermissions();if("granted"!==t.receive&&(t=yield Y.requestPermissions()),"granted"!==t.receive)return;Y.addListener("registration",i=>{this.sendTokenToServer(i.value)}),Y.addListener("registrationError",i=>{}),Y.addListener("pushNotificationReceived",i=>{this.showNotificationReceivedAlert(i)}),Y.addListener("pushNotificationActionPerformed",i=>{this.showActionPerformedAlert(i)}),Y.register()}catch(t){throw t}})}unregister(){return(0,w.mG)(this,void 0,void 0,function*(){Y.unregister(),Y.removeAllListeners()})}showNotificationReceivedAlert(t){}showActionPerformedAlert(t){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var xe=s(2693),ye=s(57719),be=s(86578),Ce=s(40520);let ee=(()=>{class n{constructor(t){this.http=t}fetchOnboardingSlidesContent(){return this.http.get("assets/data/onboarding-slides.json").toProm
1ise()}}return n.\u0275fac=function(t){return new(t||n)(e.LFG(Ce.eN))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n})();var Pe=s(49306),Me=s(82933),Oe=s(47024),Ae=s(82722),ke=s(19719);function De(n,o){if(1&n&&(e.TgZ(0,"h1",8),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("Welcome ",t.name,"!")}}function Te(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"span"),e._uU(2),e.qZA(),e.BQk()),2&n){const t=e.oxw().$implicit;e.xp6(2),e.Oqu(t.label)}}function Se(n,o){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(0!==t.weekNumber?"Week "+t.weekNumber:"Prepare")}}function Ze(n,o){1&n&&(e.TgZ(0,"span"),e._uU(1,"\xa0(current)"),e.qZA())}function Ee(n,o){if(1&n&&(e.TgZ(0,"option",9),e.YNc(1,Te,3,1,"ng-container",10),e.YNc(2,Se,2,1,"ng-template",null,11,e.W1O),e.YNc(4,Ze,2,0,"span",12),e.qZA()),2&n){const t=o.$implicit,i=e.MAs(3),r=e.oxw(2);e.Q6J("ngValue",t.weekNumber),e.xp6(1),e.Q6J("ngIf",r.isActiveOrRequestCancelSubscription)("ngIfElse",i),e.xp6(3),e.Q6J("ngIf",r.currentWeek===t.weekNumber)}}const Ie=function(){return["/profile"]};function Ne(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",3),e.YNc(1,De,2,1,"h1",4),e.TgZ(2,"select",5),e.NdJ("ngModelChange",function(r){return e.CHM(t),e.oxw().selectedWeek=r})("ngModelChange",function(r){return e.CHM(t),e.oxw().changeWeek(r)}),e.YNc(3,Ee,5,4,"option",6),e.qZA(),e._UZ(4,"img",7),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.name),e.xp6(1),e.Q6J("ngModel",t.selectedWeek),e.xp6(1),e.Q6J("ngForOf",t.weeks),e.xp6(1),e.Q6J("routerLink",e.DdM(4,Ie))}}function Ye(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",15),e.NdJ("click",function(){const g=e.CHM(t).$implicit;return e.oxw(2).changeDate(g.date)}),e.TgZ(1,"small"),e._uU(2),e.qZA(),e._uU(3),e.qZA()}if(2&n){const t=o.$implicit,i=e.oxw(2);e.ekj("days__day_active",t.date===i.selectedDate),e.xp6(2),e.Oqu(t.label),e.xp6(1),e.hij(" ",t.day," ")}}function We(n,o){if(1&n&&(e.TgZ(0,"div",13),e.YNc(1,Ye,4,4,"div",14),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.weekDays)}}let He=(()=>{class n{constructor(t){this.router=t,this.showOnlyHeader=!0,this.showOnlyDates=!0,this.dateChanged=new e.vpe,this.weekChanged=new e.vpe,this.weekDays=[],this.weeks=[],this.destroy$=new p.x}set weekNumber(t){this.selectedWeek!==t&&this.changeWeek(t.toString(),!1)}get isActiveOrRequestCancelSubscription(){return(0,X.Bq)(this.membershipStatus)}ngOnInit(){this.setCurrentDate(),this.router.events.pipe((0,O.h)(t=>t instanceof y.m2&&"/tabs/home"===t.url),(0,Ae.R)(this.destroy$)).subscribe(()=>{this.setCurrentDate()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}changeDate(t){this.selectedDate=t,this.dateChanged.emit(this.selectedDate)}changeWeek(t,i=!0){const r=Number(t);let g;this.selectedWeek=r,g=this.currentWeek-this.selectedWeek;const S=l().subtract(g,"weeks").startOf("isoWeek").format("YYYY-MM-DD");this.loadDays(S),this.selectedDate=l().startOf("isoWeek").subtract(g,"weeks").format("YYYY-MM-DD"),i&&this.weekChanged.emit(this.selectedDate)}loadDays(t){this.weekDays=[];for(let i=0;i<7;i++){const r=l(t,"YYYY-MM-DD").add(i,"days");this.weekDays.push({label:r.format("ddd"),date:r.format("YYYY-MM-DD"),day:parseInt(r.format("DD"),10)})}}loadWeeks(){const t=[];for(let i=0;i<=this.currentWeek;i++){const r=this.currentWeek-i,g=l().subtract(r,"weeks"),S=(0,ke.mz)(g);t.push({label:S,weekNumber:i})}this.weeks=this.isActiveOrRequestCancelSubscription?t.slice(t.length-2,t.length):t}setCurrentDate(){const t=l().startOf("isoWeek").format("YYYY-MM-DD");this.selectedWeek=this.currentWeek,this.loadDays(t),this.loadWeeks(),this.selectedDate=l().format("YYYY-MM-DD")}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-days"]],inputs:{name:"name",currentWeek:"currentWeek",weekNumber:"weekNumber",membershipStatus:"membershipStatus",isMemberPaymentActive:"isMemberPaymentActive",showOnlyHeader:"showOnlyHeader",showOnlyDates:"showOnlyDates"},outputs:{dateChanged:"dateChanged",weekChanged:"weekChanged"},decls:3,vars:2,consts:[[1,"days"],["class","days__header",4,"ngIf"],["class","days__items",4,"ngIf"],[1,"days__header"],["class","days__title",4,"ngIf"],[1,"days__week",3,"ngModel","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],["src","assets/images/icons/settings.svg","alt","",3,"routerLink"],[1,"days__title"],[3,"ngValue"],[4,"ngIf","ngIfElse"],["other",""],[4,"ngIf"],[1,"days__items"],["class","days__day",3,"days__day_active","click",4,"ngFor","ngForOf"],[1,"days__day",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"section",0),e.YNc(1,Ne,5,5,"div",1),e.YNc(2,We,2,1,"div",2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",i.showOnlyHeader),e.xp6(1),e.Q6J("ngIf",i.showOnlyDates))},directives:[v.O5,a.EJ,a.JJ,a.On,v.sg,a.YN,a.Kr,u.YI,y.rH],styles:['[_ngcontent-%COMP%]:root{--color-white: #fff;--color-black: #000;--color-dark: #262626;--color-light-green: #c8eee8;--color-lighter-green: #1dbbac;--color-green: #48a190;--color-mid-green: #509a8c;--color-dark-green: #367e70;--color-darkest-green: #24534a;--color-orange: #ff6820;--color-creame: #f9d6b4;--color-warning: #e67451;--color-danger: #cc273d;--color-lighter-red: #fce8e9;--color-gray-100: #f5f7f8;--color-gray-200: #ebeff4;--color-gray-300: #dee2e6;--color-gray-400: #ced4da;--color-gray-500: #a5a5a5;--color-gray-600: #676767;--color-gray-700: #484848;--color-gray-800: #343a40;--color-gray-900: #212529;--ion-font-family: "Source Sans Pro", sans-serif;--max-content-width: 1290px;
1--ion-grid-column-padding-xs: 8px;--ion-grid-column-padding: 8px;--ion-offset: 16px;--ion-color-primary: #367e70;--ion-color-primary-rgb: 56, 128, 255;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #48a190;--ion-color-primary-tint: #40c3af;--ion-color-secondary: var(--color-gray-100);--ion-color-secondary-rgb: 61, 194, 255;--ion-color-secondary-contrast: #000000;--ion-color-secondary-contrast-rgb: 255, 255, 255;--ion-color-secondary-shade: var(--color-gray-100);--ion-color-secondary-tint: var(--color-gray-100);--ion-color-tertiary: var(--color-dark-green);--ion-color-tertiary-rgb: 82, 96, 255;--ion-color-tertiary-contrast: #ffffff;--ion-color-tertiary-contrast-rgb: 255, 255, 255;--ion-color-tertiary-shade: #4854e0;--ion-color-tertiary-tint: #6370ff;--ion-color-success: var(--color-green);--ion-color-success-rgb: 45, 211, 111;--ion-color-success-contrast: #ffffff;--ion-color-success-contrast-rgb: 255, 255, 255;--ion-color-success-shade: #28ba62;--ion-color-success-tint: #42d77d;--ion-color-warning: #ffc409;--ion-color-warning-rgb: 255, 196, 9;--ion-color-warning-contrast: #000000;--ion-color-warning-contrast-rgb: 0, 0, 0;--ion-color-warning-shade: #e0ac08;--ion-color-warning-tint: #ffca22;--ion-color-danger: #eb445a;--ion-color-danger-rgb: 235, 68, 90;--ion-color-danger-contrast: #ffffff;--ion-color-danger-contrast-rgb: 255, 255, 255;--ion-color-danger-shade: #cf3c4f;--ion-color-danger-tint: #ed576b;--ion-color-dark: #123a34;--ion-color-dark-rgb: 34, 36, 40;--ion-color-dark-contrast: #ffffff;--ion-color-dark-contrast-rgb: 255, 255, 255;--ion-color-dark-shade: #1e2023;--ion-color-dark-tint: #383a3e;--ion-color-medium: #92949c;--ion-color-medium-rgb: 146, 148, 156;--ion-color-medium-contrast: #ffffff;--ion-color-medium-contrast-rgb: 255, 255, 255;--ion-color-medium-shade: #808289;--ion-color-medium-tint: #9d9fa6;--ion-color-light: #f4f5f8;--ion-color-light-rgb: 244, 245, 248;--ion-color-light-contrast: #000000;--ion-color-light-contrast-rgb: 0, 0, 0;--ion-color-light-shade: #d7d8da;--ion-color-light-tint: #f5f6f9;--ion-padding: 16px}body.dark[_ngcontent-%COMP%]{--ion-color-primary: #428cff;--ion-color-primary-rgb: 66, 140, 255;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #3a7be0;--ion-color-primary-tint: #5598ff;--ion-color-secondary: #50c8ff;--ion-color-secondary-rgb: 80, 200, 255;--ion-color-secondary-contrast: #ffffff;--ion-color-secondary-contrast-rgb: 255, 255, 255;--ion-color-secondary-shade: #46b0e0;--ion-color-secondary-tint: #62ceff;--ion-color-tertiary: #6a64ff;--ion-color-tertiary-rgb: 106, 100, 255;--ion-color-tertiary-contrast: #ffffff;--ion-color-tertiary-contrast-rgb: 255, 255, 255;--ion-color-tertiary-shade: #5d58e0;--ion-color-tertiary-tint: #7974ff;--ion-color-success: #2fdf75;--ion-color-success-rgb: 47, 223, 117;--ion-color-success-contrast: #000000;--ion-color-success-contrast-rgb: 0, 0, 0;--ion-color-success-shade: #29c467;--ion-color-success-tint: #44e283;--ion-color-warning: #ffd534;--ion-color-warning-rgb: 255, 213, 52;--ion-color-warning-contrast: #000000;--ion-color-warning-contrast-rgb: 0, 0, 0;--ion-color-warning-shade: #e0bb2e;--ion-color-warning-tint: #ffd948;--ion-color-danger: #ff4961;--ion-color-danger-rgb: 255, 73, 97;--ion-color-danger-contrast: #ffffff;--ion-color-danger-contrast-rgb: 255, 255, 255;--ion-color-danger-shade: #e04055;--ion-color-danger-tint: #ff5b71;--ion-color-dark: #f4f5f8;--ion-color-dark-rgb: 244, 245, 248;--ion-color-dark-contrast: #000000;--ion-color-dark-contrast-rgb: 0, 0, 0;--ion-color-dark-shade: #d7d8da;--ion-color-dark-tint: #f5f6f9;--ion-color-medium: #989aa2;--ion-color-medium-rgb: 152, 154, 162;--ion-color-medium-contrast: #000000;--ion-color-medium-contrast-rgb: 0, 0, 0;--ion-color-medium-shade: #86888f;--ion-color-medium-tint: #a2a4ab;--ion-color-light: #222428;--ion-color-light-rgb: 34, 36, 40;--ion-color-light-contrast: #ffffff;--ion-color-light-contrast-rgb: 255, 255, 255;--ion-color-light-shade: #1e2023;--ion-color-light-tint: #383a3e}.ios[_ngcontent-%COMP%]   body.dark[_ngcontent-%COMP%]{--ion-background-color: #000000;--ion-background-color-rgb: 0, 0, 0;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-color-step-50: #0d0d0d;--ion-color-step-100: #1a1a1a;--ion-color-step-150: #262626;--ion-color-step-200: #333333;--ion-color-step-250: #404040;--ion-color-step-300: #4d4d4d;--ion-color-step-350: #595959;--ion-color-step-400: #666666;--ion-color-step-450: #737373;--ion-color-step-500: #808080;--ion-color-step-550: #8c8c8c;--ion-color-step-600: #999999;--ion-color-step-650: #a6a6a6;--ion-color-step-700: #b3b3b3;--ion-color-step-750: #bfbfbf;--ion-color-step-800: #cccccc;--ion-color-step-850: #d9d9d9;--ion-color-step-900: #e6e6e6;--ion-color-step-950: #f2f2f2;--ion-toolbar-background: #0d0d0d;--ion-item-background: #000000}.md[_ngcontent-%COMP%]   body.dark[_ngcontent-%COMP%]{--ion-background-color: #121212;--ion-background-color-rgb: 18, 18, 18;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-border-color: #222222;--ion-color-step-50: #1e1e1e;--ion-color-step-100: #2a2a2a;--ion-color-step-150: #363636;--ion-color-step-200: #414141;--ion-color-step-250: #4d4d4d;--ion-color-step-300: #595959;--ion-color-step-350: #656565;--ion-color-step-400: #717171;--ion-color-step-450: #7d7d7d;--ion-color-step-500: #898989;--ion-color-step-550: #949494;--ion-color-step-600: #a0a0a0;--ion-color-step-650: #acacac;--ion-color-step-700: #b8b8b8;--ion-color-step-750: #c4c4c4;--ion-color-step-800: #d0d0d0;--ion-color-step-850: #dbdbdb;--ion-color-step-900: #e7e7e7;--ion-color-step-950: #f3f3f3;--ion-toolbar-background: #1f1f1f;--ion-tab-bar-background: #1f1f1f;--ion-item-background: #1e1e1e}.days[_ngcontent-%COMP%]{padding:0 16px;background:url(/assets/images/leaf.png) right top no-repeat}.days__header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.days__header[_ngcontent-%COMP%]   select[_ngcontent-%COMP%], .days__header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{flex:none}.days__header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:24px;height:24px}@media only screen and (min-width: 992px){.days__header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-left:8px}}.days__header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]:focus{outline-color:none!important;outline:none!important}.days__title[_ngcontent-%COMP%]{font-size:28px;font-weight:400;line-height:1.12em;letter-spacing:-.5px;margin:0;color:#262626;color:var(--color-dark);flex:1;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.days__week[_ngcontent-%COMP%]{width:auto;display:inline-block}.days__items[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:10px 0 0;justify-content:space-between}.days__day[_ngcontent-%COMP%]{font-size:26px;line-height:1em;color:#484848;color:var(--color-gray-700);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px 8px;border-radius:9px;
1cursor:pointer}.days__day[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{font-size:13px;line-height:1em;letter-spacing:.01em;text-transform:uppercase;color:#24534a;color:var(--color-darkest-green)}.days__day_active[_ngcontent-%COMP%]{color:#fff;color:var(--color-white);background:#367e70;background:var(--color-dark-green)}.days__day_active[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{color:#fff;color:var(--color-white)}@media only screen and (max-width: 991px){.days[_ngcontent-%COMP%]{background:#fff;background:var(--color-white);padding:8px 17px}.days__day[_ngcontent-%COMP%]{font-size:18px;padding:10px 8px}.days__day[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{font-size:10px}}']}),n})();var Ue=s(60006);let Je=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-get-started-banner"]],decls:26,vars:0,consts:[[1,"get-started-banner","ion-no-padding","ion-hide-xl-down"],["src","assets/images/get-started-banner.png"],["size","auto",1,"ion-col-img"],[1,"ion-col-content"],["color","secondary"],[1,"get-started-text"],["size","auto",1,"ion-col-btn"],["type","button","routerLink","/tabs/get-started",1,"button","button_outline","button_medium","button_green-text"],[1,"get-started-banner","ion-no-padding","ion-hide-xl-up"],[1,"mb-4"]],template:function(t,i){1&t&&(e.TgZ(0,"ion-grid",0)(1,"ion-row"),e._UZ(2,"ion-img",1)(3,"ion-col",2),e.TgZ(4,"ion-col",3)(5,"ion-text",4)(6,"h3"),e._uU(7,"Preparation is the key to success"),e.qZA()(),e.TgZ(8,"ion-text")(9,"p",5),e._uU(10," You\u2019ve signed up, taken the first and most challenging step, and now it\u2019s time to get to know the programme. Learn how it all works and get ready for the start of your new, healthier lifestyle. "),e.qZA()()(),e.TgZ(11,"ion-col",6)(12,"button",7),e._uU(13," Get started "),e.qZA()()()(),e.TgZ(14,"ion-grid",8)(15,"ion-row")(16,"ion-col",3)(17,"div",9)(18,"ion-text",4)(19,"h3"),e._uU(20,"Preparation is the key to success"),e.qZA()(),e.TgZ(21,"ion-text")(22,"p",5),e._uU(23," You\u2019ve signed up, taken the first and most challenging step, and now it\u2019s time to get to know the programme. Learn how it all works and get ready for the start of your new, healthier lifestyle. "),e.qZA()()(),e.TgZ(24,"button",7),e._uU(25," Get started "),e.qZA()()()())},directives:[u.jY,u.Nd,u.Xz,u.wI,u.yW,u.YI,y.rH],styles:["ion-grid.get-started-banner[_ngcontent-%COMP%]{overflow:hidden;position:relative;background:var(--color-creame);border-radius:10px;padding:20px 16px}ion-grid.get-started-banner[_ngcontent-%COMP%]   ion-text[_ngcontent-%COMP%]{color:var(--color-gray-700)}ion-grid.get-started-banner[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:var(--color-white)}ion-grid.get-started-banner[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:0 0 14px;font-size:22px;font-weight:600;line-height:1.12em;letter-spacing:.25px;color:var(--color-dark)}ion-grid.get-started-banner[_ngcontent-%COMP%]   .get-started-text[_ngcontent-%COMP%]{font-size:16px;line-height:1.5em;color:var(--color-gray-700);margin:0}ion-grid.get-started-banner[_ngcontent-%COMP%]   .ion-col-img[_ngcontent-%COMP%]{min-width:104px;display:flex;align-items:flex-end}ion-grid.get-started-banner[_ngcontent-%COMP%]   .ion-col-btn[_ngcontent-%COMP%]{display:flex;align-items:flex-end}ion-grid.get-started-banner[_ngcontent-%COMP%]   ion-img[_ngcontent-%COMP%]{position:absolute;max-width:124px;right:8px;bottom:0}@media only screen and (min-width: 1200px){ion-grid.get-started-banner[_ngcontent-%COMP%]{position:relative;padding:32px 40px}ion-grid.get-started-banner[_ngcontent-%COMP%]   .ion-col-content[_ngcontent-%COMP%]{padding:0 24px 0 16px}ion-grid.get-started-banner[_ngcontent-%COMP%]   .ion-col-img[_ngcontent-%COMP%]{min-width:116px;display:flex;align-items:flex-end}ion-grid.get-started-banner[_ngcontent-%COMP%]   ion-img[_ngcontent-%COMP%]{max-width:194px;position:absolute;top:0;left:-10px;bottom:0}}"],changeDetection:0}),n})(),Fe=(()=>{class n{constructor(t){this.connectSvc=t}getTheme(t){return(0,w.mG)(this,void 0,void 0,function*(){try{this.theme=yield this.connectSvc.get(`themes/current_week_theme?week_start=${t}`,!0)}catch(i){this.connectSvc.handleError(i)}})}}return n.\u0275fac=function(t){return new(t||n)(e.LFG(U.F))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Be(n,o){if(1&n&&(e.TgZ(0,"section",1)(1,"div",2)(2,"header",3),e._uU(3),e.qZA(),e.TgZ(4,"p",4),e._uU(5),e.qZA()(),e._UZ(6,"img",5),e.qZA()),2&n){const t=e.oxw();e.xp6(3),e.Oqu(t.themesSvc.theme.title),e.xp6(2),e.Oqu(t.themesSvc.theme.content),e.xp6(1),e.Q6J("src",t.themesSvc.theme.image_url,e.LSH)}}let Qe=(()=>{class n{constructor(t){this.themesSvc=t}ngOnChanges(){this.themesSvc.getTheme(this.weekStart)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(Fe))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-motivation"]],inputs:{weekStart:"weekStart"},features:[e.TTD],decls:1,vars:1,consts:[["class","motivation",4,"ngIf"],[1,"motivation"],[1,"motivation__details"],[1,"motivation__title"],[1,"motivation__text","mt-1"],["alt","",1,"motivation__img",3,"src"]],template:function(t,i){1&t&&e.YNc(0,Be,7,3,"section",0),2&t&&e.Q6J("ngIf",i.themesSvc.theme)},directives:[v.O5],styles:["[_nghost-%COMP%]{display:block}.motivation[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;background:var(--color-light-green);border-radius:15px;overflow:hidden}.motivation__details[_ngcontent-%COMP%]{padding:20px 16px 16px}.motivation__title[_ngcontent-%COMP%]{font-size:22px;font-weight:600;line-height:1.12em;letter-spacing:.25px;color:var(--color-dark)}.motivation__text[_ngcontent-%COMP%]{font-size:16px;line-height:1.5em;color:var(--color-gray-700);margin:0}.motivation__img[_ngcontent-%COMP%]{max-width:180px;max-height:90px}@media only screen and (max-width: 1023px){.motivation__img[_ngcontent-%COMP%]{display:none}}"]}),n})();var je=s(86114),Ge=s(58442),Le=s(85960),Re=s(7417),ze=s(89499),qe=s(82282),Ve=s(64662),Ke=s(32420),$e=s(27644);function Xe(n,o){if(1&n&&(e.ynx(0),e._uU(1),e.TgZ(2,"small"),e._uU(3),e.qZA(),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.hij(" ",t.value,""),e.xp6(2),e.Oqu(t.unit)}}function et(n,o){if(1&n&&(e.ynx(0),e._uU(1),e.ALo(2,"number"),e.TgZ(3,"small"),e._uU(4),e.qZA(),e._uU(5),e.ALo(6,"number"),e.TgZ(7,"small"),e._uU(8,"lb"),e.qZA(),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.hij(" ",e.xi3(2,3,t.weightStoneLbs1,"1.0-2"),""),e.xp6(3),e.hij("",t.WeightUnit.Stone,","),e.xp6(1),e.Oqu(e.xi3(6,6,t.weightStoneLbs2,"1.0-2"))}}function tt(n,o){if(1&n&&(e.TgZ(0,"div",11),e.YNc(1,Xe,4,2,"ng-container",12),e.YNc(2,et,9,9,"ng-container",12),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.unit!==t.WeightUnit.Stone),e.xp6(1),e.Q6J("ngIf",t.unit===t.WeightUnit.Stone)}}function nt(n,o){if(1&n&&(e.TgZ(0,"div",13),e._uU(1," __"),e.TgZ(2,"small"),e._uU(3),e.qZA()()),2&n){const t=e.oxw();e.xp6(3),e.Oqu(t.unit)}}let ot=(()=>{class n{constructor(){this.add=new e.vpe,this.WeightUnit=N.Cp}get weightStoneLbs1(){if(this.unit===N.Cp.Stone)return(0,Q.eH)(this.value).split(" ")[0]}get weightStoneLbs2(){if(this.unit===N.Cp.Stone)return(0,Q.eH)(this.value).split(" ")[2]}onAdd(){this.add.emit(this.category)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-progress"]],inputs:{category:"category",unit:"unit",value:"value",description:"description"},outputs:{add:"add"},decls:13,vars:4,consts:[[1,"progressBox"],[1,"progressBox__header"],[1,"progressBox__param"],["src","assets/images/icons/info.svg","width","15","alt","","title","Info"],["type","button",1,"button","button_icon"],["src","assets/images/icons/add.svg","alt","",3,"click"],[1,"progressBox__body"],["class","progressBox__value",4,"ngIf"],["class","progressBox__placeholder",4,"ngIf"],[1,"progressBox__footer"],[1,"progressBox__label"],[1,"progressBox__value"],[4,"ngIf"],[1,"progressBox__placeholder"]],template:function(t,i){1&t&&(e.TgZ(0,"section",0)(1,"div",1)(2,"div",2),e._uU(3),e._UZ(4,"img",3),e.qZA(),e.TgZ(5,"button",4)(6,"img",5),e.NdJ("click",function(){return i.onAdd()}),e.qZA()()(),e.TgZ(7,"div",6),e.YNc(8,tt,3,2,"div",7),e.YNc(9,nt,4,1,"div",8),e.qZA(),e.TgZ(10,"div",9)(11,"div",10),e._uU(12),e.qZA()()()),2&t&&(e.xp6(3),e.hij(" ",i.category," "),e.xp6(5),e.Q6J("ngIf",i.value),e.xp6(1),e.Q6J("ngIf",!i.value),e.xp6(3),e.hij(" ",i.description," "))},directives:[v.O5],pipes:[v.JJ],styles:[".progressBox[_ngcontent-%COMP%]{height:170px;padding:20px 16px;border:1px solid var(--color-gray-300);border-radius:9px}.progressBox_dashed[_ngcontent-%COMP%]{border-style:dashed}.progressBox__param[_ngcontent-%COMP%]{display:flex;align-items:center}.progressBox__param[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:block;margin:3px 0 0 3px}.progressBox__header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.progressBox__body[_ngcontent-%COMP%]{margin:12px 0 4px}.progressBox__value[_ngcontent-%COMP%]{font-size:42px;line-height:50px;letter-spacing:-.5px;color:var(--color-dark)}.progressBox__value[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{font-size:14px;line-height:28px;color:var(--color-gray-600)}.progressBox__placeholder[_ngcontent-%COMP%]{font-size:42px;line-height:50px;letter-spacing:-.5px;color:#c3c3c3}.progressBox__placeholder[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{font-size:14px;line-height:28px;color:var(--color-gray-600)}.progressBox__label[_ngcontent-%COMP%]{font-size:13px;line-height:1.6em;letter-spacing:.4px;color:var(--color-gray-600);display:flex}"]}
1),n})();var it=s(43839),rt=s(4794);const st=["meals"],at=["workouts"],lt=["progress"],ct=["knowledge"],pt=["mindfulness"];function dt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"app-days",48,49),e.NdJ("dateChanged",function(r){e.CHM(t);const g=e.MAs(1);return e.oxw().dateChanged(r,g.selectedWeek)})("weekChanged",function(r){e.CHM(t);const g=e.MAs(1);return e.oxw().weekChanged(r,g.selectedWeek)}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("name",null==t.profile?null:t.profile.first_name)("currentWeek",null==t.profile?null:t.profile.current_week)("weekNumber",t.weekNumber)("membershipStatus",null==t.profile?null:t.profile.membership_status)("isMemberPaymentActive",null==t.profile?null:t.profile.member_payment_active)("showOnlyDates",!1)}}function gt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"app-days",50,51),e.NdJ("dateChanged",function(r){e.CHM(t);const g=e.MAs(1);return e.oxw().dateChanged(r,g.selectedWeek)})("weekChanged",function(r){e.CHM(t);const g=e.MAs(1);return e.oxw().weekChanged(r,g.selectedWeek)}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("name",null==t.profile?null:t.profile.first_name)("currentWeek",null==t.profile?null:t.profile.current_week)("weekNumber",t.weekNumber)("membershipStatus",null==t.profile?null:t.profile.membership_status)("showOnlyHeader",!1)("isMemberPaymentActive",null==t.profile?null:t.profile.member_payment_active)}}function ut(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"app-days",52,53),e.NdJ("dateChanged",function(r){e.CHM(t);const g=e.MAs(1);return e.oxw().dateChanged(r,g.selectedWeek)})("weekChanged",function(r){e.CHM(t);const g=e.MAs(1);return e.oxw().weekChanged(r,g.selectedWeek)}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("name",null==t.profile?null:t.profile.first_name)("currentWeek",null==t.profile?null:t.profile.current_week)("weekNumber",t.weekNumber)("membershipStatus",null==t.profile?null:t.profile.membership_status)("isMemberPaymentActive",null==t.profile?null:t.profile.member_payment_active)}}function _t(n,o){1&n&&(e.ynx(0),e._UZ(1,"br"),e.TgZ(2,"div",54),e._UZ(3,"app-get-started-banner"),e.qZA(),e.BQk())}function mt(n,o){if(1&n&&e._UZ(0,"app-motivation",55),2&n){const t=e.oxw();e.Q6J("weekStart",t.weekStart)}}function ht(n,o){1&n&&(e.TgZ(0,"ion-slide")(1,"div",56),e._UZ(2,"app-weekly-goals"),e.qZA()())}function ft(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",57),e.NdJ("next",function(){e.CHM(t);const r=e.oxw();return r.scrollIntoStepView(r.workoutsElement)}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("joyrideStep",t.steps[1])("title",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[1].title)("text",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[1].content)}}function wt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"app-meals",60),e.NdJ("mealSwapped",function(){return e.CHM(t),e.oxw(2).getTodaysMeals()})("popupOpen",function(r){return e.CHM(t),e.oxw(2).onMealPopupOpen(r)}),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("currentWeek",null==t.profile?null:t.profile.current_week)("weekNumber",t.weekNumber)("footer",t.isCurrentWeek)("week",t.weekMealPlan)("dayToShow",t.dayOfWeek)("units",t.profile.assessment.units)}}function vt(n,o){if(1&n&&(e.TgZ(0,"div",58),e.YNc(1,wt,1,6,"app-meals",59),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.dayOfWeek)}}function xt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"app-meals",60),e.NdJ("mealSwapped",function(){return e.CHM(t),e.oxw(2).getTodaysMeals()})("popupOpen",function(r){return e.CHM(t),e.oxw(2).onMealPopupOpen(r)}),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("currentWeek",null==t.profile?null:t.profile.current_week)("weekNumber",t.weekNumber)("footer",t.isCurrentWeek)("week",t.weekMealPlan)("dayToShow",t.dayOfWeek)("units",t.profile.assessment.units)}}function yt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",61),e.NdJ("next",function(){e.CHM(t);const r=e.oxw();return r.scrollIntoStepView(r.workoutsElement)}),e.YNc(1,xt,1,6,"app-meals",59),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("joyrideStep",t.steps[1])("title",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[1].title)("text",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[1].content),e.xp6(1),e.Q6J("ngIf",t.dayOfWeek)}}function bt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",62),e.NdJ("next",function(){e.CHM(t);const r=e.oxw();return r.scrollIntoStepView(r.progressElement)})("prev",function(){e.CHM(t);const r=e.oxw();return r.scrollIntoStepView(r.mealsElement)}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("joyrideStep",t.steps[2])("title",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[2].title)("text",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[2].content)}}function Ct(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"app-workout-banner",64),e.NdJ("popupOpen",function(r){return e.CHM(t),e.oxw(2).onWorkoutPopupOpen(r)})("doneChange",function(r){return e.CHM(t),e.oxw(2).onWorkoutDoneChange(r)}),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("footer",t.isCurrentWeek)("workout",t.todaysWorkout.workout)("workoutDayId",t.todaysWorkout.id)("isComplete",t.todaysWorkout.is_complete)}}function Pt(n,o){if(1&n&&(e.TgZ(0,"div",58),e.YNc(1,Ct,1,4,"app-workout-banner",63),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.todaysWorkout)}}function Mt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"app-workout-banner",64),e.NdJ("popupOpen",function(r){return e.CHM(t),e.oxw(2).onWorkoutPopupOpen(r)})("doneChange",function(r){return e.CHM(t),e.oxw(2).onWorkoutDoneChange(r)}),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("footer",t.isCurrentWeek)("workout",t.todaysWorkout.workout)("workoutDayId",t.todaysWorkout.id)("isComplete",t.todaysWorkout.is_complete)}}function Ot(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",65),e.NdJ("next",function(){e.CHM(t);const r=e.oxw();return r.scrollIntoStepView(r.progressElement)})("prev",function(){e.CHM(t);const r=e.oxw();return r.scrollIntoStepView(r.mealsElement)}),e.YNc(1,Mt,1,4,"app-workout-banner",63),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("joyrideStep",t.steps[2])("title",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[2].title)("text",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[2].content),e.xp6(1),e.Q6J("ngIf",t.todaysWorkout)}}function At(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",66),e.NdJ("prev",function(){e.CHM(t);const r=e.oxw();return r.scrollIntoStepView(r.workoutsElement)})("next",function(){e.CHM(t);const r=e.oxw();return r.scrollIntoStepView(r.knowledgeElement)}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("joyrideStep",t.steps[3])("title",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[3].title)("text",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[3].content)}}function kt(n,o){}function Dt(n,o){if(1&n&&(e.TgZ(0,"div",58),e.YNc(1,kt,0,0,"ng-template",67),e.qZA()),2&n){e.oxw();const t=e.MAs(82);e.xp6(1),e.Q6J("ngTemplateOutlet",t)}}function Tt(n,o){}function St(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",68),e.NdJ("prev",function(){e.CHM(t);const r=e.oxw();return r.scrollIntoStepView(r.workoutsElement)})("next",function(){e.CHM(t);const r=e.oxw();return r.scrollIntoStepView(r.knowledgeElement)}),e.YNc(1,Tt,0,0,"ng-template",67),e.qZA()}if(2&n){const t=e.oxw(),i=e.MAs(82);e.Q6J("joyrideStep",t.steps[3])("title",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[3].title)("text",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[3].content),e.xp6(1),e.Q6J("ngTemplateOutlet",i)}}function Zt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",66),e.NdJ("prev",function(){e.CHM(t);const r=e.oxw();return r.scrollIntoStepView(r.progressElement)})("next",function(){e.CHM(t);const r=e.oxw();return r.scrollIntoStepView(r.mindfulnessElement)}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("joyrideStep",t.steps[4])("title",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[4].title)("text",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[4].content)}}function Et(n,o){}function It(n,o){if(1&n&&(e.TgZ(0,"div",69),e.YNc(1,Et,0,0,"ng-template",67),e.qZA()),2&n){e.oxw();const t=e.MAs(84);e.xp6(1),e.Q6J("ngTemplateOutlet",t)}}function Nt(n,o){}function Yt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",68),e.NdJ("prev",function(){e.CHM(t);const r=e.oxw();return r.scrollIntoStepView(r.progressElement)})("next",function(){e.CHM(t);const r=e.oxw();return r.scrollIntoStepView(r.mindfulnessElement)}),e.YNc(1,Nt,0,0,"ng-template",67),e.qZA()}if(2&n){const t=e.oxw(),i=e.MAs(84);e.Q6J("joyrideStep",t.steps[4])("title",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[4].title)("text",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[4].content),e.xp6(1),e.Q6J("ngTemplateOutlet",i)}}function Wt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",70),e.NdJ("prev",function(){e.CHM(t);const r=e.oxw();return r.scrollIntoStepView(r.knowledgeElement)}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("joyrideStep",t.steps[5])("title",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[5].title)("text",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[5].content)}}function Ht(n,o){}function Ut(n,o){if(1&n&&(e.TgZ(0,"div",58),e.YNc(1,Ht,0,0,"ng-template",67),e.qZA()),2&n){e.oxw();const t=e.MAs(86);e.xp6(1),e.Q6J("ngTemplateOutlet",t)}}function Jt(n,o){}function Ft(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",71),e.NdJ("prev",function(){e.CHM(t);const r=e.oxw();return r.scrollIntoStepView(r.knowledgeElement)}),e.YNc(1,Jt,0,0,"ng-template",67),e.qZA()}if(2&n){const t=e.oxw(),i=e.MAs(86);e.Q6J("joyrideStep",t.steps[5])("title",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[5].title)("text",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[5].content),e.xp6(1),e.Q6J("ngTemplateOutlet",i)}}function Bt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"app-track-modal",72),e.NdJ("closeEventEmitter",function(){return e.CHM(t),e.oxw().closeModal()})("done",function(r){return e.CHM(t),e.oxw().doneModal(r)}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("height",t.height)("category",t.trackCategory)("unit",t.trackUnit)}}function Qt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"app-explore-document-popup",73),e.NdJ("isDoneChange",function(r){return e.CHM(t),e.oxw().featuredDocumentDone(r)})("closeEventEmitter",function(){return e.CHM(t),e.oxw().closeKnowledgeDocumentPopup()})("favouriteChanged",function(r){return e.CHM(t),e.oxw().knowledgeDocumentFavouriteChange(r)}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("id",t.knowledgeDocument.id)("weekNumber",t.weekNumber)("dayNumber",t.dayNumber)("showDone",!0)("isComplete",t.todayFeaturedDocumentDone)}}function jt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"app-explore-document-popup",74),e.NdJ("isDoneChange",function(r){return e.CHM(t),e.oxw().featuredDocumentDone(r)})("closeEventEmitter",function(){return e.CHM(t),e.oxw().closeMindfulnessDocumentPopup()})("favouriteChanged",function(r){return e.CHM(t),e.oxw().mindfulnessDocumentFavouriteChange(r)}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("id",t.mindfulnessDocument.id)("showDone",!1)("isComplete",t.todayFeaturedDocumentDone)}}function Gt(n,o){1&n&&(e.TgZ(0,"button",75),e._uU(1,"Previous"),e.qZA())}function Lt(n,o){1&n&&(e.TgZ(0,"button",75),e._uU(1,"Next"),e.qZA())}function Rt(n,o){1&n&&(e.TgZ(0,"button",75),e._uU(1,"Complete"),e.qZA())}function zt(n,o){1&n&&e._uU(0),2&n&&e.AsE(" ",o.step," of ",o.total,"\n")}function qt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"app-progress",84),e.NdJ("add",function(r){return e.CHM(t),e.oxw(2).addEntry(r)}),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("category",t.TrackCategory.Weight)("unit",t.weightUnit)("value",t.latestWeight)("description",t.weightDescription)}}function Vt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"app-progress",85),e.NdJ("add",function(r){return e.CHM(t),e.oxw(2).addEntry(r)}),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("category",t.TrackCategory.Waist)("unit",t.waistUnit)("value",t.latestWaist)("description",t.waistDescription)}}const Kt=function(){return["/tabs/track"]};function $t(n,o){if(1&n&&(e.TgZ(0,"h2",76),e._uU(1,"Today\u2019s progress"),e.qZA(),e.TgZ(2,"div",77)(3,"ion-grid")(4,"ion-row")(5,"ion-col",78),e.YNc(6,qt,1,4,"a
1pp-progress",79),e.qZA(),e.TgZ(7,"ion-col",78),e.YNc(8,Vt,1,4,"app-progress",80),e.qZA()()(),e.TgZ(9,"a",81)(10,"div",82),e._uU(11," Explore your progress "),e._UZ(12,"ion-icon",83),e.qZA()()()),2&n){const t=e.oxw();e.xp6(6),e.Q6J("ngIf",t.weights),e.xp6(2),e.Q6J("ngIf",t.waists),e.xp6(1),e.Q6J("routerLink",e.DdM(3,Kt))}}function Xt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"h2",86),e._uU(1,"Today\u2019s Knowledge"),e.qZA(),e.TgZ(2,"div",87)(3,"div",88)(4,"figure",89),e.NdJ("click",function(){return e.CHM(t),e.oxw().openKnowledgeDocumentPopup()}),e._UZ(5,"img",90),e.qZA(),e.TgZ(6,"div")(7,"header",91)(8,"span",92),e.NdJ("click",function(){return e.CHM(t),e.oxw().openKnowledgeDocumentPopup()}),e._uU(9),e.qZA(),e.TgZ(10,"app-favourite",93),e.NdJ("favouriteChanged",function(r){return e.CHM(t),e.oxw().knowledgeDocumentFavouriteChange(r)}),e.qZA()(),e.TgZ(11,"div",94)(12,"span",95),e._uU(13),e.qZA()(),e.TgZ(14,"p",96),e._uU(15),e.qZA(),e.TgZ(16,"app-mark-as-done-button",97),e.NdJ("changeDone$",function(r){e.CHM(t);const g=e.oxw();return r?g.markAsDoneTodayFeaturedDocument():null}),e.qZA()()()()}if(2&n){const t=e.oxw();e.xp6(5),e.Q6J("src",null==t.knowledgeDocument?null:t.knowledgeDocument.thumbnail_image_url,e.LSH),e.xp6(4),e.Oqu(null==t.knowledgeDocument?null:t.knowledgeDocument.title),e.xp6(1),e.Q6J("favourite",null==t.knowledgeDocument?null:t.knowledgeDocument.is_favourite)("id",null==t.knowledgeDocument?null:t.knowledgeDocument.id)("favouriteId",null==t.knowledgeDocument||null==t.knowledgeDocument.favourite?null:t.knowledgeDocument.favourite.id),e.xp6(3),e.hij("",null==t.knowledgeDocument?null:t.knowledgeDocument.reading_time," min read"),e.xp6(2),e.hij(" ",null==t.knowledgeDocument?null:t.knowledgeDocument.summary," "),e.xp6(1),e.Q6J("isDone",t.todayFeaturedDocumentDone)}}function en(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"h2",86),e._uU(1,"Mindfulness"),e.qZA(),e.TgZ(2,"div",87)(3,"div",88)(4,"figure",89),e.NdJ("click",function(){return e.CHM(t),e.oxw().openMindfulnessDocumentPopup()}),e._UZ(5,"img",90),e.qZA(),e.TgZ(6,"div")(7,"header",98),e.NdJ("click",function(){return e.CHM(t),e.oxw().openMindfulnessDocumentPopup()}),e._uU(8),e.TgZ(9,"app-favourite",93),e.NdJ("favouriteChanged",function(r){return e.CHM(t),e.oxw().mindfulnessDocumentFavouriteChange(r)}),e.qZA()(),e.TgZ(10,"div",94)(11,"span",95),e._uU(12),e.qZA()(),e.TgZ(13,"p",96),e._uU(14),e.qZA()()()()}if(2&n){const t=e.oxw();e.xp6(5),e.Q6J("src",null==t.mindfulnessDocument?null:t.mindfulnessDocument.thumbnail_image_url,e.LSH),e.xp6(3),e.hij(" ",null==t.mindfulnessDocument?null:t.mindfulnessDocument.title," "),e.xp6(1),e.Q6J("favourite",null==t.mindfulnessDocument?null:t.mindfulnessDocument.is_favourite)("id",null==t.mindfulnessDocument?null:t.mindfulnessDocument.id)("favouriteId",null==t.mindfulnessDocument||null==t.mindfulnessDocument.favourite?null:t.mindfulnessDocument.favourite.id),e.xp6(3),e.hij("",null==t.mindfulnessDocument?null:t.mindfulnessDocument.reading_time," min read"),e.xp6(2),e.hij(" ",null==t.mindfulnessDocument?null:t.mindfulnessDocument.summary," ")}}const tn=function(){return{slidesPerView:1.5,spaceBetween:15}};let J=class{constructor(o,t,i,r,g,S,on,rn,sn,an,ln,cn,pn,dn,gn,te,un,_n){this.modalCtrl=o,this.mealsSvc=t,this.profileSvc=i,this.workoutSvc=r,this.documentSvc=g,this.trackSvc=S,this.router=on,this.navCtrl=rn,this.fcmSvc=sn,this.platform=an,this.weeklyGoalsSvc=ln,this.firebaseAnalyticsSvc=cn,this.storageSvc=pn,this.joyrideService=dn,this.onboardingSlidesService=gn,this.onboardingWalkthroughsService=te,this.tabs=un,this.deepLinkService=_n,this.date=l().format("YYYY-MM-DD"),this.showTrackModal=!1,this.showKnowledgeDocumentPopup=!1,this.showMindfulnessDocumentPopup=!1,this.TrackCategory=I.J,this.recipePopupOpen=!1,this.workoutPopupOpen=!1,this.steps=Array.from({length:6},(hn,mn)=>(mn+1).toString()),this.calendarContainerOffset=68,this.lastScrollTop=0,this.scrolledOffset$=new p.x,this.profileDataFetched$=new p.x,this.pageDataFetched$=new p.x,this.onboardingSlidesClosed$=new p.x,te.changeOnboardingFlagsChecked(!1),this.weekStart=l(this.date,"YYYY-MM-DD").startOf("isoWeek").format("YYYY-MM-DD")}get isIos(){return this.platform.is("ios")}get dayNumber(){return l(this.date).isoWeekday()}get profile(){return this.profileSvc.profile}get isCurrentWeek(){return this.weekNumber===this.profile.current_week}get weekMealPlan(){return this.mealsSvc.weekMealPlan}get latestWeight(){if(0===this.weights.length)return null;const o=this.weights[0].measurement;if(this.weightUnit===N.Cp.Stone)return(0,Q.FO)(o);const t=o.split(" ");return Number(t[0])}get latestWaist(){if(0===this.waists.length)return null;const t=this.waists[0].measurement.split(" ");return Number(t[0])}get weightGoalValue(){return this.weightGoal[this.weightUnit]}get waistGoalValue(){return this.waistGoal[this.waistUnit]}get weightGoalValueInNumber(){if(!this.weightGoalValue)return null;const o=this.weightGoalValue;return this.weightUnit===N.Cp.Stone?(0,Q.FO)(o):Number(o.split(" ")[0])}get waistGoalValueInNumber(){return this.waistGoalValue?Number(this.waistGoalValue.split(" ")[0]):null}get weightLeft(){return this.weightGoalValueInNumber&&this.latestWeight?Math.abs(this.weightGoalValueInNumber-this.latestWeight):null}get waistLeft(){return this.waistGoalValueInNumber&&this.latestWaist?Math.abs(this.waistGoalValueInNumber-this.latestWaist):null}get weightLeftWithUnit(){return this.weightLeft?this.weightUnit===N.Cp.Stone?(0,Q.eH)(this.weightLeft):(0,v.uf)(this.weightLeft,"en-US","1.1-2")+" "+this.weightUnit:null}get waistLeftWithUnit(){return this.waistLeft?(0,v.uf)(this.waistLeft,"en-US","1.1-2")+" "+this.waistUnit:null}get weightDescription(){return this.weightLeftWithUnit&&this.weightGoalValue?`${this.weightLeftWithUnit} away from your goal of ${this.weightGoalValue}`:""}get waistDescription(){return this.waistLeftWithUnit&&this.waistGoalValue?`${this.waistLeftWithUnit} away from your goal of ${this.waistGoalValue}`:""}get isActiveOrRequestCancelSubscription(){return(0,X.Bq)(this.profile.membership_status)}ngOnInit(){(0,z.LR)(this.platform)&&this.fcmSvc.register(),this.deepLinkService.initDeepLinks(),this.handleRouteExploreRestoration(),this.listenHomeRouterEvents(),this.foregroundMoment=l(),(0,z.LR)(this.platform)?this.resumeSubscription=this.platform.resume.subscribe(()=>{l().diff(this.foregroundMoment,"minute")>30&&this.loadData(),this.foregroundMoment=l()}):this.visibilitySubscription=(0,h.R)(document,"visibilitychange").subscribe(()=>{document.hidden||(l().diff(this.foregroundMoment,"minute")>30&&this.loadData(),this.foregroundMoment=l())})}ngOnDestroy(){(0,z.LR)(this.platform)?this.resumeSubscription.unsubscribe():this.visibilitySubscription.unsubscribe()}scrollIntoStepView(o,t="center"){if(this.isIos){const r=document.getElementsByTagName("body")[0];r.classList.contains("iphone-specific-backdrop")||(r.className+=" iphone-specific-backdrop")}null==o||o.nativeElement.scrollIntoView({behaviour:"smooth",block:t})}logScreenViewEvent(){this.firebaseAnalyticsSvc.logScreenViewEvent(D.U.HOME)}loadData(){return(0,w.mG)(this,void 0,void 0,function*(){yield this.profileSvc.getProfile(),this.profileDataFetched$.next(),this.weekNumber=this.profileSvc.profile.current_week,yield Promise.allSettled([this.setAssessmentData(),this.getTodaysMeals(),this.getTodaysWorkout(),this.getTodayFeaturedDocument(),this.loadTrackData()]),this.pageDataFetched$.next()})}getTodaysMeals(){return(0,w.mG)(this,void 0,void 0,function*(){yield this.mealsSvc.getWeekMealPlan(this.weekStart),this.setDayMeals()})}setDayMeals(){this.dayOfWeek=l(this.date,"YYYY-MM-DD").isoWeekday()}onMealPopupOpen(o){this.recipePopupOpen=o,o?this.tabs.hideTabs():this.tabs.showTabs(),o?this.firebaseAnalyticsSvc.logEvent(D.U.RECIPE_VIEWER,{content_type:"meal_plan"}):this.firebaseAnalyticsSvc.logScreenViewEvent(D.U.HOME)}getTodaysWorkout(){return(0,w.mG)(this,void 0,void 0,function*(){this.todaysWorkout=null,yield this.workoutSvc.getWeekWorkouts(this.weekStart),this.setDayWork
1out()})}setDayWorkout(){const o=this.workoutSvc.weekWorkouts.days.find(t=>t.day===l(this.date,"YYYY-MM-DD").isoWeekday());o&&(this.todaysWorkout=o)}onWorkoutPopupOpen(o){this.workoutPopupOpen=o,o?this.tabs.hideTabs():this.tabs.showTabs(),o?this.firebaseAnalyticsSvc.logEvent(D.U.WORKOUT_VIEWER,{content_type:"workouts"}):this.firebaseAnalyticsSvc.logScreenViewEvent(D.U.HOME)}onWorkoutDoneChange(o){if(this.todaysWorkout){const t=Object.assign(Object.assign({},this.todaysWorkout),{is_complete:o}),i=this.workoutSvc.weekWorkouts.days.findIndex(r=>(null==r?void 0:r.id)===(null==t?void 0:t.id));-1!==i&&(this.workoutSvc.weekWorkouts.days[i]=t),this.todaysWorkout=t}}getTodayFeaturedDocument(){return(0,w.mG)(this,void 0,void 0,function*(){this.knowledgeDocument=null,this.mindfulnessDocument=null,this.todayFeaturedDocumentDone=null;const[o,t]=yield Promise.all([this.documentSvc.getTodayFeaturedDocument(this.weekNumber,this.dayNumber),this.documentSvc.getTodayFeaturedDocumentDone(this.weekNumber,this.dayNumber)]);this.knowledgeDocument=o.knowledge_document,this.mindfulnessDocument=o.mindfulness_document,this.todayFeaturedDocumentDone=t})}markAsDoneTodayFeaturedDocument(){return(0,w.mG)(this,void 0,void 0,function*(){yield this.documentSvc.markAsDoneTodayFeaturedDocument(this.weekNumber,this.dayNumber),this.weeklyGoalsSvc.fetchWeeklyGoals(),this.todayFeaturedDocumentDone=!0})}dateChanged(o,t){this.setDateAndWeekNumberWeekStart(o,t),this.setDayMeals(),this.setDayWorkout(),this.getTodayFeaturedDocument()}weekChanged(o,t){this.setDateAndWeekNumberWeekStart(o,t),this.getTodaysMeals(),this.getTodaysWorkout(),this.getTodayFeaturedDocument()}setAssessmentData(){var o,t;return(0,w.mG)(this,void 0,void 0,function*(){const i=this.profileSvc.profile,r=i.assessment;this.height=r.height[N.Z3.Cm],this.weightUnit=null!==(o=i.weight_tracker_unit)&&void 0!==o?o:N.Cp.Kg,this.waistUnit=null!==(t=i.waist_tracker_unit)&&void 0!==t?t:N.wR.Cm,this.weightGoal=r.weight_goal,this.waistGoal=r.waist_goal})}loadTrackData(){return(0,w.mG)(this,void 0,void 0,function*(){yield Promise.all([this.loadWeights(),this.loadWaists()])})}loadWeights(){return(0,w.mG)(this,void 0,void 0,function*(){this.weights=yield this.trackSvc.getWeights(this.weightUnit)})}loadWaists(){return(0,w.mG)(this,void 0,void 0,function*(){this.waists=yield this.trackSvc.getWaists(this.waistUnit)})}addEntry(o){return(0,w.mG)(this,void 0,void 0,function*(){this.trackCategory=o,this.setUnit(),this.showTrackModal=!0,this.firebaseAnalyticsSvc.logScreenViewEvent(D.U.ADD_TRACK_ENTRY)})}closeModal(){this._closeTrackModal()}doneModal(o){o&&(this.trackCategory===I.J.Weight?this.weightUnit=o:this.trackCategory===I.J.Waist&&(this.waistUnit=o)),this.refreshTrackData(),this.trackCategory=null,this._closeTrackModal()}openKnowledgeDocumentPopup(){return(0,w.mG)(this,void 0,void 0,function*(){this.tabs.hideTabs(),this.showKnowledgeDocumentPopup=!0,this.firebaseAnalyticsSvc.logEvent(D.U.DOCUMENT_VIEWER,{content_type:"Today's Knowledge"})})}closeKnowledgeDocumentPopup(){this.tabs.showTabs(),this.showKnowledgeDocumentPopup=!1,this.firebaseAnalyticsSvc.logScreenViewEvent(D.U.HOME)}knowledgeDocumentFavouriteChange(o){this.knowledgeDocument.is_favourite=o.is_favourite,this.knowledgeDocument.favourite=o.favourite}openMindfulnessDocumentPopup(){return(0,w.mG)(this,void 0,void 0,function*(){this.tabs.hideTabs(),this.showMindfulnessDocumentPopup=!0,this.firebaseAnalyticsSvc.logEvent(D.U.DOCUMENT_VIEWER,{content_type:"mindfulness"})})}closeMindfulnessDocumentPopup(){this.tabs.showTabs(),this.showMindfulnessDocumentPopup=!1,this.firebaseAnalyticsSvc.logScreenViewEvent(D.U.HOME)}mindfulnessDocumentFavouriteChange(o){this.mindfulnessDocument.is_favourite=o.is_favourite,this.mindfulnessDocument.favourite=o.favourite}featuredDocumentDone(o){this.todayFeaturedDocumentDone=o}handleRouteExploreRestoration(){return(0,w.mG)(this,void 0,void 0,function*(){const o=yield this.storageSvc.getRouterExplore();if(o&&o.includes("tabs/explore")){const t=o.split("?")[0],i=U.F.getQueryParamFromUrl(o,"segment"),r=U.F.getQueryParamFromUrl(o,"id");this.navCtrl.navigateRoot([t],{queryParams:{segment:i,id:r},queryParamsHandling:"merge"}),this.storageSvc.removeRouterExplore()}})}listenHomeRouterEvents(){this.router.events.pipe((0,O.h)(o=>o instanceof y.m2),(0,A.U)(o=>o),(0,f.t)(this)).subscribe(o=>{(o.url.startsWith("/tabs/home")||o.urlAfterRedirects.startsWith("/tabs/home"))&&(this.listenOnOnboardingSlidesClose(),this.handleOnboardingSlidesFlag(),this.handleOnboardingWalkthroughFlag(),this.logScreenViewEvent(),this.date=l().format("YYYY-MM-DD"),this.loadData())})}setDateAndWeekNumberWeekStart(o,t){this.date=o,this.weekNumber=t,this.weekStart=l(o,"YYYY-MM-DD").startOf("isoWeek").format("YYYY-MM-DD")}setUnit(){switch(this.trackCategory){case I.J.Weight:this.trackUnit=this.weightUnit;break;case I.J.Waist:this.trackUnit=this.waistUnit}}
1refreshTrackData(){let o=Promise.resolve();switch(this.trackCategory){case I.J.Weight:o=this.loadWeights();break;case I.J.Waist:o=this.loadWaists()}return o}_closeTrackModal(){this.showTrackModal=!1,this.firebaseAnalyticsSvc.logScreenViewEvent(D.U.HOME)}handleOnboardingSlidesFlag(){this.profileDataFetched$.pipe((0,P.P)(),R(500),(0,c.b)(()=>{var o;(null===(o=this.profile)||void 0===o?void 0:o.onboaridng_slides_flag)&&this.openOnboardingSlidesModal()})).subscribe()}get isNativeApp(){return(0,z.LR)(this.platform)}openOnboardingSlidesModal(){return(0,w.mG)(this,void 0,void 0,function*(){try{const t=(yield this.onboardingSlidesService.fetchOnboardingSlidesContent()).slides.filter(g=>!this.isNativeApp||!("appStoreURL"in g)),i=yield this.modalCtrl.create({backdropDismiss:!1,cssClass:"f8-onboarding-slides-modal",component:ue,componentProps:{slides:t}});i.present();const{role:r}=yield i.onWillDismiss();"close"===r&&(i.dismiss(),yield this.profileSvc.updateProfile({onboaridng_slides_flag:!1}),yield this.profileSvc.getProfile(),this.onboardingWalkthroughsService.changeOnboardingFlagsChecked(!0),this.onboardingSlidesClosed$.next())}catch(o){console.error("openOnboardingSlidesModal()",o),this.onboardingWalkthroughsService.changeOnboardingFlagsChecked(!0),_.Tb(o)}})}handleOnboardingWalkthroughFlag(){(0,E.a)([this.profileDataFetched$,this.pageDataFetched$]).pipe((0,P.P)(),(0,c.b)(()=>{var o,t;this.profile&&!this.profile.onboaridng_slides_flag&&this.profile.onboarding_walkthrough_flag&&this.onboardingSlidesClosed$.next(),!(null===(o=this.profile)||void 0===o?void 0:o.onboaridng_slides_flag)&&!(null===(t=this.profile)||void 0===t?void 0:t.onboarding_walkthrough_flag)&&(this.tabs.showTabs(),this.onboardingWalkthroughsService.changeOnboardingFlagsChecked(!0))}),(0,m.K)(()=>(this.onboardingWalkthroughsService.changeOnboardingFlagsChecked(!0),d.E))).subscribe()}listenOnOnboardingSlidesClose(){this.onboardingSlidesClosed$.pipe((0,P.P)(),R(500),(0,x.w)(()=>this.onboardingWalkthroughsService.fetchOnboardingWalkthroughContent()),(0,x.w)(o=>this.startTheTour(o.walkthroughs)),(0,c.b)(()=>this.onboardingWalkthroughsService.changeOnboardingFlagsChecked(!0)),(0,k.x)(()=>(0,w.mG)(this,void 0,void 0,function*(){var o;return null===(o=null==document?void 0:document.getElementById("top"))||void 0===o||o.scrollIntoView(),yield this.profileSvc.updateProfile({onboarding_walkthrough_flag:!1}),this.tabs.showTabs(),this.profileSvc.getProfile()})),(0,m.K)(()=>(this.onboardingWalkthroughsService.changeOnboardingFlagsChecked(!0),d.E))).subscribe()}startTheTour(o){var t,i;return this.walkthroughs=o,!this.mindfulnessDocument&&(null===(t=this.steps)||void 0===t?void 0:t.length)>=6&&this.steps.pop(),!this.knowledgeDocument&&(null===(i=this.steps)||void 0===i?void 0:i.length)>=5&&this.steps.pop(),this.joyrideService.startTour({steps:this.steps,stepDefaultPosition:"top"})}};J.\u0275fac=function(o){return new(o||J)(e.Y36(u.IN),e.Y36(_e.T),e.Y36(me.H),e.Y36(he.d),e.Y36(fe.S),e.Y36(I.Q),e.Y36(y.F0),e.Y36(u.SH),e.Y36(ve),e.Y36(u.t4),e.Y36(xe._),e.Y36(ye.B),e.Y36(be.V),e.Y36(b.p9),e.Y36(ee),e.Y36(Pe.G),e.Y36(Me.x),e.Y36(Oe.Q))},J.\u0275cmp=e.Xpm({type:J,selectors:[["app-home"]],viewQuery:function(o,t){if(1&o&&(e.Gf(st,5,e.SBq),e.Gf(at,5,e.SBq),e.Gf(lt,5,e.SBq),e.Gf(ct,5,e.SBq),e.Gf(pt,5,e.SBq)),2&o){let i;e.iGM(i=e.CRH())&&(t.mealsElement=i.first),e.iGM(i=e.CRH())&&(t.workoutsElement=i.first),e.iGM(i=e.CRH())&&(t.progressElement=i.first),e.iGM(i=e.CRH())&&(t.knowledgeElement=i.first),e.iGM(i=e.CRH())&&(t.mindfulnessElement=i.first)}},decls:87,vars:36,consts:[[1,"set-safe-content",3,"fullscreen"],["class","ion-hide-sm-up",3,"name","currentWeek","weekNumber","membershipStatus","isMemberPaymentActive","showOnlyDates","dateChanged","weekChanged",4,"ngIf"],[1,"sticky-days","ion-hide-sm-up"],[3,"name","currentWeek","weekNumber","membershipStatus","showOnlyHeader","isMemberPaymentActive","dateChanged","weekChanged",4,"ngIf"],[1,"container-fluid"],["stepPosition","center",3,"joyrideStep","title","text","prevTemplate","nextTemplate","doneTemplate","counterTemplate","next"],["size","12","size-lg","2",1,"ion-hide-lg-down"],[1,"sticky"],["href","#",1,"mt-2","ml-3"],["src","assets/images/logo.svg","alt",""],["size","12","size-lg","7"],["id","top"],["class","ion-hide-sm-down",3,"name","currentWeek","weekNumber","membershipStatus","isMemberPaymentActive","dateChanged","weekChanged",4,"ngIf"],[4,"ngIf"],["class","mt-3 mb-3",3,"weekStart",4,"ngIf"],[1,"ion-hide-lg-up","mb-5",3,"options"],[1,"next-week-meail-container"],[1,"faqs-container"],[1,"tour-container"],[1,"tour-container__portal"],["meals",""],["class","phone-height","stepPosition","top",3,"joyrideStep","title","text","next",4,"ngIf"],["class","tour__highlighted",4,"ngIf"],["class","tour__highlighted","stepPosition","top",3,"joyrideStep","title","text","next",4,"ngIf"],["workouts",""],["class","phone-height","stepPosition","top",3,"joyrideStep","title","text","next","prev",4,"ngIf"],["class","tour__highlighted","stepPosition","top",3,"joyrideStep","title","text","next","prev",4,"ngIf"],["progress",""],["class","phone-height","stepPosition","top",3,"joyrideStep","title","text","prev","next",4,"ngIf"],["class","tour__highlighted","stepPosition","top",3,"joyrideStep","title","text","prev","next",4,"ngIf"],["knowledge",""],["stepPosition","top","class","phone-height",3,"joyrideStep","title","text","prev","next",4,"ngIf"],["class","tour__highlighted set-bottom-margin",4,"ngIf"],["mindfulness",""],["class","phone-height","stepPosition","top",3,"joyrideStep","title","text","prev",4,"ngIf"],["class","tour__highlighted","stepPosition","top",3,"joyrideStep","title","text","prev",4,"ngIf"],["size","12","size-lg","3",1,"ion-hide-lg-down"],[1,"mb-2"],[3,"height","category","unit","closeEventEmitter","done",4,"ngIf"],[3,"id","weekNumber","dayNumber","showDone","isComplete","
1isDoneChange","closeEventEmitter","favouriteChanged",4,"ngIf"],[3,"id","showDone","isComplete","isDoneChange","closeEventEmitter","favouriteChanged",4,"ngIf"],["prevButton",""],["nextButton",""],["doneButton",""],["counter",""],["todayProgressSection",""],["todayKnowledgeSection",""],["mindfulnessSection",""],[1,"ion-hide-sm-up",3,"name","currentWeek","weekNumber","membershipStatus","isMemberPaymentActive","showOnlyDates","dateChanged","weekChanged"],["daysComponentMobile",""],[3,"name","currentWeek","weekNumber","membershipStatus","showOnlyHeader","isMemberPaymentActive","dateChanged","weekChanged"],["daysComponentMobileDate",""],[1,"ion-hide-sm-down",3,"name","currentWeek","weekNumber","membershipStatus","isMemberPaymentActive","dateChanged","weekChanged"],["daysComponent",""],[1,"mb-3"],[1,"mt-3","mb-3",3,"weekStart"],[1,"weekly-goals-container"],["stepPosition","top",1,"phone-height",3,"joyrideStep","title","text","next"],[1,"tour__highlighted"],[3,"currentWeek","weekNumber","footer","week","dayToShow","units","mealSwapped","popupOpen",4,"ngIf"],[3,"currentWeek","weekNumber","footer","week","dayToShow","units","mealSwapped","popupOpen"],["stepPosition","top",1,"tour__highlighted",3,"joyrideStep","title","text","next"],["stepPosition","top",1,"phone-height",3,"joyrideStep","title","text","next","prev"],[3,"footer","workout","workoutDayId","isComplete","popupOpen","doneChange",4,"ngIf"],[3,"footer","workout","workoutDayId","isComplete","popupOpen","doneChange"],["stepPosition","top",1,"tour__highlighted",3,"joyrideStep","title","text","next","prev"],["stepPosition","top",1,"phone-height",3,"joyrideStep","title","text","prev","next"],[3,"ngTemplateOutlet"],["stepPosition","top",1,"tour__highlighted",3,"joyrideStep","title","text","prev","next"],[1,"tour__highlighted","set-bottom-margin"],["stepPosition","top",1,"phone-height",3,"joyrideStep","title","text","prev"],["stepPosition","top",1,"tour__highlighted",3,"joyrideStep","title","text","prev"],[3,"height","category","unit","closeEventEmitter","done"],[3,"id","weekNumber","dayNumber","showDone","isComplete","isDoneChange","closeEventEmitter","favouriteChanged"],[3,"id","showDone","isComplete","isDoneChange","closeEventEmitter","favouriteChanged"],[1,"button","button_outline","button_medium","button_green-text"],[1,"d-inline-block","mt-3","pt-2","ml-3","mb-4"],[1,"content-box","content-box_white","content-box_overflow"],["size","12","size-md","6"],["id","weightProgress",3,"category","unit","value","description","add",4,"ngIf"],["id","waistProgress",3,"category","unit","value","description","add",4,"ngIf"],[3,"routerLink"],["tappable","",1,"footer-link-dashboard-components"],["name","chevron-forward-outline"],["id","weightProgress",3,"category","unit","value","description","add"],["id","waistProgress",3,"category","unit","value","description","add"],[1,"d-inline-block","mt-3","pt-2","ml-3","mb-2"],[1,"content-box","content-box_overflow","content-box_white","today-featured-document"],[1,"story","story_single"],[1,"story__figure",3,"click"],["alt","",3,"src"],[1,"story__title"],[3,"click"],["type","Document",3,"favourite","id","favouriteId","favouriteChanged"],[1,"story__meta"],[1,"story__meta-item"],[1,"story__text"],[3,"isDone","changeDone$"],[1,"story__title",3,"click"]],template:function(o,t){if(1&o&&(e.TgZ(0,"ion-content",0),e.YNc(1,dt,2,6,"app-days",1),e.TgZ(2,"div",2),e.YNc(3,gt,2,6,"app-days",3),e.qZA(),e.TgZ(4,"div",4)(5,"joyrideStep",5),e.NdJ("next",function(){return t.scrollIntoStepView(t.mealsElement)}),e.qZA(),e.TgZ(6,"ion-grid")(7,"ion-row")(8,"ion-col",6)(9,"div",7)(10,"a",8),e._UZ(11,"img",9),e.qZA(),e._UZ(12,"app-navigation"),e.qZA()(),e.TgZ(13,"ion-col",10),e._UZ(14,"div",11),e.YNc(15,ut,2,5,"app-days",12),e.YNc(16,_t,4,0,"ng-container",13),e.YNc(17,mt,1,1,"app-motivation",14),e.TgZ(18,"ion-slides",15),e.YNc(19,ht,3,0,"ion-slide",13),e.TgZ(20,"ion-slide")(21,"div",16),e._UZ(22,"app-next-week-meal"),e.qZA()(),e.TgZ(23,"ion-slide")(24,"div",17),e._UZ(25,"app-faqs"),e.qZA()()(),e.TgZ(26,"div",18)(27,"div",19,20),e.YNc(29,ft,1,3,"div",21),e.qZA(),e.YNc(30,vt,2,1,"div",22),e.YNc(31,yt,2,4,"div",23),e.qZA(),e._UZ(32,"br"),e.TgZ(33,"div",18)(34,"div",19,24),e.YNc(36,bt,1,3,"div",25),e.qZA(),e.YNc(37,Pt,2,1,"div",22),e.YNc(38,Ot,2,4,"div",26),e.qZA(),e._UZ(39,"br"),e.TgZ(40,"div",18)(41,"div",19,27),e.YNc(43,At,1,3,"div",28),e.qZA(),e.YNc(44,Dt,2,1,"div",22),e.YNc(45,St,2,4,"div",29),e.qZA(),e.TgZ(46,"div",18)(47,"div",19,30),e.YNc(49,Zt,1,3,"div",31),e.qZA(),e.YNc(50,It,2,1,"div",32),e.YNc(51,Yt,2,4,"div",29),e.qZA(),e.TgZ(52,"div",18)(53,"div",19,33),e.YNc(55,Wt,1,3,"div",34),e.qZA(),e.YNc(56,Ut,2,1,"div",22),e.YNc(57,Ft,2,4,"div",35),e.qZA()(),e.TgZ(58,"ion-col",36)(59,"div",7)(60,"div",37),e._UZ(61,"app-next-week-meal"),e.qZA(),e.TgZ(62,"div",37),e._UZ(63,"app-shopping-list"),e.qZA(),e.TgZ(64,"div",37),e._UZ(65,"app-weekly-goals"),e.qZA(),e.TgZ(66,"div",37),e._UZ(67,"app-faqs"),e.qZA(),e.TgZ(68,"div",37),e._UZ(69,"app-footer"),e.qZA()()()()()()(),e.YNc(70,Bt,1,3,"app-track-modal",38),e.YNc(71,Qt,1,5,"app-explore-document-popup",39),e.YNc(72,jt,1,3,"app-explore-document-popup",40),e.YNc(73,Gt,2,0,"ng-template",null,41,e.W1O),e.YNc(75,Lt,2,0,"ng-template",null,42,e.W1O),e.YNc(77,Rt,2,0,"ng-template",null,43,e.W1O),e.YNc(79,zt,1,2,"ng-template",null,44,e.W1O),e.YNc(81,$t,13,4,"ng-template",null,45,e.W1O),e.YNc(83,Xt,17,8,"ng-template",null,46,e.W1O),e.YNc(85,en,15,7,"ng-template",null,47,e.W1O)),2&o){const i=e.MAs(74),r=e.MAs(76),g=e.MAs(78),S=e.MAs(80);e.ekj("popup-open",t.showTrackModal||t.showKnowledgeDocumentPopup||t.showMindfulnessDocumentPopup||t.workoutPopupOpen||t.recipePopupOpen),e.Q6J("fullscreen",!0),e.xp6(1),e.Q6J("ngIf",null!==(null==t.profile?null:t.profile.current_week)),e.xp6(2),e.Q6J("ngIf",null!==(null==t.profile?null:t.profile.current_week)),e.xp6(2),e.Q6J("joyrideStep",t.steps[0])("title",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[0].title)("text",(null==t.walkthroughs?null:t.walkthroughs.length)&&t.walkthroughs[0].content)("prevTemplate",i
1)("nextTemplate",r)("doneTemplate",g)("counterTemplate",S),e.xp6(10),e.Q6J("ngIf",null!==(null==t.profile?null:t.profile.current_week)),e.xp6(1),e.Q6J("ngIf",(null==t.profile?null:t.profile.getstarted_banner_flag)&&!(null!=t.profile&&t.profile.onboarding_walkthrough_flag)&&!(null!=t.profile&&t.profile.onboaridng_slides_flag)),e.xp6(1),e.Q6J("ngIf",!t.isActiveOrRequestCancelSubscription),e.xp6(1),e.Q6J("options",e.DdM(35,tn)),e.xp6(1),e.Q6J("ngIf",t.profile.current_week>0),e.xp6(10),e.Q6J("ngIf",t.isIos),e.xp6(1),e.Q6J("ngIf",t.isIos),e.xp6(1),e.Q6J("ngIf",!t.isIos),e.xp6(5),e.Q6J("ngIf",t.isIos),e.xp6(1),e.Q6J("ngIf",t.isIos),e.xp6(1),e.Q6J("ngIf",!t.isIos),e.xp6(5),e.Q6J("ngIf",t.isIos),e.xp6(1),e.Q6J("ngIf",t.isIos),e.xp6(1),e.Q6J("ngIf",!t.isIos),e.xp6(4),e.Q6J("ngIf",t.knowledgeDocument&&t.isIos),e.xp6(1),e.Q6J("ngIf",t.knowledgeDocument&&t.isIos),e.xp6(1),e.Q6J("ngIf",t.knowledgeDocument&&!t.isIos),e.xp6(4),e.Q6J("ngIf",t.mindfulnessDocument&&t.isIos),e.xp6(1),e.Q6J("ngIf",t.mindfulnessDocument&&t.isIos),e.xp6(1),e.Q6J("ngIf",t.mindfulnessDocument&&!t.isIos),e.xp6(13),e.Q6J("ngIf",t.showTrackModal),e.xp6(1),e.Q6J("ngIf",t.knowledgeDocument&&t.showKnowledgeDocumentPopup),e.xp6(1),e.Q6J("ngIf",t.mindfulnessDocument&&t.showMindfulnessDocumentPopup)}},directives:[u.W2,v.O5,He,b.ym,u.jY,u.Nd,u.wI,Ue.J,Je,Qe,u.Hr,u.A$,je.$,Ge.x,Le.t,Re.R,ze.g,v.tP,qe.k,Ve.c,Ke.y,$e.l,ot,u.Fo,y.yS,u.gu,it.I,rt.P],styles:['div#joyride-step-1{display:flex;align-items:center;justify-content:center;width:100%;left:0!important;top:8vh!important;transform:none!important}  div#joyride-step-1 joyride-arrow{display:none}  .joyride-step__holder{margin-top:-8px}.set-safe-content[_ngcontent-%COMP%]{top:var(--ion-safe-area-top)}.sticky-days[_ngcontent-%COMP%]{position:sticky;z-index:100;top:0;height:75px;width:100%;border-bottom:1px solid var(--color-gray-300)}.container-fluid[_ngcontent-%COMP%]:before{content:"";position:fixed;top:0;left:0;right:0;z-index:9;height:var(--ion-safe-area-top);background-color:#f5f7f8}.container-fluid[_ngcontent-%COMP%]   .tour-container[_ngcontent-%COMP%]{position:relative}.container-fluid[_ngcontent-%COMP%]   .tour-container__portal[_ngcontent-%COMP%]{position:absolute;height:0;width:100%}.container-fluid[_ngcontent-%COMP%]   .tour-container__highlighted[_ngcontent-%COMP%]{height:100%;display:flex}.container-fluid[_ngcontent-%COMP%]   .tour-container__highlighted[_ngcontent-%COMP%]   app-meals[_ngcontent-%COMP%], .container-fluid[_ngcontent-%COMP%]   .tour-container__highlighted[_ngcontent-%COMP%]   app-workout-banner[_ngcontent-%COMP%]{width:100%}.welcome-icon[_ngcontent-%COMP%]{max-width:80px;margin:0 auto}ion-slides[_ngcontent-%COMP%]{margin:0 0 25px}ion-slide[_ngcontent-%COMP%]{justify-content:flex-start}.weekly-goals-container[_ngcontent-%COMP%], .shopping-list-container[_ngcontent-%COMP%], .next-week-meail-container[_ngcontent-%COMP%], .faqs-container[_ngcontent-%COMP%]{width:100%}.story_single[_ngcontent-%COMP%]{display:flex;flex-direction:row}.story_single[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1}.story__figure[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;border-radius:10px;cursor:pointer}@media only screen and (min-width: 576px){.story[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]{margin-right:16px!important}.story[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{min-height:180px;min-width:234px;height:180px;width:234px}}@media only screen and (max-width: 575px){.story_single[_ngcontent-%COMP%]{flex-direction:column}.story__title[_ngcontent-%COMP%]{padding-top:16px}}.story__figure[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.story__title[_ngcontent-%COMP%]{font-size:22px;font-weight:600;line-height:1.12em;letter-spacing:.25px;color:var(--color-dark);margin:0 0 4px;cursor:pointer;display:flex;justify-content:space-between}.story__title[_ngcontent-%COMP%]   app-favourite[_ngcontent-%COMP%]{margin-top:2px}.story__text[_ngcontent-%COMP%]{font-size:16px;line-height:1.5em;color:var(--color-gray-700)}.story__meta[_ngcontent-%COMP%]{margin:4px 0 8px}.story__meta-item[_ngcontent-%COMP%]{font-size:14px}.story__meta-item[_ngcontent-%COMP%]:not(:first-child){color:var(--color-gray-600);padding-left:16px;position:relative}.story__meta-item[_ngcontent-%COMP%]:not(:first-child):before{content:"";position:absolute;
1left:6px;top:8px;width:2px;height:2px;border-radius:2px;background:var(--color-gray-600)}.story__meta-icon[_ngcontent-%COMP%]{height:15px}  joyride-step joyride-arrow .joyride-arrow__top{border-bottom-color:var(--color-creame)}  joyride-step joyride-arrow .joyride-arrow__bottom{border-top-color:var(--color-creame)}  joyride-step joyride-arrow .joyride-arrow__left{border-right-color:var(--color-creame)}  joyride-step joyride-arrow .joyride-arrow__right{border-left-color:var(--color-creame)}  joyride-step .joyride-step__container{box-shadow:unset;max-width:340px!important;background-color:var(--color-creame)!important;border-radius:10px;padding:14px!important}  joyride-step .joyride-step__container svg{padding-right:4px;padding-top:12px}  joyride-step .joyride-step__container svg line{stroke:var(--color-dark-green)}  joyride-step .joyride-step__header{padding:0!important;margin-bottom:8px}  joyride-step .joyride-step__title{color:var(--color-gray-700)}  joyride-step .joyride-step__body{color:var(--color-gray-700);padding:0!important}  joyride-step .joyride-step__footer{display:flex;align-items:center;margin-top:12px;padding:0!important}  joyride-step .joyride-step__button{margin:0!important}  joyride-step .joyride-step__button:last-child{margin-left:12px!important}  joyride-step .joyride-step__button button{height:36px;padding:0 12px;background-color:var(--color-gray-100)}  joyride-step .joyride-step__counter-container{color:var(--color-gray-700)}.set-bottom-margin[_ngcontent-%COMP%]{margin-bottom:40px}  .joyride-backdrop{opacity:.5;background-color:var(--color-dark)!important}  .iphone-specific-backdrop .backdrop-middle-container{display:none}.phone-height[_ngcontent-%COMP%]{height:1px}']}),J=(0,w.gn)([(0,f.c)()],J);let nn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[ee],imports:[[v.ez,a.u5,u.Pc,y.Bz.forChild([{path:"",component:J}]),C.K,M.kz,b.Mc.forChild()]]}),n})()},2427:(F,T,s)=>{s.d(T,{f:()=>u});var v=s(15439),y=s(5e3);let u=(()=>{class b{transform(C){return C?v(C).format("MMMM Do, YYYY"):null}}return b.\u0275fac=function(C){return new(C||b)},b.\u0275pipe=y.Yjl({name:"appArticleDate",type:b,pure:!0}),b})()},99231:(F,T,s)=>{s.d(T,{S:()=>C});var v=s(97582),a=s(56526),y=s(17951),u=s(5e3),b=s(9145);const M={week:{name:"Week",options:[{value:0,name:"Week 0 (Prepare)",selected:!1},{value:1,name:"Week 1",selected:!1},{value:2,name:"Week 2",selected:!1},{value:3,name:"Week 3",selected:!1},{value:4,name:"Week 4",selected:!1},{value:5,name:"Week 5",selected:!1},{value:6,name:"Week 6",selected:!1},{value:7,name:"Week 7",selected:!1},{value:8,name:"Week 8",selected:!1},{value:9,name:"Week 9",selected:!1},{value:10,name:"Week 10",selected:!1},{value:11,name:"Week 11",selected:!1},{value:12,name:"Week 12",selected:!1}]}};let C=(()=>{class w{constructor(f){this.connectSvc=f,this.learningFilters=(0,a.Z)(M)}getDocuments(f,_,l){return(0,v.mG)(this,void 0,void 0,function*(){const p={document_type:"articles"===f?"article":f};_&&(p.query=_),l&&(p.is_favourite=!0);const h=(0,y.km)(p);this.documents=[];try{const O=yield this.connectSvc.get("documents",!0,h);this.documents=O.documents,this.pagination=O.meta.pages}catch(O){this.connectSvc.handleError(O)}})}getMoreDocuments(f,_,l,p){return(0,v.mG)(this,void 0,void 0,function*(){const h={page:p,document_type:"articles"===f?"article":f};_&&(h.query=_),l&&(h.is_favourite=!0);const O=(0,y.km)(h);try{const A=yield this.connectSvc.get("documents",!0,O);this.documents=[...this.documents,...A.documents],this.pagination=A.meta.pages}catch(A){this.connectSvc.handleError(A)}})}getDocument(f){return(0,v.mG)(this,void 0,void 0,function*(){try{return yield this.connectSvc.get(`documents/${f}`,!0)}catch(_){return this.connectSvc.handleError(_),null}})}updateTagSelection(f){this.learningFilters.week.options.forEach(_=>{_.selected=_.value===f.value&&!f.selected})}resetTagSelection(){this.learningFilters=(0,a.Z)(M)}getLearningsByWeek(f){return(0,v.mG)(this,void 0,void 0,function*(){const _=(0,y.km)({document_type:"learning",week_number:f});try{const l=yield this.connectSvc.get("program_learnings",!0,_);this.programDocuments=l.documents,this.pagination=(0,y.sh)()}catch(l){this.connectSvc.handleError(l)}})}getSelectedWeek(){let f=null;return this.learningFilters.week.options.forEach(_=>{_.selected&&(f=_.value)}),f}getTodayFeaturedDocument(f,_){return(0,v.mG)(this,void 0,void 0,function*(){return this.connectSvc.get(`program_learnings/${f}?day_number=${_}`,!0)})}getTodayFeaturedDocumentDone(f,_){return(0,v.mG)(this,void 0,void 0,function*(){return(yield this.connectSvc.get(`program_learnings/daily_learning_status?week_number=${f}&day_number=${_}`,!0)).done})}markAsDoneTodayFeaturedDocument(f,_){return(0,v.mG)(this,void 0,void 0,function*(){return this.connectSvc.update("program_learnings/complete_daily_learning",{daily_learning:{week_number:f,day_number:_}},!0)})}}return w.\u0275fac=function(f){return new(f||w)(u.LFG(b.F))},w.\u0275prov=u.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})()},5963:(F,T,s)=>{s.d(T,{H:()=>b});var v=s(68306),a=s(34049),y=s(93532);function b(M=0,C,w=a.P){let e=-1;return null!=C&&((0,y.K)(C)?w=C:e=C),new v.y(f=>{let _=function u(M){return M instanceof Date&&!isNaN(M)}(M)?+M-w.now():M;_<0&&(_=0);let l=0;return w.schedule(function(){f.closed||(f.next(l++),0<=e?this.schedule(void 0,e):f.complete())},_)})}},34049:(F,T,s)=>{s.d(T,{P:()=>f,z:()=>e});var v=s(50727);class a extends v.w0{constructor(l,p){super()}schedule(l,p=0){return this}}const y={setInterval(_,l,...p){const{delegate:h}=y;return(null==h?void 0:h.setInterval)?h.setInterval(_,l,...p):setInterval(_,l,...p)},clearInterval(_){const{delegate:l}=y;return((null==l?void 0:l.clearInterval)||clearInterval)(_)},delegate:void 0};var u=s(38737),M=s(26063);
1class C{constructor(l,p=C.now){this.schedulerActionCtor=l,this.now=p}schedule(l,p=0,h){return new this.schedulerActionCtor(this,l).schedule(h,p)}}C.now=M.l.now;const e=new class w extends C{constructor(l,p=C.now){super(l,p),this.actions=[],this._active=!1}flush(l){const{actions:p}=this;if(this._active)return void p.push(l);let h;this._active=!0;do{if(h=l.execute(l.state,l.delay))break}while(l=p.shift());if(this._active=!1,h){for(;l=p.shift();)l.unsubscribe();throw h}}}(class b extends a{constructor(l,p){super(l,p),this.scheduler=l,this.work=p,this.pending=!1}schedule(l,p=0){var h;if(this.closed)return this;this.state=l;const O=this.id,A=this.scheduler;return null!=O&&(this.id=this.recycleAsyncId(A,O,p)),this.pending=!0,this.delay=p,this.id=null!==(h=this.id)&&void 0!==h?h:this.requestAsyncId(A,this.id,p),this}requestAsyncId(l,p,h=0){return y.setInterval(l.flush.bind(l,this),h)}recycleAsyncId(l,p,h=0){if(null!=h&&this.delay===h&&!1===this.pending)return p;null!=p&&y.clearInterval(p)}execute(l,p){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const h=this._execute(l,p);if(h)return h;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(l,p){let O,h=!1;try{this.work(l)}catch(A){h=!0,O=A||new Error("Scheduled action threw falsy error")}if(h)return this.unsubscribe(),O}unsubscribe(){if(!this.closed){const{id:l,scheduler:p}=this,{actions:h}=p;this.work=this.state=this.scheduler=null,this.pending=!1,(0,u.P)(h,this),null!=l&&(this.id=this.recycleAsyncId(p,l,null)),this.delay=null,super.unsubscribe()}}}),f=e},44987:(F,T,s)=>{s.d(T,{c:()=>W,t:()=>$});var v=s(77579),a=s(50727),b=(s(32076),s(60515),s(5e3)),C=(s(95577),s(82722));const w=b.GuJ,f=Symbol("__destroy"),_=Symbol("__decoratorApplied");function l(c){return"string"==typeof c?Symbol(`__destroy__${c}`):f}function h(c,m){c[m]||(c[m]=new v.x)}function O(c,m){c[m]&&(c[m].next(),c[m].complete(),c[m]=null)}function A(c){c instanceof a.w0&&c.unsubscribe()}function E(c,m){return function(){var x;if(c&&c.call(this),O(this,l()),m.arrayName&&function P(c){Array.isArray(c)&&c.forEach(A)}(this[m.arrayName]),m.checkProperties)for(const k in this)(null===(x=m.blackList)||void 0===x?void 0:x.includes(k))||A(this[k])}}function W(c={}){return m=>{!function e(c){return!!c[w]}(m)?function d(c,m){c.prototype.ngOnDestroy=E(c.prototype.ngOnDestroy,m)}(m,c):function Z(c,m){const x=c.\u0275pipe;x.onDestroy=E(x.onDestroy,m)}(m,c),function p(c){c.prototype[_]=!0}(m)}}function $(c,m){return x=>{const k=l(m);"string"==typeof m?function L(c,m,x){const k=c[m];h(c,x),c[m]=function(){k.apply(this,arguments),O(this,x),c[m]=k}}(c,m,k):h(c,k);return x.pipe((0,C.R)(c[k]))}}Symbol("CheckerHasBeenSet")}}]);

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.