PageSourceSearch

https://xyrus.ai/_next/static/chunks/5468.f25cd5f3be71359f.js

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

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5468],{15992:(e,t,s)=>{s.d(t,{A7:()=>j,DI:()=>p,Dz:()=>x,M9:()=>c,Rt:()=>o,Tm:()=>m,V_:()=>g,Wl:()=>n,bR:()=>a,cZ:()=>h,ds:()=>u,h2:()=>i,lU:()=>f,oW:()=>l,sJ:()=>v,wp:()=>d,z5:()=>r});let r="/images/icons/pencil-edit.svg",a="/images/icons/phone-icon.svg",n="/images/icons/globe-icon.svg",i="/images/icons/email-icon.svg",l="/images/icons/location-icon.svg",o="/images/icons/link-icon.svg",c="/images/icons/refresh-icon.svg",d="/images/icons/share-icon.svg",m="/images/icons/bag-icon.svg",h="/images/icons/document-icon.svg",u="/images/icons/right-arrow-icon.svg",g="/images/icons/linkedinIcon.svg",x="/images/icons/scheduled-calendar-icon.svg",p="/images/icons/placeholder-no-engagements.svg",v="/images/icons/impersonate-user-icon.svg",f="/images/icons/UserContactsExpand.svg",j="/images/client/client-information-circle.svg"},42546:(e,t,s)=>{s.r(t),s.d(t,{default:()=>b});var r=s(95155),a=s(12115),n=s(98734),i=s(44193),l=s(18720);let o=n.Ik({content:n.Yj().max(5e3,"Content must be less than 5000 characters").optional()});var c=s(27638),d=s(65229),m=s(90235),h=s(87133),u=s(51861);function g(e){let{formData:t,errors:s,onInputChange:a,onSave:n,onCancel:i}=e;return(0,r.jsxs)("div",{className:"h-full flex flex-col","data-testid":"motivating-factors-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 Motivating Factors"}),(0,r.jsx)("button",{onClick:i,className:"p-2 rounded-lg cursor-pointer","data-testid":"close-edit-motivating-factors-form",children:(0,r.jsx)(d.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)(m.Label,{htmlFor:"content",className:"text-s font-semibold",style:{color:"var(--color-foreground)"},children:"Motivating Factors"}),(0,r.jsx)(u.A,{value:t.content||"",onChange:e=>a("content",e),placeholder:"Enter Here",dataTestId:"motivating-factors-content-input",className:s.content?"border-error-solid":""}),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)(h.$n,{onClick:n,variant:"primary",size:"md",dataTestId:"save-motivating-factors",children:"Save"}),(0,r.jsx)(h.$n,{onClick:i,variant:"outline",size:"md",dataTestId:"cancel-motivating-factors",children:"Cancel"})]})})]})}var x=s(75557),p=s(28990),v=s(91787),f=s(15992),j=s(71761);function N(e){let{motivatingFactors:t,onEdit:s,onClose:a}=e,n=!!(t.content&&""!==t.content.trim());return(0,r.jsxs)("div",{className:"h-full flex flex-col min-h-0","data-testid":"motivating-factors-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)(j.A,{text:"AI Generated"}),"Motivating Factors"]}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:"pb-1",children:(0,r.jsx)(p.A,{icon:"".concat(f.z5,"#edit_icon"),width:16,height:16,color:"var(--color-text-primary)",className:"cursor-pointer",onClick:()=>s(t),"data-testid":"edit-motivating-factors"})}),(0,r.jsx)("button",{onClick:a,className:"p-2 rounded-lg cursor-pointer","data-testid":"remove-section-button",children:(0,r.jsx)(d.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:n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"bg-bg-card rounded-lg p-4 flex items-start gap-3",children:(0,r.jsx)("div",{className:"flex-1 min-w-0 text-sm text-secondary-text leading-relaxed",children:(0,r.jsx)(v.A,{content:t.content,dataTestId:"motivating-factors-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,x.Yq)(t.lastUpdated)})]})]}):(0,r.jsx)("div",{className:"text-center py-8",children:(0,r.jsx)("p",{className:"text-text-secondary",children:"No motivating factors content available."})})})})]})}function b(e){let{data:t,mode:s="list"}=e,[n,d]=(0,a.useState)(void 0),m=e=>null!==e&&"object"==typeof e&&"motivatingFactors"in e;(0,a.useEffect)(()=>{m(t)&&d(t.motivatingFactors)},[t]),(0,a.useEffect)(()=>{let e=c.Og.subscribe(e=>{d(e)});return()=>e.unsubscribe()},[]);let h=m(t)?t.mode:void 0,u=m(t)?t.updateCandidate:void 0,x={initialMode:h||s};n&&(x.initialMotivatingFactors=n),u&&(x.updateCandidate=u),(null==t?void 0:t.closeModal)&&(x.closeModal=t.closeModal),(null==t?void 0:t.showLoading)&&(x.showLoading=t.showLoading);let{isEditing:p,formData:v,errors:f,handleAdd:j,handleEdit:b,handleCancel:y,handleInputChange:k,handleSave:w}=function(e){let{initialMode:t,initialMotivatingFactors:s,updateCandidate:r,closeModal:n,showLoading:c}=e,[d,m]=(0,a.useState)("add"===t||"edit"===t),[h,u]=(0,a.useState)({content:"edit"===t&&s?s.content:""}),[g,x]=(0,a.useState)({}),[p,v]=(0,a.useState)("edit"===t&&s&&s.content||""),f=()=>{m(!1),u({content:""}),x({})},j=async()=>
1{if(null==c||c(!0,"Saving motivating factors..."),!(()=>{try{return o.parse(h),x({}),!0}catch(e){if(e instanceof i.G){let t={};e.errors.forEach(e=>{t[e.path[0]]=e.message}),x(t)}return!1}})()){null==c||c(!1);return}if((h.content||"")===p){null==c||c(!1),l.oR.info("No Changes Made",{description:"Make changes to save motivating factors information"});return}if(!r){x({general:"Update function not available. Please try again."}),null==c||c(!1);return}try{let e={motivating_factors:h.content||""};await r(e),l.oR.success("Motivating Factors Updated",{description:"Motivating factors have been updated successfully"}),f(),n&&n()}catch(t){let e=t instanceof Error?t.message:"Failed to update motivating factors";l.oR.error("Update Failed",{description:e}),x({general:"Failed to save motivating factors. Please try again."})}finally{null==c||c(!1)}};return{isEditing:d,formData:h,errors:g,handleAdd:()=>{m(!0),u({content:""}),v(""),x({})},handleEdit:e=>{m(!0);let t=e||s,r=(null==t?void 0:t.content)||"";u({content:r}),v(r),x({})},handleCancel:f,handleInputChange:(e,t)=>
1{u(s=>({...s,[e]:t})),g[e]&&x(t=>({...t,[e]:""}))},handleSave:j}}(x);return n?p?(0,r.jsx)(g,{formData:v,errors:f,onInputChange:k,onSave:w,onCancel:y}):(0,r.jsx)(N,{motivatingFactors:n,onAdd:j,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 motivating factors available."})})}},51861:(e,t,s)=>{s.d(t,{A:()=>c});var r=s(95155),a=s(12115),n=s(67909),i=s(25016);let l=(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..."})})}),o=(0,a.forwardRef)((e,t)=>{let{value:s,onChange:n,placeholder:o="Enter text...",readOnly:c=!1,disabled:d=!1,className:m,dataTestId:h,...u}=e,g=(0,a.useRef)(null),x=(0,a.useRef)(s),p=(0,a.useRef)(!1);(0,a.useImperativeHandle)(t,()=>g.current,[]),(0,a.useEffect)(()=>{!p.current&&s!==x.current&&g.current&&g.current.getMarkdown()!==s&&(g.current.setMarkdown(s||""),x.current=s)},[s]);let v=a.useCallback(e=>{if(p.current)return;let t=setTimeout(()=>{e!==x.current&&(x.current=e,p.current=!0,n(e),setTimeout(()=>{p.current=!1},50))},100);return()=>clearTimeout(t)},[n]);return(0,r.jsx)("div",{className:(0,i.cn)("w-full",m),"data-testid":h,children:(0,r.jsx)("div",{className:(0,i.cn)("editor-container",d&&"opacity-60 pointer-events-none",c&&"editor-readonly"),children:(0,r.jsx)(l,{editorRef:g,markdown:s||"",onChange:v,readOnly:c||d,placeholder:o,contentEditableClassName:"editor-input min-h-[200px] p-4 outline-none",...u})})})});o.displayName="RichTextEditor";let c=o},60919:(e,t,s)=>{s.d(t,{pe:()=>a});let{Axios:r,AxiosError:a,CanceledError:n,isCancel:i,CancelToken:l,VERSION:o,all:c,Cancel:d,isAxiosError:m,spread:h,toFormData:u,AxiosHeaders:g,HttpStatusCode:x,formToJSON:p,getAdapter:v,mergeConfig:f}=s(95125).A},91787:(e,t,s)=>{s.d(t,{A:()=>c});var r=s(95155),a=s(12115),n=s(99620),i=s(5134),l=s(34217),o=s(23255);function c(e){let{content:t,className:s="",dataTestId:c}=e;if(!t||""===t.trim())return null;let d=(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),m=(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),i=/^#{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&&!i?"html":o&&!n?"markdown":r>2*a?"html":a>2*r?"markdown":n&&!i?"html":i&&!n||s&&/\n\n/.test(t)||s&&!n&&!i?"markdown":"plain"})(d),h={fontSize:"14px",lineHeight:"1.6",color:"var(--color-secondary-text)"};if("html"===m)return(0,r.jsx)("div",{className:"rich-text-display ".concat(s),"data-testid":c,style:h,dangerouslySetInnerHTML:{__html:d}});if("markdown"===m)return(0,r.jsx)("div",{className:"rich-text-display ".concat(s),"data-testid":c,style:h,children:(0,r.jsx)(n.oz,{remarkPlugins:[i.A,l.A],rehypePlugins:[o.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:d})});let u=d.split("\n"),g=d.split(/\n\s*\n/);return(0,r.jsx)("div",{className:"rich-text-display ".concat(s),"data-testid":c,style:h,children:g.length>1?g.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.