1import C from"./CCkUW_u0.js";import{_ as $,r as x,w as L,l as T,j as c,a as n,o as l,F as j,g as P,b as u,i as E,t as b,n as M,a4 as N}from"#entry";import{d as V,f as F,h as z}from"./BUuZjhqo.js";import"./Chx3igEn.js";const D=["onClick"],R={class:"o-hidden"},W={class:"project-thumbs"},G={__name:"ProjectsList",props:{type:{type:String,default:"artist",validator:p=>["artist","brand"].includes(p)}},async setup(p){let i,g;const _=p,m=N(),h=x(null),[f,I,k]=([i,g]=L(()=>Promise.all([V(),F(),z()])),i=await i,g(),i),d=x([]),v=(t,e,r)=>e.map(s=>{const a=t.filter(o=>o[r]?.some(A=>A._id===s._id)).map(o=>({_id:o._id,title:o.title,thumbnailId:o.thumbnail?.asset?._id||""}));return{_id:s._id,name:s.title,videos:a}}).filter(s=>s.videos.length>0),y=[...f?.grid||[],...f?.list||[]];_.type==="artist"?d.value=v(y.filter(t=>t.type==="music"),I,"artist").sort((t,e)=>e.videos.length-t.videos.length):d.value=v(y.filter(t=>t.type==="commercial"),k,"brand").sort((t,e)=>e.videos.length-t.videos.length),T(()=>{w()});const w=()=>{const t=c.utils.selector(h.value);c.timeline().from(t(".projects-list h2"),{yPercent:100,duration:1,stagger:.05,ease:"quart.out"},0)},B=t=>{const r=[...t.currentTarget.querySelectorAll(".project-img")];r.length&&c.to(r,{clipPath:"inset(0px 0px 0px 0px)",stagger:.1,ease:"quart.out"})},S=t=>{const r=[...t.currentTarget.querySelectorAll(".project-img")];r.length&&c.to(r,{clipPath:"inset(60px 60px 60px 60px)",stagger:.1,ease:"quart.in",clearProps:"all"})},q=t=>{const e=t.name.toLowerCase().replace(/\s+/g,"-");_.type==="artist"?m.push(`/music/artist/${e}`):m.push(`/commercials/brands/${e}`)};return(t,e)=>{const r=C;return l(),n("ul",{class:"projects-list",ref_key:"root",ref:h},[(l(!0),n(j,null,P(d.value,s=>(l(),n("li",{key:s._id,onMouseenter:B,onMouseleave:S,onClick:a=>q(s)},[u("div",R,[u("h2",null,[E(b(s.name)+" ",1),u("sup",null,b(s.videos.length),1)])]),u("div",W,[(l(!0),n(j,null,P(s.videos.slice(0,6),(
1a,o)=>(l(),n("div",{class:"project-img",key:a._id+"-"+o},[M(r,{src:a.thumbnailId,loading:"lazy",alt:a.title},null,8,["src","alt"])]))),128))])],40,D))),128))],512)}}},Q=$(G,[["__scopeId","data-v-78a8897c"]]);export{Q 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.