PageSourceSearch

https://static.mtown88new.com/memberStatic/mtown/member-202693085856/_nuxt/DkH_gNP6.js

js mtown88new.com collected 2026-10-10 00:01:23 UTC 1,702 bytes, 1 lines download raw bytes

1import{d as E,q as h,e as f,z as M,v as T,D as y,aY as P,U as R,ad as B,h as p,o as L,f as V,n as H,l as $,_ as z}from"./Y4ICXCuc.js";const C=E({__name:"VirtualScrollbar",props:{scrollbarRef:{},maxHeightPercent:{default:50},maxHeightPx:{default:200},thumbHeight:{default:48}},setup(g){const r=g,l=h(0),o=h(0),c=h(0),b=f(()=>o.value>l.value+1),w=f(()=>{const e=Math.min(l.value*(r.maxHeightPercent/100),r.maxHeightPx),t=(l.value-e)/2;return{height:`${e}px`,top:`${t}px`}}),_=f(()=>{const e=Math.min(l.value*(r.maxHeightPercent/100),r.maxHeightPx);if(o.value<=l.value||e<=0)return{height:"0px",transform:"translateY(0px)"};const t=o.value-l.value,x=Math.min(r.thumbHeight,e),S=e-x,k=t>0?c.value/t*S:0;return{height:`${x}px`,transform:`translateY(${k}px)`}}),i=()=>{const e=r.scrollbarRef;if(!e)return null;if(e instanceof HTMLElement)return e;const t=e.wrapRef;return t instanceof HTMLElement?t:null},u=()=>{const e=i();e&&(l.value=e.clientHeight,o.value=e.scrollHeight,c.value=e.scrollTop)},m=()=>{const e=i();e&&(c.value=e.scrollTop,l.value=e.clientHeight,o.value=e.scrollHeight)};let a=null,n=null,s=null;const v=()=>{const e=i();if(e===s||(d(),s=e,!e))return;u(),a=new ResizeObserver(()=>{u()}),a.observe(e);const t=e.firstElementChild;t&&(n=new ResizeObserver(()=>{u()}),n.observe(t)),e.addEventListener("scroll",m)},d=()=>{a==null||a.disconnect(),a=null,n==null||n.disconnect(),n=null,s==null||s.removeEventListener("scroll",m),s=null};return M(()=>{T(v)}),y(()=>r.scrollbarRef,v),P(d),(e,t)=>R((L(),V("div",{class:"virtual-scrollbar-track",style:H(p(w))},[$("div",{class:"virtual-scrollbar-thumb",style:H(p(_))},null,4)],4)),[[B,p(b)]])}}),D=z(C,[["__scopeId","data-v-f2a032ca"]]);export{D as V};

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.