PageSourceSearch

https://www.infinyte.club/app/_next/static/chunks/3096-b0c0d80fb5f66aa0.js

js infinyte.club collected 2026-09-25 02:42:35 UTC 14,741 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3096],{93096:function(e,n,t){t.r(n),t.d(n,{default:function(){return L}});var r=t(16835),o=t(67294),a=t(41248),s=t(11163),i=t(41664),l=t(25675),c=t(85893),u=function(e){var n=e.handleViewProfileClick,t=e.isNavBar,r=void 0!==t&&t,o=e.customStyles,s=e.profileImageUrl,i=(0,a.v9)((function(e){return e.rootReducer.selectedExperience.selectedExperience})).company.charAt(0).toUpperCase();return(0,c.jsx)("div",{className:"relative md:mr-0 ".concat(r&&"-mt-[34px]"," mt-[-12px] flex w-full flex-col items-end justify-center md:mt-0 "),children:(0,c.jsx)("div",{className:"-mt-8 mr-5 flex h-10 w-10 cursor-pointer items-center justify-center rounded-full  bg-gray-700 text-xl font-medium text-white md:mt-0 md:mr-8 md:h-12 md:w-12 ".concat(o),onClick:function(e){e.stopPropagation(),n()},children:s?(0,c.jsx)("img",{alt:"Profile Picture",src:s,className:"h-full w-full rounded-full object-cover"}):(0,c.jsx)(c.Fragment,{children:i})})})},d=t(81401),m=t(16397),p=t(44332),f=t(64914),x=t(26649),y=t(46494),v=t(59532),h=t(3968),g=t(38124),b=t(79647),E=t(43339),I=t(56806),D=t(37351),w=t(6590),G=t(79748),j=t(79675),C=t(20017),k=t(13300),N=function(e){var n=e.array,t=e.currentPath,r=e.onClickMenuItems,a=(0,o.useRef)(null),s=(0,o.useState)(!1),l=s[0],u=s[1];return(0,C.Z)(a,(function(){return u(!1)})),(0,c.jsx)("div",{className:"relative",ref:a,children:(0,c.jsxs)("div",{className:" bg-black01",children:[l&&(0,c.jsx)("div",{className:"absolute top-[70px] block  w-full border-t-[1px] border-t-white bg-black01",children:n.map((function(e){return(0,c.jsx)(i.default,{href:"/".concat(e.path),children:(0,c.jsx)("a",{className:"block py-3 pl-5 text-sm  leading-6 hover:bg-primaryGreen hover:text-black01 ".concat(t===e.path?"bg-primaryGreen font-bold text-black01":"font-normal text-grey17 opacity-80"),onClick:function(){return r(e.event)},children:e.label})},e.label)}))}),(0,c.jsx)("div",{className:"absolute top-0 left-0 mt-[30px] ml-2 block h-1 w-1 cursor-pointer pl-5 md:hidden",onClick:function(){return u(!l)},children:(0,c.jsx)(k.om,{})})]})})},R=t(38059),S=t(97749),Z=t(95929),P=function(e){var n=e.onclickHandle,t=e.customLabelStyle,r=e.customIcon,o=e.label;return(0,c.jsxs)("div",{className:"relative flex cursor-pointer",onClick:n,children:[(0,c.jsx)(l.default,{src:r||"/app/assets/icons/BellIcon.svg",height:30,width:30,alt:"Notification Icon"}),(0,c.jsx)("div",{className:"absolute -top-1.5 -right-1.5 ".concat(o?"flex":"hidden","  h-4 w-5 items-center justify-center rounded-full bg-coralPink py-px px-1 text-center text-[10px] leading-[14px] text-white ").concat(t,"\n        "),children:o})]})},q=t(93633),O=t(58601),L=function(e){var n,t,k,L,A=e.currentPath,$=e.name,_=e.role,M=e.isEmployeeView,U=void 0!==M&&M,B=e.customNavbarStyles,V=e.customNavbarLogoStyles,T=e.customProfileStyles,F=e.customNavbartextStyle,X=e.customPopoverStyles,z=e.customNotificationIcon,K=e.fullPageScroll,Q=(0,o.useRef)(null),Y=(0,o.useState)(!1),H=Y[0],W=Y[1];(0,C.Z)(Q,H&&!document.getElementById("spreadsheet-container")?function(){return W(!1)}:function(){return null});var J=(0,s.useRouter)(),ee=(0,E.TL)(),ne=(0,Z.Z)().clearAllReducers,te=(0,R.Z)(),re=te.companies,oe=te.employeeRecords,ae=(0,f.ZX)().data,se=(0,f._y)(),ie=(0,r.Z)(se,2),le=ie[0],ce=ie[1],ue=ce.data,de=ce.error,me=ce.isLoading,pe=(0,a.v9)((function(e){return e.rootReducer.selectedExperience.selectedExperience})),fe=(0,j.Gw)(),xe=(0,r.Z)(fe,2),ye=xe[0],ve=xe[1].data,he=null===ae||void 0===ae||null===(n=ae.ownersUserProfile)||void 0===n?void 0:n.avatarUrl,ge=null===re||void 0===re?void 0:re.find((function(e){return e.companyId===pe.companyId&&e.role.some((function(e){return pe.role.includes(e)}))})),be=J.asPath!==S.Z.myEsops&&!(null===oe||void 0===oe||!oe.length),Ee=J.asPath!==S.Z.myProfile;(0,o.useEffect)((function(){ue&&((0,b.y)(!0),ne())}),[ne,ue]),de&&(0,O.Z)(p.F.ERROR,(0,I.I)("errors.somethingWrong"));var Ie=function(e){(0,D.t7)(w.R5[e],{})};return(0,o.useEffect)((function(){U||ye({id:pe.companyId})}),[ye,U,pe.companyId]),(0,c.jsxs)("div",{className:"z-50 flex h-[80px] w-full flex-col bg-black01 sm:h-[70px] md:flex-row md:items-center ".concat(B," ").concat(K?"":"fixed top-0"),children:[!U&&(0,c.jsx)(N,{array:m.C
1I,currentPath:A,onClickMenuItems:Ie}),(0,c.jsx)("p",{className:"cursor-pointer select-none text-[32px] font-extrabold leading-[46px] text-primaryGreen md:ml-8 ".concat(U?V:"mt-[14px] self-center md:mt-0"),onClick:function(){return pe.role.includes(G.vX.RoleEmployee)?J.push(S.Z.myEsops):J.push(S.Z.dashboard)},children:(0,I.I)("title")}),(0,c.jsx)("div",{className:"mt-1.5 ml-8 hidden sm:ml-[90px] sm:mt-0 md:block",children:!U&&m.CI.map((function(e){return(0,c.jsx)(i.default,{href:"/".concat(e.path),prefetch:!1,children:(0,c.jsx)("a",{className:"mr-8 text-base  leading-6 sm:mr-12 ".concat(A===e.path?"font-bold text-white":"font-normal text-grey17 opacity-80"),onClick:function(){return Ie(e.event)},children:e.label})},e.label)}))}),(0,c.jsxs)("div",{className:"absolute right-[80px] flex h-[80px] items-center gap-9 sm:right-[106px] sm:h-[70px]",children:[(0,c.jsx)("div",{children:!U&&(0,c.jsx)(q.Z,{to:[m.Gm.PermissionCreateCompanyGrants,m.Gm.PermissionSendEsopGrantForApproval,m.Gm.PermissionSignCompanyGrant,m.Gm.PermissionApproveEsopGrant],children:(0,c.jsx)(P,{onclickHandle:function(){J.push(S.Z.notifications)},customIcon:z,label:(null!==(t=null===ve||void 0===ve?void 0:ve.signGrant.totalCount)&&void 0!==t?t:0)+(null!==(k=null===ve||void 0===ve?void 0:ve.uploadGrantLetter.totalCount)&&void 0!==k?k:0)+(null!==(L=null===ve||void 0===ve?void 0:ve.exerciseEvents.totalCount)&&void 0!==L?L:0)})})}),(0,c.jsxs)("div",{className:" md:flex md:flex-col ".concat(U?"items-end":"hidden"," ").concat(F),children:[(0,c.jsx)("p",{className:"text-base font-normal text-white",children:U?$:null===ge||void 0===ge?void 0:ge.company}),(0,c.jsx)("p",{className:"self-end text-xs font-normal text-grey10",children:U?_:(0,I.I)("profile.".concat(null===ge||void 0===ge?void 0:ge.role[0]))})]})]}),(0,c.jsxs)("div",{className:"right-0 flex md:absolute",ref:Q,children:[(0,c.jsx)(u,{profileImageUrl:he,handleViewProfileClick:function(){(0,D.t7)(w.R5.NAVBAR_PROFILE_ICON_CLICKED,{}),J.pathname===S.Z.createGrant&&document.getElementById("spreadsheet-container")?J.push(S.Z.grants):W((function(e){return!e}))},isNavBar:!U,customStyles:"".concat(T)}),!(J.asPath===S.Z.createGrant&&document.getElementById("spreadsheet-container"))&&(0,c.jsx)(d.Z,{body:(0,c.jsxs)("div",{className:"flex h-fit w-[196px]  flex-col font-normal",children:[!(null===re||void 0===re||!re.length)&&(0,c.jsx)(i.default,{href:S.Z.dashboard,prefetch:!1,children:(0,c.jsxs)("div",{className:"border-b border-slate-100 px-[15px] py-[18px]",children:[(0,c.jsx)("div",{className:"pb-2",children:(0,I.I)("profile.companies")}),(0,c.jsx)("div",{className:"flex flex-col items-start rounded-md max-h-[65vh] overflow-y-auto",children:null===re||void 0===re?void 0:re.map((function(e,n){return(0,c.jsxs)("div",{className:"flex w-full cursor-pointer items-center rounded-[5px] p-2 ".concat(U?"hover:bg-seaShell":pe.companyId===e.companyId&&pe.role.every((function(n){return e.role.includes(n)}))&&"bg-seaShell"),onClick:function(){return function(e,n,t){(0,D.t7)(w.R5.NAVBAR_COMPANY_SELECTED,{companyName:t});var r=null===re||void 0===re?void 0:re.find((function(t){return t.companyId===e&&t.role.some((function(e){return n.includes(e)}))}));U?(ee((0,x.cG)(r)),ee((0,v.GV)()),(0,y.r8)(r),J.replace(S.Z.dashboard)):e!==pe.companyId&&(J.replace(S.Z.dashboard),ee((0,x.cG)(r)),ee((0,h.q5)()),ee((0,g.tw)()),(0,y.r8)(r)),W(!1)}(e.companyId,e.role,e.company)},children:[(0,c.jsx)("div",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-gray-200",children:e.company.charAt(0).toUpperCase()}),(0,c.jsx)("div",{className:"w-[84%] truncate p-1 text-base",children:e.company},n)]},n)}))})]})}),be&&(0,c.jsx)(i.default,{href:S.Z.myEsops,prefetch:!1,children:(0,c.jsxs)("div",{className:"flex cursor-pointer justify-between border-b border-slate-100 px-[15px] py-4 text-base",onClick:function(){(0,D.t7)(w.R5.NAVBAR_VIEW_MY_ESOPS_SELECTED,{}),oe&&(J.replace(S.Z.myEsops),ee((0,x.cG)(oe[0])),(0,y.r8)(oe[0]))},children:[(0,I.I)("profile.viewEsops"),(0,c.jsx)(l.default,{src:"/app/assets/icons/RightArrowDark.svg",height:18,width:18,alt:"Right Arrow"})]})}),Ee&&(0,c.jsx)(i.default,{href:S.Z.myProfile,prefetch:!1,children:(0,c.jsxs)("div",{className:"flex cursor-pointer justify-between border-b border-slate-100 px-[15px] py-4 text-base",onClick:function(){(0,D.t7)(w.R5.NAVBAR_VIEW_MY_PROFILE_SELECTED,{}),J.push(S.Z.myProfile)},children:[(0,I.I)("profile.myProfile"),(0,c.jsx)(l.default,{src:"/app/assets/icons/RightArrowDark.svg",height:18,width:18,alt:"Right Arrow"})]})}),(0,c.jsxs)("div",{className:"flex cursor-pointer items-center px-[15px] py-4",onClick:function(){le(),me||(0,D.t7)(w.R5.NAVBAR_LOGOUT_SELECTED,{})},children:[(0,c.jsx)(l.default,{src:"/app/assets/icons/LeftIcon.svg",height:14,width:14,alt:"Left Icon"}),(0,c.jsx)("div",{className:"pl-3 text-base",children:(0,I.I)("profile.logOut")})]})]}),alignRight:!1,visibility:H,innerClass:"right-9 shadow-5xl rounded-b-[6px] rounded-tl-[6px] rounded-tr-[0px] md:!top-[75px] top-9 !z-50 ".concat(X),customStyle:" rounded-b-[6px] rounded-tl-[6px] rounded-tr-[0px] "})]})]})}},56395:function(e,n,t){t.d(n,{Y_:function(){return R},mZ:function(){return j},$J:function(){return G},Ne:function(){return k},mn:function(){return S},EG:function(){return N},cH:function(){return C}});var r,o,a,s,i,l,c,u,d=t(48281),m=t(9722),p=t(18756),f=t(71383),x=t(28687),y=(0,x.gql)(r||(r=(0,f.Z)(["\n  mutation GenerateUploadOwnGrantDocSignedUrl($companyID: ID!) {\n    generateUploadOwnSourcedGrantDocumentSignedUrl(companyID: $companyID) {\n      objectKey\n      url\n    }\n  }\n"]))),v=(0,x.gql)(o||(o=(0,f.Z)(["\n  mutation ExtractGrantData(\n    $companyID: ID!\n    $input: [ExtractGrantDataInput!]!\n  ) {\n    extractGrantData(companyID: $companyID, input: $input) {\n      objectKey\n      requestId\n    }\n  }\n"]))),h=(0,x.gql)(a||(a=(0,f.Z)(["\n  query GrantDataExtractionRequest($id: ID!, $companyID: ID!) {\n    grantDataExtractionRequest(id: $id, companyID: $companyID) {\n      companyID\n      id\n      objectKey\n      response {\n        cliffDuration\n        exercisePrice\n        grantedOptionsCount\n        vestingDuration\n        vestingFrequency\n        vestingStartDate\n        yearlyVestingPercentage\n      }\n      status\n      userID\n    }\n  }\n"]))),g=(0,x.gql)(s||(s=(0,f.Z)(["\n  query CompaniesMaskedData {\n    companiesMaskedData {\n      name\n      iconUrl\n      companyID\n      website\n      status\n    }\n  }\n"]))),b=(0,x.gql)(i||(i=(0,f.Z)(["\n  query sourcedEmployees {\n    ownSourcedEmployers {\n      companyID\n      name\n      status\n      iconUrl\n    }\n  }\n"]))),E=(0,x.gql)(l||(l=(0,f.Z)(["\n  mutation bulkCreateOwnSourcedEsopGrants(\n    $companyID: ID!\n    $input: BulkCreateOwnSourcedEsopGrantsRequest!\n  ) {\n    bulkCreateOwnSourcedEsopGrants(companyID: $companyID, input: $input) {\n      validationErrors {\n        error\n        field\n        message\n      }\n      companyGrantID\n      grant {\n        id\n      }\n      status\n    }\n  }\n"]))),I=(0,x.gql)(c||(c=(0,f.Z)(["\n  mutation bulkLinkOwnSourcedEsopGrantDocuments(\n    $companyID: ID!\n    $input: [BulkLinkOwnSourcedEsopGrantDocumentsInput!]!\n  ) {\n    bulkLinkOwnSourcedEsopGrantDocuments(companyID: $companyID, input: $input)\n  }\n"]))),D=(0,x.gql)(u||(u=(0,f.Z)(["\n  mutation NextCompanyGrantId($companyId: ID!) {\n    nextCompanyGrantId(companyId: $companyId)\n  }\n"]))),w=p.ZP.injectEndpoints({endpoints:function(e){return{generateUploadOwnEsopGrantDocsignedUrl:e.mutation({query:function(e){return{document:y,variables:e}},transformResponse:function(e){return e}}),extractGrantData:e.mutation({query:function(e){return{document:v,variables:e}},transformResponse:function(e){return e.extractGrantData}}),grantDataExtractionRequest:e.query({query:function(e){return{document:h,variables:e}},transformResponse:function(e){return e.grantDataExtractionRequest}}),getCompaniesMaskedData:e.query({query:function(e){return{document:g,variables:e}},providesTags:[d.u.Cache],transformResponse:function(e){return e}}),getSourcedEmployers:e.query({query:function(e){return{document:b,variables:e}},providesTags:[d.u.Cache],transformResponse:function(e){return e}}),bulkCreateOwnSourcedEsopGrants:e.mutation({query:function(e){return{document:E,variables:e}},transformResponse:function(e){return e.bulkCreateOwnSourcedEsopGrants},invalidatesTags:function(e){return null!==e&&void 0!==e&&e.every((function(e){return e.status===m.oo.SUCCESS}))?[d.u.Cache]:[]}}),bulkLinkOwnEsopGrantDocuments:e.mutation({query:function(e){return{document:I,variables:e}},transformResponse:function(e){return e.bulkLinkOwnEsopGrantDocuments}}),getOwnEsopsNextGrantId:e.mutation({query:function(e){return{document:D,variables:e}},transformResponse:function(e){return e}})}}}),G=w.useGenerateUploadOwnEsopGrantDocsignedUrlMutation,j=w.useExtractGrantDataMutation,C=w.useLazyGrantDataExtractionRequestQuery,k=w.useGetCompaniesMaskedDataQuery,N=(w.useLazyGetCompaniesMaskedDataQuery,w.useGetSourcedEmployersQuery),R=w.useBulkCreateOwnSourcedEsopGrantsMutation,S=(w.useBulkLinkOwnEsopGrantDocumentsMutation,w.useGetOwnEsopsNextGrantIdMutation)}
1,38059:function(e,n,t){var r=t(27812),o=t(67294),a=t(79748),s=t(64914),i=t(46494),l=t(39368),c=t(56395),u=t(16397);n.Z=function(){var e=(0,s.Ej)(),n=e.data,t=e.isLoading,d=(0,c.EG)().data,m=(null===n||void 0===n?void 0:n.userCompanyRoles)&&(0,i.EA)(null===n||void 0===n?void 0:n.userCompanyRoles.companies),p=(0,l.mL)(null===n||void 0===n?void 0:n.userCompanyRoles.user.firstName,null===n||void 0===n?void 0:n.userCompanyRoles.user.lastName,null===n||void 0===n?void 0:n.userCompanyRoles.user.middleName),f=(0,o.useMemo)((function(){return null===m||void 0===m?void 0:m.filter((function(e){return!e.role.includes(a.vX.RoleEmployee)}))}),[m]),x=(0,o.useMemo)((function(){var e;return null===d||void 0===d||null===(e=d.ownSourcedEmployers)||void 0===e?void 0:e.map((function(e){return{company:e.name,companyId:e.companyID,role:[a.vX.RoleEmployee],permissions:[u.Gm.PermissionGlobal]}}))}),[null===d||void 0===d?void 0:d.ownSourcedEmployers]);return{adminName:p,companies:f,employeeRecords:(0,o.useMemo)((function(){var e,n=null!==(e=null===m||void 0===m?void 0:m.filter((function(e){return e.role.includes(a.vX.RoleEmployee)})))&&void 0!==e?e:[],t=null!==x&&void 0!==x?x:[];return[].concat((0,r.Z)(n),(0,r.Z)(t))}),[x,m]),isLoading:t,sourcedEmployers:d}}}}]);
2//# sourceMappingURL=3096-b0c0d80fb5f66aa0.js.map

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.