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