1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{4168:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var a=s(80364);let r=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l=function(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return t.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim()};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,a.forwardRef)((e,t)=>{let{color:s="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:c,className:d="",children:o,iconNode:u,...m}=e;return(0,a.createElement)("svg",{ref:t,...n,width:r,height:r,stroke:s,strokeWidth:c?24*Number(i)/Number(r):i,className:l("lucide",d),...m},[...u.map(e=>{let[t,s]=e;return(0,a.createElement)(t,s)}),...Array.isArray(o)?o:[o]])}),c=(e,t)=>{let s=(0,a.forwardRef)((s,n)=>{let{className:c,...d}=s;return(0,a.createElement)(i,{ref:n,iconNode:t,className:l("lucide-".concat(r(e)),c),...d})});return s.displayName="".concat(e),s}},6433:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(4168).A)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},7254:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(4168).A)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},7886:(e,t,s)=>{"use strict";s.d(t,{Fc:()=>c,TN:()=>d});var a=s(2432),r=s(80364),l=s(46992),n=s(84963);let i=(0,l.F)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),c=r.forwardRef((e,t)=>{let{className:s,variant:r,...l}=e;return(0,a.jsx)("div",{ref:t,role:"alert",className:(0,n.cn)(i({variant:r}),s),...l})});c.displayName="Alert",r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("h5",{ref:t,className:(0,n.cn)("mb-1 font-medium leading-none tracking-tight",s),...r})}).displayName="AlertTitle";let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("text-sm [&_p]:leading-relaxed",s),...r})});d.displayName="AlertDescription"},22438:(e,t,s)=>{"use strict";s.d(t,{J:()=>d});var a=s(2432),r=s(80364),l=s(96487),n=s(46992),i=s(84963);let c=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.b,{ref:t,className:(0,i.cn)(c(),s),...r})});d.displayName=l.b.displayName},30873:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>j});var a=s(2432),r=s(80364),l=s(2708),n=s(77382),i=s(87304),c=s(22438),d=s(7886),o=s(71586),u=s(7254),m=s(64314),h=s(83881),x=s(82384),f=s(38452),p=s(6433),g=s(51038),v=s(88055);function y(e){let{verificationId:t,username:o,phoneNumber:u,onVerificationSuccess:m,onCancel:f,onError:p}=e,[g,y]=(0,r.useState)(""),[j,w]=(0,r.useState)(!1),[N,b]=(0,r.useState)(""),[A,k]=(0,r.useState)(300),C=(0,r.useRef)([]);(0,r.useEffect)(()=>{let e=setInterval(()=>{k(t=>t<=1?(clearInterval(e),b("Verification code has expired. Please try again."),0):t-1)},1e3);return()=>clearInterval(e)},[]);let S=(e,t)=>{var s,a;if(t.length>1){let e=t.slice(0,6);y(e);for(let t=0;t<6;t++)C.current[t]&&(C.current[t].value=e[t]||"");let a=Math.min(e.length,5);null===(s=C.current[a])||void 0===s||s.focus();return}let r=g.split("");r[e]=t,y(r.join("")),t&&e<5&&(null===(a=C.current[e+1])||void 0===a||a.focus())},P=(e,t)=>{if("Backspace"===t.key&&!g[e]&&e>0){var s;null===(s=C.current[e-1])||void 0===s||s.focus()}},T=async()=>{if(6!==g.length){b("Please enter the complete 6-digit code");return}w(!0),b("");try{let e=(await Promise.resolve().then(s.bind(s,51038))).api,a=await e.verify2FA(t,g,o);a.success&&a.data?m(a.data):b(a.error||"Verification failed")}catch(e){b("Network error. Please try again.")}finally{w(!1)}},E=async()=>{b(""),k(300);try{let e=(await Promise.resolve().then(s.bind(s,51038))).api;(await e.start2FA(o,"")).success||b("Failed to resend code. Please try logging in again.")}catch(e){b("Network error. Please try again.")}};return(0,a.jsxs)(n.Zp,{className:"w-full max-w-md mx-auto",children:[(0,a.jsxs)(n.aR,{className:"text-center",children:[(0,a.jsx)("div",{className:"mx-auto w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,a.jsx)(x.A,{className:"w-6 h-6 text-blue-600"})}),(0,a.jsx)(n.ZB,{children:"Two-Factor Authentication"}),(0,a.jsxs)(n.BT,{children:["We've sent a 6-digit verification code to ",u?"***-***-".concat(u.slice(-4)):"your phone"]})]}),(0,a.jsxs)(n.Wu,{className:"space-y-6",children:[N&&(0,a.jsx)(d.Fc,{variant:"destructive",children:(0,a.jsx)(d.TN,{children:N})}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(c.J,{htmlFor:"verification-code",children:"Enter verification code"}),(0,a.jsx)("div",{className:"flex gap-2 justify-center",children:Array.from({length:6},(e,t)=>(0,a.jsx)(i.p,{ref:e=>C.current[t]=e,type:"text",inputMode:"numeric",pattern:"[0-9]*",maxLength:1,className:"w-12 h-12 text-center text-lg font-semibold",onChange:e=>S(t,e.target.value),onKeyDown:e=>P(t,e),disabled:j},t))})]}),(0,a.jsxs)("div",{className:"text-center text-sm text-gray-500",children:["Time remaining: ",(e=>{let t=Math.floor(e/60);return"".concat(t,":").concat((e%60).toString().padStart(2,"0"))})(A)]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)(l.$,{onClick:T,disabled:6!==g.length||j||0===A,className:"w-full",children:j?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.A,{className:"w-4 h-4 mr-2 animate-spin"}),"Verifying..."]}):"Verify Code"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)(l.$,{variant:"outline",onClick:E,disabled:A>0||j,className:"flex-1",children:[(0,a.jsx)(v.A,{className:"w-4 h-4 mr-2"}),"Resend Code"]}),(0,a.jsx)(l.$,{variant:"ghost",onClick:f,disabled:j,className:"flex-1",children:"Cancel"})]})]}),(0,a.jsx)("div",{className:"text-xs text-center text-gray-500",children:"Didn't receive the code? Check your phone for SMS messages or try resending."})]})]})}function j(){let[e,t]=(0,r.useState)(""),[s,v]=(0,r.useState)(""),[j,w]=(0,r.useState)(""),[N,b]=(0,r.useState)(!1),[A,k]=(0,r.useState)(!1),[C,S]=(0,r.useState)(!1),[P,T]=(0,r.useState)(""),[E,F]=(0,r.useState)(""),[R,M]=(0,r.useState)(!1),[$,V]=(0,r.useState)(""),[q,_]=(0,r.useState)(""),[D,I]=(0,r.useState)(!1),[L,O]=(0,r.useState)(null),[z,W]=(0,r.useState)(""),[Z,B]=(0,r.useState)(""),[J,U]=(0,r.useState)(""),H=async t=>{var a,r,l;t.preventDefault(),k(!0),w("");try{let t=await g.default.start2FA(e,s);if(!t.success){let t=await g.default.login(e,s);if(!t.success)throw Error(t.error||"Login failed");if(null===(a=t.data)||void 0===a?void 0:a.requirePasswordChange){O(t.data),I(!0);return}setTimeout(()=>{K(t.data)},100);return}let l=t.data;if(l.requires_2fa&&l.verification_id)V(l.verification_id),M(!0),_("");else{let t=await g.default.login(e,s);if(!t.success)throw Error(t.error||"Login failed");if(null===(r=t.data)||void 0===r?void 0:r.requirePasswordChange){O(t.data),I(!0);return}setTimeout(()=>{K(t.data)},100)}}catch(e){console.error("Login error:",e),(null===(l=e.message)||void 0===l?void 0:l.includes("ACCOUNT_INACTIVE"))?w("This account is inactive, please contact sales or support for more details."):w(e.message||"An unexpected error occurred. Please try again.")}finally{k(!1)}},G=async e=>{e.preventDefault(),k(!0),w(""),F("");try{let e=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:P})}),t=await e.json();if(!e.ok)throw Error(t.error||"Failed to send reset email");F("Password reset email sent! Check your inbox.")}catch(e){console.error("Forgot password error:",e),w(e.message||"An unexpected error occurred. Please try again.")}finally{k(!1)}},K=e=>{"admin"===e.userType?window.location.href="/dashboard/admin":"scheduling"===e.accountType?window.location.href="/dashboard/scheduling":"quotation"===e.accountType?window.location.href="/dashboard/quotation":"lead"===e.accountType||"lead_generation"===e.accountType?window.location.href="/dashboard/lead":window.location.href="/dashboard"},Q=async t=>{t.preventDefault(),k(!0),U("");try{if(z!==Z)throw Error("Passwords do not match");if(z.length<8)throw Error("Password must be at least 8 characters long");if(!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*(),.?":{}|<>]).{8,}$/.test(z))throw Error("Password must contain uppercase, lowercase, number, and special character");let t=await g.default.changePassword(e,s,z);if(!t.success)throw Error(t.error||"Password change failed");setTimeout(()=>{K(t.data)},100)}catch(e){console.error("Password change error:",e),U(e.message||"Password change failed")}finally{k(!1)}},X=e=>{"admin"===e?(t("[email protected]"),v("admin123")):"scheduling"===e?(t("[email protected]"),v("test123")):"quotation"===e&&(t("[email protected]"),v("test123")),w("")};return R?(0,a.jsx)("div",{className:"min-h-screen bg-gradient-to-b from-blue-50 to-white flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:(0,a.jsx)(y,{verificationId:$,username:e,phoneNumber:q,onVerificationSuccess:e=>{M(!1),V(""),setTimeout(()=>{K(e)},100)},onCancel:()=>{M(!1),V(""),w("")},onError:e=>{w(e)}})}):D?(0,a.jsx)("div",{className:"min-h-screen bg-gradient-to-b from-blue-50 to-white flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:(0,a.jsxs)("div",{className:"max-w-md w-full space-y-8",children:[(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsxs)("div",{className:"flex items-center justify-center space-x-2 mb-4",children:[(0,a.jsx)("img",{src:"/images/ViTriagelogo.png",alt:"
1ViTriage.AI Logo",className:"w-10 h-10"}),(0,a.jsx)("span",{className:"text-2xl font-bold text-gray-900",children:"ViTriage AI"})]}),(0,a.jsx)("h2",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Change Password"}),(0,a.jsx)("p",{className:"text-gray-600",children:"You must change your temporary password to continue"})]}),(0,a.jsxs)(n.Zp,{className:"shadow-lg",children:[(0,a.jsx)(n.aR,{children:(0,a.jsx)(n.ZB,{children:"Set New Password"})}),(0,a.jsx)(n.Wu,{children:(0,a.jsxs)("form",{onSubmit:Q,className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(c.J,{htmlFor:"newPassword",children:"New Password"}),(0,a.jsxs)("div",{className:"relative mt-1",children:[(0,a.jsx)(i.p,{id:"newPassword",type:N?"text":"password",value:z,onChange:e=>W(e.target.value),placeholder:"Enter new password",required:!0}),(0,a.jsx)(l.$,{type:"button",variant:"ghost",size:"sm",className:"absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent",onClick:()=>b(!N),children:N?(0,a.jsx)(o.A,{className:"h-4 w-4 text-gray-400"}):(0,a.jsx)(u.A,{className:"h-4 w-4 text-gray-400"})})]}),(0,a.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"Must be at least 8 characters with uppercase, lowercase, number, and special character"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(c.J,{htmlFor:"confirmPassword",children:"Confirm New Password"}),(0,a.jsx)(i.p,{id:"confirmPassword",type:N?"text":"password",value:Z,onChange:e=>B(e.target.value),placeholder:"Confirm new password",required:!0,className:"mt-1"})]}),J&&(0,a.jsxs)(d.Fc,{variant:"destructive",children:[(0,a.jsx)(m.A,{className:"h-4 w-4"}),(0,a.jsx)(d.TN,{children:J})]}),(0,a.jsxs)("div",{className:"flex space-x-3",children:[(0,a.jsx)(l.$,{type:"submit",className:"flex-1 bg-blue-600 hover:bg-blue-700",disabled:A,children:A?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.A,{className:"w-4 h-4 mr-2 animate-spin"}),"Updating..."]}):"Update Password"}),(0,a.jsx)(l.$,{type:"button",variant:"outline",onClick:()=>{I(!1),O(null),W(""),B(""),U("")},disabled:A,children:"Cancel"})]})]})})]})]})}):(0,a.jsx)("div",{className:"min-h-screen bg-gradient-to-b from-blue-50 to-white flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:(0,a.jsxs)("div",{className:"max-w-md w-full space-y-8",children:[(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsxs)("div",{className:"flex items-center justify-center space-x-2 mb-4",children:[(0,a.jsx)("img",{src:"/images/ViTriagelogo.png",alt:"ViTriage.AI Logo",className:"w-10 h-10"}),(0,a.jsx)("span",{className:"text-2xl font-bold text-gray-900",children:"ViTriage AI"})]}),(0,a.jsx)("h2",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Welcome back"}),(0,a.jsx)("p",{className:"text-gray-600",children:"Sign in to your AI assistant dashboard"})]}),(0,a.jsxs)("div",{className:"hidden",children:[(0,a.jsxs)("h3",{className:"font-medium text-blue-900 mb-3 flex items-center",children:[(0,a.jsx)(m.A,{className:"w-4 h-4 mr-2"}),"Test Accounts Available"]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between p-3 bg-white rounded border",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2 mb-1",children:[(0,a.jsx)(x.A,{className:"w-4 h-4 text-red-600"}),(0,a.jsx)("span",{className:"font-medium text-sm",children:"Admin Dashboard"})]}),(0,a.jsx)("p",{className:"text-xs text-gray-600",children:"[email protected]"})]}),(0,a.jsx)(l.$,{variant:"outline",size:"sm",onClick:()=>X("admin"),children:"Use"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between p-3 bg-white rounded border",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2 mb-1",children:[(0,a.jsx)(f.A,{className:"w-4 h-4 text-blue-600"}),(0,a.jsx)("span",{className:"font-medium text-sm",children:"Scheduling Assistant"})]}),(0,a.jsx)("p",{className:"text-xs text-gray-600",children:"[email protected]"})]}),(0,a.jsx)(l.$,{variant:"outline",size:"sm",onClick:()=>X("scheduling"),children:"Use"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between p-3 bg-white rounded border",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2 mb-1",children:[(0,a.jsx)(p.A,{className:"w-4 h-4 text-purple-600"}),(0,a.jsx)("span",{className:"font-medium text-sm",children:"Quote Assistant"})]}),(0,a.jsx)("p",{className:"text-xs text-gray-600",children:"[email protected]"})]}),(0,a.jsx)(l.$,{variant:"outline",size:"sm",onClick:()=>X("quotation"),children:"Use"})]})]}),(0,a.jsx)("p",{className:"text-xs text-blue-700 mt-3",children:"Password: admin123 (admin) | test123 (scheduling/quotes)"})]}),(0,a.jsxs)(n.Zp,{className:"shadow-lg",children:[(0,a.jsx)(n.aR,{children:(0,a.jsx)(n.ZB,{children:C?"Reset Password":"Sign In"})}),(0,a.jsxs)(n.Wu,{children:[C?(0,a.jsxs)("form",{onSubmit:G,className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(c.J,{htmlFor:"forgotEmail",children:"Email Address"}),(0,a.jsx)(i.p,{id:"forgotEmail",type:"email",value:P,onChange:e=>T(e.target.value),placeholder:"Enter your email address",required:!0,className:"mt-1"})]}),j&&(0,a.jsxs)(d.Fc,{variant:"destructive",children:[(0,a.jsx)(m.A,{className:"h-4 w-4"}),(0,a.jsx)(d.TN,{children:j})]}),E&&(0,a.jsxs)(d.Fc,{children:[(0,a.jsx)(m.A,{className:"h-4 w-4"}),(0,a.jsx)(d.TN,{className:"text-green-600",children:E})]}),(0,a.jsx)(l.$,{type:"submit",className:"w-full bg-blue-600 hover:bg-blue-700",disabled:A,children:A?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.A,{className:"w-4 h-4 mr-2 animate-spin"}),"Sending reset email..."]}):"Send Reset Email"}),(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)("button",{type:"button",onClick:()=>{S(!1),w(""),F(""),T("")},className:"text-sm text-blue-600 hover:text-blue-700 underline",children:"Back to sign in"})})]}):(0,a.jsxs)("form",{onSubmit:H,className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(c.J,{htmlFor:"username",children:"Username or Email"}
1),(0,a.jsx)(i.p,{id:"username",type:"text",value:e,onChange:e=>t(e.target.value),placeholder:"Enter your username or email",required:!0,className:"mt-1"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(c.J,{htmlFor:"password",children:"Password"}),(0,a.jsxs)("div",{className:"relative mt-1",children:[(0,a.jsx)(i.p,{id:"password",type:N?"text":"password",value:s,onChange:e=>v(e.target.value),placeholder:"Enter your password",required:!0}),(0,a.jsx)(l.$,{type:"button",variant:"ghost",size:"sm",className:"absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent",onClick:()=>b(!N),children:N?(0,a.jsx)(o.A,{className:"h-4 w-4 text-gray-400"}):(0,a.jsx)(u.A,{className:"h-4 w-4 text-gray-400"})})]})]}),j&&(0,a.jsxs)(d.Fc,{variant:"destructive",children:[(0,a.jsx)(m.A,{className:"h-4 w-4"}),(0,a.jsx)(d.TN,{children:j})]}),(0,a.jsx)(l.$,{type:"submit",className:"w-full bg-blue-600 hover:bg-blue-700",disabled:A,children:A?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.A,{className:"w-4 h-4 mr-2 animate-spin"}),"Signing in..."]}):"Sign in"}),(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)("button",{type:"button",onClick:()=>S(!0),className:"text-sm text-blue-600 hover:text-blue-700 underline",children:"Forgot your password?"})})]}),(0,a.jsx)("div",{className:"mt-6 text-center",children:(0,a.jsxs)("p",{className:"text-sm text-gray-600",children:["Don't have an account?"," ",(0,a.jsx)("a",{href:"/signup",className:"text-blue-600 hover:text-blue-700 font-medium",children:"Sign up here"})]})})]})]}),(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)("a",{href:"/",className:"text-blue-600 hover:text-blue-700 text-sm",children:"â Back to ViTriage AI"})})]})})}},32461:(e,t,s)=>{"use strict";s.d(t,{hO:()=>c,sG:()=>i});var a=s(80364),r=s(24349),l=s(89932),n=s(2432),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let s=(0,l.TL)(`Primitive.${t}`),r=a.forwardRef((e,a)=>{let{asChild:r,...l}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(r?s:t,{...l,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function c(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}},38452:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(4168).A)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},46280:(e,t,s)=>{"use strict";s.d(t,{s:()=>n,t:()=>l});var a=s(80364);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return t=>{let s=!1,a=e.map(e=>{let a=r(e,t);return s||"function"!=typeof a||(s=!0),a});if(s)return()=>{for(let t=0;t<a.length;t++){let s=a[t];"function"==typeof s?s():r(e[t],null)}}}}function n(...e){return a.useCallback(l(...e),e)}},46992:(e,t,s)=>{"use strict";s.d(t,{F:()=>n});var a=s(12126);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,l=a.$,n=(e,t)=>s=>{var a;if((null==t?void 0:t.variants)==null)return l(e,null==s?void 0:s.class,null==s?void 0:s.className);let{variants:n,defaultVariants:i}=t,c=Object.keys(n).map(e=>{let t=null==s?void 0:s[e],a=null==i?void 0:i[e];if(null===t)return null;let l=r(t)||r(a);return n[e][l]}),d=s&&Object.entries(s).reduce((e,t)=>{let[s,a]=t;return void 0===a||(e[s]=a),e},{});return l(e,c,null==t?void 0:null===(a=t.compoundVariants)||void 0===a?void 0:a.reduce((e,t)=>{let{class:s,className:a,...r}=t;return Object.entries(r).every(e=>{let[t,s]=e;return Array.isArray(s)?s.includes({...i,...d}[t]):({...i,...d})[t]===s})?[...e,s,a]:e},[]),null==s?void 0:s.class,null==s?void 0:s.className)}},62044:(e,t,s)=>{Promise.resolve().then(s.bind(s,30873))},64314:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(4168).A)("CircleAlert",[["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"}]])},71586:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(4168).A)("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},77382:(e,t,s)=>{"use strict";s.d(t,{BT:()=>d,Wu:()=>o,ZB:()=>c,Zp:()=>n,aR:()=>i,wL:()=>u});var a=s(2432),r=s(80364),l=s(84963);let n=r.forwardRef((e,t)=>
1{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",s),...r,children:r.children||"Appointments"})});n.displayName="Card";let i=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("flex flex-col space-y-1.5 p-6 break-before-page",s),...r})});i.displayName="CardHeader";let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("h3",{ref:t,className:(0,l.cn)("text-2xl font-semibold leading-none tracking-tight",s),...r})});c.displayName="CardTitle";let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("p",{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",s),...r})});d.displayName="CardDescription";let o=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("p-6 pt-0",s),...r})});o.displayName="CardContent";let u=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("flex items-center p-6 pt-0",s),...r})});u.displayName="CardFooter"},82384:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(4168).A)("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},83881:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(4168).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},88055:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(4168).A)("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]])},89932:(e,t,s)=>{"use strict";s.d(t,{DX:()=>i,TL:()=>n});var a=s(80364),r=s(46280),l=s(2432);function n(e){let t=function(e){let t=a.forwardRef((e,t)=>{let{children:s,...l}=e;if(a.isValidElement(s)){var n;let e,i;let c=(n=s,(i=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.ref:(i=(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.props.ref:n.props.ref||n.ref),d=function(e,t){let s={...t};for(let a in t){let r=e[a],l=t[a];/^on[A-Z]/.test(a)?r&&l?s[a]=(...e)=>{let t=l(...e);return r(...e),t}:r&&(s[a]=r):"style"===a?s[a]={...r,...l}:"className"===a&&(s[a]=[r,l].filter(Boolean).join(" "))}return{...e,...s}}(l,s.props);return s.type!==a.Fragment&&(d.ref=t?(0,r.t)(t,c):c),a.cloneElement(s,d)}return a.Children.count(s)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),s=a.forwardRef((e,s)=>{let{children:r,...n}=e,i=a.Children.toArray(r),c=i.find(d);if(c){let e=c.props.children,r=i.map(t=>t!==c?t:a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null);return(0,l.jsx)(t,{...n,ref:s,children:a.isValidElement(e)?a.cloneElement(e,void 0,r):null})}return(0,l.jsx)(t,{...n,ref:s,children:r})});return s.displayName=`${e}.Slot`,s}var i=n("Slot"),c=Symbol("radix.slottable");function d(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}},96487:(e,t,s)=>{"use strict";s.d(t,{b:()=>i});var a=s(80364),r=s(32461),l=s(2432),n=a.forwardRef((e,t)=>(0,l.jsx)(r.sG.label,{...e,ref:t,onMouseDown:t=>{var s;t.target.closest("button, input, select, textarea")||(null===(s=e.onMouseDown)||void 0===s||s.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));n.displayName="Label";var i=n}},e=>{var t=t=>e(e.s=t);e.O(0,[3438,6896,5022,5575,7358],()=>t(62044)),_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.