Socket
Socket
Sign inDemoInstall

vee-validate

Package Overview
Dependencies
Maintainers
1
Versions
339
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vee-validate - npm Package Compare versions

Comparing version 1.0.0-beta.9 to 1.0.0-beta.10

dist/locale/ka.js

24

contributing.md

@@ -13,3 +13,3 @@ # Contributing to Vee-Validate

`npm install` or `yarn`
`npm install` or for better results use `yarn`

@@ -32,10 +32,18 @@ Check the `scripts` section of `package.json` for any npm scripts that might find useful.

### Pull Requests
- The `master` branch serves Vue 2.0 version of the plugin, for Vue 1.0 version check the `vue1` branch.
- Respect the ESlint rules, but we are open to any suggestions or alterations.
- You don't have to build the library with each pull request, but you will if you plan to test it manually. No need to submit it in the PR to avoid as much conflicts as possible.
- The clearer the PR title is, the faster it will get merged.
- Make sure that your PR is up to date with the branch you are targeting, use git rebase for this.
- Unfinished/In-Progress PRs should have `[WIP]` prefix to them.
- Make sure to mention which issues are being fixed by the PR so they can be closed properly.
### Source Code
<<<<<<< HEAD
Currently we are using ES2015 (ES6) for the source code, using Babel and Webpack to convert it to ES5.
=======
Currently we are using ES2015 (ES6) for the source code, using Babel and Rollup to convert it to ES5, the available builds are: non-minified, minified and es6.
>>>>>>> e0996fa... update contribution guide
Currently we are using ES2015 (ES6) for the source code, using Babel and Webpack to convert it to ES5, the available builds are: non-minified and minified.
Also we are using ESlint for code style, it based of airbnb config but with few modifications, please respect them as much as you can.
### Testing

@@ -49,6 +57,6 @@

Currently I'm not testing the directive and the mixin, I will work on adding those tests later if I can, help will be appreciated.
Currently I'm not testing the directive and the mixin, I will work on adding those tests later if I can, help will be appreciated if we can test the other stuff.
### Building
Use `npm run build` to build the project both minified and unminified versions as well as the es6 version.
Use `npm run build` to build the project both minified and unminified versions.

