"use strict";var e=require('./../../ext-esm/tslib/tslib.es6.js'),s=require("react/jsx-runtime"),r=require("@material-ui/core"),o=require("classnames"),n=require("react-router"),i=require("react");require("../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js");var c=require("../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/objectWithoutProperties");var t=require("../TruncatedText/index.js"),u=require("../../icons/iconParkIcons.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../../icons/customIcons/icons/AddMessage.js"),require("../../icons/customIcons/icons/Attention.js"),require("../../icons/customIcons/icons/Collapse.js"),require("../../icons/customIcons/icons/Dashboard.js"),require("../../icons/customIcons/icons/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.js"),require("../../icons/customIcons/icons/FolderClosedFilled.js"),require("../../icons/customIcons/icons/FolderOpened.js"),require("../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../icons/customIcons/icons/LessOrEqual.js"),require("../../icons/customIcons/icons/Search.js"),require("../../icons/customIcons/icons/Wellhub.js"),require("../../icons/customIcons/icons/MultiRuler.js"),require("../../icons/customIcons/icons/Checkbox.js"),require("../../icons/customIcons/icons/CheckboxChecked.js"),require("../../icons/customIcons/icons/CheckboxIndeterminate.js"),require("../../icons/customIcons/icons/Radio.js"),require("../../icons/customIcons/icons/RadioChecked.js"),require("../../icons/customIcons/icons/SimulFrac.js"),require("../../icons/customIcons/icons/ZipperFrac.js"),require("../../icons/customIcons/icons/CautionFilled.js"),require("../../icons/customIcons/icons/MoreApp.js");var l=a(o),m=r.makeStyles((function(e){return{container:{display:"flex",gap:"0px 8px",fontSize:"0.8125rem"},pathPart:{color:e.palette.primary.text6,"&:hover":{textDecoration:"underline"}},lastPathPart:{color:e.palette.primary.text1,"&:hover":{textDecoration:"underline"}},iconLink:{display:"flex",alignItems:"center",color:e.palette.primary.text6,"&:hover":{textDecoration:"underline"}}}}));module.exports=function(o){var a=o.pathItems,d=o.withBackIcon,j=o.classes,q=void 0===j?{}:j,h=e.__rest(o,["pathItems","withBackIcon","classes"]),x=q.container,I=e.__rest(q,["container"]),p=m();return s.jsx(r.Breadcrumbs,e.__assign({classes:e.__assign({li:l.default(p.container,x)},I)},h,{children:a.map((function(e,r,o){var a;return s.jsxs(i.Fragment,{children:[0===r&&d&&s.jsx(n.Link,{to:e.href,className:p.iconLink,children:s.jsx(u.LeftIcon,{size:"small"})}),s.jsx(t,{children:s.jsx(c.UniversalLink,{className:l.default(p.pathPart,(a={},a[p.lastPathPart]=r===o.length-1&&!d,a)),"data-testid":"Breadcrumbs_".concat(e.text),href:e.href,children:e.text},e.text)})]},e.href)}))}))};
