import{r,g as u,W as _,o as s,c,a as l,b as m,w as p,i as f,T as v}from"./index-Bb2UEb_P.js";import{_ as w}from"./_plugin-vue_export-helper-DlAUqK2U.js";const g=["src"],x={key:0,class:"protection-code__loader-wrapper"},V={__name:"ProtectionCode",setup(C){const o=r(!1),a=r(null);function n(){const t=new Uint16Array(1);crypto.getRandomValues(t),a.value=1e3+t[0]%9e3}function d(){o.value=!0,n(),setTimeout(()=>{o.value=!1},1e3)}const i=u(()=>`${_}/Protect?Rand=${a.value}`);return n(),(t,e)=>(s(),c("div",{class:"tw-relative tw-cursor-pointer tw-rounded tw-overflow-hidden tw-w-[80px] tw-h-[30px]",onClick:e[0]||(e[0]=k=>d())},[l("img",{src:i.value},null,8,g),m(v,{name:"fade",mode:"out-in"},{default:p(()=>[o.value?(s(),c("div",x,e[1]||(e[1]=[l("div",{class:"protection-code__loader"},null,-1)]))):f("",!0)]),_:1})]))}},T=w(V,[["__scopeId","data-v-81535102"]]);export{T as _};
