1import{s as e,t}from"./react.DsWiI3Oe.chunk.js";import{Al as n,Li as r,On as i,Sr as a,Tt as o,fa as s,ho as c,hr as l,ia as u,xr as d}from"./build.BJLtkGxM.chunk.js";import{f}from"./react-router.DRfl99m-.chunk.js";import{t as p}from"./jsx-runtime.CGimkCAf.chunk.js";import{u as m}from"./AuthContext-BATWRUo3.Br-VvAOk.chunk.js";import{t as h}from"./Authorization-gK7SycGs.B83VL-6g.chunk.js";import{n as g}from"./DeprecatedSharedAppBar.mCZolekg.chunk.js";import{a as _,v}from"./paths.DO3mVUf8.chunk.js";import{r as y}from"./Links.CFTpyX7N.chunk.js";var b=e(p()),x=({externalLink:e,children:t})=>{let{isAuthenticated:r}=m(),a=f({path:_,strict:!1}),o=f({path:v,strict:!1});return a?(0,b.jsx)(`div`,{children:t}):e?(0,b.jsx)(i,{linkShouldOpenInCurrentTab:!0,to:e,children:t}):r||o?(0,b.jsx)(n,{to:`/`,children:t}):(0,b.jsx)(y,{children:t})},S=({externalLink:e})=>(0,b.jsx)(x,{externalLink:e,children:(0,b.jsx)(o,{variant:`colorWordmark`,color:`dark`,colorVariant:`default`,alt:`Color logo`})}),C=e=>{let{participant:t,dropdownItems:n,dropdownId:i}=e,{currentUser:a}=m(),o=t||a;return(0,b.jsx)(l,{dropdownId:i,dropdownButtonProps:{variant:`text`,color:`secondary`,content:(0,b.jsxs)(b.Fragment,{children:[o&&h(o),(0,b.jsx)(r,{})]})},dropdownItems:n})},w=e(t()),T=({forwardedRef:e,switchablePortals:t})=>{let[n,i]=(0,w.useState)(!1);return t.length?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(u,{ref:e,onClick:()=>{i(e=>!e)},sx:{justifyContent:`space-between`},children:[(0,b.jsx)(`span`,{children:`Use another Color product`}),n?(0,b.jsx)(d,{}):(0,b.jsx)(r,{})]}),(0,b.jsx)(c,{in:n,timeout:`auto`,unmountOnExit:!0,children:(0,b.jsx)(s,{children:t.map(e=>(0,b.jsx)(u,{component:a,to:e.path,sx:{paddingLeft:4,"&:hover":{color:`#333`}},children:e.label},e.label))})})]}):null},E=(0,w.forwardRef)(({activeAppPortal:e},t)=>{let{availablePortalsInfo:n,getPortalPath:r}=g(e);return n.length?(0,b.jsx)(T,{forwardedRef:t,switchablePortals:n.map(e=>({...e,path:r(e.portal)}))}):null});export{C as n,S as r,E as t}; 2//# sourceMappingURL=MultiAppSwitcher.BeOgrBmj.chunk.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.