(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[3346],{98934(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function i(i,t,n){return!i||!t||!n?undefined:(0,i.limits?.fiat?.[t.toLowerCase()]?.[n])}function t(i,t,n){if(!i)return null;let u=Number.isFinite(i.minAmount);let m=Number.isFinite(i.maxAmount);return u&&m?n("rampsPaymentMethodLimits",[t(i.minAmount),t(i.maxAmount)]):(0,u)?n("rampsPaymentMethodMinLimit",[t(i.minAmount)]):(0,m)?n("rampsPaymentMethodMaxLimit",[t(i.maxAmount)]):(0,null)}__webpack_require__.d(__webpack_exports__,{B:()=>i,D:()=>t})}}).call(__webpack_require__._LM_("$root$",{__webpack_exports__,__webpack_require__}))()},533346(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{y:()=>n});var i=__webpack_require__(98934);function t(i){return Boolean(i&&/\b(minimum|maximum)\s+purchase\s+is\b/iu.test(i))}function n({provider:n,fiatCurrency:u,paymentMethodId:m,amount:e,currency:r,formatCurrency:o,t:s,backendError:a}){if(e>0){let t=(0,i.B)(n,u,m);if(t){if(Number.isFinite(t.minAmount)&&e<t.minAmount)return s("rampsMinPurchaseLimit",[o(t.minAmount,r)]);if(Number.isFinite(t.maxAmount)&&e>t.maxAmount)return s("rampsMaxPurchaseLimit",[o(t.maxAmount,r)])}}return t(a)?a??null:(0,null)}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()}}]);