import{_ as $,a as I}from"./CQblF2yi.js";import{_ as P}from"./C-XkP9tB.js";import{_ as V}from"./DFGWrG5M.js";import{_ as j}from"./BKofJQ5v.js";import{_ as q}from"./BnFHREeV.js";import{_ as K}from"./BbCYHBXa.js";import{_ as L}from"./BXyDg5m4.js";import{d as J,N as O,a4 as U,i as W,ch as z,a5 as G,J as Q,e as o,o as t,a as i,l as n,c as _,w as p,m as e,F as u,r as g,q as X,b as Y,t as x}from"./Dk4AzF7j.js";import"./C_tXuDKt.js";import"./CR2z6V-x.js";import"./D7D5X_-3.js";import"./DgCXB7yu.js";import"./CJbRX-Xv.js";import"./BOMWTB7S.js";import"./B_jJHUd2.js";import"./DMtpgJrn.js";import"./D5F0NbWF.js";import"./88opOQSr.js";import"./BJxNwbOK.js";import"./BTe-eGo6.js";import"./DXyvFCCy.js";import"./PJSlhYeJ.js";import"./NkNhW2e0.js";import"./Dptbt2z6.js";const Z={key:0,class:"flex items-center o_gap-2 flex-wrap o_mb-4"},ee={key:1,class:"flex flex-col o_gap-6 @container/simpleresult"},te={key:0,class:"text-uiText-muted font-normal"},oe={class:"list-disc o_ml-4 text-sm text-uiText-toned text-pretty max-w-[70ch]"},b="sitemapmobile",Ne=J({__name:"sitemapMobile-[pid]-[sid]",setup(re){const{kapi:k}=O(),{setCachedData:y,addTimeToProcessedData:S}=U(),M=W(),{sid:c,pid:C}=M.params;if(!c)throw new Error("sid is required");const{setFirstSeenData:D}=z(),{data:a,error:d,status:se,refresh:f}=G(`metrics-sitemap-${c||0}`,async()=>await k("CheckSitemap").then(r=>r.getResults(Number(c))),{transform:r=>{D(Number(C),Number(c));const l={results:Object.values(r.results)};return S(l)},getCachedData:(r,l,m)=>{if(!(m.cause==="refresh:manual"||m.cause==="refresh:hook"))return y(r)}}),{t:h}=Q();return(r,l)=>{const m=$,v=P,w=I,E=V,N=j,R=q,A=K,T=L;return t(),o("div",null,[i(v,{"page-key":"pMonitoringSeoSitemapMobile"},{title:p(()=>[i(m,{title:"pMonitoringSeoSitemapMobile","info-type":b})]),_:1}),e(a)?.results?(t(),o(u,{key:0},[i(w,{"data-count":e(a).results.length,class:"o_mb-6"},null,8,["data-count"]),e(a).results.length?(t(),o("div",Z,[i(E,{"metric-key":b,onSaveSettings:e(f)},null,8,["onSaveSettings"])])):n("",!0),e(a).results.length?(t(),o("div",ee,[(t(!0),o(u,null,g(e(a).results,(s,B)=>(t(),_(A,{key:B,"component-info":s.component},{header:p(()=>[s.component.name?(t(),o("span",te,x(`(${s.component.name})`),1)):n("",!0)]),default:p(()=>[i(N,{status:s.errors.length?"danger":"success",title:e(h)("sitemapMobileResults.sitemapErrorHeadline",{n:s.errors.length}),description:e(h)("sitemapMobileResults.sitemapErrorSubline"),class:"o_mb-2"},null,8,["status","title","description"]),s.errors.length?(t(),_(R,{key:0,title:r.$t("sitemapMobileResults.sitemapErrorList"),color:"error",variant:"subtle",icon:e(X).icoError,class:"o_mt-6 max-w-max"},{description:p(()=>[Y("ul",oe,[(t(!0),o(u,null,g(s.errors,(F,H)=>(t(),o("li",{key:H},x(F),1))),128))])]),_:2},1032,["title","icon"])):n("",!0)]),_:2},1032,["component-info"]))),128))])):n("",!0)],64)):n("",!0),e(d)?(t(),_(T,{key:1,error:e(d),refresh:e(f)},null,8,["error","refresh"])):n("",!0)])}}});export{Ne as default};
