PageSourceSearch

https://www.inventables.com/cdn/shop/t/129/assets/inventables.js?v=80842188553828832271787070267

js inventables.com collected 2026-09-24 08:48:55 UTC 2,419 bytes, 2 lines download raw bytes

1class VariantMetafields extends HTMLElement{constructor(){super()}getMetafields(){return this.metafields=this.metafields||JSON.parse(this.querySelector('[type="application/json"]').textContent),this.metafields}}customElements.define("variant-metafields",VariantMetafields);function suppressInvalidOptions(metaFields,variantData){variantData.forEach(variant=>{metaFields[variant.id]&&(variant.available=metaFields[variant.id].available)})}document.addEventListener("DOMContentLoaded",()=>{let variantRadios=document.querySelectorAll("variant-radios")[0];if(variantRadios==null)return;let variantData=variantRadios.getVariantData(),metaFields=document.querySelectorAll("variant-metafields")[0].getMetafields();suppressInvalidOptions(metaFields,variantData);const fieldsets=Array.from(variantRadios.querySelectorAll("fieldset")),optionGroups=fieldsets.map(fs=>Array.from(fs.querySelectorAll("input"))),labelGroups=fieldsets.map(fs=>Array.from(fs.querySelectorAll("label")));optionGroups.forEach((og,i)=>{const availableOptions=[];let needsReset=!1;og.forEach((option,j)=>{variantData.find(variant=>variant.options[i]===option.value&&variant.available)?availableOptions.push(option):(option.checked&&(needsReset=!0),option.style.display="none",labelGroups[i][j].style.display="none")}),needsReset&&availableOptions.length>0&&(availableOptions[0].checked=!0)}),variantRadios.onVariantChange()}),document.addEventListener("DOMContentLoaded",()=>{let variantRadiosList=document.querySelectorAll("variant-radios-list")[0];if(variantRadiosList==null)return;let variantData=variantRadiosList.getVariantData(),metaFields=document.querySelectorAll("variant-metafields")[0].getMetafields();suppressInvalidOptions(metaFields,variantData);const fieldset=Array.from(variantRadiosList.querySelectorAll("fieldset")),variants=fieldset.map(fs=>Array.from(fs.querySelectorAll("input"))).flat(),labels=fieldset.map(fs=>Array.from(fs.querySelectorAll("label"))).flat(),availableVariants=[];let needsReset=!1;
1variants.forEach((variant,i)=>{variantData.find(v=>v.id.toString()===variant.value&&v.available)?availableVariants.push(variant):(variant.checked&&(needsReset=!0),variant.style.display="none",labels[i].style.display="none")}),needsReset&&availableVariants.length>0&&(availableVariants[0].checked=!0),variantRadiosList.onVariantChange()});
2//# sourceMappingURL=/cdn/shop/t/129/assets/inventables.js.map?v=80842188553828832271787070267

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.