1/* ANPG DEVTEAM - 29/09/2026, 14:34:20 */ 2import{j as e}from"./data-vendor-BRYI0K8G.js";import{h as g,i as h,r as f}from"./react-vendor-Bj9LQV-u.js";import{P as l}from"./PageLayout-nUtosKtI.js";import{bK as j,a7 as i,g as a,b as c,S as r,a8 as b,R as N}from"./index-B5fS5HUA.js";import{W as d}from"./WPContent-BzkEOdPi.js";import{A as w}from"./AlngInfographic-C5LwqC4x.js";import{s as v}from"./productionReportDraft-Bin3K7ms.js";import{u as R}from"./i18n-vendor-BSIZ7LIS.js";import{A as m}from"./arrow-left-B5pHXlkl.js";import"./PageBreadcrumb-D2posgoP.js";import"./motion-vendor-DMc3mo8t.js";import"./house-B0n5Y9eN.js";import"./star-BMTUmwlW.js";import"./circle-check-BAB09i3P.js";import"./charts-vendor-Cs07Jtv5.js";function M(){const{slug:p}=g(),n=h(),{t:s}=R(),{data:t,isLoading:u}=j(p),o=f.useMemo(()=>v((t==null?void 0:t.content)||""),[t==null?void 0:t.content]);return u?e.jsx(l,{title:s("pages.productionReports.loading"),subtitle:s("pages.productionReports.title"),icon:e.jsx(i,{className:"w-8 h-8 text-primary"}),breadcrumbs:[{labelKey:"nav.production",href:"/producao"},{label:s("pages.productionReports.title"),href:"/producao/relatorios"},{label:"..."}],children:e.jsxs("div",{className:"max-w-4xl mx-auto space-y-6",children:[e.jsx(a,{className:"h-8 w-3/4"}),e.jsx(a,{className:"h-64 w-full rounded-2xl"}),e.jsx(a,{className:"h-4 w-full"}),e.jsx(a,{className:"h-4 w-5/6"})]})}):t?e.jsx(l,{title:t.title,subtitle:s("pages.productionReports.title"),backgroundImage:t.image,icon:e.jsx(i,{className:"w-8 h-8 text-primary"}),breadcrumbs:[{labelKey:"nav.production",href:"/producao"},{label:s("pages.productionReports.title"),href:"/producao/relatorios"},{label:t.title}],children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx(r,{children:e.jsxs(c,{variant:"ghost",onClick:()=>n("/producao/relatorios"),className:"mb-8 -ml-4",children:[e.jsx(m,{className:"w-4 h-4 mr-2"}),s("pages.productionReports.backToList")]})}),e.jsx(r,{delay:.1,children:e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-6 leading-tight",children:e.jsx(b,{text:t.title})}),e.jsx("div",{className:"flex flex-wrap items-center gap-4 text-muted-foreground",children:e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(N,{className:"w-4 h-4"}),t.date]})})]})}),t.image&&e.jsx(r,{delay:.2,children:e.jsx("div",{className:"rounded-2xl overflow-hidden mb-8 shadow-lg",children:e.jsx("img",{src:t.image,alt:t.title,className:"w-full h-auto object-cover",onError:x=>{x.currentTarget.src="/placeholder.svg"}})})}),e.jsx(r,{delay:.3,children:e.jsx("article",{className:"prose prose-lg max-w-none dark:prose-invert prose-headings:text-foreground prose-p:text-muted-foreground prose-strong:text-foreground prose-li:text-muted-foreground prose-img:rounded-lg prose-table:text-sm",children:e.jsxs("div",{className:"article-content",children:[o.before&&e.jsx(d,{html:o.before,maxWidth:"none"}),o.data&&e.jsx(w,{data:o.data}),o.after&&e.jsx(d,{html:o.after,maxWidth:"none"})]})})})]})}):e.jsx(l,{title:s("pages.productionReports.notFoundTitle"),subtitle:s("pages.productionReports.title"),icon:e.jsx(i,{className:"w-8 h-8 text-primary"}),breadcrumbs:[{labelKey:"nav.production",href:"/producao"},{label:s("pages.productionReports.title"),href:"/producao/relatorios"},{label:s("pages.productionReports.notFoundTitle")}],children:e.jsxs("div",{className:"text-center py-12",children:[e.jsx("p",{className:"text-muted-foreground mb-8",children:s("pages.productionReports.notFoundText")}),e.jsxs(c,{onClick:()=>n("/producao/relatorios"),children:[e.jsx(m,{className:"w-4 h-4 mr-2"}),s("pages.productionReports.backToList")]})]})})}export{M as default};
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.