import{_ as $,a as I}from"./DCtuMFER.js";import{_ as P}from"./DXaD0OjS.js";import{_ as V}from"./BGi3spfc.js";import{_ as q}from"./CyO5g1gb.js";import{_ as K}from"./DbksU3dH.js";import{_ as L}from"./DPmE0egs.js";import{_ as j}from"./BY0xeA_q.js";import{d as J,N as O,a3 as U,i as W,P as z,a4 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 x,q as X,b as Y,t as k}from"./B08CJtNn.js";import"./laKVya4-.js";import"./MxJSE5eV.js";import"./BTwP6ady.js";import"./BXavTXDM.js";import"./CqE4Z78-.js";import"./fTZc3uM5.js";import"./88opOQSr.js";import"./eHv8qUqa.js";import"./rOCSnSVW.js";import"./BRNs145u.js";import"./CD8fUNjX.js";import"./CUy7HhdT.js";import"./CRXJzjwR.js";import"./xjUEazAQ.js";import"./aIDcP5lR.js";import"./NkNhW2e0.js";import"./BmXXXyAy.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",Re=J({__name:"sitemapMobile-[pid]-[sid]",setup(re){const{kapi:y}=O(),{setCachedData:S,addTimeToProcessedData:M}=U(),d=W(),{sid:m,pid:v}=d.params;if(!m)throw new Error("sid is required");const{trackFirstSeen:w}=z(),{data:a,error:f,status:se,refresh:h}=G(`metrics-sitemap-${m||0}`,async()=>await y("CheckSitemap").then(r=>r.getResults(Number(m))),{transform:r=>{w(Number(v),Number(m),d.name);const l={results:Object.values(r.results)};return M(l)},getCachedData:(r,l,c)=>{if(!(c.cause==="refresh:manual"||c.cause==="refresh:hook"))return S(r)}}),{t:g}=Q();return(r,l)=>{const c=$,C=P,D=I,E=V,N=q,R=K,T=L,A=j;return t(),o("div",null,[i(C,{"page-key":"pMonitoringSeoSitemapMobile"},{title:p(()=>[i(c,{title:"pMonitoringSeoSitemapMobile","info-type":b})]),_:1}),e(a)?.results?(t(),o(u,{key:0},[i(D,{"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(h)},null,8,["onSaveSettings"])])):n("",!0),e(a).results.length?(t(),o("div",ee,[(t(!0),o(u,null,x(e(a).results,(s,H)=>(t(),_(T,{key:H,"component-info":s.component},{header:p(()=>[s.component.name?(t(),o("span",te,k(`(${s.component.name})`),1)):n("",!0)]),default:p(()=>[i(N,{status:s.errors.length?"danger":"success",title:e(g)("sitemapMobileResults.sitemapErrorHeadline",{n:s.errors.length}),description:e(g)("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,x(s.errors,(B,F)=>(t(),o("li",{key:F},k(B),1))),128))])]),_:2},1032,["title","icon"])):n("",!0)]),_:2},1032,["component-info"]))),128))])):n("",!0)],64)):n("",!0),e(f)?(t(),_(A,{key:1,error:e(f),refresh:e(h)},null,8,["error","refresh"])):n("",!0)])}}});export{Re as default};
