index-legacy.ed5ab18f.js 2.0 KB

1
  1. !function(){function t(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var e,o,i=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(e=n.next()).done)&&(i.push(e.value),!r||i.length!==r);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return r(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return r(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}System.register(["./index-legacy.90c82f08.js"],(function(r){"use strict";var n,e,o,i,a,c,l,u;return{setters:[function(t){n=t.t,e=t.v,o=t.z,i=t.d,a=t.y,c=t.U,l=t.c,u=t.D}],execute:function(){var s=t(n("progress"),2),f=s[0],v=s[1],p={color:String,inactive:Boolean,pivotText:String,textColor:String,showPivot:e,pivotColor:String,trackColor:String,strokeWidth:o,percentage:{type:o,default:0,validator:function(t){return t>=0&&t<=100}}},y=i({name:f,props:p,setup:function(t){var r=a((function(){return t.inactive?void 0:t.color})),n=function(){var n=t.textColor,e=t.pivotText,o=t.pivotColor,i=t.percentage,a=null!=e?e:"".concat(i,"%");if(t.showPivot&&a){var c={color:n,left:"".concat(+i,"%"),transform:"translate(-".concat(+i,"%,-50%)"),background:o||r.value};return l("span",{style:c,class:v("pivot",{inactive:t.inactive})},[a])}};return function(){var e=t.trackColor,o=t.percentage,i=t.strokeWidth,a={background:e,height:c(i)},u={width:"".concat(o,"%"),background:r.value};return l("div",{class:v(),style:a},[l("span",{class:v("portion",{inactive:t.inactive}),style:u},null),n()])}}});r("P",u(y))}}}))}();