{"version":3,"sources":["webpack:////tmp/build_74596f24/app/assets/es6/vendor/jquery.yafov.js","webpack:////tmp/build_74596f24/node_modules/process/browser.js","webpack:////tmp/build_74596f24/node_modules/script-loader/addScript.js","webpack:////tmp/build_74596f24/app/assets/es6/icmib/validations.js","webpack:////tmp/build_74596f24/app/assets/es6/legacyValidations.js","webpack:////tmp/build_74596f24/app/assets/es6/icmib/home/validations.js","webpack:////tmp/build_74596f24/app/assets/es6/utils/translate.js","webpack:////tmp/build_74596f24/app/assets/es6/vendor/jquery.yafov.js?89f3"],"names":["module","exports","cachedSetTimeout","cachedClearTimeout","process","defaultSetTimout","Error","defaultClearTimeout","runTimeout","fun","setTimeout","e","call","this","clearTimeout","currentQueue","queue","draining","queueIndex","cleanUpNextTick","length","concat","drainQueue","timeout","len","run","marker","runClearTimeout","Item","array","noop","nextTick","args","Array","arguments","i","push","prototype","apply","title","browser","env","argv","version","versions","on","addListener","once","off","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","listeners","name","binding","cwd","chdir","dir","umask","src","log","error","console","execScript","attachEvent","addEventListener","eval","errorMessage","field","t","requiredChooseOneOrManyValidator","value","elements","callback","valid","each","type","checked","requiredChooseOneOrManyGetGroup","el","closest","find","requiredMultiPartValidator","$","val","requiredMultiPartGetGroup","constantSumValidator","allBlank","ICMIB","surveys","isConstantSumBlank","isNone","isConstantSumNoneOfTheAbove","target","getConstantSumTarget","sum","from","reduce","reduceConstantSum","constantSumGetGroup","constantSumOtherValidator","otherName","trim","not","otherVal","filter","constantSumOtherGetGroup","otherVerbatimValidator","els","cb","filled","is","otherVerbatimGetGroup","BACKOFF","buildErrorMessage","is_message","$msg","for","id","addClass","icon","$field","html","prepend","remove","removeClass","parent","label","after","append","removeErrorMessage","validations","initUserRegistrationValidation","yafov","addGroupMethod","addMethod","element","unique_subdomain_xhr","abort","ajax","url","data","encodeURIComponent","complete","success","response","match","$row","row_valid","hasClass","wrapper","user_validator","bind","prop","submit","matchPasswords","result","isGroup","isValid","trigger","preventDefault","blur","chooseIcon","__webpack_require__","d","__webpack_exports__","addYafovMethods","key","subs","dictionary","substitute","warn","exception","string","split","seg","idx","join","tcap","s","charAt","toUpperCase","slice"],"mappings":"wFAAAA,EAAAC,QAAA,wrhCCCA,IAOAC,EACAC,EARAC,EAAAJ,EAAAC,QAAA,GAUA,SAAAI,IACA,UAAAC,MAAA,mCAEA,SAAAC,IACA,UAAAD,MAAA,qCAsBA,SAAAE,EAAAC,GACA,GAAAP,IAAAQ,WAEA,OAAAA,WAAAD,EAAA,GAGA,IAAAP,IAAAG,IAAAH,IAAAQ,WAEA,OADAR,EAAAQ,WACAA,WAAAD,EAAA,GAEA,IAEA,OAAAP,EAAAO,EAAA,GACK,MAAAE,GACL,IAEA,OAAAT,EAAAU,KAAA,KAAAH,EAAA,GACS,MAAAE,GAET,OAAAT,EAAAU,KAAAC,KAAAJ,EAAA,MAvCA,WACA,IAEAP,EADA,mBAAAQ,WACAA,WAEAL,EAEK,MAAAM,GACLT,EAAAG,EAEA,IAEAF,EADA,mBAAAW,aACAA,aAEAP,EAEK,MAAAI,GACLR,EAAAI,GAjBA,GAwEA,IAEAQ,EAFAC,EAAA,GACAC,GAAA,EAEAC,GAAA,EAEA,SAAAC,IACAF,GAAAF,IAGAE,GAAA,EACAF,EAAAK,OACAJ,EAAAD,EAAAM,OAAAL,GAEAE,GAAA,EAEAF,EAAAI,QACAE,KAIA,SAAAA,IACA,IAAAL,EAAA,CAGA,IAAAM,EAAAf,EAAAW,GACAF,GAAA,EAGA,IADA,IAAAO,EAAAR,EAAAI,OACAI,GAAA,CAGA,IAFAT,EAAAC,EACAA,EAAA,KACAE,EAAAM,GACAT,GACAA,EAAAG,GAAAO,MAGAP,GAAA,EACAM,EAAAR,EAAAI,OAEAL,EAAA,KACAE,GAAA,EAnEA,SAAAS,GACA,GAAAvB,IAAAW,aAEA,OAAAA,aAAAY,GAGA,IAAAvB,IAAAI,IAAAJ,IAAAW,aAEA,OADAX,EAAAW,aACAA,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E,MAAMyE,aAGtB,KAIGgE,EAEH,OADA1E,GAAQ,GACD,IAIXD,EAASC,IAIX,SAAgCK,GAK9B,OAJcA,EAAGC,QAAQ,UAENC,KAAK,YAERsB,IAAI,gBAI1B+D,uCCzRA,SAAApK,GAAO,SAASmE,EAAEkG,EAAKC,GACrB,IACE,OAAKhF,OAAUA,MAAMiF,WAGhBjF,MAAMiF,WAAWF,GAOfC,EACHE,EAAWlF,MAAMiF,WAAWF,GAAMC,GAClChF,MAAMiF,WAAWF,IAPbrK,GAAWA,EAAQqC,IACvBuB,SAAWA,QAAQ6G,KAAR,wBAAAxJ,OAAqCoJ,IAE3CA,GAPAA,EAYT,MAAOK,GAEP,OAAOL,GAIJ,SAASG,EAAWG,EAAQL,GAKjC,OAJaK,EAAOC,MAAM,QACJ7E,OAAO,SAAC2D,EAAQmB,EAAKC,GACzC,OAAOpB,EAAOzI,OAAO4J,EAAKP,EAAKQ,KAC9B,IACaC,KAAK,IAGhB,SAASC,EAAKX,EAAKC,GACxB,IAIyBK,EAJnBM,EAAI9G,EAAEkG,EAAKC,GAAQ,GACzB,OAGyBK,EAHPM,GAIJC,OAAO,GAAGC,cAAgBR,EAAOS,MAAM,GAnCvDnB,EAAAC,EAAAC,EAAA,sBAAAhG,IAAA8F,EAAAC,EAAAC,EAAA,sBAAAK,IAAAP,EAAAC,EAAAC,EAAA,sBAAAa,mDCAAf,EAAQ,OAARA,CAAyEA,EAAQ","file":"22-validations-68983bc0306e66e26bc5.js","sourcesContent":["module.exports = \"/**\\n * yafov\\n * http://www.gnu.org/licenses/gpl.html\\n * A fork of https://github.com/dilvie/h5Validate\\n */\\n\\n/*global jQuery, window */\\n/*jslint browser: true, devel: true, onevar: true, undef: true, nomen: true,\\n eqeqeq: true, bitwise: true, regexp: true, newcap: true, immed: true */\\n(function ($) {\\n var yafov = { // Public API\\n defaults: {\\n debug: false,\\n\\n // HTML5-compatible validation pattern library that can be extended and/or overriden.\\n //** TODO: Test the new regex patterns. Should I apply these to the new input types?\\n patternLibrary: {\\n // **TODO: password\\n phone: /([\\\\+][0-9]{1,3}([ \\\\.\\\\-])?)?([\\\\(]{1}[0-9]{3}[\\\\)])?([0-9A-Z \\\\.\\\\-]{1,32})((x|ext|extension)?[0-9]{1,4}?)/,\\n\\n // Shamelessly lifted from Scott Gonzalez via the Bassistance\\n // Validation plugin\\n // http://projects.scottsplayground.com/email_address_validation/\\n email: /((([a-zA-Z]|\\\\d|[!#\\\\$%&'\\\\*\\\\+\\\\-\\\\/=\\\\?\\\\^_`{\\\\|}~]|[\\\\u00A0-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF])+(\\\\.([a-zA-Z]|\\\\d|[!#\\\\$%&'\\\\*\\\\+\\\\-\\\\/=\\\\?\\\\^_`{\\\\|}~]|[\\\\u00A0-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF])+)*)|((\\\\x22)((((\\\\x20|\\\\x09)*(\\\\x0d\\\\x0a))?(\\\\x20|\\\\x09)+)?(([\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x7f]|\\\\x21|[\\\\x23-\\\\x5b]|[\\\\x5d-\\\\x7e]|[\\\\u00A0-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF])|(\\\\\\\\([\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0d-\\\\x7f]|[\\\\u00A0-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF]))))*(((\\\\x20|\\\\x09)*(\\\\x0d\\\\x0a))?(\\\\x20|\\\\x09)+)?(\\\\x22)))@((([a-zA-Z]|\\\\d|[\\\\u00A0-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF])|(([a-zA-Z]|\\\\d|[\\\\u00A0-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF])([a-zA-Z]|\\\\d|-|\\\\.|_|~|[\\\\u00A0-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF])*([a-zA-Z]|\\\\d|[\\\\u00A0-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF])))\\\\.)+(([a-zA-Z]|[\\\\u00A0-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF])|(([a-zA-Z]|[\\\\u00A0-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF])([a-zA-Z]|\\\\d|-|\\\\.|_|~|[\\\\u00A0-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF])*([a-zA-Z]|[\\\\u00A0-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF])))\\\\.?/,\\n\\n // Shamelessly lifted from Scott Gonzalez via the Bassistance\\n // Validation plugin http://projects.scottsplayground.com/iri/\\n url: /(https?|ftp):\\\\/\\\\/(((([a-zA-Z]|\\\\d|-|\\\\.|_|~|[\\\\u00A0-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF])|(%[\\\\da-f]{2})|[!\\\\$&'\\\\(\\\\)\\\\*\\\\+,;=]|:)*@)?(((\\\\d|[1-9]\\\\d|1\\\\d\\\\d|2[0-4]\\\\d|25[0-5])\\\\.(\\\\d|[1-9]\\\\d|1\\\\d\\\\d|2[0-4]\\\\d|25[0-5])\\\\.(\\\\d|[1-9]\\\\d|1\\\\d\\\\d|2[0-4]\\\\d|25[0-5])\\\\.(\\\\d|[1-9]\\\\d|1\\\\d\\\\d|2[0-4]\\\\d|25[0-5]))|((([a-zA-Z]|\\\\d|[\\\\u00A0-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF])|(([a-zA-Z]|\\\\d|[\\\\u00A0-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\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FDCF\\\\uFDF0-\\\\uFFEF])|(%[\\\\da-f]{2})|[!\\\\$&'\\\\(\\\\)\\\\*\\\\+,;=]|:|@)|\\\\/|\\\\?)*)?/,\\n\\n // Number, including positive, negative, and floating decimal. Credit: bassistance\\n number: /-?(?:\\\\d+|\\\\d{1,3}(?:,\\\\d{3})+)(?:\\\\.\\\\d+)?/,\\n\\n // Date in ISO format. Credit: bassistance\\n dateISO: /\\\\d{4}[\\\\/\\\\-]\\\\d{1,2}[\\\\/\\\\-]\\\\d{1,2}/,\\n\\n alpha: /[a-zA-Z]+/,\\n alphaNumeric: /\\\\w+/,\\n integer: /-?\\\\d+/\\n },\\n\\n // Setup KB event delegation.\\n kbSelectors: ':input:not(:submit,:button)',\\n focusout: true,\\n focusin: false,\\n change: true,\\n keyup: false,\\n\\n // Setup mouse event delegation.\\n mSelectors: '[type=\\\"range\\\"], :radio, :checkbox',\\n click: true,\\n\\n activeKeyup: true,\\n\\n stripMarkup: true,\\n\\n // Validate on submit?\\n // **TODO: This isn't implemented, yet.\\n submit: true,\\n\\n // Callback stubs\\n invalidCallback: function () {},\\n validCallback: function () {},\\n\\n // When submitting, validate elements that haven't been validated yet?\\n validateOnSubmit: true,\\n\\n // Elements to validate with allValid (only validating visible elements)\\n allValidSelectors: 'input:visible, textarea:visible, select:visible'\\n }\\n },\\n // Aliases\\n defaults = yafov.defaults,\\n patternLibrary = defaults.patternLibrary,\\n\\n validatorMethods = (function () {\\n var methods = [],\\n groupMethods = [],\\n /* an object to store the method indexes by their name */\\n methodsByName = {},\\n groupMethodsByName = {},\\n interf = {\\n /**\\n * When we add a new validator a name must be given. If a\\n * validator already exists with the same name, it will be\\n * overwritten\\n * @param String name the name of the validator, eg.: required, number\\n * @param jQuerySelectorString selector The selector of the\\n * element what should match. Only those elements will be\\n * validated which are matching to this selector (see\\n * $(element).is('selector'))\\n * @param Function fn The validator function. The function must handle 3 arguments:\\n * value: the current value of the element: which the\\n * $(element).val() except for checboxes and radio fields,\\n * because then $(element).is(':checked')\\n * element: the element which needs to be validated (jQuery object)\\n * callback: a callback function what you should call when you\\n * figured out that the element is valid or not. You must\\n * pass the result as a boolean. It must bee true if the\\n * field is valid or false if it's invalid\\n */\\n add: function (selector, name, fn) {\\n var existIndex, index, item;\\n\\n existIndex = interf.indexByName(name);\\n index = existIndex > -1 ? existIndex : methods.length;\\n item = {\\n selector: selector,\\n fn: fn,\\n name: name\\n };\\n methodsByName[name] = index;\\n methods[index] = item;\\n },\\n /**\\n * When we add a new validator a name must be given. If a\\n * validator already exists with the same name, it will be\\n * overwritten\\n * @param String name the name of the validator, eg.: required, number\\n * @param jQuerySelectorString selector The selector of the\\n * element what should match. Only those elements will be\\n * validated which are matching to this selector (see\\n * $(element).is('selector'))\\n * @param Function fn The validator function. The function must handle 3 arguments:\\n * value: the current value of the element: which the\\n * $(element).val() except for checboxes,\\n * because then $(element).is(':checked')\\n * element: the element which needs to be validated (jQuery object)\\n * callback: a callback function what you should call when you\\n * figured out that the element is valid or not. You must\\n * pass the result as a boolean. It must bee true if the\\n * field is valid or false if it's invalid\\n */\\n addGroup: function (selector, name, fn, getGroupItems) {\\n var existIndex, index, item;\\n\\n existIndex = interf.indexByName(name, true);\\n index = existIndex > -1 ? existIndex : interf.len(true);\\n item = {\\n selector: selector,\\n fn: fn,\\n name: name,\\n getGroupItems: getGroupItems\\n };\\n groupMethodsByName[name] = index;\\n groupMethods[index] = item;\\n },\\n /**\\n * method to get the validator object's index by it's name\\n * @param String name the name of the validator\\n * @param Boolean isGroup if true, it will search in group methods\\n */\\n indexByName: function (name, isGroup) {\\n var index = isGroup ? groupMethodsByName[name] : methodsByName[name];\\n return typeof index !== 'undefined' ? index : -1;\\n },\\n /**\\n * method to get the validator object by it's index\\n * @param Int the index of the validator\\n */\\n get: function (index, isGroup) {\\n return interf.getAll(isGroup)[index];\\n },\\n getAll: function (isGroup) {\\n return isGroup ? groupMethods : methods;\\n },\\n /**\\n * method to get the validator object by it's name\\n * @param String the name of the validator\\n */\\n getByName: function (name, isGroup) {\\n return interf.get(interf.indexByName(name, isGroup), isGroup);\\n },\\n /**\\n * Method to get the number of the validators have added\\n */\\n len: function (isGroup) {\\n return isGroup ? groupMethods.length : methods.length;\\n }\\n };\\n // finally return the interface\\n return interf;\\n }()),\\n\\n addMethod = function (selector, name, fn) {\\n validatorMethods.add(selector, name, fn);\\n },\\n\\n addGroupMethod = function (selector, name, fn, getGroupItems) {\\n validatorMethods.addGroup(selector, name, fn, getGroupItems);\\n },\\n\\n /**\\n * @param HTMLElement element A input or textarea or select which will be validated\\n * @param String name The validator name, defines which validator needs to be used\\n * @param String value The current value of the element. Don't\\n * need to pass the value, because we will get it if it's not a string, but\\n * if you already have it, you can pass it here so we don't need to ask for\\n * it again\\n * @param Function cb Callback function. This is NOT optional. The third or\\n * fourth argument must be the callback. It will receive one argument,\\n * which will be a boolean: true if the field is valid, false if not\\n */\\n validateWith = function validateWith(element, name, cb, value, isGroup) {\\n var args = arguments,\\n method, callback;\\n\\n callback = function (isValid) {\\n cb(isValid, element);\\n };\\n method = validatorMethods.getByName(name, isGroup);\\n\\n if (typeof method !== 'undefined') {\\n if (isGroup) {\\n element = method.getGroupItems(element);\\n } else {\\n element = $(element);\\n }\\n if (typeof value !== 'string' && !isGroup) {\\n value = (element) ?\\n element.is(':checked') :\\n element.val();\\n }\\n method.fn(value, element, callback);\\n } else {\\n callback(true);\\n }\\n },\\n\\n isOptional = function isOptional(element, value) {\\n return !element.is('[required],.required') && value === '';\\n },\\n\\n /* method which finds out if an element belongs to a group */\\n isGroupElement = function (element) {\\n var groupValidators = validatorMethods.getAll(true),\\n gl = groupValidators.length,\\n matching = false,\\n elem = $(element),\\n i;\\n\\n for (i = 0; !matching && i < gl; i += 1) {\\n matching = elem.is(groupValidators[i].selector);\\n }\\n return matching;\\n },\\n\\n /**\\n *\\n */\\n validateElement = function (element, cb) {\\n var $this = $(element),\\n\\n isGroup = isGroupElement(element),\\n\\n // length of the validator methods\\n vl = validatorMethods.len(isGroup),\\n // loop index: get validators by their index\\n index = 0,\\n // default result object\\n result = {\\n isValid: true,\\n name: '',\\n field: $this,\\n isGroup: isGroup\\n },\\n // method run when a validation finished\\n onValidate,\\n validatorItemCb,\\n value,\\n validate;\\n\\n // get the value once, so it gonna be cached\\n value = ($this.is('[type=checkbox]')) ? $this.is(':checked') : $this.val();\\n\\n validate = function () {\\n var validator = validatorMethods.get(index, isGroup);\\n // check if need to validate\\n if (result.isValid && $this.is(validator.selector)) {\\n result.name = validator.name;\\n validateWith($this, validator.name, validatorItemCb, value, isGroup);\\n } else {\\n onValidate();\\n }\\n };\\n onValidate = function () {\\n if (index + 1 < vl) {\\n index += 1;\\n validate();\\n } else {\\n cb(result);\\n }\\n };\\n // the elem gonna be all the elements which were validated by this validatior action\\n // normally it's the same what we pass ($this) to the validateWith\\n // function, but when it's a group validator then all of the elements\\n // will be listed here\\n validatorItemCb = function (valid, validatedElements) {\\n // update result\\n result.isValid = valid;\\n result.field = validatedElements;\\n // if not valid make sure we don't run the next validator\\n if (!valid) {\\n index = vl - 1;\\n }\\n onValidate();\\n };\\n validate(index);\\n },\\n\\n methods = {\\n validate: function (element, cb) {\\n var $element = $(element);\\n validateElement($element.get(0), function (result) {\\n if (result.isValid) {\\n $element.trigger('validfound', result);\\n } else {\\n $element.trigger('invalidfound', result);\\n }\\n if (typeof cb === 'function') {\\n cb(result);\\n }\\n });\\n },\\n\\n /**\\n * Take the event preferences and delegate the events to selected\\n * objects.\\n *\\n * @param {object} eventFlags The object containing event flags.\\n *\\n * @returns {element} The passed element (for method chaining).\\n */\\n delegateEvents: function (selectors, eventFlags, element, settings) {\\n var events = [],\\n $element = $(element),\\n key, validate, i, el;\\n\\n validate = function (e) {\\n methods.validate(this);\\n };\\n $.each(eventFlags, function (key, value) {\\n if (value) {\\n events.push(key);\\n }\\n });\\n key = 0;\\n\\n for (i = 0, el = events.length; i < el; i += 1) {\\n $element.delegate(selectors, events[i] + '.yafov', validate);\\n }\\n return element;\\n },\\n /**\\n * Prepare for event delegation.\\n *\\n * @param {object} settings The full plugin state, including\\n * options.\\n *\\n * @returns {object} jQuery object for chaining.\\n */\\n bindDelegation: function (settings) {\\n // bind to forms\\n this.filter('form').attr('novalidate', 'novalidate')\\n .find('form').attr('novalidate', 'novalidate')\\n .parents('form').attr('novalidate', 'novalidate');\\n\\n this.submit(function (e) {\\n // prevent submitting the form before validation\\n e.preventDefault();\\n\\n var form = $(this),\\n errors = [],\\n groupMethods = validatorMethods.getAll(true),\\n groupSelectors = $.unique($.map(groupMethods, function (method) {\\n return method.selector;\\n })),\\n fieldsValidated = false,\\n groupFieldsValidated = false,\\n fields,\\n groupFields,\\n collectInvalids,\\n groupFieldsArr,\\n finish;\\n\\n // if finished both the simple and group validators formvalid\\n // or forminvalid events gonna be triggered\\n finish = function () {\\n if (fieldsValidated && groupFieldsValidated) {\\n if (errors.length < 1) {\\n errors = null;\\n form.trigger('formvalid');\\n } else {\\n form.trigger('forminvalid', {errors: errors});\\n }\\n }\\n };\\n collectInvalids = function (fields, group) {\\n var validated = 0;\\n return function () {\\n methods.validate(this, function (result) {\\n if (result.isValid !== true) {\\n errors.push(result);\\n }\\n validated += 1;\\n if (validated >= fields.length) {\\n if (group) {\\n groupFieldsValidated = true;\\n } else {\\n fieldsValidated = true;\\n }\\n finish();\\n }\\n });\\n }\\n };\\n fields = form.find(settings.kbSelectors + ',' +\\n settings.mSelectors + ',' +\\n settings.activeClassSelector).not(groupSelectors.join(','));\\n \\n if (fields.length > 0) {\\n fields.each(collectInvalids(fields, false));\\n } else {\\n fieldsValidated = true;\\n finish();\\n }\\n\\n // here comes the slow part\\n // first we search for all elements which are belongs to a group validator\\n groupFields = form.find(groupSelectors.join(','));\\n groupFieldsArr = [];\\n // then we go through all of the found elements\\n // and keep only one element from each group\\n // So a group will be validated only once\\n //\\n // The best would be if it would be possible to find only the\\n // first element for each group by the first time\\n // But that would require to make the getGroupItems too\\n // complex (which isn't so simple already)\\n if (groupFields.length > 0) {\\n groupFields.each(function (gfIndex, field) {\\n // create a jquery object from the field, because in the\\n // collector probably that will be used and then don't need\\n // to get an object each time the getGroupItems method\\n // called\\n var jqField = $(field);\\n $.each(groupMethods, function (gmIndex, method) {\\n var fields = method.getGroupItems(jqField);\\n if (fields.length > 0) {\\n groupFieldsArr.push(fields[0]);\\n }\\n });\\n });\\n } else {\\n groupFieldsValidated = true;\\n finish();\\n }\\n $.each($.unique(groupFieldsArr), collectInvalids(groupFieldsArr, true));\\n });\\n\\n return this.each(function () {\\n var kbEvents = {\\n focusout: settings.focusout,\\n focusin: settings.focusin,\\n change: settings.change,\\n keyup: settings.keyup\\n },\\n mEvents = {\\n click: settings.click\\n };\\n\\n settings.delegateEvents(settings.kbSelectors, kbEvents, this, settings);\\n settings.delegateEvents(settings.mSelectors, mEvents, this, settings);\\n });\\n }\\n };\\n\\n $.yafov = {\\n /**\\n * Validate an element\\n * @param HTMLElement element The element what you want to validate\\n * @param Function cb Callback function, with one argument which is a\\n * result object {isValid: bool, name: validatorName, field: element, isGroup: bool}\\n */\\n validate: function (element, cb) {\\n methods.validate(element, cb);\\n },\\n /**\\n * Checks if an element is valid or not\\n * @param HTMLElement element The element what you want to validate\\n * @param Function cb Callback function, with one argument, which is a result object\\n */\\n elementIsValid: function (element, cb) {\\n validateElement(element, function (result) {\\n cb(result.isValid);\\n });\\n },\\n /**\\n * @param jQueryObject element A input or textarea or select which will be validated as jQuery object\\n * @param String name The validator name, defines which validator needs to be used\\n * @param Function cb Callback function. This is NOT optional. The third or\\n * fourth argument must be the callback. It will receive one argument,\\n * which will be a boolean: true if the field is valid, false if not\\n * @param String value Optional The current value of the element. Don't\\n * need to pass the value, because we will get it if it's not a string, but\\n * if you already have it, you can pass it here so we don't need to ask for\\n * it again\\n */\\n validateWith: function (element, name, cb, isGroup) {\\n validateWith(element, name, cb, null, isGroup);\\n },\\n /**\\n * Adds a new validator method\\n * @param jQuerySelecotorString selector jQuery selector string.\\n * The selector of the\\n * element what should match. Only those elements will be\\n * validated which are matching to this selector (see\\n * $(element).is('{selector}'))\\n * @param String name String the name of the validator, eg.: required,\\n * number\\n * When we add a new validator a name must be given. If a validator\\n * already exists with the same name, the old one will be overwritten\\n * @param Function fn The validator function. The function must handle 3 arguments:\\n * value: the current value of the element: which the\\n * $(element).val() except for checboxes because then $(element).is(':checked')\\n * element: the element which needs to be validated (jQuery object)\\n * callback: a callback function what you should call when you\\n * figured out that the element is valid or not. You must\\n * pass the result as a boolean. It must bee true if the\\n * field is valid or false if it's invalid\\n */\\n addMethod: function (selector, name, fn) {\\n addMethod(selector, name, fn);\\n },\\n /**\\n * @param jQuerySelectorString selector The selector of the element\\n * what should match. Only those elements will be validated which are\\n * matching to this selector (see $(element).is('{selector}'))\\n * @param String name the name of the validator, eg.: required, number\\n * When we add a new validator a name must be given. If a validator\\n * already exists with the same name, it will be overwritten\\n * @param Function fn The validator function. The function must handle 3 arguments:\\n * value: _doesn't make any sense here, would be better to remove, no?_\\n * because then $(element).is(':checked')\\n * elements: The group of the elements which needs to be validated (jQuery object).\\n * callback: a callback function what you should call when you\\n * figured out that the element is valid or not. You must\\n * pass the result as a boolean. It must bee true if the\\n * field is valid or false if it's invalid\\n * @param Function getGroupItems The function which collects the\\n * elements which are belonging to the same group element: The element\\n * which is a member of a group. The method should find the other\\n * members of the group and return them as a jQuery object.\\n */\\n addGroupMethod: function (selector, name, fn, getGroupItems) {\\n addGroupMethod(selector, name, fn, getGroupItems);\\n }\\n };\\n\\n $.fn.yafov = function (options) {\\n // Combine defaults and options to get current settings.\\n var settings = $.extend({}, defaults, options, methods),\\n action,\\n args;\\n\\n // Expose public API.\\n $.extend($.fn.yafov, yafov);\\n\\n if (typeof options === 'string' && typeof methods[options] === 'function') {\\n args = $.makeArray(arguments);\\n action = options;\\n args.shift();\\n args = $.merge(args, [settings]);\\n\\n return settings[action].apply(this, args);\\n }\\n\\n // Returning the jQuery object allows for method chaining.\\n return methods.bindDelegation.call(this, settings);\\n };\\n\\n $([\\n /*\\n * value shouldn't be empty\\n * \\n * \\n */\\n ['[required],.required', 'required', function (value, element, cb) {\\n var valid = !!value;\\n cb(valid);\\n }],\\n /*\\n * value must be a valid url\\n * \\n * \\n */\\n ['[type=\\\"url\\\"],.url', 'url', function (value, element, cb) {\\n var valid = isOptional(element, value) ||\\n yafov.defaults.patternLibrary.url.test(value);\\n cb(valid);\\n }],\\n /*\\n * value must be a valid email address\\n * \\n * \\n */\\n ['[type=\\\"email\\\"],.email', 'email', function (value, element, cb) {\\n var valid = isOptional(element, value) ||\\n yafov.defaults.patternLibrary.email.test(value);\\n cb(valid);\\n }],\\n /*\\n * value must be a valid tel number\\n * \\n * \\n */\\n ['[type=\\\"tel\\\"],.tel', 'tel', function (value, element, cb) {\\n var valid = isOptional(element, value) ||\\n yafov.defaults.patternLibrary.phone.test(value);\\n cb(valid);\\n }],\\n /*\\n * value must contain only numeric chars\\n * \\n */\\n ['[type=\\\"number\\\"],.number', 'number', function (value, element, cb) {\\n // +null returns 0\\n var valid = isOptional(element, value) || value !== null && !isNaN(+value);\\n cb(valid);\\n }],\\n /*\\n * Value must be equal or less then max and more or equal then min\\n * range validator: = +value && valid;\\n }\\n cb(valid);\\n }, value, false);\\n }],\\n /*\\n * Value must be equal or more\\n * min validator: \\n */\\n ['.alpha', 'alpha', function (value, element, cb) {\\n var valid = isOptional(element, value) ||\\n yafov.defaults.patternLibrary.alpha.test(value);\\n cb(valid);\\n }],\\n /*\\n * value must contain only alphanumeric chars\\n * \\n */\\n ['.alphanumeric', 'alphanumeric', function (value, element, cb) {\\n var valid = isOptional(element, value) ||\\n yafov.defaults.patternLibrary.alphanumeric.test(value);\\n cb(valid);\\n }]\\n ]).each(function () {\\n addMethod.apply(null, this);\\n });\\n $([\\n /*\\n * value shouldn't be empty\\n * \\n * \\n */\\n [\\n 'input[type=\\\"radio\\\"][required],input[type=\\\"radio\\\"].required',\\n 'required',\\n function requiredGroupValiadator(value, element, cb) {\\n var valid = element.filter(':checked').length > 0;\\n cb(valid);\\n },\\n /*\\n * collects all elements which belongs to the group\\n * one parameter, which is the reference element\\n */\\n function requiredRadioGroupCollector(element) {\\n var elem = $(element),\\n form = elem.closest('form'),\\n elements;\\n\\n elements = form.find('input[type=\\\"radio\\\"][name=\\\"' + elem.attr('name') + '\\\"]');\\n return elements;\\n }\\n ]\\n ]).each(function () {\\n addGroupMethod.apply(null, this);\\n });\\n}(jQuery));\\n\"","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\nmodule.exports = function(src) {\n\tfunction log(error) {\n\t\t(typeof console !== \"undefined\")\n\t\t&& (console.error || console.log)(\"[Script Loader]\", error);\n\t}\n\n\t// Check for IE =< 8\n\tfunction isIE() {\n\t\treturn typeof attachEvent !== \"undefined\" && typeof addEventListener === \"undefined\";\n\t}\n\n\ttry {\n\t\tif (typeof execScript !== \"undefined\" && isIE()) {\n\t\t\texecScript(src);\n\t\t} else if (typeof eval !== \"undefined\") {\n\t\t\teval.call(null, src);\n\t\t} else {\n\t\t\tlog(\"EvalError: No eval function available\");\n\t\t}\n\t} catch (error) {\n\t\tlog(error);\n\t}\n}\n","import { initSocialLogin } from './sessions';\nimport { t } from '../utils/translate';\n\nconst errorMessage = function(error) {\n if (error.field[0] && error.field[0].name === 'terms_sign_up') {\n return 'You must agree to the terms and conditions';\n }\n if (error.name === 'required') {\n return t('field_required');\n }\n if (error.name === 'email') {\n return t('must_be_valid_email');\n }\n if (error.name === 'no_email') {\n return t('cannot_be_email');\n }\n if (error.name === 'url') {\n return t('must_be_valid_url');\n }\n if (error.name === 'tel') {\n return 'Must be a valid phone number';\n }\n if (error.name === 'unique_email') {\n return t('email_taken');\n }\n if (error.name === 'unique_subdomain') {\n return t('subdomain_taken');\n }\n if (error.name === 'checking_email') {\n return t('checking_email');\n }\n if (error.name === 'checking_subdomain') {\n return t('checking_subdomain');\n }\n if (error.name === 'match_password') {\n return t('match_password');\n }\n if (error.name === 'requiredSingleSelect') {\n return t('must_choose_one');\n }\n if (error.name === 'requiredMultipleChoice') {\n return t('must_choose_at_least_one');\n }\n if (error.name === 'requiredMatrix') {\n return t('must_make_one_entry_per_row');\n }\n if (error.name === 'requiredOpenMatrix') {\n return t('must_fill_all');\n }\n if (error.name === 'constantSum') {\n return t('constant_sum_no_match');\n }\n if (error.name === 'constantSumOther') {\n return t('constant_sum_other_required');\n }\n if (error.name === 'otherVerbatim') {\n return t('otherVerbatim');\n }\n if (error.name === 'usZipcode') {\n return 'Invalid zip code';\n }\n return t('general_validation_error');\n};\n\n// Inject error messages for yafov validations\n// Set is_message to true if this is just a message and you\n// don't want to add red error styling to the field\nexport function buildErrorMessage(error, is_message) {\n if (error.name === '') {\n return false;\n }\n\n const chooseIcon = function() {\n if (error.type && error.type === 'ajax') {\n return ' ';\n }\n return '';\n };\n\n const $msg = $('