PageSourceSearch

https://cgscholar.com/_nuxt/CPVRixNl.js

js cgscholar.com collected 2026-09-24 09:19:00 UTC 2,286 bytes, 1 lines download raw bytes

1import{_ as f}from"./CBpn5Y-S.js";import{_ as b}from"./t8S7Hv77.js";import{d as p,b as k,g as a,B as m,w as h,i as s,t as o,F as i,p as l,A as S,l as y,k as v,h as t,m as g,j as w,L as N}from"./CTwjLVo9.js";const B=["src"],I={key:1,class:"flex gap-2 items-center"},A=["src"],$={class:"text-body-m-bold uppercase"},C={key:0,class:"text-body-s"},L={key:3,class:"text-body-m my-4"},q=p({__name:"SectionContentPreview",props:{header:{type:String,required:!0},icon:{type:String,required:!0},items:{type:Array,required:!0},totalItemsLength:{type:Number,default:0},viewAnchor:{type:String,required:!0},avatarShape:{type:String,default:"circle"},noItemsText:{type:String,default:""},headerRouteUrl:{type:String,default:""},hideSeeAllButton:{type:Boolean,default:!1},disableNavigation:{type:Boolean,default:!1}},emits:["show-all"],setup(e){const r=e,{t:d}=k();return(x,c)=>{const u=f;return t(),a("div",null,[e.headerRouteUrl?(t(),m(u,{key:0,to:e.disableNavigation?void 0:e.headerRouteUrl,class:"flex gap-2 items-center"},{default:h(()=>[s("img",{src:`/images/${r.icon}.svg`,alt:"section icon"},null,8,B),s("span",{class:g(["text-body-m-bold uppercase",{"hover:underline":!e.disableNavigation}])},o(e.header),3)]),_:1},8,["to"])):(t(),a("div",I,[s("img",{src:`/images/${r.icon}.svg`,alt:"section icon"},null,8,A),s("span",$,o(e.header),1)])),e.items.length?(t(),a(i,{key:2},[(t(!0),a(i,null,S(e.items,n=>(t(),m(u,{key:n.id,to:e.disableNavigation?void 0:`/${e.viewAnchor}/${n.id}`,class:"section-item"},{default:h(()=>[w(b,{"avatar-url":n.iconUrl,shape:e.avatarShape},null,8,["avatar-url","shape"]),s("div",null,[s("div",{class:g(["text-body-m-bold text-primary text-ellipsis w-[155px] overflow-hidden whitespace-nowrap",{"hover:underline":!e.disableNavigation}])},o(n.label),3),n.description?(t(),a("div",C,o(n.description),1)):l("",!0)])]),_:2},1032,["to"]))),128)),!e.hideSeeAllButton&&e.items.length>=3?(t(),a("button",{key:0,class:"text-body-m text-primary-600 hover:underline",onClick:c[0]||(c[0]=n=>x.$emit("show-all"))},[y(o(v(d)("common.seeAll"))+" ",1),e.totalItemsLength?(t(),a(i,{key:0},[y("("+o(e.totalItemsLength)+")",1)],64)):l("",!0)])):l("",!0)],64)):(t(),a("div",L,o(e.noItemsText||v(d)("errors.noItemsFound")),1))])}}}),F=N(q,[["__scopeId","data-v-e3e5d621"]]);export{F 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.