1import{a as E}from"./chunk-YPO2P4OL.js";import{a as P}from"./chunk-ODK6OLMN.js";import"./chunk-F4RHCYEH.js";import"./chunk-PI662RGQ.js";import"./chunk-J6GN5CP5.js";import{a as x}from"./chunk-6MGGTZ3Z.js";import"./chunk-7VYIVLNQ.js";import"./chunk-TG2NJRPP.js";import"./chunk-LE3CCYKL.js";import{b as j}from"./chunk-MJK33WWH.js";import{p as S,r as _}from"./chunk-54UEY66B.js";import"./chunk-P5CLKK5P.js";import{Fb as u,Nb as r,Sb as h,Ub as f,Vb as v,Wb as y,Xb as p,Yb as a,Zb as c,gb as l,jc as b,lb as n,qb as s,vc as g,wc as C,yb as d}from"./chunk-HQTOV223.js";function F(i,m){if(i&1&&c(0,"app-thumb-episode",6),i&2){let e=m.$implicit;r("episode",e)}}function M(i,m){if(i&1&&(p(0,"div",0)(1,"h1",1),g(2),a(),p(3,"div",2)(4,"div",3),c(5,"div",4),a(),p(6,"div",5),v(7,F,1,1,"app-thumb-episode",6,f),a()()()),i&2){let e=b();n(2),C(e.company.label),n(3),r("innerHTML",e.format(e.company.content),l),n(2),y(e.episodes)}}var I=(()=>{class i{constructor(e,t,o,w,T){this.activatedRoute=e,this.apiService=t,this.router=o,this.seoService=w,this.episodesService=T,this.episodes=[]}format(e){return e?(e=e.split("<h1>").join('<h1 class="fw-semi-bold fs-3">'),e=e.split("<h2>").join('<h2 class="fw-semi-bold fs-4">'),e=e.split("<h3>").join('<h3 class="fw-semi-bold fs-5">'),e=e.split("<h4>").join('<h4 class="fw-semi-bold fs-6">'),e):""}getEpisodesSuccess(e){e&&e.member&&e.member.length>0&&(this.episodes=e.member)}getEpisodes(e){let t={searchFilters:[{propertyName:"companies.slug",value:e}],pagination:{partial:!0,page:1,itemsPerPage:30},orderFilters:[{propertyName:"date",order:"desc"}]};this.apiService.get("/api/episodes",t).subscribe(o=>this.getEpisodesSuccess(o))}getCompanySuccess(e){e&&e.member&&e.member.length>0&&(this.company=e.member[0],this.company&&this.company.label&&this.company.description&&this.seoService.setSeo(this.company.label,this.company.description))}getCompany(e){let t={searchFilters:[{propertyName:"slug",value:e}],pagination:{partial:!0,page:1,itemsPerPage:1}};this.apiService.get("/api/companies",t).subscribe(o=>this.getCompanySuccess(o))}ngOnInit(){this.activatedRoute.params.subscribe(e=>{e.slug?(this.getEpisodes(e.slug),this.getCompany(e.slug)):this.router.navigate(["/"]).then()})}static{this.\u0275fac=function(t){return new(t||i)(s(S),s(j),s(_),s(x),s(P))}}static{this.\u0275cmp=d({type:i,selectors:[["app-public-company"]],decls:1,vars:1,consts:[[1,"container","py-4"],[1,"fw-semi-bold"],[1,"row","g-4"],[1,"col-lg-8"],[3,"innerHTML"],[1,"col-lg-4"],[3,"episode"]],template:function(t,o){t&1&&u(0,M,9,2,"div",0),t&2&&h(o.company?0:-1)},dependencies:[E],encapsulation:2})}}return i})();var B=[{path:"",component:I}];export{B as routes};
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.