!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=5)}({0:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},5:function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"parseCartItemHTML",(function(){return n})),(t=>{if(!t)return;t("body").on("edd_cart_item_added",(function(t,r){var o,i;const{name:l,value:u}=n(r.cart_item),a=e._googlesitekit.easyDigitalDownloadsCurrency;null===(o=e._googlesitekit)||void 0===o||null===(i=o.gtagEvent)||void 0===i||i.call(o,"add_to_cart",{currency:a,value:u,items:[{item_name:l,price:u}]})}))})(e.jQuery);const n=e=>{var t,r;const n=(new DOMParser).parseFromString(e,"text/html"),o=(null===(t=n.querySelector(".edd-cart-item-title"))||void 0===t?void 0:t.textContent.trim())||"";let i=((null===(r=n.querySelector(".edd-cart-item-price"))||void 0===r?void 0:r.textContent.trim())||"").replace(/[^\d.,]/g,"").trim();const l=i.lastIndexOf(","),u=i.lastIndexOf(".");if(l>-1&&u>-1)i=l>u?i.replace(/\./g,"").replace(",","."):i.replace(/,/g,"");else if(l>-1){i=3===i.length-l?i.replace(",","."):i.replace(/,/g,"")}else if(u>-1){3!==i.length-u&&(i=i.replace(/\./g,""))}return{name:o,value:parseFloat(i)||0}}}.call(this,r(0))}});