import{defineProperty as e}from"../../../_virtual/_rollupPluginBabelHelpers.js";import t,{forwardRef as o,useMemo as r}from"react";import i from"classnames";import l from"./BaseListItem.module.scss.js";import{getStyle as s}from"../../helpers/typesciptCssModulesHelper.js";import n from"../Text/Text.js";import a from"../Tooltip/Tooltip.js";import{renderSideElement as m}from"./utils.js";var d=o((function(o,d){var p=o.className,c=o.id,v=o.component,u=void 0===v?"li":v,f=o.size,g=void 0===f?"medium":f,h=o.selected,b=void 0!==h&&h,j=o.readOnly,E=void 0!==j&&j,y=o.highlighted,x=void 0!==y&&y,P=o.role,O=o.dir,T=void 0===O?"auto":O,N=o.itemRenderer,B=o.itemProps,H=void 0===B?{}:B,S=o.item,_=void 0===S?{}:S,w=_.label,z=void 0===w?"":w,C=_.disabled,F=void 0!==C&&C,I=_.startElement,L=_.endElement,M=_.tooltipProps,R=void 0===M?{}:M,k=r((function(){return i(l.wrapper,e(e(e(e({},l.selected,b),l.disabled,F),l.highlighted,x),l.readOnly,E),s(l,g),p)}),[b,F,x,E,g,p]),q="small"===g?"text2":"text1",A=u;return t.createElement(a,Object.assign({},R,{content:null==R?void 0:R.content,position:"rtl"===T?"right":"left",containerSelector:"body"}),t.createElement(A,Object.assign({id:c,ref:d,className:k,role:P},H,{"aria-selected":b}),N?N(_):t.createElement(t.Fragment,null,I&&m(I,F,q),t.createElement(n,{type:q,color:"inherit",tooltipProps:{containerSelector:"body"}},z),L&&t.createElement("div",{className:l.endElement},m(L,F,q)))))}));export{d as default};
//# sourceMappingURL=BaseListItem.js.map
