import e from"prop-types";import{Divider as t,Tooltip as r}from"@material-ui/core";import{ViewType as s}from"../../constants.js";import{CustomInfoIcon as a}from"../CustomInfoIcon/CustomInfoIcon.js";import i from"./AppHeader.module.css.js";import{Regular20 as l,Regular14 as o,Regular12 as c}from"../../../Typography.js";import{jsx as n,jsxs as m}from"react/jsx-runtime";var d=function(e){var d=e.isWDUser,p=e.viewType,f=e.totalCount,u=e.selectedCount,h=e.isViewOnly,N=e.maxOffsetWellNumber;return p===s.mobile?n("div",{className:i.headerContainer,children:n(l,{children:"Select Offset Wells"})}):m("div",{className:i.headerContainer,children:[n(l,{children:"Select Offset Wells"}),n(t,{className:i.divideLine}),n(o,{className:i.totalLabel,children:"Total:"}),n(o,{"data-testid":"".concat("AppHeader","_totalWells"),className:i.countValue,children:f}),n(o,{className:i.selectedLabel,children:"Selected:"}),n(o,{"data-testid":"".concat("AppHeader","_selected"),className:i.countValue,children:u}),n(r,{title:"App can’t process more than (".concat(N-1,") Offset Wells."),placement:"right",children:m(c,{"data-testid":"".concat("AppHeader","_maxOffsetSize"),className:i.maxOffsetSize,children:["/",N-1]})}),h&&n(a,{viewType:p,isWDUser:d})]})};d.propTypes={viewType:e.string.isRequired,totalCount:e.number.isRequired,selectedCount:e.number.isRequired,maxOffsetWellNumber:e.number.isRequired};export{d as AppHeader};
