PageSourceSearch

https://app.workwolf.com/_next/static/chunks/pages/business/verifications-91036007f02ca99f.js

js workwolf.com collected 2026-10-04 15:11:17 UTC 43,147 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d9aeb3cb-a8f1-47ea-94cd-b3113a6eb3f7",e._sentryDebugIdIdentifier="sentry-dbid-d9aeb3cb-a8f1-47ea-94cd-b3113a6eb3f7")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3283],{753:(e,t,l)=>{"use strict";l.d(t,{I:()=>i});var s=l(37876),a=l(86130),n=l(77452),r=l(49141);let i=e=>{let{label:t,options:l,value:i,onChange:d,errors:o,type:c,labelClassName:u,optionClassName:m,labelOnError:x=!0}=e;return(0,s.jsxs)("div",{className:"flex-1",children:[t&&(0,s.jsx)("label",{className:(0,r.cn)("text-sm mb-2 !p-0 font-medium",u),children:t}),(0,s.jsx)("div",{className:"flex gap-2 flex-wrap",children:l.map(e=>(0,s.jsx)(a.A,{id:"options-selector-".concat(t,"-").concat(e.label),checked:Array.isArray(i)?i.includes(e.value):i===e.value,value:e.value,onChange:()=>d(e.value),type:c,className:m,children:e.label},"options-selector-".concat(t,"-").concat(e.label)))}),o&&(0,s.jsx)(n.d,{errors:o,label:x?t:void 0})]})}},1462:(e,t,l)=>{"use strict";l.d(t,{A:()=>c});var s=l(37876),a=l(15039),n=l.n(a);l(14232);var r=l(13480),i=l(30694),d=l(75138),o=l(90164);let c=e=>{let{id:t,tipMessage:l,className:a,useDefaultTooltip:c=!1,icon:u,asHtml:m=!1}=e,x=(0,d.u)(e=>{var t;return null==e||null==(t=e.featureFlags)?void 0:t.REDESIGN}),p=null!=u?u:x?o.A.HelpCircle:r.MGr;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p,{"data-tooltip-id":t,"data-tooltip-content":m?void 0:l,"data-tooltip-html":m?l:void 0,className:n()("text-[1rem] hover:border-charcoal-light",a)}),c&&(0,s.jsx)(i.A,{id:t,render:e=>{let{content:t}=e;return(0,s.jsx)("div",{className:"text-xs",children:t})}})]})}},1504:(e,t,l)=>{"use strict";l.d(t,{b:()=>g});var s=l(37876),a=l(27459),n=l(32653),r=l(23154),i=l(30271),d=l(49141);let o=[10,20,30,50],c=e=>{let{table:t,totalLength:l,className:a,pageSizes:n=o,selectPortal:c=!0}=e,{pageIndex:u,pageSize:m}=t.getState().pagination,x=(u+1)*m,p=n.map(e=>({value:e,label:e.toString()})),f=p.some(e=>e.value===m);return(0,s.jsxs)("div",{className:(0,d.cn)("py-3 px-6 border-t border-gray-200 w-full flex items-center justify-between mt-auto flex-col gap-2 sm:gap-0 sm:flex-row",a),children:[f&&(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-sm font-medium text-gray-600",children:"Results per page"}),(0,s.jsx)(r.l,{options:p,value:m,onChange:e=>t.setPageSize(e),instanceId:"data-table-page-size-selector",searchable:!1,portal:c,className:"w-full max-w-[100px] gap-1.5"})]}),!!l&&(0,s.jsxs)("p",{className:"text-center text-gray-700 text-sm font-medium",children:["Showing ",x>l?l:x," of ",l]}),(0,s.jsx)(i.g,{table:t})]})};var u=l(90164),m=l(14232),x=l(96142),p=l(13825),f=l(30694),h=l(71227),v=l(45954);let g=e=>{var t;let{columns:l,data:r,pagination:i,className:o,sorting:g,emptyState:b,onRowClick:y,rowClassName:j,rowSelection:N,minWidth:w,virtualized:$,renderExpandedRow:C,children:S,onPaginationChange:A,paginationOptions:E,...I}=e,k="data-table-tooltip-".concat((0,m.useId)().replace(/:/g,"")),P=(0,m.useMemo)(()=>N?[{id:"row-selection",fraction:"30px",enableSorting:!1,header:e=>{let{table:t}=e;return(0,s.jsx)(x.A,{id:"row-selection-all",checked:t.getIsAllRowsSelected(),onChange:t.getToggleAllRowsSelectedHandler()})},cell:e=>{let{row:t}=e;return(0,s.jsx)(x.A,{id:"row-selection-".concat(t.id),checked:t.getIsSelected(),onChange:t.getToggleSelectedHandler()})}},...l]:l,[l,N]),O=(0,a.N4)({...I,columns:P,data:r,getCoreRowModel:(0,n.HT)(),getPaginationRowModel:i&&!I.manualPagination?(0,n.kW)():void 0,getSortedRowModel:g&&!I.manualSorting?(0,n.h5)():void 0,onPaginationChange:A?e=>{A("function"==typeof e?e(i):e)}:void 0,state:{pagination:i,sorting:g,rowSelection:null!=N?N:{}}}),R=P.map(e=>{var t,l,s;return null!=(s=null!=(l=null==e||null==(t=e.meta)?void 0:t.fraction)?l:e.fraction)?s:"1fr"}).join(" "),D=(0,m.useCallback)(e=>{let t="function"==typeof j?j(e.original):j,l=(0,s.jsx)("div",{"data-state":e.getIsSelected()&&"selected","data-table-id":"table-row",style:{gridTemplateColumns:R}
1,className:(0,d.cn)("grid border-b border-gray-200 min-h-[60px] sm:min-h-[72px] items-center transition-all group","hover:bg-gray-50",!!y&&"cursor-pointer",t),onClick:t=>{y&&t.target.closest("[data-table-id='table-row']")&&y(e.original)},children:e.getVisibleCells().map(e=>{var t,l,n;return(0,s.jsx)("div",{className:(0,d.cn)("px-4 sm:px-6 py-2 sm:py-3 text-sm text-gray-900 truncate",null==e||null==(n=e.column)||null==(l=n.columnDef)||null==(t=l.meta)?void 0:t.className),children:(0,a.Kv)(e.column.columnDef.cell,e.getContext())},e.id)})},C?void 0:e.id);return C?(0,s.jsxs)("div",{children:[l,C(e.original)]},e.id):l},[R,y,j,C]);return(0,s.jsxs)("div",{className:(0,d.cn)("w-full flex flex-col flex-1 overflow-hidden scroll-clean bg-white",!!w&&"overflow-auto",o),children:[(0,s.jsx)("header",{className:"border-y border-gray-200 bg-gray-50",style:{minWidth:w},children:O.getHeaderGroups().map(e=>(0,s.jsx)("div",{className:"grid",style:{gridTemplateColumns:R},children:e.headers.map(e=>{var t,l,n,r;let i=e.column.getCanSort()&&!!g,o=e.column.getIsSorted(),c=null==(t=e.column.columnDef.meta)?void 0:t.sortLabel,m="asc"===o?"lowest to highest":"highest to lowest",x=!1===o?c?"Sort by ".concat(c):"Sort by this column":c?"Sort by ".concat(c,", ").concat(m):"Sort ".concat(m);return(0,s.jsxs)("div",{"data-sortable":i||void 0,"data-sorted":i?o||"none":void 0,className:(0,d.cn)("px-4 sm:px-6 py-2 sm:py-3 text-left text-xs text-gray-600 font-medium transition-all group flex items-center",i&&"cursor-pointer hover:bg-gray-100 gap-2",null==(r=e.column)||null==(n=r.columnDef)||null==(l=n.meta)?void 0:l.headerClassName),onClick:()=>{i&&e.column.toggleSorting()},children:[e.isPlaceholder?null:(0,a.Kv)(e.column.columnDef.header,e.getContext()),i&&(!1===o?(0,s.jsx)(u.A.Sort2,{className:"transition-all text-gray-400 group-hover:text-gray-600 p-0.5 hover:bg-gray-200 rounded w-4 h-4 min-w-4 outline-none","data-tooltip-id":k,"data-tooltip-content":x}):(0,s.jsx)(u.A.Arrow2,{className:(0,d.cn)("transition-all text-gray-500 p-0.5 hover:bg-gray-200 rounded","opacity-100 w-4 h-4 min-w-4 outline-none","asc"===o?"rotate-90":"-rotate-90"),"data-tooltip-id":k,"data-tooltip-content":x}))]},e.id)})},e.id))}),(0,s.jsxs)("section",{className:"w-full flex-1 overflow-auto flex flex-col",style:{minWidth:w},children:[0===r.length&&(0,s.jsx)("div",{className:"flex-1 w-full h-full flex flex-col items-center justify-center p-6 gap-4",children:b?(0,s.jsxs)(s.Fragment,{children:[(null==b?void 0:b.imgSrc)&&(0,s.jsx)("img",{src:b.imgSrc,alt:"Empty state",className:"w-[150px] h-[120px] object-contain"}),(null==b?void 0:b.icon)&&(0,s.jsx)(h.M,{icon:b.icon}),(null==b?void 0:b.title)&&(0,s.jsx)("h5",{className:"text-sm font-medium text-gray-600 -mb-2",children:b.title}),(0,s.jsx)("p",{className:(0,d.cn)("text-sm text-gray-600",!(null==b?void 0:b.imgSrc)&&!(null==b?void 0:b.title)&&"py-4"),children:b.message}),(null==b?void 0:b.action)&&(0,s.jsx)(v.Ay,{...b.action})]}):(0,s.jsx)("p",{className:"text-sm text-gray-600",children:"No data"})}),$?(0,s.jsx)(p.t$,{children:e=>{let{width:t,height:l}=e;return(0,s.jsx)(p.B8,{width:t,height:l,rowCount:r.length,rowHeight:()=>{var e;return null!=(e=null==$?void 0:$.rowHeight)?e:60},className:"outline-none table-virtualized-container",rowRenderer:e=>{let{key:t,index:l,style:a}=e,n=O.getRowModel().rows[l];return(0,s.jsx)("div",{style:a,children:D(n)},t)}})}}):O.getRowModel().rows.map(D)]}),i&&(0,s.jsx)(c,{table:O,totalLength:null!=(t=null==I?void 0:I.rowCount)?t:r.length,className:(0,d.cn)(!!w&&"sticky left-0 bottom-0"),pageSizes:null==E?void 0:E.pageSizes,selectPortal:null==E?void 0:E.selectPortal}),S,(0,s.jsx)(f.A,{id:k})]})}},2827:(e,t,l)=>{"use strict";l.d(t,{Ay:()=>i});var s=l(68898),a=l(44501),n=l(14232),r=l(96299);l(16284),l(98477),l(97);var i=(0,n.forwardRef)(function(e,t){var l=(0,s.u)(e);return n.createElement(r.S,(0,a.A)({ref:t},l))})},3165:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/business/verifications",function(){return l(14152)}])},11133:(e,t,l)=>{"use strict";l.d(t,{O:()=>i});
1var s=l(37876),a=l(62867),n=l(74485),r=l(32717);let i=e=>{let{title:t,...l}=e,i=(0,r.A)(e=>{var t;return null==e||null==(t=e.company)?void 0:t.name}),d=(0,n.Yw)([t,null!=i?i:"Business","Workwolf"]," - ");return(0,s.jsx)(a.bV,{...l,title:d})}},14152:(e,t,l)=>{"use strict";l.r(t),l.d(t,{__N_SSP:()=>W,default:()=>q});var s=l(37876),a=l(11133),n=l(62603),r=l(32717),i=l(75563);let d=()=>{let e=(0,r.A)(e=>{var t;return null==e||null==(t=e.company)?void 0:t.companyId});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.A,{title:"Verifications"}),(0,s.jsx)("div",{className:"pt-2",children:(0,s.jsx)(i.A,{companyId:e,fetchIndirectShares:!0,showShared:!0})})]})};var o=l(90164),c=l(45954),u=l(48230),m=l.n(u),x=l(1504),p=l(83121),f=l(14232),h=l(74485),v=l(74359),g=l(48071),b=l(10553),y=l(75870),j=l(92848),N=l(84509),w=l(27212),$=l(96640),C=l(59514),S=l(49141),A=l(96142),E=l(45867),I=l(753),k=l(60996),P=l(78460);let O=e=>{let{show:t,setShow:l,appliedFilters:a,setAppliedFilters:n,data:r}=e,{toggleWidgetVisibility:i}=(0,k.T8)();(0,f.useEffect)(()=>{i(!t)},[t,i]);let[d,u]=(0,f.useState)(a);(0,f.useEffect)(()=>{t&&u(a)},[t]);let m=(0,f.useCallback)(()=>{JSON.stringify(a)!==JSON.stringify(d)&&n(d),l(!1)},[a,d,n,l]),x=(0,f.useCallback)(e=>{u(t=>({...t,[e]:[]}))},[]),p=(0,f.useCallback)(()=>{u({}),n({}),l(!1)},[n,l]),h=(0,f.useMemo)(()=>Array.from(new Set(r.map(e=>e.pipelineName).filter(Boolean))).map(e=>({label:e,value:e})),[r]),v=(0,f.useMemo)(()=>Array.from(new Set(r.flatMap(e=>{var t;return null==(t=e.credentials)?void 0:t.map(e=>e.type)}).filter(Boolean))).map(e=>({label:(0,E.$N)(e),value:e})),[r]);return(0,s.jsxs)(w.N,{children:[t&&(0,s.jsx)("div",{className:"fixed inset-0 w-full h-full z-30 cursor-pointer bg-black/40",onClick:()=>{m()}},"filters-sidebar-overlay"),t&&(0,s.jsxs)($.P.aside,{initial:{right:-410},animate:{right:0},exit:{right:-410},className:"fixed z-40 bottom-0 top-0 bg-white w-full max-w-[410px] h-svh flex flex-col",style:{boxShadow:"-2px 0px 4px -2px rgba(16, 24, 40, 0.06)"},children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-4 py-5 border-y border-gray-200",children:[(0,s.jsx)("h2",{className:"text-lg font-semiBold",children:"Filters"}),(0,s.jsx)(c.Ay,{id:"close-filters-button",variant:c.Ay.variant.BASIC,className:"p-2 border-none shadow-none",onClick:()=>l(!1),children:(0,s.jsx)(o.A.Close,{className:"w-6 h-6 text-gray-500"})})]}),(0,s.jsx)(C.bL,{className:"flex-1 overflow-y-auto px-4",type:"multiple",children:Object.entries({"Quick Filters":[{label:"Pending",value:"PENDING"},{label:"Completed",value:"COMPLETED"}],"Verification Type":v,Pipelines:h}).map(e=>{var t;let[l,a]=e,n=null!=(t=d[l])?t:[],r=n.length;return 0===a.length?null:(0,s.jsxs)(C.q7,{value:l,className:"overflow-hidden",children:[(0,s.jsxs)(C.l9,{className:(0,S.cn)("group outline-none w-full p-4 min-h-[68px] flex items-center justify-between","text-sm font-semiBold text-gray-900 border-b border-gray-200","transition-all hover:text-brand-600 data-[state=open]:border-white"),children:[(0,P.d)(l),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[!!r&&(0,s.jsxs)(c.Ay,{id:"clear-filter-field-".concat(l),variant:c.Ay.variant.PLAIN_MONOCHROME,className:"!text-sm !font-semiBold !text-gray-600",onClick:e=>{e.stopPropagation(),x(l)},children:["Clear (",r,")"]}),(0,s.jsx)(o.A.ChevronDown,{className:"w-5 h-5 group-data-[state=open]:rotate-180 transition-all"})]})]}),(0,s.jsx)(C.UC,{className:(0,S.cn)("data-[state=open]:animate-slideDown data-[state=closed]:animate-slideUp overflow-hidden","border-b border-white data-[state=open]:border-gray-200 px-4 pb-4"),children:"Quick Filters"===l?(0,s.jsx)(I.I,{options:a,value:n,onChange:e=>{u(t=>({...t,[l]:[e]}))}}):(0,s.jsx)("div",{className:"flex flex-col gap-3",children:a.map((e,t)=>(0,s.jsx)(A.A,{id:"automation-filter-".concat(l,"-").concat(t),checked:n.includes(e.value),onChange:()=>{let t=n.includes(e.value)?n.filter(t=>t!==e.value):[...n,e.value];u(e=>({...e,[l]:t}))},children:e.label},"automation-filter-".concat(l,"-").concat(t)))})})]},"filter-entry-".concat(l))})}),(0,s.jsxs)("div",{className:"p-6 flex items-center justify-between",children:[(0,s.jsx)(c.Ay,{id:"apply-filters-button",onClick:m,children:"Apply"}),(0,s.jsx)(c.Ay,{id:"clear-filters-button",variant:c.Ay.variant.BASIC,className:"border-none shadow-none",onClick:p,children:"Clear all"})]})]},"filters-sidebar-content")]})};var R=l(81255),D=l(73751),M=l(94730),T=l(89099),F=l(29423),L=l(71391),B=l(65837),G=l(4765),_=l(93430);let H=e=>{let{data:t,setShow:l}=e,{candidate:a}=t,n=(0,f.useRef)(null);(0,f.useEffect)(()=>{n.current&&n.current.scrollTo({top:0,behavior:"smooth"})},[t]);let r=(0,h.DX)(null==a?void 0:a.firstName,null==a?void 0:a.lastName),i=(0,f.useMemo)(()=>{var e;return null!=(e=null==t?void 0:t.credentials)?e:[]},[t]),d=(0,T.useRouter)(),{data:u}=(0,b.useSession)(),[m,x]=(0,f.useState)(!1),[p,g]=(0,f.useState)(!1),y=null==a?void 0:a.userId,w={name:r,userId:y,pipelineId:t.pipelineId,pipelineName:t.pipelineName},$=(0,f.useMemo)(()=>{let e=[],t=[];for(let l of i)["VERIFIED","VERIFIED_WITH_NOTES","SUCCESS","FAILED"].includes(l.status)?t.push(l):e.push(l);return[{title:"In Progress",value:"IN_PROGRESS",credentials:e},{title:"Completed",value:"COMPLETED",credentials:t}]},[i]),{data:A}=(0,v.I)({queryKey:["access-entry"],queryFn:()=>(0,L.P7)(y,{accessType:"VIEWER"}),enabled:!!u&&!!y}),{data:E}=(0,v.I)({queryKey:["access-request"],queryFn:()=>(0,B.vj)(y,{accessType:"VIEWER"}),enabled:!!u&&!!y}),{canView:I,hasRequestAccess:k,handleViewDWP:P}=(0,F.k)({accessEntries:null!=A?A:[],accessRequests:null!=E?E:[],indirectShares:[],accessGranted:!!t.accessGranted,userId:null==a?void 0:a.userId,onRequestAccess:()=>g(!0)});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"fixed z-50 animate-slideRightAndFade !top-0 !right-0 h-svh bg-white w-full max-w-[680px] shadow-lg overflow-hidden flex flex-col",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-gray-200",children:[(0,s.jsx)("h3",{children:"Verification Details"}),(0,s.jsx)(c.Ay,{id:"close-verifications-modal",variant:c.Ay.variant.ICON_ONLY,onClick:()=>l(!1),className:"p-2",children:(0,s.jsx)(o.A.X,{className:"w-5 h-5"})})]}),(0,s.jsxs)("div",{ref:n,className:"w-full flex-1 overflow-y-auto p-6",children:[(0,s.jsx)(R.N,{href:"/business/candidates/profile/".concat(null==a?void 0:a.userId),className:"font-semiBold text-gray-900 hover:underline",children:r}),(0,s.jsx)("p",{className:"text-sm text-gray-600 mt-2",children:null==a?void 0:a.email}),(0,s.jsx)("div",{className:"flex flex-col gap-8 mt-8",children:(0,s.jsx)(C.bL,{type:"multiple",defaultValue:["IN_PROGRESS","COMPLETED"],children:$.map(e=>e.credentials.length?(0,s.jsxs)(C.q7,{value:e.value,className:"group rounded-lg border border-gray-200",children:[(0,s.jsxs)(C.l9,{className:"w-full flex items-center justify-between py-5 px-6",children:[(0,s.jsxs)("p",{className:"flex items-center gap-2 text-base font-semiBold text-gray-900",children:[e.title,(0,s.jsx)(N.E,{children:e.credentials.length})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:["IN_PROGRESS"===e.value&&(0,s.jsx)(c.Ay,{id:"send-verification-message-button",variant:c.Ay.variant.BASIC,onClick:e=>{e.stopPropagation(),x(!0)},children:"Send Message"}),(0,s.jsx)(o.A.ChevronDown,{className:"w-6 h-6 group-data-[state=open]:rotate-180 transition-all"})]})]}),(0,s.jsx)(C.UC,{className:"data-[state=open]:animate-slideDown data-[state=closed]:animate-slideUp overflow-hidden",children:(0,s.jsx)("div",{className:"px-6 pb-6 flex flex-col gap-6",children:e.credentials.map((l,n)=>{let r=(0,D.KC)(l.status);return(0,s.jsxs)("div",{className:(0,S.cn)("p-6 rounded-lg bg-gray-50 flex items-center justify-between gap-4","COMPLETED"===e.value&&"bg-[transparent] border border-gray-200"),children:[(0,s.jsxs)("div",{className:"flex flex-col text-sm text-gray-600 gap-2.5",children:[(0,s.jsx)("p",{className:(0,S.cn)("font-medium","COMPLETED"===e.value&&"text-gray-900"),children:(0,D.rP)(l.type)}),!!(null==t?void 0:t.pipelineName)&&(0,s.jsx)("p",{children:t.pipelineName})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1",children:["IN_PROGRESS"===e.value?(0,s.jsx)(N.E,{color:j.ur[r],children:r}):(0,s.jsx)(c.Ay,{id:"verification-item-view-".concat(n),variant:I?c.Ay.variant.PLAIN_LINK:c.Ay.variant.PLAIN,onClick:P,disabled:k&&!I,disabledMessage:"Access Request Sent",children:I?"View":k?"Request Sent":"Request"}),(0,s.jsx)(M.X,{actions:[...(null==t?void 0:t.pipelineId)?[{label:"View in Pipeline",onClick:()=>d.push("/business/pipelines/".concat(t.pipelineId,"?candidate=").concat(null==a?void 0:a.userId))}]:[],{label:"View Order Details",onClick:()=>d.push("/order-details/".concat(t.orderId))}],children:(0,s.jsx)(c.Ay,{id:"verification-item-details-".concat(n),variant:c.Ay.variant.TERTIARY,className:"p-2",children:(0,s.jsx)(o.A.HorizontalDots,{})})})]})]},"verification-credential-".concat(l.verificationId))})})})]},"verification-group-".concat(e.value)):null)})})]})]}),m&&(0,s.jsx)(_.A,{zIndex:9999999,show:m,setShow:x,selected:[w]}),p&&(0,s.jsx)(G.W,{zIndex:9999999,candidate:a,show:!!p,setShow:g})]})};var K=l(43919);let V=()=>{var e;let{data:t}=(0,b.useSession)(),l=null==t||null==(e=t.user)?void 0:e.userId,a=(0,r.A)(e=>{var t;return null==e||null==(t=e.company)?void 0:t.companyId}),n=(0,v.I)({queryKey:["company-verifications-".concat(a)],queryFn:()=>(0,g.cr)(a),enabled:!!a&&!!l,staleTime:36e4}),[i,d]=(0,f.useState)(!1),[u,w]=(0,f.useState)({}),[$,C]=(0,f.useState)(""),[A,E]=(0,f.useState)([{id:"orderDate",desc:!0}]),[I,k]=(0,f.useState)(null),R=(0,f.useMemo)(()=>Object.keys(u).reduce((e,t)=>
1{var l,s;return e+(null!=(s=null==(l=u[t])?void 0:l.length)?s:0)},0),[u]),D=!!R||!!$.trim(),M=(0,f.useCallback)(e=>{var t,l,s,a;return(null!=(s=null==(t=e.credentials)?void 0:t.length)?s:0)===(null!=(a=null==(l=e.credentials)?void 0:l.filter(e=>"SUCCESS"===(e=>{switch(e){case"IN_PROGRESS":return"PROCESSING";case"AWAITING":return"AWAITING";case"NOT_VERIFIED":case"FAILED":case"VERIFIED_WITH_NOTES":case"VERIFIED":return"SUCCESS";default:return"N/A"}})(null==e?void 0:e.status)).length)?a:0)?"SUCCESS":"PROCESSING"},[]),T=(0,f.useMemo)(()=>{var e;let t=[];return null==n||null==(e=n.data)||e.map(e=>{var l;return null==e||null==(l=e.candidates)?void 0:l.map(l=>{t.push({...l,orderId:e.orderId,orderDate:e.orderDate,status:M(l)})})}),t},[null==n?void 0:n.data,M]),F=(0,f.useMemo)(()=>{var e,t,l;let s=null!=(t=u.Pipelines)?t:[],a=null!=(l=u["Verification Type"])?l:[],n=null==(e=u["Quick Filters"])?void 0:e[0];return T.filter(e=>{if(!n)return!0;let t=(0,j.a7)([e]);return"COMPLETED"===n?(0,j.cO)(t)===t.length:"PENDING"!==n||t.includes("IN_PROGRESS")}).filter(e=>{var t,l,s,a;let n=$.toLowerCase(),r=(0,h.DX)(null==e||null==(t=e.candidate)?void 0:t.firstName,null==e||null==(l=e.candidate)?void 0:l.lastName).toLowerCase(),i=(null!=(a=null==e||null==(s=e.candidate)?void 0:s.email)?a:"").toLowerCase();return r.includes(n)||i.includes(n)}).filter(e=>!s.length||!!e.pipelineName&&s.includes(e.pipelineName)).filter(e=>{var t,l;return!a.length||(null!=(l=null==(t=e.credentials)?void 0:t.map(e=>e.type))?l:[]).some(e=>a.includes(e))})},[u,$,T]),L=[{header:"Candidate Name",accessorKey:"candidate.firstName",cell:e=>{let{row:t}=e,l=t.original.candidate;return(0,h.DX)(null==l?void 0:l.firstName,null==l?void 0:l.lastName)}},{header:"Date Purchased",accessorKey:"orderDate",meta:{className:"text-gray-600 font-regular"},cell:e=>{let t=e.getValue();return t?(0,y.A)(new Date(t),"MM/dd/yyyy"):"N/A"}},{header:"Verifications",accessorKey:"candidate.credentials",meta:{className:"text-gray-600 font-regular"},sortingFn:(e,t)=>{let l=e.original,s=t.original,a=(0,j.a7)([l]),n=(0,j.a7)([s]),r=(0,j.CK)(a),i=(0,j.CK)(n);return r<i?-1:+(r>i)},cell:e=>{let{row:t}=e,l=t.original;if(!l.orderId)return"N/A";let a=(0,j.a7)([l]),n=(0,j.cO)(a),r=(0,j.CK)(a);return(0,s.jsxs)("span",{className:"flex items-center gap-3",children:[n,!!r&&(0,s.jsxs)(N.E,{color:N.E.color.ATTENTION,children:[r," Pending"]})]})}}],B=0===T.length,[G,_]=(0,f.useState)([]);return(0,f.useEffect)(()=>{var e,t;let l=(0,K.i7)();(null==l||null==(e=l.verificationCartItems)?void 0:e.length)&&((0,K.Dj)(),_(Array.from(new Set(null==(t=l.verificationCartItems)?void 0:t.map(e=>e.recipientId)))),setTimeout(()=>{_([])},5e3))},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:(0,S.cn)("flex-1 w-full flex flex-col overflow-hidden px-6",!!I&&"pr-0"),children:(0,s.jsxs)("div",{className:(0,S.cn)("flex-1 w-full bg-white flex flex-col overflow-hidden rounded-t-2xl transition-all",!!I&&"xl:pr-[680px]"),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-4 px-6 py-4",children:[(0,s.jsx)(p.A,{placeholder:"Search",iconLeft:o.A.Search3,className:"flex-1 max-w-[320px]",value:$,onChange:e=>C(e.target.value),disabled:B}),(0,s.jsxs)(c.Ay,{id:"verifications-table-filters",variant:c.Ay.variant.BASIC,className:"gap-2",onClick:()=>{I&&k(null),d(!0)},disabled:B,disabledMessage:"",children:[(0,s.jsx)(o.A.FiltersLines,{}),"Filters",!!R&&(0,s.jsx)(N.E,{children:R})]})]}),(0,s.jsx)("div",{className:"w-full flex-1 flex flex-col overflow-hidden",children:B?(0,s.jsxs)("div",{className:"w-full h-full flex flex-col items-center justify-center gap-4",children:[(0,s.jsx)("img",{src:"/assets/images/empty-verifications-state.svg",alt:"Empty state",className:"w-[150px] h-[120px] object-contain"}),(0,s.jsx)("p",{className:"text-sm text-gray-600",children:"No Verifications yet"}),(0,s.jsx)(m(),{passHref:!0,href:"/business/pipelines",children:(0,s.jsx)(c.Ay,{id:"go-to-pipelines",children:(0,P.d)("Go to Pipelines")})})]}):(0,s.jsx)(x.b,{data:F,columns:L,virtualized:{rowHeight:72},sorting:A,onSortingChange:E,emptyState:{imgSrc:"/assets/images/empty-verifications-state.svg",message:D?"No results found":"No Verifications yet"},onRowClick:e=>k(e),rowClassName:e=>{var t;return G.includes(null==e||null==(t=e.candidate)?void 0:t.userId)?"bg-gray-50":""}}
1)})]})}),(0,s.jsx)(O,{show:i,setShow:d,appliedFilters:u,setAppliedFilters:w,data:T}),!!I&&(0,s.jsx)(H,{show:!!I,setShow:e=>{e||k(null)},data:I})]})},z=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"p-6 pt-2",children:(0,s.jsxs)("div",{className:"w-full flex sm:items-center justify-between gap-4 flex-col md:flex-row",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("h2",{className:"text-2xl font-semiBold text-gray-900",children:"Verifications"}),(0,s.jsxs)("p",{className:"text-gray-600 text-sm",children:["All completed verifications may contain important details. Please review each for full insights. To update vendors or verifications packages please visit"," ",(0,s.jsx)(m(),{href:"/business/account-settings",className:"text-blue-600 font-semiBold",children:"Hiring Tools"})]})]}),(0,s.jsx)(m(),{passHref:!0,href:"/business/verifications/settings",children:(0,s.jsxs)(c.Ay,{id:"verifications-settings-button",variant:c.Ay.variant.BASIC,className:"gap-1.5",children:[(0,s.jsx)(o.A.Settings,{className:"w-5 h-5 text-[currentColor]"}),"Settings"]})})]})}),(0,s.jsx)(V,{})]});var U=l(52605),W=!0;let q=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.O,{title:"Verifications"}),(0,s.jsx)(U.H,{oldPage:(0,s.jsx)(d,{}),newPage:(0,s.jsx)(z,{})})]})},14295:(e,t,l)=>{"use strict";t.Ay=function(e,t,l){if((0,s.default)(e),l&&l.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some(function(t){return!!(a.hasOwnProperty(t)&&a[t].test(e))||!1});if(t in a)return a[t].test(e);if(!t||"any"===t){for(var n in a)if(a.hasOwnProperty(n)&&a[n].test(e))return!0;return!1}throw Error("Invalid locale '".concat(t,"'"))};var s=function(e){return e&&e.__esModule?e:{default:e}}(l(24115)),a={"am-AM":/^(\+?374|0)(33|4[134]|55|77|88|9[13-689])\d{6}$/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?([79][1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SD":/^((\+?249)|0)?(9[012369]|1[012])\d{7}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"ar-QA":/^(\+?974|0)?([3567]\d{7})$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|7|6|5|4)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7[1-9]\d{8}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|53|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"fr-CF":/^(\+?236| ?)(70|75|77|72|21|22)\d{6}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-MW":/^(\+?265|0)(((77|88|31|99|98|21)\d{7})|(((111)|1)\d{6})|(32000\d{4}))$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?0[79][567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}$/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-GT":/^(\+?502)?[2|6|7]\d{7}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"fr-WF":/^(\+681)?\d{6}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}
1$/,"ky-KG":/^(\+996\s?)?(22[0-9]|50[0-9]|55[0-9]|70[0-9]|75[0-9]|77[0-9]|880|990|995|996|997|998)\s?\d{3}\s?\d{3}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?([5-8]\d|45) ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+?244)?9\d{8}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"so-SO":/^(\+?252|0)((6[0-9])\d{7}|(7[1-9])\d{7})$/,"sq-AL":/^(\+355|0)6[2-9]\d{7}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38)?0(50|6[36-8]|7[357]|9[1-9])\d{7}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/,"mk-MK":/^(\+?389|0)?((?:2[2-9]\d{6}|(?:3[1-4]|4[2-8])\d{6}|500\d{5}|5[2-9]\d{6}|7[0-9][2-9]\d{5}|8[1-9]\d{6}|800\d{5}|8009\d{4}))$/};a["en-CA"]=a["en-US"],a["fr-CA"]=a["en-CA"],a["fr-BE"]=a["nl-BE"],a["zh-HK"]=a["en-HK"],a["zh-MO"]=a["en-MO"],a["ga-IE"]=a["en-IE"],a["fr-CH"]=a["de-CH"],a["it-CH"]=a["fr-CH"],Object.keys(a)},16155:(e,t,l)=>{"use strict";l.d(t,{SQ:()=>d,eL:()=>i,ng:()=>r});var s=l(37876),a=l(14232),n=l(95782);let r=(e,t)=>{let l=e.firstName+" "+e.lastName;return t.firstName+" "+t.lastName<l?1:-1},i=(e,t,l,s)=>Array.from(new Set(null==e?void 0:e.map(e=>t.map(t=>null==e?void 0:e[t]).filter(Boolean).join(s)))).filter(Boolean).map(a=>{let n=null==e?void 0:e.find(e=>t.map(t=>null==e?void 0:e[t]).filter(Boolean).join(s)===a);return{text:l.map(e=>n[e]).filter(Boolean).join(s),value:a}}),d=e=>{var t,l;let{dataType:r,selectedRows:i,setSelectedRows:d,allLength:o,handleGetAll:c}=e,u={selectedRowKeys:null!=(t=null==i?void 0:i.map(e=>null==e?void 0:e.key))?t:[],onSelect:(e,t,l)=>{p(l,t)},onSelectAll:(e,t,l)=>{let s=null!=i?i:[];p(e?[...s,...l]:s.filter(e=>!(null==l?void 0:l.some(t=>(null==t?void 0:t.id)===(null==e?void 0:e.id)))),e)}},m={selectedRowKeys:null!=(l=null==i?void 0:i.map(e=>null==e?void 0:e.key))?l:[],onSelect:(e,t,l)=>{p(l,t)},onSelectAll:(e,t,l)=>{let s=null!=i?i:[];p(e?[...s,...l]:s.filter(e=>!(null==l?void 0:l.some(t=>(null==t?void 0:t.userId)===(null==e?void 0:e.userId)))),e)}},x="CONTACT"===r?u:m,p=(e,t)=>{d((()=>{if(!t)return e.map((e,t)=>void 0===e&&(null==i?void 0:i[t])?i[t]:e).filter(Boolean);{let t=[...null!=i?i:[],...e.filter(Boolean)];return t.filter((e,l)=>"CONTACT"===r?t.findIndex(t=>(null==t?void 0:t.id)===(null==e?void 0:e.id))===l:t.findIndex(t=>(null==t?void 0:t.userId)===(null==e?void 0:e.userId))===l)}})())},f=(0,a.useMemo)(()=>({selectedRows:null!=i?i:[],setSelectedRows:d,customMessages:{selected:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("strong",{children:[null==i?void 0:i.length," ","CONTACT"===r?"Prospect":"Candidate",(null==i?void 0:i.length)===1?"":"s"]}),(null==i?void 0:i.length)===1?" is ":" are ","selected."]})},onSelectAll:async()=>{var e;let t=await c();d(null!=(e=null==t?void 0:t.map((e,t)=>({...e,key:(0,n.Rn)(e)})))?e:[])},allLength:o}),[i,d,r,o,c]);return{rowSelection:x,customRowSelection:f}}},24115:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null==e)throw TypeError("Expected a string but received a ".concat(e));if("String"!==e.constructor.name)throw TypeError("Expected a string but received a ".concat(e.constructor.name))},e.exports=t.default,e.exports.default=t.default},30271:(e,t,l)=>{"use strict";l.d(t,{L:()=>r,g:()=>i});var s=l(37876),a=l(90164),n=l(49141);let r=e=>{let{className:t,children:l,...a}=e;return(0,s.jsx)("button",{...a,className:(0,n.cn)("outline-none w-10 h-10 flex items-center justify-center text-sm font-medium text-gray-800","disabled:cursor-not-allowed disabled:hover:bg-[transparent] hover:bg-gray-50 transition-all",t),children:l})},i=e=>{let{table:t}=e,{pageIndex:l}=t.getState().pagination,i=t.getPageCount();return i<=1?null:(0,s.jsxs)("div",{className:"flex items-center h-10 overflow-hidden rounded-lg border border-gray-300",children:[(0,s.jsx)(r,{onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),className:"border-r border-gray-300",children:(0,s.jsx)(a.A.Arrow2,{className:"text-[currentColor]"})}),(()=>{let e=[];for(let t=0;t<i;t++){let s=0===t||t===i-1,a=t>=l-1&&t<=l+1;s||a?e.push(t):t!==l-1-1&&t!==l+1+1||e.includes("...")||e.push("...")}return e})().map((e,a)=>"number"==typeof e?(0,s.jsx)(r,{onClick:()=>t.setPageIndex(e),disabled:e===l,className:(0,n.cn)("border-r border-gray-300",e===l&&"bg-gray-50"),children:e+1},a):(0,s.jsx)(r,{disabled:!0,className:"cursor-default border-r border-gray-300 hover:bg-[transparent]",children:e},a)),(0,s.jsx)(r,{onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:(0,s.jsx)(a.A.Arrow2,{className:"text-[currentColor] rotate-180"})})]})}},40452:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});var s=l(9492),a=l(51772),n=l(28306);let r=s.YY.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[new a.k_({key:new a.hs("placeholder"),props:{decorations:({doc:e,selection:t})=>{let l=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:a}=t,r=[];if(!l)return null;let i=this.editor.isEmpty;return e.descendants((e,t)=>{let l=a>=t&&a<=t+e.nodeSize,d=!e.isLeaf&&(0,s.Op)(e);if((l||!this.options.showOnlyCurrent)&&d){let s=[this.options.emptyNodeClass];i&&s.push(this.options.emptyEditorClass);let a=n.NZ.node(t,t+e.nodeSize,{class:s.join(" "),"data-placeholder":"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:e,pos:t,hasAnchor:l}):this.options.placeholder});r.push(a)}return this.options.includeChildren}),n.zF.create(e,r)}}})]}})},46928:(e,t,l)=>{"use strict";l.d(t,{Q:()=>n});var s=l(37876),a=l(16258);let n=()=>(0,s.jsx)(a.A,{className:"w-5 h-5"})},52605:(e,t,l)=>{"use strict";l.d(t,{H:()=>r});var s=l(37876),a=l(14232),n=l(75138);let r=e=>{let{oldPage:t,newPage:l}=e,[r,i]=(0,a.useState)(!1),d=(0,n.u)(e=>e.featureFlags);return(0,a.useEffect)(()=>{i(null==d?void 0:d.REDESIGN)},[null==d?void 0:d.REDESIGN]),(0,s.jsx)(s.Fragment,{children:r?l:t})}},62603:(e,t,l)=>{"use strict";l.d(t,{A:()=>d,H:()=>u});var s=l(37876);l(14232);var a=l(20865),n=l(15039),r=l.n(n),i=l(30694);let d=e=>{let{title:t,children:l,className:a}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"mb-5",children:(0,s.jsxs)("div",{className:"flex flex-wrap ".concat(a),children:[(0,s.jsx)("div",{className:"sm:w-6/12",children:(0,s.jsx)("h2",{className:"font-semiBold",children:t})}),void 0!==l&&(0,s.jsx)(s.Fragment,{children:l})]})})})};var o=function(e){return e.DEFAULT="Default",e.LARGE="Large",e}(o||{});let c={Default:"",Large:"text-4xl"},u=e=>{let{title:t,size:l="Default",href:n,fallbackHref:d,children:o,className:u,toolTipData:m}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex flex-row items-center",children:[(0,s.jsx)(a.A,{href:n,fallbackHref:d}),(0,s.jsx)("div",{className:"h-6 px-0 mr-3 border-r-2 border-r-champagne-light"}),(0,s.jsxs)("div",{className:"flex flex-wrap ".concat(u),children:[(0,s.jsx)("div",{className:"sm:w-6/12",children:(0,s.jsx)("h2",{className:r()("font-semiBold",c[null!=l?l:"Default"]),"data-tip":!0,"data-tooltip-id":"".concat(t,"-tip"),children:t})}),void 0!==o&&(0,s.jsx)(s.Fragment,{children:o})]})]}),m&&(0,s.jsxs)(i.A,{id:"".concat(t,"-tip"),children:[" ",null!=m?m:t]}
1)]})};u.size=o},86130:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var s=l(37876),a=l(15039),n=l.n(a),r=l(90164);let i=l(14232).forwardRef((e,t)=>{let{id:l,children:a,className:i,type:d="radio",checked:o,hideCheckIcon:c=!1,...u}=e;return(0,s.jsxs)("label",{children:[(0,s.jsx)("input",{className:"h-0 w-0 hidden peer",id:l,type:d,checked:o,...u}),(0,s.jsxs)("label",{className:n()("flex transition-colors bg-white cursor-pointer border border-gray-300 text-gray-700 rounded-lg p-2 peer-checked:bg-brand-50 peer-checked:border-brand-700 hover:border-brand-700 peer-checked:text-brand-700 text-sm gap-2 items-center",i),htmlFor:l,children:[o&&!c&&(0,s.jsx)(r.A.Selected,{className:"w-4 !text-[currentColor] stroke-[0.5px] stroke-[currentColor]"}),a]})]})})},94730:(e,t,l)=>{"use strict";l.d(t,{X:()=>c});var s=l(37876),a=l(14232),n=l(68597),r=l(49141),i=l(30694),d=l(90164),o=l(15381);let c=e=>{let{actions:t,children:l,open:c,setOpen:u,withPortal:m=!0,className:x,align:p="end",lazyMount:f}=e,h="bg-white rounded-lg drop-shadow-md",v=(0,r.cn)("outline-none px-4 py-2.5 flex items-center gap-3 text-sm text-gray-700 font-medium","cursor-pointer transition-all hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"),g=m?n.ZL:a.Fragment,b=(0,o.U)("(max-width: 640px)"),[y,j]=(0,a.useState)(null),[N,w]=(0,a.useState)(!1),$=e=>{var t;return null==(t=e.subItems)?void 0:t.map(t=>{let l=()=>(0,s.jsxs)(s.Fragment,{children:[t.icon&&(0,s.jsx)(t.icon,{className:"w-4 h-4 text-[currentColor]"}),t.label]});return(0,s.jsx)(n.q7,{className:(0,r.cn)(v,t.disabled&&"pointer-events-none opacity-50 cursor-not-allowed"),onClick:t.disabled?void 0:t.onClick,disabled:t.disabled,"aria-disabled":t.disabled,children:(null==t?void 0:t.wrapper)?t.wrapper((0,s.jsx)(l,{})):(0,s.jsx)(l,{})},"extra-actions-".concat(e.label,"-").concat(t.label))})},C=null!=c?c:N;return f&&!C?(0,s.jsx)("span",{className:"contents",onClickCapture:()=>{w(!0),null==u||u(!0)},children:l}):(0,s.jsxs)(n.bL,{open:f?C:c,onOpenChange:e=>{e||j(null),w(e),null==u||u(e)},children:[(0,s.jsx)(n.l9,{asChild:!0,children:l}),(0,s.jsx)(g,{children:(0,s.jsxs)(n.UC,{id:"actions-popover-content",onCloseAutoFocus:e=>e.preventDefault(),className:(0,r.cn)(h,"min-w-[320px]",x),align:p,sideOffset:8,children:[t.map((e,t)=>{var l;if(e.separator)return(0,s.jsx)(n.wv,{className:"my-1 h-px bg-gray-100"},"separator-".concat(t));let i=(null==e?void 0:e.subContent)||!!(null==e||null==(l=e.subItems)?void 0:l.length),o="extra-actions-".concat(e.label),c=i?n.Pb:a.Fragment,u=i?n.ZP:n.q7;if(e.content)return(0,s.jsx)(c,{children:e.content},o);let m=()=>(0,s.jsxs)(s.Fragment,{children:[!!(null==e?void 0:e.icon)&&(0,s.jsx)(e.icon,{className:"w-4 h-4 text-gray-500"}),e.label]});if(b&&i){let t=y===o;return(0,s.jsxs)(a.Fragment,{children:[(0,s.jsxs)(n.q7,{className:(0,r.cn)(v,"justify-between",e.disabled&&"pointer-events-none opacity-50 cursor-not-allowed",e.className),disabled:e.disabled,onSelect:e=>e.preventDefault(),onClick:()=>j(t?null:o),children:[(0,s.jsx)("span",{className:"flex items-center gap-3",children:(0,s.jsx)(m,{})}),(0,s.jsx)(d.A.ChevronDown,{className:(0,r.cn)("w-4 h-4 text-gray-500 transition-transform",t&&"rotate-180")})]}),t&&(0,s.jsxs)("div",{className:"ml-4 border-l-2 border-gray-100",children:[e.subContent,$(e)]})]},o)}return(0,s.jsxs)(c,{children:[(0,s.jsx)(u,{className:(0,r.cn)(v,e.disabled&&"pointer-events-none opacity-50 cursor-not-allowed",e.tooltip&&"pointer-events-auto",e.className),onClick:e.disabled?void 0:e.onClick,disabled:e.disabled,"aria-disabled":e.disabled,"data-tooltip-id":"action-popover-tooltip","data-tooltip-content":e.tooltip,"data-tooltip-place":"bottom","data-tooltip-hidden":!e.tooltip,children:!i&&e.wrapper?e.wrapper((0,s.jsx)(m,{})):(0,s.jsx)(m,{})}),i&&(0,s.jsx)(g,{children:(0,s.jsxs)(n.G5,{sideOffset:4,collisionPadding:8,className:h,children:[e.subContent,$(e)]})})]},o)}),t.some(e=>!!e.tooltip)&&(0,s.jsx)(i.A,{id:"action-popover-tooltip"})]})})]})}},95077:(e,t,l)=>{"use strict";l.d(t,{ju:()=>i,v7:()=>r});var s=l(89099),a=l(14232),n=l(74485);let r=(e,t)=>{let l="workwolf:storage-filters:".concat(e),[r,i]=(0,a.useState)({}),d=(0,s.useRouter)(),o=(0,a.useCallback)(()=>{let e=JSON.stringify(t);(0,n.eb)(l,e)},[t,l]),c=(0,a.useCallback)(()=>{let e=(0,n.up)(l);e&&i(JSON.parse(e))},[l]);return(0,a.useEffect)(()=>{l&&c()},[c,l]),(0,a.useEffect)(()=>
1{if(l)return d.events.on("routeChangeStart",o),window.addEventListener("beforeunload",o),()=>{d.events.off("routeChangeStart",o),window.removeEventListener("beforeunload",o)}},[d.events,o,l]),{variables:r}},i=(e,t,l)=>{let r="workwolf:storage-filters:".concat(e,"-").concat(t),[i,d]=(0,a.useState)({}),[o,c]=(0,a.useState)(!1),u=(0,s.useRouter)(),m=(0,a.useCallback)(()=>{let e=JSON.stringify(l);(0,n.eb)(r,e)},[l,r]),x=(0,a.useCallback)(()=>{c(!1);let e=(0,n.up)(r);e&&d(JSON.parse(e)),setTimeout(()=>{c(!0)},100)},[r]);return(0,a.useEffect)(()=>{t&&x()},[t,x]),(0,a.useEffect)(()=>{if(t)return u.events.on("routeChangeStart",m),window.addEventListener("beforeunload",m),()=>{u.events.off("routeChangeStart",m),window.removeEventListener("beforeunload",m)}},[t,u.events,m]),{variables:i,saveCurrentState:m,isSet:o}}}},e=>{e.O(0,[956,6361,5352,1852,8992,3294,3825,9514,8597,9e3,4620,3459,7101,3e3,9878,7459,3095,2196,2312,3154,7238,9317,329,46,8699,5563,636,6593,8792],()=>e(e.s=3165)),_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.