PageSourceSearch

https://www.deubaxxl.ch/theme/de3e7bf9900195ea10db7d165f4ffb5c/js/…mmendy.recommendy-tracking.plugin.97eade.js

js deubaxxl.ch collected 2026-09-29 01:09:53 UTC 3,494 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkrecommendy=self.webpackChunkrecommendy||[]).push([[71513],{68(e,t,r){r.d(t,{A:()=>n});class n{constructor(){this._request=null,this._errorHandlingInternal=!1}get(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",n=this._createPreparedRequest("GET",e,r);return this._sendRequest(n,null,t)}post(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";n=this._getContentType(t,n);let s=this._createPreparedRequest("POST",e,n);return this._sendRequest(s,t,r)}delete(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";n=this._getContentType(t,n);let s=this._createPreparedRequest("DELETE",e,n);return this._sendRequest(s,t,r)}patch(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";n=this._getContentType(t,n);let s=this._createPreparedRequest("PATCH",e,n);return this._sendRequest(s,t,r)}abort(){if(this._request)return this._request.abort()}setErrorHandlingInternal(e){this._errorHandlingInternal=e}_registerOnLoaded(e,t){t&&(!0===this._errorHandlingInternal?(e.addEventListener("load",()=>{t(e.responseText,e)}),e.addEventListener("abort",()=>{console.warn(`the request to ${e.responseURL} was aborted`)}),e.addEventListener("error",()=>{console.warn(`the request to ${e.responseURL} failed with status ${e.status}`)}),e.addEventListener("timeout",()=>{console.warn(`the request to ${e.responseURL} timed out`)})):e.addEventListener("loadend",()=>{t(e.responseText,e)}))}_sendRequest(e,t,r){return this._registerOnLoaded(e,r),e.send(t),e}_getContentType(e,t){return e instanceof FormData&&(t=!1),t}_createPreparedRequest(e,t,r){return this._request=new XMLHttpRequest,this._request.open(e,t),this._request.setRequestHeader("X-Requested-With","XMLHttpRequest"),r&&this._request.setRequestHeader("Content-type",r),this._request}}},513(e,t,r){r.r(t),r.d(t,{default:()=>s});var n=r(907);class s extends window.PluginBaseClass{init(){n.A.checkLocalStorage()}}},907(e,t,r){r.d(t,{A:()=>s});var n=r(68);class s{static getSessionId(){let e=localStorage.getItem("vai_session");if(!e){try{e=crypto.randomUUID()}catch{e=this._generateUuid()}localStorage.setItem("vai_session",e)}return e}static _generateUuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}static track(e,t,r,s){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;this.httpClient||(this.httpClient=new n.A);let d=this.getSessionId();i?this.httpClient.post(e,JSON.stringify({productId:t,actionId:r,sessionId:d,quantity:s,price:a,currentProductId:o}),function(e){}):localStorage.setItem("RecommendyTracking",JSON.stringify({url:e,productId:t,actionId:r,sessionId:d,quantity:s,price:a,currentProductId:o}))}static checkLocalStorage(){this.httpClient||(this.httpClient=new n.A);let e=localStorage.getItem("RecommendyTracking");e&&(localStorage.removeItem("RecommendyTracking"),e=JSON.parse(e),this.track(e.url,e.productId,e.actionId,e.quantity,!0,e.price,e.currentProductId));let t=localStorage.getItem("RecommendyOrderTracking");t&&(localStorage.removeItem("RecommendyOrderTracking"),(t=JSON.parse(t)).forEach(e=>{this.track(e.url,e.productId,e.actionId,e.quantity,!0,e.price)}))}static getUrl(){return window.vairouter["frontend.vai.track"]}}}}]);

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.