var currentPlayAudio=null,AudioWidget={init:function(){var a;$(document).on("click","[data-audio-widget] [data-play-stop]",function(){var t=$(this).closest("[data-audio-widget]"),d=t.attr("data-audio");currentPlayAudio!==d||a.get(0).paused?(a.attr("src",d).get(0).play(),currentPlayAudio=d):a.get(0).pause()}),0===$("[data-audio-width-player]").length&&($("body").append('<audio data-audio-widget-player style="display:none;"></audio>'),a=$("[data-audio-widget-player]"))}};module.exports=AudioWidget;