PageSourceSearch

https://www.blivakker.no/js/views/contentManagement/cartTotal/cartTotalHandler.js

js blivakker.no collected 2026-09-25 19:04:06 UTC 605 bytes, 1 lines download raw bytes

1import o from"../../../global/cart/globalCartChangedEventHandler.js";import t from"../../../global/cart/globalCouponChangedEventHandler.js";import{ContentManagementComponentBase as r}from"../contentManagementComponentBase.js";export class CartTotalHandler extends r{constructor(e){super(e),o.subscribe(this.onAlterCart),t.subscribe(this.onAlterCoupon)}onAlterCart=e=>{(e.eventType==="ProductAdded"||e.eventType==="ProductRemoved"||e.eventType==="MultipleProductsAdded"||e.eventType==="LoyaltyBonusAmountUpdated")&&this.reload()};onAlterCoupon=e=>{(e==="CouponAdded"||e==="CouponRemoved")&&this.reload()}}

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.