"use strict";var e=require('./../../ext-esm/tslib/tslib.es6.js'),i=require("react/jsx-runtime"),s=require("react"),o=require("prop-types"),c=require("classnames"),t=require("@material-ui/core"),n=require("../../icons/iconParkIcons.js");function r(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 a=r(o),l=r(c),u=function(e){var i=e.width,s=void 0===i?24:i,o=e.height,c=void 0===o?24:o,t=e.fill.replace("#","%23");return"<svg width='".concat(s,"' height='").concat(c,"' viewBox='0 0 24 24' fill='").concat(t,"' xmlns='http://www.w3.org/2000/svg'><path d='M20.5303 6.46967C20.8232 6.76256 20.8232 7.23744 20.5303 7.53033L10.5303 17.5303C10.2374 17.8232 9.76256 17.8232 9.46967 17.5303L4.46967 12.5303C4.17678 12.2374 4.17678 11.7626 4.46967 11.4697C4.76256 11.1768 5.23744 11.1768 5.53033 11.4697L10 15.9393L19.4697 6.46967C19.7626 6.17678 20.2374 6.17678 20.5303 6.46967Z'/></svg>")},d=t.makeStyles((function(e){return{checked:{"&::before":{content:'url("data:image/svg+xml; utf8, '.concat(u({fill:e.palette.primary.main}),'")'),display:"flex",alignItems:"center",justifyContent:"center",width:24,height:16,lineHeight:"16px",marginLeft:8,marginRight:"-4px",paddingTop:3},"&.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(u({fill:e.palette.primary.text8}),'")')},"&.MuiChip-sizeSmall::before":{content:'url("data:image/svg+xml; utf8, '.concat(u({width:12,fill:e.palette.primary.main}),'")'),width:16,height:16},"&.MuiChip-sizeSmall.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(u({width:12,fill:e.palette.primary.text8}),'")')},"&.MuiChip-root.MuiChip-clickable":{"& .MuiChip-label, & .MuiChip-deleteIcon, & .MuiChip-icon":{color:"#FFFFFF"}},"& .MuiChip-label:first-child":{marginLeft:"-4px"}},basic:{"&:not([data-not-migrated-MuiChip])":{"&.MuiChip-sizeSmall":{height:12,"& .MuiChip-label":{fontSize:10}},border:"none",textTransform:"uppercase",backgroundColor:e.palette.primary.main,padding:"0 8px",height:16,"& .MuiChip-label":{fontSize:12,fontWeight:500,lineHeight:"12px",letterSpacing:"1px",color:e.palette.background.b1,padding:0},"&:hover":{backgroundColor:e.palette.primary.main,"& .MuiChip-label":{color:e.palette.background.b1}}}}}})),p=s.forwardRef((function(s,o){var c,r=s.checked,a=s.classes,u=void 0===a?{}:a,p=d(),m=l.default(s.className,((c={})[p.basic]="basic"===s.variant,c)),h="basic"===s.variant?"default":s.variant;return r?i.jsx(t.Chip,e.__assign({},s,{"data-testid":"Chip",ref:o,className:m,classes:e.__assign(e.__assign({},u),{root:l.default(u.root,p.checked)}),variant:h,deleteIcon:i.jsx(n.CloseSmallIcon,{"data-testid":"".concat("Chip","_remove_icon"),size:16})})):i.jsx(t.Chip,e.__assign({},s,{ref:o,className:m,variant:h,deleteIcon:i.jsx(n.CloseSmallIcon,{"data-testid":"".concat("Chip","_remove_icon"),size:16})}))})),m={checked:a.default.bool,"data-testid":a.default.string};p.propTypes=m,p.defaultProps={checked:!1,"data-testid":"Chip"},module.exports=p;
