Current File : /home/kelaby89/muzza.fit/wp-content/plugins/woo-stripe-payment/assets/build/afterpay-message.js
(()=>{"use strict";var e={751:(e,t)=>{function r(e){return r="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},r(e)}function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=a(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},c.apply(this,arguments)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,o=arguments,n=p(n=t),function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)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}(e)}(e,u()?Reflect.construct(n,o||[],p(e).constructor):n.apply(e,o));var e,n,o}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&&f(e,t)}(t,e),n=t,(a=[{key:"getMessageOptions",value:function(){return o(o({},c(p(t.prototype),"getMessageOptions",this).call(this)),{},{isEligible:this.isEligible(this.getTotalPrice())})}},{key:"isEligible",value:function(e){return e>=this.getMin()&&e<=this.getMax()}},{key:"getMin",value:function(){var e=this.gateway.get_currency(),t=this.gateway.params.requirements[e];return t?t[1]:0}},{key:"getMax",value:function(){var e=this.gateway.get_currency(),t=this.gateway.params.requirements[e];return t?t[2]:0}}])&&i(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(e)}},103:e=>{e.exports=window.wcStripeModules.checkoutModules},622:e=>{e.exports=window.wcStripeModules.messageModules},705:e=>{e.exports=window.wc_stripe}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.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,n=r(705),o=r(103),i=r(622),a=(t=r(751))&&t.__esModule?t:{default:t};function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function p(t){var r=function(t,r){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.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(r)?r:r+""}function f(t,r,n){return r=s(r),function(t,r){if(r&&("object"===e(r)||"function"==typeof r))return r;if(void 0!==r)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,l()?Reflect.construct(r,n||[],s(t).constructor):r.apply(t,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var b,d="afterpayClearpayMessage",m=function(e){var t=e.params,r=t.currencies,n=void 0===r?[]:r,o=t.currency;return n.includes(o)},w=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),f(this,t,[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&&y(e,t)}(t,e),r=t,(n=[{key:"get_element_options",value:function(){return{}}}])&&c(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.BaseGateway);"undefined"!=typeof wc_stripe_afterpay_cart_params&&new((0,a.default)(i.CartMessage))(new w(wc_stripe_afterpay_cart_params),{elementType:d,elementId:"wc-stripe-afterpay-cart-msg",containerId:"wc-stripe-afterpay-cart-container",isSupported:m}),"undefined"!=typeof wc_stripe_afterpay_product_params&&(Object.assign(w.prototype,n.ProductGateway.prototype),new i.ProductMessage(new w(wc_stripe_afterpay_product_params),{elementType:d,elementId:"wc-stripe-afterpay-product-msg",isSupported:m})),"undefined"!=typeof wc_stripe_local_payment_params&&null!==(b=wc_stripe_local_payment_params)&&void 0!==b&&null!==(b=b.gateways)&&void 0!==b&&b.stripe_afterpay&&new((0,a.default)(i.CheckoutMessage))((0,o.getPaymentMethod)("stripe_afterpay"),{elementType:d,elementId:"wc-stripe-afterpay-message-container",isSupported:m}),"undefined"!=typeof wc_stripe_bnpl_shop_params&&new i.CategoryMessage(n.stripe,wc_stripe_bnpl_shop_params,{id:"stripe_afterpay",elementType:d,isSupported:function(e){var t=e.data.currency;return e.data.stripe_afterpay.supportedCurrencies.includes(t)},isSupportedProduct:function(e,t){var r,n,o=t.price,i=e.data.currency,a=e.data.stripe_afterpay.hideIneligible,c=(r=e.data[e.id].requiredParams[i],n=3,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,p=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){p=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(p)throw o}}return u}}(r,n)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=(c[0],c[1]),f=c[2];return!a||p<=o&&o<=f}})})(),(this.wcStripeModules=this.wcStripeModules||{}).afterpayMessage={}})();
//# sourceMappingURL=afterpay-message.js.map
Page not found – Hello World !