Liferay.Loader.define("dynamic-data-mapping-form-field-type$text-mask-addons@3.8.0/dist/emailMask",["module","exports","require"],(function(e,s,f){var d,p,h=void 0;window;d=this,p=function(){return function(e){function t(f){if(s[f])return s[f].exports;var d=s[f]={exports:{},id:f,loaded:!1};return e[f].call(d.exports,d,d.exports,t),d.loaded=!0,d.exports}var s={};return t.m=e,t.c=s,t.p="",t(0)}([function(e,s,f){e.exports=f(3)},,,function(e,s,f){"use strict";function o(e,s,f){var d=[];return e[s]===f?d.push(f):d.push(v,f),d.push(v),d}function i(e,s,f,d){var v=g;return-1!==s&&(v=-1===f?e.slice(s+1,e.length):e.slice(s+1,f)),(v=v.replace(new RegExp("[\\s"+d+"]",y),g))===x?p:v.length<1?m:v[v.length-1]===h?v.slice(0,v.length-1):v}function a(e,s,f,d){var x=g;return-1!==s&&(x=e.slice(s+1,e.length)),0===(x=x.replace(new RegExp("[\\s"+f+".]",y),g)).length?e[s-1]===h&&d!==e.length?p:g:x}function l(e,s){return e.split(g).map((function(e){return e===m?e:s?b:O}))}Object.defineProperty(s,"__esModule",{value:!0});var d=function r(e){return e&&e.__esModule?e:{default:e}}(f(4)),p="*",h=".",g="",x="@",v="[]",m=" ",y="g",O=/[^\s]/,b=/[^.\s]/,w=/\s/g;s.default={mask:function u(e,s){e=e.replace(w,g);var f=s.placeholderChar,d=s.currentCaretPosition,p=e.indexOf(x),v=e.lastIndexOf(h),m=v<p?-1:v,y=o(e,p+1,x),O=o(e,m-1,h),b=function c(e,s){return-1===s?e:e.slice(0,s)}(e,p),M=i(e,p,m,f),_=a(e,m,f,d);return b=l(b),M=l(M),_=l(_,!0),b.concat(y).concat(M).concat(O).concat(_)},pipe:d.default}},function(e,s){"use strict";function r(e){var s=0;return e.replace(d,(function(){return 1==++s?f:p}))}Object.defineProperty(s,"__esModule",{value:!0}),s.default=function n(e,s){var d=s.currentCaretPosition,y=s.rawValue,O=s.previousConformedValue,b=s.placeholderChar,w=e,M=(w=r(w)).indexOf(h);if(null===y.match(new RegExp("[^@\\s."+b+"]")))return p;if(-1!==w.indexOf(x)||-1!==M&&d!==M+1||-1===y.indexOf(f)&&O!==p&&-1!==y.indexOf(g))return!1;var _=w.indexOf(f);return(w.slice(_+1,w.length).match(m)||v).length>1&&w.substr(-1)===g&&d!==y.length&&(w=w.slice(0,w.length-1)),w};var f="@",d=/@/g,p="",h="@.",g=".",x="..",v=[],m=/\./g}])},"object"==typeof s&&"object"==typeof e?e.exports=p():"function"==typeof h&&h.amd?h([],p):"object"==typeof s?s.emailMask=p():d.emailMask=p()}));
//# sourceMappingURL=emailMask.js.map