PageSourceSearch

https://cs2locker.com/_nuxt/Bf_BTHCR.js

js cs2locker.com collected 2026-10-05 18:45:31 UTC 3,314 bytes, 1 lines download raw bytes

1import{h as w,_ as C}from"#entry";import{_ as L}from"./hqStt97Q.js";import{u as B}from"./BwGibHf7.js";import{m as I,n as m,D as o,P as a,R as t,Z as c,S as l,U as g,L as f,W as h,a0 as p,Q as s,V as N,a1 as j,u as D}from"./S4n9--Ba.js";const V={key:0,class:"mt-8 pt-8 border-t border-border"},z={class:"flex items-center justify-between mb-4"},A={class:"text-xl font-bold text-foreground"},M={class:"p-3"},S={class:"aspect-[4/3] relative mb-2 overflow-hidden rounded-md bg-gradient-to-br from-muted/30 to-muted/60"},F={key:1,class:"w-full h-full flex items-center justify-center"},P={class:"text-sm font-medium line-clamp-2 group-hover:text-primary transition-colors"},R={key:0,class:"mt-1 text-sm font-bold text-emerald-400"},U={key:1,class:"mt-2"},$={class:"sr-only"},E=["href"],Z=I({__name:"RelatedItems",props:{title:{},items:{},maxItems:{default:6},columns:{default:4},viewAllLink:{},seoDescription:{default:""}},setup(r){const d=r,{formatCurrency:v}=B(),{getImageUrl:x}=w(),y=m(()=>d.items.slice(0,d.maxItems)),_=m(()=>{const n={2:"grid-cols-2",3:"grid-cols-2 sm:grid-cols-3",4:"grid-cols-2 sm:grid-cols-3 md:grid-cols-4",5:"grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5",6:"grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6"};return n[d.columns]||n[4]});function k(n){return v(n)}return(n,i)=>{const u=C,b=L;return r.items.length>0?(s(),o("section",V,[t("div",z,[t("h2",A,l(r.title),1),r.viewAllLink?(s(),c(u,{key:0,to:r.viewAllLink,class:"text-sm text-primary hover:underline flex items-center gap-1"},{default:g(()=>[N(l(n.$t("common.viewAll"))+" ",1),i[0]||(i[0]=t("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1))]),_:1},8,["to"])):a("",!0)]),t("div",{class:p(["grid gap-4",_.value])},[(s(!0),o(f,null,h(y.value,e=>(s(),c(u,{key:e.id,to:e.url,class:"group relative overflow-hidden rounded-lg border border-border bg-card transition-all duration-200 hover:border-primary/50 hover:shadow-md"},{default:g(()=>[e.rarityColor?(s(),o("div",{key:0,class:"h-1 w-full",style:j({backgroundColor:e.rarityColor})},null,4)):a("",!0),t("div",M,[t("div",S,[e.image?(s(),c(b,{key:0,src:D(x)(e.image),alt:e.name,class:"object-contain w-full h-full p-2 transition-transform duration-200 group-hover:scale-105",width:"200",height:"150",loading:"lazy"},null,8,["src","alt"])):(s(),o("div",F,[...i[1]||(i[1]=[t("svg",{class:"w-8 h-8 text-muted-foreground/50",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})],-1)])]))]),t("h3",P,l(e.name),1),e.price?(s(),o("div",R,l(k(e.price)),1)):a("",!0),e.badge?(s(),o("div",U,[t("span",{class:p(["inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-semibold",e.badgeClass||"bg-primary/10 text-primary"])},l(e.badge),3)])):a("",!0)])]),_:2},1032,["to"]))),128))],2),t("div",$,[t("p",null,l(r.seoDescription),1),t("ul",null,[(s(!0),o(f,null,h(r.items,e=>(s(),o("li",{key:e.id},[t("a",{href:e.url},l(e.name),9,E)]))),128))])])])):a("",!0)}}});export{Z 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.