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]="00e0c385-d37e-43cf-9828-339d510359ff",e._sentryDebugIdIdentifier="sentry-dbid-00e0c385-d37e-43cf-9828-339d510359ff")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2945],{19319:(e,n,t)=>{t.d(n,{A:()=>o});var s=t(14232),a=t(90021),l=t(31269);let o=function(e,n){var t=(0,s.useState)(3e3),o=t[0],r=t[1],d=(0,l.GE)({companyID:e,id:n},{pollingInterval:o,refetchOnMountOrArgChange:!0}).data,i=null==d?void 0:d.esopGrant.documents,c=null==d?void 0:d.esopGrant.documentsPendingApproval,u=function(e){((null==e?void 0:e.status)===a.Wt.generated||(null==e?void 0:e.status)===a.Wt.generation_failed)&&o&&r(0)},p=(0,s.useMemo)(function(){return null!=d&&d.esopGrant.documents.length?d.esopGrant.documents:null!=d&&d.esopGrant.documentsPendingApproval?d.esopGrant.documentsPendingApproval:[]},[d]);return null!=i&&i.length&&u(i[0]),!(null!=i&&i.length)&&null!=c&&c.length&&u(c[0]),{grantDocs:p}}},42945:(e,n,t)=>{t.r(n),t.d(n,{default:()=>u});var s=t(54587),a=t.n(s),l=t(24395),o=t(90021),r=t(48757),d=t(19319),i=t(37876);let c=function(e){var n=e.companyId,t=e.grantUUID,s=(0,d.A)(n,t).grantDocs;if(null!=s&&s.length){var l=s[0];return(0,i.jsxs)("div",{className:"ml-auto cursor-pointer",children:[(null==l?void 0:l.status)===o.Wt.generated&&(0,i.jsx)(a(),{src:"/app/assets/icons/DocDownload.svg",height:15,width:14,alt:"Download Icon"}),(null==l?void 0:l.status)===o.Wt.generation_failed&&"Failed",(null==l?void 0:l.status)===o.Wt.generation_in_progress&&(0,i.jsx)(r.A,{size:4,color:"black"})]})}return(0,i.jsx)("div",{className:"ml-auto cursor-pointer",children:(0,i.jsx)(r.A,{size:4,color:"black"})})},u=function(e){var n=e.isAdmin,t=e.grantDocuments,s=e.onDownloadDoc,r=e.companyId,d=e.grantUUID;return(0,i.jsxs)("div",{className:"".concat(n?"":"border-b pb-6 md:pb-[50px]"),children:[(0,i.jsx)("div",{className:"mt-6 text-xl font-medium leading-7 text-black01 md:mt-11",children:(0,l.T)("eSign.grantDocuments.documents")}),(0,i.jsx)("div",{className:"mt-4",children:(0,i.jsx)("div",{className:"flex flex-wrap gap-10",children:t.map(function(e){return(0,i.jsxs)("div",{className:"flex min-w-[190px] cursor-pointer gap-2 rounded-md bg-grey03 py-2 pl-4 pr-[7.56px] active:opacity-70",onClick:function(){return s(e.fileId,e.filename)},children:[(0,i.jsx)("div",{className:"mt-0.5",children:e.status!==o.Wt.generated&&n?(0,i.jsx)(c,{companyId:r,grantUUID:d}):(0,i.jsx)(a(),{src:"/app/assets/icons/DocDownload.svg",height:15,width:14,alt:"Download Icon"})}),(0,i.jsx)("div",{className:"text-sm font-medium text-thunderBlack",children:e.filename})]},e.fileId)})})})]})}}}]);
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.