PageSourceSearch

https://www.theaterbellevue.nl/dist/vite/site/js/wishlist_remove_button_controller.Bjvpdyb1.js

js theaterbellevue.nl collected 2026-10-03 21:50:54 UTC 1,101 bytes, 2 lines download raw bytes

1import{C as d}from"./site.4FScMMdi.js";import{w as p,u as f}from"./datalayer.3if5DSq5.js";import{f as r}from"./fetchData.E2TeMMfN.js";import{u as w}from"./createStore.Dm90ZrIA.js";import"./password-strength.AqUmoxgQ.js";function y(i){return typeof i=="object"&&i!==null}const a=class a extends d{constructor(){super(...arguments),this.fetchFn=r}connect(){w(this)}async removeItem(t){t.preventDefault(),t.stopPropagation();const{id:e,removeEndpoint:l}=t.params,o=new FormData;o.append("id",e);const s=await r(l,"POST",{body:o}),m=this.element.querySelector(".btnRemoveWishList");f("add_to_wishlist",m.dataset),s.ok&&y(s.data)?(Object.entries(s.data).forEach(([c,h])=>{h===!0&&this.setWishlistValue([...this.wishlistValue.filter(u=>u!==Number(c))])}),this.removeElement()):console.error("Failed to remove item from wishlist",s)}removeElement(){this.element.remove()}onWishlistUpdate(){var e;((e=this.wishlistValue)==null?void 0:e.length)<1&&window.location.reload()}};a.values={id:String},a.stores=[p];let n=a;export{n as default};
2//# sourceMappingURL=wishlist_remove_button_controller.Bjvpdyb1.js.map

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.