1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[699],{15992:(e,t,s)=>{s.d(t,{A7:()=>y,DI:()=>x,Dz:()=>g,M9:()=>o,Rt:()=>l,Tm:()=>m,V_:()=>h,Wl:()=>c,bR:()=>a,cZ:()=>u,ds:()=>p,h2:()=>i,lU:()=>v,oW:()=>r,sJ:()=>j,wp:()=>d,z5:()=>n});let n="/images/icons/pencil-edit.svg",a="/images/icons/phone-icon.svg",c="/images/icons/globe-icon.svg",i="/images/icons/email-icon.svg",r="/images/icons/location-icon.svg",l="/images/icons/link-icon.svg",o="/images/icons/refresh-icon.svg",d="/images/icons/share-icon.svg",m="/images/icons/bag-icon.svg",u="/images/icons/document-icon.svg",p="/images/icons/right-arrow-icon.svg",h="/images/icons/linkedinIcon.svg",g="/images/icons/scheduled-calendar-icon.svg",x="/images/icons/placeholder-no-engagements.svg",j="/images/icons/impersonate-user-icon.svg",v="/images/icons/UserContactsExpand.svg",y="/images/client/client-information-circle.svg"},18514:(e,t,s)=>{s.d(t,{A:()=>n});let n=(0,s(71847).A)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},37772:(e,t,s)=>{s.d(t,{A:()=>n});let n=(0,s(71847).A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},60919:(e,t,s)=>{s.d(t,{pe:()=>a});let{Axios:n,AxiosError:a,CanceledError:c,isCancel:i,CancelToken:r,VERSION:l,all:o,Cancel:d,isAxiosError:m,spread:u,toFormData:p,AxiosHeaders:h,HttpStatusCode:g,formToJSON:x,getAdapter:j,mergeConfig:v}=s(95125).A},71360:(e,t,s)=>{s.d(t,{A:()=>n});let n=(0,s(71847).A)("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},73952:(e,t,s)=>{s.d(t,{X:()=>a});var n=s(12115);function a(e){let{onLoadMore:t,hasMore:s,isLoading:a,threshold:c=100,debounceMs:i=100}=e,r=(0,n.useRef)(null),l=(0,n.useRef)(null),o=(0,n.useRef)(null),d=(0,n.useCallback)(e=>{let n=e[0];n&&n.isIntersecting&&s&&!a&&(o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{t()},i))},[t,s,a,i]);return(0,n.useEffect)(()=>{let e=l.current;if(e)return r.current=new IntersectionObserver(d,{root:null,rootMargin:"0px 0px ".concat(c,"px 0px"),threshold:.1}),r.current.observe(e),()=>{r.current&&r.current.disconnect(),o.current&&clearTimeout(o.current)}},[c,s,a,i,d]),l}},94489:(e,t,s)=>{s.r(t),s.d(t,{default:()=>d});var n=s(95155),a=s(12115),c=s(27638),i=s(65229),r=s(79040),l=s(73952);function o(e){var t,s;let{recruiterSummary:c,clientNotes:o=[],onClose:d,loadMoreClientNotes:m,hasMoreClientNotes:u=!1,isLoadingMoreClientNotes:p=!1,onProjectClick:h}=e,g=!!(c.content&&""!==c.content.trim()),x=!!(c.summaries&&c.summaries.length>0),j=!!(o&&o.length>0),v=j&&o[0]?{project_id:o[0].project_id,project_name:o[0].project_name}:x&&(null==(s=c.summaries)?void 0:s[0])?{project_id:c.summaries[0].project_id,project_name:c.summaries[0].project_name}:{project_id:void 0,project_name:void 0},y=(0,a.useRef)(null),f=(0,a.useCallback)(async()=>{m&&u&&!p&&await m()},[m,u,p]),_=(0,l.X)({onLoadMore:f,hasMore:u,isLoading:p,threshold:100,debounceMs:200});return(0,n.jsxs)("div",{className:"h-full flex flex-col min-h-0","data-testid":"client-summary-list",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between py-3 bg-white flex-shrink-0",children:[(0,n.jsx)("h3",{className:"text-lg font-semibold text-card-foreground",children:"Client Notes"}),(0,n.jsx)("div",{className:"flex items-center gap-3",children:(0,n.jsx)("button",{onClick:d,className:"p-2 rounded-lg cursor-pointer","data-testid":"remove-section-button",children:(0,n.jsx)(i.A,{className:"h-4 w-4 text-icon-primary"})})})]}),(0,n.jsx)("div",{ref:y,className:"flex-1 overflow-y-auto py-3 min-h-0",children:(0,n.jsxs)("div",{className:"space-y-6 px-0",children:[g&&(0,n.jsx)(r.A,{content:c.content,lastUpdated:c.lastUpdated,isAISummary:!0,bg:"bg-bg-card",...v.project_id&&{project_id:v.project_id},...v.project_name&&{project_name:v.project_name},...h&&{onProjectClick:h}}),j&&(0,n.jsx)("div",{className:"space-y-4",children:o.map((e,t)=>(0,n.jsx)(r.A,{title:e.note_title||"Client Note",content:e.note_data,lastUpdated:e.last_modified,...(e.updated_by||e.author_name)&&{updatedBy:e.updated_by||e.author_name},dataTestId:"client-note-".concat(t),allowEdit:!1,...e.project_id&&{project_id:e.project_id},...e.project_name&&{project_name:e.project_name},...h&&{onProjectClick:h}},e.id))}),!j&&x&&(0,n.jsx)("div",{className:"space-y-4",children:null==(t=c.summaries)?void 0:t.map((e,t)=>(0,n.jsx)(r.A,{title:e.title,content:e.description,lastUpdated:e.lastUpdated,updatedBy:e.updatedBy,...e.project_name&&{project_id:e.project_id,project_name:e.project_name},dataTestId:"client-summary-".concat(t),allowEdit:!1,...h&&{onProjectClick:h}},t))}),p&&(0,n.jsx)("div",{ref:_,className:"text-center py-4",children:(0,n.jsxs)("div",{className:"inline-flex items-center gap-2 text-text-secondary",children:[(0,n.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent roun
1ded-full animate-spin"}),"Loading more notes..."]})}),u&&!p&&(0,n.jsx)("div",{ref:_,className:"text-center py-4",children:(0,n.jsxs)("div",{className:"inline-flex items-center gap-2 text-text-secondary",children:[(0,n.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin opacity-50"}),"Scroll to load more..."]})}),!g&&!x&&!j&&(0,n.jsx)("div",{className:"text-center py-8",children:(0,n.jsx)("p",{className:"text-text-secondary",children:"No client notes content available."})})]})})]})}function d(e){let{data:t}=e,[s,i]=(0,a.useState)([]),[r,l]=(0,a.useState)(0),[d,m]=(0,a.useState)(!0),[u,p]=(0,a.useState)(!1),h=e=>null!==e&&"object"==typeof e&&"recruiterSummary"in e;(0,a.useEffect)(()=>{h(t)&&t.clientNotes&&(i(t.clientNotes),l(0),m(10===t.clientNotes.length))},[t]),(0,a.useEffect)(()=>{let e=c.oA.subscribe(e=>{e&&Array.isArray(e)&&(i(e),l(Math.floor(e.length/10)),m(e.length%10==0&&e.length>0))});return()=>e.unsubscribe()},[]),(0,a.useEffect)(()=>{h(t)&&t.fetchClientNotes&&t.fetchClientNotes().catch(()=>{})},[t]);let g=async()=>{if(!d||u)return;p(!0);let e=r+1;try{if(h(t)&&t.loadMoreClientNotes){let n=await t.loadMoreClientNotes(10*e,10);if(n.length>0){let t=[...s,...n];i(t),l(e),m(10===n.length),c.oA.next(t)}else m(!1)}}catch(e){}finally{p(!1)}},x=h(t)?t.recruiterSummary:void 0;return x?(0,n.jsx)(o,{recruiterSummary:x,clientNotes:s,onClose:()=>{var e;return null==t||null==(e=t.closeModal)?void 0:e.call(t)},loadMoreClientNotes:g,hasMoreClientNotes:d,isLoadingMoreClientNotes:u,onProjectClick:()=>{var e;null==t||null==(e=t.closeModal)||e.call(t)}}):(0,n.jsx)("div",{className:"p-6 text-center","data-testid":"no-client-summary-message",children:(0,n.jsx)("p",{className:"text-text-secondary",children:"No client notes available."})})}}}]);
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.