![]() 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/server/pages/business/ |
"use strict";(()=>{var e={};e.id=4220,e.ids=[636,4220],e.modules={4722:e=>{e.exports=require("next-auth/react")},7085:e=>{e.exports=require("styled-jsx/style")},7670:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(72386).A)("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]])},8645:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{config:()=>u,default:()=>x,getServerSideProps:()=>h,getStaticPaths:()=>m,getStaticProps:()=>g,reportWebVitals:()=>p,routeModule:()=>j,unstable_getServerProps:()=>v,unstable_getServerSideProps:()=>w,unstable_getStaticParams:()=>f,unstable_getStaticPaths:()=>y,unstable_getStaticProps:()=>b});var s=a(63885),l=a(80237),i=a(81413),o=a(61779),n=a(32081),d=a(92843),c=e([n,d]);[n,d]=c.then?(await c)():c;let x=(0,i.M)(d,"default"),g=(0,i.M)(d,"getStaticProps"),m=(0,i.M)(d,"getStaticPaths"),h=(0,i.M)(d,"getServerSideProps"),u=(0,i.M)(d,"config"),p=(0,i.M)(d,"reportWebVitals"),b=(0,i.M)(d,"unstable_getStaticProps"),y=(0,i.M)(d,"unstable_getStaticPaths"),f=(0,i.M)(d,"unstable_getStaticParams"),v=(0,i.M)(d,"unstable_getServerProps"),w=(0,i.M)(d,"unstable_getServerSideProps"),j=new s.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/business/[id]",pathname:"/business/[id]",bundlePath:"",filename:""},components:{App:n.default,Document:o.default},userland:d});r()}catch(e){r(e)}})},8732:e=>{e.exports=require("react/jsx-runtime")},9733:e=>{e.exports=import("@chakra-ui/react")},14044:(e,t,a)=>{a.d(t,{y:()=>s});var r=a(82015);let s=()=>{let[e,t]=(0,r.useState)(!1),[a,s]=(0,r.useState)(null);(0,r.useEffect)(()=>{},[]);let l=(0,r.useCallback)(async e=>{t(!0),s(null);try{let t=`https://www.facebook.com/dialog/share?app_id=your_facebook_app_id_here&display=popup&href=${encodeURIComponent(e.url)}`+(Array.isArray(e.hashtags)&&e.hashtags[0]?`&hashtag=%23${e.hashtags[0]}`:"")+`&redirect_uri=${encodeURIComponent(window.location.href)}`;window.open(t,"_blank","width=600,height=400")}catch(e){s("Failed to share to Facebook"),console.error("Facebook share error:",e)}finally{t(!1)}},[]),i=(0,r.useCallback)(async e=>{t(!0),s(null);try{let t=`${e.title}
${e.description}`,a=Array.isArray(e.hashtags)?e.hashtags.join(","):"";window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent(t)}&url=${encodeURIComponent(e.url)}&hashtags=${encodeURIComponent(a)}`,"_blank","width=600,height=400")}catch(e){s("Failed to share to Twitter"),console.error("Twitter share error:",e)}finally{t(!1)}},[]),o=(0,r.useCallback)(async e=>{t(!0),s(null);try{window.open(`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e.url)}&title=${encodeURIComponent(e.title)}&summary=${encodeURIComponent(e.description)}`,"_blank","width=600,height=400")}catch(e){s("Failed to share to LinkedIn"),console.error("LinkedIn share error:",e)}finally{t(!1)}},[]);return{shareToFacebook:l,shareToTwitter:i,shareToLinkedIn:o,shareToWhatsApp:(0,r.useCallback)(async e=>{t(!0),s(null);try{let t=`${e.title}
${e.description}
${e.url}`;/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)?window.open(`whatsapp://send?text=${encodeURIComponent(t)}`):window.open(`https://wa.me/?text=${encodeURIComponent(t)}`,"_blank","width=600,height=400")}catch(e){s("Failed to share to WhatsApp"),console.error("WhatsApp share error:",e)}finally{t(!1)}},[]),copyToClipboard:(0,r.useCallback)(async e=>{t(!0),s(null);try{let t=`${e.title}
${e.description}
${e.url}`;if(navigator.clipboard)await navigator.clipboard.writeText(t);else{let e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}s(null)}catch(e){s("Failed to copy to clipboard"),console.error("Clipboard error:",e)}finally{t(!1)}},[]),isSharing:e,shareError:a}}},22326:e=>{e.exports=require("react-dom")},27206:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>y});var s=a(8732),l=a(82015),i=a(63220),o=a(42311),n=a(74824),d=a(51781),c=a(39461),x=a(97089),g=a(97684),m=a(71335),h=a(45057),u=a(14044),p=a(42893),b=e([i,p]);[i,p]=b.then?(await b)():b;let y=({url:e,title:t,description:a,image:r,hashtags:b=[],className:y="",variant:f="default"})=>{let[v,w]=(0,l.useState)(!1),[j,N]=(0,l.useState)(!1),{shareToFacebook:k,shareToTwitter:A,shareToLinkedIn:C,shareToWhatsApp:S,copyToClipboard:R,isSharing:$,shareError:P}=(0,u.y)(),I={url:e,title:t,description:a,image:r,hashtags:b},L=async e=>{try{switch(e){case"facebook":await k(I),p.default.success("Shared to Facebook!");break;case"twitter":await A(I),p.default.success("Shared to Twitter!");break;case"linkedin":await C(I),p.default.success("Shared to LinkedIn!");break;case"whatsapp":await S(I),p.default.success("Shared to WhatsApp!");break;case"copy":await R(I),N(!0),p.default.success("Link copied to clipboard!"),setTimeout(()=>N(!1),2e3)}}catch(t){p.default.error(`Failed to share to ${e}`),console.error(`Share error for ${e}:`,t)}w(!1)},_=[{platform:"facebook",label:"Facebook",icon:o.A,color:"text-blue-600",bgColor:"hover:bg-blue-50",action:()=>L("facebook")},{platform:"twitter",label:"Twitter",icon:n.A,color:"text-blue-400",bgColor:"hover:bg-blue-50",action:()=>L("twitter")},{platform:"linkedin",label:"LinkedIn",icon:d.A,color:"text-blue-700",bgColor:"hover:bg-blue-50",action:()=>L("linkedin")},{platform:"whatsapp",label:"WhatsApp",icon:c.A,color:"text-green-600",bgColor:"hover:bg-green-50",action:()=>L("whatsapp")},{platform:"copy",label:j?"Copied!":"Copy Link",icon:j?x.A:g.A,color:j?"text-green-600":"text-gray-600",bgColor:j?"bg-green-50":"hover:bg-gray-50",action:()=>L("copy")}];return(0,s.jsxs)("div",{className:`relative ${y}`,children:[(0,s.jsxs)("button",{onClick:()=>w(!v),className:(()=>{switch(f){case"minimal":return"p-2 text-gray-600 hover:text-gray-800 hover:bg-gray-100 rounded-full transition-colors";case"floating":return"fixed bottom-6 right-6 p-4 bg-blue-600 text-white rounded-full shadow-lg hover:bg-blue-700 transition-colors z-50";default:return"flex items-center gap-2 px-4 py-2 bg-white/20 hover:bg-white/30 text-white rounded-lg transition-colors"}})(),disabled:$,children:[$?(0,s.jsx)(m.A,{className:"h-4 w-4 animate-spin"}):(0,s.jsx)(h.A,{className:"h-4 w-4"}),"minimal"!==f&&"floating"!==f&&(0,s.jsx)("span",{children:"Share"})]}),(0,s.jsx)(i.AnimatePresence,{children:v&&(0,s.jsx)(i.motion.div,{initial:{opacity:0,scale:.95,y:-10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-10},transition:{duration:.15},className:(()=>{switch(f){case"minimal":default:return"absolute top-full right-0 mt-2 bg-white rounded-lg shadow-lg border border-gray-200 p-2 min-w-[200px] z-50";case"floating":return"absolute bottom-full right-0 mb-2 bg-white rounded-lg shadow-lg border border-gray-200 p-2 min-w-[200px] z-50"}})(),children:(0,s.jsx)("div",{className:"space-y-1",children:_.map(e=>{let t=e.icon;return(0,s.jsxs)("button",{onClick:e.action,disabled:$,className:`w-full flex items-center gap-3 px-3 py-2 text-sm rounded-md transition-colors ${e.bgColor} ${e.color} disabled:opacity-50 disabled:cursor-not-allowed`,children:[(0,s.jsx)(t,{className:"h-4 w-4"}),(0,s.jsx)("span",{children:e.label}),$&&"facebook"===e.platform&&(0,s.jsx)(m.A,{className:"h-3 w-3 animate-spin ml-auto"})]},e.platform)})})})}),P&&(0,s.jsx)("div",{className:"absolute top-full left-0 mt-2 bg-red-50 border border-red-200 text-red-700 px-3 py-2 rounded-md text-sm max-w-xs",children:P}),v&&(0,s.jsx)("div",{className:"fixed inset-0 z-40",onClick:()=>w(!1)})]})};r()}catch(e){r(e)}})},27910:e=>{e.exports=require("stream")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},36653:e=>{e.exports=require("nprogress")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},42311:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(72386).A)("facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]])},42893:e=>{e.exports=import("react-hot-toast")},45057:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(72386).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},51781:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(72386).A)("linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]])},63106:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(72386).A)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]])},63220:e=>{e.exports=import("framer-motion")},74075:e=>{e.exports=require("zlib")},74824:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(72386).A)("twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]])},82015:e=>{e.exports=require("react")},92843:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{default:()=>P,getServerSideProps:()=>$});var s=a(8732),l=a(82015),i=a(49788),o=a.n(i),n=a(56761),d=a.n(n),c=a(3457),x=a(51898),g=a(63220),m=a(71410),h=a(66596),u=a(75974),p=a(22554),b=a(5789),y=a(57341),f=a(87637),v=a(66399),w=a(99421),j=a(63106),N=a(13213),k=a(84904),A=a(7670),C=a(92839),S=a(27206),R=e([c,g,C,S]);[c,g,C,S]=R.then?(await R)():R;let $=async({params:e})=>{let t=e?.id;if(!t)return{props:{business:null,error:"No business ID provided."}};try{let e=await x.z.businessProfile.findUnique({where:{id:t},include:{owner:{select:{id:!0,name:!0,role:!0,profilePicture:!0,specialization:!0,yearsOfExperience:!0,totalCases:!0,wonCases:!0,lostCases:!0,averageRating:!0,hourlyRate:!0,totalBadges:!0,level:!0,isVerified:!0,bio:!0,officeLocation:!0,availability:!0,username:!0,isProfilePublic:!0}},members:{select:{id:!0,name:!0,role:!0,profilePicture:!0,specialization:!0,yearsOfExperience:!0,totalCases:!0,wonCases:!0,lostCases:!0,averageRating:!0,hourlyRate:!0,totalBadges:!0,level:!0,isVerified:!0,bio:!0,officeLocation:!0,availability:!0,username:!0,isProfilePublic:!0}}}});if(!e)return{props:{business:null,error:"Business profile not found."}};let a=[e.owner,...e.members].filter(e=>e.isProfilePublic).filter((e,t,a)=>t===a.findIndex(t=>t.id===e.id)).map(e=>({...e,winRate:e.totalCases>0?e.wonCases/e.totalCases*100:0})),r={totalLawyers:a.length,totalCases:a.reduce((e,t)=>e+t.totalCases,0),totalWonCases:a.reduce((e,t)=>e+t.wonCases,0),totalLostCases:a.reduce((e,t)=>e+t.lostCases,0),averageWinRate:a.length>0?a.reduce((e,t)=>e+t.winRate,0)/a.length:0,averageRating:a.length>0?a.reduce((e,t)=>e+(t.averageRating||0),0)/a.length:0,averageHourlyRate:a.length>0?a.reduce((e,t)=>e+(t.hourlyRate||0),0)/a.length:0,totalBadges:a.reduce((e,t)=>e+t.totalBadges,0),averageLevel:a.length>0?a.reduce((e,t)=>e+t.level,0)/a.length:0};return{props:{business:{...e,createdAt:e.createdAt.toISOString(),updatedAt:e.updatedAt.toISOString(),verifiedAt:e.verifiedAt?e.verifiedAt.toISOString():null,lawyers:a,firmStats:r}}}}catch(e){return console.error("Error loading business profile:",e),{props:{business:null,error:"Error loading business profile."}}}},P=({business:e,error:t})=>{if(t)return(0,s.jsx)(c.default,{children:(0,s.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("h1",{className:"text-3xl font-bold mb-4",children:"Business Profile Not Found"}),(0,s.jsx)("p",{className:"text-gray-600 mb-8",children:t})]})})});if(!e)return null;let a=e=>e>=80?"text-green-600 bg-green-100":e>=60?"text-yellow-600 bg-yellow-100":"text-red-600 bg-red-100",r=e=>e>=4.5?"text-yellow-500":e>=4?"text-gray-600":"text-gray-400",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"},[n,x]=(0,l.useState)(!1);return(0,s.jsxs)(c.default,{children:[(0,s.jsxs)(o(),{children:[(0,s.jsxs)("title",{children:[e.businessName," - Business Profile"]}),(0,s.jsx)("meta",{name:"description",content:e.description||`Business profile for ${e.businessName}`})]}),(0,s.jsxs)("div",{className:"max-w-6xl mx-auto px-4 py-8",children:[(0,s.jsxs)(g.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 p-8 mb-8",children:[(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row items-start gap-8",children:[(0,s.jsxs)("div",{className:"flex items-center gap-6",children:[e.logo?(0,s.jsx)(d(),{src:e.logo,alt:e.businessName,width:120,height:120,className:"rounded-lg border shadow"}):(0,s.jsx)("div",{className:"w-30 h-30 bg-gradient-to-br from-blue-500 to-purple-600 rounded-lg flex items-center justify-center",children:(0,s.jsx)(m.A,{className:"h-16 w-16 text-white"})}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("h1",{className:"text-4xl font-bold text-gray-900 dark:text-white flex items-center gap-3",children:[e.businessName,e.isVerified&&(0,s.jsx)(h.A,{className:"h-8 w-8 text-blue-600"})]}),(0,s.jsx)("div",{className:"text-gray-600 dark:text-gray-400 mt-2 text-lg",children:e.businessType}),e.industry&&(0,s.jsxs)("div",{className:"text-gray-500 text-sm mt-1",children:["Industry: ",e.industry]}),(0,s.jsx)("div",{className:"mt-2",children:(0,s.jsx)(S.A,{url:"",title:e.businessName,description:e.description||`Business profile for ${e.businessName}`,hashtags:["lawfirm","legal",e.businessType.toLowerCase()],variant:"minimal"})})]})]}),(0,s.jsxs)("div",{className:"flex-1 grid grid-cols-2 lg:grid-cols-4 gap-4",children:[(0,s.jsxs)("div",{className:"text-center p-4 bg-blue-50 dark:bg-blue-900/20 rounded-lg",children:[(0,s.jsx)("div",{className:"text-2xl font-bold text-blue-600",children:e.firmStats.totalLawyers}),(0,s.jsx)("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Lawyers"})]}),(0,s.jsxs)("div",{className:"text-center p-4 bg-green-50 dark:bg-green-900/20 rounded-lg",children:[(0,s.jsx)("div",{className:`text-2xl font-bold ${a(e.firmStats.averageWinRate).split(" ")[0]}`,children:"number"==typeof e.firmStats.averageWinRate?e.firmStats.averageWinRate.toFixed(1)+"%":"N/A"}),(0,s.jsx)("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Win Rate"})]}),(0,s.jsxs)("div",{className:"text-center p-4 bg-purple-50 dark:bg-purple-900/20 rounded-lg",children:[(0,s.jsx)("div",{className:"text-2xl font-bold text-purple-600",children:e.firmStats.totalCases}),(0,s.jsx)("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Total Cases"})]}),(0,s.jsxs)("div",{className:"text-center p-4 bg-yellow-50 dark:bg-yellow-900/20 rounded-lg",children:[(0,s.jsx)("div",{className:`text-2xl font-bold ${r(e.firmStats.averageRating)}`,children:e.firmStats.averageRating?e.firmStats.averageRating.toFixed(1):"N/A"}),(0,s.jsx)("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Rating"})]})]})]}),e.description&&(0,s.jsx)("div",{className:"mt-6 p-4 bg-gray-50 dark:bg-gray-700 rounded-lg",children:(0,s.jsx)("p",{className:"text-gray-800 dark:text-gray-200",children:e.description})}),(0,s.jsxs)("div",{className:"mt-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[e.website&&(0,s.jsxs)("a",{href:e.website,target:"_blank",rel:"noopener noreferrer",className:"flex items-center text-blue-600 hover:text-blue-700 transition-colors",children:[(0,s.jsx)(u.A,{className:"h-5 w-5 mr-2"}),(0,s.jsx)("span",{className:"truncate",children:e.website})]}),e.email&&(0,s.jsxs)("a",{href:`mailto:${e.email}`,className:"flex items-center text-purple-600 hover:text-purple-700 transition-colors",children:[(0,s.jsx)(p.A,{className:"h-5 w-5 mr-2"}),e.email]}),e.phone&&(0,s.jsxs)("a",{href:`tel:${e.phone}`,className:"flex items-center text-green-600 hover:text-green-700 transition-colors",children:[(0,s.jsx)(b.A,{className:"h-5 w-5 mr-2"}),e.phone]}),e.address&&(0,s.jsxs)("div",{className:"flex items-center text-gray-600 dark:text-gray-400",children:[(0,s.jsx)(y.A,{className:"h-5 w-5 mr-2"}),(0,s.jsx)("span",{className:"truncate",children:e.address})]})]}),e.lawyers&&e.lawyers.length>0&&(0,s.jsx)("div",{className:"mt-6",children:(0,s.jsx)(C.A,{lawyer:e.lawyers[0],businessProfile:e})})]}),(0,s.jsxs)(g.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 p-8 mb-8",children:[(0,s.jsxs)("h2",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-6 flex items-center",children:[(0,s.jsx)(f.A,{className:"h-6 w-6 mr-3 text-blue-600"}),"Our Legal Team"]}),(0,s.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:e.lawyers.map(t=>{let l=i(t.level);return(0,s.jsx)("div",{className:"border border-gray-200 dark:border-gray-700 rounded-lg p-6 hover:shadow-md transition-shadow",children:(0,s.jsxs)("div",{className:"flex items-start gap-4",children:[t.profilePicture?(0,s.jsx)("img",{src:t.profilePicture,alt:t.name,className:"w-20 h-20 rounded-full object-cover"}):(0,s.jsx)("div",{className:"w-20 h-20 bg-gradient-to-br from-blue-400 to-purple-500 rounded-full flex items-center justify-center",children:(0,s.jsx)(f.A,{className:"h-10 w-10 text-white"})}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,s.jsx)("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:t.name}),t.isVerified&&(0,s.jsx)(h.A,{className:"h-5 w-5 text-blue-600"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[t.specialization&&(0,s.jsx)("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:t.specialization}),(0,s.jsxs)("span",{className:`px-2 py-1 text-xs text-white rounded-full ${l.color}`,children:[l.text," (Lv.",t.level,")"]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-4 mb-4",children:[t.winRate?(0,s.jsxs)("div",{className:"text-center p-3 bg-gray-50 dark:bg-gray-700 rounded-lg",children:[(0,s.jsx)("div",{className:`text-lg font-bold ${a(t.winRate).split(" ")[0]}`,children:t.winRate.toFixed(1)+"%"}),(0,s.jsx)("div",{className:"text-xs text-gray-600 dark:text-gray-400",children:"Win Rate"})]}):null,(0,s.jsxs)("div",{className:`text-center p-3 bg-gray-50 dark:bg-gray-700 rounded-lg${t.totalCases?"":" opacity-50"}`,children:[(0,s.jsx)("div",{className:`text-lg font-bold ${t.totalCases?"text-blue-600":"text-gray-400"}`,children:t.totalCases?t.totalCases:"—"}),(0,s.jsx)("div",{className:"text-xs text-gray-600 dark:text-gray-400",children:"Cases"})]}),t.averageRating?(0,s.jsxs)("div",{className:"text-center p-3 bg-gray-50 dark:bg-gray-700 rounded-lg",children:[(0,s.jsx)("div",{className:`text-lg font-bold ${r(t.averageRating)}`,children:t.averageRating.toFixed(1)}),(0,s.jsx)("div",{className:"text-xs text-gray-600 dark:text-gray-400",children:"Rating"})]}):null,(0,s.jsxs)("div",{className:`text-center p-3 bg-gray-50 dark:bg-gray-700 rounded-lg${t.totalBadges?"":" opacity-50"}`,children:[(0,s.jsx)("div",{className:`text-lg font-bold ${t.totalBadges?"text-purple-600":"text-gray-400"}`,children:t.totalBadges?t.totalBadges:"—"}),(0,s.jsx)("div",{className:"text-xs text-gray-600 dark:text-gray-400",children:"Badges"})]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between text-sm text-gray-600 dark:text-gray-400",children:[t.yearsOfExperience&&(0,s.jsxs)("span",{className:"flex items-center",children:[(0,s.jsx)(v.A,{className:"h-4 w-4 mr-1"}),t.yearsOfExperience," years"]}),t.hourlyRate&&(0,s.jsxs)("span",{className:"flex items-center",children:[(0,s.jsx)(w.A,{className:"h-4 w-4 mr-1"}),"$",t.hourlyRate,"/hr"]})]}),"number"==typeof t.yearsOfExperience&&(0,s.jsxs)("div",{className:"text-sm text-gray-500 mb-2",children:[t.yearsOfExperience," year",1!==t.yearsOfExperience?"s":""," experience"]}),t.bio&&(0,s.jsx)("div",{className:"text-xs text-gray-700 dark:text-gray-300 mt-2",children:t.bio.length>180?(0,s.jsx)(s.Fragment,{children:n?(0,s.jsxs)(s.Fragment,{children:[t.bio," "," ",(0,s.jsx)("span",{className:"text-blue-600 cursor-pointer",onClick:()=>x(!1),children:"Show less"})]}):(0,s.jsxs)(s.Fragment,{children:[t.bio.slice(0,180),"..."," ",(0,s.jsx)("span",{className:"text-blue-600 cursor-pointer",onClick:()=>x(!0),children:"Read more"})]})}):t.bio}),(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(C.A,{lawyer:t,businessProfile:e,className:"w-full"})})]})]})},t.id)})})]}),(0,s.jsxs)(g.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 p-8 mb-8",children:[(0,s.jsxs)("h2",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-6 flex items-center",children:[(0,s.jsx)(j.A,{className:"h-6 w-6 mr-3 text-green-600"}),"Firm Performance Statistics"]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[(0,s.jsxs)("div",{className:"text-center p-6 bg-gradient-to-br from-green-50 to-blue-50 dark:from-green-900/20 dark:to-blue-900/20 rounded-lg",children:[(0,s.jsx)(N.A,{className:"h-8 w-8 text-green-600 mx-auto mb-3"}),(0,s.jsx)("div",{className:`text-3xl font-bold ${e.firmStats.totalWonCases?"text-green-600":"text-gray-400"}`,children:e.firmStats.totalWonCases?e.firmStats.totalWonCases:"—"}),(0,s.jsx)("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Cases Won"})]}),(0,s.jsxs)("div",{className:"text-center p-6 bg-gradient-to-br from-red-50 to-orange-50 dark:from-red-900/20 dark:to-orange-900/20 rounded-lg",children:[(0,s.jsx)(k.A,{className:"h-8 w-8 text-red-600 mx-auto mb-3"}),(0,s.jsx)("div",{className:`text-3xl font-bold ${e.firmStats.totalLostCases?"text-red-600":"text-gray-400"}`,children:e.firmStats.totalLostCases?e.firmStats.totalLostCases:"—"}),(0,s.jsx)("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Cases Lost"})]}),(0,s.jsxs)("div",{className:"text-center p-6 bg-gradient-to-br from-purple-50 to-pink-50 dark:from-purple-900/20 dark:to-pink-900/20 rounded-lg",children:[(0,s.jsx)(A.A,{className:"h-8 w-8 text-purple-600 mx-auto mb-3"}),(0,s.jsx)("div",{className:`text-3xl font-bold ${e.firmStats.totalBadges?"text-purple-600":"text-gray-400"}`,children:e.firmStats.totalBadges?e.firmStats.totalBadges:"—"}),(0,s.jsx)("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Total Badges"})]}),(0,s.jsxs)("div",{className:"text-center p-6 bg-gradient-to-br from-yellow-50 to-orange-50 dark:from-yellow-900/20 dark:to-orange-900/20 rounded-lg",children:[(0,s.jsx)(w.A,{className:"h-8 w-8 text-yellow-600 mx-auto mb-3"}),(0,s.jsx)("div",{className:`text-3xl font-bold ${e.firmStats.averageHourlyRate?"text-yellow-600":"text-gray-400"}`,children:e.firmStats.averageHourlyRate?`$${e.firmStats.averageHourlyRate.toFixed(0)}`:"—"}),(0,s.jsx)("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Avg. Rate/hr"})]})]})]}),(0,s.jsxs)(g.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 p-8",children:[(0,s.jsxs)("h2",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-6 flex items-center",children:[(0,s.jsx)(m.A,{className:"h-6 w-6 mr-3 text-blue-600"}),"Business Information"]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.employeeCount&&(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:"Employee Count"}),(0,s.jsx)("p",{className:"text-lg text-gray-900 dark:text-white",children:e.employeeCount})]}),e.annualRevenue&&(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:"Annual Revenue"}),(0,s.jsx)("p",{className:"text-lg text-gray-900 dark:text-white",children:e.annualRevenue})]}),e.registrationNumber&&(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:"Registration Number"}),(0,s.jsx)("p",{className:"text-lg text-gray-900 dark:text-white",children:e.registrationNumber})]}),e.taxId&&(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:"Tax ID"}),(0,s.jsx)("p",{className:"text-lg text-gray-900 dark:text-white",children:e.taxId})]})]}),(0,s.jsx)("div",{className:"mt-6 pt-6 border-t border-gray-200 dark:border-gray-700",children:(0,s.jsxs)("p",{className:"text-sm text-gray-500",children:["Profile created: ",new Date(e.createdAt).toLocaleDateString()]})})]})]})]})};r()}catch(e){r(e)}})},96330:e=>{e.exports=require("@prisma/client")},97089:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(72386).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},97684:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(72386).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])}};var t=require("../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[5126,8803,2341,5309,4327,3503,2081,3457,9904],()=>a(8645));module.exports=r})();