/*!
 * 
 * [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([[26],{21:function(e,t,n){"use strict";n.r(t),n.d(t,"Label",function(){return c});var a=n(5),r=n(84),i=n(80),s=n(87),o=n(81);const c=Object(a.a)({theme:i.a}).properties()(function({properties:e,id:t,children:n,middleware:{theme:i}}){const{aria:c={},active:l,disabled:d,focused:u,forId:_,hidden:b,readOnly:m,required:f,secondary:p,valid:v,widgetId:y=`label-${t}`}=e(),h=i.classes(s);return Object(a.m)("label",Object.assign({},Object(o.b)(c),{id:y,classes:[i.variant(),h.root,d?h.disabled:null,u?h.focused:null,!0===v?h.valid:null,!1===v?h.invalid:null,m?h.readonly:null,f?h.required:null,p?h.secondary:null,l?h.active:null,b?r.visuallyHidden:null],for:_}),n())});t.default=c},80:function(e,t,n){"use strict";n.d(t,"b",function(){return l});var a=n(5),r=n(83),i=n(12);const s=Object(a.a)({coreTheme:r.a}).properties();function o(e){return`${e.charAt(0).toUpperCase()}${e.slice(1)}`}function c(e){return e&&e.hasOwnProperty("variant")}const l=s(function({middleware:{coreTheme:e},properties:t}){const{variant:n,get:a,set:r,classes:s}=e;return{compose:(n,a,r)=>{const s=function(){const{theme:n}=t();if(n)return n;const a=e.get();return Object(i.c)(a)?{theme:a.theme,variant:a.variant}:a?a.theme:void 0}(),l=n[" _key"],d=a[" _key"],u=Object.keys(n).reduce((e,t)=>" _key"===t?e:(r&&!e[`${r}${o(t)}`]&&(e[`${r}${o(t)}`]=" "),a[t]||(e[t]=" "),e),{" _key":d}),_=e.classes(u),b=e.classes(a);let m=e.classes(n);if(r){const e=Object.keys(Object.assign({},_,b)).reduce((e,t)=>{if(0===t.indexOf(r)&&t!==r){const n=function(e){return`${e.charAt(0).toLowerCase()}${e.slice(1)}`}(t.replace(r,"")),a="string"==typeof b[t]&&b[t].trim(),i="string"==typeof _[t]&&_[t].trim();!a&&i&&(e[n]=`${m[n]} ${i}`),a&&(e[n]=b[t])}return e},{});return m=Object.assign({},m,e),c(s)?{theme:{theme:Object.assign({},s.theme.theme,{[l]:m}),variants:s.theme.variants},variant:s.variant}:Object.assign({},s,{[l]:m})}const f=Object.keys(m).reduce((e,t)=>{if(" _key"===t)return e;const n="string"==typeof b[t]&&b[t].trim(),a="string"==typeof _[t]&&_[t].trim();return n?e[t]=n:a&&(e[t]=`${e[t]} ${a}`),e},Object.assign({},m));return c(s)?{theme:{theme:Object.assign({},s.theme.theme,{[l]:f}),variants:s.theme.variants},variant:s.variant}:Object.assign({},s,{[l]:f})},variant:()=>"inherit"===t().variant?void 0:n(),get:a,set:r,classes:s}});t.a=l},81:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return s});var a,r=n(5);function i(e){return Object.keys(e).reduce((t,n)=>(t[`aria-${n.toLowerCase()}`]=e[n],t),{})}function s(e){let t=null==e||"string"==typeof e||"boolean"==typeof e||Array.isArray(e)||Object(r.j)(e);try{t=t||Object(r.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"}(a||(a={}))},84:function(e,t,n){e.exports={" _key":"@dojo/widgets/base",visuallyHidden:"base-m__visuallyHidden__1AeWe",focusable:"base-m__focusable__1_qAN",hidden:"base-m__hidden__3QddU"}},87:function(e,t,n){e.exports={" _key":"@dojo/widgets/label",root:"label-m__root__3Kk7r",readonly:"label-m__readonly__2pxUq",invalid:"label-m__invalid__1CZyi",valid:"label-m__valid__2hdFV",required:"label-m__required__2WVo7",disabled:"label-m__disabled__34MEb",focused:"label-m__focused__ISy0H",secondary:"label-m__secondary__37QWK",active:"label-m__active__3MoIi"}}}]);
//# sourceMappingURL=label-8.0.0-beta.12.js.map