1import{a as z}from"./chunk-MBJOWJ46.js";import{a as S}from"./chunk-WYGH3U5R.js";import{D as R,I as E}from"./chunk-WSOATZQK.js";import{f as A,k as L,l as D}from"./chunk-ZFKPGPGM.js";import{a as j}from"./chunk-AGWDCDCQ.js";import{e as b,f as k,h as H}from"./chunk-2HKR6YLX.js";import{Mb as c,Nb as s,Nc as y,Ra as n,Sa as h,Uc as O,Wc as I,bb as u,ec as _,f as N,fa as p,gb as d,gc as P,ib as l,jb as x,mb as C,oa as f,pa as g,pb as o,qb as a,rb as M,sb as w,tb as v,zb as m}from"./chunk-VX5U5IHC.js";var F=N(R());function T(e,B){if(e&1&&(w(0),o(1,"div",11)(2,"span"),c(3),a()(),v()),e&2){let t=m();n(),x("background",(t.areasInHouse[0]==null||t.areasInHouse[0].area==null?null:t.areasInHouse[0].area.color)||"#FC4629"),n(2),s(t.areasInHouse[0]==null||t.areasInHouse[0].area==null?null:t.areasInHouse[0].area.name)}}function $(e,B){if(e&1&&(o(0,"div"),M(1,"image-comp",12),a()),e&2){let t=m();n(),l("isAvatar",!0)("showLoading",!1)("size","40px")("source",t.photoBasePath+"/"+t.item.authorPhoto)}}var W=(()=>{class e extends D{constructor(t){super(),this.router=t,this.url="",this.isHome=!0,this.areasInHouse=[]}ngOnInit(){this.isHome=this.router.url.toLowerCase()=="/home",this.areasInHouse=this.item.areas.filter(t=>t.area?.houseId?.toLowerCase()==j.houseId?.toLowerCase()),this.makeUrl()}makeUrl(){this.url=`/artigo/${(0,F.default)(this.item.articleDate).format("YYYY/MM/DD")}/${A(this.item.title)}/${this.item.id}`}static{this.\u0275fac=function(r){return new(r||e)(h(b))}}static{this.\u0275cmp=f({type:e,selectors:[["app-article-card"]],inputs:{item:"item",photoBasePath:"photoBasePath"},features:[u],decls:18,vars:12,consts:[[3,"routerLink"],[1,"highlight-card","align-items-center","justify-content-start"],[1,"art-content"],[1,"art-header"],[1,"date"],[4,"ngIf"],[1,"art-title"],[1,"art-autor"],[1,"flex","flex-row","align-items-center","gap-3","mt-5"],[1,"author-info","flex","flex-column","justify-content-start"],[1,"name"],[1,"area-text"],["className","author-avatar","objectFit","fill",3,"isAvatar","showLoading","size","source"]],template:function(r,i){r&1&&(o(0,"a",0)(1,"div")(2,"div",1)(3,"div",2)(4,"div",3)(5,"span",4),c(6),_(7,"date"),a(),d(8,T,4,3,"ng-container",5),a(),o(9,"div",6)(10,"span"),c(11),a()(),o(12,"div",7)(13,"div",8),d(14,$,2,4,"div",5),o(15,"div",9)(16,"span",10),c(17),a()()()()()()()()),r&2&&(l("routerLink",i.url),n(),C(i.isHome?"article-card article-card-home":"article-card"),n(5),s(P(7,9,i.item.articleDate,"dd/MM/yy")),n(2),l("ngIf",(i.areasInHouse==null?null:i.areasInHouse.length)>0),n(3),s(i.item.title),n(3),l("ngIf",i.item.authorPhoto),n(3),s(i.item.author))},dependencies:[y,k,S,O],styles:[".article-card[_ngcontent-%COMP%] .highlight-card[_ngcontent-%COMP%]{height:198px;border-radius:8px;box-shadow:4px 4px 10px #0000001a;border:solid 1px #d9d9d9;background-color:#fff}.article-card[_ngcontent-%COMP%] .highlight-card[_ngcontent-%COMP%] .art-content[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;gap:16px;padding:16px}.article-card[_ngcontent-%COMP%] .highlight-card[_ngcontent-%COMP%] .art-content[_ngcontent-%COMP%] .art-header[_ngcontent-%COMP%]{align-self:stretch;flex-grow:0;display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:0;width:100%;gap:20px}.article-card[_ngcontent-%COMP%] .highlight-card[_ngcontent-%COMP%] .art-content[_ngcontent-%COMP%] .art-header[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{flex-grow:0;font-size:16px;font-weight:700;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;text-align:left;color:#585858}.article-card[_ngcontent-%COMP%] .highlight-card[_ngcontent-%COMP%] .art-content[_ngcontent-%COMP%] .art-header[_ngcontent-%COMP%] .area-text[_ngcontent-%COMP%]{height:26px;min-width:40px;flex-grow:0;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:5px;padding:5px 10px;border-radius:16px;border:solid 1px #a9a9a9;background-color:#fafafa}.article-card[_ngcontent-%COMP%] .highlight-card[_ngcontent-%COMP%] .art-content[_ngcontent-%COMP%] .art-header[_ngcontent-%COMP%] .area-text[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.33;letter-spacing:normal;text-align:center;color:#fff;overflow-wrap:break-all;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical}.article-card[_ngcontent-%COMP%] .highlight-card[_ngcontent-%COMP%] .art-title[_ngcontent-%COMP%]{align-self:stretch;flex-grow:0;font-family:Roboto;font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;text-align:left;color:#004a8d;overflow-wrap:break-word;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical} .art-autor .author-avatar .imgtg{width:40px;height:40px;flex-grow:0;border-radius:50%!important} .art-autor .author-info{gap:5px} .art-autor .author-info .name{font-size:14px;text-transform:uppercase;font-weight:400;font-stretch:normal;font-style:normal;letter-spacing:normal;text-align:left;color:#004a8d}"],data:{animation:[L]}})}}return e})();var at=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=p({imports:[I,H,E,z]})}}return e})();export{W as a,at as b};
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.