"use strict";(self.webpackChunkcentreon=self.webpackChunkcentreon||[]).push([["2845"],{52668:function(e,r,t){t.d(r,{A:()=>N});var n=t(9697),i=t(74014),o=t(50777),a=t(40409),s=t(83627),l=t(3834),c=t(57238),u=t(9356),p=t(45780),f=t(21844);let d=(e,r,t)=>{let n=e.keys[0];if(Array.isArray(r))r.forEach((r,n)=>{t((r,t)=>{n<=e.keys.length-1&&(0===n?Object.assign(r,t):r[e.up(e.keys[n])]=t)},r)});else if(r&&"object"==typeof r){let i,o;(Object.keys(r).length>e.keys.length?e.keys:(i=e.keys,o=Object.keys(r),i.filter(e=>o.includes(e)))).forEach(i=>{if(e.keys.includes(i)){let o=r[i];void 0!==o&&t((r,t)=>{n===i?Object.assign(r,t):r[e.up(i)]=t},o)}})}else("number"==typeof r||"string"==typeof r)&&t((e,r)=>{Object.assign(e,r)},r)};function m(e){return`--Grid-${e}Spacing`}function b(e){return`--Grid-parent-${e}Spacing`}let g="--Grid-columns",y="--Grid-parent-columns",v=({theme:e,ownerState:r})=>{let t={};return d(e.breakpoints,r.size,(e,r)=>{let n={};"grow"===r&&(n={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===r&&(n={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof r&&(n={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${r} / var(${y}) - (var(${y}) - ${r}) * (var(${b("column")}) / var(${y})))`}),e(t,n)}),t},h=({theme:e,ownerState:r})=>{let t={};return d(e.breakpoints,r.offset,(e,r)=>{let n={};"auto"===r&&(n={marginLeft:"auto"}),"number"==typeof r&&(n={marginLeft:0===r?"0px":`calc(100% * ${r} / var(${y}) + var(${b("column")}) * ${r} / var(${y}))`}),e(t,n)}),t},k=({theme:e,ownerState:r})=>{if(!r.container)return{};let t={[g]:12};return d(e.breakpoints,r.columns,(e,r)=>{let n=r??12;e(t,{[g]:n,"> *":{[y]:n}})}),t},w=({theme:e,ownerState:r})=>{if(!r.container)return{};let t={};return d(e.breakpoints,r.rowSpacing,(r,n)=>{let i="string"==typeof n?n:e.spacing?.(n);r(t,{[m("row")]:i,"> *":{[b("row")]:i}})}),t},$=({theme:e,ownerState:r})=>{if(!r.container)return{};let t={};return d(e.breakpoints,r.columnSpacing,(r,n)=>{let i="string"==typeof n?n:e.spacing?.(n);r(t,{[m("column")]:i,"> *":{[b("column")]:i}})}),t},x=({theme:e,ownerState:r})=>{if(!r.container)return{};let t={};return d(e.breakpoints,r.direction,(e,r)=>{e(t,{flexDirection:r})}),t},A=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},gap:`var(${m("row")}) var(${m("column")})`}});var S=t(23420);let G=(0,f.A)(),j=(0,l.A)("div",{name:"MuiGrid",slot:"Root"});function E(e){return(0,c.A)({props:e,name:"MuiGrid",defaultTheme:G})}var M=t(66472),O=t(99141),W=t(50115);let N=function(e={}){let{createStyledComponent:r=j,useThemeProps:t=E,useTheme:l=u.A,componentName:c="MuiGrid"}=e;function f(e,r,t=()=>!0){let n={};return null===e||(Array.isArray(e)?e.forEach((e,i)=>{null!==e&&t(e)&&r.keys[i]&&(n[r.keys[i]]=e)}):"object"==typeof e?Object.keys(e).forEach(r=>{let i=e[r];null!=i&&t(i)&&(n[r]=i)}):n[r.keys[0]]=e),n}let d=r(k,$,w,v,x,A,h),m=n.forwardRef(function(e,r){var u;let m,b=l(),g=t(e),y=(0,p.A)(g);u=b.breakpoints,m=[],void 0!==y.item&&(delete y.item,m.push("item")),void 0!==y.zeroMinWidth&&(delete y.zeroMinWidth,m.push("zeroMinWidth")),u.keys.forEach(e=>{void 0!==y[e]&&(m.push(e),delete y[e])});let{className:v,children:h,columns:k=12,container:w=!1,component:$="div",direction:x="row",wrap:A="wrap",size:G={},offset:j={},spacing:E=0,rowSpacing:M=E,columnSpacing:O=E,unstable_level:W=0,...N}=y,z=f(G,b.breakpoints,e=>!1!==e),C=f(j,b.breakpoints),R=e.columns??(W?void 0:k),B=e.spacing??(W?void 0:E),_=e.rowSpacing??e.spacing??(W?void 0:M),L=e.columnSpacing??e.spacing??(W?void 0:O),T={...y,level:W,columns:R,container:w,direction:x,wrap:A,spacing:B,rowSpacing:_,columnSpacing:L,size:z,offset:C},D=((e,r)=>{let t,{container:n,direction:i,spacing:o,wrap:l,size:u}=e,p={root:["root",n&&"container","wrap"!==l&&`wrap-xs-${String(l)}`,...void 0===i?[]:"object"==typeof i?Object.entries(i).map(([e,r])=>`direction-${e}-${r}`):[`direction-xs-${String(i)}`],...(t=[],Object.entries(u).forEach(([e,r])=>{!1!==r&&void 0!==r&&t.push(`grid-${e}-${String(r)}`)}),t),...n?((e,r="xs")=>{function t(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(t(e))return[`spacing-${r}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){let r=[];return Object.entries(e).forEach(([e,n])=>{t(n)&&r.push(`spacing-${e}-${String(n)}`)}),r}return[]})(o,r.breakpoints.keys[0]):[]]};return(0,s.A)(p,e=>(0,a.Ay)(c,e),{})})(T,b);return(0,S.jsx)(d,{ref:r,as:$,ownerState:T,className:(0,i.A)(D.root,v),...N,children:n.Children.map(h,e=>n.isValidElement(e)&&(0,o.A)(e,["Grid"])&&w&&e.props.container?n.cloneElement(e,{unstable_level:e.props?.unstable_level??W+1}):e)})});return m.muiName="Grid",m}({createStyledComponent:(0,M.A)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.root,t.container&&r.container]}}),componentName:"MuiGrid",useThemeProps:e=>(0,O.b)({props:e,name:"MuiGrid"}),useTheme:W.A})}}]);
//# sourceMappingURL=2845.8e467decc52db03f.0dfde0f2fe371594.d9c6ad45f12e48bd.js.map