!function(s){"use strict";window.BuddyBossThemeElementor={init:function(){this.ignoreFitVids(),this.membersBlock()},ignoreFitVids:function(){s(".elementor-section[data-settings*='background_video_link']").addClass("fitvidsignore"),s(".elementor-widget-video").addClass("fitvidsignore"),s(".elementor-video-container").addClass("fitvidsignore")},membersBlock:function(){var e;s(".elementor-widget-bbp-members .gamipress-buddypress-user-details-listing").length&&(window.BuddyBossThemeElementor.GamiPressWidgetData(),s(document).on("click",".elementor-widget-bbp-members .showGamipressData",function(){s(this).parent().find(".GamiPress-data-popup").addClass("is_active"),s(this).closest(".bb-sticky-sidebar").length&&(e=s(this).closest(".bb-sticky-sidebar").attr("style"),s(this).closest(".bb-sticky-sidebar").attr("style",""),s("body").addClass("hide-overflow"))}),s(document).on("heartbeat-tick",function(){setTimeout(function(){window.BuddyBossThemeElementor.GamiPressWidgetData()},1e3)}),s(".elementor-widget-bbp-members .bb-members .item-options a").on("click",function(){setTimeout(function(){window.BuddyBossThemeElementor.GamiPressWidgetData()},3e3)}),s(document).on("click",".elementor-widget-bbp-members .GamiPress-data-popup .hideGamipressData",function(){s(this).closest(".GamiPress-data-popup").removeClass("is_active"),s(this).closest(".bb-sticky-sidebar").length&&(s(this).closest(".bb-sticky-sidebar").attr("style",e),e="",s("body").removeClass("hide-overflow"))}))},GamiPressWidgetData:function(){s(".elementor-widget-bbp-members .gamipress-buddypress-user-details-listing:not(.is_loaded)").each(function(){""!==s(this).text().trim()&&(s(this).parent().append('<span class="showGamipressData" data-balloon-pos="right" data-balloon="'+bs_data.gamipress_badge_label+'"></span>'),s(this).find("img").length?s(this).parent().find(".showGamipressData").append('<img src="'+s(this).find("img").attr("src")+'"/>'):s(this).parent().find(".showGamipressData").append('<i class="bb-icon-l bb-icon-award"></i>'),s(this).parent().find(".gamipress-buddypress-user-details-listing").wrap('<div class="GamiPress-data-popup"></div>'),s(this).parent().find(".gamipress-buddypress-user-details-listing").append('<i class="bb-icon-l bb-icon-times hideGamipressData"></i>')),s(this).addClass("is_loaded")})}},s(document).on("ready",function(){window.BuddyBossThemeElementor.init()})}(jQuery);