"use strict";var e=require("react"),t=require("prop-types"),l=require("@material-ui/core"),r=require("react/jsx-runtime");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(t),o=l.makeStyles((function(e){return{wellListItem:{display:"flex",padding:"0",justifyContent:"space-between",width:"100%",height:"32px",cursor:"pointer","&:hover":{background:"rgba(255, 255, 255, 0.03)"},"&:first-child":{marginTop:"16px"},"&:last-child":{marginBottom:"8px"}},wellListItemName:{marginLeft:"30px",width:"calc(75%)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"14px",color:e.palette.primary.text1},manualItem:{display:"flex",alignItems:"center",fontSize:"12px"},manualItemIcon:{fontSize:"16px"},manualItemLabel:{marginLeft:"8px",color:e.palette.primary.text6,"&:hover":{color:e.palette.primary.text1,cursor:"pointer"}},wellListItemcheckbox:{width:"13px",height:"13px",marginRight:"4px"}}}));function c(e){var t=e.well,i=e.wellName,a=e.rigName,c=e.onToggleWell,n=o();return r.jsx(r.Fragment,{children:r.jsxs(l.ListItem,{"data-testid":"".concat("WellListItem","_well_").concat(i),className:n.wellListItem,children:[r.jsx(l.Typography,{className:n.wellListItemName,children:"".concat(i," (").concat(a,")")}),r.jsx(l.Checkbox,{"data-testid":"".concat("WellListItem","_checkbox"),className:n.wellListItemcheckbox,size:"small",checked:t.checked,color:"primary",onClick:function(){return c(t)}})]})})}c.propTypes={well:a.default.shape({id:a.default.number,checked:a.default.bool}).isRequired,wellName:a.default.string.isRequired,rigName:a.default.string.isRequired,onToggleWell:a.default.func.isRequired};var n=e.memo(c);module.exports=n;
