1import{s as v}from"./DDOY1lLW.js";import{y as H,ai as z,A as c,a4 as d,X as g,al as w,F as h,ak as u,ao as x,ag as V,D as s,aq as D,_ as i,$ as k,a2 as f}from"./D0rPpKiU.js";import{H as L}from"#entry";import"./D_gTWDL9.js";const S={class:"relative w-fit"},M=["aria-label","viewBox"],R=["d"],E=["aria-label","viewBox","innerHTML"],F=H({__name:"AuthorCard",props:{blok:{}},setup(m){const o=m,b=s(()=>o.blok.image_border_radius||"rounded-xl"),y=s(()=>(o.blok.image_border_radius||"rounded-xl").replace("rounded-","rounded-b-")),C=t=>{if(!t||typeof t!="string")return!1;const a=t.trim().split(/\s+/);if(a.length!==4)return!1;const n=a.map(Number),e=n[2],l=n[3];return e!==void 0&&l!==void 0&&!isNaN(e)&&!isNaN(l)&&e>0&&l>0},A=t=>{const a=t.trim().split(/\s+/);if(a.length!==4)return 0;const n=a.map(Number),e=n[2]??0,l=n[3]??0;return l>0?e/l:0},r=s(()=>{const t=o.blok?.wordmark_config;return t?.wordmark_id&&(t?.wordmark_path||t?.wordmark_svg)&&C(t.wordmark_viewbox)?(A(t.wordmark_viewbox),t):null}),_=s(()=>{const t=r.value?.wordmark_name;return t&&t.trim()?t.trim():r.value?.wordmark_id??""}),B=s(()=>{const t=r.value?.wordmark_svg;if(!t)return"";const a=o.blok._uid;return t.replace(/\bid="([^"]+)"/g,`id="$1-${a}"`).replace(/url\(#([^)]+)\)/g,`url(#$1-${a})`)}),p=s(()=>{const t=r.value?.wordmark_max_height;return t?{maxHeight:`${t}px`}:{maxHeight:"40px"}}),N=t=>({...t,margin:t?.margin||"0",content:{type:t?.content?.type||"doc",content:[{type:"paragraph",attrs:{textAlign:t?.content?.attrs?.textAlign||null},content:[{text:t?.content?.content?.[0]?.content?.[0]?.text||"",type:"text",marks:[{type:"textStyle",attrs:{color:t?.content?.marks?.[0]?.attrs?.color||"text-white"}}]}]}]},padding:t?.padding||"0",component:t?.component||"Editor",font_size:t?.font_size||"body-xs",text_align:t?.text_align||"center",text_color:t?.text_color||"text-white",margin_side:t?.margin_side||"none",padding_side:t?.padding_side||"none"}),$=s(()=>`text-${r.value?.wordmark_color||"white"}`);return(t,a)=>{const n=D("editable");return z((i(),c("div",null,[d("div",S,[(i(!0),c(g,null,w(h(v)(o.blok.image),e=>(i(),k(f(e.component),{key:e.id,blok:e,class:u(b.value)},null,8,["blok","class"]))),128)),d("div",{class:u(["absolute bottom-0 left-0 right-0 h-2/3 author-card-overlay",y.value])},null,2),d("div",{class:u(["absolute bottom-5 left-0 right-0 px-2.5 lg:px-4",$.value])},[r.value?.wordmark_path&&!r.value.wordmark_svg?(i(),c("svg",{key:0,"aria-label":_.value,viewBox:r.value.wordmark_viewbox,class:"fill-current w-full",style:x(p.value)},[d("path",{d:r.value.wordmark_path},null,8,R)],12,M)):r.value?.wordmark_svg?(i(),c("svg",{key:1,"aria-label":_.value,viewBox:r.value.wordmark_viewbox,class:"fill-current w-full",style:x(p.value),innerHTML:B.value},null,12,E)):V("",!0),d("div",{class:u(["pt-2",{"description-compact":o.blok.description_compact}])},[(i(!0),c(g,null,w(h(v)(o.blok.description),e=>(i(),k(f(e.component),{key:e.id,blok:N(e)},null,8,["blok"]))),128))],2)],2)])])),[[n,m.blok]])}}}),O=Object.assign(L(F,[["__scopeId","data-v-ac451514"]]),{__name:"AuthorCard"});export{O 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.