var __awaiter=this&&this.__awaiter||function(r,e,t,n){function i(r){return r instanceof t?r:new t((function(e){e(r)}))}return new(t||(t=Promise))((function(t,a){function s(r){try{u(n.next(r))}catch(r){a(r)}}function o(r){try{u(n["throw"](r))}catch(r){a(r)}}function u(r){r.done?t(r.value):i(r.value).then(s,o)}u((n=n.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(r){return function(e){return u([r,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(t=0)),t)try{if(n=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;i=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){t.label=o[1];break}if(o[0]===6&&t.label<a[1]){t.label=a[1];a=o;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(o);break}if(a[2])t.ops.pop();t.trys.pop();continue}o=e.call(r,t)}catch(r){o=[6,r];i=0}finally{n=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-23ab2ff7.system.js","./p-db0895e2.system.js","./p-27737929.system.js","./p-b719d335.system.js","./p-2235b91f.system.js","./p-df0014ec.system.js","./p-f4a83740.system.js","./p-e1deb153.system.js","./p-61c16aaa.system.js","./p-a4f1fe2b.system.js","./p-32b5c1b2.system.js"],(function(r){"use strict";var e,t,n,i,a,s,o;return{setters:[function(r){e=r.r;t=r.h;n=r.H;i=r.g},function(r){a=r.B},function(r){s=r.b},function(r){o=r.L},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var u=":root{--bal-progress-bar-background-white:var(--bal-color-white);--bal-progress-bar-background-grey:var(--bal-color-grey-3);--bal-progress-bar-line-background:var(--bal-color-primary);--bal-progress-bar-line-radius:var(--bal-radius-rounded)}.bal-progress-bar{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;width:100%;min-width:0;height:.25rem}.bal-progress-bar--background-white{background:var(--bal-progress-bar-background-white)}.bal-progress-bar--background-grey{background:var(--bal-progress-bar-background-grey)}.bal-progress-bar__line{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;height:.25rem;width:0;background:var(--bal-progress-bar-line-background);border-top-right-radius:var(--bal-progress-bar-line-radius);border-bottom-right-radius:var(--bal-progress-bar-line-radius)}.bal-progress-bar__line--animated{will-change:width;-webkit-transition:all var(--bal-animation-transition-duration) var(--bal-animation-transition-easing);transition:all var(--bal-animation-transition-duration) var(--bal-animation-transition-easing)}.bal-progress-bar__line--full{border-top-right-radius:0;border-bottom-right-radius:0}";var c=undefined&&undefined.__decorate||function(r,e,t,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)if(s=r[o])a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a;return i>3&&a&&Object.defineProperty(e,t,a),a};var b=r("bal_progress_bar",function(){function r(r){e(this,r);this.animated=true;this.isTouch=s.isTouch;this.value=0;this.background="white"}r.prototype.componentDidRender=function(){this.updateProgress()};r.prototype.breakpointListener=function(r){this.updateProgress()};r.prototype.configChanged=function(r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.animated=r.animated;return[2]}))}))};r.prototype.updateProgress=function(){if(this.lineEl){var r=this.el.clientWidth;var e=Math.max(0,Math.min(100,this.value));var t=r/100*e;this.lineEl.style.width="".concat(t,"px");if(e===100){this.lineEl.classList.add("bal-progress-bar__line--full")}else{this.lineEl.classList.remove("bal-progress-bar__line--full")}}};r.prototype.render=function(){var r=this;var e=a.block("progress-bar");var i=e.element("line");return t(n,{class:Object.assign(Object.assign({},e.class()),e.modifier("background-".concat(this.background)).class())},t("div",{class:Object.assign(Object.assign({},i.class()),i.modifier("animated").class(this.animated)),ref:function(e){return r.lineEl=e}}))};Object.defineProperty(r.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return r}());c([o()],b.prototype,"breakpointListener",null);b.style=u}}}));