import{ag as v,ah as y,ae as L,_,k as d,e as b,c as p,B as s,a as T,v as x,C as m,t as S,f as n,E as l,W as D,r as B,o as i,G as I}from"./index.9_UWDUyH.js";import{u as f}from"./dynamic-import-helper.DN_NaYa5.js";import{I as C,L as w}from"./LinksTable.BQUXAdX9.js";import"./datetime.v8fTPlup.js";import"./Close.CP9mbBVR.js";import"./Button.Bq0AsH5N.js";import"./Close.nP60UGBF.js";import"./debounce.DK1RwK91.js";import"./QuestionMark.DUvjzuFY.js";import"./Slide.Dfu7CR71.js";import"./Check.DYwyuRF-.js";const A={class:"aioseo-blc-link-detail-page"},N={class:"header-container"},V={class:"first-row"},R={class:"second-row"},E={class:"first-column"},P={class:"header"},q={key:0,class:"load-progress"},z=4,Y={__name:"LinkStatusDetail",setup(G){const u="aioseo-broken-link-checker",e=v(),t=y(),g=L(),c={backToLinks:_("Back to All Links",u),loading:_("Loading...",u)},o=d(()=>{var a;return!((a=t.linkStatus)!=null&&a.id)||e.links.rows.length===0}),h=d(()=>o.value?c.loading:t.linkStatus.url);return b(()=>{t.resetState(),e.resetState();const r=f().currentRoute.value.query.linkStatusId;if(!r){f().push({name:"broken-links"});return}t.linkStatusId=r,t.getLinkStatusData(),e.linkStatusId=r,e.fetchData({limit:g.settings.tablePagination.linksTable,offset:0,searchTerm:""})}),(a,r)=>{const k=B("router-link");return i(),p("div",A,[s("div",N,[s("div",V,[T(k,{to:{name:"broken-links"}},{default:x(()=>[I(" ← "),s("span",null,m(c.backToLinks),1)]),_:1})]),s("div",R,[s("div",E,[s("span",P,m(h.value),1),o.value?l("",!0):(i(),S(n(C),{key:0,linkStatus:n(t).linkStatus},null,8,["linkStatus"]))])])]),o.value?(i(),p("div",q,[s("div",{class:"load-progress-value",style:D({animationDuration:z+"s"})},null,4)])):l("",!0),o.value?l("",!0):(i(),S(n(w),{key:1,linkStatus:n(t).linkStatus,links:n(e).links},null,8,["linkStatus","links"]))])}}};export{Y as default};
