import{r as e}from"./client.58f92968.js";import{u as a}from"./DataGridHeaderCell.9868eb08.js";import{d as t,g as i,o as n,f as r,j as o,aE as s,h as l,i as m,k as c}from"./App.09743846.js";const f={medium:32,small:24,"extra-small":20},d="fui-TableCellLayout",p="fui-TableCellLayout__media",u="fui-TableCellLayout__main",y="fui-TableCellLayout__description",x="fui-TableCellLayout__content",g=m({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",i8kkvl:0,Belr9w4:0,rmohyg:"faqewft",xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:"f1izfyrr"},rootTruncate:{B68tc82:"f1p9o1ba"},content:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62"},contentTruncate:{B68tc82:"f1p9o1ba"},media:{mc9l5x:"f22iagw",Bt984gj:"f122n59"},mediaExtraSmall:{Be2twd7:"f4ybsrx"},mediaSmallAndMedium:{Be2twd7:"fe5j1ua"},mediaPrimary:{Be2twd7:"f1rt2boy"},mainPrimary:{Bhrd7zp:"fl43uef"},mainTruncate:{B68tc82:"f1p9o1ba",Huce71:"fz5stix",ygn44y:"f1cmbuwj"},description:{sj55zd:"fkfq4zb",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",[".faqewft{gap:var(--spacingHorizontalS);}",{p:-1}],[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".f1p9o1ba{overflow-x:hidden;}",".f1vx9l62{flex-direction:column;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fz5stix{white-space:nowrap;}",".f1cmbuwj{text-overflow:ellipsis;}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}"]});const w=e.exports.forwardRef(((m,w)=>{const b=((e,r)=>{const{size:o}=a();return{components:{root:"div",main:"span",description:"span",content:"div",media:"span"},root:t(i("div",{ref:r,...e},["content"]),{elementType:"div"}),appearance:e.appearance,truncate:e.truncate,main:n(e.main,{renderByDefault:!0,elementType:"span"}),media:n(e.media,{elementType:"span"}),description:n(e.description,{elementType:"span"}),content:n(e.content,{renderByDefault:!!e.description||!!e.children,elementType:"div"}),avatarSize:f[o],size:o}})(m,w);return(e=>{const a=g(),{truncate:t}=e;e.root.className=l(d,a.root,t&&a.rootTruncate,e.root.className);const i="primary"===e.appearance;if(e.media){const t={small:a.mediaSmallAndMedium,medium:a.mediaSmallAndMedium,"extra-small":a.mediaExtraSmall};e.media.className=l(p,a.media,t[e.size],i&&a.mediaPrimary,e.media.className)}e.main&&(e.main.className=l(u,t&&a.mainTruncate,i&&a.mainPrimary,e.main.className)),e.description&&(e.description.className=l(y,a.description,e.description.className)),e.content&&(e.content.className=l(x,a.content,t&&a.contentTruncate,e.content.className))})(b),c("useTableCellLayoutStyles_unstable")(b),((e,a)=>r(e.root,{children:[e.media&&o(s,{value:a.avatar,children:o(e.media,{})}),e.content&&r(e.content,{children:[e.main&&o(e.main,{children:e.root.children}),e.description&&o(e.description,{})]})]}))(b,function(a){const{avatarSize:t}=a;return{avatar:e.exports.useMemo((()=>({size:t})),[t])}}(b))}));w.displayName="TableCellLayout";export{w as T};
