import{f as v,h as y,d as L,j as b,_ as d}from"./index.ZNJz487u.js";import{u as p}from"./dynamic-import-helper.B0tDwIte.js";import{c as I,I as D,L as T}from"./LinksTable.DIJ1l1eR.js";import{m as x,r as B,o as i,c as m,f as t,a as w,w as A,j as C,t as S,h as _,u as a,d as r,i as N,B as V,z as R}from"./runtime-dom.esm-bundler.DYN7TRGp.js";import"./luxon.D0U2KiOE.js";import"./Check.BHN-SUwW.js";import"./_plugin-vue_export-helper.BN1snXvA.js";import"./Button.Bac-oBXH.js";import"./numbers.Bx2B3lvf.js";import"./debounce.DK1RwK91.js";import"./Tooltip.C0YGz9iO.js";import"./Slide.h5rY55cR.js";import"./Input.Cq2G8d2G.js";import"./Close.DIUMfQ03.js";import"./QuestionMark.DkH01Mbm.js";import"./allowed.BLuajkg5.js";const j=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})}}}),z={class:"aioseo-blc-link-detail-page"},P={class:"header-container"},U={class:"first-row"},q={class:"second-row"},E={class:"first-column"},M={class:"header"},F={key:0,class:"load-progress"},G=4,it={__name:"LinkStatusDetail",setup(l){const u="broken-link-checker-seo",o=I(),s=j(),f=b(),c={backToLinks:d("Back to All Links",u),loading:d("Loading...",u)},n=V(!0),h=R(()=>n.value?c.loading:s.linkStatus.url);return x(()=>{s.resetState(),o.resetState();const e=p().currentRoute.value.query.linkStatusId;if(!e){p().push({name:"broken-links"});return}s.linkStatusId=e,s.getLinkStatusData(),o.linkStatusId=e,o.fetchData({limit:f.settings.tablePagination.linksTable,offset:0,searchTerm:""}).finally(()=>{n.value=!1})}),(g,e)=>{const k=B("router-link");return i(),m("div",z,[t("div",P,[t("div",U,[w(k,{to:{name:"broken-links"}},{default:A(()=>[e[0]||(e[0]=C(" ← ",-1)),t("span",null,S(c.backToLinks),1)]),_:1})]),t("div",q,[t("div",E,[t("span",M,S(h.value),1),n.value?r("",!0):(i(),_(a(D),{key:0,linkStatus:a(s).linkStatus},null,8,["linkStatus"]))])])]),n.value?(i(),m("div",F,[t("div",{class:"load-progress-value",style:N({animationDuration:G+"s"})},null,4)])):r("",!0),n.value?r("",!0):(i(),_(a(T),{key:1,linkStatus:a(s).linkStatus,links:a(o).links},null,8,["linkStatus","links"]))])}}};export{it as default};
