qlu-20-ui-library 1.9.19 → 1.9.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/index.css +1 -1
- package/dist/build/qlu-20-ui-library.cjs +1 -1
- package/dist/build/qlu-20-ui-library.js +1 -1
- package/dist/components/SwitchLarge/index.d.ts +0 -1
- package/dist/types/components/SwitchLarge/index.d.ts +0 -1
- package/dist/types/components/SwitchLarge/index.js +1 -2
- package/package.json +1 -1
|
@@ -1053,7 +1053,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1053
1053
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
1054
1054
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
1055
1055
|
* Copyright 2024 Fonticons, Inc.
|
|
1056
|
-
*/const Ry={prefix:"fas",iconName:"underline",icon:[448,512,[],"f0cd","M16 64c0-17.7 14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-16 0 0 128c0 53 43 96 96 96s96-43 96-96l0-128-16 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-16 0 0 128c0 88.4-71.6 160-160 160s-160-71.6-160-160L64 96 48 96C30.3 96 16 81.7 16 64zM0 448c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32z"]},$Q={prefix:"fas",iconName:"bold",icon:[384,512,[],"f032","M0 64C0 46.3 14.3 32 32 32l48 0 16 0 128 0c70.7 0 128 57.3 128 128c0 31.3-11.3 60.1-30 82.3c37.1 22.4 62 63.1 62 109.7c0 70.7-57.3 128-128 128L96 480l-16 0-48 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l16 0 0-160L48 96 32 96C14.3 96 0 81.7 0 64zM224 224c35.3 0 64-28.7 64-64s-28.7-64-64-64L112 96l0 128 112 0zM112 288l0 128 144 0c35.3 0 64-28.7 64-64s-28.7-64-64-64l-32 0-112 0z"]},Dy={prefix:"fas",iconName:"italic",icon:[384,512,[],"f033","M128 64c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-58.7 0L160 416l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l58.7 0L224 96l-64 0c-17.7 0-32-14.3-32-32z"]},e_={prefix:"fas",iconName:"align-left",icon:[448,512,[],"f036","M288 64c0 17.7-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l224 0c17.7 0 32 14.3 32 32zm0 256c0 17.7-14.3 32-32 32L32 352c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32zM0 192c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 224c-17.7 0-32-14.3-32-32zM448 448c0 17.7-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},t_={prefix:"fas",iconName:"align-center",icon:[448,512,[],"f037","M352 64c0-17.7-14.3-32-32-32L128 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l192 0c17.7 0 32-14.3 32-32zm96 128c0-17.7-14.3-32-32-32L32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zM0 448c0 17.7 14.3 32 32 32l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 416c-17.7 0-32 14.3-32 32zM352 320c0-17.7-14.3-32-32-32l-192 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l192 0c17.7 0 32-14.3 32-32z"]},n_={prefix:"fas",iconName:"b",icon:[320,512,[98],"42","M64 32C28.7 32 0 60.7 0 96L0 256 0 416c0 35.3 28.7 64 64 64l128 0c70.7 0 128-57.3 128-128c0-46.5-24.8-87.3-62-109.7c18.7-22.3 30-51 30-82.3c0-70.7-57.3-128-128-128L64 32zm96 192l-96 0L64 96l96 0c35.3 0 64 28.7 64 64s-28.7 64-64 64zM64 288l96 0 32 0c35.3 0 64 28.7 64 64s-28.7 64-64 64L64 416l0-128z"]},Ny={prefix:"fas",iconName:"list-ul",icon:[512,512,["list-dots"],"f0ca","M64 144a48 48 0 1 0 0-96 48 48 0 1 0 0 96zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM64 464a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm48-208a48 48 0 1 0 -96 0 48 48 0 1 0 96 0z"]},r_={prefix:"fas",iconName:"t",icon:[384,512,[116],"54","M32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l128 0 0 352c0 17.7 14.3 32 32 32s32-14.3 32-32l0-352 128 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 32 32 32z"]},Gf=({editor:t,updateAlignment:e})=>{const n=[{label:"BOLD",style:"BOLD",icon:l.jsx(xn,{icon:$Q,size:"sm"}),command:()=>t.chain().focus().toggleBold().run(),isActive:()=>t.isActive("bold")},{label:"ITALIC",style:"ITALIC",icon:l.jsx(xn,{icon:Dy,size:"sm"}),command:()=>t.chain().focus().toggleItalic().run(),isActive:()=>t.isActive("italic")},{label:"Underline",style:"UNDERLINE",icon:l.jsx(xn,{icon:Ry,size:"sm"}),command:()=>t.chain().focus().toggleUnderline().run(),isActive:()=>t.isActive("underline")},{label:"ALIGNLEFT",style:"ALIGNLEFT",icon:l.jsx(xn,{icon:e_,size:"sm"}),command:()=>{e("left"),t.chain().focus().setTextAlign("left").run()},isActive:()=>t.isActive({textAlign:"left"})||!t.isActive({textAlign:"center"})},{label:"ALIGNCENTER",style:"ALIGNCENTER",icon:l.jsx(xn,{icon:t_,size:"sm"}),command:()=>{e("center"),t.chain().focus().setTextAlign("center").run()},isActive:()=>t.isActive({textAlign:"center"})}],r=[{label:"list",style:"unordered-list-item",icon:l.jsx(xn,{icon:Ny,size:"sm"}),command:()=>t.chain().focus().toggleBulletList().run(),isActive:()=>t.isActive("bulletList")}],i=(s,a)=>{s.preventDefault(),a()};return l.jsxs("div",{className:"renderInlineEditorContainer",children:[n.map((s,a)=>l.jsx("div",{className:`renderInlineEditortoolBarItem${s.isActive()?" renderInlineEditortoolBarItemIsActive":""}`,onMouseDown:o=>{o.preventDefault(),i(o,s.command)},children:s.icon||s.label},`${s.label}-${a}`)),r.map((s,a)=>l.jsx("div",{className:`renderInlineEditortoolBarItem ${s.isActive()?"renderInlineEditortoolBarItemIsActive":""}`,onMouseDown:o=>{o.preventDefault(),i(o,s.command)},children:s.icon||s.label},`${s.label}-${a}`))]})},Ty=C.memo(({placeholder:t="",isNextDisabled:e,className:n,value:r,showHeader:i=!0,headerPosition:s="top",showError:a=!0,editor:o})=>{const[c,u]=C.useState(!1),[h,f]=C.useState("left"),p=C.useCallback(m=>{const g=["left","center"];let v=m;m===g[0]&&h===g[0]?v=g[1]:m===g[1]&&h===g[1]&&(v=g[0]),f(v),o&&o.chain().focus().setTextAlign(v).run()},[o,h]);return C.useEffect(()=>{o&&r!==o.getHTML()&&o.commands.setContent(r)},[o,r]),C.useEffect(()=>{u(r!=="")},[r]),o?l.jsx("div",{className:`${n||""}`,children:e?l.jsx("span",{className:"loader--draft",children:l.jsx(Q1,{width:"32",height:"32"})}):l.jsxs("div",{children:[l.jsxs("div",{className:`main-draft ${!c&&a&&"msg-error-draft"}`,children:[i&&s==="top"&&l.jsx("div",{className:"draft-head",children:l.jsx(Gf,{editor:o,updateAlignment:p})}),l.jsx("div",{className:"editor-textarea",children:l.jsx(M8,{editor:o,placeholder:t,style:{textAlign:h}})}),i&&s==="bottom"&&l.jsx("div",{className:"draft-foot",children:l.jsx(Gf,{editor:o,updateAlignment:p})})]}),!c&&a&&l.jsxs("div",{className:"error-svg-draft",children:[l.jsx("span",{className:"error-svg-span",children:l.jsx(ce,{iconType:"excalamationCircle",iconSize:"24"})}),l.jsx("span",{children:"Message is empty"})]})]})}):null});Ty.displayName="StyleableTextArea";const i_=Kn.create({name:"tagSpan",group:"inline",inline:!0,atom:!0,addOptions(){return{HTMLAttributes:{}}},addAttributes(){return{"data-tag":{default:null,parseHTML:t=>t.getAttribute("data-tag"),renderHTML:t=>t["data-tag"]?{"data-tag":t["data-tag"]}:{}},text:{default:"",parseHTML:t=>t.textContent,renderHTML:()=>({})}}},parseHTML(){return[{tag:'span[class="tagStyle"]',getAttrs:t=>{const e=t;return{"data-tag":e.getAttribute("data-tag"),text:e.textContent}}}]},renderHTML({HTMLAttributes:t,node:e}){return["span",c2({class:"tagStyle",contenteditable:"false",style:"cursor: pointer;"},t),e.attrs.text||""]},addProseMirrorPlugins(){return[new u2({props:{handleDOMEvents:{click:(t,e)=>{const n=e.target;if(n&&n.classList.contains("tagStyle")){const r=t.posAtDOM(n,0);if(r!==null&&r!==-1){const i=t.state.doc.nodeAt(r);if(i&&i.type.name==="tagSpan")return t.dispatch(t.state.tr.delete(r,r+i.nodeSize)),!0}}return!1}},handleKeyDown:(t,e)=>{if(e.key==="Backspace"){const{selection:n}=t.state,{$from:r}=n,i=r.nodeBefore;if(i&&i.type.name==="tagSpan"){const a=r.pos-i.nodeSize;let o=i.attrs.text||"";o=o.replace(/\s*✕$/,"");const c=t.state.tr.delete(a,r.pos).insertText(o,a);return t.dispatch(c),!0}const s=t.state.doc.nodeAt(r.pos);if(s&&s.type.name==="tagSpan"){const a=s.attrs.text||"",o=t.state.tr.delete(r.pos,r.pos+s.nodeSize).insertText(a,r.pos);return t.dispatch(o),!0}}return!1}}})]}}),By=({tabs:t,onSelect:e,selectedTab:n,dataCyArray:r=[],children:i})=>{const s=(o,c)=>fe({[`${o}--Generic`]:!0,[`${o}--Active`]:n===c}),a=o=>o===0?"":o.toString().padStart(2,"0");return l.jsxs("div",{className:"tabs",children:[l.jsx("div",{className:"tabsNav",children:t.map((o,c)=>l.jsxs("button",{className:s("tabsNavItem",o.title),onClick:()=>e(o.title),"data-cy":r[c]??"",children:[o.title,!!o.count&&l.jsx("p",{className:s("tabsNavItem-Number",o.title),children:a(o.count??0)})]},o.id))}),i]})},Iy=({tabs:t,handleChange:e,styleableTags:n,tagClasses:r})=>{if(t.length===0)return null;const[i,s]=C.useState(t[0].tabName),a=({cursorPos:f,name:p,skillFlag:m=!1})=>{const v=m?p:p.split(" ").join("_"),x=b=>{if(b.preventDefault(),n&&!m)e(`{{.${v}}}`);else if(m)e(v);else{const M="".slice(0,f)+`${m?v:`{{.${v}}}`}`+"".slice(f);e(M)}};return l.jsxs("button",{className:"tags",onMouseDown:x,children:[l.jsx("p",{className:"tagButtonComponent-TagText",children:p}),l.jsx(ce,{iconType:"plus",iconSize:"16"})]})},o=t.map((f,p)=>({id:p.toString(),title:f.tabName,content:l.jsx("div",{className:`tagContainer ${r||""}`,children:f.tabList.map(m=>l.jsx(a,{cursorPos:void 0,name:m.tagName}))})})),c=f=>o.find(p=>p.title===f)?.content,u=o.map(f=>({id:f.id,title:f.title})),h=f=>s(f);return l.jsx("div",{className:"tabContainer",children:l.jsx(By,{tabs:u,onSelect:h,selectedTab:i,children:c(i)})})},s_=({message:t,charLimits:e,maxLength:n=360,onChange:r=()=>!1,isNextDisabled:i,showTagButtons:s,tabs:a,className:o,tagClasses:c,showHeader:u=!0,headerPosition:h="top",placeholder:f="",showError:p=!0,showSchoolBtn:m=!0})=>{const[g,v]=C.useState(t),[x,b]=C.useState(0),M=C.useCallback(k=>{const R=document.createElement("div");R.innerHTML=k,R.querySelectorAll("span.tagStyle[data-tag]").forEach(V=>{const O=V.getAttribute("data-tag");if(O){const X=Ec(O);V.textContent=X}});const N=R.textContent||R.innerText||"";b(N.length),v(k),r(N)},[r]),A=A8({extensions:[k8,Kx,i_,bJ.configure({types:["heading","paragraph"]})],content:t,editorProps:{attributes:{class:"tiptap-editor"}},onUpdate:({editor:k})=>{const R=k.getHTML();M(R)}});C.useEffect(()=>{A&&n&&A.setOptions({editorProps:{...A.options.editorProps,handlePaste:(k,R)=>{const B=R.clipboardData;if(B){const N=B.getData("text/plain"),V=A.getText().length,O=n-V;if(N.length>O){const X=N.slice(0,O);return A.commands.insertContent(X),!0}}return!1},handleKeyDown:(k,R)=>R.key.length===1&&A.getText().length>=n}})},[A,n]);const L=C.useCallback(k=>{const R=Ec(k);n&&x+R.length>=n||A&&A.chain().focus().insertContent({type:"tagSpan",attrs:{"data-tag":k,text:R}}).insertContent(" ").run()},[n,x,A]);return l.jsxs("div",{children:[l.jsx(Ty,{editor:A,value:g,isNextDisabled:i,className:o,showHeader:u,headerPosition:h,placeholder:f,showError:p}),e&&n&&l.jsx("span",{style:{color:"#727272",fontFamily:"Inter",fontStyle:"normal",fontWeight:400,fontSize:"12px"},children:l.jsxs("p",{className:"textAreaWithTooltip-charactersLeft",children:[n-x," characters left"]})}),s&&a&&l.jsx(Iy,{tabs:a,handleChange:L,styleableTags:!0,tagClasses:c,showSchoolBtn:m})]})},a_=({switches:t,dataCy:e})=>l.jsx("div",{className:"switchLarge",children:t.map((n,r)=>l.jsx(A1,{content:n.name,children:l.jsxs("button",{className:`${n.isActive?"active":""}`,onClick:n.onClick,"data-cy":n.text?`${e}-${n.text?.toLowerCase()}`:`${e}-${n.name?.toLowerCase()}`,children:[n.text&&!n.iconType||n.showBoth&&n.text&&l.jsx("span",{className:"switchButtonText",children:n.text}),n.iconType&&l.jsx(ce,{iconType:n.iconType,iconSize:"16"})]},r)}))}),o_=({columns:t,data:e})=>{const{getTableProps:n,getTableBodyProps:r,headerGroups:i,rows:s,prepareRow:a}=jn.useTable({columns:t,data:e});return l.jsxs("table",{...n(),className:"table",children:[l.jsx("thead",{children:i.map(o=>l.jsxs(C.Fragment,{children:[o.headers.map(c=>l.jsx("th",{...c.getHeaderProps(),style:{width:c.width},children:c.render("Header")})),o.headers.length<t.length&&l.jsx("th",{})]},o.getHeaderGroupProps().key))}),l.jsx("tbody",{...r(),children:s.map(o=>(a(o),l.jsxs("tr",{...o.getRowProps(),className:"row",children:[o.cells.map(c=>l.jsx("td",{...c.getCellProps(),children:c.render("Cell")})),o.cells.length<t.length&&l.jsx("td",{})]})))})]})},Py=({text:t="",TextWithSvgButtonClassName:e="",sizeVariant:n="xs",colorVariant:r="gray",isDisabled:i=!1,iconType:s,onClick:a,...o})=>{const c=fe({textWithSvgButtonGeneric:!0,[`${n}Size--TextWithSvgButton`]:!0,[`${r}--TextWithSvgButton`]:!0});return l.jsxs("button",{...o,className:`${c} ${e}`,disabled:i,onClick:a,children:[s&&l.jsx(ce,{iconType:s,iconSize:"16"}),t.length>0&&t]})},Vy=({initialState:t,onClick:e,sizeVariant:n="base",isDisabled:r=!1,dataCy:i})=>{const[s,a]=C.useState(t);C.useEffect(()=>{a(t)},[t]);const o=()=>{r||(a(!s),e())};return l.jsx("div",{className:`${n==="sm"?"smSizeToggle":"toggle"} ${s?"on":"off"}`,onClick:o,"data-cy":i,children:l.jsx("div",{className:n==="sm"?"smSizeToggle-switch":"toggle-switch"})})},Hy=({text:t="Placeholder text to be truncated is as follows",length:e=20,toolTipClassName:n="",toolTipPosition:r="top"})=>{const i=t.length>e?`${t.slice(0,e)}...`:t,s=Hs();return t.length>e?l.jsx(l.Fragment,{children:l.jsxs("span",{"data-tooltip-id":s,className:n,children:[i,l.jsx(Vp,{id:s,className:"toolTipStyling",content:t,place:r})]})}):l.jsx("span",{children:i})},lc=({remainingTime:t=0,className:e=""})=>{const n=i=>{const s=Math.floor(i/60),a=i%60;return`${s>9?"":0}${s}:${a<10?"0":""}${a}`},r=fe({searchTimer:!0,[e]:!!e});return t?l.jsx(A1,{content:"Your search is in process",children:l.jsx("div",{className:r,children:n(t)})}):null},l_=({titles:t,isLoading:e=!1,onTitleClick:n=()=>{},onDeleteClick:r=()=>{},remainingTime:i=0,showMore:s=!1,handleMoreClick:a=()=>{},isDisabled:o=!1,handleBack:c=()=>{},dataCy:u})=>{const h=m=>(m.searchType==="nameGen"||m.searchType==="external"||m.searchType==="massUpdate")&&!m.isCompleted,f=m=>g=>{n(m)},p=m=>g=>{r(m)};return l.jsxs("div",{className:"savedSearches",children:[l.jsxs("div",{children:[l.jsxs("div",{children:[l.jsx("button",{type:"button",onClick:c,"data-cy":`${u}-back-arrow`,children:l.jsx(ce,{iconType:"chevronLeft",iconSize:"24"})}),l.jsx("h3",{children:"Saved Searches"})]}),l.jsxs("div",{children:[t.map((m,g)=>l.jsxs("div",{children:[l.jsxs("div",{children:[l.jsxs("button",{type:"button",className:"btn-Title",onClick:f(m),"data-cy":`${u}-select`,children:[m.searchType==="external"&&l.jsx(A1,{toolTipPosition:"bottom",content:"Search More",children:l.jsx(ce,{iconType:"globeSearch",iconSize:"24"})}),m.searchType==="massUpdate"&&l.jsx(A1,{toolTipPosition:"bottom",content:"Mass Update",children:l.jsx(ce,{iconType:"refresh",iconSize:"24"})}),m.searchType==="nameGen"&&l.jsx(A1,{toolTipPosition:"bottom",content:"Search Builder",children:l.jsx(ce,{iconType:"sparkles",iconSize:"24"})}),m.searchType!=="nameGen"&&m.searchType!=="external"&&m.searchType!=="massUpdate"&&l.jsx(A1,{toolTipPosition:"bottom",content:"Basic Search",children:l.jsx(ce,{iconType:"search",iconSize:"24"})}),l.jsx(s2,{toolTipPosition:"bottom",maxWidth:`${h(m)||m.isLoading?208:264}px`,children:m.name}),h(m)&&l.jsx(lc,{remainingTime:i??0})]}),m.isLoading&&l.jsx(Q1,{width:"18",height:"18"})]}),l.jsx("button",{type:"button",className:"btn-Delete",onClick:p(m),"data-cy":`${u}-delete`,children:l.jsx(ce,{iconType:"delete",iconSize:"18"})})]},g)),e&&l.jsx("span",{className:"loader",children:l.jsx(Q1,{width:"20",height:"20"})}),l.jsx("div",{className:"loadMore",children:s&&l.jsx(R1,{text:"Load More",colorVariant:"gray",onClick:a,disabled:o,sizeVariant:"sm",dataCy:`${u}-load-more`})})]})]}),l.jsx("div",{className:"resultWrapper",children:l.jsx(R1,{text:"Back to results",colorVariant:"orange",onClick:c,disabled:o,sizeVariant:"base",dataCy:`${u}-back`})})]})},c_=({emailList:t,onConnectClick:e,connectedEmail:n,selectedEmail:r})=>{const[i,s]=C.useState(!1),[a,o]=C.useState(n);return l.jsxs("div",{className:"connectDropdown",children:[l.jsxs("button",{className:"input-dropdown",onClick:()=>{s(c=>!c)},children:[l.jsx("span",{children:a}),l.jsx(ce,{iconType:"cheveronDown",iconSize:"24"})]}),l.jsx("div",{children:l.jsxs("ul",{className:i?"connectDropdown-options-list":"connectDropdown-options-list hide",children:[t.map(c=>c.statusLabel?l.jsx(l.Fragment,{}):l.jsx("div",{onClick:()=>{o(c.email),r(c.email),s(u=>!u)},children:c.email})),l.jsx("li",{className:"horizental-line-connectdropdown"}),t.map(c=>c.statusLabel?l.jsxs("div",{children:[l.jsxs("span",{children:[l.jsx("span",{children:c.email}),l.jsx("span",{className:"status-label-connect-button",children:c.statusLabel})]}),l.jsx(R1,{text:"Connect",sizeVariant:"xs",onClick:()=>{e(c.email),s(u=>!u)}})]}):l.jsx(l.Fragment,{}))]})})]})},d_=({iconUrl:t="",iconAltText:e="",position:n="",company:r="",from:i="",to:s="",universalName:a="",urn:o="",onExperienceCompanyClick:c,industries:u=[],expIndustries:h=[],expSkills:f=[],expNumber:p=0,totalExpInCompany:m=0,location:g=""})=>{const[v,x]=C.useState(!1),b="undefined-undefined",M=!!i&&s!==b&&i!==b,A=p===0,L=p===m-1,k=A&&L,R=!A&&!k,B=!L&&!k,N=fe({experienceCard:!0,"experienceCard-Before":R,"experienceCard-After":B&&!A,"experienceCard-FirstExpAfter":B&&A}),V=Vw({industries:u,expIndustries:h});return l.jsxs("div",{className:N,children:[l.jsx("span",{children:A&&l.jsx(l.Fragment,{children:v||!t?l.jsx("div",{className:"companyPlaceholder",children:l.jsx(ce,{iconSize:"40",iconType:"company"})}):l.jsx("img",{width:40,height:40,src:t,alt:e,onError:()=>{x(!0)}})})}),l.jsxs("span",{className:"experienceCardDetails",children:[l.jsx("span",{className:"header",children:l.jsxs("p",{children:[l.jsx("span",{children:n}),A&&l.jsxs(l.Fragment,{children:[l.jsx("span",{children:" at "}),l.jsx("span",{onClick:()=>{c(a,o)},className:"company",children:r})]})]})}),M&&l.jsxs("p",{className:"date",children:[Wn(i)," - ",Wn(s)]}),l.jsx("span",{className:"location",children:g}),V?.length!==0&&A&&l.jsxs("span",{className:"expSkillsAndIndustries",children:[l.jsx("h2",{children:"INDUSTRIES"}),l.jsx("span",{children:V.map((O,X)=>l.jsx(A1,{content:O.source,toolTipPosition:"bottom",children:l.jsx(Xr,{highlightPill:!0,text:O.industry},X)}))})]}),f?.length!==0&&l.jsxs("span",{className:"expSkillsAndIndustries",children:[l.jsx("h2",{children:"Keywords/Skills"}),l.jsx("span",{children:f?.map((O,X)=>l.jsx(Xr,{highlightPill:!0,text:O},X))})]})]})]})},u_=({experiences:t,initialItemsToShow:e,onCompanyClick:n,expIndustries:r=[],expSkills:i=[]})=>{const[s,a]=C.useState(e),[o,c]=C.useState(`${t.length>e?t.length-e:t.length} More`);return l.jsx(l.Fragment,{children:l.jsxs("ul",{className:"experience--ul--container",children:[t?.slice(0,s).map((u,h)=>l.jsx("li",{className:"experience-li",children:u.map((f,p)=>l.jsx(d_,{expNumber:p,totalExpInCompany:u.length,iconUrl:f.iconUrl,iconAltText:f.iconAltText,position:f.position,company:f.company,from:f.from,to:f.to,separator:f.separator,universalName:f.universalName,urn:f.urn,onExperienceCompanyClick:n,industries:f.industries,expIndustries:r[h],expSkills:i[h],location:f.location}))},h)),l.jsx("li",{className:"experience-more-button-li",children:t.length>e&&t.length-e>=0&&l.jsx(R1,{colorVariant:"gray",sizeVariant:"sm",text:o,onClick:()=>{t.length===s?c(`${t.length-e} More`):c("View less"),a(t.length===s?e:t.length)}})})]})})},h_=({count:t,profile:e,checked:n,onCheckClick:r,onExperienceCompanyClick:i,onDetailsClick:s,expIndustries:a=[],expSkills:o=[],filteredEducation:c=[]})=>{const u=e.experience?e.experience?.map(f=>f?.experienceDetails?.map((p,m)=>{const g=f.experienceDetails.at(m&&m-1)?.location;return{showCompany:m===0,iconUrl:f.companyLogo??"",iconAltText:p.companyName,position:p.title||"Full stack engineer",company:p.companyName,from:p.start,to:p.end?p.end:"Now",separator:"-",universalName:p?.universalName||"",urn:p?.urn||"",industries:p?.industries,location:m===0||p.location!==g?p?.location:""}})):[],h=f=>(f?.filter(m=>!!m.degreeName||!!m.schoolName)).map(m=>({iconAltText:"",institue:m?.schoolName?m.schoolName:"",degree:m?.degreeName?m.degreeName:"",from:m.start,to:m.end}));return l.jsxs("div",{className:"peopleCardContainer",children:[l.jsx("div",{className:"header",children:l.jsxs("div",{children:[l.jsx("span",{children:t}),l.jsx(nr,{checked:n,onClick:()=>r(e._id)})]})}),l.jsxs("div",{className:"peopleCard",children:[l.jsx("div",{className:"peopleCardLeft",children:l.jsxs("div",{children:[l.jsx(nn,{iconPath:e.imageUrl,iconSize:"120",altImageType:"profile"},`${e?.publicIdentifier}-${e?.updatedAtEs}`),l.jsxs("div",{className:"peopleCardNameSection",children:[l.jsx("p",{className:"titleSection",children:e.fullName}),l.jsx(X5,{count:e?.assignmentCount,toolTipContent:`Added to ${e.assignmentCount} assignments`,iconType:"briefcase",iconSize:"16"})]}),l.jsx("div",{className:"title",children:l.jsxs("p",{children:[l.jsx("span",{className:"titleText",children:e.title}),!!e?.experience?.[0]?.experienceDetails[0].companyName&&l.jsx("span",{children:" at "}),l.jsx("span",{onClick:()=>{i(e?.experience?.[0]?.experienceDetails[0]?.universalName||"",e?.experience?.[0]?.experienceDetails[0]?.urn||"")},className:"company",children:e?.experience?.[0]?.experienceDetails[0].companyName})]})}),l.jsx("p",{className:"location",children:e.locality}),l.jsx(Gi,{onClick:()=>s(e._id),sizeVariant:"sm",colorVariant:"orange",children:"View full profile"})]})}),l.jsxs("div",{className:"peopleCardRight",children:[e.experience?.length!==0&&l.jsxs("div",{className:"experienceWrapper",children:[l.jsx("p",{children:"Experience"}),l.jsx(u_,{experiences:u,initialItemsToShow:3,onCompanyClick:i,expIndustries:a,expSkills:o})]}),c?.length!==0&&l.jsxs("div",{className:"educationContainer",children:[l.jsx("p",{children:"Education"}),l.jsx(Yp,{educations:h(c),initialItemsToShow:3})]})]})]})]})},f_=({text:t,onCrossClick:e=()=>!1,onReplaceClick:n=()=>!1,picturePath:r="",props:i={}})=>l.jsx("button",{className:"companyPill",type:"button",...i,children:l.jsxs("div",{children:[r?l.jsx(nn,{iconSize:"20",iconPath:r}):l.jsx(ce,{iconType:"excalamationCircle",iconSize:"20"}),l.jsx("p",{children:t}),l.jsx(R1,{text:"Replace",onClick:n}),l.jsx("span",{onClick:e,children:l.jsx(ce,{iconSize:"20",iconType:"cross"})})]})}),p_=t=>{if(!t.children.length)return;const e=t.querySelectorAll("span");e&&e.forEach(n=>{var r,i;const s=n.getAttribute("style"),a=(i=(r=n.parentElement)===null||r===void 0?void 0:r.closest("span"))===null||i===void 0?void 0:i.getAttribute("style");n.setAttribute("style",`${a};${s}`)})},m_=zr.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{},mergeNestedSpanStyles:!1}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&p_(t),{}):!1}]},renderHTML({HTMLAttributes:t}){return["span",c2(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({tr:t})=>{const{selection:e}=t;return t.doc.nodesBetween(e.from,e.to,(n,r)=>{if(n.isTextblock)return!0;n.marks.filter(i=>i.type===this.type).some(i=>Object.values(i.attrs).some(s=>!!s))||t.removeMark(r,r+n.nodeSize,this.type)}),!0}}}});var g_=G1.create({name:"fontSize",addOptions:function(){return{types:["textStyle"]}},addGlobalAttributes:function(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:function(n){return n.style.fontSize.replace(/['"]+/g,"")},renderHTML:function(n){return n.fontSize?{style:"font-size: "+n.fontSize}:{}}}}}]},addCommands:function(){return{setFontSize:function(n){return function(r){var i=r.chain;return i().setMark("textStyle",{fontSize:n}).run()}},unsetFontSize:function(){return function(n){var r=n.chain;return r().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}}}});const v_="_textStylesContainer_18cxl_131",x_="_inlineStyles_18cxl_136",y_="_blockStyles_18cxl_137",w_="_styleButton_18cxl_141",C_="_active_18cxl_160",ni={textStylesContainer:v_,inlineStyles:x_,blockStyles:y_,styleButton:w_,active:C_},b_=({editor:t})=>{if(!t)return null;const e=[{label:"TITLE",action:()=>t.chain().focus().toggleHeading({level:1}).run(),isActive:()=>t.isActive("heading",{level:1}),icon:l.jsx(xn,{icon:r_})},{label:"BOLD",action:()=>t.chain().focus().toggleBold().run(),isActive:()=>t.isActive("bold"),icon:l.jsx(xn,{icon:n_})},{label:"ITALIC",action:()=>t.chain().focus().toggleItalic().run(),isActive:()=>t.isActive("italic"),icon:l.jsx(xn,{icon:Dy})},{label:"UNDERLINE",action:()=>t.chain().focus().toggleUnderline().run(),isActive:()=>t.isActive("underline"),icon:l.jsx(xn,{icon:Ry})}],n=[{label:"list",action:()=>t.chain().focus().toggleBulletList().run(),isActive:()=>t.isActive("bulletList"),icon:l.jsx(xn,{icon:Ny})}],r=(i,s)=>{i.preventDefault(),s()};return l.jsxs("div",{className:ni.textStylesContainer,children:[l.jsx("div",{className:ni.inlineStyles,children:e.map(i=>l.jsx("button",{type:"button",className:`${ni.styleButton} ${i.isActive()?ni.active:""}`,onClick:s=>r(s,i.action),title:i.label,children:i.icon},i.label))}),l.jsx("div",{className:ni.blockStyles,children:n.map(i=>l.jsx("button",{type:"button",className:`${ni.styleButton} ${i.isActive()?ni.active:""}`,onClick:s=>r(s,i.action),title:i.label,children:i.icon},i.label))})]})},E_="_fontSizeControl_1wfd3_131",M_="_fontSizeSpan_1wfd3_135",A_="_fontSizeInput_1wfd3_139",k_="_btnSpan_1wfd3_150",S_="_divider_1wfd3_159",ri={fontSizeControl:E_,fontSizeSpan:M_,fontSizeInput:A_,btnSpan:k_,divider:S_},j_=({editor:t})=>{const e=["12","14","16","18","20","24","32"],[n,r]=C.useState(2),[i,s]=C.useState(e[n]);if(!t)return null;const a=()=>{const u=t.getAttributes("textStyle").fontSize;if(u){const h=u.replace("px",""),f=e.indexOf(h);return f!==-1?f:2}return 2};C.useEffect(()=>{if(t){const u=()=>{const h=a();r(h),s(e[h])};return t.on("selectionUpdate",u),t.on("transaction",u),()=>{t.off("selectionUpdate",u),t.off("transaction",u)}}},[t]);const o=()=>{r(u=>u>0?u-1:u)},c=()=>{r(u=>u<e.length-1?u+1:u)};return C.useEffect(()=>{s(e[n]);const u=e[n];t.chain().focus().setFontSize(`${u}px`).run()},[n,t]),l.jsx("div",{className:ri.fontSizeControl,children:l.jsxs("span",{className:ri.fontSizeSpan,children:[l.jsx("span",{className:ri.divider,children:"|"}),l.jsx("span",{className:ri.btnSpan,onClick:o,children:"-"}),l.jsx("input",{className:ri.fontSizeInput,type:"text",value:i,disabled:!0}),l.jsx("span",{className:ri.btnSpan,onClick:c,children:"+"}),l.jsx("span",{className:ri.divider,children:"|"})]})})},F_="_textEditortToolBarContainer_1r14r_131",L_={textEditortToolBarContainer:F_},z_=({editor:t,contributors:e,isLoading:n=!1})=>l.jsxs("div",{className:L_.textEditortToolBarContainer,children:[l.jsx(b_,{editor:t}),l.jsx("span",{children:l.jsx(j_,{editor:t})}),l.jsxs("div",{children:[n&&l.jsx(Q1,{width:"16",height:"16"}),e&&!n&&l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"Contributors: "}),e.map((r,i)=>l.jsx("p",{children:h5(r)},i))]})]})]}),R_="_noteEditorContainer_bcfwl_131",D_="_editorContent_bcfwl_134",N_="_proseMirror_bcfwl_138",U4={noteEditorContainer:R_,editorContent:D_,proseMirror:N_},T_=({value:t="",handleChange:e=()=>!1,contributors:n,isDisabled:r=!1,isLoading:i=!1,notesLoading:s=!1})=>{const a=A8({extensions:[k8.configure({heading:{levels:[1,2,3,4,5,6]},bulletList:{keepMarks:!0,keepAttributes:!1},orderedList:{keepMarks:!0,keepAttributes:!1}}),m_,Kx,g_.configure({types:["textStyle"]})],content:t,editable:!r,onUpdate:({editor:o})=>{if(!s){const c=o.getText();e(c)}},editorProps:{attributes:{class:U4.proseMirror}}});return C.useEffect(()=>{a&&t!==a.getText()&&a.commands.setContent(t)},[t,a]),l.jsxs("div",{className:U4.noteEditorContainer,children:[l.jsx(z_,{editor:a,contributors:n,isLoading:i}),l.jsx("div",{className:U4.editorContent,children:l.jsx(M8,{editor:a})})]})},B_=({onNameClick:t=r=>{console.log("Showing the publicIdentifier :: ",r)},onCompanyClick:e=r=>{console.log("Showing the publicIdentifier :: ",r)},profiles:n})=>{const r=n,i=C.useMemo(()=>[{Header:"NAME",accessor:"fullName"},{Header:"TITLE",accessor:"title"},{Header:"COMPANY",accessor:"companyName"},{Header:"LOCATION",accessor:"locationName"}],[]),{getTableProps:s,getTableBodyProps:a,headerGroups:o,rows:c,prepareRow:u}=jn.useTable({columns:i,data:r});return l.jsx("div",{className:"lookAlikeProfilesWrapper",children:l.jsxs("table",{className:"lookAlikeProfiles",...s(),children:[l.jsx("thead",{children:o.map(h=>l.jsx("tr",{...h.getHeaderGroupProps(),children:h.headers.map(f=>l.jsx("th",{...f.getHeaderProps(),children:f.render("Header")}))}))}),l.jsx("tbody",{...a(),children:c.map(h=>(u(h),C.createElement("tr",{...h.getRowProps(),key:`${h.original.publicIdentifier}${h.original.isSelected}`},h.cells.map(f=>f.column.Header==="NAME"?l.jsx("td",{...f.getCellProps(),children:l.jsxs("span",{className:"lookAlikeProfiles--NameCell",children:[l.jsx(rr,{iconPath:f?.row?.original?.imageUrl,iconSize:"40",borderRadius:"6"}),l.jsx(kr,{text:f.row.original.fullName||`${f.row.original.firstName} ${f.row.original.lastName}`.trim(),onClick:()=>t(f.row.original._id)})]})}):f.column.Header==="TITLE"?l.jsx("td",{...f.getCellProps(),children:f.row.original.experience?.[0].title||""}):f.column.Header==="COMPANY"?l.jsx("td",{...f.getCellProps(),className:"lookAlikeProfiles--CompanyCell ",children:l.jsx(kr,{text:f.row.original.experience?.[0].company_name||"",onClick:()=>e(f.row.original.experience?.[0].universalName||"")})}):l.jsx("td",{...f.getCellProps(),children:f.render("Cell")})))))})]})})},I_=({onNameClick:t,competitors:e})=>{const n=r=>`${r.companyLocation&&Eo(r.companyLocation)}${r.companyLocation&&r.employeeCount?" • ":""}${r.employeeCount?r.employeeCount?.toLocaleString("en-US")+" Employees":""}`;return l.jsx("div",{className:"competitorsTabWrapper",children:e.map(r=>l.jsxs("button",{onClick:()=>t(r?.universalName),className:"competitorsTab",children:[l.jsx("div",{className:"companyIcon",children:l.jsx(nn,{altImageType:"company",iconPath:r.imageUrl,iconSize:"48"})}),l.jsxs("div",{className:"companyDetails",children:[l.jsx("h3",{children:Eo(r.companyTitle)}),n(r)?l.jsx("p",{className:"companyLocation",children:n(r)}):null]})]}))})},P_=({onNameClick:t,products:e})=>l.jsx("div",{className:"productsTabWrapper",children:e.map(n=>l.jsxs("div",{className:"productsTab",children:[l.jsx("div",{className:"productsIcon",children:l.jsx(rr,{altImageType:"products",iconPath:n.imageUrl,iconSize:"48",placeholderPadding:8})}),l.jsxs("div",{className:"productsDetails",children:[l.jsx("button",{onClick:()=>t(n.productUrl),children:n.productType}),l.jsx("span",{className:"productsLocation",children:n.productDetails})]})]}))}),V_=({files:t})=>l.jsx("div",{className:"reportsWrapper",children:t.map(e=>l.jsxs("div",{className:"reportsContent",children:[l.jsx("div",{className:"reportsIcon",children:l.jsx(Op,{width:"48",height:"48"})}),l.jsxs("div",{className:"reportsName",children:[l.jsx("span",{children:e?.fileName||"Report"}),l.jsx("a",{href:e?.downloadUrl,target:"_blank",children:l.jsx(ce,{iconType:"download",iconSize:"20"})})]})]}))}),Y4=({title:t,company:e,isPreviousTitle:n=!1,showTitleReference:r=!0})=>{const i=t+(e&&` at ${e}`);return l.jsxs("div",{className:"companyPeopleTab-CurrentPreviousTitle",children:[r&&l.jsxs("b",{children:[n?"Then":"Now",": "]}),l.jsx(s2,{children:i})]})},H_=({onNameClick:t,type:e,profiles:n})=>l.jsx("div",{className:"companyPeopleTab-Container",children:n.map(r=>l.jsxs("button",{onClick:()=>t(r),type:"button",className:"companyPeopleTab--Generic",children:[l.jsx(nn,{altImageType:"profile",iconPath:r.profileImg,iconSize:"48"}),l.jsxs("div",{className:"companyPeopleTab-DetailsContainer",children:[l.jsxs("div",{className:"companyPeopleTab-NameAndTitle",children:[l.jsx("span",{className:"companyPeopleTab-Name",children:l.jsx(s2,{children:r.personName})}),l.jsx("span",{className:"companyPeopleTab-Title",children:e==="previous"?l.jsxs(l.Fragment,{children:[r.pastTitle&&l.jsx(Y4,{company:r.pastCompany,title:r.pastTitle,isPreviousTitle:!0}),r.currentTitle&&l.jsx(Y4,{company:r.currentCompany,title:r.currentTitle})]}):r.currentTitle&&l.jsx(Y4,{company:r.currentCompany,title:r.currentTitle,showTitleReference:!1})})]}),e==="previous"&&r.startOfTenure&&r.endOfTenure&&l.jsx("div",{className:"companyPeopleTab-DateContainer",children:`${Wn(r.startOfTenure)} - ${Wn(r.endOfTenure)}`})]})]},r.esId))});h2.register(kn,tr,Sn,Mn,mn,An,tn,en,dv,cv,Dr);const O_={responsive:!0,aspectRatio:5,maintainAspectRatio:!0,element:{point:{backgroundColor:"#331C10",borderColor:"#FF8D4E"}},scales:{y:{grace:"40%",beginAtZero:!0,border:{color:"transparent",position:"center"},grid:{color:"#232323",borderColor:"grey",tickColor:"transparent"},ticks:{callback:function(t){return C2.format(t),C2.format(t).replace("$","")},font:{family:"Rubik",size:14,weight:400,lineHeight:"21px"},align:"start",color:"#ADADAD",count:4,offset:!0}},x:{grid:{display:!1},ticks:{color:"#868686",font:{family:"Rubik",size:14,weight:400,lineHeight:"21px"}}}},plugins:{legend:{display:!1},tooltip:{callbacks:{title:function(t){return t[0].formattedValue=C2.format(t[0].raw).replace("$",""),""}},bodyColor:"#FF8D4E",bodyFont:{family:"Inter",size:12,weight:300,lineHeight:"18px"},displayColors:!1,enabled:!0,backgroundColor:"transparent",titleColor:"white",position:"nearest",xAlign:"center",yAlign:"bottom"},title:{display:!1},filler:{propagate:!0}}},Oy=({revenues:t,earnings:e,QoQlatest:n,aspectRatio:r=5})=>{const i=t.map(c=>c.quater),s=t.map(c=>c.amount),a=e.map(c=>c.amount),o={labels:i,datasets:[{type:"bar",label:"",data:a,borderWidth:2,backgroundColor:"#e8e8e8",barThickness:18,maxBarThickness:27,hoverBorderColor:"#CC713E"},{type:"bar",label:"",data:s,borderWidth:2,backgroundColor:"#4b4b4b",barThickness:27,maxBarThickness:27,hoverBorderColor:"#CC713E"}]};return l.jsxs("div",{className:"CompanyCombinedChartFinancialTab",children:[l.jsxs("div",{className:"legendContainer",children:[l.jsxs("div",{className:"box",children:[l.jsx("div",{className:"profitSquare"}),l.jsx("span",{className:"text",children:"Profit"})]}),l.jsxs("div",{className:"box",children:[l.jsx("div",{className:"revenueSquare"}),l.jsx("span",{className:"text",children:"Revenue"})]})]}),l.jsx("div",{className:"qoQGrowth",children:l.jsxs("span",{className:"percentage",children:[n?`${n}%`:"--"," ",l.jsx("br",{})," ",l.jsx("span",{className:"qoQGrowthlatest",children:"YoY Growth latest"})]})}),l.jsx(a3,{id:"canvas",type:"bar",options:{...O_,aspectRatio:r},data:o})]})};h2.register(kn,tr,Sn,Dr,Mn,mn,An,tn,en);const W_={responsive:!0,aspectRatio:3,maintainAspectRatio:!0,scales:{y:{grace:"40%",beginAtZero:!0,border:{color:"transparent",position:"center"},grid:{display:!1},ticks:{display:!1}},x:{grid:{color:"#373737",borderColor:"grey",tickColor:"transparent"},ticks:{color:"#868686"}}},plugins:{legend:{display:!1},tooltip:{enabled:!0,backgroundColor:"transparent",titleColor:"white",position:"nearest",xAlign:"center",yAlign:"bottom"},title:{display:!1},filler:{propagate:!0}}},G_=({stats:t})=>{const e=Object.keys(t.stats).slice(1).slice(0,-1).map(i=>i.split("_")[0]).map(i=>i+"yrs"),n=Object.values(t.stats).slice(1),r={labels:e,datasets:[{type:"line",fill:!0,label:"",data:n,pointBackgroundColor:"#FF8D4E",backgroundColor:i=>{const a=i.chart.ctx.createLinearGradient(400,0,500,800);return a.addColorStop(0,"rgba(255, 141, 78, 0.2)"),a.addColorStop(1,"rgba(73, 73, 73, 0)"),a},borderColor:"#FF8D4E",borderWidth:2,showLine:!0,tension:.35,radius:10},{type:"bar",label:" ",data:[]}]};return l.jsx("div",{className:"PersonStatisticsChart",children:l.jsxs("div",{children:[l.jsx(a3,{id:"canvas",type:"line",options:W_,data:r}),";"]})})},U_=({})=>{},cc=({dropDownText:t,children:e,dropdownRight:n=!1,maxWidth:r="100px",textEllipses:i="ellipsis",disabled:s=!1,iconType:a="cheveronDown",showIcon:o=!1,colorStyling:c="gray",dataCy:u})=>{const[h,f]=C.useState(!1),p=C.useRef(null),m=C.useRef(null),g=fe({"dropDownButton--KebabContainer":!0,"dropDownButton-DropDownLeft":!n,"dropDownButton-DropDownRight":n}),v=fe({"dropDownButton--Generic":!0,[`${c}--DropDownButton`]:!0}),x=()=>{f(b=>!b)};return C.useEffect(()=>{function b(M){!m?.current?.contains(M.target)&&!p?.current?.contains(M.target)&&f(!1)}return document?.addEventListener("mousedown",b),()=>{document?.removeEventListener("mousedown",b)}},[]),l.jsxs("div",{className:g,"data-cy":u,children:[l.jsxs("button",{type:"button",className:v,onClick:x,ref:p,disabled:s,children:[o&&l.jsx("div",{className:"leftIcon",children:l.jsx(ce,{iconType:a,iconSize:"16"})}),l.jsx("span",{style:{textOverflow:i,maxWidth:r},children:t}),l.jsx("div",{className:"rightIcon",children:l.jsx(ce,{iconType:h?"cheveronUp":"cheveronDown",iconSize:"16"})})]}),h&&l.jsx("div",{className:"dropDownButton-DropDown",onClick:x,ref:m,children:e})]})};var Y_=typeof document<"u",K_=function(){},l5=Y_?C.useLayoutEffect:K_;const Z_={...d},q_=Z_.useInsertionEffect,J_=q_||(t=>t());function X_(t){const e=d.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return J_(()=>{e.current=t}),d.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.current==null?void 0:e.current(...r)},[])}var Q_=typeof document<"u",__=function(){},yo=Q_?C.useLayoutEffect:__;function c5(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!c5(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&t.$$typeof)&&!c5(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function Wy(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Uf(t,e){const n=Wy(t);return Math.round(e*n)/n}function K4(t){const e=d.useRef(t);return yo(()=>{e.current=t}),e}function $_(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:a}={},transform:o=!0,whileElementsMounted:c,open:u}=t,[h,f]=d.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[p,m]=d.useState(r);c5(p,r)||m(r);const[g,v]=d.useState(null),[x,b]=d.useState(null),M=d.useCallback(Q=>{Q!==R.current&&(R.current=Q,v(Q))},[]),A=d.useCallback(Q=>{Q!==B.current&&(B.current=Q,b(Q))},[]),L=s||g,k=a||x,R=d.useRef(null),B=d.useRef(null),N=d.useRef(h),V=c!=null,O=K4(c),X=K4(i),ie=K4(u),ge=d.useCallback(()=>{if(!R.current||!B.current)return;const Q={placement:e,strategy:n,middleware:p};X.current&&(Q.platform=X.current),s9(R.current,B.current,Q).then(oe=>{const J={...oe,isPositioned:ie.current!==!1};$.current&&!c5(N.current,J)&&(N.current=J,vw.flushSync(()=>{f(J)}))})},[p,e,n,X,ie]);yo(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,f(Q=>({...Q,isPositioned:!1})))},[u]);const $=d.useRef(!1);yo(()=>($.current=!0,()=>{$.current=!1}),[]),yo(()=>{if(L&&(R.current=L),k&&(B.current=k),L&&k){if(O.current)return O.current(L,k,ge);ge()}},[L,k,ge,O,V]);const te=d.useMemo(()=>({reference:R,floating:B,setReference:M,setFloating:A}),[M,A]),q=d.useMemo(()=>({reference:L,floating:k}),[L,k]),Z=d.useMemo(()=>{const Q={position:n,left:0,top:0};if(!q.floating)return Q;const oe=Uf(q.floating,h.x),J=Uf(q.floating,h.y);return o?{...Q,transform:"translate("+oe+"px, "+J+"px)",...Wy(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:oe,top:J}},[n,o,q.floating,h.x,h.y]);return d.useMemo(()=>({...h,update:ge,refs:te,elements:q,floatingStyles:Z}),[h,ge,te,q,Z])}const e$=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:i}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?i9({element:r.current,padding:i}).fn(n):{}:r?i9({element:r,padding:i}).fn(n):{}}}},t$=(t,e)=>({...Bp(t),options:[t,e]}),n$=(t,e)=>({...Ip(t),options:[t,e]}),r$=(t,e)=>({...e$(t),options:[t,e]}),i$={...d};let Yf=!1,s$=0;const Kf=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+s$++;function a$(){const[t,e]=d.useState(()=>Yf?Kf():void 0);return l5(()=>{t==null&&e(Kf())},[]),d.useEffect(()=>{Yf=!0},[]),t}const o$=i$.useId,Gy=o$||a$;let m8;process.env.NODE_ENV!=="production"&&(m8=new Set);function l$(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((t=m8)!=null&&t.has(i))){var s;(s=m8)==null||s.add(i),console.warn(i)}}function c$(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((t=m8)!=null&&t.has(i))){var s;(s=m8)==null||s.add(i),console.error(i)}}const d$=d.forwardRef(function(e,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:s,shift:a}},width:o=14,height:c=7,tipRadius:u=0,strokeWidth:h=0,staticOffset:f,stroke:p,d:m,style:{transform:g,...v}={},...x}=e;process.env.NODE_ENV!=="production"&&(n||l$("The `ref` prop is required for `FloatingArrow`."));const b=Gy(),[M,A]=d.useState(!1);if(l5(()=>{if(!i)return;Gn(i).direction==="rtl"&&A(!0)},[i]),!i)return null;const[L,k]=r.split("-"),R=L==="top"||L==="bottom";let B=f;(R&&a!=null&&a.x||!R&&a!=null&&a.y)&&(B=null);const N=h*2,V=N/2,O=o/2*(u/-8+1),X=c/2*u/4,ie=!!m,ge=B&&k==="end"?"bottom":"top";let $=B&&k==="end"?"right":"left";B&&M&&($=k==="end"?"left":"right");const te=s?.x!=null?B||s.x:"",q=s?.y!=null?B||s.y:"",Z=m||"M0,0"+(" H"+o)+(" L"+(o-O)+","+(c-X))+(" Q"+o/2+","+c+" "+O+","+(c-X))+" Z",Q={top:ie?"rotate(180deg)":"",left:ie?"rotate(90deg)":"rotate(-90deg)",bottom:ie?"":"rotate(180deg)",right:ie?"rotate(-90deg)":"rotate(90deg)"}[L];return l.jsxs("svg",{...x,"aria-hidden":!0,ref:n,width:ie?o:o+N,height:o,viewBox:"0 0 "+o+" "+(c>o?c:o),style:{position:"absolute",pointerEvents:"none",[$]:te,[ge]:q,[L]:R||ie?"100%":"calc(100% - "+N/2+"px)",transform:[Q,g].filter(oe=>!!oe).join(" "),...v},children:[N>0&&l.jsx("path",{clipPath:"url(#"+b+")",fill:"none",stroke:p,strokeWidth:N+(m?0:1),d:Z}),l.jsx("path",{stroke:N&&!m?x.fill:"none",d:Z}),l.jsx("clipPath",{id:b,children:l.jsx("rect",{x:-V,y:V*(ie?-1:1),width:o+N,height:o})})]})});function u$(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(i=>i(n))},on(e,n){t.has(e)||t.set(e,new Set),t.get(e).add(n)},off(e,n){var r;(r=t.get(e))==null||r.delete(n)}}}const h$=d.createContext(null),f$=d.createContext(null),p$=()=>{var t;return((t=d.useContext(h$))==null?void 0:t.id)||null},m$=()=>d.useContext(f$);function g$(t){const{open:e=!1,onOpenChange:n,elements:r}=t,i=Gy(),s=d.useRef({}),[a]=d.useState(()=>u$()),o=p$()!=null;if(process.env.NODE_ENV!=="production"){const m=r.reference;m&&!z2(m)&&c$("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,u]=d.useState(r.reference),h=X_((m,g,v)=>{s.current.openEvent=m?g:void 0,a.emit("openchange",{open:m,event:g,reason:v,nested:o}),n?.(m,g,v)}),f=d.useMemo(()=>({setPositionReference:u}),[]),p=d.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return d.useMemo(()=>({dataRef:s,open:e,onOpenChange:h,elements:p,events:a,floatingId:i,refs:f}),[e,h,p,a,i,f])}function v$(t){t===void 0&&(t={});const{nodeId:e}=t,n=g$({...t,elements:{reference:null,floating:null,...t.elements}}),r=t.rootContext||n,i=r.elements,[s,a]=d.useState(null),[o,c]=d.useState(null),h=i?.domReference||s,f=d.useRef(null),p=m$();l5(()=>{h&&(f.current=h)},[h]);const m=$_({...t,elements:{...i,...o&&{reference:o}}}),g=d.useCallback(A=>{const L=z2(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),getClientRects:()=>A.getClientRects(),contextElement:A}:A;c(L),m.refs.setReference(L)},[m.refs]),v=d.useCallback(A=>{(z2(A)||A===null)&&(f.current=A,a(A)),(z2(m.refs.reference.current)||m.refs.reference.current===null||A!==null&&!z2(A))&&m.refs.setReference(A)},[m.refs]),x=d.useMemo(()=>({...m.refs,setReference:v,setPositionReference:g,domReference:f}),[m.refs,v,g]),b=d.useMemo(()=>({...m.elements,domReference:h}),[m.elements,h]),M=d.useMemo(()=>({...m,...r,refs:x,elements:b,nodeId:e}),[m,x,b,e,r]);return l5(()=>{r.dataRef.current.floatingContext=M;const A=p?.nodesRef.current.find(L=>L.id===e);A&&(A.context=M)}),d.useMemo(()=>({...m,context:M,refs:x,elements:b}),[m,x,b,M])}/*!
|
|
1056
|
+
*/const Ry={prefix:"fas",iconName:"underline",icon:[448,512,[],"f0cd","M16 64c0-17.7 14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-16 0 0 128c0 53 43 96 96 96s96-43 96-96l0-128-16 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-16 0 0 128c0 88.4-71.6 160-160 160s-160-71.6-160-160L64 96 48 96C30.3 96 16 81.7 16 64zM0 448c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32z"]},$Q={prefix:"fas",iconName:"bold",icon:[384,512,[],"f032","M0 64C0 46.3 14.3 32 32 32l48 0 16 0 128 0c70.7 0 128 57.3 128 128c0 31.3-11.3 60.1-30 82.3c37.1 22.4 62 63.1 62 109.7c0 70.7-57.3 128-128 128L96 480l-16 0-48 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l16 0 0-160L48 96 32 96C14.3 96 0 81.7 0 64zM224 224c35.3 0 64-28.7 64-64s-28.7-64-64-64L112 96l0 128 112 0zM112 288l0 128 144 0c35.3 0 64-28.7 64-64s-28.7-64-64-64l-32 0-112 0z"]},Dy={prefix:"fas",iconName:"italic",icon:[384,512,[],"f033","M128 64c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-58.7 0L160 416l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l58.7 0L224 96l-64 0c-17.7 0-32-14.3-32-32z"]},e_={prefix:"fas",iconName:"align-left",icon:[448,512,[],"f036","M288 64c0 17.7-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l224 0c17.7 0 32 14.3 32 32zm0 256c0 17.7-14.3 32-32 32L32 352c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32zM0 192c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 224c-17.7 0-32-14.3-32-32zM448 448c0 17.7-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},t_={prefix:"fas",iconName:"align-center",icon:[448,512,[],"f037","M352 64c0-17.7-14.3-32-32-32L128 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l192 0c17.7 0 32-14.3 32-32zm96 128c0-17.7-14.3-32-32-32L32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zM0 448c0 17.7 14.3 32 32 32l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 416c-17.7 0-32 14.3-32 32zM352 320c0-17.7-14.3-32-32-32l-192 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l192 0c17.7 0 32-14.3 32-32z"]},n_={prefix:"fas",iconName:"b",icon:[320,512,[98],"42","M64 32C28.7 32 0 60.7 0 96L0 256 0 416c0 35.3 28.7 64 64 64l128 0c70.7 0 128-57.3 128-128c0-46.5-24.8-87.3-62-109.7c18.7-22.3 30-51 30-82.3c0-70.7-57.3-128-128-128L64 32zm96 192l-96 0L64 96l96 0c35.3 0 64 28.7 64 64s-28.7 64-64 64zM64 288l96 0 32 0c35.3 0 64 28.7 64 64s-28.7 64-64 64L64 416l0-128z"]},Ny={prefix:"fas",iconName:"list-ul",icon:[512,512,["list-dots"],"f0ca","M64 144a48 48 0 1 0 0-96 48 48 0 1 0 0 96zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM64 464a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm48-208a48 48 0 1 0 -96 0 48 48 0 1 0 96 0z"]},r_={prefix:"fas",iconName:"t",icon:[384,512,[116],"54","M32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l128 0 0 352c0 17.7 14.3 32 32 32s32-14.3 32-32l0-352 128 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 32 32 32z"]},Gf=({editor:t,updateAlignment:e})=>{const n=[{label:"BOLD",style:"BOLD",icon:l.jsx(xn,{icon:$Q,size:"sm"}),command:()=>t.chain().focus().toggleBold().run(),isActive:()=>t.isActive("bold")},{label:"ITALIC",style:"ITALIC",icon:l.jsx(xn,{icon:Dy,size:"sm"}),command:()=>t.chain().focus().toggleItalic().run(),isActive:()=>t.isActive("italic")},{label:"Underline",style:"UNDERLINE",icon:l.jsx(xn,{icon:Ry,size:"sm"}),command:()=>t.chain().focus().toggleUnderline().run(),isActive:()=>t.isActive("underline")},{label:"ALIGNLEFT",style:"ALIGNLEFT",icon:l.jsx(xn,{icon:e_,size:"sm"}),command:()=>{e("left"),t.chain().focus().setTextAlign("left").run()},isActive:()=>t.isActive({textAlign:"left"})||!t.isActive({textAlign:"center"})},{label:"ALIGNCENTER",style:"ALIGNCENTER",icon:l.jsx(xn,{icon:t_,size:"sm"}),command:()=>{e("center"),t.chain().focus().setTextAlign("center").run()},isActive:()=>t.isActive({textAlign:"center"})}],r=[{label:"list",style:"unordered-list-item",icon:l.jsx(xn,{icon:Ny,size:"sm"}),command:()=>t.chain().focus().toggleBulletList().run(),isActive:()=>t.isActive("bulletList")}],i=(s,a)=>{s.preventDefault(),a()};return l.jsxs("div",{className:"renderInlineEditorContainer",children:[n.map((s,a)=>l.jsx("div",{className:`renderInlineEditortoolBarItem${s.isActive()?" renderInlineEditortoolBarItemIsActive":""}`,onMouseDown:o=>{o.preventDefault(),i(o,s.command)},children:s.icon||s.label},`${s.label}-${a}`)),r.map((s,a)=>l.jsx("div",{className:`renderInlineEditortoolBarItem ${s.isActive()?"renderInlineEditortoolBarItemIsActive":""}`,onMouseDown:o=>{o.preventDefault(),i(o,s.command)},children:s.icon||s.label},`${s.label}-${a}`))]})},Ty=C.memo(({placeholder:t="",isNextDisabled:e,className:n,value:r,showHeader:i=!0,headerPosition:s="top",showError:a=!0,editor:o})=>{const[c,u]=C.useState(!1),[h,f]=C.useState("left"),p=C.useCallback(m=>{const g=["left","center"];let v=m;m===g[0]&&h===g[0]?v=g[1]:m===g[1]&&h===g[1]&&(v=g[0]),f(v),o&&o.chain().focus().setTextAlign(v).run()},[o,h]);return C.useEffect(()=>{o&&r!==o.getHTML()&&o.commands.setContent(r)},[o,r]),C.useEffect(()=>{u(r!=="")},[r]),o?l.jsx("div",{className:`${n||""}`,children:e?l.jsx("span",{className:"loader--draft",children:l.jsx(Q1,{width:"32",height:"32"})}):l.jsxs("div",{children:[l.jsxs("div",{className:`main-draft ${!c&&a&&"msg-error-draft"}`,children:[i&&s==="top"&&l.jsx("div",{className:"draft-head",children:l.jsx(Gf,{editor:o,updateAlignment:p})}),l.jsx("div",{className:"editor-textarea",children:l.jsx(M8,{editor:o,placeholder:t,style:{textAlign:h}})}),i&&s==="bottom"&&l.jsx("div",{className:"draft-foot",children:l.jsx(Gf,{editor:o,updateAlignment:p})})]}),!c&&a&&l.jsxs("div",{className:"error-svg-draft",children:[l.jsx("span",{className:"error-svg-span",children:l.jsx(ce,{iconType:"excalamationCircle",iconSize:"24"})}),l.jsx("span",{children:"Message is empty"})]})]})}):null});Ty.displayName="StyleableTextArea";const i_=Kn.create({name:"tagSpan",group:"inline",inline:!0,atom:!0,addOptions(){return{HTMLAttributes:{}}},addAttributes(){return{"data-tag":{default:null,parseHTML:t=>t.getAttribute("data-tag"),renderHTML:t=>t["data-tag"]?{"data-tag":t["data-tag"]}:{}},text:{default:"",parseHTML:t=>t.textContent,renderHTML:()=>({})}}},parseHTML(){return[{tag:'span[class="tagStyle"]',getAttrs:t=>{const e=t;return{"data-tag":e.getAttribute("data-tag"),text:e.textContent}}}]},renderHTML({HTMLAttributes:t,node:e}){return["span",c2({class:"tagStyle",contenteditable:"false",style:"cursor: pointer;"},t),e.attrs.text||""]},addProseMirrorPlugins(){return[new u2({props:{handleDOMEvents:{click:(t,e)=>{const n=e.target;if(n&&n.classList.contains("tagStyle")){const r=t.posAtDOM(n,0);if(r!==null&&r!==-1){const i=t.state.doc.nodeAt(r);if(i&&i.type.name==="tagSpan")return t.dispatch(t.state.tr.delete(r,r+i.nodeSize)),!0}}return!1}},handleKeyDown:(t,e)=>{if(e.key==="Backspace"){const{selection:n}=t.state,{$from:r}=n,i=r.nodeBefore;if(i&&i.type.name==="tagSpan"){const a=r.pos-i.nodeSize;let o=i.attrs.text||"";o=o.replace(/\s*✕$/,"");const c=t.state.tr.delete(a,r.pos).insertText(o,a);return t.dispatch(c),!0}const s=t.state.doc.nodeAt(r.pos);if(s&&s.type.name==="tagSpan"){const a=s.attrs.text||"",o=t.state.tr.delete(r.pos,r.pos+s.nodeSize).insertText(a,r.pos);return t.dispatch(o),!0}}return!1}}})]}}),By=({tabs:t,onSelect:e,selectedTab:n,dataCyArray:r=[],children:i})=>{const s=(o,c)=>fe({[`${o}--Generic`]:!0,[`${o}--Active`]:n===c}),a=o=>o===0?"":o.toString().padStart(2,"0");return l.jsxs("div",{className:"tabs",children:[l.jsx("div",{className:"tabsNav",children:t.map((o,c)=>l.jsxs("button",{className:s("tabsNavItem",o.title),onClick:()=>e(o.title),"data-cy":r[c]??"",children:[o.title,!!o.count&&l.jsx("p",{className:s("tabsNavItem-Number",o.title),children:a(o.count??0)})]},o.id))}),i]})},Iy=({tabs:t,handleChange:e,styleableTags:n,tagClasses:r})=>{if(t.length===0)return null;const[i,s]=C.useState(t[0].tabName),a=({cursorPos:f,name:p,skillFlag:m=!1})=>{const v=m?p:p.split(" ").join("_"),x=b=>{if(b.preventDefault(),n&&!m)e(`{{.${v}}}`);else if(m)e(v);else{const M="".slice(0,f)+`${m?v:`{{.${v}}}`}`+"".slice(f);e(M)}};return l.jsxs("button",{className:"tags",onMouseDown:x,children:[l.jsx("p",{className:"tagButtonComponent-TagText",children:p}),l.jsx(ce,{iconType:"plus",iconSize:"16"})]})},o=t.map((f,p)=>({id:p.toString(),title:f.tabName,content:l.jsx("div",{className:`tagContainer ${r||""}`,children:f.tabList.map(m=>l.jsx(a,{cursorPos:void 0,name:m.tagName}))})})),c=f=>o.find(p=>p.title===f)?.content,u=o.map(f=>({id:f.id,title:f.title})),h=f=>s(f);return l.jsx("div",{className:"tabContainer",children:l.jsx(By,{tabs:u,onSelect:h,selectedTab:i,children:c(i)})})},s_=({message:t,charLimits:e,maxLength:n=360,onChange:r=()=>!1,isNextDisabled:i,showTagButtons:s,tabs:a,className:o,tagClasses:c,showHeader:u=!0,headerPosition:h="top",placeholder:f="",showError:p=!0,showSchoolBtn:m=!0})=>{const[g,v]=C.useState(t),[x,b]=C.useState(0),M=C.useCallback(k=>{const R=document.createElement("div");R.innerHTML=k,R.querySelectorAll("span.tagStyle[data-tag]").forEach(V=>{const O=V.getAttribute("data-tag");if(O){const X=Ec(O);V.textContent=X}});const N=R.textContent||R.innerText||"";b(N.length),v(k),r(N)},[r]),A=A8({extensions:[k8,Kx,i_,bJ.configure({types:["heading","paragraph"]})],content:t,editorProps:{attributes:{class:"tiptap-editor"}},onUpdate:({editor:k})=>{const R=k.getHTML();M(R)}});C.useEffect(()=>{A&&n&&A.setOptions({editorProps:{...A.options.editorProps,handlePaste:(k,R)=>{const B=R.clipboardData;if(B){const N=B.getData("text/plain"),V=A.getText().length,O=n-V;if(N.length>O){const X=N.slice(0,O);return A.commands.insertContent(X),!0}}return!1},handleKeyDown:(k,R)=>R.key.length===1&&A.getText().length>=n}})},[A,n]);const L=C.useCallback(k=>{const R=Ec(k);n&&x+R.length>=n||A&&A.chain().focus().insertContent({type:"tagSpan",attrs:{"data-tag":k,text:R}}).insertContent(" ").run()},[n,x,A]);return l.jsxs("div",{children:[l.jsx(Ty,{editor:A,value:g,isNextDisabled:i,className:o,showHeader:u,headerPosition:h,placeholder:f,showError:p}),e&&n&&l.jsx("span",{style:{color:"#727272",fontFamily:"Inter",fontStyle:"normal",fontWeight:400,fontSize:"12px"},children:l.jsxs("p",{className:"textAreaWithTooltip-charactersLeft",children:[n-x," characters left"]})}),s&&a&&l.jsx(Iy,{tabs:a,handleChange:L,styleableTags:!0,tagClasses:c,showSchoolBtn:m})]})},a_=({switches:t,dataCy:e})=>l.jsx("div",{className:"switchLarge",children:t.map((n,r)=>l.jsx(A1,{content:n.name,children:l.jsxs("button",{className:`${n.isActive?"active":""}`,onClick:n.onClick,"data-cy":n.text?`${e}-${n.text?.toLowerCase()}`:`${e}-${n.name?.toLowerCase()}`,children:[n.text&&!n.iconType&&l.jsx("span",{className:"switchButtonText",children:n.text}),n.iconType&&l.jsx(ce,{iconType:n.iconType,iconSize:"16"})]},r)}))}),o_=({columns:t,data:e})=>{const{getTableProps:n,getTableBodyProps:r,headerGroups:i,rows:s,prepareRow:a}=jn.useTable({columns:t,data:e});return l.jsxs("table",{...n(),className:"table",children:[l.jsx("thead",{children:i.map(o=>l.jsxs(C.Fragment,{children:[o.headers.map(c=>l.jsx("th",{...c.getHeaderProps(),style:{width:c.width},children:c.render("Header")})),o.headers.length<t.length&&l.jsx("th",{})]},o.getHeaderGroupProps().key))}),l.jsx("tbody",{...r(),children:s.map(o=>(a(o),l.jsxs("tr",{...o.getRowProps(),className:"row",children:[o.cells.map(c=>l.jsx("td",{...c.getCellProps(),children:c.render("Cell")})),o.cells.length<t.length&&l.jsx("td",{})]})))})]})},Py=({text:t="",TextWithSvgButtonClassName:e="",sizeVariant:n="xs",colorVariant:r="gray",isDisabled:i=!1,iconType:s,onClick:a,...o})=>{const c=fe({textWithSvgButtonGeneric:!0,[`${n}Size--TextWithSvgButton`]:!0,[`${r}--TextWithSvgButton`]:!0});return l.jsxs("button",{...o,className:`${c} ${e}`,disabled:i,onClick:a,children:[s&&l.jsx(ce,{iconType:s,iconSize:"16"}),t.length>0&&t]})},Vy=({initialState:t,onClick:e,sizeVariant:n="base",isDisabled:r=!1,dataCy:i})=>{const[s,a]=C.useState(t);C.useEffect(()=>{a(t)},[t]);const o=()=>{r||(a(!s),e())};return l.jsx("div",{className:`${n==="sm"?"smSizeToggle":"toggle"} ${s?"on":"off"}`,onClick:o,"data-cy":i,children:l.jsx("div",{className:n==="sm"?"smSizeToggle-switch":"toggle-switch"})})},Hy=({text:t="Placeholder text to be truncated is as follows",length:e=20,toolTipClassName:n="",toolTipPosition:r="top"})=>{const i=t.length>e?`${t.slice(0,e)}...`:t,s=Hs();return t.length>e?l.jsx(l.Fragment,{children:l.jsxs("span",{"data-tooltip-id":s,className:n,children:[i,l.jsx(Vp,{id:s,className:"toolTipStyling",content:t,place:r})]})}):l.jsx("span",{children:i})},lc=({remainingTime:t=0,className:e=""})=>{const n=i=>{const s=Math.floor(i/60),a=i%60;return`${s>9?"":0}${s}:${a<10?"0":""}${a}`},r=fe({searchTimer:!0,[e]:!!e});return t?l.jsx(A1,{content:"Your search is in process",children:l.jsx("div",{className:r,children:n(t)})}):null},l_=({titles:t,isLoading:e=!1,onTitleClick:n=()=>{},onDeleteClick:r=()=>{},remainingTime:i=0,showMore:s=!1,handleMoreClick:a=()=>{},isDisabled:o=!1,handleBack:c=()=>{},dataCy:u})=>{const h=m=>(m.searchType==="nameGen"||m.searchType==="external"||m.searchType==="massUpdate")&&!m.isCompleted,f=m=>g=>{n(m)},p=m=>g=>{r(m)};return l.jsxs("div",{className:"savedSearches",children:[l.jsxs("div",{children:[l.jsxs("div",{children:[l.jsx("button",{type:"button",onClick:c,"data-cy":`${u}-back-arrow`,children:l.jsx(ce,{iconType:"chevronLeft",iconSize:"24"})}),l.jsx("h3",{children:"Saved Searches"})]}),l.jsxs("div",{children:[t.map((m,g)=>l.jsxs("div",{children:[l.jsxs("div",{children:[l.jsxs("button",{type:"button",className:"btn-Title",onClick:f(m),"data-cy":`${u}-select`,children:[m.searchType==="external"&&l.jsx(A1,{toolTipPosition:"bottom",content:"Search More",children:l.jsx(ce,{iconType:"globeSearch",iconSize:"24"})}),m.searchType==="massUpdate"&&l.jsx(A1,{toolTipPosition:"bottom",content:"Mass Update",children:l.jsx(ce,{iconType:"refresh",iconSize:"24"})}),m.searchType==="nameGen"&&l.jsx(A1,{toolTipPosition:"bottom",content:"Search Builder",children:l.jsx(ce,{iconType:"sparkles",iconSize:"24"})}),m.searchType!=="nameGen"&&m.searchType!=="external"&&m.searchType!=="massUpdate"&&l.jsx(A1,{toolTipPosition:"bottom",content:"Basic Search",children:l.jsx(ce,{iconType:"search",iconSize:"24"})}),l.jsx(s2,{toolTipPosition:"bottom",maxWidth:`${h(m)||m.isLoading?208:264}px`,children:m.name}),h(m)&&l.jsx(lc,{remainingTime:i??0})]}),m.isLoading&&l.jsx(Q1,{width:"18",height:"18"})]}),l.jsx("button",{type:"button",className:"btn-Delete",onClick:p(m),"data-cy":`${u}-delete`,children:l.jsx(ce,{iconType:"delete",iconSize:"18"})})]},g)),e&&l.jsx("span",{className:"loader",children:l.jsx(Q1,{width:"20",height:"20"})}),l.jsx("div",{className:"loadMore",children:s&&l.jsx(R1,{text:"Load More",colorVariant:"gray",onClick:a,disabled:o,sizeVariant:"sm",dataCy:`${u}-load-more`})})]})]}),l.jsx("div",{className:"resultWrapper",children:l.jsx(R1,{text:"Back to results",colorVariant:"orange",onClick:c,disabled:o,sizeVariant:"base",dataCy:`${u}-back`})})]})},c_=({emailList:t,onConnectClick:e,connectedEmail:n,selectedEmail:r})=>{const[i,s]=C.useState(!1),[a,o]=C.useState(n);return l.jsxs("div",{className:"connectDropdown",children:[l.jsxs("button",{className:"input-dropdown",onClick:()=>{s(c=>!c)},children:[l.jsx("span",{children:a}),l.jsx(ce,{iconType:"cheveronDown",iconSize:"24"})]}),l.jsx("div",{children:l.jsxs("ul",{className:i?"connectDropdown-options-list":"connectDropdown-options-list hide",children:[t.map(c=>c.statusLabel?l.jsx(l.Fragment,{}):l.jsx("div",{onClick:()=>{o(c.email),r(c.email),s(u=>!u)},children:c.email})),l.jsx("li",{className:"horizental-line-connectdropdown"}),t.map(c=>c.statusLabel?l.jsxs("div",{children:[l.jsxs("span",{children:[l.jsx("span",{children:c.email}),l.jsx("span",{className:"status-label-connect-button",children:c.statusLabel})]}),l.jsx(R1,{text:"Connect",sizeVariant:"xs",onClick:()=>{e(c.email),s(u=>!u)}})]}):l.jsx(l.Fragment,{}))]})})]})},d_=({iconUrl:t="",iconAltText:e="",position:n="",company:r="",from:i="",to:s="",universalName:a="",urn:o="",onExperienceCompanyClick:c,industries:u=[],expIndustries:h=[],expSkills:f=[],expNumber:p=0,totalExpInCompany:m=0,location:g=""})=>{const[v,x]=C.useState(!1),b="undefined-undefined",M=!!i&&s!==b&&i!==b,A=p===0,L=p===m-1,k=A&&L,R=!A&&!k,B=!L&&!k,N=fe({experienceCard:!0,"experienceCard-Before":R,"experienceCard-After":B&&!A,"experienceCard-FirstExpAfter":B&&A}),V=Vw({industries:u,expIndustries:h});return l.jsxs("div",{className:N,children:[l.jsx("span",{children:A&&l.jsx(l.Fragment,{children:v||!t?l.jsx("div",{className:"companyPlaceholder",children:l.jsx(ce,{iconSize:"40",iconType:"company"})}):l.jsx("img",{width:40,height:40,src:t,alt:e,onError:()=>{x(!0)}})})}),l.jsxs("span",{className:"experienceCardDetails",children:[l.jsx("span",{className:"header",children:l.jsxs("p",{children:[l.jsx("span",{children:n}),A&&l.jsxs(l.Fragment,{children:[l.jsx("span",{children:" at "}),l.jsx("span",{onClick:()=>{c(a,o)},className:"company",children:r})]})]})}),M&&l.jsxs("p",{className:"date",children:[Wn(i)," - ",Wn(s)]}),l.jsx("span",{className:"location",children:g}),V?.length!==0&&A&&l.jsxs("span",{className:"expSkillsAndIndustries",children:[l.jsx("h2",{children:"INDUSTRIES"}),l.jsx("span",{children:V.map((O,X)=>l.jsx(A1,{content:O.source,toolTipPosition:"bottom",children:l.jsx(Xr,{highlightPill:!0,text:O.industry},X)}))})]}),f?.length!==0&&l.jsxs("span",{className:"expSkillsAndIndustries",children:[l.jsx("h2",{children:"Keywords/Skills"}),l.jsx("span",{children:f?.map((O,X)=>l.jsx(Xr,{highlightPill:!0,text:O},X))})]})]})]})},u_=({experiences:t,initialItemsToShow:e,onCompanyClick:n,expIndustries:r=[],expSkills:i=[]})=>{const[s,a]=C.useState(e),[o,c]=C.useState(`${t.length>e?t.length-e:t.length} More`);return l.jsx(l.Fragment,{children:l.jsxs("ul",{className:"experience--ul--container",children:[t?.slice(0,s).map((u,h)=>l.jsx("li",{className:"experience-li",children:u.map((f,p)=>l.jsx(d_,{expNumber:p,totalExpInCompany:u.length,iconUrl:f.iconUrl,iconAltText:f.iconAltText,position:f.position,company:f.company,from:f.from,to:f.to,separator:f.separator,universalName:f.universalName,urn:f.urn,onExperienceCompanyClick:n,industries:f.industries,expIndustries:r[h],expSkills:i[h],location:f.location}))},h)),l.jsx("li",{className:"experience-more-button-li",children:t.length>e&&t.length-e>=0&&l.jsx(R1,{colorVariant:"gray",sizeVariant:"sm",text:o,onClick:()=>{t.length===s?c(`${t.length-e} More`):c("View less"),a(t.length===s?e:t.length)}})})]})})},h_=({count:t,profile:e,checked:n,onCheckClick:r,onExperienceCompanyClick:i,onDetailsClick:s,expIndustries:a=[],expSkills:o=[],filteredEducation:c=[]})=>{const u=e.experience?e.experience?.map(f=>f?.experienceDetails?.map((p,m)=>{const g=f.experienceDetails.at(m&&m-1)?.location;return{showCompany:m===0,iconUrl:f.companyLogo??"",iconAltText:p.companyName,position:p.title||"Full stack engineer",company:p.companyName,from:p.start,to:p.end?p.end:"Now",separator:"-",universalName:p?.universalName||"",urn:p?.urn||"",industries:p?.industries,location:m===0||p.location!==g?p?.location:""}})):[],h=f=>(f?.filter(m=>!!m.degreeName||!!m.schoolName)).map(m=>({iconAltText:"",institue:m?.schoolName?m.schoolName:"",degree:m?.degreeName?m.degreeName:"",from:m.start,to:m.end}));return l.jsxs("div",{className:"peopleCardContainer",children:[l.jsx("div",{className:"header",children:l.jsxs("div",{children:[l.jsx("span",{children:t}),l.jsx(nr,{checked:n,onClick:()=>r(e._id)})]})}),l.jsxs("div",{className:"peopleCard",children:[l.jsx("div",{className:"peopleCardLeft",children:l.jsxs("div",{children:[l.jsx(nn,{iconPath:e.imageUrl,iconSize:"120",altImageType:"profile"},`${e?.publicIdentifier}-${e?.updatedAtEs}`),l.jsxs("div",{className:"peopleCardNameSection",children:[l.jsx("p",{className:"titleSection",children:e.fullName}),l.jsx(X5,{count:e?.assignmentCount,toolTipContent:`Added to ${e.assignmentCount} assignments`,iconType:"briefcase",iconSize:"16"})]}),l.jsx("div",{className:"title",children:l.jsxs("p",{children:[l.jsx("span",{className:"titleText",children:e.title}),!!e?.experience?.[0]?.experienceDetails[0].companyName&&l.jsx("span",{children:" at "}),l.jsx("span",{onClick:()=>{i(e?.experience?.[0]?.experienceDetails[0]?.universalName||"",e?.experience?.[0]?.experienceDetails[0]?.urn||"")},className:"company",children:e?.experience?.[0]?.experienceDetails[0].companyName})]})}),l.jsx("p",{className:"location",children:e.locality}),l.jsx(Gi,{onClick:()=>s(e._id),sizeVariant:"sm",colorVariant:"orange",children:"View full profile"})]})}),l.jsxs("div",{className:"peopleCardRight",children:[e.experience?.length!==0&&l.jsxs("div",{className:"experienceWrapper",children:[l.jsx("p",{children:"Experience"}),l.jsx(u_,{experiences:u,initialItemsToShow:3,onCompanyClick:i,expIndustries:a,expSkills:o})]}),c?.length!==0&&l.jsxs("div",{className:"educationContainer",children:[l.jsx("p",{children:"Education"}),l.jsx(Yp,{educations:h(c),initialItemsToShow:3})]})]})]})]})},f_=({text:t,onCrossClick:e=()=>!1,onReplaceClick:n=()=>!1,picturePath:r="",props:i={}})=>l.jsx("button",{className:"companyPill",type:"button",...i,children:l.jsxs("div",{children:[r?l.jsx(nn,{iconSize:"20",iconPath:r}):l.jsx(ce,{iconType:"excalamationCircle",iconSize:"20"}),l.jsx("p",{children:t}),l.jsx(R1,{text:"Replace",onClick:n}),l.jsx("span",{onClick:e,children:l.jsx(ce,{iconSize:"20",iconType:"cross"})})]})}),p_=t=>{if(!t.children.length)return;const e=t.querySelectorAll("span");e&&e.forEach(n=>{var r,i;const s=n.getAttribute("style"),a=(i=(r=n.parentElement)===null||r===void 0?void 0:r.closest("span"))===null||i===void 0?void 0:i.getAttribute("style");n.setAttribute("style",`${a};${s}`)})},m_=zr.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{},mergeNestedSpanStyles:!1}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&p_(t),{}):!1}]},renderHTML({HTMLAttributes:t}){return["span",c2(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({tr:t})=>{const{selection:e}=t;return t.doc.nodesBetween(e.from,e.to,(n,r)=>{if(n.isTextblock)return!0;n.marks.filter(i=>i.type===this.type).some(i=>Object.values(i.attrs).some(s=>!!s))||t.removeMark(r,r+n.nodeSize,this.type)}),!0}}}});var g_=G1.create({name:"fontSize",addOptions:function(){return{types:["textStyle"]}},addGlobalAttributes:function(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:function(n){return n.style.fontSize.replace(/['"]+/g,"")},renderHTML:function(n){return n.fontSize?{style:"font-size: "+n.fontSize}:{}}}}}]},addCommands:function(){return{setFontSize:function(n){return function(r){var i=r.chain;return i().setMark("textStyle",{fontSize:n}).run()}},unsetFontSize:function(){return function(n){var r=n.chain;return r().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}}}});const v_="_textStylesContainer_18cxl_131",x_="_inlineStyles_18cxl_136",y_="_blockStyles_18cxl_137",w_="_styleButton_18cxl_141",C_="_active_18cxl_160",ni={textStylesContainer:v_,inlineStyles:x_,blockStyles:y_,styleButton:w_,active:C_},b_=({editor:t})=>{if(!t)return null;const e=[{label:"TITLE",action:()=>t.chain().focus().toggleHeading({level:1}).run(),isActive:()=>t.isActive("heading",{level:1}),icon:l.jsx(xn,{icon:r_})},{label:"BOLD",action:()=>t.chain().focus().toggleBold().run(),isActive:()=>t.isActive("bold"),icon:l.jsx(xn,{icon:n_})},{label:"ITALIC",action:()=>t.chain().focus().toggleItalic().run(),isActive:()=>t.isActive("italic"),icon:l.jsx(xn,{icon:Dy})},{label:"UNDERLINE",action:()=>t.chain().focus().toggleUnderline().run(),isActive:()=>t.isActive("underline"),icon:l.jsx(xn,{icon:Ry})}],n=[{label:"list",action:()=>t.chain().focus().toggleBulletList().run(),isActive:()=>t.isActive("bulletList"),icon:l.jsx(xn,{icon:Ny})}],r=(i,s)=>{i.preventDefault(),s()};return l.jsxs("div",{className:ni.textStylesContainer,children:[l.jsx("div",{className:ni.inlineStyles,children:e.map(i=>l.jsx("button",{type:"button",className:`${ni.styleButton} ${i.isActive()?ni.active:""}`,onClick:s=>r(s,i.action),title:i.label,children:i.icon},i.label))}),l.jsx("div",{className:ni.blockStyles,children:n.map(i=>l.jsx("button",{type:"button",className:`${ni.styleButton} ${i.isActive()?ni.active:""}`,onClick:s=>r(s,i.action),title:i.label,children:i.icon},i.label))})]})},E_="_fontSizeControl_1wfd3_131",M_="_fontSizeSpan_1wfd3_135",A_="_fontSizeInput_1wfd3_139",k_="_btnSpan_1wfd3_150",S_="_divider_1wfd3_159",ri={fontSizeControl:E_,fontSizeSpan:M_,fontSizeInput:A_,btnSpan:k_,divider:S_},j_=({editor:t})=>{const e=["12","14","16","18","20","24","32"],[n,r]=C.useState(2),[i,s]=C.useState(e[n]);if(!t)return null;const a=()=>{const u=t.getAttributes("textStyle").fontSize;if(u){const h=u.replace("px",""),f=e.indexOf(h);return f!==-1?f:2}return 2};C.useEffect(()=>{if(t){const u=()=>{const h=a();r(h),s(e[h])};return t.on("selectionUpdate",u),t.on("transaction",u),()=>{t.off("selectionUpdate",u),t.off("transaction",u)}}},[t]);const o=()=>{r(u=>u>0?u-1:u)},c=()=>{r(u=>u<e.length-1?u+1:u)};return C.useEffect(()=>{s(e[n]);const u=e[n];t.chain().focus().setFontSize(`${u}px`).run()},[n,t]),l.jsx("div",{className:ri.fontSizeControl,children:l.jsxs("span",{className:ri.fontSizeSpan,children:[l.jsx("span",{className:ri.divider,children:"|"}),l.jsx("span",{className:ri.btnSpan,onClick:o,children:"-"}),l.jsx("input",{className:ri.fontSizeInput,type:"text",value:i,disabled:!0}),l.jsx("span",{className:ri.btnSpan,onClick:c,children:"+"}),l.jsx("span",{className:ri.divider,children:"|"})]})})},F_="_textEditortToolBarContainer_1r14r_131",L_={textEditortToolBarContainer:F_},z_=({editor:t,contributors:e,isLoading:n=!1})=>l.jsxs("div",{className:L_.textEditortToolBarContainer,children:[l.jsx(b_,{editor:t}),l.jsx("span",{children:l.jsx(j_,{editor:t})}),l.jsxs("div",{children:[n&&l.jsx(Q1,{width:"16",height:"16"}),e&&!n&&l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"Contributors: "}),e.map((r,i)=>l.jsx("p",{children:h5(r)},i))]})]})]}),R_="_noteEditorContainer_bcfwl_131",D_="_editorContent_bcfwl_134",N_="_proseMirror_bcfwl_138",U4={noteEditorContainer:R_,editorContent:D_,proseMirror:N_},T_=({value:t="",handleChange:e=()=>!1,contributors:n,isDisabled:r=!1,isLoading:i=!1,notesLoading:s=!1})=>{const a=A8({extensions:[k8.configure({heading:{levels:[1,2,3,4,5,6]},bulletList:{keepMarks:!0,keepAttributes:!1},orderedList:{keepMarks:!0,keepAttributes:!1}}),m_,Kx,g_.configure({types:["textStyle"]})],content:t,editable:!r,onUpdate:({editor:o})=>{if(!s){const c=o.getText();e(c)}},editorProps:{attributes:{class:U4.proseMirror}}});return C.useEffect(()=>{a&&t!==a.getText()&&a.commands.setContent(t)},[t,a]),l.jsxs("div",{className:U4.noteEditorContainer,children:[l.jsx(z_,{editor:a,contributors:n,isLoading:i}),l.jsx("div",{className:U4.editorContent,children:l.jsx(M8,{editor:a})})]})},B_=({onNameClick:t=r=>{console.log("Showing the publicIdentifier :: ",r)},onCompanyClick:e=r=>{console.log("Showing the publicIdentifier :: ",r)},profiles:n})=>{const r=n,i=C.useMemo(()=>[{Header:"NAME",accessor:"fullName"},{Header:"TITLE",accessor:"title"},{Header:"COMPANY",accessor:"companyName"},{Header:"LOCATION",accessor:"locationName"}],[]),{getTableProps:s,getTableBodyProps:a,headerGroups:o,rows:c,prepareRow:u}=jn.useTable({columns:i,data:r});return l.jsx("div",{className:"lookAlikeProfilesWrapper",children:l.jsxs("table",{className:"lookAlikeProfiles",...s(),children:[l.jsx("thead",{children:o.map(h=>l.jsx("tr",{...h.getHeaderGroupProps(),children:h.headers.map(f=>l.jsx("th",{...f.getHeaderProps(),children:f.render("Header")}))}))}),l.jsx("tbody",{...a(),children:c.map(h=>(u(h),C.createElement("tr",{...h.getRowProps(),key:`${h.original.publicIdentifier}${h.original.isSelected}`},h.cells.map(f=>f.column.Header==="NAME"?l.jsx("td",{...f.getCellProps(),children:l.jsxs("span",{className:"lookAlikeProfiles--NameCell",children:[l.jsx(rr,{iconPath:f?.row?.original?.imageUrl,iconSize:"40",borderRadius:"6"}),l.jsx(kr,{text:f.row.original.fullName||`${f.row.original.firstName} ${f.row.original.lastName}`.trim(),onClick:()=>t(f.row.original._id)})]})}):f.column.Header==="TITLE"?l.jsx("td",{...f.getCellProps(),children:f.row.original.experience?.[0].title||""}):f.column.Header==="COMPANY"?l.jsx("td",{...f.getCellProps(),className:"lookAlikeProfiles--CompanyCell ",children:l.jsx(kr,{text:f.row.original.experience?.[0].company_name||"",onClick:()=>e(f.row.original.experience?.[0].universalName||"")})}):l.jsx("td",{...f.getCellProps(),children:f.render("Cell")})))))})]})})},I_=({onNameClick:t,competitors:e})=>{const n=r=>`${r.companyLocation&&Eo(r.companyLocation)}${r.companyLocation&&r.employeeCount?" • ":""}${r.employeeCount?r.employeeCount?.toLocaleString("en-US")+" Employees":""}`;return l.jsx("div",{className:"competitorsTabWrapper",children:e.map(r=>l.jsxs("button",{onClick:()=>t(r?.universalName),className:"competitorsTab",children:[l.jsx("div",{className:"companyIcon",children:l.jsx(nn,{altImageType:"company",iconPath:r.imageUrl,iconSize:"48"})}),l.jsxs("div",{className:"companyDetails",children:[l.jsx("h3",{children:Eo(r.companyTitle)}),n(r)?l.jsx("p",{className:"companyLocation",children:n(r)}):null]})]}))})},P_=({onNameClick:t,products:e})=>l.jsx("div",{className:"productsTabWrapper",children:e.map(n=>l.jsxs("div",{className:"productsTab",children:[l.jsx("div",{className:"productsIcon",children:l.jsx(rr,{altImageType:"products",iconPath:n.imageUrl,iconSize:"48",placeholderPadding:8})}),l.jsxs("div",{className:"productsDetails",children:[l.jsx("button",{onClick:()=>t(n.productUrl),children:n.productType}),l.jsx("span",{className:"productsLocation",children:n.productDetails})]})]}))}),V_=({files:t})=>l.jsx("div",{className:"reportsWrapper",children:t.map(e=>l.jsxs("div",{className:"reportsContent",children:[l.jsx("div",{className:"reportsIcon",children:l.jsx(Op,{width:"48",height:"48"})}),l.jsxs("div",{className:"reportsName",children:[l.jsx("span",{children:e?.fileName||"Report"}),l.jsx("a",{href:e?.downloadUrl,target:"_blank",children:l.jsx(ce,{iconType:"download",iconSize:"20"})})]})]}))}),Y4=({title:t,company:e,isPreviousTitle:n=!1,showTitleReference:r=!0})=>{const i=t+(e&&` at ${e}`);return l.jsxs("div",{className:"companyPeopleTab-CurrentPreviousTitle",children:[r&&l.jsxs("b",{children:[n?"Then":"Now",": "]}),l.jsx(s2,{children:i})]})},H_=({onNameClick:t,type:e,profiles:n})=>l.jsx("div",{className:"companyPeopleTab-Container",children:n.map(r=>l.jsxs("button",{onClick:()=>t(r),type:"button",className:"companyPeopleTab--Generic",children:[l.jsx(nn,{altImageType:"profile",iconPath:r.profileImg,iconSize:"48"}),l.jsxs("div",{className:"companyPeopleTab-DetailsContainer",children:[l.jsxs("div",{className:"companyPeopleTab-NameAndTitle",children:[l.jsx("span",{className:"companyPeopleTab-Name",children:l.jsx(s2,{children:r.personName})}),l.jsx("span",{className:"companyPeopleTab-Title",children:e==="previous"?l.jsxs(l.Fragment,{children:[r.pastTitle&&l.jsx(Y4,{company:r.pastCompany,title:r.pastTitle,isPreviousTitle:!0}),r.currentTitle&&l.jsx(Y4,{company:r.currentCompany,title:r.currentTitle})]}):r.currentTitle&&l.jsx(Y4,{company:r.currentCompany,title:r.currentTitle,showTitleReference:!1})})]}),e==="previous"&&r.startOfTenure&&r.endOfTenure&&l.jsx("div",{className:"companyPeopleTab-DateContainer",children:`${Wn(r.startOfTenure)} - ${Wn(r.endOfTenure)}`})]})]},r.esId))});h2.register(kn,tr,Sn,Mn,mn,An,tn,en,dv,cv,Dr);const O_={responsive:!0,aspectRatio:5,maintainAspectRatio:!0,element:{point:{backgroundColor:"#331C10",borderColor:"#FF8D4E"}},scales:{y:{grace:"40%",beginAtZero:!0,border:{color:"transparent",position:"center"},grid:{color:"#232323",borderColor:"grey",tickColor:"transparent"},ticks:{callback:function(t){return C2.format(t),C2.format(t).replace("$","")},font:{family:"Rubik",size:14,weight:400,lineHeight:"21px"},align:"start",color:"#ADADAD",count:4,offset:!0}},x:{grid:{display:!1},ticks:{color:"#868686",font:{family:"Rubik",size:14,weight:400,lineHeight:"21px"}}}},plugins:{legend:{display:!1},tooltip:{callbacks:{title:function(t){return t[0].formattedValue=C2.format(t[0].raw).replace("$",""),""}},bodyColor:"#FF8D4E",bodyFont:{family:"Inter",size:12,weight:300,lineHeight:"18px"},displayColors:!1,enabled:!0,backgroundColor:"transparent",titleColor:"white",position:"nearest",xAlign:"center",yAlign:"bottom"},title:{display:!1},filler:{propagate:!0}}},Oy=({revenues:t,earnings:e,QoQlatest:n,aspectRatio:r=5})=>{const i=t.map(c=>c.quater),s=t.map(c=>c.amount),a=e.map(c=>c.amount),o={labels:i,datasets:[{type:"bar",label:"",data:a,borderWidth:2,backgroundColor:"#e8e8e8",barThickness:18,maxBarThickness:27,hoverBorderColor:"#CC713E"},{type:"bar",label:"",data:s,borderWidth:2,backgroundColor:"#4b4b4b",barThickness:27,maxBarThickness:27,hoverBorderColor:"#CC713E"}]};return l.jsxs("div",{className:"CompanyCombinedChartFinancialTab",children:[l.jsxs("div",{className:"legendContainer",children:[l.jsxs("div",{className:"box",children:[l.jsx("div",{className:"profitSquare"}),l.jsx("span",{className:"text",children:"Profit"})]}),l.jsxs("div",{className:"box",children:[l.jsx("div",{className:"revenueSquare"}),l.jsx("span",{className:"text",children:"Revenue"})]})]}),l.jsx("div",{className:"qoQGrowth",children:l.jsxs("span",{className:"percentage",children:[n?`${n}%`:"--"," ",l.jsx("br",{})," ",l.jsx("span",{className:"qoQGrowthlatest",children:"YoY Growth latest"})]})}),l.jsx(a3,{id:"canvas",type:"bar",options:{...O_,aspectRatio:r},data:o})]})};h2.register(kn,tr,Sn,Dr,Mn,mn,An,tn,en);const W_={responsive:!0,aspectRatio:3,maintainAspectRatio:!0,scales:{y:{grace:"40%",beginAtZero:!0,border:{color:"transparent",position:"center"},grid:{display:!1},ticks:{display:!1}},x:{grid:{color:"#373737",borderColor:"grey",tickColor:"transparent"},ticks:{color:"#868686"}}},plugins:{legend:{display:!1},tooltip:{enabled:!0,backgroundColor:"transparent",titleColor:"white",position:"nearest",xAlign:"center",yAlign:"bottom"},title:{display:!1},filler:{propagate:!0}}},G_=({stats:t})=>{const e=Object.keys(t.stats).slice(1).slice(0,-1).map(i=>i.split("_")[0]).map(i=>i+"yrs"),n=Object.values(t.stats).slice(1),r={labels:e,datasets:[{type:"line",fill:!0,label:"",data:n,pointBackgroundColor:"#FF8D4E",backgroundColor:i=>{const a=i.chart.ctx.createLinearGradient(400,0,500,800);return a.addColorStop(0,"rgba(255, 141, 78, 0.2)"),a.addColorStop(1,"rgba(73, 73, 73, 0)"),a},borderColor:"#FF8D4E",borderWidth:2,showLine:!0,tension:.35,radius:10},{type:"bar",label:" ",data:[]}]};return l.jsx("div",{className:"PersonStatisticsChart",children:l.jsxs("div",{children:[l.jsx(a3,{id:"canvas",type:"line",options:W_,data:r}),";"]})})},U_=({})=>{},cc=({dropDownText:t,children:e,dropdownRight:n=!1,maxWidth:r="100px",textEllipses:i="ellipsis",disabled:s=!1,iconType:a="cheveronDown",showIcon:o=!1,colorStyling:c="gray",dataCy:u})=>{const[h,f]=C.useState(!1),p=C.useRef(null),m=C.useRef(null),g=fe({"dropDownButton--KebabContainer":!0,"dropDownButton-DropDownLeft":!n,"dropDownButton-DropDownRight":n}),v=fe({"dropDownButton--Generic":!0,[`${c}--DropDownButton`]:!0}),x=()=>{f(b=>!b)};return C.useEffect(()=>{function b(M){!m?.current?.contains(M.target)&&!p?.current?.contains(M.target)&&f(!1)}return document?.addEventListener("mousedown",b),()=>{document?.removeEventListener("mousedown",b)}},[]),l.jsxs("div",{className:g,"data-cy":u,children:[l.jsxs("button",{type:"button",className:v,onClick:x,ref:p,disabled:s,children:[o&&l.jsx("div",{className:"leftIcon",children:l.jsx(ce,{iconType:a,iconSize:"16"})}),l.jsx("span",{style:{textOverflow:i,maxWidth:r},children:t}),l.jsx("div",{className:"rightIcon",children:l.jsx(ce,{iconType:h?"cheveronUp":"cheveronDown",iconSize:"16"})})]}),h&&l.jsx("div",{className:"dropDownButton-DropDown",onClick:x,ref:m,children:e})]})};var Y_=typeof document<"u",K_=function(){},l5=Y_?C.useLayoutEffect:K_;const Z_={...d},q_=Z_.useInsertionEffect,J_=q_||(t=>t());function X_(t){const e=d.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return J_(()=>{e.current=t}),d.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.current==null?void 0:e.current(...r)},[])}var Q_=typeof document<"u",__=function(){},yo=Q_?C.useLayoutEffect:__;function c5(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!c5(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&t.$$typeof)&&!c5(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function Wy(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Uf(t,e){const n=Wy(t);return Math.round(e*n)/n}function K4(t){const e=d.useRef(t);return yo(()=>{e.current=t}),e}function $_(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:a}={},transform:o=!0,whileElementsMounted:c,open:u}=t,[h,f]=d.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[p,m]=d.useState(r);c5(p,r)||m(r);const[g,v]=d.useState(null),[x,b]=d.useState(null),M=d.useCallback(Q=>{Q!==R.current&&(R.current=Q,v(Q))},[]),A=d.useCallback(Q=>{Q!==B.current&&(B.current=Q,b(Q))},[]),L=s||g,k=a||x,R=d.useRef(null),B=d.useRef(null),N=d.useRef(h),V=c!=null,O=K4(c),X=K4(i),ie=K4(u),ge=d.useCallback(()=>{if(!R.current||!B.current)return;const Q={placement:e,strategy:n,middleware:p};X.current&&(Q.platform=X.current),s9(R.current,B.current,Q).then(oe=>{const J={...oe,isPositioned:ie.current!==!1};$.current&&!c5(N.current,J)&&(N.current=J,vw.flushSync(()=>{f(J)}))})},[p,e,n,X,ie]);yo(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,f(Q=>({...Q,isPositioned:!1})))},[u]);const $=d.useRef(!1);yo(()=>($.current=!0,()=>{$.current=!1}),[]),yo(()=>{if(L&&(R.current=L),k&&(B.current=k),L&&k){if(O.current)return O.current(L,k,ge);ge()}},[L,k,ge,O,V]);const te=d.useMemo(()=>({reference:R,floating:B,setReference:M,setFloating:A}),[M,A]),q=d.useMemo(()=>({reference:L,floating:k}),[L,k]),Z=d.useMemo(()=>{const Q={position:n,left:0,top:0};if(!q.floating)return Q;const oe=Uf(q.floating,h.x),J=Uf(q.floating,h.y);return o?{...Q,transform:"translate("+oe+"px, "+J+"px)",...Wy(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:oe,top:J}},[n,o,q.floating,h.x,h.y]);return d.useMemo(()=>({...h,update:ge,refs:te,elements:q,floatingStyles:Z}),[h,ge,te,q,Z])}const e$=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:i}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?i9({element:r.current,padding:i}).fn(n):{}:r?i9({element:r,padding:i}).fn(n):{}}}},t$=(t,e)=>({...Bp(t),options:[t,e]}),n$=(t,e)=>({...Ip(t),options:[t,e]}),r$=(t,e)=>({...e$(t),options:[t,e]}),i$={...d};let Yf=!1,s$=0;const Kf=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+s$++;function a$(){const[t,e]=d.useState(()=>Yf?Kf():void 0);return l5(()=>{t==null&&e(Kf())},[]),d.useEffect(()=>{Yf=!0},[]),t}const o$=i$.useId,Gy=o$||a$;let m8;process.env.NODE_ENV!=="production"&&(m8=new Set);function l$(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((t=m8)!=null&&t.has(i))){var s;(s=m8)==null||s.add(i),console.warn(i)}}function c$(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((t=m8)!=null&&t.has(i))){var s;(s=m8)==null||s.add(i),console.error(i)}}const d$=d.forwardRef(function(e,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:s,shift:a}},width:o=14,height:c=7,tipRadius:u=0,strokeWidth:h=0,staticOffset:f,stroke:p,d:m,style:{transform:g,...v}={},...x}=e;process.env.NODE_ENV!=="production"&&(n||l$("The `ref` prop is required for `FloatingArrow`."));const b=Gy(),[M,A]=d.useState(!1);if(l5(()=>{if(!i)return;Gn(i).direction==="rtl"&&A(!0)},[i]),!i)return null;const[L,k]=r.split("-"),R=L==="top"||L==="bottom";let B=f;(R&&a!=null&&a.x||!R&&a!=null&&a.y)&&(B=null);const N=h*2,V=N/2,O=o/2*(u/-8+1),X=c/2*u/4,ie=!!m,ge=B&&k==="end"?"bottom":"top";let $=B&&k==="end"?"right":"left";B&&M&&($=k==="end"?"left":"right");const te=s?.x!=null?B||s.x:"",q=s?.y!=null?B||s.y:"",Z=m||"M0,0"+(" H"+o)+(" L"+(o-O)+","+(c-X))+(" Q"+o/2+","+c+" "+O+","+(c-X))+" Z",Q={top:ie?"rotate(180deg)":"",left:ie?"rotate(90deg)":"rotate(-90deg)",bottom:ie?"":"rotate(180deg)",right:ie?"rotate(-90deg)":"rotate(90deg)"}[L];return l.jsxs("svg",{...x,"aria-hidden":!0,ref:n,width:ie?o:o+N,height:o,viewBox:"0 0 "+o+" "+(c>o?c:o),style:{position:"absolute",pointerEvents:"none",[$]:te,[ge]:q,[L]:R||ie?"100%":"calc(100% - "+N/2+"px)",transform:[Q,g].filter(oe=>!!oe).join(" "),...v},children:[N>0&&l.jsx("path",{clipPath:"url(#"+b+")",fill:"none",stroke:p,strokeWidth:N+(m?0:1),d:Z}),l.jsx("path",{stroke:N&&!m?x.fill:"none",d:Z}),l.jsx("clipPath",{id:b,children:l.jsx("rect",{x:-V,y:V*(ie?-1:1),width:o+N,height:o})})]})});function u$(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(i=>i(n))},on(e,n){t.has(e)||t.set(e,new Set),t.get(e).add(n)},off(e,n){var r;(r=t.get(e))==null||r.delete(n)}}}const h$=d.createContext(null),f$=d.createContext(null),p$=()=>{var t;return((t=d.useContext(h$))==null?void 0:t.id)||null},m$=()=>d.useContext(f$);function g$(t){const{open:e=!1,onOpenChange:n,elements:r}=t,i=Gy(),s=d.useRef({}),[a]=d.useState(()=>u$()),o=p$()!=null;if(process.env.NODE_ENV!=="production"){const m=r.reference;m&&!z2(m)&&c$("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,u]=d.useState(r.reference),h=X_((m,g,v)=>{s.current.openEvent=m?g:void 0,a.emit("openchange",{open:m,event:g,reason:v,nested:o}),n?.(m,g,v)}),f=d.useMemo(()=>({setPositionReference:u}),[]),p=d.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return d.useMemo(()=>({dataRef:s,open:e,onOpenChange:h,elements:p,events:a,floatingId:i,refs:f}),[e,h,p,a,i,f])}function v$(t){t===void 0&&(t={});const{nodeId:e}=t,n=g$({...t,elements:{reference:null,floating:null,...t.elements}}),r=t.rootContext||n,i=r.elements,[s,a]=d.useState(null),[o,c]=d.useState(null),h=i?.domReference||s,f=d.useRef(null),p=m$();l5(()=>{h&&(f.current=h)},[h]);const m=$_({...t,elements:{...i,...o&&{reference:o}}}),g=d.useCallback(A=>{const L=z2(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),getClientRects:()=>A.getClientRects(),contextElement:A}:A;c(L),m.refs.setReference(L)},[m.refs]),v=d.useCallback(A=>{(z2(A)||A===null)&&(f.current=A,a(A)),(z2(m.refs.reference.current)||m.refs.reference.current===null||A!==null&&!z2(A))&&m.refs.setReference(A)},[m.refs]),x=d.useMemo(()=>({...m.refs,setReference:v,setPositionReference:g,domReference:f}),[m.refs,v,g]),b=d.useMemo(()=>({...m.elements,domReference:h}),[m.elements,h]),M=d.useMemo(()=>({...m,...r,refs:x,elements:b,nodeId:e}),[m,x,b,e,r]);return l5(()=>{r.dataRef.current.floatingContext=M;const A=p?.nodesRef.current.find(L=>L.id===e);A&&(A.context=M)}),d.useMemo(()=>({...m,context:M,refs:x,elements:b}),[m,x,b,M])}/*!
|
|
1057
1057
|
react-datepicker v7.6.0
|
|
1058
1058
|
https://github.com/Hacker0x01/react-datepicker
|
|
1059
1059
|
Released under the MIT License.
|
|
@@ -59184,7 +59184,7 @@ const pQ = Xn.create({
|
|
|
59184
59184
|
onClick: n.onClick,
|
|
59185
59185
|
"data-cy": n.text ? `${e}-${n.text?.toLowerCase()}` : `${e}-${n.name?.toLowerCase()}`,
|
|
59186
59186
|
children: [
|
|
59187
|
-
n.text && !n.iconType
|
|
59187
|
+
n.text && !n.iconType && /* @__PURE__ */ l.jsx("span", { className: "switchButtonText", children: n.text }),
|
|
59188
59188
|
n.iconType && /* @__PURE__ */ l.jsx(he, { iconType: n.iconType, iconSize: "16" })
|
|
59189
59189
|
]
|
|
59190
59190
|
},
|
|
@@ -5,7 +5,6 @@ import { Tooltip } from "..";
|
|
|
5
5
|
const SwitchLarge = ({ switches, dataCy }) => {
|
|
6
6
|
return (_jsx("div", { className: "switchLarge", children: switches.map((s, index) => (_jsx(Tooltip, { content: s.name, children: _jsxs("button", { className: `${s.isActive ? "active" : ""}`, onClick: s.onClick, "data-cy": s.text
|
|
7
7
|
? `${dataCy}-${s.text?.toLowerCase()}`
|
|
8
|
-
: `${dataCy}-${s.name?.toLowerCase()}`, children: [
|
|
9
|
-
(s.showBoth && s.text && (_jsx("span", { className: "switchButtonText", children: s.text }))), s.iconType && _jsx(GetSvgIcon, { iconType: s.iconType, iconSize: "16" })] }, index) }))) }));
|
|
8
|
+
: `${dataCy}-${s.name?.toLowerCase()}`, children: [s.text && !s.iconType && (_jsx("span", { className: "switchButtonText", children: s.text })), s.iconType && _jsx(GetSvgIcon, { iconType: s.iconType, iconSize: "16" })] }, index) }))) }));
|
|
10
9
|
};
|
|
11
10
|
export default SwitchLarge;
|