1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[62365],{5747:(e,t,n)=>{n.d(t,{j:()=>o});var a=n(95155),r=n(52619),i=n.n(r);let l="hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-lawly-secondary-ink",s=e=>"".concat(e," ").concat(1===e?"review":"reviews");function o(e){let{count:t,href:n,onClick:r,className:o}=e;if(null==t)return null;let c="(".concat(t,")"),u=["text-lawly-caption font-normal tracking-[0.08px] text-lawly-secondary-ink",o].filter(Boolean).join(" ");return r?(0,a.jsx)("button",{type:"button",onClick:r,"aria-label":s(t),className:"".concat(u," ").concat(l," cursor-pointer"),children:c}):n?(0,a.jsx)(i(),{href:n,"aria-label":s(t),className:"".concat(u," ").concat(l),children:c}):(0,a.jsx)("span",{className:u,children:c})}},45184:(e,t,n)=>{n.d(t,{G8:()=>a,GC:()=>l,cO:()=>r,wh:()=>i});let a=e=>{if(!Number.isFinite(e))return 0;let t=Math.trunc(e);return t<=0?0:100*Math.floor(t/100)},r=e=>{if(!Number.isFinite(e))return 0;let t=Math.trunc(e);return t<=0?0:100*Math.floor((t+50)/100)},i=e=>r(Math.round(100*e))/100,l=e=>a(Math.round(100*e))/100},46884:(e,t,n)=>{n.d(t,{Rv:()=>i,bK:()=>r});let a=e=>{if("number"!=typeof e||!Number.isFinite(e))return null;let t=Math.round(e),n=Math.abs(t);return{negative:t<0,grouped:Math.floor(n/100).toLocaleString("en-US"),remainder:n%100}},r=e=>{let t=a(e);return t?"".concat(t.negative?"-":"","$").concat(t.grouped,".").concat(String(t.remainder).padStart(2,"0")):"$0.00"},i=e=>{let t=a(e);if(!t)return"$0";let n=t.negative?"-":"";return 0===t.remainder?"".concat(n,"$").concat(t.grouped):"".concat(n,"$").concat(t.grouped,".").concat(String(t.remainder).padStart(2,"0"))}},56916:(e,t,n)=>{n.d(t,{Fx:()=>x,bF:()=>s,i_:()=>w,ie:()=>b,pq:()=>y,zS:()=>o});let a="lawly:saved-consultant-ids",r="lawly:saved-consultants-changed",i="lawly:saved-consultants-synced",l=!1,s=()=>{try{let e=localStorage.getItem(a);if(!e)return new Set;let t=JSON.parse(e);if(!Array.isArray(t))return new Set;return new Set(t.filter(e=>"string"==typeof e))}catch(e){return new Set}},o=()=>{try{return null!==localStorage.getItem(a)}catch(e){return!1}},c=e=>{localStorage.setItem(a,JSON.stringify([...e]))},u=()=>{window.dispatchEvent(new CustomEvent(r))},d=()=>{window.dispatchEvent(new CustomEvent(i))},h=new Map,f=new Set,p=new Set,w=async()=>{if(!l){l=!0;try{let e=await fetch("/api/me/saved-consultants",{cache:"no-store"});if(!e.ok)return;let t=await e.json().catch(()=>({})),n=new Set(Array.isArray(t.consultantProfileIds)?t.consultantProfileIds.filter(e=>"string"==typeof e):[]),a=s();for(let e of p)a.has(e)?n.add(e):n.delete(e);c(n),u()}catch(e){}}},v=(e,t)=>{let n=s();t?n.add(e):n.delete(e),c(n)},g=async e=>{try{let t=await fetch("/api/me/saved-consultants",{cache:"no-store"});if(!t.ok)return;let n=await t.json().catch(()=>({}));if(!Array.isArray(n.consultantProfileIds))return;v(e,n.consultantProfileIds.includes(e))}catch(e){}},m=async e=>{if(!f.has(e)){f.add(e);try{for(;h.has(e);){let t=h.get(e),n=null;try{let a=await fetch("/api/consultants/".concat(encodeURIComponent(e),"/saved"),{method:t?"POST":"DELETE"});if(a.ok){let e=await a.json().catch(()=>null);n="boolean"==typeof(null==e?void 0:e.saved)?e.saved:t}}catch(e){}h.get(e)===t&&(h.delete(e),null===n?await g(e):v(e,n),u(),d())}}finally{f.delete(e)}}},b=e=>{let t=s(),n=!t.has(e);return n?t.add(e):t.delete(e),c(t),p.add(e),h.set(e,n),m(e),n},y=r,x=i},61405:(e,t,n)=>{n.d(t,{ConsultantSaveHeartButton:()=>s});var a=n(95155),r=n(15239),i=n(12115),l=n(56916);function s(e){let{consultantId:t,saveViewerKind:n,placement:s="overlay",className:o="",useHeartMobileOnMobile:c=!1,overlaySizeClass:u="h-11 w-11"}=e,[d,h]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if("applicant"!==n)return void h(!1);let e=()=>h((0,l.bF)().has(t));return e(),window.addEventListener("lawly:saved-consultants-changed",e),()=>window.removeEventListener("lawly:saved-consultants-changed",e)},[t,n]);let f=(0,i.useCallback)(e=>{if(e.preventDefault(),e.stopPropagation(),"guest"===n){let e="".concat(window.location.pathname).concat(window.location.search);window.location.href="/login?next=".concat(encodeURIComponent(e));return}"staff"!==n&&(h((0,l.ie)(t)),window.dispatchEvent(new CustomEvent("lawly:saved-consultants-changed")))},[t,n]),p=o.trim()||"right-3 top-3",w="inline"===s?"relative z-10 flex h-11 w-11 shrink-0 items-center justify-center p-0 touch-manipulation":"absolute ".concat(p," z-10 flex ").concat(u," shrink-0 items-start justify-end p-0 touch-manipulation"),v="guest"===n?"Sign in to save consultant":"staff"===n?"Saving consultants is available to applicant accounts":d?"Remove from saved consultants":"Save consultant";return(0,a.jsx)("button",{type:"button",onClick:f,className:w,"aria-pressed":"applicant"===n?d:void 0,"aria-label":v,children:d?c?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.default,{src:"/icons/heart-liked.png",alt:"",width:15,height:13,className:"pointer-events-none box-border h-[13px] w-[15px] shrink-0 object-contain lg:hidden","aria-hidden":!0}),(0,a.jsx)(r.default,{src:"/icons/heart-liked.png",alt:"",width:28,height:24,className:"pointer-events-none hidden h-6
1w-[28px] shrink-0 object-contain lg:block","aria-hidden":!0})]}):(0,a.jsx)(r.default,{src:"/icons/heart-liked.png",alt:"",width:28,height:24,className:"pointer-events-none h-6 w-[28px] shrink-0 object-contain","aria-hidden":!0}):c?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.default,{src:"/images/heart-mobile.svg",alt:"",width:15,height:13,className:"pointer-events-none box-border h-[13px] w-[15px] shrink-0 object-contain lg:hidden","aria-hidden":!0}),(0,a.jsx)(r.default,{src:"/icons/heart-like.png",alt:"",width:28,height:24,className:"pointer-events-none hidden h-6 w-[28px] shrink-0 object-contain lg:block","aria-hidden":!0})]}):(0,a.jsx)(r.default,{src:"/icons/heart-like.png",alt:"",width:28,height:24,className:"pointer-events-none h-6 w-[28px] shrink-0 object-contain","aria-hidden":!0})})}},78675:(e,t,n)=>{n.d(t,{Nj:()=>l,Uj:()=>i});var a=n(46884),r=n(45184);let i=e=>{let t=(e=>{var t;if(null==e)return null;let n=String(e).trim();if(""===n)return null;let a=/^(-?)(\d+)(?:\.(\d*))?$/.exec(n);if(!a)return null;let r="-"===a[1]?-1:1,i=parseInt(a[2],10),l=(null!=(t=a[3])?t:"").padEnd(3,"0"),s=r*(100*i+parseInt(l.slice(0,2),10)+ +(parseInt(l[2],10)>=5));return s>0?s:null})(e);if(null==t)return null;let n=(0,r.cO)(t);return n>0?n:null},l=e=>{if(null==i(e.hourlyRate))return{price:"â",savings:null};let t=(e=>{let t=i(e.hourlyRate),n=e.purchasedHours;if(null==t||!Number.isFinite(n)||n<=0)return{grossCents:0,discountPercent:0,discountCents:0,subtotalCents:0};let a=Math.round(t*n),l=Number.isFinite(e.discountPercent)?Math.max(0,Math.min(100,e.discountPercent)):0,s=l>0?Math.round(a*l/100):0,o=(0,r.G8)(Math.max(0,a-s));return{grossCents:a,discountPercent:l,discountCents:a-o,subtotalCents:o}})(e);return{price:(0,a.Rv)(t.subtotalCents),savings:t.discountCents>0?"Save ".concat((0,a.Rv)(t.discountCents)):null}}}}]);
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.