(()=>{"use strict";var t={n:e=>{var c=e&&e.__esModule?()=>e.default:()=>e;return t.d(c,{a:c}),c},d:(e,c)=>{for(var n in c)t.o(c,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:c[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window.jQuery;var c=t.n(e);const n=window.wcPPCP.cart;var a=t.n(n);const o=window.wcPPCP.actions,s=new(t.n(o)());a().on("product_button_on_init",()=>{c()(".wc-stripe-product-checkout-container").addClass("active")}),a().on("cart_button_on_init",()=>{c()(".wc_stripe_cart_payment_methods").addClass("active")}),a().on("expressCheckoutButtonOnInit",()=>{c()(".banner_payment_method_ppcp").addClass("active"),c()(".banner_payment_method_ppcp").closest(".wc-stripe-banner-checkout").addClass("active")}),s.addAction("payment_element_ready",t=>{t.context.isExpressCheckout()?c()(".banner_payment_method_ppcp").closest(".wc-stripe-banner-checkout").addClass("active"):t.context.isCart()?c()(".wc_stripe_cart_payment_methods").addClass("active"):t.context.isProduct()&&c()(".wc-stripe-product-checkout-container").addClass("active")}),(this.wcPPCP=this.wcPPCP||{})["stripe-compatibility"]={}})();
//# sourceMappingURL=stripe-compatibility.js.map