PageSourceSearch

https://snippetandink.com/wp-content/litespeed/js/8b75ce16433bbc9fc0fb54091ae0d285.js?ver=38a1f

js snippetandink.com collected 2026-10-03 21:21:56 UTC 51,985 bytes, 1,070 lines download raw bytes

1/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
2"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window}
2,"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={}
2,r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});
3;(function($){if(typeof feastJSData!=='undefined'&&feastJSData.yoastFaqEnabled){$('.
3schema-faq-question').on('click',function(){$(this).toggleClass('active',!$(this).hasClass('active'))})}
4$('.menu-item-has-children button').click(function(){$(this).parent('.menu-item').toggleClass('open')})})(jQuery)
5;document.addEventListener('DOMContentLoaded',function(){function activate(el){el.classList.add('ydrc-visible');el.querySelectorAll('.ydrc-arrow').forEach(a=>a.classList.add('ydrc-pulse'))}
6if(!('IntersectionObserver'in window)){document.querySelectorAll('.ydrc-related-wrapper').forEach(activate);return}
7const io=new IntersectionObserver((entries,obs)=>{entries.forEach(e=>{if(e.isIntersecting){activate(e.target);obs.unobserve(e.target)}})},{threshold:0.2});document.querySelectorAll('.ydrc-related-wrapper').forEach(w=>io.observe(w))})
8;window.socialWarfare = window.socialWarfare || {};
9( function ( window, $ ) {
10	'use strict';
11	if ( typeof $ !== 'function' ) {
12		if ( typeof jQuery === 'function' ) {
13			var $ = jQuery;
14		} else {
15			console.log(
16				'Social Warfare requires jQuery, or $ as an alias of jQuery. Please make sure your theme provides access to jQuery before activating Social Warfare.'
17			);
18			return;
19		}
20	}
21	function isString( maybeString ) {
22		return typeof maybeString === 'string' && maybeString.length > 0;
23	}
24	socialWarfare.paddingTop = parseInt( $( 'body' ).css( 'padding-top' ) );
25	socialWarfare.paddingBottom = parseInt(
26		$( 'body' ).css( 'padding-bottom' )
27	);
28	socialWarfare.initPlugin = function () {
29		$( 'body' ).css( {
30			paddingTop: socialWarfare.paddingTop,
31			paddingBottom: socialWarfare.paddingBottom,
32		} );
33		socialWarfare.establishPanels();
34		socialWarfare.establishBreakpoint();
35		if (
36			! socialWarfare.panels.staticHorizontal &&
37			! socialWarfare.panels.floatingSide &&
38			! socialWarfare.panels.floatingHorizontal
39		) {
40			return;
41		}
42		socialWarfare.emphasizeButtons();
43		socialWarfare.createFloatHorizontalPanel();
44		socialWarfare.positionFloatSidePanel();
45		socialWarfare.activateHoverStates();
46		socialWarfare.handleButtonClicks();
47		socialWarfare.updateFloatingButtons();
48		socialWarfare.closeLightboxOverlay();
49		socialWarfare.preloadPinterestImages();
50		if ( typeof swpPinIt === 'object' && swpPinIt.enabled == true ) {
51			socialWarfare.createHoverSaveButton();
52			socialWarfare.triggerImageListeners();
53		}
54		setTimeout( function () {
55			socialWarfare.checkListeners( 0, 5 );
56		}, 2e3 );
57		let time = Date.now();
58		const scrollDelay = 50;
59		$( window ).on( 'scroll', function () {
60			if ( time + scrollDelay - Date.now() < 0 ) {
61				socialWarfare.updateFloatingButtons();
62				time = Date.now();
63			}
64		} );
65	};
66	let resizeWait;
67	socialWarfare.onWindowResize = function () {
68		clearTimeout( resizeWait );
69		resizeWait = setTimeout( socialWarfare.initPlugin, 100 );
70	};
71	socialWarfare.establishPanels = function () {
72		socialWarfare.panels = {
73			staticHorizontal: null,
74			floatingSide: null,
75			floatingHorizontal: null,
76		};
77		socialWarfare.panels.staticHorizontal = $( '.swp_social_panel' ).not(
78			'.swp_social_panelSide'
79		);
80		socialWarfare.panels.floatingSide = $( '.swp_social_panelSide' );
81		return socialWarfare.panels;
82	};
83	socialWarfare.emphasizeButtons = function () {
84		if ( typeof socialWarfare.variables.emphasizeIcons === 'undefined' ) {
85			return;
86		}
87		if ( socialWarfare.isMobile() ) {
88			return;
89		}
90		jQuery( '.swp_social_panel:not(.swp_social_panelSide)' ).each(
91			function ( i, panel ) {
92				jQuery( panel )
93					.find( '.nc_tweetContainer:not(.total_shares)' )
94					.each( function ( index, button ) {
95						if ( index < socialWarfare.variables.emphasizeIcons ) {
96							const shareWidth = jQuery( button )
97								.find( '.swp_share' )
98								.width();
99							const iconWidth = jQuery( button )
100								.find( 'i.sw' )
101								.outerWidth();
102							const iconTextWidth = shareWidth + iconWidth + 35;
103							const containerWidth = jQuery( button ).width();
104							const change =
105								1 + ( shareWidth + 35 ) / containerWidth;
106							if ( change < 2 ) {
107								jQuery( button )
108									.addClass( 'swp_nohover' )
109									.css( { flex: '2 1 0%' } )
110									.find( '.iconFiller' )
111									.width( iconTextWidth );
112							} else {
113								jQuery( button )
114									.addClass( 'swp_nohover' )
115									.css( { flex: change + ' 1 0%' } )
116									.find( '.iconFiller' )
117									.width( iconTextWidth );
118							}
119						}
120					} );
121			}
122		);
123	};
124	socialWarfare.activateHoverStates = function () {
125		socialWarfare.trigger( 'pre_activate_buttons' );
126		$(
127			'.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer'
128		).on( 'mouseenter', function () {
129			if ( $( this ).hasClass( 'swp_nohover' ) ) {
130				return;
131			}
132			socialWarfare.resetStaticPanel();
133			const termWidth = $( this ).find( '.swp_share' ).outerWidth();
134			const iconWidth = $( this ).find( 'i.sw' ).outerWidth();
135			const containerWidth = $( this ).width();
136			const change = 1 + ( termWidth + 35 ) / containerWidth;
137			$( this )
138				.find( '.iconFiller' )
139				.width( termWidth + iconWidth + 25 + 'px' );
140			$( this ).css( 'flex', change + ' 1 0%' );
141		} );
142		$( '.swp_social_panel:not(.swp_social_panelSide)' ).on(
143			'mouseleave',
144			socialWarfare.resetStaticPanel
145		);
146	};
147	socialWarfare.resetStaticPanel = function () {
148		$(
149			'.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer:not(.swp_nohover) .iconFiller'
150		).removeAttr( 'style' );
151		$(
152			'.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer:not(.swp_nohover)'
153		).removeAttr( 'style' );
154	};
155	socialWarfare.handleButtonClicks = function () {
156		$( '.nc_tweet, a.swp_CTT' ).off( 'click' );
157		$( '.nc_tweet, a.swp_CTT' ).on( 'click', function ( event ) {
158			if ( $( this ).parent( '.swp_print' ).length > 0 ) {
159				event.preventDefault();
160				window.print();
161				return;
162			}
163			if (
164				true === $( this ).hasClass( 'pinterest_multi_image_select' )
165			) {
166				event.preventDefault();
167				socialWarfare.openMultiPinterestOverlay( $( this ) );
168				return;
169			}
170			if ( $( this ).parent( '.swp_more' ).length > 0 ) {
171				event.preventDefault();
172				socialWarfare.openMoreOptions( $( this ) );
173				return;
174			}
175			if ( $( this ).hasClass( 'noPop' ) ) {
176				return event;
177			}
178			if (
179				'undefined' === typeof $( this ).data( 'link' ) &&
180				false === $( this ).is( '.swp-hover-pin-button' )
181			) {
182				return event;
183			}
184			event.preventDefault();
185			const href = $( this ).data( 'link' ).replace( '’', "'" );
186			let height, width, top, left, instance, windowAttributes, network;
187			height = 270;
188			width = 500;
189			if (
190				$( this ).is(
191					'.swp_pinterest a, .buffer_link a, .flipboard a, .swp-hover-pin-button'
192				)
193			) {
194				height = 550;
195				width = 775;
196			}
197			if ( $( this ).hasClass( 'nc_tweet' ) ) {
198				network = $( this )
199					.parents( '.nc_tweetContainer' )
200					.data( 'network' );
201			} else if ( $( this ).hasClass( 'swp_CTT' ) ) {
202				network = 'ctt';
203			}
204			top = window.screenY + ( window.innerHeight - height ) / 2;
205			left = window.screenX + ( window.innerWidth - width ) / 2;
206			windowAttributes =
207				'height=' +
208				height +
209				',width=' +
210				width +
211				',top=' +
212				top +
213				',left=' +
214				left;
215			instance = window.open( href, network, windowAttributes );
216			socialWarfare.trackClick( network );
217		} );
218	};
219	socialWarfare.openMultiPinterestOverlay = function ( element ) {
220		if ( $( '.pinterest-overlay' ).length > 0 ) {
221			$( '.pinterest-overlay' ).fadeIn();
222			$( '.swp-lightbox-inner' ).scrollTop( 0 );
223			return;
224		}
225		let html = '';
226		const pin_data = element.data( 'pins' );
227		let pin_images = '';
228		pin_data.images.forEach( function ( image ) {
229			const share_url =
230				'https://pinterest.com/pin/create/button/?url=' +
231				pin_data.url +
232				'&media=' +
233				image +
234				'&description=' +
235				encodeURIComponent( pin_data.description );
236			let pin_html = '';
237			pin_html += '<div class="pin_image_select_wrapper">';
238			pin_html += '<img class="pin_image" src="' + image + '" />';
239			pin_html +=
240				'<a class="swp-hover-pin-button" href="' +
241				share_url +
242				'" data-link="' +
243				share_url +
244				'">Save</a>';
245			pin_html += '</div>';
246			pin_images += pin_html;
247		} );
248		html +=
249			'<div class="swp-lightbox-wrapper pinterest-overlay"><div class="swp-lightbox-inner">';
250		html += '<i class="sw swp_pinterest_icon top_icon"></i>';
251		html += '<div class="swp-lightbox-close"></div>';
252		html += '<h5>Which image would you like to pin?</h5>';
253		html += '<div class="pin_images_wrapper">';
254		html += pin_images;
255		html += '</div>';
256		html += socialWarfare.buildPoweredByLink();
257		html += '</div></div>';
258		$( 'body' ).append( html );
259		$( '.pinterest-overlay' ).hide().fadeIn();
260		socialWarfare.handleButtonClicks();
261		let max_height = 999999;
262		let iteration = 0,
263			images = $( '.pinterest-overlay .pin_images_wrapper img' );
264		images.load( function () {
265			if ( ++iteration === images.length ) {
266				images
267					.each( function () {
268						if ( $( this ).height() < max_height ) {
269							max_height = $( this ).height();
270						}
271					} )
272					.promise()
273					.done( function () {
274						images.height( max_height + 'px' );
275						const number_of_rows = Math.ceil( images.length / 4 );
276						for ( i = 0; i < number_of_rows; i++ ) {
277							const current_row_images = images.slice(
278								i * 4,
279								i * 4 + 4
280							);
281							var max_allowable_width =
282								current_row_images.length / 4;
283							var total_width = $(
284								'.pin_images_wrapper'
285							).width();
286							var total_images_width = 0;
287							current_row_images.each( function () {
288								total_images_width =
289									total_images_width + $( this ).width();
290							} );
291							var ratio = total_width / total_images_width;
292							current_row_images.each( function () {
293								const new_width =
294									( ( $( this ).width() * ratio ) /
295										total_width ) *
296										100 *
297										max_allowable_width -
298									1;
299								$( this )
300									.parent()
301									.width( new_width + '%' );
302								$( this ).height( 'auto' );
303							} );
304							var height = current_row_images.first().height();
305							current_row_images.each( function () {
306								$( this )
307									.width( $( this ).width() )
308									.height( height );
309							} );
310						}
311					} );
312			}
313		} );
314	};
315	socialWarfare.buildPoweredByLink = function () {
316		let html = '';
317		if ( true === socialWarfare.variables.powered_by_toggle ) {
318			let anchor_tag_open = '';
319			let anchor_tag_close = '';
320			if ( false !== socialWarfare.variables.affiliate_link ) {
321				anchor_tag_open =
322					'<a href="' +
323					socialWarfare.variables.affiliate_link +
324					'" target="_blank">';
325				anchor_tag_close = '</a>';
326			}
327			html =
328				'<div class="swp_powered_by">' +
329				anchor_tag_open +
330				'<span>Powered by</span> <img src="/wp-content/plugins/social-warfare/assets/images/admin-options-page/social-warfare-pro-light.png">' +
331				anchor_tag_close +
332				'</div>';
333		}
334		return html;
335	};
336	socialWarfare.preloadPinterestImages = function () {
337		if ( $( '.pinterest_multi_image_select' ).length < 1 ) {
338			return;
339		}
340		const pin_data = $( '.pinterest_multi_image_select' ).data( 'pins' );
341		pin_data.images.forEach( function ( image_url ) {
342			const image_object = new Image();
343			image_object.src = image_url;
344		} );
345	};
346	socialWarfare.openMoreOptions = function ( element ) {
347		if ( $( '.swp-more-wrapper' ).length > 0 ) {
348			$( '.swp-more-wrapper' ).fadeIn();
349			return;
350		}
351		const post_id = element
352			.parents( '.swp_social_panel' )
353			.data( 'post-id' );
354		const data = {
355			action: 'swp_buttons_panel',
356			post_id,
357			_ajax_nonce: swp_nonce,
358		};
359		jQuery.post( swp_ajax_url, data, function ( response ) {
360			$( 'body' ).append( response );
361			$( '.swp-lightbox-wrapper' ).hide().fadeIn();
362			socialWarfare.activateHoverStates();
363			socialWarfare.handleButtonClicks();
364		} );
365	};
366	socialWarfare.closeLightboxOverlay = function () {
367		$( 'body' ).on( 'click', '.swp-lightbox-close', function () {
368			$( '.swp-lightbox-wrapper' ).fadeOut();
369		} );
370		$( document ).on( 'keyup', function ( e ) {
371			if ( e.key === 'Escape' ) {
372				$( '.swp-lightbox-wrapper' ).fadeOut();
373			}
374		} );
375	};
376	socialWarfare.createFloatHorizontalPanel = function () {
377		if ( ! socialWarfare.panels.staticHorizontal.length ) {
378			return;
379		}
380		const floatLocation =
381			socialWarfare.panels.staticHorizontal.data( 'float' );
382		const mobileFloatLocation =
383			socialWarfare.panels.staticHorizontal.data( 'float-mobile' );
384		const backgroundColor =
385			socialWarfare.panels.staticHorizontal.data( 'float-color' );
386		const wrapper = $(
387			'<div class="nc_wrapper swp_floating_horizontal_wrapper" style="background-color:' +
388				backgroundColor +
389				'"></div>'
390		);
391		let barLocation = '';
392		if ( $( '.nc_wrapper' ).length ) {
393			$( '.nc_wrapper' ).remove();
394		}
395		if ( $( '.swp_floating_horizontal_wrapper' ).length ) {
396			$( '.swp_floating_horizontal_wrapper' ).remove();
397		}
398		socialWarfare.clearBeforeHeaderOffset();
399		if (
400			floatLocation != 'top' &&
401			floatLocation != 'bottom' &&
402			mobileFloatLocation != 'top' &&
403			mobileFloatLocation != 'bottom' &&
404			mobileFloatLocation != 'before_header'
405		) {
406			return;
407		}
408		if ( socialWarfare.isMobile() ) {
409			barLocation = mobileFloatLocation;
410		} else {
411			barLocation = floatLocation;
412		}
413		if ( 'before_header' === barLocation ) {
414			wrapper.addClass( barLocation ).prependTo( 'body' );
415		} else {
416			wrapper.addClass( barLocation ).hide().appendTo( 'body' );
417		}
418		socialWarfare.panels.floatingHorizontal =
419			socialWarfare.panels.staticHorizontal.first().clone();
420		socialWarfare.panels.floatingHorizontal
421			.addClass( 'nc_floater' )
422			.appendTo( wrapper );
423		socialWarfare.updateFloatingHorizontalDimensions();
424		if ( 'before_header' === barLocation ) {
425			socialWarfare.applyBeforeHeaderOffset();
426			setTimeout( socialWarfare.applyBeforeHeaderOffset, 400 );
427		}
428		$( '.swp_social_panel .swp_count' ).css( {
429			transition: 'padding .1s linear',
430		} );
431	};
432	socialWarfare.updateFloatingHorizontalDimensions = function () {
433		if ( ! socialWarfare.panels.staticHorizontal.length ) {
434			return;
435		}
436		if ( ! socialWarfare.panels.floatingHorizontal ) {
437			return;
438		}
439		if (
440			$( '.swp_floating_horizontal_wrapper' ).hasClass( 'before_header' )
441		) {
442			socialWarfare.panels.floatingHorizontal.css( { width: '100%', left: 0 } );
443			return;
444		}
445		let width = '100%';
446		let left = 0;
447		const panel = socialWarfare.panels.staticHorizontal;
448		let parent = panel.parent();
449		if ( parent.hasClass( 'swp-hidden-panel-wrap' ) ) {
450			parent = parent.parent();
451		}
452		if ( 'undefined' !== typeof panel.offset().left ) {
453			left = panel.offset().left;
454		}
455		if ( 'undefined' !== typeof panel.width() ) {
456			width = panel.width();
457		}
458		if ( left == 0 ) {
459			left = parent.offset().left;
460		}
461		if ( width == 100 || width == 0 ) {
462			width = parent.width();
463		}
464		socialWarfare.panels.floatingHorizontal.css( {
465			width,
466			left,
467		} );
468	};
469	socialWarfare.getFixedTopHeader = function () {
470		const viewportWidth = $( window ).width();
471		const candidates = $(
472			'header, nav, .site-header, #masthead, [role="banner"], ' +
473				'[class*="navbar"], [class*="nav-bar"], [id*="navbar"]'
474		);
475		let match = null;
476		let matchHeight = 0;
477		candidates.each( function () {
478			const el = this;
479			if (
480				el.id === 'wpadminbar' ||
481				$( el ).closest( '.swp_floating_horizontal_wrapper' ).length
482			) {
483				return;
484			}
485			const style = window.getComputedStyle( el );
486			if ( style.position !== 'fixed' ) {
487				return;
488			}
489			const rect = el.getBoundingClientRect();
490			if (
491				rect.top > 5 ||
492				rect.height < 20 ||
493				rect.height > 300 ||
494				rect.width < viewportWidth * 0.6
495			) {
496				return;
497			}
498			if ( rect.height > matchHeight ) {
499				match = el;
500				matchHeight = rect.height;
501			}
502		} );
503		return match;
504	};
505	socialWarfare.applyBeforeHeaderOffset = function () {
506		const wrapper = $( '.swp_floating_horizontal_wrapper.before_header' );
507		if ( ! wrapper.length || ! socialWarfare.isMobile() ) {
508			return;
509		}
510		const barHeight = Math.round( wrapper.outerHeight() );
511		if ( ! barHeight ) {
512			return;
513		}
514		const basePadding = parseInt( socialWarfare.paddingTop, 10 ) || 0;
515		$( 'body' ).css( 'padding-top', basePadding + barHeight );
516		socialWarfare.beforeHeaderPadded = true;
517		const header = socialWarfare.getFixedTopHeader();
518		if ( header ) {
519			const $header = $( header );
520			if ( 'undefined' === typeof $header.data( 'swpOrigTop' ) ) {
521				$header.data( 'swpOrigTop', header.style.top || '' );
522			}
523			const headerZ = parseInt( window.getComputedStyle( header ).zIndex, 10 );
524			if ( ! isNaN( headerZ ) ) {
525				wrapper.css( 'z-index', headerZ + 1 );
526			}
527			header.style.top = barHeight + 'px';
528			socialWarfare.beforeHeaderTarget = header;
529		}
530	};
531	socialWarfare.clearBeforeHeaderOffset = function () {
532		if ( socialWarfare.beforeHeaderPadded ) {
533			const basePadding = parseInt( socialWarfare.paddingTop, 10 ) || 0;
534			$( 'body' ).css( 'padding-top', basePadding );
535			socialWarfare.beforeHeaderPadded = false;
536		}
537		const header = socialWarfare.beforeHeaderTarget;
538		if ( header ) {
539			const original = $( header ).data( 'swpOrigTop' );
540			header.style.top = 'undefined' === typeof original ? '' : original;
541			socialWarfare.beforeHeaderTarget = null;
542		}
543	};
544	socialWarfare.staticPanelIsVisible = function () {
545		let visible = false;
546		const scrollPos = $( window ).scrollTop();
547		$( '.swp_social_panel' )
548			.not( '.swp_social_panelSide, .nc_floater' )
549			.each( function ( index ) {
550				const offset = $( this ).offset();
551				if (
552					typeof socialWarfare.floatBeforeContent !== 'undefined' &&
553					'1' != socialWarfare.floatBeforeContent
554				) {
555					const theContent = $( '.swp-content-locator' ).parent();
556					if (
557						index === 0 &&
558						theContent.length &&
559						theContent.offset().top >
560							scrollPos + $( window ).height()
561					) {
562						visible = true;
563					}
564				}
565				if (
566					$( this ).is( ':visible' ) &&
567					offset.top + $( this ).height() > scrollPos &&
568					offset.top < scrollPos + $( window ).height()
569				) {
570					visible = true;
571				}
572			} );
573		return visible;
574	};
575	socialWarfare.updateFloatingButtons = function () {
576		if ( socialWarfare.panels.staticHorizontal.length ) {
577			var panel = socialWarfare.panels.staticHorizontal;
578		} else if ( socialWarfare.panels.floatingSide.length ) {
579			var panel = socialWarfare.panels.floatingSide;
580		} else {
581			return;
582		}
583		var location = panel.data( 'float' );
584		if ( true == socialWarfare.isMobile() ) {
585			var location = panel.data( 'float-mobile' );
586		}
587		if ( location == 'none' ) {
588			return $(
589				'.nc_wrapper, .swp_floating_horizontal_wrapper, .swp_social_panelSide'
590			).hide();
591		}
592		if ( socialWarfare.isMobile() ) {
593			socialWarfare.panels.floatingSide.hide();
594			if ( 'before_header' === location ) {
595				$( '.swp_floating_horizontal_wrapper' ).show();
596				return;
597			}
598			socialWarfare.toggleMobileButtons();
599			socialWarfare.toggleFloatingHorizontalPanel();
600			return;
601		}
602		if ( location == 'right' || location == 'left' ) {
603			socialWarfare.toggleFloatingVerticalPanel();
604		}
605		if ( location == 'bottom' || location == 'top' ) {
606			socialWarfare.toggleFloatingHorizontalPanel();
607		}
608	};
609	socialWarfare.toggleMobileButtons = function () {
610		socialWarfare.panels.floatingSide.hide();
611		const visibility = socialWarfare.staticPanelIsVisible()
612			? 'collapse'
613			: 'visible';
614		$( '.nc_wrapper, .swp_floating_horizontal_wrapper' ).css(
615			'visibility',
616			visibility
617		);
618	};
619	socialWarfare.toggleFloatingVerticalPanel = function () {
620		let direction = '';
621		const location = socialWarfare.panels.floatingSide.data( 'float' );
622		let visible = socialWarfare.staticPanelIsVisible();
623		let offset = '';
624		if ( socialWarfare.isMobile() ) {
625			return socialWarfare.panels.floatingSide.hide();
626		}
627		if (
628			! socialWarfare.panels.floatingSide ||
629			! socialWarfare.panels.floatingSide.length
630		) {
631			visible = true;
632		}
633		if (
634			socialWarfare.panels.floatingSide.data( 'transition' ) == 'slide'
635		) {
636			direction = location;
637			offset = visible ? '-150px' : '5px';
638			socialWarfare.panels.floatingSide.css( direction, offset ).show();
639		} else if ( visible ) {
640			socialWarfare.panels.floatingSide
641				.css( 'opacity', 1 )
642				.fadeOut( 300 )
643				.css( 'opacity', 0 );
644		} else {
645			socialWarfare.panels.floatingSide
646				.css( 'opacity', 0 )
647				.fadeIn( 300 )
648				.css( 'display', 'flex' )
649				.css( 'opacity', 1 );
650		}
651	};
652	socialWarfare.hasReferencePanel = function () {
653		return (
654			typeof socialWarfare.panels.staticHorizontal !== 'undefined' &&
655			socialWarfare.panels.staticHorizontal.length > 0
656		);
657	};
658	socialWarfare.toggleFloatingHorizontalPanel = function () {
659		if ( ! socialWarfare.hasReferencePanel() ) {
660			return;
661		}
662		if ( ! socialWarfare.panels.floatingHorizontal ) {
663			return;
664		}
665		const panel = socialWarfare.panels.floatingHorizontal.first();
666		const location = socialWarfare.isMobile()
667			? $( panel ).data( 'float-mobile' )
668			: $( panel ).data( 'float' );
669		if ( location == 'before_header' ) {
670			$( '.nc_wrapper, .swp_floating_horizontal_wrapper' ).show();
671			return;
672		}
673		let newPadding =
674			location == 'bottom'
675				? socialWarfare.paddingBottom
676				: socialWarfare.paddingTop;
677		const paddingProp = 'padding-' + location;
678		if ( location == 'off' ) {
679			return;
680		}
681		if ( socialWarfare.staticPanelIsVisible() ) {
682			$( '.nc_wrapper, .swp_floating_horizontal_wrapper' ).hide();
683			if ( socialWarfare.isMobile() && $( '#wpadminbar' ).length ) {
684				$( '#wpadminbar' ).css( 'top', 0 );
685			}
686		} else {
687			newPadding += 50;
688			$( '.nc_wrapper, .swp_floating_horizontal_wrapper' ).show();
689			if (
690				socialWarfare.isMobile() &&
691				location == 'top' &&
692				$( '#wpadminbar' ).length
693			) {
694				$( '#wpadminbar' ).css( 'top', panel.parent().height() );
695			}
696		}
697		$( 'body' ).css( paddingProp, newPadding );
698	};
699	socialWarfare.positionFloatSidePanel = function () {
700		let panelHeight, windowHeight, offset;
701		const sidePanel = socialWarfare.panels.floatingSide;
702		if ( ! sidePanel || ! sidePanel.length ) {
703			return;
704		}
705		if (
706			sidePanel.hasClass( 'swp_side_top' ) ||
707			sidePanel.hasClass( 'swp_side_bottom' )
708		) {
709			return;
710		}
711		panelHeight = sidePanel.outerHeight();
712		windowHeight = window.innerHeight;
713		if ( panelHeight > windowHeight ) {
714			return sidePanel.css( 'top', 0 );
715		}
716		offset = ( windowHeight - panelHeight ) / 2;
717		sidePanel.css( 'top', offset );
718	};
719	socialWarfare.createHoverSaveButton = function () {
720		if ( $( '.tve_editor_page' ).length ) {
721			$( '.sw-pinit-button' ).remove();
722			$( '.sw-pinit' ).each( function () {
723				const inner_content = $( '.sw-pinit' ).contents();
724				$( this ).replaceWith( inner_content );
725			} );
726			return;
727		}
728		const button = $( document.createElement( 'a' ) );
729		button.css( 'display: none' );
730		button.addClass( 'swp-hover-pin-button' );
731		button.text( 'Save' );
732		socialWarfare.hoverSaveButton = $( button );
733		return button;
734	};
735	socialWarfare.triggerImageListeners = function () {
736		$( '.swp-content-locator' )
737			.parent()
738			.find( 'img' )
739			.off( 'mouseenter', socialWarfare.renderPinterestSaveButton );
740		$( '.swp-content-locator' )
741			.parent()
742			.find( 'img' )
743			.on( 'mouseenter', socialWarfare.renderPinterestSaveButton );
744		setTimeout( socialWarfare.triggerImageListeners, 2e3 );
745	};
746	socialWarfare.getPinMedia = function ( image ) {
747		if ( isString( swpPinIt.image_source ) ) {
748			return swpPinIt.image_source;
749		}
750		if ( isString( image.attr( 'src' ) ) ) {
751			return image.attr( 'src' );
752		}
753		const dataSources = [ 'src', 'lazy-src', 'media' ];
754		let media = '';
755		dataSources.some( function ( maybeSource ) {
756			if ( isString( image.data( maybeSource ) ) ) {
757				media = image.data( maybeSource );
758				return true;
759			}
760		} );
761		if ( media == '' ) {
762			return;
763		}
764		const i = $( '<img>' );
765		i.attr( 'src', media );
766		return i.prop( 'src' );
767	};
768	socialWarfare.getPinDescription = function ( image ) {
769		if ( isString( image.data( 'pin-description' ) ) ) {
770			return image.data( 'pin-description' );
771		}
772		if ( isString( swpPinIt.image_description ) ) {
773			return swpPinIt.image_description;
774		}
775		if ( isString( image.attr( 'title' ) ) ) {
776			return image.attr( 'title' );
777		}
778		if ( isString( image.attr( 'alt' ) ) ) {
779			return image.attr( 'alt' );
780		}
781		if ( isString( swpPinIt.post_title ) ) {
782			return swpPinIt.post_title;
783		}
784	};
785	socialWarfare.enablePinterestSaveButtons = function () {
786		jQuery( 'img' ).on( 'mouseenter', function () {
787			const pinterestBrowserButtons =
788				socialWarfare.findPinterestBrowserSaveButtons();
789			if (
790				typeof pinterestBrowserButtons !== 'undefined' &&
791				pinterestBrowserButtons
792			) {
793				socialWarfare.removePinterestBrowserSaveButtons(
794					pinterestBrowserButtons
795				);
796			}
797		} );
798	};
799	socialWarfare.toggleHoverSaveDisplay = function ( image ) {
800		let top = image.offset().top;
801		let left = image.offset().left;
802		const vMargin = 15;
803		const hMargin = 15;
804		const button_size = swpPinIt.button_size || 1;
805		const buttonHeight = 24;
806		const buttonWidth = 120;
807		switch ( swpPinIt.vLocation ) {
808			case 'top':
809				top += vMargin;
810				break;
811			case 'middle':
812				var offset =
813					image.height() / 2 - vMargin / 2 - buttonHeight / 2;
814				top += offset;
815				break;
816			case 'bottom':
817				top += image.height() - vMargin - buttonHeight;
818				break;
819		}
820		switch ( swpPinIt.hLocation ) {
821			case 'left':
822				left += hMargin;
823				break;
824			case 'center':
825				var offset = image.width() / 2 - hMargin / 2 - buttonWidth / 2;
826				left += offset;
827				break;
828			case 'right':
829				left += image.width() - hMargin - buttonWidth;
830				break;
831		}
832		socialWarfare.hoverSaveButton.css( {
833			top,
834			left,
835			transform: 'scale(' + button_size + ')',
836			'transform-origin': swpPinIt.vLocation + ' ' + swpPinIt.hLocation,
837		} );
838		image.on( 'mouseleave', function ( event ) {
839			if (
840				event.relatedTarget != null &&
841				event.relatedTarget.className == 'swp-hover-pin-button'
842			) {
843				return;
844			}
845			$( '.swp-hover-pin-button' ).remove();
846		} );
847		$( document.body ).append( socialWarfare.hoverSaveButton );
848	};
849	socialWarfare.renderPinterestSaveButton = function ( event ) {
850		if (
851			event.relatedTarget &&
852			event.relatedTarget.className == 'swp-hover-pin-button'
853		) {
854			return;
855		}
856		if ( $( '.swp-hover-pin-button' ).length > 0 ) {
857			return;
858		}
859		const image = $( event.target );
860		if (
861			typeof swpPinIt.disableOnAnchors !== undefined &&
862			swpPinIt.disableOnAnchors
863		) {
864			if ( image.parents().filter( 'a' ).length ) {
865				return;
866			}
867		}
868		if (
869			image.outerHeight() < swpPinIt.minHeight ||
870			image.outerWidth() < swpPinIt.minWidth
871		) {
872			return;
873		}
874		if ( image.hasClass( 'no_pin' ) || image.hasClass( 'no-pin' ) ) {
875			return;
876		}
877		socialWarfare.toggleHoverSaveDisplay( image );
878		const description = socialWarfare.getPinDescription( image );
879		const media = socialWarfare.getPinMedia( image );
880		const shareLink =
881			'http://pinterest.com/pin/create/bookmarklet/?media=' +
882			encodeURI( media ) +
883			'&url=' +
884			encodeURI( document.URL ) +
885			'&is_video=false' +
886			'&description=' +
887			encodeURIComponent( description );
888		function openPinterestDialogue( event ) {
889			const offsetLeft = ( $( window ).width() - 775 ) / 2;
890			const offsetTop = ( $( window ).height() - 550 ) / 2;
891			const position = ',top=' + offsetTop + ',left=' + offsetLeft;
892			window.open(
893				shareLink,
894				'Pinterest',
895				'width=775,height=550,status=0,toolbar=0,menubar=0,location=1,scrollbars=1' +
896					position
897			);
898			socialWarfare.trackClick( 'pin_image' );
899			$( '.swp-hover-pin-button' ).remove();
900		}
901		$( '.swp-hover-pin-button' ).on( 'click', openPinterestDialogue );
902	};
903	socialWarfare.findPinterestBrowserSaveButtons = function () {
904		let pinterestRed,
905			pinterestRed2019,
906			pinterestZIndex,
907			pinterestBackgroundSize,
908			button,
909			style;
910		pinterestRed = 'rgb(189, 8, 28)';
911		pinterestRed2019 = 'rgb(230, 0, 35)';
912		pinterestZIndex = '8675309';
913		pinterestBackgroundSize = '14px 14px';
914		button = null;
915		document
916			.querySelectorAll( 'span' )
917			.forEach( function ( element, index ) {
918				style = window.getComputedStyle( element );
919				if (
920					style.backgroundColor == pinterestRed ||
921					style.backgroundColor == pinterestRed2019
922				) {
923					if (
924						style.backgroundSize == pinterestBackgroundSize &&
925						style.zIndex == pinterestZIndex
926					) {
927						button = element;
928					}
929				}
930			} );
931		return button;
932	};
933	socialWarfare.removePinterestBrowserSaveButtons = function ( button ) {
934		let pinterestSquare, style, size;
935		pinterestSquare = button.nextSibling;
936		if (
937			pinterestSquare != undefined &&
938			pinterestSquare.nodeName == 'SPAN'
939		) {
940			style = window.getComputedStyle( pinterestSquare );
941			size = '24px';
942			if (
943				style.width.indexOf( size ) === 0 &&
944				style.height.indexOf( size ) === 0
945			) {
946				pinterestSquare.remove();
947			}
948		}
949		button.remove();
950	};
951	socialWarfare.fetchFacebookShares = function () {
952		const url1 =
953			'https://graph.facebook.com/v18.0/?fields=og_object{engagement}&id=' +
954			swp_post_url;
955		const url2 = swp_post_recovery_url
956			? 'https://graph.facebook.com/v18.0/?fields=og_object{engagement}&id=' +
957			  swp_post_recovery_url
958			: '';
959		console.log( 'Facebook Share API: ' + url1 );
960		console.log( 'Facebook Share API (recovery): ' + url2 );
961		$.when( $.get( url1 ), $.get( url2 ) ).then(
962			function ( response1, response2 ) {
963				var shares, shares1, shares2, data;
964				shares1 = socialWarfare.parseFacebookShares( response1[ 0 ] );
965				shares2 = 0;
966				if ( swp_post_recovery_url ) {
967					shares2 = socialWarfare.parseFacebookShares(
968						response2[ 0 ]
969					);
970				}
971				shares = shares1;
972				if ( shares1 !== shares2 ) {
973					shares = shares1 + shares2;
974				}
975				var data = {
976					action: 'swp_facebook_shares_update',
977					post_id: swp_post_id,
978					share_counts: shares,
979				};
980				$.post( swp_admin_ajax, data, function ( response ) {
981					console.log( response );
982				} );
983			}
984		);
985	};
986	socialWarfare.parseFacebookShares = function ( response ) {
987		if ( 'undefined' === typeof response.og_object ) {
988			console.log( 'Facebook Shares: 0' );
989			return 0;
990		}
991		console.log(
992			'Facebook Shares: ' + response.og_object.engagement.count
993		);
994		return parseInt( response.og_object.engagement.count );
995	};
996	socialWarfare.trigger = function ( event ) {
997		$( window ).trigger( $.Event( event ) );
998	};
999	socialWarfare.trackClick = function ( event ) {
1000		if ( true === swpClickTracking ) {
1001			if ( 'function' === typeof ga ) {
1002				ga(
1003					'send',
1004					'event',
1005					'social_media',
1006					'swp_' + event + '_share'
1007				);
1008			}
1009			if ( 'object' === typeof dataLayer ) {
1010				dataLayer.push( { event: 'swp_' + event + '_share' } );
1011			}
1012		}
1013	};
1014	socialWarfare.checkListeners = function ( count, limit ) {
1015		if ( count > limit ) {
1016			return;
1017		}
1018		const panel = $( '.swp_social_panel' );
1019		if ( panel.length > 0 && panel.find( '.swp_pinterest' ) ) {
1020			socialWarfare.handleButtonClicks();
1021			return;
1022		}
1023		setTimeout( function () {
1024			socialWarfare.checkListeners( ++count, limit );
1025		}, 2e3 );
1026	};
1027	socialWarfare.establishBreakpoint = function () {
1028		const panel = $( '.swp_social_panel' );
1029		socialWarfare.breakpoint = 1100;
1030		if (
1031			( panel.length && panel.data( 'min-width' ) ) ||
1032			panel.data( 'min-width' ) == 0
1033		) {
1034			socialWarfare.breakpoint = parseInt( panel.data( 'min-width' ) );
1035		}
1036	};
1037	socialWarfare.isMobile = function () {
1038		return $( window ).width() < socialWarfare.breakpoint;
1039	};
1040	$( document ).ready( function () {
1041		socialWarfare.initPlugin();
1042		socialWarfare.panels.floatingSide.hide();
1043		$( window ).on( 'resize', socialWarfare.onWindowResize );
1044		if ( 'undefined' !== typeof swpPinIt && swpPinIt.enabled ) {
1045			socialWarfare.enablePinterestSaveButtons();
1046		}
1047	} );
1048	$( window ).on( 'load', function () {
1049		if ( 'undefined' !== typeof swpPinIt && swpPinIt.enabled ) {
1050			socialWarfare.enablePinterestSaveButtons();
1051		}
1052		window.clearCheckID = 0;
1053	} );
1054} )( this, jQuery );
1055//# sourceMappingURL=script.min.js.map
1056;/*! This file is auto-generated */
1057!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&e(jQuery)}(function(f){"use strict";function u(e){return"function"==typeof e}var i,r,v={interval:100,sensitivity:6,timeout:0},s=0,a=function(e){i=e.pageX,r=e.pageY},p=function(e,t,n,o){if(Math.sqrt((n.pX-i)*(n.pX-i)+(n.pY-r)*(n.pY-r))<o.sensitivity)return t.off(n.event,a),delete n.timeoutId,n.isActive=!0,e.pageX=i,e.pageY=r,delete n.pX,delete n.pY,o.over.apply(t[0],[e]);n.pX=i,n.pY=r,n.timeoutId=setTimeout(function(){p(e,t,n,o)},o.interval)};f.fn.hoverIntent=function(e,t,n){function o(e){var u=f.extend({},e),r=f(this),v=((t=r.data("hoverIntent"))||r.data("hoverIntent",t
1057={}),t[i]),t=(v||(t[i]=v={id:i}),v.timeoutId&&(v.timeoutId=clearTimeout(v.timeoutId)),v.event="mousemove.hoverIntent.hoverIntent"+i);"mouseenter"===e.type?v.isActive||(v.pX=u.pageX,v.pY=u.pageY,r.off(t,a).on(t,a),v.timeoutId=setTimeout(function(){p(u,r,v,d)},d.interval)):v.isActive&&(r.off(t,a),v.timeoutId=setTimeout(function(){var e,t,n,o,i;e=u,t=r,n=v,o=d.out,(i=t.data("hoverIntent"))&&delete i[n.id],o.apply(t[0],[e])},d.timeout))}var i=s++,d=f.extend({},v);f.isPlainObject(e)?(d=f.extend(d,e),u(d.out)||(d.out=d.over)):d=u(t)?f.extend(d,{over:e,out:t,selector:n}):f.extend(d,{over:e,out:e,selector:t});return this.on({"mouseenter.hoverIntent":o,"mouseleave.hoverIntent":o},d.selector)}});
1058;/*
1059 * jQuery Superfish Menu Plugin - v1.7.10
1060 * Copyright (c) 2018 Joel Birch
1061 *
1062 * Dual licensed under the MIT and GPL licenses:
1063 *	http://www.opensource.org/licenses/mit-license.php
1064 *	http://www.gnu.org/licenses/gpl.html
1065 */
1066
1067;!function(a,b){"use strict";var c=function(){var c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},d=function(){var b=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return b&&a("html").css("cursor","pointer").on("click",a.noop),b}(),e=function(){var a=document.documentElement.style;return"behavior"in a&&"fill"in a&&/iemobile/i.test(navigator.userAgent)}(),f=function(){return!!b.PointerEvent}(),g=function(a,b,d){var e,f=c.menuClass;b.cssArrows&&(f+=" "+c.menuArrowClass),e=d?"addClass":"removeClass",a[e](f)},h=function(b,d){return b.find("li."+d.pathClass).slice(0,d.pathLevels).addClass(d.hoverClass+" "+c.bcClass).filter(function(){return a(this).children(d.popUpSelector).hide().show().length}).removeClass(d.pathClass)},i=function(a,b){var d=b?"addClass":"removeClass";a.children("a")[d](c.anchorClass)},j=function(a){var b=a.css("ms-touch-action"),c=a.css("touch-action");c=c||b,c="pan-y"===c?"auto":"pan-y",a.css({"ms-touch-action":c,"touch-action":c})},k=function(a){return a.closest("."+c.menuClass)},l=function(a){return k(a).data("sfOptions")},m=function(){var b=a(this),c=l(b);clearTimeout(c.sfTimer),b.siblings().superfish("hide").end().superfish("show")},n=function(b){b.retainPath=a.inArray(this[0],b.$path)>-1,this.superfish("hide"),this.parents("."+b.hoverClass).length||(b.onIdle.call(k(this)),b.$path.length&&a.proxy(m,b.$path)())},o=function(){var b=a(this),c=l(b);d?a.proxy(n,b,c)():(clearTimeout(c.sfTimer),c.sfTimer=setTimeout(a.proxy(n,b,c),c.delay))},p=function(b){var c=a(this),d=l(c),e=c.siblings(b.data.popUpSelector);return d.onHandleTouch.call(e)===!1?this:void(e.length>0&&e.is(":hidden")&&(c.one("click.superfish",!1),"MSPointerDown"===b.type||"pointerdown"===b.type?c.trigger("focus"):a.proxy(m,c.parent("li"))()))},q=function(b,c){var g="li:has("+c.popUpSelector+")";a.fn.hoverIntent&&!c.disableHI?b.hoverIntent(m,o,g):b.on("mouseenter.superfish",g,m).on("mouseleave.superfish",g,o);var h="MSPointerDown.superfish";f&&(h="pointerdown.superfish"),d||(h+=" touchend.superfish"),e&&(h+=" mousedown.superfish"),b.on("focusin.superfish","li",m).on("focusout.superfish","li",o).on(h,"a",c,p)};return{hide:function(b){if(this.length){var c=this,d=l(c);if(!d)return this;var e=d.retainPath===!0?d.$path:"",f=c.find("li."+d.hoverClass).add(this).not(e).removeClass(d.hoverClass).children(d.popUpSelector),g=d.speedOut;if(b&&(f.show(),g=0),d.retainPath=!1,d.onBeforeHide.call(f)===!1)return this;f.stop(!0,!0).animate(d.animationOut,g,function(){var b=a(this);d.onHide.call(b)})}return this},show:function(){var a=l(this);if(!a)return this;var b=this.addClass(a.hoverClass),c=b.children(a.popUpSelector);return a.onBeforeShow.call(c)===!1?this:(c.stop(!0,!0).animate(a.animation,a.speed,function(){a.onShow.call(c)}),this)},destroy:function(){return this.each(function(){var b,d=a(this),e=d.data("sfOptions");return!!e&&(b=d.find(e.popUpSelector).parent("li"),clearTimeout(e.sfTimer),g(d,e),i(b),j(d),d.off(".superfish").off(".hoverIntent"),b.children(e.popUpSelector).attr("style",function(a,b){if("undefined"!=typeof b)return b.replace(/display[^;]+;?/g,"")}),e.$path.removeClass(e.hoverClass+" "+c.bcClass).addClass(e.pathClass),d.find("."+e.hoverClass).removeClass(e.hoverClass),e.onDestroy.call(d),void d.removeData("sfOptions"))})},init:function(b){return this.each(function(){var d=a(this);if(d.data("sfOptions"))return!1;var e=a.extend({},a.fn.superfish.defaults,b),f=d.find(e.popUpSelector).parent("li");e.$path=h(d,e),d.data("sfOptions",e),g(d,e,!0),i(f,!0),j(d),q(d,e),f.not("."+c.bcClass).superfish("hide",!0),e.onInit.call(this)})}}}();a.fn.superfish=function(b,d){return c[b]?c[b].apply(this,Array.prototype.slice.call(arguments,1
1067)):"object"!=typeof b&&b?a.error("Method "+b+" does not exist on jQuery.fn.superfish"):c.init.apply(this,arguments)},a.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:a.noop,onBeforeShow:a.noop,onShow:a.noop,onBeforeHide:a.noop,onHide:a.noop,onIdle:a.noop,onDestroy:a.noop,onHandleTouch:a.noop}}(jQuery,window);
1068;jQuery(function($){$(".js-superfish").superfish({delay:100,animation:{opacity:"show",height:"show"},dropShadows:!1})});
1069;function ga_skiplinks(){var fragmentID=location.hash.substring(1);fragmentID&&(fragmentID=document.getElementById(fragmentID))&&(!1===/^(?:a|select|input|button|textarea)$/i.test(fragmentID.tagName)&&(fragmentID.tabIndex=-1),fragmentID.focus())}window.addEventListener?window.addEventListener("hashchange",ga_skiplinks,!1):window.attachEvent("onhashchange",ga_skiplinks);
1070;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.