HEX
Server: LiteSpeed
System: Linux s3604.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: dmstechonline (1480)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/dmstechonline/whatsapp.dmstech.online/public/build/assets/Tfa-e69f4466.js
import{r as v,T as w,G as b,c as n,a as t,j as m,g as p,u as o,t as r,h as f,k as C,n as h,K as u,o as i,i as y}from"./app-884e4ce3.js";import{_ as k}from"./FormInput-ab713954.js";import{l as V}from"./index-ff0eb693.js";import{u as $}from"./useRtl-295d8c04.js";const j={class:"flex h-screen justify-center"},A={class:"flex justify-center"},B={class:"w-[20em] mt-40"},L={class:"flex justify-center mb-5"},N=["src","alt"],S={key:1,class:"text-2xl mb-2"},T={class:"text-2xl text-center"},M={class:"text-center text-sm text-slate-500"},Z={class:"mt-5 space-y-4"},F={class:"mt-6"},R={key:0,type:"submit",class:"rounded-md bg-primary px-3 py-3 text-sm text-white shadow-sm w-full"},z={key:1,type:"button",class:"rounded-md bg-primary px-3 py-3 text-sm text-white shadow-sm w-full flex justify-center"},q={__name:"Tfa",props:["flash","config","companyConfig"],setup(_){const{rtlClass:x,isRtl:D}=$(),l=_,c=v(!1),a=w({token:null}),g=async e=>{c.value=!0,a.post("/tfa",{onSuccess:()=>a.reset(),onFinish:()=>{c.value=!1}})};return b(()=>[u().props.flash,{deep:!0}],()=>{u().props.flash.status!=null&&V(u().props.flash.status.message,{autoClose:3e3})}),(e,s)=>(i(),n("div",{class:h(o(x))},[t("div",j,[t("div",A,[t("div",B,[t("div",L,[m(o(y),{href:"/"},{default:p(()=>[l.companyConfig.logo?(i(),n("img",{key:0,class:"max-w-[180px]",src:"/media/"+l.companyConfig.logo,alt:l.companyConfig.company_name},null,8,N)):(i(),n("h4",S,r(l.companyConfig.company_name),1))]),_:1})]),t("h1",T,r(e.$t("Login to your account")),1),t("div",M,[f(r(e.$t("Switch account?"))+" ",1),m(o(y),{href:"/logout",class:"text-sm text-primary-600 dark:text-primary-500 border-b hover:border-gray-500"},{default:p(()=>[f(r(e.$t("Logout")),1)]),_:1})]),t("form",{onSubmit:s[1]||(s[1]=C(d=>g(),["prevent"])),class:"mt-5"},[t("div",Z,[m(k,{modelValue:o(a).token,"onUpdate:modelValue":s[0]||(s[0]=d=>o(a).token=d),name:e.$t("Verification Code"),error:o(a).errors.token,type:"text",class:h("col-span-3")},null,8,["modelValue","name","error"])]),t("div",F,[c.value?(i(),n("button",z,s[2]||(s[2]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},[t("path",{fill:"currentColor",d:"M12 2A10 10 0 1 0 22 12A10 10 0 0 0 12 2Zm0 18a8 8 0 1 1 8-8A8 8 0 0 1 12 20Z",opacity:".5"}),t("path",{fill:"currentColor",d:"M20 12h2A10 10 0 0 0 12 2V4A8 8 0 0 1 20 12Z"},[t("animateTransform",{attributeName:"transform",dur:"1s",from:"0 12 12",repeatCount:"indefinite",to:"360 12 12",type:"rotate"})])],-1)]))):(i(),n("button",R,r(e.$t("Login to your account")),1))])],32)])])])],2))}};export{q as default};