PageSourceSearch

https://send2boox.com/static/js/silderCaptcha-CyTFw6et.js

js send2boox.com collected 2026-09-28 07:02:40 UTC 2,276 bytes, 1 lines download raw bytes

1import{f as C,v as I}from"./element-plus-Dili4IpY.js";import{u as S,t as g,f as V,_ as k}from"./index-BfKQpagI.js";import{d as B,b as f,j as i,q as E,u as L,K as x,L as h,o as v,U as T,c as $,a as r,Q as D}from"./@vue-DUk3FjKi.js";const U=B({name:"SilderCaptcha",props:{dialogVisible:{type:Boolean,default:!1},width:{type:String,default:"400px"},type:{type:String,default:"puzzle",validator:t=>["puzzle","slide"].includes(t)}},emits:["update:dialogVisible","close","captchaSuccess"],setup(t,{emit:a}){const n=f(!0),c=S(),l=f(null),p=i(()=>c.language),s=i({get(){return t.dialogVisible},set(e){a("update:dialogVisible",e)}}),d=i(()=>c.currentServer?.lang==="zh"),u=i(()=>t.type==="puzzle"?"1etq8wxz":"lkl1ntu3"),m=async()=>{n.value=!0,await E(),window.initAliyunCaptcha({region:d.value?"cn":"sgp",prefix:"1nxo4o",SceneId:u.value,mode:"embed",element:"#captcha-element",button:"#captcha-button",captchaVerifyCallback:z,getInstance:y,slideStyle:{width:360,height:40},language:b(),immediate:!0,onError:e=>{console.log(e,"pzzzzzzz"),e.code==="INIT_FAIL"&&setTimeout(()=>{V(g("alert.tips32")),s.value=!1,n.value=!1},2e3)}})},y=e=>{n.value=!1,l.value=e},z=e=>{a("captchaSuccess",e)},w=()=>{document.getElementById("aliyunCaptcha-mask")?.remove(),document.getElementById("aliyunCaptcha-window-popup")?.remove(),m()},_=()=>{l.value?.destroyCaptcha(),l.value=null,document.getElementById("aliyunCaptcha-mask")?.remove(),document.getElementById("aliyunCaptcha-window-popup")?.remove()},b=()=>{const e=L(p);let o="";return e==="cn"||e==="en"?o=e:e==="zh"?o="cn":e==="zhTW"?o="tw":e==="ru"&&(o="ru_RU"),o};return{t:g,loading:n,visible:s,open:m,close:_,resetCaptcha:w}}}),q={class:"font-format-big multiple-family text-center"},A={style:{height:"290px"}};function M(t,a,n,c,l,p){const s=C,d=I;return v(),x(s,{modelValue:t.visible,"onUpdate:modelValue":a[0]||(a[0]=u=>t.visible=u),center:"","destroy-on-close":"","close-on-click-modal":!1,width:t.width,onOpen:t.open,onClosed:t.close},{header:h(()=>[r("p",q,D(t.t("common.safetyVerification")),1)]),default:h(()=>[T((v(),$("div",A,a[1]||(a[1]=[r("div",{id:"captcha-element"},null,-1),r("div",{id:"captcha-button"},null,-1)]))),[[d,t.loading]])]),_:1},8,["modelValue","width","onOpen","onClosed"])}const F=k(U,[["render",M]]);export{F as _};

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.