(this.webpackJsonpstreamlit_component_template=this.webpackJsonpstreamlit_component_template||[]).push([[0],{41:function(e,t,o){"use strict";o.r(t);var n=o(1),i=o.n(n),a=o(5),r=o.n(a),c=o(20),l=o(59),s=o(62),d=o(9),m=o(61),p=o(23),f=o.n(p),h=o(6),v=Object(l.a)(Object(s.a)({root:{fontFamily:function(e){var t=e.theme;return null===t||void 0===t?void 0:t.font},display:"flex",flexDirection:"column",alignItems:"center"},header:{fontSize:"1.25rem",fontWeight:500,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.textColor},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.d)((null===t||void 0===t?void 0:t.textColor)||"#333",.3)}},tooltip:{margin:0,fontSize:16}}),{name:"FlashCard"}),u=Object(c.b)((function(e){var t,o=e.args,i=e.width,a=o,r=a.primaryText,l=a.secondaryText,s=a.aspectRatio,d=void 0===s?[16,9]:s,p=a.formatter,u=void 0===p?"0,0":p,x=v(e),j=i*d[1]*1/d[0];return Object(n.useEffect)((function(){c.a.setFrameHeight(j),c.a.setComponentValue([i,j])}),[i,j]),Object(h.jsx)("div",{className:x.root,style:{height:j},children:Object(h.jsxs)("div",{className:x.container,children:[Object(h.jsx)(m.a,{classes:{tooltip:x.tooltip},placement:"top",interactive:!0,leaveDelay:1e3,arrow:!0,title:l?"".concat(r," ").concat(l):r,children:Object(h.jsx)("div",{className:x.primary,children:(t=r,isNaN(parseFloat(t))?t:f()(parseFloat(t)).format(u))})}),l&&Object(h.jsx)("div",{className:x.secondary,children:l})]})})}));r.a.render(Object(h.jsx)(i.a.StrictMode,{children:Object(h.jsx)(u,{})}),document.getElementById("root"))}},[[41,1,2]]]);
//# sourceMappingURL=main.c8e5baba.chunk.js.map