/* */ (function(process) { webshims.register('form-number-date-ui', function($, webshims, window, document, undefined, options) { "use strict"; var curCfg; var formcfg = webshims.formcfg; var hasFormValidation = webshims.support.formvalidation && !webshims.bugs.bustedValidity; var monthDigits = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']; var stopPropagation = function(e) { e.stopImmediatePropagation(); }; var getMonthOptions = function(opts) { var selectName = 'monthSelect' + opts.monthNames; if (!curCfg[selectName]) { var labels = curCfg.date[opts.monthNames] || monthDigits; curCfg[selectName] = ('') + $.map(monthDigits, function(val, i) { return ''; }).join(''); } return curCfg[selectName]; }; var daySelect = ''; var createFormat = function(name) { if (!curCfg.patterns[name + 'Obj']) { var obj = {}; $.each(curCfg.patterns[name].split(curCfg[name + 'Format']), function(i, name) { obj[name] = i; }); curCfg.patterns[name + 'Obj'] = obj; } }; var createYearSelect = function(obj, opts) { var options, nowY, max, min; if (opts.yearSelect) { nowY = parseInt(opts.value.split('-')[0], 10); max = opts.max.split('-'); min = opts.min.split('-'); options = webshims.picker.createYearSelect(nowY || parseInt(min[0], 10) || parseInt(max[0], 10) || nowYear, max, min); options.unshift('