1import{b,c as d,f as B}from"./chunk-M3NH3AY7.js";import"./chunk-N3QF2LT3.js";import"./chunk-ITZZRVBX.js";import{a as X}from"./chunk-UBBTUIXY.js";import{a as T}from"./chunk-RBZU3ZLE.js";import{$ as D,D as P,Da as f,Ea as u,Fb as V,H as w,I as R,L as n,M as r,O as C,Qa as k,Ra as S,S as c,U as a,Ua as j,Y as l,Z as p,_ as o,aa as N,e as x,fa as A,ga as $,ha as F,ja as m,kb as z,mb as W,nb as G,o as y,qb as H,ra as _,s as v,sa as g,t as L,ub as E,yb as I}from"./chunk-26JKL56V.js";function ie(t,i){if(t&1&&o(0,"assintecal-intro",4),t&2){let e=m(2);a("iconIntro",e.pageData.meta_fields.introducao_icone)("titleIntro",e.pageData.meta_fields.introducao_titulo);}}function ne(t,i){if(t&1&&(D(0),c(1,ie,1,2,"assintecal-intro",2),o(2,"assintecal-news-list",3),N()),t&2){let e=m();n(),a("ngIf",e.pageData.meta_fields.introducao_titulo),n(),a("titleComponent",e.pageData.meta_fields.noticias_titulo)("typeComponent",e.pageData.meta_fields.noticias_tipo_exibicao);}}function ae(t,i){t&1&&o(0,"assintecal-loader",5);}var M=class t{constructor(i,e,s,h){this.elementRef=i;this.renderer=e;this.templateService=s;this.newsService=h;}pageData;loadingPage=!0;$subs=new x();ngOnInit(){this.$subs=this.newsService.getPage().subscribe({next:i=>{this.pageData=i,this.loadingPage=!1,setTimeout(()=>{this.templateService.onAnimation(this.elementRef,this.renderer);},200);}});}ngOnDestroy(){this.$subs.unsubscribe();}static ɵfac=function(e){return new(e||t)(r(P),r(C),r(E),r(I));};static ɵcmp=v({type:t,selectors:[["assintecal-news-page"]],decls:2,vars:2,consts:[[4,"ngIf"],["class","loader-page",4,"ngIf"],["class","intro-news",3,"iconIntro","titleIntro",4,"ngIf"],[1,"news-list",3,"titleComponent","typeComponent"],[1,"intro-news",3,"iconIntro","titleIntro"],[1,"loader-page"]],template:function(e,s){e&1&&c(0,ne,3,3,"ng-container",0)(1,ae,1,0,"assintecal-loader",1),e&2&&(a("ngIf",!s.loadingPage),n(),a("ngIf",s.loadingPage));},dependencies:[S,X,T,d]});};function oe(t,i){if(t&1&&(l(0,"span",24),_(1),p()),t&2){let e=i.$implicit;n(),g(e);}}function re(t,i){if(t&1&&(l(0,"div",22),c(1,oe,2,1,"span",23),p()),t&2){let e=m(2);n(),a("ngForOf",e.postDetail.tags);}}function se(t,i){if(t&1&&(o(0,"div",25),f(1,"safe")),t&2){let e=m(2);a("innerHTML",u(1,1,e.postDetail.sumary,"html"),w);}}function le(t,i){if(t&1&&(l(0,"span",26),_(1),p()),t&2){let e=m(2);n(),g(e.postDetail.author.role);}}function pe(t,i){if(t&1&&(l(0,"figure",27),o(1,"img",28),p()),t&2){let e=m(2);n(),a("src",e.postDetail.image,R);}}function ce(t,i){if(t&1&&(D(0),l(1,"div",3)(2,"div",4),o(3,"a",5)(4,"assintecal-share-link"),l(5,"header",6)(6,"span",7),_(7),f(8,"date"),p(),o(9,"div",8),f(10,"safe"),c(11,re,2,1,"div",9)(12,se,2,4,"div",10),l(13,"div",11)(14,"div",12),o(15,"div",13),l(16,"div",14)(17,"span",15),_(18),p(),c(19,le,2,1,"span",16),p()(),l(20,"div",17)(21,"span"),A(22,0),p()()()(),c(23,pe,2,1,"figure",18),o(24,"section",19),f(25,"safe"),p()(),o(26,"assintecal-news-list",20)(27,"assintecal-newsletter",21),N()),t&2){let e=m();n(7),g(u(8,13,e.postDetail.date,"d MMM YYYY")),n(2),a("innerHTML",u(10,16,e.postDetail.title,"html"),w),n(2),a("ngIf",e.postDetail.tags.length>0),n(),a("ngIf",e.postDetail.sumary),n(6),g(e.postDetail.author.name),n(),a("ngIf",e.postDetail.author.role),n(3),$(e.calculateReadingTime),F(22),n(),a("ngIf",e.postDetail.image),n(),a("innerHTML",u(25,19,e.postDetail.content,"html"),w),n(2),a("releatedPosts",!0)("showCategories",!1)("categoriesFilter",e.postDetail.categories)("ignorePost",e.postDetail.id);}}function me(t,i){t&1&&o(0,"assintecal-loader",29);}var O=class t{constructor(i,e,s,h,_e,ge){this.router=i;this.activatedRoute=e;this.elementRef=s;this.renderer=h;this.templateService=_e;this.newsService=ge;this.$subs=this.activatedRoute.params.subscribe(K=>{this.slugPost=K.slug,this.getPostDetail();});}slugPost;postDetail;loadingDetail=!0;calculateReadingTime;$subs=new x();ngOnDestroy(){this.$subs.unsubscribe();}getPostDetail(){this.loadingDetail=!0,this.newsService.getPostDetail(this.slugPost).subscribe({next:i=>{this.postDetail=i,this.readingTime(),this.loadingDetail=!1,setTimeout(()=>{this.templateService.onAnimation(this.elementRef,this.renderer);},200);},error:()=>{this.router.navigate(["/erro"]);}});}readingTime(){let i=this.postDetail.content.split(/\s+/).length;this.calculateReadingTime=`${Math.ceil(i/100)}`;}static ɵfac=function(e){return new(e||t)(r(W),r(z),r(P),r(C),r(E),r(I));};static ɵcmp=v({type:t,selectors:[["assintecal-news-detail"]],decls:2,vars:2,consts:()=>{let i;i="<p>Leia <strong><em>tamb\xE9m</em></strong></p>";let e;e="VER TODOS";let s;return s="Leitura: "+"\uFFFD0\uFFFD"+"min",[s,[4,"ngIf"],["class","loader-page",4,"ngIf"],[1,"container"],[1,"news-detail"],["routerLink","/noticias","aria-label","Voltar para listagem de not\xEDcias",1,"news-detail__back"],[1,"news-detail__header","animate-scroll"],[1,"header__date"],["role","heading","aria-level","2",1,"header__title",3,"innerHTML"],["class","header__tags",4,"ngIf"],["class","header__resume",3,"innerHTML",4,"ngIf"],[1,"header__meta"],[1,"header__author"],[1,"author__icon"],[1,"author__data"],[1,"author__name"],["class","author__role",4,"ngIf"],[1,"header__time-read"],["class","news-detail__featured animate-scroll",4,"ngIf"],[1,"news-detail__c
1ontent","content-text","animate-scroll",3,"innerHTML"],["titleComponent",i,"linkComponent",e,"typeComponent","carousel",1,"releated-news",3,"releatedPosts","showCategories","categoriesFilter","ignorePost"],[1,"newsletter"],[1,"header__tags"],["class","tag__item",4,"ngFor","ngForOf"],[1,"tag__item"],[1,"header__resume",3,"innerHTML"],[1,"author__role"],[1,"news-detail__featured","animate-scroll"],[3,"src"],[1,"loader-page"]];},template:function(e,s){e&1&&c(0,ce,28,22,"ng-container",1)(1,me,1,0,"assintecal-loader",2),e&2&&(a("ngIf",!s.loadingDetail),n(),a("ngIf",s.loadingDetail));},dependencies:[S,k,G,T,b,d,B,j,V],styles:['.news-detail[_ngcontent-%COMP%]{position:relative;border-bottom:1px solid #000000;padding:70px 0 30px;margin-bottom:45px}@media (min-width: 992px){.news-detail[_ngcontent-%COMP%]{padding:120px 115px 85px;margin-bottom:95px}}.news-detail__back[_ngcontent-%COMP%]{background:url("./media/arrow-back-JV2V3QLV.svg") no-repeat;width:21px;height:12px;position:absolute;top:20px;left:10px}.news-detail__header[_ngcontent-%COMP%]{margin-bottom:52px}.news-detail__featured[_ngcontent-%COMP%]{margin-bottom:35px}@media (min-width: 992px){.news-detail__featured[_ngcontent-%COMP%]{margin-bottom:75px}}.news-detail__featured[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:330px;object-fit:cover;display:block;border-radius:8px}@media (min-width: 992px){.news-detail__featured[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:630px}}.header__date[_ngcontent-%COMP%]{font-size:16px;line-height:26px;color:#676b73;text-transform:uppercase;display:block;margin-bottom:6px}.header__title[_ngcontent-%COMP%]{margin-bottom:30px}.header__tags[_ngcontent-%COMP%]{display:flex;gap:10px;margin-bottom:25px}@media (min-width: 992px){.header__tags[_ngcontent-%COMP%]{margin-bottom:55px}}.header__resume[_ngcontent-%COMP%]{margin-bottom:18px}@media (min-width: 992px){.header__resume[_ngcontent-%COMP%] p{font-size:22px;line-height:36px}}.header__resume[_ngcontent-%COMP%] p:not(:last-child){margin-bottom:20px}.header__meta[_ngcontent-%COMP%]{display:flex;align-items:center;gap:35px}.header__author[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.header__time-read[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background-color:#efefef;padding:12px 16px;font-size:14px;display:block;border-radius:19px}.tag__item[_ngcontent-%COMP%]{background-color:#efefef;padding:12px 16px;font-size:14px;border-radius:19px}.author__icon[_ngcontent-%COMP%]{background-color:#0047bb;width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:50%}.author__icon[_ngcontent-%COMP%]:before{content:"";background:url("./media/author-PD2KPUHV.svg") no-repeat;width:12px;height:15px}.author__name[_ngcontent-%COMP%]{font-weight:500;font-size:14px;line-height:15px;display:block}.author__role[_ngcontent-%COMP%]{font-size:14px;line-height:15px;color:#676b73;display:block;margin-top:5px}.releated-news[_ngcontent-%COMP%]{margin-bottom:105px}']});};var de=[{path:"",component:M,data:{title:"Not\xEDcias"}},{path:":slug",component:O,data:{title:"Not\xEDcias"}}],U=H.forChild(de);var J=class t{static ɵfac=function(e){return new(e||t)();};static ɵmod=L({type:t});static ɵinj=y({imports:[U,b,d]});};export{J as NewsModule};/**i18n:e40078cfd0bc0124df0365bdbd5dffd62d690a14f50f169b6b156f2235c12108*/
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.