import{u as a,h as t}from"./OdysseyThemeProvider-Bh0Bu-2o.js";import{r as c}from"./index-NdkWRN8K.js";import{M as x}from"./Box-1mvP3NLW.js";import{c as i}from"./Typography-Cz6D417Y.js";import{j as e}from"./jsx-runtime-CnH95YSl.js";/*!
 * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.
 * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
 *
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *
 * See the License for the specific language governing permissions and limitations under the License.
 */const y=t("div",{shouldForwardProp:s=>s!=="odysseyDesignTokens"})({display:"flex",alignItems:"center"}),m=t("div",{shouldForwardProp:s=>s!=="odysseyDesignTokens"})(({odysseyDesignTokens:s})=>({display:"flex",paddingInlineEnd:s.Spacing2})),p=({profileIcon:s,userName:n,orgName:l,translate:o,userNameEndIcon:d})=>{const r=a();return e.jsxs(y,{odysseyDesignTokens:r,children:[s&&e.jsx(m,{odysseyDesignTokens:r,children:s}),e.jsxs("div",{children:[d?e.jsxs(x,{sx:{display:"flex",flexDirection:"row",gap:r.Spacing2},children:[e.jsx(i,{color:"textPrimary",translate:o,children:n}),d]}):e.jsx(i,{color:"textPrimary",translate:o,children:n}),e.jsx(i,{color:"textSecondary",translate:o,children:l})]})]})},f=c.memo(p);f.displayName="UserProfile";export{f as M};
