/*!
 * 
 * [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([[22],{167:function(e,t,s){e.exports={" _key":"@dojo/widgets/header",root:"header-m__root__1Wu1d",row:"header-m__row__3e0zv",primary:"header-m__primary__2eL4c",secondary:"header-m__secondary__keWQu",sticky:"header-m__sticky__3Rxub",leading:"header-m__leading__EGBZf",title:"header-m__title__3AvG7",actions:"header-m__actions__3MCfn",action:"header-m__action__1tpKL",trailing:"header-m__trailing__1qern",spacer:"header-m__spacer__3HogK"}},48:function(e,t,s){"use strict";s.r(t),s.d(t,"Header",function(){return n});var r=s(167),a=s(80),i=s(5);const n=Object(i.a)({theme:a.a}).properties().children()(function({children:e,properties:t,middleware:{theme:s}}){const a=s.classes(r),{sticky:n}=t(),{actions:c,leading:o,title:d,trailing:_}=e()[0];return Object(i.m)("header",{key:"header",classes:[s.variant(),n?a.spacer:void 0]},Object(i.m)("div",{classes:[a.root,n&&a.sticky],key:"root"},Object(i.m)("div",{classes:a.row},Object(i.m)("div",{classes:a.primary,key:"primary"},o&&Object(i.m)("div",{classes:a.leading},o),Object(i.m)("div",{classes:a.title,key:"title"},d&&d)),Object(i.m)("div",{classes:a.secondary,key:"secondary"},Object(i.m)("nav",{classes:a.actions,key:"actions"},c&&(Array.isArray(c)?c:[c]).map(e=>Object(i.m)("div",{classes:a.action},e))),_&&Object(i.m)("div",{classes:a.trailing},_)))))});t.default=n},80:function(e,t,s){"use strict";s.d(t,"b",function(){return d});var r=s(5),a=s(83),i=s(12);const n=Object(r.a)({coreTheme:a.a}).properties();function c(e){return`${e.charAt(0).toUpperCase()}${e.slice(1)}`}function o(e){return e&&e.hasOwnProperty("variant")}const d=n(function({middleware:{coreTheme:e},properties:t}){const{variant:s,get:r,set:a,classes:n}=e;return{compose:(s,r,a)=>{const n=function(){const{theme:s}=t();if(s)return s;const r=e.get();return Object(i.c)(r)?{theme:r.theme,variant:r.variant}:r?r.theme:void 0}(),d=s[" _key"],_=r[" _key"],m=Object.keys(s).reduce((e,t)=>" _key"===t?e:(a&&!e[`${a}${c(t)}`]&&(e[`${a}${c(t)}`]=" "),r[t]||(e[t]=" "),e),{" _key":_}),l=e.classes(m),h=e.classes(r);let u=e.classes(s);if(a){const e=Object.keys(Object.assign({},l,h)).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,"")),r="string"==typeof h[t]&&h[t].trim(),i="string"==typeof l[t]&&l[t].trim();!r&&i&&(e[s]=`${u[s]} ${i}`),r&&(e[s]=h[t])}return e},{});return u=Object.assign({},u,e),o(n)?{theme:{theme:Object.assign({},n.theme.theme,{[d]:u}),variants:n.theme.variants},variant:n.variant}:Object.assign({},n,{[d]:u})}const y=Object.keys(u).reduce((e,t)=>{if(" _key"===t)return e;const s="string"==typeof h[t]&&h[t].trim(),r="string"==typeof l[t]&&l[t].trim();return s?e[t]=s:r&&(e[t]=`${e[t]} ${r}`),e},Object.assign({},u));return o(n)?{theme:{theme:Object.assign({},n.theme.theme,{[d]:y}),variants:n.theme.variants},variant:n.variant}:Object.assign({},n,{[d]:y})},variant:()=>"inherit"===t().variant?void 0:s(),get:r,set:a,classes:n}});t.a=d}}]);
//# sourceMappingURL=header-8.0.0-beta.12.js.map