"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("../Typography/Typography.cjs.js"),a=require("./utils.cjs.js"),s=require("../../src/components/Profile/styles.module.css"),m=require("../Icon/Icon.cjs.js"),u=require("../Icon/constants.cjs.js"),p={xl:"profileXl",lg:"profileLg",md:"profileMd",sm:"profileSm",xs:"profileXs"},x=({firstName:i,lastName:o,image:t,size:n="md",editable:l=!1,onEdit:r})=>{const c=l&&!["sm","xs"].includes(n);return e.jsxs("div",{className:s.root,"data-size":n,children:[t?e.jsx("div",{className:s.imageContainer,children:e.jsx("img",{src:t,alt:a.getFullName({firstName:i,lastName:o}),className:s.image})}):e.jsx("div",{className:s.textContainer,children:e.jsx(d.Typography,{defaultVariant:p[n],className:s.name,children:a.getInitials({firstName:i,lastName:o})})}),c&&e.jsx("div",{className:s.editableContainer,onClick:r,children:e.jsx(m.Icon,{name:u.EIconName.PLUS,className:s.editableIcon})})]})};exports.Profile=x;
