{"version":3,"sources":["video_embed.js"],"names":["jQuery","$","$sections","$wrap","$video","this","css","concat","get","videoWidth","height","videoHeight","on","e","playing","toggleClass","resize","window"],"mappings":"aAAAA,OAAQ,SAAWC,GAAnBD,IAAQE,EAAeD,EAAA,uBAUnBC,SAAAA,IACEA,EAAMC,KAAW,WACjB,IAAMC,EAAUH,EAAE,gBAAlBI,MACMC,EAAKL,EAAX,QAAAI,MACAF,EAAMG,IAAK,QAAX,QAJFH,EAAAG,IAAA,QAAA,GAAAC,OAAAH,EAAAI,IAAA,GAAAC,WAAAL,EAAAM,SAAAN,EAAAI,IAAA,GAAAG,YAAA,SANFT,EAAUU,GAAI,mBAAoB,SAAAC,EAAcC,GAC9Cb,EAAEI,MAAMU,YAAa,UAAWD,KAYlCb,EAAG,QAASC,GAAZU,GAA4B,aAAcI,GAC1Cf,EAAGgB,QAASD,OAAQA","file":"video_embed.js","sourcesContent":["jQuery( function ( $ ) {\n\n const $sections = $( 'section.video_embed' );\n\n $sections.on( 'playstatechanged', function ( e, playing ) {\n $(this).toggleClass( 'playing', playing );\n });\n\n // resize width of section-wrap based on video height * ar\n function resize () {\n $sections.each( function () {\n const $wrap = $( '.section-wrap', this );\n const $video = $( 'video', this );\n $wrap.css( 'width', '100%' );\n $wrap.css( 'width', `${ $video.get(0).videoWidth * $video.height()/$video.get(0).videoHeight }px` );\n });\n }\n $( 'video', $sections ).on( 'loadeddata', resize );\n $( window ).resize( resize );\n\n});"]}