PageSourceSearch

https://pulsbasketu.com/_nuxt/wYnwZzq4.js

js pulsbasketu.com collected 2026-09-25 11:20:32 UTC 2,508 bytes, 1 lines download raw bytes

1import{f as L,ag as F,af as N,r as v,g as _,E as C,I as E}from"./DZdWLuTi.js";function M(t,e){const r=e/t*100;return 2/Math.PI*100*Math.atan(r/50)}function q(t={}){const{duration:e=2e3,throttle:r=200,hideDelay:s=500,resetDelay:u=400}=t,l=t.estimatedProgress||M,i=L(),a=v(0),n=v(!1),m=v(!1);let p=!1,h,I,y,x;const T=()=>{m.value=!1,P(0)};function P(o=0){if(!i.isHydrating){if(o>=100)return d();c(),a.value=o<0?0:o,r?I=setTimeout(()=>{n.value=!0,b()},r):(n.value=!0,b())}}function k(){y=setTimeout(()=>{n.value=!1,x=setTimeout(()=>{a.value=0},u)},s)}function d(o={}){a.value=100,p=!0,c(),A(),o.error&&(m.value=!0),o.force?(a.value=0,n.value=!1):k()}function A(){clearTimeout(y),clearTimeout(x)}function c(){clearTimeout(I),cancelAnimationFrame(h)}function b(){p=!1;let o;function g(f){if(p)return;o??(o=f);const S=f-o;a.value=Math.max(0,Math.min(100,l(e,S))),h=requestAnimationFrame(g)}h=requestAnimationFrame(g)}let D=()=>{};{const o=i.hook("page:loading:start",()=>{T()}),g=i.hook("page:loading:end",()=>{d()}),f=i.hook("vue:error",()=>d());D=()=>{f(),o(),g(),c()}}return{_cleanup:D,progress:_(()=>a.value),isLoading:_(()=>n.value),error:_(()=>m.value),start:T,set:P,finish:d,clear:c}}function H(t={}){const e=L(),r=e._loadingIndicator=e._loadingIndicator||q(t);return F()&&(e._loadingIndicatorDeps=e._loadingIndicatorDeps||0,e._loadingIndicatorDeps++,N(()=>{e._loadingIndicatorDeps--,e._loadingIndicatorDeps===0&&(r._cleanup(),delete e._loadingIndicator)})),r}const z=C({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},errorColor:{type:String,default:"repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)"},estimatedProgress:{type:Function,required:!1}},setup(t,{slots:e,expose:r}){const{progress:s,isLoading:u,error:l,start:i,finish:a,clear:n}=H({duration:t.duration,throttle:t.throttle,estimatedProgress:t.estimatedProgress});return r({progress:s,isLoading:u,error:l,start:i,finish:a,clear:n}),()=>E("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${t.height}px`,opacity:u.value?1:0,background:l.value?t.errorColor:t.color||void 0,backgroundSize:`${100/s.value*100}% auto`,transform:`scaleX(${s.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},e)}});export{z 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.