PageSourceSearch

https://www.mechrevo.com/na/_nuxt/Bo50q7aM.js

js mechrevo.com collected 2026-09-24 22:51:51 UTC 2,041 bytes, 1 lines download raw bytes

1import{_ as T}from"./DlAUqK2U.js";import{i as g,j as C,o as d,c as m,a as f,G as X,t as z,C as D,x as a,H as W}from"./C4-mtOfP.js";const b={class:"captcha-slider"},B={key:0},P={key:1},U={class:"slider-text"},V=50,$={__name:"CaptchaSlider",emits:["verified"],setup(j,{expose:_,emit:E}){const L=E,n=a(!1),o=a(0),t=a(!1),u=a(0),h=a(0),k=W(()=>n.value?"验证通过":t.value?"继续滑动":"向右滑动验证"),x=e=>{n.value||(t.value=!0,u.value=e.clientX-o.value,document.addEventListener("mousemove",r),document.addEventListener("mouseup",i))},M=e=>{if(n.value)return;t.value=!0;const s=e.touches[0];u.value=s.clientX-o.value,document.addEventListener("touchmove",c),document.addEventListener("touchend",v)},r=e=>{if(!t.value)return;const s=e.clientX-u.value;p(s)},c=e=>{if(!t.value)return;const S=e.touches[0].clientX-u.value;p(S)},p=e=>{const s=h.value-V;e<0?o.value=0:e>s?o.value=s:o.value=e,o.value>=s-5&&w()},i=()=>{t.value&&(t.value=!1,document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i),n.value||(o.value=0))},v=()=>{t.value&&(t.value=!1,document.removeEventListener("touchmove",c),document.removeEventListener("touchend",v),n.value||(o.value=0))},w=()=>{n.value=!0,t.value=!1;const e=`captcha_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;L("verified",e)},y=()=>{n.value=!1,o.value=0,t.value=!1},l=()=>{const e=document.querySelector(".slider-track");e&&(h.value=e.offsetWidth)};return g(()=>{l(),window.addEventListener("resize",l)}),C(()=>{window.removeEventListener("resize",l),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i),document.removeEventListener("touchmove",c),document.removeEventListener("touchend",v)}),_({reset:y}),(e,s)=>(d(),m("div",b,[f("div",{class:D(["slider-track",{verified:n.value}])},[f("div",{class:"slider-thumb",style:X({left:o.value+"px"}),onMousedown:x,onTouchstart:M},[n.value?(d(),m("span",P,"✓")):(d(),m("span",B,"→"))],36),f("div",U,z(k.value),1)],2)]))}},H=T($,[["__scopeId","data-v-a270183a"]]);export{H as C};

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.