8 lines
118 KiB
JavaScript
8 lines
118 KiB
JavaScript
|
|
/*!
|
||
|
|
* dist/inputmask.min
|
||
|
|
* https://github.com/RobinHerbots/Inputmask
|
||
|
|
* Copyright (c) 2010 - 2024 Robin Herbots
|
||
|
|
* Licensed under the MIT license
|
||
|
|
* Version: 5.0.9
|
||
|
|
*/
|
||
|
|
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}("undefined"!=typeof self?self:this,(function(){return function(){"use strict";var e={3976:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(e,t){return"function"==typeof t.onBeforeMask?t.onBeforeMask.call(this,e,t):e},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}}},7392:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={9:{validator:"[0-9\uff10-\uff19]",definitionSymbol:"*"},a:{validator:"[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",definitionSymbol:"*"},"*":{validator:"[0-9\uff10-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]"}}},253:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(void 0===n)return e.__data?e.__data[t]:null;e.__data=e.__data||{},e.__data[t]=n}},3776:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0,t.off=function(e,t){var n,i;u(this[0])&&e&&(n=this[0].eventRegistry,i=this[0],e.split(" ").forEach((function(e){var a=o(e.split("."),2);(function(e,i){var a,r,o=[];if(e.length>0)if(void 0===t)for(a=0,r=n[e][i].length;a<r;a++)o.push({ev:e,namespace:i&&i.length>0?i:"global",handler:n[e][i][a]});else o.push({ev:e,namespace:i&&i.length>0?i:"global",handler:t});else if(i.length>0)for(var l in n)for(var s in n[l])if(s===i)if(void 0===t)for(a=0,r=n[l][s].length;a<r;a++)o.push({ev:l,namespace:s,handler:n[l][s][a]});else o.push({ev:l,namespace:s,handler:t});return o})(a[0],a[1]).forEach((function(e){var t=e.ev,a=e.handler;!function(e,t,a){if(e in n==1)if(i.removeEventListener?i.removeEventListener(e,a,!1):i.detachEvent&&i.detachEvent("on".concat(e),a),"global"===t)for(var r in n[e])n[e][r].splice(n[e][r].indexOf(a),1);else n[e][t].splice(n[e][t].indexOf(a),1)}(t,e.namespace,a)}))})));return this},t.on=function(e,t){if(u(this[0])){var n=this[0].eventRegistry,i=this[0];e.split(" ").forEach((function(e){var a=o(e.split("."),2),r=a[0],l=a[1];!function(e,a){i.addEventListener?i.addEventListener(e,t,!1):i.attachEvent&&i.attachEvent("on".concat(e),t),n[e]=n[e]||{},n[e][a]=n[e][a]||[],n[e][a].push(t)}(r,void 0===l?"global":l)}))}return this},t.trigger=function(e){var t=arguments;if(u(this[0]))for(var n=this[0].eventRegistry,i=this[0],o="string"==typeof e?e.split(" "):[e.type],l=0;l<o.length;l++){var s=o[l].split("."),f=s[0],p=s[1]||"global";if(void 0!==c&&"global"===p){var d,h={bubbles:!0,cancelable:!0,composed:!0,detail:arguments[1]};if(c.createEvent){try{if("input"===f)h.inputType="insertText",d=new InputEvent(f,h);else d=new CustomEvent(f,h)}catch(e){(d=c.createEvent("CustomEvent")).initCustomEvent(f,h.bubbles,h.cancelable,h.detail)}e.type&&(0,a.default)(d,e),i.dispatchEvent(d)}else(d=c.createEventObject()).eventType=f,d.detail=arguments[1],e.type&&(0,a.default)(d,e),i.fireEvent("on"+d.eventType,d)}else if(void 0!==n
|