(self.webpackChunk=self.webpackChunk||[]).push([[419],{3419:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>i});function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const a={metaInfo:function(){return{title:this.trans("Login")}},data:function(){return{form:this.$inertia.form({email:void 0,password:void 0,remember:!0})}},methods:{submit:function(){var t=this;this.form.transform((function(t){return n(n({},t),{},{remember:"on"})})).post(this.route("login"),{onFinish:function(){return t.form.reset("password")},onError:function(t){return console.log(t)},onSuccess:function(t){return console.log(t)}})}}};const i=(0,r(51900).Z)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"h-full flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100"},[r("div",{staticClass:"w-full sm:max-w-md px-6 py-4 bg-white shadow-md rounded"},[r("a-form",{staticClass:"py-8",attrs:{layout:"horizontal","label-col":{span:5},"wrapper-col":{span:19}},nativeOn:{keypress:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submit(e)}}},[r("a-form-item",{attrs:{label:t.trans("Email"),validateStatus:t.formStatus("email"),help:t.formHelp("email")}},[r("a-input",{attrs:{placeholder:t.trans("Email"),"auto-focus":""},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}})],1),t._v(" "),r("a-form-item",{attrs:{label:t.trans("Password"),validateStatus:t.formStatus("password"),help:t.formHelp("password")}},[r("a-input-password",{attrs:{placeholder:t.trans("Password")},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),t._v(" "),r("div",{staticClass:"text-right"},[r("a-button",{attrs:{type:"primary",loading:t.form.processing},on:{click:t.submit}},[t._v(t._s(t.trans("Login")))])],1)],1)],1)])}),[],!1,null,null,null).exports}}]);