1import{b as te}from"./chunk-3C5RPCTU.js";import{a as ae,b as re,c as se,d as le}from"./chunk-SQBKJBV4.js";import{a as oe}from"./chunk-SPNP6H5U.js";import{a as $,b as ee}from"./chunk-L3VBP6UL.js";import"./chunk-R6UW2BWH.js";import"./chunk-N26CRYQF.js";import{a as ne,b as ie}from"./chunk-3OOMYSUZ.js";import"./chunk-ANL3SY5J.js";import"./chunk-S2WFR62K.js";import"./chunk-5Y2DTTV4.js";import"./chunk-JLVQCT32.js";import"./chunk-2S573IE7.js";import"./chunk-LT6NGT7L.js";import"./chunk-NZNUJFEC.js";import"./chunk-CVY37BMV.js";import{a as J,b as K,c as Q}from"./chunk-ACEYUKYB.js";import"./chunk-ZOEXMAWM.js";import"./chunk-AJ243R6H.js";import{d as U,e as X}from"./chunk-OQPFM6OR.js";import"./chunk-M2D7UT6E.js";import{a as Y,b as Z}from"./chunk-EV62G2J3.js";import"./chunk-5KLN42BC.js";import"./chunk-ZMK3ZYUB.js";import"./chunk-6FSPI2C7.js";import{b as A}from"./chunk-XLVXTFMB.js";import"./chunk-PG6NNKTE.js";import{I as G,t as H}from"./chunk-WSOATZQK.js";import{c as E,g as k,k as B,s as W}from"./chunk-NBEEIOTN.js";import{f as j,k as q}from"./chunk-ZFKPGPGM.js";import"./chunk-AGWDCDCQ.js";import{h as y}from"./chunk-2HKR6YLX.js";import{Fa as b,Kb as D,L as P,Mb as T,Mc as L,Nc as z,Ra as o,Sa as M,Sb as _,Tb as w,Ub as v,Wc as R,bb as O,fa as I,gb as f,ib as a,mb as V,oa as S,pa as N,pb as s,qb as l,rb as c,tc as F,vb as x,wa as d,xa as m,yb as C,zb as h}from"./chunk-VX5U5IHC.js";function me(t,u){t&1&&c(0,"skeleton-loading",20)}function ge(t,u){t&1&&c(0,"not-found")}function ce(t,u){if(t&1&&(s(0,"div",17),f(1,me,1,0,"skeleton-loading",18)(2,ge,1,0,"not-found",19),l()),t&2){let e=h();o(),a("ngIf",e.loading),o(),a("ngIf",!e.onFirstLoadedData&&e.data.length==0)}}function ue(t,u){if(t&1&&(s(0,"div",25),c(1,"app-news-card",26),l()),t&2){let e=u.$implicit,i=h(2);o(),a("photoBasePath",i.service.photoBasePath)("item",e)}}function he(t,u){if(t&1){let e=x();s(0,"p-paginator",27),C("onPageChange",function(n){d(e);let p=h(2),g=D(2);return m(p.onPageChange(n,g))}),l()}if(t&2){let e=h(2);a("rows",e.getCmd.pageSize)("showFirstLastIcon",!1)("totalRecords",e.getCmd.totalRows)}}function fe(t,u){if(t&1&&(s(0,"div",21),f(1,ue,2,2,"div",22),s(2,"div",23),f(3,he,1,3,"p-paginator",24),l()()),t&2){let e=h();o(),a("ngForOf",e.data),o(2),a("ngIf",e.getCmd.totalRows>e.getCmd.pageSize)}}var pe=(()=>{class t extends oe{constructor(e,i){super(e),this._service=e,this.changeDetectorRef=i,this.units=[],this.areas=[],this.tagsDelimited="",this.filterChanged=new b,this.formatFriendlyLink=j,this.filterChanged.pipe(P(800)).subscribe(()=>{this.onFirstLoadedData||this.query()}),this.onLoadedData.subscribe(n=>{this.getCmd.totalRows<=this.getCmd.pageSize&&(this.getCmd.page=0)}),this.onScreenSizeChange.subscribe(()=>{this.calcPageSize(),this.onFirstLoadedData||this.query()})}ngOnInit(){this.activatedRoute.snapshot.params.unitid&&(this.units=[{unitId:this.activatedRoute.snapshot.params.unitid}]),this.activatedRoute.queryParams.subscribe(e=>{this.tagsDelimited=e.tags,this.getCmd=new A(8),this.calcPageSize(),super.ngOnInit(),this.query()})}calcPageSize(){this.responsiveService.isLarge||this.responsiveService.isXLarge?this.getCmd.pageSize=32:this.responsiveService.isMedium?this.getCmd.pageSize=16:this.getCmd.pageSize=8}query(){this.getCmd.aditionalParams=[],this.getCmd.searchValue&&this.getCmd.aditionalParams.push({name:"searchText",value:this.getCmd.searchValue.replace(/'/g," ")}),this.units&&this.units.length>0&&this.getCmd.aditionalParams.push({name:"units",value:this.units.map(e=>e.unitId).join(",")}),this.areas&&this.areas.length>0&&this.getCmd.aditionalParams.push({name:"areas",value:this.areas.map(e=>e.areaId).join(",")}),this.tagsDelimited&&this.getCmd.aditionalParams.push({name:"tags",value:this.tagsDelimited.replace(/'/g," ")}),this.doSearch()}onPageChange(e,i){this.getCmd.page!=e.page+1&&(this.getCmd.page=e.page+1,this.query(),this.responsiveService.isSmall&&setTimeout(()=>{i.scrollIntoView({behavior:"smooth"})},400))}ngOnDestroy(){super.ngOnDestroy()}static{this.\u0275fac=function(i){return new(i||t)(M(J),M(F))}}static{this.\u0275cmp=S({type:t,selectors:[["app-newsletter"]],features:[O],decls:21,vars:11,consts:[["newsletterContent",""],["color","#3F5862","title","Not\xEDcias","icon","../../../../assets/layout/images/newsletter_icon.svg"],[1,"landing-content","responsive-center","newsletter-content"],[1,"preview-content","pt-6","pb-5"],[1,"grid"],[1,"col-12","lg:col-4","filter-content"],[1,"filter-text","p-input-icon-right"],[1,"filter-text-icon","pi","pi-search"],["type","text","pInputText","","placeholder","Pesquise por uma not\xEDcia",1,"searchInput","p-inputtext","p-component","p-element","ng-pristine","ng-valid","ng-touched",3,"ngModelChange","ngModel"],["fieldName","unitId","orign","unit","showIcon","unit","type","comboBox","label","Escolas",3,"ngModelChange","multiple","ngModel"],["fieldName","areaId","orign","area","showIcon","area","type","comboBox","label","\xC1reas de interesse",3,"ngModelChange","multiple","ngModel"],["style","padding-top: 24px;",4,"ngIf"],["class","grid mt-4",4,"ngIf"],[2,"padding-top","35px","padding-bottom","35px"],["href","javascript:history.back()"],["pButton","","type","button",1,"p-element","p-ripple","p-button-outlined","p-button","p-component","btn-back"],[1,"pi","pi","pi-chevron-left",2,"font-size","12px"],[2,"padding-top","24px"],["type","component","height","363px",4,"ngIf"],[4,"ngIf"],["type","component","height","363px"],[1,"grid","mt-4"],["class","newsletter-card-content",4,"ngFor","ngForOf"],[1,"col-12"],[3,"rows","showFirstLastIcon","totalRecords","onPageChange",4,"ngIf"],[1,"newsletter-card-content"],[3,"photoBasePath","item"],[3,"onPageChange","rows","showFirstLastIcon","totalRecords"]],template:function(i,n){if(i&1){let p=x();c(0,"app-header",1),s(1,"div",2,0)(3,"div",3)(4,"div",4)(5,"div",5)(6,"span",6),c(7,"i",7),s(8,"input",8),v("ngModelChange",function(r){return d(p),w(n.getCmd.searchValue,r)||(n.getCmd.searchValue=r),m(r)}),C("ngModelChange",function(){return d(p),m(n.filterChanged.emit())}),l()()(),s(9,"div",5)(10,"multInput",9),v("ngModelChange",function(r){return d(p),w(n.units,r)||(n.units=r),m(r)}),C("ngModelChange",function(){return d(p),m(n.filterChanged.emit())}),l()(),s(11,"div",5)(12,"multInput",10),v("ngModelChange",function(r){return d(p),w(n.areas,r)||(n.areas=r),m(r)}),C("ngModelChange",function(){return d(p),m(n.filterChanged.emit())}),l()()(),f(13,ce,3,2,"div",11)(14,fe,4,2,"div",12),s(15,"div",13)(16,"a",14)(17,"button",15)(18,"span"),c(19,"i",16),T(20,"\xA0\xA0Voltar"),l()()()()()()}
1i&2&&(o(),a("@scaleUp",void 0),o(7),_("ngModel",n.getCmd.searchValue),o(2),a("multiple",!0),_("ngModel",n.units),o(2),a("multiple",!0),_("ngModel",n.areas),o(),a("ngIf",n.data.length==0),o(),a("ngIf",n.data.length>0),o(),V(n.responsiveService.isSmall?"flex align-items-center justify-content-center m-3":""))},dependencies:[L,z,E,k,B,U,H,ae,se,$,K,Y,ne],styles:[".text[_ngcontent-%COMP%]{margin-top:20px;font:var(--unnamed-font-style-normal) normal var(--unnamed-font-weight-normal) var(--unnamed-font-size-18)/var(--unnamed-line-spacing-24) var(--unnamed-font-family-open-sans);letter-spacing:var(--unnamed-character-spacing-0);color:var(--unnamed-color-484848);text-align:left;font: 18px/24px Open Sans;letter-spacing:0px;color:#484848;opacity:1}.details-page-header[_ngcontent-%COMP%]{background:linear-gradient(90deg,#fc4629,#f6be00 101.19%)}.filter-content[_ngcontent-%COMP%] .filter-text[_ngcontent-%COMP%]{width:100%;height:56px}.filter-content[_ngcontent-%COMP%] .filter-text[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:8px;border:.5px solid #A9A9A9;background:#fff;padding-left:16px;padding-right:40px}.filter-content[_ngcontent-%COMP%] .filter-text[_ngcontent-%COMP%] .filter-text-icon[_ngcontent-%COMP%]{color:#004a8d;font-size:20px;margin-top:-1rem;padding-right:9px}@media screen and (max-width: 767px){.newsletter-header[_ngcontent-%COMP%]{height:350px}.newsletter-header[_ngcontent-%COMP%] .newsletter-header-content[_ngcontent-%COMP%]{padding-left:12%}.newsletter-header[_ngcontent-%COMP%] .newsletter-header-content[_ngcontent-%COMP%] .newsletter-header-icon[_ngcontent-%COMP%]{width:129px;height:129px}}.newsletter-card-content[_ngcontent-%COMP%]{flex:0 0 auto;padding:1rem;width:25%}@media screen and (max-width: 1366px){.newsletter-card-content[_ngcontent-%COMP%]{flex:0 0 auto;padding:1rem;width:33.3333%}}@media screen and (max-width: 1030px){.newsletter-card-content[_ngcontent-%COMP%]{flex:0 0 auto;padding:1rem;width:50%}}@media screen and (max-width: 767px){.newsletter-card-content[_ngcontent-%COMP%]{flex:0 0 auto;padding:1rem;width:100%}}"],data:{animation:[q]}})}}return t})();var Ke=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=N({type:t})}static{this.\u0275inj=I({imports:[y.forChild([{path:"",component:pe}]),R,W,X,G,te,re,le,ee,Q,Z,ie,y]})}}return t})();export{Ke as NewsletterPageModule};
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.