1import{$t as e,C as t,Nt as n,Tt as r,Z as i,f as a,h as o,jt as s,m as c,pt as l,q as u,x as d}from"./D9d_4q1I.js";import{u as f}from"./BDHHldE6.js";import{m as p,p as m}from"./Dl0ELuBr.js";import{t as h}from"./Crr40ORe.js";var g={class:`dm-scrollable-list relative h-full`},_={key:0,class:`pointer-events-none absolute cursor-pointer top-0 left-0 w-full h-full flex items-center text-black dark:text-white`},v=100,y=Object.assign(t({__name:`ScrollableList`,props:{bgColor:{type:String,required:!1,default:``}},setup(t){let y=r(null),{arrivedState:b,x}=p(y,{behavior:`smooth`}),{left:S,right:C}=s(b),w=r(!0),T=r(!1);m(y,e=>{let t=e[0],n=window.getComputedStyle(t.target).getPropertyValue(`overflow-x`);T.value=t.target.scrollWidth>t.target.clientWidth,w.value=n===`scroll`||n===`auto`&&t.target.scrollWidth>t.target.clientWidth});let E=(e=1)=>{x.value+=e*v};return(r,s)=>{let p=h;return u(),o(`div`,g,[a(`div`,{ref_key:`slotRef`,ref:y,class:`relative z-10 overflow-x-auto no-scrollbar`},[i(r.$slots,`default`)],512),n(w)?(u(),o(`div`,_,[l(a(`div`,{class:e([`pointer-events-auto ml-3 absolute top-0 bottom-0 w-8 z-20 bg-gradient-to-l from-white via-white dark:from-anthrazit dark:via-anthrazit flex items-center pl-3 -left-4 rotate-180`,`bg-gradient-${t.bgColor}`]),onClick:s[0]||=e=>E(-1)},[d(p,{name:`chevron`,class:`dm-scrollable-list__icon-arrow md:flex items-center text-primary`,height:20})],2),[[f,!n(S)]]),l(a(`div`,{class:e([`pointer-events-auto absolute top-0 bottom-0 w-8 z-20 bg-gradient-to-l from-white via-white dark:from-anthrazit dark:via-anthrazit flex items-center pl-3 -right-1`,`bg-gradient-${t.bgColor}`]),onClick:s[1]||=e=>E(1)},[d(p,{name:`chevron`,class:`dm-scrollable-list__icon-arrow md:flex items-center text-primary`,height:20})],2),[[f,!n(C)||n(S)&&n(C)&&n(T)]])])):c(``,!0)])}}}),{__name:`MoleculesScrollableList`});export{y as t};
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.