This commit is contained in:
2026-01-19 15:40:45 +03:30
parent 0636f4dfbf
commit c0c612e1d8
342 changed files with 1562 additions and 4 deletions

1
.gitignore vendored
View File

@@ -9,7 +9,6 @@
/coverage /coverage
# production # production
/build
/dist /dist
# Vite # Vite

BIN
build/OIG e(1).png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 KiB

BIN
build/apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

View File

@@ -0,0 +1 @@
import{i as r,j as t}from"./mui-vendor-CkIVaoQP.js";import{r as a}from"./index-CeyyVc1v.js";var e={},o=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,d=o(a()),v=t;u=e.default=(0,d.default)((0,v.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");export{u as d};

View File

@@ -0,0 +1 @@
import{i as r,j as t}from"./mui-vendor-CkIVaoQP.js";import{r as a}from"./index-CeyyVc1v.js";var e={},i=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,o=i(a()),v=t;u=e.default=(0,o.default)((0,v.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline");export{u as d};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{j as r}from"./mui-vendor-CkIVaoQP.js";import"./react-vendor-CmFgShSM.js";const t=()=>r.jsx("div",{children:"AdminXDashboard"});export{t as default};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{j as d}from"./mui-vendor-CkIVaoQP.js";import{r as p}from"./react-vendor-CmFgShSM.js";import{J as b,K as v}from"./chart-vendor-sE2SUVPW.js";import{G as w}from"./index-CeyyVc1v.js";const E=({info:e,title:r,seperator:h,type:l,group:y})=>{const[o,m]=p.useState(y),s=p.useRef(null),n=["#1105f5","#f50505","#f5056d","#f505f5","#05a5f5","#05f5bd","#05f57d","#1f4f33","#95DFD3","#AEC7ED","#92BFFF","#B1B1E0","#fdcb6e","#636e72","#d63031","#7f8fa6","#40739e"],a=t=>n[t%n.length],C=(t,u)=>({type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t},{offset:1,color:u}]}),f=t=>{s.current=t},x=()=>{m(t=>!t),s.current&&s.current.setOption(i())},i=()=>l==="pie"?{title:{text:r,textStyle:{fontWeight:"bold",fontSize:16,fontFamily:"iranyekan"},left:"center",padding:10},tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},legend:{orient:"vertical",right:10,top:"center",data:e==null?void 0:e.map(t=>t==null?void 0:t.name),textStyle:{fontFamily:"iranyekan",width:100,overflow:"truncate",ellipsis:"..."}},color:e==null?void 0:e.map((t,u)=>a(u)),series:[{name:r,type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"18",fontWeight:"bold"}},labelLine:{show:!1},data:e==null?void 0:e.map((t,u)=>({value:t.data[0],name:t.name,itemStyle:{color:a(u)}}))}],textStyle:{fontFamily:"iranyekan"}}:{title:{text:r,textStyle:{fontWeight:"bold",fontSize:16,fontFamily:"iranyekan"},left:"center",padding:10},xAxis:{type:"category",data:h,axisLabel:{rotate:30,interval:0,width:60,overflow:"truncate",fontSize:10}},yAxis:o?[{type:"value",axisLabel:{formatter:function(t){return t=+t,isFinite(t)?v(+t/1e3):""}}}]:{type:"value"},dataZoom:[{show:!1,start:0,end:100},{type:"inside",start:94,end:100}],toolbox:{show:!0,feature:{mark:{show:!0,title:{mark:"علامت گذاری",markUndo:"حذف علامت",markClear:"پاک کردن همه علامت‌ها"}},magicType:{show:!0,type:["line","bar"],title:{line:"خطی",bar:"میله‌ای",pie:"دایره ای"}},saveAsImage:{show:!0,title:"ذخیره به عنوان تصویر"},myCustomButton:{show:!0,title:o?"نمایش گروهی":"نمایش جداگانه",icon:"path://M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z",onclick:x}}},grid:{top:"20%",left:"1%",right:"1%",containLabel:!0},textStyle:{fontFamily:"iranyekan"},color:e==null?void 0:e.map((t,u)=>a(u)),series:e==null?void 0:e.map((t,u)=>{const c=a(u),g=a(u+1);return{...t,smooth:!0,type:l,itemStyle:{color:c},areaStyle:{color:C(c,g)},emphasis:{focus:"series"},stack:o?!1:"stack"}}),tooltip:{trigger:"axis",axisPointer:{type:"cross"}},legend:{data:e==null?void 0:e.map(t=>t==null?void 0:t.name),itemGap:10,top:"10%",type:"scroll",padding:[5,50],textStyle:{width:100,overflow:"truncate",ellipsis:"..."}}};return d.jsx(w,{xs:12,style:{height:"100%"},children:d.jsx(b,{option:i(),style:{height:"100%",width:"100%"},onChartReady:f})})};export{E as A};

View File

@@ -0,0 +1 @@
import{j as a,T as c,p as e}from"./mui-vendor-CkIVaoQP.js";import{M as F}from"./index-CIfb_iLp.js";import{r}from"./react-vendor-CmFgShSM.js";const f=({columns:p,data:u,name:n,pagination:l})=>{const[i,C]=r.useState(u);r.useEffect(()=>{C(u)},[u]),r.useEffect(()=>{const s=u==null?void 0:u.map((t,x)=>t==null?void 0:t.map((o,d)=>!o&&o!==0?"":o));C(s)},[u]);const A={viewColumns:!1,filter:!0,print:!1,download:!1,selectableRowsHeader:!1,selectableRowsHideCheckboxes:!0,responsive:"vertical",pagination:l||!0,fixedHeader:!0,tableBodyMaxHeight:"70vh",textLabels:{body:{noMatch:"داده ای جهت نمایش موجود نیست!",toolTip:"مرتب سازی",columnHeaderTooltip:s=>`مرتب سازی بر اساس ${s.label}`},pagination:{next:"صفحه بعد",previous:"صفحه قبل",rowsPerPage:"تعداد سطر در هر صفحه:",displayRows:"تعداد کل نتایج: "},toolbar:{search:"جستجو",downloadCsv:"دانلود CSV",print:"پرینت",viewColumns:"نمایش سطون ها",filterTable:"فیلتر جدول"},filter:{all:"همه",title:"فیلترها",reset:"پاکسازی"},viewColumns:{title:"نمایش ستون ها",titleAria:"نمایش/بستن ستون های جدول"},selectedRows:{text:"سطر انتخاب شده است",delete:"پاک کردن",deleteAria:"پاک کردن سطرهای انتخاب شده"}}};return a.jsx(F,{title:a.jsx(c,{textAlign:"start",children:n}),data:i,columns:p,options:A})};f.propTypes={columns:e.PropTypes.any,data:e.PropTypes.any,name:e.PropTypes.any,expandable:e.PropTypes.bool};export{f as A};

View File

@@ -0,0 +1 @@
import{i as e,j as a}from"./mui-vendor-CkIVaoQP.js";import{r as t}from"./index-CeyyVc1v.js";var r={},o=e;Object.defineProperty(r,"__esModule",{value:!0});var u=r.default=void 0,i=o(t()),d=a;u=r.default=(0,i.default)((0,d.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");export{u as d};

View File

@@ -0,0 +1 @@
import{i as r,j as t}from"./mui-vendor-CkIVaoQP.js";import{r as a}from"./index-CeyyVc1v.js";var e={},i=r;Object.defineProperty(e,"__esModule",{value:!0});var o=e.default=void 0,u=i(a()),v=t;o=e.default=(0,u.default)((0,v.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-5 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"}),"Article");export{o as d};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{j as l,I as T,aJ as q}from"./mui-vendor-CkIVaoQP.js";import{r as s,u as g}from"./react-vendor-CmFgShSM.js";import{A as G}from"./AdvancedTable-BYmmBtmq.js";import{d as L}from"./Plagiarism-BiXORbzo.js";import{u as _,f as w}from"./redux-vendor-B7uoacJt.js";import{L as B,a1 as J,h as O,p as S}from"./index-CeyyVc1v.js";const k=()=>{const a=_(),{avicultureRequests:o}=w(t=>t.avicultureSlice),[c,r]=s.useState(o);return s.useEffect(()=>{a(B()),a(J()).then(()=>{a(O())})},[]),s.useEffect(()=>{r(o)},[o]),c||[]},K=()=>{const a=g(),[o,c]=s.useState([]),r=k(),t=window.location.pathname.split("/")[1];s.useEffect(()=>{const I="/"+t+"/file/",p=r==null?void 0:r.filter((u,e)=>u.finalState==="archive"),N=p==null?void 0:p.map((u,e)=>{var n,A,d,f,C,y,E,v,F,h,x,D;return[e+1,u.orderCode,S(u==null?void 0:u.createDate),S(u==null?void 0:u.sendDate),(A=(n=u==null?void 0:u.process)==null?void 0:n.poultry)==null?void 0:A.poultryName,(f=(d=u==null?void 0:u.process)==null?void 0:d.poultry)==null?void 0:f.poultryMobile,(y=(C=u==null?void 0:u.process)==null?void 0:C.poultry)==null?void 0:y.poultryCity,(v=(E=u==null?void 0:u.process)==null?void 0:E.poultry)==null?void 0:v.poultryProvince,(h=(F=u==null?void 0:u.process)==null?void 0:F.poultry)==null?void 0:h.age,(D=(x=u==null?void 0:u.process)==null?void 0:x.poultry)==null?void 0:D.poultryQuantity,l.jsx(T,{"aria-label":"delete",color:"primary",onClick:()=>{var b,R;return a(I+((R=(b=u==null?void 0:u.process)==null?void 0:b.poultry)==null?void 0:R.poultryRequestId))},children:l.jsx(L,{})},u==null?void 0:u.orderCode)]});c(N)},[]);const[j]=s.useState(["ردیف","کد سفارش","تاریخ ثبت درخواست","تاریخ درخواست","مرغدار","تلفن مرغدار","شهر","استان","سن مرغ","تعداد","مشاهده"]);return l.jsx(q,{children:l.jsx(G,{expandable:!0,name:"درخواست های پایان یافته",columns:j,data:o})})};export{K as A,k as u};

View File

@@ -0,0 +1 @@
import{j as u,aI as d,I as h,T as n,cl as p,aO as m,aP as j,aQ as f,aR as C,aS as A}from"./mui-vendor-CkIVaoQP.js";import{u as g,j as o,r as y}from"./react-vendor-CmFgShSM.js";import{f as T,u as D}from"./redux-vendor-B7uoacJt.js";import{L as S,iA as I,h as E,G as e,S as i,p as b,q as F}from"./index-CeyyVc1v.js";import{d as G}from"./NavigateNext-ByUC5RGi.js";import{S as L}from"./SimpleTable-DBAoNnCU.js";import"./index-CIfb_iLp.js";import"./Close-_jAEIgMD.js";import"./Search-Dek2fED1.js";import"./Delete-C5MyLelE.js";const J=()=>{const{avicultureHallInspects:t}=T(s=>s.avicultureSlice),r=D(),l=g(),{key:c}=o(),{hall:x}=o();return y.useEffect(()=>{r(S()),r(I(c+"&hall="+x)).then(()=>{r(E())})},[]),u.jsx(d,{display:"flex",justifyContent:"center",children:u.jsx(e,{container:!0,direction:"column",justifyContent:"center",xs:12,sm:12,md:10,lg:10,children:u.jsx(e,{container:!0,justifyContent:"space-between",gap:i.SMALL,children:u.jsx(e,{xs:12,children:u.jsxs(e,{mt:i.MEDIUM,children:[u.jsx(e,{container:!0,alignItems:"center",children:u.jsxs(h,{"aria-label":"delete",color:"primary",onClick:()=>l(-1),children:[u.jsx(G,{}),u.jsx(n,{children:"بازگشت"})]})}),u.jsxs(p,{sx:{gap:i.MEDIUM},children:[t==null?void 0:t.map(s=>u.jsxs(m,{sx:{alignSelf:"flex-start",width:"100%"},children:[u.jsxs(j,{children:[u.jsx(f,{}),u.jsx(C,{})]}),u.jsxs(e,{container:!0,direction:"column",flexWrap:"nowrap",flex:"1",children:[u.jsx(e,{container:!0,children:u.jsx(e,{children:u.jsx(A,{children:u.jsxs(n,{variant:"body1",fontWeight:"bold",children:["بازرسی مورخ ",b(s.createDate)," ","ساعت ",F(s.createDate)]})})})}),u.jsx(e,{container:!0,xs:12,children:u.jsx(e,{xs:12,children:u.jsx(L,{columns:["موضوع بازرسی","توضیحات","تلفات","تصویر"],data:[[s.topic,s.description,s.Losses,s.image.length?s.image.map(a=>[u.jsx(e,{display:"inline-flex",children:u.jsx("a",{href:a,alt:"دانلود",children:u.jsx("img",{src:a,width:"80",height:"80",alt:"دانلود",style:{marginRight:"10px",borderRadius:"5px"}})})},a)]):"بدون پیوست"]]})})})]})]},s.id)),!(t!=null&&t.length)&&u.jsx(n,{variant:"body1",component:"span",children:"برای این سالن بازرسی ثبت نشده است."})]})]})})})})})};export{J as default};

View File

@@ -0,0 +1 @@
import{j as t,I as l,b as C}from"./mui-vendor-CkIVaoQP.js";import{r,u as d}from"./react-vendor-CmFgShSM.js";import{L as p,iL as f,h,Q as x,iM as m,iN as y,G as n,S as j}from"./index-CeyyVc1v.js";import{u as E,f as A}from"./redux-vendor-B7uoacJt.js";import{R as S}from"./ResponsiveTable-w7hk7Uq8.js";import"./FilterAlt-scT0HEUg.js";import"./styled-components.browser.esm-gS9mh05b.js";const g=()=>{const s=E(),{avicultureHallsInfo:a}=A(e=>e.avicultureSlice),[o,c]=r.useState([]),i=d();return r.useEffect(()=>{s(p()),s(f()).then(()=>{s(h())})},[]),r.useEffect(()=>{const e=a==null?void 0:a.map(u=>[u.hall,u.hatchingState==="active"?"دارد":"ندارد",x(new Date(u==null?void 0:u.hatchingDate),"yyyy/MM/dd"),u.inspections,t.jsx(l,{disabled:u.inspections===0,"aria-label":"delete",color:"primary",className:"avicultureActiveRequestsBtn",onClick:()=>i(y+u.poultryKey+"/"+u.hall),children:t.jsx(m,{})},1)]);c(e)},[a]),t.jsx(C,{display:"flex",justifyContent:"center",children:t.jsx(n,{container:!0,direction:"column",justifyContent:"center",xs:12,sm:12,md:10,lg:10,children:t.jsx(n,{justifyContent:"center",my:j.MEDIUM,children:t.jsx(S,{paginated:!0,title:"لیست سالن ها",columns:["شماره سالن","جوجه ریزی فعال","تاریخ آخرین جوجه ریزی","تعداد بازرسی ها","سوابق بازرسی"],data:o})})})})};export{g as default};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{j as u,aJ as p,cq as x,b1 as d,T as j,p as m,I as F,b as y}from"./mui-vendor-CkIVaoQP.js";import{r as a,u as E}from"./react-vendor-CmFgShSM.js";import{u as v,f as S}from"./redux-vendor-B7uoacJt.js";import{A as R}from"./AdvancedTable-BYmmBtmq.js";import{p as b,G as c,S as i,iO as w,Q as D,iz as L}from"./index-CeyyVc1v.js";import{d as T}from"./Plagiarism-BiXORbzo.js";import{C as B,a as I}from"./ChartLenear-WgLA0J0V.js";import"./index-CIfb_iLp.js";import"./Close-_jAEIgMD.js";import"./Search-Dek2fED1.js";import"./Delete-C5MyLelE.js";import"./chart-vendor-sE2SUVPW.js";import"./auto-gcBAg08D.js";const f=({data:s})=>{const[t,C]=a.useState({datasets:[]}),[l,h]=a.useState({datasets:[]});return a.useEffect(()=>{var o,e,n,g,A;C({labels:(o=s==null?void 0:s.hatchingChart)==null?void 0:o.map(r=>b(r==null?void 0:r.date)),datasets:[{label:"تعداد",backgroundColor:["rgba(33, 72, 214, 0.7)"],data:(e=s==null?void 0:s.hatchingChart)==null?void 0:e.map(r=>r==null?void 0:r.quantity),borderRadius:5},{label:"تلفات",backgroundColor:["rgba(100, 130, 160, 0.7)"],data:(n=s.hatchingChart)==null?void 0:n.map(r=>r==null?void 0:r.losses),borderRadius:5}]}),h({labels:(g=s==null?void 0:s.weightChart)==null?void 0:g.map(r=>b(r==null?void 0:r.date)),datasets:[{label:"قیمت",backgroundColor:["rgba(33, 72, 214, 0.7)"],data:(A=s==null?void 0:s.weightChart)==null?void 0:A.map(r=>r==null?void 0:r.weight),borderRadius:5}]})},[]),u.jsx(c,{mb:i.LARGE,children:u.jsxs(c,{container:!0,mt:i.MEDIUM,gap:i.SMALL,justifyContent:"space-between",children:[u.jsx(p,{sx:{width:"45%"},children:u.jsx(x,{children:u.jsxs(d,{children:[u.jsx(j,{gutterBottom:!0,variant:"body1",children:"نمودار حجم جوجه ریزی و تلفات دوره"}),u.jsx(B,{chartData:t})]})})}),u.jsx(p,{sx:{width:"45%"},children:u.jsx(x,{children:u.jsxs(d,{children:[u.jsx(j,{gutterBottom:!0,variant:"body1",children:"نمودار پایش وزن و بهره وری وزن"}),u.jsx(I,{chartData:l})]})})})]})})};f.propTypes={data:m.PropTypes.any};const z=()=>{const s=v(),{reports:t}=S(o=>o.avicultureSlice),[C,l]=a.useState(),h=E();return a.useEffect(()=>{s(w())},[]),a.useEffect(()=>{const o=t==null?void 0:t.table.map((e,n)=>[n+1,e.hatchingPeriod,D(new Date(e==null?void 0:e.hatchingDate),"yyyy/MM/dd"),e.hatchingChickenBreed,e.age,e.quantity,e.weightOfSuffering,e.averageFee,e.averageWeight,e.salesPrice.toLocaleString(),e.totalAmount.toLocaleString(),e.paidState==="paid"?"پرداخت شده":e.paidState==="pending"?"در انتظار پرداخت":"ندارد",u.jsx(F,{"aria-label":"delete",color:"primary",className:"avicultureActiveRequestsBtn",onClick:()=>h(L+(e==null?void 0:e.requestId)),children:u.jsx(T,{})},n)]);l(o)},[t]),u.jsx(y,{display:"flex",justifyContent:"center",children:u.jsx(c,{container:!0,direction:"column",justifyContent:"center",xs:12,sm:12,md:10,lg:10,children:u.jsxs(c,{xs:12,mt:i.SMALL,children:[u.jsx(c,{width:"100%",className:"avicultureActiveRequestsView",children:u.jsx(p,{children:u.jsx(R,{name:"گزارش مرغدار",columns:["ردیف","دوره جوجه ریزی","تاریخ جوجه ریزی","نژاد","سن","تعداد","رنج وزن","قیمت رنج","میانگین وزن شما","قیمت فروش","جمع مبلغ به تومان","تراکنش مالی","نمایش پرونده"],data:C})})}),u.jsx(f,{data:t})]})})})};export{z as default};

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -0,0 +1 @@
import{i as o,j as e,I as u,T as i}from"./mui-vendor-CkIVaoQP.js";import{r as s,G as n,S as l}from"./index-CeyyVc1v.js";import{u as c}from"./react-vendor-CmFgShSM.js";var r={},d=o;Object.defineProperty(r,"__esModule",{value:!0});var t=r.default=void 0,p=d(s()),v=e;t=r.default=(0,p.default)((0,v.jsx)("path",{d:"M14.59 7.41 18.17 11H6v2h12.17l-3.59 3.59L16 18l6-6-6-6zM2 6v12h2V6z"}),"Start");const j=()=>{const a=c();return e.jsx(n,{container:!0,alignItems:"center",my:l.SMALL,children:e.jsxs(u,{"aria-label":"delete",color:"primary",onClick:()=>a(-1),children:[e.jsx(t,{}),e.jsx(i,{mx:1,children:"بازگشت"})]})})};export{j as B};

View File

@@ -0,0 +1 @@
import{i as r,j as a}from"./mui-vendor-CkIVaoQP.js";import{r as t}from"./index-CeyyVc1v.js";var e={},o=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,c=o(t()),i=a;u=e.default=(0,c.default)((0,i.jsx)("path",{d:"M20 7h-5V4c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2M9 12c.83 0 1.5.67 1.5 1.5S9.83 15 9 15s-1.5-.67-1.5-1.5S8.17 12 9 12m3 6H6v-.75c0-1 2-1.5 3-1.5s3 .5 3 1.5zm1-9h-2V4h2zm5 7.5h-4V15h4zm0-3h-4V12h4z"}),"Badge");export{u as d};

View File

@@ -0,0 +1 @@
import{j as r,b as n}from"./mui-vendor-CkIVaoQP.js";import{G as t,S as e}from"./index-CeyyVc1v.js";import{A as o}from"./AdvancedTable-BYmmBtmq.js";import"./react-vendor-CmFgShSM.js";import"./redux-vendor-B7uoacJt.js";import"./index-CIfb_iLp.js";import"./Close-_jAEIgMD.js";import"./Search-Dek2fED1.js";import"./Delete-C5MyLelE.js";const s=()=>r.jsx(t,{children:r.jsx(o,{})}),f=()=>r.jsx(n,{display:"flex",justifyContent:"center",children:r.jsx(t,{container:!0,direction:"column",justifyContent:"center",xs:12,sm:12,md:10,lg:10,my:e.MEDIUM,children:r.jsx(t,{container:!0,justifyContent:"space-between",gap:e.SMALL,children:r.jsx(t,{xs:12,children:r.jsx(s,{})})})})});export{f as default};

View File

@@ -0,0 +1 @@
import{j as u,b as s,B as a}from"./mui-vendor-CkIVaoQP.js";import"./react-vendor-CmFgShSM.js";import{G as e,S as t}from"./index-CeyyVc1v.js";import{B as i}from"./BackButton-Crzr7NMa.js";import{R as n}from"./ResponsiveTable-w7hk7Uq8.js";import"./redux-vendor-B7uoacJt.js";import"./FilterAlt-scT0HEUg.js";import"./styled-components.browser.esm-gS9mh05b.js";const h=()=>{const r=[["1","1404/2/17","پرداخت شده","1,150,000",u.jsx(a,{href:"https://miran.storage.c2.liara.space/factor/1.pdf",size:"small",variant:"contained",children:"دانلود"},"ee")],["2","1404/2/16","پرداخت شده","830,000",u.jsx(a,{href:"https://miran.storage.c2.liara.space/factor/2.pdf",size:"small",variant:"contained",children:"دانلود"},"ee")],["3","1404/2/16","پرداخت شده","12,000,000",u.jsx(a,{href:"https://miran.storage.c2.liara.space/factor/3.pdf",size:"small",variant:"contained",children:"دانلود"},"ee")],["4","1404/2/15","پرداخت شده","120,000",u.jsx(a,{href:"https://miran.storage.c2.liara.space/factor/4.pdf",size:"small",variant:"contained",children:"دانلود"},"ee")],["5","1404/2/14","پرداخت شده","8,100,000",u.jsx(a,{href:"https://miran.storage.c2.liara.space/factor/5.pdf",size:"small",variant:"contained",children:"دانلود"},"ee")]];return u.jsx(s,{display:"flex",justifyContent:"center",children:u.jsx(e,{container:!0,direction:"column",justifyContent:"center",xs:12,sm:12,md:10,lg:10,my:t.MEDIUM,children:u.jsxs(e,{container:!0,justifyContent:"space-between",gap:t.SMALL,children:[u.jsx(e,{xs:12,container:!0,children:u.jsx(i,{})}),u.jsx(e,{xs:12,children:u.jsx(n,{paginated:!0,title:"تراکنش ها",data:r,columns:["ردیف","تاریخ","وضعیت","مبلغ تراکنش","جزئیات محصولات"]})})]})})})};export{h as default};

View File

@@ -0,0 +1 @@
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};

View File

@@ -0,0 +1 @@
import{i as r,j as t}from"./mui-vendor-CkIVaoQP.js";import{r as h}from"./index-CeyyVc1v.js";var e={},v=r;Object.defineProperty(e,"__esModule",{value:!0});var a=e.default=void 0,m=v(h()),s=t;a=e.default=(0,m.default)((0,s.jsx)("path",{d:"M12 7V3H2v18h20V7zM6 19H4v-2h2zm0-4H4v-2h2zm0-4H4V9h2zm0-4H4V5h2zm4 12H8v-2h2zm0-4H8v-2h2zm0-4H8V9h2zm0-4H8V5h2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8zm-2-8h-2v2h2zm0 4h-2v2h2z"}),"Business");export{a as d};

View File

@@ -0,0 +1 @@
import{i as t,j as r}from"./mui-vendor-CkIVaoQP.js";import{r as v}from"./index-CeyyVc1v.js";var e={},u=t;Object.defineProperty(e,"__esModule",{value:!0});var o=e.default=void 0,h=u(v()),i=r;o=e.default=(0,h.default)((0,i.jsx)("path",{d:"M15 11V5l-3-3-3 3v2H3v14h18V11zm-8 8H5v-2h2zm0-4H5v-2h2zm0-4H5V9h2zm6 8h-2v-2h2zm0-4h-2v-2h2zm0-4h-2V9h2zm0-4h-2V5h2zm6 12h-2v-2h2zm0-4h-2v-2h2z"}),"LocationCity");var a={},c=t;Object.defineProperty(a,"__esModule",{value:!0});var l=a.default=void 0,d=c(v()),m=r;l=a.default=(0,d.default)((0,m.jsx)("path",{d:"M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2m4.6 9.99-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01M18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9"}),"Cake");export{o as a,l as d};

View File

@@ -0,0 +1 @@
var d=Object.defineProperty;var u=(n,s,e)=>s in n?d(n,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[s]=e;var h=(n,s,e)=>u(n,typeof s!="symbol"?s+"":s,e);import{j as t,ak as p,bs as c}from"./mui-vendor-CkIVaoQP.js";import{r as x}from"./react-vendor-CmFgShSM.js";function o(n,s){return n=Math.ceil(n),s=Math.floor(s),Math.floor(Math.random()*(s-n))+n}class l extends x.Component{constructor(){super(...arguments);h(this,"state",{solution:o(111111,999999),input:""});h(this,"componentDidMount",()=>{this.drawCaptcha()});h(this,"drawCaptcha",()=>{const{solution:e}=this.state,{width:i,height:r}=this.canvas,a=this.canvas.getContext("2d");a.clearRect(0,0,i,r),a.font="40px serif",a.textAlign="center",a.textBaseline="middle",a.fillText(e,i/2,r/2+3),a.strokeStyle="#000000",a.beginPath(),a.moveTo(o(5,20),o(5,20)),a.lineTo(i-o(5,20),r-o(5,20)),a.stroke(),a.moveTo(o(5,20),r-o(5,20)),a.lineTo(i-o(5,20),o(5,20)),a.stroke(),a.closePath(),this.canvas.style.backgroundColor="transparent"});h(this,"refresh",()=>{this.setState({solution:o(111111,999999),input:""},this.drawCaptcha)});h(this,"playAudio",()=>{const{solution:e}=this.state;let i=new SpeechSynthesisUtterance(e.toString().split("").join(" "));i.rate=.25,window.speechSynthesis.speak(i)});h(this,"handleChange",e=>{const{onChange:i}=this.props,{solution:r}=this.state;this.setState({input:e.target.value}),i(e.target.value===r.toString())})}render(){const{input:e}=this.state;return t.jsxs("div",{className:"rnc",children:[t.jsxs("div",{className:"rnc-row",children:[t.jsx("canvas",{ref:i=>this.canvas=i,width:200,height:50,className:"rnc-canvas","data-testid":"captcha-canvas"}),t.jsxs("div",{className:"rnc-column",children:[t.jsx("button",{type:"button","aria-label":"get new captcha",onClick:this.refresh,className:"rnc-button","data-testid":"captcha-refresh",tabIndex:-1,children:t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:t.jsx("g",{"data-name":"Layer 2",children:t.jsxs("g",{"data-name":"refresh",children:[t.jsx("rect",{width:"24",height:"24",opacity:"0"}),t.jsx("path",{d:"M20.3 13.43a1 1 0 0 0-1.25.65A7.14 7.14 0 0 1 12.18 19 7.1 7.1 0 0 1 5 12a7.1 7.1 0 0 1 7.18-7 7.26 7.26 0 0 1 4.65 1.67l-2.17-.36a1 1 0 0 0-1.15.83 1 1 0 0 0 .83 1.15l4.24.7h.17a1 1 0 0 0 .34-.06.33.33 0 0 0 .1-.06.78.78 0 0 0 .2-.11l.09-.11c0-.05.09-.09.13-.15s0-.1.05-.14a1.34 1.34 0 0 0 .07-.18l.75-4a1 1 0 0 0-2-.38l-.27 1.45A9.21 9.21 0 0 0 12.18 3 9.1 9.1 0 0 0 3 12a9.1 9.1 0 0 0 9.18 9A9.12 9.12 0 0 0 21 14.68a1 1 0 0 0-.7-1.25z"})]})})})}),t.jsx("button",{type:"button","aria-label":"play audio",onClick:this.playAudio,className:"rnc-button","data-testid":"captcha-audio",tabIndex:-1,children:t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:t.jsx("g",{"data-name":"Layer 2",children:t.jsxs("g",{"data-name":"volume-up",children:[t.jsx("rect",{width:"24",height:"24",opacity:"0"}),t.jsx("path",{d:"M18.28 8.37a1 1 0 1 0-1.56 1.26 4 4 0 0 1 0 4.74A1 1 0 0 0 17.5 16a1 1 0 0 0 .78-.37 6 6 0 0 0 0-7.26z"}),t.jsx("path",{d:"M19.64 5.23a1 1 0 1 0-1.28 1.54A6.8 6.8 0 0 1 21 12a6.8 6.8 0 0 1-2.64 5.23 1 1 0 0 0-.13 1.41A1 1 0 0 0 19 19a1 1 0 0 0 .64-.23A8.75 8.75 0 0 0 23 12a8.75 8.75 0 0 0-3.36-6.77z"}),t.jsx("path",{d:"M15 3.12a1 1 0 0 0-1 0L7.52 7.57h-5a1 1 0 0 0-1 1v6.86a1 1 0 0 0 1 1h5l6.41 4.4a1.06 1.06 0 0 0 .57.17 1 1 0 0 0 1-1V4a1 1 0 0 0-.5-.88zm-1.47 15L8.4 14.6a1 1 0 0 0-.57-.17H3.5V9.57h4.33a1 1 0 0 0 .57-.17l5.1-3.5z"})]})})})})]})]}),t.jsx(p,{id:"captcha",label:"کد امنیتی",variant:"outlined",value:e,onChange:this.handleChange,sx:{width:"100%"}})]})}}l.defaultProps={placeholder:"کد امنیتی را وارد کنید..."};l.propTypes={onChange:c.func.isRequired,placeholder:c.string};export{l as C};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{j as t,p as r}from"./mui-vendor-CkIVaoQP.js";import"./react-vendor-CmFgShSM.js";import{C as o,N as n,B as s,L as e}from"./chart-vendor-sE2SUVPW.js";import"./auto-gcBAg08D.js";s.font.family="iranyekan";const i=({chartData:a,options:p})=>(console.log(o),t.jsx(n,{data:a,options:p,maintainAspectRatio:"true"}));i.propTypes={chartData:r.PropTypes.any,options:r.PropTypes.any};console.log(o);s.font.family="iranyekan";const y=({chartData:a})=>t.jsx(e,{data:a});y.propTypes={chartData:r.PropTypes.any};export{i as C,y as a};

View File

@@ -0,0 +1 @@
import{j as e,a3 as f,d as x,I as v,ab as _,br as E,ad as k,ak as b,a4 as B,B as h,T as I,p as t}from"./mui-vendor-CkIVaoQP.js";import{b as R,r as n}from"./react-vendor-CmFgShSM.js";import{d as D}from"./Pageview-TRcW_9jm.js";import{d as S}from"./Edit-CqBj1Y2L.js";import{d as z}from"./AddCircleOutline-C8LXM-k8.js";import{a as P,u as w}from"./redux-vendor-B7uoacJt.js";import{L as N,j as G,h as y,A as L,u as O,c as $,M}from"./index-CeyyVc1v.js";const V=P("EDIT_BAR_CLEARANCE_BAR",async(s,{dispatch:r})=>{r(N());try{const{data:a,status:l}=await G.put("kill_house_free_bar/0/",s);return r(y()),{data:a,status:l}}catch(a){return r(y()),{error:a.response.data.result}}}),q=({clearanceCode:s,onSave:r,bar_key:a,register_type:l})=>{const A=w(),{openNotif:c}=R.useContext(L),[C,o]=n.useState(!1),[j,p]=n.useState(!1),F=n.useRef(null),u=O({initialValues:{clearanceCode:s||""},validationSchema:$({clearanceCode:M().required("این فیلد اجباری است!").matches(/^[A-Z0-9]+$/,"فقط حروف بزرگ و عدد مجاز است!")}),onSubmit:async m=>{p(!0);try{const i=await A(V({key:a,bar_clearance_code:m.clearanceCode}));i.error?c({vertical:"top",horizontal:"center",msg:i.error.message||"خطا در ذخیره سازی",severity:"error"}):(c({vertical:"top",horizontal:"center",msg:"کد با موفقیت ذخیره شد",severity:"success"}),r&&r(m.clearanceCode),o(!1))}catch{c({vertical:"top",horizontal:"center",msg:"خطا در ارتباط با سرور",severity:"error"})}finally{p(!1)}}}),T=()=>{o(!0)},d=l==="manual";return e.jsxs(f,{container:!0,alignItems:"center",justifyContent:"center",gap:.5,style:{width:d?"160px":"auto"},children:[u.values.clearanceCode?e.jsx(g,{clearanceCode:u.values.clearanceCode}):null,d&&e.jsx(x,{title:u.values.clearanceCode?"ویرایش کد گواهی":"ثبت کد گواهی",placement:"top",children:e.jsx(v,{size:"small",color:"primary",onClick:T,children:u.values.clearanceCode?e.jsx(S,{fontSize:"small"}):e.jsx(z,{fontSize:"small"})})}),C&&e.jsxs(_,{open:C,onClose:()=>{u.resetForm(),o(!1)},children:[e.jsx(E,{children:"ویرایش کد گواهی"}),e.jsx(k,{children:e.jsx(b,{inputRef:F,name:"clearanceCode",value:u.values.clearanceCode,onChange:u.handleChange,onBlur:u.handleBlur,error:u.touched.clearanceCode&&!!u.errors.clearanceCode,helperText:u.touched.clearanceCode&&u.errors.clearanceCode,size:"small",fullWidth:!0,autoFocus:!0})}),e.jsxs(B,{children:[e.jsx(h,{onClick:()=>{u.resetForm(),o(!1)},color:"primary",children:"لغو"}),e.jsx(h,{onClick:()=>{u.handleSubmit(),o(!1)},color:"primary",disabled:j||!u.dirty,children:"ذخیره"})]})]})]})},g=({clearanceCode:s})=>{const r=n.useRef(null),a=()=>{r.current&&r.current.submit()};return e.jsxs(f,{container:!0,style:{width:"auto"},alignItems:"center",justifyContent:"center",gap:.5,children:[e.jsx(x,{title:"مشاهده گواهینامه",arrow:!0,children:e.jsxs("form",{action:"https://e.ivo.ir/Rahgiri/Gidprnt.aspx",method:"post",target:"_blank",ref:r,style:{cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},children:[e.jsx("input",{name:"gid",type:"hidden",value:s}),e.jsx(D,{color:"primary",onClick:a})]})}),e.jsx(I,{variant:"caption",color:"primary",children:s})]})};q.propTypes={clearanceCode:t.PropTypes.any,onSave:t.PropTypes.func,bar_key:t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.number]),register_type:t.PropTypes.string};g.propTypes={clearanceCode:t.PropTypes.any};export{q as C};

View File

@@ -0,0 +1 @@
import{i as r,j as t}from"./mui-vendor-CkIVaoQP.js";import{r as a}from"./index-CeyyVc1v.js";var e={},o=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,i=o(a()),l=t;u=e.default=(0,i.default)((0,l.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");export{u as d};

View File

@@ -0,0 +1 @@
import{i as r,j as t}from"./mui-vendor-CkIVaoQP.js";import{r as a}from"./index-CeyyVc1v.js";var e={},i=r;Object.defineProperty(e,"__esModule",{value:!0});var o=e.default=void 0,u=i(a()),l=t;o=e.default=(0,u.default)((0,l.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");export{o as d};

View File

@@ -0,0 +1 @@
import{i as r,j as t}from"./mui-vendor-CkIVaoQP.js";import{r as a}from"./index-CeyyVc1v.js";var e={},i=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,l=i(a()),o=t;u=e.default=(0,l.default)((0,o.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline");export{u as d};

View File

@@ -0,0 +1 @@
const o="/assets/ChickenLogo-BRWPnweI.png";export{o as l};

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{i as r,j as t}from"./mui-vendor-CkIVaoQP.js";import{r as a}from"./index-CeyyVc1v.js";var e={},o=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,s=o(a()),i=t;u=e.default=(0,s.default)((0,i.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");export{e as C,u as d};

View File

@@ -0,0 +1 @@
import{i as r,j as a}from"./mui-vendor-CkIVaoQP.js";import{r as t}from"./index-CeyyVc1v.js";var e={},o=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,d=o(t()),l=a;u=e.default=(0,d.default)((0,l.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload");export{u as d};

View File

@@ -0,0 +1 @@
import{j as u,b as s,T as r}from"./mui-vendor-CkIVaoQP.js";import{G as t,S as e,O as o,P as i,l7 as c,l8 as a}from"./index-CeyyVc1v.js";import{B as m}from"./BackButton-Crzr7NMa.js";import{N as l}from"./NavLink-D2GD_ItM.js";import{L as p}from"./LinkItem-DT6qswcs.js";import{c as j}from"./index.esm-BY9chGNa.js";import{u as x}from"./redux-vendor-B7uoacJt.js";import{f as d}from"./react-vendor-CmFgShSM.js";import"./iconBase-BEJYyZsk.js";const C=()=>{const n=x();return u.jsx(t,{container:!0,gap:e.SMALL,p:e.SMALL,direction:{xs:"column",md:"row"},justifyContent:"center",style:{placeContent:"baseline"},children:u.jsx(t,{container:!0,direction:"column",style:{width:"100%"},children:u.jsx(t,{container:!0,gap:e.SMALL,justifyContent:"center",children:u.jsx(l,{onClick:()=>n(o({title:"اطلاعات گزارش",content:u.jsx(i,{})})),children:u.jsx(p,{icon:u.jsx(j,{className:"svg-icon-color",color:"#244CCC",size:30}),title:"گزارش روزانه",description:"گزارش روزانه"})})})})})},F=()=>{const{pathname:n}=d();return u.jsx(u.Fragment,{children:u.jsx(s,{display:"flex",justifyContent:"center",children:u.jsxs(t,{container:!0,direction:"column",justifyContent:"center",xs:12,sm:12,md:10,lg:10,children:[n===c||n===a?u.jsxs(t,{justifyContent:"center",my:e.MEDIUM,children:[u.jsx(t,{children:u.jsx(r,{variant:"h6",children:"صفحه مدیریت درخواست ها (معاونت بازرگانی)"})}),u.jsx(C,{})]}):u.jsx(m,{}),u.jsx(t,{container:!0,justifyContent:"space-between",gap:e.SMALL,children:u.jsx(t,{xs:12})})]})})})};export{F as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{j as e,aJ as a,T as t}from"./mui-vendor-CkIVaoQP.js";import"./react-vendor-CmFgShSM.js";function g(r){const{title:o,value:i,imageUrl:n}=r;return e.jsxs(a,{style:{backgroundImage:`linear-gradient(to bottom right, #0000ff, #00ffff), url(${n})`,backgroundSize:"cover",color:"#FFFFFF",position:"relative",paddingTop:10,paddingBottom:10,paddingLeft:10,paddingRight:10},children:[e.jsx(t,{variant:"h5",textAlign:"center",fontWeight:"bold",component:"h2",sx:{fontSize:{xs:"1rem",lg:"1.5rem"},fontWeight:"bold",color:"white",textAlign:"center",textTransform:"uppercase"},children:o}),e.jsx(t,{color:"white",textAlign:"center",style:{border:"1px dashed #ddd",marginTop:"10px",padding:"4px",borderRadius:"4px"},sx:{fontSize:{xs:"0.8rem",lg:"1rem"}},children:i})]})}export{g as C};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{i as r,j as t}from"./mui-vendor-CkIVaoQP.js";import{r as a}from"./index-CeyyVc1v.js";var e={},o=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,i=o(a()),l=t;u=e.default=(0,i.default)((0,l.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");export{e as D,u as d};

View File

@@ -0,0 +1 @@
import{i as t,j as r}from"./mui-vendor-CkIVaoQP.js";import{r as a}from"./index-CeyyVc1v.js";var e={},u=t;Object.defineProperty(e,"__esModule",{value:!0});var i=e.default=void 0,o=u(a()),l=r;i=e.default=(0,o.default)((0,l.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");export{i as d};

View File

@@ -0,0 +1 @@
import{i as t,j as r}from"./mui-vendor-CkIVaoQP.js";import{r as a}from"./index-CeyyVc1v.js";var e={},u=t;Object.defineProperty(e,"__esModule",{value:!0});var i=e.default=void 0,l=u(a()),o=r;i=e.default=(0,l.default)((0,o.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutlineOutlined");export{i as d};

View File

@@ -0,0 +1 @@
import{j as e,aX as T,T as g,ab as h,br as y,ad as j,c3 as u,a4 as m,c4 as f,p as s}from"./mui-vendor-CkIVaoQP.js";import{r as l}from"./react-vendor-CmFgShSM.js";import{G as a,S as C}from"./index-CeyyVc1v.js";const b=l.forwardRef(function(o,r){return e.jsx(f,{direction:"up",ref:r,...o})});function D({title:i,content:o,actions:r,btnTitle:p,isAccepted:c}){const[d,t]=l.useState(!1),x=()=>{t(!0)},n=()=>{t(!1)};return e.jsxs("div",{children:[e.jsx(a,{container:!0,onClick:x,children:e.jsxs(a,{display:"flex",alignItems:"center",gap:C.TINY,children:[e.jsx(T,{sx:{padding:"0px"},checked:c,color:"success"}),e.jsx(g,{style:{cursor:"pointer"},borderBottom:"1px solid",color:"primary",children:p})]})}),e.jsxs(h,{open:d,TransitionComponent:b,keepMounted:!0,onClose:n,"aria-describedby":"alert-dialog-slide-description",children:[e.jsx(y,{children:i}),e.jsx(j,{children:e.jsx(u,{id:"alert-dialog-slide-description",children:o})}),e.jsx(m,{onClick:n,children:r})]})]})}D.propTypes={title:s.PropTypes.string,content:s.PropTypes.string,btnTitle:s.PropTypes.string,isAccepted:s.PropTypes.bool,actions:s.PropTypes.array};export{D};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{j as r}from"./mui-vendor-CkIVaoQP.js";import"./react-vendor-CmFgShSM.js";const o=()=>r.jsx("div",{children:"DispenserDashboard"});export{o as default};

View File

@@ -0,0 +1 @@
import{i as r,j as t}from"./mui-vendor-CkIVaoQP.js";import{r as a}from"./index-CeyyVc1v.js";var e={},o=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,i=o(a()),l=t;u=e.default=(0,i.default)((0,l.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done");export{u as d};

View File

@@ -0,0 +1 @@
import{i as r,j as t}from"./mui-vendor-CkIVaoQP.js";import{r as a}from"./index-CeyyVc1v.js";var e={},o=r;Object.defineProperty(e,"__esModule",{value:!0});var l=e.default=void 0,u=o(a()),i=t;l=e.default=(0,u.default)((0,i.jsx)("path",{d:"m18 7-1.41-1.41-6.34 6.34 1.41 1.41zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12zM.41 13.41 6 19l1.41-1.41L1.83 12z"}),"DoneAll");export{l as d};

View File

@@ -0,0 +1 @@
import{i as r,j as t}from"./mui-vendor-CkIVaoQP.js";import{r as a}from"./index-CeyyVc1v.js";var e={},o=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,i=o(a()),l=t;u=e.default=(0,i.default)((0,l.jsx)("path",{d:"m19.77 5.03 1.4 1.4L8.43 19.17l-5.6-5.6 1.4-1.4 4.2 4.2zm0-2.83L8.43 13.54l-4.2-4.2L0 13.57 8.43 22 24 6.43z"}),"DoneOutline");export{u as d};

View File

@@ -0,0 +1 @@
import{i as r,j as a}from"./mui-vendor-CkIVaoQP.js";import{r as t}from"./index-CeyyVc1v.js";var e={},o=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,i=o(t()),d=a;u=e.default=(0,i.default)((0,d.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download");export{u as d};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{i as r,j as t}from"./mui-vendor-CkIVaoQP.js";import{r as a}from"./index-CeyyVc1v.js";var e={},i=r;Object.defineProperty(e,"__esModule",{value:!0});var o=e.default=void 0,u=i(a()),d=t;o=e.default=(0,u.default)((0,d.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");export{o as d};

View File

@@ -0,0 +1 @@
import{i as t,j as r}from"./mui-vendor-CkIVaoQP.js";import{r as a}from"./index-CeyyVc1v.js";var e={},i=t;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,o=i(a()),d=r;u=e.default=(0,o.default)((0,d.jsx)("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"EditOutlined");export{u as d};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{i as r,j as a}from"./mui-vendor-CkIVaoQP.js";import{r as t}from"./index-CeyyVc1v.js";var e={},o=r;Object.defineProperty(e,"__esModule",{value:!0});var i=e.default=void 0,u=o(t()),l=a;i=e.default=(0,u.default)((0,l.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}),"FileDownload");export{i as d};

View File

@@ -0,0 +1 @@
import{j as a,p as n}from"./mui-vendor-CkIVaoQP.js";import"./react-vendor-CmFgShSM.js";import{S as d}from"./SimpleTable-DBAoNnCU.js";import{Q as y}from"./index-CeyyVc1v.js";const A=({file:u})=>{var t,r,o,p;const e=(r=(t=u.poultry)==null?void 0:t.sellType)!=null&&r.cash?"نقدی":null,l=(p=(o=u.poultry)==null?void 0:o.sellType)!=null&&p.credit?"زمان دار":null,s=[e,l].filter(C=>C).join(" یا ");return a.jsx(d,{columns:["کدسفارش","نام مرغدار","تلفن","تاریخ درخواست کشتار","استان","شهرستان","تاریخ جوجه ریزی","تعداد","جمع تلفات","وزن تقریبی هر مرغ","سن مرغ","نژاد","نحوه فروش"],data:[[u.poultry.poultryOrderCode,u.poultry.poultryName,u.poultry.poultryMobile,y(new Date(u.poultry.poultrySendDate),"yyyy/MM/dd"),u.poultry.poultryProvince,u.poultry.poultryCity,y(new Date(u.poultryHatching.date),"yyyy/MM/dd"),u.poultry.poultryQuantity,u.poultryHatching.losses,u.poultry.poultryIndexWeight,u.poultry.age,u.poultry.poultryChickenBreed,s]]})};A.propTypes={file:n.PropTypes.any};export{A as F};

View File

@@ -0,0 +1 @@
import{j as e,b as n,B as y,s as c,bt as j,T as C,ar as b,I as z}from"./mui-vendor-CkIVaoQP.js";import{r}from"./react-vendor-CmFgShSM.js";import{d as S}from"./CloudUpload-BlIgB_r9.js";import{d as w}from"./Close-_jAEIgMD.js";import{d as F}from"./CheckCircle-zgBvZQ-b.js";import{A as I,m as x}from"./index-CeyyVc1v.js";import{A}from"./index-9Ymn_7Kv.js";const B=c("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1}),R=c(x.div)(({theme:s})=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:s.spacing(.5),margin:s.spacing(.25,0),borderRadius:s.shape.borderRadius,"&:hover":{backgroundColor:s.palette.action.hover}})),$=({onChange:s})=>{const[o,l]=r.useState([]),[f,u]=r.useState(!1),[h,d]=r.useState(0),[m]=r.useContext(I),g=t=>{const i=t.target.files[0];if(!i)return;if(i.size>5e6){m({vertical:"top",horizontal:"center",msg:"حجم فایل بیش از حد مجاز است!",severity:"error"});return}u(!0),d(0);const p=setInterval(()=>{d(a=>a>=100?(clearInterval(p),u(!1),100):a+10)},100);l(a=>[...a,i])},v=t=>{l(i=>i.filter((p,a)=>a!==t))};return r.useEffect(()=>{s&&s(o)},[o,s]),e.jsxs(n,{sx:{width:"100%"},children:[e.jsxs(y,{disabled:o.length>=4,component:"label",variant:"contained",color:"primary",size:"small",startIcon:e.jsx(S,{fontSize:"small"}),sx:{borderRadius:"12px",padding:"4px 12px",fontSize:"0.8125rem",minWidth:"auto","&:hover":{transform:"none"}},children:[o.length>=4?"حداکثر 4 فایل":"آپلود فایل",e.jsx(B,{type:"file",onChange:g})]}),e.jsx(A,{children:!!o.length&&e.jsx(x.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},style:{marginTop:8},children:e.jsxs(n,{sx:{maxHeight:150,overflowY:"auto",pr:1},children:[f&&e.jsx(j,{variant:"determinate",value:h,color:"secondary",sx:{height:4,borderRadius:2,mb:.5}}),o.map((t,i)=>e.jsxs(R,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},children:[e.jsxs(n,{sx:{display:"flex",alignItems:"center",gap:1,overflow:"hidden"},children:[e.jsx(F,{color:"success",fontSize:"small",sx:{fontSize:"16px"}}),e.jsx(C,{variant:"body2",sx:{fontSize:"0.8125rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:120},children:t.name}),e.jsx(b,{label:`${(t.size/1e6).toFixed(2)}MB`,size:"small",sx:{height:20,fontSize:"0.6875rem"}})]}),e.jsx(z,{color:"error",onClick:()=>v(i),size:"small",sx:{p:.5},children:e.jsx(w,{fontSize:"small",sx:{fontSize:"16px"}})})]},t==null?void 0:t.name))]})})})]})};export{$ as F};

View File

@@ -0,0 +1 @@
.cell:hover{color:#fff!important}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{i as r,j as t}from"./mui-vendor-CkIVaoQP.js";import{r as a}from"./index-CeyyVc1v.js";var e={},i=r;Object.defineProperty(e,"__esModule",{value:!0});var o=e.default=void 0,u=i(a()),l=t;o=e.default=(0,u.default)((0,l.jsx)("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61"}),"FilterAlt");export{o as d};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{j as t,b2 as u,b3 as e,b as a}from"./mui-vendor-CkIVaoQP.js";import{G as r,S as m}from"./index-CeyyVc1v.js";import{B as p}from"./BackButton-Crzr7NMa.js";import{r as l}from"./react-vendor-CmFgShSM.js";import{b as c,d as C,c as x}from"./CityHatchingInfo-CZPJ_c_O.js";import"./redux-vendor-B7uoacJt.js";import"./index.esm-Bu7XMDZU.js";import"./iconBase-BEJYyZsk.js";import"./Add--yVWBJhC.js";import"./CityNewKillRequest-C2SXYvKb.js";import"./Search-Dek2fED1.js";import"./Delete-C5MyLelE.js";import"./Done-Dp5awdte.js";import"./aviculture-get-unions-C1NoVg85.js";import"./aviculture-get-hatching-data-DsjDNd82.js";import"./NumberFormatCustom-DwWPj40N.js";import"./DialogAlert-BfXcr-Kr.js";import"./SimpleTable-DBAoNnCU.js";import"./index-CIfb_iLp.js";import"./Close-_jAEIgMD.js";import"./province-get-sell-for-freezing-status-ieuVFEgW.js";import"./province-policy-market-daily-limitation-DueqDboR.js";import"./isValidIndexWeight-C_ik-uYa.js";import"./LabelField-B6eRSoQP.js";import"./CityHatchingsArchiveOperations-DQ9mbEeF.js";import"./Tune-D4M2CAhp.js";import"./FileUploader-DT5gIVb3.js";import"./CloudUpload-BlIgB_r9.js";import"./CheckCircle-zgBvZQ-b.js";import"./index-9Ymn_7Kv.js";import"./Sms-DasNClAG.js";import"./Edit-CqBj1Y2L.js";import"./ResponsiveTable-w7hk7Uq8.js";import"./FilterAlt-scT0HEUg.js";import"./styled-components.browser.esm-gS9mh05b.js";import"./ShowImage-CqhU2hmk.js";import"./Download-DQ-VVIaV.js";import"./ToggleOffOutlined-Ch26Umk7.js";import"./ToggleOn-pBgb8alR.js";const j=()=>{const[i,o]=l.useState(0),n=(d,s)=>{o(s)};return t.jsxs(r,{container:!0,alignItems:"center",justifyContent:"center",children:[t.jsx(r,{xs:12,container:!0,alignItems:"center",justifyContent:"center",children:t.jsxs(u,{scrollButtons:"auto",variant:"scrollable",allowScrollButtonsMobile:!0,value:i,onChange:n,children:[t.jsx(e,{label:"جوجه ریزی",value:0}),t.jsx(e,{label:"بایگانی",value:1}),t.jsx(e,{label:"آمار جوجه ریزی",value:2})]})}),i===0&&t.jsx(c,{readOnly:!0}),i===1&&t.jsx(C,{readOnly:!0}),i===2&&t.jsx(x,{})]})},it=()=>t.jsx(t.Fragment,{children:t.jsx(a,{display:"flex",justifyContent:"center",children:t.jsxs(r,{container:!0,direction:"column",justifyContent:"center",xs:12,sm:12,md:10,lg:10,children:[t.jsx(p,{}),t.jsx(r,{container:!0,justifyContent:"space-between",gap:m.SMALL,children:t.jsx(r,{xs:12,children:t.jsx(j,{})})})]})})});export{it as default};

View File

@@ -0,0 +1 @@
import{i as r,j as t}from"./mui-vendor-CkIVaoQP.js";import{r as a}from"./index-CeyyVc1v.js";var e={},o=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,i=o(a()),f=t;u=e.default=(0,i.default)((0,f.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");export{u as d};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@@ -0,0 +1 @@
import{j as e,b as p}from"./mui-vendor-CkIVaoQP.js";import{l6 as f,p as n,G as s,S as i}from"./index-CeyyVc1v.js";import{r as t}from"./react-vendor-CmFgShSM.js";import{u as A,f as x}from"./redux-vendor-B7uoacJt.js";import{A as j}from"./AdvancedTable-BYmmBtmq.js";import"./index-CIfb_iLp.js";import"./Close-_jAEIgMD.js";import"./Search-Dek2fED1.js";import"./Delete-C5MyLelE.js";const F=()=>{const l=A(),{jahadIllegalKilling:r}=x(a=>a.jahadSlice),[C,c]=t.useState([]);return t.useEffect(()=>{l(f())},[]),t.useEffect(()=>{const a=r==null?void 0:r.map((u,d)=>{const o=u.quantity-u.losses-u.leftOver;return[d+1,u.poultry.unitName,u.poultry.userprofile.baseOrder,u.poultry.userprofile.mobile,u.hall,u.period,n(u==null?void 0:u.createDate),n(u==null?void 0:u.date),u.chickenBreed,u.age,u.quantity,`${u.losses} (%${(u.losses*100/u.quantity).toFixed(0)})`,o+` (%${(o*100/u.quantity).toFixed(0)})`,`${u.leftOver} (%${(u.leftOver*100/u.quantity).toFixed(0)})`,u.message]});c(a)},[r]),e.jsx(s,{container:!0,children:e.jsx(j,{name:"کشتارهای غیرمجاز",columns:["ردیف","نام فارم","کدکاربری","تلفن","سالن","دوره جوجه ریزی","تاریخ ثبت جوجه ریزی","تاریخ جوجه ریزی","نژاد","سن","تعداد جوجه ریزی","تلفات دوره","کشتار شده","مانده در سالن","توضیحات"],data:C})})},$=()=>e.jsx(e.Fragment,{children:e.jsx(p,{display:"flex",justifyContent:"center",children:e.jsx(s,{container:!0,direction:"column",justifyContent:"center",xs:12,sm:12,md:10,lg:10,children:e.jsx(s,{container:!0,justifyContent:"space-between",gap:i.SMALL,children:e.jsx(s,{xs:12,children:e.jsx(F,{})})})})})});export{$ as default};

View File

@@ -0,0 +1 @@
import{j as t,I as m,b as f}from"./mui-vendor-CkIVaoQP.js";import{Q as s,l5 as p,G as r,S as o}from"./index-CeyyVc1v.js";import{r as n}from"./react-vendor-CmFgShSM.js";import{N as x,L as h,B as A,C as j}from"./chart-vendor-sE2SUVPW.js";import{A as b}from"./AdvancedTable-BYmmBtmq.js";import"./auto-gcBAg08D.js";import{d as y}from"./PictureAsPdf-oEJEta1d.js";import{u as S,f as g}from"./redux-vendor-B7uoacJt.js";import"./index-CIfb_iLp.js";import"./Close-_jAEIgMD.js";import"./Search-Dek2fED1.js";import"./Delete-C5MyLelE.js";A.font.family="iranyekan";console.log(j);const F=()=>{const d=S(),{killsDailyReport:u}=g(e=>e.jahadSlice),[i,c]=n.useState([]),[C]=n.useState({labels:u==null?void 0:u.map(e=>s(new Date(e.date),"yyyy/MM/dd")),datasets:[{label:"درخواست کشتار",data:u==null?void 0:u.map(e=>e.totalPoultryRequestQuantity),backgroundColor:"#ff6384"},{label:"تایید شده",data:u==null?void 0:u.map(e=>e.acceptedRequestQuantity),backgroundColor:"#36a2eb"}],options:{title:{display:!0,text:"Monthly Sales and Expenses Report",fontSize:18},legend:{position:"bottom"},scales:{yAxes:[{ticks:{beginAtZero:!0}}]}}}),[l]=n.useState({labels:u==null?void 0:u.map(e=>s(new Date(e.date),"yyyy/MM/dd")),datasets:[{label:"میانگین وزن",data:u==null?void 0:u.map(e=>e.indexWeight),borderColor:"#ff6384",fill:!1}],options:{title:{display:!0,text:"Monthly Sales Report",fontSize:18},legend:{position:"bottom"},tooltips:{mode:"index",intersect:!1}}});return n.useEffect(()=>{d(p())},[]),n.useEffect(()=>{const e=u==null?void 0:u.map((a,M)=>[a.province,a.date,a.indexWeight,a.remainQuantity,a.provinceQuantity,a.countryQuantity,t.jsx("a",{target:"_blank",href:`https://core-inventory.iran.liara.run/pdf/kills-daily-report?date=${a.date}&which=${window.location.origin}`,rel:"noreferrer",children:t.jsx(m,{color:"primary",children:t.jsx(y,{})},"rrr")},"rrr")]);c(e)},[u]),t.jsxs(r,{mt:o.SMALL,children:[t.jsxs(r,{container:!0,children:[t.jsx(r,{xs:12,sm:6,children:t.jsx(x,{data:C})}),t.jsx(r,{xs:12,sm:6,children:t.jsx(h,{data:l})})]}),t.jsx(b,{name:"آمار روزانه کشتار استان",columns:["استان","درخواست کشتار","وزن اعلامی","مرغ باقی مانده","تایید نهایی استان","تایید نهایی کشوری","دریافت سند"],data:i})]})},N=()=>t.jsx(t.Fragment,{children:t.jsx(f,{display:"flex",justifyContent:"center",children:t.jsx(r,{container:!0,direction:"column",justifyContent:"center",xs:12,sm:12,md:10,lg:10,children:t.jsx(r,{container:!0,justifyContent:"space-between",gap:o.SMALL,children:t.jsx(r,{xs:12,children:t.jsx(F,{})})})})})});export{N as default};

View File

@@ -0,0 +1 @@
import{j as r,a3 as t,b as e,T as i}from"./mui-vendor-CkIVaoQP.js";import{S as p}from"./index-CeyyVc1v.js";const n=({label:o,children:s})=>r.jsx(t,{container:!0,xs:12,children:r.jsxs(e,{style:{borderRadius:8,border:"1px solid #e6e6e6",position:"relative",width:"100%"},p:{xs:"8px 4px 6px",sm:"10px 8px 8px"},children:[o&&r.jsx(i,{variant:"body2",style:{position:"absolute",top:0,transform:"translateY(-50%)",right:8,backgroundColor:"white",padding:p.SMALL,fontSize:{xs:"12px",sm:"14px"},color:"#797979"},children:o}),s]})});export{n as L};

View File

@@ -0,0 +1 @@
import{j as r,am as i,T as e}from"./mui-vendor-CkIVaoQP.js";import"./react-vendor-CmFgShSM.js";const x=({text:a})=>r.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:"15px",marginTop:"15px"},children:[r.jsx(i,{sx:{flex:1,height:"2px",background:"linear-gradient(90deg, rgba(255,0,150,0.5), rgba(0,204,255,0.5))",borderRadius:3,opacity:.7}}),r.jsx(e,{variant:"body1",sx:{fontWeight:500,color:"text.primary",padding:"0 15px",fontSize:"14px"},children:a}),r.jsx(i,{sx:{flex:1,height:"2px",background:"linear-gradient(90deg, rgba(0,204,255,0.5), rgba(255,0,150,0.5))",borderRadius:3,opacity:.7}})]});export{x as L};

View File

@@ -0,0 +1 @@
import{$ as p,j as a,c1 as d,e as c,b as f,T as x}from"./mui-vendor-CkIVaoQP.js";import{f as l,r as m}from"./react-vendor-CmFgShSM.js";import{fo as h,G as u,fp as g,m as b}from"./index-CeyyVc1v.js";import{u as y}from"./redux-vendor-B7uoacJt.js";const T=d(b.div)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:"10px",width:window.innerWidth<=600?"40vw":"180px",height:window.innerWidth<=600?"40vw":"180px",borderRadius:"16px",background:e.palette.mode==="dark"?"#1e272e":"#ffffff",borderStyle:"solid",borderWidth:"1px",borderColor:e.palette.primary.main,boxShadow:e.palette.mode==="dark"?"5px 5px 15px rgba(0, 0, 0, 0.5)":"5px 5px 15px rgba(0, 0, 0, 0.1)",transition:"transform 0.2s ease, background 0.4s ease","&:hover":{transform:"translateY(-10px)",background:e.palette.mode==="dark"?"#2f3640":"#f5f6fa"},padding:2})),S=({icon:e,title:o,badgeContent:i,...s})=>{const t=p(),r=y(),{pathname:n}=l();return m.useEffect(()=>{r(h(n))},[r]),a.jsx(u,{onClick:()=>{r(g(o))},children:a.jsxs(T,{...s,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.6},theme:t,children:[a.jsx(c,{badgeContent:i,color:"primary",children:a.jsx(f,{sx:{fontSize:"20px",color:"#00a8ff"},children:e})}),a.jsx(x,{sx:{fontSize:"14px",fontWeight:600,textAlign:"center",color:t.palette.mode==="dark"?"#f5f6fa":"#2f3640"},children:o})]})})};export{S as L};

