1(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t=document.querySelectorAll(".simple-product .add_to_cart_button");document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".product-card").forEach((function(e){var t=e.querySelector(".exclude-option-value");t&&t.id.split("-").pop()&&e.querySelectorAll(".exclude-option-value").forEach((function(t){t.addEventListener("change",(function(t){t.target.id.split("-").pop();var a=e.querySelectorAll(".exclude-option-value:checked"),r=[];a.forEach((function(e){r.push(e.value)}));var c=e.querySelector(".meal-preferences-input");c&&(c.value=r.join(","));var o=e.querySelectorAll(".add_to_cart_button");o.length&&o.forEach((function(e){e.dataset.mealPreferences=r.join(",")})),1===a.length?e.querySelectorAll(".exclude-option-value:not(:checked)").forEach((function(e){e.disabled=!0})):e.querySelectorAll(".exclude-option-value:not(:checked)").forEach((function(e){e.disabled=!1}))}))}))}))})),t.forEach((function(t){t.addEventListener("click",(function(a){var r,c=document.cookie.split("; ").find((function(e){return e.startsWith("trifecta_product_selector=")})),o=document.cookie.split("; ").find((function(e){return e.startsWith("apollo_partner=")})),n=(null===(r=t.dataset.categories)||void 0===r?void 0:r.split(","))||[],i=n.includes("gift-cards"),u=n.includes("bundle-offers");if(c||o||i||u){var d=[],l=t.dataset.product_id,s=t.dataset.variation_id,f=t.dataset.quantity,p=t.dataset.product_sku,v=t.dataset.mealPreferences||"",m=t.dataset.isGrouped||0,y={name:"product_id",value:l},_={name:"variation_id",value:s},h={name:"quantity",value:f},S={name:"add_to_cart",value:p};v&&d.push({name:"meal-preferences",value:v});var E=[],g={item_name:t.dataset.product_name},q={item_id:p},b={price:Number(t.dataset.price)},L={item_variant:_.value},A={quantity:Number(h.value)};E.push(g,q,b,L,A);var k=0;n.length>0&&n.forEach((function(t){var a,r,c,o="item_category".concat(k);E.push((a={},r=o,c=t.trim(),(r=function(t){var a=function(t,a){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var c=r.call(t,"string");if("object"!==e(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===e(a)?a:String(a)}(r))in a?Object.defineProperty(a,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[r]=c,a)),k++})),d.push(y,_,S,h),jQuery.ajax({type:"POST",dataType:"json",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","custom_add_to_cart"),data:{action:"custom_add_to_cart",product_id:l,form_data:d,is_grouped:m},success:function(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"add_to_cart",ecommerce:{currency:"USD",value:Number(t.dataset.price)*Number(h.value),items:E}}),document.dispatchEvent(new CustomEvent("trifecta_cart_item_added",{detail:{operation:"add"}}))},error:function(e){console.log(e)}})}}))})),document.querySelectorAll(".flip-card").forEach((function(e){e.addEventListener("click",(function(e){var t=e.target.closest(".product-card");t.classList.contains("flipped")?t.classList.remove("flipped"):t.classList.add("flipped")}))}));var a=document.querySelectorAll(".sub-category-nav a.nav-link");a.forEach((function(e){e.addEventListener("click",(function(e){a.forEach((function(e){e.classList.remove("active")})),e.target.classList.add("active")}))}));var r=function(e,t){var a=t.querySelectorAll(".qty"),r=t.querySelectorAll(".add_to_cart_button");a.forEach((function(t){t.value>=1&&"increase"===e?t.value++:t.value>1&&"decrease"===e&&t.value--})),r.forEach((function(t){var a=t.dataset.quantity;a>=1&&"increase"===e?a++:a>=1&&"decrease"===e&&a--,t.dataset.quantity=a}))},c=document.querySelectorAll(".product-card #quantity-increase"),o=document.querySelectorAll(".product-card #quantity-decrease");c.forEach((function(e){e.addEventListener("click",(function(e){var t=e.target.closest(".product-card");r("increase",t)}))})),o.forEach((function(e){e.addEventListener("click",(function(e){var t=e.target.closest(".product-card");r("decrease",t)}))}));document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".product-card").forEach((function(e){var t=e.querySelector(".product-card-image-container");if(t){var a=t.querySelectorAll(".product-card-image"),r=e.querySelectorAll(".product-card-image-nav-item");a.length<=1||r.forEach((function(t){t.addEventListener("click",(function(a){a.preventDefault(),a.stopPropagation();var r=parseInt(t.dataset.index);!function(e,t){var a=e.querySelectorAll(".product-card-image"),r=e.querySelectorAll(".product-card-image-nav-item");a.length&&r.length&&(r.forEach((function(e){return e.classList.remove("active")})),r[t]&&r[t].classList.add("active"),a.forEach((function(e){e.style.opacity="0"})),a[t]&&(a[t].style.opacity="1"))}(e,r)}))}))}}))}))})();
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.