(function() {
    "use strict";

    var myElement1 = document.getElementById('files-main-nav');
    new SimpleBar(myElement1, { autoHide: true });

    var myElement3 = document.getElementById('filemanager-file-details');
    new SimpleBar(myElement3, { autoHide: true });

    document.querySelectorAll(".files-type").forEach((element)=>{
        element.onclick = ()=>{
            if(window.screen.width <= 575){
                document.querySelector(".file-manager-folders").classList.add("open")
                document.querySelector(".file-manager-navigation").classList.add("close")
            }
        }
    })

    window.addEventListener("resize",()=>{
        if(window.screen.width > 576){
            document.querySelector(".file-manager-navigation").classList.remove("close")
        }
    })


})();