!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=11)}({0:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},11:function(t,e,n){(function(t){((e,n)=>{if(!e)return;const{currency:o,products:r,purchase:i,add_to_cart:a,eventsToTrack:c}=(null===(n=t._googlesitekit)||void 0===n?void 0:n.wcdata)||{},l=null==c?void 0:c.includes("add_to_cart"),u=null==c?void 0:c.includes("purchase");if(a&&l){var d,s;const{price:e}=a,n=g(e,o,a);null===(d=t._googlesitekit)||void 0===d||null===(s=d.gtagEvent)||void 0===s||s.call(d,"add_to_cart",n)}if(i&&u){var p,f,_;const{id:e,totals:n,items:o,user_data:r}=i,a=g(n.total_price,n.currency_code,o,e,n.shipping_total,n.tax_total);(null===(p=t._googlesitekit)||void 0===p?void 0:p.gtagUserData)&&r&&(a.user_data=r),null===(f=t._googlesitekit)||void 0===f||null===(_=f.gtagEvent)||void 0===_||_.call(f,"purchase",a)}const v=e("body");function g(t,e,n,o=null,r=null,i=null){const a={value:b(t),currency:e,items:[]};if(o&&(a.transaction_id=o),"number"==typeof r&&(a.shipping=r),"number"==typeof i&&(a.tax=i),n&&n.length)for(const t of n)a.items.push(y(t));else n&&n.id&&(a.items=[y(n)]);return a}function y(t){const{id:e,name:n,price:o,variation:r,quantity:i,categories:a}=t,c={item_id:e,item_name:n,price:b(o)};if(i&&(c.quantity=i),r&&(c.item_variant=r),a&&(null==a?void 0:a.length)){let t=1;for(const e of a)c[t>1?"item_category"+t:"item_category"]=e.name,t++}return c}function b(t,e=2){return parseInt(t,10)/10**e}l&&(v.on("added_to_cart",(e,n,i,a)=>{var c,l;const u=parseInt(a.data("product_id"),10);if(!u)return;const d=(null==r?void 0:r.find(t=>(null==t?void 0:t.id)===u))||{},{price:s}=d,p=g(s,o,d);null===(c=t._googlesitekit)||void 0===c||null===(l=c.gtagEvent)||void 0===l||l.call(c,"add_to_cart",p)}),e(".products-block-post-template .product, .wc-block-product-template .product").each((function(){const n=e(this),i=parseInt(n.find("[data-product_id]").attr("data-product_id"),10);i&&n.on("click",n=>{var a,c;const l=e(n.target).closest(".wc-block-components-product-button [data-product_id]");if(!(l.length&&l.hasClass("add_to_cart_button")&&!l.hasClass("product_type_variable")))return;const u=(null==r?void 0:r.find(t=>(null==t?void 0:t.id)===i))||{},{price:d}=u,s=g(d,o,u);null===(a=t._googlesitekit)||void 0===a||null===(c=a.gtagEvent)||void 0===c||c.call(a,"add_to_cart",s)})})))})(t.jQuery)}).call(this,n(0))}});