1"use strict";(self.webpackChunkarabiawheel=self.webpackChunkarabiawheel||[]).push([[2450],{62450:(e,t,x)=>{x.r(t),x.d(t,{default:()=>p});var s=x(65043),l=x(86213),a=x(91036),r=x(73216),n=x(35475),i=x(74117),o=x(49367),d=x(45394),c=x(83003),m=x(70579);const p=()=>{const{t:e,i18n:t}=(0,i.Bd)(),[x,p]=(0,s.useState)(!1),[h,u]=(0,s.useState)(""),w=(0,r.Zp)(),[b,f]=(0,s.useState)("50px"),g=(0,c.d4)((e=>e.auth.navheight));return(0,s.useEffect)((()=>{const e=()=>{window.innerWidth>767?f(g):f("50px")};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[g]),(0,m.jsxs)("div",{dir:window.directionTo,style:{paddingTop:b},className:"flex items-center justify-center xxxsm:h-[93vh] sm:h-[98vh] dark:bg-vehicle-bg bg-gray-100",children:[(0,m.jsxs)(o.mg,{children:[(0,m.jsx)("title",{children:e("passwordRecoveryTitle")}),(0,m.jsx)("meta",{name:"description",content:e("passwordRecoveryDescription")}),(0,m.jsx)("meta",{name:"keywords",content:e("passwordRecoveryKeywords")}),(0,m.jsx)("meta",{name:"robots",content:"index, follow"}),(0,m.jsx)("meta",{name:"author",content:"Arabiawheell Team"}),(0,m.jsx)("meta",{name:"publisher",content:"Arabiawheel"}),(0,m.jsx)("link",{rel:"canonical",href:"http://localhost:3000/"}),(0,m.jsx)("meta",{name:"lang",content:t.language})]}),(0,m.jsx)("div",{className:"bg-[#213975] w-full md:hidden fixed top-0 z-50 sm:px-1 ",children:(0,m.jsxs)("div",{className:"flex justify-between items-center xxxsm:px-3 xxxsm:py-3 ",children:[(0,m.jsxs)("div",{className:" flex items-center gap-2 ",children:[(0,m.jsx)(d.pRN,{onClick:()=>{w(-1)},size:25,className:"text-white ".concat(window.isArabic?"rotate-180":"none"," ")}),(0,m.jsx)("div",{className:"text-white xxxsm:text-[14px] xxxsm:font-semibold flex flex-col",children:(0,m.jsx)("span",{className:"text-white text-[15px] font-medium ",children:e("email")})})]}),(0,m.jsx)(n.N_,{to:e("routes.Home","/"),children:(0,m.jsx)(d.oKG,{size:20,className:"text-white "})})]})}),(0,m.jsxs)("div",{className:"bg-white dark:bg-dark-from xxxsm:p-5 sm:p-7 4xl:p-8 5xl:p-9 6xl:p-10 rounded-lg shadow-lg w-full xxxsm:max-w-[330px] xxsm:max-w-sm xsm:max-w-[400px] 2xl:max-w-[450px] 3xl:max-w-[520px] 4xl:max-w-[560px] 5xl:max-w-[630px] 6xl:max-w-[650px]",children:[(0,m.jsx)("h2",{className:"mb-5 xxxsm:text-[17px] xxsm:text-[18px] xsm:text-[19px] sm:text-xl 2xl:text-2xl 3xl:text-[27px] 4xl:text-[32px] 5xl:text-[35px] 6xl:text-[38px] 5xl:pb-1 6xl:pb-2 font-bold text-blue-500 dark:text-main-heading-white text-center",children:e("enter your email")}),(0,m.jsxs)("form",{onSubmit:async t=>{t.preventDefault();try{p(!0);(await l.A.post("".concat("https://www.arabiawheel.com/automotor","/users/reset"),{email:h})).data&&(a.oR.success("Password reset email sent successfully!"),u(""),w("".concat(e("routes.UserCheckinbox","/user/checkinbox"))),p(!1))}catch(x){x.response&&404===x.response.status?(a.oR.error("No user found with that email."),p(!1)):(a.oR.error("Failed to send reset email. Please try again later."),p(!1))}},className:"space-y-5",children:[(0,m.jsx)("div",{children:(0,m.jsx)("input",{type:"email",className:"w-full p-2 text-base border dark:border-border-color border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 2xl:p-[10px] 3xl:p-3 4xl:p-[14px] 5xl:p-4 6xl:p-5 placeholder:2xl:text-sm placeholder:3xl:text-base placeholder:4xl:text-lg placeholder:5xl:text-xl placeholder:6xl:text-[22px]",id:"email",placeholder:e("enter your email"),value:h,onChange:e=>{u(e.target.value)},required:!0})}),(0,m.jsx)("button",{type:"submit",className:"w-full p-2 text-base font-semibold dark:text-main-heading-white text-white dark:bg-main-heading-blue bg-blue-500 rounded hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-400 2xl:p-[10px] 3xl:p-3 4xl:p-[14px] 5xl:p-4 6xl:p-5 2xl:text-[17px] 3xl:text-lg 4xl:text-xl 5xl:text-[23px] 6xl:text-[26px]",children:x?(0,m.jsx)("div",{className:"w-8 h-8 4xl:w-9 4xl:h-9 border-4 4xl:border-6 border-white border-t-transparent border-solid rounded-full animate-spin mx-auto",style:{animation:"spin 1s linear infinite"}}):e("submit")})]})]})]})}}}]); 2//# sourceMappingURL=2450.94e0d5e1.chunk.js.map
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.