1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[93299],{3299(e,t,i){i.r(t),i.d(t,{default:()=>s});class s extends window.PluginBaseClass{static #e=this.options={};init(){this.el?.addEventListener("click",async()=>{let e=this.el.dataset?.productIds??this.el.parentElement.dataset.productIds,t=this.el.dataset?.quantities??this.el.parentElement.dataset.quantities??null,{value:i}=await Swal.fire({title:"Bestelliste erstellen",input:"text",inputLabel:"Name der Bestelliste",inputPlaceholder:"z.â¯B. Bürobedarf",showCancelButton:!0,confirmButtonText:"Erstellen",cancelButtonText:"Abbrechen",inputValidator:e=>{if(!e)return"Bitte geben Sie einen Namen ein!"}});if(i)try{if((await fetch("/wt/shopping-list/create",{method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify({name:i,productIds:e,quantities:t})})).ok)await Swal.fire({icon:"success",title:"Bestelliste erstellt",text:`Die Liste "${i}" wurde erfolgreich erstellt.`,timer:2e3,showConfirmButton:!1});else throw Error("Fehler beim Erstellen der Bestelliste.")}catch(e){await Swal.fire({icon:"error",title:"Fehler",text:e.message})}})}}}}]);
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.