if(!window.is_hulk_load_js){window.is_hulk_load_js=!0;var checkout_selectors="input[name='checkout']:not(.hulkapps-ignore), input[value='Checkout']:not(.hulkapps-ignore), button[name='checkout']:not(.hulkapps-ignore), [href$='checkout']:not(.hulkapps-ignore), button[value='Checkout']:not(.hulkapps-ignore), input[name='goto_pp'], button[name='goto_pp'], input[name='goto_gc'], button[name='goto_gc'],.hulkapps_checkout";if("product"==window.hulkapps.page_type){var hulk_variants=window.hulkapps.product.variants;window.hulkapps.product.selected_variant=null;var product_price="",currency_symbol="",display_price_setting="";function updateSelectedVariant(){var t=document.querySelector('script[type="application/json"][data-variant]'),e=t.textContent&&JSON.parse(t.textContent);window.hulkapps.product.selected_variant=e.id,product_price=e.price,window.hulkapps.product.selected_variant_price=e.price,hulkapps_jQuery("#hulkapps_options_"+window.hulkapps.product_id).closest("form").find(":submit").addClass("hulkapps_submit_cart"),window.$first_add_to_cart_el&&window.$first_add_to_cart_el.removeClass("hulkapps_submit_cart").addClass("hulkapps_submit_cart")}window.product_page_btn_condition=function(){var t=[];document.querySelectorAll(".single-option-selector,.swatch-element input[type='radio'],.single-option-selector__radio:checked, select[data-option='option1'], select[data-option='option1']:checked, select[data-option='option2'], select[data-option='option1']:checked, select[data-option='option3'], select[data-option='option3']:checked, select[data-index='option1'], select[data-index='option1']:checked, select[data-index='option2'], select[data-index='option1']:checked, select[data-index='option3'], select[data-index='option3']:checked, ul li div[swatch-option='option1'], input[type='radio']:checked").forEach((function(e){t.push(e.value)}));if(1==(t=function(t,e){for(var a=[],i=t.length,o=0;o{var e=window.hulkappsParseURL(a[0]),i=!1;if(["/cart/change","/cart/clear","/cart/update","/cart/add"].forEach((async function(e){if(a[0]&&a[0].includes(e)){i=!0,window.is_on_click=!1;var o=await t.clone().json();a[0].includes("/cart/add")&&(o=void 0),window.getCartInfo(0,o)}})),!i&&e&&e.query)if(e.query.get("section_id")&&e.query.get("section_id").includes("cart"))i=!0,window.getCartInfo();else{if(e.query.get("ref")&&e.path.includes("/cart"))return;if(e.query.get("view")&&e.query.get("view").includes("hulkapps_cart_collections"))return;e.query.get("view")&&e.path.includes("/cart")&&!e.path.includes("/cart.js")&&(i=!0,window.getCartInfo())}i||e&&"/cart"===e.path&&window.getCartInfo()})).catch((t=>{})),i}}),e=function(t){var e=!1,a=window.hulkappsParseURL(t._url);let i=["/cart/change","/cart/clear","/cart/update","/cart/add"];var o=!1;const n=setInterval((function(){o||(function(){if(t.readyState===XMLHttpRequest.DONE){if(o=!0,i.forEach((function(a){if(t._url&&t._url.includes(a)){e=!0;var i=t.status;if(0===i||i>=200&&i<400){window.is_on_click=!1;var o=JSON.parse(t.response);t._url.includes("/cart/add")&&(o=void 0),window.getCartInfo(0,o)}}})),!e&&a&&a.query)if(a.query.get("section_id")&&a.query.get("section_id").includes("cart"))e=!0,window.getCartInfo();else{if(a.query.get("ref")&&a.path.includes("/cart"))return;if(a.query.get("view")&&a.query.get("view").includes("hulkapps_cart_collections"))return;a.query.get("view")&&a.path.includes("/cart")&&!a.path.includes("/cart.js")&&(e=!0,window.getCartInfo())}e||a&&"/cart"===a.path&&window.getCartInfo()}}(),o=!0),o&&clearInterval(n)}),1e3)},XMLHttpRequest.callbacks?XMLHttpRequest.callbacks.push(e):(XMLHttpRequest.callbacks=[e],a=XMLHttpRequest.prototype.send,XMLHttpRequest.prototype.send=function(){if(XMLHttpRequest.callbacks)for(i=0;i