/*!
 * 
 * [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([[28],{23:function(e,r,i){"use strict";i.r(r),i.d(r,"LoadingIndicator",function(){return s});var t=i(99),a=i(80),c=i(5);const s=Object(c.a)({theme:a.a}).properties()(function({properties:e,middleware:{theme:r}}){const i=r.classes(t),{active:a=!0,type:s="linear"}=e();if("linear"===s)return Object(c.m)("div",{classes:[r.variant(),i.root,!a&&i.inactive,i.linear],role:"progressbar"},Object(c.m)("div",{classes:i.buffer}),a&&Object(c.m)("div",{classes:[i.bar,i.primary]},Object(c.m)("span",{classes:i.inner})));let n;switch(s){case"circular-small":n=t.small;break;case"circular-large":n=t.large;break;case"circular-medium":default:n=t.medium}return Object(c.m)("div",{classes:[r.variant(),i.root,!a&&i.inactive,i.circular,n],role:"progressbar"},a&&Object(c.m)("div",{classes:i.circularContainer},Object(c.m)("div",{classes:i.spinnerLayer},Object(c.m)("div",{classes:[i.circleClipper,i.circleLeft]},Object(c.m)("svg",{classes:i.circleGraphic,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.m)("circle",{cx:"12",cy:"12",r:"8.75","stroke-dasharray":"54.978","stroke-dashoffset":"27.489","stroke-width":"2.5"}))),Object(c.m)("div",{classes:i.gapPatch},Object(c.m)("svg",{classes:i.circleGraphic,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.m)("circle",{cx:"12",cy:"12",r:"8.75","stroke-dasharray":"54.978","stroke-dashoffset":"27.489","stroke-width":"2"}))),Object(c.m)("div",{classes:[i.circleClipper,i.circleRight]},Object(c.m)("svg",{classes:i.circleGraphic,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.m)("circle",{cx:"12",cy:"12",r:"8.75","stroke-dasharray":"54.978","stroke-dashoffset":"27.489","stroke-width":"2.5"}))))))});r.default=s},80:function(e,r,i){"use strict";i.d(r,"b",function(){return l});var t=i(5),a=i(83),c=i(12);const s=Object(t.a)({coreTheme:a.a}).properties();function n(e){return`${e.charAt(0).toUpperCase()}${e.slice(1)}`}function o(e){return e&&e.hasOwnProperty("variant")}const l=s(function({middleware:{coreTheme:e},properties:r}){const{variant:i,get:t,set:a,classes:s}=e;return{compose:(i,t,a)=>{const s=function(){const{theme:i}=r();if(i)return i;const t=e.get();return Object(c.c)(t)?{theme:t.theme,variant:t.variant}:t?t.theme:void 0}(),l=i[" _key"],d=t[" _key"],_=Object.keys(i).reduce((e,r)=>" _key"===r?e:(a&&!e[`${a}${n(r)}`]&&(e[`${a}${n(r)}`]=" "),t[r]||(e[r]=" "),e),{" _key":d}),m=e.classes(_),g=e.classes(t);let p=e.classes(i);if(a){const e=Object.keys(Object.assign({},m,g)).reduce((e,r)=>{if(0===r.indexOf(a)&&r!==a){const i=function(e){return`${e.charAt(0).toLowerCase()}${e.slice(1)}`}(r.replace(a,"")),t="string"==typeof g[r]&&g[r].trim(),c="string"==typeof m[r]&&m[r].trim();!t&&c&&(e[i]=`${p[i]} ${c}`),t&&(e[i]=g[r])}return e},{});return p=Object.assign({},p,e),o(s)?{theme:{theme:Object.assign({},s.theme.theme,{[l]:p}),variants:s.theme.variants},variant:s.variant}:Object.assign({},s,{[l]:p})}const u=Object.keys(p).reduce((e,r)=>{if(" _key"===r)return e;const i="string"==typeof g[r]&&g[r].trim(),t="string"==typeof m[r]&&m[r].trim();return i?e[r]=i:t&&(e[r]=`${e[r]} ${t}`),e},Object.assign({},p));return o(s)?{theme:{theme:Object.assign({},s.theme.theme,{[l]:u}),variants:s.theme.variants},variant:s.variant}:Object.assign({},s,{[l]:u})},variant:()=>"inherit"===r().variant?void 0:i(),get:t,set:a,classes:s}});r.a=l},99:function(e,r,i){e.exports={" _key":"@dojo/widgets/loading-indicator",root:"loading-indicator-m__root__3zBTf",linear:"loading-indicator-m__linear__2Ut7E",circular:"loading-indicator-m__circular__2u77F",inactive:"loading-indicator-m__inactive__YgZhh",buffer:"loading-indicator-m__buffer__qJrL-",bar:"loading-indicator-m__bar__2o6JH",primary:"loading-indicator-m__primary__SBqVC",inner:"loading-indicator-m__inner__212NS",circularContainer:"loading-indicator-m__circularContainer__27vh8",spinnerLayer:"loading-indicator-m__spinnerLayer__fwAYQ",circleClipper:"loading-indicator-m__circleClipper__3m0NB",circleLeft:"loading-indicator-m__circleLeft__fL3WV",circleRight:"loading-indicator-m__circleRight__eqhAq",circleGraphic:"loading-indicator-m__circleGraphic__1sQps",gapPatch:"loading-indicator-m__gapPatch__UwFC6",small:"loading-indicator-m__small__rXCcA",medium:"loading-indicator-m__medium__2P8nl",large:"loading-indicator-m__large__nTLft"}}}]);
//# sourceMappingURL=loading-indicator-8.0.0-beta.12.js.map