PageSourceSearch

https://www.eps-vertrieb.de/theme/fdf8b314caeda18727a178f36706e1b1…/wt-template.extra-demand.plugin.0253a0.js

js eps-vertrieb.de collected 2026-09-24 13:12:23 UTC 1,994 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[17933],{7933(e,t,n){n.r(t),n.d(t,{default:()=>i});class i extends window.PluginBaseClass{init(){this.onClick=this.onClick.bind(this),this.endpoint=this.options.endpoint||"/eps/forecast";let e=document.querySelector('meta[name="sw-context-token"]');this.contextToken=e?e.getAttribute("content"):null,this.el.addEventListener("click",this.onClick)}destroy(){this.el.removeEventListener("click",this.onClick)}onClick(e){if(e.preventDefault(),e.stopPropagation(),"undefined"==typeof Swal){console.warn("SweetAlert2 (Swal) ist nicht geladen.");return}let{productId:t,productNumber:n,productName:i}=this.el.dataset;Swal.fire({title:"Mehr Bedarf melden",text:i||"",input:"number",inputLabel:"Gewünschte Stückzahl",inputPlaceholder:"z.B. 250",inputAttributes:{min:1,step:1},showCancelButton:!0,confirmButtonText:"Senden",cancelButtonText:"Abbrechen",confirmButtonColor:"#2aa37a",cancelButtonColor:"#6c757d",footer:"Dies ist keine Bestellung, sondern eine unverbindliche Bedarfsmeldung, die EPS hilft, den Bestand besser zu planen. Es erfolgt keine Auftragsbestätigung. Vielen Dank für Ihre Unterstützung!",preConfirm:e=>!e||0>=Number(e)?(Swal.showValidationMessage("Bitte eine gültige Anzahl eingeben."),!1):Number(e)}).then(e=>{e.isConfirmed&&e.value&&this.sendDemand({productId:t,productNumber:n,quantity:Number(e.value)})})}async sendDemand(e){try{let t=await fetch(this.endpoint,{method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",...this.contextToken?{"sw-context-token":this.contextToken}:{}},body:JSON.stringify(e)});if(!t.ok)throw Error("Request failed");await t.json(),Swal.fire({icon:"success",title:"Vielen Dank!",text:"Wir haben Ihren Mehrbedarf erhalten.",confirmButtonColor:"#2aa37a"})}catch(e){console.error(e),Swal.fire({icon:"error",title:"Fehler",text:"Ihre Anfrage konnte nicht gesendet werden. Bitte versuchen Sie es später erneut.",confirmButtonColor:"#d63333"})}}}}}]);

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.