/*!
 * 
 * [Dojo](https://dojo.io/)
 * Copyright [JS Foundation](https://js.foundation/) & contributors
 * [New BSD license](https://github.com/dojo/meta/blob/master/LICENSE)
 * All rights reserved
 * 
 */
(window.dojoWebpackJsonpdojo_widgets_custom_elements=window.dojoWebpackJsonpdojo_widgets_custom_elements||[]).push([[35],{175:function(e,t,r){e.exports={" _key":"@dojo/widgets/progress",root:"progress-m__root__2vX10",output:"progress-m__output__1KJw_",bar:"progress-m__bar__1uSqt",progress:"progress-m__progress__3V_Rl"}},54:function(e,t,r){"use strict";r.r(t),r.d(t,"Progress",function(){return i});var s=r(5),n=r(80),a=r(175),o=r(81);const i=Object(s.a)({theme:n.a}).properties().children()(function({children:e,id:t,properties:r,middleware:{theme:n}}){const i=n.classes(a),{aria:c={},value:u,showOutput:p=!0,max:m=100,min:d=0,widgetId:g=`progress-${t}`}=r(),l=Math.round((u-d)/(m-d)*100),b=((t,r)=>{const{output:s}=e()[0]||{};return s?s(t,r):`${r}%`})(u,l);return Object(s.m)("div",{key:"root",classes:[n.variant(),i.root]},Object(s.m)("div",Object.assign({classes:i.bar,role:"progressbar"},Object(o.b)(c),{"aria-valuemin":`${d}`,"aria-valuemax":`${m}`,"aria-valuenow":`${u}`,"aria-valuetext":`${b}`,id:g}),(e=>Object(s.m)("div",{classes:i.progress,styles:{width:`${e}%`}}))(l)),p?Object(s.m)("span",{classes:i.output},b):null)});t.default=i},80:function(e,t,r){"use strict";r.d(t,"b",function(){return u});var s=r(5),n=r(83),a=r(12);const o=Object(s.a)({coreTheme:n.a}).properties();function i(e){return`${e.charAt(0).toUpperCase()}${e.slice(1)}`}function c(e){return e&&e.hasOwnProperty("variant")}const u=o(function({middleware:{coreTheme:e},properties:t}){const{variant:r,get:s,set:n,classes:o}=e;return{compose:(r,s,n)=>{const o=function(){const{theme:r}=t();if(r)return r;const s=e.get();return Object(a.c)(s)?{theme:s.theme,variant:s.variant}:s?s.theme:void 0}(),u=r[" _key"],p=s[" _key"],m=Object.keys(r).reduce((e,t)=>" _key"===t?e:(n&&!e[`${n}${i(t)}`]&&(e[`${n}${i(t)}`]=" "),s[t]||(e[t]=" "),e),{" _key":p}),d=e.classes(m),g=e.classes(s);let l=e.classes(r);if(n){const e=Object.keys(Object.assign({},d,g)).reduce((e,t)=>{if(0===t.indexOf(n)&&t!==n){const r=function(e){return`${e.charAt(0).toLowerCase()}${e.slice(1)}`}(t.replace(n,"")),s="string"==typeof g[t]&&g[t].trim(),a="string"==typeof d[t]&&d[t].trim();!s&&a&&(e[r]=`${l[r]} ${a}`),s&&(e[r]=g[t])}return e},{});return l=Object.assign({},l,e),c(o)?{theme:{theme:Object.assign({},o.theme.theme,{[u]:l}),variants:o.theme.variants},variant:o.variant}:Object.assign({},o,{[u]:l})}const b=Object.keys(l).reduce((e,t)=>{if(" _key"===t)return e;const r="string"==typeof g[t]&&g[t].trim(),s="string"==typeof d[t]&&d[t].trim();return r?e[t]=r:s&&(e[t]=`${e[t]} ${s}`),e},Object.assign({},l));return c(o)?{theme:{theme:Object.assign({},o.theme.theme,{[u]:b}),variants:o.theme.variants},variant:o.variant}:Object.assign({},o,{[u]:b})},variant:()=>"inherit"===t().variant?void 0:r(),get:s,set:n,classes:o}});t.a=u},81:function(e,t,r){"use strict";r.d(t,"a",function(){return s}),r.d(t,"b",function(){return a}),r.d(t,"c",function(){return o});var s,n=r(5);function a(e){return Object.keys(e).reduce((t,r)=>(t[`aria-${r.toLowerCase()}`]=e[r],t),{})}function o(e){let t=null==e||"string"==typeof e||"boolean"==typeof e||Array.isArray(e)||Object(n.j)(e);try{t=t||Object(n.i)(e)}catch(e){}return t}!function(e){e[e.Down=40]="Down",e[e.End=35]="End",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.Home=36]="Home",e[e.Left=37]="Left",e[e.PageDown=34]="PageDown",e[e.PageUp=33]="PageUp",e[e.Right=39]="Right",e[e.Space=32]="Space",e[e.Tab=9]="Tab",e[e.Up=38]="Up"}(s||(s={}))}}]);
//# sourceMappingURL=progress-8.0.0-beta.12.js.map