1import{_ as b}from"./W4XVIWja.js";import{d as I,J as L,K as i,o as N,c as B,e as r,A as P,g as c,N as S,O as d,a3 as C}from"./D2XzVb-v.js";import{u as m}from"./TxmGG7rL.js";import{u}from"./DESZ8da6.js";import{g as R}from"./p-88jiqM.js";import{u as T}from"./CPiXck3H.js";import"./Bn_78omk.js";import"./hyMhP2mm.js";import"./Cz43qnur.js";import"./BQ1BrawI.js";import"./hpuBfSX3.js";import"./BCbRsY6Z.js";import"./CQb_7WEP.js";import"./Cd4l9NEK.js";import"./cWB7dew-.js";import"./DdSPAO-K.js";import"./CJYuMBAa.js";import"./ReH2LqOl.js";import"./BlLRMaXc.js";const M=I({__name:"PressRelease",props:{isRemote:{type:Boolean},previewId:{},showInThisLanguage:{type:Boolean},teaserImage:{},teaserImageAltText:{},teaserImageDecorative:{type:Boolean},teaserText:{},customUrl:{},description:{},displaySocialShareBar:{type:Boolean},headline:{default:""},hreflang:{},subscribedInProjectList:{},title:{},ogTitle:{},ogSiteName:{},ogDescription:{},ogImg:{},tags:{default:()=>[]},tagsRemote:{default:()=>[]},publishFrom:{default:()=>{}},publishTo:{default:()=>{}},hide:{type:Boolean},overline:{default:""},worstCaseNews:{type:Boolean},textImage1:{default:()=>[]},textImage2:{default:()=>[]},contact:{default:()=>[]},seperationLine:{default:()=>[]},mediaDownloadTeaser:{default:()=>[]},downloadList:{default:()=>[]},linkList:{default:()=>[]}},async setup(e){let t,a;const g=c(()=>C({from:e.publishFrom?.date,to:e.publishTo?.date})),f=[...e.tags,...e.tagsRemote],v=c(()=>[...e.textImage1,...e.textImage2,...e.contact,...e.seperationLine,...e.mediaDownloadTeaser,...e.downloadList,...e.linkList]),{currentLocale:p}=L(),s=([t,a]=i(()=>S()),t=await t,a(),t)?.pressOverviewPage?.referenceId,{data:w}=s?([t,a]=i(()=>m(u(s),async()=>R(s,p.id),"$NC_KV5WaYl")),t=await t,a(),t):{data:null},{data:l}=([t,a]=i(()=>m(u(e.previewId),async()=>d({references:f}),"$avQomnd-Si")),t=await t,a(),t),h=async()=>{const n=e.contact[0]?.data.contactRemote?.[0];if(!n)return"";const o=await d({single:!0,references:[n]});return o.firstName&&o.lastName?`${o.firstName} ${o.lastName}`:o.firstName?o.firstName:o.lastName?o.lastName:""};return[t,a]=i(async()=>T({id:e.previewId,headline:e.headline,author:([t,a]=i(()=>h()),t=await t,a(),t),datePublished:e.publishFrom?.date||"",tagsResolved:l.value})),await t,a(),(n,o)=>{const y=b;return N(),B(y,{type:"press",date:r(g),headline:e.headline,overline:e.overline,"overview-page-label":("globalLabel"in n?n.globalLabel:r(P))("show_all_press_label"),"overview-page-url":r(w)??"","page-content":r(v),tags:r(l)??[]},null,8,["date","headline","overline","overview-page-label","overview-page-url","page-content","tags"])}}});export{M as default};
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.