(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.ProgressBar={},t.Vue))})(this,function(t,e){"use strict";const o={props:{componentPrefix:String,variant:String,variantPrefix:String},computed:{variantClassPrefix(){return this.variantPrefix||this.componentPrefix},hasVariantPrefix(){return this.variant===void 0?!1:!!this.variant.match(new RegExp(`^${this.variantClassPrefix}`))},variantClass(){return this.variant?!this.variantClassPrefix||this.hasVariantPrefix?this.variant:`${this.variantClassPrefix}-${this.variant}`:""}}},l=e.defineComponent({name:"ProgressBar",mixins:[o],props:{color:String,value:{type:Number,required:!0},height:String,label:[String,Boolean],striped:Boolean,animated:Boolean,min:{type:Number,default:0},max:{type:Number,default:100},variant:{type:String,default:"primary"}},computed:{classes(){return{[this.variantClass]:!!this.variant,...this.progressClasses}},variantClassPrefix(){return"bg"},offsetValue(){return this.value/this.max*100},progressClasses(){return{"progress-bar-striped":this.striped,"progress-bar-animated":this.animated}},styles(){return{width:`${this.offsetValue}%`,background:`${this.color} !important`}}}}),u="",p=(r,s)=>{const a=r.__vccOpts||r;for(const[i,n]of s)a[i]=n;return a},d=["aria-valuenow","aria-valuemin","aria-valuemax"],f={key:0},m={key:1};function c(r,s,a,i,n,g){return e.openBlock(),e.createElementBlock("div",{class:"progress",style:e.normalizeStyle({height:r.height})},[e.createElementVNode("div",{class:e.normalizeClass(["progress-bar",r.classes]),role:"progressbar",style:e.normalizeStyle(r.styles),"aria-valuenow":r.offsetValue,"aria-valuemin":r.min,"aria-valuemax":r.max},[r.label?(e.openBlock(),e.createElementBlock("span",f,[r.label!==!0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(r.label),1)],64)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(r.offsetValue)+"% ",1)])):(e.openBlock(),e.createElementBlock("span",m,[e.renderSlot(r.$slots,"default")]))],14,d)],4)}const h=p(l,[["render",c]]);t.ProgressBar=h,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});