{"version":3,"file":"TEKsystems.SitecoreXP.VideoModalLightBoxScoreClose.js","names":["define","$","vidscoremodlightclose","Init","document","on","evt","keyCode","each","CloseYouTubeScoreLightBox","this","id","videoid","attr","replace","OpenYouTubeScoreLightBox","autoplay"],"sources":["site/TEKsystems.SitecoreXP.VideoModalLightBoxScoreClose.js"],"mappings":"AAAAA,OAAO,CAAC,WAAW,SAAUC,GAsBrB,OArBJC,sBAAwB,CACpBC,KAAM,WACFF,EAAEG,UAAUC,GAAG,SAAS,SAAUC,GACV,KAAhBA,EAAIC,SACJN,EAAE,qBAAqBO,MAAK,WACxBN,sBAAsBO,0BAA0BC,KAAKC,GACzD,GAER,GACJ,EACAF,0BAA2B,SAAUG,GACjCX,EAAE,IAAMW,GAASC,KAAK,MAAOZ,EAAE,IAAMW,GAASC,KAAK,OAAOC,QAAQ,aAAc,cACpF,EAEAC,yBAA0B,SAAUH,EAASI,GAC3B,IAAXA,GACHf,EAAE,IAAMW,GAASC,KAAK,MAAOZ,EAAE,IAAMW,GAASC,KAAK,OAAOC,QAAQ,aAAc,YAAcE,GAElG,GAGOd,qBACX","sourcesContent":["define([\"jquery\"], function ($) {\r\n vidscoremodlightclose = {\r\n Init: function () {\r\n $(document).on('keyup', function (evt) {\r\n if (evt.keyCode === 27) {\r\n $('.yt_player_iframe').each(function () {\r\n vidscoremodlightclose.CloseYouTubeScoreLightBox(this.id);\r\n });\r\n }\r\n });\r\n },\r\n CloseYouTubeScoreLightBox: function (videoid) {\r\n $(\"#\" + videoid).attr(\"src\", $(\"#\" + videoid).attr(\"src\").replace(\"autoplay=1\", \"autoplay=0\"));\r\n },\r\n\r\n OpenYouTubeScoreLightBox: function (videoid, autoplay) {\r\n if(autoplay===1)\r\n $(\"#\" + videoid).attr(\"src\", $(\"#\" + videoid).attr(\"src\").replace(\"autoplay=0\", \"autoplay=\" + autoplay));\r\n\r\n }\r\n }\r\n\r\n return vidscoremodlightclose;\r\n });\r\n"]}