PageSourceSearch

https://100thieves.com/cdn/shop/t/725/assets/component-product-card.js?v=120114094359694860071776706983

js 100thieves.com collected 2026-10-03 23:12:23 UTC 1,948 bytes, 2 lines download raw bytes

1import{utils,LitElement,html}from"@hh/global.js";const{addToCart,reRenderShopifySections}=utils;class HHProductCard extends LitElement{static properties={canAddToCart:{type:Boolean,attribute:"add-to-cart",reflect:!0},active:{type:Boolean,reflect:!0},mobileActive:{type:Boolean,reflect:!0,attribute:"mobile-active"},hasSize:{type:Boolean,attribute:"has-size"},isCartPage:{type:Boolean,attribute:"is-cart-page",reflect:!0}};constructor(){super(),this.active=!1}connectedCallback(){super.connectedCallback(),this._toggleEventListeners(!0)}disconnectedCallback(){super.disconnectedCallback(),this._toggleEventListeners(!1)}_toggleEventListeners(flag){this.canAddToCart&&(document.body[`${flag?"add":"remove"}EventListener`]("click",this.handleBodyClick.bind(this)),this.querySelectorAll("[data-variant-id]").forEach(button=>{button[`${flag?"add":"remove"}EventListener`]("click",this.onClickHandler.bind(this))}))}async onClickHandler(event){event.preventDefault();const{target}=event;if(target.hasAttribute("data-mobile-quick-add-toggle")){this.toggleQuickAdd(event);return}this.classList.add("loading");const sections=this.isCartPage?"inline-cart,header":"mini-cart,header";reRenderShopifySections(await addToCart({id:target.dataset.variantId,quantity:1},sections)),this.classList.remove("loading"),this.mobileActive&&this.toggleQuickAdd(event),document.body.classList.add("mini-cart-is-active"),document.querySelectorAll("s-header").forEach(header=>{header.connectedCallback()})}handleBodyClick(e){if((e.path||e.composedPath&&e.composedPath()).some(node=>node===this))return!0;this.active=!1}toggleQuickAdd(event){event.preventDefault();const{target}=event;this.mobileActive=!this.mobileActive,target.setAttribute("aria-expanded",this.mobileActive)}render(){return html`<slot></slot>`}}customElements.define("hh-product-card",HHProductCard);
2//# sourceMappingURL=/cdn/shop/t/725/assets/component-product-card.js.map?v=120114094359694860071776706983

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.