1/*! For license information please see 7504.e50a186d.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[7504],{4158:(e,s,a)=>{a.d(s,{Fc:()=>n,TN:()=>c});var t=a(65043),r=a(10917),l=a(99766),d=a(70579);const i=(0,r.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),n=t.forwardRef(({className:e,variant:s,...a},t)=>(0,d.jsx)("div",{ref:t,role:"alert",className:(0,l.cn)(i({variant:s}),e),...a}));n.displayName="Alert";t.forwardRef(({className:e,...s},a)=>(0,d.jsx)("h5",{ref:a,className:(0,l.cn)("mb-1 font-medium leading-none tracking-tight",e),...s})).displayName="AlertTitle";const c=t.forwardRef(({className:e,...s},a)=>(0,d.jsx)("div",{ref:a,className:(0,l.cn)("text-sm [&_p]:leading-relaxed",e),...s}));c.displayName="AlertDescription"},22024:(e,s,a)=>{a.d(s,{A:()=>t});const t=(0,a(77784).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},37504:(e,s,a)=>{a.r(s),a.d(s,{default:()=>v});var t=a(65043),r=a(18163),l=a(86213),d=a(13390),i=a(92264),n=a(20556),c=a(91140),o=a(4158),m=a(77819),x=a(82054),h=a(22024),u=a(94651),w=a(35087),p=a(65727),f=a(70579);const g="https://balkandestination.com";function v(){const e=(0,r.Zp)(),[s]=(0,r.ok)(),a=s.get("token"),[v,j]=(0,t.useState)({password:"",confirmPassword:""}),[N,y]=(0,t.useState)(!1),[b,k]=(0,t.useState)(!1),[A,P]=(0,t.useState)(!1),[R,C]=(0,t.useState)("");(0,t.useEffect)(()=>{a||C("Invalid reset link. Please request a new password reset.")},[a]);return A?(0,f.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 to-indigo-100 flex items-center justify-center p-4",children:(0,f.jsx)("div",{className:"w-full max-w-md",children:(0,f.jsxs)(c.Zp,{className:"shadow-xl",children:[(0,f.jsxs)(c.aR,{className:"text-center",children:[(0,f.jsx)("div",{className:"mx-auto w-16 h-16 bg-green-600 rounded-full flex items-center justify-center mb-4",children:(0,f.jsx)(x.A,{className:"w-8 h-8 text-white"})}),(0,f.jsx)(c.ZB,{className:"text-2xl",children:"Password Reset Successful!"}),(0,f.jsx)(c.BT,{children:"Your password has been reset. Redirecting to login..."})]}),(0,f.jsx)(c.Wu,{children:(0,f.jsx)(r.N_,{to:"/guide/login",children:(0,f.jsx)(d.$,{className:"w-full",children:"Go to Login"})})})]})})}):(0,f.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 to-indigo-100 flex items-center justify-center p-4",children:(0,f.jsx)("div",{className:"w-full max-w-md",children:(0,f.jsxs)(c.Zp,{className:"shadow-xl",children:[(0,f.jsxs)(c.aR,{className:"text-center",children:[(0,f.jsx)("div",{className:"mx-auto w-16 h-16 bg-blue-600 rounded-full flex items-center justify-center mb-4",children:(0,f.jsx)(p.A,{className:"w-8 h-8 text-white"})}),(0,f.jsx)(c.ZB,{className:"text-2xl",children:"Reset Your Password"}),(0,f.jsx)(c.BT,{children:"Enter your new password below"})]}),(0,f.jsxs)(c.Wu,{children:[(0,f.jsxs)("form",{onSubmit:async s=>{if(s.preventDefault(),v.password===v.confirmPassword)if(v.password.length<6)C("Password must be at least 6 characters");else{k(!0),C("");try{await l.A.post(`${g}/api/guide/reset-password`,{token:a,new_password:v.password}),P(!0),setTimeout(()=>e("/guide/login"),3e3)}catch(d){var t,r;C((null===(t=d.response)||void 0===t||null===(r=t.data)||void 0===r?void 0:r.detail)||"Failed to reset password. The link may have expired.")}finally{k(!1)}}else C("Passwords do not match")},className:"space-y-4",children:[R&&(0,f.jsxs)(o.Fc,{variant:"destructive",children:[(0,f.jsx)(m.A,{className:"h-4 w-4"}),(0,f.jsx)(o.TN,{children:R})]}),(0,f.jsxs)("div",{className:"space-y-2",children:[(0,f.jsx)(n.J,{htmlFor:"password",children:"New Password"}),(0,f.jsxs)("div",{className:"relative",children:[(0,f.jsx)(p.A,{className:"absolute left-3 top-3 h-4 w-4 text-gray-500"}),(0,f.jsx)(i.p,{id:"password",type:N?"text":"password",placeholder:"Enter new password",className:"pl-10 pr-10",value:v.password,onChange:e=>j({...v,password:e.target.value}),required:!0,minLength:6}),(0,f.jsx)("button",{type:"button",onClick:()=>y(!N),className:"absolute right-3 top-3 text-gray-500 hover:text-gray-600",children:N?(0,f.jsx)(u.A,{className:"h-4 w-4"}):(0,f.jsx)(w.A,{className:"h-4 w-4"})})]})]}),(0,f.jsxs)("div",{className:"space-y-2",children:[(0,f.jsx)(n.J,{htmlFor:"confirmPassword",children:"Confirm Password"}),(0,f.jsxs)("div",{className:"relative",children:[(0,f.jsx)(p.A,{className:"absolute left-3 top-3 h-4 w-4 text-gray-500"}),(0,f.jsx)(i.p,{id:"confirmPassword",type:N?"text":"password",placeholder:"Confirm new password",className:"pl-10",value:v.confirmPassword,onChange:e=>j({...v,confirmPassword:e.target.value}),required:!0})]})]}),(0,f.jsx)(d.$,{type:"submit",className:"w-full",disabled:b||!a,children:b?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(h.A,{className:"mr-2 h-4 w-4 animate-spin"}),"Resetting..."]}):"Reset Password"})]}),(0,f.jsx)("div",{className:"mt-6 text-center",children:(0,f.jsx)(r.N_,{to:"/guide/login",className:"text-sm text-blue-600 hover:underline",children:"Back to Login"})})]})]})})})}},65727:(e,s,a)=>{a.d(s,{A:()=>t});
2const t=(0,a(77784).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},77819:(e,s,a)=>{a.d(s,{A:()=>t});const t=(0,a(77784).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},82054:(e,s,a)=>{a.d(s,{A:()=>t});const t=(0,a(77784).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])}}]); 3//# sourceMappingURL=7504.e50a186d.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.