1import{Kt as e}from"./vendor-D_JRymGO.js";import{z as t}from"./api-Mo_zjIL9.js";import{a as n}from"./use-feature-flag-DI3lGLkn.js";import{n as r}from"./use-get-user-info-CWW44JBZ.js";function i(e){let{isAgent:t,customFlag:n}=e;return n??(t?`fe-portfolio-manager-auth0`:`fe-ciam-identity-broker`)}async function a(e){let{mode:t=`optimizely`,applicationName:a,baseUrl:o,orgCode:s=`FIGURE`,isAgent:c,customFlag:l}=e,[u,d]=await Promise.allSettled([n({baseUrl:typeof o==`function`?o(`/service-optimize/external/api/v2/decision`):o,context:`external`,experimentKey:i({isAgent:c,customFlag:l}),ignoreIdentify:!0,optimizeUser:{attributes:{organization:s}}}),r(o,a,c)]);return d.status===`fulfilled`?d.value?.isBroker===!0:t===`legacy`?!1:u.status===`fulfilled`&&u.value.flagEnabled||t===`broker`}var o=[`service-identity-broker`,`getIsBrokerActive`];function s(n){let{mode:r=`optimizely`,orgCode:i=`FIGURE`,queryOptions:s,...c}=n,{baseUrl:l}=t();return e({queryKey:o,queryFn:()=>a({mode:r,orgCode:i,baseUrl:l,...c}),...s})}var c=`optimizely`;export{a as n,s as r,c as t}; 2//# sourceMappingURL=globals-C-z6mubY.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.