1import{a as le,b as me}from"./chunk-PJ77GPLK.js";import{a as ce}from"./chunk-SS5IGHHV.js";import{a as ie}from"./chunk-DS6VET4R.js";import{a as re}from"./chunk-3QXA6DX4.js";import{a as ae,b as se}from"./chunk-PLCT4DYA.js";import{a as ee}from"./chunk-QKUPYMXU.js";import{a as ne}from"./chunk-PUT6OZ77.js";import"./chunk-CLRJY7GX.js";import"./chunk-OQ3RWSP7.js";import{a as oe}from"./chunk-NHYWESKJ.js";import{a as Z}from"./chunk-LZ3R5ZCU.js";import{na as G}from"./chunk-VTVPFUEM.js";import{a as X,b as S}from"./chunk-KDJY6UGW.js";import{B as T,Ba as c,Da as m,Ea as H,Ga as h,Ha as y,I as O,Ia as g,Ja as s,K as x,Ka as a,La as d,O as E,R as k,S as w,Sa as F,Ua as j,V as D,W as $,Wa as r,Wb as W,Zb as A,_ as z,ea as U,fb as R,ib as p,ic as J,jb as M,ka as q,kb as b,kc as Q,l as I,la as v,ma as i,ra as B,tb as Y,tc as K,uc as te,v as N,yb as V,zb as L}from"./chunk-JL4J2RXZ.js";import{a as _,b as C}from"./chunk-C6Q5SG76.js";var P=class t extends Z{constructor(e,o){super({newsItem:null,isLoading:!1,relatedNews:null});this.service=e;this.testimonialsService=o}newsItem$=this.select(e=>e.newsItem);relatedNews$=this.select(e=>e.relatedNews);isLoading$=this.select(e=>e.isLoading);setNewsItem=this.updater((e,o)=>C(_({},e),{newsItem:o}));setIsLoading=this.updater((e,o)=>C(_({},e),{isLoading:o}));setRelatedNews=this.updater((e,o)=>C(_({},e),{relatedNews:o}));setTestimonial=this.updater((e,o)=>C(_({},e),{newsItem:e.newsItem?C(_({},e.newsItem),{testimonial:o}):e.newsItem}));getBySlug=this.effect(e=>e.pipe(x(()=>this.setIsLoading(!0)),O(o=>this.service.getBySlug(o).pipe(x(l=>{this.setNewsItem(l),this.getRelatedNews({tags:l.tags.map(u=>u.name)}),l.testimonialId&&this.getTestimonial(l.testimonialId)}),N(()=>I(null)),T(()=>this.setIsLoading(!1))))));getTestimonial=this.effect(e=>e.pipe(O(o=>this.testimonialsService.getById(o).pipe(x(l=>this.setTestimonial({quote:l.title||"",description:l.description,avatar:l.mediaPhotoUrl,name:l.owner,position:l.position,companyName:l.companyName,socialLink:l.socialLink}))))));getRelatedNews=this.effect(e=>e.pipe(x(()=>this.setIsLoading(!0)),O(({tags:o})=>this.service.getCaseStudies({pageNumber:1,pageSize:ee.defaultItemsForList},o,void 0,"News").pipe(x(l=>{let u=this.get().newsItem?.slug,ge=l.items;this.setRelatedNews(ge.filter(f=>f.slug!==u).map(f=>({id:f.id,title:f.title,description:f.body,photoUrl:f.mediaPhotoUrl,slug:f.slug})))}),N(()=>I(null)),T(()=>this.setIsLoading(!1))))));static \u0275fac=function(o){return new(o||t)(k(ne),k(ie))};static \u0275prov=E({token:t,factory:t.\u0275fac})};var _e=(t,n)=>n.id,de=(t,n)=>n.mediaId;function Ce(t,n){t&1&&(s(0,"div",1),p(1,"Loading..."),a())}function ue(t,n){if(t&1&&(s(0,"span",16),p(1),a()),t&2){let e=n.$implicit;i(),b("#",e.name)}}function fe(t,n){if(t&1&&(s(0,"div",13)(1,"div",15),h(2,ue,2,1,"span",16,_e),a()()),t&2){let e=r();i(2),y(e.tags)}}function ve(t,n){if(t&1&&(s(0,"p",19),p(1),a()),t&2){let e=r().$implicit;i(),b(" ",e.subtitle," ")}}function xe(t,n){if(t&1&&(s(0,"h2",20),p(1),a()),t&2){let e=r().$implicit;i(),b(" ",e.title," ")}}function be(t,n){if(t&1&&(d(0,"div",21),V(1,"safeHtml")),t&2){let e=r().$implicit;g("innerHTML",L(1,1,e.body),q)}}function he(t,n){if(t&1&&(s(0,"div",22),d(1,"img",23),a()),t&2){let e=r().$implicit;i(),g("src",e.photo,v)("alt",e.title)}}function ye(t,n){if(t&1&&(s(0,"div",18),c(1,ve,2,1,"p",19),c(2,xe,2,1,"h2",20),c(3,be,2,3,"div",21),c(4,he,2,2,"div",22),a()),t&2){let e=n.$implicit;i(),m(e.subtitle?1:-1),i(),m(e.title?2:-1),i(),m(e.body?3:-1),i(),m(e.photo?4:-1)}}function Me(t,n){if(t&1&&(s(0,"div",13)(1,"div",17),h(2,ye,5,4,"div",18,H),a()()),t&2){let e=r();i(2),y(e.items)}}function Pe(t,n){if(t&1&&(s(0,"p",28),p(1),a()),t&2){let e=r(2);i(),b(" ",e.testimonial.description," ")}}function Oe(t,n){if(t&1&&d(0,"img",30),t&2){let e=r(2);g("src",e.testimonial.avatar,v)("alt",e.testimonial.name)}}function Se(t,n){if(t&1&&(s(0,"span",33),p(1),a()),t&2){let e=r(2);i(),M(e.testimonial.position)}}function Ie(t,n){if(t&1&&(s(0,"span",34),p(1),a()),t&2){let e=r(2);i(),M(e.testimonial.companyName)}}function Ne(t,n){if(t&1&&(s(0,"a",35),d(1,"img",36),a()),t&2){let e=r(2),o=r();g("href",e.testimonial.socialLink,v),i(),g("src",o.isDark()?"/assets/icons/buttons/linkedin-green-lt.svg":"/assets/icons/buttons/linkedin-green.svg",v)}}function Te(t,n){if(t&1&&(s(0,"div",14)(1,"div",17)(2,"div",24)(3,"div",25),d(4,"img",26),a(),s(5,"p",27),p(6),a(),c(7,Pe,2,1,"p",28),s(8,"div",29),c(9,Oe,1,2,"
1img",30),s(10,"div",31)(11,"span",32),p(12),a(),c(13,Se,2,1,"span",33),c(14,Ie,2,1,"span",34),a(),c(15,Ne,2,2,"a",35),a()()()()),t&2){let e=r();i(6),b(" ",e.testimonial.quote," "),i(),m(e.testimonial.description?7:-1),i(2),m(e.testimonial.avatar?9:-1),i(3),M(e.testimonial.name),i(),m(e.testimonial.position?13:-1),i(),m(e.testimonial.companyName?14:-1),i(),m(e.testimonial.socialLink?15:-1)}}function ke(t,n){if(t&1){let e=F();s(0,"div",5)(1,"button",6),j("click",function(){D(e);let l=r();return $(l.goBack())}),d(2,"img",7),a(),s(3,"div",8)(4,"h1",9),p(5),a(),d(6,"div",10),V(7,"safeHtml"),a()(),s(8,"div",11),d(9,"img",12),a(),c(10,fe,4,0,"div",13),c(11,Me,4,0,"div",13),c(12,Te,16,7,"div",14)}if(t&2){let e=n;i(5),M(e.title),i(),g("innerHTML",L(7,7,e.seoDescription),q),i(3),g("src",e.mediaPhotoUrl,v)("alt",e.title),i(),m(e.tags!=null&&e.tags.length?10:-1),i(),m(e.items!=null&&e.items.length?11:-1),i(),m(e.testimonial?12:-1)}}function qe(t,n){t&1&&(s(0,"div",2),p(1,"News item not found."),a())}function Ve(t,n){if(t&1&&d(0,"img",39),t&2){let e=r().$implicit,o=r(2);g("src",e.mediaUrl,v)("alt",o.newsItem().title)}}function Le(t,n){if(t&1&&c(0,Ve,1,2,"img",39),t&2){let e=n.$implicit;m(e.contentType.startsWith("image/")?0:-1)}}function Ee(t,n){if(t&1&&d(0,"app-video-player",40),t&2){let e=r().$implicit,o=r(2);g("src",e.mediaUrl)("poster",o.newsItem().mediaPhotoUrl||"")}}function De(t,n){if(t&1&&c(0,Ee,1,2,"app-video-player",40),t&2){let e=n.$implicit;m(e.contentType.startsWith("video/")?0:-1)}}function $e(t,n){if(t&1&&(s(0,"div",3)(1,"div",37),h(2,Le,1,1,null,null,de),a(),s(4,"div",38),h(5,De,1,1,null,null,de),a()()),t&2){let e=r();i(2),y(e.newsItem().media),i(3),y(e.newsItem().media)}}function ze(t){return t.replace(/<[^>]*>/g," ").replace(/ /g," ").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/\s+/g," ").trim()}var pe=class t{route=w(J);router=w(Q);store=w(P);theme=w(K);seoService=w(oe);breadcrumbService=w(se);jsonLdService=w(ae);destroyRef=w(z);viewportScroller=w(A);isDark=this.theme.isDark;newsItem=S(this.store.newsItem$,{initialValue:null});relatedNews=S(this.store.relatedNews$,{initialValue:null});isLoading=S(this.store.isLoading$,{initialValue:!1});constructor(){U(()=>{let n=this.newsItem();if(n){this.breadcrumbService.appendDynamic(n.title);let e=n.seoDescription?ze(n.seoDescription):n.title;this.seoService.updateSeoData({title:`${n.title} | Hebronsoft`,description:e,image:n.mediaPhotoUrl,type:"article"}),this.jsonLdService.setSchema("article",C(_({"@context":"https://schema.org","@type":"Article",headline:n.title,description:e,url:`${te.siteUrl}/feed/${n.id}`},n.mediaPhotoUrl?{image:n.mediaPhotoUrl}:{}),{author:{"@type":"Organization",name:"HebronSoft"},publisher:{"@type":"Organization",name:"HebronSoft"}}))}})}ngOnInit(){this.route.paramMap.pipe(X(this.destroyRef)).subscribe(n=>{let e=n.get("id");e&&this.store.getBySlug(e)}),this.destroyRef.onDestroy(()=>this.jsonLdService.removeSchema("article"))}goBack(){this.router.navigate(["/feed"]).then(()=>this.viewportScroller.scrollToPosition([0,0]))}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=B({type:t,selectors:[["app-news-view"]],features:[Y([P])],decls:7,vars:8,consts:[[1,"news-view"],[1,"default-container","loading-state","text-center","py-8","opacity-50"],[1,"default-container","text-center","py-8","opacity-50","no-data"],[1,"mt-5","default-container","nsw-media-gallery"],[1,"mt-3","lg:mt-8","section-spacing-bottom","block",3,"title","buttonTitle","basePath","items"],[1,"default-container","flex","align-items-start","gap-3","py-0","mb-5"],[1,"back-btn","flex","align-items-center","flex-shrink-0",3,"click"],["src","/assets/icons/buttons/left-filled-btn.svg","alt","back"],[1,"news-container-title"],[1,"nsw-title","uppercase","m-0"],[1,"nsw-section-body","my-3","lg:my-5",3,"innerHTML"],[1,"default-container","details-image","mb-5"],["fetchpriority","high",3,"src","alt"],[1,"news-container"],[1,"news-container","mb-5","mt-2","lg:mb-8"],[1,"nsw-tags","flex","flex-wrap","gap-2","mb-3","lg:mb-6"],[1,"nsw-tag"],[1,"nsw-content"],[1,"nsw-section","mb-5","lg:mb-7"],[1,"nsw-section-subtitle","px-0","lg:px-5","text-base","uppercase","mb-2"],[1,"nsw-section-title","text-2xl","px-0","lg:px-5","lg:text-4xl","font-semibold","uppercase","mb-3","lg:mb-4"],[1,"nsw-section-body","px-0","lg:px-5","text-base",3,"innerHTML"],[1,"nsw-section-photo","mt-3","lg:mt-6"],["loading","lazy",3,"src","alt"],[1,"nsw-testimonial"],[1,"nsw-quote-icon","mb-3"],["src","/assets/icons/green_quote.svg","alt","Quote"],[1,"nsw-quote-text","text-xl","lg:text-3xl","font-bold","mb-3","gradient-text-green-lt"],[1,"nsw-quote-desc","text-base","lg:text-base","mb-4"],[1,"nsw-quote-author","flex","align-items-center","gap-3","mt-4"],[1,"nsw-quote-avatar",3,"src","alt"],[1,"flex","flex-column","gap-1","flex-1"],[1,"nsw-quote-name","text-base","lg:text-2xl","font-semibold"],[1,"nsw-quote-position"],[1,"nsw-quote-company","font-semibold","text-base","lg:text-base"],["target","_blank","rel","noopener noreferrer",1,"nsw-quote-social","flex-shrink-0",3,"href"],["alt","LinkedIn",1,"border-round-xl",3,"src"],[1,"nsw-images-grid"],[1,"nsw-videos"],[1,"nsw-media-image","col-12","lg:col-6",3,"src","alt"],[3,"src","poster"]],template:function(e,o){if(e&1&&(s(0,"div",0),d(1,"app-breadcrumb"),c(2,Ce,2,0,"div",1)(3,ke,13,9)(4,qe,2,0,"div",2),c(5,$e,7,0,"div",3),d(6,"app-you-might-be-interested",4),a()),e&2){let l,u;R("dark",o.isDark()),i(2),m(o.isLoading()?2:(l=o.newsItem())?3:4,l),i(3),m(!((u=o.newsItem())==null||u.media==null)&&u.media.length?5:-1),i(),g("title","You might be interested in")("buttonTitle","SHOW ALL NEWS")("basePath","/feed")("items",o.relatedNews())}},dependencies:[W,G,le,re,ce,me],styles:[".news-view[_ngcontent-%COMP%]{--card-bg: #f6f6f8;--text-card-title: #0e110f;--text-card-body: rgba(0, 0, 0, .6);--tag-border: rgba(0, 0, 0, .12);--tag-color: #0e110f;--section-subtitle: #65c511;--section-title: #0e110f;
1--section-body: rgba(0, 0, 0, .55);--testimonial-bg: #f6f6f8;--testimonial-border: #e2e2e2;--quote-text: #0e110f;--quote-desc: rgba(0, 0, 0, .55);--quote-name: #0e110f;--quote-position: rgba(0, 0, 0, .55);--quote-company: #0e110f}.news-view.dark[_ngcontent-%COMP%]{--card-bg: #222424;--text-card-title: #fff;--text-card-body: #a4a5a5;--tag-border: rgba(255, 255, 255, .1);--tag-color: #fff;--section-subtitle: #65c511;--section-title: #fff;--section-body: rgba(255, 255, 255, .55);--testimonial-bg: #003c4f;--testimonial-border: rgba(255, 255, 255, .1);--quote-text: #fff;--quote-desc: #a4a5a5;--quote-name: #fff;--quote-position: #7b7d7d;--quote-company: #a4a5a5}.news-view[_ngcontent-%COMP%] .details-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:85vh;aspect-ratio:auto 16/9;border-radius:20px;width:100%;object-fit:cover}.news-view[_ngcontent-%COMP%] .back-btn[_ngcontent-%COMP%]{border:none;background:transparent;cursor:pointer}.news-view[_ngcontent-%COMP%] .back-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:36px;height:36px}@media(max-width:767px){.news-view[_ngcontent-%COMP%] .back-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:24px;height:24px}}.news-view[_ngcontent-%COMP%] .nsw-title[_ngcontent-%COMP%]{font-size:56px;font-weight:700;color:var(--text-main);line-height:1.2}@media(max-width:1024px){.news-view[_ngcontent-%COMP%] .nsw-title[_ngcontent-%COMP%]{font-size:36px}}@media(max-width:767px){.news-view[_ngcontent-%COMP%] .nsw-title[_ngcontent-%COMP%]{font-size:24px}}.news-view[_ngcontent-%COMP%] .nsw-tags[_ngcontent-%COMP%] .nsw-tag[_ngcontent-%COMP%]{color:var(--tag-color);border:1px solid var(--tag-border);border-radius:100px;padding:6px 16px;font-size:.875rem}.news-view[_ngcontent-%COMP%] .nsw-content[_ngcontent-%COMP%]{max-width:800px}@media(max-width:991px){.news-view[_ngcontent-%COMP%] .nsw-content[_ngcontent-%COMP%]{padding:0 10px}}.news-view[_ngcontent-%COMP%] .nsw-section-subtitle[_ngcontent-%COMP%]{color:var(--section-subtitle);letter-spacing:.05em}.news-view[_ngcontent-%COMP%] .nsw-section-title[_ngcontent-%COMP%]{color:var(--section-title);line-height:1.2}.news-view[_ngcontent-%COMP%] .nsw-section-body[_ngcontent-%COMP%]{color:var(--section-body)!important;line-height:1.5;overflow-wrap:break-word}.news-view[_ngcontent-%COMP%] .nsw-section-body[_ngcontent-%COMP%] *{background:none!important;background-color:transparent!important;color:#cccdcd!important;word-break:normal!important;overflow-wrap:break-word!important;font-weight:300;line-height:1.6;font-size:18px!important}.news-view[_ngcontent-%COMP%] .nsw-section-body[_ngcontent-%COMP%] * strong{font-weight:600!important}.news-view[_ngcontent-%COMP%] .nsw-section-body[_ngcontent-%COMP%] a{color:#65c511!important}.news-view[_ngcontent-%COMP%] .nsw-section-body[_ngcontent-%COMP%] p, .news-view[_ngcontent-%COMP%] .nsw-section-body[_ngcontent-%COMP%] h1, .news-view[_ngcontent-%COMP%] .nsw-section-body[_ngcontent-%COMP%] h2, .news-view[_ngcontent-%COMP%] .nsw-section-body[_ngcontent-%COMP%] h3, .news-view[_ngcontent-%COMP%] .nsw-section-body[_ngcontent-%COMP%] h4, .news-view[_ngcontent-%COMP%] .nsw-section-body[_ngcontent-%COMP%] h5, .news-view[_ngcontent-%COMP%] .nsw-section-body[_ngcontent-%COMP%] h6{margin-bottom:1rem!important}.news-view[_ngcontent-%COMP%] .nsw-section-body[_ngcontent-%COMP%] ul, .news-view[_ngcontent-%COMP%] .nsw-section-body[_ngcontent-%COMP%] ol{margin-left:1rem!important;margin-bottom:1rem!important}.news-view[_ngcontent-%COMP%] .nsw-section-body[_ngcontent-%COMP%] li{margin-bottom:.5rem!important}.news-view[_ngcontent-%COMP%] .nsw-section-photo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;border-radius:16px;object-fit:cover}.news-view[_ngcontent-%COMP%] .nsw-testimonial[_ngcontent-%COMP%]{background:var(--testimonial-bg);border:1px solid var(--testimonial-border);border-radius:24px;padding:40px}@media(max-width:767px){.news-view[_ngcontent-%COMP%] .nsw-testimonial[_ngcontent-%COMP%]{padding:24px}}.news-view[_ngcontent-%COMP%] .nsw-quote-text[_ngcontent-%COMP%]{color:var(--quote-text);line-height:1.3}.news-view[_ngcontent-%COMP%] .nsw-quote-desc[_ngcontent-%COMP%]{color:var(--quote-desc);line-height:1.4}
1.news-view[_ngcontent-%COMP%] .nsw-quote-avatar[_ngcontent-%COMP%]{width:64px;height:64px;border-radius:50%;object-fit:cover}.news-view[_ngcontent-%COMP%] .nsw-quote-name[_ngcontent-%COMP%]{color:var(--quote-name)}.news-view[_ngcontent-%COMP%] .nsw-quote-position[_ngcontent-%COMP%]{color:var(--quote-position);font-size:20px}@media(max-width:991px){.news-view[_ngcontent-%COMP%] .nsw-quote-position[_ngcontent-%COMP%]{font-size:16px}}.news-view[_ngcontent-%COMP%] .nsw-quote-company[_ngcontent-%COMP%]{color:var(--quote-company)}.news-view[_ngcontent-%COMP%] .nsw-media-gallery[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:32px;max-width:800px;padding:0}.news-view[_ngcontent-%COMP%] .nsw-media-gallery[_ngcontent-%COMP%] .nsw-images-grid[_ngcontent-%COMP%]{display:grid;gap:24px}.news-view[_ngcontent-%COMP%] .nsw-media-gallery[_ngcontent-%COMP%] .nsw-media-image[_ngcontent-%COMP%]{width:100%;border-radius:20px;object-fit:cover;height:420px}.news-view[_ngcontent-%COMP%] .nsw-media-gallery[_ngcontent-%COMP%] .nsw-videos[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:24px}.news-container[_ngcontent-%COMP%]{max-width:800px;margin:0 auto}.news-container-title[_ngcontent-%COMP%]{width:800px;margin:0 auto}@media(max-width:991px){.news-container-title[_ngcontent-%COMP%]{width:100%}}"]})};export{pe as NewsViewComponent};
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.