1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5251],{92844(k,I,r){r.d(I,{O:()=>f});var f=function(x){return x.NOT_REQUIRED="NOT_REQUIRED",x.OBTAINED="OBTAINED",x.REQUIRED="REQUIRED",x.UNKNOWN="UNKNOWN",x}(f||{})},58885(k,I,r){r.d(I,{g:()=>S});var f=r(10467),x=r(15083),b=function(t){return t.TOP_CENTER="TOP_CENTER",t.CENTER="CENTER",t.BOTTOM_CENTER="BOTTOM_CENTER",t}(b||{}),e=function(t){return t.BANNER="BANNER",t.FULL_BANNER="FULL_BANNER",t.LARGE_BANNER="LARGE_BANNER",t.MEDIUM_RECTANGLE="MEDIUM_RECTANGLE",t.LEADERBOARD="LEADERBOARD",t.ADAPTIVE_BANNER="ADAPTIVE_BANNER",t.SMART_BANNER="SMART_BANNER",t}(e||{}),h=function(t){return t.Loaded="interstitialAdLoaded",t.FailedToLoad="interstitialAdFailedToLoad",t.Showed="interstitialAdShowed",t.FailedToShow="interstitialAdFailedToShow",t.Dismissed="interstitialAdDismissed",t}(h||{});r(92844);const T=(0,x.F3)("AdMob",{web:()=>r.e(86).then(r.bind(r,20086)).then(t=>new t.AdMobWeb)}),j=(0,x.F3)("App",{web:()=>r.e(9303).then(r.bind(r,39303)).then(t=>new t.AppWeb)});var A=r(2615);let S=(()=>{var t;class E{constructor(){this.initialized=!1,this.enabled=!1,this.interstitialReady=!1,this.lastInterstitialShownAt=0,this.interstitialCooldownMs=12e4,this.defaultInterstitialChance=.35,this.bannerAdId="ca-app-pub-4788483379724677/6999720550",this.interstitialAdId="ca-app-pub-4788483379724677/5797989957",this.bannerWanted=!1,this.bannerVisible=!1,this.ensuringBanner=!1}init(a,m){var l=this;return(0,f.A)(function*(){if(a)return void(l.enabled=!1);if(!x.Ii.isNativePlatform())return void(l.enabled=!1);if(l.enabled=!0,l.initialized)return;l.currentUserEmail=m;const F="[email protected]"===m;yield T.initialize({testingDevices:F?["0183ED88BD0C58EE22FB6E5BBC406CC1"]:[],initializeForTesting:F}),j.addListener("appStateChange",function(){var o=(0,f.A)(function*(d){d.isActive&&(yield l.ensureBanner(!0))});return function(d){return o.apply(this,arguments)}}()),T.addListener(h.Dismissed,(0,f.A)(function*(){l.interstitialReady=!1,yield l.prepareInterstitial(),yield l.ensureBanner(!0)})),T.addListener(h.Showed,()=>{}),T.addListener(h.FailedToShow,(0,f.A)(function*(){yield l.prepareInterstitial()})),l.initialized=!0,yield l.prepareInterstitial()})()}showBanner(){var a=this;return(0,f.A)(function*(){!a.enabled||!a.initialized||(a.bannerWanted=!0,yield a.ensureBanner())})()}hideBanner(){var a=this;return(0,f.A)(function*(){if(a.enabled&&a.initialized){a.bannerWanted=!1,a.bannerVisible=!1;try{yield T.hideBanner()}catch{}}})()}prepareInterstitial(){var a=this;return(0,f.A)(function*(){if(!a.enabled||!a.initialized)return;const m="[email protected]"===a.currentUserEmail;try{const l={adId:a.interstitialAdId,isTesting:m};yield T.prepareInterstitial(l),a.interstitialReady=!0}catch{a.interstitialReady=!1}})()}showInterstitialRandom(){var a=this;return(0,f.A)(function*(m=a.defaultInterstitialChance){if(!a.enabled||!a.initialized)return;const l=Date.now();if(!(l-a.lastInterstitialShownAt<a.interstitialCooldownMs||Math.random()>m)){if(!a.interstitialReady)return void(yield a.prepareInterstitial());try{yield T.showInterstitial(),a.lastInterstitialShownAt=l,a.interstitialReady=!1}catch{a.interstitialReady=!1,yield a.prepareInterstitial()}}}).apply(this,arguments)}showInterstitialIfAllowed(){var a=this;return(0,f.A)(function*(){return a.showInterstitialRandom(1)})()}ensureBanner(){var a=this;return(0,f.A)(function*(m=!1){if(!a.enabled||!a.initialized||!a.bannerWanted&&!m||a.ensuringBanner||a.bannerVisible&&!m)return;const l="[email protected]"===a.currentUserEmail;a.ensuringBanner=!0;try{try{yield T.removeBanner()}catch{}yield T.showBanner({adId:a.bannerAdId,adSize:e.BANNER,position:b.BOTTOM_CENTER,isTesting:l}),a.bannerVisible=!0}catch{a.bannerVisible=!1}finally{a.ensuringBanner=!1}}).apply(this,arguments)}static#e=t=()=>(this.\u0275fac=function(m){return new(m||E)},this.\u0275prov=A.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}))}return t(),E})()},65251(k,I,r){r.d(I,{TarefasDiaPageModule:()=>F});var f=r(72200),x=r(89417),c=r(57343),D=r(38132),b=r(10467),e=r(73664),h=r(2615),N=r(29330),y=r(83509),_=r(18700),w=r(58885),T=r(49544);
1function j(o,d){1&o&&(e.j41(0,"div",34),e.nrm(1,"ion-spinner"),e.j41(2,"p",35),e.EFF(3,"Carregando tarefas de hoje..."),e.k0s()())}function A(o,d){1&o&&(e.j41(0,"div",36),e.EFF(1," Ocorreu um erro ao buscar as tarefas. "),e.k0s())}function S(o,d){if(1&o){const R=e.RV6();e.j41(0,"ion-card",40)(1,"ion-item",41)(2,"div",42),e.EFF(3),e.k0s(),e.j41(4,"ion-label",43)(5,"span",44),e.EFF(6),e.k0s(),e.j41(7,"span",45),e.nrm(8,"ion-icon",46),e.EFF(9),e.k0s()(),e.j41(10,"div",47)(11,"ion-chip",48),e.nrm(12,"ion-icon",49),e.j41(13,"ion-label"),e.EFF(14),e.k0s()(),e.j41(15,"ion-button",50),e.bIt("click",function(){const i=h.eBV(R).$implicit,s=e.XpG(3);return h.Njj(s.concluirTarefa(i))}),e.nrm(16,"ion-icon",51),e.EFF(17," Concluir "),e.k0s()()()()}if(2&o){const R=d.$implicit;e.R7$(3),e.SpI(" ",R.imgIcone," "),e.R7$(3),e.SpI(" ",R.descricao," "),e.R7$(3),e.SpI(" Hoje \xb7 ",R.horaio," "),e.R7$(2),e.Y8G("color",R.imgCor),e.R7$(3),e.JRh(R.horaio)}}function t(o,d){if(1&o&&(e.qex(0),e.j41(1,"div",38),e.DNE(2,S,18,5,"ion-card",39),e.k0s(),e.bVm()),2&o){const R=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",R.tarefas)}}function E(o,d){if(1&o&&(e.qex(0),e.DNE(1,t,3,1,"ng-container",37),e.bVm()),2&o){const R=e.XpG(),n=e.sdS(44);e.R7$(),e.Y8G("ngIf",R.tarefas.length)("ngIfElse",n)}}function B(o,d){1&o&&(e.j41(0,"div",52),e.nrm(1,"ion-icon",53),e.j41(2,"p",54),e.EFF(3," Nenhuma tarefa para executar neste dia. "),e.k0s(),e.j41(4,"p",55),e.EFF(5," Aproveite para descansar, estudar ou criar novas tarefas. \u{1f604} "),e.k0s()())}const m=[{path:"",component:(()=>{var o;class d{constructor(n,i,s,g,p,u){this.http=n,this.toast=i,this.tarefaService=s,this.storage=g,this.adsService=p,this.router=u,this.tarefas=[],this.loading=!1,this.erro=!1,this.dataRefIso=this.hojeISO(),this.idDependente=0,this.idUsuario="",this.grupo_id=0,this.idPlano=0;let v=this.storage.getLocalUser();this.idUsuario=v.idUsuario,this.grupo_id=Number(v.idGrupo),this.idDependente=Number(v.idUsuario),this.idPlano=Number(v.idPlano)}ngOnInit(){var n=this;return(0,b.A)(function*(){yield n.carregarTarefas()})()}ionViewDidEnter(){return(0,b.A)(function*(){})()}hojeISO(){const n=new Date,i=String(n.getMonth()+1).padStart(2,"0"),s=String(n.getDate()).padStart(2,"0");return`${n.getFullYear()}-${i}-${s}`}get dataRefFormatada(){const[n,i,s]=this.dataRefIso.split("-").map(Number);return n&&i&&s?new Date(n,i-1,s).toLocaleDateString("pt-BR",{weekday:"short",day:"2-digit",month:"2-digit"}):this.dataRefIso}carregarTarefas(n){var i=this;return this.loading=!n,this.erro=!1,new Promise((s,g)=>{var p;this.tarefaService.listarTarefasDoDia(this.idDependente,this.dataRefIso).subscribe({next:(p=(0,b.A)(function*(u){try{i.tarefas=u||[],i.loading=!1,n&&n.target.complete(),s()}catch(v){g(v)}}),function(v){return p.apply(this,arguments)}),error:p=>{g(p),console.log("Erro ao buscar dados ",p)}})})}iconName(n){return`${n}-outline`}concluirTarefa(n){var i=this;return(0,b.A)(function*(){var s;i.tarefaService.concluirTarefa(Number(i.idUsuario),n.idTarefaDependente,Number(i.grupo_id)).subscribe({next:(s=(0,b.A)(function*(g){i.tarefas=i.tarefas.filter(u=>u.idTarefaDependente!==n.idTarefaDependente),(yield i.toast.create({message:`Tarefa conclu\xedda: ${n.descricao}`,duration:1200,color:"success",position:"top"})).present(),1===i.idPlano&&i.adsService.showInterstitialRandom(.25).catch(u=>console.warn("Inter falhou",u))}),function(p){return s.apply(this,arguments)}),error:s=>{}})})()}alterarData(n){var i=this;return(0,b.A)(function*(){const[s,g,p]=i.dataRefIso.split("-").map(Number),u=new Date(s,g-1,p);u.setDate(u.getDate()+n);const v=String(u.getMonth()+1).padStart(2,"0"),U=String(u.getDate()).padStart(2,"0");i.dataRefIso=`${u.getFullYear()}-${v}-${U}`,i.carregarTarefas()})()}static#e=o=()=>(this.\u0275fac=function(i){return new(i||d)(e.rXU(N.Qq),e.rXU(c.K_),e.rXU(y.X),e.rXU(_.n),e.rXU(w.g),e.rXU(T.Ix))},this.\u0275cmp=e.VBU({type:d,selectors:[["app-tarefas-dia"]],standalone:!1,decls:46,vars:5,consts:[["emptyState",""],[1,"ion-no-border"],[1,"bg-stone-800","px-4","py-2","flex","items-center","justify-between"],["slot","start"],[1,"ml-2"],["src","assets/revix/logoRG1.jpg","alt","User avatar"],[1,"text-base","font-semibold","text-gray-50"],["slot","end"],[1,"text-white"],[1,"bg-slate-50","dark:bg-slate-900",3,"fullscreen"],[1,"pb-24"],[1,"px-4","pt-4"],[1,"flex","items-center","gap-3"],[1,"bg-amber-300","rounded-full","w-12","h-12","flex","items-center","justify-center"],["name","calendar-outline",1,"text-3xl","text-gra
1phite"],[1,"text-lg","font-semibold","text-darkblue"],[1,"text-xs","text-gray-400"],["slot","fixed",3,"ionRefresh"],["pullingText","Puxe para atualizar"],[1,"p-3","space-y-3"],[1,"flex","items-center","justify-between"],[1,"text-[11px]","uppercase","tracking-widest","text-slate-500","dark:text-slate-400"],[1,"text-base","font-semibold","text-slate-900","dark:text-slate-50"],[1,"flex","items-center","gap-1"],["size","small","fill","clear","aria-label","Dia anterior",3,"click"],["name","chevron-back-outline"],["color","light",1,"!m-0"],[1,"text-xs"],["size","small","fill","clear","aria-label","Pr\xf3ximo dia",3,"click"],["name","chevron-forward-outline"],["class","pt-6 flex flex-col items-center justify-center gap-2",4,"ngIf"],["class","pt-6 text-center text-sm text-red-500",4,"ngIf"],[4,"ngIf"],[1,"h-4"],[1,"pt-6","flex","flex-col","items-center","justify-center","gap-2"],[1,"text-xs","text-slate-500"],[1,"pt-6","text-center","text-sm","text-red-500"],[4,"ngIf","ngIfElse"],[1,"grid","grid-cols-1","gap-2"],["class","rounded-2xl shadow-sm border border-slate-100 dark:border-slate-800 bg-white dark:bg-slate-800/70",4,"ngFor","ngForOf"],[1,"rounded-2xl","shadow-sm","border","border-slate-100","dark:border-slate-800","bg-white","dark:bg-slate-800/70"],["lines","none",1,"bg-transparent"],[1,"w-9","h-9","rounded-2xl","bg-stone-100","dark:bg-stone-800","flex","items-center","justify-center","text-3xl"],[1,"flex","flex-col"],[1,"text-[14px]","font-semibold","text-slate-900","dark:text-white"],[1,"text-[11px]","text-slate-500","dark:text-slate-400","flex","items-center","gap-1"],["name","time-outline",1,"text-[13px]"],["slot","end",1,"flex","flex-col","items-end","gap-1"],[1,"!m-0","text-[10px]",3,"color"],["name","time-outline"],["size","small","shape","round","color","success",1,"mt-1",3,"click"],["name","checkmark-circle-outline","slot","start"],[1,"pt-8","flex","flex-col","items-center","justify-center","text-center"],["name","sparkles-outline",1,"text-3xl","mb-2","text-slate-400"],[1,"text-sm","text-slate-600","dark:text-slate-300","font-medium"],[1,"text-xs","text-slate-500","dark:text-slate-400","mt-1"]],template:function(i,s){if(1&i){const g=e.RV6();e.j41(0,"ion-header",1)(1,"ion-toolbar")(2,"div",2)(3,"ion-buttons",3)(4,"div")(5,"ion-avatar",4),e.nrm(6,"img",5),e.k0s()()(),e.j41(7,"ion-title")(8,"div",6),e.EFF(9,"Revix Go"),e.k0s()(),e.j41(10,"ion-buttons",7),e.nrm(11,"ion-menu-button",8),e.k0s()()()(),e.j41(12,"ion-content",9)(13,"div",10)(14,"div",11)(15,"div",12)(16,"div",13),e.nrm(17,"ion-icon",14),e.k0s(),e.j41(18,"div")(19,"div",15),e.EFF(20,"Minhas tarefas"),e.k0s(),e.j41(21,"div",16),e.EFF(22,"Suas tarefas do dia de hoje"),e.k0s()()()(),e.j41(23,"ion-refresher",17),e.bIt("ionRefresh",function(u){return h.eBV(g),h.Njj(s.carregarTarefas(u))}),e.nrm(24,"ion-refresher-content",18),e.k0s(),e.j41(25,"div",19)(26,"div",20)(27,"div")(28,"div",21),e.EFF(29," Tarefas do dia "),e.k0s(),e.j41(30,"div",22),e.EFF(31),e.k0s()(),e.j41(32,"div",23)(33,"ion-button",24),e.bIt("click",function(){return h.eBV(g),h.Njj(s.alterarData(-1))}),e.nrm(34,"ion-icon",25),e.k0s(),e.j41(35,"ion-chip",26)(36,"ion-label",27),e.EFF(37,"Hoje"),e.k0s()(),e.j41(38,"ion-button",28),e.bIt("click",function(){return h.eBV(g),h.Njj(s.alterarData(1))}),e.nrm(39,"ion-icon",29),e.k0s()()(),e.DNE(40,j,4,0,"div",30)(41,A,2,0,"div",31)(42,E,2,2,"ng-container",32)(43,B,6,0,"ng-template",null,0,e.C5r),e.nrm(45,"div",33),e.k0s()()()}2&i&&(e.R7$(12),e.Y8G("fullscreen",!0),e.R7$(19),e.SpI(" ",s.dataRefFormatada," "),e.R7$(9),e.Y8G("ngIf",s.loading),e.R7$(),e.Y8G("ngIf",s.erro&&!s.loading),e.R7$(),e.Y8G("ngIf",!s.loading&&!s.erro))},dependencies:[f.Sq,f.bT,c.mC,c.Jm,c.QW,c.b_,c.ZB,c.W9,c.eU,c.iq,c.uz,c.he,c.MC,c.To,c.Ki,c.w2,c.BC,c.ai],styles:['@charset "UTF-8";.no-scrollbar[_ngcontent-%COMP%]{-ms-overflow-style:none;scrollbar-width:none}.no-scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}@media (max-width: 420px){ion-card[_ngcontent-%COMP%]{margin:0}ion-item[_ngcontent-%COMP%]{--inner-padding-end: 8px;--inner-padding-start: 8px;--min-height: 56px}
1ion-avatar[_ngcontent-%COMP%]{width:36px;height:36px}}']}))}return o(),d})()}];let l=(()=>{var o;class d{static#e=o=()=>(this.\u0275fac=function(i){return new(i||d)},this.\u0275mod=e.$C({type:d}),this.\u0275inj=h.G2t({imports:[D.iI.forChild(m),D.iI]}))}return o(),d})(),F=(()=>{var o;class d{static#e=o=()=>(this.\u0275fac=function(i){return new(i||d)},this.\u0275mod=e.$C({type:d}),this.\u0275inj=h.G2t({imports:[f.MD,x.YN,c.bv,l]}))}return o(),d})()}}]);
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.