// Module ID: 14257 // Function ID: 107762 // Name: PLAYER_FUNCTIONS // Dependencies: [] // Exports: MAIN_SCRIPT // Module 14257 (PLAYER_FUNCTIONS) const _module = require(dependencyMap[0]); const _moduleResult = _module(require(dependencyMap[1])); let obj = { 1654717284: "heading-lg/bold", 1318211932: "Expressive buttons", 1548892769: "heading-lg/bold", 1636295552: "Experimental premium buttons", 1318211938: "heading-lg/bold", 1365024866: "Overlay buttons", -765350759: "text-sm/normal", 534408274: "Overlay buttons are meant to be used overlayed on top of an image or background color. They do not change colors with the theme.", 1390895544: "heading-lg/bold", 2137241740: "Custom color icons", 1446748260: "text-sm/normal", setVolume(arg0) { return "player.setVolume(" + arg0 + "); true;"; }, seekToScript(arg0, arg1) { return "player.seekTo(" + arg0 + ", " + arg1 + "); true;"; }, setPlaybackRate(arg0) { return "player.setPlaybackRate(" + arg0 + "); true;"; }, loadPlaylist(playList, arg1, arg2) { let num = arg1; if (!arg1) { num = 0; } let str = "cuePlaylist"; if (arg2) { str = "loadPlaylist"; } let str2 = "undefined"; let str3 = "undefined"; if ("string" === typeof playList) { str3 = `${"\"" + playList}"`; } let str5 = str2; if ("string" === typeof playList) { str5 = "\"undefined\""; } if (Array.isArray(playList)) { str2 = `${"\"" + playList.join(",")}"`; } return "player." + str + "({listType: " + str5 + ", list: " + str3 + ", playlist: " + str2 + ", index: " + num + "}); true;"; }, loadVideoById(videoId, arg1) { let str = "cueVideoById"; if (arg1) { str = "loadVideoById"; } return "player." + str + "({videoId: " + JSON.stringify(videoId) + "}); true;"; } }; obj = {}; _moduleResult.default(obj, require(dependencyMap[2]).PLAY_MODE, obj.playVideo); _moduleResult.default(obj, require(dependencyMap[2]).PAUSE_MODE, obj.pauseVideo); const obj1 = {}; _moduleResult.default(obj1, require(dependencyMap[2]).MUTE_MODE, obj.muteVideo); _moduleResult.default(obj1, require(dependencyMap[2]).UNMUTE_MODE, obj.unMuteVideo); export const PLAYER_FUNCTIONS = obj; export const playMode = obj; export const soundMode = obj1; export const MAIN_SCRIPT = function MAIN_SCRIPT(current, current2, current3, allowWebViewZoom, arg4) { let cc_lang_pref; let color; let controls; let end; let iv_load_policy; let loop; let playerLang; let start; let str = current; ({ end, color, start, playerLang, loop } = current3); let tmp = undefined !== loop; if (tmp) { tmp = loop; } ({ cc_lang_pref, iv_load_policy, controls } = current3); let tmp2 = undefined === controls; if (!tmp2) { tmp2 = controls; } const preventFullScreen = current3.preventFullScreen; let num = 0; if (current3.rel) { num = 1; } let num2 = 0; if (tmp) { num2 = 1; } if (!str) { str = ""; } let num3 = 0; if (tmp2) { num3 = 1; } if (!cc_lang_pref) { cc_lang_pref = ""; } let num4 = 0; if (current3.modestbranding) { num4 = 1; } let num5 = 1; let num6 = 1; if (undefined !== preventFullScreen) { num6 = num5; if (preventFullScreen) { num6 = 0; } } let num7 = 0; if (current3.showClosedCaptions) { num7 = num5; } if ("number" === typeof arg4) { num5 = arg4; } let tmp4; if ("string" === typeof current2) { tmp4 = current2; } let str2; if ("string" === typeof current2) { str2 = "playlist"; } const text = `initial-scale=${num5}`; let text1 = text; if (!allowWebViewZoom) { text1 = `initial-scale=${num5}${", maximum-scale=" + num5}`; } let obj = { end, list: tmp4, start, color, rel_s: num, loop_s: num2, listType: str2 }; let joined; if (Array.isArray(current2)) { joined = current2.join(","); } obj.playlist = joined; obj.videoId_s = str; obj.controls_s = num3; obj.playerLang = playerLang; obj.iv_load_policy = iv_load_policy; obj.contentScale_s = num5; obj.cc_lang_pref_s = cc_lang_pref; obj.allowWebViewZoom = allowWebViewZoom; obj.modestbranding_s = num4; obj.preventFullScreen_s = num6; obj.showClosedCaptions_s = num7; obj = {}; let str5 = ""; let str6 = ""; const text2 = `
`; obj.urlEncodedJSON = encodeURI(JSON.stringify(obj)); return obj; };