PageSourceSearch

https://my.secfi.com/assets/use-grants-ChbsWwZv.js

js secfi.com collected 2026-10-03 22:45:23 UTC 1,536 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`web-client-v6.156.2`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`c46625de-4d30-4e22-ae35-466906791b2f`,e._sentryDebugIdIdentifier=`sentry-dbid-c46625de-4d30-4e22-ae35-466906791b2f`)}catch{}})();import{o as e}from"./rolldown-runtime-Bo0-RLKx.js";import{L as t}from"./react-KEHP-A2o.js";import{Li as n}from"./client-B24jktP1.js";import{X as r}from"./types-kdwupCYO.js";var i=e(t()),a=({grants:e,sortBy:t,sortOrder:n})=>e.sort((e,r)=>{let i=e[t]??``,a=r[t]??``;return n===`ASC`?i<a?-1:1:i>a?-1:1}),o=({customerUuid:e,affiliationUuid:t,onCompleted:o,onError:s=e=>{console.log(`useGrants onError`,e)},skip:c,debug:l,onlyEditableShareGrants:u=!1,sortBy:d=`createdAt`,sortOrder:f=`DESC`})=>{l?.log&&console.log(`%cuseGrants ${l?.callsite?`@${l?.callsite}`:``}`,`color: #ff00ff`);let{data:p,loading:m,error:h,refetch:g}=n({variables:e?{customer:e,affiliation:t}:void 0,skip:c||!e,onCompleted:o,onError:s});return(0,i.useMemo)(()=>{let e=p?.equity?.getAllGrants,t=e?.stockOptionGrants??[],n=e?.rsuGrants??[],i=e?.shareGrants??[],o=i;u&&(o=i.filter(e=>e.source!==r.Exercise));let s=[...t,...n],c=a({grants:[...s,...o],sortBy:d,sortOrder:f});return{stockOptionGrants:t,rsuGrants:n,shareGrants:o,combinedOptionsAndRsus:s,allGrants:c,grantsQuery:p,isLoading:m,error:h,refetch:g}},[p])};export{o as t};
2//# sourceMappingURL=use-grants-ChbsWwZv.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.