Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/elementor-pro   php

Repository URL to install this package:

Version: 3.2.1 

/ js / social.5de12fdcabc2a791f24f.bundle.min.js

/*! elementor-pro - v3.2.1 - 21-03-2021 */
(self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[]).push([[443],{908:(e,n,o)=>{"use strict";var t=o(7971);o(7394)(n,"__esModule",{value:!0}),n.default=void 0;var a=t(o(1959)),r=t(o(9041)),s=t(o(6700)),i=t(o(4263)),d=t(o(7371)),l=t(o(8537)),u=function(e){(0,d.default)(FacebookHandler,e);var n=(0,l.default)(FacebookHandler);function FacebookHandler(){return(0,a.default)(this,FacebookHandler),n.apply(this,arguments)}return(0,r.default)(FacebookHandler,[{key:"getConfig",value:function getConfig(){return elementorProFrontend.config.facebook_sdk}},{key:"setConfig",value:function setConfig(e,n){elementorProFrontend.config.facebook_sdk[e]=n}},{key:"parse",value:function parse(){FB.XFBML.parse(this.$element[0])}},{key:"loadSDK",value:function loadSDK(){var e=this,n=this.getConfig();n.isLoading||n.isLoaded||(this.setConfig("isLoading",!0),jQuery.ajax({url:"https://connect.facebook.net/"+n.lang+"/sdk.js",dataType:"script",cache:!0,success:function success(){FB.init({appId:n.app_id,version:"v2.10",xfbml:!1}),e.setConfig("isLoaded",!0),e.setConfig("isLoading",!1),elementorFrontend.elements.$document.trigger("fb:sdk:loaded")}}))}},{key:"onInit",value:function onInit(){for(var e,n=this,o=arguments.length,t=new Array(o),a=0;a<o;a++)t[a]=arguments[a];(e=(0,s.default)((0,i.default)(FacebookHandler.prototype),"onInit",this)).call.apply(e,[this].concat(t)),this.loadSDK();var r=this.getConfig();r.isLoaded?this.parse():elementorFrontend.elements.$document.on("fb:sdk:loaded",(function(){return n.parse()}))}}]),FacebookHandler}(elementorModules.frontend.handlers.Base);n.default=u}}]);