"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("react/jsx-runtime"),l=require("@material-ui/core"),s=require("classnames"),t=require("../../../CustomInfoIcon/CustomInfoIcon.js"),a=require("../../../../stores/picker-props-store/usePickerPropsStore.js");require("../../../../viewport/ViewportProvider.js");var i=require("../../../../viewport/useViewType.js"),o=require("../LoadAllWellsToggle/LoadAllWellsToggle.js"),c=require("../../AppHeader.module.css.js"),n=require("../../../../../Typography.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=u(e),f=u(s);exports.HeaderStats=function(e){var s=e.totalCount,u=e.filteredCount,p=e.selectedCount,m=e.maxOffsetWellNumber,j=i.useViewType().isMobile,x=a.usePickerPropsStore((function(e){return e.isViewOnly})),g=a.usePickerPropsStore((function(e){return e.isGlobalMode}));return r.jsxs("div",{className:f.default(c.leftSection,d.default({},c.leftSectionMobile,j)),children:[r.jsx(n.Regular20,{children:"Offset Wells"}),!j&&r.jsxs(r.Fragment,{children:[r.jsx(l.Divider,{className:c.divideLine}),r.jsx(o.LoadAllWellsToggle,{disabled:x})]}),r.jsx(n.Regular14,{className:c.totalLabel,children:"Total:"}),r.jsx(n.Regular14,{"data-testid":"".concat("AppHeader","_totalWells"),className:c.countValue,children:s}),u!==s&&r.jsxs(r.Fragment,{children:[r.jsx(n.Regular14,{className:c.filteredLabel,children:"Filtered:"}),r.jsx(n.Regular14,{"data-testid":"".concat("AppHeader","_filteredWells"),className:c.countValue,children:u})]}),r.jsx(n.Regular14,{className:c.selectedLabel,children:"Selected:"}),r.jsx(n.Regular14,{"data-testid":"".concat("AppHeader","_selected"),className:c.countValue,children:p}),g?r.jsx(n.Regular12,{className:f.default(c.maxOffsetSize,c.maxOffsetSizeGlobal),children:"No global limit. Each app may have its own offset limit."}):r.jsx(l.Tooltip,{title:"App can't process more than (".concat(m-1,") Offset Wells."),placement:"right",children:r.jsxs(n.Regular12,{"data-testid":"".concat("AppHeader","_maxOffsetSize"),className:c.maxOffsetSize,children:["/",m-1]})}),x&&r.jsx(t.CustomInfoIcon,{})]})};
//# sourceMappingURL=HeaderStats.js.map
