/*!
 * 
 * [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([[44],{186:function(e,t,s){e.exports={" _key":"@dojo/widgets/snackbar",root:"snackbar-m__root__3Yd1O",content:"snackbar-m__content__3EJHP",label:"snackbar-m__label__20yv8",actions:"snackbar-m__actions__3zoVQ",open:"snackbar-m__open__3gBsb",success:"snackbar-m__success__HVhu1",error:"snackbar-m__error__233fn",leading:"snackbar-m__leading__1PVlh",stacked:"snackbar-m__stacked__1yV1e"}},187:function(e,t,s){e.exports={" _key":"@dojo/widgets/snackbar",root:"snackbar-m__root__iX5op"}},59:function(e,t,s){"use strict";s.r(t),s.d(t,"Snackbar",function(){return o});var n=s(80),a=s(5),r=s(186),c=s(187);const o=Object(a.a)({theme:n.a}).properties().children()(function({middleware:{theme:e},properties:t,children:s}){const{type:n,open:o,leading:i,stacked:_}=t(),{message:l,actions:m}=s()[0],u=e.classes(r);return Object(a.m)("div",{key:"root",classes:[e.variant(),u.root,c.root,o?u.open:null,n?u[n]:null,i?u.leading:null,_?u.stacked:null]},Object(a.m)("div",{key:"content",classes:u.content},Object(a.m)("div",{key:"label",classes:u.label,role:"status","aria-live":"polite"},l),m&&Object(a.m)("div",{key:"actions",classes:u.actions},m)))});t.default=o},80:function(e,t,s){"use strict";s.d(t,"b",function(){return _});var n=s(5),a=s(83),r=s(12);const c=Object(n.a)({coreTheme:a.a}).properties();function o(e){return`${e.charAt(0).toUpperCase()}${e.slice(1)}`}function i(e){return e&&e.hasOwnProperty("variant")}const _=c(function({middleware:{coreTheme:e},properties:t}){const{variant:s,get:n,set:a,classes:c}=e;return{compose:(s,n,a)=>{const c=function(){const{theme:s}=t();if(s)return s;const n=e.get();return Object(r.c)(n)?{theme:n.theme,variant:n.variant}:n?n.theme:void 0}(),_=s[" _key"],l=n[" _key"],m=Object.keys(s).reduce((e,t)=>" _key"===t?e:(a&&!e[`${a}${o(t)}`]&&(e[`${a}${o(t)}`]=" "),n[t]||(e[t]=" "),e),{" _key":l}),u=e.classes(m),d=e.classes(n);let b=e.classes(s);if(a){const e=Object.keys(Object.assign({},u,d)).reduce((e,t)=>{if(0===t.indexOf(a)&&t!==a){const s=function(e){return`${e.charAt(0).toLowerCase()}${e.slice(1)}`}(t.replace(a,"")),n="string"==typeof d[t]&&d[t].trim(),r="string"==typeof u[t]&&u[t].trim();!n&&r&&(e[s]=`${b[s]} ${r}`),n&&(e[s]=d[t])}return e},{});return b=Object.assign({},b,e),i(c)?{theme:{theme:Object.assign({},c.theme.theme,{[_]:b}),variants:c.theme.variants},variant:c.variant}:Object.assign({},c,{[_]:b})}const k=Object.keys(b).reduce((e,t)=>{if(" _key"===t)return e;const s="string"==typeof d[t]&&d[t].trim(),n="string"==typeof u[t]&&u[t].trim();return s?e[t]=s:n&&(e[t]=`${e[t]} ${n}`),e},Object.assign({},b));return i(c)?{theme:{theme:Object.assign({},c.theme.theme,{[_]:k}),variants:c.theme.variants},variant:c.variant}:Object.assign({},c,{[_]:k})},variant:()=>"inherit"===t().variant?void 0:s(),get:n,set:a,classes:c}});t.a=_}}]);
//# sourceMappingURL=snackbar-8.0.0-beta.12.js.map