![]() 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.quebec/public_html/_next/static/chunks/ |
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1794],{52547:(e,a,r)=>{r.d(a,{J4:()=>t});let t={fr:{title:"Inscription avocat v\xe9rifi\xe9 - avocat.quebec",description:"Rejoignez avocat.quebec en tant qu'avocat v\xe9rifi\xe9 du Qu\xe9bec",header:{title:"Inscription avocat v\xe9rifi\xe9",subtitle:"Rejoignez le r\xe9seau juridique principal du Qu\xe9bec avec v\xe9rification Barreau"},steps:{barreau:"V\xe9rification Barreau du Qu\xe9bec",barreauDesc:"V\xe9rification de votre adh\xe9sion au Barreau du Qu\xe9bec",profile:"Cr\xe9ation de profil",profileDesc:"Cr\xe9ation de votre profil d'avocat v\xe9rifi\xe9",firm:"Association de cabinet",firmDesc:"Configuration de votre cabinet ou association \xe0 un cabinet existant"},form:{barNumber:"Num\xe9ro de Barreau *",barNumberPlaceholder:"ex: 2016-ADW-001",fullName:"Nom complet *",fullNamePlaceholder:"ex: Justin Wee",email:"Adresse email *",emailPlaceholder:"ex: justin.wee@adwavocats.ca",address:"Adresse de pratique *",addressPlaceholder:"ex: Montr\xe9al, Qu\xe9bec",phone:"Num\xe9ro de t\xe9l\xe9phone *",phonePlaceholder:"ex: 514-555-0101",practiceArea:"Domaine de pratique principal *",practiceAreaPlaceholder:"S\xe9lectionnez un domaine",specializations:"Sp\xe9cialisations juridiques",regions:"R\xe9gions de pratique",verifyButton:"V\xe9rifier avec le Barreau",verifying:"V\xe9rification en cours..."},verification:{title:"V\xe9rification avec le Barreau du Qu\xe9bec",subtitle:"Veuillez patienter pendant que nous v\xe9rifions vos identifiants...",success:{title:"V\xe9rification r\xe9ussie !",welcome:"Bienvenue sur avocat.quebec,",nextSteps:"Prochaines \xe9tapes :",dashboard:"Aller au tableau de bord",completeProfile:"Compl\xe9ter le profil"},error:{title:"\xc9chec de la v\xe9rification",tryAgain:"R\xe9essayer"}},footer:{alreadyAccount:"Vous avez d\xe9j\xe0 un compte ?",signIn:"Se connecter"},languageSwitch:"EN",benefits:{title:"Avantages d'\xeatre un avocat v\xe9rifi\xe9",items:["Profil v\xe9rifi\xe9 avec badge officiel","Acc\xe8s prioritaire aux clients","Outils de collaboration avanc\xe9s","Support clientiel d\xe9di\xe9","Formation continue exclusive"]}},en:{title:"Verified Lawyer Registration - avocat.quebec",description:"Join avocat.quebec as a verified Qu\xe9bec lawyer",header:{title:"Verified Lawyer Registration",subtitle:"Join Qu\xe9bec's premier legal network with Barreau verification"},steps:{barreau:"Barreau du Qu\xe9bec Verification",barreauDesc:"Verifying your membership with the Barreau du Qu\xe9bec",profile:"Profile Creation",profileDesc:"Creating your verified lawyer profile",firm:"Firm Association",firmDesc:"Setting up your law firm or joining existing firm"},form:{barNumber:"Bar Number *",barNumberPlaceholder:"e.g., 2016-ADW-001",fullName:"Full Name *",fullNamePlaceholder:"e.g., Justin Wee",email:"Email Address *",emailPlaceholder:"e.g., justin.wee@adwavocats.ca",address:"Practice Address *",addressPlaceholder:"e.g., Montr\xe9al, Qu\xe9bec",phone:"Phone Number *",phonePlaceholder:"e.g., 514-555-0101",practiceArea:"Primary Practice Area *",practiceAreaPlaceholder:"Select a practice area",specializations:"Legal Specializations",regions:"Practice Regions",verifyButton:"Verify with Barreau",verifying:"Verifying..."},verification:{title:"Verifying with Barreau du Qu\xe9bec",subtitle:"Please wait while we verify your credentials...",success:{title:"Verification Successful!",welcome:"Welcome to avocat.quebec,",nextSteps:"Next Steps:",dashboard:"Go to Dashboard",completeProfile:"Complete Profile"},error:{title:"Verification Failed",tryAgain:"Try Again"}},footer:{alreadyAccount:"Already have an account?",signIn:"Sign in"},languageSwitch:"FR",benefits:{title:"Benefits of being a verified lawyer",items:["Verified profile with official badge","Priority access to clients","Advanced collaboration tools","Dedicated client support","Exclusive continuing education"]}}}},53864:(e,a,r)=>{r.d(a,{A:()=>P});var t=r(37876),i=r(14232),s=r(67421),l=r(7446),n=r(498),o=r(86739),c=r(47297),d=r(769),m=r(65390),u=r(72671),x=r(12347),h=r(99652),f=r(20588),p=r(78572),g=r(70672),b=r(48230),y=r.n(b),v=r(10553),j=r(39822),N=r(30488),w=r(98371),k=r(2735);function A(e){let{email:a,name:r,language:s,onClose:l}=e,[n,o]=(0,i.useState)(null),[c,d]=(0,i.useState)(!1),[m,u]=(0,i.useState)(""),[x,h]=(0,i.useState)(""),f=async()=>{if(!n)return void h("Veuillez s\xe9lectionner un document.");d(!0),h(""),u("");let e=new FormData;e.append("file",n),e.append("email",a),e.append("name",r),(await fetch("/api/lawyer/manual-verification",{method:"POST",body:e})).ok?(u("Document envoy\xe9 avec succ\xe8s. Un administrateur va v\xe9rifier votre dossier."),o(null)):h("Erreur lors de l’envoi du document. Veuillez r\xe9essayer."),d(!1)};return(0,t.jsxs)(j.a,{mt:6,p:4,borderWidth:1,borderRadius:"md",bg:"gray.50",children:[(0,t.jsx)(N.E,{fontWeight:"bold",mb:2,children:"V\xe9rification manuelle"}),(0,t.jsx)(N.E,{mb:2,children:"T\xe9l\xe9versez un document officiel prouvant votre appartenance au Barreau (PDF, image, etc.)."}),(0,t.jsx)(w.p,{type:"file",accept:".pdf,.jpg,.jpeg,.png",onChange:e=>{var a;o((null==(a=e.target.files)?void 0:a[0])||null),h(""),u("")},mb:2}),(0,t.jsx)(k.$,{onClick:f,colorScheme:"blue",disabled:!n||c,children:c?"Envoi en cours...":"Envoyer le document"}),m&&(0,t.jsx)(N.E,{color:"green.600",mt:2,children:m}),x&&(0,t.jsx)(N.E,{color:"red.600",mt:2,children:x}),l&&(0,t.jsx)(k.$,{onClick:l,mt:2,colorScheme:"gray",children:"Fermer"})]})}let P=e=>{var a;let{language:r,onLanguageToggle:b,content:j}=e,[N,w]=(0,i.useState)(1),[k,P]=(0,i.useState)([{id:"barreau-verification",title:j.steps.barreau,description:j.steps.barreauDesc,status:"pending"},{id:"profile-creation",title:j.steps.profile,description:j.steps.profileDesc,status:"pending"},{id:"firm-setup",title:j.steps.firm,description:j.steps.firmDesc,status:"pending"}]),[S,V]=(0,i.useState)({barNumber:"",name:"",email:"",address:"",phone:"",practiceArea:"",specializations:[],regions:[]}),[C,z]=(0,i.useState)({}),[B,D]=(0,i.useState)(null),[q,E]=(0,i.useState)(!1),[I,Q]=(0,i.useState)(null),[R,F]=(0,i.useState)(!1),[T,L]=(0,i.useState)(!1),[J,W]=(0,i.useState)(""),[O,U]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=sessionStorage.getItem("lawyerSignupData");if(e){let a=JSON.parse(e);D(a),V(e=>({...e,name:"".concat(a.firstName," ").concat(a.lastName),email:a.email}))}},[]);let _=["Civil","Commercial","Criminal","Family","Immigration","Administrative","Constitutional","International","Labour","Real Estate","Intellectual Property","Tax","Bankruptcy","Environmental","Health","Education","Technology"],$=(e,a)=>{switch(e){case"name":if(!a||a.trim().length<2)return"fr"===r?"Le nom doit contenir au moins 2 caract\xe8res":"Name must be at least 2 characters";if(!/^[a-zA-ZÀ-ÿ\s]+$/.test(a))return"fr"===r?"Le nom ne peut contenir que des lettres":"Name can only contain letters";break;case"email":if(!a||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a))return"fr"===r?"Adresse email invalide":"Invalid email address";break;case"phone":if(!a||a.replace(/[^\d]/g,"").length<10)return"fr"===r?"Num\xe9ro de t\xe9l\xe9phone invalide":"Invalid phone number";break;case"practiceArea":if(!a)return"fr"===r?"Veuillez s\xe9lectionner un domaine de pratique":"Please select a practice area";break;case"address":if(!a||a.trim().length<5)return"fr"===r?"Adresse de pratique requise":"Practice address required"}return""},G=()=>{let e={};return["name","email","phone","practiceArea","address"].forEach(a=>{let r=$(a,S[a]);r&&(e[a]=r)}),z(e),0===Object.keys(e).length},H=(e,a)=>{V(r=>({...r,[e]:a})),C[e]&&z(a=>({...a,[e]:""}))},M=e=>{V(a=>({...a,specializations:a.specializations.includes(e)?a.specializations.filter(a=>a!==e):[...a.specializations,e]}))},Z=e=>{V(a=>({...a,regions:a.regions.includes(e)?a.regions.filter(a=>a!==e):[...a.regions,e]}))},K=e=>e.replace(/[^\d]/g,""),X=async()=>{if(!G()){W("fr"===r?"Veuillez corriger les erreurs dans le formulaire":"Please correct the errors in the form"),L(!0);return}E(!0),w(2),L(!1),P(e=>e.map(e=>"barreau-verification"===e.id?{...e,status:"loading"}:e));try{let e={name:S.name.trim(),phone:K(S.phone),practiceArea:S.practiceArea},a=await fetch("/api/lawyer/barreau-verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!a.ok)throw Error("HTTP error! status: ".concat(a.status));let t=await a.json();if(Q(t),t.found&&t.matchedProfiles&&t.matchedProfiles.length>0)P(e=>e.map(e=>"barreau-verification"===e.id?{...e,status:"success"}:e)),L(!1),U(!0),B&&await Y(),setTimeout(()=>{w(3),P(e=>e.map(e=>"profile-creation"===e.id?{...e,status:"success"}:e))},2e3);else{P(e=>e.map(e=>"barreau-verification"===e.id?{...e,status:"error"}:e));let e="";t.allProfiles&&t.allProfiles.length>0?(e="fr"===r?"Avocat trouv\xe9 dans le r\xe9pertoire mais les informations ne correspondent pas. V\xe9rifiez votre num\xe9ro de t\xe9l\xe9phone et domaine de pratique.":"Lawyer found in directory but information does not match. Please verify your phone number and practice area.",U(!0)):e="fr"===r?"Aucun avocat correspondant trouv\xe9 dans le r\xe9pertoire du Barreau. V\xe9rifiez l'orthographe du nom ou contactez le Barreau du Qu\xe9bec.":"No matching lawyer found in the Barreau directory. Check the spelling of your name or contact the Barreau du Qu\xe9bec.",W(e),L(!0)}}catch(e){console.error("Verification error:",e),P(e=>e.map(e=>"barreau-verification"===e.id?{...e,status:"error"}:e)),W("fr"===r?"Erreur lors de la v\xe9rification. Veuillez r\xe9essayer ou utiliser la v\xe9rification manuelle.":"Verification error. Please try again or use manual verification."),L(!0)}finally{E(!1)}},Y=async()=>{if(B)try{let e=await (0,v.signIn)("credentials",{email:B.email,password:B.password,redirect:!1});(null==e?void 0:e.ok)&&sessionStorage.removeItem("lawyerSignupData")}catch(e){console.error("Registration completion error:",e)}},ee=e=>{switch(e){case"loading":return(0,t.jsx)(l.A,{className:"h-6 w-6 animate-spin text-blue-500"});case"success":return(0,t.jsx)(n.A,{className:"h-6 w-6 text-green-500"});case"error":return(0,t.jsx)(o.A,{className:"h-6 w-6 text-red-500"});default:return(0,t.jsx)("div",{className:"h-6 w-6 rounded-full border-2 border-gray-300"})}},ea=function(e,a,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"text",s=arguments.length>4?arguments[4]:void 0,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:[a," ",l&&"*"]}),(0,t.jsxs)("div",{className:"relative",children:[s,(0,t.jsx)("input",{type:i,value:S[e],onChange:a=>H(e,a.target.value),placeholder:r,className:"w-full pl-10 pr-3 py-2 border rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:text-white ".concat(C[e]?"border-red-500 focus:ring-red-500":"border-gray-300 dark:border-gray-600")})]}),C[e]&&(0,t.jsxs)("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400 flex items-center",children:[(0,t.jsx)(o.A,{className:"h-4 w-4 mr-1"}),C[e]]})]})};return(0,t.jsxs)("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[(0,t.jsxs)(s.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-8",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center mb-4",children:[(0,t.jsx)(c.A,{className:"h-12 w-12 text-blue-600 mr-3"}),(0,t.jsx)("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:"avocat.quebec"})]}),(0,t.jsx)("h2",{className:"text-2xl font-semibold text-gray-800 dark:text-gray-200 mb-2",children:j.header.title}),(0,t.jsx)("p",{className:"text-gray-600 dark:text-gray-400",children:j.header.subtitle})]}),(0,t.jsx)(s.P.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.1},className:"flex justify-end mb-6",children:(0,t.jsxs)("button",{onClick:b,className:"flex items-center space-x-2 bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg px-3 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors",children:[(0,t.jsx)(d.A,{className:"h-4 w-4"}),(0,t.jsx)("span",{children:j.languageSwitch})]})}),1===N&&(0,t.jsx)(s.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"mb-8",children:(0,t.jsx)("div",{className:"flex items-center justify-between",children:k.map((e,a)=>(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[ee(e.status),(0,t.jsxs)("div",{className:"ml-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:e.title}),(0,t.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:e.description})]})]}),a<k.length-1&&(0,t.jsx)("div",{className:"mx-4 h-px w-16 bg-gray-300 dark:bg-gray-600"})]},e.id))})}),1===N&&(0,t.jsxs)(s.P.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},className:"bg-white dark:bg-gray-800 rounded-xl shadow-lg p-6",children:[(0,t.jsx)("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-6",children:"fr"===r?"Informations de l'avocat":"Lawyer Information"}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[ea("barNumber",j.form.barNumber,j.form.barNumberPlaceholder,"text",(0,t.jsx)(m.A,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400"})),ea("name",j.form.fullName,j.form.fullNamePlaceholder,"text",(0,t.jsx)(u.A,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400"}),!0),ea("email",j.form.email,j.form.emailPlaceholder,"email",(0,t.jsx)(x.A,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400"}),!0),ea("address",j.form.address,j.form.addressPlaceholder,"text",(0,t.jsx)(h.A,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400"}),!0),ea("phone",j.form.phone,j.form.phonePlaceholder,"tel",(0,t.jsx)(f.A,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400"}),!0),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:[j.form.practiceArea," *"]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(m.A,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400"}),(0,t.jsxs)("select",{value:S.practiceArea,onChange:e=>H("practiceArea",e.target.value),className:"w-full pl-10 pr-3 py-2 border rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:text-white ".concat(C.practiceArea?"border-red-500 focus:ring-red-500":"border-gray-300 dark:border-gray-600"),children:[(0,t.jsx)("option",{value:"",children:j.form.practiceAreaPlaceholder}),_.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]})]}),C.practiceArea&&(0,t.jsxs)("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400 flex items-center",children:[(0,t.jsx)(o.A,{className:"h-4 w-4 mr-1"}),C.practiceArea]})]}),(0,t.jsxs)("div",{className:"md:col-span-2",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:j.form.specializations}),(0,t.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2 max-h-48 overflow-y-auto p-3 border border-gray-300 dark:border-gray-600 rounded-md",children:_.map(e=>(0,t.jsxs)("label",{className:"flex items-center p-2 hover:bg-gray-50 dark:hover:bg-gray-700 rounded",children:[(0,t.jsx)("input",{type:"checkbox",checked:S.specializations.includes(e),onChange:()=>M(e),className:"mr-2"}),(0,t.jsx)("span",{className:"text-sm text-gray-700 dark:text-gray-300",children:e})]},e))})]}),(0,t.jsxs)("div",{className:"md:col-span-2",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:j.form.regions}),(0,t.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2 max-h-48 overflow-y-auto p-3 border border-gray-300 dark:border-gray-600 rounded-md",children:["Montr\xe9al","Qu\xe9bec","Laval","Longueuil","Gatineau","Sherbrooke","Saguenay","Trois-Rivi\xe8res","Saint-Jean-sur-Richelieu","Drummondville","Saint-J\xe9r\xf4me","Granby","Saint-Hyacinthe"].map(e=>(0,t.jsxs)("label",{className:"flex items-center p-2 hover:bg-gray-50 dark:hover:bg-gray-700 rounded",children:[(0,t.jsx)("input",{type:"checkbox",checked:S.regions.includes(e),onChange:()=>Z(e),className:"mr-2"}),(0,t.jsx)("span",{className:"text-sm text-gray-700 dark:text-gray-300",children:e})]},e))})]})]}),(0,t.jsx)("div",{className:"mt-6 flex justify-end",children:(0,t.jsx)("button",{onClick:X,disabled:q,className:"bg-blue-600 hover:bg-blue-700 disabled:bg-gray-400 text-white px-6 py-2 rounded-md font-medium transition-colors flex items-center",children:q?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.A,{className:"h-4 w-4 animate-spin mr-2"}),j.form.verifying]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.A,{className:"h-4 w-4 mr-2"}),j.form.verifyButton]})})})]}),2===N&&(0,t.jsx)(s.P.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},className:"bg-white dark:bg-gray-800 rounded-xl shadow-lg p-6",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)(l.A,{className:"h-16 w-16 animate-spin text-blue-500 mx-auto mb-4"}),(0,t.jsx)("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:j.verification.title}),(0,t.jsx)("p",{className:"text-gray-600 dark:text-gray-400",children:j.verification.subtitle})]})}),3===N&&I&&(0,t.jsxs)(s.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white dark:bg-gray-800 rounded-xl shadow-lg p-6",children:[I.found&&I.matchedProfiles&&I.matchedProfiles.length>0?(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)(n.A,{className:"h-16 w-16 text-green-500 mx-auto mb-4"}),(0,t.jsx)("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:j.verification.success.title}),(0,t.jsxs)("p",{className:"text-gray-600 dark:text-gray-400 mb-6",children:[j.verification.success.welcome," ",S.name,"!"]}),(0,t.jsxs)("div",{className:"bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg p-4 mb-6",children:[(0,t.jsx)("h4",{className:"font-medium text-green-800 dark:text-green-200 mb-2",children:j.verification.success.nextSteps}),(0,t.jsx)("ul",{className:"text-sm text-green-700 dark:text-green-300 space-y-1",children:null==(a=I.nextSteps)?void 0:a.map((e,a)=>(0,t.jsxs)("li",{className:"flex items-center",children:[(0,t.jsx)(n.A,{className:"h-4 w-4 mr-2"}),e]},a))})]}),(0,t.jsxs)("div",{className:"flex justify-center space-x-4",children:[(0,t.jsx)(y(),{href:"/lawyer/dashboard",className:"bg-blue-600 hover:bg-blue-700 text-white px-6 py-2 rounded-md font-medium transition-colors",children:j.verification.success.dashboard}),(0,t.jsx)(y(),{href:"/lawyer/profile-setup",className:"bg-green-600 hover:bg-green-700 text-white px-6 py-2 rounded-md font-medium transition-colors",children:j.verification.success.completeProfile})]})]}):(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)(o.A,{className:"h-16 w-16 text-red-500 mx-auto mb-4"}),(0,t.jsx)("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:j.verification.error.title}),(0,t.jsx)("p",{className:"text-gray-600 dark:text-gray-400 mb-6",children:I.error||J}),I.suggestions&&(0,t.jsxs)("div",{className:"bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg p-4 mb-6",children:[(0,t.jsx)("h4",{className:"font-medium text-red-800 dark:text-red-200 mb-2",children:"fr"===r?"Suggestions :":"Suggestions:"}),(0,t.jsx)("ul",{className:"text-sm text-red-700 dark:text-red-300 space-y-1",children:I.suggestions.map((e,a)=>(0,t.jsxs)("li",{className:"flex items-center",children:[(0,t.jsx)(o.A,{className:"h-4 w-4 mr-2"}),e]},a))})]}),(0,t.jsx)("button",{onClick:()=>w(1),className:"bg-blue-600 hover:bg-blue-700 text-white px-6 py-2 rounded-md font-medium transition-colors",children:j.verification.error.tryAgain})]}),T&&(0,t.jsx)("div",{className:"mt-6 p-4 bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg",children:(0,t.jsxs)("div",{className:"flex items-start",children:[(0,t.jsx)(p.A,{className:"h-5 w-5 text-yellow-600 dark:text-yellow-400 mr-2 mt-0.5 flex-shrink-0"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("p",{className:"text-yellow-800 dark:text-yellow-200",children:J}),(0,t.jsx)("button",{onClick:()=>F(!0),className:"mt-3 bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md text-sm font-medium transition-colors",children:"fr"===r?"Utiliser la v\xe9rification manuelle":"Use manual verification"})]}),(0,t.jsx)("button",{onClick:()=>L(!1),className:"ml-2 text-yellow-600 dark:text-yellow-400 hover:text-yellow-800 dark:hover:text-yellow-200",children:(0,t.jsx)(g.A,{className:"h-4 w-4"})})]})}),R&&(0,t.jsx)(A,{email:S.email,name:S.name,language:r,onClose:()=>F(!1)}),O&&I&&(I.matchedProfiles||I.allProfiles)&&(0,t.jsxs)("div",{className:"mt-6 p-4 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg",children:[(0,t.jsxs)("h4",{className:"font-medium text-blue-800 dark:text-blue-200 mb-3 flex items-center",children:[(0,t.jsx)(p.A,{className:"h-5 w-5 mr-2"}),"fr"===r?"R\xe9sultats de la recherche Barreau :":"Barreau search results:"]}),(0,t.jsx)("div",{className:"space-y-3",children:(I.matchedProfiles||I.allProfiles||[]).map((e,a)=>(0,t.jsx)("div",{className:"bg-white dark:bg-gray-700 p-3 rounded border",children:(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h5",{className:"font-medium text-gray-900 dark:text-white",children:e.name}),e.employer&&(0,t.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-300",children:e.employer}),e.address&&(0,t.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-300",children:e.address}),e.phone&&(0,t.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-300",children:e.phone}),e.email&&(0,t.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-300",children:e.email}),e.practiceAreas&&e.practiceAreas.length>0&&(0,t.jsxs)("p",{className:"text-sm text-gray-600 dark:text-gray-300",children:[(0,t.jsx)("span",{className:"font-medium",children:"fr"===r?"Domaines :":"Practice areas:"})," ",e.practiceAreas.join(", ")]})]}),e.profileUrl&&(0,t.jsx)("a",{href:e.profileUrl,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-700 text-sm font-medium ml-4",children:"fr"===r?"Voir le profil":"View profile"})]})},a))})]})]}),(0,t.jsx)(s.P.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.3},className:"text-center mt-8",children:(0,t.jsxs)("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:[j.footer.alreadyAccount," ",(0,t.jsx)(y(),{href:"/auth/login",className:"text-blue-600 hover:text-blue-700",children:j.footer.signIn})]})})]})}}}]);