Server : LiteSpeed System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : alsaif ( 1057) PHP Version : 7.4.33 Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/alsaif/public_html/media/plg_system_nrframework/js/widgets/video/ |
function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),_setPrototypeOf(t.prototype.constructor=t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var TF_FacebookVideo_Video=function(e){function t(t){t=e.call(this,t)||this;return t.player=null,t}_inheritsLoose(t,e);var o=t.prototype;return o.init=function(){var t=this.initFacebookVideo.bind(this);this.maybeLoadFbRoot(),this.maybeLoadAPIScript(t)},o.initFacebookVideo=function(){var o;this.addFacebookVideo(),"object"==typeof FB&&(FB.XFBML.parse((o=this).video),FB.Event.subscribe("xfbml.ready",function(t){var e=o.video.id+"_"+o.video.querySelector(".tf-video-embed").dataset.videoId;"video"===t.type&&e===t.id&&(o.player=t.instance)}))},o.pause=function(){this.player&&this.player.pause()},o.maybeLoadFbRoot=function(){var t;document.getElementById("fb-root")||((t=document.createElement("div")).id="fb-root",document.body.appendChild(t))},o.maybeLoadAPIScript=function(t){var e;document.querySelector(".tf-fb-sdk-api-script")?t&&t():((e=document.createElement("script")).className="tf-fb-sdk-api-script",e.id="tf-fb-sdk-api-script",e.async=!0,e.src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2",t&&(e.onload=t),(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t))},o.addFacebookVideo=function(){var t='\n\t\t\t<div\n\t\t\t\tclass="fb-video"\n\t\t\t\tid="'+this.video.id+"_"+this.dataset.videoId+'"\n\t\t\t\tdata-href="'+this.dataset.videoId+'"\n\t\t\t\tdata-allowfullscreen="'+this.dataset.videoFs+'"\n\t\t\t\tdata-autoplay="'+this.dataset.videoAutoplay+'"\n\t\t\t\tdata-width="'+this.dataset.videoWidth+'"\n\t\t\t\tdata-show-text="'+this.dataset.videoShowText+'"\n\t\t\t\tdata-show-captions="'+this.dataset.videoShowCaptions+'"\n\t\t\t\tdata-lazy="false"\n\t\t\t\t>\n\t\t\t</div>\n\t\t';this.videoElement.innerHTML=t},t}(TF_Video);