function yalogica_ninjadraw_main(n){if(n&&n.dataset.id&&!n.dataset.process){n.dataset.process=!0;let e=n.querySelector(".ninjadraw-image");var a,t;e&&(a=NinjaDrawShortcode,t=n.dataset.id,fetch(a.api.public_url+"/images/"+t).then(a=>a.json()).then(a=>{e.innerHTML=a.image,n.classList.add("ninjadraw-ready"),delete n.dataset.process}))}}document.addEventListener("DOMContentLoaded",()=>{var a;for(a of document.querySelectorAll(".ninjadraw"))yalogica_ninjadraw_main(a)});