import{jsx as r}from"react/jsx-runtime";import{useRef as i}from"react";import e from"classnames";import o from"../../../hooks/useIsOverflowing.js";import t from"../../Tooltip/Tooltip.js";import{backwardCompatibilityForProperties as s}from"../../../helpers/backwardCompatibilityForProperties.js";import{BreadcrumbContent as a}from"./BreadcrumbContent/BreadcrumbContent.js";import"./BreadcrumbItem.scss.js";import{HideShowEvent as l}from"../../../constants/dialog.js";var c=[l.MOUSE_ENTER],n=[l.MOUSE_LEAVE],m=function(l){var m=l.className,d=l.text,b=void 0===d?"":d,p=l.isClickable,u=void 0!==p&&p,f=l.link,g=l.onClick,k=l.isCurrent,j=void 0!==k&&k,C=l.icon,h=s([l.disabled,l.isDisabled],!1),v=i(null),E=o({ref:v});return r(t,Object.assign({disableDialogSlide:!0,withoutDialog:!1,content:E&&b,showTrigger:c,hideTrigger:n},{children:r("li",Object.assign({className:e("breadcrumbItem--wrapper",m,{clickable:u},{current:j},{disabled:h})},{children:r(a,{className:e("breadcrumb-content",{clickable:u},{current:j},{disabled:h}),ref:v,isClickable:u,link:f,onClick:g,text:b,icon:C,isCurrent:j,disabled:h})}))}))};export{m as default};
