Liferay.Loader.define("dynamic-data-mapping-form-field-type$text-mask-addons@3.8.0/dist/createAutoCorrectedDatePipe",["module","exports","require"],(function(e,n,o){var i,d,a=void 0;window;i=this,d=function(){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,n,o){e.exports=o(1)},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mm dd yyyy",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=n.minYear,a=void 0===d?1:d,u=n.maxYear,s=void 0===u?9999:u,y=e.split(/[^dmyHMS]+/).sort((function(e,n){return i.indexOf(e)-i.indexOf(n)}));return function(n){var i=[],d={dd:31,mm:12,yy:99,yyyy:s,HH:23,MM:59,SS:59},u={dd:1,mm:1,yy:0,yyyy:a,HH:0,MM:0,SS:0},f=n.split("");y.forEach((function(n){var o=e.indexOf(n),a=parseInt(d[n].toString().substr(0,1),10);parseInt(f[o],10)>a&&(f[o+1]=f[o],f[o]=0,i.push(o))}));var p=0;return!y.some((function(i){var y=e.indexOf(i),f=i.length,c=n.substr(y,f).replace(/\D/g,""),m=parseInt(c,10);"mm"===i&&(p=m||0);var l="dd"===i?o[p]:d[i];if("yyyy"===i&&(1!==a||9999!==s)){var v=parseInt(d[i].toString().substring(0,c.length),10);return m<parseInt(u[i].toString().substring(0,c.length),10)||m>v}return m>l||c.length===f&&m<u[i]}))&&{value:f.join(""),indexesOfPipedChars:i}}};var o=[31,31,29,31,30,31,30,31,31,30,31,30,31],i=["yyyy","yy","mm","dd","HH","MM","SS"]}])},"object"==typeof n&&"object"==typeof e?e.exports=d():"function"==typeof a&&a.amd?a([],d):"object"==typeof n?n.createAutoCorrectedDatePipe=d():i.createAutoCorrectedDatePipe=d()}));
//# sourceMappingURL=createAutoCorrectedDatePipe.js.map