PageSourceSearch

https://liberta-online.jp/cdn/shop/t/20/assets/cart-drawer-upsell.js?v=40121265365990402821782798985

js liberta-online.jp collected 2026-10-04 05:25:55 UTC 1,218 bytes, 2 lines download raw bytes

1(function(){"use strict";const STORAGE_KEY="cartUpsellDismissed";function readDismissed(){try{const raw=sessionStorage.getItem(STORAGE_KEY),parsed=raw?JSON.parse(raw):[];return Array.isArray(parsed)?parsed.map(String):[]}catch{return[]}}function rememberDismissed(id){if(!id)return;const list=readDismissed();if(!list.includes(String(id))){list.push(String(id));try{sessionStorage.setItem(STORAGE_KEY,JSON.stringify(list))}catch{}}}function isDismissed(id){return id!=null&&readDismissed().includes(String(id))}customElements.get("cart-drawer-upsell")||customElements.define("cart-drawer-upsell",class extends HTMLElement{connectedCallback(){const id=this.dataset.productId;if(isDismissed(id)){this.hidden=!0;return}this._closeBtn=this.querySelector("[data-upsell-dismiss]"),this._closeBtn&&(this._onDismiss=()=>this.dismiss(),this._closeBtn.addEventListener("click",this._onDismiss))}disconnectedCallback(){this._closeBtn&&this._onDismiss&&this._closeBtn.removeEventListener("click",this._onDismiss),this._closeBtn=null,this._onDismiss=null}dismiss(){rememberDismissed(this.dataset.productId),this.hidden=!0}})})();
2//# sourceMappingURL=/cdn/shop/t/20/assets/cart-drawer-upsell.js.map?v=40121265365990402821782798985

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.