import{j as r,T as o,aI as _}from"./mui-vendor-CkIVaoQP.js";import{G as a,S as u,X as c,ef as E,eg as R,eh as p,ei as T,ej as A,ek as l,el as x,em as d,en as j}from"./index-CeyyVc1v.js";import O from"./SlaughterAgentShare-DjSsZVvD.js";import{c as e}from"./index.esm-BcDC8KuM.js";import{L as n}from"./LinkItem-DT6qswcs.js";import{N as s}from"./NavLink-D2GD_ItM.js";import{f as S}from"./react-vendor-CmFgShSM.js";import"./redux-vendor-B7uoacJt.js";import"./index.esm-Bu7XMDZU.js";import"./iconBase-BEJYyZsk.js";import"./ResponsiveTable-w7hk7Uq8.js";import"./FilterAlt-scT0HEUg.js";import"./styled-components.browser.esm-gS9mh05b.js";import"./AdvancedTable-BYmmBtmq.js";import"./index-CIfb_iLp.js";import"./Close-_jAEIgMD.js";import"./Search-Dek2fED1.js";import"./Delete-C5MyLelE.js";import"./NumberFormatCustom-DwWPj40N.js";import"./SimpleTable-DBAoNnCU.js";import"./SlaughterManageInventoryAllocationOperations-Bla8JB6Q.js";import"./Tune-D4M2CAhp.js";import"./Edit-CqBj1Y2L.js";import"./CheckCircleOutline-Ci9-hVKX.js";import"./SlaughterAllocateToGuild-Dfz5LRq5.js";import"./slaughter-get-guilds-for-allocate-B6OrhhMj.js";import"./toBase64-BzgTOHsW.js";import"./PublishedWithChanges-C8kvr_m4.js";import"./province-policy-upload-image-CRJ-U4Kc.js";import"./LabelField-B6eRSoQP.js";import"./BackButton-Crzr7NMa.js";const m=t=>{const i=c();return i==="SuperAdmin"?t?E:R:i==="AdminX"?t?p:T:t?A:l},N=()=>r.jsxs(a,{container:!0,gap:u.SMALL,p:u.SMALL,direction:{xs:"column",md:"row"},justifyContent:"center",children:[r.jsx(s,{to:m(!0),children:r.jsx(n,{icon:r.jsx(e,{size:30,color:"#244CCC"}),title:r.jsxs(r.Fragment,{children:[r.jsx(o,{children:"گزارش پخش روزانه"}),r.jsx(o,{variant:"caption",children:"کشتارگاه به مباشر/ صنف"})]})})}),r.jsx(s,{to:m(!1),children:r.jsx(n,{icon:r.jsx(e,{size:30,color:"#244CCC"}),title:r.jsxs(r.Fragment,{children:[r.jsx(o,{children:"گزارش پخش روزانه"}),r.jsx(o,{variant:"caption",children:"مباشر به صنف"})]})})})]}),tr=()=>{const{pathname:t}=S();return r.jsx(_,{display:"flex",justifyContent:"center",children:r.jsxs(a,{container:!0,direction:"column",justifyContent:"center",my:u.MEDIUM,xs:12,sm:12,md:10,lg:10,children:[(t===x||t===d||t===j)&&r.jsx(N,{}),(t===A||t===E||t===p)&&r.jsx(O,{})]})})};export{tr as default};