@@ -9,3 +9,4 @@ export default {

between: (field, [min, max]) => `The ${field} must be between ${min} and ${max}.`,
confirmed: (field, [confirmedField]) => `The ${field} does not match the ${confirmedField}.`,
confirmed: (field) => `The ${field} confirmation does not match.`,
credit_card: (field) => `The ${field} is invalid.`,
date_between: (field, [min, max]) => `The ${field} must be between ${min} and ${max}.`,

@@ -22,4 +23,6 @@ date_format: (field, [format]) => `The ${field} must be in the format ${format}.`,

max: (field, [length]) => `The ${field} may not be greater than ${length} characters.`,
max_value: (field, [max]) => `The ${field} must be ${max} or less.`,
mimes: (field) => `The ${field} must have a valid file type.`,
min: (field, [length]) => `The ${field} must be at least ${length} characters.`,
min_value: (field, [min]) => `The ${field} must be ${min} or more.`,
not_in: (field) => `The ${field} must be a valid value.`,

@@ -26,0 +29,0 @@ numeric: (field) => `The ${field} may only contain numeric characters.`,

export default {
after: (field, [target]) => `Trường ${field} phải xuất hiện sau ${target}.`,
alpha_dash: (field) => `Trường ${field} có thể chứa các kí tự chữ, số, gạch ngang và gạch dưới.`,
alpha_num: (field) => `Trường ${field} chỉ có thể chứa các kí tự chữ và số.`,
alpha: (field) => `Trường ${field} chỉ có thể chứa các kí tự chữ.`,
before: (field, [target]) => `Trường ${field} phải xuất hiện trước ${target}.`,
between: (field, [min, max]) => `Trường ${field} phải có giá trị nằm trong khoảng giữa ${min} và ${max}.`,
confirmed: (field, [confirmedField]) => `Trường ${field} không trùng khớp với trường ${confirmedField}.`,
date_between: (field, [min, max]) => `Trường ${field} phải có giá trị nằm trong khoảng giữa ${min} và ${max}.`,
date_format: (field, [format]) => `Trường ${field} phải có giá trị dưới định dạng ${format}.`,
decimal: (field, [decimals] = ['*']) => `Trường ${field} chỉ có thể chứa các kí tự số và dấu thập phân ${decimals === '*' ? '' : decimals}.`,
after: (field, [target]) => `${field} phải xuất hiện sau ${target}.`,
alpha_dash: (field) => `${field} có thể chứa các kí tự chữ, số, gạch ngang và gạch dưới.`,
alpha_num: (field) => `${field} chỉ có thể chứa các kí tự chữ và số.`,
alpha: (field) => `${field} chỉ có thể chứa các kí tự chữ.`,
before: (field, [target]) => `${field} phải xuất hiện trước ${target}.`,
between: (field, [min, max]) => `${field} phải có giá trị nằm trong khoảng giữa ${min} và ${max}.`,
confirmed: (field, [confirmedField]) => `${field} khác với ${confirmedField}.`,
date_between: (field, [min, max]) => `${field} phải có giá trị nằm trong khoảng giữa ${min} và ${max}.`,
date_format: (field, [format]) => `${field} phải có giá trị dưới định dạng ${format}.`,
decimal: (field, [decimals] = ['*']) => `${field} chỉ có thể chứa các kí tự số và dấu thập phân ${decimals === '*' ? '' : decimals}.`,
digits: (field, [length]) => `Trường ${field} chỉ có thể chứa các kí tự số và bắt buộc phải có độ dài là ${length}.`,
dimensions: (field, [width, height]) => `Trường ${field} phải có chiều rộng ${width} pixels và chiều cao ${height} pixels.`,
email: (field) => `Trường ${field} phải là một địa chỉ email hợp lệ.`,
ext: (field) => `Trường ${field} phải là một tệp.`,
dimensions: (field, [width, height]) => `${field} phải có chiều rộng ${width} pixels và chiều cao ${height} pixels.`,
email: (field) => `${field} phải là một địa chỉ email hợp lệ.`,
ext: (field) => `${field} phải là một tệp.`,
image: (field) => `Trường ${field} phải là một ảnh.`,
in: (field) => `Trường ${field} phải là một giá trị.`,
ip: (field) => `Trường ${field} phải là một địa chỉ ip hợp lệ.`,
max: (field, [length]) => `Trường ${field} không thể có nhiều hơn ${length} kí tự.`,
mimes: (field) => `Trường ${field} phải chứa kiểu tệp phù hợp.`,
min: (field, [length]) => `Trường ${field} phải chứa ít nhất ${length} kí tự.`,
not_in: (field) => `Trường ${field} phải chứa một giá trị hợp lệ.`,
numeric: (field) => `Trường ${field} chỉ có thể có các kí tự số.`,
regex: (field) => `Trường ${field} có định dạng không đúng.`,
required: (field) => `Trường ${field} là bắt buộc.`,
size: (field, [size]) => `Trường ${field} chỉ có thể chứa tệp nhỏ hơn ${size} KB.`,
url: (field) => `Trường ${field} không phải là một địa chỉ URL hợp lệ.`
in: (field) => `${field} phải là một giá trị.`,
ip: (field) => `${field} phải là một địa chỉ ip hợp lệ.`,
max: (field, [length]) => `${field} không thể có nhiều hơn ${length} kí tự.`,
mimes: (field) => `${field} phải chứa kiểu tệp phù hợp.`,
min: (field, [length]) => `${field} phải chứa ít nhất ${length} kí tự.`,
not_in: (field) => `${field} phải chứa một giá trị hợp lệ.`,
numeric: (field) => `${field} chỉ có thể có các kí tự số.`,
regex: (field) => `${field} có định dạng không đúng.`,
required: (field) => `${field} là bắt buộc.`,
size: (field, [size]) => `${field} chỉ có thể chứa tệp nhỏ hơn ${size} KB.`,
url: (field) => `${field} không phải là một địa chỉ URL hợp lệ.`
};

@@ -1,1 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.VeeValidate=t()}(this,function(){"use strict";var e=function(e){return!Array.isArray(e)&&/^[a-zA-Z]*$/.test(e)},t=function(e){return!Array.isArray(e)&&/^[a-zA-Z0-9_-]*$/.test(e)},i=function(e){return!Array.isArray(e)&&/^[a-zA-Z0-9]*$/.test(e)},n=function(e){return/^[a-zA-Z\s]*$/.test(String(e))},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=(function(){function e(e){this.value=e}function t(t){function i(e,t){return new Promise(function(i,r){var o={key:e,arg:t,resolve:i,reject:r,next:null};s?s=s.next=o:(a=s=o,n(e,t))})}function n(i,a){try{var s=t[i](a),o=s.value;o instanceof e?Promise.resolve(o.value).then(function(e){n("next",e)},function(e){n("throw",e)}):r(s.done?"return":"normal",s.value)}catch(e){r("throw",e)}}function r(e,t){switch(e){case"return":a.resolve({value:t,done:!0});break;case"throw":a.reject(t);break;default:a.resolve({value:t,done:!1})}a=a.next,a?n(a.key,a.arg):s=null}var a,s;this._invoke=i,"function"!=typeof t.return&&(this.return=void 0)}return"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)},{wrap:function(e){return function(){return new t(e.apply(this,arguments))}},await:function(t){return new e(t)}}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),s=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},l=function(){function e(e,t){var i=[],n=!0,r=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw a}}return i}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(e){return Array.isArray(e)?e:Array.from(e)},f=function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)},d=function(e,t){var i=l(t,2),n=i[0],r=i[1];return Number(n)<=e&&Number(r)>=e},h=function(e,t){var i=l(t,1),n=i[0],r=document.querySelector("input[name='"+n+"']");return!(!r||String(e)!==r.value)},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["*"],i=l(t,1),n=i[0];if(Array.isArray(e))return!1;if(null===e||void 0===e||""===e)return!0;var r="*"===n?"+":"{1,"+n+"}",a=new RegExp("^-?\\d*(\\.\\d"+r+")?$");return!!a.test(e)&&!Number.isNaN(parseFloat(e))},m=function(e,t){var i=l(t,1),n=i[0],r=String(e);return/^[0-9]*$/.test(r)&&r.length===Number(n)},y=function(e,t,i){var n=window.URL||window.webkitURL;return new Promise(function(r){var a=new Image;a.onerror=function(){return r({valid:!1})},a.onload=function(){return r({valid:a.width===Number(t)&&a.height===Number(i)})},a.src=n.createObjectURL(e)})},g=function(e,t){for(var i=l(t,2),n=i[0],r=i[1],a=[],s=0;s<e.length;s++){if(!/\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(e[s].name))return!1;a.push(e[s])}return Promise.all(a.map(function(e){return y(e,n,r)}))},p=function(e){return/^(([^<>()[\]\\.,;:#\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,6}))$/.test(e)},b=function(e,t){for(var i=new RegExp(".("+t.join("|")+")$","i"),n=0;n<e.length;n++)if(!i.test(e[n].name))return!1;return!0},k=function(e){for(var t=0;t<e.length;t++)if(!/\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(e[t].name))return!1;return!0},_=function(e,t){return!!t.filter(function(t){return t==e}).length},$=function(e){return/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(e)},w=function(e,t){var i=l(t,1),n=i[0];return void 0===e||null===e?n>=0:String(e).length<=n},x=function(e,t){for(var i=new RegExp(t.join("|").replace("*",".+")+"$","i"),n=0;n<e.length;n++)if(!i.test(e[n].type))return!1;return!0},A=function(e,t){var i=l(t,1),n=i[0];return void 0!==e&&null!==e&&String(e).length>=n},T=function(e,t){return!t.filter(function(t){return t==e}).length},E=function(e){return!Array.isArray(e)&&/^[0-9]*$/.test(e)},L=function(e,t){var i=c(t),n=i[0],r=i.slice(1);return n instanceof RegExp?n.test(e):new RegExp(n,r).test(String(e))},F=function(e){return Array.isArray(e)?!!e.length:void 0!==e&&null!==e&&!!String(e).trim().length},S=function(e,t){var i=l(t,1),n=i[0];if(isNaN(n))return!1;for(var r=1024*Number(n),a=0;a<e.length;a++)if(e[a].size>r)return!1;return!0},j=function(e,t){var i=/^https?:\/\/([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w\.\(\)%-]*)*\/?$/.test(e),n=t&&t[0];return n&&i?new RegExp("^https?://(([da-z.-]+).)*("+t[0].replace(".","\\$&")+")").test(e):i},N={alpha_dash:t,alpha_num:i,alpha_spaces:n,alpha:e,between:d,confirmed:h,decimal:v,digits:m,dimensions:g,email:p,ext:b,image:k,in:_,ip:$,max:w,mimes:x,min:A,not_in:T,numeric:E,regex:L,required:F,size:S,url:j},O=function(){function e(){a(this,e),this.errors=[]}return s(e,[{key:"add",value:function(e,t,i){var n={field:e,msg:t};i&&(n.scope=i),this.errors.push(n)}},{key:"all",value:function(e){return e?this.errors.filter(function(t){return t.scope===e}).map(function(e){return e.msg}):this.errors.map(function(e){return e.msg})}},{key:"any",value:function(e){return e?!!this.errors.filter(function(t){return t.scope===e}).length:!!this.errors.length}},{key:"clear",value:function(e){return e?void(this.errors=this.errors.filter(function(t){return t.scope!==e})):void(this.errors=[])}},{key:"collect",value:function(e,t){var i=this;if(!e){var n=function(){var e={};return i.errors.forEach(function(t){e[t.field]||(e[t.field]=[]),e[t.field].push(t.msg)}),{v:e}}();if("object"===("undefined"==typeof n?"undefined":r(n)))return n.v}return t?this.errors.filter(function(i){return i.field===e&&i.scope===t}).map(function(e){return e.msg}):this.errors.filter(function(t){return t.field===e}).map(function(e){return e.msg})}},{key:"count",value:function(){return this.errors.length}},{key:"first",value:function(e,t){for(var i=0;i<this.errors.length;i++)if(this.errors[i].field===e){if(!t)return this.errors[i].msg;if(this.errors[i].scope===t)return this.errors[i].msg}return null}},{key:"has",value:function(e,t){for(var i=0;i<this.errors.length;i++)if(this.errors[i].field===e){if(!t)return!0;if(this.errors[i].scope===t)return!0}return!1}},{key:"remove",value:function(e,t){return t?void(this.errors=this.errors.filter(function(i){return i.field!==e||i.scope!==t})):void(this.errors=this.errors.filter(function(t){return t.field!==e}))}}]),e}(),B=function(){function e(t){a(this,e),this.msg=t}return s(e,[{key:"toString",value:function(){return this.msg}}]),e}(),M=function(e){return e.dataset.scope||e.form&&e.form.dataset.scope},V=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t)return e;var n=void 0;return function(r){function a(){i||e.apply(u,o),n=null}var s=c(r),o=s,u=this;n?clearTimeout(n):i&&e.apply.apply(e,[u].concat(f(o))),n=setTimeout(a,t||100)}},D=function(e){console&&console.warn("vee-validate: "+e)},R=function(e){return e&&"object"===("undefined"==typeof e?"undefined":r(e))&&!Array.isArray(e)&&null!==e},z=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(this,e),this.dictionary={},this.merge(t)}return s(e,[{key:"hasLocale",value:function(e){return!!this.dictionary[e]}},{key:"getMessage",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return this.hasMessage(e,t)?this.dictionary[e].messages[t]:i}},{key:"getAttribute",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return this.hasAttribute(e,t)?this.dictionary[e].attributes[t]:i}},{key:"hasMessage",value:function(e,t){return!!(this.hasLocale(e)&&this.dictionary[e].messages&&this.dictionary[e].messages[t])}},{key:"hasAttribute",value:function(e,t){return!!(this.hasLocale(e)&&this.dictionary[e].attributes&&this.dictionary[e].attributes[t])}},{key:"merge",value:function(e){this._merge(this.dictionary,e)}},{key:"setMessage",value:function(e,t,i){this.hasLocale(e)||(this.dictionary[e]={messages:{},attributes:{}}),this.dictionary[e].messages[t]=i}},{key:"setAttribute",value:function(e,t,i){this.hasLocale(e)||(this.dictionary[e]={messages:{},attributes:{}}),this.dictionary[e].attributes[t]=i}},{key:"_merge",value:function(e,t){var i=this;return R(e)&&R(t)?(Object.keys(t).forEach(function(n){return R(t[n])?(e[n]||u(e,o({},n,{})),void i._merge(e[n],t[n])):void u(e,o({},n,t[n]))}),e):e}}]),e}(),q={alpha_dash:function(e){return"The "+e+" may contain alpha-numeric characters as well as dashes and underscores."},alpha_num:function(e){return"The "+e+" may only contain alpha-numeric characters."},alpha_spaces:function(e){return"The "+e+" may only contain alphabetic characters as well as spaces."},alpha:function(e){return"The "+e+" may only contain alphabetic characters."},between:function(e,t){var i=l(t,2),n=i[0],r=i[1];return"The "+e+" must be between "+n+" and "+r+"."},confirmed:function(e,t){var i=l(t,1),n=i[0];return"The "+e+" does not match the "+n+"."},decimal:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["*"],i=l(t,1),n=i[0];return"The "+e+" must be numeric and may contain "+("*"===n?"":n)+" decimal points."},digits:function(e,t){var i=l(t,1),n=i[0];return"The "+e+" must be numeric and exactly contain "+n+" digits."},dimensions:function(e,t){var i=l(t,2),n=i[0],r=i[1];return"The "+e+" must be "+n+" pixels by "+r+" pixels."},email:function(e){return"The "+e+" must be a valid email."},ext:function(e){return"The "+e+" must be a valid file."},image:function(e){return"The "+e+" must be an image."},in:function(e){return"The "+e+" must be a valid value."},ip:function(e){return"The "+e+" must be a valid ip address."},max:function(e,t){var i=l(t,1),n=i[0];return"The "+e+" may not be greater than "+n+" characters."},mimes:function(e){return"The "+e+" must have a valid file type."},min:function(e,t){var i=l(t,1),n=i[0];return"The "+e+" must be at least "+n+" characters."},not_in:function(e){return"The "+e+" must be a valid value."},numeric:function(e){return"The "+e+" may only contain numeric characters."},regex:function(e){return"The "+e+" format is invalid."},required:function(e){return"The "+e+" is required."},size:function(e,t){var i=l(t,1),n=i[0];return"The "+e+" must be less than "+n+" KB."},url:function(e){return"The "+e+" is not a valid URL."}},P=function(e){return function(t,i){var n=l(i,2),r=n[0],a=n[1],s=e(t,a,!0),o=document.querySelector("input[name='"+r+"']");if(!s.isValid()||!o)return!1;var u=e(o.value,a,!0);return!!u.isValid()&&s.isAfter(u)}},I=function(e){return function(t,i){var n=l(i,2),r=n[0],a=n[1],s=e(t,a,!0),o=document.querySelector("input[name='"+r+"']");if(!s.isValid()||!o)return!1;var u=e(o.value,a,!0);return!!u.isValid()&&s.isBefore(u)}},U=function(e){return function(t,i){var n=l(i,1),r=n[0];return e(t,r,!0).isValid()}},Z=function(e){return function(t,i){var n=l(i,3),r=n[0],a=n[1],s=n[2],o=e(r,s,!0),u=e(a,s,!0),c=e(t,s,!0);return!!(o.isValid()&&u.isValid()&&c.isValid())&&c.isBetween(o,u)}},C={after:function(e,t){var i=l(t,1),n=i[0];return"The "+e+" must be after "+n+"."},before:function(e,t){var i=l(t,1),n=i[0];return"The "+e+" must be before "+n+"."},date_between:function(e,t){var i=l(t,2),n=i[0],r=i[1];return"The "+e+" must be between "+n+" and "+r+"."},date_format:function(e,t){var i=l(t,1),n=i[0];return"The "+e+" must be in the format "+n+"."}},Y={make:function(e){return{date_format:U(e),after:P(e),before:I(e),date_between:Z(e)}},messages:C,installed:!1},K=function(){function e(t){a(this,e),this.fields={},this.$vm=t}return s(e,[{key:"_add",value:function(e){this.fields[e]={},this.$vm&&"function"==typeof this.$vm.$set&&this.$vm.$set("fields."+e,{}),this._setFlags(e,{dirty:!1,valid:!1},!0)}},{key:"reset",value:function(e){var t=this;return e?void this._setFlags(e,{dirty:!1,valid:!1},!0):void Object.keys(this.fields).forEach(function(e){t._setFlags(e,{dirty:!1,valid:!1},!0)})}},{key:"_remove",value:function(e){delete this.fields[e]}},{key:"_setFlags",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object.keys(t).every(function(r){return i._setFlag(e,r,t[r],n)});return r&&this.$vm&&"function"==typeof this.$vm.$set&&this.$vm.$set("fields."+e,this.fields[e]),r}},{key:"_setFlag",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r="set"+t.charAt(0).toUpperCase()+t.slice(1);return"function"==typeof this[r]&&(this[r](e,i,n),!0)}},{key:"setDirty",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.fields[e].dirty=t,this.fields[e].clean=i||!t,this.fields[e].passed=this.fields[e].valid&&t,this.fields[e].failed=!this.fields[e].valid&&t}},{key:"setValid",value:function(e,t){this.fields[e].valid=t,this.fields[e].passed=this.fields[e].dirty&&t,this.fields[e].failed=this.fields[e].dirty&&!t}},{key:"_getFieldFlag",value:function(e,t){return!!this.fields[e]&&this.fields[e][t]}},{key:"dirty",value:function(e){var t=this;return e?this._getFieldFlag(e,"dirty"):Object.keys(this.fields).some(function(e){return t.fields[e].dirty})}},{key:"valid",value:function(e){var t=this;return e?this._getFieldFlag(e,"valid"):Object.keys(this.fields).every(function(e){return t.fields[e].valid})}},{key:"passed",value:function(e){var t=this;return e?this._getFieldFlag(e,"passed"):Object.keys(this.fields).every(function(e){return t.fields[e].passed})}},{key:"failed",value:function(e){var t=this;return e?this._getFieldFlag(e,"failed"):Object.keys(this.fields).some(function(e){return t.fields[e].failed})}},{key:"clean",value:function(e){return e?this._getFieldFlag(e,"clean"):!this.dirty()}}]),e}(),G="veeValidate",H="en",J=!0,Q=new z({en:{messages:q,attributes:{}}}),W=function(){function e(t,i){a(this,e),this.locale=H,this.strictMode=J,this.$fields={},this.fieldBag=new K(i),this._createFields(t),this.errorBag=new O,this.$vm=i,"function"==typeof moment&&this.installDateTimeValidators(moment)}return s(e,[{key:"installDateTimeValidators",value:function(t){e.installDateTimeValidators(t)}},{key:"setStrictMode",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.strictMode=e}},{key:"setLocale",value:function(e){Q.hasLocale(e)||D("You are setting the validator locale to a locale that is not defined in the dicitionary. English messages may still be generated."),this.locale=e}},{key:"attach",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.errorBag.remove(e),this._createField(e,t),i&&(this.$fields[e].name=i)}},{key:"updateDictionary",value:function(t){e.updateDictionary(t)}},{key:"detach",value:function(e){this.$vm&&"function"==typeof this.$vm.$emit&&this.$vm.$emit("VALIDATOR_OFF",e),delete this.$fields[e],this.fieldBag._remove(e)}},{key:"extend",value:function(t,i){e.extend(t,i)}},{key:"validateAll",value:function(e){var t=this;if(this.$vm&&(!e||"string"==typeof e))return this.errorBag.clear(e),void this.$vm.$emit(G,e);var i=!0,n=[];return this.errorBag.clear(),Object.keys(e).forEach(function(r){var a=t.validate(r,e[r]);return"function"==typeof a.then?void n.push(a):void(i=i&&a)}),n.length?Promise.all(n).then(function(e){return e.every(function(e){return e})&&i}):i}},{key:"validate",value:function(e,t,i){var n=this;if(!this.$fields[e])return!this.strictMode||(D('Trying to validate a non-existant field: "'+e+'". Use "attach()" first.'),!1);if(this.errorBag.remove(e,i),!this.$fields[e].required&&~[null,void 0,""].indexOf(t))return!0;var r=!0,a=[];return this.$fields[e].validations.forEach(function(s){var o=n._test(e,t,s,i);return"function"==typeof o.then?void a.push(o):void(r=r&&o)}),a.length?Promise.all(a).then(function(t){var i=t.every(function(e){return e})&&r;return n.fieldBag._setFlags(e,{valid:i,dirty:!0}),i}):(this.fieldBag._setFlags(e,{valid:r,dirty:!0}),r)}},{key:"_createFields",value:function(e){var t=this;e&&Object.keys(e).forEach(function(i){t._createField(i,e[i])})}},{key:"_createField",value:function(e,t){var i=this;return this.$fields[e]||(this.$fields[e]={}),this.fieldBag._add(e),this.$fields[e].validations=[],Array.isArray(t)?void(this.$fields[e].validations=t):void t.split("|").forEach(function(t){var n=i._normalizeRule(t,i.$fields[e].validations);"required"===n.name&&(i.$fields[e].required=!0),i.$fields[e].validations.push(n)})}},{key:"_normalizeRule",value:function(e,t){var i=[],n=e.split(":")[0];if(~e.indexOf(":")&&(i=e.split(":")[1].split(",")),Y.installed&&~["after","before","date_between"].indexOf(n)){var r=t.filter(function(e){return"date_format"===e.name})[0];r&&i.push(r.params[0])}return{name:n,params:i}}},{key:"_formatErrorMessage",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this._getFieldDisplayName(e),r=this._getLocalizedParams(t);return Q.hasLocale(this.locale)&&"function"==typeof Q.getMessage(this.locale,t.name)?Q.getMessage(this.locale,t.name)(n,r,i):Q.getMessage("en",t.name)(n,r,i)}},{key:"_getLocalizedParams",value:function(e){return~["after","before","confirmed"].indexOf(e.name)&&e.params&&e.params[0]?[Q.getAttribute(this.locale,e.params[0],e.params[0])]:e.params}},{key:"_getFieldDisplayName",value:function(e){return this.$fields[e].name||Q.getAttribute(this.locale,e,e)}},{key:"_test",value:function(e,t,i,n){var r=this,a=N[i.name],s=a(t,i.params);return"function"==typeof s.then?s.then(function(t){var a=!0;return Array.isArray(t)?(a=t.every(function(e){return e.valid}),a||r.errorBag.add(e,r._formatErrorMessage(e,i),n)):(a=t.valid,r.errorBag.add(e,r._formatErrorMessage(e,i,t.data),n)),a}):R(s)?(s.valid||this.errorBag.add(e,this._formatErrorMessage(e,i,s.data),n),s.valid):(s||this.errorBag.add(e,this._formatErrorMessage(e,i),n),s)}},{key:"getErrors",value:function(){return this.errorBag}}],[{key:"setDefaultLocale",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";Q.hasLocale(e)||D("You are setting the validator locale to a locale that is not defined in the dicitionary. English messages may still be generated."),H=e}},{key:"setStrictMode",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];J=e}},{key:"installDateTimeValidators",value:function(t){if("function"!=typeof t)return D("To use the date-time validators you must provide moment reference."),!1;if(Y.installed)return!0;var i=Y.make(t);return Object.keys(i).forEach(function(t){e.extend(t,i[t])}),e.updateDictionary({en:{messages:Y.messages}}),Y.installed=!0,!0}},{key:"updateDictionary",value:function(e){Q.merge(e)}},{key:"create",value:function(t,i){return new e(t,i)}},{key:"extend",value:function(t,i){e._guardExtend(t,i),e._merge(t,i)}},{key:"_merge",value:function(e,t){return"function"==typeof t?(N[e]=t,void Q.setMessage("en",e,function(e){return"The "+e+" value is not valid."})):(N[e]=t.validate,t.getMessage&&"function"==typeof t.getMessage&&Q.setMessage("en",e,t.getMessage),void(t.messages&&Q.merge(Object.keys(t.messages).reduce(function(i,n){var r=i;return r[n]={messages:o({},e,t.messages[n])},r},{}))))}},{key:"_guardExtend",value:function(e,t){if(N[e])throw new B("Extension Error: There is an existing validator with the same name '"+e+"'.");if("function"!=typeof t){if("function"!=typeof t.validate)throw new B("Extension Error: The validator '"+e+"' must be a function or have a 'validate' method.");if("function"!=typeof t.getMessage&&"object"!==r(t.messages))throw new B("Extension Error: The validator '"+e+"' must have a 'getMessage' method or have a 'messages' object.")}}}]),e}(),X=[],ee=function(e){for(var t=0;t<X.length;t++)if(X[t].$vm===e)return X[t].$validator},te=function(e){var t=ee(e);return t||(t=W.create(void 0,e),X.push({$vm:e,$validator:t})),t},ie=function(e){for(var t=0;t<X.length;t++)if(X[t].$vm===e)return X.splice(t,1),!0;return!1},ne=function(e){return{data:function(){var t;return t={},o(t,e.errorBagName,this.$validator.errorBag),o(t,e.fieldsBagName,this.$validator.fieldBag),t},ready:function(){var e=this;this.$nextTick(function(){e.$emit("validatorReady")})},destroyed:function(){ie(this)}}},re="veeValidate",ae=function(){function e(t,i,n,r){a(this,e),this.callbacks=[],this.el=t,this.binding=i,this.vm=n,this.options=r,this.fieldName=i.expression||t.name}return s(e,[{key:"_hasFieldDependency",value:function(e){var t=e.split("|").filter(function(e){return!!e.match(/confirmed|after|before/)});return!!t.length&&t[0].split(":")[1]}},{key:"_inputListener",value:function(){this.vm.$validator.validate(this.fieldName,this.el.value,M(this.el))}},{key:"_fileListener",value:function(){var e=this.vm.$validator.validate(this.fieldName,this.el.files,M(this.el));!e&&this.binding.modifiers.reject&&(el.value="")}},{key:"_radioListener",value:function(){var e=document.querySelector('input[name="'+this.el.name+'"]:checked');return e?void this.vm.$validator.validate(this.fieldName,e.value,M(this.el)):void this.vm.$validator.validate(this.fieldName,null,M(this.el))}},{key:"_checkboxListener",value:function(){var e=this,t=document.querySelectorAll('input[name="'+this.el.name+'"]:checked');return t&&t.length?void[].concat(f(t)).forEach(function(t){e.vm.$validator.validate(e.fieldName,t.value,M(e.el))}):void this.vm.$validator.validate(this.fieldName,null,M(this.el))}},{key:"_getScopedListener",value:function(e){var t=this;return function(i){(!i||i===M(t.el)||i instanceof Event)&&e()}}},{key:"_attachValidatorEvent",value:function(){var e=this,t=this._getScopedListener(this._getSuitableListener().listener.bind(this));this.vm.$on(re,t),this.callbacks.push({name:re,listener:t}),this.vm.$on("VALIDATOR_OFF",function(t){e.fieldName===t&&e.detach()});var i=this._hasFieldDependency(this.el.dataset.rules);i&&this.vm.$once("validatorReady",function(){var n=document.querySelector("input[name='"+i+"']");return n?(n.addEventListener("input",t),void e.callbacks.push({name:"input",listener:t,el:n})):void D("Cannot find target field, no additional listeners were attached.")})}},{key:"_getSuitableListener",value:function(){return"file"===this.el.type?{name:"change",listener:this._fileListener}:"radio"===this.el.type?{name:"change",listener:this._radioListener}:"checkbox"===this.el.type?{name:"change",listener:this._checkboxListener}:{name:"input",listener:this._inputListener}}},{key:"_attachFieldListeners",value:function(){var e=this,t=this._getSuitableListener(),i=V(t.listener.bind(this),this.el.dataset.delay||this.options.delay);return~["radio","checkbox"].indexOf(this.el.type)?void this.vm.$once("validatorReady",function(){[].concat(f(document.querySelectorAll('input[name="'+e.el.name+'"]'))).forEach(function(n){n.addEventListener(t.name,i),e.callbacks.push({name:t.name,listener:i,el:n})})}):(this.el.addEventListener(t.name,i),void this.callbacks.push({name:t.name,listener:i,el:this.el}))}},{key:"attach",value:function(){this.vm.$validator.attach(this.fieldName,this.el.dataset.rules,this.el.dataset.as),this._attachValidatorEvent(),this.binding.expression||this._attachFieldListeners()}},{key:"detach",value:function(){var e=this;this.callbacks.filter(function(e){var t=e.name;return t===re}).forEach(function(t){e.vm.$off(re,t.listener)}),this.callbacks.filter(function(e){var t=e.name;return t!==re}).forEach(function(e){e.el.removeEventListener(e.name,e.listener)})}}]),e}(),se=[],oe=function(e){return{bind:function(){var t=this;this.vm.$nextTick(function(){t.fieldName=t.expression||t.el.name;var i={expression:t.expression,modifiers:t.modifiers},n=new ae(t.el,i,t.vm,e);n.attach(),se.push({vm:t.vm,el:t.el,instance:n})})},update:function(e){var t=this;if(this.expression)return this.modifiers.initial?void(this.modifiers.initial=!1):this.fieldName?void this.vm.$validator.validate(this.fieldName,e,M(this.el)):void this.vm.$nextTick(function(){t.vm.$validator.validate(t.fieldName,e,M(t.el))})},unbind:function(){var e=this,t=se.filter(function(t){return t.vm===e.vm&&t.el===e.el})[0];t.instance.detach(),se.splice(se.indexOf(t),1)}}},ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.locale,n=void 0===i?"en":i,r=t.delay,a=void 0===r?0:r,s=t.errorBagName,o=void 0===s?"errors":s,u=t.dictionary,l=void 0===u?null:u,c=t.strict,f=void 0===c||c,d=t.fieldsBagName,h=void 0===d?"fields":d;l&&W.updateDictionary(l),W.setDefaultLocale(n),W.setStrictMode(f);var v={locale:n,delay:a,dictionary:l,errorBagName:o,fieldsBagName:h};Object.defineProperties(e.prototype,{$validator:{get:function(){return te(this)}}}),e.mixin(ne(v)),e.directive("validate",oe(v))},le={install:ue,Validator:W,ErrorBag:O};return le});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VeeValidate=t():e.VeeValidate=t()}(this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};return t.m=e,t.c=r,t.i=function(e){return e},t.d=function(e,t,r){Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=53)}([function(e,t){"use strict";function r(e){if("string"!=typeof e)throw new TypeError("This library (validator.js) validates strings only")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t,r){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function i(e){return Array.isArray(e)?e:Array.from(e)}r.d(t,"c",function(){return o}),r.d(t,"d",function(){return u}),r.d(t,"e",function(){return s}),r.d(t,"b",function(){return l}),r.d(t,"a",function(){return f});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){return e.getAttribute("data-vv-"+t)},u=function(e){return o(e,"scope")||e.form&&o(e.form,"scope")},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t)return e;var a=void 0;return function(o){function u(){r||e.apply(f,l),a=null}var s=i(o),l=s,f=this;a?clearTimeout(a):r&&e.apply.apply(e,[f].concat(n(l))),a=setTimeout(u,t||100)}},l=function(e){console&&console.warn("[vee-validate]: "+e)},f=function(e){return null!==e&&e&&"object"===("undefined"==typeof e?"undefined":a(e))&&!Array.isArray(e)}},function(e,t){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];for(var r in t)"undefined"==typeof e[r]&&(e[r]=t[r]);return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=function(){function e(){n(this,e),this.errors=[]}return o(e,[{key:"add",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.errors.push({field:e,msg:t,rule:r,scope:n})}},{key:"all",value:function(e){return e?this.errors.filter(function(t){return t.scope===e}).map(function(e){return e.msg}):this.errors.map(function(e){return e.msg})}},{key:"any",value:function(e){return e?!!this.errors.filter(function(t){return t.scope===e}).length:!!this.errors.length}},{key:"clear",value:function(e){return e?void(this.errors=this.errors.filter(function(t){return t.scope!==e})):void(this.errors=[])}},{key:"collect",value:function(e,t){var r=this,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e){var i=function(){var e={};return r.errors.forEach(function(t){e[t.field]||(e[t.field]=[]),e[t.field].push(n?t.msg:t)}),{v:e}}();if("object"===("undefined"==typeof i?"undefined":a(i)))return i.v}return t?this.errors.filter(function(r){return r.field===e&&r.scope===t}).map(function(e){return n?e.msg:e}):this.errors.filter(function(t){return t.field===e}).map(function(e){return n?e.msg:e})}},{key:"count",value:function(){return this.errors.length}},{key:"first",value:function(e,t){var r=this.selector(e);if(r)return this.firstByRule(r.name,r.rule,t);for(var n=0;n<this.errors.length;n++)if(this.errors[n].field===e&&(!t||this.errors[n].scope===t))return this.errors[n].msg;return null}},{key:"has",value:function(e,t){return!!this.first(e,t)}},{key:"firstByRule",value:function(e,t,r){var n=this.collect(e,r,!1).filter(function(e){return e.rule===t})[0];return n&&n.msg||null}},{key:"remove",value:function(e,t){return t?void(this.errors=this.errors.filter(function(r){return r.field!==e||r.scope!==t})):void(this.errors=this.errors.filter(function(t){return t.field!==e}))}},{key:"selector",value:function(e){if(e.indexOf(":")>-1){var t=e.split(":"),r=i(t,2),n=r[0],a=r[1];return{name:n,rule:a}}return null}}]),e}();t.a=u},function(e,t,r){"use strict";var n=r(5);r.d(t,"b",function(){return o}),r.d(t,"a",function(){return u});var i=[],a=function(e){for(var t=0;t<i.length;t++)if(i[t].$vm===e)return i[t].$validator},o=function(e){var t=a(e);return t||(t=n.a.create(void 0,e),i.push({$vm:e,$validator:t})),t},u=function(e){for(var t=0;t<i.length;t++)if(i[t].$vm===e)return i.splice(t,1),!0;return!1}},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=r(35),o=r(3),u=r(11),s=r(10),l=r(14),f=r(1),c=r(19),d=r(12),v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),y="en",m=!0,p=new s.a({en:{messages:l.a,attributes:{}}}),g=function(){function e(t,r){i(this,e),this.strictMode=m,this.$fields={},this.fieldBag=new d.a(r),this._createFields(t),this.errorBag=new o.a,this.$vm=r,"function"==typeof moment&&this.installDateTimeValidators(moment)}return h(e,[{key:"installDateTimeValidators",value:function(t){e.installDateTimeValidators(t)}},{key:"setStrictMode",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.strictMode=e}},{key:"remove",value:function(t){e.remove(t)}},{key:"setLocale",value:function(e){p.hasLocale(e)||r.i(f.b)("You are setting the validator locale to a locale that is not defined in the dicitionary. English messages may still be generated."),y=e}},{key:"attach",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;this.errorBag.remove(e),this._createField(e,t),this.$fields[e].name=r,this.$fields[e].getter=i,this.$fields[e].context=n}},{key:"updateDictionary",value:function(t){e.updateDictionary(t)}},{key:"detach",value:function(e,t){this.$vm&&"function"==typeof this.$vm.$emit&&this.$vm.$emit("VALIDATOR_OFF",e),this.errorBag.remove(e,t),this.fieldBag._remove(e),delete this.$fields[e]}},{key:"extend",value:function(t,r){e.extend(t,r)}},{key:"_resolveValuesFromGetters",value:function(){var e=this,t={};return Object.keys(this.$fields).forEach(function(r){var n=e.$fields[r].getter,i=e.$fields[r].context;n&&i&&(t[r]=n(i()))}),t}},{key:"validateAll",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._resolveValuesFromGetters(),r=!0,n=[];return this.errorBag.clear(),Object.keys(t).forEach(function(i){var a=e.validate(i,t[i]);return"function"==typeof a.then?void n.push(a):void(r=r&&a)}),Promise.all(n).then(function(e){var t=e.every(function(e){return e})&&r;return t})}},{key:"validate",value:function(e,t,n){var i=this;if(!this.$fields[e])return!this.strictMode||(r.i(f.b)('Trying to validate a non-existant field: "'+e+'". Use "attach()" first.'),!1);if(this.errorBag.remove(e,n),!this.$fields[e].required&&~[null,void 0,""].indexOf(t))return!0;var a=!0,o=[];return this.$fields[e].validations.forEach(function(r){var u=i._test(e,t,r,n);return"function"==typeof u.then?void o.push(u):void(a=a&&u)}),o.length?Promise.all(o).then(function(t){var r=t.every(function(e){return e})&&a;return i.fieldBag._setFlags(e,{valid:r,dirty:!0}),r}):(this.fieldBag._setFlags(e,{valid:a,dirty:!0}),a)}},{key:"_createFields",value:function(e){var t=this;e&&Object.keys(e).forEach(function(r){t._createField(r,e[r])})}},{key:"_createField",value:function(e,t){var r=this;return this.$fields[e]||(this.$fields[e]={}),this.fieldBag._add(e),this.$fields[e].validations=[],Array.isArray(t)?void(this.$fields[e].validations=t):void t.split("|").forEach(function(t){var n=r._normalizeRule(t,r.$fields[e].validations);n.name&&("required"===n.name&&(r.$fields[e].required=!0),r.$fields[e].validations.push(n))})}},{key:"_normalizeRule",value:function(e,t){var r=[],n=e.split(":")[0];if(~e.indexOf(":")&&(r=e.split(":").slice(1).join(":").split(",")),c.a.installed&&~["after","before","date_between"].indexOf(n)){var i=t.filter(function(e){return"date_format"===e.name})[0];i&&r.push(i.params[0])}return{name:n,params:r}}},{key:"_formatErrorMessage",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this._getFieldDisplayName(e),i=this._getLocalizedParams(t);return p.hasLocale(y)&&"function"==typeof p.getMessage(y,t.name)?p.getMessage(y,t.name)(n,i,r):p.getMessage("en",t.name)(n,i,r)}},{key:"_getLocalizedParams",value:function(e){return~["after","before","confirmed"].indexOf(e.name)&&e.params&&e.params[0]?[p.getAttribute(y,e.params[0],e.params[0])]:e.params}},{key:"_getFieldDisplayName",value:function(e){return this.$fields[e].name||p.getAttribute(y,e,e)}},{key:"_test",value:function(e,t,n,i){var o=this,s=a.a[n.name];if(!s||"function"!=typeof s)throw new u.a("No such validator '"+n.name+"' exists.");var l=s(t,n.params,e);return"function"==typeof l.then?l.then(function(t){var r=!0,a={};return Array.isArray(t)?r=t.every(function(e){return e.valid}):(r=t.valid,a=t.data),r||o.errorBag.add(e,o._formatErrorMessage(e,n,a),n.name,i),r}):(r.i(f.a)(l)||(l={valid:l,data:{}}),l.valid||this.errorBag.add(e,this._formatErrorMessage(e,n,l.data),n.name,i),l.valid)}},{key:"getErrors",value:function(){return this.errorBag}},{key:"getLocale",value:function(){return y}}],[{key:"setLocale",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";p.hasLocale(e)||r.i(f.b)("You are setting the validator locale to a locale that is not defined in the dicitionary. English messages may still be generated."),y=e}},{key:"setStrictMode",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];m=e}},{key:"installDateTimeValidators",value:function(t){if("function"!=typeof t)return r.i(f.b)("To use the date-time validators you must provide moment reference."),!1;if(c.a.installed)return!0;var n=c.a.make(t);return Object.keys(n).forEach(function(t){e.extend(t,n[t])}),e.updateDictionary({en:{messages:c.a.messages}}),c.a.installed=!0,!0}},{key:"updateDictionary",value:function(e){p.merge(e)}},{key:"create",value:function(t,r){return new e(t,r)}},{key:"extend",value:function(t,r){e._guardExtend(t,r),e._merge(t,r)}},{key:"remove",value:function(e){delete a.a[e]}},{key:"_merge",value:function(e,t){return"function"==typeof t?(a.a[e]=t,void p.setMessage("en",e,function(e){return"The "+e+" value is not valid."})):(a.a[e]=t.validate,t.getMessage&&"function"==typeof t.getMessage&&p.setMessage("en",e,t.getMessage),void(t.messages&&p.merge(Object.keys(t.messages).reduce(function(r,i){var a=r;return a[i]={messages:n({},e,t.messages[i])},a},{}))))}},{key:"_guardExtend",value:function(e,t){if(a.a[e])throw new u.a("Extension Error: There is an existing validator with the same name '"+e+"'.");if("function"!=typeof t){if("function"!=typeof t.validate)throw new u.a("Extension Error: The validator '"+e+"' must be a function or have a 'validate' method.");if("function"!=typeof t.getMessage&&"object"!==v(t.messages))throw new u.a("Extension Error: The validator '"+e+"' must have a 'getMessage' method or have a 'messages' object.")}}}]),e}();t.a=g},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){(0,o.default)(e),t=(0,s.default)(t,l),t.allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));var r=e.split(".");if(t.require_tld){var n=r.pop();if(!r.length||!/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(n))return!1}for(var i,a=0;a<r.length;a++){if(i=r[a],t.allow_underscores&&(i=i.replace(/_/g,"")),!/^[a-z\u00a1-\uffff0-9-]+$/i.test(i))return!1;if(/[\uff01-\uff5e]/.test(i))return!1;if("-"===i[0]||"-"===i[i.length-1])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=r(0),o=n(a),u=r(2),s=n(u),l={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1};e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,o.default)(e),t=String(t),!t)return i(e,4)||i(e,6);if("4"===t){if(!u.test(e))return!1;var r=e.split(".").sort(function(e,t){return e-t});return r[3]<=255}if("6"===t){var n=e.split(":"),a=!1,l=i(n[n.length-1],4),f=l?7:8;if(n.length>f)return!1;if("::"===e)return!0;"::"===e.substr(0,2)?(n.shift(),n.shift(),a=!0):"::"===e.substr(e.length-2)&&(n.pop(),n.pop(),a=!0);for(var c=0;c<n.length;++c)if(""===n[c]&&c>0&&c<n.length-1){if(a)return!1;a=!0}else if(l&&c===n.length-1);else if(!s.test(n[c]))return!1;return a?n.length>=1:n.length===f}return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=r(0),o=n(a),u=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,s=/^[0-9A-F]{1,4}$/i;e.exports=t.default},function(e,t,r){"use strict";var n=r(13),i=r(1),a=[];t.a=function(e){return{bind:function(){var t=this;this.vm.$nextTick(function(){t.fieldName=t.expression||t.el.name;var r={expression:t.expression,modifiers:t.modifiers},i=new n.a(t.el,r,{context:t.vm},e);i.attach(),a.push({vm:t.vm,el:t.el,instance:i})})},update:function(e){var t=this;if(this.expression)return this.modifiers.initial?void(this.modifiers.initial=!1):this.fieldName?void this.vm.$validator.validate(this.fieldName,e,r.i(i.d)(this.el)):void this.vm.$nextTick(function(){t.vm.$validator.validate(t.fieldName,e,r.i(i.d)(t.el))})},unbind:function(){var e=this,t=a.filter(function(t){return t.vm===e.vm&&t.el===e.el})[0];t.instance.detach(),a.splice(a.indexOf(t),1)}}}},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(4);t.a=function(e){return{data:function(){var t;return t={},n(t,e.errorBagName,this.$validator.errorBag),n(t,e.fieldsBagName,this.$validator.fieldBag),t},ready:function(){var e=this;this.$nextTick(function(){e.$emit("validatorReady")})},destroyed:function(){r.i(i.a)(this)}}}},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=r(1),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this.dictionary={},this.merge(t)}return u(e,[{key:"hasLocale",value:function(e){return!!this.dictionary[e]}},{key:"getMessage",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return this.hasMessage(e,t)?this.dictionary[e].messages[t]:r}},{key:"getAttribute",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return this.hasAttribute(e,t)?this.dictionary[e].attributes[t]:r}},{key:"hasMessage",value:function(e,t){return!!(this.hasLocale(e)&&this.dictionary[e].messages&&this.dictionary[e].messages[t])}},{key:"hasAttribute",value:function(e,t){return!!(this.hasLocale(e)&&this.dictionary[e].attributes&&this.dictionary[e].attributes[t])}},{key:"merge",value:function(e){this._merge(this.dictionary,e)}},{key:"setMessage",value:function(e,t,r){this.hasLocale(e)||(this.dictionary[e]={messages:{},attributes:{}}),this.dictionary[e].messages[t]=r}},{key:"setAttribute",value:function(e,t,r){this.hasLocale(e)||(this.dictionary[e]={messages:{},attributes:{}}),this.dictionary[e].attributes[t]=r}},{key:"_merge",value:function(e,t){var i=this;return r.i(a.a)(e)&&r.i(a.a)(t)?(Object.keys(t).forEach(function(u){return r.i(a.a)(t[u])?(e[u]||o(e,n({},u,{})),void i._merge(e[u],t[u])):void o(e,n({},u,t[u]))}),e):e}}]),e}();t.a=s},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function(){function e(t){n(this,e),this.msg="[vee-validate]: "+t}return i(e,[{key:"toString",value:function(){return this.msg}}]),e}();t.a=a},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function(){function e(t){n(this,e),this.fields={},this.$vm=t}return i(e,[{key:"_add",value:function(e){this.fields[e]={},this.$vm&&"function"==typeof this.$vm.$set&&this.$vm.$set("fields."+e,{}),this._setFlags(e,{dirty:!1,valid:!1},!0)}},{key:"reset",value:function(e){var t=this;return e?void this._setFlags(e,{dirty:!1,valid:!1},!0):void Object.keys(this.fields).forEach(function(e){t._setFlags(e,{dirty:!1,valid:!1},!0)})}},{key:"_remove",value:function(e){delete this.fields[e]}},{key:"_setFlags",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Object.keys(t).every(function(i){return r._setFlag(e,i,t[i],n)});return i&&this.$vm&&"function"==typeof this.$vm.$set&&this.$vm.$set("fields."+e,this.fields[e]),i}},{key:"_setFlag",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i="set"+t.charAt(0).toUpperCase()+t.slice(1);return"function"==typeof this[i]&&(this[i](e,r,n),!0)}},{key:"setDirty",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.fields[e].dirty=t,this.fields[e].clean=r||!t,this.fields[e].passed=this.fields[e].valid&&t,this.fields[e].failed=!this.fields[e].valid&&t}},{key:"setValid",value:function(e,t){this.fields[e].valid=t,this.fields[e].passed=this.fields[e].dirty&&t,this.fields[e].failed=this.fields[e].dirty&&!t}},{key:"_getFieldFlag",value:function(e,t){return!!this.fields[e]&&this.fields[e][t]}},{key:"dirty",value:function(e){var t=this;return e?this._getFieldFlag(e,"dirty"):Object.keys(this.fields).some(function(e){return t.fields[e].dirty})}},{key:"valid",value:function(e){var t=this;return e?this._getFieldFlag(e,"valid"):Object.keys(this.fields).every(function(e){return t.fields[e].valid})}},{key:"passed",value:function(e){var t=this;return e?this._getFieldFlag(e,"passed"):Object.keys(this.fields).every(function(e){return t.fields[e].passed})}},{key:"failed",value:function(e){var t=this;return e?this._getFieldFlag(e,"failed"):Object.keys(this.fields).some(function(e){return t.fields[e].failed})}},{key:"clean",value:function(e){return e?this._getFieldFlag(e,"clean"):!this.dirty()}}]),e}();t.a=a},function(e,t,r){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=r(1),o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=function(){function e(t,r,n,a){i(this,e),this.callbacks=[],this.el=t,this.binding=r,this.vm=n.context,this.component=this.el.__vue__,this.options=a,this.fieldName=this._resolveFieldName()}return o(e,[{key:"_resolveFieldName",value:function(){return this.component?this.component.name||r.i(a.c)(this.el,"name"):this.binding.expression||this.el.name||r.i(a.c)(this.el,"name")}},{key:"_hasFieldDependency",value:function(e){var t=e.split("|").filter(function(e){return!!e.match(/\b(confirmed|after|before):/)});return!!t.length&&t[0].split(":")[1]}},{key:"_inputListener",value:function(){this._validate(this.el.value)}},{key:"_fileListener",value:function(){var e=this._validate(this.el.files);!e&&this.binding.modifiers.reject&&(el.value="")}},{key:"_radioListener",value:function(){var e=document.querySelector('input[name="'+this.el.name+'"]:checked');this._validate(e?e.value:null)}},{key:"_checkboxListener",value:function(){var e=this,t=document.querySelectorAll('input[name="'+this.el.name+'"]:checked');return t&&t.length?void[].concat(n(t)).forEach(function(t){e._validate(t.value)}):void this._validate(null)}},{key:"_validate",value:function(e){return this.vm.$validator.validate(this.fieldName,e,r.i(a.d)(this.el))}},{key:"_getScopedListener",value:function(e){var t=this;return function(n){(!n||n===r.i(a.d)(t.el)||n instanceof Event)&&e()}}},{key:"_attachValidatorEvent",value:function(){var e=this,t=this._getScopedListener(this._getSuitableListener().listener.bind(this));this.vm.$on("VALIDATOR_OFF",function(t){e.fieldName===t&&e.detach()});var n=this._hasFieldDependency(r.i(a.c)(this.el,"rules"));n&&this.vm.$once("validatorReady",function(){var i=document.querySelector("input[name='"+n+"']");return i?(i.addEventListener("input",t),void e.callbacks.push({name:"input",listener:t,el:i})):void r.i(a.b)("Cannot find target field, no additional listeners were attached.")})}},{key:"_getSuitableListener",value:function(){var e=void 0;switch(this.el.type){case"file":e={names:["change"],listener:this._fileListener};break;case"radio":e={names:["change"],listener:this._radioListener};break;case"checkbox":e={names:["change"],listener:this._checkboxListener};break;default:e={names:["input","blur"],listener:this._inputListener}}var t=r.i(a.c)(this.el,"validate-on");return t&&(e.names=t.split("|")),e}},{key:"_attachComponentListeners",value:function(){var e=this;this.component.$on("input",function(t){e.vm.$validator.validate(e.fieldName,t)})}},{key:"_attachFieldListeners",value:function(){var e=this;if(this.component)return void this._attachComponentListeners();var t=this._getSuitableListener(),i=r.i(a.e)(t.listener.bind(this),r.i(a.c)(this.el,"delay")||this.options.delay);return~["radio","checkbox"].indexOf(this.el.type)?void this.vm.$once("validatorReady",function(){[].concat(n(document.querySelectorAll('input[name="'+e.el.name+'"]'))).forEach(function(r){t.names.forEach(function(t){r.addEventListener(t,i),e.callbacks.push({name:t,listener:i,el:r})})})}):void t.names.forEach(function(t){e.el.addEventListener(t,i),e.callbacks.push({name:t,listener:i,el:e.el})})}},{key:"_resolveValueGetter",value:function(){var e=this;if(this.component)return{context:function(){return e.component},getter:function(e){return e[r.i(a.c)(e.$el,"value-path")]||e.value}};switch(this.el.type){case"checkbox":return{context:function(){return document.querySelectorAll('input[name="'+e.el.name+'"]:checked')},getter:function(e){return e&&e.length?[].concat(n(e)).map(function(e){return e.value}):null}};case"radio":return{context:function(){return document.querySelector('input[name="'+e.el.name+'"]:checked')},getter:function(e){return e&&e.value}};case"file":return{context:function(){return e.el},getter:function(e){return e.files}};default:return{context:function(){return e.el},getter:function(e){return e.value}}}}},{key:"attach",value:function(){var e=this._resolveValueGetter(),t=e.context,n=e.getter;this.vm.$validator.attach(this.fieldName,r.i(a.c)(this.el,"rules"),r.i(a.c)(this.el,"as"),t,n),this._attachValidatorEvent(),this.binding.expression||this._attachFieldListeners()}},{key:"detach",value:function(){this.vm.$validator.detach(this.fieldName,r.i(a.d)(this.el)),this.callbacks.forEach(function(e){e.el.removeEventListener(e.name,e.listener)})}}]),e}();t.a=u},function(e,t,r){"use strict";var n=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.a={alpha_dash:function(e){return"The "+e+" may contain alpha-numeric characters as well as dashes and underscores."},alpha_num:function(e){return"The "+e+" may only contain alpha-numeric characters."},alpha_spaces:function(e){return"The "+e+" may only contain alphabetic characters as well as spaces."},alpha:function(e){return"The "+e+" may only contain alphabetic characters."},between:function(e,t){var r=n(t,2),i=r[0],a=r[1];return"The "+e+" must be between "+i+" and "+a+"."},confirmed:function(e){return"The "+e+" confirmation does not match."},credit_card:function(e){return"The "+e+" is invalid."},decimal:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["*"],r=n(t,1),i=r[0];return"The "+e+" must be numeric and may contain "+("*"===i?"":i)+" decimal points."},digits:function(e,t){var r=n(t,1),i=r[0];return"The "+e+" must be numeric and exactly contain "+i+" digits."},dimensions:function(e,t){var r=n(t,2),i=r[0],a=r[1];return"The "+e+" must be "+i+" pixels by "+a+" pixels."},email:function(e){return"The "+e+" must be a valid email."},ext:function(e){return"The "+e+" must be a valid file."},image:function(e){return"The "+e+" must be an image."},in:function(e){return"The "+e+" must be a valid value."},ip:function(e){return"The "+e+" must be a valid ip address."},max:function(e,t){var r=n(t,1),i=r[0];return"The "+e+" may not be greater than "+i+" characters."},max_value:function(e,t){var r=n(t,1),i=r[0];return"The "+e+" must be "+i+" or less."},mimes:function(e){return"The "+e+" must have a valid file type."},min:function(e,t){var r=n(t,1),i=r[0];return"The "+e+" must be at least "+i+" characters."},min_value:function(e,t){var r=n(t,1),i=r[0];return"The "+e+" must be "+i+" or more."},not_in:function(e){return"The "+e+" must be a valid value."},numeric:function(e){return"The "+e+" may only contain numeric characters."},regex:function(e){return"The "+e+" format is invalid."},required:function(e){return"The "+e+" is required."},size:function(e,t){var r=n(t,1),i=r[0];return"The "+e+" must be less than "+i+" KB."},url:function(e){return"The "+e+" is not a valid URL."}}},function(e,t,r){"use strict";var n=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.a=function(e){return function(t,r){var i=n(r,2),a=i[0],o=i[1],u=e(t,o,!0),s=document.querySelector("input[name='"+a+"']");if(!u.isValid()||!s)return!1;var l=e(s.value,o,!0);return!!l.isValid()&&u.isAfter(l)}}},function(e,t,r){"use strict";var n=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.a=function(e){return function(t,r){var i=n(r,2),a=i[0],o=i[1],u=e(t,o,!0),s=document.querySelector("input[name='"+a+"']");if(!u.isValid()||!s)return!1;var l=e(s.value,o,!0);return!!l.isValid()&&u.isBefore(l)}}},function(e,t,r){"use strict";var n=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.a=function(e){return function(t,r){var i=n(r,3),a=i[0],o=i[1],u=i[2],s=e(a,u,!0),l=e(o,u,!0),f=e(t,u,!0);return!!(s.isValid()&&l.isValid()&&f.isValid())&&f.isBetween(s,l)}}},function(e,t,r){"use strict";var n=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.a=function(e){return function(t,r){var i=n(r,1),a=i[0];return e(t,a,!0).isValid()}}},function(e,t,r){"use strict";var n=r(15),i=r(16),a=r(18),o=r(17),u=r(20);t.a={make:function(e){return{date_format:r.i(a.a)(e),after:r.i(n.a)(e),before:r.i(i.a)(e),date_between:r.i(o.a)(e)}},messages:u.a,installed:!1}},function(e,t,r){"use strict";var n=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.a={after:function(e,t){var r=n(t,1),i=r[0];return"The "+e+" must be after "+i+"."},before:function(e,t){var r=n(t,1),i=r[0];return"The "+e+" must be before "+i+"."},date_between:function(e,t){var r=n(t,2),i=r[0],a=r[1];return"The "+e+" must be between "+i+" and "+a+"."},date_format:function(e,t){var r=n(t,1),i=r[0];return"The "+e+" must be in the format "+i+"."}}},function(e,t,r){"use strict";t.a=function(e){return/^[a-zA-Z]*$/.test(e)}},function(e,t,r){"use strict";t.a=function(e){return/^[a-zA-Z0-9_-]*$/.test(e)}},function(e,t,r){"use strict";t.a=function(e){return/^[a-zA-Z0-9]*$/.test(e)}},function(e,t,r){"use strict";t.a=function(e){return/^[a-zA-Z\s]*$/.test(e)}},function(e,t,r){
"use strict";var n=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.a=function(e,t){var r=n(t,2),i=r[0],a=r[1];return Number(i)<=e&&Number(a)>=e}},function(e,t,r){"use strict";var n=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.a=function(e,t,r){var i=n(t,1),a=i[0],o=a?document.querySelector("input[name='"+a+"']"):document.querySelector("input[name='"+r+"_confirmation']");return!(!o||String(e)!==o.value)}},function(e,t,r){"use strict";var n=r(49),i=r.n(n);t.a=function(e){return i()(String(e))}},function(e,t,r){"use strict";var n=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["*"],r=n(t,1),i=r[0];if(Array.isArray(e))return!1;if(null===e||void 0===e||""===e)return!0;if(0===Number(i))return/^-?\d*$/.test(e);var a="*"===i?"+":"{1,"+i+"}",o=new RegExp("^-?\\d*(\\.\\d"+a+")?$");return!!o.test(e)&&!Number.isNaN(parseFloat(e))}},function(e,t,r){"use strict";var n=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.a=function(e,t){var r=n(t,1),i=r[0],a=String(e);return/^[0-9]*$/.test(a)&&a.length===Number(i)}},function(e,t,r){"use strict";var n=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(e,t,r){var n=window.URL||window.webkitURL;return new Promise(function(i){var a=new Image;a.onerror=function(){return i({valid:!1})},a.onload=function(){return i({valid:a.width===Number(t)&&a.height===Number(r)})},a.src=n.createObjectURL(e)})};t.a=function(e,t){for(var r=n(t,2),a=r[0],o=r[1],u=[],s=0;s<e.length;s++){if(!/\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(e[s].name))return!1;u.push(e[s])}return Promise.all(u.map(function(e){return i(e,a,o)}))}},function(e,t,r){"use strict";var n=r(50),i=r.n(n);t.a=function(e){return i()(String(e))}},function(e,t,r){"use strict";t.a=function(e,t){for(var r=new RegExp(".("+t.join("|")+")$","i"),n=0;n<e.length;n++)if(!r.test(e[n].name))return!1;return!0}},function(e,t,r){"use strict";t.a=function(e){for(var t=0;t<e.length;t++)if(!/\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(e[t].name))return!1;return!0}},function(e,t,r){"use strict";t.a=function(e,t){return!!t.filter(function(t){return t==e}).length}},function(e,t,r){"use strict";var n=r(21),i=r(22),a=r(23),o=r(24),u=r(25),s=r(26),l=r(27),f=r(28),c=r(29),d=r(30),v=r(31),h=r(32),y=r(33),m=r(34),p=r(36),g=r(37),b=r(38),_=r(39),x=r(40),w=r(41),k=r(42),A=r(43),F=r(44),$=r(45),S=r(46),j=r(47);t.a={alpha_dash:i.a,alpha_num:a.a,alpha_spaces:o.a,alpha:n.a,between:u.a,confirmed:s.a,credit_card:l.a,decimal:f.a,digits:c.a,dimensions:d.a,email:v.a,ext:h.a,image:y.a,in:m.a,ip:p.a,max:g.a,max_value:b.a,mimes:_.a,min:x.a,min_value:w.a,not_in:k.a,numeric:A.a,regex:F.a,required:$.a,size:S.a,url:j.a}},function(e,t,r){"use strict";var n=r(7),i=r.n(n),a=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[4],r=a(t,1),n=r[0];return i()(e,n)}},function(e,t,r){"use strict";var n=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.a=function(e,t){var r=n(t,1),i=r[0];return void 0===e||null===e?i>=0:String(e).length<=i}},function(e,t,r){"use strict";var n=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.a=function(e,t){var r=n(t,1),i=r[0];return!Array.isArray(e)&&null!==e&&void 0!==e&&""!==e&&Number(e)<=i}},function(e,t,r){"use strict";t.a=function(e,t){for(var r=new RegExp(t.join("|").replace("*",".+")+"$","i"),n=0;n<e.length;n++)if(!r.test(e[n].type))return!1;return!0}},function(e,t,r){"use strict";var n=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.a=function(e,t){var r=n(t,1),i=r[0];return void 0!==e&&null!==e&&String(e).length>=i}},function(e,t,r){"use strict";var n=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.a=function(e,t){var r=n(t,1),i=r[0];return!Array.isArray(e)&&null!==e&&void 0!==e&&""!==e&&Number(e)>=i}},function(e,t,r){"use strict";t.a=function(e,t){return!t.filter(function(t){return t==e}).length}},function(e,t,r){"use strict";var n=r(51),i=r.n(n);t.a=function(e){return i()(String(e))}},function(e,t,r){"use strict";function n(e){return Array.isArray(e)?e:Array.from(e)}t.a=function(e,t){var r=n(t),i=r[0],a=r.slice(1);return i instanceof RegExp?i.test(e):new RegExp(i,a).test(String(e))}},function(e,t,r){"use strict";t.a=function(e){return Array.isArray(e)?!!e.length:void 0!==e&&null!==e&&!!String(e).trim().length}},function(e,t,r){"use strict";var n=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.a=function(e,t){var r=n(t,1),i=r[0];if(isNaN(i))return!1;for(var a=1024*Number(i),o=0;o<e.length;o++)if(e[o].size>a)return!1;return!0}},function(e,t,r){"use strict";var n=r(52),i=r.n(n);t.a=function(e,t){return i()(e,{host_whitelist:t||!1})}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){(0,u.default)(e);var r=void 0,n=void 0;"object"===("undefined"==typeof t?"undefined":a(t))?(r=t.min||0,n=t.max):(r=arguments[1],n=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=r&&("undefined"==typeof n||i<=n)}Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=i;var o=r(0),u=n(o);e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){(0,o.default)(e);var t=e.replace(/[^0-9]+/g,"");if(!u.test(t))return!1;for(var r=0,n=void 0,i=void 0,a=void 0,s=t.length-1;s>=0;s--)n=t.substring(s,s+1),i=parseInt(n,10),a?(i*=2,r+=i>=10?i%10+1:i):r+=i,a=!a;return!(r%10!==0||!t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=r(0),o=n(a),u=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})|62[0-9]{14}$/;e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if((0,o.default)(e),t=(0,s.default)(t,v),t.allow_display_name){var r=e.match(h);r&&(e=r[1])}var n=e.split("@"),i=n.pop(),a=n.join("@"),u=i.toLowerCase();if("gmail.com"!==u&&"googlemail.com"!==u||(a=a.replace(/\./g,"").toLowerCase()),!(0,f.default)(a,{max:64})||!(0,f.default)(i,{max:256}))return!1;if(!(0,d.default)(i,{require_tld:t.require_tld}))return!1;if('"'===a[0])return a=a.slice(1,a.length-1),t.allow_utf8_local_part?g.test(a):m.test(a);for(var l=t.allow_utf8_local_part?p:y,c=a.split("."),b=0;b<c.length;b++)if(!l.test(c[b]))return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=r(0),o=n(a),u=r(2),s=n(u),l=r(48),f=n(l),c=r(6),d=n(c),v={allow_display_name:!1,allow_utf8_local_part:!0,require_tld:!0},h=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\s]*<(.+)>$/i,y=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,m=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,p=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,g=/^([\s\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]))*$/i;e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){return(0,o.default)(e),u.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=r(0),o=n(a),u=/^[-+]?[0-9]+$/;e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];if(e===n||i(n)&&n.test(e))return!0}return!1}function o(e,t){if((0,s.default)(e),!e||e.length>=2083||/\s/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;t=(0,h.default)(t,y);var r=void 0,n=void 0,i=void 0,o=void 0,u=void 0,l=void 0,c=void 0,v=void 0;if(c=e.split("#"),e=c.shift(),c=e.split("?"),e=c.shift(),c=e.split("://"),c.length>1){if(r=c.shift(),t.require_valid_protocol&&t.protocols.indexOf(r)===-1)return!1}else{if(t.require_protocol)return!1;t.allow_protocol_relative_urls&&"//"===e.substr(0,2)&&(c[0]=e.substr(2))}if(e=c.join("://"),c=e.split("/"),e=c.shift(),""===e&&!t.require_host)return!0;if(c=e.split("@"),c.length>1&&(n=c.shift(),n.indexOf(":")>=0&&n.split(":").length>2))return!1;o=c.join("@"),l=v=null;var p=o.match(m);return p?(i="",v=p[1],l=p[2]||null):(c=o.split(":"),i=c.shift(),c.length&&(l=c.join(":"))),!(null!==l&&(u=parseInt(l,10),!/^[0-9]+$/.test(l)||u<=0||u>65535)||!((0,d.default)(i)||(0,f.default)(i,t)||v&&(0,d.default)(v,6)||"localhost"===i)||(i=i||v,t.host_whitelist&&!a(i,t.host_whitelist)||t.host_blacklist&&a(i,t.host_blacklist)))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var u=r(0),s=n(u),l=r(6),f=n(l),c=r(7),d=n(c),v=r(2),h=n(v),y={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1},m=/^\[([^\]]+)\](?::([0-9]+))?$/;e.exports=t.default},function(e,t,r){"use strict";var n=r(5),i=r(4),a=r(9),o=r(8),u=r(3);r.d(t,"install",function(){return s});var s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=t.locale,s=void 0===u?"en":u,l=t.delay,f=void 0===l?0:l,c=t.errorBagName,d=void 0===c?"errors":c,v=t.dictionary,h=void 0===v?null:v,y=t.strict,m=void 0===y||y,p=t.fieldsBagName,g=void 0===p?"fields":p;h&&n.a.updateDictionary(h),n.a.setLocale(s),n.a.setStrictMode(m);var b={locale:s,delay:f,dictionary:h,errorBagName:d,fieldsBagName:g};Object.defineProperties(e.prototype,{$validator:{get:function(){return r.i(i.b)(this)}}}),e.mixin(r.i(a.a)(b)),e.directive("validate",r.i(o.a)(b))};r.d(t,"Validator",function(){return n.a}),r.d(t,"ErrorBag",function(){return u.a})}])});
{
"name": "vee-validate",
"version": "1.0.0-beta.9",
"version": "1.0.0-beta.10",
"description": "Simple Vue.js input validation plugin",

@@ -21,4 +21,5 @@ "main": "dist/vee-validate.js",

"test": "jest",
"lint": "eslint ./src ./test",
"build": "rollup -c rollup.config.dev.js && rollup -c rollup.config.prod.js && rollup -c rollup.config.es6.js",
"lint": "eslint ./src",
"build": "webpack && cross-env NODE_ENV=production webpack -p",
"dev": "webpack --colors --progress --watch",
"cover": "jest --coverage"

@@ -39,4 +40,5 @@ },

"babel-jest": "^16.0.0",
"babel-loader": "^6.2.7",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-external-helpers": "^6.8.0",
"babel-plugin-external-helpers": "^6.18.0",
"babel-plugin-transform-async-to-generator": "^6.16.0",

@@ -49,10 +51,9 @@ "babel-plugin-transform-object-assign": "^6.8.0",

"eslint-config-airbnb-base": "^5.0.0",
"eslint-loader": "^1.6.1",
"eslint-plugin-import": "^1.12.0",
"jest": "^16.0.2",
"jest": "^17.0.3",
"moment": "^2.14.1",
"rollup": "^0.36.3",
"rollup-plugin-babel": "^2.6.1",
"rollup-plugin-node-resolve": "^2.0.0",
"rollup-plugin-uglify": "^1.0.1"
"validator": "^6.1.0",
"webpack": "2.1.0-beta.25"
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc