const uiUtils = { handleLensCountChangedAsync: async function handleLensCountChangedAsync() { const logHdr = 'handleLensCountChangedAsync: '; log(logHdr + 'enter'); const lensCount = showHideLensUtils.lensesToShowCount(); // get the number of lens cards that will be displayed log('handleLensCountChangedAsync: lensCount=' + lensCount); await descrUtils.updateDescriptionAsync(lensCount); // update the message showing number of lenses displayed descrUtils.showHideDescrAsNec(); // show or hide the description displayByUtils.showHideDisplayByAsNec(); // show or hide the "display by" button group findWhichGroupUtils.showGroupIfNec(); // show or hide the "which to find" button group as necessary showHiddenBtnUtils.updateHiddenLensesBtn(); // update the "show hidden lenses" button expandCollapseBtnUtils.showHideExpandCollapseBtnsAndCol(); // show or hide the expand and collapse all buttons and their parent column log(logHdr + 'leave'); } };