import{_ as __rest,a as __assign}from"./tslib.es6-bjGg6Bxl.js";import React__default from"react";import{I as Icon}from"./Icon.component-7-ap-6Ys.js";var breadcrumbItemBaseStyles="\n  jn-text-sm\n  jn-text-theme-high\n  jn-flex\n  jn-gap-1\n  jn-items-center\n",breadcrumbLinkBaseStyles="\n  jn-text-theme-high\n  jn-inline-flex\n",BreadcrumbItem=function(a){var b=a.icon,c=void 0===b?null:b,d=a.href,e=void 0===d?"#":d,f=a.label,g=void 0===f?"Item":f,h=a.ariaLabel,i=void 0===h?"":h,j=a.active,k=void 0!==j&&j,l=a.children,m=void 0===l?null:l,n=a.onClick,o=a.disabled,p=void 0!==o&&o,q=a.className,r=void 0===q?"":q,s=__rest(a,["icon","href","label","ariaLabel","active","children","onClick","disabled","className"]);if(m)return React__default.createElement(React__default.Fragment,null,m);var t=c?(React__default.createElement(Icon,{icon:c,size:"18",color:"jn-text-theme-default",className:g?"jn-mr-1":""})):null,u="juno-breadcrumb-item \n    ".concat(breadcrumbItemBaseStyles," \n    ").concat(p?"juno-breadcrumb-item-disabled":""," \n    ").concat(k?"juno-breadcrumb-item-active":""," \n    ").concat(r);if(k||p)return React__default.createElement("span",__assign({className:u},s),t,g);return React__default.createElement("span",__assign({className:u},s),React__default.createElement("a",{href:e,className:breadcrumbLinkBaseStyles,"aria-label":i||g,onClick:function(a){n&&!p&&n(a)}},t,g))};export{BreadcrumbItem as B};