(this.webpackJsonpstreamlit_player=this.webpackJsonpstreamlit_player||[]).push([[0],{16:function(e,t,n){e.exports=n(45)},45:function(e,t,n){"use strict";n.r(t);var a=n(2),i=n.n(a),o=n(12),r=n.n(o),c=n(1),l=n(7),u=n(14),s=n.n(u),d=n(15),f=function(e){var t=e.children,n=e.fixedHeight,o=e.onChange,r=Object(a.useState)(null),l=Object(c.a)(r,2),u=l[0],s=l[1],f=Object(a.useCallback)(o,[]);return Object(a.useEffect)((function(){if(f(n||document.body.scrollHeight),!n&&u){var e=new d.a((function(e){var t=e.find((function(e){return e.target===u}));t&&f(t.contentRect.height)}));return e.observe(u),function(){e.disconnect()}}}),[u,n,f]),i.a.createElement("div",{ref:function(e){return s(e)}},t)},g=Object(l.b)((function(e){var t=e.args,n=Object(a.useState)({}),o=Object(c.a)(n,2),r=o[0],u=o[1];return Object(a.useEffect)((function(){var e={};t.events.forEach((function(t){e[t]=function(e){l.a.setComponentValue({name:t,data:e})}})),u(e)}),[t.events]),i.a.createElement(f,{onChange:l.a.setFrameHeight,fixedHeight:t.height},i.a.createElement(s.a,Object.assign({url:t.url,width:"100%",height:t.height||void 0,playing:t.playing||void 0,loop:t.loop||void 0,controls:t.controls||void 0,light:t.light||void 0,volume:t.volume,muted:t.muted||void 0,playbackRate:t.playbackRate,progressInterval:t.progressInterval,playsinline:t.playInline||void 0,config:t.config||void 0},r)))}));r.a.render(i.a.createElement(i.a.StrictMode,null,i.a.createElement(g,null)),document.getElementById("root"))}},[[16,1,2]]]);
//# sourceMappingURL=main.0054d9ad.chunk.js.map