"use strict";var i=require('./../../ext-esm/tslib/tslib.es6.js'),e=require("react/jsx-runtime"),o=require("prop-types"),s=require("classnames"),t=require("lodash"),c=require("@material-ui/core"),r=require("../../icons/iconParkIcons.js");function n(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/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");var l=n(o),a=n(s),u=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"}}}})),p=function(o){var s=o.classes,n=o.size,l=o.limited,p=o.clickable,d=o.tooltip,m=u();return e.jsx(c.Tooltip,i.__assign({title:d,classes:{tooltip:m.tooltip}},{children:e.jsx(c.Chip,i.__assign({},o,{classes:i.__assign(i.__assign({},s),{root:a.default(s.root,m.rootChip,m["size".concat(t.capitalize(n))],l&&m["size".concat(t.capitalize(n),"Limited")],p&&m["size".concat(t.capitalize(n),"Clickable")])}),clickable:p,deleteIcon:e.jsx(r.CloseSmallIcon,{className:m.closeIcon,size:16})}))}))},d={classes:l.default.shape({root:l.default.string}),size:l.default.oneOf(["small","medium","large"]),limited:l.default.bool,clickable:l.default.bool,label:l.default.string.isRequired,tooltip:l.default.string};p.propTypes=d,p.defaultProps={classes:{},size:"medium",limited:!1,clickable:!1,tooltip:""},module.exports=p;
