"use strict";var i=require('./../../ext-esm/tslib/tslib.es6.js'),o=require("react/jsx-runtime"),e=require("classnames"),s=require("lodash"),c=require("@material-ui/core"),n=require("../../icons/iconParkIcons.js");function t(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}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 r=t(e),a=c.makeStyles((function(i){return{rootChip:{"&.MuiChip-root":{backgroundColor:i.palette.background.b9,color:i.palette.primary.text6,textAlign:"center","&:hover":{color:i.palette.primary.contrastText,"& .MuiSvgIcon-root":{color:i.palette.primary.contrastText}},"& span.MuiChip-label":{padding:0}}},tooltip:{marginTop:"10px"},closeIcon:{marginRight:"-2px !important",marginLeft:"2px !important",color:i.palette.primary.text6},sizeSmall:{"&.MuiChip-root":{minWidth:16,height:16,padding:"1px 2px","& span":{fontSize:"11px",lineHeight:"14px"}}},sizeSmallLimited:{"&.MuiChip-root":{padding:"1px 3px"}},sizeMedium:{"&.MuiChip-root":{minWidth:24,height:24,padding:"2px 4px","& span":{fontSize:"14px",lineHeight:"20px"}}},sizeMediumLimited:{"&.MuiChip-root":{padding:"2px 6px"}},sizeMediumClickable:{"&.MuiChip-root":{padding:"2px 6px"}},sizeLarge:{"&.MuiChip-root":{minWidth:32,height:32,padding:"5px 7px","& span":{fontSize:"16px",lineHeight:"22px"}}},sizeLargeLimited:{"&.MuiChip-root":{padding:"5px 8px"}},sizeLargeClickable:{"&.MuiChip-root":{padding:"5px 8px"}}}}));module.exports=function(e){var t=e.classes,u=void 0===t?{}:t,l=e.size,p=void 0===l?"medium":l,d=e.limited,m=void 0!==d&&d,x=e.clickable,h=void 0!==x&&x,g=e.tooltip,q=void 0===g?"":g,j=i.__rest(e,["classes","size","limited","clickable","tooltip"]),I=a();return o.jsx(c.Tooltip,i.__assign({title:q,classes:{tooltip:I.tooltip}},{children:o.jsx(c.Chip,i.__assign({},j,{size:p,classes:i.__assign(i.__assign({},u),{root:r.default(u.root,I.rootChip,I["size".concat(s.capitalize(p))],m&&I["size".concat(s.capitalize(p),"Limited")],h&&I["size".concat(s.capitalize(p),"Clickable")])}),clickable:h,deleteIcon:o.jsx(n.CloseSmallIcon,{className:I.closeIcon,size:16})}))}))};
