PageSourceSearch

https://www.juliska.com/cdn/shop/t/724/assets/swym-registry.js?v=114733538680296900251790257450

js juliska.com collected 2026-10-03 22:11:09 UTC 1,497 bytes, 2 lines download raw bytes

1customElements.get("add-to-registry")||customElements.define("add-to-registry",class extends HTMLElement{constructor(){super(),this.sku=this.dataset.sku,this.price=this.dataset.price,this.category=this.dataset.category,this.title=this.dataset.title,this.image=this.dataset.image,this.url=this.dataset.url}connectedCallback(){this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeydown.bind(this))}handleKeydown(event){(event.key==="Enter"||event.key===" ")&&(event.preventDefault(),this.handleClick())}beforeAddToRegistry(){let currency="USD",trackingItemData={item_name:this.title,item_id:this.sku,quantity:1,price:this.price,currency,item_brand:"Juliska",category:this.category,affiliation:"Juliska Shopify Website",index:0};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"add_to_registry",currency,value:this.price,ecommerce:{items:[{...trackingItemData}]}})}async handleClick(){if(!window.MyRegistrySDK){console.error("Attempted to open My Registry modal, but MyRegistrySDK has not loaded yet.");return}this.beforeAddToRegistry();const gift={Title:this.title,ImageUrl:this.image.replace(/http(s*):/,""),URL:this.url,Price:this.price/100,Quantity:1,SKU:this.sku,Hide
1Size:!0,HideColor:!0};try{const myRegistrysSDK=new window.MyRegistrySDK(gift);myRegistrysSDK&&myRegistrysSDK.showPopup()}catch(error){console.error(error)}}});
2//# sourceMappingURL=/cdn/shop/t/724/assets/swym-registry.js.map?v=114733538680296900251790257450

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.