1(function(){"use strict";function ready(fn){document.readyState!=="loading"?fn():document.addEventListener("DOMContentLoaded",fn)}ready(function(){var handle=(location.pathname.match(/\/products\/([^/?#]+)/)||[])[1]||window.product&&window.product.handle||null;handle&&fetch("/products/"+handle+".js",{credentials:"same-origin"}).then(function(r){return r.json()}).then(function(product){var variants=product.variants||[],optCount=(product.options||[]).length||1;function readSelections(scope){var picker=scope.querySelector("variant-radios, variant-selects");if(picker){var selects=picker.querySelectorAll("select");if(selects.length)return Array.prototype.map.call(selects,function(s){return s.value});var fsets=picker.querySelectorAll("fieldset");if(fsets.length)return Array.prototype.map.call(fsets,function(fs){var c=fs.querySelector("input:checked");return c?c.value:null})}var radios=scope.querySelectorAll('input[type="radio"]:checked');if(radios.length)return Array.prototype.map.call(radios,function(r){return r.value});var sels=scope.querySelectorAll("select[name], select[data-index]");return sels.length?Array.prototype.map.call(sels,function(s){return s.value}):[]}function findVariant(sel){return variants.find(function(v){return!(sel[0]!=null&&v.option1!==sel[0]||optCount>1&&sel[1]!=null&&v.option2!==sel[1]||optCount>2&&sel[2]!=null&&v.option3!==sel[2])})}function syncAll(){var forms=document.querySelectorAll('form[action*="/cart/add"]');Array.prototype.forEach.call(forms,function(form){var scope=form.closest(".shopify-section")||document,sel=readSelections(scope);if(!(!sel.length||sel.some(function(s){return s==null}))){var v=findVariant(sel),idInput=form.querySelector('[name="id"]');idInput&&(v?(idInput.disabled=!1,idInput.value!==String(v.id)&&(idInput.value=v.id,idInput.dispatchEvent(new Event("change",{bubbles:!0})))):(idInput.value="",idInput.disabled=!0))}})}document.addEventListener("change",function(e){e.target.closest('variant-radios, variant-selects, form[action*="/cart/add"]')&&setTimeout(syncAll,60)},!0),document.addEventListener("click",function(e){e.target.closest("variant-radios, variant-selects, label, [data-option-value], [data-index]")&&setTimeout(syncAll,60)},!0),document.addEventListener("submit",function(e){e.target&&e.target.matches&&e.target.matches('form[action*="/cart/add"]')&&syncAll()},!0),syncAll(),window.__hhvVariantFix={syncAll:syncAll,variants:variants}}).catch(function(e){console.error("[hhv-variant-fix]",e)})})})(); 2//# sourceMappingURL=/cdn/shop/t/85/assets/woolman-variant-fix.js.map?v=135104858027383851351787940505
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.