Current File : /home/kelaby89/muzza.fit/wp-content/plugins/woo-stripe-payment/assets/build/ach-connections.js |
(()=>{"use strict";var e={428:e=>{e.exports=window.jQuery},103:e=>{e.exports=window.wcStripeModules.checkoutModules}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var c=t[r]={exports:{}};return e[r](c,c.exports,n),c.exports}(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,r=(t=n(428))&&t.__esModule?t:{default:t},o=n(103);function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,"string");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(n)?n:n+""}function u(t,n,r){return n=f(n),function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(t,a()?Reflect.construct(n,r||[],f(t).constructor):n.apply(t,r))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},l.apply(this,arguments)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var p=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=u(this,t,[].concat(r))).handle_create_account_change(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){l(f(t.prototype),"initialize",this).call(this),window.addEventListener("hashchange",this.hashchange.bind(this)),(0,r.default)(document.body).on("payment_method_selected",this.payment_method_selected.bind(this)),(0,r.default)(document.body).on("change","#createaccount",this.handle_create_account_change.bind(this))}},{key:"updated_checkout",value:function(){l(f(t.prototype),"updated_checkout",this).call(this),this.handle_create_account_change()}},{key:"hide_place_order",value:function(){}},{key:"show_payment_button",value:function(){this.show_place_order()}},{key:"fees_enabled",value:function(){return"1"==this.params.fees_enabled}},{key:"payment_method_selected",value:function(){this.fees_enabled()&&(0,r.default)(document.body).trigger("update_checkout")}}])&&c(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.LocalCheckoutGateway);(0,o.registerPaymentMethod)(new p(wc_stripe_ach_connections_params,"#wc_stripe_local_payment_stripe_ach"))})(),(this.wcStripeModules=this.wcStripeModules||{}).achConnections={}})();
//# sourceMappingURL=ach-connections.js.map