import{I as o}from"./app-core.a6d808ce.js";import{r as p,u as c}from"./vendor-vue-ui.de3ab35f.js";const I=(r={})=>{const{post:s,postIndex:t,processAdditionalFilters:i,requestType:a}=r,e=p(!1),u=c(()=>{let n=o().linksReport.prioritizedPosts;return Array.isArray(n)&&(n=n.map(Number)),n.includes(parseInt(s.ID))});return{doRefresh:()=>{e.value=!0,window.aioseoBus.$emit("updatingLinks",!0),o().linksRefresh({postIndex:t?.value||t,postId:s?.value?.ID||s.ID,[a]:!0}).finally(()=>{e.value=!1,window.aioseoBus.$emit("updatingLinks",!1),i({filters:{postIndex:t?.value||t,postId:s?.value?.ID||s.ID}})})},isPrioritizedPost:u,refreshLoading:e}};export{I as u};
