1import{_ as x}from"./CkzQDST8.js";import{_ as y,a as k}from"./RexHSk1B.js";import{c as v}from"./Cqhbb1qe.js";import{g as d}from"./BoaITyhn.js";import{I as B}from"./vgBlBUDR.js";import{d as p,h as o,i as s,D as $,u as c,aI as a,j as r,k as i,x as h,Q as n,t as m,m as g,c as w}from"./4Mlywg1r.js";const F={key:0,class:"overflow-hidden"},I={key:1,class:"overflow-hidden"},M=["src"],P={class:"group relative -mt-8 flex flex-1 flex-col"},T={class:"app-card-title line-clamp-2"},L={class:"app-card-title line-clamp-2"},A=p({__name:"AppCard",props:{url:{},image:{},fallbackImageSrc:{},mShape:{},accent:{},bodyShape:{},contentBackgroundColor:{default:"light"},contentBackgroundShade:{default:"500"},cardClass:{},imageClass:{default:"h-[196px]"},emptyImageClass:{},accentShapeClass:{default:"min-h-[76px] sm:min-h-[98px]"},accentTitleClass:{},mShapePositionClass:{},mShapePositionMultilineClass:{},mShapeMultilineThreshold:{default:22}},setup(e){const f=x,l=e,S=w(()=>!l.mShapePositionClass&&!l.mShapePositionMultilineClass?"":b()&&l.mShapePositionMultilineClass||l.mShapePositionClass),b=()=>l.mShape?.mLabel?l.mShape.mLabel.length>l.mShapeMultilineThreshold:!1;return(t,j)=>{const u=y,C=v;return o(),s($(e.url?c(f):"div"),{to:e.url?e.url:void 0,class:a(["group relative flex h-full flex-col overflow-hidden",[`bg-${e.contentBackgroundColor}-${e.contentBackgroundShade} block w-full`,e.cardClass]])},{default:r(()=>[e.image?(o(),i("div",F,[e.image?(o(),s(c(B),{key:0,data:e.image,class:a(["responsive-image w-full transition duration-200 group-hover:scale-125",e.imageClass])},null,8,["data","class"])):h("",!0)])):e.fallbackImageSrc?(o(),i("div",I,[n("img",{src:e.fallbackImageSrc,alt:"",class:a(["w-full object-cover transition duration-200 group-hover:scale-125",e.imageClass])},null,10,M)])):(o(),i("div",{key:2,class:a(["h-[228px] w-full",[`bg-${e.contentBackgroundColor}-${e.contentBackgroundShade}`,e.emptyImageClass]])},null,2)),n("div",P,[e.accent?(o(),s(u,{key:0,class:a(["relative z-0 flex !min-h-0 w-full",e.accentShapeClass]),color:e.accent.accentColor,shade:e.accent.accentShade,type:5,"fit-width":"","bottom-height":"20px","top-height":"32px"},{default:r(()=>[n("div",{class:a(["font-base z-10 px-6 font-bold leading-[18px]",[`text-${("getForegroundColor"in t?t.getForegroundColor:c(d))(e.accent.accentColor,e.accent.accentShade)}-500`,e.accentTitleClass]]),"data-test":"title"},[n("span",T,m(e.accent.accentTitle),1)],2)]),_:1},8,["class","color","shade"])):h("",!0),e.bodyShape?(o(),s(u,{key:1,class:"flex w-full flex-1 flex-col !p-6 !pt-16 group-hover:bg-light",color:e.contentBackgroundColor,shade:e.contentBackgroundShade,"fit-width":"","bottom-height":"0px","top-height":"32px"},{default:r(()=>[e.bodyShape.bodyTitle?(o(),i("div",{key:0,class:a(["mb-3 text-lg font-bold leading-6",`text-${("getForegroundColor"in t?t.getForegroundColor:c(d))(e.contentBackgroundColor,e.contentBackgroundShade)}-500`]),"data-test":"body-shape-title"},[n("span",L,m(e.bodyShape.bodyTitle),1)],2)):h("",!0),n("div",{class:a(["mb-4 text-base font-normal leading-5",[`text-${("getForegroundColor"in t?t.getForegroundColor:c(d))(e.contentBackgroundColor,e.contentBackgroundShade)}-500`,e.bodyShape.bodySubtextClass,e.bodyShape.bodySubtextLines===4?"line-clamp-4":"line-clamp-2",e.bodyShape.bodySubtextHeight==="expanded"?"max-h-20":"max-h-10",{"text-opacity-65":e.bodyShape.lightenBodySubtext}]]),"data-test":"body-shape-subtext"},m(e.bodyShape.bodySubtext),3),g(t.$slots,"default",{},void 0,!0)]),_:3},8,["color","shade"])):(o(),i("div",{key:2,class:a([`bg-${e.contentBackgroundColor}-${e.contentBackgroundShade}`,"px-6 py-5"])},[g(t.$slots,"default",{},void 0,!0)],2)),n("div",{class:a(["absolute left-8",S.value])},[e.mShape&&e.mShape.mLabel?(o(),s(C,{key:0,class:"flex max-w-[200px] items-center justify-center",color:e.mShape.mColor,shade:e.mShape.mShade,"top-height":"11px","bottom-height":"8px","remove-default-horizontal-spacing":"","remove-default-vertical-spacing":""},{default:r(()=>[n("div",{class:a(["px-4 py-2 text-base font-bold leading-6",`text-${("getForegroundColor"in t?t.getForegroundColor:c(d))(e.mShape.mColor,e.mShape.mShade)}`]),"data-test":"m-label"},m(e.mShape.mLabel),3)]),_:1},8,["color","shade"])):h("",!0)],2)])]),_:3},8,["to","class"])}}}),O=Object.assign(k(A,[["__scopeId","data-v-6e8ecdf8"]]),{__name:"AppCard"});export{O as _};
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.