PageSourceSearch

https://carbonclap.ecoprod.com/build/assets/Dashboard-Pn5jk0Fq.js

js ecoprod.com collected 2026-10-02 07:27:19 UTC 7,802 bytes, 2 lines download raw bytes

1import{r as m,a as w,d as S,c as o,j as i,s as a,R as c,C as e,T as n,B as L,S as E,F as I}from"./app-eXjfs1ms.js";import{P as D}from"./ProjectSpaceSwitch-gJ6E2v5g.js";import z from"./DashboardHeader-D0vHHjL7.js";import H from"./KeyFigures-CQeBskTD.js";import{S as V,a as M,b as U}from"./video-BFFpyLmY.js";import{I as f,a as b,b as u}from"./Dashboard.styles-DJZwYCL6.js";import A from"./ChartDepartment-DjFCFGEG.js";import W from"./ChartPost-BVgT237j.js";import G from"./ChartType-owES_c8h.js";import $ from"./FilterForm-BaFTikpI.js";import{u as O}from"./useForm-BShiZdxj.js";import Z,{RANKING_DESC as N}from"./ChartProjects-B128SK8g.js";import{S as _}from"./label-ecoprod-color-eJhAtQ0N.js";import"./RouterSegmented-B_sDDlOb.js";import"./PageTitle.styles-DAovxcfc.js";import"./KeyFigure-BlzUGrwr.js";import"./footprint-sBspZFVq.js";import"./index-DX8iJ5un.js";import"./index-Cd1QCG8j.js";import"./Pie-DRbPUssC.js";import"./index-C8epbob-.js";import"./chart-HrJFW6xV.js";import"./sortBy-CcTb7taO.js";import"./_baseFlatten-Cn1oGsF9.js";import"./Select-FyK82Ewd.js";import"./index-Dw8RAqQD.js";import"./useIcons-Dzf49WVI.js";import"./DownOutlined-DSfPO4-O.js";import"./SearchOutlined-DZGBl6UE.js";import"./index-CpZTpqBg.js";import"./index-DKjRcP81.js";import"./QuestionCircleOutlined-CkfPyHQh.js";import"./SubmitButton-D5TILvZo.js";import"./SelectDatePicker-WPG07J2c.js";import"./index-COCMv9aR.js";import"./index-Cih5p4jW.js";import"./useBubbleLock-BrKAXDgm.js";import"./index-O2jUX_Ip.js";import"./index-C5bu4qid.js";const Q=d=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 42.474 42.474",...d},m.createElement("path",{d:"M7.247,11.495H3V41.227a4.26,4.26,0,0,0,4.247,4.247H36.979V41.227H7.247ZM41.227,3H15.742a4.26,4.26,0,0,0-4.247,4.247V32.732a4.26,4.26,0,0,0,4.247,4.247H41.227a4.26,4.26,0,0,0,4.247-4.247V7.247A4.26,4.26,0,0,0,41.227,3ZM24.237,29.546V10.433L36.979,19.99Z",transform:"translate(-3 -3)",fill:"currentColor"})),zo=({company:d,currentSelectionKeyFigures:l,averageReportsFootprint:y,totalFinalReports:x,totalFootprintForFinalReports:P,totalProjectsWithAnEcoscore:T,totalEcoscoreEligibleProjects:B})=>{const{t:r}=w(["company","label"]),{searchParams:s,pageUrl:h}=S(),{form:C,get:p,processing:v}=O({},"CompanyDashboard"),F=m.useMemo(()=>({topLeft:{value:l?.selectedProjects??0,unit:r("company:dashboard.keyFigures.selectedProjects.unit"),icon:o(Q,{height:45})},topRight:{value:l?.averageFootprintPerProject??0,unit:r("company:dashboard.keyFigures.averageFootprintPerProject.unit"),icon:o(U,{height:45})},bottomLeft:{value:l?.averageFootprintPerMinute??0,unit:r("company:dashboard.keyFigures.averageFootprintPerMinute.unit"),icon:o(M,{height:45})},bottomRight:{value:l?.averageFootPrintPerEuro??0,unit:r("company:dashboard.keyFigures.averageFootPrintPerEuro.unit",{currency:"€"}),icon:o(V,{height:45})}}),[r,l]),g=m.useMemo(()=>{const t=s?.duration?.min&&s?.duration?.max?{duration:{min:decodeURIComponent(s?.duration?.min),max:decodeURIComponent(s?.duration?.max)}}:{};return{...s,...t}},[s]),R=t=>{p(h.pathname,{...g,orderBy:t})},j=t=>{p(h.pathname,{...g,showEmissionByTypeGraphBy:t})},k=t=>{p(h.pathname,{...g,order:t})};return i(I,{children:[o(D,{}),o(c,{justify:"space-between",css:{marginBottom:a(5),alignItems:"end"},children:o(z,{title:r("company:dashboard.title"),catchphrase:r("company:dashboard.catchphrase"),name:d.name,logo:d.logo})}),o(c,{gutter:[a(2),a(2)],css:t=>({color:t.colors.header.contrastText,margin:`${a(2)}px !important`}),children:o(e,{span:24,children:o(n.Title,{css:{fontSize:"30px !important",marginTop:"60px !important",textAlign:"center"},children:r("company:dashboard.titles.label")})})}),i(c,{gutter:[a(2),a(2)],css:t=>({color:t.colors.header.contrastText}),children:[o(e,{span:12,css:t=>({backgroundColor:t.colors.info.main,borderBottomLeftRadius:15,borderTopLeftRadius:15}),children:i(c,{css:{paddingBottom:20,paddingTop:20},children:[o(e,{span:15,css:{paddingLeft:60},children:i(n.Text,{css:t=>({color:t.colors.common.black,marginBottom:"20px"}),children:[r("label:dashboard.text.firstPart"),o("span",{css:{fontWeight:700},children:r("label:dashboard.text.secondPart")}),r("label:dashboard.text.thirdPart"),o("span",{css:{fontWeight:700},children:r("label:dashboard.text.fourthPart")}),r("label:dashboard.text.fifthPart")]})}),o(e,{span:8,css:{padding:10,paddingLeft:60,display:"flex",justifyContent:"center",alignItems:"center"},children:o(L,{type:"primary",href:r("label:dashboard.button.link"),target:"_blank",children:r("label:dashboard.button.label")})})]})}),i(e,{span:12,css:t=>({backgroundColor:t.colors.label.mainLight,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center","& .ant-typography ":{marginBottom:"0 !important"},borderBottomRightRadius:15,borderTopRightRadius:15,color:t.colors.common.black}),children:[o(e,{span:2,css:{paddingLeft:"50px !important"},children:o(_,{height:"80"})}),i(c,{justify:"center",align:"middle",css:{width:"100%"},children:[i(e,{span:4,css:t=>({display:"flex",flexDirection:"column",gap:15,textAlign:"center",marginRight:10,fontSize:45,color:t.colors.label.main,fontWeight:"bold"}),children:[o("span",{children:T}),o("span",{children:B})]}),i(e,{span:12,css:{display:"flex",flexDirection:"column",gap:25},children:[o(n.Text,{css:t=>({color:t.colors.common.black,fontSize:20}),children:r("label:dashboard.totalProjectWithEcoscore")}),o(n.Text,{css:t=>({color:t.colors.common.black,fontSize:20}),children:r("label:dashboard.totalEligibleProject")})]})]})]})]}),o(n.Title,{level:2,css:()=>({textAlign:"center",marginBottom:`${a(3)}px !important`,marginTop:`${a(10)}px !important`}),children:r("company:dashboard.titles.globalProjects")}),i(c,{css:()=>({marginBottom:a(10)}),children:[o(e,{css:t=>({backgroundColor:t.colors.form.main,paddingBottom:a(2),paddingTop:a(2)}),span:12,children:i(f,{children:[o(b,{children:x}),o(n.Text,{css:t=>({fontSize:20,paddingLeft:10,paddingRight:30,color:t.colors.disabled.light}),children:r("company:dashboard.impact.totalFinalReports")}),o(b,{children:r("common:format.number",{val:P})}),o(u,{children:r("common:unit.footprint")}),o(n.Text,{css:t=>({fontSize:20,color:t.colors.disabled.light,paddingLeft:10}),children:r("company:dashboard.impact.totalFootprintForFinalReports")})]})}),o(e,{css:t=>({backgroundColor:t.colors.disabled.contrastText,paddingBottom:a(2),paddingTop:a(2)}),span:12,children:i(f,{children:[o(n.Text,{css:t=>({fontSize:25,color:t.colors.common.white,fontWeight:600,paddingRight:a(2)}),children:r("company:dashboard.impact.averageReportsFootprintPrefix")}),i(b,{children:[r("common:format.number",{val:y})," "]}),i(u,{children:[r("common:unit.footprint")," "]}),o(n.Text,{css:t=>({paddingLeft:a(2),fontSize:20,color:t.colors.disabled.light}),children:r("company:dashboard.impact.averageReportsFootprint")})]})})]}),o(c,{css:()=>({marginBottom:a(10)}),children:o($,{form:C,get:p,processing:v})}),o(n.Title,{level:2,css:()=>({textAlign:"center",marginBottom:`${a(3)}px !important`}),children:r("company:dashboard.titles.selectedProjects")}),o(c,{justify:"space-between",css:{marginBottom:a(0),alignItems:"end"},children:o(e,{span:24,children:o(E,{css:{lineHeight:"0.4rem !important",width:"100%","& .ant-space-item":{width:"100%"}},children:o(H,{footprint:l?.totalFootprint??0,totalTitleSuffix:"émises",keyFiguresData:F,iconFootprintHeight:58})})})}),i(c,{gutter:[a(3),a(3)],css:()=>({marginTop:a(3)}),children:[o(e,{span:24,children:o(Z,{handleOrderChange:k,handleOrderUnitsChange:R,intialValues:{order:s?.order??N,orderBy:s?.orderBy}})}),o(e,{span:12,children:o(G,{handleOrderUnitsChange:j,initialValues:{orderBy:s?.handleshowEmissionByTypeGraphByChange}})}),o(e,{span:12,children:o(A,{})}),o(e,{span:24,children:o(W,{})})]})]})};export{zo as default};
2//# sourceMappingURL=Dashboard-Pn5jk0Fq.js.map

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.