// source --> https://www.urologiezentrum-schwandorf.de/wp-content/plugins/mabel-business-hours-indicator-pro/public/js/public.min.js?ver=3.2.8 
window.BHIPro={repl:function(e,t){e.insertAdjacentHTML("afterend",t),e.remove()},hours:function(e,t){e=window.mabel_script_vars.ajaxurl+"?t="+(new Date).getTime()+"&action=mb-bhipro-fetch-shortcode&code=mbhi_hours&options="+encodeURIComponent('location="'+e+'"');BHIPro.request(e,t)},loadAll:function(){for(var n=document.querySelectorAll("[data-fetch-shortcode]"),r=0;r<n.length;r++)!function(){var t=n[r],e=t.getAttribute("data-code"),o=t.getAttribute("data-arguments"),o=window.mabel_script_vars.ajaxurl+"?t="+(new Date).getTime()+"&action=mb-bhipro-fetch-shortcode&code="+e+"&options="+encodeURIComponent(o);BHIPro.request(o,function(e){BHIPro.repl(t,e)})}();for(n=document.querySelectorAll(".mbhi-if-wrapper"),r=0;r<n.length;r++)!function(){var t=n[r],o=t.getAttribute("data-code"),e=t.getAttribute("data-loc");BHIPro.request(wpApiSettings.root+"bhi/v1/open/"+e+"?t="+(new Date).getTime(),function(e){!e||((e=JSON.parse(e).open)&&"mbhi_ifopen"===o||!e&&"mbhi_ifclosed"===o)&&BHIPro.repl(t,t.innerHTML)})}()},request:function(e,t){var o=new XMLHttpRequest;o.open("GET",e,!0),o.onreadystatechange=function(){4==this.readyState&&200==this.status&&"function"==typeof t&&t(this.responseText)},o.send(null)}},document.addEventListener("DOMContentLoaded",function(){BHIPro.loadAll()});