View File

@@ -0,0 +1 @@
import{j as e,T as I,ak as g,b as M}from"./mui-vendor-CkIVaoQP.js";import{r as o}from"./react-vendor-CmFgShSM.js";import{fG as b,A as m,v as i,p as H,G as a,S as c,W as F,ll as R,X as q}from"./index-CeyyVc1v.js";import{f as k,u as T}from"./redux-vendor-B7uoacJt.js";import{S as D}from"./SimpleTable-DBAoNnCU.js";import"./index-CIfb_iLp.js";import"./Close-_jAEIgMD.js";import"./Search-Dek2fED1.js";import"./Delete-C5MyLelE.js";const G=()=>{const{inventoryData:s}=k(t=>t.liveStockSlice),[Y,d]=o.useState([]),p=T();o.useEffect(()=>{p(b())},[]);const{freezingRequests:r}=k(t=>t.liveStockSlice),[,,n,x,l,C]=o.useContext(m);o.useEffect(()=>{const t=i(new Date).format("YYYY-MM-DD");x(t),C(t)},[]);const y=()=>{!n||!l||p(R({role:q(),date1:n,date2:l}))};o.useEffect(()=>{y()},[n,l]),o.useEffect(()=>{if(!r||!Array.isArray(r)){d([]);return}const t=r.filter(u=>(u==null?void 0:u.state)==="accepted").map((u,L)=>{var f,A,j,h,S;return[L+1,((f=u==null?void 0:u.coldHouse)==null?void 0:f.name)||"-",((j=(A=u==null?void 0:u.killHouseRequest)==null?void 0:A.killHouseRequestInfo)==null?void 0:j.poultryName)||"-",((S=(h=u==null?void 0:u.killHouseRequest)==null?void 0:h.killHouseRequestInfo)==null?void 0:S.killHouseFullname)||"-",(u==null?void 0:u.quantity)||"-",(u==null?void 0:u.weight)||"-",H(u==null?void 0:u.createDate)||"-","در انتظار تایید"]});d(t||[])},[r]);const E=e.jsxs(a,{container:!0,alignItems:"center",gap:c.SMALL,children:[e.jsx(a,{container:!0,gap:c.TINY,children:e.jsx(I,{children:"تخصیص برای انجماد"})}),e.jsxs(a,{container:!0,gap:c.SMALL,children:[e.jsx(a,{children:e.jsx(F,{label:"از تاریخ",id:"date",renderInput:t=>e.jsx(g,{size:"small",style:{width:"160px"},...t}),value:n,onChange:t=>{x(i(t).format("YYYY-MM-DD"))}})}),e.jsx(a,{children:e.jsx(F,{label:"تا تاریخ",id:"date",renderInput:t=>e.jsx(g,{size:"small",style:{width:"160px"},...t}),value:l,onChange:t=>{C(i(t).format("YYYY-MM-DD"))}})})]})]});return e.jsxs(a,{container:!0,xs:12,justifyContent:"center",alignItems:"center",mt:2,children:[e.jsx(D,{name:`موجودی انبار ${(s==null?void 0:s.name)||""}`,columns:["تعداد کل","وزن کل"],data:[[s!=null&&s.totalQuantity?s.totalQuantity.toLocaleString():"-",s!=null&&s.totalWeight?s.totalWeight.toLocaleString():"-"]]}),e.jsx(a,{container:!0,mt:4,xs:12,children:e.jsx(D,{name:E,columns:["ردیف","سردخانه","مرغدار","کشتارگاه","تعداد","وزن","تاریخ ثبت","وضعیت"],data:Y})})]})},U=()=>e.jsx(M,{display:"flex",justifyContent:"center",children:e.jsx(a,{container:!0,direction:"column",justifyContent:"center",xs:12,sm:12,md:10,lg:10,children:e.jsx(a,{container:!0,justifyContent:"space-between",gap:c.SMALL,mt:2,children:e.jsx(a,{xs:12,children:e.jsx(G,{})})})})});export{U as default};

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More