1import{_ as y,D as e,W as d,U as b,G as m,S as l,$ as o,E as i,R as f,a0 as c,H as u,Q as n,F as C,a2 as S,a3 as h,a5 as k}from"./vue.00f7c436.js";import{_ as v,h as x}from"./index.b39fe1b1.js";import"./sentry.09480738.js";const B={name:"TmlCard",props:{title:String,href:String,subtitle:String,copy:String,actions:[Object,Array],icon:Object,img:String,height:String,imgHeight:String,imgBackgroundColor:String,cardType:String},methods:{getBreadcrumbClass(a){return a===this.breadcrumbList.length-1?" grey":""},getCardContainerType(){return this.href?"tml-anchor":"div"},getCardContainerAttributes(){return this.href?{href:this.href}:{}},getImgSrc(){return this.img?this.img.substring(0,10)==="data:image"||this.img.substring(0,8)==="/static/"?this.img:this.img.substring(0,1)==="/"?x(this.img):this.img:null},getImgStyle(){return{height:this.height}}}},T=["alt"],D={key:1,class:"card-img"},I={class:"card-body"},z={key:2,class:"card-text mb-2"},H={key:0,class:"card-footer"};function w(a,A,t,j,E,s){const g=y("lazyload");return e(),d(h(s.getCardContainerType()),k(s.getCardContainerAttributes(),{class:["card",t.cardType],style:{height:t.height}}),{default:b(()=>[m(a.$slots,"default",{},()=>[l("div",{class:"card-media-container",style:f({height:t.imgHeight,"background-color":t.imgBackgroundColor})},[m(a.$slots,"media",{},()=>[t.img&&!t.imgHeight?o((e(),i("img",{key:0,class:"card-img",alt:t.title},null,8,T)),[[g,s.getImgSrc()]]):o((e(),i("div",D,null,512)),[[g,s.getImgSrc()]])],!0)],4),l("div",I,[t.title?(e(),i("h5",{key:0,class:u(["card-title",{"mb-0":!t.subtitle&&!t.copy}])},[l("b",null,c(t.title),1)],2)):n("",!0),t.subtitle?(e(),i("h6",{key:1,class:u(["card-subtitle text-muted",{"mb-0":!t.subtitle&&!t.copy}])},[l("b",null,c(t.subtitle),1)],2)):n("",!0),t.copy?(e(),i("p",z,c(t.copy),1)):n("",!0)]),t.actions?(e(),i("div",H,[(e(!0),i(C,null,S(t.actions,(r,_)=>(e(),d(h(r.type||"tml-button"),{key:_,href:r.href,class:"card-link w-full",text:r.text,icon:r.icon,onClick:()=>{r.action&&r.action()}},null,8,["href","text","icon","onClick"]))),128))])):n("",!0)],!0)]),_:3},16,["class","style"])}const O=v(B,[["render",w],["__scopeId","data-v-6bb13c2c"]]);export{O as default}; 2//# sourceMappingURL=TmlCard.936c58fd.js.map
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.