import{u as a,b as u}from"./links.6d4c0bdb.js";const c={emits:["changes-saved"],methods:{processSaveChanges(){const e=a();e.loading=!0;let o=!1,n=!1,t="saveChanges";setTimeout(()=>{o=!0,n&&(e.loading=!1)},1500);const s=u();this.$router.currentRoute.value.name==="htaccess-editor"&&(t="saveHtaccess",s.htaccessError=null),e.aioseo.data.isNetworkAdmin&&this.$router.currentRoute.value.name==="robots-editor"&&(t="saveNetworkRobots"),s[t]().then(r=>{r&&r.body.redirection||(o||this.$router.currentRoute.value.name==="htaccess-editor"?e.loading=!1:n=!0,window.aioseoBus.$emit("changes-saved"))})}}};export{c as S};
