1import{a as X}from"./chunk-JXWPSJ6Z.js";import{a as F,c as z,f as E}from"./chunk-W5YMMA2R.js";import{a as W}from"./chunk-UJYMJQZB.js";import"./chunk-IWAWM5X7.js";import{c as K}from"./chunk-YDXYDHVT.js";import"./chunk-57BBKKDM.js";import"./chunk-BDBNNF5F.js";import"./chunk-BMNDREH6.js";import{c as w}from"./chunk-IQLQCF3X.js";import{b as Q}from"./chunk-HU7SHZ2P.js";import"./chunk-WKTS323O.js";import"./chunk-G5C4E5SZ.js";import"./chunk-JFOVODTQ.js";import"./chunk-HHMUAAKH.js";import"./chunk-KX3MZ4HX.js";import"./chunk-CPVTU5XS.js";import"./chunk-EUZLHDMR.js";import"./chunk-LSHSIR26.js";import"./chunk-BTO3RYRP.js";import"./chunk-OYMZJ57R.js";import"./chunk-3W7VWIDZ.js";import{Fa as f,Ra as B,na as I}from"./chunk-OOUYCANI.js";import{Ca as P,Cb as y,Hb as v,Hc as G,Ib as $,Kb as l,Lb as g,Mb as j,Ob as N,Pb as S,Qb as p,Qc as d,Rb as i,Rc as _,Sb as c,Sc as T,Tb as s,Va as x,Za as o,_ as C,_c as J,dd as O,fc as r,nb as M,qc as q,ra as U,tc as h,ub as b,uc as D,vc as k}from"./chunk-WXYLEQT5.js";import{a as H,b as L}from"./chunk-C6Q5SG76.js";var te=()=>[B,w];function oe(n,t){if(n&1&&(s(0,"img",6),d(1,"translate"),d(2,"translate")),n&2){let e=r(2).$implicit;p("ngSrc",e.yoast_head_json.og_image[0].url)("alt",_(1,3,"Imagem de "+e.yoast_head_json.og_title))("title",_(2,5,e.yoast_head_json.og_title))}}function ae(n,t){n&1&&s(0,"div",7)}function ie(n,t){n&1&&(b(0,oe,3,7)(1,ae,1,0),y(2,0,te,null,1),v(0,-1))}function ce(n,t){if(n&1&&(i(0,"swiper-slide",2)(1,"a",3)(2,"mat-card")(3,"mat-card-header"),l(4,ie,4,0),c(),i(5,"mat-card-content")(6,"h2",4),h(7),d(8,"translate"),c(),i(9,"span",5),h(10),d(11,"date"),c()()()()()),n&2){let e=t.$implicit,a=r();o(),p("href",e.link,x),o(3),g(!(e.yoast_head_json==null||e.yoast_head_json.og_image==null||e.yoast_head_json.og_image[0]==null)&&e.yoast_head_json.og_image[0].url?4:-1),o(3),k(" ",_(8,4,(e.yoast_head_json==null?null:e.yoast_head_json.og_title)||e.title)," "),o(3),D(a.isBrowser&&e.date?T(11,6,e.date,"d 'de' MMMM, y"):"")}}var A=class n{posts=O(void 0);platformId=C(P);isBrowser=f(this.platformId);swiperConfig={autoplay:{delay:3e3,disableOnInteraction:!1},initialSlide:0,slidesPerView:1.5,effect:"slide",direction:"horizontal",lazy:!0,slideToClickedSlide:!0,observer:!0,speed:600,spaceBetween:10,centeredSlides:!0,centeredSlidesBounds:!0,breakpoints:{320:{slidesPerView:1},420:{slidesPerView:1.5},620:{slidesPerView:2}},pagination:{el:".papo-news-mobile-pagination",type:"bullets",clickable:!0,renderBullet(t,e){return'<span class="'+e+'"></span>'}}};static \u0275fac=function(e){return new(e||n)};static \u0275cmp=M({type:n,selectors:[["imobzi-papo-news-mobile"]],inputs:{posts:[1,"posts"]},decls:4,vars:1,consts:[[1,"container"],["appSwiper","",1,"papo-mobile-swiper-container",3,"config"],[1,"swiper-slide-paponews"],["target","_blank",1,"posts-content",3,"href"],[1,"title"],[1,"subtitle"],["fill","",1,"news-image",3,"ngSrc","alt","title"],[1,"news-image",2,"background-color","#f0f0f0"]],template:function(e,a){e&1&&(i(0,"section",0)(1,"swiper-container",1),N(2,ce,12,9,"swiper-slide",2,j),c()()),e&2&&(o(),p("config",a.swiperConfig),o(),S(a.posts()))},dependencies:[X,F,E,z,I,w],styles:[".papo-mobile-swiper-container[_ngcontent-%COMP%]{height:440px}.swiper-slide-paponews[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%]{height:370px}.swiper-slide-paponews[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%]{position:relative;height:170px}.swiper-slide-paponews[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .news-image[_ngcontent-%COMP%]{border-top-left-radius:var(--mdc-elevated-card-container-shape);border-top-right-radius:var(--mdc-elevated-card-container-shape);object-fit:fill}.swiper-slide-paponews[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%] .mat-mdc-card-content[_ngcontent-%COMP%]{height:200px;display:flex;flex-direction:column;justify-content:space-between}swiper-container[_ngcontent-%COMP%]::part(bullet), swiper-container[_ngcontent-%COMP%]::part(bullet-active){width:12px;height:12px;margin-right:0 10px}swiper-container[_ngcontent-%COMP%]::part(bullet-active){background-color:var(--secondary-background)}"]})};var re=()=>[B,w];function pe(n,t){if(n&1&&(s(0,"img",6),d(1,"translate"),d(2,"translate")),n&2){let e=r(2).$implicit;p("ngSrc",e.yoast_head_json.og_image[0].url)("alt",_(1,3,"Imagem de "+e.yoast_head_json.og_title))("title",_(2,5,e.yoast_head_json.og_title))}}function de(n,t){n&1&&s(0,"div",7)}function se(n,t){n&1&&(b(0,pe,3,7)(1,de,1,0),y(2,0,re,null,1),v(0,-1))}function le(n,t){if(n&1&&(i(0,"a",2),d(1,"translate"),i(2,"mat-card",3)(3,"mat-card-header"),l(4,se,4,0),c(),i(5,"mat-card-content")(6,"h2",4),h(7),d(8,"translate"),c(),i(9,"span",5),h(10),d(11,"date"),c()()()()),n&2){let e=t.$implicit,a=r();$("aria-label",G(_(1,6,"Mais detalhes"))),p("href",e.link,x),o(4),g(!(e.yoast_head_json==null||e.yoast_head_json.og_image==null||e.yoast_head_json.og_image[0]==null)&&e.yoast_head_json.og_image[0].url?4:-1),o(3),k(" ",_(8,8,(e.yoast_head_json==null?null:e.yoast_head_json.og_title)||e.title)," "),o(3),D(a.isBrowser&&e.date?T(11,10,e.date,"d 'de' MMMM, y"):"")}}var V=class n{posts=O(void 0);platformId=C(P);isBrowser=f(this.platformId);static \u0275fac=function(e){return new(e||n)};static \u0275cmp=M({type:n,selectors:[["imobzi-papo-news-desktop"]],inputs:{posts:[1,"posts"]},decls:4,vars:2,consts:[[1,"container"],[1,"papo-news-container"],["target","_blank",1,"card-container",3,"aria-label","href"],[1,"card"],[1,"title"],[1,"subtitle"],["fill","",1,"card-figure",3,"ngSrc","alt","title"],[1,"card-figure",2,"background-color","#f0f0f0"]],template:function(e,a){e&1&&(i(0,"section",0)(1,"div",1),N(2,le,12,13,"a",2,j),c()()),e&2&&(q("six-cards",a.posts().length>3),o(2),S(a.posts()))},dependencies:[F,E,z,I,w],styles:["@media(min-width:1024px)and (max-width:1199px){.papo-news-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,300px);grid-gap:20px}.papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%]{width:100%;height:420px}.papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{height:100%}.papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%]{position:relative;width:100%;height:200px}.papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .card-figure[_ngcontent-%COMP%]{border-top-left-radius:var(--mdc-elevated-card-container-shape);border-top-right-radius:var(--mdc-elevated-card-container-shape);object-fit:cover}.papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-content[_ngcontent-%COMP%]{height:220px;display:flex;flex-direction:column;justify-content:space-between}}@media(min-width:1200px)and (max-width:1399px){.papo-news-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,380px);grid-gap:20px}.papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%]{width:100%;height:450px}.papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{height:100%}.papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%]{position:relative;width:100%;height:200px}.papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .card-figure[_ngcontent-%COMP%]{border-top-left-radius:var(--mdc-elevated-card-container-shape);border-top-right-radius:var(--mdc-elevated-card-container-shape);object-fit:cover}.papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-content[_ngcontent-%COMP%]{height:250px;display:flex;flex-direction:column;justify-content:space-between}}@media(min-width:1399px){.papo-news-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:20px}.papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%]{width:100%;height:450px}.papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{height:100%}.papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%]{position:relative;width:100%;height:200px}.papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .card-figure[_ngcontent-%COMP%]{border-top-left-radius:var(--mdc-elevated-card-container-shape);border-top-right-radius:var(--mdc-elevated-card-container-shape);object-fit:cover}.papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-content[_ngcontent-%COMP%]{height:250px;display:flex;flex-direction:column;justify-content:space-between}}@media(min-width:2560px){.papo-news-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:20px}.papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%]{width:100%;height:450px}.papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{height:100%}.papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%]{position:relative;width:100%;height:200px}.papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .card-figure[_ngcontent-%COMP%]{border-top-left-radius:var(--mdc-elevated-card-container-shape);border-top-right-radius:var(--mdc-elevated-card-container-shape);object-fit:cover}.papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-content[_ngcontent-%COMP%]{height:250px;display:flex;flex-direction:column;justify-content:space-between}}@media(min-width:1024px)and (max-width:1199px){.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:20px}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%]{width:100%;height:450px}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{height:100%}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%]{position:relative;width:100%;height:260px}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .card-figure[_ngcontent-%COMP%]{border-top-left-radius:var(--mdc-elevated-card-container-shape);border-top-right-radius:var(--mdc-elevated-card-container-shape);object-fit:cover}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-content[_ngcontent-%COMP%]{height:190px;display:flex;flex-direction:column;justify-content:space-between}}@media(min-width:1200px)and (max-width:1399px){.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,30%);grid-gap:20px}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%]{width:100%;height:555px}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{height:100%}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%]{position:relative;width:100%;height:384px}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .card-figure[_ngcontent-%COMP%]{border-top-left-radius:var(--mdc-elevated-card-container-shape);border-top-right-radius:var(--mdc-elevated-card-container-shape);object-fit:cover}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-content[_ngcontent-%COMP%]{height:171px;display:flex;flex-direction:column;justify-content:space-between}}@media(min-width:1399px){.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(6,1fr);grid-gap:20px}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%]{width:250px;height:555px}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{height:100%}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%]{position:relative;width:250px;height:384px}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .card-figure[_ngcontent-%COMP%]{border-top-left-radius:var(--mdc-elevated-card-container-shape);border-top-right-radius:var(--mdc-elevated-card-container-shape);object-fit:cover}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-content[_ngcontent-%COMP%]{height:171px;display:flex;flex-direction:column;justify-content:space-between}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%]{grid-gap:10px}}@media(min-width:1920px){.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(6,1fr);grid-gap:20px}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%]{width:250px;height:555px}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{height:100%}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%]{position:relative;width:250px;height:384px}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .card-figure[_ngcontent-%COMP%]{border-top-left-radius:var(--mdc-elevated-card-container-shape);border-top-right-radius:var(--mdc-elevated-card-container-shape);object-fit:cover}.six-cards[_ngcontent-%COMP%] .papo-news-container[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .mat-mdc-card-content[_ngcontent-%COMP%]{height:171px;display:flex;flex-direction:column;justify-content:space-between}}.six-cards[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:14px!important}"]})};function ge(n,t){if(n&1&&s(0,"imobzi-section-title",0),n&2){let e=r(3);p("title",e.section().title)("subtitle",e.section().subtitle)}}function _e(n,t){if(n&1&&s(0,"imobzi-papo-news-mobile",1),n&2){let e=r(3);p("posts",e.posts())}}function me(n,t){if(n&1&&s(0,"imobzi-papo-news-desktop",1),n&2){let e=r(3);p("posts",e.posts())}}
1function Ce(n,t){if(n&1&&(i(0,"section"),l(1,ge,1,2,"imobzi-section-title",0),l(2,_e,1,1,"imobzi-papo-news-mobile",1)(3,me,1,1,"imobzi-papo-news-desktop",1),c()),n&2){let e=r(2);o(),g(e.section().title?1:-1),o(),g(e.isSmallScreen()?2:3)}}function Pe(n,t){if(n&1&&l(0,Ce,4,2,"section"),n&2){let e=r();g(e.posts?0:-1)}}var ee=class n{breakpointsService=C(K);homeService=C(W);platformId=C(P);section=O();posts=U([]);isBrowser;isSmallScreen=J(()=>this.breakpointsService.isInViewPort(["--phone-upper-boundary","--tablet-portrait-upper-boundary"])());constructor(){this.isBrowser=f(this.platformId)}ngOnInit(){this.getPosts()}getPosts(){this.homeService.getPosts().subscribe(t=>{let e=this.section().news_type==="six_cards"?6:3,a=t.slice(0,e);this.posts.set(a),a.forEach(u=>{!(u.yoast_head_json?.og_image&&u.yoast_head_json.og_image.length>0)&&u.featured_media&&this.homeService.getMedia(u.featured_media).subscribe(R=>{R&&R.source_url&&this.posts.update(ne=>ne.map(m=>m===u?L(H({},m),{yoast_head_json:L(H({},m.yoast_head_json),{og_title:m.yoast_head_json?.og_title||m.title?.rendered||m.title,og_image:[...m.yoast_head_json?.og_image||[],{url:R.source_url}]})}):m))})})})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=M({type:n,selectors:[["imobzi-papo-news"]],inputs:{section:[1,"section"]},decls:1,vars:1,consts:[[1,"container",3,"title","subtitle"],[3,"posts"]],template:function(e,a){e&1&&l(0,Pe,1,1),e&2&&g(a.isBrowser?0:-1)},dependencies:[Q,A,V],encapsulation:2})};export{ee as PapoNewsComponent};
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.