PageSourceSearch

https://naijabarrister.com/_next/static/chunks/pages/[username]/reviews-5d0372896fd2be99.js

js naijabarrister.com collected 2026-10-02 16:04:38 UTC 22,237 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3891],{38895:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[username]/reviews",function(){return n(66022)}])},93987:function(e,t,n){"use strict";var a=n(85893),r=(n(67294),n(80471));t.Z=function(e){var t=e.children,n=e.classes,s=e.type,i=e.isSubmitting;return(0,a.jsx)("button",{className:"".concat(n," button"),disabled:i,type:s||"button",children:i?(0,a.jsx)(r.frZ,{size:"1.2em",className:"animate animate-spin mx-auto"}):t})}},41694:function(e,t,n){"use strict";var a=n(85893),r=(n(67294),n(25675)),s=n(53854),i=n(41664),l=n(11163),o=n(74931),c=n(47516),u=n(5434),d=n(89583),m=n(66653);t.Z=function(e){var t=e.profile,n=(0,l.useRouter)();return(0,a.jsxs)("div",{className:"bg-slate-900 pt-24",children:[(0,a.jsxs)("div",{className:"md:py-8 pt-12 md:mx-auto mx-8 md:flex items-center max-w-6xl md:text-left text-center",children:[(0,a.jsx)("div",{className:"cols-span-1",children:(0,a.jsx)(r.default,{src:t.avatar||"/images/avatar.png",alt:"".concat(t.first_name," ").concat(t.last_name),width:180,height:180,priority:!0,className:"rounded-full object-cover"})}),(0,a.jsxs)("div",{className:"md:ml-6 ml-0 md:mt-0 mt-6",children:[(0,a.jsxs)("h1",{className:"md:text-3xl text-3xl font-black text-slate-200",children:[t.first_name," ",t.last_name]}),(0,a.jsxs)("p",{className:"flex md:justify-start justify-center items-center text-slate-400 mb-0",children:[(0,a.jsx)(s.XAC,{className:"mr-2"})," ",t.city?"".concat(t.city,", "):"",t.state]}),t.university&&(0,a.jsxs)("p",{className:"flex md:justify-start justify-center items-center space-x-2 text-slate-400 mb-0",children:[(0,a.jsx)(d.Q7H,{})," ",(0,a.jsx)("span",{children:t.university})]}),t.law_firm&&(0,a.jsxs)("p",{className:"flex md:justify-start justify-center items-center space-x-2 text-slate-400 mb-0",children:[(0,a.jsx)(m.$Ff,{})," ",(0,a.jsx)("span",{children:t.law_firm})]}),(0,a.jsxs)("div",{className:"flex inline-block mt-4 space-x-3 md:justify-start justify-center md:mb-0 mb-12",children:[t.phone&&(0,a.jsxs)("button",{type:"button",className:"flex items-center text-sm bg-white py-1.5 px-4 rounded-lg text-slate-800 space-x-1",onClick:function(){navigator.clipboard.writeText(t.phone).then((function(){o.ZP.success("Phone number copied")})).catch((function(){return o.ZP.error("Error copying phone number")}))},children:[(0,a.jsx)(c.a54,{})," ",(0,a.jsx)("span",{children:"Get phone"})]}),t.email&&(0,a.jsxs)("button",{type:"button",className:"flex items-center text-sm bg-white py-1.5 px-4 rounded-lg text-slate-800 space-x-1",onClick:function(){navigator.clipboard.writeText(t.email).then((function(){o.ZP.success("Email address copied")})).catch((function(){return o.ZP.error("Error copying email address")}))},children:[(0,a.jsx)(u.yr3,{})," ",(0,a.jsx)("span",{children:"Get email"})]})]})]})]}),(0,a.jsx)("div",{className:"max-w-6xl md:mx-auto mx-4",children:(0,a.jsxs)("ul",{className:"profile-menu overflow-x-scroll",children:[(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/".concat(t.username),children:(0,a.jsx)("a",{className:"".concat(/\/\[username\]$/.test(n.pathname)?"active":""," whitespace-nowrap"),children:"About Me"})})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/".concat(t.username,"/reviews"),children:(0,a.jsx)("a",{className:"".concat(/\/reviews$/.test(n.pathname)?"active":""," whitespace-nowrap"),children:"Reviews"})})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/".concat(t.username,"/articles"),children:(0,a.jsx)("a",{className:"".concat(/\/articles$/.test(n.pathname)?"active":""," whitespace-nowrap"),children:"Articles"})})}),(0,a.jsx)("li",{children:(0,a.jsx)(i.default,{href:"/".concat(t.username,"/contact"),children:(0,a.jsx)("a",{className:"".concat(/\/contact$/.test(n.pathname)?"active":""," whitespace-nowrap"),children:"Contact Me"})})})]})})]})}},44449:function(e,t,n){"use strict";var a=n(85893),r=(n(67294),n(14161)),s=n(49778);t.Z=function(){return(0,a.jsxs)("aside",{className:"",children:[(0,a.jsx)("p",{className:"mb-4 text-slate-700",children:"Naijabarrister.com is committed to providing easy access to Nigerian laws, lawyers and legal resources"}),(0,a.jsxs)("ul",{className:"space-y-4",children:[(0,a.jsx)("li",{children:(0,a.jsx)(r.Z,{className:"w-full"})}),(0,a.jsx)("li",{children:(0,a.jsx)(s.Z,{})})]})]})}},43977:function(e,t,n){"use strict";var a=n(85893);n(67294);t.Z=function(e){var t=e.children;return(0,a.jsx)("div",{className:"text-sm text-red-500 my-1",children:t})}},14161:function(e,t,n){"use strict";var a=n(85893),r=(n(67294),n(41664)),s=n(79352);t.Z=function(){return(0,a.jsx)(r.default,{href:"/questions",children:(0,a.jsxs)("a",{className:"bg-blue-500 inline-flex items-center py-3 px-8 rounded-md md:mr-4 uppercase text-white font-bold drop-shadow-lg hover:text-white hover:no-underline hover:bg-blue-400 md:w-auto w-full justify-center md:mb-0 mb-4",children:[(0,a.jsx)(s.qvv,{className:"mr-2",size:"1.2em"})," Ask a lawyer"]})})}},49778:function(e,t,n){"use strict";var a=n(85893),r=(n(67294),n(86893)),s=n(41664);t.Z=function(){return(0,a.jsx)(s.default,{href:"/find-a-lawyer",children:(0,a.jsxs)("a",{className:"bg-white inline-flex items-center py-3 px-8 rounded-md uppercase text-blue-800 font-bold drop-shadow-sm border border-blue-400 hover:no-underline hover:border-blue-300 hover:text-slate-800 md:w-auto w-full justify-center",children:[(0,a.jsx)(r.jRj,{className:"mr-2"})," Find a lawyer"]})})}},66022:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return Q},default:function(){return X}});var a=n(34051),r=n.n(a),s=n(85893),i=n(67294),l=n(65357),o=n(41694),c=n(44449),u=n(11163),d=n(9008),m=n(82175);function p(e){return p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function v(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},y.apply(this,arguments)}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){x(e,t,n[t])}))}return e}function j(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}
1function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function N(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?N(e):t}var S={display:"inline-block",borderRadius:"50%",border:"5px double white",width:30,height:30},M={empty:b({},S,{backgroundColor:"#ccc"}),full:b({},S,{backgroundColor:"black"}),placeholder:b({},S,{backgroundColor:"red"})},P=function(e){return i.isValidElement(e)?e:"object"===p(e)&&null!==e?i.createElement("span",{style:e}):"[object String]"===Object.prototype.toString.call(e)?i.createElement("span",{className:e}):void 0},_=function(e){function t(){return h(this,t),k(this,g(t).apply(this,arguments))}return j(t,e),v(t,[{key:"render",value:function(){var e,t=this.props,n=t.index,a=t.inactiveIcon,r=t.activeIcon,s=t.percent,l=t.direction,o=t.readonly,c=t.onClick,u=t.onMouseMove,d=P(a),m=s<100?{}:{visibility:"hidden"},p=P(r),h=(x(e={display:"inline-block",position:"absolute",overflow:"hidden",top:0},"rtl"===l?"right":"left",0),x(e,"width","".concat(s,"%")),e),f={cursor:o?"inherit":"pointer",display:"inline-block",position:"relative"};function v(e){u&&u(n,e)}function y(e){c&&(e.preventDefault(),c(n,e))}return i.createElement("span",{style:f,onClick:y,onMouseMove:v,onTouchMove:v,onTouchEnd:y},i.createElement("span",{style:m},d),i.createElement("span",{style:h},p))}}]),t}(i.PureComponent),C=function(e){function t(e){var n;return h(this,t),(n=k(this,g(t).call(this,e))).state={displayValue:n.props.value,interacting:!1},n.onMouseLeave=n.onMouseLeave.bind(N(N(n))),n.symbolMouseMove=n.symbolMouseMove.bind(N(N(n))),n.symbolClick=n.symbolClick.bind(N(N(n))),n}return j(t,e),v(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props.value!==e.value;this.setState((function(n){return{displayValue:t?e.value:n.displayValue}}))}},{key:"componentDidUpdate",value:function(e,t){if(e.value===this.props.value)return t.interacting&&!this.state.interacting?this.props.onHover():void(this.state.interacting&&this.props.onHover(this.state.displayValue))}},{key:"symbolClick",value:function(e,t){var n=this.calculateDisplayValue(e,t);this.props.onClick(n,t)}},{key:"symbolMouseMove",value:function(e,t){var n=this.calculateDisplayValue(e,t);this.setState({interacting:!this.props.readonly,displayValue:n})}},{key:"onMouseLeave",value:function(){this.setState({displayValue:this.props.value,interacting:!1})}},{key:"calculateDisplayValue",value:function(e,t){var n=this.calculateHoverPercentage(t),a=Math.ceil(n%1*this.props.fractions)/this.props.fractions,r=Math.pow(10,3),s=e+(Math.floor(n)+Math.floor(a*r)/r);return s>0?s>this.props.totalSymbols?this.props.totalSymbols:s:1/this.props.fractions}},{key:"calculateHoverPercentage",value:function(e){var t=e.nativeEvent.type.indexOf("touch")>-1?e.nativeEvent.type.indexOf("touchend")>-1?e.changedTouches[0].clientX:e.touches[0].clientX:e.clientX,n=e.target.getBoundingClientRect(),a="rtl"===this.props.direction?n.right-t:t-n.left;return a<0?0:a/n.width}},{key:"render",value:function(){var e,t=this.props,n=t.readonly,a=t.quiet,r=t.totalSymbols,s=t.value,l=t.placeholderValue,o=t.direction,c=t.emptySymbol,u=t.fullSymbol,d=t.placeholderSymbol,m=t.className,p=t.id,h=t.style,f=t.tabIndex,v=this.state,x=v.displayValue,j=v.interacting,g=[],w=[].concat(c),N=[].concat(u),k=[].concat(d),S=0!==l&&0===s&&!j;e=S?l:a?s:x;for(var M=Math.floor(e),P=0;P<r;P++){var C=void 0;C=P-M<0?100:P-M===0?100*(e-P):0,g.push(i.createElement(_,y({key:P,index:P,readonly:n,inactiveIcon:w[P%w.length],activeIcon:S?k[P%N.length]:N[P%N.length],percent:C,direction:o},!n&&{onClick:this.symbolClick,onMouseMove:this.symbolMouseMove,onTouchMove:this.symbolMouseMove,onTouchEnd:this.symbolClick})))}return i.createElement("span",y({id:p,style:b({},h,{display:"inline-block",direction:o}),className:m,tabIndex:f,"aria-label":this.props["aria-label"]},!n&&{onMouseLeave:this.onMouseLeave}),g)}}]),t}(i.PureComponent);function Z(){}Z._name="react_rating_noop";var E=function(e){function t(e){var n;return h(this,t),(n=k(this,g(t).call(this,e))).state={value:e.initialRating},n.handleClick=n.handleClick.bind(N(N(n))),n.handleHover=n.handleHover.bind(N(N(n))),n}return j(t,e),v(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.setState({value:e.initialRating})}},{key:"handleClick",value:function(e,t){var n=this,a=this.translateDisplayValueToValue(e);this.props.onClick(a),this.state.value!==a&&this.setState({value:a},(function(){return n.props.onChange(n.state.value)}))}},{key:"handleHover",value:function(e){var t=void 0===e?e:this.translateDisplayValueToValue(e);this.props.onHover(t)}},{key:"translateDisplayValueToValue",value:function(e){var t=e*this.props.step+this.props.start;return t===this.props.start?t+1/this.props.fractions:t}},{key:"tranlateValueToDisplayValue",value:function(e){return void 0===e?0:(e-this.props.start)/this.props.step}},{key:"render",value:function(){var e=this.props,t=e.step,n=e.emptySymbol,a=e.fullSymbol,r=e.placeholderSymbol,s=e.readonly,l=e.quiet,o=e.fractions,c=e.direction,u=e.start,d=e.stop,m=e.id,p=e.className,h=e.style,f=e.tabIndex;return i.createElement(C,{id:m,style:h,className:p,tabIndex:f,"aria-label":this.props["aria-label"],totalSymbols:function(e,t,n){return Math.floor((t-e)/n)}(u,d,t),value:this.tranlateValueToDisplayValue(this.state.value),placeholderValue:this.tranlateValueToDisplayValue(this.props.placeholderRating),readonly:s,quiet:l,fractions:o,direction:c,emptySymbol:n,fullSymbol:a,placeholderSymbol:r,onClick:this.handleClick,onHover:this.handleHover})}}]),t}(i.PureComponent);E.defaultProps={start:0,stop:5,step:1,readonly:!1,quiet:!1,fractions:1,direction:"ltr",onHover:Z,onClick:Z,onChange:Z,emptySymbol:M.empty,fullSymbol:M.full,placeholderSymbol:M.placeholder};var O=E,R=n(74931),V=n(74231),T=n(93987),q=n(43977),F=n(89583),D=n(40611);function H(e,t,n,a,r,s,i){try{var l=e[s](i),o=l.value}catch(c){return void n(c)}l.done?t(o):Promise.resolve(o).then(a,r)}var B=V.Ry().shape({fullname:V.Z_().min(3).max(64).required("Your name is required"),email:V.Z_().max(128,"Email is too long").email("Please enter a valid email address").required("Email is required"),rating:V.Rx().min(1).max(5).required("Rating is required"),review:V.Z_().min(20,"Minimum of 20 characters").max(2500,"Maximum of 2,500 characters").required("Review is required"),bot:V.Rx().max(50).required("Required"),agree:V.O7().equals([!0],"Please agree to our terms of review")});var I=function(e){var t=e.profile,n=e.setShowReview,a=(0,i.useState)({num1:Math.round(20*Math.random()),num2:Math.round(20*Math.random())}),l=a[0],o=a[1];return(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:" pt-10",children:(0,s.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,s.jsx)("h3",{className:"mb-3 font-black text-xl mt-0",children:"Submit your review"}),(0,s.jsx)(m.J9,{initialValues:{fullname:"",email:"",rating:"",review:"",bot:"",agree:!1},validationSchema:B,onSubmit:function(){var e,a=(e=r().mark((function e(a,s){var i,c;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=s.resetForm,c=s.setSubmitting,console.log(a),parseInt(a.bot)===l.num1+l.num2){e.next=8;break}return R.ZP.error("Bot validation failed. Please check your answer to the maths below and try again"),o({num1:Math.round(20*Math.random()),num2:Math.round(20*Math.random())}),c(!1),e.abrupt("return");case 8:return e.prev=8,e.next=11,D.Z.post("/api/users/".concat(t.id,"/reviews"),a);case 11:e.sent.data,R.ZP.success("Your review was submitted successfully"),i(),n&&n(!1),e.next=21;break;case 17:e.prev=17,e.t0=e.catch(8),console.log(e.t0),R.ZP.error("An error occurred, please try again");case 21:case"end":return e.stop()}}),e,null,[[8,17]])})),function(){var t=this,n=arguments;return new Promise((function(a,r){var s=e.apply(t,n);function i(e){H(s,a,r,i,l,"next",e)}function l(e){H(s,a,r,i,l,"throw",e)}i(void 0)}))});return function(e,t){return a.apply(this,arguments)}}(),children:function(e){var n=e.errors,a=e.touched,r=e.values,i=e.isSubmitting,o=e.setFieldValue;return(0,s.jsxs)(m.l0,{className:"p-4 rounded-lg bg-white border border-slate-300",children:[(0,s.jsxs)("div",{className:"md:grid grid-cols-2 gap-8",children:[(0,s.jsxs)("div",{className:"field",children:[(0,s.jsx)("label",{htmlFor:"",children:"Your fullname"}),(0,s.jsx)(m.gN,{name:"fullname",className:"".concat(n.fullname&&a.fullname?"has-error":""," input"),placeholder:"eg. Toby Makun"}),(0,s.jsx)(m.Bc,{component:q.Z,name:"fullname"})]}),(0,s.jsxs)("div",{className:"field",children:[(0,s.jsx)("label",{htmlFor:"",children:"Your email address"}),(0,s.jsx)(m.gN,{type:"email",name:"email",className:"".concat(n.email&&a.email?"has-error":""," input"),placeholder:"[email protected]"}),(0,s.jsx)(m.Bc,{component:q.Z,name:"email"})]})]}),(0,s.jsxs)("div",{className:"field",children:[(0,s.jsx)("label",{htmlFor:"",children:"Your rating"}),(0,s.jsx)(O,{emptySymbol:(0,s.jsx)(F.QJe,{size:"2em",className:"text-gray-300"}),fullSymbol:(0,s.jsx)(F.QJe,{size:"2em",className:"text-yellow-500"}),onChange:function(e){return o("rating",e)},initialRating:r.rating}),(0,s.jsx)(m.Bc,{component:q.Z,name:"rating"})]}),(0,s.jsxs)("div",{className:"field",children:[(0,s.jsx)("label",{htmlFor:"",children:"Write your review"}
1),(0,s.jsx)(m.gN,{as:"textarea",name:"review",className:"".concat(n.review&&a.review?"has-error":""," input"),rows:2}),(0,s.jsx)(m.Bc,{component:q.Z,name:"review"})]}),(0,s.jsxs)("div",{className:" field",children:[(0,s.jsx)("label",{htmlFor:"",children:"Please solve the simple question below to prove you're human"}),(0,s.jsxs)("div",{className:"".concat(n.bot&&a.bot?"bg-red-50 border-red-300":"border-slate-300","  flex space-x-4 items-center border-2  rounded-lg px-4"),children:[(0,s.jsxs)("div",{className:"font-bold pr-4 whitespace-nowrap",children:[l.num1," + ",l.num2]}),(0,s.jsx)("div",{className:"grow",children:(0,s.jsx)(m.gN,{type:"text",name:"bot",className:"border-l border-slate-300 py-2 bg-transparent outline-none pl-4 w-full",placeholder:"Enter your answer here"})})]}),(0,s.jsx)(m.Bc,{name:"bot",component:q.Z})]}),(0,s.jsxs)("div",{className:"",children:[(0,s.jsxs)("label",{className:"flex space-x-3 items-center text-sm cursor-pointer",children:[(0,s.jsx)(m.gN,{type:"checkbox",name:"agree",className:"w-20"})," ",(0,s.jsxs)("span",{children:["I confirm that I have worked with"," ",(0,s.jsx)("strong",{children:t.fullName})," and this is my honest review on the legal services offered to me by"," ",(0,s.jsx)("strong",{children:t.fullName}),". Please note that only your name and review will be made public."]})]}),(0,s.jsx)(m.Bc,{name:"agree",component:q.Z})]}),(0,s.jsx)("div",{className:"field mt-6",children:(0,s.jsx)(T.Z,{classes:"primary",type:"submit",isSubmitting:i,children:"Submit your review"})})]})}})]})})})},z=n(11510);var A=function(e){var t=e.review;return(0,s.jsxs)("div",{className:"mb-8",children:[(0,s.jsx)("h3",{className:"font-black",children:t.fullname}),(0,s.jsx)("p",{className:"text-sm text-slate-600 mb-0",children:(0,z.Z)(new Date(t.createdAt),"PPP")}),(0,s.jsx)(O,{emptySymbol:(0,s.jsx)(F.QJe,{size:"1em",className:"text-gray-300"}),fullSymbol:(0,s.jsx)(F.QJe,{size:"1em",className:"text-yellow-400"}),readonly:!0,initialRating:t.rating}),(0,s.jsx)("p",{children:t.review})]})};function J(e,t,n,a,r,s,i){try{var l=e[s](i),o=l.value}catch(c){return void n(c)}l.done?t(o):Promise.resolve(o).then(a,r)}var Q=!0;function X(e){var t,n,a,m,p=e.profile,h=(0,i.useState)(null),f=h[0],v=h[1],x=(0,i.useState)(!0),y=x[0],b=x[1],j=(0,i.useState)(!1),g=j[0],w=j[1];(0,u.useRouter)();return(0,i.useEffect)((function(){var e=function(){var e,t=(e=r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,D.Z.get("/api/users/".concat(p.id,"/reviews"));case 3:t=e.sent.data,b(!1),v(t),console.log(t),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),console.log(e.t0),R.ZP.error("Error loading reviews");case 13:case"end":return e.stop()}}),e,null,[[0,9]])})),function(){var t=this,n=arguments;return new Promise((function(a,r){var s=e.apply(t,n);function i(e){J(s,a,r,i,l,"next",e)}function l(e){J(s,a,r,i,l,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();e()}),[y]),(0,s.jsxs)(l.Z,{meta:!1,children:[(0,s.jsxs)(d.default,{children:[(0,s.jsx)("title",{children:p.fullName?"".concat(p.fullName," Reviews - ").concat("NaijaBarrister | Find verified lawyers in Nigeria"):"NaijaBarrister | Find verified lawyers in Nigeria"}),(0,s.jsx)("meta",{name:"description",content:p.bio}),(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("meta",{property:"og:type",content:"article"}),(0,s.jsx)("meta",{property:"og:image",content:p.avatar||"".concat("https://naijabarrister.com","/images/avatar.png")}),(0,s.jsx)("meta",{property:"og:url",content:"".concat("https://naijabarrister.com","/").concat(p.username)}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,s.jsx)("meta",{property:"og:site_name",content:"NaijaBarrister | Find verified lawyers in Nigeria"}),(0,s.jsx)("meta",{name:"robots",content:"index,follow"})]}),(0,s.jsx)(o.Z,{profile:p}),(0,s.jsxs)("div",{className:"py-12 max-w-6xl md:mx-auto mx-4 md:grid grid-cols-12 gap-8",children:[(0,s.jsx)("div",{className:"col-span-8 text-lg",children:!y&&f&&(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mb-4 pb-4 border-b-2 border-gray-200",children:[(0,s.jsx)("h2",{className:"text-7xl font-black",children:(null===(t=null===f||void 0===f?void 0:f.stats[0])||void 0===t?void 0:t.avgRating.toFixed(1))||"0.0"}),(0,s.jsx)(O,{emptySymbol:(0,s.jsx)(F.QJe,{size:"1.5em",className:"text-gray-300"}),fullSymbol:(0,s.jsx)(F.QJe,{size:"1.5em",className:"text-yellow-400"}),readonly:!0,initialRating:(null===(n=null===f||void 0===f?void 0:f.stats[0])||void 0===n?void 0:n.avgRating)||0}),(0,s.jsxs)("p",{children:[(null===(a=null===f||void 0===f?void 0:f.stats[0])||void 0===a?void 0:a.avgRating.toFixed(1))||"0.0"," out of"," ",(null===(m=null===f||void 0===f?void 0:f.stats[0])||void 0===m?void 0:m.total)||0," reviews"]})]}),f.reviews.map((function(e){return(0,s.jsx)(A,{review:e},e.id)})),(0,s.jsxs)("div",{className:"mt-8",children:[(0,s.jsxs)("h4",{className:"font-bold",children:["Have you engaged ",p.fullName," services before?"]}),(0,s.jsx)("p",{children:"Tell us what you think"}),(0,s.jsx)("button",{onClick:function(){return w(!g)},className:"py-2 px-6 rounded-lg text-blue-500 border border-blue-300 hover:border-blue-500 hover:text-blue-800",children:g?"Cancel review":"Share a review"})]}),g&&(0,s.jsx)(I,{profile:p,setShowReview:w})]})}),(0,s.jsx)("div",{className:"col-span-4 md:mt-0 mt-12",children:(0,s.jsx)(c.Z,{})})]})]})}}},function(e){e.O(0,[5445,2013,9866,955,3874,5937,6556,1228,3276,2175,6653,4231,1510,6893,5357,9774,2888,179],(function(){return t=38895,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.