import{r}from"./react-vendor-CmFgShSM.js";import{u as n,f as p}from"./redux-vendor-B7uoacJt.js";import{$ as m,X as e,fs as u,ft as c}from"./index-Cr86_nOs.js";function F(s,l,t){(e()==="CityOperator"||e()==="Poultry"||e()==="KillHouse")&&(s.includes("Poultry")||s.includes("CityOperator")||s.includes("KillHouse"))?t(u(l)):t(c(l))}const H=s=>{const l=n(),t=p(f=>f.fileSlice),[i,a]=r.useState(t),[o]=m();return r.useEffect(()=>{(e()==="CityOperator"||e()==="Poultry"||e()==="KillHouse"||e()==="KillHouseVet")&&(o.includes("Poultry")||o.includes("CityOperator")||o.includes("KillHouse")||o.includes("KillHouseVet"))?l(u(s)):l(c(s))},[]),r.useEffect(()=>{a(t)},[t]),i||[]};export{F as g,H as u};
