1import{a as M,b as E,c as L,d as b,e as D,f as F,g as z,h as A,i as P}from"./chunk-FJPAZSBH.js";import"./chunk-32IHONTD.js";import{Ca as _,Ea as x,Ja as d,Kb as T,Na as n,Ra as p,Sa as r,Ta as a,Ub as C,_a as s,fc as y,hc as N,ib as l,ic as H,jb as w,mc as S,qb as v,rb as I,ta as c,tb as u,ua as f,ub as h,va as g,xa as i}from"./chunk-DKPTFWTN.js";var O=()=>["/admin"],k=t=>["/admin/news/edit",t];function U(t,o){if(t&1&&a(0,"div",8),t&2){let e=s(2);n("innerHTML",e.news.footerInformation,c)}}function B(t,o){if(t&1&&(p(0,"app-news-article-image",4)(1,"span",5),l(2),r(),a(3,"img",6),d(4,U,1,1,"div",7),r()),t&2){let e=s();n("showFooterInformation",e.getFooterInformation(e.news)),i(2),w(e.news.newsTitle),i(),n("src",e.getSourcePath(e.news),f)("alt",e.news.newsTitle),i(),n("ngIf",e.news.footerInformation)}}function V(t,o){if(t&1&&a(0,"div",10),t&2){let e=s(2);n("innerHTML",e.news.footerInformation,c)}}function j(t,o){if(t&1&&(p(0,"app-news-article-image-html-bottom",4)(1,"span",5),l(2),r(),a(3,"img",6)(4,"div",8),d(5,V,1,1,"div",9),r()),t&2){let e=s();n("showFooterInformation",e.getFooterInformation(e.news)),i(2),w(e.news.newsTitle),i(),n("src",e.getSourcePath(e.news),f)("alt",e.news.newsTitle),i(),n("innerHTML",e.news.htmlSnippet,c),i(),n("ngIf",e.news.footerInformation)}}function W(t,o){if(t&1&&a(0,"div",10),t&2){let e=s(2);n("innerHTML",e.news.footerInformation,c)}}function Y(t,o){if(t&1&&(p(0,"app-news-article-left-image-html",4)(1,"span",5),l(2),r(),a(3,"img",6)(4,"div",8),d(5,W,1,1,"div",9),r()),t&2){let e=s();n("showFooterInformation",e.getFooterInformation(e.news)),i(2),w(e.news.newsTitle),i(),n("src",e.getSourcePath(e.news),f)("alt",e.news.newsTitle),i(),n("innerHTML",e.news.htmlSnippet,c),i(),n("ngIf",e.news.footerInformation)}}function q(t,o){if(t&1&&a(0,"div",10),t&2){let e=s(2);n("innerHTML",e.news.footerInformation,c)}}function G(t,o){if(t&1&&(p(0,"app-news-article-right-image-html",4)(1,"span",5),l(2),r(),a(3,"img",11)(4,"div",12),d(5,q,1,1,"div",9),r()),t&2){let e=s();n("showFooterInformation",e.getFooterInformation(e.news)),i(2),w(e.news.newsTitle),i(),n("src",e.getSourcePath(e.news),f)("alt",e.news.newsTitle),i(),n("innerHTML",e.news.htmlSnippet,c),i(),n("ngIf",e.news.footerInformation)}}function J(t,o){if(t&1&&a(0,"div",8),t&2){let e=s(2);n("innerHTML",e.news.footerInformation,c)}}function K(t,o){if(t&1&&(p(0,"app-news-article-video",4)(1,"span",5),l(2),r(),a(3,"iframe",13),u(4,"safe"),d(5,J,1,1,"div",7),r()),t&2){let e=s();n("showFooterInformation",e.getFooterInformation(e.news)),i(2),w(e.news.newsTitle),i(),n("src",h(4,4,e.news.youTubeUrl),g),i(2),n("ngIf",e.news.footerInformation)}}function Q(t,o){if(t&1&&(p(0,"app-news-article-text")(1,"span",5),l(2),r(),p(3,"p",14),l(4),r()()),t&2){let e=s();i(2),w(e.news.newsTitle),i(2),w(e.news.plainTextSnippet)}}function X(t,o){if(t&1&&(p(0,"app-news-article-html")(1,"span",5),l(2),r(),a(3,"div",12),r()),t&2){let e=s();i(2),w(e.news.newsTitle),i(),n("innerHTML",e.news.htmlSnippet,c)}}var R=class t{constructor(o,e,m){this.homeService=o;this.router=e;this.activatedRoute=m}news;onText="Yes";offText="No";onColor="green";offColor="red";ngOnInit(){this.loadNews()}getFooterInformation(o){return!(o.footerInformation==null||o.footerInformation=="undefined")}loadNews(){let o=this.activatedRoute.snapshot.paramMap.get("id");if(!o)throw new Error("News ID is missing in route.");let e=+o;this.homeService.getNewsArticle(e).subscribe(m=>{this.news=m})}getSourcePath(o){return o.imageUrl}toggleActiveNews(o){}static \u0275fac=function(e){return new(e||t)(_(P),_(N),_(y))};
1static \u0275cmp=x({type:t,selectors:[["app-news-details"]],decls:14,vars:12,consts:[[1,"newsarticle"],[1,"ml-4",3,"routerLink"],[3,"showFooterInformation",4,"ngIf"],[4,"ngIf"],[3,"showFooterInformation"],[1,"_n1"],[1,"_n2",3,"src","alt"],["class","_n3",3,"innerHTML",4,"ngIf"],[1,"_n3",3,"innerHTML"],["class","_n4",3,"innerHTML",4,"ngIf"],[1,"_n4",3,"innerHTML"],[1,"_n3",3,"src","alt"],[1,"_n2",3,"innerHTML"],["width","100%","height","500","webkitallowfullscreen","","mozallowfullscreen","","allowfullscreen","","frameborder","0",1,"_n2",3,"src"],[1,"_n2"]],template:function(e,m){e&1&&(p(0,"div",0),l(1," BELOW IS A PREVIEW OF YOUR NEWS ITEM "),p(2,"a",1),l(3,"Back to all News Item(s)"),r(),p(4,"a",1),l(5,"Edit this News Item"),r()(),a(6,"br"),d(7,B,5,5,"app-news-article-image",2)(8,j,6,6,"app-news-article-image-html-bottom",2)(9,Y,6,6,"app-news-article-left-image-html",2)(10,G,6,6,"app-news-article-right-image-html",2)(11,K,6,6,"app-news-article-video",2)(12,Q,5,2,"app-news-article-text",3)(13,X,4,2,"app-news-article-html",3)),e&2&&(i(2),n("routerLink",v(9,O)),i(2),n("routerLink",I(10,k,m.news.id)),i(3),n("ngIf",m.news.articleImage),i(),n("ngIf",m.news.articleImageTextBottom),i(),n("ngIf",m.news.articleLeftTextAndImage),i(),n("ngIf",m.news.articleRightTextAndImage),i(),n("ngIf",m.news.articleVideo),i(),n("ngIf",m.news.articleText),i(),n("ngIf",m.news.articleHTML))},dependencies:[C,T,S,H,M,E,L,b,D,F,z,A],styles:["a[_ngcontent-%COMP%]{color:#00f}.newsarticle[_ngcontent-%COMP%]{background-color:gold;border:solid rgb(102,0,0);border-width:1px 0px 1px 0px;margin:0;padding:8px;text-align:center;color:#000;font-size:small;font-family:Arial,Verdana,Helvetica,sans-serif}.newsimage[_ngcontent-%COMP%]{border:solid #b50d04;border-width:1px 1px 1px 1px;color:#939799;background-color:#000;padding:20px}img[_ngcontent-%COMP%]{max-width:100%;height:auto}p[_ngcontent-%COMP%]{padding-top:20px;padding-right:40px;color:#939799}h3[_ngcontent-%COMP%]{color:#939799}"]})};export{R as NewsDetailsComponent};
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.