import o from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import e from"prop-types";import{makeStyles as r,Breadcrumbs as s}from"@material-ui/core";import n from"classnames";import{Link as c}from"react-router";import{Fragment as i}from"react";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import{UniversalLink as a}from"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{jsx as m,jsxs as p}from"react/jsx-runtime";import l from"../TruncatedText/index.js";import{LeftIcon as u}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";var d=["pathItems","withBackIcon","classes"],h=["container"];function j(o,t){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),e.push.apply(e,r)}return e}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?j(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))}))}return t}var I=r((function(o){return{container:{display:"flex",gap:"0px 8px",fontSize:"0.8125rem"},pathPart:{color:o.palette.primary.text6,"&:hover":{textDecoration:"underline"}},lastPathPart:{color:o.palette.primary.text1,"&:hover":{textDecoration:"underline"}},iconLink:{display:"flex",alignItems:"center",color:o.palette.primary.text6,"&:hover":{textDecoration:"underline"}}}})),b=function(e){var r=e.pathItems,j=e.withBackIcon,b=e.classes,x=void 0===b?{}:b,O=t(e,d),y=x.container,v=t(x,h),C=I();return m(s,f(f({classes:f({li:n(C.container,y)},v)},O),{},{children:r.map((function(t,e,r){return p(i,{children:[0===e&&j&&m(c,{to:t.href,className:C.iconLink,children:m(u,{size:"small"})}),m(l,{children:m(a,{className:n(C.pathPart,o({},C.lastPathPart,e===r.length-1&&!j)),"data-testid":"Breadcrumbs_".concat(t.text),href:t.href,children:t.text},t.text)})]},t.href)}))}))};b.propTypes={pathItems:e.arrayOf(e.shape({text:e.string,href:e.string})).isRequired};export{b as default};
