PageSourceSearch

https://qanoniah.com/_nuxt/TeNPvRZ3.js

js qanoniah.com collected 2026-09-24 10:13:42 UTC 6,704 bytes, 1 lines download raw bytes

1import{h as p,I as f,B as u,u as F,m as C,o as n,c as i,e as a,f as r,t as l,p as m,q as y,y as h,d,s as w,b as v}from"./-UnjXb32.js";import{S as c}from"./noMcalRx.js";import{R as g}from"./gB2XdpL2.js";import"./BRsAEVpo.js";import"./Dsxdafaz.js";import"./G_5LBGYT.js";const k={class:"flex flex-col space-y-6 items-center pb-16 justify-center"},$={class:"flex flex-col gap-4 bg-gray-50 rounded-2xl p-8 md:p-10 w-[382px] min-h-[270px]",style:{"box-shadow":"0px 0px 50px 0px #0D14221A"}},V={class:"flex flex-col gap-6 w-full"},S={key:0,class:"flex flex-col gap-4"},z={class:"flex flex-col items-center justify-center space-y-5 text-md"},x={key:1,class:"flex flex-col items-center justify-center space-y-5"},B={class:"text-sm"},I={class:"text-ai-primary text-xs font-medium z-10 bg-gray-50 px-2 absolute -translate-y-[30%] rtl:-translate-x-4 ltr:translate-x-4"},j={class:"text-sm bg-gray-100 rounded-md w-fit py-2 px-3.5 justify-center items-center space-x-2"},N={dir:"ltr"},P={class:"text-ai-primary text-xs font-medium z-10 bg-gray-50 px-2 absolute -translate-y-[30%] rtl:-translate-x-4 ltr:translate-x-4"},R={class:"text-ai-primary text-xs font-medium z-10 bg-gray-50 px-2 absolute -translate-y-[30%] rtl:-translate-x-4 ltr:translate-x-4"},A={components:{Sms2FA:c,Button:u,InputField:f,Icon:p,RecaptchaInput:g},data(){return{to:null,waitTime:0,method:null,methods:null,success:!1,passwordSuccess:!1,phone:null,step:1,hidden:{password:!0,password_confirmation:!0},sendCodeForm:new this.$vForm({email:"",recaptcha_token:""}),verifyCodeForm:new this.$vForm({code:"","2fa":void 0}),resetCodeForm:new this.$vForm({password:"",password_confirmation:"","2fa":void 0})}},async mounted(){await this.$axios.$get("/v1/sanctum/csrf-cookie")},methods:{send(){},async sendRecoveryEmail(){if(!this.sendCodeForm.busy)try{await this.sendCodeForm.post("/v1/password/reset/send").then(o=>{this.verifyCodeForm["2fa"]=o.data["2fa"],this.resetCodeForm["2fa"]=o.data["2fa"],this.waitTime=o.data.wait,this.to=o.data.to,this.method=o.data.method??null,this.methods=o.data.verification_methods??null,this.step=2})}catch(o){if(this.sendCodeForm.recaptcha_token="",o.response?.status!==422)throw o}},async resetPassword(){if(!this.resetCodeForm.busy)try{await this.resetCodeForm.post("/v1/password/reset"),this.passwordSuccess=!0,this.$toast.success(this.$t("تم إستعادة كلمة المرور بنجاح")),await this.$router.push(this.localePath("/Login"))}catch(o){if(o.response?.status!==422)throw o}},handelSuccess(o){this.step=3,this.phone=o.phone}}},H=Object.assign(A,{__name:"ForgotPassword",setup(o){const b=F();return C(()=>({title:b.$i18n.t("إستعادة كلمة المرور")})),(e,s)=>(n(),i("div",k,[a("div",$,[a("div",V,[e.step===1?(n(),i("div",S,[a("div",z,[r(p,{name:"Logo-01",class:"w-10 h-10"}),a("span",null,l(e.$t("نسيت كلمة المرور")),1)])])):m("",!0),e.step===3?(n(),i("div",x,[r(p,{name:"Logo-01",class:"w-10 h-10"}),a("h1",B,l(e.$t("انشاء كلمة مرور جديدة")),1)])):m("",!0),e.step===1?(n(),i("form",{key:2,class:"flex flex-col gap-3.5 w-full",onSubmit:s[2]||(s[2]=y((...t)=>e.sendRecoveryEmail&&e.sendRecoveryEmail(...t),["prevent"]))},[r(f,{modelValue:e.sendCodeForm.email,"onUpdate:modelValue":s[0]||(s[0]=t=>e.sendCodeForm.email=t),placeholder:e.$t("البريد الإلكتروني"),rounded:"lg",type:"email",size:"sm",ring:"1",border:"tertiary-25",label:"",error:e.sendCodeForm.errors.get("email")},h({_:2},[e.sendCodeForm.email?{name:"label",fn:d(()=>[a("span",I,l(e.$t("البريد الإلكتروني")),1)]),key:"0"}:void 0]),1032,["modelValue","placeholder","error"]),r(g,{modelValue:e.sendCodeForm.recaptcha_token,"onUpdate:modelValue":s[1]||(s[1]=t=>e.sendCodeForm.recaptcha_token=t),error:e.sendCodeForm.errors.get("recaptcha_token")},null,8,["modelValue","error"]),r(u,{theme:"brand-02",rounded:"lg",class:"w-full pt-3 pb-3",submit:"",loading:e.sendCodeForm.busy,disabled:e.sendCodeForm.email.length<3},{default:d(()=>[...s[8]||(s[8]=[w(" استعادة كلمة المرور ",-1)])]),_:1}
1,8,["loading","disabled"])],32)):m("",!0),e.step===3?(n(),i("form",{key:3,class:"flex flex-col gap-3 w-full items-center",onSubmit:s[7]||(s[7]=y((...t)=>e.resetPassword&&e.resetPassword(...t),["prevent"]))},[a("div",j,[a("h1",N,l(e.phone),1)]),r(f,{modelValue:e.resetCodeForm.password,"onUpdate:modelValue":s[4]||(s[4]=t=>e.resetCodeForm.password=t),class:"w-full",placeholder:e.resetCodeForm.password?"********":e.$t("كلمة المرور"),rounded:"lg",ring:"1",border:"tertiary-25",type:e.hidden.password?"password":"text",size:"sm",label:"",error:e.resetCodeForm.errors.get("password")},h({"trailing-outside":d(()=>[r(u,{"only-icon":"","tab-index":"-1",theme:"tertiary",rounded:"lg",onClick:s[3]||(s[3]=t=>e.hidden.password=!e.hidden.password)},{preIcon:d(()=>[r(p,{name:e.hidden.password?"eye":"eye-off",class:"text-gray-400",size:"md"},null,8,["name"])]),_:1})]),_:2},[e.resetCodeForm.password?{name:"label",fn:d(()=>[a("span",P,l(e.$t("كلمة المرور")),1)]),key:"0"}:void 0]),1032,["modelValue","placeholder","type","error"]),r(f,{modelValue:e.resetCodeForm.password_confirmation,"onUpdate:modelValue":s[6]||(s[6]=t=>e.resetCodeForm.password_confirmation=t),class:"w-full",placeholder:e.resetCodeForm.password_confirmation?"********":e.$t("تأكيد كلمة المرور"),rounded:"lg",ring:"1",border:"tertiary-25",type:e.hidden.password_confirmation?"password":"text",size:"md",label:"",error:e.resetCodeForm.errors.get("password_confirmation")},h({"trailing-outside":d(()=>[r(u,{"only-icon":"","tab-index":"-1",theme:"tertiary",rounded:"lg",onClick:s[5]||(s[5]=t=>e.hidden.password_confirmation=!e.hidden.password_confirmation)},{preIcon:d(()=>[r(p,{name:e.hidden.password_confirmation?"eye":"eye-off",class:"text-gray-400",size:"md"},null,8,["name"])]),_:1})]),_:2},[e.resetCodeForm.password_confirmation?{name:"label",fn:d(()=>[a("span",R,l(e.$t("تأكيد كلمة المرور")),1)]),key:"0"}:void 0]),1032,["modelValue","placeholder","type","error"]),r(u,{theme:"brand-02",rounded:"lg",class:"w-full pt-3 pb-3 mt-3",submit:"",loading:e.resetCodeForm.busy,disabled:e.sendCodeForm.email.length<3},{default:d(()=>[...s[9]||(s[9]=[w(" استعادة كلمة المرور ",-1)])]),_:1},8,["loading","disabled"])],32)):m("",!0),e.step===2?(n(),v(c,{key:4,"verify-url":"/v1/password/reset/verify","resend-url":"/v1/password/reset/resend","resend-method":"post",phone:e.to,email:e.sendCodeForm.email,steps:!1,tfa:e.resetCodeForm["2fa"],"wait-time":e.waitTime,method:e.method,methods:e.methods,onSuccess:e.handelSuccess},null,8,["phone","email","tfa","wait-time","method","methods","onSuccess"])):m("",!0)])])]))}});export{H as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.