PageSourceSearch

https://slide.com.ai/_nuxt/0ZsNhXuX.js

js slide.com.ai collected 2026-10-05 14:17:16 UTC 6,274 bytes, 1 lines download raw bytes

1import{b as e,u as a,b1 as l,b2 as t,ag as s,d as r,aF as o,i,af as n,ao as u,w as v}from"./DsnCtUVf.js";import{E as c,i as m,a as f,y as d,o as p,t as y,M as h,ar as b,as as g,aP as w,N as S,au as z,u as x,av as E,aT as _,aB as L,H as T,aG as H,ay as k,b as B,n as R,G as C,r as N,F as j,b5 as M,at as A,aw as O,ax as W,O as $}from"./93pZSGFa.js";import{o as P}from"./DOqa5cws.js";const q={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},F=Symbol("scrollbarContextKey"),G=e({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean});var K=P(c({__name:"thumb",props:G,setup(e){const r=e,o=m(F),i=a("scrollbar");o||l("Thumb","can not inject scrollbar context");const n=f(),u=f(),v=f({}),c=f(!1);let T=!1,H=!1,k=s?document.onselectstart:null;const B=d((()=>q[r.vertical?"vertical":"horizontal"])),R=d((()=>(({move:e,size:a,bar:l})=>({[l.size]:a,transform:`translate${l.axis}(${e}%)`}))({size:r.size,move:r.move,bar:B.value}))),C=d((()=>n.value[B.value.offset]**2/o.wrapElement[B.value.scrollSize]/r.ratio/u.value[B.value.offset])),N=e=>{var a;if(e.stopPropagation(),e.ctrlKey||[1,2].includes(e.button))return;null==(a=window.getSelection())||a.removeAllRanges(),M(e);const l=e.currentTarget;l&&(v.value[B.value.axis]=l[B.value.offset]-(e[B.value.client]-l.getBoundingClientRect()[B.value.direction]))},j=e=>{if(!u.value||!n.value||!o.wrapElement)return;const a=100*(Math.abs(e.target.getBoundingClientRect()[B.value.direction]-e[B.value.client])-u.value[B.value.offset]/2)*C.value/n.value[B.value.offset];o.wrapElement[B.value.scroll]=a*o.wrapElement[B.value.scrollSize]/100},M=e=>{e.stopImmediatePropagation(),T=!0,document.addEventListener("mousemove",A),document.addEventListener("mouseup",O),k=document.onselectstart,document.onselectstart=()=>!1},A=e=>{if(!n.value||!u.value)return;if(!1===T)return;const a=v.value[B.value.axis];if(!a)return;const l=100*(-1*(n.value.getBoundingClientRect()[B.value.direction]-e[B.value.client])-(u.value[B.value.offset]-a))*C.value/n.value[B.value.offset];o.wrapElement[B.value.scroll]=l*o.wrapElement[B.value.scrollSize]/100},O=()=>{T=!1,v.value[B.value.axis]=0,document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",O),W(),H&&(c.value=!1)};p((()=>{W(),document.removeEventListener("mouseup",O)}));const W=()=>{document.onselectstart!==k&&(document.onselectstart=k)};return t(y(o,"scrollbarElement"),"mousemove",(()=>{H=!1,c.value=!!r.size})),t(y(o,"scrollbarElement"),"mouseleave",(()=>{H=!0,c.value=T})),(e,a)=>(h(),b(L,{name:x(i).b("fade"),persisted:""},{default:g((()=>[w(S("div",{ref_key:"instance",ref:n,class:z([x(i).e("bar"),x(i).is(x(B).key)]),onMousedown:j},[S("div",{ref_key:"thumb",ref:u,class:z(x(i).e("thumb")),style:E(x(R)),onMousedown:N},null,38)],34),[[_,e.always||c.value]])])),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);var X=P(c({__name:"bar",props:e({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),setup(e,{expose:a}){const l=e,t=m(F),s=f(0),r=f(0),o=f(""),i=f(""),n=f(1),u=f(1);return a({handleScroll:e=>{if(e){const a=e.offsetHeight-4,l=e.offsetWidth-4;r.value=100*e.scrollTop/a*n.value,s.value=100*e.scrollLeft/l*u.value}},update:()=>{const e=null==t?void 0:t.wrapElement;if(!e)return;const a=e.offsetHeight-4,s=e.offsetWidth-4,r=a**2/e.scrollHeight,v=s**2/e.scrollWidth,c=Math.max(r,l.minSize),m=Math.max(v,l.minSize);n.value=r/(a-r)/(c/(a-c)),u.value=v/(s-v)/(m/(s-m)),i.value=c+4<a?`${c}px`:"",o.value=m+4<s?`${m}px`:""}}),(e,a)=>(h(),T(k,null,[H(K,{move:s.value,ratio:u.value,size:o.value,always:e.always},null,8,["move","ratio","size","always"]),H(K,{move:r.value,ratio:n.value,size:i.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const Y=e({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:r([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,...o(["ariaLabel","ariaOrientation"])}),I={scroll:({scrollTop:e,scrollLeft:a})=>[e,a].every(i)},D=c({name:"ElScrollbar"});const J=v(P(c({...D,props:Y,emits:I,setup(e,{expose:l,emit:s}){const r=e,o=a("scrollbar");let v,c;const m=f(),p=f(),y=f(),w=f(),_=d((()=>{const e={};return r.height&&(e.height=n(r.height)),r.maxHeight&&(e.maxHeight=n(r.maxHeight)),[r.wrapStyle,e]})),L=d((()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}])),H=d((()=>[o.e("view"),r.viewClass])),k=()=>{var e;p.value&&(null==(e=w.value)||e.handleScroll(p.value),s("scroll",{scrollTop:p.value.scrollTop,scrollLeft:p.value.scrollLeft}))};const P=()=>{var e;
1null==(e=w.value)||e.update()};return B((()=>r.noresize),(e=>{e?(null==v||v(),null==c||c()):(({stop:v}=u(y,P)),c=t("resize",P))}),{immediate:!0}),B((()=>[r.maxHeight,r.height]),(()=>{r.native||R((()=>{var e;P(),p.value&&(null==(e=w.value)||e.handleScroll(p.value))}))})),C(F,N({scrollbarElement:m,wrapElement:p})),j((()=>{r.native||R((()=>{P()}))})),M((()=>P())),l({wrapRef:p,update:P,scrollTo:function(e,a){$(e)?p.value.scrollTo(e):i(e)&&i(a)&&p.value.scrollTo(e,a)},setScrollTop:e=>{i(e)&&(p.value.scrollTop=e)},setScrollLeft:e=>{i(e)&&(p.value.scrollLeft=e)},handleScroll:k}),(e,a)=>(h(),T("div",{ref_key:"scrollbarRef",ref:m,class:z(x(o).b())},[S("div",{ref_key:"wrapRef",ref:p,class:z(x(L)),style:E(x(_)),onScroll:k},[(h(),b(O(e.tag),{id:e.id,ref_key:"resizeRef",ref:y,class:z(x(H)),style:E(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:g((()=>[A(e.$slots,"default")])),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),e.native?W("v-if",!0):(h(),b(X,{key:0,ref_key:"barRef",ref:w,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}}),[["__file","scrollbar.vue"]]));export{J as E};

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.