PageSourceSearch

https://www.feidu.fit/_nuxt/zGrK_ibh.js

js feidu.fit collected 2026-09-30 09:21:02 UTC 6,589 bytes, 1 lines download raw bytes

1import{A as e,B as t,J as n,Kt as r,M as i,S as a,U as o,Ut as s,at as c,f as l,g as u,h as d,ht as f,m as p,p as m,q as h,rt as g,w as _}from"./BY5mXTXI.js";import{K as v,L as y}from"./BaiwSPCQ.js";import{g as b,h as x,l as S,m as C,p as w,t as T}from"./Cykj3FFH.js";import{l as E}from"#entry";import{a as D,o as O}from"./B3ItYfMp.js";import{l as k,u as A}from"./cu9FrYSp.js";var j=_({name:`Empty`,inheritAttrs:!1,props:{description:String,imgSrc:String,inConfigProvider:{type:Boolean,default:!1}},setup(t,{slots:n,attrs:r}){let o=C(`empty`),{t:s}=O(),c=e(b,void 0);return()=>!t.inConfigProvider&&c?.slots.empty&&!(n.image||t.imgSrc||t.description)?c.slots.empty({component:`empty`}):a(`div`,i({class:o},r),[a(`div`,{class:`${o}-image`},[n.image?.call(n)??(t.imgSrc?a(`img`,{src:t.imgSrc,alt:t.description||`empty`},null):a(E,null,null))]),a(`div`,{class:`${o}-description`},[n.default?.call(n)??(t.description||s(`empty.description`))])])}}),M=Object.assign(j,{install:(e,t)=>{x(e,t);let n=w(t);e.component(n+j.name,j)}}),N=_({name:`Thumb`,props:{data:{type:Object},direction:{type:String,default:`horizontal`},alwaysShow:{type:Boolean,default:!1},both:{type:Boolean,default:!1}},emits:[`scroll`],setup(e,{emit:t}){let n=C(`scrollbar`),r=f(!1),i=f(),a=f(),o=l(()=>e.direction===`horizontal`?{size:`width`,direction:`left`,offset:`offsetWidth`,client:`clientX`}:{size:`height`,direction:`top`,offset:`offsetHeight`,client:`clientY`}),s=f(0),c=f(!1),u=f(0),d=l(()=>({[o.value.size]:`${e.data?.thumbSize??0}px`,[o.value.direction]:`${s.value}px`})),p=e=>{e.preventDefault(),a.value&&(u.value=e[o.value.client]-a.value.getBoundingClientRect()[o.value.direction],c.value=!0,A(window,`mousemove`,g),A(window,`mouseup`,_),A(window,`contextmenu`,_))},m=n=>{if(n.preventDefault(),a.value){let r=h(n[o.value.client]>a.value.getBoundingClientRect()[o.value.direction]?s.value+(e.data?.thumbSize??0):s.value-(e.data?.thumbSize??0));r!==s.value&&(s.value=r,t(`scroll`,r))}},h=t=>t<0?0:e.data&&t>e.data.max?e.data.max:t,g=e=>{if(i.value&&a.value){let n=h(e[o.value.client]-i.value.getBoundingClientRect()[o.value.direction]-u.value);n!==s.value&&(s.value=n,t(`scroll`,n))}},_=()=>{c.value=!1,k(window,`mousemove`,g),k(window,`mouseup`,_)};return{visible:r,trackRef:i,thumbRef:a,prefixCls:n,thumbCls:l(()=>[`${n}-thumb`,`${n}-thumb-direction-${e.direction}`,{[`${n}-thumb-dragging`]:c.value}]),thumbStyle:d,handleThumbMouseDown:p,handleTrackClick:m,setOffset:e=>{c.value||(e=h(e),e!==s.value&&(s.value=e))}}}});function P(e,t,n,i,a,l){return o(),p(y,null,{default:c(()=>[m(`div`,{ref:`trackRef`,class:s([`${e.prefixCls}-track`,`${e.prefixCls}-track-direction-${e.direction}`]),onMousedown:t[1]||=v((...t)=>e.handleTrackClick&&e.handleTrackClick(...t),[`self`])},[m(`div`,{ref:`thumbRef`,class:s(e.thumbCls),style:r(e.thumbStyle),onMousedown:t[0]||=(...t)=>e.handleThumbMouseDown&&e.handleThumbMouseDown(...t)},[m(`div`,{class:s(`${e.prefixCls}-thumb-bar`)},null,2)],38)],34)]),_:1})}var F=T(N,[[`render`,P]]),I=20,L=15,R=_({name:`Scrollbar`,components:{ResizeObserver:D,Thumb:F},inheritAttrs:!1,props:{type:{type:String,default:`embed`},outerClass:[String,Object,Array],outerStyle:{type:[String,Object,Array]},hide:{type:Boolean,default:!1},disableHorizontal:{type:Boolean,default:!1},disableVertical:{type:Boolean,default:!1}},emits:{scroll:e=>!0},setup(e,{emit:n}){let r=C(`scrollbar`),i=f(),a=f(),o=f(),s=f(),c=f(),u=f(!1),d=f(!1),p=l(()=>u.value&&!e.disableHorizontal),m=l(()=>d.value&&!e.disableVertical),h=f(!1),g=()=>{var t,n;if(i.value){let{clientWidth:r,clientHeight:l,offsetWidth:f,offsetHeight:g,scrollWidth:_,scrollHeight:v,scrollTop:y,scrollLeft:b}=i.value;u.value=_>r,d.value=v>l,h.value=p.value&&m.value;let x=e.type===`embed`&&h.value?f-L:f,S=e.type===`embed`&&h.value?g-L:g,C=Math.round(x/Math.min(_/r,x/I)),w=x-C,T=(_-r)/w,E=Math.round(S/Math.min(v/l,S/I)),D=S-E,O=(v-l)/D;if(a.value={ratio:T,thumbSize:C,max:w},o.value={ratio:O,thumbSize:E,max:D},y>0){let e=Math.round(y/(o.value?.ratio??1));(t=c.value)==null||t.setOffset(e)}if(b>0){let e=Math.round(b/(o.value?.ratio??1));(n=s.value)==null||n.setOffset(e)}}};t(()=>{g()});let _=()=>{g()},v=t=>{var r,l;if(i.value){if(p.value&&!e.disableHorizontal){let e=Math.round(i.value.scrollLeft/(a.value?.ratio??1));(r=s.value)==null||r.setOffset(e)}if(m.value&&!e.disableVertical){let e=Math.round(i.value.scrollTop/(o.value?.ratio??1));(l=c.value)==null||l.setOffset(e)}}n(`scroll`,t)},y=e=>{i.value&&i.value.scrollTo({left:e*(a.value?.ratio??1)})},b=e=>{i.value&&i.value.scrollTo({top:e*(o.value?.ratio??1)})},x=l(()=>{let t={};return e.type===`track`&&(p.value&&(t.paddingBottom=`${L}px`),m.value&&(t.paddingRight=`${L}px`)),[t,e.outerStyle]});return{prefixCls:r,cls:l(()=>[`${r}`,`${r}-type-${e.type}`,{[`${r}-both`]:h.value},e.outerClass]),style:x,containerRef:i,horizontalThumbRef:s,verticalThumbRef:c,horizontalData:a,verticalData:o,isBoth:h,hasHorizontalScrollbar:p,hasVerticalScrollbar:m,handleResize:_,handleScroll:v,handleHorizontalScroll:y,handleVerticalScroll:b}},methods:{scrollTo(e,t){var n,r;S(e)?(n=this.$refs.containerRef)==null||n.scrollTo(e):(e||t)&&((r=this.$refs.containerRef)==null||r.scrollTo(e,t))},scrollTop(e){var t;(t=this.$refs.containerRef)==null||t.scrollTo({top:e})},scrollLeft(e){var t;(t=this.$refs.containerRef)==null||t.scrollTo({left:e})}}});function z(e,t,l,f,g,_){let v=n(`ResizeObserver`),y=n(`thumb`);return o(),u(`div`,{class:s(e.cls),style:r(e.style)}
1,[a(v,{onResize:e.handleResize},{default:c(()=>[m(`div`,i({ref:`containerRef`,class:`${e.prefixCls}-container`},e.$attrs,{onScroll:t[0]||=(...t)=>e.handleScroll&&e.handleScroll(...t)}),[a(v,{onResize:e.handleResize},{default:c(()=>[h(e.$slots,`default`)]),_:3},8,[`onResize`])],16)]),_:3},8,[`onResize`]),!e.hide&&e.hasHorizontalScrollbar?(o(),p(y,{key:0,ref:`horizontalThumbRef`,data:e.horizontalData,direction:`horizontal`,both:e.isBoth,onScroll:e.handleHorizontalScroll},null,8,[`data`,`both`,`onScroll`])):d(`v-if`,!0),!e.hide&&e.hasVerticalScrollbar?(o(),p(y,{key:1,ref:`verticalThumbRef`,data:e.verticalData,direction:`vertical`,both:e.isBoth,onScroll:e.handleVerticalScroll},null,8,[`data`,`both`,`onScroll`])):d(`v-if`,!0)],6)}var B=T(R,[[`render`,z]]),V=Object.assign(B,{install:(e,t)=>{x(e,t);let n=w(t);e.component(n+B.name,B)}}),H=({popupVisible:e,defaultPopupVisible:t,emit:n})=>{let r=f(t?.value??!1),i=l(()=>e?.value??r.value);return g(i,e=>{r.value!==e&&(r.value=e)}),{computedPopupVisible:i,handlePopupVisibleChange:e=>{e!==i.value&&(r.value=e,n(`update:popupVisible`,e),n(`popupVisibleChange`,e))}}};export{V as n,M as r,H 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.