import{MenuController}from"../menu.mjs";import{truncate,promptFiles,isEmpty}from"../../base/helpers.mjs";import{PNG}from"../../base/png.mjs";class LoadImageController extends MenuController{static menuName="Load Image";static menuIcon="fa-regular fa-image";async onClick(){let e;try{e=await promptFiles("image/*")}catch(e){}isEmpty(e)||this.application.loadImage(e,truncate(e.name,16))}}export{LoadImageController as ToolbarController};
