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-Vwb3Bce5.js";import O from"./SlaughterAgentShare-CwXbxXJ2.js";import{c as e}from"./index.esm-BcDC8KuM.js";import{L as n}from"./LinkItem-Cp7DiDkz.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-DugzNG82.js";import"./FilterAlt-CTDmPS36.js";import"./styled-components.browser.esm-gS9mh05b.js";import"./AdvancedTable-B0ObjV8k.js";import"./index-CgNdnt2v.js";import"./Close-8pFLGZ5w.js";import"./Search-CLlOaERQ.js";import"./Delete-DHYHiC8G.js";import"./NumberFormatCustom-DwWPj40N.js";import"./SimpleTable-B3_6HY_p.js";import"./SlaughterManageInventoryAllocationOperations-CAkldXdj.js";import"./Tune-DzkdDfJZ.js";import"./Edit-CwJaslma.js";import"./CheckCircleOutline-DkCEhVRL.js";import"./SlaughterAllocateToGuild-D4Rv4RKa.js";import"./slaughter-get-guilds-for-allocate-Xqnmd7KJ.js";import"./toBase64-DB8tmZmy.js";import"./PublishedWithChanges-BErs-ATv.js";import"./province-policy-upload-image-Bz2ni3_d.js";import"./LabelField-BQFRAtg7.js";import"./BackButton-CX1bfrW9.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};
