1import{a as B}from"./chunk-YTSHN422.js";import{a as O}from"./chunk-FI245XCG.js";import{a as F}from"./chunk-FJGF5R7Y.js";import{a as z}from"./chunk-JWSZUMHV.js";import"./chunk-QIDMIG5F.js";import"./chunk-GJF5AC5O.js";import{a as R}from"./chunk-QIMEWAXD.js";import{d as U}from"./chunk-C4WJE6K6.js";import"./chunk-CQRPW3OH.js";import"./chunk-ZE2VOGZZ.js";import"./chunk-EXZL5JME.js";import"./chunk-DVEBNUMW.js";import"./chunk-VKGM3GRO.js";import"./chunk-IAJ7HYWP.js";import"./chunk-QQBXRA6O.js";import"./chunk-ECYHJRYG.js";import"./chunk-UZT2ORD5.js";import"./chunk-7A7SMHFX.js";import"./chunk-7QJME62Q.js";import"./chunk-RSERUU27.js";import"./chunk-U6VOGTHJ.js";import"./chunk-AIH5L73K.js";import"./chunk-RTIM7WIE.js";import"./chunk-LUBBIU2F.js";import"./chunk-EJRNXZVZ.js";import"./chunk-4NFJFEMR.js";import"./chunk-R2BOG6GE.js";import"./chunk-JMH2JNUC.js";import"./chunk-ODFCSELV.js";import{a as u}from"./chunk-RKBTUKSQ.js";import"./chunk-CIVLAGF7.js";import"./chunk-4K6EZXBI.js";import"./chunk-GBF3WBMW.js";import"./chunk-SINYUQ3K.js";import"./chunk-CHFMLLSJ.js";import{c as A,k as P,l as T}from"./chunk-LVGX4PN4.js";import"./chunk-WVPYIY4K.js";import"./chunk-ZY44SODE.js";import{q as L}from"./chunk-IWIKS42K.js";import{Ac as S,G as f,Lc as M,Oc as k,Pc as N,Qb as b,Rb as x,Sb as h,Ub as D,Vb as y,Wb as m,Xb as n,Xc as I,Ya as v,Yb as a,Z as p,Zb as r,Zc as E,bb as o,kc as _,ra as g,sb as w,zc as C}from"./chunk-A6TPBFUB.js";import"./chunk-VFRXZJJG.js";var j=()=>[];function q(e,t){if(e&1&&(n(0,"app-shared-breadcrumb",0)(1,"div",1)(2,"div",2),r(3,"i",3),n(4,"small",4),C(5),I(6,"date"),a()(),r(7,"app-shared-title",5),a()(),n(8,"div",6)(9,"div",7)(10,"div",8)(11,"div",9)(12,"div",10)(13,"div",11)(14,"div",12),r(15,"p",13),a()(),n(16,"div",14),r(17,"img",15),a()()()()()()),e&2){let i,s,c,d,l=_();m("data",l.breadcrumbData()),o(5),S(E(6,6,(i=l.newsDetails())==null||i.properties==null?null:i.properties.newsDate,"yyyy/MM/dd")),o(2),m("title",M((s=l.newsDetails())==null||s.properties==null?null:s.properties.newsTitle)),o(8),m("appSanitizeHtml",(c=l.newsDetails())==null||c.properties==null||c.properties.newsDetail==null?null:c.properties.newsDetail.markup),o(2),m("src",l.assetsURL+((d=l.newsDetails())==null||d.properties==null||d.properties.newsImages==null||d.properties.newsImages[0]==null?null:d.properties.newsImages[0].url),v)}}function G(e,t){e&1&&r(0,"p-skeleton",22)}function J(e,t){e&1&&(n(0,"div",16),r(1,"p-skeleton",17),a(),n(2,"div",18)(3,"div",19)(4,"div",20)(5,"div",21),D(6,G,1,0,"p-skeleton",22,h),a(),n(8,"div",23),r(9,"p-skeleton",24),a()()()()),e&2&&(o(6),y(N(0,j).constructor(18)))}var H=class e{_route=p(A);_mediaService=p(B);_unsubscribeService=p(u);seoContentService=p(R);isLoading=g(!1);newsDetails=g(void 0);assetsURL=T?.assetsURL;breadcrumbData=g([{label:"\u0627\u0644\u0623\u062E\u0628\u0627\u0631 \u0627\u0644\u0645\u0624\u0631\u0634\u0641\u0629",route:"../"}]);ngOnInit(){this.getMediaNewsDetails()}getMediaNewsDetails(){this.isLoading.set(!0),this._mediaService.getMediaNewsDetails(this._route.snapshot.params.id).pipe(f(()=>this.isLoading.set(!1)),this._unsubscribeService.takeUntilDestroy()).subscribe({next:t=>{this.newsDetails.set(t),this.seoContentService.updatePageMetaData(this.newsDetails()?.properties)},error:t=>{console.error("Error loading news:",t)}})}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=w({type:e,selectors:[["app-media-archived-news-detail
1s"]],features:[k([u])],decls:2,vars:1,consts:[[3,"data"],[1,"flex","flex-col","items-start","gap-4","md:gap-6"],[1,"flex","items-center","gap-2"],[1,"icon-calendar","text-primaryParagraph","text-lg","md:text-xl"],[1,"text-base","md:text-lg","text-text-primaryParagraph"],[3,"title"],[1,"flex","gap-4","md:gap-6","lg:gap-8","bg-background-white","p-4","md:p-6","lg:p-8"],[1,"lg:container","w-full"],[1,"mx-0","md:mx-4","lg:mx-8","flex","flex-col","gap-8","md:gap-12","lg:gap-16","w-full"],[1,"rounded-2xl","bg-background-white","pb-4","md:pb-6","lg:pb-8","w-full"],[1,"grid","grid-cols-1","lg:grid-cols-2","gap-4","md:gap-6","lg:gap-8","w-full"],[1,"order-2","lg:order-1","w-full"],[1,"flex","flex-col","gap-3","md:gap-4","lg:gap-5","text-sm","md:text-base","lg:text-xl","leading-6","md:leading-7","lg:leading-7.5","text-text-primaryParagraph","w-full"],[1,"w-full",3,"appSanitizeHtml"],[1,"order-1","lg:order-2","w-full"],["alt","news",1,"h-auto","w-full","rounded-lg","object-cover",3,"src"],[1,"relative"],["width","100%","height","13.563rem","styleClass","md:py-10 py-6 lg:px-20 md:px-10 px-4 rounded-none bg-background-neutral200"],[1,"gap-8","bg-background-white","lg:px-20","md:px-10","px-4","py-10"],[1,"lg:container"],[1,"grid","grid-cols-1","md:grid-cols-2","gap-8","w-full"],[1,"flex","flex-col","gap-2","order-1","w-full"],["width","100%","height","1.125rem","styleClass","bg-background-neutral200 rounded-lg"],[1,"order-2","w-full"],["width","100%","height","35rem","styleClass","bg-background-neutral200 rounded-lg"]],template:function(i,s){i&1&&b(0,q,18,9)(1,J,10,1),i&2&&x(s.isLoading()?1:0)},dependencies:[U,z,P,F,O,L],styles:[".n-word-breaks{word-break:break-word}"],changeDetection:0})};
1export{H as MediaArchivedNewsDetailsComponent};
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.