1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8352],{20269:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>d});var r=t(95155),a=t(12115),l=t(73321),n=t(19338),i=t(72414);function o(){let e=(0,l.useRouter)(),[s,t]=(0,a.useState)(""),[i,o]=(0,a.useState)(""),[d,c]=(0,a.useState)(""),[u,m]=(0,a.useState)(""),[x,h]=(0,a.useState)(!1),[f,p]=(0,a.useState)(!1),[b]=(0,a.useState)(()=>(0,n.createBrowserClient)("https://mdoantrmlgzbtkteomsu.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1kb2FudHJtbGd6YnRrdGVvbXN1Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzE0NzM4NjcsImV4cCI6MjA4NzA0OTg2N30.q-7RmlMragXejJd-0WHGLUMdrgKtlEIfyVTgPoFLrK8")),g=async t=>{if(t.preventDefault(),c(""),m(""),s!==i)return void c("Passwords do not match.");if(s.length<6)return void c("Password must be at least 6 characters long.");h(!0);try{let{error:t}=await b.auth.updateUser({password:s});if(t)t.message.toLowerCase().includes("session")||t.message.toLowerCase().includes("auth")?c("This reset link has expired. Please return to the login page and request a new one."):c(t.message);else{m("Password successfully updated! Redirecting to your workspace...");let s="",{data:{user:t}}=await b.auth.getUser();if(t?.email){let{data:e}=await b.from("providers").select("onboarding_uid").eq("email",t.email).maybeSingle();e?.onboarding_uid&&(s=e.onboarding_uid)}await b.auth.signOut(),setTimeout(()=>{s?e.push(`/sign-in?uid=${s}`):e.push("/sign-in")},2500)}}catch(e){c("A network error occurred. Please try again.")}finally{h(!1)}};return(0,r.jsxs)("div",{className:"max-w-4xl w-full bg-white rounded-2xl shadow-2xl overflow-hidden flex min-h-[550px] mx-auto my-12",style:{fontFamily:"var(--sans)"},children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:` 2 @import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap'); 3 4 :root { 5 --navy: #001b3d; 6 --sage: #4a7c6f; 7 --sage-hover: #5d9b8a; 8 --gold: #b8977e; 9 --serif: 'DM Serif Display', Georgia, serif; 10 --sans: 'Outfit', system-ui, sans-serif; 11 } 12 `}}),(0,r.jsxs)("div",{className:"w-5/12 bg-[#001b3d] p-10 text-white flex flex-col justify-between relative overflow-hidden shrink-0",children:[(0,r.jsx)("div",{className:"absolute -left-10 -top-10 w-48 h-48 bg-white opacity-5 rounded-full blur-3xl"}),(0,r.jsx)("div",{className:"absolute right-0 bottom-0 w-64 h-64 bg-black opacity-10 rounded-full blur-3xl translate-x-1/3 translate-y-1/3"}),(0,r.jsxs)("div",{className:"relative z-10",children:[(0,r.jsx)("div",{className:"h-10"})," ",(0,r.jsxs)("div",{className:"flex items-center gap-3 mb-10",children:[(0,r.jsx)("div",{className:"w-12 h-12 bg-white rounded-xl flex items-center justify-center shadow-lg",children:(0,r.jsx)("img",{src:"/icon130.png",alt:"ClarityACP",className:"w-8 h-8 object-contain",onError:e=>e.currentTarget.style.display="none"})}),(0,r.jsxs)("div",{style:{fontSize:"clamp(16px, 1.4vw, 20px)",fontWeight:700,letterSpacing:"-.02em",textTransform:"uppercase",color:"#fff"},children:["Clarity",(0,r.jsx)("span",{style:{fontWeight:400,color:"rgba(255,255,255,.45)"},children:"ACP"})]})]}),(0,r.jsxs)("h1",{style:{fontFamily:"var(--serif)",fontSize:"clamp(32px, 3.5vw, 42px)",lineHeight:1.15},className:"mb-4",children:["Casenote ",(0,r.jsx)("br",{}),(0,r.jsx)("span",{style:{fontStyle:"italic",color:"var(--gold)"},children:"Provider Hub"})]}),(0,r.jsx)("p",{className:"text-[15px] font-light text-blue-100/70 leading-relaxed max-w-[280px]",children:"Secure your account to maintain clinical access."})]}),(0,r.jsx)("div",{className:"relative z-10",children:(0,r.jsxs)("p",{className:"text-[11px] text-blue-100/40 font-light tracking-[.05em]",children:["\xa9 ",new Date().getFullYear()," ClarityACP. All Rights Reserved."]})})]}),(0,r.jsx)("div",{className:"w-7/12 p-12 flex flex-col justify-center bg-slate-50 relative",children:(0,r.jsxs)("div",{className:"max-w-md w-full mx-auto",children:[(0,r.jsxs)("div",{className:"mb-8 border-b border-slate-200/60 pb-6",children:[(0,r.jsx)("div",{style:{fontSize:11,fontWeight:600,letterSpacing:".3em",textTransform:"uppercase",color:"var(--sage)",marginBottom:12},children:"Security"}),(0,r.jsx)("h2",{style:{fontFamily:"var(--serif)",fontSize:"clamp(26px, 3vw, 32px)",lineHeight:1.15,color:"var(--navy)"},children:"Reset Password"}),(0,r.jsx)("p",{className:"text-[14px] font-light text-slate-500 mt-2",children:"Enter your new secure password below."})]}),d&&(0,r.jsx)("div",{className:"mb-6 p-3 bg-red-50 border border-red-200 text-red-700 rounded-lg text-sm font-medium",children:d}),u?(0,r.jsxs)("div",{className:"mb-6 p-4 bg-green-50 border border-green-200 text-green-700 rounded-lg text-sm font-medium flex items-center gap-3",children:[(0,r.jsx)("span",{className:"w-8 h-8 rounded-full bg-green-100 flex items-center justify-center flex-shrink-0",children:(0,r.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"})})}),u]}):(0,r.jsxs)("form",{onSubmit:g,className:"space-y-5",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-[11px] font-semibold text-slate-500 mb-2 block uppercase tracking-[.15em]",children:"New Password"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("input",{type:f?"text":"password",required:!0,value:s,onChange:e=>t(e.target.value),className:"w-full p-3.5 border border-slate-200 rounded-lg focus:ring-2 focus:ring-[#001b3d] outline-none transition-all text-sm bg-white shadow-sm pr-10",placeholder:"Min. 6 characters"}),(0,r.jsx)("button",{type:"button",onClick:()=>
12p(!f),className:"absolute right-4 top-1/2 -translate-y-1/2 text-slate-400 hover:text-[#001b3d] transition-colors",children:f?(0,r.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l18 18"})}):(0,r.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0zM2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})})})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-[11px] font-semibold text-slate-500 mb-2 block uppercase tracking-[.15em]",children:"Confirm Password"}),(0,r.jsx)("input",{type:f?"text":"password",required:!0,value:i,onChange:e=>o(e.target.value),className:"w-full p-3.5 border border-slate-200 rounded-lg focus:ring-2 focus:ring-[#001b3d] outline-none transition-all text-sm bg-white shadow-sm",placeholder:"Re-enter your new password"})]}),(0,r.jsx)("button",{type:"submit",disabled:x,className:"w-full mt-6 bg-[#001b3d] hover:bg-[#001126] text-white text-[11px] font-semibold py-4 rounded-lg shadow-md transition-all flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed uppercase tracking-[.2em]",children:x?"Updating...":"Update Password"})]})]})})]})}function d(){return(0,r.jsx)(i.default,{children:(0,r.jsx)("div",{className:"min-h-screen w-full bg-[#cbd5e1] flex items-center justify-center p-4 font-sans text-slate-800",children:(0,r.jsx)(a.Suspense,{fallback:(0,r.jsx)("div",{className:"text-[#001b3d] font-bold uppercase tracking-widest text-xs",children:"Securing Connection..."}),children:(0,r.jsx)(o,{})})})})}},46289:(e,s,t)=>{Promise.resolve().then(t.bind(t,20269))},72414:(e,s,t)=>{"use strict";t.d(s,{default:()=>l});var r=t(95155),a=t(12115);function l({children:e}){let[s,t]=(0,a.useState)(!1),[l,n]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{n(!0);let e=()=>t(window.innerWidth<1024);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),l)?s?(0,r.jsx)("div",{className:"fixed inset-0 bg-slate-900 z-[99999] flex flex-col items-center justify-center p-8 text-center font-sans",children:(0,r.jsxs)("div",{className:"bg-white p-8 rounded-2xl shadow-2xl max-w-sm w-full flex flex-col items-center animate-fadeIn border border-slate-200",children:[(0,r.jsx)("div",{className:"w-16 h-16 bg-red-50 text-red-500 rounded-full flex items-center justify-center mb-6 border border-red-100 shadow-inner",children:(0,r.jsx)("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:"2.5",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})})}),(0,r.jsx)("h2",{className:"text-xl font-black text-[#001b3d] mb-3",children:"Desktop Required"}),(0,r.jsx)("p",{className:"text-sm text-slate-500 mb-6 leading-relaxed font-medium",children:"For clinical safety and data security, the Casenote portal can only be accessed on a laptop or desktop computer."}),(0,r.jsxs)("div",{className:"p-4 bg-slate-50 rounded-lg border border-slate-100 w-full text-left",children:[(0,r.jsx)("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest mb-1",children:"Minimum Resolution"}),(0,r.jsx)("p",{className:"text-xs font-mono text-[#001b3d] font-bold",children:"1024px width"})]})]})}):(0,r.jsx)(r.Fragment,{children:e}):(0,r.jsx)("div",{className:"fixed inset-0 bg-[#cbd5e1]"})}},73321:(e,s,t)=>{"use strict";var r=t(74645);t.o(r,"useParams")&&t.d(s,{useParams:function(){return r.useParams}}),t.o(r,"usePathname")&&t.d(s,{usePathname:function(){return r.usePathname}}),t.o(r,"useRouter")&&t.d(s,{useRouter:function(){return r.useRouter}}),t.o(r,"useSearchParams")&&t.d(s,{useSearchParams:function(){return r.useSearchParams}})}},e=>{e.O(0,[2619,9338,8441,8928,7358],()=>e(e.s=46289)),_N_E=e.O()}]);
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.