import{H as v,I as y,y as L,af as b,_ as d,q as I,k as D,e as T,c as p,B as t,a as x,v as B,C as _,t as S,f as n,E as r,Y as C,r as A,o as i,G as N}from"./index.C4hPdFye.js";import{u as m}from"./dynamic-import-helper.-B9-7_nw.js";import{d as V,I as w,L as R}from"./LinksTable.BZdHn2LA.js";import"./datetime.ORdNXTFk.js";import"./Close.DkGVhhYT.js";import"./Button.C0Vw8Cat.js";import"./Close.ClJKEyQP.js";import"./debounce.DK1RwK91.js";import"./QuestionMark.CZzI4j5i.js";import"./Slide.Chsbk5hA.js";import"./Check.SoLfVs6D.js";const q=v("LinkStatusDetailStore",{state:()=>({linkStatusId:0,linkStatus:{}}),actions:{resetState(){this.linkStatusId=0,this.linkStatus={}},getLinkStatusData(){return y.post(L.restUrl("link-status-detail/")).send({linkStatusId:this.linkStatusId}).then(l=>{this.linkStatus=l.body.linkStatus})}}}),E={class:"aioseo-blc-link-detail-page"},P={class:"header-container"},U={class:"first-row"},z={class:"second-row"},G={class:"first-column"},H={class:"header"},M={key:0,class:"load-progress"},Y=4,st={__name:"LinkStatusDetail",setup(l){const u="aioseo-broken-link-checker",a=V(),s=q(),f=b(),c={backToLinks:d("Back to All Links",u),loading:d("Loading...",u)},e=I(!0),h=D(()=>e.value?c.loading:s.linkStatus.url);return T(()=>{s.resetState(),a.resetState();const o=m().currentRoute.value.query.linkStatusId;if(!o){m().push({name:"broken-links"});return}s.linkStatusId=o,s.getLinkStatusData(),a.linkStatusId=o,a.fetchData({limit:f.settings.tablePagination.linksTable,offset:0,searchTerm:""}).finally(()=>{e.value=!1})}),(g,o)=>{const k=A("router-link");return i(),p("div",E,[t("div",P,[t("div",U,[x(k,{to:{name:"broken-links"}},{default:B(()=>[N(" ← "),t("span",null,_(c.backToLinks),1)]),_:1})]),t("div",z,[t("div",G,[t("span",H,_(h.value),1),e.value?r("",!0):(i(),S(n(w),{key:0,linkStatus:n(s).linkStatus},null,8,["linkStatus"]))])])]),e.value?(i(),p("div",M,[t("div",{class:"load-progress-value",style:C({animationDuration:Y+"s"})},null,4)])):r("",!0),e.value?r("",!0):(i(),S(n(R),{key:1,linkStatus:n(s).linkStatus,links:n(a).links},null,8,["linkStatus","links"]))])}}};export{st as default};
