import r from"./TextDivider.54add59f.js";import i from"./FormInput.7debc7c5.js";import o from"./Button.f17dffc9.js";import a from"./Container.f87d9f62.js";import{n}from"./plugin-vue2_normalizer.000ba15c.js";import"./FormGroup.efd02a6a.js";import"./Label.9d0d3ee0.js";import"./ErrorText.b141a597.js";import"./HelperText.14a7ed0b.js";import"./IconClipboard.8551be1b.js";import"./IconKey.455a255f.js";const m={metaInfo:{title:"Login"},components:{TextDivider:r,FormInput:i,Button:o,Container:a},props:{errors:Object},data(){return{sending:!1,form:{code:null}}},methods:{submit(){this.$inertia.post(this.route("auth.confirm-2fa.confirm"),this.form,{onStart:()=>this.sending=!0,onFinish:()=>this.sending=!1})}}};var p=function(){var t=this,e=t._self._c;return e("div",{staticClass:"flex items-center justify-center w-full min-h-screen"},[e("Container",{attrs:{size:"small"}},[e("form",{staticClass:"space-y-4",on:{submit:function(s){return s.preventDefault(),t.submit.apply(null,arguments)}}},[e("div",{staticClass:"flex flex-col items-center space-y-5"},[t.$page.props.settings.logo?e("img",{staticClass:"h-14",attrs:{src:t.$page.props.settings.logo}}):t._e(),e("h1",{staticClass:"font-semibold text-center text-title"},[t._v(" Confirm access to "+t._s(t.$page.props.settings.name)+" ")])]),e("FormInput",{attrs:{label:t.__("Code"),autofocus:!0,errors:t.$page.props.errors.code,id:"code",required:""},model:{value:t.form.code,callback:function(s){t.$set(t.form,"code",s)},expression:"form.code"}}),e("Button",{attrs:{variant:"primary",disabled:t.sending,block:""}},[t._v(t._s(t.__("Confirm")))]),t.$page.props.settings.has_terms?e("TextDivider",{attrs:{"without-text":!0}}):t._e(),t.$page.props.settings.has_terms||t.$page.props.settings.has_privacy?e("div",{staticClass:"flex justify-between"},[t.$page.props.settings.has_terms?e("div",[e("inertia-link",{staticClass:"text-small text-medium-emphasis hover:text-high-emphasis border-b border-dotted",attrs:{href:t.route("page.show","terms-of-service")}},[t._v(" Terms Of Service ")])],1):t._e(),t.$page.props.settings.has_privacy?e("div",[e("inertia-link",{staticClass:"text-small text-medium-emphasis hover:text-high-emphasis border-b border-dotted",attrs:{href:t.route("page.show","privacy-policy")}},[t._v(" Privacy Policy ")])],1):t._e()]):t._e()],1)])],1)},l=[],c=n(m,p,l,!1,null,null,null,null);const w=c.exports;export{w as default};
