!function(n){var a={};function r(t){var e;return(a[t]||(e=a[t]={i:t,l:!1,exports:{}},n[t].call(e.exports,e,e.exports,r),e.l=!0,e)).exports}r.m=n,r.c=a,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__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 a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,n){n(1),t.exports=n(2)},function(t,e,n){"use strict";var a=jQuery,r=document.getElementsByTagName("html")[0].getAttribute("lang").substr(0,2),o=r||"en",u=tamaraCheckoutParams.publicKey,i=tamaraCheckoutParams.currency;function c(){for(var t=2;t<=12;t++)if(document.querySelectorAll(".payment_method_tamara-gateway-pay-by-instalments-"+t+" .tamara-pay-in-x-widget div.payment-plan").length)return;document.querySelectorAll(".payment_method_tamara-gateway-pay-by-instalments-3 .tamara-installment-plan-widget .tamara-logo").length||(window.TamaraProductWidget&&(window.TamaraProductWidget.init({lang:o,publicKey:u,currency:i}),window.TamaraProductWidget.render()),window.TamaraInstallmentPlan&&(window.TamaraInstallmentPlan.init({lang:o,publicKey:u,currency:i}),window.TamaraInstallmentPlan.render()))}tamaraCheckoutParams.country,window.addEventListener("load",function(t){setTimeout(function(){c()},1e3)}),a(document).ready(function(){a(document.body).on("updated_checkout",function(){a.post(tamaraCheckoutParams.ajaxUrl,{action:"update-tamara-checkout-params"},function(t){"success"===t.message&&(window.tamaraWidgetConfig.country=t.country,i=t.currency,t.country,window.TamaraWidgetV2.refresh())}),setTimeout(function(){c()},1e3)}),a(document.body).on("removed_from_cart updated_cart_totals",function(){setTimeout(function(){c()},1e3)}),a("input[name=billing_phone]").change(function(){a("body").trigger("update_checkout")})}),a(document).ready(function(){a(".variations_form").each(function(){a(this).on("found_variation",function(t,e){var n;n=e.display_price,setTimeout(function(){a("tamara-widget").attr("amount",n),window.TamaraWidgetV2.refresh()},1e3)})})})},function(t,e,n){}]);