PageSourceSearch

https://xyrus.ai/_next/static/chunks/8972.da0452f0ccbe78b4.js

js xyrus.ai collected 2026-10-05 15:10:53 UTC 14,124 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8972],{9074:(e,t,s)=>{s.r(t),s.d(t,{default:()=>m});var r=s(95155),a=s(12115),n=s(98734),l=s(44193),i=s(18720);let d=n.Ik({content:n.Yj().max(5e3,"Content must be less than 5000 characters").optional()});var c=s(27638),o=s(64403),h=s(33304);function m(e){let{data:t,mode:s="list"}=e,[n,m]=(0,a.useState)(void 0),u=e=>null!==e&&"object"==typeof e&&"awards"in e;(0,a.useEffect)(()=>{u(t)&&m(t.awards)},[t]),(0,a.useEffect)(()=>{let e=c.MW.subscribe(e=>{m(e)});return()=>e.unsubscribe()},[]);let x=u(t)?t.mode:void 0,g=u(t)?t.updateCandidate:void 0,p={initialMode:x||s};n&&(p.initialAward=n),g&&(p.updateCandidate=g),(null==t?void 0:t.closeModal)&&(p.closeModal=t.closeModal),(null==t?void 0:t.showLoading)&&(p.showLoading=t.showLoading);let{isEditing:f,formData:j,errors:v,handleAdd:N,handleEdit:b,handleCancel:w,handleInputChange:y,handleSave:A}=function(e){let{initialMode:t="list",initialAward:s,updateCandidate:r,closeModal:n,showLoading:c}=e,[o,h]=(0,a.useState)("add"===t||"edit"===t),[m,u]=(0,a.useState)({content:"edit"===t&&s?s.content:""}),[x,g]=(0,a.useState)({}),[p,f]=(0,a.useState)("edit"===t&&s&&s.content||""),j=()=>{h(!1),u({content:""}),g({})},v=async()=>{if(null==c||c(!0,"Saving awards..."),!(()=>{try{return d.parse(m),g({}),!0}catch(e){if(e instanceof l.G){let t={};e.errors.forEach(e=>{t[e.path[0]]=e.message}),g(t)}return!1}})()){null==c||c(!1);return}if((m.content||"")===p){null==c||c(!1),i.oR.info("No Changes Made",{description:"Make changes to save awards information"});return}if(!r){g({general:"Update function not available. Please try again."}),null==c||c(!1);return}try{let e={awards:m.content||""};await r(e),i.oR.success("Awards Updated",{description:"Awards information has been updated successfully"}),j(),n&&n()}catch(t){let e=t instanceof Error?t.message:"Failed to update awards";i.oR.error("Update Failed",{description:e}),g({general:"Failed to save awards. Please try again."})}finally{null==c||c(!1)}};return{isEditing:o,formData:m,errors:x,handleAdd:()=>{h(!0),u({content:""}),f(""),g({})},handleEdit:e=>{h(!0);let t=e||s,r=(null==t?void 0:t.content)||"";u({content:r}),f(r),g({})},handleCancel:j,handleInputChange:(e,t)=>
1{u(s=>({...s,[e]:t})),x[e]&&g(t=>({...t,[e]:""}))},handleSave:v}}(p);return n?f?(0,r.jsx)(o.A,{formData:j,errors:v,onInputChange:y,onSave:A,onCancel:w}):(0,r.jsx)(h.A,{awards:n,onAdd:N,onEdit:e=>b(e),onClose:()=>{var e;return null==t||null==(e=t.closeModal)?void 0:e.call(t)}}):(0,r.jsx)("div",{className:"p-6 text-center",children:(0,r.jsx)("p",{className:"text-text-secondary",children:"No awards available."})})}},15992:(e,t,s)=>{s.d(t,{A7:()=>v,DI:()=>p,Dz:()=>g,M9:()=>c,Rt:()=>d,Tm:()=>h,V_:()=>x,Wl:()=>n,bR:()=>a,cZ:()=>m,ds:()=>u,h2:()=>l,lU:()=>j,oW:()=>i,sJ:()=>f,wp:()=>o,z5:()=>r});let r="/images/icons/pencil-edit.svg",a="/images/icons/phone-icon.svg",n="/images/icons/globe-icon.svg",l="/images/icons/email-icon.svg",i="/images/icons/location-icon.svg",d="/images/icons/link-icon.svg",c="/images/icons/refresh-icon.svg",o="/images/icons/share-icon.svg",h="/images/icons/bag-icon.svg",m="/images/icons/document-icon.svg",u="/images/icons/right-arrow-icon.svg",x="/images/icons/linkedinIcon.svg",g="/images/icons/scheduled-calendar-icon.svg",p="/images/icons/placeholder-no-engagements.svg",f="/images/icons/impersonate-user-icon.svg",j="/images/icons/UserContactsExpand.svg",v="/images/client/client-information-circle.svg"},33304:(e,t,s)=>{s.d(t,{A:()=>o});var r=s(95155);s(12115);var a=s(75557),n=s(65229),l=s(28990),i=s(91787),d=s(15992),c=s(71761);function o(e){let{awards:t,onEdit:s,onClose:o}=e,h=!!(t.content&&""!==t.content.trim());return(0,r.jsxs)("div",{className:"h-full flex flex-col min-h-0","data-testid":"awards-content",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between py-3 bg-white flex-shrink-0",children:[(0,r.jsxs)("h3",{className:"text-lg font-semibold text-card-foreground flex items-center gap-2",children:[t.isAIGenerated&&(0,r.jsx)(c.A,{text:"AI Generated"}),"Awards & Certifications"]}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:"pb-1",children:(0,r.jsx)(l.A,{icon:"".concat(d.z5,"#edit_icon"),width:16,height:16,color:"var(--color-text-primary)",className:"cursor-pointer",onClick:()=>s(t),"data-testid":"edit-awards"})}),(0,r.jsx)("button",{onClick:o,className:"p-2 rounded-lg cursor-pointer","data-testid":"remove-section-button",children:(0,r.jsx)(n.A,{className:"h-4 w-4 text-icon-primary"})})]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto py-3 min-h-0",children:(0,r.jsx)("div",{className:"space-y-6 px-0",children:h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"bg-bg-card rounded-lg p-4 relative group",children:(0,r.jsx)("div",{className:"text-sm text-secondary-text leading-relaxed",children:(0,r.jsx)(i.A,{content:t.content,dataTestId:"awards-text-content"})})}),t.lastUpdated&&(0,r.jsxs)("div",{className:"flex justify-between items-center text-xs text-secondary-text",children:[(0,r.jsx)("span",{className:"text-secondary-text",children:"Last Updated On"}),(0,r.jsx)("span",{className:"font-medium text-card-foreground",children:(0,a.Yq)(t.lastUpdated)})]})]}):(0,r.jsx)("div",{className:"text-center py-8",children:(0,r.jsx)("p",{className:"text-text-secondary",children:"No awards content available."})})})})]})}},51861:(e,t,s)=>{s.d(t,{A:()=>c});var r=s(95155),a=s(12115),n=s(67909),l=s(25016);let i=(0,n.default)(()=>Promise.all([s.e(499),s.e(3483),s.e(4104),s.e(7520),s.e(7150),s.e(5644),s.e(1531),s.e(9891),s.e(875),s.e(8739)]).then(s.bind(s,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..."})})}),d=(0,a.forwardRef)((e,t)=>{let{value:s,onChange:n,placeholder:d="Enter text...",readOnly:c=!1,disabled:o=!1,className:h,dataTestId:m,...u}=e,x=(0,a.useRef)(null),g=(0,a.useRef)(s),p=(0,a.useRef)(!1);(0,a.useImperativeHandle)(t,()=>x.current,[]),(0,a.useEffect)(()=>{!p.current&&s!==g.current&&x.current&&x.current.getMarkdown()!==s&&(x.current.setMarkdown(s||""),g.current=s)},[s]);let f=a.useCallback(e=>{if(p.current)return;let t=setTimeout(()=>{e!==g.current&&(g.current=e,p.current=!0,n(e),setTimeout(()=>{p.current=!1},50))},100);return()=>clearTimeout(t)},[n]);return(0,r.jsx)("div",{className:(0,l.cn)("w-full",h),"data-testid":m,children:(0,r.jsx)("div",{className:(0,l.cn)("editor-container",o&&"opacity-60 pointer-events-none",c&&"editor-readonly"),children:(0,r.jsx)(i,{editorRef:x,markdown:s||"",onChange:f,readOnly:c||o,placeholder:d,contentEditableClassName:"editor-input min-h-[200px] p-4 outline-none",...u})})})});d.displayName="RichTextEditor";let c=d},60919:(e,t,s)=>{s.d(t,{pe:()=>a});let{Axios:r,AxiosError:a,CanceledError:n,isCancel:l,CancelToken:i,VERSION:d,all:c,Cancel:o,isAxiosError:h,spread:m,toFormData:u,AxiosHeaders:x,HttpStatusCode:g,formToJSON:p,getAdapter
1:f,mergeConfig:j}=s(95125).A},64403:(e,t,s)=>{s.d(t,{A:()=>d});var r=s(95155);s(12115);var a=s(65229),n=s(90235),l=s(87133),i=s(51861);function d(e){let{formData:t,errors:s,onInputChange:d,onSave:c,onCancel:o}=e;return(0,r.jsxs)("div",{className:"h-full flex flex-col","data-testid":"awards-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:"Add Awards & Certifications"}),(0,r.jsx)("button",{onClick:o,className:"p-2 rounded-lg cursor-pointer","data-testid":"close-edit-award-form",children:(0,r.jsx)(a.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:[s.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:s.general})}),(0,r.jsxs)("div",{className:"space-y-2","data-error":!!s.content,children:[(0,r.jsx)(n.Label,{htmlFor:"content",className:"text-s font-semibold",style:{color:"var(--color-foreground)"},children:"Awards & Certifications Content"}),(0,r.jsx)(i.A,{value:t.content||"",onChange:e=>d("content",e),placeholder:"Enter awards and certifications content...",readOnly:!1,dataTestId:"awards-content-editor"}),s.content&&(0,r.jsx)("p",{className:"text-xs text-error-solid","data-testid":"content-error",children:s.content})]})]})}),(0,r.jsx)("div",{className:"py-3 px-3",children:(0,r.jsxs)("div",{className:"flex gap-3 justify-start",children:[(0,r.jsx)(l.$n,{onClick:c,variant:"primary",size:"md",dataTestId:"save-award",children:"Save"}),(0,r.jsx)(l.$n,{onClick:o,variant:"outline",size:"md",dataTestId:"cancel-award",children:"Cancel"})]})})]})}},91787:(e,t,s)=>{s.d(t,{A:()=>c});var r=s(95155),a=s(12115),n=s(99620),l=s(5134),i=s(34217),d=s(23255);function c(e){let{content:t,className:s="",dataTestId:c}=e;if(!t||""===t.trim())return null;let o=(e=>{if(!e)return e;let t=e;
1return(t=(t=(t=(t=t.replace(/\\n/g,"\n")).replace(/^#n#(\d+)\.\s+(.*)$/gm,"$1. $2")).replace(/^(\w+)#(\s+[^\n]+)$/gm,(e,t,s)=>["quote","text","heading","title"].includes(t.toLowerCase())||t.length<=10&&/^[a-zA-Z]+$/.test(t)?"#".concat(s):e)).replace(/^[ \t]+(#{1,6}\s+)/gm,"$1")).replace(/\+\+([^+]+)\+\+/g,(e,t)=>"<u>".concat(t,"</u>"))})(t),h=(e=>{if(!e||""===e.trim())return"plain";let t=e.trim(),s=t.includes("\n"),r=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 s=t.match(e);s&&(r+=s.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 s=t.match(e);s&&(a+=s.length)});let n=/<[a-zA-Z][a-zA-Z0-9]*[^>]*>.*<\/[a-zA-Z][a-zA-Z0-9]*>/.test(t),l=/^#{1,6}\s+|^\*\s+|^-\s+|^\d+\.\s+|^#n#\d+\.\s+|^\>\s+|\[.*\]\(.*\)|\*\*.*\*\*|\*.*\*|\+\+.*\+\+|~~.*~~|`.*`/.test(t),i=/^<[^>]*>[\s\S]*<\/[^>]*>$/.test(t),d=/^#{1,6}\s+[\s\S]*$|^\*\s+[\s\S]*$|^-\s+[\s\S]*$|^\d+\.\s+[\s\S]*$/.test(t);return i&&!l?"html":d&&!n?"markdown":r>2*a?"html":a>2*r?"markdown":n&&!l?"html":l&&!n||s&&/\n\n/.test(t)||s&&!n&&!l?"markdown":"plain"})(o),m={fontSize:"14px",lineHeight:"1.6",color:"var(--color-secondary-text)"};if("html"===h)return(0,r.jsx)("div",{className:"rich-text-display ".concat(s),"data-testid":c,style:m,dangerouslySetInnerHTML:{__html:o}});if("markdown"===h)return(0,r.jsx)("div",{className:"rich-text-display ".concat(s),"data-testid":c,style:m,children:(0,r.jsx)(n.oz,{remarkPlugins:[l.A,i.A],rehypePlugins:[d.A],components:{h1:e=>{let{children:t}=e;return(0,r.jsx)("h1",{className:"editor-heading-h1",children:t})},h2:e=>{let{children:t}=e;return(0,r.jsx)("h2",{className:"editor-heading-h2",children:t})},h3:e=>{let{children:t}=e;return(0,r.jsx)("h3",{className:"editor-heading-h3",children:t})},h4:e=>{let{children:t}=e;return(0,r.jsx)("h4",{className:"editor-heading-h4",children:t})},h5:e=>{let{children:t}=e;return(0,r.jsx)("h5",{className:"editor-heading-h5",children:t})},h6:e=>{let{children:t}=e;return(0,r.jsx)("h6",{className:"editor-heading-h6",children:t})},p:e=>{let{children:t}=e;return(0,r.jsx)("p",{className:"editor-paragraph",children:t})},ul:e=>{let{children:t}=e;return(0,r.jsx)("ul",{className:"editor-list-ul",children:t})},ol:e=>{let{children:t}=e;return(0,r.jsx)("ol",{className:"editor-list-ol",children:t})},li:e=>{let{children:t}=e;return(0,r.jsx)("li",{className:"editor-listitem",children:t})},blockquote:e=>{let{children:t}=e;return(0,r.jsx)("blockquote",{className:"editor-quote",children:t})},code:e=>{let{children:t,className:s}=e;return s?(0,r.jsx)("code",{className:"editor-code",children:t}):(0,r.jsx)("code",{className:"editor-text-code",children:t})},pre:e=>{let{children:t}=e;return(0,r.jsx)("pre",{className:"bg-bg-nav p-3 rounded overflow-x-auto",children:t})},a:e=>{let{href:t,children:s}=e;return(0,r.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:s})},strong:e=>{let{children:t}=e;return(0,r.jsx)("strong",{className:"editor-text-bold",children:t})},em:e=>{let{children:t}=e;return(0,r.jsx)("em",{className:"editor-text-italic",children:t})},u:e=>{let{children:t}=e;return(0,r.jsx)("u",{className:"editor-text-underline",children:t})},del:e=>{let{children:t}=e;return(0,r.jsx)("del",{className:"editor-text-strikethrough",children:t})},div:e=>{let{children:t,className:s,style:a,...n}=e;return(0,r.jsx)("div",{className:s,style:a,...n,children:t})},span:e=>{let{children:t,className:s,style:a,...n}=e;return(0,r.jsx)("span",{className:s,style:a,...n,children:t})},table:e=>{let{children:t}=e;return(0,r.jsx)("table",{className:"min-w-full border-collapse border border-stroke-light",children:t})},thead:e=>{let{children:t}=e;return(0,r.jsx)("thead",{className:"bg-gray-200",children:t})},tbody:e=>{let{children:t}=e;return(0,r.jsx)("tbody",{children:t})},tr:e=>{let{children:t}=e;return(0,r.jsx)("tr",{className:"border-b border-stroke-light",children:t})},th:e=>{let{children:t}=e;return(0,r.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,r.jsx)("td",{className:"border border-stroke-light px-3 py-2",children:t})}},children:o})});let u=o.split("\n"),x=o.split(/\n\s*\n/);return(0,r.jsx)("div",{className:"rich-text-display ".concat(s),"data-testid":c,style:m,children:x.length>1?x.map((e,t)=>(0,r.jsx)("p",{className:"editor-paragraph",children:e.split("\n").map((t,s)=>(0,r.jsxs)(a.Fragment,{children:[t,s<e.split("\n").length-1&&(0,r.jsx)("br",{})]},s))},t)):u.map((e,t)=>(0,r.jsxs)(a.Fragment,{children:[e,t<u.length-1&&(0,r.jsx)("br",{})]},t))})}}}]);

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.