1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5081,7716,124],{67112:function(e,a,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/user/talent_pool",function(){return r(91277)}])},50679:function(e,a,r){"use strict";r.d(a,{e:function(){return ToolTip}});var o=r(85893);r(67294);var l=r(66908),n=r(57851),c=r(87633),d=r(95181),u=r(32673),x=r(22105);let ToolTip=e=>{let{children:a,disabled:r,className:h,heading:m,text:f,delayDuration:p,CTA:j,action:v,ctaOptions:b,secondaryCTA:g,secondaryAction:w,secondaryCtaOptions:N,ctaContainerClasses:C,withCopyIcon:_,withCopyLink:H,cursor:y,defaultOpen:V=!1,side:k,childrenCss:A,...Z}=e,T=(0,n.m)("text-black px-5 rounded p-2 z-[100] bg-white text-sm max-w-36 border shadow",h);return(0,o.jsx)(l.zt,{delayDuration:p||0,...Z,children:(0,o.jsxs)(l.fC,{defaultOpen:V,children:[(0,o.jsx)(l.xz,{asChild:!0,children:(0,o.jsx)("button",{type:"button",className:(0,n.m)("default"===y?"cursor-default":"",A),children:a})}),(0,o.jsx)(l.h_,{children:(0,o.jsxs)(l.VY,{className:T,sideOffset:5,side:k,children:[(0,o.jsxs)("div",{className:"flex flex-col items-start gap-1.5 text-start text-textDark2",children:[!!m&&(0,o.jsx)("p",{className:"text-lg font-medium text-textDark",children:m}),(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[f,!!r&&(0,o.jsx)("span",{children:(0,o.jsx)(d.$,{size:18,className:"text-redText hover:cursor-auto hover:text-redText/80 duration-300"})}),!r&&_?(0,o.jsx)("span",{children:(0,o.jsx)(u.C,{size:18,className:"text-greenText hover:cursor-pointer hover:text-greenText/80 duration-300",onClick:e=>{e.stopPropagation(),H?navigator.clipboard.writeText(H):navigator.clipboard.writeText(f),(0,x.Z)("Copied to Clipboard","success")}})}):(0,o.jsx)(o.Fragment,{})]}),j||g?(0,o.jsxs)("div",{className:(0,n.m)("flex w-full flex-col gap-1",C),children:[!!j&&(0,o.jsx)(c.zx,{small:!0,secondary:!0,className:"text-sm font-medium border-0 min-h-[28px] flex items-center justify-center w-full bg-violet-50 hover:bg-violet-100 p-0.5",onClick:v,...b||{},children:j}),!!g&&(0,o.jsx)(c.zx,{small:!0,className:"text-sm font-medium border-0 min-h-[28px] flex items-center justify-center w-full p-0.5",onClick:w,...N||{},children:g})]}):""]}),(0,o.jsx)(l.Eh,{className:"w-6 h-3 absolute top-full left-1/2 transform -translate-x-1/2 fill-white ",style:{filter:"drop-shadow(0px 0px 3px rgba(0, 0, 0, 0.15))"}})]})})]})})}},124:function(e,a,r){"use strict";r.r(a),r.d(a,{default:function(){return ChatV2}});var o=r(85893),l=r(67294),n=r(87342),c=r(81543),d=r(15889),u=r(45476),x=r(87633),h=r(50679),m=r(8818),f=r(4540),p=r(32353),j=r(95332);function ChatList(){var e;let{setSelectedScreen:a,selectedScreen:r,setSelectedChatRoomDetails:n}=(0,m.Z)(),[v,b]=(0,l.useState)(""),{data:g,isLoading:w,isFetching:N,isError:C,refetch:_}=(0,f.Dk)({refetchOnMountOrArgChange:!0}),H=null==g?void 0:null===(e=g.chatrooms)||void 0===e?void 0:e.filter(e=>{var a,r;return null===(r=e.chatroom_name)||void 0===r?void 0:null===(a=r.toLowerCase())||void 0===a?void 0:a.includes(null==v?void 0:v.toLowerCase())}),y=null==H?void 0:H.some(e=>{var a;return(null==e?void 0:null===(a=e.latest_message)||void 0===a?void 0:a.type)=="text"});return(0,o.jsxs)("div",{className:"w-full h-full",children:[(0,o.jsxs)("div",{className:" flex justify-between items-center w-full cursor-pointer",onClick:()=>{"ChatList"===r?a(""):a("ChatList")},children:[(0,o.jsx)("p",{className:"text-lg font-semibold",children:"Chats"}),(0,o.jsxs)("section",{className:"flex ",children:[(0,o.jsx)(h.e,{text:"Invite Teammates to Chat",children:(0,o.jsx)("p",{onClick:e=>{e.stopPropagation(),a("InitiateChat")},className:"flex items-center justify-center rounded-full p-2 hover:bg-[#5A5878]/10 duration-300 cursor-pointer",children:(0,o.jsx)(c.b,{size:20,color:"#5A5878"})})}),(0,o.jsx)("p",{className:`flex items-center justify-center rounded-full p-2 hover:bg-[#5A5878]/10 duration-300 cursor-pointer focus:rounded-full ${"ChatList"===r?"":" rotate-180 "}`,children:(0,o.jsx)(d.p,{size:20,color:"#5A5878"})})]})]}),(0,o.jsxs)("div",{className:"my-2 relative",children:[(0,o.jsx)(x.II,{placeholder:"Search people",className:"h-10 border bg-[#F8F8F8] focus:border focus:bg-white rounded-lg px-12 pr-0 focus:ring-0 border-gray-200",onChange:e=>{b(e.target.value)}}),(0,o.jsx)("span",{className:"absolute top-1/2 -translate-y-2.5 left-3",children:(0,o.jsx)(u.Y,{size:20,color:"#6B6B74"})})]}),C&&!y?(0,o.jsx)("div",{className:"flex items-center justify-center w-full h-1/4",children:(0,o.jsx)("p",{className:"text-lg font-semibold text-[#4D4B5C]",children:"Failed to get the updated Chat list"})}):"",N?(0,o.jsx)("div",{className:"flex items-center justify-center w-full h-1/2",children:(0,o.jsx)(j.Z,{})}):(0,o.jsxs)("div",{className:"h-[350px] overflow-y-scroll scrollHide ",children:[H&&(null==H?void 0:H.map((e,r)=>{var l,c,d;if((null==e?void 0:null===(l=e.latest_message)||void 0===l?void 0:l.type)=="text")return(0,o.jsx)("div",{className:`hover:bg-[#F9F9F9] duration-300 cursor-pointer ${(null==g?void 0:null===(d=g.chatrooms[r])||void 0===d?void 0:null===(c=d.latest_message)||void 0===c?void 0:c.sent_time)?"":"hidden"}`,onClick:()=>{n({chatroom_id:e._id,chatroom_name:e.chatroom_name}),a("ChatRoom")},children:(0,o.jsx)(p.Z,{userName:e.chatroom_name,latestMessage:e.latest_message.text,time:e.latest_message.sent_time,unreadMessages:e.unread_count,dividerLine:r!==(null==g?void 0:g.chatrooms.length)-1,refetchChatListData:_})},null==e?void 0:e._id)})),(null==H?void 0:H.length)==0?(0,o.jsxs)("div",{className:"w-full h-full flex justify-center items-center flex-col gap-3",children:[(0,o.jsx)("p",{className:"font-semibold text-[#4D4B5C] text-lg",children:"No Chat Found"}),(0,o.jsx)("p",{className:"text-[#6D5DE7] font-medium ",onClick:()=>{setChatIntoModalOpen(!0)},children:"How to Initiate Chat?"})]}):" "]})]})}var v=r(61472),b=r(73477),g=r(25326);function ChatV2(){let{selectedScreen:e,setSelectedScreen:a}=(0,m.Z)();(0,l.useEffect)(()=>{a("")},[]);let{state:r}=(0,l.useContext)(n.k),{rootRef:c,scale:u}=(0,g.O)("bottom-right");return(0,o.jsxs)("div",{children:[(0,o.jsx)("section",{className:"fixed bottom-0 right-5",children:(0,o.jsxs)("div",{className:"bg-white px-3 py-1.5 border flex item-center justify-center gap-2 rounded-t cursor-pointer shadow ",onClick:()=>{a("ChatList")},children:[(0,o.jsx)("p",{className:"text-lg font-semibold flex items-center",children:"Chats"}),(0,o.jsx)("p",{className:"flex items-center justify-center rounded-full p-2 hover:bg-[#5A5878]/10 duration-300 cursor-pointer focus:rounded-full rotate-180 ",children:(0,o.jsx)(d.p,{size:20,color:"#5A5878"})})]})}),(0,o.jsx)("section",{className:`w-[100vw] h-[100vh] fixed z-10 bottom-0 left-0 ${["ChatList","ChatRoom","InitiateChat"].includes(e)?"":"hidden"}`,onClick:()=>{a("")}}),(0,o.jsx)("section",{className:`fixed flex flex-col duration-500 ${["ChatList"].includes(e)?"bottom-[5px] w-[350px] ":"-bottom-[415px] smr:-bottom-[410px] custom1:w-[250px] w-[150px] hidden"} 2 h-[462px] 3 right-2 px-3 py-1.5 smr:w-[90vw] smr:right-0 z-20 bg-white drop-shadow-[0_0px_4px_rgba(0,0,0,0.10)] border border-black/15 rounded-md ${(null==r?void 0:r.currentlyShow)==="CANDIDATE_POPUP"?"hidden":""}`,children:(0,o.jsx)(ChatList,{})}),(0,o.jsx)("section",{className:`fixed flex flex-col duration-500 ${["ChatRoom"].includes(e)?"bottom-[5px] w-[350px]":"-bottom-[470px] smr:-bottom-[470px] w-[250px] hidden"} 4 h-[462px] 5 right-2 px-5 py-3 smr:w-[90vw] smr:right-0 z-[60] bg-white shadow-xl border border-black/15 rounded-md ${(null==r?void 0:r.currentlyShow)!=="CANDIDATE_POPUP"||["ChatRoom"].includes(e)?"":"hidden"}`,children:(0,o.jsx)(v.Z,{})}),(0,o.jsx)("section",{className:`fixed flex flex-col duration-500 ${["InitiateChat"].includes(e)?"bottom-[5px] w-[350px]":"-bottom-[470px] smr:-bottom-[470px] w-[250px] hidden"} 6 h-[462px] 7 right-2 px-5 py-3 smr:w-[90vw] smr:right-0 z-20 bg-white shadow-xl border border-black/15 rounded-md ${(null==r?void 0:r.currentlyShow)==="CANDIDATE_POPUP"?"hidden":""}`,children:(0,o.jsx)(b.Z,{})})]})}},71166:function(e,a,r){"use strict";r.d(a,{i:function(){return ChatMenuContextProvider},y:function(){return n}});var o=r(85893),l=r(67294);let n=(0,l.createContext)(),ChatMenuContextProvider=e=>{let{children:a}=e,[r,c]=(0,l.useState)(0),[d,u]=(0,l.useState)(!1),[x,h]=(0,l.useState)(!1),[m,f]=(0,l.useState)(!1),[p,j]=(0,l.useState)(""),[v,b]=(0,l.useState)(!1),[g,w]=(0,l.useState)(0),[N,C]=(0,l.useState)(null),[_,H]=(0,l.useState)(""),[y,V]=(0,l.useState)(!1),[k,A]=(0,l.useState)("Job"),[Z,T]=(0,l.useState)("Job Candidate"),[P,M]=(0,l.useState)(!1);return(0,o.jsx)(n.Provider,{value:{chatIsOpen:d,setChatIsOpen:u,selectedChatroom:x,setSelectedChatroom:h,selectedChatroomChange:p,setSelectedChatroomChange:j,chatIntoModalOpen:v,setChatIntoModalOpen:b,prevContainerHeight:g,setPrevContainerHeight:w,selectedJob:N,setSelectedJob:C,candName:_,setCandName:H,selectedChatroomWithDraft:m,setSelectedChatroomWithDraft:f,isDrawerOpen:y,setIsDrawerOpen:V,setJobTitle:A,jobTitle:k,selectedCandidateName:Z,setSelectedCandidateName:T,editingMode:P,setEditingMode:M},children:a})}},91277:function(e,a,r){"use strict";r.r(a);var o=r(85893),l=r(67294),n=r(9008),c=r.n(n),d=r(5152),u=r.n(d),x=r(124),h=r(37285),m=r(73343),f=r(11163);let p=u()(()=>Promise.all([r.e(1551),r.e(296),r.e(1228),r.e(7946),r.e(8716),r.e(7210),r.e(8264),r.e(7271),r.e(2186),r.e(6647),r.e(9464),r.e(4593),r.e(3596),r.e(2579),r.e(5631),r.e(910),r.e(4143),r.e(625),r.e(2027),r.e(1091),r.e(3906),r.e(83)]).then(r.bind(r,90083)),{loadableGenerated:{webpack:()=>[90083]},ssr:!1});a.default=()=>{let{data:e}=(0,h.Nf)({}),a=(0,f.useRouter)();return(0,l.useEffect)(()=>{(0,m.$8)()||a.push("/Auth/login"),e&&(null==e?void 0:e.account_status)==="restricted"&&a.push("/pending-review")},[e]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(c(),{children:[(0,o.jsx)("title",{children:"Talent Pool"}),(0,o.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:` 8 .zsiq_floatmain { 9 display: none !important; 10 } 11 `}})]}),(0,o.jsx)(p,{}),(0,o.jsx)(x.default,{})]})}},22105:function(e,a,r){"use strict";var o=r(85893),l=r(91444);r(30928),a.Z=(e,a)=>{switch(a){case"success":l.Am.success((0,o.jsxs)("div",{className:"Toastify__toast--success",children:[(0,o.jsx)("div",{className:"toast-bar bg-green-600"})," ",e]}),{closeButton:!1,className:"Toastify__toast--success"});break;case"error":l.Am.error((0,o.jsxs)("div",{className:"Toastify__toast--error",children:[(0,o.jsx)("div",{className:"toast-bar bg-red-600"})," ",e]}),{closeButton:!1,className:"Toastify__toast--error"});break;case"warning":l.Am.warning((0,o.jsxs)("div",{className:"Toastify__toast--warning",children:[(0,o.jsx)("div",{className:"toast-bar bg-[#FF8964]"}),e]}),{closeButton:!1,className:"Toastify__toast--warning"});break;case"info":l.Am.info((0,o.jsxs)("div",{className:"Toastify__toast--info",children:[(0,o.jsx)("div",{className:"toast-bar bg-[#6D5DE7]"}),e]}),{closeButton:!1,className:"Toastify__toast--info"});break;default:(0,l.Am)(e,{closeButton:!1,className:"custom-toast"})}}},9008:function(e,a,r){e.exports=r(90046)},32673:function(e,a,r){"use strict";r.d(a,{C:function(){return p}});var o=r(37183),l=r(67294),n=r(3492);let c=new Map([["bold",o.j.jsx(o.j.Fragment,{children:o.j.jsx("path",{d:"M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V2
1116a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"})})],["duotone",o.j.jsxs(o.j.Fragment,{children:[o.j.jsx("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"}),o.j.jsx("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"})]})],["fill",o.j.jsx(o.j.Fragment,{children:o.j.jsx("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"})})],["light",o.j.jsx(o.j.Fragment,{children:o.j.jsx("path",{d:"M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"})})],["regular",o.j.jsx(o.j.Fragment,{children:o.j.jsx("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"})})],["thin",o.j.jsx(o.j.Fragment,{children:o.j.jsx("path",{d:"M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"})})]]);var d=Object.defineProperty,u=Object.defineProperties,x=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,s=(e,a,r)=>a in e?d(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,t=(e,a)=>{for(var r in a||(a={}))m.call(a,r)&&s(e,r,a[r]);if(h)for(var r of h(a))f.call(a,r)&&s(e,r,a[r]);return e},i=(e,a)=>u(e,x(a));let p=(0,l.forwardRef)((e,a)=>o.j.jsx(n.Z,i(t({ref:a},e),{weights:c})));p.displayName="Copy"}},function(e){e.O(0,[8307,9972,158,3676,5314,476,9774,2888,179],function(){return e(e.s=67112)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.