/*!
 * 
 * [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([[2,5],{105:function(t,e,n){t.exports={" _key":"@dojo/widgets/button",root:"button-m__root__wCywK",text:"button-m__text__2O-Nc",contained:"button-m__contained__1Zy4W",outlined:"button-m__outlined__1jdFs",popup:"button-m__popup__2Fl0t",disabled:"button-m__disabled__19w7M",icon:"button-m__icon__74zN4",iconOnly:"button-m__iconOnly__3wqUA",label:"button-m__label__3hxN8"}},28:function(t,e,n){"use strict";n.r(e),n.d(e,"Button",function(){return a});var o=n(86),i=n(5),r=n(81),c=n(80),s=n(105);const a=Object(i.a)({focus:o.b,theme:c.b}).properties().children()(function({children:t,id:e,middleware:{focus:n,theme:o},properties:c}){const{aria:a={},disabled:u,widgetId:l,name:d,type:b="button",value:p,onClick:_,onOut:m,onOver:f,onDown:h,onUp:O,onBlur:j,onFocus:v,title:g,kind:y="contained",iconPosition:w="before"}=c(),k=o.classes(s),$=l||`button-${e}`,[x]=t(),{label:P,icon:U}=Object(r.c)(x)?{label:t()}:x,A=U&&!P,E=Object(i.m)("span",{classes:k.icon},U);return Object(i.m)("button",Object.assign({classes:[o.variant(),k.root,u?k.disabled:null,"text"===y?k.text:null,"contained"===y?k.contained:null,"outlined"===y?k.outlined:null,A?k.iconOnly:null],title:g,disabled:u,id:$,focus:n.shouldFocus(),name:d,type:b,value:p,onblur:()=>j&&j(),onclick:t=>{t.stopPropagation(),_&&_()},onfocus:()=>v&&v(),onpointerenter:()=>f&&f(),onpointerleave:()=>m&&m(),onpointerdown:()=>h&&h(),onpointerup:()=>O&&O()},Object(r.b)(a)),U&&"before"===w?E:void 0,P?Object(i.m)("span",{classes:k.label},P):void 0,U&&"after"===w?E:void 0)});e.default=a},44:function(t,e,n){"use strict";n.r(e),n.d(e,"ActionButton",function(){return c});var o=n(5),i=n(28),r=n(80);const c=Object(o.a)({theme:r.a}).properties().children()(function({properties:t,children:e}){return Object(o.m)(i.default,Object.assign({},t(),{variant:"inherit"}),e())});e.default=c},80:function(t,e,n){"use strict";n.d(e,"b",function(){return u});var o=n(5),i=n(83),r=n(12);const c=Object(o.a)({coreTheme:i.a}).properties();function s(t){return`${t.charAt(0).toUpperCase()}${t.slice(1)}`}function a(t){return t&&t.hasOwnProperty("variant")}const u=c(function({middleware:{coreTheme:t},properties:e}){const{variant:n,get:o,set:i,classes:c}=t;return{compose:(n,o,i)=>{const c=function(){const{theme:n}=e();if(n)return n;const o=t.get();return Object(r.c)(o)?{theme:o.theme,variant:o.variant}:o?o.theme:void 0}(),u=n[" _key"],l=o[" _key"],d=Object.keys(n).reduce((t,e)=>" _key"===e?t:(i&&!t[`${i}${s(e)}`]&&(t[`${i}${s(e)}`]=" "),o[e]||(t[e]=" "),t),{" _key":l}),b=t.classes(d),p=t.classes(o);let _=t.classes(n);if(i){const t=Object.keys(Object.assign({},b,p)).reduce((t,e)=>{if(0===e.indexOf(i)&&e!==i){const n=function(t){return`${t.charAt(0).toLowerCase()}${t.slice(1)}`}(e.replace(i,"")),o="string"==typeof p[e]&&p[e].trim(),r="string"==typeof b[e]&&b[e].trim();!o&&r&&(t[n]=`${_[n]} ${r}`),o&&(t[n]=p[e])}return t},{});return _=Object.assign({},_,t),a(c)?{theme:{theme:Object.assign({},c.theme.theme,{[u]:_}),variants:c.theme.variants},variant:c.variant}:Object.assign({},c,{[u]:_})}const m=Object.keys(_).reduce((t,e)=>{if(" _key"===e)return t;const n="string"==typeof p[e]&&p[e].trim(),o="string"==typeof b[e]&&b[e].trim();return n?t[e]=n:o&&(t[e]=`${t[e]} ${o}`),t},Object.assign({},_));return a(c)?{theme:{theme:Object.assign({},c.theme.theme,{[u]:m}),variants:c.theme.variants},variant:c.variant}:Object.assign({},c,{[u]:m})},variant:()=>"inherit"===e().variant?void 0:n(),get:o,set:i,classes:c}});e.a=u},81:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return c});var o,i=n(5);function r(t){return Object.keys(t).reduce((e,n)=>(e[`aria-${n.toLowerCase()}`]=t[n],e),{})}function c(t){let e=null==t||"string"==typeof t||"boolean"==typeof t||Array.isArray(t)||Object(i.j)(t);try{e=e||Object(i.i)(t)}catch(t){}return e}!function(t){t[t.Down=40]="Down",t[t.End=35]="End",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Home=36]="Home",t[t.Left=37]="Left",t[t.PageDown=34]="PageDown",t[t.PageUp=33]="PageUp",t[t.Right=39]="Right",t[t.Space=32]="Space",t[t.Tab=9]="Tab",t[t.Up=38]="Up"}(o||(o={}))}}]);
//# sourceMappingURL=action-button-8.0.0-beta.12.js.map