|
|
@@ -3,7 +3,7 @@
|
|
|
* https://github.com/RobinHerbots/Inputmask
|
|
|
* Copyright (c) 2010 - 2018 Robin Herbots
|
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-* Version: 4.0.1-beta.23
|
|
|
+* Version: 4.0.1-beta.24
|
|
|
*/
|
|
|
|
|
|
!function(modules) {
|
|
|
@@ -20,26 +20,14 @@
|
|
|
}
|
|
|
__webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.d = function(exports, name, getter) {
|
|
|
__webpack_require__.o(exports, name) || Object.defineProperty(exports, name, {
|
|
|
+ configurable: !1,
|
|
|
enumerable: !0,
|
|
|
get: getter
|
|
|
});
|
|
|
}, __webpack_require__.r = function(exports) {
|
|
|
- "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports, Symbol.toStringTag, {
|
|
|
- value: "Module"
|
|
|
- }), Object.defineProperty(exports, "__esModule", {
|
|
|
+ Object.defineProperty(exports, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
- }, __webpack_require__.t = function(value, mode) {
|
|
|
- if (1 & mode && (value = __webpack_require__(value)), 8 & mode) return value;
|
|
|
- if (4 & mode && "object" == typeof value && value && value.__esModule) return value;
|
|
|
- var ns = Object.create(null);
|
|
|
- if (__webpack_require__.r(ns), Object.defineProperty(ns, "default", {
|
|
|
- enumerable: !0,
|
|
|
- value: value
|
|
|
- }), 2 & mode && "string" != typeof value) for (var key in value) __webpack_require__.d(ns, key, function(key) {
|
|
|
- return value[key];
|
|
|
- }.bind(null, key));
|
|
|
- return ns;
|
|
|
}, __webpack_require__.n = function(module) {
|
|
|
var getter = module && module.__esModule ? function() {
|
|
|
return module.default;
|
|
|
@@ -335,10 +323,11 @@
|
|
|
var ndxIntlzr, test, testPos, maskTemplate = [], pos = 0, lvp = getLastValidPosition();
|
|
|
do {
|
|
|
if (!0 === baseOnInput && getMaskSet().validPositions[pos]) testPos = clearOptionalTail && !0 === getMaskSet().validPositions[pos].match.optionality && getMaskSet().validPositions[pos + 1] === undefined && (!0 === getMaskSet().validPositions[pos].generatedInput || getMaskSet().validPositions[pos].input == opts.skipOptionalPartCharacter && pos > 0) ? determineTestTemplate(pos, getTests(pos, ndxIntlzr, pos - 1)) : getMaskSet().validPositions[pos],
|
|
|
- test = testPos.match, ndxIntlzr = testPos.locator.slice(), maskTemplate.push(!0 === includeMode ? testPos.input : !1 === includeMode ? test.nativeDef : getPlaceholder(pos, test)); else {
|
|
|
+ test = testPos.match, ndxIntlzr = testPos.locator.slice(), maskTemplate.push(!0 === includeMode ? testPos.input : !1 === includeMode ? test.nativeDef : getPlaceholder(pos, test)),
|
|
|
+ test.jit && test.optionalQuantifier !== undefined && (jitPos = pos, jitOffset = 0); else {
|
|
|
testPos = getTestTemplate(pos, ndxIntlzr, pos - 1), test = testPos.match, ndxIntlzr = testPos.locator.slice();
|
|
|
var jitMasking = !0 !== noJit && (!1 !== opts.jitMasking ? opts.jitMasking : test.jit);
|
|
|
- !1 === jitMasking || jitMasking === undefined || pos < lvp || "number" == typeof jitMasking && isFinite(jitMasking) && jitMasking > pos ? maskTemplate.push(!1 === includeMode ? test.nativeDef : getPlaceholder(pos, test)) : test.jit && test.optionalQuantifier !== undefined && (jitPos = pos,
|
|
|
+ !1 === jitMasking || jitMasking === undefined || pos < lvp || "number" == typeof jitMasking && isFinite(jitMasking) && jitMasking > pos ? maskTemplate.push(!1 === includeMode ? test.nativeDef : getPlaceholder(pos, test)) : test.jit && test.optionalQuantifier !== undefined && (jitPos === undefined && (jitPos = pos),
|
|
|
jitOffset++);
|
|
|
}
|
|
|
"auto" === opts.keepStatic && test.newBlockMarker && null !== test.fn && (opts.keepStatic = pos - 1),
|
|
|
@@ -563,7 +552,7 @@
|
|
|
mloc: {},
|
|
|
cd: cacheDependency
|
|
|
}), ndxIntlzr !== undefined && getMaskSet().tests[pos] ? $.extend(!0, [], matches) : (getMaskSet().tests[pos] = $.extend(!0, [], matches),
|
|
|
- getMaskSet().tests[pos]);
|
|
|
+ console.log(pos + " - " + JSON.stringify(matches)), getMaskSet().tests[pos]);
|
|
|
}
|
|
|
function getBufferTemplate() {
|
|
|
return getMaskSet()._buffer === undefined && (getMaskSet()._buffer = getMaskTemplate(!1, 1),
|
|
|
@@ -639,7 +628,7 @@
|
|
|
var maskPos = pos;
|
|
|
function _isValid(position, c, strict) {
|
|
|
var rslt = !1, tstPos = position;
|
|
|
- return jitPos !== undefined && tstPos >= jitPos && getMaskSet().validPositions[jitPos + jitOffset] == undefined && (tstPos += jitOffset),
|
|
|
+ return jitPos !== undefined && tstPos >= jitPos && getMaskSet().validPositions[jitPos + jitOffset - 1] == undefined && (tstPos += jitOffset - 1),
|
|
|
$.each(getTests(tstPos), function(ndx, tst) {
|
|
|
var test = tst.match;
|
|
|
if (getBuffer(!0), !1 !== (rslt = null != test.fn ? test.fn.test(c, getMaskSet(), position, strict, opts, isSelection(pos)) : (c === test.def || c === opts.skipOptionalPartCharacter) && "" !== test.def && {
|