PageSourceSearch

https://www.nameclub.com/web/assets/CPH4lIFd.js

js nameclub.com collected 2026-10-09 22:42:00 UTC 6,508 bytes, 1 lines download raw bytes

1import{d as ee,k as u,v as m,B as P,af as te,x as le,b as T,F as ne,aA as ae,aa as oe}from"./CYMs3uwY.js";function ue(a,M,S){var B={},t=B.noTrailing,h=t===void 0?!1:t,p=B.noLeading,w=p===void 0?!1:p,R=B.debounceMode,i=R===void 0?void 0:R,f,x=!1,c=0;function b(){f&&clearTimeout(f)}function $(o){var v=o||{},l=v.upcomingOnly,d=l===void 0?!1:l;b(),x=!d}function s(){for(var o=arguments.length,v=new Array(o),l=0;l<o;l++)v[l]=arguments[l];var d=this,E=Date.now()-c;if(x)return;function r(){c=Date.now(),M.apply(d,v)}function A(){f=void 0}!w&&i&&!f&&r(),b(),i===void 0&&E>a?w?(c=Date.now(),h||(f=setTimeout(i?A:r,a))):r():h!==!0&&(f=setTimeout(i?A:r,i===void 0?a-E:a))}return s.cancel=$,s}function ie(a){const M=ae();M&&Object.assign(M.proxy,a)}const se={modelValue:{type:Boolean,default:!0},list:{type:Array,required:!0,default:[]},step:{type:Number,default:1},limitScrollNum:{type:Number,default:3},hover:{type:Boolean,default:!1},direction:{type:String,default:"up"},singleHeight:{type:Number,default:0},singleWidth:{type:Number,default:0},singleWaitTime:{type:Number,default:1e3},isRemUnit:{type:Boolean,default:!1},isWatch:{type:Boolean,default:!0},delay:{type:Number,default:0},ease:{type:[String,Object],default:"ease-in"},count:{type:Number,default:-1},copyNum:{type:Number,default:1},wheel:{type:Boolean,default:!1},singleLine:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1}};globalThis.window.cancelAnimationFrame=(function(){return globalThis.window.cancelAnimationFrame||globalThis.window.webkitCancelAnimationFrame||globalThis.window.mozCancelAnimationFrame||globalThis.window.oCancelAnimationFrame||globalThis.window.msCancelAnimationFrame||function(a){return globalThis.window.clearTimeout(a)}})();globalThis.window.requestAnimationFrame=(function(){return globalThis.window.requestAnimationFrame||globalThis.window.webkitRequestAnimationFrame||globalThis.window.mozRequestAnimationFrame||globalThis.window.oRequestAnimationFrame||globalThis.window.msRequestAnimationFrame||function(a){return globalThis.window.setTimeout(a,1e3/60)}})();function re(a){a&&typeof a!="boolean"&&a.length>100&&console.warn(`数据达到了${a.length}条有点多哦~,可能会造成部分老旧浏览器卡顿。`)}const ve=ee({name:"dynadot-seamless-scroll",inheritAttrs:!1,props:se,emits:["stop","count","move"],setup(a,{slots:M,emit:S,attrs:B}){const t=a,h=u(0),p=u(0),w=u(!1),R=u(null),i=u(null),f=u(null),x=u(null),c=u(null),b=u(0),$=u(0),s=u(0),o=u(0),v=u(!1),l=u(0),d=m(()=>t.list?t.list.length>=t.limitScrollNum:!1),E=m(()=>({width:b.value?`${b.value}px`:"auto",transform:`translate(${s.value}px,${o.value}px)`,transition:`all ${typeof t.ease=="string"?t.ease:"cubic-bezier("+t.ease.x1+","+t.ease.y1+","+t.ease.x2+","+t.ease.y2+")"} ${t.delay}ms`,overflow:"hidden",display:t.singleLine?"flex":"block"})),r=m(()=>t.direction=="left"||t.direction=="right"),A=m(()=>r.value?{float:"left",overflow:"hidden",display:t.singleLine?"flex":"block",flexShrink:t.singleLine?0:1}:{overflow:"hidden"}),I=m(()=>t.isRemUnit?parseInt(globalThis.window.getComputedStyle(globalThis.document.documentElement,null).fontSize):1),X=m(()=>t.singleWidth*I.value),q=m(()=>t.singleHeight*I.value),Q=m(()=>{let e;const n=t.step;return r.value?e=X.value:e=q.value,e>0&&e%n>0&&console.error("如果设置了单步滚动,step 需是单步大小的约数,否则无法保证单步滚动结束的位置是否准确。~~~~~"),n}),y=()=>{cancelAnimationFrame(x.value),x.value=null},F=(e,n,N)=>{x.value=requestAnimationFrame(function(){const C=$.value/2,V=b.value/2;if(e==="up"?(Math.abs(o.value)>=C&&(o.value=0,l.value+=1,S("count",l.value)),o.value-=n):e==="down"?(o.value>=0&&(o.value=C*-1,l.value+=1,S("count",l.value)),o.value+=n):e==="left"?(Math.abs(s.value)>=V&&(s.value=0,l.value+=1,S("count",l.value)),s.value-=n):e==="right"&&(s.value>=0&&(s.value=V*-1,l.value+=1,S("count",l.value)),s.value+=n),N)return;const{singleWaitTime:K}=t;c.value&&clearTimeout(c.value),q.value?Math.abs(o.value)%q.value<n?c.value=setTimeout(()=>{g()},K):g():X.value&&Math.abs(s.value)%X.value<n?c.value=setTimeout(()=>{g()},K):g()})},g=()=>{if(y(),v.value||!d.value||l.value===t.count){S("stop",l.value),l.value=0;return}F(t.direction,Q.value,!1)},j=()=>
1{if(re(t.list),r.value){let e=i.value.offsetWidth;e=e*2+1,b.value=e}d.value?($.value=f.value.offsetHeight,t.modelValue&&g()):(y(),o.value=s.value=0)},D=()=>{v.value=!1,g()},O=()=>{v.value=!0,c.value&&clearTimeout(c.value),y()},Y=m(()=>t.hover&&t.modelValue&&d.value),U=ue(30,e=>{if(y(),e instanceof WheelEvent){const n=r.value?X.value||15:q.value||15;r.value?((e.deltaX<0||e.deltaY<0)&&F("right",n,!0),(e.deltaX>0||e.deltaY>0)&&F("left",n,!0)):(e.deltaY<0&&F("down",n,!0),e.deltaY>0&&F("up",n,!0))}else{let n=0,N=0;e instanceof TouchEvent?(n=e.touches[0].clientX-h.value,N=e.touches[0].clientY-p.value):(n=e.clientX-h.value,N=e.clientY-p.value);const C=r.value?Math.abs(n):Math.abs(N),V=r.value?n>0?"right":"left":N>0?"down":"up";F(V,C,!0),h.value=e instanceof TouchEvent?e.touches[0].clientX:e.clientX,p.value=e instanceof TouchEvent?e.touches[0].clientY:e.clientY}}),L=e=>{t.draggable&&(y(),w.value=!0,e instanceof TouchEvent?(h.value=e.touches[0].clientX,p.value=e.touches[0].clientY):(h.value=e.clientX,p.value=e.clientY))},z=e=>{!w.value||!t.draggable||(document.body.style.userSelect="none",i.value&&(i.value.style.pointerEvents="none"),e.preventDefault(),U(e))},W=()=>{w.value&&(document.body.style.userSelect="",w.value=!1,i.value&&(i.value.style.pointerEvents=""),t.modelValue&&g())},Z=e=>{e.preventDefault(),e.stopPropagation(),U(e)},G=()=>{y(),v.value=!1,j()};ie({Reset:()=>{G()}}),P(()=>t.list,()=>{t.isWatch&&oe(()=>{G()})},{deep:!0}),P(()=>t.modelValue,e=>{e?D():O()}),P(()=>t.count,e=>{e!==0&&D()}),te(()=>{y(),clearTimeout(c.value)}),le(()=>{d.value&&j()});const{default:H,html:k}=M,_=new Array(t.copyNum).fill(null),J=()=>T(ne,null,[T("div",{ref:i,style:A.value},[H&&H()]),d.value?_.map(()=>k&&typeof k=="function"?T("div",{style:A.value},[k()]):T("div",{style:A.value},[H&&H()])):null]);return()=>T("div",{ref:R,class:B.class},[t.wheel&&t.hover?T("div",{ref:f,style:E.value,onMouseenter:()=>{Y.value&&O()},onMouseleave:()=>{Y.value&&D(),W()},onWheel:e=>{Y.value&&Z(e)},onMousedown:L,onMousemove:z,onMouseup:W,onTouchstart:L,onTouchmove:z,onTouchend:W},[J()]):T("div",{ref:f,style:E.value,onMouseenter:()=>{Y.value&&O()},onMouseleave:()=>{Y.value&&D(),W()},onMousedown:L,onMousemove:z,onMouseup:W,onTouchstart:L,onTouchmove:z,onTouchend:W},[J()])])}});export{ve as D};

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.