PageSourceSearch

https://sv-company.ru/node_modules/jquery.inputmask/dist/inputmask/jquery.inputmask.js

js sv-company.ru collected 2026-09-26 09:37:00 UTC 2,618 bytes, 60 lines download raw bytes

vendor: 2,618 bytes, lines 1-60
1/*!
2* jquery.inputmask.js
3* https://github.com/RobinHerbots/jquery.inputmask
4* Copyright (c) 2010 - 2016 Robin Herbots
5* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
6* Version: 3.3.4
7*/
8!function(factory) {
9    "function" == typeof define && define.amd ? define([ "jquery", "inputmask" ], factory) : "object" == typeof exports ? module.exports = factory(require("jquery"), require("./inputmask")) : factory(jQuery, window.Inputmask);
10}(function($, Inputmask) {
11    return void 0 === $.fn.inputmask && ($.fn.inputmask = function(fn, options) {
12        var nptmask, input = this[0];
13        if (void 0 === options && (options = {}), "string" == typeof fn) switch (fn) {
14          case "unmaskedvalue":
15            return input && input.inputmask ? input.inputmask.unmaskedvalue() : $(input).val();
16
17          case "remove":
18            return this.each(function() {
19                this.inputmask && this.inputmask.remove();
20            });
21
22          case "getemptymask":
23            return input && input.inputmask ? input.inputmask.getemptymask() : "";
24
25          case "hasMaskedValue":
26            return !(!input || !input.inputmask) && input.inputmask.hasMaskedValue();
27
28          case "isComplete":
29            return !input || !input.inputmask || input.inputmask.isComplete();
30
31          case "getmetadata":
32            return input && input.inputmask ? input.inputmask.getmetadata() : void 0;
33
34          case "setvalue":
35            $(input).val(options), input && void 0 === input.inputmask && $(input).triggerHandler("setvalue");
36            break;
37
38          case "option":
39            if ("string" != typeof options) return this.each(function() {
40                if (void 0 !== this.inputmask) return this.inputmask.option(options);
41            });
42            if (input && void 0 !== input.inputmask) return input.inputmask.option(options);
43            break;
44
45          default:
46            return options.alias = fn, nptmask = new Inputmask(options), this.each(function() {
47                nptmask.mask(this);
48            });
49        } else {
50            if ("object" == typeof fn) return nptmask = new Inputmask(fn), void 0 === fn.mask && void 0 === fn.alias ? this.each(function() {
51                return void 0 !== this.inputmask ? this.inputmask.option(fn) : void nptmask.mask(this);
52            }) : this.each(function() {
53                nptmask.mask(this);
54            });
55            if (void 0 === fn) return this.each(function() {
56                nptmask = new Inputmask(options), nptmask.mask(this);
57            });
58        }
59    }), $.fn.inputmask;
60});

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.