(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e9983"],{"8dcd":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("page-title-bar"),a("v-container",{attrs:{fluid:"","grid-list-xl":"","py-0":""}},[a("app-card",{attrs:{heading:e.$t("message.basicValidation"),customClasses:"mb-30"}},[a("v-form",{model:{value:e.form1.valid,callback:function(t){e.$set(e.form1,"valid",t)},expression:"form1.valid"}},[a("v-text-field",{attrs:{label:"Name",rules:e.form1.nameRules,counter:10,required:""},model:{value:e.form1.name,callback:function(t){e.$set(e.form1,"name",t)},expression:"form1.name"}}),a("v-text-field",{attrs:{label:"E-mail",rules:e.form1.emailRules,required:""},model:{value:e.form1.email,callback:function(t){e.$set(e.form1,"email",t)},expression:"form1.email"}})],1)],1),a("app-card",{attrs:{heading:e.$t("message.validationWithSubmitAndclear"),customClasses:"mb-30"}},[a("v-form",{ref:"form",attrs:{"lazy-validation":""},model:{value:e.form2.valid,callback:function(t){e.$set(e.form2,"valid",t)},expression:"form2.valid"}},[a("v-text-field",{attrs:{label:"Name",rules:e.form2.nameRules,counter:10,required:""},model:{value:e.form2.name,callback:function(t){e.$set(e.form2,"name",t)},expression:"form2.name"}}),a("v-text-field",{attrs:{label:"E-mail",rules:e.form2.emailRules,required:""},model:{value:e.form2.email,callback:function(t){e.$set(e.form2,"email",t)},expression:"form2.email"}}),a("v-select",{attrs:{label:"Item",items:e.form2.items,rules:[function(e){return!!e||"Item is required"}],required:""},model:{value:e.form2.select,callback:function(t){e.$set(e.form2,"select",t)},expression:"form2.select"}}),a("v-checkbox",{attrs:{label:"Do you agree?",rules:[function(e){return!!e||"You must agree to continue!"}],required:""},model:{value:e.form2.checkbox,callback:function(t){e.$set(e.form2,"checkbox",t)},expression:"form2.checkbox"}}),a("v-btn",{staticClass:"mr-3",attrs:{disabled:!e.form2.valid,color:"success"},on:{click:e.submit}},[e._v(" "+e._s(e.$t("message.submit"))+" ")]),a("v-btn",{attrs:{color:"primary"},on:{click:e.clear}},[e._v(e._s(e.$t("message.clear")))])],1)],1)],1)],1)},l=[],s={data:function(){return{form1:{valid:!1,name:"",nameRules:[function(e){return!!e||"Name is required"},function(e){return e.length<=10||"Name must be less than 10 characters"}],email:"",emailRules:[function(e){return!!e||"E-mail is required"},function(e){return/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(e)||"E-mail must be valid"}]},form2:{valid:!0,name:"",nameRules:[function(e){return!!e||"Name is required"},function(e){return e&&e.length<=10||"Name must be less than 10 characters"}],email:"",emailRules:[function(e){return!!e||"E-mail is required"},function(e){return/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(e)||"E-mail must be valid"}],select:null,items:["Item 1","Item 2","Item 3","Item 4"],checkbox:!1}}},methods:{submit:function(){this.$refs.form.validate()&&console.log("form submit")},clear:function(){this.$refs.form.reset()}}},i=s,m=a("2877"),n=a("6544"),o=a.n(n),u=a("8336"),c=a("ac7c"),f=a("a523"),d=a("4bd4"),b=a("b974"),v=a("8654"),h=Object(m["a"])(i,r,l,!1,null,null,null);t["default"]=h.exports;o()(h,{VBtn:u["a"],VCheckbox:c["a"],VContainer:f["a"],VForm:d["a"],VSelect:b["a"],VTextField:v["a"]})}}]);