/*!
 * 
 * [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([[23,7],{123:function(e,t,a){e.exports={" _key":"@dojo/widgets/card",root:"card-m__root__A3YnD",actions:"card-m__actions__1s5LT",actionButtons:"card-m__actionButtons__2kXQ9",actionIcons:"card-m__actionIcons__1XRrV",primary:"card-m__primary__21gf8",content:"card-m__content__2pNIG",contentWrapper:"card-m__contentWrapper__3dgqE",header:"card-m__header__3YMQC",media:"card-m__media__3xCo8",mediaSquare:"card-m__mediaSquare__hvl_6",media16by9:"card-m__media16by9__3O5nL",titleWrapper:"card-m__titleWrapper__367rH",title:"card-m__title__qQawm",subtitle:"card-m__subtitle__75XFB",outlined:"card-m__outlined__2kcx5",textWrapper:"card-m__textWrapper__3Bh0k"}},168:function(e,t,a){e.exports={" _key":"@dojo/widgets/header-card",header:"header-card-m__header__OlFFy",headerContent:"header-card-m__headerContent__1V6Dw",avatar:"header-card-m__avatar__suhYT",title:"header-card-m__title__3sLCH",subtitle:"header-card-m__subtitle__1_ozq"}},34:function(e,t,a){"use strict";a.r(t),a.d(t,"Card",function(){return n});var r=a(5),s=a(123),c=a(80);const n=Object(r.a)({theme:c.a}).properties().children()(function({children:e,properties:t,middleware:{theme:a}}){const c=a.classes(s),{onClick:n,mediaSrc:i,mediaTitle:o,square:d,title:_,subtitle:m,kind:l="elevated"}=t(),{header:u,content:h,actionButtons:b,actionIcons:p}=e()[0]||{};return Object(r.m)("div",{key:"root",classes:[a.variant(),c.root,"outlined"===l&&c.outlined]},Object(r.m)("div",{key:"content",classes:[c.content,n?c.primary:null],onclick:()=>n&&n()},u&&Object(r.m)("div",{key:"header",classes:c.header},u),i&&Object(r.m)("div",{title:o,classes:[c.media,d?c.mediaSquare:c.media16by9],styles:{backgroundImage:`url("${i}")`}}),_&&Object(r.m)("div",{classes:c.titleWrapper},Object(r.m)("h2",{classes:c.title},_),m&&Object(r.m)("h3",{classes:c.subtitle},m)),h&&Object(r.m)("div",{classes:c.contentWrapper},h)),(b||p)&&Object(r.m)("div",{key:"actions",classes:c.actions},b&&Object(r.m)("div",{classes:c.actionButtons},b),p&&Object(r.m)("div",{classes:c.actionIcons},p)))});t.default=n},49:function(e,t,a){"use strict";a.r(t),a.d(t,"HeaderCard",function(){return o});var r=a(91),s=a(5),c=a(80),n=a(34),i=a(168);const o=Object(s.a)({theme:c.a}).properties().children()(function({middleware:{theme:e},properties:t,children:a}){const c=e.classes(i),o=t(),{title:d,subtitle:_}=o,m=r.d(o,["title","subtitle"]),[l]=a(),u=void 0===l?{}:l,{avatar:h}=u,b=r.d(u,["avatar"]);return Object(s.m)(n.default,Object.assign({key:"root"},m),Object.assign({header:Object(s.m)("div",{key:"header",classes:c.header},h&&Object(s.m)("div",{classes:c.avatar},h),Object(s.m)("div",{key:"headerContent",classes:c.headerContent},Object(s.m)("h2",{classes:c.title},d),_&&Object(s.m)("h3",{classes:c.subtitle},_)))},b))});t.default=o},80:function(e,t,a){"use strict";a.d(t,"b",function(){return d});var r=a(5),s=a(83),c=a(12);const n=Object(r.a)({coreTheme:s.a}).properties();function i(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:a,get:r,set:s,classes:n}=e;return{compose:(a,r,s)=>{const n=function(){const{theme:a}=t();if(a)return a;const r=e.get();return Object(c.c)(r)?{theme:r.theme,variant:r.variant}:r?r.theme:void 0}(),d=a[" _key"],_=r[" _key"],m=Object.keys(a).reduce((e,t)=>" _key"===t?e:(s&&!e[`${s}${i(t)}`]&&(e[`${s}${i(t)}`]=" "),r[t]||(e[t]=" "),e),{" _key":_}),l=e.classes(m),u=e.classes(r);let h=e.classes(a);if(s){const e=Object.keys(Object.assign({},l,u)).reduce((e,t)=>{if(0===t.indexOf(s)&&t!==s){const a=function(e){return`${e.charAt(0).toLowerCase()}${e.slice(1)}`}(t.replace(s,"")),r="string"==typeof u[t]&&u[t].trim(),c="string"==typeof l[t]&&l[t].trim();!r&&c&&(e[a]=`${h[a]} ${c}`),r&&(e[a]=u[t])}return e},{});return h=Object.assign({},h,e),o(n)?{theme:{theme:Object.assign({},n.theme.theme,{[d]:h}),variants:n.theme.variants},variant:n.variant}:Object.assign({},n,{[d]:h})}const b=Object.keys(h).reduce((e,t)=>{if(" _key"===t)return e;const a="string"==typeof u[t]&&u[t].trim(),r="string"==typeof l[t]&&l[t].trim();return a?e[t]=a:r&&(e[t]=`${e[t]} ${r}`),e},Object.assign({},h));return o(n)?{theme:{theme:Object.assign({},n.theme.theme,{[d]:b}),variants:n.theme.variants},variant:n.variant}:Object.assign({},n,{[d]:b})},variant:()=>"inherit"===t().variant?void 0:a(),get:r,set:s,classes:n}});t.a=d}}]);
//# sourceMappingURL=header-card-8.0.0-beta.12.js.map