PageSourceSearch

https://schneidersladen.de/theme/eee2504306c14bdc1d46a56402b4cc55/…-sw6.customer-product-note.plugin.0be28c.js

js schneidersladen.de collected 2026-09-25 03:46:44 UTC 1,637 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcoe_wishlist_sw6=self.webpackChunkcoe_wishlist_sw6||[]).push([[49026],{26(e,t,s){s.r(t),s.d(t,{default:()=>l});var i=s(737),n=s(795),o=s(68);class l extends i.A{static #e=this.options={noteId:null};init(){this.messageContainer=n.A.querySelector(this.el,".js-ajax-container-note-message"),this._client=new o.A,this.deleteButton=n.A.querySelector(this.el,".js-delete-notice"),this.deleteUrl=this.el.dataset.urlDelete,this.registerEvents()}registerEvents(){this.deleteButton.addEventListener("click",this.deleteNote.bind(this)),this.$emitter.subscribe("onAfterAjaxSubmit",this.handleNoteSubmitResponse.bind(this)),this.updateDeleteButtonState()}handleNoteSubmitResponse(e){let t=JSON.parse(e.detail.response);t.noteId&&(this.options.noteId=t.noteId,this.updateDeleteButtonState()),this.addMessage(t.message,"success"),this.publishEvent(),window.PluginManager.initializePlugins()}addMessage(e,t){this.messageContainer.innerHTML=e,this.messageContainer.classList.remove("d-none")}updateDeleteButtonState(){this.deleteButton.disabled=null===this.options.noteId||void 0===this.options.noteId}deleteNote(){let e=new FormData;e.append("noteId",this.options.noteId),this._client.post(this.deleteUrl,e,this.handleDelete.bind(this))}handleDelete(e){this.el.reset();let t=n.A.querySelector(this.el,"textarea",!1);t&&(t.innerText="");let s=JSON.parse(e);this.addMessage(s.message,"info"),this.options.noteId=null,this.updateDeleteButtonState(),this.publishEvent()}publishEvent(){let e=n.A.querySelector(document,"[data-customer-product-note-check]",!1);e?.$emitter&&e.$emitter.publish("updateCustomerProductNote")}}}}]);

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.