PageSourceSearch

https://xyrus.ai/_next/static/chunks/8376.fee9d00aa38ae378.js

js xyrus.ai collected 2026-10-05 15:10:49 UTC 28,428 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8376],{15992:(e,t,r)=>{r.d(t,{A7:()=>v,DI:()=>y,Dz:()=>p,M9:()=>d,Rt:()=>o,Tm:()=>x,V_:()=>h,Wl:()=>i,bR:()=>a,cZ:()=>m,ds:()=>u,h2:()=>n,lU:()=>f,oW:()=>l,sJ:()=>g,wp:()=>c,z5:()=>s});let s="/images/icons/pencil-edit.svg",a="/images/icons/phone-icon.svg",i="/images/icons/globe-icon.svg",n="/images/icons/email-icon.svg",l="/images/icons/location-icon.svg",o="/images/icons/link-icon.svg",d="/images/icons/refresh-icon.svg",c="/images/icons/share-icon.svg",x="/images/icons/bag-icon.svg",m="/images/icons/document-icon.svg",u="/images/icons/right-arrow-icon.svg",h="/images/icons/linkedinIcon.svg",p="/images/icons/scheduled-calendar-icon.svg",y="/images/icons/placeholder-no-engagements.svg",g="/images/icons/impersonate-user-icon.svg",f="/images/icons/UserContactsExpand.svg",v="/images/client/client-information-circle.svg"},41438:(e,t,r)=>{r.r(t),r.d(t,{default:()=>C});var s=r(95155),a=r(12115),i=r(98734),n=r(44193),l=r(41180),o=r(18720),d=r(27638);let c=e=>{let t=new Date;return t.setHours(23,59,59,999),e>t},x=i.Ik({company:i.Yj().min(1,"Company name is required").max(100,"Company name must be less than 100 characters"),companyWebsite:i.Yj().max(100,"Company website must be less than 100 characters").optional().or(i.eu("")),title:i.Yj().min(1,"Role is required").max(100,"Role must be less than 100 characters"),startDate:i.p6({required_error:"Start date is required"}).refine(e=>!c(e),{message:"Start date cannot be in the future"}),endDate:i.p6().optional().refine(e=>!e||!c(e),{message:"End date cannot be in the future"}),isCurrent:i.zM(),description:i.Yj().max(5e3,"Description must be less than 5000 characters").optional()}).refine(e=>!!e.isCurrent||!!e.endDate,{message:"End date is required when not currently working",path:["endDate"]}).refine(e=>!e.endDate||!e.startDate||!(e.endDate<=e.startDate),{message:"End date must be after start date",path:["endDate"]});var m=r(65229),u=r(33789),h=r(90235),p=r(87133),y=r(4370),g=r(51861);function f(e){let{editingIndex:t,formData:r,errors:a,isSubmitting:i,onInputChange:n,onSave:l,onCancel:o}=e,d=new Date;return d.setHours(23,59,59,999),(0,s.jsxs)("div",{className:"h-full flex flex-col","data-testid":"work-history-form",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between py-3 bg-white px-3",children:[(0,s.jsx)("h3",{className:"text-lg font-semibold text-card-foreground",children:null!==t?"Edit Work History":"Add Work History"}),(0,s.jsx)("button",{onClick:o,className:"p-2 rounded-lg cursor-pointer","data-testid":"close-edit-work-history-form",children:(0,s.jsx)(m.A,{className:"h-4 w-4 text-icon-primary"})})]}),(0,s.jsx)("div",{className:"flex-1 overflow-y-auto py-3 px-3",children:(0,s.jsxs)("div",{className:"space-y-6 px-0",children:[a.general&&(0,s.jsx)("div",{className:"p-3 bg-error-bg border border-error-solid rounded-lg",children:(0,s.jsx)("p",{className:"text-sm text-error-solid",children:a.general})}),(0,s.jsxs)("div",{className:"space-y-2","data-error":!!a.company,children:[(0,s.jsx)(h.Label,{htmlFor:"company",className:"text-s font-semibold",style:{color:"var(--color-foreground)"},children:"Company Name *"}),(0,s.jsx)(u.Input,{id:"company",value:r.company,onChange:e=>n("company",e.target.value),placeholder:"Enter Here",className:"bg-white ".concat(a.company?"aria-invalid:ring-error-solid/20 dark:aria-invalid:ring-error-solid/40 aria-invalid:border-error-solid":""),"data-testid":"company-name-input"}),a.company&&(0,s.jsx)("p",{className:"text-xs text-error-solid","data-testid":"company-error",children:a.company})]}),(0,s.jsxs)("div",{className:"space-y-2","data-error":!!a.title,children:[(0,s.jsx)(h.Label,{htmlFor:"title",className:"text-s font-semibold",style:{color:"var(--color-foreground)"},children:"Role *"}),(0,s.jsx)(u.Input,{id:"title",value:r.title,onChange:e=>n("title",e.target.value),placeholder:"Enter Here",className:"bg-white ".concat(a.title?"aria-invalid:ring-error-solid/20 dark:aria-invalid:ring-error-solid/40 aria-invalid:border-error-solid":""),"data-testid":"role-input"}),a.title&&(0,s.jsx)("p",{className:"text-xs text-error-solid","data-testid":"title-error",children:a.title})]}),(0,s.jsx)("div",{className:"space-y-2",children:(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)("input",{type:"checkbox",id:"isCurrent",checked:r.isCurrent,onChange:e=>n("isCurrent",e.target.checked),className:"h-4 w-4 text-brand-primary focus:ring-brand-primary border-text-stroke rounded cursor-pointer","data-testid":"currently-working-checkbox"}),(0,s.jsx)(h.Label,{htmlFor:"isCurrent",className:"text-s font-semibold cursor-pointer",style:{color:"var(--color-foreground)"},children:"Currently working here"})]})}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{className:"space-y-2","data-error":!!a.startDate,children:[(0,s.jsx)(h.Label,{htmlFor:"startDate",className:"text-s font-semibold",style:{color:"var(--color-foreground)"},children:"From *"}),(0,s.jsx)(y.DatePicker,{value:r.startDate,onChange:e=>n("startDate",e||void 0),placeholder:"dd/mm/yyyy",error:!!a.startDate,helperText:a.startDate||"",dataTestId:"start-date-input",maxDate:d})]}),(0,s.jsxs)("div",{className:"space-y-2","data-error":!!a.endDate,children:[(0,s.jsxs)(h.Label,{htmlFor:"endDate",className:"text-s font-semibold ".concat(r.isCurrent?"text-text-secondary":""),style:{color:r.isCurrent?"var(--color-text-secondary)":"var(--color-foreground)"},children:["To ",!r.isCurrent&&"*"]}),(0,s.jsx)(y.DatePicker,{value:r.endDate,onChange:e=>n("endDate",e||void 0),placeholder:r.isCurrent?"Currently working":"dd/mm/yyyy",error:!!a.endDate,helperText:r.isCurrent?"End date not required for current position":a.endDate||"",dataTestId:"end-date-input",disabled:r.isCurrent,maxDate:d,minDate:r.startDate})]})]}),(0,s.jsxs)("div",{className:"space-y-2","data-error":!!a.description,children:[(0,s.jsx)(h.Label,{htmlFor:"description",className:"text-s font-semibold",style:{color:"var(--color-foreground)"},children:"Add Description"}),(0,s.jsx)(g.A,{value:r.description||"",onChange:e=>n("description",e),placeholder:"Enter Description",dataTestId:"description-input"}),a.description&&(0,s.jsx)("p",{className:"text-xs text-error-solid","data-testid":"description-error",children:a.description})]})]})}),(0,s.jsx)("div",{className:"py-3 px-3",children:(0,s.jsxs)("div",{className:"flex gap-3 justify-start",children:[(0,s.jsx)(p.$n,{onClick:l,variant:"primary",size:"md",dataTestId:"save-work-history",disabled:i,children:i?"Saving...":"Save"}),(0,s.jsx)(p.$n,{onClick:o,variant:"outline",size:"md",dataTestId:"cancel-work-history",disabled:i,children:"Cancel"})]})})]})}var v=r(93169),j=r(71761);function b(e){let{workHistory:t,onAdd:r,onEdit:a,onDelete:i,onClose:n,onSelectWork:l}=e,o=!!(t&&t.length>0),d=o&&t.every(e=>"ai"===e.updatedBy);return(0,s.jsxs)("div",{className:"h-full flex flex-col min-h-0","data-testid":"work-history-list",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between py-3 bg-white shrink-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[d&&(0,s.jsx)(j.A,{text:"AI Generated"}),(0,s.jsx)("h3",{className:"text-lg font-semibold text-card-foreground",children:"Work History"})]}),(0,s.jsx)("button",{onClick:n,className:"p-2 rounded-lg cursor-pointer","data-testid":"remove-section-button",children:(0,s.jsx)(m.A,{className:"h-4 w-4 text-icon-primary"})})]}),(0,s.jsx)("div",{className:"flex-1 overflow-y-auto py-3 min-h-0 pr-3",children:(0,s.jsxs)("div",{className:"space-y-6 px-0",children:[(0,s.jsx)("div",{className:"text-left",children:(0,s.jsx)("button",{onClick:r,className:"text-sm text-card-foreground hover:text-card-foreground
1/80 font-medium cursor-pointer flex items-center gap-1","data-testid":"add-new-work-history",children:"+ Add new"})}),o&&(0,s.jsx)("div",{className:"space-y-4",children:t.map((e,t)=>(0,s.jsx)(v.A,{work:e,allowEdit:!0,showDescription:!0,dataTestId:"work-history-".concat(t),hideAIBadge:d,onEdit:()=>{a(t,e)},onDelete:()=>i(e.id),onViewMore:()=>l(e)},e.id))}),!o&&(0,s.jsx)("div",{className:"text-center py-8",children:(0,s.jsx)("p",{className:"text-text-secondary",children:"No work history content available."})})]})})]})}let N=(0,r(71847).A)("briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);var w=r(91787),k=r(75557);function D(e){let{selectedWork:t,onClose:r}=e;if(!t)return null;let a="ai"===t.updatedBy;return(0,s.jsxs)("div",{className:"h-full border-l border-text-stroke bg-white flex flex-col",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between py-3 px-4 border-b border-text-stroke",children:[(0,s.jsx)("h3",{className:"text-lg font-semibold text-card-foreground",children:"Work Details"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[a&&(0,s.jsx)(j.A,{text:"AI Generated"}),(0,s.jsx)("button",{onClick:r,className:"p-2 rounded-lg cursor-pointer hover:bg-text-stroke","data-testid":"close-detail-panel",children:(0,s.jsx)(m.A,{className:"h-4 w-4 text-icon-primary"})})]})]}),(0,s.jsx)("div",{className:"flex-1 overflow-y-auto p-4",children:(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"flex items-start gap-4",children:[(0,s.jsx)("div",{className:"w-8 h-8 flex items-center justify-center flex-shrink-0 bg-brand-primary/10 rounded-lg",children:(0,s.jsx)(N,{className:"w-5 h-5 text-brand-primary"})}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("h2",{className:"text-xl font-semibold text-card-foreground mb-1",children:t.title}),(0,s.jsx)("p",{className:"text-lg text-secondary-text",children:t.company})]})]}),t.isCurrent&&(0,s.jsx)("div",{className:"inline-block",children:(0,s.jsx)("span",{className:"text-sm bg-brand-primary text-primary-foreground py-1 px-3 rounded-md font-medium",children:"Current Position"})}),t.description&&(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"text-sm font-medium text-text-primary mb-3",children:"Description"}),(0,s.jsx)("div",{className:"bg-text-stroke/30 rounded-lg p-4",children:(0,s.jsx)(w.A,{content:t.description,className:"text-sm text-secondary-text leading-relaxed",dataTestId:"work-history-description"})})]}),(t.updatedAt||t.updatedBy&&!a)&&(0,s.jsxs)("div",{className:"space-y-3 mt-6",children:[(0,s.jsx)("h4",{className:"text-sm font-medium text-text-primary",children:"Update Information"}),(0,s.jsxs)("div",{className:"space-y-2",children:[t.updatedAt&&(0,s.jsxs)("div",{className:"flex justify-between items-center text-sm",children:[(0,s.jsx)("span",{className:"text-secondary-text",children:"Last Updated On"}),(0,s.jsx)("span",{className:"font-medium text-card-foreground",children:(0,k.Yq)(t.updatedAt)})]}),t.updatedBy&&!a&&(0,s.jsxs)("div",{className:"flex justify-between items-center text-sm",children:[(0,s.jsx)("span",{className:"text-secondary-text",children:"Updated By"}),(0,s.jsx)("span",{className:"font-medium text-card-foreground",children:t.updatedBy})]})]})]})]})})]})}function C(e){let{data:t,mode:r="list"}=e,i=null!==t&&"object"==typeof t&&"workHistory"in t?t:void 0,{workHistory:c,selectedWork:m,isEditing:u,editingIndex:h,formData:p,errors:y,isSubmitting:g,setSelectedWork:v,handleAdd:j,handleEdit:N,handleCancel:w,handleInputChange:k,handleSave:C,handleDelete:A}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"list",t=arguments.length>1?arguments[1]:void 0,r=e=>null!==e&&"object"==typeof e&&"workHistory"in e,s=r(t)?t.workHistory:[],i=r(t)?t.mode:void 0,c=null==t?void 0:t.refreshWorkHistory,m=(null==t?void 0:t.isRefreshingWorkHistory)||!1,u=null==t?void 0:t.addWorkHistory,h=null==t?void 0:t.updateWorkHistory,p=null==t?void 0:t.deleteWorkHistory,y=(null==t?void 0:t.isAddingWorkHistory)||!1,g=(null==t?void 0:t.isUpdatingWorkHistory)||!1,f=null==t?void 0:t.showLoading,v=i||e,[j,b]=(0,a.useState)(s);(0,a.useEffect)(()=>{r(t)&&0===j.length&&b(t.workHistory)},[t,j.length]),(0,a.useEffect)(()=>{let e=d.fo.subscribe(e=>{e&&Array.isArray(e)&&(b(e),w(t=>t?e.find(e=>e.id===t.id)||null:t))});return()=>e.unsubscribe()},[]);let[N,w]=(0,a.useState)(null),[k,D]=(0,a.useState)("add"===v),[C,A]=(0,a.useState)(null),[W,S]=(0,a.useState)({company:"",companyWebsite:"",title:"",startDate:new Date,endD
1ate:new Date,isCurrent:!1,description:""}),[E,H]=(0,a.useState)({}),[I,M]=(0,a.useState)(!1),[R,T]=(0,a.useState)(""),[z,F]=(0,a.useState)("");(0,a.useEffect)(()=>{k?l.Lx.updateModalProps("work-history",{width:540,fixWidth:!0}):l.Lx.updateModalProps("work-history",{width:"auto",fixWidth:!1})},[k]),(0,a.useEffect)(()=>{k||(null!==N?l.Lx.updateModalProps("work-history",{minWidth:540,width:"auto"}):l.Lx.updateModalProps("work-history",{minWidth:540,width:540}))},[N,k]);let L=()=>{D(!1),A(null),S({company:"",companyWebsite:"",title:"",startDate:new Date,endDate:new Date,isCurrent:!1,description:""}),H({}),T(""),F("")},$=e=>{let t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e.getMonth()],r=e.getDate(),s=e.getFullYear();return"".concat(t," ").concat(r,", ").concat(s)},B=(e,t)=>{let r=new Date(t);return!isNaN(r.getTime())&&e.getFullYear()===r.getFullYear()&&e.getMonth()===r.getMonth()&&e.getDate()===r.getDate()},U=async()=>{if((()=>{try{return x.parse(W),H({}),!0}catch(e){if(e instanceof n.G){let t={};e.errors.forEach(e=>{t[e.path[0]]=e.message}),H(t)}return!1}})())try{let e,t;M(!0),null==f||f(!0,"Saving work history...");let r=null!==C?j[C]:null;e=null!==C&&R&&B(W.startDate,R)?R:$(W.startDate),t=W.isCurrent?"":null!==C&&z&&W.endDate&&B(W.endDate,z)?z:W.endDate?$(W.endDate):"";let s={id:(null==r?void 0:r.id)||("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),title:W.title,company:W.company,startDate:e,endDate:t,isCurrent:W.isCurrent,description:W.description||""};null!==C&&r?h&&(await h(r.id,s),o.oR.success("Work History Updated",{description:"Work history has been updated successfully"})):u&&(await u(s),o.oR.success("Work History Added",{description:"Work history has been added successfully"})),L()}catch(t){let e=t instanceof Error?t.message:"Failed to save work history";H({general:e}),o.oR.error("Save Failed",{description:e})}finally{M(!1),null==f||f(!1)}};return{workHistory:j,finalMode:v,selectedWork:N,isEditing:k,editingIndex:C,formData:W,errors:E,isSubmitting:I||y||g||m,setSelectedWork:w,handleAdd:()=>{D(!0),A(null),S({company:"",companyWebsite:"",title:"",startDate:new Date,endDate:new Date,isCurrent:!1,description:""}),H({}),T(""),F("")},handleEdit:(e,t)=>
1{D(!0),A(e),S({company:t.company,companyWebsite:"",title:t.title,startDate:new Date(t.startDate),endDate:t.isCurrent?void 0:new Date(t.endDate),isCurrent:t.isCurrent,description:t.description||""}),H({}),T(t.startDate),F(t.endDate)},handleCancel:L,handleInputChange:(e,t)=>{S(r=>{let s={...r,[e]:t};return"isCurrent"===e&&!0===t&&(s.endDate=void 0),s}),E[e]&&H(t=>({...t,[e]:""}))},handleSave:U,handleDelete:async e=>{if(!p)return void o.oR.error("Delete Failed",{description:"Delete functionality is not available"});l.Lx.openDialog("confirmation",{data:{title:"Delete Work History",message:"Are you sure you want to delete this work history entry?",confirmText:"Delete",cancelText:"Cancel",variant:"destructive",onConfirm:async()=>{try{null==f||f(!0,"Deleting work history..."),await p(e),o.oR.success("Work History Deleted",{description:"Work history has been deleted successfully"})}catch(t){let e=t instanceof Error?t.message:"Failed to delete work history";o.oR.error("Delete Failed",{description:e})}finally{null==f||f(!1)}}}})},handleRefreshClick:()=>{l.Lx.openDialog("confirmation",{data:{title:"Are you sure?",message:"This will replace your current work history with the information from your resume.",confirmText:"Refresh",cancelText:"Cancel",onConfirm:async()=>{if(c)try{await c(),o.oR.success("Work History Refreshed",{description:"Work history has been refreshed successfully"})}catch(t){let e=t instanceof Error?t.message:"Failed to refresh work history";o.oR.error("Refresh Failed",{description:e})}}}})}}}(r,i?{...i,...(null==t?void 0:t.showLoading)&&{showLoading:t.showLoading}}:void 0);return c?u?(0,s.jsx)(f,{editingIndex:h,formData:p,errors:y,isSubmitting:g,onInputChange:k,onSave:C,onCancel:w}):(0,s.jsxs)("div",{className:"h-full flex overflow-hidden transition-all duration-300 ".concat(m?"work-history-detail-open":"work-history-list-only"),style:{width:m?"840px":void 0,maxWidth:m?"840px":"100%"},children:[(0,s.jsx)("div",{className:"".concat(m?"w-1/2":"w-full"," transition-all duration-300 shrink-0"),children:(0,s.jsx)(b,{workHistory:c,onAdd:j,onEdit:N,onDelete:A,onClose:()=>{var e;return null==t||null==(e=t.closeModal)?void 0:e.call(t)},onSelectWork:v})}),m&&(0,s.jsx)("div",{className:"w-1/2 transition-all duration-300 shrink-0",children:(0,s.jsx)(D,{selectedWork:m,onClose:()=>v(null)})})]}):(0,s.jsx)("div",{className:"p-6 text-center",children:(0,s.jsx)("p",{className:"text-text-secondary",children:"No work history available."})})}},51861:(e,t,r)=>{r.d(t,{A:()=>d});var s=r(95155),a=r(12115),i=r(67909),n=r(25016);let l=(0,i.default)(()=>Promise.all([r.e(499),r.e(3483),r.e(4104),r.e(7520),r.e(7150),r.e(5644),r.e(1531),r.e(9891),r.e(875),r.e(8739)]).then(r.bind(r,48739)),{loadableGenerated:{webpack:()=>[48739]},ssr:!1,loading:()=>(0,s.jsx)("div",{className:"editor-input min-h-[200px] p-4 border border-stroke-light rounded bg-bg-primary",children:(0,s.jsx)("div",{className:"text-text-secondary",children:"Loading editor..."})})}),o=(0,a.forwardRef)((e,t)=>{let{value:r,onChange:i,placeholder:o="Enter text...",readOnly:d=!1,disabled:c=!1,className:x,dataTestId:m,...u}=e,h=(0,a.useRef)(null),p=(0,a.useRef)(r),y=(0,a.useRef)(!1);(0,a.useImperativeHandle)(t,()=>h.current,[]),(0,a.useEffect)(()=>{!y.current&&r!==p.current&&h.current&&h.current.getMarkdown()!==r&&(h.current.setMarkdown(r||""),p.current=r)},[r]);let g=a.useCallback(e=>{if(y.current)return;let t=setTimeout(()=>{e!==p.current&&(p.current=e,y.current=!0,i(e),setTimeout(()=>{y.current=!1},50))},100);return()=>clearTimeout(t)},[i]);return(0,s.jsx)("div",{className:(0,n.cn)("w-full",x),"data-testid":m,children:(0,s.jsx)("div",{className:(0,n.cn)("editor-container",c&&"opacity-60 pointer-events-none",d&&"editor-readonly"),children:(0,s.jsx)(l,{editorRef:h,markdown:r||"",onChange:g,readOnly:d||c,placeholder:o,contentEditableClassName:"editor-input min-h-[200px] p-4 outline-none",...u})})})});o.displayName="RichTextEditor";let d=o},60919:(e,t,r)=>{r.d(t,{pe:()=>a});let{Axios:s,AxiosError:a,CanceledError:i,isCancel:n,CancelToken:l,VERSION:o,all:d,Cancel:c,isAxiosError:x,spread:m,toFormData:u,AxiosHeaders:h,HttpStatusCode:p,formToJSON:y,getAdapter
1:g,mergeConfig:f}=r(95125).A},71360:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(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"}]])},91787:(e,t,r)=>{r.d(t,{A:()=>d});var s=r(95155),a=r(12115),i=r(99620),n=r(5134),l=r(34217),o=r(23255);function d(e){let{content:t,className:r="",dataTestId:d}=e;if(!t||""===t.trim())return null;let c=(e=>{if(!e)return e;let t=e;return(t=(t=(t=(t=t.replace(/\\n/g,"\n")).replace(/^#n#(\d+)\.\s+(.*)$/gm,"$1. $2")).replace(/^(\w+)#(\s+[^\n]+)$/gm,(e,t,r)=>["quote","text","heading","title"].includes(t.toLowerCase())||t.length<=10&&/^[a-zA-Z]+$/.test(t)?"#".concat(r):e)).replace(/^[ \t]+(#{1,6}\s+)/gm,"$1")).replace(/\+\+([^+]+)\+\+/g,(e,t)=>"<u>".concat(t,"</u>"))})(t),x=(e=>{if(!e||""===e.trim())return"plain";let t=e.trim(),r=t.includes("\n"),s=0;[/<[a-zA-Z][a-zA-Z0-9]*[^>]*>/g,/<\/[a-zA-Z][a-zA-Z0-9]*>/g,/<[a-zA-Z][a-zA-Z0-9]*\s*\/>/g,/&[a-zA-Z0-9#]+;/g].forEach(e=>{let r=t.match(e);r&&(s+=r.length)});let a=0;[/^#{1,6}\s+/gm,/^\*\s+/gm,/^-\s+/gm,/^\+\s+/gm,/^\d+\.\s+/gm,/^#n#\d+\.\s+/gm,/^\>\s+/gm,/\[([^\]]+)\]\(([^)]+)\)/g,/!\[([^\]]*)\]\(([^)]+)\)/g,/\*\*([^*]+)\*\*/g,/\*([^*]+)\*/g,/\+\+([^+]+)\+\+/g,/~~([^~]+)~~/g,/`([^`]+)`/g,/^```[\s\S]*?^```/gm,/^---$/gm,/^\*\*\*$/gm].forEach(e=>{let r=t.match(e);r&&(a+=r.length)});let i=/<[a-zA-Z][a-zA-Z0-9]*[^>]*>.*<\/[a-zA-Z][a-zA-Z0-9]*>/.test(t),n=/^#{1,6}\s+|^\*\s+|^-\s+|^\d+\.\s+|^#n#\d+\.\s+|^\>\s+|\[.*\]\(.*\)|\*\*.*\*\*|\*.*\*|\+\+.*\+\+|~~.*~~|`.*`/.test(t),l=/^<[^>]*>[\s\S]*<\/[^>]*>$/.test(t),o=/^#{1,6}\s+[\s\S]*$|^\*\s+[\s\S]*$|^-\s+[\s\S]*$|^\d+\.\s+[\s\S]*$/.test(t);return l&&!n?"html":o&&!i?"markdown":s>2*a?"html":a>2*s?"markdown":i&&!n?"html":n&&!i||r&&/\n\n/.test(t)||r&&!i&&!n?"markdown":"plain"})(c),m={fontSize:"14px",lineHeight:"1.6",color:"var(--color-secondary-text)"};if("html"===x)return(0,s.jsx)("div",{className:"rich-text-display ".concat(r),"data-testid":d,style:m,dangerouslySetInnerHTML:{__html:c}});if("markdown"===x)return(0,s.jsx)("div",{className:"rich-text-display ".concat(r),"data-testid":d,style:m,children:(0,s.jsx)(i.oz,{remarkPlugins:[n.A,l.A],rehypePlugins:[o.A],components:{h1:e=>{let{children:t}=e;return(0,s.jsx)("h1",{className:"editor-heading-h1",children:t})},h2:e=>{let{children:t}=e;return(0,s.jsx)("h2",{className:"editor-heading-h2",children:t})},h3:e=>{let{children:t}=e;return(0,s.jsx)("h3",{className:"editor-heading-h3",children:t})},h4:e=>{let{children:t}=e;return(0,s.jsx)("h4",{className:"editor-heading-h4",children:t})},h5:e=>{let{children:t}=e;return(0,s.jsx)("h5",{className:"editor-heading-h5",children:t})},h6:e=>{let{children:t}=e;return(0,s.jsx)("h6",{className:"editor-heading-h6",children:t})},p:e=>{let{children:t}=e;return(0,s.jsx)("p",{className:"editor-paragraph",children:t})},ul:e=>{let{children:t}=e;return(0,s.jsx)("ul",{className:"editor-list-ul",children:t})},ol:e=>{let{children:t}=e;return(0,s.jsx)("ol",{className:"editor-list-ol",children:t})},li:e=>{let{children:t}=e;return(0,s.jsx)("li",{className:"editor-listitem",children:t})},blockquote:e=>{let{children:t}=e;return(0,s.jsx)("blockquote",{className:"editor-quote",children:t})},code:e=>{let{children:t,className:r}=e;return r?(0,s.jsx)("code",{className:"editor-code",children:t}):(0,s.jsx)("code",{className:"editor-text-code",children:t})},pre:e=>{let{children:t}=e;return(0,s.jsx)("pre",{className:"bg-bg-nav p-3 rounded overflow-x-auto",children:t})},a:e=>{let{href:t,children:r}=e;return(0,s.jsx)("a",{href:t,target:(null==t?void 0:t.startsWith("http"))?"_blank":void 0,rel:(null==t?void 0:t.startsWith("http"))?"noopener noreferrer":void 0,className:"editor-link",children:r})},strong:e=>{let{children:t}=e;return(0,s.jsx)("strong",{className:"editor-text-bold",children:t})},em:e=>{let{children:t}=e;return(0,s.jsx)("em",{className:"editor-text-italic",children:t})},u:e=>{let{children:t}=e;return(0,s.jsx)("u",{className:"editor-text-underline",children:t})},del:e=>{let{children:t}=e;return(0,s.jsx)("del",{className:"editor-text-strikethrough",children:t})},div:e=>{let{children:t,className:r,style:a,...i}=e;return(0,s.jsx)("div",{className:r,style:a,...i,children:t})},span:e=>{let{children:t,className:r,style:a,...i}=e;return(0,s.jsx)("span",{className:r,style:a,...i,children:t})},table:e=>{let{children:t}=e;return(0,s.jsx)("table",{className:"min-w-full border-collapse border border-stroke-light",children:t})},thead:e=>{let{children:t}=e;return(0,s.jsx)("thead",{className:"bg-gray-200",children:t})},tbody:e=>{let{children:t}=e;return(0,s.jsx)("tbody",{children:t})},tr:e=>{let{children:t}=e;return(0,s.jsx)("tr",{className:"border-b border-stroke-light",children:t})},th:e=>{let{children:t}=e;return(0,s.jsx)("th",{className:"border border-stroke-light px-3 py-2 text-left font-semibold text-brand-primary",children:t})},td:e=>{let{children:t}=e;return(0,s.jsx)("td",{className:"border border-stroke-light px-3 py-2",children:t})}},children:c})});let u=c.split("\n"),h=c.split(/\n\s*\n/);return(0,s.jsx)("div",{className:"rich-text-display ".concat(r),"data-testid":d,style:m,children:h.length>1?h.map((e,t)=>(0,s.jsx)("p",{className:"editor-paragraph",children:e.split("\n").map((t,r)=>(0,s.jsxs)(a.Fragment,{children:[t,r<e.split("\n").length-1&&(0,s.jsx)("br",{})]},r))},t)):u.map((e,t)=>(0,s.jsxs)(a.Fragment,{children:[e,t<u.length-1&&(0,s.jsx)("br",{})]},t))})}},93169:(e,t,r)=>{r.d(t,{A:()=>x});var s=r(95155),a=r(12115),i=r(28990),n=r(15992),l=r(75557),o=r(91787),d=r(71360),c=r(71761);function x(e){var t;let{work:r,allowEdit:x=!1,showDescription:m=!0,dataTestId:u,className:h="",maxDescriptionLength:p=200,hideAIBadge:y=!1,onEdit:g,onDelete:f,onViewMore:v}=e,[j,b]=(0,a.useState)(!1),N=e=>{if("Current"===e)return"Current";if(!/^\d{4}-\d{2}-\d{2}$/.test(e))return e;let t=new Date(e);if(isNaN(t.getTime()))return e;let r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getMonth()],s=t.getDate(),a=t.getFullYear();return"".concat(r," ").concat(s,", ").concat(a)},w=r.description&&r.description.length>p,k="ai"===r.updatedBy,D=k&&!y;return(0,s.jsxs)("div",{className:"flex items-start border border-stroke-light gap-4 roun
1ded-xl transition-colors group hover:bg-bg-card relative ".concat(r.isCurrent?"bg-text-stroke":""," ").concat(h),style:{padding:D?"25px 16px 16px 16px":"16px"},"data-testid":u||"work-".concat(r.id),children:[D&&(0,s.jsx)("div",{className:"absolute left-[2px] top-[2px] z-10",children:(0,s.jsx)(c.A,{text:"AI Generated"})}),(0,s.jsx)("div",{className:"w-6 h-6 flex items-center justify-center shrink-0",children:(0,s.jsx)(i.A,{icon:"/BriefCaseIcon2.svg",width:22,height:22})}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsxs)("div",{className:"grid grid-cols-[60%_40%] justify-between gap-4 mb-2",children:[(0,s.jsx)("h4",{className:"text-lg font-semibold text-card-foreground",children:r.title}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[r.isCurrent&&(0,s.jsx)("span",{className:"text-xs bg-brand-primary text-primary-foreground py-0.5 px-2.5 rounded-md",children:"Current"}),x&&g&&(0,s.jsx)(i.A,{icon:"".concat(n.z5,"#edit_icon"),width:16,height:16,color:"var(--color-text-primary)",className:"cursor-pointer opacity-70 hover:opacity-100 transition-opacity",onClick:()=>{g()},"data-testid":"edit-work-".concat(r.id)}),x&&f&&(0,s.jsx)(d.A,{size:16,className:"cursor-pointer opacity-70 hover:opacity-100 transition-opacity text-red-500 hover:text-red-600",onClick:()=>{f()},"data-testid":"delete-work-".concat(r.id)})]})]}),(0,s.jsx)("p",{className:"text-sm text-secondary-text mb-2",children:r.company}),(0,s.jsxs)("div",{className:"text-sm text-secondary-text mb-2",children:[N(r.startDate)," -"," ",r.isCurrent?"Current":N(r.endDate)]}),m&&r.description&&(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("h5",{className:"text-sm font-medium text-text-primary",children:"Description"}),(0,s.jsx)("div",{className:"pb-2",children:(0,s.jsxs)("div",{className:"text-sm text-secondary-text leading-relaxed",children:[j?(0,s.jsx)(o.A,{content:r.description}):(0,s.jsx)(o.A,{content:(null==(t=r.description)?void 0:t.slice(0,p))+(w?"...":"")}),w&&(0,s.jsx)("button",{className:"text-sm font-semibold text-text-primary hover:text-primary-text cursor-pointer ml-1 transition-colors",onClick:()=>{v?v():b(!j)},"data-testid":"work-view-more-button-".concat(r.id),"aria-expanded":j,"aria-label":j?"Show less work history description for ".concat(r.title):"Show more work history description for ".concat(r.title),children:j?"view less":"view more"})]})})]}),(r.updatedAt||r.updatedBy&&!k)&&(0,s.jsxs)("div",{className:"space-y-2 mt-3",children:[r.updatedAt&&(0,s.jsxs)("div",{className:"flex justify-between items-center text-[11px] text-secondary-text",children:[(0,s.jsx)("span",{"data-testid":"work-last-updated-label",children:"Last Updated On"}),(0,s.jsx)("span",{className:"font-medium text-card-foreground","data-testid":"work-last-updated-date",children:(0,l.Yq)(r.updatedAt)})]}),r.updatedBy&&!k&&(0,s.jsxs)("div",{className:"flex justify-between items-center text-xs text-secondary-text",children:[(0,s.jsx)("span",{"data-testid":"work-updated-by-label",children:"Updated By"}),(0,s.jsx)("span",{className:"font-medium text-card-foreground","data-testid":"work-updated-by-".concat(r.id),children:r.updatedBy})]})]})]})]})}}}]);

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.