PageSourceSearch

https://bodopro.pl/scripts/espservice-shipments/widgets.min.js?t=1790839030

js bodopro.pl collected 2026-10-06 17:02:33 UTC 16,558 bytes, 37 lines download raw bytes

1var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var g=0;g<a.length;++g){var f=a[g];if(f&&f.Math==Math)return f}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
2$jscomp.checkEs6ConformanceViaProxy=function(){try{var a={},g=Object.create(new $jscomp.global.Proxy(a,{get:function(f,d,e){return f==a&&"q"==d&&e==g}}));return!0===g.q}catch(f){return!1}};$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();$jscomp.arrayIteratorImpl=function(a){var g=0;return function(){return g<a.length?{done:!1,value:a[g++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};
3$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,g,f){if(a==Array.prototype||a==Object.prototype)return a;a[g]=f.value;return a};$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;
4$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,g){var f=$jscomp.propertyToPolyfillSymbol[g];if(null==f)return a[g];f=a[f];return void 0!==f?f:a[g]};$jscomp.polyfill=function(a,g,f,d){g&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,g,f,d):$jscomp.polyfillUnisolated(a,g,f,d))};
5$jscomp.polyfillUnisolated=function(a,g,f,d){f=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];e in f||(f[e]={});f=f[e]}a=a[a.length-1];d=f[a];g=g(d);g!=d&&null!=g&&$jscomp.defineProperty(f,a,{configurable:!0,writable:!0,value:g})};
6$jscomp.polyfillIsolated=function(a,g,f,d){var e=a.split(".");a=1===e.length;d=e[0];d=!a&&d in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var h=0;h<e.length-1;h++){var c=e[h];c in d||(d[c]={});d=d[c]}e=e[e.length-1];f=$jscomp.IS_SYMBOL_NATIVE&&"es6"===f?d[e]:null;g=g(f);null!=g&&(a?$jscomp.defineProperty($jscomp.polyfills,e,{configurable:!0,writable:!0,value:g}):g!==f&&($jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+e,e=$jscomp.propertyToPolyfillSymbol[e],
7$jscomp.defineProperty(d,e,{configurable:!0,writable:!0,value:g})))};$jscomp.initSymbol=function(){};
8$jscomp.polyfill("Symbol",function(a){if(a)return a;var g=function(a,d){this.$jscomp$symbol$id_=a;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:d})};g.prototype.toString=function(){return this.$jscomp$symbol$id_};var f=0,d=function(a){if(this instanceof d)throw new TypeError("Symbol is not a constructor");return new g("jscomp_symbol_"+(a||"")+"_"+f++,a)};return d},"es6","es3");$jscomp.initSymbolIterator=function(){};
9$jscomp.polyfill("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var g="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),f=0;f<g.length;f++){var d=$jscomp.global[g[f]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&$jscomp.defineProperty(d.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return a},"es6",
10"es3");$jscomp.initSymbolAsyncIterator=function(){};$jscomp.iteratorPrototype=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a};$jscomp.makeIterator=function(a){var g="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return g?g.call(a):$jscomp.arrayIterator(a)};$jscomp.owns=function(a,g){return Object.prototype.hasOwnProperty.call(a,g)};
11$jscomp.polyfill("WeakMap",function(a){function g(){if(!a||!Object.seal)return!1;try{var b=Object.seal({}
vendor: 3,425 bytes, lines 11-18
11),c=Object.seal({}),d=new a([[b,2],[c,3]]);if(2!=d.get(b)||3!=d.get(c))return!1;d.delete(b);d.set(c,4);return!d.has(b)&&4==d.get(c)}catch(r){return!1}}function f(){}function d(b){var a=typeof b;return"object"===a&&null!==b||"function"===a}function e(b){if(!$jscomp.owns(b,c)){var a=new f;$jscomp.defineProperty(b,c,{value:a})}}function h(b){var a=Object[b];a&&(Object[b]=function(b){if(b instanceof
12f)return b;e(b);return a(b)})}if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&$jscomp.ES6_CONFORMANCE)return a}else if(g())return a;var c="$jscomp_hidden_"+Math.random();h("freeze");h("preventExtensions");h("seal");var l=0,b=function(b){this.id_=(l+=Math.random()+1).toString();if(b){b=$jscomp.makeIterator(b);for(var a;!(a=b.next()).done;)a=a.value,this.set(a[0],a[1])}};b.prototype.set=function(b,a){if(!d(b))throw Error("Invalid WeakMap key");e(b);if(!$jscomp.owns(b,c))throw Error("WeakMap key fail: "+
13b);b[c][this.id_]=a;return this};b.prototype.get=function(b){return d(b)&&$jscomp.owns(b,c)?b[c][this.id_]:void 0};b.prototype.has=function(b){return d(b)&&$jscomp.owns(b,c)&&$jscomp.owns(b[c],this.id_)};b.prototype.delete=function(b){return d(b)&&$jscomp.owns(b,c)&&$jscomp.owns(b[c],this.id_)?delete b[c][this.id_]:!1};return b},"es6","es3");$jscomp.MapEntry=function(){};
14$jscomp.polyfill("Map",function(a){function g(){if($jscomp.ASSUME_NO_NATIVE_MAP||!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),c=new a($jscomp.makeIterator([[b,"s"]]));if("s"!=c.get(b)||1!=c.size||c.get({x:4})||c.set({x:4},"t")!=c||2!=c.size)return!1;var d=c.entries(),e=d.next();if(e.done||e.value[0]!=b||"s"!=e.value[1])return!1;e=d.next();return e.done||4!=e.value[0].x||"t"!=e.value[1]||!d.next().done?!1:!0}catch(r){return!1}}
15if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&$jscomp.ES6_CONFORMANCE)return a}else if(g())return a;var f=new WeakMap,d=function(b){this.data_={};this.head_=c();this.size=0;if(b){b=$jscomp.makeIterator(b);for(var a;!(a=b.next()).done;)a=a.value,this.set(a[0],a[1])}};d.prototype.set=function(b,a){b=0===b?0:b;var c=e(this,b);c.list||(c.list=this.data_[c.id]=[]);c.entry?c.entry.value=a:(c.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:b,value:a},c.list.push(c.entry),
16this.head_.previous.next=c.entry,this.head_.previous=c.entry,this.size++);return this};d.prototype.delete=function(b){b=e(this,b);return b.entry&&b.list?(b.list.splice(b.index,1),b.list.length||delete this.data_[b.id],b.entry.previous.next=b.entry.next,b.entry.next.previous=b.entry.previous,b.entry.head=null,this.size--,!0):!1};d.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=c();this.size=0};d.prototype.has=function(b){return!!e(this,b).entry};d.prototype.get=function(b){return(b=
17e(this,b).entry)&&b.value};d.prototype.entries=function(){return h(this,function(b){return[b.key,b.value]})};d.prototype.keys=function(){return h(this,function(b){return b.key})};d.prototype.values=function(){return h(this,function(b){return b.value})};d.prototype.forEach=function(b,a){for(var c=this.entries(),d;!(d=c.next()).done;)d=d.value,b.call(a,d[1],d[0],this)};d.prototype[Symbol.iterator]=d.prototype.entries;var e=function(b,a){var c=a&&typeof a;"object"==c||"function"==c?f.has(a)?c=f.get(a):
18(c=""+ ++l,f.set(a,c)):c="p_"+a;var d=b.data_[c];if(d&&$jscomp.owns(b.data_,c))for(b=0;b<d.length;b++){var e=d[b];
18if(a!==a&&e.key!==e.key||a===e.key)return{id:c,list:d,index:b,entry:e}}return{id:c,list:d,index:-1,entry:void 0}},h=function(b,a){var c=b.head_;return $jscomp.iteratorPrototype(function(){if(c){for(;c.head!=b.head_;)c=c.previous;for(;c.next!=c.head;)return c=c.next,{done:!1,value:a(c)};c=null}return{done:!0,value:void 0}})},c=function(){var c={};return c.previous=c.next=c.head=c},l=0;
19return d},"es6","es3");
20$jscomp.polyfill("Set",function(a){function g(){if($jscomp.ASSUME_NO_NATIVE_SET||!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var d=Object.seal({x:4}),e=new a($jscomp.makeIterator([d]));if(!e.has(d)||1!=e.size||e.add(d)!=e||1!=e.size||e.add({x:4})!=e||2!=e.size)return!1;var f=e.entries(),c=f.next();if(c.done||c.value[0]!=d||c.value[1]!=d)return!1;c=f.next();return c.done||c.value[0]==d||4!=c.value[0].x||c.value[1]!=c.value[0]?!1:f.next().done}catch(l){return!1}}
21if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&$jscomp.ES6_CONFORMANCE)return a}else if(g())return a;var f=function(a){this.map_=new Map;if(a){a=$jscomp.makeIterator(a);for(var d;!(d=a.next()).done;)this.add(d.value)}this.size=this.map_.size};f.prototype.add=function(a){a=0===a?0:a;this.map_.set(a,a);this.size=this.map_.size;return this};f.prototype.delete=function(a){a=this.map_.delete(a);this.size=this.map_.size;return a};f.prototype.clear=function(){this.map_.clear();this.size=0};f.prototype.has=
22function(a){return this.map_.has(a)};f.prototype.entries=function(){return this.map_.entries()};f.prototype.values=function(){return this.map_.values()};f.prototype.keys=f.prototype.values;f.prototype[Symbol.iterator]=f.prototype.values;f.prototype.forEach=function(a,e){var d=this;this.map_.forEach(function(c){return a.call(e,c,c,d)})};return f},"es6","es3");$jscomp.FORCE_POLYFILL_PROMISE=!1;
23$jscomp.polyfill("Promise",function(a){function g(){this.batch_=null}function f(a){return a instanceof e?a:new e(function(c,b){c(a)})}if(a&&!$jscomp.FORCE_POLYFILL_PROMISE)return a;g.prototype.asyncExecute=function(a){if(null==this.batch_){this.batch_=[];var c=this;this.asyncExecuteFunction(function(){c.executeBatch_()})}this.batch_.push(a)};var d=$jscomp.global.setTimeout;g.prototype.asyncExecuteFunction=function(a){d(a,0)};g.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var a=
24this.batch_;this.batch_=[];for(var d=0;d<a.length;++d){var b=a[d];a[d]=null;try{b()}catch(m){this.asyncThrow_(m)}}}this.batch_=null};g.prototype.asyncThrow_=function(a){this.asyncExecuteFunction(function(){throw a;})};var e=function(a){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var c=this.createResolveAndReject_();try{a(c.resolve,c.reject)}catch(b){c.reject(b)}};e.prototype.createResolveAndReject_=function(){function a(a){return function(c){b||(b=!0,a.call(d,c))}}var d=this,b=!1;
25return{resolve:a(this.resolveTo_),reject:a(this.reject_)}};e.prototype.resolveTo_=function(a){if(a===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(a instanceof e)this.settleSameAsPromise_(a);else{a:switch(typeof a){case "object":var c=null!=a;break a;case "function":c=!0;break a;default:c=!1}c?this.resolveToNonPromiseObj_(a):this.fulfill_(a)}};e.prototype.resolveToNonPromiseObj_=function(a){var c=void 0;try{c=a.then}catch(b){this.reject_(b);return}"function"==typeof c?
26this.settleSameAsThenable_(c,a):this.fulfill_(a)};e.prototype.reject_=function(a){this.settle_(2,a)};e.prototype.fulfill_=function(a){this.settle_(1,a)};e.prototype.settle_=function(a,d){if(0!=this.state_)throw Error("Cannot settle("+a+", "+d+"): Promise already settled in state"+this.state_);this.state_=a;this.result_=d;this.executeOnSettledCallbacks_()};e.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var a=0;a<this.onSettledCallbacks_.length;++a)h.asyncExecute(this.onSettledCallbacks_[a]);
27this.onSettledCallbacks_=null}};var h=new g;e.prototype.settleSameAsPromise_=function(a){var c=this.createResolveAndReject_();a.callWhenSettled_(c.resolve,c.reject)};e.prototype.settleSameAsThenable_=function(a,d){var b=this.createResolveAndReject_();try{a.call(d,b.resolve,b.reject)}catch(m){b.reject(m)}};e.prototype.then=function(a,d){function b(a,b){return"function"==typeof a?function(b){try{c(a(b))}catch(t){f(t)}}:b}var c,f,g=new e(function(a,b){c=a;f=b});this.callWhenSettled_(b(a,c),b(d,f));return g};
28e.prototype.catch=function(a){return this.then(void 0,a)};e.prototype.callWhenSettled_=function(a,d){function b(){switch(c.state_){case 1:a(c.result_);break;case 2:d(c.result_);break;default:throw Error("Unexpected state: "+c.state_);}}var c=this;null==this.onSettledCallbacks_?h.asyncExecute(b):this.onSettledCallbacks_.push(b)};e.resolve=f;e.reject=function(a){return new e(function(c,b){b(a)})};e.race=function(a){return new e(function(c,b){for(var d=$jscomp.makeIterator(a),e=d.next();!e.done;
28e=d.next())f(e.value).callWhenSettled_(c,
29b)})};e.all=function(a){var c=$jscomp.makeIterator(a),b=c.next();return b.done?f([]):new e(function(a,d){function e(b){return function(c){g[b]=c;n--;0==n&&a(g)}}var g=[],n=0;do g.push(void 0),n++,f(b.value).callWhenSettled_(e(g.length-1),d),b=c.next();while(!b.done)})};return e},"es6","es3");
30$jscomp.polyfill("Array.from",function(a){return a?a:function(a,f,d){f=null!=f?f:function(a){return a};var e=[],g="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if("function"==typeof g){a=g.call(a);for(var c=0;!(g=a.next()).done;)e.push(f.call(d,g.value,c++))}else for(g=a.length,c=0;c<g;c++)e.push(f.call(d,a[c],c));return e}},"es6","es3");
31$jscomp.iteratorFromArray=function(a,g){a instanceof String&&(a+="");var f=0,d={next:function(){if(f<a.length){var e=f++;return{value:g(e,a[e]),done:!1}}d.next=function(){return{done:!0,value:void 0}};return d.next()}};d[Symbol.iterator]=function(){return d};return d};$jscomp.polyfill("Array.prototype.keys",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(a){return a})}},"es6","es3");
32window.MapWidgetManager=function(){function a(a){return a.replace(/[^a-zA-Z0-9]/g,"_")}function g(b,c){b&&Array.isArray(b)&&b.forEach(function(b){var d=a(b);if(!l.has(d)){var e=document.createElement("link");e.rel="stylesheet";e.href=b;e.setAttribute("data-widget-asset",c);e.setAttribute("data-asset-id",d);document.head.appendChild(e);l.add(d)}})}function f(b,c){if(!b||!Array.isArray(b))return Promise.resolve();var d=[];b.forEach(function(b){if("external"===b.scriptType){var e=a(b.src);if(!l.has(e)){var f=
33new Promise(function(a,d){var f=document.createElement("script");f.src=b.src;f.setAttribute("data-widget-asset",c);f.setAttribute("data-asset-id",e);b.defer&&(f.defer=!0);b.async&&(f.async=!0);f.onload=function(){a()};f.onerror=function(a){d(a)};document.head.appendChild(f)});d.push(f);l.add(e)}}else if("inline"===b.scriptType&&(f=a(b.code),!l.has(f)))try{var g=document.createElement("script");g.textContent=b.code;g.setAttribute("data-widget-asset",c);g.setAttribute("data-asset-id",f);document.head.appendChild(g);
34l.add(f)}catch(u){}});return Promise.all(d)}function d(a){var b=a.shipmentType;a=a.html;if(!b)return null;if(!a||null===a)if("dpdPoint"===b)a='<div id="dpd-widget"></div>';else return null;if(m.has(b))return m.get(b);m.set(b,a);return a}function e(a){if(!k)return!1;var b=a.shipmentType;a=d(a);if(!a)return!1;h();if(k.findWidget(b))k&&(b=k.findWidget(b))&&(b.style.display="block");else{var c=document.createElement("div");c.className="js-esp-shipments-widget-container";c.setAttribute("data-widget-type",
35b);c.innerHTML=a;k.addWidget(c)}return!0}function h(){k&&k.getAllWidgets().forEach(function(a){a.style.display="none"})}function c(){!p&&k&&(k.attachCloseListeners(function(){b=null;h()}),p=!0)}var l=new Set,b=null,m=new Map,p=!1,k=null;return{initialize:function(a){if(!a||!a.shipmentType)return Promise.reject("Brak wymaganych danych widgetu");var d=a.shipmentType;if(b===d&&k&&k.isPopupOpen())return Promise.resolve();if(!k)return Promise.reject("Brak adaptera popup");b=d;c();return new Promise(function(b,
36c){try{a.styles&&g(a.styles,d),e(a)?k.openPopup()?(a.scripts?f(a.scripts,d):Promise.resolve()).then(function(){b(d)}).catch(function(a){console.error("B\u0142\u0105d podczas \u0142adowania skrypt\u00f3w:",a);c(a)}):c("Nie uda\u0142o si\u0119 otworzy\u0107 popup"):c("Nie uda\u0142o si\u0119 zarz\u0105dza\u0107 zawarto\u015bci\u0105 popup")}catch(q){console.error("B\u0142\u0105d podczas inicjalizacji widgetu:",q),c(q)}})},close:function(){if(!k)return!1;var a=k.closePopup();a&&(b=null,h());return a},
37setPopupAdapter:function(a){k=a},clearCache:function(){m.clear();b=null},removeFromCache:function(a){m.delete(a);b===a&&(b=null)},clearLoadedAssets:function(){document.querySelectorAll("[data-widget-asset]").forEach(function(a){return a.remove()});l.clear()},getCurrentWidget:function(){return b},getCacheSize:function(){return m.size},getLoadedAssetsCount:function(){return l.size},getCachedWidgets:function(){return Array.from(m.keys())}}}();

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.