PageSourceSearch

https://xyrus.ai/_next/static/chunks/1768.eea4981e00f193e1.js

js xyrus.ai collected 2026-10-05 15:09:05 UTC 21,044 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1768],{29050:(e,l,t)=>{t.d(l,{H0:()=>r.default,Uj:()=>n.default,b_:()=>i.default,g3:()=>a.default,oh:()=>s.default,qs:()=>c.default,uT:()=>d.default}),t(65902),t(14441);var s=t(44557),n=t(80229),a=t(53275);t(96567);var i=t(62718);t(28651);var d=t(48346),r=t(61200),c=t(68791)},51768:(e,l,t)=>{t.r(l),t.d(l,{default:()=>b});var s=t(95155),n=t(12115),a=t(28990),i=t(29050),d=t(41256),r=t(41180),c=t(87133),o=t(90368),m=t(27937),x=t(91837),u=t(9143),h=t(73697),p=t(78923);function v(){return[{value:"Microsoft_teams_call",label:"Microsoft Teams call"},{value:"Google_meets_call",label:"Google meets call"},{value:"zoom_call",label:"Zoom call"}]}function b(e){let{data:l}=e,{profiles:t,selectedId:b,highlightedCandidateId:j,hideClientDetails:g,view:f,projectId:N,activeTab:y,setActiveTab:w,showEventForm:C,setShowEventForm:_,showNoteForm:k,setShowNoteForm:S,expandedEvents:T,setExpandedEvents:E,truncatable:z,setTruncatable:A,expandedNotes:D,setExpandedNotes:O,truncatableNotes:M,setTruncatableNotes:V,newEvent:L,setNewEvent:$,newNote:q,setNewNote:G,loadingNotes:I,notesError:R,loadingEvents:F,eventsError:H,events:P,allNotes:U,addNoteMutation:W,isCreatingEvent:B,handleCreateNote:X,handleCreateEventSubmit:Y,editingEventId:Z,setEditingEventId:J,handleUpdateEventSubmit:K,isUpdatingEvent:Q,isSavingEvent:ee,editingNoteId:el,setEditingNoteId:et,handleUpdateNoteSubmit:es,isUpdatingNote:en,isDeletingNote:ea,deletingNoteId:ei,isDeletingEvent:ed,deletingEventId:er,getDeleteNoteHandler:ec,getDeleteEventHandler:eo,interactionOptions:em,loadingInteractionWith:ex,handleInteractionWithChange:eu,openEventEditor:eh,isEventFormValid:ep}=(0,x.Y)(l);console.log("isCreatingEvent",B);let{profileData:ev}=(0,u.GV)(e=>e.userProfile),eb=(null==ev?void 0:ev.user_type)==="client",ej=null==l?void 0:l.isStatusLostOrAbandoned;if(0===t.length)return(0,s.jsx)("div",{className:"h-full flex items-center justify-center text-text-secondary",children:"No recommended profiles data."});let eg=function(e){var n,i,c,x;let u=arguments.length>1&&void 0!==arguments[1]&&arguments[1],p=e.ai_score_summary||[],v="detail"===f;return(0,s.jsx)("div",{className:"rounded-lg border p-3 transition-colors ".concat(u?"bg-blue-50 border-blue-300 shadow-md":"border-gray-200"),children:(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("div",{className:"w-12 h-12 rounded-full bg-gray-200 flex items-center justify-center shrink-0 border border-text-stroke/40",children:(0,s.jsx)("span",{className:"text-text-primary font-semibold",children:e.name.split(" ").map(e=>e?e[0]:"").join("").toUpperCase().slice(0,2)})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("h3",{className:"text-base font-semibold text-text-primary truncate",children:e.name}),(0,s.jsx)("p",{className:"text-xs text-text-secondary",children:e.title}),g&&(0,s.jsxs)("div",{className:"mt-2 flex flex-col gap-1 text-xs text-text-secondary",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)("span",{children:"♂"}),(0,s.jsx)("span",{children:e.gender})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)(a.A,{icon:"/images/icons/location-icon.svg",width:12,height:12}),(0,s.jsx)("span",{children:e.location})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1 min-w-0",children:[(0,s.jsx)(a.A,{icon:"/images/icons/building-icon.svg",width:12,height:12}),(0,s.jsx)("span",{className:"truncate",children:e.company})]})]})]})]}),(0,s.jsxs)("div",{className:"flex flex-col justify-between items-end gap-4 ml-15",children:[(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[eb&&(0,s.jsx)(d.A,{ccmScore:Math.round((null!=(x=null!=(c=null==(n=e.extra_data)?void 0:n.ccm_score)?c:e.ccmScore)?x:0)*100),className:"text-right cursor-help flex flex-col",scoreClassName:"text-brand-1st text-2xl font-bold leading-none",labelClassName:"text-[10px] text-text-secondary mt-1",side:"left",sideOffset:"detail"===f?10:340,align:"center",tooltipContentClassName:"",...e.extra_data&&{extraData:e.extra_data},aiScoreSummary:p}),!eb&&g&&(0,s.jsx)(h.A,{rstScore:e.rstScore,aiScoreSummary:p,fitReason:e.fit_reason,tooltipSideOffset:v?-200:110}),!eb&&(0,s.jsx)(d.A,{ccmScore:Math.round(100*((null==e||null==(i=e.extra_data)?void 0:i.ccm_score)||0)),extraData:e.extra_data,aiScoreSummary:p,className:"text-right flex flex-col items-center cursor-help group",scoreClassName:"text-brand-1st text-2xl font-bold leading-none",labelClassName:"text-[10px] text-text-secondary mt-1 group-hover:underline underline-offset-2 text-center",side:"left",sideOffset:v?-40:330,align:"start",tooltipContentClassName:"transform -translate-x-8"})]}),(0,s.jsx)("div",{className:"text-text-secondary cursor-pointer",onClick:()=>{var s,n;"detail"===f&&b===e.id?(null==l||null==(s=l.closeModal)||s.call(l),r.Lx.openDrawer("recommended-profile",{anchor:"right",title:"Recommended profiles",width:500,data:{profiles:t,view:"list",projectId:N,isStatusLostOrAbandoned:ej,refreshRecommendations:null==l?void 0:l.refreshRecommendations}})):(null==l||null==(n=l.closeModal)||n.call(l),r.Lx.openDrawer("recommended-profile",{anchor:"right",width:1e3,t
1itle:"Recommended profiles",data:{profiles:t,selectedId:e.id,view:"detail",initialTab:"events",projectId:N,candidateId:e.id,isStatusLostOrAbandoned:ej,refreshRecommendations:null==l?void 0:l.refreshRecommendations}}))},children:"detail"===f&&b===e.id?(0,s.jsx)(o.A,{}):(0,s.jsx)(m.A,{})})]})]})},e.id)};if("detail"===f&&b){var ef,eN,ey,ew;let e=t.find(e=>e.id===b);return e?(0,s.jsx)("div",{className:"h-full flex flex-col overflow-hidden",children:(0,s.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto pr-1 transition-all duration-300 max-h-[calc(100vh-120px)]",children:(0,s.jsxs)("div",{className:"grid grid-cols-[1fr_1fr] gap-4",children:[(0,s.jsx)("div",{className:"space-y-4",children:null==t?void 0:t.map(e=>eg(e,e.id===b||e.id===j))}),(0,s.jsxs)("div",{className:"rounded-lg border p-4",children:[(0,s.jsx)("div",{className:"flex items-center justify-between mb-3",children:(0,s.jsxs)("h3",{className:"text-lg font-semibold",children:["About ",null==e?void 0:e.name]})}),(0,s.jsx)(c.tU,{value:y,onValueChange:e=>w(e),className:"mb-4",children:(0,s.jsxs)(c.j7,{children:[(0,s.jsx)(c.Xi,{className:"cursor-pointer",value:"events",children:"Events"}),(0,s.jsx)(c.Xi,{className:"cursor-pointer",value:"notes",children:"Notes"})]})}),"notes"===y?(0,s.jsx)("div",{className:"space-y-4  p-1 rounded-lg",children:I?(0,s.jsx)("div",{className:"text-center py-4 text-text-secondary",children:"Loading notes..."}):R?(0,s.jsxs)("div",{className:"text-center py-4 text-error-solid",children:["Error loading notes: ",(null==R?void 0:R.message)||"Unknown error"]}):(0,s.jsxs)(s.Fragment,{children:[ej||k?null:(0,s.jsx)("div",{className:"flex items-center gap-2 text-sm font-medium",children:(0,s.jsx)("span",{className:"cursor-pointer select-none",onClick:()=>{et(null),G({title:"",content:""}),S(e=>!e)},children:"+ Create Note"})}),k&&!el?(0,s.jsxs)("div",{className:"rounded-md bg-text-placeholder/10 p-3",children:[(0,s.jsx)("label",{className:"text-sm font-medium",children:"Title*"}),(0,s.jsx)(c.pd,{className:"mt-1 w-full border rounded-md px-2 py-1 bg-white",placeholder:"Enter note title",value:q.title,onChange:e=>G(l=>({...l,title:e.target.value}))}),(0,s.jsx)("label",{className:"text-sm font-medium mt-3 block",children:"Content*"}),(0,s.jsx)(c.TM,{className:"mt-1 w-full border rounded-md px-2 py-2 min-h-[120px] bg-white",placeholder:"Enter note content",value:q.content,onChange:e=>G(l=>({...l,content:e.target.value}))}),(0,s.jsxs)("div",{className:"mt-3 flex gap-2",children:[(0,s.jsx)(c.$n,{className:"px-3 py-1 rounded-md",disabled:W.isPending||en||!q.title.trim()||!q.content.trim(),onClick:el?es:X,children:W.isPending||en?"Saving...":"Save"}),(0,s.jsx)(c.$n,{variant:"outline",className:"px-3 py-1 rounded-md",onClick:()=>{S(!1),et(null),G({title:"",content:""})},children:"Cancel"})]})]}):null,(null==U?void 0:U.length)===0?ej?(0,s.jsx)("div",{className:"text-center py-4 text-text-secondary",children:"New notes cannot be created."}):(0,s.jsx)("div",{className:"text-center py-4 text-text-secondary",children:"No notes yet. Create your first note above."}):null==U?void 0:U.map(e=>(0,s.jsxs)(n.Fragment,{children:[(0,s.jsxs)("div",{className:"rounded-md border p-3 ".concat(e.isOptimistic?"opacity-70 bg-blue-50":""),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"text-sm font-medium flex items-center gap-2",children:[e.title,e.isOptimistic&&(0,s.jsx)("span",{className:"text-xs text-blue-600 bg-blue-100 px-2 py-1 rounded",children:"Saving..."}),ei===e.id&&(0,s.jsxs)("span",{className:"text-xs text-brand-4th bg-brand-4th/10 px-2 py-1 rounded flex items-center gap-1",children:[(0,s.jsx)("div",{className:"w-3 h-3 border-2 border-t-transparent rounded-full animate-spin"}),"Deleting..."]})]}),!ej&&(0,s.jsx)("div",{className:"text-text-secondary",children:(0,s.jsx)(i.oh,{actions:[{label:"Edit note",onClick:()=>{et(e.id),S(!1),G({title:e.title||"",content:e.content||""})}},{label:ea?"Deleting...":"Delete note",onClick:ec(e.id)}],ariaLabel:"Note actions"})})]}),e.content?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:l=>{if(!l)return;let t=l.scrollHeight>l.clientHeight+1;V(l=>l[e.id]===t?l:{...l,[e.id]:t})},className:"text-xs text-text-secondary mt-1  ".concat(D[e.id]?"":"line-clamp-3"),children:e.content}),M[e.id]||e.content&&e.content.length>240?(0,s.jsx)("button",{type:"button",className:"text-xs text-brand-primary mt-1 cursor-pointer",onClick:()=>O(l=>({...l,[e.id]:!l[e.id]})),children:D[e.id]?"View less":"View more"}):null]}):null,(0,s.jsxs)("div",{className:"text-[10px] text-primary flex justify-end",children:["Added By : ",e.addedBy]})]}),el===e.id?(0,s.jsxs)("div",{className:"mt-2 rounded-md bg-text-placeholder/10 p-3",children:[(0,s.jsx)("label",{className:"text-sm font-medium",children:"Title*"}),(0,s.jsx)(c.pd,{className:"mt-1 w-full border rounded-md px-2 py-1 bg-white",placeholder:"Enter note title",value:q.title,onChange:e=>G(l=>({...l,title:e.target.value}))}
1),(0,s.jsx)("label",{className:"text-sm font-medium mt-3 block",children:"Content*"}),(0,s.jsx)(c.TM,{className:"mt-1 w-full border rounded-md px-2 py-2 min-h-[120px] bg-white",placeholder:"Enter note content",value:q.content,onChange:e=>G(l=>({...l,content:e.target.value}))}),(0,s.jsxs)("div",{className:"mt-3 flex gap-2",children:[(0,s.jsx)(c.$n,{className:"px-3 py-1 rounded-md",disabled:W.isPending||en||!q.title.trim()||!q.content.trim(),onClick:es,children:W.isPending||en?"Saving...":"Save"}),(0,s.jsx)(c.$n,{variant:"outline",className:"px-3 py-1 rounded-md",onClick:()=>{et(null),G({title:"",content:""})},children:"Cancel"})]})]}):null]},e.id))]})}):(0,s.jsx)("div",{className:"space-y-4",children:F?(0,s.jsx)("div",{className:"text-center py-4 text-text-secondary",children:"Loading events..."}):H?(0,s.jsxs)("div",{className:"text-center py-4 text-error-solid",children:["Error loading events: ",(null==H?void 0:H.message)||"Unknown error"]}):(0,s.jsxs)(s.Fragment,{children:[ej||C||Z?null:(0,s.jsx)("div",{className:"flex items-center gap-2 text-sm font-medium",children:(0,s.jsx)("span",{className:"cursor-pointer select-none",onClick:()=>_(e=>!e),children:"+ Create Event"})}),(null==P?void 0:P.length)===0?ej?(0,s.jsx)("div",{className:"text-center py-5 text-text-secondary",children:"New events cannot be created."}):(0,s.jsx)("div",{className:"text-center py-5 text-text-secondary",children:"No events yet. Create your first event above."}):null,C&&!Z?(0,s.jsxs)("div",{className:"rounded-md bg-text-placeholder/10 p-3",children:[(0,s.jsx)("label",{className:"text-sm font-medium",children:"Event Name"}),(0,s.jsx)(c.pd,{value:null==L?void 0:L.type,placeholder:"Enter Event Name",onChange:e=>$(l=>({...l,type:e.target.value}))}),(0,s.jsx)("label",{className:"text-sm font-medium mt-3 block",children:"Scheduled On"}),(0,s.jsx)(c.lr,{className:"mt-1 w-full border rounded-md px-2 py-1",value:L.date||void 0,minDate:new Date,onChange:e=>$(l=>({...l,date:e}))}),(0,s.jsxs)("div",{className:"grid grid-cols-2 items-center w-full gap-1",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)("label",{className:"text-sm font-medium mt-3 block",children:"Start Time"}),(0,s.jsx)(c.AG,{className:"mt-1 border rounded-md px-2 py-1",value:null!=(eN=L.startTime)?eN:void 0,onChange:e=>$(l=>({...l,startTime:e}))})]}),(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)("label",{className:"text-sm font-medium mt-3 block",children:"End Time"}),(0,s.jsx)(c.AG,{className:"mt-1 w-full border rounded-md px-2 py-1",value:null!=(ey=L.endTime)?ey:void 0,minTime:null!=(ew=L.startTime)?ew:void 0,disabled:!L.startTime,onChange:e=>$(l=>({...l,endTime:e}))})]})]}),(0,s.jsxs)("div",{className:"mt-2",children:[(0,s.jsx)("label",{className:"text-sm font-medium mt-3",children:"Timezone"}),(0,s.jsxs)(c.l6,{value:L.timezone||"",onValueChange:e=>$(l=>({...l,timezone:e})),children:[(0,s.jsx)(c.bq,{className:" w-full bg-white border border-text-primary/20 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0",children:(0,s.jsx)(c.yv,{placeholder:"Select timezone"})}),(0,s.jsx)(c.gC,{className:"bg-text-bg z-9999 max-h-[200px]",children:null==(ef=(0,p.yn)())?void 0:ef.map(e=>(0,s.jsx)(c.eb,{value:e.value,children:e.label},e.value))})]})]}),(0,s.jsx)("label",{className:"text-sm font-medium mt-3 block",children:"Mode of Interaction"}),(0,s.jsxs)(c.l6,{value:L.mode_of_interaction||"",onValueChange:e=>$(l=>({...l,mode_of_interaction:e})),children:[(0,s.jsx)(c.bq,{className:"w-full bg-white",children:(0,s.jsx)(c.yv,{placeholder:"Select mode"})}),(0,s.jsx)(c.gC,{className:"bg-text-bg z-9999",children:v().map(e=>(0,s.jsx)(c.eb,{value:e.value,children:e.label},e.value))})]}),(0,s.jsx)("label",{className:"text-sm font-medium mt-3 block",children:"Interaction With"}),(0,s.jsxs)(c.l6,{value:L.selected_member_id||"",onValueChange:e=>{eu(e)},children:[(0,s.jsx)(c.bq,{className:"w-full bg-white",children:(0,s.jsx)(c.yv,{placeholder:L.client_member_name||L.person||"Select"})}),(0,s.jsx)(c.gC,{className:"bg-text-bg z-9999",children:ex?(0,s.jsx)(c.eb,{value:"loading",disabled:!0,children:"Loading members..."}):em&&em.length>0?em.map(e=>(0,s.jsx)(c.eb,{value:String(e.id),children:e.label},e.id)):(0,s.jsx)(c.eb,{value:"no-contacts",disabled:!0,children:"No members available"})})]}
1),(0,s.jsx)("label",{className:"text-sm font-medium mt-3 block",children:"Add Description"}),(0,s.jsx)(c.TM,{className:"mt-1 w-full border rounded-md px-2 py-2 min-h-[120px] bg-white",placeholder:"Enter here",value:L.description,onChange:e=>$(l=>({...l,description:e.target.value}))}),(0,s.jsxs)("div",{className:"mt-3 flex gap-2",children:[(0,s.jsx)(c.$n,{type:"button",className:"px-3 py-1 rounded-md",disabled:ee||!!B||!!Q||!ep,onClick:Z?K:Y,children:ee?"Saving...":"Save"}),(0,s.jsx)(c.$n,{variant:"outline",className:"px-3 py-1 rounded-md",onClick:()=>{_(!1),$({type:"",date:null,startTime:null,endTime:null,timezone:"",mode_of_interaction:"",person:"",selected_member_id:"",selected_member_type:"",description:"",client_member_name:""}),J(null)},children:"Cancel"})]})]}):null,null==P?void 0:P.map(e=>{var l,t,a,d;return(0,s.jsxs)(n.Fragment,{children:[(0,s.jsxs)("div",{className:"rounded-md border p-3",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"text-sm font-semibold flex items-center gap-2",children:[e.title,er===e.id?(0,s.jsxs)("span",{className:"text-xs text-brand-4th bg-brand-4th/10 px-2 py-1 rounded flex items-center gap-1",children:[(0,s.jsx)("div",{className:"w-3 h-3 border-2 border-t-transparent rounded-full animate-spin"}),"Deleting..."]}):null]}),!ej&&(0,s.jsx)("div",{className:"text-text-secondary",children:(0,s.jsx)(i.oh,{actions:[{label:"Edit event",onClick:()=>{eh(e)}},{label:ed?"Deleting...":"Delete event",onClick:eo(e.id)}],ariaLabel:"Event actions"})}),e.interactedWith?(0,s.jsxs)("div",{className:"text-xs text-text-secondary",children:["Added by : ",e.interactedWith]}):null]}),e.description?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:l=>{if(!l)return;let t=l.scrollHeight>l.clientHeight+1;A(l=>l[e.id]===t?l:{...l,[e.id]:t})},className:"text-xs text-text-secondary mt-2 ".concat(T[e.id]?"":"line-clamp-2"),children:e.description}),z[e.id]||e.description&&e.description.length>160?(0,s.jsx)("button",{type:"button",className:"text-xs text-brand-primary mt-1 cursor-pointer",onClick:()=>E(l=>({...l,[e.id]:!l[e.id]})),children:T[e.id]?"View less":"View more"}):null]}):(0,s.jsx)("div",{className:"text-xs text-text-secondary mt-2",children:"No description to show"}),e.scheduledOn?(0,s.jsxs)("div",{className:"text-xs text-text-secondary mt-3",children:["Scheduled On : ",e.scheduledOn]}):null,e.endsOn?(0,s.jsxs)("div",{className:"text-xs text-text-secondary mt-3",children:["Ends at : ",e.endsOn]}):null,e.interactedOn?(0,s.jsxs)("div",{className:"text-xs text-text-secondary mt-3",children:["Interacted On : ",e.interactedOn]}):null]}),Z===e.id?(0,s.jsxs)("div",{className:"mt-2 rounded-md bg-text-placeholder/10 p-3",children:[(0,s.jsx)("label",{className:"text-sm font-medium",children:"Event Name"}),(0,s.jsx)(c.pd,{value:null==L?void 0:L.type,placeholder:"Enter Event Name",onChange:e=>$(l=>({...l,type:e.target.value}))}),(0,s.jsx)("label",{className:"text-sm font-medium mt-3 block",children:"Scheduled On"}),(0,s.jsx)(c.lr,{className:"mt-1 w-full border rounded-md px-2 py-1",value:L.date||void 0,minDate:new Date,onChange:e=>$(l=>({...l,date:e}))}),(0,s.jsxs)("div",{className:"grid grid-cols-2 items-center w-full gap-1",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-sm font-medium mt-3 block",children:"Start Time"}),(0,s.jsx)(c.AG,{className:"mt-1 border rounded-md px-2 py-1",value:null!=(t=L.startTime)?t:void 0,onChange:e=>$(l=>({...l,startTime:e}))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-sm font-medium mt-3 block",children:"End Time"}),(0,s.jsx)(c.AG,{className:"mt-1 w-full border rounded-md px-2 py-1",value:null!=(a=L.endTime)?a:void 0,minTime:null!=(d=L.startTime)?d:void 0,disabled:!L.startTime,onChange:e=>$(l=>({...l,endTime:e}))})]})]}),(0,s.jsxs)("div",{className:"mt-2",children:[(0,s.jsx)("label",{className:"text-sm font-medium mt-3",children:"Timezone"}),(0,s.jsxs)(c.l6,{value:L.timezone||"",onValueChange:e=>$(l=>({...l,timezone:e})),children:[(0,s.jsx)(c.bq,{className:"w-full bg-white border border-text-primary/20 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0",children:(0,s.jsx)(c.yv,{placeholder:"Select timezone"})}),(0,s.jsx)(c.gC,{className:"bg-text-bg z-9999 max-h-[200px]",children:null==(l=(0,p.yn)())?void 0:l.map(e=>(0,s.jsx)(c.eb,{value:e.value,children:e.label},e.value))})]})]}
1),(0,s.jsx)("label",{className:"text-sm font-medium mt-3 block",children:"Mode of Interaction"}),(0,s.jsxs)(c.l6,{value:L.mode_of_interaction||"",onValueChange:e=>$(l=>({...l,mode_of_interaction:e})),children:[(0,s.jsx)(c.bq,{className:"w-full bg-white",children:(0,s.jsx)(c.yv,{placeholder:"Select mode"})}),(0,s.jsx)(c.gC,{className:"bg-text-bg z-9999",children:v().map(e=>(0,s.jsx)(c.eb,{value:e.value,children:e.label},e.value))})]}),(0,s.jsx)("label",{className:"text-sm font-medium mt-3 block",children:"Interaction With"}),(0,s.jsxs)(c.l6,{value:L.selected_member_id||"",onValueChange:e=>{eu(e)},children:[(0,s.jsx)(c.bq,{className:"w-full bg-white",children:(0,s.jsx)(c.yv,{placeholder:L.client_member_name||L.person||"Select"})}),(0,s.jsx)(c.gC,{className:"bg-text-bg z-9999",children:ex?(0,s.jsx)(c.eb,{value:"loading",disabled:!0,children:"Loading members..."}):em&&em.length>0?em.map(e=>(0,s.jsx)(c.eb,{value:String(e.id),children:e.label},e.id)):(0,s.jsx)(c.eb,{value:"no-contacts",disabled:!0,children:"No members available"})})]}),(0,s.jsx)("label",{className:"text-sm font-medium mt-3 block",children:"Add Description"}),(0,s.jsx)(c.TM,{className:"mt-1 w-full border rounded-md px-2 py-2 min-h-[120px] bg-white",placeholder:"Enter here",value:L.description,onChange:e=>$(l=>({...l,description:e.target.value}))}),(0,s.jsxs)("div",{className:"mt-3 flex gap-2",children:[(0,s.jsx)(c.$n,{className:"px-3 py-1 rounded-md",disabled:!!B||!!Q||!ep,onClick:K,children:Q||B?"Saving...":"Save"}),(0,s.jsx)(c.$n,{variant:"outline",className:"px-3 py-1 rounded-md",onClick:()=>{J(null),$({type:"",date:null,startTime:null,endTime:null,timezone:"",mode_of_interaction:"",person:"",selected_member_id:"",selected_member_type:"",description:"",client_member_name:""})},children:"Cancel"})]})]}):null]},e.id)})]})})]})]})})}):null}return(0,s.jsx)("div",{className:"h-full flex flex-col overflow-hidden",children:(0,s.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto space-y-4 pr-1 max-h-[calc(100vh-120px)]",children:t.map(e=>eg(e,b?e.id===b:e.id===j))})})}}}]);

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.