qlu-20-ui-library 1.8.3 → 1.8.4

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.
@@ -1052,7 +1052,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1052
1052
  * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
1053
1053
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
1054
1054
  * Copyright 2024 Fonticons, Inc.
1055
- */const Dy={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"]},qX={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"]},Ny={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"]},JX={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"]},XX={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"]},QX={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"]},Ty={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"]},_X={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"]},Yf=({editor:t,updateAlignment:e})=>{const n=[{label:"BOLD",style:"BOLD",icon:l.jsx(C2,{icon:qX,size:"sm"}),command:()=>t.chain().focus().toggleBold().run(),isActive:()=>t.isActive("bold")},{label:"ITALIC",style:"ITALIC",icon:l.jsx(C2,{icon:Ny,size:"sm"}),command:()=>t.chain().focus().toggleItalic().run(),isActive:()=>t.isActive("italic")},{label:"Underline",style:"UNDERLINE",icon:l.jsx(C2,{icon:Dy,size:"sm"}),command:()=>t.chain().focus().toggleUnderline().run(),isActive:()=>t.isActive("underline")},{label:"ALIGNLEFT",style:"ALIGNLEFT",icon:l.jsx(C2,{icon:JX,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(C2,{icon:XX,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(C2,{icon:Ty,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}`))]})},By=b.memo(({placeholder:t="",isNextDisabled:e,className:n,value:r,showHeader:i=!0,headerPosition:s="top",showError:a=!0,editor:o})=>{const[c,u]=b.useState(!1),[h,f]=b.useState("left"),p=b.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 b.useEffect(()=>{o&&r!==o.getHTML()&&o.commands.setContent(r)},[o,r]),b.useEffect(()=>{u(r!=="")},[r]),o?l.jsx("div",{className:`${n||""}`,children:e?l.jsx("span",{className:"loader--draft",children:l.jsx($1,{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(Yf,{editor:o,updateAlignment:p})}),l.jsx("div",{className:"editor-textarea",children:l.jsx(S8,{editor:o,placeholder:t,style:{textAlign:h}})}),i&&s==="bottom"&&l.jsx("div",{className:"draft-foot",children:l.jsx(Yf,{editor:o,updateAlignment:p})})]}),!c&&a&&l.jsxs("div",{className:"error-svg-draft",children:[l.jsx("span",{className:"error-svg-span",children:l.jsx(he,{iconType:"excalamationCircle",iconSize:"24"})}),l.jsx("span",{children:"Message is empty"})]})]})}):null});By.displayName="StyleableTextArea";const $X=Z2.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",hn({class:"tagStyle",contenteditable:"false",style:"cursor: pointer;"},t),e.attrs.text||""]},addProseMirrorPlugins(){return[new pn({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}}})]}}),Iy=({tabs:t,onSelect:e,selectedTab:n,dataCyArray:r=[],children:i})=>{const s=(o,c)=>ve({[`${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]})},Py=({tabs:t,handleChange:e,styleableTags:n,tagClasses:r})=>{if(t.length===0)return null;const[i,s]=b.useState(t[0].tabName),a=({cursorPos:f,name:p,skillFlag:m=!1})=>{const g="",v=m?p:p.split(" ").join("_"),x=C=>{if(C.preventDefault(),n&&!m)e(`{{.${v}}}`);else if(m)e(v);else{const M=g.slice(0,f)+`${m?v:`{{.${v}}}`}`+g.slice(f);e(M)}};return l.jsxs("button",{className:"tags",onMouseDown:x,children:[l.jsx("p",{className:"tagButtonComponent-TagText",children:p}),l.jsx(he,{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=>{var p;return(p=o.find(m=>m.title===f))==null?void 0:p.content},u=o.map(f=>({id:f.id,title:f.title})),h=f=>s(f);return l.jsx("div",{className:"tabContainer",children:l.jsx(Iy,{tabs:u,onSelect:h,selectedTab:i,children:c(i)})})},eQ=({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]=b.useState(t),[x,C]=b.useState(0),M=b.useCallback(k=>{const L=document.createElement("div");L.innerHTML=k,L.querySelectorAll("span.tagStyle[data-tag]").forEach(I=>{const H=I.getAttribute("data-tag");if(H){const J=zc(H);I.textContent=J}});const N=L.textContent||L.innerText||"";C(N.length),v(k),r(N)},[r]),E=F8({extensions:[j8,qx,$X,Eq.configure({types:["heading","paragraph"]})],content:t,editorProps:{attributes:{class:"tiptap-editor"}},onUpdate:({editor:k})=>{const L=k.getHTML();M(L)}});b.useEffect(()=>{E&&n&&E.setOptions({editorProps:{...E.options.editorProps,handlePaste:(k,L)=>{const D=L.clipboardData;if(D){const N=D.getData("text/plain"),I=E.getText().length,H=n-I;if(N.length>H){const J=N.slice(0,H);return E.commands.insertContent(J),!0}}return!1},handleKeyDown:(k,L)=>L.key.length===1&&E.getText().length>=n}})},[E,n]);const z=b.useCallback(k=>{const L=zc(k);n&&x+L.length>=n||E&&E.chain().focus().insertContent({type:"tagSpan",attrs:{"data-tag":k,text:L}}).insertContent(" ").run()},[n,x,E]);return l.jsxs("div",{children:[l.jsx(By,{editor:E,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(Py,{tabs:a,handleChange:z,styleableTags:!0,tagClasses:c,showSchoolBtn:m})]})},tQ=({switches:t,dataCy:e})=>l.jsx("div",{className:"switchLarge",children:t.map((n,r)=>{var i,s;return l.jsx(k1,{content:n.name,children:l.jsxs("button",{className:`${n.isActive?"active":""}`,onClick:n.onClick,"data-cy":n.text?`${e}-${(i=n.text)==null?void 0:i.toLowerCase()}`:`${e}-${(s=n.name)==null?void 0:s.toLowerCase()}`,children:[n.text&&!n.iconType&&l.jsx("span",{className:"switchButtonText",children:n.text}),n.iconType&&l.jsx(he,{iconType:n.iconType,iconSize:"16"})]},r)})})}),nQ=({columns:t,data:e})=>{const{getTableProps:n,getTableBodyProps:r,headerGroups:i,rows:s,prepareRow:a}=z2.useTable({columns:t,data:e});return l.jsxs("table",{...n(),className:"table",children:[l.jsx("thead",{children:i.map(o=>l.jsxs(b.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",{})]})))})]})},Vy=({text:t="",TextWithSvgButtonClassName:e="",sizeVariant:n="xs",colorVariant:r="gray",isDisabled:i=!1,iconType:s,onClick:a,...o})=>{const c=ve({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(he,{iconType:s,iconSize:"16"}),t.length>0&&t]})},Oy=({initialState:t,onClick:e,sizeVariant:n="base",dataCy:r})=>{const[i,s]=b.useState(t);b.useEffect(()=>{s(t)},[t]);const a=()=>{s(!i),e()};return l.jsx("div",{className:`${n==="sm"?"smSizeToggle":"toggle"} ${i?"on":"off"}`,onClick:a,"data-cy":r,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=Gs();return t.length>e?l.jsx(l.Fragment,{children:l.jsxs("span",{"data-tooltip-id":s,className:n,children:[i,l.jsx(Gp,{id:s,className:"toolTipStyling",content:t,place:r})]})}):l.jsx("span",{children:i})},vc=({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=ve({searchTimer:!0,[e]:!!e});return t?l.jsx(k1,{content:"Your search is in process",children:l.jsx("div",{className:r,children:n(t)})}):null},rQ=({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(he,{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(k1,{toolTipPosition:"bottom",content:"Search More",children:l.jsx(he,{iconType:"globeSearch",iconSize:"24"})}),m.searchType==="massUpdate"&&l.jsx(k1,{toolTipPosition:"bottom",content:"Mass Update",children:l.jsx(he,{iconType:"refresh",iconSize:"24"})}),m.searchType==="nameGen"&&l.jsx(k1,{toolTipPosition:"bottom",content:"Search Builder",children:l.jsx(he,{iconType:"sparkles",iconSize:"24"})}),m.searchType!=="nameGen"&&m.searchType!=="external"&&m.searchType!=="massUpdate"&&l.jsx(k1,{toolTipPosition:"bottom",content:"Basic Search",children:l.jsx(he,{iconType:"search",iconSize:"24"})}),l.jsx(ln,{toolTipPosition:"bottom",maxWidth:`${h(m)||m.isLoading?208:264}px`,children:m.name}),h(m)&&l.jsx(vc,{remainingTime:i??0})]}),m.isLoading&&l.jsx($1,{width:"18",height:"18"})]}),l.jsx("button",{type:"button",className:"btn-Delete",onClick:p(m),"data-cy":`${u}-delete`,children:l.jsx(he,{iconType:"delete",iconSize:"18"})})]},g)),e&&l.jsx("span",{className:"loader",children:l.jsx($1,{width:"20",height:"20"})}),l.jsx("div",{className:"loadMore",children:s&&l.jsx(P1,{text:"Load More",colorVariant:"gray",onClick:a,disabled:o,sizeVariant:"sm",dataCy:`${u}-load-more`})})]})]}),l.jsx("div",{className:"resultWrapper",children:l.jsx(P1,{text:"Back to results",colorVariant:"orange",onClick:c,disabled:o,sizeVariant:"base",dataCy:`${u}-back`})})]})},iQ=({emailList:t,onConnectClick:e,connectedEmail:n,selectedEmail:r})=>{const[i,s]=b.useState(!1),[a,o]=b.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(he,{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(P1,{text:"Connect",sizeVariant:"xs",onClick:()=>{e(c.email),s(u=>!u)}})]}):l.jsx(l.Fragment,{}))]})})]})},sQ=({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]=b.useState(!1),C="undefined-undefined",M=!!i&&s!==C&&i!==C,E=p===0,z=p===m-1,k=E&&z,L=!E&&!k,D=!z&&!k,N=ve({experienceCard:!0,"experienceCard-Before":L,"experienceCard-After":D&&!E,"experienceCard-FirstExpAfter":D&&E}),I=Ww({industries:u,expIndustries:h});return l.jsxs("div",{className:N,children:[l.jsx("span",{children:E&&l.jsx(l.Fragment,{children:v||!t?l.jsx("div",{className:"companyPlaceholder",children:l.jsx(he,{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}),E&&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:[U2(i)," - ",U2(s)]}),l.jsx("span",{className:"location",children:g}),(I==null?void 0:I.length)!==0&&E&&l.jsxs("span",{className:"expSkillsAndIndustries",children:[l.jsx("h2",{children:"INDUSTRIES"}),l.jsx("span",{children:I.map((H,J)=>l.jsx(k1,{content:H.source,toolTipPosition:"bottom",children:l.jsx(_r,{highlightPill:!0,text:H.industry},J)}))})]}),(f==null?void 0:f.length)!==0&&l.jsxs("span",{className:"expSkillsAndIndustries",children:[l.jsx("h2",{children:"Keywords/Skills"}),l.jsx("span",{children:f==null?void 0:f.map((H,J)=>l.jsx(_r,{highlightPill:!0,text:H},J))})]})]})]})},aQ=({experiences:t,initialItemsToShow:e,onCompanyClick:n,expIndustries:r=[],expSkills:i=[]})=>{const[s,a]=b.useState(e),[o,c]=b.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==null?void 0:t.slice(0,s).map((u,h)=>l.jsx("li",{className:"experience-li",children:u.map((f,p)=>l.jsx(sQ,{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(P1,{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)}})})]})})},oQ=({count:t,profile:e,checked:n,onCheckClick:r,onExperienceCompanyClick:i,onDetailsClick:s,expIndustries:a=[],expSkills:o=[],filteredEducation:c=[]})=>{var f,p,m,g,v,x;const u=e.experience?(f=e.experience)==null?void 0:f.map(C=>{var M;return(M=C==null?void 0:C.experienceDetails)==null?void 0:M.map((E,z)=>{var L;const k=(L=C.experienceDetails.at(z&&z-1))==null?void 0:L.location;return{showCompany:z===0,iconUrl:C.companyLogo??"",iconAltText:E.companyName,position:E.title||"Full stack engineer",company:E.companyName,from:E.start,to:E.end?E.end:"Now",separator:"-",universalName:(E==null?void 0:E.universalName)||"",urn:(E==null?void 0:E.urn)||"",industries:E==null?void 0:E.industries,location:z===0||E.location!==k?E==null?void 0:E.location:""}})}):[],h=C=>(C==null?void 0:C.filter(E=>!!E.degreeName||!!E.schoolName)).map(E=>({iconAltText:"",institue:E!=null&&E.schoolName?E.schoolName:"",degree:E!=null&&E.degreeName?E.degreeName:"",from:E.start,to:E.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(ir,{checked:n,onClick:()=>r(e._id)})]})}),l.jsxs("div",{className:"peopleCard",children:[l.jsx("div",{className:"peopleCardLeft",children:l.jsxs("div",{children:[l.jsx(o2,{iconPath:e.imageUrl,iconSize:"120",altImageType:"profile"},`${e==null?void 0:e.publicIdentifier}-${e==null?void 0:e.updatedAtEs}`),l.jsxs("div",{className:"peopleCardNameSection",children:[l.jsx("p",{className:"titleSection",children:e.fullName}),l.jsx(rl,{count:e==null?void 0: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}),!!((m=(p=e==null?void 0:e.experience)==null?void 0:p[0])!=null&&m.experienceDetails[0].companyName)&&l.jsx("span",{children:" at "}),l.jsx("span",{onClick:()=>{var C,M,E,z,k,L;i(((E=(M=(C=e==null?void 0:e.experience)==null?void 0:C[0])==null?void 0:M.experienceDetails[0])==null?void 0:E.universalName)||"",((L=(k=(z=e==null?void 0:e.experience)==null?void 0:z[0])==null?void 0:k.experienceDetails[0])==null?void 0:L.urn)||"")},className:"company",children:(v=(g=e==null?void 0:e.experience)==null?void 0:g[0])==null?void 0:v.experienceDetails[0].companyName})]})}),l.jsx("p",{className:"location",children:e.locality}),l.jsx(Yi,{onClick:()=>s(e._id),sizeVariant:"sm",colorVariant:"orange",children:"View full profile"})]})}),l.jsxs("div",{className:"peopleCardRight",children:[((x=e.experience)==null?void 0:x.length)!==0&&l.jsxs("div",{className:"experienceWrapper",children:[l.jsx("p",{children:"Experience"}),l.jsx(aQ,{experiences:u,initialItemsToShow:3,onCompanyClick:i,expIndustries:a,expSkills:o})]}),(c==null?void 0:c.length)!==0&&l.jsxs("div",{className:"educationContainer",children:[l.jsx("p",{children:"Education"}),l.jsx(Jp,{educations:h(c),initialItemsToShow:3})]})]})]})]})},lQ=({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(o2,{iconSize:"20",iconPath:r}):l.jsx(he,{iconType:"excalamationCircle",iconSize:"20"}),l.jsx("p",{children:t}),l.jsx(P1,{text:"Replace",onClick:n}),l.jsx("span",{onClick:e,children:l.jsx(he,{iconSize:"20",iconType:"cross"})})]})}),cQ=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}`)})},dQ=Dr.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{},mergeNestedSpanStyles:!1}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&cQ(t),{}):!1}]},renderHTML({HTMLAttributes:t}){return["span",hn(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 uQ=Y1.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 hQ="_textStylesContainer_18cxl_131",fQ="_inlineStyles_18cxl_136",pQ="_blockStyles_18cxl_137",mQ="_styleButton_18cxl_141",gQ="_active_18cxl_160",ii={textStylesContainer:hQ,inlineStyles:fQ,blockStyles:pQ,styleButton:mQ,active:gQ},vQ=({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(C2,{icon:_X})},{label:"BOLD",action:()=>t.chain().focus().toggleBold().run(),isActive:()=>t.isActive("bold"),icon:l.jsx(C2,{icon:QX})},{label:"ITALIC",action:()=>t.chain().focus().toggleItalic().run(),isActive:()=>t.isActive("italic"),icon:l.jsx(C2,{icon:Ny})},{label:"UNDERLINE",action:()=>t.chain().focus().toggleUnderline().run(),isActive:()=>t.isActive("underline"),icon:l.jsx(C2,{icon:Dy})}],n=[{label:"list",action:()=>t.chain().focus().toggleBulletList().run(),isActive:()=>t.isActive("bulletList"),icon:l.jsx(C2,{icon:Ty})}],r=(i,s)=>{i.preventDefault(),s()};return l.jsxs("div",{className:ii.textStylesContainer,children:[l.jsx("div",{className:ii.inlineStyles,children:e.map(i=>l.jsx("button",{type:"button",className:`${ii.styleButton} ${i.isActive()?ii.active:""}`,onClick:s=>r(s,i.action),title:i.label,children:i.icon},i.label))}),l.jsx("div",{className:ii.blockStyles,children:n.map(i=>l.jsx("button",{type:"button",className:`${ii.styleButton} ${i.isActive()?ii.active:""}`,onClick:s=>r(s,i.action),title:i.label,children:i.icon},i.label))})]})},xQ="_fontSizeControl_1wfd3_131",yQ="_fontSizeSpan_1wfd3_135",wQ="_fontSizeInput_1wfd3_139",bQ="_btnSpan_1wfd3_150",CQ="_divider_1wfd3_159",si={fontSizeControl:xQ,fontSizeSpan:yQ,fontSizeInput:wQ,btnSpan:bQ,divider:CQ},EQ=({editor:t})=>{const e=["12","14","16","18","20","24","32"],[n,r]=b.useState(2),[i,s]=b.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};b.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 b.useEffect(()=>{s(e[n]);const u=e[n];t.chain().focus().setFontSize(`${u}px`).run()},[n,t]),l.jsx("div",{className:si.fontSizeControl,children:l.jsxs("span",{className:si.fontSizeSpan,children:[l.jsx("span",{className:si.divider,children:"|"}),l.jsx("span",{className:si.btnSpan,onClick:o,children:"-"}),l.jsx("input",{className:si.fontSizeInput,type:"text",value:i,disabled:!0}),l.jsx("span",{className:si.btnSpan,onClick:c,children:"+"}),l.jsx("span",{className:si.divider,children:"|"})]})})},AQ="_textEditortToolBarContainer_1r14r_131",MQ={textEditortToolBarContainer:AQ},kQ=({editor:t,contributors:e,isLoading:n=!1})=>l.jsxs("div",{className:MQ.textEditortToolBarContainer,children:[l.jsx(vQ,{editor:t}),l.jsx("span",{children:l.jsx(EQ,{editor:t})}),l.jsxs("div",{children:[n&&l.jsx($1,{width:"16",height:"16"}),e&&!n&&l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"Contributors: "}),e.map((r,i)=>l.jsx("p",{children:y5(r)},i))]})]})]}),SQ="_noteEditorContainer_bcfwl_131",FQ="_editorContent_bcfwl_134",jQ="_proseMirror_bcfwl_138",X4={noteEditorContainer:SQ,editorContent:FQ,proseMirror:jQ},zQ=({value:t="",handleChange:e=()=>!1,contributors:n,isDisabled:r=!1,isLoading:i=!1,notesLoading:s=!1})=>{const a=F8({extensions:[j8.configure({heading:{levels:[1,2,3,4,5,6]},bulletList:{keepMarks:!0,keepAttributes:!1},orderedList:{keepMarks:!0,keepAttributes:!1}}),dQ,qx,uQ.configure({types:["textStyle"]})],content:t,editable:!r,onUpdate:({editor:o})=>{if(!s){const c=o.getText();e(c)}},editorProps:{attributes:{class:X4.proseMirror}}});return b.useEffect(()=>{a&&t!==a.getText()&&a.commands.setContent(t)},[t,a]),l.jsxs("div",{className:X4.noteEditorContainer,children:[l.jsx(kQ,{editor:a,contributors:n,isLoading:i}),l.jsx("div",{className:X4.editorContent,children:l.jsx(S8,{editor:a})})]})},LQ=({onNameClick:t=r=>{console.log("Showing the publicIdentifier :: ",r)},onCompanyClick:e=r=>{console.log("Showing the publicIdentifier :: ",r)},profiles:n})=>{const r=n,i=b.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}=z2.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),b.createElement("tr",{...h.getRowProps(),key:`${h.original.publicIdentifier}${h.original.isSelected}`},h.cells.map(f=>{var p,m,g,v;return f.column.Header==="NAME"?l.jsx("td",{...f.getCellProps(),children:l.jsxs("span",{className:"lookAlikeProfiles--NameCell",children:[l.jsx(sr,{iconPath:(m=(p=f==null?void 0:f.row)==null?void 0:p.original)==null?void 0:m.imageUrl,iconSize:"40",borderRadius:"6"}),l.jsx(Fr,{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:((g=f.row.original.experience)==null?void 0:g[0].title)||""}):f.column.Header==="COMPANY"?l.jsx("td",{...f.getCellProps(),className:"lookAlikeProfiles--CompanyCell ",children:l.jsx(Fr,{text:((v=f.row.original.experience)==null?void 0:v[0].company_name)||"",onClick:()=>{var x;return e(((x=f.row.original.experience)==null?void 0:x[0].universalName)||"")}})}):l.jsx("td",{...f.getCellProps(),children:f.render("Cell")})}))))})]})})},RQ=({onNameClick:t,competitors:e})=>{const n=r=>{var i;return`${r.companyLocation&&Fo(r.companyLocation)}${r.companyLocation&&r.employeeCount?" • ":""}${r.employeeCount?((i=r.employeeCount)==null?void 0:i.toLocaleString("en-US"))+" Employees":""}`};return l.jsx("div",{className:"competitorsTabWrapper",children:e.map(r=>l.jsxs("button",{onClick:()=>t(r==null?void 0:r.universalName),className:"competitorsTab",children:[l.jsx("div",{className:"companyIcon",children:l.jsx(o2,{altImageType:"company",iconPath:r.imageUrl,iconSize:"48"})}),l.jsxs("div",{className:"companyDetails",children:[l.jsx("h3",{children:Fo(r.companyTitle)}),n(r)?l.jsx("p",{className:"companyLocation",children:n(r)}):null]})]}))})},DQ=({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(sr,{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})]})]}))}),NQ=({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(Yp,{width:"48",height:"48"})}),l.jsxs("div",{className:"reportsName",children:[l.jsx("span",{children:(e==null?void 0:e.fileName)||"Report"}),l.jsx("a",{href:e==null?void 0:e.downloadUrl,target:"_blank",children:l.jsx(he,{iconType:"download",iconSize:"20"})})]})]}))}),Q4=({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(ln,{children:i})]})},TQ=({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(o2,{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(ln,{children:r.personName})}),l.jsx("span",{className:"companyPeopleTab-Title",children:e==="previous"?l.jsxs(l.Fragment,{children:[r.pastTitle&&l.jsx(Q4,{company:r.pastCompany,title:r.pastTitle,isPreviousTitle:!0}),r.currentTitle&&l.jsx(Q4,{company:r.currentCompany,title:r.currentTitle})]}):r.currentTitle&&l.jsx(Q4,{company:r.currentCompany,title:r.currentTitle,showTitleReference:!1})})]}),e==="previous"&&r.startOfTenure&&r.endOfTenure&&l.jsx("div",{className:"companyPeopleTab-DateContainer",children:`${U2(r.startOfTenure)} - ${U2(r.endOfTenure)}`})]})]},r.esId))});mn.register(r2,rr,i2,In,on,j2,a2,s2,U0,G0,S2);const BQ={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 An.format(t),An.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=An.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}}},Wy=({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(l3,{id:"canvas",type:"bar",options:{...BQ,aspectRatio:r},data:o})]})};mn.register(r2,rr,i2,S2,In,on,j2,a2,s2);const IQ={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}}},PQ=({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(l3,{id:"canvas",type:"line",options:IQ,data:r}),";"]})})},VQ=({})=>{},xc=({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]=b.useState(!1),p=b.useRef(null),m=b.useRef(null),g=ve({"dropDownButton--KebabContainer":!0,"dropDownButton-DropDownLeft":!n,"dropDownButton-DropDownRight":n}),v=ve({"dropDownButton--Generic":!0,[`${c}--DropDownButton`]:!0}),x=()=>{f(C=>!C)};return b.useEffect(()=>{function C(M){var E,z;!((E=m==null?void 0:m.current)!=null&&E.contains(M.target))&&!((z=p==null?void 0:p.current)!=null&&z.contains(M.target))&&f(!1)}return document==null||document.addEventListener("mousedown",C),()=>{document==null||document.removeEventListener("mousedown",C)}},[]),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(he,{iconType:a,iconSize:"16"})}),l.jsx("span",{style:{textOverflow:i,maxWidth:r},children:t}),l.jsx("div",{className:"rightIcon",children:l.jsx(he,{iconType:h?"cheveronUp":"cheveronDown",iconSize:"16"})})]}),h&&l.jsx("div",{className:"dropDownButton-DropDown",onClick:x,ref:m,children:e})]})};var OQ=typeof document<"u",HQ=function(){},m5=OQ?b.useLayoutEffect:HQ;const WQ={...d},GQ=WQ.useInsertionEffect,UQ=GQ||(t=>t());function YQ(t){const e=d.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return UQ(()=>{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 KQ=typeof document<"u",ZQ=function(){},Ao=KQ?b.useLayoutEffect:ZQ;function g5(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(!g5(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)&&!g5(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function Gy(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Kf(t,e){const n=Gy(t);return Math.round(e*n)/n}function _4(t){const e=d.useRef(t);return Ao(()=>{e.current=t}),e}function qQ(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);g5(p,r)||m(r);const[g,v]=d.useState(null),[x,C]=d.useState(null),M=d.useCallback(Q=>{Q!==L.current&&(L.current=Q,v(Q))},[]),E=d.useCallback(Q=>{Q!==D.current&&(D.current=Q,C(Q))},[]),z=s||g,k=a||x,L=d.useRef(null),D=d.useRef(null),N=d.useRef(h),I=c!=null,H=_4(c),J=_4(i),re=_4(u),fe=d.useCallback(()=>{if(!L.current||!D.current)return;const Q={placement:e,strategy:n,middleware:p};J.current&&(Q.platform=J.current),h9(L.current,D.current,Q).then(oe=>{const X={...oe,isPositioned:re.current!==!1};$.current&&!g5(N.current,X)&&(N.current=X,bw.flushSync(()=>{f(X)}))})},[p,e,n,J,re]);Ao(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,f(Q=>({...Q,isPositioned:!1})))},[u]);const $=d.useRef(!1);Ao(()=>($.current=!0,()=>{$.current=!1}),[]),Ao(()=>{if(z&&(L.current=z),k&&(D.current=k),z&&k){if(H.current)return H.current(z,k,fe);fe()}},[z,k,fe,H,I]);const te=d.useMemo(()=>({reference:L,floating:D,setReference:M,setFloating:E}),[M,E]),q=d.useMemo(()=>({reference:z,floating:k}),[z,k]),Z=d.useMemo(()=>{const Q={position:n,left:0,top:0};if(!q.floating)return Q;const oe=Kf(q.floating,h.x),X=Kf(q.floating,h.y);return o?{...Q,transform:"translate("+oe+"px, "+X+"px)",...Gy(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:oe,top:X}},[n,o,q.floating,h.x,h.y]);return d.useMemo(()=>({...h,update:fe,refs:te,elements:q,floatingStyles:Z}),[h,fe,te,q,Z])}const JQ=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?u9({element:r.current,padding:i}).fn(n):{}:r?u9({element:r,padding:i}).fn(n):{}}}},XQ=(t,e)=>({...Vp(t),options:[t,e]}),QQ=(t,e)=>({...Op(t),options:[t,e]}),_Q=(t,e)=>({...JQ(t),options:[t,e]}),$Q={...d};let Zf=!1,e_=0;const qf=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+e_++;function t_(){const[t,e]=d.useState(()=>Zf?qf():void 0);return m5(()=>{t==null&&e(qf())},[]),d.useEffect(()=>{Zf=!0},[]),t}const n_=$Q.useId,Uy=n_||t_;let x8;process.env.NODE_ENV!=="production"&&(x8=new Set);function r_(){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=x8)!=null&&t.has(i))){var s;(s=x8)==null||s.add(i),console.warn(i)}}function i_(){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=x8)!=null&&t.has(i))){var s;(s=x8)==null||s.add(i),console.error(i)}}const s_=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||r_("The `ref` prop is required for `FloatingArrow`."));const C=Uy(),[M,E]=d.useState(!1);if(m5(()=>{if(!i)return;Y2(i).direction==="rtl"&&E(!0)},[i]),!i)return null;const[z,k]=r.split("-"),L=z==="top"||z==="bottom";let D=f;(L&&a!=null&&a.x||!L&&a!=null&&a.y)&&(D=null);const N=h*2,I=N/2,H=o/2*(u/-8+1),J=c/2*u/4,re=!!m,fe=D&&k==="end"?"bottom":"top";let $=D&&k==="end"?"right":"left";D&&M&&($=k==="end"?"left":"right");const te=(s==null?void 0:s.x)!=null?D||s.x:"",q=(s==null?void 0:s.y)!=null?D||s.y:"",Z=m||"M0,0"+(" H"+o)+(" L"+(o-H)+","+(c-J))+(" Q"+o/2+","+c+" "+H+","+(c-J))+" Z",Q={top:re?"rotate(180deg)":"",left:re?"rotate(90deg)":"rotate(-90deg)",bottom:re?"":"rotate(180deg)",right:re?"rotate(-90deg)":"rotate(90deg)"}[z];return l.jsxs("svg",{...x,"aria-hidden":!0,ref:n,width:re?o:o+N,height:o,viewBox:"0 0 "+o+" "+(c>o?c:o),style:{position:"absolute",pointerEvents:"none",[$]:te,[fe]:q,[z]:L||re?"100%":"calc(100% - "+N/2+"px)",transform:[Q,g].filter(oe=>!!oe).join(" "),...v},children:[N>0&&l.jsx("path",{clipPath:"url(#"+C+")",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:C,children:l.jsx("rect",{x:-I,y:I*(re?-1:1),width:o+N,height:o})})]})});function a_(){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 o_=d.createContext(null),l_=d.createContext(null),c_=()=>{var t;return((t=d.useContext(o_))==null?void 0:t.id)||null},d_=()=>d.useContext(l_);function u_(t){const{open:e=!1,onOpenChange:n,elements:r}=t,i=Uy(),s=d.useRef({}),[a]=d.useState(()=>a_()),o=c_()!=null;if(process.env.NODE_ENV!=="production"){const m=r.reference;m&&!Nn(m)&&i_("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=YQ((m,g,v)=>{s.current.openEvent=m?g:void 0,a.emit("openchange",{open:m,event:g,reason:v,nested:o}),n==null||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 h_(t){t===void 0&&(t={});const{nodeId:e}=t,n=u_({...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==null?void 0:i.domReference)||s,f=d.useRef(null),p=d_();m5(()=>{h&&(f.current=h)},[h]);const m=qQ({...t,elements:{...i,...o&&{reference:o}}}),g=d.useCallback(E=>{const z=Nn(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),getClientRects:()=>E.getClientRects(),contextElement:E}:E;c(z),m.refs.setReference(z)},[m.refs]),v=d.useCallback(E=>{(Nn(E)||E===null)&&(f.current=E,a(E)),(Nn(m.refs.reference.current)||m.refs.reference.current===null||E!==null&&!Nn(E))&&m.refs.setReference(E)},[m.refs]),x=d.useMemo(()=>({...m.refs,setReference:v,setPositionReference:g,domReference:f}),[m.refs,v,g]),C=d.useMemo(()=>({...m.elements,domReference:h}),[m.elements,h]),M=d.useMemo(()=>({...m,...r,refs:x,elements:C,nodeId:e}),[m,x,C,e,r]);return m5(()=>{r.dataRef.current.floatingContext=M;const E=p==null?void 0:p.nodesRef.current.find(z=>z.id===e);E&&(E.context=M)}),d.useMemo(()=>({...m,context:M,refs:x,elements:C}),[m,x,C,M])}/*!
1055
+ */const Dy={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"]},qX={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"]},Ny={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"]},JX={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"]},XX={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"]},QX={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"]},Ty={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"]},_X={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"]},Yf=({editor:t,updateAlignment:e})=>{const n=[{label:"BOLD",style:"BOLD",icon:l.jsx(C2,{icon:qX,size:"sm"}),command:()=>t.chain().focus().toggleBold().run(),isActive:()=>t.isActive("bold")},{label:"ITALIC",style:"ITALIC",icon:l.jsx(C2,{icon:Ny,size:"sm"}),command:()=>t.chain().focus().toggleItalic().run(),isActive:()=>t.isActive("italic")},{label:"Underline",style:"UNDERLINE",icon:l.jsx(C2,{icon:Dy,size:"sm"}),command:()=>t.chain().focus().toggleUnderline().run(),isActive:()=>t.isActive("underline")},{label:"ALIGNLEFT",style:"ALIGNLEFT",icon:l.jsx(C2,{icon:JX,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(C2,{icon:XX,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(C2,{icon:Ty,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}`))]})},By=b.memo(({placeholder:t="",isNextDisabled:e,className:n,value:r,showHeader:i=!0,headerPosition:s="top",showError:a=!0,editor:o})=>{const[c,u]=b.useState(!1),[h,f]=b.useState("left"),p=b.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 b.useEffect(()=>{o&&r!==o.getHTML()&&o.commands.setContent(r)},[o,r]),b.useEffect(()=>{u(r!=="")},[r]),o?l.jsx("div",{className:`${n||""}`,children:e?l.jsx("span",{className:"loader--draft",children:l.jsx($1,{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(Yf,{editor:o,updateAlignment:p})}),l.jsx("div",{className:"editor-textarea",children:l.jsx(S8,{editor:o,placeholder:t,style:{textAlign:h}})}),i&&s==="bottom"&&l.jsx("div",{className:"draft-foot",children:l.jsx(Yf,{editor:o,updateAlignment:p})})]}),!c&&a&&l.jsxs("div",{className:"error-svg-draft",children:[l.jsx("span",{className:"error-svg-span",children:l.jsx(he,{iconType:"excalamationCircle",iconSize:"24"})}),l.jsx("span",{children:"Message is empty"})]})]})}):null});By.displayName="StyleableTextArea";const $X=Z2.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",hn({class:"tagStyle",contenteditable:"false",style:"cursor: pointer;"},t),e.attrs.text||""]},addProseMirrorPlugins(){return[new pn({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}}})]}}),Iy=({tabs:t,onSelect:e,selectedTab:n,dataCyArray:r=[],children:i})=>{const s=(o,c)=>ve({[`${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]})},Py=({tabs:t,handleChange:e,styleableTags:n,tagClasses:r})=>{if(t.length===0)return null;const[i,s]=b.useState(t[0].tabName),a=({cursorPos:f,name:p,skillFlag:m=!1})=>{const g="",v=m?p:p.split(" ").join("_"),x=C=>{if(C.preventDefault(),n&&!m)e(`{{.${v}}}`);else if(m)e(v);else{const M=g.slice(0,f)+`${m?v:`{{.${v}}}`}`+g.slice(f);e(M)}};return l.jsxs("button",{className:"tags",onMouseDown:x,children:[l.jsx("p",{className:"tagButtonComponent-TagText",children:p}),l.jsx(he,{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=>{var p;return(p=o.find(m=>m.title===f))==null?void 0:p.content},u=o.map(f=>({id:f.id,title:f.title})),h=f=>s(f);return l.jsx("div",{className:"tabContainer",children:l.jsx(Iy,{tabs:u,onSelect:h,selectedTab:i,children:c(i)})})},eQ=({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]=b.useState(t),[x,C]=b.useState(0),M=b.useCallback(k=>{const L=document.createElement("div");L.innerHTML=k,L.querySelectorAll("span.tagStyle[data-tag]").forEach(I=>{const H=I.getAttribute("data-tag");if(H){const J=zc(H);I.textContent=J}});const N=L.textContent||L.innerText||"";C(N.length),v(k),r(N)},[r]),E=F8({extensions:[j8,qx,$X,Eq.configure({types:["heading","paragraph"]})],content:t,editorProps:{attributes:{class:"tiptap-editor"}},onUpdate:({editor:k})=>{const L=k.getHTML();M(L)}});b.useEffect(()=>{E&&n&&E.setOptions({editorProps:{...E.options.editorProps,handlePaste:(k,L)=>{const D=L.clipboardData;if(D){const N=D.getData("text/plain"),I=E.getText().length,H=n-I;if(N.length>H){const J=N.slice(0,H);return E.commands.insertContent(J),!0}}return!1},handleKeyDown:(k,L)=>L.key.length===1&&E.getText().length>=n}})},[E,n]);const z=b.useCallback(k=>{const L=zc(k);n&&x+L.length>=n||E&&E.chain().focus().insertContent({type:"tagSpan",attrs:{"data-tag":k,text:L}}).insertContent(" ").run()},[n,x,E]);return l.jsxs("div",{children:[l.jsx(By,{editor:E,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(Py,{tabs:a,handleChange:z,styleableTags:!0,tagClasses:c,showSchoolBtn:m})]})},tQ=({switches:t,dataCy:e})=>l.jsx("div",{className:"switchLarge",children:t.map((n,r)=>{var i,s;return l.jsx(k1,{content:n.name,children:l.jsxs("button",{className:`${n.isActive?"active":""}`,onClick:n.onClick,"data-cy":n.text?`${e}-${(i=n.text)==null?void 0:i.toLowerCase()}`:`${e}-${(s=n.name)==null?void 0:s.toLowerCase()}`,children:[n.text&&!n.iconType&&l.jsx("span",{className:"switchButtonText",children:n.text}),n.iconType&&l.jsx(he,{iconType:n.iconType,iconSize:"16"})]},r)})})}),nQ=({columns:t,data:e})=>{const{getTableProps:n,getTableBodyProps:r,headerGroups:i,rows:s,prepareRow:a}=z2.useTable({columns:t,data:e});return l.jsxs("table",{...n(),className:"table",children:[l.jsx("thead",{children:i.map(o=>l.jsxs(b.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",{})]})))})]})},Vy=({text:t="",TextWithSvgButtonClassName:e="",sizeVariant:n="xs",colorVariant:r="gray",isDisabled:i=!1,iconType:s,onClick:a,...o})=>{const c=ve({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(he,{iconType:s,iconSize:"16"}),t.length>0&&t]})},Oy=({initialState:t,onClick:e,sizeVariant:n="base",isDisabled:r=!1,dataCy:i})=>{const[s,a]=b.useState(t);b.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=Gs();return t.length>e?l.jsx(l.Fragment,{children:l.jsxs("span",{"data-tooltip-id":s,className:n,children:[i,l.jsx(Gp,{id:s,className:"toolTipStyling",content:t,place:r})]})}):l.jsx("span",{children:i})},vc=({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=ve({searchTimer:!0,[e]:!!e});return t?l.jsx(k1,{content:"Your search is in process",children:l.jsx("div",{className:r,children:n(t)})}):null},rQ=({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(he,{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(k1,{toolTipPosition:"bottom",content:"Search More",children:l.jsx(he,{iconType:"globeSearch",iconSize:"24"})}),m.searchType==="massUpdate"&&l.jsx(k1,{toolTipPosition:"bottom",content:"Mass Update",children:l.jsx(he,{iconType:"refresh",iconSize:"24"})}),m.searchType==="nameGen"&&l.jsx(k1,{toolTipPosition:"bottom",content:"Search Builder",children:l.jsx(he,{iconType:"sparkles",iconSize:"24"})}),m.searchType!=="nameGen"&&m.searchType!=="external"&&m.searchType!=="massUpdate"&&l.jsx(k1,{toolTipPosition:"bottom",content:"Basic Search",children:l.jsx(he,{iconType:"search",iconSize:"24"})}),l.jsx(ln,{toolTipPosition:"bottom",maxWidth:`${h(m)||m.isLoading?208:264}px`,children:m.name}),h(m)&&l.jsx(vc,{remainingTime:i??0})]}),m.isLoading&&l.jsx($1,{width:"18",height:"18"})]}),l.jsx("button",{type:"button",className:"btn-Delete",onClick:p(m),"data-cy":`${u}-delete`,children:l.jsx(he,{iconType:"delete",iconSize:"18"})})]},g)),e&&l.jsx("span",{className:"loader",children:l.jsx($1,{width:"20",height:"20"})}),l.jsx("div",{className:"loadMore",children:s&&l.jsx(P1,{text:"Load More",colorVariant:"gray",onClick:a,disabled:o,sizeVariant:"sm",dataCy:`${u}-load-more`})})]})]}),l.jsx("div",{className:"resultWrapper",children:l.jsx(P1,{text:"Back to results",colorVariant:"orange",onClick:c,disabled:o,sizeVariant:"base",dataCy:`${u}-back`})})]})},iQ=({emailList:t,onConnectClick:e,connectedEmail:n,selectedEmail:r})=>{const[i,s]=b.useState(!1),[a,o]=b.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(he,{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(P1,{text:"Connect",sizeVariant:"xs",onClick:()=>{e(c.email),s(u=>!u)}})]}):l.jsx(l.Fragment,{}))]})})]})},sQ=({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]=b.useState(!1),C="undefined-undefined",M=!!i&&s!==C&&i!==C,E=p===0,z=p===m-1,k=E&&z,L=!E&&!k,D=!z&&!k,N=ve({experienceCard:!0,"experienceCard-Before":L,"experienceCard-After":D&&!E,"experienceCard-FirstExpAfter":D&&E}),I=Ww({industries:u,expIndustries:h});return l.jsxs("div",{className:N,children:[l.jsx("span",{children:E&&l.jsx(l.Fragment,{children:v||!t?l.jsx("div",{className:"companyPlaceholder",children:l.jsx(he,{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}),E&&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:[U2(i)," - ",U2(s)]}),l.jsx("span",{className:"location",children:g}),(I==null?void 0:I.length)!==0&&E&&l.jsxs("span",{className:"expSkillsAndIndustries",children:[l.jsx("h2",{children:"INDUSTRIES"}),l.jsx("span",{children:I.map((H,J)=>l.jsx(k1,{content:H.source,toolTipPosition:"bottom",children:l.jsx(_r,{highlightPill:!0,text:H.industry},J)}))})]}),(f==null?void 0:f.length)!==0&&l.jsxs("span",{className:"expSkillsAndIndustries",children:[l.jsx("h2",{children:"Keywords/Skills"}),l.jsx("span",{children:f==null?void 0:f.map((H,J)=>l.jsx(_r,{highlightPill:!0,text:H},J))})]})]})]})},aQ=({experiences:t,initialItemsToShow:e,onCompanyClick:n,expIndustries:r=[],expSkills:i=[]})=>{const[s,a]=b.useState(e),[o,c]=b.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==null?void 0:t.slice(0,s).map((u,h)=>l.jsx("li",{className:"experience-li",children:u.map((f,p)=>l.jsx(sQ,{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(P1,{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)}})})]})})},oQ=({count:t,profile:e,checked:n,onCheckClick:r,onExperienceCompanyClick:i,onDetailsClick:s,expIndustries:a=[],expSkills:o=[],filteredEducation:c=[]})=>{var f,p,m,g,v,x;const u=e.experience?(f=e.experience)==null?void 0:f.map(C=>{var M;return(M=C==null?void 0:C.experienceDetails)==null?void 0:M.map((E,z)=>{var L;const k=(L=C.experienceDetails.at(z&&z-1))==null?void 0:L.location;return{showCompany:z===0,iconUrl:C.companyLogo??"",iconAltText:E.companyName,position:E.title||"Full stack engineer",company:E.companyName,from:E.start,to:E.end?E.end:"Now",separator:"-",universalName:(E==null?void 0:E.universalName)||"",urn:(E==null?void 0:E.urn)||"",industries:E==null?void 0:E.industries,location:z===0||E.location!==k?E==null?void 0:E.location:""}})}):[],h=C=>(C==null?void 0:C.filter(E=>!!E.degreeName||!!E.schoolName)).map(E=>({iconAltText:"",institue:E!=null&&E.schoolName?E.schoolName:"",degree:E!=null&&E.degreeName?E.degreeName:"",from:E.start,to:E.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(ir,{checked:n,onClick:()=>r(e._id)})]})}),l.jsxs("div",{className:"peopleCard",children:[l.jsx("div",{className:"peopleCardLeft",children:l.jsxs("div",{children:[l.jsx(o2,{iconPath:e.imageUrl,iconSize:"120",altImageType:"profile"},`${e==null?void 0:e.publicIdentifier}-${e==null?void 0:e.updatedAtEs}`),l.jsxs("div",{className:"peopleCardNameSection",children:[l.jsx("p",{className:"titleSection",children:e.fullName}),l.jsx(rl,{count:e==null?void 0: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}),!!((m=(p=e==null?void 0:e.experience)==null?void 0:p[0])!=null&&m.experienceDetails[0].companyName)&&l.jsx("span",{children:" at "}),l.jsx("span",{onClick:()=>{var C,M,E,z,k,L;i(((E=(M=(C=e==null?void 0:e.experience)==null?void 0:C[0])==null?void 0:M.experienceDetails[0])==null?void 0:E.universalName)||"",((L=(k=(z=e==null?void 0:e.experience)==null?void 0:z[0])==null?void 0:k.experienceDetails[0])==null?void 0:L.urn)||"")},className:"company",children:(v=(g=e==null?void 0:e.experience)==null?void 0:g[0])==null?void 0:v.experienceDetails[0].companyName})]})}),l.jsx("p",{className:"location",children:e.locality}),l.jsx(Yi,{onClick:()=>s(e._id),sizeVariant:"sm",colorVariant:"orange",children:"View full profile"})]})}),l.jsxs("div",{className:"peopleCardRight",children:[((x=e.experience)==null?void 0:x.length)!==0&&l.jsxs("div",{className:"experienceWrapper",children:[l.jsx("p",{children:"Experience"}),l.jsx(aQ,{experiences:u,initialItemsToShow:3,onCompanyClick:i,expIndustries:a,expSkills:o})]}),(c==null?void 0:c.length)!==0&&l.jsxs("div",{className:"educationContainer",children:[l.jsx("p",{children:"Education"}),l.jsx(Jp,{educations:h(c),initialItemsToShow:3})]})]})]})]})},lQ=({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(o2,{iconSize:"20",iconPath:r}):l.jsx(he,{iconType:"excalamationCircle",iconSize:"20"}),l.jsx("p",{children:t}),l.jsx(P1,{text:"Replace",onClick:n}),l.jsx("span",{onClick:e,children:l.jsx(he,{iconSize:"20",iconType:"cross"})})]})}),cQ=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}`)})},dQ=Dr.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{},mergeNestedSpanStyles:!1}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&cQ(t),{}):!1}]},renderHTML({HTMLAttributes:t}){return["span",hn(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 uQ=Y1.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 hQ="_textStylesContainer_18cxl_131",fQ="_inlineStyles_18cxl_136",pQ="_blockStyles_18cxl_137",mQ="_styleButton_18cxl_141",gQ="_active_18cxl_160",ii={textStylesContainer:hQ,inlineStyles:fQ,blockStyles:pQ,styleButton:mQ,active:gQ},vQ=({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(C2,{icon:_X})},{label:"BOLD",action:()=>t.chain().focus().toggleBold().run(),isActive:()=>t.isActive("bold"),icon:l.jsx(C2,{icon:QX})},{label:"ITALIC",action:()=>t.chain().focus().toggleItalic().run(),isActive:()=>t.isActive("italic"),icon:l.jsx(C2,{icon:Ny})},{label:"UNDERLINE",action:()=>t.chain().focus().toggleUnderline().run(),isActive:()=>t.isActive("underline"),icon:l.jsx(C2,{icon:Dy})}],n=[{label:"list",action:()=>t.chain().focus().toggleBulletList().run(),isActive:()=>t.isActive("bulletList"),icon:l.jsx(C2,{icon:Ty})}],r=(i,s)=>{i.preventDefault(),s()};return l.jsxs("div",{className:ii.textStylesContainer,children:[l.jsx("div",{className:ii.inlineStyles,children:e.map(i=>l.jsx("button",{type:"button",className:`${ii.styleButton} ${i.isActive()?ii.active:""}`,onClick:s=>r(s,i.action),title:i.label,children:i.icon},i.label))}),l.jsx("div",{className:ii.blockStyles,children:n.map(i=>l.jsx("button",{type:"button",className:`${ii.styleButton} ${i.isActive()?ii.active:""}`,onClick:s=>r(s,i.action),title:i.label,children:i.icon},i.label))})]})},xQ="_fontSizeControl_1wfd3_131",yQ="_fontSizeSpan_1wfd3_135",wQ="_fontSizeInput_1wfd3_139",bQ="_btnSpan_1wfd3_150",CQ="_divider_1wfd3_159",si={fontSizeControl:xQ,fontSizeSpan:yQ,fontSizeInput:wQ,btnSpan:bQ,divider:CQ},EQ=({editor:t})=>{const e=["12","14","16","18","20","24","32"],[n,r]=b.useState(2),[i,s]=b.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};b.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 b.useEffect(()=>{s(e[n]);const u=e[n];t.chain().focus().setFontSize(`${u}px`).run()},[n,t]),l.jsx("div",{className:si.fontSizeControl,children:l.jsxs("span",{className:si.fontSizeSpan,children:[l.jsx("span",{className:si.divider,children:"|"}),l.jsx("span",{className:si.btnSpan,onClick:o,children:"-"}),l.jsx("input",{className:si.fontSizeInput,type:"text",value:i,disabled:!0}),l.jsx("span",{className:si.btnSpan,onClick:c,children:"+"}),l.jsx("span",{className:si.divider,children:"|"})]})})},AQ="_textEditortToolBarContainer_1r14r_131",MQ={textEditortToolBarContainer:AQ},kQ=({editor:t,contributors:e,isLoading:n=!1})=>l.jsxs("div",{className:MQ.textEditortToolBarContainer,children:[l.jsx(vQ,{editor:t}),l.jsx("span",{children:l.jsx(EQ,{editor:t})}),l.jsxs("div",{children:[n&&l.jsx($1,{width:"16",height:"16"}),e&&!n&&l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"Contributors: "}),e.map((r,i)=>l.jsx("p",{children:y5(r)},i))]})]})]}),SQ="_noteEditorContainer_bcfwl_131",FQ="_editorContent_bcfwl_134",jQ="_proseMirror_bcfwl_138",X4={noteEditorContainer:SQ,editorContent:FQ,proseMirror:jQ},zQ=({value:t="",handleChange:e=()=>!1,contributors:n,isDisabled:r=!1,isLoading:i=!1,notesLoading:s=!1})=>{const a=F8({extensions:[j8.configure({heading:{levels:[1,2,3,4,5,6]},bulletList:{keepMarks:!0,keepAttributes:!1},orderedList:{keepMarks:!0,keepAttributes:!1}}),dQ,qx,uQ.configure({types:["textStyle"]})],content:t,editable:!r,onUpdate:({editor:o})=>{if(!s){const c=o.getText();e(c)}},editorProps:{attributes:{class:X4.proseMirror}}});return b.useEffect(()=>{a&&t!==a.getText()&&a.commands.setContent(t)},[t,a]),l.jsxs("div",{className:X4.noteEditorContainer,children:[l.jsx(kQ,{editor:a,contributors:n,isLoading:i}),l.jsx("div",{className:X4.editorContent,children:l.jsx(S8,{editor:a})})]})},LQ=({onNameClick:t=r=>{console.log("Showing the publicIdentifier :: ",r)},onCompanyClick:e=r=>{console.log("Showing the publicIdentifier :: ",r)},profiles:n})=>{const r=n,i=b.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}=z2.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),b.createElement("tr",{...h.getRowProps(),key:`${h.original.publicIdentifier}${h.original.isSelected}`},h.cells.map(f=>{var p,m,g,v;return f.column.Header==="NAME"?l.jsx("td",{...f.getCellProps(),children:l.jsxs("span",{className:"lookAlikeProfiles--NameCell",children:[l.jsx(sr,{iconPath:(m=(p=f==null?void 0:f.row)==null?void 0:p.original)==null?void 0:m.imageUrl,iconSize:"40",borderRadius:"6"}),l.jsx(Fr,{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:((g=f.row.original.experience)==null?void 0:g[0].title)||""}):f.column.Header==="COMPANY"?l.jsx("td",{...f.getCellProps(),className:"lookAlikeProfiles--CompanyCell ",children:l.jsx(Fr,{text:((v=f.row.original.experience)==null?void 0:v[0].company_name)||"",onClick:()=>{var x;return e(((x=f.row.original.experience)==null?void 0:x[0].universalName)||"")}})}):l.jsx("td",{...f.getCellProps(),children:f.render("Cell")})}))))})]})})},RQ=({onNameClick:t,competitors:e})=>{const n=r=>{var i;return`${r.companyLocation&&Fo(r.companyLocation)}${r.companyLocation&&r.employeeCount?" • ":""}${r.employeeCount?((i=r.employeeCount)==null?void 0:i.toLocaleString("en-US"))+" Employees":""}`};return l.jsx("div",{className:"competitorsTabWrapper",children:e.map(r=>l.jsxs("button",{onClick:()=>t(r==null?void 0:r.universalName),className:"competitorsTab",children:[l.jsx("div",{className:"companyIcon",children:l.jsx(o2,{altImageType:"company",iconPath:r.imageUrl,iconSize:"48"})}),l.jsxs("div",{className:"companyDetails",children:[l.jsx("h3",{children:Fo(r.companyTitle)}),n(r)?l.jsx("p",{className:"companyLocation",children:n(r)}):null]})]}))})},DQ=({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(sr,{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})]})]}))}),NQ=({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(Yp,{width:"48",height:"48"})}),l.jsxs("div",{className:"reportsName",children:[l.jsx("span",{children:(e==null?void 0:e.fileName)||"Report"}),l.jsx("a",{href:e==null?void 0:e.downloadUrl,target:"_blank",children:l.jsx(he,{iconType:"download",iconSize:"20"})})]})]}))}),Q4=({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(ln,{children:i})]})},TQ=({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(o2,{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(ln,{children:r.personName})}),l.jsx("span",{className:"companyPeopleTab-Title",children:e==="previous"?l.jsxs(l.Fragment,{children:[r.pastTitle&&l.jsx(Q4,{company:r.pastCompany,title:r.pastTitle,isPreviousTitle:!0}),r.currentTitle&&l.jsx(Q4,{company:r.currentCompany,title:r.currentTitle})]}):r.currentTitle&&l.jsx(Q4,{company:r.currentCompany,title:r.currentTitle,showTitleReference:!1})})]}),e==="previous"&&r.startOfTenure&&r.endOfTenure&&l.jsx("div",{className:"companyPeopleTab-DateContainer",children:`${U2(r.startOfTenure)} - ${U2(r.endOfTenure)}`})]})]},r.esId))});mn.register(r2,rr,i2,In,on,j2,a2,s2,U0,G0,S2);const BQ={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 An.format(t),An.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=An.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}}},Wy=({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(l3,{id:"canvas",type:"bar",options:{...BQ,aspectRatio:r},data:o})]})};mn.register(r2,rr,i2,S2,In,on,j2,a2,s2);const IQ={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}}},PQ=({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(l3,{id:"canvas",type:"line",options:IQ,data:r}),";"]})})},VQ=({})=>{},xc=({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]=b.useState(!1),p=b.useRef(null),m=b.useRef(null),g=ve({"dropDownButton--KebabContainer":!0,"dropDownButton-DropDownLeft":!n,"dropDownButton-DropDownRight":n}),v=ve({"dropDownButton--Generic":!0,[`${c}--DropDownButton`]:!0}),x=()=>{f(C=>!C)};return b.useEffect(()=>{function C(M){var E,z;!((E=m==null?void 0:m.current)!=null&&E.contains(M.target))&&!((z=p==null?void 0:p.current)!=null&&z.contains(M.target))&&f(!1)}return document==null||document.addEventListener("mousedown",C),()=>{document==null||document.removeEventListener("mousedown",C)}},[]),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(he,{iconType:a,iconSize:"16"})}),l.jsx("span",{style:{textOverflow:i,maxWidth:r},children:t}),l.jsx("div",{className:"rightIcon",children:l.jsx(he,{iconType:h?"cheveronUp":"cheveronDown",iconSize:"16"})})]}),h&&l.jsx("div",{className:"dropDownButton-DropDown",onClick:x,ref:m,children:e})]})};var OQ=typeof document<"u",HQ=function(){},m5=OQ?b.useLayoutEffect:HQ;const WQ={...d},GQ=WQ.useInsertionEffect,UQ=GQ||(t=>t());function YQ(t){const e=d.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return UQ(()=>{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 KQ=typeof document<"u",ZQ=function(){},Ao=KQ?b.useLayoutEffect:ZQ;function g5(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(!g5(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)&&!g5(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function Gy(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Kf(t,e){const n=Gy(t);return Math.round(e*n)/n}function _4(t){const e=d.useRef(t);return Ao(()=>{e.current=t}),e}function qQ(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);g5(p,r)||m(r);const[g,v]=d.useState(null),[x,C]=d.useState(null),M=d.useCallback(Q=>{Q!==L.current&&(L.current=Q,v(Q))},[]),E=d.useCallback(Q=>{Q!==D.current&&(D.current=Q,C(Q))},[]),z=s||g,k=a||x,L=d.useRef(null),D=d.useRef(null),N=d.useRef(h),I=c!=null,H=_4(c),J=_4(i),re=_4(u),fe=d.useCallback(()=>{if(!L.current||!D.current)return;const Q={placement:e,strategy:n,middleware:p};J.current&&(Q.platform=J.current),h9(L.current,D.current,Q).then(oe=>{const X={...oe,isPositioned:re.current!==!1};$.current&&!g5(N.current,X)&&(N.current=X,bw.flushSync(()=>{f(X)}))})},[p,e,n,J,re]);Ao(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,f(Q=>({...Q,isPositioned:!1})))},[u]);const $=d.useRef(!1);Ao(()=>($.current=!0,()=>{$.current=!1}),[]),Ao(()=>{if(z&&(L.current=z),k&&(D.current=k),z&&k){if(H.current)return H.current(z,k,fe);fe()}},[z,k,fe,H,I]);const te=d.useMemo(()=>({reference:L,floating:D,setReference:M,setFloating:E}),[M,E]),q=d.useMemo(()=>({reference:z,floating:k}),[z,k]),Z=d.useMemo(()=>{const Q={position:n,left:0,top:0};if(!q.floating)return Q;const oe=Kf(q.floating,h.x),X=Kf(q.floating,h.y);return o?{...Q,transform:"translate("+oe+"px, "+X+"px)",...Gy(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:oe,top:X}},[n,o,q.floating,h.x,h.y]);return d.useMemo(()=>({...h,update:fe,refs:te,elements:q,floatingStyles:Z}),[h,fe,te,q,Z])}const JQ=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?u9({element:r.current,padding:i}).fn(n):{}:r?u9({element:r,padding:i}).fn(n):{}}}},XQ=(t,e)=>({...Vp(t),options:[t,e]}),QQ=(t,e)=>({...Op(t),options:[t,e]}),_Q=(t,e)=>({...JQ(t),options:[t,e]}),$Q={...d};let Zf=!1,e_=0;const qf=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+e_++;function t_(){const[t,e]=d.useState(()=>Zf?qf():void 0);return m5(()=>{t==null&&e(qf())},[]),d.useEffect(()=>{Zf=!0},[]),t}const n_=$Q.useId,Uy=n_||t_;let x8;process.env.NODE_ENV!=="production"&&(x8=new Set);function r_(){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=x8)!=null&&t.has(i))){var s;(s=x8)==null||s.add(i),console.warn(i)}}function i_(){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=x8)!=null&&t.has(i))){var s;(s=x8)==null||s.add(i),console.error(i)}}const s_=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||r_("The `ref` prop is required for `FloatingArrow`."));const C=Uy(),[M,E]=d.useState(!1);if(m5(()=>{if(!i)return;Y2(i).direction==="rtl"&&E(!0)},[i]),!i)return null;const[z,k]=r.split("-"),L=z==="top"||z==="bottom";let D=f;(L&&a!=null&&a.x||!L&&a!=null&&a.y)&&(D=null);const N=h*2,I=N/2,H=o/2*(u/-8+1),J=c/2*u/4,re=!!m,fe=D&&k==="end"?"bottom":"top";let $=D&&k==="end"?"right":"left";D&&M&&($=k==="end"?"left":"right");const te=(s==null?void 0:s.x)!=null?D||s.x:"",q=(s==null?void 0:s.y)!=null?D||s.y:"",Z=m||"M0,0"+(" H"+o)+(" L"+(o-H)+","+(c-J))+(" Q"+o/2+","+c+" "+H+","+(c-J))+" Z",Q={top:re?"rotate(180deg)":"",left:re?"rotate(90deg)":"rotate(-90deg)",bottom:re?"":"rotate(180deg)",right:re?"rotate(-90deg)":"rotate(90deg)"}[z];return l.jsxs("svg",{...x,"aria-hidden":!0,ref:n,width:re?o:o+N,height:o,viewBox:"0 0 "+o+" "+(c>o?c:o),style:{position:"absolute",pointerEvents:"none",[$]:te,[fe]:q,[z]:L||re?"100%":"calc(100% - "+N/2+"px)",transform:[Q,g].filter(oe=>!!oe).join(" "),...v},children:[N>0&&l.jsx("path",{clipPath:"url(#"+C+")",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:C,children:l.jsx("rect",{x:-I,y:I*(re?-1:1),width:o+N,height:o})})]})});function a_(){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 o_=d.createContext(null),l_=d.createContext(null),c_=()=>{var t;return((t=d.useContext(o_))==null?void 0:t.id)||null},d_=()=>d.useContext(l_);function u_(t){const{open:e=!1,onOpenChange:n,elements:r}=t,i=Uy(),s=d.useRef({}),[a]=d.useState(()=>a_()),o=c_()!=null;if(process.env.NODE_ENV!=="production"){const m=r.reference;m&&!Nn(m)&&i_("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=YQ((m,g,v)=>{s.current.openEvent=m?g:void 0,a.emit("openchange",{open:m,event:g,reason:v,nested:o}),n==null||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 h_(t){t===void 0&&(t={});const{nodeId:e}=t,n=u_({...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==null?void 0:i.domReference)||s,f=d.useRef(null),p=d_();m5(()=>{h&&(f.current=h)},[h]);const m=qQ({...t,elements:{...i,...o&&{reference:o}}}),g=d.useCallback(E=>{const z=Nn(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),getClientRects:()=>E.getClientRects(),contextElement:E}:E;c(z),m.refs.setReference(z)},[m.refs]),v=d.useCallback(E=>{(Nn(E)||E===null)&&(f.current=E,a(E)),(Nn(m.refs.reference.current)||m.refs.reference.current===null||E!==null&&!Nn(E))&&m.refs.setReference(E)},[m.refs]),x=d.useMemo(()=>({...m.refs,setReference:v,setPositionReference:g,domReference:f}),[m.refs,v,g]),C=d.useMemo(()=>({...m.elements,domReference:h}),[m.elements,h]),M=d.useMemo(()=>({...m,...r,refs:x,elements:C,nodeId:e}),[m,x,C,e,r]);return m5(()=>{r.dataRef.current.floatingContext=M;const E=p==null?void 0:p.nodesRef.current.find(z=>z.id===e);E&&(E.context=M)}),d.useMemo(()=>({...m,context:M,refs:x,elements:C}),[m,x,C,M])}/*!
1056
1056
  react-datepicker v7.6.0
1057
1057
  https://github.com/Hacker0x01/react-datepicker
1058
1058
  Released under the MIT License.
@@ -57749,21 +57749,22 @@ const dX = _n.create({
57749
57749
  initialState: t,
57750
57750
  onClick: e,
57751
57751
  sizeVariant: n = "base",
57752
- dataCy: r
57752
+ isDisabled: r = !1,
57753
+ dataCy: i
57753
57754
  }) => {
57754
- const [i, s] = te(t);
57755
+ const [s, a] = te(t);
57755
57756
  ue(() => {
57756
- s(t);
57757
+ a(t);
57757
57758
  }, [t]);
57758
- const a = () => {
57759
- s(!i), e();
57759
+ const o = () => {
57760
+ r || (a(!s), e());
57760
57761
  };
57761
57762
  return /* @__PURE__ */ l.jsx(
57762
57763
  "div",
57763
57764
  {
57764
- className: `${n === "sm" ? "smSizeToggle" : "toggle"} ${i ? "on" : "off"}`,
57765
- onClick: a,
57766
- "data-cy": r,
57765
+ className: `${n === "sm" ? "smSizeToggle" : "toggle"} ${s ? "on" : "off"}`,
57766
+ onClick: o,
57767
+ "data-cy": i,
57767
57768
  children: /* @__PURE__ */ l.jsx(
57768
57769
  "div",
57769
57770
  {
@@ -3,6 +3,7 @@ type Props = {
3
3
  initialState: boolean;
4
4
  sizeVariant?: "sm" | "base";
5
5
  onClick: () => void;
6
+ isDisabled?: boolean;
6
7
  dataCy?: string;
7
8
  };
8
9
  declare const ToggleComponent: React.FC<Props>;
@@ -4,6 +4,7 @@ type Props = {
4
4
  initialState: boolean;
5
5
  sizeVariant?: "sm" | "base";
6
6
  onClick: () => void;
7
+ isDisabled?: boolean;
7
8
  dataCy?: string;
8
9
  };
9
10
  declare const ToggleComponent: React.FC<Props>;
@@ -1,12 +1,14 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useEffect, useState } from "react";
3
3
  import "./style.scss";
4
- const ToggleComponent = ({ initialState, onClick, sizeVariant = "base", dataCy, }) => {
4
+ const ToggleComponent = ({ initialState, onClick, sizeVariant = "base", isDisabled = false, dataCy, }) => {
5
5
  const [isOn, setIsOn] = useState(initialState);
6
6
  useEffect(() => {
7
7
  setIsOn(initialState);
8
8
  }, [initialState]);
9
9
  const handleToggle = () => {
10
+ if (isDisabled)
11
+ return;
10
12
  setIsOn(!isOn);
11
13
  onClick();
12
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qlu-20-ui-library",
3
- "version": "1.8.3",
3
+ "version": "1.8.4",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",