@foodpilot/foods 0.1.24 → 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,6 +13,4 @@ export type MandatoryFields = {
|
|
|
13
13
|
id: string;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
|
-
export declare const checkboxToAny: <T extends MandatoryFields, U extends T>(startingValues: T[], allValues: CheckboxProperties, defaultValue: (fields: MandatoryFields) => U) => T[];
|
|
17
|
-
export declare const anyToCheckbox: <T extends MandatoryFields>(selectedValues: T[], allValues: T[]) => CheckboxProperties;
|
|
18
16
|
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { MandatoryFields, CheckboxProperties } from ".";
|
|
2
|
+
export declare function checkboxToAny<T extends MandatoryFields, U extends T>(startingValues: T[], allValues: CheckboxProperties, defaultValue: (fields: MandatoryFields) => U): T[];
|
|
3
|
+
export declare function anyToCheckbox<T extends MandatoryFields>(selectedValues: T[], allValues: T[]): CheckboxProperties;
|
package/dist/main.js
CHANGED
|
@@ -27722,7 +27722,8 @@ const vz = (e) => {
|
|
|
27722
27722
|
},
|
|
27723
27723
|
`${a}-${c}`
|
|
27724
27724
|
)) });
|
|
27725
|
-
}
|
|
27725
|
+
};
|
|
27726
|
+
function $z(e, t, o) {
|
|
27726
27727
|
const r = e.filter((i) => {
|
|
27727
27728
|
const a = t[i.id];
|
|
27728
27729
|
return t[i.id] = {
|
|
@@ -27737,7 +27738,8 @@ const vz = (e) => {
|
|
|
27737
27738
|
}
|
|
27738
27739
|
return i;
|
|
27739
27740
|
}, r);
|
|
27740
|
-
}
|
|
27741
|
+
}
|
|
27742
|
+
function Mz(e, t) {
|
|
27741
27743
|
const o = {}, r = e.reduce((i, a) => (i[a.id] = {
|
|
27742
27744
|
name: a.displayName,
|
|
27743
27745
|
state: !0
|
|
@@ -27746,7 +27748,8 @@ const vz = (e) => {
|
|
|
27746
27748
|
name: a.displayName,
|
|
27747
27749
|
state: !1
|
|
27748
27750
|
}), i), r);
|
|
27749
|
-
}
|
|
27751
|
+
}
|
|
27752
|
+
const kz = (e) => {
|
|
27750
27753
|
const { t } = Ds(), {
|
|
27751
27754
|
setOpen: o,
|
|
27752
27755
|
options: r,
|
|
@@ -27876,7 +27879,7 @@ const vz = (e) => {
|
|
|
27876
27879
|
}
|
|
27877
27880
|
);
|
|
27878
27881
|
}), pI = (e) => /* @__PURE__ */ C.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { d: "M2.97919 7.69411L7.97921 12.6941L7.00004 13.6663L0.333374 6.99967L7.00004 0.333008L7.97921 1.30522L2.97919 6.30524H13.6667V7.69411H2.97919Z", fill: "#B06803" })), fI = (e) => {
|
|
27879
|
-
const { icons: t, currentStep: o } = e, r = o || 0
|
|
27882
|
+
const { icons: t, currentStep: o } = e, r = o || 0;
|
|
27880
27883
|
return /* @__PURE__ */ p.jsx(
|
|
27881
27884
|
"div",
|
|
27882
27885
|
{
|
|
@@ -27884,14 +27887,14 @@ const vz = (e) => {
|
|
|
27884
27887
|
display: "flex",
|
|
27885
27888
|
flexDirection: "row"
|
|
27886
27889
|
},
|
|
27887
|
-
children: t && t.map((
|
|
27888
|
-
const
|
|
27890
|
+
children: t && t.map((s, i) => {
|
|
27891
|
+
const a = i < r, l = t.length - 1;
|
|
27889
27892
|
return /* @__PURE__ */ p.jsxs(Tr, { children: [
|
|
27890
27893
|
/* @__PURE__ */ p.jsx(
|
|
27891
27894
|
"div",
|
|
27892
27895
|
{
|
|
27893
27896
|
style: {
|
|
27894
|
-
backgroundColor:
|
|
27897
|
+
backgroundColor: a ? "#393A36" : "white",
|
|
27895
27898
|
border: "2px solid #E7E6E4",
|
|
27896
27899
|
borderRadius: "25px",
|
|
27897
27900
|
// Small items can get a fixed size.
|
|
@@ -27901,10 +27904,10 @@ const vz = (e) => {
|
|
|
27901
27904
|
justifyContent: "center",
|
|
27902
27905
|
alignItems: "center"
|
|
27903
27906
|
},
|
|
27904
|
-
children:
|
|
27907
|
+
children: a ? s.selected : s.unselected
|
|
27905
27908
|
}
|
|
27906
27909
|
),
|
|
27907
|
-
|
|
27910
|
+
i < l && /* @__PURE__ */ p.jsx(
|
|
27908
27911
|
"div",
|
|
27909
27912
|
{
|
|
27910
27913
|
style: {
|
package/dist/main.umd.cjs
CHANGED
|
@@ -321,7 +321,7 @@ const theme2 = createTheme({ palette: {
|
|
|
321
321
|
${e.palette.mode==="light"?io(ze(e.palette.divider,1),.88):so(ze(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${yM.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Hg=C.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTableCell"}),{align:s="inherit",className:i,component:a,padding:l,scope:c,size:u,sortDirection:d,variant:f}=r,g=de(r,xM),m=C.useContext(Ng),b=C.useContext(bs),h=b&&b.variant==="head";let v;a?v=a:v=h?"th":"td";let w=c;v==="td"?w=void 0:!w&&h&&(w="col");const P=f||b&&b.variant,S=y({},r,{align:s,component:v,padding:l||(m&&m.padding?m.padding:"normal"),size:u||(m&&m.size?m.size:"medium"),sortDirection:d,stickyHeader:P==="head"&&m&&m.stickyHeader,variant:P}),T=CM(S);let x=null;return d&&(x=d==="asc"?"ascending":"descending"),p.jsx(wM,y({as:v,ref:o,className:ve(T.root,i),"aria-sort":x,scope:w,ownerState:S},g))});process.env.NODE_ENV!=="production"&&(Hg.propTypes={align:n.oneOf(["center","inherit","justify","left","right"]),children:n.node,classes:n.object,className:n.string,component:n.elementType,padding:n.oneOf(["checkbox","none","normal"]),scope:n.string,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),sortDirection:n.oneOf(["asc","desc",!1]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOfType([n.oneOf(["body","footer","head"]),n.string])});const Qi=Hg;function SM(e){return $e("MuiTableFooter",e)}Oe("MuiTableFooter",["root"]);const TM=["className","component"],PM=e=>{const{classes:t}=e;return Ee({root:["root"]},SM,t)},RM=K("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),OM={variant:"footer"},Wg="tfoot",Ug=C.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTableFooter"}),{className:s,component:i=Wg}=r,a=de(r,TM),l=y({},r,{component:i}),c=PM(l);return p.jsx(bs.Provider,{value:OM,children:p.jsx(RM,y({as:i,className:ve(c.root,s),ref:o,role:i===Wg?null:"rowgroup",ownerState:l},a))})});process.env.NODE_ENV!=="production"&&(Ug.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const EM=Ug;function $M(e){return $e("MuiTableHead",e)}Oe("MuiTableHead",["root"]);const MM=["className","component"],kM=e=>{const{classes:t}=e;return Ee({root:["root"]},$M,t)},IM=K("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),DM={variant:"head"},qg="thead",Gg=C.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTableHead"}),{className:s,component:i=qg}=r,a=de(r,MM),l=y({},r,{component:i}),c=kM(l);return p.jsx(bs.Provider,{value:DM,children:p.jsx(IM,y({as:i,className:ve(c.root,s),ref:o,role:i===qg?null:"rowgroup",ownerState:l},a))})});process.env.NODE_ENV!=="production"&&(Gg.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const _M=Gg,jM=lt(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),FM=lt(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function NM(e){return $e("MuiTableRow",e)}const Yg=Oe("MuiTableRow",["root","selected","hover","head","footer"]),AM=["className","component","hover","selected"],VM=e=>{const{classes:t,selected:o,hover:r,head:s,footer:i}=e;return Ee({root:["root",o&&"selected",r&&"hover",s&&"head",i&&"footer"]},NM,t)},LM=K("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.head&&t.head,o.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Yg.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Yg.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ze(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),Kg="tr",Xg=C.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTableRow"}),{className:s,component:i=Kg,hover:a=!1,selected:l=!1}=r,c=de(r,AM),u=C.useContext(bs),d=y({},r,{component:i,hover:a,selected:l,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=VM(d);return p.jsx(LM,y({as:i,ref:o,className:ve(f.root,s),role:i===Kg?null:"row",ownerState:d},c))});process.env.NODE_ENV!=="production"&&(Xg.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,hover:n.bool,selected:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const Ji=Xg,zM=lt(p.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function BM(e){return $e("MuiTableSortLabel",e)}const oc=Oe("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),HM=["active","children","className","direction","hideSortIcon","IconComponent"],WM=e=>{const{classes:t,direction:o,active:r}=e,s={root:["root",r&&"active"],icon:["icon",`iconDirection${ge(o)}`]};return Ee(s,BM,t)},UM=K(un,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${oc.icon}`]:{opacity:.5}},[`&.${oc.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${oc.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),qM=K("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,t[`iconDirection${ge(o.direction)}`]]}})(({theme:e,ownerState:t})=>y({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),Zg=C.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTableSortLabel"}),{active:s=!1,children:i,className:a,direction:l="asc",hideSortIcon:c=!1,IconComponent:u=zM}=r,d=de(r,HM),f=y({},r,{active:s,direction:l,hideSortIcon:c,IconComponent:u}),g=WM(f);return p.jsxs(UM,y({className:ve(g.root,a),component:"span",disableRipple:!0,ownerState:f,ref:o},d,{children:[i,c&&!s?null:p.jsx(qM,{as:u,className:ve(g.icon),ownerState:f})]}))});process.env.NODE_ENV!=="production"&&(Zg.propTypes={active:n.bool,children:n.node,classes:n.object,className:n.string,direction:n.oneOf(["asc","desc"]),hideSortIcon:n.bool,IconComponent:n.elementType,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const GM=Zg;function YM(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function KM(e,t,o,r={},s=()=>{}){const{ease:i=YM,duration:a=300}=r;let l=null;const c=t[e];let u=!1;const d=()=>{u=!0},f=g=>{if(u){s(new Error("Animation cancelled"));return}l===null&&(l=g);const m=Math.min(1,(g-l)/a);if(t[e]=i(m)*(o-c)+c,m>=1){requestAnimationFrame(()=>{s(null)});return}requestAnimationFrame(f)};return c===o?(s(new Error("Element already at target position")),d):(requestAnimationFrame(f),d)}const XM=["onChange"],ZM={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Qg(e){const{onChange:t}=e,o=de(e,XM),r=C.useRef(),s=C.useRef(null),i=()=>{r.current=s.current.offsetHeight-s.current.clientHeight};return At(()=>{const a=Ho(()=>{const c=r.current;i(),c!==r.current&&t(r.current)}),l=Vn(s.current);return l.addEventListener("resize",a),()=>{a.clear(),l.removeEventListener("resize",a)}},[t]),C.useEffect(()=>{i(),t(r.current)},[t]),p.jsx("div",y({style:ZM,ref:s},o))}process.env.NODE_ENV!=="production"&&(Qg.propTypes={onChange:n.func.isRequired});function QM(e){return $e("MuiTabScrollButton",e)}const JM=Oe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ek=["className","slots","slotProps","direction","orientation","disabled"],tk=e=>{const{classes:t,orientation:o,disabled:r}=e;return Ee({root:["root",o,r&&"disabled"]},QM,t)},nk=K(un,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.orientation&&t[o.orientation]]}})(({ownerState:e})=>y({width:40,flexShrink:0,opacity:.8,[`&.${JM.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Jg=C.forwardRef(function(t,o){var r,s;const i=Te({props:t,name:"MuiTabScrollButton"}),{className:a,slots:l={},slotProps:c={},direction:u}=i,d=de(i,ek),g=It().direction==="rtl",m=y({isRtl:g},i),b=tk(m),h=(r=l.StartScrollButtonIcon)!=null?r:jM,v=(s=l.EndScrollButtonIcon)!=null?s:FM,w=et({elementType:h,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),P=et({elementType:v,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return p.jsx(nk,y({component:"div",className:ve(b.root,a),ref:o,role:null,ownerState:m,tabIndex:null},d,{children:u==="left"?p.jsx(h,y({},w)):p.jsx(v,y({},P))}))});process.env.NODE_ENV!=="production"&&(Jg.propTypes={children:n.node,classes:n.object,className:n.string,direction:n.oneOf(["left","right"]).isRequired,disabled:n.bool,orientation:n.oneOf(["horizontal","vertical"]).isRequired,slotProps:n.shape({endScrollButtonIcon:n.oneOfType([n.func,n.object]),startScrollButtonIcon:n.oneOfType([n.func,n.object])}),slots:n.shape({EndScrollButtonIcon:n.elementType,StartScrollButtonIcon:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const ok=Jg;function rk(e){return $e("MuiTabs",e)}const ea=Oe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),sk=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],eh=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,th=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,ta=(e,t,o)=>{let r=!1,s=o(e,t);for(;s;){if(s===e.firstChild){if(r)return;r=!0}const i=s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||i)s=o(e,s);else{s.focus();return}}},ik=e=>{const{vertical:t,fixed:o,hideScrollbar:r,scrollableX:s,scrollableY:i,centered:a,scrollButtonsHideMobile:l,classes:c}=e;return Ee({root:["root",t&&"vertical"],scroller:["scroller",o&&"fixed",r&&"hideScrollbar",s&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[s&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},rk,c)},ak=K("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${ea.scrollButtons}`]:t.scrollButtons},{[`& .${ea.scrollButtons}`]:o.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,o.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>y({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${ea.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),lk=K("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.scroller,o.fixed&&t.fixed,o.hideScrollbar&&t.hideScrollbar,o.scrollableX&&t.scrollableX,o.scrollableY&&t.scrollableY]}})(({ownerState:e})=>y({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),ck=K("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.flexContainer,o.vertical&&t.flexContainerVertical,o.centered&&t.centered]}})(({ownerState:e})=>y({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),uk=K("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>y({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),dk=K(Qg)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),nh={};let oh=!1;const rh=C.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTabs"}),s=It(),i=s.direction==="rtl",{"aria-label":a,"aria-labelledby":l,action:c,centered:u=!1,children:d,className:f,component:g="div",allowScrollButtonsMobile:m=!1,indicatorColor:b="primary",onChange:h,orientation:v="horizontal",ScrollButtonComponent:w=ok,scrollButtons:P="auto",selectionFollowsFocus:S,slots:T={},slotProps:x={},TabIndicatorProps:R={},TabScrollButtonProps:O={},textColor:$="primary",value:E,variant:k="standard",visibleScrollbar:D=!1}=r,F=de(r,sk),_=k==="scrollable",M=v==="vertical",I=M?"scrollTop":"scrollLeft",j=M?"top":"left",U=M?"bottom":"right",q=M?"clientHeight":"clientWidth",V=M?"height":"width",N=y({},r,{component:g,allowScrollButtonsMobile:m,indicatorColor:b,orientation:v,vertical:M,scrollButtons:P,textColor:$,variant:k,visibleScrollbar:D,fixed:!_,hideScrollbar:_&&!D,scrollableX:_&&!M,scrollableY:_&&M,centered:u&&!_,scrollButtonsHideMobile:!m}),B=ik(N),oe=et({elementType:T.StartScrollButtonIcon,externalSlotProps:x.startScrollButtonIcon,ownerState:N}),ae=et({elementType:T.EndScrollButtonIcon,externalSlotProps:x.endScrollButtonIcon,ownerState:N});process.env.NODE_ENV!=="production"&&u&&_&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[W,A]=C.useState(!1),[H,Y]=C.useState(nh),[J,te]=C.useState(!1),[Z,ie]=C.useState(!1),[L,ee]=C.useState(!1),[z,ce]=C.useState({overflow:"hidden",scrollbarWidth:0}),ue=new Map,Ne=C.useRef(null),le=C.useRef(null),Pe=()=>{const ne=Ne.current;let be;if(ne){const Ge=ne.getBoundingClientRect();be={clientWidth:ne.clientWidth,scrollLeft:ne.scrollLeft,scrollTop:ne.scrollTop,scrollLeftNormalized:Zy(ne,s.direction),scrollWidth:ne.scrollWidth,top:Ge.top,bottom:Ge.bottom,left:Ge.left,right:Ge.right}}let Le;if(ne&&E!==!1){const Ge=le.current.children;if(Ge.length>0){const Ye=Ge[ue.get(E)];process.env.NODE_ENV!=="production"&&(Ye||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${E}".`,ue.keys?`You can provide one of the following values: ${Array.from(ue.keys()).join(", ")}.`:null].join(`
|
|
322
322
|
`))),Le=Ye?Ye.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&!oh&&Le&&Le.width===0&&Le.height===0&&be.clientWidth!==0&&(be=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${E}") is not part of the document layout.`,"Make sure the tab item is present in the document or that it's not `display: none`."].join(`
|
|
323
323
|
`)),oh=!0)}}return{tabsMeta:be,tabMeta:Le}},Q=Ae(()=>{const{tabsMeta:ne,tabMeta:be}=Pe();let Le=0,Ge;if(M)Ge="top",be&&ne&&(Le=be.top-ne.top+ne.scrollTop);else if(Ge=i?"right":"left",be&&ne){const it=i?ne.scrollLeftNormalized+ne.clientWidth-ne.scrollWidth:ne.scrollLeft;Le=(i?-1:1)*(be[Ge]-ne[Ge]+it)}const Ye={[Ge]:Le,[V]:be?be[V]:0};if(isNaN(H[Ge])||isNaN(H[V]))Y(Ye);else{const it=Math.abs(H[Ge]-Ye[Ge]),at=Math.abs(H[V]-Ye[V]);(it>=1||at>=1)&&Y(Ye)}}),re=(ne,{animation:be=!0}={})=>{be?KM(I,Ne.current,ne,{duration:s.transitions.duration.standard}):Ne.current[I]=ne},pe=ne=>{let be=Ne.current[I];M?be+=ne:(be+=ne*(i?-1:1),be*=i&&yd()==="reverse"?-1:1),re(be)},Me=()=>{const ne=Ne.current[q];let be=0;const Le=Array.from(le.current.children);for(let Ge=0;Ge<Le.length;Ge+=1){const Ye=Le[Ge];if(be+Ye[q]>ne){Ge===0&&(be=ne);break}be+=Ye[q]}return be},Ie=()=>{pe(-1*Me())},fe=()=>{pe(Me())},me=C.useCallback(ne=>{ce({overflow:null,scrollbarWidth:ne})},[]),Ce=()=>{const ne={};ne.scrollbarSizeListener=_?p.jsx(dk,{onChange:me,className:ve(B.scrollableX,B.hideScrollbar)}):null;const Le=_&&(P==="auto"&&(J||Z)||P===!0);return ne.scrollButtonStart=Le?p.jsx(w,y({slots:{StartScrollButtonIcon:T.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:oe},orientation:v,direction:i?"right":"left",onClick:Ie,disabled:!J},O,{className:ve(B.scrollButtons,O.className)})):null,ne.scrollButtonEnd=Le?p.jsx(w,y({slots:{EndScrollButtonIcon:T.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ae},orientation:v,direction:i?"left":"right",onClick:fe,disabled:!Z},O,{className:ve(B.scrollButtons,O.className)})):null,ne},we=Ae(ne=>{const{tabsMeta:be,tabMeta:Le}=Pe();if(!(!Le||!be)){if(Le[j]<be[j]){const Ge=be[I]+(Le[j]-be[j]);re(Ge,{animation:ne})}else if(Le[U]>be[U]){const Ge=be[I]+(Le[U]-be[U]);re(Ge,{animation:ne})}}}),ye=Ae(()=>{_&&P!==!1&&ee(!L)});C.useEffect(()=>{const ne=Ho(()=>{Ne.current&&Q()});let be;const Le=it=>{it.forEach(at=>{at.removedNodes.forEach($t=>{var vt;(vt=be)==null||vt.unobserve($t)}),at.addedNodes.forEach($t=>{var vt;(vt=be)==null||vt.observe($t)})}),ne(),ye()},Ge=Vn(Ne.current);Ge.addEventListener("resize",ne);let Ye;return typeof ResizeObserver<"u"&&(be=new ResizeObserver(ne),Array.from(le.current.children).forEach(it=>{be.observe(it)})),typeof MutationObserver<"u"&&(Ye=new MutationObserver(Le),Ye.observe(le.current,{childList:!0})),()=>{var it,at;ne.clear(),Ge.removeEventListener("resize",ne),(it=Ye)==null||it.disconnect(),(at=be)==null||at.disconnect()}},[Q,ye]),C.useEffect(()=>{const ne=Array.from(le.current.children),be=ne.length;if(typeof IntersectionObserver<"u"&&be>0&&_&&P!==!1){const Le=ne[0],Ge=ne[be-1],Ye={root:Ne.current,threshold:.99},it=ot=>{te(!ot[0].isIntersecting)},at=new IntersectionObserver(it,Ye);at.observe(Le);const $t=ot=>{ie(!ot[0].isIntersecting)},vt=new IntersectionObserver($t,Ye);return vt.observe(Ge),()=>{at.disconnect(),vt.disconnect()}}},[_,P,L,d==null?void 0:d.length]),C.useEffect(()=>{A(!0)},[]),C.useEffect(()=>{Q()}),C.useEffect(()=>{we(nh!==H)},[we,H]),C.useImperativeHandle(c,()=>({updateIndicator:Q,updateScrollButtons:ye}),[Q,ye]);const je=p.jsx(uk,y({},R,{className:ve(B.indicator,R.className),ownerState:N,style:y({},H,R.style)}));let Ve=0;const We=C.Children.map(d,ne=>{if(!C.isValidElement(ne))return null;process.env.NODE_ENV!=="production"&&Mr.isFragment(ne)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
324
|
-
`));const be=ne.props.value===void 0?Ve:ne.props.value;ue.set(be,Ve);const Le=be===E;return Ve+=1,C.cloneElement(ne,y({fullWidth:k==="fullWidth",indicator:Le&&!W&&je,selected:Le,selectionFollowsFocus:S,onChange:h,textColor:$,value:be},Ve===1&&E===!1&&!ne.props.tabIndex?{tabIndex:0}:{}))}),Fe=ne=>{const be=le.current,Le=jt(be).activeElement;if(Le.getAttribute("role")!=="tab")return;let Ye=v==="horizontal"?"ArrowLeft":"ArrowUp",it=v==="horizontal"?"ArrowRight":"ArrowDown";switch(v==="horizontal"&&i&&(Ye="ArrowRight",it="ArrowLeft"),ne.key){case Ye:ne.preventDefault(),ta(be,Le,th);break;case it:ne.preventDefault(),ta(be,Le,eh);break;case"Home":ne.preventDefault(),ta(be,null,eh);break;case"End":ne.preventDefault(),ta(be,null,th);break}},ke=Ce();return p.jsxs(ak,y({className:ve(B.root,f),ownerState:N,ref:o,as:g},F,{children:[ke.scrollButtonStart,ke.scrollbarSizeListener,p.jsxs(lk,{className:B.scroller,ownerState:N,style:{overflow:z.overflow,[M?`margin${i?"Left":"Right"}`:"marginBottom"]:D?void 0:-z.scrollbarWidth},ref:Ne,children:[p.jsx(ck,{"aria-label":a,"aria-labelledby":l,"aria-orientation":v==="vertical"?"vertical":null,className:B.flexContainer,ownerState:N,onKeyDown:Fe,ref:le,role:"tablist",children:We}),W&&je]}),ke.scrollButtonEnd]}))});process.env.NODE_ENV!=="production"&&(rh.propTypes={action:kt,allowScrollButtonsMobile:n.bool,"aria-label":n.string,"aria-labelledby":n.string,centered:n.bool,children:n.node,classes:n.object,className:n.string,component:n.elementType,indicatorColor:n.oneOfType([n.oneOf(["primary","secondary"]),n.string]),onChange:n.func,orientation:n.oneOf(["horizontal","vertical"]),ScrollButtonComponent:n.elementType,scrollButtons:n.oneOf(["auto",!1,!0]),selectionFollowsFocus:n.bool,slotProps:n.shape({endScrollButtonIcon:n.oneOfType([n.func,n.object]),startScrollButtonIcon:n.oneOfType([n.func,n.object])}),slots:n.shape({EndScrollButtonIcon:n.elementType,StartScrollButtonIcon:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),TabIndicatorProps:n.object,TabScrollButtonProps:n.object,textColor:n.oneOf(["inherit","primary","secondary"]),value:n.any,variant:n.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:n.bool});const pk=rh;function fk(e){return $e("MuiTextField",e)}Oe("MuiTextField",["root"]);const mk=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],gk={standard:Dm,filled:Cm,outlined:ag},hk=e=>{const{classes:t}=e;return Ee({root:["root"]},fk,t)},bk=K(tO,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sh=C.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:i=!1,children:a,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:g,fullWidth:m=!1,helperText:b,id:h,InputLabelProps:v,inputProps:w,InputProps:P,inputRef:S,label:T,maxRows:x,minRows:R,multiline:O=!1,name:$,onBlur:E,onChange:k,onFocus:D,placeholder:F,required:_=!1,rows:M,select:I=!1,SelectProps:j,type:U,value:q,variant:V="outlined"}=r,N=de(r,mk),B=y({},r,{autoFocus:i,color:c,disabled:d,error:f,fullWidth:m,multiline:O,required:_,select:I,variant:V}),oe=hk(B);process.env.NODE_ENV!=="production"&&I&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const ae={};V==="outlined"&&(v&&typeof v.shrink<"u"&&(ae.notched=v.shrink),ae.label=T),I&&((!j||!j.native)&&(ae.id=void 0),ae["aria-describedby"]=void 0);const W=Ln(h),A=b&&W?`${W}-helper-text`:void 0,H=T&&W?`${W}-label`:void 0,Y=gk[V],J=p.jsx(Y,y({"aria-describedby":A,autoComplete:s,autoFocus:i,defaultValue:u,fullWidth:m,multiline:O,name:$,rows:M,maxRows:x,minRows:R,type:U,value:q,id:W,inputRef:S,onBlur:E,onChange:k,onFocus:D,placeholder:F,inputProps:w},ae,P));return p.jsxs(bk,y({className:ve(oe.root,l),disabled:d,error:f,fullWidth:m,ref:o,required:_,color:c,variant:V,ownerState:B},N,{children:[T!=null&&T!==""&&p.jsx(Am,y({htmlFor:W,id:H},v,{children:T})),I?p.jsx(Tg,y({"aria-describedby":A,id:W,labelId:H,value:q,input:J},j,{children:a})):J,b&&p.jsx(Mm,y({id:A},g,{children:b}))]}))});process.env.NODE_ENV!=="production"&&(sh.propTypes={autoComplete:n.string,autoFocus:n.bool,children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["primary","secondary","error","info","success","warning"]),n.string]),defaultValue:n.any,disabled:n.bool,error:n.bool,FormHelperTextProps:n.object,fullWidth:n.bool,helperText:n.node,id:n.string,InputLabelProps:n.object,inputProps:n.object,InputProps:n.object,inputRef:kt,label:n.node,margin:n.oneOf(["dense","none","normal"]),maxRows:n.oneOfType([n.number,n.string]),minRows:n.oneOfType([n.number,n.string]),multiline:n.bool,name:n.string,onBlur:n.func,onChange:n.func,onFocus:n.func,placeholder:n.string,required:n.bool,rows:n.oneOfType([n.number,n.string]),select:n.bool,SelectProps:n.object,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.string,value:n.any,variant:n.oneOf(["filled","outlined","standard"])});const _o=sh;function vk(e){return $e("MuiToggleButton",e)}const ih=Oe("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),yk=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],xk=e=>{const{classes:t,fullWidth:o,selected:r,disabled:s,size:i,color:a}=e,l={root:["root",r&&"selected",s&&"disabled",o&&"fullWidth",`size${ge(i)}`,a]};return Ee(l,vk,t)},Ck=K(un,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`size${ge(o.size)}`]]}})(({theme:e,ownerState:t})=>{let o=t.color==="standard"?e.palette.text.primary:e.palette[t.color].main,r;return e.vars&&(o=t.color==="standard"?e.vars.palette.text.primary:e.vars.palette[t.color].main,r=t.color==="standard"?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),y({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${ih.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ih.selected}`]:{color:o,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:ze(o,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ze(o,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:ze(o,e.palette.action.selectedOpacity)}}}},t.size==="small"&&{padding:7,fontSize:e.typography.pxToRem(13)},t.size==="large"&&{padding:15,fontSize:e.typography.pxToRem(15)})}),ah=C.forwardRef(function(t,o){const r=Te({props:t,name:"MuiToggleButton"}),{children:s,className:i,color:a="standard",disabled:l=!1,disableFocusRipple:c=!1,fullWidth:u=!1,onChange:d,onClick:f,selected:g,size:m="medium",value:b}=r,h=de(r,yk),v=y({},r,{color:a,disabled:l,disableFocusRipple:c,fullWidth:u,size:m}),w=xk(v),P=S=>{f&&(f(S,b),S.defaultPrevented)||d&&d(S,b)};return p.jsx(Ck,y({className:ve(w.root,i),disabled:l,focusRipple:!c,ref:o,onClick:P,onChange:d,value:b,ownerState:v,"aria-pressed":g},h,{children:s}))});process.env.NODE_ENV!=="production"&&(ah.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["standard","primary","secondary","error","info","success","warning"]),n.string]),disabled:n.bool,disableFocusRipple:n.bool,disableRipple:n.bool,fullWidth:n.bool,onChange:n.func,onClick:n.func,selected:n.bool,size:n.oneOfType([n.oneOf(["small","medium","large"]),n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any.isRequired});const wk=ah,fn={main:"#F6A500",gradient:"linear-gradient(#F6B100, #EC7F00)",reverseGradient:"linear-gradient(180deg, #F6B100, #EC7F00)",100:"#FFF6E8",200:"#FDE6BA",300:"#FBD68B",400:"#FAC55D",500:"#F8B52E",600:"#F6A500",700:"#D38702","700-light":"rgba(246, 165, 0, 0.39)",800:"#B06803",900:"#8D4A05",1e3:"#6A2B06"},qe={gradientDark:"linear-gradient(180deg, #484945 0%, #2A2B27 100%)",gradientLight:"linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%)",100:"#FFFFFF",200:"#FEFCFB",300:"#F6F5F3",400:"#EFEDEC",500:"#E7E6E4",600:"#E0DEDD",700:"#D8D7D5",800:"#D1CFCE",900:"#C9C8C6",1e3:"#C1C0BE",1100:"#BAB9B7",1200:"#B2B1AF",1300:"#ABAAA8",1400:"#A3A2A0",1500:"#9C9B99",1600:"#949491",1700:"#8C8C89",1800:"#858582",1900:"#7D7D7A",2e3:"#767673",2100:"#6E6E6B",2200:"#676764",2300:"#5F5F5C",2400:"#575854",2500:"#50504D",2600:"#484945",2700:"#41413E",2800:"#393A36",2900:"#32322F",3e3:"#2A2B27"},Sk={primary:{light:"#63b8ff",main:"#000",dark:"#005db0",contrastText:"#fff"},secondary:{main:"#91B927",light:"#82e9de",dark:"#00867d",contrastText:"#000"}},Tk={fontFamily:["Montserrat","serif"].join(","),h1:{fontStyle:"normal",fontWeight:"700",fontSize:"2rem",lineHeight:"3rem",color:qe[2800]},h2:{fontStyle:"normal",fontWeight:"700",fontSize:"1.5rem",lineHeight:"2rem",color:qe[2800]},h3:{fontStyle:"normal",fontWeight:"700",fontSize:"1.125rem",lineHeight:"1.75rem",color:qe[2800]},h4:{fontStyle:"normal",fontWeight:"700",fontSize:"0.875rem",lineHeight:"1.5rem",color:qe[2800]},h5:{fontStyle:"normal",fontWeight:"700",fontSize:"0.75rem",lineHeight:"1rem",color:qe[2800]},huge:{fontStyle:"normal",fontWeight:"400",fontSize:"1.125rem",lineHeight:"2rem",color:qe[2800]},"big-bold":{fontStyle:"normal",fontWeight:"600",fontSize:"0.875rem",lineHeight:"0.9231rem",color:qe[2800]},"big-medium":{fontStyle:"normal",fontWeight:"500",fontSize:"0.875rem",lineHeight:"0.9231rem",color:qe[2800]},big:{fontStyle:"normal",fontWeight:"400",fontSize:"0.875rem",lineHeight:"0.9231rem",color:qe[2800]},"body-bold":{fontStyle:"normal",fontWeight:"600",fontSize:"0.75rem",lineHeight:"1.25rem",color:qe[2800]},body:{fontStyle:"normal",fontWeight:"500",fontSize:"0.75rem",lineHeight:"1.25rem",color:qe[2800]},"body-light":{fontStyle:"normal",fontWeight:"500",fontSize:"0.75rem",lineHeight:"1.25rem",color:qe[1400]},"popover-header":{fontStyle:"normal",fontWeight:"700",lineHeight:"1.5rem",fontSize:"0.875rem"},"grey-tag":{borderRadius:"4px",padding:"8px",display:"inline",background:qe[400],fontSize:"12px",fontStyle:"normal",fontWeight:"500",color:"black"},"white-tag":{borderRadius:"4px",padding:"8px",border:"1px solid "+qe[500],color:"black",background:qe[100],fontSize:"0.625rem",fontStyle:"normal",fontWeight:"700",lineHeight:"normal"}},Pk={color:fn,grey:qe,searchBox:{borderRadius:"24px",border:"1px solid #E7E6E4",background:"white",boxShadow:"0px 2px 8px 0px "+qe[500]},rowMenuElement:{marginLeft:"12px",paddingRight:"8px",fontSize:"12px",fontWeight:"600",lineHeight:"20px"},productGrid:{baseCell:{color:fn[800],fontSize:"12px",fontWeight:700,borderRight:"1px solid "+qe[500]},boldCell:{color:qe[2800],fontFamily:"Montserrat",fontStyle:"normal",fontSize:"18px",fontWeight:"800",lineHeight:"normal"},greyCell:{color:qe[1400],fontSize:"14px",fontStyle:"normal",fontWeight:"400",lineHeight:"20px"},headerCell:{fontWeight:"500",color:qe[2e3],backgroundColor:qe[200],border:"1px solid "+qe[500]}}},Rk={MuiButton:{defaultProps:{disableRipple:!0},styleOverrides:{root:{textTransform:"none",fontSize:"0.75rem",borderRadius:"25px",height:"40px"}},variants:[{props:{variant:"primary"},style:{transition:"none",color:"#FFFFFF",boxShadow:"0px 4px 8px 0px #2A2B2714",background:fn.gradient,":hover":{color:"#FFFFFF",background:fn[700]},":disabled":{color:"#FFFFFF",background:fn["700-light"]},":active":{background:"none",backgroundColor:fn[900]}}},{props:{variant:"secondary"},style:{color:fn[700],border:`2px solid ${fn[700]}`,":hover":{color:"#FFFFFF",border:"none",background:fn[700]},":disabled":{color:fn["700-light"],border:`2px solid ${fn["700-light"]}`,background:"#FFFFFF"},":active":{color:"#FFFFFF",border:"none",background:fn[900]}}},{props:{variant:"ternary"},style:{border:`1px solid ${qe[500]}`,background:qe.gradientLight,":hover":{border:`1px solid ${qe[500]}`,background:qe[400]},":disabled":{border:`1px solid ${qe[100]}`,background:qe[500]},":active":{background:qe[600]}}},{props:{variant:"text"},style:{transition:"none",paddingInline:"0",color:fn[800],fontWeight:"700",":hover":{background:"none",textDecoration:"underline"}}},{props:{variant:"navbar-current"},style:{color:"white",background:fn.reverseGradient,borderRadius:"8px",padding:"0px"}},{props:{variant:"navbar"},style:{color:"white",background:"black",borderRadius:"0px",padding:"8px"}},{props:{variant:"black-text"},style:{color:qe[2800],background:"none",fontWeight:"600"}},{props:{variant:"black-filled"},style:{borderRadius:"8px",background:`linear-gradient(180deg, ${qe[2600]} 0%, ${qe[3e3]} 100%)`,boxShadow:"0px 4px 8px 0px rgba(42, 43, 39, 0.08)"}},{props:{variant:"white-filled"},style:{borderRadius:"8px",border:"1px solid "+qe[500],background:"linear-gradient(180deg, #FFF 0%, #FAFAFA 100%)",boxShadow:" 0px 2px 8px 0px rgba(42, 43, 39, 0.04)"}},{props:{variant:"white-filled-no-shadow"},style:{borderRadius:"44px",border:"1px solid #E7E6E4",background:"linear-gradient(180deg, #FFF 0%, #FAFAFA 100%)"}}]},MuiButtonBase:{styleOverrides:{root:{borderRadius:"15px"}}}},lh=ml({palette:Sk,typography:Tk,custom:Pk,components:Rk}),Ok=Qs(z1)(()=>({".Mui-disabled":{background:qe[500]},":before":{height:"0px"},border:`1px solid ${qe[500]}`,boxShadow:"0px 2px 8px 0px #2A2B270A"})),Ek=e=>{const[t,o]=he.useState(null),r=s=>{if(s===t){o(null);return}o(s)};return p.jsx("div",{style:{display:"flex",flexDirection:"column",marginBlock:"1rem"},children:e.pages.map((s,i)=>{const a=t===i;return p.jsxs(Ok,{expanded:a,disableGutters:!0,children:[p.jsx(aw,{sx:{minHeight:"80px"},expandIcon:p.jsx(fw,{}),"aria-controls":"panel1a-content",onClick:()=>r(i),children:s.title}),p.jsx(pw,{sx:{borderTop:`1px solid ${qe[500]}`},children:s.content})]},`accordion-prod-ing-${i}`)})})},$k=lt(p.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Mk=lt(p.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack"),kk=lt(p.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),ch=lt(p.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"),Ik=lt(p.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM5.92 19H5v-.92l9.06-9.06.92.92L5.92 19zM20.71 5.63l-2.34-2.34c-.2-.2-.45-.29-.71-.29s-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41z"}),"CreateOutlined"),Dk=lt(p.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"DragIndicator"),_k=lt(p.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),jk=lt(p.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Fk=lt(p.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"Launch"),Nk=lt(p.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"SearchOutlined");function Ak(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const uh={};function rc(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];typeof t[0]=="string"&&uh[t[0]]||(typeof t[0]=="string"&&(uh[t[0]]=new Date),Ak(...t))}const dh=(e,t)=>()=>{if(e.isInitialized)t();else{const o=()=>{setTimeout(()=>{e.off("initialized",o)},0),t()};e.on("initialized",o)}};function ph(e,t,o){e.loadNamespaces(t,dh(e,o))}function fh(e,t,o,r){typeof o=="string"&&(o=[o]),o.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,dh(e,r))}function Vk(e,t){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],s=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(l,c)=>{const u=t.services.backendConnector.state[`${l}|${c}`];return u===-1||u===2};return o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(r,e)&&(!s||a(i,e)))}function Lk(e,t){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(rc("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:o.lng,precheck:(s,i)=>{if(o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!i(s.isLanguageChangingTo,e))return!1}}):Vk(e,t,o)}const zk=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Bk={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Hk=e=>Bk[e];let Wk={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(zk,Hk)};function Uk(){return Wk}let qk;function Gk(){return qk}const Yk=he.createContext();class Kk{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(o=>{this.usedNamespaces[o]||(this.usedNamespaces[o]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Xk=(e,t)=>{const o=he.useRef();return he.useEffect(()=>{o.current=t?o.current:e},[e,t]),o.current};function vs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:o}=t,{i18n:r,defaultNS:s}=he.useContext(Yk)||{},i=o||r||Gk();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new Kk),!i){rc("You will need to pass in an i18next instance by using initReactI18next");const S=(x,R)=>typeof R=="string"?R:R&&typeof R=="object"&&typeof R.defaultValue=="string"?R.defaultValue:Array.isArray(x)?x[x.length-1]:x,T=[S,{},!1];return T.t=S,T.i18n={},T.ready=!1,T}i.options.react&&i.options.react.wait!==void 0&&rc("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...Uk(),...i.options.react,...t},{useSuspense:l,keyPrefix:c}=a;let u=e||s||i.options&&i.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const d=(i.isInitialized||i.initializedStoreOnce)&&u.every(S=>Lk(S,i,a));function f(){return i.getFixedT(t.lng||null,a.nsMode==="fallback"?u:u[0],c)}const[g,m]=he.useState(f);let b=u.join();t.lng&&(b=`${t.lng}${b}`);const h=Xk(b),v=he.useRef(!0);he.useEffect(()=>{const{bindI18n:S,bindI18nStore:T}=a;v.current=!0,!d&&!l&&(t.lng?fh(i,t.lng,u,()=>{v.current&&m(f)}):ph(i,u,()=>{v.current&&m(f)})),d&&h&&h!==b&&v.current&&m(f);function x(){v.current&&m(f)}return S&&i&&i.on(S,x),T&&i&&i.store.on(T,x),()=>{v.current=!1,S&&i&&S.split(" ").forEach(R=>i.off(R,x)),T&&i&&T.split(" ").forEach(R=>i.store.off(R,x))}},[i,b]);const w=he.useRef(!0);he.useEffect(()=>{v.current&&!w.current&&m(f),w.current=!1},[i,c]);const P=[g,i,d];if(P.t=g,P.i18n=i,P.ready=d,d||!d&&!l)return P;throw new Promise(S=>{t.lng?fh(i,t.lng,u,()=>S()):ph(i,u,()=>S())})}function Zk(e){const t=It(),{t:o}=vs(),[r,s]=he.useState(!1);return p.jsxs(tt,{component:"div",sx:{borderRadius:"8px",background:"#FFF",boxShadow:" 0px 2px 8px 0px rgba(42, 43, 39, 0.04)",border:`1px solid ${t.custom.grey[500]}`},children:[p.jsxs(Qt,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{width:"100%",padding:"30px 24px"},children:[p.jsxs(Qt,{direction:"row",useFlexGap:!0,gap:"12px",alignItems:"center",children:[e.headerIcon,p.jsx(nt,{variant:"h3",children:e.headerText})]}),p.jsxs(Qt,{direction:"row",useFlexGap:!0,gap:"24px",alignItems:"center",children:[e.controls,!e.controls&&p.jsx(Ht,{disabled:!0,variant:"white-filled",startIcon:p.jsx(Ik,{}),sx:{marginRight:"24px",borderRadius:"44px"},children:o("Modifier")}),p.jsx(Et,{onClick:i=>s(!r),children:r===!0?p.jsx(_k,{}):p.jsx(jk,{})})]})]}),r&&p.jsx(mr,{in:r,timeout:300,children:p.jsxs("div",{children:[p.jsx(Io,{}),p.jsx(tt,{component:"div",sx:{padding:"44px"},children:e.children})]})})]})}const Qk=e=>{const{text:t}=e;return p.jsx("div",{style:{backgroundColor:"#EFEDEC",height:"30px",display:"flex",justifyContent:"center",alignItems:"center",width:"fit-content",borderRadius:"5px"},children:p.jsx(nt,{variant:"body",style:{marginInline:"10px"},children:t})})},Jk=e=>p.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"5px",border:`2px dashed ${qe[800]}`,borderRadius:"8px",background:qe[200]},children:e.children}),eI=e=>{const{children:t}=e;return t?p.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"10px",alignItems:"center",backgroundColor:"#FFF6E8",padding:"40px",border:"1px solid #FBD68B",borderRadius:"16px"},children:t.map(o=>p.jsx(he.Fragment,{children:p.jsx("div",{style:{width:"100%"},children:o})},`infobox-${o.key}-${Math.random()}`))}):null},tI=e=>{const{isFirst:t=!1,isLast:o=!1}=e;return p.jsx("div",{style:{border:`1px solid ${qe[500]}`,borderTopLeftRadius:t?"8px":"0px",borderTopRightRadius:t?"8px":"0px",borderBottomLeftRadius:o?"8px":"0px",borderBottomRightRadius:o?"8px":"0px",boxShadow:"0px 2px 8px 0px #2A2B270A"},children:e.children})},nI=e=>p.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"5px",borderLeft:`1px solid ${qe[500]}`,paddingLeft:"2rem"},children:e.data}),oI=e=>p.jsx(tt,{style:{display:"flex",flexDirection:"column",gap:"5px",height:"fit-content",padding:"1rem",border:`1px solid ${qe[800]}`,borderRadius:"8px",background:qe[200]},children:e.children}),sc=e=>C.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M1.72408 17.7605L0.239258 16.2756L7.51503 8.99985L0.239258 1.72409L1.72408 0.239258L8.99986 7.51503L16.2756 0.239258L17.7605 1.72409L10.4847 8.99985L17.7605 16.2756L16.2756 17.7605L8.99986 10.4847L1.72408 17.7605Z",fill:"#393A36"})),rI=e=>{const{children:t}=e,[o,r]=he.useState(!0),s=Array.isArray(t)?t:[t];return p.jsxs("div",{style:{display:o?"flex":"none",flexDirection:"row",gap:"10px",alignItems:"center",backgroundColor:"#FFF6E8",padding:"1rem 0 1rem 1rem",border:"1px solid #FBD68B",borderRadius:"16px"},children:[p.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"10px",width:"100%"},children:s.map(i=>p.jsx(he.Fragment,{children:p.jsx("div",{style:{width:"100%"},children:i})},`infobox-${i.key}`))}),p.jsx("div",{style:{minWidth:"40px"},children:p.jsx(Ht,{variant:"text",startIcon:p.jsx(sc,{}),onClick:()=>r(!1),disableRipple:!0})})]})},sI=K(wk)(()=>({textTransform:"capitalize",border:`1px solid ${qe[500]}`,background:qe.gradientLight,color:qe[2800],"&.Mui-selected":{color:"#FFFFFF",background:qe.gradientDark,"&:hover":{color:"#FFFFFF",background:qe.gradientDark}},"&:disabled":{border:`1px solid ${qe[100]}`,background:qe[500]},"&:hover":{border:`1px solid ${qe[500]}`,background:qe[400]}})),iI=e=>{const[t,o]=he.useState(null),r=s=>{var i;if((i=e.onClick)==null||i.call(e,s),s===t){o(null);return}o(s)};return p.jsx("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"1rem"},children:e.choices.map((s,i)=>p.jsx(sI,{value:i,onClick:()=>r(i),selected:i===t,children:p.jsx(nt,{variant:"big-bold",color:"inherit",children:s})},`${i}-button-toggle-${s}`))})},aI=e=>C.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M8.41251 6.41666H2V5.58334H8.41251L5.4125 2.58333L6 2L10 6L6 10L5.4125 9.41668L8.41251 6.41666Z",fill:"#393A36"})),lI=e=>{const{texts:t}=e;if(t.length===0)return null;const o=t.length-1;return p.jsx("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.map((r,s)=>p.jsxs(he.Fragment,{children:[p.jsx(nt,{variant:"body",children:r}),o!==s&&p.jsx("div",{style:{marginInline:"5px"},children:p.jsx(aI,{})})]},`text-arrow-${Math.random()}`))})},mh=e=>{const{title:t,titleSize:o,icon:r}=e,i=o||"h1";return p.jsxs(nt,{variant:i,style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"5px"},children:[r,t]})},cI=e=>{const{title:t,titleSize:o,icon:r}=e,i=o||"h1";return p.jsxs(nt,{variant:i,style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"5px"},children:[p.jsx("div",{style:{width:"40px",height:"40px",borderRadius:"25px",backgroundColor:qe[400],display:"flex",justifyContent:"center",alignItems:"center"},children:r}),t]})},uI=e=>C.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("rect",{x:1,y:1,width:18,height:18,rx:3,fill:"white"}),C.createElement("rect",{x:1,y:1,width:18,height:18,rx:3,stroke:"#D1CFCE",strokeWidth:2})),dI=e=>C.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("rect",{width:20,height:20,rx:4,fill:"url(#paint0_linear_2034_7850)"}),C.createElement("path",{d:"M8.32244 13.9335L4.56689 10.178L5.36133 9.38351L8.32244 12.3446L14.628 6.03906L15.4224 6.83351L8.32244 13.9335Z",fill:"white"}),C.createElement("defs",null,C.createElement("linearGradient",{id:"paint0_linear_2034_7850",x1:7.58928,y1:755124e-13,x2:7.58928,y2:20,gradientUnits:"userSpaceOnUse"},C.createElement("stop",{stopColor:"#484945"}),C.createElement("stop",{offset:1,stopColor:"#2A2B27"})))),pI=K(fr)(()=>({":hover":{background:qe[400]}})),fI=e=>{const{values:t,...o}=e,{onChange:r,...s}=o,i=Object.entries(t);return p.jsx(dO,{children:i.map(([a,l],c)=>p.jsx(Pm,{control:p.jsx(pI,{...s,checkedIcon:p.jsx(dI,{}),icon:p.jsx(uI,{}),disableRipple:!0,onChange:(u,d)=>{const f={};f[a]={name:l.name,state:d},r(f)}}),sx:{gap:"1rem"},label:l.name,checked:l.state},`${a}-${c}`))})},mI=(e,t,o)=>{const r=e.filter(i=>{const a=t[i.id];return t[i.id]={...a,state:!1},!!a});return Object.entries(t).reduce((i,[a,l])=>{if(l.state){const c=o({id:a,displayName:l.name});i.push(c)}return i},r)},gI=(e,t)=>{const o={},r=e.reduce((i,a)=>(i[a.id]={name:a.displayName,state:!0},i),o);return t.reduce((i,a)=>(i[a.id]===void 0&&(i[a.id]={name:a.displayName,state:!1}),i),r)},hI=e=>{const{t}=vs(),{setOpen:o,options:r,onValidate:s,onCancel:i,canValidate:a=!0,...l}=e,c=()=>o(!1),u=()=>{i&&i(),c()},d=()=>{s&&s(),c()};return p.jsxs(gm,{onClose:u,...l,children:[p.jsxs(zR,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:`1px solid ${qe[500]}`,minHeight:"68px"},children:[r.title,p.jsx(Ht,{variant:"text",endIcon:p.jsx(sc,{}),onClick:u})]}),r.content,p.jsxs(bm,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",borderTop:`1px solid ${qe[500]}`,minHeight:"68px",paddingInline:"1rem"},children:[p.jsx(Ht,{variant:"text",onClick:u,children:t("Annuler")}),p.jsx(Ht,{variant:"primary",onClick:d,disabled:!a,children:t("Valider")})]})]})},bI=K(zi)(({theme:e})=>({fontFamily:e.typography.fontFamily,...e.typography.body})),na=he.forwardRef(function(e){const{sx:t,...o}=e;return p.jsx(bI,{...o,sx:{color:"#393A36",border:"1px solid #A3A2A0",borderRadius:"16px",paddingInline:"20px",...t}})}),vI=e=>{const{title:t,unit:o,placeholder:r,value:s,description:i,...a}=e;return p.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[p.jsxs(nt,{variant:"h5",children:[t," :"]}),p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[p.jsx(na,{type:"number",style:{minWidth:"150px",width:"10%"},placeholder:r,value:s,...a}),p.jsx(nt,{variant:"body",children:o})]}),p.jsx(nt,{variant:"body-light",children:i})]})},yI=he.forwardRef(function(t){const{title:o,placeholder:r,value:s,description:i,sx:a,...l}=t;return p.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[p.jsxs(nt,{variant:"h5",children:[o," :"]}),p.jsx(na,{sx:{width:"70%",...a},placeholder:r,value:s,...l}),p.jsx(nt,{variant:"body-light",children:i})]})}),xI=e=>C.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M2.97919 7.69411L7.97921 12.6941L7.00004 13.6663L0.333374 6.99967L7.00004 0.333008L7.97921 1.30522L2.97919 6.30524H13.6667V7.69411H2.97919Z",fill:"#B06803"})),gh=e=>{const{icons:t,currentStep:o}=e,r=o||0,s=t!=null&&t.length?0:-1;return p.jsx("div",{style:{display:"flex",flexDirection:"row"},children:t&&t.map((i,a)=>{const l=a<r;return p.jsxs(he.Fragment,{children:[p.jsx("div",{style:{backgroundColor:l?"#393A36":"white",border:"2px solid #E7E6E4",borderRadius:"25px",width:"32px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center"},children:l?i.selected:i.unselected}),a<=s&&p.jsx("div",{style:{border:"1px solid #E7E6E4",width:"15px",height:"100%",top:"15px",position:"relative"}})]},`icon-header-${Math.random()}`)})})},CI=e=>C.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M15.5 3.79167V14.1111C15.5 14.4861 15.3623 14.8114 15.0868 15.0868C14.8114 15.3623 14.4861 15.5 14.1111 15.5H1.88888C1.51388 15.5 1.18865 15.3623 0.913187 15.0868C0.637729 14.8114 0.5 14.4861 0.5 14.1111V1.88888C0.5 1.51388 0.637729 1.18865 0.913187 0.913188C1.18865 0.637729 1.51388 0.5 1.88888 0.5H12.2083L15.5 3.79167ZM14.1111 4.40277L11.5972 1.88888H1.88888V14.1111H14.1111V4.40277ZM7.99673 12.9306C8.62853 12.9306 9.16666 12.7094 9.6111 12.2672C10.0555 11.8249 10.2778 11.2878 10.2778 10.656C10.2778 10.0242 10.0566 9.48611 9.61438 9.04167C9.17211 8.59724 8.63508 8.37502 8.00327 8.37502C7.37147 8.37502 6.83334 8.59615 6.3889 9.03842C5.94445 9.48068 5.72223 10.0177 5.72223 10.6495C5.72223 11.2813 5.94336 11.8195 6.38563 12.2639C6.82789 12.7083 7.36492 12.9306 7.99673 12.9306ZM2.90277 6H10.375V2.90277H2.90277V6Z",fill:"#B06803"})),wI=e=>C.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M11.021 7.69411H0.333496V6.30524H11.021L6.021 1.30522L7.00016 0.333008L13.6668 6.99967L7.00016 13.6663L6.021 12.6941L11.021 7.69411Z",fill:"white"})),hh=e=>p.jsxs("div",{style:{border:"1px solid #E7E6E4",borderRadius:"52px",backgroundColor:"#FFFFFF",padding:"1.5rem 1rem 1.5rem 1rem",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between"},children:[p.jsx(TI,{title:e.title,icon:e.icon,pageIcons:e.pageIcons,currentPage:e.currentPage}),p.jsx(SI,{nextPage:()=>e.setPage(e.currentPage+1),onSaveDraft:e.onSaveDraft})]}),SI=e=>{const{t}=vs();return p.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"end",gap:"0.5rem"},children:[p.jsx(Ht,{variant:"text",startIcon:p.jsx(CI,{}),onClick:e.onSaveDraft,children:t("Enregistrer en brouillon")}),p.jsx(Ht,{variant:"primary",endIcon:p.jsx(wI,{}),onClick:e.nextPage,children:t("Etape suivante")}),p.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"44px",width:"44px"},children:p.jsx(sc,{})})]})},TI=e=>{const{title:t,icon:o,pageIcons:r,currentPage:s}=e;return p.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"start"},children:[p.jsx("div",{style:{width:"46px",height:"46px",borderRadius:"25px",backgroundColor:"#E7E6E4",display:"flex",justifyContent:"center",alignItems:"center"},children:o}),p.jsx("div",{style:{marginInline:"5px"}}),p.jsx(nt,{variant:"h3",children:t}),p.jsx("div",{style:{marginInline:"5px"}}),p.jsx(gh,{currentStep:s,icons:r})]})},PI=e=>{const{title:t,icon:o,pages:r}=e,{t:s}=vs(),i=1,a=r.length,[l,c]=he.useState(i),u=m=>{e.onPageChange!=null&&e.onPageChange(m),m>a?c(a):m<i?c(i):c(m)},d=r.map(m=>m.smallIcon),f=r[l-1],g=Array.isArray(f.content)?f.content:[f.content];return p.jsx(he.Fragment,{children:p.jsxs("div",{style:{marginLeft:"auto",marginRight:"auto",width:"75%"},children:[p.jsx(hh,{title:t,icon:o,pageIcons:d,currentPage:l,setPage:u,onSaveDraft:e.onSaveDraft}),p.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:p.jsxs("div",{style:{width:"1024px"},children:[p.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2rem",marginBlock:"1.6rem"},children:[p.jsx(Ht,{variant:"text",startIcon:p.jsx(xI,{}),onClick:()=>u(l-1),style:{alignSelf:"start",visibility:l>1?"visible":"hidden"},children:s("Etape précédente")}),p.jsx(mh,{title:f.title,icon:f.bigIcon}),f.subTitle&&p.jsx(nt,{variant:"h4",children:f.subTitle}),f.subTitle&&p.jsx(Io,{}),f.info]}),f.usesBaseLayout===!1?p.jsx(p.Fragment,{children:g}):p.jsx(RI,{children:g})]})})]})})},RI=e=>{const{children:t}=e,o=Array.isArray(t)?t:[t];return p.jsx("div",{style:{display:"grid",gap:"1rem",gridTemplateColumns:`repeat(${o.length}, 1fr)`},children:o.map(r=>p.jsx("div",{style:{boxShadow:"0px 2px 8px 0px #2A2B270A",border:`1px solid ${qe[500]}`,borderRadius:"16px",backgroundColor:"#FFFFFF",padding:"2rem",height:"fit-content"},children:r},r.key))})};/**
|
|
324
|
+
`));const be=ne.props.value===void 0?Ve:ne.props.value;ue.set(be,Ve);const Le=be===E;return Ve+=1,C.cloneElement(ne,y({fullWidth:k==="fullWidth",indicator:Le&&!W&&je,selected:Le,selectionFollowsFocus:S,onChange:h,textColor:$,value:be},Ve===1&&E===!1&&!ne.props.tabIndex?{tabIndex:0}:{}))}),Fe=ne=>{const be=le.current,Le=jt(be).activeElement;if(Le.getAttribute("role")!=="tab")return;let Ye=v==="horizontal"?"ArrowLeft":"ArrowUp",it=v==="horizontal"?"ArrowRight":"ArrowDown";switch(v==="horizontal"&&i&&(Ye="ArrowRight",it="ArrowLeft"),ne.key){case Ye:ne.preventDefault(),ta(be,Le,th);break;case it:ne.preventDefault(),ta(be,Le,eh);break;case"Home":ne.preventDefault(),ta(be,null,eh);break;case"End":ne.preventDefault(),ta(be,null,th);break}},ke=Ce();return p.jsxs(ak,y({className:ve(B.root,f),ownerState:N,ref:o,as:g},F,{children:[ke.scrollButtonStart,ke.scrollbarSizeListener,p.jsxs(lk,{className:B.scroller,ownerState:N,style:{overflow:z.overflow,[M?`margin${i?"Left":"Right"}`:"marginBottom"]:D?void 0:-z.scrollbarWidth},ref:Ne,children:[p.jsx(ck,{"aria-label":a,"aria-labelledby":l,"aria-orientation":v==="vertical"?"vertical":null,className:B.flexContainer,ownerState:N,onKeyDown:Fe,ref:le,role:"tablist",children:We}),W&&je]}),ke.scrollButtonEnd]}))});process.env.NODE_ENV!=="production"&&(rh.propTypes={action:kt,allowScrollButtonsMobile:n.bool,"aria-label":n.string,"aria-labelledby":n.string,centered:n.bool,children:n.node,classes:n.object,className:n.string,component:n.elementType,indicatorColor:n.oneOfType([n.oneOf(["primary","secondary"]),n.string]),onChange:n.func,orientation:n.oneOf(["horizontal","vertical"]),ScrollButtonComponent:n.elementType,scrollButtons:n.oneOf(["auto",!1,!0]),selectionFollowsFocus:n.bool,slotProps:n.shape({endScrollButtonIcon:n.oneOfType([n.func,n.object]),startScrollButtonIcon:n.oneOfType([n.func,n.object])}),slots:n.shape({EndScrollButtonIcon:n.elementType,StartScrollButtonIcon:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),TabIndicatorProps:n.object,TabScrollButtonProps:n.object,textColor:n.oneOf(["inherit","primary","secondary"]),value:n.any,variant:n.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:n.bool});const pk=rh;function fk(e){return $e("MuiTextField",e)}Oe("MuiTextField",["root"]);const mk=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],gk={standard:Dm,filled:Cm,outlined:ag},hk=e=>{const{classes:t}=e;return Ee({root:["root"]},fk,t)},bk=K(tO,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sh=C.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:i=!1,children:a,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:g,fullWidth:m=!1,helperText:b,id:h,InputLabelProps:v,inputProps:w,InputProps:P,inputRef:S,label:T,maxRows:x,minRows:R,multiline:O=!1,name:$,onBlur:E,onChange:k,onFocus:D,placeholder:F,required:_=!1,rows:M,select:I=!1,SelectProps:j,type:U,value:q,variant:V="outlined"}=r,N=de(r,mk),B=y({},r,{autoFocus:i,color:c,disabled:d,error:f,fullWidth:m,multiline:O,required:_,select:I,variant:V}),oe=hk(B);process.env.NODE_ENV!=="production"&&I&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const ae={};V==="outlined"&&(v&&typeof v.shrink<"u"&&(ae.notched=v.shrink),ae.label=T),I&&((!j||!j.native)&&(ae.id=void 0),ae["aria-describedby"]=void 0);const W=Ln(h),A=b&&W?`${W}-helper-text`:void 0,H=T&&W?`${W}-label`:void 0,Y=gk[V],J=p.jsx(Y,y({"aria-describedby":A,autoComplete:s,autoFocus:i,defaultValue:u,fullWidth:m,multiline:O,name:$,rows:M,maxRows:x,minRows:R,type:U,value:q,id:W,inputRef:S,onBlur:E,onChange:k,onFocus:D,placeholder:F,inputProps:w},ae,P));return p.jsxs(bk,y({className:ve(oe.root,l),disabled:d,error:f,fullWidth:m,ref:o,required:_,color:c,variant:V,ownerState:B},N,{children:[T!=null&&T!==""&&p.jsx(Am,y({htmlFor:W,id:H},v,{children:T})),I?p.jsx(Tg,y({"aria-describedby":A,id:W,labelId:H,value:q,input:J},j,{children:a})):J,b&&p.jsx(Mm,y({id:A},g,{children:b}))]}))});process.env.NODE_ENV!=="production"&&(sh.propTypes={autoComplete:n.string,autoFocus:n.bool,children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["primary","secondary","error","info","success","warning"]),n.string]),defaultValue:n.any,disabled:n.bool,error:n.bool,FormHelperTextProps:n.object,fullWidth:n.bool,helperText:n.node,id:n.string,InputLabelProps:n.object,inputProps:n.object,InputProps:n.object,inputRef:kt,label:n.node,margin:n.oneOf(["dense","none","normal"]),maxRows:n.oneOfType([n.number,n.string]),minRows:n.oneOfType([n.number,n.string]),multiline:n.bool,name:n.string,onBlur:n.func,onChange:n.func,onFocus:n.func,placeholder:n.string,required:n.bool,rows:n.oneOfType([n.number,n.string]),select:n.bool,SelectProps:n.object,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.string,value:n.any,variant:n.oneOf(["filled","outlined","standard"])});const _o=sh;function vk(e){return $e("MuiToggleButton",e)}const ih=Oe("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),yk=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],xk=e=>{const{classes:t,fullWidth:o,selected:r,disabled:s,size:i,color:a}=e,l={root:["root",r&&"selected",s&&"disabled",o&&"fullWidth",`size${ge(i)}`,a]};return Ee(l,vk,t)},Ck=K(un,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`size${ge(o.size)}`]]}})(({theme:e,ownerState:t})=>{let o=t.color==="standard"?e.palette.text.primary:e.palette[t.color].main,r;return e.vars&&(o=t.color==="standard"?e.vars.palette.text.primary:e.vars.palette[t.color].main,r=t.color==="standard"?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),y({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${ih.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ih.selected}`]:{color:o,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:ze(o,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ze(o,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:ze(o,e.palette.action.selectedOpacity)}}}},t.size==="small"&&{padding:7,fontSize:e.typography.pxToRem(13)},t.size==="large"&&{padding:15,fontSize:e.typography.pxToRem(15)})}),ah=C.forwardRef(function(t,o){const r=Te({props:t,name:"MuiToggleButton"}),{children:s,className:i,color:a="standard",disabled:l=!1,disableFocusRipple:c=!1,fullWidth:u=!1,onChange:d,onClick:f,selected:g,size:m="medium",value:b}=r,h=de(r,yk),v=y({},r,{color:a,disabled:l,disableFocusRipple:c,fullWidth:u,size:m}),w=xk(v),P=S=>{f&&(f(S,b),S.defaultPrevented)||d&&d(S,b)};return p.jsx(Ck,y({className:ve(w.root,i),disabled:l,focusRipple:!c,ref:o,onClick:P,onChange:d,value:b,ownerState:v,"aria-pressed":g},h,{children:s}))});process.env.NODE_ENV!=="production"&&(ah.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["standard","primary","secondary","error","info","success","warning"]),n.string]),disabled:n.bool,disableFocusRipple:n.bool,disableRipple:n.bool,fullWidth:n.bool,onChange:n.func,onClick:n.func,selected:n.bool,size:n.oneOfType([n.oneOf(["small","medium","large"]),n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any.isRequired});const wk=ah,fn={main:"#F6A500",gradient:"linear-gradient(#F6B100, #EC7F00)",reverseGradient:"linear-gradient(180deg, #F6B100, #EC7F00)",100:"#FFF6E8",200:"#FDE6BA",300:"#FBD68B",400:"#FAC55D",500:"#F8B52E",600:"#F6A500",700:"#D38702","700-light":"rgba(246, 165, 0, 0.39)",800:"#B06803",900:"#8D4A05",1e3:"#6A2B06"},qe={gradientDark:"linear-gradient(180deg, #484945 0%, #2A2B27 100%)",gradientLight:"linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%)",100:"#FFFFFF",200:"#FEFCFB",300:"#F6F5F3",400:"#EFEDEC",500:"#E7E6E4",600:"#E0DEDD",700:"#D8D7D5",800:"#D1CFCE",900:"#C9C8C6",1e3:"#C1C0BE",1100:"#BAB9B7",1200:"#B2B1AF",1300:"#ABAAA8",1400:"#A3A2A0",1500:"#9C9B99",1600:"#949491",1700:"#8C8C89",1800:"#858582",1900:"#7D7D7A",2e3:"#767673",2100:"#6E6E6B",2200:"#676764",2300:"#5F5F5C",2400:"#575854",2500:"#50504D",2600:"#484945",2700:"#41413E",2800:"#393A36",2900:"#32322F",3e3:"#2A2B27"},Sk={primary:{light:"#63b8ff",main:"#000",dark:"#005db0",contrastText:"#fff"},secondary:{main:"#91B927",light:"#82e9de",dark:"#00867d",contrastText:"#000"}},Tk={fontFamily:["Montserrat","serif"].join(","),h1:{fontStyle:"normal",fontWeight:"700",fontSize:"2rem",lineHeight:"3rem",color:qe[2800]},h2:{fontStyle:"normal",fontWeight:"700",fontSize:"1.5rem",lineHeight:"2rem",color:qe[2800]},h3:{fontStyle:"normal",fontWeight:"700",fontSize:"1.125rem",lineHeight:"1.75rem",color:qe[2800]},h4:{fontStyle:"normal",fontWeight:"700",fontSize:"0.875rem",lineHeight:"1.5rem",color:qe[2800]},h5:{fontStyle:"normal",fontWeight:"700",fontSize:"0.75rem",lineHeight:"1rem",color:qe[2800]},huge:{fontStyle:"normal",fontWeight:"400",fontSize:"1.125rem",lineHeight:"2rem",color:qe[2800]},"big-bold":{fontStyle:"normal",fontWeight:"600",fontSize:"0.875rem",lineHeight:"0.9231rem",color:qe[2800]},"big-medium":{fontStyle:"normal",fontWeight:"500",fontSize:"0.875rem",lineHeight:"0.9231rem",color:qe[2800]},big:{fontStyle:"normal",fontWeight:"400",fontSize:"0.875rem",lineHeight:"0.9231rem",color:qe[2800]},"body-bold":{fontStyle:"normal",fontWeight:"600",fontSize:"0.75rem",lineHeight:"1.25rem",color:qe[2800]},body:{fontStyle:"normal",fontWeight:"500",fontSize:"0.75rem",lineHeight:"1.25rem",color:qe[2800]},"body-light":{fontStyle:"normal",fontWeight:"500",fontSize:"0.75rem",lineHeight:"1.25rem",color:qe[1400]},"popover-header":{fontStyle:"normal",fontWeight:"700",lineHeight:"1.5rem",fontSize:"0.875rem"},"grey-tag":{borderRadius:"4px",padding:"8px",display:"inline",background:qe[400],fontSize:"12px",fontStyle:"normal",fontWeight:"500",color:"black"},"white-tag":{borderRadius:"4px",padding:"8px",border:"1px solid "+qe[500],color:"black",background:qe[100],fontSize:"0.625rem",fontStyle:"normal",fontWeight:"700",lineHeight:"normal"}},Pk={color:fn,grey:qe,searchBox:{borderRadius:"24px",border:"1px solid #E7E6E4",background:"white",boxShadow:"0px 2px 8px 0px "+qe[500]},rowMenuElement:{marginLeft:"12px",paddingRight:"8px",fontSize:"12px",fontWeight:"600",lineHeight:"20px"},productGrid:{baseCell:{color:fn[800],fontSize:"12px",fontWeight:700,borderRight:"1px solid "+qe[500]},boldCell:{color:qe[2800],fontFamily:"Montserrat",fontStyle:"normal",fontSize:"18px",fontWeight:"800",lineHeight:"normal"},greyCell:{color:qe[1400],fontSize:"14px",fontStyle:"normal",fontWeight:"400",lineHeight:"20px"},headerCell:{fontWeight:"500",color:qe[2e3],backgroundColor:qe[200],border:"1px solid "+qe[500]}}},Rk={MuiButton:{defaultProps:{disableRipple:!0},styleOverrides:{root:{textTransform:"none",fontSize:"0.75rem",borderRadius:"25px",height:"40px"}},variants:[{props:{variant:"primary"},style:{transition:"none",color:"#FFFFFF",boxShadow:"0px 4px 8px 0px #2A2B2714",background:fn.gradient,":hover":{color:"#FFFFFF",background:fn[700]},":disabled":{color:"#FFFFFF",background:fn["700-light"]},":active":{background:"none",backgroundColor:fn[900]}}},{props:{variant:"secondary"},style:{color:fn[700],border:`2px solid ${fn[700]}`,":hover":{color:"#FFFFFF",border:"none",background:fn[700]},":disabled":{color:fn["700-light"],border:`2px solid ${fn["700-light"]}`,background:"#FFFFFF"},":active":{color:"#FFFFFF",border:"none",background:fn[900]}}},{props:{variant:"ternary"},style:{border:`1px solid ${qe[500]}`,background:qe.gradientLight,":hover":{border:`1px solid ${qe[500]}`,background:qe[400]},":disabled":{border:`1px solid ${qe[100]}`,background:qe[500]},":active":{background:qe[600]}}},{props:{variant:"text"},style:{transition:"none",paddingInline:"0",color:fn[800],fontWeight:"700",":hover":{background:"none",textDecoration:"underline"}}},{props:{variant:"navbar-current"},style:{color:"white",background:fn.reverseGradient,borderRadius:"8px",padding:"0px"}},{props:{variant:"navbar"},style:{color:"white",background:"black",borderRadius:"0px",padding:"8px"}},{props:{variant:"black-text"},style:{color:qe[2800],background:"none",fontWeight:"600"}},{props:{variant:"black-filled"},style:{borderRadius:"8px",background:`linear-gradient(180deg, ${qe[2600]} 0%, ${qe[3e3]} 100%)`,boxShadow:"0px 4px 8px 0px rgba(42, 43, 39, 0.08)"}},{props:{variant:"white-filled"},style:{borderRadius:"8px",border:"1px solid "+qe[500],background:"linear-gradient(180deg, #FFF 0%, #FAFAFA 100%)",boxShadow:" 0px 2px 8px 0px rgba(42, 43, 39, 0.04)"}},{props:{variant:"white-filled-no-shadow"},style:{borderRadius:"44px",border:"1px solid #E7E6E4",background:"linear-gradient(180deg, #FFF 0%, #FAFAFA 100%)"}}]},MuiButtonBase:{styleOverrides:{root:{borderRadius:"15px"}}}},lh=ml({palette:Sk,typography:Tk,custom:Pk,components:Rk}),Ok=Qs(z1)(()=>({".Mui-disabled":{background:qe[500]},":before":{height:"0px"},border:`1px solid ${qe[500]}`,boxShadow:"0px 2px 8px 0px #2A2B270A"})),Ek=e=>{const[t,o]=he.useState(null),r=s=>{if(s===t){o(null);return}o(s)};return p.jsx("div",{style:{display:"flex",flexDirection:"column",marginBlock:"1rem"},children:e.pages.map((s,i)=>{const a=t===i;return p.jsxs(Ok,{expanded:a,disableGutters:!0,children:[p.jsx(aw,{sx:{minHeight:"80px"},expandIcon:p.jsx(fw,{}),"aria-controls":"panel1a-content",onClick:()=>r(i),children:s.title}),p.jsx(pw,{sx:{borderTop:`1px solid ${qe[500]}`},children:s.content})]},`accordion-prod-ing-${i}`)})})},$k=lt(p.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Mk=lt(p.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack"),kk=lt(p.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),ch=lt(p.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"),Ik=lt(p.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM5.92 19H5v-.92l9.06-9.06.92.92L5.92 19zM20.71 5.63l-2.34-2.34c-.2-.2-.45-.29-.71-.29s-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41z"}),"CreateOutlined"),Dk=lt(p.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"DragIndicator"),_k=lt(p.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),jk=lt(p.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Fk=lt(p.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"Launch"),Nk=lt(p.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"SearchOutlined");function Ak(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const uh={};function rc(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];typeof t[0]=="string"&&uh[t[0]]||(typeof t[0]=="string"&&(uh[t[0]]=new Date),Ak(...t))}const dh=(e,t)=>()=>{if(e.isInitialized)t();else{const o=()=>{setTimeout(()=>{e.off("initialized",o)},0),t()};e.on("initialized",o)}};function ph(e,t,o){e.loadNamespaces(t,dh(e,o))}function fh(e,t,o,r){typeof o=="string"&&(o=[o]),o.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,dh(e,r))}function Vk(e,t){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],s=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(l,c)=>{const u=t.services.backendConnector.state[`${l}|${c}`];return u===-1||u===2};return o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(r,e)&&(!s||a(i,e)))}function Lk(e,t){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(rc("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:o.lng,precheck:(s,i)=>{if(o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!i(s.isLanguageChangingTo,e))return!1}}):Vk(e,t,o)}const zk=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Bk={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Hk=e=>Bk[e];let Wk={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(zk,Hk)};function Uk(){return Wk}let qk;function Gk(){return qk}const Yk=he.createContext();class Kk{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(o=>{this.usedNamespaces[o]||(this.usedNamespaces[o]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Xk=(e,t)=>{const o=he.useRef();return he.useEffect(()=>{o.current=t?o.current:e},[e,t]),o.current};function vs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:o}=t,{i18n:r,defaultNS:s}=he.useContext(Yk)||{},i=o||r||Gk();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new Kk),!i){rc("You will need to pass in an i18next instance by using initReactI18next");const S=(x,R)=>typeof R=="string"?R:R&&typeof R=="object"&&typeof R.defaultValue=="string"?R.defaultValue:Array.isArray(x)?x[x.length-1]:x,T=[S,{},!1];return T.t=S,T.i18n={},T.ready=!1,T}i.options.react&&i.options.react.wait!==void 0&&rc("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...Uk(),...i.options.react,...t},{useSuspense:l,keyPrefix:c}=a;let u=e||s||i.options&&i.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const d=(i.isInitialized||i.initializedStoreOnce)&&u.every(S=>Lk(S,i,a));function f(){return i.getFixedT(t.lng||null,a.nsMode==="fallback"?u:u[0],c)}const[g,m]=he.useState(f);let b=u.join();t.lng&&(b=`${t.lng}${b}`);const h=Xk(b),v=he.useRef(!0);he.useEffect(()=>{const{bindI18n:S,bindI18nStore:T}=a;v.current=!0,!d&&!l&&(t.lng?fh(i,t.lng,u,()=>{v.current&&m(f)}):ph(i,u,()=>{v.current&&m(f)})),d&&h&&h!==b&&v.current&&m(f);function x(){v.current&&m(f)}return S&&i&&i.on(S,x),T&&i&&i.store.on(T,x),()=>{v.current=!1,S&&i&&S.split(" ").forEach(R=>i.off(R,x)),T&&i&&T.split(" ").forEach(R=>i.store.off(R,x))}},[i,b]);const w=he.useRef(!0);he.useEffect(()=>{v.current&&!w.current&&m(f),w.current=!1},[i,c]);const P=[g,i,d];if(P.t=g,P.i18n=i,P.ready=d,d||!d&&!l)return P;throw new Promise(S=>{t.lng?fh(i,t.lng,u,()=>S()):ph(i,u,()=>S())})}function Zk(e){const t=It(),{t:o}=vs(),[r,s]=he.useState(!1);return p.jsxs(tt,{component:"div",sx:{borderRadius:"8px",background:"#FFF",boxShadow:" 0px 2px 8px 0px rgba(42, 43, 39, 0.04)",border:`1px solid ${t.custom.grey[500]}`},children:[p.jsxs(Qt,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{width:"100%",padding:"30px 24px"},children:[p.jsxs(Qt,{direction:"row",useFlexGap:!0,gap:"12px",alignItems:"center",children:[e.headerIcon,p.jsx(nt,{variant:"h3",children:e.headerText})]}),p.jsxs(Qt,{direction:"row",useFlexGap:!0,gap:"24px",alignItems:"center",children:[e.controls,!e.controls&&p.jsx(Ht,{disabled:!0,variant:"white-filled",startIcon:p.jsx(Ik,{}),sx:{marginRight:"24px",borderRadius:"44px"},children:o("Modifier")}),p.jsx(Et,{onClick:i=>s(!r),children:r===!0?p.jsx(_k,{}):p.jsx(jk,{})})]})]}),r&&p.jsx(mr,{in:r,timeout:300,children:p.jsxs("div",{children:[p.jsx(Io,{}),p.jsx(tt,{component:"div",sx:{padding:"44px"},children:e.children})]})})]})}const Qk=e=>{const{text:t}=e;return p.jsx("div",{style:{backgroundColor:"#EFEDEC",height:"30px",display:"flex",justifyContent:"center",alignItems:"center",width:"fit-content",borderRadius:"5px"},children:p.jsx(nt,{variant:"body",style:{marginInline:"10px"},children:t})})},Jk=e=>p.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"5px",border:`2px dashed ${qe[800]}`,borderRadius:"8px",background:qe[200]},children:e.children}),eI=e=>{const{children:t}=e;return t?p.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"10px",alignItems:"center",backgroundColor:"#FFF6E8",padding:"40px",border:"1px solid #FBD68B",borderRadius:"16px"},children:t.map(o=>p.jsx(he.Fragment,{children:p.jsx("div",{style:{width:"100%"},children:o})},`infobox-${o.key}-${Math.random()}`))}):null},tI=e=>{const{isFirst:t=!1,isLast:o=!1}=e;return p.jsx("div",{style:{border:`1px solid ${qe[500]}`,borderTopLeftRadius:t?"8px":"0px",borderTopRightRadius:t?"8px":"0px",borderBottomLeftRadius:o?"8px":"0px",borderBottomRightRadius:o?"8px":"0px",boxShadow:"0px 2px 8px 0px #2A2B270A"},children:e.children})},nI=e=>p.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"5px",borderLeft:`1px solid ${qe[500]}`,paddingLeft:"2rem"},children:e.data}),oI=e=>p.jsx(tt,{style:{display:"flex",flexDirection:"column",gap:"5px",height:"fit-content",padding:"1rem",border:`1px solid ${qe[800]}`,borderRadius:"8px",background:qe[200]},children:e.children}),sc=e=>C.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M1.72408 17.7605L0.239258 16.2756L7.51503 8.99985L0.239258 1.72409L1.72408 0.239258L8.99986 7.51503L16.2756 0.239258L17.7605 1.72409L10.4847 8.99985L17.7605 16.2756L16.2756 17.7605L8.99986 10.4847L1.72408 17.7605Z",fill:"#393A36"})),rI=e=>{const{children:t}=e,[o,r]=he.useState(!0),s=Array.isArray(t)?t:[t];return p.jsxs("div",{style:{display:o?"flex":"none",flexDirection:"row",gap:"10px",alignItems:"center",backgroundColor:"#FFF6E8",padding:"1rem 0 1rem 1rem",border:"1px solid #FBD68B",borderRadius:"16px"},children:[p.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"10px",width:"100%"},children:s.map(i=>p.jsx(he.Fragment,{children:p.jsx("div",{style:{width:"100%"},children:i})},`infobox-${i.key}`))}),p.jsx("div",{style:{minWidth:"40px"},children:p.jsx(Ht,{variant:"text",startIcon:p.jsx(sc,{}),onClick:()=>r(!1),disableRipple:!0})})]})},sI=K(wk)(()=>({textTransform:"capitalize",border:`1px solid ${qe[500]}`,background:qe.gradientLight,color:qe[2800],"&.Mui-selected":{color:"#FFFFFF",background:qe.gradientDark,"&:hover":{color:"#FFFFFF",background:qe.gradientDark}},"&:disabled":{border:`1px solid ${qe[100]}`,background:qe[500]},"&:hover":{border:`1px solid ${qe[500]}`,background:qe[400]}})),iI=e=>{const[t,o]=he.useState(null),r=s=>{var i;if((i=e.onClick)==null||i.call(e,s),s===t){o(null);return}o(s)};return p.jsx("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"1rem"},children:e.choices.map((s,i)=>p.jsx(sI,{value:i,onClick:()=>r(i),selected:i===t,children:p.jsx(nt,{variant:"big-bold",color:"inherit",children:s})},`${i}-button-toggle-${s}`))})},aI=e=>C.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M8.41251 6.41666H2V5.58334H8.41251L5.4125 2.58333L6 2L10 6L6 10L5.4125 9.41668L8.41251 6.41666Z",fill:"#393A36"})),lI=e=>{const{texts:t}=e;if(t.length===0)return null;const o=t.length-1;return p.jsx("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.map((r,s)=>p.jsxs(he.Fragment,{children:[p.jsx(nt,{variant:"body",children:r}),o!==s&&p.jsx("div",{style:{marginInline:"5px"},children:p.jsx(aI,{})})]},`text-arrow-${Math.random()}`))})},mh=e=>{const{title:t,titleSize:o,icon:r}=e,i=o||"h1";return p.jsxs(nt,{variant:i,style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"5px"},children:[r,t]})},cI=e=>{const{title:t,titleSize:o,icon:r}=e,i=o||"h1";return p.jsxs(nt,{variant:i,style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"5px"},children:[p.jsx("div",{style:{width:"40px",height:"40px",borderRadius:"25px",backgroundColor:qe[400],display:"flex",justifyContent:"center",alignItems:"center"},children:r}),t]})},uI=e=>C.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("rect",{x:1,y:1,width:18,height:18,rx:3,fill:"white"}),C.createElement("rect",{x:1,y:1,width:18,height:18,rx:3,stroke:"#D1CFCE",strokeWidth:2})),dI=e=>C.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("rect",{width:20,height:20,rx:4,fill:"url(#paint0_linear_2034_7850)"}),C.createElement("path",{d:"M8.32244 13.9335L4.56689 10.178L5.36133 9.38351L8.32244 12.3446L14.628 6.03906L15.4224 6.83351L8.32244 13.9335Z",fill:"white"}),C.createElement("defs",null,C.createElement("linearGradient",{id:"paint0_linear_2034_7850",x1:7.58928,y1:755124e-13,x2:7.58928,y2:20,gradientUnits:"userSpaceOnUse"},C.createElement("stop",{stopColor:"#484945"}),C.createElement("stop",{offset:1,stopColor:"#2A2B27"})))),pI=K(fr)(()=>({":hover":{background:qe[400]}})),fI=e=>{const{values:t,...o}=e,{onChange:r,...s}=o,i=Object.entries(t);return p.jsx(dO,{children:i.map(([a,l],c)=>p.jsx(Pm,{control:p.jsx(pI,{...s,checkedIcon:p.jsx(dI,{}),icon:p.jsx(uI,{}),disableRipple:!0,onChange:(u,d)=>{const f={};f[a]={name:l.name,state:d},r(f)}}),sx:{gap:"1rem"},label:l.name,checked:l.state},`${a}-${c}`))})};function mI(e,t,o){const r=e.filter(i=>{const a=t[i.id];return t[i.id]={...a,state:!1},!!a});return Object.entries(t).reduce((i,[a,l])=>{if(l.state){const c=o({id:a,displayName:l.name});i.push(c)}return i},r)}function gI(e,t){const o={},r=e.reduce((i,a)=>(i[a.id]={name:a.displayName,state:!0},i),o);return t.reduce((i,a)=>(i[a.id]===void 0&&(i[a.id]={name:a.displayName,state:!1}),i),r)}const hI=e=>{const{t}=vs(),{setOpen:o,options:r,onValidate:s,onCancel:i,canValidate:a=!0,...l}=e,c=()=>o(!1),u=()=>{i&&i(),c()},d=()=>{s&&s(),c()};return p.jsxs(gm,{onClose:u,...l,children:[p.jsxs(zR,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:`1px solid ${qe[500]}`,minHeight:"68px"},children:[r.title,p.jsx(Ht,{variant:"text",endIcon:p.jsx(sc,{}),onClick:u})]}),r.content,p.jsxs(bm,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",borderTop:`1px solid ${qe[500]}`,minHeight:"68px",paddingInline:"1rem"},children:[p.jsx(Ht,{variant:"text",onClick:u,children:t("Annuler")}),p.jsx(Ht,{variant:"primary",onClick:d,disabled:!a,children:t("Valider")})]})]})},bI=K(zi)(({theme:e})=>({fontFamily:e.typography.fontFamily,...e.typography.body})),na=he.forwardRef(function(e){const{sx:t,...o}=e;return p.jsx(bI,{...o,sx:{color:"#393A36",border:"1px solid #A3A2A0",borderRadius:"16px",paddingInline:"20px",...t}})}),vI=e=>{const{title:t,unit:o,placeholder:r,value:s,description:i,...a}=e;return p.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[p.jsxs(nt,{variant:"h5",children:[t," :"]}),p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[p.jsx(na,{type:"number",style:{minWidth:"150px",width:"10%"},placeholder:r,value:s,...a}),p.jsx(nt,{variant:"body",children:o})]}),p.jsx(nt,{variant:"body-light",children:i})]})},yI=he.forwardRef(function(t){const{title:o,placeholder:r,value:s,description:i,sx:a,...l}=t;return p.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[p.jsxs(nt,{variant:"h5",children:[o," :"]}),p.jsx(na,{sx:{width:"70%",...a},placeholder:r,value:s,...l}),p.jsx(nt,{variant:"body-light",children:i})]})}),xI=e=>C.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M2.97919 7.69411L7.97921 12.6941L7.00004 13.6663L0.333374 6.99967L7.00004 0.333008L7.97921 1.30522L2.97919 6.30524H13.6667V7.69411H2.97919Z",fill:"#B06803"})),gh=e=>{const{icons:t,currentStep:o}=e,r=o||0;return p.jsx("div",{style:{display:"flex",flexDirection:"row"},children:t&&t.map((s,i)=>{const a=i<r,l=t.length-1;return p.jsxs(he.Fragment,{children:[p.jsx("div",{style:{backgroundColor:a?"#393A36":"white",border:"2px solid #E7E6E4",borderRadius:"25px",width:"32px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center"},children:a?s.selected:s.unselected}),i<l&&p.jsx("div",{style:{border:"1px solid #E7E6E4",width:"15px",height:"100%",top:"15px",position:"relative"}})]},`icon-header-${Math.random()}`)})})},CI=e=>C.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M15.5 3.79167V14.1111C15.5 14.4861 15.3623 14.8114 15.0868 15.0868C14.8114 15.3623 14.4861 15.5 14.1111 15.5H1.88888C1.51388 15.5 1.18865 15.3623 0.913187 15.0868C0.637729 14.8114 0.5 14.4861 0.5 14.1111V1.88888C0.5 1.51388 0.637729 1.18865 0.913187 0.913188C1.18865 0.637729 1.51388 0.5 1.88888 0.5H12.2083L15.5 3.79167ZM14.1111 4.40277L11.5972 1.88888H1.88888V14.1111H14.1111V4.40277ZM7.99673 12.9306C8.62853 12.9306 9.16666 12.7094 9.6111 12.2672C10.0555 11.8249 10.2778 11.2878 10.2778 10.656C10.2778 10.0242 10.0566 9.48611 9.61438 9.04167C9.17211 8.59724 8.63508 8.37502 8.00327 8.37502C7.37147 8.37502 6.83334 8.59615 6.3889 9.03842C5.94445 9.48068 5.72223 10.0177 5.72223 10.6495C5.72223 11.2813 5.94336 11.8195 6.38563 12.2639C6.82789 12.7083 7.36492 12.9306 7.99673 12.9306ZM2.90277 6H10.375V2.90277H2.90277V6Z",fill:"#B06803"})),wI=e=>C.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M11.021 7.69411H0.333496V6.30524H11.021L6.021 1.30522L7.00016 0.333008L13.6668 6.99967L7.00016 13.6663L6.021 12.6941L11.021 7.69411Z",fill:"white"})),hh=e=>p.jsxs("div",{style:{border:"1px solid #E7E6E4",borderRadius:"52px",backgroundColor:"#FFFFFF",padding:"1.5rem 1rem 1.5rem 1rem",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between"},children:[p.jsx(TI,{title:e.title,icon:e.icon,pageIcons:e.pageIcons,currentPage:e.currentPage}),p.jsx(SI,{nextPage:()=>e.setPage(e.currentPage+1),onSaveDraft:e.onSaveDraft})]}),SI=e=>{const{t}=vs();return p.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"end",gap:"0.5rem"},children:[p.jsx(Ht,{variant:"text",startIcon:p.jsx(CI,{}),onClick:e.onSaveDraft,children:t("Enregistrer en brouillon")}),p.jsx(Ht,{variant:"primary",endIcon:p.jsx(wI,{}),onClick:e.nextPage,children:t("Etape suivante")}),p.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"44px",width:"44px"},children:p.jsx(sc,{})})]})},TI=e=>{const{title:t,icon:o,pageIcons:r,currentPage:s}=e;return p.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"start"},children:[p.jsx("div",{style:{width:"46px",height:"46px",borderRadius:"25px",backgroundColor:"#E7E6E4",display:"flex",justifyContent:"center",alignItems:"center"},children:o}),p.jsx("div",{style:{marginInline:"5px"}}),p.jsx(nt,{variant:"h3",children:t}),p.jsx("div",{style:{marginInline:"5px"}}),p.jsx(gh,{currentStep:s,icons:r})]})},PI=e=>{const{title:t,icon:o,pages:r}=e,{t:s}=vs(),i=1,a=r.length,[l,c]=he.useState(i),u=m=>{e.onPageChange!=null&&e.onPageChange(m),m>a?c(a):m<i?c(i):c(m)},d=r.map(m=>m.smallIcon),f=r[l-1],g=Array.isArray(f.content)?f.content:[f.content];return p.jsx(he.Fragment,{children:p.jsxs("div",{style:{marginLeft:"auto",marginRight:"auto",width:"75%"},children:[p.jsx(hh,{title:t,icon:o,pageIcons:d,currentPage:l,setPage:u,onSaveDraft:e.onSaveDraft}),p.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:p.jsxs("div",{style:{width:"1024px"},children:[p.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2rem",marginBlock:"1.6rem"},children:[p.jsx(Ht,{variant:"text",startIcon:p.jsx(xI,{}),onClick:()=>u(l-1),style:{alignSelf:"start",visibility:l>1?"visible":"hidden"},children:s("Etape précédente")}),p.jsx(mh,{title:f.title,icon:f.bigIcon}),f.subTitle&&p.jsx(nt,{variant:"h4",children:f.subTitle}),f.subTitle&&p.jsx(Io,{}),f.info]}),f.usesBaseLayout===!1?p.jsx(p.Fragment,{children:g}):p.jsx(RI,{children:g})]})})]})})},RI=e=>{const{children:t}=e,o=Array.isArray(t)?t:[t];return p.jsx("div",{style:{display:"grid",gap:"1rem",gridTemplateColumns:`repeat(${o.length}, 1fr)`},children:o.map(r=>p.jsx("div",{style:{boxShadow:"0px 2px 8px 0px #2A2B270A",border:`1px solid ${qe[500]}`,borderRadius:"16px",backgroundColor:"#FFFFFF",padding:"2rem",height:"fit-content"},children:r},r.key))})};/**
|
|
325
325
|
* table-core
|
|
326
326
|
*
|
|
327
327
|
* Copyright (c) TanStack
|