PageSourceSearch

https://gts52.ru/_nuxt/VLink.vue.DGZ6Ue3Q.js

js gts52.ru collected 2026-10-06 06:22:00 UTC 2,970 bytes, 1 lines download raw bytes

1import{c as k,r as H}from"./useFeedbackForm.J9aJ2ZbV.js";import{a8 as N,d as z,r,o as B,c as V,a as C,G as E,n as $,f as A,w as D,O as G}from"./entry.y_X7msoq.js";function j(){const a=k("div");a.className="v-fake-scroll",a.style.visibility="hidden",a.style.width="100px",a.style.position="absolute",a.style.top="-9999px",document.body.append(a);const t=a.offsetWidth;a.style.overflow="scroll";const e=k("div");e.style.width="100%",a.append(e);const n=e.offsetWidth;return H(a),t-n}function q(){return N().$viewport}const F=z({__name:"VScrollbar",props:{vertical:{type:Boolean,default:!0},horizontal:{type:Boolean,default:!1},draggableMultiplier:{default:1},infiniteScrollOffset:{default:0},draggable:{type:Boolean},hidden:{type:Boolean},theme:{},size:{}},emits:["scrollEndY","scrollEndX"],setup(a,{emit:t}){const e=a,n=t,o=r(null),s=r(null),i=r(!1),c=r(!1),g=r(0),h=r(0),u=r(0),f=r(0);function b(){return e.vertical&&o.value?o.value.scrollTop:0}function m(){return e.horizontal&&o.value?o.value.scrollLeft:0}function S(){return e.vertical&&o.value?o.value.offsetTop:0}function y(){return e.horizontal&&o.value?o.value.offsetLeft:0}function W(){e.draggable||(u.value=b(),f.value=m());const l=o.value?o.value.clientHeight:0,v=o.value?o.value.clientWidth:0,w=s.value?s.value.scrollWidth:0,d=s.value?s.value.scrollHeight:0,p=u.value+l,Y=f.value+v,O=e.vertical&&d-p<=e.infiniteScrollOffset,T=e.horizontal&&w-Y<=e.infiniteScrollOffset;O&&n("scrollEndY"),T&&n("scrollEndX")}function _(l){e.draggable&&(c.value=!0,i.value=!0,o.value&&(h.value=l.pageY-S(),g.value=l.pageX-y()),u.value=b(),f.value=m())}function L(){e.draggable&&(c.value=!1,i.value=!1)}function M(){e.draggable&&(c.value=!1,i.value=!1)}function X(l){if(e.draggable&&c.value&&(l.preventDefault(),l.stopPropagation(),o.value)){const v=l.pageY-S(),d=(l.pageX-y()-g.value)*e.draggableMultiplier,p=(v-h.value)*e.draggableMultiplier;
1e.horizontal&&(o.value.scrollLeft=f.value-d),e.vertical&&(o.value.scrollTop=u.value-p)}}return(l,v)=>(B(),V("div",{ref_key:"scrollbar",ref:o,class:$(["v-scrollbar",{"v-scrollbar--hidden":l.hidden,"v-scrollbar--draggable":l.draggable,"v-scrollbar--grabbing":i.value,"v-scrollbar--vertical":l.vertical,"v-scrollbar--horizontal":l.horizontal,[`v-scrollbar--theme-${l.theme}`]:l.theme,[`v-scrollbar--size-${l.size}`]:l.size}]),onScroll:W,onMousedown:_,onMouseleave:L,onMouseup:M,onMousemove:X},[C("div",{ref_key:"content",ref:s,class:"v-scrollbar__content"},[E(l.$slots,"default")],512)],34))}}),I=z({__name:"VLink",props:{underline:{type:Boolean},dashed:{type:Boolean},uppercase:{type:Boolean},theme:{},size:{},weight:{},url:{}},setup(a){return(t,e)=>{const n=G;return B(),A(n,{to:t.url,class:$(["v-link",{[`v-link--theme-${t.theme}`]:t.theme,[`v-link--size-${t.size}`]:t.size,[`v-link--weight-${t.weight}`]:t.weight,"v-link--underline":t.underline,"v-link--uppercase":t.uppercase}])},{default:D(()=>[E(t.$slots,"default")]),_:3},8,["to","class"])}}});export{F as _,I as a,j as g,q as u};

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.