import{_ as u,a as m}from"./line-pattern.js";import{o as i,c as a,a as t,d as g,f as _,n as c,t as o,F as h,i as f,e as p,p as v,g as k,_ as w}from"./index.js";const l=e=>(v("data-v-c94628e1"),e=e(),k(),e),y=l(()=>t("div",{class:"units-time__icon-light"},null,-1)),I={key:0,class:"units-time__icon-progress",xmlns:"http://www.w3.org/2000/svg",width:"140",height:"139",viewBox:"0 0 140 139",fill:"none"},x=l(()=>t("path",{d:"M4,69.5a66,65.5 0 1,0 132,0a66,65.5 0 1,0 -132,0",stroke:"#EEEEE6","stroke-opacity":"0.2","stroke-width":"12"},null,-1)),S=["stroke-dashoffset"],B={class:"units-time__title"},E={class:"units-time__units"},P={key:0,class:"units-time__unit-sign"};function b(e,N,s,T,U,r){return i(),a("div",{class:c(["units-time",[`units-time_theme-${s.theme}`,r.classes]])},[t("div",{class:c(["units-time__icon",{"units-time__icon_is-animated":s.isAnimated}])},[t("div",{class:"units-time__icon-image",style:g({backgroundImage:`url('${r.icon}')`})},null,4),y,s.showProgress?(i(),a("svg",I,[x,t("path",{d:"M4,69.5a66,65.5 0 1,0 132,0a66,65.5 0 1,0 -132,0",stroke:"#FFB110","stroke-dasharray":"1000","stroke-dashoffset":1e3-s.progress*415,"stroke-width":"12"},null,8,S)])):_("",!0)],2),t("div",B,o(s.title),1),t("div",E,[(i(!0),a(h,null,f(s.units,(n,d)=>(i(),a("div",{class:"units-time__unit",key:d},[p(o(n.value),1),n.sign&&String(n.sign).length?(i(),a("div",P,o(n.sign),1)):_("",!0)]))),128))])],2)}const F={props:{showProgress:{default:!1},progress:{default:0},title:{default:""},units:{default:()=>[]},customIcon:{default:""},isAnimated:{default:!1},theme:{type:String,default:"default",validator:e=>["default","dark"].includes(e)},linePattern:{type:Boolean,default:!1}},data(){return{images:Object.assign({"/src/assets/images/units-time/end-timer.png":u,"/src/assets/images/units-time/line-pattern.svg":m})}},computed:{icon(){return this.customIcon?this.customIcon:this.images["/src/assets/images/units-time/end-timer.png"]},classes(){return{"units-time_progress":this.showProgress,"units-time_line-pattern":this.linePattern}}}},A=w(F,[["render",b],["__scopeId","data-v-c94628e1"]]);export{A as U};
