import{memo as e}from"react";import t from"prop-types";import{makeStyles as i,ListItem as r,Typography as l,Checkbox as a}from"@material-ui/core";import{jsx as o,Fragment as c,jsxs as n}from"react/jsx-runtime";var m=i((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 p(e){var t=e.well,i=e.wellName,p=e.rigName,s=e.onToggleWell,d=m();return o(c,{children:n(r,{"data-testid":"".concat("WellListItem","_well_").concat(i),className:d.wellListItem,children:[o(l,{className:d.wellListItemName,children:"".concat(i," (").concat(p,")")}),o(a,{"data-testid":"".concat("WellListItem","_checkbox"),className:d.wellListItemcheckbox,size:"small",checked:t.checked,color:"primary",onClick:function(){return s(t)}})]})})}p.propTypes={well:t.shape({id:t.number,checked:t.bool}).isRequired,wellName:t.string.isRequired,rigName:t.string.isRequired,onToggleWell:t.func.isRequired};var s=e(p);export{s as default};
//# sourceMappingURL=WellListItem.js.map
