1/*! WP Simple Pay Pro 3 - 3.2.3 2 * https://wpsimplepay.com/ 3 * Copyright (c) Moonstone Media Group 2018 4 * Licensed GPLv2+ */ 5 6var spShared={};!function(r){"use strict";var n;spShared={init:function(){(n=r(document.body)).find(".simpay-currency-format").on("blur.simpayCurrencyFormat",function(n){spShared.formatCurrencyField(r(this))}),n.find(".simpay-amount-input").on("blur.simpayValidateAmount",function(n){spShared.validateAmount(r(this))}),n.find(".simpay-currency-format").trigger("blur.simpayCurrencyFormat"),n.find(".simpay-amount-input").trigger("blur.simpayValidateAmount")},debugLog:function(n,r){"undefined"!=typeof spGeneral&&!0===spGeneral.booleans.scriptDebug&&console.log(n,r)},formatCurrencyField:function(a){a.val(function(n,r){return a.hasClass("simpay-allow-empty")&&!a.val()?"":accounting.formatMoney(accounting.unformat(r,spGeneral.strings.decimalSeparator),"",2,spGeneral.strings.thousandSeparator,spGeneral.strings.decimalSeparator)})},validateAmount:function(n){var r=spShared.unformatCurrency(n.val());if(!r||spGeneral.integers.minAmount>parseFloat(r))return n.val(""),!1;-1!==(r=r.replace(".",spGeneral.strings.decimalSeparator)).indexOf("-")&&(r=r.replace("-","")),n.val(r)},unformatCurrency:function(n){return n=accounting.unformat(n,spGeneral.strings.decimalSeparator).toString(),spGeneral.booleans.isZeroDecimal||(n=parseFloat(n).toFixed(2)),n}},r(document).ready(function(n){spShared.init()})}(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.