/*!
 * 
 * [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([[50],{195:function(e,t,r){e.exports={" _key":"@dojo/widgets/text",root:"text-m__root__2p2z6",primary:"text-m__primary__1imHj",inverse:"text-m__inverse__3CgZg",xSmall:"text-m__xSmall__3MXBh",small:"text-m__small__3KH8G",medium:"text-m__medium__1UUW9",large:"text-m__large__k0_LH",xLarge:"text-m__xLarge__1uTLo",xxLarge:"text-m__xxLarge__2zh3O",light:"text-m__light__QD2hW",normal:"text-m__normal__sJeOc",heavy:"text-m__heavy__2VJYv"}},196:function(e,t,r){e.exports={" _key":"@dojo/widgets/Text",truncate:"Text-m__truncate__yeE5c",uppercase:"Text-m__uppercase__11_H5"}},64:function(e,t,r){"use strict";r.r(t);var a=r(5),s=r(80),n=r(195),i=r(196);const c=Object(a.a)({theme:s.a}).properties()(function({middleware:{theme:e},properties:t,children:r}){const s=e.classes(n),{as:c="p",truncated:o=!1,size:_="m",inverse:m=!1,uppercase:l=!1,weight:u="normal"}=t();let h=s.medium;switch(_){case"x-small":h=s.xSmall;break;case"small":h=s.small;break;case"large":h=s.large;break;case"x-large":h=s.xLarge;break;case"xx-large":h=s.xxLarge}let g=s.normal;switch(u){case"light":g=s.light;break;case"heavy":g=s.heavy}return Object(a.n)(c,{classes:[e.variant(),s.root,h,g,o&&i.truncate,m&&s.inverse,s.primary,l&&i.uppercase]},r())});t.default=c},80:function(e,t,r){"use strict";r.d(t,"b",function(){return _});var a=r(5),s=r(83),n=r(12);const i=Object(a.a)({coreTheme:s.a}).properties();function c(e){return`${e.charAt(0).toUpperCase()}${e.slice(1)}`}function o(e){return e&&e.hasOwnProperty("variant")}const _=i(function({middleware:{coreTheme:e},properties:t}){const{variant:r,get:a,set:s,classes:i}=e;return{compose:(r,a,s)=>{const i=function(){const{theme:r}=t();if(r)return r;const a=e.get();return Object(n.c)(a)?{theme:a.theme,variant:a.variant}:a?a.theme:void 0}(),_=r[" _key"],m=a[" _key"],l=Object.keys(r).reduce((e,t)=>" _key"===t?e:(s&&!e[`${s}${c(t)}`]&&(e[`${s}${c(t)}`]=" "),a[t]||(e[t]=" "),e),{" _key":m}),u=e.classes(l),h=e.classes(a);let g=e.classes(r);if(s){const e=Object.keys(Object.assign({},u,h)).reduce((e,t)=>{if(0===t.indexOf(s)&&t!==s){const r=function(e){return`${e.charAt(0).toLowerCase()}${e.slice(1)}`}(t.replace(s,"")),a="string"==typeof h[t]&&h[t].trim(),n="string"==typeof u[t]&&u[t].trim();!a&&n&&(e[r]=`${g[r]} ${n}`),a&&(e[r]=h[t])}return e},{});return g=Object.assign({},g,e),o(i)?{theme:{theme:Object.assign({},i.theme.theme,{[_]:g}),variants:i.theme.variants},variant:i.variant}:Object.assign({},i,{[_]:g})}const p=Object.keys(g).reduce((e,t)=>{if(" _key"===t)return e;const r="string"==typeof h[t]&&h[t].trim(),a="string"==typeof u[t]&&u[t].trim();return r?e[t]=r:a&&(e[t]=`${e[t]} ${a}`),e},Object.assign({},g));return o(i)?{theme:{theme:Object.assign({},i.theme.theme,{[_]:p}),variants:i.theme.variants},variant:i.variant}:Object.assign({},i,{[_]:p})},variant:()=>"inherit"===t().variant?void 0:r(),get:a,set:s,classes:i}});t.a=_}}]);
//# sourceMappingURL=text-8.0.0-beta.12.js.map