/*!
 * 
 * [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([[3],{114:function(e,t,a){e.exports={" _key":"@dojo/widgets/avatar",root:"avatar-m__root__3K9z0",avatarColorSecondary:"avatar-m__avatarColorSecondary__1482_",avatarColor:"avatar-m__avatarColor__1r5W-",avatarOutline:"avatar-m__avatarOutline__1VuAA",small:"avatar-m__small__2yQZb",medium:"avatar-m__medium__8xlzj",large:"avatar-m__large__2yM2d",circle:"avatar-m__circle__ElfyL",square:"avatar-m__square__37eQa",rounded:"avatar-m__rounded__RpRws"}},33:function(e,t,a){"use strict";a.r(t),a.d(t,"Avatar",function(){return o});var r=a(5),n=a(80),s=a(114);const o=Object(r.a)({theme:n.a}).properties()(function({middleware:{theme:e},properties:t,children:a}){const n=e.classes(s),{secondary:o,outline:i,src:c,alt:_,type:m="circle",size:u="medium"}=t();return Object(r.m)("div",{key:"root",role:c&&"image","aria-label":_,classes:[e.variant(),n.root,o?n.avatarColorSecondary:n.avatarColor,i&&n.avatarOutline,n[u],n[m]],styles:c?{backgroundImage:`url(${c})`}:{}},a())});t.default=o},80:function(e,t,a){"use strict";a.d(t,"b",function(){return _});var r=a(5),n=a(83),s=a(12);const o=Object(r.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 _=o(function({middleware:{coreTheme:e},properties:t}){const{variant:a,get:r,set:n,classes:o}=e;return{compose:(a,r,n)=>{const o=function(){const{theme:a}=t();if(a)return a;const r=e.get();return Object(s.c)(r)?{theme:r.theme,variant:r.variant}:r?r.theme:void 0}(),_=a[" _key"],m=r[" _key"],u=Object.keys(a).reduce((e,t)=>" _key"===t?e:(n&&!e[`${n}${i(t)}`]&&(e[`${n}${i(t)}`]=" "),r[t]||(e[t]=" "),e),{" _key":m}),l=e.classes(u),v=e.classes(r);let d=e.classes(a);if(n){const e=Object.keys(Object.assign({},l,v)).reduce((e,t)=>{if(0===t.indexOf(n)&&t!==n){const a=function(e){return`${e.charAt(0).toLowerCase()}${e.slice(1)}`}(t.replace(n,"")),r="string"==typeof v[t]&&v[t].trim(),s="string"==typeof l[t]&&l[t].trim();!r&&s&&(e[a]=`${d[a]} ${s}`),r&&(e[a]=v[t])}return e},{});return d=Object.assign({},d,e),c(o)?{theme:{theme:Object.assign({},o.theme.theme,{[_]:d}),variants:o.theme.variants},variant:o.variant}:Object.assign({},o,{[_]:d})}const p=Object.keys(d).reduce((e,t)=>{if(" _key"===t)return e;const a="string"==typeof v[t]&&v[t].trim(),r="string"==typeof l[t]&&l[t].trim();return a?e[t]=a:r&&(e[t]=`${e[t]} ${r}`),e},Object.assign({},d));return c(o)?{theme:{theme:Object.assign({},o.theme.theme,{[_]:p}),variants:o.theme.variants},variant:o.variant}:Object.assign({},o,{[_]:p})},variant:()=>"inherit"===t().variant?void 0:a(),get:r,set:n,classes:o}});t.a=_}}]);
//# sourceMappingURL=avatar-8.0.0-beta.12.js.map