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