Module 240864

771 characters · in f08fed5b39d8e5b5.js
Dependencies
Required by (2)
Lazily required by (0)none
Requires (1)
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";function l(e){let{listRef:t,searchQuery:n,nitroLockedSectionStates:l,scrollTop:i,sectionHeaderHeight:s=0,sectionFooterHeight:r=0}=e;if(""!==n)return{isNitroLockedSectionVisible:!1,areOnlyNitroLockedSectionsVisible:!1};let a=t?.current?.getSectionDescriptors(),o=t.current?.getListDimensions()?.height;if(null==a||a.length!==l.length||null==o||o<=0)return{isNitroLockedSectionVisible:!1,areOnlyNitroLockedSectionsVisible:!1};let c=i+o,u=!1,d=!1,h="function"==typeof s?s:()=>s,m="function"==typeof r?r:()=>r;return l.forEach((e,t)=>{let n=a[t],l=n.offset.top+h(t);Math.min(n.offset.bottom-m(t),c)-Math.max(l,i)>=20&&(e.isNitroLocked?u=!0:d=!0)}),{isNitroLockedSectionVisible:u,areOnlyNitroLockedSectionsVisible:u&&!d}}n.d(t,{s:()=>l}),n(64700)}