PageSourceSearch

https://elislist.com/cdn/shop/t/30/assets/variable-products.js?v=47144465624940793241638391810

js elislist.com collected 2026-10-09 23:46:46 UTC 30,341 bytes, 1 lines download raw bytes

1function variableProductsInit(e){function t(){function t(t){let r=undefined;if(e.collectionConditions.length){const e=window.location.pathname.match(/.*\/collections\/([\w\d-]+)/)||decodeURI(window.location.pathname).match(/.*\/collections\/((\w|[^\x00-\x7F]|-)+)/);e&&e[1]&&(r=variableParams.collectionConditions.find(t=>t.collection_handle==e[1]))}if(!r)return 0;a(t,(e,t,a)=>{if(!r.conditions.length)return;e.classList.contains("variable-products")||(e=e.parentElement);const o=[1,2,3];if("all"==r.match_type)r.conditions.forEach(r=>{const i=r.option_value.replace(/"/g,"");let n=!1;if(o.forEach(o=>{const l=`option${o}`,c=t[l].replace(/\s/g," ");if(a.options[l]&&a.options[l].name==r.option_name)switch(n=!0,r.operator){case"equal_to":c!==i&&e.classList.add("variable-removing");break;case"not_equal_to":c===i&&e.classList.add("variable-removing");break;default:e.classList.add("variable-removing")}}),!n)switch(r.operator){case"equal_to":e.classList.add("variable-removing")}});else if("any"==r.match_type){let i=!1,n=!1;r.conditions.forEach(e=>{const r=e.option_value.replace(/"/g,"");if(o.forEach(o=>{const l=`option${o}`,c=t[l].replace(/\s/g," ");if(a.options[l]&&a.options[l].name==e.option_name)switch(n=!0,e.operator){case"equal_to":c===r&&(i=!0);break;case"not_equal_to":c!==r&&(i=!0)}}),!n)switch(e.operator){case"equal_to":break;case"not_equal_to":i=!0}}),i||e.classList.add("variable-removing")}});const o=document.querySelectorAll(".variable-removing");return o.forEach(e=>{e.remove()}),o.length}function a(t,a){$.each(t,function(t,r){try{var o;if(n>1?o=l(r,y,n,r):1==n&&document.querySelector(e.wrapSelector)&&(o=document.querySelector(e.wrapSelector).children[0].children[0]),o){var i;!o.querySelector("img")&&(1==o.parentElement.querySelectorAll("img").length||o.parentElement.classList.contains("variable-products")&&o.parentElement.querySelectorAll("img").length)&&(o=o.parentElement),o.querySelectorAll('a[href*="/products/"]').forEach(function(e){e.href.match(/.*\/products\/([\S-]+)/)&&(i=e)}),i||"A"!=o.tagName||(i=o);var c=i.href.match(/.*\/products\/([\S-]+)/);productSlug=c[1];var s=productSlug.match(/([\S-]+)\?/);if(productSlug=s?s[1]:productSlug,product=b.find(function(e){return e[productSlug]||e[decodeURIComponent(productSlug)]}),product){product=product[productSlug]||product[decodeURIComponent(productSlug)],variantMatch=i.href.match(/variant=(\d+)/),variantId=variantMatch?variantMatch[1]:product.variants[0].id;var d=product.variants.find(function(e){return e.id==variantId});a(o,d,product,productSlug,variantId)}}}catch(u){}})}function r(t){function r(e){$.getJSON("/products/"+e+".js",function(t){var a=p[e]&&p[e].assignVariant;p[e]=t,document.querySelectorAll('[data-product_slug="'+e+'"]').forEach(function(e){n(e)}),a&&i(a.selectWrap,a.selectedData)})}function i(t,a){var o=t.parent().find('[data-behavior="variable-products_add_to_cart"]')[0],i=t.data("product_slug");if(p[i]){var n=JSON.parse(decodeURIComponent(t.data("ctitle"))),l=Object.assign(n,a);if(p[i].variants){var c=p[i].variants.find(function(e){var t=Object.keys(l).length;if(Object.keys(l).forEach(function(a){e[a]==l[a]&&(t-=1)}),!t)return e});c&&(o.dataset.variant_id=c.id,t[0].dataset.variant_id=c.id,c.available?$(o).removeClass("btn--secondary").removeClass("disabled").attr("disabled",!1).text(e.addToCartLabels.addToCart):$(o).removeClass("btn--secondary").addClass("disabled").attr("disabled",!0).text(e.addToCartLabels.soldOut))}else p[i].assignVariant={selectWrap:t,selectedData:a}}else r(i)}function n(e){var t=e.dataset.product_slug;if(p[t]&&p[t].variants){for(var a=1;a<=3;a++){var r="option"+a,o=e.querySelector('[data-option_key="'+r+'"]');if(o){var i="",n=p[t].variants.find(function(t){return t.id==e.dataset.variant_id});p[t].variants.filter(function(e){return!("option1"!=r&&n.option1!=e.option1||"option2"!=r&&n.option2!=e.option2||"option3"!=r&&n.option3!=e.option3)}).forEach(function(e){var t=n==e?"selected":"";i+='<option value="'+e[r]+'"'+t+">"+e[r]+"</option>"}),o.innerHTML=i}}$('[data-behavior="variable-products_cart_error"]').text("")}}function l(t,a,r,o,i){var n=document.createElement("div");return n.className="variable-add_to_cart-wrapper",n.innerHTML='<span class="variable-add_to_cart-footer">\n                              <div class="variable-add_to_cart-options_wrapper" data-behavior="variable-products_options_wrapper"\n                                   data-product_slug="'+t+'"\n                                   data-ctitle='+encodeURIComponent(JSON.stringify(o))+'\n                                   data-variant_id="'+a+'">\n                                '+r+`\n                              </div>\n                              <div class="variable-add_to_cart-options_wrapper">\n                                <div class="variable-add_to_cart-quantity" data-behavior="variable-products_quantity">\n                                  <label for="variableQuantity_${a}">${e.addToCartLabels.quantity}</label>\n                                  <input type="number" value="1" id="variableQuantity_${a}" name="variableQuantity_${a}" min="1" />\n                                </div>\n                                <div class="variable-add_to_cart-btn">\n                                  <a href="javascript:void(0)" class="btn btn--fill btn--regular btn--color ${e.styles.add_to_cart_class||""} ${i?"":"disabled"}"\n                                     data-behavior="variable-products_add_to_cart" data-variant_id="`+a+'"\n                                     '+(i?"":"disabled")+">\n                                    "+(i?e.addToCartLabels.addToCart:e.addToCartLabels.soldOut)+'\n                                  </a>\n                                </div>\n                              </div>\n                              <p class="error" data-behavior="variable-products_cart_error"></p>\n                            </span>',n}if(e.add_to_cart_enabled&&!d()){a(t,(t,a,r,o,i)=>{e.addToCartInfo.initOnParent&&(t=t.parentElement);let n="";
1"show_all"!==e.optionsViewType&&Object.keys(r.options).forEach(function(e){var t=r.options[e];if(!a.ctitle[e]&&("Title"!==t.name||"Default Title"!==t.values[0])){var o=a.id+"variable-option_"+t.name,i="";t.values.forEach(function(t){var r=a[e]==t?"selected":"";i+='<option value="'+t+'"'+r+">"+t+"</option>"}),n+='<div class="variable-add_to_cart-option">\n                            <label for="'+o+'">'+t.name+'</label>\n                            <select name="'+o+'" data-behavior="variable-products_options-selector"\n                                                            data-option_key="'+e+'">'+i+"</select>\n                          </div>"}}),$(t).addClass("variable-add_to_cart-product"),t.querySelector(".variable-add_to_cart-wrapper")||t.appendChild(l(o,i,n,a.ctitle,a.available))}),$(document).on("click",'[data-behavior="variable-products_add_to_cart"]:not(.btn--secondary):not([disabled=""])',function(t){t.preventDefault();const a=t.currentTarget;$.ajax({url:"/cart/add.js",method:"post",data:{quantity:a.parentElement.parentElement.querySelector('[data-behavior="variable-products_quantity"] input').value,id:a.dataset.variant_id}}).always(function(r){if("string"==typeof r)try{r=JSON.parse(r)}catch(t){console.log(t)}200==r.status||r.variant_id?($(a).addClass("btn--secondary").text(e.addToCartLabels.goToCheckout),$('[data-behavior="variable-products_cart_error"]').text("")):$(a).parents(".variable-add_to_cart-footer").find('[data-behavior="variable-products_cart_error"]').text(JSON.parse(r.responseText).description)})}),$(document).on("click",".variable-add_to_cart-footer",function(e){e.preventDefault()});var c={children:{}};$(document).on("mouseenter",".variable-add_to_cart-product",function(e){var t=e.currentTarget.querySelector(".grid-view-item__link:not(.full-width-link)");t&&(c.debutLinkPosition=t.style.position,t.style.position="relative");var a=e.currentTarget.querySelector("a.full-width-link");a&&(c.debutLinkZIndex=a.style.zIndex,a.style.zIndex=21);var r=o();r&&(c.debutOverflowWrap=r.style.position,r.style.overflow="visible"),$.each($(e.currentTarget.children),function(e,t){$(t).hasClass("variable-add_to_cart-wrapper")||$(t).find(".placeholder-svg").length&&$(t).find(".badge").length||$(t).hasClass("product__prices")&&$(t).find(".badge").length||$(t).hasClass("full-width-link")||(c["child"+e]=t.style.position,t.style.position="relative"),$(t).hasClass("product__prices")&&$(t).find(".badge").length&&$.each($(t.children),function(e,t){$(t).hasClass("badge")||$(t).find(".badge").length||(c.children[t]=t.style.position,t.style.position="relative")})});var i=e.currentTarget.querySelector(".placeholder-svg");i&&(c.debutLinkPosition=i.style.position,i.style.position="relative");var n=e.currentTarget.querySelector('[data-behavior="variable-products_add_to_cart"]');n&&(c.debutLinkPosition=n.style.position,n.style.position="relative",n.offsetWidth>.6*e.currentTarget.querySelector(".variable-add_to_cart-options_wrapper").offsetWidth&&(e.currentTarget.querySelector(".variable-add_to_cart-quantity").style.width="60%"));var l=document.body.querySelector("#StickyBar")||document.body.querySelector(".action-area");l&&(c.ventureNavZIndex=l.style.zIndex,l.style.zIndex=21),$(e.currentTarget.parentElement).hasClass("critical-clear")&&(c.narrative1CriticalParentPosition=e.currentTarget.parentElement.style.position,c.narrative1CriticalParentZIndex=e.currentTarget.parentElement.style.zIndex,e.currentTarget.parentElement.style.position="relative",e.currentTarget.parentElement.style.zIndex=3),"auto"==getComputedStyle(e.currentTarget.parentElement).zIndex&&(c.parentZIndex="auto",e.currentTarget.parentElement.style.zIndex=3);var s=$(e.currentTarget.parentElement).parents("main")[0];if(s&&"hidden"==getComputedStyle(s).overflow&&(c.simpleMainParentOverflow=s.style.overflow,s.style.overflow="visible"),e.currentTarget.querySelectorAll('a[href*="/products/"]').forEach(function(t){var a=e.currentTarget.querySelector('[data-behavior="variable-product_title"]');a&&t.title&&(t.title=a.textContent.trim())}),"undefined"!=typeof Shopify&&Shopify.theme&&Shopify.theme.name&&Shopify.theme.name.includes("Pop")){var d=e.currentTarget.querySelector(".variable-add_to_cart-wrapper");d&&(c.popWrapbackgroundColor=d.style.backgroundColor,d.style.backgroundColor="transparent")}}).on("mouseleave",".variable-add_to_cart-product",function(e){var t=e.currentTarget.querySelector(".grid-view-item__link:not(.full-width-link)");t&&(t.style.position=c.debutLinkPosition);var a=e.currentTarget.querySelector("a.full-width-link");a&&(a.style.zIndex=c.debutLinkZIndex);var r=o();r&&(r.style.overflow=c.debutOverflowWrap),$.each($(e.currentTarget.children),function(e,t){$(t).hasClass("variable-add_to_cart-wrapper")||$(t).find(".placeholder-svg").length||$(t).hasClass("product__prices")&&$(t).find(".badge").length||$(t).hasClass("full-width-link")||(t.style.position=c["child"+e]),$(t).hasClass("product__prices")&&$(t).find(".badge").length&&$.each($(t.children),function(e,t){$(t).hasClass("badge")||$(t).find(".badge").length||(t.style.position=c.children[t])})}),e.currentTarget.querySelector(".placeholder-svg")&&(r.style.position=c.jumpstartSvgPosition);var i=document.body.querySelector("#StickyBar")||document.body.querySelector(".action-area");i&&(i.style.zIndex=c.ventureNavZIndex),$(e.currentTarget.parentElement).hasClass("critical-clear")&&(e.currentTarget.parentElement.style.position=c.narrative1CriticalParentPosition,e.currentTarget.parentElement.style.zIndex=c.narrative1CriticalParentZIndex),c.parentZIndex&&(e.currentTarget.parentElement.style.zIndex="auto",c.parentZIndex=undefined);var n=$(e.currentTarget.parentElement).parents("main")[0];(n&&c.simpleMainParentOverflow!=undefined&&(n.style.overflow=c.simpleMainParentOverflow),"undefined"!=typeof Shopify&&Shopify.theme)&&(Shopify.theme.name&&Shopify.theme.name.includes("Pop")&&e.currentTarget.querySelector(".variable-add_to_cart-wrapper")&&(pop6CartWrap.style.backgroundColor=c.pop6WrapbackgroundColor))});var s=o();s&&"-"==getComputedStyle(s).marginBottom[0]&&(s.style.marginBottom="0px"),$(document).on("click",'[data-behavior="variable-products_add_to_cart"].btn--secondary',function(){window.location.pathname="/cart"}),"show_all"!==e.optionsViewType&&($(document).on("mouseenter",".variable-add_to_cart-product",function(e){var t=$(e.currentTarget).find('[data-behavior="variable-products_options_wrapper"]').data("product_slug");p[t]||(timer=setTimeout(function(){r(t)},300),p[t]={timer:timer})}).on("mouseleave",".variable-add_to_cart-product",function(e){var t=$(e.currentTarget).find('[data-behavior="variable-products_options_wrapper"]').data("product_slug");p[t]&&p[t].timer&&(clearTimeout(p[t].timer),p[t]=undefined)}),$(document).on("change",'select[data-behavior="variable-products_options-selector"]',function(e){var t=$(e.currentTarget).parents('[data-behavior="variable-products_options_wrapper"]'),a={};a[e.currentTarget.dataset.option_key]=e.currentTarget.value,i(t,a),n(t[0])}),$(document).on("click",".variable-add_to_cart-footer",function(e){e.preventDefault()}))}}function o(){var e=document.querySelector(y);if(e)return c(e,y,n)}function i(){var t=o();
1if(t){var a=t.className.match(/\S*grid\S*/)||t.className.split(" ")[0];const r=s(t);if(a&&r){const t=`#${r} .${a}`;t!=e.wrapSelector&&".grid"!=e.wrapSelector&&$.ajax({method:"GET",url:e.wrapSelectorsUrl,data:{selector:t}})}}}if("undefined"!=typeof jQuery&&jQuery.ajax){var n=document.querySelectorAll(y).length,p={};b&&(n=-u,b.forEach(function(e){n+=e[Object.keys(e)[0]].variants.length}),m.remove(),n-=t($(y)),foundProducts=[],$.each($(y),function(e,t){var a=$(t).parents(".variable-products")[0];a&&!foundProducts.includes(a)&&foundProducts.push(a)}),foundProducts.length==n&&r($(y)),n>1&&e.add_to_cart_enabled&&i())}}function a(){var t=e.variants_titles;for(var a in t){document.querySelectorAll('[data-behavior="variable-product_title"][data-variant_id="'+a+'"]').forEach(function(e){e&&t[a].length>1&&(e.textContent=t[a])})}Shopify.theme.name.includes("Turbo")&&document.querySelectorAll('[data-behavior="variable-product_title"]').forEach(e=>e.classList.add("title"))}function r(){const t=document.querySelector(".variable-products");if(t){const a=t.style.display,r=35,o=25,i=document.querySelectorAll(".variable-products").length;if(document.querySelectorAll(".variable-products").forEach((e,t)=>{t>=r&&(e.style.display="none")}),i>r){let t=!1,n=r;window.addEventListener("scroll",function(){let r=e.styles.footer_min_size||600;const l=document.querySelector("footer");if(l)try{const e=parseInt(getComputedStyle(l).height.slice(0,-2));e+200>r&&(r=e+200)}catch(c){}!t&&window.scrollY+r>document.body.clientHeight-window.innerHeight&&(t=!0,n<i&&(n+=o,document.querySelectorAll(".variable-products").forEach((e,t)=>{t<n&&(e.style.display=a)}),t=!1))})}}}function o(){const e=document.querySelector("#variable-products-load-css");e&&e.remove()}function i(e){const t=[...e.querySelectorAll(".variable-products")].map(e=>"A"==e.tagName?e.href:e.querySelector('a[href*="products"]')&&e.querySelector('a[href*="products"]').href).filter(e=>e);let a={};const r=n(t.map(e=>{const t=decodeURI(e).match(/.*\/products\/([\S]+)\?/);if(t)return a[t[1]]||(a[t[1]]=[]),a[t[1]].push(e),t[1]}));let o=[];r.forEach(function(e){o.push(a[e][0]),a[e].shift()}),o.forEach(function(t){const a=e.querySelector(`a[href*="${t.match(/\/products\/([\S]+)/)[0]}"]`);a?e.append(a.closest(".variable-products")):console.log(t)})}function n(e){function t(){let e=0;if(r.forEach(t=>{for(var r=a.length-1;r>=0;r--)if(a[r]&&a[r]!=t&&a[r-1]!=t)return a.splice(r,0,t),void(e+=1)}),r.length-e)for(var t=0;t<r.length-e;t++)a.push(r[r.length-1])}let a=[],r=[];return e.forEach(e=>{if(a[a.length-1]!=e){a.push(e);const t=r[r.length-1];t&&t!=e&&(a.push(t),r.pop())}else r.push(e)}),t(),a}function l(e,t,a,r){function o(e,t,a,r){if(e==document.body)return undefined;if($(e).siblings().length+1==a){var i=!1;if($.each($(e).siblings(),function(e,a){if(!$(a).find(t).length)return i=!1,!1;i=!0}),i)return r||e}var n=r?e:undefined;return o(e.parentElement,t,a,n)}function i(e,t,a){return e==document.body?undefined:e.parentElement.querySelectorAll(t).length>1?a?e:e.parentElement:i(e.parentElement,t,a)}var n=o(e,t,a,r);return n||(n=i(e,t,!0)),n}function c(t,a,r){let o=null;if(1==r&&(o=document.querySelector(e.wrapSelector)))return o;var i=l(t,a,r);return i?i.parentElement:void 0}function s(e){return e==document.body?undefined:e.parentElement.id?e.parentElement.id:s(e.parentElement)}function d(){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
1sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))return!0}if(variableProductsInited)return;variableProductsInited=!0,setTimeout(function(){try{if(e.enable&&!e.jqueryPresented){let t={theme_id:Shopify.theme.id};"undefined"!=typeof jQuery&&jQuery.ajax||(t.absent=!0);const a=new URL(e.jqueryStatusUrl);Object.keys(t).forEach(e=>a.searchParams.append(e,t[e])),fetch(a)}$||"undefined"==typeof jQuery||($=jQuery)}catch(t){}},0);let u=0;try{if(e.enable&&e.storeProductViewsUrl&&!Shopify.designMode){var p=window.location.pathname.match(/.*\/products\/([\w\d-]+)/);if(p)return o(),p[1],void $.getJSON(p[0]+".js",function(t){var a=window.location.search.match(/variant=(\d+)/),r=null;a&&(r=t.variants.find(function(e){return e.id==a[1]}).title);var o={product:{product_id:t.id,variant_id:a?a[1]:null,vendor:t.vendor,product_type:t.type,product_handle:t.handle,product_title:t.title,variant_title:a?r:null}};$.ajax({method:"GET",url:e.storeProductViewsUrl,data:o})})}var h=document.querySelector('[data-behavior="variable-products"]'),v='a[href*="/products/"]:not([href*=".JP"]):not([href*=".png"]):not([href*=".PNG"])';if(e.enable){const t=window.location.pathname.match(/.*\/collections\/([\w\d-]+)/)||decodeURI(window.location.pathname).match(/.*\/collections\/((\w|[^\x00-\x7F]|-)+)/);let o;if(t||!e.onCollectionPages){function f(){let t=!("/"===window.location.pathname);document.querySelectorAll('[data-behavior="variable-products"]').forEach(function(e){[...e.parentElement.children].forEach(e=>{"variable-products"===e.dataset.behavior||!e.querySelector(v)&&!e.matches(v)||e.classList.contains("variable-products")||e.querySelector('[data-behavior="variable-products"]')||e.classList.add("variable-removing")}),[...e.children].forEach(e=>{if(e.classList.add("variable-products"),o){const t=e.querySelector('[data-behavior="variable-product_title"]');t&&o.includes(t.dataset.variant_id)&&(e.remove(),u+=1)}})}),document.querySelectorAll('[data-behavior="variable-products"]').forEach(function(t){e.mixVariantsEnabled&&i(t),e.unpackPrependLogic?[...t.children].filter(e=>"SCRIPT"!=e.tagName).reverse().forEach(function(e){t.parentElement.prepend(e)}):[...t.children].filter(e=>"SCRIPT"!=e.tagName).forEach(function(e){t.parentElement.append(e)}),t.remove()});try{t&&r()}catch(a){console.log(a)}document.querySelectorAll(".variable-removing").forEach(e=>{e.remove()})}o=t?e.blackListsForCollections[t[1]]:undefined,f(),a()}else document.querySelectorAll('[data-behavior="variable-products"]').forEach(e=>{e.remove()})}else document.querySelectorAll('[data-behavior="variable-products"]').forEach(e=>{e.remove()})}catch(_){console.log(_),document.querySelectorAll('[data-behavior="variable-products"]').forEach(e=>{e.remove()})}finally{o();const e=document.querySelector(".variable-loader");e&&(e.style.display="none")}let m=document.querySelector('[data-behavior="variable_product_list"]'),b=undefined;if(h){if(m)try{b=JSON.parse(m.dataset.product_list)}catch(_){m.remove(),console.log(_)}var y='[data-behavior="variable-product_title"]';setTimeout(function(){t()},0)}if(h&&b||!1||document.querySelector(".boost-pfs-filter-wrapper-page")){if(!variableProductsInit.modifyProducts){variableProductsInit.modifyProducts=(t=>{t=[...t],blackList=e.optionsInfo.variantsBlackList,whiteList=e.optionsInfo.variantsWhiteList,onlyOptions=e.optionsInfo.only.split(",").map(e=>e.toLowerCase().replace(" ","_")),autoHideInfo={display_out_of_stock:e.displayOutOfStock,out_of_stock_limit:0},showFirstIfAllHidden=!0,method="showAll","only_choosen"==e.optionsViewType&&(method="onlyChoosen");let r=undefined;if(e.collectionConditions.length){const e=window.location.pathname.match(/.*\/collections\/([\w\d-]+)/)||decodeURI(window.location.pathname).match(/.*\/collections\/((\w|[^\x00-\x7F]|-)+)/);e&&e[1]&&(r=variableParams.collectionConditions.find(t=>t.collection_handle==e[1]))}variantStatus=new a({blackList:blackList,whiteList:whiteList,autoHideInfo:autoHideInfo,optionsList:onlyOptions,showFirstIfAllHidden:showFirstIfAllHidden,conditions:r&&r.conditions,conditionMatchType:r&&r.match_type});let o=[];
1if(t.forEach(e=>{variantsWithStatus=variantStatus[method]([...e.variants],e).filter(e=>e.shown),vdata=variantsWithStatus.map(t=>{let a=t.image||e.images[1],r=a?{1:a}:{};if(a){const t=Object.values(e.images),o=t.indexOf(a);-1!=o&&(t[o+1]?r[2]=t[o+1]:0!=o&&(r[2]=t[0]))}let o=e.images_info.find(e=>e.src==a);o=o?[o]:[],r[2]&&o.push(e.images_info.find(e=>e.src==r[2]));let i=e.title,n=[t];try{i=variableProductsInit.variableSpecificTitle(e,t)}catch(_){}return variableProductsInit.boostAllVariants&&(n=e.variants),{handle:`${e.handle}?variant=${t.id}`,images:r,image:a,images_info:o,price:t.price,compare_at_price:t.compare_at_price,price_max:parseFloat(t.compare_at_price||t.price),price_min:parseFloat(t.price),available:t.available,skus:e.skus.length?[t.sku]:[],selected_or_first_available_variant:t,variants:n,title:i}});const t=vdata.map(t=>Object.assign({...e},t));o=o.concat(t)}),e.mixVariantsEnabled){let e=[...n(o.map(e=>e.id))];o.forEach(t=>{const a=e.indexOf(t.id);-1!==a&&(e[a]=t)}),o=e.filter(e=>"object"==typeof e)}return o});class t{constructor(e){this.blackList=e.blackList,this.whiteList=e.whiteList,this.autoHideInfo=e.autoHideInfo,this.searchParams=new URLSearchParams(window.location.search),this.conditions=e.conditions||[],this.conditionMatchType=e.conditionMatchType||"all"}showAll(e){return e.map(e=>(e.shown=!this.blackList.includes(e.id+""),this.isVariantAvailable(e)||this.autoHideInfo.display_out_of_stock||(e.shown=!1),e.shown&&!this.inConditions(e)&&(e.shown=!1),e))}isVariantAvailable(e){return e.inventory_quantity>this.autoHideInfo.out_of_stock_limit||"continue"===e.inventory_policy.toLowerCase()}arrIncludesHash(e,t){return e.find(e=>JSON.stringify(e)==JSON.stringify(t))}inConditions(e){if(!this.conditions||!this.conditions.length)return!0;let t=!0;const a=e=>e.replace(/\s/g," ");return"all"==this.conditionMatchType?this.conditions.forEach(r=>{if(r.option_name){const o=this.variantData(e)[r.option_name.toLowerCase()];switch(r.operator){case"equal_to":o&&a(o)===r.option_value||(t=!1);break;case"not_equal_to":o&&a(o)===r.option_value&&(t=!1);break;default:t=!0}}}):"any"==this.conditionMatchType&&(t=!1,this.conditions.forEach(r=>{if(r.option_name){const o=this.variantData(e)[r.option_name.toLowerCase()];switch(r.operator){case"equal_to":o&&a(o)===r.option_value&&(t=!0);break;case"not_equal_to":o&&a(o)===r.option_value||(t=!0)}}})),t}inFilter(e,t,a){for(var r of this.searchParams.keys())if(r.includes("pf_opt_")){const e=r.match(/pf_opt_(\S+)/);if(e){const a=e[1];let o=this.searchParams.getAll(r);if(!(o=o.map(e=>e.replace(new RegExp(`^${a}_`,"i"),""))).includes(this.variantData(t)[a]))return!1}else console.log(`${r} skipped`)}return!0}variantData(e){return e.merged_options.map(e=>{const[t,a]=e.split(":");return{name:t,value:a}}).filter(e=>e).reduce((e,t)=>(e[t.name]=t.value,e),{})}}class a extends t{constructor(e){super(e),this.optionsList=e.optionsList,this.showFirstIfAllHidden=e.showFirstIfAllHidden}onlyChoosen(e,t){let a=[];e.map(e=>{this.blackList.includes(e.id+"")?(e.shown=!1,e.blackListed=!0):(e.shown=undefined,e.blackListed=!1)}),this.whiteList.map(r=>{const o=e.find(e=>e.id==r&&e.shown==undefined);if(o){const e=this.generateOptionHash(o);this.inFilter(e,o,t)&&(o.shown=!0,this.arrIncludesHash(a,e)||a.push(e))}}),t.options_with_values.map(r=>{if(this.optionsList.includes(r.name))return e.map(r=>{const o=this.generateOptionHash(r);if(r.shown==undefined)if(this.arrIncludesHash(a,o)||!this.inFilter(o,r,t))r.shown=!1;else{if(this.isVariantAvailable(r))r.shown=!0;else{const a=e.find(e=>{const a=this.generateOptionHash(e);return!this.blackList.includes(e.id+"")&&this.isVariantAvailable(e)&&this.inFilter(a,e,t)&&JSON.stringify(a)==JSON.stringify(o)});a?(r.shown=!1,a.shown=!0):this.autoHideInfo.display_out_of_stock&&(r.shown=!0)}a.push(o)}})});let r=!1;if(e.map(e=>{e.shown==undefined&&(e.shown=!1),e.shown&&(r=!0)}),!r&&this.showFirstIfAllHidden&&e.find(e=>!e.blackListed)){const t=e.filter(e=>!e.blackListed).find(e=>this.isVariantAvailable(e));if(t)t.shown=!0;else{const t=e.find(e=>!e.blackListed);t&&(t.shown=!0)}}return e}generateOptionHash(e){return e.merged_options.map(e=>{const[t,a]=e.split(":");if(this.optionsList.includes(t.toLowerCase()))return{name:t,value:a}}).filter(e=>e).reduce((e,t)=>
1(e[t.name]=t.value,e),{})}}e.enable&&(ProductList.prototype.setData=function(e){var t=this;if(this.data=e,this.totalProduct=this.parent.totalProduct,e=this.prepareProductData(),this.eventType=this.parent.eventType,this.children=[],this.productItems=[],this.ajaxPage=0,this.totalProduct>0){var a=this._getProductItemClass();e.forEach(function(e,r){var o=new a;t.addComponent(o),o.setData(e,r),t.productItems.push(o)})}},ProductList.prototype.prepareProductData=function(){var e=this.data;return e=variableProductsInit.modifyProducts(e),Array.isArray(e)?(e.forEach(e=>{var t=[];e.options_with_values.forEach(e=>{t.push(e.name)}),e.options=t;var a=e.variants[0],r=!0;a.hasOwnProperty("fulfillment_service")&&"gift_card"==a.fulfillment_service&&(r=!1),e.price_min=Utils.convertPriceBasedOnActiveCurrency(e.price_min,r),e.price_max=Utils.convertPriceBasedOnActiveCurrency(e.price_max,r),e.compare_at_price_min=Utils.convertPriceBasedOnActiveCurrency(e.compare_at_price_min,r),e.compare_at_price_max=Utils.convertPriceBasedOnActiveCurrency(e.compare_at_price_max,r),e.variants.forEac
1h(e=>{var t=[],a=e.merged_options;if(Array.isArray(a)){for(var o=0;o<a.length;o++){var i=a[o].split(":");e["option"+(parseInt(o)+1)]=i[1],e["option_"+i[0]]=i[1],t.push(i[1])}e.options=t}if(null!=e.compare_at_price){var n=parseFloat(e.compare_at_price);n=Utils.convertPriceBasedOnActiveCurrency(n,r),e.compare_at_price=n}var l=parseFloat(e.price);l=Utils.convertPriceBasedOnActiveCurrency(l,r),e.price=l}),e.description=e.body_html}),e):[]})}variableProductsInit.reinit||(variableProductsInit.reinit=(()=>{function t(){document.querySelector('[data-behavior="variable-products"]')&&document.querySelector('script[src*="variable-loader.js"]')&&(variableProductsInited=!1,document.querySelector(".variable-products")&&(e.unpackPrependLogic=!1),variableProductsInit(e))}setInterval(t,500)}),variableProductsInit.reinit())}}var variableParams={enable:!1,checkoutRedirect:"",btnLabel:"",onCollectionPages:!0,storeProductViewsUrl:"https://variable.zubrcommerce.com/product_views/store.json",optionsViewType:"show_all",optionsInfo:{only:"",variantsBlackList:[],variantsWhiteList:[]},variants_titles:{},wrapSelector:".grid",wrapSelectorsUrl:"https://variable.zubrcommerce.com/selectors/wrap.json",jqueryPresented:!1,jqueryStatusUrl:"https://variable.zubrcommerce.com/selectors/jquery.json",blackListsForCollections:{},add_to_cart_enabled:!1,displayOutOfStock:!0,outOfStockLimit:0,addToCartLabels:{addToCart:"Add to cart",goToCheckout:"Go to checkout",soldOut:"Sold out",quantity:"Quantity"},addToCartInfo:{initOnParent:!1},styles:{},mixVariantsEnabled:!1,collectionConditions:[],enabledByDefault:!0,disabledCollections:[],enabledCollections:[],unpackPrependLogic:!0},variableProductsInited=!1;try{const t=window.location.pathname.match(/.*\/collections\/([\w\d-]+)/)||decodeURI(window.location.pathname).match(/.*\/collections\/((\w|[^\x00-\x7F]|-)+)/);if(t&&t[1]){let e;(e=variableParams.enabledByDefault?variableParams.disabledCollections.find(e=>e===t[1]):!variableParams.enabledCollections.find(e=>e===t[1]))&&(variableParams.enabledGlobal=variableParams.enable,variableParams.enable=!1)}!t&&variableParams.onCollectionPages&&(variableParams.enable=!1)}catch(e){console.log(e)}document.head.innerText.match(/variable-loader.js/)||document.head.innerText.match(/variable.js/)||(variableParams.enable=!1),document.addEventListener("DOMContentLoaded",function(){variableProductsInit(variableParams)});

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.