import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as i}from"react/jsx-runtime";import{forwardRef as t}from"react";import s from"prop-types";import c from"classnames";import{makeStyles as e,Chip as n}from"@material-ui/core";import{CloseSmallIcon as a}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 r=function(o){var i=o.width,t=void 0===i?24:i,s=o.height,c=void 0===s?24:s,e=o.fill.replace("#","%23");return"<svg width='".concat(t,"' height='").concat(c,"' viewBox='0 0 24 24' fill='").concat(e,"' 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>")},l=e((function(o){return{checked:{"&::before":{content:'url("data:image/svg+xml; utf8, '.concat(r({fill:o.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(r({fill:o.palette.primary.text8}),'")')},"&.MuiChip-sizeSmall::before":{content:'url("data:image/svg+xml; utf8, '.concat(r({width:12,fill:o.palette.primary.main}),'")'),width:16,height:16},"&.MuiChip-sizeSmall.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(r({width:12,fill:o.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:o.palette.primary.main,padding:"0 8px",height:16,"& .MuiChip-label":{fontSize:12,fontWeight:500,lineHeight:"12px",letterSpacing:"1px",color:o.palette.background.b1,padding:0},"&:hover":{backgroundColor:o.palette.primary.main,"& .MuiChip-label":{color:o.palette.background.b1}}}}}})),m=t((function(t,s){var e,r=t.checked,m=t.classes,p=void 0===m?{}:m,d=l(),u=c(t.className,((e={})[d.basic]="basic"===t.variant,e)),h="basic"===t.variant?"default":t.variant;return i(n,o({},t,r?{"data-testid":"Chip",ref:s,className:u,classes:o(o({},p),{root:c(p.root,d.checked)}),variant:h,deleteIcon:i(a,{"data-testid":"".concat("Chip","_remove_icon"),size:16})}:{ref:s,className:u,variant:h,deleteIcon:i(a,{"data-testid":"".concat("Chip","_remove_icon"),size:16})}))})),p={checked:s.bool,"data-testid":s.string};m.propTypes=p,m.defaultProps={checked:!1,"data-testid":"Chip"};export{m as default};
