PageSourceSearch

https://www.deuter.com/theme/844d577e27288815b915146180acbe43/js/c…oss-selling.cbax-last-seen.plugin.c3df74.js

js deuter.com collected 2026-10-02 03:09:39 UTC 5,322 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5492],{592:(t,e,s)=>{s.d(e,{Z:()=>r});class r{get(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",r=this._createPreparedRequest("GET",t,s);return this._sendRequest(r,null,e)}post(t,e,s){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";r=this._getContentType(e,r);let n=this._createPreparedRequest("POST",t,r);return this._sendRequest(n,e,s)}delete(t,e,s){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";r=this._getContentType(e,r);let n=this._createPreparedRequest("DELETE",t,r);return this._sendRequest(n,e,s)}patch(t,e,s){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";r=this._getContentType(e,r);let n=this._createPreparedRequest("PATCH",t,r);return this._sendRequest(n,e,s)}abort(){if(this._request)return this._request.abort()}setErrorHandlingInternal(t){this._errorHandlingInternal=t}_registerOnLoaded(t,e){e&&(!0===this._errorHandlingInternal?(t.addEventListener("load",()=>{e(t.responseText,t)}),t.addEventListener("abort",()=>{console.warn("the request to ".concat(t.responseURL," was aborted"))}),t.addEventListener("error",()=>{console.warn("the request to ".concat(t.responseURL," failed with status ").concat(t.status))}),t.addEventListener("timeout",()=>{console.warn("the request to ".concat(t.responseURL," timed out"))})):t.addEventListener("loadend",()=>{e(t.responseText,t)}))}_sendRequest(t,e,s){return this._registerOnLoaded(t,s),t.send(e),t}_getContentType(t,e){return t instanceof FormData&&(e=!1),e}_createPreparedRequest(t,e,s){return this._request=new XMLHttpRequest,this._request.open(t,e),this._request.setRequestHeader("X-Requested-With","XMLHttpRequest"),s&&this._request.setRequestHeader("Content-type",s),this._request}constructor(){this._request=null,this._errorHandlingInternal=!1}}},492:(t,e,s)=>{s.r(e),s.d(e,{default:()=>l});var r=s(592);class n{static isSupported(){return"undefined"!==document.cookie}static setItem(t,e,s){if(null==t)throw Error("You must specify a key to set a cookie");let r=new Date;r.setTime(r.getTime()+864e5*s);let n="";"https:"===location.protocol&&(n="secure"),document.cookie="".concat(t,"=").concat(e,";expires=").concat(r.toUTCString(),";path=/;sameSite=lax;").concat(n)}static getItem(t){if(!t)return!1;let e=t+"=",s=document.cookie.split(";");for(let t=0;t<s.length;t++){let r=s[t];for(;" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(e))return r.substring(e.length,r.length)}return!1}static removeItem(t){document.cookie="".concat(t,"= ; expires = Thu, 01 Jan 1970 00:00:00 GMT;path=/")}static key(){return""}static clear(){}}class o{setItem(t,e){return this._storage[t]=e}getItem(t){return Object.prototype.hasOwnProperty.call(this._storage,t)?this._storage[t]:null}removeItem(t){return delete this._storage[t]}key(t){return Object.values(this._storage)[t]||null}clear(){return this._storage={}}constructor(){this._storage={}}}class i{_chooseStorage(){return i._isSupported("localStorage")?this._storage=window.localStorage:i._isSupported("sessionStorage")?this._storage=window.sessionStorage:n.isSupported()?this._storage=n:this._storage=new o}static _isSupported(t){try{let e="__storage_test";return window[t].setItem(e,"1"),window[t].removeItem(e),!0}catch(t){return!1}}_validateStorage(){if("function"!=typeof this._storage.setItem)throw Error('The storage must have a "setItem" function');if("function"!=typeof this._storage.getItem)throw Error('The storage must have a "getItem" function');if("function"!=typeof this._storage.removeItem)throw Error('The storage must have a "removeItem" function');if("function"!=typeof this._storage.key)throw Error('The storage must have a "key" function');if("function"!=typeof this._storage.clear)throw Error('The storage must have a "clear" function')}getStorage(){return this._storage}constructor(){this._storage=null,this._chooseStorage(),this._validateStorage()}}let a=Object.freeze(new i).getStorage();class l extends window.PluginBaseClass{init(){this._client=new r.Z,this.fetchData()}fetchData(){let t,e;let s=navigator.userAgent;
1if(s&&/bot|googlebot|robot|baidu|crawl|crawler|bingbot|yahoo|yandexbot|msnbot|slurp|spider|mediapartners/i.test(s))return;let r=this.el.parentElement.getAttribute(this.options.cmsElementId),n=this.el.getAttribute(this.options.lastSeenProductId),o=this.el.getAttribute(this.options.lastSeenAction);o&&(n?this._client.get(o,(t,e)=>{if(200===e.status&&t){this.el.innerHTML=t,window.PluginManager.initializePlugins(),Object.keys(a).forEach(t=>{t.startsWith(this.options.lastSeenWidgetStorageKey)&&a.removeItem(t)});try{a.setItem(this.options.lastSeenWidgetStorageKey,t)}catch(e){a.clear(),a.setItem(this.options.lastSeenWidgetStorageKey,t)}}}):(e=r?this.options.lastSeenWidgetStorageKey+"-"+r:this.options.lastSeenWidgetStorageKey,(t=a.getItem(e))?(this.el.innerHTML=t,window.PluginManager.initializePlugins()):this._client.get(o,(t,s)=>{if(200===s.status&&t){this.el.innerHTML=t,window.PluginManager.initializePlugins();try{a.setItem(e,t)}catch(s){a.clear(),a.setItem(e,t)}}})))}}l.options={lastSeenWidgetStorageKey:"cbax-lastseen-template",lastSeenAction:"data-cbax-lastseeen-action",lastSeenProductId:"data-cbax-lastseen-productId",cmsElementId:"data-cms-element-id"}}}]);

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.