1import{e as K,c as ee,u as B,b as te}from"./T6P7-iWy.js";import{r as b,R as L,X,a1 as w,E as r,p as ae,G as ne,v as le,a2 as se,q as re,x as oe,s as ue,Z as ie}from"./p7j0WGZt.js";import{Q as d,U as v,I as ce,t as p,c as x,p as o,w as W,S as M,X as h,T as de,j as ve,k as fe}from"./uOatmh1Q.js";import{p as ge,a as me}from"./DsU8Zdyl.js";import{u as he,m as be}from"./C0f4RyO8.js";const ke=["elevated","flat","tonal","outlined","text","plain"];function Be(e,n){return d(ce,null,[e&&d("span",{key:"overlay",class:v(`${n}__overlay`)},null),d("span",{key:"underlay",class:v(`${n}__underlay`)},null)])}const we=b({color:String,variant:{type:String,default:"elevated",validator:e=>ke.includes(e)}},"variant");function ze(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L();const s=p(()=>{const{variant:a}=x(e);return`${n}--variant-${a}`}),{colorClasses:u,colorStyles:i}=K(()=>{const{variant:a,color:c}=x(e);return{[["elevated","flat"].includes(a)?"background":"text"]:c}});return{colorClasses:u,colorStyles:i,variantClasses:s}}const G={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},ye=b({location:String},"location");function Ce(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=arguments.length>2?arguments[2]:void 0;const{isRtl:u}=X();return{locationStyles:o(()=>{if(!e.location)return{};const{side:a,align:c}=ge(e.location.split(" ").length>1?e.location:`${e.location} center`,u.value);function l(f){return s?s(f):0}const t={};return a!=="center"&&(n?t[G[a]]=`calc(100% - ${l(a)}px)`:t[a]=0),c!=="center"?n?t[G[c]]=`calc(100% - ${l(c)}px)`:t[c]=0:(a==="center"?t.top=t.left="50%":t[{top:"left",bottom:"left",left:"top",right:"top"}[a]]="50%",t.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[a]),t})}}const Se=b({chunkCount:{type:[Number,String],default:null},chunkWidth:{type:[Number,String],default:null},chunkGap:{type:[Number,String],default:4}},"chunks");function pe(e,n){const s=p(()=>!!e.chunkCount||!!e.chunkWidth),u=o(()=>{const l=x(n);if(!l)return 0;if(!e.chunkCount)return Number(e.chunkWidth);const t=Number(e.chunkCount);return(l-Number(e.chunkGap)*(t-1))/t}),i=p(()=>Number(e.chunkGap)),a=o(()=>{if(!s.value)return{};const l=r(i.value),t=r(u.value);return{maskRepeat:"repeat-x",maskImage:`linear-gradient(90deg, #000, #000 ${t}, transparent ${t}, transparent)`,maskSize:`calc(${t} + ${l}) 100%`}});function c(l){const t=x(n);if(!t)return l;const f=100*i.value/t,k=100*(u.value+i.value)/t,V=Math.floor((l+f)/k);return w(0,V*k-f/2,100)}return{hasChunks:s,chunksMaskStyles:a,snapValueToChunk:c}}const xe=b({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...Se(),...ue(),...ye({location:"top"}),...be(),...te(),...oe()},"VProgressLinear"),Te=ae()({name:"VProgressLinear",props:xe(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:s}=n;const u=ve(),i=ne(e,"modelValue"),{isRtl:a,rtlClasses:c}=X(),{themeClasses:l}=le(e),{locationStyles:t}=Ce(e),{textColorClasses:f,textColorStyles:k}=ee(()=>e.color),{backgroundColorClasses:V,backgroundColorStyles:I}=B(()=>e.bgColor||e.color),{backgroundColorClasses:E,backgroundColorStyles:U}=B(()=>e.bufferColor||e.bgColor||e.color),{backgroundColorClasses:z,backgroundColorStyles:T}=B(()=>
vendor: 2,964 bytes, line 1
1e.color),{roundedClasses:Y}=he(e),{intersectionRef:P,isIntersecting:j}=me(),y=o(()=>parseFloat(e.max)),m=o(()=>parseFloat(e.height)),C=o(()=>w(parseFloat(e.bufferValue)/y.value*100,0,100)),R=o(()=>w(parseFloat(i.value)/y.value*100,0,100)),S=o(()=>a.value!==e.reverse),q=o(()=>e.indeterminate?"fade-transition":"slide-x-transition"),F=fe(0),{hasChunks:_,chunksMaskStyles:A,snapValueToChunk:O}=pe(e,F);se(_,()=>{const{resizeRef:g}=ie(N=>F.value=N[0].contentRect.width);W(()=>g.value=u.value)});const Q=o(()=>_.value?O(C.value):C.value),Z=o(()=>_.value?O(R.value):R.value);function D(g){if(!P.value)return;const{left:N,right:H,width:$}=P.value.getBoundingClientRect(),J=S.value?$-g.clientX+(H-$):g.clientX-N;i.value=Math.round(J/$*y.value)}return W(()=>{P.value=u.value}),re(()=>M(e.tag,{ref:u,class:v(["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&j.value,"v-progress-linear--reverse":S.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped,"v-progress-linear--clickable":e.clickable},Y.value,l.value,c.value,e.class]),style:h([{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?r(m.value):0,"--v-progress-linear-height":r(m.value),...e.absolute?t.value:{}},A.value,e.style]),role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:Math.min(parseFloat(i.value),y.value),onClick:e.clickable&&D},{default:()=>[e.stream&&d("div",{key:"stream",class:v(["v-progress-linear__stream",f.value]),style:{...k.value,[S.value?"left":"right"]:r(-m.value),borderTop:`${r(m.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${r(m.value/4)})`,width:r(100-C.value,"%"),"--v-progress-linear-stream-to":r(m.value*(S.value?1:-1))}},null),d("div",{class:v(["v-progress-linear__background",V.value]),style:h([I.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}])},null),d("div",{class:v(["v-progress-linear__buffer",E.value]),style:h([U.value,{opacity:parseFloat(e.bufferOpacity),width:r(Q.value,"%")}])},null),M(de,{name:q.value},{default:()=>[e.indeterminate?d("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(g=>d("div",{key:g,class:v(["v-progress-linear__indeterminate",g,z.value]),style:h(T.value)},null))]):d("div",{class:v(["v-progress-linear__determinate",z.value]),style:h([T.value,{width:r(Z.value,"%")}])},null)]}),s.default&&d("div",{class:"v-progress-linear__content"},[s.default({value:R.value,buffer:C.value})])]})),{}}}),Ve=["static","relative","fixed","absolute","sticky"],Fe=b({position:{type:String,validator:e=>Ve.includes(e)}},"position");function Oe(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L();return{positionClasses:p(()=>e.position?`${n}--${e.position}`:void 0)}}export{Te as V,Oe as a,ze as b,Fe as c,ye as d,Be as g,we as m,Ce as u};
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.