define(['jquery','ko'],function($,ko){'use strict';var mixin={addErrorMessage:function(message){let active=window.checkoutConfig.payment.paypalExpress.active;if(active==="0"){return this._super(message);} const errorCode="402";if(message?.message.includes(errorCode)){$('#paypal_express')?.click();$('#paypal-payment-ref')?.removeClass('d-none');} return this._super(message);}};return function(target){return target.extend(mixin);};});