1import{_ as d,o as s,c as t,i as c,e as l,q as u,P as p,S as o,m,y as f}from"./Bv6rD22K.js";import{R as x}from"./Bcd6_2Ce.js";const _={name:"ReindexThisLink",props:{postId:{type:String,required:!0},isNexusPost:{type:Boolean}},data(){return{isReindexing:!1}},computed:{...m(f,["isAdmin"])},methods:{reindex(){this.isReindexing=!0,this.$apollo.mutate({mutation:x,variables:{postId:this.postId,prefix:(this._.provides[p]||this.$route).query?.original_site||null,isNexusPost:this.isNexusPost}}).then(({data:{reindexPost:i}})=>{i?o().addToastNotification({toastType:"success",description:"Post reindexed succesfully"}):o().addGenericErrorNotification()}).catch(()=>{o().addGenericErrorNotification()}).finally(()=>{this.isReindexing=!1})}}},h={key:0},y={key:0,style:{"font-style":"italic"}};function N(i,e,R,g,r,n){return i.isAdmin?(s(),t("div",h,[r.isReindexing?(s(),t("span",y," reindex in progress... ")):(s(),t("a",{key:1,href:"#",onClick:e[0]||(e[0]=c((...a)=>n.reindex&&n.reindex(...a),["prevent"]))}," Reindex This ")),e[1]||(e[1]=l("br",null,null,-1))])):u("",!0)}const S=Object.assign(d(_,[["render",N]]),{__name:"ReindexThisLink"});export{S as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.