(this.webpackJsonpstreamlit_component_template=this.webpackJsonpstreamlit_component_template||[]).push([[0],{41:function(e,t,o){"use strict";o.r(t);var r=o(1),a=o.n(r),n=o(5),i=o.n(n),c=o(20),l=o(59),s=o(62),d=o(9),m=o(61),p=o(23),h=o.n(p),f=o(6),u=Object(l.a)(Object(s.a)({root:{fontFamily:function(e){var t=e.theme;return null===t||void 0===t?void 0:t.font},backgroundColor:function(e){var t=e.theme;return null===t||void 0===t?void 0:t.secondaryBackgroundColor},display:"flex",flexDirection:"column",alignItems:"center",padding:16},header:{width:"100%",textAlign:"left",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},container:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:"100%"},primary:{color:function(e){var t=e.theme;return null===t||void 0===t?void 0:t.primaryColor},fontWeight:600,fontSize:"".concat(12,"vw"),maxWidth:"100%",textTransform:"uppercase",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},secondary:{color:function(e){var t=e.theme;return Object(d.a)((null===t||void 0===t?void 0:t.primaryColor)||"#333",.3)}},tooltip:{margin:0,fontSize:16}}),{name:"FlashCard"}),v=Object(c.b)((function(e){var t,o=e.args,a=e.width,n=o,i=n.title,l=n.primaryText,s=n.secondaryText,d=n.aspectRatio,p=void 0===d?[16,9]:d,v=n.formatter,j=void 0===v?"0,0":v,x=u(e),b=a*p[1]*1/p[0];return Object(r.useEffect)((function(){c.a.setFrameHeight(b),c.a.setComponentValue([a,b])}),[a,b]),Object(f.jsxs)("div",{className:x.root,style:{height:b},children:[Object(f.jsx)("header",{className:x.header,children:i}),Object(f.jsxs)("div",{className:x.container,children:[Object(f.jsx)(m.a,{classes:{tooltip:x.tooltip},placement:"top",interactive:!0,leaveDelay:1e3,arrow:!0,title:s?"".concat(l," ").concat(s):l,children:Object(f.jsx)("div",{className:x.primary,children:(t=l,isNaN(parseFloat(t))?t:h()(parseFloat(t)).format(j))})}),s&&Object(f.jsx)("div",{className:x.secondary,children:s})]})]})}));i.a.render(Object(f.jsx)(a.a.StrictMode,{children:Object(f.jsx)(v,{})}),document.getElementById("root"))}},[[41,1,2]]]);
//# sourceMappingURL=main.ef61fddc.chunk.js.map