"use strict";jQuery(document).ready(function($){function affwp_track_visit(affiliate_id,url_campaign){affwp_set_cookie(affwp_debug_vars.ref_cookie,affiliate_id),$.ajax({type:"POST",data:{action:"affwp_track_visit",affiliate:affiliate_id,campaign:url_campaign,url:document.URL,referrer:document.referrer},url:affwp_scripts.ajaxurl,success:function(response){affwp_set_cookie(affwp_debug_vars.visit_cookie,response),affwp_set_cookie(affwp_debug_vars.campaign_cookie,url_campaign)}}).fail(function(response){window.console&&window.console.log&&console.log(response)})}function affwp_set_cookie(name,value){"cookie_domain"in AFFWP?$.cookie(name,value,{expires:AFFWP.expiration,path:"/",domain:AFFWP.cookie_domain}):$.cookie(name,value,{expires:AFFWP.expiration,path:"/"})}function affwp_get_query_vars(){for(var hash,vars=[],hashes=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),i=0;i