1import{P as r,Q as o,j as e,U as d,V as c,W as l,X as m,Y as p,B as u,A as h,cO as g,a4 as t}from"./main-BLmo4jD8.js";import{A as f}from"./AdminLayout-Bmdt4vUM.js";import{L as x}from"./loader-circle-XnsuZg02.js";import{R as b}from"./refresh-cw-2L6_cwIu.js";import"./breadcrumb-CzYhKU5P.js";import"./chevron-right-CWkAvE-8.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new s.Error().stack;n&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[n]="b0c17a43-3a5c-4f4a-a20f-1b228de0425d",s._sentryDebugIdIdentifier="sentry-dbid-b0c17a43-3a5c-4f4a-a20f-1b228de0425d")}catch{}})();const j=()=>o.post("/v1/sitemap/admin/generate",{}).then(({data:s})=>s),y=()=>r({mutationFn:j}),w=()=>{const s=y(),n=()=>{s.mutate(void 0,{onSuccess:a=>{t.success(`Sitemap generation enqueued (job ${a.jobId})`)},onError:a=>{const i=a instanceof g?a.response?.data?.error:void 0;t.error(i??"Failed to trigger sitemap generation")}})};return e.jsx(f,{links:[e.jsx(h,{to:"/admin/sitemap",children:"Sitemap"},"sitemap")],children:e.jsx("div",{className:"container p-4 max-w-5xl",children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h1",{className:"text-2xl font-semibold",children:"Sitemap"}),e.jsx("p",{className:"text-muted-foreground",children:"The user content public sitemaps (videos & showcases) are regenerated nightly and uploaded to the R2 assets bucket. Trigger an immediate regeneration here â useful for initial population or after a bulk change."})]}),e.jsxs(d,{children:[e.jsxs(c,{children:[e.jsx(l,{children:"Regenerate now"}),e.jsx(m,{children:"Enqueues a background job (it won't block). Watch the API logs for the completion line with URL counts."})]}),e.jsx(p,{children:e.jsx(u,{onClick:n,disabled:s.isPending,children:s.isPending?e.jsxs(e.Fragment,{children:[e.jsx(x,{className:"w-4 h-4 mr-2 animate-spin"}),"Enqueuing..."]}):e.jsxs(e.Fragment,{children:[e.jsx(b,{className:"w-4 h-4 mr-2"}),"Regenerate sitemap"]})})})]})]})})})},R=()=>e.jsx(w,{});export{R as component};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.