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:`a483d49290b61ec92237fe84e3affb6f28a705b9`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b4e327d2-1a86-4420-9972-d80a4e567f5e`,e._sentryDebugIdIdentifier=`sentry-dbid-b4e327d2-1a86-4420-9972-d80a4e567f5e`)}catch{}})();import{o as e}from"./chunk-DifwdwRD.js";import{t}from"./react-B0gicFlA.js";import{t as n}from"./useCurrentWorkspaceID-Cro7XC7t.js";import{t as r}from"./useCurrentUserID-DBZmgkpG.js";import{n as i}from"./useCurrentWorkspace-3pRAIT8G.js";import{o as a}from"./crmUserQueries-C3fdHzdL.js";var o=e(t(),1),s=e=>{let t=i()?.addons;return(0,o.useMemo)(()=>t?.find(t=>t.addonName===e),[e,t])},c=e=>{let t=s(e);return t!==void 0&&[`MONTHLY`,`YEARLY`].includes(t.plan)},l=()=>c(`HRM`),u=()=>c(`HRM`),d=()=>c(`CRM`),f=()=>c(`CRM`),p=()=>{let e=l(),t=h(),n=u();return e||t||n},m=e=>{let t=i()?.addons;return(0,o.useMemo)(()=>t?.find(t=>t.addonName===e)?.plan,[e,t])??`INACTIVE`},h=()=>m(`HRM`)===`TRIAL`,g=()=>m(`CRM`)===`TRIAL`,_=()=>{let e=s(`HRM`),t=h(),n=c(`HRM`);return e?.isEligibleForTrial&&!n&&!t},v=()=>{let e=s(`HRM`),t=h(),n=c(`HRM`);return e?.isEligibleForTrial&&!n&&!t},y=()=>{let e=s(`CRM`),t=S(),n=c(`CRM`);return e?.isEligibleForTrial&&!n&&!t},b=()=>{let e=i()?.addons;return(0,o.useCallback)(t=>e?.find(e=>e.addonName===t&&[`MONTHLY`,`YEARLY`].includes(e.plan)),[e])},x=()=>c(`CRM`),S=()=>m(`CRM`)===`TRIAL`,C=()=>{let e=a({workspaceID:n()}),t=r();return(0,o.useMemo)(()=>e.data||[],[e.data]).some(e=>e.workspaceUserID===t)},w=()=>{let e=s(`CRM`),t=S(),n=c(`CRM`);return e?.isEligibleForTrial&&!n&&!t};export{C as _,c as a,l as c,g as d,x as f,_ as g,p as h,u as i,y as l,h as m,m as n,b as o,w as p,d as r,f as s,s as t,v as u};
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.