import{d as z,b5 as C,A as y,h as I,C as D,o as t,c as o,a as s,m as r,n as _,b as m,j as L,t as i,v as $,q as f,p as T,r as H,y as B,z as V,l as j,_ as K}from"./ADZpmlEH.js";import{_ as M}from"./BhBF0ChH.js";import{a as N}from"./hGJdZAyU.js";import{c as R}from"./BjVaJYsN.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new a.Error().stack;l&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[l]="af7356a3-8fa4-492b-b728-7ecf934296d7",a._sentryDebugIdIdentifier="sentry-dbid-af7356a3-8fa4-492b-b728-7ecf934296d7")}catch{}})();const P={class:"default article-head-m z-30 inline-flex items-center"},W=["src"],S={class:"extended w-full body-xs z-30 hidden md:block"},A={class:"list-title-xxxs !font-medium max-two-lines"},E=["innerHTML"],O=["innerHTML"],q={class:"flex items-center justify-between w-full mt-5"},F={key:0,class:"flex items-center"},G={class:"inline-block list-label opacity-50"},J={class:"popup fixed transform duration-300 ease-out w-full body-xs z-30 bottom-0 left-0 bg-white rounded-t-xl shadow pb-20 md:hidden group-hover:translate-y-0 translate-y-full"},Q={class:"container pt-5"},U={class:"flex justify-between"},X=["src"],Y={class:"headline-s text-red mb-2"},Z={class:"font-bold max-two-lines"},x=["innerHTML"],ee=["innerHTML"],se={class:"flex items-center justify-between w-full mt-5"},ne={key:0,class:"flex items-center"},te={class:"inline-block body-xs opacity-50"},oe=z({__name:"ArticleHeadPerson",props:{number:{default:1},person:{default:()=>({})},type:{default:"writer"},paddingRight:{type:Boolean,default:!1},layout:{default:"big"}},setup(a){C(e=>({"90fe50f8":m(h)}));const l=j(),c=y(),b=y();function d(e,n){return n==="person"}function p(e,n){return n==="writer"}const g=e=>e.image?p(e,u.type)?`${l.public.site.legacydomain}/images/writers/${N(e.image,"-2-48")}`:e.masterId&&e.masterId!==0?`https://legacy.altinget.dk/images/person/${e.masterId}/${e.image}`:`${l.public.site.legacydomain}/images/person/${e.id}/${e.image}`:"",u=a,h=y("0px"),w=I(()=>{var e;return d(u.person,u.type)&&((e=u.person)!=null&&e.birthday)?R(u.person.birthday):""});return D(()=>{var e,n;h.value=`${(((e=c.value)==null?void 0:e.offsetHeight)??0)+(((n=b.value)==null?void 0:n.offsetHeight)??0)+40}px`}),(e,n)=>{const v=B,k=V;return t(),o("span",{ref_key:"componentWrapper",ref:b,class:_(["subject-item group inline-flex hover:z-50 relative group no-print",e.paddingRight?"pr-3":""])},[n[2]||(n[2]=s("span",{class:"background bg-white shadow z-30 hidden md:block"},null,-1)),n[3]||(n[3]=s("div",{class:"fixed bg-black bg-opacity-0 w-full h-full top-0 left-0 pointer-events-none transition-all duration-200 group-hover:bg-opacity-10 z-20"},null,-1)),s("span",P,[e.person.image?(t(),o("img",{key:0,class:"w-7 h-7 md:w-12 md:h-12 inline-block overflow-hidden rounded-full bg-cover mr-2 shrink-0 grow-0",src:g(e.person)},null,8,W)):r("",!0),s("span",{class:_(["opacity-35 whitespace-nowrap",("isMm"in e?e.isMm:m(L))()?"font-normal":e.layout==="big"?"font-medium":"list-title-xs"])},i(e.person.name),3)]),s("div",S,[s("div",{ref_key:"content",ref:c},[s("div",A,i(e.person.title),1),d(e.person,e.type)&&e.person.education?(t(),o("div",{key:0,class:"body-xs text-gray-500 mt-1 max-two-lines",innerHTML:e.person.education},null,8,E)):p(e.person,e.type)&&e.person.description?(t(),o("div",{key:1,class:"body-xs text-gray-500 mt-1 max-two-lines",innerHTML:e.person.description},null,8,O)):r("",!0),s("div",q,[d(e.person,e.type)&&e.person.birthday&&e.person.birthday!="1900-01-01T00:00:00"?(t(),o("div",F,[n[0]||(n[0]=s("img",{src:M,class:"inline-block w-3 h-3 mr-1 opacity-35"},null,-1)),s("span",G,i(m(w)),1)])):r("",!0),e.person.urlKey?(t(),$(k,{key:1,to:p(e.person,e.type)?{name:"writer",params:{writer:e.person.urlKey}}:{name:"person",params:{person:e.person.urlKey}}},{default:f(()=>[T(v,{size:"medium"},{default:f(()=>[H(i(e.$t("ViewCard")),1)]),_:1})]),_:1},8,["to"])):r("",!0)])],512)]),s("div",J,[s("div",Q,[s("div",U,[e.person.image?(t(),o("img",{key:0,class:"w-16 h-16 mb-3 inline-block overflow-hidden rounded-full bg-cover mr-2 shrink-0 grow-0",src:g(e.person)},null,8,X)):r("",!0),e.person.urlKey?(t(),$(k,{key:1,to:`/${p(e.person,e.type)?e.$t("Routes.Writer"):e.$t("Routes.Person")}/${e.person.urlKey}`},{default:f(()=>[T(v,{size:"medium"},{default:f(()=>[H(i(e.$t("ViewCard")),1)]),_:1})]),_:1},8,["to"])):r("",!0)]),s("div",Y,i(e.person.name),1),s("div",Z,i(e.person.title),1),d(e.person,e.type)&&e.person.education?(t(),o("div",{key:0,class:"text-gray-600 mt-2 max-two-lines",innerHTML:e.person.education},null,8,x)):p(e.person,e.type)&&e.person.description?(t(),o("div",{key:1,class:"text-gray-600 mt-2 max-two-lines",innerHTML:e.person.description},null,8,ee)):r("",!0),s("div",se,[d(e.person,e.type)&&e.person.birthday&&e.person.birthday!="1900-01-01T00:00:00"?(t(),o("div",ne,[n[1]||(n[1]=s("img",{src:M,class:"inline-block w-3 h-3 mr-1 opacity-35"},null,-1)),s("span",te,i(m(w)),1)])):r("",!0)])])])],2)}}}),de=K(oe,[["__scopeId","data-v-f0125fb4"]]);export{de as _};
//# sourceMappingURL=D_R2C6ZK.js.map
