PageSourceSearch

https://xyrus.ai/_next/static/chunks/1093.f07404c89176c38b.js

js xyrus.ai collected 2026-10-05 15:09:03 UTC 22,648 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1093],{4262:(e,t,i)=>{i.r(t),i.d(t,{default:()=>b});var r=i(95155),a=i(12115),n=i(98734),s=i(44193),o=i(18720),l=i(27638),d=i(69048);let c=n.Ik({title:n.Yj().min(1,"Note title is required").max(100,"Title must be less than 100 characters"),content:n.Yj().min(1,"Note description is required").max(5e3,"Content must be less than 5000 characters"),file:n.Nl(File).optional(),documentUrl:n.Yj().optional(),documentName:n.Yj().optional()});var u=i(65229),m=i(33789),p=i(90235),x=i(87133),f=i(51861),v=i(15992),g=i(28990);function h(e){let{editingIndex:t,formData:i,errors:n,isSubmitting:s,isCreatingNote:l=!1,isUpdatingNote:c=!1,onInputChange:h,onFileChange:j,onSave:y,onCancel:N}=e,b=(0,a.useRef)(null),[_,S]=(0,a.useState)(!1),C=s||l||c;return(0,r.jsxs)("div",{className:"h-full flex flex-col","data-testid":"xqtiv-note-form",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between py-3 bg-white px-3",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold text-card-foreground",children:null!==t?"Edit Note":"Add Note"}),(0,r.jsx)("button",{onClick:N,className:"p-2 rounded-lg cursor-pointer","data-testid":"close-edit-note-form",children:(0,r.jsx)(u.A,{className:"h-4 w-4 text-icon-primary"})})]}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto py-3 px-3",children:(0,r.jsxs)("div",{className:"space-y-6 px-0",children:[n.general&&(0,r.jsx)("div",{className:"p-3 bg-error-bg border border-error-solid rounded-lg",children:(0,r.jsx)("p",{className:"text-sm text-error-solid",children:n.general})}),(0,r.jsxs)("div",{className:"space-y-2","data-error":!!n.title,children:[(0,r.jsx)(p.Label,{htmlFor:"title",className:"text-s font-semibold",style:{color:"var(--color-foreground)"},children:"Note Title *"}),(0,r.jsx)(m.Input,{id:"title",value:i.title,onChange:e=>h("title",e.target.value),placeholder:"Enter Here",className:"bg-white ".concat(n.title?"aria-invalid:ring-error-solid/20 dark:aria-invalid:ring-error-solid/40 aria-invalid:border-error-solid":""),"data-testid":"note-title-input",disabled:C}),n.title&&(0,r.jsx)("p",{className:"text-xs text-error-solid","data-testid":"title-error",children:n.title})]}),(0,r.jsxs)("div",{className:"space-y-2","data-error":!!n.content,children:[(0,r.jsx)(p.Label,{htmlFor:"content",className:"text-s font-semibold",style:{color:"var(--color-foreground)"},children:"Note Description *"}),(0,r.jsx)(f.A,{value:i.content,onChange:e=>h("content",e),placeholder:"Enter Here",dataTestId:"note-content-input",className:n.content?"border-error-solid":"",disabled:C},"editor-".concat(t||"new")),n.content&&(0,r.jsx)("p",{className:"text-xs text-error-solid","data-testid":"content-error",children:n.content})]}),i.documentUrl?(0,r.jsxs)("div",{className:"space-y-2","data-testid":"existing-document-display",children:[(0,r.jsx)(p.Label,{className:"text-s font-semibold",style:{color:"var(--color-foreground)"},children:"Document"}),(0,r.jsxs)("div",{className:"flex items-center gap-3 p-4 border border-text-stroke rounded-lg bg-text-bg",children:[(0,r.jsx)("div",{className:"flex items-center justify-center",children:(0,r.jsx)(g.A,{icon:"".concat(v.cZ,"#document_icon"),width:20,height:20,color:"var(--color-secondary-text)"})}),(0,r.jsx)("div",{className:"flex-1 text-sm text-text-placeholder hover:text-text-primary",children:(0,r.jsx)("a",{href:i.documentUrl,target:"_blank",rel:"noopener noreferrer",className:"hover:underline cursor-pointer","data-testid":"note-form-document-link",children:i.documentName||"Document"})})]})]}):(0,r.jsxs)("div",{className:"space-y-2","data-error":!!n.file,children:[(0,r.jsx)(p.Label,{className:"text-s font-semibold",style:{color:"var(--color-foreground)"},children:"Upload Document"}),(0,r.jsxs)("div",{className:"border-2 border-dashed rounded-lg p-6 text-center transition-colors bg-bg-nav ".concat(C?"cursor-not-allowed opacity-50":"cursor-pointer"," ").concat(n.file?"border-error-solid bg-error-bg":_&&!C?"border-brand-primary bg-brand-primary/5":"border-text-stroke hover:border-brand-primary"),onClick:C?void 0:()=>{var e;null==(e=b.current)||e.click()},onDrop:C?void 0:e=>{var t;e.preventDefault(),S(!1);let i=(null==(t=e.dataTransfer.files)?void 0:t[0])||null;if(i){let e=(0,d.nJ)(i,["TRANSCRIPTS"]);if(!e.isValid)return void o.oR.error("Invalid File",{description:e.errorMessage});j(i)}},onDragOver:C?void 0:e=>{e.preventDefault(),S(!0)},onDragLeave:C?void 0:e=>{e.preventDefault(),S(!1)},"data-testid":"transcript-upload-area",children:[(0,r.jsx)("input",{ref:b,type:"file",accept:d.YP.TRANSCRIPTS,onChange:e=>{var t;let i=(null==(t=e.target.files)?void 0:t[0])||null;if(i){let t=(0,d.nJ)(i,["TRANSCRIPTS"]);if(!t.isValid){e.target&&(e.target.value=""),o.oR.error("Invalid File",{description:t.errorMessage});return}}j(i)},className:"hidden","data-testid":"transcript-file-input",disabled:C}),i.file?(0,r.jsxs)("div",{className:"relative space-y-2",children:[(0,r.jsx)("button",{onClick:e=>{e.stopPropagation(),j(null)},className:"absolute -top-2 -right-2 p-1 rounded-lg bg-white border border-text-stroke hover:bg-bg-card transition-colors cursor-pointer shadow-sm","data-testid":"remove-file-button",disabled:C,children:(0,r.jsx)(u.A,{className:"h-3 w-3 text-icon-primary"})}),(0,r.jsx)(g.A,{icon:"".concat(v.cZ,"#document_icon"),width:24,height:24,color:"var(--color-icon-primary)"}),(0,r.jsx)("div",{className:"text-sm font-medium text-text-primary",children:i.file.name}),(0,r.jsxs)("div",{className:"text-xs text-text-secondary",children:[(i.file.size/1024/1024).toFixed(2)," MB"]})]}):(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(g.A,{icon:"".concat(v.cZ,"#document_icon"),width:24,height:24,color:"var(--color-icon-primary)"}),(0,r.jsx)("div",{className:"text-sm font-medium text-text-primary",children:"Upload Here"}),(0,r.jsxs)("div",{className:"text-xs text-text-secondary",children:["Upload document and get note created (Max: ",(0,d.E5)(),")"]})]})]}),n.file&&(0,r.jsx)("p",{className:"text-xs text-error-solid","data-testid":"file-error",children:n.file})]})]})}),(0,r.jsx)("div",{className:"py-3 px-3",children:(0,r.jsxs)("div",{className:"flex gap-3 justify-start",children:[(0,r.jsx)(x.$n,{onClick:y,variant:"primary",size:"md",dataTestId:"save-note",disabled:s,children:s?"Saving...":"Save"}),(0,r.jsx)(x.$n,{onClick:N,variant:"outline",size:"md",dataTestId:"cancel-note",disabled:s,children:"Cancel"})]})})]})}var j=i(79040),y=i(73952);function N(e){var t,i;let{xqtivSummary:n,xqtivNotes:s=[],onAdd:o,onEdit:l,onDelete:d,onClose:c,loadMoreXqtivNotes:m,hasMoreXqtivNotes:p=!1,isLoadingMoreXqtivNotes:x=!1,isCreatingNote:f=!1,isUpdatingNote:v=!1,isDeletingNote:g=!1,onProjectClick:h}=e,N=!!(n.content&&""!==n.content.trim()),b=!!(n.summaries&&n.summaries.length>0),_=!!(s&&s.length>0),S=_&&s[0]?{project_id:s[0].project_id,project_name:s[0].project_name}:b&&(null==(i=n.summaries)?void 0:i[0])?{project_id:n.summaries[0].project_id,project_name:n.summaries[0].project_name}:{project_id:void 0,project_name:void 0},C=(0,a.useRef)(null),w=(0,a.useCallback)(async()=>{m&&p&&!x&&await m()},[m,p,x]),A=(0,y.X)({onLoadMore:w,hasMore:p,isLoading:x,threshold:100,debounceMs:200});return(0,r.jsxs)("div",{className:"h-full flex flex-col min-h-0","data-testid":"xqtiv-summary-list",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between py-3 bg-white shrink-0",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold text-card-foreground",children:"XQtiv Notes"}),(0,r.jsx)("div",{className:"flex items-center gap-3",children:(0,r.jsx)("button",{onClick:c,className:"p-2 rounded-lg cursor-pointer","data-testid":"remove-section-button",children:(0,r.jsx)(u.A,{className:"h-4 w-4 text-icon-primary"})})})]}),(0,r.jsx)("div",{ref:C,className:"flex-1 overflow-y-auto py-3 min-h-0",children:(0,r.jsxs)("div",{className:"space-y-6 px-0",children:[N&&(0,r.jsx)(j.A,{aiBadgeText:"AI Summarized",content:n.content,lastUpdated:n.lastUpdated,isAISummary:n.isAIGenerated,bg:"bg-bg-card",...S.project_id&&{project_id:S.project_id},...S.project_name&&{project_name:S.project_name},...h&&{onProjectClick:h}}),(0,r.jsx)("div",{className:"text-left",children:(0,r.jsx)("button",{onClick:o,disabled:f||v,className:"text-sm text-card-foreground hover:text-card-foreground
1/80 font-medium cursor-pointer flex items-center gap-1 disabled:opacity-50 disabled:cursor-not-allowed","data-testid":"add-new-xqtiv-summary",children:f?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"w-3 h-3 border border-current border-t-transparent rounded-full animate-spin"}),"Creating..."]}):"+ Add new"})}),_&&(0,r.jsx)("div",{className:"space-y-4",children:null==s?void 0:s.map((e,t)=>(0,r.jsx)(j.A,{isAISummary:e.ai_summary_flag,title:e.note_title||"XQtiv Note",content:e.note_data,lastUpdated:e.last_modified,...(e.updated_by||e.author_name)&&{updatedBy:e.updated_by||e.author_name},dataTestId:"xqtiv-note-".concat(t),allowEdit:!(null==e?void 0:e.ai_summary_flag),...d&&{onDelete:()=>d(t,e)},onEdit:()=>{l(t,{id:e.id,title:e.note_title||"XQtiv Note",description:e.note_data,lastUpdated:e.last_modified,updatedBy:e.updated_by||e.author_name||"",...e.project_id&&{project_id:e.project_id},...e.project_name&&{project_name:e.project_name},...e.note_document_url&&{documentUrl:e.note_document_url},...e.document_name&&{documentName:e.document_name}})},...e.project_id&&{project_id:e.project_id},...e.project_name&&{project_name:e.project_name},...h&&{onProjectClick:h},...e.note_document_url&&{documentUrl:e.note_document_url,documentName:e.document_name||"Document",documentTestId:"xqtiv-note-document-".concat(t)}},e.id))}),!_&&b&&(0,r.jsx)("div",{className:"space-y-4",children:null==(t=n.summaries)?void 0:t.map((e,t)=>(0,r.jsx)(j.A,{allowEdit:!e.ai_summary_flag,isAISummary:e.ai_summary_flag||!1,title:e.title,content:e.description,lastUpdated:e.lastUpdated,updatedBy:e.updatedBy,dataTestId:"xqtiv-summary-".concat(t),onEdit:()=>l(t,e),...d&&{onDelete:()=>d(t,e)},...e.project_id&&{project_id:e.project_id},...e.project_name&&{project_name:e.project_name},...h&&{onProjectClick:h},...e.documentUrl&&{documentUrl:e.documentUrl,documentName:e.documentName||"Document",documentTestId:"xqtiv-summary-document-".concat(t)}},t))}),x&&(0,r.jsx)("div",{ref:A,className:"text-center py-4",children:(0,r.jsxs)("div",{className:"inline-flex items-center gap-2 text-text-secondary",children:[(0,r.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),"Loading more notes..."]})}),p&&!x&&(0,r.jsx)("div",{ref:A,className:"text-center py-4",children:(0,r.jsxs)("div",{className:"inline-flex items-center gap-2 text-text-secondary",children:[(0,r.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin opacity-50"}),"Scroll to load more..."]})}),!N&&!b&&!_&&(0,r.jsxs)("div",{className:"text-center py-8",children:[(0,r.jsx)("p",{className:"text-text-secondary",children:"No XQtiv notes content available."}),(0,r.jsx)("p",{className:"text-sm text-text-tertiary mt-2",children:'Click "Add new" to create your first XQtiv notes.'})]})]})})]})}function b(e){let{data:t,mode:i="list"}=e,[n,u]=(0,a.useState)(void 0),[m,p]=(0,a.useState)([]),[x,f]=(0,a.useState)(0),[v,g]=(0,a.useState)(!0),[j,y]=(0,a.useState)(!1),b=e=>null!==e&&"object"==typeof e&&"xqtivSummary"in e,_=(0,a.useRef)(null);(0,a.useEffect)(()=>{var e;if(!b(t))return;let i=null!=(e=t.candidateId)?e:"";_.current!==i&&(_.current=i,u(t.xqtivSummary),t.xqtivNotes&&(p(t.xqtivNotes),f(0),g(10===t.xqtivNotes.length)))},[t]),(0,a.useEffect)(()=>{let e=l.zV.subscribe(e=>{e&&Array.isArray(e)&&(p(e),f(Math.floor(e.length/10)),g(e.length%10==0&&e.length>0))});return()=>e.unsubscribe()},[]);let S=b(t)?t.mode:void 0,C=b(t)?t.candidateId:"",w=b(t)?t.createNote:void 0,A=b(t)?t.updateNote:void 0,M=b(t)?t.deleteNote:void 0,k=!!b(t)&&t.isCreatingNote,I=!!b(t)&&t.isUpdatingNote,E=!!b(t)&&t.isDeletingNote,T=b(t)?t.fetchXqtivNotes:void 0;(0,a.useEffect)(()=>{T&&T().catch(()=>{})},[T]);let R=async()=>{if(!v||j)return;y(!0);let e=x+1;try{if(b(t)&&t.loadMoreXqtivNotes){let i=await t.loadMoreXqtivNotes(10*e,10);if(i.length>0){let t=[...m,...i];p(t),f(e),g(10===i.length),l.zV.next(t)}else g(!1)}}catch(e){}finally{y(!1)}},{isEditing:U,editingIndex:D,formData:q,errors:X,isSubmitting:L,xqtivSummary:P,handleAdd:F,handleEdit:V,handleCancel:z,handleInputChange:O,handleFileChange:B,handleSave:J,clearErrors:G}=function(e){let{initialMode:t="list",initialSummary:i,candidateId:r,createNote:n,updateNote:u,isCreatingNote:m=!1,isUpdatingNote:p=!1,closeModal:x,showLoading:f,xqtivSummary:v}=e,[g,h]=(0,a.useState)("add"===t),[j,y]=(0,a.useState)(null),[N,b]=(0,a.useState)(null),[_,S]=(0,a.useState)(i||null),[C,w]=(0,a.useState)({title:"edit"===t&&i?i.title:"",content:"edit"===t&&i?i.description:"",file:void 0}),[A,M]=(0,a.useState)({}),[k,I]=(0,a.useState)(!1),[E,T]=(0,a.useState)(v);(0,a.useEffect)(()=>{v&&T(v)},[v]),(0,a.useEffect)(()=>{let e=l._f.subscribe(e=>{e&&T(t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)});return()=>e.unsubscribe()},[]),(0,a.useEffect)(()=>{let e=l.zV.subscribe(e=>{e&&Array.isArray(e)&&T(t=>{if(!t)return t;let i=e.map(e=>({id:e.id,title:e.note_title||"XQtiv Note",description:e.note_data,lastUpdated:e.last_modified,updatedBy:e.author_id,...e.project_id&&{project_id:e.project_id},...e.note_document_url&&{documentUrl:e.note_document_url},...e.document_name&&{documentName:e.document_name}}));return{...t,summaries:i}})});return()=>e.unsubscribe()},[]);let R=()=>{h(!1),y(null),b(null),S(null),w({title:"",content:"",file:void 0}),M({})},U=(e,t)=>{w(i=>({...i,[e]:t})),A[e]&&M(t=>({...t,[e]:""}))},D=async()=>
1{if(I(!0),!(()=>{try{c.parse(C);let e={};if(C.file){let t=(0,d.nJ)(C.file,["TRANSCRIPTS"]);t.isValid||(e.file=t.errorMessage||"Invalid file")}if(Object.keys(e).length>0)return M(e),!1;return M({}),!0}catch(e){if(e instanceof s.G){let t={};if(e.errors.forEach(e=>{t[e.path[0]]=e.message}),C.file){let e=(0,d.nJ)(C.file,["TRANSCRIPTS"]);e.isValid||(t.file=e.errorMessage||"Invalid file")}M(t)}return!1}})())return void I(!1);if(!n||!u){M({general:"Update function not available. Please try again."}),I(!1);return}let e=N&&""!==N.trim();null==f||f(!0,e?"Updating note...":"Creating note...");try{let t={content:C.content,title:C.title||""};C.file&&(t.file=C.file),e?((null==_?void 0:_.project_id)&&(t.project_id=_.project_id),await u(N,t),o.oR.success("Note Updated",{description:"Note has been updated successfully"})):(await n(t),o.oR.success("Note Created",{description:"Note has been created successfully"})),null==f||f(!1),R(),e&&x&&x()}catch(t){null==f||f(!1);let e=t instanceof Error?t.message:"Failed to save note";o.oR.error("Save Failed",{description:e,action:{label:"Retry",onClick:()=>{M(e=>{let{general:t,...i}=e;return i}),D()}}}),M({general:"Failed to save note. Please try again."})}finally{I(!1)}};return{isEditing:g,editingIndex:j,editingNoteId:N,formData:C,errors:A,isSubmitting:k||m||p,xqtivSummary:E,handleAdd:()=>{h(!0),y(null),b(null),S(null),w({title:"",content:"",file:void 0}),M({})},handleEdit:(e,t)=>
1{if(!(null==t?void 0:t.id))return void o.oR.error("Cannot edit note",{description:"Note ID is missing. Please try refreshing the page or contact support if the issue persists."});h(!0),y(e),b(t.id),S(t||i||null);let r=t||i;w({title:(null==r?void 0:r.title)||"",content:(null==r?void 0:r.description)||"",file:void 0,documentUrl:null==r?void 0:r.documentUrl,documentName:null==r?void 0:r.documentName}),M({})},handleCancel:R,handleInputChange:U,handleFileChange:e=>{if(A.file&&M(e=>({...e,file:""})),e){let t=(0,d.nJ)(e,["TRANSCRIPTS"]);if(!t.isValid)return void M(e=>({...e,file:t.errorMessage||"Invalid file"}))}U("file",e||void 0)},handleSave:D,clearErrors:()=>{M({})}}}({initialMode:S||i,candidateId:C,...w&&{createNote:w},...A&&{updateNote:A},...void 0!==k&&{isCreatingNote:k},...void 0!==I&&{isUpdatingNote:I},...(null==t?void 0:t.closeModal)&&{closeModal:t.closeModal},...(null==t?void 0:t.showLoading)&&{showLoading:t.showLoading},...n&&{xqtivSummary:n}}),Q=P||n;return Q?U?(0,r.jsx)(h,{editingIndex:D,formData:q,errors:X,isSubmitting:L,isCreatingNote:k||!1,isUpdatingNote:I||!1,onInputChange:O,onFileChange:B,onSave:J,onCancel:z}):(0,r.jsx)(N,{xqtivSummary:Q,xqtivNotes:m,onAdd:F,onEdit:(e,t)=>V(e,t),...M&&{onDelete:(e,t)=>{(null==t?void 0:t.id)&&M(t.id)}},onClose:()=>{var e;G(),null==t||null==(e=t.closeModal)||e.call(t)},loadMoreXqtivNotes:R,hasMoreXqtivNotes:v,isLoadingMoreXqtivNotes:j,isCreatingNote:k||!1,isUpdatingNote:I||!1,isDeletingNote:E||!1,onProjectClick:()=>{var e;null==t||null==(e=t.closeModal)||e.call(t)}}):(0,r.jsx)("div",{className:"p-6 text-center",children:(0,r.jsx)("p",{className:"text-text-secondary",children:"No XQtiv notes available."})})}},15992:(e,t,i)=>{i.d(t,{A7:()=>j,DI:()=>v,Dz:()=>f,M9:()=>d,Rt:()=>l,Tm:()=>u,V_:()=>x,Wl:()=>n,bR:()=>a,cZ:()=>m,ds:()=>p,h2:()=>s,lU:()=>h,oW:()=>o,sJ:()=>g,wp:()=>c,z5:()=>r});let r="/images/icons/pencil-edit.svg",a="/images/icons/phone-icon.svg",n="/images/icons/globe-icon.svg",s="/images/icons/email-icon.svg",o="/images/icons/location-icon.svg",l="/images/icons/link-icon.svg",d="/images/icons/refresh-icon.svg",c="/images/icons/share-icon.svg",u="/images/icons/bag-icon.svg",m="/images/icons/document-icon.svg",p="/images/icons/right-arrow-icon.svg",x="/images/icons/linkedinIcon.svg",f="/images/icons/scheduled-calendar-icon.svg",v="/images/icons/placeholder-no-engagements.svg",g="/images/icons/impersonate-user-icon.svg",h="/images/icons/UserContactsExpand.svg",j="/images/client/client-information-circle.svg"},18514:(e,t,i)=>{i.d(t,{A:()=>r});let r=(0,i(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,i)=>{i.d(t,{A:()=>r});let r=(0,i(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"}]])},51861:(e,t,i)=>{i.d(t,{A:()=>d});var r=i(95155),a=i(12115),n=i(67909),s=i(25016);let o=(0,n.default)(()=>Promise.all([i.e(499),i.e(3483),i.e(4104),i.e(7520),i.e(7150),i.e(5644),i.e(1531),i.e(9891),i.e(875),i.e(8739)]).then(i.bind(i,48739)),{loadableGenerated:{webpack:()=>[48739]},ssr:!1,loading:()=>(0,r.jsx)("div",{className:"editor-input min-h-[200px] p-4 border border-stroke-light rounded bg-bg-primary",children:(0,r.jsx)("div",{className:"text-text-secondary",children:"Loading editor..."})})}),l=(0,a.forwardRef)((e,t)=>{let{value:i,onChange:n,placeholder:l="Enter text...",readOnly:d=!1,disabled:c=!1,className:u,dataTestId:m,...p}=e,x=(0,a.useRef)(null),f=(0,a.useRef)(i),v=(0,a.useRef)(!1);(0,a.useImperativeHandle)(t,()=>x.current,[]),(0,a.useEffect)(()=>{!v.current&&i!==f.current&&x.current&&x.current.getMarkdown()!==i&&(x.current.setMarkdown(i||""),f.current=i)},[i]);let g=a.useCallback(e=>{if(v.current)return;let t=setTimeout(()=>{e!==f.current&&(f.current=e,v.current=!0,n(e),setTimeout(()=>{v.current=!1},50))},100);return()=>clearTimeout(t)},[n]);return(0,r.jsx)("div",{className:(0,s.cn)("w-full",u),"data-testid":m,children:(0,r.jsx)("div",{className:(0,s.cn)("editor-container",c&&"opacity-60 pointer-events-none",d&&"editor-readonly"),children:(0,r.jsx)(o,{editorRef:x,markdown:i||"",onChange:g,readOnly:d||c,placeholder:l,contentEditableClassName:"editor-input min-h-[200px] p-4 outline-none",...p})})})});l.displayName="RichTextEditor";let d=l},60919:(e,t,i)=>{i.d(t,{pe:()=>a});let{Axios:r,AxiosError:a,CanceledError:n,isCancel:s,CancelToken:o,VERSION:l,all:d,Cancel:c,isAxiosError:u,spread:m,toFormData:p,AxiosHeaders:x,HttpStatusCode:f,formToJSON:v,getAdapter
1:g,mergeConfig:h}=i(95125).A},69048:(e,t,i)=>{i.d(t,{E5:()=>h,Gg:()=>v,YP:()=>f,nJ:()=>g});var r=i(38511);let a=1024*r.F.FILE_UPLOAD.MAX_SIZE_MB*1024,n=["application/pdf","application/x-pdf"],s=["application/msword"],o=["application/vnd.openxmlformats-officedocument.wordprocessingml.document"],l=["image/jpeg","image/jpg","image/pjpeg"],d=["image/png","image/x-png"],c=["application/vnd.ms-excel","application/msexcel","application/x-msexcel","application/x-ms-excel"],u=["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],m=["text/plain"],p={DOCUMENTS:{extensions:[".pdf",".doc",".docx"],mimeTypes:[...n,...s,...o],label:"PDF, DOC, DOCX"},IMAGES:{extensions:[".jpg",".jpeg",".png"],mimeTypes:[...l,...d],label:"JPG, JPEG, PNG"},EXCEL:{extensions:[".xlsx",".xls"],mimeTypes:[...u,...c],label:"XLSX, XLS"},TRANSCRIPTS:{extensions:[".pdf",".docx",".txt"],mimeTypes:[...n,...o,...m],label:"PDF, DOCX, TXT"}},x=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return t.flat().join(",")},f={DOCUMENTS:x(n,s,o),IMAGES:x(l,d),EXCEL:x(u,c),TRANSCRIPTS:x(n,o,m)},v=e=>{if(!e)return{isValid:!1,errorMessage:"No file selected"};let t=e.size/1048576;return e.size>a?{isValid:!1,errorMessage:"File size exceeds the maximum limit of ".concat(r.F.FILE_UPLOAD.MAX_SIZE_MB,"MB. Current size: ").concat(t.toFixed(2),"MB"),fileSizeInMB:t}:{isValid:!0,fileSizeInMB:t}},g=(e,t)=>{if(!e)return{isValid:!1,errorMessage:"No file selected"};let i=((e,t)=>{if(!e)return{isValid:!1,errorMessage:"No file selected"};let i=[],r=[];return(t.forEach(e=>{let t=p[e];i.push(...t.mimeTypes),r.push(t.label)}),i.includes(e.type))?{isValid:!0}:{isValid:!1,errorMessage:"Invalid file format. Only ".concat(r.join(", ")," files are allowed. Selected file type: ").concat(e.type||"unknown")}})(e,t);if(!i.isValid)return i;let r=v(e);return!r.isValid,r},h=()=>"".concat(r.F.FILE_UPLOAD.MAX_SIZE_MB," MB")},71360:(e,t,i)=>{i.d(t,{A:()=>r});let r=(0,i(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,i)=>{i.d(t,{X:()=>a});var r=i(12115);function a(e){let{onLoadMore:t,hasMore:i,isLoading:a,threshold:n=100,debounceMs:s=100}=e,o=(0,r.useRef)(null),l=(0,r.useRef)(null),d=(0,r.useRef)(null),c=(0,r.useCallback)(e=>{let r=e[0];r&&r.isIntersecting&&i&&!a&&(d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{t()},s))},[t,i,a,s]);return(0,r.useEffect)(()=>{let e=l.current;if(e)return o.current=new IntersectionObserver(c,{root:null,rootMargin:"0px 0px ".concat(n,"px 0px"),threshold:.1}),o.current.observe(e),()=>{o.current&&o.current.disconnect(),d.current&&clearTimeout(d.current)}},[n,i,a,s,c]),l}}}]);

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.