PageSourceSearch

https://bodopro.pl/scripts/themes-tools.min.js

js bodopro.pl collected 2026-10-06 17:02:32 UTC 4,658 bytes, 13 lines download raw bytes

1var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(b,c,a){b instanceof String&&(b=String(b));for(var d=b.length,e=0;e<d;e++){var f=b[e];if(c.call(a,f,e,b))return{i:e,v:f}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
2$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,c,a){b!=Array.prototype&&b!=Object.prototype&&(b[c]=a.value)};$jscomp.getGlobal=function(b){b=["object"==typeof globalThis&&globalThis,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,b];for(var c=0;c<b.length;++c){var a=b[c];if(a&&a.Math==Math)return a}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
3$jscomp.polyfill=function(b,c,a,d){if(c){a=$jscomp.global;b=b.split(".");for(d=0;d<b.length-1;d++){var e=b[d];e in a||(a[e]={});a=a[e]}b=b[b.length-1];d=a[b];c=c(d);c!=d&&null!=c&&$jscomp.defineProperty(a,b,{configurable:!0,writable:!0,value:c})}};$jscomp.polyfill("Array.prototype.find",function(b){return b?b:function(b,a){return $jscomp.findInternal(this,b,a).v}},"es6","es3");
4$jscomp.checkStringArgs=function(b,c,a){if(null==b)throw new TypeError("The 'this' value for String.prototype."+a+" must not be null or undefined");if(c instanceof RegExp)throw new TypeError("First argument to String.prototype."+a+" must not be a regular expression");return b+""};
5$jscomp.polyfill("String.prototype.startsWith",function(b){return b?b:function(b,a){var c=$jscomp.checkStringArgs(this,b,"startsWith");b+="";var e=c.length,f=b.length;a=Math.max(0,Math.min(a|0,c.length));for(var g=0;g<f&&a<e;)if(c[a++]!=b[g++])return!1;return g>=f}},"es6","es3");var sellingoQuantityCalc=function(){};
6sellingoQuantityCalc.prototype.changeQuantity=function(b,c,a){a=this.parseInputValues(b,c,a);b=a.current;c=a.decimals;a=a.step;switch(c){case "0":b<(a?a:1E3)&&(b=a?a:1E3);break;case "1":b<(a?a:100)&&(b=a?a:100);break;case "2":b<(a?a:10)&&(b=a?a:10);break;case "3":b<(a?a:1)&&(b=a?a:1)}return this.roundResponse(b,c,a)};
7sellingoQuantityCalc.prototype.increaseQuantity=function(b,c,a){a=this.parseInputValues(b,c,a);b=a.current;c=a.decimals;a=a.step;switch(c){case "0":b+=a?a:1E3;break;case "1":b+=a?a:100;break;case "2":b+=a?a:10;break;case "3":b+=a?a:1}return this.roundResponse(b,c,a)};
8sellingoQuantityCalc.prototype.decreaseQuantity=function(b,c,a){a=this.parseInputValues(b,c,a);b=a.current;c=a.decimals;a=a.step;switch(c){case "0":if(b===(a?a:1E3))break;b-=a?a:1E3;break;case "1":if(b===(a?a:100))break;b-=a?a:100;break;case "2":if(b===(a?a:10))break;b-=a?a:10;break;case "3":b!==(a?a:1)&&(b-=a?a:1)}return this.roundResponse(b,c,a)};sellingoQuantityCalc.prototype.roundResponse=function(b,c,a){if(a){var d=b%a;d&&(b+=a-d)}return(b/1E3).toFixed(c)};
9sellingoQuantityCalc.prototype.parseInputValues=function(b,c,a){b=1E3*parseFloat(b);a=1E3*parseFloat(a);a=parseInt(a.toFixed(c));b=parseInt(b.toFixed(c));return{current:b,decimals:c,step:a}};function createCookie(b,c,a){if(a){var d=new Date;d.setTime(d.getTime()+864E5*a);a="; expires="+d.toGMTString()}else a="";document.cookie=b+"="+c+a+"; path=/"}
10function readCookie(b){b+="=";for(var c=document.cookie.split(";"),a=0;a<c.length;a++){for(var d=c[a];" "===d.charAt(0);)d=d.substring(1,d.length);if(0===d.indexOf(b))return d.substring(b.length,d.length)}return null}function eraseCookie(b){createCookie(b,"",-1)}
11function showPopup(b,c,a){a=void 0===a?null:a;var d="#"+b;d.length&&(a&&($(d).find(".js-popup-insert-image").length&&$(d).find(".js-popup-insert-image").attr("src",a.image),$(d).find(".js-popup-insert-title").length&&$(d).find(".js-popup-insert-title").text(a.name),$(d).find(".js-popup-insert-price").length&&$(d).find(".js-popup-insert-price").text(a.quantity+" x "+a.price)),null!=c?readCookie(c)||(setTimeout(function(){$.fancybox.open($(d),{touch:!1})},3E3),createCookie(c,d,1)):$.fancybox.open($(d),
12{touch:!1}))}function checkPopupError(b){var c=$("#"+b);c.find(".error").length?setTimeout(function(){showPopup(b,null,null)},1E3):c.find(".success").length&&setTimeout(function(){showPopup(b,null,null)},1E3)}
13$(document).ajaxSuccess(function(b,c,a){if(a.url.startsWith(base+"cart/add_to_cart")||a.url.startsWith(base+"cart/delete")||a.url.startsWith(base+"cart/begin_checkout")||a.url.startsWith(base+"cart/copy_to_cart")||a.url.startsWith(base+"cart/copy_items_to_cart")||a.url.startsWith(base+"cart/order_again")||a.url.startsWith(base+"wishlist/add_to_wishlist"))b=JSON.parse(c.responseText),"ok"===b.status&&b.hasOwnProperty("datalayer")&&eval(b.datalayer)});

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.