JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "sanitize.js"

Full Path: /var/www/html/ctctaxi/public/assets/vendor_components/jquery-knob/js/sanitize.js
File size: 4.07 KB
MIME-type: text/plain
Charset: utf-8

/** File generated by Grunt -- do not modify
 *  JQUERY-FORM-VALIDATOR
 *
 *  @version 2.3.79
 *  @website http://formvalidator.net/
 *  @author Victor Jonsson, http://victorjonsson.se
 *  @license MIT
 */
! function(a, b) { "function" == typeof define && define.amd ? define(["jquery"], function(a) { return b(a) }) : "object" == typeof module && module.exports ? module.exports = b(require("jquery")) : b(a.jQuery) }(this, function(a) {! function(a, b) { "use strict";
        a.formUtils.addSanitizer({ name: "upper", sanitizerFunction: function(a) { return a.toLocaleUpperCase() } }), a.formUtils.addSanitizer({ name: "lower", sanitizerFunction: function(a) { return a.toLocaleLowerCase() } }), a.formUtils.addSanitizer({ name: "trim", sanitizerFunction: function(b) { return a.trim(b) } }), a.formUtils.addSanitizer({ name: "trimLeft", sanitizerFunction: function(a) { return a.replace(/^\s+/, "") } }), a.formUtils.addSanitizer({ name: "trimRight", sanitizerFunction: function(a) { return a.replace(/\s+$/, "") } }), a.formUtils.addSanitizer({ name: "capitalize", sanitizerFunction: function(b) { var c = b.split(" "); return a.each(c, function(a, b) { c[a] = b.substr(0, 1).toUpperCase() + b.substr(1, b.length) }), c.join(" ") } }), a.formUtils.addSanitizer({ name: "insert", sanitizerFunction: function(a, b, c) { var d = (b.attr("data-sanitize-insert-" + c) || "").replace(/\[SPACE\]/g, " "); return "left" === c && 0 === a.indexOf(d) || "right" === c && a.substring(a.length - d.length) === d ? a : ("left" === c ? d : "") + a + ("right" === c ? d : "") } }), a.formUtils.addSanitizer({ name: "insertRight", sanitizerFunction: function(b, c) { return a.formUtils.sanitizers.insert.sanitizerFunction(b, c, "right") } }), a.formUtils.addSanitizer({ name: "insertLeft", sanitizerFunction: function(b, c) { return a.formUtils.sanitizers.insert.sanitizerFunction(b, c, "left") } }), a.formUtils.addSanitizer({ name: "numberFormat", sanitizerFunction: function(a, c) { if (0 === a.length) return a; if (!("numeral" in b)) throw new ReferenceError('Using sanitation function "numberFormat" requires that you include numeral.js (http://numeraljs.com/)'); return a = numeral().unformat(a), a = numeral(a).format(c.attr("data-sanitize-number-format")) } }), a.formUtils.addSanitizer({ name: "strip", sanitizerFunction: function(b, c) { var d = c.attr("data-sanitize-strip") || ""; return a.split(d, function(c) { var d = new RegExp(a.isNumeric(c) ? c : "\\" + c, "g");
                    b = b.replace(d, "") }), b } }), a.formUtils.addSanitizer({ name: "escape", sanitizerFunction: function(b, c) { var d = c.valAttr("is-escaped"),
                    e = { "<": "__%AMP%__lt;", ">": "__%AMP%__gt;", "&": "__%AMP%__amp;", "'": "__%AMP%__#8217;", '"': "__%AMP%__quot;" }; return "yes" === d ? b : (c.valAttr("is-escaped", "yes"), c.one("keyup", function(a) { 9 !== a.keyCode && c.valAttr("is-escaped", "no") }), a.each(e, function(a, c) { b = b.replace(new RegExp(a, "g"), c) }), b.replace(new RegExp("__%AMP%__", "g"), "&")) } }), a.formUtils.registerLoadedModule("sanitize"); var c = '[type="button"], [type="submit"], [type="radio"], [type="checkbox"], [type="reset"], [type="search"]',
            d = function(b, d, e) { d || (d = a("form")), d.each || (d = a(d)); var f = function() { var b = a(this),
                        c = b.val();
                    a.split(b.attr("data-sanitize"), function(d) { var f = a.formUtils.sanitizers[d]; if (!f) throw new Error('Use of unknown sanitize command "' + d + '"');
                        c = f.sanitizerFunction(c, b, e) }), b.val(c).trigger("keyup.validation") };
                d.each(function() { var b = a(this);
                    e.sanitizeAll && b.find("input,textarea").not(c).each(function() { var b = a(this),
                            c = b.attr("data-sanitize") || "";
                        b.attr("data-sanitize", e.sanitizeAll + " " + c) }), b.find("[data-sanitize]").unbind("blur.sanitation", f).bind("blur.sanitation", f), a(function() { b.trigger("blur.sanitation") }) }) };
        a(b).on("validatorsLoaded formValidationSetup", d), a.formUtils.setupSanitation = d }(a, window) });