PageSourceSearch

https://www.infinyte.club/app/_next/static/chunks/3379.08d2d2aedac8681a.js

js infinyte.club collected 2026-10-02 14:50:57 UTC 11,736 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="93225417-d7df-4b6c-8d48-fb626a6186e0",e._sentryDebugIdIdentifier="sentry-dbid-93225417-d7df-4b6c-8d48-fb626a6186e0")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3379],{93379:(e,n,t)=>{t.r(n),t.d(n,{default:()=>ee});var r,a,o,s=t(18847),c=t.n(s),i=t(54587),l=t.n(i),u=t(5857),p=t(24395),d=t(42969),m=t(45794),g=t(31777),f=t(14232),y=t(14412),h=t(94556),D=t(26700),v=t(18791),x=t(32228),b=t(48789),I=t(47919);let A=(0,b.gql)(r||(r=(0,x.A)(["\n  ","\n  ","\n  ","\n  ","\n  query getEsopGrantsPendingDocumentUpload($companyID: ID!) {\n    esopGrantsPendingDocumentUpload(companyID: $companyID) {\n      id\n      companyGrantId\n      status\n      grantDate\n      vestingStartDate\n      vestingFrequency\n      grantedOptionsCount\n      cliffDuration\n      vestingDuration\n      vestingDescription\n      cliffPercentage\n      yearlyVestingPercentage\n      exercisePrice\n      valueAtGrant\n      vestingEventTiming\n      employeeSignedAt\n      sharePriceAtGrant\n      vestingSchedule {\n        id\n        name\n        vestingDate\n        vestedUnits\n      }\n      employee {\n        ...EmployeeDetails\n      }\n      esopScheme {\n        ...EsopSchemeDetails\n      }\n      exerciseWindow {\n        ...ExerciseWindow\n      }\n      documents {\n        ...DocumentDetails\n        status\n        approvalStatus\n      }\n      documentsPendingApproval {\n        ...DocumentDetails\n        status\n        approvalStatus\n      }\n    }\n  }\n"])),I.aG,I.IP,I.q,I.RO),O=(0,b.gql)(a||(a=(0,x.A)(["\n  ","\n  ","\n  ","\n  ","\n  query getEsopGrantsPendingDocumentApproval($companyID: ID!) {\n    esopGrantsPendingDocumentApproval(companyID: $companyID) {\n      id\n      companyGrantId\n      status\n      grantDate\n      vestingStartDate\n      vestingFrequency\n      grantedOptionsCount\n      cliffDuration\n      vestingDuration\n      vestingDescription\n      cliffPercentage\n      yearlyVestingPercentage\n      exercisePrice\n      valueAtGrant\n      vestingEventTiming\n      employeeSignedAt\n      sharePriceAtGrant\n      vestingSchedule {\n        id\n        name\n        vestingDate\n        vestedUnits\n      }\n      employee {\n        ...EmployeeDetails\n      }\n      esopScheme {\n        ...EsopSchemeDetails\n      }\n      exerciseWindow {\n        ...ExerciseWindow\n      }\n      documents {\n        ...DocumentDetails\n        status\n        approvalStatus\n      }\n      documentsPendingApproval {\n        ...DocumentDetails\n        status\n        approvalStatus\n        companyDocumentId\n      }\n    }\n  }\n"])),I.aG,I.IP,I.q,I.RO),E=(0,b.gql)(o||(o=(0,x.A)(["\n  mutation bulkApproveEsopGrantDocuments(\n    $companyID: ID!\n    $companyDocumentIDs: [ID!]!\n  ) {\n    bulkApproveEsopGrantDocuments(\n      companyID: $companyID\n      companyDocumentIDs: $companyDocumentIDs\n    )\n  }\n"])));var S=v.Ay.injectEndpoints({endpoints:function(e){return{getEsopGrantsPendingDocumentUpload:e.query({query:function(e){return{document:A,variables:e}},providesTags:[D.K.Cache,D.K.NotificationsGrantUpload],transformResponse:function(e){return e.esopGrantsPendingDocumentUpload}}),getEsopGrantsPendingDocumentApproval:e.query({query:function(e){return{document:O,variables:e}},providesTags:[D.K.Cache,D.K.NotificationsGrantUpload],transformResponse:function(e){return e.esopGrantsPendingDocumentApproval}}),bulkApproveEsopGrantDocuments:e.mutation({query:function(e){return{document:E,variables:e}},invalidatesTags:function(e){return e?[D.K.NotificationsGrantUpload]:[]},transformResponse:function(e){return e.bulkApproveEsopGrantDocuments}})}}}),T=S.useGetEsopGrantsPendingDocumentApprovalQuery,j=S.useGetEsopGrantsPendingDocumentUploadQuery,P=S.useBulkApproveEsopGrantDocumentsMutation,C=t(31269),G=t(16249),w=t(92103),k=t(90021),N=t(26037),_=t(46753),R=t(27948),L=t(74760),F=t(13585),U=t(67042),q=t(40379),$=t(72990),K=t(51078),B=t(37876);function M(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}var W=(0,p.T)("grantApprovalPage.grantReview.approveGrantLetterTitle");let V=function(){var e,n=(0,f.useState)(!1),t=n[0],r=n[1],a=(0,g.d4)(function(e){return e.rootReducer.selectedExperience}).selectedExperience,o=(0,R.A)().formatPriceByLocale,s=(0,K.A)().getDateFromUtcDateWithTimeZone,c=T({companyID:null==a?void 0:a.companyId}),i=c.data,l=c.isLoading,u=(0,C.e5)({id:a.companyId}).data,D=P(),v=(0,m.A)(D,2),x=v[0],b=v[1].data,I=(0,G.iv)(null!=(e=null==u?void 0:u.company.esopGrantDocumentTemplates)?e:[],o,s,i),A=function(e){return r(e)},O=(0,_.A)(I.map(function(e){return e.id})),E=O.checkedFields,S=O.updateCheckedFields,j=O.checkAllFields,V=O.resetCheckedFields,H=(0,N.u6)(S,E,I.length),Q=(0,f.useMemo)(function(){return function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?M(Object(t),!0).forEach(function(n){(0,d.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):M(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}({checkBox:{header:(0,B.jsx)("div",{className:"pt-1 pb-[8px]",children:(0,B.jsx)(y.Ay,{onChange:j,checked:E.length===I.length,checkboxStyle:"!border-grey13 !rounded-md !w-5 !h-5 after:!top-[3px] after:!left-[7px]"})}),accessor:"checkBox",showColumn:!0,customStyle:"flex items-start justify-center !min-w-[100px] !max-w-[100px] !w-[100px]"}},N.k9)},[j,E.length,I.length]),Z=function(){(0,q.f$)($.Rq.NOTIFICATIONS_APPROVE_GRANT_DOCUMENT_BUTTON_CLICKED,{grantIds:E});var e=null==i?void 0:i.filter(function(e){return E.includes(e.id)}).reduce(function(e,n){return e.concat(n.documentsPendingApproval.map(function(e){return e.companyDocumentId}))},[]);e&&x({companyID:null==a?void 0:a.companyId,companyDocumentIDs:e})},Y=function(){A(!0)},z=(0,f.useMemo)(function(){return(0,G.cu)(null==i?void 0:i.filter(function(e){return E.includes(e.id)&&(e.documents.length||e.documentsPendingApproval.length)}))},[E,i]);return(0,f.useEffect)(function(){b===k.Uh.SUCCESS?((0,h.A)(w.l.SUCCESS,(0,p.T)("grantApprovalPage.approveDocumentSuccessToast",{pluralText:E.length>1?"s":""})),V()):b===k.Uh.FAILED&&(0,h.A)(w.l.ERROR,(0,p.T)("errors.somethingWrong"))},[b,V]),l?(0,B.jsx)(F.A,{}):null!=I&&I.length?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(L.A,{processTableData:H,reviewGrants:I,tableHeaders:Q,tableTitle:W,reviewAndSign:(0,B.jsx)(function(){return(0,B.jsxs)("div",{className:"mt-3 flex justify-end",children:[(0,B.jsx)("button",{className:"mr-3 flex min-w-[75px] items-center rounded-3xl border px-4 py-2 ".concat(z.length&&E.length?"border-darkGrey bg-darkGrey text-white":"bg-gray-100 text-gray-400"),onClick:Y,disabled:!z.length||!E.length,children:(0,B.jsx)("div",{className:"text-sm font-medium",children:(0,N.R2)(z)})}),(0,B.jsx)("button",{className:"flex items-center rounded-3xl border px-4 py-2 ".concat(E.length?"border-darkGrey bg-darkGrey text-white":"bg-gray-100 text-gray-400"),onClick:Z,disabled:!E.length,children:(0,B.jsx)("div",{className:" text-sm font-medium",children:(0,p.T)("grantApprovalPage.grantReview.approveGrantLetter")})})]})},{})}),t&&(0,B.jsx)(U.A,{isOpen:t,setIsOpen:A,docDetails:z})]}):(0,B.jsx)(B.Fragment,{})};var H=t(70236),Q=t(12127);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}var Y=(0,p.T)("grantApprovalPage.grantReview.uploadGrantLetterTitle");let z=function(){var e,n=(0,g.d4)(function(e){return e.rootReducer.selectedExperience}).selectedExperience,t=(0,f.useState)(!1),r=t[0],a=t[1],o=(0,f.useState)(!1),s=o[0],c=o[1],i=(0,R.A)().formatPriceByLocale,l=(0,K.A)().getDateFromUtcDateWithTimeZone,u=j({companyID:null==n?void 0:n.companyId}),m=u.data,h=u.isLoading,D=(0,C.e5)({id:n.companyId}).data,v=(0,G.iv)(null!=(e=null==D?void 0:D.company.esopGrantDocumentTemplates)?e:[],i,l,m),x=(0,_.A)(v.map(function(e){return e.id})),b=x.checkedFields,I=x.updateCheckedFields,A=x.checkAllFields,O=x.resetCheckedFields,E=(0,N.u6)(I,b,v.length),S=(0,f.useMemo)(function(){return v.reduce(function(e,n){if(b.includes(n.id)){var t,r,a=(0,H.A)(e);return a.push({employeeName:n.employeeName,grantId:null!=(t=n.grantId)?t:"",grantUUID:null!=(r=n.id)?r:""}),a}return e},[])},[b,v]),T=(0,f.useMemo)(function(){return function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach(function(n){(0,d.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}({checkBox:{header:(0,B.jsx)("div",{className:"pt-1 pb-[8px]",children:(0,B.jsx)(y.Ay,{onChange:A,checked:b.length===v.length,checkboxStyle:"!border-grey13 !rounded-md !w-5 !h-5 after:!top-[3px] after:!left-[7px]"})}),accessor:"checkBox",showColumn:!0,customStyle:"flex items-start justify-center !min-w-[100px] !max-w-[100px] !w-[100px]"}},N.k9)},[A,b.length,v.length]),P=function(){(0,q.f$)($.Rq.NOTIFICATIONS_UPLOAD_GRANT_DOCUMENT_BUTTON_CLICKED,{grantIds:b}),a(!0)};return h?(0,B.jsx)(F.A,{}):null!=v&&v.length?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(L.A,{processTableData:E,reviewGrants:v,tableHeaders:T,tableTitle:Y,uploadGrantLetter:(0,B.jsx)(function(){return(0,B.jsx)("div",{className:"flex items-center",children:(0,B.jsx)("button",{className:"flex min-w-[75px] items-center justify-center rounded-3xl border px-4 py-2 ".concat(b.length?"":"bg-gray-100 text-gray-400"),onClick:P,disabled:!b.length,children:(0,B.jsx)("div",{className:"text-sm font-medium",children:(0,p.T)("grantApprovalPage.grantReview.uploadLetter")})})})},{})}),(0,B.jsx)(Q.default,{isOpen:r,setIsOverlayOpen:a,setIsNextSkipClicked:c,isNextSkipClicked:s,grantLetterDetails:S,onSuccess:function(){O()},multiFileUploadErrors:!1,hideSuccessScreenOnSkip:!0,onClickSkip:function(){(0,q.f$)($.Rq.NOTIFICATIONS_GRANT_LETTERS_UPLOAD_OVERLAY_SKIP_CLICKED,{grantIds:b})},onClickDeleteGrantLetter:function(){(0,q.f$)($.Rq.NOTIFICATIONS_GRANT_LETTERS_DELETE_FILES_CLICKED,{grantIds:b})},onClickReplaceGrantLetter:function(){(0,q.f$)($.Rq.NOTIFICATIONS_GRANT_LETTERS_REPLACE_FILES_CLICKED,{grantIds:b})},onClickUploadMoreGrantLetter:function(){(0,q.f$)($.Rq.NOTIFICATIONS_GRANT_LETTERS_UPLOAD_MORE_CLICKED,{grantIds:b})}})]}):(0,B.jsx)(B.Fragment,{})};var J=t(10316),X=c()(function(){return t.e(2254).then(t.bind(t,42254))},{loadableGenerated:{webpack:function(){return[42254]}}});let ee=function(e){var n=e.totalCount;return(0,B.jsxs)("div",{className:"flex flex-col gap-6 py-9",children:[(0,B.jsx)(J.A,{to:[u.mF.PermissionCreateCompanyGrants],hideComponent:!0,children:(0,B.jsx)(z,{})}),(0,B.jsx)(J.A,{to:[u.mF.PermissionApproveEsopGrantDocuments],hideComponent:!0,children:(0,B.jsx)(V,{})}),!n&&(0,B.jsx)(X,{title:(0,p.T)("grantApprovalPage.grantReview.emptyText"),titleCustomStyle:"smallScreen:mt-[72px]",customStyle:"h-[calc(100vh-377px)]  text-xl text-grey14 smallScreen:mt-20 smallScreen:text-[32px]",emptyStateImage:(0,B.jsx)(l(),{src:"/app/assets/icons/emptyStroll.svg",height:400,width:440,alt:"Empty Stroll Image",className:"!md:min-w-[317px] !min-h-[209px] !min-w-[220px] mac1380:!min-h-[418px] mac1380:!min-w-[440px]"})})]})}}}]);

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.