Files
appco_dist/.output/public/_nuxt/C95nRCZ0.js
T
2025-08-25 15:52:41 +03:30

2 lines
1.6 KiB
JavaScript

import{d as n,r,cH as g,bi as u,k as v,a2 as d,y as a,z as i,T as m,A as f}from"./CYzE2ijA.js";import{_ as p}from"./DlAUqK2U.js";const H="data:image/svg+xml,%3c?xml%20version='1.0'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%233797EF'%20viewBox='0%200%2024%2024'%20width='24px'%20height='24px'%3e%3cpath%20d='M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10s10-4.477,10-10S17.523,2,12,2z%20M16,13h-3v3c0,0.552-0.448,1-1,1h0%20c-0.552,0-1-0.448-1-1v-3H8c-0.552,0-1-0.448-1-1v0c0-0.552,0.448-1,1-1h3V8c0-0.552,0.448-1,1-1h0c0.552,0,1,0.448,1,1v3h3%20c0.552,0,1,0.448,1,1v0C17,12.552,16.552,13,16,13z'/%3e%3c/svg%3e",w=["width","height","viewBox"],x=["width","height"],_=["width","height"],y=n({__name:"CustomProgressBar",props:{percent:{type:Number,required:!0},barHeight:{type:Number,default:2}},setup(t){const c=r(null),{width:o}=g(c),s=t,e=r(0);u(()=>{o.value>0&&(e.value=o.value)});const h=r(0),l=v(()=>e.value*s.percent/100);return d(l,()=>{(s.percent===100||s.percent===0)&&h.value++}),(b,k)=>(i(),a("div",{ref_key:"el",ref:c,class:"progress-container"},[e.value>0?(i(),a("svg",{key:0,width:e.value,height:t.barHeight,viewBox:`0 0 ${e.value} ${t.barHeight}`,class:"progress-bar"},[f("rect",{x:"0",y:"0",width:e.value,height:t.barHeight,fill:"rgba(255, 255, 255, 0.3)",rx:"1",ry:"1"},null,8,x),(i(),a("rect",{x:"0",y:"0",width:l.value,height:t.barHeight,fill:"white",rx:"1",ry:"1",key:h.value,class:"progress-fill"},null,8,_))],8,w)):m("",!0)],512))}}),z=p(y,[["__scopeId","data-v-9bef4aaa"]]),E=""+new URL("story_loading.Cuvmkir-.gif",import.meta.url).href;export{z as C,H as _,E as i};