1import{j as e,cn as c,s as x,cE as h,O as w,X as b,dR as f}from"./vendor-ui-fc56ca80.js";import{f as j,e as g,L as n,O as v}from"./vendor-react-f9ccc48d.js";import{af as y,B as a,c as o}from"./index-90016d22.js";import{u as N}from"./vendor-utils-323b9898.js";import"./vendor-firebase-a557f106.js";import"./vendor-charts-9af8b7c0.js";function E(){const{t}=N("admin"),m=j(),u=g(),r=m.pathname,s=p=>p==="/app/newsletters"?r==="/app/newsletters"||r==="/app/newsletters/":r.startsWith(p),i=r.includes("/newsletters/new")||r.includes("/newsletters/edit/"),l=r.includes("/newsletters/view/"),d=i||l;return e.jsxs("div",{className:"space-y-6",children:[e.jsx(y,{icon:e.jsx(c,{className:"h-5 w-5"}),title:t("newsletterLayout.header.title"),description:t("newsletterLayout.header.description"),secondaryActions:d?e.jsxs(a,{variant:"outline",onClick:()=>u("/app/newsletters"),children:[e.jsx(x,{className:"mr-2 h-4 w-4"}),t("newsletterLayout.buttons.back")]}):void 0,action:!i&&!l?e.jsx(a,{asChild:!0,children:e.jsxs(n,{to:"/app/newsletters/new",children:[e.jsx(h,{className:"mr-2 h-4 w-4"}),t("newsletterLayout.buttons.createNewsletter")]})}):void 0}),!d&&e.jsx("div",{className:"border-b mb-6",children:e.jsxs("nav",{className:"flex space-x-4 overflow-x-auto","aria-label":"Tabs",children:[e.jsx(a,{variant:"ghost",asChild:!0,className:o("flex items-center gap-2 rounded-none border-b-2 px-4 py-2 text-sm font-medium",s("/app/newsletters")&&!s("/app/newsletters/recipients")&&!s("/app/newsletters/templates")&&!s("/app/newsletters/stats")?"border-primary text-foreground":"border-transparent text-muted-foreground hover:border-muted hover:text-foreground"),children:e.jsxs(n,{to:"/app/newsletters",children:[e.jsx(c,{className:"h-4 w-4"}),t("newsletterLayout.tabs.myNewsletters")]})}),e.jsx(a,{variant:"ghost",asChild:!0,className:o("flex items-center gap-2 rounded-none border-b-2 px-4 py-2 text-sm font-medium",s("/app/newsletters/recipients")?"border-primary text-foreground":"border-transparent text-muted-foreground hover:border-muted hover:text-foreground"),children:e.jsxs(n,{to:"/app/newsletters/recipients",children:[e.jsx(w,{className:"h-4 w-4"}),t("newsletterLayout.tabs.recipients")]})}),e.jsx(a,{variant:"ghost",asChild:!0,className:o("flex items-center gap-2 rounded-none border-b-2 px-4 py-2 text-sm font-medium",s("/app/newsletters/templates")?"border-primary text-foreground":"border-transparent text-muted-foreground hover:border-muted hover:text-foreground"),children:e.jsxs(n,{to:"/app/newsletters/templates",children:[e.jsx(b,{className:"h-4 w-4"}),t("newsletterLayout.tabs.templates")]})}),e.jsx(a,{variant:"ghost",asChild:!0,className:o("flex items-center gap-2 rounded-none border-b-2 px-4 py-2 text-sm font-medium",s("/app/newsletters/stats")?"border-primary text-foreground":"border-transparent text-muted-foreground hover:border-muted hover:text-foreground"),children:e.jsxs(n,{to:"/app/newsletters/stats",children:[e.jsx(f,{className:"h-4 w-4"}),t("newsletterLayout.tabs.stats")]})})]})}),e.jsx(v,{})]})}export{E 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.