T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/domains/lavocat.ca/private_html/.next/static/chunks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/lavocat.ca/private_html/.next/static/chunks/4358-7e740759a6fc2926.js
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4358],{34358:(e,s,l)=>{l.d(s,{iK:()=>E,Mu:()=>N,$C:()=>S,GC:()=>p,YD:()=>T,Wx:()=>L,jm:()=>I,lZ:()=>d}),l(98877);var r,a=l(21962),o=l(43225),u=l(77292);let A=null!=(r=globalThis.prisma)?r:new u.PrismaClient({log:["error"]});var t=l(65364);(0,a.A)({name:"Credentials",credentials:{email:{label:"Email",type:"email"},password:{label:"Password",type:"password"}},async authorize(e){if(!(null==e?void 0:e.email)||!(null==e?void 0:e.password))return null;try{let s=await A.user.findUnique({where:{email:e.email},select:{id:!0,email:!0,password:!0,role:!0,name:!0,isVerified:!0,verificationStatus:!0}});if(!s||!await (0,o.compare)(e.password,s.password))return null;let{password:l,...r}=s;return{...r,name:r.name||r.email}}catch(e){return console.error("Auth error:",e),null}}}),t.env.COOKIE_DOMAIN,t.env.NEXTAUTH_SECRET;var n=l(10553),c=l(89099),i=l(14232);let E={SUPERADMIN:"SUPERADMIN",ADMIN:"ADMIN",LAWYER:"LAWYER",JURIST:"JURIST",JUDGE:"JUDGE",MEDIATOR:"MEDIATOR",LEGAL_CONSULTANT:"LEGAL_CONSULTANT",INVESTIGATOR:"INVESTIGATOR",EXPERT_WITNESS:"EXPERT_WITNESS",NOTARY:"NOTARY",USER:"USER",CLIENT:"CLIENT",LAW_STUDENT:"LAW_STUDENT",LEGAL_INTERN:"LEGAL_INTERN",SECRETARY:"SECRETARY",ASSISTANT:"ASSISTANT",CLERK:"CLERK",COURT_CLERK:"COURT_CLERK",PARALEGAL:"PARALEGAL"},R={[E.SUPERADMIN]:{canAccessAll:!0,allowedPages:["*"],allowedRoles:Object.values(E)},[E.ADMIN]:{canAccessAll:!1,allowedPages:["/admin/*","/user/*","/lawyer/*","/jurist/*","/judge/*","/mediator/*","/consultant/*","/investigator/*","/expert/*","/support/*","/student/*","/notary/*","/client/*"],allowedRoles:[E.ADMIN,E.LAWYER,E.JURIST,E.JUDGE,E.MEDIATOR,E.LEGAL_CONSULTANT,E.INVESTIGATOR,E.EXPERT_WITNESS,E.NOTARY,E.USER,E.CLIENT,E.LAW_STUDENT,E.LEGAL_INTERN,E.SECRETARY,E.ASSISTANT,E.CLERK,E.COURT_CLERK,E.PARALEGAL]},[E.LAWYER]:{canAccessAll:!1,allowedPages:["/lawyer/*","/user/profile","/user/business-profile","/user/business-analytics","/user/subscription","/client/*"],allowedRoles:[E.LAWYER]},[E.JURIST]:{canAccessAll:!1,allowedPages:["/jurist/*","/user/profile","/user/subscription"],allowedRoles:[E.JURIST]},[E.JUDGE]:{canAccessAll:!1,allowedPages:["/judge/*","/user/profile","/user/subscription"],allowedRoles:[E.JUDGE]},[E.MEDIATOR]:{canAccessAll:!1,allowedPages:["/mediator/*","/user/profile","/user/subscription"],allowedRoles:[E.MEDIATOR]},[E.LEGAL_CONSULTANT]:{canAccessAll:!1,allowedPages:["/consultant/*","/user/profile","/user/subscription"],allowedRoles:[E.LEGAL_CONSULTANT]},[E.INVESTIGATOR]:{canAccessAll:!1,allowedPages:["/investigator/*","/user/profile","/user/subscription"],allowedRoles:[E.INVESTIGATOR]},[E.EXPERT_WITNESS]:{canAccessAll:!1,allowedPages:["/expert/*","/user/profile","/user/subscription"],allowedRoles:[E.EXPERT_WITNESS]},[E.NOTARY]:{canAccessAll:!1,allowedPages:["/notary/*","/user/profile","/user/subscription"],allowedRoles:[E.NOTARY]},[E.USER]:{canAccessAll:!1,allowedPages:["/user/*","/client/*","/documents","/messages"],allowedRoles:[E.USER]},[E.CLIENT]:{canAccessAll:!1,allowedPages:["/user/*","/client/*","/documents","/messages"],allowedRoles:[E.CLIENT]},[E.LAW_STUDENT]:{canAccessAll:!1,allowedPages:["/student/*","/user/profile","/user/subscription"],allowedRoles:[E.LAW_STUDENT]},[E.LEGAL_INTERN]:{canAccessAll:!1,allowedPages:["/student/*","/user/profile","/user/subscription"],allowedRoles:[E.LEGAL_INTERN]},[E.SECRETARY]:{canAccessAll:!1,allowedPages:["/support/*","/user/profile","/user/subscription"],allowedRoles:[E.SECRETARY]},[E.ASSISTANT]:{canAccessAll:!1,allowedPages:["/support/*","/user/profile","/user/subscription"],allowedRoles:[E.ASSISTANT]},[E.CLERK]:{canAccessAll:!1,allowedPages:["/support/*","/user/profile","/user/subscription"],allowedRoles:[E.CLERK]},[E.COURT_CLERK]:{canAccessAll:!1,allowedPages:["/support/*","/user/profile","/user/subscription"],allowedRoles:[E.COURT_CLERK]},[E.PARALEGAL]:{canAccessAll:!1,allowedPages:["/support/*","/user/profile","/user/subscription"],allowedRoles:[E.PARALEGAL]}};function T(e,s){let l=R[e];return!!l&&(!!l.canAccessAll||l.allowedPages.some(e=>{if("*"===e)return!0;if(e.endsWith("/*")){let l=e.slice(0,-2);return s.startsWith(l)}return s===e}))}function d(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",{data:l,status:r}=(0,n.useSession)(),a=(0,c.useRouter)();return(0,i.useEffect)(()=>{if("loading"===r)return;if(!l||!l.user)return void a.push("/auth/login");let o=l.user.role;e.includes(o)||a.push(s)},[l,r,a,e,s]),{session:l,status:r,isAuthorized:(null==l?void 0:l.user)&&e.includes(l.user.role)}}function N(e){if(!e||!e.user)return!1;let s=e.user.role;return"SUPERADMIN"===s||"ADMIN"===s}function S(e){if(!e||!e.user)return!1;let s=e.user.role;return"LAWYER"===s||"ADMIN"===s||"SUPERADMIN"===s}function L(e){switch(e){case E.SUPERADMIN:case"SUPERADMIN":case E.ADMIN:return"/admin/dashboard";case E.LAWYER:return"/lawyer/dashboard";case E.JURIST:return"/jurist/dashboard";case E.JUDGE:return"/judge/dashboard";case E.MEDIATOR:return"/mediator/dashboard";case E.LEGAL_CONSULTANT:return"/consultant/dashboard";case E.INVESTIGATOR:return"/investigator/dashboard";case E.EXPERT_WITNESS:return"/expert/dashboard";case E.NOTARY:return"/notary/dashboard";case E.SECRETARY:case E.ASSISTANT:case E.CLERK:case E.COURT_CLERK:case E.PARALEGAL:return"/support/dashboard";case E.LAW_STUDENT:case E.LEGAL_INTERN:return"/student/dashboard";case E.CLIENT:case E.USER:default:return"/client/dashboard"}}function I(e){return!!e&&!!e.user&&"SUPERADMIN"===e.user.role}function p(e){if(!e||!e.user)return!1;let s=e.user.role;return"SUPERADMIN"===s||"ADMIN"===s}}}]);

CasperSecurity Mini