/*!
 * 
 * [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([[7],{123:function(e,t,r){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"}},34:function(e,t,r){"use strict";r.r(t),r.d(t,"Card",function(){return c});var a=r(5),s=r(123),n=r(80);const c=Object(a.a)({theme:n.a}).properties().children()(function({children:e,properties:t,middleware:{theme:r}}){const n=r.classes(s),{onClick:c,mediaSrc:i,mediaTitle:o,square:_,title:d,subtitle:m,kind:l="elevated"}=t(),{header:u,content:p,actionButtons:b,actionIcons:h}=e()[0]||{};return Object(a.m)("div",{key:"root",classes:[r.variant(),n.root,"outlined"===l&&n.outlined]},Object(a.m)("div",{key:"content",classes:[n.content,c?n.primary:null],onclick:()=>c&&c()},u&&Object(a.m)("div",{key:"header",classes:n.header},u),i&&Object(a.m)("div",{title:o,classes:[n.media,_?n.mediaSquare:n.media16by9],styles:{backgroundImage:`url("${i}")`}}),d&&Object(a.m)("div",{classes:n.titleWrapper},Object(a.m)("h2",{classes:n.title},d),m&&Object(a.m)("h3",{classes:n.subtitle},m)),p&&Object(a.m)("div",{classes:n.contentWrapper},p)),(b||h)&&Object(a.m)("div",{key:"actions",classes:n.actions},b&&Object(a.m)("div",{classes:n.actionButtons},b),h&&Object(a.m)("div",{classes:n.actionIcons},h)))});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 c=Object(a.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 _=c(function({middleware:{coreTheme:e},properties:t}){const{variant:r,get:a,set:s,classes:c}=e;return{compose:(r,a,s)=>{const c=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"],d=a[" _key"],m=Object.keys(r).reduce((e,t)=>" _key"===t?e:(s&&!e[`${s}${i(t)}`]&&(e[`${s}${i(t)}`]=" "),a[t]||(e[t]=" "),e),{" _key":d}),l=e.classes(m),u=e.classes(a);let p=e.classes(r);if(s){const e=Object.keys(Object.assign({},l,u)).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 u[t]&&u[t].trim(),n="string"==typeof l[t]&&l[t].trim();!a&&n&&(e[r]=`${p[r]} ${n}`),a&&(e[r]=u[t])}return e},{});return p=Object.assign({},p,e),o(c)?{theme:{theme:Object.assign({},c.theme.theme,{[_]:p}),variants:c.theme.variants},variant:c.variant}:Object.assign({},c,{[_]:p})}const b=Object.keys(p).reduce((e,t)=>{if(" _key"===t)return e;const r="string"==typeof u[t]&&u[t].trim(),a="string"==typeof l[t]&&l[t].trim();return r?e[t]=r:a&&(e[t]=`${e[t]} ${a}`),e},Object.assign({},p));return o(c)?{theme:{theme:Object.assign({},c.theme.theme,{[_]:b}),variants:c.theme.variants},variant:c.variant}:Object.assign({},c,{[_]:b})},variant:()=>"inherit"===t().variant?void 0:r(),get:a,set:s,classes:c}});t.a=_}}]);
//# sourceMappingURL=card-8.0.0-beta.12.js.map