PageSourceSearch

https://arabsstock.com/_nuxt/forget-password.e4f4299a.js

js arabsstock.com collected 2026-09-29 16:40:28 UTC 12,109 bytes, 1 lines download raw bytes

1import{u as j,x as B,a as V,c as n,d as e,t as d,f as b,b as g,w as y,e as o,D as c,m as I,Q as N,k as O,n as w,_ as L,o as i,l as x,L as k}from"./entry.8b4f3689.js";import{_ as J}from"./input.vue.f7d2451f.js";import P from"./Spinner.b23713df.js";import{v as R}from"./CheckValidations.3ef47736.js";import{c as q}from"./countries-codes.5c0af0cb.js";import{u as z}from"./useSendOtp.b7f21a0e.js";import"./arrow-down.4d9ae66e.js";import"./eye.bd3fed10.js";import"./hidden-eye.2f8179b1.js";import"./showMessage.70e5bfeb.js";const F={class:"bg-white rounded-2xl py-8 sm:py-10 w-full shadow-sm"},A={class:"text-start mb-8"},E={class:"text-2xl font-bold text-gray-900 mb-3"},H={class:"text-gray-500 text-sm leading-relaxed"},D={class:"text-sm text-gray-500 mb-6"},G={class:"mb-3"},T={class:"block text-sm font-medium text-gray-700 mb-3"},U={class:"flex gap-3"},Q=["checked"],W={class:"flex-1"},K={class:"text-sm font-semibold text-gray-900"},X={key:0,xmlns:"http://www.w3.org/2000/svg",class:"w-3 h-3 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"3"},Y={key:1,xmlns:"http://www.w3.org/2000/svg",class:"w-3 h-3 text-white opacity-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"3"},Z=["checked"],ee={class:"flex-1"},te={class:"text-sm font-semibold text-gray-900"},oe={key:0,xmlns:"http://www.w3.org/2000/svg",class:"w-3 h-3 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"3"},se={key:1,xmlns:"http://www.w3.org/2000/svg",class:"w-3 h-3 text-white opacity-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"3"},re=["checked"],le={class:"flex-1"},ie={class:"text-sm font-semibold text-gray-900"},ae={key:0,xmlns:"http://www.w3.org/2000/svg",class:"w-3 h-3 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"3"},ne={key:1,xmlns:"http://www.w3.org/2000/svg",class:"w-3 h-3 text-white opacity-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"3"},de={key:0,class:"mt-2 bg-amber-50 border border-amber-100 rounded-xl p-3 flex items-start gap-3"},me={class:"text-xs text-amber-700 leading-relaxed"},ue={class:"mt-3"},pe={key:0,class:"mb-2"},ce={key:1,class:"mb-2"},he={key:0,class:"text-center font-['IBM_Plex_Sans_Arabic'] text-[14px] font-bold leading-normal text-slate-900"},ge={class:"text-center mt-5 text-sm text-gray-500"},je={__name:"forget-password",setup(be){const{data:we,error:u,loading:_,SendOtp:C}=z(),p=w([]),r=w("email"),l=w({email:"",mobile:""}),{t:a}=j(),S=()=>{if(M())p.value=[];else return;localStorage.setItem("password_reset_flow",JSON.stringify(!0));let s;r.value=="email"?(localStorage.setItem("user_email",JSON.stringify(l.value.email)),localStorage.setItem("verification_method",JSON.stringify("email")),s={method:"email",email:l.value.email}):r.value=="whatsapp"?(localStorage.setItem("user_mobile",JSON.stringify(l.value.mobile)),localStorage.setItem("verification_method",JSON.stringify("whatsapp")),s={method:"whatsapp",mobile:l.value.mobile}):(localStorage.setItem("user_mobile",JSON.stringify(l.value.mobile)),localStorage.setItem("verification_method",JSON.stringify("sms")),s={method:"sms",mobile:l.value.mobile}),C(s)},M=()=>{if(r.value=="email")if(l.value.email.length){if(!R("email",l.value.email))return h("email","Email Format Not Valid"),!1}else return h("email","Email Field Is Required"),!1;else if(r.value=="whatsapp"){if(!l.value.mobile.length)return h("mobile","Mobile Field Is Required"),!1}else if(l.value.mobile.length){if(!l.value.mobile.startsWith("+966"))return h("mobile","sms service is currently only available for Saudi Arabia numbers"),!1}else return h("mobile","Mobile Field Is Required"),!1;return!0},h=(s,t)=>{p.value=[a(t)],u.value={errors:{[s]:[a(t)]}}};return B(u,s=>{u.value&&u.value.errors?p.value=Object.keys(u.value.errors):u.value&&k(s).message?p.value=[k(s).message]:p.value=[]}),V({title:`${a("reset_title")} | ${a("brand")}`,meta:[{name:"description",content:a("reset_desc")},{property:"og:url",content:"https://arabsstock.com"},{property:"og:type",content:"website"},{property:"og:title",content:`${a("reset_title")} | ${a("brand")}`},{property:"og:description",content:a("reset_desc")},{property:"og:image",content:"https://arabsstock.com/assets/images/backgrounds/photos.webp"},{name:"twitter:card",content:"summary_large_image"},{property:"twitter:domain",content:"arabsstock.com"},{property:"twitter:url",content:"https://arabsstock.com"},{name:"twitter:title",content:`${a("reset_title")} | ${a("brand")}`},{name:"twitter:description",content:a("reset_desc")},{name:"twitter:image",content:"https://arabsstock.com/assets/images/backgrounds/photos.webp"},{name:"robots",content:"noindex, nofollow"}]}),(s,t)=>{const v=L,f=J,$=P;return i(),n("div",null,[e("div",F,[e("div",A,[e("h1",E,d(s.$t("Reset your password")),1),e("p",H,d(s.$t("Reset your password text")),1)]),e("p",D,[b(d(s.$t("Don’t have an account yet?"))+" ",1),g(v,{to:("localPath"in s?s.localPath:o(x))("/auth/sign-up"),class:"text-primary font-medium hover:underline"},{default:y(()=>[b(d(s.$t("Sign up")),1)]),_:1},8,["to"])]),e("div",G,[e("label",T,d(s.$t("reset method")),1),e("div",U,[e("label",{onClick:t[0]||(t[0]=m=>r.value="email"),class:c(["method-option flex-1 flex items-center gap-3 p-3 border-2 rounded-xl cursor-pointer transition-all hover:border-primary hover:bg-primary/5 select-none",o(r)=="email"?"border-primary bg-primary/5":"border-gray-200"])},[e("input",{type:"radio",name:"method",value:"email",class:"hidden",checked:o(r)==="email"},null,8,Q),t[9]||(t[9]=e("div",{class:"w-10 h-10 bg-amber-100 rounded-lg flex items-center justify-center flex-shrink-0"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-5 h-5 text-amber-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})])],-1)),e("div",W,[e("div",K,d(s.$t("mail")),1)]),e("div",{class:c(["check-circle w-5 h-5 border-2 border-gray-300 rounded-full flex items-center justify-center flex-shrink-0",o(r)=="email"?"border-primary bg-primary":"border-gray-300 bg-transparent"])},[o(r)=="email"?(i(),n("svg",X,[...t[7]||(t[7]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 13l4 4L19 7"},null,-1)])])):(i(),n("svg",Y,[...t[8]||(t[8]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 13l4 4L19 7"},null,-1)])]))],2)],2),e("label",{onClick:t[1]||(t[1]=m=>r.value="whatsapp"),class:c(["method-option flex-1 flex items-center gap-3 p-3 border-2 rounded-xl cursor-pointer transition-all hover:border-primary hover:bg-primary/5 select-none",o(r)=="whatsapp"?"border-primary bg-primary/5":"border-gray-200"])},[e("input",{type:"radio",name:"method",value:"whatsapp",class:"hidden",checked:o(r)==="whatsapp"},null,8,Z),t[12]||(t[12]=e("div",{class:"w-10 h-10 bg-[rgb(220,252,231)] rounded-lg flex items-center justify-center flex-shrink-0"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-5 h-5 text-[rgb(34,197,94)]",viewBox:"0 0 24 24",fill:"
1currentColor"},[e("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})])],-1)),e("div",ee,[e("div",te,d(s.$t("whatsapp")),1)]),e("div",{class:c(["check-circle w-5 h-5 border-2 border-gray-300 rounded-full flex items-center justify-center flex-shrink-0",o(r)=="whatsapp"?"border-primary bg-primary":"border-gray-300 bg-transparent"])},[o(r)=="whatsapp"?(i(),n("svg",oe,[...t[10]||(t[10]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 13l4 4L19 7"},null,-1)])])):(i(),n("svg",se,[...t[11]||(t[11]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 13l4 4L19 7"},null,-1)])]))],2)],2)]),e("label",{class:c(["mt-3 flex items-center gap-3 p-3 border-2 rounded-xl cursor-pointer transition-all hover:border-primary hover:bg-primary/5 select-none",o(r)=="sms"?"border-primary bg-primary/5":"border-gray-200"]),onClick:t[2]||(t[2]=m=>r.value="sms")},[e("input",{type:"radio",name:"method",value:"sms",class:"hidden",checked:o(r)==="sms"},null,8,re),t[15]||(t[15]=e("div",{class:"w-10 h-10 bg-blue-50 rounded-lg flex items-center justify-center flex-shrink-0"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-5 h-5 text-blue-300",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})])],-1)),e("div",le,[e("div",ie,d(s.$t("sms")),1)]),e("div",{class:c(["check-circle w-5 h-5 border-2 border-gray-300 rounded-full flex items-center justify-center flex-shrink-0",o(r)=="sms"?"border-primary bg-primary":"border-gray-300 bg-transparent"])},[o(r)=="sms"?(i(),n("svg",ae,[...t[13]||(t[13]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 13l4 4L19 7"},null,-1)])])):(i(),n("svg",ne,[...t[14]||(t[14]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 13l4 4L19 7"},null,-1)])]))],2)],2)]),o(r)=="sms"?(i(),n("div",de,[t[16]||(t[16]=e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-5 h-5 text-amber-700 flex-shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),e("p",me,d(s.$t("sms service is currently only available for Saudi Arabia numbers")),1)])):I("",!0),e("div",ue,[e("form",null,[o(r)=="email"?(i(),n("div",pe,[g(f,{modelValue:o(l).email,"onUpdate:modelValue":t[3]||(t[3]=m=>o(l).email=m),inputType:"email",onHandleChange:t[4]||(t[4]=m=>o(l).email=m),required:!0,label:"Email address",validation:o(p).includes("email")?o(u).errors.email:!1},null,8,["modelValue","validation"])])):(i(),n("div",ce,[g(f,{modelValue:o(l).mobile,"onUpdate:modelValue":t[5]||(t[5]=m=>o(l).mobile=m),inputType:"number",countriesCodes:o(q),onHandleChange:t[6]||(t[6]=m=>o(l).mobile=m),onGetCode:s.getSelectedCode,required:!0,label:"Phone number",validation:o(p).includes("mobile")?o(u).errors.mobile:!1},null,8,["modelValue","countriesCodes","onGetCode","validation"])])),e("button",{onClick:N(S,["prevent"]),class:"mt-4 inline-flex h-12 w-full items-center justify-center gap-2 rounded-xl bg-primary-1-300 px-8 py-4"},[o(_)?(i(),O($,{key:1,width:"20",height:"20"})):(i(),n("div",he,d(s.$t("reset")),1))])])]),e("p",ge,[g(v,{to:("localPath"in s?s.localPath:o(x))("/auth/login"),
1class:"text-primary font-medium hover:underline flex items-center justify-center gap-2"},{default:y(()=>[t[17]||(t[17]=e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4 rtl:rotate-180",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})],-1)),b(" "+d(s.$t("back to login")),1)]),_:1},8,["to"])])])])}}};export{je 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.