!function(e){var n={};function r(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=n,r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,n){if(1&n&&(e=r(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(r.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)r.d(t,o,function(n){return e[n]}.bind(null,o));return t},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.p="",r(r.s=40)}({2:function(e,n){e.exports=jQuery},40:function(e,n,r){(function(e){!function(e){"use strict";window.spShared={init:function(){e(document.body)},unformatCurrency:function(e){return Math.abs(accounting.unformat(e,spGeneral.strings.decimalSeparator))},formatCurrency:function(e,n,r,t){var o,a=n||!1,i=r||spGeneral.strings.currencySymbol,u=t||!1,s="%s%v";if(a)switch(spGeneral.strings.currencyPosition){case"left_space":s="%s %v";break;case"right":s="%v%s";break;case"right_space":s="%v %s"}return o={symbol:a?i:"",decimal:spGeneral.strings.decimalSeparator,thousand:spGeneral.strings.thousandSeparator,precision:u?0:spGeneral.integers.decimalPlaces,format:s},accounting.formatMoney(e,o)},convertToDollars:function(e){return spGeneral.booleans.isZeroDecimal||(e=accounting.toFixed(e/100,2)),e},convertToCents:function(e){return spGeneral.booleans.isZeroDecimal||(e=Number(accounting.toFixed(100*e,0))),e},validateAndUpdateAmountInput:function(e){var n=e.val(),r=Math.abs(spGeneral.integers.minAmount);n=spShared.unformatCurrency(n),e.hasClass("simpay-allow-blank-amount")&&0===n?e.val(""):(e.hasClass("simpay-minimum-amount-required")&&n<r&&(n=r),n=spShared.formatCurrency(n,!1),"number"!==e[0].type&&e.val(n))},debugLog:function(e,n){"undefined"!=typeof spGeneral&&!0===spGeneral.booleans.scriptDebug&&console.log(e,n)}},e(document).ready((function(e){window.spShared.init()}))}(e)}).call(this,r(2))}});