PageSourceSearch

https://app.onvione.ru/assets/index-BM8Do9nd.js

js onvione.ru collected 2026-10-02 01:09:39 UTC 19,195 bytes, 1 lines download raw bytes

1import{f as ne,r as _,j as e,ae as pe,b_ as U,P as W,y as fe,D as xe,dx as me,a4 as ye,a5 as ie,dy as V}from"./index-DUoAJW6O.js";import{a as de,p as ge,f as ve}from"./timeFormatter-BvwlMYkf.js";const ue=({dataFact:s,dataRecalculated:u,width:h=110,height:t=32,isLarge:o=!1,onPointHover:r})=>{const{t:m}=ne(),[v,$]=_.useState(null),A="#1890ff",Y="#fa8c16",L=[...(s||[]).map(d=>d.value),...(u||[]).map(d=>d.value)];if(!s||!u||L.length<2)return e.jsx("div",{style:{width:h,height:t,display:"flex",alignItems:"center",justifyContent:"center",color:"#999",fontSize:o?"14px":"10px"},children:m("chemicalConsumption.noData")});const F=Math.max(...L),K=Math.min(...L),D=F-K||1,f=o?20:5,j=o?20:5,C=o?20:5,E=o?10:5,H=h-f-j,M=t-C-E,y=s.map((d,p)=>f+p/(s.length-1)*H),g=y.map((d,p)=>{let w,P;return p===0?(w=f,P=y.length>1?(y[0]+y[1])/2:d):p===y.length-1?(w=y.length>1?(y[p-1]+y[p])/2:d,P=f+H):(w=(y[p-1]+y[p])/2,P=(y[p]+y[p+1])/2),{left:w,right:P}}),z=d=>{$(d),r&&s[d]&&u[d]&&r(s[d].period,s[d].value,u[d].value)},N=()=>{$(null)},T=o?3:2,X=o?3:1,I=o?5:3,le=d=>d.map((p,w)=>{const P=y[w],G=C+M-(p.value-K)/D*M;return`${P},${G}`}).join(" "),q=le(s),k=le(u);return e.jsx("div",{style:{position:"relative",width:h,height:t,cursor:"pointer"},onMouseLeave:N,children:e.jsxs("svg",{width:h,height:t,style:{overflow:"visible"},children:[e.jsx("rect",{x:f-(o?3:2),y:C-(o?3:2),width:H+(o?6:4),height:M+(o?6:4),fill:"#fafafa",stroke:"#f0f0f0",strokeWidth:"0.5",rx:"3"}),e.jsx("line",{x1:f,y1:t-E,x2:h-j,y2:t-E,stroke:"#d9d9d9",strokeWidth:"0.5"}),e.jsx("polyline",{points:k,fill:"none",stroke:Y,strokeWidth:T-.5,strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.8"}),e.jsx("polyline",{points:q,fill:"none",stroke:A,strokeWidth:T,strokeLinecap:"round",strokeLinejoin:"round"}),s.map((d,p)=>{const w=y[p],P=C+M-(d.value-K)/D*M,G=v===p;return e.jsx("circle",{cx:w,cy:P,r:G?I:X,fill:A},`fact-${p}`)}),u.map((d,p)=>{const w=y[p],P=C+M-(d.value-K)/D*M,G=v===p;return e.jsx("circle",{cx:w,cy:P,r:G?I:X,fill:Y},`recalc-${p}`)}),g.map((d,p)=>e.jsx("rect",{x:d.left,y:C,width:d.right-d.left,height:M,fill:"transparent",onMouseEnter:()=>z(p),onMouseLeave:N,style:{pointerEvents:"all"}},`zone-${p}`))]})})},je=({visible:s,onClose:u,category:h,dataFact:t,dataRecalculated:o})=>{const{t:r}=ne(),[m,v]=_.useState(t.length>0&&o.length>0?{period:t[t.length-1].period,factValue:t[t.length-1].value,recalcValue:o[o.length-1].value}:null);_.useEffect(()=>{s&&t.length>0&&o.length>0&&!m&&v({period:t[t.length-1].period,factValue:t[t.length-1].value,recalcValue:o[o.length-1].value})},[s,t,o]);const $=(A,Y,L)=>{v({period:A,factValue:Y,recalcValue:L})};return e.jsxs(pe,{title:`${r("chemicalConsumption.chartTitle")}: ${h}`,open:s,onCancel:u,footer:null,width:700,centered:!0,children:[e.jsx("div",{style:{marginBottom:"20px",padding:"15px",backgroundColor:"#fafafa",border:"1px solid #e8e8e8",borderRadius:"4px"},children:m?e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[e.jsxs("div",{style:{fontWeight:"bold",fontSize:"14px",color:"#333"},children:[r("chemicalConsumption.period"),": ",m.period]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"20px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("div",{style:{width:"12px",height:"12px",backgroundColor:"#1890ff",borderRadius:"2px"}}),e.jsxs("span",{style:{fontSize:"13px"},children:[r("chemicalConsumption.fact"),":"]}),e.jsx("span",{style:{fontWeight:"bold",fontSize:"14px",color:"#1890ff"},children:U(m.factValue)})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("div",{style:{width:"12px",height:"12px",backgroundColor:"#fa8c16",borderRadius:"2px"}}),e.jsxs("span",{style:{fontSize:"13px"},children:[r("chemicalConsumption.recalculation"),":"]}),e.jsx("span",{style:{fontWeight:"bold",fontSize:"14px",color:"#fa8c16"},children:U(m.recalcValue)})]})]})]}):e.jsx("div",{style:{textAlign:"center",color:"#999"},children:r("chemicalConsumption.noDataToDisplay")})}),e.jsx("div",{style:{position:"relative",height:"300px",display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(ue,{dataFact:t,dataRecalculated:o,width:600,height:250,isLarge:!0,onPointHover:$})}),e.jsx("div",{style:{marginTop:"20px",paddingTop:"15px",borderTop:"1px solid #f0f
10f0",fontSize:"12px",color:"#666"},children:e.jsx("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:e.jsxs("div",{children:[e.jsxs("strong",{children:[r("chemicalConsumption.numberOfPeriods"),":"]})," ",t.length]})})})]})},he=({data:s,dataAdd:u=[],dataDrain:h=[],width:t=110,height:o=32,isLarge:r=!1,onPointHover:m})=>{var x,O;const{t:v}=ne(),[$,A]=_.useState(null),Y="#52c41a",L="#52c41a",F="#f44336",K="#1890ff",D="#fa8c16",f="#bfbfbf",j="#999",C="#666",E=[...s.map(a=>a.value),...u.map(a=>a.value),...h.map(a=>a.value)];if(!s||s.length<2)return e.jsx("div",{style:{width:t,height:o,display:"flex",alignItems:"center",justifyContent:"center",color:"#999",fontSize:r?"14px":"10px"},children:v("chemicalConsumption.noData")});const H=Math.max(...E),M=Math.min(...E),y=H-M||1,g=r?40:5,z=r?20:5,N=r?20:5,T=r?25:5,X=t-g-z,I=o-N-T,q=(a=>a.length<2?"":a.map((c,S)=>{const B=g+S/(a.length-1)*X,J=N+I-(c.value-M)/y*I;return`${B},${J}`}).join(" "))(s),k=s.map((a,c)=>g+c/(s.length-1)*X),d=k.map((a,c)=>{let S,B;return c===0?(S=g,B=k.length>1?(k[0]+k[1])/2:a):c===k.length-1?(S=k.length>1?(k[c-1]+k[c])/2:a,B=g+X):(S=(k[c-1]+k[c])/2,B=(k[c]+k[c+1])/2),{left:S,right:B}}),p=a=>{if(A(a),m&&s[a]){const c=u[a]?u[a].value:null,S=h[a]?h[a].value:null;m(s[a].date,s[a].value,c,S,s[a].missedReport)}},w=()=>{A(null)},P=r?2:1.5,G=r?4:2,ae=r?6:4,re=(x=s[0])!=null&&x.date?W(s[0].date,"DD.MM.YYYY HH:mm").format("DD.MM"):"",l=(O=s[s.length-1])!=null&&O.date?W(s[s.length-1].date,"DD.MM.YYYY HH:mm").format("DD.MM"):"",n=[M,H],i=n.map(a=>Math.round(a*10)/10);return e.jsx("div",{style:{position:"relative",width:t,height:o,cursor:"pointer"},children:e.jsxs("svg",{width:t,height:o,style:{overflow:"visible"},children:[r&&e.jsxs(e.Fragment,{children:[e.jsx("line",{x1:g,y1:o-T,x2:t-z,y2:o-T,stroke:j,strokeWidth:"1"}),e.jsx("line",{x1:g,y1:o-T-4,x2:g,y2:o-T+4,stroke:j,strokeWidth:"1"}),e.jsx("line",{x1:t-z,y1:o-T-4,x2:t-z,y2:o-T+4,stroke:j,strokeWidth:"1"}),e.jsx("text",{x:g,y:o-T+14,fontSize:"10",fill:C,textAnchor:"middle",children:re}),e.jsx("text",{x:t-z,y:o-T+14,fontSize:"10",fill:C,textAnchor:"middle",children:l}),e.jsx("line",{x1:g,y1:N,x2:g,y2:o-T,stroke:j,strokeWidth:"1"}),n.map((a,c)=>{const S=N+I-(a-M)/y*I;return e.jsxs("g",{children:[e.jsx("line",{x1:g-4,y1:S,x2:g+4,y2:S,stroke:j,strokeWidth:"1"}),e.jsx("text",{x:g-8,y:S+3,fontSize:"10",fill:C,textAnchor:"end",children:i[c]})]},`y-tick-${c}`)})]}),r&&e.jsx("rect",{x:g,y:N,width:X,height:I,fill:"#fafafa",stroke:"#f0f0f0",strokeWidth:"0.5",rx:"3"}),!r&&e.jsx("rect",{x:g-2,y:N-2,width:X+4,height:I+4,fill:"#fafafa",stroke:"#f0f0f0",strokeWidth:"0.5",rx:"3"}),e.jsx("polyline",{points:q,fill:"none",stroke:Y,strokeWidth:P,strokeLinecap:"round",strokeLinejoin:"round"}),s.map((a,c)=>{var ee,b;const S=k[c],B=N+I-(a.value-M)/y*I,J=$===c;let Q=L;if(a.missedReport)Q=f;else{const R=(ee=u[c])==null?void 0:ee.value,te=(b=h[c])==null?void 0:b.value;R!==void 0&&R>0?Q=R%20!==0?K:F:te!==void 0&&te>0&&(Q=D)}return e.jsx("g",{children:e.jsx("circle",{cx:S,cy:B,r:J?ae:G,fill:Q})},`level-${c}`)}),d.map((a,c)=>e.jsx("rect",{x:a.left,y:N,width:a.right-a.left,height:I,fill:"transparent",onMouseEnter:()=>p(c),onMouseLeave:w,style:{pointerEvents:"all"}},`zone-${c}`))]})})},Ce=({visible:s,onClose:u,category:h,data:t,dataAdd:o,dataDrain:r})=>{var L,F,K,D;const{t:m}=ne(),[v,$]=_.useState(t.length>0?{date:t[t.length-1].date,levelValue:t[t.length-1].value,addValue:((L=o[o.length-1])==null?void 0:L.value)??null,drainValue:((F=r[r.length-1])==null?void 0:F.value)??null,missedReport:t[t.length-1].missedReport,isNotMultipleOf20:((K=o[o.length-1])==null?void 0:K.value)!==void 0&&((D=o[o.length-1])==null?void 0:D.value)%20!==0}:null);_.useEffect(()=>{var f,j,C,E;s&&t.length>0&&!v&&$({date:t[t.length-1].date,levelValue:t[t.length-1].value,addValue:((f=o[o.length-1])==null?void 0:f.value)??null,drainValue:((j=r[r.length-1])==null?void 0:j.value)??null,missedReport:t[t.length-1].missedReport,isNotMultipleOf20:((C=o[o.length-1])==null?void 0:C.value)!==void 0&&((E=o[o.length-1])==null?void 0:E.value)%20!==0})},[s,t,o,r]);const A=(f,j,C,E,H)=>{$({date:f,levelValue:j,addValue:C,drainValue:E,missedReport:H,isNotMultipleOf20:C!==null&&C%20!==0})},Y=t.some(f=>f.missedReport===!0);return e.jsxs(pe,{title:`${m("chemicalConsumption.chartLevelTitle")}: ${h}`,open:s,onCancel:u,footer:null,width:700,centered:!0,children:[e.jsx("div",{style:{marginBottom:"20px",padding:"15px",backgroundColor:"#fafafa",border:"1px solid #e8e8e8",borderRadius:"4px"},children:v?e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[e.jsxs("div",{style:{fontWeight:"bold",fontSize:"14px",color:"#333"},children:[m("chemicalConsumption.period"),": ",v.date]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"30px",flexWrap:"wrap"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("div",{style:{width:"12px",height:"12px",backgroundColor:"#52c41a",borderRadius:"2px"}}),e.jsxs("span",{style:{fontSize:"13px"},children:[m("chemicalConsumption.level"),":"]}),e.jsx("span",{style:{fontWeight:"bold",fontSize:"14px",color:"#52c41a"},children:U(v.levelValue)})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("div",{style:{width:"12px",height:"12px",backgroundColor:v.isNotMultipleOf20?"#1890ff":"#f44336",borderRadius:"2px"}}),e.jsxs("span",{style:{fontSize:"13px"},children:[m("chemicalConsumption.filling"),":"]}),e.jsx("span",{style:{fontWeight:"bold",fontSize:"14px",color:v.isNotMultipleOf20?"#1890ff":"#f44336"},children:v.addValue!==null?U(v.addValue):"—"})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("div",{style:{width:"12px",height:"12px",backgroundColor:"#fa8c16",borderRadius:"2px"}}),e.jsxs("span",{style:{fontSize:"13px"},children:[m("chemicalConsumption.drain"),":"]}),e.jsx("span",{style:{fontWeight:"bold",fontSize:"14px",color:"#fa8c16"},children:v.drainValue!==null?U(v.drainValue):"—"})]}),Y&&e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("div",{style:{width:"12px",height:"12px",backgroundColor:"#bfbfbf",borderRadius:"2px"}}),e.jsx("span",{style:{fontSize:"13px"},children:m("chemicalConsumption.ReportIncomplete")}
1)]})]})]}):e.jsx("div",{style:{textAlign:"center",color:"#999"},children:m("chemicalConsumption.noDataToDisplay")})}),e.jsx("div",{style:{position:"relative",height:"300px",display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(he,{data:t,dataAdd:o,dataDrain:r,width:600,height:250,isLarge:!0,onPointHover:A})}),e.jsx("div",{style:{marginTop:"20px",paddingTop:"15px",borderTop:"1px solid #f0f0f0",fontSize:"12px",color:"#666"},children:e.jsx("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:e.jsxs("div",{children:[e.jsxs("strong",{children:[m("chemicalConsumption.numberOfPeriods"),":"]})," ",t.length]})})})]})},se={[V.SOAP]:"Вода + шампунь",[V.PRESOAK]:"Активная химия",[V.TIRE]:"Мойка дисков",[V.BRUSH]:"Щетка + пена",[V.WAX]:"Воск + защита",[V.TPOWER]:"T-POWER",[V.SPARE_EQUIPMENT]:"Запчасти",[V.SALT]:"Соль"},Z={fact:"факт",time:"время",recalc:"пересчет"},oe=[V.SOAP,V.PRESOAK,V.TIRE,V.BRUSH,V.WAX,V.TPOWER],De=s=>s.map(u=>{const h={period:u.period};return u.techRateInfos.forEach(t=>{const o=t.code,r=se[o];r&&(h[`${r}, ${Z.fact}`]=t.spent,h[`${r}, ${Z.time}`]=t.time,h[`${r}, ${Z.recalc}`]=t.recalculation)}),h}),ce=s=>{if(s==null)return 0;if(typeof s=="number")return s;if(typeof s=="string"){const u=parseFloat(s.replace(",","."));return isNaN(u)?0:u}return 0},Me=()=>{const u=W().toDate().toISOString().slice(0,10),[h]=fe(),{t}=ne(),o=h.get("posId")||"*",r=h.get("dateStart")||`${u}T00:00`,m=h.get("dateEnd")||`${u}T23:59`,v=Number(h.get("city"))||"*",$={dateStart:r,dateEnd:m,posId:o,placementId:v},A=o!=="*"?`chemical-report-${$.dateStart}-${$.dateEnd}-${$.posId}-${$.placementId}`:null,{data:Y,isLoading:L}=xe(A,()=>me($),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1}),F=(Y==null?void 0:Y.posChemistryProductions)??[],K=(Y==null?void 0:Y.chemistryAddLevels)??[],D=De(F),[f,j]=_.useState([]),[C,E]=_.useState(!1),[H,M]=_.useState(null),[y,g]=_.useState(!1),[z,N]=_.useState(null);_.useEffect(()=>{j([])},[F]);const T=(l,n)=>{if(!D||D.length===0)return[];const i=n==="fact"?Z.fact:Z.recalc;return D.filter(x=>x.period).map(x=>({period:x.period,value:ce(x[`${l}, ${i}`])})).filter(x=>!isNaN(x.value)&&x.value!==null)},X=l=>{const n=K.filter(b=>b.code===l).sort((b,R)=>W(b.techTaskDate).valueOf()-W(R.techTaskDate).valueOf());if(!n.length)return{levelData:[],addData:[],drainData:[]};const i=W(n[0].techTaskDate).startOf("day"),x=W(n[n.length-1].techTaskDate).startOf("day"),O=[];let a=i;for(;a.isBefore(x)||a.isSame(x);)O.push(a.format("YYYY-MM-DD")),a=a.add(1,"day");const c=K.filter(b=>b.code===l&&b.level!==null).sort((b,R)=>W(b.techTaskDate).valueOf()-W(R.techTaskDate).valueOf()),S=new Map(c.map(b=>[W(b.techTaskDate).format("YYYY-MM-DD"),b])),B=[],J=[],Q=[];let ee=null;return O.forEach(b=>{const R=S.get(b);if(R){ee=R.level,B.push({date:W(R.techTaskDate).format("DD.MM.YYYY HH:mm"),value:R.level}),J.push({date:W(R.techTaskDate).format("DD.MM.YYYY HH:mm"),value:R.add??0}),Q.push({date:W(R.techTaskDate).format("DD.MM.YYYY HH:mm"),value:R.drain??0});return}if(ee!==null){const te=W(b);B.push({date:te.format("DD.MM.YYYY HH:mm"),value:ee,missedReport:!0}),J.push({date:te.format("DD.MM.YYYY HH:mm"),value:0}),Q.push({date:te.format("DD.MM.YYYY HH:mm"),value:0})}}),{levelData:B,addData:J,drainData:Q}},I=l=>oe.map(n=>{const i=se[n];return{category:t(`chemicalNames.${n}
1`,i),fact:l[`${i}, ${Z.fact}`]||0,time:l[`${i}, ${Z.time}`]||"-",recalculated:l[`${i}, ${Z.recalc}`]||0}}),q=(()=>{const l={};return oe.forEach(n=>{l[n]={fact:0,recalculated:0,timeSeconds:0}}),D.forEach(n=>{oe.forEach(i=>{const x=se[i];l[i].fact+=ce(n[`${x}, ${Z.fact}`]),l[i].recalculated+=ce(n[`${x}, ${Z.recalc}`]);const O=n[`${x}, ${Z.time}`];O&&O!=="-"&&O!==""&&(l[i].timeSeconds+=ge(O))})}),l})(),k=()=>oe.map(l=>{const n=se[l],i=T(n,"fact"),x=T(n,"recalculated"),{levelData:O,addData:a,drainData:c}=X(l);return{category:t(`chemicalNames.${l}`,n),fact:q[l].fact,time:ve(q[l].timeSeconds),recalculated:q[l].recalculated,chartDataFact:i.length>0?i:void 0,chartDataRecalculated:x.length>0?x:void 0,levelChartData:O.length>0?O:void 0,addChartData:a.length>0?a:void 0,drainChartData:c.length>0?c:void 0}}),d=[{title:t("chemicalConsumption.period"),dataIndex:"period",key:"period",render:(l,n)=>n.key==="total"?e.jsx("strong",{style:{color:"black",fontWeight:"bold"},children:t("finance.total")}):l}],p=[{title:t("chemicalConsumption.type"),dataIndex:"category",key:"category",width:150},{title:t("chemicalConsumption.fact"),dataIndex:"fact",key:"fact",render:l=>U(l),align:"right",width:100},{title:t("chemicalConsumption.recalculation"),dataIndex:"recalculated",key:"recalculated",render:l=>{let n;if(typeof l=="string"){if(n=parseFloat(l.replace(",",".")),isNaN(n))return l}else n=l;return n%1===0?U(n):U(n,"double")},align:"right",width:120},{title:t("chemicalConsumption.time"),dataIndex:"time",key:"time",render:l=>de(l),align:"right",width:100}],w=[{title:t("chemicalConsumption.type"),dataIndex:"category",key:"category",width:150},{title:t("chemicalConsumption.fact"),dataIndex:"fact",key:"fact",render:l=>U(l),align:"right",width:100},{title:t("chemicalConsumption.recalculation"),dataIndex:"recalculated",key:"recalculated",render:l=>{let n;if(typeof l=="string"){if(n=parseFloat(l.replace(",",".")),isNaN(n))return l}else n=l;return n%1===0?U(n):U(n,"double")},align:"right",width:120},{title:t("chemicalConsumption.time"),dataIndex:"time",key:"time",render:l=>de(l),align:"right",width:100},{title:t("chemicalConsumption.trend"),key:"chart",align:"center",width:130,render:(l,n)=>n.chartDataFact&&n.chartDataRecalculated?e.jsx("div",{style:{display:"flex",justifyContent:"center",cursor:"pointer",padding:"4px"},onClick:()=>{M({category:n.category,dataFact:n.chartDataFact,dataRecalculated:n.chartDataRecalculated}),E(!0)},onMouseEnter:i=>{i.currentTarget.style.backgroundColor="#f5f5f5",i.currentTarget.style.borderRadius="4px"},onMouseLeave:i=>{i.currentTarget.style.backgroundColor="transparent"},children:e.jsx(ue,{dataFact:n.chartDataFact,dataRecalculated:n.chartDataRecalculated,width:110,height:32,isLarge:!1})}):e.jsx("div",{style:{color:"#999",fontSize:"12px",textAlign:"center"},children:t("chemicalConsumption.noData")})},{title:t("chemicalConsumption.chartLevelTitle"),key:"levelChart",align:"center",width:130,render:(l,n)=>n.levelChartData&&n.levelChartData.length>0?e.jsx("div",{style:{display:"flex",justifyContent:"center",cursor:"pointer",padding:"4px"},onClick:()=>{N({category:n.category,data:n.levelChartData,dataAdd:n.addChartData||[],dataDrain:n.drainChartData||[]}),g(!0)},onMouseEnter:i=>{i.currentTarget.style.backgroundColor="#f5f5f5",i.currentTarget.style.borderRadius="4px"},onMouseLeave:i=>{i.currentTarget.style.backgroundColor="transparent"},children:e.jsx(he,{data:n.levelChartData,dataAdd:n.addChartData,dataDrain:n.drainChartData,width:110,height:32,isLarge:!1})}):e.jsx("div",{style:{color:"#999",fontSize:"12px",textAlign:"center"},children:t("chemicalConsumption.noData")})}],P=l=>{const n=I(l);return e.jsx("div",{style:{margin:0,padding:"16px 40px"},children:e.jsx(ie,{columns:p,dataSource:n,rowKey:"category",pagination:!1,size:"small",bordered:!0}
1)})},G=()=>{const l=k();return e.jsx("div",{style:{margin:0,padding:"16px 40px"},children:e.jsx(ie,{columns:w,dataSource:l,rowKey:"category",pagination:!1,size:"small",bordered:!0})})},ae=D.length>0?[...D.map((l,n)=>({...l,key:`${l.period}-${n}`})),{period:t("finance.total"),key:"total"}]:D.map((l,n)=>({...l,key:`${l.period}-${n}`})),re=l=>{const n=l.key;f.includes(n)?j(f.filter(i=>i!==n)):j([...f,n])};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"ml-12 md:ml-0 mb-5",children:e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx("span",{className:"text-xl sm:text-3xl font-normal text-text01",children:t("routes.chemical")})})}),e.jsx(ye,{count:D.length,display:["city","pos","dateTime","reset","count"]}),e.jsx("div",{className:"mt-8",children:e.jsx(ie,{dataSource:ae,columns:d,rowKey:"key",pagination:!1,loading:L,expandable:{expandedRowRender:l=>l.key==="total"?G():P(l),expandedRowKeys:f,onExpand:(l,n)=>{const i=n.key;j(l?[...f,i]:f.filter(x=>x!==i))},rowExpandable:()=>!0},onRow:l=>({onClick:()=>re(l),style:{cursor:"pointer"}})})}),H&&e.jsx(je,{visible:C,onClose:()=>E(!1),category:H.category,dataFact:H.dataFact,dataRecalculated:H.dataRecalculated}),z&&e.jsx(Ce,{visible:y,onClose:()=>g(!1),category:z.category,data:z.data,dataAdd:z.dataAdd,dataDrain:z.dataDrain})]})};export{Me as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.