/*!
 * 
 * [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([[47,45],{128:function(e,t,a){e.exports={" _key":"@dojo/widgets/spacer"}},190:function(e,t,a){e.exports={" _key":"@dojo/widgets/stack",root:"stack-m__root__8KWa6",vertical:"stack-m__vertical__1u4Da",horizontal:"stack-m__horizontal__3M9l7",stretch:"stack-m__stretch__1O8pT",child:"stack-m__child__3GAB4",start:"stack-m__start__16-uO",middle:"stack-m__middle__3GygL",end:"stack-m__end__2AITl",spacer:"stack-m__spacer__13Inn"}},191:function(e,t,a){e.exports={" _key":"@dojo/widgets/stack",vertical:"stack-m__vertical__1OBzQ",horizontal:"stack-m__horizontal__3lFwM",smallSpacing:"stack-m__smallSpacing__RWgZw",mediumSpacing:"stack-m__mediumSpacing__2PuRl",largeSpacing:"stack-m__largeSpacing__Ej7Dt",smallPadding:"stack-m__smallPadding__2Amv0",mediumPadding:"stack-m__mediumPadding__1lmgM",largePadding:"stack-m__largePadding__28Xls"}},31:function(e,t,a){"use strict";a.r(t),a.d(t,"Spacer",function(){return r});var s=a(5);a(128);const r=Object(s.a)({diffProperty:s.d}).properties()(function({children:e,middleware:{diffProperty:t},properties:a}){return t("span",a,(e,t)=>{t.spanCallback&&t.spanCallback(t.span||1)}),e()});t.default=r},61:function(e,t,a){"use strict";a.r(t),a.d(t,"Stack",function(){return l});var s=a(5),r=a(82),c=a(80),n=a(190),i=a(191),o=a(31);a.d(t,"Spacer",function(){return o.Spacer});const l=Object(s.a)({icache:r.b,theme:c.a}).properties()(function({properties:e,middleware:{icache:t,theme:a},children:r}){const{direction:c,align:o,spacing:l,padding:d=!1,stretch:_=!1}=e(),m=a.classes(i);let p,u,g;switch(l){case"small":p=m.smallSpacing;break;case"medium":p=m.mediumSpacing;break;case"large":p=m.largeSpacing}switch(d){case"small":u=m.smallPadding;break;case"medium":u=m.mediumPadding;break;case"large":u=m.largePadding}switch(o){case"start":g=n.start;break;case"middle":g=n.middle;break;case"end":g=n.end}const h=r().map((e,a)=>{(Object(s.j)(e)||Object(s.i)(e))&&(e.properties.spanCallback=(e=>{t.get(`span-${a}`)!==e&&t.set(`span-${a}`,e)}));const r=t.get(`span-${a}`);return r?Object(s.m)("div",{key:a,styles:{flex:`${r}`},classes:[n.spacer]},e):Object(s.m)("div",{key:a,classes:[p,"vertical"===c&&g,n.child]},e)});return Object(s.m)("div",{classes:[a.variant(),"horizontal"===c?m.horizontal:m.vertical,"horizontal"===c?n.horizontal:n.vertical,n.root,"horizontal"===c&&g,u,_&&n.stretch]},h)});t.default=l},80:function(e,t,a){"use strict";a.d(t,"b",function(){return l});var s=a(5),r=a(83),c=a(12);const n=Object(s.a)({coreTheme:r.a}).properties();function i(e){return`${e.charAt(0).toUpperCase()}${e.slice(1)}`}function o(e){return e&&e.hasOwnProperty("variant")}const l=n(function({middleware:{coreTheme:e},properties:t}){const{variant:a,get:s,set:r,classes:n}=e;return{compose:(a,s,r)=>{const n=function(){const{theme:a}=t();if(a)return a;const s=e.get();return Object(c.c)(s)?{theme:s.theme,variant:s.variant}:s?s.theme:void 0}(),l=a[" _key"],d=s[" _key"],_=Object.keys(a).reduce((e,t)=>" _key"===t?e:(r&&!e[`${r}${i(t)}`]&&(e[`${r}${i(t)}`]=" "),s[t]||(e[t]=" "),e),{" _key":d}),m=e.classes(_),p=e.classes(s);let u=e.classes(a);if(r){const e=Object.keys(Object.assign({},m,p)).reduce((e,t)=>{if(0===t.indexOf(r)&&t!==r){const a=function(e){return`${e.charAt(0).toLowerCase()}${e.slice(1)}`}(t.replace(r,"")),s="string"==typeof p[t]&&p[t].trim(),c="string"==typeof m[t]&&m[t].trim();!s&&c&&(e[a]=`${u[a]} ${c}`),s&&(e[a]=p[t])}return e},{});return u=Object.assign({},u,e),o(n)?{theme:{theme:Object.assign({},n.theme.theme,{[l]:u}),variants:n.theme.variants},variant:n.variant}:Object.assign({},n,{[l]:u})}const g=Object.keys(u).reduce((e,t)=>{if(" _key"===t)return e;const a="string"==typeof p[t]&&p[t].trim(),s="string"==typeof m[t]&&m[t].trim();return a?e[t]=a:s&&(e[t]=`${e[t]} ${s}`),e},Object.assign({},u));return o(n)?{theme:{theme:Object.assign({},n.theme.theme,{[l]:g}),variants:n.theme.variants},variant:n.variant}:Object.assign({},n,{[l]:g})},variant:()=>"inherit"===t().variant?void 0:a(),get:s,set:r,classes:n}});t.a=l}}]);
//# sourceMappingURL=stack-8.0.0-beta.12.js.map