document.addEventListener("alpine:init",()=>{Alpine.store("navigation",{isNavigating:!1,start(){this.isNavigating=!0,document.body.classList.add("navigating")},end(){this.isNavigating=!1,document.body.classList.remove("navigating")}})});document.addEventListener("livewire:navigate",()=>{window.Alpine&&Alpine.store("navigation")&&Alpine.store("navigation").start()});document.addEventListener("livewire:navigated",()=>{window.Alpine&&Alpine.store("navigation")&&Alpine.store("navigation").end()});window.toast=function(i){window.dispatchEvent(new CustomEvent("toast",{detail:i}))};window.notify=function(i,n){n||(n=i,i="info"),window.toast({message:n,type:i})};
