1"use strict";(self.webpackChunkensinandosiao=self.webpackChunkensinandosiao||[]).push([[7756],{7756:(Ee,C,l)=>{l.r(C),l.d(C,{DownloadsModule:()=>Fe});var d=l(6895),f=l(1739),e=l(4650),c=l(9116);let T=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-downloads"]],decls:2,vars:0,consts:[[1,"downloads-wrapper"]],template:function(t,n){1&t&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275element(1,"router-outlet"),e.\u0275\u0275elementEnd())},directives:[c.lC],styles:[""]}),o})();var g=l(5326),u=l(8643),h=l(2193),I=l(9300),E=l(4004),D=l(7494),S=l(629),p=l(4006),y=l(5938),_=l(7392),$=l(2102),v=l(9549),k=l(4859),B=l(4144),O=l(4855),b=l(9062),F=l(4271),V=l(8739);function z(o,i){1&o&&(e.\u0275\u0275elementStart(0,"h1",20),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(2,1,"downloads.banner")))}function j(o,i){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"h1",21),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().goToFolder()}),e.\u0275\u0275elementStart(1,"mat-icon"),e.\u0275\u0275text(2,"arrow_back"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()}2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,1,"downloads.goback"),""))}function P(o,i){if(1&o&&(e.\u0275\u0275elementStart(0,"div",22)(1,"h1",20),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&o){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.getTitle(t.subFolder))}}const M=function(o){return{"btn-categorie-active":o}};function R(o,i){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",26)(1,"span",27),e.\u0275\u0275listener("click",function(){const r=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275nextContext(2).searchText(r.title,r.id)}),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()}if(2&o){const t=i.$implicit,n=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(2,M,n.categorieTerm&&n.selectCategorie!==t.id)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.title)}}function N(o,i){if(1&o&&(e.\u0275\u0275elementStart(0,"div",23)(1,"swiper",24),e.\u0275\u0275template(2,R,3,4,"div",25),e.\u0275\u0275elementEnd()()),2&o){const t=i.ngIf,n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("config",n.swiperConfig),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t)}}function U(o,i){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",40)(1,"img",41),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext().$implicit;return e.\u0275\u0275nextContext(2).goToFolder(a.title,a.id)}),e.\u0275\u0275elementEnd()()}if(2&o){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("src",t.image,e.\u0275\u0275sanitizeUrl)("alt",t.title)}}function H(o,i){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",42)(1,"img",43),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext().$implicit;return e.\u0275\u0275nextContext(2).goToFolder(a.title,a.id)}),e.\u0275\u0275elementEnd()()}if(2&o){const t=e.\u0275\u0275nextContext().$implicit,n=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("src",n.placeholder,e.\u0275\u0275sanitizeUrl)("alt",t.title)}}function G(o,i){if(1&o&&(e.\u0275\u0275elementStart(0,"div",35)(1,"div",36)(2,"span"),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(6,U,2,2,"div",37),e.\u0275\u0275template(7,H,2,2,"div",38),e.\u0275\u0275elementStart(8,"div",39)(9,"span"),e.\u0275\u0275text(10),e.\u0275\u0275elementEnd()()()),2&o){const t=i.$implicit,n=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate2("",t.total_items," ",t.total_items>1?e.\u0275\u0275pipeBind1(4,5,"downloads.files"):e.\u0275\u0275pipeBind1(5,7,"downloads.file"),""),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",t.image),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.image&&n.placeholder),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.title)}}function W(o,i){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",44),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext(2);return a.moreFolders(a.limitFolder+8)}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()}2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(2,1,"downloads.view-more-folders")))}function J(o,i){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",44),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(2).moreFolders(8)}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()}2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(2,1,"downloads.view-fewer-folders")))}function X(o,i){if(1&o&&(e.\u0275\u0275elementStart(0,"section",28)(1,"div",29)(2,"h1",30),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",31),e.\u0275\u0275template(8,G,11,9,"div",32),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"div",33),e.\u0275\u0275template(10,W,3,3,"button",34),e.\u0275\u0275template(11,J,3,3,"button",34),e.\u0275\u0275elementEnd()()()),2&o){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.subFolder?t.downloadListFolder.length>1?e.\u0275\u0275pipeBind1(4,4,"downloads.subfolders"):e.\u0275\u0275pipeBind1(5,6,"downloads.subfolder"):e.\u0275\u0275pipeBind1(6,8,"downloads.folders")),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngForOf",t.downloadListFolder.slice(0,t.limitFolder)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.downloadListFolder.length>t.limitFolder),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.downloadListFolder.length>8&&t.limitFolder>=t.downloadListFolder.length)}}function A(o,i){1&o&&(e.\u0275\u0275elementStart(0,"div",45)(1,"div",46)(2,"mat-icon"),e.\u0275\u0275text(3,"get_app"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",47),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd()()()),2&o&&(e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(6,1,"downloads.no-results")))}function Z(o,i){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",48)(1,"div",49)(2,"div",47),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",50),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().cleanNavigate()}),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd()()()}if(2&o){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate4("",e.\u0275\u0275pipeBind1(4,5,"downloads.text-filter.part1")," ",t.downloadList.total_count," ",e.\u0275\u0275pipeBind1(5,7,"downloads.text-filter.part2")," \u201c",t.searchItem?t.searchItem:t.categorieTerm,"\u201d"),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(8,9,"downloads.clear-filter"))}}function K(o,i){1&o&&(e.\u0275\u0275elementStart(0,"h1",51),e.\u0275\u0275text(1,"Downloads"),e.\u0275\u0275elementEnd())}function Y(o,i){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"figure",67)(1,"img",41),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext().$implicit;return e.\u0275\u0275nextContext().goToDetail(a)}),e.\u0275\u0275elementEnd()()}if(2&o){const t=e.\u0275\u0275nextContext().$implicit,n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("src",n.placeholder,e.\u0275\u0275sanitizeUrl)("alt",t.title)}}function Q(o,i){if(1&o&&e.\u0275\u0275element(0,"img",68),2&o){const t=e.\u0275\u0275nextContext().$implicit,n=e.\u0275\u0275nextContext();e.\u0275\u0275property("src",n.generatePlaceholder(t.title),e.\u0275\u0275sanitizeUrl)("alt",t.title)}}function q(o,i){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"figure",69)(1,"img",70),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext().$implicit;return e.\u0275\u0275nextContext().goToDetail(a)}),e.\u0275\u0275elementEnd()()}if(2&o){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("src",t.image,e.\u0275\u0275sanitizeUrl)("alt",t.title)}}function ee(o,i){if(1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"span",71),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&o){const t=i.$implicit,n=i.index;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(0===n?t.title:", "+t.title)}}function te(o,i){if(1&o&&(e.\u0275\u0275elementStart(0,"div",72),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&o){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.file_extension?t.file_extension:"pdf")}}function ne(o,i){1&o&&(e.\u0275\u0275elementStart(0,"div",72)(1,"mat-icon",73),e.\u0275\u0275text(2,"link"),e.\u0275\u0275elementEnd()())}const oe=function(o){return[o,"card-list"]};function ie(o,i){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",52)(1,"div",53)(2,"div",40),e.\u0275\u0275template(3,Y,2,2,"figure",54),e.\u0275\u0275template(4,Q,1,2,"img",55),e.\u0275\u0275template(5,q,2,2,"figure",56),e.\u0275\u0275element(6,"app-list-small-groups",57),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",58)(8,"div",59)(9,"h1",60),e.\u0275\u0275listener("click",function(){const r=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275nextContext().goToDetail(r)}),e.\u0275\u0275text(10),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",61),e.\u0275\u0275template(12,ee,3,1,"ng-container",62),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(13,"a",63),e.\u0275\u0275listener("click",function(){const r=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275nextContext().downloadFile(r.id)}),e.\u0275\u0275elementStart(14,"div",64),e.\u0275\u0275template(15,te,2,1,"div",65),e.\u0275\u0275template(16,ne,3,0,"div",65),e.\u0275\u0275elementStart(17,"div",66),e.\u0275\u0275text(18),e.\u0275\u0275pipe(19,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(20,"mat-icon"),e.\u0275\u0275text(2
11,"get_app"),e.\u0275\u0275elementEnd()()()()()}if(2&o){const t=i.$implicit,n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!t.image&&n.placeholder),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!n.placeholder&&!t.image),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.image),e.\u0275\u0275advance(1),e.\u0275\u0275property("listSmallGroups",e.\u0275\u0275pureFunction1(11,oe,t)),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(t.title),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.categories),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf","file"===t.download_type),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","link"===t.download_type),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(19,9,"downloads.button"))}}const ae=function(){return[5,10,20,50]};function le(o,i){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"mat-paginator",74),e.\u0275\u0275listener("page",function(a){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().changePage(a)}),e.\u0275\u0275elementEnd()}if(2&o){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("length",t.meta.total_count)("pageSize",t.limit)("pageSizeOptions",e.\u0275\u0275pureFunction0(3,ae))}}let L=(()=>{class o{constructor(t,n,a,r,s,x,Le,Te){this.router=t,this.activatedRoute=n,this.downloadsService=a,this.fb=r,this.ngZone=s,this.slugifyPipe=x,this.dialog=Le,this.cdr=Te,this.page=1,this.pageSize=10,this.limit=10,this.offset=0,this.downloadListFolder=[],this.downloadList=[],this.loading=!0,this.limitFolder=8,this.folderList=!0,this.route=`/${u.n.downloads}`,this.placeholder=h.v.placeholder?h.v.placeholder:null,this.selectCategorie=0,this.breadcrumb=[{route:"/",label:"downloads.breadcrumb.home"},{route:this.route,label:"downloads.breadcrumb.downloads"}],this.swiperConfig={a11y:!0,direction:"horizontal",observer:!0,spaceBetween:10,slideToClickedSlide:!0,slidesPerView:"auto",slidesOffsetBefore:0,slidesOffsetAfter:0,simulateTouch:!0,resistanceRatio:.6,watchSlidesVisibility:!0,watchSlidesProgress:!0,watchOverflow:!0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}},this.router.events.pipe((0,I.h)(m=>m instanceof c.m2),(0,E.U)(m=>m.url)).subscribe(m=>{this.urlRoute=m}),this.searchForm=this.fb.group({search:[]}),this.search=this.searchForm.controls.search}ngOnInit(){this.downloadsService.getCategories().subscribe(),this.categories$=this.downloadsService.categoryList$,this.initComponent(this.urlRoute),this.cdr.detectChanges()}initComponent(t){const n=t.split("/");this.params=this.activatedRoute.snapshot.queryParams,this.params.query&&(this.searchItem=this.params.query),this.params.categorie&&(this.categorieTerm=this.params.categorie),this.folderList&&(n.length>4?(this.folderId=n[3],this.getDownloadFolder(this.folderId),this.subFolder=n[4]):this.getDownloadFolder()),this.cdr.detectChanges()}searchNavigate(t){this.params=t;const n=this.subFolder?`${this.route}/folder/${this.folderId}/${this.subFolder}`:this.route;this.ngZone.run(()=>{this.router.navigate([n],{queryParams:t})})}getDownloadFolder(t){this.downloadsService.getDownloadsFolderList(this.limit,this.offset,t).subscribe(n=>{this.downloadListFolder=n.folders,this.downloadList=n.downloads.objects,this.meta=n.downloads.meta,this.cdr.detectChanges()})}getDownloadList(){this.downloadsService.getDownloadsList(this.limit,this.offset,this.params.cat||"",this.params.query||"").subscribe(a=>{this.downloadList=a.objects,this.meta=a.meta,this.cdr.detectChanges()})}cleanNavigate(){this.searchForm.get("search").setValue(""),this.searchItem="",this.categorieId=null,this.categorieTerm="",this.getDownloadFolder(),this.folderList=!0}generatePlaceholder(t){return(0,g.qF)("124x166",t)}changePage(t){this.scrollingChange(),this.offset=t.pageIndex*t.pageSize,this.limit=t.pageSize,this.searchItem?this.getDownloadList():this.getDownloadFolder(this.folderId)}scrollingChange(){window.scrollTo(0,0);const n=document.querySelector(".title-download").getBoundingClientRect().top-90;window.scrollTo({top:n,behavior:"smooth"})}searchText(t,n){let a=!0;const r=Number(this.params.cat),s={p:this.params.p?this.params.p:this.page,size:this.params.size?this.params.size:this.limit};"none"===t&&this.searchForm.get("search").value&&(this.categorieTerm="",this.searchItem=this.searchForm.get("search").value,s.query=s.query?s.query:this.searchItem,this.folderList=!1),n===r?(this.categorieId=null,this.categorieTerm="",this.folderList=!0,a=!1,this.searchItem=""):(this.categorieId=n>0?n:null,"none"!==t&&(this.searchForm.get("search").setValue(""),this.searchItem="",s.categorie=s.categorie?s.categorie:t,s.cat=s.cat?s.cat:this.categorieId,this.categorieTerm=t,this.folderList=!1),this.selectCategorie=this.categorieId),this.searchNavigate(s),a?this.getDownloadList():this.getDownloadFolder()}goToDetail(t){this.router.navigateByUrl(`${this.route}/${t.id}/${t.slug}`)}goToFolder(t,n){if(n){const a=this.slugifyPipe.transform(t);this.router.navigateByUrl(`${this.route}/folder/${n}/${a}`),this.getDownloadFolder(n),this.subFolder=t,this.folderId=n}else this.getDownloadFolder(),this.subFolder=t,this.searchNavigate("")}downloadFile(t){this.downloadsService.downloadFile(t).subscribe({next:n=>{this.forceDownloadFile(n.file)},error:n=>{console.error("N\xe3o foi poss\xedvel fazer o download",n)}})}isSafari(){const t=navigator.userAgent.toLowerCase();return(t.indexOf("safari")>-1||t.indexOf("apple")>
1-1)&&!(t.indexOf("chrome")>-1)}forceDownloadFile(t){const n=document.createElement("a");n.href=t,n.download=t,this.isSafari()||(n.target="_blank"),document.body.appendChild(n),n.click(),document.body.removeChild(n)}downloadModal(t,n){this.dialog.open(D.S,{width:"680px",maxWidth:"50%",data:{downloads:t,downloadsId:n}})}moreFolders(t){this.limitFolder=t}getTitle(t){return decodeURIComponent(t).replace(/-/g," ")}}return o.\u0275fac=function(t){return new(t||o)(e.\u0275\u0275directiveInject(c.F0),e.\u0275\u0275directiveInject(c.gz),e.\u0275\u0275directiveInject(S.X),e.\u0275\u0275directiveInject(p.qu),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(g.Nw),e.\u0275\u0275directiveInject(y.uw),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-downloads-list"]],features:[e.\u0275\u0275ProvidersFeature([g.Nw])],decls:30,vars:21,consts:[[1,"downloads-banner"],[1,"container","content-banner"],["class","title",4,"ngIf"],["class","title-back",3,"click",4,"ngIf"],[3,"breadcrumbList"],["class","container content-subfolder",4,"ngIf"],[1,"downloads","container"],[1,"search-download"],[3,"formGroup","submit"],["appearance","outline",1,"search"],["mat-button","","matSuffix","",1,"secondary-text","mat-button","btn-search"],["matInput","",3,"formControl","placeholder"],["class","category",4,"ngIf"],["class","downloads-folders",4,"ngIf"],["class","col-md-12",4,"ngIf"],["class","col-md-12 clean-download",4,"ngIf"],["class","title-download",4,"ngIf"],[1,"downloads-list"],["class","download col-md-6",4,"ngFor","ngForOf"],[3,"length","pageSize","pageSizeOptions","page",4,"ngIf"],[1,"title"],[1,"title-back",3,"click"],[1,"container","content-subfolder"],[1,"category"],[3,"config"],["class","swiper-slide",4,"ngFor","ngForOf"],[1,"swiper-slide"],[1,"btn-categorie",3,"ngClass","click"],[1,"downloads-folders"],[1,"container",2,"padding-left","12px !important","padding-right","12px !important"],[1,"title-folder"],[1,"folder-list"],["class","folder",4,"ngFor","ngForOf"],[1,"more-folder"],["appButton","","color","primary",3,"click",4,"ngIf"],[1,"folder"],[1,"folder-text"],["class","images",4,"ngIf"],["class","images placeholder",4,"ngIf"],[1,"folder-info"],[1,"images"],[1,"image",3,"src","alt","click"],[1,"images","placeholder"],[1,"image-paceholder",3,"src","alt","click"],["appButton","","color","primary",3,"click"],[1,"col-md-12"],[1,"inform","no-results"],[1,"text-filter"],[1,"col-md-12","clean-download"],[1,"inform"],[1,"text-filter","btn-clean-download",3,"click"],[1,"title-download"],[1,"download","col-md-6"],[1,"download-inner"],["class","placeholder",4,"ngIf"],[3,"src","alt",4,"ngIf"],["class","image",4,"ngIf"],[1,"card-list-smallgroups",3,"listSmallGroups"],[1,"info"],[1,"info-text"],[1,"title",3,"click"],[1,"info-categorie"],[4,"ngFor","ngForOf"],[1,"btn-download",3,"click"],[1,"text-button"],["class","type-link",4,"ngIf"],[1,"text-btn"],[1,"placeholder"],[3,"src","alt"],[1,"image"],[3,"src","alt","click"],[1,"text"],[1,"type-link"],[1,"link-icon"],[3,"length","pageSize","pageSizeOptions","page"]],template:function(t,n){1&t&&(e.\u0275\u0275elementStart(0,"section",0)(1,"div",1),e.\u0275\u0275template(2,z,3,3,"h1",2),e.\u0275\u0275template(3,j,5,3,"h1",3),e.\u0275\u0275element(4,"app-breadcrumb",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,P,3,1,"div",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"section",6)(7,"div",7)(8,"form",8),e.\u0275\u0275listener("submit",function(){return n.searchText("none",0)}),e.\u0275\u0275elementStart(9,"mat-form-field",9)(10,"mat-label"),e.\u0275\u0275text(11),e.\u0275\u0275pipe(12,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"button",10)(14,"mat-icon"),e.\u0275\u0275text(15,"search"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(16,"input",11),e.\u0275\u0275pipe(17,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(18,N,3,2,"div",12),e.\u0275\u0275pipe(19,"async"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerStart(20),e.\u0275\u0275template(21,X,12,10,"section",13),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementStart(22,"section",6)(23,"div"),e.\u0275\u0275template(24,A,7,3,"div",14),e.\u0275\u0275template(25,Z,9,11,"div",15),e.\u0275\u0275template(26,K,2,0,"h1",16),e.\u0275\u0275elementStart(27,"div",17),e.\u0275\u0275template(28,ie,22,13,"div",18),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(29,le,1,4,"mat-paginator",19),e.\u0275\u0275elementEnd()()),2&t&&(e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!n.subFolder),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",n.subFolder),e.\u0275\u0275advance(1),e.\u0275\u0275property("breadcrumbList",n.breadcrumb),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",n.subFolder),e.\u0275\u0275advance(3),e.\u0275\u0275property("formGroup",n.searchForm),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(12,15,"downloads.search-here")),e.\u0275\u0275advance(5),e.\u0275\u0275property("formControl",n.search)("placeholder",e.\u0275\u0275pipeBind1(17,17,"downloads.search-here")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(19,19,n.categories$)),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",n.downloadListFolder.length>0),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!n.searchItem&&(null==n.downloadList?null:n.downloadList.length)<1),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",n.searchItem||!n.folderList),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==n.downloadList?null:n.downloadList.length)>0),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",n.downloadList),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",n.downloadList.length>0))},directives:[d.O5,_.Hw,$.L,p._Y,p.JL,p.sg,v.KE,v.hX,k.lW,v.R9,B.Nt,p.Fj,p.JJ,p.oH,O.nF,d.sg,d.mk,b.J,F.B,V.NW],pipes:[f.X$,d.Ov],styles:["mat-form-field.search[_ngcontent-%COMP%]{width:100%}.content-subfolder[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{text-transform:capitalize}"]}),o})();var re=l(6073),se=l(1481),de=l(8471),ce=l(8184);const pe=function(o){return{"background-color":o}};function me(o,i){if(1&o&&(e.\u0275\u0275elementStart(0,"div",18),e.\u0275\u0275element(1,"img",19),e.\u0275\u0275elementEnd()),2&o){const t=e.\u0275\u0275nextContext().ngIf;e.\u0275\u0275property("ngStyle",e.\u0275\u0275pureFunction1(3,pe,"#"+t.main_color)),e.\u0275\u0275advance(1),e.\u0275\u0275property("src",t.image,e.\u0275\u0275sanitizeUrl)("alt",t.title)}}const w=function(o,i,t){return[o,i,t]};function ge(o,i){if(1&o&&(e.\u0275\u0275elementStart(0,"figure",37),e.\u0275\u0275element(1,"img",38),e.\u0275\u0275elementEnd()),2&o){const t=e.\u0275\u0275nextContext().$implicit,n=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("routerLink",e.\u0275\u0275pureFunction3(3,w,n.route,t.id,t.slug))("src",n.placeholder,e.\u0275\u0275sanitizeUrl)("alt",t.title)}}function fe(o,i){if(1&o&&e.\u0275\u0275element(0,"img",39),2&o){const t=e.\u0275\u0275nextContext().$implicit,n=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("src",n.generatePlaceholder(t.title),e.\u0275\u0275sanitizeUrl)("alt",t.title)}}function ue(o,i){if(1&o&&(e.\u0275\u0275elementStart(0,"figure",25),e.\u0275\u0275element(1,"img",40),e.\u0275\u0275elementEnd()),2&o){const t=e.\u0275\u0275nextContext().$implicit,n=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("routerLink",e.\u0275\u0275pureFunction3(3,w,n.route,t.id,t.slug))("src",t.image,e.\u0275\u0275sanitizeUrl)("alt",t.title)}}function he(o,i){if(1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"span",41),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&o){const t=i.$implicit,n=i.index;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(0===n?t.title:", "+t.title)}}function _e(o,i){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",24)(1,"div",4)(2,"div",25),e.\u0275\u0275template(3,ge,2,7,"figure",26),e.\u0275\u0275template(4,fe,1,2,"
1img",27),e.\u0275\u0275template(5,ue,2,7,"figure",28),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",29)(7,"div",30)(8,"h1",10),e.\u0275\u0275text(9),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",31),e.\u0275\u0275template(11,he,3,1,"ng-container",32),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(12,"div",33),e.\u0275\u0275listener("click",function(){const r=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275nextContext(3).downloadFile(r.id)}),e.\u0275\u0275elementStart(13,"div",34)(14,"div",35),e.\u0275\u0275text(15),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"div",36),e.\u0275\u0275text(17),e.\u0275\u0275pipe(18,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(19,"mat-icon"),e.\u0275\u0275text(20,"get_app"),e.\u0275\u0275elementEnd()()()()()}if(2&o){const t=i.$implicit,n=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!t.image&&n.placeholder),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!n.placeholder&&!t.image),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.image),e.\u0275\u0275advance(2),e.\u0275\u0275property("routerLink",e.\u0275\u0275pureFunction3(10,w,n.route,t.id,t.slug)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.title),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.categories),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(t.file_extension?t.file_extension:"pdf"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(18,8,"downloads.button"))}}function ve(o,i){if(1&o&&(e.\u0275\u0275elementStart(0,"section",20)(1,"h1",21),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",22),e.\u0275\u0275template(5,_e,21,14,"div",23),e.\u0275\u0275elementEnd()()),2&o){const t=e.\u0275\u0275nextContext().ngIf;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,2,"download-details.more-downloads")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.more_downloads)}}const we=function(o){return[o,"detalhe"]};function xe(o,i){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"section",2)(2,"div",3)(3,"div",4)(4,"div",5),e.\u0275\u0275template(5,me,2,5,"div",6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",7),e.\u0275\u0275element(7,"app-list-small-groups",8),e.\u0275\u0275elementStart(8,"div",9)(9,"h1",10),e.\u0275\u0275text(10),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",11)(12,"div",12),e.\u0275\u0275listener("click",function(){const r=e.\u0275\u0275restoreView(t).ngIf;return e.\u0275\u0275nextContext().sharedSocialModal(r.title)}),e.\u0275\u0275elementStart(13,"mat-icon"),e.\u0275\u0275text(14,"share"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"span",13),e.\u0275\u0275text(16),e.\u0275\u0275pipe(17,"translate"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(18,"button",14),e.\u0275\u0275listener("click",function(){const r=e.\u0275\u0275restoreView(t).ngIf;return e.\u0275\u0275nextContext().downloadFile(r.id)}),e.\u0275\u0275text(19),e.\u0275\u0275pipe(20,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(21,"h2",15),e.\u0275\u0275text(22),e.\u0275\u0275pipe(23,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(24,"div",16)(25,"app-accept-jesus-button"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275template(26,ve,6,4,"section",17),e.\u0275\u0275elementContainerEnd()}if(2&o){const t=i.ngIf,n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",t.image),e.\u0275\u0275advance(2),e.\u0275\u0275property("listSmallGroups",e.\u0275\u0275pureFunction1(14,we,t)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.title),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(17,8,"shared-social.share")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(20,10,"download-details.button")," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(23,12,"download-details.description")),e.\u0275\u0275advance(2),e.\u0275\u0275property("innerHTML",n.getSafeHTML(t.description),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.more_downloads.length>0)}}const De=c.Bz.forChild([{path:u.n.downloads||"downloads",component:T,children:[{path:"",component:L,data:{meta:{title:"downloads.meta.title",description:"home.meta.description",override:!0}}},{path:"folder/:id/:name",component:L,data:{meta:{title:"downloads.meta.title",description:"home.meta.description",override:!0}}},{path:":id/:name",component:(()=>{class o{constructor(t,n,a,r,s){this.router=t,this.activatedRoute=n,this.downloadsService=a,this.sanitizer=r,this.dialog=s,this.route=`/${u.n.downloads}`,this.placeholder=h.v.placeholder,this.breadcrumb=[{route:"/",label:"download-details.breadcrumb.home"},{route:this.route,label:"downloads.breadcrumb.downloads"}],this.router.events.pipe((0,I.h)(x=>x instanceof c.m2)).subscribe(()=>this.initComponent())}ngOnInit(){}
1getRouteParams(){return this.activatedRoute.snapshot.params}initComponent(){window.scrollTo(0,0),this.downloadsDetails$=this.downloadsService.getDownloadDetails(this.activatedRoute.snapshot.params.id)}getSafeHTML(t){return this.sanitizer.bypassSecurityTrustHtml(t)}generatePlaceholder(t){return(0,g.qF)("800x600",t)}goToDetail(t){this.router.navigateByUrl(`${this.route}/${t.id}/${t.slug}`)}downloadFile(t){this.downloadsService.downloadFile(t).subscribe(n=>{n.file&&this.forceDownloadFile(n.file),n.plans&&this.downloadModal(n.plans,t)},n=>{console.error("N\xe3o foi poss\xedvel fazer o download",n)})}isSafari(){const t=navigator.userAgent.toLowerCase();return(t.indexOf("safari")>-1||t.indexOf("apple")>-1)&&!(t.indexOf("chrome")>-1)}forceDownloadFile(t){const n=document.createElement("a");n.href=t,n.download=t,this.isSafari()||(n.target="_blank"),document.body.appendChild(n),n.click(),document.body.removeChild(n)}downloadModal(t,n){this.dialog.open(D.S,{width:"680px",maxWidth:"50%",data:{downloads:t,downloadsId:n}})}sharedSocialModal(t){this.dialog.open(re.K,{minWidth:"30%",maxWidth:"500px",data:{type:"download-details",title:t}})}}return o.\u0275fac=function(t){return new(t||o)(e.\u0275\u0275directiveInject(c.F0),e.\u0275\u0275directiveInject(c.gz),e.\u0275\u0275directiveInject(S.X),e.\u0275\u0275directiveInject(se.H7),e.\u0275\u0275directiveInject(y.uw))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-downloads-details"]],decls:4,vars:7,consts:[[3,"title","breadcrumb"],[4,"ngIf"],[1,"download-details","container"],[1,"download-detail"],[1,"download-inner"],[1,"images"],["class","image",3,"ngStyle",4,"ngIf"],[1,"info","card"],[3,"listSmallGroups"],[1,"title-wrapper"],[1,"title"],[1,"share-icons"],[1,"btn-shared-modal-actions",3,"click"],[1,"text-shared-modal"],["appButton","","color","primary",3,"click"],[1,"title-description"],[1,"download-description",3,"innerHTML"],["class","downloads container",4,"ngIf"],[1,"image",3,"ngStyle"],[1,"download-img",3,"src","alt"],[1,"downloads","container"],[1,"More-download-title"],[1,"downloads-list"],["class","download col-md-6",4,"ngFor","ngForOf"],[1,"download","col-md-6"],[1,"image"],["class","placeholder",4,"ngIf"],[3,"src","alt",4,"ngIf"],["class","image",4,"ngIf"],[1,"info"],[1,"info-text",3,"routerLink"],[1,"info-categorie"],[4,"ngFor","ngForOf"],[1,"btn-download",3,"click"],[1,"text-button"],[1,"type-link"],[1,"text-btn"],[1,"placeholder"],[1,"image",3,"routerLink","src","alt"],[3,"src","alt"],[3,"routerLink","src","alt"],[1,"text"]],template:function(t,n){1&t&&(e.\u0275\u0275element(0,"app-section-banner",0),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275template(2,xe,27,16,"ng-container",1),e.\u0275\u0275pipe(3,"async")),2&t&&(e.\u0275\u0275property("title",e.\u0275\u0275pipeBind1(1,3,"download-details.banner"))("breadcrumb",n.breadcrumb),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(3,5,n.downloadsDetails$)))},directives:[de.u,d.O5,d.PC,F.B,_.Hw,b.J,ce.V,d.sg,c.rH],pipes:[f.X$,d.Ov],styles:[""]}),o})(),data:{meta:{title:"downloads.meta.title",description:"home.meta.description",override:!0}}}]}]);var Se=l(6001),ye=l(1256),be=l(1315);let Fe=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275mod=e.\u0275\u0275defineNgModule({type:o}),o.\u0275inj=e.\u0275\u0275defineInjector({imports:[[d.ez,De,f.aw,Se.m,ye.q,be.E,_.Ps]]}),o})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.