1import{r as k}from"./DiqybQ68.js";import{a8 as w,a9 as I,aa as q,o as t,c,x as u,w as C,a as S,Y as $,b4 as V,E as l,z as n,y as o,g as m,A as z,m as d,d as h,t as f,ag as x}from"./BYXglTKb.js";import"./BN_7HF1G.js";const B={slots:{base:["group relative block my-5 p-4 sm:p-6 border border-default rounded-md bg-default","transition-colors"],icon:"size-6 mb-2 block",title:"text-highlighted font-semibold",description:"text-[15px] text-muted *:first:mt-0 *:last:mb-0 *:my-1",externalIcon:["size-4 align-top absolute right-2 top-2 text-dimmed pointer-events-none","transition-colors"]},variants:{color:{primary:{icon:"text-primary"},secondary:{icon:"text-secondary"},success:{icon:"text-success"},info:{icon:"text-info"},warning:{icon:"text-warning"},error:{icon:"text-error"},neutral:{icon:"text-highlighted"}},to:{true:""},title:{true:{description:"mt-1"}}},compoundVariants:[{color:"primary",to:!0,class:{base:"hover:bg-primary/10 hover:border-primary has-focus-visible:border-primary",externalIcon:"group-hover:text-primary"}},{color:"secondary",to:!0,class:{base:"hover:bg-secondary/10 hover:border-secondary has-focus-visible:border-secondary",externalIcon:"group-hover:text-secondary"}},{color:"success",to:!0,class:{base:"hover:bg-success/10 hover:border-success has-focus-visible:border-success",externalIcon:"group-hover:text-success"}},{color:"info",to:!0,class:{base:"hover:bg-info/10 hover:border-info has-focus-visible:border-info",externalIcon:"group-hover:text-info"}},{color:"warning",to:!0,class:{base:"hover:bg-warning/10 hover:border-warning has-focus-visible:border-warning",externalIcon:"group-hover:text-warning"}},{color:"error",to:!0,class:{base:"hover:bg-error/10 hover:border-error has-focus-visible:border-error",externalIcon:"group-hover:text-error"}},{color:"neutral",to:!0,class:{base:"hover:bg-elevated/50 hover:border-inverted has-focus-visible:border-inverted",externalIcon:"group-hover:text-highlighted"}}],defaultVariants:{color:"primary"}},O=Object.assign({inheritAttrs:!1},{__name:"ProseCard",props:{to:{type:null,required:!1},target:{type:[String,Object,null],required:!1},icon:{type:null,required:!1},title:{type:String,required:!1},description:{type:String,required:!1},color:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(r){const e=r,b=w(),p=I(),s=q("prose.card",e),a=d(()=>x({extend:x(B),...p.ui?.prose?.card||{}})({color:e.color,to:!!e.to,title:!!e.title})),g=d(()=>e.target||(e.to&&typeof e.to=="string"&&e.to.startsWith("http")?"_blank":void 0)),y=d(()=>(e.title||"Card link").trim());return(i,v)=>(t(),c("div",{class:n(a.value.base({class:[o(s)?.base,e.class]}))},[r.to?(t(),u(V,$({key:0,"aria-label":y.value},{to:r.to,target:g.value,...i.$attrs},{class:"focus:outline-none",raw:""}),{default:C(()=>[...v[0]||(v[0]=[S("span",{class:"absolute inset-0","aria-hidden":"true"},null,-1)])]),_:1},16,["aria-label"])):l("",!0),r.icon?(t(),u(m,{key:1,name:r.icon,class:n(a.value.icon({class:o(s)?.icon}))},null,8,["name","class"])):l("",!0),r.to&&g.value==="_blank"?(t(),u(m,{key:2,name:o(p).ui.icons.external,class:n(a.value.externalIcon({class:o(s)?.externalIcon}))},null,8,["name","class"])):l("",!0),r.title||b.title?(t(),c("p",{key:3,class:n(a.value.title({class:o(s)?.title}))},[k(i.$slots,"title",{mdcUnwrap:"p"},()=>[h(f(r.title),1)])],2)):l("",!0),b.default?(t(),c("div",{key:4,class:n(a.value.description({class:o(s)?.description}))},[z(i.$slots,"default",{},()=>[h(f(r.description),1)])],2)):l("",!0)],2))}});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.