!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t){e.exports=window.wp.htmlEntities},function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wc.wcSettings},function(e,t){e.exports=window.wc.wcBlocksRegistry},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(2),c=n(4),i=n(0),l=n(3);const u=Object(l.getSetting)("affirm_data",{}),a=100*Object(i.decodeEntities)(u.min)||5e3,d=100*Object(i.decodeEntities)(u.max)||3e6,s=Object(i.decodeEntities)(u.countries),f=Object(i.decodeEntities)(u.icon),b=Object(o.__)("Affirm Pay over time","woo-gutenberg-products-block"),m=Object(i.decodeEntities)(u.title)||b,p=()=>Object(i.decodeEntities)(u.description||""),O={name:"affirm",label:Object(r.createElement)(e=>{const{PaymentMethodLabel:t}=e.components;return Object(r.createElement)("section",{style:{width:"100%"}},Object(r.createElement)(t,{text:m}),Object(r.createElement)("img",{style:{float:"right",marginRight:"1em"},src:f}))},null),placeOrderButtonLabel:Object(o.__)("Continue with Affirm","woo-gutenberg-products-block"),content:Object(r.createElement)(p,null),edit:Object(r.createElement)(p,null),canMakePayment:e=>{let{cartTotals:t,billingAddress:n}=e,r=Number(t.total_price)||0;return!(a>r||d<r||!s.includes(n.country)||""==n.country)},ariaLabel:m};Object(c.registerPaymentMethod)(O)}]);