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