PageSourceSearch

https://toolandbark.com/wp-content/cache/min/1/wp-content/plugins/aawp/assets/dist/js/main.js?ver=1784068918

js toolandbark.com collected 2026-10-04 04:05:44 UTC 7,093 bytes, 2 lines download raw bytes

1/*! For license information please see main.js.LICENSE.txt */
2(()=>{var e={929:()=>{jQuery(document).ready((function(e){e("[data-aawp-click-tracking] a, a[data-aawp-click-tracking]").on("click",(function(t){if(void 0===e(this).data("aawp-prevent-click-tracking")){var a=e(this).attr("data-aawp-click-tracking")?e(this):e(this).closest("[data-aawp-click-tracking]"),n=a.data("aawp-click-tracking");if(n){var o=void 0!==a.data("aawp-product-id")?a.data("aawp-product-id"):"",i=void 0!==a.data("aawp-product-title")?a.data("aawp-product-title"):"",r=!1;if("asin"===n&&o?r=o:"title"===n&&i&&(r=i),r){var c="amazon-link",d="click";"function"==typeof gtag?gtag("event",d,{event_category:c,event_label:r}):"undefined"!=typeof ga?ga("send","event",c,d,r):"undefined"!=typeof _gaq?_gaq.push(["_trackEvent",c,d,r]):"undefined"!=typeof __gaTracker?__gaTracker("send","event",c,d,r):"undefined"!=typeof _paq?_paq.push(["trackEvent",c,d,r]):"undefined"!=typeof dataLayer&&dataLayer.push({event:"amazon-affiliate-link-click",category:c,action:d,label:r})}}}}))}))},148:()=>{var e;(e=jQuery)(document).on("keyup change",".aawp-el-widget-control",(function(t){var a,n,o=e('[data-setting="display_variant"]').val();["box","link","fields"].includes(o)?n=e('[data-setting="asin"]').val():"bestseller"===o||"new"===o?n=e('[data-setting="keywords"]').val():"table"===o&&(n=e('[data-setting="table"]').val()),""!==o&&"undefined"!==n&&(a="["+aawp_elementor_data.shortcode+" "+o+' ="'+n+'"',"bestseller"===o||"new"===o?a=a+' items="'+e('[data-setting="items"]').val()+'"':"fields"===o&&(a=a+' value="'+e('[data-setting="field_value"]').val()+'"'),a+="]");var i=e('[data-setting="generated_shortcode"]').get(0);void 0!==i&&(Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype,"value").set.call(i,a),i.dispatchEvent(new Event("input",{bubbles:!0})))}))},169:(e,t,a)=>{"use strict";a.r(t);var n=a(808),o=a.n(n);jQuery(document).ready((function(e){if("undefined"!=typeof aawp_geotargeting_settings&&"undefined"!=typeof aawp_geotargeting_localized_stores&&"undefined"!=typeof aawp_geotargeting_tracking_ids){var t=(w={},window.location.href.replace(location.hash,"").replace(/[?&]+([^=&]+)=?([^&]*)?/gi,(function(e,t,a){w[t]=void 0!==a?a:""})),w.aawp_debug_geotargeting_ip?w.aawp_debug_geotargeting_ip:""),a=function(){var e={};return window.location.href.replace(location.hash,"").replace(/[?&]+([^=&]+)=?([^&]*)?/gi,(function(t,a,n){e[a]=void 0!==n?n:""})),!!e.aawp_debug_geotargeting}(),n="undefined"!=typeof aawp_geotargeting_api?aawp_geotargeting_api:"",i=aawp_geotargeting_settings,r=aawp_geotargeting_localized_stores,c=aawp_geotargeting_tracking_ids;if(!i.hasOwnProperty("store"))return;var d=i.hasOwnProperty("mode")?i.mode:"mode",p=i.store,s="",u="",f="",l=o(),g=l.get("aawp-geotargeting");void 0!==g&&!1===a?(u=g,y()):"geoip-db"===n?h():"ipinfo"===n?(v="https://ipinfo.io/json/",t&&(v="https://ipinfo.io/"+t+"/json/"),jQuery.ajax({url:v,jsonpCallback:"callback",dataType:"jsonp",success:function(e){void 0!==e.ip&&void 0!==e.country&&m(u=e.country),y()}})):"dbip"===n?function(){var e="https://api.db-ip.com/v2/free/self/";t&&(e="https://api.db-ip.com/v2/free/"+t+"/"),jQuery.ajax({url:e,dataType:"json",crossDomain:!0,success:function(e){void 0!==e.ipAddress&&void 0!==e.countryCode&&m(u=e.countryCode),y()}})}():h()}var v,w;function y(){u=u.toLowerCase(),r.hasOwnProperty(u)&&((s=r[u])===p&&!1===a||c.hasOwnProperty(s)&&(f=c[s],function(t,a,n){if(null===n)return;e("a[href*='/amazon'], a[href*='/www.amazon'], a[href*='/amzn'], a[href*='/www.amzn']").each((function(o){if(!e(this).data("aawp-geotargeting")&&!e(this).closest("*[data-aawp-product-id]").data("aawp-geotargeting"))return;var i=e(this).attr("href");"asin"===d||-1!=i.indexOf("prime")?i=function(e,t,a){var n=!1,o=!1;-1!=e.indexOf("amzn."+p)&&(n=!0);-1!=e.indexOf("amazon."+p)&&(o=!0);if(!n&&!o)return;if(-1==e.indexOf("tag="))return;e="com"==t&&n?e.replace("amzn."+t,"amazon."+a+"/dp"):"com"==a?e.replace("amazon."+t,"amzn."+a):e.replace("amazon."+t,"amazon."+a);return e}(i,t,a):"title"===d&&(i=function(t,a,n,o){var i=t.data("aawp-product-title");i||(i=t.parents().filter((function(){return e(this).data("aawp-product-title")})).eq(0).data("aawp-product-title"));i&&(r=5,i=i.split(/\s+/).slice(0,r).join(" "),a="https://www.amazon."+o+"/s/?field-keywords="+encodeURIComponent(i));var r;return a}(e(this),i,0,a)),void 0!==i&&(i=function(e,t,a){null==a&&(a="");var n=new RegExp("\\b("+t+"=).*?(&|$)");if(e.search(n)>=0)return e.replace(n,"$1"+a+"$2");return e+(e.indexOf("?")>0?"&":"?")+t+"="+a}(i,"tag",n),e(this).attr("href",i))}))}(p,s,f)))}function h(){var e="https://geolocation-db.com/jsonp/";t&&(e="https://geolocation-db.com/jsonp/"+t),jQuery.ajax({url:e,jsonpCallback:"callback",dataType:"jsonp",success:function(e){void 0!==e.IPv4&&void 0!==e.country_code&&m(u=e.country_code),y()}})}function m(e){a||e&&l.set("aawp-geotargeting",e,{sameSite:"strict"})}}))},808:(e,t,a)=>{var n,o;!function(i){if(void 0===(o="function"==typeof(n=i)?n.call(t,a,t,e):n)||(e.exports=o),!0,e.exports=i(),!!0){var r=window.Cookies,c=window.Cookies=i();c.noConflict=function(){return window.Cookies=r,c}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var a=arguments[e];for(var n in a)t[n]=a[n]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2}
2)+/g,decodeURIComponent)}return function a(n){function o(){}function i(t,a,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var r=JSON.stringify(a);/^[\{\[]/.test(r)&&(a=r)}catch(e){}a=n.write?n.write(a,t):encodeURIComponent(String(a)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var c="";for(var d in i)i[d]&&(c+="; "+d,!0!==i[d]&&(c+="="+i[d].split(";")[0]));return document.cookie=t+"="+a+c}}function r(e,a){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],r=0;r<i.length;r++){var c=i[r].split("="),d=c.slice(1).join("=");a||'"'!==d.charAt(0)||(d=d.slice(1,-1));try{var p=t(c[0]);if(d=(n.read||n)(d,p)||t(d),a)try{d=JSON.parse(d)}catch(e){}if(o[p]=d,e===p)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return r(e,!1)},o.getJSON=function(e){return r(e,!0)},o.remove=function(t,a){i(t,"",e(a,{expires:-1}))},o.defaults={},o.withConverter=a,o}((function(){}))}))}},t={};function a(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,a),i.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a(929),a(169),a(148)})()

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.