![]() 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([[2031],{498:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(11713).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"}]])},769:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(11713).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},3609:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(11713).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},4622:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(11713).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},20588:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(11713).A)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]])},22211:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(11713).A)("building-2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]])},36066:(e,t,a)=>{a.d(t,{A:()=>k});var r=a(37876),s=a(14232),l=a(10553),i=a(89099),c=a(23042),d=a(67421),o=a(41378),n=a(25037),x=a(33654),h=a(67396),g=a(4622),m=a(47297),p=a(26124),u=a(3609),y=a(498),b=a(65390),f=a(20588),j=a(12347),v=a(99652),N=a(97685);let k=e=>{let{lawyer:t,businessProfile:a,availableCases:k=[],className:w=""}=e,{data:A}=(0,l.useSession)(),C=(0,i.useRouter)(),[M,R]=(0,s.useState)(!1),[P,S]=(0,s.useState)(""),[z,L]=(0,s.useState)(!1),q=[{id:"case-representation",title:"Case Representation",description:"Hire for a specific legal case",icon:o.A,color:"bg-blue-500",features:["Full case representation","Court appearances","Document preparation","Client communication","Case strategy development"],price:t.hourlyRate?"$".concat(t.hourlyRate,"/hour"):"Contact for pricing",duration:"Case duration",popular:!0},{id:"consultation",title:"Legal Consultation",description:"One-time legal advice session",icon:n.A,color:"bg-green-500",features:["1-hour consultation","Legal advice","Case evaluation","Strategy recommendations","Follow-up summary"],price:t.hourlyRate?"$".concat(t.hourlyRate,"/hour"):"Contact for pricing",duration:"1 hour",popular:!1},{id:"retainer",title:"Monthly Retainer",description:"Ongoing legal services",icon:x.A,color:"bg-purple-500",features:["Monthly legal services","Priority access","Regular check-ins","Document review","Legal strategy support"],price:t.hourlyRate?"$".concat(Math.round(.8*t.hourlyRate*20),"/month"):"Contact for pricing",duration:"Monthly",popular:!1},{id:"case-offer",title:"Make Case Offer",description:"Propose collaboration on a case",icon:h.A,color:"bg-orange-500",features:["Case collaboration","Shared responsibilities","Split fees","Joint strategy","Team approach"],price:"Negotiable",duration:"Case duration",popular:!1}],E=async e=>{if(!A){N.Ay.error("Please log in to hire a lawyer"),C.push("/auth/login");return}L(!0),S(e);try{switch(e){case"case-representation":k.length>0?C.push("/hire/case-selection?lawyerId=".concat(t.id)):C.push("/hire/new-case?lawyerId=".concat(t.id));break;case"consultation":C.push("/hire/consultation?lawyerId=".concat(t.id));break;case"retainer":C.push("/hire/retainer?lawyerId=".concat(t.id));break;case"case-offer":k.length>0?C.push("/hire/case-offer?lawyerId=".concat(t.id)):N.Ay.error("No cases available for collaboration");break;default:N.Ay.error("Invalid hiring option")}}catch(e){console.error("Error processing hire request:",e),N.Ay.error("Error processing request")}finally{L(!1)}},I=(e=>e>=50?{color:"bg-purple-500",text:"Legendary"}:e>=30?{color:"bg-red-500",text:"Master"}:e>=20?{color:"bg-orange-500",text:"Expert"}:e>=10?{color:"bg-blue-500",text:"Advanced"}:{color:"bg-gray-500",text:"Beginner"})(t.level);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("button",{onClick:()=>R(!0),className:"inline-flex items-center px-6 py-3 bg-gradient-to-r from-blue-600 to-purple-600 text-white font-semibold rounded-lg hover:from-blue-700 hover:to-purple-700 transition-all duration-200 shadow-lg hover:shadow-xl transform hover:-translate-y-0.5 ".concat(w),children:[(0,r.jsx)(o.A,{className:"h-5 w-5 mr-2"}),"Hire ",t.name.split(" ")[0],(0,r.jsx)(g.A,{className:"h-4 w-4 ml-2"})]}),(0,r.jsx)(c.N,{children:M&&(0,r.jsx)(d.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4",onClick:()=>R(!1),children:(0,r.jsxs)(d.P.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.9,opacity:0},className:"bg-white dark:bg-gray-800 rounded-xl shadow-2xl max-w-4xl w-full max-h-[90vh] overflow-y-auto",onClick:e=>e.stopPropagation(),children:[(0,r.jsxs)("div",{className:"p-6 border-b border-gray-200 dark:border-gray-700",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center space-x-4",children:[t.profilePicture?(0,r.jsx)("img",{src:t.profilePicture,alt:t.name,className:"w-16 h-16 rounded-full object-cover"}):(0,r.jsx)("div",{className:"w-16 h-16 bg-gradient-to-br from-blue-400 to-purple-500 rounded-full flex items-center justify-center",children:(0,r.jsx)(h.A,{className:"h-8 w-8 text-white"})}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("h2",{className:"text-2xl font-bold text-gray-900 dark:text-white flex items-center",children:[t.name,t.isVerified&&(0,r.jsx)(m.A,{className:"h-6 w-6 ml-2 text-blue-600"})]}),(0,r.jsx)("p",{className:"text-gray-600 dark:text-gray-400",children:t.title}),(0,r.jsxs)("div",{className:"flex items-center space-x-2 mt-1",children:[(0,r.jsxs)("span",{className:"px-2 py-1 text-xs text-white rounded-full ".concat(I.color),children:[I.text," (Lv.",t.level,")"]}),(0,r.jsxs)("div",{className:"flex items-center text-yellow-500",children:[(0,r.jsx)(p.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"text-sm ml-1",children:t.averageRating?t.averageRating.toFixed(1):"N/A"})]})]})]})]}),(0,r.jsx)("button",{onClick:()=>R(!1),className:"text-gray-400 hover:text-gray-600 dark:hover:text-gray-300",children:(0,r.jsx)(u.A,{className:"h-6 w-6"})})]}),(0,r.jsxs)("div",{className:"grid grid-cols-4 gap-4 mt-6",children:[(0,r.jsxs)("div",{className:"text-center p-3 bg-blue-50 dark:bg-blue-900/20 rounded-lg",children:[(0,r.jsx)("div",{className:"text-lg font-bold text-blue-600",children:t.totalCases}),(0,r.jsx)("div",{className:"text-xs text-gray-600 dark:text-gray-400",children:"Total Cases"})]}),(0,r.jsxs)("div",{className:"text-center p-3 bg-green-50 dark:bg-green-900/20 rounded-lg",children:[(0,r.jsx)("div",{className:"text-lg font-bold text-green-600",children:"number"==typeof t.winRate?"".concat(t.winRate.toFixed(1),"%"):"N/A"}),(0,r.jsx)("div",{className:"text-xs text-gray-600 dark:text-gray-400",children:"Win Rate"})]}),(0,r.jsxs)("div",{className:"text-center p-3 bg-purple-50 dark:bg-purple-900/20 rounded-lg",children:[(0,r.jsx)("div",{className:"text-lg font-bold text-purple-600",children:t.yearsOfExperience||0}),(0,r.jsx)("div",{className:"text-xs text-gray-600 dark:text-gray-400",children:"Years Exp."})]}),(0,r.jsxs)("div",{className:"text-center p-3 bg-yellow-50 dark:bg-yellow-900/20 rounded-lg",children:[(0,r.jsx)("div",{className:"text-lg font-bold text-yellow-600",children:t.totalBadges}),(0,r.jsx)("div",{className:"text-xs text-gray-600 dark:text-gray-400",children:"Badges"})]})]})]}),(0,r.jsxs)("div",{className:"p-6",children:[(0,r.jsx)("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-6",children:"Choose Your Hiring Option"}),(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:q.map(e=>(0,r.jsxs)(d.P.div,{whileHover:{scale:1.02},className:"relative border-2 rounded-xl p-6 cursor-pointer transition-all duration-200 ".concat(e.popular?"border-blue-500 bg-blue-50 dark:bg-blue-900/10":"border-gray-200 dark:border-gray-700 hover:border-blue-300"),onClick:()=>E(e.id),children:[e.popular&&(0,r.jsx)("div",{className:"absolute -top-3 left-1/2 transform -translate-x-1/2",children:(0,r.jsx)("span",{className:"bg-blue-500 text-white px-3 py-1 rounded-full text-xs font-semibold",children:"Most Popular"})}),(0,r.jsxs)("div",{className:"flex items-start space-x-4",children:[(0,r.jsx)("div",{className:"p-3 rounded-lg ".concat(e.color," text-white"),children:(0,r.jsx)(e.icon,{className:"h-6 w-6"})}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("h4",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:e.title}),(0,r.jsx)("p",{className:"text-gray-600 dark:text-gray-400 text-sm mb-4",children:e.description}),(0,r.jsx)("div",{className:"space-y-2 mb-4",children:e.features.map((e,t)=>(0,r.jsxs)("div",{className:"flex items-center text-sm text-gray-600 dark:text-gray-400",children:[(0,r.jsx)(y.A,{className:"h-4 w-4 text-green-500 mr-2 flex-shrink-0"}),e]},t))}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-lg font-bold text-gray-900 dark:text-white",children:e.price}),(0,r.jsx)("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:e.duration})]}),(0,r.jsx)(g.A,{className:"h-5 w-5 text-blue-600"})]})]})]})]},e.id))}),k.length>0&&(0,r.jsxs)("div",{className:"mt-8 p-4 bg-gray-50 dark:bg-gray-700 rounded-lg",children:[(0,r.jsxs)("h4",{className:"font-semibold text-gray-900 dark:text-white mb-3 flex items-center",children:[(0,r.jsx)(b.A,{className:"h-5 w-5 mr-2"}),"Available Cases for Collaboration"]}),(0,r.jsx)("div",{className:"space-y-2",children:k.slice(0,3).map(e=>(0,r.jsxs)("div",{className:"flex items-center justify-between p-3 bg-white dark:bg-gray-600 rounded-lg",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"font-medium text-gray-900 dark:text-white",children:e.title}),(0,r.jsxs)("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:[e.caseType," • ",e.priority," priority"]})]}),(0,r.jsxs)("div",{className:"text-right",children:[(0,r.jsx)("div",{className:"text-sm font-medium text-gray-900 dark:text-white",children:e.budget?"$".concat(e.budget.toLocaleString()):"Contact for budget"}),(0,r.jsx)("div",{className:"text-xs text-gray-600 dark:text-gray-400",children:e.status})]})]},e.id))})]}),(0,r.jsxs)("div",{className:"mt-6 p-4 bg-blue-50 dark:bg-blue-900/10 rounded-lg",children:[(0,r.jsx)("h4",{className:"font-semibold text-gray-900 dark:text-white mb-3",children:"Need to discuss first?"}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,r.jsxs)("div",{className:"flex items-center text-gray-600 dark:text-gray-400",children:[(0,r.jsx)(f.A,{className:"h-4 w-4 mr-2"}),(0,r.jsx)("span",{children:"Call for consultation"})]}),(0,r.jsxs)("div",{className:"flex items-center text-gray-600 dark:text-gray-400",children:[(0,r.jsx)(j.A,{className:"h-4 w-4 mr-2"}),(0,r.jsx)("span",{children:"Send message"})]}),(0,r.jsxs)("div",{className:"flex items-center text-gray-600 dark:text-gray-400",children:[(0,r.jsx)(v.A,{className:"h-4 w-4 mr-2"}),(0,r.jsx)("span",{children:t.officeLocation||"Office location"})]})]})]})]})]})})})]})}},99652:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(11713).A)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])}}]);