PageSourceSearch

https://www.astridandmiyu.com/cdn/shop/t/1379/assets/gift-bar.js?v=100742332350441937481789975543

js astridandmiyu.com collected 2026-09-24 21:56:43 UTC 1,817 bytes, 2 lines download raw bytes

1const{getElement}=window.BAO.Utils;class GiftBar extends window.BAO.CustomElement(){static get requiredElements(){return["added","input"]}setupListeners(){super.setupListeners(),this.onSelfClick=this.onSelfClick.bind(this),this.listeners.add(this,"click",this.onSelfClick)}onSelfClick(event){event.preventDefault(),this.giftDrawer.activator=this,this.giftDrawer.productId=this.dataset.productId,this.giftDrawer.variantId=this.dataset.variantId,this.extrasIds.length>0&&this.giftDrawer.extras.forEach(el=>{el.setAttribute("aria-selected",this.extrasIds.includes(Number(el.dataset.variantId)).toString())}),window.drawers.activeDrawerKey=this.drawerId}get drawerId(){return"gifting"}get giftDrawer(){return getElement("gift-drawer")}get applyAsAdd(){return this.dataset.applyAsAdd==="true"}get applyAsUpdate(){return this.dataset.applyAsUpdate==="true"}get giftingMessage(){return this?.els?.added?this.els.added.element.value:""}get hasGifting(){return this.dataset.active==="true"}set hasGifting(val){this.dataset.active=val.toString(),this.els.input.element.checked=val}get extrasIds(){const ids=this.dataset.extrasIds.split(",").filter(Boolean);return ids.length===0?[]:ids.map(id=>Number(id))}set extrasIds(val){this.dataset.extrasIds=val.join(",")}get extrasIdsFree(){const ids=this.dataset.extrasIdsFree.split(",").filter(Boolean);return ids.length===0?[]:ids.map(id=>id)}set extrasIdsFree(val){this.dataset.extrasIdsFree=val.join(",")}get extrasIdsTypes(){return this.dataset.extrasIdsTypes.split("|").map(id=>id)}set extrasIdsTypes(val){this.dataset.extrasIdsTypes=val.join(",")}get productType(){return this.dataset.productType??"default"}}customElements.get("gift-bar")||customElements.define("gift-bar",GiftBar);
2//# sourceMappingURL=/cdn/shop/t/1379/assets/gift-bar.js.map?v=100742332350441937481789975543

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.