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-Cr86_nOs.js";import O from"./SlaughterAgentShare-D_i05UoW.js";import{c as e}from"./index.esm-BcDC8KuM.js";import{L as n}from"./LinkItem-Tk56BMy7.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-Dua7tTwQ.js";import"./FilterAlt-RwhTl5ac.js";import"./styled-components.browser.esm-gS9mh05b.js";import"./AdvancedTable-BvRVoK6m.js";import"./index-IuzvFnSU.js";import"./Close-C8iZ2Qr6.js";import"./Search-DLgMQCPC.js";import"./Delete-CTUmuli-.js";import"./NumberFormatCustom-DwWPj40N.js";import"./SimpleTable-CWlU9uE0.js";import"./SlaughterManageInventoryAllocationOperations-Bi-RzRoF.js";import"./Tune-m0V6JHJm.js";import"./Edit-DVocKJob.js";import"./CheckCircleOutline-D9rbgcIW.js";import"./SlaughterAllocateToGuild-B14VMvtK.js";import"./slaughter-get-guilds-for-allocate-DTBMr0CE.js";import"./toBase64-CmPKyXM7.js";import"./PublishedWithChanges-wX45M9wC.js";import"./province-policy-upload-image-DeEToUvt.js";import"./LabelField-DYohZZRX.js";import"./BackButton-7Uc4b2uz.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};
