(()=>{"use strict";AC_SERVICES.addListener("Table.Ready",(e=>{var t,i,l,n,o;if(document.body.classList.contains("ac-mla-media-assistant")){let a=(()=>{var e,t;return(null!==(t=null===(e=document.querySelector(".tablenav-pages .displaying-num"))||void 0===e?void 0:e.innerHTML.split(" ")[0])&&void 0!==t?t:"").replace(",","").replace(".","")})();if("undefined"!=typeof acp_export&&(acp_export.total_num_items=a),0===parseInt(a)){let n=null===(i=null===(t=AC_SERVICES.getService("Export"))||void 0===t?void 0:t.getService("Exporter"))||void 0===i?void 0:i.button;n&&(n.element.style.display="none"),null===(l=e.table.Actions)||void 0===l||l.refresh()}null===(o=null===(n=AC_SERVICES.getService("Editing"))||void 0===n?void 0:n.getService("BulkSelectionRow"))||void 0===o||o.setTotalItems(parseInt(a),a)}}))})();